Mercurial > hg > Members > kono > nitros9-code
changeset 3272:53827d60f062
scripts/os9_gdb: Show CRC in module directory list
author | Tormod Volden <debian.tormod@gmail.com> |
---|---|
date | Sat, 07 Mar 2020 20:20:59 +0100 |
parents | 1aa3a6da1e2a |
children | 359e2f4b5b91 |
files | scripts/os9.gdb |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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)