[PATCH 2/6] Move simple_search_memory to target/search.c

Simon Marchi simark@simark.ca
Thu Jul 30 12:58:35 GMT 2020


On 2020-07-23 4:12 p.m., Tom Tromey wrote:
> This moves the simple_search_memory function to a new file,
> target/search.c.  The API is slightly changed to make it more general.
> This generality is useful for wiring it to gdbserver, and also for
> unit testing.

What's the rationale for putting this under gdb/target/ instead of gdbsupport/?

I never really understood the point of target/.  It looks like the goal is to
share interfaces between gdb and gdbserver, having declarations in header files
in target/ and having different implementations in gdb and gdbserver.

Anyway, it's not a blocker in any case, just an honest question.

Simon


More information about the Gdb-patches mailing list