From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25144 invoked by alias); 12 Feb 2007 19:30:24 -0000 Received: (qmail 24971 invoked by uid 22791); 12 Feb 2007 19:30:19 -0000 X-Spam-Check-By: sourceware.org Received: from web53802.mail.yahoo.com (HELO web53802.mail.yahoo.com) (206.190.36.197) by sourceware.org (qpsmtpd/0.31) with SMTP; Mon, 12 Feb 2007 19:30:13 +0000 Received: (qmail 90279 invoked by uid 60001); 12 Feb 2007 19:30:10 -0000 Message-ID: <20070212193010.90275.qmail@web53802.mail.yahoo.com> X-YMail-OSG: O.pDk2wVM1m7Ur__c2K01ZtC18HeduHX5HSS9RCCGpeCd2tcX2IUSEzC._62pVLcbpsECF6XCc1sJm1Kt474g0ksUqviPw3ChHcMr5XmCSL5UCMvnVFNn0OXXwrtqQ7XxohLq1AU1MKkcQ-- Received: from [213.114.164.65] by web53802.mail.yahoo.com via HTTP; Mon, 12 Feb 2007 11:30:10 PST Date: Mon, 12 Feb 2007 21:02:00 -0000 From: veenu khanna Subject: Breakpoint Handling For Dynamic Processes To: gdb@sourceware.org In-Reply-To: <20070209153400.GA11366@nevyn.them.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit 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 X-SW-Source: 2007-02/txt/msg00085.txt.bz2 Hello, Thanx for you replies. I have another question. In our OS, one can only attach to a process when it is running. And we only have dynamic processes. Hence, arises the problem of applying a breakpont to stop a process. Thus, We need a way to apply a breakpoint even before a process is attached. What if we write a special stub which has the responsibility to apply breakpoints on the target. These bps will end up in some process address space. So When a process will be attached to via another stub say (gdbserver), Will gdb be aware of all the bps for this process which were applied even before an attach took place? And will it behave in the usual way like when a BP would have been applied after a process was attached. Or does anyone have ideas on how to solve the problem of debugging dynamic processes which can only be attached to if it is running. Veenu ____________________________________________________________________________________ Get your own web address. Have a HUGE year through Yahoo! Small Business. http://smallbusiness.yahoo.com/domains/?p=BESTDEAL