# HG changeset patch # User Tormod Volden # Date 1583608859 -3600 # Node ID 53827d60f0622bd0be9a44e68e6f95e089ee5f7a # Parent 1aa3a6da1e2ab65cce6c3d9a80298063155700d2 scripts/os9_gdb: Show CRC in module directory list diff -r 1aa3a6da1e2a -r 53827d60f062 scripts/os9.gdb --- a/scripts/os9.gdb Sat Mar 07 20:20:28 2020 +0100 +++ b/scripts/os9.gdb Sat Mar 07 20:20:59 2020 +0100 @@ -35,12 +35,14 @@ define os9_mident set $m = (int*)$arg0 set $msize = *($m + 1) + set $mend = (char*) $m + $msize set $mtype = *((char*) $m + 6) set $mexec = *(int*)((char*) $m + 9) printf "%04x %4x %2X ", $m, $msize, $mtype + printf "%02X%02X%02X ", *((char*)$mend-3), *((char*)$mend-2), *((char*)$mend-1) os9_mname $m if ($mtype & 0xf) - printf "\t[exec %04x] ", (char*)$m + $mexec + printf "\t\t[exec %04x] ", (char*)$m + $mexec end printf "\n" end @@ -50,7 +52,7 @@ end define os9_mdir - printf "addr size ty name\n" + printf "addr size ty crc name\n" set $mt = *0x44 set $mte = *0x46 while ($mt < $mte)