]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Extraneous NULL in linux_target_ops when HAVE_LINUX_BTRACE not defined
authorJoel Brobecker <brobecker@gnat.com>
Wed, 13 Mar 2013 18:54:49 +0000 (18:54 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Wed, 13 Mar 2013 18:54:49 +0000 (18:54 +0000)
This fixes the followin error when HAVE_LINUX_BTRACE is not defined:

    linux-low.c:5943: error: excess elements in struct initializer
    linux-low.c:5943: error: (near initialization for 'linux_target_ops')

gdb/gdbserver/ChangeLog:

        * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
        Remove extraneous NULL element.

gdb/gdbserver/ChangeLog
gdb/gdbserver/linux-low.c

index 9a5ae02a4fb9f83fcfffe3eb24f7a2de266b7022..e76dc4a4db40f6a9da727a1515c2e8946c676cad 100644 (file)
@@ -1,3 +1,8 @@
+2013-03-13  Joel Brobecker  <brobecker@adacore.com>
+
+       * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
+       Remove extraneous NULL element.
+
 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
 
        * target.h (struct target_ops): Add btrace ops.
index b5084c93673b1c045e9f146cccb40d46fd9a7491..523926d17907a78e833a984071973a0cafe9cf54 100644 (file)
@@ -5940,7 +5940,6 @@ static struct target_ops linux_target_ops = {
   NULL,
   NULL,
   NULL,
-  NULL,
 #endif
 };