[PATCH 10/12] sim: Add sim_dump_memory for debugging

Hans-Peter Nilsson hp@axis.com
Thu Feb 17 02:05:45 GMT 2022


> 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.

That *could* have been in gdbinit.in a.k.a. .gdbinit.

Speaking of that, I just noticed there's no .gdbinit in
sim/<any> anymore.  They aren't build from sim/common/gdbinit.in
apparently due to some mixup of @SIM_COMMON_BUILD_FALSE@ and/or
@SIM_COMMON_BUILD_TRUE@ which seems to have been introduced in
your 36bb57e40c506.  (No, not planning on going there.)

brgds, H-P


More information about the Gdb-patches mailing list