coverage.gdb 1.07 KB
Newer Older
1
#
2 3 4 5 6 7
# Leon3 - via 127.0.0.1:1235
#
# file bin.debug.FPU.leon3.WITH_COVERAGE/fputest
# tar extended-remote 127.0.0.1:1235
# load bin.debug.FPU.leon3.WITH_COVERAGE/fputest

8

9
# Leon2
10 11 12 13 14
#
# file bin.debug.FPU.leon2.WITH_COVERAGE/fputest
# tar extended-remote me:1234
# load bin.debug.FPU.leon2.WITH_COVERAGE/fputest

15

16 17 18 19 20 21 22 23 24 25 26
# QEMU/Leon3
#
# Spawn the emulator first:
#
#    ~/tool-src/misc/qemu-Leon3/qemu-system-sparc -no-reboot \
#           -nographic -M leon3_generic -m 64M -kernel  \
#           bin.debug.FPU.leon3/fputest -gdb tcp::9976 -S
#
file bin.debug.FPU.leon3.WITH_COVERAGE/fputest
tar extended-remote 127.0.0.1:9976
load bin.debug.FPU.leon3.WITH_COVERAGE/fputest
27 28

# The coverage exporting to the host
29 30 31 32 33 34 35 36 37 38 39
b base.c:79
commands 1
    silent
    set $filename = tmp->info->filename
    set $dataBegin = buffer
    set $dataEnd = buffer + bytesNeeded
    eval "dump binary memory %s 0x%lx 0x%lx", $filename, $dataBegin, $dataEnd
    echo dump binary memory $filename $dataBegin $dataEnd
    echo \n
    c
end
40 41 42 43 44 45 46 47
b base.c:83
commands 2
    silent
    stop
    monitor quit
    set confirm off
    quit
end
48
c