diff options
author | Frank Ch. Eigler <fche@redhat.com> | 1997-10-09 20:26:08 +0000 |
---|---|---|
committer | Frank Ch. Eigler <fche@redhat.com> | 1997-10-09 20:26:08 +0000 |
commit | eec1d04840a281f9ba666a9fb6eaa14f46c7a6ae (patch) | |
tree | 823553b709650afcdfdcd93b26d3b8f29bb02c2a /gdb | |
parent | 18ef0a3df50ad9ee953a2faf59c3d4826d216429 (diff) | |
download | gdb-eec1d04840a281f9ba666a9fb6eaa14f46c7a6ae.zip gdb-eec1d04840a281f9ba666a9fb6eaa14f46c7a6ae.tar.gz gdb-eec1d04840a281f9ba666a9fb6eaa14f46c7a6ae.tar.bz2 |
Added MIPS16 PC masking for disassembly. See PR 12149.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 12 | ||||
-rw-r--r-- | gdb/config/mips/tm-mips.h | 8 |
2 files changed, 20 insertions, 0 deletions
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 <fche@cygnus.com> + + * 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 <marka@cygnus.com> + + * 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 <bothner@cygnus.com> * 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 "<IDT>" #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 |