devkitPPC gdb

Post Reply
hinxx
Posts: 1
Joined: Wed Mar 14, 2018 10:46 am

devkitPPC gdb

Post by hinxx » Fri Mar 16, 2018 2:58 pm

I guess you know about this page: http://wiibrew.org/wiki/Debugging

FWIW, devkitPro as of today, and the gdb it packs for PPC, will not be able to connect to the remote stub over USB gecko. I have a patch in the oven, need to give it a better run, but will try to share over the weekend.

WinterMute
Site Admin
Posts: 1499
Joined: Tue Aug 09, 2005 3:21 am
Location: UK
Contact:

Re: devkitPPC gdb

Post by WinterMute » Sat Jun 16, 2018 7:23 pm

I split this off from the original thread where it was posted rather than bumping a pretty old thread.

A patch would be much appreciated or at least some indication of what the problem is would be most appreciated. I'm in the middle of trying to clean things up a bit around here and gather some more documentation. So much stuff has been lost to the mists of time thanks to being put on sites that went down years ago :(
Help keep devkitPro toolchains free, Donate today

Personal Blog

Fling
Posts: 3
Joined: Wed Nov 07, 2007 11:14 pm

Re: devkitPPC gdb

Post by Fling » Sun Jan 31, 2021 11:06 pm

Any updates on this? Remote debugging with a USB Gecko is still not possible (tested myself on both Mac OS and Linux) with the current versions of GDB being provided with devkitPPC.

After some investigation with manually building older versions of GDB, I found that anything past v7.7.1 will fail to establish a remote connection, but 7.7.1 and prior work great.

GDB 9.2

Code: Select all

$ ./powerpc-eabi-gdb
GNU gdb (GDB) 9.2
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "--host=x86_64-apple-darwin15 --target=powerpc-eabi".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word".
(gdb) target remote /dev/cu.usbserial-GECKUSB0
Remote debugging using /dev/cu.usbserial-GECKUSB0
../../gdb/inferior.c:283: internal-error: struct inferior *find_inferior_pid(int): Assertion `pid != 0' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Quit this debugging session? (y or n) 
GDB 7.7.1

Code: Select all

$ ./powerpc-eabi-gdb
GNU gdb (GDB) 7.7.1
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "--host=x86_64-apple-darwin18.7.0 --target=powerpc-eabi".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word".
(gdb) target remote /dev/cu.usbserial-GECKUSB0
Remote debugging using /dev/cu.usbserial-GECKUSB0
0x800069c4 in ?? ()
(gdb) 
GDB 7.7.1 happens to work well enough for my purposes at the moment, so I am going to just continue using it until a better solution is available, but obviously sticking to an older version is not ideal.

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 3 guests