From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13459 invoked by alias); 23 Feb 2008 12:34:15 -0000 Received: (qmail 13448 invoked by uid 22791); 23 Feb 2008 12:34:14 -0000 X-Spam-Check-By: sourceware.org Received: from smtp1.poczta.onet.pl (HELO smtp1.poczta.onet.pl) (213.180.130.31) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 23 Feb 2008 12:33:48 +0000 Received: from host8925149113.waldex.net ([89.25.149.113]:3751 "EHLO [89.25.149.113]" rhost-flags-OK-OK-OK-FAIL) by ps1.test.onet.pl with ESMTPSA id S738202267AbYBWMdpOT608 (ORCPT ); Sat, 23 Feb 2008 13:33:45 +0100 Message-ID: <47C01343.9040801@op.pl> Date: Sat, 23 Feb 2008 12:52:00 -0000 From: Bogdan Slusarczyk User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: gdb@sourceware.org, Vladimir Prus Subject: Re: Multiple breakpoints - few problems [MI commands, gdb6.7.50.20080221] References: <47BEB1E2.5070309@op.pl> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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: 2008-02/txt/msg00204.txt.bz2 >> 2) sometimes gdb complains that can't set sub-breakpoint (Cannot insert >> breakpoint . Error accessing memory address
.) > > This is not supposed to happen in the first place. Any ideas what > causes this error? > Can you maybe provide a minimal self-contained example > so that we can figure the cause of your original error (and maybe use it > as testcase for making the error message more precise). It will be difficult. It's SystemC project, to run it you have to have proper SystemC/HDL simulator :( I don't know if you know SystemC (I don't ;), see for example http://en.wikipedia.org/wiki/SystemC) It's some kind of strongly templated library. My SystemC project is made from my library (with debug) which is statically linked with SystemC library (without debug) - it's important, because even I have instantiated some of SystemC template in my library, gcc often gets symbols from non-debug SystemC library and I can't debug such variables (gdb complains something about incomplete types). So I suppose two reasons: 1) I have instantiated template for two specializations (probably - SystemC can do it itself) and I try to set breakpoint inside it's method. I have problem to get debug information from SystemC library and maybe it's the same problem 2) probably simulator loads my library twice using dlopen (or similar), and gdb can't access memory for unknown reason Regardless of this, don't you think it's good idea to adapt MI commands for breakpoints? Do you consider it? Regards, Bogdan