From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15720 invoked by alias); 18 Mar 2002 01:30:55 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 15655 invoked from network); 18 Mar 2002 01:30:51 -0000 Received: from unknown (HELO klaxoniqa.com) (203.24.179.147) by sources.redhat.com with SMTP; 18 Mar 2002 01:30:51 -0000 Received: (qmail 8537 invoked by uid 8); 18 Mar 2002 01:30:49 -0000 Received: from moki.smartcontainer.net (10.0.2.8, claiming to be "klaxoniqa.com") by smarty.klaxoniqa.com with SMTP id smtpdDwlb7c; Sun, 17 Mar 2002 20:30:49 EST Message-ID: <3C954349.B1B5B446@klaxoniqa.com> Date: Sun, 17 Mar 2002 17:30:00 -0000 From: Peter Jansen X-Mailer: Mozilla 4.78 [en] (X11; U; Linux 2.4.7-10 i686) X-Accept-Language: en MIME-Version: 1.0 To: Andrew Cagney CC: gdb@sources.redhat.com Subject: Re: Hardware Breakpoints References: <3C953BAE.897F8105@klaxoniqa.com> <3C953E59.7060708@cygnus.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2002-03/txt/msg00162.txt.bz2 Hi, > > I'm trying to use hardware breakpoints in gdb (in the new > > gdbarchitecture stuff) and cannot figure out how it all works. Are their > > any gdbarch things for hardware breakpoints and watchpoints? > > > > Are there any targets that use hardware breakpoints and watchpoints in > > the new gdbarch stuff? > > No. But there is a reason. > > The existing h/w breakpoint macros should be moved to the target vector > and not the architecture vector. This is because the target, and not > the architecture, determines the presence of a breakpoint mechanism. > > Unfortunatly, so far, no one has made this change, sigh! > > Interested? hmm, I have an embedded target and I connect to it via a JTAG box, so the target has hardware breakpoints, I assume we need to define them in avr-tdep.c and put the hooks in the correct place to tie it together? What I see at the moment is the breakpoint.c stuff has no connection to the avr-tdep.c file and I cannot see how to define something in avr-tdep and let breakpoint.c use it. Do you have some ideas about how this is supposed to work? -- Peter Jansen Smart Container Level 1, NIC Building Eveleigh NSW 1430 AUSTRALIA