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

Side by Side Diff: gdb/nacl-manifest.c

Issue 11953013: Fix crash on executing nacl-manifest twice. (Closed) Base URL: http://git.chromium.org/native_client/nacl-gdb.git@master
Patch Set: update description Created 7 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 | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* Handle Native Client manifest files. 1 /* Handle Native Client manifest files.
2 2
3 Copyright (C) 2011 Free Software Foundation, Inc. 3 Copyright (C) 2011 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.
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 111
112 xfree (nacl_file_list); 112 xfree (nacl_file_list);
113 nacl_file_list = next; 113 nacl_file_list = next;
114 } 114 }
115 } 115 }
116 116
117 static void 117 static void
118 nacl_manifest_free (void) 118 nacl_manifest_free (void)
119 { 119 {
120 nacl_manifest_free_list(nacl_file_list_32); 120 nacl_manifest_free_list(nacl_file_list_32);
121 nacl_file_list_32 = NULL;
121 nacl_manifest_free_list(nacl_file_list_64); 122 nacl_manifest_free_list(nacl_file_list_64);
123 nacl_file_list_64 = NULL;
122 xfree (nacl_program_filename_32); 124 xfree (nacl_program_filename_32);
123 xfree (nacl_program_filename_64); 125 xfree (nacl_program_filename_64);
124 nacl_program_filename_32 = NULL; 126 nacl_program_filename_32 = NULL;
125 nacl_program_filename_64 = NULL; 127 nacl_program_filename_64 = NULL;
126 } 128 }
127 129
128 /* Very dumb parser for JSON subset used in Native Client manifest files. 130 /* Very dumb parser for JSON subset used in Native Client manifest files.
129 This is a SAX-style parser that runs callbacks on JSON events. */ 131 This is a SAX-style parser that runs callbacks on JSON events. */
130 132
131 struct json_manifest_reader 133 struct json_manifest_reader
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
423 425
424 c = add_com ("nacl-irt", class_files, nacl_irt_command, 426 c = add_com ("nacl-irt", class_files, nacl_irt_command,
425 _("Use FILE as Native Client IRT to be debugged.")); 427 _("Use FILE as Native Client IRT to be debugged."));
426 set_cmd_completer (c, filename_completer); 428 set_cmd_completer (c, filename_completer);
427 429
428 c = add_com ("nacl-manifest", class_files, nacl_manifest_command, 430 c = add_com ("nacl-manifest", class_files, nacl_manifest_command,
429 _("Use FILE as Native Client manifest for the program" 431 _("Use FILE as Native Client manifest for the program"
430 " to be debugged.")); 432 " to be debugged."));
431 set_cmd_completer (c, filename_completer); 433 set_cmd_completer (c, filename_completer);
432 } 434 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698