the post ist more than 3 years old
Am 02.06.2013 07:04, schrieb sha0coder:
(gdb) p s
$1 = 578159222890430469
No luck :(
try this:
(gdb) x/dwx mystirng
0xb4f4: 0x003c- size of string
(gdb)
0xb4f8: 0xb7ca2540- ptr to the string
(gdb) x/s 0xb7ca2540
And still, gdb doesn't recognize D strings.
Thanks for the Macro!
Am 02.06.2013 08:08, schrieb dennis luehring:
the post ist more than 3 years old
Am 02.06.2013 07:04, schrieb sha0coder:
(gdb) p s
$1 = 578159222890430469
No luck :(
try this:
(gdb) x/dwx mystirng
0xb4f4:
On Monday, 10 May 2010 at 19:25:05 UTC, Piotrek wrote:
W dniu 10.05.2010 21:02, Robert Clipsham pisze:
You are not using a version of gdb with D support if s is not
displayed
as a string. This said, I've only ever looked at variables
using print
or a backtrace, could you try 'p s' and see what
(gdb) p s
$1 = 578159222890430469
No luck :(
try this:
(gdb) x/dwx mystirng
0xb4f4: 0x003c- size of string
(gdb)
0xb4f8: 0xb7ca2540- ptr to the string
(gdb) x/s 0xb7ca2540
0xb7ca2540: this is my string
(gdb)
add this macro to your ~/.gdbinit
define
Hi,
I tried to debug program in gdb (with d support) but with no big success.
I'm on kubuntu 10.04
I compiled gdb from trunk. 7.1.50.20100504
I use the -gc switch with dmd of course.
With this example (brakeboint at line 8)
1. import std.stdio;
2.
3.
4. void main()
5. {
6. int i = 1;
W dniu 10.05.2010 20:48, Piotrek pisze:
Hi,
I tried to debug program in gdb (with d support) but with no big success.
I'm on kubuntu 10.04
I compiled gdb from trunk. 7.1.50.20100504
I use the -gc switch with dmd of course.
The dmd version is 2.045.
On 10/05/10 19:48, Piotrek wrote:
(gdb) info locals
i = 1
s = 578159222890430469
f = 9.55146781e-38
(gdb) show language
The current source language is auto; currently d.
You are not using a version of gdb with D support if s is not displayed
as a string. This said, I've only ever looked at
W dniu 10.05.2010 21:02, Robert Clipsham pisze:
You are not using a version of gdb with D support if s is not displayed
as a string. This said, I've only ever looked at variables using print
or a backtrace, could you try 'p s' and see what result it gives?
(gdb) p s
$1 = 578159222890430469
No
On Mon, 10 May 2010, Robert Clipsham wrote:
On 10/05/10 19:48, Piotrek wrote:
(gdb) info locals
i = 1
s = 578159222890430469
f = 9.55146781e-38
(gdb) show language
The current source language is auto; currently d.
You are not using a version of gdb with D support if s is not