This is the mail archive of the gdb@sourceware.org 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]

Does multiple-symbols mechanism work?


Hi,

I failed enabling the 'multiple-symbols' mechanism. Per debugging the following simple program it seems that this mechanism does not work on GDB 7.1. Apparently GDB defines the breakpoint in the first symbol occurrence only, either in 'all' or 'ask' mode. Am I missing something?

(gdb) l
1       #include <stdio.h>
2
3       void a(int i)
4       {
5         printf("%i\n", i);
6       }
7
8       void a()
9       {
10        a(1);
11      }
12
13      main()
14      {
15        a();
16      }
17
(gdb) set multiple-symbols ask
(gdb) b a
Breakpoint 1 at 0x804835e: file try.cc, line 5.
(gdb) show version
GNU gdb (GDB) 7.1

Avi


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