From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19120 invoked by alias); 23 Feb 2008 12:52:35 -0000 Received: (qmail 19109 invoked by uid 22791); 23 Feb 2008 12:52:34 -0000 X-Spam-Check-By: sourceware.org Received: from main.gmane.org (HELO ciao.gmane.org) (80.91.229.2) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 23 Feb 2008 12:52:07 +0000 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1JStrE-0005LV-Cj for gdb@sources.redhat.com; Sat, 23 Feb 2008 12:52:00 +0000 Received: from 77.246.241.246 ([77.246.241.246]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 23 Feb 2008 12:52:00 +0000 Received: from ghost by 77.246.241.246 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 23 Feb 2008 12:52:00 +0000 To: gdb@sources.redhat.com From: Vladimir Prus Subject: Re: Multiple breakpoints - few problems [MI commands, gdb6.7.50.20080221] Date: Sat, 23 Feb 2008 16:03:00 -0000 Message-ID: References: <47BEB1E2.5070309@op.pl> <47C01343.9040801@op.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit User-Agent: KNode/0.10.5 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/msg00205.txt.bz2 Bogdan Slusarczyk wrote: >>> 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 So essentially, we don't know where there error comes from :-( > > Regardless of this, don't you think it's good idea to adapt MI commands > for breakpoints? Do you consider it? Of, course, it will be good. Unfortunately, at this point it's not the biggest problem with MI, in my opinion, so I don't have an estimate when I'll have time to address this. - Volodya