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

[Bug breakpoints/12334] New: multiple-symbols mechanisms does notseem to work for C functions


http://sourceware.org/bugzilla/show_bug.cgi?id=12334

           Summary: multiple-symbols mechanisms does not seem to work for
                    C functions
           Product: gdb
           Version: 7.1
            Status: NEW
          Severity: normal
          Priority: P2
         Component: breakpoints
        AssignedTo: unassigned@sourceware.org
        ReportedBy: avi@checkpoint.com


For the following simple program GDB 7.1 defines the breakpoint in the first
symbol occurrence only, either in 'all' or 'ask' mode, rather then defining
multiple breapoints or proposing a menu with various implementations of a()
respectively.

(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

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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