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: $zero on alpha should always be available


On Tuesday 24 May 2011 05:44:18, Joel Brobecker wrote:
> > Here's what I came up with by inspection.  I have no alpha machine to test
> > this on.  The alpha-nat.c change would need
> > checking on an alpha running OSF if we wanted to test this...
> 
> Thanks, Pedro.  I will try to test this tomorrow. I think Tru64 is
> one of the systems where expect or tcl no longer work for me, so
> I might not be able to run the testsuite. But worse case scenario,
> I can try running it against AdaCore's testsuite.

Thanks Joel.  Even if you can't run any testsuite,
confirming that nothing broke in an obvious way, and
that $zero appears as 0 to 'p $zero' or "info all-registers",
and not as <unavailable> with a running program would be a good
test already.  The alpha-nat.c change is trying to make 
the same fix for loading alpha-OSF cores.

> 
> > 2011-05-23  Pedro Alves  <pedro@codesourcery.com>
> > 
> > 	gdb/
> > 	* alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
> > 	for ALPHA_ZERO_REGNUM.
> > 	(alpha_supply_int_regs): Explicitly supply zero as the value for
> > 	ALPHA_ZERO_REGNUM in the register cache.
> > 	* alpha-nat.c (fetch_osf_core_registers): Ditto.
> 
> 

-- 
Pedro Alves


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