This is the mail archive of the
insight@sourceware.org
mailing list for the Insight project.
gdbtk-stack: Remove spurious newlines from frame names
- From: "Maciej W. Rozycki" <macro at mips dot com>
- To: insight at sourceware dot org
- Cc: Chris Dearman <chris at mips dot com>, "Maciej W. Rozycki" <macro at linux-mips dot org>
- Date: Tue, 22 May 2007 17:29:39 +0100 (BST)
- Subject: gdbtk-stack: Remove spurious newlines from frame names
Hello,
Applied as obvious -- the strings would be printed in the stack window
with trailing '\' and 'n' characters literally.
2007-05-22 Chris Dearman <chris@mips.com>
* generic/gdbtk-stack.c (get_frame_name): Remove spurious
newlines from dummy/sigtramp frame names.
Maciej
12270-0.diff
Index: binutils-quilt/src/gdb/gdbtk/generic/gdbtk-stack.c
===================================================================
--- binutils-quilt.orig/src/gdb/gdbtk/generic/gdbtk-stack.c 2007-05-16 18:28:35.000000000 +0100
+++ binutils-quilt/src/gdb/gdbtk/generic/gdbtk-stack.c 2007-05-16 18:52:27.000000000 +0100
@@ -538,13 +538,13 @@
if (get_frame_type (fi) == DUMMY_FRAME)
{
- objv[0] = Tcl_NewStringObj ("<function called from gdb>\n", -1);
+ objv[0] = Tcl_NewStringObj ("<function called from gdb>", -1);
Tcl_ListObjAppendElement (interp, list, objv[0]);
return;
}
if ((get_frame_type (fi) == SIGTRAMP_FRAME))
{
- objv[0] = Tcl_NewStringObj ("<signal handler called>\n", -1);
+ objv[0] = Tcl_NewStringObj ("<signal handler called>", -1);
Tcl_ListObjAppendElement (interp, list, objv[0]);
return;
}