Eric Pouech wrote:
aren't you, by any chance, compiling with gcc >= 3.1 ? if so, you need to force emission of stabs as a debugging format while running configure something like this should work CFLAGS=-gstabs+ ./configure
Maybe we should patch configure.ac to detect this and add the apropriate compile switch?
A+
What does gcc prior to 3.1 do with the -gstabs+ flag? If it ignores it, or it's implied anyway, we could just have it always on.
If not then I have some bash here that can parse the output of gcc -v and determine whether it's >= 3.1, would that be acceptable as a patch to configure.ac?
The only other way would be to compile a little test app then run objdump on it to figure out if stabs data was included, but testing the GCC version would be faster.
On Tue, 2003-01-07 at 09:19, Shachar Shemesh wrote:
Eric Pouech wrote:
aren't you, by any chance, compiling with gcc >= 3.1 ? if so, you need to force emission of stabs as a debugging format while running configure something like this should work CFLAGS=-gstabs+ ./configure
Maybe we should patch configure.ac to detect this and add the apropriate compile switch?
A+
IMO the test should be: - compile a little test program - test if it contains stabs info (this adds a dependency on binutils, but since the test is meant to compile wine it shouldn't be too much an issue) - if it doesn't, and if compiler is gcc then rerun the test with the -gstabs+ flag - it the test passes add the flag to CFLAG, otherwise warn the user (at the end of configuration) as we do for opengl however, this would be better in wine.ac (or equivalent) so that we can make use of it for other winelib programs for instance
A+
Messsage du 08/01/2003 08:59 De : Mike Hearn m.hearn@signal.qinetiq.com A : Shachar Shemesh wine-devel@sun.consumer.org.il Copie à : Eric Pouech eric.pouech@wanadoo.fr, Mike Hearn m.hearn@signal.dera.gov.uk, wine-devel@winehq.org Objet : Re: Symbol stripping?
What does gcc prior to 3.1 do with the -gstabs+ flag? If it ignores it, or it's implied anyway, we could just have it always on.
If not then I have some bash here that can parse the output of gcc -v and determine whether it's >= 3.1, would that be acceptable as a patch to configure.ac?
The only other way would be to compile a little test app then run objdump on it to figure out if stabs data was included, but testing the GCC version would be faster.
On Tue, 2003-01-07 at 09:19, Shachar Shemesh wrote:
Eric Pouech wrote:
aren't you, by any chance, compiling with gcc >= 3.1 ? if so, you need to force emission of stabs as a debugging format while running configure something like this should work CFLAGS=-gstabs+ ./configure
Maybe we should patch configure.ac to detect this and add the apropriate compile switch?
A+
-- Mike Hearn m.hearn@signal.qinetiq.com QinetiQ - Malvern Technology Center
On Wed, Jan 08, 2003 at 08:59:39AM +0000, Mike Hearn wrote:
What does gcc prior to 3.1 do with the -gstabs+ flag? If it ignores it, or it's implied anyway, we could just have it always on.
If not then I have some bash here that can parse the output of gcc -v and determine whether it's >= 3.1, would that be acceptable as a patch to configure.ac?
The only other way would be to compile a little test app then run objdump on it to figure out if stabs data was included, but testing the GCC version would be faster.
I submitted a patch which adds -gstabs to CFLAGS if necessary.
Ciao, Marcus
I submitted a patch which adds -gstabs to CFLAGS if necessary.
I saw it ;-) you could have chosen -gstabs+ instead of -gstabs... winedbg will support it, and it's the default value for gcc 3.1 A+
On 8 Jan 2003, Mike Hearn wrote: [...]
The only other way would be to compile a little test app then run objdump on it to figure out if stabs data was included, but testing the GCC version would be faster.
Or you could try to compile a small program with -gstabs+ and if the compile does not fail then it seems safe to use the flag.
The main thing is that some people may want to use the new dwarf debugging format for one reason or another... (e.g. for using with the remote gdb feature). So this test should probably be overridable maybe using a --disable-gstabs or something.