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: [RFA] gdbserver support for qCRC: (compare-sections)


On Tuesday 23 March 2010 18:16:13, Michael Snyder wrote:
> > A `require_running' call is missing here.
> 
> Sorry, what's that?  I'm not familiar with it.

See the other queries being handled in
server.c:handle_query.  Literally, see the

 require_running (own_buf);

calls.

If you connect with "target extended-remote"
instead of "target remote", and do "compare-sections" before
issueing "run" or "attach" from gdb, hence gdbserver has no
inferior process to debug yet, you want gdbserver to reply
error (E01) instead of trying to read from a non-existing
inferior process (and possibly crashing).

-- 
Pedro Alves


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