This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 1/3] Fix ppc64 single step over atomic sequence testcase
- From: Joel Brobecker <brobecker at adacore dot com>
- To: Anton Blanchard <anton at samba dot org>
- Cc: Edjunior Barbosa Machado <emachado at linux dot vnet dot ibm dot com>, "Gustavo, Luis" <luis_gustavo at mentor dot com>, gdb-patches at sourceware dot org
- Date: Fri, 28 Sep 2012 12:16:45 +0200
- Subject: Re: [PATCH 1/3] Fix ppc64 single step over atomic sequence testcase
- References: <20120611193326.GN2687@adacore.com> <20120612224515.15bc044d@kryten> <4FD73EB2.3070705@mentor.com> <20120612131650.GP2687@adacore.com> <4FD743FA.4010403@mentor.com> <4FD773F3.1090307@linux.vnet.ibm.com> <20120613104548.416ba64f@kryten> <4FD89CF9.8080503@linux.vnet.ibm.com> <20120613153730.GG18729@adacore.com> <20120716162326.39d83fa5@kryten>
> > Can you just add -I${srcdir}/${subdir} to the compilation flags,
> > and then .include "common.inc" instead of gdb.arch/common.inc?
>
> Sorry for taking so long to respond. I tried that but srcdir wasn't an
> absolute path so it failed. Using the existing asm macro was only
> saving us a couple of lines so how about we just open code it?
I'd rather not. I know it's only a few lines, but I'm sure these files
are there for a reason.
I think it might have failed because ${srcdir}/${subdir} wasn't
the right path. Your testcase is in gdb.arch, so I am guessing
that subdir was "gdb.arch". However, your include file is in gdb.asm.
So instead, use -I${srcdir}/gdb.asm instead.
--
Joel