* gdbtk-cmds.c (get_frame_name): Demangle function names, too.
authorKeith Seitz <keiths@cygnus>
Fri, 18 Sep 1998 23:45:45 +0000 (23:45 +0000)
committerKeith Seitz <keiths@cygnus>
Fri, 18 Sep 1998 23:45:45 +0000 (23:45 +0000)
gdb/ChangeLog-gdbtk
gdb/gdbtk-cmds.c

index 447c21bdb176963d47b4c6c06226202dac93ff3f..549fd06679e65965005e906943f2d0a6617e548d 100644 (file)
@@ -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
index c2eabdb7aca188c9368ce983249596b28849fdee..9a22d3e4a12c4b97f8913fa93339ce33c188be67 100644 (file)
@@ -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