Can't debug dmd binary
Jerry via Digitalmars-d
digitalmars-d at puremagic.com
Fri Jun 20 16:55:53 PDT 2014
Lionello Lunesu <lionello at lunesu.remove.com> writes:
> On 20/06/14 11:00, Jerry wrote:
>> (gdb) b main
>> Breakpoint 1 at 0x416ecc
>> (gdb) run
>> Starting program: /home/jlquinn/d/nodebug
>> [Thread debugging using libthread_db enabled]
>> Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
>>
>> Breakpoint 1, 0x0000000000416ecc in main ()
>> (gdb) l
>> 1 dl-debug.c: No such file or directory.
>> (gdb)
>>
>>
>> Using dmd -gc doesn't help at all. Any suggestions?
>>
>> Thanks
>> Jerry
>>
>
> $gdb nodebug
> (gdb) b _Dmain
> (gdb) r
That helps. I had thought a lot of D support was already in gdb. I'm
surprised this doesn't work.
Iain, is this fix not in stock gdb yet?
Jerry
More information about the Digitalmars-d
mailing list