adbrt / cb-legacy-dev

37 stars 6 forks source link

Wrong path passed to w31launcher.bat #7

Open sduensin opened 2 months ago

sduensin commented 2 months ago

I tried building the sample wxWindows project for Windows 3.11. I get an executable but DOSBox does not launch. As you can see from the output below, the path passed to w31launcher.bat is incorrect.

Active debugger config: GDB/CDB debugger:Default
Building to ensure sources are up-to-date
Selecting target: 
Release
Adding source dir: C:\code\Win31Test\
Adding source dir: C:\code\Win31Test\
Adding file: C:\code\Win31Test\bin\Release\Win31Test.exe
Changing directory to: C:/code/Win31Test/.
Set variable: PATH=.;C:\dev\CodeBlocks\wxMSW-2.8.12\lib\bcc_lib;C:\dev\CodeBlocks\BCC55\Bin;C:\dev\CodeBlocks\BCC55;C:\Windows\System32;C:\Windows;C:\Windows\System32\wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32\OpenSSH;C:\Users\Scott\AppData\Local\Microsoft\WindowsApps;\

[debug]Command-line: C:\dev\CodeBlocks\tdmgcc32\bin\gdb.exe -nx -fullname -quiet  -args C:/code/Win31Test/bin/Release/Win31Test.exe
[debug]Working dir : C:\code\Win31Test

Starting debugger: C:\dev\CodeBlocks\tdmgcc32\bin\gdb.exe -nx -fullname -quiet  -args C:/code/Win31Test/bin/Release/Win31Test.exe
done

[debug]Reading symbols from C:\code\Win31Test\bin\Release\Win31Test.exe...(no debugging symbols found)...done.
[debug](gdb) 
[debug]> set prompt >>>>>>cb_gdb:

Setting breakpoints

[debug]>>>>>>cb_gdb:
[debug]> show version

Reading symbols from C:\code\Win31Test\bin\Release\Win31Test.exe...(no debugging symbols found)...done.

[debug]GNU gdb (GDB) 7.5
[debug]Copyright (C) 2012 Free Software Foundation, Inc.
[debug]License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
[debug]This is free software: you are free to change and redistribute it.
[debug]There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
[debug]and "show warranty" for details.
[debug]This GDB was configured as "i686-pc-mingw32".
[debug]For bug reporting instructions, please see:
[debug]<http://www.gnu.org/software/gdb/bugs/>.
[debug]>>>>>>cb_gdb:
[debug]> set confirm off

Debugger name and version: GNU gdb (GDB) 7.5

[debug]>>>>>>cb_gdb:
[debug]> set width 0
[debug]>>>>>>cb_gdb:
[debug]> set height 0
[debug]>>>>>>cb_gdb:
[debug]> set breakpoint pending on
[debug]>>>>>>cb_gdb:
[debug]> set print asm-demangle on
[debug]>>>>>>cb_gdb:
[debug]> set unwindonsignal on
[debug]>>>>>>cb_gdb:
[debug]> set print elements 200
[debug]>>>>>>cb_gdb:
[debug]> set filename-display absolute
[debug]No symbol table is loaded.  Use the "file" command.
[debug]>>>>>>cb_gdb:
[debug]> set disassembly-flavor att
[debug]>>>>>>cb_gdb:
[debug]> catch throw
[debug]Function "__cxa_throw" not defined.
[debug]Catchpoint 1 (throw)
[debug]>>>>>>cb_gdb:
[debug]> directory C:/code/Win31Test/
[debug]Source directories searched: C:/code/Win31Test;$cdir;$cwd
[debug]>>>>>>cb_gdb:
[debug]> shell C:\dev\CodeBlocks\dosboxw31\w31launcher.bat "C:\code\Win31Test\Win31Test.exe"
[debug]This scripts will run given executable in Windows 3.11 inside DOSBox-X.
[debug]Usage: 
[debug]w31launcher.bat "PathToExecutable.exe"
[debug]>>>>>>cb_gdb:
[debug]> q

Debugger finished with status 0
sduensin commented 2 months ago

This only happens when you create a new project. If you save the workspace, exit, reload it, and try again... it works!