From: Steven Johnson <sjohnson@sakuraindustries.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: gdb-patches@sourceware.org
Subject: Re: Save the length of inserted breakpoints
Date: Sat, 04 Mar 2006 00:35:00 -0000 [thread overview]
Message-ID: <4408C48F.3090305@sakuraindustries.com> (raw)
In-Reply-To: <uslpz2ood.fsf@gnu.org>
Eli Zaretskii wrote:
>>Date: Fri, 3 Mar 2006 12:54:07 -0500
>>From: Daniel Jacobowitz <drow@false.org>
>>Cc: gdb-patches@sourceware.org
>>
>>If every target cached the size of inserted breakpoints and made sure
>>to remove them at the same size, that would work too, but right now
>>most targets don't need to remember anything about the breakpoints
>>they've inserted; the common layer of GDB handles it.
>>
>>
>
>That sounds like an unfortunate design. If we are to make significant
>changes to handle the complications that led you to this patch,
>perhaps we should consider changing the design instead.
>
>
>
>
I wouldn't have thought the design unfortunate. One original aim of the
target stubs (as i understand it) was to be able to keep them simple and
minimal. That would include minimizing their memory requirements.
Requiring a stub to store state about current breakpoints inserted would
be a potentially big memory requirement, because how many breakpoints is
the user going to insert? 1, 2, 50, 100's? Or do the stubs just limit
it, and say, i'm a simple stub, i can only have 5 breakpoints, try
adding 6 and I'll fail?
I think the approach to use the "effectively infinite" resources of the
host PC to cache the breakpoint information is the correct approach,
given the alternative. (For stubs that don't implement the 'z' packets).
However if a stub implement the 'z' packets, it needs to store state of
the breakpoints, so why does it need to know the size of the breakpoint
on remove? It should have already cached the data at the location, it
should already have stored how much data it cached, so surely just
"Remove the breakpoint a x' is enough for the stub to complete its job.
This doesn't fix the basic problem for simple stubs that only have
read/write memory control where GDB caches all of the info.
Steven
next prev parent reply other threads:[~2006-03-03 22:35 UTC|newest]
Thread overview: 52+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-02 22:25 Daniel Jacobowitz
2006-03-02 23:13 ` Mark Kettenis
2006-03-02 23:19 ` Daniel Jacobowitz
2006-03-03 0:08 ` Mark Kettenis
2006-03-03 1:21 ` Daniel Jacobowitz
2006-03-03 13:51 ` Eli Zaretskii
2006-03-03 15:03 ` Daniel Jacobowitz
2006-03-03 17:56 ` Eli Zaretskii
2006-03-03 18:04 ` Daniel Jacobowitz
2006-03-03 22:00 ` Eli Zaretskii
2006-03-03 22:10 ` Daniel Jacobowitz
2006-03-03 22:35 ` Eli Zaretskii
2006-03-03 23:01 ` Daniel Jacobowitz
2006-03-04 10:39 ` Eli Zaretskii
2006-03-04 14:58 ` Daniel Jacobowitz
2006-03-04 15:05 ` Eli Zaretskii
2006-03-04 15:11 ` Daniel Jacobowitz
2006-03-06 19:49 ` Eli Zaretskii
2006-03-07 5:31 ` Michael Snyder
2006-03-04 0:35 ` Steven Johnson [this message]
2006-03-04 10:18 ` Daniel Jacobowitz
2006-04-11 21:46 ` Daniel Jacobowitz
2006-04-11 22:32 ` David S. Miller
2006-04-12 7:30 ` Eli Zaretskii
2006-04-12 9:44 ` Mark Kettenis
2006-04-12 12:57 ` Daniel Jacobowitz
2006-04-12 18:38 ` Mark Kettenis
2006-04-12 18:47 ` Daniel Jacobowitz
2006-04-13 8:12 ` Eli Zaretskii
2006-04-13 22:13 ` Mark Kettenis
2006-04-13 22:59 ` Daniel Jacobowitz
2006-04-13 23:30 ` Daniel Jacobowitz
2006-04-14 8:10 ` Eli Zaretskii
2006-04-14 8:52 ` David S. Miller
2006-04-14 8:04 ` Eli Zaretskii
2006-04-14 8:51 ` David S. Miller
2006-04-16 23:58 ` Mark Kettenis
2006-04-17 7:07 ` Eli Zaretskii
2006-04-13 21:57 ` Michael Snyder
2006-04-13 22:59 ` Daniel Jacobowitz
2006-04-16 23:53 ` Mark Kettenis
2006-04-16 23:50 ` Mark Kettenis
2006-04-17 1:41 ` Daniel Jacobowitz
2006-04-17 13:09 ` Mark Kettenis
2006-04-17 13:37 ` Daniel Jacobowitz
2006-04-17 13:50 ` Mark Kettenis
2006-04-17 19:08 ` Daniel Jacobowitz
2006-04-17 20:25 ` Mark Kettenis
2006-04-17 21:50 ` Daniel Jacobowitz
2006-04-18 8:59 ` Eli Zaretskii
2006-04-18 19:21 ` Daniel Jacobowitz
2006-04-19 7:40 ` Eli Zaretskii
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=4408C48F.3090305@sakuraindustries.com \
--to=sjohnson@sakuraindustries.com \
--cc=eliz@gnu.org \
--cc=gdb-patches@sourceware.org \
/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