command qAttached

Format: ‘qAttached[:pid]’

Meaning: Return an indication of whether the remote server attached to an existing process or created a new process. When the multiprocess protocol extensions are supported, pid is an integer in hexadecimal format identifying the target process. Otherwise, GDB will omit the pid field and the query packet will be simplified as ‘qAttached’.

This query is used, for example, to know whether the remote process should be detached or killed when a GDB session is ended with the quit command.

Reply:

The remote server created a new process.

1

The remote server attached to an existing process.