* remote.c (compare_sections_command): Don't declare exec_bfd.
authorPedro Alves <palves@redhat.com>
Fri, 22 May 2009 00:52:05 +0000 (00:52 +0000)
committerPedro Alves <palves@redhat.com>
Fri, 22 May 2009 00:52:05 +0000 (00:52 +0000)
* tracepoint.c: Include "gdbcore.h".
(remote_set_transparent_ranges): Don't declare exec_bfd.

gdb/ChangeLog
gdb/remote.c
gdb/tracepoint.c

index 561e771be40c1325b11c964271a1cb410b7aec0b..6aff604653920a49c6e2d56df17f8f2c59031475 100644 (file)
@@ -1,3 +1,9 @@
+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.
+
 2009-05-21  Pedro Alves  <pedro@codesourcery.com>
 
        * aix-thread.c (init_aix_thread_ops): Whitespace.
index 8a1a0d4c141c09a683b4c3014643361820394fb5..70a0248812d3f08d215f30eae31005a0a024c59f 100644 (file)
@@ -7152,7 +7152,6 @@ compare_sections_command (char *args, int from_tty)
   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 dece79964f47a954ce623bb6ed1f472a274498bc..317d1238d3979fa33b22bae06bfde715bed4520d 100644 (file)
@@ -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;