[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[MiNT] Possible bug with GCC or GDB?




Hello,

I just tried to hunt an bug "within WinDom". After a few lines of debugging I'm not so sure if the bug is really within windom.

Here is a bit of the debug session (no real log, sorry...)

in comp_widget_create( ... )
...
list
long lfbuff[8] = {SOME_DEFINE];
mt_CompEvntExec( app, wc, lbuff );

print wc
$1 = (COMPONENT *) 0x3c5b648
print lfbuff
$2 = {598088462, 36270700, 36270804, 0, 1,1,1,1}
s
in mt_CompEvntExec(...)
print buff ( this was passed as lfbuff)
v$4 =(long int *) 0x1
print p ( this was passed ad wc)
$5 = (COMPONENT *) 0x0

So, you can see, the stack variables are screwed up.

Compiler flags I used for windom: -g (no optimize flags, no machine flags)

I tried with gdb 5.0 & gdb-2x - is this just an display bug or is it something wicked with the stack? Afaik debugging should work out, as long as you don't mix -02/1 and/or other machine stuff like -m68020-60

Greets,
m