diff options
author | Tom Tromey <tromey@redhat.com> | 2011-11-18 15:38:58 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2011-11-18 15:38:58 +0000 |
commit | 732f3f122e676d05dd5618a648764b0de6473013 (patch) | |
tree | 794a8e169b14a9dc097ecf6b47085be827156105 /gdb/remote.c | |
parent | bfccc43c1218b6d89bb021381276ac742e7a9a9e (diff) | |
download | gdb-732f3f122e676d05dd5618a648764b0de6473013.zip gdb-732f3f122e676d05dd5618a648764b0de6473013.tar.gz gdb-732f3f122e676d05dd5618a648764b0de6473013.tar.bz2 |
PR build/7196:
* remote.c (putpkt_for_catch_errors): New function.
(remote_kill): Use it.
Diffstat (limited to 'gdb/remote.c')
-rw-r--r-- | gdb/remote.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/gdb/remote.c b/gdb/remote.c index 6e9e242..6ac5fc0 100644 --- a/gdb/remote.c +++ b/gdb/remote.c @@ -7369,12 +7369,20 @@ getpkt_or_notif_sane (char **buf, long *sizeof_buf, int forever) } +/* A helper function that just calls putpkt; for type correctness. */ + +static int +putpkt_for_catch_errors (void *arg) +{ + return putpkt (arg); +} + static void remote_kill (struct target_ops *ops) { /* Use catch_errors so the user can quit from gdb even when we aren't on speaking terms with the remote system. */ - catch_errors ((catch_errors_ftype *) putpkt, "k", "", RETURN_MASK_ERROR); + catch_errors (putpkt_for_catch_errors, "k", "", RETURN_MASK_ERROR); /* Don't wait for it to die. I'm not really sure it matters whether we do or not. For the existing stubs, kill is a noop. */ |