Dolphin, the GameCube and Wii emulator - Forums
[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.
[Switching to Thread 0x7fff99ac0700 (LWP 5914)]
0x000000004040be98 in ?? ()
(gdb) bt
#0  0x000000004040be98 in ?? ()
#1  0x0000000000000100 in ?? ()
#2  0x00007fff99ac0700 in ?? ()
#3  0x000000000161b340 in ?? ()
#4  0x00007ffff7ffd000 in _GLOBAL_OFFSET_TABLE_ ()
   from /lib64/ld-linux-x86-64.so.2
#5  0x0000000000000001 in ?? ()
#6  0x0000000000440b50 in __cxa_pure_virtual@plt ()
#7  0x0000000000000000 in ?? ()



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 Sad


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.