Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: paawan oza <paawan1982@yahoo.com>
To: Shrikanth Kamath <shrikanth07@gmail.com>, gdb@sourceware.org
Subject: Re: GDB hardware watchpoint information on i386
Date: Mon, 02 Aug 2010 05:53:00 -0000	[thread overview]
Message-ID: <457745.49538.qm@web112519.mail.gq1.yahoo.com> (raw)
In-Reply-To: <AANLkTikFecQ_fq7S=WToUbY9RziM9A98nJgKvXdodEVs@mail.gmail.com>

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 <shrikanth07@gmail.com>
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



      


  reply	other threads:[~2010-08-02  5:53 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-02  4:10 Shrikanth Kamath
2010-08-02  5:53 ` paawan oza [this message]
2010-08-02  6:58 ` Jan Kratochvil
2010-08-02  7:55   ` Shrikanth Kamath
2010-08-02  8:09     ` Jan Kratochvil
2010-08-02  8:16     ` paawan oza

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=457745.49538.qm@web112519.mail.gq1.yahoo.com \
    --to=paawan1982@yahoo.com \
    --cc=gdb@sourceware.org \
    --cc=shrikanth07@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox