diff options
author | Joel Brobecker <brobecker@gnat.com> | 2013-03-13 18:37:54 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2013-03-13 18:37:54 +0000 |
commit | 4fa7e2ff221c6b8c129e5e0486112c578f628ded (patch) | |
tree | afa546f38c8e3086524c43e08cd55070580656f8 /gdb/gdbserver | |
parent | 6f937416b997de1c0fb4664df3b7a69910b66b76 (diff) | |
download | gdb-4fa7e2ff221c6b8c129e5e0486112c578f628ded.zip gdb-4fa7e2ff221c6b8c129e5e0486112c578f628ded.tar.gz gdb-4fa7e2ff221c6b8c129e5e0486112c578f628ded.tar.bz2 |
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.
Diffstat (limited to 'gdb/gdbserver')
-rw-r--r-- | gdb/gdbserver/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/gdbserver/linux-low.c | 1 |
2 files changed, 5 insertions, 1 deletions
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 <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 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 }; |