This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [patch] add trace capabilities to arm sim
- To: Richard dot Earnshaw at arm dot com
- Subject: Re: [patch] add trace capabilities to arm sim
- From: fche at redhat dot com (Frank Ch. Eigler)
- Date: 26 Feb 2001 14:55:05 -0500
- Cc: DJ Delorie <dj at redhat dot com>, gdb-patches at sources dot redhat dot com
- References: <200102261840.SAA17450@cam-mail2.cambridge.arm.com>
Richard Earnshaw <rearnsha@arm.com> writes:
: I haven't seen anyone else comment on this, so I'll stick my nose in ;-)
: I can't approve or reject this patch, but:
Thanks - your input is always appreciated.
: [...]
: > if (state->Exception)
: > { /* Any exceptions */
:
: and then bump state->Exception (which behaves pretty much like a semaphore
: count on the number of extra things to go look at) when tracing needs to
: run.
An interesting technique! Have you tried using gcc's __builtin_expect
function to provide branch (un)likelihood hints to the compiler,
instead of this method?
- FChE