Deduplicate require_running macros and move them up
authorSimon Marchi <simon.marchi@ericsson.com>
Fri, 15 Sep 2017 15:59:36 +0000 (17:59 +0200)
committerSimon Marchi <simon.marchi@ericsson.com>
Fri, 15 Sep 2017 15:59:36 +0000 (17:59 +0200)
commitf8a4e1192032044cdae544848865636f6e07a925
treec3cf2d18ea11e603c266bc19b1f3acee716bf2d5
parentef87240fd95c5f29a697eccf20b2f1f6dc3593a6
Deduplicate require_running macros and move them up

I find it very confusing to define the require_running in the middle of
the file, and re-define it to something else later in the middle of the
same file.  I think it would be better if those macros had different
names so that we know exactly what they do.

gdb/gdbserver/ChangeLog:

* server.c (require_running): Rename to ...
(require_running_or_return): ... this ...
(require_running_or_break): ... and this.
(handle_query, process_serial_event): Adjust.
gdb/gdbserver/ChangeLog
gdb/gdbserver/server.c