This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: Testsuite failures in gdb.gdb/selftest.exp
Daniel Jacobowitz <drow@false.org> writes:
> On Wed, Jan 31, 2007 at 06:55:36PM +0100, Andreas Schwab wrote:
>> On ia64 the address of gdb_stdout/gdb_stderr (together with a few other
>> variables) is definitely computed very early in the function. The
>> quit_flag case could indeed be an instance of the gcc bug.
>
> Could you just check in the ia64 bits, then, until you have a chance to
> check on PPC?
Looking a bit closer the ppc issue is definitely not an instance of the
gcc bug. The register that holds the value for quit_flag is set very
early in the function.
110: 3b 80 00 00 li r28,0
[...]
160: 3d 60 00 00 lis r11,0
162: R_PPC_ADDR16_HA quit_flag
[...]
16c: 93 8b 00 00 stw r28,0(r11)
16e: R_PPC_ADDR16_LO quit_flag
Thus the line number information generated by gcc looks correct (address
110 is the first insn after the prologue).
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."