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

Side by Side Diff: gdb/solib-sunos.c

Issue 11969036: Merge GDB 7.5.1 (Closed) Base URL: http://git.chromium.org/native_client/nacl-gdb.git@master
Patch Set: 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 | « gdb/solib-spu.c ('k') | gdb/solib-svr4.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* Handle SunOS shared libraries for GDB, the GNU Debugger. 1 /* Handle SunOS shared libraries for GDB, the GNU Debugger.
2 2
3 Copyright (C) 1990-1996, 1998-2001, 2004, 2007-2012 Free Software 3 Copyright (C) 1990-1996, 1998-2001, 2004, 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 652 matching lines...) Expand 10 before | Expand all | Expand 10 after
663 which point all of the libraries will have been mapped in and we 663 which point all of the libraries will have been mapped in and we
664 can go groveling around in the dynamic linker structures to find 664 can go groveling around in the dynamic linker structures to find
665 out what we need to know about them. */ 665 out what we need to know about them. */
666 666
667 inf = current_inferior (); 667 inf = current_inferior ();
668 tp = inferior_thread (); 668 tp = inferior_thread ();
669 669
670 clear_proceed_status (); 670 clear_proceed_status ();
671 671
672 inf->control.stop_soon = STOP_QUIETLY; 672 inf->control.stop_soon = STOP_QUIETLY;
673 tp->suspend.stop_signal = TARGET_SIGNAL_0; 673 tp->suspend.stop_signal = GDB_SIGNAL_0;
674 do 674 do
675 { 675 {
676 target_resume (pid_to_ptid (-1), 0, tp->suspend.stop_signal); 676 target_resume (pid_to_ptid (-1), 0, tp->suspend.stop_signal);
677 wait_for_inferior (); 677 wait_for_inferior ();
678 } 678 }
679 while (tp->suspend.stop_signal != TARGET_SIGNAL_TRAP); 679 while (tp->suspend.stop_signal != GDB_SIGNAL_TRAP);
680 inf->control.stop_soon = NO_STOP_QUIETLY; 680 inf->control.stop_soon = NO_STOP_QUIETLY;
681 681
682 /* We are now either at the "mapping complete" breakpoint (or somewhere 682 /* We are now either at the "mapping complete" breakpoint (or somewhere
683 else, a condition we aren't prepared to deal with anyway), so adjust 683 else, a condition we aren't prepared to deal with anyway), so adjust
684 the PC as necessary after a breakpoint, disable the breakpoint, and 684 the PC as necessary after a breakpoint, disable the breakpoint, and
685 add any shared libraries that were mapped in. 685 add any shared libraries that were mapped in.
686 686
687 Note that adjust_pc_after_break did not perform any PC adjustment, 687 Note that adjust_pc_after_break did not perform any PC adjustment,
688 as the breakpoint the inferior just hit was not inserted by GDB, 688 as the breakpoint the inferior just hit was not inserted by GDB,
689 but by the dynamic loader itself, and is therefore not found on 689 but by the dynamic loader itself, and is therefore not found on
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
736 sunos_so_ops.solib_create_inferior_hook = sunos_solib_create_inferior_hook; 736 sunos_so_ops.solib_create_inferior_hook = sunos_solib_create_inferior_hook;
737 sunos_so_ops.special_symbol_handling = sunos_special_symbol_handling; 737 sunos_so_ops.special_symbol_handling = sunos_special_symbol_handling;
738 sunos_so_ops.current_sos = sunos_current_sos; 738 sunos_so_ops.current_sos = sunos_current_sos;
739 sunos_so_ops.open_symbol_file_object = open_symbol_file_object; 739 sunos_so_ops.open_symbol_file_object = open_symbol_file_object;
740 sunos_so_ops.in_dynsym_resolve_code = sunos_in_dynsym_resolve_code; 740 sunos_so_ops.in_dynsym_resolve_code = sunos_in_dynsym_resolve_code;
741 sunos_so_ops.bfd_open = solib_bfd_open; 741 sunos_so_ops.bfd_open = solib_bfd_open;
742 742
743 /* FIXME: Don't do this here. *_gdbarch_init() should set so_ops. */ 743 /* FIXME: Don't do this here. *_gdbarch_init() should set so_ops. */
744 current_target_so_ops = &sunos_so_ops; 744 current_target_so_ops = &sunos_so_ops;
745 } 745 }
OLDNEW
« no previous file with comments | « gdb/solib-spu.c ('k') | gdb/solib-svr4.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698