This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Does multiple-symbols mechanism work?
- From: Avi Gozlan <avi at checkpoint dot com>
- To: "'gdb at sourceware dot org'" <gdb at sourceware dot org>
- Cc: Avi Gozlan <avi at checkpoint dot com>
- Date: Thu, 16 Dec 2010 12:25:44 +0200
- Subject: 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