Am 07.06.2019 um 19:29 hat Dr. David Alan Gilbert geschrieben: > * Kevin Wolf (kw...@redhat.com) wrote: > > Move the monitor core infrastructure from monitor/misc.c to > > monitor/core.c. This is code that can be shared for all targets, so > > compile it only once. > > > > What remains in monitor/misc.c after this patch is mostly monitor > > command implementations and code that requires a system emulator or is > > even target-dependent. > > > > The amount of function and particularly extern variables in > > monitor_int.h is probably a bit larger than it needs to be, but this way > > no non-trivial code modifications are needed. The interfaces between all > > monitor parts can be cleaned up later. > > > > Signed-off-by: Kevin Wolf <kw...@redhat.com> > > OK, but can you call it anything other than core.* - I regularly end up > deleting things like that!
Oh, I didn't even think of this kind of core.*! I imagine in practice it wouldn't be so bad to have a monitor/core.c because it's in a subdirectory, and it's under version control anyway. We already seem to have quite a few of them in subdirectories: ./hw/acpi/core.c ./hw/bt/core.c ./hw/cpu/core.c ./hw/i2c/core.c ./hw/ide/core.c ./hw/sd/core.c ./hw/usb/core.c But I'll gladly rename it if I can find a good name. Do you have any suggestions? Maybe just monitor/monitor.c? Kevin