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.
This commit is contained in:
parent
526f25b299
commit
e886a1732a
|
@ -1,3 +1,9 @@
|
|||
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.
|
||||
|
||||
2012-02-02 Tom Tromey <tromey@redhat.com>
|
||||
|
||||
PR gdb/13405:
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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 ());
|
||||
}
|
||||
|
||||
|
|
|
@ -10592,6 +10592,14 @@ remote_get_min_fast_tracepoint_insn_len (void)
|
|||
struct remote_state *rs = get_remote_state ();
|
||||
char *reply;
|
||||
|
||||
/* If we're not debugging a process yet, the IPA can't be
|
||||
loaded. */
|
||||
if (!target_has_execution)
|
||||
return 0;
|
||||
|
||||
/* Make sure the remote is pointing at the right process. */
|
||||
set_general_process ();
|
||||
|
||||
sprintf (rs->buf, "qTMinFTPILen");
|
||||
putpkt (rs->buf);
|
||||
reply = remote_get_noisy_reply (&target_buf, &target_buf_size);
|
||||
|
|
Loading…
Reference in New Issue