Author Topic: Debugger with windows XP  (Read 6266 times)

grumyoldman

  • Guest
Debugger with windows XP
« 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

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5915
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Debugger with windows XP
« Reply #1 on: September 26, 2013, 01:54:01 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.

Offline gd_on

  • Lives here!
  • ****
  • Posts: 797
Re: Debugger with windows XP
« Reply #2 on: September 26, 2013, 07:57:57 pm »
May be the good question is where did you set gdb is ?
In your PATH :
Code
Set variable: PATH=.;C:\Program Files\CodeBlocks\MinGW\bin
and in starting debugger you have :
Code
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 (23H2), svn C::B (last version or almost!), wxWidgets 3.2.4 (tests with 3.3), Msys2 Compilers 13.2.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (dwarf2, posix  in C:\msys64\mingw32).