2004-01-28 Roland McGrath <roland@redhat.com>

* target.h (enum target_object): Add TARGET_OBJECT_AUXV.
	* inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
	macro if that is defined.
This commit is contained in:
Roland McGrath
2004-02-01 22:35:10 +00:00
parent 3cf93817cf
commit 2146d243ce
2 changed files with 36 additions and 33 deletions

View File

@ -578,11 +578,12 @@ child_xfer_partial (struct target_ops *ops, enum target_object object,
return NATIVE_XFER_UNWIND_TABLE (ops, object, annex, readbuf, writebuf,
offset, len);
#if 0
case TARGET_OBJECT_AUXV:
return native_xfer_auxv (PIDGET (inferior_ptid), readbuf, writebuf,
offset, len);
#ifndef NATIVE_XFER_AUXV
#define NATIVE_XFER_AUXV(OPS,OBJECT,ANNEX,WRITEBUF,READBUF,OFFSET,LEN) (-1)
#endif
return NATIVE_XFER_AUXV (ops, object, annex, readbuf, writebuf,
offset, len);
default:
return -1;

View File

@ -226,8 +226,10 @@ enum target_object
TARGET_OBJECT_MEMORY,
/* Kernel Unwind Table. See "ia64-tdep.c". */
TARGET_OBJECT_UNWIND_TABLE,
/* Possible future objects: TARGET_OBJECT_FILE, TARGET_OBJECT_PROC,
TARGET_OBJECT_AUXV, ... */
/* Transfer auxilliary vector. */
TARGET_OBJECT_AUXV,
/* Possible future objects: TARGET_OBJECT_FILE, TARGET_OBJECT_PROC, ... */
};
extern LONGEST target_read_partial (struct target_ops *ops,