[PATCH] Postpone connecting from gdb_start to gdb_load in native-extended-gdbserver

Doug Evans dje@google.com
Fri Sep 14 22:57:00 GMT 2012


On Mon, Sep 3, 2012 at 9:01 PM, Yao Qi <yao@codesourcery.com> wrote:
> Hi,
> When running test cases with board file native-extended-gdbserver.exp
> (to test my 'general async notification' in all-stop mode), I find
> gdb connects to remote in proc gdb_start instead of gdb_load, so that some
> settings in test doesn't happen in remote, because they have to be set
> before GDB connects to remote.
> [...]
> --- a/gdb/testsuite/boards/native-extended-gdbserver.exp
> +++ b/gdb/testsuite/boards/native-extended-gdbserver.exp
> @@ -55,43 +55,14 @@ set_board_info gdb_server_prog "../gdbserver/gdbserver"
>
>  send_user "configuring for gdbserver local testing (extended-remote)\n";
>
> +set_board_info gdb,do_reload_on_run 1

fwiw, I agree this needs to be done differently.
For example, I thought one of the features of extended-remote is that
one didn't have to do a reload on run (so to speak).



More information about the Gdb-patches mailing list