]> 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:37:54 +0000 (18:37 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Wed, 13 Mar 2013 18:37:54 +0000 (18:37 +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 a7289fdb1c89117c3a949df6a36b63eaf0fe1909..057133fc15c9faa84eec98e8e192f5fd5f225653 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-13  Yao Qi  <yao@codesourcery.com>
 
        * tracepoint.c (traceframe_read_tsv): Look for the last matched
index b5084c93673b1c045e9f146cccb40d46fd9a7491..523926d17907a78e833a984071973a0cafe9cf54 100644 (file)
@@ -5940,7 +5940,6 @@ static struct target_ops linux_target_ops = {
   NULL,
   NULL,
   NULL,
-  NULL,
 #endif
 };