This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] new MI command for pattern filling of memory regions


>>>>> "Giuseppe" == Giuseppe MONTALTO <giuseppe.montalto@st.com> writes:

Giuseppe> it's the first time I attempt a contribution to gdb, so feel
Giuseppe> free to ask for details and, please, let me know if I'm doing
Giuseppe> anything wrong!

I was told off-list that you are covered by your employer's assignment.
So, good.

Giuseppe> the proposed enhancement is about memory filling.

Giuseppe> Filling a memory region with a pattern of bytes so far, can
Giuseppe> only be done by sending a potentially high number of repeated
Giuseppe> commands to gdb (depending on the size of the region that we
Giuseppe> need to fill).  If gdb is controlled through a GUI
Giuseppe> (e.g. Eclipse/CDT), this may cause the UI to freeze for a
Giuseppe> quite long time.  This is especially true when you're
Giuseppe> debugging a remote target, due to the amount of generated
Giuseppe> network traffic.

I started to review this, but I wondered why a new command is necessary.

It seems like you could send any hex string to want to
-data-write-memory-bytes.

Alternatively, if you really want the repeat count, why not just add an
optional argument to -data-write-memory-bytes?  That would seem to be
simpler.

Tom


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]