This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: How to implement gcore on pa-hpux ?
On Thu, Jan 05, 2006 at 07:53:11AM +0400, Joel Brobecker wrote:
> using the target vector, the native HP/UX case seems to be a no-brainer,
> which is always nice. Suppose I add a new method to that vector that
> does core file dumping, however. The problem is: How do we set that
> method of all the cases where we already support gcore? For instance,
> i386-linux.
We set it in linux-nat.c:linux_target () and inherit it into all
GNU/Linux targets.
The current Linux mechanism is not target-independent; it's
native-only, because it grubs around in /proc.
--
Daniel Jacobowitz
CodeSourcery