diff options
author | Pedro Alves <palves@redhat.com> | 2007-05-10 20:48:41 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2007-05-10 20:48:41 +0000 |
commit | 1d5315fee9335ecba7d345e41e451caa1d604114 (patch) | |
tree | b37c8d31835674ce437e57ffced180f6ce4a140f /gdb/gdbserver/target.h | |
parent | bf9148316030a9f3f9b476d9049421864b6551cf (diff) | |
download | gdb-1d5315fee9335ecba7d345e41e451caa1d604114.zip gdb-1d5315fee9335ecba7d345e41e451caa1d604114.tar.gz gdb-1d5315fee9335ecba7d345e41e451caa1d604114.tar.bz2 |
* win32-low.c (win32-attach): Fix return value.
* target.h (target_ops): Describe ATTACH return values.
Diffstat (limited to 'gdb/gdbserver/target.h')
-rw-r--r-- | gdb/gdbserver/target.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gdb/gdbserver/target.h b/gdb/gdbserver/target.h index 6f88b49..36cc69a 100644 --- a/gdb/gdbserver/target.h +++ b/gdb/gdbserver/target.h @@ -58,7 +58,10 @@ struct target_ops /* Attach to a running process. PID is the process ID to attach to, specified by the user - or a higher layer. */ + or a higher layer. + + Returns -1 if attaching is unsupported, 0 on success, and calls + error() otherwise. */ int (*attach) (unsigned long pid); |