This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

don't forward declare gdb_thread and inferior in defs.h (Re: simplify continuations a bit more.)


On Friday 27 May 2011 19:27:50, Pedro Alves wrote:
> (can't remove the struct thread_info and struct inferior
> forward declarations from defs.h without more changes)

Looked worse than it really is on first look.  Not much is relying
on those since they were put there in 2008.

Built an --enable-targets=all gdb on x86_64-linux successfully and applied.

-- 
Pedro Alves

2011-05-27  Pedro Alves  <pedro@codesourcery.com>

	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/breakpoint.h             |    1 +
 gdb/defs.h                   |    3 ---
 gdb/observer.sh              |    1 +
 gdb/python/python-internal.h |    1 +
 4 files changed, 3 insertions(+), 3 deletions(-)

Index: src/gdb/defs.h
===================================================================
--- src.orig/gdb/defs.h	2011-05-27 19:25:28.000000000 +0100
+++ src/gdb/defs.h	2011-05-27 19:29:26.760790228 +0100
@@ -730,9 +730,6 @@ extern struct command_line *read_command
 
 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;
Index: src/gdb/breakpoint.h
===================================================================
--- src.orig/gdb/breakpoint.h	2011-05-27 19:24:06.000000000 +0100
+++ src/gdb/breakpoint.h	2011-05-27 19:30:17.120790237 +0100
@@ -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
Index: src/gdb/observer.sh
===================================================================
--- src.orig/gdb/observer.sh	2011-01-13 15:07:31.000000000 +0000
+++ src/gdb/observer.sh	2011-05-27 19:31:25.280790248 +0100
@@ -64,6 +64,7 @@ struct bpstats;
 struct so_list;
 struct objfile;
 struct thread_info;
+struct inferior;
 EOF
         ;;
 esac
Index: src/gdb/python/python-internal.h
===================================================================
--- src.orig/gdb/python/python-internal.h	2011-03-01 16:00:18.000000000 +0000
+++ src/gdb/python/python-internal.h	2011-05-27 19:35:28.510790291 +0100
@@ -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;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]