From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32089 invoked by alias); 14 Feb 2003 12:30:21 -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 32078 invoked from network); 14 Feb 2003 12:30:19 -0000 Received: from unknown (HELO hotmail.com) (64.4.9.190) by 172.16.49.205 with SMTP; 14 Feb 2003 12:30:19 -0000 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Fri, 14 Feb 2003 04:30:18 -0800 Received: from 212.153.190.4 by lw9fd.law9.hotmail.msn.com with HTTP; Fri, 14 Feb 2003 12:30:18 GMT X-Originating-IP: [212.153.190.4] From: "Jan Hoogerbrugge" To: gdb@sources.redhat.com Bcc: Subject: Remote breakpoint problem Date: Fri, 14 Feb 2003 12:30:00 -0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 14 Feb 2003 12:30:18.0736 (UTC) FILETIME=[D59A3700:01C2D424] X-SW-Source: 2003-02/txt/msg00223.txt.bz2 Hi, I am porting gdb to a new target processor were remote debugging is used. I have a problem with breakpoints. When I place a breakpoint on foo followed by a continue I see the following communication between gdb and the stub on the other side: - the instruction at foo is saved - foo is replaced by a breakpoint instruction - gdb sends a continue command - the stub reports the breakpoint hit (signal = 5, pc = foo) - gdb replaces the code at foo with the saved instruction - gdb sends a step instruction command - tbe stub reports again a breakpoint hit at foo (signal = 5, pc = foo) - gdb sends a continue command immediatly So a breakpoint is detected and communicated to gdb but gdb lets the application continue immediately without giving control to the gdb user. Does anyone know what is wrong? I have used breakpoint_from_pc function to supply the breakpoint code. Thanks, Jan _________________________________________________________________ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail