This is the mail archive of the gdb-patches@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]
Other format: [Raw text]

Re: [rfc] Fix a corner case on sparc software single-step


On Sat, Nov 13, 2004 at 05:57:04PM -0500, Daniel Jacobowitz wrote:
> A Debian user noticed that GDB has an internal error when stepping over a
> call to a NULL function pointer.  The problem was some code in sparc-tdep.c
> which uses 0 to mean "don't insert a breakpoint".  This patch handles only
> the 0 case specially, by not inserting any breakpoint and trusting to
> receive a fault when we reach 0; this code would need a larger rewrite to
> handle an OS where code can validly live at address zero.
> 
> Comments?  Otherwise, I'll plan to commit this in a couple of days.

> 2004-11-13  Daniel Jacobowitz  <dan@debian.org>
> 
> 	* sparc-tdep.c (sparc_software_single_step): Handle stepping to NULL.

I have checked this in.

-- 
Daniel Jacobowitz


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