This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [rfc] Fix a corner case on sparc software single-step
- From: Daniel Jacobowitz <drow at false dot org>
- To: gdb-patches at sources dot redhat dot com
- Date: Sun, 21 Nov 2004 15:11:22 -0500
- Subject: Re: [rfc] Fix a corner case on sparc software single-step
- References: <20041113225704.GA32756@nevyn.them.org>
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