Re: [PATCH 7/8] ia64-hpux: unwinding bsp value from system call

Pedro Alves
2010-12-28T11:04:16Z

On Tuesday 28 December 2010 04:43:05, Joel Brobecker wrote:
> 1. Figuring out that we are stopped inside a syscal: This requires
> a ttrace call, which is not directly possible from ia64-tdep.c.
> So we get the info using a target-read of a TARGET_OBJECT_OSDATA
> object (with the annex set to "ia64.hpux.in_syscall").

BZZT. Don't do that. The return of a TARGET_OBJECT_OSDATA request
should be a table that follows the gdb/features/osdata.dtd dtd. It
is meant as data to be fed into the "info os" command (and a non-submitted
-info-os MI command).

You need to come up with a new target object.

--
Pedro Alves