aboutsummaryrefslogtreecommitdiff
path: root/gdb/frame-unwind.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2021-03-24 23:31:49 -0400
committerSimon Marchi <simon.marchi@polymtl.ca>2021-03-24 23:38:19 -0400
commit1089d50d80bb1d78f018874124d71d7b92dc27f0 (patch)
tree00a3a029df61adb70016f9eb8fed0b09aefee318 /gdb/frame-unwind.c
parent7fe4c96eba9d6bc48c6b92d16ab332e4a277f332 (diff)
downloadgdb-1089d50d80bb1d78f018874124d71d7b92dc27f0.zip
gdb-1089d50d80bb1d78f018874124d71d7b92dc27f0.tar.gz
gdb-1089d50d80bb1d78f018874124d71d7b92dc27f0.tar.bz2
gdb: add names to unwindersusers/simark/frame-debug
Change-Id: I813f17777422425f0d08b22499817b23922e8ddb
Diffstat (limited to 'gdb/frame-unwind.c')
-rw-r--r--gdb/frame-unwind.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/gdb/frame-unwind.c b/gdb/frame-unwind.c
index ca03f0c..ec55167 100644
--- a/gdb/frame-unwind.c
+++ b/gdb/frame-unwind.c
@@ -127,10 +127,13 @@ frame_unwind_try_unwinder (struct frame_info *this_frame, void **this_cache,
try
{
+ frame_debug_printf ("trying unwinder \"%s\"", unwinder->name);
res = unwinder->sniffer (unwinder, this_frame, this_cache);
}
catch (const gdb_exception &ex)
{
+ frame_debug_printf ("caught exception: %s", ex.message->c_str ());
+
/* Catch all exceptions, caused by either interrupt or error.
Reset *THIS_CACHE, unless something reinitialized the frame
cache meanwhile, in which case THIS_FRAME/THIS_CACHE are now
@@ -153,9 +156,13 @@ frame_unwind_try_unwinder (struct frame_info *this_frame, void **this_cache,
}
if (res)
- return 1;
+ {
+ frame_debug_printf ("yes");
+ return 1;
+ }
else
{
+ frame_debug_printf ("no");
/* Don't set *THIS_CACHE to NULL here, because sniffer has to do
so. */
frame_cleanup_after_sniffer (this_frame);
@@ -173,6 +180,7 @@ frame_unwind_find_by_frame (struct frame_info *this_frame, void **this_cache)
{
FRAME_SCOPED_DEBUG_ENTER_EXIT;
+ frame_debug_printf ("this_frame=%d", frame_relative_level (this_frame));
struct gdbarch *gdbarch = get_frame_arch (this_frame);
struct frame_unwind_table *table