From: Joel Brobecker Date: Wed, 13 Mar 2013 18:54:49 +0000 (+0000) Subject: Extraneous NULL in linux_target_ops when HAVE_LINUX_BTRACE not defined X-Git-Tag: gdb_7_6-2013-04-26-release~109 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=80ed4cfee016f17b74da2ac6e4c518f529ef65ee;p=thirdparty%2Fbinutils-gdb.git Extraneous NULL in linux_target_ops when HAVE_LINUX_BTRACE not defined 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. --- diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index 9a5ae02a4fb..e76dc4a4db4 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,8 @@ +2013-03-13 Joel Brobecker + + * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]: + Remove extraneous NULL element. + 2013-03-11 Markus Metzger * target.h (struct target_ops): Add btrace ops. diff --git a/gdb/gdbserver/linux-low.c b/gdb/gdbserver/linux-low.c index b5084c93673..523926d1790 100644 --- a/gdb/gdbserver/linux-low.c +++ b/gdb/gdbserver/linux-low.c @@ -5940,7 +5940,6 @@ static struct target_ops linux_target_ops = { NULL, NULL, NULL, - NULL, #endif };