From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20022 invoked by alias); 16 Jul 2013 16:45:30 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 20013 invoked by uid 89); 16 Jul 2013 16:45:30 -0000 X-Spam-SWARE-Status: No, score=-1.0 required=5.0 tests=AWL,BAYES_40,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,RDNS_NONE,SPF_PASS autolearn=no version=3.3.1 Received: from Unknown (HELO mail-la0-f48.google.com) (209.85.215.48) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Tue, 16 Jul 2013 16:45:27 +0000 Received: by mail-la0-f48.google.com with SMTP id lx15so720252lab.35 for ; Tue, 16 Jul 2013 09:45:19 -0700 (PDT) X-Received: by 10.152.19.40 with SMTP id b8mr1108935lae.34.1373993119027; Tue, 16 Jul 2013 09:45:19 -0700 (PDT) MIME-Version: 1.0 Received: by 10.152.20.231 with HTTP; Tue, 16 Jul 2013 09:45:03 -0700 (PDT) From: Yue Lu Date: Tue, 16 Jul 2013 16:45:00 -0000 Message-ID: Subject: how to continue from a breakpoint in GNU/Hurd To: gdb@sourceware.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-SW-Source: 2013-07/txt/msg00045.txt.bz2 Hi. I am writing a debugger demo under GNU/Hurd when I study the gdb source code. And I have met a big problem that when I set a breakpoint in the inferior, my code can't resume inferior from it. I can get the exception message from the mach kernel when the inferior hit the breakpoint. As soon as I got the exception message, I removed the int3, and set the EIP to the previous values, then post a signal zero to the inferior by msg_sig_post_untraced_request(). at last I called thread_resume() to resume it. But thing goes wrong, the inferior is always stops at the breakpoint. and seems never to continue. I don't know how to fix this, could any of you give me a suggestion? thanks very much. -- Yue Lu (=E9=99=86=E5=B2=B3)