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

Yao Qi <qiyao at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |qiyao at gcc dot gnu.org

--- Comment #3 from Yao Qi <qiyao at gcc dot gnu.org> 2011-05-06 04:17:03 UTC ---

> 
> 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.

This fix works, however, IMO, the root cause is that thumb_analyze_prologue is
unable to compute/analyze such prologue in your case.

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

Please send your patch to gcc-patches@, then maintainers can review/approve it.

-- 
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]