From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kevin Buettner To: Alexandre Oliva , Kevin Buettner Cc: Jonathan Larmour , gdb@sources.redhat.com Subject: Re: SH breakpoint problem Date: Tue, 07 Aug 2001 22:46:00 -0000 Message-id: <1010808054531.ZM26428@ocotillo.lan> References: <3B6F5625.ADBD6F53@redhat.com> <1010807224211.ZM23418@ocotillo.lan> X-SW-Source: 2001-08/msg00059.html On Aug 8, 1:54am, Alexandre Oliva wrote: > On Aug 7, 2001, Kevin Buettner wrote: > > > My opinion is that gdb should use the information obtained from > > find_pc_line() only to refine the limit searched by the prologue > > scanner. The prologue scanner needs to be taught that it must > > never scan past an instruction which modifies the flow of control > > (i.e, branch or call instructions). > > This would cause a yet-to-be-contributed port I worked on to stop the > search too early, because some peculiarities of the ABI require > function calls to be inserted in the prologue in certain > circumstances. That sort of thing is okay so long as you teach the prologue analyzer about these special functions. Kevin