aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorMartin Hunt <hunt@redhat.com>1998-08-18 22:43:18 +0000
committerMartin Hunt <hunt@redhat.com>1998-08-18 22:43:18 +0000
commit1aecc7dccb3ed3995f7c2f92fd728e4cc6d5cc4c (patch)
tree0a96e8a2cb4ca1899445f857e503cd39e8675824 /gdb
parentb6ef9ad20f1a74d3764f15608b084f4ad0e44368 (diff)
downloadgdb-1aecc7dccb3ed3995f7c2f92fd728e4cc6d5cc4c.zip
gdb-1aecc7dccb3ed3995f7c2f92fd728e4cc6d5cc4c.tar.gz
gdb-1aecc7dccb3ed3995f7c2f92fd728e4cc6d5cc4c.tar.bz2
Tue Aug 18 15:42:40 1998 Martin M. Hunt <hunt@cygnus.com>
* gdbtk-cmds.c (gdb_listfuncs): Strip out global constructors and destructors from the function list.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog-gdbtk5
-rw-r--r--gdb/gdbtk-cmds.c9
2 files changed, 12 insertions, 2 deletions
diff --git a/gdb/ChangeLog-gdbtk b/gdb/ChangeLog-gdbtk
index 2705102..d7be994 100644
--- a/gdb/ChangeLog-gdbtk
+++ b/gdb/ChangeLog-gdbtk
@@ -1,3 +1,8 @@
+Tue Aug 18 15:42:40 1998 Martin M. Hunt <hunt@cygnus.com>
+
+ * gdbtk-cmds.c (gdb_listfuncs): Strip out global constructors
+ and destructors from the function list.
+
start-sanitize-ide
Thu Aug 13 15:15:59 1998 Drew Moseley <dmoseley@cygnus.com>
diff --git a/gdb/gdbtk-cmds.c b/gdb/gdbtk-cmds.c
index de44004..9cefd82 100644
--- a/gdb/gdbtk-cmds.c
+++ b/gdb/gdbtk-cmds.c
@@ -1444,8 +1444,13 @@ gdb_listfuncs (clientData, interp, objc, objv)
char *name = cplus_demangle (SYMBOL_NAME(sym), 0);
if (name)
{
- funcVals[0] = Tcl_NewStringObj(name, -1);
- funcVals[1] = mangled;
+ /* strip out "global constructors" and "global destructors" */
+ /* because we aren't interested in them. */
+ if (strncmp (name, "global ", 7))
+ {
+ funcVals[0] = Tcl_NewStringObj(name, -1);
+ funcVals[1] = mangled;
+ }
}
else
{