This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[rfc v2][0/6] Remote /proc file access
- From: "Ulrich Weigand" <uweigand at de dot ibm dot com>
- To: gdb-patches at sourceware dot org, palves at redhat dot com
- Date: Fri, 13 Jan 2012 19:13:08 +0100 (CET)
- Subject: [rfc v2][0/6] Remote /proc file access
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