FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Question about publishing cv2pdb next to D-IDE

 
Post new topic   Reply to topic     Forum Index -> cv2pdb
View previous topic :: View next topic  
Author Message
ABothe



Joined: 07 Mar 2010
Posts: 12

PostPosted: Sun Mar 07, 2010 10:24 am    Post subject: Question about publishing cv2pdb next to D-IDE Reply with quote

Hello Rainer,
At first I want to say that I've ever searched for such a program - and now I found it Very Happy

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
View user's profile Send private message
sagitario



Joined: 03 Mar 2007
Posts: 292

PostPosted: Tue Mar 09, 2010 1:58 am    Post subject: Reply with quote

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
View user's profile Send private message
ABothe



Joined: 07 Mar 2010
Posts: 12

PostPosted: Tue Mar 09, 2010 8:49 am    Post subject: Reply with quote

(I think I could start with speaking German at this point Wink)

Deine Zusage klingt ja gut Wink
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
View user's profile Send private message
ABothe



Joined: 07 Mar 2010
Posts: 12

PostPosted: Tue Mar 09, 2010 8:50 am    Post subject: Reply with quote

(I think I could start with speaking German at this point Wink)

Deine Zusage klingt ja gut Wink
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
View user's profile Send private message
ABothe



Joined: 07 Mar 2010
Posts: 12

PostPosted: Tue Mar 09, 2010 8:52 am    Post subject: Reply with quote

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
View user's profile Send private message
sagitario



Joined: 03 Mar 2007
Posts: 292

PostPosted: Fri Mar 12, 2010 6:05 am    Post subject: Reply with quote

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
View user's profile Send private message
ABothe



Joined: 07 Mar 2010
Posts: 12

PostPosted: Fri Mar 12, 2010 11:10 am    Post subject: Reply with quote

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
View user's profile Send private message
sagitario



Joined: 03 Mar 2007
Posts: 292

PostPosted: Fri Mar 12, 2010 12:04 pm    Post subject: Reply with quote

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
View user's profile Send private message
ABothe



Joined: 07 Mar 2010
Posts: 12

PostPosted: Fri Mar 12, 2010 1:02 pm    Post subject: Reply with quote

Yeah!....you're right...I also compiled it with "-g" instead of "-gc" what made it impossible to reach the data Wink


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
View user's profile Send private message
ABothe



Joined: 07 Mar 2010
Posts: 12

PostPosted: Sat Mar 13, 2010 4:59 am    Post subject: Reply with quote

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
View user's profile Send private message
ABothe



Joined: 07 Mar 2010
Posts: 12

PostPosted: Sat Mar 13, 2010 3:12 pm    Post subject: Reply with quote

Another question: What is the DObjectView in the DViewHelper library made for?
Back to top
View user's profile Send private message
sagitario



Joined: 03 Mar 2007
Posts: 292

PostPosted: Fri Mar 19, 2010 7:36 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> cv2pdb All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group