diff options
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 10 | ||||
-rw-r--r-- | gdb/printcmd.c | 4 |
2 files changed, 8 insertions, 6 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 00e6819..4d9ec41 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2019-07-30 Kevin Buettner <kevinb@redhat.com> + + * printcmd.c (print_address_symbolic): Print negative offsets. + (build_address_symbolic): Force signed arithmetic when computing + offset. + 2019-07-30 Christian Biesinger <cbiesinger@google.com> PR/24474: Add a function to lookup static variables. @@ -84,10 +90,6 @@ * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions for entry pc when entry pc is out of range for that FDE. - * printcmd.c (print_address_symbolic): Print negative offsets. - (build_address_symbolic): Force signed arithmetic when computing - offset. - 2019-07-26 Brian Callahan <bcallah@openbsd.org> PR gdb/24839: diff --git a/gdb/printcmd.c b/gdb/printcmd.c index efe6874..1faa09e 100644 --- a/gdb/printcmd.c +++ b/gdb/printcmd.c @@ -540,7 +540,7 @@ print_address_symbolic (struct gdbarch *gdbarch, CORE_ADDR addr, fputs_filtered ("<", stream); fputs_styled (name.c_str (), function_name_style.style (), stream); if (offset != 0) - fprintf_filtered (stream, "+%u", (unsigned int) offset); + fprintf_filtered (stream, "%+d", offset); /* Append source filename and line number if desired. Give specific line # of this addr, if we have it; else line # of the nearest symbol. */ @@ -680,7 +680,7 @@ build_address_symbolic (struct gdbarch *gdbarch, && name_location + max_symbolic_offset > name_location) return 1; - *offset = addr - name_location; + *offset = (LONGEST) addr - name_location; *name = name_temp; |