public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
From: Doug Evans <dje@google.com>
To: gdb-patches@sourceware.org
Subject: [OB PATCH] inferior.h (struct inferior_suspend_state): Delete, unused.
Date: Tue, 23 Jun 2015 18:39:00 -0000	[thread overview]
Message-ID: <001a113333782a50fa051933b7a7@google.com> (raw)

Hi.

Committed as obvious.

2015-06-23  Doug Evans  <dje@google.com>

	* inferior.h (struct inferior_suspend_state): Delete, unused.
	All references deleted.

diff --git a/gdb/gdbthread.h b/gdb/gdbthread.h
index 0926f5f..fefad48 100644
--- a/gdb/gdbthread.h
+++ b/gdb/gdbthread.h
@@ -145,9 +145,7 @@ struct thread_control_state
    int stepping_command;
  };

-/* Inferior thread specific part of `struct infcall_suspend_state'.
-
-   Inferior process counterpart is `struct inferior_suspend_state'.  */
+/* Inferior thread specific part of `struct infcall_suspend_state'.  */

  struct thread_suspend_state
  {
diff --git a/gdb/inferior.h b/gdb/inferior.h
index 0d242fe..2054a2a 100644
--- a/gdb/inferior.h
+++ b/gdb/inferior.h
@@ -276,16 +276,6 @@ struct inferior_control_state
    enum stop_kind stop_soon;
  };

-/* Inferior process specific part of `struct infcall_suspend_state'.
-
-   Inferior thread counterpart is `struct thread_suspend_state'.  */
-
-#if 0 /* Currently unused and empty structures are not valid C.  */
-struct inferior_suspend_state
-{
-};
-#endif
-
  /* GDB represents the state of each program execution with an object
     called an inferior.  An inferior typically corresponds to a process
     but is more general and applies also to targets that do not have a
@@ -314,12 +304,6 @@ struct inferior
       See `struct inferior_control_state'.  */
    struct inferior_control_state control;

-  /* State of inferior process to restore after GDB is done with an  
inferior
-     call.  See `struct inferior_suspend_state'.  */
-#if 0 /* Currently unused and empty structures are not valid C.  */
-  struct inferior_suspend_state suspend;
-#endif
-
    /* True if this was an auto-created inferior, e.g. created from
       following a fork; false, if this inferior was manually added by
       the user, and we should not attempt to prune it
diff --git a/gdb/infrun.c b/gdb/infrun.c
index d8eb0b0..233d0f8 100644
--- a/gdb/infrun.c
+++ b/gdb/infrun.c
@@ -7256,9 +7256,6 @@ siginfo_make_value (struct gdbarch *gdbarch, struct  
internalvar *var,
  struct infcall_suspend_state
  {
    struct thread_suspend_state thread_suspend;
-#if 0 /* Currently unused and empty structures are not valid C.  */
-  struct inferior_suspend_state inferior_suspend;
-#endif

    /* Other fields:  */
    CORE_ADDR stop_pc;
@@ -7278,9 +7275,6 @@ save_infcall_suspend_state (void)
  {
    struct infcall_suspend_state *inf_state;
    struct thread_info *tp = inferior_thread ();
-#if 0
-  struct inferior *inf = current_inferior ();
-#endif
    struct regcache *regcache = get_current_regcache ();
    struct gdbarch *gdbarch = get_regcache_arch (regcache);
    gdb_byte *siginfo_data = NULL;
@@ -7314,9 +7308,6 @@ save_infcall_suspend_state (void)
      }

    inf_state->thread_suspend = tp->suspend;
-#if 0 /* Currently unused and empty structures are not valid C.  */
-  inf_state->inferior_suspend = inf->suspend;
-#endif

    /* run_inferior_call will not use the signal due to its `proceed' call  
with
       GDB_SIGNAL_0 anyway.  */
@@ -7335,16 +7326,10 @@ void
  restore_infcall_suspend_state (struct infcall_suspend_state *inf_state)
  {
    struct thread_info *tp = inferior_thread ();
-#if 0
-  struct inferior *inf = current_inferior ();
-#endif
    struct regcache *regcache = get_current_regcache ();
    struct gdbarch *gdbarch = get_regcache_arch (regcache);

    tp->suspend = inf_state->thread_suspend;
-#if 0 /* Currently unused and empty structures are not valid C.  */
-  inf->suspend = inf_state->inferior_suspend;
-#endif

    stop_pc = inf_state->stop_pc;

                 reply	other threads:[~2015-06-23 18:39 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=001a113333782a50fa051933b7a7@google.com \
    --to=dje@google.com \
    --cc=gdb-patches@sourceware.org \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).