public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug breakpoints/10738] Cannot set breakpoint on inlined function
       [not found] <bug-10738-4717@http.sourceware.org/bugzilla/>
@ 2010-12-18  8:05 ` x.tong at utoronto dot ca
  2010-12-23  2:05 ` tromey at redhat dot com
                   ` (21 subsequent siblings)
  22 siblings, 0 replies; 23+ messages in thread
From: x.tong at utoronto dot ca @ 2010-12-18  8:05 UTC (permalink / raw)
  To: gdb-prs

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.


^ permalink raw reply	[flat|nested] 23+ messages in thread

* [Bug breakpoints/10738] Cannot set breakpoint on inlined function
       [not found] <bug-10738-4717@http.sourceware.org/bugzilla/>
  2010-12-18  8:05 ` [Bug breakpoints/10738] Cannot set breakpoint on inlined function x.tong at utoronto dot ca
@ 2010-12-23  2:05 ` tromey at redhat dot com
  2010-12-23  2:09 ` x.tong at utoronto dot ca
                   ` (20 subsequent siblings)
  22 siblings, 0 replies; 23+ messages in thread
From: tromey at redhat dot com @ 2010-12-23  2:05 UTC (permalink / raw)
  To: gdb-prs

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

Tom Tromey <tromey at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |NEW
                 CC|                            |tromey at redhat dot com

--- Comment #2 from Tom Tromey <tromey at redhat dot com> 2010-12-21 18:30:04 UTC ---
No reason for this to be in "WAIT".

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


^ permalink raw reply	[flat|nested] 23+ messages in thread

* [Bug breakpoints/10738] Cannot set breakpoint on inlined function
       [not found] <bug-10738-4717@http.sourceware.org/bugzilla/>
  2010-12-18  8:05 ` [Bug breakpoints/10738] Cannot set breakpoint on inlined function x.tong at utoronto dot ca
  2010-12-23  2:05 ` tromey at redhat dot com
@ 2010-12-23  2:09 ` x.tong at utoronto dot ca
  2010-12-23  2:18 ` x.tong at utoronto dot ca
                   ` (19 subsequent siblings)
  22 siblings, 0 replies; 23+ messages in thread
From: x.tong at utoronto dot ca @ 2010-12-23  2:09 UTC (permalink / raw)
  To: gdb-prs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED

--- Comment #3 from Xin Tong <x.tong at utoronto dot ca> 2010-12-23 02:05:23 UTC ---
This is my first time contributing to gdb. I am an developer from IBM Java
Just-In-Time compiler team. I would like to give this defect a try. Is there
help i can resort to if I am stuck ?

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


^ permalink raw reply	[flat|nested] 23+ messages in thread

* [Bug breakpoints/10738] Cannot set breakpoint on inlined function
       [not found] <bug-10738-4717@http.sourceware.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2010-12-23  2:09 ` x.tong at utoronto dot ca
@ 2010-12-23  2:18 ` x.tong at utoronto dot ca
  2010-12-27  0:48 ` tromey at redhat dot com
                   ` (18 subsequent siblings)
  22 siblings, 0 replies; 23+ messages in thread
From: x.tong at utoronto dot ca @ 2010-12-23  2:18 UTC (permalink / raw)
  To: gdb-prs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at sourceware    |x.tong at utoronto dot ca
                   |dot org                     |

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


^ permalink raw reply	[flat|nested] 23+ messages in thread

* [Bug breakpoints/10738] Cannot set breakpoint on inlined function
       [not found] <bug-10738-4717@http.sourceware.org/bugzilla/>
                   ` (3 preceding siblings ...)
  2010-12-23  2:18 ` x.tong at utoronto dot ca
