Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 333640 - dSYM file is not generated on OS X
Summary: dSYM file is not generated on OS X
Status: RESOLVED FIXED
Alias: None
Product: Linux Tools
Classification: Tools
Component: Valgrind (show other bugs)
Version: unspecified   Edit
Hardware: Macintosh Mac OS X - Carbon (unsup.)
: P3 major (vote)
Target Milestone: 0.7   Edit
Assignee: Elliott Baron CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-06 06:48 EST by Alex CLA
Modified: 2011-01-24 10:02 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alex CLA 2011-01-06 06:48:12 EST
Build Identifier: 0.7.0.201012160013

I am running valgrind on a OS X. The debug symbols are generated in a different way. This results in little useful information in the valgrind tab. e.g. no line numbers. In order to obtain those valgrind already has the --dsymutil=yes command line option for automatically generating debug symbols. I couldn't find where this option was exposed in the Valgrind settings in the plug-in. 

So can you please add this to the setting if it is not already there, otherwise no debug symbols are linked.

Alex

Reproducible: Always

Steps to Reproduce:
1. Profile any C/C++ application with default options.
Comment 1 Elliott Baron CLA 2011-01-06 11:56:58 EST
Hi Alex,

Thanks for the insight. I wasn't aware OS X handled debug info this way. I don't have a Mac to test on, so I was hoping Valgrind would just "do the right thing" by default. I'll add an option and have it set to "yes" by default.

Thanks,
Elliott
Comment 2 Alex CLA 2011-01-06 12:54:58 EST
Hi Elliott,

dsymutil is only an Apple thing, so I am not sure if it doe/breaks anything on Linux systems. I am using nightly-helios update site, so as soon as you let me know I will test it.

Best Regards

Alex
Comment 3 Elliott Baron CLA 2011-01-06 15:14:07 EST
I've committed the dsymutil option for versions of Valgrind >= 3.6.0. The man page says the option is only relevant for OS X, and it appears to just get ignored when used on Linux. The fix should appear in the Helios nightly update site later today or tomorrow.

--Elliott
Comment 4 Alex CLA 2011-01-06 16:43:34 EST
Just tested  the 0.7.0.201101061437 and no change.

Alex
Comment 5 Elliott Baron CLA 2011-01-06 17:03:04 EST
(In reply to comment #4)
> Just tested  the 0.7.0.201101061437 and no change.
> 
> Alex
Is there a "Run dsymutil (Mac OS X) checkbox in the Valgrind Options launch configuration tab, under General Options?
Comment 6 Alex CLA 2011-01-07 06:46:22 EST
I tried again this morning with updated version of valgrind (SVN) and it works. I must have missed something last night. Thanks a lot it all works like a charm :)

Also Valgrind has a list of available GUIs and such like on their website. But this plugin is not one of them I think its worth adding it because it is awsome!


Alex
Comment 7 Elliott Baron CLA 2011-01-07 11:02:20 EST
(In reply to comment #6)
> I tried again this morning with updated version of valgrind (SVN) and it works.
> I must have missed something last night. Thanks a lot it all works like a charm
> :)
> 
> Also Valgrind has a list of available GUIs and such like on their website. But
> this plugin is not one of them I think its worth adding it because it is
> awsome!
> 
> 
> Alex

Awesome! That's great to hear. I've been meaning to kindly let the Valgrind developers know of this plugin's existence.