From 4fa7e2ff221c6b8c129e5e0486112c578f628ded Mon Sep 17 00:00:00 2001 From: Joel Brobecker Date: Wed, 13 Mar 2013 18:37:54 +0000 Subject: 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. --- gdb/gdbserver/ChangeLog | 5 +++++ gdb/gdbserver/linux-low.c | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'gdb/gdbserver') diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index a7289fd..057133f 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-13 Yao Qi * tracepoint.c (traceframe_read_tsv): Look for the last matched diff --git a/gdb/gdbserver/linux-low.c b/gdb/gdbserver/linux-low.c index b5084c9..523926d 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 }; -- cgit v1.1