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: gdbserver build broken on amd64-linux


On Thu, Oct 21, 2004 at 10:33:36AM -0700, Joel Brobecker wrote:
> > > I tried it, I had a failure:
> > > 
> > >     (gdb) target remote localhost:2345
> > >     Remote debugging using localhost:2345
> > >     Couldn't establish connection to remote target
> > >     Remote register badly formatted: T0506:0000000000000000;07:c0f1ffbf7f000000;10:2
> > >     06f55952a000000;
> > >     here: 0000000;07:c0f1ffbf7f000000;10:206f55952a000000;
> > > 
> > > Not sure why there seems to be discrepancy in the protocol...
> > 
> > The host GDB is configured for amd64 rather than i386, right?  And
> > you've loaded a 64-bit binary using "file"?  That error means GDB
> > expected a 32-bit register.
> 
> Both the host gdb and gdbserver come from the same build on the same
> machine. So you're right, GDB was configured for amd64. But I don't
> understand the reference to i386. Do you mean gdbserver on amd64 only
> supports i386 binaries?

Bad phrasing: I was just verifying that it was amd64 rather than i386,
as a possible source of error.  You'll have to work out why your host
GDB expects only a 32-bit number.

-- 
Daniel Jacobowitz


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