From: Bogdan Slusarczyk <bodzio131@op.pl>
To: gdb@sourceware.org, Vladimir Prus <ghost@cs.msu.su>
Subject: Re: Multiple breakpoints - few problems [MI commands, gdb6.7.50.20080221]
Date: Sat, 23 Feb 2008 12:52:00 -0000 [thread overview]
Message-ID: <47C01343.9040801@op.pl> (raw)
In-Reply-To: <fpmetg$4sp$1@ger.gmane.org>
>> 2) sometimes gdb complains that can't set sub-breakpoint (Cannot insert
>> breakpoint <whole number>. Error accessing memory address <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 <MULTIPLE> breakpoints? Do you consider it?
Regards,
Bogdan
next prev parent reply other threads:[~2008-02-23 12:34 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-22 12:24 Bogdan Slusarczyk
2008-02-22 13:22 ` Vladimir Prus
2008-02-23 12:52 ` Bogdan Slusarczyk [this message]
2008-02-23 16:03 ` Vladimir Prus
2008-02-25 12:08 ` Bogdan Slusarczyk
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=47C01343.9040801@op.pl \
--to=bodzio131@op.pl \
--cc=gdb@sourceware.org \
--cc=ghost@cs.msu.su \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox