diff options
author | Peter Schauer <Peter.Schauer@mytum.de> | 1994-12-17 10:46:32 +0000 |
---|---|---|
committer | Peter Schauer <Peter.Schauer@mytum.de> | 1994-12-17 10:46:32 +0000 |
commit | 84bdfea6aa3c038b4e38f8615781ff3153bee2e3 (patch) | |
tree | 1eb9e1ea1d99fcb8bf0fff414ba9b9579abb0ba1 /gdb/dwarfread.c | |
parent | 091f3a62a880ead07711231dd29eac1523eba1a2 (diff) | |
download | gdb-84bdfea6aa3c038b4e38f8615781ff3153bee2e3.zip gdb-84bdfea6aa3c038b4e38f8615781ff3153bee2e3.tar.gz gdb-84bdfea6aa3c038b4e38f8615781ff3153bee2e3.tar.bz2 |
* c-typeprint.c (c_type_print_base): Use `show' of -1 to print
the return type of methods to avoid infinite loops with anonymous
types.
* valops.c (search_struct_field): Handle anonymous unions.
* sparc-tdep.c (sunos4_skip_trampoline_code): New function
to correctly handle steps into -g compiled PIC objects in the
main executable.
* config/sparc/tm-sun4os4.h (SKIP_TRAMPOLINE_CODE):
Redefine to use sunos4_skip_trampoline_code.
* dwarfread.c (DWARF_REG_TO_REGNUM): Provide a default mapping
from DWARF to GDB register numbering.
* dwarfread.c (locval): Use DWARF_REG_TO_REGNUM to map the
register value.
* config/mips/tm-mipsv4.h (DWARF_REG_TO_REGNUM): Define.
Diffstat (limited to 'gdb/dwarfread.c')
-rw-r--r-- | gdb/dwarfread.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/gdb/dwarfread.c b/gdb/dwarfread.c index aebe6bf..5afe795 100644 --- a/gdb/dwarfread.c +++ b/gdb/dwarfread.c @@ -192,6 +192,11 @@ typedef unsigned int DIE_REF; /* Reference to a DIE */ #define CHILL_PRODUCER "GNU Chill " #endif +/* Provide a default mapping from a DWARF register number to a gdb REGNUM. */ +#ifndef DWARF_REG_TO_REGNUM +#define DWARF_REG_TO_REGNUM(num) (num) +#endif + /* Flags to target_to_host() that tell whether or not the data object is expected to be signed. Used, for example, when fetching a signed integer in the target environment which is used as a signed integer @@ -2210,8 +2215,10 @@ locval (loc) break; case OP_REG: /* push register (number) */ - stack[++stacki] = target_to_host (loc, loc_value_size, - GET_UNSIGNED, current_objfile); + stack[++stacki] + = DWARF_REG_TO_REGNUM (target_to_host (loc, loc_value_size, + GET_UNSIGNED, + current_objfile)); loc += loc_value_size; isreg = 1; break; |