aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog-gdbtk4
-rw-r--r--gdb/gdbtk-cmds.c9
2 files changed, 12 insertions, 1 deletions
diff --git a/gdb/ChangeLog-gdbtk b/gdb/ChangeLog-gdbtk
index 447c21b..549fd06 100644
--- a/gdb/ChangeLog-gdbtk
+++ b/gdb/ChangeLog-gdbtk
@@ -1,3 +1,7 @@
+1998-09-18 Keith Seitz <keiths@cygnus.com>
+
+ * gdbtk-cmds.c (get_frame_name): Demangle function names, too.
+
Thu Sep 10 22:10:29 1998 Jim Ingham <jingham@cygnus.com>
*gdbtk-cmds.c (gdb_disassemble): Make sure the symtab's linetable is not
diff --git a/gdb/gdbtk-cmds.c b/gdb/gdbtk-cmds.c
index c2eabdb..9a22d3e 100644
--- a/gdb/gdbtk-cmds.c
+++ b/gdb/gdbtk-cmds.c
@@ -3118,7 +3118,14 @@ get_frame_name (interp, list, fi)
if (sal.symtab)
{
- objv[0] = Tcl_NewStringObj (funname, -1);
+ char *name = NULL;
+
+ if (funlang == language_cplus)
+ name = cplus_demangle (funname, 0);
+ if (name == NULL)
+ name = funname;
+
+ objv[0] = Tcl_NewStringObj (name, -1);
Tcl_ListObjAppendElement (interp, list, objv[0]);
}
else