mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-07-15 05:01:13 +08:00
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.
This commit is contained in:
@ -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
|
start-sanitize-ide
|
||||||
Thu Aug 13 15:15:59 1998 Drew Moseley <dmoseley@cygnus.com>
|
Thu Aug 13 15:15:59 1998 Drew Moseley <dmoseley@cygnus.com>
|
||||||
|
|
||||||
|
@ -1443,10 +1443,15 @@ gdb_listfuncs (clientData, interp, objc, objv)
|
|||||||
|
|
||||||
char *name = cplus_demangle (SYMBOL_NAME(sym), 0);
|
char *name = cplus_demangle (SYMBOL_NAME(sym), 0);
|
||||||
if (name)
|
if (name)
|
||||||
|
{
|
||||||
|
/* 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[0] = Tcl_NewStringObj(name, -1);
|
||||||
funcVals[1] = mangled;
|
funcVals[1] = mangled;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
funcVals[0] = Tcl_NewStringObj(SYMBOL_NAME(sym), -1);
|
funcVals[0] = Tcl_NewStringObj(SYMBOL_NAME(sym), -1);
|
||||||
|
Reference in New Issue
Block a user