Comments on: How debugger works http://www.alexonlinux.com/how-debugger-works Tue, 16 May 2023 15:06:12 +0000 hourly 1 https://wordpress.org/?v=4.9.23 By: 调试器工作原理——基础篇 | 高性能架构探索 http://www.alexonlinux.com/how-debugger-works/comment-page-2#comment-124836 Thu, 09 Feb 2023 23:06:50 +0000 http://www.alexandersandler.net/stuff/written-stuff/how-debugger-works#comment-124836 […] How debugger works […]

]]>
By: C ptrace断点 – 实战宝典 http://www.alexonlinux.com/how-debugger-works/comment-page-2#comment-115629 Wed, 22 Jun 2022 02:58:02 +0000 http://www.alexandersandler.net/stuff/written-stuff/how-debugger-works#comment-115629 […] 这个 […]

]]>
By: C ptrace断点 - 运维实战侠 http://www.alexonlinux.com/how-debugger-works/comment-page-2#comment-115577 Mon, 20 Jun 2022 13:31:20 +0000 http://www.alexandersandler.net/stuff/written-stuff/how-debugger-works#comment-115577 […] 这个 […]

]]>
By: Shakaiba http://www.alexonlinux.com/how-debugger-works/comment-page-2#comment-82958 Fri, 03 Feb 2017 03:23:52 +0000 http://www.alexandersandler.net/stuff/written-stuff/how-debugger-works#comment-82958 Thanks for this very informative blog. I need some advice. What I am trying to do is fork a process, exec a new executable in the child process, let the parent terminate and attach to the child process by GDB to debug this child process. The reason I am using an initial parent process to fork a child(debuggable) process is that I want to set some environment properties for this child process which requires some system calls into the linux kernel and do not want to modify the GDB to do so. I tried and found that I can attach to the child process through GDB after the parent process has terminated but in that case the child is already running after the exec() system call. The problem is that I cannot use ptrace(PTRACE_TRACEME) for the child, which causes it to stop at first instruction because in that case GDB cannot attach to it, as it is already traced by its parent. How can I stop the child process after setting up its environment so that it is stopped at its first instruction when i do exec()?

]]>
By: Alexander Sandler http://www.alexonlinux.com/how-debugger-works/comment-page-2#comment-82748 Wed, 21 Dec 2016 22:37:01 +0000 http://www.alexandersandler.net/stuff/written-stuff/how-debugger-works#comment-82748 I don’t think ptrace() can do something like that. Since you are using Eclipse, what programming language you’re using? Can these extra threads belong to a runtime library or perhaps any other library?

]]>
By: D2 http://www.alexonlinux.com/how-debugger-works/comment-page-2#comment-82718 Wed, 14 Dec 2016 14:16:42 +0000 http://www.alexandersandler.net/stuff/written-stuff/how-debugger-works#comment-82718 Debugging using Eclipse, I see 2 threads in the debuggee that usually don’t exist. I was curious about where those threads come from. I have searched quite a bit on the innertube but have not found anything about this. My best guess is that they are injected by ptrace, and that this is really the deeper answer to how ptrace actually works.

Does anybody have any info on this?

]]>
By: Comment fonctionne un debugger ? | Blog Arolla http://www.alexonlinux.com/how-debugger-works/comment-page-2#comment-82233 Tue, 05 Jul 2016 13:00:23 +0000 http://www.alexandersandler.net/stuff/written-stuff/how-debugger-works#comment-82233 […] Un autre article sur le fonctionnement d’un debugger […]

]]>
By: Asif http://www.alexonlinux.com/how-debugger-works/comment-page-2#comment-81414 Fri, 20 Nov 2015 19:34:16 +0000 http://www.alexandersandler.net/stuff/written-stuff/how-debugger-works#comment-81414 Hi
about the debugger becoming the parent as well,
this is not reflected in the value returned in getppid()

]]>
By: [C] Hide your source code | V+ http://www.alexonlinux.com/how-debugger-works/comment-page-2#comment-81135 Fri, 11 Sep 2015 09:37:50 +0000 http://www.alexandersandler.net/stuff/written-stuff/how-debugger-works#comment-81135 […] refer http://www.stonedcoder.org/~kd/lib/14-61-1-PB.pdf http://www.alexonlinux.com/how-debugger-works#the_magic_behind_int_3 […]

]]>
By: Alexander Sandler http://www.alexonlinux.com/how-debugger-works/comment-page-2#comment-80585 Mon, 18 May 2015 13:14:08 +0000 http://www.alexandersandler.net/stuff/written-stuff/how-debugger-works#comment-80585 I’ll fix it. Thanks.

]]>