@ 2010-12-27  0:48 ` tromey at redhat dot com
  2011-01-03 20:53 ` tromey at redhat dot com
                   ` (17 subsequent siblings)
  22 siblings, 0 replies; 23+ messages in thread
From: tromey at redhat dot com @ 2010-12-27  0:48 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #4 from Tom Tromey <tromey at redhat dot com> 2010-12-23 02:17:42 UTC ---
(In reply to comment #3)
> This is my first time contributing to gdb. I am an developer from IBM Java
> Just-In-Time compiler team. I would like to give this defect a try. Is there
> help i can resort to if I am stuck ?

You can ask questions here, or on the gdb list, or on the gdb irc channel.

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


^ permalink raw reply	[flat|nested] 23+ messages in thread

* [Bug breakpoints/10738] Cannot set breakpoint on inlined function
       [not found] <bug-10738-4717@http.sourceware.org/bugzilla/>
                   ` (4 preceding siblings ...)
  2010-12-27  0:48 ` tromey at redhat dot com
@ 2011-01-03 20:53 ` tromey at redhat dot com
  2011-01-03 21:32 ` x.tong at utoronto dot ca
                   ` (16 subsequent siblings)
  22 siblings, 0 replies; 23+ messages in thread
From: tromey at redhat dot com @ 2011-01-03 20:53 UTC (permalink / raw)
  To: gdb-prs

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

Tom Tromey <tromey at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |NEW

