OLD | NEW |
1 /* Copyright (C) 2010, 2012 Free Software Foundation, Inc. | 1 /* Copyright (C) 2010, 2012 Free Software Foundation, Inc. |
2 | 2 |
3 This file is part of GDB. | 3 This file is part of GDB. |
4 | 4 |
5 This program is free software; you can redistribute it and/or modify | 5 This program is free software; you can redistribute it and/or modify |
6 it under the terms of the GNU General Public License as published by | 6 it under the terms of the GNU General Public License as published by |
7 the Free Software Foundation; either version 3 of the License, or | 7 the Free Software Foundation; either version 3 of the License, or |
8 (at your option) any later version. | 8 (at your option) any later version. |
9 | 9 |
10 This program is distributed in the hope that it will be useful, | 10 This program is distributed in the hope that it will be useful, |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 || insn == 0x3c0c9c0); /* break.i 0x0f0327 */ | 157 || insn == 0x3c0c9c0); /* break.i 0x0f0327 */ |
158 } | 158 } |
159 | 159 |
160 /* Same as ia64_hpux_at_dld_breakpoint_1_p above, with the following | 160 /* Same as ia64_hpux_at_dld_breakpoint_1_p above, with the following |
161 differences: It temporarily sets inferior_ptid to PTID, and also | 161 differences: It temporarily sets inferior_ptid to PTID, and also |
162 contains any exception being raised. */ | 162 contains any exception being raised. */ |
163 | 163 |
164 int | 164 int |
165 ia64_hpux_at_dld_breakpoint_p (ptid_t ptid) | 165 ia64_hpux_at_dld_breakpoint_p (ptid_t ptid) |
166 { | 166 { |
167 struct gdb_exception e; | 167 volatile struct gdb_exception e; |
168 ptid_t saved_ptid = inferior_ptid; | 168 ptid_t saved_ptid = inferior_ptid; |
169 int result = 0; | 169 int result = 0; |
170 | 170 |
171 inferior_ptid = ptid; | 171 inferior_ptid = ptid; |
172 TRY_CATCH (e, RETURN_MASK_ALL) | 172 TRY_CATCH (e, RETURN_MASK_ALL) |
173 { | 173 { |
174 result = ia64_hpux_at_dld_breakpoint_1_p (ptid); | 174 result = ia64_hpux_at_dld_breakpoint_1_p (ptid); |
175 } | 175 } |
176 inferior_ptid = saved_ptid; | 176 inferior_ptid = saved_ptid; |
177 if (e.reason < 0) | 177 if (e.reason < 0) |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
271 ia64_hpux_move_pc_to_next_bundle (regcache); | 271 ia64_hpux_move_pc_to_next_bundle (regcache); |
272 } | 272 } |
273 | 273 |
274 /* Same as ia64_hpux_handle_dld_breakpoint_1 above, with the following | 274 /* Same as ia64_hpux_handle_dld_breakpoint_1 above, with the following |
275 differences: This function temporarily sets inferior_ptid to PTID, | 275 differences: This function temporarily sets inferior_ptid to PTID, |
276 and also contains any exception. */ | 276 and also contains any exception. */ |
277 | 277 |
278 void | 278 void |
279 ia64_hpux_handle_dld_breakpoint (ptid_t ptid) | 279 ia64_hpux_handle_dld_breakpoint (ptid_t ptid) |
280 { | 280 { |
281 struct gdb_exception e; | 281 volatile struct gdb_exception e; |
282 ptid_t saved_ptid = inferior_ptid; | 282 ptid_t saved_ptid = inferior_ptid; |
283 | 283 |
284 inferior_ptid = ptid; | 284 inferior_ptid = ptid; |
285 TRY_CATCH (e, RETURN_MASK_ALL) | 285 TRY_CATCH (e, RETURN_MASK_ALL) |
286 { | 286 { |
287 ia64_hpux_handle_dld_breakpoint_1 (ptid); | 287 ia64_hpux_handle_dld_breakpoint_1 (ptid); |
288 } | 288 } |
289 inferior_ptid = saved_ptid; | 289 inferior_ptid = saved_ptid; |
290 if (e.reason < 0) | 290 if (e.reason < 0) |
291 warning (_("error detected while handling dld breakpoint: %s"), e.message); | 291 warning (_("error detected while handling dld breakpoint: %s"), e.message); |
(...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
691 } | 691 } |
692 | 692 |
693 /* Prevent warning from -Wmissing-prototypes. */ | 693 /* Prevent warning from -Wmissing-prototypes. */ |
694 void _initialize_solib_ia64_hpux (void); | 694 void _initialize_solib_ia64_hpux (void); |
695 | 695 |
696 void | 696 void |
697 _initialize_solib_ia64_hpux (void) | 697 _initialize_solib_ia64_hpux (void) |
698 { | 698 { |
699 ia64_hpux_so_ops = ia64_hpux_target_so_ops (); | 699 ia64_hpux_so_ops = ia64_hpux_target_so_ops (); |
700 } | 700 } |
OLD | NEW |