Author Topic: 64 bit : GCC/GDB  (Read 25361 times)

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5177
64 bit : GCC/GDB
« on: June 07, 2006, 09:17:00 pm »
Dear all,

I have recently acquired new hardware. I am running now Windows Xp 64bit and Suse 10.1 on it.
Preparing in providing also 64bit CB version (don't ask me how for the moment ... ;-)  ), I ran into some troubles.
I installed manually MinGW 3.4.5 and GDB 6.2. I can compile nicely a console app in CB, but when debugging GDB crashes on me. This crash also happens when I run GDB from the command line. Anyone outhere who has some info for me on what to do for GDB and WinXP 64bit ??

Many thanks,
Lieven

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9496
Re: 64 bit : GCC/GDB
« Reply #1 on: June 07, 2006, 09:22:25 pm »
...this may be a stupid question: But is your version of GDB compiled against a 64bit OS? I really could imagine that this plays a role for a debugger...?!
With regards, Morten.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: http://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: http://wiki.codeblocks.org/index.php?title=FAQ

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5177
Re: 64 bit : GCC/GDB
« Reply #2 on: June 07, 2006, 09:27:17 pm »
well the GDB is the standard one from MinGW, so i assume it is a 32 bit application, as is GCC 3.4.4, 3.4.5 and 4.x ?
I don't even know if it allows to create real 64bit applications ?

Now winXp 64bit should run 32bit app's, only 32-bit services are not allowed (and all 16bit apps are also out).

On the command line I get the following error :
  Error : dll starting at 0x78d41000 not found


Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9496
Re: 64 bit : GCC/GDB
« Reply #3 on: June 07, 2006, 10:15:39 pm »
On the command line I get the following error :
  Error : dll starting at 0x78d41000 not found
...strange. Do you have an idea what DLL this is? You could try "Dependency Walker" (http://www.dependencywalker.com) which migth help to figure that out. Maybe filemon from SysInternals will help you, too (if GDB tries to access a file that does not exist or similar).
Wih regards, Morten.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: http://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: http://wiki.codeblocks.org/index.php?title=FAQ

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5177
Re: 64 bit : GCC/GDB
« Reply #4 on: June 08, 2006, 10:46:21 am »
Good idea Morton,

I checked with both the 64-bit and 32-bit version of Dependency walker. It seems I should use the 32-bit one, because GDB.exe is a 32 bit app.

Well it claimed it was missing to dependent dll-s :
 1) msjava.dll     ---> this is not needed, blablabla
 2) devmgr.dll

When doing the same thing on my 32 bit winXP (on a 32 bit machine), only the msjava.dll issue remained. The devmgr.dll does exist on winXP64, but it's the 64-bit variant, so it does not work with that. All other dependent dll's for GDB.exe are placed in a "wow" directory, but that devmgr.dll is not there. I tried to copy my 32bit version next to GDB.exe, but that did not help.
Stupid me, I forgot to copy it in that "wow" dir, so that's still something to test.

And the search goes on ....

Offline cmaxb

  • Multiple posting newcomer
  • *
  • Posts: 11
Re: 64 bit : GCC/GDB
« Reply #5 on: October 15, 2006, 05:43:58 am »
I see this error, too. Did you ever resolve it?

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5177
Re: 64 bit : GCC/GDB
« Reply #6 on: October 15, 2006, 10:16:02 am »
nope, once looked at mailing lists on MinGW, they don't support 64-bit, and it seems it's not in their short term plans.

Very sad, very sad. :-(  :evil:

Offline cmaxb

  • Multiple posting newcomer
  • *
  • Posts: 11
Re: 64 bit : GCC/GDB
« Reply #7 on: October 16, 2006, 06:53:21 am »
Dependency Walker states that devmgr.dll is an AMD64 build. Yet it resides in System32 folder. Me thinks this a Microsoft issue.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 6591
    • My Best Post
Re: 64 bit : GCC/GDB
« Reply #8 on: October 27, 2006, 11:01:40 pm »
I getting ready to install WinXP x64 this weekend, I hope to get C::B to work, but it does NOT sound likely from this that I will be able to get the debugger to work.  If there is any process on this please post. I will post my process to this thread if I can make any headway on getting the debugger to work.

Tim S
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline stahta01

  • Lives here!
  • ****
  • Posts: 6591
    • My Best Post
Re: 64 bit : GCC/GDB
« Reply #9 on: November 03, 2006, 02:43:48 am »
I getting ready to install WinXP x64 this weekend, I hope to get C::B to work, but it does NOT sound likely from this that I will be able to get the debugger to work.  If there is any process on this please post. I will post my process to this thread if I can make any headway on getting the debugger to work.

Tim S

Status update deleted the wrong hard drive partition; took to long to setup WinXP 32 for me to work on AMD64 (To tired of Security updates, 60 + security updates over dial-up is not something to look forward to again.)

Note: I found that x86_64-pc-mingw64 is the name of the target for GCC to target AMD64. The thread I read said GCC 4.3 is the earliest version likely to support x86_64-pc-mingw64. So, it is possible GCC 4.4 will be when minGW starts on AMD64 using GCC 4.x.

Tim S 
« Last Edit: November 03, 2006, 08:43:22 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org