News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Debugger with windows XP

Started by grumyoldman, September 26, 2013, 01:18:33 AM

Previous topic - Next topic

grumyoldman

Hi all,

Can anyone tell me why debugger is not working with windows XP. Following is transcript from output window, it works fine under windows 7
I have used same method/execute file to install on both machines.
When clicking the step into Icon in debugger this message comes up !!

thanks

Steve

Building to ensure sources are up-to-date
Selecting target:
Debug
Adding source dir: C:\Test\test\
Adding source dir: C:\Test\
Adding file: C:\Test\test\bin\Debug\test.exe
Changing directory to: C:/Test/test/.
Set variable: PATH=.;C:\Program Files\CodeBlocks\MinGW\bin;C:\Program Files\CodeBlocks\MinGW;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32\wbem;C:\Program Files\NTP\bin;C:\Program Files\Internet Explorer;C:\Program Files\QuickTime\QTSystem
Starting debugger: C:\Codeblocks\MINGW\bin\gdb.exe -nx -fullname  -quiet  -args C:/Test/test/bin/Debug/test.exe
failed

ollydbg

Quote from: grumyoldman on September 26, 2013, 01:18:33 AM
Hi all,

Can anyone tell me why debugger is not working with windows XP. Following is transcript from output window, it works fine under windows 7
I have used same method/execute file to install on both machines.
When clicking the step into Icon in debugger this message comes up !!

thanks

Steve

Building to ensure sources are up-to-date
Selecting target:
Debug
Adding source dir: C:\Test\test\
Adding source dir: C:\Test\
Adding file: C:\Test\test\bin\Debug\test.exe
Changing directory to: C:/Test/test/.
Set variable: PATH=.;C:\Program Files\CodeBlocks\MinGW\bin;C:\Program Files\CodeBlocks\MinGW;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32\wbem;C:\Program Files\NTP\bin;C:\Program Files\Internet Explorer;C:\Program Files\QuickTime\QTSystem
Starting debugger: C:\Codeblocks\MINGW\bin\gdb.exe -nx -fullname  -quiet  -args C:/Test/test/bin/Debug/test.exe
failed

Can you run those command under Windows Console in WinXP?
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

gd_on

May be the good question is where did you set gdb is ?
In your PATH :
Set variable: PATH=.;C:\Program Files\CodeBlocks\MinGW\bin
and in starting debugger you have :
Starting debugger: C:\Codeblocks\MINGW\bin\gdb.exe

so : C:\Program Files\CodeBlocks\MinGW\bin or C:\Codeblocks\MINGW\bin ?

verify the tools path in your compiller configuration.

gd_on
Windows 11 64 bits (25H2), svn C::B (last version or almost!), wxWidgets 3.3.2, Msys2 Compilers 16.1.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (dwarf2, posix  in C:\msys64\mingw32).