From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5721 invoked by alias); 2 Aug 2010 05:53:17 -0000 Received: (qmail 5710 invoked by uid 22791); 2 Aug 2010 05:53:16 -0000 X-SWARE-Spam-Status: No, hits=1.0 required=5.0 tests=AWL,BAYES_20,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from n6-vm0.bullet.mail.gq1.yahoo.com (HELO n6-vm0.bullet.mail.gq1.yahoo.com) (98.137.26.79) by sourceware.org (qpsmtpd/0.43rc1) with SMTP; Mon, 02 Aug 2010 05:53:11 +0000 Received: from [98.137.27.132] by n6.bullet.mail.gq1.yahoo.com with NNFMP; 02 Aug 2010 05:53:09 -0000 Received: from [98.137.27.131] by t4.bullet.mail.gq1.yahoo.com with NNFMP; 02 Aug 2010 05:53:09 -0000 Received: from [127.0.0.1] by omp205.mail.gq1.yahoo.com with NNFMP; 02 Aug 2010 05:53:09 -0000 Received: (qmail 50287 invoked by uid 60001); 2 Aug 2010 05:53:09 -0000 Message-ID: <457745.49538.qm@web112519.mail.gq1.yahoo.com> Received: from [72.163.189.167] by web112519.mail.gq1.yahoo.com via HTTP; Sun, 01 Aug 2010 22:53:09 PDT References: Date: Mon, 02 Aug 2010 05:53:00 -0000 From: paawan oza Subject: Re: GDB hardware watchpoint information on i386 To: Shrikanth Kamath , gdb@sourceware.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-IsSubscribed: yes 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: 2010-08/txt/msg00003.txt.bz2 Hi, basically sigtrap is generated and gdb comes out of my_waitpid function. so do you want to hook handler on every watchpoint trap or you want to just hook if at all watchpoint expression match ? Regards, Oza. ----- Original Message ---- From: Shrikanth Kamath To: gdb@sourceware.org Sent: Mon, August 2, 2010 9:40:31 AM Subject: GDB hardware watchpoint information on i386 Is there information on how a GDB hardware watchpoint works on a i386. More like internals of its working, right from when the hardware watchpoint triggers a trap from processor perspective(i386 processor supporting hardware watchpoint). Which function gets called in GDB to handle this? I am specifically looking for information about "hooking" my own handler to service the watchpoint interrupt rather than needing to invoke a GDB session and press 'c'. -- Shrikanth R K