diff options
author | Stu Grossman <grossman@cygnus> | 1995-01-06 01:55:45 +0000 |
---|---|---|
committer | Stu Grossman <grossman@cygnus> | 1995-01-06 01:55:45 +0000 |
commit | 09722039025db14916df14dc44fbc093317851c1 (patch) | |
tree | 69b481533b0d86c68c77b4e574e0e7b8d19aa584 /gdb/defs.h | |
parent | 26e4dcae58a0fa81475af8d4615b48e759fcf959 (diff) | |
download | gdb-09722039025db14916df14dc44fbc093317851c1.zip gdb-09722039025db14916df14dc44fbc093317851c1.tar.gz gdb-09722039025db14916df14dc44fbc093317851c1.tar.bz2 |
* Makefile.in (install_only uninstall): Indent for clarity
* core.c (dis_asm_read_memory): Add call to
dis_asm_read_memory_hook to provide alternate way for disassembler
to read memory.
* defs.h: Protect from multiple inclusion. Add decl for
dis_asm_read_memory_hook.
* gdbtk.c (finish_saving_output): Don't do anything if not saving
output.
* (breakpoint_notify): Don't send null filename to tcl.
* (gdb_eval): New tcl command to eval an expression.
* (gdb_disassemble): New tcl command to do disassembly. This
allows tcl code to choose between exec file and target memeory,
and can also do mixed source and assembly.
* (gdbtk_init): Move reading of gdbtk.tcl to the end to make sure
that more of the environment is set up. Also, create link between
gdb and tcl vars disassemble{-_}from{-_}exec.
* gdbtk.tcl: New expression window support.
* Make assembly window be 80 columns wide.
* Use new disassembly method. Add menu items to select
disassembly from exec file or target.
* Change View menubar item to Options.
* Get rid of Stack, Breakpoints, Signals, and Variables Windows,
since they don't exist yet.
* Pop up a copyright window on startup.
* top.c: Make window startup be the default.
* Add dis_asm_read_memory_hook.
Diffstat (limited to 'gdb/defs.h')
-rw-r--r-- | gdb/defs.h | 21 |
1 files changed, 13 insertions, 8 deletions
@@ -18,8 +18,8 @@ You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ -#if !defined (DEFS_H) -#define DEFS_H 1 +#ifndef DEFS_H +#define DEFS_H #include <stdio.h> @@ -836,6 +836,13 @@ extern CORE_ADDR push_word PARAMS ((CORE_ADDR, unsigned LONGEST)); /* Hooks for alternate command interfaces. */ +#include "dis-asm.h" /* Get defs for disassemble_info */ + +#ifdef __STDC__ +struct target_waitstatus; +struct cmd_list_element; +#endif + extern void (*init_ui_hook) PARAMS ((void)); extern void (*command_loop_hook) PARAMS ((void)); extern void (*fputs_unfiltered_hook) PARAMS ((const char *linebuffer, FILE *stream)); @@ -848,11 +855,9 @@ extern void (*delete_breakpoint_hook) PARAMS ((struct breakpoint *bpt)); extern void (*enable_breakpoint_hook) PARAMS ((struct breakpoint *bpt)); extern void (*disable_breakpoint_hook) PARAMS ((struct breakpoint *bpt)); extern void (*interactive_hook) PARAMS ((void)); - -#ifdef __STDC__ -struct target_waitstatus; -struct cmd_list_element; -#endif +extern int (*dis_asm_read_memory_hook) PARAMS ((bfd_vma memaddr, + bfd_byte *myaddr, int len, + disassemble_info *info)); extern int (*target_wait_hook) PARAMS ((int pid, struct target_waitstatus *status)); @@ -866,4 +871,4 @@ extern NORETURN void (*error_hook) PARAMS (()); extern int use_windows; -#endif /* !defined (DEFS_H) */ +#endif /* #ifndef DEFS_H */ |