mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-19 00:59:15 +08:00
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:
@ -3336,10 +3336,10 @@ rs6000_frame_cache (struct frame_info *this_frame, void **this_cache)
|
||||
if (!fdata.frameless)
|
||||
{
|
||||
/* Frameless really means stackless. */
|
||||
LONGEST backchain;
|
||||
ULONGEST backchain;
|
||||
|
||||
if (safe_read_memory_integer (cache->base, wordsize,
|
||||
byte_order, &backchain))
|
||||
if (safe_read_memory_unsigned_integer (cache->base, wordsize,
|
||||
byte_order, &backchain))
|
||||
cache->base = (CORE_ADDR) backchain;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user