Re: Indicating function exit points in debug data

2019-03-21 Thread Justin Paston-Cooper
On Thu, 21 Mar 2019 at 09:11, Justin Paston-Cooper wrote: > > On Thu, 21 Mar 2019 at 08:23, Richard Biener > wrote: > > > > On Wed, Mar 20, 2019 at 8:05 PM Tom Tromey wrote: > > > > > > > "Segher" == Segher Boessenkool writes: > > > > > > >> Section 6.2.5.2 outlines the line number informa

Re: Indicating function exit points in debug data

2019-03-21 Thread Justin Paston-Cooper
On Thu, 21 Mar 2019 at 08:23, Richard Biener wrote: > > On Wed, Mar 20, 2019 at 8:05 PM Tom Tromey wrote: > > > > > "Segher" == Segher Boessenkool writes: > > > > >> Section 6.2.5.2 outlines the line number information state machine's > > >> opcodes. One of them is "DW_LNS_set_epilogue_begin

Re: Indicating function exit points in debug data

2019-03-21 Thread Richard Biener
On Wed, Mar 20, 2019 at 8:05 PM Tom Tromey wrote: > > > "Segher" == Segher Boessenkool writes: > > >> Section 6.2.5.2 outlines the line number information state machine's > >> opcodes. One of them is "DW_LNS_set_epilogue_begin". Its definition > >> is: > > Segher> How should this work with sh

Re: Indicating function exit points in debug data

2019-03-20 Thread Tom Tromey
> "Segher" == Segher Boessenkool writes: >> Section 6.2.5.2 outlines the line number information state machine's >> opcodes. One of them is "DW_LNS_set_epilogue_begin". Its definition >> is: Segher> How should this work with shrink-wrapping? The whole point of that is Segher> you do not tea

Re: Indicating function exit points in debug data

2019-03-20 Thread Segher Boessenkool
On Wed, Mar 20, 2019 at 10:13:23AM +, Justin Paston-Cooper wrote: > Section 6.2.5.2 outlines the line number information state machine's > opcodes. One of them is "DW_LNS_set_epilogue_begin". Its definition > is: > > - > The DW_LNS_set_epilogue_begin opcode takes no operands. It sets the >

Re: Indicating function exit points in debug data

2019-03-20 Thread Justin Paston-Cooper
On Wed, 20 Mar 2019 at 08:31, Richard Biener wrote: > > On Tue, Mar 19, 2019 at 9:38 PM Justin Paston-Cooper > wrote: > > > > Hello, > > > > In my message https://sourceware.org/ml/gdb/2019-03/msg00042.html to > > the gdb mailing list, I asked whether it would be possible to > > implement a comma

Re: Indicating function exit points in debug data

2019-03-20 Thread Richard Biener
On Tue, Mar 19, 2019 at 9:38 PM Justin Paston-Cooper wrote: > > Hello, > > In my message https://sourceware.org/ml/gdb/2019-03/msg00042.html to > the gdb mailing list, I asked whether it would be possible to > implement a command which breaks at all exit points of the current > stack frame. This w

Re: Indicating function exit points in debug data

2019-03-19 Thread Justin Paston-Cooper
On Tue, 19 Mar 2019 at 22:40, Florian Weimer wrote: > * Justin Paston-Cooper: > > > On Tue, 19 Mar 2019 at 21:52, Florian Weimer wrote: > >> > >> * Justin Paston-Cooper: > >> > >> > On Tue, 19 Mar 2019 at 21:29, Florian Weimer > wrote: > >> >> > >> >> * Justin Paston-Cooper: > >> >> > >> >> > T

Re: Indicating function exit points in debug data

2019-03-19 Thread Florian Weimer
* Justin Paston-Cooper: > On Tue, 19 Mar 2019 at 21:52, Florian Weimer wrote: >> >> * Justin Paston-Cooper: >> >> > On Tue, 19 Mar 2019 at 21:29, Florian Weimer wrote: >> >> >> >> * Justin Paston-Cooper: >> >> >> >> > Tom Tromey suggested in that thread that this would be quite easy on >> >> > g

Re: Indicating function exit points in debug data

2019-03-19 Thread Justin Paston-Cooper
On Tue, 19 Mar 2019 at 21:52, Florian Weimer wrote: > > * Justin Paston-Cooper: > > > On Tue, 19 Mar 2019 at 21:29, Florian Weimer wrote: > >> > >> * Justin Paston-Cooper: > >> > >> > Tom Tromey suggested in that thread that this would be quite easy on > >> > gdb's side if gcc indicates exit loca

Re: Indicating function exit points in debug data

2019-03-19 Thread Florian Weimer
* Justin Paston-Cooper: > On Tue, 19 Mar 2019 at 21:29, Florian Weimer wrote: >> >> * Justin Paston-Cooper: >> >> > Tom Tromey suggested in that thread that this would be quite easy on >> > gdb's side if gcc indicates exit locations in the DWARF data, for >> > instance in the C case, it would ind

Re: Indicating function exit points in debug data

2019-03-19 Thread Justin Paston-Cooper
On Tue, 19 Mar 2019 at 21:29, Florian Weimer wrote: > > * Justin Paston-Cooper: > > > Tom Tromey suggested in that thread that this would be quite easy on > > gdb's side if gcc indicates exit locations in the DWARF data, for > > instance in the C case, it would indicate the locations of return > >

Re: Indicating function exit points in debug data

2019-03-19 Thread Florian Weimer
* Justin Paston-Cooper: > Tom Tromey suggested in that thread that this would be quite easy on > gdb's side if gcc indicates exit locations in the DWARF data, for > instance in the C case, it would indicate the locations of return > statements. On a related note, he mentions that the "finish" comm