This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
FYI: fix gdbserver PR 14917
- From: Tom Tromey <tromey at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Wed, 05 Dec 2012 07:55:59 -0700
- Subject: FYI: fix gdbserver PR 14917
I'm checking this in as obvious.
PR 14917 concerns the inability to build gdbserver with -fno-common.
The bug is that server.h defines a couple of globals.
It should instead just declare them, as they are already defined in
ax.c.
Tom
2012-12-05 Tom Tromey <tromey@redhat.com>
PR gdb/14917:
* server.h (current_insn_ptr, emit_error): Declare 'extern'.
Index: server.h
===================================================================
RCS file: /cvs/src/src/gdb/gdbserver/server.h,v
retrieving revision 1.101
diff -u -r1.101 server.h
--- server.h 28 Aug 2012 16:53:30 -0000 1.101
+++ server.h 5 Dec 2012 14:54:17 -0000
@@ -523,8 +523,8 @@
function in the IPA. */
CORE_ADDR get_set_tsv_func_addr (void);
-CORE_ADDR current_insn_ptr;
-int emit_error;
+extern CORE_ADDR current_insn_ptr;
+extern int emit_error;
/* Version information, from version.c. */
extern const char version[];