Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » U++ community news and announcements » theide: Windows Microsoft SDK 64-bit debugging
theide: Windows Microsoft SDK 64-bit debugging [message #43485] Sun, 10 August 2014 19:30 Go to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
I am happy to announce that another functionality gap is being resolved:

theide is now able to debug 64-bit windows apps compiled with MSC compiler.

In order to do so, you need to compile 64-bit ide; that is then able to debug both 64-bit and 32-bit apps.

As this is new, it is possible that something is till broken, I also plan to do some more improvements with debugger. Please report any problems....
Re: theide: Windows Microsoft SDK 64-bit debugging [message #43486 is a reply to message #43485] Sun, 10 August 2014 21:15 Go to previous messageGo to next message
Klugier is currently offline  Klugier
Messages: 1075
Registered: September 2012
Location: Poland, Kraków
Senior Contributor
Hello Mirek,

Are you planing to support 64 bits MS Windows nightly builds?

Sincerely,
Klugier


U++ - one framework to rule them all.
Re: theide: Windows Microsoft SDK 64-bit debugging [message #43487 is a reply to message #43486] Sun, 10 August 2014 21:46 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Klugier wrote on Sun, 10 August 2014 21:15
Hello Mirek,

Are you planing to support 64 bits MS Windows nightly builds?

Sincerely,
Klugier


Yes, but might take some time...

Mirek
Re: theide: Windows Microsoft SDK 64-bit debugging [message #43489 is a reply to message #43485] Mon, 11 August 2014 10:57 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3355
Registered: August 2008
Senior Veteran
Good. Thank you!

Best regards
Iñaki
Re: theide: Windows Microsoft SDK 64-bit debugging [message #43491 is a reply to message #43489] Mon, 11 August 2014 18:08 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3355
Registered: August 2008
Senior Veteran
Hello Mirek

I cannot debug 32 or 64 bit applications.

With TheIDE 32 I have compiled TheIDE 64. It works well, but when I add a breakpoint, the application crashes with an exception writing at 00000000. This happens with simple demo packages like Clock.



Best regards
Iñaki
Re: theide: Windows Microsoft SDK 64-bit debugging [message #43492 is a reply to message #43491] Mon, 11 August 2014 19:24 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
koldo wrote on Mon, 11 August 2014 18:08
Hello Mirek

I cannot debug 32 or 64 bit applications.

With TheIDE 32 I have compiled TheIDE 64. It works well, but when I add a breakpoint, the application crashes with an exception writing at 00000000. This happens with simple demo packages like Clock.



Debugging 64-bit or 32-bit app? What OS?

Mirek
Re: theide: Windows Microsoft SDK 64-bit debugging [message #43493 is a reply to message #43492] Mon, 11 August 2014 19:28 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
BTW, I have just tried it works.... using MSC10x64, breakpoint on the first line of constructor.

index.php?t=getfile&id=4590&private=0
Re: theide: Windows Microsoft SDK 64-bit debugging [message #43495 is a reply to message #43492] Tue, 12 August 2014 09:39 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3355
Registered: August 2008
Senior Veteran
mirek wrote on Mon, 11 August 2014 19:24
koldo wrote on Mon, 11 August 2014 18:08
Hello Mirek

I cannot debug 32 or 64 bit applications.

With TheIDE 32 I have compiled TheIDE 64. It works well, but when I add a breakpoint, the application crashes with an exception writing at 00000000. This happens with simple demo packages like Clock.



Debugging 64-bit or 32-bit app? What OS?

Mirek
Hello Mirek

Windows 7 64 bits. The problem happens debugging both MSC10 32 and 64 bits.

index.php?t=getfile&id=4591&private=0
  • Attachment: Image.jpg
    (Size: 224.14KB, Downloaded 803 times)


Best regards
Iñaki
Re: theide: Windows Microsoft SDK 64-bit debugging [message #43496 is a reply to message #43495] Tue, 12 August 2014 13:34 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
I have now fixed issue with some strange FP exceptions, I think the fix can be related to this as well. Can you please recheck with the latest trunk?

Thanks,

Mirek
Re: theide: Windows Microsoft SDK 64-bit debugging [message #43497 is a reply to message #43496] Tue, 12 August 2014 15:24 Go to previous messageGo to next message
masu is currently offline  masu
Messages: 378
Registered: February 2006
Senior Member
Hi,

can you please also add
#ifdef COMPILER_MSC
to Cpu.cpp and Stack.cpp?
I get compile errors with TDM_MINGW64.

Thanks! Smile

Regards
Matthias


931b81e7ea53320dccc37375b34b38c3
Re: theide: Windows Microsoft SDK 64-bit debugging [message #43498 is a reply to message #43497] Tue, 12 August 2014 20:07 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Ops. Thanks, applied.

Mirek
Re: theide: Windows Microsoft SDK 64-bit debugging [message #43502 is a reply to message #43498] Tue, 12 August 2014 23:02 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3355
Registered: August 2008
Senior Veteran
Problem solved. Now it works perfectly with MSC in 32 and 64 bits. Thank you Mirek.

Best regards
Iñaki
Re: theide: Windows Microsoft SDK 64-bit debugging [message #43503 is a reply to message #43502] Wed, 13 August 2014 08:04 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
koldo wrote on Tue, 12 August 2014 23:02
Problem solved. Now it works perfectly with MSC in 32 and 64 bits. Thank you Mirek.


Great! Thanks for reporting.
Re: theide: Windows Microsoft SDK 64-bit debugging [message #43531 is a reply to message #43503] Sun, 24 August 2014 11:04 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
New features implemented:

- debugger now fully implements global variables. Known problem: I have not found a way how to distinguish between two static global variables with the same name in different modules, so one of them is randomly picked.

- debugger now implements conditional breakpoints; thing to know is that it is capable of evaluating about thousands of conditional breakpoints per second. TODO: I still yet have to document expression syntax
Re: theide: Windows Microsoft SDK 64-bit debugging [message #43686 is a reply to message #43531] Sun, 21 September 2014 14:17 Go to previous messageGo to next message
281264 is currently offline  281264
Messages: 270
Registered: June 2010
Location: Spain
Experienced Member
Mirek,

Many thanks for your effort in developping this new feature. I am trying to test it and have this question with regard to the compilation in 64 bits; when you say this:

Quote:

In order to do so, you need to compile 64-bit ide; that is then able to debug both 64-bit and 32-bit apps.


How can I do it?

Best regards,

Javier
Re: theide: Windows Microsoft SDK 64-bit debugging [message #43687 is a reply to message #43686] Sun, 21 September 2014 17:03 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
281264 wrote on Sun, 21 September 2014 14:17
Mirek,

Many thanks for your effort in developping this new feature. I am trying to test it and have this question with regard to the compilation in 64 bits; when you say this:

Quote:

In order to do so, you need to compile 64-bit ide; that is then able to debug both 64-bit and 32-bit apps.


How can I do it?

Best regards,

Javier


Automated build method setup should have had setup 64-bit build method for you. All you need to do is switch the build method e.g. from MSC10 to MSC10x64.
If you do not have that method, the simplest way is to rerun automated build method setup (Setup/Automatic setup).

Mirek
Re: theide: Windows Microsoft SDK 64-bit debugging [message #43699 is a reply to message #43687] Mon, 22 September 2014 22:26 Go to previous messageGo to next message
281264 is currently offline  281264
Messages: 270
Registered: June 2010
Location: Spain
Experienced Member
The Automated Building Method set up is not the problem for it detects MSC 12x64. The version I am using
is 7703 loaded by using the win32 installer from the web site. What do you think is going wrong?

Thx,

Javier
Re: theide: Windows Microsoft SDK 64-bit debugging [message #43704 is a reply to message #43699] Wed, 24 September 2014 08:14 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
281264 wrote on Mon, 22 September 2014 22:26
The Automated Building Method set up is not the problem for it detects MSC 12x64. The version I am using
is 7703 loaded by using the win32 installer from the web site. What do you think is going wrong?

Thx,

Javier


I am a little bit confused now... So I will try to cover all corners Smile

After installing U++ in windows, you (for now) get 32-bit theide.exe. This is able to compile 64-bit apps, but not to debug them.

You need 64-bit theide.exe. Sources of ide are part of uppsrc, so what you are supposed to do is to build 64-bit theide.exe using 32-bit theide.exe that you have. Thus at the start of ide, choose uppsrc assembly and ide package, then set the method to MSC 12x64 and Optimal mode, then build. This should produce ide.exe (you can use Build/Open output directory to locate it quickly), now rename to theide.exe and replace the original theide.exe (which is in c:/upp by default) with this new one (perhaps make backup first).

Mirek
Re: theide: Windows Microsoft SDK 64-bit debugging [message #43708 is a reply to message #43704] Wed, 24 September 2014 14:46 Go to previous messageGo to next message
281264 is currently offline  281264
Messages: 270
Registered: June 2010
Location: Spain
Experienced Member
Mirek,

Thank you for the clarification. It works fine.

I've tested the feature with several types of applications and found that in simple "console" applications (those with CONSOLE_APP_MAIN + Core package) you have to select the option "All shared" within "building"+"Output mode" menu. Otherwise, the compier produces an error. It might well be that I have had that option the wrong way from the very beginning.

Many thanks.

Javier
Re: theide: Windows Microsoft SDK 64-bit debugging [message #43716 is a reply to message #43708] Thu, 25 September 2014 14:26 Go to previous messageGo to previous message
281264 is currently offline  281264
Messages: 270
Registered: June 2010
Location: Spain
Experienced Member
After executing "Build" + "Rebuild all" the problems dissapeared. Everything works fine now.

Cheers!

Javier
Previous Topic: Log compression
Next Topic: ide: Assisted #include now inserts missing package, Insert #include in editor menu
Goto Forum:
  


Current Time: Thu Mar 28 21:51:59 CET 2024

Total time taken to generate the page: 0.01455 seconds