diff options
author | Pedro Alves <palves@redhat.com> | 2012-02-02 18:04:29 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2012-02-02 18:04:29 +0000 |
commit | e886a1732a221f36ae53d7c46383ffcaba865fdc (patch) | |
tree | 9ccde901b2e6170de36d0a7789cf2a63ee7f46ac /gdb/gdbserver | |
parent | 526f25b299bdd3a21bded4102a192eb680817324 (diff) | |
download | gdb-e886a1732a221f36ae53d7c46383ffcaba865fdc.zip gdb-e886a1732a221f36ae53d7c46383ffcaba865fdc.tar.gz gdb-e886a1732a221f36ae53d7c46383ffcaba865fdc.tar.bz2 |
gdbserver/
2012-02-02 Pedro Alves <palves@redhat.com>
* tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
inferior.
gdb/
2012-02-02 Pedro Alves <palves@redhat.com>
* remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
the current inferior has no execution. Make sure the current
remote process matches gdb's current inferior.
Diffstat (limited to 'gdb/gdbserver')
-rw-r--r-- | gdb/gdbserver/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/gdbserver/tracepoint.c | 7 |
2 files changed, 12 insertions, 0 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index 0aa5a83..cdc8448 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,8 @@ +2012-02-02 Pedro Alves <palves@redhat.com> + + * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current + inferior. + 2012-01-27 Pedro Alves <palves@redhat.com> * linux-low.c (linux_child_pid_to_exec_file): Delete. diff --git a/gdb/gdbserver/tracepoint.c b/gdb/gdbserver/tracepoint.c index 3dc0073..5c565fe 100644 --- a/gdb/gdbserver/tracepoint.c +++ b/gdb/gdbserver/tracepoint.c @@ -3729,6 +3729,13 @@ cmd_qtstmat (char *packet) static void cmd_qtminftpilen (char *packet) { + if (current_inferior == NULL) + { + /* Indicate that the minimum length is currently unknown. */ + strcpy (packet, "0"); + return; + } + sprintf (packet, "%x", target_get_min_fast_tracepoint_insn_len ()); } |