diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2021-06-29 12:03:50 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2021-06-29 12:03:50 -0400 |
commit | a05a883fbaba69d0f80806e46a9457727fcbe74c (patch) | |
tree | bf42b4af7d2b766c0424514e269a41e8ffc162f6 /gdb/testsuite | |
parent | dd4f75f2b6f0be9cb45204aacb3e22462d3c7cd5 (diff) | |
download | gdb-a05a883fbaba69d0f80806e46a9457727fcbe74c.zip gdb-a05a883fbaba69d0f80806e46a9457727fcbe74c.tar.gz gdb-a05a883fbaba69d0f80806e46a9457727fcbe74c.tar.bz2 |
gdb: introduce frame_debug_printf
Introduce frame_debug_printf, to convert the "frame" debug messages to
the new system. Replace fprint_frame with a frame_info::to_string
method that returns a string, like what was done with
frame_id::to_string. This makes it easier to use with
frame_debug_printf.
gdb/ChangeLog:
* frame.h (frame_debug_printf): New.
* frame.c: Use frame_debug_printf throughout when printing frame
debug messages.
* amd64-windows-tdep.c: Likewise.
* value.c: Likewise.
gdb/testsuite/ChangeLog:
* gdb.dwarf2/dw2-reg-undefined.exp: Update regexp.
Change-Id: I3c230b0814ea81c23af3e1aca1aac8d4ba91d726
Diffstat (limited to 'gdb/testsuite')
-rw-r--r-- | gdb/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/testsuite/gdb.dwarf2/dw2-reg-undefined.exp | 5 |
2 files changed, 8 insertions, 1 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 26dcea6..38d8bbc 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2021-06-29 Simon Marchi <simon.marchi@polymtl.ca> + + * gdb.dwarf2/dw2-reg-undefined.exp: Update regexp. + 2021-06-25 Andrew Burgess <andrew.burgess@embecosm.com> * gdb.base/info_sources_2-header.h: New file. diff --git a/gdb/testsuite/gdb.dwarf2/dw2-reg-undefined.exp b/gdb/testsuite/gdb.dwarf2/dw2-reg-undefined.exp index 3a8bbcb..2473a41 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-reg-undefined.exp +++ b/gdb/testsuite/gdb.dwarf2/dw2-reg-undefined.exp @@ -78,7 +78,10 @@ for {set f 0} {$f < 3} {incr f} { # Test that the debug log statement in frame_unwind_register_value produces # "not saved" and not "optimized out". gdb_test "set debug frame 1" -gdb_test {print $rax} {frame_unwind_register_value[^\r\n]+rax[^\r\n]+not saved.*} +gdb_test {print $rax} [multi_line \ + {\[frame\] frame_unwind_register_value: frame=0, regnum=0\(rax\)} \ + {\[frame\] frame_unwind_register_value: -> <not saved>} \ + {.*}] gdb_test "set debug frame 0" # Test that history values show "not saved" and not "optimized out". |