OLD | NEW |
1 /* Handle OSF/1, Digital UNIX, and Tru64 shared libraries | 1 /* Handle OSF/1, Digital UNIX, and Tru64 shared libraries |
2 for GDB, the GNU Debugger. | 2 for GDB, the GNU Debugger. |
3 Copyright (C) 1993-1996, 1998-2001, 2007-2012 Free Software | 3 Copyright (C) 1993-1996, 1998-2001, 2007-2012 Free Software |
4 Foundation, Inc. | 4 Foundation, Inc. |
5 | 5 |
6 This file is part of GDB. | 6 This file is part of GDB. |
7 | 7 |
8 This program is free software; you can redistribute it and/or modify | 8 This program is free software; you can redistribute it and/or modify |
9 it under the terms of the GNU General Public License as published by | 9 it under the terms of the GNU General Public License as published by |
10 the Free Software Foundation; either version 3 of the License, or | 10 the Free Software Foundation; either version 3 of the License, or |
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
335 If debugging from a core file, we cannot resume the execution | 335 If debugging from a core file, we cannot resume the execution |
336 of the inferior. But this is actually not an issue, because | 336 of the inferior. But this is actually not an issue, because |
337 shared libraries have already been mapped anyways, which means | 337 shared libraries have already been mapped anyways, which means |
338 we have nothing more to do. */ | 338 we have nothing more to do. */ |
339 if (!target_can_run (¤t_target)) | 339 if (!target_can_run (¤t_target)) |
340 return; | 340 return; |
341 | 341 |
342 tp = inferior_thread (); | 342 tp = inferior_thread (); |
343 clear_proceed_status (); | 343 clear_proceed_status (); |
344 inf->control.stop_soon = STOP_QUIETLY; | 344 inf->control.stop_soon = STOP_QUIETLY; |
345 tp->suspend.stop_signal = TARGET_SIGNAL_0; | 345 tp->suspend.stop_signal = GDB_SIGNAL_0; |
346 do | 346 do |
347 { | 347 { |
348 target_resume (minus_one_ptid, 0, tp->suspend.stop_signal); | 348 target_resume (minus_one_ptid, 0, tp->suspend.stop_signal); |
349 wait_for_inferior (); | 349 wait_for_inferior (); |
350 } | 350 } |
351 while (tp->suspend.stop_signal != TARGET_SIGNAL_TRAP); | 351 while (tp->suspend.stop_signal != GDB_SIGNAL_TRAP); |
352 | 352 |
353 /* solib_add will call reinit_frame_cache. | 353 /* solib_add will call reinit_frame_cache. |
354 But we are stopped in the runtime loader and we do not have symbols | 354 But we are stopped in the runtime loader and we do not have symbols |
355 for the runtime loader. So heuristic_proc_start will be called | 355 for the runtime loader. So heuristic_proc_start will be called |
356 and will put out an annoying warning. | 356 and will put out an annoying warning. |
357 Delaying the resetting of stop_soon until after symbol loading | 357 Delaying the resetting of stop_soon until after symbol loading |
358 suppresses the warning. */ | 358 suppresses the warning. */ |
359 solib_add ((char *) 0, 0, (struct target_ops *) 0, auto_solib_add); | 359 solib_add ((char *) 0, 0, (struct target_ops *) 0, auto_solib_add); |
360 inf->control.stop_soon = NO_STOP_QUIETLY; | 360 inf->control.stop_soon = NO_STOP_QUIETLY; |
361 } | 361 } |
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
631 osf_so_ops.solib_create_inferior_hook = osf_solib_create_inferior_hook; | 631 osf_so_ops.solib_create_inferior_hook = osf_solib_create_inferior_hook; |
632 osf_so_ops.special_symbol_handling = osf_special_symbol_handling; | 632 osf_so_ops.special_symbol_handling = osf_special_symbol_handling; |
633 osf_so_ops.current_sos = osf_current_sos; | 633 osf_so_ops.current_sos = osf_current_sos; |
634 osf_so_ops.open_symbol_file_object = osf_open_symbol_file_object; | 634 osf_so_ops.open_symbol_file_object = osf_open_symbol_file_object; |
635 osf_so_ops.in_dynsym_resolve_code = osf_in_dynsym_resolve_code; | 635 osf_so_ops.in_dynsym_resolve_code = osf_in_dynsym_resolve_code; |
636 osf_so_ops.bfd_open = solib_bfd_open; | 636 osf_so_ops.bfd_open = solib_bfd_open; |
637 | 637 |
638 /* FIXME: Don't do this here. *_gdbarch_init() should set so_ops. */ | 638 /* FIXME: Don't do this here. *_gdbarch_init() should set so_ops. */ |
639 current_target_so_ops = &osf_so_ops; | 639 current_target_so_ops = &osf_so_ops; |
640 } | 640 } |
OLD | NEW |