View previous topic :: View next topic |
Author |
Message |
ABothe
Joined: 07 Mar 2010 Posts: 12
|
Posted: Sun Mar 07, 2010 10:24 am Post subject: Question about publishing cv2pdb next to D-IDE |
|
|
Hello Rainer,
At first I want to say that I've ever searched for such a program - and now I found it
I am the main developer of the D-IDE and I would like to integrate your cv2pdb program into the D-IDE releases - Is that OK for you? |
|
Back to top |
|
|
sagitario
Joined: 03 Mar 2007 Posts: 292
|
Posted: Tue Mar 09, 2010 1:58 am Post subject: |
|
|
Hi,
that's fine with me.
A user will also need to have some microsoft libraries installed (mspdb80.dll) that start and communicate with the pdb-server (mspdbsrv.exe). I'm not sure if it is a problem to also add these to the release.
Rainer |
|
Back to top |
|
|
ABothe
Joined: 07 Mar 2010 Posts: 12
|
Posted: Tue Mar 09, 2010 8:49 am Post subject: |
|
|
(I think I could start with speaking German at this point )
Deine Zusage klingt ja gut
Ich habe jetzt das Programm in eine Managed c++ library gepackt, sodass es sich leichter in existierenden Code integrieren laesst;-)
Vielleicht kannst du das Paket ja publishen oder weiterentwickeln...
http://www.alexanderbothe.com/cv2pdb.rar |
|
Back to top |
|
|
ABothe
Joined: 07 Mar 2010 Posts: 12
|
Posted: Tue Mar 09, 2010 8:50 am Post subject: |
|
|
(I think I could start with speaking German at this point )
Deine Zusage klingt ja gut
Ich habe jetzt das Programm in eine Managed c++ library gepackt, sodass es sich leichter in existierenden Code integrieren laesst;-)
Vielleicht kannst du das Paket ja publishen oder weiterentwickeln...
http://www.alexanderbothe.com/cv2pdb.rar |
|
Back to top |
|
|
ABothe
Joined: 07 Mar 2010 Posts: 12
|
Posted: Tue Mar 09, 2010 8:52 am Post subject: |
|
|
OK...
I packed the entire cv2pdb code into a managed c++ dll...may you could publish it on the project site;-)
http://www.alexanderbothe.com/cv2pdb.rar
(This damned forum... I can't delete double messages;-)) |
|
Back to top |
|
|
sagitario
Joined: 03 Mar 2007 Posts: 292
|
Posted: Fri Mar 12, 2010 6:05 am Post subject: |
|
|
Hi,
I finally got around to merge the projects to avoid code duplication. The managed project and its main.cpp is now in a subdirectory, the other files are just referenced from there.
It's in the subversion repository already, and it will be part of the next release.
Thanks,
Rainer |
|
Back to top |
|
|
ABothe
Joined: 07 Mar 2010 Posts: 12
|
Posted: Fri Mar 12, 2010 11:10 am Post subject: |
|
|
OK...
but now there is an other question I recently have:
In the D2-compiled program
void main()
{
int a;
a=45;
writeln(a);
}
,the value of "a" gets not displayed as 45 - its a number which is higher than 1 million...and that can't be the true value...so how could I get the real value...or at least the real offset...I mean, if you have more than one local variable, all their offsets are the same...or am I wrong? |
|
Back to top |
|
|
sagitario
Joined: 03 Mar 2007 Posts: 292
|
Posted: Fri Mar 12, 2010 12:04 pm Post subject: |
|
|
Works for me here, but not if you compile with optimizations (-O). Then dmd removes unnecessary assignments, but retains the debug info.
Multiple local variables are no problem without optimizations, each variable has its own space on the stack, the location being specified by the debug info. |
|
Back to top |
|
|
ABothe
Joined: 07 Mar 2010 Posts: 12
|
Posted: Fri Mar 12, 2010 1:02 pm Post subject: |
|
|
Yeah!....you're right...I also compiled it with "-g" instead of "-gc" what made it impossible to reach the data
So now I've to thank you again because now D-IDE has a debugger that really works!
http://d-ide.sourceforge.net |
|
Back to top |
|
|
ABothe
Joined: 07 Mar 2010 Posts: 12
|
Posted: Sat Mar 13, 2010 4:59 am Post subject: |
|
|
Is there a way to separate integer arrays from strings?
string str="Hello"; // This type is displayed as int[]
int[] arr=new int[5]; // ...that's also shown as int[] |
|
Back to top |
|
|
ABothe
Joined: 07 Mar 2010 Posts: 12
|
Posted: Sat Mar 13, 2010 3:12 pm Post subject: |
|
|
Another question: What is the DObjectView in the DViewHelper library made for? |
|
Back to top |
|
|
sagitario
Joined: 03 Mar 2007 Posts: 292
|
Posted: Fri Mar 19, 2010 7:36 am Post subject: |
|
|
Sorry for the delay, I didn't get notified of a response here...
DStringView and DObjectView are functions in dviewhelper.dll, that is loaded as a display addin. With the help of configurations in autoexp.dat, they allow showing correctly terminated strings and the (dynamic) classname of an object.
I guess, this will be a visual-studio functionality only, and not be available in the generic debug engines.
strings show up correctly here. Please note, that depending on the D-version specified on the command line, either "char[]" or "const char[]" is displayed as type "string". |
|
Back to top |
|
|
|