how to find stack trace of "Error: 4invalid UTF-8 sequence" "Error: std.format int argument expected"?

nobody no at where.com
Wed May 27 21:08:59 PDT 2009


> From what I understand, you can set GDB to break whenever _d_throw is
> called.  I don't know the syntax.

Thanks for the hint.  I googled it, here's the way to do it:

$ objdump -x your.exe | grep throw
0819c1e0 g     F .text	00000217              _d_throw at 4

(gdb) break *0x0819c1e0
Breakpoint 1 at 0x819c1e0

(gdb) r
...

(gdb) where
#0  0x0819c1e0 in _d_throw at 4 ()
#1  0x081b397c in _D3std6format8doFormatFDFwZvAC8TypeInfoPvZv10getFmtStarMFZi
    ()
#2  0x081b2207 in _D3std6format8doFormatFDFwZvAC8TypeInfoPvZv ()
#3  0x081b19c9 in _D3std5stdio7writefxFPS3std1c5stdio6_iobufAC8TypeInfoPviZv ()
#4  0x081b1ac4 in _D3std5stdio6writefFYv ()


> If you don't want to use a debugger, there's always
> printf/writefln/Stdout debugging.

using writefln to find writefln errors? ;-)




More information about the Digitalmars-d mailing list