gdbserver 7.1 unable to read registers

Daniel Jacobowitz
Mon Sep 27 14:44:00 GMT 2010

On Mon, Sep 27, 2010 at 12:25:38PM +0200, Steffen Dettmer wrote:
> I do not see an XML warning message when gdb tries to connect,
> but I have a problem with "call" in remote debugging
> (arm-elf-nonlinux-gdb-7.20):
>   (gdb) p strlen("")
>   Could not write register "cpsr"; remote failure reply 'E00'
>   An error occurred while in a function called from GDB.
>   Evaluation of the expression containing the function
>   (malloc) will be abandoned.
>   When the function is done executing, GDB will silently stop.
> Could this be caused by missing expat support, or would I
> definitely see a XML warning message in case?

No, this will not be related.  GDB always warns if it needs XML but
doesn't have expat.

This looks like a problem with your remote stub, specifically, what it
says on the cover: failed to write to cpsr.

Daniel Jacobowitz

More information about the Gdb mailing list