Skip to contentSkip to conversation

New: compile with debug info

Buildroot bugzilla at busybox.net 1 participant 4 messages Jan 23, 2010 – Jul 18, 2010

lore
Share & tools
lore
#0 lore raw

https://bugs.busybox.net/show_bug.cgi?id=949

Summary: compile with debug info
Product: buildroot
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P4
Component: Other
AssignedTo: unassigned at buildroot.uclibc.org
ReportedBy: yasser_kashfi at yahoo.com
CC: buildroot at uclibc.org
Estimated Hours: 0.0

if user dos not select 'build with debug info' the default compile flag is set to -g. however this is wrong. in this case compile flag (cflags & cxxflags) must be set to -g0. I solved this problem by patch the fallowing file:
package/Makefile.in:
+ifneq ($(BR2_ENABLE_DEBUG),y)
+TARGET_DEBUGGING=-g0
+endif
ifeq ($(BR2_DEBUG_1),y)
TARGET_DEBUGGING=-g1
endif
...

best regards

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#1 lore raw

[Buildroot] [Bug 949] compile with debug info

https://bugs.busybox.net/show_bug.cgi?id=949

Thomas Petazzoni <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |2010.02

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#2 lore raw

[Buildroot] [Bug 949] compile with debug info

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=949

Thomas Petazzoni <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|2010.02 |2010.05

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#3 lore raw

[Buildroot] [Bug 949] compile with debug info

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=949

Thomas Petazzoni <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
         Resolution|                            |WORKSFORME

--- Comment #1 from Thomas Petazzoni <[email protected]> --- I'm sorry but here, I don't see any -g option being added when "build with debug info" is disabled.

I'm therefore marking the bug as "works for me", but if you have a specific example illustrating the problem, do not hesitate to reopen the bug and to provide more details.

Thanks!

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.