summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2012-06-13 18:15:05 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2012-06-13 18:15:05 +0000
commitdd80ea3c315b22e0751f62d7049969903d9c95ec (patch)
treeb2ce770ffb1fffe3209b1d2860383ead66e5c0e1
parentf3b5e28044f6033220a7935ce4d1437a0c5ab38a (diff)
downloadbinutils-gdb-dd80ea3c315b22e0751f62d7049969903d9c95ec.tar.gz
gdb/
PR build/14003 * inferior.h (struct inferior_suspend_state): Comment out. (struct inferior): Comment out the field suspend. * infrun.c (struct infcall_suspend_state): Comment out the field inferior_suspend. (save_infcall_suspend_state, restore_infcall_suspend_state): Comment out its assignment.
-rw-r--r--gdb/ChangeLog10
-rw-r--r--gdb/inferior.h4
-rw-r--r--gdb/infrun.c6
3 files changed, 20 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index ee7e9cb093b..fc59c2a97cf 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,15 @@
2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
+ PR build/14003
+ * inferior.h (struct inferior_suspend_state): Comment out.
+ (struct inferior): Comment out the field suspend.
+ * infrun.c (struct infcall_suspend_state): Comment out the field
+ inferior_suspend.
+ (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
+ out its assignment.
+
+2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
+
PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
* c-exp.y (classify_inner_name): Remove caller assumptions in the
function comment. Return ERROR for unresolved cases. Implement
diff --git a/gdb/inferior.h b/gdb/inferior.h
index dfcbda4c2f9..394596251ff 100644
--- a/gdb/inferior.h
+++ b/gdb/inferior.h
@@ -397,9 +397,11 @@ struct inferior_control_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
@@ -431,7 +433,9 @@ struct inferior
/* 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
diff --git a/gdb/infrun.c b/gdb/infrun.c
index e36e42e8741..d40ba3e097c 100644
--- a/gdb/infrun.c
+++ b/gdb/infrun.c
@@ -6629,7 +6629,9 @@ 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;
@@ -6683,7 +6685,9 @@ 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. */
@@ -6707,7 +6711,9 @@ restore_infcall_suspend_state (struct infcall_suspend_state *inf_state)
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;