This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

'info functions' question


Could someone please point out what I may be doing wrong here ?

[~/work/test/test4] gdb test4.x86
GNU gdb 6.0
Copyright 2003 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu"...
(gdb) info func main
All functions matching regular expression "main":

File test4.cpp:
int main(int, char **);
int mainFunc();

Non-debugging symbols:
0x08048490  __libc_start_main
(gdb) info func main$
All functions matching regular expression "main$":

File test4.cpp:
int main(int, char **);

Non-debugging symbols:
0x08048490  __libc_start_main
(gdb) info func func
All functions matching regular expression "func":

File test4.cpp:
int func();
void func(int);
int func(int, char**);
(gdb) info func func$
All functions matching regular expression "func$":
(gdb)

Why does 'main$' match main(int,char**), but 'func$' not match
any of the three ?

Thanks
Arnab


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]