OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [gdb/] [gdbtk/] [generic/] [gdbtk-cmds.h] - Blame information for rev 578

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 578 markom
/* Tcl/Tk command interface for Insight
2
   Copyright 2001 Free Software Foundation, Inc.
3
 
4
   This file is part of GDB.
5
 
6
   This program is free software; you can redistribute it and/or modify
7
   it under the terms of the GNU General Public License as published by
8
   the Free Software Foundation; either version 2 of the License, or
9
   (at your option) any later version.
10
 
11
   This program is distributed in the hope that it will be useful,
12
   but WITHOUT ANY WARRANTY; without even the implied warranty of
13
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
   GNU General Public License for more details.
15
 
16
   You should have received a copy of the GNU General Public License
17
   along with this program; if not, write to the Free Software
18
   Foundation, Inc., 59 Temple Place - Suite 330,
19
   Boston, MA 02111-1307, USA.  */
20
 
21
#if !defined(GDBTK_CMDS_H)
22
#define GDBTK_CMDS_H 1
23
 
24
/* This structure filled in gdbtk_call_wrapper and passed to
25
   the wrapped call function.
26
   It stores the command pointer and arguments
27
   run in the wrapper function. */
28
struct wrapped_call_args
29
  {
30
    Tcl_Interp *interp;
31
    Tcl_ObjCmdProc *func;
32
    int objc;
33
    Tcl_Obj *CONST * objv;
34
    int val;
35
  };
36
 
37
/* A generic call-wrapper to catch longjmps when calling C commands from
38
   tcl. ALL tcl commands should be wrapped in this call. */
39
extern int gdbtk_call_wrapper (ClientData, Tcl_Interp *, int, Tcl_Obj * CONST[]);
40
 
41
/* Like lookup_symtab but this deals with full pathnames and multiple
42
   source files with the same basename. FIXME: why doesn't gdb use this? */
43
extern struct symtab *full_lookup_symtab (char *file);
44
 
45
/* Returns the source (demangled) name for a function at PC. Returns empty string
46
   if not found. Memory is owned by gdb. Do not free it. */
47
extern char *pc_function_name (CORE_ADDR pc);
48
 
49
/* Convenience function to sprintf something(s) into a new element in
50
   a Tcl list object. */
51
extern void sprintf_append_element_to_obj (Tcl_Obj * objp, char *format, ...);
52
 
53
/* Module init routines: Each module of commands should be declared here. */
54
extern int Gdbtk_Breakpoint_Init (Tcl_Interp *interp);
55
extern int Gdbtk_Stack_Init (Tcl_Interp *interp);
56
extern int Gdbtk_Register_Init (Tcl_Interp *interp);
57
 
58
#endif /* GDBTK_CMDS_H */

powered by: WebSVN 2.1.0

© copyright 1999-2025 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.