From: msnyder Date: Fri, 1 Feb 2002 01:49:52 +0000 (+0000) Subject: 2002-01-31 Michael Snyder X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=d920ea62d7df6b4de2dcaef6506200cf2f19ccfc;p=pf3gnuchains%2Fsourceware.git 2002-01-31 Michael Snyder * printcmd.c (disassemble_command): Remove an ancient artifact of an old merge. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index b2299fe96e..f29b0e82dd 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,8 @@ 2002-01-31 Michael Snyder + * printcmd.c (disassemble_command): Remove an ancient + artifact of an old merge. + * symfile.h (enum overlay_debugging_state): Define enum constant values for overlay mode. * symfile.c (overlay_debugging): Use enums instead of literals. @@ -18,7 +21,7 @@ 2002-01-31 Andrew Cagney - * PROBLEMS: Fix tipo, 5.1->5.1.1. + * PROBLEMS: Fix typo, 5.1->5.1.1. 2002-01-30 Daniel Jacobowitz diff --git a/gdb/printcmd.c b/gdb/printcmd.c index 306fac32ae..0315227fc6 100644 --- a/gdb/printcmd.c +++ b/gdb/printcmd.c @@ -2319,20 +2319,6 @@ disassemble_command (char *arg, int from_tty) else if (tui_version) low = tuiGetLowDisassemblyAddress (low, pc); #endif -#if 0 - if (overlay_debugging) - { - section = find_pc_overlay (pc); - if (pc_in_unmapped_range (pc, section)) - { - /* find_pc_partial_function will have returned low and high - relative to the symbolic (mapped) address range. Need to - translate them back to the unmapped range where PC is. */ - low = overlay_unmapped_address (low, section); - high = overlay_unmapped_address (high, section); - } - } -#endif low += FUNCTION_START_OFFSET; } else