This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: FYI: fix gdbserver PR 14917
- From: Joel Brobecker <brobecker at adacore dot com>
- To: Tom Tromey <tromey at redhat dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Fri, 7 Dec 2012 06:43:50 +0400
- Subject: Re: FYI: fix gdbserver PR 14917
- References: <877gowv98g.fsf@fleche.redhat.com>
> Index: server.h
[...]
> -CORE_ADDR current_insn_ptr;
> -int emit_error;
> +extern CORE_ADDR current_insn_ptr;
> +extern int emit_error;
Back in the good old days, I think the old code would have resulted
in a link failure (symbol defined multiple times), right?
--
Joel