This is the mail archive of the gdb@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]

Re: gdb & arm


On Thu, 4 Oct 2001, Quality Quorum wrote:

> I run into annoying problem with arm gdb, it is still there
> in gdb-20011002: if set a break point into function, then function
> parameters will be printed incorrectly when break point is hit.
>
> It seems that breakpoint is hit before the function prologue is complete,
> gdb uses symbol description applicable to the body of the function, and
> before function prologue is done symbols simply do not match
> their descriptions.

I've seen this problem recently, too. I'll assume that you've turned on
debugging info when compiling.

Can you do me a favor, set a breakpoint in arm_skip_prologue before
setting a breakpoint in arm-xxx-gdb? Does it use the debug info to figure
out where the prologue ends? Or does it try to figure it out manually?

I've seen cases where the compiler has output wrong debug info and caused
gdb to go to manual prologue decoding, which isn't very sophisticated. I
have a patch to beef it up a little, but it is just a hack: nothing that I
would submit to the external list.

I could send it to you if you were daring enough to try it. :-)
Keith



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