This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: SH breakpoint problem
>
> This would be defined for the whole SH architecture then. What
> ramifications would it have? i.e. what would/could break?
>
> It does seem a bit odd that after going to lengths to analyze the prologue
> etc. to determine the right address, it goes and basically ignores that in
> favour of the debug info. Why did it bother since it already knew the
> address of the start of the function?
Prologue analysis does many things: determines the address of the
function proper; figures out what registes were saved where; and
computes the frame base address.
GDB normally prefers debug info (hopefully the compiler knew what it was
doing - er, except in this case) over hardwired analysis.
Andrew