--- Comment #6 from Tom Tromey <tromey at redhat dot com> 2011-01-03 20:53:34 UTC ---
(In reply to comment #5)

> "func" is not even included in the psymtab. I would like some pointers at this
> point. should I investigate why "func" is in dwarf2 but not in psymtab ? Any
> help would be greatly appreciated.

First, I'd like to note that what I am about to say may be wrong.
You will want to check it before making any decisions based on it.

Second, there are at least two cases to consider.  One case is the one
where all instances of a given function have been inlined.  Another
case is where the function has been inlined but also still exists as
an "out of line" function.

I think "break function" works ok if all instances have been inlined.

In the case where there is an out-of-line copy, I think it may be best
if "break function" noticed that "function" was inlined somewhere,
and then treat it as though "break file:line" were used instead.

You may want to trace through the "file:line" logic in this case to see
what happens.  That should tell you where to modify the gdb core to
make this happen.

You'll also need to change dwarf2read.c to read and respect DW_AT_inline.
Right now this is ignored.  In particular I think you need to check
for DW_INL_inlined, and use that to decide when to look for multiple
locations.

You may need to add a flag to function symbols to indicate when the special
inline processing should be done.

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


^ permalink raw reply	[flat|nested] 23+ messages in thread

* [Bug breakpoints/10738] Cannot set breakpoint on inlined function
       [not found] <bug-10738-4717@http.sourceware.org/bugzilla/>
                   ` (5 preceding siblings ...)
  2011-01-03 20:53 ` tromey at redhat dot com
@ 2011-01-03 21:32 ` x.tong at utoronto dot ca
  2011-01-03 21:59 ` tromey at redhat dot com
                   ` (15 subsequent siblings)
  22 siblings, 0 replies; 23+ messages in thread
From: x.tong at utoronto dot ca @ 2011-01-03 21:32 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #7 from Xin Tong <x.tong at utoronto dot ca> 2011-01-03 21:32:38 UTC ---
(In reply to comment #6)
> I think "break function" works ok if all instances have been inlined.
> 
> In the case where there is an out-of-line copy, I think it may be best
> if "break function" noticed that "function" was inlined somewhere,
> and then treat it as though "break file:line" were used instead.
> 
In this case, I do not think there is out-of-line copy for "func" . "func" is
only used in one place and is inlined there. unless you mean "out-of-line"( not
marked as inline) on the source code level. 

(In reply to comment #6)
> You'll also need to change dwarf2read.c to read and respect DW_AT_inline.
> Right now this is ignored.  In particular I think you need to check
> for DW_INL_inlined, and use that to decide when to look for multiple
> locations.
> 
> You may need to add a flag to function symbols to indicate when the special
> inline processing should be done.

I agree with you that further reading of dwarf section is needed and converting
break function into break file:line might be the way to go.

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


^ permalink raw reply	[flat|nested] 23+ messages in thread

* [Bug breakpoints/10738] Cannot set breakpoint on inlined function
       [not found] <bug-10738-4717@http.sourceware.org/bugzilla/>
                   ` (6 preceding siblings ...)
  2011-01-03 21:32 ` x.tong at utoronto dot ca
@ 2011-01-03 21:59 ` tromey at redhat dot com
  2011-04-04 19:01 ` sergiodj at redhat dot com
                   ` (14 subsequent siblings)
  22 siblings, 0 replies; 23+ messages in thread
From: tromey at redhat dot com @ 2011-01-03 21:59 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #8 from Tom Tromey <tromey at redhat dot com> 2011-01-03 21:59:30 UTC ---
(In reply to comment #7)

> In this case, I do not think there is out-of-line copy for "func" . "func" is
> only used in one place and is inlined there. unless you mean "out-of-line"( not
> marked as inline) on the source code level. 

It may be gcc-version-dependent.
Or maybe I am misremembering the result of my experiment :-)

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


^ permalink raw reply	[flat|nested] 23+ messages in thread

* [Bug breakpoints/10738] Cannot set breakpoint on inlined function
       [not found] <bug-10738-4717@http.sourceware.org/bugzilla/>
                   ` (7 preceding siblings ...)
  2011-01-03 21:59 ` tromey at redhat dot com
@ 2011-04-04 19:01 ` sergiodj at redhat dot com
  2011-04-04 19:05 ` x.tong at utoronto dot ca
                   ` (13 subsequent siblings)
  22 siblings, 0 replies; 23+ messages in thread
From: sergiodj at redhat dot com @ 2011-04-04 19:01 UTC (permalink / raw)
  To: gdb-prs

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

Sergio Durigan Junior <sergiodj at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sergiodj at redhat dot com

--- Comment #9 from Sergio Durigan Junior <sergiodj at redhat dot com> 2011-04-04 19:01:11 UTC ---
(In reply to comment #3)
> This is my first time contributing to gdb. I am an developer from IBM Java
> Just-In-Time compiler team. I would like to give this defect a try. Is there
> help i can resort to if I am stuck ?

Hello Xin,

I would like to know if you're working on this feature.

Thank you very much!

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


^ permalink raw reply	[flat|nested] 23+ messages in thread

* [Bug breakpoints/10738] Cannot set breakpoint on inlined function
       [not found] <bug-10738-4717@http.sourceware.org/bugzilla/>
                   ` (8 preceding siblings ...)
  2011-04-04 19:01 ` sergiodj at redhat dot com
@ 2011-04-04 19:05 ` x.tong at utoronto dot ca
  2011-04-14 15:34 ` jan.kratochvil at redhat dot com
                   ` (12 subsequent siblings)
  22 siblings, 0 replies; 23+ messages in thread
From: x.tong at utoronto dot ca @ 2011-04-04 19:05 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #10 from Xin Tong <x.tong at utoronto dot ca> 2011-04-04 19:04:59 UTC ---
I have been busy with my work in IBM recently and will have spare time in
May. you can either save the bug for me to work on in May or assign it to
someone else if there is someone who is willing to take it

Thank you

Xin


On Mon, Apr 4, 2011 at 3:01 PM, sergiodj at redhat dot com <
sourceware-bugzilla@sourceware.org> wrote:

> http://sourceware.org/bugzilla/show_bug.cgi?id=10738
>
> Sergio Durigan Junior <sergiodj at redhat dot com> changed:
>
>           What    |Removed                     |Added
>
> ----------------------------------------------------------------------------
>                 CC|                            |sergiodj at redhat dot com
>
> --- Comment #9 from Sergio Durigan Junior <sergiodj at redhat dot com>
> 2011-04-04 19:01:11 UTC ---
> (In reply to comment #3)
> > This is my first time contributing to gdb. I am an developer from IBM
> Java
> > Just-In-Time compiler team. I would like to give this defect a try. Is
> there
> > help i can resort to if I am stuck ?
>
> Hello Xin,
>
> I would like to know if you're working on this feature.
>
> Thank you very much!
>
> --
> 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.
> You are the assignee for the bug.
>

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


^ permalink raw reply	[flat|nested] 23+ messages in thread

* [Bug breakpoints/10738] Cannot set breakpoint on inlined function
       [not found] <bug-10738-4717@http.sourceware.org/bugzilla/>
                   ` (9 preceding siblings ...)
  2011-04-04 19:05 ` x.tong at utoronto dot ca
@ 2011-04-14 15:34 ` jan.kratochvil at redhat dot com
  2011-04-15  9:31 ` mjw at redhat dot com
                   ` (11 subsequent siblings)
  22 siblings, 0 replies; 23+ messages in thread
From: jan.kratochvil at redhat dot com @ 2011-04-14 15:34 UTC (permalink / raw)
  To: gdb-prs

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

Jan Kratochvil <jan.kratochvil at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jan.kratochvil at redhat
                   |                            |dot com

--- Comment #11 from Jan Kratochvil <jan.kratochvil at redhat dot com> 2011-04-14 15:33:49 UTC ---
Another case to consider:

File name                            Line number    Starting address
4.c                                            5            0x400490
4.c                                            5            0x40049a
4.c                                            5            0x400383
4.c                                            5            0x40038a
(other line numbers filtered out)

(gdb) b f
Breakpoint 1 at 0x400490: file 4.c, line 5.

But 0x400383 - the inlind instance in main - is filtered out because the
function name there is different.

-g -O2 -fno-omit-frame-pointer
gcc (GCC) 4.7.0 20110414 (experimental)
(the version should not matter much)

volatile int v;
__attribute__((always_inline)) void
f (void)
{
  v--;
}
int
main (void)
{
  v++;
  f ();
  v++;
  return 0;
}

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


^ permalink raw reply	[flat|nested] 23+ messages in thread

* [Bug breakpoints/10738] Cannot set breakpoint on inlined function
       [not found] <bug-10738-4717@http.sourceware.org/bugzilla/>
                   ` (10 preceding siblings ...)
  2011-04-14 15:34 ` jan.kratochvil at redhat dot com
@ 2011-04-15  9:31 ` mjw at redhat dot com
  2011-04-15 19:06 ` jan.kratochvil at redhat dot com
                   ` (10 subsequent siblings)
  22 siblings, 0 replies; 23+ messages in thread
From: mjw at redhat dot com @ 2011-04-15  9:31 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #12 from Mark Wielaard <mjw at redhat dot com> 2011-04-15 09:31:09 UTC ---
(In reply to comment #11)
> But 0x400383 - the inlind instance in main - is filtered out because the
> function name there is different.

Why is that? The inlined_subroutine that covers 0x400383 should have
an abstract_origin with as name "f".

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


^ permalink raw reply	[flat|nested] 23+ messages in thread

* [Bug breakpoints/10738] Cannot set breakpoint on inlined function
       [not found] <bug-10738-4717@http.sourceware.org/bugzilla/>
                   ` (11 preceding siblings ...)
  2011-04-15  9:31 ` mjw at redhat dot com
@ 2011-04-15 19:06 ` jan.kratochvil at redhat dot com
  2011-05-13 14:05 ` jason at redhat dot com
                   ` (9 subsequent siblings)
  22 siblings, 0 replies; 23+ messages in thread
From: jan.kratochvil at redhat dot com @ 2011-04-15 19:06 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #13 from Jan Kratochvil <jan.kratochvil at redhat dot com> 2011-04-15 19:04:20 UTC ---
(In reply to comment #12)
> Why is that? The inlined_subroutine that covers 0x400383 should have
> an abstract_origin with as name "f".

#0  block_linkage_function
#1  find_pc_sect_function
#2  find_pc_partial_function_gnu_ifunc
#3  find_pc_partial_function
#4  expand_line_sal_maybe

block_linkage_function /* The return value will not be an inlined function;
                          the containing function will be returned instead.  */

It may be a simple bug, not sure.

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


^ permalink raw reply	[flat|nested] 23+ messages in thread

* [Bug breakpoints/10738] Cannot set breakpoint on inlined function
       [not found] <bug-10738-4717@http.sourceware.org/bugzilla/>
                   ` (12 preceding siblings ...)
  2011-04-15 19:06 ` jan.kratochvil at redhat dot com
@ 2011-05-13 14:05 ` jason at redhat dot com
  2011-05-13 14:12 ` tromey at redhat dot com
                   ` (8 subsequent siblings)
  22 siblings, 0 replies; 23+ messages in thread
From: jason at redhat dot com @ 2011-05-13 14:05 UTC (permalink / raw)
  To: gdb-prs

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

Jason Merrill <jason at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jason at redhat dot com

--- Comment #14 from Jason Merrill <jason at redhat dot com> 2011-05-13 14:04:21 UTC ---
FYI, RMS has taken an interest in this issue, as an instance of his
longstanding emphasis on being able to debug optimized code.

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


^ permalink raw reply	[flat|nested] 23+ messages in thread

* [Bug breakpoints/10738] Cannot set breakpoint on inlined function
       [not found] <bug-10738-4717@http.sourceware.org/bugzilla/>
                   ` (13 preceding siblings ...)
  2011-05-13 14:05 ` jason at redhat dot com
@ 2011-05-13 14:12 ` tromey at redhat dot com
  2011-06-07 14:30 ` jan.kratochvil at redhat dot com
                   ` (7 subsequent siblings)
  22 siblings, 0 replies; 23+ messages in thread
From: tromey at redhat dot com @ 2011-05-13 14:12 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #15 from Tom Tromey <tromey at redhat dot com> 2011-05-13 14:10:53 UTC ---
(In reply to comment #14)
> FYI, RMS has taken an interest in this issue, as an instance of his
> longstanding emphasis on being able to debug optimized code.

As a workaround, right now "break file:line" will do the right thing
for inlined functions.

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


^ permalink raw reply	[flat|nested] 23+ messages in thread

* [Bug breakpoints/10738] Cannot set breakpoint on inlined function
       [not found] <bug-10738-4717@http.sourceware.org/bugzilla/>
                   ` (14 preceding siblings ...)
  2011-05-13 14:12 ` tromey at redhat dot com
@ 2011-06-07 14:30 ` jan.kratochvil at redhat dot com
  2011-06-24 23:57 ` jimenezrick at gmail dot com
                   ` (6 subsequent siblings)
  22 siblings, 0 replies; 23+ messages in thread
From: jan.kratochvil at redhat dot com @ 2011-06-07 14:30 UTC (permalink / raw)
  To: gdb-prs

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

Jan Kratochvil <jan.kratochvil at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Depends on|                            |12828

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


^ permalink raw reply	[flat|nested] 23+ messages in thread

* [Bug breakpoints/10738] Cannot set breakpoint on inlined function
       [not found] <bug-10738-4717@http.sourceware.org/bugzilla/>
                   ` (15 preceding siblings ...)
  2011-06-07 14:30 ` jan.kratochvil at redhat dot com
@ 2011-06-24 23:57 ` jimenezrick at gmail dot com
  2011-08-11 16:11 ` gbenson at redhat dot com
                   ` (5 subsequent siblings)
  22 siblings, 0 replies; 23+ messages in thread
From: jimenezrick at gmail dot com @ 2011-06-24 23:57 UTC (permalink / raw)
  To: gdb-prs

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

Ricardo Catalinas Jiménez <jimenezrick at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jimenezrick at gmail dot
                   |                            |com
   Target Milestone|6.8                         |7.3

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


^ permalink raw reply	[flat|nested] 23+ messages in thread

* [Bug breakpoints/10738] Cannot set breakpoint on inlined function
       [not found] <bug-10738-4717@http.sourceware.org/bugzilla/>
                   ` (16 preceding siblings ...)
  2011-06-24 23:57 ` jimenezrick at gmail dot com
@ 2011-08-11 16:11 ` gbenson at redhat dot com
  2011-08-17 16:20 ` tromey at redhat dot com
                   ` (4 subsequent siblings)
  22 siblings, 0 replies; 23+ messages in thread
From: gbenson at redhat dot com @ 2011-08-11 16:11 UTC (permalink / raw)
  To: gdb-prs

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

Gary Benson <gbenson at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |gbenson at redhat dot com

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


^ permalink raw reply	[flat|nested] 23+ messages in thread

* [Bug breakpoints/10738] Cannot set breakpoint on inlined function
       [not found] <bug-10738-4717@http.sourceware.org/bugzilla/>
                   ` (17 preceding siblings ...)
  2011-08-11 16:11 ` gbenson at redhat dot com
@ 2011-08-17 16:20 ` tromey at redhat dot com
  2011-12-02 14:25 ` gbenson at redhat dot com
                   ` (3 subsequent siblings)
  22 siblings, 0 replies; 23+ messages in thread
From: tromey at redhat dot com @ 2011-08-17 16:20 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #16 from Tom Tromey <tromey at redhat dot com> 2011-08-17 15:50:21 UTC ---
Note that this is related to PR 13105 now.

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


^ permalink raw reply	[flat|nested] 23+ messages in thread

* [Bug breakpoints/10738] Cannot set breakpoint on inlined function
       [not found] <bug-10738-4717@http.sourceware.org/bugzilla/>
                   ` (18 preceding siblings ...)
  2011-08-17 16:20 ` tromey at redhat dot com
@ 2011-12-02 14:25 ` gbenson at redhat dot com
  2012-03-16 16:49 ` cvs-commit at gcc dot gnu.org
                   ` (2 subsequent siblings)
  22 siblings, 0 replies; 23+ messages in thread
From: gbenson at redhat dot com @ 2011-12-02 14:25 UTC (permalink / raw)
  To: gdb-prs

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

Gary Benson <gbenson at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|x.tong at utoronto dot ca   |gbenson at redhat dot com

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


^ permalink raw reply	[flat|nested] 23+ messages in thread

* [Bug breakpoints/10738] Cannot set breakpoint on inlined function
       [not found] <bug-10738-4717@http.sourceware.org/bugzilla/>
                   ` (19 preceding siblings ...)
  2011-12-02 14:25 ` gbenson at redhat dot com
@ 2012-03-16 16:49 ` cvs-commit at gcc dot gnu.org
  2012-03-16 16:54 ` gbenson at redhat dot com
  2012-03-16 16:55 ` gbenson at redhat dot com
  22 siblings, 0 replies; 23+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2012-03-16 16:49 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #17 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> 2012-03-16 16:47:41 UTC ---
CVSROOT:    /cvs/src
Module name:    src
Changes by:    gary@sourceware.org    2012-03-16 16:47:34

Modified files:
    gdb            : ChangeLog NEWS dwarf2read.c linespec.c main.c 
                     symfile.h 
    gdb/doc        : ChangeLog gdb.texinfo 
    gdb/testsuite  : ChangeLog 
    gdb/testsuite/gdb.base: annota1.exp async-shell.exp 
    gdb/testsuite/lib: mi-support.exp 
Added files:
    gdb/testsuite/gdb.dwarf2: dw2-inline-break.S 
                              dw2-inline-break.exp 
    gdb/testsuite/gdb.opt: inline-break.c inline-break.exp 

Log message:
    gdb:
    PR breakpoints/10738
    * dwarf2read.c (use_deprecated_index_sections): New global.
    (struct partial_die_info): New member may_be_inlined.
    (read_partial_die): Set may_be_inlined where appropriate.
    (add_partial_subprogram): Add partial symbols for partial
    DIEs that may be inlined.
    (new_symbol_full): Add inlined subroutines to the current
    scope.
    (write_psymtabs_to_index): Bump version number.
    (dwarf2_read_index): Read only version 6 indices unless
    use_deprecated_index_sections is set.
    * linespec.c (symbol_and_data_callback): New structure.
    (iterate_inline_only): New function.
    (iterate_over_all_matching_symtabs): New argument
    "include_inline".  If nonzero, also call the callback for
    symbols representing inlined subroutines.
    (lookup_prefix_sym): Pass extra argument to the above.
    (find_function_symbols): Likewise.
    (add_matching_symbols_to_info): Likewise.
    * NEWS: Mention that GDB can now set breakpoints on inlined
    functions.

    gdb/doc:
    PR breakpoints/10738
    * gdb.texinfo (Inline Functions): Remove the now-unnecessary @item
    stating that GDB cannot set breakpoints on inlined functions.
    (Mode Options): Document --use-deprecated-index-sections.
    (Index Section Format): Document new index section version format.

    gdb/testsuite:
    PR breakpoints/10738
    * gdb.opt/inline-break.exp: New file.
    * gdb.opt/inline-break.c: Likewise.
    * gdb.dwarf2/inline-break.exp: Likewise.
    * gdb.dwarf2/inline-break.S: Likewise.
    * gdb.base/annota1.exp: Cope with old .gdb_index warnings.
    * gdb.base/async-shell.exp: Likewise.
    * lib/mi-support.exp (library_loaded_re): Likewise.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&r1=1.14019&r2=1.14020
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/NEWS.diff?cvsroot=src&r1=1.499&r2=1.500
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/dwarf2read.c.diff?cvsroot=src&r1=1.624&r2=1.625
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/linespec.c.diff?cvsroot=src&r1=1.152&r2=1.153
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/main.c.diff?cvsroot=src&r1=1.101&r2=1.102
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/symfile.h.diff?cvsroot=src&r1=1.105&r2=1.106
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/doc/ChangeLog.diff?cvsroot=src&r1=1.1286&r2=1.1287
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/doc/gdb.texinfo.diff?cvsroot=src&r1=1.933&r2=1.934
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/ChangeLog.diff?cvsroot=src&r1=1.3140&r2=1.3141
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.base/annota1.exp.diff?cvsroot=src&r1=1.46&r2=1.47
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.base/async-shell.exp.diff?cvsroot=src&r1=1.4&r2=1.5
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.dwarf2/dw2-inline-break.S.diff?cvsroot=src&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.dwarf2/dw2-inline-break.exp.diff?cvsroot=src&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.opt/inline-break.c.diff?cvsroot=src&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.opt/inline-break.exp.diff?cvsroot=src&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/lib/mi-support.exp.diff?cvsroot=src&r1=1.109&r2=1.110

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


^ permalink raw reply	[flat|nested] 23+ messages in thread

* [Bug breakpoints/10738] Cannot set breakpoint on inlined function
       [not found] <bug-10738-4717@http.sourceware.org/bugzilla/>
                   ` (20 preceding siblings ...)
  2012-03-16 16:49 ` cvs-commit at gcc dot gnu.org
@ 2012-03-16 16:54 ` gbenson at redhat dot com
  2012-03-16 16:55 ` gbenson at redhat dot com
  22 siblings, 0 replies; 23+ messages in thread
From: gbenson at redhat dot com @ 2012-03-16 16:54 UTC (permalink / raw)
  To: gdb-prs

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

Gary Benson <gbenson at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #18 from Gary Benson <gbenson at redhat dot com> 2012-03-16 16:52:06 UTC ---
I fixed it.

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


^ permalink raw reply	[flat|nested] 23+ messages in thread

* [Bug breakpoints/10738] Cannot set breakpoint on inlined function
       [not found] <bug-10738-4717@http.sourceware.org/bugzilla/>
                   ` (21 preceding siblings ...)
  2012-03-16 16:54 ` gbenson at redhat dot com
@ 2012-03-16 16:55 ` gbenson at redhat dot com
  22 siblings, 0 replies; 23+ messages in thread
From: gbenson at redhat dot com @ 2012-03-16 16:55 UTC (permalink / raw)
  To: gdb-prs

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

Gary Benson <gbenson at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|7.3                         |7.5

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


^ permalink raw reply	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2012-03-16 16:55 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-10738-4717@http.sourceware.org/bugzilla/>
2010-12-18  8:05 ` [Bug breakpoints/10738] Cannot set breakpoint on inlined function x.tong at utoronto dot ca
2010-12-23  2:05 ` tromey at redhat dot com
2010-12-23  2:09 ` x.tong at utoronto dot ca
2010-12-23  2:18 ` x.tong at utoronto dot ca
2010-12-27  0:48 ` tromey at redhat dot com
2011-01-03 20:53 ` tromey at redhat dot com
2011-01-03 21:32 ` x.tong at utoronto dot ca
2011-01-03 21:59 ` tromey at redhat dot com
2011-04-04 19:01 ` sergiodj at redhat dot com
2011-04-04 19:05 ` x.tong at utoronto dot ca
2011-04-14 15:34 ` jan.kratochvil at redhat dot com
2011-04-15  9:31 ` mjw at redhat dot com
2011-04-15 19:06 ` jan.kratochvil at redhat dot com
2011-05-13 14:05 ` jason at redhat dot com
2011-05-13 14:12 ` tromey at redhat dot com
2011-06-07 14:30 ` jan.kratochvil at redhat dot com
2011-06-24 23:57 ` jimenezrick at gmail dot com
2011-08-11 16:11 ` gbenson at redhat dot com
2011-08-17 16:20 ` tromey at redhat dot com
2011-12-02 14:25 ` gbenson at redhat dot com
2012-03-16 16:49 ` cvs-commit at gcc dot gnu.org
2012-03-16 16:54 ` gbenson at redhat dot com
2012-03-16 16:55 ` gbenson at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).