gdb/rs6000: Read backchain as unsigned.
Previously, backchain was read as a signed quantity, resulting in addresses like 0xfffffffffffeded0 instead of 0xfffeded0 returned by unwinder on 32-bit powerpc. While normally such addresses are masked off, this causes problems for tracepoints, since 0xfffffffffffeded0 is considered unavailable. Fixes a test failure in gdb.trace/entry-values.exp. gdb/ChangeLog: * corefile.c (safe_read_memory_unsigned_integer): New function. * gdbcore.h (safe_read_memory_unsigned_integer): New prototype. * rs6000-tdep.c (rs6000_frame_cache): Read backchain as unsigned.
This commit is contained in:
parent
a67914defb
commit
cc2c4da881
4 changed files with 30 additions and 3 deletions
|
@ -76,6 +76,9 @@ extern int safe_read_memory_integer (CORE_ADDR memaddr, int len,
|
|||
extern ULONGEST read_memory_unsigned_integer (CORE_ADDR memaddr,
|
||||
int len,
|
||||
enum bfd_endian byte_order);
|
||||
extern int safe_read_memory_unsigned_integer (CORE_ADDR memaddr, int len,
|
||||
enum bfd_endian byte_order,
|
||||
ULONGEST *return_value);
|
||||
|
||||
/* Read an integer from debugged code memory, given address,
|
||||
number of bytes, and byte order for code. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue