digitalmars.D.announce - Mono-D v1.2.7 - Completion, ldc2 compatibility, dub fixes
- Alexander Bothe (8/8) Jan 12 2014 Hi everyone,
- evilrat (10/18) Jan 12 2014 after about half year i tried it again on OS X, and Mono-D is
- Paulo Pinto (5/31) Jan 12 2014 It happened to me yesterday as well after the update.
- Alexander Bothe (7/18) Jan 13 2014 I've got no OSX but erm, what tool is required to have lldb
- evilrat (4/16) Jan 13 2014 i don't know about other tools, so basically i just build with
- Alexander Bothe (8/26) Jan 13 2014 Fortunately I implemented demangling already, so that's not a
- evilrat (4/9) Jan 13 2014 running "gdb --interpreter=mi2" launches it without any warnings
- evilrat (4/14) Jan 13 2014 but running mono-d debug gives following error message
- Alexander Bothe (3/5) Jan 13 2014 Okay, I think I'm gonna make a separate option panel then for
- evilrat (3/8) Jan 13 2014 ok, thanks.
- Jacob Carlborg (8/11) Jan 14 2014 I have GNU gdb 6.3.50-20050815 (Apple version gdb-1824). And when I
- evilrat (2/13) Jan 14 2014 i have that too, plus additional info and license info
- Alexander Bothe (3/20) Jan 14 2014 k, released an update. Please tell me whether it works or if
- evilrat (3/24) Jan 14 2014 gdb plugin version 0.2.5 still gives the same error.
- Alexander Bothe (4/5) Jan 14 2014 Ah, sorry, I should've mentioned it:
- evilrat (16/21) Jan 14 2014 it now starts, but in terminal started by xamarin studio it
- Alexander Bothe (17/37) Jan 14 2014 Could you locate the binary libphobos file, open it e.g. with
- evilrat (6/8) Jan 14 2014 gdb test run (idk why i run with mi2 :( )
- Alexander Bothe (11/19) Jan 14 2014 Okay, so it actually is working - but only partwise. As I just
- evilrat (5/22) Jan 14 2014 stepping through stops on lots of functions down to main(), but
- Alexander Bothe (3/5) Jan 17 2014 http://mono-d.alexanderbothe.com/big-question-to-you-do-gdblldb-work-for...
- evilrat (3/9) Jan 14 2014 it's in there
- Jacob Carlborg (6/9) Jan 13 2014 With DMD I get the line numbers in a backtrace, both in gdb and lldb. I
- Alexander Bothe (2/7) Jan 13 2014 Okay, implemented it in v1.3
Hi everyone, Just wrote annotated v1.2.7 of Mono-D: http://mono-d.alexanderbothe.com/completion-ldc2-compatibility-dub-fix-v1-2-7 I'm too lazy to mention every part of it again over here - if there are questions: Here, in #d.mono-d, on the blog, on github - you know the usual places where to find me :) Cheers mates, Alex
Jan 12 2014
On Sunday, 12 January 2014 at 23:40:33 UTC, Alexander Bothe wrote:Hi everyone, Just wrote annotated v1.2.7 of Mono-D: http://mono-d.alexanderbothe.com/completion-ldc2-compatibility-dub-fix-v1-2-7 I'm too lazy to mention every part of it again over here - if there are questions: Here, in #d.mono-d, on the blog, on github - you know the usual places where to find me :) Cheers mates, Alexafter about half year i tried it again on OS X, and Mono-D is quite good for writing the code, but... the debug!!11 can we haz some GDB or LLDB(or both :)) support please? it shouldn't be that hard porting linux code to OS X. it may already doing something useful but it simply doesn't start... p.s. also, why at first launch it can't just fetch default phobos location for DMD? it's quite annoying adding this paths in settings and it may revolve unaware users from using it(like it was for me about year ago).
Jan 12 2014
On Monday, 13 January 2014 at 05:25:31 UTC, evilrat wrote:On Sunday, 12 January 2014 at 23:40:33 UTC, Alexander Bothe wrote:It happened to me yesterday as well after the update. Is this some regression? It worked out of the box previously. -- PauloHi everyone, Just wrote annotated v1.2.7 of Mono-D: http://mono-d.alexanderbothe.com/completion-ldc2-compatibility-dub-fix-v1-2-7 I'm too lazy to mention every part of it again over here - if there are questions: Here, in #d.mono-d, on the blog, on github - you know the usual places where to find me :) Cheers mates, Alexafter about half year i tried it again on OS X, and Mono-D is quite good for writing the code, but... the debug!!11 can we haz some GDB or LLDB(or both :)) support please? it shouldn't be that hard porting linux code to OS X. it may already doing something useful but it simply doesn't start... p.s. also, why at first launch it can't just fetch default phobos location for DMD? it's quite annoying adding this paths in settings and it may revolve unaware users from using it(like it was for me about year ago).
Jan 12 2014
On Monday, 13 January 2014 at 05:25:31 UTC, evilrat wrote:after about half year i tried it again on OS X, and Mono-D is quite good for writing the code, but... the debug!!11 can we haz some GDB or LLDB(or both :)) support please? it shouldn't be that hard porting linux code to OS X. it may already doing something useful but it simply doesn't start...I've got no OSX but erm, what tool is required to have lldb information generated? ldc2? On the other side, which tool is then required to get gdb debug info?p.s. also, why at first launch it can't just fetch default phobos location for DMD? it's quite annoying adding this paths in settings and it may revolve unaware users from using it(like it was for me about year ago).Despite it's clearly explained in the set up guide it sounds quite reasonable to do this automatically, you're right.
Jan 13 2014
On Monday, 13 January 2014 at 11:03:45 UTC, Alexander Bothe wrote:On Monday, 13 January 2014 at 05:25:31 UTC, evilrat wrote:i don't know about other tools, so basically i just build with "dmd files.d -gc" and debug using console lldb, of course it was mangled but it is better than nothing.after about half year i tried it again on OS X, and Mono-D is quite good for writing the code, but... the debug!!11 can we haz some GDB or LLDB(or both :)) support please? it shouldn't be that hard porting linux code to OS X. it may already doing something useful but it simply doesn't start...I've got no OSX but erm, what tool is required to have lldb information generated? ldc2? On the other side, which tool is then required to get gdb debug info?
Jan 13 2014
On Monday, 13 January 2014 at 11:49:57 UTC, evilrat wrote:On Monday, 13 January 2014 at 11:03:45 UTC, Alexander Bothe wrote:Fortunately I implemented demangling already, so that's not a real problem. So according to Jacob's comment it's actually possible to get gdb on OSX - but probably just with a wrong build configuration, i.e. the mi2 interface for gdb is not available - or is it? Just try executing gdb --interpreter=mi2 to see whether Mono-D is able to handle its output properly.On Monday, 13 January 2014 at 05:25:31 UTC, evilrat wrote:i don't know about other tools, so basically i just build with "dmd files.d -gc" and debug using console lldb, of course it was mangled but it is better than nothing.after about half year i tried it again on OS X, and Mono-D is quite good for writing the code, but... the debug!!11 can we haz some GDB or LLDB(or both :)) support please? it shouldn't be that hard porting linux code to OS X. it may already doing something useful but it simply doesn't start...I've got no OSX but erm, what tool is required to have lldb information generated? ldc2? On the other side, which tool is then required to get gdb debug info?
Jan 13 2014
On Monday, 13 January 2014 at 14:50:05 UTC, Alexander Bothe wrote:So according to Jacob's comment it's actually possible to get gdb on OSX - but probably just with a wrong build configuration, i.e. the mi2 interface for gdb is not available - or is it? Just try executing gdb --interpreter=mi2 to see whether Mono-D is able to handle its output properly.running "gdb --interpreter=mi2" launches it without any warnings and errors. (my gdb version is 7.6)
Jan 13 2014
On Tuesday, 14 January 2014 at 04:10:03 UTC, evilrat wrote:On Monday, 13 January 2014 at 14:50:05 UTC, Alexander Bothe wrote:but running mono-d debug gives following error message "ApplicationName='gdb', CommandLine=-quiet -fullname -i=mi2', CurrentDirectory=", NativeError= Cannot find the specified fileSo according to Jacob's comment it's actually possible to get gdb on OSX - but probably just with a wrong build configuration, i.e. the mi2 interface for gdb is not available - or is it? Just try executing gdb --interpreter=mi2 to see whether Mono-D is able to handle its output properly.running "gdb --interpreter=mi2" launches it without any warnings and errors. (my gdb version is 7.6)
Jan 13 2014
On Tuesday, 14 January 2014 at 04:15:50 UTC, evilrat wrote:"ApplicationName='gdb', CommandLine=-quiet -fullname -i=mi2', CurrentDirectory=", NativeError= Cannot find the specified fileOkay, I think I'm gonna make a separate option panel then for setting up the path to gdb.
Jan 13 2014
On Tuesday, 14 January 2014 at 05:04:42 UTC, Alexander Bothe wrote:On Tuesday, 14 January 2014 at 04:15:50 UTC, evilrat wrote:ok, thanks."ApplicationName='gdb', CommandLine=-quiet -fullname -i=mi2', CurrentDirectory=", NativeError= Cannot find the specified fileOkay, I think I'm gonna make a separate option panel then for setting up the path to gdb.
Jan 13 2014
On 2014-01-14 05:10, evilrat wrote:running "gdb --interpreter=mi2" launches it without any warnings and errors. (my gdb version is 7.6)I have GNU gdb 6.3.50-20050815 (Apple version gdb-1824). And when I launch it with --interpreter=mi2 I get some extra symbols in the output, like this: ~"GNU gdb 6.3.50-20050815 (Apple version gdb-1824) (Wed Feb 6 22:51:23 UTC 2013)\n" -- /Jacob Carlborg
Jan 14 2014
On Tuesday, 14 January 2014 at 08:07:57 UTC, Jacob Carlborg wrote:On 2014-01-14 05:10, evilrat wrote:i have that too, plus additional info and license inforunning "gdb --interpreter=mi2" launches it without any warnings and errors. (my gdb version is 7.6)I have GNU gdb 6.3.50-20050815 (Apple version gdb-1824). And when I launch it with --interpreter=mi2 I get some extra symbols in the output, like this: ~"GNU gdb 6.3.50-20050815 (Apple version gdb-1824) (Wed Feb 6 22:51:23 UTC 2013)\n"
Jan 14 2014
On Tuesday, 14 January 2014 at 08:50:09 UTC, evilrat wrote:On Tuesday, 14 January 2014 at 08:07:57 UTC, Jacob Carlborg wrote:k, released an update. Please tell me whether it works or if another exception is getting thrown!On 2014-01-14 05:10, evilrat wrote:i have that too, plus additional info and license inforunning "gdb --interpreter=mi2" launches it without any warnings and errors. (my gdb version is 7.6)I have GNU gdb 6.3.50-20050815 (Apple version gdb-1824). And when I launch it with --interpreter=mi2 I get some extra symbols in the output, like this: ~"GNU gdb 6.3.50-20050815 (Apple version gdb-1824) (Wed Feb 6 22:51:23 UTC 2013)\n"
Jan 14 2014
On Tuesday, 14 January 2014 at 12:06:36 UTC, Alexander Bothe wrote:On Tuesday, 14 January 2014 at 08:50:09 UTC, evilrat wrote:gdb plugin version 0.2.5 still gives the same error.On Tuesday, 14 January 2014 at 08:07:57 UTC, Jacob Carlborg wrote:k, released an update. Please tell me whether it works or if another exception is getting thrown!On 2014-01-14 05:10, evilrat wrote:i have that too, plus additional info and license inforunning "gdb --interpreter=mi2" launches it without any warnings and errors. (my gdb version is 7.6)I have GNU gdb 6.3.50-20050815 (Apple version gdb-1824). And when I launch it with --interpreter=mi2 I get some extra symbols in the output, like this: ~"GNU gdb 6.3.50-20050815 (Apple version gdb-1824) (Wed Feb 6 22:51:23 UTC 2013)\n"
Jan 14 2014
On Tuesday, 14 January 2014 at 13:06:05 UTC, evilrat wrote:gdb plugin version 0.2.5 still gives the same error.Ah, sorry, I should've mentioned it: There's an option panel called "Gdb.D" now where you can put in a custom gdb command.
Jan 14 2014
On Tuesday, 14 January 2014 at 13:16:12 UTC, Alexander Bothe wrote:On Tuesday, 14 January 2014 at 13:06:05 UTC, evilrat wrote:it now starts, but in terminal started by xamarin studio it prints: &"warning: GDB: Failed to set controlling terminal: Operation not permitted\n" Hello World! --- in output panel: "Couldn't inject exception handler breakpoint - no finddata symbol found!" and after clicking step through it adds: Single stepping until exit from function _Dmain,\nwhich has no line number information. i have tried compiling with both -g and -gc any suggestions?gdb plugin version 0.2.5 still gives the same error.Ah, sorry, I should've mentioned it: There's an option panel called "Gdb.D" now where you can put in a custom gdb command.
Jan 14 2014
On Tuesday, 14 January 2014 at 13:55:10 UTC, evilrat wrote:On Tuesday, 14 January 2014 at 13:16:12 UTC, Alexander Bothe wrote:Known issue, is probably unfixable.On Tuesday, 14 January 2014 at 13:06:05 UTC, evilrat wrote:it now starts, but in terminal started by xamarin studio it prints: &"warning: GDB: Failed to set controlling terminal: Operation not permitted\n"gdb plugin version 0.2.5 still gives the same error.Ah, sorry, I should've mentioned it: There's an option panel called "Gdb.D" now where you can put in a custom gdb command.Hello World! --- in output panel: "Couldn't inject exception handler breakpoint - no finddata symbol found!"Could you locate the binary libphobos file, open it e.g. with SciTE and look for some mangled string that contains 'finddata', such as _D2rt15deh_win64_posix13__eh_finddataFPvZPyS2rt15deh_win64_posix9FuncTable - something like this is required to have proper exception hooking :)and after clicking step through it adds: Single stepping until exit from function _Dmain,\nwhich has no line number information.Okay, this means dmd won't generate file/offset associations and/or thus can't be loaded in gdb. If you tried running your D programw with gdb, made a breakpoint at _Dmain and stepped through the method's code - could you tell me whether it's actually possible to step through the lines? Or is it just telling the same? If so, we can forget about having the gdb addin on OSX as the most essential parts of debugging aren't supported (again, just as on Windows) due to mysterious reasons..
Jan 14 2014
On Tuesday, 14 January 2014 at 14:12:54 UTC, Alexander Bothe wrote:If you tried running your D programw with gdb, made a breakpoint at _Dmain and stepped through the method's code ...gdb test run (idk why i run with mi2 :( ) http://pastebin.com/U7UTNfxM lldb just to compare =0 http://pastebin.com/AxLUTuwy
Jan 14 2014
On Tuesday, 14 January 2014 at 14:25:31 UTC, evilrat wrote:On Tuesday, 14 January 2014 at 14:12:54 UTC, Alexander Bothe wrote:No need for having the weird mi2 interface :DIf you tried running your D programw with gdb, made a breakpoint at _Dmain and stepped through the method's code ...gdb test run (idk why i run with mi2 :( )http://pastebin.com/U7UTNfxMOkay, so it actually is working - but only partwise. As I just executed that program, I was able to jump into stdin.readln(); as well. Dunno what reason this could have. Could try to extend the sample application to see whether it's skipping everything else either? Btw, could we meet in the irc #d or #d.mono-d ? I'm alex|D-Guy over there, it would be nice to see you there and have little more direct conversation than 'chatting' via the NG/Forumlldb just to compare =0 http://pastebin.com/AxLUTuwyOkay.
Jan 14 2014
On Tuesday, 14 January 2014 at 14:43:26 UTC, Alexander Bothe wrote:On Tuesday, 14 January 2014 at 14:25:31 UTC, evilrat wrote:stepping through stops on lots of functions down to main(), but no sources and lines. maybe i forgot something.On Tuesday, 14 January 2014 at 14:12:54 UTC, Alexander Bothe wrote:No need for having the weird mi2 interface :DIf you tried running your D programw with gdb, made a breakpoint at _Dmain and stepped through the method's code ...gdb test run (idk why i run with mi2 :( )http://pastebin.com/U7UTNfxMOkay, so it actually is working - but only partwise. As I just executed that program, I was able to jump into stdin.readln(); as well. Dunno what reason this could have.Could try to extend the sample application to see whether it's skipping everything else either? Btw, could we meet in the irc #d or #d.mono-d ? I'm alex|D-Guy over there, it would be nice to see you there and have little more direct conversation than 'chatting' via the NG/Forumsure, just not today, too busy at this moment.
Jan 14 2014
On Tuesday, 14 January 2014 at 15:03:01 UTC, evilrat wrote:stepping through stops on lots of functions down to main(), but no sources and lines. maybe i forgot something.http://mono-d.alexanderbothe.com/big-question-to-you-do-gdblldb-work-for-you-on-osx/ Woohoo, it's not my fault :-D
Jan 17 2014
On Tuesday, 14 January 2014 at 14:12:54 UTC, Alexander Bothe wrote:Could you locate the binary libphobos file, open it e.g. with SciTE and look for some mangled string that contains 'finddata', such as _D2rt15deh_win64_posix13__eh_finddataFPvZPyS2rt15deh_win64_posix9FuncTable - something like this is required to have proper exception hooking :)it's in there
Jan 14 2014
On 2014-01-13 12:03, Alexander Bothe wrote:I've got no OSX but erm, what tool is required to have lldb information generated? ldc2? On the other side, which tool is then required to get gdb debug info?With DMD I get the line numbers in a backtrace, both in gdb and lldb. I compiled with -g. You won't get any demangling with lldb or gdb supplied by Apple. -- /Jacob Carlborg
Jan 13 2014
On Monday, 13 January 2014 at 05:25:31 UTC, evilrat wrote:p.s. also, why at first launch it can't just fetch default phobos location for DMD? it's quite annoying adding this paths in settings and it may revolve unaware users from using it(like it was for me about year ago).Okay, implemented it in v1.3
Jan 13 2014