/qemu/scripts/qemugdb/ |
H A D | coroutine.py | 12 import gdb 14 VOID_PTR = gdb.lookup_type('void').pointer() 28 f = gdb.newest_frame() 76 gdb.newest_frame().select() 84 gdb.execute('bt') 99 class CoroutineCommand(gdb.Command): 102 gdb.Command.__init__(self, 'qemu coroutine', gdb.COMMAND_DATA, 106 argv = gdb.string_to_argv(arg) 113 class CoroutineBt(gdb.Command): 116 gdb.Command.__init__(self, 'qemu bt', gdb.COMMAND_STACK, [all …]
|
H A D | tcg.py | 15 import gdb 17 class TCGLockStatusCommand(gdb.Command): 20 gdb.Command.__init__(self, 'qemu tcg-lock-status', gdb.COMMAND_DATA, 21 gdb.COMPLETE_NONE) 24 gdb.write("Thread, BQL (iothread_mutex), Replay, Blocked?\n") 25 for thread in gdb.inferiors()[0].threads(): 28 iothread = gdb.parse_and_eval("iothread_locked") 29 replay = gdb.parse_and_eval("replay_locked") 31 frame = gdb.selected_frame() 34 mutex = gdb.parse_and_eval("mutex") [all …]
|
H A D | aio.py | 12 import gdb 16 return ptr == gdb.Value(0).cast(ptr.type) 22 sym_fd_coroutine_enter = gdb.parse_and_eval('fd_coroutine_enter') 26 gdb.write('----\n%s\n' % entry) 33 gdb.write('----\n') 35 class HandlersCommand(gdb.Command): 38 gdb.Command.__init__(self, 'qemu handlers', gdb.COMMAND_DATA, 39 gdb.COMPLETE_NONE) 43 argv = gdb.string_to_argv(arg) 50 gdb.write('usage: qemu handlers [--verbose] [handler]\n') [all …]
|
H A D | mtree.py | 14 import gdb 17 return ptr == gdb.Value(0).cast(ptr.type) 25 if p.type.code == gdb.TYPE_CODE_STRUCT: 30 class MtreeCommand(gdb.Command): 33 gdb.Command.__init__(self, 'qemu mtree', gdb.COMMAND_DATA, 34 gdb.COMPLETE_NONE) 42 ptr = gdb.parse_and_eval(varname)['root'] 63 gdb.write('%s%016x-%016x %s%s (@ %s)\n' 71 gdb.STDOUT) 73 gdb.write('%s alias: %s@%016x (@ %s)\n' % [all …]
|
H A D | timers.py | 15 import gdb 17 class TimersCommand(gdb.Command): 22 gdb.Command.__init__(self, 'qemu timers', gdb.COMMAND_DATA, 23 gdb.COMPLETE_NONE) 28 gdb.write(" timer %s/%s (cb:%s,opq:%s)\n" % ( 39 gdb.write("Processing %s timers\n" % (ttype)) 40 gdb.write(" clock %s is enabled:%s, last:%s\n" % ( 50 main_timers = gdb.parse_and_eval("main_loop_tlg")
|
/qemu/tests/tcg/multiarch/gdbstub/ |
H A D | catch-syscalls.py | 16 gdb.Breakpoint("main") 17 gdb.execute("continue") 20 gdb.execute("delete") 23 except gdb.error as exc: 30 gdb.execute("continue") 37 gdb.execute("delete") 39 gdb.execute("continue") 43 gdb.execute("delete") 45 gdb.execute("continue") 46 gdb.execute("delete") [all …]
|
H A D | memory.py | 10 import gdb 17 start_pc = gdb.parse_and_eval('$pc') 18 gdb.execute("si") 19 end_pc = gdb.parse_and_eval('$pc') 32 sym, ok = gdb.lookup_symbol(sym_name) 33 bp = gdb.Breakpoint(sym_name, gdb.BP_BREAKPOINT) 35 gdb.execute("c") 38 end_pc = gdb.parse_and_eval('$pc') 47 wp = gdb.Breakpoint(sym, gdb.BP_WATCHPOINT, wtype) 48 gdb.execute("c") [all …]
|
H A D | sha1.py | 9 import gdb 18 sym, ok = gdb.lookup_symbol(sym_name) 19 bp = gdb.Breakpoint(sym_name) 21 gdb.execute("c") 24 end_pc = gdb.parse_and_eval('$pc') 39 gdb.execute("next") 40 gdb.execute("next") 41 val_ctx = gdb.parse_and_eval("context->state[0]") 45 gdb.execute("next") 46 val_ctx = gdb.parse_and_eval("context->state[1]") [all …]
|
H A D | follow-fork-mode-child.py | 10 gdb.execute("set follow-fork-mode child") 12 gdb.execute("break break_after_fork") 18 gdb.execute("catch syscall {}".format(fork_syscall)) 19 except gdb.error: 23 gdb.execute("continue") 29 gdb.execute("si") 31 gdb.execute("continue") 33 gdb.execute("continue") 35 gdb.execute("continue") 36 exitcode = int(gdb.parse_and_eval("$_exitcode"))
|
H A D | interrupt.py | 10 import gdb 22 gdb.execute("thr %d" % thread.num) 34 gdb.execute("set $pc = loop") 37 gdb.post_event(lambda: gdb.execute("interrupt")) 38 gdb.execute("c") 42 return (thread.num == gdb.selected_thread().num) 50 if len(gdb.selected_inferior().threads()) == 1: 54 gdb.execute("set scheduler-locking on") 55 for thread in gdb.selected_inferior().threads():
|
/qemu/tests/tcg/s390x/gdbstub/ |
H A D | test-svc.py | 5 import gdb 11 report("lghi\t" in gdb.execute("x/i $pc", False, True), "insn #1") 12 gdb.execute("si") 13 report("larl\t" in gdb.execute("x/i $pc", False, True), "insn #2") 14 gdb.execute("si") 15 report("lgrl\t" in gdb.execute("x/i $pc", False, True), "insn #3") 16 gdb.execute("si") 17 report("svc\t" in gdb.execute("x/i $pc", False, True), "insn #4") 18 gdb.execute("si") 20 gdb.execute("si") [all …]
|
H A D | test-signals-s390x.py | 9 import gdb 15 illegal_op = gdb.Breakpoint("illegal_op") 16 stg = gdb.Breakpoint("stg") 17 mvc_8 = gdb.Breakpoint("mvc_8") 24 gdb.execute("c") 30 gdb.Breakpoint("_exit") 31 gdb.execute("c") 32 status = int(gdb.parse_and_eval("$r2"))
|
/qemu/tests/tcg/aarch64/gdbstub/ |
H A D | test-sve-ioctl.py | 10 import gdb 16 class TestBreakpoint(gdb.Breakpoint): 22 val_i = gdb.parse_and_eval('i') 26 val_z = gdb.parse_and_eval("$z0.b.u[%d]" % i) 29 val_z = gdb.parse_and_eval("$z0.b.u[%d]" % i) 31 except gdb.error: 38 val_z = gdb.parse_and_eval("$z0.b.u[%d]" % i) 39 val_v = gdb.parse_and_eval("$v0.b.u[%d]" % i) 42 except gdb.error: 53 vg = gdb.parse_and_eval("$vg") [all …]
|
H A D | test-sve.py | 8 import gdb 17 gdb.execute("info registers") 20 gdb.execute("info registers vector") 24 frame = gdb.selected_frame() 31 gdb.execute(cmd) 35 v = gdb.parse_and_eval(reg) 39 gdb.execute(cmd) 43 v = gdb.parse_and_eval(reg)
|
/qemu/configs/targets/ |
H A D | aarch64-softmmu.mak | 5 …gdb-xml/aarch64-core.xml gdb-xml/aarch64-fpu.xml gdb-xml/arm-core.xml gdb-xml/arm-vfp.xml gdb-xml/…
|
H A D | s390x-linux-user.mak | 5 …gdb-xml/s390x-core64.xml gdb-xml/s390-acr.xml gdb-xml/s390-fpr.xml gdb-xml/s390-vx.xml gdb-xml/s39…
|
H A D | s390x-softmmu.mak | 5 …gdb-xml/s390x-core64.xml gdb-xml/s390-acr.xml gdb-xml/s390-fpr.xml gdb-xml/s390-vx.xml gdb-xml/s39…
|
H A D | arm-bsd-user.mak | 2 …ILES= gdb-xml/arm-core.xml gdb-xml/arm-vfp.xml gdb-xml/arm-vfp3.xml gdb-xml/arm-vfp-sysregs.xml gd…
|
H A D | arm-softmmu.mak | 3 …ILES= gdb-xml/arm-core.xml gdb-xml/arm-vfp.xml gdb-xml/arm-vfp3.xml gdb-xml/arm-vfp-sysregs.xml gd…
|
H A D | arm-linux-user.mak | 4 …ILES= gdb-xml/arm-core.xml gdb-xml/arm-vfp.xml gdb-xml/arm-vfp3.xml gdb-xml/arm-vfp-sysregs.xml gd…
|
H A D | armeb-linux-user.mak | 5 …ILES= gdb-xml/arm-core.xml gdb-xml/arm-vfp.xml gdb-xml/arm-vfp3.xml gdb-xml/arm-vfp-sysregs.xml gd…
|
/qemu/tests/tcg/multiarch/system/ |
H A D | Makefile.softmmu-target | 22 --gdb $(GDB) \ 24 --output $<.gdb.out \ 31 --gdb $(GDB) \ 33 --output $<.gdb.out \ 40 --gdb $(GDB) \ 41 --gdb-args "-ex 'set debug remote 1'" \ 42 --output untimely-packet.gdb.out \ 43 --stderr untimely-packet.gdb.err \ 50 "GREP", file untimely-packet.gdb.err) 54 --gdb $(GDB) \ [all …]
|
/qemu/docs/system/ |
H A D | gdb.rst | 6 QEMU supports working with gdb via gdb's remote-connection facility 29 > gdb vmlinux 31 In gdb, connect to QEMU:: 38 (gdb) c 113 (gdb) add-inferior 115 (gdb) inferior 2 117 (gdb) attach 2 126 (gdb) info threads 135 (gdb) set schedule-multiple on 155 (gdb) target remote /tmp/gdb-socket [all …]
|
/qemu/tests/guest-debug/ |
H A D | test_gdbstub.py | 5 import gdb 28 inferior = gdb.selected_inferior() 34 except (gdb.error, AttributeError): 38 if gdb.parse_and_eval("$pc") == 0: 55 gdb.execute("kill") 56 except gdb.error: 60 gdb.execute(f"exit {fail_count}")
|
/qemu/scripts/ |
H A D | qemu-gdb.py | 17 import gdb 28 class QemuCommand(gdb.Command): 31 gdb.Command.__init__(self, 'qemu', gdb.COMMAND_DATA, 32 gdb.COMPLETE_NONE, True) 47 gdb.execute('handle SIGUSR1 pass noprint nostop')
|