This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 4/5 v7] Introduce common-debug.h


On Tue, 2014-08-19 at 10:12 +0100, Gary Benson wrote:

> > > 2014-08-13  Tom Tromey  <tromey@redhat.com>
> > >             Gary Benson  <gbenson@redhat.com>
> > >
> > >         * common/common-debug.h: New file.
> > >         * common/common-debug.c: Likewise.
> > >         * debug.c: Likewise.
> > >         * Makefile.in (SFILES): Add common/common-debug.c.
> > >         (HFILES_NO_SRCDIR): Add common/common-debug.h.
> > >         (COMMON_OBS): Add common-debug.o and debug.o.
> > >         (common-debug.o): New rule.
> > >         * common/common-defs.h: Include common-debug.h.
> > >         * common/agent.c (debug_agent_printf): New function.
> > >         (DEBUG_AGENT): Redefine.
> > >         * nat/i386-dregs.c (debug_printf): Undefine.

I just built gdb for mips (mips-linux-gnu and mips-mti-linux-gnu) and it
died with:

/local/home/sellcey/gcc/non_mti_linux/src/binutils-gdb/sim/mips/../common/sim-trace.c:1326: multiple definition of `debug_printf'
common-debug.o:/local/home/sellcey/gcc/non_mti_linux/src/binutils-gdb/gdb/common/common-debug.c:31: first defined here
collect2: ld returned 1 exit status
make[1]: *** [gdb] Error 1

I am assuming it has something to do with this patch.

Steve Ellcey
sellcey@mips.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]