record-btrace.c: Remove redefinitions
authorPedro Alves <palves@redhat.com>
Mon, 9 Feb 2015 17:13:39 +0000 (17:13 +0000)
committerPedro Alves <palves@redhat.com>
Fri, 27 Feb 2015 17:25:23 +0000 (17:25 +0000)
The set_record_btrace_cmdlist and show_record_btrace_cmdlist objects
are declared twice in the file, seemingly a simply copy/paste
oversight.  In C, the first time counts as forward declaration, but in
C++, they are all definitions.  That results in:

 src/gdb/record-btrace.c:80:33: error: redefinition of ‘cmd_list_element* set_record_btrace_cmdlist’
 src/gdb/record-btrace.c:61:33: error: ‘cmd_list_element* set_record_btrace_cmdlist’ previously declared here
 src/gdb/record-btrace.c:81:33: error: redefinition of ‘cmd_list_element* show_record_btrace_cmdlist’
 src/gdb/record-btrace.c:62:33: error: ‘cmd_list_element* show_record_btrace_cmdlist’ previously declared here

gdb/ChangeLog:
2015-02-27  Pedro Alves  <palves@redhat.com>

* record-btrace.c (set_record_btrace_cmdlist)
(show_record_btrace_cmdlist): Remove redefinitions.
 ---

 gdb/record-btrace.c |    4 ----
 1 file changed, 4 deletions(-)

gdb/ChangeLog
gdb/record-btrace.c

index d5a0737c18741981adcfa6b7cfb9b1e655421d08..291e89db3222bbe1dc575fa44bcc28ea3a29a601 100644 (file)
@@ -1,3 +1,8 @@
+2015-02-27  Pedro Alves  <palves@redhat.com>
+
+       * record-btrace.c (set_record_btrace_cmdlist)
+       (show_record_btrace_cmdlist): Remove redefinitions.
+
 2015-02-27  Tom Tromey  <tromey@redhat.com>
            Pedro Alves  <palves@redhat.com>
 
index 102e0ebe94ed1e68b5b1084d48efaf2319dfb5f9..35c775a04b69496907c82d74a0c9da5eabff48b7 100644 (file)
@@ -76,10 +76,6 @@ static struct btrace_config record_btrace_conf;
 /* Command list for "record btrace".  */
 static struct cmd_list_element *record_btrace_cmdlist;
 
-/* Command lists for "set/show record btrace".  */
-static struct cmd_list_element *set_record_btrace_cmdlist;
-static struct cmd_list_element *show_record_btrace_cmdlist;
-
 /* Command lists for "set/show record btrace bts".  */
 static struct cmd_list_element *set_record_btrace_bts_cmdlist;
 static struct cmd_list_element *show_record_btrace_bts_cmdlist;