aboutsummaryrefslogtreecommitdiff
path: root/gdb/printcmd.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2002-11-21 18:54:44 +0000
committerAndrew Cagney <cagney@redhat.com>2002-11-21 18:54:44 +0000
commit8997bd5e3f2a3523c3e113e1a89916a7a42e0257 (patch)
tree910d1dea3213d3534c7015628fbf87f65ac4a916 /gdb/printcmd.c
parent7c25b72c17fb4647ec34275270088a8f78d41a3b (diff)
downloadfsf-binutils-gdb-8997bd5e3f2a3523c3e113e1a89916a7a42e0257.zip
fsf-binutils-gdb-8997bd5e3f2a3523c3e113e1a89916a7a42e0257.tar.gz
fsf-binutils-gdb-8997bd5e3f2a3523c3e113e1a89916a7a42e0257.tar.bz2
2002-11-21 Andrew Cagney <cagney@redhat.com>
* mips-tdep.c (mips_dump_tdep): Delete references to GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC. * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro. (GDB_TARGET_UNMASK_DISAS_PC): Delete macro. * printcmd.c (build_address_symbolic): Delete calls to GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC. (address_info): Ditto. Fix PR gdb/773.
Diffstat (limited to 'gdb/printcmd.c')
-rw-r--r--gdb/printcmd.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/gdb/printcmd.c b/gdb/printcmd.c
index 43bce2f..05b5e71 100644
--- a/gdb/printcmd.c
+++ b/gdb/printcmd.c
@@ -624,15 +624,6 @@ build_address_symbolic (CORE_ADDR addr, /* IN */
}
}
- /* On some targets, add in extra "flag" bits to PC for
- disassembly. This should ensure that "rounding errors" in
- symbol addresses that are masked for disassembly favour the
- the correct symbol. */
-
-#ifdef GDB_TARGET_UNMASK_DISAS_PC
- addr = GDB_TARGET_UNMASK_DISAS_PC (addr);
-#endif
-
/* First try to find the address in the symbol table, then
in the minsyms. Take the closest one. */
@@ -672,14 +663,6 @@ build_address_symbolic (CORE_ADDR addr, /* IN */
if (symbol == NULL && msymbol == NULL)
return 1;
- /* On some targets, mask out extra "flag" bits from PC for handsome
- disassembly. */
-
-#ifdef GDB_TARGET_MASK_DISAS_PC
- name_location = GDB_TARGET_MASK_DISAS_PC (name_location);
- addr = GDB_TARGET_MASK_DISAS_PC (addr);
-#endif
-
/* If the nearest symbol is too far away, don't print anything symbolic. */
/* For when CORE_ADDR is larger than unsigned int, we do math in
@@ -1236,14 +1219,8 @@ address_info (char *exp, int from_tty)
case LOC_BLOCK:
printf_filtered ("a function at address ");
-#ifdef GDB_TARGET_MASK_DISAS_PC
- print_address_numeric
- (load_addr = GDB_TARGET_MASK_DISAS_PC (BLOCK_START (SYMBOL_BLOCK_VALUE (sym))),
- 1, gdb_stdout);
-#else
print_address_numeric (load_addr = BLOCK_START (SYMBOL_BLOCK_VALUE (sym)),
1, gdb_stdout);
-#endif
if (section_is_overlay (section))
{
load_addr = overlay_unmapped_address (load_addr, section);