diff options
author | Keith Seitz <keiths@cygnus> | 1998-09-18 23:45:45 +0000 |
---|---|---|
committer | Keith Seitz <keiths@cygnus> | 1998-09-18 23:45:45 +0000 |
commit | 864e89fc9d0ed8e5ae9acdd59647c0cbf63089fb (patch) | |
tree | 84a09c08b93b808cd36d0907a4575f64cbbfe7f9 /gdb | |
parent | 46fca0d897575db75629a5b88c0ac2149e280a01 (diff) | |
download | gdb-864e89fc9d0ed8e5ae9acdd59647c0cbf63089fb.zip gdb-864e89fc9d0ed8e5ae9acdd59647c0cbf63089fb.tar.gz gdb-864e89fc9d0ed8e5ae9acdd59647c0cbf63089fb.tar.bz2 |
* gdbtk-cmds.c (get_frame_name): Demangle function names, too.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog-gdbtk | 4 | ||||
-rw-r--r-- | gdb/gdbtk-cmds.c | 9 |
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 |