mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-04-27 22:36:29 +00:00
Improve detection of program exit code in gdb script
This commit is contained in:
parent
6e34e63eb3
commit
806f403a02
|
@ -26,11 +26,6 @@ set $i = 0
|
||||||
set $len = sizeof(buf)
|
set $len = sizeof(buf)
|
||||||
set $buf = buf
|
set $buf = buf
|
||||||
|
|
||||||
if exit_code != 0
|
|
||||||
echo The program did not terminate correctly\n
|
|
||||||
quit 1
|
|
||||||
end
|
|
||||||
|
|
||||||
while $i < $len
|
while $i < $len
|
||||||
if $buf[$i++] != 0
|
if $buf[$i++] != 0
|
||||||
echo The buffer at was not zeroized\n
|
echo The buffer at was not zeroized\n
|
||||||
|
@ -39,4 +34,12 @@ while $i < $len
|
||||||
end
|
end
|
||||||
|
|
||||||
echo The buffer was correctly zeroized\n
|
echo The buffer was correctly zeroized\n
|
||||||
|
|
||||||
|
continue
|
||||||
|
|
||||||
|
if $_exitcode != 0
|
||||||
|
echo The program did not terminate correctly\n
|
||||||
|
quit 1
|
||||||
|
end
|
||||||
|
|
||||||
quit 0
|
quit 0
|
||||||
|
|
Loading…
Reference in a new issue