This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: It takes a long time to disassemble some instructions for remote target
- From: Michael Snyder <msnyder at specifix dot com>
- To: Robert Bu <robert dot bu at gmail dot com>
- Cc: gdb at sourceware dot org
- Date: Tue, 20 Nov 2007 04:06:10 -0800
- Subject: Re: It takes a long time to disassemble some instructions for remote target
- References: <a0319f700711192246y258f99d9g2dd9b9aebf80c579@mail.gmail.com>
On Tue, 2007-11-20 at 14:46 +0800, Robert Bu wrote:
> > On Wed, 2007-11-14 at 16:39 +0800, Robert Bu wrote:
> >> Hello all,
> >>
> >> When I try to disassemble a range of instructions, for example from
> >> PC1 to PC2, GDB tries to fetch and disassemble the instructions one by
> >> one. This may not be a problem for native debugging, or for remote
> >> debugging with high connection speed. However, it takes some long time
> >> for a not so fast serial connection, since GDB fetches one instruction
> >> at a time, which results in a lot of 'm' packets.
> >> Is that possible for GDB to fetch all instructions back for one time
> >> with just one(maybe more than one, but now a lot of) 'm' packet, and
> >> disassemble them locally one by one?
> >
> > My friend, I have just the thing you need!
> > It slices! It dices! It prevents gdb from
> > needlessly fetching memory from text sections!
> >
> > All ya gotta do is type "set trust-readonly"!
> > And if ya don't trust me (but who am I kidding,
> > EVERYBODY trusts a carny!), you can just type
> > "help set trust-readonly" and read all about it
> > yourself!
> >
> This option does not work in GDB 6.4. However it works in GDB 6.6. Quite
> strange!
Yes, it was broken for a while. Now it is fixed,
and hopefully we will keep it fixed.