<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Strange bug reported by powerpc-gekko-addr2line</title>
<description> I got powerpc-gekko-addr2line working fine now but the bugs it showed were a bit strange.


C:\Users\Sameh&amp;gt;C:\DevkitPro\devkitPPC\bin\powerpc-gekko-addr2line.exe -e C:\WiiB
rowse\WiiBrowse.elf 800555d0 80062e78 8000666e 80006980 800043a4 8008f3d0
??:0
c:\devkitpro\devkitppc\bin\../lib/gcc/powerpc-gekko/4.2.4/../../../../powerpc-ge
kko/include/c++/4.2.4/ext/new_allocator.h:107
c:/WiiBrowse/source/main.cpp:60
c:/WiiBrowse/source/main.cpp:163
e:/projects/devkitPro/buildscripts/newlib-1.16.0/libgloss/rs6000/crtmain.c:18
lwp_threads.c:0

line 60 is

s32 ip;

and the lines after are

while ((ip = net_init()) == -EAGAIN)
{
mainwindow-&amp;gt;Draw();
splash.Draw();
}

The entire source of main.cpp is at [onsinch.pastebin.com] note that net_init() is a C function not C++



Ignore all below!
I need some help using the powerpc-gekko-addr2line to debug my app.

I made a batch file to run the app:

C:\devkitPro\devkitPPC\bin\powerpc-gekko-addr2line.exe -e C:\WiiBrowse\WiiBrowse.elf

But when i run it it shows a blank line, i assumed you type the address line here but if i do then on the next line this is shown

??:00

I then altered the batch file to this:

C:\devkitPro\devkitPPC\bin\powerpc-gekko-addr2line.exe -e C:\WiiBrowse\WiiBrowse.elf 0x800555d0

