[rfc v2][0/6] Remote /proc file access
Ulrich Weigand
uweigand@de.ibm.com
Fri Jan 13 18:14:00 GMT 2012
Hello,
this is an updated series of patches to implement a generic
"info proc" command that works with remote/gdbserver Linux
targets.
The difference to the earlier version here:
http://sourceware.org/ml/gdb-patches/2011-12/msg00007.html
is that I've implemented Pedro's suggestions to access /proc
via generic file-access primitives instead of using the
target object mechanism.
Some code and ideas from Pedro's prototype here:
http://sourceware.org/ml/gdb-patches/2012-01/msg00353.html
has been integrated into this patch series.
1/6: Distinguish target and "fake" PID values
2/6: Always enable multi-process remote extension if possible
3/6: File I/O target operations
4/6: Readlink as file I/O target operation
5/6: Make "info proc" command generic
6/6: Implement "info proc" on Linux via target file I/O
I've also updated and tested the remote generate-core-file
patch series to use target file I/O instead of TARGET_OBJECT_PROC.
I'll post this once this approach is agreed to.
I've tested this series on i386 native and remote, as well as
on ARM remotely. No regressions; a couple of additional
test cases (info-proc.exp) are now passing.
Any further comments comments on this approach are appreciated!
Thanks,
Ulrich
--
Dr. Ulrich Weigand
GNU Toolchain for Linux on System z and Cell BE
Ulrich.Weigand@de.ibm.com
More information about the Gdb-patches
mailing list