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/10738] Cannot set breakpoint on inlined function


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

Xin Tong <x.tong at utoronto dot ca> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2010.12.17 23:12:39
                 CC|                            |x.tong at utoronto dot ca
     Ever Confirmed|0                           |1

--- Comment #1 from Xin Tong <x.tong at utoronto dot ca> 2010-12-17 23:12:39 UTC ---
Tested against GNU gdb (GDB) 7.2. Able to produce the same error

Taking the same program from Mark


GNU gdb (GDB) 7.2
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/tongxin1/gdb-7.2/gdb/test...done.
(gdb) b func
Function "func" not defined.
Make breakpoint pending on future shared library load? (y or [n]) n
(gdb) b test.c:18
Breakpoint 1 at 0x400460: file test.c, line 18.
(gdb) list
10      bar (const int i, const long j)
11      {
12            return i * j;
13      }
14
15      static int
16      func (int (*f) ())
17      {
18            const fooer baz = { .i = 2, .j = 21 };
19              return f(baz.i, baz.j);
(gdb) r
Starting program: /home/tongxin1/gdb-7.2/gdb/test

Breakpoint 1, main (argc=1, argv=0x7fffffffe298, envp=0x7fffffffe2a8) at
test.c:25
25            return func (&bar) - 42;
(gdb)


DWARF file 

 <2><fc>: Abbrev Number: 14 (DW_TAG_inlined_subroutine)
     DW_AT_abstract_origin: <7f>
     DW_AT_low_pc      : 0x400460
     DW_AT_high_pc     : 0x400472
     DW_AT_call_file   : 1
     DW_AT_call_line   : 25

-- 
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]