I think implementing ptrace in user mode qemu would be remarkably tricky. You'd have to somehow identify that the process you were trying to attach to was really another user-mode qemu process and not a native binary, and then you'd need to establish communication with it over some channel, so you could implement the ptrace syscalls by asking the other qemu to do things for you. There are undoubtedly some really nasty edge cases, like what happens if you try to attach and the other qemu is sat in a blocking syscall, making sure the "gdb forks and execs the binary to debug" case works properly, and so on.
In short, it's a lot of effort for a remarkably small gain, when you can just attach a cross-gdb to qemu directly as Loic suggests. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/535533 Title: gdb fails in arm chroot -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
