OLD | NEW |
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 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
339 static void | 339 static void |
340 nacl_irt_command (char *args, int from_tty) | 340 nacl_irt_command (char *args, int from_tty) |
341 { | 341 { |
342 if (args) | 342 if (args) |
343 { | 343 { |
344 char *nacl_irt_filename; | 344 char *nacl_irt_filename; |
345 nacl_irt_filename = tilde_expand (args); | 345 nacl_irt_filename = tilde_expand (args); |
346 symbol_file_add (nacl_irt_filename, from_tty ? SYMFILE_VERBOSE : 0, | 346 symbol_file_add (nacl_irt_filename, from_tty ? SYMFILE_VERBOSE : 0, |
347 NULL, OBJF_USERLOADED); | 347 NULL, OBJF_USERLOADED); |
348 xfree (nacl_irt_filename); | 348 xfree (nacl_irt_filename); |
| 349 /* Recalculate frames. */ |
| 350 reinit_frame_cache (); |
349 } | 351 } |
350 } | 352 } |
351 | 353 |
352 static struct observer *about_to_proceed_observer = NULL; | 354 static struct observer *about_to_proceed_observer = NULL; |
353 | 355 |
354 static void | 356 static void |
355 about_to_proceed_hook () | 357 about_to_proceed_hook () |
356 { | 358 { |
357 if (exec_bfd == NULL) | 359 if (exec_bfd == NULL) |
358 { | 360 { |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
405 | 407 |
406 c = add_com ("nacl-irt", class_files, nacl_irt_command, | 408 c = add_com ("nacl-irt", class_files, nacl_irt_command, |
407 _("Use FILE as Native Client IRT to be debugged.")); | 409 _("Use FILE as Native Client IRT to be debugged.")); |
408 set_cmd_completer (c, filename_completer); | 410 set_cmd_completer (c, filename_completer); |
409 | 411 |
410 c = add_com ("nacl-manifest", class_files, nacl_manifest_command, | 412 c = add_com ("nacl-manifest", class_files, nacl_manifest_command, |
411 _("Use FILE as Native Client manifest for the program" | 413 _("Use FILE as Native Client manifest for the program" |
412 " to be debugged.")); | 414 " to be debugged.")); |
413 set_cmd_completer (c, filename_completer); | 415 set_cmd_completer (c, filename_completer); |
414 } | 416 } |
OLD | NEW |