[Buildroot] [PATCH 2/2] package/gdb: use stat() privided by the system

Pedro Alves palves@redhat.com
Tue Sep 11 16:04:00 GMT 2018


On 09/11/2018 03:13 PM, Rich Felker wrote:

> As an aside, the whole idea of running in-process code
> referencing/using functions in the process being debugged (like stat
> in libc) seems fragile and broken; perhaps aside from this
> inadvertently-added use in is_regular_file, there is no such code in
> the IPA stuff?

There is (or there should be) no such code in the fast path, which is
actually collecting tracepoints -- there are no syscalls in that path.
If there were, the whole point of the IPA would be thrown out the window.
There's some in setup code, but it hasn't been problematic.

Thanks,
Pedro Alves



More information about the Gdb-patches mailing list