xcoffread.c: delete 'within_function' definition
authorPedro Alves <palves@redhat.com>
Tue, 10 Feb 2015 11:01:21 +0000 (11:01 +0000)
committerPedro Alves <palves@redhat.com>
Wed, 11 Feb 2015 11:32:38 +0000 (11:32 +0000)
Linking GDB as a C++ program, we get:

  src/gdb/buildsym.c:226: multiple definition of `within_function'
  xcoffread.o:src/gdb/xcoffread.c:181: first defined here

gdb/
2015-02-11  Pedro Alves  <palves@redhat.com>

* xcoffread.c (within_function): Delete.

gdb/ChangeLog
gdb/xcoffread.c

index 17a00a0bc12ccd302d8163c7f97b6aa46a02870a..02232a5e9e205e2e7470b25b98329420436f3392 100644 (file)
@@ -1,3 +1,7 @@
+2015-02-11  Pedro Alves  <palves@redhat.com>
+
+       * xcoffread.c (within_function): Delete.
+
 2015-02-11  Tom Tromey  <tromey@redhat.com>
            Pedro Alves <palves@redhat.com>
 
index dde9185c9147e3556fd657bc697820a88c237972..601571129b6273a56476499ea06a16c5deabed38 100644 (file)
@@ -119,11 +119,6 @@ static CORE_ADDR first_object_file_end;
 
 #define        INITIAL_STABVECTOR_LENGTH       40
 
-/* Nonzero if within a function (so symbols should be local,
-   if nothing says specifically).  */
-
-int within_function;
-
 /* Size of a COFF symbol.  I think it is always 18, so I'm not sure
    there is any reason not to just use a #define, but might as well
    ask BFD for the size and store it here, I guess.  */