[PATCH 10/12] sim: Add sim_dump_memory for debugging
Hans-Peter Nilsson
hp@axis.com
Wed Feb 16 06:10:27 GMT 2022
> Date: Wed, 16 Feb 2022 00:02:23 -0500
> From: Mike Frysinger <vapier@gentoo.org>
> On 15 Feb 2022 00:06, Hans-Peter Nilsson via Gdb-patches wrote:
> > --- a/sim/common/sim-memopt.c
> > +++ b/sim/common/sim-memopt.c
> >
> > +/* Convenience function for use when debugging the simulator. */
>
> can you clarify that it's meant for an attached debugger to call vs a
> manual call from within the sim itself ? i know your commit message
> said that, but the code comment would help too.
>
> i vaguely recall seeing another such hook point in the tree. i wonder
> if we should gather the prototypes in a single header and give them a
> dedicated symbol prefix to make them easier to discover. as it stands,
> i think you're prob the only one who will use this for quite some time
> as no one else will notice it :P.
> -mike
A good idea!
brgds, H-P
More information about the Gdb-patches
mailing list