(gdb) c
Continuing.
^Cqemu-system-ppc: terminating on signal 2
[Inferior 1 (process 1) exited normally]
(gdb) Traceback (most recent call last):
File "/android1/boot-utils/boot-qemu.py", line 807, in <module>
launch_qemu(config)
File "/android1/boot-utils/boot-qemu.py", line 773, in launch_qemu
subprocess.run(gdb_cmd, check=False)
File "/usr/lib/python3.10/subprocess.py", line 505, in run
stdout, stderr = process.communicate(input, timeout=timeout)
File "/usr/lib/python3.10/subprocess.py", line 1146, in communicate
self.wait()
File "/usr/lib/python3.10/subprocess.py", line 1209, in wait
return self._wait(timeout=timeout)
File "/usr/lib/python3.10/subprocess.py", line 1943, in _wait
(pid, sts) = self._try_wait(0)
File "/usr/lib/python3.10/subprocess.py", line 1901, in _try_wait
(pid, sts) = os.waitpid(self.pid, wait_flags)
KeyboardInterrupt
(gdb) c
Continuing.
Program received signal SIGINT, Interrupt.
0xfff0b37c in ?? ()
This is important because it's common to halt the machine to grab a back trace via ctrl+c then bt in gdb.
if I use
ctrl+cin gdb mode, I get a crash:but if I
ps -ef | grep gdbthen send that process a SIGINTkill -SIGINT <pid>I get the expected output:This is important because it's common to halt the machine to grab a back trace via
ctrl+cthenbtin gdb.