gpsd-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gpsd-dev] [PATCH 4/5] Increases debug level to 3 in debug build.


From: Fred Wright
Subject: [gpsd-dev] [PATCH 4/5] Increases debug level to 3 in debug build.
Date: Sun, 23 Oct 2016 14:16:57 -0700

Debug level 3 makes macro definitions available to the debugger, which
can be useful.  Given that debug=yes is only used when necessary,
there's no reason to be stingy with the debug info when it is.

TESTED:
Ran a debug build and observed "-g3" in the command lines.
---
 SConstruct | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/SConstruct b/SConstruct
index c1495d1..65004d0 100644
--- a/SConstruct
+++ b/SConstruct
@@ -372,7 +372,7 @@ if 'CCFLAGS' not in os.environ:
         env.Append(LINKFLAGS=['-coverage'])
     # Should we build with debug symbols?
     if env['debug']:
-        env.Append(CCFLAGS=['-g'])
+        env.Append(CCFLAGS=['-g3'])
     # Should we build with optimisation?
     if env['debug'] or env['coveraging']:
         env.Append(CCFLAGS=['-O0'])
-- 
2.10.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]