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/frame.h | |
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/frame.h')
-rw-r--r-- | gdb/frame.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/frame.h b/gdb/frame.h index 33ca5ab..f8314ad 100644 --- a/gdb/frame.h +++ b/gdb/frame.h @@ -216,6 +216,11 @@ extern const struct frame_id outer_frame_id; extern bool frame_debug; +/* Print a "frame" debug statement. */ + +#define frame_debug_printf(fmt, ...) \ + debug_prefixed_printf_cond (frame_debug, "frame", fmt, ##__VA_ARGS__) + /* Construct a frame ID. The first parameter is the frame's constant stack address (typically the outer-bound), and the second the frame's constant code address (typically the entry point). |