Which library is that then asshole? All the documentation I read said you just need to add -pg to the compiler and linker options.by cdmac - Coding
Hi, I knew it was a long shot, but I tried compiling and linking my engine with -pg so I could use gprof for profiling. I get a bunch of linker error complaing about "undefined reference to `_mcount'". I noticed powerpc-gekko-gprof.exe in the bin folder of devkitPPC, so I thought there might be support. Am I doing something wrong, or is generating profiling data not supported? If not,by cdmac - Coding
libfat, which is installed as part of devkitpro. #include fat.h // Should have angle brackets but this forum doesn't display them ... fatInitDefault(); fatMountSimple("sd", &__io_wiisd); From then on you can access files on the SD card by just using the regular C file operations. Just add sd:/ (or whatever you mounted the drive with) to the beginning of your path name. Oh yeah,by cdmac - Coding
Hi TiRaNog, Could you send me a private message with your email address and I'll send the program to you. Anyone else who wants it can do the same. Thanks, cdmacby cdmac - Coding
Hi TiRaNog, I've written a windows tool to display trace messages from the Wii. It connects in the same way as with the debug patch. I'm currently working on integrating a GUI GDB frontend into the tool, but I can provide a standalone version for now if you'd like. I also meant to look into using GDB to pass trace messages which would simplify things by only requiring one socby cdmac - Coding
In devkitpro the tool is actually called powerpc-gekko-gdb (or something like that). You can set your environment variables to devkitpro's bin folder, so you can access the debugger from anywhere. I've not actually used core dumps for Wii programs yet, but I assume it dumps a file in elf format, which you can load into GDB to check the state of the machine at the point of the crash.by cdmac - Coding
I've been thinking about writing a remote file serving system, that will allow you to access files on your PC. The idea is to use file serving for development, then simply change one line of code for release to access files from SD card or DVD instead. I think the simplest way to achieve what you want is to use TCP/IP sockets. If you take a look in network.h you should see the required fuby cdmac - Coding
I couldn't believe that nobody had done it yet, but I spent some time searching for an existing solution. I read in forums how people were just using printf()s to debug, and using gcc tools to find out where crashes occurred. The first thing I did was to write a remote TTY system, so you can view trace messages on a PC app instead of on the TV. Then I still yearned for a debugger so I staby cdmac - Coding
Hi all, I'm not sure if this functionality is available yet (I wrote it before Christmas), but I've modified libogc to support debugging using gdb over a wifi connection. Here's a link to the patch which has been submitted to the sourceforge page. SourceForge.net patch. I can't seem to attach files to posts in these forums, so I can't give precompiled versions at thisby cdmac - Coding