This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[obv] Fix set debug frame output for TAILCALL_FRAME
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Thu, 26 Sep 2013 22:03:04 +0200
- Subject: [obv] Fix set debug frame output for TAILCALL_FRAME
- Authentication-results: sourceware.org; auth=none
Hi,
set debug frame 1 could print:
{ get_prev_frame_1 (this_frame=2) -> {level=3,type=<unknown type>,unwind=0x104aaa0,pc=0x40051f,id=<unknown>,func=<unknown>} // cached
^^^^^^^^^^^^^^
Checked in as obvious, I forgot about updating this function when implementing
TAILCALL_FRAME.
Jan
https://sourceware.org/ml/gdb-cvs/2013-09/msg00161.html
--- src/gdb/ChangeLog 2013/09/26 07:00:00 1.16040
+++ src/gdb/ChangeLog 2013/09/26 20:01:24 1.16041
@@ -1,3 +1,9 @@
+2013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ Fix set debug frame output.
+ * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
+ SENTINEL_FRAME entry lower to match enum frame_type order.
+
2013-09-26 Pierre Muller <muller@sourceware.org>
Replace constant values 8 to 15 by AMD64_R8_REGNUM to
--- src/gdb/frame.c 2013/05/17 08:34:18 1.318
+++ src/gdb/frame.c 2013/09/26 20:01:25 1.319
@@ -314,8 +314,8 @@
case INLINE_FRAME:
fprintf_unfiltered (file, "INLINE_FRAME");
return;
- case SENTINEL_FRAME:
- fprintf_unfiltered (file, "SENTINEL_FRAME");
+ case TAILCALL_FRAME:
+ fprintf_unfiltered (file, "TAILCALL_FRAME");
return;
case SIGTRAMP_FRAME:
fprintf_unfiltered (file, "SIGTRAMP_FRAME");
@@ -323,6 +323,9 @@
case ARCH_FRAME:
fprintf_unfiltered (file, "ARCH_FRAME");
return;
+ case SENTINEL_FRAME:
+ fprintf_unfiltered (file, "SENTINEL_FRAME");
+ return;
default:
fprintf_unfiltered (file, "<unknown type>");
return;