From c000bc2a96b471953cac91c09985551115d66600 Mon Sep 17 00:00:00 2001 From: Bernd Edlinger Date: Sun, 29 Dec 2019 01:31:49 +0100 Subject: [PATCH] bt: print "inlined" instead of the PC for inline frames --- gdb/stack.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/stack.c b/gdb/stack.c index fed4824..e39c073 100644 --- a/gdb/stack.c +++ b/gdb/stack.c @@ -1333,10 +1333,15 @@ print_frame (const frame_print_options &fp_opts, if (opts.addressprint) if (!sal.symtab || frame_show_address (frame, sal) + || (sal.line != 0 && sal.pc == 0 && sal.end == 0 + && frame_relative_level (frame) > 0) || print_what == LOC_AND_ADDRESS) { annotate_frame_address (); - if (pc_p) + if (sal.line != 0 && sal.pc == 0 && sal.end == 0 + && frame_relative_level (frame) > 0) + uiout->text ("inlined"); + else if (pc_p) print_pc (uiout, gdbarch, frame, pc); else uiout->field_string ("addr", "", -- 1.9.1