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]

[ob] small exec_bfd cleanup


Checked in.

-- 
Pedro Alves

2009-05-22  Pedro Alves  <pedro@codesourcery.com>

	* remote.c (compare_sections_command): Don't declare exec_bfd.
	* tracepoint.c: Include "gdbcore.h".
	(remote_set_transparent_ranges): Don't declare exec_bfd.

---
 gdb/remote.c     |    1 -
 gdb/tracepoint.c |    2 +-
 2 files changed, 1 insertion(+), 2 deletions(-)

Index: src/gdb/remote.c
===================================================================
--- src.orig/gdb/remote.c	2009-05-22 01:47:12.000000000 +0100
+++ src/gdb/remote.c	2009-05-22 01:47:33.000000000 +0100
@@ -7152,7 +7152,6 @@ compare_sections_command (char *args, in
   struct remote_state *rs = get_remote_state ();
   asection *s;
   unsigned long host_crc, target_crc;
-  extern bfd *exec_bfd;
   struct cleanup *old_chain;
   char *tmp;
   char *sectdata;
Index: src/gdb/tracepoint.c
===================================================================
--- src.orig/gdb/tracepoint.c	2009-05-22 01:47:12.000000000 +0100
+++ src/gdb/tracepoint.c	2009-05-22 01:48:21.000000000 +0100
@@ -40,6 +40,7 @@
 #include "observer.h"
 #include "user-regs.h"
 #include "valprint.h"
+#include "gdbcore.h"
 
 #include "ax.h"
 #include "ax-gdb.h"
@@ -1247,7 +1248,6 @@ static long target_buf_size;
 static void
 remote_set_transparent_ranges (void)
 {
-  extern bfd *exec_bfd;
   asection *s;
   bfd_size_type size;
   bfd_vma lma;


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