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/config | |
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/config')
-rw-r--r-- | gdb/config/mips/tm-mips.h | 8 |
1 files changed, 8 insertions, 0 deletions
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 |