Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@false.org>
To: Pedro Alves <pedro@codesourcery.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [non-stop] 05/10 Refactor a bit infrun.c
Date: Wed, 25 Jun 2008 19:18:00 -0000	[thread overview]
Message-ID: <20080625191159.GC25575@caradoc.them.org> (raw)
In-Reply-To: <200806152204.44095.pedro@codesourcery.com>

On Sun, Jun 15, 2008 at 10:04:43PM +0100, Pedro Alves wrote:
> 2008-06-15  Pedro Alves  <pedro@codesourcery.com>
> 
> 	* infrun.c (currently_stepping): Take a struct
> 	thread_stepping_state instead of an execution_control_state.
> 	(struct thread_stepping_state): New, split from
> 	execution_control_state.
> 	(gtss, tss): New globals.
> 	(proceed): Clear the stepping state, set previous_inferior_ptid
> 	and clear infwait state.
> 	(init_wait_for_inferior): Clear the stepping state,
> 	previous_inferior_ptid and infwait state.
> 	(waiton_ptid, infwait_state): New, split from
> 	execution_control_state.
> 	(struct execution_control_state): Members that persist through
> 	events moved out to either struct thred_stepping_state or made
> 	global.  Deleted unneeded wp, saved_inferior_ptid, tmpstatus.
> 	(wait_for_inferior, fetch_inferior_event): Use local
> 	execution_control_state.  Update to execution_control_state split.
> 	(init_execution_control_state): Adjust.
> 	(init_thread_stepping_state): New, extracted from
> 	init_execution_control_state.
> 	(context_switch): Take a ptid instead of an
> 	execution_control_state.
> 	(context_switch_to): Adjust.
> 	(adjust_pc_after_break): Adjust.
> 	(init_infwait_state): New.
> 	(handle_inferior_event): Adjust.

OK.
> @@ -1491,13 +1510,16 @@ wait_for_inferior (int treat_exec_as_sig
>  void
>  fetch_inferior_event (void *client_data)
>  {
> +  struct execution_control_state ecss = ecss;

Please don't use this - IIRC it's a GCC extension to shut up
uninitialized variable warnings.  If there are warnings without the
initializer, just memset it.

-- 
Daniel Jacobowitz
CodeSourcery


  reply	other threads:[~2008-06-25 19:12 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-15 21:05 Pedro Alves
2008-06-25 19:18 ` Daniel Jacobowitz [this message]
2008-06-25 20:03   ` Pedro Alves
2008-07-02  3:33   ` Pedro Alves

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080625191159.GC25575@caradoc.them.org \
    --to=drow@false.org \
    --cc=gdb-patches@sourceware.org \
    --cc=pedro@codesourcery.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox