From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2488 invoked by alias); 2 Aug 2010 04:10:36 -0000 Received: (qmail 2476 invoked by uid 22791); 2 Aug 2010 04:10:35 -0000 X-SWARE-Spam-Status: No, hits=3.1 required=5.0 tests=AWL,BAYES_40,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from mail-pw0-f41.google.com (HELO mail-pw0-f41.google.com) (209.85.160.41) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 02 Aug 2010 04:10:33 +0000 Received: by pwi8 with SMTP id 8so2783061pwi.0 for ; Sun, 01 Aug 2010 21:10:31 -0700 (PDT) MIME-Version: 1.0 Received: by 10.115.93.7 with SMTP id v7mr6702779wal.9.1280722231162; Sun, 01 Aug 2010 21:10:31 -0700 (PDT) Received: by 10.114.133.17 with HTTP; Sun, 1 Aug 2010 21:10:31 -0700 (PDT) Date: Mon, 02 Aug 2010 04:10:00 -0000 Message-ID: Subject: GDB hardware watchpoint information on i386 From: Shrikanth Kamath To: gdb@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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/msg00002.txt.bz2 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=A0handler=A0to service=A0the watchpoint interrupt rather than needing to invoke a GDB session and press 'c'. -- Shrikanth R K