|
From: | Ryan Govostes |
Subject: | Nested control structures in Apple GDB broken? |
Date: | Sun, 12 Dec 2004 16:45:26 -0500 |
GNU gdb 5.3-20030128 (Apple version gdb-330.1) (Fri Jul 16 21:42:28 GMT 2004)
Copyright 2003 Free Software Foundation, Inc.
...
if($r3 == 0)
printf "$r3 is 0.\n"
else
printf "$r3 is not 0.\n"
end
if($r3 == 0)
printf "$r3 is 0.\n"
else
if($r3 > 0)
printf "$r3 is greater than 0.\n"
else
printf "$r3 is less than 0.\n"
end
end
# Searches for the start of the current function
define fs
set $i = $pc
while(*$i != 0x7C0802A6)
set $i = $i - 4
end
print $i
end
[Prev in Thread] | Current Thread | [Next in Thread] |