Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(180)

Side by Side Diff: gdb/continuations.c

Issue 124383005: GDB 7.6.50 (Closed) Base URL: http://git.chromium.org/native_client/nacl-gdb.git@upstream
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « gdb/continuations.h ('k') | gdb/contrib/ari/create-web-ari-in-src.sh » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* Continuations for GDB, the GNU debugger. 1 /* Continuations for GDB, the GNU debugger.
2 2
3 Copyright (C) 1986, 1988-2012 Free Software Foundation, Inc. 3 Copyright (C) 1986-2013 Free Software Foundation, Inc.
4 4
5 This file is part of GDB. 5 This file is part of GDB.
6 6
7 This program is free software; you can redistribute it and/or modify 7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by 8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 3 of the License, or 9 the Free Software Foundation; either version 3 of the License, or
10 (at your option) any later version. 10 (at your option) any later version.
11 11
12 This program is distributed in the hope that it will be useful, 12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of 13 but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 *pmy_chain = ptr->next; 93 *pmy_chain = ptr->next;
94 if (ptr->free_arg) 94 if (ptr->free_arg)
95 (*ptr->free_arg) (ptr->arg); 95 (*ptr->free_arg) (ptr->arg);
96 xfree (ptr); 96 xfree (ptr);
97 } 97 }
98 } 98 }
99 99
100 static void 100 static void
101 discard_my_continuations (struct continuation **list) 101 discard_my_continuations (struct continuation **list)
102 { 102 {
103 struct continuation *continuation_ptr = *list;
104
105 discard_my_continuations_1 (list); 103 discard_my_continuations_1 (list);
106 *list = NULL; 104 *list = NULL;
107 } 105 }
108 106
109 /* Add a continuation to the continuation list of INFERIOR. The new 107 /* Add a continuation to the continuation list of INFERIOR. The new
110 continuation will be added at the front. */ 108 continuation will be added at the front. */
111 109
112 void 110 void
113 add_inferior_continuation (continuation_ftype *hook, void *args, 111 add_inferior_continuation (continuation_ftype *hook, void *args,
114 continuation_free_arg_ftype *free_arg) 112 continuation_free_arg_ftype *free_arg)
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
317 } 315 }
318 316
319 /* Get rid of all the intermediate continuations of all threads. */ 317 /* Get rid of all the intermediate continuations of all threads. */
320 318
321 void 319 void
322 discard_all_intermediate_continuations (void) 320 discard_all_intermediate_continuations (void)
323 { 321 {
324 iterate_over_threads (discard_all_intermediate_continuations_thread_callback, 322 iterate_over_threads (discard_all_intermediate_continuations_thread_callback,
325 NULL); 323 NULL);
326 } 324 }
OLDNEW
« no previous file with comments | « gdb/continuations.h ('k') | gdb/contrib/ari/create-web-ari-in-src.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698