From: Frank Ch. Eigler Date: Thu, 9 Oct 1997 20:26:08 +0000 (+0000) Subject: Added MIPS16 PC masking for disassembly. See PR 12149. X-Git-Tag: gdb-4_18~4509 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=eec1d04840a281f9ba666a9fb6eaa14f46c7a6ae;p=platform%2Fupstream%2Fbinutils.git Added MIPS16 PC masking for disassembly. See PR 12149. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 7801d17..b9b6a81 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,15 @@ +Thu Oct 9 12:37:57 1997 Frank Ch. Eigler + + * printcmd.c (print_address_symbolic, address_info): Mask + target-specific flag bits from PC, for more aesthetic disassembly. + * config/mips/tm-mips.h: Added PC masking for MIPS family + (especially the MIPS16). + +Sat Oct 4 18:45:44 1997 Mark Alexander + + * remote-mips.c (mips-initialize): Work around flakiness in + some versions of PMON after loading a program. + Fri Oct 3 15:49:18 1997 Per Bothner * c-lang.h, cp-valprint.c (static_field_print): Make non-static. diff --git a/gdb/config/mips/tm-mips.h b/gdb/config/mips/tm-mips.h index 867859f..e1d7fc8 100644 --- a/gdb/config/mips/tm-mips.h +++ b/gdb/config/mips/tm-mips.h @@ -50,6 +50,14 @@ struct value; #define TARGET_MONITOR_PROMPT "" #endif +/* PC should be masked to remove possible MIPS16 flag */ +#if !defined (GDB_TARGET_MASK_DISAS_PC) +#define GDB_TARGET_MASK_DISAS_PC(addr) UNMAKE_MIPS16_ADDR(addr) +#endif +#if !defined (GDB_TARGET_UNMASK_DISAS_PC) +#define GDB_TARGET_UNMASK_DISAS_PC(addr) MAKE_MIPS16_ADDR(addr) +#endif + /* Floating point is IEEE compliant */ #define IEEE_FLOAT