This is the mail archive of the gdb-patches@sources.redhat.com 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]

Re: [RFC] breakpoints and function prologues...


Jim,

> I solved the problem a little differently, however.  The fact is that 
> decode_line_1 takes a funfirstline argument, which is supposed to tell 
> it whether to move the breakpoint past the prologue.  But it doesn't 
> look at this argument in the case of setting a file:line breakpoint.  
> So I just made it do that.  I like this solution, because it unifies in 
> concept the breakpoint moving done for function symbols and for 
> file:line symbols (though as you see, the actual motion is handled by 
> different pieces of code.)
> 
> I attached that patch below.

Thanks for your feedback.

I must say I really prefer your patch over mine. I hope this patch will
be approved for inclusion.

-- 
Joel


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