2010-09-06 Yao Qi <yao@codesourcery.com>
* linux-low.c (linux_kill): Remove unused variable. (linux_stabilize_threads): Likewise. * server.c (start_inferior): Likewise. (queue_stop_reply_callback): Likewise. * tracepoint.c (do_action_at_tracepoint): Likewise.
This commit is contained in:
parent
0cccb68320
commit
32fcada322
4 changed files with 10 additions and 14 deletions
|
@ -1,3 +1,11 @@
|
||||||
|
2010-09-06 Yao Qi <yao@codesourcery.com>
|
||||||
|
|
||||||
|
* linux-low.c (linux_kill): Remove unused variable.
|
||||||
|
(linux_stabilize_threads): Likewise.
|
||||||
|
* server.c (start_inferior): Likewise.
|
||||||
|
(queue_stop_reply_callback): Likewise.
|
||||||
|
* tracepoint.c (do_action_at_tracepoint): Likewise.
|
||||||
|
|
||||||
2010-09-06 Yao Qi <yao@codesourcery.com>
|
2010-09-06 Yao Qi <yao@codesourcery.com>
|
||||||
|
|
||||||
* linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
|
* linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
|
||||||
|
|
|
@ -775,7 +775,6 @@ linux_kill (int pid)
|
||||||
{
|
{
|
||||||
struct process_info *process;
|
struct process_info *process;
|
||||||
struct lwp_info *lwp;
|
struct lwp_info *lwp;
|
||||||
struct thread_info *thread;
|
|
||||||
int wstat;
|
int wstat;
|
||||||
int lwpid;
|
int lwpid;
|
||||||
|
|
||||||
|
@ -792,7 +791,6 @@ linux_kill (int pid)
|
||||||
/* See the comment in linux_kill_one_lwp. We did not kill the first
|
/* See the comment in linux_kill_one_lwp. We did not kill the first
|
||||||
thread in the list, so do so now. */
|
thread in the list, so do so now. */
|
||||||
lwp = find_lwp_pid (pid_to_ptid (pid));
|
lwp = find_lwp_pid (pid_to_ptid (pid));
|
||||||
thread = get_lwp_thread (lwp);
|
|
||||||
|
|
||||||
if (debug_threads)
|
if (debug_threads)
|
||||||
fprintf (stderr, "lk_1: killing lwp %ld, for pid: %d\n",
|
fprintf (stderr, "lk_1: killing lwp %ld, for pid: %d\n",
|
||||||
|
@ -1935,13 +1933,12 @@ linux_stabilize_threads (void)
|
||||||
{
|
{
|
||||||
struct target_waitstatus ourstatus;
|
struct target_waitstatus ourstatus;
|
||||||
struct lwp_info *lwp;
|
struct lwp_info *lwp;
|
||||||
ptid_t ptid;
|
|
||||||
int wstat;
|
int wstat;
|
||||||
|
|
||||||
/* Note that we go through the full wait even loop. While
|
/* Note that we go through the full wait even loop. While
|
||||||
moving threads out of jump pad, we need to be able to step
|
moving threads out of jump pad, we need to be able to step
|
||||||
over internal breakpoints and such. */
|
over internal breakpoints and such. */
|
||||||
ptid = linux_wait_1 (minus_one_ptid, &ourstatus, 0);
|
linux_wait_1 (minus_one_ptid, &ourstatus, 0);
|
||||||
|
|
||||||
if (ourstatus.kind == TARGET_WAITKIND_STOPPED)
|
if (ourstatus.kind == TARGET_WAITKIND_STOPPED)
|
||||||
{
|
{
|
||||||
|
|
|
@ -273,13 +273,12 @@ start_inferior (char **argv)
|
||||||
if (wrapper_argv != NULL)
|
if (wrapper_argv != NULL)
|
||||||
{
|
{
|
||||||
struct thread_resume resume_info;
|
struct thread_resume resume_info;
|
||||||
ptid_t ptid;
|
|
||||||
|
|
||||||
resume_info.thread = pid_to_ptid (signal_pid);
|
resume_info.thread = pid_to_ptid (signal_pid);
|
||||||
resume_info.kind = resume_continue;
|
resume_info.kind = resume_continue;
|
||||||
resume_info.sig = 0;
|
resume_info.sig = 0;
|
||||||
|
|
||||||
ptid = mywait (pid_to_ptid (signal_pid), &last_status, 0, 0);
|
mywait (pid_to_ptid (signal_pid), &last_status, 0, 0);
|
||||||
|
|
||||||
if (last_status.kind != TARGET_WAITKIND_STOPPED)
|
if (last_status.kind != TARGET_WAITKIND_STOPPED)
|
||||||
return signal_pid;
|
return signal_pid;
|
||||||
|
@ -2155,11 +2154,6 @@ queue_stop_reply_callback (struct inferior_list_entry *entry, void *arg)
|
||||||
manage the thread's last_status field. */
|
manage the thread's last_status field. */
|
||||||
if (the_target->thread_stopped == NULL)
|
if (the_target->thread_stopped == NULL)
|
||||||
{
|
{
|
||||||
struct target_waitstatus status;
|
|
||||||
|
|
||||||
status.kind = TARGET_WAITKIND_STOPPED;
|
|
||||||
status.value.sig = TARGET_SIGNAL_TRAP;
|
|
||||||
|
|
||||||
/* Pass the last stop reply back to GDB, but don't notify
|
/* Pass the last stop reply back to GDB, but don't notify
|
||||||
yet. */
|
yet. */
|
||||||
queue_stop_reply (entry->id, &thread->last_status);
|
queue_stop_reply (entry->id, &thread->last_status);
|
||||||
|
|
|
@ -4126,13 +4126,10 @@ do_action_at_tracepoint (struct tracepoint_hit_ctx *ctx,
|
||||||
}
|
}
|
||||||
case 'R':
|
case 'R':
|
||||||
{
|
{
|
||||||
struct collect_registers_action *raction;
|
|
||||||
|
|
||||||
unsigned char *regspace;
|
unsigned char *regspace;
|
||||||
struct regcache tregcache;
|
struct regcache tregcache;
|
||||||
struct regcache *context_regcache;
|
struct regcache *context_regcache;
|
||||||
|
|
||||||
raction = (struct collect_registers_action *) taction;
|
|
||||||
|
|
||||||
trace_debug ("Want to collect registers");
|
trace_debug ("Want to collect registers");
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue