![]() That is, in the directory gcc-, and not gcc-/gcc: Configure gdb using the following command in the root directory.So use a gcc compiler installed with MacPorts or HomeBrew. On later versions on OSX, gcc has been replaced with clang. To do this, we need a gcc compiler and the gdb source code. run set sysroot /path/to/sysroot (most of the time this is ~/.wine/drive_c) in GDBĪfter this, you can set breakpoints as you like! Compiling gdbserver and gdbįirst, we compile gdb.Start gdb and connect to the server with target remote :.Start gdbserver.exe using wine, e.g.: wine gdbserver.exe :0 openrct2.exeĪ port number will now be shown, this is the port you should connect to in step 4.Use a gdb executable compiled with i686-w64-mingw32 as target (So the "host" is native).Use a gdbserver executable compiled with i686-w64-mingw32 as host (So when you've compiled gdbserver, the result is gdbserver.exe).I've been searching for ways to debug cross-compiled MinGW executables, and finally found this StackOverflow post: To debug OpenRCT2 with these features, a particularly strange setup has to be used. Set break/watch points (not even using the literal address),.When debugging with winedbg, you probably found out that you can't: The information on this page is very outdated and concerns the mingw target only.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |