From 09722039025db14916df14dc44fbc093317851c1 Mon Sep 17 00:00:00 2001 From: Stu Grossman Date: Fri, 6 Jan 1995 01:55:45 +0000 Subject: * 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. --- gdb/core.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gdb/core.c') diff --git a/gdb/core.c b/gdb/core.c index 974e55c..52bb3aa 100644 --- a/gdb/core.c +++ b/gdb/core.c @@ -181,6 +181,9 @@ dis_asm_read_memory (memaddr, myaddr, len, info) int len; disassemble_info *info; { + if (dis_asm_read_memory_hook) + return dis_asm_read_memory_hook (memaddr, myaddr, len, info); + return target_read_memory (memaddr, (char *) myaddr, len); } -- cgit v1.1