When i run it just closes the window instantly.</description><link>http://forum.wiibrew.org/read.php?11,14530,14530#msg-14530</link><lastBuildDate>Sun, 12 Jul 2026 07:55:17 +0200</lastBuildDate>
<generator>Phorum 5.2.23</generator>
<item>
<guid>http://forum.wiibrew.org/read.php?11,14530,14639#msg-14639</guid>
<title>Re: Strange bug reported by powerpc-gekko-addr2line</title><link>http://forum.wiibrew.org/read.php?11,14530,14639#msg-14639</link><description><![CDATA[ When i tried to insert an image into a window it doesnt compile, will try again]]></description>
<dc:creator>SteelSLasher</dc:creator>
<category>Coding</category><pubDate>Fri, 17 Apr 2009 12:54:15 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,14530,14575#msg-14575</guid>
<title>Re: Help using powerpc-gekko-addr2line to debug apps</title><link>http://forum.wiibrew.org/read.php?11,14530,14575#msg-14575</link><description><![CDATA[ <blockquote class="bbcode"><div><small>Quote<br /></small><strong>SteelSLasher</strong><br />thanks for that, also setting it as a windows path, is that by any chance setting a global system variable<br /><br />also while i have your attention, why can&#039;t images be inserted into windows as elements (libwiigui) and will a future release involve built in threads or is there some material describing how threads should be used considering a GUI. I am finding it a bit hard to grasp how threads should be used in libwiigui by looking at the demo.cpp functions<br /><br />Will reply on success or failure</div></blockquote><br />Images can be inserted as elements, that&#039;s what the GuiImage class is for (inherited from GuiElement). I&#039;m personally not going to explain basic threading concepts or write a tutorial on that. Threading is actually not required. The reason it&#039;s not in libwiigui is because I&#039;ve avoided adding any implementation-specific code to the core. The template works perfectly fine and shows how to use libwiigui with threading. By no means is it the only way to use libwiigui.]]></description>
<dc:creator>Tantric</dc:creator>
<category>Coding</category><pubDate>Thu, 16 Apr 2009 22:46:47 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,14530,14574#msg-14574</guid>
<title>Re: Strange bug reported by powerpc-gekko-addr2line</title><link>http://forum.wiibrew.org/read.php?11,14530,14574#msg-14574</link><description><![CDATA[ Success but read first post again]]></description>
<dc:creator>SteelSLasher</dc:creator>
<category>Coding</category><pubDate>Thu, 16 Apr 2009 22:05:51 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,14530,14557#msg-14557</guid>
<title>Re: Help using powerpc-gekko-addr2line to debug apps</title><link>http://forum.wiibrew.org/read.php?11,14530,14557#msg-14557</link><description><![CDATA[ thanks for that, also setting it as a windows path, is that by any chance setting a global system variable<br /><br />also while i have your attention, why can&#039;t images be inserted into windows as elements (libwiigui) and will a future release involve built in threads or is there some material describing how threads should be used considering a GUI. I am finding it a bit hard to grasp how threads should be used in libwiigui by looking at the demo.cpp functions<br /><br />Will reply on success or failure]]></description>
<dc:creator>SteelSLasher</dc:creator>
<category>Coding</category><pubDate>Thu, 16 Apr 2009 20:06:41 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,14530,14543#msg-14543</guid>
<title>Re: Help using powerpc-gekko-addr2line to debug apps</title><link>http://forum.wiibrew.org/read.php?11,14530,14543#msg-14543</link><description><![CDATA[ You should run it like this:<br /><br />C:\devkitPro\devkitPPC\bin\powerpc-gekko-addr2line.exe -e C:\WiiBrowse\WiiBrowse.elf 800555d0 80409595 80299933<br /><br />Where you have included all the addresses under STACK DUMP (the ones separated by --&gt;)<br /><br />Then you will get output like this:<br /><br />??:00<br />video.cpp:93<br />stuff.cpp:203<br />main.cpp:402<br /><br />Which is showing you it went from main.cpp line 402, to stuff.cpp line 203, to video.cpp line 93, to an unrecorded file line ??<br />You&#039;ll just have to live with looking at the other lines and hope they help you (especially the last one, ie: video.cpp:93)<br /><br />P.S.: I would put C:\devkitPro\devkitPPC\bin\ in your windows path so you don&#039;t need to type that part out every time.]]></description>
<dc:creator>Tantric</dc:creator>
<category>Coding</category><pubDate>Thu, 16 Apr 2009 18:01:07 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,14530,14530#msg-14530</guid>
<title>Strange bug reported by powerpc-gekko-addr2line</title><link>http://forum.wiibrew.org/read.php?11,14530,14530#msg-14530</link><description><![CDATA[ I got powerpc-gekko-addr2line working fine now but the bugs it showed were a bit strange.<br /><br /><pre class="bbcode">
C:\Users\Sameh&gt;C:\DevkitPro\devkitPPC\bin\powerpc-gekko-addr2line.exe -e C:\WiiB
rowse\WiiBrowse.elf 800555d0 80062e78 8000666e 80006980 800043a4 8008f3d0
??:0
c:\devkitpro\devkitppc\bin\../lib/gcc/powerpc-gekko/4.2.4/../../../../powerpc-ge
kko/include/c++/4.2.4/ext/new_allocator.h:107
c:/WiiBrowse/source/main.cpp:60
c:/WiiBrowse/source/main.cpp:163
e:/projects/devkitPro/buildscripts/newlib-1.16.0/libgloss/rs6000/crtmain.c:18
lwp_threads.c:0</pre><br />line 60 is<br /><pre class="bbcode">
s32 ip;</pre><br />and the lines after are<br /><pre class="bbcode">
while ((ip = net_init()) == -EAGAIN)
	{
		mainwindow-&gt;Draw();
		splash.Draw();
	}</pre><br />The entire source of main.cpp is at [<a href="http://onsinch.pastebin.com/m65b3d868" rel="nofollow">onsinch.pastebin.com</a>] note that net_init() is a C function not C++<br /><br /><br /><br />Ignore all below!<br />I need some help using the powerpc-gekko-addr2line to debug my app.<br /><br />I made a batch file to run the app:<br /><pre class="bbcode">
C:\devkitPro\devkitPPC\bin\powerpc-gekko-addr2line.exe -e C:\WiiBrowse\WiiBrowse.elf</pre><br />But when i run it it shows a blank line, i assumed you type the address line here but if i do then on the next line this is shown<br /><pre class="bbcode">
??:00</pre><br />I then altered the batch file to this:<br /><pre class="bbcode">
C:\devkitPro\devkitPPC\bin\powerpc-gekko-addr2line.exe -e C:\WiiBrowse\WiiBrowse.elf 0x800555d0</pre><br />When i run it just closes the window instantly.]]></description>
<dc:creator>SteelSLasher</dc:creator>
<category>Coding</category><pubDate>Thu, 16 Apr 2009 15:33:32 +0200</pubDate></item>
</channel>
</rss>