Thread overview | |||||
---|---|---|---|---|---|
|
March 02, 2013 Re: Possible to view D strings in gdb? | ||||
---|---|---|---|---|
| ||||
On 03/02/2013 11:33 PM, Samuel Lampa wrote:
> When using gdb to debug my d program, is there any way to correctly display the string variables? (I'm new to gdb, so I might have missed something?).
> <snip>
Oh, and I have:
* GNU gdb (Ubuntu/Linaro 7.4-2012.04-0ubuntu2.1) 7.4-2012.04
* Compiled with:
* DMD64 D Compiler v2.061(using flags "-gc")
// Samuel
|
March 02, 2013 Re: Possible to view D strings in gdb? | ||||
---|---|---|---|---|
| ||||
On 03/02/2013 11:52 PM, Samuel Lampa wrote:
> * DMD64 D Compiler v2.061(using flags "-gc")
Ah, never mind!
By giving these details I got myself thinking and read up on the man page to use "-g" and not "-gc".
Problem solved! :)
Very happily debugging D with cgdb now! :)
// Samuel
|
March 02, 2013 Re: Possible to view D strings in gdb? | ||||
---|---|---|---|---|
| ||||
On 03/02/2013 11:56 PM, Samuel Lampa wrote: > On 03/02/2013 11:52 PM, Samuel Lampa wrote: >> * DMD64 D Compiler v2.061(using flags "-gc") > > Ah, never mind! > > By giving these details I got myself thinking and read up on the man page to use "-g" and not "-gc". > Problem solved! :) > > Very happily debugging D with cgdb now! :) And even more happy using nemiver! [1] Provides full D syntax highlighting and ability to view values of both strings and arrays in the GUI, now that I provided the correct compiler flag(!). Only downside is that I have to open the source file manually. Will see if I'll stick mostly with cgdb or nemiver. // Samuel [1] http://projects.gnome.org/nemiver/ |
Copyright © 1999-2021 by the D Language Foundation