This is the mail archive of the gdb-patches@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]

Re: [patch] Single stepping over atomic instruction sets for GDB 6.6


On Mon, 23 Apr 2007 20:19:31 +0200, Luis Machado wrote:
...
> This is the patch for handling the sigle stepping of atomic instruction
> sets previously posted on this list refreshed for the stable version 6.6
> of GDB, in case users of this version would like to use it.

It fails for me on the attached testcase on gdb-6.6.ppc64 in 99% cases with
	infrun.c:1567: internal-error: handle_inferior_event: Assertion `SOFTWARE_SINGLE_STEP_P () && singlestep_breakpoints_inserted_p' failed.
	(tested on 4x CPU POWER5+, kernel-2.6.18-8.1.1.el5.ppc64)

The attached patch ON TOP OF YOURS fixes this problem (mostly, see below).

This patch has not been ported to HEAD as the last CVS version of your patch
I found is
	http://sourceware.org/ml/gdb-patches/2007-03/msg00145.html
which is no longer applicable to HEAD, please update it.

--

This fix is not 100%, though, it now passes only in 93% cases, in the remaining
7% of cases it will prematurely FAIL due to (missed breakpoint)
	Program exited normally.

I believe it is not a failure of this fix but some unrelated PPC port problem.
Unfortunately this "Program exited normally." FAIL becomes unreproducible while
trying to debug it (`set debug infrun 1'), there is some race.


Regards,
Jan

Attachment: gdb-6.6-stepping_past_singlestep.patch
Description: Text document


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