From 619cebe87fc24b0ca07054a7fd34c550648c417e Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Fri, 27 May 2011 18:39:49 +0000 Subject: [PATCH] 2011-05-27 Pedro Alves gdb/ * defs.h (struct thread_info, struct inferior): Delete forward declarations. * breakpoint.h (struct thread_info): New forward declaration. * observer.sh (struct inferior): New forward declaration. * python/python-internal.h (struct inferior): New forward declaration. --- gdb/ChangeLog | 9 +++++++++ gdb/breakpoint.h | 1 + gdb/defs.h | 3 --- gdb/observer.sh | 1 + gdb/python/python-internal.h | 1 + 5 files changed, 12 insertions(+), 3 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index b57fa0821a1..83203a21293 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,12 @@ +2011-05-27 Pedro Alves + + * defs.h (struct thread_info, struct inferior): Delete forward + declarations. + * breakpoint.h (struct thread_info): New forward declaration. + * observer.sh (struct inferior): New forward declaration. + * python/python-internal.h (struct inferior): New forward + declaration. + 2011-05-27 Pedro Alves * defs.h (struct continuation, continuation_ftype) diff --git a/gdb/breakpoint.h b/gdb/breakpoint.h index 2050c6d1d4a..c7ec3116d6d 100644 --- a/gdb/breakpoint.h +++ b/gdb/breakpoint.h @@ -29,6 +29,7 @@ struct value; struct block; struct breakpoint_object; struct get_number_or_range_state; +struct thread_info; /* This is the maximum number of bytes a breakpoint instruction can take. Feel free to increase it. It's just used in a few places to diff --git a/gdb/defs.h b/gdb/defs.h index 1795297fff8..c637a096a60 100644 --- a/gdb/defs.h +++ b/gdb/defs.h @@ -730,9 +730,6 @@ extern struct command_line *read_command_lines_1 (char * (*) (void), int, extern void free_command_lines (struct command_line **); -struct thread_info; -struct inferior; - /* String containing the current directory (what getwd would return). */ extern char *current_directory; diff --git a/gdb/observer.sh b/gdb/observer.sh index ba8ba4e192f..e4d5e7766bc 100755 --- a/gdb/observer.sh +++ b/gdb/observer.sh @@ -64,6 +64,7 @@ struct bpstats; struct so_list; struct objfile; struct thread_info; +struct inferior; EOF ;; esac diff --git a/gdb/python/python-internal.h b/gdb/python/python-internal.h index d3cb78854ab..b65109d13bd 100644 --- a/gdb/python/python-internal.h +++ b/gdb/python/python-internal.h @@ -106,6 +106,7 @@ struct value; struct language_defn; struct program_space; struct bpstats; +struct inferior; extern PyObject *gdb_module; extern PyTypeObject value_object_type; -- 2.30.2