This is the mail archive of the
mailing list for the GDB project.
Re: to_query target_ops entry
- To: Doug Evans <dje at transmeta dot com>
- Subject: Re: to_query target_ops entry
- From: Fernando Nasser <fnasser at cygnus dot com>
- Date: Fri, 23 Feb 2001 17:22:36 -0500
- CC: gdb at sources dot redhat dot com
- Organization: Red Hat , Inc. - Toronto
- References: <200102232207.OAA26403@casey.transmeta.com>
Doug Evans wrote:
> Is the intendend usage of the `to_query' target_ops entry documented anywhere?
> I can kinda guess from studying kod.c:gdb_kod_query, but my guessing
> is incomplete (and often wrong).
It is just an access to query things on a target. The main use is to access OS data independently on the type of communication channel or if the OS is remote or native.
If the target is a "remote" one (I guess it is the only one that currently implements this), a 'q' packet will be sent and the first argument (type) will be sent as a single character after the 'q'.
Other targets may do things differently, but you should get back the value (as a string) of whatever target object you have requested.
Red Hat - Toronto E-Mail: email@example.com
2323 Yonge Street, Suite #300
Toronto, Ontario M4P 2C9