From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 678 invoked by alias); 2 May 2003 21:36:29 -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 653 invoked from network); 2 May 2003 21:36:28 -0000 Received: from unknown (HELO mm02snlnto.son.sandia.gov) (132.175.109.21) by sources.redhat.com with SMTP; 2 May 2003 21:36:28 -0000 Received: from 132.175.109.4 by mm02snlnto.son.sandia.gov with ESMTP ( Tumbleweed MMS SMTP Relay 01 (MMS v5.5.0)); Fri, 02 May 2003 15:36:24 -0600 Received: from es08snlnt.sandia.gov (smtp-in.sandia.gov [134.253.130.11] ) by mailgate2.sandia.gov (8.12.9/8.12.9) with ESMTP id h42LaObo000658 for ; Fri, 2 May 2003 15:36:24 -0600 (MDT) Received: by es08snlnt.sandia.gov with Internet Mail Service ( 5.5.2653.19) id <2AA2WN77>; Fri, 2 May 2003 15:36:23 -0600 Message-ID: <71251C7D5FB1D2119C8F0008C7A44ED103792077@es07snlnt.sandia.gov> From: "Liang, James" To: "'gdb@sources.redhat.com'" Subject: Breakpoint mechanism (breakpoint.c) Date: Fri, 02 May 2003 21:36:00 -0000 MIME-Version: 1.0 X-WSS-ID: 12AC3B52357188-01-01 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit X-SW-Source: 2003-05/txt/msg00020.txt.bz2 Hello, I'm trying to port GDB and I can't quite understand what's happening with the breakpoint mechanism in breakpoint.c I've overwritten all of the set breakpoint modules in gdbarch.c, to go to one of my functions that prints "hello", but none of them are ever called. Whenever I try to set a breakpoint, gdb just acts like the breakpoint was successfully set. It looks like the work is setting the breakpoint is done in create_breakpoints which calls set_raw_breakpoint. I just don't see where it goes from there. As far as I can tell, it never calls any architecture specific code or does anything except a few prints and setting a few state variables. A little help? James Z. Liang Dept 5931 Sandia National Laboratories 505-284-9933 jliang@sandia.gov