DDBG and Poseidon
Lester L. Martin II
Lester at ewam-associates.com
Sat Nov 24 01:26:35 PST 2007
Bill Baxter Wrote:
> Jascha Wetzel wrote:
> > Lester L. Martin II wrote:
> >> how do you get ddbg running for poseidon. it gives me this error on
> >> ddbg 4invalid UTF-8 sequence.
> >> Is it poseidon or ddbg because it happens in loading the windows
> >> dlls. Is there a way to fix it.
> >
> > there is a known problem with ddbg on windows vista that causes these
> > utf-8 errors. the fix will be in the next release.
> > if you don't use vista, please post everything i need to reproduce the
> > problem.
> > generally, try using ddbg from the command line to test whether an IDE
> > causes a problem.
>
> I get those on XP sometimes too. But it only seems to happen when I run
> into some certain asserts or maybe exceptions. I haven't been able to
> narrow it down, but I just wanted to say don't discount XP utf-8
> problems because I've seen them too. Ddbg 0.11 beta preview.
>
> --bb
Ok It happens on XP and only when I use Poseidon to try and Debug this. I'm using 0.11 preview.
Ok here's the code(rather simple actually;I was only going to use this to test the debugger):
import tango.io.Console;
int main(char[][] args)
{
char[] boo;
Cout("Boo").flush;
boo = Cin.get();
Cout(boo).flush;
Cin.get();
return 0;
}
Now set up a project completely in Poseidon with this and press the little bug looking button. Ok now it gives you the option to continue in a little debug screen. Press the button that looks like play and you get:
Ddbg 0.11 beta preview2 - D Debugger
Copyright (c) 2007 Jascha Wetzel
see http://ddbg.mainia.de/doc.html for documentation
Loading symbols from C:\CB\Projects\asd\asd.exe
->nc
Starting debuggee in new console
->r
ntdll.dll loaded at 0x7c900000
KERNEL32.dll loaded at 0x7c800000
SHELL32.dll loaded at 0x7c9c0000
ADVAPI32.dll loaded at 0x77dd0000
RPCRT4.dll loaded at 0x77e70000
Secur32.dll loaded at 0x77fe0000
GDI32.dll loaded at 0x77f10000
USER32.dll loaded at 0x7e410000
msvcrt.dll loaded at 0x77c10000
SHLWAPI.dll loaded at 0x77f60000
Unknown breakpoint hit at ntdll.dll (0x7c901230) thread(1636)
IMM32.dll loaded at 0x76390000
unknown DLL loaded
COMCTL32.dll loaded at 0x773d0000
COMCTL32.dll loaded at 0x5d090000
4invalid UTF-8 sequence
->
with the last part being the error that I know is an error though it may have started at unknown dll loaded.
I have no windows vista so can't try to reproduce it there and I am using Poseidon svn trunk and DMD 1.023 with tango Thriller and a couple of other libraries not called upon to compile this executable and thereby non-important.
Any more information you want. I'll let you know as you ask for it. I can give you the whole enviroment(changed from default) to let you know how poseidon is set up but it'll probably happen under different enviroments. All you have to do is set the DDBG location, The compilers; In project properties point all your tango libs into it with the tango import pointed also. Set -g option and -debug option(these are set defaultly for debugging so you can count that as irrelevant) and add -L+-g(dash ell plus dash jee) in other options as it doesn't give direct linker communication which means have the compiler pass the linker flags.
Ok that's all,
Lester L. Martin II
Ps: works fine in code blocks so I'm thinking it's something to do with how Poiseidon sent it the UTF string as it is compiled under phobos according to many.
More information about the Digitalmars-d-debugger
mailing list