March 31, 2010 Re: It is impossible to debug code compiled with dmd | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Walter Bright | On 31/03/10 21:58, Walter Bright wrote: > Robert Clipsham wrote: >> The first one is in bugzilla, > > Do you mean http://d.puremagic.com/issues/show_bug.cgi?id=1079 or another? http://d.puremagic.com/issues/show_bug.cgi?id=3987 Please ignore the attached patch file, it's the incorrect fix (although it does work). I haven't written a formal patch, I didn't see a need with it only being 2 lines needing removing (which are mentioned in my last post, and a comment on that bug). As an update to the case it doesn't fix, it seems the second DW_TAG_formal_param is causing the debug info for something else to be written half way between the debug info for something else, so when it's read it's read incorrectly. Still working on this, I'm hoping to have a patch for it tonight, I've already put days into this, I'd rather not spend too much more ;) | |||
March 31, 2010 Re: It is impossible to debug code compiled with dmd | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Robert Clipsham | Robert Clipsham wrote:
> On 31/03/10 21:58, Walter Bright wrote:
>> Robert Clipsham wrote:
>>> The first one is in bugzilla,
>>
>> Do you mean http://d.puremagic.com/issues/show_bug.cgi?id=1079 or another?
>
> http://d.puremagic.com/issues/show_bug.cgi?id=3987 Please ignore the attached patch file, it's the incorrect fix (although it does work). I haven't written a formal patch, I didn't see a need with it only being 2 lines needing removing (which are mentioned in my last post, and a comment on that bug).
>
> As an update to the case it doesn't fix, it seems the second DW_TAG_formal_param is causing the debug info for something else to be written half way between the debug info for something else, so when it's read it's read incorrectly. Still working on this, I'm hoping to have a patch for it tonight, I've already put days into this, I'd rather not spend too much more ;)
I and I'm sure many others appreciate your efforts.
| |||
April 01, 2010 Re: It is impossible to debug code compiled with dmd | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Walter Bright | On 31.03.2010 23:36, Walter Bright wrote: > Eldar Insafutdinov wrote: >> On Linux dmd outputs faulty debug info. >> On Windows optlink crashes when >> building code in debug. > > Is there a bugzilla for this? For example, I compile the entire test > suite on Windows with debugging on, and no optlink crashes. I've filed a bug report: http://d.puremagic.com/issues/show_bug.cgi?id=4035 Sorry, cannot make the test case smaller. And there is another that may describe the same bug: http://d.puremagic.com/issues/show_bug.cgi?id=4009 | |||
April 01, 2010 Re: It is impossible to debug code compiled with dmd | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Walter Bright | On 31/03/10 23:15, Walter Bright wrote: > I and I'm sure many others appreciate your efforts. Thanks :) I've finished a complete and working patch now, it's attached to http://d.puremagic.com/issues/show_bug.cgi?id=3987 and should fix the remaining issues with debugging info on linux. I've tested it with QtD, and various other projects, so I'd be grateful if you could review the patch and apply it! | |||
April 01, 2010 Re: It is impossible to debug code compiled with dmd | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Eldar Insafutdinov | On 31/03/10 10:41, Eldar Insafutdinov wrote:
> On Linux dmd outputs faulty debug info.
Hopefully this is fixed with the patch from #3987, I've tried your test case and it works fine now.
| |||
April 01, 2010 Re: It is impossible to debug code compiled with dmd | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Robert Clipsham | Robert Clipsham wrote:
> On 31/03/10 23:15, Walter Bright wrote:
>> I and I'm sure many others appreciate your efforts.
>
> Thanks :) I've finished a complete and working patch now, it's attached to http://d.puremagic.com/issues/show_bug.cgi?id=3987 and should fix the remaining issues with debugging info on linux. I've tested it with QtD, and various other projects, so I'd be grateful if you could review the patch and apply it!
Will do. Thanks very much!
| |||
April 01, 2010 Re: It is impossible to debug code compiled with dmd | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Walter Bright | On 01/04/10 22:56, Walter Bright wrote: > Robert Clipsham wrote: >> On 31/03/10 23:15, Walter Bright wrote: >>> I and I'm sure many others appreciate your efforts. >> >> Thanks :) I've finished a complete and working patch now, it's >> attached to http://d.puremagic.com/issues/show_bug.cgi?id=3987 and >> should fix the remaining issues with debugging info on linux. I've >> tested it with QtD, and various other projects, so I'd be grateful if >> you could review the patch and apply it! > > Will do. Thanks very much! There are a couple of other debugging patches that I created later on, they're attached to separate bugs: http://d.puremagic.com/issues/show_bug.cgi?id=4037 http://d.puremagic.com/issues/show_bug.cgi?id=4038 It'd be good if you could apply them too :) | |||
April 02, 2010 Re: It is impossible to debug code compiled with dmd | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Walter Bright | On 01/04/10 22:56, Walter Bright wrote: > Will do. Thanks very much! Thought I'd call your attention to: http://d.puremagic.com/issues/show_bug.cgi?id=4044 I created a tracker bug for all the gdb/debugging/DWARF/etc issues with dmd, quite a lot of them already have patches, so while you're looking through my patches, making sure they're ok, could you take a glance at some of the others and pass comment? Thanks again :) | |||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply