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

[Bug breakpoints/12703] Different function breakpoints are set atsame pc address.


http://sourceware.org/bugzilla/show_bug.cgi?id=12703

--- Comment #2 from Terry Guo <terry.guo at arm dot com> 2011-04-26 03:34:24 UTC ---
(In reply to comment #1)
> Created attachment 5687 [details]
> Patch to fix this issue.

I looked into the function arm_skip_prologue which uses limit_pc to indicate
the range of prologue. If it fails to get an acute pc boundary, it will use
pc+64 as limit_pc. For my case, the pc+64 exceeds the body of function
fault_isr and reaches the prologue of following function reset_isr. This
mechanism cause GDB to  set two different function points at the same pc
address.

I come up with attached patch to ensure the limit_pc shouldn't exceed the body
of current functions. It fixes this issue.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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