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] gdb.server testcases (resend)


On Wed, May 18, 2005 at 10:37:56AM -0500, Manoj Iyer wrote:
> 
> Daniel,
> 
> The patches did not apply cleanly to mainline, so I had to hand patch the
> files. Also, in the final link stage for gdbserver ld complained that:
> 
> /usr/bin/ld: warning: powerpc:common64 architecture of input file
> `inferiors.o' is incompatible with powerpc:common output
> 
> so I had to add a -m64 to the linker call.
> 
> gdbserver still broken:.
> 
> $ ./gdbserver uranus.ltc.austin.ibm.com /tmp/server
> Process /tmp/server created; pid = 4747
> reading register 70: Input/output error
> Exiting

My reading of the kernel source suggests that FPSCR should be accessible
using that address.  You should figure out why it isn't.

At a guess your headers are broken:
      /* NOTE: cagney/2005-02-08: On some 64-bit GNU/Linux systems the
         kernel headers incorrectly contained the 32-bit definition of
         PT_FPSCR.  For the 32-bit definition, floating-point
         registers occupy two 32-bit "slots", and the FPSCR lives in
         the secondhalf of such a slot-pair (hence +1).  For 64-bit,
         the FPSCR instead occupies the full 64-bit 2-word-slot and
         hence no adjustment is necessary.  Hack around this.  */

-- 
Daniel Jacobowitz
CodeSourcery, LLC


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