![]() |
|
[Linux]Trouble running Dolphin with gdb - Printable Version +- Dolphin, the GameCube and Wii emulator - Forums (https://forums.dolphin-emu.org) +-- Forum: Dolphin Emulator Discussion and Support (https://forums.dolphin-emu.org/Forum-dolphin-emulator-discussion-and-support) +--- Forum: Development Discussion (https://forums.dolphin-emu.org/Forum-development-discussion) +--- Thread: [Linux]Trouble running Dolphin with gdb (/Thread-linux-trouble-running-dolphin-with-gdb) |
[Linux]Trouble running Dolphin with gdb - DarzgL - 08-16-2014 Hi, I'm trying to run Dolphin under gdb to investigate some hangs and segfaults. I've compiled it with the GDBSTUB cmake option, but still gdb tells the executable has no debug symbols. More importantly, it hangs when I load an ISO. Am I missing something ? RE: [Linux]Trouble running Dolphin with gdb - Shished - 08-16-2014 For me it always hangs (crashes?) after loading game when launched in gdb. Here is BT: Code: Program received signal SIGSEGV, Segmentation fault.RE: [Linux]Trouble running Dolphin with gdb - JMC47 - 08-16-2014 You have to turn off fastmem before running Dolphin in gdb. RE: [Linux]Trouble running Dolphin with gdb - DarzgL - 08-16-2014 I get the same behaviour with fastmem off... It hangs at [New thread ...] when I launch an ISO, with no errors. RE: [Linux]Trouble running Dolphin with gdb - delroth - 08-16-2014 Well... what do you expect it to do? RE: [Linux]Trouble running Dolphin with gdb - DarzgL - 08-17-2014 I expect it to keep running as it does when I run it without gdb. I'm not used to running gdb with large programs like Dolphin though. RE: [Linux]Trouble running Dolphin with gdb - delroth - 08-17-2014 If you compiled with GDBSTUB support it might be waiting for a PowerPC GDB to connect to it. I'm really not sure why you enabled this option. RE: [Linux]Trouble running Dolphin with gdb - DarzgL - 08-17-2014 I must have misunderstood what the option was for, I thought it simply was meant for a standard debug build (I tried simply adding -g to CXX flags but it seemed to have no effect). Okay, my inexperience with CMake is to blame, I didn't know of the BUILD_TYPE variable. Sorry for wasting your time guys
RE: [Linux]Trouble running Dolphin with gdb - DarzgL - 08-18-2014 This time I'm sure I have a proper debug build, but I still have the same problem, Dolphin will just hang when I load a game while runnning with gdb, whereas it runs just fine without gdb. Also, gdb still says it can't find debug symbols in the program. |