This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug breakpoints/12703] Different function breakpoints are set atsame pc address.
- From: "terry.guo at arm dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Tue, 26 Apr 2011 03:34:40 +0000
- Subject: [Bug breakpoints/12703] Different function breakpoints are set atsame pc address.
- Auto-submitted: auto-generated
- References: <bug-12703-4717@http.sourceware.org/bugzilla/>
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.