]>
Commit | Line | Data |
---|---|---|
ace6b919 MW |
1 | 2020-05-25 Michael Weghorn <m.weghorn@posteo.de> |
2 | ||
3 | * nto-low.cc (nto_process_target::create_inferior): Pass | |
4 | argv to spawnp function as char **. | |
5 | ||
b69ca137 MW |
6 | 2020-05-25 Michael Weghorn <m.weghorn@posteo.de> |
7 | ||
8 | * server.cc (captured_main), (handle_v_run): No longer | |
9 | insert extra NULL element to args vector. | |
10 | ||
51e2cfa2 PA |
11 | 2020-05-23 Pedro Alves <palves@redhat.com> |
12 | ||
13 | * gdb-safe-ctype.h: New. | |
14 | ||
8bbf0394 TBA |
15 | 2020-05-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
16 | ||
17 | * linux-ia64-low.cc (ia64_target::sw_breakpoint_from_kind): | |
18 | Fix incorrect 'gdb_assert_no_reached' to 'gdb_assert_not_reached'. | |
19 | (ia64_target::low_breakpoint_at): Ditto. | |
20 | ||
01370779 HD |
21 | 2020-05-15 Hannes Domani <ssbssa@yahoo.de> |
22 | ||
23 | * win32-i386-low.cc (i386_supports_z_point_type): Handle | |
24 | Z_PACKET_HW_BP z_type. | |
25 | (i386_insert_point): Handle raw_bkpt_type type. | |
26 | (i386_remove_point): Likewise. | |
27 | ||
7d186bc0 HD |
28 | 2020-04-30 Hannes Domani <ssbssa@yahoo.de> |
29 | ||
30 | * configure.srv <x86_64-*-mingw*, x86_64-*-cygwin*> (srv_tgtobj): | |
31 | Add arch/i386.o. | |
32 | * win32-arm-low.cc (arm_num_regs): New function. | |
33 | (struct win32_target_ops): Use arm_num_regs. | |
34 | * win32-i386-low.cc (win32_get_current_dr): Adapt for WOW64 | |
35 | processes. | |
36 | (i386_get_thread_context): Likewise. | |
37 | (i386_prepare_to_resume): Likewise. | |
38 | (i386_thread_added): Likewise. | |
39 | (i386_single_step): Likewise. | |
40 | (i386_fetch_inferior_register): Likewise. | |
41 | (i386_store_inferior_register): Likewise. | |
42 | (i386_arch_setup): Likewise. | |
43 | (i386_win32_num_regs): New function. | |
44 | (struct win32_target_ops): Use i386_win32_num_regs. | |
45 | * win32-low.cc (win32_get_thread_context): Adapt for WOW64 | |
46 | processes. | |
47 | (win32_require_context): Likewise. | |
48 | (child_add_thread): Likewise. | |
49 | (do_initial_child_stuff): Likewise. | |
50 | (continue_one_thread): Likewise. | |
51 | (win32_process_target::resume): Likewise. | |
52 | (load_psapi): Likewise. | |
53 | (win32_add_all_dlls): Likewise. | |
54 | (maybe_adjust_pc): Likewise. | |
55 | (win32_process_target::qxfer_siginfo): Likewise. | |
56 | (initialize_low): Likewise. | |
57 | * win32-low.h (struct win32_target_ops): Change num_regs to | |
58 | callback function. | |
59 | ||
1eb39914 SM |
60 | 2020-04-27 Simon Marchi <simon.marchi@efficios.com> |
61 | ||
62 | * configure.ac: Remove check for fs_base/gs_base in | |
63 | user_regs_struct. | |
64 | * configure: Re-generate. | |
65 | * config.in: Re-generate. | |
66 | * linux-x86-low.cc (x86_64_regmap, x86_fill_gregset, | |
67 | x86_store_gregset): Adjust. | |
68 | ||
51ac8e22 HD |
69 | 2020-04-22 Hannes Domani <ssbssa@yahoo.de> |
70 | ||
71 | * server.cc (handle_search_memory_1): Fix gdb_read_memory return value | |
72 | comparison. | |
73 | ||
a010605f TT |
74 | 2020-04-16 Tom Tromey <tromey@adacore.com> |
75 | ||
76 | * win32-low.cc (windows_nat::handle_access_violation): New | |
77 | function. | |
78 | ||
e2275c6e SM |
79 | 2020-04-15 Simon Marchi <simon.marchi@polymtl.ca> |
80 | ||
81 | * win32-low.cc (get_child_debug_event): Fix format string warning. | |
82 | ||
73944e9f TT |
83 | 2020-04-13 Tom Tromey <tom@tromey.com> |
84 | ||
85 | * server.h (gdb_fildes_t): Remove typedef. | |
86 | * remote-utils.c (remote_desc, list_desc): Now int. | |
87 | (INVALID_DESCRIPTOR): Remove. | |
88 | (gdb_connected, remote_close) | |
89 | (check_remote_input_interrupt_request): Update. | |
90 | * utils.h (pfildes): Don't declare. | |
91 | * utils.c (pfildes): Remove. | |
92 | ||
55d7aec8 TT |
93 | 2020-04-13 Tom Tromey <tom@tromey.com> |
94 | ||
95 | * server.h (handle_serial_event, handle_target_event): Update. | |
96 | * server.c: Don't call initialize_event_loop. | |
97 | (keep_processing_events): New global. | |
98 | (handle_serial_event): Return void. Set keep_processing_events. | |
99 | (handle_target_event): Return void. | |
100 | (start_event_loop): Move from event-loop.c. Rewrite. | |
101 | * remote-utils.c (handle_accept_event): Return void. | |
102 | (reset_readchar): Use delete_timer. | |
103 | (process_remaining): Return void. | |
104 | (reschedule): Use create_timer. | |
105 | * event-loop.h: Remove. | |
106 | * event-loop.cc: Remove. | |
107 | * Makefile.in (OBS): Use gdbsupport/event-loop.o, not event-loop.o. | |
108 | ||
e487f994 TT |
109 | 2020-04-13 Tom Tromey <tom@tromey.com> |
110 | ||
111 | * server.c (invoke_async_signal_handlers) | |
112 | (check_async_event_handlers, flush_streams, gdb_select): New | |
113 | functions. | |
114 | ||
8ae8e197 TT |
115 | 2020-04-13 Tom Tromey <tom@tromey.com> |
116 | ||
117 | * configure: Rebuild. | |
118 | * config.in: Rebuild. | |
119 | ||
360ad8b3 TT |
120 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
121 | ||
122 | PR gdb/22992 | |
123 | * win32-low.c (child_continue): Call matching_pending_stop. | |
124 | (get_child_debug_event): Call fetch_pending_stop. Push pending | |
125 | stop when needed. | |
126 | ||
523d4f80 TT |
127 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
128 | ||
129 | * win32-low.h (win32_process_target::stopped_by_sw_breakpoint) | |
130 | (win32_process_target::supports_stopped_by_sw_breakpoint): | |
131 | Declare. | |
132 | * win32-low.c (win32_supports_z_point_type): Always handle | |
133 | Z_PACKET_SW_BP. | |
134 | (win32_insert_point): Call insert_memory_breakpoint when needed. | |
135 | (win32_remove_point): Call remove_memory_breakpoint when needed. | |
136 | (win32_process_target::stopped_by_sw_breakpoint) | |
137 | (win32_process_target::supports_stopped_by_sw_breakpoint): New | |
138 | methods. | |
139 | (win32_target_ops): Update. | |
140 | (maybe_adjust_pc): New function. | |
141 | (win32_wait): Call maybe_adjust_pc. | |
142 | ||
e54e5929 TT |
143 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
144 | ||
145 | * win32-low.h (struct win32_target_ops) <decr_pc_after_break>: New | |
146 | field. | |
147 | * win32-i386-low.c (the_low_target): Update. | |
148 | * win32-arm-low.c (the_low_target): Update. | |
149 | ||
d6225aff TT |
150 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
151 | ||
152 | * win32-low.h (win32_process_target::read_pc) | |
153 | (win32_process_target::write_pc): Declare. | |
154 | * win32-low.c (win32_process_target::read_pc) | |
155 | (win32_process_target::write_pc): New methods. | |
156 | * win32-i386-low.c (i386_win32_get_pc, i386_win32_set_pc): New | |
157 | functions. | |
158 | (the_low_target): Update. | |
159 | * win32-arm-low.c (arm_win32_get_pc, arm_win32_set_pc): New | |
160 | functions. | |
161 | (the_low_target): Update. | |
162 | ||
2c1d95e8 TT |
163 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
164 | ||
165 | * win32-low.c (win32_kill, get_child_debug_event): Use | |
166 | wait_for_debug_event. | |
167 | ||
e758e19c TT |
168 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
169 | ||
170 | * win32-low.c (child_continue): Call continue_last_debug_event. | |
171 | ||
8d30e395 TT |
172 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
173 | ||
174 | * win32-low.c (handle_exception): Remove. | |
175 | (windows_nat::handle_ms_vc_exception): New function. | |
176 | (get_child_debug_event): Add "continue_status" parameter. | |
177 | Update. | |
178 | (win32_wait): Update. | |
179 | ||
a816ba18 TT |
180 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
181 | ||
182 | * win32-low.c (windows_nat::handle_load_dll): Rename from | |
183 | handle_load_dll. No longer static. | |
184 | (windows_nat::handle_unload_dll): Rename from handle_unload_dll. | |
185 | No longer static. | |
186 | ||
d41b524f TT |
187 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
188 | ||
189 | * win32-low.c (handle_output_debug_string): Add parameter. Change | |
190 | return type. | |
191 | (win32_kill, get_child_debug_event): Update. | |
192 | ||
3c76026d TT |
193 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
194 | ||
195 | * win32-low.c (current_process_handle, current_process_id) | |
196 | (main_thread_id, last_sig, current_event, siginfo_er): Move to | |
197 | nat/windows-nat.c. | |
198 | ||
9d8679cc TT |
199 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
200 | ||
201 | * win32-low.c (get_image_name): Remove. | |
202 | (handle_load_dll): Update. | |
203 | ||
28688adf TT |
204 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
205 | ||
206 | * win32-low.c (windows_nat::thread_rec): Rename from thread_rec. | |
207 | No longer static. Change parameters. | |
208 | (child_add_thread, child_fetch_inferior_registers) | |
209 | (child_store_inferior_registers, win32_resume) | |
210 | (win32_get_tib_address): Update. | |
211 | ||
4834dad0 TT |
212 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
213 | ||
214 | * win32-low.h (struct win32_target_ops): Use qualified names where | |
215 | needed. | |
216 | * win32-i386-low.c: Add "using namespace". | |
217 | * win32-low.c: Add "using namespace". | |
218 | * win32-arm-low.c: Add "using namespace". | |
219 | ||
65bafd5b TT |
220 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
221 | ||
222 | * win32-low.c (delete_thread_info): Don't call CloseHandle. | |
223 | ||
98a03287 TT |
224 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
225 | ||
226 | * win32-low.c (win32_require_context, suspend_one_thread): Use | |
227 | windows_thread_info::suspend. | |
228 | (continue_one_thread): Use windows_thread_info::resume. | |
229 | * configure.srv (srv_tgtobj): Add windows-nat.o when needed. | |
230 | ||
62fe396b TT |
231 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
232 | ||
233 | * win32-i386-low.c (update_debug_registers) | |
234 | (i386_prepare_to_resume, i386_thread_added): Update. | |
235 | ||
e9534bd2 TT |
236 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
237 | ||
238 | * win32-low.c (child_add_thread): Use new. | |
239 | (delete_thread_info): Use delete. | |
240 | ||
ae1f8880 TT |
241 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
242 | ||
243 | * win32-low.h (struct windows_thread_info): Remove. | |
244 | ||
e56f8ccb TT |
245 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
246 | ||
247 | * win32-low.h (struct windows_thread_info): Rename from | |
248 | win32_thread_info. Remove typedef. | |
249 | (struct win32_target_ops, win32_require_context): Update. | |
250 | * win32-low.c (win32_get_thread_context) | |
251 | (win32_set_thread_context, win32_prepare_to_resume) | |
252 | (win32_require_context, thread_rec, child_add_thread) | |
253 | (delete_thread_info, continue_one_thread) | |
254 | (child_fetch_inferior_registers, child_store_inferior_registers) | |
255 | (win32_resume, suspend_one_thread, win32_get_tib_address): | |
256 | Update. | |
257 | * win32-i386-low.c (update_debug_registers) | |
258 | (win32_get_current_dr, i386_get_thread_context) | |
259 | (i386_prepare_to_resume, i386_thread_added, i386_single_step) | |
260 | (i386_fetch_inferior_register, i386_store_inferior_register): | |
261 | Update. | |
262 | * win32-arm-low.c (arm_get_thread_context) | |
263 | (arm_fetch_inferior_register, arm_store_inferior_register): | |
264 | Update. | |
265 | ||
0dd7b52e TBA |
266 | 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
267 | ||
268 | * linux-low.h (struct linux_target_ops): Remove. | |
269 | (the_low_target): Remove. | |
270 | * linux-x86-low.cc (the_low_target): Remove. | |
271 | * linux-aarch64-low.cc (the_low_target): Ditto. | |
272 | * linux-arm-low.cc (the_low_target): Ditto. | |
273 | * linux-bfin-low.cc (the_low_target): Ditto. | |
274 | * linux-cris-low.cc (the_low_target): Ditto. | |
275 | * linux-crisv32-low.cc (the_low_target): Ditto. | |
276 | * linux-ia64-low.cc (the_low_target): Ditto. | |
277 | * linux-m32r-low.cc (the_low_target): Ditto. | |
278 | * linux-m68k-low.cc (the_low_target): Ditto. | |
279 | * linux-mips-low.cc (the_low_target): Ditto. | |
280 | * linux-nios2-low.cc (the_low_target): Ditto. | |
281 | * linux-ppc-low.cc (the_low_target): Ditto. | |
282 | * linux-riscv-low.cc (the_low_target): Ditto. | |
283 | * linux-s390-low.cc (the_low_target): Ditto. | |
284 | * linux-sh-low.cc (the_low_target): Ditto. | |
285 | * linux-sparc-low.cc (the_low_target): Ditto. | |
286 | * linux-tic6x-low.cc (the_low_target): Ditto. | |
287 | * linux-tile-low.cc (the_low_target): Ditto. | |
288 | * linux-xtensa-low.cc (the_low_target): Ditto. | |
289 | ||
fc5ecdb6 TBA |
290 | 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
291 | ||
292 | Remove the 'get_ipa_tdesc_idx' linux target op and let a concrete | |
293 | linux target define the op by overriding the declaration in | |
294 | process_stratum_target. | |
295 | ||
296 | * linux-low.h (struct linux_target_ops): Remove the op. | |
297 | (class linux_process_target) <get_ipa_tdesc_idx>: Remove. | |
298 | * linux-low.cc (linux_process_target::get_ipa_tdesc_idx): Remove. | |
299 | * linux-x86-low.cc (class x86_target) <get_ipa_tdesc_idx>: Declare. | |
300 | (x86_get_ipa_tdesc_idx): Turn into... | |
301 | (x86_target::get_ipa_tdesc_idx): ...this. | |
302 | (the_low_target): Remove the op field. | |
303 | * linux-ppc-low.cc (class ppc_target) <get_ipa_tdesc_idx>: Declare. | |
304 | (ppc_get_ipa_tdesc_idx): Turn into... | |
305 | (ppc_target::get_ipa_tdesc_idx): ...this. | |
306 | (the_low_target): Remove the op field. | |
307 | * linux-s390-low.cc (class s390_target) <get_ipa_tdesc_idx>: Declare. | |
308 | (s390_get_ipa_tdesc_idx): Turn into... | |
309 | (s390_target::get_ipa_tdesc_idx): ...this. | |
310 | (the_low_target): Remove the op field. | |
311 | ||
9eedd27d TBA |
312 | 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
313 | ||
314 | Turn the 'get_syscall_trapinfo' linux target op into a method | |
315 | of process_stratum_target. | |
316 | ||
317 | * linux-low.h (struct linux_target_ops): Remove the op. | |
318 | (class linux_process_target) <get_syscall_trapinfo> | |
319 | <gdb_catch_this_syscall> | |
320 | <low_supports_catch_syscall> | |
321 | <low_get_syscall_trapinfo>: Declare. | |
322 | * linux-low.cc (get_syscall_trapinfo): Turn into... | |
323 | (linux_process_target::get_syscall_trapinfo): ...this. | |
324 | (linux_process_target::low_get_syscall_trapinfo): Define. | |
325 | (gdb_catch_this_syscall_p): Turn into... | |
326 | (linux_process_target::gdb_catch_this_syscall): ...this. | |
327 | (linux_process_target::low_supports_catch_syscall): Define. | |
328 | ||
329 | Update the callers below. | |
330 | ||
331 | (linux_process_target::wait_1) | |
332 | (linux_process_target::supports_catch_syscall) | |
333 | ||
334 | * linux-x86-low.cc (class x86_target) <low_supports_catch_syscall> | |
335 | <low_get_syscall_trapinfo>: Declare. | |
336 | (x86_target::low_supports_catch_syscall): Define. | |
337 | (x86_get_syscall_trapinfo): Turn into... | |
338 | (x86_target::low_get_syscall_trapinfo): ...this. | |
339 | (the_low_target): Remove the op field. | |
340 | * linux-aarch64-low.cc (class aarch64_target) | |
341 | <low_supports_catch_syscall> | |
342 | <low_get_syscall_trapinfo>: Declare. | |
343 | (aarch64_target::low_supports_catch_syscall): Define. | |
344 | (aarch64_get_syscall_trapinfo): Turn into... | |
345 | (aarch64_target::low_get_syscall_trapinfo): ...this. | |
346 | (the_low_target): Remove the op field. | |
347 | * linux-arm-low.cc (class arm_target) <low_supports_catch_syscall> | |
348 | <low_get_syscall_trapinfo>: Declare. | |
349 | (arm_target::low_supports_catch_syscall): Define. | |
350 | (arm_get_syscall_trapinfo): Turn into... | |
351 | (arm_target::low_get_syscall_trapinfo): ...this. | |
352 | (the_low_target): Remove the op field. | |
353 | * linux-ppc-low.cc (the_low_target): Remove the op field. | |
354 | * linux-s390-low.cc (the_low_target): Remove the op field. | |
355 | ||
b31cdfa6 TBA |
356 | 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
357 | ||
358 | Remove the 'supports_hardware_single_step' linux target op and | |
359 | override the process_stratum_target's op definition in | |
360 | linux_process_target to return true. | |
361 | ||
362 | * linux-low.h (struct linux_target_ops): Remove the op. | |
363 | (class linux_process_target) <finish_step_over> | |
364 | <maybe_hw_step>: Declare. | |
365 | * linux-low.cc (can_hardware_single_step): Remove. | |
366 | (maybe_hw_step): Turn into... | |
367 | (linux_process_target::maybe_hw_step): ...this. | |
368 | (finish_step_over): Turn into... | |
369 | (linux_process_target::finish_step_over): ...this. | |
370 | (linux_process_target::supports_hardware_single_step): Update | |
371 | to return true. | |
372 | ||
373 | Update the callers below. | |
374 | ||
375 | (linux_process_target::single_step) | |
376 | (linux_process_target::resume_one_lwp_throw) | |
377 | ||
378 | * linux-arm-low.cc (class arm_target) | |
379 | <supports_hardware_single_step>: Declare. | |
380 | (arm_supports_hardware_single_step): Turn into... | |
381 | (arm_target::supports_hardware_single_step): ...this. | |
382 | (the_low_target): Remove the op field. | |
383 | * linux-x86-low.cc (x86_supports_hardware_single_step): Remove. | |
384 | (the_low_target): Remove the op field. | |
385 | * linux-aarch64-low.cc (aarch64_supports_hardware_single_step): | |
386 | Remove. | |
387 | (the_low_target): Remove the op field. | |
388 | * linux-bfin-low.cc (bfin_supports_hardware_single_step): Remove. | |
389 | (the_low_target): Remove the op field. | |
390 | * linux-crisv32-low.cc (cris_supports_hardware_single_step): Remove. | |
391 | (the_low_target): Remove the op field. | |
392 | * linux-m32r-low.cc (m32r_supports_hardware_single_step): Remove. | |
393 | (the_low_target): Remove the op field. | |
394 | * linux-m68k-low.cc (m68k_supports_hardware_single_step): Remove. | |
395 | (the_low_target): Remove the op field. | |
396 | * linux-ppc-low.cc (ppc_supports_hardware_single_step): Remove. | |
397 | (the_low_target): Remove the op field. | |
398 | * linux-s390-low.cc (s390_supports_hardware_single_step): Remove. | |
399 | (the_low_target): Remove the op field. | |
400 | * linux-sh-low.cc (sh_supports_hardware_single_step): Remove. | |
401 | (the_low_target): Remove the op field. | |
402 | * linux-tic6x-low.cc (tic6x_supports_hardware_single_step): Remove. | |
403 | (the_low_target): Remove the op field. | |
404 | * linux-tile-low.cc (tile_supports_hardware_single_step): Remove. | |
405 | (the_low_target): Remove the op field. | |
406 | * linux-xtensa-low.cc (xtensa_supports_hardware_single_step): | |
407 | Remove. | |
408 | (the_low_target): Remove the op field. | |
409 | ||
9cfd8715 TBA |
410 | 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
411 | ||
412 | Turn the 'supports_range_stepping' linux target op into a method | |
413 | of linux_process_target. | |
414 | ||
415 | * linux-low.h (struct linux_target_ops): Remove the op. | |
416 | (class linux_process_target) <low_supports_range_stepping>: Declare. | |
417 | * linux-low.cc (linux_process_target::low_supports_range_stepping): | |
418 | Define. | |
419 | (linux_process_target::supports_range_stepping): Update the call | |
420 | site. | |
421 | * linux-x86-low.cc (class x86_target) | |
422 | <low_supports_range_stepping>: Declare. | |
423 | (x86_supports_range_stepping): Turn into... | |
424 | (x86_target::low_supports_range_stepping): ...this. | |
425 | (the_low_target): Remove the op field. | |
426 | * linux-aarch64-low.cc (class aarch64_target) | |
427 | <low_supports_range_stepping>: Declare. | |
428 | (aarch64_supports_range_stepping): Turn into... | |
429 | (aarch64_target::low_supports_range_stepping): ...this. | |
430 | (the_low_target): Remove the op field. | |
431 | * linux-arm-low.cc (the_low_target): Remove the op field. | |
432 | * linux-bfin-low.cc (the_low_target): Ditto. | |
433 | * linux-crisv32-low.cc (the_low_target): Ditto. | |
434 | * linux-m32r-low.cc (the_low_target): Ditto. | |
435 | * linux-m68k-low.cc (the_low_target): Ditto. | |
436 | * linux-ppc-low.cc (the_low_target): Ditto. | |
437 | * linux-s390-low.cc (the_low_target): Ditto. | |
438 | * linux-sh-low.cc (the_low_target): Ditto. | |
439 | * linux-tic6x-low.cc (the_low_target): Ditto. | |
440 | * linux-tile-low.cc (the_low_target): Ditto. | |
441 | * linux-xtensa-low.cc (the_low_target): Ditto. | |
442 | ||
ab64c999 TBA |
443 | 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
444 | ||
445 | Remove the 'emit_ops' linux target ops and let the concrete | |
446 | linux target define the op by overriding the declaration of | |
447 | process_stratum_target. | |
448 | ||
449 | * linux-low.h (struct linux_target_ops): Remove the op. | |
450 | (class linux_process_target) <emit_ops>: Remove. | |
451 | * linux-low.cc (linux_process_target::emit_ops): Remove. | |
452 | * linux-x86-low.cc (class x86_target) <emit_ops>: Declare. | |
453 | (x86_emit_ops): Turn into... | |
454 | (x86_target::emit_ops): ...this. | |
455 | (the_low_target): Remove the op field. | |
456 | * linux-aarch64-low.cc (class aarch64_target) <emit_ops>: Declare. | |
457 | (aarch64_emit_ops): Turn into... | |
458 | (aarch64_target::emit_ops): ...this. | |
459 | (the_low_target): Remove the op field. | |
460 | * linux-ppc-low.cc (class ppc_target) <emit_ops>: Declare. | |
461 | (ppc_emit_ops): Turn into... | |
462 | (ppc_target::emit_ops): ...this. | |
463 | (the_low_target): Remove the op field. | |
464 | * linux-s390-low.cc (class s390_target) <emit_ops>: Declare. | |
465 | (s390_emit_ops): Turn into... | |
466 | (s390_target::emit_ops): ...this. | |
467 | (the_low_target): Remove the op field. | |
468 | * linux-arm-low.cc (the_low_target): Remove the op field. | |
469 | * linux-bfin-low.cc (the_low_target): Ditto. | |
470 | * linux-crisv32-low.cc (the_low_target): Ditto. | |
471 | * linux-m32r-low.cc (the_low_target): Ditto. | |
472 | * linux-m68k-low.cc (the_low_target): Ditto. | |
473 | * linux-sh-low.cc (the_low_target): Ditto. | |
474 | * linux-tic6x-low.cc (the_low_target): Ditto. | |
475 | * linux-tile-low.cc (the_low_target): Ditto. | |
476 | * linux-xtensa-low.cc (the_low_target): Ditto. | |
477 | ||
809a0c35 TBA |
478 | 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
479 | ||
480 | Remove the 'install_fast_tracepoint_jump_pad' and | |
481 | 'get_min_fast_tracepoint_insn_len' linux target ops to let the | |
482 | concrete linux target define the ops by overriding the declarations | |
483 | of process_stratum_target. | |
484 | ||
485 | * linux-low.h (struct linux_target_ops): Remove the ops. | |
486 | (class linux_process_target) <supports_fast_tracepoints> | |
487 | <install_fast_tracepoint_jump_pad> | |
488 | <get_min_fast_tracepoint_insn_len>: Remove. | |
489 | * linux-low.cc (linux_process_target::supports_fast_tracepoints) | |
490 | (linux_process_target::install_fast_tracepoint_jump_pad) | |
491 | (linux_process_target::get_min_fast_tracepoint_insn_len): Remove. | |
492 | * linux-x86-low.cc (class x86_target) <supports_fast_tracepoints> | |
493 | <install_fast_tracepoint_jump_pad> | |
494 | <get_min_fast_tracepoint_insn_len>: Declare. | |
495 | (x86_target::supports_fast_tracepoints): Define. | |
496 | (x86_install_fast_tracepoint_jump_pad): Turn into... | |
497 | (x86_target::install_fast_tracepoint_jump_pad): ...this. | |
498 | (x86_get_min_fast_tracepoint_insn_len): Turn into... | |
499 | (x86_target::get_min_fast_tracepoint_insn_len): ...this. | |
500 | (the_low_target): Remove the op fields. | |
501 | * linux-aarch64-low.cc (class aarch64_target) | |
502 | <supports_fast_tracepoints> | |
503 | <install_fast_tracepoint_jump_pad> | |
504 | <get_min_fast_tracepoint_insn_len>: Declare. | |
505 | (aarch64_target::supports_fast_tracepoints): Define. | |
506 | (aarch64_install_fast_tracepoint_jump_pad): Turn into... | |
507 | (aarch64_target::install_fast_tracepoint_jump_pad): ...this. | |
508 | (aarch64_get_min_fast_tracepoint_insn_len): Turn into... | |
509 | (aarch64_target::get_min_fast_tracepoint_insn_len): ...this. | |
510 | (the_low_target): Remove the op fields. | |
511 | * linux-ppc-low.cc (class ppc_target) <supports_fast_tracepoints> | |
512 | <install_fast_tracepoint_jump_pad> | |
513 | <get_min_fast_tracepoint_insn_len>: Declare. | |
514 | (ppc_target::supports_fast_tracepoints): Define. | |
515 | (ppc_install_fast_tracepoint_jump_pad): Turn into... | |
516 | (ppc_target::install_fast_tracepoint_jump_pad): ...this. | |
517 | (ppc_get_min_fast_tracepoint_insn_len): Turn into... | |
518 | (ppc_target::get_min_fast_tracepoint_insn_len): ...this. | |
519 | (the_low_target): Remove the op fields. | |
520 | * linux-s390-low.cc (class s390_target) <supports_fast_tracepoints> | |
521 | <install_fast_tracepoint_jump_pad> | |
522 | <get_min_fast_tracepoint_insn_len>: Declare. | |
523 | (s390_target::supports_fast_tracepoints): Define. | |
524 | (s390_install_fast_tracepoint_jump_pad): Turn into... | |
525 | (s390_target::install_fast_tracepoint_jump_pad): ...this. | |
526 | (s390_get_min_fast_tracepoint_insn_len): Turn into... | |
527 | (s390_target::get_min_fast_tracepoint_insn_len): ...this. | |
528 | (the_low_target): Remove the op fields. | |
529 | * linux-arm-low.cc (the_low_target): Remove the op fields. | |
530 | * linux-bfin-low.cc (the_low_target): Ditto. | |
531 | * linux-crisv32-low.cc (the_low_target): Ditto. | |
532 | * linux-m32r-low.cc (the_low_target): Ditto. | |
533 | * linux-m68k-low.cc (the_low_target): Ditto. | |
534 | * linux-sh-low.cc (the_low_target): Ditto. | |
535 | * linux-tic6x-low.cc (the_low_target): Ditto. | |
536 | * linux-tile-low.cc (the_low_target): Ditto. | |
537 | * linux-xtensa-low.cc (the_low_target): Ditto. | |
538 | ||
13e567af TBA |
539 | 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
540 | ||
541 | Turn the 'get_thread_area' linux target op into a method of | |
542 | process_stratum_target. | |
543 | ||
544 | * linux-low.h (struct linux_target_ops): Remove the op. | |
545 | (class linux_process_target) <stuck_in_jump_pad> | |
546 | <linux_fast_tracepoint_collecting> | |
547 | <low_get_thread_area>: Declare. | |
548 | * linux-low.cc (supports_fast_tracepoints): Remove. | |
549 | (linux_fast_tracepoint_collecting): Turn into... | |
550 | (linux_process_target::linux_fast_tracepoint_collecting): ...this. | |
551 | (linux_process_target::low_get_thread_area): Define. | |
552 | (stuck_in_jump_pad_callback): Turn into... | |
553 | (linux_process_target::stuck_in_jump_pad): ...this. | |
554 | ||
555 | Update the caller below. | |
556 | ||
557 | (linux_process_target::stabilize_threads) | |
558 | ||
559 | * linux-x86-low.cc (class x86_target) <low_get_thread_area>: | |
560 | Declare. | |
561 | (x86_get_thread_area): Turn into... | |
562 | (x86_target::low_get_thread_area): ...this. | |
563 | (the_low_target): Remove the op field. | |
564 | * linux-aarch64-low.cc (class aarch64_target) <low_get_thread_area>: | |
565 | Declare. | |
566 | (aarch64_get_thread_area): Turn into... | |
567 | (aarch64_target::low_get_thread_area): ...this. | |
568 | (the_low_target): Remove the op field. | |
569 | * linux-ppc-low.cc (class ppc_target) <low_get_thread_area>: | |
570 | Declare. | |
571 | (ppc_get_thread_area): Turn into... | |
572 | (ppc_target::low_get_thread_area): ...this. | |
573 | (the_low_target): Remove the op field. | |
574 | * linux-s390-low.cc (class s390_target) <low_get_thread_area>: | |
575 | Declare. | |
576 | (s390_get_thread_area): Turn into... | |
577 | (s390_target::low_get_thread_area): ...this. | |
578 | (the_low_target): Remove the op field. | |
579 | * linux-arm-low.cc (the_low_target): Remove the op field. | |
580 | * linux-bfin-low.cc (the_low_target): Ditto. | |
581 | * linux-crisv32-low.cc (the_low_target): Ditto. | |
582 | * linux-m32r-low.cc (the_low_target): Ditto. | |
583 | * linux-m68k-low.cc (the_low_target): Ditto. | |
584 | * linux-sh-low.cc (the_low_target): Ditto. | |
585 | * linux-tic6x-low.cc (the_low_target): Ditto. | |
586 | * linux-tile-low.cc (the_low_target): Ditto. | |
587 | * linux-xtensa-low.cc (the_low_target): Ditto. | |
588 | ||
47f70aa7 TBA |
589 | 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
590 | ||
591 | Remote the 'supports_tracepoints' linux target op and let the | |
592 | concrete linux target define it by overriding the op declared in | |
593 | process_stratum_target. | |
594 | ||
595 | * linux-low.h (struct linux_target_ops): Remove the op. | |
596 | (class linux_process_target) <supports_tracepoints>: Remove. | |
597 | * linux-low.cc (linux_process_target::supports_tracepoints): Remove. | |
598 | * linux-x86-low.cc (class x86_target) <supports_tracepoints>: | |
599 | Declare. | |
600 | (x86_supports_tracepoints): Turn into... | |
601 | (x86_target::supports_tracepoints): ...this. | |
602 | (the_low_target): Remove the op field. | |
603 | * linux-aarch64-low.cc (class aarch64_target) | |
604 | <supports_tracepoints>: Declare. | |
605 | (aarch64_supports_tracepoints): Turn into... | |
606 | (aarch64_target::supports_tracepoints): ...this. | |
607 | (the_low_target): Remove the op field. | |
608 | * linux-ppc-low.cc (class ppc_target) <supports_tracepoints>: | |
609 | Declare. | |
610 | (ppc_supports_tracepoints): Turn into... | |
611 | (ppc_target::supports_tracepoints): ...this. | |
612 | (the_low_target): Remove the op field. | |
613 | * linux-s390-low.cc (class s390_target) <supports_tracepoints>: | |
614 | Declare. | |
615 | (s390_supports_tracepoints): Turn into... | |
616 | (s390_target::supports_tracepoints): ...this. | |
617 | (the_low_target): Remove the op field. | |
618 | * linux-arm-low.cc (the_low_target): Remove the op field. | |
619 | * linux-bfin-low.cc (the_low_target): Ditto. | |
620 | * linux-crisv32-low.cc (the_low_target): Ditto. | |
621 | * linux-m32r-low.cc (the_low_target): Ditto. | |
622 | * linux-m68k-low.cc (the_low_target): Ditto. | |
623 | * linux-sh-low.cc (the_low_target): Ditto. | |
624 | * linux-tic6x-low.cc (the_low_target): Ditto. | |
625 | * linux-tile-low.cc (the_low_target): Ditto. | |
626 | * linux-xtensa-low.cc (the_low_target): Ditto. | |
627 | ||
a5b5da92 TBA |
628 | 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
629 | ||
630 | Remove the 'process_qsupported' linux target op and let a concrete | |
631 | linux target define the op by overriding the op declaration in | |
632 | process_stratum_target. | |
633 | ||
634 | * linux-low.h (struct linux_target_ops): Remove the op. | |
635 | (class linux_process_target) <process_qsupported>: Remove. | |
636 | * linux-low.cc (linux_process_target::process_qsupported): Remove. | |
637 | * linux-x86-low.cc (class x86_target) <process_qsupported>: Declare. | |
638 | (x86_linux_process_qsupported): Turn into... | |
639 | (x86_target::process_qsupported): ...this. | |
640 | (the_low_target): Remove the op field. | |
641 | * linux-aarch64-low.cc (the_low_target): Remove the op | |
642 | field. | |
643 | * linux-arm-low.cc (the_low_target): Ditto. | |
644 | * linux-bfin-low.cc (the_low_target): Ditto. | |
645 | * linux-crisv32-low.cc (the_low_target): Ditto. | |
646 | * linux-m32r-low.cc (the_low_target): Ditto. | |
647 | * linux-m68k-low.cc (the_low_target): Ditto. | |
648 | * linux-ppc-low.cc (the_low_target): Ditto. | |
649 | * linux-s390-low.cc (the_low_target): Ditto. | |
650 | * linux-sh-low.cc (the_low_target): Ditto. | |
651 | * linux-tic6x-low.cc (the_low_target): Ditto. | |
652 | * linux-tile-low.cc (the_low_target): Ditto. | |
653 | * linux-xtensa-low.cc (the_low_target): Ditto. | |
654 | ||
d7599cc0 TBA |
655 | 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
656 | ||
657 | Turn the 'prepare_to_resume' linux target op into a method of | |
658 | linux_process_target. | |
659 | ||
660 | * linux-low.h (struct linux_target_ops): Remove the op. | |
661 | (class linux_process_target) <low_prepare_to_resume>: Declare. | |
662 | * linux-low.cc (linux_process_target::low_prepare_to_resume): | |
663 | Define. | |
664 | ||
665 | Update the callers below: | |
666 | ||
667 | (linux_process_target::resume_one_lwp_throw) | |
668 | (linux_process_target::low_prepare_to_resume) | |
669 | ||
670 | * linux-x86-low.cc (class x86_target) <low_prepare_to_resume>: | |
671 | Declare. | |
672 | (x86_target::low_prepare_to_resume): Define. | |
673 | (the_low_target): Remove the op field. | |
674 | * linux-aarch64-low.cc (class aarch64_target) | |
675 | <low_prepare_to_resume>: Declare. | |
676 | (aarch64_target::low_prepare_to_resume): Define. | |
677 | (the_low_target): Remove the op field. | |
678 | * linux-arm-low.cc (class arm_target) <low_prepare_to_resume>: | |
679 | Declare. | |
680 | (arm_prepare_to_resume): Turn into... | |
681 | (arm_target::low_prepare_to_resume): ...this. | |
682 | (the_low_target): Remove the op field. | |
683 | * linux-mips-low.cc (class mips_target) <low_prepare_to_resume>: | |
684 | Declare. | |
685 | (mips_linux_prepare_to_resume): Turn into... | |
686 | (mips_target::low_prepare_to_resume): ...this. | |
687 | (the_low_target): Remove the op field. | |
688 | * linux-bfin-low.cc (the_low_target): Remove the op field. | |
689 | * linux-crisv32-low.cc (the_low_target): Ditto. | |
690 | * linux-m32r-low.cc (the_low_target): Ditto. | |
691 | * linux-m68k-low.cc (the_low_target): Ditto. | |
692 | * linux-ppc-low.cc (the_low_target): Ditto. | |
693 | * linux-s390-low.cc (the_low_target): Ditto. | |
694 | * linux-sh-low.cc (the_low_target): Ditto. | |
695 | * linux-tic6x-low.cc (the_low_target): Ditto. | |
696 | * linux-tile-low.cc (the_low_target): Ditto. | |
697 | * linux-xtensa-low.cc (the_low_target): Ditto. | |
698 | ||
fd000fb3 TBA |
699 | 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
700 | ||
701 | Turn the 'new_process', 'delete_process', 'new_thread', | |
702 | 'delete_thread', and 'new_fork' linux target ops into methods | |
703 | of linux_process_target. | |
704 | ||
705 | * linux-low.h (struct linux_target_ops): Remove the ops. | |
706 | (class linux_process_target) <add_linux_process> | |
707 | <add_lwp> | |
708 | <delete_lwp> | |
709 | <attach_lwp> | |
710 | <detach_one_lwp> | |
711 | <check_zombie_leaders> | |
712 | <filter_exit_event> | |
713 | <low_new_process> | |
714 | <low_delete_process> | |
715 | <low_new_thread> | |
716 | <low_delete_thread> | |
717 | <low_new_fork>: Declare. | |
718 | * linux-low.cc (delete_lwp): Turn into... | |
719 | (linux_process_target::delete_lwp): ...this. | |
720 | (linux_process_target::low_delete_thread): Define. | |
721 | (linux_add_process): Turn into... | |
722 | (linux_process_target::add_linux_process): ...this. | |
723 | (linux_process_target::low_new_process): Define. | |
724 | (linux_process_target::low_delete_process): Define. | |
725 | (linux_process_target::low_new_fork): Define. | |
726 | (add_lwp): Turn into... | |
727 | (linux_process_target::add_lwp): ...this. | |
728 | (linux_process_target::low_new_thread): Define. | |
729 | (linux_attach_lwp): Turn into... | |
730 | (linux_process_target::attach_lwp): ...this. | |
731 | (linux_detach_one_lwp): Turn into... | |
732 | (linux_process_target::detach_one_lwp): ...this. | |
733 | (linux_detach_lwp_callback): Remove and inline... | |
734 | (linux_process_target::detach): ...here. | |
735 | (check_zombie_leaders): Turn into... | |
736 | (linux_process_target::check_zombie_leaders): ...this. | |
737 | (filter_exit_event): Turn into... | |
738 | (linux_process_target::filter_exit_event): ...this. | |
739 | ||
740 | Update the callers below. | |
741 | ||
742 | (linux_process_target::handle_extended_wait) | |
743 | (linux_process_target::create_inferior) | |
744 | (attach_proc_task_lwp_callback) | |
745 | (linux_process_target::attach) | |
746 | (linux_process_target::detach) | |
747 | (linux_process_target::mourn) | |
748 | * thread-db.cc (attach_thread) | |
749 | ||
750 | * linux-x86-low.cc (class x86_target) <low_new_process> | |
751 | <low_delete_process> | |
752 | <low_new_thread> | |
753 | <low_delete_thread> | |
754 | <low_new_fork>: Declare. | |
755 | (x86_linux_new_process): Turn into... | |
756 | (x86_target::low_new_process): ...this. | |
757 | (x86_linux_delete_process): Turn into... | |
758 | (x86_target::low_delete_process): ...this. | |
759 | (x86_target::low_new_thread): Define. | |
760 | (x86_target::low_delete_thread): Define. | |
761 | (x86_linux_new_fork): Turn into... | |
762 | (x86_target::low_new_fork): ...this. | |
763 | (the_low_target): Remove the op fields. | |
764 | * linux-aarch64-low.cc (class aarch64_target) <low_new_process> | |
765 | <low_delete_process> | |
766 | <low_new_thread> | |
767 | <low_delete_thread> | |
768 | <low_new_fork>: Declare. | |
769 | (aarch64_linux_new_process): Turn into... | |
770 | (aarch64_target::low_new_process): ...this. | |
771 | (aarch64_linux_delete_process): Turn into... | |
772 | (aarch64_target::low_delete_process): ...this. | |
773 | (aarch64_target::low_new_thread): Define. | |
774 | (aarch64_target::low_delete_thread): Define. | |
775 | (aarch64_linux_new_fork): Turn into... | |
776 | (aarch64_target::low_new_fork): ...this. | |
777 | (the_low_target): Remove the op fields. | |
778 | * linux-arm-low.cc (class arm_target) <low_new_process> | |
779 | <low_delete_process> | |
780 | <low_new_thread> | |
781 | <low_delete_thread> | |
782 | <low_new_fork>: Declare. | |
783 | (arm_new_process): Turn into... | |
784 | (arm_target::low_new_process): ...this. | |
785 | (arm_delete_process): Turn into... | |
786 | (arm_target::low_delete_process): ...this. | |
787 | (arm_new_thread): Turn into... | |
788 | (arm_target::low_new_thread): ...this. | |
789 | (arm_delete_thread): Turn into... | |
790 | (arm_target::low_delete_thread): ...this. | |
791 | (arm_new_fork): Turn into... | |
792 | (arm_target::low_new_fork): ...this. | |
793 | (the_low_target): Remove the op fields. | |
794 | * linux-mips-low.cc (class mips_target) <low_new_process> | |
795 | <low_delete_process> | |
796 | <low_new_thread> | |
797 | <low_delete_thread> | |
798 | <low_new_fork>: Declare. | |
799 | (mips_linux_new_process): Turn into... | |
800 | (mips_target::low_new_process): ...this. | |
801 | (mips_linux_delete_process): Turn into... | |
802 | (mips_target::low_delete_process): ...this. | |
803 | (mips_linux_new_thread): Turn into... | |
804 | (mips_target::low_new_thread): ...this. | |
805 | (mips_linux_delete_thread): Turn into... | |
806 | (mips_target::low_delete_thread): ...this. | |
807 | (mips_linux_new_fork): Turn into... | |
808 | (mips_target::low_new_fork): ...this. | |
809 | (the_low_target): Remove the op fields. | |
810 | * linux-bfin-low.cc (the_low_target): Remove the op fields. | |
811 | * linux-crisv32-low.cc (the_low_target): Ditto. | |
812 | * linux-m32r-low.cc (the_low_target): Ditto. | |
813 | * linux-m68k-low.cc (the_low_target): Ditto. | |
814 | * linux-ppc-low.cc (the_low_target): Ditto. | |
815 | * linux-s390-low.cc (the_low_target): Ditto. | |
816 | * linux-sh-low.cc (the_low_target): Ditto. | |
817 | * linux-tic6x-low.cc (the_low_target): Ditto. | |
818 | * linux-tile-low.cc (the_low_target): Ditto. | |
819 | * linux-xtensa-low.cc (the_low_target): Ditto. | |
820 | ||
cb63de7c TBA |
821 | 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
822 | ||
823 | Turn the 'siginfo_fixup' linux target op into a method of | |
824 | linux_process_target. | |
825 | ||
826 | * linux-low.h (struct linux_target_ops): Remove the op. | |
827 | (class linux_process_target) <siginfo_fixup> | |
828 | <low_siginfo_fixup>: Declare. | |
829 | * linux-low.cc (siginfo_fixup): Turn into... | |
830 | (linux_process_target::siginfo_fixup): ...this. | |
831 | (linux_process_target::low_siginfo_fixup): Define. | |
832 | * linux-x86-low.cc (class x86_target) <low_siginfo_fixup>: Declare. | |
833 | (x86_siginfo_fixup): Turn into... | |
834 | (x86_target::low_siginfo_fixup): ...this. | |
835 | (the_low_target): Remove the op field. | |
836 | * linux-aarch64-low.cc (class aarch64_target): | |
837 | <low_siginfo_fixup>: Declare. | |
838 | (aarch64_linux_siginfo_fixup): Turn into... | |
839 | (aarch64_target::low_siginfo_fixup): ...this. | |
840 | (the_low_target): Remove the op field. | |
841 | * linux-arm-low.cc (the_low_target): Remove the op field. | |
842 | * linux-bfin-low.cc (the_low_target): Ditto. | |
843 | * linux-crisv32-low.cc (the_low_target): Ditto. | |
844 | * linux-m32r-low.cc (the_low_target): Ditto. | |
845 | * linux-m68k-low.cc (the_low_target): Ditto. | |
846 | * linux-mips-low.cc (the_low_target): Ditto. | |
847 | * linux-ppc-low.cc (the_low_target): Ditto. | |
848 | * linux-s390-low.cc (the_low_target): Ditto. | |
849 | * linux-sh-low.cc (the_low_target): Ditto. | |
850 | * linux-tic6x-low.cc (the_low_target): Ditto. | |
851 | * linux-tile-low.cc (the_low_target): Ditto. | |
852 | * linux-xtensa-low.cc (the_low_target): Ditto. | |
853 | ||
b35db733 TBA |
854 | 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
855 | ||
856 | Turn the 'collect_ptrace_register' and 'supply_ptrace_register' | |
857 | linux target ops into methods of linux_process_target. | |
858 | ||
859 | * linux-low.h (struct linux_target_ops): Remove the ops. | |
860 | (class linux_process_target) <low_collect_ptrace_register> | |
861 | <low_store_ptrace_register>: Declare. | |
862 | * linux-low.cc (linux_process_target::low_collect_ptrace_register) | |
863 | (linux_process_target::low_supply_ptrace_register): Define. | |
864 | ||
865 | Update the callers below. | |
866 | ||
867 | (linux_process_target::fetch_register) | |
868 | (linux_process_target::store_register) | |
869 | ||
870 | * linux-x86-low.cc (the_low_target): Remove the op fields. | |
871 | * linux-aarch64-low.cc (the_low_target): Ditto. | |
872 | * linux-arm-low.cc (the_low_target): Ditto. | |
873 | * linux-bfin-low.cc (the_low_target): Ditto. | |
874 | * linux-crisv32-low.cc (the_low_target): Ditto. | |
875 | * linux-m32r-low.cc (the_low_target): Ditto. | |
876 | * linux-m68k-low.cc (the_low_target): Ditto. | |
877 | * linux-sh-low.cc (the_low_target): Ditto. | |
878 | * linux-sparc-low.cc (the_low_target): Ditto. | |
879 | * linux-tic6x-low.cc (the_low_target): Ditto. | |
880 | * linux-tile-low.cc (the_low_target): Ditto. | |
881 | * linux-xtensa-low.cc (the_low_target): Ditto. | |
882 | * linux-mips-low.cc (class mips_target) | |
883 | <low_collect_ptrace_register> | |
884 | <low_supply_ptrace_register>: Declare. | |
885 | (mips_collect_ptrace_register): Turn into ... | |
886 | (mips_target::low_collect_ptrace_register): ...this. | |
887 | (mips_supply_ptrace_register): Turn into... | |
888 | (mips_target::low_supply_ptrace_register): ...this. | |
889 | (the_low_target): Remove the op fields. | |
890 | * linux-ppc-low.cc (class ppc_target) | |
891 | <low_collect_ptrace_register> | |
892 | <low_supply_ptrace_register>: Declare. | |
893 | (ppc_collect_ptrace_register): Turn into ... | |
894 | (ppc_target::low_collect_ptrace_register): ...this. | |
895 | (ppc_supply_ptrace_register): Turn into ... | |
896 | (ppc_target::low_supply_ptrace_register): ...this. | |
897 | (ppc_fill_gregset): Update for the calls to | |
898 | low_collect_ptrace_register. | |
899 | (the_low_target): Remove the op fields. | |
900 | * linux-s390-low.cc (class s390_target) | |
901 | <low_collect_ptrace_register> | |
902 | <low_supply_ptrace_register>: Declare. | |
903 | (s390_collect_ptrace_register): Turn into ... | |
904 | (s390_target::low_collect_ptrace_register): ...this. | |
905 | (s390_supply_ptrace_register): Turn into ... | |
906 | (s390_target::low_supply_ptrace_register): ...this. | |
907 | (s390_fill_gregset): Update for the calls to | |
908 | low_collect_ptrace_register. | |
909 | (the_low_target): Remove the op fields. | |
910 | ||
ac1bbaca TBA |
911 | 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
912 | ||
913 | Turn the 'stopped_by_watchpoint' and 'stopped_data_address' linux | |
914 | target ops into methods of linux_process_target. | |
915 | ||
916 | * linux-low.h (struct linux_target_ops): Remove the ops. | |
917 | (class linux_process_target) <check_stopped_by_watchpoint> | |
918 | <low_stopped_by_watchpoint> | |
919 | <low_stopped_data_address>: Declare. | |
920 | * linux-low.cc (check_stopped_by_watchpoint): Turn into... | |
921 | (linux_process_target::check_stopped_by_watchpoint): ...this. | |
922 | (linux_process_target::low_stopped_by_watchpoint): Define. | |
923 | (linux_process_target::low_stopped_data_address): Define. | |
924 | * linux-x86-low.cc (class x86_target) <low_stopped_by_watchpoint> | |
925 | <low_stopped_data_address>: Declare. | |
926 | (x86_stopped_by_watchpoint): Turn into... | |
927 | (x86_target::low_stopped_by_watchpoint): ...this. | |
928 | (x86_stopped_data_address): Turn into... | |
929 | (x86_target::low_stopped_data_address): ...this. | |
930 | (the_low_target): Remove the op fields. | |
931 | * linux-aarch64-low.cc (class aarch64_target) | |
932 | <low_stopped_by_watchpoint> | |
933 | <low_stopped_data_address>: Declare. | |
934 | (aarch64_stopped_by_watchpoint): Turn into... | |
935 | (aarch64_target::low_stopped_by_watchpoint): ...this. | |
936 | (aarch64_stopped_data_address): Turn into... | |
937 | (aarch64_target::low_stopped_data_address): ...this. | |
938 | (the_low_target): Remove the op fields. | |
939 | * linux-arm-low.cc (class arm_target) <low_stopped_by_watchpoint> | |
940 | <low_stopped_data_address>: Declare. | |
941 | (arm_stopped_by_watchpoint): Turn into... | |
942 | (arm_target::low_stopped_by_watchpoint): ...this. | |
943 | (arm_stopped_data_address): Turn into... | |
944 | (arm_target::low_stopped_data_address): ...this. | |
945 | (the_low_target): Remove the op fields. | |
946 | * linux-crisv32-low.cc (class crisv32_target) | |
947 | <low_stopped_by_watchpoint> | |
948 | <low_stopped_data_address>: Declare. | |
949 | (cris_stopped_by_watchpoint): Turn into... | |
950 | (crisv32_target::low_stopped_by_watchpoint): ...this. | |
951 | (cris_stopped_data_address): Turn into... | |
952 | (crisv32_target::low_stopped_data_address): ...this. | |
953 | (the_low_target): Remove the op fields. | |
954 | * linux-mips-low.cc (class mips_target) <low_stopped_by_watchpoint> | |
955 | <low_stopped_data_address>: Declare. | |
956 | (mips_stopped_by_watchpoint): Turn into... | |
957 | (mips_target::low_stopped_by_watchpoint): ...this. | |
958 | (mips_stopped_data_address): Turn into... | |
959 | (mips_target::low_stopped_data_address): ...this. | |
960 | (the_low_target): Remove the op fields. | |
961 | * linux-bfin-low.cc (the_low_target): Remove the op fields. | |
962 | * linux-m32r-low.cc (the_low_target): Ditto. | |
963 | * linux-m68k-low.cc (the_low_target): Ditto. | |
964 | * linux-ppc-low.cc (the_low_target): Ditto. | |
965 | * linux-s390-low.cc (the_low_target): Ditto. | |
966 | * linux-sh-low.cc (the_low_target): Ditto. | |
967 | * linux-sparc-low.cc (the_low_target): Ditto. | |
968 | * linux-tic6x-low.cc (the_low_target): Ditto. | |
969 | * linux-tile-low.cc (the_low_target): Ditto. | |
970 | * linux-xtensa-low.cc (the_low_target): Ditto. | |
971 | ||
9db9aa23 TBA |
972 | 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
973 | ||
974 | Turn the 'insert_point' and 'remove_point' linux target ops into | |
975 | methods of linux_process_target. | |
976 | ||
977 | * linux-low.h (struct linux_target_ops): Remove the ops. | |
978 | (class linux_process_target) <low_insert_point> | |
979 | <low_remove_point>: Declare. | |
980 | * linux-low.cc (linux_process_target::low_insert_point) | |
981 | (linux_process_target::low_remove_point): Define. | |
982 | (linux_process_target::insert_point) | |
983 | (linux_process_target::remove_point): Update for calls to | |
984 | low_insert_point and low_remove_point. | |
985 | * linux-x86-low.cc (class x86_target) <low_insert_point> | |
986 | <low_remove_point>: Declare. | |
987 | (x86_insert_point): Turn into... | |
988 | (x86_target::low_insert_point): ...this. | |
989 | (x86_remove_point): Turn into... | |
990 | (x86_target::low_remove_point): ...this. | |
991 | (the_low_target): Remove the op fields. | |
992 | * linux-aarch64-low.cc (class aarch64_target) <low_insert_point> | |
993 | <low_remove_point>: Declare. | |
994 | (aarch64_insert_point): Turn into... | |
995 | (aarch64_target::low_insert_point): ...this. | |
996 | (aarch64_remove_point): Turn into... | |
997 | (aarch64_target::low_remove_point): ...this. | |
998 | (the_low_target): Remove the op fields. | |
999 | * linux-arm-low.cc (class arm_target) <low_insert_point> | |
1000 | <low_remove_point>: Declare. | |
1001 | (arm_insert_point): Turn into... | |
1002 | (arm_target::low_insert_point): ...this. | |
1003 | (arm_remove_point): Turn into... | |
1004 | (arm_target::low_remove_point): ...this. | |
1005 | (the_low_target): Remove the op fields. | |
1006 | * linux-crisv32-low.cc (class crisv32_target) <low_insert_point> | |
1007 | <low_remove_point>: Declare. | |
1008 | (crisv32_insert_point): Turn into... | |
1009 | (crisv32_target::low_insert_point): ...this. | |
1010 | (crisv32_remove_point): Turn into... | |
1011 | (crisv32_target::low_remove_point): ...this. | |
1012 | (the_low_target): Remove the op fields. | |
1013 | * linux-mips-low.cc (class mips_target) <low_insert_point> | |
1014 | <low_remove_point>: Declare. | |
1015 | (mips_insert_point): Turn into... | |
1016 | (mips_target::low_insert_point): ...this. | |
1017 | (mips_remove_point): Turn into... | |
1018 | (mips_target::low_remove_point): ...this. | |
1019 | (the_low_target): Remove the op fields. | |
1020 | * linux-ppc-low.cc (class ppc_target) <low_insert_point> | |
1021 | <low_remove_point>: Declare. | |
1022 | (ppc_insert_point): Turn into... | |
1023 | (ppc_target::low_insert_point): ...this. | |
1024 | (ppc_remove_point): Turn into... | |
1025 | (ppc_target::low_remove_point): ...this. | |
1026 | (the_low_target): Remove the op fields. | |
1027 | * linux-bfin-low.cc (the_low_target): Remove the op fields. | |
1028 | * linux-m32r-low.cc (the_low_target): Ditto. | |
1029 | * linux-m68k-low.cc (the_low_target): Ditto. | |
1030 | * linux-s390-low.cc (the_low_target): Ditto. | |
1031 | * linux-sh-low.cc (the_low_target): Ditto. | |
1032 | * linux-sparc-low.cc (the_low_target): Ditto. | |
1033 | * linux-tic6x-low.cc (the_low_target): Ditto. | |
1034 | * linux-tile-low.cc (the_low_target): Ditto. | |
1035 | * linux-xtensa-low.cc (the_low_target): Ditto. | |
1036 | ||
007c9b97 TBA |
1037 | 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
1038 | ||
1039 | Remove the 'supports_z_point_type' linux target op and let the | |
1040 | concrete linux target define it by overriding the op declared in | |
1041 | process_stratum_target. | |
1042 | ||
1043 | * linux-low.cc (linux_process_target::supports_z_point_type): | |
1044 | Remove. | |
1045 | * linux-low.h (struct linux_target_ops): Remove the op. | |
1046 | (class linux_process_target) <supports_z_point_type>: Remove. | |
1047 | * linux-x86-low.cc (class x86_target) <supports_z_point_type>: | |
1048 | Declare. | |
1049 | (x86_supports_z_point_type): Turn into... | |
1050 | (x86_target::supports_z_point_type): ...this. | |
1051 | (the_low_target): Remove the op field. | |
1052 | * linux-aarch64-low.cc (class aarch64_target) | |
1053 | <supports_z_point_type>: Declare. | |
1054 | (aarch64_supports_z_point_type): Turn into... | |
1055 | (aarch64_target::supports_z_point_type): ...this. | |
1056 | (the_low_target): Remove the op field. | |
1057 | * linux-arm-low.cc (class arm_target) <supports_z_point_type>: | |
1058 | Declare. | |
1059 | (arm_supports_z_point_type): Turn into... | |
1060 | (arm_target::supports_z_point_type): ...this. | |
1061 | (the_low_target): Remove the op field. | |
1062 | * linux-crisv32-low.cc (class crisv32_target) | |
1063 | <supports_z_point_type>: Declare. | |
1064 | (cris_supports_z_point_type): Turn into... | |
1065 | (crisv32_target::supports_z_point_type): ...this. | |
1066 | (the_low_target): Remove the op field. | |
1067 | * linux-mips-low.cc (class mips_target) <supports_z_point_type>: | |
1068 | Declare. | |
1069 | (mips_supports_z_point_type): Turn into... | |
1070 | (mips_target::supports_z_point_type): ...this. | |
1071 | (the_low_target): Remove the op field. | |
1072 | * linux-ppc-low.cc (class ppc_target) <supports_z_point_type>: | |
1073 | Declare. | |
1074 | (ppc_supports_z_point_type): Turn into... | |
1075 | (ppc_target::supports_z_point_type): ...this. | |
1076 | (the_low_target): Remove the op field. | |
1077 | * linux-s390-low.cc (class s390_target) <supports_z_point_type>: | |
1078 | Declare. | |
1079 | (s390_supports_z_point_type): Turn into... | |
1080 | (s390_target::supports_z_point_type): ...this. | |
1081 | (the_low_target): Remove the op field. | |
1082 | * linux-bfin-low.cc (the_low_target): Remove the op field. | |
1083 | * linux-m32r-low.cc (the_low_target): Ditto. | |
1084 | * linux-m68k-low.cc (the_low_target): Ditto. | |
1085 | * linux-sh-low.cc (the_low_target): Ditto. | |
1086 | * linux-sparc-low.cc (the_low_target): Ditto. | |
1087 | * linux-tic6x-low.cc (the_low_target): Ditto. | |
1088 | * linux-tile-low.cc (the_low_target): Ditto. | |
1089 | * linux-xtensa-low.cc (the_low_target): Ditto. | |
1090 | ||
d7146cda TBA |
1091 | 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
1092 | ||
1093 | Turn the 'breakpoint_at' linux target op into a method of | |
1094 | linux_process_target. | |
1095 | ||
1096 | * linux-low.h (struct linux_target_ops): Remove the op. | |
1097 | (class linux_process_target) <low_breakpoint_at>: Declare. | |
1098 | ||
1099 | Update the callers below: | |
1100 | ||
1101 | * linux-low.cc (linux_process_target::save_stop_reason) | |
1102 | (linux_process_target::thread_still_has_status_pending) | |
1103 | (linux_process_target::wait_1) | |
1104 | ||
1105 | * linux-x86-low.cc (class x86_target) | |
1106 | <low_breakpoint_at>: Declare. | |
1107 | (x86_breakpoint_at): Turn into... | |
1108 | (x86_target::low_breakpoint_at): ...this. | |
1109 | (the_low_target): Remove the op field. | |
1110 | * linux-aarch64-low.cc (class aarch64_target) | |
1111 | <low_breakpoint_at>: Declare. | |
1112 | (aarch64_breakpoint_at): Turn into... | |
1113 | (aarch64_target::low_breakpoint_at): ...this. | |
1114 | (the_low_target): Remove the op field. | |
1115 | * linux-arm-low.cc (class arm_target) | |
1116 | <low_breakpoint_at>: Declare. | |
1117 | (arm_target::low_breakpoint_at): Define. | |
1118 | (the_low_target): Remove the op field. | |
1119 | * linux-bfin-low.cc (class bfin_target) | |
1120 | <low_breakpoint_at>: Declare. | |
1121 | (bfin_breakpoint_at): Turn into... | |
1122 | (bfin_target::low_breakpoint_at): ...this. | |
1123 | (the_low_target): Remove the op field. | |
1124 | * linux-cris-low.cc (class cris_target) | |
1125 | <low_breakpoint_at>: Declare. | |
1126 | (cris_breakpoint_at): Turn into... | |
1127 | (cris_target::low_breakpoint_at): ...this. | |
1128 | (the_low_target): Remove the op field. | |
1129 | * linux-crisv32-low.cc (class crisv32_target) | |
1130 | <low_breakpoint_at>: Declare. | |
1131 | (crisv32_breakpoint_at): Turn into... | |
1132 | (crisv32_target::low_breakpoint_at): ...this. | |
1133 | (the_low_target): Remove the op field. | |
1134 | * linux-ia64-low.cc (class ia64_target) | |
1135 | <low_breakpoint_at>: Declare. | |
1136 | (ia64_target::low_breakpoint_at): Define. | |
1137 | * linux-m32r-low.cc (class m32r_target) | |
1138 | <low_breakpoint_at>: Declare. | |
1139 | (m32r_breakpoint_at): Turn into... | |
1140 | (m32r_target::low_breakpoint_at): ...this. | |
1141 | (the_low_target): Remove the op field. | |
1142 | * linux-m68k-low.cc (class m68k_target) | |
1143 | <low_breakpoint_at>: Declare. | |
1144 | (m68k_breakpoint_at): Turn into... | |
1145 | (m68k_target::low_breakpoint_at): ...this. | |
1146 | (the_low_target): Remove the op field. | |
1147 | * linux-mips-low.cc (class mips_target) | |
1148 | <low_breakpoint_at>: Declare. | |
1149 | (mips_breakpoint_at): Turn into... | |
1150 | (mips_target::low_breakpoint_at): ...this. | |
1151 | (the_low_target): Remove the op field. | |
1152 | * linux-nios2-low.cc (class nios2_target) | |
1153 | <low_breakpoint_at>: Declare. | |
1154 | (nios2_breakpoint_at): Turn into... | |
1155 | (nios2_target::low_breakpoint_at): ...this. | |
1156 | (the_low_target): Remove the op field. | |
1157 | * linux-ppc-low.cc (class ppc_target) | |
1158 | <low_breakpoint_at>: Declare. | |
1159 | (ppc_breakpoint_at): Turn into... | |
1160 | (ppc_target::low_breakpoint_at): ...this. | |
1161 | (the_low_target): Remove the op field. | |
1162 | * linux-riscv-low.cc (class riscv_target) | |
1163 | <low_breakpoint_at>: Declare. | |
1164 | (riscv_breakpoint_at): Turn into... | |
1165 | (riscv_target::low_breakpoint_at): ...this. | |
1166 | (the_low_target): Remove the op field. | |
1167 | * linux-s390-low.cc (class s390_target) | |
1168 | <low_breakpoint_at>: Declare. | |
1169 | (s390_breakpoint_at): Turn into... | |
1170 | (s390_target::low_breakpoint_at): ...this. | |
1171 | (the_low_target): Remove the op field. | |
1172 | * linux-sh-low.cc (class sh_target) | |
1173 | <low_breakpoint_at>: Declare. | |
1174 | (sh_breakpoint_at): Turn into... | |
1175 | (sh_target::low_breakpoint_at): ...this. | |
1176 | (the_low_target): Remove the op field. | |
1177 | * linux-sparc-low.cc (class sparc_target) | |
1178 | <low_breakpoint_at>: Declare. | |
1179 | (sparc_breakpoint_at): Turn into... | |
1180 | (sparc_target::low_breakpoint_at): ...this. | |
1181 | (the_low_target): Remove the op field. | |
1182 | * linux-tic6x-low.cc (class tic6x_target) | |
1183 | <low_breakpoint_at>: Declare. | |
1184 | (tic6x_breakpoint_at): Turn into... | |
1185 | (tic6x_target::low_breakpoint_at): ...this. | |
1186 | (the_low_target): Remove the op field. | |
1187 | * linux-tile-low.cc (class tile_target) | |
1188 | <low_breakpoint_at>: Declare. | |
1189 | (tile_breakpoint_at): Turn into... | |
1190 | (tile_target::low_breakpoint_at): ...this. | |
1191 | (the_low_target): Remove the op field. | |
1192 | * linux-xtensa-low.cc (class xtensa_target) | |
1193 | <low_breakpoint_at>: Declare. | |
1194 | (xtensa_breakpoint_at): Turn into... | |
1195 | (xtensa_target::low_breakpoint_at): ...this. | |
1196 | (the_low_target): Remove the op field. | |
1197 | ||
d4807ea2 TBA |
1198 | 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
1199 | ||
1200 | Turn the 'decr_pc_after_break' linux_target_ops field into | |
1201 | a method of linux_process_target. | |
1202 | ||
1203 | * linux-low.h (struct linux_target_ops) | |
1204 | <decr_pc_after_break>: Remove. | |
1205 | (class linux_process_target) <low_decr_pc_after_break>: New method | |
1206 | declaration. | |
1207 | * linux-low.cc (linux_process_target::low_decr_pc_after_break): | |
1208 | New method implementation. | |
1209 | ||
1210 | Update the users below. | |
1211 | ||
1212 | (linux_process_target::save_stop_reason) | |
1213 | (linux_process_target::wait_1) | |
1214 | * linux-x86-low.cc (class x86_target) <low_decr_pc_after_break>: | |
1215 | New declaration. | |
1216 | (x86_target::low_decr_pc_after_break): New method implementation. | |
1217 | (the_low_target): Remove the field. | |
1218 | * linux-bfin-low.cc (class bfin_target) <low_decr_pc_after_break>: | |
1219 | New declaration. | |
1220 | (bfin_target::low_decr_pc_after_break): New method implementation. | |
1221 | (the_low_target): Remove the field. | |
1222 | * linux-m68k-low.cc (class m68k_target) <low_decr_pc_after_break>: | |
1223 | New declaration. | |
1224 | (m68k_target::low_decr_pc_after_break): New method implementation. | |
1225 | (the_low_target): Remove the field. | |
1226 | * linux-s390-low.cc (class s390_target) <low_decr_pc_after_break>: | |
1227 | New declaration. | |
1228 | (s390_target::low_decr_pc_after_break): New method implementation. | |
1229 | (the_low_target): Remove the field. | |
1230 | * linux-aarch64-low.cc (the_low_target): Remove the field. | |
1231 | * linux-arm-low.cc (the_low_target): Remove the field. | |
1232 | * linux-cris-low.cc (the_low_target): Remove the field. | |
1233 | * linux-crisv32-low.cc (the_low_target): Remove the field. | |
1234 | * linux-m32r-low.cc (the_low_target): Remove the field. | |
1235 | * linux-mips-low.cc (the_low_target): Remove the field. | |
1236 | * linux-nios2-low.cc (the_low_target): Remove the field. | |
1237 | * linux-ppc-low.cc (the_low_target): Remove the field. | |
1238 | * linux-riscv-low.cc (the_low_target): Remove the field. | |
1239 | * linux-sh-low.cc (the_low_target): Remove the field. | |
1240 | * linux-sparc-low.cc (the_low_target): Remove the field. | |
1241 | * linux-tic6x-low.cc (the_low_target): Remove the field. | |
1242 | * linux-tile-low.cc (the_low_target): Remove the field. | |
1243 | * linux-xtensa-low.cc (the_low_target): Remove the field. | |
1244 | ||
7582c77c TBA |
1245 | 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
1246 | ||
1247 | Remove the 'supports_software_single_step' linux target op and let | |
1248 | the concrete linux target define it by overriding the op in | |
1249 | process_stratum_target. | |
1250 | Turn the 'get_next_pcs' linux target op into a method of | |
1251 | linux_process_target. | |
1252 | ||
1253 | * linux-low.h (struct linux_target_ops): Remove the ops. | |
1254 | (class linux_process_target) <supports_software_single_step>: | |
1255 | Remove. | |
1256 | <low_get_next_pcs>: Declare. | |
1257 | * linux-low.cc (can_software_single_step): Remove. | |
1258 | (linux_process_target::low_get_next_pcs): Define. | |
1259 | (linux_process_target::supports_software_single_step): Remove. | |
1260 | ||
1261 | Update the callers below. | |
1262 | ||
1263 | (linux_process_target::handle_extended_wait) | |
1264 | (linux_process_target::wait_1) | |
1265 | (linux_process_target::install_software_single_step_breakpoints) | |
1266 | (linux_process_target::single_step) | |
1267 | (linux_process_target::thread_needs_step_over) | |
1268 | (linux_process_target::proceed_one_lwp) | |
1269 | (linux_process_target::supports_range_stepping) | |
1270 | ||
1271 | * linux-x86-low.cc (the_low_target): Remove the op field. | |
1272 | * linux-aarch64-low.cc (the_low_target): Ditto. | |
1273 | * linux-bfin-low.cc (the_low_target): Ditto. | |
1274 | * linux-cris-low.cc (the_low_target): Ditto. | |
1275 | * linux-crisv32-low.cc (the_low_target): Ditto. | |
1276 | * linux-m32r-low.cc (the_low_target): Ditto. | |
1277 | * linux-m68k-low.cc (the_low_target): Ditto. | |
1278 | * linux-mips-low.cc (the_low_target): Ditto. | |
1279 | * linux-nios2-low.cc (the_low_target): Ditto. | |
1280 | * linux-ppc-low.cc (the_low_target): Ditto. | |
1281 | * linux-riscv-low.cc (the_low_target): Ditto. | |
1282 | * linux-s390-low.cc (the_low_target): Ditto. | |
1283 | * linux-sh-low.cc (the_low_target): Ditto. | |
1284 | * linux-sparc-low.cc (the_low_target): Ditto. | |
1285 | * linux-tic6x-low.cc (the_low_target): Ditto. | |
1286 | * linux-tile-low.cc (the_low_target): Ditto. | |
1287 | * linux-xtensa-low.cc (the_low_target): Ditto. | |
1288 | * linux-arm-low.cc (class arm_target) <low_get_next_pcs> | |
1289 | <supports_software_single_step>: Declare. | |
1290 | (arm_target::supports_software_single_step): Define. | |
1291 | (arm_gdbserver_get_next_pcs): Turn into... | |
1292 | (arm_target::low_get_next_pcs): ...this. | |
1293 | (the_low_target): Remove the op field. | |
1294 | ||
3ca4edb6 TBA |
1295 | 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
1296 | ||
1297 | Remove the 'sw_breakpoint_from_kind' linux target op, and let | |
1298 | the concrete linux target define it by overriding the op | |
1299 | in process_stratum_target. | |
1300 | ||
1301 | * linux-low.cc (linux_process_target::sw_breakpoint_from_kind): | |
1302 | Remove. | |
1303 | * linux-low.h (struct linux_target_ops): Remove the op. | |
1304 | (class linux_process_target) <sw_breakpoint_from_kind>: Remove. | |
1305 | * linux-x86-low.cc (class x86_target) <sw_breakpoint_from_kind>: | |
1306 | Declare. | |
1307 | (x86_sw_breakpoint_from_kind): Turn into... | |
1308 | (x86_target::sw_breakpoint_from_kind): ...this. | |
1309 | (the_low_target): Remove the op field. | |
1310 | * linux-aarch64-low.cc (class aarch64_target) | |
1311 | <sw_breakpoint_from_kind>: Declare. | |
1312 | (aarch64_sw_breakpoint_from_kind): Turn into... | |
1313 | (aarch64_target::sw_breakpoint_from_kind): ...this. | |
1314 | (the_low_target): Remove the op field. | |
1315 | * linux-arm-low.cc (class arm_target) <sw_breakpoint_from_kind>: | |
1316 | Declare. | |
1317 | (arm_target::sw_breakpoint_from_kind): Define. | |
1318 | (the_low_target): Remove the op field. | |
1319 | * linux-bfin-low.cc (class bfin_target) <sw_breakpoint_from_kind>: | |
1320 | Declare. | |
1321 | (bfin_sw_breakpoint_from_kind): Turn into... | |
1322 | (bfin_target::sw_breakpoint_from_kind): ...this. | |
1323 | (the_low_target): Remove the op field. | |
1324 | * linux-cris-low.cc (class cris_target) <sw_breakpoint_from_kind>: | |
1325 | Declare. | |
1326 | (cris_sw_breakpoint_from_kind): Turn into... | |
1327 | (cris_target::sw_breakpoint_from_kind): ...this. | |
1328 | (the_low_target): Remove the op field. | |
1329 | * linux-crisv32-low.cc (class crisv32_target) | |
1330 | <sw_breakpoint_from_kind>: Declare. | |
1331 | (cris_sw_breakpoint_from_kind): Turn into... | |
1332 | (crisv32_target::sw_breakpoint_from_kind): ...this. | |
1333 | (the_low_target): Remove the op field. | |
1334 | * linux-ia64-low.cc (class ia64_target) <sw_breakpoint_from_kind>: | |
1335 | Declare. | |
1336 | (ia64_target::sw_breakpoint_from_kind): Define. | |
1337 | * linux-m32r-low.cc (class m32r_target) <sw_breakpoint_from_kind>: | |
1338 | Declare. | |
1339 | (m32r_sw_breakpoint_from_kind): Turn into... | |
1340 | (m32r_target::sw_breakpoint_from_kind): ...this. | |
1341 | (the_low_target): Remove the op field. | |
1342 | * linux-m68k-low.cc (class m68k_target) <sw_breakpoint_from_kind>: | |
1343 | Declare. | |
1344 | (m68k_sw_breakpoint_from_kind): Turn into... | |
1345 | (m68k_target::sw_breakpoint_from_kind): ...this. | |
1346 | (the_low_target): Remove the op field. | |
1347 | * linux-mips-low.cc (class mips_target) <sw_breakpoint_from_kind>: | |
1348 | Declare. | |
1349 | (mips_sw_breakpoint_from_kind): Turn into... | |
1350 | (mips_target::sw_breakpoint_from_kind): ...this. | |
1351 | (the_low_target): Remove the op field. | |
1352 | * linux-nios2-low.cc (class nios2_target) <sw_breakpoint_from_kind>: | |
1353 | Declare. | |
1354 | (nios2_sw_breakpoint_from_kind): Turn into... | |
1355 | (nios2_target::sw_breakpoint_from_kind): ...this. | |
1356 | (the_low_target): Remove the op field. | |
1357 | * linux-ppc-low.cc (class ppc_target) <sw_breakpoint_from_kind>: | |
1358 | Declare. | |
1359 | (ppc_sw_breakpoint_from_kind): Turn into... | |
1360 | (ppc_target::sw_breakpoint_from_kind): ...this. | |
1361 | (the_low_target): Remove the op field. | |
1362 | * linux-riscv-low.cc (class riscv_target) <sw_breakpoint_from_kind>: | |
1363 | Declare. | |
1364 | (riscv_sw_breakpoint_from_kind): Turn into... | |
1365 | (riscv_target::sw_breakpoint_from_kind): ...this. | |
1366 | (the_low_target): Remove the op field. | |
1367 | * linux-s390-low.cc (class s390_target) <sw_breakpoint_from_kind>: | |
1368 | Declare. | |
1369 | (s390_sw_breakpoint_from_kind): Turn into... | |
1370 | (s390_target::sw_breakpoint_from_kind): ...this. | |
1371 | (the_low_target): Remove the op field. | |
1372 | * linux-sh-low.cc (class sh_target) <sw_breakpoint_from_kind>: | |
1373 | Declare. | |
1374 | (sh_sw_breakpoint_from_kind): Turn into... | |
1375 | (sh_target::sw_breakpoint_from_kind): ...this. | |
1376 | (the_low_target): Remove the op field. | |
1377 | * linux-sparc-low.cc (class sparc_target) <sw_breakpoint_from_kind>: | |
1378 | Declare. | |
1379 | (sparc_sw_breakpoint_from_kind): Turn into... | |
1380 | (sparc_target::sw_breakpoint_from_kind): ...this. | |
1381 | (the_low_target): Remove the op field. | |
1382 | * linux-tic6x-low.cc (class tic6x_target) <sw_breakpoint_from_kind>: | |
1383 | Declare. | |
1384 | (tic6x_sw_breakpoint_from_kind): Turn into... | |
1385 | (tic6x_target::sw_breakpoint_from_kind): ...this. | |
1386 | (the_low_target): Remove the op field. | |
1387 | * linux-tile-low.cc (class tile_target) <sw_breakpoint_from_kind>: | |
1388 | Declare. | |
1389 | (tile_sw_breakpoint_from_kind): Turn into... | |
1390 | (tile_target::sw_breakpoint_from_kind): ...this. | |
1391 | (the_low_target): Remove the op field. | |
1392 | * linux-xtensa-low.cc (class xtensa_target) | |
1393 | <sw_breakpoint_from_kind>: Declare. | |
1394 | (xtensa_sw_breakpoint_from_kind): Turn into... | |
1395 | (xtensa_target::sw_breakpoint_from_kind): ...this. | |
1396 | (the_low_target): Remove the op field. | |
1397 | ||
06250e4e TBA |
1398 | 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
1399 | ||
1400 | Remove the 'breakpoint_kind_from_pc' and | |
1401 | 'breakpoint_kind_from_current_state' linux target ops, and let the | |
1402 | concrete linux target define them by overriding the ops of | |
1403 | process_stratum_target. | |
1404 | ||
1405 | * linux-low.cc (linux_process_target::breakpoint_kind_from_pc): | |
1406 | Remove. | |
1407 | (linux_process_target::breakpoint_kind_from_current_state): Remove. | |
1408 | * linux-low.h (struct linux_target_ops): Remove ops. | |
1409 | (class linux_process_target) <breakpoint_kind_from_pc>: Remove. | |
1410 | <breakpoint_kind_from_current_state>: Remove. | |
1411 | * linux-x86-low.cc (the_low_target): Remove the op fields. | |
1412 | * linux-bfin-low.cc (the_low_target): Ditto. | |
1413 | * linux-cris-low.cc (the_low_target): Ditto. | |
1414 | * linux-crisv32-low.cc (the_low_target): Ditto. | |
1415 | * linux-m32r-low.cc (the_low_target): Ditto. | |
1416 | * linux-m68k-low.cc (the_low_target): Ditto. | |
1417 | * linux-mips-low.cc (the_low_target): Ditto. | |
1418 | * linux-nios2-low.cc (the_low_target): Ditto. | |
1419 | * linux-ppc-low.cc (the_low_target): Ditto. | |
1420 | * linux-s390-low.cc (the_low_target): Ditto. | |
1421 | * linux-sh-low.cc (the_low_target): Ditto. | |
1422 | * linux-sparc-low.cc (the_low_target): Ditto. | |
1423 | * linux-tic6x-low.cc (the_low_target): Ditto. | |
1424 | * linux-tile-low.cc (the_low_target): Ditto. | |
1425 | * linux-xtensa-low.cc (the_low_target): Ditto. | |
1426 | * linux-aarch64-low.cc (class aarch64_target) | |
1427 | <breakpoint_kind_from_pc> | |
1428 | <breakpoint_kind_from_current_state>: Declare. | |
1429 | (aarch64_breakpoint_kind_from_pc): Turn into... | |
1430 | (aarch64_target::breakpoint_kind_from_pc): ...this. | |
1431 | (aarch64_breakpoint_kind_from_current_state): Turn into... | |
1432 | (aarch64_target::breakpoint_kind_from_current_state): ...this. | |
1433 | (the_low_target): Remove the op fields. | |
1434 | * linux-arm-low.cc (class arm_target): | |
1435 | <breakpoint_kind_from_pc> | |
1436 | <breakpoint_kind_from_current_state>: Declare. | |
1437 | (arm_target::breakpoint_kind_from_pc): Define. | |
1438 | (arm_target::breakpoint_kind_from_current_state): Define. | |
1439 | (the_low_target): Remove the op fields. | |
1440 | * linux-riscv-low.cc (class riscv_target): | |
1441 | <breakpoint_kind_from_pc>: Declare. | |
1442 | (riscv_breakpoint_kind_from_pc): Turn into... | |
1443 | (riscv_target::breakpoint_kind_from_pc): ...this. | |
1444 | (the_low_target): Remove the op fields. | |
1445 | ||
bf9ae9d8 TBA |
1446 | 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
1447 | ||
1448 | Turn the 'get_pc' and 'set_pc' linux target ops into methods | |
1449 | of linux_process_target. | |
1450 | ||
1451 | * linux-low.h (struct linux_target_ops): Remove the ops. | |
1452 | (class linux_process_target) <low_supports_breakpoints> | |
1453 | <low_get_pc> | |
1454 | <low_set_pc>: Declare. | |
1455 | * linux-low.cc (supports_breakpoints): Turn into... | |
1456 | (linux_process_target::low_supports_breakpoints): ...this. | |
1457 | (linux_process_target::low_get_pc): Define. | |
1458 | (linux_process_target::low_set_pc): Define. | |
1459 | ||
1460 | Update the callers below. | |
1461 | ||
1462 | (linux_process_target::get_pc) | |
1463 | (linux_process_target::save_stop_reason) | |
1464 | (linux_process_target::maybe_move_out_of_jump_pad) | |
1465 | (linux_process_target::wait_1) | |
1466 | (linux_process_target::resume_one_lwp_throw) | |
1467 | (linux_process_target::resume) | |
1468 | (linux_process_target::proceed_all_lwps) | |
1469 | (linux_process_target::read_pc) | |
1470 | (linux_process_target::write_pc) | |
1471 | ||
1472 | * linux-x86-low.cc (class linux_process_target) | |
1473 | <low_supports_breakpoints> | |
1474 | <low_get_pc> | |
1475 | <low_set_pc>: Declare. | |
1476 | (x86_target::low_supports_breakpoints): Define. | |
1477 | (x86_get_pc): Turn into... | |
1478 | (x86_target::low_get_pc): ...this. | |
1479 | (x86_set_pc): Turn into... | |
1480 | (x86_target::low_set_pc): ...this. | |
1481 | (the_low_target): Remove the op fields. | |
1482 | * linux-arm-low.cc (class arm_target) | |
1483 | <low_supports_breakpoints> | |
1484 | <low_get_pc> | |
1485 | <low_set_pc>: Declare. | |
1486 | (arm_target::low_supports_breakpoints) | |
1487 | (arm_target::low_get_pc) | |
1488 | (arm_target::low_set_pc): Define. | |
1489 | (the_low_target): Remove the op fields. | |
1490 | * linux-bfin-low.cc (class bfin_target) | |
1491 | <low_supports_breakpoints> | |
1492 | <low_get_pc> | |
1493 | <low_set_pc>: Declare. | |
1494 | (bfin_target::low_supports_breakpoints) | |
1495 | (bfin_target::low_get_pc) | |
1496 | (bfin_target::low_set_pc): Define. | |
1497 | (the_low_target): Remove the op fields. | |
1498 | * linux-cris-low.cc (class cris_target) | |
1499 | <low_supports_breakpoints> | |
1500 | <low_get_pc> | |
1501 | <low_set_pc>: Declare. | |
1502 | (cris_target::low_supports_breakpoints) | |
1503 | (cris_target::low_get_pc) | |
1504 | (cris_target::low_set_pc): Define. | |
1505 | (the_low_target): Remove the op fields. | |
1506 | * linux-crisv32-low.cc (class crisv32_target) | |
1507 | <low_supports_breakpoints> | |
1508 | <low_get_pc> | |
1509 | <low_set_pc>: Declare. | |
1510 | (crisv32_target::low_supports_breakpoints) | |
1511 | (crisv32_target::low_get_pc) | |
1512 | (crisv32_target::low_set_pc): Define. | |
1513 | (the_low_target): Remove the op fields. | |
1514 | * linux-m32r-low.cc (class m32r_target) | |
1515 | <low_supports_breakpoints> | |
1516 | <low_get_pc> | |
1517 | <low_set_pc>: Declare. | |
1518 | (m32r_target::low_supports_breakpoints) | |
1519 | (m32r_target::low_get_pc) | |
1520 | (m32r_target::low_set_pc): Define. | |
1521 | (the_low_target): Remove the op fields. | |
1522 | * linux-m68k-low.cc (class m68k_target) | |
1523 | <low_supports_breakpoints> | |
1524 | <low_get_pc> | |
1525 | <low_set_pc>: Declare. | |
1526 | (m68k_target::low_supports_breakpoints) | |
1527 | (m68k_target::low_get_pc) | |
1528 | (m68k_target::low_set_pc): Define. | |
1529 | (the_low_target): Remove the op fields. | |
1530 | * linux-nios2-low.cc (class nios2_target) | |
1531 | <low_supports_breakpoints> | |
1532 | <low_get_pc> | |
1533 | <low_set_pc>: Declare. | |
1534 | (nios2_target::low_supports_breakpoints) | |
1535 | (nios2_target::low_get_pc) | |
1536 | (nios2_target::low_set_pc): Define. | |
1537 | (the_low_target): Remove the op fields. | |
1538 | * linux-sh-low.cc (class sh_target) | |
1539 | <low_supports_breakpoints> | |
1540 | <low_get_pc> | |
1541 | <low_set_pc>: Declare. | |
1542 | (sh_target::low_supports_breakpoints) | |
1543 | (sh_target::low_get_pc) | |
1544 | (sh_target::low_set_pc): Define. | |
1545 | (the_low_target): Remove the op fields. | |
1546 | * linux-xtensa-low.cc (class xtensa_target) | |
1547 | <low_supports_breakpoints> | |
1548 | <low_get_pc> | |
1549 | <low_set_pc>: Declare. | |
1550 | (xtensa_target::low_supports_breakpoints) | |
1551 | (xtensa_target::low_get_pc) | |
1552 | (xtensa_target::low_set_pc): Define. | |
1553 | (the_low_target): Remove the op fields. | |
1554 | * linux-sparc-low.cc (class sparc_target) | |
1555 | <low_supports_breakpoints> | |
1556 | <low_get_pc>: Declare. | |
1557 | (sparc_target::low_supports_breakpoints) | |
1558 | (sparc_target::low_get_pc): Define. | |
1559 | (the_low_target): Remove the op fields. | |
1560 | * linux-tile-low.cc (class tile_target) | |
1561 | <low_supports_breakpoints> | |
1562 | <low_get_pc> | |
1563 | <low_set_pc>: Declare. | |
1564 | (tile_target::low_supports_breakpoints) | |
1565 | (tile_target::low_get_pc) | |
1566 | (tile_target::low_set_pc): Define. | |
1567 | (the_low_target): Remove the op fields. | |
1568 | * linux-aarch64-low.cc (class aarch64_target) | |
1569 | <low_supports_breakpoints> | |
1570 | <low_get_pc> | |
1571 | <low_set_pc>: Declare. | |
1572 | (aarch64_target::low_supports_breakpoints): Define. | |
1573 | (aarch64_get_pc): Turn into... | |
1574 | (aarch64_target::low_get_pc): ...this. | |
1575 | (aarch64_set_pc): Turn into... | |
1576 | (aarch64_target::low_set_pc): ...this. | |
1577 | (the_low_target): Remove the op fields. | |
1578 | * linux-mips-low.cc (class mips_target) | |
1579 | <low_supports_breakpoints> | |
1580 | <low_get_pc> | |
1581 | <low_set_pc>: Declare. | |
1582 | (mips_target::low_supports_breakpoints): Define. | |
1583 | (mips_get_pc): Turn into... | |
1584 | (mips_target::low_get_pc): ...this. | |
1585 | (mips_set_pc): Turn into... | |
1586 | (mips_target::low_set_pc): ...this. | |
1587 | (the_low_target): Remove the op fields. | |
1588 | * linux-ppc-low.cc (class ppc_target) | |
1589 | <low_supports_breakpoints> | |
1590 | <low_get_pc> | |
1591 | <low_set_pc>: Declare. | |
1592 | (ppc_target::low_supports_breakpoints): Define. | |
1593 | (ppc_get_pc): Turn into... | |
1594 | (ppc_target::low_get_pc): ...this. | |
1595 | (ppc_set_pc): Turn into... | |
1596 | (ppc_target::low_set_pc): ...this. | |
1597 | (the_low_target): Remove the op fields. | |
1598 | * linux-riscv-low.cc (class riscv_target) | |
1599 | <low_supports_breakpoints> | |
1600 | <low_get_pc> | |
1601 | <low_set_pc>: Declare. | |
1602 | (riscv_target::low_supports_breakpoints): Define. | |
1603 | (riscv_get_pc): Turn into... | |
1604 | (riscv_target::low_get_pc): ...this. | |
1605 | (riscv_set_pc): Turn into... | |
1606 | (riscv_target::low_set_pc): ...this. | |
1607 | (the_low_target): Remove the op fields. | |
1608 | * linux-s390-low.cc (class s390_target) | |
1609 | <low_supports_breakpoints> | |
1610 | <low_get_pc> | |
1611 | <low_set_pc>: Declare. | |
1612 | (s390_target::low_supports_breakpoints): Define. | |
1613 | (s390_get_pc): Turn into... | |
1614 | (s390_target::low_get_pc): ...this. | |
1615 | (s390_set_pc): Turn into... | |
1616 | (s390_target::low_set_pc): ...this. | |
1617 | (the_low_target): Remove the op fields. | |
1618 | * linux-tic6x-low.cc (class tic6x_target) | |
1619 | <low_supports_breakpoints> | |
1620 | <low_get_pc> | |
1621 | <low_set_pc>: Declare. | |
1622 | (tic6x_target::low_supports_breakpoints): Define. | |
1623 | (tic6x_get_pc): Turn into... | |
1624 | (tic6x_target::low_get_pc): ...this. | |
1625 | (tic6x_set_pc): Turn into... | |
1626 | (tic6x_target::low_set_pc): ...this. | |
1627 | (the_low_target): Remove the op fields. | |
1628 | ||
df95181f TBA |
1629 | 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
1630 | ||
1631 | Turn some more static methods in linux-low into private methods | |
1632 | of linux_process_target. | |
1633 | ||
1634 | * linux-low.cc (get_pc): Turn into... | |
1635 | (linux_process_target::get_pc): ...this. | |
1636 | (save_stop_reason): Turn into... | |
1637 | (linux_process_target::save_stop_reason): ...this. | |
1638 | (thread_still_has_status_pending_p): Turn into... | |
1639 | (linux_process_target::thread_still_has_status_pending): ...this. | |
1640 | (status_pending_p_callback): Turn into... | |
1641 | (linux_process_target::status_pending_p_callback): ...this. | |
1642 | (resume_stopped_resumed_lwps): Turn into... | |
1643 | (linux_process_target::resume_stopped_resumed_lwps): ...this. | |
1644 | (install_software_single_step_breakpoints): Turn into... | |
1645 | (linux_process_target::install_software_single_step_breakpoints): | |
1646 | ...this. | |
1647 | (single_step): Turn into... | |
1648 | (linux_process_target::single_step): ...this. | |
1649 | (linux_resume_one_lwp_throw): Turn into... | |
1650 | (linux_process_target::resume_one_lwp_throw): ...this. | |
1651 | (linux_resume_one_lwp): Turn into... | |
1652 | (linux_process_target::resume_one_lwp): ...this. | |
1653 | (resume_status_pending_p): Turn into... | |
1654 | (linux_process_target::resume_status_pending): ...this. | |
1655 | (need_step_over_p): Turn into... | |
1656 | (linux_process_target::thread_needs_step_over): ...this. | |
1657 | (linux_resume_one_thread): Turn into... | |
1658 | (linux_process_target::resume_one_thread): ...this. | |
1659 | (proceed_one_lwp): Turn into... | |
1660 | (linux_process_target::proceed_one_lwp): ...this. | |
1661 | (unsuspend_and_proceed_one_lwp): Turn into... | |
1662 | (linux_process_target::unsuspend_and_proceed_one_lwp): ...this. | |
1663 | ||
1664 | Update the calls/references to the above functions below. | |
1665 | ||
1666 | (linux_process_target::handle_extended_wait) | |
1667 | (linux_process_target::filter_event) | |
1668 | (linux_process_target::wait_for_event_filtered) | |
1669 | (linux_process_target::wait_1) | |
1670 | (linux_process_target::move_out_of_jump_pad) | |
1671 | (linux_process_target::start_step_over) | |
1672 | (linux_process_target::resume) | |
1673 | (linux_process_target::proceed_all_lwps) | |
1674 | (regsets_store_inferior_registers) | |
1675 | (linux_process_target::store_register) | |
1676 | ||
1677 | * linux-low.h (class linux_process_target) | |
1678 | <get_pc> | |
1679 | <save_stop_reason> | |
1680 | <thread_still_has_status_pending> | |
1681 | <status_pending_p_callback> | |
1682 | <resume_stopped_resumed_lwps> | |
1683 | <install_software_single_step_breakpoints> | |
1684 | <single_step> | |
1685 | <resume_one_lwp_throw> | |
1686 | <resume_one_lwp> | |
1687 | <resume_status_pending> | |
1688 | <thread_needs_step_over> | |
1689 | <resume_one_thread> | |
1690 | <proceed_one_lwp> | |
1691 | <unsuspend_and_proceed_one_lwp>: Declare. | |
1692 | ||
bd70b1f2 TBA |
1693 | 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
1694 | ||
1695 | Turn the 'fetch_register' linux target op into a method of | |
1696 | linux_process_target. | |
1697 | ||
1698 | * linux-low.h (struct linux_target_ops) <fetch_register>: Remove. | |
1699 | (class linux_process_target) <low_fetch_register>: Declare. | |
1700 | * linux-x86-low.cc (the_low_target) | |
1701 | * linux-aarch64-low.cc (the_low_target) | |
1702 | * linux-arm-low.cc (the_low_target) | |
1703 | * linux-bfin-low.cc (the_low_target) | |
1704 | * linux-cris-low.cc (the_low_target) | |
1705 | * linux-crisv32-low.cc (the_low_target) | |
1706 | * linux-m32r-low.cc (the_low_target) | |
1707 | * linux-m68k-low.cc (the_low_target) | |
1708 | * linux-nios2-low.cc (the_low_target) | |
1709 | * linux-ppc-low.cc (the_low_target) | |
1710 | * linux-s390-low.cc (the_low_target) | |
1711 | * linux-sh-low.cc (the_low_target) | |
1712 | * linux-sparc-low.cc (the_low_target) | |
1713 | * linux-tic6x-low.cc (the_low_target) | |
1714 | * linux-tile-low.cc (the_low_target) | |
1715 | * linux-xtensa-low.cc (the_low_target): Remove the op field. | |
1716 | * linux-ia64-low.cc (class ia64_target) <low_fetch_register>: | |
1717 | Declare. | |
1718 | (ia64_fetch_register): Turn into... | |
1719 | (ia64_target::low_fetch_register): ...this. | |
1720 | (the_low_target): Remove the op field. | |
1721 | * linux-mips-low.cc (class mips_target) <low_fetch_register>: | |
1722 | Declare. | |
1723 | (mips_fetch_register): Turn into... | |
1724 | (mips_target::low_fetch_register): ...this. | |
1725 | (the_low_target): Remove the op field. | |
1726 | * linux-riscv-low.cc (class riscv_target) <low_fetch_register>: | |
1727 | Declare. | |
1728 | (riscv_fetch_register): Turn into... | |
1729 | (riscv_target::low_fetch_register): ...this. | |
1730 | (the_low_target): Remove the op field. | |
1731 | ||
1732 | Update the callers below. | |
1733 | ||
1734 | * linux-low.cc (linux_process_target::fetch_registers) | |
1735 | (linux_process_target::low_fetch_register) | |
1736 | ||
daca57a7 TBA |
1737 | 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
1738 | ||
1739 | Turn the 'cannot_fetch_register' and 'cannot_store_register' | |
1740 | linux target ops into methods of linux_process_target. | |
1741 | ||
1742 | * linux-low.h (struct linux_target_ops): Remove the low target ops. | |
1743 | (class linux_process_target) <fetch_register> | |
1744 | <store_register> | |
1745 | <usr_fetch_inferior_registers> | |
1746 | <usr_store_inferior_registers> | |
1747 | <low_cannot_fetch_register> | |
1748 | <low_cannot_fetch_register> Declare. | |
1749 | * linux-low.cc (fetch_register): Turn into... | |
1750 | (linux_process_target::fetch_register): ...this. | |
1751 | (store_register): Turn into ... | |
1752 | (linux_process_target::store_register): ...this. | |
1753 | (usr_fetch_inferior_registers): Turn into... | |
1754 | (linux_process_target::usr_fetch_inferior_registers): ...this. | |
1755 | (usr_store_inferior_registers): Turn into... | |
1756 | (linux_process_target::usr_store_inferior_registers): ...this. | |
1757 | * linux-x86-low.cc (class x86_target) | |
1758 | <low_cannot_fetch_register> | |
1759 | <low_cannot_store_register>: Declare. | |
1760 | (x86_cannot_store_register): Turn into... | |
1761 | (x86_target::low_cannot_store_register): ...this. | |
1762 | (x86_cannot_fetch_register): Turn into... | |
1763 | (x86_target::low_cannot_fetch_register): ...this. | |
1764 | (the_low_target): Remove the target op fields. | |
1765 | * linux-aarch64-low.cc (class aarch64_target) | |
1766 | <low_cannot_fetch_register> | |
1767 | <low_cannot_store_register>: Declare. | |
1768 | (aarch64_target::low_cannot_fetch_register) | |
1769 | (aarch64_target::low_cannot_store_register): Define. | |
1770 | (the_low_target): Remove the op fields. | |
1771 | * linux-arm-low.cc (class arm_target) | |
1772 | <low_cannot_fetch_register> | |
1773 | <low_cannot_store_register>: Declare. | |
1774 | (arm_cannot_fetch_register): Turn into... | |
1775 | (arm_target::low_cannot_fetch_register): ...this. | |
1776 | (arm_cannot_store_register): Turn into... | |
1777 | (arm_target::low_cannot_store_register): ...this. | |
1778 | (the_low_target): Remove the op fields. | |
1779 | * linux-bfin-low.cc (class bfin_target) | |
1780 | <low_cannot_fetch_register> | |
1781 | <low_cannot_store_register>: Declare. | |
1782 | (bfin_cannot_fetch_register): Turn into... | |
1783 | (bfin_target::low_cannot_fetch_register): ...this. | |
1784 | (bfin_cannot_store_register): Turn into... | |
1785 | (bfin_target::low_cannot_store_register): ...this. | |
1786 | (the_low_target): Remove the op fields. | |
1787 | * linux-cris-low.cc (class cris_target) | |
1788 | <low_cannot_fetch_register> | |
1789 | <low_cannot_store_register>: Declare. | |
1790 | (cris_cannot_fetch_register): Turn into... | |
1791 | (cris_target::low_cannot_fetch_register): ...this. | |
1792 | (cris_cannot_store_register): Turn into... | |
1793 | (cris_target::low_cannot_store_register): ...this. | |
1794 | (the_low_target): Remove the op fields. | |
1795 | * linux-crisv32-low.cc (class crisv32_target) | |
1796 | <low_cannot_fetch_register> | |
1797 | <low_cannot_store_register>: Declare. | |
1798 | (crisv32_target::low_cannot_fetch_register) | |
1799 | (crisv32_target::low_cannot_store_register): Define. | |
1800 | (the_low_target): Remove the op fields. | |
1801 | * linux-ia64-low.cc (class ia64_target) | |
1802 | <low_cannot_fetch_register> | |
1803 | <low_cannot_store_register>: Declare. | |
1804 | (ia64_cannot_fetch_register): Turn into... | |
1805 | (ia64_target::low_cannot_fetch_register): ...this. | |
1806 | (ia64_cannot_store_register): Turn into... | |
1807 | (ia64_target::low_cannot_store_register): ...this. | |
1808 | (the_low_target): Remove the op fields. | |
1809 | * linux-m32r-low.cc (class m32r_target) | |
1810 | <low_cannot_fetch_register> | |
1811 | <low_cannot_store_register>: Declare. | |
1812 | (m32r_cannot_fetch_register): Turn into... | |
1813 | (m32r_target::low_cannot_fetch_register): ...this. | |
1814 | (m32r_cannot_store_register): Turn into... | |
1815 | (m32r_target::low_cannot_store_register): ...this. | |
1816 | (the_low_target): Remove the op fields. | |
1817 | * linux-m68k-low.cc (class m68k_target) | |
1818 | <low_cannot_fetch_register> | |
1819 | <low_cannot_store_register>: Declare. | |
1820 | (m68k_cannot_fetch_register): Turn into... | |
1821 | (m68k_target::low_cannot_fetch_register): ...this. | |
1822 | (m68k_cannot_store_register): Turn into... | |
1823 | (m68k_target::low_cannot_store_register): ...this. | |
1824 | (the_low_target): Remove the op fields. | |
1825 | * linux-mips-low.cc (class mips_target) | |
1826 | <low_cannot_fetch_register> | |
1827 | <low_cannot_store_register>: Declare. | |
1828 | (mips_cannot_fetch_register): Turn into... | |
1829 | (mips_target::low_cannot_fetch_register): ...this. | |
1830 | (mips_cannot_store_register): Turn into... | |
1831 | (mips_target::low_cannot_store_register): ...this. | |
1832 | (get_usrregs_info): Inline at the call sites in | |
1833 | low_cannot_fetch_register and low_cannot_store_register, | |
1834 | and remove. | |
1835 | (the_low_target): Remove the op fields. | |
1836 | * linux-nios2-low.cc (class nios2_target) | |
1837 | <low_cannot_fetch_register> | |
1838 | <low_cannot_store_register>: Declare. | |
1839 | (nios2_cannot_fetch_register): Turn into... | |
1840 | (nios2_target::low_cannot_fetch_register): ...this. | |
1841 | (nios2_cannot_store_register): Turn into... | |
1842 | (nios2_target::low_cannot_store_register): ...this. | |
1843 | (the_low_target): Remove the op fields. | |
1844 | * linux-ppc-low.cc (class ppc_target) | |
1845 | <low_cannot_fetch_register> | |
1846 | <low_cannot_store_register>: Declare. | |
1847 | (ppc_cannot_fetch_register): Turn into... | |
1848 | (ppc_target::low_cannot_fetch_register): ...this. | |
1849 | (ppc_cannot_store_register): Turn into... | |
1850 | (ppc_target::low_cannot_store_register): ...this. | |
1851 | (the_low_target): Remove the op fields. | |
1852 | * linux-riscv-low.cc (class riscv_target) | |
1853 | <low_cannot_fetch_register> | |
1854 | <low_cannot_store_register>: Declare. | |
1855 | (riscv_target::low_cannot_fetch_register) | |
1856 | (riscv_target::low_cannot_store_register): Define. | |
1857 | (the_low_target): Remove the op fields. | |
1858 | * linux-s390-low.cc (class s390_target) | |
1859 | <low_cannot_fetch_register> | |
1860 | <low_cannot_store_register>: Declare. | |
1861 | (s390_cannot_fetch_register): Turn into... | |
1862 | (s390_target::low_cannot_fetch_register): ...this. | |
1863 | (s390_cannot_store_register): Turn into... | |
1864 | (s390_target::low_cannot_store_register): ...this. | |
1865 | (the_low_target): Remove the op fields. | |
1866 | * linux-sh-low.cc (class sh_target) | |
1867 | <low_cannot_fetch_register> | |
1868 | <low_cannot_store_register>: Declare. | |
1869 | (sh_cannot_fetch_register): Turn into... | |
1870 | (sh_target::low_cannot_fetch_register): ...this. | |
1871 | (sh_cannot_store_register): Turn into... | |
1872 | (sh_target::low_cannot_store_register): ...this. | |
1873 | (the_low_target): Remove the op fields. | |
1874 | * linux-sparc-low.cc (class sparc_target) | |
1875 | <low_cannot_fetch_register> | |
1876 | <low_cannot_store_register>: Declare. | |
1877 | (sparc_cannot_fetch_register): Turn into... | |
1878 | (sparc_target::low_cannot_fetch_register): ...this. | |
1879 | (sparc_cannot_store_register): Turn into... | |
1880 | (sparc_target::low_cannot_store_register): ...this. | |
1881 | (the_low_target): Remove the op fields. | |
1882 | * linux-tic6x-low.cc (class tic6x_target) | |
1883 | <low_cannot_fetch_register> | |
1884 | <low_cannot_store_register>: Declare. | |
1885 | (tic6x_cannot_fetch_register): Turn into... | |
1886 | (tic6x_target::low_cannot_fetch_register): ...this. | |
1887 | (tic6x_cannot_store_register): Turn into... | |
1888 | (tic6x_target::low_cannot_store_register): ...this. | |
1889 | (the_low_target): Remove the op fields. | |
1890 | * linux-tile-low.cc (class tile_target) | |
1891 | <low_cannot_fetch_register> | |
1892 | <low_cannot_store_register>: Declare. | |
1893 | (tile_cannot_fetch_register): Turn into... | |
1894 | (tile_target::low_cannot_fetch_register): ...this. | |
1895 | (tile_cannot_store_register): Turn into... | |
1896 | (tile_target::low_cannot_store_register): ...this. | |
1897 | (the_low_target): Remove the op fields. | |
1898 | * linux-xtensa-low.cc (class xtensa_target) | |
1899 | <low_cannot_fetch_register> | |
1900 | <low_cannot_store_register>: Declare. | |
1901 | (xtensa_target::low_cannot_fetch_register) | |
1902 | (xtensa_target::low_cannot_store_register): Define. | |
1903 | (the_low_target): Remove the op fields. | |
1904 | ||
aa8d21c9 TBA |
1905 | 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
1906 | ||
1907 | Turn the 'regs_info' linux target op into a method of | |
1908 | linux_process_target. | |
1909 | ||
1910 | * linux-low.h (struct linux_target_ops) <regs_info>: Remove. | |
1911 | (class linux_process_target) <get_regs_info>: Define. | |
1912 | ||
1913 | Update the callers below. | |
1914 | ||
1915 | * linux-low.cc (linux_process_target::fetch_registers) | |
1916 | (linux_process_target::store_registers) | |
1917 | * proc-service.cc (gregset_info) | |
1918 | ||
1919 | * linux-x86-low.cc (class x86_target) <get_regs_info>: Declare. | |
1920 | (x86_linux_regs_info): Turn into ... | |
1921 | (x86_target::get_regs_info): ...this. | |
1922 | (the_low_target): Remove the op field. | |
1923 | * linux-aarch64-low.cc (class aarch64_target) <get_regs_info>: | |
1924 | Declare. | |
1925 | (aarch64_regs_info): Turn into ... | |
1926 | (aarch64_target::get_regs_info): ...this. | |
1927 | (the_low_target): Remove the op field. | |
1928 | * linux-arm-low.cc (class arm_target) <get_regs_info>: Declare. | |
1929 | (arm_regs_info): Turn into ... | |
1930 | (arm_target::get_regs_info): ...this. | |
1931 | (the_low_target): Remove the op field. | |
1932 | * linux-bfin-low.cc (class bfin_target) <get_regs_info>: Declare. | |
1933 | (bfin_regs_info): Turn into ... | |
1934 | (bfin_target::get_regs_info): ...this. | |
1935 | (the_low_target): Remove the op field. | |
1936 | * linux-cris-low.cc (class cris_target) <get_regs_info>: Declare. | |
1937 | (cris_regs_info): Turn into ... | |
1938 | (cris_target::get_regs_info): ...this. | |
1939 | (the_low_target): Remove the op field. | |
1940 | * linux-crisv32-low.cc (class crisv32_target) <get_regs_info>: | |
1941 | Declare. | |
1942 | (crisv32_regs_info): Turn into ... | |
1943 | (crisv32_target::get_regs_info): ...this. | |
1944 | (the_low_target): Remove the op field. | |
1945 | * linux-ia64-low.cc (class ia64_target) <get_regs_info>: Declare. | |
1946 | (ia64_regs_info): Turn into ... | |
1947 | (ia64_target::get_regs_info): ...this. | |
1948 | (the_low_target): Remove the op field. | |
1949 | * linux-m32r-low.cc (class m32r_target) <get_regs_info>: Declare. | |
1950 | (m32r_regs_info): Turn into ... | |
1951 | (m32r_target::get_regs_info): ...this. | |
1952 | (the_low_target): Remove the op field. | |
1953 | * linux-m68k-low.cc (class m68k_target) <get_regs_info>: Declare. | |
1954 | (m68k_regs_info): Turn into ... | |
1955 | (m68k_target::get_regs_info): ...this. | |
1956 | (the_low_target): Remove the op field. | |
1957 | * linux-mips-low.cc (class mips_target) <get_regs_info>: Declare. | |
1958 | (mips_regs_info): Turn into ... | |
1959 | (mips_target::get_regs_info): ...this. | |
1960 | (the_low_target): Remove the op field. | |
1961 | (get_usrregs_info): Update the call to the op. | |
1962 | * linux-nios2-low.cc (class nios2_target) <get_regs_info>: Declare. | |
1963 | (nios2_regs_info): Turn into ... | |
1964 | (nios2_target::get_regs_info): ...this. | |
1965 | (the_low_target): Remove the op field. | |
1966 | * linux-ppc-low.cc (class ppc_target) <get_regs_info>: Declare. | |
1967 | (ppc_regs_info): Turn into ... | |
1968 | (ppc_target::get_regs_info): ...this. | |
1969 | (the_low_target): Remove the op field. | |
1970 | * linux-riscv-low.cc (class riscv_target) <get_regs_info>: Declare. | |
1971 | (riscv_regs_info): Turn into ... | |
1972 | (riscv_target::get_regs_info): ...this. | |
1973 | (the_low_target): Remove the op field. | |
1974 | * linux-s390-low.cc (class s390_target) <get_regs_info>: Declare. | |
1975 | (s390_regs_info): Turn into ... | |
1976 | (s390_target::get_regs_info): ...this. | |
1977 | (the_low_target): Remove the op field. | |
1978 | (s390_collect_ptrace_register) | |
1979 | (s390_supply_ptrace_register) | |
1980 | (s390_fill_gregset): Update the call to the op. | |
1981 | * linux-sh-low.cc (class sh_target) <get_regs_info>: Declare. | |
1982 | (sh_regs_info): Turn into ... | |
1983 | (sh_target::get_regs_info): ...this. | |
1984 | (the_low_target): Remove the op field. | |
1985 | * linux-sparc-low.cc (class sparc_target) <get_regs_info>: Declare. | |
1986 | (sparc_regs_info): Turn into ... | |
1987 | (sparc_target::get_regs_info): ...this. | |
1988 | (the_low_target): Remove the op field. | |
1989 | * linux-tic6x-low.cc (class tic6x_target) <get_regs_info>: Declare. | |
1990 | (tic6x_regs_info): Turn into ... | |
1991 | (tic6x_target::get_regs_info): ...this. | |
1992 | (the_low_target): Remove the op field. | |
1993 | * linux-tile-low.cc (class tile_target) <get_regs_info>: Declare. | |
1994 | (tile_regs_info): Turn into ... | |
1995 | (tile_target::get_regs_info): ...this. | |
1996 | (the_low_target): Remove the op field. | |
1997 | * linux-xtensa-low.cc (class xtensa_target) <get_regs_info>: | |
1998 | Declare. | |
1999 | (xtensa_regs_info): Turn into ... | |
2000 | (xtensa_target::get_regs_info): ...this. | |
2001 | (the_low_target): Remove the op field. | |
2002 | ||
797bcff5 TBA |
2003 | 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
2004 | ||
2005 | Turn the 'arch_setup' linux target op into a method of | |
2006 | linux_process_target. | |
2007 | ||
2008 | * linux-low.h (struct linux_target_ops) <arch_setup>: Delete. | |
2009 | (class linux_process_target) <arch_setup_thread> | |
2010 | <low_arch_setup>: New declarations. | |
2011 | * linux-low.cc (linux_arch_setup): Delete. | |
2012 | (linux_arch_setup_thread): Turn into... | |
2013 | (linux_process_target::arch_setup_thread): ... this. | |
2014 | ||
2015 | Update the callers below. | |
2016 | ||
2017 | (linux_process_target::handle_extended_wait) | |
2018 | (linux_process_target::post_create_inferior) | |
2019 | (linux_process_target::filter_event) | |
2020 | ||
2021 | * linux-x86-low.cc (class x86_target) <low_arch_setup>: New | |
2022 | declaration. | |
2023 | (x86_linux_update_xmltarget): Turn into... | |
2024 | (x86_target::update_xmltarget): ...this. | |
2025 | (x86_linux_process_qsupported): Update the call to | |
2026 | x86_linux_update_xmltarget. | |
2027 | (x86_arch_setup): Turn into ... | |
2028 | (x86_target::low_arch_setup): ...this. | |
2029 | (the_low_target): Remove the op field. | |
2030 | * linux-aarch64-low.cc (class aarch64_target) <low_arch_setup>: New | |
2031 | declaration. | |
2032 | (aarch64_arch_setup): Turn into ... | |
2033 | (aarch64_target::low_arch_setup): ...this. | |
2034 | (the_low_target): Remove the op field. | |
2035 | * linux-arm-low.cc (class arm_target) <low_arch_setup>: New | |
2036 | declaration. | |
2037 | (arm_arch_setup): Turn into ... | |
2038 | (arm_target::low_arch_setup): ...this. | |
2039 | (the_low_target): Remove the op field. | |
2040 | * linux-bfin-low.cc (class bfin_target) <low_arch_setup>: New | |
2041 | declaration. | |
2042 | (bfin_arch_setup): Turn into ... | |
2043 | (bfin_target::low_arch_setup): ...this. | |
2044 | (the_low_target): Remove the op field. | |
2045 | * linux-cris-low.cc (class cris_target) <low_arch_setup>: New | |
2046 | declaration. | |
2047 | (cris_arch_setup): Turn into ... | |
2048 | (cris_target::low_arch_setup): ...this. | |
2049 | (the_low_target): Remove the op field. | |
2050 | * linux-crisv32-low.cc (class crisv32_target) <low_arch_setup>: New | |
2051 | declaration. | |
2052 | (crisv32_arch_setup): Turn into ... | |
2053 | (crisv32_target::low_arch_setup): ...this. | |
2054 | (the_low_target): Remove the op field. | |
2055 | * linux-ia64-low.cc (class ia64_target) <low_arch_setup>: New | |
2056 | declaration. | |
2057 | (ia64_arch_setup): Turn into ... | |
2058 | (ia64_target::low_arch_setup): ...this. | |
2059 | (the_low_target): Remove the op field. | |
2060 | * linux-m32r-low.cc (class m32r_target) <low_arch_setup>: New | |
2061 | declaration. | |
2062 | (m32r_arch_setup): Turn into ... | |
2063 | (m32r_target::low_arch_setup): ...this. | |
2064 | (the_low_target): Remove the op field. | |
2065 | * linux-m68k-low.cc (class m68k_target) <low_arch_setup>: New | |
2066 | declaration. | |
2067 | (m68k_arch_setup): Turn into ... | |
2068 | (m68k_target::low_arch_setup): ...this. | |
2069 | (the_low_target): Remove the op field. | |
2070 | * linux-mips-low.cc (class mips_target) <low_arch_setup>: New | |
2071 | declaration. | |
2072 | (mips_arch_setup): Turn into ... | |
2073 | (mips_target::low_arch_setup): ...this. | |
2074 | (the_low_target): Remove the op field. | |
2075 | * linux-nios2-low.cc (class nios2_target) <low_arch_setup>: New | |
2076 | declaration. | |
2077 | (nios2_arch_setup): Turn into ... | |
2078 | (nios2_target::low_arch_setup): ...this. | |
2079 | (the_low_target): Remove the op field. | |
2080 | * linux-ppc-low.cc (class ppc_target) <low_arch_setup>: New | |
2081 | declaration. | |
2082 | (ppc_arch_setup): Turn into ... | |
2083 | (ppc_target::low_arch_setup): ...this. | |
2084 | (the_low_target): Remove the op field. | |
2085 | * linux-riscv-low.cc (class riscv_target) <low_arch_setup>: New | |
2086 | declaration. | |
2087 | (riscv_arch_setup): Turn into ... | |
2088 | (riscv_target::low_arch_setup): ...this. | |
2089 | (the_low_target): Remove the op field. | |
2090 | * linux-s390-low.cc (class s390_target) <low_arch_setup>: New | |
2091 | declaration. | |
2092 | (s390_arch_setup): Turn into ... | |
2093 | (s390_target::low_arch_setup): ...this. | |
2094 | (the_low_target): Remove the op field. | |
2095 | * linux-sh-low.cc (class sh_target) <low_arch_setup>: New | |
2096 | declaration. | |
2097 | (sh_arch_setup): Turn into ... | |
2098 | (sh_target::low_arch_setup): ...this. | |
2099 | (the_low_target): Remove the op field. | |
2100 | * linux-sparc-low.cc (class sparc_target) <low_arch_setup>: New | |
2101 | declaration. | |
2102 | (sparc_arch_setup): Turn into ... | |
2103 | (sparc_target::low_arch_setup): ...this. | |
2104 | (the_low_target): Remove the op field. | |
2105 | * linux-tic6x-low.cc (class tic6x_target) <low_arch_setup>: New | |
2106 | declaration. | |
2107 | (tic6x_arch_setup): Turn into ... | |
2108 | (tic6x_target::low_arch_setup): ...this. | |
2109 | (the_low_target): Remove the op field. | |
2110 | * linux-tile-low.cc (class tile_target) <low_arch_setup>: New | |
2111 | declaration. | |
2112 | (tile_arch_setup): Turn into ... | |
2113 | (tile_target::low_arch_setup): ...this. | |
2114 | (the_low_target): Remove the op field. | |
2115 | * linux-xtensa-low.cc (class xtensa_target) <low_arch_setup>: New | |
2116 | declaration. | |
2117 | (xtensa_arch_setup): Turn into ... | |
2118 | (xtensa_target::low_arch_setup): ...this. | |
2119 | (the_low_target): Remove the op field. | |
2120 | ||
ef0478f6 TBA |
2121 | 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
2122 | ||
2123 | * linux-low.h (the_linux_target): New extern declaration. | |
2124 | * linux-low.cc (initialize_low): Use 'the_linux_target' to set | |
2125 | 'the_target'. | |
2126 | (the_linux_target): Remove. | |
2127 | * linux-x86-low.cc (class x86_target): New class. | |
2128 | (the_x86_target): New static object. | |
2129 | (the_linux_target): Define as pointer to the_x86_target. | |
2130 | * linux-aarch64-low.cc (class aarch64_target): New class. | |
2131 | (the_aarch64_target): New static object. | |
2132 | (the_linux_target): Define as pointer to the_aarch64_target. | |
2133 | * linux-arm-low.cc (class arm_target): New class. | |
2134 | (the_arm_target): New static object. | |
2135 | (the_linux_target): Define as pointer to the_arm_target. | |
2136 | * linux-bfin-low.cc (class bfin_target): New class. | |
2137 | (the_bfin_target): New static object. | |
2138 | (the_linux_target): Define as pointer to the_bfin_target. | |
2139 | * linux-cris-low.cc (class cris_target): New class. | |
2140 | (the_cris_target): New static object. | |
2141 | (the_linux_target): Define as pointer to the_cris_target. | |
2142 | * linux-crisv32-low.cc (class crisv32_target): New class. | |
2143 | (the_crisv32_target): New static object. | |
2144 | (the_linux_target): Define as pointer to the_crisv32_target. | |
2145 | * linux-ia64-low.cc (class ia64_target): New class. | |
2146 | (the_ia64_target): New static object. | |
2147 | (the_linux_target): Define as pointer to the_ia64_target. | |
2148 | * linux-m32r-low.cc (class m32r_target): New class. | |
2149 | (the_m32r_target): New static object. | |
2150 | (the_linux_target): Define as pointer to the_m32r_target. | |
2151 | * linux-m68k-low.cc (class m68k_target): New class. | |
2152 | (the_m68k_target): New static object. | |
2153 | (the_linux_target): Define as pointer to the_m68k_target. | |
2154 | * linux-mips-low.cc (class mips_target): New class. | |
2155 | (the_mips_target): New static object. | |
2156 | (the_linux_target): Define as pointer to the_mips_target. | |
2157 | * linux-nios2-low.cc (class nios2_target): New class. | |
2158 | (the_nios2_target): New static object. | |
2159 | (the_linux_target): Define as pointer to the_nios2_target. | |
2160 | * linux-ppc-low.cc (class ppc_target): New class. | |
2161 | (the_ppc_target): New static object. | |
2162 | (the_linux_target): Define as pointer to the_ppc_target. | |
2163 | * linux-riscv-low.cc (class riscv_target): New class. | |
2164 | (the_riscv_target): New static object. | |
2165 | (the_linux_target): Define as pointer to the_riscv_target. | |
2166 | * linux-s390-low.cc (class s390_target): New class. | |
2167 | (the_s390_target): New static object. | |
2168 | (the_linux_target): Define as pointer to the_s390_target. | |
2169 | * linux-sh-low.cc (class sh_target): New class. | |
2170 | (the_sh_target): New static object. | |
2171 | (the_linux_target): Define as pointer to the_sh_target. | |
2172 | * linux-sparc-low.cc (class sparc_target): New class. | |
2173 | (the_sparc_target): New static object. | |
2174 | (the_linux_target): Define as pointer to the_sparc_target. | |
2175 | * linux-tic6x-low.cc (class tic6x_target): New class. | |
2176 | (the_tic6x_target): New static object. | |
2177 | (the_linux_target): Define as pointer to the_tic6x_target. | |
2178 | * linux-tile-low.cc (class tile_target): New class. | |
2179 | (the_tile_target): New static object. | |
2180 | (the_linux_target): Define as pointer to the_tile_target. | |
2181 | * linux-xtensa-low.cc (class xtensa_target): New class. | |
2182 | (the_xtensa_target): New static object. | |
2183 | (the_linux_target): Define as pointer to the_xtensa_target. | |
2184 | ||
d16f3f6c TBA |
2185 | 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
2186 | ||
2187 | Turn some static functions in linux-low.cc into private methods of | |
2188 | linux_process_target. | |
2189 | ||
2190 | * linux-low.cc (handle_extended_wait): Turn into ... | |
2191 | (linux_process_target::handle_extended_wait): ...this. Call | |
2192 | 'mourn' on 'this' object instead of 'the_target'. | |
2193 | (maybe_move_out_of_jump_pad): Turn into... | |
2194 | (linux_process_target::maybe_move_out_of_jump_pad): ...this. | |
2195 | (linux_low_filter_event): Turn into... | |
2196 | (linux_process_target::filter_event): ...this. | |
2197 | (linux_wait_for_event_filtered): Turn into... | |
2198 | (linux_process_target::wait_for_event_filtered): ...this. | |
2199 | (linux_wait_for_event): Turn into... | |
2200 | (linux_process_target::wait_for_event): ...this. | |
2201 | (linux_wait_1): Turn into... | |
2202 | (linux_process_target::wait_1): ...this. | |
2203 | (wait_for_sigstop): Turn into... | |
2204 | (linux_process_target::wait_for_sigstop): ...this. | |
2205 | (move_out_of_jump_pad_callback): Turn into... | |
2206 | (linux_process_target::move_out_of_jump_pad): ...this. | |
2207 | (stop_all_lwps): Turn into... | |
2208 | (linux_process_target::stop_all_lwps): ...this. | |
2209 | (start_step_over): Turn into... | |
2210 | (linux_process_target::start_step_over): ...this. | |
2211 | (complete_ongoing_step_over): Turn into... | |
2212 | (linux_process_target::complete_ongoing_step_over): ...this. | |
2213 | (proceed_all_lwps): Turn into... | |
2214 | (linux_process_target::proceed_all_lwps): ...this. | |
2215 | (unstop_all_lwps): Turn into... | |
2216 | (linux_process_target::unstop_all_lwps): ...this. | |
2217 | ||
2218 | * linux-low.h (class linux_process_target) | |
2219 | <handle_extended_wait> | |
2220 | <maybe_move_out_of_jump_pad> | |
2221 | filter_event> | |
2222 | <wait_for_event_filtered> | |
2223 | <wait_for_event> | |
2224 | <wait_1> | |
2225 | <wait_for_sigstop> | |
2226 | <move_out_of_jump_pad> | |
2227 | <stop_all_lwps> | |
2228 | <start_step_over> | |
2229 | <complete_ongoing_step_over> | |
2230 | <proceed_all_lwps> | |
2231 | <unstop_all_lwps>: Declare. | |
2232 | ||
2233 | Update the callers below. | |
2234 | ||
2235 | * linux-low.cc (linux_process_target::attach): Update. | |
2236 | (linux_process_target::stabilize_threads): Ditto. | |
2237 | (linux_process_target::wait): Ditto. | |
2238 | ||
a5863204 TBA |
2239 | 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
2240 | ||
2241 | * linux-low.h (struct linux_target_ops): Update the comment for | |
2242 | 'cannot_store_register' to return 0 or 1. | |
2243 | * linux-ppc-low.cc (ppc_cannot_store_register): Return 1 instead | |
2244 | of 2. | |
2245 | ||
c884cc46 SM |
2246 | 2020-03-20 Simon Marchi <simon.marchi@efficios.com> |
2247 | ||
2248 | * config.in: Re-generate. | |
2249 | * configure: Re-generate. | |
2250 | ||
5a82b8a1 KR |
2251 | 2020-03-17 Kamil Rytarowski <n54@gmx.com> |
2252 | ||
2253 | * regcache.cc (find_register_by_number): Update. | |
2254 | * tdesc.cc (init_target_desc): Likewise. | |
2255 | * tdesc.h (target_desc::reg_defs): Likewise. | |
2256 | ||
4635ff97 TT |
2257 | 2020-03-12 Tom Tromey <tom@tromey.com> |
2258 | ||
2259 | * configure: Rebuild. | |
2260 | * configure.ac (GDBSERVER_DEPFILES): Remove srv_selftest_objs. | |
2261 | (WIN32APILIBS): New subst. | |
2262 | * Makefile.in (SFILES, OBS, TAGS, GDBREPLAY_OBS): Remove | |
2263 | gdbsupport files. | |
2264 | (gdbsupport/%.o): Remove target. | |
2265 | (GDBSUPPORT_BUILDDIR, GDBSUPPORT): New variables. | |
2266 | (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Add GDBSUPPORT. | |
2267 | (WIN32APILIBS): New variable. | |
2268 | (gdbserver$(EXEEXT)): Add WIN32APILIBS. | |
2269 | (gdbreplay$(EXEEXT)): Likewise. | |
2270 | ||
9a665d62 TT |
2271 | 2020-03-12 Tom Tromey <tom@tromey.com> |
2272 | ||
2273 | * config.in, configure: Rebuild. | |
2274 | * configure.ac: Call ZW_GNU_GETTEXT_SISTER_DIR. | |
2275 | * acinclude.m4: Include gettext-sister.m4. | |
2276 | * Makefile.in (top_builddir, INTL, INTL_DEPS, INTL_CFLAGS): New | |
2277 | variables. | |
2278 | (INCLUDE_CFLAGS): Add INTL_CFLAGS. | |
2279 | (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL. | |
2280 | ||
272cd5a3 SM |
2281 | 2020-03-12 Simon Marchi <simon.marchi@efficios.com> |
2282 | ||
2283 | * acinclude.m4: Update path to selftest.m4. | |
2284 | ||
db6878ac SM |
2285 | 2020-03-12 Simon Marchi <simon.marchi@efficios.com> |
2286 | ||
2287 | * configure.ac: Don't source bfd/development.sh, move | |
2288 | GDB_AC_COMMON higher. | |
2289 | * configure: Re-generate. | |
2290 | ||
4d696a5c SM |
2291 | 2020-03-12 Simon Marchi <simon.marchi@efficios.com> |
2292 | ||
2293 | * configure: Re-generate. | |
2294 | ||
a0761e34 SM |
2295 | 2020-03-11 Simon Marchi <simon.marchi@efficios.com> |
2296 | ||
2297 | * configure: Re-generate. | |
2298 | ||
20ea4a60 AB |
2299 | 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com> |
2300 | ||
2301 | * .dir-locals.el: New file. | |
2302 | ||
842806cb TBA |
2303 | 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
2304 | ||
2305 | * .gitattributes: New file. | |
2306 | ||
442131c1 AB |
2307 | 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com> |
2308 | ||
2309 | * remote-utils.cc (prepare_resume_reply): Add ability to convert T | |
2310 | reply into an S reply. | |
2311 | * server.cc (disable_packet_T): New global. | |
2312 | (captured_main): Set new global when appropriate. | |
2313 | * server.h (disable_packet_T): Declare. | |
2314 | ||
dda42c0b TT |
2315 | 2020-02-21 Tom Tromey <tom@tromey.com> |
2316 | ||
2317 | * Makefile.in (mostlyclean): New target. | |
2318 | ||
52405d85 TBA |
2319 | 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
2320 | ||
2321 | * target.h (struct process_stratum_target): Remove. | |
2322 | (class process_target): Rename to ... | |
2323 | (class process_stratum_target): ... this. | |
2324 | * linux-low.h (class linux_process_target): Derive from | |
2325 | 'process_stratum_target'. | |
2326 | * linux-low.cc (linux_target_ops): Remove. | |
2327 | (initialize_low): Set the_target to the singleton instance of | |
2328 | linux_process_target. | |
2329 | * lynx-low.h (class lynx_process_target): Derive from | |
2330 | 'process_stratum_target'. | |
2331 | * lynx-low.cc (lynx_target_ops): Remove. | |
2332 | (initialize_low): Set the_target to the singleton instance of | |
2333 | lynx_process_target. | |
2334 | * nto-low.h (class nto_process_target): Derive from | |
2335 | 'process_stratum_target'. | |
2336 | * nto-low.cc (nto_target_ops): Remove. | |
2337 | (initialize_low): Set the_target to the singleton instance of | |
2338 | nto_process_target. | |
2339 | * win32-low.h (class win32_process_target): Derive from | |
2340 | 'process_stratum_target'. | |
2341 | * win32-low.cc (win32_target_ops): Remove. | |
2342 | (initialize_low): Set the_target to the singleton instance of | |
2343 | win32_process_target. | |
2344 | ||
2345 | Replace 'the_target->pt' with 'the_target' in the uses below. | |
2346 | ||
2347 | * hostio.cc (hostio_error) | |
2348 | (handle_setfs) | |
2349 | (handle_open) | |
2350 | (handle_unlink) | |
2351 | (handle_readlink) | |
2352 | * linux-aarch32-low.cc (arm_breakpoint_at) | |
2353 | * linux-aarch64-low.cc (aarch64_breakpoint_at) | |
2354 | * linux-arm-low.cc (arm_sigreturn_next_pc) | |
2355 | (arm_get_hwcap) | |
2356 | (arm_get_syscall_trapinfo) | |
2357 | * linux-cris-low.cc (cris_breakpoint_at) | |
2358 | * linux-crisv32-low.cc (cris_breakpoint_at) | |
2359 | * linux-low.cc (handle_extended_wait) | |
2360 | (linux_wait_1) | |
2361 | (linux_read_memory) | |
2362 | (linux_process_target::breakpoint_kind_from_pc) | |
2363 | (linux_get_auxv) | |
2364 | * linux-m32r-low.cc (m32r_breakpoint_at) | |
2365 | * linux-mips-low.cc (mips_breakpoint_at) | |
2366 | * linux-nios2-low.cc (nios2_breakpoint_at) | |
2367 | * linux-ppc-low.cc (ppc_breakpoint_at) | |
2368 | * linux-s390-low.cc (s390_get_hwcap) | |
2369 | * linux-sh-low.cc (sh_breakpoint_at) | |
2370 | * linux-sparc-low.cc (sparc_fill_gregset_to_stack) | |
2371 | (sparc_store_gregset_from_stack) | |
2372 | (sparc_breakpoint_at) | |
2373 | * linux-tic6x-low.cc (tic6x_breakpoint_at) | |
2374 | * linux-tile-low.cc (tile_breakpoint_at) | |
2375 | * linux-x86-low.cc (x86_breakpoint_at) | |
2376 | * linux-xtensa-low.cc (xtensa_breakpoint_at) | |
2377 | * mem-break.cc (bp_size) | |
2378 | (bp_opcode) | |
2379 | (insert_memory_breakpoint) | |
2380 | (set_raw_breakpoint_at) | |
2381 | (delete_raw_breakpoint) | |
2382 | (z_type_supported) | |
2383 | (uninsert_raw_breakpoint) | |
2384 | (reinsert_raw_breakpoint) | |
2385 | (validate_inserted_breakpoint) | |
2386 | * regcache.cc (regcache_read_pc) | |
2387 | (regcache_write_pc) | |
2388 | * remote-utils.cc (putpkt_binary_1) | |
2389 | (input_interrupt) | |
2390 | (getpkt) | |
2391 | (prepare_resume_reply) | |
2392 | * server.cc (handle_general_set) | |
2393 | (handle_detach) | |
2394 | (handle_qxfer_auxv) | |
2395 | (handle_qxfer_exec_file) | |
2396 | (handle_qxfer_libraries_svr4) | |
2397 | (handle_qxfer_osdata) | |
2398 | (handle_qxfer_siginfo) | |
2399 | (handle_qxfer_fdpic) | |
2400 | (handle_query) | |
2401 | (resume) | |
2402 | (handle_v_requests) | |
2403 | (queue_stop_reply_callback) | |
2404 | (captured_main) | |
2405 | * target.cc (prepare_to_access_memory) | |
2406 | (done_accessing_memory) | |
2407 | (read_inferior_memory) | |
2408 | (target_write_memory) | |
2409 | (target_stop_and_wait) | |
2410 | (target_wait) | |
2411 | (target_mourn_inferior) | |
2412 | (target_continue_no_signal) | |
2413 | (target_continue) | |
2414 | (target_supports_multi_process) | |
2415 | (kill_inferior) | |
2416 | * target.h | |
2417 | (target_create_inferior) | |
2418 | (target_post_create_inferior) | |
2419 | (myattach) | |
2420 | (target_supports_fork_events) | |
2421 | (target_supports_vfork_events) | |
2422 | (target_supports_exec_events) | |
2423 | (target_handle_new_gdb_connection) | |
2424 | (detach_inferior) | |
2425 | (mythread_alive) | |
2426 | (fetch_inferior_registers) | |
2427 | (store_inferior_registers) | |
2428 | (join_inferior) | |
2429 | (target_supports_non_stop) | |
2430 | (target_async) | |
2431 | (target_process_qsupported) | |
2432 | (target_supports_catch_syscall) | |
2433 | (target_get_ipa_tdesc_idx) | |
2434 | (target_supports_tracepoints) | |
2435 | (target_supports_fast_tracepoints) | |
2436 | (target_get_min_fast_tracepoint_insn_len) | |
2437 | (target_thread_stopped) | |
2438 | (target_pause_all) | |
2439 | (target_unpause_all) | |
2440 | (target_stabilize_threads) | |
2441 | (target_install_fast_tracepoint_jump_pad) | |
2442 | (target_emit_ops) | |
2443 | (target_supports_disable_randomization) | |
2444 | (target_supports_agent) | |
2445 | (target_enable_btrace) | |
2446 | (target_disable_btrace) | |
2447 | (target_read_btrace) | |
2448 | (target_read_btrace_conf) | |
2449 | (target_supports_range_stepping) | |
2450 | (target_supports_stopped_by_sw_breakpoint) | |
2451 | (target_stopped_by_sw_breakpoint) | |
2452 | (target_supports_stopped_by_hw_breakpoint) | |
2453 | (target_supports_hardware_single_step) | |
2454 | (target_stopped_by_hw_breakpoint) | |
2455 | (target_breakpoint_kind_from_pc) | |
2456 | (target_breakpoint_kind_from_current_state) | |
2457 | (target_supports_software_single_step) | |
2458 | (target_core_of_thread) | |
2459 | (target_thread_name) | |
2460 | (target_thread_handle) | |
2461 | * win32-low.cc (do_initial_child_stuff) | |
2462 | ||
2463 | Rename target op default definitions listed below. | |
2464 | ||
2465 | * target.cc (process_target::post_create_inferior): Rename as ... | |
2466 | (process_stratum_target::post_create_inferior): ... this. | |
2467 | (process_target::prepare_to_access_memory): Rename as ... | |
2468 | (process_stratum_target::prepare_to_access_memory): ... this. | |
2469 | (process_target::done_accessing_memory): Rename as ... | |
2470 | (process_stratum_target::done_accessing_memory): ... this. | |
2471 | (process_target::look_up_symbols): Rename as ... | |
2472 | (process_stratum_target::look_up_symbols): ... this. | |
2473 | (process_target::supports_read_auxv): Rename as ... | |
2474 | (process_stratum_target::supports_read_auxv): ... this. | |
2475 | (process_target::read_auxv): Rename as ... | |
2476 | (process_stratum_target::read_auxv): ... this. | |
2477 | (process_target::supports_z_point_type): Rename as ... | |
2478 | (process_stratum_target::supports_z_point_type): ... this. | |
2479 | (process_target::insert_point): Rename as ... | |
2480 | (process_stratum_target::insert_point): ... this. | |
2481 | (process_target::remove_point): Rename as ... | |
2482 | (process_stratum_target::remove_point): ... this. | |
2483 | (process_target::stopped_by_sw_breakpoint): Rename as ... | |
2484 | (process_stratum_target::stopped_by_sw_breakpoint): ... this. | |
2485 | (process_target::supports_stopped_by_sw_breakpoint): Rename as ... | |
2486 | (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this. | |
2487 | (process_target::stopped_by_hw_breakpoint): Rename as ... | |
2488 | (process_stratum_target::stopped_by_hw_breakpoint): ... this. | |
2489 | (process_target::supports_stopped_by_hw_breakpoint): Rename as ... | |
2490 | (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this. | |
2491 | (process_target::supports_hardware_single_step): Rename as ... | |
2492 | (process_stratum_target::supports_hardware_single_step): ... this. | |
2493 | (process_target::stopped_by_watchpoint): Rename as ... | |
2494 | (process_stratum_target::stopped_by_watchpoint): ... this. | |
2495 | (process_target::stopped_data_address): Rename as ... | |
2496 | (process_stratum_target::stopped_data_address): ... this. | |
2497 | (process_target::supports_read_offsets): Rename as ... | |
2498 | (process_stratum_target::supports_read_offsets): ... this. | |
2499 | (process_target::read_offsets): Rename as ... | |
2500 | (process_stratum_target::read_offsets): ... this. | |
2501 | (process_target::supports_get_tls_address): Rename as ... | |
2502 | (process_stratum_target::supports_get_tls_address): ... this. | |
2503 | (process_target::get_tls_address): Rename as ... | |
2504 | (process_stratum_target::get_tls_address): ... this. | |
2505 | (process_target::hostio_last_error): Rename as ... | |
2506 | (process_stratum_target::hostio_last_error): ... this. | |
2507 | (process_target::supports_qxfer_osdata): Rename as ... | |
2508 | (process_stratum_target::supports_qxfer_osdata): ... this. | |
2509 | (process_target::qxfer_osdata): Rename as ... | |
2510 | (process_stratum_target::qxfer_osdata): ... this. | |
2511 | (process_target::supports_qxfer_siginfo): Rename as ... | |
2512 | (process_stratum_target::supports_qxfer_siginfo): ... this. | |
2513 | (process_target::qxfer_siginfo): Rename as ... | |
2514 | (process_stratum_target::qxfer_siginfo): ... this. | |
2515 | (process_target::supports_non_stop): Rename as ... | |
2516 | (process_stratum_target::supports_non_stop): ... this. | |
2517 | (process_target::async): Rename as ... | |
2518 | (process_stratum_target::async): ... this. | |
2519 | (process_target::start_non_stop): Rename as ... | |
2520 | (process_stratum_target::start_non_stop): ... this. | |
2521 | (process_target::supports_multi_process): Rename as ... | |
2522 | (process_stratum_target::supports_multi_process): ... this. | |
2523 | (process_target::supports_fork_events): Rename as ... | |
2524 | (process_stratum_target::supports_fork_events): ... this. | |
2525 | (process_target::supports_vfork_events): Rename as ... | |
2526 | (process_stratum_target::supports_vfork_events): ... this. | |
2527 | (process_target::supports_exec_events): Rename as ... | |
2528 | (process_stratum_target::supports_exec_events): ... this. | |
2529 | (process_target::handle_new_gdb_connection): Rename as ... | |
2530 | (process_stratum_target::handle_new_gdb_connection): ... this. | |
2531 | (process_target::handle_monitor_command): Rename as ... | |
2532 | (process_stratum_target::handle_monitor_command): ... this. | |
2533 | (process_target::core_of_thread): Rename as ... | |
2534 | (process_stratum_target::core_of_thread): ... this. | |
2535 | (process_target::supports_read_loadmap): Rename as ... | |
2536 | (process_stratum_target::supports_read_loadmap): ... this. | |
2537 | (process_target::read_loadmap): Rename as ... | |
2538 | (process_stratum_target::read_loadmap): ... this. | |
2539 | (process_target::process_qsupported): Rename as ... | |
2540 | (process_stratum_target::process_qsupported): ... this. | |
2541 | (process_target::supports_tracepoints): Rename as ... | |
2542 | (process_stratum_target::supports_tracepoints): ... this. | |
2543 | (process_target::read_pc): Rename as ... | |
2544 | (process_stratum_target::read_pc): ... this. | |
2545 | (process_target::write_pc): Rename as ... | |
2546 | (process_stratum_target::write_pc): ... this. | |
2547 | (process_target::supports_thread_stopped): Rename as ... | |
2548 | (process_stratum_target::supports_thread_stopped): ... this. | |
2549 | (process_target::thread_stopped): Rename as ... | |
2550 | (process_stratum_target::thread_stopped): ... this. | |
2551 | (process_target::supports_get_tib_address): Rename as ... | |
2552 | (process_stratum_target::supports_get_tib_address): ... this. | |
2553 | (process_target::get_tib_address): Rename as ... | |
2554 | (process_stratum_target::get_tib_address): ... this. | |
2555 | (process_target::pause_all): Rename as ... | |
2556 | (process_stratum_target::pause_all): ... this. | |
2557 | (process_target::unpause_all): Rename as ... | |
2558 | (process_stratum_target::unpause_all): ... this. | |
2559 | (process_target::stabilize_threads): Rename as ... | |
2560 | (process_stratum_target::stabilize_threads): ... this. | |
2561 | (process_target::supports_fast_tracepoints): Rename as ... | |
2562 | (process_stratum_target::supports_fast_tracepoints): ... this. | |
2563 | (process_target::get_min_fast_tracepoint_insn_len): Rename as ... | |
2564 | (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this. | |
2565 | (process_target::emit_ops): Rename as ... | |
2566 | (process_stratum_target::emit_ops): ... this. | |
2567 | (process_target::supports_disable_randomization): Rename as ... | |
2568 | (process_stratum_target::supports_disable_randomization): ... this. | |
2569 | (process_target::supports_qxfer_libraries_svr4): Rename as ... | |
2570 | (process_stratum_target::supports_qxfer_libraries_svr4): ... this. | |
2571 | (process_target::qxfer_libraries_svr4): Rename as ... | |
2572 | (process_stratum_target::qxfer_libraries_svr4): ... this. | |
2573 | (process_target::supports_agent): Rename as ... | |
2574 | (process_stratum_target::supports_agent): ... this. | |
2575 | (process_target::enable_btrace): Rename as ... | |
2576 | (process_stratum_target::enable_btrace): ... this. | |
2577 | (process_target::disable_btrace): Rename as ... | |
2578 | (process_stratum_target::disable_btrace): ... this. | |
2579 | (process_target::read_btrace): Rename as ... | |
2580 | (process_stratum_target::read_btrace): ... this. | |
2581 | (process_target::read_btrace_conf): Rename as ... | |
2582 | (process_stratum_target::read_btrace_conf): ... this. | |
2583 | (process_target::supports_range_stepping): Rename as ... | |
2584 | (process_stratum_target::supports_range_stepping): ... this. | |
2585 | (process_target::supports_pid_to_exec_file): Rename as ... | |
2586 | (process_stratum_target::supports_pid_to_exec_file): ... this. | |
2587 | (process_target::pid_to_exec_file): Rename as ... | |
2588 | (process_stratum_target::pid_to_exec_file): ... this. | |
2589 | (process_target::supports_multifs): Rename as ... | |
2590 | (process_stratum_target::supports_multifs): ... this. | |
2591 | (process_target::multifs_open): Rename as ... | |
2592 | (process_stratum_target::multifs_open): ... this. | |
2593 | (process_target::multifs_unlink): Rename as ... | |
2594 | (process_stratum_target::multifs_unlink): ... this. | |
2595 | (process_target::multifs_readlink): Rename as ... | |
2596 | (process_stratum_target::multifs_readlink): ... this. | |
2597 | (process_target::breakpoint_kind_from_pc): Rename as ... | |
2598 | (process_stratum_target::breakpoint_kind_from_pc): ... this. | |
2599 | (process_target::breakpoint_kind_from_current_state): Rename as ... | |
2600 | (process_stratum_target::breakpoint_kind_from_current_state): ... this. | |
2601 | (process_target::thread_name): Rename as ... | |
2602 | (process_stratum_target::thread_name): ... this. | |
2603 | (process_target::thread_handle): Rename as ... | |
2604 | (process_stratum_target::thread_handle): ... this. | |
2605 | (process_target::supports_software_single_step): Rename as ... | |
2606 | (process_stratum_target::supports_software_single_step): ... this. | |
2607 | (process_target::supports_catch_syscall): Rename as ... | |
2608 | (process_stratum_target::supports_catch_syscall): ... this. | |
2609 | (process_target::get_ipa_tdesc_idx): Rename as ... | |
2610 | (process_stratum_target::get_ipa_tdesc_idx): ... this. | |
2611 | ||
478f9adf PA |
2612 | 2020-02-20 Pedro Alves <palves@redhat.com> |
2613 | ||
2614 | * target.cc (set_target_ops): Simply copy the given target pointer | |
2615 | instead of creating a copy of the pointed object. | |
2616 | ||
d633e831 TBA |
2617 | 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
2618 | ||
2619 | Turn process_stratum_target's get_ipa_tdesc_idx op into a method | |
2620 | of process_target. | |
2621 | ||
2622 | * target.h (struct process_stratum_target): Remove the target op. | |
2623 | (class process_target): Add the target op. | |
2624 | (target_get_ipa_tdesc_idx): Update the macro. | |
2625 | * target.cc (process_target::get_ipa_tdesc_idx): Define. | |
2626 | ||
2627 | Update the derived classes and callers below. | |
2628 | ||
2629 | * linux-low.cc (linux_target_ops): Update. | |
2630 | (linux_get_ipa_tdesc_idx): Turn into ... | |
2631 | (linux_process_target::get_ipa_tdesc_idx): ... this. | |
2632 | * linux-low.h (class linux_process_target): Update. | |
2633 | * lynx-low.cc (lynx_target_ops): Update. | |
2634 | * nto-low.cc (nto_target_ops): Update. | |
2635 | * win32-low.cc (win32_target_ops): Update. | |
2636 | ||
bc8d3ae4 TBA |
2637 | 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
2638 | ||
2639 | Turn process_stratum_target's supports_catch_syscall op into a | |
2640 | method of process_target. | |
2641 | ||
2642 | * target.h (struct process_stratum_target): Remove the target op. | |
2643 | (class process_target): Add the target op. | |
2644 | (target_supports_catch_syscall): Update the macro. | |
2645 | * target.cc (process_target::supports_catch_syscall): Define. | |
2646 | ||
2647 | Update the derived classes and callers below. | |
2648 | ||
2649 | * linux-low.cc (linux_target_ops): Update. | |
2650 | (linux_supports_catch_syscall): Turn into ... | |
2651 | (linux_process_target::supports_catch_syscall): ... this. | |
2652 | * linux-low.h (class linux_process_target): Update. | |
2653 | * lynx-low.cc (lynx_target_ops): Update. | |
2654 | * nto-low.cc (nto_target_ops): Update. | |
2655 | * win32-low.cc (win32_target_ops): Update. | |
2656 | ||
5303a34f TBA |
2657 | 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
2658 | ||
2659 | Turn process_stratum_target's supports_software_single_step op | |
2660 | into a method of process_target. | |
2661 | ||
2662 | * target.h (struct process_stratum_target): Remove the target op. | |
2663 | (class process_target): Add the target op. | |
2664 | (target_supports_software_single_step): Update the macro. | |
2665 | * target.cc (process_target::supports_software_single_step): Define. | |
2666 | ||
2667 | Update the derived classes and callers below. | |
2668 | ||
2669 | * linux-low.cc (linux_target_ops): Update. | |
2670 | (linux_supports_software_single_step): Turn into ... | |
2671 | (linux_process_target::supports_software_single_step): ... this. | |
2672 | * linux-low.h (class linux_process_target): Update. | |
2673 | * lynx-low.cc (lynx_target_ops): Update. | |
2674 | * nto-low.cc (nto_target_ops): Update. | |
2675 | * win32-low.cc (win32_target_ops): Update. | |
2676 | ||
7f63b89b TBA |
2677 | 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
2678 | ||
2679 | Turn process_stratum_target's thread_name and thread_handle ops | |
2680 | into methods of process_target. | |
2681 | ||
2682 | * target.h (struct process_stratum_target): Remove the target ops. | |
2683 | (class process_target): Add the target ops. | |
2684 | (target_thread_name): Update the macro. | |
2685 | (target_thread_handle): Update the macro. | |
2686 | * target.cc (process_target::thread_name): Define. | |
2687 | (process_target::thread_handle): Define. | |
2688 | ||
2689 | Update the derived classes and callers below. | |
2690 | ||
2691 | * linux-low.cc (linux_target_ops): Update. | |
2692 | (linux_process_target::thread_name): Define. | |
2693 | (linux_process_target::thread_handle): Define. | |
2694 | * linux-low.h (class linux_process_target): Update. | |
2695 | * lynx-low.cc (lynx_target_ops): Update. | |
2696 | * nto-low.cc (nto_target_ops): Update. | |
2697 | * win32-low.cc (win32_target_ops): Update. | |
2698 | ||
d367006f TBA |
2699 | 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
2700 | ||
2701 | Turn process_stratum_target's breakpoint_kind_from_pc, | |
2702 | sw_breakpoint_from_kind, and breakpoint_kind_from_current_state | |
2703 | ops into methods of process_target. | |
2704 | ||
2705 | * target.h (struct process_stratum_target): Remove the target op. | |
2706 | (class process_target): Add the target op. | |
2707 | (target_breakpoint_kind_from_pc): Update the macro. | |
2708 | (target_breakpoint_kind_from_current_state): Update the macro. | |
2709 | (default_breakpoint_kind_from_pc): Remove declaration. | |
2710 | * target.cc (default_breakpoint_kind_from_pc): Turn into ... | |
2711 | (process_target::breakpoint_kind_from_pc): ... this. | |
2712 | (process_target::breakpoint_kind_from_current_state): Define. | |
2713 | ||
2714 | Update the derived classes and callers below. | |
2715 | ||
2716 | * mem-break.cc (bp_size): Update. | |
2717 | (bp_opcode): Update. | |
2718 | * linux-low.cc (linux_target_ops): Update. | |
2719 | (linux_wait_1): Update. | |
2720 | (linux_breakpoint_kind_from_pc): Turn into ... | |
2721 | (linux_process_target::breakpoint_kind_from_pc): ... this. | |
2722 | (linux_sw_breakpoint_from_kind): Turn into ... | |
2723 | (linux_process_target::sw_breakpoint_from_kind): ... this. | |
2724 | (linux_breakpoint_kind_from_current_state): Turn into ... | |
2725 | (linux_process_target::breakpoint_kind_from_current_state): ... this. | |
2726 | * linux-low.h (class linux_process_target): Update. | |
2727 | * lynx-low.cc (lynx_target_ops): Update. | |
2728 | (lynx_process_target::sw_breakpoint_from_kind): Define. | |
2729 | * lynx-low.h (class lynx_process_target): Update. | |
2730 | * nto-low.cc (nto_target_ops): Update. | |
2731 | (nto_sw_breakpoint_from_kind): Turn into ... | |
2732 | (nto_process_target::sw_breakpoint_from_kind): ... this. | |
2733 | * nto-low.h (class nto_process_target): Update. | |
2734 | * win32-low.cc (win32_target_ops): Update. | |
2735 | (win32_sw_breakpoint_from_kind): Turn into ... | |
2736 | (win32_process_target::sw_breakpoint_from_kind): ... this. | |
2737 | * win32-low.h (class win32_process_target): Update. | |
2738 | ||
c9b7b804 TBA |
2739 | 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
2740 | ||
2741 | Turn process_stratum_target's multifs_open, multifs_readlink, | |
2742 | multifs_unlink ops into methods of process_target. | |
2743 | ||
2744 | * target.h (struct process_stratum_target): Remove the target ops. | |
2745 | (class process_target): Add the target ops. Also add | |
2746 | 'supports_multifs'. | |
2747 | * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and | |
2748 | "sys/stat.h". | |
2749 | (process_target::supports_multifs): Define. | |
2750 | (process_target::multifs_open): Define. | |
2751 | (process_target::multifs_readlink): Define. | |
2752 | (process_target::multifs_unlink): Define. | |
2753 | ||
2754 | Update the derived classes and callers below. | |
2755 | ||
2756 | * hostio.cc (handle_setfs): Update. | |
2757 | (handle_open): Update. | |
2758 | (handle_unlink): Update. | |
2759 | (handle_readlink): Update. | |
2760 | * linux-low.cc (linux_target_ops): Update. | |
2761 | (linux_process_target::supports_multifs): Define. | |
2762 | (linux_process_target::multifs_open): Define. | |
2763 | (linux_process_target::multifs_readlink): Define. | |
2764 | (linux_process_target::multifs_unlink): Define. | |
2765 | * linux-low.h (class linux_process_target): Update. | |
2766 | * lynx-low.cc (lynx_target_ops): Update. | |
2767 | * nto-low.cc (nto_target_ops): Update. | |
2768 | * win32-low.cc (win32_target_ops): Update. | |
2769 | ||
8247b823 TBA |
2770 | 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
2771 | ||
2772 | Turn process_stratum_target's pid_to_exec_file op into a method | |
2773 | of process_target. | |
2774 | ||
2775 | * target.h (struct process_stratum_target): Remove the target op. | |
2776 | (class process_target): Add the target op. Also add | |
2777 | 'supports_pid_to_exec_file'. | |
2778 | * target.cc (process_target::pid_to_exec_file): Define. | |
2779 | (process_target::supports_pid_to_exec_file): Define. | |
2780 | ||
2781 | Update the derived classes and callers below. | |
2782 | ||
2783 | * server.cc (handle_qxfer_exec_file): Update. | |
2784 | (handle_query): Update. | |
2785 | * linux-low.cc (linux_target_ops): Update. | |
2786 | (linux_process_target::supports_pid_to_exec_file): Define. | |
2787 | (linux_process_target::pid_to_exec_file): Define. | |
2788 | * linux-low.h (class linux_process_target): Update. | |
2789 | * lynx-low.cc (lynx_target_ops): Update. | |
2790 | * nto-low.cc (nto_target_ops): Update. | |
2791 | * win32-low.cc (win32_target_ops): Update. | |
2792 | ||
2526e0cd TBA |
2793 | 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
2794 | ||
2795 | Turn process_stratum_target's supports_range_stepping op into a | |
2796 | method of process_target. | |
2797 | ||
2798 | * target.h (struct process_stratum_target): Remove the target op. | |
2799 | (class process_target): Add the target op. | |
2800 | (target_supports_range_stepping): Update the macro. | |
2801 | * target.cc (process_target::supports_range_stepping): Define. | |
2802 | ||
2803 | Update the derived classes and callers below. | |
2804 | ||
2805 | * linux-low.cc (linux_target_ops): Update. | |
2806 | (linux_supports_range_stepping): Turn into ... | |
2807 | (linux_process_target::supports_range_stepping): ... this. | |
2808 | * linux-low.h (class linux_process_target): Update. | |
2809 | * lynx-low.cc (lynx_target_ops): Update. | |
2810 | * nto-low.cc (nto_target_ops): Update. | |
2811 | * win32-low.cc (win32_target_ops): Update. | |
2812 | ||
79597bdd TBA |
2813 | 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
2814 | ||
2815 | Turn process_stratum_target's btrace-related ops (enable_btrace, | |
2816 | disable_btrace, read_btrace, read_btrace_conf) into methods of | |
2817 | process_target. | |
2818 | ||
2819 | * target.h (struct process_stratum_target): Remove the target ops. | |
2820 | (class process_target): Add the target ops. | |
2821 | (target_enable_btrace): Update. | |
2822 | (target_disable_btrace): Update. | |
2823 | (target_read_btrace): Update. | |
2824 | (target_read_btrace_conf): Update. | |
2825 | * target.cc (process_target::enable_btrace): Define. | |
2826 | (process_target::disable_btrace): Define. | |
2827 | (process_target::read_btrace): Define. | |
2828 | (process_target::read_btrace_conf): Define. | |
2829 | ||
2830 | Update the derived classes and callers below. | |
2831 | ||
2832 | * linux-low.cc (linux_target_ops): Update. | |
2833 | (linux_process_target:enable_btrace): Define as a wrapper around | |
2834 | linux_enable_btrace. | |
2835 | (linux_low_disable_btrace): Turn into ... | |
2836 | (linux_process_target::disable_btrace): ... this. | |
2837 | (linux_low_read_btrace): Turn into ... | |
2838 | (linux_process_target::read_btrace): ... this. | |
2839 | (linux_low_btrace_conf): Turn into ... | |
2840 | (linux_process_target::read_btrace_conf): ... this. | |
2841 | * linux-low.h (class linux_process_target): Update. | |
2842 | * lynx-low.cc (lynx_target_ops): Update. | |
2843 | * nto-low.cc (nto_target_ops): Update. | |
2844 | * win32-low.cc (win32_target_ops): Update. | |
2845 | ||
c0245cb9 TBA |
2846 | 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
2847 | ||
2848 | Turn process_stratum_target's supports_agent op into a method of | |
2849 | process_target. | |
2850 | ||
2851 | * target.h (struct process_stratum_target): Remove the target op. | |
2852 | (class process_target): Add the target op. | |
2853 | (target_supports_agent): Update the macro. | |
2854 | * target.cc (process_target::supports_agent): Define. | |
2855 | ||
2856 | Update the derived classes and callers below. | |
2857 | ||
2858 | * linux-low.cc (linux_target_ops): Update. | |
2859 | (linux_supports_agent): Turn into ... | |
2860 | (linux_process_target::supports_agent): ... this. | |
2861 | * linux-low.h (class linux_process_target): Update. | |
2862 | * lynx-low.cc (lynx_target_ops): Update. | |
2863 | * nto-low.cc (nto_target_ops): Update. | |
2864 | * win32-low.cc (win32_target_ops): Update. | |
2865 | ||
974387bb TBA |
2866 | 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
2867 | ||
2868 | Turn process_stratum_target's qxfer_libraries_svr4 op into a | |
2869 | method of process_target. | |
2870 | ||
2871 | * target.h (struct process_stratum_target): Remove the target op. | |
2872 | (class process_target): Add the target op. Also add | |
2873 | 'supports_qxfer_libraries_svr4'. | |
2874 | * target.cc (process_target::qxfer_libraries_svr4): Define. | |
2875 | (process_target::supports_qxfer_libraries_svr4): Define. | |
2876 | ||
2877 | Update the derived classes and callers below. | |
2878 | ||
2879 | * server.cc (handle_qxfer_libraries_svr4): Update. | |
2880 | (handle_query): Update. | |
2881 | * linux-low.cc (linux_target_ops): Update. | |
2882 | (linux_process_target::supports_qxfer_libraries_svr4): Define. | |
2883 | (linux_qxfer_libraries_svr4): Turn into ... | |
2884 | (linux_process_target::qxfer_libraries_svr4): ... this. | |
2885 | * linux-low.h (class linux_process_target): Update. | |
2886 | * lynx-low.cc (lynx_target_ops): Update. | |
2887 | * nto-low.cc (nto_target_ops): Update. | |
2888 | * win32-low.cc (win32_target_ops): Update. | |
2889 | ||
c756403b TBA |
2890 | 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
2891 | ||
2892 | Turn process_stratum_target's supports_disable_randomization op | |
2893 | into a method of process_target. | |
2894 | ||
2895 | * target.h (struct process_stratum_target): Remove the target op. | |
2896 | (class process_target): Add the target op. | |
2897 | (target_supports_disable_randomization): Update the macro. | |
2898 | * target.cc (process_target::supports_disable_randomization): Define. | |
2899 | ||
2900 | Update the derived classes and callers below. | |
2901 | ||
2902 | * linux-low.cc (linux_target_ops): Update. | |
2903 | (linux_supports_disable_randomization): Turn into ... | |
2904 | (linux_process_target::supports_disable_randomization): ... this. | |
2905 | * linux-low.h (class linux_process_target): Update. | |
2906 | * lynx-low.cc (lynx_target_ops): Update. | |
2907 | * nto-low.cc (nto_target_ops): Update. | |
2908 | * win32-low.cc (win32_target_ops): Update. | |
2909 | ||
345dafad TBA |
2910 | 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
2911 | ||
2912 | Turn process_stratum_target's emit_ops op into a method of | |
2913 | process_target. | |
2914 | ||
2915 | * target.h (struct process_stratum_target): Remove the target op. | |
2916 | (class process_target): Add the target op. | |
2917 | (target_emit_ops): Update the macro. | |
2918 | * target.cc (process_target::emit_ops): Define. | |
2919 | ||
2920 | Update the derived classes and callers below. | |
2921 | ||
2922 | * linux-low.cc (linux_target_ops): Update. | |
2923 | (linux_emit_ops): Turn into ... | |
2924 | (linux_process_target::emit_ops): ... this. | |
2925 | * linux-low.h (class linux_process_target): Update. | |
2926 | * lynx-low.cc (lynx_target_ops): Update. | |
2927 | * nto-low.cc (nto_target_ops): Update. | |
2928 | * win32-low.cc (win32_target_ops): Update. | |
2929 | ||
c23c9391 TBA |
2930 | 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
2931 | ||
2932 | Turn process_stratum_target's install_fast_tracepoint_jump_pad | |
2933 | and get_min_fast_tracepoint_insn_len ops into methods of | |
2934 | process_target. | |
2935 | ||
2936 | * target.h (struct process_stratum_target): Remove the target ops. | |
2937 | (class process_target): Add the target ops. Also add | |
2938 | 'supports_fast_tracepoints'. | |
2939 | (target_supports_fast_tracepoints): Update the macro. | |
2940 | (target_get_min_fast_tracepoint_insn_len): Update the macro. | |
2941 | (install_fast_tracepoint_jump_pad): Update and rename the macro | |
2942 | to ... | |
2943 | (target_install_fast_tracepoint_jump_pad): ... this. | |
2944 | * target.cc (process_target::supports_fast_tracepoints): Define. | |
2945 | (process_target::install_fast_tracepoint_jump_pad): Define. | |
2946 | (process_target::get_min_fast_tracepoint_insn_len): Define. | |
2947 | ||
2948 | Update the derived classes and callers below. | |
2949 | ||
2950 | * tracepoint.cc (install_fast_tracepoint): Update. | |
2951 | * linux-low.cc (linux_target_ops): Update. | |
2952 | (linux_process_target::supports_fast_tracepoints): Define. | |
2953 | (linux_install_fast_tracepoint_jump_pad): Turn into ... | |
2954 | (linux_process_target::install_fast_tracepoint_jump_pad): ... this. | |
2955 | (linux_get_min_fast_tracepoint_insn_len): Turn into ... | |
2956 | (linux_process_target::get_min_fast_tracepoint_insn_len): ... this. | |
2957 | * linux-low.h (class linux_process_target): Update. | |
2958 | * lynx-low.cc (lynx_target_ops): Update. | |
2959 | * nto-low.cc (nto_target_ops): Update. | |
2960 | * win32-low.cc (win32_target_ops): Update. | |
2961 | ||
5c9eb2f2 TBA |
2962 | 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
2963 | ||
2964 | Turn process_stratum_target's stabilize_threads op into a | |
2965 | method of process_target. | |
2966 | ||
2967 | * target.h (struct process_stratum_target): Remove the target op. | |
2968 | (class process_target): Add the target op. | |
2969 | (target_stabilize_threads): Update the macro. | |
2970 | * target.cc (process_target::stabilize_threads): Define. | |
2971 | ||
2972 | Update the derived classes and callers below. | |
2973 | ||
2974 | * server.cc (handle_status): Update. | |
2975 | * tracepoint.cc (cmd_qtdp): Update. | |
2976 | (cmd_qtstart): Update. | |
2977 | * linux-low.cc (linux_target_ops): Update. | |
2978 | (linux_stabilize_threads): Turn into ... | |
2979 | (linux_process_target::stabilize_threads): ... this. | |
2980 | (linux_wait_1): Update. | |
2981 | * linux-low.h (class linux_process_target): Update. | |
2982 | * lynx-low.cc (lynx_target_ops): Update. | |
2983 | * nto-low.cc (nto_target_ops): Update. | |
2984 | * win32-low.cc (win32_target_ops): Update. | |
2985 | ||
29e8dc09 TBA |
2986 | 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
2987 | ||
2988 | Turn process_stratum_target's pause_all and unpause_all ops | |
2989 | into methods of process_target. | |
2990 | ||
2991 | * target.h (struct process_stratum_target): Remove the target ops. | |
2992 | (class process_target): Add the target ops. | |
2993 | (pause_all): Update the macro and rename to... | |
2994 | (target_pause_all): ... this. | |
2995 | (unpause_all): Update the macro and rename to... | |
2996 | (target_unpause_all): ... this. | |
2997 | * target.cc (process_target::pause_all): Define. | |
2998 | (process_target::unpause_all): Define. | |
2999 | ||
3000 | Update the derived classes and callers below. | |
3001 | ||
3002 | * server.cc (handle_status): Update. | |
3003 | * tracepoint.cc (clear_installed_tracepoints): Update. | |
3004 | (cmd_qtdp): Update. | |
3005 | (cmd_qtstart): Update. | |
3006 | (stop_tracing): Update. | |
3007 | (cmd_qtstatus): Update. | |
3008 | (upload_fast_traceframes): Update. | |
3009 | (run_inferior_command): Update. | |
3010 | * linux-low.cc (linux_target_ops): Update. | |
3011 | (linux_pause_all): Turn into ... | |
3012 | (linux_process_target::pause_all): ... this. | |
3013 | (linux_unpause_all): Turn into ... | |
3014 | (linux_process_target::unpause_all): ... this. | |
3015 | (linux_process_target::prepare_to_access_memory): Update. | |
3016 | (linux_process_target::done_accessing_memory): Update. | |
3017 | * linux-low.h (class linux_process_target): Update. | |
3018 | * lynx-low.cc (lynx_target_ops): Update. | |
3019 | * nto-low.cc (nto_target_ops): Update. | |
3020 | * win32-low.cc (win32_target_ops): Update. | |
3021 | ||
4e2e869c TBA |
3022 | 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
3023 | ||
3024 | Turn process_stratum_target's get_tib_address op into a method of | |
3025 | process_target. | |
3026 | ||
3027 | * target.h (struct process_stratum_target): Remove the target op. | |
3028 | (class process_target): Add the target op. Also add | |
3029 | 'supports_get_tib_address'. | |
3030 | * target.cc (process_target::get_tib_address): Define. | |
3031 | (process_target::supports_get_tib_address): Define. | |
3032 | ||
3033 | Update the derived classes and callers below. | |
3034 | ||
3035 | * server.cc (handle_query): Update. | |
3036 | * linux-low.cc (win32_target_ops): Update. | |
3037 | * lynx-low.cc (lynx_target_ops): Update. | |
3038 | * nto-low.cc (nto_target_ops): Update. | |
3039 | * win32-low.cc (win32_target_ops): Update. | |
3040 | (win32_process_target::supports_get_tib_address): Define. | |
3041 | (win32_get_tib_address): Turn into ... | |
3042 | (win32_process_target::get_tib_address): ... this. | |
3043 | * win32-low.h (class win32_process_target): Update. | |
3044 | ||
68119632 TBA |
3045 | 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
3046 | ||
3047 | Turn process_stratum_target's thread_stopped op into a method of | |
3048 | process_target. | |
3049 | ||
3050 | * target.h (struct process_stratum_target): Remove the target op. | |
3051 | (class process_target): Add the target op. Also add | |
3052 | 'supports_thread_stopped'. | |
3053 | (target_thread_stopped): Update the macro. | |
3054 | * target.cc (process_target::thread_stopped): Define. | |
3055 | (process_target::supports_thread_stopped): Define. | |
3056 | (prepare_to_access_memory): Update. | |
3057 | ||
3058 | Update the derived classes and callers below. | |
3059 | ||
3060 | * server.cc (queue_stop_reply_callback): Update. | |
3061 | * linux-low.cc (linux_target_ops): Update. | |
3062 | (linux_process_target::supports_thread_stopped): Define. | |
3063 | (linux_thread_stopped): Turn into ... | |
3064 | (linux_process_target::thread_stopped): ... this. | |
3065 | * linux-low.h (class linux_process_target): Update. | |
3066 | * lynx-low.cc (lynx_target_ops): Update. | |
3067 | * nto-low.cc (nto_target_ops): Update. | |
3068 | * win32-low.cc (win32_target_ops): Update. | |
3069 | ||
770d8f6a TBA |
3070 | 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
3071 | ||
3072 | Turn process_stratum_target's read_pc and write_pc ops into | |
3073 | methods of process_target. | |
3074 | ||
3075 | * target.h (struct process_stratum_target): Remove the target ops. | |
3076 | (class process_target): Add the target ops. | |
3077 | * target.cc (process_target::read_pc): Define. | |
3078 | (process_target::write_pc): Define. | |
3079 | ||
3080 | Update the derived classes and callers below. | |
3081 | ||
3082 | * regcache.cc (regcache_read_pc): Update. | |
3083 | (regcache_write_pc): Update. | |
3084 | * linux-low.cc (linux_target_ops): Update. | |
3085 | (linux_read_pc): Turn into ... | |
3086 | (linux_process_target::read_pc): ... this. | |
3087 | (linux_write_pc): Turn into ... | |
3088 | (linux_process_target::write_pc): ... this. | |
3089 | * linux-low.h (class linux_process_target): Update. | |
3090 | * lynx-low.cc (lynx_target_ops): Update. | |
3091 | * nto-low.cc (nto_target_ops): Update. | |
3092 | * win32-low.cc (win32_target_ops): Update. | |
3093 | ||
290732bf TBA |
3094 | 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
3095 | ||
3096 | Turn process_stratum_target's supports_tracepoints op into a | |
3097 | method of process_target. | |
3098 | ||
3099 | * target.h (struct process_stratum_target): Remove the target op. | |
3100 | (class process_target): Add the target op. | |
3101 | (target_supports_tracepoints): Update the macro. | |
3102 | * target.cc (process_target::supports_tracepoints): Define. | |
3103 | ||
3104 | Update the derived classes and callers below. | |
3105 | ||
3106 | * linux-low.cc (linux_target_ops): Update. | |
3107 | (linux_supports_tracepoints): Turn into ... | |
3108 | (linux_process_target::supports_tracepoints): ... this. | |
3109 | * linux-low.h (class linux_process_target): Update. | |
3110 | * lynx-low.cc (lynx_target_ops): Update. | |
3111 | * nto-low.cc (nto_target_ops): Update. | |
3112 | * win32-low.cc (win32_target_ops): Update. | |
3113 | ||
0df28b1b TBA |
3114 | 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
3115 | ||
3116 | Turn process_stratum_target's process_qsupported op into a method | |
3117 | of process_target. | |
3118 | ||
3119 | * target.h (struct process_stratum_target): Remove the target op. | |
3120 | (class process_target): Add the target op. | |
3121 | (target_process_qsupported): Update the macro. | |
3122 | * target.cc (process_target::process_qsupported): Define. | |
3123 | ||
3124 | Update the derived classes and callers below. | |
3125 | ||
3126 | * linux-low.cc (linux_target_ops): Update. | |
3127 | (linux_process_qsupported): Turn into ... | |
3128 | (linux_process_target::process_qsupported): ... this. | |
3129 | * linux-low.h (class linux_process_target): Update. | |
3130 | * lynx-low.cc (lynx_target_ops): Update. | |
3131 | * nto-low.cc (nto_target_ops): Update. | |
3132 | * win32-low.cc (win32_target_ops): Update. | |
3133 | ||
9da41fda TBA |
3134 | 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
3135 | ||
3136 | Turn process_stratum_target's read_loadmap op into a method of | |
3137 | process_target. | |
3138 | ||
3139 | * target.h (struct process_stratum_target): Remove the target op. | |
3140 | (class process_target): Add the target op. Also add | |
3141 | 'supports_read_loadmap'. | |
3142 | * target.cc (process_target::read_loadmap): Define. | |
3143 | (process_target::supports_read_loadmap): Define. | |
3144 | ||
3145 | Update the derived classes and callers below. | |
3146 | ||
3147 | * server.cc (handle_qxfer_fdpic): Update. | |
3148 | (handle_query): Update. | |
3149 | * linux-low.cc (linux_target_ops): Update. | |
3150 | (linux_process_target::supports_read_loadmap): Define. | |
3151 | (linux_read_loadmap): Turn into ... | |
3152 | (linux_process_target::read_loadmap): ... this. | |
3153 | * linux-low.h (class linux_process_target): Update. | |
3154 | * lynx-low.cc (lynx_target_ops): Update. | |
3155 | * nto-low.cc (nto_target_ops): Update. | |
3156 | * win32-low.cc (win32_target_ops): Update. | |
3157 | ||
95a45fc1 TBA |
3158 | 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
3159 | ||
3160 | Turn process_stratum_target's core_of_thread op into a method of | |
3161 | process_target. | |
3162 | ||
3163 | * target.h (struct process_stratum_target): Remove the target op. | |
3164 | (class process_target): Add the target op. | |
3165 | (target_core_of_thread): Update the macro. | |
3166 | * target.cc (process_target::core_of_thread): Define. | |
3167 | ||
3168 | Update the derived classes and callers below. | |
3169 | ||
3170 | * linux-low.cc (linux_target_ops): Update. | |
3171 | (linux_process_target::core_of_thread): Define. | |
3172 | * linux-low.h (class linux_process_target): Update. | |
3173 | * lynx-low.cc (lynx_target_ops): Update. | |
3174 | * nto-low.cc (nto_target_ops): Update. | |
3175 | * win32-low.cc (win32_target_ops): Update. | |
3176 | ||
55cf3021 TBA |
3177 | 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
3178 | ||
3179 | Turn process_stratum_target's handle_monitor_command op into a | |
3180 | method of process_target. | |
3181 | ||
3182 | * target.h (struct process_stratum_target): Remove the target op. | |
3183 | (class process_target): Add the target op. | |
3184 | (target_handle_monitor_command): Update the macro. | |
3185 | * target.cc (process_target::handle_monitor_command): Define. | |
3186 | ||
3187 | Update the derived classes and callers below. | |
3188 | ||
3189 | * server.cc (handle_query): Update. | |
3190 | * linux-low.cc (linux_target_ops): Update. | |
3191 | (linux_process_target::handle_monitor_command): Define. | |
3192 | * linux-low.h (class linux_process_target): Update. | |
3193 | * lynx-low.cc (lynx_target_ops): Update. | |
3194 | * nto-low.cc (nto_target_ops): Update. | |
3195 | * win32-low.cc (win32_target_ops): Update. | |
3196 | ||
fb00dfce TBA |
3197 | 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
3198 | ||
3199 | Turn process_stratum_target's handle_new_gdb_connection op into a | |
3200 | method of process_target. | |
3201 | ||
3202 | * target.h (struct process_stratum_target): Remove the target op. | |
3203 | (class process_target): Add the target op. | |
3204 | (target_handle_new_gdb_connection): Update the macro. | |
3205 | * target.cc (process_target::handle_new_gdb_connection): Define. | |
3206 | ||
3207 | Update the derived classes and callers below. | |
3208 | ||
3209 | * linux-low.cc (linux_target_ops): Update. | |
3210 | (linux_handle_new_gdb_connection): Turn into ... | |
3211 | (linux_process_target::handle_new_gdb_connection): ... this. | |
3212 | * linux-low.h (class linux_process_target): Update. | |
3213 | * lynx-low.cc (lynx_target_ops): Update. | |
3214 | * nto-low.cc (nto_target_ops): Update. | |
3215 | * win32-low.cc (win32_target_ops): Update. | |
3216 | ||
9690a72a TBA |
3217 | 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
3218 | ||
3219 | Turn process_stratum_target's supports_fork_events, | |
3220 | supports_vfork_events, and supports_exec_events ops into methods | |
3221 | of process_target. | |
3222 | ||
3223 | * target.h (struct process_stratum_target): Remove the target ops. | |
3224 | (class process_target): Add the target ops. | |
3225 | (target_supports_fork_events): Update the macro. | |
3226 | (target_supports_vfork_events): Update the macro. | |
3227 | (target_supports_exec_events): Update the macro. | |
3228 | * target.cc (process_target::supports_fork_events): Define. | |
3229 | (process_target::supports_vfork_events): Define. | |
3230 | (process_target::supports_exec_events): Define. | |
3231 | ||
3232 | Update the derived classes and callers below. | |
3233 | ||
3234 | * linux-low.cc (linux_target_ops): Update. | |
3235 | (linux_supports_fork_events): Turn into ... | |
3236 | (linux_process_target::supports_fork_events): ... this. | |
3237 | (linux_supports_vfork_events): Turn into ... | |
3238 | (linux_process_target::supports_vfork_events): ... this. | |
3239 | (linux_supports_exec_events): Turn into ... | |
3240 | (linux_process_target::supports_exec_events): ... this. | |
3241 | * linux-low.h (class linux_process_target): Update. | |
3242 | * lynx-low.cc (lynx_target_ops): Update. | |
3243 | * nto-low.cc (nto_target_ops): Update. | |
3244 | * win32-low.cc (win32_target_ops): Update. | |
3245 | ||
652aef77 TBA |
3246 | 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
3247 | ||
3248 | Turn process_stratum_target's supports_multi_process op into a | |
3249 | method of process_target. | |
3250 | ||
3251 | * target.h (struct process_stratum_target): Remove the target op. | |
3252 | (class process_target): Add the target op. | |
3253 | * target.cc (process_target::supports_multi_process): Define. | |
3254 | (target_supports_multi_process): Update. | |
3255 | ||
3256 | Update the derived classes and callers below. | |
3257 | ||
3258 | * linux-low.cc (linux_target_ops): Update. | |
3259 | (linux_supports_multi_process): Turn into ... | |
3260 | (linux_process_target::supports_multi_process): ... this. | |
3261 | * linux-low.h (class linux_process_target): Update. | |
3262 | * lynx-low.cc (lynx_target_ops): Update. | |
3263 | * nto-low.cc (nto_target_ops): Update. | |
3264 | * win32-low.cc (win32_target_ops): Update. | |
3265 | ||
0dc587d4 TBA |
3266 | 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
3267 | ||
3268 | Turn process_stratum_target's supports_non_stop, async, and | |
3269 | start_non_stop ops into methods of process_target. | |
3270 | ||
3271 | * target.h (struct process_stratum_target): Remove the target ops. | |
3272 | (class process_target): Add the target ops. | |
3273 | (target_supports_non_stop): Update the macro. | |
3274 | (target_async): Update the macro. | |
3275 | (start_non_stop): Remove declaration. | |
3276 | * target.cc (process_target::supports_non_stop): Define. | |
3277 | (process_target::async): Define. | |
3278 | (process_target::start_non_stop): Define. | |
3279 | (start_non_stop): Remove. | |
3280 | ||
3281 | Update the derived classes and callers below. | |
3282 | ||
3283 | * server.cc (handle_qxfer_siginfo): Update. | |
3284 | (handle_query): Update. | |
3285 | * linux-low.cc (linux_target_ops): Update. | |
3286 | (linux_supports_non_stop): Turn into ... | |
3287 | (linux_process_target::supports_non_stop): ... this. | |
3288 | (linux_async): Turn into ... | |
3289 | (linux_process_target::async): ... this. | |
3290 | (linux_start_non_stop): Turn into ... | |
3291 | (linux_process_target::start_non_stop): ... this. | |
3292 | * linux-low.h (class linux_process_target): Update. | |
3293 | * lynx-low.cc (lynx_target_ops): Update. | |
3294 | * nto-low.cc (nto_target_ops): Update. | |
3295 | (nto_supports_non_stop): Remove; rely on the default behavior | |
3296 | instead. | |
3297 | * win32-low.cc (win32_target_ops): Update. | |
3298 | ||
d7abedf7 TBA |
3299 | 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
3300 | ||
3301 | Turn process_stratum_target's qxfer_siginfo op into a method of | |
3302 | process_target. | |
3303 | ||
3304 | * target.h (struct process_stratum_target): Remove the target op. | |
3305 | (class process_target): Add the target op. Also add | |
3306 | 'supports_qxfer_siginfo'. | |
3307 | * target.cc (process_target::qxfer_siginfo): Define. | |
3308 | (process_target::supports_qxfer_siginfo): Define. | |
3309 | ||
3310 | Update the derived classes and callers below. | |
3311 | ||
3312 | * server.cc (handle_qxfer_siginfo): Update. | |
3313 | (handle_query): Update. | |
3314 | * linux-low.cc (linux_target_ops): Update. | |
3315 | (linux_process_target::supports_qxfer_siginfo): Define. | |
3316 | (linux_xfer_siginfo): Turn into ... | |
3317 | (linux_process_target::qxfer_siginfo): ... this. | |
3318 | * linux-low.h (class linux_process_target): Update. | |
3319 | * lynx-low.cc (lynx_target_ops): Update. | |
3320 | * nto-low.cc (nto_target_ops): Update. | |
3321 | * win32-low.cc (win32_target_ops): Update. | |
3322 | ||
2d0795ee TBA |
3323 | 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
3324 | ||
3325 | Turn process_stratum_target's qxfer_osdata op into a method of | |
3326 | process_target. | |
3327 | ||
3328 | * target.h (struct process_stratum_target): Remove the target op. | |
3329 | (class process_target): Add the target op. Also add | |
3330 | 'supports_qxfer_osdata'. | |
3331 | * target.cc (process_target::qxfer_osdata): Define. | |
3332 | (process_target::supports_qxfer_osdata): Define. | |
3333 | ||
3334 | Update the derived classes and callers below. | |
3335 | ||
3336 | * server.cc (handle_qxfer_osdata): Update. | |
3337 | (handle_query): Update. | |
3338 | * linux-low.cc (linux_target_ops): Update. | |
3339 | (linux_process_target::supports_qxfer_osdata): Define. | |
3340 | (linux_qxfer_osdata): Turn into ... | |
3341 | (linux_process_target::qxfer_osdata): ... this. | |
3342 | * linux-low.h (class linux_process_target): Update. | |
3343 | * lynx-low.cc (lynx_target_ops): Update. | |
3344 | * nto-low.cc (nto_target_ops): Update. | |
3345 | * win32-low.cc (win32_target_ops): Update. | |
3346 | ||
ea06bbaa TBA |
3347 | 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
3348 | ||
3349 | Turn process_stratum_target's hostio_last_error op into a | |
3350 | method of process_target. | |
3351 | ||
3352 | * target.h (struct process_stratum_target): Remove the target op. | |
3353 | (class process_target): Add the target op. | |
3354 | * target.cc: Add "hostio.h" to includes. | |
3355 | (process_target::hostio_last_error): Define. | |
3356 | ||
3357 | Update the derived classes and callers below. | |
3358 | ||
3359 | * hostio.cc (hostio_error): Update. | |
3360 | * linux-low.cc: Remove "hostio.h" from includes. | |
3361 | (linux_target_ops): Update. | |
3362 | * lynx-low.cc (lynx_target_ops): Update. | |
3363 | * nto-low.cc (nto_target_ops): Update. | |
3364 | * win32-low.h (class win32_process_target): Update. | |
3365 | * win32-low.cc (win32_target_ops): Update. | |
3366 | (wince_hostio_last_error): Turn into ... | |
3367 | (win32_process_target::hostio_last_error): ... this. | |
3368 | ||
6e3fd7e9 TBA |
3369 | 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
3370 | ||
3371 | Turn process_stratum_target's get_tls_address op into a method of | |
3372 | process_target. | |
3373 | ||
3374 | * target.h (struct process_stratum_target): Remove the target op. | |
3375 | (class process_target): Add the target op. Also add | |
3376 | 'supports_get_tls_address'. | |
3377 | * target.cc (process_target::get_tls_address): Define. | |
3378 | (process_target::supports_get_tls_address): Define. | |
3379 | ||
3380 | Update the derived classes and callers below. | |
3381 | ||
3382 | * server.cc (handle_query): Update. | |
3383 | * linux-low.cc (linux_target_ops): Update. | |
3384 | (linux_process_target::supports_get_tls_address): Define. | |
3385 | (linux_process_target::get_tls_address): Define. | |
3386 | * linux-low.h (class linux_process_target): Update. | |
3387 | * lynx-low.cc (lynx_target_ops): Update. | |
3388 | * nto-low.cc (nto_target_ops): Update. | |
3389 | * win32-low.cc (win32_target_ops): Update. | |
3390 | ||
5203ae1e TBA |
3391 | 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
3392 | ||
3393 | Turn process_stratum_target's read_offsets op into a method of | |
3394 | process_target. | |
3395 | ||
3396 | * target.h (struct process_stratum_target): Remove the target op. | |
3397 | (class process_target): Add the target op. Also add | |
3398 | 'supports_read_offsets'. | |
3399 | * target.cc (process_target::read_offsets): Define. | |
3400 | (process_target::supports_read_offsets): Define. | |
3401 | ||
3402 | Update the derived classes and callers below. | |
3403 | ||
3404 | * server.cc (handle_query): Update. | |
3405 | * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive. | |
3406 | (linux_target_ops): Update. | |
3407 | (linux_process_target::supports_read_offsets): Define. | |
3408 | (linux_read_offsets): Turn into ... | |
3409 | (linux_process_target::read_offsets): ... this. | |
3410 | * linux-low.h (class linux_process_target): Update. | |
3411 | * lynx-low.cc (lynx_target_ops): Update. | |
3412 | * nto-low.cc (nto_target_ops): Update. | |
3413 | * win32-low.cc (win32_target_ops): Update. | |
3414 | ||
6eeb5c55 TBA |
3415 | 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
3416 | ||
3417 | Turn process_stratum_target's stopped_by_watchpoint and | |
3418 | stopped_data_address ops into methods of process_target. | |
3419 | ||
3420 | * target.h (struct process_stratum_target): Remove the target ops. | |
3421 | (class process_target): Add the target ops. | |
3422 | * target.cc (process_target::stopped_by_watchpoint): Define. | |
3423 | (process_target::stopped_data_address): Define. | |
3424 | ||
3425 | Update the derived classes and callers below. | |
3426 | ||
3427 | * remote-utils.cc (prepare_resume_reply): Update. | |
3428 | * linux-low.cc (linux_target_ops): Update. | |
3429 | (linux_stopped_by_watchpoint): Turn into ... | |
3430 | (linux_process_target::stopped_by_watchpoint): ... this. | |
3431 | (linux_stopped_data_address): Turn into ... | |
3432 | (linux_process_target::stopped_data_address): ... this. | |
3433 | * linux-low.h (class linux_process_target): Update. | |
3434 | * lynx-low.cc (lynx_target_ops): Update. | |
3435 | * nto-low.cc (nto_target_ops): Update. | |
3436 | (nto_stopped_by_watchpoint): Turn into ... | |
3437 | (nto_process_target::stopped_by_watchpoint): ... this. | |
3438 | (nto_stopped_data_address): Turn into ... | |
3439 | (nto_process_target::stopped_data_address): ... this. | |
3440 | * nto-low.h (class nto_process_target): Update. | |
3441 | * win32-low.cc (win32_target_ops): Update. | |
3442 | (win32_stopped_by_watchpoint): Turn into ... | |
3443 | (win32_process_target::stopped_by_watchpoint): ... this. | |
3444 | (win32_stopped_data_address): Turn into ... | |
3445 | (win32_process_target::stopped_data_address): ... this. | |
3446 | * win32-low.h (class win32_process_target): Update. | |
3447 | ||
22aa6223 TBA |
3448 | 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
3449 | ||
3450 | Turn process_stratum_target's supports_hardware_single_step op into | |
3451 | a method of process_target. | |
3452 | ||
3453 | * target.h (struct process_stratum_target): Remove the target op. | |
3454 | (class process_target): Add the target op. | |
3455 | (target_supports_hardware_single_step): Update the macro. | |
3456 | (target_can_do_hardware_single_step): Remove declaration. | |
3457 | * target.cc (process_target::supports_hardware_single_step): Define. | |
3458 | (target_can_do_hardware_single_step): Remove. | |
3459 | ||
3460 | Update the derived classes and callers below. | |
3461 | ||
3462 | * linux-low.h (class linux_process_target): Update. | |
3463 | * linux-low.cc (linux_target_ops): Update. | |
3464 | (linux_supports_hardware_single_step): Turn into ... | |
3465 | (linux_process_target::supports_hardware_single_step): ... this. | |
3466 | * lynx-low.h (class lynx_process_target): Update. | |
3467 | * lynx-low.cc (lynx_target_ops): Update. | |
3468 | (lynx_process_target::supports_hardware_single_step): Define. | |
3469 | * nto-low.h (class nto_process_target): Update. | |
3470 | * nto-low.cc (nto_target_ops): Update. | |
3471 | (nto_process_target::supports_hardware_single_step): Define. | |
3472 | * win32-low.h (class win32_process_target): Update. | |
3473 | * win32-low.cc (win32_target_ops): Update. | |
3474 | (win32_process_target::supports_hardware_single_step): Define. | |
3475 | ||
93fe88b2 TBA |
3476 | 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
3477 | ||
3478 | Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint | |
3479 | ops into methods of process_target. | |
3480 | ||
3481 | * target.h (struct process_stratum_target): Remove the target ops. | |
3482 | (class process_target): Add the target ops. | |
3483 | (target_stopped_by_hw_breakpoint): Update the macro. | |
3484 | (target_supports_stopped_by_hw_breakpoint): Update the macro. | |
3485 | * target.cc (process_target::stopped_by_hw_breakpoint): Define. | |
3486 | (process_target::supports_stopped_by_hw_breakpoint): Define. | |
3487 | ||
3488 | Update the derived classes and callers below. | |
3489 | ||
3490 | * linux-low.cc (linux_target_ops): Update. | |
3491 | (linux_stopped_by_hw_breakpoint): Turn into ... | |
3492 | (linux_process_target::stopped_by_hw_breakpoint): ... this. | |
3493 | (linux_supports_stopped_by_hw_breakpoint): Turn into ... | |
3494 | (linux_process_target::supports_stopped_by_hw_breakpoint): ... this. | |
3495 | * linux-low.h (class linux_process_target): Update. | |
3496 | * lynx-low.cc (lynx_target_ops): Update. | |
3497 | * nto-low.cc (nto_target_ops): Update. | |
3498 | * win32-low.cc (win32_target_ops): Update. | |
3499 | ||
84320c4e TBA |
3500 | 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
3501 | ||
3502 | Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint | |
3503 | ops into methods of process_target. | |
3504 | ||
3505 | * target.h (struct process_stratum_target): Remove the target ops. | |
3506 | (class process_target): Add the target ops. | |
3507 | (target_stopped_by_sw_breakpoint): Update the macro. | |
3508 | (target_supports_stopped_by_sw_breakpoint): Update the macro. | |
3509 | * target.cc (process_target::stopped_by_sw_breakpoint): Define. | |
3510 | (process_target::supports_stopped_by_sw_breakpoint): Define. | |
3511 | ||
3512 | Update the derived classes and callers below. | |
3513 | ||
3514 | * linux-low.cc (linux_target_ops): Update. | |
3515 | (linux_stopped_by_sw_breakpoint): Turn into ... | |
3516 | (linux_process_target::stopped_by_sw_breakpoint): ... this. | |
3517 | (linux_supports_stopped_by_sw_breakpoint): Turn into ... | |
3518 | (linux_process_target::supports_stopped_by_sw_breakpoint): ... this. | |
3519 | * linux-low.h (class linux_process_target): Update. | |
3520 | * lynx-low.cc (lynx_target_ops): Update. | |
3521 | * nto-low.cc (nto_target_ops): Update. | |
3522 | * win32-low.cc (win32_target_ops): Update. | |
3523 | ||
7e0bde70 TBA |
3524 | 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
3525 | ||
3526 | Turn process_stratum_target's insert_point and remove_point ops | |
3527 | into methods of process_target. | |
3528 | ||
3529 | * target.h (struct process_stratum_target): Remove the target ops. | |
3530 | (class process_target): Add the target ops. | |
3531 | * target.cc (process_target::insert_point): Define. | |
3532 | (process_target::remove_point): Define. | |
3533 | ||
3534 | Update the derived classes and callers below. | |
3535 | ||
3536 | * mem-break.cc (set_raw_breakpoint_at): Update. | |
3537 | (delete_raw_breakpoint): Update. | |
3538 | (uninsert_raw_breakpoint): Update. | |
3539 | (reinsert_raw_breakpoint): Update. | |
3540 | * linux-low.cc (linux_target_ops): Update. | |
3541 | (linux_insert_point): Turn into ... | |
3542 | (linux_process_target::insert_point): ... this. | |
3543 | (linux_remove_point): Turn into ... | |
3544 | (linux_process_target::remove_point): ... this. | |
3545 | * linux-low.h (class linux_process_target): Update. | |
3546 | * lynx-low.cc (lynx_target_ops): Update. | |
3547 | * nto-low.cc (nto_target_ops): Update. | |
3548 | (nto_insert_point): Turn into ... | |
3549 | (nto_process_target::insert_point): ... this. | |
3550 | (nto_remove_point): Turn into ... | |
3551 | (nto_process_target::remove_point): ... this. | |
3552 | * nto-low.h (class nto_process_target): Update. | |
3553 | * win32-low.cc (win32_target_ops): Update. | |
3554 | (win32_insert_point): Turn into ... | |
3555 | (win32_process_target::insert_point): ... this. | |
3556 | (win32_remove_point): Turn into ... | |
3557 | (win32_process_target::remove_point): ... this. | |
3558 | * win32-low.h (class win32_process_target): Update. | |
3559 | ||
a2b2297a TBA |
3560 | 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
3561 | ||
3562 | Turn process_stratum_target's supports_z_point_type op into a | |
3563 | method of process_target. | |
3564 | ||
3565 | * target.h (struct process_stratum_target): Remove the target op. | |
3566 | (class process_target): Add the target op. | |
3567 | * target.cc (process_target::supports_z_point_type): Define. | |
3568 | ||
3569 | Update the derived classes and callers below. | |
3570 | ||
3571 | * mem-break.cc (z_type_supported): Update. | |
3572 | * linux-low.cc (linux_target_ops): Update. | |
3573 | (linux_supports_z_point_type): Turn into ... | |
3574 | (linux_process_target::supports_z_point_type): ... this. | |
3575 | * linux-low.h (class linux_process_target): Update. | |
3576 | * lynx-low.cc (lynx_target_ops): Update. | |
3577 | * nto-low.cc (nto_target_ops): Update. | |
3578 | (nto_supports_z_point_type): Turn into ... | |
3579 | (nto_process_target::supports_z_point_type): ... this. | |
3580 | * nto-low.h (class nto_process_target): Update. | |
3581 | * win32-low.cc (win32_target_ops): Update. | |
3582 | (win32_supports_z_point_type): Turn into ... | |
3583 | (win32_process_target::supports_z_point_type): ... this. | |
3584 | * win32-low.h (class win32_process_target): Update. | |
3585 | ||
eac215cc TBA |
3586 | 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
3587 | ||
3588 | Turn process_stratum_target's read_auxv op into a method of | |
3589 | process_target. | |
3590 | ||
3591 | * target.h (class process_stratum_target): Remove the target op. | |
3592 | (struct process_target): Add the target op. Also add | |
3593 | 'supports_read_auxv'. | |
3594 | * target.cc (process_target::read_auxv): Define. | |
3595 | (process_target::supports_read_auxv): Define. | |
3596 | ||
3597 | Update the derived classes and callers below. | |
3598 | ||
3599 | * server.cc (handle_qxfer_auxv): Update. | |
3600 | (handle_query): Update. | |
3601 | * linux-low.cc (linux_target_ops): Update. | |
3602 | (linux_process_target::supports_read_auxv): Define. | |
3603 | (linux_read_auxv): Turn into ... | |
3604 | (linux_process_target::read_auxv): ... this. | |
3605 | * linux-low.h (class linux_process_target): Update. | |
3606 | * lynx-low.cc (lynx_target_ops): Update. | |
3607 | * nto-low.cc (nto_target_ops): Update. | |
3608 | (nto_process_target::supports_read_auxv): Define. | |
3609 | (nto_read_auxv): Turn into ... | |
3610 | (nto_process_target::read_auxv): ... this. | |
3611 | * nto-low.h (class nto_process_target): Update. | |
3612 | * win32-low.cc (win32_target_ops): Update. | |
3613 | ||
eb497a2a TBA |
3614 | 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
3615 | ||
3616 | Turn process_stratum_target's request_interrupt op into a method of | |
3617 | process_target. | |
3618 | ||
3619 | * target.h (struct process_stratum_target): Remove the target op. | |
3620 | (class process_target): Add the target op. | |
3621 | ||
3622 | Update the derived classes and callers below. | |
3623 | ||
3624 | * remote-utils.cc (putpkt_binary_1): Update. | |
3625 | (input_interrupt): Update. | |
3626 | (getpkt): Update. | |
3627 | * server.cc (handle_v_requests): Update. | |
3628 | * linux-low.cc (linux_target_ops): Update. | |
3629 | (linux_request_interrupt): Turn into ... | |
3630 | (linux_process_target::request_interrupt): ... this. | |
3631 | * linux-low.h (class linux_process_target): Update. | |
3632 | * lynx-low.cc (lynx_target_ops): Update. | |
3633 | (lynx_request_interrupt): Turn into ... | |
3634 | (lynx_process_target::request_interrupt): ... this. | |
3635 | * lynx-low.h (class lynx_process_target): Update. | |
3636 | * nto-low.cc (nto_target_ops): Update. | |
3637 | (nto_request_interrupt): Turn into ... | |
3638 | (nto_process_target::request_interrupt): ... this. | |
3639 | * nto-low.h (class nto_process_target): Update. | |
3640 | * win32-low.cc (win32_target_ops): Update. | |
3641 | (win32_request_interrupt): Turn into ... | |
3642 | (win32_process_target::request_interrupt): ... this. | |
3643 | * win32-low.h (class win32_process_target): Update. | |
3644 | ||
2a31c7aa TBA |
3645 | 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
3646 | ||
3647 | Turn process_stratum_target's look_up_symbols op into a method of | |
3648 | process_target. | |
3649 | ||
3650 | * target.h (struct process_stratum_target): Remove the target op. | |
3651 | (class process_target): Add the target op. | |
3652 | * target.cc (process_target::look_up_symbols): Define. | |
3653 | ||
3654 | Update the derived classes and callers below. | |
3655 | ||
3656 | * server.cc (handle_query): Update. | |
3657 | * linux-low.cc (linux_target_ops): Update. | |
3658 | (linux_look_up_symbols): Turn into ... | |
3659 | (linux_process_target::look_up_symbols): ... this. | |
3660 | * linux-low.h (class linux_process_target): Update. | |
3661 | * lynx-low.cc (lynx_target_ops): Update. | |
3662 | * nto-low.cc (nto_target_ops): Update. | |
3663 | * win32-low.cc (win32_target_ops): Update. | |
3664 | ||
e2558df3 TBA |
3665 | 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
3666 | ||
3667 | Turn process_stratum_target's read_memory and write_memory | |
3668 | ops into methods of process_target. | |
3669 | ||
3670 | * target.h (struct process_stratum_target): Remove the target ops. | |
3671 | (class process_target): Add the target ops. | |
3672 | ||
3673 | Update the derived classes and callers below. | |
3674 | ||
3675 | * linux-aarch32-low.cc (arm_breakpoint_at): Update. | |
3676 | * linux-aarch64-low.cc (aarch64_breakpoint_at): Update. | |
3677 | * linux-arm-low.cc (arm_sigreturn_next_pc): Update. | |
3678 | (arm_get_syscall_trapinfo): Update. | |
3679 | * linux-cris-low.cc (cris_breakpoint_at): Update. | |
3680 | * linux-crisv32-low.cc (cris_breakpoint_at): Update. | |
3681 | * linux-m32r-low.cc (m32r_breakpoint_at): Update. | |
3682 | * linux-mips-low.cc (mips_breakpoint_at): Update. | |
3683 | * linux-nios2-low.cc (nios2_breakpoint_at): Update. | |
3684 | * linux-ppc-low.cc (ppc_breakpoint_at): Update. | |
3685 | * linux-sh-low.cc (sh_breakpoint_at): Update. | |
3686 | * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update. | |
3687 | (sparc_store_gregset_from_stack): Update. | |
3688 | (sparc_breakpoint_at): Update. | |
3689 | * linux-tic6x-low.cc (tic6x_breakpoint_at): Update. | |
3690 | * linux-tile-low.cc (tile_breakpoint_at): Update. | |
3691 | * linux-x86-low.cc (x86_breakpoint_at): Update. | |
3692 | * linux-xtensa-low.cc (xtensa_breakpoint_at): Update. | |
3693 | * mem-brea.cc (insert_memory_breakpoint): Update. | |
3694 | (validate_inserted_breakpoint): Update. | |
3695 | * target.cc (read_inferior_memory): Update. | |
3696 | (target_write_memory): Update. | |
3697 | * linux-low.cc (linux_target_ops): Update. | |
3698 | (linux_read_memory): Make a wrapper around the read_memory target | |
3699 | op call. | |
3700 | (linux_process_target::read_memory): Rename from linux_read_memory. | |
3701 | (linux_write_memory): Turn into ... | |
3702 | (linux_process_target::write_memory): ... this. | |
3703 | * linux-low.h (class linux_process_target): Update. | |
3704 | * lynx-low.cc (lynx_target_ops): Update. | |
3705 | (lynx_read_memory): Turn into ... | |
3706 | (lynx_process_target::read_memory): ... this. | |
3707 | (lynx_write_memory): Turn into ... | |
3708 | (lynx_process_target::write_memory): ... this. | |
3709 | * lynx-low.h (class lynx_process_target): Update. | |
3710 | * nto-low.cc (nto_target_ops): Update. | |
3711 | (nto_read_memory): Turn into ... | |
3712 | (nto_process_target::read_memory): ... this. | |
3713 | (nto_write_memory): Turn into ... | |
3714 | (nto_process_target::write_memory): ... this. | |
3715 | * nto-low.h (class nto_process_target): Update. | |
3716 | * win32-low.cc (win32_target_ops): Update. | |
3717 | (win32_read_inferior_memory): Turn into ... | |
3718 | (win32_process_target::read_memory): ... this. | |
3719 | (win32_write_inferior_memory): Turn into ... | |
3720 | (win32_process_target::write_memory): ... this. | |
3721 | * win32-low.h (class win32_process_target): Update. | |
3722 | ||
79b44087 TBA |
3723 | 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
3724 | ||
3725 | Turn process_stratum_target's prepare_to_access_memory and | |
3726 | done_accessing_memory ops into methods of process_target. | |
3727 | ||
3728 | * target.h (struct process_stratum_target): Remove the target ops. | |
3729 | (class process_target): Add the target ops. | |
3730 | * target.cc (process_target::prepare_to_access_memory): Define. | |
3731 | (process_target::done_accessing_memory): Define. | |
3732 | (prepare_to_access_memory): Update. | |
3733 | (done_accessing_memory): Update. | |
3734 | ||
3735 | Update the derived classes and callers below. | |
3736 | ||
3737 | * linux-low.cc (linux_target_ops): Update. | |
3738 | (linux_prepare_to_access_memory): Turn into ... | |
3739 | (linux_process_target::prepare_to_access_memory): ... this. | |
3740 | (linux_done_accessing_memory): Turn into ... | |
3741 | (linux_process_target::done_accessing_memory): ... this. | |
3742 | * linux-low.h (class linux_process_target): Update. | |
3743 | * lynx-low.cc (lynx_target_ops): Update. | |
3744 | * nto-low.cc (nto_target_ops): Update. | |
3745 | * win32-low.cc (win32_target_ops): Update. | |
3746 | ||
a5a4d4cd TBA |
3747 | 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
3748 | ||
3749 | Turn process_stratum_target's fetch_registers and store_registers | |
3750 | ops into methods of process_target. | |
3751 | ||
3752 | * target.h (struct process_stratum_target): Remove the target ops. | |
3753 | (class process_target): Add the target ops. | |
3754 | (fetch_inferior_registers): Update the macro. | |
3755 | (store_inferior_registers): Update the macro. | |
3756 | ||
3757 | Update the derived classes and callers below. | |
3758 | ||
3759 | * linux-low.cc (linux_target_ops): Update. | |
3760 | (linux_fetch_registers): Turn into ... | |
3761 | (linux_process_target::fetch_registers): ... this. | |
3762 | (linux_store_registers): Turn into ... | |
3763 | (linux_process_target::store_registers): ... this. | |
3764 | * linux-low.h (class linux_process_target): Update. | |
3765 | * lynx-low.cc (lynx_target_ops): Update. | |
3766 | (lynx_fetch_registers): Turn into ... | |
3767 | (lynx_process_target::fetch_registers): ... this. | |
3768 | (lynx_store_registers): Turn into ... | |
3769 | (lynx_process_target::store_registers): ... this. | |
3770 | * lynx-low.h (class lynx_process_target): Update. | |
3771 | * nto-low.cc (nto_target_ops): Update. | |
3772 | (nto_fetch_registers): Turn into ... | |
3773 | (nto_process_target::fetch_registers): ... this. | |
3774 | (nto_store_registers): Turn into ... | |
3775 | (nto_process_target::store_registers): ... this. | |
3776 | * nto-low.h (class nto_process_target): Update. | |
3777 | * win32-low.cc (win32_target_ops): Update. | |
3778 | (win32_fetch_inferior_registers): Turn into ... | |
3779 | (win32_process_target::fetch_registers): ... this. | |
3780 | (win32_store_inferior_registers): Turn into ... | |
3781 | (win32_process_target::store_registers): ... this. | |
3782 | * win32-low.h (class win32_process_target): Update. | |
3783 | ||
6532e7e3 TBA |
3784 | 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
3785 | ||
3786 | Turn process_stratum_target's wait op into a method of | |
3787 | process_target. | |
3788 | ||
3789 | * target.h (struct process_stratum_target): Remove the target op. | |
3790 | (class process_target): Add the target op. | |
3791 | ||
3792 | Update the derived classes and callers below. | |
3793 | ||
3794 | * target.cc (target_wait): Update. | |
3795 | * linux-low.cc (linux_target_ops): Update. | |
3796 | (linux_wait): Turn into ... | |
3797 | (linux_process_target::wait): ... this. | |
3798 | * linux-low.h (class linux_process_target): Update. | |
3799 | * lynx-low.cc (lynx_target_ops): Update. | |
3800 | (lynx_wait): Turn into ... | |
3801 | (lynx_process_target::wait): ... this. | |
3802 | * lynx-low.h (class lynx_process_target): Update. | |
3803 | * nto-low.cc (nto_target_ops): Update. | |
3804 | (nto_wait): Turn into ... | |
3805 | (nto_process_target::wait): ... this. | |
3806 | * nto-low.h (class nto_process_target): Update. | |
3807 | * win32-low.cc (win32_target_ops): Update. | |
3808 | (win32_wait): Turn into ... | |
3809 | (win32_process_target::wait): ... this. | |
3810 | (do_initial_child_stuff): Update. | |
3811 | * win32-low.h (class win32_process_target): Update. | |
3812 | ||
0e4d7e35 TBA |
3813 | 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
3814 | ||
3815 | Turn process_stratum_target's resume op into a method of | |
3816 | process_target. | |
3817 | ||
3818 | * target.h (struct process_stratum_target): Remove the target op. | |
3819 | (class process_target): Add the target op. | |
3820 | ||
3821 | Update the derived classes and callers below. | |
3822 | ||
3823 | * server.cc (resume): Update. | |
3824 | * target.cc (target_stop_and_wait): Update. | |
3825 | (target_continue_no_signal): Update. | |
3826 | (target_continue): Update. | |
3827 | * linux-low.cc (linux_target_ops): Update. | |
3828 | (linux_resume): Turn into ... | |
3829 | (linux_process_target::resume): ... this. | |
3830 | * linux-low.h (class linux_process_target): Update. | |
3831 | * lynx-low.cc (lynx_target_ops): Update. | |
3832 | (lynx_resume): Turn into ... | |
3833 | (lynx_process_target::resume): ... this. | |
3834 | * lynx-low.h (class lynx_process_target): Update. | |
3835 | * nto-low.cc (nto_target_ops): Update. | |
3836 | (nto_resume): Turn into ... | |
3837 | (nto_process_target::resume): ... this. | |
3838 | * nto-low.h (class nto_process_target): Update. | |
3839 | * win32-low.cc (win32_target_ops): Update. | |
3840 | (win32_resume): Turn into ... | |
3841 | (win32_process_target::resume): ... this. | |
3842 | (win32_process_target::detach): Update. | |
3843 | (do_initial_child_stuff): Update. | |
3844 | * win32-low.h (class win32_process_target): Update. | |
3845 | ||
13d3d99b TBA |
3846 | 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
3847 | ||
3848 | Turn process_stratum_target's thread_alive op into a method of | |
3849 | process_target. | |
3850 | ||
3851 | * target.h (struct process_stratum_target): Remove the target op. | |
3852 | (class process_target): Add the target op. | |
3853 | (mythread_alive): Update the macro. | |
3854 | ||
3855 | Update the derived classes and callers below. | |
3856 | ||
3857 | * linux-low.cc (linux_target_ops): Update. | |
3858 | (linux_thread_alive): Turn into ... | |
3859 | (linux_process_target::thread_alive): ... this. | |
3860 | (wait_for_sigstop): Update. | |
3861 | * linux-low.h (class linux_process_target): Update. | |
3862 | * lynx-low.cc (lynx_target_ops): Update. | |
3863 | (lynx_thread_alive): Turn into ... | |
3864 | (lynx_process_target::thread_alive): ... this. | |
3865 | * lynx-low.h (class lynx_process_target): Update. | |
3866 | * nto-low.cc (nto_target_ops): Update. | |
3867 | (nto_thread_alive): Turn into ... | |
3868 | (nto_process_target::thread_alive): ... this. | |
3869 | * nto-low.h (class nto_process_target): Update. | |
3870 | * win32-low.cc (win32_target_ops): Update. | |
3871 | (win32_thread_alive): Turn into ... | |
3872 | (win32_process_target::thread_alive): ... this. | |
3873 | * win32-low.h (class win32_process_target): Update. | |
3874 | ||
95a49a39 TBA |
3875 | 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
3876 | ||
3877 | Turn process_stratum_target's join op into a method of | |
3878 | process_target. | |
3879 | ||
3880 | * target.h (struct process_stratum_target): Remove the target op. | |
3881 | (class process_target): Add the target op. | |
3882 | (join_inferior): Update the macro. | |
3883 | ||
3884 | Update the derived classes and callers below. | |
3885 | ||
3886 | * linux-low.cc (linux_target_ops): Update. | |
3887 | (linux_join): Turn into ... | |
3888 | (linux_process_target::join): ... this. | |
3889 | * linux-low.h (class linux_process_target): Update. | |
3890 | * lynx-low.cc (lynx_target_ops): Update. | |
3891 | (lynx_join): Turn into ... | |
3892 | (lynx_process_target::join): ... this. | |
3893 | * lynx-low.h (class lynx_process_target): Update. | |
3894 | * nto-low.cc (nto_target_ops): Update. | |
3895 | (nto_process_target::join): Define. | |
3896 | * nto-low.h (class nto_process_target): Update. | |
3897 | * win32-low.cc (win32_target_ops): Update. | |
3898 | (win32_join): Turn into ... | |
3899 | (win32_process_target::join): ... this. | |
3900 | * win32-low.h (class win32_process_target): Update. | |
3901 | ||
8adb37b9 TBA |
3902 | 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
3903 | ||
3904 | Turn process_stratum_target's mourn op into a method of | |
3905 | process_target. | |
3906 | ||
3907 | * target.h (struct process_stratum_target): Remove the target op. | |
3908 | (class process_target): Add the target op. | |
3909 | ||
3910 | Update the derived classes and callers below. | |
3911 | ||
3912 | * target.cc (target_mourn_inferior): Update. | |
3913 | * linux-low.cc (linux_target_ops): Update. | |
3914 | (linux_mourn): Turn into ... | |
3915 | (linux_process_target::mourn): ... this. | |
3916 | (handle_extended_wait): Update. | |
3917 | (linux_process_target::kill): Update. | |
3918 | (linux_process_target::detach): Update. | |
3919 | * linux-low.h (class linux_process_target): Update. | |
3920 | * lynx-low.cc (lynx_target_ops): Update. | |
3921 | (lynx_mourn): Turn into ... | |
3922 | (lynx_process_target::mourn): ... this. | |
3923 | * lynx-low.h (class lynx_process_target): Update. | |
3924 | * nto-low.cc (nto_target_ops): Update. | |
3925 | (nto_mourn): Turn into ... | |
3926 | (nto_process_target::mourn): ... this. | |
3927 | * nto-low.h (class nto_process_target): Update. | |
3928 | * win32-low.cc (win32_target_ops): Update. | |
3929 | (win32_mourn): Turn into ... | |
3930 | (win32_process_target::mourn): ... this. | |
3931 | * win32-low.h (class win32_process_target): Update. | |
3932 | ||
9061c9cf TBA |
3933 | 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
3934 | ||
3935 | Turn process_stratum_target's detach op into a method of | |
3936 | process_target. | |
3937 | ||
3938 | * target.h (struct process_stratum_target): Remove the target op. | |
3939 | (class process_target): Add the target op. | |
3940 | (detach_inferior): Update the macro. | |
3941 | ||
3942 | Update the derived classes and callers below. | |
3943 | ||
3944 | * linux-low.cc (linux_target_ops): Update. | |
3945 | (linux_detach): Turn into ... | |
3946 | (linux_process_target::detach): ... this. | |
3947 | * linux-low.h (class linux_process_target): Update. | |
3948 | * lynx-low.cc (lynx_target_ops): Update. | |
3949 | (lynx_detach): Turn into ... | |
3950 | (lynx_process_target::detach): ... this. | |
3951 | * lynx-low.h (class lynx_process_target): Update. | |
3952 | * nto-low.cc (nto_target_ops): Update. | |
3953 | (nto_detach): Turn into ... | |
3954 | (nto_process_target::detach): ... this. | |
3955 | * nto-low.h (class nto_process_target): Update. | |
3956 | * win32-low.cc (win32_target_ops): Update. | |
3957 | (win32_detach): Turn into ... | |
3958 | (win32_process_target::detach): ... this. | |
3959 | * win32-low.h (class win32_process_target): Update. | |
3960 | ||
c6885a57 TBA |
3961 | 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
3962 | ||
3963 | Turn process_stratum_target's kill op into a method of | |
3964 | process_target. | |
3965 | ||
3966 | * target.h (struct process_stratum_target): Remove the target op. | |
3967 | (class process_target): Add the target op. | |
3968 | ||
3969 | Update the derived classes and callers below. | |
3970 | ||
3971 | * target.cc (kill_inferior): Update. | |
3972 | * linux-low.cc (linux_target_ops): Update. | |
3973 | (linux_kill): Turn into ... | |
3974 | (linux_process_target::kill): ... this. | |
3975 | * linux-low.h (class linux_process_target): Update. | |
3976 | * lynx-low.cc (lynx_target_ops): Update. | |
3977 | (lynx_kill): Turn into ... | |
3978 | (lynx_process_target::kill): ... this. | |
3979 | * lynx-low.h (class lynx_process_target): Update. | |
3980 | * nto-low.cc (nto_target_ops): Update. | |
3981 | (nto_kill): Turn into ... | |
3982 | (nto_process_target::kill): ... this. | |
3983 | * nto-low.h (class nto_process_target): Update. | |
3984 | * win32-low.cc (win32_target_ops): Update. | |
3985 | (win32_kill): Turn into ... | |
3986 | (win32_process_target::kill): ... this. | |
3987 | * win32-low.h (class win32_process_target): Update. | |
3988 | ||
ef03dad8 TBA |
3989 | 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
3990 | ||
3991 | Turn process_stratum_target's attach op into a method of | |
3992 | process_target. | |
3993 | ||
3994 | * target.h (struct process_stratum_target): Remove the target op. | |
3995 | (class process_target): Add the target op. | |
3996 | (myattach): Update the macro. | |
3997 | ||
3998 | Update the derived classes and callers below. | |
3999 | ||
4000 | * linux-low.cc (linux_target_ops): Update. | |
4001 | (linux_attach): Turn into ... | |
4002 | (linux_process_target::attach): ... this. | |
4003 | * linux-low.h (class linux_process_target): Update. | |
4004 | * lynx-low.cc (lynx_target_ops): Update. | |
4005 | (lynx_attach): Turn into ... | |
4006 | (lynx_process_target::attach): ... this. | |
4007 | * lynx-low.h (class lynx_process_target): Update. | |
4008 | * nto-low.cc (nto_target_ops): Update. | |
4009 | (nto_attach): Turn into ... | |
4010 | (nto_process_target::attach): ... this. | |
4011 | * nto-low.h (class nto_process_target): Update. | |
4012 | * win32-low.cc (win32_target_ops): Update. | |
4013 | (win32_attach): Turn into ... | |
4014 | (win32_process_target::attach): ... this. | |
4015 | * win32-low.h (class win32_process_target): Update. | |
4016 | ||
6dee9afb TBA |
4017 | 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
4018 | ||
4019 | Turn process_stratum_target's post_create_inferior op into a method | |
4020 | of process_target. | |
4021 | ||
4022 | * target.h (struct process_stratum_target): Remove the target op. | |
4023 | (class process_target): Add the target op. | |
4024 | (target_post_create_inferior): Update the macro. | |
4025 | * target.cc (process_target::post_create_inferior): Define. | |
4026 | ||
4027 | Update the derived classes and callers below. | |
4028 | ||
4029 | * linux-low.cc (linux_target_ops): Update. | |
4030 | (linux_post_create_inferior): Turn into ... | |
4031 | (linux_process_target::post_create_inferior): ... this. | |
4032 | * linux-low.h (class linux_process_target): Update. | |
4033 | * lynx-low.cc (lynx_target_ops): Update. | |
4034 | * nto-low.cc (nto_target_ops): Update. | |
4035 | * win32-low.cc (win32_target_ops): Update. | |
4036 | ||
15295543 TBA |
4037 | 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
4038 | ||
4039 | Turn process_stratum_target's create_inferior op into a method of | |
4040 | process_target. | |
4041 | ||
4042 | * target.h (struct process_stratum_target): Remove the target op. | |
4043 | (class process_target): Add the target op. | |
4044 | (create_inferior): Rename the macro to ... | |
4045 | (target_create_inferior): ... this. | |
4046 | ||
4047 | Update the derived classes and callers below. | |
4048 | ||
4049 | * server.cc (handle_v_run): Update. | |
4050 | (captured_main): Update. | |
4051 | (process_serial_event): Update. | |
4052 | * linux-low.cc (linux_target_ops): Update. | |
4053 | (linux_create_inferior): Turn into ... | |
4054 | (linux_process_target::create_inferior): ... this. | |
4055 | * linux-low.h (class linux_process_target): Update. | |
4056 | * lynx-low.cc (lynx_target_ops): Update. | |
4057 | (lynx_create_inferior): Turn into ... | |
4058 | (lynx_process_target::create_inferior): ... this. | |
4059 | * lynx-low.h (class lynx_process_target): Update. | |
4060 | * nto-low.cc (nto_target_ops): Update. | |
4061 | (nto_create_inferior): Turn into ... | |
4062 | (nto_process_target::create_inferior): ... this. | |
4063 | * nto-low.h (class nto_process_target): Update. | |
4064 | * win32-low.cc (win32_target_ops): Update. | |
4065 | (win32_create_inferior): Turn into ... | |
4066 | (win32_process_target::create_inferior): ... this. | |
4067 | * win32-low.h (class win32_process_target): Update. | |
4068 | ||
5ef9273d TBA |
4069 | 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
4070 | ||
4071 | * target.h (class process_target): New class definition. | |
4072 | (struct process_stratum_target) <pt>: New field with type | |
4073 | 'process_target*'. | |
4074 | * linux-low.h (class linux_process_target): Define as a derived | |
4075 | class of 'process_target'. | |
4076 | * linux-low.cc (linux_target_ops): Add a linux_process_target* | |
4077 | as the 'pt' field. | |
4078 | * lynx-low.h (class lynx_process_target): Define as a derived | |
4079 | class of 'process_target'. | |
4080 | * lynx-low.cc (lynx_target_ops): Add a lynx_process_target* | |
4081 | as the 'pt' field. | |
4082 | * nto-low.h (class nto_process_target): Define as a derived | |
4083 | class of 'process_target'. | |
4084 | * nto-low.cc (nto_target_ops): Add an nto_process_target* | |
4085 | as the 'pt' field. | |
4086 | * win32-low.h (class win32_process_target): Define as a derived | |
4087 | class of 'process_target'. | |
4088 | * win32-low.cc (win32_target_ops): Add a win32_process_target* | |
4089 | as the 'pt' field. | |
4090 | ||
9f1528a1 AB |
4091 | 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com> |
4092 | ||
4093 | * configure: Regenerate. | |
4094 | ||
bf84f706 MR |
4095 | 2020-02-19 Maciej W. Rozycki <macro@wdc.com> |
4096 | Andrew Burgess <andrew.burgess@embecosm.com> | |
4097 | ||
4098 | * linux-riscv-low.cc: New file. | |
4099 | * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c, | |
4100 | and nat/riscv-linux-tdesc.c. | |
4101 | * configure.srv <riscv*-*-linux*> (srv_tgtobj) | |
4102 | (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db): | |
4103 | Define. | |
4104 | ||
1a627e7e TT |
4105 | 2020-02-14 Tom Tromey <tom@tromey.com> |
4106 | ||
4107 | * acinclude.m4: Don't include acx_configure_dir.m4. | |
4108 | * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update. | |
4109 | (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove. | |
4110 | (all, install-only, uninstall, clean-info, clean) | |
4111 | (maintainer-clean): Don't recurse. | |
4112 | (subdir_do, all-lib): Remove. | |
4113 | ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule. | |
4114 | (GNULIB_H): Remove. | |
4115 | (generated_files): Update. | |
4116 | ($(GNULIB_BUILDDIR)/Makefile): Remove rule. | |
4117 | * configure: Rebuild. | |
4118 | * configure.ac: Don't configure gnulib or libiberty. | |
4119 | (GNULIB): Update. | |
4120 | ||
a9b34532 EZ |
4121 | 2020-02-14 Eli Zaretskii <eliz@gnu.org> |
4122 | ||
4123 | * win32-low.c (create_process): Prepend PROGRAM to ARGS when | |
4124 | preparing the command line for CreateProcess. | |
4125 | (win32_create_inferior): Reflect the program name in debugging | |
4126 | output that shows the process and its command line. | |
4127 | ||
feacfcac SM |
4128 | 2020-02-13 Simon Marchi <simon.marchi@efficios.com> |
4129 | ||
4130 | * Makefile.in: Rename source files from .c to .cc. | |
4131 | * %.c: Rename to %.cc. | |
4132 | * configure.ac: Rename server.c to server.cc. | |
4133 | * configure: Re-generate. | |
4134 | ||
06b3c5bd SM |
4135 | 2020-02-13 Simon Marchi <simon.marchi@efficios.com> |
4136 | ||
4137 | * Makefile.in: Rename gdbsupport source files from .c to .cc. | |
4138 | ||
052793ad HD |
4139 | 2020-02-12 Hannes Domani <ssbssa@yahoo.de> |
4140 | ||
4141 | * win32-low.c (win32_create_inferior): Set signal_pid. | |
4142 | ||
f20e3e82 MR |
4143 | 2020-02-12 Maciej W. Rozycki <macro@wdc.com> |
4144 | Pedro Alves <palves@redhat.com> | |
4145 | ||
4146 | Skip building gdbserver in a cross-configuration. | |
4147 | * configure.srv: Set $gdbserver_host depending on whether $target | |
4148 | is $host. Use $gdbserver_host instead of $host. | |
4149 | ||
8ddd8e0e SM |
4150 | 2020-02-11 Simon Marchi <simon.marchi@efficios.com> |
4151 | ||
4152 | * configure: Re-generate. | |
4153 | ||
898e7f60 SM |
4154 | 2020-02-11 Simon Marchi <simon.marchi@efficios.com> |
4155 | ||
4156 | * configure: Re-generate. | |
4157 | ||
58df732b SM |
4158 | 2020-02-11 Simon Marchi <simon.marchi@efficios.com> |
4159 | ||
4160 | * acinclude.m4: Update warning.m4 path. | |
4161 | ||
7928d571 HD |
4162 | 2020-02-09 Hannes Domani <ssbssa@yahoo.de> |
4163 | ||
4164 | * win32-low.c (win32_clear_inferiors): Reset siginfo_er. | |
4165 | (handle_exception): Set siginfo_er. | |
4166 | (win32_xfer_siginfo): New function. | |
4167 | ||
919adfe8 TT |
4168 | 2020-02-07 Tom Tromey <tom@tromey.com> |
4169 | Pedro Alves <palves@redhat.com> | |
4170 | ||
4171 | * README: Update build documentation. | |
4172 | * configure.srv: Set UNSUPPORTED if host is unsupported. Check | |
4173 | host, not target. | |
4174 | * configure.ac: Update paths. | |
4175 | * configure: Rebuild. | |
4176 | * acinclude.m4: Update paths. | |
4177 | * Makefile.in: Update include paths. | |
4178 | (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS) | |
4179 | (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status) | |
4180 | (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o) | |
4181 | (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o) | |
4182 | (%-generated.c): Update paths. | |
4183 | * Move entire directory from ../gdb/gdbserver. | |
4184 | ||
287c844a MR |
4185 | 2020-01-29 Maciej W. Rozycki <macro@wdc.com> |
4186 | ||
4187 | * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage. | |
4188 | ||
548a204f PFC |
4189 | 2020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> |
4190 | ||
4191 | * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second | |
4192 | assignment instead of srv_linux_obj. | |
4193 | ||
a2236a08 HD |
4194 | 2020-01-28 Hannes Domani <ssbssa@yahoo.de> |
4195 | ||
4196 | * server.c (handle_qxfer_libraries): Write segment-address with | |
4197 | paddress. | |
4198 | ||
bdaed379 HD |
4199 | 2020-01-24 Hannes Domani <ssbssa@yahoo.de> |
4200 | ||
4201 | * Makefile.in (install-strip): New target. | |
4202 | (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables. | |
4203 | * aclocal.m4: Regenerate. | |
4204 | * configure: Regenerate. | |
4205 | * configure.ac: Add AM_PROG_INSTALL_STRIP. | |
4206 | ||
42cd72aa MR |
4207 | 2020-01-24 Maciej W. Rozycki <macro@wdc.com> |
4208 | ||
4209 | * Makefile.in (SFILES): Adjust paths to point to real files. | |
4210 | (OBS): Move waitstatus.o to target/waitstatus.o. | |
4211 | (TAGS): Transform paths appropriately. | |
4212 | (%.o): Rename to... | |
4213 | (nat/%.o): ... this pattern rule. | |
4214 | (%.o): Rename to... | |
4215 | (target/%.o): ... this pattern rule. | |
4216 | * configure.srv: Adjust paths throughout to include nat/ prefix | |
4217 | with the revant files. | |
4218 | * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR. | |
4219 | * configure: Regenerate. | |
4220 | ||
42ba50ec MR |
4221 | 2020-01-24 Maciej W. Rozycki <macro@wdc.com> |
4222 | ||
4223 | * Makefile.in (TAGS): Remove config files from the recipe. | |
4224 | ||
05ea2a05 TT |
4225 | 2020-01-14 Tom Tromey <tom@tromey.com> |
4226 | ||
4227 | * configure: Rebuild. | |
4228 | * configure.ac: Remove any checks that were added to common.m4. | |
4229 | * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and | |
4230 | lib-link.m4. | |
4231 | ||
01027315 TT |
4232 | 2020-01-14 Tom Tromey <tom@tromey.com> |
4233 | ||
4234 | * server.h: Include config.h. | |
4235 | * gdbreplay.c: Include config.h. | |
4236 | * configure: Rebuild. | |
4237 | * configure.ac: Don't source common.host. | |
4238 | * acinclude.m4: Update path. | |
4239 | * Makefile.in (INCSUPPORT): New variable. | |
4240 | (INCLUDE_CFLAGS): Add INCSUPPORT. | |
4241 | (SFILES): Update paths. | |
4242 | (version-generated.c): Update path to create-version.sh. | |
4243 | (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths. | |
4244 | ||
b2ceabe8 TT |
4245 | 2020-01-14 Tom Tromey <tom@tromey.com> |
4246 | ||
4247 | * configure.ac (LIBS): Use WIN32APILIBS. | |
4248 | (USE_WIN32API): Don't define. | |
4249 | * configure: Rebuild. | |
4250 | ||
25c51f71 TT |
4251 | 2020-01-14 Tom Tromey <tom@tromey.com> |
4252 | ||
4253 | * configure: Rebuild. | |
4254 | ||
c0bd321d SM |
4255 | 2020-01-13 Simon Marchi <simon.marchi@efficios.com> |
4256 | ||
4257 | * Makefile.in (%-generated.c): Remove rule for files from | |
4258 | regformats/i386. | |
4259 | ||
bb564c58 SM |
4260 | 2020-01-13 Simon Marchi <simon.marchi@efficios.com> |
4261 | ||
4262 | * configure: Re-generate. | |
4263 | ||
6e37c371 SM |
4264 | 2020-01-13 Simon Marchi <simon.marchi@efficios.com> |
4265 | ||
4266 | * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]: | |
4267 | Define to static. | |
4268 | * tracepoint.c (stop_tracing, flush_trace_buffer, | |
4269 | about_to_request_buffer_space, get_trace_state_variable_value, | |
4270 | set_trace_state_variable_value, gdb_collect): Add declaration. | |
4271 | ||
df4a0200 SM |
4272 | 2020-01-13 Simon Marchi <simon.marchi@efficios.com> |
4273 | ||
4274 | * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto, | |
4275 | amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto, | |
4276 | amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto, | |
4277 | i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto, | |
4278 | i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make | |
4279 | static. | |
4280 | ||
89e94ec9 SM |
4281 | 2020-01-13 Simon Marchi <simon.marchi@efficios.com> |
4282 | ||
4283 | * inferiors.c: Include gdbsupport/common-inferior.h. | |
4284 | ||
2552728a SM |
4285 | 2020-01-13 Simon Marchi <simon.marchi@efficios.com> |
4286 | ||
4287 | * hostio-errno.c: Include hostio.h. | |
4288 | ||
4025fa09 SM |
4289 | 2020-01-13 Simon Marchi <simon.marchi@efficios.com> |
4290 | ||
4291 | * Makefile.in (%-generated.c): Make $(regdat_sh) a regular | |
4292 | prerequisite. | |
4293 | ||
c0b0a142 SM |
4294 | 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca> |
4295 | ||
4296 | * linux-arm-tdesc.c: Include linux-arm-tdesc.h. | |
4297 | * linux-arm-tdesc.h: Include arch/arm.h. | |
4298 | ||
bb1183e2 SM |
4299 | 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca> |
4300 | ||
4301 | * linux-aarch64-low.c (aarch64_write_goto_address): Make static. | |
4302 | ||
f5df0b5f SM |
4303 | 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca> |
4304 | ||
4305 | * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h. | |
4306 | * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h. | |
4307 | ||
5b6d1e4f PA |
4308 | 2020-01-10 Pedro Alves <palves@redhat.com> |
4309 | ||
4310 | * fork-child.c (post_fork_inferior): Pass target down to | |
4311 | startup_inferior. | |
4312 | * inferiors.c (switch_to_thread): Add process_stratum_target | |
4313 | parameter. | |
4314 | * lynx-low.c (lynx_target_ops): Now a process_stratum_target. | |
4315 | * nto-low.c (nto_target_ops): Now a process_stratum_target. | |
4316 | * linux-low.c (linux_target_ops): Now a process_stratum_target. | |
4317 | * remote-utils.c (prepare_resume_reply): Pass the target to | |
4318 | switch_to_thread. | |
4319 | * target.c (the_target): Now a process_stratum_target. | |
4320 | (done_accessing_memory): Pass the target to switch_to_thread. | |
4321 | (set_target_ops): Ajust to use process_stratum_target. | |
4322 | * target.h (struct target_ops): Rename to ... | |
4323 | (struct process_stratum_target): ... this. | |
4324 | (the_target, set_target_ops): Adjust. | |
4325 | (prepare_to_access_memory): Adjust comment. | |
4326 | * win32-low.c (child_xfer_memory): Adjust to use | |
4327 | process_stratum_target. | |
4328 | (win32_target_ops): Now a process_stratum_target. | |
4329 | ||
559e7e50 EZ |
4330 | 2020-01-06 Eli Zaretskii <eliz@gnu.org> |
4331 | Pedro Alves <palves@redhat.com> | |
4332 | ||
4333 | * win32-low.c (get_child_debug_event): Extract the fatal exception | |
4334 | from the exit status and convert to the equivalent Posix signal | |
4335 | number. | |
4336 | (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well. | |
4337 | * Makefile.in (OBS, SFILES): Add gdb_wait.[co]. | |
4338 | ||
48189bec HD |
4339 | 2020-01-01 Hannes Domani <ssbssa@yahoo.de> |
4340 | ||
4341 | * Makefile.in: Use INSTALL_PROGRAM_ENV. | |
4342 | ||
5dd8bf88 JB |
4343 | 2020-01-01 Joel Brobecker <brobecker@adacore.com> |
4344 | ||
4345 | * server.c (gdbserver_version): Change copyright year to 2020. | |
4346 | * gdbreplay.c (gdbreplay_version): Likewise. | |
4347 | ||
0ad6b8ee CB |
4348 | 2019-12-19 Christian Biesinger <cbiesinger@google.com> |
4349 | ||
4350 | * configure: Regenerate. | |
4351 | * configure.ac: Quote variable arguments of test. | |
4352 | ||
1ee7b812 BE |
4353 | 2019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de> |
4354 | ||
4355 | * Makefile.in: Fix build with GNU Make 3.81 | |
4356 | ||
d9fa87f4 TT |
4357 | 2019-12-16 Tom Tromey <tromey@adacore.com> |
4358 | ||
4359 | * server.c (get_exec_file): Constify result. | |
4360 | ||
ab7d13f0 CB |
4361 | 2019-12-10 Christian Biesinger <cbiesinger@google.com> |
4362 | ||
4363 | * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change | |
4364 | UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror. | |
4365 | * config.in: Regenerate. | |
4366 | * configure: Regenerate. | |
4367 | * configure.ac: Don't check for strerror. | |
4368 | * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer): | |
4369 | Call safe_strerror instead of strerror. | |
4370 | * server.h (strerror): Remove this now-unnecessary declaration. | |
4371 | * tracepoint.c (init_named_socket): Call safe_strerror instead of | |
4372 | strerror. | |
4373 | (gdb_agent_helper_thread): Likewise. | |
4374 | * utils.c (perror_with_name): Likewise. | |
4375 | ||
4da8c3a8 TT |
4376 | 2019-11-26 Tom Tromey <tom@tromey.com> |
4377 | ||
4378 | * configure, config.in: Rebuild. | |
4379 | ||
21987b9c TT |
4380 | 2019-11-26 Tom Tromey <tom@tromey.com> |
4381 | ||
4382 | * remote-utils.c (block_unblock_async_io): Use gdb_sigmask. | |
4383 | * linux-low.c (linux_wait_for_event_filtered, linux_async): Use | |
4384 | gdb_sigmask. | |
4385 | * configure, config.in: Rebuild. | |
4386 | ||
5e030278 TT |
4387 | 2019-11-26 Tom Tromey <tom@tromey.com> |
4388 | ||
4389 | * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables. | |
4390 | (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS. | |
4391 | (GDBSERVER_LIBS): Use PTHREAD_LIBS. | |
4392 | * acinclude.m4: Include ax_pthread.m4. | |
4393 | * config.in, configure: Rebuild. | |
4394 | ||
6d91ce9a CB |
4395 | 2019-11-26 Christian Biesinger <cbiesinger@google.com> |
4396 | ||
4397 | * debug.c (debug_set_output): Call safe_strerror instead of | |
4398 | strerror. | |
4399 | * linux-low.c (attach_proc_task_lwp_callback): Likewise. | |
4400 | (linux_kill_one_lwp): Likewise. | |
4401 | (linux_detach_one_lwp): Likewise. | |
4402 | (linux_wait_for_event_filtered): Likewise. | |
4403 | (store_register): Likewise. | |
4404 | * lynx-low.c (lynx_attach): Likewise. | |
4405 | * mem-break.c (insert_memory_breakpoint): Likewise. | |
4406 | (remove_memory_breakpoint): Likewise. | |
4407 | (delete_fast_tracepoint_jump): Likewise. | |
4408 | (set_fast_tracepoint_jump): Likewise. | |
4409 | (uninsert_fast_tracepoint_jumps_at): Likewise. | |
4410 | (reinsert_fast_tracepoint_jumps_at): Likewise. | |
4411 | * nto-low.c (nto_xfer_memory): Likewise. | |
4412 | (nto_resume): Likewise. | |
4413 | ||
6cdd651f LM |
4414 | 2019-11-20 Luis Machado <luis.machado@linaro.org> |
4415 | ||
4416 | * linux-aarch64-low.c (is_sve_tdesc): Check against target feature | |
4417 | instead of register count. | |
4418 | * tdesc.c (tdesc_contains_feature): New function. | |
4419 | * tdesc.h (tdesc_contains_feature): New prototype. | |
4420 | ||
cd850b40 CB |
4421 | 2019-11-15 Christian Biesinger <cbiesinger@google.com> |
4422 | ||
4423 | * Makefile.in: Add safe-strerror.c. | |
4424 | * configure: Regenerate. | |
4425 | * configure.ac: Don't source common.host. | |
4426 | ||
5abebf3c CB |
4427 | 2019-11-15 Christian Biesinger <cbiesinger@google.com> |
4428 | ||
4429 | * config.in: Regenerate. | |
4430 | * configure: Regenerate. | |
4431 | ||
e06f3d6e AB |
4432 | 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com> |
4433 | ||
4434 | * ax.c (ax_printf): Handle size_t_arg. | |
4435 | ||
ca3a04f6 CB |
4436 | 2019-11-06 Christian Biesinger <cbiesinger@google.com> |
4437 | ||
4438 | * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok. | |
4439 | * mi/mi-main.c (output_cores): Likewise. | |
4440 | * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise. | |
4441 | (linux_xfer_osdata_modules): Likewise. | |
4442 | * remote.c (register_remote_support_xml): Likewise. | |
4443 | * sparc64-tdep.c (adi_is_addr_mapped): Likewise. | |
4444 | * xml-syscall.c (syscall_create_syscall_desc): Likewise. | |
4445 | ||
e48f6033 CB |
4446 | 2019-11-01 Christian Biesinger <cbiesinger@google.com> |
4447 | ||
4448 | * configure: Regenerate. | |
4449 | * configure.ac: Remove check for strerror_r. | |
4450 | ||
e7e97a2e CB |
4451 | 2019-10-31 Christian Biesinger <cbiesinger@google.com> |
4452 | ||
4453 | * config.in: Regenerate. | |
4454 | * configure: Regenerate. | |
4455 | * configure.ac: Also check for strerror_r. | |
4456 | ||
75cafaa6 CB |
4457 | 2019-10-31 Christian Biesinger <cbiesinger@google.com> |
4458 | ||
4459 | * ax.h (debug_agent): Remove duplicate declaration. | |
4460 | ||
30baf67b TV |
4461 | 2019-10-26 Tom de Vries <tdevries@suse.de> |
4462 | ||
4463 | * linux-aarch64-low.c: Fix typos in comments. | |
4464 | * linux-arm-low.c: Same. | |
4465 | * linux-low.c: Same. | |
4466 | * linux-ppc-low.c: Same. | |
4467 | * proc-service.c: Same. | |
4468 | * regcache.h: Same. | |
4469 | * server.c: Same. | |
4470 | * tracepoint.c: Same. | |
4471 | * win32-low.c: Same. | |
4472 | ||
52c64cf7 TT |
4473 | 2019-10-25 Tom Tromey <tromey@adacore.com> |
4474 | ||
4475 | * utils.c (xstrdup): Remove. | |
4476 | ||
c12d372d TT |
4477 | 2019-10-23 Tom Tromey <tom@tromey.com> |
4478 | ||
4479 | * configure, config.in: Rebuild. | |
4480 | ||
4d0b984b TT |
4481 | 2019-10-23 Tom Tromey <tom@tromey.com> |
4482 | ||
4483 | * configure: Rebuild. | |
4484 | * acinclude.m4: Use m4_include, not sinclude. | |
4485 | ||
c5adaa19 TT |
4486 | 2019-10-17 Tom Tromey <tromey@adacore.com> |
4487 | ||
4488 | * configure: Rebuild. | |
4489 | * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not | |
4490 | in AC_CONFIG_FILES invocation. | |
4491 | * Makefile.in (stamp-h, Makefile): Use new-style config.status | |
4492 | invocation. | |
4493 | ||
fec4e896 CB |
4494 | 2019-10-16 Christian Biesinger <cbiesinger@google.com> |
4495 | ||
4496 | * server.c: Include xml-builtin.h. | |
4497 | (get_xml_features): Don't declare xml_builtins here. | |
4498 | ||
00975ff6 AB |
4499 | 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com> |
4500 | ||
4501 | * Makefile.in: Remove references to vec-ipa.o. | |
4502 | ||
0dc32745 AB |
4503 | 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com> |
4504 | ||
4505 | * Makefile.in: Remove references to vec.c. | |
4506 | ||
3e6ec53a CB |
4507 | 2019-10-02 Christian Biesinger <cbiesinger@google.com> |
4508 | ||
4509 | * server.c (server_waiting): Change to bool. | |
4510 | (extended_protocol): Likewise. | |
4511 | (response_needed): Likewise. | |
4512 | (exit_requested): Likewise. | |
4513 | (run_once): Likewise. | |
4514 | (report_no_resumed): Likewise. | |
4515 | (non_stop): Likewise. | |
4516 | (disable_packet_vCont): Likewise. | |
4517 | (disable_packet_Tthread): Likewise. | |
4518 | (disable_packet_qC): Likewise. | |
4519 | (disable_packet_qfThreadInfo): Likewise. | |
4520 | (handle_general_set): Update. | |
4521 | (handle_detach): Update. | |
4522 | (handle_monitor_command): Update. | |
4523 | (handle_query): Update. | |
4524 | (captured_main): Update. | |
4525 | (process_serial_event): Update. | |
4526 | * server.h (server_waiting): Change to bool. | |
4527 | (disable_packet_vCont): Likewise. | |
4528 | (disable_packet_Tthread): Likewise. | |
4529 | (disable_packet_qC): Likewise. | |
4530 | (disable_packet_qfThreadInfo): Likewise. | |
4531 | (run_once): Likewise. | |
4532 | (non_stop): Likewise. | |
4533 | * target.c (target_stop_and_wait): Update. | |
4534 | ||
80fd2826 TT |
4535 | 2019-10-02 Tom Tromey <tromey@adacore.com> |
4536 | ||
4537 | * Makefile.in (SFILES): Add common-inferior.c. | |
4538 | (OBS): Add common-inferior.o. | |
4539 | * server.c (startup_with_shell): Don't define. | |
4540 | ||
46f29a9a AB |
4541 | 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com> |
4542 | ||
4543 | * linux-low.c (linux_low_read_btrace): Update for change to | |
4544 | std::vector. | |
4545 | ||
f9d949fb CB |
4546 | 2019-09-20 Christian Biesinger <cbiesinger@google.com> |
4547 | ||
4548 | * debug.c (debug_threads): Remove comment in favor of the header. | |
4549 | * debug.h (using_threads): Add declaration. | |
4550 | (debug_threads): Add comment. | |
4551 | * linux-aarch64-low.c: Include debug.h and remove declaration of | |
4552 | debug_threads. | |
4553 | * nto-low.c: Likewise. | |
4554 | * remote-utils.c: Likewise. | |
4555 | * thread-db.c: Likewise. | |
4556 | ||
abf516c6 UW |
4557 | 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com> |
4558 | ||
4559 | * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o | |
4560 | and powerpc-cell64l-ipa.o. | |
4561 | (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o | |
4562 | from srv_regobj. Remove rs6000/powerpc-cell32l.xml and | |
4563 | rs6000/powerpc-cell64l.xml from srv_xmlfiles. | |
4564 | (spu*-*-*): Remove. | |
4565 | ||
4566 | * spu-low.c: Remove file. | |
4567 | ||
4568 | * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove. | |
4569 | (parse_spufs_run): Remove. | |
4570 | (ppc_get_pc): Remove Cell/B.E. support. | |
4571 | (ppc_set_pc): Likewise. | |
4572 | (ppc_breakpoint_at): Likewise. | |
4573 | (ppc_arch_setup): Likewise. | |
4574 | (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or | |
4575 | tdesc_powerpc_cell32l. | |
4576 | (initialize_low_arch): Do not call init_registers_powerpc_cell64l | |
4577 | or init_registers_powerpc_cell32l. | |
4578 | * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL. | |
4579 | (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l | |
4580 | or init_registers_powerpc_cell32l. | |
4581 | * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused. | |
4582 | (init_registers_powerpc_cell32l): Remove prototype. | |
4583 | (init_registers_powerpc_cell64l): Likewise. | |
4584 | ||
4585 | * target.h (struct target_ops): Remove qxfer_spu member. | |
4586 | * server.c (handle_qxfer_spu): Remove. | |
4587 | (qxfer_packets): Remove entry for "spu". | |
4588 | (handle_query): No longer support qXfer:spu:read or qXfer:spu:write. | |
4589 | * linux-low.c (SPUFS_MAGIC): Remove. | |
4590 | (spu_enumerate_spu_ids): Remove. | |
4591 | (linux_qxfer_spu): Remove. | |
4592 | (linux_target_ops): Remove qxfer_spu member. | |
4593 | * lynx-low.c (lynx_target_ops): Remove qxfer_spu member. | |
4594 | * nto-low.c (nto_target_ops): Remove qxfer_spu member. | |
4595 | * win32-low.c (win32_target_ops): Remove qxfer_spu member. | |
4596 | ||
2d41fa11 SDJ |
4597 | 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com> |
4598 | ||
4599 | * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'. | |
4600 | (OBS): Add 'gdbsupport/gdb-dlfcn.o'. | |
4601 | * config.in: Regenerate. | |
4602 | * configure: Regenerate. | |
4603 | ||
d59b55f0 TT |
4604 | 2019-08-15 Tom Tromey <tromey@adacore.com> |
4605 | ||
4606 | * target.c (target_write_memory): Use gdb::byte_vector. | |
4607 | ||
4196ab2a TT |
4608 | 2019-08-15 Tom Tromey <tromey@adacore.com> |
4609 | ||
4610 | * tracepoint.c (write_inferior_data_pointer) | |
4611 | (write_inferior_integer, write_inferior_int8) | |
4612 | (write_inferior_uinteger, m_tracepoint_action_download) | |
4613 | (r_tracepoint_action_download, x_tracepoint_action_download) | |
4614 | (l_tracepoint_action_download, clear_inferior_trace_buffer) | |
4615 | (download_agent_expr, download_tracepoint_1) | |
4616 | (download_trace_state_variables, upload_fast_traceframes): Update. | |
4617 | * server.c (gdb_write_memory): Update. | |
4618 | * remote-utils.c (relocate_instruction): Update. | |
4619 | * proc-service.c (ps_pdwrite): Update. | |
4620 | * mem-break.c (remove_memory_breakpoint) | |
4621 | (delete_fast_tracepoint_jump, set_fast_tracepoint_jump) | |
4622 | (uninsert_fast_tracepoint_jumps_at) | |
4623 | (reinsert_fast_tracepoint_jumps_at): Update. | |
4624 | * linux-x86-low.c (append_insns) | |
4625 | (i386_install_fast_tracepoint_jump_pad) | |
4626 | (amd64_write_goto_address, i386_write_goto_address): Update. | |
4627 | * linux-s390-low.c (append_insns, s390_write_goto_address): | |
4628 | Update. | |
4629 | * linux-ppc-low.c (ppc_relocate_instruction) | |
4630 | (ppc_install_fast_tracepoint_jump_pad, emit_insns) | |
4631 | (ppc_write_goto_address): Update. | |
4632 | * linux-aarch64-low.c (append_insns): Update. | |
4633 | * target.h (struct target_ops): Update. | |
4634 | (write_inferior_memory): Don't declare. | |
4635 | * target.c (target_write_memory): Rename from | |
4636 | write_inferior_memory. Remove old target_write_memory. | |
4637 | ||
c6778d00 TT |
4638 | 2019-08-15 Tom Tromey <tromey@adacore.com> |
4639 | ||
4640 | * target.c (write_inferior_memory): Use std::vector. | |
4641 | ||
404f2902 FCE |
4642 | 2019-08-06 Frank Ch. Eigler <fche@redhat.com> |
4643 | ||
4644 | PR build/24886 | |
4645 | * configure.ac: Drop enable-libmcheck support. | |
4646 | * configure, config.in: Rebuild. | |
4647 | * acinclude.m4: Don't include it. | |
4648 | ||
4c5aa8e0 AH |
4649 | 2019-07-19 Alan Hayward <alan.hayward@arm.com> |
4650 | ||
4651 | * configure.srv: Remove Arm xml files. | |
4652 | ||
7cc17433 AH |
4653 | 2019-07-19 Alan Hayward <alan.hayward@arm.com> |
4654 | ||
4655 | * configure.srv: Add new files. Remove xml generated files. | |
4656 | * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init | |
4657 | registers. | |
4658 | * linux-aarch32-low.h (tdesc_arm_with_neon): Remove. | |
4659 | * linux-aarch32-tdesc.c: New file. | |
4660 | * linux-aarch32-tdesc.h: New file. | |
4661 | * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description. | |
4662 | * linux-arm-low.c (init_registers_arm, tdesc_arm) | |
4663 | (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt) | |
4664 | (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2) | |
4665 | (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove. | |
4666 | (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset) | |
4667 | (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type. | |
4668 | (arm_read_description): Call arm_linux_read_description. | |
4669 | (initialize_low_arch): Don't init registers. | |
4670 | * linux-arm-tdesc.c: New file. | |
4671 | * linux-arm-tdesc.h: New file. | |
4672 | ||
166a82be AH |
4673 | 2019-07-10 Alan Hayward <alan.hayward@arm.com> |
4674 | ||
4675 | * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset): | |
4676 | Move counter inside for. | |
4677 | (arm_read_description): Check ptrace earlier. | |
4678 | (arm_arch_setup): Call arm_linux_init_hwbp_cap here. | |
4679 | ||
268a13a5 TT |
4680 | 2019-07-09 Tom Tromey <tom@tromey.com> |
4681 | ||
4682 | * configure: Rebuild. | |
4683 | * configure.ac: Change common to gdbsupport. | |
4684 | * acinclude.m4: Change common to gdbsupport. | |
4685 | * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS) | |
4686 | (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change | |
4687 | common to gdbsupport. | |
4688 | * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h, | |
4689 | gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c, | |
4690 | inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c, | |
4691 | linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c, | |
4692 | linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c, | |
4693 | linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h, | |
4694 | nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c, | |
4695 | server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h, | |
4696 | thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change | |
4697 | common to gdbsupport. | |
4698 | ||
350fab54 AH |
4699 | 2019-07-04 Alan Hayward <alan.hayward@arm.com> |
4700 | ||
4701 | * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new | |
4702 | defines. | |
4703 | * linux-arm-low.c (arm_read_description, arm_regsets): Likewise. | |
4704 | ||
2b40fda7 AH |
4705 | 2019-07-04 Alan Hayward <alan.hayward@arm.com> |
4706 | ||
4707 | * configure.srv: Remove legacy xml. | |
4708 | * linux-aarch64-low.c (initialize_low_arch): Remove | |
4709 | initialize_low_tdesc call. | |
4710 | * linux-aarch64-tdesc-selftest.c: Remove file. | |
4711 | * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove. | |
4712 | * linux-x86-low.c (initialize_low_arch): Remove | |
4713 | initialize_low_tdesc call. | |
4714 | * linux-x86-tdesc-selftest.c: Remove file. | |
4715 | * linux-x86-tdesc.h (initialize_low_tdesc): Remove. | |
4716 | ||
7d10623d TV |
4717 | 2019-06-20 Tom de Vries <tdevries@suse.de> |
4718 | ||
4719 | * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use | |
4720 | s390_te_linux64_ft_collect_regmap for S390_TDESC_GS. | |
4721 | ||
8d6a48df TV |
4722 | 2019-06-19 Tom de Vries <tdevries@suse.de> |
4723 | ||
4724 | * debug.h (debug_write): Change return type to ssize_t. | |
4725 | * debug.c (debug_write): Same. | |
4726 | ||
73cc7272 TT |
4727 | 2019-06-14 Tom Tromey <tom@tromey.com> |
4728 | ||
4729 | * configure.ac: Use new path to gnulib. | |
4730 | * configure: Rebuild. | |
4731 | * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path | |
4732 | to gnulib. | |
4733 | ||
08f10e02 TT |
4734 | 2019-06-11 Tom Tromey <tom@tromey.com> |
4735 | ||
4736 | * Makefile.in (SFILES): Add alloc.c. | |
4737 | (OBS): Add alloc.o. | |
4738 | (IPA_OBJS): Add alloc-ipa.o. | |
4739 | (alloc-ipa.o): New target. | |
4740 | (%.o: ../%.c): New pattern rule. | |
4741 | ||
422186a9 TT |
4742 | 2019-06-10 Tom Tromey <tromey@adacore.com> |
4743 | ||
4744 | * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't | |
4745 | end warning with a newline. | |
4746 | * linux-s390-low.c (s390_get_wordsize): Don't end warning with a | |
4747 | newline. | |
4748 | * thread-db.c (attach_thread): Don't end warning with a newline. | |
4749 | (thread_db_notice_clone): Likewise. | |
4750 | * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a | |
4751 | newline. | |
4752 | * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't | |
4753 | end warning with a newline. | |
4754 | ||
b02f78f9 PA |
4755 | 2019-06-04 Pedro Alves <palves@redhat.com> |
4756 | ||
4757 | * server.c (captured_main): Use make_unique_xstrdup. | |
4758 | ||
88ed7edb TT |
4759 | 2019-06-02 Tom Tromey <tom@tromey.com> |
4760 | ||
4761 | * gdbreplay.c (fromhex): Remove. | |
4762 | * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o. | |
4763 | ||
33a6bc35 TT |
4764 | 2019-05-29 Tom Tromey <tromey@adacore.com> |
4765 | ||
4766 | * configure: Rebuild. | |
4767 | ||
e90a813d KB |
4768 | 2019-05-06 Kevin Buettner <kevinb@redhat.com> |
4769 | ||
4770 | * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit | |
4771 | sign extension code on 32-bit builds. | |
4772 | ||
353ea2d1 EZ |
4773 | 2019-05-03 Eli Zaretskii <eliz@gnu.org> |
4774 | ||
4775 | * remote-utils.c: | |
4776 | * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override. | |
4777 | ||
b494cdff TT |
4778 | 2019-04-19 Tom Tromey <tom@tromey.com> |
4779 | ||
4780 | * server.c (struct vstop_notif): Derive from notif_event. | |
4781 | <base>: Remove. | |
4782 | (queue_stop_reply): Update. | |
4783 | (remove_all_on_match_ptid): Change type. Rewrite. | |
4784 | (discard_queued_stop_replies): Rewrite. | |
4785 | (in_queued_stop_replies_ptid): Change type. | |
4786 | (in_queued_stop_replies): Rewrite. | |
4787 | (notif_stop): Update. | |
4788 | (queue_stop_reply_callback): Update. | |
4789 | (captured_main): Don't call initialize_notif. | |
4790 | (push_stop_notification): Update. | |
4791 | * notif.c (notif_write_event, handle_notif_ack) | |
4792 | (notif_event_enque, notif_push): Update. | |
4793 | (notif_event_xfree, initialize_notif): Remove. | |
4794 | * notif.h (struct notif_event): Include <list>, not | |
4795 | "common/queue.h". | |
4796 | (struct notif_server) <queue>: Now a std::list. | |
4797 | (notif_event_p): Remove typedef. | |
4798 | (initialize_notif): Don't declare. | |
4799 | (struct notif_event): Add virtual destructor. | |
4800 | ||
a7e559cc AH |
4801 | 2019-04-17 Alan Hayward <alan.hayward@arm.com> |
4802 | ||
4803 | * ax.c (ax_vdebug): Call debug_printf. | |
4804 | * debug.c (debug_write): New function. | |
4805 | * debug.h (debug_write): New declaration. | |
4806 | * linux-low.c (sigchld_handler): Call debug_write. | |
4807 | ||
aeb2e706 AH |
4808 | 2019-04-17 Alan Hayward <alan.hayward@arm.com> |
4809 | ||
4810 | * debug.c (debug_set_output): New function. | |
4811 | (debug_vprintf): Send output to debug_file. | |
4812 | (debug_flush): Likewise. | |
4813 | * debug.h (debug_set_output): New declaration. | |
4814 | * server.c (handle_monitor_command): Add debug-file option. | |
4815 | (captured_main): Likewise. | |
4816 | ||
c1bc0935 AH |
4817 | 2019-04-17 Alan Hayward <alan.hayward@arm.com> |
4818 | ||
4819 | * debug.c (remote_debug): Add definition. | |
4820 | * debug.h (remote_debug): Add declaration. | |
4821 | * hostio.c (remote_debug): Remove declaration. | |
4822 | * remote-utils.c (struct ui_file): Likewise. | |
4823 | (remote_debug): Likewise. | |
4824 | * remote-utils.h (remote_debug): Likewise, | |
4825 | * server.c (remote_debug): Remove definition. | |
4826 | ||
3f52fdbc KB |
4827 | 2019-04-10 Kevin Buettner <kevinb@redhat.com> |
4828 | ||
4829 | * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value | |
4830 | when using a 64-bit gdbserver. | |
4831 | ||
b0319eaa TT |
4832 | 2019-04-09 Tom Tromey <tromey@adacore.com> |
4833 | ||
4834 | * linux-low.c (select_event_lwp): Use find_thread_in_random. | |
4835 | ||
eedc3f4f TT |
4836 | 2019-04-08 Tom Tromey <tom@tromey.com> |
4837 | ||
4838 | * linux-low.c (linux_detach_one_lwp): Replace throw_exception with | |
4839 | throw. | |
4840 | (linux_resume_one_lwp): Likewise. | |
4841 | ||
230d2906 TT |
4842 | 2019-04-08 Tom Tromey <tom@tromey.com> |
4843 | ||
4844 | * gdbreplay.c: Update. | |
4845 | * linux-low.c: Update. | |
4846 | * server.c: Update. | |
4847 | ||
a70b8144 TT |
4848 | 2019-04-08 Tom Tromey <tom@tromey.com> |
4849 | ||
4850 | * server.c: Use C++ exception handling. | |
4851 | * linux-low.c: Use C++ exception handling. | |
4852 | * gdbreplay.c: Use C++ exception handling. | |
4853 | ||
3d6e9d23 TT |
4854 | 2019-04-08 Tom Tromey <tom@tromey.com> |
4855 | ||
4856 | * server.c (handle_btrace_general_set, handle_qxfer_btrace) | |
4857 | (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup) | |
4858 | (captured_main, main): Update. | |
4859 | * gdbreplay.c (main): Update. | |
4860 | ||
0570503d PFC |
4861 | 2019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> |
4862 | ||
4863 | * linux-low.c (linux_get_auxv): Remove static. Return auxv entry | |
4864 | value in argument pointer, return 1 if the entry is found and 0 | |
4865 | otherwise. Move comment. | |
4866 | (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv. | |
4867 | * linux-low.h (linux_get_auxv): Declare. | |
4868 | * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv. | |
4869 | ||
227a9e65 TT |
4870 | 2019-04-05 Tom Tromey <tromey@adacore.com> |
4871 | ||
4872 | * server.c (gdbserver_usage): Use upper-case for metasyntactic | |
4873 | variables. | |
4874 | ||
69f4c9cc AH |
4875 | 2019-03-28 Alan Hayward <alan.hayward@arm.com> |
4876 | ||
4877 | * linux-low.c (AT_HWCAP2): Add define if not already included. | |
4878 | ||
974c89e0 AH |
4879 | 2019-03-26 Alan Hayward <alan.hayward@arm.com> |
4880 | ||
4881 | * linux-aarch64-low.c (aarch64_get_hwcap): Remove function. | |
4882 | (aarch64_arch_setup): Call linux_get_hwcap. | |
4883 | * linux-arm-low.c (arm_get_hwcap): Remove function. | |
4884 | (arm_read_description): Call linux_get_hwcap. | |
4885 | * linux-low.c (linux_get_auxv): New function. | |
4886 | (linux_get_hwcap): Likewise. | |
4887 | (linux_get_hwcap2): Likewise. | |
4888 | * linux-low.h (linux_get_hwcap): New declaration. | |
4889 | (linux_get_hwcap2): Likewise. | |
4890 | * linux-ppc-low.c (ppc_get_auxv): Remove function. | |
4891 | (ppc_arch_setup): Call linux_get_hwcap. | |
4892 | * linux-s390-low.c (s390_get_hwcap): Remove function. | |
4893 | (s390_arch_setup): Call linux_get_hwcap. | |
4894 | ||
1ef53e6b AH |
4895 | 2019-03-22 Alan Hayward <alan.hayward@arm.com> |
4896 | Jiong Wang <jiong.wang@arm.com> | |
4897 | ||
4898 | * linux-aarch64-low.c (aarch64_store_pauthregset): New function. | |
4899 | * linux-low.c (regsets_store_inferior_registers): Allow optional reads | |
4900 | to fail. | |
4901 | * linux-low.h (enum regset_type): Add OPTIONAL_REGS. | |
4902 | ||
ee4fbcfa AH |
4903 | 2019-03-22 Alan Hayward <alan.hayward@arm.com> |
4904 | Jiong Wang <jiong.wang@arm.com> | |
4905 | ||
4906 | * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define. | |
4907 | (aarch64_get_hwcap): New function. | |
4908 | (aarch64_arch_setup): Read APIA hwcap. | |
4909 | ||
6dc0ebde AH |
4910 | 2019-03-22 Alan Hayward <alan.hayward@arm.com> |
4911 | Jiong Wang <jiong.wang@arm.com> | |
4912 | ||
4913 | * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param. | |
4914 | (initialize_low_tracepoint): Likewise. | |
4915 | * linux-aarch64-low.c (aarch64_arch_setup): Likewise. | |
4916 | * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise. | |
4917 | * linux-aarch64-tdesc.c (struct target_desc): Likewise. | |
4918 | (aarch64_linux_read_description): Likewise. | |
4919 | * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise. | |
4920 | ||
1163a4b7 JB |
4921 | 2019-03-12 John Baldwin <jhb@FreeBSD.org> |
4922 | ||
4923 | * linux-x86-tdesc.c (i386_linux_read_description): Update call to | |
4924 | i386_create_target_description for 'segments' parameter. | |
4925 | * lynx-i386-low.c (lynx_i386_arch_setup): Likewise. | |
4926 | * nto-x86-low.c (nto_x86_arch_setup): Likewise. | |
4927 | * win32-i386-low.c (i386_arch_setup): Likewise. | |
4928 | ||
d3a70e03 TT |
4929 | 2019-03-12 Tom Tromey <tromey@adacore.com> |
4930 | ||
4931 | * linux-low.c (iterate_over_lwps): Update. | |
4932 | ||
37991b4f TT |
4933 | 2019-03-06 Tom Tromey <tom@tromey.com> |
4934 | ||
4935 | * server.c (detach_or_kill_for_exit_cleanup): Remove parameter. | |
4936 | (captured_main): Use SCOPE_EXIT. | |
4937 | ||
45950eb6 SDJ |
4938 | 2019-03-04 Sergio Durigan Junior <sergiodj@redhat.com> |
4939 | ||
4940 | * configure.srv: Use '$enable_unittest' instead of '$development' | |
4941 | when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*' | |
4942 | case. | |
4943 | ||
43ac54fc TT |
4944 | 2019-02-27 Tom Tromey <tromey@adacore.com> |
4945 | ||
4946 | * gdbreplay.c (logchar): Handle \r\n. | |
4947 | ||
df0da8a2 AH |
4948 | 2019-02-07 Alan Hayward <alan.hayward@arm.com> |
4949 | ||
4950 | * linux-low.c (linux_attach): Add process before lwp. | |
4951 | * server.c (attach_inferior): Check if already attached. | |
4952 | ||
1a5c2598 TT |
4953 | 2019-02-07 Tom Tromey <tom@tromey.com> |
4954 | ||
4955 | * x86-tdesc.h: Rename include guard. | |
4956 | * x86-low.h: Add include guard. | |
4957 | * wincecompat.h: Rename include guard. | |
4958 | * win32-low.h: Add include guard. | |
4959 | * utils.h: Rename include guard. | |
4960 | * tracepoint.h: Rename include guard. | |
4961 | * tdesc.h: Rename include guard. | |
4962 | * target.h: Rename include guard. | |
4963 | * server.h: Rename include guard. | |
4964 | * remote-utils.h: Rename include guard. | |
4965 | * regcache.h: Rename include guard. | |
4966 | * nto-low.h: Rename include guard. | |
4967 | * notif.h: Add include guard. | |
4968 | * mem-break.h: Rename include guard. | |
4969 | * lynx-low.h: Add include guard. | |
4970 | * linux-x86-tdesc.h: Add include guard. | |
4971 | * linux-s390-tdesc.h: Add include guard. | |
4972 | * linux-ppc-tdesc-init.h: Add include guard. | |
4973 | * linux-low.h: Add include guard. | |
4974 | * linux-aarch64-tdesc.h: Add include guard. | |
4975 | * linux-aarch32-low.h: Add include guard. | |
4976 | * inferiors.h: Rename include guard. | |
4977 | * i387-fp.h: Rename include guard. | |
4978 | * hostio.h: Rename include guard. | |
4979 | * gdbthread.h: Rename include guard. | |
4980 | * gdb_proc_service.h: Rename include guard. | |
4981 | * event-loop.h: Rename include guard. | |
4982 | * dll.h: Rename include guard. | |
4983 | * debug.h: Rename include guard. | |
4984 | * ax.h: Rename include guard. | |
4985 | ||
956cc47c SN |
4986 | 2018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com> |
4987 | ||
4988 | PR gdb/23985 | |
4989 | * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS. | |
4990 | (UNDO_GNULIB_CFLAGS): Undo gnulib replacements. | |
4991 | ||
a0707f3c TT |
4992 | 2019-01-25 Tom Tromey <tom@tromey.com> |
4993 | ||
4994 | * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common. | |
4995 | ||
0747795c TT |
4996 | 2019-01-25 Tom Tromey <tom@tromey.com> |
4997 | ||
4998 | * win32-low.c: Fix common/ includes. | |
4999 | * win32-i386-low.c: Fix common/ includes. | |
5000 | * tracepoint.c: Fix common/ includes. | |
5001 | * thread-db.c: Fix common/ includes. | |
5002 | * target.h: Fix common/ includes. | |
5003 | * symbol.c: Fix common/ includes. | |
5004 | * spu-low.c: Fix common/ includes. | |
5005 | * server.h: Fix common/ includes. | |
5006 | * server.c: Fix common/ includes. | |
5007 | * remote-utils.c: Fix common/ includes. | |
5008 | * regcache.h: Fix common/ includes. | |
5009 | * regcache.c: Fix common/ includes. | |
5010 | * nto-x86-low.c: Fix common/ includes. | |
5011 | * notif.h: Fix common/ includes. | |
5012 | * mem-break.h: Fix common/ includes. | |
5013 | * lynx-low.c: Fix common/ includes. | |
5014 | * lynx-i386-low.c: Fix common/ includes. | |
5015 | * linux-x86-tdesc-selftest.c: Fix common/ includes. | |
5016 | * linux-x86-low.c: Fix common/ includes. | |
5017 | * linux-low.c: Fix common/ includes. | |
5018 | * inferiors.h: Fix common/ includes. | |
5019 | * i387-fp.c: Fix common/ includes. | |
5020 | * hostio.c: Fix common/ includes. | |
5021 | * hostio-errno.c: Fix common/ includes. | |
5022 | * gdbthread.h: Fix common/ includes. | |
5023 | * gdbreplay.c: Fix common/ includes. | |
5024 | * fork-child.c: Fix common/ includes. | |
5025 | * event-loop.c: Fix common/ includes. | |
5026 | * ax.c: | |
5027 | (enum gdb_agent_op): Fix common/ includes. | |
5028 | ||
be6d4f74 TT |
5029 | 2019-01-21 Tom Tromey <tom@tromey.com> |
5030 | ||
5031 | * tracepoint.c: Fix includes. | |
5032 | * remote-utils.c: Fix includes. | |
5033 | * linux-x86-low.c: Fix includes. | |
5034 | ||
66d91b39 JB |
5035 | 2019-01-01 Joel Brobecker <brobecker@adacore.com> |
5036 | ||
5037 | * gdbreplay.c (gdbreplay_version): Update copyright year in | |
5038 | version message. | |
5039 | * server.c (gdbserver_version): Likewise. | |
5040 | ||
754e3168 AH |
5041 | 2018-12-05 Alan Hayward <alan.hayward@arm.com> |
5042 | ||
5043 | * linux-low.c (add_lwp): Switch ordering. | |
5044 | ||
d105de22 TT |
5045 | 2018-11-29 Tom Tromey <tom@tromey.com> |
5046 | ||
5047 | * win32-low.c (win32_join): Take pid, not process. | |
5048 | * target.h (struct target_ops) <join>: Change argument type. | |
5049 | (join_inferior): Change argument name. | |
5050 | * spu-low.c (spu_join): Take pid, not process. | |
5051 | * server.c (handle_detach): Preserve pid before destroying | |
5052 | process. | |
5053 | * lynx-low.c (lynx_join): Take pid, not process. | |
5054 | * linux-low.c (linux_join): Take pid, not process. | |
5055 | ||
50138245 AH |
5056 | 2018-11-23 Alan Hayward <alan.hayward@arm.com> |
5057 | ||
5058 | * linux-aarch64-low.c (aarch64_cannot_store_register): Remove. | |
5059 | (aarch64_cannot_fetch_register): Likewise. | |
5060 | (struct linux_target_ops): Update references. | |
5061 | ||
64f57f3d PFC |
5062 | 2018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> |
5063 | ||
5064 | * linux-ppc-low.c: Include nat/linux-ptrace.h. | |
5065 | ||
8d619c01 EBM |
5066 | 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> |
5067 | ||
5068 | * configure.srv (ipa_ppc_linux_regobj): Add | |
5069 | powerpc-isa207-htm-vsx32l-ipa.o and | |
5070 | powerpc-isa207-htm-vsx64l-ipa.o. | |
5071 | (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and | |
5072 | powerpc-isa207-htm-vsx64l.o to srv_regobj. Add | |
5073 | rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml, | |
5074 | rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml, | |
5075 | rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml, | |
5076 | rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml, | |
5077 | rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml, | |
5078 | and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles. | |
5079 | * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc) | |
5080 | <PPC_TDESC_ISA207_HTM_VSX>: New enum value. | |
5081 | (init_registers_powerpc_isa207_htm_vsx32l) | |
5082 | (init_registers_powerpc_isa207_htm_vsx64l): Declare. | |
5083 | * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset) | |
5084 | (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset) | |
5085 | (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset) | |
5086 | (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset) | |
5087 | (ppc_store_tm_ctarregset): New functions. | |
5088 | (ppc_regsets): Add entries for HTM regsets. | |
5089 | (ppc_arch_setup): Set htm in features struct when needed. Set | |
5090 | sizes for the HTM regsets. | |
5091 | (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX. | |
5092 | (initialize_low_arch): Call | |
5093 | init_registers_powerpc_isa207_htm_vsx32l and | |
5094 | init_registers_powerpc_isa207_htm_vsx64l. | |
5095 | * linux-ppc-ipa.c (get_ipa_tdesc): Handle | |
5096 | PPC_TDESC_ISA207_HTM_VSX. | |
5097 | (initialize_low_tracepoint): Call | |
5098 | init_registers_powerpc_isa207_htm_vsx32l and | |
5099 | init_registers_powerpc_isa207_htm_vsx64l. | |
5100 | ||
232bfb86 EBM |
5101 | 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> |
5102 | ||
5103 | * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and | |
5104 | rs6000/power-linux-pmu.xml to srv_xmlfiles. | |
5105 | * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset) | |
5106 | (ppc_store_pmuregset): New functions. | |
5107 | (ppc_regsets): Add entries for ebb and pmu regsets. | |
5108 | (ppc_arch_setup): Set isa207 in features struct if the ebb and | |
5109 | pmu regsets are available. Set sizes for these regsets. | |
5110 | ||
f2cf6173 EBM |
5111 | 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> |
5112 | ||
5113 | * configure.srv (ipa_ppc_linux_regobj): Add | |
5114 | powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o. | |
5115 | (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and | |
5116 | powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml, | |
5117 | rs6000/powerpc-isa207-vsx32l.xml, and | |
5118 | rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles. | |
5119 | * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc) | |
5120 | <PPC_TDESC_ISA207_VSX>: New enum value. | |
5121 | (init_registers_powerpc_isa207_vsx32l): Declare. | |
5122 | (init_registers_powerpc_isa207_vsx64l): Declare. | |
5123 | * linux-ppc-low.c (ppc_fill_tarregset): New function. | |
5124 | (ppc_store_tarregset): New function. | |
5125 | (ppc_regsets): Add entry for the TAR regset. | |
5126 | (ppc_arch_setup): Set isa207 in features struct when needed. Set | |
5127 | size for the TAR regsets. | |
5128 | (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX. | |
5129 | (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l | |
5130 | and init_registers_powerpc_isa207_vsx64l. | |
5131 | * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX. | |
5132 | (initialize_low_tracepoint): Call | |
5133 | init_registers_powerpc_isa207_vsx32l and | |
5134 | init_registers_powerpc_isa207_vsx64l. | |
5135 | ||
7ca18ed6 EBM |
5136 | 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com> |
5137 | Pedro Franco de Carvalho <pedromfc@linux.ibm.com> | |
5138 | ||
5139 | * configure.srv (ipa_ppc_linux_regobj): Add | |
5140 | powerpc-isa205-ppr-dscr-vsx32l-ipa.o and | |
5141 | powerpc-isa205-ppr-dscr-vsx64l-ipa.o. | |
5142 | (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and | |
5143 | powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add | |
5144 | rs6000/power-dscr.xml, rs6000/power-ppr.xml, | |
5145 | rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and | |
5146 | rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles. | |
5147 | * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc) | |
5148 | <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value. | |
5149 | (init_registers_powerpc_isa205_ppr_dscr_vsx32l) | |
5150 | (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare. | |
5151 | * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>. | |
5152 | (ppc_hwcap): Add comment. | |
5153 | (ppc_hwcap2): New global. | |
5154 | (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset) | |
5155 | (ppc_fill_dscrregset, ppc_store_dscrregset): New functions. | |
5156 | (ppc_regsets): Add entries for the DSCR and PPR regsets. | |
5157 | (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct | |
5158 | when needed. Set sizes for the the DSCR and PPR regsets. | |
5159 | (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX. | |
5160 | (initialize_low_arch): Call | |
5161 | init_registers_powerpc_isa205_ppr_dscr_vsx32l and | |
5162 | init_registers_powerpc_isa205_ppr_dscr_vsx64l. | |
5163 | * linux-ppc-ipa.c (get_ipa_tdesc): Handle | |
5164 | PPC_TDESC_ISA205_PPR_DSCR_VSX. | |
5165 | (initialize_low_tracepoint): Call | |
5166 | init_registers_powerpc_isa205_ppr_dscr_vsx32l and | |
5167 | init_registers_powerpc_isa205_ppr_dscr_vsx64l. | |
5168 | ||
5c849b22 PFC |
5169 | 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> |
5170 | ||
5171 | * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls. | |
5172 | ||
8ecfd7bd SDJ |
5173 | 2018-10-10 Sergio Durigan Junior <sergiodj@redhat.com> |
5174 | Simon Marchi <simark@simark.ca> | |
5175 | ||
5176 | * acinclude.m4: Include "../selftest.m4". | |
5177 | * configure: Regenerate. | |
5178 | * configure.ac: Use "GDB_AC_SELFTEST". | |
5179 | * configure.srv: Use "$enable_unittests" instead of | |
5180 | "$development" when checking whether unit tests have been | |
5181 | enabled. | |
5182 | * server.c (captured_main): Update message informing that | |
5183 | selftests have been disabled. | |
5184 | ||
96643e35 TT |
5185 | 2018-10-04 Tom Tromey <tom@tromey.com> |
5186 | ||
5187 | * configure: Rebuild. | |
5188 | ||
da4ae14a TT |
5189 | 2018-10-04 Tom Tromey <tom@tromey.com> |
5190 | ||
5191 | * server.c (handle_status): Rename inner "thread". | |
5192 | (process_serial_event): Declare "res" in 'm' case. | |
5193 | * linux-low.c (last_thread_of_process_p, find_lwp_pid) | |
5194 | (iterate_over_lwps): Rename inner "thread". | |
5195 | (linux_qxfer_libraries_svr4): Rename inner "len". | |
5196 | * gdbthread.h (find_thread_in_random): Rename inner "thread". | |
5197 | ||
7c619dbd GB |
5198 | 2018-10-01 Gary Benson <gbenson@redhat.com> |
5199 | ||
5200 | * gdb_proc_service.h: Moved common code to | |
5201 | common/gdb_proc_service.h. | |
5202 | ||
3795e814 GB |
5203 | 2018-10-01 Gary Benson <gbenson@redhat.com> |
5204 | ||
5205 | * gdb_proc_service.h: Synchronize comments and whitespace with | |
5206 | GDB's version of this file. | |
5207 | ||
49b036f1 TT |
5208 | 2018-09-25 Tom Tromey <tom@tromey.com> |
5209 | ||
5210 | * configure: Rebuild. | |
5211 | * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes. | |
5212 | ||
8ff03f0b SM |
5213 | 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca> |
5214 | ||
5215 | * Makefile.in (gdbserver$(EXEEXT)): Sort OBS. | |
5216 | (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS. | |
5217 | ($(IPA_LIB)): Sort IPA_OBJS. | |
5218 | ||
a1cd91dc SM |
5219 | 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca> |
5220 | ||
5221 | * Makefile.in: Remove references to $(ADD_DEPS). | |
5222 | ||
752312ba TT |
5223 | 2018-09-16 Tom Tromey <tom@tromey.com> |
5224 | ||
5225 | * remote-utils.c (remote_open): Use GNU style for metasyntactic | |
5226 | variables. | |
5227 | * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic | |
5228 | variables. | |
5229 | ||
f1628857 TT |
5230 | 2018-09-05 Tom Tromey <tom@tromey.com> |
5231 | ||
5232 | * configure: Rebuild. | |
5233 | ||
ad202fcc SM |
5234 | 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca> |
5235 | ||
5236 | PR build/23399 | |
5237 | * tracepoint.c (IPA_SYM_STRUCT_NAME): Define. | |
5238 | ||
d3d8724a TT |
5239 | 2018-08-27 Tom Tromey <tom@tromey.com> |
5240 | ||
5241 | PR build/23087: | |
5242 | * configure: Rebuild. | |
5243 | ||
b4f183d2 TT |
5244 | 2018-08-27 Tom Tromey <tom@tromey.com> |
5245 | ||
5246 | * linux-s390-low.c (s390_emit_ext, s390_emit_litpool) | |
5247 | (s390_emit_const, s390_emit_reg, s390_emit_zero_ext) | |
5248 | (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext) | |
5249 | (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext) | |
5250 | (s390x_emit_stack_adjust): Add casts to unsigned char. | |
5251 | ||
4e2aa472 SM |
5252 | 2018-08-22 Simon Marchi <simon.marchi@ericsson.com> |
5253 | ||
5254 | PR gdb/23374 | |
5255 | PR gdb/23375 | |
5256 | * server.h (struct client_state) <disable_randomization>: | |
5257 | Initialize to 1. | |
5258 | ||
cf4088a9 SM |
5259 | 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca> |
5260 | ||
5261 | * linux-mips-low.c (mips_collect_ptrace_register): Remove unused | |
5262 | variable. | |
5263 | (mips_supply_ptrace_register): Likewise. | |
5264 | ||
a0de763e TT |
5265 | 2018-07-22 Tom Tromey <tom@tromey.com> |
5266 | ||
5267 | * configure: Rebuild. | |
5268 | ||
b0a7723d TT |
5269 | 2018-07-22 Tom Tromey <tom@tromey.com> |
5270 | ||
5271 | * win32-low.c (win32_create_inferior): Remove unused variables. | |
5272 | * gdbreplay.c (remote_open): Remove unused variable. | |
5273 | * remote-utils.c (remote_prepare): Remove unused variable. | |
5274 | * x86-tdesc.h (X86_TDESC_H): Define. | |
5275 | (amd64_expedite_regs): Define conditionally. | |
5276 | (i386_expedite_regs): Mark ATTRIBUTE_UNUSED. | |
5277 | * linux-x86-tdesc.c (i386_tdescs): Move inside #if. | |
5278 | * remote-utils.c (readchar): Remove unused variable. | |
5279 | ||
a780ef4f PA |
5280 | 2018-07-13 Pedro Alves <palves@redhat.com> |
5281 | ||
5282 | * linux-low.c (linux_kill): Change parameter to process_info | |
5283 | pointer instead of pid. Adjust. | |
5284 | * lynx-low.c (lynx_kill): Likewise. | |
5285 | * nto-low.c (nto_kill): Likewise. | |
5286 | * spu-low.c (spu_kill): Likewise. | |
5287 | * win32-low.c (win32_kill): Likewise. | |
5288 | * server.c (handle_v_kill, kill_inferior_callback) | |
5289 | (detach_or_kill_for_exit): Adjust. | |
5290 | * target.c (kill_inferior): Change parameter to process_info | |
5291 | pointer instead of pid. Adjust. | |
5292 | * target.h (struct target_ops) <kill>: Change parameter to | |
5293 | process_info pointer instead of pid. Adjust all implementations | |
5294 | and callers. | |
5295 | (kill_inferior): Likewise. | |
5296 | ||
ef2ddb33 PA |
5297 | 2018-07-13 Pedro Alves <palves@redhat.com> |
5298 | ||
5299 | * linux-low.c (linux_detach, linux_join): Change parameter to | |
5300 | process_info pointer instead of pid. Adjust. | |
5301 | * lynx-low.c (lynx_detach, lynx_join): Likewise. | |
5302 | * nto-low.c (nto_detach): Likewise. | |
5303 | * spu-low.c (spu_detach, spu_join): Likewise. | |
5304 | * win32-low.c (win32_detach, win32_join): Likewise. | |
5305 | * server.c (handle_detach, detach_or_kill_for_exit): Adjust. | |
5306 | * target.h (struct target_ops) <detach, join>: Change parameter to | |
5307 | process_info pointer instead of pid. Adjust all implementations | |
5308 | and callers. | |
5309 | (detach_inferior, join_inferior): Rename 'pid' parameter to | |
5310 | 'proc'. | |
5311 | ||
c7ab0aef SDJ |
5312 | 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com> |
5313 | Jan Kratochvil <jan.kratochvil@redhat.com> | |
5314 | Paul Fertser <fercerpav@gmail.com> | |
5315 | Tsutomu Seki <sekiriki@gmail.com> | |
5316 | ||
5317 | * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'. | |
5318 | (OBS): Add 'common/netstuff.o'. | |
5319 | (GDBREPLAY_OBS): Likewise. | |
5320 | * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'. | |
5321 | (remote_open): Implement support for IPv6 | |
5322 | connections. | |
5323 | * remote-utils.c: Include 'netstuff.h', 'filestuff.h' | |
5324 | and 'wspiapi.h'. | |
5325 | (handle_accept_event): Accept connections from IPv6 sources. | |
5326 | (remote_prepare): Handle IPv6-style hostnames; implement | |
5327 | support for IPv6 connections. | |
5328 | (remote_open): Implement support for printing connections from | |
5329 | IPv6 sources. | |
5330 | ||
31445d10 PA |
5331 | 2018-07-11 Pedro Alves <palves@redhat.com> |
5332 | ||
5333 | PR gdb/23377 | |
5334 | * mem-break.c (any_persistent_commands): Add process_info | |
5335 | parameter and use it instead of relying on the current process. | |
5336 | Change return type to bool. | |
5337 | * mem-break.h (any_persistent_commands): Add process_info | |
5338 | parameter and change return type to bool. | |
5339 | * server.c (handle_detach): Remove require_running_or_return call. | |
5340 | Look up the process_info for the process we're about to detach. | |
5341 | If not found, return back error to GDB. Adjust | |
5342 | any_persistent_commands call to pass down a process pointer. | |
5343 | ||
cb197132 PA |
5344 | 2018-07-11 Pedro Alves <palves@redhat.com> |
5345 | ||
5346 | * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave) | |
5347 | (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name | |
5348 | instead of collect_register_by_name. | |
5349 | * regcache.c (regcache_raw_get_unsigned_by_name): New. | |
5350 | * regcache.h (regcache_raw_get_unsigned_by_name): New. | |
5351 | ||
1b919490 VB |
5352 | 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com> |
5353 | Pedro Alves <palves@redhat.com> | |
5354 | ||
5355 | * linux-low.c (initialize_low): Call linux_proc_init_warnings. | |
5356 | ||
d7e15655 TT |
5357 | 2018-07-03 Tom Tromey <tom@tromey.com> |
5358 | ||
5359 | * linux-low.c: Update. | |
5360 | * lynx-low.c: Update. | |
5361 | * mem-break.c: Update. | |
5362 | * nto-low.c: Update. | |
5363 | * remote-utils.c: Update. | |
5364 | * server.c: Update. | |
5365 | * spu-low.c: Update. | |
5366 | * target.c: Update. | |
5367 | * win32-low.c: Update. | |
5368 | ||
26a57c92 TT |
5369 | 2018-07-03 Tom Tromey <tom@tromey.com> |
5370 | ||
5371 | * server.c: Update. | |
5372 | ||
0e998d96 TT |
5373 | 2018-07-03 Tom Tromey <tom@tromey.com> |
5374 | ||
5375 | * linux-low.c: Update. | |
5376 | ||
cc6bcb54 TT |
5377 | 2018-07-03 Tom Tromey <tom@tromey.com> |
5378 | ||
5379 | * target.c: Update. | |
5380 | ||
e38504b3 TT |
5381 | 2018-07-03 Tom Tromey <tom@tromey.com> |
5382 | ||
5383 | * linux-low.c: Update. | |
5384 | * linux-mips-low.c: Update. | |
5385 | * lynx-low.c: Update. | |
5386 | * nto-low.c: Update. | |
5387 | * remote-utils.c: Update. | |
5388 | * server.c: Update. | |
5389 | * spu-low.c: Update. | |
5390 | * target.c: Update. | |
5391 | * thread-db.c: Update. | |
5392 | ||
e99b03dc TT |
5393 | 2018-07-03 Tom Tromey <tom@tromey.com> |
5394 | ||
5395 | * linux-low.c: Update. | |
5396 | * linux-mips-low.c: Update. | |
5397 | * lynx-low.c: Update. | |
5398 | * mem-break.c: Update. | |
5399 | * nto-low.c: Update. | |
5400 | * remote-utils.c: Update. | |
5401 | * server.c: Update. | |
5402 | * spu-low.c: Update. | |
5403 | * target.c: Update. | |
5404 | * tracepoint.c: Update. | |
5405 | ||
f2907e49 TT |
5406 | 2018-07-03 Tom Tromey <tom@tromey.com> |
5407 | ||
5408 | * linux-low.c: Update. | |
5409 | * linux-ppc-low.c: Update. | |
5410 | * linux-x86-low.c: Update. | |
5411 | * proc-service.c: Update. | |
5412 | * server.c: Update. | |
5413 | * spu-low.c: Update. | |
5414 | * thread-db.c: Update. | |
5415 | * win32-low.c: Update. | |
5416 | ||
fd79271b TT |
5417 | 2018-07-03 Tom Tromey <tom@tromey.com> |
5418 | ||
5419 | * linux-low.c: Update. | |
5420 | * lynx-low.c: Update. | |
5421 | * nto-low.c: Update. | |
5422 | * remote-utils.c: Update. | |
5423 | * spu-low.c: Update. | |
5424 | * thread-db.c: Update. | |
5425 | * win32-low.c: Update. | |
5426 | ||
c0867626 SDJ |
5427 | 2018-06-29 Joel Brobecker <brobecker@adacore.com> |
5428 | ||
5429 | * linux-x86-tdesc.c (amd64_linux_read_description): Add missing | |
5430 | parameter in call to 'amd64_create_target_description'. | |
5431 | ||
2512d7ef JK |
5432 | 2018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
5433 | ||
5434 | * x86-tdesc.h: Remove executable permission flag. | |
5435 | ||
d0ac1c44 SM |
5436 | 2018-06-19 Simon Marchi <simon.marchi@ericsson.com> |
5437 | ||
5438 | * configure.ac: Remove AC_PREREQ, add missing quoting. | |
5439 | * configure: Re-generate. | |
5440 | * config.in: Re-generate. | |
5441 | * aclocal.m4: Re-generate. | |
5442 | ||
c4eb05ff SM |
5443 | 2018-06-18 Simon Marchi <simon.marchi@ericsson.com> |
5444 | ||
5445 | * tracepoint.h (current_traceframe): Remove declaration. | |
5446 | ||
02895270 AH |
5447 | 2018-06-18 Alan Hayward <alan.hayward@arm.com> |
5448 | ||
5449 | * linux-aarch64-low.c (is_sve_tdesc): New function. | |
5450 | (aarch64_sve_regs_copy_to_regcache): Likewise. | |
5451 | (aarch64_sve_regs_copy_from_regcache): Likewise. | |
5452 | (aarch64_regs_info): Add SVE checks. | |
5453 | (initialize_low_arch): Initialize SVE. | |
5454 | ||
e9902bfc AH |
5455 | 2018-06-18 Alan Hayward <alan.hayward@arm.com> |
5456 | ||
5457 | * Makefile.in: Add aarch64-sve-linux-ptrace.c. | |
5458 | ||
fefa175e AH |
5459 | 2018-06-11 Alan Hayward <alan.hayward@arm.com> |
5460 | ||
5461 | * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param. | |
5462 | (initialize_low_tracepoint): Likewise | |
5463 | * linux-aarch64-low.c (aarch64_arch_setup): Get VQ. | |
5464 | * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ | |
5465 | param. | |
5466 | * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ | |
5467 | checks. | |
5468 | * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ. | |
5469 | ||
b91ad3ff AH |
5470 | 2018-06-11 Alan Hayward <alan.hayward@arm.com> |
5471 | ||
5472 | * server.h (PBUFSIZ): Increase size | |
5473 | ||
f868386e AH |
5474 | 2018-06-11 Alan Hayward <alan.hayward@arm.com> |
5475 | ||
5476 | * regcache.c (regcache::raw_compare): New function. | |
5477 | * regcache.h (regcache::raw_compare): New declaration. | |
5478 | ||
9c861883 AH |
5479 | 2018-06-11 Alan Hayward <alan.hayward@arm.com> |
5480 | ||
5481 | * regcache.c (new_register_cache): Use new. | |
5482 | (free_register_cache): Use delete. | |
5483 | (register_data): Use const. | |
5484 | (supply_register): Move body inside regcache. | |
5485 | (regcache::raw_supply): New override function. | |
5486 | (collect_register): Move body inside regcache. | |
5487 | (regcache::raw_collect): New override function. | |
5488 | (regcache::get_register_status): New override function. | |
5489 | * regcache.h (struct regcache): Inherit from reg_buffer_common. | |
5490 | ||
40591844 TT |
5491 | 2018-06-09 Tom Tromey <tom@tromey.com> |
5492 | ||
5493 | * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't | |
5494 | declare queue. | |
5495 | (event_queue): Use std::queue. | |
5496 | (gdb_event_xfree): Remove. | |
5497 | (initialize_event_loop, process_event, wait_for_event): Update. | |
5498 | ||
6341380d SC |
5499 | 2018-06-08 Stan Cox <scox@redhat.com> |
5500 | ||
5501 | * win32-low.c (win32_create_inferior): last_ptid and last_status | |
5502 | moved to client_state. | |
5503 | ||
03349c93 PA |
5504 | 2018-06-08 Pedro Alves <palves@redhat.com> |
5505 | ||
5506 | * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o, | |
5507 | common/common-exceptions.o, common/common-utils.o, | |
5508 | common/errors.o, common/print-utils.o and utils.o. | |
5509 | * gdbreplay.c: Include "common-defs.h" instead of the two | |
5510 | 'config.h's here. Don't include stdio.h, errno.h, stdlib.h, | |
5511 | string.h or alloca.h. | |
5512 | (perror_with_name): Delete. | |
5513 | (remote_open): Use xstrdup instead of strdup. | |
5514 | (main): Rename to ... | |
5515 | (captured_main): ... this. | |
5516 | (main): New. | |
5517 | ||
8dcc53b3 TT |
5518 | 2018-06-08 Tom Tromey <tom@tromey.com> |
5519 | ||
5520 | * linux-low.c (linux_low_read_btrace): Update. | |
5521 | ||
c12a5089 SC |
5522 | 2018-06-04 Stan Cox <scox@redhat.com> |
5523 | ||
5524 | * server.h (struct client_state): New. | |
5525 | * server.c (cont_thread, general_thread, multi_process) | |
5526 | (report_fork_events, report_vfork_events, report_exec_events) | |
5527 | (report_thread_events, swbreak_feature, hwbreak_feature) | |
5528 | (vCont_supported, disable_randomization, pass_signals) | |
5529 | (program_signals, program_signals_p, last_status, last_ptid, own_buf): | |
5530 | Moved to client_state. | |
5531 | * remote-utils.c (remote_debug, noack_mode) | |
5532 | (transport_is_reliable): Moved to client_state. | |
5533 | * tracepoint.c (current_traceframe): Moved to client_state. | |
5534 | ||
5535 | Update all callers. | |
5536 | * server.c, remote-utils.c, tracepoint.c, fork-child.c, | |
5537 | linux-low.c, remote-utils.h, target.c: Use client_state. | |
5538 | ||
122394f1 AH |
5539 | 2018-05-31 Alan Hayward <alan.hayward@arm.com> |
5540 | ||
5541 | * configure.srv: Add new c/h file. | |
5542 | ||
95228a0d AH |
5543 | 2018-05-31 Alan Hayward <alan.hayward@arm.com> |
5544 | ||
5545 | * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add | |
5546 | null VQ. | |
5547 | ||
d8dab6c3 MR |
5548 | 2018-05-25 Maciej W. Rozycki <macro@mips.com> |
5549 | ||
5550 | * gdb.arch/mips-fpregset-core.exp: New test. | |
5551 | * gdb.arch/mips-fpregset-core.c: New test source. | |
5552 | ||
81e25b7c EK |
5553 | 2018-05-23 Erik Kurzinger <ekurzinger@nvidia.com> |
5554 | ||
5555 | PR server/23198 | |
5556 | * hostio.c (require_int): Do not report overflow for integers | |
5557 | between 0xfffffff and 0x7fffffff. | |
5558 | ||
7e947ad3 MR |
5559 | 2018-05-22 Maciej W. Rozycki <macro@mips.com> |
5560 | ||
5561 | * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register) | |
5562 | (mips_supply_register): Move outside HAVE_PTRACE_GETREGS. | |
5563 | (mips_collect_ptrace_register, mips_supply_ptrace_register): New | |
5564 | functions. | |
5565 | (the_low_target): Wire them. | |
5566 | ||
1d75a658 PFC |
5567 | 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com> |
5568 | ||
5569 | * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable. | |
5570 | Set vscr_offset to 0 in little-endian mode and 12 in big-endian | |
5571 | mode. Call collect_register_by_name with vscr using | |
5572 | vscr_offset. Zero-pad vscr and vrsave fields in collector buffer. | |
5573 | (ppc_store_vrregset): Add and set vscr_offset variable as in | |
5574 | ppc_fill_vrregset. Call supply_register_by_name with vscr using | |
5575 | vscr_offset. | |
5576 | ||
d078308a PFC |
5577 | 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com> |
5578 | ||
5579 | * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove. | |
5580 | (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to | |
5581 | PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET. | |
5582 | ||
7273b5fc PFC |
5583 | 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com> |
5584 | ||
5585 | * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check. | |
5586 | (ppc_store_vsxregset): Likewise. | |
5587 | (ppc_fill_vrregset): Likewise. | |
5588 | (ppc_store_vrregset): Likewise. | |
5589 | (ppc_fill_evrregset): Likewise. | |
5590 | (ppc_store_evrregset): Likewise. | |
5591 | (ppc_regsets): Set VSX/VR/EVR regset sizes to 0. | |
5592 | (ppc_arch_setup): Iterate through ppc_regsets and set sizes when | |
5593 | needed. | |
5594 | ||
2e077f5e PFC |
5595 | 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com> |
5596 | ||
5597 | * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the | |
5598 | wordsize of the inferior. Call ppc_linux_target_wordsize. | |
5599 | ||
bd64614e PFC |
5600 | 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com> |
5601 | ||
5602 | * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o. | |
5603 | * Makefile.in (SFILES): Add arch/ppc-linux-common.c. | |
5604 | * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h. | |
5605 | * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l) | |
5606 | (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l) | |
5607 | (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l) | |
5608 | (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l) | |
5609 | (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l) | |
5610 | (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l) | |
5611 | (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l) | |
5612 | (tdesc_powerpc_e500l): Remove. | |
5613 | * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and | |
5614 | linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h. | |
5615 | * linux-ppc-low.c: Include arch/ppc-linux-common.h, | |
5616 | arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include | |
5617 | linux-ppc-tdesc.h. | |
5618 | (ppc_arch_setup): Remove target description matching code. Fill a | |
5619 | ppc_linux_features struct and call ppc_linux_match_description | |
5620 | with it. | |
5621 | ||
75d74cca MR |
5622 | 2018-05-22 Maciej W. Rozycki <macro@mips.com> |
5623 | ||
5624 | * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the | |
5625 | width of the requested register exceeds the width of the | |
5626 | `ptrace' data type. | |
5627 | (mips_cannot_store_register): Likewise. | |
5628 | ||
e4439e43 MR |
5629 | 2018-05-21 Maciej W. Rozycki <macro@mips.com> |
5630 | ||
5631 | * linux-mips-low.c (mips_fetch_register): New function. Update | |
5632 | preceding comment. | |
5633 | (mips_store_gregset): Supply 0 rather than $restart for $zero. | |
5634 | (the_low_target): Wire `mips_fetch_register'. | |
5635 | ||
55271bf9 JB |
5636 | 2018-05-10 Joel Brobecker <brobecker@adacore.com> |
5637 | ||
5638 | * lynx-i386-low.c (LYNXOS_178): New macro. | |
5639 | [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches | |
5640 | the layout on LynxOS-178. | |
5641 | (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not | |
5642 | handle floating point registers that are not supported by | |
5643 | LynxOS-178. | |
5644 | ||
1a34f210 TT |
5645 | 2018-05-10 Tom Tromey <tom@tromey.com> |
5646 | ||
5647 | * configure: Rebuild. | |
5648 | ||
190852c8 JB |
5649 | 2018-05-10 Joel Brobecker <brobecker@adacore.com> |
5650 | ||
5651 | PR server/23158: | |
5652 | * tdesc.h (init_target_desc) <expedite_regs>: New parameter. | |
5653 | * tdesc.c (init_target_desc) <expedite_regs>: New parameter. | |
5654 | Use it to set the expedite_regs field in the given tdesc. | |
5655 | * x86-tdesc.h: New file. | |
5656 | * linux-aarch64-tdesc.c (aarch64_linux_read_description): | |
5657 | Adjust following the addition of the new expedite_regs parameter | |
5658 | to init_target_desc. | |
5659 | * linux-tic6x-low.c (tic6x_read_description): Likewise. | |
5660 | * linux-x86-tdesc.c: #include "x86-tdesc.h". | |
5661 | (i386_linux_read_description, amd64_linux_read_description): | |
5662 | Adjust following the addition of the new expedite_regs parameter | |
5663 | to init_target_desc. | |
5664 | * lynx-i386-low.c: #include "x86-tdesc.h". | |
5665 | (lynx_i386_arch_setup): Adjust following the addition of the new | |
5666 | expedite_regs parameter to init_target_desc. | |
5667 | * nto-x86-low.c: #include "x86-tdesc.h". | |
5668 | (nto_x86_arch_setup): Adjust following the addition of the new | |
5669 | expedite_regs parameter to init_target_desc. | |
5670 | * win32-i386-low.c: #include "x86-tdesc.h". | |
5671 | (i386_arch_setup): Adjust following the addition of the new | |
5672 | expedite_regs parameter to init_target_desc. | |
5673 | ||
7dbac825 JB |
5674 | 2018-05-10 Joel Brobecker <brobecker@adacore.com> |
5675 | ||
5676 | PR server/23158: | |
5677 | * win32-low.c (win32_create_inferior): Add call to my_wait | |
5678 | setting last_status global. | |
5679 | ||
906994d9 JB |
5680 | 2018-05-10 Joel Brobecker <brobecker@adacore.com> |
5681 | ||
5682 | PR server/23158: | |
5683 | * win32-low.c (create_process): Only call gdb_tilde_expand if | |
5684 | inferior_cwd is not NULL. | |
5685 | ||
8ee22052 AB |
5686 | 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com> |
5687 | ||
5688 | * i387-fp.c (i387_cache_to_xsave): Only write x87 control | |
5689 | registers to the cache if their values have changed. | |
5690 | (i387_xsave_to_cache): Provide default values for x87 control | |
5691 | registers when these features are available, but disabled. | |
5692 | * regcache.c (supply_register_by_name_zeroed): New function. | |
5693 | * regcache.h (supply_register_by_name_zeroed): Declare new | |
5694 | function. | |
5695 | ||
aff689d3 TT |
5696 | 2018-05-07 Tom Tromey <tom@tromey.com> |
5697 | ||
5698 | * configure: Rebuild. | |
5699 | ||
85e26832 TT |
5700 | 2018-05-04 Tom Tromey <tom@tromey.com> |
5701 | ||
5702 | * configure: Rebuild. | |
5703 | ||
a3b60e45 JK |
5704 | 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com> |
5705 | Pedro Alves <palves@redhat.com> | |
5706 | ||
5707 | * linux-aarch64-low.c (aarch64_stopped_data_address): | |
5708 | Likewise. | |
5709 | ||
632e107b TT |
5710 | 2018-04-27 Tom Tromey <tom@tromey.com> |
5711 | ||
5712 | * configure: Rebuild. | |
5713 | ||
458412c3 TT |
5714 | 2018-04-23 Tom Tromey <tom@tromey.com> |
5715 | ||
5716 | * configure: Rebuild. | |
5717 | ||
f31c089e SM |
5718 | 2018-04-19 Simon Marchi <simon.marchi@ericsson.com> |
5719 | ||
5720 | * Makefile.in (depcomp): Add "..". | |
5721 | (all_deps_files): New and use it. | |
5722 | ||
b319b098 AH |
5723 | 2018-04-18 Alan Hayward <alan.hayward@arm.com> |
5724 | ||
5725 | * configure.srv (aarch64*-*-linux*): Don't include xml. | |
5726 | (i[34567]86-*-cygwin*): Likewise. | |
5727 | (i[34567]86-*-linux*): Likewise. | |
5728 | (i[34567]86-*-lynxos*): Likewise. | |
5729 | (i[34567]86-*-mingw32ce*): Likewise. | |
5730 | (i[34567]86-*-mingw*): Likewise. | |
5731 | (i[34567]86-*-nto*): Likewise. | |
5732 | (tic6x-*-uclinux): Likewise. | |
5733 | (x86_64-*-linux*): Likewise. | |
5734 | (x86_64-*-mingw*): Likewise. | |
5735 | (x86_64-*-cygwin*): Likewise. | |
5736 | ||
3b74854b AH |
5737 | 2018-04-18 Alan Hayward <alan.hayward@arm.com> |
5738 | ||
5739 | * tdesc.c: Remove xml parameter. | |
5740 | ||
e98577a9 AH |
5741 | 2018-04-18 Alan Hayward <alan.hayward@arm.com> |
5742 | ||
5743 | * server.c (get_features_xml): Remove cast. | |
5744 | * tdesc.c (void target_desc::accept): Fill in function. | |
5745 | (tdesc_get_features_xml): Remove old xml creation. | |
5746 | (print_xml_feature::visit_pre): Add xml vistor. | |
5747 | * tdesc.h (struct target_desc): Make xmltarget mutable. | |
5748 | (tdesc_get_features_xml): Remove declaration. | |
5749 | ||
d278f585 AH |
5750 | 2018-04-18 Alan Hayward <alan.hayward@arm.com> |
5751 | ||
5752 | * tdesc.c (tdesc_architecture_name): Add new function. | |
5753 | (tdesc_osabi_name): Likewise. | |
5754 | (tdesc_get_features_xml): Use new functions. | |
5755 | ||
eee8a18d AH |
5756 | 2018-04-18 Alan Hayward <alan.hayward@arm.com> |
5757 | ||
5758 | * tdesc.c (tdesc_create_flags): Remove. | |
5759 | (tdesc_add_flag): Likewise. | |
5760 | (tdesc_named_type): Likewise. | |
5761 | (tdesc_create_union): Likewise. | |
5762 | (tdesc_create_struct): Likewise. | |
5763 | (tdesc_create_vector): Likewise. | |
5764 | (tdesc_add_bitfield): Likewise. | |
5765 | (tdesc_add_field): Likewise. | |
5766 | (tdesc_set_struct_size): Likewise. | |
5767 | ||
82ec9bc7 AH |
5768 | 2018-04-18 Alan Hayward <alan.hayward@arm.com> |
5769 | ||
5770 | * tdesc.c (~target_desc): Remove implictly deleted items. | |
5771 | (init_target_desc): Iterate all features. | |
5772 | (tdesc_get_features_xml): Use vector. | |
5773 | (tdesc_create_feature): Create feature. | |
5774 | * tdesc.h (tdesc_feature) Remove | |
5775 | (target_desc): Add features. | |
5776 | ||
ea3e7d71 AH |
5777 | 2018-04-18 Alan Hayward <alan.hayward@arm.com> |
5778 | ||
5779 | * Makefile.in: Add common/tdesc.c | |
5780 | * tdesc.c (init_target_desc): init all reg_defs from register | |
5781 | vector. | |
5782 | (tdesc_create_reg): Create tdesc_reg. | |
5783 | * tdesc.h (tdesc_feature): Add register vector. | |
5784 | ||
17d08cd4 SM |
5785 | 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca> |
5786 | ||
5787 | * tdesc.h (struct target_desc) <features>: Change type to | |
5788 | std::vector<std::string>. | |
5789 | * tdesc.c (target_desc::~target_desc): Adjust to std::vector | |
5790 | changes. | |
5791 | (tdesc_get_features_xml): Likewise. | |
5792 | (tdesc_create_feature): Likewise. | |
5793 | ||
5cd3e386 AH |
5794 | 2018-03-26 Alan Hayward <alan.hayward@arm.com> |
5795 | ||
5796 | * regcache.c (find_register_by_number): Return a ref. | |
5797 | (find_regno): Use references. | |
5798 | (register_size): Likewise. | |
5799 | (register_data): Likewise. | |
5800 | * tdesc.c (target_desc::~target_desc): Remove free calls. | |
5801 | (target_desc::operator==): Use std::vector compare. | |
5802 | (init_target_desc): Use reference. | |
5803 | (tdesc_create_reg): Use reg constructors. | |
5804 | * tdesc.h (struct target_desc): Replace pointer with object. | |
5805 | ||
dff7492c AH |
5806 | 2018-03-23 Alan Hayward <alan.hayward@arm.com> |
5807 | ||
5808 | * regcache.c (find_register_by_number): Make static. | |
5809 | (find_regno): Use find_register_by_number | |
5810 | * regcache.h (struct reg): Remove declaration. | |
5811 | ||
d80e5242 AH |
5812 | 2018-03-23 Alan Hayward <alan.hayward@arm.com> |
5813 | ||
5814 | * tdesc.c (target_desc::~target_desc): Move to here. | |
5815 | (target_desc::operator==): Likewise. | |
5816 | * tdesc.h (target_desc::~target_desc): Move from here. | |
5817 | (target_desc::operator==): Likewise. | |
5818 | ||
f69c5afb AA |
5819 | 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com> |
5820 | ||
5821 | * linux-s390-low.c (s390_get_wordsize): Correct brace style. | |
5822 | ||
ce29f843 AA |
5823 | 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com> |
5824 | ||
5825 | * linux-s390-ipa.c (get_ipa_tdesc): Add handling for | |
5826 | S390_TDESC_GS. | |
5827 | * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise. | |
5828 | (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64 | |
5829 | and init_registers_s390_gs_linux64. | |
5830 | ||
c49bd90b AA |
5831 | 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com> |
5832 | ||
5833 | * linux-s390-low.c (s390_fill_gs): Remove function. | |
5834 | (s390_fill_gsbc): Remove function. | |
5835 | (s390_regsets): Set fill functions for the guarded storage regsets | |
5836 | to NULL. | |
5837 | ||
7edb9bd3 AA |
5838 | 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com> |
5839 | ||
5840 | * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by | |
5841 | the word size. Add comment. | |
5842 | (s390_get_wordsize): New function. | |
5843 | (s390_arch_setup): No longer select a temporary tdesc to fetch the | |
5844 | pswm with it. Instead, use s390_get_wordsize to determine the | |
5845 | word size first and derive the correct tdesc from that directly. | |
5846 | ||
39be3c7e SM |
5847 | 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca> |
5848 | ||
5849 | * Makefile.in: Include silent-rules.mk. | |
5850 | (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up. | |
5851 | (COMPILE): Add ECHO_CXX. | |
5852 | (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD. | |
5853 | (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD. | |
5854 | ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD. | |
5855 | (version-generated.c): Add ECHO_GEN. | |
5856 | (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED. | |
5857 | (IPAGENT_COMPILE): Add ECHO_CXX. | |
5858 | (%-generated.c): Add ECHO_REGDAT. | |
5859 | ||
3ae9ce5d TT |
5860 | 2018-03-14 Tom Tromey <tom@tromey.com> |
5861 | ||
5862 | PR cli/14977: | |
5863 | * ax.c (ax_printf): Special case for NULL. | |
5864 | ||
e6a58aa8 SM |
5865 | 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca> |
5866 | ||
5867 | * linux-low.c (linux_qxfer_libraries_svr4): Use | |
5868 | xml_escape_text_append. | |
5869 | ||
f6e8a41e SM |
5870 | 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca> |
5871 | ||
5872 | * linux-low.c (linux_qxfer_libraries_svr4): Use std::string. | |
5873 | ||
b9671caf SM |
5874 | 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca> |
5875 | ||
5876 | * server.c (handle_general_set): Remove unnecessary xstrdup. | |
5877 | ||
e80aaf61 SM |
5878 | 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca> |
5879 | ||
5880 | * server.c (parse_debug_format_options): Adjust to | |
5881 | delim_string_to_char_ptr_vec changes. | |
5882 | * thread-db.c (thread_db_load_search): Adjust to | |
5883 | dirnames_to_char_ptr_vec changes. | |
5884 | ||
b1223e78 MM |
5885 | 2018-03-01 Markus Metzger <markus.t.metzger@intel.com> |
5886 | ||
5887 | * target.h (target_enable_btrace, target_disable_btrace) | |
5888 | (target_read_btrace, target_read_btrace_conf): Turn macro into | |
5889 | inline function. Throw error if target method is not defined. | |
5890 | * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove | |
5891 | check for btrace target method. Be prepared to handle exceptions | |
5892 | from btrace target methods. | |
5893 | ||
81561546 SDJ |
5894 | 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com> |
5895 | ||
5896 | * server.c (captured_main): Change order of error message printed | |
5897 | when the current working directory cannot be found. | |
5898 | ||
25e3c82c SDJ |
5899 | 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com> |
5900 | ||
5901 | * server.c: Include "filenames.h" and "pathstuff.h". | |
5902 | (program_name): Delete variable. | |
5903 | (program_path): New anonymous class. | |
5904 | (get_exec_wrapper): Use "program_path" instead of | |
5905 | "program_name". | |
5906 | (handle_v_run): Likewise. | |
5907 | (captured_main): Likewise. | |
5908 | (process_serial_event): Likewise. | |
5909 | ||
b4987c95 SDJ |
5910 | 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com> |
5911 | ||
5912 | * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c". | |
5913 | (OBJS): Add "pathstuff.o". | |
5914 | * server.c (current_directory): New global variable. | |
5915 | (captured_main): Initialize "current_directory". | |
5916 | ||
f46cd62a AH |
5917 | 2018-02-26 Alan Hayward <alan.hayward@arm.com> |
5918 | ||
5919 | * tdesc.c: Use common/tdesc.h. | |
5920 | * tdesc.h: Likewise. | |
5921 | ||
a543c5ca AH |
5922 | 2018-02-20 Alan Hayward <alan.hayward@arm.com> |
5923 | Simon Marchi <simon.marchi@ericsson.com> | |
5924 | ||
5925 | * Makefile.in: Switch order of make rules. | |
5926 | ||
b5884fa7 AH |
5927 | 2018-02-19 Alan Hayward <alan.hayward@arm.com> |
5928 | ||
5929 | * Makefile.in: Add common directory in build. | |
5930 | * configure.ac: Add common reference. | |
5931 | * configure: Regenerate. | |
5932 | ||
de6242d3 MM |
5933 | 2018-02-09 Markus Metzger <markus.t.metzger@intel.com> |
5934 | ||
5935 | * linux-low.c (linux_target_ops): Remove linux_supports_btrace. | |
5936 | * nto-low.c (nto_target_ops): Remove NULL for supports_btrace. | |
5937 | * spu-low.c (spu_target_ops): Likewise. | |
5938 | * win32-low.c (win32_target_ops): Likewise. | |
5939 | * server.c (supported_btrace_packets): Report packets unconditionally. | |
5940 | * target.h (target_ops) <supports_btrace>: Remove. | |
5941 | (target_supports_btrace): Remove. | |
5942 | ||
9ee23a85 MM |
5943 | 2018-02-09 Markus Metzger <markus.t.metzger@intel.com> |
5944 | ||
5945 | * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt) | |
5946 | (handle_btrace_disable): Change return type to void. Use exceptions | |
5947 | to report errors. | |
5948 | (handle_btrace_general_set): Catch exception and copy message to | |
5949 | return message. | |
5950 | ||
8ce47547 TT |
5951 | 2018-02-08 Tom Tromey <tom@tromey.com> |
5952 | ||
5953 | * linux-low.c (install_software_single_step_breakpoints): Use | |
5954 | make_scoped_restore. | |
5955 | * inferiors.c (make_cleanup_restore_current_thread): Remove. | |
5956 | (do_restore_current_thread_cleanup): Remove. | |
5957 | * gdbthread.h (make_cleanup_restore_current_thread): Don't | |
5958 | declare. | |
5959 | ||
45dd3607 TT |
5960 | 2018-02-08 Tom Tromey <tom@tromey.com> |
5961 | ||
5962 | * mem-break.c (set_raw_breakpoint_at): Use | |
5963 | gdb::unique_xmalloc_ptr. | |
5964 | ||
e671cd59 PA |
5965 | 2018-01-30 Pedro Alves <palves@redhat.com> |
5966 | ||
5967 | PR gdb/13211 | |
5968 | * target.c (target_terminal::terminal_state): Rename to ... | |
5969 | (target_terminal::m_terminal_state): ... this. | |
5970 | ||
a0aad537 JC |
5971 | 2018-01-19 James Clarke <jrtc27@jrtc27.com> |
5972 | ||
5973 | * linux-low.c (handle_extended_wait): Surround call to | |
5974 | thread_db_notice_clone with #ifdef USE_THREAD_DB. | |
5975 | ||
4d9b86e1 SM |
5976 | 2018-01-17 Simon Marchi <simon.marchi@ericsson.com> |
5977 | ||
5978 | * linux-low.c (attach_proc_task_lwp_callback): Adjust to | |
5979 | linux_ptrace_attach_fail_reason_string now returning an | |
5980 | std::string. | |
5981 | (linux_attach): Likewise. | |
5982 | * thread-db.c (attach_thread): Likewise. | |
5983 | ||
f517c180 EA |
5984 | 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com> |
5985 | ||
5986 | PR gdb/21559 | |
5987 | * configure.ac: Include <sys/types.h> prior to <sys/user.h> when | |
5988 | checking for fs_base/gs_base fields in struct user_regs_struct. | |
5989 | * configure: Regenerate. | |
5990 | ||
9a70f35c YQ |
5991 | 2018-01-16 Yao Qi <yao.qi@linaro.org> |
5992 | ||
5993 | PR gdb/18749 | |
5994 | * linux-low.c (fetch_register): Call supply_register instead of | |
5995 | error. | |
5996 | ||
605fd3c6 YQ |
5997 | 2018-01-08 Yao Qi <yao.qi@linaro.org> |
5998 | Simon Marchi <simon.marchi@ericsson.com> | |
5999 | ||
6000 | * Makefile.in (OBS): Remove selftest.o. | |
6001 | * configure.ac: Set srv_selftest_objs if $development is true. | |
6002 | (GDBSERVER_DEPFILES): Append $srv_selftest_objs. | |
6003 | * configure: Re-generated. | |
6004 | * server.c (captured_main): Wrap variable selftest_filter with | |
6005 | GDB_SELF_TEST. | |
6006 | ||
2cc05030 SM |
6007 | 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca> |
6008 | ||
6009 | * server.c (parse_debug_format_options): Return std::string. | |
6010 | (handle_monitor_command, captured_main): Adjust. | |
6011 | ||
e379cee6 PA |
6012 | 2018-01-05 Pedro Alves <palves@redhat.com> |
6013 | ||
6014 | PR gdb/18653 | |
6015 | * server.c (captured_main): Pass quiet=false to | |
6016 | save_original_signals_state. | |
6017 | ||
82e1e79a JB |
6018 | 2018-01-01 Joel Brobecker <brobecker@adacore.com> |
6019 | ||
6020 | * gdbreplay.c (gdbreplay_version): Update copyright year in | |
6021 | version message. | |
6022 | * server.c (gdbserver_version): Likewise. | |
6023 | ||
8e481c3b TT |
6024 | 2017-12-08 Tom Tromey <tom@tromey.com> |
6025 | ||
6026 | * ax.c (ax_printf): Update. | |
6027 | ||
a8806230 YQ |
6028 | 2017-12-07 Yao Qi <yao.qi@linaro.org> |
6029 | ||
6030 | * linux-aarch64-ipa.c (initialize_low_tracepoint): Call | |
6031 | aarch64_linux_read_description. | |
6032 | * linux-amd64-ipa.c (idx2mask): New array. | |
6033 | (get_ipa_tdesc): Move idx2mask out. | |
6034 | (initialize_low_tracepoint): Initialize target descriptions. | |
6035 | * linux-i386-ipa.c (idx2mask): New array. | |
6036 | (get_ipa_tdesc): Move idx2mask out. | |
6037 | (initialize_low_tracepoint): Initialize target descriptions. | |
6038 | ||
d4a0e8b5 SM |
6039 | 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca> |
6040 | ||
6041 | * tdesc.c (struct tdesc_type): Change return type. | |
6042 | (tdesc_add_flag): Change parameter type. | |
6043 | (tdesc_add_bitfield): Likewise. | |
6044 | (tdesc_add_field): Likewise. | |
6045 | (tdesc_set_struct_size): Likewise. | |
6046 | ||
798a7429 SM |
6047 | 2017-12-05 Simon Marchi <simon.marchi@ericsson.com> |
6048 | ||
6049 | * regcache.c (registers_to_string): Remove unused variable. | |
6050 | ||
c0e15c9b SM |
6051 | 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca> |
6052 | ||
6053 | * inferiors.c (for_each_inferior_with_data): Remove. | |
6054 | * inferiors.h (for_each_inferior_with_data): Remove. | |
6055 | * server.c (handle_qxfer_threads_worker): Change parameter type. | |
6056 | (handle_qxfer_threads_proper): Use for_each_thread. | |
6057 | ||
f0045347 SM |
6058 | 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca> |
6059 | ||
6060 | * inferiors.c (for_each_inferior): Remove. | |
6061 | (clear_inferiors): Use for_each_thread. | |
6062 | * inferiors.h (for_each_inferior): Remove. | |
6063 | * linux-low.c (linux_wait_for_event_filtered): Use | |
6064 | for_each_thread. | |
6065 | (linux_stabilize_threads): Likewise. | |
6066 | * regcache.c (regcache_release): Likewise. | |
6067 | * server.c (gdb_wants_all_threads_stopped): Likewise. | |
6068 | (clear_pending_status_callback): Remove. | |
6069 | (handle_status): Use for_each_thread. | |
6070 | (captured_main): Likewise. | |
6071 | * win32-low.c (child_init_thread_list): Likewise. | |
6072 | (win32_clear_inferiors): Likewise. | |
6073 | (fake_breakpoint_event): Likewise. | |
6074 | ||
9521758b SM |
6075 | 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca> |
6076 | ||
6077 | * inferiors.h (find_inferior): Remove. | |
6078 | * inferiors.c (find_inferior): Remove. | |
6079 | ||
8f86d7aa SM |
6080 | 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca> |
6081 | ||
6082 | * linux-low.c (resume_status_pending_p): Update comment. | |
6083 | (need_step_over_p): Update comment. | |
6084 | ||
e2b44075 SM |
6085 | 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca> |
6086 | ||
6087 | * linux-low.c (proceed_one_lwp): Return void, change parameter | |
6088 | type. | |
6089 | (unsuspend_and_proceed_one_lwp): Likewise. | |
6090 | (proceed_all_lwps): Use for_each_thread. | |
6091 | (unstop_all_lwps): Likewise. | |
6092 | ||
c80825ff SM |
6093 | 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca> |
6094 | ||
6095 | * linux-low.c (linux_resume_one_thread): Return void, take | |
6096 | parameter directly. | |
6097 | (linux_resume): Use for_each_thread. | |
6098 | ||
df3e4dbe SM |
6099 | 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca> |
6100 | ||
6101 | * linux-low.c (send_sigstop_callback): Return void, change | |
6102 | parameter type. Rename to... | |
6103 | (send_sigstop): ... this. | |
6104 | (suspend_and_send_sigstop_callback): Return void, change parameter | |
6105 | type. Rename to... | |
6106 | (suspend_and_send_sigstop): ... this. | |
6107 | (stop_all_lwps): Use for_each_thread. | |
6108 | ||
5a6b0a41 SM |
6109 | 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca> |
6110 | ||
6111 | * linux-low.c (lwp_running): Return bool, remove unused | |
6112 | argument. | |
6113 | (linux_stabilize_threads): Use find_thread. | |
6114 | ||
39a64da5 SM |
6115 | 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca> |
6116 | ||
6117 | * linux-low.c (select_singlestep_lwp_callback): Remove. | |
6118 | (count_events_callback): Remove. | |
6119 | (select_event_lwp_callback): Remove. | |
6120 | (select_event_lwp): Use find_thread/for_each_thread. | |
6121 | ||
a1385b7b SM |
6122 | 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca> |
6123 | ||
6124 | * linux-low.c (not_stopped_callback): Return bool, take filter | |
6125 | argument directly. | |
6126 | (linux_wait_for_event_filtered): Use find_thread. | |
6127 | (linux_wait_1): Likewise. | |
6128 | ||
454296a2 SM |
6129 | 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca> |
6130 | ||
6131 | * linux-low.c (same_lwp): Remove. | |
6132 | (find_lwp_pid): Use find_thread. | |
6133 | ||
6b2a85da SM |
6134 | 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca> |
6135 | ||
6136 | * linux-low.c (delete_lwp_callback): Remove. | |
6137 | (linux_mourn): Use for_each_thread. | |
6138 | ||
798a38e8 SM |
6139 | 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca> |
6140 | ||
6141 | * linux-low.c (linux_detach_lwp_callback): Return void, remove | |
6142 | args parameter, don't check for pid. | |
6143 | (linux_detach): Use for_each_thread. | |
6144 | ||
e4eb0dec SM |
6145 | 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca> |
6146 | ||
6147 | * linux-low.c (struct counter): Remove. | |
6148 | (second_thread_of_pid_p): Remove. | |
6149 | (last_thread_of_process_p): Use find_thread. | |
6150 | ||
83e1b6c1 SM |
6151 | 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca> |
6152 | ||
6153 | * inferiors.c (find_inferior_in_random): Remove. | |
6154 | * inferiors.h (find_inferior_in_random): Remove. | |
6155 | * linux-low.c (status_pending_p_callback): Return bool, accept | |
6156 | parameter ptid directly. | |
6157 | (linux_wait_for_event_filtered): Use find_thread_in_random. | |
6158 | (linux_wait_1): Likewise. | |
6159 | ||
8dc7b443 SM |
6160 | 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca> |
6161 | ||
6162 | * inferiors.c (find_inferior_id): Remove. | |
6163 | (find_thread_ptid): Move implemention from find_inferior_id to | |
6164 | here. | |
6165 | * inferiors.h (find_inferior_id): Remove. | |
6166 | * server.c (handle_status): Use find_thread_ptid. | |
6167 | (process_serial_event): Likewise. | |
6168 | * thread-db.c (find_one_thread): Likewise. | |
6169 | (thread_db_thread_handle): Likewise. | |
6170 | * win32-low.c (thread_rec): Likewise. | |
6171 | (child_delete_thread): Likewise. | |
6172 | (win32_thread_alive): Likewise. | |
6173 | (get_child_debug_event): Likewise. | |
6174 | ||
da25033c SM |
6175 | 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca> |
6176 | ||
6177 | * linux-mips-low.c (update_watch_registers_callback): Return | |
6178 | void, remove pid_p parameter, don't check for pid. | |
6179 | (mips_insert_point, mips_remove_point): Use for_each_thread. | |
6180 | ||
c91bb56b SM |
6181 | 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca> |
6182 | ||
6183 | * lynx.low (lynx_delete_thread_callback): Remove. | |
6184 | (lynx_mourn): Use for_each_thread. | |
6185 | ||
634a3254 SM |
6186 | 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca> |
6187 | ||
6188 | * regcache.c (regcache_invalidate_one): Remove. | |
6189 | (regcache_invalidate_pid): use for_each_thread. | |
6190 | ||
41272101 TT |
6191 | 2017-11-26 Tom Tromey <tom@tromey.com> |
6192 | ||
6193 | * linux-low.c (linux_create_inferior): Update. | |
6194 | ||
f5291a6f UW |
6195 | 2017-11-24 Ulrich Weigand <uweigand@de.ibm.com> |
6196 | ||
6197 | * spu-low.c (spu_create_inferior): Fix typo in argument name. | |
6198 | ||
6654d750 AH |
6199 | 2017-11-24 Alan Hayward <alan.hayward@arm.com> |
6200 | ||
6201 | * configure.srv: Add linux-aarch64-tdesc-selftest.o. | |
6202 | * linux-aarch64-low.c (initialize_low_arch): Call init func. | |
6203 | * linux-aarch64-tdesc-selftest.c: New file. | |
6204 | * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration. | |
6205 | ||
6206 | 2017-11-24 Alan Hayward <alan.hayward@arm.com> | |
6207 | ||
6208 | * configure.srv: Add new file. | |
6209 | * linux-aarch64-low.c (initialize_low_arch): Call init func. | |
6210 | * linux-aarch64-tdesc-selftest.c: New file. | |
6211 | * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration. | |
6212 | ||
49bdb7ee AH |
6213 | 2017-11-24 Alan Hayward <alan.hayward@arm.com> |
6214 | ||
6215 | * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init. | |
6216 | * linux-aarch64-low.c (initialize_low_arch): Remove init. | |
6217 | * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init. | |
6218 | ||
d6d7ce56 AH |
6219 | 2017-11-24 Alan Hayward <alan.hayward@arm.com> |
6220 | ||
6221 | * configure.srv: Add new files. | |
6222 | * linux-aarch64-ipa.c (get_ipa_tdesc): Call | |
6223 | aarch64_linux_read_description. | |
6224 | * linux-aarch64-low.c (aarch64_linux_read_description): | |
6225 | Merge with aarch64_arch_setup. | |
6226 | (aarch64_arch_setup): Call aarch64_linux_read_description. | |
6227 | * linux-aarch64-tdesc.c: New file. | |
6228 | * linux-aarch64-tdesc.h: New file. | |
6229 | ||
506fe5f4 YQ |
6230 | 2017-11-24 Yao Qi <yao.qi@linaro.org> |
6231 | ||
6232 | * configure.srv: Set $srv_regobj for tic6x-linux. | |
6233 | * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h". | |
6234 | (tic6x_read_description): Move some code to tic6x_arch_setup. | |
6235 | (tic6x_tdesc_test): New function. | |
6236 | (initialize_low_arch): Call selftests::register_test. | |
6237 | ||
29f9a567 YQ |
6238 | 2017-11-22 Yao Qi <yao.qi@linaro.org> |
6239 | ||
6240 | * remote-utils.c (prepare_resume_reply): Use memcpy. | |
6241 | ||
578290ec SM |
6242 | 2017-11-19 Simon Marchi <simon.marchi@ericsson.com> |
6243 | ||
6244 | * linux-low.c (kill_one_lwp_callback): Return void, take | |
6245 | argument directly, don't filter on pid. | |
6246 | (linux_kill): Use for_each_thread. | |
6247 | ||
eca55aec SM |
6248 | 2017-11-19 Simon Marchi <simon.marchi@ericsson.com> |
6249 | ||
6250 | * linux-low.c (need_step_over_p): Return bool, remove dummy | |
6251 | argument. | |
6252 | (linux_resume, proceed_all_lwps): Use find_thread. | |
6253 | ||
25c28b4d SM |
6254 | 2017-11-19 Simon Marchi <simon.marchi@ericsson.com> |
6255 | ||
6256 | * linux-low.c (resume_status_pending_p): Return bool, remove | |
6257 | flag_p argument. | |
6258 | (linux_resume): Use find_thread. | |
6259 | ||
5fdda392 SM |
6260 | 2017-11-19 Simon Marchi <simon.marchi@ericsson.com> |
6261 | ||
6262 | * linux-low.c (struct thread_resume_array): Remove. | |
6263 | (linux_set_resume_request): Return void, take arguments | |
6264 | directly. | |
6265 | (linux_resume): Use for_each_thread. | |
6266 | ||
fcb056a5 SM |
6267 | 2017-11-19 Simon Marchi <simon.marchi@ericsson.com> |
6268 | ||
6269 | * linux-low.c (stuck_in_jump_pad_callback): Change prototype, | |
6270 | return bool, remove data argument. | |
6271 | (linux_stabilize_threads): Use find_thread. | |
6272 | ||
139720c5 SM |
6273 | 2017-11-19 Simon Marchi <simon.marchi@ericsson.com> |
6274 | ||
6275 | * linux-low.c (unsuspend_one_lwp): Remove. | |
6276 | (unsuspend_all_lwps): Use for_each_thread, inline code from | |
6277 | unsuspend_one_lwp. | |
6278 | ||
6d1e5673 SM |
6279 | 2017-11-19 Simon Marchi <simon.marchi@ericsson.com> |
6280 | ||
6281 | * gdbthread.h (find_thread): Add overload with ptid_t filter. | |
6282 | * linux-low.c (struct iterate_over_lwps_args): Remove. | |
6283 | (iterate_over_lwps_filter): Remove. | |
6284 | (iterate_over_lwps): Use find_thread. | |
6285 | ||
bbf550d5 SM |
6286 | 2017-11-19 Simon Marchi <simon.marchi@ericsson.com> |
6287 | ||
6288 | * linux-low.c (reset_lwp_ptrace_options_callback): Remove. | |
6289 | (linux_handle_new_gdb_connection): Use for_each_thread, inline | |
6290 | code from reset_lwp_ptrace_options_callback. | |
6291 | ||
00192f77 SM |
6292 | 2017-11-19 Simon Marchi <simon.marchi@ericsson.com> |
6293 | ||
6294 | * linux-arm-low.c (struct update_registers_data): Remove. | |
6295 | (update_registers_callback): Return void, take arguments | |
6296 | directly, don't check thread's pid. | |
6297 | (arm_insert_point, arm_remove_point): Use for_each_thread. | |
6298 | ||
2bee2b6c SM |
6299 | 2017-11-19 Simon Marchi <simon.marchi@ericsson.com> |
6300 | ||
6301 | * win32-low.c (continue_one_thread): Return void, take argument | |
6302 | directly. | |
6303 | (child_continue): Use for_each_thread. | |
6304 | ||
0b360f19 SM |
6305 | 2017-11-19 Simon Marchi <simon.marchi@ericsson.com> |
6306 | ||
6307 | * win32-i386-low.c (update_debug_registers_callback): Rename | |
6308 | to ... | |
6309 | (update_debug_registers): ... this, return void, remove pid_p arg. | |
6310 | (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread. | |
6311 | ||
f27866ba SM |
6312 | 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca> |
6313 | ||
6314 | * inferiors.h (struct process_info): Add constructor, initialize | |
6315 | fields.. | |
6316 | <syscalls_to_catch>: Change type to std::vector<int>. | |
6317 | * inferiors.c (add_process): Allocate process_info with new. | |
6318 | (remove_process): Free process_info with delete. | |
6319 | * linux-low.c (handle_extended_wait): Adjust. | |
6320 | (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust. | |
6321 | * server.c (handle_general_set): Adjust. | |
6322 | ||
e849ea89 PA |
6323 | 2017-11-16 Pedro Alves <palves@redhat.com> |
6324 | ||
6325 | * remote-utils.c (remote_close): Block SIGIO signals instead of | |
6326 | uninstalling the SIGIO handler. | |
6327 | ||
1d0aa65c AH |
6328 | 2017-11-16 Alan Hayward <alan.hayward@arm.com> |
6329 | ||
6330 | * tdesc.c (tdesc_get_features_xml): Allow null osabi. | |
6331 | ||
3491a34c YQ |
6332 | 2017-11-16 Yao Qi <yao.qi@linaro.org> |
6333 | ||
6334 | * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf. | |
6335 | (tic6x_store_gregset): Likewise. | |
6336 | (tic6x_usrregs_info): Move it up. | |
6337 | ||
a602f924 AH |
6338 | 2017-11-15 Alan Hayward <alan.hayward@arm.com> |
6339 | ||
6340 | * Makefile.in: Update arch rules. | |
6341 | * configure.srv: Explicitly mark arch/ files. | |
6342 | ||
5616b6c3 AS |
6343 | 2017-11-13 Andreas Schwab <schwab@suse.de> |
6344 | ||
6345 | * linux-m68k-low.c (m68k_supports_hardware_single_step): New | |
6346 | function. | |
6347 | (struct linux_target_ops) <supports_hardware_single_step>: Initialize. | |
6348 | ||
d1928160 PA |
6349 | 2017-11-06 Pedro Alves <palves@redhat.com> |
6350 | ||
6351 | * config.in, configure: Regenerate. | |
6352 | ||
bac608e7 SM |
6353 | 2017-10-27 Simon Marchi <simon.marchi@ericsson.com> |
6354 | ||
6355 | * target.c (struct thread_search): Remove. | |
6356 | (thread_search_callback): Remove. | |
6357 | (prepare_to_access_memory): Use for_each_thread instead of | |
6358 | find_inferior. Inline code from thread_search_callback. | |
6359 | ||
eaddb425 SM |
6360 | 2017-10-27 Simon Marchi <simon.marchi@ericsson.com> |
6361 | ||
6362 | * server.c (struct visit_actioned_threads_data): Remove. | |
6363 | (visit_actioned_threads): Change prototype to take arguments | |
6364 | directly. | |
6365 | (resume): Use find_thread instead of find_inferior. | |
6366 | ||
99078d34 SM |
6367 | 2017-10-27 Simon Marchi <simon.marchi@ericsson.com> |
6368 | ||
6369 | * server.c (queue_stop_reply_callback): Change prototype, return | |
6370 | void. | |
6371 | (find_status_pending_thread_callback): Remove. | |
6372 | (handle_status): Replace find_inferior with find_thread and | |
6373 | for_each_thread. | |
6374 | ||
cc628f3d AH |
6375 | 2017-10-25 Alan Hayward <alan.hayward@arm.com> |
6376 | ||
6377 | * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines | |
6378 | with REGNO. | |
6379 | (aarch64_store_gregset): Likewise. | |
6380 | (aarch64_fill_fpregset): Likewise. | |
6381 | (aarch64_store_fpregset): Likewise. | |
6382 | ||
4d3bb80e SM |
6383 | 2017-10-21 Simon Marchi <simon.marchi@ericsson.com> |
6384 | ||
6385 | * gdbthread.h (find_thread, for_each_thread): New functions. | |
6386 | * inferiors.c (thread_of_pid): Remove. | |
6387 | (find_any_thread_of_pid): Use find_thread. | |
6388 | * linux-low.c (num_lwps): Use for_each_thread. | |
6389 | ||
7a7cdfa0 YQ |
6390 | 2017-10-17 Yao Qi <yao.qi@linaro.org> |
6391 | ||
6392 | * Makefile.in: Remove one rule. | |
6393 | * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o. | |
6394 | ||
e675d170 YQ |
6395 | 2017-10-17 Yao Qi <yao.qi@linaro.org> |
6396 | ||
6397 | * configure.srv: Rename arm-linux.o with arch/arm-linux.o. | |
6398 | Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o. | |
6399 | ||
7eb4e0f9 YQ |
6400 | 2017-10-17 Yao Qi <yao.qi@linaro.org> |
6401 | ||
6402 | * configure.srv: Rename arm.o with arch/arm.o. | |
6403 | ||
60d6cfc9 YQ |
6404 | 2017-10-17 Yao Qi <yao.qi@linaro.org> |
6405 | ||
6406 | * Makefile.in (CONFIG_SRC_SUBDIR): New variable. | |
6407 | (clean): Remove .o files in CONFIG_SRC_SUBDIR. | |
6408 | (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR. | |
6409 | (arch-i386.o, arch-amd64.o): Remove rules. | |
6410 | (arch/%.o): New rule. | |
6411 | Update POSTCOMPILE and COMPILE.pre. | |
6412 | * configure.ac: Invoke AC_CONFIG_COMMANDS. | |
6413 | * configure: Re-generated. | |
6414 | * configure.srv: Replace arch-i386.o with arch/i386.o. | |
6415 | Replace arch-amd64.o with arch/amd64.o. | |
6416 | ||
5bfda255 YQ |
6417 | 2017-10-16 Yao Qi <yao.qi@linaro.org> |
6418 | ||
6419 | * configure: Regenerated. | |
6420 | ||
9c80ecd6 SM |
6421 | 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca> |
6422 | ||
6423 | * inferiors.h: (struct inferior_list): Remove. | |
6424 | (struct inferior_list_entry); Remove. | |
6425 | (add_inferior_to_list, clear_inferior_list, one_inferior_p, | |
6426 | A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior, | |
6427 | get_first_inferior): Remove. | |
6428 | (for_each_inferior, for_each_inferior_with_data, find_inferior, | |
6429 | find_inferior_id, find_inferior_in_random): Change signature. | |
6430 | * inferiors.c (all_threads): Change type to | |
6431 | std::list<thread_info *>. | |
6432 | (get_thread): Remove macro. | |
6433 | (find_inferior, find_inferior_id): Change signature, implement | |
6434 | using find_thread. | |
6435 | (find_inferior_in_random): Change signature, implement using | |
6436 | find_thread_in_random. | |
6437 | (for_each_inferior, for_each_inferior_with_data): Change | |
6438 | signature, implement using for_each_thread. | |
6439 | (add_inferior_to_list, remove_inferior): Remove. | |
6440 | (add_thread, get_first_thread, thread_of_pid, | |
6441 | find_any_thread_of_pid, free_one_thread, remove_thread): Update. | |
6442 | (get_first_inferior, one_inferior_p, clear_inferior_list): | |
6443 | Remove. | |
6444 | (clear_inferiors, get_thread_process): Update. | |
6445 | * gdbthread.h: Include <list>. | |
6446 | (struct thread_info) <entry>: Remove field. | |
6447 | <id>: New field. | |
6448 | (all_threads): Change type to std::list<thread_info *>. | |
6449 | (get_first_inferior): Add doc. | |
6450 | (find_thread, for_each_thread, find_thread_in_random): New | |
6451 | functions. | |
6452 | (current_ptid, pid_of, ptid_of, lwpid_of): Update. | |
6453 | * linux-arm-low.c (update_registers_callback): Update. | |
6454 | * linux-low.c (second_thread_of_pid_p): Update. | |
6455 | (kill_one_lwp_callback, linux_detach_lwp_callback, | |
6456 | delete_lwp_callback, status_pending_p_callback, same_lwp, | |
6457 | find_lwp_pid, num_lwps, iterate_over_lwps_filter, | |
6458 | iterate_over_lwps, not_stopped_callback, | |
6459 | resume_stopped_resumed_lwps, count_events_callback, | |
6460 | select_singlestep_lwp_callback, select_event_lwp_callback, | |
6461 | unsuspend_one_lwp, linux_wait_1, send_sigstop_callback, | |
6462 | suspend_and_send_sigstop_callback, wait_for_sigstop, | |
6463 | stuck_in_jump_pad_callback, move_out_of_jump_pad_callback, | |
6464 | lwp_running, linux_set_resume_request, resume_status_pending_p, | |
6465 | need_step_over_p, start_step_over, linux_resume_one_thread, | |
6466 | proceed_one_lwp, unsuspend_and_proceed_one_lwp, | |
6467 | reset_lwp_ptrace_options_callback): Update. | |
6468 | * linux-mips-low.c (update_watch_registers_callback): Update. | |
6469 | * regcache.c (regcache_invalidate_one, regcache_invalidate): | |
6470 | Update. | |
6471 | (free_register_cache_thread_one): Remove. | |
6472 | (regcache_release): Update. | |
6473 | * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt, | |
6474 | handle_qxfer_threads_worker): Update. | |
6475 | (handle_query): Update, use list iterator. | |
6476 | (visit_actioned_threads, handle_pending_status, | |
6477 | queue_stop_reply_callback, gdb_wants_all_threads_stopped, | |
6478 | clear_pending_status_callback, set_pending_status_callback, | |
6479 | find_status_pending_thread_callback, handle_status, | |
6480 | process_serial_event): Update. | |
6481 | * target.c (thread_search_callback): Update. | |
6482 | * thread-db.c (thread_db_get_tls_address): Update. | |
6483 | * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit): | |
6484 | Update. | |
6485 | * win32-i386-low.c (update_debug_registers_callback): Update. | |
6486 | * win32-low.c (delete_thread_info, child_delete_thread, | |
6487 | continue_one_thread, suspend_one_thread, | |
6488 | get_child_debug_event): Adjust. | |
6489 | ||
9179355e SM |
6490 | 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca> |
6491 | ||
6492 | * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions. | |
6493 | * inferiors.h: Include <list>. | |
6494 | (struct process_info) <entry>: Remove field. | |
6495 | <pid>: New field. | |
6496 | (pid_of): Change macro to function. | |
6497 | (ptid_of, lwpid_of): Remove macro. | |
6498 | (all_processes): Change type to std::list<process_info *>. | |
6499 | (ALL_PROCESSES): Remove macro. | |
6500 | (for_each_process, find_process): New function. | |
6501 | * inferiors.c (all_processes): Change type to | |
6502 | std::list<process_info *>. | |
6503 | (find_thread_process): Adjust. | |
6504 | (add_process): Likewise. | |
6505 | (remove_process): Likewise. | |
6506 | (find_process_pid): Likewise. | |
6507 | (get_first_process): Likewise. | |
6508 | (started_inferior_callback): Remove. | |
6509 | (have_started_inferiors_p): Adjust. | |
6510 | (attached_inferior_callback): Remove. | |
6511 | (have_attached_inferiors_p): Adjust. | |
6512 | * linux-low.c (check_zombie_leaders): Likewise. | |
6513 | * linux-x86-low.c (x86_arch_setup_process_callback): Remove. | |
6514 | (x86_linux_update_xmltarget): Adjust. | |
6515 | * server.c (handle_query): Likewise. | |
6516 | (gdb_reattached_process): Remove. | |
6517 | (handle_status): Adjust. | |
6518 | (kill_inferior_callback): Likewise. | |
6519 | (detach_or_kill_inferior): Remove. | |
6520 | (print_started_pid): Likewise. | |
6521 | (print_attached_pid): Likewise. | |
6522 | (detach_or_kill_for_exit): Update. | |
6523 | (process_serial_event): Likewise. | |
6524 | * linux-arm-low.c (arm_new_fork): Likewise. | |
6525 | ||
c9cb8905 SM |
6526 | 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca> |
6527 | ||
6528 | * dll.h: Include <list>. | |
6529 | (struct dll_info): Add constructor. | |
6530 | <entry>: Remove field. | |
6531 | (all_dlls): Change type to std::list<dll_info>. | |
6532 | * dll.c: Include <algorithm>. | |
6533 | (get_dll): Remove macro. | |
6534 | (all_dlls): Change type to std::list<dll_info *>. | |
6535 | (free_one_dll): Remove. | |
6536 | (match_dll): Likewise. | |
6537 | (loaded_dll): Adjust. | |
6538 | (unloaded_dll): Adjust to all_dlls type change, use | |
6539 | std::find_if. Inline code from match_dll. | |
6540 | (clear_dlls): Adjust to all_dlls type change. | |
6541 | * server.c (emit_dll_description): Remove. | |
6542 | (handle_qxfer_libraries): Adjust to all_dlls type change, | |
6543 | integrate emit_dll_description's functionality. | |
6544 | ||
04ec7890 SM |
6545 | 2017-10-12 Simon Marchi <simon.marchi@ericsson.com> |
6546 | ||
6547 | * linux-low.h (struct linux_target_ops) <delete_process>: New | |
6548 | field. | |
6549 | * linux-low.c (linux_mourn): Call the_low_target.delete_process. | |
6550 | * linux-aarch64-low.c (aarch64_linux_delete_process): New. | |
6551 | (struct linux_target_ops): Add delete_process callback. | |
6552 | * linux-arm-low.c (arm_delete_process): New. | |
6553 | (struct linux_target_ops): Add delete_process callback. | |
6554 | * linux-bfin-low.c (struct linux_target_ops): Likewise. | |
6555 | * linux-crisv32-low.c (struct linux_target_ops): Likewise. | |
6556 | * linux-m32r-low.c (struct linux_target_ops): Likewise. | |
6557 | * linux-mips-low.c (mips_linux_delete_process): New. | |
6558 | (struct linux_target_ops): Add delete_process callback. | |
6559 | * linux-ppc-low.c (struct linux_target_ops): Likewise. | |
6560 | * linux-s390-low.c (struct linux_target_ops): Likewise. | |
6561 | * linux-sh-low.c (struct linux_target_ops): Likewise. | |
6562 | * linux-tic6x-low.c (struct linux_target_ops): Likewise. | |
6563 | * linux-tile-low.c (struct linux_target_ops): Likewise. | |
6564 | * linux-x86-low.c (x86_linux_delete_process): New. | |
6565 | (struct linux_target_ops): Add delete_process callback. | |
6566 | * linux-xtensa-low.c (struct linux_target_ops): Likewise. | |
6567 | ||
466eecee SM |
6568 | 2017-10-12 Simon Marchi <simon.marchi@ericsson.com> |
6569 | ||
6570 | * linux-aarch64-low.c (the_low_target): Add thread delete | |
6571 | callback. | |
6572 | * linux-arm-low.c (arm_delete_thread): New function. | |
6573 | (the_low_target): Add thread delete callback. | |
6574 | * linux-bfin-low.c (the_low_target): Likewise. | |
6575 | * linux-crisv32-low.c (the_low_target): Likewise. | |
6576 | * linux-low.c (delete_lwp): Invoke delete_thread callback if | |
6577 | set. | |
6578 | * linux-low.h (struct linux_target_ops) <delete_thread>: New | |
6579 | field. | |
6580 | * linux-m32r-low.c (the_low_target): Add thread delete callback. | |
6581 | * linux-mips-low.c (mips_linux_delete_thread): New function. | |
6582 | (the_low_target): Add thread delete callback. | |
6583 | * linux-ppc-low.c (the_low_target): Likewise. | |
6584 | * linux-s390-low.c (the_low_target): Likewise. | |
6585 | * linux-sh-low.c (the_low_target): Likewise. | |
6586 | * linux-tic6x-low.c (the_low_target): Likewise. | |
6587 | * linux-tile-low.c (the_low_target): Likewise. | |
6588 | * linux-x86-low.c (the_low_target): Likewise. | |
6589 | * linux-xtensa-low.c (the_low_target): Likewise. | |
6590 | ||
b79f7801 YZ |
6591 | 2017-10-06 Yuanhui Zhang <asmwarrior@gmail.com> |
6592 | ||
6593 | * win32-low.c: Include "common-inferior.h". | |
6594 | ||
bc3b087d SDJ |
6595 | 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com> |
6596 | ||
6597 | * inferiors.c (set_inferior_cwd): New function. | |
6598 | * server.c (handle_general_set): Handle QSetWorkingDir packet. | |
6599 | (handle_query): Inform that QSetWorkingDir is supported. | |
6600 | * win32-low.c (create_process): Pass the inferior's cwd to | |
6601 | CreateProcess. | |
6602 | ||
d092c5a2 SDJ |
6603 | 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com> |
6604 | ||
6605 | * inferiors.c (current_inferior_cwd): New global variable. | |
6606 | (get_inferior_cwd): New function. | |
6607 | * inferiors.h (struct process_info) <cwd>: New field. | |
6608 | ||
7da0a886 SDJ |
6609 | 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com> |
6610 | ||
6611 | * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c. | |
6612 | (OBS): Add gdb_tilde_expand.o. | |
6613 | ||
289a6840 SM |
6614 | 2017-10-02 Simon Marchi <simon.marchi@ericsson.com> |
6615 | ||
6616 | * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc. | |
6617 | * nto-x86-low.c (nto_x86_arch_setup): Likewise. | |
6618 | ||
256642e8 PA |
6619 | 2017-09-29 Pedro Alves <palves@redhat.com> |
6620 | ||
6621 | * ax.c (gdb_parse_agent_expr): Constify. | |
6622 | * ax.h (gdb_parse_agent_expr): Constify. | |
6623 | * mem-break.c (add_breakpoint_condition, add_breakpoint_commands): | |
6624 | Constify. | |
6625 | * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify. | |
6626 | * remote-utils.c (hex_or_minus_one, read_ptid): Constify. | |
6627 | * remote-utils.h (read_ptid): Constify. | |
6628 | * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont) | |
6629 | (process_point_options, process_serial_event): Constify. | |
6630 | * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc) | |
6631 | (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp) | |
6632 | (cmd_qtbuffer): Constify. | |
6633 | ||
5b9ca4d4 PA |
6634 | 2017-09-29 Pedro Alves <palves@redhat.com> |
6635 | ||
6636 | * proc-service.c (ps_pdread): Return PS_ERR if reading memory | |
6637 | fails. | |
6638 | ||
94c207e0 PA |
6639 | 2017-09-29 Pedro Alves <palves@redhat.com> |
6640 | ||
6641 | * linux-low.c (handle_extended_wait): Pass parent thread instead | |
6642 | of process to thread_db_notice_clone. | |
6643 | * linux-low.h (thread_db_notice_clone): Replace parent process | |
6644 | parameter with parent thread parameter. | |
6645 | * thread-db.c (find_one_thread): Add comment. | |
6646 | (thread_db_notice_clone): Replace parent process parameter with | |
6647 | parent thread parameter. Temporarily switch to the parent thread. | |
6648 | ||
75352e28 SDJ |
6649 | 2017-09-26 Sergio Durigan Junior <sergiodj@redhat.com> |
6650 | ||
6651 | * gdbthread.h: Include "common-gdbthread.h". | |
6652 | * inferiors.c (switch_to_thread): Use "gdb_assert" instead of | |
6653 | "if" when validating the ptid. | |
6654 | * remote-utils.c: Include "gdbthread.h". | |
6655 | (prepare_resume_reply): Use "switch_to_thread". | |
6656 | * target.c (done_accessing_memory): Likewise. | |
6657 | ||
ad339634 AA |
6658 | 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com> |
6659 | ||
6660 | * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and | |
6661 | s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml, | |
6662 | s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to | |
6663 | srv_xmlfiles. Add s390-gs-linux64-ipa.o and | |
6664 | s390x-gs-linux64-ipa.o to ipa_obj. | |
6665 | * linux-s390-low.c (HWCAP_S390_GS): New define. | |
6666 | (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc): | |
6667 | New functions. | |
6668 | (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC. | |
6669 | (s390_arch_setup): Check for guarded-storage support and choose | |
6670 | appropriate tdesc. | |
6671 | (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and | |
6672 | init_registers_s390x_gs_linux64. | |
6673 | * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New | |
6674 | enum value. | |
6675 | (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64) | |
6676 | (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare. | |
6677 | ||
cc4d742f SM |
6678 | 2017-09-22 Simon Marchi <simon.marchi@ericsson.com> |
6679 | ||
6680 | * win32-i386-low.c (i386_arch_setup): Call init_target_desc. | |
6681 | ||
f6327dcb KB |
6682 | 2017-09-21 Kevin Buettner <kevinb@redhat.com> |
6683 | ||
6684 | * linux-low.h (struct lwp_info): Add new field, thread_handle. | |
6685 | (thread_db_thread_handle): Declare. | |
6686 | * linux-low.c (linux_target_ops): Initialize thread_handle. | |
6687 | * server.c (handle_qxfer_threads_worker): Add support for | |
6688 | "handle" attribute. | |
6689 | * target.h (struct target_ops): Add new function pointer, | |
6690 | thread_handle. | |
6691 | (target_thread_handle): Define. | |
6692 | * thread-db.c (find_one_thread, attach_thread): Set thread_handle | |
6693 | field in lwp. | |
6694 | (thread_db_thread_handle): New function. | |
6695 | ||
86299109 KB |
6696 | 2017-09-21 Kevin Buettner <kevinb@redhat.com> |
6697 | ||
6698 | * linux-low.c (handle_extended_wait): Call thread_db_notice_clone(). | |
6699 | * linux-low.h (thread_db_notice_clone): Declare. | |
6700 | * thread-db.c (thread_db_notice_clone): New function. | |
6701 | ||
f557a88a PA |
6702 | 2017-09-21 Pedro Alves <palves@redhat.com> |
6703 | ||
6704 | * server.c (gdb_read_memory, handle_status, process_serial_event) | |
6705 | (handle_serial_event, handle_target_event): Adjust to | |
6706 | set_desired_thread prototype change. | |
6707 | * target.c (set_desired_thread): Remove 'use_general' parameter | |
6708 | and adjust. | |
6709 | * target.h (set_desired_thread): Remove 'use_general' parameter. | |
6710 | ||
223ffa71 TT |
6711 | 2017-09-20 Tom Tromey <tom@tromey.com> |
6712 | ||
6713 | * target.c (target_terminal::terminal_state): Define. | |
6714 | (target_terminal::init): Rename from target_terminal_init. | |
6715 | (target_terminal::inferior): Rename from | |
6716 | target_terminal_inferior. | |
6717 | (target_terminal::ours): Rename from target_terminal_ours. | |
6718 | (target_terminal::ours_for_output, target_terminal::info): New. | |
6719 | ||
04fd3ba9 SM |
6720 | 2017-09-16 Simon Marchi <simon.marchi@ericsson.com> |
6721 | ||
6722 | * server.c (accumulate_file_name_length): Remove. | |
6723 | (emit_dll_description): Adjust to std::string change. | |
6724 | (handle_qxfer_libraries): Use std::string to hold document. | |
6725 | ||
5e187554 SM |
6726 | 2017-09-16 Simon Marchi <simon.marchi@ericsson.com> |
6727 | ||
6728 | * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of | |
6729 | return type of xml_escape_text. | |
6730 | * server.c (emit_dll_description): Likewise. | |
6731 | ||
1526853e SM |
6732 | 2017-09-16 Simon Marchi <simon.marchi@ericsson.com> |
6733 | ||
6734 | * server.c (captured_main): Accept argument for --selftest. | |
6735 | Update run_tests call. | |
6736 | * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names | |
6737 | when registering selftests. | |
6738 | ||
c4dfafab SDJ |
6739 | 2017-09-16 Sergio Durigan Junior <sergiodj@redhat.com> |
6740 | ||
6741 | * regcache.c (get_thread_regcache): Update code to use "std::vector" | |
6742 | instead of "VEC" for "target_desc.reg_defs". | |
6743 | (regcache_cpy): Likewise. | |
6744 | (registers_to_string): Likewise. | |
6745 | (registers_from_string): Likewise. | |
6746 | (find_regno): Likewise. | |
6747 | (supply_regblock): Likewise. | |
6748 | (regcache_raw_read_unsigned): Likewise. | |
6749 | * tdesc.c (init_target_desc): Likewise. | |
6750 | (tdesc_create_reg): Likewise. | |
6751 | * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>. | |
6752 | (struct target_desc) <reg_defs>: Convert to "std::vector". | |
6753 | (target_desc): Do not initialize "reg_defs". | |
6754 | (~target_desc): Update code to use "std::vector" instead of "VEC" | |
6755 | for "target_desc.reg_defs". | |
6756 | (operator==): Likewise. | |
6757 | ||
124aceb4 SM |
6758 | 2017-09-15 Simon Marchi <simon.marchi@ericsson.com> |
6759 | ||
6760 | * inferiors.h (thread_to_gdb_id): Remove. | |
6761 | * inferiors.c (thread_to_gdb_id): Remove. | |
6762 | * server.c (handle_qxfer_threads_worker, handle_query): Adjust. | |
6763 | * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers, | |
6764 | lynx_store_registers, lynx_read_memory, lynx_write_memory): | |
6765 | Likewise. | |
6766 | * nto-low.c (nto_fetch_registers, nto_store_registers, | |
6767 | nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise. | |
6768 | ||
96cde54f SM |
6769 | 2017-09-15 Simon Marchi <simon.marchi@ericsson.com> |
6770 | ||
6771 | * inferiors.h (gdb_id_to_thread_id): Remove. | |
6772 | * inferiors.c (gdb_id_to_thread_id): Remove. | |
6773 | * server.c (process_serial_event): Adjust to gdb_id_to_thread_id | |
6774 | removal. Move pid declaration closer to where it's used. | |
6775 | ||
e8ca139e SM |
6776 | 2017-09-15 Simon Marchi <simon.marchi@ericsson.com> |
6777 | ||
6778 | * server.c (handle_detach): New function. | |
6779 | (process_serial_event): Move code out, call handle_detach. | |
6780 | ||
f8a4e119 SM |
6781 | 2017-09-15 Simon Marchi <simon.marchi@ericsson.com> |
6782 | ||
6783 | * server.c (require_running): Rename to ... | |
6784 | (require_running_or_return): ... this ... | |
6785 | (require_running_or_break): ... and this. | |
6786 | (handle_query, process_serial_event): Adjust. | |
6787 | ||
0eb0a407 SM |
6788 | 2017-09-15 Simon Marchi <simon.marchi@ericsson.com> |
6789 | ||
6790 | * linux-low.c (linux_set_resume_request): Remove unused | |
6791 | variables. | |
6792 | ||
785922a5 SM |
6793 | 2017-09-15 Simon Marchi <simon.marchi@ericsson.com> |
6794 | ||
6795 | * server.c (first_thread_of): Remove. | |
6796 | (process_serial_event): Replace usage of first_thread_of with | |
6797 | find_any_thread_of_pid. | |
6798 | * tracepoint.c (same_process_p): Remove. | |
6799 | (gdb_agent_about_to_close): Replace usage of same_process_p with | |
6800 | find_any_thread_of_pid. | |
6801 | * linux-x86-low.c (same_process_callback): Remove. | |
6802 | (x86_arch_setup_process_callback): Replace usage of | |
6803 | same_process_callback with find_any_thread_of_pid. | |
6804 | * thread-db.c (any_thread_of): Remove. | |
6805 | (switch_to_process): Replace usage of any_thread_of with | |
6806 | find_any_thread_of_pid. | |
6807 | * inferiors.c (thread_pid_matches_callback): Remove. | |
6808 | (find_thread_process): Adjust to use find_any_thread_of_pid. | |
6809 | ||
a059f00c SDJ |
6810 | 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com> |
6811 | ||
6812 | * regcache.c (get_thread_regcache): Guard calls to "memset" | |
e79be6e5 | 6813 | with "!VEC_empty". |
a059f00c | 6814 | |
cc397f3a SDJ |
6815 | 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com> |
6816 | ||
6817 | * linux-low.c (handle_extended_wait): Use | |
6818 | "allocate_target_description" instead of "XNEW". | |
6819 | * linux-x86-low.c (initialize_low_arch): Likewise. | |
6820 | ||
22916b07 YQ |
6821 | 2017-09-05 Yao Qi <yao.qi@linaro.org> |
6822 | ||
6823 | * configure.srv (srv_i386_regobj): Remove. | |
6824 | (srv_amd64_regobj): Remove. | |
6825 | (srv_regobj): Set it to "" for x86 non-linux targets. | |
6826 | * linux-x86-tdesc.c (i386_linux_read_description): | |
6827 | * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h. | |
6828 | (init_registers_i386): Remove the declaration. | |
6829 | (tdesc_i386): Remove the declaration. | |
6830 | (lynx_i386_arch_setup): Call i386_create_target_description. | |
6831 | * nto-x86-low.c: Likewise. | |
6832 | * win32-i386-low.c [__x86_64__]: include arch/amd64.h. | |
6833 | [!__x86_64__]: include arch/i386.h. | |
6834 | (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description. | |
6835 | ||
38602d55 YQ |
6836 | 2017-09-05 Yao Qi <yao.qi@linaro.org> |
6837 | ||
6838 | * configure.srv (srv_amd64_linux_xmlfiles): Remove | |
6839 | i386/amd64-XXX-linux from it. | |
6840 | ||
44b886ff YQ |
6841 | 2017-09-05 Yao Qi <yao.qi@linaro.org> |
6842 | ||
6843 | * configure.srv: Empty srv_amd64_linux_regobj if $development is | |
6844 | false. | |
6845 | (ipa_amd64_linux_regobj): Remove. | |
6846 | (ipa_x32_linux_regobj): Remove. | |
6847 | ||
b4570e4b YQ |
6848 | 2017-09-05 Yao Qi <yao.qi@linaro.org> |
6849 | ||
6850 | * Makefile.in (arch-amd64.o): New rule. | |
6851 | * configure.srv: Append arch-amd64.o. | |
6852 | * linux-amd64-ipa.c: Include common/x86-xstate.h. | |
6853 | (get_ipa_tdesc): Call amd64_linux_read_description. | |
6854 | (initialize_low_tracepoint): Don't call init_registers_x32_XXX | |
6855 | and init_registers_amd64_XXX. | |
6856 | * linux-x86-low.c (x86_linux_read_description): Call | |
6857 | amd64_linux_read_description. | |
6858 | (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx. | |
6859 | (initialize_low_arch): Don't call init_registers_x32_XXX and | |
6860 | init_registers_amd64_XXX. | |
6861 | * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX | |
6862 | and tdesc_amd64_XXX. | |
6863 | [__x86_64__] (amd64_tdesc_test): New function. | |
6864 | (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX | |
6865 | and init_registers_amd64_XXX. | |
6866 | * linux-x86-tdesc.c: Include arch/amd64.h. | |
6867 | (xcr0_to_tdesc_idx): New function. | |
6868 | (i386_linux_read_description): New function. | |
6869 | (amd64_get_ipa_tdesc_idx): New function. | |
6870 | * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare. | |
6871 | (amd64_get_ipa_tdesc): Declare. | |
6872 | ||
d1f28ea2 YQ |
6873 | 2017-09-05 Yao Qi <yao.qi@linaro.org> |
6874 | ||
6875 | * configure.srv (srv_i386_linux_xmlfiles): Remove | |
6876 | i386/i386-XXX-linux.xml from it. | |
6877 | ||
25a93583 YQ |
6878 | 2017-09-05 Yao Qi <yao.qi@linaro.org> |
6879 | ||
6880 | * configure.srv: Set srv_i386_linux_regobj empty if $development | |
6881 | is false. | |
6882 | * linux-i386-ipa.c (initialize_low_tracepoint): Don't call | |
6883 | initialize_low_tdesc. | |
6884 | * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc | |
6885 | with #if initialize_low_tdesc. | |
6886 | * linux-x86-tdesc-selftest.c: New file. | |
6887 | * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c. | |
6888 | ||
5f035c07 YQ |
6889 | 2017-09-05 Yao Qi <yao.qi@linaro.org> |
6890 | ||
6891 | * Makefile.in (arch-i386.o): New rule. | |
6892 | * configure.srv (i[34567]86-*-linux*): Add arch-i386.o. | |
6893 | (x86_64-*-linux*): Likewise. | |
6894 | * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c, | |
6895 | include arch/i386.h. | |
6896 | (i386_linux_read_description): Remove code and call | |
6897 | i386_create_target_description. | |
6898 | * tdesc.c (allocate_target_description): New function. | |
6899 | * tdesc.h (set_tdesc_architecture): Remove declaration. | |
6900 | (set_tdesc_osabi): Likewise. | |
6901 | ||
0abe8a89 YQ |
6902 | 2017-09-05 Yao Qi <yao.qi@linaro.org> |
6903 | ||
6904 | * linux-x86-tdesc.c: Don't include <inttypes.h>. | |
6905 | (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call | |
6906 | set_tdesc_architecture and set_tdesc_osabi. Remove code setting | |
6907 | .xmltarget. | |
6908 | * server.c (get_features_xml): Call tdesc_get_features_xml. | |
6909 | * tdesc.c (set_tdesc_architecture): New function. | |
6910 | (set_tdesc_osabi): New function. | |
6911 | (tdesc_get_features_xml): New function. | |
6912 | (tdesc_create_feature): Add an argument. | |
6913 | * tdesc.h (struct target_desc) <features>: New field. | |
6914 | <arch, osabi>: New field. | |
6915 | (~target_desc): xfree features, arch, and osabi. | |
6916 | (target_desc::oerator==): Don't compare .xmltarget. | |
6917 | [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare. | |
6918 | (set_tdesc_osabi): Likewise. | |
6919 | (tdesc_get_features_xml): Likewise. | |
6920 | ||
0a188386 YQ |
6921 | 2017-09-05 Yao Qi <yao.qi@linaro.org> |
6922 | ||
6923 | * linux-x86-tdesc.c: Include selftest.h. | |
6924 | (i386_tdesc_test): New function. | |
6925 | (initialize_low_tdesc): Call selftests::register_test. | |
6926 | * tdesc.h: Include regdef.h. | |
6927 | (target_desc): Override operator == and !=. | |
6928 | ||
f49ff000 YQ |
6929 | 2017-09-05 Yao Qi <yao.qi@linaro.org> |
6930 | ||
6931 | * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o. | |
6932 | (ipa_obj): Likewise. | |
6933 | * linux-i386-ipa.c: Include common/x86-xstate.h | |
6934 | (get_ipa_tdesc): Call i386_linux_read_description. | |
6935 | (initialize_low_tracepoint): Don't call init_registers_XXX | |
6936 | functions, call initialize_low_tdesc instead. | |
6937 | * linux-x86-low.c (x86_linux_read_description): Call | |
6938 | i386_linux_read_description. | |
6939 | (initialize_low_arch): Don't call init_registers_i386_XXX | |
6940 | functions, call initialize_low_tdesc. | |
6941 | * linux-x86-tdesc.c: New file. | |
6942 | * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST. | |
6943 | (i386_get_ipa_tdesc_idx): Declare. | |
6944 | (i386_get_ipa_tdesc): Declare. | |
6945 | (initialize_low_tdesc): Declare. | |
6946 | ||
2b68ef2f YQ |
6947 | 2017-09-05 Yao Qi <yao.qi@linaro.org> |
6948 | ||
6949 | * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX | |
6950 | instead of 0. | |
6951 | ||
f7000548 YQ |
6952 | 2017-09-05 Yao Qi <yao.qi@linaro.org> |
6953 | ||
6954 | * Makefile.in (IPA_OBJS): Add vec-ipa.o | |
6955 | * regcache.c (get_thread_regcache): Use VEC_length. | |
6956 | (init_register_cache): Likewise. | |
6957 | (regcache_cpy): Likewise. | |
6958 | (registers_to_string): Iterate reg_defs via VEC_iterate. | |
6959 | (find_regno): Likewise. | |
6960 | (find_register_by_number): Use VEC_index. | |
6961 | (register_size): Call find_register_by_number. | |
6962 | (register_data): Call find_register_by_number. | |
6963 | (supply_regblock): Use VEC_length. | |
6964 | (regcache_raw_read_unsigned): Likewise. | |
6965 | * tdesc.c (init_target_desc): Iterate reg_defs via | |
6966 | VEC_iterate. | |
6967 | (default_description): Update initializer. | |
6968 | (copy_target_description): Don't update field num_registers. | |
6969 | * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC. | |
6970 | <num_registers>: Remove. | |
6971 | ||
50a421ac SM |
6972 | 2017-09-04 Simon Marchi <simon.marchi@ericsson.com> |
6973 | ||
6974 | * Makefile.in (.SECONDARY): Define target. | |
6975 | ||
23fdd69e SM |
6976 | 2017-09-03 Simon Marchi <simon.marchi@ericsson.com> |
6977 | ||
6978 | * linux-low.c (linux_wait_1): Adjust. | |
6979 | * server.c (queue_stop_reply_callback): Adjust. | |
6980 | ||
0a2dde4a SDJ |
6981 | 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com> |
6982 | ||
6983 | * server.c (handle_general_set): Handle QEnvironmentHexEncoded, | |
6984 | QEnvironmentUnset and QEnvironmentReset packets. | |
6985 | (handle_query): Inform remote that QEnvironmentHexEncoded, | |
6986 | QEnvironmentUnset and QEnvironmentReset are supported. | |
6987 | ||
6afd337d SM |
6988 | 2017-08-25 Simon Marchi <simon.marchi@ericsson.com> |
6989 | ||
6990 | * inferiors.h (inferior_target_data): Rename to ... | |
6991 | (thread_target_data): ... this. | |
6992 | (inferior_regcache_data): Rename to ... | |
6993 | (thread_regcache_data): ... this. | |
6994 | (set_inferior_regcache_data): Rename to ... | |
6995 | (set_thread_regcache_data): ... this. | |
6996 | * inferiors.c (inferior_target_data): Rename to ... | |
6997 | (thread_target_data): ... this. | |
6998 | (inferior_regcache_data): Rename to ... | |
6999 | (thread_regcache_data): ... this. | |
7000 | (set_inferior_regcache_data): Rename to ... | |
7001 | (set_thread_regcache_data): ... this. | |
7002 | (free_one_thread): Update. | |
7003 | * linux-low.h (get_thread_lwp): Update. | |
7004 | * regcache.c (get_thread_regcache): Update. | |
7005 | (regcache_invalidate_thread): Update. | |
7006 | (free_register_cache_thread): Update. | |
7007 | * win32-i386-low.c (update_debug_registers_callback): Update. | |
7008 | (win32_get_current_dr): Update. | |
7009 | * win32-low.c (thread_rec): Update. | |
7010 | (delete_thread_info): Update. | |
7011 | (continue_one_thread): Update. | |
7012 | (suspend_one_thread): Update. | |
7013 | ||
a160cc46 SM |
7014 | 2017-08-24 Simon Marchi <simon.marchi@ericsson.com> |
7015 | ||
7016 | * inferiors.c (set_inferior_target_data): Remove. | |
7017 | * inferiors.h (set_inferior_target_data): Remove. | |
7018 | ||
6d580b63 YQ |
7019 | 2017-08-18 Yao Qi <yao.qi@linaro.org> |
7020 | ||
7021 | * Makefile.in (OBS): Add selftest.o. | |
7022 | * configure.ac: AC_DEFINE GDB_SELF_TEST if $development. | |
7023 | * configure, config.in: Re-generated. | |
7024 | * server.c: Include common/sefltest.h. | |
7025 | (captured_main): Handle option --selftest. | |
7026 | ||
f5a29eb0 YQ |
7027 | 2017-08-09 Yao Qi <yao.qi@linaro.org> |
7028 | ||
7029 | * configure.srv (srv_i386_regobj): Remove i386-avx.o, | |
7030 | i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o, | |
7031 | i386-avx-mpx.o and i386-mmx.o. | |
7032 | (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o, | |
7033 | amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o. | |
7034 | (srv_i386_xmlfiles): Remove i386/i386-avx.xml, | |
7035 | i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml, | |
7036 | i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml. | |
7037 | (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml, | |
7038 | i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml, | |
7039 | i386/amd64-avx-mpx.xml. | |
7040 | ||
57757c2f YQ |
7041 | 2017-08-09 Yao Qi <yao.qi@linaro.org> |
7042 | ||
7043 | * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o | |
7044 | and x32-avx-avx512.o. | |
7045 | (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml | |
7046 | i386/x32-avx-avx512.xml. | |
7047 | ||
229d26fc SM |
7048 | 2017-07-26 Simon Marchi <simon.marchi@ericsson.com> |
7049 | ||
7050 | * tracepoint.h (enum class fast_tpoint_collect_result): New | |
7051 | enumeration. | |
7052 | (fast_tracepoint_collecting): Change return type to | |
7053 | fast_tpoint_collect_result. | |
7054 | * tracepoint.c (fast_tracepoint_collecting): Likewise. | |
7055 | * linux-low.h: Include tracepoint.h. | |
7056 | (struct lwp_info) <collecting_fast_tracepoint>: Change type to | |
7057 | fast_tpoint_collect_result. | |
7058 | * linux-low.c (handle_tracepoints): Adjust. | |
7059 | (linux_fast_tracepoint_collecting): Change return type to | |
7060 | fast_tpoint_collect_result. | |
7061 | (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered, | |
7062 | linux_wait_1, stuck_in_jump_pad_callback, | |
7063 | lwp_signal_can_be_delivered, linux_resume_one_lwp_throw, | |
7064 | proceed_one_lwp): Adjust to type change. | |
7065 | ||
2e1e43e1 YQ |
7066 | 2017-07-10 Yao Qi <yao.qi@linaro.org> |
7067 | ||
7068 | * linux-x86-low.c (x86_linux_read_description): Re-indent the code. | |
7069 | ||
adc764e7 YQ |
7070 | 2017-06-29 Yao Qi <yao.qi@linaro.org> |
7071 | ||
7072 | * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>: | |
7073 | Remove. | |
7074 | [IN_PROCESS_AGENT] <xmltarget>: Likewise. | |
7075 | ||
a206891a SM |
7076 | 2017-06-20 Simon Marchi <simon.marchi@ericsson.com> |
7077 | ||
7078 | * Makefile.in (IPA_OBJS): Sort and format one item per line. | |
7079 | ||
9a6c7d9c SDJ |
7080 | 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com> |
7081 | ||
7082 | * linux-low.c (linux_create_inferior): Adjust code to access the | |
7083 | environment information via 'gdb_environ' class. | |
7084 | * lynx-low.c (lynx_create_inferior): Likewise. | |
7085 | * server.c (our_environ): Make it an instance of 'gdb_environ'. | |
7086 | (get_environ): Return a pointer to 'our_environ'. | |
7087 | (captured_main): Initialize 'our_environ'. | |
7088 | * server.h (get_environ): Adjust prototype. | |
7089 | * spu-low.c (spu_create_inferior): Adjust code to access the | |
7090 | environment information via 'gdb_environ' class. | |
7091 | ||
ae3e2ccf SM |
7092 | 2017-06-17 Simon Marchi <simon.marchi@ericsson.com> |
7093 | ||
7094 | * linux-low.c (linux_read_memory, linux_write_memory): Remove | |
7095 | usage of "register" keyword. | |
7096 | ||
3e019bdc SM |
7097 | 2017-06-17 Simon Marchi <simon.marchi@ericsson.com> |
7098 | ||
7099 | * configure: Re-generate. | |
7100 | ||
8465943a SM |
7101 | 2017-06-17 Simon Marchi <simon.marchi@ericsson.com> |
7102 | ||
7103 | * configure: Re-generate. | |
7104 | ||
cf0dd6f0 SM |
7105 | 2017-06-17 Simon Marchi <simon.marchi@ericsson.com> |
7106 | ||
7107 | * Makefile.in (COMPILE.pre): Add "-x c++". | |
7108 | ||
9845682b SDJ |
7109 | 2017-06-09 Sergio Durigan Junior <sergiodj@redhat.com> |
7110 | ||
7111 | * fork-child.c: Conditionally include <signal.h>. | |
7112 | ||
aefd8b33 SDJ |
7113 | 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com> |
7114 | ||
7115 | * server.c (handle_general_set): Handle new packet | |
7116 | "QStartupWithShell". | |
7117 | (handle_query): Add "QStartupWithShell" to the list of supported | |
7118 | packets. | |
7119 | (gdbserver_usage): Add help text explaining the | |
7120 | new "--startup-with-shell" and "--no-startup-with-shell" CLI | |
7121 | options. | |
7122 | (captured_main): Recognize and act upon the presence of the new | |
7123 | CLI options. | |
7124 | ||
2090129c SDJ |
7125 | 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com> |
7126 | Pedro Alves <palves@redhat.com> | |
7127 | ||
7128 | * Makefile.in (SFILES): Add "nat/fork-inferior.o". | |
7129 | * configure: Regenerate. | |
7130 | * configure.srv (srv_linux_obj): Add "fork-child.o" and | |
7131 | "fork-inferior.o". | |
7132 | (i[34567]86-*-lynxos*): Likewise. | |
7133 | (spu*-*-*): Likewise. | |
7134 | * fork-child.c: New file. | |
7135 | * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h" | |
7136 | and "environ.h". | |
7137 | (linux_ptrace_fun): New function. | |
7138 | (linux_create_inferior): Adjust function prototype to reflect | |
7139 | change on "target.h". Adjust function code to use | |
7140 | "fork_inferior". | |
7141 | (linux_request_interrupt): Delete "signal_pid". | |
7142 | * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h". | |
7143 | (lynx_ptrace_fun): New function. | |
7144 | (lynx_create_inferior): Adjust function prototype to reflect | |
7145 | change on "target.h". Adjust function code to use | |
7146 | "fork_inferior". | |
7147 | * nto-low.c (nto_create_inferior): Adjust function prototype and | |
7148 | code to reflect change on "target.h". Update comments. | |
7149 | * server.c: Include "common-inferior.h", "nat/fork-inferior.h", | |
7150 | "common-terminal.h" and "environ.h". | |
7151 | (terminal_fd): Moved to fork-child.c. | |
7152 | (old_foreground_pgrp): Likewise. | |
7153 | (restore_old_foreground_pgrp): Likewise. | |
7154 | (last_status): Make it global. | |
7155 | (last_ptid): Likewise. | |
7156 | (our_environ): New variable. | |
7157 | (startup_with_shell): Likewise. | |
7158 | (program_name): Likewise. | |
7159 | (program_argv): Rename to... | |
7160 | (program_args): ...this. | |
7161 | (wrapper_argv): New variable. | |
7162 | (start_inferior): Delete function. | |
7163 | (get_exec_wrapper): New function. | |
7164 | (get_exec_file): Likewise. | |
7165 | (get_environ): Likewise. | |
7166 | (prefork_hook): Likewise. | |
7167 | (post_fork_inferior): Likewise. | |
7168 | (postfork_hook): Likewise. | |
7169 | (postfork_child_hook): Likewise. | |
7170 | (handle_v_run): Update code to deal with arguments coming from the | |
7171 | remote host. Update calls from "start_inferior" to | |
7172 | "create_inferior". | |
7173 | (captured_main): Likewise. Initialize environment variable. Call | |
7174 | "have_job_control". | |
7175 | * server.h (post_fork_inferior): New prototype. | |
7176 | (get_environ): Likewise. | |
7177 | (last_status): Declare. | |
7178 | (last_ptid): Likewise. | |
7179 | (signal_pid): Likewise. | |
7180 | * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h". | |
7181 | (spu_ptrace_fun): New function. | |
7182 | (spu_create_inferior): Adjust function prototype to reflect change | |
7183 | on "target.h". Adjust function code to use "fork_inferior". | |
7184 | * target.c (target_terminal_init): New function. | |
7185 | (target_terminal_inferior): Likewise. | |
7186 | (target_terminal_ours): Likewise. | |
7187 | * target.h: Include <vector>. | |
7188 | (struct target_ops) <create_inferior>: Update prototype. | |
7189 | (create_inferior): Update macro. | |
7190 | * utils.c (gdb_flush_out_err): New function. | |
7191 | * win32-low.c (win32_create_inferior): Adjust function prototype | |
7192 | and code to reflect change on "target.h". | |
7193 | ||
043a4934 SDJ |
7194 | 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com> |
7195 | ||
7196 | * inferiors.c (switch_to_thread): New function. | |
7197 | ||
15652511 SDJ |
7198 | 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com> |
7199 | ||
7200 | * Makefile.in (SFILE): Add "common/job-control.c". | |
7201 | (OBS): Add "job-control.o". | |
7202 | ||
21ea5acd SDJ |
7203 | 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com> |
7204 | ||
7205 | * Makefile: Remove "@host_makefile_frag@". | |
7206 | ||
e13cb306 PA |
7207 | 2017-05-05 Pedro Alves <palves@redhat.com> |
7208 | ||
7209 | * configure: Regenerate. | |
7210 | ||
c94fee56 SDJ |
7211 | 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com> |
7212 | ||
7213 | * configure: Regenerate. | |
7214 | ||
a0ff9e1a SM |
7215 | 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca> |
7216 | ||
7217 | * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to | |
7218 | software_single_step change of return type to | |
7219 | std::vector<CORE_ADDR>. | |
7220 | * linux-low.c (install_software_single_step_breakpoints): | |
7221 | Likewise. | |
7222 | * linux-low.h (install_software_single_step_breakpoints): | |
7223 | Likewise. | |
7224 | ||
be628ab8 SDJ |
7225 | 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com> |
7226 | ||
7227 | * remote-utils.c: Include "gdb_termios.h" instead of | |
7228 | "terminal.h". | |
7229 | * terminal.h: Delete file. | |
7230 | ||
7c5ded6a SDJ |
7231 | 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com> |
7232 | ||
7233 | * server.c: Include <vector>. | |
7234 | <program_argv, wrapper_argv>: Convert to std::vector. | |
7235 | (start_inferior): Rewrite function to use C++. | |
7236 | (handle_v_run): Likewise. Update code that calculates the argv | |
7237 | based on the vRun packet; use C++. | |
7238 | (captured_main): Likewise. | |
7239 | ||
436252de SM |
7240 | 2017-04-06 Simon Marchi <simon.marchi@ericsson.com> |
7241 | ||
7242 | * server.c (handle_v_cont): Initialize thread_resume::thread | |
7243 | with null_ptid. | |
7244 | ||
9bf2a700 PA |
7245 | 2017-04-05 Pedro Alves <palves@redhat.com> |
7246 | ||
7247 | * configure: Regenerate. | |
7248 | ||
a121b7c1 PA |
7249 | 2017-04-05 Pedro Alves <palves@redhat.com> |
7250 | ||
7251 | * gdbreplay.c (sync_error): Constify. | |
7252 | * linux-x86-low.c (push_opcode): Constify. | |
7253 | ||
21c8a587 PA |
7254 | 2017-04-05 Pedro Alves <palves@redhat.com> |
7255 | ||
7256 | * win32-low.c (get_child_debug_event) | |
7257 | <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD. | |
7258 | Report TARGET_WAITKIND_SPURIOUS instead. | |
7259 | ||
fb32b4f7 PA |
7260 | 2017-04-05 Pedro Alves <palves@redhat.com> |
7261 | ||
e79be6e5 SM |
7262 | * remote-utils.c (remote_prepare, remote_open): Constify. |
7263 | * remote-utils.h (remote_prepare, remote_open): Constify. | |
7264 | * server.c (captured_main): Constify 'port' handling. | |
fb32b4f7 | 7265 | |
65dd1e59 SM |
7266 | 2017-04-04 Simon Marchi <simon.marchi@ericsson.com> |
7267 | ||
7268 | * Makefile.in (clean): Clear .deps. | |
7269 | ||
8fa5b777 SM |
7270 | 2017-03-31 Simon Marchi <simon.marchi@polymtl.ca> |
7271 | ||
7272 | * .gitignore: Remove generated files, replace with wildcard. | |
7273 | * (clean): Replace removal of generated files with wildcard. | |
7274 | (version.c): Replace with... | |
7275 | (version-generated.c): ...this. | |
7276 | (xml-builtin.c): Replace with... | |
7277 | (xml-builtin-generated.c): ...this. | |
7278 | (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules. | |
7279 | (%.c: *regformats*): Replace with... | |
7280 | (%-generated.c: *regformats*): ...this. | |
7281 | ||
a12e714b MF |
7282 | 2017-03-27 Max Filippov <jcmvbkbc@gmail.com> |
7283 | ||
7284 | * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member. | |
7285 | (xtensa_fill_gregset): Call collect_register_by_name for | |
7286 | threadptr register. | |
7287 | (xtensa_store_gregset): Call supply_register_by_name for | |
7288 | threadptr register. | |
7289 | ||
1a09b50a MF |
7290 | 2017-03-27 Max Filippov <jcmvbkbc@gmail.com> |
7291 | ||
7292 | * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register | |
7293 | for all registers in a0_regnum..a0_regnum + C0_NREGS range. | |
7294 | (xtensa_store_gregset): Call supply_register for all registers in | |
7295 | a0_regnum..a0_regnum + C0_NREGS range. | |
7296 | ||
1a01e7c6 SM |
7297 | 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca> |
7298 | ||
7299 | * Makefile.in (%-ipa.o: %-ipa.c): New rule. | |
7300 | (ax-ipa.o: ax.c): Remove. | |
7301 | (linux-i386-ipa.o: linux-i386-ipa.c): Remove. | |
7302 | (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove. | |
7303 | (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove. | |
7304 | (linux-s390-ipa.o: linux-s390-ipa.c): Remove. | |
7305 | (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove. | |
7306 | ||
36bc18a8 SM |
7307 | 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca> |
7308 | ||
7309 | * Makefile.in (%-ipa.o: ../common/%.c): New rule. | |
7310 | (print-utils-ipa.o: ../common/print-utils.c): Remove. | |
7311 | (rsp-low-ipa.o: ../common/rsp-low.c): Remove. | |
7312 | (errors-ipa.o: ../common/errors.c): Remove. | |
7313 | (format-ipa.o: ../common/format.c): Remove. | |
7314 | (common-utils-ipa.o: ../common/common-utils.c): Remove. | |
7315 | ||
a8ebe3d5 SM |
7316 | 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca> |
7317 | ||
7318 | * Makefile.in (%-ipa.o: %.c): New rule. | |
7319 | (tracepoint-ipa.o: tracepoint.c): Remove. | |
7320 | (utils-ipa.o: utils.c): Remove. | |
7321 | (remote-utils-ipa.o: remote-utils.c): Remove. | |
7322 | (regcache-ipa.o: regcache.c): Remove. | |
7323 | (i386-linux-ipa.o: i386-linux.c): Remove. | |
7324 | (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove. | |
7325 | (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove. | |
7326 | (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove. | |
7327 | (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove. | |
7328 | (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove. | |
7329 | (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove. | |
7330 | (amd64-linux-ipa.o: amd64-linux.c): Remove. | |
7331 | (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove. | |
7332 | (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove. | |
7333 | (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove. | |
7334 | (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove. | |
7335 | (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove. | |
7336 | (aarch64-ipa.o: aarch64.c): Remove. | |
7337 | (s390-linux32-ipa.o: s390-linux32.c): Remove. | |
7338 | (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove. | |
7339 | (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove. | |
7340 | (s390-linux64-ipa.o: s390-linux64.c): Remove. | |
7341 | (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove. | |
7342 | (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove. | |
7343 | (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove. | |
7344 | (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove. | |
7345 | (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove. | |
7346 | (s390x-linux64-ipa.o: s390x-linux64.c): Remove. | |
7347 | (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove. | |
7348 | (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove. | |
7349 | (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove. | |
7350 | (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove. | |
7351 | (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove. | |
7352 | (powerpc-32l-ipa.o: powerpc-32l.c): Remove. | |
7353 | (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove. | |
7354 | (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove. | |
7355 | (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove. | |
7356 | (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove. | |
7357 | (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove. | |
7358 | (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove. | |
7359 | (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove. | |
7360 | (powerpc-64l-ipa.o: powerpc-64l.c): Remove. | |
7361 | (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove. | |
7362 | (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove. | |
7363 | (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove. | |
7364 | (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove. | |
7365 | (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove. | |
7366 | (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove. | |
7367 | (tdesc-ipa.o: tdesc.c): Remove. | |
7368 | (x32-linux-ipa.o: x32-linux.c): Remove. | |
7369 | (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove. | |
7370 | (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove. | |
7371 | ||
50cfacb7 SM |
7372 | 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca> |
7373 | ||
7374 | * Makefile.in (%.o: ../arch/%.c): New rule. | |
7375 | (arm.o: ../arch/arm.c): Remove. | |
7376 | (arm-linux.o: ../arch/arm-linux.c): Remove. | |
7377 | (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove. | |
7378 | (aarch64-insn.o: ../arch/aarch64-insn.c): Remove. | |
7379 | ||
c5a22423 SM |
7380 | 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca> |
7381 | ||
7382 | * Makefile.in (%.o: ../nat/%.c): New rule. | |
7383 | (x86-dregs.o: ../nat/x86-dregs.c): Remove. | |
7384 | (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove. | |
7385 | (linux-btrace.o: ../nat/linux-btrace.c): Remove. | |
7386 | (linux-osdata.o: ../nat/linux-osdata.c): Remove. | |
7387 | (linux-procfs.o: ../nat/linux-procfs.c): Remove. | |
7388 | (linux-ptrace.o: ../nat/linux-ptrace.c): Remove. | |
7389 | (linux-waitpid.o: ../nat/linux-waitpid.c): Remove. | |
7390 | (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove. | |
7391 | (ppc-linux.o: ../nat/ppc-linux.c): Remove. | |
7392 | (linux-personality.o: ../nat/linux-personality.c): Remove. | |
7393 | (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove. | |
7394 | (aarch64-linux.o: ../nat/aarch64-linux.c): Remove. | |
7395 | (x86-linux.o: ../nat/x86-linux.c): Remove. | |
7396 | (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove. | |
7397 | (linux-namespaces.o: ../nat/linux-namespaces.c): Remove. | |
7398 | ||
6bda016b SM |
7399 | 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca> |
7400 | ||
7401 | * Makefile.in (%.o: ../common/%.c): New rule. | |
7402 | (signals.o: ../common/signals.c): Remove. | |
7403 | (print-utils.o: ../common/print-utils.c): Remove. | |
7404 | (rsp-low.o: ../common/rsp-low.c): Remove. | |
7405 | (common-utils.o: ../common/common-utils.c): Remove. | |
7406 | (posix-strerror.o: ../common/posix-strerror.c): Remove. | |
7407 | (mingw-strerror.o: ../common/mingw-strerror.c): Remove. | |
7408 | (vec.o: ../common/vec.c): Remove. | |
7409 | (gdb_vecs.o: ../common/gdb_vecs.c): Remove. | |
7410 | (xml-utils.o: ../common/xml-utils.c): Remove. | |
7411 | (ptid.o: ../common/ptid.c): Remove. | |
7412 | (buffer.o: ../common/buffer.c): Remove. | |
7413 | (format.o: ../common/format.c): Remove. | |
7414 | (filestuff.o: ../common/filestuff.c): Remove. | |
7415 | (agent.o: ../common/agent.c): Remove. | |
7416 | (errors.o: ../common/errors.c): Remove. | |
7417 | (environ.o: ../common/environ.c): Remove. | |
7418 | (common-debug.o: ../common/common-debug.c): Remove. | |
7419 | (cleanups.o: ../common/cleanups.c): Remove. | |
7420 | (common-exceptions.o: ../common/common-exceptions.c): Remove. | |
7421 | (fileio.o: ../common/fileio.c): Remove. | |
7422 | (common-regcache.o: ../common/common-regcache.c): Remove. | |
7423 | (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove. | |
7424 | (new-op.o: ../common/new-op.c): Remove. | |
7425 | (btrace-common.o: ../common/btrace-common.c): Remove. | |
7426 | ||
21122961 SM |
7427 | 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca> |
7428 | ||
7429 | * Makefile.in (%.o: ../target/%.c): New rule. | |
7430 | (waitstatus.o: ../target/waitstatus.c): Remove. | |
7431 | ||
c362e621 SM |
7432 | 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca> |
7433 | ||
7434 | * Makefile.in | |
7435 | (%.c: ../regformats/%.dat, | |
7436 | (%.c: ../regformats/arm/%.dat, | |
7437 | (%.c: ../regformats/i386/%.dat, | |
7438 | (%.c: ../regformats/rs6000/%.dat): New rules. | |
7439 | (aarch64.c): Remove. | |
7440 | (reg-arm.c): Remove. | |
7441 | (arm-with-iwmmxt.c): Remove. | |
7442 | (arm-with-vfpv2.c): Remove. | |
7443 | (arm-with-vfpv3.c): Remove. | |
7444 | (arm-with-neon.c): Remove. | |
7445 | (reg-bfin.c): Remove. | |
7446 | (reg-cris.c): Remove. | |
7447 | (reg-crisv32.c): Remove. | |
7448 | (i386.c): Remove. | |
7449 | (i386-linux.c): Remove. | |
7450 | (i386-avx.c): Remove. | |
7451 | (i386-avx-linux.c): Remove. | |
7452 | (i386-avx-avx512.c): Remove. | |
7453 | (i386-avx-avx512-linux.c): Remove. | |
7454 | (i386-mpx.c): Remove. | |
7455 | (i386-mpx-linux.c): Remove. | |
7456 | (i386-avx-mpx-avx512-pku.c): Remove. | |
7457 | (i386-avx-mpx-avx512-pku-linux.c): Remove. | |
7458 | (i386-avx-mpx.c): Remove. | |
7459 | (i386-avx-mpx-linux.c): Remove. | |
7460 | (i386-mmx.c): Remove. | |
7461 | (i386-mmx-linux.c): Remove. | |
7462 | (reg-ia64.c): Remove. | |
7463 | (reg-m32r.c): Remove. | |
7464 | (reg-m68k.c): Remove. | |
7465 | (reg-cf.c): Remove. | |
7466 | (mips-linux.c): Remove. | |
7467 | (mips-dsp-linux.c): Remove. | |
7468 | (mips64-linux.c): Remove. | |
7469 | (mips64-dsp-linux.c): Remove. | |
7470 | (nios2-linux.c): Remove. | |
7471 | (powerpc-32.c): Remove. | |
7472 | (powerpc-32l.c): Remove. | |
7473 | (powerpc-altivec32l.c): Remove. | |
7474 | (powerpc-cell32l.c): Remove. | |
7475 | (powerpc-vsx32l.c): Remove. | |
7476 | (powerpc-isa205-32l.c): Remove. | |
7477 | (powerpc-isa205-altivec32l.c): Remove. | |
7478 | (powerpc-isa205-vsx32l.c): Remove. | |
7479 | (powerpc-e500l.c): Remove. | |
7480 | (powerpc-64l.c): Remove. | |
7481 | (powerpc-altivec64l.c): Remove. | |
7482 | (powerpc-cell64l.c): Remove. | |
7483 | (powerpc-vsx64l.c): Remove. | |
7484 | (powerpc-isa205-64l.c): Remove. | |
7485 | (powerpc-isa205-altivec64l.c): Remove. | |
7486 | (powerpc-isa205-vsx64l.c): Remove. | |
7487 | (s390-linux32.c): Remove. | |
7488 | (s390-linux32v1.c): Remove. | |
7489 | (s390-linux32v2.c): Remove. | |
7490 | (s390-linux64.c): Remove. | |
7491 | (s390-linux64v1.c): Remove. | |
7492 | (s390-linux64v2.c): Remove. | |
7493 | (s390-te-linux64.c): Remove. | |
7494 | (s390-vx-linux64.c): Remove. | |
7495 | (s390-tevx-linux64.c): Remove. | |
7496 | (s390x-linux64.c): Remove. | |
7497 | (s390x-linux64v1.c): Remove. | |
7498 | (s390x-linux64v2.c): Remove. | |
7499 | (s390x-te-linux64.c): Remove. | |
7500 | (s390x-vx-linux64.c): Remove. | |
7501 | (s390x-tevx-linux64.c): Remove. | |
7502 | (tic6x-c64xp-linux.c): Remove. | |
7503 | (tic6x-c64x-linux.c): Remove. | |
7504 | (tic6x-c62x-linux.c): Remove. | |
7505 | (reg-sh.c): Remove. | |
7506 | (reg-sparc64.c): Remove. | |
7507 | (reg-spu.c): Remove. | |
7508 | (amd64.c): Remove. | |
7509 | (amd64-linux.c): Remove. | |
7510 | (amd64-avx.c): Remove. | |
7511 | (amd64-avx-linux.c): Remove. | |
7512 | (amd64-avx-avx512.c): Remove. | |
7513 | (amd64-avx-avx512-linux.c): Remove. | |
7514 | (amd64-mpx.c): Remove. | |
7515 | (amd64-mpx-linux.c): Remove. | |
7516 | (amd64-avx-mpx-avx512-pku.c): Remove. | |
7517 | (amd64-avx-mpx-avx512-pku-linux.c): Remove. | |
7518 | (amd64-avx-mpx.c): Remove. | |
7519 | (amd64-avx-mpx-linux.c): Remove. | |
7520 | (x32.c): Remove. | |
7521 | (x32-linux.c): Remove. | |
7522 | (x32-avx.c): Remove. | |
7523 | (x32-avx-linux.c): Remove. | |
7524 | (x32-avx-avx512.c): Remove. | |
7525 | (x32-avx-avx512-linux.c): Remove. | |
7526 | (reg-xtensa.c): Remove. | |
7527 | (reg-tilegx.c): Remove. | |
7528 | (reg-tilegx32.c): Remove. | |
7529 | ||
1672e0d9 SDJ |
7530 | 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com> |
7531 | ||
7532 | * Makefile.in (SFILES): Add "common/environ.c". | |
7533 | (OBJS): Add "common/environ.h". | |
7534 | ||
239b6d10 WT |
7535 | 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com> |
7536 | ||
7537 | * configure.ac: Check if the fs_base and gs_base members of | |
7538 | `struct user_regs_struct' exist. | |
7539 | * config.in: Regenerated. | |
7540 | * configure: Likewise. | |
7541 | ||
694b382c AT |
7542 | 2017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com> |
7543 | ||
7544 | * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use | |
7545 | target_read_memory. | |
7546 | * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise. | |
7547 | (get_next_pcs_syscall_next_pc): Likewise. | |
7548 | ||
7dc53023 LM |
7549 | 2016-12-23 Luis Machado <lgustavo@codesourcery.com> |
7550 | ||
7551 | * win32-i386-low.c: Fix incorrect reference to a couple source files. | |
7552 | * nto-x86-low.c: Likewise. | |
7553 | ||
ad02e4fe SM |
7554 | 2016-11-30 Simon Marchi <simon.marchi@polymtl.ca> |
7555 | ||
7556 | * Makefile.in: Include disable-implicit-rules.mk. | |
7557 | ||
dcb07cfa PA |
7558 | 2016-11-23 Pedro Alves <palves@redhat.com> |
7559 | ||
7560 | * debug.c: Include <chrono> instead of "gdb_sys_time.h". | |
7561 | (debug_vprintf): Use std::chrono::steady_clock instead of | |
7562 | gettimeofday. Use '.' instead of ':'. | |
7563 | * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h". | |
7564 | (get_timestamp): Use std::chrono::steady_clock instead of | |
7565 | gettimeofday. | |
7566 | ||
8629c02c SM |
7567 | 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca> |
7568 | ||
7569 | * Makefile.in: Fix whitespace formatting. | |
7570 | ||
b593ecca SM |
7571 | 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca> |
7572 | ||
7573 | * Makefile.in (SFILES, OBS): Flatten list and order | |
7574 | alphabetically. | |
7575 | ||
9986ba08 PA |
7576 | 2016-11-23 Pedro Alves <palves@redhat.com> |
7577 | ||
7578 | * event-loop.c (handle_file_event): Use warning. | |
7579 | * linux-low.c (linux_resume_one_lwp_throw): Use warning. | |
7580 | * mem-break.c (add_breakpoint_condition, add_breakpoint_commands): | |
7581 | Use warning. | |
7582 | ||
4eefa7bc PA |
7583 | 2016-11-23 Pedro Alves <palves@redhat.com> |
7584 | ||
7585 | * linux-low.c (check_zombie_leaders): Use debug_printf for debug | |
7586 | output. | |
7587 | * notif.c (handle_notif_ack, notif_event_enque): Likewise. | |
7588 | * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use | |
7589 | debug_printf and debug_flush for debug output. | |
7590 | * server.c (handle_general_set): Likewise. | |
7591 | * thread-db.c (try_thread_db_load): Use debug_printf for debug | |
7592 | output. | |
7593 | ||
5443506e SM |
7594 | 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca> |
7595 | ||
7596 | * Makefile.in (.c.o): Replace rule with ... | |
7597 | (%.o: %.c): ... this one. | |
7598 | ||
3b165252 SM |
7599 | 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca> |
7600 | ||
7601 | * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines | |
7602 | prefixed with @GMAKE_FALSE@. Update comment related to non-GNU | |
7603 | make. | |
7604 | * configure.ac: Remove checks for the make program. | |
7605 | * configure: Re-generate. | |
7606 | ||
0bcda685 PA |
7607 | 2016-10-28 Pedro Alves <palves@redhat.com> |
7608 | ||
7609 | * Makefile.in (CXX_DIALECT): Get from configure. | |
7610 | (COMPILE.pre, CC_LD): Append $(CXX_DIALECT). | |
7611 | * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4. | |
7612 | * configure.ac: Call AX_CXX_COMPILE_STDCXX. | |
7613 | * config.in: Regenerate. | |
7614 | * configure: Regenerate. | |
7615 | ||
c3805894 YQ |
7616 | 2016-10-27 Yao Qi <yao.qi@linaro.org> |
7617 | ||
7618 | * linux-low.c (linux_supports_range_stepping): Return true if | |
7619 | can_software_single_step return true. | |
7620 | ||
89342618 YQ |
7621 | 2016-10-27 Yao Qi <yao.qi@linaro.org> |
7622 | ||
7623 | * inferiors.c (find_inferior_in_random): New function. | |
7624 | * inferiors.h (find_inferior_in_random): Declare. | |
7625 | * linux-low.c (linux_wait_for_event_filtered): Call | |
7626 | find_inferior_in_random instead of find_inferior. | |
7627 | ||
e3652c84 YQ |
7628 | 2016-10-27 Yao Qi <yao.qi@linaro.org> |
7629 | ||
7630 | * linux-low.c (linux_wait_1): If single-step breakpoints are | |
7631 | inserted, remove them. | |
7632 | ||
5a04c4cf PA |
7633 | 2016-10-26 Pedro Alves <palves@redhat.com> |
7634 | ||
7635 | * linux-low.c (handle_extended_wait): Link parent/child fork | |
7636 | threads. | |
7637 | (linux_wait_1): Unlink them. | |
7638 | (linux_set_resume_request): Ignore resume requests for | |
7639 | already-resumed and unhandled fork child threads. | |
7640 | * linux-low.h (struct lwp_info) <fork_relative>: New field. | |
7641 | * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies): | |
7642 | New functions. | |
7643 | (handle_v_requests) <vCont>: Don't call require_running. | |
7644 | * server.h (in_queued_stop_replies): New declaration. | |
7645 | ||
cb93dc7f YQ |
7646 | 2016-10-24 Yao Qi <yao.qi@linaro.org> |
7647 | ||
7648 | PR server/20733 | |
7649 | * linux-aarch64-low.c (append_insns): Cast the return value to | |
7650 | 'uint32_t *'. | |
7651 | ||
a1078bea YQ |
7652 | 2016-10-10 Yao Qi <yao.qi@linaro.org> |
7653 | ||
7654 | * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove. | |
7655 | ||
1fb77080 SDJ |
7656 | 2016-10-06 Sergio Durigan Junior <sergiodj@redhat.com> |
7657 | ||
7658 | * target.c (target_supports_multi_process): New function, moved | |
7659 | from... | |
7660 | * target.h (target_supports_multi_process): ... here. Remove | |
7661 | macro. | |
7662 | ||
39b5a3b9 TT |
7663 | 2016-10-05 Tom Tromey <tom@tromey.com> |
7664 | ||
7665 | PR remote/20655: | |
7666 | * tracepoint.c (handle_tracepoint_bkpts): Check | |
7667 | ipa_error_tracepoint, not ipa_stopping_tracepoint. | |
7668 | ||
c1d0b70a YQ |
7669 | 2016-10-05 Yao Qi <yao.qi@linaro.org> |
7670 | ||
7671 | * configure.srv: Update the path of arm-*.xml files. | |
7672 | ||
0a69eedb YQ |
7673 | 2016-10-05 Terry Guo <terry.guo@arm.com> |
7674 | Yao Qi <yao.qi@linaro.org> | |
7675 | ||
7676 | * Makefile.in: Adjust the path of rules. | |
7677 | * configure.srv: Update the path of xml files. | |
7678 | * regformats/arm-with-iwmmxt.dat: Regenerated. | |
7679 | * regformats/arm-with-neon.dat: Likewise. | |
7680 | * regformats/arm-with-vfpv2.dat: Likewise. | |
7681 | * regformats/arm-with-vfpv3.dat Likewise. | |
7682 | ||
17e16485 YQ |
7683 | 2016-09-30 Yao Qi <yao.qi@linaro.org> |
7684 | ||
7685 | PR gdbserver/20627 | |
7686 | * target.c (target_stop_and_wait): Don't call | |
7687 | target_continue_no_signal, use resume_stop instead. | |
7688 | ||
edeeb602 YQ |
7689 | 2016-09-26 Yao Qi <yao.qi@linaro.org> |
7690 | ||
7691 | * linux-low.c (linux_wait_1): Call debug_exit. | |
7692 | ||
503b1c39 PA |
7693 | 2016-09-23 Pedro Alves <palves@redhat.com> |
7694 | ||
7695 | * Makefile.in (SFILES): Add common/new-op.c. | |
7696 | (OBS): Add common/new-op.o. | |
7697 | (new-op.o): New rule. | |
7698 | ||
74172ecf SM |
7699 | 2016-09-21 Simon Marchi <simon.marchi@ericsson.com> |
7700 | ||
7701 | * .gitinore: Ignore more files. | |
7702 | ||
fc6cda2e YQ |
7703 | 2016-09-21 Yao Qi <yao.qi@linaro.org> |
7704 | ||
7705 | * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to | |
7706 | 23. | |
7707 | ||
bc1e6c81 SDJ |
7708 | 2016-09-19 Sergio Durigan Junior <sergiodj@redhat.com> |
7709 | ||
7710 | * server.c (start_inferior): Call target_mourn_inferior instead of | |
7711 | mourn_inferior; pass ptid_t argument to it. | |
7712 | (resume): Likewise. | |
7713 | (handle_target_event): Likewise. | |
7714 | * target.c (target_mourn_inferior): New function. | |
7715 | * target.h (mourn_inferior): Delete macro. | |
7716 | ||
0e00e962 AA |
7717 | 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com> |
7718 | ||
7719 | * linux-low.c (lwp_is_stepping): New function. | |
7720 | ||
1d8cb77d CL |
7721 | 2016-09-06 Carl Love <cel@us.ibm.com> |
7722 | ||
7723 | * server.c (start_inferior): Fixed comment, requested comment change | |
7724 | didn't get updated correctly. Removed reference to ptrace () call as | |
7725 | it is only true on Linux systems. | |
7726 | ||
7313bced CL |
7727 | 2016-09-06 Carl Love <cel@us.ibm.com> |
7728 | ||
7729 | * server.c (start_inferior): Do not call | |
7730 | function target_post_create_inferior () if the | |
7731 | inferior process has already exited. | |
7732 | ||
cf6de44d PA |
7733 | 2016-09-05 Pedro Alves <palves@redhat.com> |
7734 | ||
7735 | * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove. | |
7736 | (COMPILE.pre, CC_LD): Use CXX directly. | |
7737 | (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly. | |
7738 | * acinclude.m4: Don't include build-with-cxx.m4. | |
7739 | * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call. | |
7740 | * configure: Regenerate. | |
7741 | ||
c1da6748 AT |
7742 | 2016-09-02 Akash Trehan <akash.trehan123@gmail.com> |
7743 | ||
7744 | PR gdb/19495 | |
7745 | * remote-utils.c (relocate_instruction): Remove redundant strcpy() | |
7746 | call writing data to own_buf. | |
7747 | ||
f2b9e3df SDJ |
7748 | 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com> |
7749 | ||
7750 | * target.c (mywait): Call target_wait instead of | |
7751 | the_target->wait. | |
7752 | (target_wait): New function. | |
7753 | ||
049a8570 SDJ |
7754 | 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com> |
7755 | ||
7756 | * server.c (start_inferior): New variable 'ptid'. Replace calls | |
7757 | to the_target->resume by target_continue{,_no_signal}, depending | |
7758 | on the case. | |
7759 | * target.c (target_stop_and_wait): Call target_continue_no_signal | |
7760 | instead of the_target->resume. | |
7761 | (target_continue): New function. | |
7762 | ||
3aa5cfa0 AT |
7763 | 2016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com> |
7764 | ||
7765 | * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps. | |
7766 | ||
754653a7 AZ |
7767 | 2016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org> |
7768 | ||
7769 | PR server/20491 | |
7770 | * gdb_proc_service.h (ps_get_thread_area): Remove const from struct | |
7771 | ps_prochandle. | |
7772 | * linux-aarch64-low.c (ps_get_thread_area): Likewise. | |
7773 | * linux-arm-low.c (ps_get_thread_area): Likewise. | |
7774 | * linux-crisv32-low.c (ps_get_thread_area): Likewise. | |
7775 | * linux-m68k-low.c (ps_get_thread_area): Likewise. | |
7776 | * linux-mips-low.c (ps_get_thread_area): Likewise. | |
7777 | * linux-nios2-low.c (ps_get_thread_area): Likewise. | |
7778 | * linux-tic6x-low.c (ps_get_thread_area): Likewise. | |
7779 | * linux-x86-low.c (ps_get_thread_area): Likewise. | |
7780 | * linux-xtensa-low.c (ps_get_thread_area): Likewise. | |
7781 | ||
ed036b40 PA |
7782 | 2016-08-19 Pedro Alves <palves@redhat.com> |
7783 | ||
7784 | * linux-x86-low.c (amd64_emit_call): Emit missing call opcode. | |
7785 | ||
c8ef42ee PA |
7786 | 2016-08-19 Pedro Alves <palves@redhat.com> |
7787 | ||
7788 | * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix | |
7789 | comment. Use memcpy instead of casting through unsigned long. | |
7790 | ||
9c235a72 PA |
7791 | 2016-08-19 Pedro Alves <palves@redhat.com> |
7792 | ||
7793 | * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try | |
7794 | allocating around 0x80000000. | |
7795 | ||
201506da PA |
7796 | 2016-08-19 Pedro Alves <palves@redhat.com> |
7797 | ||
7798 | PR gdb/20415 | |
7799 | * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o) | |
7800 | (x32-avx512-linux-ipa.o): New rules. | |
7801 | * configure.ac (x86_64-*-linux*): New x32 check. | |
7802 | * configure.srv (ipa_x32_linux_regobj): New. | |
7803 | (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32. | |
7804 | * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32 | |
7805 | descriptions. | |
7806 | (initialize_low_tracepoint) [__ILP32__]: Initialize x32 | |
7807 | descriptions. | |
7808 | * configure: Regenerate. | |
7809 | ||
f348d89a PA |
7810 | 2016-08-09 Pedro Alves <palves@redhat.com> |
7811 | ||
7812 | PR gdb/18653 | |
7813 | * Makefile.in (OBS): Add signals-state-save-restore.o. | |
7814 | (signals-state-save-restore.o): New rule. | |
7815 | * config.in: Regenerate. | |
7816 | * configure: Regenerate. | |
7817 | * linux-low.c: Include "signals-state-save-restore.h". | |
7818 | (linux_create_inferior): Call | |
7819 | restore_original_signals_state. | |
7820 | * server.c: Include "dispositions-save-restore.h". | |
7821 | (captured_main): Call save_original_signals_state. | |
7822 | ||
1baf5149 PA |
7823 | 2016-08-05 Pedro Alves <palves@redhat.com> |
7824 | ||
7825 | * configure: Regenerate. | |
7826 | ||
fcd4a73d YQ |
7827 | 2016-08-04 Yao Qi <yao.qi@linaro.org> |
7828 | ||
7829 | * linux-low.c (regsets_fetch_inferior_registers): Check | |
7830 | errno is ESRCH or not. | |
7831 | ||
979659d0 YQ |
7832 | 2016-08-02 Yao Qi <yao.qi@linaro.org> |
7833 | ||
7834 | * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove. | |
7835 | <td_ta_set_event_p, td_ta_event_addr_p>: Remove. | |
7836 | (thread_db_load_search): Update. | |
7837 | (try_thread_db_load_1): Don't look for td_ta_event_addr, | |
7838 | td_ta_set_event and td_ta_event_getmsg. | |
7839 | ||
6598661d PA |
7840 | 2016-07-26 Pedro Alves <palves@redhat.com> |
7841 | ||
7842 | PR server/20414 | |
7843 | * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead | |
7844 | of unsigned long for 64-bit registers and use uint32_t instead of | |
7845 | unsigned int for 32-bit registers. | |
7846 | ||
9cf12d57 PA |
7847 | 2016-07-26 Pedro Alves <palves@redhat.com> |
7848 | ||
7849 | * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter | |
7850 | to 'ptrace'. | |
7851 | ||
305450ed TT |
7852 | 2016-07-21 Tom Tromey <tom@tromey.com> |
7853 | ||
7854 | * configure: Rebuild. | |
7855 | ||
2583da7c YQ |
7856 | 2016-07-21 Yao Qi <yao.qi@linaro.org> |
7857 | ||
7858 | * mem-break.c (find_gdb_breakpoint): Cast bp to | |
7859 | 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'. | |
7860 | ||
21536b36 YQ |
7861 | 2016-07-21 Yao Qi <yao.qi@linaro.org> |
7862 | ||
7863 | * server.c (handle_v_requests): Support s and S actions | |
7864 | if target_supports_software_single_step return true. | |
7865 | ||
8901d193 YQ |
7866 | 2016-07-21 Yao Qi <yao.qi@linaro.org> |
7867 | ||
7868 | * linux-low.c (resume_stopped_resumed_lwps): If resume request | |
7869 | is resume_step, call maybe_hw_step. | |
7870 | (linux_wait_1): Stop all threads, remove reinsert breakpoints, | |
7871 | and unstop them. | |
7872 | (linux_resume_one_lwp_throw): Don't assert the thread has reinsert | |
7873 | breakpoints or not. | |
7874 | (proceed_one_lwp): If resume request is resume_step, install | |
7875 | reinsert breakpoints and call maybe_hw_step. | |
7876 | ||
0e9a339e YQ |
7877 | 2016-07-21 Yao Qi <yao.qi@linaro.org> |
7878 | ||
7879 | * linux-low.c (proceed_one_lwp): Declare. | |
7880 | (linux_resume_one_thread): Remove local variable 'step'. | |
7881 | Lift code enqueue signal. Call proceed_one_lwp instead of | |
7882 | linux_resume_one_lwp. | |
7883 | ||
4281b351 YQ |
7884 | 2016-07-21 Yao Qi <yao.qi@linaro.org> |
7885 | ||
7886 | * linux-low.c (linux_resume_one_thread): Call | |
7887 | enqueue_pending_signal. | |
7888 | ||
984a2c04 YQ |
7889 | 2016-07-21 Yao Qi <yao.qi@linaro.org> |
7890 | ||
7891 | * gdbthread.h (make_cleanup_restore_current_thread): Declare. | |
7892 | * inferiors.c (do_restore_current_thread_cleanup): New function. | |
7893 | (make_cleanup_restore_current_thread): Likewise. | |
7894 | * linux-low.c (install_software_single_step_breakpoints): Call | |
7895 | make_cleanup_restore_current_thread. Switch current_thread to | |
7896 | thread. | |
7897 | ||
bec903c9 YQ |
7898 | 2016-07-21 Yao Qi <yao.qi@linaro.org> |
7899 | ||
7900 | * mem-break.c (struct reinsert_breakpoint) <ptid>: New field. | |
7901 | (set_reinsert_breakpoint): New parameter ptid. Callers updated. | |
7902 | (clone_one_breakpoint): Likewise. | |
7903 | (delete_reinsert_breakpoints): Change parameter to thread. | |
7904 | Callers updated. | |
7905 | (has_reinsert_breakpoints): Likewise. | |
7906 | (uninsert_reinsert_breakpoints): Likewise. | |
7907 | (reinsert_reinsert_breakpoints): Likewise. | |
7908 | * mem-break.h (set_reinsert_breakpoint): Update declaration. | |
7909 | (delete_reinsert_breakpoints): Likewise. | |
7910 | (reinsert_reinsert_breakpoints): Likewise. | |
7911 | (uninsert_reinsert_breakpoints): Likewise. | |
7912 | (has_reinsert_breakpoints): Likewise. | |
7913 | ||
63c40ec7 YQ |
7914 | 2016-07-21 Yao Qi <yao.qi@linaro.org> |
7915 | ||
7916 | * inferiors.c (get_thread_process): Make parameter const. | |
7917 | * inferiors.h (get_thread_process): Update declaration. | |
7918 | * mem-break.c (clone_all_breakpoints): Remove all parameters. | |
7919 | Add new parameters child_thread and parent_thread. Callers | |
7920 | updated. | |
7921 | * mem-break.h (clone_all_breakpoints): Update declaration. | |
7922 | ||
9aa76cd0 YQ |
7923 | 2016-07-21 Yao Qi <yao.qi@linaro.org> |
7924 | ||
7925 | * mem-break.c (struct breakpoint) <cond_list>: Remove. | |
7926 | <command_list, handler>: Remove. | |
7927 | (struct gdb_breakpoint): New. | |
7928 | (struct other_breakpoint): New. | |
7929 | (struct reinsert_breakpoint): New. | |
7930 | (is_gdb_breakpoint): New function. | |
7931 | (any_persistent_commands): Update command_list if | |
7932 | is_gdb_breakpoint returns true. | |
7933 | (set_breakpoint): Create breakpoints according to their types. | |
7934 | (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'. | |
7935 | (set_gdb_breakpoint_1): Likewise. | |
7936 | (set_gdb_breakpoint): Likewise. | |
7937 | (clear_breakpoint_conditions): Change parameter type to | |
7938 | 'struct gdb_breakpoint *'. | |
7939 | (clear_breakpoint_commands): Likewise. | |
7940 | (clear_breakpoint_conditions_and_commands): Likewise. | |
7941 | (add_condition_to_breakpoint): Likewise. | |
7942 | (add_breakpoint_condition): Likewise. | |
7943 | (add_commands_to_breakpoint): Likewise. | |
7944 | (check_breakpoints): Check other_breakpoint. | |
7945 | (clone_one_breakpoint): Clone breakpopint according to its type. | |
7946 | * mem-break.h (struct gdb_breakpoint): Declare. | |
7947 | (set_gdb_breakpoint): Update declaration. | |
7948 | (clear_breakpoint_conditions_and_commands): Likewise. | |
7949 | (add_breakpoint_condition): Likewise. | |
7950 | (add_breakpoint_commands): Likewise. | |
7951 | * server.c (process_point_options): Change parameter type to | |
7952 | 'struct gdb_breakpoint *'. | |
7953 | ||
811f8301 YQ |
7954 | 2016-07-21 Yao Qi <yao.qi@linaro.org> |
7955 | ||
7956 | * mem-break.c (set_breakpoint_at): Rename it to ... | |
7957 | (set_breakpoint_type_at): ... it. | |
7958 | (set_breakpoint_at): Call set_breakpoint_type_at. | |
7959 | (set_reinsert_breakpoint): Call set_breakpoint_type_at. | |
7960 | * mem-break.h (set_breakpoint_at): Update comments. | |
7961 | ||
b1c51e36 CLT |
7962 | 2016-07-12 Chung-Lin Tang <cltang@codesourcery.com> |
7963 | ||
7964 | * linux-nios2-low.c (nios2_fill_gregset): Add type cast | |
7965 | to buf parameter. | |
7966 | (nios2_store_gregset): Likewise. | |
7967 | ||
ced2dffb PA |
7968 | 2016-07-01 Pedro Alves <palves@redhat.com> |
7969 | Antoine Tremblay <antoine.tremblay@ericsson.com> | |
7970 | ||
7971 | * linux-low.c: Change interface to take the target lwp_info | |
7972 | pointer directly and return void. Handle detaching from a zombie | |
7973 | thread. | |
7974 | (linux_detach_lwp_callback): New function. | |
7975 | (linux_detach): Detach from the leader thread after detaching from | |
7976 | the clone threads. | |
7977 | ||
2ac09a5b YQ |
7978 | 2016-06-28 Yao Qi <yao.qi@linaro.org> |
7979 | ||
7980 | * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t | |
7981 | for variable new_offset. | |
7982 | (aarch64_ftrace_insn_reloc_b_cond): Likewise. | |
7983 | (aarch64_ftrace_insn_reloc_cb): Likewise. | |
7984 | (aarch64_ftrace_insn_reloc_tb): Likewise. | |
7985 | (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use | |
7986 | PRIx64 instead of PRIx32. | |
7987 | ||
79e7fd4f YQ |
7988 | 2016-06-28 Yao Qi <yao.qi@linaro.org> |
7989 | ||
7990 | * linux-arm-low.c (arm_get_syscall_trapinfo): New function. | |
7991 | (the_low_target): Install arm_get_syscall_trapinfo. | |
7992 | ||
061fc021 YQ |
7993 | 2016-06-28 Yao Qi <yao.qi@linaro.org> |
7994 | ||
7995 | * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New | |
7996 | function. | |
7997 | (the_low_target): Install aarch64_get_syscall_trapinfo. | |
7998 | ||
4cc32bec YQ |
7999 | 2016-06-28 Yao Qi <yao.qi@linaro.org> |
8000 | ||
8001 | * linux-low.c (get_syscall_trapinfo): Remove parameter sysret. | |
8002 | Callers updated. | |
8003 | * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>: | |
8004 | Remove parameter sysno. | |
8005 | * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter | |
8006 | sysret. | |
8007 | ||
782c1122 AA |
8008 | 2016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com> |
8009 | ||
8010 | * linux-s390-low.c (s390_emit_eq_goto): Mark function static. | |
8011 | (s390_emit_ne_goto): Likewise. | |
8012 | (s390_emit_lt_goto): Likewise. | |
8013 | (s390_emit_le_goto): Likewise. | |
8014 | (s390_emit_gt_goto): Likewise. | |
8015 | (s390_emit_ge_goto): Likewise. | |
8016 | (s390x_emit_eq_goto): Likewise. | |
8017 | (s390x_emit_ne_goto): Likewise. | |
8018 | (s390x_emit_lt_goto): Likewise. | |
8019 | (s390x_emit_le_goto): Likewise. | |
8020 | (s390x_emit_gt_goto): Likewise. | |
8021 | (s390x_emit_ge_goto): Likewise. | |
8022 | (s390_emit_ops_impl): Mark variable static. | |
8023 | (s390x_emit_ops): Likewise. | |
8024 | ||
2e7b624b YQ |
8025 | 2016-06-17 Yao Qi <yao.qi@linaro.org> |
8026 | ||
8027 | * linux-low.c (handle_extended_wait): Call | |
8028 | uninsert_reinsert_breakpoints for the parent process. Remove | |
8029 | reinsert breakpoints from the child process. Reinsert them to | |
8030 | the parent process when vfork is done. | |
8031 | * mem-break.c (uninsert_reinsert_breakpoints): New function. | |
8032 | (reinsert_reinsert_breakpoints): New function. | |
8033 | * mem-break.h (uninsert_reinsert_breakpoints): Declare | |
8034 | (reinsert_reinsert_breakpoints): Declare. | |
8035 | ||
8a81c5d7 YQ |
8036 | 2016-06-17 Yao Qi <yao.qi@linaro.org> |
8037 | ||
8038 | * linux-low.c (handle_extended_wait): If the parent is doing | |
8039 | step-over, remove the reinsert breakpoints from the forked child. | |
8040 | ||
f50bf8e5 YQ |
8041 | 2016-06-17 Yao Qi <yao.qi@linaro.org> |
8042 | ||
8043 | * linux-low.c (unsuspend_all_lwps): Declare. | |
8044 | (linux_low_filter_event): If thread exited, call finish_step_over. | |
8045 | If step-over is finished, unsuspend other threads. | |
8046 | ||
8376a3cb YQ |
8047 | 2016-06-17 Yao Qi <yao.qi@linaro.org> |
8048 | ||
8049 | * linux-low.c (linux_resume_one_lwp_throw): Assert | |
8050 | has_reinsert_breakpoints returns false. | |
8051 | * mem-break.c (delete_disabled_breakpoints): Assert | |
8052 | bp type isn't reinsert_breakpoint. | |
8053 | ||
f79b145d YQ |
8054 | 2016-06-17 Yao Qi <yao.qi@linaro.org> |
8055 | ||
8056 | * linux-low.c (maybe_hw_step): New function. | |
8057 | (linux_resume_one_lwp_throw): Call maybe_hw_step. | |
8058 | (finish_step_over): Switch current_thread to lwp temporarily, | |
8059 | and assert has_reinsert_breakpoints returns true. | |
8060 | (proceed_one_lwp): Call maybe_hw_step. | |
8061 | * mem-break.c (has_reinsert_breakpoints): New function. | |
8062 | * mem-break.h (has_reinsert_breakpoints): Declare. | |
8063 | ||
0ae534d2 JT |
8064 | 2016-06-02 Jon Turney <jon.turney@dronecode.org.uk> |
8065 | ||
8066 | * win32-low.c (win32_create_inferior): Add pointer casts for C++. | |
8067 | ||
fcdad592 YQ |
8068 | 2016-05-17 Yao Qi <yao.qi@linaro.org> |
8069 | ||
8070 | * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps | |
8071 | instead of find_inferior. | |
8072 | ||
9e784964 YQ |
8073 | 2016-05-05 Yao Qi <yao.qi@linaro.org> |
8074 | ||
8075 | * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): | |
8076 | Initialize res to zero. | |
8077 | ||
cf2ebb6e YQ |
8078 | 2016-05-05 Yao Qi <yao.qi@linaro.org> |
8079 | ||
8080 | * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr | |
8081 | to uint32_t. | |
8082 | ||
c1aebf87 UW |
8083 | 2016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com> |
8084 | ||
8085 | * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value | |
8086 | used as first ptrace argument to PTRACE_TYPE_ARG1 for C++. | |
8087 | (fetch_ppc_memory_1, store_ppc_memory_1): Likewise. | |
8088 | ||
35fd2deb | 8089 | 2016-04-28 Par Olsson <par.olsson@windriver.com> |
cbe14bcf | 8090 | Simon Marchi <simon.marchi@ericsson.com> |
35fd2deb PO |
8091 | |
8092 | * tracepoint.c (write_inferior_int8): New function. | |
8093 | (cmd_qtenable_disable): Write enable flag using | |
8094 | write_inferior_int8. | |
8095 | ||
484b3c32 YQ |
8096 | 2016-04-25 Yao Qi <yao.qi@linaro.org> |
8097 | ||
8098 | * linux-low.c (lwp_signal_can_be_delivered): Adjust. | |
8099 | (need_step_over_p): Return zero if the LWP has pending signals | |
8100 | can be delivered on software single step target. | |
8101 | ||
85ba7d86 YQ |
8102 | 2016-04-25 Yao Qi <yao.qi@linaro.org> |
8103 | ||
8104 | * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true | |
8105 | return instead of error. | |
8106 | ||
3539aa13 YQ |
8107 | 2016-04-22 Yao Qi <yao.qi@linaro.org> |
8108 | ||
8109 | * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20 | |
8110 | to 23. | |
8111 | ||
5b061e98 YQ |
8112 | 2016-04-22 Yao Qi <yao.qi@linaro.org> |
8113 | ||
8114 | * linux-low.c (lwp_signal_can_be_delivered): Don't deliver | |
8115 | signal when stepping over breakpoint with software single | |
8116 | step. | |
8117 | ||
3451269c PA |
8118 | 2016-04-21 Pedro Alves <palves@redhat.com> |
8119 | ||
8120 | * linux-s390-low.c (s390_collect_ptrace_register) | |
8121 | (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and | |
8122 | add casts. | |
8123 | (s390_check_regset): Use void * instead of gdb_byte *. | |
8124 | ||
a2358508 PA |
8125 | 2016-04-20 Pedro Alves <palves@redhat.com> |
8126 | ||
8127 | * configure: Renegerate. | |
8128 | ||
6885166d YQ |
8129 | 2016-04-20 Yao Qi <yao.qi@linaro.org> |
8130 | ||
8131 | * linux-aarch32-low.c: Include "arch/arm-linux.h". | |
8132 | (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic | |
8133 | number 16. | |
8134 | (arm_store_gregset): Likewise. | |
8135 | ||
2b863f51 WT |
8136 | 2016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com> |
8137 | ||
8138 | * Makefile.in (clean): Add removal for i386-avx-mpx.c, | |
8139 | i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c. | |
8140 | (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c) | |
8141 | (amd64-avx-mpx-linux.c): New rules. | |
8142 | (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule. | |
8143 | * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o. | |
8144 | (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o. | |
8145 | (srv_amd64_regobj): Add amd64-avx-mpx.o. | |
8146 | (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o. | |
8147 | (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml. | |
8148 | (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml. | |
8149 | (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml. | |
8150 | (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml. | |
8151 | (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o. | |
8152 | (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o. | |
8153 | * linux-x86-low.c (x86_linux_read_description): Add case for | |
8154 | X86_XSTATE_AVX_MPX_MASK. | |
8155 | (x86_get_ipa_tdesc_idx): Add cases for avx_mpx. | |
8156 | (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and | |
8157 | init_registers_i386_avx_mpx_linux. | |
8158 | * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx. | |
8159 | (initialize_low_tracepoint): Call | |
8160 | init_registers_i386_avx_mpx_linux. | |
8161 | * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx. | |
8162 | (initialize_low_tracepoint): Call | |
8163 | init_registers_amd64_avx_mpx_linux. | |
8164 | * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value. | |
8165 | (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux) | |
8166 | (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New | |
8167 | declarations. | |
8168 | ||
9b30624b PA |
8169 | 2016-04-18 Pedro Alves <palves@redhat.com> |
8170 | ||
8171 | * configure: Regenerate. | |
8172 | ||
45e3745e AT |
8173 | 2016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com> |
8174 | ||
8175 | * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0. | |
8176 | (aarch64_emit_sub): Likewise. | |
8177 | ||
2afc13ff PA |
8178 | 2016-04-12 Pedro Alves <palves@redhat.com> |
8179 | ||
8180 | * utils.c (prepare_to_throw_exception): Delete. | |
8181 | ||
6e774b13 SM |
8182 | 2016-04-05 Simon Marchi <simon.marchi@ericsson.com> |
8183 | ||
8184 | * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib. | |
8185 | ||
4dca19f8 MK |
8186 | 2016-04-05 Marcin Kościelnicki <koriakin@0x04.net> |
8187 | ||
8188 | * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT. | |
8189 | ||
d0a9981f MK |
8190 | 2016-04-03 Marcin Kościelnicki <koriakin@0x04.net> |
8191 | ||
8192 | * linux-aarch64-ipa.c: Add <elf.h> include. | |
8193 | * linux-ppc-ipa.c: Add <elf.h> include. | |
8194 | * linux-s390-ipa.c: Add <elf.h> include. | |
8195 | ||
252db07e MK |
8196 | 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net> |
8197 | ||
8198 | * tracepoint.c (gdb_collect_ptr): Remove const qualifier. | |
8199 | (get_raw_reg_ptr): Likewise. | |
8200 | (get_trace_state_variable_value_ptr): Likewise. | |
8201 | (set_trace_state_variable_value_ptr): Likewise. | |
8202 | (initialize_tracepoint): Cast alloc_jump_pad_buffer result to | |
8203 | char *. | |
8204 | ||
14e2b6d9 MK |
8205 | 2016-03-31 Wei-cheng Wang <cole945@gmail.com> |
8206 | Marcin Kościelnicki <koriakin@0x04.net> | |
8207 | ||
8208 | PR/17221 | |
8209 | * linux-ppc-low.c (emit_insns): New function. | |
8210 | (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros. | |
8211 | (ppc_emit_prologue): New function. | |
8212 | (ppc_emit_epilogue): New function. | |
8213 | (ppc_emit_add): New function. | |
8214 | (ppc_emit_sub): New function. | |
8215 | (ppc_emit_mul): New function. | |
8216 | (ppc_emit_lsh): New function. | |
8217 | (ppc_emit_rsh_signed): New function. | |
8218 | (ppc_emit_rsh_unsigned): New function. | |
8219 | (ppc_emit_ext): New function. | |
8220 | (ppc_emit_zero_ext): New function. | |
8221 | (ppc_emit_log_not): New function. | |
8222 | (ppc_emit_bit_and): New function. | |
8223 | (ppc_emit_bit_or): New function. | |
8224 | (ppc_emit_bit_xor): New function. | |
8225 | (ppc_emit_bit_not): New function. | |
8226 | (ppc_emit_equal): New function. | |
8227 | (ppc_emit_less_signed): New function. | |
8228 | (ppc_emit_less_unsigned): New function. | |
8229 | (ppc_emit_ref): New function. | |
8230 | (ppc_emit_const): New function. | |
8231 | (ppc_emit_reg): New function. | |
8232 | (ppc_emit_pop): New function. | |
8233 | (ppc_emit_stack_flush): New function. | |
8234 | (ppc_emit_swap): New function. | |
8235 | (ppc_emit_stack_adjust): New function. | |
8236 | (ppc_emit_call): New function. | |
8237 | (ppc_emit_int_call_1): New function. | |
8238 | (ppc_emit_void_call_2): New function. | |
8239 | (ppc_emit_if_goto): New function. | |
8240 | (ppc_emit_goto): New function. | |
8241 | (ppc_emit_eq_goto): New function. | |
8242 | (ppc_emit_ne_goto): New function. | |
8243 | (ppc_emit_lt_goto): New function. | |
8244 | (ppc_emit_le_goto): New function. | |
8245 | (ppc_emit_gt_goto): New function. | |
8246 | (ppc_emit_ge_goto): New function. | |
8247 | (ppc_write_goto_address): New function. | |
8248 | (ppc_emit_ops_impl): New static variable. | |
8249 | (ppc64v1_emit_prologue): New function. | |
8250 | (ppc64v2_emit_prologue): New function. | |
8251 | (ppc64_emit_epilogue): New function. | |
8252 | (ppc64_emit_add): New function. | |
8253 | (ppc64_emit_sub): New function. | |
8254 | (ppc64_emit_mul): New function. | |
8255 | (ppc64_emit_lsh): New function. | |
8256 | (ppc64_emit_rsh_signed): New function. | |
8257 | (ppc64_emit_rsh_unsigned): New function. | |
8258 | (ppc64_emit_ext): New function. | |
8259 | (ppc64_emit_zero_ext): New function. | |
8260 | (ppc64_emit_log_not): New function. | |
8261 | (ppc64_emit_bit_and): New function. | |
8262 | (ppc64_emit_bit_or): New function. | |
8263 | (ppc64_emit_bit_xor): New function. | |
8264 | (ppc64_emit_bit_not): New function. | |
8265 | (ppc64_emit_equal): New function. | |
8266 | (ppc64_emit_less_signed): New function. | |
8267 | (ppc64_emit_less_unsigned): New function. | |
8268 | (ppc64_emit_ref): New function. | |
8269 | (ppc64_emit_const): New function. | |
8270 | (ppc64v1_emit_reg): New function. | |
8271 | (ppc64v2_emit_reg): New function. | |
8272 | (ppc64_emit_pop): New function. | |
8273 | (ppc64_emit_stack_flush): New function. | |
8274 | (ppc64_emit_swap): New function. | |
8275 | (ppc64v1_emit_call): New function. | |
8276 | (ppc64v2_emit_call): New function. | |
8277 | (ppc64v1_emit_int_call_1): New function. | |
8278 | (ppc64v2_emit_int_call_1): New function. | |
8279 | (ppc64v1_emit_void_call_2): New function. | |
8280 | (ppc64v2_emit_void_call_2): New function. | |
8281 | (ppc64_emit_if_goto): New function. | |
8282 | (ppc64_emit_eq_goto): New function. | |
8283 | (ppc64_emit_ne_goto): New function. | |
8284 | (ppc64_emit_lt_goto): New function. | |
8285 | (ppc64_emit_le_goto): New function. | |
8286 | (ppc64_emit_gt_goto): New function. | |
8287 | (ppc64_emit_ge_goto): New function. | |
8288 | (ppc64v1_emit_ops_impl): New static variable. | |
8289 | (ppc64v2_emit_ops_impl): New static variable. | |
8290 | (ppc_emit_ops): New function. | |
8291 | (linux_low_target): Wire in ppc_emit_ops. | |
8292 | ||
a2174ba4 MK |
8293 | 2016-03-31 Wei-cheng Wang <cole945@gmail.com> |
8294 | Marcin Kościelnicki <koriakin@0x04.net> | |
8295 | ||
8296 | PR/17221 | |
8297 | * Makefile.in: Add powerpc-*-ipa.o | |
8298 | * configure.srv: Add ipa_obj for powerpc*-linux. | |
8299 | * linux-ppc-ipa.c: New file. | |
8300 | * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h | |
8301 | includes. | |
8302 | (PPC_FIELD): New macro. | |
8303 | (PPC_SEXT): New macro. | |
8304 | (PPC_OP6): New macro. | |
8305 | (PPC_BO): New macro. | |
8306 | (PPC_LI): New macro. | |
8307 | (PPC_BD): New macro. | |
8308 | (init_registers_*): Move prototype to linux-ppc-tdesc.h. | |
8309 | (tdesc_*): Move declaration to linux-ppc-tdesc.h. | |
8310 | (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter. | |
8311 | (ppc_get_thread_area): New function. | |
8312 | (is_elfv2_inferior): New function. | |
8313 | (gen_ds_form): New function. | |
8314 | (GEN_STD): New macro. | |
8315 | (GEN_STDU): New macro. | |
8316 | (GEN_LD): New macro. | |
8317 | (GEN_LDU): New macro. | |
8318 | (gen_d_form): New function. | |
8319 | (GEN_ADDI): New macro. | |
8320 | (GEN_ADDIS): New macro. | |
8321 | (GEN_LI): New macro. | |
8322 | (GEN_LIS): New macro. | |
8323 | (GEN_ORI): New macro. | |
8324 | (GEN_ORIS): New macro. | |
8325 | (GEN_LWZ): New macro. | |
8326 | (GEN_STW): New macro. | |
8327 | (GEN_STWU): New macro. | |
8328 | (gen_xfx_form): New function. | |
8329 | (GEN_MFSPR): New macro. | |
8330 | (GEN_MTSPR): New macro. | |
8331 | (GEN_MFCR): New macro. | |
8332 | (GEN_MTCR): New macro. | |
8333 | (GEN_SYNC): New macro. | |
8334 | (GEN_LWSYNC): New macro. | |
8335 | (gen_x_form): New function. | |
8336 | (GEN_OR): New macro. | |
8337 | (GEN_MR): New macro. | |
8338 | (GEN_LWARX): New macro. | |
8339 | (GEN_STWCX): New macro. | |
8340 | (GEN_CMPW): New macro. | |
8341 | (gen_md_form): New function. | |
8342 | (GEN_RLDICL): New macro. | |
8343 | (GEN_RLDICR): New macro. | |
8344 | (gen_i_form): New function. | |
8345 | (GEN_B): New macro. | |
8346 | (GEN_BL): New macro. | |
8347 | (gen_b_form): New function. | |
8348 | (GEN_BNE): New macro. | |
8349 | (GEN_LOAD): New macro. | |
8350 | (GEN_STORE): New macro. | |
8351 | (gen_limm): New function. | |
8352 | (gen_atomic_xchg): New function. | |
8353 | (gen_call): New function. | |
8354 | (ppc_relocate_instruction): New function. | |
8355 | (ppc_install_fast_tracepoint_jump_pad): New function. | |
8356 | (ppc_get_min_fast_tracepoint_insn_len): New function. | |
8357 | (ppc_get_ipa_tdesc_idx): New function. | |
8358 | (the_low_target): Wire in the new functions. | |
8359 | (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit | |
8360 | tdescs. | |
8361 | * linux-ppc-tdesc.h: New file. | |
8362 | ||
a13c4696 MK |
8363 | 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net> |
8364 | ||
8365 | * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes. | |
8366 | (alloc_jump_pad_buffer): New function. | |
8367 | * linux-amd64-ipa.c: Add <sys/mman.h> include. | |
8368 | (alloc_jump_pad_buffer): New function. | |
8369 | * linux-i386-ipa.c (alloc_jump_pad_buffer): New function. | |
8370 | * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes. | |
8371 | (alloc_jump_pad_buffer): New function. | |
8372 | * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function. | |
8373 | (initialize_tracepoint): Delegate to alloc_jump_pad_buffer. | |
8374 | * tracepoint.h (alloc_jump_pad_buffer): New prototype. | |
8375 | (getauxval) [!HAVE_GETAUXVAL]: New prototype. | |
8376 | ||
1cda1512 MK |
8377 | 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net> |
8378 | ||
8379 | * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg. | |
8380 | * linux-amd64-ipa.c: Likewise. | |
8381 | * linux-i386-ipa.c: Likewise. | |
8382 | * linux-s390-ipa.c: Likewise. | |
8383 | * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect, | |
8384 | ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr, | |
8385 | set_trace_state_variable_value_ptr. | |
8386 | (struct ipa_sym_addresses): Likewise. | |
8387 | (symbol_list): Likewise. | |
8388 | (install_fast_tracepoint): Dereference gdb_collect_ptr instead of | |
8389 | accessing gdb_collect directly. | |
8390 | (gdb_collect_ptr_type): New typedef. | |
8391 | (get_raw_reg_ptr_type): New typedef. | |
8392 | (get_trace_state_variable_value_ptr_type): New typedef. | |
8393 | (set_trace_state_variable_value_ptr_type): New typedef. | |
8394 | (gdb_collect_ptr): New global. | |
8395 | (get_raw_reg_ptr): New global. | |
8396 | (get_trace_state_variable_value_ptr): New global. | |
8397 | (set_trace_state_variable_value_ptr): New global. | |
8398 | (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of | |
8399 | accessing get_raw_reg directly. | |
8400 | (get_get_tsv_func_addr): Likewise for | |
8401 | get_trace_state_variable_value_ptr. | |
8402 | (get_set_tsv_func_addr): Likewise for | |
8403 | set_trace_state_variable_value_ptr. | |
8404 | * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg. | |
8405 | ||
72fb5488 SM |
8406 | 2016-03-30 Simon Marchi <simon.marchi@ericsson.com> |
8407 | ||
8408 | * tracepoint.c (cmd_qtenable_disable): Remove whitespace. | |
8409 | ||
28170b88 MK |
8410 | 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net> |
8411 | ||
8412 | * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v' | |
8413 | packets. | |
8414 | (relocate_instruction): Remove own_buf. | |
8415 | * server.c (own_buf): Make global. | |
8416 | (handle_v_requests): Make global. | |
8417 | * server.h (own_buf): New declaration. | |
8418 | (handle_v_requests): New prototype. | |
8419 | ||
f39e8743 MK |
8420 | 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net> |
8421 | ||
8422 | PR 18377 | |
8423 | * linux-s390-low.c (add_insns): New function. | |
8424 | (s390_emit_prologue): New function. | |
8425 | (s390_emit_epilogue): New function. | |
8426 | (s390_emit_add): New function. | |
8427 | (s390_emit_sub): New function. | |
8428 | (s390_emit_mul): New function. | |
8429 | (s390_emit_lsh): New function. | |
8430 | (s390_emit_rsh_signed): New function. | |
8431 | (s390_emit_rsh_unsigned): New function. | |
8432 | (s390_emit_ext): New function. | |
8433 | (s390_emit_log_not): New function. | |
8434 | (s390_emit_bit_and): New function. | |
8435 | (s390_emit_bit_or): New function. | |
8436 | (s390_emit_bit_xor): New function. | |
8437 | (s390_emit_bit_not): New function. | |
8438 | (s390_emit_equal): New function. | |
8439 | (s390_emit_less_signed): New function. | |
8440 | (s390_emit_less_unsigned): New function. | |
8441 | (s390_emit_ref): New function. | |
8442 | (s390_emit_if_goto): New function. | |
8443 | (s390_emit_goto): New function. | |
8444 | (s390_write_goto_address): New function. | |
8445 | (s390_emit_litpool): New function. | |
8446 | (s390_emit_const): New function. | |
8447 | (s390_emit_call): New function. | |
8448 | (s390_emit_reg): New function. | |
8449 | (s390_emit_pop): New function. | |
8450 | (s390_emit_stack_flush): New function. | |
8451 | (s390_emit_zero_ext): New function. | |
8452 | (s390_emit_swap): New function. | |
8453 | (s390_emit_stack_adjust): New function. | |
8454 | (s390_emit_set_r2): New function. | |
8455 | (s390_emit_int_call_1): New function. | |
8456 | (s390_emit_void_call_2): New function. | |
8457 | (s390_emit_eq_goto): New function. | |
8458 | (s390_emit_ne_goto): New function. | |
8459 | (s390_emit_lt_goto): New function. | |
8460 | (s390_emit_le_goto): New function. | |
8461 | (s390_emit_gt_goto): New function. | |
8462 | (s390_emit_ge_goto): New function. | |
8463 | (s390x_emit_prologue): New function. | |
8464 | (s390x_emit_epilogue): New function. | |
8465 | (s390x_emit_add): New function. | |
8466 | (s390x_emit_sub): New function. | |
8467 | (s390x_emit_mul): New function. | |
8468 | (s390x_emit_lsh): New function. | |
8469 | (s390x_emit_rsh_signed): New function. | |
8470 | (s390x_emit_rsh_unsigned): New function. | |
8471 | (s390x_emit_ext): New function. | |
8472 | (s390x_emit_log_not): New function. | |
8473 | (s390x_emit_bit_and): New function. | |
8474 | (s390x_emit_bit_or): New function. | |
8475 | (s390x_emit_bit_xor): New function. | |
8476 | (s390x_emit_bit_not): New function. | |
8477 | (s390x_emit_equal): New function. | |
8478 | (s390x_emit_less_signed): New function. | |
8479 | (s390x_emit_less_unsigned): New function. | |
8480 | (s390x_emit_ref): New function. | |
8481 | (s390x_emit_if_goto): New function. | |
8482 | (s390x_emit_const): New function. | |
8483 | (s390x_emit_call): New function. | |
8484 | (s390x_emit_reg): New function. | |
8485 | (s390x_emit_pop): New function. | |
8486 | (s390x_emit_stack_flush): New function. | |
8487 | (s390x_emit_zero_ext): New function. | |
8488 | (s390x_emit_swap): New function. | |
8489 | (s390x_emit_stack_adjust): New function. | |
8490 | (s390x_emit_int_call_1): New function. | |
8491 | (s390x_emit_void_call_2): New function. | |
8492 | (s390x_emit_eq_goto): New function. | |
8493 | (s390x_emit_ne_goto): New function. | |
8494 | (s390x_emit_lt_goto): New function. | |
8495 | (s390x_emit_le_goto): New function. | |
8496 | (s390x_emit_gt_goto): New function. | |
8497 | (s390x_emit_ge_goto): New function. | |
8498 | (s390_emit_ops): New function. | |
8499 | (struct linux_target_ops): Fill in emit_ops hook. | |
8500 | ||
abd9baf9 MK |
8501 | 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net> |
8502 | ||
8503 | PR 18377 | |
8504 | * Makefile.in: Add s390 IPA files. | |
8505 | * configure.srv: Build IPA for s390. | |
8506 | * linux-s390-ipa.c: New file. | |
8507 | * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h. | |
8508 | (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h. | |
8509 | (tdesc_s390_linux32): Likewise. | |
8510 | (init_registers_s390_linux32v1): Likewise. | |
8511 | (tdesc_s390_linux32v1): Likewise. | |
8512 | (init_registers_s390_linux32v2): Likewise. | |
8513 | (tdesc_s390_linux32v2): Likewise. | |
8514 | (init_registers_s390_linux64): Likewise. | |
8515 | (tdesc_s390_linux64): Likewise. | |
8516 | (init_registers_s390_linux64v1): Likewise. | |
8517 | (tdesc_s390_linux64v1): Likewise. | |
8518 | (init_registers_s390_linux64v2): Likewise. | |
8519 | (tdesc_s390_linux64v2): Likewise. | |
8520 | (init_registers_s390_te_linux64): Likewise. | |
8521 | (tdesc_s390_te_linux64): Likewise. | |
8522 | (init_registers_s390_vx_linux64): Likewise. | |
8523 | (tdesc_s390_vx_linux64): Likewise. | |
8524 | (init_registers_s390_tevx_linux64): Likewise. | |
8525 | (tdesc_s390_tevx_linux64): Likewise. | |
8526 | (init_registers_s390x_linux64): Likewise. | |
8527 | (tdesc_s390x_linux64): Likewise. | |
8528 | (init_registers_s390x_linux64v1): Likewise. | |
8529 | (tdesc_s390x_linux64v1): Likewise. | |
8530 | (init_registers_s390x_linux64v2): Likewise. | |
8531 | (tdesc_s390x_linux64v2): Likewise. | |
8532 | (init_registers_s390x_te_linux64): Likewise. | |
8533 | (tdesc_s390x_te_linux64): Likewise. | |
8534 | (init_registers_s390x_vx_linux64): Likewise. | |
8535 | (tdesc_s390x_vx_linux64): Likewise. | |
8536 | (init_registers_s390x_tevx_linux64): Likewise. | |
8537 | (tdesc_s390x_tevx_linux64): Likewise. | |
8538 | (have_hwcap_s390_vx): New static variable. | |
8539 | (s390_arch_setup): Fill have_hwcap_s390_vx. | |
8540 | (s390_get_thread_area): New function. | |
8541 | (s390_ft_entry_gpr_esa): New const. | |
8542 | (s390_ft_entry_gpr_zarch): New const. | |
8543 | (s390_ft_entry_misc): New const. | |
8544 | (s390_ft_entry_fr): New const. | |
8545 | (s390_ft_entry_vr): New const. | |
8546 | (s390_ft_main_31): New const. | |
8547 | (s390_ft_main_64): New const. | |
8548 | (s390_ft_exit_fr): New const. | |
8549 | (s390_ft_exit_vr): New const. | |
8550 | (s390_ft_exit_misc): New const. | |
8551 | (s390_ft_exit_gpr_esa): New const. | |
8552 | (s390_ft_exit_gpr_zarch): New const. | |
8553 | (append_insns): New function. | |
8554 | (s390_relocate_instruction): New function. | |
8555 | (s390_install_fast_tracepoint_jump_pad): New function. | |
8556 | (s390_get_min_fast_tracepoint_insn_len): New function. | |
8557 | (s390_get_ipa_tdesc_idx): New function. | |
8558 | (struct linux_target_ops): Wire in the above functions. | |
8559 | (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs. | |
8560 | * linux-s390-tdesc.h: New file. | |
8561 | ||
a4105d04 MK |
8562 | 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net> |
8563 | ||
8564 | * linux-s390-low.c (s390_supports_tracepoints): New function. | |
8565 | (struct linux_target_ops): Fill supports_tracepoints hook. | |
8566 | ||
35ac8b3e YQ |
8567 | 2016-03-18 Yao Qi <yao.qi@linaro.org> |
8568 | ||
8569 | * linux-low.c (lwp_signal_can_be_delivered): New function. | |
8570 | (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered. | |
8571 | ||
94610ec4 YQ |
8572 | 2016-03-18 Yao Qi <yao.qi@linaro.org> |
8573 | ||
8574 | * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to | |
8575 | 0 if signal is enqueued. Remove 'signal' from one debugging | |
8576 | message. Move one debugging message to some lines below. | |
8577 | Remove code setting 'signal' to 0. | |
8578 | ||
80aea927 YQ |
8579 | 2016-03-18 Yao Qi <yao.qi@linaro.org> |
8580 | ||
8581 | * linux-low.c (linux_low_filter_event): Remove redundant | |
8582 | WIFSTOPPED check together with linux_wstatus_maybe_breakpoint. | |
8583 | ||
b04fd3be MK |
8584 | 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net> |
8585 | ||
8586 | * linux-ppc-low.c (ppc_supports_tracepoints): New function. | |
8587 | (struct linux_target_ops): Wire in the above. | |
8588 | ||
c40c8d4b YQ |
8589 | 2016-03-03 Yao Qi <yao.qi@linaro.org> |
8590 | ||
8591 | * linux-low.c: Update comments to start_step_over. | |
8592 | ||
0f8288ae YQ |
8593 | 2016-03-03 Yao Qi <yao.qi@linaro.org> |
8594 | ||
8595 | PR server/19736 | |
8596 | * linux-low.c (handle_extended_wait): Set child suspended | |
8597 | if event_lwp->bp_reinsert isn't zero. | |
8598 | ||
fdbd04a8 YQ |
8599 | 2016-03-02 Yao Qi <yao.qi@linaro.org> |
8600 | ||
8601 | * linux-low.c (linux_resume_one_lwp_throw): Replace code with | |
8602 | enqueue_pending_signal. | |
8603 | ||
6896a8fa MK |
8604 | 2016-03-02 Marcin Kościelnicki <koriakin@0x04.net> |
8605 | ||
8606 | * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent | |
8607 | is actually loaded. | |
8608 | ||
ab503087 MK |
8609 | 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net> |
8610 | ||
8611 | * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too. | |
8612 | (s390_regmap_3264) [!__s390x__]: New global. | |
8613 | (s390_collect_ptrace_register): Skip map entries containing -1. | |
8614 | (s390_supply_ptrace_register): Ditto. | |
8615 | (s390_fill_gprs_high): New function. | |
8616 | (s390_store_gprs_high): New function. | |
8617 | (s390_regsets): Add NT_S390_HIGH_GPRS. | |
8618 | (s390_get_hwcap): Enable on 31-bit. | |
8619 | (have_hwcap_s390_high_gprs): Enable on 31-bit. | |
8620 | (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit. | |
8621 | Detect NT_S390_HIGH_GPRS. | |
8622 | (s390_usrregs_info_3264): Enable on 31-bit. | |
8623 | (s390_regs_info): Enable regs_info_3264 on 31-bit. | |
8624 | (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit. | |
8625 | ||
ae91f625 MK |
8626 | 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net> |
8627 | ||
8628 | PR gdb/13808 | |
8629 | * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o. | |
8630 | * configure.srv: Ditto. | |
8631 | * linux-aarch64-ipa.c (get_ipa_tdesc): New function. | |
8632 | (initialize_low_tracepoint): Remove ipa_tdesc assignment. | |
8633 | * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include. | |
8634 | (init_registers_amd64_linux): Remove prototype. | |
8635 | (tdesc_amd64_linux): Remove declaration. | |
8636 | (get_ipa_tdesc): New function. | |
8637 | (initialize_low_tracepoint): Remove ipa_tdesc assignment, | |
8638 | initialize remaining tdescs. | |
8639 | * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include. | |
8640 | (init_registers_i386_linux): Remove prototype. | |
8641 | (tdesc_i386_linux): Remove declaration. | |
8642 | (get_ipa_tdesc): New function. | |
8643 | (initialize_low_tracepoint): Remove ipa_tdesc assignment, | |
8644 | initialize remaining tdescs. | |
8645 | * linux-low.c (linux_get_ipa_tdesc_idx): New function. | |
8646 | (linux_target_ops): wire in linux_get_ipa_tdesc_idx. | |
8647 | * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx. | |
8648 | * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h. | |
8649 | (x86_get_ipa_tdesc_idx): New function. | |
8650 | (the_low_target): Wire in x86_get_ipa_tdesc_idx. | |
8651 | * linux-x86-tdesc.h: New file. | |
8652 | * target.h (struct target_ops): Add get_ipa_tdesc_idx. | |
8653 | (target_get_ipa_tdesc_idx): New macro. | |
8654 | * tracepoint.c (ipa_tdesc_idx): New macro. | |
8655 | (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx. | |
8656 | (symbol_list): Add ipa_tdesc_idx. | |
8657 | (cmd_qtstart): Write ipa_tdesc_idx in the target. | |
8658 | (ipa_tdesc): Remove. | |
8659 | (ipa_tdesc_idx): New variable. | |
8660 | (get_context_regcache): Use get_ipa_tdesc. | |
8661 | (gdb_collect): Ditto. | |
8662 | (gdb_probe): Ditto. | |
8663 | * tracepoint.h (get_ipa_tdesc): New prototype. | |
8664 | (ipa_tdesc): Remove. | |
8665 | ||
e7ad2f14 PA |
8666 | 2016-02-24 Pedro Alves <palves@redhat.com> |
8667 | ||
8668 | * linux-low.c (check_stopped_by_breakpoint): Rename to ... | |
8669 | (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and | |
8670 | handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT. | |
8671 | Factor out common code between the USE_SIGTRAP_SIGINFO and | |
8672 | !USE_SIGTRAP_SIGINFO blocks. | |
8673 | (linux_low_filter_event): Call save_stop_reason instead of | |
8674 | check_stopped_by_breakpoint and check_stopped_by_watchpoint. | |
8675 | Update comments. | |
8676 | (linux_wait_1): Update comments. | |
8677 | ||
657f9cde WW |
8678 | 2016-02-24 Wei-cheng Wang <cole945@gmail.com> |
8679 | ||
8680 | * linux-ppc-low.c (ppc_supports_z_point_type): New function: | |
8681 | (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints. | |
8682 | (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type, | |
8683 | ppc_insert_point, ppc_remove_point. | |
8684 | ||
b00b61e1 MK |
8685 | 2016-02-17 Marcin Kościelnicki <koriakin@0x04.net> |
8686 | ||
8687 | * linux-s390-low.c (s390_supports_z_point_type): New function. | |
8688 | (struct linux_target_ops): Wire s390_supports_z_point_type in. | |
8689 | ||
553cb527 YQ |
8690 | 2016-02-16 Yao Qi <yao.qi@linaro.org> |
8691 | ||
8692 | * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument | |
8693 | PC. Get pc from regcache_read_pc. | |
8694 | ||
a5652c21 YQ |
8695 | 2016-02-12 Yao Qi <yao.qi@linaro.org> |
8696 | ||
8697 | * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit | |
8698 | or linux_get_pc_32bit. | |
8699 | (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit. | |
8700 | ||
ed443b61 YQ |
8701 | 2016-02-12 Yao Qi <yao.qi@linaro.org> |
8702 | ||
8703 | * linux-arm-low.c (get_next_pcs_ops): Initialize it with | |
8704 | arm_linux_get_next_pcs_fixup. | |
8705 | ||
020ecd38 MK |
8706 | 2016-02-12 Marcin Kościelnicki <koriakin@0x04.net> |
8707 | ||
8708 | * tracepoint.c (x_tracepoint_action_download): Change | |
8709 | write_inferior_data_ptr to write_inferior_data_pointer. | |
8710 | (cmd_qtstart): Likewise. | |
8711 | (write_inferior_data_ptr): Remove. | |
8712 | (download_agent_expr): Change write_inferior_data_ptr to | |
8713 | write_inferior_data_pointer. | |
8714 | (download_tracepoint_1): Likewise. | |
8715 | (download_tracepoint): Likewise. | |
8716 | (download_trace_state_variables): Likewise. | |
8717 | ||
7cae9051 WW |
8718 | 2016-02-11 Wei-cheng Wang <cole945@gmail.com> |
8719 | Marcin Kościelnicki <koriakin@0x04.net> | |
8720 | ||
8721 | * tracepoint.c (struct tracepoint_action_ops): Remove. | |
8722 | (struct tracepoint_action): Remove ops. | |
8723 | (m_tracepoint_action_download, r_tracepoint_action_download) | |
8724 | (x_tracepoint_action_download, l_tracepoint_action_download): Adjust | |
8725 | size and offset accordingly. | |
8726 | (m_tracepoint_action_ops, r_tracepoint_action_ops) | |
8727 | (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove. | |
8728 | (tracepoint_action_send, tracepoint_action_download): New functions. | |
8729 | Helpers for trace action handlers. | |
8730 | (add_tracepoint_action): Remove setup actions ops. | |
8731 | (download_tracepoint_1, tracepoint_send_agent): Call helper functions. | |
8732 | ||
9f6a71b4 YQ |
8733 | 2016-02-10 Yao Qi <yao.qi@linaro.org> |
8734 | ||
8735 | * regcache.c (regcache_raw_read_unsigned): Clear *VAL. | |
8736 | ||
1e94266c SM |
8737 | 2016-02-09 Simon Marchi <simon.marchi@ericsson.com> |
8738 | ||
8739 | * configure.ac: Use AC_CONFIG_FILES instead of passing arguments | |
8740 | to AC_OUTPUT. | |
8741 | * configure: Regenerate. | |
8742 | ||
8adce034 SM |
8743 | 2016-02-09 Simon Marchi <simon.marchi@ericsson.com> |
8744 | ||
8745 | * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change | |
8746 | void * to gdb_byte *. | |
8747 | * linux-low.c (siginfo_fixup): Likewise. | |
8748 | (linux_xfer_siginfo): Likewise. | |
8749 | * linux-low.h (struct linux_target_ops) <siginfo_fixup>: | |
8750 | Likewise. | |
8751 | * linux-x86-low.c (x86_siginfo_fixup): Likewise. | |
8752 | ||
93813b37 WT |
8753 | 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com> |
8754 | ||
8755 | * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o | |
8756 | to srv_tgtobj. | |
8757 | (i[34567]86-*-linux*): Add amd64-linux-siginfo.o | |
8758 | to srv_tgtobj. | |
8759 | * linux-x86-low.c [__x86_64__]: Include | |
8760 | "nat/amd64-linux-siginfo.h". | |
8761 | (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo) | |
8762 | (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo) | |
8763 | (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid) | |
8764 | (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status) | |
8765 | (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band) | |
8766 | (cpt_si_fd, si_timerid, si_overrun): Move from | |
8767 | nat/amd64-linux-siginfo.c. | |
8768 | * Makefile.in (amd64-linux-siginfo.o:): New rule. | |
8769 | ||
8424cc97 SM |
8770 | 2016-01-28 Simon Marchi <simon.marchi@ericsson.com> |
8771 | ||
8772 | * server.c (skip_to_semicolon): Remove. | |
8773 | (process_point_options): Use strchrnul instead of | |
8774 | skip_to_semicolon. | |
8775 | ||
4d18591b YQ |
8776 | 2016-01-26 Yao Qi <yao.qi@linaro.org> |
8777 | ||
8778 | * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc. | |
8779 | * linux-low.c (install_software_single_step_breakpoints): Don't | |
8780 | call regcache_read_pc. | |
8781 | * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove | |
8782 | argument pc. | |
8783 | ||
d8020970 YQ |
8784 | 2016-01-26 Yao Qi <yao.qi@linaro.org> |
8785 | ||
8786 | * linux-low.c (install_software_single_step_breakpoints): Call | |
8787 | regcache_read_pc instead of get_pc. | |
8788 | ||
8b207339 YQ |
8789 | 2016-01-26 Yao Qi <yao.qi@linaro.org> |
8790 | ||
8791 | * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO. | |
8792 | (unblock_async_io): Rename to ... | |
8793 | (block_unblock_async_io): ... it. New function. | |
8794 | (enable_async_io): Don't install SIGIO handler. Unblock it | |
8795 | instead. | |
8796 | (disable_async_io): Don't ignore SIGIO. Block it instead. | |
8797 | (initialize_async_io): Install SIGIO handler. Don't call | |
8798 | unblock_async_io. | |
8799 | ||
18879fef YQ |
8800 | 2016-01-26 Yao Qi <yao.qi@linaro.org> |
8801 | ||
8802 | * remote-utils.c (getpkt): If the buffer isn't empty, and the | |
8803 | first character is '\003', call *the_target->request_interrupt. | |
8804 | ||
a0f8e08a YQ |
8805 | 2016-01-25 Yao Qi <yao.qi@linaro.org> |
8806 | ||
8807 | * remote-utils.c (new_thread_notify): Remove. | |
8808 | (dead_thread_notify): Likewise. | |
8809 | * remote-utils.h (new_thread_notify): Remove declaration. | |
8810 | (dead_thread_notify): Likewise. | |
8811 | ||
cc5fd9ab MK |
8812 | 2016-01-23 Marcin Kościelnicki <koriakin@0x04.net> |
8813 | ||
8814 | * gdb.trace/pending.exp: Fix expected message on continue. | |
8815 | ||
99e8eb11 MK |
8816 | 2016-01-22 Marcin Kościelnicki <koriakin@0x04.net> |
8817 | ||
8818 | * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that | |
8819 | it works properly on big-endian machines where sizeof (CORE_ADDR) | |
8820 | != sizeof (void *). | |
8821 | ||
a994041d PA |
8822 | 2016-01-21 Pedro Alves <palves@redhat.com> |
8823 | ||
8824 | * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New. | |
8825 | (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS. | |
8826 | * configure: Regenerate. | |
8827 | ||
f7a6a40d YQ |
8828 | 2016-01-21 Yao Qi <yao.qi@linaro.org> |
8829 | ||
8830 | * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter | |
8831 | is_thumb and set it according to CPSR saved on the stack. | |
8832 | (get_next_pcs_syscall_next_pc): Pass is_thumb to | |
8833 | arm_sigreturn_next_pc. | |
8834 | ||
6f69e520 YQ |
8835 | 2016-01-18 Yao Qi <yao.qi@linaro.org> |
8836 | ||
8837 | * linux-low.c (linux_set_pc_64bit): New function. | |
8838 | (linux_get_pc_64bit): New function. | |
8839 | * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit): | |
8840 | Declare. | |
8841 | * linux-sparc-low.c (debug_threads): Remove declaration. | |
8842 | (sparc_get_pc): Remove. | |
8843 | (the_low_target): Use linux_get_pc_64bit instead of | |
8844 | sparc_get_pc. | |
8845 | * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove. | |
8846 | (the_low_target): Use linux_get_pc_64bit and | |
8847 | linux_set_pc_64bit. | |
8848 | ||
276d4552 YQ |
8849 | 2016-01-18 Yao Qi <yao.qi@linaro.org> |
8850 | ||
8851 | * linux-arm-low.c (debug_threads): Remove declaration. | |
8852 | (arm_get_pc, arm_set_pc): Remove. | |
8853 | (the_low_target): Use linux_get_pc_32bit and | |
8854 | linux_set_pc_32bit. | |
8855 | * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove. | |
8856 | (the_low_target): Use linux_get_pc_32bit and | |
8857 | linux_set_pc_32bit. | |
8858 | * linux-cris-low.c (debug_threads): Remove declaration. | |
8859 | (cris_get_pc, cris_set_pc,): Remove. | |
8860 | (the_low_target): Use linux_get_pc_32bit and | |
8861 | linux_set_pc_32bit. | |
8862 | * linux-crisv32-low.c (debug_threads): Remove declaration. | |
8863 | (cris_get_pc, cris_set_pc): Remove. | |
8864 | (the_low_target): Use linux_get_pc_32bit and | |
8865 | linux_set_pc_32bit. | |
8866 | * linux-low.c: Include inttypes.h. | |
8867 | (linux_get_pc_32bit, linux_set_pc_32bit): New functions. | |
8868 | * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare. | |
8869 | * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove. | |
8870 | (the_low_target): Use linux_get_pc_32bit and | |
8871 | linux_set_pc_32bit. | |
8872 | * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove. | |
8873 | (the_low_target): Use linux_get_pc_32bit and | |
8874 | linux_set_pc_32bit. | |
8875 | * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove. | |
8876 | (the_low_target): Use linux_get_pc_32bit and | |
8877 | linux_set_pc_32bit. | |
8878 | * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove. | |
8879 | (the_low_target): Use linux_get_pc_32bit and | |
8880 | linux_set_pc_32bit. | |
8881 | * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove. | |
8882 | (the_low_target): Use linux_get_pc_32bit and | |
8883 | linux_set_pc_32bit. | |
8884 | ||
eb0edac8 GB |
8885 | 2016-01-18 Gary Benson <gbenson@redhat.com> |
8886 | ||
8887 | * configure.ac (AC_FUNC_FORK): New check. | |
8888 | * config.in: Regenerate. | |
8889 | * configure: Likewise. | |
8890 | ||
1b451dda YQ |
8891 | 2016-01-14 Yao Qi <yao.qi@linaro.org> |
8892 | ||
8893 | * linux-aarch32-low.c (thumb2_breakpoint): Make it static. | |
8894 | * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration. | |
8895 | * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to | |
8896 | arm_get_next_pcs_ctor. | |
8897 | ||
82075af2 JS |
8898 | 2016-01-12 Josh Stone <jistone@redhat.com> |
8899 | Philippe Waroquiers <philippe.waroquiers@skynet.be> | |
8900 | ||
8901 | * inferiors.h: Include "gdb_vecs.h". | |
8902 | (struct process_info): Add syscalls_to_catch. | |
8903 | * inferiors.c (remove_process): Free syscalls_to_catch. | |
8904 | * remote-utils.c (prepare_resume_reply): Report syscall_entry and | |
8905 | syscall_return stops. | |
8906 | * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define. | |
8907 | * server.c (handle_general_set): Handle QCatchSyscalls. | |
8908 | (handle_query): Report support for QCatchSyscalls. | |
8909 | * target.h (struct target_ops): Add supports_catch_syscall. | |
8910 | (target_supports_catch_syscall): New macro. | |
8911 | * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo. | |
8912 | (struct lwp_info): Add syscall_state. | |
8913 | * linux-low.c (handle_extended_wait): Mark syscall_state as an entry. | |
8914 | Maintain syscall_state and syscalls_to_catch across exec. | |
8915 | (get_syscall_trapinfo): New function, proxy to the_low_target. | |
8916 | (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD. | |
8917 | (linux_low_filter_event): Toggle syscall_state entry/return for | |
8918 | syscall traps, and set it ignored for all others. | |
8919 | (gdb_catching_syscalls_p): New function. | |
8920 | (gdb_catch_this_syscall_p): New function. | |
8921 | (linux_wait_1): Handle SYSCALL_SIGTRAP. | |
8922 | (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility. | |
8923 | (linux_supports_catch_syscall): New function. | |
8924 | (linux_target_ops): Install it. | |
8925 | * linux-x86-low.c (x86_get_syscall_trapinfo): New function. | |
8926 | (the_low_target): Install it. | |
8927 | ||
8f13a3ce MF |
8928 | 2016-01-12 Mike Frysinger <vapier@gentoo.org> |
8929 | ||
8930 | * acinclude.m4: Include new ../warning.m4 file. | |
8931 | * configure: Regenerated. | |
8932 | * configure.ac: Replace all warning logic with AM_GDB_WARNINGS. | |
8933 | ||
5b3da067 MF |
8934 | 2016-01-12 Mike Frysinger <vapier@gentoo.org> |
8935 | ||
8936 | * ax.c (is_goto_target): Mark static. | |
8937 | * linux-low.c (register_addr): Likewise. | |
8938 | (linux_fetch_registers, linux_store_registers): Likewise. | |
8939 | * mem-break.c (any_persistent_commands): Fix old prototype. | |
8940 | (add_commands_to_breakpoint): Mark static. | |
8941 | * regcache.c (find_register_by_name): Delete unused func. | |
8942 | * remote-utils.c (hex_or_minus_one): Mark static. | |
8943 | * server.c (monitor_show_help): Mark static. | |
8944 | (handle_query, handle_v_cont, handle_v_attach, handle_v_kill, | |
8945 | handle_v_requests): Likewise. | |
8946 | ||
bc504a31 PA |
8947 | 2016-01-12 Pedro Alves <palves@redhat.com> |
8948 | ||
8949 | Remove use of the registered trademark symbol throughout. | |
8950 | ||
5a0dd67a YQ |
8951 | 2016-01-08 Yao Qi <yao.qi@linaro.org> |
8952 | ||
8953 | * remote-utils.c (getpkt): If c is '\003', call target hook | |
8954 | request_interrupt. | |
8955 | ||
b2ca446f YQ |
8956 | 2016-01-06 Yao Qi <yao.qi@linaro.org> |
8957 | ||
8958 | * linux-aarch32-low.h (arm_abi_breakpoint): Move to | |
8959 | linux-aarch32-low.c. | |
8960 | (arm_eabi_breakpoint, arm_breakpoint): Likewise. | |
8961 | (arm_breakpoint_len, thumb_breakpoint_len): Likewise. | |
8962 | (thumb2_breakpoint, thumb2_breakpoint_len): Likewise. | |
8963 | (thumb2_breakpoint): Declare. | |
8964 | * linux-aarch32-low.c (arm_abi_breakpoint): Moved from | |
8965 | linux-aarch32-low.h. | |
8966 | (arm_eabi_breakpoint, arm_breakpoint): Likewise. | |
8967 | (arm_breakpoint_len, thumb_breakpoint_len): Likewise. | |
8968 | (thumb2_breakpoint, thumb2_breakpoint_len): Likewise. | |
8969 | ||
edd88788 JB |
8970 | 2016-01-01 Joel Brobecker <brobecker@adacore.com> |
8971 | ||
8972 | * gdbreplay.c (gdbreplay_version): Change copyright year in | |
8973 | version message. | |
8974 | * server.c (gdbserver_version): Likewise. | |
8975 | ||
65da7f14 PP |
8976 | 2015-12-28 Patrick Palka <patrick@parcs.ath.cx> |
8977 | ||
8978 | * server.c (crc32_table): Delete. | |
8979 | (crc32): Use libiberty's xcrc32 function. | |
8980 | ||
4abd5ed2 JB |
8981 | 2015-12-22 Joel Brobecker <brobecker@adacore.com> |
8982 | ||
8983 | * lynx-low.c (lynx_delete_thread_callback): New function. | |
8984 | (lynx_mourn): Properly delete our process and all of its | |
8985 | threads. Remove call to clear_inferiors. | |
8986 | ||
0e50fe5c JB |
8987 | 2015-12-22 Joel Brobecker <brobecker@adacore.com> |
8988 | ||
8989 | * target.c (thread_search_callback): Add check that | |
8990 | the thread_stopped target callback is not NULL before | |
8991 | calling it. | |
8992 | ||
35adc03f YQ |
8993 | 2015-12-21 Yao Qi <yao.qi@linaro.org> |
8994 | ||
8995 | * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint | |
8996 | arm breakpoint. | |
8997 | ||
bd2b2909 AT |
8998 | 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com> |
8999 | ||
9000 | * server.c (handle_query): Call target_supports_software_single_step. | |
9001 | ||
7fe5e27e AT |
9002 | 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com> |
9003 | ||
9004 | * linux-low.c (single_step): New function. | |
9005 | (linux_resume_one_lwp_throw): Call single_step. | |
9006 | (start_step_over): Likewise. | |
9007 | ||
d9311bfa AT |
9008 | 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com> |
9009 | ||
9010 | * Makefile.in (SFILES): Append arch/arm-linux.c, | |
9011 | arch/arm-get-next-pcs.c. | |
9012 | (arm-linux.o): New rule. | |
9013 | (arm-get-next-pcs.o): New rule. | |
9014 | * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o, | |
9015 | arm-linux.o. | |
9016 | * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved | |
9017 | to linux-aarch32-low.c. | |
9018 | (arm_eabi_breakpoint, arm_breakpoint): Likewise. | |
9019 | (arm_breakpoint_len, thumb_breakpoint): Likewise. | |
9020 | (thumb_breakpoint_len, thumb2_breakpoint): Likewise. | |
9021 | (thumb2_breakpoint_len): Likewise. | |
9022 | (arm_is_thumb_mode): Make non-static. | |
9023 | * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved | |
9024 | from linux-aarch32-low.c. | |
9025 | (arm_eabi_breakpoint, arm_breakpoint): Likewise. | |
9026 | (arm_breakpoint_len, thumb_breakpoint): Likewise. | |
9027 | (thumb_breakpoint_len, thumb2_breakpoint): Likewise. | |
9028 | (thumb2_breakpoint_len): Likewise. | |
9029 | (arm_is_thumb_mode): New declaration. | |
9030 | * linux-arm-low.c: Include arch/arm-linux.h | |
9031 | aarch/arm-get-next-pcs.h, sys/syscall.h. | |
9032 | (get_next_pcs_ops): New struct. | |
9033 | (get_next_pcs_addr_bits_remove): New function. | |
9034 | (get_next_pcs_is_thumb): New function. | |
9035 | (get_next_pcs_read_memory_unsigned_integer): Likewise. | |
9036 | (arm_sigreturn_next_pc): Likewise. | |
9037 | (get_next_pcs_syscall_next_pc): Likewise. | |
9038 | (arm_gdbserver_get_next_pcs): Likewise. | |
9039 | (struct linux_target_ops) <arm_gdbserver_get_next_pcs>: | |
9040 | Initialize. | |
9041 | * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h. | |
9042 | * server.h: Include gdb_vecs.h. | |
9043 | ||
68ce2059 AT |
9044 | 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com> |
9045 | ||
9046 | * Makefile.in (SFILES): Append common/common-regcache.c. | |
9047 | (OBS): Append common-regcache.o. | |
9048 | (common-regcache.o): New rule. | |
9049 | * regcache.c (init_register_cache): Initialize cache to | |
9050 | REG_UNAVAILABLE. | |
9051 | (regcache_raw_read_unsigned): New function. | |
9052 | * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared | |
9053 | register_status enum. | |
9054 | ||
fa5308bd AT |
9055 | 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com> |
9056 | ||
9057 | * linux-aarch64-low.c (the_low_targets): Rename | |
9058 | breakpoint_reinsert_addr to get_next_pcs. | |
9059 | * linux-arm-low.c (the_low_targets): Likewise. | |
9060 | * linux-bfin-low.c (the_low_targets): Likewise. | |
9061 | * linux-cris-low.c (the_low_targets): Likewise. | |
9062 | * linux-crisv32-low.c (the_low_targets): Likewise. | |
9063 | * linux-low.c (can_software_single_step): Likewise. | |
9064 | (install_software_single_step_breakpoints): New function. | |
9065 | (start_step_over): Use install_software_single_step_breakpoints. | |
9066 | * linux-low.h: New CORE_ADDR vector. | |
9067 | (struct linux_target_ops) Rename breakpoint_reinsert_addr to | |
9068 | get_next_pcs. | |
9069 | * linux-mips-low.c (the_low_targets): Likewise. | |
9070 | * linux-nios2-low.c (the_low_targets): Likewise. | |
9071 | * linux-sparc-low.c (the_low_targets): Likewise. | |
9072 | ||
4a6ed09b PA |
9073 | 2015-12-17 Pedro Alves <palves@redhat.com> |
9074 | ||
9075 | * linux-low.c (linux_kill_one_lwp): Remove references to | |
9076 | LinuxThreads. | |
9077 | (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back | |
9078 | to 'kill'. | |
9079 | (linux_init_signals): Delete. | |
9080 | (initialize_low): Adjust. | |
9081 | * thread-db.c (thread_db_init): Remove LinuxThreads reference. | |
9082 | ||
7544db95 PA |
9083 | 2015-12-16 Pedro Alves <palves@redhat.com> |
9084 | ||
9085 | * configure.ac (compiler warning flags): When testing a | |
9086 | -Wno-foo option, check whether -Wfoo works instead. | |
9087 | * configure: Regenerate. | |
9088 | ||
8020350c DB |
9089 | 2015-12-11 Don Breazeal <donb@codesourcery.com> |
9090 | ||
9091 | * server.c (process_serial_event): Don't exit from gdbserver | |
9092 | in remote mode if there are still active inferiors. | |
9093 | ||
db91f502 YQ |
9094 | 2015-12-11 Yao Qi <yao.qi@linaro.org> |
9095 | ||
9096 | * linux-aarch64-low.c (aarch64_breakpoint_at): Call | |
9097 | arm_breakpoint_at if the process is 32-bit. | |
9098 | ||
b37a6290 YQ |
9099 | 2015-12-11 Yao Qi <yao.qi@linaro.org> |
9100 | ||
9101 | * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint | |
9102 | arm breakpoint. | |
9103 | ||
17b1509a YQ |
9104 | 2015-12-07 Yao Qi <yao.qi@linaro.org> |
9105 | ||
9106 | * configure.srv: Append arm.o to srv_tgtobj for | |
9107 | aarch64*-*-linux* target. | |
9108 | * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved | |
9109 | from linux-arm-low.c. | |
9110 | (arm_eabi_breakpoint, arm_breakpoint): Likewise. | |
9111 | (arm_breakpoint_len, thumb_breakpoint): Likewise. | |
9112 | (thumb_breakpoint_len, thumb2_breakpoint): Likewise. | |
9113 | (thumb2_breakpoint_len): Likewise. | |
9114 | (arm_is_thumb_mode, arm_breakpoint_at): Likewise. | |
9115 | (arm_breakpoint_kinds): Likewise. | |
9116 | (arm_breakpoint_kind_from_pc): Likewise. | |
9117 | (arm_sw_breakpoint_from_kind): Likewise. | |
9118 | (arm_breakpoint_kind_from_current_state): Likewise. | |
9119 | * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare. | |
9120 | (arm_sw_breakpoint_from_kind): Declare. | |
9121 | (arm_breakpoint_kind_from_current_state): Declare. | |
9122 | (arm_breakpoint_at): Declare. | |
9123 | * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call | |
9124 | arm_sw_breakpoint_from_kind if process is 32-bit. | |
9125 | (aarch64_breakpoint_kind_from_pc): New function. | |
9126 | (aarch64_breakpoint_kind_from_current_state): New function. | |
9127 | (the_low_target): Initialize fields breakpoint_kind_from_pc | |
9128 | and breakpoint_kind_from_current_state. | |
9129 | * linux-arm-low.c (arm_breakpoint_kinds): Move to | |
9130 | linux-aarch32-low.c. | |
9131 | (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise. | |
9132 | (arm_breakpoint, arm_breakpoint_len): Likewise. | |
9133 | (thumb_breakpoint, thumb_breakpoint_len): Likewise. | |
9134 | (thumb2_breakpoint, thumb2_breakpoint_len): Likewise. | |
9135 | (arm_is_thumb_mode): Likewise. | |
9136 | (arm_breakpoint_at): Likewise. | |
9137 | (arm_breakpoint_kind_from_pc): Likewise. | |
9138 | (arm_sw_breakpoint_from_kind): Likewise. | |
9139 | (arm_breakpoint_kind_from_current_state): Likewise. | |
9140 | ||
9141 | Revert: | |
9142 | 2015-08-04 Yao Qi <yao.qi@linaro.org> | |
9143 | ||
9144 | * linux-aarch64-low.c (aarch64_supports_z_point_type): Return | |
9145 | 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging. | |
9146 | * server.c (extended_protocol): Remove "static". | |
9147 | * server.h (extended_protocol): Declare it. | |
9148 | ||
ece66d65 JS |
9149 | 2015-12-04 Josh Stone <jistone@redhat.com> |
9150 | ||
9151 | * target.h (struct target_ops) <arch_setup>: Rename to ... | |
9152 | (struct target_ops) <post_create_inferior>: ... this. | |
9153 | (target_arch_setup): Rename to ... | |
9154 | (target_post_create_inferior): ... this, calling post_create_inferior. | |
9155 | * server.c (start_inferior): Update target_arch_setup calls to | |
9156 | target_post_create_inferior. | |
9157 | * linux-low.c (linux_low_ptrace_options): Forward declare. | |
9158 | (linux_arch_setup): Update its comment for general use. | |
9159 | (linux_post_create_inferior): New, run arch_setup and setup ptrace. | |
9160 | (struct linux_target_ops): Use linux_post_create_inferior. | |
9161 | * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment | |
9162 | to post_create_inferior. | |
9163 | * nto-low.c (struct nto_target_ops): Likewise. | |
9164 | * spu-low.c (struct spu_target_ops): Likewise. | |
9165 | * win32-low.c (struct win32_target_ops): Likewise. | |
9166 | ||
e58c48b4 AT |
9167 | 2015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com> |
9168 | ||
9169 | * linux-arm-low.c: Remove duplicate arch/arm.h include. | |
9170 | ||
fbec8956 AT |
9171 | 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com> |
9172 | ||
9173 | * linux-arm-low.c (arm_reinsert_addr): Remove function. | |
9174 | (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL. | |
9175 | * linux-cris-low.c (cris_reinsert_addr> Remove function. | |
9176 | (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL. | |
9177 | * linux-crisv32-low.c (cris_reinsert_addr): Remove function. | |
9178 | (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL. | |
9179 | * linux-mips-low.c (mips_reinsert_addr): Remove function. | |
9180 | (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL. | |
9181 | * linux-nios2-low.c (nios2_reinsert_addr): Remove function. | |
9182 | (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL. | |
9183 | * linux-sparc-low.c (sparc_reinsert_addr): Remove function. | |
9184 | (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL. | |
9185 | ||
9b4c5f87 AT |
9186 | 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com> |
9187 | ||
9188 | * linux-low.c (linux_look_up_symbols): Don't call | |
9189 | linux_supports_traceclone. | |
9190 | * linux-low.h (thread_db_init): Remove use_events argument. | |
9191 | * thread-db.c (thread_db_use_event): Remove global variable. | |
9192 | (struct thread_db) <td_thr_event_enable_p>: Remove field. | |
9193 | (struct thread_db) <td_create_bp>: Remove field. | |
9194 | (thread_db_create_event): Remove function. | |
9195 | (thread_db_enable_reporting): Likewise. | |
9196 | (find_one_thread): Don't check for thread_db_use_events. | |
9197 | (attach_thread): Likewise. | |
9198 | (thread_db_load_search): Remove td_thr_event_enable_p initialization. | |
9199 | (try_thread_db_load_1): Don't check for thread_db_use_events. | |
9200 | (thread_db_init): Remove use_events argument and thread events | |
9201 | handling. | |
9202 | (remove_thread_event_breakpoints): Remove function. | |
9203 | (thread_db_detach): Remove call to remove_thred_event_breakpoints. | |
9204 | ||
7d00775e AT |
9205 | 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com> |
9206 | ||
9207 | * linux-aarch64-low.c (aarch64_supports_hardware_single_step): | |
9208 | New function. | |
9209 | (struct linux_target_ops) <supports_hardware_single_step>: Initialize. | |
9210 | * linux-arm-low.c (arm_supports_hardware_single_step): New function. | |
9211 | (struct linux_target_ops) <supports_hardware_single_step>: Initialize. | |
9212 | * linux-bfin-low.c (bfin_supports_hardware_single_step): New function. | |
9213 | (struct linux_target_ops) <bfin_supports_hardware_single_step>: | |
9214 | Initialize. | |
9215 | * linux-crisv32-low.c (cris_supports_hardware_single_step): | |
9216 | New function. | |
9217 | (struct linux_target_ops) <supports_hardware_single_step>: Initialize. | |
9218 | * linux-low.c (can_hardware_single_step): Use | |
9219 | supports_hardware_single_step. | |
9220 | (can_software_single_step): New function. | |
9221 | (start_step_over): Call can_software_single_step. | |
9222 | (linux_supports_hardware_single_step): New function. | |
9223 | (struct target_ops) <supports_software_single_step>: Initialize. | |
9224 | * linux-low.h (struct linux_target_ops) | |
9225 | <supports_hardware_single_step>: Initialize. | |
9226 | * linux-m32r-low.c (m32r_supports_hardware_single_step): New function. | |
9227 | (struct linux_target_ops) <supports_hardware_single_step>: Initialize. | |
9228 | * linux-ppc-low.c (ppc_supports_hardware_single_step): New function. | |
9229 | (struct linux_target_ops) <supports_hardware_single_step> Initialize. | |
9230 | * linux-s390-low.c (s390_supports_hardware_single_step): New function. | |
9231 | (struct linux_target_ops) <supports_hardware_single_step>: Initialize. | |
9232 | * linux-sh-low.c (sh_supports_hardware_single_step): New function. | |
9233 | (struct linux_target_ops) <supports_hardware_single_step>: Initialize. | |
9234 | * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function. | |
9235 | (struct linux_target_ops) <tic6x_supports_hardware_single_step>: | |
9236 | Initialize. | |
9237 | * linux-tile-low.c (tile_supports_hardware_single_step): New function. | |
9238 | (struct linux_target_ops) <tile_supports_hardware_single_step>: | |
9239 | Initialize. | |
9240 | * linux-x86-low.c (x86_supports_hardware_single_step) New function. | |
9241 | (struct linux_target_ops) <supports_hardware_single_step>: Initialize. | |
9242 | * linux-xtensa-low.c (xtensa_supports_hardware_single_step): | |
9243 | New function. | |
9244 | (struct linux_target_ops) <supports_hardware_single_step>: Initialize. | |
9245 | * target.h (struct target_ops): <supports_software_single_step>: | |
9246 | New field. | |
9247 | (target_supports_software_single_step): New macro. | |
9248 | ||
2d97cd35 AT |
9249 | 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com> |
9250 | ||
9251 | * linux-low.c (linux_wait_1): Fix pc advance condition. | |
9252 | * mem-break.c (reinsert_breakpoint_inserted_here): New function. | |
9253 | * mem-break.h (reinsert_breakpoint_inserted_here): New declaration. | |
9254 | ||
769ef81f AT |
9255 | 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com> |
9256 | ||
9257 | * linux-arm-low.c (arm_is_thumb_mode): New function. | |
9258 | (arm_breakpoint_at): Use arm_is_thumb_mode. | |
9259 | (arm_breakpoint_kind_from_current_state): New function. | |
9260 | (struct linux_target_ops) <breakpoint_kind_from_current_state>: | |
9261 | Initialize. | |
9262 | * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state. | |
9263 | (linux_breakpoint_kind_from_current_state): New function. | |
9264 | (struct target_ops <breakpoint_kind_from_current_state>: Initialize. | |
9265 | * linux-low.h (struct linux_target_ops) | |
9266 | <breakpoint_kind_from_current_state>: New field. | |
9267 | * target.h (struct target_ops): Likewise. | |
9268 | (target_breakpoint_kind_from_current_state): New macro. | |
9269 | ||
1bebeeca PA |
9270 | 2015-11-30 Pedro Alves <palves@redhat.com> |
9271 | ||
9272 | * linux-low.c (linux_resume): Wake up the event loop before | |
9273 | returning. | |
9274 | ||
a67a9fae PA |
9275 | 2015-11-30 Pedro Alves <palves@redhat.com> |
9276 | ||
9277 | * mem-break.c (check_gdb_bp_preconditions): Remove current_thread | |
9278 | check. | |
9279 | (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR | |
9280 | to -1. | |
9281 | * target.c (struct thread_search): New structure. | |
9282 | (thread_search_callback): New function. | |
9283 | (prev_general_thread): New global. | |
9284 | (prepare_to_access_memory, done_accessing_memory): New functions. | |
9285 | * target.h (prepare_to_access_memory, done_accessing_memory): | |
9286 | Replace macros with function declarations. | |
9287 | ||
f2faf941 PA |
9288 | 2015-11-30 Pedro Alves <palves@redhat.com> |
9289 | ||
9290 | PR 14618 | |
9291 | * linux-low.c (linux_wait_1): If the last resumed thread is gone, | |
9292 | report TARGET_WAITKIND_NO_RESUMED. | |
9293 | * remote-utils.c (prepare_resume_reply): Handle | |
9294 | TARGET_WAITKIND_NO_RESUMED. | |
9295 | * server.c (report_no_resumed): New global. | |
9296 | (handle_query) <qSupported>: Handle "no-resumed+". Report | |
9297 | "no-resumed+" support. | |
9298 | (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only | |
9299 | return error if the client doesn't support no-resumed events. | |
9300 | (push_stop_notification): New function. | |
9301 | (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED | |
9302 | events if the client supports them. | |
9303 | ||
a681f9c9 PA |
9304 | 2015-11-30 Pedro Alves <palves@redhat.com> |
9305 | ||
9306 | * linux-low.c (thread_still_has_status_pending_p): Don't check | |
9307 | vCont;t here. | |
9308 | (lwp_resumed): New function. | |
9309 | (status_pending_p_callback): Return early if the LWP is not | |
9310 | supposed to be resumed. | |
9311 | ||
65706a29 PA |
9312 | 2015-11-30 Pedro Alves <palves@redhat.com> |
9313 | ||
9314 | * linux-low.c (handle_extended_wait): Assert that the LWP's | |
9315 | waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about | |
9316 | thread create events, leave the new child's status pending. | |
9317 | (linux_low_filter_event): If GDB wants to hear about thread exit | |
9318 | events, leave the LWP marked dead and don't delete it. | |
9319 | (linux_wait_for_event_filtered): Don't check for thread exit. | |
9320 | (filter_exit_event): New function. | |
9321 | (linux_wait_1): Use it, when returning an exit event. | |
9322 | (linux_resume_one_lwp_throw): Assert that the LWP's | |
9323 | waitstatus is TARGET_WAITKIND_IGNORE. | |
9324 | * remote-utils.c (prepare_resume_reply): Handle | |
9325 | TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED. | |
9326 | * server.c (report_thread_events): New global. | |
9327 | (handle_general_set): Handle QThreadEvents. | |
9328 | (handle_query) <qSupported>: Handle and report QThreadEvents+; | |
9329 | (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and | |
9330 | TARGET_WAITKIND_THREAD_EXITED. | |
9331 | * server.h (report_thread_events): Declare. | |
9332 | ||
56cf4bed PA |
9333 | 2015-11-30 Pedro Alves <palves@redhat.com> |
9334 | ||
9335 | * linux-low.c (resume_stopped_resumed_lwps): Don't check whether | |
9336 | the thread's last_resume_kind was resume_stop. | |
9337 | ||
500c1d85 PA |
9338 | 2015-11-30 Pedro Alves <palves@redhat.com> |
9339 | ||
9340 | * linux-low.c (linux_attach): In non-stop mode, wait for one stop | |
9341 | before returning. | |
9342 | ||
de979965 PA |
9343 | 2015-11-30 Pedro Alves <palves@redhat.com> |
9344 | ||
9345 | * server.c (handle_v_requests): Handle vCtrlC. | |
9346 | ||
34c65914 PA |
9347 | 2015-11-30 Pedro Alves <palves@redhat.com> |
9348 | ||
9349 | * gdbthread.h (find_any_thread_of_pid): Declare. | |
9350 | * inferiors.c (thread_of_pid, find_any_thread_of_pid): New | |
9351 | functions. | |
9352 | * server.c (handle_query): If current_thread is NULL, look for | |
9353 | another thread of the selected process. | |
9354 | ||
79efa585 | 9355 | 2015-11-26 Daniel Colascione <dancol@dancol.org> |
01a49af8 | 9356 | Simon Marchi <simon.marchi@ericsson.com> |
79efa585 SM |
9357 | |
9358 | * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name. | |
9359 | * server.c (handle_qxfer_threads_worker): Refactor to include thread | |
9360 | name in reply. | |
9361 | * target.h (struct target_ops) <thread_name>: New field. | |
9362 | (target_thread_name): New macro. | |
9363 | ||
80d82c19 JB |
9364 | 2015-11-23 Joel Brobecker <brobecker@adacore.com> |
9365 | ||
9366 | * regcache.h (regcache_invalidate_pid): Add declaration. | |
9367 | * regcache.c (regcache_invalidate_pid): New function, extracted | |
9368 | from regcache_invalidate. | |
9369 | (regcache_invalidate): Reimplement using regcache_invalidate_pid. | |
9370 | Add trivial documentation comment. | |
9371 | * lynx-low.c: Use regcache_invalidate_pid instead of | |
9372 | regcache_invalidate. | |
9373 | ||
64da5dd5 JB |
9374 | 2015-11-23 Joel Brobecker <brobecker@adacore.com> |
9375 | ||
9376 | * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t | |
9377 | and Elf64_auxv_t if the target is Android. | |
9378 | ||
37ce4055 DE |
9379 | 2015-11-22 Doug Evans <xdje42@gmail.com> |
9380 | ||
9381 | * target.h: #include <sys/types.h>. | |
9382 | ||
06e03fff PA |
9383 | 2015-11-19 Pedro Alves <palves@redhat.com> |
9384 | ||
9385 | * linux-low.c (linux_process_qsupported): Change prototype. | |
9386 | Adjust. | |
9387 | * linux-low.h (struct linux_target_ops) <process_qsupported>: | |
9388 | Change prototype. | |
9389 | * linux-x86-low.c (x86_linux_process_qsupported): Change prototype | |
9390 | and adjust to loop over all features. | |
9391 | * server.c (handle_query) <qSupported>: Adjust to call | |
9392 | target_process_qsupported once, passing it a vector of unprocessed | |
9393 | features. | |
9394 | * target.h (struct target_ops) <process_qsupported>: Change | |
9395 | prototype. | |
9396 | (target_process_qsupported): Adjust. | |
9397 | ||
9a084706 PA |
9398 | 2015-11-19 Pedro Alves <palves@redhat.com> |
9399 | ||
9400 | * configure.ac (ERROR_ON_WARNING): Don't check whether in C++ | |
9401 | mode. | |
9402 | * configure: Regenerate. | |
9403 | ||
dad44a1f PA |
9404 | 2015-11-19 Pedro Alves <palves@redhat.com> |
9405 | ||
9406 | * configure: Regenerate. | |
9407 | ||
231c0592 YQ |
9408 | 2015-11-19 Yao Qi <yao.qi@linaro.org> |
9409 | ||
9410 | * linux-aarch64-low.c (emit_data_processing_reg): Change opcode | |
9411 | type to uint32_t. | |
9412 | ||
6c1c9a8b YQ |
9413 | 2015-11-19 Yao Qi <yao.qi@linaro.org> |
9414 | ||
9415 | * linux-aarch64-low.c (enum aarch64_operand_type): New. | |
9416 | (struct aarch64_operand): Move enum out. | |
9417 | ||
9caa3311 YQ |
9418 | 2015-11-19 Yao Qi <yao.qi@linaro.org> |
9419 | ||
9420 | * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to | |
9421 | struct user_fpsimd_state *. | |
9422 | (aarch64_store_fpregset): Likewise. | |
9423 | ||
6a69a054 YQ |
9424 | 2015-11-19 Yao Qi <yao.qi@linaro.org> |
9425 | ||
9426 | * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to | |
9427 | struct user_pt_regs *. | |
9428 | (aarch64_store_gregset): Likewise. | |
9429 | ||
1798301e PA |
9430 | 2015-11-18 Pedro Alves <palves@redhat.com> |
9431 | ||
9432 | * Makefile.in (all_object_files): Add $IPA_OBJS. | |
9433 | ||
ce7715e2 PA |
9434 | 2015-11-17 Pedro Alves <palves@redhat.com> |
9435 | ||
9436 | * win32-low.c (win32_resume): Use gdb_signal_from_host, | |
9437 | GDB_SIGNAL_0 and gdb_signal_to_string. | |
9438 | ||
c0879059 PA |
9439 | 2015-11-17 Pedro Alves <palves@redhat.com> |
9440 | ||
9441 | * win32-low.c (handle_output_debug_string): Remove parameter. | |
9442 | (win32_kill): Remove our_status local and adjust call to | |
9443 | handle_output_debug_string. | |
9444 | (get_child_debug_event): Adjust call to | |
9445 | handle_output_debug_string. | |
9446 | ||
1996e237 SM |
9447 | 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca> |
9448 | ||
9449 | * linux-mips-low.c (mips_fill_gregset): Add cast. | |
9450 | (mips_store_gregset): Likewise. | |
9451 | (mips_fill_fpregset): Likewise. | |
9452 | (mips_store_fpregset): Likewise. | |
9453 | ||
cbec665b SM |
9454 | 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca> |
9455 | ||
9456 | * linux-mips-low.c (mips_add_watchpoint): Rename private to | |
9457 | priv. | |
9458 | ||
eb3e3c67 SM |
9459 | 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca> |
9460 | ||
9461 | * linux-mips-low.c (mips_linux_new_thread): Change type of | |
9462 | watch_type to enum target_hw_bp_type. | |
9463 | ||
171de4b8 SM |
9464 | 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca> |
9465 | ||
9466 | * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): | |
9467 | Change return type to arm_hwbp_type. | |
9468 | ||
04248ead SM |
9469 | 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca> |
9470 | ||
9471 | * linux-aarch32-low.c (arm_fill_gregset): Add cast. | |
9472 | (arm_store_gregset): Likewise. | |
9473 | * linux-arm-low.c (arm_get_hwcap): Likewise. | |
9474 | (arm_read_description): Likewise. | |
9475 | ||
04b3479c SM |
9476 | 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca> |
9477 | ||
9478 | * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET. | |
9479 | ||
2bc84e8a SM |
9480 | 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca> |
9481 | ||
9482 | * linux-ppc-low.c (ppc_get_hwcap): Add cast. | |
9483 | (ppc_fill_vsxregset): Likewise. | |
9484 | (ppc_store_vsxregset): Likewise. | |
9485 | (ppc_fill_vrregset): Likewise. | |
9486 | (ppc_store_vrregset): Likewise. | |
9487 | (ppc_fill_evrregset): Likewise. | |
9488 | (ppc_store_evrregset): Likewise. | |
9489 | ||
e6c5bb05 SM |
9490 | 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca> |
9491 | ||
9492 | * linux-ppc-low.c (ppc_usrregs_info): Remove | |
9493 | forward-declaration. | |
9494 | (ppc_arch_setup): Move lower in file. | |
9495 | ||
7ea45d72 SM |
9496 | 2015-10-30 Simon Marchi <simon.marchi@ericsson.com> |
9497 | ||
9498 | * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t. | |
9499 | (ps_pdwrite): Likewise. | |
9500 | ||
69291610 HW |
9501 | 2015-10-29 Henrik Wallin <henrik.wallin@windriver.com> |
9502 | ||
9503 | * linux-arm-low.c (arm_new_thread): Move pointer dereference | |
9504 | to after assert checks. | |
9505 | ||
b42945fd SM |
9506 | 2015-10-29 Simon Marchi <simon.marchi@ericsson.com> |
9507 | ||
9508 | * proc-service.c (ps_pdread): Add/adjust casts. | |
9509 | (ps_pdwrite): Add/adjust casts. | |
9510 | ||
d6f85c84 SM |
9511 | 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca> |
9512 | ||
9513 | * server.c (handle_search_memory_1): Cast return value of | |
9514 | memmem. | |
9515 | ||
f98cd059 SM |
9516 | 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca> |
9517 | ||
9518 | * server.c (write_qxfer_response): Change type of data to | |
9519 | gdb_byte *. | |
9520 | ||
d2412fa5 PA |
9521 | 2015-10-29 Pedro Alves <palves@redhat.com> |
9522 | ||
9523 | * mem-break.c (Z_packet_to_bkpt_type): Add cast. | |
9524 | ||
c17414a2 PA |
9525 | 2015-10-29 Pedro Alves <palves@redhat.com> |
9526 | ||
9527 | * tracepoint.c (clear_installed_tracepoints): Add casts. | |
9528 | ||
e053fbc4 PA |
9529 | 2015-10-29 Pedro Alves <palves@redhat.com> |
9530 | ||
9531 | * server.c (handle_v_cont, process_serial_event): Add enum | |
9532 | gdb_signal casts to signal parsing code. | |
9533 | ||
add67df8 PA |
9534 | 2015-10-29 Pedro Alves <palves@redhat.com> |
9535 | ||
9536 | * linux-low.h (NULL_REGSET): Define. | |
9537 | * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET. | |
9538 | * linux-arm-low.c (arm_regsets): Likewise. | |
9539 | * linux-crisv32-low.c (cris_regsets): Likewise. | |
9540 | * linux-m68k-low.c (m68k_regsets): Likewise. | |
9541 | * linux-mips-low.c (mips_regsets): Likewise. | |
9542 | * linux-nios2-low.c (nios2_regsets): Likewise. | |
9543 | * linux-ppc-low.c (ppc_regsets): Likewise. | |
9544 | * linux-s390-low.c (s390_regsets): Likewise. | |
9545 | * linux-sh-low.c (sh_regsets): Likewise. | |
9546 | * linux-sparc-low.c (sparc_regsets): Likewise. | |
9547 | * linux-tic6x-low.c (tic6x_regsets): Likewise. | |
9548 | * linux-tile-low.c (tile_regsets): Likewise. | |
9549 | * linux-x86-low.c (x86_regsets): Likewise. | |
9550 | * linux-xtensa-low.c (xtensa_regsets): Likewise. | |
9551 | ||
50bc912a PA |
9552 | 2015-10-29 Pedro Alves <palves@redhat.com> |
9553 | ||
9554 | * linux-low.h (NULL_REGSET): Define. | |
9555 | * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET. | |
9556 | * linux-arm-low.c (arm_regsets): Likewise. | |
9557 | * linux-crisv32-low.c (cris_regsets): Likewise. | |
9558 | * linux-m68k-low.c (m68k_regsets): Likewise. | |
9559 | * linux-mips-low.c (mips_regsets): Likewise. | |
9560 | * linux-nios2-low.c (nios2_regsets): Likewise. | |
9561 | * linux-ppc-low.c (ppc_regsets): Likewise. | |
9562 | * linux-s390-low.c (s390_regsets): Likewise. | |
9563 | * linux-sh-low.c (sh_regsets): Likewise. | |
9564 | * linux-sparc-low.c (sparc_regsets): Likewise. | |
9565 | * linux-tic6x-low.c (tic6x_regsets): Likewise. | |
9566 | * linux-tile-low.c (tile_regsets): Likewise. | |
9567 | * linux-x86-low.c (x86_regsets): Likewise. | |
9568 | * linux-xtensa-low.c (xtensa_regsets): Likewise. | |
9569 | ||
682b2546 DE |
9570 | 2015-10-26 Doug Evans <dje@google.com> |
9571 | ||
9572 | * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h. | |
9573 | ||
963843d4 DE |
9574 | 2015-10-26 Doug Evans <dje@google.com> |
9575 | ||
9576 | * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h. | |
9577 | ||
d41401ac DE |
9578 | 2015-10-26 Doug Evans <dje@google.com> |
9579 | ||
9580 | * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long | |
9581 | for debug_printf. | |
9582 | (attach_thread, find_new_threads_callback): Ditto. | |
9583 | ||
3db28855 AT |
9584 | 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com> |
9585 | ||
9586 | * mem-break.h (set_breakpoint_data): Remove. | |
9587 | ||
fb78e89c AT |
9588 | 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com> |
9589 | ||
9590 | * nto-low.c (nto_sw_breakpoint_from_kind): New function. | |
9591 | (struct target_ops) <sw_breakpoint_from_kind>: Initialize. | |
9592 | (initialize_low): Remove set_breakpoint_data call. | |
9593 | * spu-low.c (spu_sw_breakpoint_from_kind): New function. | |
9594 | (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize. | |
9595 | (initialize_low): Remove set_breakpoint_data call. | |
9596 | * win32-low.c (win32_sw_breakpoint_from_kind): New function. | |
9597 | (struct target_ops) <sw_breakpoint_from_kind>: Initialize. | |
9598 | (initialize_low): Remove set_breakpoint_data call. | |
9599 | ||
2e6ee069 AT |
9600 | 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com> |
9601 | ||
9602 | * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c. | |
9603 | * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc. | |
9604 | * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c | |
9605 | * target.h (target_breakpoint_kind_from_pc): New macro. | |
9606 | ||
1652a986 AT |
9607 | 2015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com> |
9608 | ||
9609 | * linux-low.c (default_breakpoint_kind_from_pc): New function. | |
9610 | (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for | |
9611 | the default breakpoint kind. | |
9612 | ||
abeead09 AT |
9613 | 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com> |
9614 | ||
9615 | * linux-arm-low.c (arm_supports_z_point_type): Add software | |
9616 | breakpoint support. | |
9617 | ||
b0b4b501 AT |
9618 | 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com> |
9619 | ||
9620 | * linux-arm-low.c: Refactor breakpoint definitions. | |
9621 | (arm_breakpoint_at): Adjust for arm_abi_breakpoint. | |
9622 | (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint. | |
9623 | ||
8689682c AT |
9624 | 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com> |
9625 | ||
9626 | * Makefile.in: Add arm.c/o. | |
9627 | * configure.srv: Likewise. | |
9628 | * linux-arm-low.c (arm_breakpoint_kinds): New enum. | |
9629 | (arm_breakpoint_kind_from_pc): New function. | |
9630 | (arm_sw_breakpoint_from_kind): Return proper kind. | |
9631 | (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize. | |
9632 | ||
27165294 AT |
9633 | 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com> |
9634 | ||
9635 | * linux-low.c (initialize_low): Ajdust for breakpoint global variables | |
9636 | removal. | |
9637 | * mem-break.c : Remove breakpoint_data/breakpoint_len global variables. | |
9638 | (struct raw_breakpoint) <size>: Remove. | |
9639 | (struct raw_breakpoint) <kind>: Add. | |
9640 | (bp_size): New function. | |
9641 | (bp_opcode): Likewise. | |
9642 | (find_raw_breakpoint_at): Adjust for kind. | |
9643 | (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode. | |
9644 | (remove_memory_breakpoint): Adjust for kind call bp_size. | |
9645 | (set_raw_breakpoint_at): Adjust for kind. | |
9646 | (set_breakpoint): Likewise. | |
9647 | (set_breakpoint_at): Call breakpoint_kind_from_pc. | |
9648 | (delete_raw_breakpoint): Adjust for kind. | |
9649 | (delete_breakpoint): Likewise. | |
9650 | (find_gdb_breakpoint): Likewise. | |
9651 | (set_gdb_breakpoint_1): Likewise. | |
9652 | (set_gdb_breakpoint): Likewise. | |
9653 | (delete_gdb_breakpoint_1): Likewise. | |
9654 | (delete_gdb_breakpoint): Likewise. | |
9655 | (uninsert_raw_breakpoint): Likewise. | |
9656 | (reinsert_raw_breakpoint): Likewise. | |
9657 | (set_breakpoint_data): Remove. | |
9658 | (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode. | |
9659 | (check_mem_read): Adjust for kind call bp_size. | |
9660 | (check_mem_write): Adjust for kind call bp_size,bp_opcode. | |
9661 | (clone_one_breakpoint): Adjust for kind. | |
9662 | * mem-break.h (set_gdb_breakpoint): Likewise. | |
9663 | (delete_gdb_breakpoint): Likewise. | |
9664 | * server.c (process_serial_event): Likewise. | |
9665 | ||
dd373349 AT |
9666 | 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com> |
9667 | ||
9668 | * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function. | |
9669 | (struct linux_target_ops) <breakpoint>: Remove. | |
9670 | (struct linux_target_ops) <breakpoint_len>: Remove. | |
9671 | (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field. | |
9672 | (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field. | |
9673 | * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function. | |
9674 | (arm_sw_breakpoint_from_kind): New function. | |
9675 | * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function. | |
9676 | (struct linux_target_ops) <breakpoint>: Remove. | |
9677 | (struct linux_target_ops) <breakpoint_len>: Remove. | |
9678 | (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field. | |
9679 | (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field. | |
9680 | * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function. | |
9681 | (struct linux_target_ops) <breakpoint>: Remove. | |
9682 | (struct linux_target_ops) <breakpoint_len>: Remove. | |
9683 | (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field. | |
9684 | (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field. | |
9685 | * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function. | |
9686 | (struct linux_target_ops) <breakpoint>: Remove. | |
9687 | (struct linux_target_ops) <breakpoint_len>: Remove. | |
9688 | (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field. | |
9689 | (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field. | |
9690 | * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc | |
9691 | and sw_breakpoint_from_kind to increment the pc. | |
9692 | (linux_breakpoint_kind_from_pc): New function. | |
9693 | (linux_sw_breakpoint_from_kind): New function. | |
9694 | (struct target_ops) <sw_breakpoint_from_kind>: Initialize field. | |
9695 | (initialize_low): Call breakpoint_kind_from_pc and | |
9696 | sw_breakpoint_from_kind to replace breakpoint_data/len. | |
9697 | * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>: | |
9698 | New field. | |
9699 | (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise. | |
9700 | * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function. | |
9701 | (struct linux_target_ops) <breakpoint>: Remove. | |
9702 | (struct linux_target_ops) <breakpoint_len>: Remove. | |
9703 | (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field. | |
9704 | (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field. | |
9705 | * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function. | |
9706 | (struct linux_target_ops) <breakpoint>: Remove. | |
9707 | (struct linux_target_ops) <breakpoint_len>: Remove. | |
9708 | (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field. | |
9709 | (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field. | |
9710 | * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function. | |
9711 | (struct linux_target_ops) <breakpoint>: Remove. | |
9712 | (struct linux_target_ops) <breakpoint_len>: Remove. | |
9713 | (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field. | |
9714 | (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field. | |
9715 | * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function. | |
9716 | (struct linux_target_ops) <breakpoint>: Remove. | |
9717 | (struct linux_target_ops) <breakpoint_len>: Remove. | |
9718 | (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field. | |
9719 | (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field. | |
9720 | * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function. | |
9721 | (struct linux_target_ops) <breakpoint>: Remove. | |
9722 | (struct linux_target_ops) <breakpoint_len>: Remove. | |
9723 | (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field. | |
9724 | (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field. | |
9725 | * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function. | |
9726 | (struct linux_target_ops) <breakpoint>: Remove. | |
9727 | (struct linux_target_ops) <breakpoint_len>: Remove. | |
9728 | (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field. | |
9729 | (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field. | |
9730 | * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function. | |
9731 | (struct linux_target_ops) <breakpoint>: Remove. | |
9732 | (struct linux_target_ops) <breakpoint_len>: Remove. | |
9733 | (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field. | |
9734 | (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field. | |
9735 | * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function. | |
9736 | (struct linux_target_ops) <breakpoint>: Remove. | |
9737 | (struct linux_target_ops) <breakpoint_len>: Remove. | |
9738 | (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field. | |
9739 | (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field. | |
9740 | * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function. | |
9741 | (struct linux_target_ops) <breakpoint>: Remove. | |
9742 | (struct linux_target_ops) <breakpoint_len>: Remove. | |
9743 | (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field. | |
9744 | (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field. | |
9745 | * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function. | |
9746 | * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function. | |
9747 | (struct linux_target_ops) <breakpoint>: Remove. | |
9748 | (struct linux_target_ops) <breakpoint_len>: Remove. | |
9749 | (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field. | |
9750 | (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field. | |
9751 | * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function. | |
9752 | (struct linux_target_ops) <breakpoint>: Remove. | |
9753 | (struct linux_target_ops) <breakpoint_len>: Remove. | |
9754 | (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field. | |
9755 | (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field. | |
9756 | ||
4cd98a19 AT |
9757 | 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com> |
9758 | ||
9759 | * linux-cris-low.c (cris_get_pc): Remove void arg. | |
9760 | ||
774ee6d2 AR |
9761 | 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com> |
9762 | ||
9763 | * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix | |
9764 | variable name. | |
9765 | ||
833dcd29 AR |
9766 | 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com> |
9767 | ||
9768 | * inferiors.c (thread_pid_matches_callback): New function. | |
9769 | (find_thread_process): New function. | |
9770 | (remove_thread): Reset current_thread. | |
9771 | (remove_process): Assert threads have been removed first. | |
9772 | ||
8d689ee5 YQ |
9773 | 2015-10-15 Yao Qi <yao.qi@linaro.org> |
9774 | ||
9775 | * linux-aarch64-low.c (aarch64_insert_point): Set len to 2 | |
9776 | if it is 3. | |
9777 | (aarch64_remove_point): Likewise. | |
9778 | * regcache.c (regcache_register_size): New function. | |
9779 | ||
1c2e1515 YQ |
9780 | 2015-10-12 Yao Qi <yao.qi@linaro.org> |
9781 | ||
9782 | * linux-aarch64-low.c: Update all callers as emit_load_store | |
9783 | is renamed to aarch64_emit_load_store. | |
9784 | ||
e1c587c3 YQ |
9785 | 2015-10-12 Yao Qi <yao.qi@linaro.org> |
9786 | ||
9787 | * linux-aarch64-low.c: Update all callers of function renaming | |
9788 | from emit_insn to aarch64_emit_insn. | |
9789 | ||
b6542f81 YQ |
9790 | 2015-10-12 Yao Qi <yao.qi@linaro.org> |
9791 | ||
9792 | * linux-aarch64-low.c (enum aarch64_opcodes): Move to | |
9793 | arch/aarch64-insn.h. | |
9794 | (struct aarch64_memory_operand): Likewise. | |
9795 | (ENCODE): Likewise. | |
9796 | (emit_insn): Move to arch/aarch64-insn.c. | |
9797 | (emit_b, emit_bcond, emit_cb, emit_tb): Remove. | |
9798 | (emit_load_store): Move to arch/aarch64-insn.c. | |
9799 | (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove. | |
9800 | (can_encode_int32): Remove. | |
9801 | ||
246994ce YQ |
9802 | 2015-10-12 Yao Qi <yao.qi@linaro.org> |
9803 | ||
9804 | * linux-aarch64-low.c (extract_signed_bitfield): Remove. | |
9805 | (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c. | |
9806 | (aarch64_relocate_instruction): Likewise. | |
9807 | (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h. | |
9808 | (struct aarch64_insn_visitor): Likewise. | |
9809 | ||
0badd99f YQ |
9810 | 2015-10-12 Yao Qi <yao.qi@linaro.org> |
9811 | ||
9812 | * linux-aarch64-low.c (struct aarch64_insn_data): New. | |
9813 | (struct aarch64_insn_visitor): New. | |
9814 | (struct aarch64_insn_relocation_data): New. | |
9815 | (aarch64_ftrace_insn_reloc_b): New function. | |
9816 | (aarch64_ftrace_insn_reloc_b_cond): Likewise. | |
9817 | (aarch64_ftrace_insn_reloc_cb): Likewise. | |
9818 | (aarch64_ftrace_insn_reloc_tb): Likewise. | |
9819 | (aarch64_ftrace_insn_reloc_adr): Likewise. | |
9820 | (aarch64_ftrace_insn_reloc_ldr_literal): Likewise. | |
9821 | (aarch64_ftrace_insn_reloc_others): Likewise. | |
9822 | (visitor): New. | |
9823 | (aarch64_relocate_instruction): Use visitor. | |
9824 | ||
dfaffe9d YQ |
9825 | 2015-10-12 Yao Qi <yao.qi@linaro.org> |
9826 | ||
9827 | * linux-aarch64-low.c (aarch64_relocate_instruction): Return | |
9828 | int. Add argument buf. | |
9829 | (aarch64_install_fast_tracepoint_jump_pad): Pass buf to | |
9830 | aarch64_relocate_instruction. | |
9831 | ||
70b439f0 YQ |
9832 | 2015-10-12 Yao Qi <yao.qi@linaro.org> |
9833 | ||
9834 | * linux-aarch64-low.c (aarch64_relocate_instruction): Add | |
9835 | argument insn. Remove local variable insn. Don't call | |
9836 | target_read_uint32. | |
9837 | (aarch64_install_fast_tracepoint_jump_pad): Call | |
9838 | target_read_uint32. | |
9839 | ||
7781c06f YQ |
9840 | 2015-09-30 Yao Qi <yao.qi@linaro.org> |
9841 | ||
9842 | * linux-aarch64-low.c (emit_movk): Shorten a long line. | |
9843 | (emit_load_store_pair): Likewise. | |
9844 | ||
9a3c8263 SM |
9845 | 2015-09-25 Simon Marchi <simon.marchi@ericsson.com> |
9846 | ||
9847 | * dll.c (match_dll): Add cast(s). | |
9848 | (unloaded_dll): Likewise. | |
9849 | * linux-low.c (second_thread_of_pid_p): Likewise. | |
9850 | (delete_lwp_callback): Likewise. | |
9851 | (count_events_callback): Likewise. | |
9852 | (select_event_lwp_callback): Likewise. | |
9853 | (linux_set_resume_request): Likewise. | |
9854 | * server.c (accumulate_file_name_length): Likewise. | |
9855 | (emit_dll_description): Likewise. | |
9856 | (handle_qxfer_threads_worker): Likewise. | |
9857 | (visit_actioned_threads): Likewise. | |
9858 | * thread-db.c (any_thread_of): Likewise. | |
9859 | * tracepoint.c (same_process_p): Likewise. | |
9860 | (match_blocktype): Likewise. | |
9861 | (build_traceframe_info_xml): Likewise. | |
9862 | ||
224c3ddb SM |
9863 | 2015-09-25 Simon Marchi <simon.marchi@ericsson.com> |
9864 | ||
9865 | * ax.c (gdb_parse_agent_expr): Add cast to allocation result | |
9866 | assignment. | |
9867 | (gdb_unparse_agent_expr): Likewise. | |
9868 | * hostio.c (require_data): Likewise. | |
9869 | (handle_pread): Likewise. | |
9870 | * linux-low.c (disable_regset): Likewise. | |
9871 | (fetch_register): Likewise. | |
9872 | (store_register): Likewise. | |
9873 | (get_dynamic): Likewise. | |
9874 | (linux_qxfer_libraries_svr4): Likewise. | |
9875 | * mem-break.c (delete_fast_tracepoint_jump): Likewise. | |
9876 | (set_fast_tracepoint_jump): Likewise. | |
9877 | (uninsert_fast_tracepoint_jumps_at): Likewise. | |
9878 | (reinsert_fast_tracepoint_jumps_at): Likewise. | |
9879 | (validate_inserted_breakpoint): Likewise. | |
9880 | (clone_agent_expr): Likewise. | |
9881 | * regcache.c (init_register_cache): Likewise. | |
9882 | * remote-utils.c (putpkt_binary_1): Likewise. | |
9883 | (decode_M_packet): Likewise. | |
9884 | (decode_X_packet): Likewise. | |
9885 | (look_up_one_symbol): Likewise. | |
9886 | (relocate_instruction): Likewise. | |
9887 | (monitor_output): Likewise. | |
9888 | * server.c (handle_search_memory): Likewise. | |
9889 | (handle_qxfer_exec_file): Likewise. | |
9890 | (handle_qxfer_libraries): Likewise. | |
9891 | (handle_qxfer): Likewise. | |
9892 | (handle_query): Likewise. | |
9893 | (handle_v_cont): Likewise. | |
9894 | (handle_v_run): Likewise. | |
9895 | (captured_main): Likewise. | |
9896 | * target.c (write_inferior_memory): Likewise. | |
9897 | * thread-db.c (try_thread_db_load_from_dir): Likewise. | |
9898 | * tracepoint.c (init_trace_buffer): Likewise. | |
9899 | (add_tracepoint_action): Likewise. | |
9900 | (add_traceframe): Likewise. | |
9901 | (add_traceframe_block): Likewise. | |
9902 | (cmd_qtdpsrc): Likewise. | |
9903 | (cmd_qtdv): Likewise. | |
9904 | (cmd_qtstatus): Likewise. | |
9905 | (response_source): Likewise. | |
9906 | (response_tsv): Likewise. | |
9907 | (cmd_qtnotes): Likewise. | |
9908 | (gdb_collect): Likewise. | |
9909 | (initialize_tracepoint): Likewise. | |
9910 | ||
afbe19f8 PL |
9911 | 2015-09-21 Pierre Langlois <pierre.langlois@arm.com> |
9912 | ||
9913 | * linux-aarch64-low-.c: Include ax.h and tracepoint.h. | |
9914 | (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>, | |
9915 | <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>, | |
9916 | <NOP>: New. | |
9917 | (enum aarch64_condition_codes): New enum. | |
9918 | (w0): New static global. | |
9919 | (fp): Likewise. | |
9920 | (lr): Likewise. | |
9921 | (struct aarch64_memory_operand) <type>: New | |
9922 | MEMORY_OPERAND_POSTINDEX type. | |
9923 | (postindex_memory_operand): New helper function. | |
9924 | (emit_ret): New function. | |
9925 | (emit_load_store_pair): New function, factored out of emit_stp | |
9926 | with support for MEMORY_OPERAND_POSTINDEX. | |
9927 | (emit_stp): Rewrite using emit_load_store_pair. | |
9928 | (emit_ldp): New function. | |
9929 | (emit_load_store): Likewise. | |
9930 | (emit_ldr): Mention post-index instruction in comment. | |
9931 | (emit_ldrh): New function. | |
9932 | (emit_ldrb): New function. | |
9933 | (emit_ldrsw): Mention post-index instruction in comment. | |
9934 | (emit_str): Likewise. | |
9935 | (emit_subs): New function. | |
9936 | (emit_cmp): Likewise. | |
9937 | (emit_and): Likewise. | |
9938 | (emit_orr): Likewise. | |
9939 | (emit_orn): Likewise. | |
9940 | (emit_eor): Likewise. | |
9941 | (emit_mvn): Likewise. | |
9942 | (emit_lslv): Likewise. | |
9943 | (emit_lsrv): Likewise. | |
9944 | (emit_asrv): Likewise. | |
9945 | (emit_mul): Likewise. | |
9946 | (emit_sbfm): Likewise. | |
9947 | (emit_sbfx): Likewise. | |
9948 | (emit_ubfm): Likewise. | |
9949 | (emit_ubfx): Likewise. | |
9950 | (emit_csinc): Likewise. | |
9951 | (emit_cset): Likewise. | |
9952 | (emit_nop): Likewise. | |
9953 | (emit_ops_insns): New helper function. | |
9954 | (emit_pop): Likewise. | |
9955 | (emit_push): Likewise. | |
9956 | (aarch64_emit_prologue): New function. | |
9957 | (aarch64_emit_epilogue): Likewise. | |
9958 | (aarch64_emit_add): Likewise. | |
9959 | (aarch64_emit_sub): Likewise. | |
9960 | (aarch64_emit_mul): Likewise. | |
9961 | (aarch64_emit_lsh): Likewise. | |
9962 | (aarch64_emit_rsh_signed): Likewise. | |
9963 | (aarch64_emit_rsh_unsigned): Likewise. | |
9964 | (aarch64_emit_ext): Likewise. | |
9965 | (aarch64_emit_log_not): Likewise. | |
9966 | (aarch64_emit_bit_and): Likewise. | |
9967 | (aarch64_emit_bit_or): Likewise. | |
9968 | (aarch64_emit_bit_xor): Likewise. | |
9969 | (aarch64_emit_bit_not): Likewise. | |
9970 | (aarch64_emit_equal): Likewise. | |
9971 | (aarch64_emit_less_signed): Likewise. | |
9972 | (aarch64_emit_less_unsigned): Likewise. | |
9973 | (aarch64_emit_ref): Likewise. | |
9974 | (aarch64_emit_if_goto): Likewise. | |
9975 | (aarch64_emit_goto): Likewise. | |
9976 | (aarch64_write_goto_address): Likewise. | |
9977 | (aarch64_emit_const): Likewise. | |
9978 | (aarch64_emit_call): Likewise. | |
9979 | (aarch64_emit_reg): Likewise. | |
9980 | (aarch64_emit_pop): Likewise. | |
9981 | (aarch64_emit_stack_flush): Likewise. | |
9982 | (aarch64_emit_zero_ext): Likewise. | |
9983 | (aarch64_emit_swap): Likewise. | |
9984 | (aarch64_emit_stack_adjust): Likewise. | |
9985 | (aarch64_emit_int_call_1): Likewise. | |
9986 | (aarch64_emit_void_call_2): Likewise. | |
9987 | (aarch64_emit_eq_goto): Likewise. | |
9988 | (aarch64_emit_ne_goto): Likewise. | |
9989 | (aarch64_emit_lt_goto): Likewise. | |
9990 | (aarch64_emit_le_goto): Likewise. | |
9991 | (aarch64_emit_gt_goto): Likewise. | |
9992 | (aarch64_emit_ge_got): Likewise. | |
9993 | (aarch64_emit_ops_impl): New static global variable. | |
9994 | (aarch64_emit_ops): New target function, return | |
9995 | &aarch64_emit_ops_impl. | |
9996 | (struct linux_target_ops): Install it. | |
9997 | ||
bb903df0 PL |
9998 | 2015-09-21 Pierre Langlois <pierre.langlois@arm.com> |
9999 | ||
10000 | * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules. | |
10001 | * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and | |
10002 | aarch64-ipa.o. | |
10003 | * linux-aarch64-ipa.c: New file. | |
10004 | * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h | |
10005 | and endian.h. | |
10006 | (aarch64_get_thread_area): New target method. | |
10007 | (extract_signed_bitfield): New helper function. | |
10008 | (aarch64_decode_ldr_literal): New function. | |
10009 | (enum aarch64_opcodes): New enum. | |
10010 | (struct aarch64_register): New struct. | |
10011 | (struct aarch64_operand): New struct. | |
10012 | (x0): New static global. | |
10013 | (x1): Likewise. | |
10014 | (x2): Likewise. | |
10015 | (x3): Likewise. | |
10016 | (x4): Likewise. | |
10017 | (w2): Likewise. | |
10018 | (ip0): Likewise. | |
10019 | (sp): Likewise. | |
10020 | (xzr): Likewise. | |
10021 | (aarch64_register): New helper function. | |
10022 | (register_operand): Likewise. | |
10023 | (immediate_operand): Likewise. | |
10024 | (struct aarch64_memory_operand): New struct. | |
10025 | (offset_memory_operand): New helper function. | |
10026 | (preindex_memory_operand): Likewise. | |
10027 | (enum aarch64_system_control_registers): New enum. | |
10028 | (ENCODE): New macro. | |
10029 | (emit_insn): New helper function. | |
10030 | (emit_b): New function. | |
10031 | (emit_bcond): Likewise. | |
10032 | (emit_cb): Likewise. | |
10033 | (emit_tb): Likewise. | |
10034 | (emit_blr): Likewise. | |
10035 | (emit_stp): Likewise. | |
10036 | (emit_ldp_q_offset): Likewise. | |
10037 | (emit_stp_q_offset): Likewise. | |
10038 | (emit_load_store): Likewise. | |
10039 | (emit_ldr): Likewise. | |
10040 | (emit_ldrsw): Likewise. | |
10041 | (emit_str): Likewise. | |
10042 | (emit_ldaxr): Likewise. | |
10043 | (emit_stxr): Likewise. | |
10044 | (emit_stlr): Likewise. | |
10045 | (emit_data_processing_reg): Likewise. | |
10046 | (emit_data_processing): Likewise. | |
10047 | (emit_add): Likewise. | |
10048 | (emit_sub): Likewise. | |
10049 | (emit_mov): Likewise. | |
10050 | (emit_movk): Likewise. | |
10051 | (emit_mov_addr): Likewise. | |
10052 | (emit_mrs): Likewise. | |
10053 | (emit_msr): Likewise. | |
10054 | (emit_sevl): Likewise. | |
10055 | (emit_wfe): Likewise. | |
10056 | (append_insns): Likewise. | |
10057 | (can_encode_int32_in): New helper function. | |
10058 | (aarch64_relocate_instruction): New function. | |
10059 | (aarch64_install_fast_tracepoint_jump_pad): Likewise. | |
10060 | (aarch64_get_min_fast_tracepoint_insn_len): Likewise. | |
10061 | (struct linux_target_ops): Install aarch64_get_thread_area, | |
10062 | aarch64_install_fast_tracepoint_jump_pad and | |
10063 | aarch64_get_min_fast_tracepoint_insn_len. | |
10064 | ||
787749ea PL |
10065 | 2015-09-21 Pierre Langlois <pierre.langlois@arm.com> |
10066 | ||
10067 | * Makefile.in (aarch64-insn.o): New rule. | |
10068 | * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o. | |
10069 | ||
9812b2e6 YQ |
10070 | 2015-09-21 Yao Qi <yao.qi@linaro.org> |
10071 | ||
10072 | * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it. | |
10073 | ||
18fe412b YQ |
10074 | 2015-09-21 Yao Qi <yao.qi@linaro.org> |
10075 | ||
10076 | * tracepoint.c (max_jump_pad_size): Remove. | |
10077 | ||
a0cc84cd YQ |
10078 | 2015-09-18 Yao Qi <yao.qi@linaro.org> |
10079 | ||
10080 | * linux-aarch64-low.c: Don't include sys/uio.h. | |
10081 | (ps_get_thread_area): Call aarch64_ps_get_thread_area. | |
10082 | ||
d78908cf WW |
10083 | 2015-09-16 Wei-cheng Wang <cole945@gmail.com> |
10084 | ||
10085 | * tracepoint.c (eval_result_type): Change prototype. | |
10086 | (condition_true_at_tracepoint): Fix argument to compiled_cond. | |
10087 | ||
d57e0d50 PA |
10088 | 2015-09-15 Pedro Alves <palves@redhat.com> |
10089 | ||
10090 | * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>: | |
10091 | Check whether to report exec events instead of checking whether | |
10092 | multiprocess is enabled. | |
10093 | ||
5a676acc PA |
10094 | 2015-09-15 Pedro Alves <palves@redhat.com> |
10095 | ||
10096 | PR remote/18965 | |
10097 | * remote-utils.c (prepare_resume_reply): Merge | |
10098 | TARGET_WAITKIND_VFORK_DONE switch case with the | |
10099 | TARGET_WAITKIND_FORKED case. | |
10100 | ||
7c5d0fad YQ |
10101 | 2015-09-15 Yao Qi <yao.qi@linaro.org> |
10102 | ||
10103 | * server.c (handle_query): Check string comparison using | |
10104 | "else if" instead of "if". | |
10105 | ||
750ce8d1 YQ |
10106 | 2015-09-15 Yao Qi <yao.qi@linaro.org> |
10107 | ||
10108 | * server.c (vCont_supported): New global variable. | |
10109 | (handle_query): Set vCont_supported to 1 if "vContSupported+" | |
10110 | matches. Append ";vContSupported+" to own_buf. | |
10111 | (handle_v_requests): Append ";s;S" to own_buf if target supports | |
10112 | hardware single step or vCont_supported is false. | |
10113 | (capture_main): Set vCont_supported to zero. | |
10114 | ||
70b90b91 YQ |
10115 | 2015-09-15 Yao Qi <yao.qi@linaro.org> |
10116 | ||
10117 | * linux-low.c (linux_supports_conditional_breakpoints): Rename | |
10118 | it to ... | |
10119 | (linux_supports_hardware_single_step): ... New function. | |
10120 | (linux_target_ops): Update. | |
10121 | * lynx-low.c (lynx_target_ops): Set field | |
10122 | supports_hardware_single_step to target_can_do_hardware_single_step. | |
10123 | * nto-low.c (nto_target_ops): Likewise. | |
10124 | * spu-low.c (spu_target_ops): Likewise. | |
10125 | * win32-low.c (win32_target_ops): Likewise. | |
10126 | * target.c (target_can_do_hardware_single_step): New function. | |
10127 | * target.h (struct target_ops) <supports_conditional_breakpoints>: | |
10128 | Remove. <supports_hardware_single_step>: New field. | |
10129 | (target_supports_conditional_breakpoints): Remove. | |
10130 | (target_supports_hardware_single_step): New macro. | |
10131 | (target_can_do_hardware_single_step): Declare. | |
10132 | * server.c (handle_query): Use target_supports_hardware_single_step | |
10133 | instead of target_supports_conditional_breakpoints. | |
10134 | ||
ade90bde YQ |
10135 | 2015-09-15 Yao Qi <yao.qi@linaro.org> |
10136 | ||
10137 | * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New | |
10138 | function. | |
10139 | (struct linux_target_ops the_low_target): Install | |
10140 | aarch64_linux_siginfo_fixup. | |
10141 | ||
94585166 DB |
10142 | 2015-09-11 Don Breazeal <donb@codesourcery.com> |
10143 | Luis Machado <lgustavo@codesourcery.com> | |
10144 | ||
10145 | * linux-low.c (linux_mourn): Static declaration. | |
10146 | (linux_arch_setup): Move in front of | |
10147 | handle_extended_wait. | |
10148 | (linux_arch_setup_thread): New function. | |
10149 | (handle_extended_wait): Handle exec events. Call | |
10150 | linux_arch_setup_thread. Make event_lwp argument a | |
10151 | pointer-to-a-pointer. | |
10152 | (check_zombie_leaders): Do not check stopped threads. | |
10153 | (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC. | |
10154 | (linux_low_filter_event): Add lwp and thread for exec'ing | |
10155 | non-leader thread if leader thread has been deleted. | |
10156 | Refactor code into linux_arch_setup_thread and call it. | |
10157 | Pass child lwp pointer by reference to handle_extended_wait. | |
10158 | (linux_wait_for_event_filtered): Update comment. | |
10159 | (linux_wait_1): Prevent clobbering exec event status. | |
10160 | (linux_supports_exec_events): New function. | |
10161 | (linux_target_ops) <supports_exec_events>: Initialize new member. | |
10162 | * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize | |
10163 | new member. | |
10164 | * remote-utils.c (prepare_resume_reply): New stop reason 'exec'. | |
10165 | * server.c (report_exec_events): New global variable. | |
10166 | (handle_query): Handle qSupported query for exec-events feature. | |
10167 | (captured_main): Initialize report_exec_events. | |
10168 | * server.h (report_exec_events): Declare new global variable. | |
10169 | * target.h (struct target_ops) <supports_exec_events>: New | |
10170 | member. | |
10171 | (target_supports_exec_events): New macro. | |
10172 | * win32-low.c (win32_target_ops) <supports_exec_events>: | |
10173 | Initialize new member. | |
10174 | ||
0568462b MM |
10175 | 2015-09-09 Markus Metzger <markus.t.metzger@intel.com> |
10176 | ||
10177 | * linux-low.c (linux_low_enable_btrace): Remove. | |
10178 | (linux_target_ops): Replace linux_low_enable_btrace with | |
10179 | linux_enable_btrace. | |
10180 | ||
39edd165 YQ |
10181 | 2015-09-03 Yao Qi <yao.qi@linaro.org> |
10182 | ||
10183 | * linux-aarch64-low.c (aarch64_insert_point): Call | |
10184 | aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint | |
10185 | returns true. | |
10186 | ||
1db33b5a UW |
10187 | 2015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com> |
10188 | ||
10189 | * linux-low.c (check_stopped_by_breakpoint): Use | |
10190 | GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT. | |
10191 | ||
ab290430 PA |
10192 | 2015-08-27 Pedro Alves <palves@redhat.com> |
10193 | ||
10194 | * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily. | |
10195 | ||
8d749320 SM |
10196 | 2015-08-26 Simon Marchi <simon.marchi@ericsson.com> |
10197 | ||
6711b7f8 SM |
10198 | * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with |
10199 | the XNEW-family equivalent. | |
8d749320 SM |
10200 | (compile_bytecodes): Likewise. |
10201 | * dll.c (loaded_dll): Likewise. | |
10202 | * event-loop.c (append_callback_event): Likewise. | |
10203 | (create_file_handler): Likewise. | |
10204 | (create_file_event): Likewise. | |
10205 | * hostio.c (handle_open): Likewise. | |
10206 | * inferiors.c (add_thread): Likewise. | |
10207 | (add_process): Likewise. | |
10208 | * linux-aarch64-low.c (aarch64_linux_new_process): Likewise. | |
10209 | * linux-arm-low.c (arm_new_process): Likewise. | |
10210 | (arm_new_thread): Likewise. | |
10211 | * linux-low.c (add_to_pid_list): Likewise. | |
10212 | (linux_add_process): Likewise. | |
10213 | (handle_extended_wait): Likewise. | |
10214 | (add_lwp): Likewise. | |
10215 | (enqueue_one_deferred_signal): Likewise. | |
10216 | (enqueue_pending_signal): Likewise. | |
10217 | (linux_resume_one_lwp_throw): Likewise. | |
10218 | (linux_resume_one_thread): Likewise. | |
10219 | (linux_read_memory): Likewise. | |
10220 | (linux_write_memory): Likewise. | |
10221 | * linux-mips-low.c (mips_linux_new_process): Likewise. | |
10222 | (mips_linux_new_thread): Likewise. | |
10223 | (mips_add_watchpoint): Likewise. | |
10224 | * linux-x86-low.c (initialize_low_arch): Likewise. | |
10225 | * lynx-low.c (lynx_add_process): Likewise. | |
10226 | * mem-break.c (set_raw_breakpoint_at): Likewise. | |
10227 | (set_breakpoint): Likewise. | |
10228 | (add_condition_to_breakpoint): Likewise. | |
10229 | (add_commands_to_breakpoint): Likewise. | |
10230 | (clone_agent_expr): Likewise. | |
10231 | (clone_one_breakpoint): Likewise. | |
10232 | * regcache.c (new_register_cache): Likewise. | |
10233 | * remote-utils.c (look_up_one_symbol): Likewise. | |
10234 | * server.c (queue_stop_reply): Likewise. | |
10235 | (start_inferior): Likewise. | |
10236 | (queue_stop_reply_callback): Likewise. | |
10237 | (handle_target_event): Likewise. | |
10238 | * spu-low.c (fetch_ppc_memory): Likewise. | |
10239 | (store_ppc_memory): Likewise. | |
10240 | * target.c (set_target_ops): Likewise. | |
10241 | * thread-db.c (thread_db_load_search): Likewise. | |
10242 | (try_thread_db_load_1): Likewise. | |
10243 | * tracepoint.c (add_tracepoint): Likewise. | |
10244 | (add_tracepoint_action): Likewise. | |
10245 | (create_trace_state_variable): Likewise. | |
10246 | (cmd_qtdpsrc): Likewise. | |
10247 | (cmd_qtro): Likewise. | |
10248 | (add_while_stepping_state): Likewise. | |
10249 | * win32-low.c (child_add_thread): Likewise. | |
10250 | (get_image_name): Likewise. | |
10251 | ||
ed8b7b42 YQ |
10252 | 2015-08-25 Yao Qi <yao.qi@linaro.org> |
10253 | ||
10254 | * linux-aarch64-low.c (aarch64_linux_new_thread): Remove. | |
10255 | ||
db3cb7cb YQ |
10256 | 2015-08-25 Yao Qi <yao.qi@linaro.org> |
10257 | ||
10258 | * Makefile.in (aarch64-linux.o): New rule. | |
10259 | * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to | |
10260 | srv_tgtobj. | |
10261 | * linux-aarch64-low.c: Include nat/aarch64-linux.h. | |
10262 | (aarch64_init_debug_reg_state): Make it extern. | |
10263 | (aarch64_linux_prepare_to_resume): Remove. | |
10264 | ||
f6011a1c YQ |
10265 | 2015-08-25 Yao Qi <yao.qi@linaro.org> |
10266 | ||
10267 | * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use | |
10268 | lwp_arch_private_info and ptid_of_lwp. | |
10269 | ||
88e2cf7e YQ |
10270 | 2015-08-25 Yao Qi <yao.qi@linaro.org> |
10271 | ||
10272 | * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid. | |
10273 | Find proc_info by find_process_pid. All callers updated. | |
10274 | ||
5e35436e YQ |
10275 | 2015-08-25 Yao Qi <yao.qi@linaro.org> |
10276 | ||
10277 | * linux-aarch64-low.c (struct arch64_dr_update_callback_param): | |
10278 | Remove. | |
10279 | (debug_reg_change_callback): Remove. | |
10280 | (aarch64_notify_debug_reg_change): Remove. | |
10281 | ||
4a8a7965 YQ |
10282 | 2015-08-25 Yao Qi <yao.qi@linaro.org> |
10283 | ||
10284 | * linux-aarch64-low.c (aarch64_notify_debug_reg_change): | |
10285 | Call current_lwp_ptid. | |
10286 | ||
32a271ee YQ |
10287 | 2015-08-25 Yao Qi <yao.qi@linaro.org> |
10288 | ||
10289 | * linux-aarch64-low.c (debug_reg_change_callback): Use | |
10290 | debug_printf. | |
10291 | ||
0d51c8d7 YQ |
10292 | 2015-08-25 Yao Qi <yao.qi@linaro.org> |
10293 | ||
10294 | * linux-aarch64-low.c (debug_reg_change_callback): Use phex. | |
10295 | ||
31a43dd5 YQ |
10296 | 2015-08-25 Yao Qi <yao.qi@linaro.org> |
10297 | ||
10298 | * linux-aarch64-low.c (debug_reg_change_callback): Remove comments. | |
10299 | ||
8ee52567 YQ |
10300 | 2015-08-25 Yao Qi <yao.qi@linaro.org> |
10301 | ||
10302 | * linux-aarch64-low.c (debug_reg_change_callback): Re-indent | |
10303 | the code. | |
10304 | ||
ff3f0f45 YQ |
10305 | 2015-08-25 Yao Qi <yao.qi@linaro.org> |
10306 | ||
10307 | * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>: | |
10308 | Remove. | |
10309 | (debug_reg_change_callback): Remove argument entry and add argument | |
10310 | lwp. Remove local variable thread. Don't print thread id in the | |
10311 | debugging output. Don't check whether pid of thread equals to pid. | |
10312 | (aarch64_notify_debug_reg_change): Don't set param.pid. Call | |
10313 | iterate_over_lwps instead find_inferior. | |
10314 | ||
3d40fbb5 PA |
10315 | 2015-08-24 Pedro Alves <palves@redhat.com> |
10316 | ||
10317 | * inferiors.c (get_first_process): New function. | |
10318 | * inferiors.h (get_first_process): New declaration. | |
10319 | * remote-utils.c (read_ptid): Default to the first process in the | |
10320 | list, instead of to the current thread's process. | |
10321 | ||
438e1e42 PA |
10322 | 2015-08-24 Pedro Alves <palves@redhat.com> |
10323 | ||
10324 | * debug.c: Include gdb_sys_time.h instead of sys/time.h. | |
10325 | * event-loop.c: Likewise. | |
10326 | * remote-utils.c: Likewise. | |
10327 | * tracepoint.c: Likewise. | |
10328 | ||
a8c6d4fc PA |
10329 | 2015-08-24 Pedro Alves <palves@redhat.com> |
10330 | ||
10331 | * spu-low.c (spu_request_interrupt): Use lwpid_of instead of | |
10332 | ptid_get_lwp. | |
10333 | ||
99b0bb12 PA |
10334 | 2015-08-21 Pedro Alves <palves@redhat.com> |
10335 | ||
10336 | * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode | |
10337 | instead of literal 1. | |
10338 | ||
f8904751 PA |
10339 | 2015-08-21 Pedro Alves <palves@redhat.com> |
10340 | ||
10341 | * tdesc.c (default_description): Explicitly zero-initialize. | |
10342 | ||
465a859e PA |
10343 | 2015-08-21 Pedro Alves <palves@redhat.com> |
10344 | ||
10345 | PR gdb/18749 | |
10346 | * inferiors.c (remove_thread): Discard any pending stop reply for | |
10347 | this thread. | |
10348 | * server.c (remove_all_on_match_pid): Rename to ... | |
10349 | (remove_all_on_match_ptid): ... this. Work with a filter ptid | |
10350 | instead of a pid. | |
10351 | (discard_queued_stop_replies): Change parameter to a ptid. Now | |
10352 | extern. | |
10353 | (handle_v_kill, kill_inferior_callback, captured_main) | |
10354 | (process_serial_event): Adjust. | |
10355 | * server.h (discard_queued_stop_replies): Declare. | |
10356 | ||
f0db101d PA |
10357 | 2015-08-21 Pedro Alves <palves@redhat.com> |
10358 | ||
10359 | * linux-low.c (wait_for_sigstop): Always switch to no thread | |
10360 | selected if the previously current thread dies. | |
10361 | * lynx-low.c (lynx_request_interrupt): Use the first thread's | |
10362 | process instead of the current thread's. | |
10363 | * remote-utils.c (input_interrupt): Don't check if there's no | |
10364 | current thread. | |
10365 | * server.c (gdb_read_memory, gdb_write_memory): If setting the | |
10366 | current thread to the general thread fails, error out. | |
10367 | (handle_qxfer_auxv, handle_qxfer_libraries) | |
10368 | (handle_qxfer_libraries_svr4, handle_qxfer_siginfo) | |
10369 | (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic) | |
10370 | (handle_query): Check if there's a thread selected instead of | |
10371 | checking whether there's any thread in the thread list. | |
10372 | (handle_qxfer_threads, handle_qxfer_btrace) | |
10373 | (handle_qxfer_btrace_conf): Don't error out early if there's no | |
10374 | thread in the thread list. | |
10375 | (handle_v_cont, myresume): Don't set the current thread to the | |
10376 | continue thread. | |
10377 | (process_serial_event) <Hg handling>: Also set thread_id if the | |
10378 | previous general thread is still alive. | |
10379 | (process_serial_event) <g/G handling>: If setting the current | |
10380 | thread to the general thread fails, error out. | |
10381 | * spu-low.c (spu_resume, spu_request_interrupt): Use the first | |
10382 | thread's lwp instead of the current thread's. | |
10383 | * target.c (set_desired_thread): If the desired thread was not | |
10384 | found, leave the current thread pointing to NULL. Return an int | |
10385 | (boolean) indicating success. | |
10386 | * target.h (set_desired_thread): Change return type to int. | |
10387 | ||
40045d91 MF |
10388 | 2015-08-20 Max Filippov <jcmvbkbc@gmail.com> |
10389 | ||
10390 | * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes. | |
10391 | * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New | |
10392 | #includes. | |
10393 | (ps_get_thread_area): New function. | |
10394 | ||
45face3b GB |
10395 | 2015-08-19 Gary Benson <gbenson@redhat.com> |
10396 | ||
10397 | * hostio.c (handle_pread): Do not attempt to read more data | |
10398 | than hostio_reply_with_data can fit in a packet. | |
10399 | ||
16d5f642 JB |
10400 | 2015-08-18 Joel Brobecker <brobecker@adacore.com> |
10401 | ||
10402 | * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined. | |
10403 | ||
a738da3a MF |
10404 | 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com> |
10405 | ||
10406 | * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL. | |
10407 | ||
33ebda9d PA |
10408 | 2015-08-06 Pedro Alves <palves@redhat.com> |
10409 | ||
10410 | * tracepoint.c (expr_eval_result): Now an int. | |
10411 | ||
a44892be PA |
10412 | 2015-08-06 Pedro Alves <palves@redhat.com> |
10413 | ||
10414 | * gdbthread.h (struct regcache): Forward declare. | |
10415 | (struct thread_info) <regcache_data>: Now a struct regcache | |
10416 | pointer. | |
10417 | * inferiors.c (inferior_regcache_data) | |
10418 | (set_inferior_regcache_data): Now work with struct regcache | |
10419 | pointers. | |
10420 | * inferiors.h (struct regcache): Forward declare. | |
10421 | (inferior_regcache_data, set_inferior_regcache_data): Now work | |
10422 | with struct regcache pointers. | |
10423 | * regcache.c (get_thread_regcache, regcache_invalidate_thread) | |
10424 | (free_register_cache_thread): Remove struct regcache pointer | |
10425 | casts. | |
10426 | ||
608a1e46 PA |
10427 | 2015-08-06 Pedro Alves <palves@redhat.com> |
10428 | ||
10429 | * server.c (captured_main): On error, print the exception message | |
10430 | to stderr, and if run_once is set, throw a quit. | |
10431 | ||
f0ce0d3a PA |
10432 | 2015-08-06 Pedro Alves <palves@redhat.com> |
10433 | ||
10434 | * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch | |
10435 | the current thread. | |
10436 | ||
bf47e248 PA |
10437 | 2015-08-06 Pedro Alves <palves@redhat.com> |
10438 | ||
10439 | * linux-low.c (linux_write_memory): Rewrite debug output to avoid | |
10440 | reading beyond the passed in buffer length. | |
10441 | ||
b6b9ffcc PL |
10442 | 2015-08-06 Pierre Langlois <pierre.langlois@arm.com> |
10443 | ||
10444 | * tracepoint.c (symbol_list) <required>: Remove. | |
10445 | ||
863d01bd PA |
10446 | 2015-08-06 Pedro Alves <palves@redhat.com> |
10447 | ||
10448 | * linux-low.c (handle_extended_wait): Set the fork child's suspend | |
10449 | count if stopping and suspending threads. | |
10450 | (check_stopped_by_breakpoint): If stopped by trace, set the LWP's | |
10451 | stop reason to TARGET_STOPPED_BY_SINGLE_STEP. | |
10452 | (linux_detach): Complete an ongoing step-over. | |
10453 | (lwp_suspended_inc, lwp_suspended_decr): New functions. Use | |
10454 | throughout. | |
10455 | (resume_stopped_resumed_lwps): Don't resume a suspended thread. | |
10456 | (linux_wait_1): If passing a signal to the inferior after | |
10457 | finishing a step-over, unsuspend and re-resume all lwps. If we | |
10458 | see a single-step event but the thread should be continuing, don't | |
10459 | pass the trap to gdb. | |
10460 | (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use | |
10461 | internal_error instead of gdb_assert. | |
10462 | (enqueue_pending_signal): New function. | |
10463 | (check_ptrace_stopped_lwp_gone): Add debug output. | |
10464 | (start_step_over): Use internal_error instead of gdb_assert. | |
10465 | (complete_ongoing_step_over): New function. | |
10466 | (linux_resume_one_thread): Don't resume a suspended thread. | |
10467 | (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset | |
10468 | it stepping. | |
10469 | ||
00db26fa PA |
10470 | 2015-08-06 Pedro Alves <palves@redhat.com> |
10471 | ||
10472 | * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE. | |
10473 | (linux_thread_alive): Use lwp_is_marked_dead. | |
10474 | (extended_event_reported): Delete. | |
10475 | (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE | |
10476 | instead of extended_event_reported. | |
10477 | (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus | |
10478 | as well. | |
10479 | (lwp_is_marked_dead): New function. | |
10480 | (lwp_running): Use lwp_is_marked_dead. | |
10481 | * linux-low.h: Delete 'dead' field, and update 'waitstatus's | |
10482 | comment. | |
10483 | ||
ad071a30 PA |
10484 | 2015-08-06 Pedro Alves <palves@redhat.com> |
10485 | ||
10486 | * linux-low.c (linux_wait_1): Move fork event output out of the | |
10487 | !report_to_gdb check. Pass event_child->waitstatus to | |
10488 | target_waitstatus_to_string instead of ourstatus. | |
10489 | ||
524b57e6 YQ |
10490 | 2015-08-04 Yao Qi <yao.qi@linaro.org> |
10491 | ||
10492 | * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0 | |
10493 | if current_thread is 32 bit. | |
10494 | ||
6085d6f6 YQ |
10495 | 2015-08-04 Yao Qi <yao.qi@linaro.org> |
10496 | ||
10497 | * linux-aarch64-low.c (aarch64_supports_z_point_type): Return | |
10498 | 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging. | |
10499 | * server.c (extended_protocol): Remove "static". | |
10500 | * server.h (extended_protocol): Declare it. | |
10501 | ||
8a7e4587 YQ |
10502 | 2015-08-04 Yao Qi <yao.qi@linaro.org> |
10503 | ||
10504 | * linux-aarch64-low.c (aarch64_get_pc): Get PC register on | |
10505 | both aarch64 and aarch32. | |
10506 | (aarch64_set_pc): Likewise. | |
10507 | ||
3b53ae99 YQ |
10508 | 2015-08-04 Yao Qi <yao.qi@linaro.org> |
10509 | ||
10510 | * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o | |
10511 | to srv_regobj and append arm-core.xml arm-vfpv3.xml and | |
10512 | arm-with-neon.xml to srv_xmlfiles. | |
10513 | * linux-aarch64-low.c: Include linux-aarch32-low.h. | |
10514 | (is_64bit_tdesc): New function. | |
10515 | (aarch64_linux_read_description): New function. | |
10516 | (aarch64_arch_setup): Call aarch64_linux_read_description. | |
10517 | (regs_info): Rename to regs_info_aarch64. | |
10518 | (aarch64_regs_info): Return right regs_info. | |
10519 | (initialize_low_arch): Call initialize_low_arch_aarch32. | |
10520 | ||
bd9e6534 YQ |
10521 | 2015-08-04 Yao Qi <yao.qi@linaro.org> |
10522 | ||
10523 | * configure.srv (srv_tgtobj): Add linux-aarch32-low.o. | |
10524 | * linux-aarch32-low.c: New file. | |
10525 | * linux-aarch32-low.h: New file. | |
10526 | * linux-arm-low.c (arm_fill_gregset): Move it to | |
10527 | linux-aarch32-low.c. | |
10528 | (arm_store_gregset): Likewise. | |
10529 | (arm_fill_vfpregset): Call arm_fill_vfpregset_num | |
10530 | (arm_store_vfpregset): Call arm_store_vfpregset_num. | |
10531 | (arm_arch_setup): Check if PTRACE_GETREGSET works. | |
10532 | (regs_info): Rename to regs_info_arm. | |
10533 | (arm_regs_info): Return regs_info_aarch32 if | |
10534 | have_ptrace_getregset is 1 and target description is | |
10535 | arm_with_neon or arm_with_vfpv3. | |
10536 | (initialize_low_arch): Don't call init_registers_arm_with_neon. | |
10537 | Call initialize_low_arch_aarch32 instead. | |
10538 | ||
ded48a5e YQ |
10539 | 2015-08-04 Yao Qi <yao.qi@linaro.org> |
10540 | ||
10541 | * linux-x86-low.c (have_ptrace_getregset): Move it to ... | |
10542 | * linux-low.c: ... here. | |
10543 | * linux-low.h (have_ptrace_getregset): Declare it. | |
10544 | ||
96e9210f PA |
10545 | 2015-08-04 Pedro Alves <palves@redhat.com> |
10546 | ||
10547 | * thread-db.c (struct thread_db): Use new typedefs. | |
10548 | (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in | |
10549 | CHK calls. | |
10550 | (disable_thread_event_reporting): Cast result of dlsym to | |
10551 | destination function pointer type. | |
10552 | (thread_db_mourn): Use td_ta_delete_ftype. | |
10553 | ||
af60a1ef SL |
10554 | 2015-08-03 Sandra Loosemore <sandra@codesourcery.com> |
10555 | ||
10556 | * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for | |
10557 | arch variant. | |
10558 | (CDX_BREAKPOINT): Define for R2. | |
10559 | (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2. | |
10560 | (the_low_target): Add comments. | |
10561 | ||
e8b41681 YQ |
10562 | 2015-07-30 Yao Qi <yao.qi@linaro.org> |
10563 | ||
10564 | * linux-arm-low.c (arm_hwcap): Remove it. | |
10565 | (arm_read_description): New local variable arm_hwcap. Don't | |
10566 | set arm_hwcap to zero. | |
10567 | ||
89abb039 YQ |
10568 | 2015-07-30 Yao Qi <yao.qi@linaro.org> |
10569 | ||
10570 | * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap. | |
10571 | Use regcache->tdesc instead. | |
10572 | (arm_store_wmmxregset): Likewise. | |
10573 | (arm_fill_vfpregset): Likewise. | |
10574 | (arm_store_vfpregset): Likewise. | |
10575 | ||
deca266c YQ |
10576 | 2015-07-30 Yao Qi <yao.qi@linaro.org> |
10577 | ||
10578 | * linux-arm-low.c: Include arch/arm.h. | |
10579 | (arm_fill_gregset): Don't use arm_num_regs and arm_regmap. | |
10580 | (arm_store_gregset): Likewise. | |
10581 | ||
aa58a496 SM |
10582 | 2015-07-29 Simon Marchi <simon.marchi@ericsson.com> |
10583 | ||
10584 | * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as | |
10585 | ptrace's 4th parameter. | |
10586 | ||
50904b25 YQ |
10587 | 2015-07-27 Yao Qi <yao.qi@linaro.org> |
10588 | ||
10589 | * configure.srv (case aarch64*-*-linux*): Don't set | |
10590 | srv_linux_usrregs. | |
10591 | ||
5826e159 PA |
10592 | 2015-07-24 Pedro Alves <palves@redhat.c: Likewise.om> |
10593 | ||
10594 | * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of | |
10595 | sys/ptrace.h. | |
10596 | * linux-arm-low.c: Likewise. | |
10597 | * linux-cris-low.c: Likewise. | |
10598 | * linux-crisv32-low.c: Likewise. | |
10599 | * linux-low.c: Likewise. | |
10600 | * linux-m68k-low.c: Likewise. | |
10601 | * linux-mips-low.c: Likewise. | |
10602 | * linux-nios2-low.c: Likewise. | |
10603 | * linux-s390-low.c: Likewise. | |
10604 | * linux-sparc-low.c: Likewise. | |
10605 | * linux-tic6x-low.c: Likewise. | |
10606 | * linux-tile-low.c: Likewise. | |
10607 | * linux-x86-low.c: Likewise. | |
10608 | ||
54019719 PA |
10609 | 2015-07-24 Pedro Alves <palves@redhat.com> |
10610 | ||
10611 | * config.in: Regenerate. | |
10612 | * configure: Regenerate. | |
10613 | ||
eb7aa561 PA |
10614 | 2015-07-24 Pedro Alves <palves@redhat.com> |
10615 | ||
10616 | * acinclude.m4: Include ../ptrace.m4. | |
10617 | * configure.ac: Call GDB_AC_PTRACE. | |
10618 | * config.in, configure: Regenerate. | |
10619 | ||
55d7b841 YQ |
10620 | 2015-07-24 Yao Qi <yao.qi@linaro.org> |
10621 | ||
10622 | * linux-low.c (linux_create_inferior): Remove setting to | |
10623 | proc->priv->new_inferior. | |
10624 | (linux_attach): Likewise. | |
10625 | (linux_low_filter_event): Likewise. | |
10626 | * linux-low.h (struct process_info_private) <new_inferior>: Remove. | |
10627 | ||
c06cbd92 YQ |
10628 | 2015-07-24 Yao Qi <yao.qi@linaro.org> |
10629 | ||
10630 | * linux-low.c (linux_arch_setup): New function. | |
10631 | (linux_low_filter_event): If proc->tdesc is NULL and | |
10632 | proc->attached is true, call the_low_target.arch_setup. | |
10633 | Otherwise, keep status pending, and return. | |
10634 | (linux_resume_one_lwp_throw): Don't call get_pc if | |
10635 | thread->while_stepping isn't NULL. Don't call | |
10636 | get_thread_regcache if proc->tdesc is NULL. | |
10637 | (need_step_over_p): Return 0 if proc->tdesc is NULL. | |
10638 | (linux_target_ops): Install arch_setup. | |
10639 | * server.c (start_inferior): Call the_target->arch_setup. | |
10640 | * target.h (struct target_ops) <arch_setup>: New field. | |
10641 | (target_arch_setup): New marco. | |
10642 | * lynx-low.c (lynx_target_ops): Update. | |
10643 | * nto-low.c (nto_target_ops): Update. | |
10644 | * spu-low.c (spu_target_ops): Update. | |
10645 | * win32-low.c (win32_target_ops): Update. | |
10646 | ||
5ae3ebba YQ |
10647 | 2015-07-24 Yao Qi <yao.qi@linaro.org> |
10648 | ||
10649 | * linux-low.c (linux_add_process): Don't set | |
10650 | proc->priv->new_inferior. | |
10651 | (linux_create_inferior): Set proc->priv->new_inferior to 1. | |
10652 | (linux_attach): Likewise. | |
10653 | ||
eb97750b YQ |
10654 | 2015-07-24 Yao Qi <yao.qi@linaro.org> |
10655 | ||
10656 | * server.c (start_inferior): Code refactor. | |
10657 | ||
51aee833 YQ |
10658 | 2015-07-24 Yao Qi <yao.qi@linaro.org> |
10659 | ||
10660 | * server.c (process_serial_event): Set general_thread. | |
10661 | ||
af1b22f3 YQ |
10662 | 2015-07-21 Yao Qi <yao.qi@linaro.org> |
10663 | ||
10664 | * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call | |
10665 | aarch64_linux_get_debug_reg_capacity. | |
10666 | ||
554717a3 YQ |
10667 | 2015-07-17 Yao Qi <yao.qi@linaro.org> |
10668 | ||
10669 | * Makefile.in (aarch64-linux-hw-point.o): New rule. | |
10670 | * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o. | |
10671 | * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h. | |
10672 | (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h. | |
10673 | (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise. | |
10674 | (AARCH64_HWP_ALIGNMENT): Likewise. | |
10675 | (AARCH64_HWP_MAX_LEN_PER_REG): Likewise. | |
10676 | (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise. | |
10677 | (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise. | |
10678 | (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise. | |
10679 | (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise. | |
10680 | (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise. | |
10681 | (struct aarch64_debug_reg_state): Likewise. | |
10682 | (struct arch_lwp_info): Likewise. | |
10683 | (aarch64_align_watchpoint): Likewise. | |
10684 | (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise. | |
10685 | (aarch64_watchpoint_length): Likewise. | |
10686 | (aarch64_point_encode_ctrl_reg): Likewise | |
10687 | (aarch64_point_is_aligned): Likewise. | |
10688 | (aarch64_align_watchpoint): Likewise. | |
10689 | (aarch64_linux_set_debug_regs): | |
10690 | (aarch64_dr_state_insert_one_point): Likewise. | |
10691 | (aarch64_dr_state_remove_one_point): Likewise. | |
10692 | (aarch64_handle_breakpoint): Likewise. | |
10693 | (aarch64_handle_aligned_watchpoint): Likewise. | |
10694 | (aarch64_handle_unaligned_watchpoint): Likewise. | |
10695 | (aarch64_handle_watchpoint): Likewise. | |
10696 | ||
c67ca4de YQ |
10697 | 2015-07-17 Yao Qi <yao.qi@linaro.org> |
10698 | ||
10699 | * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state | |
10700 | and don't aarch64_get_debug_reg_state. All callers update. | |
10701 | (aarch64_handle_aligned_watchpoint): Likewise. | |
10702 | (aarch64_handle_unaligned_watchpoint): Likewise. | |
10703 | (aarch64_handle_watchpoint): Likewise. | |
10704 | (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier. | |
10705 | (aarch64_remove_point): Likewise. | |
10706 | ||
25abf979 YQ |
10707 | 2015-07-17 Yao Qi <yao.qi@linaro.org> |
10708 | ||
10709 | * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use | |
10710 | debug_printf. | |
10711 | (aarch64_handle_unaligned_watchpoint): Likewise. | |
10712 | ||
db1ff28b JK |
10713 | 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com> |
10714 | ||
10715 | Revert the previous 3 commits: | |
10716 | Move gdb_regex* to common/ | |
10717 | Move linux_find_memory_regions_full & co. | |
10718 | gdbserver build-id attribute generator | |
10719 | ||
700ca40f JK |
10720 | 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com |
10721 | Jan Kratochvil <jan.kratochvil@redhat.com> | |
10722 | ||
10723 | gdbserver build-id attribute generator. | |
10724 | * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include. | |
10725 | (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New. | |
10726 | (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New. | |
10727 | (find_phdr): New. | |
10728 | (get_dynamic): Use find_pdhr to traverse program headers. | |
10729 | (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec) | |
10730 | (compare_mapping_entry_range, struct find_memory_region_callback_data) | |
10731 | (read_build_id, find_memory_region_callback, lrfind_mapping_entry) | |
10732 | (get_hex_build_id): New. | |
10733 | (linux_qxfer_libraries_svr4): Add optional build-id attribute | |
10734 | to reply XML document. | |
10735 | ||
9904185c JK |
10736 | 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com |
10737 | Jan Kratochvil <jan.kratochvil@redhat.com> | |
10738 | ||
10739 | * target.c: Include target/target-utils.h and fcntl.h. | |
10740 | (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1) | |
10741 | (target_fileio_read_stralloc): New functions. | |
10742 | ||
6e5b4429 JK |
10743 | 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com> |
10744 | ||
10745 | * Makefile.in (OBS): Add gdb_regex.o. | |
10746 | (gdb_regex.o): New. | |
10747 | * config.in: Rebuilt. | |
10748 | * configure: Rebuilt. | |
10749 | ||
ddc98fbf JK |
10750 | 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com |
10751 | Jan Kratochvil <jan.kratochvil@redhat.com> | |
10752 | ||
10753 | Create empty nat/linux-maps.[ch] and common/target-utils.[ch]. | |
10754 | * Makefile.in (OBS): Add target-utils.o. | |
10755 | (linux-maps.o, target-utils.o): New. | |
10756 | * configure.srv (srv_linux_obj): Add linux-maps.o. | |
10757 | ||
e57bb7a0 PL |
10758 | 2015-07-15 Pierre Langlois <pierre.langlois@arm.com> |
10759 | ||
10760 | * linux-aarch64-low.c (aarch64_supports_range_stepping): New | |
10761 | function, return 1. | |
10762 | (the_low_target): Install it. | |
10763 | ||
586b02a9 PA |
10764 | 2015-07-14 Pedro Alves <palves@redhat.com> |
10765 | ||
10766 | * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails. | |
10767 | Instead, ignore ECHILD, and throw an error for other errnos. | |
10768 | ||
58c1b36c PA |
10769 | 2015-07-10 Pedro Alves <palves@redhat.com> |
10770 | ||
10771 | * event-loop.c (struct callback_event) <data>: Change type to | |
10772 | gdb_client_data instance instead of gdb_client_data pointer. | |
10773 | (append_callback_event): Adjust. | |
10774 | ||
421530db PL |
10775 | 2015-07-10 Pierre Langlois <pierre.langlois@arm.com> |
10776 | ||
10777 | * linux-aarch64-low.c: Add comments for each linux_target_ops | |
10778 | method. Remove comments already covered in target_ops and | |
10779 | linux_target_ops definitions. | |
10780 | (the_low_target): Add comments for each unimplemented method. | |
10781 | ||
c2d65f38 YQ |
10782 | 2015-07-09 Yao Qi <yao.qi@linaro.org> |
10783 | ||
10784 | * linux-aarch64-low.c (aarch64_regmap): Remove. | |
10785 | (aarch64_usrregs_info): Remove. | |
10786 | (regs_info): Set field usrregs to NULL. | |
10787 | ||
b20a6524 MM |
10788 | 2015-07-02 Markus Metzger <markus.t.metzger@intel.com> |
10789 | ||
10790 | * linux-low.c: Include "rsp-low.h" | |
10791 | (linux_low_encode_pt_config, linux_low_encode_raw): New. | |
10792 | (linux_low_read_btrace): Support BTRACE_FORMAT_PT. | |
10793 | (linux_low_btrace_conf): Support BTRACE_FORMAT_PT. | |
10794 | (handle_btrace_enable_pt): New. | |
10795 | (handle_btrace_general_set): Support "pt". | |
10796 | (handle_btrace_conf_general_set): Support "pt:size". | |
10797 | ||
96c97461 PL |
10798 | 2015-06-29 Pierre Langlois <pierre.langlois@arm.com> |
10799 | ||
10800 | * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for | |
10801 | Z_PACKET_SW_BP. | |
10802 | ||
37d66942 PL |
10803 | 2015-06-29 Pierre Langlois <pierre.langlois@arm.com> |
10804 | ||
10805 | * linux-aarch64-low.c: Remove comment about endianness. | |
10806 | (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0". | |
10807 | (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use | |
10808 | memcmp. | |
10809 | ||
dc06243f GB |
10810 | 2015-06-24 Gary Benson <gbenson@redhat.com> |
10811 | ||
10812 | * linux-i386-ipa.c (stdint.h): Do not include. | |
10813 | * lynx-i386-low.c (stdint.h): Likewise. | |
10814 | * lynx-ppc-low.c (stdint.h): Likewise. | |
10815 | * mem-break.c (stdint.h): Likewise. | |
10816 | * thread-db.c (stdint.h): Likewise. | |
10817 | * tracepoint.c (stdint.h): Likewise. | |
10818 | * win32-low.c (stdint.h): Likewise. | |
10819 | ||
124e13d9 SM |
10820 | 2015-06-18 Simon Marchi <simon.marchi@ericsson.com> |
10821 | ||
10822 | * server.c (write_qxfer_response): Update call to | |
10823 | remote_escape_output. | |
10824 | ||
909c2cda JK |
10825 | 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com |
10826 | Jan Kratochvil <jan.kratochvil@redhat.com> | |
10827 | ||
10828 | Merge multiple hex conversions. | |
10829 | * gdbreplay.c (tohex): Rename to 'fromhex'. | |
10830 | (logchar): Use fromhex. | |
10831 | ||
24c05f46 JK |
10832 | 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com> |
10833 | ||
10834 | * server.c (handle_qxfer_libraries): Set `version' attribute for | |
10835 | <library-list>. | |
10836 | ||
14d2069a GB |
10837 | 2015-06-10 Gary Benson <gbenson@redhat.com> |
10838 | ||
10839 | * target.h (struct target_ops) <multifs_open>: New field. | |
10840 | <multifs_unlink>: Likewise. | |
10841 | <multifs_readlink>: Likewise. | |
10842 | * linux-low.c (nat/linux-namespaces.h): New include. | |
10843 | (linux_target_ops): Initialize the_target->multifs_open, | |
10844 | the_target->multifs_unlink and the_target->multifs_readlink. | |
10845 | * hostio.h (hostio_handle_new_gdb_connection): New declaration. | |
10846 | * hostio.c (hostio_fs_pid): New static variable. | |
10847 | (hostio_handle_new_gdb_connection): New function. | |
10848 | (handle_setfs): Likewise. | |
10849 | (handle_open): Use the_target->multifs_open as appropriate. | |
10850 | (handle_unlink): Use the_target->multifs_unlink as appropriate. | |
10851 | (handle_readlink): Use the_target->multifs_readlink as | |
10852 | appropriate. | |
10853 | (handle_vFile): Handle vFile:setfs packets. | |
10854 | * server.c (handle_query): Call hostio_handle_new_gdb_connection | |
10855 | after target_handle_new_gdb_connection. | |
10856 | ||
4b8b5e72 GB |
10857 | 2015-06-10 Gary Benson <gbenson@redhat.com> |
10858 | ||
10859 | * configure.ac (AC_CHECK_FUNCS): Add setns. | |
10860 | * config.in: Regenerate. | |
10861 | * configure: Likewise. | |
10862 | * Makefile.in (SFILES): Add nat/linux-namespaces.c. | |
10863 | (linux-namespaces.o): New rule. | |
10864 | * configure.srv (srv_linux_obj): Add linux-namespaces.o. | |
10865 | ||
3ac2e371 GB |
10866 | 2015-06-09 Gary Benson <gbenson@redhat.com> |
10867 | ||
10868 | * hostio.c (handle_open): Process mode argument with | |
10869 | fileio_to_host_mode. | |
10870 | ||
ca9b78ce YQ |
10871 | 2015-06-01 Yao Qi <yao.qi@linaro.org> |
10872 | ||
10873 | * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove. | |
10874 | * linux-x86-low.c: Likewise. | |
10875 | ||
bfacd19d DB |
10876 | 2015-05-28 Don Breazeal <donb@codesourcery.com> |
10877 | ||
10878 | * linux-low.c (handle_extended_wait): Initialize | |
10879 | thread_info.last_resume_kind for new fork children. | |
10880 | ||
452003ef PA |
10881 | 2015-05-15 Pedro Alves <palves@redhat.com> |
10882 | ||
10883 | * target.h (target_handle_new_gdb_connection): Rewrite using if | |
10884 | wrapped in do/while. | |
10885 | ||
1041a03c JB |
10886 | 2015-05-14 Joel Brobecker <brobecker@adacore.com> |
10887 | ||
10888 | * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check. | |
10889 | * configure, config.in: Regenerate. | |
10890 | * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t): | |
10891 | Declare typedef. | |
10892 | ||
c269dbdb DB |
10893 | 2015-05-12 Don Breazeal <donb@codesourcery.com> |
10894 | ||
10895 | * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and | |
10896 | PTRACE_EVENT_VFORK_DONE. | |
10897 | (linux_low_ptrace_options, extended_event_reported): Add vfork | |
10898 | events. | |
10899 | * remote-utils.c (prepare_resume_reply): New stop reasons "vfork" | |
10900 | and "vforkdone" for RSP 'T' Stop Reply Packet. | |
10901 | * server.h (report_vfork_events): Declare | |
10902 | global variable. | |
10903 | ||
3a8a0396 DB |
10904 | 2015-05-12 Don Breazeal <donb@codesourcery.com> |
10905 | ||
10906 | * linux-aarch64-low.c (aarch64_linux_new_fork): New function. | |
10907 | (the_low_target) <new_fork>: Initialize new member. | |
10908 | * linux-arm-low.c (arm_new_fork): New function. | |
10909 | (the_low_target) <new_fork>: Initialize new member. | |
10910 | * linux-low.c (handle_extended_wait): Call new target function | |
10911 | new_fork. | |
10912 | * linux-low.h (struct linux_target_ops) <new_fork>: New member. | |
10913 | * linux-mips-low.c (mips_add_watchpoint): New function | |
10914 | extracted from mips_insert_point. | |
10915 | (the_low_target) <new_fork>: Initialize new member. | |
10916 | (mips_linux_new_fork): New function. | |
10917 | (mips_insert_point): Call mips_add_watchpoint. | |
10918 | * linux-x86-low.c (x86_linux_new_fork): New function. | |
10919 | (the_low_target) <new_fork>: Initialize new member. | |
10920 | ||
de0d863e DB |
10921 | 2015-05-12 Don Breazeal <donb@codesourcery.com> |
10922 | ||
10923 | * linux-low.c (handle_extended_wait): Implement return value, | |
10924 | rename argument 'event_child' to 'event_lwp', handle | |
10925 | PTRACE_EVENT_FORK, call internal_error for unrecognized event. | |
10926 | (linux_low_ptrace_options): New function. | |
10927 | (linux_low_filter_event): Call linux_low_ptrace_options, | |
10928 | use different argument fo linux_enable_event_reporting, | |
10929 | use return value from handle_extended_wait. | |
10930 | (extended_event_reported): New function. | |
10931 | (linux_wait_1): Call extended_event_reported and set | |
10932 | status to report fork events. | |
10933 | (linux_write_memory): Add pid to debug message. | |
10934 | (reset_lwp_ptrace_options_callback): New function. | |
10935 | (linux_handle_new_gdb_connection): New function. | |
10936 | (linux_target_ops): Initialize new structure member. | |
10937 | * linux-low.h (struct lwp_info) <waitstatus>: New member. | |
10938 | * lynx-low.c: Initialize new structure member. | |
10939 | * remote-utils.c (prepare_resume_reply): Implement stop reason | |
10940 | "fork" for "T" stop message. | |
10941 | * server.c (handle_query): Call handle_new_gdb_connection. | |
10942 | * server.h (report_fork_events): Declare global flag. | |
10943 | * target.h (struct target_ops) <handle_new_gdb_connection>: | |
10944 | New member. | |
10945 | (target_handle_new_gdb_connection): New macro. | |
10946 | * win32-low.c: Initialize new structure member. | |
10947 | ||
ddcbc397 DB |
10948 | 2015-05-12 Don Breazeal <donb@codesourcery.com> |
10949 | ||
10950 | * mem-break.c (APPEND_TO_LIST): Define macro. | |
10951 | (clone_agent_expr): New function. | |
10952 | (clone_one_breakpoint): New function. | |
10953 | (clone_all_breakpoints): New function. | |
10954 | * mem-break.h: Declare new functions. | |
10955 | ||
89245bc0 DB |
10956 | 2015-05-12 Don Breazeal <donb@codesourcery.com> |
10957 | ||
10958 | * linux-low.c (linux_supports_fork_events): New function. | |
10959 | (linux_supports_vfork_events): New function. | |
10960 | (linux_target_ops): Initialize new structure members. | |
10961 | (initialize_low): Call linux_check_ptrace_features. | |
10962 | * lynx-low.c (lynx_target_ops): Initialize new structure | |
10963 | members. | |
10964 | * server.c (report_fork_events, report_vfork_events): | |
10965 | New global flags. | |
10966 | (handle_query): Add new features to qSupported packet and | |
10967 | response. | |
10968 | (captured_main): Initialize new global variables. | |
10969 | * target.h (struct target_ops) <supports_fork_events>: | |
10970 | New member. | |
10971 | <supports_vfork_events>: New member. | |
10972 | (target_supports_fork_events): New macro. | |
10973 | (target_supports_vfork_events): New macro. | |
10974 | * win32-low.c (win32_target_ops): Initialize new structure | |
10975 | members. | |
10976 | ||
835205d0 GB |
10977 | 2015-05-12 Gary Benson <gbenson@redhat.com> |
10978 | ||
10979 | * server.c (handle_qxfer_exec_file): Use current process | |
10980 | if annex is empty. | |
10981 | ||
21e94bd9 SL |
10982 | 2015-05-08 Sandra Loosemore <sandra@codesourcery.com> |
10983 | ||
10984 | * linux-nios2-low.c: Include elf/common.h. Adjust comments. | |
10985 | Remove HAVE_PTRACE_GETREGS conditionals. | |
10986 | (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET | |
10987 | instead of PTRACE_GETREGS and PTRACE_SETREGS. | |
10988 | ||
45614f15 YQ |
10989 | 2015-05-08 Yao Qi <yao.qi@linaro.org> |
10990 | ||
10991 | * linux-low.c (linux_supports_conditional_breakpoints): New | |
10992 | function. | |
10993 | (linux_target_ops): Install new target method. | |
10994 | * lynx-low.c (lynx_target_ops): Install NULL hook for | |
10995 | supports_conditional_breakpoints. | |
10996 | * nto-low.c (nto_target_ops): Likewise. | |
10997 | * spu-low.c (spu_target_ops): Likewise. | |
10998 | * win32-low.c (win32_target_ops): Likewise. | |
10999 | * server.c (handle_query): Check | |
11000 | target_supports_conditional_breakpoints. | |
11001 | * target.h (struct target_ops) <supports_conditional_breakpoints>: | |
11002 | New field. | |
11003 | (target_supports_conditional_breakpoints): New macro. | |
11004 | ||
80ad801e PA |
11005 | 2015-05-06 Pedro Alves <palves@redhat.com> |
11006 | ||
11007 | PR server/18081 | |
11008 | * server.c (start_inferior): If the process exits, mourn it. | |
11009 | ||
819843c7 GB |
11010 | 2015-04-21 Gary Benson <gbenson@redhat.com> |
11011 | ||
11012 | * hostio.c (fileio_open_flags_to_host): Factored out to | |
11013 | fileio_to_host_openflags in common/fileio.c. Single use | |
11014 | updated. | |
11015 | ||
a2d5a9d7 MF |
11016 | 2015-04-17 Max Filippov <jcmvbkbc@gmail.com> |
11017 | ||
11018 | * linux-xtensa-low.c (xtensa_fill_gregset) | |
11019 | (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of | |
11020 | XCHAL_HAVE_LOOP. | |
11021 | ||
deb44829 MF |
11022 | 2015-04-17 Max Filippov <jcmvbkbc@gmail.com> |
11023 | ||
11024 | * linux-xtensa-low.c (xtensa_usrregs_info): Remove. | |
11025 | (regs_info): Replace usrregs pointer with NULL. | |
11026 | ||
e57f1de3 GB |
11027 | 2015-04-17 Gary Benson <gbenson@redhat.com> |
11028 | ||
11029 | * target.h (struct target_ops) <pid_to_exec_file>: New field. | |
11030 | * linux-low.c (linux_target_ops): Initialize pid_to_exec_file. | |
11031 | * server.c (handle_qxfer_exec_file): New function. | |
11032 | (qxfer_packets): Add exec-file entry. | |
11033 | (handle_query): Report qXfer:exec-file:read as supported packet. | |
11034 | ||
62828379 RN |
11035 | 2015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change) |
11036 | ||
11037 | * linux-low.c (linux_read_offsets): Remove get_thread_lwp. | |
11038 | ||
b88bb450 GB |
11039 | 2015-04-09 Gary Benson <gbenson@redhat.com> |
11040 | ||
11041 | * hostio-errno.c (errno_to_fileio_error): Remove function. | |
11042 | Update caller to use remote_fileio_to_fio_error. | |
11043 | ||
c8f4bfdd YQ |
11044 | 2015-04-09 Yao Qi <yao.qi@linaro.org> |
11045 | ||
11046 | * linux-low.c (linux_insert_point): Call | |
11047 | insert_memory_breakpoint if TYPE is raw_bkpt_type_sw. | |
11048 | (linux_remove_point): Call remove_memory_breakpoint if type is | |
11049 | raw_bkpt_type_sw. | |
11050 | * linux-x86-low.c (x86_insert_point): Don't call | |
11051 | insert_memory_breakpoint. | |
11052 | (x86_remove_point): Don't call remove_memory_breakpoint. | |
11053 | ||
41f98f02 PA |
11054 | 2015-04-01 Pedro Alves <palves@redhat.com> |
11055 | Cleber Rosa <crosa@redhat.com> | |
11056 | ||
11057 | * server.c (gdbserver_usage): Reorganize and extend the usage | |
11058 | message. | |
11059 | ||
2bf6fb9d PA |
11060 | 2015-03-24 Pedro Alves <palves@redhat.com> |
11061 | ||
11062 | * linux-low.c (check_stopped_by_breakpoint): Tweak debug log | |
11063 | output. Also dump TRAP_TRACE. | |
11064 | (linux_low_filter_event): In debug output, distinguish a | |
11065 | resume_stop SIGSTOP from a delayed SIGSTOP. | |
11066 | ||
369f6daa GB |
11067 | 2015-03-24 Gary Benson <gbenson@redhat.com> |
11068 | ||
11069 | * linux-x86-low.c (x86_linux_new_thread): Moved to | |
11070 | nat/x86-linux.c. | |
11071 | (x86_linux_prepare_to_resume): Likewise. | |
11072 | ||
8e5d4070 GB |
11073 | 2015-03-24 Gary Benson <gbenson@redhat.com> |
11074 | ||
11075 | * Makefile.in (x86-linux-dregs.o): New rule. | |
11076 | * configure.srv: Add x86-linux-dregs.o to relevant targets. | |
11077 | * linux-x86-low.c: Include nat/x86-linux-dregs.h. | |
11078 | (u_debugreg_offset): Moved to nat/x86-linux-dregs.c. | |
11079 | (x86_linux_dr_get): Likewise. | |
11080 | (x86_linux_dr_set): Likewise. | |
11081 | (update_debug_registers_callback): Likewise. | |
11082 | (x86_linux_dr_set_addr): Likewise. | |
11083 | (x86_linux_dr_get_addr): Likewise. | |
11084 | (x86_linux_dr_set_control): Likewise. | |
11085 | (x86_linux_dr_get_control): Likewise. | |
11086 | (x86_linux_dr_get_status): Likewise. | |
11087 | (x86_linux_update_debug_registers): Likewise. | |
11088 | ||
2b95d440 GB |
11089 | 2015-03-24 Gary Benson <gbenson@redhat.com> |
11090 | ||
11091 | * linux-x86-low.c (x86_linux_update_debug_registers): | |
11092 | New function, factored out from... | |
11093 | (x86_linux_prepare_to_resume): ...this. | |
11094 | ||
14b0bc68 GB |
11095 | 2015-03-24 Gary Benson <gbenson@redhat.com> |
11096 | ||
11097 | * linux-x86-low.c (x86_linux_dr_get): Update comments. | |
11098 | (x86_linux_dr_set): Likewise. | |
11099 | (update_debug_registers_callback): Likewise. | |
11100 | (x86_linux_dr_set_addr): Likewise. | |
11101 | (x86_linux_dr_get_addr): Likewise. | |
11102 | (x86_linux_dr_set_control): Likewise. | |
11103 | (x86_linux_dr_get_control): Likewise. | |
11104 | (x86_linux_dr_get_status): Likewise. | |
11105 | (x86_linux_prepare_to_resume): Likewise. | |
11106 | ||
5dfe6ca8 GB |
11107 | 2015-03-24 Gary Benson <gbenson@redhat.com> |
11108 | ||
11109 | * linux-x86-low.c (x86_linux_dr_get): Add assertion. | |
11110 | Use perror_with_name. Pass string through gettext. | |
11111 | (x86_linux_dr_set): Likewise. | |
11112 | ||
d33472ad GB |
11113 | 2015-03-24 Gary Benson <gbenson@redhat.com> |
11114 | ||
11115 | * linux-x86-low.c (x86_dr_low_set_addr): Rename to... | |
11116 | (x86_linux_dr_set_addr): ...this. | |
11117 | (x86_dr_low_get_addr): Rename to... | |
11118 | (x86_linux_dr_get_addr): ...this. | |
11119 | (x86_dr_low_set_control): Rename to... | |
11120 | (x86_linux_dr_set_control): ...this. | |
11121 | (x86_dr_low_get_control): Rename to... | |
11122 | (x86_linux_dr_get_control): ...this. | |
11123 | (x86_dr_low_get_status): Rename to... | |
11124 | (x86_linux_dr_get_status): ...this. | |
11125 | (x86_dr_low): Update with new function names. | |
11126 | ||
4b134ca1 GB |
11127 | 2015-03-24 Gary Benson <gbenson@redhat.com> |
11128 | ||
11129 | * Makefile.in (x86-linux.o): New rule. | |
11130 | * configure.srv: Add x86-linux.o to relevant targets. | |
11131 | * linux-low.c (lwp_set_arch_private_info): New function. | |
11132 | (lwp_arch_private_info): Likewise. | |
11133 | * linux-x86-low.c: Include nat/x86-linux.h. | |
11134 | (arch_lwp_info): Removed structure. | |
11135 | (update_debug_registers_callback): | |
11136 | Use lwp_set_debug_registers_changed. | |
11137 | (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed | |
11138 | and lwp_set_debug_registers_changed. | |
11139 | (x86_linux_new_thread): Use lwp_set_debug_registers_changed. | |
11140 | ||
34c703da GB |
11141 | 2015-03-24 Gary Benson <gbenson@redhat.com> |
11142 | ||
11143 | * linux-low.h (linux_target_ops) <new_thread>: Changed signature. | |
11144 | * linux-arm-low.c (arm_new_thread): Likewise. | |
11145 | * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise. | |
11146 | * linux-mips-low.c (mips_linux_new_thread): Likewise. | |
11147 | * linux-x86-low.c (x86_linux_new_thread): Likewise. | |
11148 | * linux-low.c (add_lwp): Update the_low_target.new_thread call. | |
11149 | ||
cff068da GB |
11150 | 2015-03-24 Gary Benson <gbenson@redhat.com> |
11151 | ||
11152 | * linux-low.c (ptid_of_lwp): New function. | |
11153 | (lwp_is_stopped): Likewise. | |
11154 | (lwp_stop_reason): Likewise. | |
11155 | * linux-x86-low.c (update_debug_registers_callback): | |
11156 | Use lwp_is_stopped. | |
11157 | (x86_linux_prepare_to_resume): Use ptid_of_lwp and | |
11158 | lwp_stop_reason. | |
11159 | ||
b2f7c7e8 GB |
11160 | 2015-03-24 Gary Benson <gbenson@redhat.com> |
11161 | ||
11162 | * linux-low.h (linux_stop_lwp): Remove declaration. | |
11163 | ||
6d4ee8c6 GB |
11164 | 2015-03-24 Gary Benson <gbenson@redhat.com> |
11165 | ||
11166 | * linux-low.h: Include nat/linux-nat.h. | |
11167 | * linux-low.c (iterate_over_lwps_args): New structure. | |
11168 | (iterate_over_lwps_filter): New function. | |
11169 | (iterate_over_lwps): Likewise. | |
11170 | * linux-x86-low.c (update_debug_registers_callback): | |
11171 | Update signature to what iterate_over_lwps expects. | |
11172 | Remove PID check that iterate_over_lwps now performs. | |
11173 | (x86_dr_low_set_addr): Use iterate_over_lwps. | |
11174 | (x86_dr_low_set_control): Likewise. | |
11175 | ||
70a0bb6b GB |
11176 | 2015-03-24 Gary Benson <gbenson@redhat.com> |
11177 | ||
11178 | * linux-x86-low.c (x86_debug_reg_state): New function. | |
11179 | (x86_linux_prepare_to_resume): Use the above. | |
11180 | ||
7b669087 GB |
11181 | 2015-03-24 Gary Benson <gbenson@redhat.com> |
11182 | ||
11183 | * linux-low.c (current_lwp_ptid): New function. | |
11184 | * linux-x86-low.c: Include nat/linux-nat.h. | |
11185 | (x86_dr_low_get_addr): Use current_lwp_ptid. | |
11186 | (x86_dr_low_get_control): Likewise. | |
11187 | (x86_dr_low_get_status): Likewise. | |
11188 | ||
eef49a3d PA |
11189 | 2015-03-20 Pedro Alves <palves@redhat.com> |
11190 | ||
11191 | * tracepoint.c (cmd_qtstatus): Make "str" const. | |
11192 | ||
b2333d22 PA |
11193 | 2015-03-20 Pedro Alves <palves@redhat.com> |
11194 | ||
11195 | * server.c (handle_general_set): Make "req_str" const. | |
11196 | ||
23f238d3 PA |
11197 | 2015-03-19 Pedro Alves <palves@redhat.com> |
11198 | ||
11199 | * linux-low.c (linux_resume_one_lwp): Rename to ... | |
11200 | (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here, | |
11201 | instead call perror_with_name. | |
11202 | (check_ptrace_stopped_lwp_gone): New function. | |
11203 | (linux_resume_one_lwp): Reimplement as wrapper around | |
11204 | linux_resume_one_lwp_throw that swallows errors if the LWP is | |
11205 | gone. | |
11206 | ||
91baf43f PA |
11207 | 2015-03-19 Pedro Alves <palves@redhat.com> |
11208 | ||
11209 | * linux-low.c (count_events_callback, select_event_lwp_callback): | |
11210 | No longer check whether the thread has resume_stop as last resume | |
11211 | kind. | |
11212 | ||
8bf3b159 PA |
11213 | 2015-03-19 Pedro Alves <palves@redhat.com> |
11214 | ||
11215 | * linux-low.c (count_events_callback, select_event_lwp_callback): | |
11216 | Use the lwp's status_pending_p field, not the thread's. | |
11217 | ||
b90fc188 PA |
11218 | 2015-03-19 Pedro Alves <palves@redhat.com> |
11219 | ||
11220 | * linux-low.c (select_event_lwp_callback): Update comments to | |
11221 | no longer mention SIGTRAP. | |
11222 | ||
464b0089 GB |
11223 | 2015-03-18 Gary Benson <gbenson@redhat.com> |
11224 | ||
11225 | * server.c (handle_query): Do not report vFile:fstat as supported. | |
11226 | ||
aa9e327f GB |
11227 | 2015-03-11 Gary Benson <gbenson@redhat.com> |
11228 | ||
11229 | * hostio.c (sys/types.h): New include. | |
11230 | (sys/stat.h): Likewise. | |
11231 | (common-remote-fileio.h): Likewise. | |
11232 | (handle_fstat): New function. | |
11233 | (handle_vFile): Handle vFile:fstat packets. | |
aa9e327f | 11234 | |
791c0056 GB |
11235 | 2015-03-11 Gary Benson <gbenson@redhat.com> |
11236 | ||
11237 | * configure.ac (AC_CHECK_MEMBERS): Add checks for | |
11238 | struct stat.st_blocks and struct stat.st_blksize. | |
11239 | * configure: Regenerate. | |
11240 | * config.in: Likewise. | |
11241 | * Makefile.in (SFILES): Add common/common-remote-fileio.c. | |
11242 | (OBS): Add common-remote-fileio.o. | |
11243 | (common-remote-fileio.o): New rule. | |
11244 | ||
9a9df970 PA |
11245 | 2015-03-09 Pedro Alves <palves@redhat.com> |
11246 | ||
11247 | * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to | |
11248 | 'struct sockaddr' pointer in 'accept' call. | |
11249 | ||
9eb1356e PA |
11250 | 2015-03-09 Pedro Alves <palves@redhat.com> |
11251 | ||
11252 | Revert: | |
11253 | 2015-03-07 Pedro Alves <palves@redhat.com> | |
11254 | * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>, | |
11255 | or <winsock2.h> here. Instead include "gdb_socket.h". | |
11256 | (remote_open): Use union gdb_sockaddr_u. | |
11257 | * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h> | |
11258 | or <winsock2.h> here. Instead include "gdb_socket.h". | |
11259 | (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u. | |
11260 | * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h> | |
11261 | or <sys/un.h>. | |
11262 | (init_named_socket, gdb_agent_helper_thread): Use union | |
11263 | gdb_sockaddr_u. | |
11264 | ||
aac331e4 PA |
11265 | 2015-03-07 Pedro Alves <palves@redhat.com> |
11266 | ||
11267 | * configure.ac (build_warnings): Move | |
11268 | -Wdeclaration-after-statement to the C-specific set. | |
11269 | * configure: Regenerate. | |
11270 | ||
366c75fc PA |
11271 | 2015-03-07 Pedro Alves <palves@redhat.com> |
11272 | ||
11273 | * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>, | |
11274 | or <winsock2.h> here. Instead include "gdb_socket.h". | |
11275 | (remote_open): Use union gdb_sockaddr_u. | |
11276 | * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h> | |
11277 | or <winsock2.h> here. Instead include "gdb_socket.h". | |
11278 | (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u. | |
11279 | * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h> | |
11280 | or <sys/un.h>. | |
11281 | (init_named_socket, gdb_agent_helper_thread): Use union | |
11282 | gdb_sockaddr_u. | |
11283 | ||
492d29ea PA |
11284 | 2015-03-07 Pedro Alves <palves@redhat.com> |
11285 | ||
11286 | Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH | |
11287 | instead. | |
11288 | ||
60a191ed YQ |
11289 | 2015-03-06 Yao Qi <yao.qi@linaro.org> |
11290 | ||
11291 | * linux-aarch64-low.c (aarch64_insert_point): Use | |
11292 | show_debug_regs as a boolean. | |
11293 | (aarch64_remove_point): Likewise. | |
11294 | ||
f5771b1d PA |
11295 | 2015-03-05 Pedro Alves <palves@redhat.com> |
11296 | ||
11297 | * lynx-low.c (lynx_target_ops): Install NULL hooks for | |
11298 | stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint, | |
11299 | stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint. | |
11300 | * nto-low.c (nto_target_ops): Likewise. | |
11301 | * spu-low.c (spu_target_ops): Likewise. | |
11302 | * win32-low.c (win32_target_ops): Likewise. | |
11303 | ||
3e572f71 PA |
11304 | 2015-03-04 Pedro Alves <palves@redhat.com> |
11305 | ||
72f4393d | 11306 | * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: |
3e572f71 PA |
11307 | Decide whether a breakpoint triggered based on the SIGTRAP's |
11308 | siginfo.si_code. | |
72f4393d L |
11309 | (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a |
11310 | breakpoint is inserted if relying on SIGTRAP's siginfo.si_code. | |
3e572f71 PA |
11311 | (linux_low_filter_event): Check for breakpoints before checking |
11312 | watchpoints. | |
11313 | (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's | |
11314 | siginfo.si_code. | |
72f4393d L |
11315 | (linux_stopped_by_sw_breakpoint) |
11316 | (linux_supports_stopped_by_sw_breakpoint) | |
11317 | (linux_stopped_by_hw_breakpoint) | |
11318 | (linux_supports_stopped_by_hw_breakpoint): New functions. | |
11319 | (linux_target_ops): Install new target methods. | |
3e572f71 | 11320 | |
1ec68e26 PA |
11321 | 2015-03-04 Pedro Alves <palves@redhat.com> |
11322 | ||
11323 | * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak. | |
11324 | * server.c (swbreak_feature, hwbreak_feature): New globals. | |
11325 | (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+". | |
11326 | (captured_main): Clear swbreak_feature and hwbreak_feature. | |
11327 | * server.h (swbreak_feature, hwbreak_feature): Declare. | |
11328 | * target.h (struct target_ops) <stopped_by_sw_breakpoint, | |
11329 | supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint, | |
11330 | supports_stopped_by_hw_breakpoint>: New fields. | |
11331 | (target_supports_stopped_by_sw_breakpoint) | |
11332 | (target_stopped_by_sw_breakpoint) | |
11333 | (target_supports_stopped_by_hw_breakpoint) | |
11334 | (target_stopped_by_hw_breakpoint): Declare. | |
11335 | ||
15c66dd6 PA |
11336 | 2015-03-04 Pedro Alves <palves@redhat.com> |
11337 | ||
11338 | enum lwp_stop_reason -> enum target_stop_reason | |
11339 | * linux-low.c (check_stopped_by_breakpoint): Adjust. | |
11340 | (thread_still_has_status_pending_p, check_stopped_by_watchpoint) | |
11341 | (linux_wait_1, stuck_in_jump_pad_callback) | |
11342 | (move_out_of_jump_pad_callback, linux_resume_one_lwp) | |
11343 | (linux_stopped_by_watchpoint): | |
11344 | * linux-low.h (enum lwp_stop_reason): Delete. | |
11345 | (struct lwp_info) <stop_reason>: Now an enum target_stop_reason. | |
11346 | * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust. | |
11347 | ||
98fc70d6 YQ |
11348 | 2015-03-04 Yao Qi <yao.qi@linaro.org> |
11349 | ||
11350 | * Makefile.in (SFILES): Add linux-aarch64-low.c. | |
11351 | ||
dd2ac174 GB |
11352 | 2015-03-03 Gary Benson <gbenson@redhat.com> |
11353 | ||
11354 | * hostio.c (handle_vFile): Fix prefix lengths. | |
11355 | ||
d68e53f4 MM |
11356 | 2015-03-03 Markus Metzger <markus.t.metzger@intel.com> |
11357 | ||
11358 | * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero | |
11359 | ptr_bits. | |
11360 | ||
bf2d68ab AA |
11361 | 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com> |
11362 | ||
11363 | * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c) | |
11364 | (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules. | |
11365 | (clean): Add "rm -f" for above C files. | |
11366 | * configure.srv (srv_regobj): Add s390-vx-linux64.o, | |
11367 | s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o. | |
11368 | (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml, | |
11369 | s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml. | |
11370 | * linux-s390-low.c (HWCAP_S390_VX): New macro. | |
11371 | (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64) | |
11372 | (init_registers_s390x_vx_linux64) | |
11373 | (init_registers_s390x_tevx_linux64) | |
11374 | (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64) | |
11375 | (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern | |
11376 | declarations. | |
11377 | (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high) | |
11378 | (s390_store_vxrs_high): New functions. | |
11379 | (s390_regsets): Add entries for NT_S390_VXRS_LOW and | |
11380 | NT_S390_VXRS_HIGH. | |
11381 | (s390_arch_setup): Add logic for selecting one of the new target | |
11382 | descriptions. Activate the new vector regsets if applicable. | |
11383 | (initialize_low_arch): Also invoke init_registers_s390_vx_linux64, | |
11384 | init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64, | |
11385 | and init_registers_s390x_tevx_linux64. | |
11386 | ||
c966a859 PA |
11387 | 2015-03-01 Pedro Alves <palves@redhat.com> |
11388 | ||
11389 | * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs' | |
11390 | parameter. | |
11391 | ||
4180215b PA |
11392 | 2015-02-27 Pedro Alves <palves@redhat.com> |
11393 | ||
11394 | * linux-x86-low.c (u_debugreg_offset): New function. | |
11395 | (x86_linux_dr_get, x86_linux_dr_set): Use it. | |
11396 | ||
749bab01 PA |
11397 | 2015-02-27 Pedro Alves <palves@redhat.com> |
11398 | ||
11399 | * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP. | |
11400 | [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare. | |
11401 | [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread) | |
11402 | ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs) | |
11403 | (ps_lsetfpregs, ps_getpid) | |
11404 | (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue) | |
11405 | (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs) | |
11406 | (ps_lsetxregs, ps_plog): Declare. | |
11407 | ||
3c14e5a3 PA |
11408 | 2015-02-27 Pedro Alves <palves@redhat.com> |
11409 | ||
11410 | * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use | |
11411 | IP_AGENT_EXPORT_FUNC. | |
11412 | * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use | |
11413 | IP_AGENT_EXPORT_FUNC. | |
11414 | * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR) | |
11415 | (IP_AGENT_EXPORT): Delete. | |
11416 | (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end) | |
11417 | (gdb_trampoline_buffer, gdb_trampoline_buffer_end) | |
11418 | (gdb_trampoline_buffer_error, collecting, gdb_collect) | |
11419 | (stop_tracing, flush_trace_buffer, about_to_request_buffer_space) | |
11420 | (trace_buffer_is_full, stopping_tracepoint, expr_eval_result) | |
11421 | (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl) | |
11422 | (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi) | |
11423 | (traceframe_read_count, traceframe_write_count) | |
11424 | (traceframes_created, trace_state_variables, get_raw_reg) | |
11425 | (get_trace_state_variable_value, set_trace_state_variable_value) | |
11426 | (ust_loaded, helper_thread_id, cmd_buf): Use | |
11427 | IPA_SYM_EXPORTED_NAME. | |
11428 | (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC. | |
11429 | (tracepoints) Use IP_AGENT_EXPORT_VAR. | |
11430 | (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use | |
11431 | IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP. | |
11432 | (last_tracepoint): Move into !IN_PROCESS_AGENT block. | |
11433 | (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in | |
11434 | EXTERN_C_PUSH/EXTERN_C_POP. | |
11435 | (trace_state_variables): Use IP_AGENT_EXPORT_VAR. | |
11436 | (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and | |
11437 | wrap in EXTERN_C_PUSH/EXTERN_C_POP. | |
11438 | (trace_buffer_ctrl, trace_buffer_ctrl_curr) | |
11439 | (traceframe_write_count, traceframe_read_count) | |
11440 | (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR. | |
11441 | (about_to_request_buffer_space, get_trace_state_variable_value) | |
11442 | (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC. | |
11443 | (collecting): Use IP_AGENT_EXPORT_VAR and wrap in | |
11444 | EXTERN_C_PUSH/EXTERN_C_POP. | |
11445 | (gdb_collect): Use IP_AGENT_EXPORT_FUNC. | |
11446 | (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR. | |
11447 | (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR | |
11448 | and wrap in EXTERN_C_PUSH/EXTERN_C_POP. | |
11449 | (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end) | |
11450 | (gdb_trampoline_buffer, gdb_trampoline_buffer_end) | |
11451 | (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR. | |
11452 | * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL): | |
11453 | Define. | |
11454 | (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR) | |
11455 | (IP_AGENT_EXPORT_VAR_DECL): Define. | |
11456 | (tracing): Declare. | |
11457 | (gdb_agent_get_raw_reg): Declare. | |
11458 | ||
fe978cb0 PA |
11459 | 2015-02-27 Tom Tromey <tromey@redhat.com> |
11460 | Pedro Alves <palves@redhat.com> | |
11461 | ||
11462 | Rename symbols whose names are reserved C++ keywords throughout. | |
11463 | ||
3bc3d82a PA |
11464 | 2015-02-27 Pedro Alves <palves@redhat.com> |
11465 | ||
11466 | * Makefile.in (COMPILER): New, get it from autoconf. | |
11467 | (CXX): Get from autoconf instead. | |
11468 | (COMPILE.pre): Use COMPILER. | |
11469 | (CC-LD): Rename to ... | |
11470 | (CC_LD): ... this. Use COMPILER. | |
11471 | (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust. | |
11472 | (CXX_FOR_TARGET): Default to g++ instead of gcc. | |
11473 | * acinclude.m4: Include build-with-cxx.m4. | |
11474 | * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX. | |
11475 | Disable -Werror by default if building in C++ mode. | |
11476 | (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and | |
11477 | -Wno-narrowing in C++ mode. Run supported-warning-flags tests with | |
11478 | the C++ compiler. Save/restore CXXFLAGS too. | |
11479 | * configure: Regenerate. | |
11480 | ||
07697489 PA |
11481 | 2015-02-27 Pedro Alves <palves@redhat.com> |
11482 | ||
11483 | * acinclude.m4: Include libiberty.m4. | |
11484 | * configure.ac: Call libiberty_INIT. | |
11485 | * config.in, configure: Regenerate. | |
11486 | ||
9beb7c4e PA |
11487 | 2015-02-26 Pedro Alves <palves@redhat.com> |
11488 | ||
11489 | * linux-low.c (linux_wait_1): When incrementing the PC past a | |
11490 | program breakpoint always use the_low_target.breakpoint_len as | |
11491 | increment, rather than the maximum between that and | |
11492 | the_low_target.decr_pc_after_break. | |
11493 | ||
8090aef2 PA |
11494 | 2015-02-23 Pedro Alves <palves@redhat.com> |
11495 | ||
11496 | * linux-low.c (check_stopped_by_breakpoint): Don't check if the | |
11497 | thread was doing a step-over; always adjust the PC if | |
11498 | we stepped over a permanent breakpoint. | |
11499 | (linux_wait_1): If we stepped over breakpoint that was on top of a | |
11500 | permanent breakpoint, manually advance the PC past it. | |
11501 | ||
bc9540e8 PA |
11502 | 2015-02-23 Pedro Alves <palves@redhat.com> |
11503 | ||
11504 | * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit | |
11505 | modes. | |
11506 | (x86_fill_gregset, x86_store_gregset): Use it when handling | |
11507 | $orig_eax. | |
11508 | ||
2db9a427 PA |
11509 | 2015-02-20 Pedro Alves <palves@redhat.com> |
11510 | ||
11511 | * thread-db.c: Include "nat/linux-procfs.h". | |
11512 | (thread_db_init): Skip listing new threads if the kernel supports | |
11513 | PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible. | |
11514 | ||
afa8d396 PA |
11515 | 2015-02-20 Pedro Alves <palves@redhat.com> |
11516 | ||
11517 | * linux-low.c (status_pending_p_callback): Use ptid_match. | |
11518 | ||
c9587f88 AT |
11519 | 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com> |
11520 | ||
11521 | PR breakpoints/16812 | |
11522 | * linux-low.c (wstatus_maybe_breakpoint): Remove. | |
11523 | (linux_low_filter_event): Update wstatus_maybe_breakpoint name. | |
11524 | (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV. | |
11525 | ||
b05ec7a5 AT |
11526 | 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com> |
11527 | ||
11528 | PR breakpoints/15956 | |
11529 | * tracepoint.c (cmd_qtinit): Add check for current_thread. | |
11530 | ||
d33501a5 MM |
11531 | 2015-02-09 Markus Metzger <markus.t.metzger@intel.com> |
11532 | ||
11533 | * linux-low.c (linux_low_btrace_conf): Print size. | |
11534 | * server.c (handle_btrace_conf_general_set): New. | |
11535 | (hanle_general_set): Call handle_btrace_conf_general_set. | |
11536 | (handle_query): Report Qbtrace-conf:bts:size as supported. | |
11537 | ||
f4abbc16 MM |
11538 | 2015-02-09 Markus Metzger <markus.t.metzger@intel.com> |
11539 | ||
11540 | * linux-low.c (linux_low_enable_btrace): Update parameters. | |
11541 | (linux_low_btrace_conf): New. | |
11542 | (linux_target_ops)<to_btrace_conf>: Initialize. | |
11543 | * server.c (current_btrace_conf): New. | |
11544 | (handle_btrace_enable): Rename to ... | |
11545 | (handle_btrace_enable_bts): ... this. Pass ¤t_btrace_conf | |
11546 | to target_enable_btrace. Update comment. Update users. | |
11547 | (handle_qxfer_btrace_conf): New. | |
11548 | (qxfer_packets): Add btrace-conf entry. | |
11549 | (handle_query): Report qXfer:btrace-conf:read as supported packet. | |
11550 | * target.h (target_ops)<enable_btrace>: Update parameters and comment. | |
11551 | (target_ops)<read_btrace_conf>: New. | |
11552 | (target_enable_btrace): Update parameters. | |
11553 | (target_read_btrace_conf): New. | |
11554 | ||
043c3577 MM |
11555 | 2015-02-09 Markus Metzger <markus.t.metzger@intel.com> |
11556 | ||
11557 | * server.c (handle_btrace_general_set): Remove call to | |
11558 | target_supports_btrace. | |
11559 | (supported_btrace_packets): New. | |
11560 | (handle_query): Call supported_btrace_packets. | |
11561 | * target.h: include btrace-common.h. | |
11562 | (btrace_target_info): Removed. | |
11563 | (supports_btrace, target_supports_btrace): Update parameters. | |
11564 | ||
734b0e4b MM |
11565 | 2015-02-09 Markus Metzger <markus.t.metzger@intel.com> |
11566 | ||
11567 | * Makefile.in (SFILES): Add common/btrace-common.c. | |
11568 | (OBS): Add common/btrace-common.o. | |
11569 | (btrace-common.o): Add build rules. | |
11570 | * linux-low: Include btrace-common.h. | |
11571 | (linux_low_read_btrace): Use struct btrace_data. Call | |
11572 | btrace_data_init and btrace_data_fini. | |
11573 | ||
d6c146e9 PA |
11574 | 2015-02-06 Pedro Alves <palves@redhat.com> |
11575 | ||
11576 | * thread-db.c (find_new_threads_callback): Add debug output. | |
11577 | ||
20ba1ce6 PA |
11578 | 2015-02-04 Pedro Alves <palves@redhat.com> |
11579 | ||
11580 | * linux-low.c (handle_extended_wait): Don't resume LWPs here. | |
11581 | (resume_stopped_resumed_lwps): New function. | |
11582 | (linux_wait_for_event_filtered): Use it. | |
11583 | ||
8cc73a39 SDJ |
11584 | 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com> |
11585 | ||
11586 | * Makefile.in (SFILES): Add linux-personality.c. | |
11587 | (linux-personality.o): New rule. | |
11588 | * configure.srv (srv_linux_obj): Add linux-personality.o to the | |
11589 | list of objects to be built. | |
11590 | * linux-low.c: Include nat/linux-personality.h. | |
11591 | (linux_create_inferior): Remove code to disable address space | |
11592 | randomization (moved to ../nat/linux-personality.c). Create | |
11593 | cleanup to disable address space randomization. | |
11594 | ||
fb23d554 SDJ |
11595 | 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com> |
11596 | ||
11597 | * Makefile.in (posix-strerror.o): New rule. | |
11598 | (mingw-strerror.o): Likewise. | |
11599 | * configure: Regenerated. | |
11600 | * configure.ac: Source file ../common/common.host. Initialize new | |
11601 | variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES. | |
11602 | ||
cdf43629 YQ |
11603 | 2015-01-14 Yao Qi <yao@codesourcery.com> |
11604 | ||
11605 | * Makefile.in (SFILES): Add nat/ppc-linux.c. | |
11606 | (ppc-linux.o): New rule. | |
11607 | * configure.srv (powerpc*-*-linux*): Add ppc-linux.o. | |
11608 | * configure.ac: AC_CHECK_FUNCS(getauxval). | |
11609 | * config.in: Re-generated. | |
11610 | * configure: Re-generated. | |
11611 | * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call | |
11612 | ppc64_64bit_inferior_p | |
11613 | ||
514c5338 YQ |
11614 | 2015-01-14 Yao Qi <yao@codesourcery.com> |
11615 | ||
11616 | * linux-ppc-low.c: Include "nat/ppc-linux.h". | |
11617 | (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h. | |
11618 | (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise. | |
11619 | (PT_ORIG_R3, PT_TRAP): Likewise. | |
11620 | (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise. | |
11621 | (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise. | |
11622 | (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise. | |
11623 | ||
3368c1e5 JB |
11624 | 2015-01-10 Joel Brobecker <brobecker@adacore.com> |
11625 | ||
11626 | * i387-fp.c (i387_cache_to_xsave): In look over | |
11627 | num_avx512_zmmh_high_registers, replace use of struct i387_xsave | |
11628 | zmmh_low_space field by use of zmmh_high_space. | |
11629 | ||
582511be PA |
11630 | 2015-01-09 Pedro Alves <palves@redhat.com> |
11631 | ||
11632 | * linux-low.c (step_over_bkpt): Move higher up in the file. | |
11633 | (handle_extended_wait): Don't store the stop_pc here. | |
11634 | (get_stop_pc): Adjust comments and rename to ... | |
11635 | (check_stopped_by_breakpoint): ... this. Record whether the LWP | |
11636 | stopped for a software breakpoint or hardware breakpoint. | |
11637 | (thread_still_has_status_pending_p): New function. | |
11638 | (status_pending_p_callback): Use | |
11639 | thread_still_has_status_pending_p. If the event is no longer | |
11640 | interesting, resume the LWP. | |
11641 | (handle_tracepoints): Add assert. | |
11642 | (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call. | |
11643 | (wstatus_maybe_breakpoint): New function. | |
11644 | (cancel_breakpoint): Delete function. | |
11645 | (check_stopped_by_watchpoint): New function, factored out from | |
11646 | linux_low_filter_event. | |
11647 | (lp_status_maybe_breakpoint): Delete function. | |
11648 | (linux_low_filter_event): Remove filter_ptid argument. | |
11649 | Leave thread group exits pending here. Store the LWP's stop PC. | |
11650 | Always leave events pending. | |
11651 | (linux_wait_for_event_filtered): Pull all events out of the | |
11652 | kernel, and leave them all pending. | |
11653 | (count_events_callback, select_event_lwp_callback): Consider all | |
11654 | events. | |
11655 | (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete. | |
11656 | (select_event_lwp): Only give preference to the stepping LWP in | |
11657 | all-stop mode. Adjust comments. | |
11658 | (ignore_event): New function. | |
11659 | (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove | |
11660 | references to cancel_breakpoints. Adjust to renames. Also give | |
11661 | equal priority to all LWPs that have had events in non-stop mode. | |
11662 | If reporting a software breakpoint event, unadjust the LWP's PC. | |
11663 | (linux_wait): If linux_wait_1 returned an ignored event, retry. | |
11664 | (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): | |
11665 | Adjust. | |
11666 | (linux_resume_one_lwp): Store the LWP's PC. Adjust. | |
11667 | (resume_status_pending_p): Use thread_still_has_status_pending_p. | |
11668 | (linux_stopped_by_watchpoint): Adjust. | |
11669 | (linux_target_ops): Remove reference to linux_cancel_breakpoints. | |
11670 | * linux-low.h (enum lwp_stop_reason): New. | |
11671 | (struct lwp_info) <stop_pc>: Adjust comment. | |
11672 | <stopped_by_watchpoint>: Delete field. | |
11673 | <stop_reason>: New field. | |
11674 | * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust. | |
11675 | * mem-break.c (software_breakpoint_inserted_here) | |
11676 | (hardware_breakpoint_inserted_here): New function. | |
11677 | * mem-break.h (software_breakpoint_inserted_here) | |
11678 | (hardware_breakpoint_inserted_here): Declare. | |
11679 | * target.h (struct target_ops) <cancel_breakpoints>: Remove field. | |
11680 | (cancel_breakpoints): Delete. | |
11681 | * tracepoint.c (clear_installed_tracepoints, stop_tracing) | |
11682 | (upload_fast_traceframes): Remove references to | |
11683 | cancel_breakpoints. | |
11684 | ||
a33e3959 PA |
11685 | 2015-01-09 Pedro Alves <palves@redhat.com> |
11686 | ||
11687 | * thread-db.c (find_new_threads_callback): Ignore thread if the | |
11688 | kernel thread ID is -1. | |
11689 | ||
8784d563 PA |
11690 | 2015-01-09 Pedro Alves <palves@redhat.com> |
11691 | ||
11692 | * linux-low.c (linux_attach_fail_reason_string): Move to | |
11693 | nat/linux-ptrace.c, and rename. | |
11694 | (linux_attach_lwp): Update comment. | |
11695 | (attach_proc_task_lwp_callback): New function. | |
11696 | (linux_attach): Adjust to rename and use | |
11697 | linux_proc_attach_tgid_threads. | |
11698 | (linux_attach_fail_reason_string): Delete declaration. | |
11699 | ||
76f2b779 JB |
11700 | 2015-01-01 Joel Brobecker <brobecker@adacore.com> |
11701 | ||
11702 | * gdbreplay.c (gdbreplay_version): Update copyright year to 2015. | |
11703 | * server.c (gdbserver_version): Likewise. | |
11704 | ||
fafcc06a SDJ |
11705 | 2014-12-29 Sergio Durigan Junior <sergiodj@redhat.com> |
11706 | ||
11707 | * remote-utils.c: Include ctype.h. | |
11708 | (input_interrupt): Explicitly handle the case when the char | |
11709 | received is the NUL byte. Improve the printing of non-ASCII | |
11710 | characters. | |
11711 | ||
beed38b8 JB |
11712 | 2014-12-16 Joel Brobecker <brobecker@adacore.com> |
11713 | ||
11714 | * linux-low.c (linux_low_filter_event): Update call to | |
11715 | linux_enable_event_reporting following the addition of | |
11716 | a new parameter to that function. | |
11717 | ||
bf330350 CU |
11718 | 2014-12-16 Catalin Udma <catalin.udma@freescale.com> |
11719 | ||
11720 | PR server/17457 | |
11721 | * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define. | |
11722 | (AARCH64_FPCR_REGNO): Likewise. | |
11723 | (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers. | |
11724 | (aarch64_fill_fpregset): Add missing fpsr/fpcr registers. | |
11725 | (aarch64_store_fpregset): Likewise. | |
11726 | ||
5227d625 JB |
11727 | 2014-12-15 Joel Brobecker <brobecker@adacore.com> |
11728 | ||
11729 | * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1. | |
11730 | Remove FIXME comment about assumption about N. | |
11731 | ||
f93b65a0 JB |
11732 | 2014-12-13 Joel Brobecker <brobecker@adacore.com> |
11733 | ||
11734 | * configure.ac: If large-file support is disabled in GDBserver, | |
11735 | pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib". | |
11736 | * configure: Regenerate. | |
11737 | ||
e5a9158d AA |
11738 | 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com> |
11739 | ||
11740 | * linux-low.c (regsets_fetch_inferior_registers): Suppress the | |
11741 | warning upon ENODATA from ptrace. | |
11742 | * linux-s390-low.c (s390_store_tdb): New. | |
11743 | (s390_regsets): Add regset for NT_S390_TDB. | |
11744 | ||
feea5f36 AA |
11745 | 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com> |
11746 | ||
11747 | * linux-low.c (regsets_store_inferior_registers): Skip regsets | |
11748 | without a fill_function. | |
11749 | * linux-s390-low.c (s390_fill_last_break): Remove. | |
11750 | (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK. | |
11751 | (s390_arch_setup): Use regset's size instead of fill_function for | |
11752 | loop end condition. | |
11753 | ||
098dbe61 AA |
11754 | 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com> |
11755 | ||
11756 | * linux-low.c (regsets_fetch_inferior_registers): Do not invoke | |
11757 | the regset's store function when ptrace returned an error. | |
11758 | * regcache.c (get_thread_regcache): Invalidate register cache | |
11759 | before fetching inferior's registers. | |
11760 | ||
28eef672 AA |
11761 | 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com> |
11762 | ||
11763 | * linux-low.c (regsets_fetch_inferior_registers): Rephrase | |
11764 | while-loop as for-loop. | |
11765 | (regsets_store_inferior_registers): Likewise. | |
11766 | ||
bdca27a2 YQ |
11767 | 2014-11-28 Yao Qi <yao@codesourcery.com> |
11768 | ||
11769 | * configure.ac(AC_CHECK_FUNCS): Remove readlink. | |
11770 | * config.in, configure: Re-generate. | |
11771 | * hostio.c (handle_unlink): Remove code checking HAVE_READLINK | |
11772 | is defined. | |
11773 | ||
9c232dda YQ |
11774 | 2014-11-21 Yao Qi <yao@codesourcery.com> |
11775 | ||
11776 | * configure.ac: Don't invoke AC_FUNC_ALLOCA. | |
11777 | (AC_CHECK_HEADERS): Remove malloc.h. | |
11778 | * configure: Re-generated. | |
11779 | * config.in: Re-generated. | |
11780 | * server.h: Don't include alloca.h and malloc.h. | |
11781 | * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined. | |
11782 | Don't include malloc.h. | |
11783 | ||
43968415 JB |
11784 | 2014-11-17 Joel Brobecker <brobecker@adacore.com> |
11785 | ||
11786 | * lynx-low.c (lynx_write_memory): Put lynx_read_memory and | |
11787 | corresponding ERRNO check in same block. | |
11788 | ||
40e91bc7 PA |
11789 | 2014-11-12 Pedro Alves <palves@redhat.com> |
11790 | ||
11791 | * server.c (cont_thread): Update comment. | |
11792 | (start_inferior, attach_inferior): No longer clear cont_thread. | |
11793 | (handle_v_cont): No longer set cont_thread. | |
11794 | (captured_main): Clear cont_thread each time a GDB connects. | |
11795 | ||
c2c118cf PA |
11796 | 2014-11-12 Pedro Alves <palves@redhat.com> |
11797 | ||
11798 | * linux-low.c (linux_wait_1): Don't force a wait for the Hc | |
11799 | thread, and don't resume all threads if the Hc thread has exited. | |
11800 | ||
78708b7c PA |
11801 | 2014-11-12 Pedro Alves <palves@redhat.com> |
11802 | ||
11803 | * linux-low.c (linux_request_interrupt): Always send a SIGINT to | |
11804 | the process group instead of to a specific LWP. | |
11805 | ||
a2abc7de PA |
11806 | 2014-10-15 Pedro Alves <palves@redhat.com> |
11807 | ||
11808 | PR server/17487 | |
11809 | * win32-arm-low.c (arm_set_thread_context): Remove current_event | |
11810 | parameter. | |
11811 | (arm_set_thread_context): Delete. | |
11812 | (the_low_target): Adjust. | |
11813 | * win32-i386-low.c (debug_registers_changed) | |
11814 | (debug_registers_used): Delete. | |
11815 | (update_debug_registers_callback): New function. | |
11816 | (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as | |
11817 | needing to update their debug registers. | |
11818 | (win32_get_current_dr): New function. | |
11819 | (x86_dr_low_get_addr, x86_dr_low_get_control) | |
11820 | (x86_dr_low_get_status): Fetch the debug register from the thread | |
11821 | record's context. | |
11822 | (i386_initial_stuff): Adjust. | |
11823 | (i386_get_thread_context): Remove current_event parameter. Don't | |
11824 | clear debug_registers_changed nor copy DR values to | |
11825 | debug_reg_state. | |
11826 | (i386_set_thread_context): Delete. | |
11827 | (i386_prepare_to_resume): New function. | |
11828 | (i386_thread_added): Mark the thread as needing to update irs | |
11829 | debug registers. | |
11830 | (the_low_target): Remove i386_set_thread_context and install | |
11831 | i386_prepare_to_resume. | |
11832 | * win32-low.c (win32_get_thread_context): Adjust. | |
11833 | (win32_set_thread_context): Use SetThreadContext | |
11834 | directly. | |
11835 | (win32_prepare_to_resume): New function. | |
11836 | (win32_require_context): New function, factored out from ... | |
11837 | (thread_rec): ... this. | |
11838 | (continue_one_thread): Call win32_prepare_to_resume on each thread | |
11839 | we're about to continue. | |
11840 | (win32_resume): Call win32_prepare_to_resume on the event thread. | |
11841 | * win32-low.h (struct win32_thread_info) | |
11842 | <debug_registers_changed>: New field. | |
11843 | (struct win32_target_ops): Change prototype of set_thread_context, | |
11844 | delete set_thread_context and add prepare_to_resume. | |
11845 | (win32_require_context): New declaration. | |
11846 | ||
a442d071 GB |
11847 | 2014-10-08 Gary Benson <gbenson@redhat.com> |
11848 | ||
11849 | * server.h: Do not include common-exceptions.h. | |
11850 | ||
6f1947e8 GB |
11851 | 2014-10-08 Gary Benson <gbenson@redhat.com> |
11852 | ||
11853 | * server.h: Do not include cleanups.h. | |
11854 | ||
63b434a4 JH |
11855 | 2014-09-30 James Hogan <james.hogan@imgtec.com> |
11856 | ||
11857 | * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and | |
11858 | mips64-dsp-linux.c. | |
11859 | ||
c4d9ceb6 YQ |
11860 | 2014-09-23 Yao Qi <yao@codesourcery.com> |
11861 | ||
11862 | * linux-low.c (lp_status_maybe_breakpoint): New function. | |
11863 | (linux_low_filter_event): Call lp_status_maybe_breakpoint. | |
11864 | (count_events_callback): Likewise. | |
11865 | (select_event_lwp_callback): Likewise. | |
11866 | (cancel_breakpoints_callback): Likewise. | |
11867 | ||
89a5711c DB |
11868 | 2014-09-19 Don Breazeal <donb@codesourcery.com> |
11869 | ||
11870 | * linux-low.c (handle_extended_wait): Call | |
11871 | linux_ptrace_get_extended_event. | |
11872 | (get_stop_pc, get_detach_signal, linux_low_filter_event): Call | |
11873 | linux_is_extended_waitstatus. | |
11874 | ||
bffc0964 JB |
11875 | 2014-09-16 Joel Brobecker <brobecker@adacore.com> |
11876 | ||
11877 | * Makefile.in (CPPFLAGS): Define. | |
11878 | (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}. | |
11879 | (IPAGENT_CFLAGS): Remove ${CPPFLAGS}. | |
11880 | ||
0bfdf32f GB |
11881 | 2014-09-16 Gary Benson <gbenson@redhat.com> |
11882 | ||
11883 | * inferiors.h (current_inferior): Renamed as... | |
11884 | (current_thread): New variable. All uses updated. | |
11885 | * linux-low.c (get_pc): Renamed saved_inferior as saved_thread. | |
11886 | (maybe_move_out_of_jump_pad): Likewise. | |
11887 | (cancel_breakpoint): Likewise. | |
11888 | (linux_low_filter_event): Likewise. | |
11889 | (wait_for_sigstop): Likewise. | |
11890 | (linux_resume_one_lwp): Likewise. | |
11891 | (need_step_over_p): Likewise. | |
11892 | (start_step_over): Likewise. | |
11893 | (linux_stabilize_threads): Renamed save_inferior as saved_thread. | |
11894 | * linux-x86-low.c (x86_linux_update_xmltarget): Likewise. | |
11895 | * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread | |
11896 | and save_inferior as saved_thread. | |
11897 | * regcache.c (get_thread_regcache): Renamed saved_inferior as | |
11898 | saved_thread. | |
11899 | (regcache_invalidate_thread): Likewise. | |
11900 | * remote-utils.c (prepare_resume_reply): Likewise. | |
11901 | * thread-db.c (thread_db_get_tls_address): Likewise. | |
11902 | (disable_thread_event_reporting): Likewise. | |
11903 | (remove_thread_event_breakpoints): Likewise. | |
11904 | * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior | |
11905 | as saved_thread. | |
11906 | * target.h (set_desired_inferior): Renamed as... | |
11907 | (set_desired_thread): New declaration. All uses updated. | |
11908 | * server.c (myresume): Updated comment to reference thread instead | |
11909 | of inferior. | |
11910 | (handle_serial_event): Likewise. | |
11911 | (handle_target_event): Likewise. | |
11912 | ||
361c8ade GB |
11913 | 2014-09-12 Tom Tromey <tromey@redhat.com> |
11914 | Gary Benson <gbenson@redhat.com> | |
11915 | ||
11916 | * regcache.h: Include common-regcache.h. | |
11917 | (regcache_read_pc): Don't declare. | |
11918 | * regcache.c (get_thread_regcache_for_ptid): New function. | |
11919 | ||
bd9269f7 GB |
11920 | 2014-09-11 Tom Tromey <tromey@redhat.com> |
11921 | Gary Benson <gbenson@redhat.com> | |
11922 | ||
11923 | * symbol.c: New file. | |
11924 | * Makefile.in (SFILES): Add symbol.c. | |
11925 | (OBS): Add symbol.o. | |
11926 | ||
f8c1d06b GB |
11927 | 2014-09-11 Gary Benson <gbenson@redhat.com> |
11928 | ||
11929 | * target.c (target_stop_ptid, target_continue_ptid): New | |
11930 | functions. | |
11931 | ||
721ec300 GB |
11932 | 2014-09-11 Tom Tromey <tromey@redhat.com> |
11933 | Gary Benson <gbenson@redhat.com> | |
11934 | ||
11935 | * target.h: Include target/target.h. | |
11936 | * target.c (target_read_memory, target_read_uint32) | |
11937 | (target_write_memory): New functions. | |
11938 | ||
c5e92cca GB |
11939 | 2014-09-11 Gary Benson <gbenson@redhat.com> |
11940 | ||
11941 | * server.h (debug_hw_points): Don't declare. | |
11942 | * server.c (debug_hw_points): Don't define. Replace all uses | |
11943 | with show_debug_regs. | |
11944 | * linux-aarch64-low.c (debug_hw_points): Don't define. Replace | |
11945 | all uses with show_debug_regs. | |
11946 | ||
2e4bb98a EBM |
11947 | 2014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com> |
11948 | ||
11949 | * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take | |
11950 | endianness into account. | |
11951 | (ppc_supply_ptrace_register): Likewise. | |
11952 | ||
ac740bc7 JH |
11953 | 2014-09-03 James Hogan <james.hogan@imgtec.com> |
11954 | ||
11955 | * linux-mips-low.c (mips_read_description): Reset errno to 0 prior | |
11956 | to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call. | |
11957 | ||
97ea6506 GB |
11958 | 2014-09-03 Gary Benson <gbenson@redhat.com> |
11959 | ||
11960 | * linux-x86-low.c (x86_linux_prepare_to_resume): Use | |
11961 | ALL_DEBUG_ADDRESS_REGISTERS. | |
11962 | ||
df7e5265 GB |
11963 | 2014-09-02 Gary Benson <gbenson@redhat.com> |
11964 | ||
11965 | * i386-low.h: Renamed as... | |
11966 | * x86-low.h: New file. All type, function and variable name | |
11967 | prefixes changed from "i386_" to "x86_". All references updated. | |
11968 | * i386-low.c: Renamed as... | |
11969 | * x86-low.c: New file. All type, function and variable name | |
11970 | prefixes changed from "i386_" to "x86_". All references updated. | |
11971 | ||
ed859da7 GB |
11972 | 2014-09-02 Gary Benson <gbenson@redhat.com> |
11973 | ||
11974 | * linux-x86-low.c (x86_linux_new_process): Use XCNEW. | |
11975 | (x86_linux_new_thread): Likewise. | |
11976 | ||
860789c7 GB |
11977 | 2014-08-29 Gary Benson <gbenson@redhat.com> |
11978 | ||
11979 | * server.h (setjmp.h): Do not include. | |
11980 | (toplevel): Do not declare. | |
11981 | (common-exceptions.h): Include. | |
11982 | (cleanups.h): Likewise. | |
11983 | * server.c (toplevel): Do not define. | |
11984 | (exit_code): New static global. | |
11985 | (detach_or_kill_for_exit_cleanup): New function. | |
11986 | (main): New function. Original main renamed to... | |
11987 | (captured_main): New function. | |
11988 | * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror. | |
11989 | ||
ff55e1b5 GB |
11990 | 2014-08-29 Gary Benson <gbenson@redhat.com> |
11991 | ||
11992 | * Makefile.in (SFILES): Add common/common-exceptions.c. | |
11993 | (OBS): Add common-exceptions.o. | |
11994 | (common-exceptions.o): New rule. | |
11995 | * utils.c (prepare_to_throw_exception): New function. | |
11996 | ||
e9bcb658 GB |
11997 | 2014-08-29 Gary Benson <gbenson@redhat.com> |
11998 | ||
11999 | * config.in: Regenerate. | |
12000 | * configure: Likewise. | |
12001 | ||
e3180625 GB |
12002 | 2014-08-29 Gary Benson <gbenson@redhat.com> |
12003 | ||
12004 | * Makefile.in (SFILES): Add common/cleanups.c. | |
12005 | (OBS): cleanups.o. | |
12006 | (cleanups.o): New rule. | |
12007 | ||
e3d6ba5d GB |
12008 | 2014-08-29 Gary Benson <gbenson@redhat.com> |
12009 | ||
12010 | * utils.c (internal_vwarning): New function. | |
12011 | ||
7096e886 GB |
12012 | 2014-08-28 Gary Benson <gbenson@redhat.com> |
12013 | ||
12014 | * utils.h (fatal): Remove declaration. | |
12015 | * utils.c (fatal): Remove function. | |
12016 | ||
14ce3192 GB |
12017 | 2014-08-28 Gary Benson <gbenson@redhat.com> |
12018 | ||
12019 | * tracepoint.c (gdb_agent_init): Replace fatal with | |
12020 | perror_with_name. | |
12021 | (initialize_tracepoint): Likewise. | |
12022 | ||
50278d59 GB |
12023 | 2014-08-28 Gary Benson <gbenson@redhat.com> |
12024 | ||
12025 | * remote-utils.c (remote_prepare): Replace fatal with error. | |
12026 | ||
aa96c426 GB |
12027 | 2014-08-28 Gary Benson <gbenson@redhat.com> |
12028 | ||
12029 | * linux-low.c (linux_async): Replace fatal with warning. | |
12030 | Tidy up and return. | |
12031 | (linux_start_non_stop): Return -1 if linux_async failed. | |
12032 | ||
f7160e97 GB |
12033 | 2014-08-28 Gary Benson <gbenson@redhat.com> |
12034 | ||
12035 | * linux-x86-low.c (i386_dr_low_set_addr): Replace check with | |
12036 | gdb_assert. | |
12037 | (i386_dr_low_get_addr): Remove vague comment. | |
12038 | * win32-i386-low.c (i386_dr_low_set_addr): Replace check with | |
12039 | gdb_assert. | |
12040 | ||
38e08fca GB |
12041 | 2014-08-28 Gary Benson <gbenson@redhat.com> |
12042 | ||
12043 | * inferiors.c (get_thread_process): Replace check with gdb_assert. | |
12044 | * linux-low.c (linux_wait_for_event_filtered): Replace fatal with | |
12045 | internal_error. | |
12046 | (linux_resume_one_lwp): Likewise. | |
12047 | * linux-x86-low.c (x86_siginfo_fixup): Replace checks with | |
12048 | gdb_assert. | |
12049 | * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal | |
12050 | with internal_error. | |
12051 | * regcache.c (get_thread_regcache): Replace check with gdb_assert. | |
12052 | (init_register_cache): Replace fatal with gdb_assert_not_reached. | |
12053 | (find_register_by_name): Replace fatal with internal_error. | |
12054 | (find_regno): Likewise. | |
12055 | * tdesc.c (init_target_desc): Replace check with gdb_assert. | |
12056 | * thread-db.c (thread_db_create_event): Likewise. | |
12057 | (thread_db_load_search): Likewise. | |
12058 | (try_thread_db_load_1): Likewise. | |
12059 | * tracepoint.c (get_jump_space_head): Replace fatal with | |
12060 | internal_error. | |
12061 | (claim_trampoline_space): Likewise. | |
12062 | (have_fast_tracepoint_trampoline_buffer): Likewise. | |
12063 | (cmd_qtstart): Likewise. | |
12064 | (stop_tracing): Likewise. | |
12065 | (fast_tracepoint_collecting): Likewise. | |
12066 | (target_malloc): Likewise. | |
12067 | (download_tracepoint): Likewise. | |
12068 | (download_trace_state_variables): Replace check with gdb_assert. | |
12069 | (upload_fast_traceframes): Replace fatal with internal_error. | |
12070 | ||
34abf635 GB |
12071 | 2014-08-19 Tom Tromey <tromey@redhat.com> |
12072 | Gary Benson <gbenson@redhat.com> | |
12073 | ||
12074 | * Makefile.in (SFILES): Add common/common-debug.c. | |
12075 | (OBS): Add common-debug.o. | |
12076 | (common-debug.o): New rule. | |
12077 | * debug.h (debug_printf): Don't declare. | |
12078 | * debug.c (debug_printf): Renamed and rewritten as... | |
12079 | (debug_vprintf): New function. | |
12080 | ||
f6e94d78 GB |
12081 | 2014-08-19 Gary Benson <gbenson@redhat.com> |
12082 | ||
12083 | * utils.h: Do not include print-utils.h. | |
12084 | ||
9239eeab GB |
12085 | 2014-08-19 Tom Tromey <tromey@redhat.com> |
12086 | Gary Benson <gbenson@redhat.com> | |
12087 | ||
12088 | * server.h: Add static assertion. | |
12089 | (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove. | |
12090 | ||
ef87c8bb GB |
12091 | 2014-08-19 Tom Tromey <tromey@redhat.com> |
12092 | Gary Benson <gbenson@redhat.com> | |
12093 | ||
12094 | * Makefile.in (SFILES): Add common/errors.c. | |
12095 | (OBS): Add errors.o. | |
12096 | (IPA_OBS): Add errors-ipa.o. | |
12097 | (errors.o): New rule. | |
12098 | (errors-ipa.o): Likewise. | |
12099 | * utils.h (perror_with_name, error, warning): Don't declare. | |
12100 | * utils.c (warning): Renamed and rewritten as... | |
12101 | (vwarning): New function. | |
12102 | (error): Renamed and rewritten as... | |
12103 | (verror): New function. | |
12104 | (internal_error): Renamed and rewritten as... | |
12105 | (internal_verror): New function. | |
12106 | ||
bb974a24 GB |
12107 | 2014-08-07 Gary Benson <gbenson@redhat.com> |
12108 | ||
12109 | * configure.ac (AC_CHECK_HEADERS): Remove errno.h. | |
12110 | * configure: Regenerate. | |
12111 | * config.in: Likewise. | |
12112 | * server.h: Do not include errno.h. | |
12113 | * event-loop.c: Likewise. | |
12114 | * hostio-errno.c: Likewise. | |
12115 | * linux-low.c: Likewise. | |
12116 | * remote-utils.c: Likewise. | |
12117 | * spu-low.c: Likewise. | |
12118 | * utils.c: Likewise. | |
12119 | * gdbreplay.c: Unconditionally include errno.h. | |
12120 | ||
6d3d12eb GB |
12121 | 2014-08-07 Gary Benson <gbenson@redhat.com> |
12122 | ||
12123 | * server.h: Do not include string.h. | |
12124 | * event-loop.c: Likewise. | |
12125 | * linux-low.c: Likewise. | |
12126 | * regcache.c: Likewise. | |
12127 | * remote-utils.c: Likewise. | |
12128 | * spu-low.c: Likewise. | |
12129 | * utils.c: Likewise. | |
12130 | ||
dccbb609 GB |
12131 | 2014-08-07 Gary Benson <gbenson@redhat.com> |
12132 | ||
12133 | * server.h: Do not include gdb_assert.h. | |
12134 | ||
e76df0d0 GB |
12135 | 2014-08-07 Gary Benson <gbenson@redhat.com> |
12136 | ||
12137 | * server.h: Do not include common-utils.h. | |
12138 | ||
4cb9c816 GB |
12139 | 2014-08-07 Gary Benson <gbenson@redhat.com> |
12140 | ||
12141 | * server.h: Do not include ptid.h. | |
12142 | * notif.h: Likewise. | |
12143 | ||
3995eeee GB |
12144 | 2014-08-07 Gary Benson <gbenson@redhat.com> |
12145 | ||
12146 | * server.h: Do not include gdb_locale.h. | |
12147 | ||
cb9f1a9b GB |
12148 | 2014-08-07 Gary Benson <gbenson@redhat.com> |
12149 | ||
12150 | * server.h: Do not include gdb/signals.h. | |
12151 | * win32-low.c: Likewise. | |
12152 | ||
a5fceff8 GB |
12153 | 2014-08-07 Gary Benson <gbenson@redhat.com> |
12154 | ||
12155 | * server.h: Do not include pathmax.h. | |
12156 | ||
b9391142 GB |
12157 | 2014-08-07 Gary Benson <gbenson@redhat.com> |
12158 | ||
12159 | * server.h: Do not include libiberty.h. | |
12160 | * linux-bfin-low.c: Likewise. | |
12161 | ||
0e443c87 GB |
12162 | 2014-08-07 Gary Benson <gbenson@redhat.com> |
12163 | ||
12164 | * server.h: Do not include ansidecl.h. | |
12165 | ||
8ebb3f56 GB |
12166 | 2014-08-07 Gary Benson <gbenson@redhat.com> |
12167 | ||
12168 | * linux-x86-low.c: Do not include stddef.h. | |
12169 | * lynx-ppc-low.c: Likewise. | |
12170 | * tracepoint.c: Likewise. | |
12171 | ||
8980bdf6 GB |
12172 | 2014-08-07 Gary Benson <gbenson@redhat.com> |
12173 | ||
12174 | * server.h: Do not include stdarg.h. | |
12175 | * nto-low.c: Likewise. | |
12176 | ||
d7096f71 GB |
12177 | 2014-08-07 Gary Benson <gbenson@redhat.com> |
12178 | ||
12179 | * server.h: Do not include stdlib.h. | |
12180 | * inferiors.c: Likewise. | |
12181 | * linux-low.c: Likewise. | |
12182 | * regcache.c: Likewise. | |
12183 | * spu-low.c: Likewise. | |
12184 | * tracepoint.c: Likewise. | |
12185 | * utils.c: Likewise. | |
12186 | ||
d02f550d GB |
12187 | 2014-08-07 Gary Benson <gbenson@redhat.com> |
12188 | ||
12189 | * server.h: Do not include stdio.h. | |
12190 | * linux-low.c: Likewise. | |
12191 | * remote-utils.c: Likewise. | |
12192 | * spu-low.c: Likewise. | |
12193 | * utils.c: Likewise. | |
12194 | * wincecompat.c: Likewise. | |
12195 | ||
87f6c4e3 GB |
12196 | 2014-08-06 Gary Benson <gbenson@redhat.com> |
12197 | ||
12198 | * regcache.c (init_register_cache): Move conditionals inside if. | |
12199 | ||
7089dca4 GB |
12200 | 2014-08-06 Gary Benson <gbenson@redhat.com> |
12201 | ||
12202 | * linux-low.c (linux_supports_non_stop): Use target_is_async_p. | |
12203 | ||
462f517e GB |
12204 | 2014-07-31 Gary Benson <gbenson@redhat.com> |
12205 | ||
12206 | * ax.h: Do not include server.h. | |
12207 | * gdbthread.h: Likewise. | |
12208 | * lynx-low.h: Likewise. | |
12209 | * notif.h: Likewise. | |
12210 | ||
976411d6 GB |
12211 | 2014-07-30 Gary Benson <gbenson@redhat.com> |
12212 | ||
12213 | * server.h: Include common-defs.h. | |
12214 | Do not include config.h or build-gnulib-gdbserver/config.h. | |
12215 | ||
d41f6d8e GB |
12216 | 2014-07-30 Gary Benson <gbenson@redhat.com> |
12217 | ||
12218 | * hostio-errno.c: Move server.h to top of includes list. | |
12219 | * inferiors.c: Likewise. | |
12220 | * linux-x86-low.c: Likewise. | |
12221 | * notif.c: Include server.h. | |
12222 | ||
314c6a35 TT |
12223 | 2014-07-24 Tom Tromey <tromey@redhat.com> |
12224 | Gary Benson <gbenson@redhat.com> | |
12225 | ||
12226 | * server.h (CORE_ADDR): Now unsigned. | |
12227 | ||
69ff6be5 PA |
12228 | 2014-07-16 Pedro Alves <palves@redhat.com> |
12229 | ||
12230 | * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill. | |
12231 | ||
ce9e3fe7 PA |
12232 | 2014-07-15 Pedro Alves <palves@redhat.com> |
12233 | ||
12234 | * linux-low.c (linux_kill_one_lwp): Save errno and work with saved | |
12235 | copy. | |
12236 | ||
e76126e8 PA |
12237 | 2014-07-11 Pedro Alves <palves@redhat.com> |
12238 | ||
12239 | * linux-low.c (kill_wait_lwp): New function, based on | |
12240 | kill_one_lwp_callback, but use my_waitpid directly. | |
12241 | (kill_one_lwp_callback, linux_kill): Use it. | |
12242 | ||
8e9db26e PA |
12243 | 2014-06-23 Pedro Alves <palves@redhat.com> |
12244 | ||
12245 | * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL | |
12246 | before setting DR0..DR3. | |
12247 | ||
698b3e08 GB |
12248 | 2014-06-20 Gary Benson <gbenson@redhat.com> |
12249 | ||
12250 | * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed. | |
12251 | * configure: Regenerated. | |
12252 | * config.in: Likewise. | |
12253 | ||
125f8a3d GB |
12254 | 2014-06-20 Gary Benson <gbenson@redhat.com> |
12255 | ||
12256 | * Makefile.in (SFILES): Update locations for files moved | |
12257 | from common to nat. | |
12258 | (object file files): Reordered. | |
12259 | ||
42995dbd GB |
12260 | 2014-06-20 Gary Benson <gbenson@redhat.com> |
12261 | ||
12262 | * i386-low.h (i386_dr_low_can_set_addr): Removed. | |
12263 | (i386_dr_low_set_addr): Likewise. | |
12264 | (i386_dr_low_get_addr): Likewise. | |
12265 | (i386_dr_low_can_set_control): Likewise. | |
12266 | (i386_dr_low_set_control): Likewise. | |
12267 | (i386_dr_low_get_control): Likewise. | |
12268 | (i386_dr_low_get_status): Likewise. | |
12269 | (i386_get_debug_register_length): Likewise. | |
12270 | * linux-x86-low.c (i386_dr_low_set_addr): | |
12271 | Changed signature. Made static. | |
12272 | (i386_dr_low_get_addr): Likewise. | |
12273 | (i386_dr_low_set_control): Likewise. | |
12274 | (i386_dr_low_get_control): Likewise. | |
12275 | (i386_dr_low_get_status): Likewise. | |
12276 | (i386_dr_low): New global variable. | |
12277 | * win32-i386-low.c (i386_dr_low_set_addr): | |
12278 | Changed signature. Made static. | |
12279 | (i386_dr_low_get_addr): Likewise. | |
12280 | (i386_dr_low_set_control): Likewise. | |
12281 | (i386_dr_low_get_control): Likewise. | |
12282 | (i386_dr_low_get_status): Likewise. | |
12283 | (i386_dr_low): New global variable. | |
12284 | ||
e1d2394b MS |
12285 | 2014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com> |
12286 | ||
12287 | * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar). | |
12288 | * Makefile.in (AR, AR_FLAGS): Define. | |
12289 | * configure: Regenerate. | |
12290 | ||
3a8ee006 GB |
12291 | 2014-06-19 Gary Benson <gbenson@redhat.com> |
12292 | ||
12293 | * Makefile.in (i386-dregs.o): New rule. | |
12294 | * configure.srv: Add i386-dregs.o to all targets using i386-low.o. | |
12295 | * i386-low.c (target.h): Remove include. | |
12296 | (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c. | |
12297 | (DR_CONTROL_SHIFT): Likewise. | |
12298 | (DR_CONTROL_SIZE): Likewise. | |
12299 | (DR_RW_EXECUTE): Likewise. | |
12300 | (DR_RW_WRITE): Likewise. | |
12301 | (DR_RW_READ): Likewise. | |
12302 | (DR_RW_IORW): Likewise. | |
12303 | (DR_LEN_1): Likewise. | |
12304 | (DR_LEN_2): Likewise. | |
12305 | (DR_LEN_4): Likewise. | |
12306 | (DR_LEN_8): Likewise. | |
12307 | (DR_LOCAL_ENABLE_SHIFT): Likewise. | |
12308 | (DR_GLOBAL_ENABLE_SHIFT): Likewise. | |
12309 | (DR_ENABLE_SIZE): Likewise. | |
12310 | (DR_LOCAL_SLOWDOWN): Likewise. | |
12311 | (DR_GLOBAL_SLOWDOWN): Likewise. | |
12312 | (DR_CONTROL_RESERVED): Likewise. | |
12313 | (I386_DR_CONTROL_MASK): Likewise. | |
12314 | (I386_DR_VACANT): Likewise. | |
12315 | (I386_DR_LOCAL_ENABLE): Likewise. | |
12316 | (I386_DR_GLOBAL_ENABLE): Likewise. | |
12317 | (I386_DR_DISABLE): Likewise. | |
12318 | (I386_DR_SET_RW_LEN): Likewise. | |
12319 | (I386_DR_GET_RW_LEN): Likewise. | |
12320 | (I386_DR_WATCH_HIT): Likewise. | |
12321 | (i386_wp_op_t): Likewise. | |
12322 | (i386_show_dr): Likewise. | |
12323 | (i386_length_and_rw_bits): Likewise. | |
12324 | (i386_insert_aligned_watchpoint): Likewise. | |
12325 | (i386_remove_aligned_watchpoint): Likewise. | |
12326 | (i386_handle_nonaligned_watchpoint): Likewise. | |
12327 | i386_update_inferior_debug_regs(): Likewise. | |
12328 | (i386_dr_insert_watchpoint): Likewise. | |
12329 | (i386_dr_remove_watchpoint): Likewise. | |
12330 | (i386_dr_region_ok_for_watchpoint): Likewise. | |
12331 | (i386_dr_stopped_data_address): Likewise. | |
12332 | (i386_dr_stopped_by_watchpoint): Likewise. | |
12333 | ||
8f26655c GB |
12334 | 2014-06-19 Gary Benson <gbenson@redhat.com> |
12335 | ||
12336 | * i386-low.c (i386_dr_show): Renamed to | |
12337 | i386_show_dr and made static. All uses updated. | |
12338 | (i386_dr_length_and_rw_bits): Renamed to | |
12339 | i386_length_and_rw_bits and made static. | |
12340 | All uses updated. | |
12341 | (i386_dr_insert_aligned_watchpoint): Renamed to | |
12342 | i386_insert_aligned_watchpoint and made static. | |
12343 | All uses updated. | |
12344 | (i386_dr_remove_aligned_watchpoint): Renamed to | |
12345 | i386_remove_aligned_watchpoint and made static. | |
12346 | All uses updated. | |
12347 | (i386_dr_update_inferior_debug_regs): Renamed to | |
12348 | i386_update_inferior_debug_regs and made static. | |
12349 | All uses updated. | |
12350 | ||
b9228891 GB |
12351 | 2014-06-18 Gary Benson <gbenson@redhat.com> |
12352 | ||
5171def3 GB |
12353 | * i386-low.h (i386_dr_low_can_set_addr): New macro. |
12354 | (i386_dr_low_can_set_control): Likewise. | |
12355 | (i386_get_debug_register_length): Likewise. | |
12356 | * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h. | |
12357 | (i386_dr_low_can_set_control): Likewise. | |
12358 | (i386_get_debug_register_length): Likewise. | |
12359 | ||
12360 | 2014-06-17 Gary Benson <gbenson@redhat.com> | |
12361 | ||
b9228891 GB |
12362 | * i386-low.h (i386-dregs.h): New include. |
12363 | (DR_FIRSTADDR): Now in i386-dregs.h. | |
12364 | (DR_LASTADDR): Likewise. | |
12365 | (DR_NADDR): Likewise. | |
12366 | (DR_STATUS): Likewise. | |
12367 | (DR_CONTROL): Likewise. | |
12368 | (i386_debug_reg_state): Likewise. | |
12369 | (i386_dr_insert_watchpoint): Likewise. | |
12370 | (i386_dr_remove_watchpoint): Likewise. | |
12371 | (i386_dr_region_ok_for_watchpoint): Likewise. | |
12372 | (i386_dr_stopped_data_address): Likewise. | |
12373 | (i386_dr_stopped_by_watchpoint): Likewise. | |
12374 | * i386-low.c (ALL_DEBUG_REGISTERS): Likewise. | |
12375 | ||
4be83cc2 GB |
12376 | 2014-06-18 Gary Benson <gbenson@redhat.com> |
12377 | ||
12378 | * i386-low.h (i386_low_insert_watchpoint): Renamed to | |
12379 | i386_dr_insert_watchpoint. | |
12380 | (i386_low_remove_watchpoint): Renamed to | |
12381 | i386_dr_remove_watchpoint. | |
12382 | (i386_low_region_ok_for_watchpoint): Renamed to | |
12383 | i386_dr_region_ok_for_watchpoint. | |
12384 | (i386_low_stopped_data_address): Renamed to | |
12385 | i386_dr_stopped_data_address. | |
12386 | (i386_low_stopped_by_watchpoint): Renamed to | |
12387 | i386_dr_stopped_by_watchpoint. | |
12388 | * i386-low.c (i386_show_dr): Renamed to | |
12389 | i386_dr_show and made nonstatic. All uses updated. | |
12390 | (i386_length_and_rw_bits): Renamed to | |
12391 | i386_dr_length_and_rw_bits and made nonstatic. | |
12392 | All uses updated. | |
12393 | (i386_insert_aligned_watchpoint): Renamed to | |
12394 | i386_dr_insert_aligned_watchpoint and made nonstatic. | |
12395 | All uses updated. | |
12396 | (i386_remove_aligned_watchpoint): Renamed to | |
12397 | i386_dr_remove_aligned_watchpoint and made nonstatic. | |
12398 | All uses updated. | |
12399 | (i386_update_inferior_debug_regs): Renamed to | |
12400 | i386_dr_update_inferior_debug_regs and made nonstatic. | |
12401 | All uses updated. | |
12402 | (i386_low_insert_watchpoint): Renamed to | |
12403 | i386_dr_insert_watchpoint. All uses updated. | |
12404 | (i386_low_remove_watchpoint): Renamed to | |
12405 | i386_dr_remove_watchpoint. All uses updated. | |
12406 | (i386_low_region_ok_for_watchpoint): Renamed to | |
12407 | i386_dr_region_ok_for_watchpoint. All uses updated. | |
12408 | (i386_low_stopped_data_address): Renamed to | |
12409 | i386_dr_stopped_data_address. All uses updated. | |
12410 | (i386_low_stopped_by_watchpoint): Renamed to | |
12411 | i386_dr_stopped_by_watchpoint. All uses updated. | |
12412 | ||
131aa0d4 GB |
12413 | 2014-06-18 Gary Benson <gbenson@redhat.com> |
12414 | ||
12415 | * i386-low.c (i386_dr_low_can_set_addr): New macro. | |
12416 | (i386_dr_low_can_set_control): Likewise. | |
12417 | (i386_insert_aligned_watchpoint): New check. | |
12418 | ||
d9305f7f GB |
12419 | 2014-06-18 Gary Benson <gbenson@redhat.com> |
12420 | ||
12421 | * i386-low.c (i386_update_inferior_debug_regs) <inf_state>: | |
12422 | Renamed to state. | |
12423 | ||
e927c9fc GB |
12424 | 2014-06-18 Gary Benson <gbenson@redhat.com> |
12425 | ||
12426 | * i386-low.c (i386_length_and_rw_bits): Use internal_error | |
12427 | instead of fatal and error. | |
12428 | (i386_handle_nonaligned_watchpoint): Likewise. | |
12429 | ||
1b6d4134 GB |
12430 | 2014-06-18 Gary Benson <gbenson@redhat.com> |
12431 | ||
12432 | * i386-low.c (i386_get_debug_register_length): New macro. | |
12433 | (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro. | |
12434 | (i386_show_dr): Use debug_printf instead of fprintf. Use | |
12435 | phex to format values. | |
12436 | ||
6e62758f GB |
12437 | 2014-06-18 Gary Benson <gbenson@redhat.com> |
12438 | ||
12439 | * i386-low.h: Comment changes. | |
12440 | * i386-low.c: Likewise. | |
12441 | ||
fc6e2f03 GB |
12442 | 2014-06-18 Gary Benson <gbenson@redhat.com> |
12443 | ||
12444 | * i386-low.c: Whitespace changes. | |
12445 | ||
f9d1eeed TT |
12446 | 2014-06-12 Tom Tromey <tromey@redhat.com> |
12447 | ||
12448 | * utils.c (freeargv): Remove. | |
12449 | ||
0b04e523 TT |
12450 | 2014-06-12 Tom Tromey <tromey@redhat.com> |
12451 | ||
12452 | * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks. | |
12453 | * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check. | |
12454 | (parse_debug_format_options): Likewise. | |
12455 | (gdbserver_usage): Likewise. | |
12456 | * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables. | |
12457 | (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty. | |
12458 | (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link | |
12459 | against libiberty. | |
12460 | ($(LIBGNU)): Depend on libiberty. | |
12461 | (all-lib): Recurse into all subdirs. | |
12462 | (install-only): Invoke "install" target in subdirs. | |
12463 | (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove | |
12464 | targets. | |
12465 | * configure: Rebuild. | |
12466 | * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check | |
12467 | for vasprintf, vsnprintf, or gettimeofday. | |
12468 | * configure.srv: Don't add safe-ctype.o or lbasename.o to | |
12469 | srv_tgtobj. | |
12470 | ||
270c9937 JB |
12471 | 2014-06-05 Joel Brobecker <brobecker@adacore.com> |
12472 | ||
12473 | * development.sh: Delete. | |
12474 | * Makefile.in (config.status): Adjust dependency on development.sh. | |
12475 | * configure.ac: Adjust development.sh source call. | |
12476 | * configure: Regenerate. | |
12477 | ||
0a261ed8 PA |
12478 | 2014-06-02 Pedro Alves <palves@redhat.com> |
12479 | ||
12480 | * ax.c (gdb_free_agent_expr): New function. | |
12481 | * ax.h (gdb_free_agent_expr): New declaration. | |
12482 | * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands | |
12483 | list. | |
12484 | (clear_breakpoint_conditions, clear_breakpoint_commands): Make | |
12485 | static. | |
12486 | (clear_breakpoint_conditions_and_commands): New function. | |
12487 | * mem-break.h (clear_breakpoint_conditions): Delete declaration. | |
12488 | (clear_breakpoint_conditions_and_commands): New declaration. | |
12489 | ||
e9dae05e RR |
12490 | 2014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com> |
12491 | ||
12492 | * linux-aarch64-low.c (asm/ptrace.h): Include. | |
12493 | ||
5876f503 JK |
12494 | 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com> |
12495 | ||
12496 | Fix TLS access for -static -pthread. | |
12497 | * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p. | |
12498 | (thread_db_get_tls_address): Call it if LOAD_MODULE is zero. | |
12499 | (thread_db_load_search, try_thread_db_load_1): Initialize it. | |
12500 | ||
802e8e6d PA |
12501 | 2014-05-20 Pedro Alves <palves@redhat.com> |
12502 | ||
12503 | * linux-aarch64-low.c (aarch64_insert_point) | |
12504 | (aarch64_remove_point): No longer check whether the type is | |
12505 | supported here. Adjust to new interface. | |
12506 | (the_low_target): Install aarch64_supports_z_point_type as | |
12507 | supports_z_point_type method. | |
12508 | * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function. | |
12509 | (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type | |
12510 | instead of a Z packet char. Adjust. | |
12511 | (arm_supports_z_point_type): New function. | |
12512 | (arm_insert_point, arm_remove_point): Adjust to new interface. | |
12513 | (the_low_target): Install arm_supports_z_point_type. | |
12514 | * linux-crisv32-low.c (cris_supports_z_point_type): New function. | |
12515 | (cris_insert_point, cris_remove_point): Adjust to new interface. | |
12516 | Don't check whether the type is supported here. | |
12517 | (the_low_target): Install cris_supports_z_point_type. | |
12518 | * linux-low.c (linux_supports_z_point_type): New function. | |
12519 | (linux_insert_point, linux_remove_point): Adjust to new interface. | |
12520 | * linux-low.h (struct linux_target_ops) <insert_point, | |
12521 | remove_point>: Take an enum raw_bkpt_type instead of a char. Add | |
12522 | raw_breakpoint pointer parameter. | |
12523 | <supports_z_point_type>: New method. | |
12524 | * linux-mips-low.c (mips_supports_z_point_type): New function. | |
12525 | (mips_insert_point, mips_remove_point): Adjust to new interface. | |
12526 | Use mips_supports_z_point_type. | |
12527 | (the_low_target): Install mips_supports_z_point_type. | |
12528 | * linux-ppc-low.c (the_low_target): Install NULL as | |
12529 | supports_z_point_type method. | |
12530 | * linux-s390-low.c (the_low_target): Install NULL as | |
12531 | supports_z_point_type method. | |
12532 | * linux-sparc-low.c (the_low_target): Install NULL as | |
12533 | supports_z_point_type method. | |
12534 | * linux-x86-low.c (x86_supports_z_point_type): New function. | |
12535 | (x86_insert_point): Adjust to new insert_point interface. Use | |
12536 | insert_memory_breakpoint. Adjust to new | |
12537 | i386_low_insert_watchpoint interface. | |
12538 | (x86_remove_point): Adjust to remove_point interface. Use | |
12539 | remove_memory_breakpoint. Adjust to new | |
12540 | i386_low_remove_watchpoint interface. | |
12541 | (the_low_target): Install x86_supports_z_point_type. | |
12542 | * lynx-low.c (lynx_target_ops): Install NULL as | |
12543 | supports_z_point_type callback. | |
12544 | * nto-low.c (nto_supports_z_point_type): New. | |
12545 | (nto_insert_point, nto_remove_point): Adjust to new interface. | |
12546 | (nto_target_ops): Install nto_supports_z_point_type. | |
12547 | * mem-break.c: Adjust intro comment. | |
12548 | (struct raw_breakpoint) <raw_type, size>: New fields. | |
12549 | <inserted>: Update comment. | |
12550 | <shlib_disabled>: Delete field. | |
12551 | (enum bkpt_type) <gdb_breakpoint>: Delete value. | |
12552 | <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2, | |
12553 | gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values. | |
12554 | (raw_bkpt_type_to_target_hw_bp_type): New function. | |
12555 | (find_enabled_raw_code_breakpoint_at): New function. | |
12556 | (find_raw_breakpoint_at): New type and size parameters. Use them. | |
12557 | (insert_memory_breakpoint): New function, based off | |
12558 | set_raw_breakpoint_at. | |
12559 | (remove_memory_breakpoint): New function. | |
12560 | (set_raw_breakpoint_at): Reimplement. | |
12561 | (set_breakpoint): New, based on set_breakpoint_at. | |
12562 | (set_breakpoint_at): Reimplement. | |
12563 | (delete_raw_breakpoint): Go through the_target->remove_point | |
12564 | instead of assuming memory breakpoints. | |
12565 | (find_gdb_breakpoint_at): Delete. | |
12566 | (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions. | |
12567 | (find_gdb_breakpoint): New function. | |
12568 | (set_gdb_breakpoint_at): Delete. | |
12569 | (z_type_supported): New function. | |
12570 | (set_gdb_breakpoint_1): New function, loosely based off | |
12571 | set_gdb_breakpoint_at. | |
12572 | (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions. | |
12573 | (delete_gdb_breakpoint_at): Delete. | |
12574 | (delete_gdb_breakpoint_1): New function, loosely based off | |
12575 | delete_gdb_breakpoint_at. | |
12576 | (delete_gdb_breakpoint): New function. | |
12577 | (clear_gdb_breakpoint_conditions): Rename to ... | |
12578 | (clear_breakpoint_conditions): ... this. Don't handle a NULL | |
12579 | breakpoint. | |
12580 | (add_condition_to_breakpoint): Make static. | |
12581 | (add_breakpoint_condition): Take a struct breakpoint pointer | |
12582 | instead of an address. Adjust. | |
12583 | (gdb_condition_true_at_breakpoint): Rename to ... | |
12584 | (gdb_condition_true_at_breakpoint_z_type): ... this, and add | |
12585 | z_type parameter. | |
12586 | (gdb_condition_true_at_breakpoint): Reimplement. | |
12587 | (add_breakpoint_commands): Take a struct breakpoint pointer | |
12588 | instead of an address. Adjust. | |
12589 | (gdb_no_commands_at_breakpoint): Rename to ... | |
12590 | (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type | |
12591 | parameter. Return true if no breakpoint was found. Change debug | |
12592 | output. | |
12593 | (gdb_no_commands_at_breakpoint): Reimplement. | |
12594 | (run_breakpoint_commands): Rename to ... | |
12595 | (run_breakpoint_commands_z_type): ... this. Add z_type parameter, | |
12596 | and change return type to boolean. | |
12597 | (run_breakpoint_commands): New function. | |
12598 | (gdb_breakpoint_here): Also check for Z1 breakpoints. | |
12599 | (uninsert_raw_breakpoint): Don't try to reinsert a disabled | |
12600 | breakpoint. Go through the_target->remove_point instead of | |
12601 | assuming memory breakpoint. | |
12602 | (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert | |
12603 | software and hardware breakpoints. | |
12604 | (reinsert_raw_breakpoint): Go through the_target->insert_point | |
12605 | instead of assuming memory breakpoint. | |
12606 | (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert | |
12607 | software and hardware breakpoints. | |
12608 | (check_breakpoints, breakpoint_here, breakpoint_inserted_here): | |
12609 | Check both software and hardware breakpoints. | |
12610 | (validate_inserted_breakpoint): Assert the breakpoint is a | |
12611 | software breakpoint. Set the inserted flag to -1 instead of | |
12612 | setting shlib_disabled. | |
12613 | (delete_disabled_breakpoints): Adjust. | |
12614 | (validate_breakpoints): Only validate software breakpoints. | |
12615 | Adjust to inserted flag change. | |
12616 | (check_mem_read, check_mem_write): Skip breakpoint types other | |
12617 | than software breakpoints. Adjust to inserted flag change. | |
12618 | * mem-break.h (enum raw_bkpt_type): New enum. | |
12619 | (raw_breakpoint, struct process_info): Forward declare. | |
12620 | (Z_packet_to_target_hw_bp_type): Delete declaration. | |
12621 | (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type) | |
12622 | (set_gdb_breakpoint, delete_gdb_breakpoint) | |
12623 | (clear_breakpoint_conditions): New declarations. | |
12624 | (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete. | |
12625 | (breakpoint_inserted_here): Update comment. | |
12626 | (add_breakpoint_condition, add_breakpoint_commands): Replace | |
12627 | address parameter with a breakpoint pointer parameter. | |
12628 | (gdb_breakpoint_here): Update comment. | |
12629 | (delete_gdb_breakpoint_at): Delete. | |
12630 | (insert_memory_breakpoint, remove_memory_breakpoint): Declare. | |
12631 | * server.c (process_point_options): Take a struct breakpoint | |
12632 | pointer instead of an address. Adjust. | |
12633 | (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and | |
12634 | delete_gdb_breakpoint. | |
12635 | * spu-low.c (spu_target_ops): Install NULL as | |
12636 | supports_z_point_type method. | |
12637 | * target.h: Include mem-break.h. | |
12638 | (struct target_ops) <prepare_to_access_memory>: Update comment. | |
12639 | <supports_z_point_type>: New field. | |
12640 | <insert_point, remove_point>: Take an enum raw_bkpt_type argument | |
12641 | instead of a char. Also take a raw breakpoint pointer. | |
12642 | * win32-arm-low.c (the_low_target): Install NULL as | |
12643 | supports_z_point_type. | |
12644 | * win32-i386-low.c (i386_supports_z_point_type): New function. | |
12645 | (i386_insert_point, i386_remove_point): Adjust to new interface. | |
12646 | (the_low_target): Install i386_supports_z_point_type. | |
12647 | * win32-low.c (win32_supports_z_point_type): New function. | |
12648 | (win32_insert_point, win32_remove_point): Adjust to new interface. | |
12649 | (win32_target_ops): Install win32_supports_z_point_type. | |
12650 | * win32-low.h (struct win32_target_ops): | |
12651 | <supports_z_point_type>: New method. | |
12652 | <insert_point, remove_point>: Take an enum raw_bkpt_type argument | |
12653 | instead of a char. Also take a raw breakpoint pointer. | |
12654 | ||
932539e3 PA |
12655 | 2014-05-20 Pedro Alves <palves@redhat.com> |
12656 | ||
12657 | * mem-break.h: Include break-common.h. | |
12658 | (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP) | |
12659 | (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines. | |
12660 | (Z_packet_to_target_hw_bp_type): New declaration. | |
12661 | * mem-break.c (Z_packet_to_target_hw_bp_type): New function. | |
12662 | * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP) | |
12663 | (Z_PACKET_ACCESS_WP): Delete macros. | |
12664 | (Z_packet_to_hw_type): Delete function. | |
12665 | * i386-low.h: Don't include break-common.h here. | |
12666 | (Z_packet_to_hw_type): Delete declaration. | |
12667 | * linux-x86-low.c (x86_insert_point, x86_insert_point): Call | |
12668 | Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type. | |
12669 | * win32-i386-low.c (i386_insert_point, i386_remove_point): Call | |
12670 | Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type. | |
12671 | * linux-aarch64-low.c: Don't include break-common.h here. | |
12672 | (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP) | |
12673 | (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros. | |
12674 | (Z_packet_to_target_hw_bp_type): Delete function. | |
12675 | * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete | |
12676 | function. | |
12677 | (mips_insert_point, mips_remove_point): Use | |
12678 | Z_packet_to_target_hw_bp_type. | |
12679 | ||
4ff0d3d8 PA |
12680 | 2014-05-20 Pedro Alves <palves@redhat.com> |
12681 | ||
12682 | * linux-aarch64-low.c: Include break-common.h. | |
12683 | (enum target_point_type): Delete. | |
12684 | (Z_packet_to_point_type): Rename to ... | |
12685 | (Z_packet_to_target_hw_bp_type): ... this, and return a | |
12686 | target_hw_bp_type instead. | |
12687 | (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type | |
12688 | instead of an enum target_point_type. | |
12689 | (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from | |
12690 | breakpoint type. | |
12691 | (aarch64_dr_state_insert_one_point) | |
12692 | (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint) | |
12693 | (aarch64_handle_aligned_watchpoint) | |
12694 | (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint): | |
12695 | Take an enum target_hw_bp_type instead of an enum | |
12696 | target_point_type. | |
12697 | (aarch64_supports_z_point_type): New function. | |
12698 | (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to | |
12699 | use Z_packet_to_target_hw_bp_type. | |
12700 | ||
786dc519 JB |
12701 | 2014-05-20 Joel Brobecker <brobecker@adacore.com> |
12702 | ||
12703 | * configure.ac: Only use -Werror by default when DEVELOPMENT | |
12704 | is true. | |
12705 | * configure: Regenerate. | |
12706 | ||
9e0aa64f JK |
12707 | 2014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com> |
12708 | ||
12709 | Fix gdbserver qGetTLSAddr for x86_64 -m32. | |
12710 | * linux-x86-low.c (X86_64_USER_REGS): New. | |
12711 | (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case. | |
12712 | ||
2b577b92 YQ |
12713 | 2014-04-28 Yao Qi <yao@codesourcery.com> |
12714 | ||
12715 | * Makefile.in (i386-avx512.c): Fix the typo of generated file | |
12716 | name. | |
12717 | ||
94611da2 PA |
12718 | 2014-04-25 Pedro Alves <palves@redhat.com> |
12719 | ||
12720 | PR server/16255 | |
12721 | * linux-low.c (linux_attach_fail_reason_string): New function. | |
12722 | (linux_attach_lwp): Delete. | |
12723 | (linux_attach_lwp_1): Rename to ... | |
12724 | (linux_attach_lwp): ... this. Take a ptid instead of a pid as | |
12725 | argument. Remove "initial" parameter. Return int instead of | |
12726 | void. Don't error or warn here. | |
12727 | (linux_attach): Adjust to call linux_attach_lwp. Call error on | |
12728 | failure to attach to the tgid. Call warning when failing to | |
12729 | attach to an lwp. | |
12730 | * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as | |
12731 | argument. Remove "initial" parameter. Return int instead of | |
12732 | void. Don't error or warn here. | |
12733 | (linux_attach_fail_reason_string): New declaration. | |
12734 | * thread-db.c (attach_thread): Adjust to linux_attach_lwp's | |
12735 | interface change. Use linux_attach_fail_reason_string. | |
12736 | ||
01f9f808 MS |
12737 | 2014-04-24 Michael Sturm <michael.sturm@mintel.com> |
12738 | Walfred Tedeschi <walfred.tedeschi@intel.com> | |
12739 | ||
12740 | * Makefile.in: Added rules to handle new files | |
12741 | i386-avx512.c i386-avx512-linux.c amd64-avx512.c | |
12742 | amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c. | |
12743 | * configure.srv (srv_i386_regobj): Add i386-avx512.o. | |
12744 | (srv_i386_linux_regobj): Add i386-avx512-linux.o. | |
12745 | (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o. | |
12746 | (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and | |
12747 | x32-avx512-linux.o. | |
12748 | (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml. | |
12749 | (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml. | |
12750 | (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and | |
12751 | i386/x32-avx512.xml. | |
12752 | (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml. | |
12753 | (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and | |
12754 | i386/x32-avx512-linux.xml. | |
12755 | * i387-fp.c (num_avx512_k_registers): New constant for number | |
12756 | of K registers. | |
12757 | (num_avx512_zmmh_low_registers): New constant for number of | |
12758 | lower ZMM registers (0-15). | |
12759 | (num_avx512_zmmh_high_registers): New constant for number of | |
12760 | higher ZMM registers (16-31). | |
12761 | (num_avx512_ymmh_registers): New contant for number of higher | |
12762 | YMM registers (ymm16-31 added by avx521 on x86_64). | |
12763 | (num_avx512_xmm_registers): New constant for number of higher | |
12764 | XMM registers (xmm16-31 added by AVX512 on x86_64). | |
12765 | (struct i387_xsave): Add space for AVX512 registers. | |
12766 | (i387_cache_to_xsave): Change raw buffer size to 64 characters. | |
12767 | Add code to handle AVX512 registers. | |
12768 | (i387_xsave_to_cache): Add code to handle AVX512 registers. | |
12769 | * linux-x86-low.c (init_registers_amd64_avx512_linux): New | |
12770 | prototypei from generated file. | |
12771 | (tdesc_amd64_avx512_linux): Likewise. | |
12772 | (init_registers_x32_avx512_linux): Likewise. | |
12773 | (tdesc_x32_avx512_linux): Likewise. | |
12774 | (init_registers_i386_avx512_linux): Likewise. | |
12775 | (tdesc_i386_avx512_linux): Likewise. | |
12776 | (x86_64_regmap): Add AVX512 registers. | |
12777 | (x86_linux_read_description): Add code to handle AVX512 XSTATE | |
12778 | mask. | |
12779 | (initialize_low_arch): Add code to initialize AVX512 registers. | |
12780 | ||
51aa91f9 PA |
12781 | 2014-04-23 Pedro Alves <palves@redhat.com> |
12782 | ||
12783 | * mem-break.c (find_gdb_breakpoint_at): Make static. | |
12784 | * mem-break.h (find_gdb_breakpoint_at): Delete declaration. | |
12785 | ||
a4165e94 PA |
12786 | 2014-04-23 Pedro Alves <palves@redhat.com> |
12787 | ||
12788 | * i386-low.c: Don't include break-common.h here. | |
12789 | (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change | |
12790 | prototype to take target_hw_bp_type as argument instead of a Z | |
12791 | packet char. | |
12792 | * i386-low.h: Include break-common.h here. | |
12793 | (Z_packet_to_hw_type): Declare. | |
12794 | (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change | |
12795 | prototypes. | |
12796 | * linux-x86-low.c (x86_insert_point): Convert the packet number to | |
12797 | a target_hw_bp_type before calling i386_low_insert_watchpoint. | |
12798 | (x86_remove_point): Convert the packet number to a | |
12799 | target_hw_bp_type before calling i386_low_remove_watchpoint. | |
12800 | * win32-i386-low.c (i386_insert_point): Convert the packet number | |
12801 | to a target_hw_bp_type before calling i386_low_insert_watchpoint. | |
12802 | (i386_remove_point): Convert the packet number to a | |
12803 | target_hw_bp_type before calling i386_low_remove_watchpoint. | |
12804 | ||
b8acf843 PA |
12805 | 2014-04-23 Pedro Alves <palves@redhat.com> |
12806 | ||
12807 | * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN. | |
12808 | ||
d708bcd1 PA |
12809 | 2014-04-10 Pedro Alves <palves@redhat.com> |
12810 | ||
12811 | * mem-break.c (add_breakpoint_condition, add_breakpoint_commands): | |
12812 | Check if the condition or command is NULL before checking if the | |
12813 | breakpoint is known. On success, return true. | |
12814 | * mem-break.h (add_breakpoint_condition): Document return. | |
12815 | (add_breakpoint_commands): Add describing comment. | |
12816 | * server.c (skip_to_semicolon): New function. | |
12817 | (process_point_options): Use it. | |
12818 | ||
2eec7d5b PA |
12819 | 2014-04-09 Pedro Alves <palves@redhat.com> |
12820 | ||
12821 | * linux-low.c (linux_read_loadmap): Pass current_inferior directly | |
12822 | to lwpid_of. | |
12823 | ||
fa96cb38 PA |
12824 | 2014-02-27 Pedro Alves <palves@redhat.com> |
12825 | ||
12826 | PR 12702 | |
12827 | * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New | |
12828 | macros. | |
12829 | * linux-low.c (delete_lwp, handle_extended_wait): Add debug | |
12830 | output. | |
12831 | (last_thread_of_process_p): Take a PID argument instead of a | |
12832 | thread pointer. | |
12833 | (linux_wait_for_lwp): Delete. | |
12834 | (num_lwps, check_zombie_leaders, not_stopped_callback): New | |
12835 | functions. | |
12836 | (linux_low_filter_event): New function, party factored out from | |
12837 | linux_wait_for_event. | |
12838 | (linux_wait_for_event): Rename to ... | |
12839 | (linux_wait_for_event_filtered): ... this. Add new filter ptid | |
12840 | argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and | |
12841 | sigsuspend. Check for zombie leaders. | |
12842 | (linux_wait_for_event): Reimplement as wrapper around | |
12843 | linux_wait_for_event_filtered. | |
12844 | (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if | |
12845 | a normal or signal exit is seen, it's the whole process exiting. | |
12846 | (wait_for_sigstop): No longer a for_each_inferior callback. | |
12847 | Rewrite on top of linux_wait_for_event_filtered. | |
12848 | (stop_all_lwps): Call wait_for_sigstop directly. | |
12849 | * server.c (resume, handle_target_event): Handle | |
12850 | TARGET_WAITKIND_NO_RESUMED. | |
12851 | ||
d763de10 JB |
12852 | 2014-02-26 Joel Brobecker <brobecker@adacore.com> |
12853 | ||
12854 | * win32-low.c (psapi_get_dll_name, | |
12855 | * win32_CreateToolhelp32Snapshot): Delete. | |
12856 | (win32_CreateToolhelp32Snapshot, win32_Module32First) | |
12857 | (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name): | |
12858 | Delete. | |
12859 | (handle_load_dll): Add function description. | |
12860 | Remove code using psapi_get_dll_name and toolhelp_get_dll_name. | |
12861 | ||
850a0f76 JB |
12862 | 2014-02-26 Joel Brobecker <brobecker@adacore.com> |
12863 | ||
12864 | * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr. | |
12865 | Add comment. | |
12866 | (win32_add_all_dlls): Remove 0x1000 offset applied to DLL | |
12867 | base address when calling win32_add_one_solib. | |
12868 | (handle_load_dll): Delete local variable load_addr. | |
12869 | Remove 0x1000 offset applied to DLL base address when calling | |
12870 | win32_add_one_solib. | |
12871 | (handle_unload_dll): Add comment. | |
12872 | ||
f25b3fc3 JB |
12873 | 2014-02-26 Joel Brobecker <brobecker@adacore.com> |
12874 | ||
12875 | * win32-low.c (win32_add_all_dlls): Renames | |
12876 | win32_ensure_ntdll_loaded. Rewrite function documentation. | |
12877 | Adjust implementation to always load all DLLs. | |
12878 | Add 0x1000 offset to DLL base address when calling | |
12879 | win32_add_one_solib. | |
12880 | (child_initialization_done): New static global. | |
12881 | (do_initial_child_stuff): Set child_initialization_done to | |
12882 | zero during child initialization, and 1 after. Replace call | |
12883 | to win32_ensure_ntdll_loaded by call to win32_add_all_dlls. | |
12884 | Add comment. | |
12885 | (match_dll_by_basename, dll_is_loaded_by_basename): Delete. | |
12886 | (handle_unload_dll): Add function documentation. | |
12887 | (get_child_debug_event): Ignore load and unload DLL events | |
12888 | during child initialization. | |
12889 | ||
d86d4aaf DE |
12890 | 2014-02-20 Doug Evans <dje@google.com> |
12891 | ||
3bc32da3 | 12892 | Remove global all_lwps. |
d86d4aaf DE |
12893 | * inferiors.h (ptid_of): Move here from linux-low.h. |
12894 | (pid_of, lwpid_of): Ditto. | |
12895 | * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry" | |
12896 | parameter is a struct thread_info * now. | |
12897 | (aarch64_notify_debug_reg_change): Fetch pid from current_inferior | |
12898 | directly. Pass &all_threads to find_inferior instead of &all_lwps. | |
12899 | (aarch64_stopped_data_address): Fetch lwpid from current_inferior | |
12900 | directly. | |
12901 | (aarch64_linux_prepare_to_resume): Fetch ptid from thread. | |
12902 | (aarch64_arch_setup): Fetch lwpid from current_inferior directly. | |
12903 | * linux-arm-low.c (update_registers_callback): Update, "entry" | |
12904 | parameter is a struct thread_info * now. | |
12905 | Fetch lwpid from current_inferior directly. | |
12906 | (arm_insert_point): Pass &all_threads to find_inferior instead of | |
12907 | &all_lwps. | |
12908 | (arm_remove_point): Ditto. | |
12909 | (arm_stopped_by_watchpoint): Fetch lwp from current_inferior. | |
12910 | (arm_prepare_to_resume): Fetch pid from thread. | |
12911 | (arm_read_description): Fetch lwpid from current_inferior directly. | |
12912 | * linux-low.c (all_lwps): Delete. | |
12913 | (delete_lwp): Delete call to remove_inferior. | |
12914 | (handle_extended_wait): Fetch lwpid from thread. | |
12915 | (add_lwp): Don't set lwp->entry.id. Remove call to | |
12916 | add_inferior_to_list. | |
12917 | (linux_attach_lwp_1): Fetch pid from current_inferior directly. | |
12918 | (linux_kill_one_lwp): Fetch ptid,lwpid from thread. | |
12919 | (kill_one_lwp_callback): Ditto. | |
12920 | (linux_kill): Don't dereference NULL pointer. | |
12921 | Fetch ptid,lwpid from thread. | |
12922 | (get_detach_signal): Fetch ptid from thread. | |
12923 | (linux_detach_one_lwp): Fetch ptid,lwpid from thread. | |
12924 | Simplify call to regcache_invalidate_thread. | |
12925 | (delete_lwp_callback): Update, "entry" parameter is a | |
12926 | struct thread_info * now. Fetch pid from thread. | |
12927 | (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps. | |
12928 | (status_pending_p_callback): Update, "entry" parameter is a | |
12929 | struct thread_info * now. Fetch ptid from thread. | |
12930 | (find_lwp_pid): Update, "entry" parameter is a | |
12931 | struct thread_info * now. | |
12932 | (linux_wait_for_lwp): Fetch pid from thread. | |
12933 | (linux_fast_tracepoint_collecting): Fetch lwpid from thread. | |
12934 | (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior. | |
12935 | (enqueue_one_deferred_signal): Fetch lwpid from thread. | |
12936 | (dequeue_one_deferred_signal): Ditto. | |
12937 | (cancel_breakpoint): Fetch ptid from current_inferior. | |
12938 | (linux_wait_for_event): Pass &all_threads to find_inferior, | |
12939 | not &all_lwps. Fetch ptid, lwpid from thread. | |
12940 | (count_events_callback): Update, "entry" parameter is a | |
12941 | struct thread_info * now. | |
12942 | (select_singlestep_lwp_callback): Ditto. | |
12943 | (select_event_lwp_callback): Ditto. | |
12944 | (cancel_breakpoints_callback): Ditto. | |
12945 | (linux_cancel_breakpoints): Pass &all_threads to find_inferior, | |
12946 | not &all_lwps. | |
12947 | (select_event_lwp): Ditto. Fetch ptid from event_thread. | |
12948 | (unsuspend_one_lwp): Update, "entry" parameter is a | |
12949 | struct thread_info * now. | |
12950 | (unsuspend_all_lwps): Pass &all_threads to find_inferior, | |
12951 | not &all_lwps. | |
12952 | (linux_stabilize_threads): Ditto. And for for_each_inferior. | |
12953 | Fetch lwpid from thread, not lwp. | |
12954 | (linux_wait_1): Fetch ptid, lwpid from current_inferior. | |
12955 | Pass &all_threads to find_inferior, not &all_lwps. | |
12956 | (send_sigstop): Fetch lwpid from thread, not lwp. | |
12957 | (send_sigstop_callback): Update, "entry" parameter is a | |
12958 | struct thread_info * now. | |
12959 | (suspend_and_send_sigstop_callback): Ditto. | |
12960 | (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp. | |
12961 | (stuck_in_jump_pad_callback): Update, "entry" parameter is a | |
12962 | struct thread_info * now. | |
12963 | (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid | |
12964 | from thread, lwp. | |
12965 | (lwp_running): Update, "entry" parameter is a | |
12966 | struct thread_info * now. | |
12967 | (stop_all_lwps): Fetch ptid from thread. | |
12968 | Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps. | |
12969 | (linux_resume_one_lwp): Fetch lwpid from thread. | |
12970 | (linux_set_resume_request): Update, "entry" parameter is a | |
12971 | struct thread_info * now. Fetch pid, lwpid from thread. | |
12972 | (resume_status_pending_p): Update, "entry" parameter is a | |
12973 | struct thread_info * now. | |
12974 | (need_step_over_p): Ditto. Fetch lwpid from thread. | |
12975 | (start_step_over): Fetch lwpid from thread. | |
12976 | (linux_resume_one_thread): Update, "entry" parameter is a | |
12977 | struct thread_info * now. Fetch lwpid from thread. | |
12978 | (linux_resume): Pass &all_threads to find_inferior, not &all_lwps. | |
12979 | (proceed_one_lwp): Update, "entry" parameter is a | |
12980 | struct thread_info * now. Fetch lwpid from thread. | |
12981 | (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a | |
12982 | struct thread_info * now. | |
12983 | (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps. | |
12984 | (unstop_all_lwps): Ditto. Fetch lwpid from thread. | |
12985 | (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior | |
12986 | directly. | |
12987 | (regsets_store_inferior_registers): Ditto. | |
12988 | (fetch_register, store_register): Ditto. | |
12989 | (linux_read_memory, linux_write_memory): Ditto. | |
12990 | (linux_request_interrupt): Ditto. | |
12991 | (linux_read_auxv): Ditto. | |
12992 | (linux_xfer_siginfo): Ditto. | |
12993 | (linux_qxfer_spu): Ditto. | |
12994 | (linux_qxfer_libraries_svr4): Ditto. | |
12995 | * linux-low.h (ptid_of, pid_of, lwpid_of): Delete, | |
12996 | moved to inferiors.h. | |
12997 | (get_lwp): Delete. | |
12998 | (get_thread_lwp): Update. | |
12999 | (struct lwp_info): Delete member "entry". Simplify comment for | |
13000 | member "thread". | |
13001 | (all_lwps): Delete. | |
13002 | * linux-mips-low.c (mips_read_description): Fetch lwpid from | |
13003 | current_inferior directly. | |
13004 | (update_watch_registers_callback): Update, "entry" parameter is a | |
13005 | struct thread_info * now. Fetch pid from thread. | |
13006 | (mips_linux_prepare_to_resume): Fetch ptid from thread. | |
13007 | (mips_insert_point): Fetch lwpid from current_inferior. | |
13008 | Pass &all_threads to find_inferior, not &all_lwps. | |
13009 | (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps. | |
13010 | (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior | |
13011 | directly. | |
13012 | (mips_stopped_data_address): Ditto. | |
13013 | * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior | |
13014 | directly. | |
13015 | * linux-tile-low.c (tile_arch_setup): Ditto. | |
13016 | * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread. | |
13017 | (update_debug_registers_callback): Update, "entry" parameter is a | |
13018 | struct thread_info * now. Fetch pid from thread. | |
13019 | (i386_dr_low_set_addr): Fetch pid from current_inferior directly. | |
13020 | Pass &all_threads to find_inferior, not &all_lwps. | |
13021 | (i386_dr_low_get_addr): Fetch ptid from current_inferior directly. | |
13022 | (i386_dr_low_set_control): Fetch pid from current_inferior directly. | |
13023 | Pass &all_threads to find_inferior, not &all_lwps. | |
13024 | (i386_dr_low_get_control): Fetch ptid from current_inferior directly. | |
13025 | (i386_dr_low_get_status): Ditto. | |
13026 | (x86_linux_prepare_to_resume): Fetch ptid from thread. | |
13027 | (x86_siginfo_fixup): Fetch lwpid from current_inferior directly. | |
13028 | (x86_linux_read_description): Ditto. | |
13029 | * proc-service.c (ps_getpid): Fetch pid from current_inferior directly. | |
13030 | ||
3b8361aa DE |
13031 | 2014-02-20 Doug Evans <dje@google.com> |
13032 | ||
13033 | * inferiors.c (get_first_inferior): Fix buglet. | |
13034 | ||
f7667f0d DE |
13035 | 2014-02-19 Doug Evans <dje@google.com> |
13036 | ||
13037 | * gdbthread.h (add_thread): Change result type to struct thread_info *. | |
13038 | * inferiors.c (add_thread): Change result type to struct thread_info *. | |
13039 | All callers updated. | |
13040 | (add_lwp): Call add_thread here instead of in callers. | |
13041 | All callers updated. | |
13042 | * linux-low.h (get_lwp_thread): Rewrite. | |
13043 | (struct lwp_info): New member "thread". | |
13044 | ||
b3312d80 DE |
13045 | 2014-02-19 Doug Evans <dje@google.com> |
13046 | ||
13047 | * linux-low.c (add_lwp): Change result to struct lwp_info *. | |
13048 | All callers updated. | |
13049 | ||
ecc6f45c DE |
13050 | 2014-02-19 Doug Evans <dje@google.com> |
13051 | ||
13052 | * inferiors.c (add_thread): Fix whitespace. | |
13053 | ||
649ebbca DE |
13054 | 2014-02-19 Doug Evans <dje@google.com> |
13055 | ||
13056 | * dll.c (clear_dlls): Replace accessing list implemention details | |
13057 | with API function. | |
13058 | * gdbthread.h (get_first_thread): Declare. | |
13059 | * inferiors.c (for_each_inferior_with_data): New function. | |
13060 | (get_first_thread): New function. | |
13061 | (find_thread_ptid): Simplify. | |
13062 | (get_first_inferior): New function. | |
13063 | (clear_list): Delete. | |
13064 | (one_inferior_p): New function. | |
13065 | (clear_inferior_list): New function. | |
13066 | (clear_inferiors): Update. | |
13067 | * inferiors.h (for_each_inferior_with_data): Declare. | |
13068 | (clear_inferior_list): Declare. | |
13069 | (one_inferior_p): Declare. | |
13070 | (get_first_inferior): Declare. | |
13071 | * linux-low.c (linux_wait_for_event): Replace accessing list | |
13072 | implemention details with API function. | |
13073 | * server.c (target_running): Ditto. | |
13074 | (accumulate_file_name_length): New function. | |
13075 | (emit_dll_description): New function. | |
13076 | (handle_qxfer_libraries): Replace accessing list implemention | |
13077 | details with API function. | |
13078 | (handle_qxfer_threads_worker): New function. | |
13079 | (handle_qxfer_threads_proper): Replace accessing list implemention | |
13080 | details with API function. | |
13081 | (handle_query): Ditto. | |
13082 | (visit_actioned_threads_callback_ftype): New typedef. | |
13083 | (visit_actioned_threads_data): New struct. | |
13084 | (visit_actioned_threads): Rewrite to be find_inferior callback. | |
13085 | (resume): Call find_inferior. | |
13086 | (handle_status): Replace accessing list implemention | |
13087 | details with API function. | |
13088 | (process_serial_event): Replace accessing list implemention details | |
13089 | with API function. | |
13090 | * target.c (set_desired_inferior): Replace accessing list implemention | |
13091 | details with API function. | |
13092 | * tracepoint.c (same_process_p): New function. | |
13093 | (gdb_agent_about_to_close): Replace accessing list implemention | |
13094 | details with API function. | |
13095 | * win32-low.c (child_delete_thread): Replace accessing list | |
13096 | implemention details with API function. | |
13097 | (match_dll_by_basename): New function. | |
13098 | (dll_is_loaded_by_basename): New function. | |
13099 | (win32_ensure_ntdll_loaded): Replace accessing list implemention | |
13100 | details call to dll_is_loaded_by_basename. | |
13101 | ||
80894984 DE |
13102 | 2014-02-19 Doug Evans <dje@google.com> |
13103 | ||
13104 | * dll.h (struct dll_info): Add comment. | |
13105 | * gdbthread.h (struct thread_info): Add comment. | |
13106 | (current_ptid): Simplify. | |
13107 | * inferiors.c (add_process): Update. | |
13108 | (remove_process): Update. | |
13109 | * inferiors.h (struct process_info): Rename member "head" to "entry". | |
13110 | * linux-low.c (delete_lwp): Update. | |
13111 | (add_lwp): Update. | |
13112 | (last_thread_of_process_p): Update. | |
13113 | (kill_one_lwp_callback, linux_kill): Update. | |
13114 | (status_pending_p_callback): Update. | |
13115 | (wait_for_sigstop): Update. Simplify read of ptid. | |
13116 | (start_step_over): Update. | |
13117 | * linux-low.h (ptid_of, pid_of, lwpid_of): Update. | |
13118 | (get_lwp_thread): Update. | |
13119 | (struct lwp_info): Rename member "head" to "entry". | |
13120 | * regcache.h (inferior_list_entry): Delete. | |
13121 | * server.c (kill_inferior_callback): Update. | |
13122 | (detach_or_kill_inferior_callback): Update. | |
13123 | (print_started_pid): Update. | |
13124 | (print_attached_pid): Update. | |
13125 | (process_serial_event): Simplify read of ptid. | |
13126 | * thread-db.c (thread_db_create_event): Update. | |
13127 | (thread_db_get_tls_address): Update. | |
13128 | * win32-low.c (current_inferior_ptid): Simplify. | |
13129 | ||
46917d26 TT |
13130 | 2014-02-19 Tom Tromey <tromey@redhat.com> |
13131 | ||
13132 | * target.h (struct target_ops) <supports_btrace>: Add target_ops | |
13133 | argument. | |
13134 | (target_supports_btrace): Update. | |
13135 | ||
0759a81e YQ |
13136 | 2014-02-14 Yao Qi <yao@codesourcery.com> |
13137 | ||
13138 | * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o. | |
13139 | (rsp-low-ipa.o): New target. | |
13140 | ||
a7191e8b TT |
13141 | 2014-02-12 Tom Tromey <tromey@redhat.com> |
13142 | ||
13143 | * ax.c (gdb_parse_agent_expr): Use hex2bin, not | |
13144 | convert_ascii_to_int. | |
13145 | * regcache.c (registers_to_string): Likewise. | |
13146 | * remote-utils.c (decode_M_packet): Likewise. | |
13147 | * server.c (process_serial_event): Likewise. | |
13148 | ||
ff0e980e TT |
13149 | 2014-02-12 Tom Tromey <tromey@redhat.com> |
13150 | ||
13151 | * server.c (handle_query, handle_v_run): Use hex2bin, not | |
13152 | unhexify. | |
13153 | * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise. | |
13154 | ||
e9371aff TT |
13155 | 2014-02-12 Tom Tromey <tromey@redhat.com> |
13156 | ||
13157 | * ax.c (gdb_unparse_agent_expr): Use bin2hex, not | |
13158 | convert_int_to_ascii. | |
13159 | * regcache.c (registers_to_string, collect_register_as_string): | |
13160 | Likewise. | |
13161 | * remote-utils.c (look_up_one_symbol, relocate_instruction): | |
13162 | Likewise. | |
13163 | * server.c (process_serial_event): Likewise. | |
13164 | * tracepoint.c (cmd_qtstatus, response_source, response_tsv) | |
13165 | (cmd_qtbuffer, cstr_to_hexstr): Likewise. | |
13166 | ||
971dc0b8 TT |
13167 | 2014-02-12 Tom Tromey <tromey@redhat.com> |
13168 | ||
13169 | * remote-utils.c (look_up_one_symbol, monitor_output): Use | |
13170 | bin2hex, not hexify. | |
13171 | * tracepoint.c (cmd_qtstatus): Likewise. | |
13172 | ||
0a822afb TT |
13173 | 2014-02-12 Tom Tromey <tromey@redhat.com> |
13174 | ||
13175 | * remote-utils.c (monitor_output): Pass explicit length to | |
13176 | hexify. | |
13177 | ||
9c3d6531 TT |
13178 | 2014-02-12 Tom Tromey <tromey@redhat.com> |
13179 | ||
13180 | * tracepoint.c: Include rsp-low.h. | |
13181 | * server.c: Include rsp-low.h. | |
13182 | * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii) | |
13183 | (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't | |
13184 | declare. | |
13185 | * remote-utils.c: Include rsp-low.h. | |
13186 | (fromhex, hexchars, ishex, unhexify, tohex, hexify) | |
13187 | (remote_escape_output, remote_unescape_input, unpack_varlen_hex) | |
13188 | (convert_int_to_ascii, convert_ascii_to_int): Move to | |
13189 | common/rsp-low.c. | |
13190 | * regcache.c: Include rsp-low.h. | |
13191 | * ax.c: Include rsp-low.h. | |
13192 | * Makefile.in (SFILES): Add common/rsp-low.c. | |
13193 | (OBS): Add rsp-low.o. | |
13194 | (rsp-low.o): New target. | |
13195 | ||
01fd3ea5 TT |
13196 | 2014-02-12 Tom Tromey <tromey@redhat.com> |
13197 | ||
13198 | * utils.h (pulongest, plongest, phex_nz): Don't declare. | |
13199 | Include print-utils.h. | |
13200 | * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest) | |
13201 | (plongest, thirty_two, phex_nz): Remove. | |
13202 | * Makefile.in (SFILES): Add common/print-utils.c. | |
13203 | (OBS): Add print-utils.o. | |
13204 | (print-utils-ipa.o): New target. | |
13205 | (print-utils.o): New target. | |
13206 | (IPA_OBJS): Add print-utils-ipa.o. | |
13207 | ||
e99dc820 TT |
13208 | 2014-02-06 Tom Tromey <tromey@redhat.com> |
13209 | ||
13210 | * Makefile.in (SFILES): Fix indentation. | |
13211 | ||
ee1e2d4f DE |
13212 | 2014-02-05 Doug Evans <dje@google.com> |
13213 | ||
13214 | * linux-low.c (linux_wait_for_event): Improve comment. | |
13215 | (linux_wait_1): Keep current_inferior in sync with event_child. | |
13216 | ||
f5a02773 DE |
13217 | 2014-01-22 Doug Evans <dje@google.com> |
13218 | ||
13219 | * gdbthread.h (gdb_id_to_thread): Delete, unused. | |
13220 | ||
87ce2a04 DE |
13221 | 2014-01-22 Doug Evans <dje@google.com> |
13222 | ||
13223 | * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday. | |
13224 | * configure: Regenerate. | |
13225 | * config.in: Regenerate. | |
13226 | * Makefile.in (SFILES): Add debug.c. | |
13227 | (OBS): Add debug.o. | |
13228 | * debug.c: New file. | |
13229 | * debug.h: New file. | |
13230 | * linux-aarch64-low.c (*): Update all debugging printfs to use | |
13231 | debug_printf instead of fprintf. | |
13232 | * linux-arm-low.c (*): Ditto. | |
13233 | * linux-cris-low.c (*): Ditto. | |
13234 | * linux-crisv32-low.c (*): Ditto. | |
13235 | * linux-m32r-low.c (*): Ditto. | |
13236 | * linux-sparc-low.c (*): Ditto. | |
13237 | * linux-x86.c (*): Ditto. | |
13238 | * linux-low.c (*): Ditto. | |
13239 | (linux_wait_1): Add calls to debug_enter, debug_exit. | |
13240 | (linux_wait): Remove redundant debugging printf. | |
13241 | (stop_all_lwps): Add calls to debug_enter, debug_exit. | |
13242 | (linux_resume, unstop_all_lwps): Ditto. | |
13243 | * mem-break.c (*): Update all debugging printfs to use | |
13244 | debug_printf instead of fprintf. | |
13245 | * remote-utils.c (*): Ditto. | |
13246 | * thread-db.c (*): Ditto. | |
13247 | * server.c #include <ctype.h>, "gdb_vecs.h". | |
13248 | (debug_threads): Moved to debug.c. | |
13249 | (*): Update all debugging printfs to use debug_printf instead of | |
13250 | fprintf. | |
13251 | (start_inferior): Replace call to fflush with call to debug_flush. | |
13252 | (monitor_show_help): Mention set debug-format. | |
13253 | (parse_debug_format_options): New function. | |
13254 | (handle_monitor_command): Handle "monitor set debug-format". | |
13255 | (gdbserver_usage): Mention --debug-format. | |
13256 | (main): Parse --debug-format. | |
13257 | * server.h (debug_threads): Declaration moved to debug.h. | |
13258 | #include "debug.h". | |
13259 | * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of | |
13260 | trace_debug_1 that uses debug_printf. | |
13261 | (tracepoint_look_up_symbols): Update all debugging printfs to use | |
13262 | debug_printf instead of fprintf. | |
13263 | ||
e671835b BS |
13264 | 2014-01-20 Baruch Siach <baruch@tkos.co.il> |
13265 | ||
13266 | * linux-xtensa-low.c: Include asm/ptrace.h instead of | |
13267 | sys/ptrace.h. | |
13268 | ||
b5737fa9 PA |
13269 | 2014-01-17 Pedro Alves <palves@redhat.com> |
13270 | ||
ea38d2a9 | 13271 | PR build/16445 |
c7faa97a PA |
13272 | * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is |
13273 | defined after including gdb_proc_service.h. | |
b5737fa9 | 13274 | |
40ed484e DE |
13275 | 2014-01-16 Doug Evans <dje@google.com> |
13276 | ||
13277 | * dll.c (UNSPECIFIED_CORE_ADDR): New macro. | |
13278 | (match_dll): Use it. | |
13279 | ||
969c39fb MM |
13280 | 2014-01-16 Markus Metzger <markus.t.metzger@intel.com> |
13281 | ||
13282 | * target.h (target_ops) <read_btrace>: Change parameters and | |
13283 | return type to allow error reporting. | |
13284 | * server.c (handle_qxfer_btrace): Support delta reads. Pass | |
13285 | trace reading errors on. | |
13286 | * linux-low.c (linux_low_read_btrace): Pass trace reading | |
13287 | errors on. | |
13288 | (linux_low_disable_btrace): New. | |
13289 | ||
ab7f45ba DE |
13290 | 2014-01-15 Doug Evans <dje@google.com> |
13291 | ||
13292 | * inferiors.c (thread_id_to_gdb_id): Delete. | |
13293 | * inferiors.h (thread_id_to_gdb_id): Delete. | |
13294 | ||
66af0f44 EZ |
13295 | 2014-01-13 Eli Zaretskii <eliz@gnu.org> |
13296 | ||
13297 | * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from | |
13298 | "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC | |
13299 | versions. | |
13300 | ||
9939e131 PA |
13301 | 2014-01-08 Pedro Alves <palves@redhat.com> |
13302 | ||
13303 | * server.c (handle_status): Don't discard previous queued stop | |
13304 | replies or thread's pending status here. | |
13305 | (main) <disconnection>: Do it here instead. | |
13306 | ||
b7ea362b PA |
13307 | 2014-01-08 Pedro Alves <palves@redhat.com> |
13308 | ||
13309 | * gdbthread.h (struct thread_info) <status_pending_p>: New field. | |
13310 | * server.c (visit_actioned_threads, handle_pending_status): New | |
13311 | function. | |
13312 | (handle_v_cont): Factor out parts to ... | |
13313 | (resume): ... this new function. If in all-stop, and a thread | |
13314 | being resumed has a pending status, report it without actually | |
13315 | resuming. | |
13316 | (myresume): Adjust to use the new 'resume' function. | |
13317 | (clear_pending_status_callback, set_pending_status_callback) | |
13318 | (find_status_pending_thread_callback): New functions. | |
13319 | (handle_status): Handle the case of multiple threads having | |
13320 | interesting statuses to report. Report threads' real last signal | |
13321 | instead of always reporting GDB_SIGNAL_TRAP. Look for a thread | |
13322 | with an interesting thread to report the status for, instead of | |
13323 | always reporting the status of the first thread. | |
13324 | ||
28498c42 JB |
13325 | 2014-01-01 Joel Brobecker <brobecker@adacore.com> |
13326 | ||
13327 | * gdbserver.c (gdbserver_version): Set copyright year to 2014. | |
13328 | * gdbreplay.c (gdbreplay_version): Likewise. | |
13329 | ||
f45c82da YZ |
13330 | 2013-12-18 Yufeng Zhang <yufeng.zhang@arm.com> |
13331 | ||
13332 | * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set | |
13333 | iov.iov_len with the real length in use. | |
13334 | ||
379a5e2d JB |
13335 | 2013-12-13 Joel Brobecker <brobecker@adacore.com> |
13336 | ||
13337 | * Makefile.in (safe-ctype.o, lbasename.o): New rules. | |
13338 | * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj | |
13339 | for all targets that use win32-low.c. | |
13340 | * win32-low.c (win32_ensure_ntdll_loaded): New function. | |
13341 | (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded. | |
13342 | ||
4210d83e PA |
13343 | 2013-12-13 Pedro Alves <palves@redhat.com> |
13344 | ||
13345 | * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED | |
13346 | if equal to TARGET_WAITKIND_LOADED. | |
13347 | * win32-low.c (cached_status): New static global. | |
13348 | (win32_wait): Add declaration. | |
13349 | (do_initial_child_stuff): Flush all initial pending debug events | |
13350 | up to the initial breakpoint. | |
13351 | (win32_wait): If CACHED_STATUS was set, return that instead | |
13352 | of doing a real wait. Remove the code resuming the execution | |
13353 | of the inferior after receiving a TARGET_WAITKIND_LOADED event | |
13354 | during the initial phase. Also remove the code changing | |
13355 | OURSTATUS->KIND from TARGET_WAITKIND_LOADED to | |
13356 | TARGET_WAITKIND_STOPPED. | |
13357 | ||
e7f0d979 YQ |
13358 | 2013-12-11 Yao Qi <yao@codesourcery.com> |
13359 | ||
13360 | * notif.c (handle_notif_ack): Return 0 if no notification | |
13361 | matches. | |
13362 | ||
ebcf782c DE |
13363 | 2013-11-20 Doug Evans <dje@google.com> |
13364 | ||
13365 | * linux-low.c (linux_set_resume_request): Fix comment. | |
13366 | ||
20ad9378 DE |
13367 | 2013-11-20 Doug Evans <dje@google.com> |
13368 | ||
13369 | * linux-low.c (resume_status_pending_p): Tweak comment. | |
13370 | ||
a196ebeb WT |
13371 | 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com> |
13372 | ||
13373 | * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c, | |
13374 | amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation. | |
13375 | * configure.srv (srv_i386_regobj): Add i386-mpx.o. | |
13376 | (srv_i386_linux_regobj): Add i386-mpx-linux.o. | |
13377 | (srv_amd64_regobj): Add amd64-mpx.o. | |
13378 | (srv_amd64_linux_regobj): Add amd64-mpx-linux.o. | |
13379 | (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml. | |
13380 | (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml. | |
13381 | * i387-fp.c (num_pl_bnd_register) Added constant. | |
13382 | (num_pl_bnd_cfg_registers) Added constant. | |
13383 | (struct i387_xsave) Added reserved area and MPX fields. | |
13384 | (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX. | |
13385 | * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new | |
13386 | function. | |
13387 | (tdesc_i386_mpx_linux): Add MPX amd64 target. | |
13388 | (init_registers_amd64_mpx_linux): Declare new function. | |
13389 | (tdesc_amd64_mpx_linux): Add MPX amd64 target. | |
13390 | (x86_64_regmap): Add MPX registers. | |
13391 | (x86_linux_read_description): Add MPX case. | |
13392 | (initialize_low_arch): Initialize MPX targets. | |
13393 | ||
0080a2f6 TT |
13394 | 2013-11-18 Tom Tromey <tromey@redhat.com> |
13395 | ||
13396 | * configure: Rebuild. | |
13397 | * configure.ac: Don't check for stdlib.h. | |
13398 | * gdbreplay.c: Unconditionally include stdlib.h. | |
13399 | ||
2978b111 TT |
13400 | 2013-11-18 Tom Tromey <tromey@redhat.com> |
13401 | ||
13402 | * config.in: Rebuild. | |
13403 | * configure: Rebuild. | |
13404 | * configure.ac: Don't use AC_HEADER_DIRENT. | |
13405 | ||
a3d08894 TT |
13406 | 2013-11-18 Tom Tromey <tromey@redhat.com> |
13407 | ||
13408 | * server.h: Don't check HAVE_STRING_H. | |
13409 | * gdbreplay.c: Don't check HAVE_STRING_H. | |
13410 | * configure: Rebuild. | |
13411 | ||
0a5dd17d TT |
13412 | 2013-11-18 Tom Tromey <tromey@redhat.com> |
13413 | ||
13414 | * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against | |
13415 | LIBGNU. | |
13416 | ||
1bd2f0ba TT |
13417 | 2013-11-08 Tom Tromey <tromey@redhat.com> |
13418 | ||
13419 | * configure, config.in: Rebuild. | |
13420 | * configure.ac: Remove unused configury. | |
13421 | ||
3266f10b TT |
13422 | 2013-11-08 Tom Tromey <tromey@redhat.com> |
13423 | ||
13424 | * acinclude.m4: Include common.m4, codeset.m4. | |
13425 | * configure, config.in: Rebuild. | |
13426 | * configure.ac: Use GDB_AC_COMMON. | |
13427 | ||
6682d959 AA |
13428 | 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com> |
13429 | ||
13430 | * linux-s390-low.c (HWCAP_S390_TE): New define. | |
13431 | (s390_arch_setup): Consider the TE field in the HWCAP for | |
13432 | determining 'have_regset_tdb'. | |
13433 | ||
fd0a4d76 SDJ |
13434 | 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com> |
13435 | ||
13436 | PR gdb/16014 | |
13437 | * tracepoint.c (download_tracepoint_1): Remove unnecessary double | |
13438 | call to sizeof. | |
13439 | ||
1a3d890b PA |
13440 | 2013-10-02 Pedro Alves <palves@redhat.com> |
13441 | ||
13442 | * server.c (process_serial_event): Don't output "GDBserver | |
13443 | exiting" if GDB is connected through stdio. | |
13444 | * target.c (mywait): Likewise, be silent if GDB is connected | |
13445 | through stdio. | |
13446 | ||
97ad4581 JB |
13447 | 2013-10-01 Joel Brobecker <brobecker@adacore.com> |
13448 | ||
13449 | * lynx-low.c (lynx_add_threads_after_attach): New function. | |
13450 | (lynx_attach): Remove call to add_thread. Add call to | |
13451 | lynx_add_threads_after_attach instead. | |
13452 | ||
5b4e221c MF |
13453 | 2013-09-28 Mike Frysinger <vapier@gentoo.org> |
13454 | ||
13455 | * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h | |
13456 | * config.in, configure: Regenerated. | |
13457 | ||
ee47b2f8 YQ |
13458 | 2013-09-18 Yao Qi <yao@codesourcery.com> |
13459 | ||
13460 | PR server/15959 | |
13461 | * server.c (start_inferior): Clear 'resume_info'. | |
13462 | ||
d6707650 | 13463 | 2013-09-16 Jiong Wang <jiwang@tilera.com> |
0f63d4db | 13464 | |
d6707650 JW |
13465 | * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit |
13466 | for each register. | |
13467 | ||
9243dd0e | 13468 | 2013-09-16 Jiong Wang <jiwang@tilera.com> |
0f63d4db | 13469 | |
9243dd0e JW |
13470 | * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add |
13471 | linux-tile-low.o to srv_tgtobj. | |
13472 | ||
c623a6ef WN |
13473 | 2013-09-16 Will Newton <will.newton@linaro.org> |
13474 | ||
13475 | * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero | |
13476 | out regs. | |
13477 | ||
fb71d39e PA |
13478 | 2013-09-06 Pedro Alves <palves@redhat.com> |
13479 | ||
13480 | * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h) | |
13481 | (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h) | |
13482 | (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h) | |
13483 | (server_h, gdbthread_h, linux_low_h, linux_ptrace_h) | |
13484 | (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h) | |
13485 | (mips_linux_watch_h, i386_low_h, win32_low_h): Delete. | |
13486 | ||
8e7e9910 PA |
13487 | 2013-09-06 Pedro Alves <palves@redhat.com> |
13488 | ||
13489 | * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove | |
13490 | explicit header dependencies and use $COMPILE/$POSTCOMPILE. | |
13491 | ||
7c3a12ca PA |
13492 | 2013-09-06 Pedro Alves <palves@redhat.com> |
13493 | ||
13494 | * linux-amd64-ipa.c: Include tracepoint.h. | |
13495 | * linux-i386-ipa.c: Include tracepoint.h. | |
13496 | ||
8eb3d7b6 RW |
13497 | 2013-09-06 Ricard Wanderlof <ricardw@axis.com> |
13498 | ||
13499 | * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro. | |
13500 | (ps_get_thread_area): New function. | |
13501 | ||
eddddb9d RW |
13502 | 2013-09-06 Ricard Wanderlof <ricardw@axis.com> |
13503 | ||
13504 | * linux-crisv32-low.c (elf_gregset_t): Delete typedef. | |
13505 | (initialize_low_arch): Call init_registers_crisv32 rather than | |
13506 | init_register_crisv32. | |
13507 | ||
533b0600 PA |
13508 | 2013-09-05 Pedro Alves <palves@redhat.com> |
13509 | ||
13510 | * server.h (handle_vFile, hostio_last_error_from_errno): Move | |
13511 | to ... | |
13512 | * hostio.h: ... this new file. | |
13513 | * hostio.c, server.c, linux-low.c, nto-low.c, spu-low, | |
13514 | win32-low.c: Include hostio.h. | |
13515 | ||
0ce3d3b5 PA |
13516 | 2013-09-05 Pedro Alves <palves@redhat.com> |
13517 | ||
13518 | * server.h (gdb_client_data, handler_func, callback_handler_func) | |
13519 | (delete_file_handler, add_file_handler, append_callback_event) | |
13520 | (delete_callback_event, start_event_loop, initialize_event_loop): | |
13521 | Move to event-loop.h and include it. | |
13522 | * event-loop.h: New file. | |
13523 | ||
799cdc37 PA |
13524 | 2013-09-05 Pedro Alves <palves@redhat.com> |
13525 | ||
13526 | * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h". | |
13527 | * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls) | |
13528 | (loaded_dll, unloaded_dll): Move to ... | |
13529 | * dll.h: ... this new file. | |
13530 | * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h". | |
13531 | ||
6a6bbd9d PA |
13532 | 2013-09-05 Pedro Alves <palves@redhat.com> |
13533 | ||
13534 | * server.h (current_process, get_thread_process, all_processes) | |
13535 | (add_inferior_to_list, for_each_inferior, current_inferior) | |
13536 | (remove_inferior, add_process, remove_process, find_process_pid) | |
13537 | (have_started_inferiors_p, have_attached_inferiors_p) | |
13538 | (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id) | |
13539 | (clear_inferiors, find_inferior, find_inferior_id) | |
13540 | (inferior_target_data, set_inferior_target_data) | |
13541 | (inferior_regcache_data, set_inferior_regcache_data): Move to | |
13542 | inferiors.h, and include it. | |
13543 | * inferiors.h: New file. | |
13544 | ||
f699aaba PA |
13545 | 2013-09-05 Pedro Alves <palves@redhat.com> |
13546 | ||
13547 | * server.h (struct emit_ops, current_insn_ptr, emit_error): | |
13548 | Move ... | |
72f4393d | 13549 | * ax.h: ... here. |
f699aaba | 13550 | |
c144c7a0 PA |
13551 | 2013-09-05 Pedro Alves <palves@redhat.com> |
13552 | ||
13553 | * ax.c, linux-low.c, linux-x86-low.c, server.c: Include | |
13554 | tracepoint.h. | |
13555 | * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing) | |
13556 | (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing | |
13557 | (handle_tracepoint_general_set, handle_tracepoint_query) | |
13558 | (tracepoint_finished_step, tracepoint_was_hit) | |
13559 | (release_while_stepping_state_list, current_traceframe) | |
13560 | (in_readonly_region, traceframe_read_mem) | |
13561 | (fetch_traceframe_registers, traceframe_read_sdata) | |
13562 | (traceframe_read_info, struct fast_tpoint_collect_status) | |
13563 | (fast_tracepoint_collecting, force_unlock_trace_buffer) | |
13564 | (handle_tracepoit_bkpts, initialize_low_tracepoint) | |
13565 | (supply_fast_tracepoint_registers) | |
13566 | (supply_static_tracepoint_registers, set_trampoline_buffer_space) | |
13567 | (ipa_tdesc, claim_trampoline_space) | |
13568 | (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close) | |
13569 | (agent_mem_read, agent_get_trace_state_variable_value) | |
13570 | (agent_set_trace_state_variable_value, agent_tsv_read) | |
13571 | (agent_mem_read_string, get_raw_reg_func_addr) | |
13572 | (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ... | |
13573 | * tracepoint.h: ... this new file. | |
13574 | ||
ff42e6ab PA |
13575 | 2013-09-05 Pedro Alves <palves@redhat.com> |
13576 | ||
13577 | * server.h (perror_with_name, error, fatal, warning, paddress) | |
13578 | (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and | |
13579 | include it. | |
13580 | * utils.h: New file. | |
13581 | ||
541af0f4 PA |
13582 | 2013-09-05 Pedro Alves <palves@redhat.com> |
13583 | ||
13584 | * server.h (remote_debug, noack_mode, transport_is_reliable) | |
13585 | (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio) | |
13586 | (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif) | |
13587 | (getpkt, remote_prepare, remote_open, remote_close, write_ok) | |
13588 | (write_enn, initialize_async_io, enable_async_io) | |
13589 | (disable_async_io, check_remote_input_interrupt_request) | |
13590 | (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify) | |
13591 | (dead_thread_notify, prepare_resume_reply) | |
13592 | (decode_address_to_semicolon, decode_address, decode_m_packet) | |
13593 | (decode_M_packet, decode_X_packet, decode_xfer_write) | |
13594 | (decode_search_memory_packet, unhexify, hexify) | |
13595 | (remote_escape_output, unpack_varlen_hex, clear_symbol_cache) | |
13596 | (look_up_one_symbol, relocate_instruction) | |
13597 | (monitor_output): Move to remote-utils.h, and include it. | |
13598 | * remote-utils.h: New file. | |
13599 | ||
eebdf26b PA |
13600 | 2013-09-05 Pedro Alves <palves@redhat.com> |
13601 | ||
13602 | * server.h (_): Delete. | |
13603 | ||
3aafd2ff PA |
13604 | 2013-09-02 Pedro Alves <palves@redhat.com> |
13605 | ||
13606 | * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro. | |
13607 | (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is | |
13608 | allocated. | |
13609 | (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE. | |
13610 | ||
cee83bcb PM |
13611 | 2013-09-02 Pierre Muller <muller@sourceware.org> |
13612 | ||
13613 | * win32-low.c (child_xfer_memory): Check if ReadProcessMemory | |
13614 | or WriteProcessMemory complete successfully and handle | |
13615 | ERROR_PARTIAL_COPY error. | |
13616 | ||
9a13b2fa PA |
13617 | 2013-09-02 Pedro Alves <palves@redhat.com> |
13618 | ||
13619 | * server.c (gdb_read_memory): Return -1 on traceframe memory read | |
13620 | error instead of EIO. | |
13621 | ||
602e3198 JK |
13622 | 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
13623 | ||
13624 | PR server/15604 | |
13625 | * linux-low.c: Include filestuff.h. | |
13626 | (linux_create_inferior) <pid == 0>: Call close_most_fds. | |
13627 | * lynx-low.c: Include filestuff.h. | |
13628 | (lynx_create_inferior) <pid == 0>: Call close_most_fds. | |
13629 | * server.c: Include filestuff.h. | |
13630 | (main): Call notice_open_fds. | |
13631 | * spu-low.c: Include filestuff.h. | |
13632 | (spu_create_inferior) <pid == 0>: Call close_most_fds. | |
13633 | ||
96d7229d LM |
13634 | 2013-08-22 Luis Machado <lgustavo@codesourcery.com> |
13635 | ||
13636 | * Makefile.in: Explain why ../target and ../nat are not | |
13637 | listed as include file search paths. | |
13638 | (linux-waitpid.o): New object file rule. | |
13639 | * configure.srv (srv_native_linux_obj): New variable. | |
13640 | Replace all occurrences of linux native object files with | |
13641 | $srv_native_linux_obj. | |
13642 | * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h. | |
13643 | (HAS_NOMMU): Move defining logic to common/linux-ptrace.c. | |
13644 | (linux_enable_event_reporting): Remove declaration. | |
13645 | (my_waitpid): Moved to common/linux-waitpid.c. | |
13646 | (linux_wait_for_event): Pass ptid when calling | |
13647 | linux_enable_event_reporting. | |
13648 | (linux_supports_tracefork_flag): Remove. | |
13649 | (linux_enable_event_reporting): Likewise. | |
13650 | (linux_tracefork_grandchild): Remove. | |
13651 | (STACK_SIZE): Moved to common/linux-ptrace.c. | |
13652 | (linux_tracefork_child): Remove. | |
13653 | (linux_test_for_tracefork): Remove. | |
13654 | (linux_look_up_symbols): Call linux_supports_traceclone. | |
13655 | (initialize_low): Remove call to linux_test_for_tracefork. | |
13656 | * linux-low.h (PTRACE_TYPE_ARG3): Move to | |
13657 | common/linux-ptrace.h. | |
13658 | (PTRACE_TYPE_ARG4): Likewise. | |
13659 | Include linux-ptrace.h. | |
13660 | ||
32940073 PA |
13661 | 2013-08-21 Pedro Alves <palves@redhat.com> |
13662 | ||
13663 | * config.in: Renegerate. | |
13664 | ||
33b60d58 | 13665 | 2013-08-19 Luis Machado <lgustavo@codesourcery.com> |
a261b8f5 | 13666 | |
33b60d58 LM |
13667 | * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../. |
13668 | (SFILES): Remove $(srcdir)/common/target-common.c and | |
13669 | add $(srcdir)/target/waitstatus.c. | |
13670 | (OBS): Remove target-common.o and add waitstatus.o. | |
13671 | (server_h): Remove $(srcdir)/../common/target-common.h and | |
13672 | add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h | |
13673 | and $(srcdir)/../target/waitstatus.h. | |
13674 | (target-common.o): Remove. | |
13675 | (waitstatus.o): New target object file. | |
13676 | * target.h: Do not include target-common.h and | |
13677 | include target/resume.h, target/wait.h and | |
13678 | target/waitstatus.h. | |
13679 | ||
b8e1b30e LM |
13680 | 2013-08-13 Luis Machado <lgustavo@codesourcery.com> |
13681 | ||
13682 | * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE | |
13683 | to PTRACE_TYPE_ARG3. | |
13684 | * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE | |
13685 | to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to | |
13686 | PTRACE_TYPE_ARG4. | |
13687 | * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3. | |
13688 | (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4. | |
13689 | ||
7a60ad40 YQ |
13690 | 2013-07-27 Jie Zhang <jie@codesourcery.com> |
13691 | Daniel Jacobowitz <dan@codesourcery.com> | |
13692 | Yao Qi <yao@codesourcery.com> | |
13693 | ||
13694 | * Makefile.in (SFILES): Add common/mips-linux-watch.c. | |
13695 | (mips-linux-watch.o): New rule. | |
13696 | (mips_linux_watch_h): New variable. | |
13697 | * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to | |
13698 | srv_tgtobj. | |
13699 | * linux-mips-low.c: Include mips-linux-watch.h. | |
13700 | (struct arch_process_info, struct arch_lwp_info): New. | |
13701 | (update_watch_registers_callback): New function. | |
13702 | (mips_linux_new_process, mips_linux_new_thread) New functions. | |
13703 | (mips_linux_prepare_to_resume, mips_insert_point): New | |
13704 | functions. | |
13705 | (mips_remove_point, mips_stopped_by_watchpoint): New | |
13706 | functions. | |
13707 | (rsp_bp_type_to_target_hw_bp_type): New function. | |
13708 | (mips_stopped_data_address): New function. | |
13709 | (the_low_target): Add watchpoint support functions. | |
13710 | ||
de6f69ad YQ |
13711 | 2013-07-27 Yao Qi <yao@codesourcery.com> |
13712 | ||
13713 | * i386-low.c: Include break-common.h. | |
13714 | (enum target_hw_bp_type): Remove. | |
13715 | ||
3360c0bf LM |
13716 | 2013-07-24 Luis Machado <lgustavo@codesourcery.com> |
13717 | ||
13718 | * Makefile.in (SFILES): /common/target-common.c. | |
13719 | (OBS): Add target-common.o. | |
13720 | (server_h): Add $(srcdir)/../common/target-common.h. | |
13721 | (target-common.o): New target. | |
13722 | * server.c (queue_stop_reply_callback): Free | |
13723 | status string after use. | |
13724 | * target.c (target_waitstatus_to_string): Remove. | |
13725 | * target.h: Include target-common.h. | |
13726 | (resume_kind): Likewise. | |
13727 | (target_waitkind): Likewise. | |
13728 | (target_waitstatus): Likewise. | |
13729 | (TARGET_WNOHANG): Likewise. | |
13730 | ||
bd885420 YQ |
13731 | 2013-07-04 Yao Qi <yao@codesourcery.com> |
13732 | ||
13733 | * Makefile.in (host_alias): Use @host_noncanonical@. | |
13734 | (target_alias): Use @target_noncanonical@. | |
13735 | * configure.ac: Use ACX_NONCANONICAL_TARGET and | |
13736 | ACX_NONCANONICAL_HOST. | |
13737 | * configure: Regenerated. | |
13738 | ||
13739 | Revert: | |
13740 | 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com> | |
13741 | ||
13742 | * configure.ac (version_host, version_target): Set and AC_SUBST them. | |
13743 | * configure: Rebuild. | |
13744 | * Makefile.in (version_host, version_target): Get from configure. | |
13745 | (version.c): Use $(version_host) and $(version_target). | |
13746 | ||
17ef446e PA |
13747 | 2013-07-03 Pedro Alves <palves@redhat.com> |
13748 | ||
13749 | * Makefile.in (config.status): Depend on development.sh. | |
13750 | * acinclude.m4: Include libmcheck.m4. | |
13751 | * configure: Regenerate. | |
13752 | ||
7a9a7487 MG |
13753 | 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com> |
13754 | ||
13755 | * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI | |
13756 | attribute inside the parentheses. | |
13757 | (winapi_DebugSetProcessKillOnExit): Ditto. | |
13758 | (winapi_DebugBreakProcess): Ditto. | |
13759 | (winapi_GenerateConsoleCtrlEvent): Ditto. | |
a261b8f5 | 13760 | |
49b64de6 MG |
13761 | 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com> |
13762 | ||
13763 | * notif.h (notif_event): Add a dummy member to avoid compiler | |
13764 | errors. | |
13765 | ||
d5749ee7 PA |
13766 | 2013-07-01 Pedro Alves <palves@redhat.com> |
13767 | ||
13768 | * hostio.c (HOSTIO_PATH_MAX): Define. | |
13769 | (require_filename, handle_open, handle_unlink, handle_readlink): | |
13770 | Use it. | |
13771 | ||
d8d2a3ee PA |
13772 | 2013-07-01 Pedro Alves <palves@redhat.com> |
13773 | ||
13774 | * server.h: Include "pathmax.h". | |
13775 | * linux-low.c: Don't include sys/param.h. | |
13776 | (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of | |
13777 | MAXPATHLEN. | |
13778 | * win32-low.c: Don't include sys/param.h. | |
13779 | (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN. | |
13780 | ||
bc7dea8d PA |
13781 | 2013-07-01 Pedro Alves <palves@redhat.com> |
13782 | ||
13783 | * event-loop.c: Don't check HAVE_UNISTD_H before including | |
13784 | <unistd.h>. | |
13785 | * gdbreplay.c: Likewise. | |
13786 | * remote-utils.c: Likewise. | |
13787 | * server.c: Likewise. | |
13788 | * configure.ac: Don't check for unistd.h. | |
13789 | * configure: Regenerate. | |
13790 | ||
d6c2da54 TT |
13791 | 2013-06-28 Tom Tromey <tromey@redhat.com> |
13792 | ||
13793 | * Makefile.in (version.c): Use version.in, not | |
13794 | common/version.in. | |
13795 | ||
257b6bec MG |
13796 | 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com> |
13797 | ||
13798 | * configure.ac (version_host, version_target): Set and AC_SUBST them. | |
13799 | * configure: Rebuild. | |
13800 | * Makefile.in (version_host, version_target): Get from configure. | |
13801 | (version.c): Use $(version_host) and $(version_target). | |
13802 | ||
86ebe149 DK |
13803 | 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com> |
13804 | ||
13805 | Fix trace-status to output user name without trailing colon. | |
13806 | * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name. | |
13807 | ||
f30aa5af DK |
13808 | 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com> |
13809 | ||
13810 | Fix trace-status to output proper start-time and stop-time. | |
13811 | * tracepoint.c (cmd_qtstatus): Modify trace-status output to | |
13812 | output start time and stop time in hex as gdb expects. | |
13813 | ||
28a93511 YQ |
13814 | 2013-06-26 Pedro Alves <pedro@codesourcery.com> |
13815 | ||
13816 | * tracepoint.c (build_traceframe_info_xml): Output trace state | |
13817 | variables present in the trace buffer. | |
13818 | ||
01208463 TT |
13819 | 2013-06-24 Tom Tromey <tromey@redhat.com> |
13820 | ||
13821 | * Makefile.in (version.c): Use bfd/version.h, common/version.in, | |
13822 | create-version.sh. | |
13823 | (version.o): Remove. | |
13824 | * gdbreplay.c: Include version.h. | |
13825 | (version, host_name): Don't declare. | |
13826 | * server.h: Include version.h. | |
13827 | (version, host_name): Don't declare. | |
13828 | ||
760256f9 PA |
13829 | 2013-06-12 Pedro Alves <palves@redhat.com> |
13830 | ||
13831 | * linux-x86-low.c (linux_is_elf64): Delete global. | |
13832 | (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global | |
13833 | with local linux_pid_exe_is_elf_64_file use. | |
13834 | ||
030031ee PA |
13835 | 2013-06-11 Pedro Alves <palves@redhat.com> |
13836 | ||
13837 | * linux-low.c (regset_disabled, disable_regset): New functions. | |
13838 | (regsets_fetch_inferior_registers) | |
13839 | (regsets_store_inferior_registers): Use them. | |
13840 | (initialize_regsets_info); Don't allocate the disabled_regsets | |
13841 | array here. | |
13842 | * linux-low.h (struct regsets_info) <disabled_regsets>: Extend | |
13843 | comment. | |
13844 | ||
5da6eb0a PA |
13845 | 2013-06-11 Pedro Alves <palves@redhat.com> |
13846 | ||
13847 | * linux-low.c (initialize_regsets_info): Use xcalloc instead of | |
13848 | xmalloc. | |
13849 | ||
7e5aaa09 PA |
13850 | 2013-06-11 Pedro Alves <palves@redhat.com> |
13851 | ||
13852 | * linux-x86-low.c (initialize_low_arch): Call | |
13853 | init_registers_x32_avx_linux. | |
13854 | ||
d878444c JK |
13855 | 2013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com> |
13856 | ||
13857 | Fix compatibility with Android Bionic. | |
13858 | * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if | |
13859 | it is not empty. | |
13860 | ||
3aee8918 PA |
13861 | 2013-06-07 Pedro Alves <palves@redhat.com> |
13862 | ||
5f2b57b5 | 13863 | PR server/14823 |
3aee8918 PA |
13864 | * Makefile.in (OBS): Add tdesc.o. |
13865 | (IPA_OBJS): Add tdesc-ipa.o. | |
13866 | (tdesc-ipa.o): New rule. | |
13867 | * ax.c (gdb_eval_agent_expr): Adjust register_size call to new | |
13868 | interface. | |
13869 | * linux-low.c (new_inferior): Delete. | |
13870 | (disabled_regsets, num_regsets): Delete. | |
13871 | (linux_add_process): Adjust to set the new per-process | |
13872 | new_inferior flag. | |
13873 | (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread. | |
13874 | (linux_wait_for_lwp): Adjust. Only call arch_setup if the event | |
13875 | was a stop. When calling arch_setup, switch the current inferior | |
13876 | to the thread that got an event. | |
13877 | (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread. | |
13878 | (regsets_fetch_inferior_registers) | |
13879 | (regsets_store_inferior_registers): New regsets_info parameter. | |
13880 | Adjust to use it. | |
13881 | (linux_register_in_regsets): New regs_info parameter. Adjust to | |
13882 | use it. | |
13883 | (register_addr, fetch_register, store_register): New usrregs_info | |
13884 | parameter. Adjust to use it. | |
13885 | (usr_fetch_inferior_registers, usr_store_inferior_registers): New | |
13886 | parameter regs_info. Adjust to use it. | |
13887 | (linux_fetch_registers): Get the current inferior's regs_info, and | |
13888 | adjust to use it. | |
13889 | (linux_store_registers): Ditto. | |
13890 | [HAVE_LINUX_REGSETS] (initialize_regsets_info): New. | |
13891 | (initialize_low): Don't initialize the target_regsets here. Call | |
13892 | initialize_low_arch. | |
13893 | * linux-low.h (target_regsets): Delete declaration. | |
13894 | (struct regsets_info): New. | |
13895 | (struct usrregs_info): New. | |
13896 | (struct regs_info): New. | |
13897 | (struct process_info_private) <new_inferior>: New field. | |
13898 | (struct linux_target_ops): Delete the num_regs, regmap, and | |
13899 | regset_bitmap fields. New field regs_info. | |
13900 | [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare. | |
13901 | * i387-fp.c (num_xmm_registers): Delete. | |
13902 | (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno | |
13903 | calls to new interface. | |
13904 | (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache) | |
13905 | (i387_xsave_to_cache): Adjust find_regno calls to new interface. | |
13906 | Infer the number of xmm registers from the regcache's target | |
13907 | description. | |
13908 | * i387-fp.h (num_xmm_registers): Delete. | |
13909 | * inferiors.c (add_thread): Don't install the thread's regcache | |
13910 | here. | |
13911 | * proc-service.c (gregset_info): Fetch the current inferior's | |
13912 | regs_info. Adjust to use it. | |
13913 | * regcache.c: Include tdesc.h. | |
13914 | (register_bytes, reg_defs, num_registers) | |
13915 | (gdbserver_expedite_regs): Delete. | |
13916 | (get_thread_regcache): If the thread doesn't have a regcache yet, | |
13917 | create one, instead of aborting gdbserver. | |
13918 | (regcache_invalidate_one): Rename to ... | |
13919 | (regcache_invalidate_thread): ... this. | |
13920 | (regcache_invalidate_one): New. | |
13921 | (regcache_invalidate): Only invalidate registers of the current | |
13922 | process. | |
13923 | (init_register_cache): Add target_desc parameter, and use it. | |
13924 | (new_register_cache): Ditto. Assert the target description has a | |
13925 | non zero registers_size. | |
13926 | (regcache_cpy): Add assertions. Adjust. | |
13927 | (realloc_register_cache, set_register_cache): Delete. | |
13928 | (registers_to_string, registers_from_string): Adjust. | |
13929 | (find_register_by_name, find_regno, find_register_by_number) | |
13930 | (register_cache_size): Add target_desc parameter, and use it. | |
13931 | (free_register_cache_thread, free_register_cache_thread_one) | |
13932 | (regcache_release, register_cache_size): New. | |
13933 | (register_size): Add target_desc parameter, and use it. | |
13934 | (register_data, supply_register, supply_register_zeroed) | |
13935 | (supply_regblock, supply_register_by_name, collect_register) | |
13936 | (collect_register_as_string, collect_register_by_name): Adjust. | |
13937 | * regcache.h (struct target_desc): Forward declare. | |
13938 | (struct regcache) <tdesc>: New field. | |
13939 | (init_register_cache, new_register_cache): Add target_desc | |
13940 | parameter. | |
13941 | (regcache_invalidate_thread): Declare. | |
13942 | (regcache_invalidate_one): Delete declaration. | |
13943 | (regcache_release): Declare. | |
13944 | (find_register_by_number, register_cache_size, register_size) | |
13945 | (find_regno): Add target_desc parameter. | |
13946 | (gdbserver_expedite_regs, gdbserver_xmltarget): Delete | |
13947 | declarations. | |
13948 | * remote-utils.c: Include tdesc.h. | |
13949 | (outreg, prepare_resume_reply): Adjust. | |
13950 | * server.c: Include tdesc.h. | |
13951 | (gdbserver_xmltarget): Delete declaration. | |
13952 | (get_features_xml, process_serial_event): Adjust. | |
13953 | * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward | |
13954 | declare. | |
13955 | (struct process_info) <tdesc>: New field. | |
13956 | (ipa_tdesc): Declare. | |
13957 | * tdesc.c: New file. | |
13958 | * tdesc.h: New file. | |
13959 | * tracepoint.c: Include tdesc.h. | |
13960 | [IN_PROCESS_AGENT] (ipa_tdesc): Define. | |
13961 | (get_context_regcache): Adjust to pass ipa_tdesc down. | |
13962 | (do_action_at_tracepoint): Adjust to get the register cache size | |
13963 | from the context regcache's description. | |
13964 | (traceframe_walk_blocks): Adjust to get the register cache size | |
13965 | from the current trace frame's description. | |
13966 | (traceframe_get_pc): Adjust to get current trace frame's | |
13967 | description and pass it down. | |
13968 | (gdb_collect): Adjust to get the register cache size from the | |
13969 | IPA's description. | |
13970 | * linux-amd64-ipa.c (tdesc_amd64_linux): Declare. | |
13971 | (gdbserver_xmltarget): Delete. | |
13972 | (initialize_low_tracepoint): Set the ipa's target description. | |
13973 | * linux-i386-ipa.c (tdesc_i386_linux): Declare. | |
13974 | (initialize_low_tracepoint): Set the ipa's target description. | |
13975 | * linux-x86-low.c: Include tdesc.h. | |
13976 | [__x86_64__] (is_64bit_tdesc): New. | |
13977 | (ps_get_thread_area, x86_get_thread_area): Use it. | |
13978 | (i386_cannot_store_register): Rename to ... | |
13979 | (x86_cannot_store_register): ... this. Use is_64bit_tdesc. | |
13980 | (i386_cannot_fetch_register): Rename to ... | |
13981 | (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc. | |
13982 | (x86_fill_gregset, x86_store_gregset): Adjust register_size calls | |
13983 | to new interface. | |
13984 | (target_regsets): Rename to ... | |
13985 | (x86_regsets): ... this. | |
13986 | (x86_get_pc, x86_set_pc): Adjust register_size calls to new | |
13987 | interface. | |
13988 | (x86_siginfo_fixup): Use is_64bit_tdesc. | |
13989 | [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux) | |
13990 | (tdesc_x32_avx_linux, tdesc_x32_linux) | |
13991 | (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux): | |
13992 | Declare. | |
13993 | (x86_linux_update_xmltarget): Delete. | |
13994 | (I386_LINUX_XSAVE_XCR0_OFFSET): Define. | |
13995 | (have_ptrace_getfpxregs, have_ptrace_getregset): New. | |
13996 | (AMD64_LINUX_USER64_CS): New. | |
13997 | (x86_linux_read_description): New, based on | |
13998 | x86_linux_update_xmltarget. | |
13999 | (same_process_callback): New. | |
14000 | (x86_arch_setup_process_callback): New. | |
14001 | (x86_linux_update_xmltarget): New. | |
14002 | (x86_regsets_info): New. | |
14003 | (amd64_linux_regs_info): New. | |
14004 | (i386_linux_usrregs_info): New. | |
14005 | (i386_linux_regs_info): New. | |
14006 | (x86_linux_regs_info): New. | |
14007 | (x86_arch_setup): Reimplement. | |
14008 | (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc. | |
14009 | (x86_emit_ops): Ditto. | |
14010 | (the_low_target): Adjust. Install x86_linux_regs_info, | |
14011 | x86_cannot_fetch_register, and x86_cannot_store_register. | |
14012 | (initialize_low_arch): New. | |
14013 | * linux-ia64-low.c (tdesc_ia64): Declare. | |
14014 | (ia64_fetch_register): Adjust. | |
14015 | (ia64_usrregs_info, regs_info): New globals. | |
14016 | (ia64_regs_info): New function. | |
14017 | (the_low_target): Adjust. | |
14018 | (initialize_low_arch): New function. | |
14019 | * linux-sparc-low.c (tdesc_sparc64): Declare. | |
14020 | (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack): | |
14021 | Adjust. | |
14022 | (sparc_arch_setup): New function. | |
14023 | (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals. | |
14024 | (the_low_target): Adjust. | |
14025 | (initialize_low_arch): New function. | |
14026 | * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l) | |
14027 | (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l) | |
14028 | (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l) | |
14029 | (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l) | |
14030 | (tdesc_powerpc_64l, tdesc_powerpc_altivec64l) | |
14031 | (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l) | |
14032 | (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l) | |
14033 | (tdesc_powerpc_isa205_vsx64l): Declare. | |
14034 | (ppc_cannot_store_register, ppc_collect_ptrace_register) | |
14035 | (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc) | |
14036 | (ppc_set_pc, ppc_get_hwcap): Adjust. | |
14037 | (ppc_usrregs_info): Forward declare. | |
14038 | (!__powerpc64__) ppc_regmap_adjusted: New global. | |
14039 | (ppc_arch_setup): Adjust to the current process'es target | |
14040 | description. | |
14041 | (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset) | |
14042 | (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse) | |
14043 | (ppc_store_evrregset): Adjust. | |
14044 | (target_regsets): Rename to ... | |
14045 | (ppc_regsets): ... this, and make static. | |
14046 | (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals. | |
14047 | (ppc_regs_info): New function. | |
14048 | (the_low_target): Adjust. | |
14049 | (initialize_low_arch): New function. | |
14050 | * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1) | |
14051 | (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1) | |
14052 | (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1) | |
14053 | (tdesc_s390x_linux64v2): Declare. | |
14054 | (s390_collect_ptrace_register, s390_supply_ptrace_register) | |
14055 | (s390_fill_gregset, s390_store_last_break): Adjust. | |
14056 | (target_regsets): Rename to ... | |
14057 | (s390_regsets): ... this, and make static. | |
14058 | (s390_get_pc, s390_set_pc): Adjust. | |
14059 | (s390_get_hwcap): New target_desc parameter, and use it. | |
14060 | [__s390x__] (have_hwcap_s390_high_gprs): New global. | |
14061 | (s390_arch_setup): Adjust to set the current process'es target | |
14062 | description. Don't adjust the regmap. | |
14063 | (s390_usrregs_info, s390_regsets_info, regs_info): New globals. | |
14064 | [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264) | |
14065 | (regs_info_3264): New globals. | |
14066 | (s390_regs_info): New function. | |
14067 | (the_low_target): Adjust. | |
14068 | (initialize_low_arch): New function. | |
14069 | * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux) | |
14070 | (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare. | |
14071 | [__mips64] (init_registers_mips_linux) | |
14072 | (init_registers_mips_dsp_linux): Delete defines. | |
14073 | [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines. | |
14074 | (have_dsp): New global. | |
14075 | (mips_read_description): New, based on mips_arch_setup. | |
14076 | (mips_arch_setup): Reimplement. | |
14077 | (get_usrregs_info): New function. | |
14078 | (mips_cannot_fetch_register, mips_cannot_store_register) | |
14079 | (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset) | |
14080 | (mips_fill_fpregset, mips_store_fpregset): Adjust. | |
14081 | (target_regsets): Rename to ... | |
14082 | (mips_regsets): ... this, and make static. | |
14083 | (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info) | |
14084 | (dsp_regs_info, regs_info): New globals. | |
14085 | (mips_regs_info): New function. | |
14086 | (the_low_target): Adjust. | |
14087 | (initialize_low_arch): New function. | |
14088 | * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt) | |
14089 | (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon): | |
14090 | Declare. | |
14091 | (arm_fill_vfpregset, arm_store_vfpregset): Adjust. | |
14092 | (arm_read_description): New, with bits factored from | |
14093 | arm_arch_setup. | |
14094 | (arm_arch_setup): Reimplement. | |
14095 | (target_regsets): Rename to ... | |
14096 | (arm_regsets): ... this, and make static. | |
14097 | (arm_regsets_info, arm_usrregs_info, regs_info): New globals. | |
14098 | (arm_regs_info): New function. | |
14099 | (the_low_target): Adjust. | |
14100 | (initialize_low_arch): New function. | |
14101 | * linux-m68k-low.c (tdesc_m68k): Declare. | |
14102 | (target_regsets): Rename to ... | |
14103 | (m68k_regsets): ... this, and make static. | |
14104 | (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals. | |
14105 | (m68k_regs_info): New function. | |
14106 | (m68k_arch_setup): New function. | |
14107 | (the_low_target): Adjust. | |
14108 | (initialize_low_arch): New function. | |
14109 | * linux-sh-low.c (tdesc_sharch): Declare. | |
14110 | (target_regsets): Rename to ... | |
14111 | (sh_regsets): ... this, and make static. | |
14112 | (sh_regsets_info, sh_usrregs_info, regs_info): New globals. | |
14113 | (sh_regs_info, sh_arch_setup): New functions. | |
14114 | (the_low_target): Adjust. | |
14115 | (initialize_low_arch): New function. | |
14116 | * linux-bfin-low.c (tdesc_bfin): Declare. | |
14117 | (bfin_arch_setup): New function. | |
14118 | (bfin_usrregs_info, regs_info): New globals. | |
14119 | (bfin_regs_info): New function. | |
14120 | (the_low_target): Adjust. | |
14121 | (initialize_low_arch): New function. | |
14122 | * linux-cris-low.c (tdesc_cris): Declare. | |
14123 | (cris_arch_setup): New function. | |
14124 | (cris_usrregs_info, regs_info): New globals. | |
14125 | (cris_regs_info): New function. | |
14126 | (the_low_target): Adjust. | |
14127 | (initialize_low_arch): New function. | |
14128 | * linux-cris-low.c (tdesc_crisv32): Declare. | |
14129 | (cris_arch_setup): New function. | |
14130 | (cris_regsets_info, cris_usrregs_info, regs_info): New globals. | |
14131 | (cris_regs_info): New function. | |
14132 | (the_low_target): Adjust. | |
14133 | (initialize_low_arch): New function. | |
14134 | * linux-m32r-low.c (tdesc_m32r): Declare. | |
14135 | (m32r_arch_setup): New function. | |
14136 | (m32r_usrregs_info, regs_info): New globals. | |
14137 | (m32r_regs_info): Adjust. | |
14138 | (initialize_low_arch): New function. | |
14139 | * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux) | |
14140 | (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare. | |
14141 | (tic6x_usrregs_info): Forward declare. | |
14142 | (tic6x_read_description): New function, based on ... | |
14143 | (tic6x_arch_setup): ... this. Reimplement. | |
14144 | (target_regsets): Rename to ... | |
14145 | (tic6x_regsets): ... this, and make static. | |
14146 | (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals. | |
14147 | (tic6x_regs_info): New function. | |
14148 | (the_low_target): Adjust. | |
14149 | (initialize_low_arch): New function. | |
14150 | * linux-xtensa-low.c (tdesc_xtensa): Declare. | |
14151 | (xtensa_fill_gregset, xtensa_store_gregset): Adjust. | |
14152 | (target_regsets): Rename to ... | |
14153 | (xtensa_regsets): ... this, and make static. | |
14154 | (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New | |
14155 | globals. | |
14156 | (xtensa_arch_setup, xtensa_regs_info): New functions. | |
14157 | (the_low_target): Adjust. | |
14158 | (initialize_low_arch): New function. | |
14159 | * linux-nios2-low.c (tdesc_nios2_linux): Declare. | |
14160 | (nios2_arch_setup): Set the current process'es tdesc. | |
14161 | (target_regsets): Rename to ... | |
14162 | (nios2_regsets): ... this. | |
14163 | (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals. | |
14164 | (nios2_regs_info): New function. | |
14165 | (the_low_target): Adjust. | |
14166 | (initialize_low_arch): New function. | |
a261b8f5 PA |
14167 | * linux-aarch64-low.c (tdesc_aarch64): Declare. |
14168 | (aarch64_arch_setup): Set the current process'es tdesc. | |
14169 | (target_regsets): Rename to ... | |
14170 | (aarch64_regsets): ... this. | |
14171 | (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals. | |
14172 | (aarch64_regs_info): New function. | |
14173 | (the_low_target): Adjust. | |
14174 | (initialize_low_arch): New function. | |
3aee8918 PA |
14175 | * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare |
14176 | globals. | |
14177 | (target_regsets): Rename to ... | |
14178 | (tile_regsets): ... this. | |
14179 | (tile_regsets_info, tile_usrregs_info, regs_info): New globals. | |
14180 | (tile_regs_info): New function. | |
14181 | (tile_arch_setup): Set the current process'es tdesc. | |
14182 | (the_low_target): Adjust. | |
14183 | (initialize_low_arch): New function. | |
14184 | * spu-low.c (tdesc_spu): Declare. | |
14185 | (spu_create_inferior, spu_attach): Set the new process'es tdesc. | |
14186 | * win32-arm-low.c (tdesc_arm): Declare. | |
14187 | (arm_arch_setup): New function. | |
14188 | (the_low_target): Install arm_arch_setup instead of | |
14189 | init_registers_arm. | |
14190 | * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare. | |
14191 | (init_windows_x86): Rename to ... | |
14192 | (i386_arch_setup): ... this. Set `win32_tdesc'. | |
14193 | (the_low_target): Adjust. | |
14194 | * win32-low.c (win32_tdesc): New global. | |
14195 | (child_add_thread): Don't create the thread cache here. | |
14196 | (do_initial_child_stuff): Set the new process'es tdesc. | |
14197 | * win32-low.h (struct target_desc): Forward declare. | |
14198 | (win32_tdesc): Declare. | |
14199 | * lynx-i386-low.c (tdesc_i386): Declare global. | |
14200 | (lynx_i386_arch_setup): Set `lynx_tdesc'. | |
14201 | * lynx-low.c (lynx_tdesc): New global. | |
14202 | (lynx_add_process): Set the new process'es tdesc. | |
14203 | * lynx-low.h (struct target_desc): Forward declare. | |
14204 | (lynx_tdesc): Declare global. | |
14205 | * lynx-ppc-low.c (tdesc_powerpc_32): Declare global. | |
14206 | (lynx_ppc_arch_setup): Set `lynx_tdesc'. | |
14207 | * nto-low.c (nto_tdesc): New global. | |
14208 | (do_attach): Set the new process'es tdesc. | |
14209 | * nto-low.h (struct target_desc): Forward declare. | |
14210 | (nto_tdesc): Declare. | |
14211 | * nto-x86-low.c (tdesc_i386): Declare. | |
14212 | (nto_x86_arch_setup): Set `nto_tdesc'. | |
14213 | ||
b1fbec62 GB |
14214 | 2013-06-04 Gary Benson <gbenson@redhat.com> |
14215 | ||
14216 | * server.c (handle_query): Add "augmented-libraries-svr4-read+" | |
14217 | to qSupported response when appropriate. | |
14218 | (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read | |
14219 | with nonzero-length annex. | |
14220 | * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle | |
14221 | arguments supplied in annex. | |
14222 | ||
d1ec4ce7 DE |
14223 | 2013-05-31 Doug Evans <dje@google.com> |
14224 | ||
ac44adcb | 14225 | PR server/15594 |
d1ec4ce7 DE |
14226 | * linux-x86-low.c (ps_get_thread_area): Properly extend address to |
14227 | 64 bits in 64-cross-32 environment. | |
14228 | ||
9b25f2d3 PA |
14229 | 2013-05-28 Pedro Alves <palves@redhat.com> |
14230 | ||
14231 | * Makefile.in (clean): Remove reference to aarch64-without-fpu.c. | |
14232 | (aarch64-without-fpu.c): Delete rule. | |
14233 | * configure.srv (aarch64*-*-linux*): Remove references to | |
14234 | aarch64-without-fpu.o and aarch64-without-fpu.xml. | |
14235 | * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove | |
14236 | declaration. | |
14237 | ||
6740dc9c PA |
14238 | 2013-05-24 Pedro Alves <palves@redhat.com> |
14239 | ||
14240 | * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex | |
14241 | instead of strchr/decode_address. Error if the range isn't split | |
14242 | with a ','. Don't assume there's be a ':' in the action. | |
14243 | ||
c2d6af84 PA |
14244 | 2013-05-23 Yao Qi <yao@codesourcery.com> |
14245 | Pedro Alves <palves@redhat.com> | |
14246 | ||
14247 | * linux-low.c (lwp_in_step_range): New function. | |
14248 | (linux_wait_1): If the thread was range stepping and stopped | |
14249 | outside the stepping range, report the stop to GDB. Otherwise, | |
14250 | continue stepping. Add range stepping debug output. | |
14251 | (linux_set_resume_request): Copy the step range from the resume | |
14252 | request to the lwp. | |
14253 | (linux_supports_range_stepping): New. | |
14254 | (linux_target_ops) <supports_range_stepping>: Set to | |
14255 | linux_supports_range_stepping. | |
14256 | * linux-low.h (struct linux_target_ops) | |
14257 | <supports_range_stepping>: New field. | |
14258 | (struct lwp_info) <step_range_start, step_range_end>: New fields. | |
14259 | * linux-x86-low.c (x86_supports_range_stepping): New. | |
14260 | (the_low_target) <supports_range_stepping>: Set to | |
14261 | x86_supports_range_stepping. | |
14262 | * server.c (handle_v_cont): Handle 'r' action. | |
14263 | (handle_v_requests): Append ";r" if the target supports range | |
14264 | stepping. | |
14265 | * target.h (struct thread_resume) <step_range_start, | |
14266 | step_range_end>: New fields. | |
14267 | (struct target_ops) <supports_range_stepping>: | |
14268 | New field. | |
14269 | (target_supports_range_stepping): New macro. | |
14270 | ||
58794e1a JB |
14271 | 2013-05-17 Joel Brobecker <brobecker@adacore.com> |
14272 | ||
14273 | * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid | |
14274 | confusion in comment. | |
14275 | ||
d631c5a7 JB |
14276 | 2013-05-17 Joel Brobecker <brobecker@adacore.com> |
14277 | ||
14278 | * lynx-low.c (struct process_info_private): New type. | |
14279 | (lynx_add_process): New function. | |
14280 | (lynx_create_inferior, lynx_attach): Replace calls to | |
14281 | add_process by calls to lynx_add_process. | |
14282 | (lynx_resume): If PTID is null, then try using | |
14283 | current_process()->private->last_wait_event_ptid. | |
14284 | Add comments. | |
14285 | (lynx_clear_inferiors): Delete. The contents of that function | |
14286 | has been inlined in lynx_mourn; | |
14287 | (lynx_wait_1): Save the ptid in the process's private data. | |
14288 | (lynx_mourn): Free the process' private data. Replace call | |
14289 | to lynx_clear_inferiors by call to clear_inferiors. | |
14290 | ||
96f7a20f YQ |
14291 | 2013-05-17 Yao Qi <yao@codesourcery.com> |
14292 | ||
14293 | * i386-low.c (i386_length_and_rw_bits): Move the comment to | |
14294 | the right place. | |
14295 | ||
db0dfaa0 LM |
14296 | 2013-05-16 Luis Machado <lgustavo@codesourcery.com> |
14297 | ||
14298 | * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR, | |
14299 | PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments. | |
14300 | (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and | |
14301 | PT_TEXT_END_ADDR guards. Update comments. | |
14302 | (linux_target_op) <read_offsets>: Conditionally define to | |
14303 | linux_read_offsets if the target is UCLIBC and if it defines | |
14304 | PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR. | |
14305 | ||
68f5f838 SL |
14306 | 2013-05-06 Sandra Loosemore <sandra@codesourcery.com> |
14307 | Andrew Jenner <andrew@codesourcery.com> | |
14308 | ||
14309 | * Makefile.in (SFILES): Add linux-nios2-low.c. | |
14310 | (clean): Add action to delete nios2-linux.c. | |
14311 | (nios2-linux.c): New rule. | |
14312 | * configure.srv: Add nios2*-*-linux*. | |
14313 | * linux-nios2-low.c: New. | |
14314 | ||
1ebff1fd HAQ |
14315 | 2013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com> |
14316 | ||
14317 | * tracepoint.c (cmd_qtinit): Call 'stop_tracing'. | |
14318 | ||
f6150862 HZ |
14319 | 2013-04-25 Hui Zhu <hui@codesourcery.com> |
14320 | ||
14321 | PR gdb/15186 | |
f6150862 HZ |
14322 | * ax.c (ax_printf): Add fflush. |
14323 | ||
614c279d TT |
14324 | 2013-04-22 Tom Tromey <tromey@redhat.com> |
14325 | ||
14326 | * Makefile.in (SFILES): Add filestuff.c. | |
14327 | (OBS): Add filestuff.o. | |
14328 | (filestuff.o): New target. | |
14329 | * config.in, configure: Rebuild. | |
14330 | * configure.ac: Check for fdwalk, pipe2. | |
14331 | ||
7d4e5717 PA |
14332 | 2013-04-17 Pedro Alves <palves@redhat.com> |
14333 | ||
14334 | * configure.ac (USE_THREAD_DB): Delete variable. | |
14335 | (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB. | |
14336 | Don't AC_SUBST USE_THREAD_DB. | |
14337 | * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@. | |
14338 | * config.in, configure: Regenerate. | |
14339 | ||
d5c93e41 PA |
14340 | 2013-04-16 Pedro Alves <palves@redhat.com> |
14341 | ||
14342 | * linux-low.h (struct lwp_info) <thread_known>: Move under | |
14343 | the USE_THREAD_DB #ifdef. | |
14344 | ||
04f5fe89 PA |
14345 | 2013-04-16 Pedro Alves <palves@redhat.com> |
14346 | ||
14347 | * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@. | |
14348 | (linux-low.o): Delete rule. | |
14349 | * linux-low.h: Always include "gdb_thread_db.h" instead of | |
14350 | conditionally including thread_db.h. | |
14351 | (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of | |
14352 | HAVE_THREAD_DB_H. | |
14353 | ||
480b27bf JK |
14354 | 2013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com> |
14355 | ||
14356 | * Makefile.in (install-only): Fix make install regression. | |
14357 | ||
43662968 JK |
14358 | 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com> |
14359 | ||
14360 | Convert man pages to texinfo, new gdbinit.5 texinfo page. | |
14361 | * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1 | |
14362 | installation. | |
14363 | * gdbserver.1: Remove. | |
14364 | ||
3e74e146 PA |
14365 | 2013-03-22 Pedro Alves <palves@redhat.com> |
14366 | ||
14367 | * linux-low.c (handle_extended_wait): Don't call | |
14368 | linux_enable_event_reporting. | |
14369 | ||
a8347a2a TT |
14370 | 2013-03-15 Tony Theodore <tonyt@logyst.com> |
14371 | ||
14372 | PR build/9098: | |
14373 | * Makefile.in (SHELL): Use @SHELL@. | |
14374 | ||
eeb56fa7 SDJ |
14375 | 2013-03-14 Sergio Durigan Junior <sergiodj@redhat.com> |
14376 | ||
14377 | * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing | |
14378 | compiler warning. | |
14379 | ||
4fa7e2ff JB |
14380 | 2013-03-13 Joel Brobecker <brobecker@adacore.com> |
14381 | ||
14382 | * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]: | |
14383 | Remove extraneous NULL element. | |
14384 | ||
8ddb1965 YQ |
14385 | 2013-03-13 Yao Qi <yao@codesourcery.com> |
14386 | ||
14387 | * tracepoint.c (traceframe_read_tsv): Look for the last matched | |
14388 | 'V' block in trace frame. | |
14389 | ||
9accd112 MM |
14390 | 2013-03-11 Markus Metzger <markus.t.metzger@intel.com> |
14391 | ||
14392 | * target.h (struct target_ops): Add btrace ops. | |
14393 | (target_supports_btrace): New macro. | |
14394 | (target_enable_btrace): New macro. | |
14395 | (target_disable_btrace): New macro. | |
14396 | (target_read_btrace): New macro. | |
14397 | * gdbthread.h (struct thread_info): Add btrace field. | |
14398 | * server.c: Include btrace-common.h. | |
14399 | (handle_btrace_general_set): New function. | |
14400 | (handle_btrace_enable): New function. | |
14401 | (handle_btrace_disable): New function. | |
14402 | (handle_general_set): Call handle_btrace_general_set. | |
14403 | (handle_qxfer_btrace): New function. | |
14404 | (struct qxfer qxfer_packets[]): Add btrace entry. | |
14405 | * inferiors.c (remove_thread): Disable btrace. | |
14406 | * linux-low: Include linux-btrace.h. | |
14407 | (linux_low_enable_btrace): New function. | |
14408 | (linux_low_read_btrace): New function. | |
14409 | (linux_target_ops): Add btrace ops. | |
14410 | * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o. | |
14411 | Add srv_linux_btrace=yes. | |
14412 | (x86_64-*-linux*): Add linux-btrace.o. | |
14413 | Add srv_linux_btrace=yes. | |
14414 | * configure.ac: Define HAVE_LINUX_BTRACE. | |
14415 | * config.in: Regenerated. | |
14416 | * configure: Regenerated. | |
14417 | ||
5cc22e4c MM |
14418 | 2013-03-11 Markus Metzger <markus.t.metzger@intel.com> |
14419 | ||
14420 | * server.c (handle_qxfer): Preserve error message if -3 is | |
14421 | returned. | |
14422 | (qxfer): Document the -3 return value. | |
14423 | ||
7c97f91e MM |
14424 | 2013-03-11 Markus Metzger <markus.t.metzger@intel.com> |
14425 | ||
14426 | * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c. | |
14427 | (linux_btrace_h): New variable. | |
14428 | (linux-btrace.o): New rule. | |
14429 | ||
be9a119c | 14430 | 2013-03-08 Stan Shebs <stan@codesourcery.com> |
f6f899bf HAQ |
14431 | Hafiz Abid Qadeer <abidh@codesourcery.com> |
14432 | ||
14433 | * tracepoint.c (trace_buffer_size): New global. | |
14434 | (DEFAULT_TRACE_BUFFER_SIZE): New define. | |
14435 | (init_trace_buffer): Change to one-argument function. Allocate | |
14436 | trace buffer memory. | |
14437 | (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to | |
14438 | handle QTBuffer:size packet. | |
14439 | (cmd_bigqtbuffer_size): New function. | |
14440 | (initialize_tracepoint): Call init_trace_buffer with | |
14441 | DEFAULT_TRACE_BUFFER_SIZE. | |
14442 | * server.c (handle_query): Add QTBuffer:size in the | |
14443 | supported packets. | |
14444 | ||
e64f7499 YQ |
14445 | 2013-03-07 Yao Qi <yao@codesourcery.com> |
14446 | ||
14447 | * tracepoint.c (cur_action, cur_step_action): Make them unsigned. | |
14448 | (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead | |
14449 | of -1. | |
14450 | (cmd_qtsp): Adjust condition. Do post increment. | |
14451 | Set cur_action and cur_step_action back to 0. | |
14452 | ||
f0ae6fc3 PA |
14453 | 2013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com> |
14454 | ||
14455 | PR server/15236 | |
14456 | * linux-low.c (linux_write_memory): Return early success if LEN is | |
14457 | zero. | |
14458 | ||
b5b0b0af CV |
14459 | 2013-03-05 Corinna Vinschen <vinschen@redhat.de> |
14460 | ||
334ad4a8 | 14461 | * configure.srv: Add x86_64-*-cygwin* as target. |
b5b0b0af | 14462 | |
589bc927 TT |
14463 | 2013-02-28 Tom Tromey <tromey@redhat.com> |
14464 | ||
14465 | * configure.ac: Invoke AC_SYS_LARGEFILE. | |
14466 | * configure, config.in: Rebuild. | |
14467 | ||
dfe07582 CV |
14468 | 2013-02-28 Corinna Vinschen <vinschen@redhat.com> |
14469 | ||
14470 | * win32-low.c: Throughout, fix format strings and casts of | |
14471 | printf-like functions to avoid type related warnings on all | |
14472 | platforms. | |
14473 | (get_child_debug_event): Print dwDebugEventCode as hex since | |
14474 | that's how it's usually documented. | |
14475 | ||
736cd585 YQ |
14476 | 2013-02-28 Yao Qi <yao@codesourcery.com> |
14477 | ||
14478 | * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of | |
14479 | pulongest. | |
14480 | ||
e1f58301 JW |
14481 | 2013-02-27 Jiong Wang <jiwang@tilera.com> |
14482 | ||
14483 | * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c. | |
14484 | (reg-tilegx32.c): New rule. | |
14485 | * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj. | |
14486 | * linux-tile-low.c (tile_arch_setup): New function. Invoke | |
14487 | different register info initializer according to elf class. | |
14488 | (init_registers_tilgx32): New function. The tilegx32 register info | |
14489 | initializer. | |
14490 | (tile_fill_gregset): Use "uint_reg_t" to represent register size. | |
14491 | (tile_store_gregset): Likewise. | |
14492 | ||
d171ca78 YQ |
14493 | 2013-02-27 Yao Qi <yao@codesourcery.com> |
14494 | ||
14495 | * server.c (process_point_options): Print debug message when | |
14496 | debug_threads is true. | |
14497 | ||
282bbdf3 YQ |
14498 | 2013-02-26 Yao Qi <yao@codesourcery.com> |
14499 | ||
14500 | * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF. | |
14501 | ||
aca22551 PA |
14502 | 2013-02-19 Pedro Alves <palves@redhat.com> |
14503 | Kai Tietz <ktietz@redhat.com> | |
14504 | ||
14505 | PR gdb/15161 | |
14506 | ||
14507 | * server.c (handle_query) <CRC check>: Use unpack_varlen_hex | |
14508 | instead of strtoul to extract address from packet. | |
14509 | (process_serial_event) <'z'>: Likewise. | |
14510 | ||
4f3cee1c YQ |
14511 | 2013-02-18 Yao Qi <yao@codesourcery.com> |
14512 | ||
14513 | * linux-bfin-low.c (the_low_target): Use NULL instead of 0. | |
14514 | ||
8e1d55a3 PA |
14515 | 2013-02-14 Pedro Alves <palves@redhat.com> |
14516 | ||
14517 | Plug memory leak. | |
14518 | ||
14519 | * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME, | |
14520 | TRACING_NOTES and TRACING_STOP_NOTE before clobbering. | |
14521 | ||
458820da PA |
14522 | 2013-02-14 Pedro Alves <palves@redhat.com> |
14523 | ||
14524 | * tracepoint.c (cmd_qtdpsrc): Use savestring. | |
14525 | ||
baea0dae PA |
14526 | 2013-02-14 Pedro Alves <palves@redhat.com> |
14527 | ||
14528 | * tracepoint.c (save_string): Delete. | |
14529 | (add_tracepoint_action): Use savestring instead of save_string. | |
14530 | ||
0b1afbb3 PA |
14531 | 2013-02-12 Pedro Alves <palves@redhat.com> |
14532 | ||
14533 | * linux-xtensa-low.c: Ditto. | |
14534 | * xtensa-xtregs.c: Ditto. | |
14535 | ||
8a4ac37e PA |
14536 | 2013-02-12 Sanimir Agovic <sanimir.agovic@intel.com> |
14537 | ||
14538 | * thread-db.c (thread_db_get_tls_address): NULL pointer check | |
14539 | thread_db. | |
14540 | ||
148de6bb MS |
14541 | 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com> |
14542 | ||
14543 | * linux-aarch64-low.c (aarch64_arch_setup): Clamp | |
14544 | aarch64_num_wp_regs and aarch64_num_bp_regs to | |
14545 | AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively. | |
14546 | ||
55fac6e0 MS |
14547 | 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com> |
14548 | ||
14549 | * linux-aarch64-low.c (ps_get_thread_area): Replace | |
14550 | PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET. | |
14551 | ||
176eb98c MS |
14552 | 2013-02-04 Jim MacArthur <jim.macarthur@arm.com> |
14553 | Marcus Shawcroft <marcus.shawcroft@arm.com> | |
14554 | Nigel Stephens <nigel.stephens@arm.com> | |
14555 | Yufeng Zhang <yufeng.zhang@arm.com> | |
14556 | ||
14557 | * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c. | |
14558 | (aarch64.c, aarch64-without-fpu.c): New targets. | |
14559 | * configure.srv (aarch64*-*-linux*): New. | |
14560 | * linux-aarch64-low.c: New file. | |
14561 | ||
56f7af9c MS |
14562 | 2013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com> |
14563 | ||
43aaf8b6 | 14564 | * linux-low.c (handle_extended_wait, linux_create_inferior) |
56f7af9c MS |
14565 | (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp) |
14566 | (dequeue_one_deferred_signal, linux_resume_one_thread) | |
14567 | (fetch_register, linux_write_memory, linux_enable_event_reporting) | |
14568 | (linux_tracefork_grandchild, linux_test_for_tracefork) | |
14569 | (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add | |
14570 | PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments | |
14571 | where the argument is 0. | |
14572 | ||
60f662b0 YQ |
14573 | 2013-01-25 Yao Qi <yao@codesourcery.com> |
14574 | ||
14575 | * event-loop.c: Include "queue.h". | |
14576 | (gdb_event_p): New typedef. | |
14577 | (struct gdb_event) <next_event>: Remove. | |
14578 | (event_queue): Change to QUEUE(gdb_event_p). | |
14579 | (async_queue_event): Remove. | |
14580 | (gdb_event_xfree): New. | |
14581 | (initialize_event_loop): New. | |
14582 | (process_event): Use API from QUEUE. | |
14583 | (wait_for_event): Likewise. | |
14584 | * server.c (main): Call initialize_event_loop. | |
14585 | * server.h (initialize_event_loop): Declare. | |
14586 | ||
5ae4861a YQ |
14587 | 2013-01-18 Yao Qi <yao@codesourcery.com> |
14588 | ||
14589 | * ax.h (struct eval_agent_expr_context): New. | |
14590 | (gdb_eval_agent_expr): Update declaration. | |
14591 | * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and | |
14592 | TFRAME. Add new argument CTX. | |
14593 | * server.h (struct eval_agent_expr_context): Declare. | |
14594 | (agent_mem_read, agent_tsv_read): Update declaration. | |
14595 | (agent_mem_read_string): Likewise. | |
14596 | * tracepoint.c (eval_tracepoint_agent_expr): Remove. | |
14597 | (add_traceframe_block): Add new argument TPOINT. | |
14598 | Increase TPOINT->traceframe_usage. | |
14599 | (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of | |
14600 | eval_tracepoint_agent_expr. | |
14601 | (condition_true_at_tracepoint): Likewise. | |
14602 | (agent_mem_read): Remove argument TFRAME. Add argument CTX. | |
14603 | (agent_mem_read_string, agent_tsv_read): Likewise. | |
14604 | ||
85e00e85 YQ |
14605 | 2013-01-16 Yao Qi <yao@codesourcery.com> |
14606 | ||
14607 | * linux-low.c (linux_resume_one_lwp): Don't check | |
14608 | 'lwp->bp_reinsert != 0'. | |
14609 | ||
4039cf45 JB |
14610 | 2013-01-07 Joel Brobecker <brobecker@adacore.com> |
14611 | Pedro Alves <palves@redhat.com> | |
14612 | ||
14613 | * lynx-low.c (ptrace_request_to_str): Define a temporary | |
14614 | macro and use it to simplify this function's implementation. | |
14615 | ||
9044dee2 JB |
14616 | 2013-01-07 Joel Brobecker <brobecker@adacore.com> |
14617 | ||
14618 | * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace | |
14619 | sets errno. | |
14620 | ||
e6352c8f JB |
14621 | 2013-01-07 Joel Brobecker <brobecker@adacore.com> |
14622 | ||
14623 | * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles. | |
14624 | ||
50681a27 JB |
14625 | 2013-01-07 Joel Brobecker <brobecker@adacore.com> |
14626 | ||
14627 | * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles. | |
14628 | ||
3f6e77ef JB |
14629 | 2013-01-07 Joel Brobecker <brobecker@adacore.com> |
14630 | ||
14631 | * lynx-low.c (lynx_resume): Use the resume_info parameter | |
14632 | to determine the ptid for the lynx_ptrace call, unless | |
14633 | it is equal to minus_one_ptid, in which case we use the | |
14634 | ptid of the current_inferior. | |
14635 | (lynx_wait_1): After having received a thread create/exit | |
14636 | event, resume the inferior's execution using the signaling | |
14637 | thread's ptid, rather than the old ptid. | |
14638 | ||
7fda33ae JB |
14639 | 2013-01-07 Joel Brobecker <brobecker@adacore.com> |
14640 | ||
14641 | * lynx-low.c (lynx_resume): Delete variable ret. | |
14642 | ||
b9786c74 JB |
14643 | 2013-01-01 Joel Brobecker <brobecker@adacore.com> |
14644 | ||
14645 | * gdbreplay.c (gdbreplay_version): Update copyright year. | |
14646 | * server.c (gdbserver_version): Likewise. | |
14647 | ||
8b93d60f JB |
14648 | 2012-12-17 Joel Brobecker <brobecker@adacore.com> |
14649 | ||
14650 | * lynx-low.c (lynx_wait_1): Add debug trace before adding | |
14651 | new thread. | |
14652 | ||
037335a7 JB |
14653 | 2012-12-17 Joel Brobecker <brobecker@adacore.com> |
14654 | ||
14655 | * lynx-low.c (ptrace_request_to_str): Add handling for | |
14656 | PTRACE_GETTRACESIG. | |
14657 | ||
52d4cbd8 JB |
14658 | 2012-12-17 Joel Brobecker <brobecker@adacore.com> |
14659 | ||
14660 | * lynx-low.c (lynx_attach): Delete variable new_process. | |
14661 | ||
ab8f6ca9 JB |
14662 | 2012-12-17 Joel Brobecker <brobecker@adacore.com> |
14663 | ||
14664 | * lynx-low.c (lynx_create_inferior): Delete variable | |
14665 | new_process. | |
14666 | ||
78cbc024 JB |
14667 | 2012-12-17 Joel Brobecker <brobecker@adacore.com> |
14668 | ||
14669 | * lynx-low.c (ptrace_request_to_str): Do not handle | |
14670 | PTRACE_GETTHREADLIST if this macro does not exist. | |
14671 | ||
14a00470 YQ |
14672 | 2012-12-15 Yao Qi <yao@codesourcery.com> |
14673 | ||
14674 | * Makefile.in (OBS): Add notif.o. | |
14675 | * notif.c, notif.h: New. | |
14676 | * server.c: Include "notif.h". | |
14677 | (struct vstop_notif) <next>: Remove. | |
14678 | <base>: New field. | |
14679 | (queue_stop_reply): Update. | |
14680 | (push_event, send_next_stop_reply): Remove. | |
14681 | (discard_queued_stop_replies): Update. | |
14682 | (notif_stop): New variable. | |
14683 | (handle_v_stopped): Remove. | |
14684 | (handle_v_requests): Don't call handle_v_stopped. Call | |
14685 | handle_ack_notif instead. | |
14686 | (queue_stop_reply_callback): Call notif_event_enque instead | |
14687 | of queue_stop_reply. | |
14688 | (handle_status): Don't call send_next_stop_reply, call | |
14689 | notif_write_event instead. | |
14690 | (kill_inferior_callback): Likewise. | |
14691 | (detach_or_kill_inferior_callback): Likewise. | |
14692 | (main): Call initialize_notif. | |
14693 | (process_serial_event): Call QUEUE_is_empty. | |
14694 | (handle_target_event): Call notif_push instead of push event. | |
14695 | * server.h (push_event): Remove declaration. | |
14696 | ||
61c125b9 TT |
14697 | 2012-12-10 Tom Tromey <tromey@redhat.com> |
14698 | ||
14699 | * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre) | |
14700 | (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New | |
14701 | macros. | |
14702 | (.c.o): Rewrite. | |
14703 | (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o) | |
14704 | (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o) | |
14705 | (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o) | |
14706 | (amd64-linux-ipa.o, ax.o): Rewrite. | |
14707 | (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o) | |
14708 | (proc-service.o, regcache.o, remote-utils.o, server.o, target.o) | |
14709 | (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove. | |
14710 | (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o) | |
14711 | (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o) | |
14712 | (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite. | |
14713 | (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o) | |
14714 | (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o) | |
14715 | (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o) | |
14716 | (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o) | |
14717 | (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o) | |
14718 | (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o) | |
14719 | (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o) | |
14720 | (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o) | |
14721 | (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o) | |
14722 | (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o) | |
14723 | (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o) | |
14724 | (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o) | |
14725 | (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o) | |
14726 | (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o) | |
14727 | (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o) | |
14728 | (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o) | |
14729 | (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o) | |
14730 | (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o) | |
14731 | (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o) | |
14732 | (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o) | |
14733 | (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o) | |
14734 | (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o) | |
14735 | (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o) | |
14736 | (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o) | |
14737 | (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o) | |
14738 | (reg-tilegx.o): Remove. | |
14739 | (all_object_files): New macro. | |
14740 | Include .deps files. | |
14741 | * aclocal.m4, configure: Rebuild. | |
14742 | * acinclude.m4: Include depstand.m4, lead-dot.m4. | |
14743 | * configure.ac: Invoke ZW_CREATE_DEPDIR, | |
14744 | ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition. | |
14745 | ||
e90e9ad9 TT |
14746 | 2012-12-05 Tom Tromey <tromey@redhat.com> |
14747 | ||
14748 | PR gdb/14917: | |
14749 | * server.h (current_insn_ptr, emit_error): Declare 'extern'. | |
14750 | ||
02d403bf | 14751 | 2012-11-28 Markus Metzger <markus.t.metzger@intel.com> |
945bf713 MM |
14752 | |
14753 | * configure.ac: Check for linux/perf_event.h. | |
14754 | * config.in: Regenerated. | |
14755 | * configure: Regenerated. | |
14756 | ||
0270a750 PA |
14757 | 2012-11-26 Maxime Villard <rustyBSD@gmx.fr> |
14758 | ||
14759 | * hostio.c (handle_readlink): Decrease buffer size | |
14760 | parameter passed to readlink by one byte. | |
14761 | ||
8c29b58e YQ |
14762 | 2012-11-26 Yao Qi <yao@codesourcery.com> |
14763 | ||
14764 | * configure.ac (build_warnings): Append '-Wempty-body'. | |
14765 | * configure: Regenerated. | |
14766 | * linux-low.c (linux_create_inferior): Use braces for empty 'if' | |
14767 | body. | |
14768 | ||
8bdce1ff PM |
14769 | 2012-11-15 Pierre Muller <muller@sourceware.org> |
14770 | ||
14771 | * configure.ac (AC_CHECK_HEADERS): Add wait.h header. | |
14772 | * config.in: Regenerate. | |
14773 | * configure: Regenerate. | |
14774 | * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header. | |
14775 | Use "gdb_wait.h" header instead of <sys/wait.h> header. | |
14776 | * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header. | |
14777 | * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h> | |
14778 | header. | |
14779 | * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header | |
14780 | instead of <sys/wait.h> header. | |
14781 | * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header. | |
14782 | ||
02d403bf | 14783 | 2012-11-13 Markus Metzger <markus.t.metzger@intel.com> |
3ba6ad0f MM |
14784 | |
14785 | * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER | |
14786 | (various make rules): Remove -DGDBSERVER | |
14787 | ||
fbd5db48 YQ |
14788 | 2012-11-09 Yao Qi <yao@codesourcery.com> |
14789 | ||
14790 | * spu-low.c (current_ptid): Move it to .. | |
14791 | * gdbthread.h: ... here. New. | |
14792 | * remote-utils.c (read_ptid): Use macro 'current_ptid'. | |
14793 | * server.c (myresume, process_serial_event): Likewise. | |
14794 | * thread-db.c (thread_db_find_new_threads): Likewise. | |
14795 | * tracepoint.c (run_inferior_command): Likewise. | |
14796 | ||
b3dc46ff AB |
14797 | 2012-10-01 Andrew Burgess <aburgess@broadcom.com> |
14798 | ||
14799 | * server.c (handle_search_memory_1): Include access length in | |
14800 | warning message. | |
14801 | ||
07c04788 HPN |
14802 | 2012-09-05 Michael Brandt <michael.brandt@axis.com> |
14803 | ||
14804 | * linux-crisv32-low.c: Fix compile errors. | |
14805 | ||
918d227b YQ |
14806 | 2012-09-04 Yao Qi <yao@codesourcery.com> |
14807 | ||
14808 | * tracepoint.c (cmd_qtsv): Adjust debug message. | |
14809 | Don't check CUR_TPOINT. | |
14810 | ||
18c1b81a YQ |
14811 | 2012-08-28 Yao Qi <yao@codesourcery.com> |
14812 | ||
14813 | * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF. | |
14814 | * server.h: Include 'libiberty.h' and 'ansidecl.h'. | |
14815 | (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove. | |
14816 | Remove declarations of xmalloc, xreallloc, xstrdup and | |
14817 | freeargv. | |
14818 | * Makefile.in (libiberty_h): New. | |
14819 | (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'. | |
14820 | (linux-bfin-low.o): Append dependency 'libiberty.h'. | |
14821 | ||
dc82f37b YQ |
14822 | 2012-08-23 Yao Qi <yao@codesourcery.com> |
14823 | ||
14824 | * server.h: Remove declaration of 'xsnprintf'. | |
14825 | ||
406b1477 KS |
14826 | 2012-08-22 Keith Seitz <keiths@redhat.com> |
14827 | ||
14828 | * server.h: Include build-gnulib-gbserver/config.h. | |
14829 | * gdbreplay.c: Likewise. | |
14830 | ||
e6712ff1 DE |
14831 | 2012-08-08 Doug Evans <dje@google.com> |
14832 | ||
14833 | * Makefile.in (SFILES): Add gdb_vecs.c. | |
14834 | (OBS): Add gdb_vecs.o. | |
14835 | (gdb_vecs_h, host_defs_h): New variables. | |
14836 | (thread-db.o): Add $(gdb_vecs_h) dependency. | |
14837 | (gdb_vecs.o): New rule. | |
14838 | * thread-db.c: #include "gdb_vecs.h". | |
14839 | (thread_db_load_search): Use a vector to iterate over path elements. | |
14840 | Handle text appearing after "$pdir". | |
14841 | ||
14842 | * configure.ac: Add check for strstr. | |
14843 | * config.in: Regenerate. | |
14844 | * configure: Regenerate. | |
14845 | ||
7c3270ae UW |
14846 | 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org> |
14847 | ||
14848 | * hostio.c (handle_pread): If pread fails, fall back to attempting | |
14849 | lseek/read. | |
14850 | (handle_pwrite): Likewise for pwrite. | |
14851 | ||
b62e2b27 UW |
14852 | 2012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org> |
14853 | ||
14854 | * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish | |
14855 | between unsupported TYPE and unimplementable ADDR/LEN combination. | |
14856 | (arm_insert_point): Act on new return value. | |
14857 | ||
78a99e91 PA |
14858 | 2012-07-31 Pedro Alves <palves@redhat.com> |
14859 | ||
14860 | * server.c (process_point_options): Only skip tokens if we find | |
14861 | one that is unrecognized. Don't treat 'X' specially while | |
14862 | skipping unrecognized tokens. | |
14863 | ||
fcf303ab UW |
14864 | 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org> |
14865 | ||
14866 | * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt | |
14867 | to 4-byte-align HW breakpoint addresses for Thumb. | |
14868 | ||
7255706c YQ |
14869 | 2012-07-27 Yao Qi <yao@codesourcery.com> |
14870 | ||
14871 | PR remote/14161. | |
14872 | ||
14873 | * server.h: Declare gdb_agent_about_to_close. | |
14874 | * target.c (kill_inferior): Include "agent.h". | |
14875 | New. Send command 'kill'. | |
14876 | * target.h (kill_inferior): Removed macro. | |
14877 | * tracepoint.c (gdb_agent_about_to_close): New. | |
14878 | (gdb_agent_helper_thread): Handle command 'close'. | |
14879 | Wait endlessly until the inferior stops. | |
14880 | Install gdb_agent_remove_socket to atexit hook. | |
14881 | (agent_socket_name): New static variable. | |
14882 | (gdb_agent_socket_init): Replace local variable 'name' with | |
14883 | 'agent_socket_name'. | |
14884 | (gdb_agent_remove_socket): New. | |
14885 | ||
5a3f286f YQ |
14886 | 2012-07-27 Yao Qi <yao@codesourcery.com> |
14887 | ||
14888 | * server.c (process_point_options): Stop at 'X' when parsing. | |
14889 | ||
961bd387 ME |
14890 | 2012-07-19 Michael Eager <eager@eagercon.com> |
14891 | ||
a261b8f5 | 14892 | * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate |
961bd387 ME |
14893 | to hw_execute. |
14894 | * linux-x86-low.c (x86_insert_point, x86_remove_point): | |
14895 | Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del | |
14896 | hardware breakpoint. | |
14897 | ||
aa7c7447 JK |
14898 | 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com> |
14899 | ||
14900 | * gdbserver/linux-low.c (initialize_low): Call | |
14901 | linux_ptrace_init_warnings. | |
14902 | ||
7f216e7c DE |
14903 | 2012-07-02 Doug Evans <dje@google.com> |
14904 | ||
14905 | * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from | |
14906 | pointer to int. | |
14907 | ||
d3ce09f5 SS |
14908 | 2012-07-02 Stan Shebs <stan@codesourcery.com> |
14909 | ||
14910 | * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define. | |
14911 | (ax.o): Add it to build rule. | |
14912 | (ax-ipa.o): Ditto. | |
14913 | (OBS): Add format.o. | |
14914 | (IPA_OBS): Add format.o. | |
14915 | * server.c (handle_query): Claim support for breakpoint commands. | |
14916 | (process_point_options): Add command case. | |
14917 | (process_serial_event): Leave running if there are printfs in | |
14918 | effect. | |
14919 | * mem-break.h (any_persistent_commands): Declare. | |
14920 | (add_breakpoint_commands): Declare. | |
14921 | (gdb_no_commands_at_breakpoint): Declare. | |
14922 | (run_breakpoint_commands): Declare. | |
14923 | * mem-break.c (struct point_command_list): New struct. | |
14924 | (struct breakpoint): New field command_list. | |
14925 | (any_persistent_commands): New function. | |
14926 | (add_commands_to_breakpoint): New function. | |
14927 | (add_breakpoint_commands): New function. | |
14928 | (gdb_no_commands_at_breakpoint): New function. | |
14929 | (run_breakpoint_commands): New function. | |
14930 | * linux-low.c (linux_wait_1): Test for and run breakpoint commands | |
14931 | locally. | |
14932 | * ax.c: Include format.h. | |
14933 | (ax_printf): New function. | |
14934 | (gdb_eval_agent_expr): Add printf opcode. | |
14935 | ||
2f8f6aed YQ |
14936 | 2012-06-13 Yao Qi <yao@codesourcery.com> |
14937 | ||
14938 | * server.c (start_inferior): Remove duplicated writes to fields | |
14939 | 'last_resume_kind' and 'last_status' of 'current_inferior'. | |
14940 | ||
0c9070b3 YQ |
14941 | 2012-06-12 Yao Qi <yao@codesourcery.com> |
14942 | Pedro Alves <palves@redhat.com> | |
14943 | ||
14944 | * linux-low.c (linux_set_resume_request): Simplify predicate. Add | |
14945 | comment. | |
14946 | * server.c (handle_v_cont): Extend comment. | |
14947 | ||
c52daf70 YQ |
14948 | 2012-06-11 Yao Qi <yao@codesourcery.com> |
14949 | ||
14950 | * linux-low.c (linux_attach): Add 'static'. | |
14951 | ||
d38bbb0a YQ |
14952 | 2012-06-06 Yao Qi <yao@codesourcery.com> |
14953 | ||
14954 | * ax.c (gdb_eval_agent_expr): Print `top' in hex. | |
14955 | ||
89dc0afd JK |
14956 | 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com> |
14957 | ||
14958 | Fix gcc -flto compilation warning. | |
14959 | * server.c (main): Make variable multi_mode and attach volatile. | |
14960 | ||
75f62ce7 TJB |
14961 | 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org> |
14962 | ||
14963 | * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP | |
14964 | if the platform doesn't know about it. | |
14965 | ||
65f479b6 PA |
14966 | 2012-05-30 Jeff Kenton <jkenton@tilera.com> |
14967 | ||
14968 | * Makefile.in (SFILES): Add linux-tile-low.c. | |
14969 | (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules. | |
14970 | * configure.srv: Handle tilegx-*-linux*. | |
14971 | * linux-tile-low.c: New file. | |
14972 | ||
0c5bf5a9 JK |
14973 | 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
14974 | ||
14975 | * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1. | |
14976 | ||
a493e3e2 PA |
14977 | 2012-05-24 Pedro Alves <palves@redhat.com> |
14978 | ||
14979 | PR gdb/7205 | |
14980 | ||
43aaf8b6 | 14981 | Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout. |
a493e3e2 | 14982 | |
2ea28649 PA |
14983 | 2012-05-24 Pedro Alves <palves@redhat.com> |
14984 | ||
14985 | PR gdb/7205 | |
14986 | ||
14987 | Replace target_signal with gdb_signal throughout. | |
14988 | ||
8d409d16 MR |
14989 | 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com> |
14990 | ||
14991 | * linux-low.c (linux_store_registers): Avoid the copying sequence | |
14992 | when no data has been retrieved by ptrace. | |
14993 | ||
23512c01 MGD |
14994 | 2012-05-22 Will Deacon <will.deacon@arm.com> |
14995 | ||
14996 | * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)): | |
14997 | Include asm/ptrace.h. | |
14998 | (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not | |
14999 | already defined. | |
15000 | ||
4934b29e MR |
15001 | 2012-05-21 Maciej W. Rozycki <macro@codesourcery.com> |
15002 | ||
15003 | * linux-low.c (linux_store_registers): Don't re-retrieve data | |
15004 | with ptrace that has already been obtained from /proc. Always | |
15005 | copy any data retrieved with ptrace to the buffer supplied. | |
15006 | ||
bde24c0a PA |
15007 | 2012-05-11 Yao Qi <yao@codesourcery.com> |
15008 | Pedro Alves <palves@redhat.com> | |
15009 | ||
15010 | * linux-low.c (enum stopping_threads_kind): New. | |
15011 | (stopping_threads): Change type to `enum stopping_threads_kind'. | |
15012 | (handle_extended_wait): If stopping and suspending threads, leave | |
15013 | the new_lwp suspended too. | |
15014 | (linux_wait_for_event): Adjust. | |
15015 | (stop_all_lwps): Set `stopping_threads' to | |
15016 | STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on | |
15017 | whether we're suspending threads or just stopping them. Assert no | |
15018 | recursion happens. | |
15019 | ||
623b6bdf YQ |
15020 | 2012-04-29 Yao Qi <yao@codesourcery.com> |
15021 | ||
15022 | * server.h: Move some code to ... | |
15023 | * gdbthread.h: ... here. New. | |
15024 | * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h | |
15025 | (remote-utils.o, server.o, target.o tracepoint.o): Likewise. | |
15026 | (nto-low.o, win32-low.o): Likewise. | |
15027 | * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h. | |
15028 | * regcache.c, remote-utils.c, server.c: Likewise. | |
15029 | * target.c, tracepoint.c, win32-low.c: Likewise. | |
15030 | ||
f15f9948 TJB |
15031 | 2012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org> |
15032 | ||
15033 | * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c. | |
15034 | (PTRACE_ARG4_TYPE): Likewise. | |
15035 | (PTRACE_XFER_TYPE): Likewise. | |
15036 | * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of | |
15037 | ptrace to PTRACE_ARG3_TYPE. | |
15038 | * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h. | |
15039 | (PTRACE_ARG4_TYPE): Likewise. | |
15040 | (PTRACE_XFER_TYPE): Likewise. | |
15041 | (linux_detach_one_lwp): Cast fourth argument of | |
15042 | ptrace to long then PTRACE_ARG4_TYPE. | |
15043 | (regsets_fetch_inferior_registers): Cast third argument of | |
15044 | ptrace to long then PTRACE_ARG3_TYPE. | |
15045 | (regsets_store_inferior_registers): Likewise. | |
15046 | ||
38ea300a PA |
15047 | 2012-04-20 Pedro Alves <palves@redhat.com> |
15048 | ||
15049 | * configure: Regenerate. | |
15050 | ||
c971b7fa PA |
15051 | 2012-04-19 Pedro Alves <palves@redhat.com> |
15052 | ||
43aaf8b6 | 15053 | * Makefile.in (GNULIB_BUILDDIR): New. |
c971b7fa | 15054 | (LIBGNU, INCGNU, GNULIB_H): Adjust. |
43aaf8b6 PA |
15055 | (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New. |
15056 | (all, install-only, uninstall, clean-info, all-lib, clean): No | |
15057 | longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do. | |
15058 | (maintainer-clean realclean distclean): Use subdir_do. | |
15059 | (subdir_do): New. | |
15060 | (gnulib/import/Makefile): Adjust. Replace gnulib/import with | |
c971b7fa | 15061 | $(GNULIB_BUILDDIR). Don't pass argument to config.status. |
43aaf8b6 PA |
15062 | * acinclude.m4: Include acx_configure_dir.m4. |
15063 | * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE | |
15064 | calls. Call AC_PROG_RANLIB. Configure gnulib using | |
15065 | ACX_CONFIGURE_DIR. | |
15066 | (GNULIB): New. | |
15067 | (GNULIB_STDINT_H): Adjust. | |
15068 | (AC_OUTPUT): Don't output gnulib/Makefile anymore. | |
15069 | * gdbreplay.c: Include build-gnulib/config.h. | |
15070 | * server.h: Likewise. | |
15071 | * aclocal.m4: Regenerate. | |
15072 | * config.in: Regenerate. | |
15073 | * configure: Regenerate. | |
c971b7fa | 15074 | |
809277f8 PA |
15075 | 2012-04-19 Pedro Alves <palves@redhat.com> |
15076 | ||
15077 | * Makefile.in (LIBGNU, INCGNU): Adjust. | |
15078 | (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust. | |
15079 | (all, install-only, uninstall, clean-info, all-lib, clean) | |
15080 | (maintainer-clean, Makefile, gnulib/Makefile): Adjust. | |
15081 | * configure.ac: Adjust AC_OUTPUT output. | |
15082 | * aclocal.m4: Regenerate. | |
15083 | * configure: Regenerate. | |
15084 | ||
fd9bb8b8 PA |
15085 | 2012-04-19 Pedro Alves <palves@redhat.com> |
15086 | ||
15087 | * Makefile.in (generated_files): New. | |
15088 | (server_h): Remove the explicit dependency on config.h, and depend | |
15089 | on $generated_files. | |
15090 | ||
1c298c66 PA |
15091 | 2012-04-19 Pedro Alves <palves@redhat.com> |
15092 | ||
15093 | * Makefile.in (INCGNU): Add -Ignulib. | |
15094 | ||
57c4b50b PA |
15095 | 2012-04-19 Pedro Alves <palves@redhat.com> |
15096 | ||
15097 | * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ... | |
15098 | (INCGNU): ... this, and spell out -I here. | |
15099 | (GNULIB_LIB): Rename to ... | |
15100 | (LIBGNU): ... this. | |
15101 | (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust. | |
15102 | ||
1030e047 PA |
15103 | 2012-04-19 Pedro Alves <palves@redhat.com> |
15104 | ||
15105 | * config.in: Regenerate. | |
15106 | ||
447d4319 PA |
15107 | 2012-04-19 Pedro Alves <palves@redhat.com> |
15108 | ||
15109 | * configure.ac: Remove AC_CHECK_DECLS check for memmem. | |
15110 | * server.h (memmem): Remove declaration. | |
15111 | * config.in: Regenerate. | |
15112 | * configure: Regenerate. | |
15113 | ||
aad9eab9 YQ |
15114 | 2012-04-19 Yao Qi <yao@codesourcery.com> |
15115 | ||
15116 | * Makefile.in (SFILES): Add common/vec.c. | |
15117 | (OBS): Add vec.o. | |
15118 | (vec.o): New rule. | |
15119 | ||
3e10640f YQ |
15120 | 2012-04-19 Yao Qi <yao@codesourcery.com> |
15121 | ||
15122 | * remote-utils.c (prepare_resume_reply): Replace with macro | |
15123 | target_core_of_thread. | |
15124 | * server.c (handle_qxfer_threads_proper): Likewise. | |
15125 | * target.h (traget_core_of_thread): New macro. | |
15126 | ||
71622373 PA |
15127 | 2012-04-18 Pedro Alves <palves@redhat.com> |
15128 | ||
15129 | * aclocal.m4: Regenerate. | |
15130 | * configure: Regenerate. | |
15131 | ||
80d26939 YQ |
15132 | 2012-04-16 Yao Qi <yao@codesourcery.com> |
15133 | ||
15134 | * tracepoint.c (cmd_qtstart): Download tracepoints even when they are | |
15135 | duplicated on address. | |
15136 | ||
42476b70 YQ |
15137 | 2012-04-16 Yao Qi <yao@codesourcery.com> |
15138 | ||
15139 | * tracepoint.c (COPY_FIELD_TO_BUF): New macro. | |
15140 | (struct tracepoint_action_ops) <send>: New field. | |
15141 | (m_tracepoint_action_send, r_tracepoint_action_send): New. | |
15142 | (agent_expr_send, x_tracepoint_action_send): New. | |
15143 | (l_tracepoint_action_send): New. | |
15144 | (cmd_qtdp): Download and install tracepoint | |
15145 | according to `use_agent'. | |
15146 | (run_inferior_command): Add one more parameter `len'. | |
15147 | Update callers. | |
15148 | (tracepoint_send_agent): New. | |
15149 | (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent. | |
15150 | ||
7bc83639 YQ |
15151 | 2012-04-16 Yao Qi <yao@codesourcery.com> |
15152 | ||
15153 | * tracepoint.c (download_tracepoints): Moved to ... | |
15154 | (cmd_qtstart): ... here. | |
15155 | ||
5f18041e YQ |
15156 | 2012-04-14 Yao Qi <yao@codesourcery.com> |
15157 | ||
15158 | * tracepoint.c: Include inttypes.h. | |
15159 | (struct collect_memory_action): Use sized types. | |
15160 | (struct tracepoint): Likewise. | |
15161 | (cmd_qtdp, stop_tracing): Update print specifiers. | |
15162 | (cmd_qtp, response_tracepoint): Likewise. | |
15163 | (collect_data_at_tracepoint): Likewise. | |
15164 | (collect_data_at_step): Likewise. | |
15165 | ||
55a8c076 YQ |
15166 | 2012-04-14 Yao Qi <yao@codesourcery.com> |
15167 | ||
15168 | Import gnulib module inttypes. | |
15169 | * aclocal.m4, config.in, configure: Regenerated. | |
15170 | ||
dc750257 YQ |
15171 | 2012-04-14 Yao Qi <yao@codesourcery.com> |
15172 | ||
15173 | * Makefile.in (maintainer-clean, realclean, distclean): Remove | |
15174 | Makefile and config.status at last. | |
15175 | ||
0ab5faf9 YQ |
15176 | 2012-04-13 Yao Qi <yao@codesourcery.com> |
15177 | ||
15178 | * tracepoint.c: Include stdint.h unconditionally. | |
15179 | ||
18f5fd81 TJB |
15180 | 2012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org> |
15181 | ||
15182 | * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based | |
15183 | on BFD_HAVE_SYS_PROCFS_TYPE. | |
15184 | * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h. | |
15185 | * configure: Regenerate. | |
15186 | * config.in: Likewise. | |
15187 | ||
4d47af5c L |
15188 | 2012-04-13 H.J. Lu <hongjiu.lu@intel.com> |
15189 | ||
15190 | * Makefile.in (clean): Also remove x32.c x32-linux.c | |
15191 | x32-avx.c x32-avx-linux.c. | |
15192 | (x32.o): New target. | |
15193 | (x32.c): Likewise. | |
15194 | (x32-linux.o): Likewise. | |
15195 | (x32-linux.c): Likewise. | |
15196 | (x32-avx.o): Likewise. | |
15197 | (x32-avx.c): Likewise. | |
15198 | (x32-avx-linux.o): Likewise. | |
15199 | (x32-avx-linux.c): Likewise. | |
15200 | ||
15201 | * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o. | |
15202 | (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o. | |
15203 | (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml. | |
15204 | (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml. | |
15205 | (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml | |
15206 | i386/x32-avx-linux.xml. | |
15207 | ||
15208 | * linux-x86-low.c (init_registers_x32_linux): New prototype. | |
15209 | (init_registers_x32_avx_linux): Likwise. | |
15210 | (x86_linux_update_xmltarget): Call init_registers_x32_linux | |
15211 | or init_registers_x32_avx_linux if linux_is_elf64 is false. | |
15212 | ||
ecedbe58 PA |
15213 | 2012-04-13 Pedro Alves <palves@redhat.com> |
15214 | ||
15215 | * Makefile.in (GNULIB_FLAGS_TO_PASS): New. | |
15216 | (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH. | |
15217 | (all, uninstall, clean-info, all-lib, clean, maintainer-clean) | |
15218 | (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to | |
15219 | the sub-make. | |
15220 | ||
c92b5177 L |
15221 | 2012-04-12 H.J. Lu <hongjiu.lu@intel.com> |
15222 | ||
15223 | * linux-x86-low.c (compat_x32_clock_t): New. | |
15224 | (compat_x32_siginfo_t): Likewise. | |
15225 | (compat_x32_siginfo_from_siginfo): Likewise. | |
15226 | (siginfo_from_compat_x32_siginfo): Likewise. | |
15227 | (linux_is_elf64): Likewise. | |
15228 | (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo | |
15229 | and siginfo_from_compat_x32_siginfo for x32. | |
15230 | (x86_arch_setup): Set linux_is_elf64. | |
15231 | ||
214d508e L |
15232 | 2012-04-12 H.J. Lu <hongjiu.lu@intel.com> |
15233 | ||
15234 | PR gdb/13969 | |
15235 | * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the | |
15236 | e_machine field. | |
15237 | (linux_qxfer_libraries_svr4): Update call to elf_64_file_p. | |
15238 | * linux-low.h (linux_pid_exe_is_elf_64_file): Updated. | |
15239 | * linux-x86-low.c (x86_arch_setup): Check if GDBserver is | |
15240 | compatible with process. | |
15241 | ||
c9a1864a YQ |
15242 | 2012-04-12 Yao Qi <yao@codesourcery.com> |
15243 | ||
15244 | * Makefile.in: Define abs_top_srcdir and abs_srcdir. | |
15245 | (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR. | |
15246 | (install-only, install-info, clean): Handle sub dir gnulib. | |
15247 | (all-lib, am--refresh): New targets. | |
15248 | (memmem.o): Remove target. | |
15249 | * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR. | |
15250 | Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make. | |
15251 | (AC_REPLACE_FUNCS): Remove memmem. | |
15252 | Invoke gl_INIT and AM_INIT_AUTOMAKE. | |
15253 | (AC_OUTPUT): Generate Makefile in gnulib/. | |
15254 | * aclocal.m4, config.in, configure: Regenerated. | |
15255 | ||
367ba2c2 MR |
15256 | 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com> |
15257 | ||
15258 | * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP. | |
15259 | ||
9d236627 PA |
15260 | 2012-04-05 Pedro Alves <palves@redhat.com> |
15261 | ||
15262 | -Werror=strict-aliasing | |
15263 | ||
15264 | * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned | |
15265 | pointer. | |
15266 | ||
111217b3 PA |
15267 | 2012-04-04 Pedro Alves <palves@redhat.com> |
15268 | ||
15269 | * linux-sparc-low.c (sparc_fill_gregset_to_stack) | |
15270 | (sparc_store_gregset_from_stack, sparc_store_gregset) | |
15271 | (sparc_breakpoint_at): Fix formatting. | |
15272 | ||
8365dcf5 TJB |
15273 | 2012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org> |
15274 | ||
15275 | * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t | |
15276 | are available. | |
15277 | * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef. | |
15278 | [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise. | |
15279 | * config.in: Regenerate. | |
15280 | * configure: Likewise. | |
15281 | ||
689cc2ae PA |
15282 | 2012-03-29 Pedro Alves <palves@redhat.com> |
15283 | ||
15284 | * linux-low.c (regsets_store_inferior_registers) [__sparc__]: | |
15285 | Correct ptrace arguments. | |
15286 | ||
c14dfd32 PA |
15287 | 2012-03-28 Pedro Alves <palves@redhat.com> |
15288 | ||
15289 | * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC. | |
15290 | (IA64_GR0_REGNUM, IA64_FR0_REGNUM) | |
15291 | (IA64_FR1_REGNUM): New defines. | |
15292 | (ia64_fetch_register): New. | |
15293 | (the_low_target): Install it. | |
15294 | * linux-low.h (struct linux_target_ops) <fetch_register>: New | |
15295 | field. | |
15296 | * linux-low.c (linux_fetch_registers): Try the | |
15297 | the_low_target.fetch_register hook first. | |
15298 | ||
15299 | * linux-arm-low.c (the_low_target): Adjust. | |
15300 | * linux-bfin-low.c (the_low_target): Adjust. | |
15301 | * linux-cris-low.c (the_low_target): Adjust. | |
15302 | * linux-crisv32-low.c (the_low_target): Adjust. | |
15303 | * linux-m32r-low.c (the_low_target): Adjust. | |
15304 | * linux-m68k-low.c (the_low_target): Adjust. | |
15305 | * linux-mips-low.c (the_low_target): Adjust. | |
15306 | * linux-ppc-low.c (the_low_target): Adjust. | |
15307 | * linux-s390-low.c (the_low_target): Adjust. | |
15308 | * linux-sh-low.c (the_low_target): Adjust. | |
15309 | * linux-sparc-low.c (the_low_target): Adjust. | |
15310 | * linux-tic6x-low.c (the_low_target): Adjust. | |
15311 | * linux-x86-low.c (the_low_target): Adjust. | |
15312 | * linux-xtensa-low.c (the_low_target): Adjust. | |
15313 | ||
63c88e13 PA |
15314 | 2012-03-26 Pedro Alves <palves@redhat.com> |
15315 | ||
15316 | * server.c (handle_qxfer_libraries): Don't bail early if | |
15317 | the_target->qxfer_libraries_svr4 is not NULL. | |
15318 | ||
fb723180 PA |
15319 | 2012-03-26 Pedro Alves <palves@redhat.com> |
15320 | ||
15321 | * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment. | |
15322 | ||
0afae3cf PA |
15323 | 2012-03-23 Pedro Alves <palves@redhat.com> |
15324 | ||
15325 | * linux-low.c (linux_qxfer_libraries_svr4): Terminate the | |
15326 | "library-list-svr4" element's start tag when the the DSO list is | |
15327 | empty. | |
15328 | ||
485f1ee4 PA |
15329 | 2012-03-23 Pedro Alves <palves@redhat.com> |
15330 | ||
15331 | * linux-low.c (read_one_ptr): Read the inferior's pointer through | |
15332 | a variable whose type size is the same as the inferior's pointer | |
15333 | size. | |
15334 | ||
a5362b9a TS |
15335 | 2012-03-21 Thomas Schwinge <thomas@codesourcery.com> |
15336 | ||
15337 | * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of | |
15338 | struct siginfo. | |
15339 | * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise. | |
15340 | * linux-x86-low.c (x86_siginfo_fixup): Likewise. | |
15341 | * linux-low.h: Include <signal.h>. | |
15342 | (struct siginfo): Remove forward declaration. | |
15343 | (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of | |
15344 | struct siginfo. | |
15345 | ||
d226c142 MF |
15346 | 2012-03-21 Mike Frysinger <vapier@gentoo.org> |
15347 | ||
15348 | * .gitignore: Ignore more files. | |
15349 | ||
122f36ef PA |
15350 | 2012-03-19 Pedro Alves <palves@redhat.com> |
15351 | Jan Kratochvil <jan.kratochvil@redhat.com> | |
15352 | ||
15353 | * server.c (cont_thread, general_thread): Add describing comments. | |
15354 | (start_inferior): Clear `cont_thread'. | |
15355 | (handle_v_cont): Don't set `cont_thread' if resuming all threads | |
15356 | of a process. | |
15357 | ||
fc3e5175 YQ |
15358 | 2012-03-15 Yao Qi <yao@codesourcery.com> |
15359 | ||
15360 | * tracepoint.c (install_tracepoint): Move duplicated tracepoint | |
15361 | handling to ... | |
15362 | (cmd_qtdp): ... here. | |
15363 | ||
8d0d92cd YQ |
15364 | 2012-03-15 Yao Qi <yao@codesourcery.com> |
15365 | ||
15366 | * tracepoint.c (struct tracepoint_action_ops): New. | |
15367 | (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field. | |
15368 | (m_tracepoint_action_download): New. | |
15369 | (r_tracepoint_action_download): New. | |
15370 | (x_tracepoint_action_download): New. | |
15371 | (l_tracepoint_action_download): New. | |
15372 | (add_tracepoint_action): Install `action->ops' according type. | |
15373 | (download_tracepoint_1): Move code `download' function pointer | |
15374 | of various tracepoint_action_ops. | |
15375 | ||
87b0bb13 JK |
15376 | 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com> |
15377 | ||
15378 | * linux-low.c (linux_attach_lwp_1): New variable buffer. Call | |
15379 | linux_ptrace_attach_warnings. | |
15380 | ||
5f572dec JK |
15381 | 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com> |
15382 | ||
15383 | * Makefile.in (linux-ptrace.o): New. | |
15384 | * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*) | |
15385 | (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*) | |
15386 | (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*) | |
15387 | (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux) | |
15388 | (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ | |
15389 | of these targets. | |
15390 | * linux-low.c (linux_attach_lwp_1): Remove redundent else clause. | |
15391 | ||
f4647387 YQ |
15392 | 2012-03-08 Yao Qi <yao@codesourcery.com> |
15393 | Pedro Alves <palves@redhat.com> | |
15394 | ||
15395 | Fix PR server/13392. | |
15396 | * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check | |
15397 | offset of JMP insn. | |
15398 | * tracepoint.c (remove_tracepoint): New. | |
15399 | (cmd_qtdp): Call remove_tracepoint when failed to install. | |
15400 | ||
9b224c5e PA |
15401 | 2012-03-07 Pedro Alves <palves@redhat.com> |
15402 | ||
15403 | * linux-low.c (get_detach_signal): New. | |
15404 | (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT. | |
15405 | Pass on pending signals to PTRACE_DETACH. Check the result of the | |
15406 | ptrace call. | |
15407 | * server.c (program_signals, program_signals_p): New. | |
15408 | (handle_general_set): Handle QProgramSignals. | |
15409 | * server.h (program_signals, program_signals_p): Declare. | |
15410 | ||
e237a7e2 JK |
15411 | 2012-03-05 Pedro Alves <palves@redhat.com> |
15412 | Jan Kratochvil <jan.kratochvil@redhat.com> | |
15413 | ||
15414 | * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found. | |
15415 | New comment why. | |
15416 | ||
5808517f YQ |
15417 | 2012-03-03 Yao Qi <yao@codesourcery.com> |
15418 | ||
15419 | * tracepoint.c (tracepoint_look_up_symbols): Update call to | |
15420 | agent_look_up_symbols. | |
15421 | ||
58b4daa5 YQ |
15422 | 2012-03-03 Yao Qi <yao@codesourcery.com> |
15423 | ||
15424 | * Makefile.in (linux-low.o): Keep dependence on agent.h. | |
15425 | (linux-x86-low.o): Likewise. | |
15426 | * server.h: Remove in_process_agent_loaded. | |
15427 | * tracepoint.c (in_process_agent_loaded): Removed. Moved it | |
15428 | common/agent.c. | |
15429 | Update callers. | |
15430 | ||
8ffcbaaf YQ |
15431 | 2012-03-03 Yao Qi <yao@codesourcery.com> |
15432 | ||
15433 | * tracepoint.c (gdb_agent_capability): New global. | |
15434 | (in_process_agent_loaded_ust): Renamed to | |
15435 | `in_process_agent_supports_ust'. | |
15436 | Update callers. | |
15437 | (in_process_agent_supports_ust): Call agent_capability_check. | |
15438 | (clear_installed_tracepoints): Assert that agent supports | |
15439 | agent. | |
15440 | ||
d1feda86 YQ |
15441 | 2012-03-03 Yao Qi <yao@codesourcery.com> |
15442 | ||
15443 | * linux-low.c (linux_supports_agent): New. | |
15444 | (linux_target_ops): Initialize field `supports_agent' with | |
15445 | linux_supports_agent. | |
15446 | * target.h (struct target_ops) <supports_agent>: New. | |
15447 | (target_supports_agent): New macro. | |
15448 | * server.c (handle_general_set): Handle packet 'QAgent'. | |
15449 | (handle_query): Send `QAgent+'. | |
15450 | * Makefile.in (server.o): Depends on agent.h. | |
15451 | ||
2fa291ac YQ |
15452 | 2012-03-03 Yao Qi <yao@codesourcery.com> |
15453 | ||
15454 | * Makefile.in (OBS): Add agent.o. | |
15455 | Add new rule for agent.o. | |
15456 | Track dependence of tracepoint.c on agent.h. | |
15457 | * tracepoint.c (run_inferior_command_1): | |
15458 | (run_inferior_command): Call agent_run_command. | |
15459 | (gdb_ust_connect_sync_socket): Deleted. Move it to | |
15460 | common/agent.c. | |
15461 | (resume_thread, stop_thread): Likewise. | |
15462 | (gdb_ust_socket_init): Renamed to ... | |
15463 | (gdb_agent_socket_init): ... New. | |
15464 | (gdb_ust_thread): Renamed to ... | |
15465 | (gdb_agent_helper_thread): ... New. | |
15466 | (gdb_ust_init): Move some code to ... | |
15467 | (gdb_agent_init): ... here. New. | |
15468 | [HAVE_UST]: Call gdb_ust_init. | |
15469 | (initialize_tracepoint_ftlib): Call gdb_agent_init. | |
15470 | * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS. | |
15471 | * config.in, configure: Regenerated. | |
15472 | ||
05044653 PA |
15473 | 2012-03-02 Pedro Alves <palves@redhat.com> |
15474 | ||
15475 | * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete. | |
15476 | * linux-low.c (struct simple_pid_list): New. | |
15477 | (stopped_pids): New a struct simple_pid_list pointer. | |
15478 | (add_to_pid_list, pull_pid_from_list): New. | |
15479 | (handle_extended_wait): Don't assume the first signal new children | |
15480 | report is SIGSTOP. Adjust call to pull_pid_from_list. | |
15481 | (linux_wait_for_lwp): Adjust. | |
15482 | ||
8d00225b YQ |
15483 | 2012-03-02 Yao Qi <yao@codesourcery.com> |
15484 | ||
15485 | * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in | |
15486 | debug log. | |
15487 | ||
19560ba5 YQ |
15488 | 2012-03-02 Yao Qi <yao@codesourcery.com> |
15489 | ||
15490 | * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters | |
15491 | `stop_pc' and `tpoint'. Update caller. | |
15492 | ||
1faeff08 MR |
15493 | 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com> |
15494 | ||
15495 | * linux-low.h (linux_target_ops): Add regset_bitmap member. | |
15496 | * linux-low.c (use_linux_regsets): New macro. | |
15497 | [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise. | |
15498 | [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise. | |
15499 | (linux_register_in_regsets): New function. | |
15500 | (usr_fetch_inferior_registers): Skip registers covered by | |
15501 | regsets. | |
15502 | (usr_store_inferior_registers): Likewise. | |
15503 | (usr_fetch_inferior_registers): New macro. | |
15504 | (usr_store_inferior_registers): Likewise. | |
15505 | (linux_fetch_registers): Handle mixed regset/non-regset targets. | |
15506 | (linux_store_registers): Likewise. | |
15507 | * linux-mips-low.c (init_registers_mips_dsp_linux): New | |
15508 | prototype. | |
15509 | (init_registers_mips64_dsp_linux): Likewise. | |
15510 | (init_registers_mips_linux): New macro. | |
15511 | (init_registers_mips_dsp_linux): Likewise. | |
15512 | (mips_dsp_num_regs): Likewise. | |
15513 | (DSP_BASE, DSP_CONTROL): New fallback macros. | |
15514 | (mips_base_regs): New macro. | |
15515 | (mips_regmap): Use it. Fix the size. | |
15516 | (mips_dsp_regmap): New variable. | |
15517 | (mips_dsp_regset_bitmap): Likewise. | |
15518 | (mips_arch_setup): New function. | |
15519 | (mips_cannot_fetch_register): Use the_low_target.regmap rather | |
15520 | than mips_regmap. | |
15521 | (mips_cannot_store_register): Likewise. | |
15522 | (the_low_target): Update .arch_setup, .num_regs and .regmap | |
15523 | initializers. Add .regset_bitmap initializer. | |
15524 | * linux-arm-low.c (the_low_target): Add .regset_bitmap | |
15525 | initializer. | |
15526 | * linux-bfin-low.c (the_low_target): Likewise. | |
15527 | * linux-cris-low.c (the_low_target): Likewise. | |
15528 | * linux-crisv32-low.c (the_low_target): Likewise. | |
15529 | * linux-ia64-low.c (the_low_target): Likewise. | |
15530 | * linux-m32r-low.c (the_low_target): Likewise. | |
15531 | * linux-m68k-low.c (the_low_target): Likewise. | |
15532 | * linux-ppc-low.c (the_low_target): Likewise. | |
15533 | * linux-s390-low.c (the_low_target): Likewise. | |
15534 | * linux-sh-low.c (the_low_target): Likewise. | |
15535 | * linux-sparc-low.c (the_low_target): Likewise. | |
15536 | * linux-tic6x-low.c (the_low_target): Likewise. | |
15537 | * linux-x86-low.c (the_low_target): Likewise. | |
15538 | * linux-xtensa-low.c (the_low_target): Likewise. | |
15539 | * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and | |
15540 | mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml, | |
15541 | mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to | |
15542 | srv_xmlfiles. | |
15543 | * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets. | |
15544 | (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise. | |
15545 | ||
c03e6ccc YQ |
15546 | 2012-02-29 Yao Qi <yao@codesourcery.com> |
15547 | Pedro Alves <palves@redhat.com> | |
15548 | ||
15549 | * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when | |
15550 | `step_over_finished' is true. | |
15551 | ||
644cebc9 PA |
15552 | 2012-02-27 Pedro Alves <palves@redhat.com> |
15553 | ||
15554 | * linux-low.c (pid_is_stopped): Delete, moved to common/. | |
15555 | (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped. | |
15556 | ||
c14d7ab2 PA |
15557 | 2012-02-27 Pedro Alves <palves@redhat.com> |
15558 | ||
15559 | PR server/9684 | |
15560 | * linux-low.c (pid_is_stopped): New. | |
15561 | (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes. | |
15562 | ||
412c89dd LM |
15563 | 2012-02-25 Luis Machado <lgustavo@codesourcery.com> |
15564 | ||
15565 | * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation | |
15566 | of conditions. | |
15567 | ||
b745defe MR |
15568 | 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com> |
15569 | ||
15570 | * linux-mips-low.c (mips_regmap): Correct the index of $f9. | |
15571 | ||
9f3a5c85 LM |
15572 | 2012-02-24 Luis Machado <lgustavo@codesourcery> |
15573 | ||
15574 | * server.c (handle_query): Advertise support for target-side | |
15575 | breakpoint condition evaluation. | |
15576 | (process_point_options): New function. | |
15577 | (process_serial_event): When inserting a breakpoint, check for | |
15578 | a target-side condition that should be evaluated. | |
15579 | ||
15580 | * mem-break.c: Include regcache.h and ax.h. | |
15581 | (point_cond_list_t): New data structure. | |
15582 | (breakpoint) <cond_list>: New field. | |
15583 | (find_gdb_breakpoint_at): Make non-static. | |
15584 | (delete_gdb_breakpoint_at): Clear any target-side | |
15585 | conditions. | |
15586 | (clear_gdb_breakpoint_conditions): New function. | |
15587 | (add_condition_to_breakpoint): Likewise. | |
15588 | (add_breakpoint_condition): Likewise. | |
15589 | (gdb_condition_true_at_breakpoint): Likewise. | |
15590 | (gdb_breakpoint_here): Return result directly instead | |
15591 | of going through a local variable. | |
15592 | ||
15593 | * mem-break.h (find_gdb_breakpoint_at): New prototype. | |
15594 | (clear_gdb_breakpoint_conditions): Likewise. | |
15595 | (add_breakpoint_condition): Likewise. | |
15596 | (gdb_condition_true_at_breakpoint): Likewise. | |
15597 | ||
15598 | * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition. | |
15599 | (need_step_over_p): Take target-side breakpoint condition into | |
15600 | consideration. | |
15601 | ||
5e1dc496 LM |
15602 | 2012-02-24 Luis Machado <lgustavo@codesourcery> |
15603 | ||
15604 | * server.h: Include tracepoint.h. | |
15605 | (agent_mem_read, agent_get_trace_state_variable_value, | |
15606 | agent_set_trace_state_variable_value, | |
15607 | agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr, | |
15608 | get_set_tsv_func_addr): New prototypes. | |
15609 | ||
15610 | * ax.h: New include file. | |
15611 | * ax.c: New source file. | |
15612 | ||
15613 | * tracepoint.c: Include ax.h. | |
15614 | (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes, | |
15615 | agent_expr, eval_result_type): Move to ax.h. | |
15616 | (parse_agent_expr): Rename to ... | |
15617 | (gdb_parse_agent_expr): ... this, make it non-static and move | |
15618 | to ax.h. | |
15619 | (unparse_agent_expr) Rename to ... | |
15620 | (gdb_unparse_agent_expr): ... this, make it non-static and move | |
15621 | to ax.h. | |
15622 | (eval_agent_expr): Rename to ... | |
15623 | (eval_tracepoint_agent_expr): ... this. | |
15624 | (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove | |
15625 | forward declarations. | |
15626 | (add_tracepoint_action): Call gdb_parse_agent_expr (...). | |
15627 | (agent_get_trace_state_variable_value): New function. | |
15628 | (agent_set_trace_state_variable_value): New function. | |
15629 | (cmd_qtdp): Call gdb_parse_agent_expr (...). | |
15630 | (response_tracepoint): Call gdb_unparse_agent_expr (...). | |
15631 | (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...). | |
15632 | (condition_true_at_tracepoint): Likewise. | |
15633 | (parse_agent_expr): Rename to ... | |
15634 | (gdb_parse_agent_expr): ... this and move to ax.c. | |
15635 | (unparse_agent_expr): Rename to ... | |
15636 | (gdb_unparse_agent_expr): ... this and move to ax.c. | |
15637 | (gdb_agent_op_name): Move to ax.c. | |
15638 | (eval_agent_expr): Rename to ... | |
15639 | (gdb_eval_agent_expr): ... this, use regcache passed as parameter | |
15640 | and move to ax.c. | |
15641 | (eval_tracepoint_agent_expr): New function. | |
15642 | (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make | |
43aaf8b6 | 15643 | non-static. |
5e1dc496 LM |
15644 | (current_insn_ptr, emit_error, struct bytecode_address): Move to |
15645 | ax.c. | |
15646 | (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh, | |
15647 | emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not, | |
15648 | emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal, | |
15649 | emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto, | |
15650 | emit_goto, write_goto_address, emit_const, emit_reg, emit_pop, | |
15651 | emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust, | |
15652 | emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto, | |
15653 | emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c. | |
15654 | (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions. | |
15655 | (compile_bytecodes): Remove forward declaration. | |
15656 | (is_goto_target): Move to ax.c. | |
15657 | (compile_bytecodes): Move to ax.c and call | |
15658 | agent_get_trace_state_variable_value (...) and | |
15659 | agent_set_trace_state_variable_value (...). | |
15660 | ||
15661 | * Makefile.in: Update ax.c and IPA dependencies. | |
15662 | ||
277e4e52 PA |
15663 | 2012-02-24 Pedro Alves <palves@redhat.com> |
15664 | ||
15665 | * tracepoint.c (cmd_bigqtbuffer): Rename as ... | |
15666 | (cmd_bigqtbuffer_circular): ... this. Only handle | |
15667 | 'QTBuffer:circular:'. | |
15668 | (handle_tracepoint_general_set): Adjust. | |
15669 | ||
bf4c19f7 YQ |
15670 | 2012-02-16 Yao Qi <yao@codesourcery.com> |
15671 | ||
15672 | * inferiors.c: Move code to ... | |
15673 | * dll.c: .... here. New. | |
15674 | * server.h: Declare clear_dlls. | |
15675 | * Makefile.in (SFILES): Add dll.c. | |
15676 | (OBS): Add dll.o | |
15677 | (dll.o): New rule. | |
15678 | ||
d73f2619 YQ |
15679 | 2012-02-11 Yao Qi <yao@codesourcery.com> |
15680 | ||
15681 | * server.c: (handle_monitor_command): Add a new parameter | |
15682 | `own_buf'. | |
15683 | (handle_query): Update caller. | |
15684 | ||
f8255c2a JB |
15685 | 2012-02-09 Joel Brobecker <brobecker@adacore.com> |
15686 | ||
15687 | * configure.ac: Add readlink to AC_CHECK_FUNCS list. | |
15688 | * configure, config.in: Regenerate. | |
15689 | * hostio.c: Provide an alternate implementation if HAVE_READLINK | |
15690 | is not defined. | |
15691 | ||
da84f473 PA |
15692 | 2012-02-02 Pedro Alves <palves@redhat.com> |
15693 | ||
15694 | Try SIGKILL first, then PTRACE_KILL. | |
15695 | * linux-low.c (linux_kill_one_lwp): New. | |
15696 | (linux_kill_one_lwp): Rename to ... | |
15697 | (kill_one_lwp_callback): ... this. Use the new | |
15698 | linux_kill_one_lwp. | |
15699 | ||
e886a173 PA |
15700 | 2012-02-02 Pedro Alves <palves@redhat.com> |
15701 | ||
15702 | * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current | |
15703 | inferior. | |
15704 | ||
be07f1a2 PA |
15705 | 2012-01-27 Pedro Alves <palves@redhat.com> |
15706 | ||
15707 | * linux-low.c (linux_child_pid_to_exec_file): Delete. | |
15708 | (elf_64_file_p): Make static. | |
15709 | (linux_pid_exe_is_elf_64_file): New. | |
15710 | * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p): | |
15711 | Delete declarations. | |
15712 | (linux_pid_exe_is_elf_64_file): Declare. | |
15713 | * linux-x86-low.c (x86_arch_setup): Use | |
15714 | linux_pid_exe_is_elf_64_file. | |
15715 | ||
d8301ad1 JK |
15716 | 2012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com> |
15717 | ||
15718 | * linux-low.c (linux_wait_for_event_1): Rename to ... | |
15719 | (linux_wait_for_event): ... here and merge it with former | |
15720 | linux_wait_for_event - new variable wait_ptid, use it. | |
15721 | (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1. | |
15722 | ||
01b17894 PA |
15723 | 2012-01-23 Pedro Alves <palves@redhat.com> |
15724 | ||
15725 | * server.c (main): Avoid yet another case of infinite loop while | |
15726 | detaching/killing after a longjmp. | |
15727 | ||
e825046f JK |
15728 | 2012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
15729 | ||
15730 | Code cleanup. | |
15731 | * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid. | |
15732 | ||
b9e7b9c3 UW |
15733 | 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org> |
15734 | ||
15735 | * hostio.c (handle_readlink): New function. | |
15736 | (handle_vFile): Call it to handle "vFile:readlink" packets. | |
15737 | ||
901f9912 UW |
15738 | 2012-01-20 Pedro Alves <palves@redhat.com> |
15739 | Ulrich Weigand <ulrich.weigand@linaro.org> | |
15740 | ||
15741 | * server.c (handle_v_requests): Only support vAttach and vRun to | |
15742 | start multiple processes when in extended protocol mode. | |
15743 | ||
fc1ab1a0 PA |
15744 | 2012-01-17 Pedro Alves <palves@redhat.com> |
15745 | ||
15746 | * tracepoint.c (initialize_tracepoint): Use mmap instead of | |
15747 | memalign plus mprotect to allocate the scratch buffer. | |
15748 | ||
7d5d4e98 PA |
15749 | 2012-01-13 Pedro Alves <palves@redhat.com> |
15750 | ||
15751 | * server.c (attach_inferior): Clear `cont_thread'. | |
15752 | ||
f128d5e9 PA |
15753 | 2012-01-13 Pedro Alves <palves@redhat.com> |
15754 | ||
15755 | * server.c (main): Avoid infinite loop while detaching/killing | |
15756 | after a longjmp. | |
15757 | ||
06db92f0 DE |
15758 | 2012-01-09 Doug Evans <dje@google.com> |
15759 | ||
15760 | * server.c (start_inferior): Set last_ptid in --wrapper case. | |
15761 | ||
32d92999 YQ |
15762 | 2012-01-06 Yao Qi <yao@codesourcery.com> |
15763 | ||
15764 | * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro | |
15765 | defined. | |
15766 | [IN_PROCESS_AGENT] (debug_agent): New global variable. | |
15767 | ||
5e0a92a9 YQ |
15768 | 2012-01-04 Yao Qi <yao@codesourcery.com> |
15769 | ||
15770 | * tracepoint.c (cmd_qtdp): Print debug message | |
15771 | for static tracepoint. | |
15772 | ||
ae639e8c YQ |
15773 | 2012-01-04 Yao Qi <yao@codesourcery.com> |
15774 | ||
15775 | * tracepoint.c (trace_vdebug): Differentiate debug message | |
15776 | between gdbserver and IPA. | |
15777 | ||
f72429c5 YQ |
15778 | 2012-01-03 Yao Qi <yao@codesourcery.com> |
15779 | ||
15780 | * tracepoint.c (tracepoint_was_hit): Don't collect for | |
15781 | static tracepoint. | |
15782 | ||
12c3e59c JB |
15783 | 2012-01-02 Joel Brobecker <brobecker@adacore.com> |
15784 | ||
15785 | * terminal.h: Reformat copyright header. | |
15786 | ||
67827812 JB |
15787 | 2012-01-02 Joel Brobecker <brobecker@adacore.com> |
15788 | ||
15789 | * server.c (gdbserver_version): Update copyright year. | |
15790 | * gdbreplay.c (gdbreplay_version): Likewise. | |
15791 | ||
3e52c33d JK |
15792 | 2011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com> |
15793 | ||
15794 | * linux-low.c (linux_create_inferior): Put empty if clause for write. | |
15795 | ||
15796 | Revert: | |
15797 | 2011-12-18 Hui Zhu <teawater@gmail.com> | |
15798 | * linux-low.c (linux_create_inferior): Save return value to ret. | |
15799 | ||
66f1260e HZ |
15800 | 2011-12-18 Hui Zhu <teawater@gmail.com> |
15801 | ||
15802 | * linux-low.c (linux_create_inferior): Save return value to ret. | |
15803 | ||
e77616d7 DE |
15804 | 2011-12-16 Doug Evans <dje@google.com> |
15805 | ||
e7b06c57 DE |
15806 | * linux-low.c (linux_create_inferior): If stdio connection, |
15807 | redirect stdin from /dev/null, stdout to stderr. | |
15808 | * remote-utils.c (remote_is_stdio): New static global. | |
15809 | (remote_connection_is_stdio): New function. | |
15810 | (remote_prepare): Handle stdio connection. | |
15811 | (remote_open): Ditto. | |
15812 | (remote_close): Don't close stdin for stdio connections. | |
15813 | (read_prim,write_prim): New functions. Replace all calls to | |
15814 | read/write to these. | |
15815 | * server.c (main): Watch for "-" argument. Move call to | |
15816 | remote_prepare before start_inferior. | |
15817 | * server.h (STDIO_CONNECTION_NAME): New macro. | |
15818 | (remote_connection_is_stdio): Declare. | |
15819 | ||
e77616d7 DE |
15820 | * remote-utils.c (prepare_resume_reply): Remove extraneous \n |
15821 | in debugging output. | |
15822 | ||
82067193 YQ |
15823 | 2011-12-15 Yao Qi <yao@codesourcery.com> |
15824 | ||
15825 | * tracepoint.c: Include sys/syscall.h. | |
15826 | (gdb_ust_thread): Remove preprocessor conditional. | |
15827 | ||
82bfbe7e PA |
15828 | 2011-12-14 Pedro Alves <pedro@codesourcery.com> |
15829 | ||
15830 | * linux-low.c (linux_detach_one_lwp): Call | |
15831 | the_low_target.prepare_to_resume before detaching. | |
15832 | ||
712c6575 YQ |
15833 | 2011-12-14 Yao Qi <yao@codesourcery.com> |
15834 | ||
15835 | * tracepoint.c (gdb_ust_thread): Don't ignore return value | |
15836 | of write. | |
15837 | ||
d54d1edf YQ |
15838 | 2011-12-14 Yao Qi <yao@codesourcery.com> |
15839 | ||
15840 | * i386-low.c (i386_low_stopped_data_address): Initialize local | |
15841 | variable `control'. | |
15842 | ||
6210a125 PA |
15843 | 2011-12-13 Pedro Alves <pedro@codesourcery.com> |
15844 | ||
15845 | PR remote/13492 | |
15846 | ||
15847 | * i386-low.c (i386_low_stopped_data_address): Avoid fetching | |
15848 | DR_CONTROL unless necessary. Extend comments. | |
15849 | * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to | |
15850 | DR0-3 if not used. If any watchpoint was set, clear DR_STATUS. | |
15851 | ||
2ece8244 YQ |
15852 | 2011-12-13 Yao Qi <yao@codesourcery.com> |
15853 | ||
15854 | * tracepoint.c (trace_buffer_alloc): Replace magic numbers with | |
15855 | macros. | |
15856 | (upload_fast_traceframes, upload_fast_traceframes): Likewise. | |
15857 | ||
784867a5 JK |
15858 | 2011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com> |
15859 | ||
15860 | * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist. | |
15861 | Print new debug message for such case. | |
15862 | ||
6bf36717 JK |
15863 | 2011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com> |
15864 | ||
15865 | Fix overlapping memcpy. | |
15866 | * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for | |
15867 | the read_inferior_memory transfer. | |
15868 | (delete_fast_tracepoint_jump): New variable buf. Use it for the | |
15869 | write_inferior_memory transfer. | |
15870 | (set_fast_tracepoint_jump): New variable buf. Use it for the | |
15871 | read_inferior_memory and write_inferior_memory transfers. | |
15872 | (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at) | |
15873 | (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf. | |
15874 | Use it for the write_inferior_memory transfer. | |
15875 | (check_mem_read, check_mem_write): New gdb_asserts for overlapping | |
15876 | buffers. | |
15877 | ||
50275556 MR |
15878 | 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com> |
15879 | ||
15880 | * linux-low.c (fetch_register, store_register): Make code | |
15881 | consistent, fix formatting. | |
15882 | ||
7325beb4 MR |
15883 | 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com> |
15884 | ||
15885 | * linux-low.c (usr_store_inferior_registers): Factor out code | |
15886 | to handle individual registers into... | |
15887 | (store_register): ... this new function. | |
15888 | ||
c642a434 UW |
15889 | 2011-12-06 Ulrich Weigand <uweigand@de.ibm.com> |
15890 | ||
15891 | * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules. | |
15892 | (s390-linux32v2.o, s390-linux32v2.c): Likewise. | |
15893 | (s390-linux64v1.o, s390-linux64v1.c): Likewise. | |
15894 | (s390-linux64v2.o, s390-linux64v2.c): Likewise. | |
15895 | (s390x-linux64v1.o, s390x-linux64v1.c): Likewise. | |
15896 | (s390x-linux64v2.o, s390x-linux64v2.c): Likewise. | |
15897 | * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects. | |
15898 | (srv_xmlfiles): Add new XML files. | |
15899 | ||
15900 | * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>, | |
15901 | and <sys/uio.h>. | |
15902 | (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined. | |
15903 | (init_registers_s390_linux32v1): Add prototype. | |
15904 | (init_registers_s390_linux32v2): Likewise. | |
15905 | (init_registers_s390_linux64v1): Likewise. | |
15906 | (init_registers_s390_linux64v2): Likewise. | |
15907 | (init_registers_s390x_linux64v1): Likewise. | |
15908 | (init_registers_s390x_linux64v2): Likewise. | |
15909 | (s390_num_regs): Increment to 52. | |
15910 | (s390_regmap): Add orig_r2 register. | |
15911 | (s390_num_regs_3264): Increment to 68. | |
15912 | (s390_regmap_3264): Add orig_r2 register. | |
15913 | (s390_collect_ptrace_register): Handle orig_r2 register. | |
15914 | (s390_supply_ptrace_register): Likewise. | |
15915 | (s390_fill_last_break): New function. | |
15916 | (s390_store_last_break): Likewise. | |
15917 | (s390_fill_system_call): New function. | |
15918 | (s390_store_system_call): Likewise. | |
15919 | (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL | |
15920 | register sets. | |
15921 | (s390_check_regset): New function. | |
15922 | (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and | |
15923 | NT_S390_SYSTEM_CALL regsets and use appropriate description. | |
15924 | Update target_regsets for available register sets. | |
15925 | ||
2268b414 JK |
15926 | 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com> |
15927 | Jan Kratochvil <jan.kratochvil@redhat.com> | |
15928 | ||
15929 | * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug) | |
15930 | (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4): | |
15931 | New. | |
15932 | (struct linux_target_ops): Install linux_qxfer_libraries_svr4. | |
15933 | * linux-low.h (struct process_info_private): New member r_debug. | |
15934 | * server.c (handle_qxfer_libraries): Call | |
15935 | the_target->qxfer_libraries_svr4. | |
15936 | (handle_qxfer_libraries_svr4): New function. | |
15937 | (qxfer_packets): New entry "libraries-svr4". | |
15938 | (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4. | |
15939 | * target.h (struct target_ops): New member qxfer_libraries_svr4. | |
15940 | * remote.c (remote_xfer_partial): Call add_packet_config_cmd for | |
15941 | PACKET_qXfer_libraries_svr4. | |
15942 | ||
d6db1fab UW |
15943 | 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com> |
15944 | ||
15945 | * linux-s390-low.c (s390_collect_ptrace_register): Fully convert | |
15946 | PSW address/mask between 8-byte and 16-byte formats. | |
15947 | (s390_supply_ptrace_register): Likewise. | |
15948 | (s390_get_pc, s390_set_pc): 4-byte PSW address always includes | |
15949 | basic addressing mode bit. | |
15950 | ||
242f5f1c SS |
15951 | 2011-11-24 Stan Shebs <stan@codesourcery.com> |
15952 | ||
15953 | * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx. | |
15954 | ||
f196051f SS |
15955 | 2011-11-17 Stan Shebs <stan@codesourcery.com> |
15956 | ||
15957 | * tracepoint.c (struct tracepoint): New field traceframe_usage. | |
15958 | (tracing_start_time): New global. | |
15959 | (tracing_stop_time): New global. | |
15960 | (tracing_user_name): New global. | |
15961 | (tracing_notes): New global. | |
15962 | (tracing_stop_note): New global. | |
15963 | (cmd_qtstart): Set traceframe_usage, start_time. | |
15964 | (stop_tracing): Set stop_time. | |
15965 | (cmd_qtstatus): Report additional status. | |
15966 | (cmd_qtp): New function. | |
15967 | (handle_tracepoint_query): Call it. | |
15968 | (cmd_qtnotes): New function. | |
15969 | (handle_tracepoint_general_set): Call it. | |
15970 | (get_timestamp): Rename from tsv_get_timestamp. | |
15971 | ||
405f8e94 SS |
15972 | 2011-11-14 Stan Shebs <stan@codesourcery.com> |
15973 | Kwok Cheung Yeung <kcy@codesourcery.com> | |
15974 | ||
15975 | * linux-x86-low.c (small_jump_insn): New. | |
15976 | (i386_install_fast_tracepoint_jump_pad): Add arguments for | |
15977 | trampoline and error message, build a trampoline and issue a small | |
15978 | jump instruction to it. | |
15979 | (x86_install_fast_tracepoint_jump_pad): Add arguments for | |
15980 | trampoline and error message. | |
15981 | (x86_get_min_fast_tracepoint_insn_len): New. | |
15982 | (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len. | |
15983 | * linux-low.h (struct linux_target_ops): Add arguments to | |
15984 | install_fast_tracepoint_jump_pad operation, add new operation. | |
15985 | * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add | |
15986 | arguments. | |
15987 | (linux_get_min_fast_tracepoint_insn_len): New function. | |
15988 | (linux_target_op): Add new operation. | |
15989 | * tracepoint.c (gdb_trampoline_buffer): New IPA variable. | |
15990 | (gdb_trampoline_buffer_end): Ditto. | |
15991 | (gdb_trampoline_buffer_error): Ditto. | |
15992 | (struct ipa_sym_addresses): Add fields for new IPA variables. | |
15993 | (symbol_list): Add entries for new IPA variables. | |
15994 | (struct tracepoint): Add fields to hold the address range of the | |
15995 | trampoline used by the tracepoint. | |
15996 | (trampoline_buffer_head): New static variable. | |
15997 | (trampoline_buffer_tail): Ditto. | |
15998 | (claim_trampoline_space): New function. | |
15999 | (have_fast_tracepoint_trampoline_buffer): New function. | |
16000 | (clone_fast_tracepoint): Fill in trampoline fields of tracepoint | |
16001 | structure. | |
16002 | (install_fast_tracepoint): Ditto, also add error buffer argument. | |
16003 | (cmd_qtminftpilen): New function. | |
16004 | (handle_tracepoint_query): Add response to qTMinFTPILen packet. | |
16005 | (fast_tracepoint_from_trampoline_address): New function. | |
16006 | (fast_tracepoint_collecting): Handle trampoline as part of jump | |
16007 | pad space. | |
16008 | (set_trampoline_buffer_space): New function. | |
16009 | (initialize_tracepoint): Initialize new IPA variables. | |
16010 | * target.h (struct target_ops): Add arguments to | |
16011 | install_fast_tracepoint_jump_pad operation, add new | |
16012 | get_min_fast_tracepoint_insn_len operation. | |
16013 | (target_get_min_fast_tracepoint_insn_len): New. | |
16014 | (install_fast_tracepoint_jump_pad): Add arguments. | |
16015 | * server.h (IPA_BUFSIZ): Define. | |
16016 | * linux-i386-ipa.c: Include extra header files. | |
16017 | (initialize_fast_tracepoint_trampoline_buffer): New function. | |
16018 | (initialize_low_tracepoint): Call it. | |
16019 | * server.h (set_trampoline_buffer_space): Declare. | |
16020 | (claim_trampoline_space): Ditto. | |
16021 | (have_fast_tracepoint_trampoline_buffer): Ditto. | |
16022 | ||
1e4d1764 YQ |
16023 | 2011-11-14 Yao Qi <yao@codesourcery.com> |
16024 | ||
16025 | * server.c (handle_query): Handle InstallInTrace for qSupported. | |
16026 | * tracepoint.c (add_tracepoint): Sort list. | |
16027 | (install_tracepoint, download_tracepoint): New. | |
16028 | (cmd_qtdp): Call them to install and download tracepoints. | |
16029 | (sort_tracepoints): Removed. | |
16030 | (cmd_qtstart): Update. | |
16031 | ||
5c73ff4e YQ |
16032 | 2011-11-14 Yao Qi <yao@codesourcery.com> |
16033 | ||
16034 | * mem-break.c (inc_ref_fast_tracepoint_jump): New. | |
16035 | * mem-break.h: Declare. | |
16036 | * tracepoint.c (cmd_qtstart): Move some code to ... | |
16037 | (clone_fast_tracepoint, install_fast_tracepoint): ... here. | |
16038 | New. | |
16039 | (download_tracepoints): Move some code to ... | |
16040 | (download_tracepoint_1): ... here. New. | |
16041 | ||
86a30030 YQ |
16042 | 2011-11-08 Yao Qi <yao@codesourcery.com> |
16043 | ||
16044 | * remote-utils.c (relocate_instruction): A comment fix. | |
16045 | ||
8d26e50c JB |
16046 | 2011-11-07 Joel Brobecker <brobecker@adacore.com> |
16047 | ||
16048 | * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete. | |
16049 | (i386_dr_low_get_control, i386_dr_low_get_status): Use | |
16050 | dr_status_mirror and dr_control_mirror from debug_reg_state. | |
16051 | (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror | |
16052 | (i386_initial_stuff): Remove use of deleted globals. | |
16053 | (i386_get_thread_context, i386_set_thread_context, | |
16054 | i386_thread_added): Use dr_status_mirror and dr_control_mirror | |
16055 | from debug_reg_state. | |
16056 | ||
a59306a3 YQ |
16057 | 2011-11-05 Yao Qi <yao@codesourcery.com> |
16058 | ||
16059 | * tracepoint.c (gdb_collect): Loop over tracepoints of same | |
16060 | address as TPOINT's. | |
16061 | ||
3065dfb6 SS |
16062 | 2011-11-02 Stan Shebs <stan@codesourcery.com> |
16063 | ||
16064 | * tracepoint.c (agent_mem_read_string): New function. | |
16065 | (eval_agent_expr): Call it for tracenz. | |
16066 | * server.c (handle_query): Report support for tracenz. | |
16067 | ||
fd0d8c7c YQ |
16068 | 2011-11-02 Yao Qi <yao@codesourcery.com> |
16069 | ||
16070 | * tracepoint.c (cmd_qtstart): Remove unused local variables. | |
16071 | ||
609086b1 YQ |
16072 | 2011-11-02 Yao Qi <yao@codesourcery.com> |
16073 | ||
16074 | * target.h: Fix a typo in comment. | |
16075 | ||
b9fd1791 PA |
16076 | 2011-10-31 Pedro Alves <pedro@codesourcery.com> |
16077 | ||
16078 | * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't | |
16079 | clobber the breakpoints' shadows with fast tracepoint jumps. | |
16080 | * mem-break.h (check_mem_write): Add `myaddr' parameter. | |
16081 | * target.c (write_inferior_memory): Also pass MYADDR down to | |
16082 | check_mem_write. | |
16083 | ||
03583c20 UW |
16084 | 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org> |
16085 | ||
16086 | * configure.ac: Check support for personality routine. | |
16087 | * configure: Regenerate. | |
16088 | * config.in: Likewise. | |
16089 | * linux-low.c: Include <sys/personality.h>. | |
16090 | Define ADDR_NO_RANDOMIZE if necessary. | |
16091 | (linux_create_inferior): Disable address space randomization when | |
16092 | forking inferior, if requested. | |
16093 | (linux_supports_disable_randomization): New function. | |
16094 | (linux_target_ops): Install it. | |
16095 | * server.h (disable_randomization): Declare. | |
16096 | * server.c (disable_randomization): New global variable. | |
16097 | (handle_general_set): Handle QDisableRandomization. | |
16098 | (handle_query): Likewise for qSupported. | |
16099 | (main): Support --disable-randomization and --no-disable-randomization | |
16100 | command line arguments. | |
16101 | * target.h (struct target_ops): Add supports_disable_randomization. | |
16102 | (target_supports_disable_randomization): New macro. | |
16103 | ||
723b724b MF |
16104 | 2011-09-29 Mike Frysinger <vapier@gentoo.org> |
16105 | ||
16106 | * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the | |
16107 | ifdef check. | |
16108 | [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check. | |
16109 | [!PT_GETDSBT] (target_loadmap): New definition. | |
16110 | (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define. | |
16111 | (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to | |
16112 | LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP, | |
16113 | and PT_GETDSBT to LINUX_LOADMAP. | |
16114 | [!PT_GETDSBT] (linux_read_loadmap): Define to NULL. | |
16115 | (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check. | |
16116 | ||
55329a5c | 16117 | 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org> |
71487fd7 UW |
16118 | |
16119 | * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove. | |
16120 | (arm_linux_hwbp_cap): New static variable. | |
16121 | (arm_linux_get_hwbp_cap): Replace by ... | |
16122 | (arm_linux_init_hwbp_cap): ... this new function. | |
16123 | (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap. | |
16124 | (arm_linux_get_hw_watchpoint_count): Likewise. | |
16125 | (arm_linux_get_hw_watchpoint_max_length): Likewise. | |
16126 | (arm_arch_setup): Call arm_linux_init_hwbp_cap. | |
16127 | (arm_prepare_to_resume): Use perror_with_name instead of error. | |
16128 | ||
55329a5c | 16129 | 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org> |
09b4ad9f UW |
16130 | |
16131 | * linux-arm-low.c: Include <signal.h>. | |
16132 | (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary. | |
16133 | (struct arm_linux_hwbp_cap): New data type. | |
16134 | (arm_hwbp_type, arm_hwbp_control_t): New typedefs. | |
16135 | (struct arm_linux_hw_breakpoint): New data type. | |
16136 | (MAX_BPTS, MAX_WPTS): Define. | |
16137 | (struct arch_process_info, struct arch_lwp_info): New data types. | |
16138 | (arm_linux_get_hwbp_cap): New function. | |
16139 | (arm_linux_get_hw_breakpoint_count): Likewise. | |
16140 | (arm_linux_get_hw_watchpoint_count): Likewise. | |
16141 | (arm_linux_get_hw_watchpoint_max_length): Likewise. | |
16142 | (arm_hwbp_control_initialize): Likewise. | |
16143 | (arm_hwbp_control_is_enabled): Likewise. | |
16144 | (arm_hwbp_control_is_initialized): Likewise. | |
16145 | (arm_hwbp_control_disable): Likewise. | |
16146 | (arm_linux_hw_breakpoint_equal): Likewise. | |
16147 | (arm_linux_hw_point_initialize): Likewise. | |
16148 | (struct update_registers_data): New data structure. | |
16149 | (update_registers_callback: New function. | |
16150 | (arm_insert_point): Likewise. | |
16151 | (arm_remove_point): Likewise. | |
16152 | (arm_stopped_by_watchpoint): Likewise. | |
16153 | (arm_stopped_data_address): Likewise. | |
16154 | (arm_new_process): Likewise. | |
16155 | (arm_new_thread): Likewise. | |
16156 | (arm_prepare_to_resume): Likewise. | |
16157 | (the_low_target): Register arm_insert_point, arm_remove_point, | |
16158 | arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process, | |
16159 | arm_new_thread, and arm_prepare_to_resume. | |
16160 | ||
6b9801d4 SS |
16161 | 2011-09-15 Stan Shebs <stan@codesourcery.com> |
16162 | ||
16163 | * server.h (struct emit_ops): Add compare-goto fields. | |
16164 | * tracepoint.c (gdb_agent_op_sizes): New table. | |
16165 | (emit_eq_goto): New function. | |
16166 | (emit_ne_goto): New function. | |
16167 | (emit_lt_goto): New function. | |
16168 | (emit_le_goto): New function. | |
16169 | (emit_gt_goto): New function. | |
16170 | (emit_ge_goto): New function. | |
16171 | (is_goto_target): New function. | |
16172 | (compile_bytecodes): Recognize special cases of compare-goto | |
16173 | combinations and call specialized emitters for them. | |
16174 | * linux-x86-low.c (amd64_emit_eq_goto): New function. | |
16175 | (amd64_emit_ne_goto): New function. | |
16176 | (amd64_emit_lt_goto): New function. | |
16177 | (amd64_emit_le_goto): New function. | |
16178 | (amd64_emit_gt_goto): New function. | |
16179 | (amd64_emit_ge_goto): New function. | |
16180 | (amd64_emit_ops): Add the new functions. | |
16181 | (i386_emit_eq_goto): New function. | |
16182 | (i386_emit_ne_goto): New function. | |
16183 | (i386_emit_lt_goto): New function. | |
16184 | (i386_emit_le_goto): New function. | |
16185 | (i386_emit_gt_goto): New function. | |
16186 | (i386_emit_ge_goto): New function. | |
16187 | (i386_emit_ops): Add the new functions. | |
16188 | ||
bf15cbda SS |
16189 | 2011-09-08 Stan Shebs <stan@codesourcery.com> |
16190 | ||
16191 | * linux-x86-low.c (i386_emit_prologue): Save %ebx. | |
16192 | (i386_emit_epilogue): Restore %ebx. | |
16193 | ||
943ca1dd JZ |
16194 | 2011-08-31 Jie Zhang <jzhang918@gmail.com> |
16195 | ||
16196 | * server.c (step_thread): Remove definition. | |
16197 | (process_serial_event): Don't handle Hs. | |
16198 | * server.h (step_thread): Remove declaration. | |
16199 | * target.c (set_desired_inferior): Remove use of step_thread. | |
16200 | ||
e3deef73 LM |
16201 | 2011-08-24 Luis Machado <lgustavo@codesourcery.com> |
16202 | ||
16203 | * linux-low.c: Include linux-procfs.h. | |
16204 | (linux_attach_lwp_1): Update comments. | |
16205 | (linux_attach): Scan for existing threads when attaching to a | |
16206 | process that is the tgid. | |
16207 | * Makefile.in: Update dependencies. | |
16208 | ||
13da1c97 LM |
16209 | 2011-08-24 Luis Machado <lgustavo@codesourcery.com> |
16210 | ||
16211 | * configure.srv: Add linux-procfs.o dependencies. | |
16212 | ||
881127c9 YQ |
16213 | 2011-08-14 Yao Qi <yao@codesourcery.com> |
16214 | ||
16215 | * target.h (struct target_ops): Fix indent. | |
16216 | * win32-low.c (win32_target_ops): Fix comment. | |
16217 | ||
58dbd541 YQ |
16218 | 2011-08-14 Andrew Jenner <andrew@codesourcery.com> |
16219 | Yao Qi <yao@codesourcery.com> | |
16220 | ||
16221 | * Makefile.in (clean): Remove tic6x-*.c files. | |
16222 | (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules. | |
16223 | (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise. | |
16224 | (tic6x-c64xp-linux.c): Likewise. | |
16225 | * configure.srv: Add support for tic6x-*-uclinux. | |
16226 | * linux-tic6x-low.c: New. | |
16227 | * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define. | |
16228 | ||
78d85199 YQ |
16229 | 2011-08-14 Andrew Stubbs <ams@codesourcery.com> |
16230 | Yao Qi <yao@codesourcery.com> | |
16231 | ||
16232 | * target.h (struct target_ops): Add read_loadmap. | |
16233 | * linux-low.c (struct target_loadseg): New type. | |
16234 | (struct target_loadmap): New type. | |
16235 | (linux_read_loadmap): New function. | |
16236 | (linux_target_ops): Add linux_read_loadmap. | |
16237 | * server.c (handle_query): Support qXfer:fdpic:read packet. | |
43aaf8b6 PA |
16238 | * win32-low.c (win32_target_ops): Initialize field `read_loadmap' |
16239 | to NULL. | |
78d85199 | 16240 | |
a959a88d EZ |
16241 | 2011-08-05 Eli Zaretskii <eliz@gnu.org> |
16242 | ||
16243 | * win32-low.c: Include <stdint.h>. | |
16244 | ||
1ced966e PA |
16245 | 2011-07-22 Pedro Alves <pedro@codesourcery.com> |
16246 | ||
16247 | * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info | |
16248 | to the inferior here. | |
16249 | (i386_remove_aligned_watchpoint): Ditto. | |
16250 | (i386_handle_nonaligned_watchpoint): Return immediate on fail to | |
16251 | fit part of the watchpoint in the debug registers. | |
16252 | (i386_update_inferior_debug_regs): New. | |
16253 | (i386_low_insert_watchpoint): Work on a local mirror of the debug | |
16254 | registers, and only update the inferior on success. | |
16255 | (i386_low_remove_watchpoint): Ditto. | |
16256 | ||
d26e3629 KY |
16257 | 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com> |
16258 | ||
16259 | * linux-low.c (compare_ints, unique, list_threads, show_process, | |
16260 | linux_core_of_thread): Delete. | |
16261 | (linux_target_ops): Change linux_core_of_thread to | |
16262 | linux_common_core_of_thread. | |
16263 | (linux_qxfer_osdata): Defer to linux_common_xfer_osdata. | |
16264 | * utils.c (malloc_failure): Change type of argument. | |
16265 | (xmalloc, xrealloc, xcalloc, xsnprintf): Delete. | |
16266 | * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c, | |
16267 | common/linux-osdata.c, common/ptid.c and common/buffer.c. | |
16268 | (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o. | |
16269 | (IPA_OBJS): Add common-utils-ipa.o. | |
16270 | (ptid_h, linux_osdata_h): New macros. | |
16271 | (server_h): Add common/common-utils.h, common/xml-utils.h, | |
16272 | common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and | |
16273 | common/ptid.h. | |
16274 | (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o, | |
16275 | ptid.o, buffer.o): New rules. | |
16276 | (linux-low.o): Add common/linux-osdata.h as a dependency. | |
16277 | * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets. | |
16278 | * configure.ac: Add AC_HEADER_DIRENT check. | |
16279 | * config.in: Regenerate. | |
16280 | * configure: Regenerate. | |
16281 | * remote-utils.c (xml_escape_text): Delete. | |
16282 | (buffer_grow, buffer_free, buffer_init, buffer_finish, | |
16283 | buffer_xml_printf): Move to common/buffer.c. | |
16284 | * server.c (main): Remove call to initialize_inferiors. | |
16285 | * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid, | |
16286 | ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid, | |
16287 | ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text, | |
16288 | internal_error, gdb_assert, gdb_assert_fail): Delete. | |
16289 | (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish, | |
16290 | buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to | |
16291 | common/buffer.h. | |
16292 | * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid, | |
16293 | ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid, | |
16294 | initialize_inferiors): Delete. | |
16295 | ||
2275a1a7 PA |
16296 | 2011-07-20 Pedro Alves <pedro@codesourcery.com> |
16297 | ||
16298 | * tracepoint.c (tracepoint_look_up_symbols): Return upon the first | |
16299 | symbol error. | |
16300 | ||
0a5b1e09 PA |
16301 | 2011-05-31 Pedro Alves <pedro@codesourcery.com> |
16302 | ||
16303 | * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in | |
16304 | assertion. | |
16305 | * win32-i386-low.c (i386_dr_low_get_addr): Ditto. | |
16306 | ||
6938fd34 YQ |
16307 | 2011-05-26 Yao Qi <yao@codesourcery.com> |
16308 | ||
16309 | * Makefile.in (thread-db.o): Track dependence to | |
16310 | common/gdb_thread_db.h. | |
16311 | * thread-db.c: include gdb_thread_db.h from right place. | |
16312 | ||
b481f9e0 TT |
16313 | 2011-05-16 Adrian Cornish <gnu@bluedreamer.com> |
16314 | ||
16315 | * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass | |
16316 | __FILE__ and __LINE__ to internal_error. | |
16317 | ||
98a5dd13 DE |
16318 | 2011-05-13 Doug Evans <dje@google.com> |
16319 | ||
16320 | * thread-db.c (try_thread_db_load_from_sdir): New function. | |
16321 | (try_thread_db_load_from_dir): New function. | |
16322 | (thread_db_load_search): Handle $sdir, ignore $pdir. | |
16323 | Remove trying of system directories if search of | |
16324 | libthread-db-search-path fails, that is now done via $sdir. | |
16325 | ||
d248b706 KY |
16326 | 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com> |
16327 | ||
16328 | * server.c (handle_query): Add EnableDisableTracepoints to the list | |
16329 | of supported features. | |
43aaf8b6 | 16330 | * tracepoint.c (clear_installed_tracepoints): Uninstall disabled |
d248b706 | 16331 | tracepoints. |
43aaf8b6 PA |
16332 | (cmd_qtenable_disable): New. |
16333 | (cmd_qtstart): Install tracepoints even if disabled. | |
16334 | (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on | |
16335 | receiving a QTEnable or QTDisable packet. | |
16336 | (gdb_collect): Skip data collection if fast tracepoint is disabled. | |
16337 | (ust_marker_to_static_tracepoint): Do not ignore disabled static | |
16338 | tracepoints. | |
16339 | (gdb_probe): Skip data collection if static tracepoint is disabled. | |
d248b706 | 16340 | |
84e578fb DE |
16341 | 2011-05-10 Doug Evans <dje@google.com> |
16342 | ||
16343 | * thread-db.c (thread_db_handle_monitor_command): Handle elided path. | |
16344 | ||
71f55dd8 DE |
16345 | 2011-05-04 Doug Evans <dje@google.com> |
16346 | ||
16347 | * linux-low.c (linux_join): Skip process lookup. | |
16348 | * spu-low.c (spu_join): Ditto. | |
16349 | * server.c (join_inferiors_callback): Delete. | |
16350 | (process_serial_event): For 'D' packet (detach) call join_inferior | |
16351 | directly. | |
16352 | ||
4d393d60 JM |
16353 | 2011-05-04 Joseph Myers <joseph@codesourcery.com> |
16354 | ||
16355 | * README: Don't mention xscale*-*-linux*. | |
16356 | * configure.srv (xscale*-*-linux*): Don't handle target. | |
16357 | ||
b00ad6ff NF |
16358 | 2011-04-27 Nathan Froyd <froydnj@codesourcery.com> |
16359 | ||
16360 | * linux-x86-low.c (amd64_emit_const): Call memcpy instead of | |
16361 | casting pointers. | |
16362 | (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2): | |
16363 | (i386_emit_const, i386_emit_reg, i386_emit_int_call_1): | |
16364 | (i386_emit_void_call_2): Likewise. | |
16365 | ||
af96c192 YQ |
16366 | 2011-04-26 Yao Qi <yao@codesourcery.com> |
16367 | ||
43aaf8b6 PA |
16368 | * linux-low.c: Move common macros to linux-ptrace.h. |
16369 | Include linux-ptrace.h. | |
af96c192 YQ |
16370 | * Makefile.in (linux_ptrace_h): New. |
16371 | (linux-low.o): Depends on linux-ptrace.h. | |
16372 | ||
03f2bd59 JK |
16373 | 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com> |
16374 | ||
16375 | * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if | |
16376 | RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call. | |
16377 | (remote_prepare): New function with most of the TCP code from ... | |
16378 | (remote_open): ... here. Detect PORT here unconditionally. Move also | |
16379 | setting transport_is_reliable. | |
16380 | * server.c (run_once): New variable. | |
16381 | (gdbserver_usage): Document it. | |
16382 | (main): Set run_once for `--once'. Call remote_prepare. Exit after | |
16383 | the first run if RUN_ONCE. | |
16384 | * server.h (run_once, remote_prepare): New declarations. | |
16385 | ||
7a9dd1b2 TT |
16386 | 2011-04-19 Tom Tromey <tromey@redhat.com> |
16387 | ||
16388 | * win32-low.c (handle_load_dll): Remove duplicate "the". | |
16389 | ||
81239425 PM |
16390 | 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr> |
16391 | ||
16392 | Remove support for old Cygwin 1.5 versions. | |
16393 | * win32-low.c (win32_create_inferior): Use new cygwin_path_list | |
16394 | function to avoid warning. | |
16395 | (win32_add_one_solib): Use cygwin_conv_path function to avoid | |
16396 | warning. | |
16397 | ||
9e0627f1 PM |
16398 | 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr> |
16399 | ||
16400 | * gdbserver/server.h (Macro _): Define it if not available. | |
16401 | ||
588eebee MS |
16402 | 2011-03-14 Michael Snyder <msnyder@vmware.com> |
16403 | ||
348af9f7 | 16404 | * hostio.c (handle_close): Remove unnecessary null test. |
588eebee | 16405 | |
43f70d4c JB |
16406 | 2011-03-10 Joel Brobecker <brobecker@adacore.com> |
16407 | ||
16408 | * Makefile.in (maintainer-clean realclean distclean): Remove | |
16409 | "make ... subdir_do" command. | |
16410 | ||
348af9f7 MS |
16411 | 2011-03-10 Michael Snyder <msnyder@vmware.com> |
16412 | ||
16413 | * tracepoint.c (tracepoint_finish_step): Fix loop variable. | |
16414 | ||
16415 | * server.c (handle_v_run): Free alloced buffer on early return. | |
16416 | ||
e637a4f5 YQ |
16417 | 2011-03-09 Yao Qi <yao@codesourcery.com> |
16418 | ||
16419 | Revert: | |
16420 | 2011-03-04 Yao Qi <yao@codesourcery.com> | |
16421 | ||
16422 | * Makefile.in: Remove GNU make feature --directory. | |
16423 | ||
16424 | 2011-03-05 Yao Qi <yao@codesourcery.com> | |
16425 | ||
16426 | * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable. | |
16427 | (subdir_do): New make target. Copied from gdb/Makefile. | |
16428 | (maintainer-clean, realclean, distclean, clean): Call corresponding | |
16429 | make targets in common/Makefile. | |
16430 | ||
16431 | 2011-02-11 Yao Qi <yao@codesourcery.com> | |
16432 | ||
16433 | * configure.ac: Call AC_PROG_RANLIB. | |
16434 | * Makefile.in: Remove signals.o from OBS. Link libcommon.a. | |
16435 | * configure: Regenerate. | |
16436 | ||
e6edda56 JK |
16437 | 2011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com> |
16438 | ||
16439 | * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically. | |
16440 | ||
e5141119 JB |
16441 | 2011-03-06 Yao Qi <yao@codesourcery.com> |
16442 | ||
16443 | * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR). | |
16444 | ||
64794aa4 JB |
16445 | 2011-03-05 Yao Qi <yao@codesourcery.com> |
16446 | ||
16447 | * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable. | |
16448 | (subdir_do): New make target. Copied from gdb/Makefile. | |
16449 | (maintainer-clean, realclean, distclean, clean): Call corresponding | |
16450 | make targets in common/Makefile. | |
16451 | ||
7a762829 YQ |
16452 | 2011-03-04 Yao Qi <yao@codesourcery.com> |
16453 | ||
16454 | * Makefile.in: Remove GNU make feature --directory. | |
16455 | ||
348af9f7 MS |
16456 | 2011-03-04 Michael Snyder <msnyder@vmware.com> |
16457 | ||
16458 | * server.c (queue_stop_reply): Call xmalloc not malloc. | |
16459 | ||
16460 | 2011-03-02 Michael Snyder <msnyder@vmware.com> | |
16461 | ||
16462 | * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc. | |
16463 | ||
9f72fee2 MS |
16464 | 2011-02-28 Michael Snyder <msnyder@vmware.com> |
16465 | ||
588eebee MS |
16466 | * tracepoint.c (cmd_qtv): Discard unused value 'packet'. |
16467 | (cmd_qtframe): Ditto. | |
16468 | (cmd_qtbuffer): Ditto. | |
16469 | (cmd_bigqtbuffer): Ditto. | |
16470 | ||
9f72fee2 MS |
16471 | * utils.c (decimal2str): Initialize 'width' to nine, then |
16472 | don't mess with it. | |
16473 | ||
8040bd49 UW |
16474 | 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com> |
16475 | ||
16476 | * hostio.c (require_data): Free *data, not data. | |
16477 | ||
7e52cbd0 JK |
16478 | 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
16479 | ||
16480 | * hostio.c (require_data): Use free, not xfree. | |
16481 | ||
9130f83e MS |
16482 | 2011-02-27 Michael Snyder <msnyder@vmware.com> |
16483 | ||
4b812f4e MS |
16484 | * server.c (handle_query): Discard unused value. |
16485 | ||
9130f83e MS |
16486 | * hostio.c (require_data): Free malloc memory before returning |
16487 | error. | |
16488 | ||
69d37113 MS |
16489 | 2011-02-26 Michael Snyder <msnyder@vmware.com> |
16490 | ||
16491 | * linux-low.c (list_threads): Call closedir for dirent. | |
16492 | ||
35f5825a MS |
16493 | 2011-02-27 Michael Snyder <msnyder@vmware.com> |
16494 | ||
2a589cef MS |
16495 | * i386-low.c (i386-length_and_rw_bits): Comment the fact that |
16496 | a case statement falls through. | |
16497 | ||
0adea5f7 MS |
16498 | * linux-low.c (linux_xfer_siginfo): Fix fencepost error. |
16499 | ||
35f5825a MS |
16500 | * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error |
16501 | in comparison. | |
16502 | ||
238f1c74 MS |
16503 | 2011-02-26 Michael Snyder <msnyder@vmware.com> |
16504 | ||
16505 | * utils.c (decimal2str): Eliminate dead code and dead param. | |
16506 | (pulongest): Drop dead param from call to decimal2str. | |
16507 | (plongest): Ditto. | |
16508 | ||
633ff500 JB |
16509 | 2011-02-24 Joel Brobecker <brobecker@adacore.com> |
16510 | ||
16511 | Revert the following patch (not approved yet): | |
16512 | 2011-02-21 Hui Zhu <teawater@gmail.com> | |
16513 | * tracepoint.c (tp_printf): New function. | |
16514 | (eval_agent_expr): Handle gdb_agent_op_printf. | |
16515 | ||
f9c6ff72 HZ |
16516 | 2011-02-21 Hui Zhu <teawater@gmail.com> |
16517 | ||
16518 | * tracepoint.c (tp_printf): New function. | |
16519 | (eval_agent_expr): Handle gdb_agent_op_printf. | |
16520 | ||
94d5e490 TT |
16521 | 2011-02-18 Tom Tromey <tromey@redhat.com> |
16522 | ||
16523 | * Makefile.in (tracepoint-ipa.o): Depend on ax.def. | |
16524 | (tracepoint.o): Likewise. | |
16525 | * tracepoint.c (enum gdb_agent_op): Use ax.def. | |
16526 | (gdb_agent_op_names): Likewise. | |
16527 | ||
c7f96d2b TT |
16528 | 2011-02-18 Tom Tromey <tromey@redhat.com> |
16529 | ||
16530 | * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick, | |
16531 | gdb_agent_op_rot>: New constants. | |
16532 | (gdb_agent_op_names): Add pick and roll. | |
16533 | (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New | |
16534 | cases. | |
16535 | ||
0feedb2c JK |
16536 | 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com> |
16537 | ||
16538 | * aclocal.m4: Regenerated with aclocal-1.11.1. | |
16539 | ||
b3b9301e PA |
16540 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
16541 | ||
16542 | * server.c (handle_qxfer_traceframe_info): New. | |
16543 | (qxfer_packets): Register "traceframe-info". | |
16544 | (handle_query): Report support for qXfer:traceframe-info:read+. | |
16545 | * tracepoint.c (match_blocktype): New. | |
16546 | (traceframe_find_block_type): Rename to ... | |
16547 | (traceframe_walk_blocks): ... this. Add callback filter argument, | |
16548 | and use it. | |
16549 | (traceframe_find_block_type): New, reimplemented on top of | |
16550 | traceframe_walk_blocks. | |
16551 | (build_traceframe_info_xml): New. | |
16552 | (traceframe_read_info): New. | |
16553 | * server.h (traceframe_read_info): Declare. | |
16554 | ||
4f3e6fb7 YQ |
16555 | 2011-02-11 Yao Qi <yao@codesourcery.com> |
16556 | ||
16557 | * configure.ac: Call AC_PROG_RANLIB. | |
16558 | * Makefile.in: Remove signals.o from OBS. Link libcommon.a. | |
16559 | * configure: Regenerate. | |
16560 | ||
764880b7 PA |
16561 | 2011-02-07 Pedro Alves <pedro@codesourcery.com> |
16562 | ||
16563 | * server.c (gdb_read_memory): Change return semantics to allow | |
16564 | partial transfers. | |
16565 | (handle_search_memory_1): Adjust. | |
16566 | (process_serial_event) <'m' packet>: Handle partial transfers. | |
16567 | * tracepoint.c (traceframe_read_mem): Handle partial transfers. | |
16568 | ||
1c79eb8a PA |
16569 | 2011-01-28 Pedro Alves <pedro@codesourcery.com> |
16570 | ||
16571 | * regcache.c (init_register_cache): Initialize | |
16572 | regcache->register_status. | |
16573 | (free_register_cache): Release regcache->register_status. | |
16574 | (regcache_cpy): Copy register_status. | |
16575 | (registers_to_string): Print 'x's for unavailable registers. | |
16576 | (supply_register): Mark the register's status valid or | |
16577 | unavailable, depending on whether a buffer was passed in or not. | |
16578 | (supply_register_zeroed): New. | |
16579 | (supply_regblock): Mark the registers' status valid or | |
16580 | unavailable, depending on whether a buffer was passed in or not. | |
16581 | * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines. | |
16582 | (struct regcache): New `register_status' field. | |
16583 | (supply_register_zeroed): Declare. | |
16584 | * i387-fp.c (i387_xsave_to_cache): Zero out registers using | |
16585 | supply_register_zeroed, rather than passing a NULL buffer to | |
16586 | supply_register. | |
16587 | * tracepoint.c (fetch_traceframe_registers): Update comment. | |
16588 | ||
85724a0e PA |
16589 | 2011-01-28 Pedro Alves <pedro@codesourcery.com> |
16590 | ||
16591 | * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register | |
16592 | buffer explicit. | |
16593 | ||
d08aafef PA |
16594 | 2011-01-25 Pedro Alves <pedro@codesourcery.com> |
16595 | ||
16596 | * server.h (decode_xfer_write): Change prototype. | |
16597 | * remote-utils.c (decode_xfer_write): Remove `annex' parameter, | |
16598 | and don't extract the annex here. | |
16599 | * server.c (decode_xfer_read): Remove `annex' parameter, | |
16600 | and don't extract the annex here. | |
16601 | (decode_xfer): New. | |
16602 | (struct qxfer): New. | |
16603 | (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries) | |
16604 | (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu) | |
16605 | (handle_qxfer_statictrace): New functions, abstracted out from | |
16606 | handle_query, and made to use the struct qxfer interface. | |
16607 | (handle_threads_qxfer_proper): Rename to ... | |
16608 | (handle_qxfer_threads_proper): ... this. | |
16609 | (handle_threads_qxfer): Rename to ... | |
16610 | (handle_qxfer_threads): ... this. Adjust. | |
16611 | (qxfer_packets): New array. | |
16612 | (handle_qxfer): New function. | |
16613 | (handle_query): Use handle_qxfer. | |
16614 | ||
493e2a69 MS |
16615 | 2011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com> |
16616 | ||
16617 | * gdbreplay.c: Shorten lines of >= 80 columns. | |
16618 | * linux-low.c: Ditto. | |
16619 | * linux-ppc-low.c: Ditto. | |
16620 | * linux-s390-low.c: Ditto. | |
16621 | * linux-sparc-low.c: Ditto. | |
16622 | * linux-x86-low.c: Ditto. | |
16623 | * linux-xtensa-low.c: Ditto. | |
16624 | * mem-break.c: Ditto. | |
16625 | * nto-low.c: Ditto. | |
16626 | * regcache.h: Ditto. | |
16627 | * remote-utils.c: Ditto. | |
16628 | * server.c: Ditto. | |
16629 | * server.h: Ditto. | |
16630 | * thread-db.c: Ditto. | |
16631 | * tracepoint.c: Ditto. | |
16632 | * utils.c: Ditto. | |
16633 | * win32-low.h: Ditto. | |
16634 | ||
44944448 JB |
16635 | 2011-01-05 Joel Brobecker <brobecker@adacore.com> |
16636 | ||
16637 | * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year | |
16638 | update. | |
16639 | ||
71ce852c JB |
16640 | 2011-01-01 Joel Brobecker <brobecker@adacore.com> |
16641 | ||
16642 | * server.c (gdbserver_version): Update copyright year in version | |
16643 | output. | |
16644 | * gdbreplay.c (gdbreplay_version): Ditto. | |
16645 | ||
eb826dc6 MF |
16646 | 2010-12-29 Jie Zhang <jie.zhang@analog.com> |
16647 | ||
16648 | * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets. | |
16649 | * linux-bfin-low.c: New file. | |
16650 | * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and | |
16651 | PT_DATA_ADDR for BFIN targets. | |
16652 | * Makefile.in (SFILES): Add linux-bfin-low.c. | |
16653 | (clean): Remove reg-bfin.c. | |
16654 | (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets. | |
16655 | * README: Mention supported Blackfin targets. | |
16656 | ||
39ab222a MF |
16657 | 2010-12-23 Mike Frysinger <vapier@gentoo.org> |
16658 | ||
16659 | * .gitignore: New file. | |
16660 | ||
a1f2ce7d MF |
16661 | 2010-11-16 Mike Frysinger <vapier@gentoo.org> |
16662 | ||
16663 | * linux-low.c (linux_tracefork_child): Add char* cast to arg. | |
16664 | ||
f474844c JZ |
16665 | 2010-10-22 Jie Zhang <jie@codesourcery.com> |
16666 | ||
16667 | * Makefile.in: Add FLAGS_TO_PASS variable. | |
16668 | (install): Remove dependency of install-only and recursively | |
16669 | invoke make for install-only. | |
16670 | ||
f1048712 DE |
16671 | 2010-10-04 Doug Evans <dje@google.com> |
16672 | ||
16673 | * Makefile.in (uninstall): Use $(DESTDIR). | |
16674 | ||
b53a1623 PA |
16675 | 2010-09-24 Pedro Alves <pedro@codesourcery.com> |
16676 | ||
e6ee044d PA |
16677 | PR gdb/11842 |
16678 | ||
b53a1623 PA |
16679 | * linux-x86-low.c (compat_siginfo_from_siginfo) |
16680 | (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when | |
16681 | si_code is < 0. Check for si_code == SI_TIMER before checking for | |
16682 | si_code < 0. | |
16683 | ||
fa1bd1e4 JB |
16684 | 2010-09-13 Joel Brobecker <brobecker@adacore.com> |
16685 | ||
16686 | * lynx-i386-low.c: New file. | |
16687 | * configure.srv: Add handling of i[34567]86-*-lynxos* targets. | |
16688 | ||
47fac8f8 JB |
16689 | 2010-09-13 Joel Brobecker <brobecker@adacore.com> |
16690 | ||
16691 | * lynx-low.c (ptrace_request_to_str): Remove handling for | |
16692 | request values that have been removed in LynxOS 5.x. | |
16693 | ||
1adfc54d JB |
16694 | 2010-09-13 Joel Brobecker <brobecker@adacore.com> |
16695 | ||
16696 | * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of | |
16697 | <ptrace.h> | |
16698 | ||
c2a66c29 NS |
16699 | 2010-09-09 Nathan Sidwell <nathan@codesourcery.com> |
16700 | ||
16701 | * configure.ac: Add --enable-inprocess-agent option. | |
16702 | * configure: Rebuilt. | |
16703 | ||
32fcada3 YQ |
16704 | 2010-09-06 Yao Qi <yao@codesourcery.com> |
16705 | ||
16706 | * linux-low.c (linux_kill): Remove unused variable. | |
16707 | (linux_stabilize_threads): Likewise. | |
16708 | * server.c (start_inferior): Likewise. | |
16709 | (queue_stop_reply_callback): Likewise. | |
16710 | * tracepoint.c (do_action_at_tracepoint): Likewise. | |
16711 | ||
0cccb683 YQ |
16712 | 2010-09-06 Yao Qi <yao@codesourcery.com> |
16713 | ||
16714 | * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior | |
16715 | on return. | |
16716 | ||
423ec54c JK |
16717 | 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com> |
16718 | ||
16719 | * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER. | |
16720 | ||
12ac6819 PA |
16721 | 2010-09-06 Pedro Alves <pedro@codesourcery.com> |
16722 | ||
16723 | * Makefile.in (install-only): Replace $IPA_DEPFILES with | |
16724 | "$(IPA_DEPFILES)". | |
16725 | ||
8ed54b31 JB |
16726 | 2010-09-01 Joel Brobecker <brobecker@adacore.com> |
16727 | ||
16728 | * gdbserver/lynx-low.c, gdbserver/lynx-low.h, | |
16729 | gdbserver/lynx-ppc-low.c: New files. | |
16730 | * Makefile.in (lynx_low_h): New variable. | |
16731 | (lynx-low.o, lynx-ppc-low.o): New rules. | |
16732 | * configure.ac: On LynxOS, link with -lnetinet. | |
16733 | * configure.srv: Add handling of powerpc-*-lynxos* targets. | |
16734 | * configure: regenerate. | |
16735 | ||
bb0116a4 JB |
16736 | 2010-09-01 Joel Brobecker <brobecker@adacore.com> |
16737 | ||
16738 | * Makefile.in (vasprintf.o, vsnprintf.o): New rules. | |
16739 | * configure.ac: Add check for vasprintf and vsnprintf. | |
16740 | * configure, config.in: Regenerate. | |
16741 | * server.h (vasprintf, vsnprintf): Add conditional declarations. | |
16742 | ||
a778ab81 | 16743 | 2010-09-01 Joel Brobecker <brobecker@adacore.com> |
16744 | ||
16745 | * gdbreplay.c: Move include of alloca.h up, next to include of | |
16746 | malloc.h. | |
16747 | * server.h: Add include of malloc.h. | |
16748 | * mem-break.c: Remove include of malloc.h. | |
16749 | * server.c, tracepoint.c, utils.c, win32-low.c: Likewise. | |
16750 | ||
8b034a19 | 16751 | 2010-09-01 Joel Brobecker <brobecker@adacore.com> |
16752 | ||
16753 | * Makefile.in (memmem.o): Build with -Wno-error. | |
16754 | ||
16755 | 2010-09-01 Joel Brobecker <brobecker@adacore.com> | |
16756 | ||
16757 | * utils.c (xsnprintf): Make non-static. | |
16758 | * server.h: Add xsnprintf declaration. | |
16759 | * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c: | |
16760 | replace calls to snprintf by calls to xsnprintf throughout. | |
16761 | ||
16762 | 2010-09-01 Joel Brobecker <brobecker@adacore.com> | |
16763 | ||
16764 | * configure.ac: Add configure check for alloca. | |
16765 | * configure, config.in: Regenerate. | |
16766 | * server.h: Include alloca.h if it exists. | |
16767 | * gdbreplay.c: Include alloca.h if it exists. | |
16768 | ||
1a981360 PA |
16769 | 2010-08-28 Pedro Alves <pedro@codesourcery.com> |
16770 | ||
16771 | * linux-low.c (__SIGRTMIN): Define if not already defined. | |
16772 | (linux_create_inferior): Check for __ANDROID__ rather than | |
16773 | __SIGRTMIN. | |
16774 | (enqueue_one_deferred_signal): Don't requeue non-RT signals that | |
16775 | are already deferred. | |
16776 | (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN. | |
16777 | (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is | |
16778 | stopped and already has a pending signal to report. | |
16779 | (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has | |
16780 | a pending signal to report or is moving out of a jump pad. | |
16781 | (linux_init_signals): Check for __ANDROID__ rather than | |
16782 | __SIGRTMIN. | |
16783 | ||
b4d51a55 PA |
16784 | 2010-08-28 Pedro Alves <pedro@codesourcery.com> |
16785 | ||
16786 | * linux-low.c (linux_stabilize_threads): Wrap debug output in a | |
16787 | debug_threads check. Avoid a linear search when not doing debug | |
16788 | output. | |
16789 | ||
ec48365d PA |
16790 | 2010-08-27 Pedro Alves <pedro@codesourcery.com> |
16791 | ||
16792 | * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t. | |
16793 | (struct gdb_event) <fd>: Change type to gdb_fildes_t. | |
16794 | (struct file_handler) <fd>: Change type to gdb_fildes_t. | |
16795 | (process_event): Change local fd's type to gdb_fildes_t. | |
16796 | (create_file_handler): Adjust prototype. | |
16797 | (delete_file_handler): Adjust prototype. | |
16798 | (handle_file_event): Adjust prototype. Use pfildes. | |
16799 | (create_file_event): Adjsut prototype. | |
16800 | * remote-utils.c (remote_desc, listen_desc): Change type to | |
16801 | gdb_fildes_t. | |
16802 | * server.h: New gdb_fildes_t typedef. | |
16803 | [USE_WIN32API]: Include winsock2.h. | |
16804 | (delete_file_handler, add_file_handler): Adjust prototypes. | |
16805 | (pfildes): Declare. | |
16806 | * utils.c (pfildes): New. | |
16807 | ||
854d88f0 PA |
16808 | 2010-08-27 Pedro Alves <pedro@codesourcery.com> |
16809 | ||
16810 | * configure.ac (build_warnings): Add -Wno-char-subscripts. | |
16811 | * configure: Regenerate. | |
16812 | ||
0146f85b PA |
16813 | 2010-08-27 Pedro Alves <pedro@codesourcery.com> |
16814 | ||
16815 | * linux-low.c (linux_unprepare_to_access_memory): Rename to ... | |
16816 | (linux_done_accessing_memory): ... this. | |
16817 | (linux_target_ops): Adjust. | |
16818 | * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust. | |
16819 | * nto-low.c (nto_target_ops): Adjust comment. | |
16820 | * server.c (gdb_read_memory, gdb_write_memory): Adjust. | |
16821 | * spu-low.c (spu_target_ops): Adjust comment. | |
16822 | * target.h (target_ops): Rename unprepare_to_access_memory field | |
16823 | to done_accessing_memory. | |
16824 | (unprepare_to_access_memory): Rename to ... | |
16825 | (done_accessing_memory): ... this. | |
16826 | ||
90d74c30 PA |
16827 | 2010-08-26 Pedro Alves <pedro@codesourcery.com> |
16828 | ||
16829 | * linux-low.c (linux_prepare_to_access_memory): New. | |
16830 | (linux_unprepare_to_access_memory): New. | |
16831 | (linux_target_ops): Install them. | |
16832 | * server.c (read_memory): Rename to ... | |
16833 | (gdb_read_memory): ... this. Use | |
16834 | prepare_to_access_memory/prepare_to_access_memory. | |
16835 | (write_memory): Rename to ... | |
16836 | (gdb_write_memory): ... this. Use | |
16837 | prepare_to_access_memory/prepare_to_access_memory. | |
16838 | (handle_search_memory_1): Adjust. | |
16839 | (process_serial_event): Adjust. | |
16840 | * target.h (struct target_ops): New fields | |
16841 | prepare_to_access_memory and unprepare_to_access_memory. | |
16842 | (prepare_to_access_memory, unprepare_to_access_memory): New. | |
16843 | * linux-x86-low.c (x86_insert_point, x86_remove_point): Use | |
16844 | prepare_to_access_memory/prepare_to_access_memory. | |
16845 | * nto-low.c (nto_target_ops): Adjust. | |
16846 | * spu-low.c (spu_target_ops): Adjust. | |
16847 | * win32-low.c (win32_target_ops): Adjust. | |
16848 | ||
fd467969 PA |
16849 | 2010-08-26 Pedro Alves <pedro@codesourcery.com> |
16850 | ||
16851 | * Makefile.in (WARN_CFLAGS): Get it from configure. | |
16852 | (WERROR_CFLAGS): New. | |
16853 | (INTERNAL_CFLAGS): Add WERROR_CFLAGS. | |
16854 | * configure.ac: Introduce --enable-werror, which adds -Werror to | |
16855 | the compiler command line. Enabled by default. Disable with | |
16856 | --disable-werror. Add -Wdeclaration-after-statement | |
16857 | Wpointer-arith and -Wformat-nonliteral to warning flags. | |
16858 | * configure: Regenerate. | |
16859 | ||
331e2f5f PA |
16860 | 2010-08-26 Pedro Alves <pedro@codesourcery.com> |
16861 | ||
16862 | * mem-break.c [HAVE_MALLOC_H]: Include malloc.h. | |
16863 | ||
e581f2b4 PA |
16864 | 2010-08-26 Pedro Alves <pedro@codesourcery.com> |
16865 | ||
16866 | * gdbreplay.c (remote_error): New. | |
16867 | (gdbchar): New. | |
16868 | (expect): Use gdbchar. Check for error reading from GDB. | |
16869 | Clarify sync error output. | |
16870 | (play): Check for errors writing to GDB. | |
16871 | * linux-low.c (sigchld_handler): Really ignore `write' errors. | |
16872 | * remote-utils.c (getpkt): Check for errors writing to the remote | |
16873 | descriptor. | |
16874 | ||
3c11dd79 PA |
16875 | 2010-08-25 Pedro Alves <pedro@codesourcery.com> |
16876 | ||
16877 | * linux-low.c (linux_wait_1): Move non-debugging code out of | |
16878 | `debug_threads' control. | |
16879 | ||
d20a8ad9 PA |
16880 | 2010-08-25 Pedro Alves <pedro@codesourcery.com> |
16881 | ||
16882 | * linux-low.c (linux_wait_1): Don't set last_status here. | |
16883 | * server.c (push_event, queue_stop_reply_callback): Assert we're | |
16884 | not pushing a TARGET_WAITKIND_IGNORE event. | |
16885 | (start_inferior, start_inferior, attach_inferior, handle_v_cont) | |
16886 | (myresume, handle_target_event): Set the thread's last_resume_kind | |
16887 | and last_status from the target returned status. | |
16888 | ||
964e4306 PA |
16889 | 2010-08-25 Pedro Alves <pedro@codesourcery.com> |
16890 | ||
16891 | PR threads/10729 | |
16892 | ||
16893 | * linux-x86-low.c (update_debug_registers_callback): New. | |
16894 | (i386_dr_low_set_addr): Use it. | |
16895 | (i386_dr_low_get_addr): New. | |
16896 | (i386_dr_low_set_control): Use update_debug_registers_callback. | |
16897 | (i386_dr_low_get_control): New. | |
16898 | (i386_dr_low_get_status): Adjust. | |
16899 | * linux-low.c (linux_stop_lwp): New. | |
16900 | * linux-low.h (linux_stop_lwp): Declare. | |
16901 | ||
16902 | * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as | |
16903 | argument instead of a i386_debug_reg_state. | |
16904 | (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of | |
16905 | a i386_debug_reg_state. | |
16906 | (i386_insert_aligned_watchpoint): Adjust. | |
16907 | (i386_remove_aligned_watchpoint): Adjust. | |
16908 | (i386_low_stopped_data_address): Read the debug registers from the | |
16909 | inferior instead of from the mirrors. | |
16910 | * i386-low.h (struct i386_debug_reg_state): Extend comment. | |
16911 | (i386_dr_low_get_addr): Declare. | |
16912 | (i386_dr_low_get_control): Declare. | |
16913 | (i386_dr_low_get_status): Change prototype. | |
16914 | ||
16915 | * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals. | |
16916 | (i386_dr_low_get_addr): New. | |
16917 | (i386_dr_low_get_control): New. | |
16918 | (i386_dr_low_get_status): Adjust prototype. Return | |
16919 | dr_status_mirror. | |
16920 | (i386_initial_stuff): Clear dr_status_mirror and | |
16921 | dr_control_mirror. | |
16922 | (i386_get_thread_context): Adjust. | |
16923 | (i386_set_thread_context): Adjust. | |
16924 | (i386_thread_added): Adjust. | |
16925 | ||
5f21a75b PA |
16926 | 2010-08-24 Pedro Alves <pedro@codesourcery.com> |
16927 | ||
16928 | * linux-low.h (linux_thread_area): Delete declaration. | |
16929 | ||
3e4c1235 TS |
16930 | 2010-08-11 Thomas Schwinge <thomas@codesourcery.com> |
16931 | ||
16932 | * linux-low.c (linux_wait_1): Correctly return the ptid of the child | |
16933 | after its termination. | |
16934 | ||
1971b033 PA |
16935 | 2010-08-09 Pedro Alves <pedro@codesourcery.com> |
16936 | ||
16937 | * linux-low.c (gdb_wants_lwp_stopped): Delete. | |
16938 | (gdb_wants_all_stopped): Delete. | |
16939 | (linux_wait_1): Don't call them. | |
16940 | * server.c (handle_v_cont): Tag all threads as want-stopped. | |
16941 | (gdb_wants_thread_stopped): Fix comments. Tag the thread that | |
16942 | stopped as "client-wants-stopped". | |
16943 | ||
310444ac PA |
16944 | 2010-07-31 Pedro Alves <pedro@codesourcery.com> |
16945 | ||
16946 | * Makefile.in (signals_h): New. | |
16947 | (server_h): Depend on it. | |
16948 | (server.o): Don't depend on $(signals_def). | |
16949 | (signals.o): Depend on $(signals_def). | |
16950 | ||
a19cae16 JK |
16951 | 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com> |
16952 | ||
16953 | * Makefile.in (signals_def): New. | |
16954 | (server_h): Append include/gdb/signals.h and signals_def. | |
16955 | (server.o): Append signals_def. | |
16956 | ||
30d50328 JK |
16957 | 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com> |
16958 | ||
16959 | * server.c (handle_target_event): Use target_signal_to_host for | |
16960 | resume_info.sig initialization. | |
16961 | * target.h (struct thread_resume) <sig>: New comment. | |
16962 | ||
5c3216e2 OS |
16963 | 2010-07-20 Ozkan Sezer <sezeroz@gmail.com> |
16964 | ||
c6f46ca0 OS |
16965 | * server.c (handle_query): strcpy() the returned string from paddress() |
16966 | instead of sprintf(). | |
5c3216e2 OS |
16967 | * utils.c (paddress): Return phex_nz(). |
16968 | ||
6bd31874 JB |
16969 | 2010-07-07 Joel Brobecker <brobecker@adacore.com> |
16970 | ||
16971 | * server.c (handle_v_cont): Call mourn_inferior if process | |
16972 | just exited. | |
16973 | (myresume): Likewise. | |
16974 | ||
0fb4aa4b PA |
16975 | 2010-07-01 Pedro Alves <pedro@codesourcery.com> |
16976 | ||
16977 | Static tracepoints, and integration with UST. | |
16978 | ||
16979 | * configure.ac: Handle --with-ust. substitute ustlibs and ustinc. | |
16980 | * mem-break.c (uninsert_all_breakpoints) | |
16981 | (reinsert_all_breakpoints): New. | |
16982 | * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints): | |
16983 | * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New. | |
16984 | (gdb_agent_ust_loaded, helper_thread_id) | |
16985 | (gdb_agent_helper_thread_id): New macros. | |
16986 | (struct ipa_sym_addresses): Add addr_ust_loaded, | |
16987 | addr_helper_thread_id, addr_cmd_buf. | |
16988 | (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf. | |
16989 | (in_process_agent_loaded_ust): New. | |
16990 | (write_e_ust_not_loaded): New. | |
16991 | (maybe_write_ipa_ust_not_loaded): New. | |
16992 | (struct collect_static_trace_data_action): New. | |
16993 | (enum tracepoint_type) <static_tracepoint>: New. | |
16994 | (struct tracepoint) <handle>: Mention static tracepoints. | |
16995 | (struct static_tracepoint_ctx): New. | |
16996 | (CMD_BUF_SIZE): New. | |
16997 | (add_tracepoint_action): Handle static tracepoint actions. | |
16998 | (unprobe_marker_at): New. | |
16999 | (clear_installed_tracepoints): Handle static tracepoints. | |
17000 | (cmd_qtdp): Handle static tracepoints. | |
17001 | (probe_marker_at): New. | |
17002 | (cmd_qtstart): Handle static tracepoints. | |
17003 | (response_tracepoint): Handle static tracepoints. | |
17004 | (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New. | |
17005 | (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat. | |
17006 | (get_context_regcache): Handle static tracepoints. | |
17007 | (do_action_at_tracepoint): Handle static tracepoint actions. | |
17008 | (traceframe_find_block_type): Handle static trace data blocks. | |
17009 | (traceframe_read_sdata): New. | |
17010 | (download_tracepoints): Download static tracepoint actions. | |
17011 | [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h. | |
17012 | (GDB_PROBE_NAME): New. | |
17013 | (ust_ops): New. | |
17014 | (GET_UST_SYM): New. | |
17015 | (USTF): New. | |
17016 | (dlsym_ust): New. | |
17017 | (ust_marker_to_static_tracepoint): New. | |
17018 | (gdb_probe): New. | |
17019 | (collect_ust_data_at_tracepoint): New. | |
17020 | (gdb_ust_probe): New. | |
17021 | (UNIX_PATH_MAX, SOCK_DIR): New. | |
17022 | (gdb_ust_connect_sync_socket): New. | |
17023 | (resume_thread, stop_thread): New. | |
17024 | (run_inferior_command): New. | |
17025 | (init_named_socket): New. | |
17026 | (gdb_ust_socket_init): New. | |
17027 | (cstr_to_hexstr): New. | |
17028 | (next_st): New. | |
17029 | (first_marker, next_marker): New. | |
17030 | (response_ust_marker): New. | |
17031 | (cmd_qtfstm, cmd_qtsstm): New. | |
17032 | (unprobe_marker_at, probe_marker_at): New. | |
17033 | (cmd_qtstmat, gdb_ust_thread): New. | |
17034 | (gdb_ust_init): New. | |
17035 | (initialize_tracepoint_ftlib): Call gdb_ust_init. | |
17036 | * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h | |
17037 | (ST_REGENTRY): New. | |
17038 | (x86_64_st_collect_regmap): New. | |
17039 | (X86_64_NUM_ST_COLLECT_GREGS): New. | |
17040 | (AMD64_RIP_REGNUM): New. | |
17041 | (supply_static_tracepoint_registers): New. | |
17042 | * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h | |
17043 | (ST_REGENTRY): New. | |
17044 | (i386_st_collect_regmap): New. | |
17045 | (i386_NUM_ST_COLLECT_GREGS): New. | |
17046 | (supply_static_tracepoint_registers): New. | |
17047 | * server.c (handle_query): Handle qXfer:statictrace:read. | |
17048 | <qSupported>: Report support for StaticTracepoints, and | |
17049 | qXfer:statictrace:read features. | |
17050 | * server.h (traceframe_read_sdata) | |
17051 | (supply_static_tracepoint_registers): Declare. | |
17052 | * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex) | |
17053 | (unpack_varlen_hex): Include in IPA build. | |
17054 | * Makefile.in (ustlibs, ustinc): New. | |
17055 | (IPA_OBJS): Add remote-utils-ipa.o. | |
17056 | ($(IPA_LIB)): Link -ldl and -lpthread. | |
17057 | (UST_CFLAGS): New. | |
17058 | (IPAGENT_CFLAGS): Add UST_CFLAGS. | |
17059 | * config.in, configure: Regenerate. | |
17060 | ||
9e4344e5 PA |
17061 | 2010-06-20 Ian Lance Taylor <iant@google.com> |
17062 | Pedro Alves <pedro@codesourcery.com> | |
17063 | ||
17064 | * linux-x86-low.c (always_true): Delete. | |
17065 | (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of | |
17066 | trying to fool the compiler with always_true. | |
17067 | ||
c6beb2cb PA |
17068 | 2010-06-20 Pedro Alves <pedro@codesourcery.com> |
17069 | ||
17070 | * tracepoint.c (condition_true_at_tracepoint): Don't run compiled | |
17071 | conditions in gdbserver. | |
17072 | ||
d2ed6730 UW |
17073 | 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com> |
17074 | ||
17075 | * spu-low.c (spu_read_memory): Wrap around local store limit. | |
17076 | (spu_write_memory): Likewise. | |
17077 | ||
4e29fb54 PA |
17078 | 2010-06-15 Pedro Alves <pedro@codesourcery.com> |
17079 | ||
17080 | * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2) | |
17081 | (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with | |
17082 | LONGEST uses. | |
17083 | * server.h (struct emit_ops): Replace int64_t uses with LONGEST | |
17084 | uses. | |
17085 | * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t | |
17086 | uses with LONGEST uses. | |
17087 | ||
6a271cae PA |
17088 | 2010-06-14 Stan Shebs <stan@codesourcery.com> |
17089 | Pedro Alves <pedro@codesourcery.com> | |
17090 | ||
17091 | Bytecode compiler. | |
17092 | ||
17093 | * linux-x86-low.c: Include limits.h. | |
17094 | (add_insns): New. | |
17095 | (always_true): New. | |
17096 | (EMIT_ASM): New. | |
17097 | (EMIT_ASM32): New. | |
17098 | (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add) | |
17099 | (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh) | |
17100 | (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext, | |
17101 | (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or) | |
17102 | (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal, | |
17103 | (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref, | |
17104 | (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address) | |
17105 | (amd64_emit_const, amd64_emit_call, amd64_emit_reg) | |
17106 | (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext) | |
17107 | (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1) | |
17108 | (amd64_emit_void_call_2): New. | |
17109 | (amd64_emit_ops): New. | |
17110 | (i386_emit_prologue, i386_emit_epilogue, i386_emit_add) | |
17111 | (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed) | |
17112 | (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not) | |
17113 | (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor) | |
17114 | (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed) | |
17115 | (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto) | |
17116 | (i386_emit_goto, i386_write_goto_address, i386_emit_const) | |
17117 | (i386_emit_call, i386_emit_reg, i386_emit_pop) | |
17118 | (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap) | |
17119 | (i386_emit_stack_adjust, i386_emit_int_call_1) | |
17120 | (i386_emit_void_call_2): New. | |
17121 | (i386_emit_ops): New. | |
17122 | (x86_emit_ops): New. | |
17123 | (the_low_target): Install x86_emit_ops. | |
17124 | * server.h (struct emit_ops): New. | |
17125 | (get_raw_reg_func_addr): Declare. | |
17126 | (current_insn_ptr, emit_error): Declare. | |
17127 | * tracepoint.c (get_raw_reg, get_trace_state_variable_value) | |
17128 | (set_trace_state_variable_value): New defines. | |
17129 | (struct ipa_sym_addresses): New fields addr_get_raw_reg, | |
17130 | addr_get_trace_state_variable_value and | |
17131 | addr_set_trace_state_variable_value. | |
17132 | (symbol_list): New fields for get_raw_reg, | |
17133 | get_trace_state_variable_value and set_trace_state_variable_value. | |
17134 | (condfn): New typedef. | |
17135 | (struct tracepoint): New field `compiled_cond'. | |
17136 | (do_action_at_tracepoint): Clear compiled_cond. | |
17137 | (get_trace_state_variable_value, set_trace_state_variable_value): | |
17138 | Export in the IPA. | |
17139 | (condition_true_at_tracepoint): If there's a compiled condition, | |
17140 | run that. | |
17141 | (current_insn_ptr, emit_error): New globals. | |
17142 | (struct bytecode_address): New. | |
17143 | (get_raw_reg_func_addr): New. | |
17144 | (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul) | |
17145 | (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext) | |
17146 | (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor) | |
17147 | (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned) | |
17148 | (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const) | |
17149 | (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap) | |
17150 | (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New. | |
17151 | (compile_tracepoint_condition, compile_bytecodes): New. | |
17152 | * target.h (emit_ops): Forward declare. | |
17153 | (struct target_ops): New field emit_ops. | |
17154 | (target_emit_ops): New. | |
17155 | * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New. | |
17156 | * linux-i386-ipa.c (gdb_agent_get_raw_reg): New. | |
17157 | * linux-low.c (linux_emit_ops): New. | |
17158 | (linux_target_ops): Install it. | |
17159 | * linux-low.h (struct linux_target_ops): New field emit_ops. | |
17160 | ||
92b72907 UW |
17161 | 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com> |
17162 | ||
17163 | * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR. | |
17164 | * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW. | |
17165 | ||
fa593d66 PA |
17166 | 2010-06-01 Pedro Alves <pedro@codesourcery.com> |
17167 | Stan Shebs <stan@codesourcery.com> | |
17168 | ||
17169 | * Makefile.in (IPA_DEPFILES, extra_libraries): New. | |
17170 | (all): Depend on $(extra_libraries). | |
17171 | (install-only): Install the IPA. | |
17172 | (IPA_OBJS, IPA_LIB): New. | |
17173 | (clean): Remove the IPA lib. | |
17174 | (IPAGENT_CFLAGS): New. | |
17175 | (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o) | |
17176 | (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o) | |
17177 | (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules. | |
17178 | * linux-amd64-ipa.c, linux-i386-ipa.c: New files. | |
17179 | * configure.ac: Check for atomic builtins support in the compiler. | |
17180 | (IPA_DEPFILES, extra_libraries): Define. | |
17181 | * configure.srv (ipa_obj): Add description. | |
17182 | (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define. | |
17183 | (i[34567]86-*-linux*): Set ipa_obj. | |
17184 | (x86_64-*-linux*): Set ipa_obj. | |
17185 | * linux-low.c (stabilizing_threads): New. | |
17186 | (supports_fast_tracepoints): New. | |
17187 | (linux_detach): Stabilize threads before detaching. | |
17188 | (handle_tracepoints): Handle internal tracing breakpoints. Assert | |
17189 | the lwp is either not stabilizing, or is moving out of a jump pad. | |
17190 | (linux_fast_tracepoint_collecting): New. | |
17191 | (maybe_move_out_of_jump_pad): New. | |
17192 | (enqueue_one_deferred_signal): New. | |
17193 | (dequeue_one_deferred_signal): New. | |
17194 | (linux_wait_for_event_1): If moving out of a jump pad, defer | |
17195 | pending signals to later. | |
17196 | (linux_stabilize_threads): New. | |
17197 | (linux_wait_1): Check if threads need moving out of jump pads, and | |
17198 | do it if so. | |
17199 | (stuck_in_jump_pad_callback): New. | |
17200 | (move_out_of_jump_pad_callback): New. | |
17201 | (lwp_running): New. | |
17202 | (linux_resume_one_lwp): Handle moving out of jump pads. | |
17203 | (linux_set_resume_request): Dequeue deferred signals. | |
17204 | (need_step_over_p): Also step over fast tracepoint jumps. | |
17205 | (start_step_over): Also uninsert fast tracepoint jumps. | |
17206 | (finish_step_over): Also reinsert fast tracepoint jumps. | |
17207 | (linux_install_fast_tracepoint_jump): New. | |
17208 | (linux_target_ops): Install linux_stabilize_threads and | |
17209 | linux_install_fast_tracepoint_jump_pad. | |
17210 | * linux-low.h (linux_target_ops) <get_thread_area, | |
17211 | install_fast_tracepoint_jump_pad>: New fields. | |
17212 | (struct lwp_info) <collecting_fast_tracepoint, | |
17213 | pending_signals_to_report, exit_jump_pad_bkpt>: New fields. | |
17214 | (linux_get_thread_area): Declare. | |
17215 | * linux-x86-low.c (jump_insn): New. | |
17216 | (x86_get_thread_area): New. | |
17217 | (append_insns): New. | |
17218 | (push_opcode): New. | |
17219 | (amd64_install_fast_tracepoint_jump_pad): New. | |
17220 | (i386_install_fast_tracepoint_jump_pad): New. | |
17221 | (x86_install_fast_tracepoint_jump_pad): New. | |
17222 | (the_low_target): Install x86_get_thread_area and | |
17223 | x86_install_fast_tracepoint_jump_pad. | |
17224 | * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory. | |
17225 | (struct fast_tracepoint_jump): New. | |
17226 | (fast_tracepoint_jump_insn): New. | |
17227 | (fast_tracepoint_jump_shadow): New. | |
17228 | (find_fast_tracepoint_jump_at): New. | |
17229 | (fast_tracepoint_jump_here): New. | |
17230 | (delete_fast_tracepoint_jump): New. | |
17231 | (set_fast_tracepoint_jump): New. | |
17232 | (uninsert_fast_tracepoint_jumps_at): New. | |
17233 | (reinsert_fast_tracepoint_jumps_at): New. | |
17234 | (set_breakpoint_at): Use write_inferior_memory. | |
17235 | (uninsert_raw_breakpoint): Use write_inferior_memory. | |
17236 | (check_mem_read): Mask out fast tracepoint jumps. | |
17237 | (check_mem_write): Mask out fast tracepoint jumps. | |
17238 | * mem-break.h (struct fast_tracepoint_jump): Forward declare. | |
17239 | (set_fast_tracepoint_jump): Declare. | |
17240 | (delete_fast_tracepoint_jump) | |
17241 | (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at) | |
17242 | (reinsert_fast_tracepoint_jumps_at): Declare. | |
17243 | * regcache.c: Don't compile many functions when building the | |
17244 | in-process agent library. | |
17245 | (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating | |
17246 | the register buffer in the heap. | |
17247 | (free_register_cache): If the register buffer isn't owned by the | |
17248 | regcache, don't free it. | |
17249 | (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate | |
17250 | pre-existing register caches. | |
17251 | * remote-utils.c (convert_int_to_ascii): Constify `from' parameter | |
17252 | type. | |
17253 | (convert_ascii_to_int): : Constify `from' parameter type. | |
17254 | (decode_M_packet, decode_X_packet): Replace the `to' parameter by | |
17255 | a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc | |
17256 | the needed buffer in-place. | |
17257 | (relocate_instruction): New. | |
17258 | * server.c (handle_query) <qSymbols>: If the target supports | |
17259 | tracepoints, give it a chance of looking up symbols. Report | |
17260 | support for fast tracepoints. | |
17261 | (handle_status): Stabilize threads. | |
17262 | (process_serial_event): Adjust. | |
17263 | * server.h (struct fast_tracepoint_jump): Forward declare. | |
17264 | (struct process_info) <fast_tracepoint_jumps>: New field. | |
17265 | (convert_ascii_to_int, convert_int_to_ascii): Adjust. | |
17266 | (decode_X_packet, decode_M_packet): Adjust. | |
17267 | (relocate_instruction): Declare. | |
17268 | (in_process_agent_loaded): Declare. | |
17269 | (tracepoint_look_up_symbols): Declare. | |
17270 | (struct fast_tpoint_collect_status): Declare. | |
17271 | (fast_tracepoint_collecting): Declare. | |
17272 | (force_unlock_trace_buffer): Declare. | |
17273 | (handle_tracepoint_bkpts): Declare. | |
17274 | (initialize_low_tracepoint) | |
17275 | (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare. | |
17276 | * target.h (struct target_ops) <stabilize_threads, | |
17277 | install_fast_tracepoint_jump_pad>: New fields. | |
17278 | (stabilize_threads, install_fast_tracepoint_jump_pad): New. | |
17279 | * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h. | |
17280 | [HAVE_STDINT_H]: Include stdint.h. | |
17281 | (trace_debug_1): Rename to ... | |
17282 | (trace_vdebug): ... this. | |
17283 | (trace_debug): Rename to ... | |
17284 | (trace_debug_1): ... this. Add `level' parameter. | |
17285 | (trace_debug): New. | |
17286 | (ATTR_USED, ATTR_NOINLINE): New. | |
17287 | (IP_AGENT_EXPORT): New. | |
17288 | (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end) | |
17289 | (collecting, gdb_collect, stop_tracing, flush_trace_buffer) | |
17290 | (about_to_request_buffer_space, trace_buffer_is_full) | |
17291 | (stopping_tracepoint, expr_eval_result, error_tracepoint) | |
17292 | (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr) | |
17293 | (trace_buffer_lo, trace_buffer_hi, traceframe_read_count) | |
17294 | (traceframe_write_count, traceframes_created) | |
17295 | (trace_state_variables) | |
17296 | New renaming defines. | |
17297 | (struct ipa_sym_addresses): New. | |
17298 | (STRINGIZE_1, STRINGIZE, IPA_SYM): New. | |
17299 | (symbol_list): New. | |
17300 | (ipa_sym_addrs): New. | |
17301 | (all_tracepoint_symbols_looked_up): New. | |
17302 | (in_process_agent_loaded): New. | |
17303 | (write_e_ipa_not_loaded): New. | |
17304 | (maybe_write_ipa_not_loaded): New. | |
17305 | (tracepoint_look_up_symbols): New. | |
17306 | (debug_threads) [IN_PROCESS_AGENT]: New. | |
17307 | (read_inferior_memory) [IN_PROCESS_AGENT]: New. | |
17308 | (UNKNOWN_SIDE_EFFECTS): New. | |
17309 | (stop_tracing): New. | |
17310 | (flush_trace_buffer): New. | |
17311 | (stop_tracing_bkpt): New. | |
17312 | (flush_trace_buffer_bkpt): New. | |
17313 | (read_inferior_integer): New. | |
17314 | (read_inferior_uinteger): New. | |
17315 | (read_inferior_data_pointer): New. | |
17316 | (write_inferior_data_pointer): New. | |
17317 | (write_inferior_integer): New. | |
17318 | (write_inferior_uinteger): New. | |
17319 | (struct collect_static_trace_data_action): Delete. | |
17320 | (enum tracepoint_type): New. | |
17321 | (struct tracepoint) <type>: New field `type'. | |
43aaf8b6 PA |
17322 | <actions_str, step_actions, step_actions_str>: Only include in |
17323 | GDBserver. | |
fa593d66 PA |
17324 | <orig_size, obj_addr_on_target, adjusted_insn_addr> |
17325 | <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields. | |
17326 | (tracepoints): Use IP_AGENT_EXPORT. | |
17327 | (last_tracepoint): Don't include in the IPA. | |
17328 | (stopping_tracepoint): Use IP_AGENT_EXPORT. | |
17329 | (trace_buffer_is_full): Use IP_AGENT_EXPORT. | |
17330 | (alloced_trace_state_variables): New. | |
17331 | (trace_state_variables): Use IP_AGENT_EXPORT. | |
17332 | (traceframe_t): Delete unused variable. | |
17333 | (circular_trace_buffer): Don't include in the IPA. | |
17334 | (trace_buffer_start): Delete. | |
17335 | (struct trace_buffer_control): New. | |
17336 | (trace_buffer_free): Delete. | |
17337 | (struct ipa_trace_buffer_control): New. | |
17338 | (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV) | |
17339 | (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT): | |
17340 | New. | |
17341 | (trace_buffer_ctrl): New. | |
17342 | (TRACE_BUFFER_CTRL_CURR): New. | |
17343 | (trace_buffer_start, trace_buffer_free, trace_buffer_end_free): | |
17344 | Reimplement as macros. | |
17345 | (trace_buffer_wrap): Delete. | |
17346 | (traceframe_write_count, traceframe_read_count) | |
17347 | (traceframes_created, tracing): Use IP_AGENT_EXPORT. | |
17348 | (struct tracepoint_hit_ctx) <type>: New field. | |
17349 | (struct fast_tracepoint_ctx): New. | |
17350 | (memory_barrier): New. | |
17351 | (cmpxchg): New. | |
17352 | (record_tracepoint_error): Update atomically in the IPA. | |
17353 | (clear_inferior_trace_buffer): New. | |
17354 | (about_to_request_buffer_space): New. | |
17355 | (trace_buffer_alloc): Handle GDBserver and inferior simulatenous | |
17356 | updating the same buffer. | |
17357 | (add_tracepoint): Default the tracepoint's type to trap | |
17358 | tracepoint, and orig_size to -1. | |
17359 | (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated | |
17360 | internal variables. | |
17361 | (create_trace_state_variable): New parameter `gdb'. Handle it. | |
17362 | (clear_installed_tracepoints): Clear fast tracepoint jumps. | |
17363 | (cmd_qtdp): Handle fast tracepoints. | |
17364 | (cmd_qtdv): Adjust. | |
17365 | (max_jump_pad_size): New. | |
17366 | (gdb_jump_pad_head): New. | |
17367 | (get_jump_space_head): New. | |
17368 | (claim_jump_space): New. | |
17369 | (sort_tracepoints): New. | |
17370 | (MAX_JUMP_SIZE): New. | |
17371 | (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the | |
17372 | IPA. | |
17373 | (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected | |
17374 | support. Upload fast traceframes, and delete internal IPA | |
17375 | breakpoints. | |
17376 | (stop_tracing_handler): New. | |
17377 | (flush_trace_buffer_handler): New. | |
17378 | (cmd_qtstop): Upload fast tracepoints. | |
17379 | (response_tracepoint): Handle fast tracepoints. | |
17380 | (tracepoint_finished_step): Upload fast traceframes. Set the | |
17381 | tracepoint hit context's tracepoint type. | |
17382 | (handle_tracepoint_bkpts): New. | |
17383 | (tracepoint_was_hit): Set the tracepoint hit context's tracepoint | |
17384 | type. Add comment about fast tracepoints. | |
17385 | (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the | |
17386 | non-existing action_str field. | |
17387 | (get_context_regcache): Handle fast tracepoints. | |
17388 | (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC | |
17389 | to the regcache. | |
17390 | (fast_tracepoint_from_jump_pad_address): New. | |
17391 | (fast_tracepoint_from_ipa_tpoint_address): New. | |
17392 | (collecting_t): New. | |
17393 | (force_unlock_trace_buffer): New. | |
17394 | (fast_tracepoint_collecting): New. | |
17395 | (collecting): New. | |
17396 | (gdb_collect): New. | |
17397 | (write_inferior_data_ptr): New. | |
17398 | (target_tp_heap): New. | |
17399 | (target_malloc): New. | |
17400 | (download_agent_expr): New. | |
17401 | (UALIGN): New. | |
17402 | (download_tracepoints): New. | |
17403 | (download_trace_state_variables): New. | |
17404 | (upload_fast_traceframes): New. | |
17405 | (IPA_FIRST_TRACEFRAME): New. | |
17406 | (IPA_NEXT_TRACEFRAME_1): New. | |
17407 | (IPA_NEXT_TRACEFRAME): New. | |
17408 | [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h. | |
17409 | [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer) | |
17410 | (gdb_jump_pad_buffer_end): New. | |
17411 | [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New. | |
17412 | (initialize_tracepoint): Adjust. | |
17413 | [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch | |
17414 | buffer. Initialize the low module. | |
17415 | * utils.c (PREFIX, TOOLNAME): New. | |
17416 | (malloc_failure): Use PREFIX. | |
17417 | (error): In the IPA, an error causes an exit. | |
17418 | (fatal, warning): Use PREFIX. | |
17419 | (internal_error): Use TOOLNAME. | |
17420 | (NUMCELLS): Increase to 10. | |
17421 | * configure, config.in: Regenerate. | |
17422 | ||
d149dd1d PA |
17423 | 2010-06-01 Pedro Alves <pedro@codesourcery.com> |
17424 | ||
17425 | * server.c (handle_query) <qSupported>: Do two passes over the | |
17426 | qSupported string to avoid nesting strtok. | |
17427 | ||
f6528abd JK |
17428 | 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
17429 | ||
17430 | * Makefile.in (SFILES): Add $(srcdir)/proc-service.list. | |
17431 | (CDEPS): New. | |
17432 | * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also | |
17433 | -Wl,--dynamic-list. | |
17434 | * configure: Regenerate. | |
17435 | * proc-service.list: New. | |
17436 | ||
ca2a87a0 JK |
17437 | 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
17438 | ||
17439 | * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT. | |
17440 | New comment. | |
17441 | ||
363a6e9f OS |
17442 | 2010-05-26 Ozkan Sezer <sezeroz@gmail.com> |
17443 | ||
17444 | * gdbreplay.c (remote_open): Check error return from socket() call by | |
17445 | its equality to -1 not by it being negative. | |
17446 | * remote-utils.c (remote_open): Likewise. | |
17447 | ||
d23b6cb1 PA |
17448 | 2010-05-23 Pedro Alves <pedro@codesourcery.com> |
17449 | ||
17450 | * config.h: Regenerate. | |
17451 | ||
28d3cf85 MK |
17452 | 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com> |
17453 | ||
17454 | * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel | |
17455 | doesn't provide PTRACE_GET_THREAD_AREA. | |
17456 | ||
fea36a59 MK |
17457 | 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com> |
17458 | ||
17459 | * linux-m68k-low.c: Include <asm/ptrace.h> | |
17460 | (ps_get_thread_area): Implement. | |
17461 | ||
24b066ba DE |
17462 | 2010-05-03 Doug Evans <dje@google.com> |
17463 | ||
17464 | * event-loop.c (struct callback_event): New struct. | |
17465 | (callback_list): New global. | |
17466 | (append_callback_event, delete_callback_event): New functions. | |
17467 | (process_callback): New function. | |
17468 | (start_event_loop): Call it. | |
17469 | * remote-utils.c (NOT_SCHEDULED): Define. | |
17470 | (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals, | |
17471 | moved out of readchar. | |
17472 | (readchar): Rewrite. Call reschedule before returning. | |
17473 | (reset_readchar): New function. | |
17474 | (remote_close): Call it. | |
17475 | (process_remaining, reschedule): New functions. | |
17476 | * server.h (callback_handler_func): New typedef. | |
17477 | (append_callback_event, delete_callback_event): Declare. | |
17478 | ||
9836d6ea PA |
17479 | 2010-05-03 Pedro Alves <pedro@codesourcery.com> |
17480 | ||
17481 | * proc-service.c (ps_pglobal_lookup): Use | |
17482 | thread_db_look_up_one_symbol. | |
17483 | * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb' | |
17484 | parameter. Use it instead of all_symbols_looked_up. | |
17485 | * server.h (struct process_info) <all_symbols_looked_up>: Delete | |
17486 | field. | |
17487 | (all_symbols_looked_up): Don't declare. | |
17488 | (look_up_one_symbol): Add new `may_ask_gdb' parameter. | |
17489 | * thread-db.c (struct thread_db) <all_symbols_looked_up>: New | |
17490 | field. | |
17491 | (thread_db_look_up_symbols): Adjust call to look_up_one_symbol. | |
17492 | Set all_symbols_looked_up here. | |
17493 | (thread_db_look_up_one_symbol): New. | |
17494 | (thread_db_get_tls_address): Adjust. | |
17495 | (thread_db_load_search, try_thread_db_load_1): Always allocate the | |
17496 | thread_db object on the heap, and tentatively set it in the | |
17497 | process structure. | |
17498 | (thread_db_init): Don't set all_symbols_looked_up here. | |
17499 | * linux-low.h (thread_db_look_up_one_symbol): Declare. | |
17500 | ||
7984d532 PA |
17501 | 2010-05-03 Pedro Alves <pedro@codesourcery.com> |
17502 | ||
17503 | * linux-low.c (linux_kill, linux_detach): Adjust. | |
17504 | (status_pending_p_callback): Remove redundant statement. Check | |
17505 | for !TARGET_WAITIKIND_IGNORE, instead of | |
17506 | TARGET_WAITKIND_STOPPED. | |
17507 | (handle_tracepoints): Make sure LWP is locked. Adjust. | |
17508 | (linux_wait_for_event_1): Adjust. | |
17509 | (linux_cancel_breakpoints): New. | |
17510 | (unsuspend_one_lwp): New. | |
17511 | (unsuspend_all_lwps): New. | |
17512 | (linux_wait_1): If finishing a step-over, unsuspend all lwps. | |
17513 | (send_sigstop_callback): Change return type to int, add new | |
17514 | `except' parameter and handle it. | |
17515 | (suspend_and_send_sigstop_callback): New. | |
17516 | (stop_all_lwps): Add new `suspend' and `expect' parameters, and | |
17517 | pass them down. If SUSPEND, also increment the lwp's suspend | |
17518 | count. | |
17519 | (linux_resume_one_lwp): Add notice about resuming a suspended LWP. | |
17520 | (need_step_over_p): Don't consider suspended LWPs. | |
17521 | (start_step_over): Adjust. | |
17522 | (proceed_one_lwp): Change return type to int, add new `except' | |
17523 | parameter and handle it. | |
17524 | (unsuspend_and_proceed_one_lwp): New. | |
17525 | (proceed_all_lwps): Use find_inferior instead of | |
17526 | for_each_inferior. | |
17527 | (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them | |
17528 | also decrement the suspend count of LWPs. Pass `except' down, | |
17529 | instead of hacking its suspend count. | |
17530 | (linux_pause_all): Add `freeze' parameter. Adjust. | |
17531 | (linux_unpause_all): New. | |
17532 | (linux_target_ops): Install linux_unpause_all. | |
17533 | * server.c (handle_status): Adjust. | |
17534 | * target.h (struct target_ops): New fields `unpause_all' and | |
17535 | `cancel_breakpoints'. Add new parameter to `pause_all'. | |
17536 | (pause_all): Add new `freeze' parameter. | |
17537 | (unpause_all): New. | |
17538 | (cancel_breakpoints): New. | |
17539 | * tracepoint.c (clear_installed_tracepoints): Pause threads, and | |
17540 | cancel breakpoints. | |
17541 | (cmd_qtstart): Pause threads. | |
17542 | (stop_tracing): Pause threads, and cancel breakpoints. | |
17543 | * win32-low.c (win32_target_ops): Adjust. | |
17544 | ||
e471f25b PA |
17545 | 2010-05-03 Pedro Alves <pedro@codesourcery.com> |
17546 | ||
17547 | * linux-low.c (linux_wait_for_event_1): Move passing the signal to | |
17548 | the inferior right away from here... | |
17549 | (linux_wait_1): ... to here, and adjust to check the thread's | |
17550 | last_resume_kind instead of the lwp's step or stop_expected flags. | |
17551 | ||
1915ef4f PA |
17552 | 2010-05-02 Pedro Alves <pedro@codesourcery.com> |
17553 | ||
17554 | * README: Use consistent `GDB' and `GDBserver' spellings. | |
17555 | ||
f9e39928 PA |
17556 | 2010-05-02 Pedro Alves <pedro@codesourcery.com> |
17557 | ||
17558 | * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped. | |
17559 | (linux_kill): Stop all lwps here. Don't delete the main lwp here. | |
17560 | (linux_detach_one_lwp): Assume the lwp is stopped. | |
17561 | (any_thread_of): Delete. | |
17562 | (linux_detach): Stop all lwps here. Don't blindly delete all | |
17563 | breakpoints. | |
17564 | (delete_lwp_callback): New. | |
17565 | (linux_mourn): Delete all lwps of the process that is gone. | |
17566 | (linux_wait_1): Don't delete the last lwp of the process here. | |
17567 | * mem-break.h (mark_breakpoints_out): Declare. | |
17568 | * mem-break.c (mark_breakpoints_out): New. | |
17569 | (free_all_breakpoints): Use it. | |
17570 | * server.c (handle_target_event): If the process is gone, mark | |
17571 | breakpoints out. | |
17572 | * thread-db.c (struct thread_db) <create_bp>: New field. | |
17573 | (thread_db_enable_reporting): Fix prototype. Store a thread event | |
17574 | breakpoint reference in the thread_db struct. | |
17575 | (thread_db_load_search): Clear the thread_db object. | |
17576 | (try_thread_db_load_1): Ditto. | |
17577 | (switch_to_process): New. | |
17578 | (disable_thread_event_reporting): Use it. | |
17579 | (remove_thread_event_breakpoints): New. | |
17580 | (thread_db_detach, thread_db_mourn): Use it. | |
17581 | ||
1e7fc18c PA |
17582 | 2010-05-01 Pedro Alves <pedro@codesourcery.com> |
17583 | ||
17584 | * linux-low.c (linux_enable_event_reporting): New. | |
17585 | (linux_wait_for_event_1, handle_extended_wait): Use it. | |
17586 | ||
02fc4de7 PA |
17587 | 2010-04-30 Pedro Alves <pedro@codesourcery.com> |
17588 | ||
17589 | * linux-low.c (linux_kill_one_lwp, linux_kill) | |
17590 | (linux_detach_one_lwp): Adjust to send_sigstop interface change. | |
17591 | (send_sigstop): Take an lwp_info as parameter instead. Queue a | |
17592 | SIGSTOP even if the LWP is stopped. | |
17593 | (send_sigstop_callback): New. | |
17594 | (stop_all_lwps): Use send_sigstop_callback instead. | |
17595 | (linux_resume_one_thread): Adjust. | |
17596 | (proceed_one_lwp): Still proceed an LWP that the client has | |
17597 | requested to stop, if we haven't reported it as stopped yet. Make | |
17598 | sure that LWPs the client want stopped, have a pending SIGSTOP. | |
17599 | ||
bc3b5632 DE |
17600 | 2010-04-26 Doug Evans <dje@google.com> |
17601 | ||
ae1ada35 DE |
17602 | * server.c (handle_general_set): Make static. |
17603 | ||
bc3b5632 DE |
17604 | * remote-utils.c (putpkt_binary_1): Call readchar instead of read. |
17605 | Print received char after testing for error/eof instead of before. | |
17606 | (input_interrupt): Tweak comment. | |
17607 | ||
65730243 DE |
17608 | 2010-04-23 Doug Evans <dje@google.com> |
17609 | ||
17610 | * server.c (start_inferior): Print inferior argv if --debug. | |
17611 | ||
a8ae7dc0 AR |
17612 | 2010-04-21 Aleksandar Ristovski <aristovski@qnx.com> |
17613 | ||
17614 | * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists. | |
17615 | * nto-x86-low.c: Include server.h | |
17616 | ||
1c07cc19 PM |
17617 | 2010-04-20 Pierre Muller <muller@ics.u-strasbg.fr> |
17618 | ||
17619 | * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to | |
17620 | be consistent with other sources of this directory. | |
17621 | (init_registers_amd64): Correct name of source file of this function | |
17622 | in the comment. | |
17623 | ||
e0a61e09 PM |
17624 | 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr> |
17625 | ||
17626 | * configure.srv (x86_64-*-mingw*): New configuration for Windows | |
17627 | 64-bit executables. | |
17628 | ||
54709339 PM |
17629 | 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr> |
17630 | ||
17631 | * win32-i386-low.c: Add 64-bit support. | |
17632 | (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting. | |
17633 | (init_registers_amd64): Declare. | |
17634 | (mappings): Add 64-bit version of array. | |
17635 | (init_windows_x86): New function. | |
17636 | (the_low_target): Change init_arch field to init_windows_x86. | |
17637 | ||
e8f0053d PM |
17638 | 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr> |
17639 | ||
17640 | * win32-low.c: Adapt to support also 64-bit architecture. | |
17641 | (child_xfer_memory): Use uintptr_t type for local variable `addr'. | |
17642 | (get_image_name): Use SIZE_T type for local variable `done'. | |
17643 | (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'. | |
17644 | (toolhelp_get_dll_name): Idem. | |
17645 | (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'. | |
17646 | Use uintptr_t typecast to avoid warning. | |
17647 | (handle_unload_dll): Use uintptr_t typecast to avoid warning. | |
17648 | (handle_exception): Use phex_nz to avoid warning. | |
17649 | (win32_wait): Remove unused local variable `process'. | |
17650 | ||
c481e77e PM |
17651 | 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr> |
17652 | ||
17653 | * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by | |
17654 | `amd64-avx.o'. | |
17655 | ||
12ea4b69 PM |
17656 | 2010-04-17 Pierre Muller <muller@ics.u-strasbg.fr> |
17657 | ||
17658 | * configure.ac: Use `ws2_32' library for srv_mingw. | |
17659 | * configure: Regenerate. | |
17660 | * gdbreplay.c: Include winsock2.h instead of winsock.h. | |
17661 | * remote-utils.c: Likewise. | |
17662 | ||
f6d1620c L |
17663 | 2010-04-17 H.J. Lu <hongjiu.lu@intel.com> |
17664 | ||
17665 | * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only | |
17666 | if __x86_64__ is defined. | |
17667 | ||
8e642873 PM |
17668 | 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr> |
17669 | ||
17670 | * configure: Regenerate. | |
17671 | ||
711e434b PM |
17672 | 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr> |
17673 | ||
17674 | * server.c (handle_query): Handle 'qGetTIBAddr' query. | |
17675 | * target.h (target_ops): New get_tib_address field. | |
17676 | * win32-low.h (win32_thread_info): Add thread_local_base field. | |
17677 | * win32-low.c (child_add_thread): Add tlb argument. | |
17678 | Set thread_local_base field to TLB. | |
17679 | (get_child_debug_event): Adapt to child_add_thread change. | |
17680 | (win32_get_tib_address): New function. | |
17681 | (win32_target_ops): Set get_tib_address field to | |
17682 | win32_get_tib_address. | |
17683 | * linux-low.c (linux_target_ops): Set get_tib_address field to NULL. | |
17684 | ||
505106cd PA |
17685 | 2010-04-12 Pedro Alves <pedro@codesourcery.com> |
17686 | ||
505106cd PA |
17687 | * linux-low.c (linux_mourn): Also remove the process. |
17688 | * server.c (handle_target_event): Don't remove the process here. | |
17689 | * nto-low.c (nto_mourn): New. | |
17690 | (nto_target_ops): Install it. | |
17691 | * spu-low.c (spu_mourn): New. | |
17692 | (spu_target_ops): Install it. | |
17693 | * win32-low.c (win32_mourn): New. | |
17694 | (win32_target_ops): Install it. | |
17695 | ||
e8470a06 PA |
17696 | 2010-04-12 Pedro Alves <pedro@codesourcery.com> |
17697 | ||
17698 | * server.h (buffer_xml_printf): Remove redundant `;'. | |
17699 | ||
45ba0d02 PA |
17700 | 2010-04-12 Pedro Alves <pedro@codesourcery.com> |
17701 | ||
17702 | * regcache.c (set_register_cache): Invalidate regcaches before | |
17703 | changing the register cache layout. | |
17704 | (regcache_invalidate_one): Allow a NULL regcache. | |
17705 | * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate | |
17706 | regcaches before changing the register cache layout or the target | |
17707 | regsets. | |
17708 | ||
59e04013 L |
17709 | 2010-04-12 H.J. Lu <hongjiu.lu@intel.com> |
17710 | ||
17711 | * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused | |
17712 | variable warning on Linux/x86-64. | |
17713 | ||
8336d594 PA |
17714 | 2010-04-11 Pedro Alves <pedro@codesourcery.com> |
17715 | ||
17716 | GDBserver disconnected tracing support. | |
17717 | ||
17718 | * linux-low.c (linux_remove_process): Delete. | |
17719 | (add_lwp): Don't set last_resume_kind here. | |
17720 | (linux_kill): Use `mourn'. | |
17721 | (linux_detach): Use `thread_db_detach', and `mourn'. | |
17722 | (linux_mourn): New. | |
17723 | (linux_attach_lwp_1): Adjust comment. | |
17724 | (linux_attach): last_resume_kind moved the thread_info; adjust. | |
17725 | (status_pending_p_callback): Adjust. | |
17726 | (linux_wait_for_event_1): Adjust. | |
17727 | (count_events_callback, select_singlestep_lwp_callback) | |
17728 | (select_event_lwp_callback, cancel_breakpoints_callback) | |
17729 | (db_wants_lwp_stopped, linux_wait_1, need_step_over_p) | |
17730 | (proceed_one_lwp): Adjust. | |
17731 | (linux_async): Add debug output. | |
17732 | (linux_thread_stopped): New. | |
17733 | (linux_pause_all): New. | |
17734 | (linux_target_ops): Install linux_mourn, linux_thread_stopped and | |
17735 | linux_pause_all. | |
17736 | * linux-low.h (struct lwp_info): Delete last_resume_kind field. | |
17737 | (thread_db_free): Delete declaration. | |
17738 | (thread_db_detach, thread_db_mourn): Declare. | |
17739 | * thread-db.c (thread_db_init): Use thread_db_mourn. | |
17740 | (thread_db_free): Delete, split in two. | |
17741 | (disable_thread_event_reporting): New. | |
17742 | (thread_db_detach): New. | |
17743 | (thread_db_mourn): New. | |
17744 | ||
17745 | * server.h (struct thread_info) <last_resume_kind>: New field. | |
17746 | <attached>: Add comment. | |
17747 | <gdb_detached>: New field. | |
17748 | (handler_func): Change return type to int. | |
17749 | (handle_serial_event, handle_target_event): Ditto. | |
17750 | (gdb_connected): Declare. | |
17751 | (tracing): Delete. | |
17752 | (disconnected_tracing): Declare. | |
17753 | (stop_tracing): Declare. | |
17754 | ||
17755 | * server.c (handle_query) <qSupported>: Report support for | |
17756 | disconnected tracing. | |
17757 | (queue_stop_reply_callback): Account for running threads. | |
17758 | (gdb_wants_thread_stopped): New. | |
17759 | (gdb_wants_all_threads_stopped): New. | |
17760 | (gdb_reattached_process): New. | |
17761 | (handle_status): Clear the `gdb_detached' flag of all processes. | |
17762 | In all-stop, stop all threads. | |
17763 | (main): Be sure to leave tfind mode. Handle disconnected tracing. | |
17764 | (process_serial_event): If the remote connection breaks, or if an | |
17765 | exit was forced with "monitor exit", force an event loop exit. | |
17766 | Handle disconnected tracing on detach. | |
17767 | (handle_serial_event): Adjust. | |
17768 | (handle_target_event): If GDB isn't connected, forward events back | |
17769 | to the inferior, unless the last process exited, in which case, | |
17770 | exit gdbserver. Adjust interface. | |
17771 | ||
17772 | * remote-utils.c (remote_open): Don't block in accept. Instead | |
17773 | register an event loop source on the listen socket file | |
17774 | descriptor. Refactor bits into ... | |
17775 | (listen_desc): ... this new global. | |
17776 | (gdb_connected): ... this new function. | |
17777 | (enable_async_notification): ... this new function. | |
17778 | (handle_accept_event): ... this new function. | |
17779 | (remote_close): Clear remote_desc. | |
17780 | ||
17781 | * inferiors.c (add_thread): Set the new thread's last_resume_kind. | |
17782 | ||
17783 | * target.h (struct target_ops) <mourn, thread_stopped, pause_all>: | |
17784 | New fields. | |
17785 | (mourn_inferior): Define. | |
17786 | (target_process_qsupported): Avoid the dangling else problem. | |
17787 | (thread_stopped): Define. | |
17788 | (pause_all): Define. | |
17789 | (target_waitstatus_to_string): Declare. | |
17790 | * target.c (target_waitstatus_to_string): New. | |
17791 | ||
17792 | * tracepoint.c (tracing): Make extern. | |
17793 | (disconnected_tracing): New. | |
17794 | (stop_tracing): Make extern. Handle tracing stops due to GDB | |
17795 | disconnecting. | |
17796 | (cmd_qtdisconnected): New. | |
17797 | (cmd_qtstatus): Report disconnected tracing status in trace reply. | |
17798 | (handle_tracepoint_general_set): Handle QTDisconnected. | |
17799 | ||
17800 | * event-loop.c (event_handler_func): Change return type to int. | |
17801 | (process_event): Bail out if the event handler wants the event | |
17802 | loop to stop. | |
17803 | (handle_file_event): Ditto. | |
17804 | (start_event_loop): Bail out if the event handler wants the event | |
17805 | loop to stop. | |
17806 | ||
17807 | * nto-low.c (nto_target_ops): Adjust. | |
17808 | * spu-low.c (spu_wait): Don't remove the process here. | |
17809 | (spu_target_ops): Adjust. | |
17810 | * win32-low.c (win32_wait): Don't remove the process here. | |
17811 | (win32_target_ops): Adjust. | |
17812 | ||
5d267c4c PA |
17813 | 2010-04-11 Pedro Alves <pedro@codesourcery.com> |
17814 | ||
17815 | * regcache.c (realloc_register_cache): Invalidate inferior's | |
17816 | regcache before recreating it. | |
17817 | ||
623ccd72 PA |
17818 | 2010-04-09 Pedro Alves <pedro@codesourcery.com> |
17819 | ||
17820 | * tracepoint.c (cmd_qtstatus): Report trace buffer circularity. | |
17821 | ||
219f2f23 PA |
17822 | 2010-04-09 Stan Shebs <stan@codesourcery.com> |
17823 | Pedro Alves <pedro@codesourcery.com> | |
17824 | ||
17825 | * server.h (LONGEST): New. | |
17826 | (struct thread_info) <while_stepping>: New field. | |
17827 | (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz): | |
17828 | Declare. | |
17829 | (initialize_tracepoint, handle_tracepoint_general_set) | |
17830 | (handle_tracepoint_query, tracepoint_finished_step) | |
17831 | (tracepoint_was_hit, release_while_stepping_state_list): | |
17832 | (current_traceframe): Declare. | |
17833 | * server.c (handle_general_set): Handle tracepoint packets. | |
17834 | (read_memory): New. | |
17835 | (write_memory): New. | |
17836 | (handle_search_memory_1): Use read_memory. | |
17837 | (handle_query): Report support for conditional tracepoints, trace | |
17838 | state variables, and tracepoint sources. Handle tracepoint | |
17839 | queries. | |
17840 | (main): Initialize the tracepoints module. | |
17841 | (process_serial_event): Handle traceframe reads/writes. | |
17842 | ||
17843 | * linux-low.c (handle_tracepoints): New. | |
17844 | (linux_wait_1): Call it. | |
17845 | (linux_resume_one_lwp): Handle while-stepping. | |
17846 | (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New. | |
17847 | (linux_target_ops): Install them. | |
17848 | * linux-low.h (struct linux_target_ops) <supports_tracepoints>: | |
17849 | New field. | |
17850 | * linux-x86-low.c (x86_supports_tracepoints): New. | |
17851 | (the_low_target). Install it. | |
17852 | ||
17853 | * mem-break.h (delete_breakpoint): Declare. | |
17854 | * mem-break.c (delete_breakpoint): Make external. | |
17855 | ||
17856 | * target.h (struct target_ops): Add `supports_tracepoints', | |
17857 | `read_pc', and `write_pc' fields. | |
17858 | (target_supports_tracepoints): Define. | |
17859 | * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two) | |
17860 | (phex_nz): New. | |
17861 | ||
17862 | * regcache.h (struct regcache) <registers_owned>: New field. | |
17863 | (init_register_cache, regcache_cpy): Declare. | |
17864 | (regcache_read_pc, regcache_write_pc): Declare. | |
17865 | (register_cache_size): Declare. | |
17866 | (supply_regblock): Declare. | |
17867 | * regcache.c (init_register_cache): New. | |
17868 | (new_register_cache): Use it. | |
17869 | (regcache_cpy): New. | |
17870 | (register_cache_size): New. | |
17871 | (supply_regblock): New. | |
17872 | (regcache_read_pc, regcache_write_pc): New. | |
889bf7c5 | 17873 | |
219f2f23 PA |
17874 | * tracepoint.c: New. |
17875 | ||
17876 | * Makefile.in (OBS): Add tracepoint.o. | |
17877 | (tracepoint.o): New rule. | |
17878 | ||
3a13a53b L |
17879 | 2010-04-08 H.J. Lu <hongjiu.lu@intel.com> |
17880 | ||
17881 | * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c. | |
17882 | (i386-mmx.o): New. | |
17883 | (i386-mmx.c): Likewise. | |
17884 | (i386-mmx-linux.o): Likewise. | |
17885 | (i386-mmx-linux.c): Likewise. | |
17886 | ||
17887 | * configure.srv (srv_i386_regobj): Add i386-mmx.o. | |
17888 | (srv_i386_linux_regobj): Add i386-mmx-linux.o. | |
17889 | (srv_i386_xmlfiles): Add i386/i386-mmx.xml. | |
17890 | (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml. | |
17891 | ||
17892 | * linux-x86-low.c (init_registers_i386_mmx_linux): New. | |
17893 | (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux | |
17894 | and return if ptrace PTRACE_GETFPXREGS failed in 32bit. | |
17895 | ||
1570b33e L |
17896 | 2010-04-07 H.J. Lu <hongjiu.lu@intel.com> |
17897 | ||
17898 | * Makefile.in (clean): Updated. | |
17899 | (i386-avx.o): New. | |
17900 | (i386-avx.c): Likewise. | |
17901 | (i386-avx-linux.o): Likewise. | |
17902 | (i386-avx-linux.c): Likewise. | |
17903 | (amd64-avx.o): Likewise. | |
17904 | (amd64-avx.c): Likewise. | |
17905 | (amd64-avx-linux.o): Likewise. | |
17906 | (amd64-avx-linux.c): Likewise. | |
17907 | ||
17908 | * configure.srv (srv_i386_regobj): Add i386-avx.o. | |
17909 | (srv_i386_linux_regobj): Add i386-avx-linux.o. | |
17910 | (srv_amd64_regobj): Add amd64-avx.o. | |
17911 | (srv_amd64_linux_regobj): Add amd64-avx-linux.o. | |
17912 | (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml. | |
17913 | (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml. | |
17914 | (srv_i386_xmlfiles): Add i386/i386-avx.xml. | |
17915 | (srv_amd64_xmlfiles): Add i386/amd64-avx.xml. | |
17916 | (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml. | |
17917 | (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml. | |
17918 | ||
17919 | * i387-fp.c: Include "i386-xstate.h". | |
17920 | (i387_xsave): New. | |
17921 | (i387_cache_to_xsave): Likewise. | |
17922 | (i387_xsave_to_cache): Likewise. | |
17923 | (x86_xcr0): Likewise. | |
17924 | ||
17925 | * i387-fp.h (i387_cache_to_xsave): Likewise. | |
17926 | (i387_xsave_to_cache): Likewise. | |
17927 | (x86_xcr0): Likewise. | |
17928 | ||
17929 | * linux-arm-low.c (target_regsets): Initialize nt_type to 0. | |
17930 | * linux-crisv32-low.c (target_regsets): Likewise. | |
17931 | * linux-m68k-low.c (target_regsets): Likewise. | |
17932 | * linux-mips-low.c (target_regsets): Likewise. | |
17933 | * linux-ppc-low.c (target_regsets): Likewise. | |
17934 | * linux-s390-low.c (target_regsets): Likewise. | |
17935 | * linux-sh-low.c (target_regsets): Likewise. | |
17936 | * linux-sparc-low.c (target_regsets): Likewise. | |
17937 | * linux-xtensa-low.c (target_regsets): Likewise. | |
17938 | ||
17939 | * linux-low.c: Include <sys/uio.h>. | |
17940 | (regsets_fetch_inferior_registers): Support nt_type. | |
17941 | (regsets_store_inferior_registers): Likewise. | |
17942 | (linux_process_qsupported): New. | |
17943 | (linux_target_ops): Add linux_process_qsupported. | |
17944 | ||
17945 | * linux-low.h (regset_info): Add nt_type. | |
17946 | (linux_target_ops): Add process_qsupported. | |
17947 | ||
17948 | * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h" | |
17949 | and <sys/uio.h>. | |
17950 | (init_registers_i386_avx_linux): New. | |
17951 | (init_registers_amd64_avx_linux): Likewise. | |
17952 | (xmltarget_i386_linux_no_xml): Likewise. | |
17953 | (xmltarget_amd64_linux_no_xml): Likewise. | |
17954 | (PTRACE_GETREGSET): Likewise. | |
17955 | (PTRACE_SETREGSET): Likewise. | |
17956 | (x86_fill_xstateregset): Likewise. | |
17957 | (x86_store_xstateregset): Likewise. | |
17958 | (use_xml): Likewise. | |
17959 | (x86_linux_update_xmltarget): Likewise. | |
17960 | (x86_linux_process_qsupported): Likewise. | |
17961 | (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type. | |
17962 | (x86_arch_setup): Don't call init_registers_amd64_linux nor | |
17963 | init_registers_i386_linux here. Call | |
17964 | x86_linux_update_xmltarget. | |
17965 | (the_low_target): Add x86_linux_process_qsupported. | |
17966 | ||
17967 | * server.c (handle_query): Call target_process_qsupported. | |
17968 | ||
17969 | * target.h (target_ops): Add process_qsupported. | |
17970 | (target_process_qsupported): New. | |
17971 | ||
fc7238bb PA |
17972 | 2010-04-03 Pedro Alves <pedro@codesourcery.com> |
17973 | ||
17974 | * inferiors.c (add_thread): Set last_status kind to | |
17975 | TARGET_WAITKIND_IGNORE. | |
17976 | * linux-low.c (cancel_breakpoint): Remove unnecessary regcache | |
17977 | fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls. | |
17978 | (linux_wait_1): Move `thread' local definition to block that uses | |
17979 | it. Don't NULL initialize `event_child'. | |
17980 | (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls. | |
17981 | Alway set the thread's last_status to TARGET_WAITKIND_IGNORE. | |
17982 | * linux-x86-low.c (x86_breakpoint_at): Read raw memory. | |
17983 | ||
bdabb078 PA |
17984 | 2010-04-01 Pedro Alves <pedro@codesourcery.com> |
17985 | ||
17986 | * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with | |
17987 | an extended waitstatus, or by a watchpoint. | |
17988 | (cancel_breakpoints_callback): Don't cancel a breakpoint if the | |
17989 | thread was stepping or has been stopped by a watchpoint. | |
17990 | ||
d3bbe7a0 PA |
17991 | 2010-04-01 Pedro Alves <pedro@codesourcery.com> |
17992 | ||
17993 | * mem-break.c (struct raw_breakpoint): New field shlib_disabled. | |
17994 | (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top | |
17995 | of another, then delete the previous, and validate all | |
17996 | breakpoints. | |
17997 | (validate_inserted_breakpoint): New. | |
17998 | (delete_disabled_breakpoints): New. | |
17999 | (validate_breakpoints): New. | |
18000 | (check_mem_read): Validate breakpoints before trusting their | |
18001 | shadow. Delete disabled breakpoints. | |
18002 | (check_mem_write): Validate breakpoints before trusting they | |
18003 | should be inserted. Delete disabled breakpoints. | |
18004 | * mem-break.h (validate_breakpoints): | |
18005 | * server.c (handle_query): Validate breakpoints when we see a | |
18006 | qSymbol query. | |
18007 | ||
8b07ae33 PA |
18008 | 2010-04-01 Pedro Alves <pedro@codesourcery.com> |
18009 | ||
18010 | * linux-low.c (linux_wait_1): Avoid setting need_step_over is | |
18011 | there's a GDB breakpoint at stop_pc. Always report a trap to GDB | |
18012 | if we could tell there's a GDB breakpoint at stop_pc. | |
18013 | (need_step_over_p): Don't do a step over if we find a GDB | |
18014 | breakpoint at the resume PC. | |
18015 | ||
18016 | * mem-break.c (struct raw_breakpoint): New. | |
18017 | (enum bkpt_type): New type `gdb_breakpoint'. | |
18018 | (struct breakpoint): Delete the `PC', `old_data' and `inserted' | |
18019 | fields. New field `raw'. | |
18020 | (find_raw_breakpoint_at): New. | |
18021 | (set_raw_breakpoint_at): Handle refcounting. Create a raw | |
18022 | breakpoint instead. | |
18023 | (set_breakpoint_at): Adjust. | |
18024 | (delete_raw_breakpoint): New. | |
18025 | (release_breakpoint): New. | |
18026 | (delete_breakpoint): Rename to... | |
18027 | (delete_breakpoint_1): ... this. Add proc parameter. Use | |
18028 | release_breakpoint. Return ENOENT. | |
18029 | (delete_breakpoint): Reimplement. | |
18030 | (find_breakpoint_at): Delete. | |
18031 | (find_gdb_breakpoint_at): New. | |
18032 | (delete_breakpoint_at): Delete. | |
18033 | (set_gdb_breakpoint_at): New. | |
18034 | (delete_gdb_breakpoint_at): New. | |
18035 | (gdb_breakpoint_here): New. | |
18036 | (set_reinsert_breakpoint): Use release_breakpoint. | |
18037 | (uninsert_breakpoint): Rename to ... | |
18038 | (uninsert_raw_breakpoint): ... this. | |
18039 | (uninsert_breakpoints_at): Adjust to handle raw breakpoints. | |
18040 | (reinsert_raw_breakpoint): Change parameter type to | |
18041 | raw_breakpoint. | |
18042 | (reinsert_breakpoints_at): Adjust to handle raw breakpoints | |
18043 | instead. | |
18044 | (check_breakpoints): Adjust. Use release_breakpoint. | |
18045 | (breakpoint_here): Rewrite using find_raw_breakpoint_at. | |
18046 | (breakpoint_inserted_here): Ditto. | |
18047 | (check_mem_read): Adjust to iterate over raw breakpoints instead. | |
18048 | Don't trust the breakpoint's shadow if it is not inserted. | |
18049 | (check_mem_write): Adjust to iterate over raw breakpoints instead. | |
18050 | (delete_all_breakpoints): Adjust. | |
18051 | (free_all_breakpoints): Mark all breakpoints as uninserted, and | |
18052 | use delete_breakpoint_1. | |
18053 | ||
18054 | * mem-break.h (breakpoints_supported): Delete declaration. | |
18055 | (set_gdb_breakpoint_at): Declare. | |
18056 | (gdb_breakpoint_here): Declare. | |
18057 | (delete_breakpoint_at): Delete. | |
18058 | (delete_gdb_breakpoint_at): Declare. | |
18059 | ||
18060 | * server.h (struct raw_breakpoint): Forward declare. | |
18061 | (struct process_info): New field `raw_breakpoints'. | |
18062 | ||
18063 | * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0 | |
18064 | breakpoints. | |
18065 | ||
6bf5e0ba PA |
18066 | 2010-03-24 Pedro Alves <pedro@codesourcery.com> |
18067 | ||
18068 | * linux-low.c (status_pending_p_callback): Fix comment. | |
18069 | (linux_wait_for_event_1): Move most of the internal breakpoint | |
18070 | handling from here... | |
18071 | (linux_wait_1): ... to here. | |
18072 | (count_events_callback): New. | |
18073 | (select_singlestep_lwp_callback): New. | |
18074 | (select_event_lwp_callback): New. | |
18075 | (cancel_breakpoints_callback): New. | |
18076 | (select_event_lwp): New. | |
18077 | (linux_wait_1): Simplify internal breakpoint handling. Give equal | |
18078 | priority to all LWPs that have had events that should be reported | |
18079 | to the client. Cancel breakpoints when about to reporting the | |
18080 | event to the client, not while stopping lwps. No longer cancel | |
18081 | finished single-steps here. | |
18082 | (cancel_finished_single_step): Delete. | |
18083 | (cancel_finished_single_steps): Delete. | |
18084 | ||
414a389f PA |
18085 | 2010-03-24 Pedro Alves <pedro@codesourcery.com> |
18086 | ||
18087 | * mem-break.c (enum bkpt_type): New. | |
18088 | (struct breakpoint): New field `type'. | |
18089 | (set_breakpoint_at): Change return type to struct breakpoint | |
18090 | pointer. Set type to `other_breakpoint' by default. | |
18091 | (delete_breakpoint): Rewrite, supporting more than one breakpoint | |
18092 | in the breakpoint list. | |
18093 | (delete_reinsert_breakpoints): Only delete reinsert breakpoints. | |
18094 | (reinsert_breakpoint): Rename to ... | |
18095 | (reinsert_raw_breakpoint): ... this. | |
18096 | (reinsert_breakpoints_at): Adjust. | |
18097 | * mem-break.h (struct breakpoint): Declare. | |
18098 | (set_breakpoint_at): Change return type to struct breakpoint | |
18099 | pointer. | |
18100 | ||
2280c721 PA |
18101 | 2010-03-24 Pedro Alves <pedro@codesourcery.com> |
18102 | ||
18103 | * server.c (handle_query): Assign, not compare. | |
18104 | ||
d50171e4 PA |
18105 | 2010-03-24 Pedro Alves <pedro@codesourcery.com> |
18106 | ||
18107 | Teach linux gdbserver to step-over-breakpoints. | |
18108 | ||
18109 | * linux-low.c (can_hardware_single_step): New. | |
18110 | (supports_breakpoints): New. | |
18111 | (handle_extended_wait): If stopping threads, read the stop pc of | |
18112 | the new cloned LWP. | |
18113 | (get_pc): New. | |
18114 | (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the | |
18115 | low target doesn't support retrieving the PC. | |
18116 | (add_lwp): Set last_resume_kind to resume_continue. | |
18117 | (linux_attach_lwp_1): Adjust comments. Always set stop_expected. | |
18118 | (linux_attach): Don't clear stop_expected. Set the lwp's | |
18119 | last_resume_kind to resume_stop. | |
18120 | (linux_detach_one_lwp): Don't check for removed breakpoints. | |
18121 | (check_removed_breakpoint): Delete. | |
18122 | (status_pending_p): Rename to ... | |
18123 | (status_pending_p_callback): ... this. Don't check for removed | |
18124 | breakpoints. Don't consider threads that are stopped from GDB's | |
18125 | perspective. | |
18126 | (linux_wait_for_lwp): Always read the stop_pc here. | |
18127 | (cancel_breakpoint): New. | |
18128 | (step_over_bkpt): New global. | |
18129 | (linux_wait_for_event_1): Implement stepping over breakpoints. | |
18130 | (gdb_wants_lwp_stopped): New. | |
18131 | (gdb_wants_all_stopped): New. | |
18132 | (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished | |
18133 | single-step traps here. Store the thread's last reported target | |
18134 | wait status. | |
18135 | (send_sigstop): Don't clear stop_expected. Always set it, | |
18136 | instead. | |
18137 | (mark_lwp_dead): Remove reference to pending_is_breakpoint. | |
18138 | (cancel_finished_single_step): New. | |
18139 | (cancel_finished_single_steps): New. | |
18140 | (wait_for_sigstop): Don't cancel finished single-step traps here. | |
18141 | (linux_resume_one_lwp): Don't check for removed breakpoints. | |
18142 | Don't set `step' on non-hardware step archs. | |
18143 | (linux_set_resume_request): Ignore resume_stop requests if already | |
18144 | stopping or stopped. Set the lwp's last_resume_kind. | |
18145 | (resume_status_pending_p): Don't check for removed breakpoints. | |
18146 | (need_step_over_p): New. | |
18147 | (start_step_over): New. | |
18148 | (finish_step_over): New. | |
18149 | (linux_resume_one_thread): Always queue a sigstop for resume_stop | |
18150 | requests. Clear the thread's last reported target waitstatus. | |
18151 | Don't use the `suspended' flag. Don't consider pending breakpoints. | |
18152 | (linux_resume): Start a step-over if necessary. | |
18153 | (proceed_one_lwp): New. | |
18154 | (proceed_all_lwps): New. | |
18155 | (unstop_all_lwps): New. | |
18156 | * linux-low.h (struct lwp_info): Rewrite comment for the | |
18157 | `suspended' flag. Add the `stop_pc' field. Delete the | |
18158 | `pending_stop_pc' field. Tweak the `stepping' flag's comment. | |
18159 | Add `'last_resume_kind' and `need_step_over' fields. | |
18160 | * inferiors.c (struct thread_info): Delete, moved elsewhere. | |
18161 | * mem-break.c (struct breakpoint): Delete `reinserting' flag. | |
18162 | Delete `breakpoint_to_reinsert' field. New flag `inserted'. | |
18163 | (set_raw_breakpoint_at): New. | |
18164 | (set_breakpoint_at): Rewrite to use it. | |
18165 | (reinsert_breakpoint_handler): Delete. | |
18166 | (set_reinsert_breakpoint): New. | |
18167 | (reinsert_breakpoint_by_bp): Delete. | |
18168 | (delete_reinsert_breakpoints): New. | |
18169 | (uninsert_breakpoint): Rewrite. | |
18170 | (uninsert_breakpoints_at): New. | |
18171 | (reinsert_breakpoint): Rewrite. | |
18172 | (reinsert_breakpoints_at): New. | |
18173 | (check_breakpoints): Rewrite. | |
18174 | (breakpoint_here): New. | |
18175 | (breakpoint_inserted_here): New. | |
18176 | (check_mem_read): Adjust. | |
18177 | * mem-break.h (breakpoints_supported, breakpoint_here) | |
18178 | (breakpoint_inserted_here, set_reinsert_breakpoint): Declare. | |
18179 | (reinsert_breakpoint_by_bp): Delete declaration. | |
18180 | (delete_reinsert_breakpoints): Declare. | |
18181 | (reinsert_breakpoint): Delete declaration. | |
18182 | (reinsert_breakpoints_at): Declare. | |
18183 | (uninsert_breakpoint): Delete declaration. | |
18184 | (uninsert_breakpoints_at): Declare. | |
18185 | (check_breakpoints): Adjust prototype. | |
18186 | * server.h: Adjust include order. | |
18187 | (struct thread_info): Declare here. Add a `last_status' field. | |
18188 | ||
30ba68cb MS |
18189 | 2010-03-23 Michael Snyder <msnyder@vmware.com> |
18190 | ||
18191 | * server.c (crc32): New function. | |
18192 | (handle_query): Add handling for 'qCRC:' request. | |
18193 | ||
b9a881c2 PA |
18194 | 2010-03-23 Pedro Alves <pedro@codesourcery.com> |
18195 | ||
18196 | * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the | |
18197 | lwp had been stopped by a watchpoint. | |
18198 | ||
e92d13d5 PA |
18199 | 2010-03-16 Pedro Alves <pedro@codesourcery.com> |
18200 | ||
18201 | * server.h (internal_error): Declare. | |
18202 | (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define. | |
18203 | * utils.c (internal_error): New function. | |
18204 | ||
64daa791 AS |
18205 | 2010-03-15 Andreas Schwab <schwab@redhat.com> |
18206 | ||
18207 | * configure.srv: Fix typo setting srv_regobj. | |
18208 | ||
f52cd8cd PA |
18209 | 2010-03-15 Pedro Alves <pedro@codesourcery.com> |
18210 | ||
18211 | * linux-low.c (fetch_register): Avoid passing a non string literal | |
18212 | format to `error'. | |
18213 | (usr_store_inferior_registers): Ditto. | |
18214 | ||
93ae6fdc PA |
18215 | 2010-03-14 Pedro Alves <pedro@codesourcery.com> |
18216 | ||
18217 | * linux-low.c (linux_write_memory): Bail out early if peeking | |
18218 | memory failed. | |
18219 | ||
c3adc08c PA |
18220 | 2010-03-14 Pedro Alves <pedro@codesourcery.com> |
18221 | ||
18222 | * linux-low.h (struct lwp_info): New fields | |
18223 | `stopped_by_watchpoint' and `stopped_data_address'. | |
18224 | * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers | |
18225 | here, and cache them in the lwp object. | |
18226 | (wait_for_sigstop): Check stopped_by_watchpoint lwp field | |
18227 | directly. | |
18228 | (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint | |
18229 | field. | |
18230 | (linux_stopped_by_watchpoint): Rewrite. | |
18231 | (linux_stopped_data_address): Rewrite. | |
18232 | ||
bce522a2 PA |
18233 | 2010-03-06 Simo Melenius <simo.melenius@iki.fi> |
18234 | ||
18235 | * linux-low.c (linux_wait_for_lwp): Fetch the regcache after | |
18236 | switching the current inferior, not before. | |
18237 | ||
90884b2b L |
18238 | 2010-03-01 H.J. Lu <hongjiu.lu@intel.com> |
18239 | ||
18240 | * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c, | |
18241 | reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c, | |
18242 | i386-linux.c and amd64-linux.c. | |
18243 | (reg-i386.o): Removed. | |
18244 | (reg-i386.c): Likewise. | |
18245 | (reg-i386-linux.o): Likewise. | |
18246 | (reg-i386-linux.c): Likewise. | |
18247 | (reg-x86-64.o): Likewise. | |
18248 | (reg-x86-64.c): Likewise. | |
18249 | (reg-x86-64-linux.o): Likewise. | |
18250 | (reg-x86-64-linux.c): Likewise. | |
18251 | (i386.o): New. | |
18252 | (i386.c): Likewise. | |
18253 | (i386-linux.o): Likewise. | |
18254 | (i386-linux.c): Likewise. | |
18255 | (amd64.o): Likewise. | |
18256 | (amd64.c): Likewise. | |
18257 | (amd64-linux.o): Likewise. | |
18258 | (amd64-linux.c): Likewise. | |
18259 | ||
18260 | * configure.srv (srv_i386_regobj): New. | |
18261 | (srv_i386_linux_regobj): Likewise. | |
18262 | (srv_amd64_regobj): Likewise. | |
18263 | (srv_amd64_linux_regobj): Likewise. | |
18264 | (srv_i386_32bit_xmlfiles): Likewise. | |
18265 | (srv_i386_64bit_xmlfiles): Likewise. | |
18266 | (srv_i386_xmlfiles): Likewise. | |
18267 | (srv_amd64_xmlfiles): Likewise. | |
18268 | (srv_i386_linux_xmlfiles): Likewise. | |
18269 | (srv_amd64_linux_xmlfiles): Likewise. | |
18270 | (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set | |
18271 | srv_xmlfiles to $srv_i386_xmlfiles. | |
18272 | (i[34567]86-*-mingw32ce*): Likewise. | |
18273 | (i[34567]86-*-mingw*): Likewise. | |
18274 | (i[34567]86-*-nto*): Likewise. | |
18275 | (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj | |
18276 | and $srv_amd64_linux_regobj. Set srv_xmlfiles to | |
18277 | $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles. | |
18278 | (x86_64-*-linux*): Likewise. | |
18279 | ||
18280 | * linux-x86-low.c (init_registers_x86_64_linux): Removed. | |
18281 | (init_registers_amd64_linux): New. | |
18282 | (x86_arch_setup): Replace init_registers_x86_64_linux with | |
18283 | init_registers_amd64_linux. | |
18284 | ||
193f13e6 MK |
18285 | 2010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com> |
18286 | ||
18287 | * configure.ac: Check for libdl. If it is not available link against | |
18288 | static libthread_db. | |
18289 | * configure: Regenerate. | |
18290 | ||
85d721b8 PA |
18291 | 2010-02-22 Pedro Alves <pedro@codesourcery.com> |
18292 | ||
18293 | PR9605 | |
18294 | ||
18295 | * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if | |
18296 | handing a read watchpoint. | |
18297 | (i386_low_insert_watchpoint): Read watchpoints aren't supported. | |
18298 | ||
6076632b DE |
18299 | 2010-02-12 Doug Evans <dje@google.com> |
18300 | ||
18301 | * linux-low.c (linux_supports_tracefork_flag): Document. | |
18302 | (linux_look_up_symbols): Add comment. | |
18303 | ||
3327ccf7 L |
18304 | 2010-02-03 H.J. Lu <hongjiu.lu@intel.com> |
18305 | ||
18306 | * regcache.c (supply_register): Clear regcache if buf is NULL. | |
18307 | ||
0718675c | 18308 | 2010-02-02 Nicolas Roche <roche@sourceware.org> |
3327ccf7 | 18309 | Joel Brobecker <brobecker@adacore.com> |
0718675c JB |
18310 | |
18311 | * inferiors.c (find_inferior): Add function documentation. | |
18312 | (unloaded_dll): Handle the case where the unloaded dll has not | |
18313 | been previously registered in the dll list. | |
18314 | ||
177321bd DJ |
18315 | 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com> |
18316 | ||
18317 | * linux-arm-low.c (thumb_breakpoint_len): Delete. | |
18318 | (thumb2_breakpoint): New. | |
18319 | (arm_breakpoint_at): Check for Thumb-2 breakpoints. | |
18320 | ||
2b009048 DJ |
18321 | 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com> |
18322 | ||
18323 | * linux-low.c (get_stop_pc): Check for SIGTRAP. | |
18324 | (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible | |
18325 | breakpoints. | |
18326 | ||
3be029c7 PA |
18327 | 2010-01-21 Pedro Alves <pedro@codesourcery.com> |
18328 | ||
18329 | * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes. | |
18330 | ||
18f5de3b JK |
18331 | 2010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com> |
18332 | ||
18333 | * linux-s390-low.c (s390_collect_ptrace_register) | |
18334 | (s390_supply_ptrace_register): Adjust it for the new regcache parameter. | |
18335 | ||
3743bb4f DE |
18336 | 2010-01-21 Doug Evans <dje@google.com> |
18337 | ||
14ce3065 DE |
18338 | * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*. |
18339 | (PTRACE_ARG4_TYPE): New macro. | |
18340 | (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE. | |
18341 | (linux_wait_for_event_1, linux_resume_one_lwp): Ditto. | |
18342 | (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE. | |
18343 | (usr_store_inferior_registers): Ditto. | |
18344 | (linux_read_memory, linux_write_memory): Ditto. | |
18345 | (linux_test_for_tracefork): Ditto. | |
18346 | ||
3743bb4f DE |
18347 | * linux-arm-low.c: Remove redundant include of gdb_proc_service.h. |
18348 | Only include elf.h if gdb_proc_service.h didn't include linux/elf.h. | |
18349 | ||
8b315be5 PA |
18350 | 2010-01-21 Pedro Alves <pedro@codesourcery.com> |
18351 | ||
18352 | * proc-service.c (ps_lgetregs): Don't refetch registers from the | |
18353 | target. | |
18354 | ||
85492558 PA |
18355 | 2010-01-21 Pedro Alves <pedro@codesourcery.com> |
18356 | ||
18357 | * spu-low.c (spu_fetch_registers, spu_store_registers): Change | |
18358 | prototype to take a regcache. Adjust. | |
18359 | ||
442ea881 PA |
18360 | 2010-01-20 Pedro Alves <pedro@codesourcery.com> |
18361 | ||
18362 | * regcache.h (struct thread_info): Forward declare. | |
18363 | (struct regcache): New. | |
18364 | (new_register_cache): Adjust prototype. | |
18365 | (get_thread_regcache): Declare. | |
18366 | (free_register_cache): Adjust prototype. | |
18367 | (registers_to_string, registers_from_string): Ditto. | |
18368 | (supply_register, supply_register_by_name, collect_register) | |
18369 | (collect_register_as_string, collect_register_by_name): Ditto. | |
18370 | * regcache.c (struct inferior_regcache_data): Delete. | |
18371 | (get_regcache): Rename to ... | |
18372 | (get_thread_regcache): ... this. Adjust. Switch inferior before | |
18373 | fetching registers. | |
18374 | (regcache_invalidate_one): Adjust. | |
18375 | (regcache_invalidate): Fix prototype. | |
18376 | (new_register_cache): Return the new register cache. | |
18377 | (free_register_cache): Change prototype. | |
18378 | (realloc_register_cache): Adjust. | |
18379 | (registers_to_string): Change prototype to take a regcache. Adjust. | |
18380 | (registers_from_string): Ditto. | |
18381 | (register_data): Ditto. | |
18382 | (supply_register): Ditto. | |
18383 | (supply_register_by_name): Ditto. | |
18384 | (collect_register): Ditto. | |
18385 | (collect_register_as_string): Ditto. | |
18386 | (collect_register_by_name): Ditto. | |
18387 | * server.c (process_serial_event): Adjust. | |
18388 | * linux-low.h (regset_fill_func, regset_store_func): Change | |
18389 | prototype. | |
18390 | (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register): | |
18391 | Change prototype. | |
18392 | * linux-low.c (get_stop_pc): Adjust. | |
18393 | (check_removed_breakpoint): Adjust. | |
18394 | (linux_wait_for_event): Adjust. | |
18395 | (linux_resume_one_lwp): Adjust. | |
18396 | (fetch_register): Add regcache parameter. Adjust. | |
18397 | (usr_store_inferior_registers): Ditto. | |
18398 | (regsets_fetch_inferior_registers): Ditto. | |
18399 | (regsets_store_inferior_registers): Ditto. | |
18400 | (linux_fetch_registers, linux_store_registers): Ditto. | |
18401 | * i387-fp.c (i387_cache_to_fsave): Change prototype to take a | |
18402 | regcache. Adjust. | |
43aaf8b6 PA |
18403 | (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache): |
18404 | Ditto. | |
442ea881 PA |
18405 | * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change |
18406 | prototype to take a regcache. | |
18407 | (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto. | |
18408 | * remote-utils.c (convert_ascii_to_int, outreg) | |
18409 | (prepare_resume_reply): Change prototype to take a regcache. | |
18410 | Adjust. | |
18411 | * target.h (struct target_ops) <fetch_registers, store_registers>: | |
18412 | Change prototype to take a regcache. | |
18413 | (fetch_inferior_registers, store_inferior_registers): Change | |
18414 | prototype to take a regcache. Adjust. | |
18415 | * proc-service.c (ps_lgetregs): Adjust. | |
18416 | * linux-x86-low.c (x86_fill_gregset, x86_store_gregset) | |
18417 | (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset) | |
18418 | (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to | |
18419 | take a regcache. Adjust. | |
18420 | * linux-arm-low.c (arm_fill_gregset, arm_store_gregset) | |
18421 | (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset) | |
18422 | (arm_store_vfpregset, arm_get_pc, arm_set_pc): | |
18423 | (arm_breakpoint_at): Change prototype to take a regcache. Adjust. | |
18424 | * linux-cris-low.c (cris_get_pc, cris_set_pc) | |
18425 | (cris_cannot_fetch_register): | |
18426 | (cris_breakpoint_at): Change prototype to take a regcache. | |
18427 | Adjust. | |
18428 | * linux-crisv32-low.c (cris_get_pc, cris_set_pc, | |
18429 | cris_reinsert_addr, cris_write_data_breakpoint): Change prototype | |
18430 | to take a regcache. Adjust. | |
18431 | (cris_breakpoint_at, cris_insert_point, cris_remove_point): | |
18432 | Adjust. | |
18433 | * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to | |
18434 | take a regcache. Adjust. | |
18435 | * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset) | |
18436 | (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc, | |
18437 | (m68k_set_pc): Change prototype to take a regcache. Adjust. | |
18438 | * linux-mips-low.c (mips_get_pc): | |
18439 | (mips_set_pc): Change prototype to take a regcache. Adjust. | |
18440 | (mips_reinsert_addr): Adjust. | |
18441 | (mips_collect_register): Change prototype to take a regcache. | |
18442 | Adjust. | |
18443 | (mips_supply_register): | |
18444 | (mips_collect_register_32bit, mips_supply_register_32bit) | |
18445 | (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset) | |
18446 | (mips_store_fpregset): Ditto. | |
43aaf8b6 PA |
18447 | * linux-ppc-low.c (ppc_supply_ptrace_register) |
18448 | (ppc_supply_ptrace_register): Ditto. | |
442ea881 PA |
18449 | (parse_spufs_run): Adjust. |
18450 | (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset) | |
18451 | (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset) | |
18452 | (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to | |
18453 | take a regcache. Adjust. | |
18454 | * linux-s390-low.c (s390_collect_ptrace_register) | |
18455 | (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc) | |
18456 | (s390_set_pc): Change prototype to take a regcache. Adjust. | |
18457 | (s390_arch_setup): Adjust. | |
18458 | * linux-sh-low.c (sh_get_pc, sh_breakpoint_at) | |
18459 | (sh_fill_gregset): Change prototype to take a regcache. Adjust. | |
18460 | * linux-sparc-low.c (sparc_fill_gregset_to_stack) | |
18461 | (sparc_fill_gregset, sparc_store_gregset_from_stack) | |
18462 | (sparc_store_gregset, sparc_get_pc): Change prototype to take a | |
18463 | regcache. Adjust. | |
18464 | (sparc_breakpoint_at): Adjust. | |
18465 | * linux-xtensa-low.c (xtensa_fill_gregset): | |
18466 | (xtensa_store_gregset): | |
18467 | (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc) | |
18468 | (xtensa_set_pc): Change prototype to take a regcache. Adjust. | |
18469 | * nto-low.c (nto_fetch_registers, nto_store_registers): Change | |
18470 | prototype to take a regcache. Adjust. | |
18471 | * win32-arm-low.c (arm_fetch_inferior_register) | |
18472 | (arm_store_inferior_register): Change prototype to take a | |
18473 | regcache. Adjust. | |
18474 | * win32-i386-low.c (i386_fetch_inferior_register) | |
18475 | (i386_store_inferior_register): Change prototype to take a | |
18476 | regcache. Adjust. | |
18477 | * win32-low.c (child_fetch_inferior_registers) | |
18478 | (child_store_inferior_registers): Change prototype to take a | |
18479 | regcache. Adjust. | |
18480 | (win32_wait): Adjust. | |
18481 | (win32_fetch_inferior_registers): Change prototype to take a | |
18482 | regcache. Adjust. | |
18483 | (win32_store_inferior_registers): Adjust. | |
18484 | * win32-low.h (struct win32_target_ops) <fetch_inferior_register, | |
18485 | store_inferior_register>: Change prototype to take a regcache. | |
18486 | ||
60c3d7b0 DE |
18487 | 2010-01-20 Doug Evans <dje@google.com> |
18488 | ||
18489 | * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in | |
18490 | #ifdef. | |
18491 | (linux_wait_for_event1, linux_init_signals): Ditto. | |
ec8ebe72 | 18492 | (W_STOPCODE): Provide definition if missing. |
60c3d7b0 | 18493 | |
dc146f7c VP |
18494 | 2010-01-13 Vladimir Prus <vladimir@codesourcery.com> |
18495 | ||
18496 | * linux-low.c (linux_core_of_thread): New. | |
18497 | (compare_ints, show_process, list_threads): New. | |
18498 | (linux_qxfer_osdata): Report threads and cores. | |
18499 | (linux_target_op): Register linux_core_of_thread. | |
18500 | * remote-utils.c (prepare_resume_reply): Report the core. | |
18501 | (buffer_xml_printf): Support %d specifier. | |
18502 | * server.c (handle_threads_qxfer_proper, handle_threads_qxfer): | |
18503 | New. | |
18504 | (handle_query): Handle qXfer:threads. Announce availability | |
18505 | thereof. | |
18506 | * target.h (struct target_ops): New field core_of_thread. | |
18507 | ||
7803799a UW |
18508 | 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com> |
18509 | ||
18510 | * Makefile.in (clean): Remove new generated files. | |
18511 | (reg-s390.o, reg-s390.c): Remove rules. | |
18512 | (reg-s390x.o, reg-s390x.c): Likewise. | |
18513 | (s390-linux32.o, s390-linux32.c): Add rules. | |
18514 | (s390-linux64.o, s390-linux64.c): Likewise. | |
18515 | (s390x-linux64.o, s390x-linux64.c): Likewise. | |
18516 | * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles. | |
18517 | * linux-s390-low.c: Include <elf.h>. | |
18518 | (HWCAP_S390_HIGH_GPRS): Define if undefined. | |
18519 | (init_registers_s390): Remove prototype. | |
18520 | (init_registers_s390x): Likewise. | |
18521 | (init_registers_s390_linux32): Add prototype. | |
18522 | (init_registers_s390_linux64): Likewise. | |
18523 | (init_registers_s390x_linux64): Likewise. | |
18524 | (s390_num_regs_3264): New define. | |
18525 | (s390_regmap_3264): New global variable. | |
18526 | (s390_cannot_fetch_register): Remove obsolete check. | |
18527 | (s390_cannot_store_register): Likewise. | |
18528 | (s390_collect_ptrace_register): Handle upper/lower register halves. | |
18529 | (s390_supply_ptrace_register): Likewise. | |
18530 | (s390_fill_gregset): Update to register number changes. | |
18531 | (s390_get_hwcap): New routine. | |
18532 | (s390_arch_setup): Detect 32-bit process running on 64-bit system. | |
18533 | Install appropriate regmap and register set. | |
18534 | ||
6e7ffa39 JB |
18535 | 2010-01-01 Joel Brobecker <brobecker@adacore.com> |
18536 | ||
18537 | * server.c (gdbserver_version): Update copyright year to 2010. | |
18538 | * gdbreplay.c (gdbreplay_version): Likewise. | |
18539 | ||
957f3f49 DE |
18540 | 2009-12-28 Doug Evans <dje@google.com> |
18541 | ||
18542 | * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h, | |
18543 | elf/external.h. Include <elf.h> instead but only if necessary. | |
18544 | ||
ca5c370d PA |
18545 | 2009-12-28 Pedro Alves <pedro@codesourcery.com> |
18546 | ||
18547 | * linux-low.c (linux_remove_process): Remove `detaching' | |
18548 | parameter. Don't release/detach from thread_db here. | |
18549 | (linux_kill): Release/detach from thread_db here, ... | |
18550 | (linux_detach): ... and here, before actually detaching. | |
18551 | (linux_wait_1): ... and here, when a process exits. | |
18552 | * thread-db.c (any_thread_of): New. | |
18553 | (thread_db_free): Switch the current inferior to a thread of the | |
18554 | passed in process. | |
18555 | ||
4ee62156 DE |
18556 | 2009-12-21 Doug Evans <dje@google.com> |
18557 | ||
d90e6a88 DE |
18558 | * linux-x86-low.c: Delete outdated comment about Elf32_Phdr. |
18559 | ||
c5f62d5f DE |
18560 | * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill. |
18561 | Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc | |
18562 | warning ifndef __NR_tkill. Move setting of errno there too. | |
18563 | Delete unnecessary resetting of errno after syscall. | |
18564 | Minor comment changes to match gdb/linux-nat.c:kill_lwp. | |
18565 | ||
10e86dd7 DE |
18566 | * configure.ac: Check for dladdr. |
18567 | * config.in: Regenerate. | |
18568 | * configure: Regenerate. | |
18569 | * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR. | |
18570 | (try_thread_db_load): Update. | |
18571 | ||
4ee62156 DE |
18572 | * linux-low.c (my_waitpid): Delete unnecessary prototype. |
18573 | ||
00f515da DE |
18574 | 2009-12-18 Doug Evans <dje@google.com> |
18575 | ||
e9464885 DE |
18576 | * event-loop.c: Include unistd.h if it exists. |
18577 | ||
07d4f67e DE |
18578 | * linux-low.c (my_waitpid): Move definition away from being in |
18579 | between linux_tracefork_child/linux_test_for_tracefork. | |
18580 | ||
00f515da DE |
18581 | * gdb_proc_service.h (psaddr_t): Fix type. |
18582 | * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix | |
18583 | signature to match glibc. | |
18584 | ||
1de1badb DE |
18585 | 2009-12-16 Doug Evans <dje@google.com> |
18586 | ||
18587 | * linux-low.c (linux_read_memory): Fix argument to read. | |
18588 | ||
aeeb81d1 PA |
18589 | 2009-11-26 Pedro Alves <pedro@codesourcery.com> |
18590 | ||
18591 | * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT | |
18592 | events, don't leave current_inferior pointing at null. | |
18593 | ||
10357975 PA |
18594 | 2009-11-26 Pedro Alves <pedro@codesourcery.com> |
18595 | ||
18596 | * win32-low.c (LOG): Delete. | |
18597 | (OUTMSG): Output to stderr. | |
18598 | (OUTMSG2): Conditionalize on `debug_threads' variable, instead of | |
18599 | on compile time LOG macro. | |
18600 | (win32_wait): Fix debug output. | |
18601 | ||
cf6e3471 PA |
18602 | 2009-11-26 Pedro Alves <pedro@codesourcery.com> |
18603 | ||
18604 | * win32-low.c (win32_add_one_solib): If the dll name is | |
18605 | "ntdll.dll", prepend the system directory to the dll path. | |
18606 | ||
0c85e18e MK |
18607 | 2009-11-17 Daniel Jacobowitz <dan@codesourcery.com> |
18608 | ||
18609 | * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization. | |
18610 | ||
9ac544ce | 18611 | 2009-11-17 Nathan Sidwell <nathan@codesourcery.com> |
889bf7c5 | 18612 | Vladimir Prus <vladimir@codesourcery.com> |
9ac544ce MK |
18613 | |
18614 | * Makefile.in (reg-cf.o, reg-cf.c): New targets. | |
18615 | * configure.ac: Check for __mcoldfire__ and set | |
18616 | gdb_cv_m68k_is_coldfire. | |
18617 | * configure.srv: Use gdb_cv_m68k_is_coldfire to select between | |
18618 | reg-cf.o and reg-m68k.o. | |
18619 | * configure: Regenerated. | |
18620 | ||
fd7dd3e6 PA |
18621 | 2009-11-16 Pedro Alves <pedro@codesourcery.com> |
18622 | ||
18623 | * linux-low.c (linux_remove_process): Add `detaching' parameter. | |
18624 | Pass it to thread_db_free. | |
18625 | (linux_kill, linux_detach, linux_wait_1): Adjust to pass the | |
18626 | proper `detaching' argument to linux_remove_process. | |
18627 | * linux-low.h (thread_db_free): Add `detaching' parameter. | |
18628 | * thread-db.c (thread_db_init): Pass false as `detaching' argument | |
18629 | to thread_db_free. | |
18630 | (thread_db_free): Add `detaching' parameter. Only | |
18631 | call td_ta_clear_event if detaching from process. | |
18632 | ||
75aa492e MK |
18633 | 2009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com> |
18634 | ||
18635 | * thread-db.c (thread_db_free): Fix typo. | |
18636 | ||
21e1bee4 PP |
18637 | 2009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com> |
18638 | ||
18639 | PR gdb/10838 | |
18640 | * thread-db.c (thread_db_free): Call td_ta_clear_event. | |
18641 | ||
8838b45e NS |
18642 | 2009-11-03 Nathan Sidwell <nathan@codesourcery.com> |
18643 | ||
18644 | * configure.ac (i[34567]86-*): Check if we're targetting x86-64 | |
18645 | with an i686 compiler. | |
18646 | * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if | |
18647 | needed. | |
18648 | * configure: Rebuilt. | |
18649 | ||
8a35fb51 SL |
18650 | 2009-10-29 Sandra Loosemore <sandra@codesourcery.com> |
18651 | ||
18652 | PR gdb/10783 | |
18653 | ||
18654 | * server.c (handle_search_memory_1): Correct read_addr initialization | |
18655 | in loop for searching subsequent chunks. | |
18656 | ||
96f15937 PP |
18657 | 2009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com> |
18658 | ||
18659 | * configure.ac: New --with-libthread-db option. | |
18660 | * thread-db.c: Allow direct dependence on libthread_db. | |
18661 | (thread_db_free): Adjust. | |
18662 | * config.in: Regenerate. | |
18663 | * configure: Likewise. | |
889bf7c5 | 18664 | |
5f7d1694 PP |
18665 | 2009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com> |
18666 | ||
18667 | PR gdb/10757 | |
18668 | * thread-db.c (attach_thread): New function. | |
18669 | (maybe_attach_thread): Return success/failure. | |
18670 | (find_new_threads_callback): Adjust. | |
889bf7c5 PA |
18671 | (thread_db_find_new_threads): Loop until no new threads. |
18672 | ||
88e3b899 PA |
18673 | 2009-10-13 Pedro Alves <pedro@codesourcery.com> |
18674 | ||
18675 | * proc-service.c (ps_lgetregs): Formatting. | |
18676 | ||
cdbfd419 PP |
18677 | 2009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com> |
18678 | ||
18679 | * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove. | |
18680 | * configure.ac: Adjust. | |
18681 | * linux-low.h (struct process_info_private): Move members to struct | |
18682 | thread_db. | |
18683 | (thread_db_free, thread_db_handle_monitor_command): New prototype. | |
18684 | * linux-low.c (linux_remove_process): Adjust. | |
18685 | (linux_wait_for_event_1, linux_look_up_symbols): Likewise. | |
18686 | * server.c (handle_query): Move code ... | |
18687 | (handle_monitor_command): ... here. New function. | |
18688 | * target.h (struct target_ops): New member. | |
18689 | * thread-db.c (struct thread_db): New. | |
18690 | (libthread_db_search_path): New variable. | |
18691 | (thread_db_create_event, thread_db_enable_reporting) | |
18692 | (find_one_thread, maybe_attach_thread, find_new_threads_callback) | |
18693 | (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust. | |
18694 | (try_thread_db_load_1, dladdr_to_soname): New functions. | |
18695 | (try_thread_db_load, thread_db_load_search): New functions. | |
18696 | (thread_db_init): Search for libthread_db. | |
18697 | (thread_db_free): New function. | |
18698 | (thread_db_handle_monitor_command): Likewise. | |
18699 | * config.in: Regenerate. | |
18700 | * configure: Regenerate. | |
889bf7c5 | 18701 | |
4168d2d6 UW |
18702 | 2009-09-27 Ulrich Weigand <uweigand@de.ibm.com> |
18703 | ||
18704 | * spu-low.c (spu_kill): Wait for inferior to terminate. | |
18705 | Call clear_inferiors. | |
18706 | (spu_detach): Call clear_inferiors. | |
18707 | ||
81ecdfbb RW |
18708 | 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
18709 | ||
18710 | * aclocal.m4: Regenerate. | |
18711 | * config.in: Likewise. | |
18712 | * configure: Likewise. | |
18713 | ||
0b9ff2c0 UW |
18714 | 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com> |
18715 | ||
18716 | * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define. | |
18717 | (parse_spufs_run): New function. | |
18718 | (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC. | |
18719 | (ppc_breakpoint_at): Handle SPU breakpoints. | |
18720 | ||
efcbbd14 UW |
18721 | 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com> |
18722 | ||
18723 | * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>. | |
18724 | (SPUFS_MAGIC): Define. | |
18725 | (spu_enumerate_spu_ids): New function. | |
18726 | (linux_qxfer_spu): New function. | |
18727 | (linux_target_ops): Install linux_qxfer_spu. | |
18728 | ||
f4d9bade UW |
18729 | 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com> |
18730 | ||
18731 | * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o | |
18732 | and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml | |
18733 | and rs6000/powerpc-cell64l.xml to srv_xmlfiles. | |
18734 | * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules. | |
18735 | (powerpc-cell64l.o, powerpc-cell64l.c): Likewise. | |
18736 | (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c. | |
18737 | * linux-ppc-low.c (PPC_FEATURE_CELL): Define. | |
18738 | (init_registers_powerpc_cell32l): Add prototype. | |
18739 | (init_registers_powerpc_cell64l): Likewise. | |
18740 | (ppc_arch_setup): Detect Cell/B.E. architecture. | |
18741 | ||
96e946ca RW |
18742 | 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
18743 | ||
18744 | * Makefile.in (datarootdir): New variable. | |
18745 | ||
58d6951d DJ |
18746 | 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com> |
18747 | ||
18748 | * linux-low.c (linux_write_memory): Update debugging output. | |
18749 | * Makefile.in (clean): Add new descriptions. | |
18750 | (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o) | |
18751 | (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules. | |
18752 | * configure.srv: Add new files for arm*-*-linux*. | |
18753 | * linux-arm-low.c: Add new declarations. | |
18754 | (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined. | |
18755 | (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3) | |
18756 | (HWCAP_VFPv3D16): New. | |
18757 | (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT | |
18758 | instead of __IWMMXT__. | |
18759 | (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap) | |
18760 | (arm_arch_setup): New. | |
18761 | (target_regsets): Remove #ifdef. Add VFP regset. | |
18762 | (the_low_target): Use arm_arch_setup. | |
18763 | ||
12b42a12 DJ |
18764 | 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com> |
18765 | ||
18766 | * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip | |
18767 | the main thread again. | |
18768 | ||
ac8c974e AR |
18769 | 2009-07-06 Aleksandar Ristovski <aristovski@qnx.com> |
18770 | ||
18771 | Adding Neutrino gdbserver. | |
18772 | * configure: Regenerated. | |
18773 | * configure.ac: Add case for srv_qnx and set LIBS accordingly. | |
18774 | * configure.srv (i[34567]86-*-nto*): New target. | |
18775 | * nto-low.c, nto-low.h, nto-x86-low.c: New files. | |
18776 | * remote-utils.c [__QNX__]: Include sys/iomgr.h | |
18777 | (nto_comctrl) [__QNX__]: New function. | |
18778 | (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl. | |
18779 | ||
4424e0c3 | 18780 | 2009-07-05 Danny Backx <dannybackx@users.sourceforge.net> |
7437790a PA |
18781 | |
18782 | * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to | |
18783 | srv_tgtobj. | |
18784 | ||
912cf4ba PA |
18785 | 2009-07-04 Danny Backx <dannybackx@users.sourceforge.net> |
18786 | Pedro Alves <pedro@codesourcery.com> | |
18787 | ||
18788 | * win32-i386-low.c (i386_get_thread_context): Handle systems that | |
18789 | don't support CONTEXT_EXTENDED_REGISTERS. | |
18790 | (i386_win32_breakpoint, i386_win32_breakpoint_len): New. | |
18791 | (the_low_target): Install them. | |
18792 | * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent | |
18793 | failing with ERROR_PIPE_NOT_CONNECTED. | |
18794 | ||
aa5ca48f DE |
18795 | 2009-06-30 Doug Evans <dje@google.com> |
18796 | Pierre Muller <muller@ics.u-strasbg.fr> | |
18797 | ||
18798 | Add h/w watchpoint support to x86-linux, win32-i386. | |
18799 | * Makefile.in (SFILES): Add i386-low.c | |
18800 | (i386_low_h): Define. | |
18801 | (i386-low.o): Add dependencies. | |
18802 | (linux-x86-low.o): Add i386-low.h dependency. | |
18803 | (win32-i386-low.o): Ditto. | |
18804 | * i386-low.c: New file. | |
18805 | * i386-low.h: New file. | |
18806 | * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj. | |
18807 | (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto. | |
18808 | * linux-low.c (linux_add_process): Initialize arch_private. | |
18809 | (linux_remove_process): Free arch_private. | |
18810 | (add_lwp): Initialize arch_private. | |
18811 | (delete_lwp): Free arch_private. | |
18812 | (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if | |
18813 | provided. | |
18814 | * linux-low.h (process_info_private): New member arch_private. | |
18815 | (lwp_info): New member arch_private. | |
18816 | (linux_target_ops): New members new_process, new_thread, | |
18817 | prepare_to_resume. | |
18818 | (ptid_of): New macro. | |
18819 | * linux-x86-low.c: Include stddef.h, i386-low.h. | |
18820 | (arch_process_info): New struct. | |
18821 | (arch_lwp_info): New struct. | |
18822 | (x86_linux_dr_get, x86_linux_dr_set): New functions. | |
18823 | (i386_dr_low_set_addr, i386_dr_low_set_control): New functions. | |
18824 | (i386_dr_low_get_status): New function. | |
18825 | (x86_insert_point, x86_remove_point): New functions. | |
18826 | (x86_stopped_by_watchpoint): New function. | |
18827 | (x86_stopped_data_address): New function. | |
18828 | (x86_linux_new_process, x86_linux_new_thread): New functions. | |
18829 | (x86_linux_prepare_to_resume): New function. | |
18830 | (the_low_target): Add entries for insert_point, remove_point, | |
18831 | stopped_by_watchpoint, stopped_data_address, new_process, new_thread, | |
18832 | prepare_to_resume. | |
18833 | * server.c (debug_hw_points): New global. | |
18834 | (monitor_show_help): Document set debug-hw-points. | |
18835 | (handle_query): Process "set debug-hw-points". | |
18836 | * server.h (debug_hw_points): Declare. | |
18837 | (paddress): Declare. | |
18838 | * utils.c (NUMCELLS, CELLSIZE): New macros. | |
18839 | (get_sell, xsnprintf, paddress): New functions. | |
18840 | * win32-arm-low.c (the_low_target): Add entries for insert_point, | |
18841 | remove_point, stopped_by_watchpoint, stopped_data_address. | |
18842 | * win32-i386-low.c: Include i386-low.h. | |
18843 | (debug_reg_state): Replaces dr. | |
18844 | (i386_dr_low_set_addr, i386_dr_low_set_control): New functions. | |
18845 | (i386_dr_low_get_status): New function. | |
18846 | (i386_insert_point, i386_remove_point): New functions. | |
18847 | (i386_stopped_by_watchpoint): New function. | |
18848 | (i386_stopped_data_address): New function. | |
18849 | (i386_initial_stuff): Update. | |
18850 | (get_thread_context,set_thread_context,i386_thread_added): Update. | |
18851 | (the_low_target): Add entries for insert_point, | |
18852 | remove_point, stopped_by_watchpoint, stopped_data_address. | |
18853 | * win32-low.c (win32_insert_watchpoint): New function. | |
18854 | (win32_remove_watchpoint): New function. | |
18855 | (win32_stopped_by_watchpoint): New function. | |
18856 | (win32_stopped_data_address): New function. | |
18857 | (win32_target_ops): Add entries for insert_watchpoint, | |
18858 | remove_watchpoint, stopped_by_watchpoint, stopped_data_address. | |
18859 | * win32-low.h (win32_target_ops): New members insert_point, | |
18860 | remove_point, stopped_by_watchpoint, stopped_data_address. | |
18861 | ||
d993e290 PA |
18862 | 2009-06-25 Pedro Alves <pedro@codesourcery.com> |
18863 | ||
18864 | * server.c (process_serial_event): Re-return unsupported, not | |
18865 | error, if the type isn't recognized. Re-allow supporting only | |
18866 | insert or remove packets. Also call require_running for | |
18867 | breakpoints. Add missing break statement to default case. Tidy. | |
18868 | * target.h (struct target_ops): Rename insert_watchpoint to | |
18869 | insert_point, and remove_watchpoint to remove_point. | |
18870 | ||
18871 | * linux-low.h (struct linux_target_ops): Likewise. | |
18872 | * linux-low.c (linux_insert_watchpoint): Rename to ... | |
18873 | (linux_insert_point): ... this. Adjust. | |
18874 | (linux_remove_watchpoint): Rename to ... | |
18875 | (linux_remove_point): ... this. Adjust. | |
18876 | (linux_target_ops): Adjust. | |
18877 | * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ... | |
18878 | (cris_insert_point): ... this. | |
18879 | (cris_remove_watchpoint): Rename to ... | |
18880 | (cris_remove_point): ... this. | |
18881 | (the_low_target): Adjust. | |
18882 | ||
0f54c268 PM |
18883 | 2009-06-24 Pierre Muller <muller@ics.u-strasbg.fr> |
18884 | ||
18885 | * server.c (handle_v_kill): Pass signal_pid to | |
18886 | kill_inferior if multi_process is zero. | |
18887 | ||
c6314022 AR |
18888 | 2009-06-23 Aleksandar Ristovski <aristovski@qnx.com> |
18889 | ||
18890 | * server.c (process_serial_event): Add support for Z0 and Z1 packet. | |
18891 | * target.h (target_ops): Comment for *_watchpoint to make it clear | |
18892 | the functions can get types '0' and '1'. | |
18893 | ||
4463ce24 AR |
18894 | 2009-06-22 Aleksandar Ristovski <aristovski@qnx.com> |
18895 | ||
18896 | * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0. | |
18897 | * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers. | |
18898 | * regcache.c (get_regcache): Likewise. | |
18899 | * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion. | |
18900 | * win32-low.c (child_fetch_inferior_registers): Remove check for | |
18901 | regno 0. | |
18902 | ||
cf8fd78b PA |
18903 | 2009-06-19 Aleksandar Ristovski <aristovski@qnx.com> |
18904 | Pedro Alves <pedro@codesourcery.com> | |
18905 | ||
18906 | * target.h (struct target_ops) <supports_multi_process>: New | |
18907 | callback. | |
18908 | (target_supports_multi_process): New. | |
18909 | * server.c (handle_query): Even if GDB reports support, only | |
18910 | enable multi-process if the target also supports it. Report | |
18911 | multi-process support only if the target backend supports it. | |
18912 | * linux-low.c (linux_supports_multi_process): New function. | |
18913 | (linux_target_ops): Install it as target_supports_multi_process | |
18914 | callback. | |
18915 | ||
47c0c975 DE |
18916 | 2009-05-24 Doug Evans <dje@google.com> |
18917 | ||
e09875d4 DE |
18918 | Global renaming of find_thread_pid to find_thread_ptid. |
18919 | * server.h (find_thread_ptid): Renamed from find_thread_pid. | |
18920 | * inferiors.c (find_thread_ptid): Renamed from find_thread_pid. | |
18921 | All callers updated. | |
18922 | ||
e27d73f6 DE |
18923 | * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp |
18924 | to resume the newly created thread, don't call ptrace (PTRACE_CONT) | |
18925 | directly. | |
18926 | ||
47c0c975 DE |
18927 | * linux-low.c (get_stop_pc): Print pc if debug_threads. |
18928 | (check_removed_breakpoint, linux_wait_for_lwp): Ditto. | |
18929 | (linux_resume_one_lwp): Ditto. | |
18930 | ||
2acc282a DE |
18931 | 2009-05-23 Doug Evans <dje@google.com> |
18932 | ||
18933 | * linux-low.c (linux_resume_one_lwp): Change type of first arg | |
18934 | from struct inferior_list_entry * to struct lwp_info *. | |
18935 | All callers updated. | |
18936 | ||
9f1036c1 DE |
18937 | 2009-05-13 Doug Evans <dje@google.com> |
18938 | ||
18939 | * linux-x86-low.c: Don't include assert.h. | |
18940 | (x86_siginfo_fixup): Use fatal, not assert. | |
18941 | (x86_arch_setup): Fix comment. | |
18942 | ||
d0722149 DE |
18943 | 2009-05-12 Doug Evans <dje@google.com> |
18944 | ||
18945 | Biarch support for i386/amd64 gdbserver. | |
18946 | * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c. | |
18947 | Add linux-x86-low.c. | |
18948 | (linux-i386-low.o, linux-x86-64-low.o): Delete. | |
18949 | (linux-x86-low.o): Add. | |
18950 | * linux-x86-64-low.c: Delete. | |
18951 | * linux-i386-low.c: Delete. | |
18952 | * linux-x86-low.c: New file. | |
18953 | * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with | |
18954 | linux-x86-low.o. | |
18955 | (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with | |
18956 | linux-x86-low.o. | |
18957 | (x86_64-linux srv_regobj): Add reg-i386-linux.o. | |
18958 | * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h. | |
18959 | (linux_child_pid_to_exec_file): New function. | |
18960 | (elf_64_header_p, elf_64_file_p): New functions. | |
18961 | (siginfo_fixup): New function. | |
18962 | (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to | |
18963 | give target a chance to convert layout. | |
18964 | * linux-low.h (linux_target_ops): New member siginfo_fixup. | |
18965 | (linux_child_pid_to_exec_file, elf_64_file_p): Declare. | |
18966 | ||
fdeb2a12 DE |
18967 | 2009-05-07 Doug Evans <dje@google.com> |
18968 | ||
18969 | * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak. | |
18970 | (regsets_store_inferior_registers): Ditto. | |
18971 | ||
a6dbe5df PA |
18972 | 2009-05-06 Pedro Alves <pedro@codesourcery.com> |
18973 | ||
18974 | PR server/10048 | |
18975 | ||
18976 | * linux-low.c (must_set_ptrace_flags): Delete. | |
18977 | (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead | |
18978 | of the global. | |
18979 | (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set | |
18980 | `lwp->must_set_ptrace_flags' instead. | |
ba42693b | 18981 | (linux_wait_for_event_1): Set ptrace options here. |
a6dbe5df PA |
18982 | (linux_wait_1): ... not here. |
18983 | ||
5091eb23 DE |
18984 | 2009-04-30 Doug Evans <dje@google.com> |
18985 | ||
9f767825 DE |
18986 | * inferiors.c (started_inferior_callback): New function. |
18987 | (attached_inferior_callback): New function. | |
18988 | (have_started_inferiors_p, have_attached_inferiors_p): New functions. | |
18989 | * server.c (print_started_pid, print_attached_pid): New functions. | |
18990 | (detach_or_kill_for_exit): New function. | |
18991 | (main): Call it instead of for_each_inferior (kill_inferior_callback). | |
18992 | * server.h (have_started_inferiors_p): Declare. | |
18993 | (have_attached_inferiors_p): Declare. | |
18994 | ||
5091eb23 DE |
18995 | * inferiors.c (remove_process): Fix memory leak, free process. |
18996 | * linux-low.c (linux_remove_process): New function. | |
18997 | (linux_kill): Call it instead of remove_process. | |
18998 | (linux_detach, linux_wait_1): Ditto. | |
18999 | ||
155c8968 PA |
19000 | 2009-04-19 Danny Backx <dannybackx@users.sourceforge.net> |
19001 | ||
19002 | * configure.srv: Add x86 Windows CE target. | |
19003 | ||
7fe519cb UW |
19004 | 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com> |
19005 | ||
19006 | * inferiors.c (get_thread_process): Make global. | |
19007 | * server.h (get_thread_process): Add prototype. | |
19008 | * thread-db.c (find_one_thread): Use get_thread_process | |
19009 | instead of current_process. | |
19010 | (thread_db_get_tls_address): Do not crash if called when | |
19011 | thread layer is not yet initialized. | |
19012 | ||
5472f405 UW |
19013 | 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com> |
19014 | ||
19015 | * remote-utils.c (prepare_resume_reply): Null-terminate packet. | |
19016 | * spu-low.c (current_tid): Rename to ... | |
19017 | (current_ptid): ... this. | |
19018 | (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory, | |
19019 | spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use | |
19020 | ptid_get_lwp (current_ptid) instead of current_tid. | |
19021 | (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument | |
19022 | instead of current_tid. Use find_process_pid to verify pid | |
19023 | argument is valid. Pass proper argument to remove_process. | |
19024 | (spu_thread_alive): Compare current_ptid instead of current_tid. | |
19025 | (spu_resume): Likewise. | |
19026 | ||
55ac2b99 PA |
19027 | 2009-04-02 Pedro Alves <pedro@codesourcery.com> |
19028 | ||
19029 | * linux-low.c (usr_store_inferior_registers): Declare local `pid' | |
19030 | variable. | |
19031 | ||
95954743 PA |
19032 | 2009-04-01 Pedro Alves <pedro@codesourcery.com> |
19033 | ||
19034 | Implement the multiprocess extensions, and add linux multiprocess | |
19035 | support. | |
19036 | ||
19037 | * server.h (ULONGEST): Declare. | |
19038 | (struct ptid, ptid_t): New. | |
19039 | (minus_one_ptid, null_ptid): Declare. | |
19040 | (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp) | |
19041 | (ptid_get_tid, ptid_equal, ptid_is_pid): Declare. | |
19042 | (struct inferior_list_entry): Change `id' type from unsigned from | |
19043 | to ptid_t. | |
19044 | (struct sym_cache, struct breakpoint, struct | |
19045 | process_info_private): Forward declare. | |
19046 | (struct process_info): Declare. | |
19047 | (current_process): Declare. | |
19048 | (all_processes): Declare. | |
19049 | (initialize_inferiors): Declare. | |
19050 | (add_thread): Adjust to use ptid_t. | |
19051 | (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto. | |
19052 | (add_process, remove_process, find_thread_pid): Declare. | |
19053 | (find_inferior_id): Adjust to use ptid_t. | |
19054 | (cont_thread, general_thread, step_thread): Change type to ptid_t. | |
19055 | (multi_process): Declare. | |
19056 | (push_event): Adjust to use ptid_t. | |
19057 | (read_ptid, write_ptid): Declare. | |
19058 | (prepare_resume_reply): Adjust to use ptid_t. | |
19059 | (clear_symbol_cache): Declare. | |
19060 | * inferiors.c (all_processes): New. | |
19061 | (null_ptid, minus_one_ptid): New. | |
19062 | (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp) | |
19063 | (ptid_get_tid, ptid_equal, ptid_is_pid): New. | |
19064 | (add_thread): Change unsigned long to ptid. Remove gdb_id | |
19065 | parameter. Adjust. | |
19066 | (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid. | |
19067 | (gdb_id_to_thread): Rename to ... | |
19068 | (find_thread_pid): ... this. Change unsigned long to ptid. | |
19069 | (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid. | |
19070 | (loaded_dll, pull_pid_from_list): Adjust. | |
19071 | (add_process, remove_process, find_process_pid) | |
19072 | (get_thread_process, current_process, initialize_inferiors): New. | |
19073 | * target.h (struct thread_resume) <thread>: Change type to ptid_t. | |
19074 | (struct target_waitstatus) <related_pid>: Ditto. | |
19075 | (struct target_ops) <kill, detach>: Add `pid' argument. Change | |
19076 | return type to int. | |
19077 | (struct target_ops) <join>: Add `pid' argument. | |
19078 | (struct target_ops) <thread_alive>: Change pid's type to ptid_t. | |
19079 | (struct target_ops) <wait>: Add `ptid' field. Change return type | |
19080 | to ptid. | |
19081 | (kill_inferior, detach_inferior, join_inferior): Add `pid' argument. | |
19082 | (mywait): Add `ptid' argument. Change return type to ptid_t. | |
19083 | (target_pid_to_str): Declare. | |
19084 | * target.c (set_desired_inferior): Adjust to use ptids. | |
19085 | (mywait): Add new `ptid' argument. Adjust. | |
19086 | (target_pid_to_str): New. | |
19087 | * mem-break.h (free_all_breakpoints): Declare. | |
19088 | * mem-break.c (breakpoints): Delelete. | |
19089 | (set_breakpoint_at, delete_breakpoint, find_breakpoint_at) | |
19090 | (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust | |
19091 | to use per-process breakpoint list. | |
19092 | (free_all_breakpoints): New. | |
19093 | * remote-utils.c (struct sym_cache) <name>: Drop `const'. | |
19094 | (symbol_cache, all_symbols_looked_up): Delete. | |
19095 | (hexchars): New. | |
19096 | (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one, | |
19097 | read_ptid): New. | |
19098 | (prepare_resume_reply): Change ptid argument's type from unsigned | |
19099 | long to ptid_t. Adjust. Implement W;process and X;process. | |
19100 | (free_sym_cache, clear_symbol_cache): New. | |
19101 | (look_up_one_symbol): Adjust to per-process symbol cache. * | |
19102 | * server.c (cont_thread, general_thread, step_thread): Change type | |
19103 | to ptid_t. | |
19104 | (attached): Delete. | |
19105 | (multi_process): New. | |
19106 | (last_ptid): Change type to ptid_t. | |
19107 | (struct vstop_notif) <ptid>: Change type to ptid_t. | |
19108 | (queue_stop_reply, push_event): Change `ptid' argument's type to | |
19109 | ptid_t. | |
19110 | (discard_queued_stop_replies): Add `pid' argument. | |
19111 | (start_inferior): Adjust to use ptids. Adjust to mywait interface | |
19112 | changes. Don't reference the `attached' global. | |
19113 | (attach_inferior): Adjust to mywait interface changes. | |
19114 | (handle_query): Adjust to use ptids. Parse GDB's qSupported | |
19115 | features. Handle and report "multiprocess+". Handle | |
19116 | "qAttached:PID". | |
19117 | (handle_v_cont): Adjust to use ptids. Adjust to mywait interface | |
19118 | changes. | |
19119 | (handle_v_kill): New. | |
19120 | (handle_v_stopped): Adjust to use target_pid_to_str. | |
19121 | (handle_v_requests): Allow multiple attaches and runs when | |
19122 | multiprocess extensions are in effect. Handle "vKill". | |
19123 | (myresume): Adjust to use ptids. | |
19124 | (queue_stop_reply_callback): Add `arg' parameter. Handle it. | |
19125 | (handle_status): Adjust to discard_queued_stop_replies interface | |
19126 | change. | |
19127 | (first_thread_of, kill_inferior_callback) | |
19128 | (detach_or_kill_inferior_callback, join_inferiors_callback): New. | |
19129 | (main): Call initialize_inferiors. Adjust to use ptids, killing | |
19130 | and detaching from all inferiors. Handle multiprocess packet | |
19131 | variants. | |
19132 | * linux-low.h: Include gdb_proc_service.h. | |
19133 | (struct process_info_private): New. | |
19134 | (struct linux_target_ops) <pid_of>: Use ptid_get_pid. | |
19135 | <lwpid_of>: Use ptid_get_lwp. | |
19136 | (get_lwp_thread): Adjust. | |
19137 | (struct lwp_info): Add `dead' member. | |
19138 | (find_lwp_pid): Declare. | |
19139 | * linux-low.c (thread_db_active): Delete. | |
19140 | (new_inferior): Adjust comment. | |
19141 | (inferior_pid): Delete. | |
19142 | (linux_add_process): New. | |
19143 | (handle_extended_wait): Adjust. | |
19144 | (add_lwp): Change unsigned long to ptid. | |
19145 | (linux_create_inferior): Add process to processes table. Adjust | |
19146 | to use ptids. Don't set new_inferior here. | |
19147 | (linux_attach_lwp): Rename to ... | |
19148 | (linux_attach_lwp_1): ... this. Add `initial' argument. Handle | |
19149 | it. Adjust to use ptids. | |
19150 | (linux_attach_lwp): New. | |
19151 | (linux_attach): Add process to processes table. Don't set | |
19152 | new_inferior here. | |
19153 | (struct counter): New. | |
19154 | (second_thread_of_pid_p, last_thread_of_process_p): New. | |
19155 | (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to | |
19156 | multiple processes. | |
19157 | (linux_kill): Add `pid' argument. Handle it. Adjust to multiple | |
19158 | processes. Remove process from process table. | |
19159 | (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust | |
19160 | to multiple processes. | |
19161 | (any_thread_of): New. | |
19162 | (linux_detach): Add `pid' argument, and handle it. Remove process | |
19163 | from processes table. | |
19164 | (linux_join): Add `pid' argument. Handle it. | |
19165 | (linux_thread_alive): Change unsighed long argument to ptid_t. | |
19166 | Consider dead lwps as not being alive. | |
19167 | (status_pending_p): Rename `dummy' argument to `arg'. Filter out | |
19168 | threads we're not interested in. | |
19169 | (same_lwp, find_lwp_pid): New. | |
19170 | (linux_wait_for_lwp): Change `pid' argument's type from int to | |
19171 | ptid_t. Adjust. | |
19172 | (linux_wait_for_event): Rename to ... | |
19173 | (linux_wait_for_event_1): ... this. Change `pid' argument's type | |
19174 | from int to ptid_t. Adjust. | |
19175 | (linux_wait_for_event): New. | |
19176 | (linux_wait_1): Add `ptid' argument. Change return type to | |
19177 | ptid_t. Adjust. Use last_thread_of_process_p. Remove processes | |
19178 | that exit from the process table. | |
19179 | (linux_wait): Add `ptid' argument. Change return type to ptid_t. | |
19180 | Adjust. | |
19181 | (mark_lwp_dead): New. | |
19182 | (wait_for_sigstop): Adjust to use ptids. If a process exits while | |
19183 | stopping all threads, mark its main lwp as dead. | |
19184 | (linux_set_resume_request, linux_resume_one_thread): Adjust to use | |
19185 | ptids. | |
19186 | (fetch_register, usr_store_inferior_registers) | |
19187 | (regsets_fetch_inferior_registers) | |
19188 | (regsets_store_inferior_registers, linux_read_memory) | |
19189 | (linux_write_memory): Inline `inferior_pid'. | |
19190 | (linux_look_up_symbols): Adjust to use per-process | |
19191 | `thread_db_active'. | |
19192 | (linux_request_interrupt): Adjust to use ptids. | |
19193 | (linux_read_auxv): Inline `inferior_pid'. | |
19194 | (initialize_low): Don't reference thread_db_active. | |
19195 | * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove. | |
19196 | * proc-service.c (ps_lgetregs): Use find_lwp_pid. | |
19197 | (ps_getpid): Return the pid of the current inferior. | |
19198 | * thread-db.c (proc_handle, thread_agent): Delete. | |
19199 | (thread_db_create_event, thread_db_enable_reporting): Adjust to | |
19200 | per-process data. | |
19201 | (find_one_thread): Change argument type to ptid_t. Adjust to | |
19202 | per-process data. | |
19203 | (maybe_attach_thread): Adjust to per-process data and ptids. | |
19204 | (thread_db_find_new_threads): Ditto. | |
19205 | (thread_db_init): Ditto. | |
19206 | * spu-low.c (spu_create_inferior, spu_attach): Add process to | |
19207 | processes table. Adjust to use ptids. | |
19208 | (spu_kill, spu_detach): Adjust interface. Remove process from | |
19209 | processes table. | |
19210 | (spu_join, spu_thread_alive): Adjust interface. | |
19211 | (spu_wait): Adjust interface. Remove process from processes | |
19212 | table. Adjust to use ptids. | |
19213 | * win32-low.c (current_inferior_tid): Delete. | |
19214 | (current_inferior_ptid): New. | |
19215 | (debug_event_ptid): New. | |
19216 | (thread_rec): Take a ptid. Adjust. | |
19217 | (child_add_thread): Add `pid' argument. Adjust to use ptids. | |
19218 | (child_delete_thread): Ditto. | |
19219 | (do_initial_child_stuff): Add `attached' argument. Add process to | |
19220 | processes table. | |
19221 | (child_fetch_inferior_registers, child_store_inferior_registers): | |
19222 | Adjust. | |
19223 | (win32_create_inferior): Pass 0 to do_initial_child_stuff. | |
19224 | (win32_attach): Pass 1 to do_initial_child_stuff. | |
19225 | (win32_kill): Adjust interface. Remove process from processes | |
19226 | table. | |
19227 | (win32_detach): Ditto. | |
19228 | (win32_join): Adjust interface. | |
19229 | (win32_thread_alive): Take a ptid. | |
19230 | (win32_resume): Adjust to use ptids. | |
19231 | (get_child_debug_event): Ditto. | |
19232 | (win32_wait): Adjust interface. Remove exiting process from | |
19233 | processes table. | |
19234 | ||
bd99dc85 PA |
19235 | 2009-04-01 Pedro Alves <pedro@codesourcery.com> |
19236 | ||
19237 | Non-stop mode support. | |
19238 | ||
19239 | * server.h (non_stop): Declare. | |
19240 | (gdb_client_data, handler_func): Declare. | |
19241 | (delete_file_handler, add_file_handler, start_event_loop): | |
19242 | Declare. | |
19243 | (handle_serial_event, handle_target_event, push_event) | |
19244 | (putpkt_notif): Declare. | |
19245 | * target.h (enum resume_kind): New. | |
19246 | (struct thread_resume): Replace `step' field by `kind' field. | |
19247 | (TARGET_WNOHANG): Define. | |
19248 | (struct target_ops) <wait>: Add `options' argument. | |
19249 | <supports_non_stop, async, start_non_stop>: New fields. | |
19250 | (target_supports_non_stop, target_async): New. | |
19251 | (start_non_stop): Declare. | |
19252 | (mywait): Add `options' argument. | |
19253 | * target.c (mywait): Add `options' argument. Print child exit | |
19254 | notifications here. | |
19255 | (start_non_stop): New. | |
19256 | * server.c (non_stop, own_buf, mem_buf): New globals. | |
19257 | (struct vstop_notif): New. | |
19258 | (notif_queue): New global. | |
19259 | (queue_stop_reply, push_event, discard_queued_stop_replies) | |
19260 | (send_next_stop_reply): New. | |
19261 | (start_inferior): Adjust to use resume_kind. Adjust to mywait | |
19262 | interface changes. | |
19263 | (attach_inferior): In non-stop mode, don't wait for the target | |
19264 | here. | |
19265 | (handle_general_set): Handle QNonStop. | |
19266 | (handle_query): When handling qC, return the current general | |
19267 | thread, instead of the first thread of the list. | |
19268 | (handle_query): If the backend supports non-stop mode, include | |
19269 | QNonStop+ in the qSupported query response. | |
19270 | (handle_v_cont): Adjust to use resume_kind. Handle resume_stop | |
19271 | and non-stop mode. | |
19272 | (handle_v_attach, handle_v_run): Handle non-stop mode. | |
19273 | (handle_v_stopped): New. | |
19274 | (handle_v_requests): Report support for vCont;t. Handle vStopped. | |
19275 | (myresume): Adjust to use resume_kind. Handle non-stop. | |
19276 | (queue_stop_reply_callback): New. | |
19277 | (handle_status): Handle non-stop mode. | |
19278 | (main): Clear non_stop flag on reconnection. Use the event-loop. | |
19279 | Refactor serial protocol handling from here ... | |
19280 | (process_serial_event): ... to this new function. When GDB | |
19281 | selects any thread, select one here. In non-stop mode, wait until | |
19282 | GDB acks all pending events before exiting. | |
19283 | (handle_serial_event, handle_target_event): New. | |
19284 | * remote-utils.c (remote_open): Install remote_desc in the event | |
19285 | loop. | |
19286 | (remote_close): Remove remote_desc from the event loop. | |
19287 | (putpkt_binary): Rename to... | |
19288 | (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it. | |
19289 | (putpkt_binary): New as wrapper around putpkt_binary_1. | |
19290 | (putpkt_notif): New. | |
19291 | (prepare_resume_reply): In non-stop mode, don't change the | |
19292 | general_thread. | |
19293 | * event-loop.c: New. | |
19294 | * Makefile.in (OBJ): Add event-loop.o. | |
19295 | (event-loop.o): New rule. | |
19296 | ||
19297 | * linux-low.h (pid_of): Moved here. | |
19298 | (lwpid_of): New. | |
19299 | (get_lwp_thread): Use lwpid_of. | |
19300 | (struct lwp_info): Delete `lwpid' field. Add `suspended' field. | |
19301 | * linux-low.c (pid_of): Delete. | |
19302 | (inferior_pid): Use lwpid_of. | |
19303 | (linux_event_pipe): New. | |
19304 | (target_is_async_p): New. | |
19305 | (delete_lwp): New. | |
19306 | (handle_extended_wait): Use lwpid_of. | |
19307 | (add_lwp): Don't set lwpid field. | |
19308 | (linux_attach_lwp): Adjust debug output. Use lwpid_of. | |
19309 | (linux_kill_one_lwp): If killing a running lwp, stop it first. | |
19310 | Use lwpid_of. Adjust to linux_wait_for_event interface changes. | |
19311 | (linux_detach_one_lwp): If detaching from a running lwp, stop it | |
19312 | first. Adjust to linux_wait_for_event interface changes. Use | |
19313 | lwpid_of. | |
19314 | (linux_detach): Don't delete the main lwp here. | |
19315 | (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of. | |
19316 | (status_pending_p): Don't consider explicitly suspended lwps. | |
19317 | (linux_wait_for_lwp): Take an integer pid instead of a lwp_info | |
19318 | pointer. Add OPTIONS argument. Change return type to int. Use | |
19319 | my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of. | |
19320 | (linux_wait_for_event): Take an integer pid instead of a lwp_info | |
19321 | pointer. Add status pointer argument. Return a pid instead of a | |
19322 | status. Use lwpid_of. Adjust to linux_wait_for_lwp interface | |
19323 | changes. In non-stop mode, don't switch to a random thread. | |
19324 | (linux_wait): Rename to... | |
19325 | (linux_wait_1): ... this. Add target_options argument, and handle | |
19326 | it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode, | |
19327 | don't handle the continue thread. Handle TARGET_WNOHANG. Merge | |
19328 | clean exit and signal exit code. Don't stop all threads in | |
19329 | non-stop mode. In all-stop mode, only stop all threads when | |
19330 | reporting a stop to GDB. Handle explicit thread stop requests. | |
19331 | (async_file_flush, async_file_mark): New. | |
19332 | (linux_wait): New. | |
19333 | (send_sigstop): Use lwpid_of. | |
19334 | (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event | |
19335 | interface changes. In non-stop mode, don't switch to a random | |
19336 | thread. | |
19337 | (linux_resume_one_lwp): Use lwpid_of. | |
19338 | (linux_continue_one_thread, linux_queue_one_thread): Merge into ... | |
19339 | (linux_resume_one_thread): ... this. Handle resume_stop. In | |
19340 | non-stop mode, don't look for pending flag in all threads. | |
19341 | (resume_status_pending_p): Don't consider explicitly suspended | |
19342 | threads. | |
19343 | (my_waitpid): Reimplement. Emulate __WALL. | |
19344 | (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo): | |
19345 | Use lwpid_of. | |
19346 | (sigchld_handler, linux_supports_non_stop, linux_async) | |
19347 | (linux_start_non_stop): New. | |
19348 | (linux_target_ops): Register linux_supports_non_stop, linux_async | |
19349 | and linux_start_non_stop. | |
19350 | (initialize_low): Install SIGCHLD handler. | |
19351 | * thread-db.c (thread_db_create_event, find_one_thread) | |
19352 | (thread_db_get_tls_address): Use lwpid_of. | |
19353 | * win32-low.c (win32_detach): Adjust to use resume_kind. | |
19354 | (win32_wait): Add `options' argument. | |
19355 | * spu-low.c (spu_resume): Adjust to use resume_kind. | |
19356 | (spu_wait): Add `options' argument. | |
19357 | ||
5b1c542e PA |
19358 | 2009-04-01 Pedro Alves <pedro@codesourcery.com> |
19359 | ||
19360 | Decouple target code from remote protocol. | |
19361 | ||
19362 | * target.h (enum target_waitkind): New. | |
19363 | (struct target_waitstatus): New. | |
19364 | (struct target_ops) <wait>: Return an unsigned long. Take a | |
19365 | target_waitstatus pointer instead of a char pointer. | |
19366 | (mywait): Likewise. | |
19367 | * target.c (mywait): Change prototype to return an unsigned long. | |
19368 | Take a target_waitstatus pointer instead of a char pointer. Adjust. | |
19369 | * server.h (thread_from_wait, old_thread_from_wait): Delete | |
19370 | declarations. | |
19371 | (prepare_resume_reply): Change prototype to take a | |
19372 | target_waitstatus. | |
19373 | * server.c (thread_from_wait, old_thread_from_wait): Delete. | |
19374 | (last_status, last_ptid): New. | |
19375 | (start_inferior): Remove "statusptr" argument. Adjust. Return a | |
19376 | pid instead of a signal. | |
19377 | (attach_inferior): Remove "status" and "signal" parameters. | |
19378 | Adjust. | |
19379 | (handle_query): For qGetTLSAddr, parse the thread id with strtol, | |
19380 | not as an address. | |
19381 | (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill) | |
19382 | (handle_v_requests, myresume): Remove "status" and "signal" | |
19383 | parameters. Adjust. | |
19384 | (handle_status): New. | |
19385 | (main): Delete local `status'. Adjust. | |
19386 | * remote-utils.c: Include target.h. | |
19387 | (prepare_resume_reply): Change prototype to take a | |
19388 | target_waitstatus. Adjust. | |
19389 | ||
19390 | * linux-low.c (linux_wait): Adjust to new target_ops->wait | |
19391 | interface. | |
19392 | * spu-low.c (spu_wait): Adjust. | |
19393 | * win32-low.c (enum target_waitkind, struct target_waitstatus): | |
19394 | Delete. | |
19395 | (win32_wait): Adjust. | |
19396 | ||
2bd7c093 PA |
19397 | 2009-04-01 Pedro Alves <pedro@codesourcery.com> |
19398 | ||
19399 | * target.h (struct thread_resume): Delete leave_stopped member. | |
19400 | (struct target_ops): Add a `n' argument to the `resume' callback. | |
19401 | * server.c (start_inferior): Adjust. | |
19402 | (handle_v_cont, myresume): Adjust. | |
19403 | * linux-low.c (check_removed_breakpoint): Adjust to resume | |
19404 | interface change, and to removed leave_stopped field. | |
19405 | (resume_ptr): Delete. | |
19406 | (struct thread_resume_array): New. | |
19407 | (linux_set_resume_request): Add new `arg' parameter. Adjust to | |
19408 | resume interface change. | |
19409 | (linux_continue_one_thread, linux_queue_one_thread) | |
19410 | (resume_status_pending_p): Check if the resume field is NULL | |
19411 | instead of checking the leave_stopped member. | |
19412 | (linux_resume): Adjust to the target resume interface change. | |
19413 | * spu-low.c (spu_resume): Adjust to the target resume interface | |
19414 | change. | |
19415 | * win32-low.c (win32_detach, win32_resume): Ditto. | |
19416 | ||
c35fafde PA |
19417 | 2009-04-01 Pedro Alves <pedro@codesourcery.com> |
19418 | ||
19419 | * linux-low.c (linux_wait_for_event): Don't clear the `stepping' | |
19420 | flag. | |
19421 | (wait_for_sigstop): Don't leave a finished single-step SIGTRAP | |
19422 | pending. | |
19423 | (linux_continue_one_thread): Only preserve the stepping flag if | |
19424 | there's a pending breakpoint. | |
19425 | ||
0a59d50b PA |
19426 | 2009-03-31 Pedro Alves <pedro@codesourcery.com> |
19427 | ||
19428 | * server.c (main): After the inferior having exited, call | |
19429 | remote_close before exiting gdbserver. | |
19430 | ||
f04c6d38 TJB |
19431 | 2009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com> |
19432 | ||
19433 | Fix size of FPSCR in Power 7 processors. | |
19434 | * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define. | |
19435 | (PPC_FEATURE_HAS_DFP): New #define. | |
19436 | (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on | |
19437 | size of the FPSCR. | |
19438 | ||
78e5cee6 PA |
19439 | 2009-03-23 Pedro Alves <pedro@codesourcery.com> |
19440 | ||
19441 | * server.c (handle_query) Whitespace and formatting. | |
19442 | ||
1b3f6016 PA |
19443 | 2009-03-22 Pedro Alves <pedro@codesourcery.com> |
19444 | ||
19445 | * i387-fp.c, linux-arm-low.c, linux-cris-low.c, | |
19446 | linux-crisv32-low.c, linux-i386-low.c, linux-low.c, | |
19447 | linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c, | |
19448 | linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c, | |
19449 | regcache.c, remote-utils.c, server.c, spu-low.c, target.h, | |
19450 | thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c, | |
19451 | Makefile.in, configure.ac: Fix whitespace throughout. | |
19452 | * configure: Regenerate. | |
19453 | ||
a07b2135 PA |
19454 | 2009-03-22 Pedro Alves <pedro@codesourcery.com> |
19455 | ||
19456 | * inferiors.c (find_inferior): Make it safe for the callback | |
19457 | function to delete the currently iterated inferior. | |
19458 | ||
67cc2626 PA |
19459 | 2009-03-22 Pedro Alves <pedro@codesourcery.com> |
19460 | ||
19461 | * Makefile.in (linuw_low_h): Move higher. | |
19462 | (thread-db.o): Depend on $(linux_low_h). | |
19463 | ||
54a0b537 PA |
19464 | 2009-03-17 Pedro Alves <pedro@codesourcery.com> |
19465 | ||
19466 | Rename "process" to "lwp" throughout. | |
19467 | ||
19468 | * linux-low.c (all_processes): Rename to... | |
19469 | (all_lwps): ... this. | |
19470 | (inferior_pid, handle_extended_wait, get_stop_pc): Adjust. | |
19471 | (add_process): Rename to ... | |
19472 | (add_lwp): ... this. Adjust. | |
19473 | (linux_create_inferior): Adjust. | |
19474 | (linux_attach_lwp): Adjust. | |
19475 | (linux_attach): Adjust. | |
19476 | (linux_kill_one_process): Rename to ... | |
19477 | (linux_kill_one_lwp): ... this. Adjust. | |
19478 | (linux_kill): Adjust. | |
19479 | (linux_detach_one_process): Rename to ... | |
19480 | (linux_detach_one_lwp): ... this. Adjust. | |
19481 | (linux_detach): Adjust. | |
19482 | (check_removed_breakpoint): Adjust. | |
19483 | (status_pending_p): Adjust. | |
19484 | (linux_wait_for_process): Rename to ... | |
19485 | (linux_wait_for_lwp): ... this. Adjust. | |
19486 | (linux_wait_for_event): Adjust. | |
19487 | (send_sigstop): Adjust. | |
19488 | (wait_for_sigstop): Adjust. | |
19489 | (stop_all_processes): Rename to ... | |
19490 | (stop_all_lwps): ... this. | |
19491 | (linux_resume_one_process): Rename to ... | |
19492 | (linux_resume_one_lwp): ... this. Adjust. | |
19493 | (linux_set_resume_request, linux_continue_one_thread) | |
19494 | (linux_queue_one_thread, resume_status_pending_p) | |
19495 | (usr_store_inferior_registers, regsets_store_inferior_registers) | |
19496 | (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo): | |
19497 | Adjust. | |
19498 | * linux-low.h (get_process): Rename to ... | |
19499 | (get_lwp): ... this. Adjust. | |
19500 | (get_thread_process): Rename to ... | |
19501 | (get_thread_lwp): ... this. Adjust. | |
19502 | (get_process_thread): Rename to ... | |
19503 | (get_lwp_thread): ... this. Adjust. | |
19504 | (struct process_info): Rename to ... | |
19505 | (struct lwp_info): ... this. | |
19506 | (all_processes): Rename to ... | |
19507 | (all_lwps): ... this. | |
19508 | * proc-service.c (ps_lgetregs): Adjust. | |
19509 | * thread-db.c (thread_db_create_event, find_one_thread) | |
19510 | (maybe_attach_thread, thread_db_get_tls_address): Adjust. | |
19511 | ||
0b16c5cf PA |
19512 | 2009-03-14 Pedro Alves <pedro@codesourcery.com> |
19513 | ||
19514 | * server.c (handle_query): Handle "qAttached". | |
19515 | ||
32de4b9d NS |
19516 | 2009-03-13 Nathan Sidwell <nathan@codesourcery.com> |
19517 | ||
19518 | * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to | |
19519 | GPLv3, update license URL. | |
19520 | ||
2aecd87f DE |
19521 | 2009-03-01 Doug Evans <dje@google.com> |
19522 | ||
93efd302 | 19523 | * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common. |
2aecd87f DE |
19524 | (server_h): Add gdb_signals.h. |
19525 | (signals.o): Update. | |
19526 | * server.h (target_signal_from_host,target_signal_to_host_p) | |
19527 | (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h. | |
19528 | ||
86b1f9c5 PM |
19529 | 2009-02-14 Pierre Muller <muller@ics.u-strasbg.fr> |
19530 | ||
19531 | * remote-utils.c (getpkt): Also generate remote-debug | |
19532 | information if noack_mode is set. | |
19533 | ||
4aa995e1 PA |
19534 | 2009-02-06 Pedro Alves <pedro@codesourcery.com> |
19535 | ||
19536 | * server.c (handle_query): Report qXfer:siginfo:read and | |
19537 | qXfer:siginfo:write as supported and handle them. | |
19538 | * target.h (struct target_ops) <qxfer_siginfo>: New field. | |
19539 | * linux-low.c (linux_xfer_siginfo): New. | |
19540 | (linux_target_ops): Set it. | |
19541 | ||
62709adf PA |
19542 | 2009-01-26 Pedro Alves <pedro@codesourcery.com> |
19543 | ||
19544 | * server.c (gdbserver_usage): Mention --remote-debug. | |
19545 | (main): Accept '--remote-debug' switch. | |
19546 | ||
aef93bd7 DE |
19547 | 2009-01-18 Doug Evans <dje@google.com> |
19548 | ||
19549 | * regcache.c (new_register_cache): No need to check result of xcalloc. | |
19550 | * server.c (handle_search_memory): Back out calls to xmalloc, | |
19551 | result is checked and error is returned to user upon failure. | |
19552 | (handle_query): Ditto. Add more checks for result of malloc. | |
19553 | (handle_v_cont): Check result of malloc, report error back to | |
19554 | user upon failure. | |
19555 | (handle_v_run): Ditto. Call freeargv. | |
19556 | * server.h (freeargv): Declare. | |
19557 | * utils.c (freeargv): New fn. | |
19558 | ||
54363045 DE |
19559 | 2009-01-15 Doug Evans <dje@google.com> |
19560 | ||
f626972c DE |
19561 | * gdbreplay.c (perror_with_name): Make arg const char *. |
19562 | * server.h (target_signal_to_name): Make return type const char *. | |
0842e787 | 19563 | * thread-db.c (thread_db_err_str): Make return type const char *. |
f626972c | 19564 | * utils.c (perror_with_name): Make arg const char *. |
54363045 | 19565 | |
18aae699 PA |
19566 | 2009-01-14 Pedro Alves <pedro@codesourcery.com> |
19567 | ||
19568 | * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE | |
19569 | when handling a EXIT_PROCESS_DEBUG_EVENT. | |
19570 | ||
ff703abe JB |
19571 | 2009-01-06 Joel Brobecker <brobecker@adacore.com> |
19572 | ||
19573 | * gdbreplay.c (gdbreplay_version): Update copyright year. | |
19574 | * server.c (gdbserver_version): Likewise. | |
19575 | ||
f21cc1a2 | 19576 | 2009-01-05 Doug Evans <dje@google.com> |
0e21c1ec DE |
19577 | |
19578 | * linux-low.c (linux_attach_lwp): Add some comments/fixmes. | |
f21cc1a2 | 19579 | (handle_extended_wait): Improve comment. |
0e21c1ec | 19580 | |
bca929d3 DE |
19581 | 2008-12-13 Doug Evans <dje@google.com> |
19582 | ||
19583 | * utils.c (xmalloc,xcalloc,xstrdup): New fns. | |
19584 | * server.h (ATTR_MALLOC): New macro. | |
19585 | (xmalloc,xcalloc,xstrdup): Declare. | |
19586 | * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup. | |
19587 | * inferiors.c: Ditto. | |
19588 | * linux-low.c: Ditto. | |
19589 | * mem-break.c: Ditto. | |
19590 | * regcache.c: Ditto. | |
19591 | * remote-utils.c: Ditto. | |
19592 | * server.c: Ditto. | |
19593 | * target.c: Ditto. | |
19594 | * win32-low.c: Ditto. | |
19595 | ||
97438e3f DE |
19596 | 2008-12-12 Doug Evans <dje@google.com> |
19597 | ||
896c7fbb DE |
19598 | * linux-low.c (linux_wait_for_process): Don't clobber current_inferior |
19599 | in debugging printf. | |
19600 | ||
97438e3f DE |
19601 | * linux-low.c (handle_extended_wait): Simplify, use my_waitpid. |
19602 | ||
e3b886f8 DE |
19603 | 2008-12-09 Doug Evans <dje@google.com> |
19604 | ||
19605 | * linux-low.h (struct process_info): Delete member tid, unused. | |
19606 | * thread-db.c (find_one_thread): Update. | |
19607 | (maybe_attach_thread): Update. | |
19608 | ||
07e059b5 VP |
19609 | 2008-12-02 Pedro Alves <pedro@codesourcery.com> |
19610 | ||
889bf7c5 PA |
19611 | * target.h (struct target_ops): Add qxfer_osdata member. |
19612 | * linux-low.c: Include ctype.h and pwd.h and sys/types.h | |
19613 | and dirent.h. | |
19614 | (linux_qxfer_osdata): New functions. | |
19615 | (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata | |
19616 | callback. | |
19617 | * server.c (handle_query): Handle "qXfer:osdata:read:". | |
19618 | * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish) | |
19619 | (buffer_xml_printf): New functions. | |
19620 | * server.h (struct buffer): New. | |
19621 | (buffer_grow_str, buffer_grow_str0): New macros. | |
19622 | (buffer_grow, buffer_free, buffer_init, buffer_finish) | |
19623 | (buffer_xml_printf): Declare. | |
07e059b5 | 19624 | |
4cab47ab DE |
19625 | 2008-11-24 Doug Evans <dje@google.com> |
19626 | ||
19627 | * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused. | |
19628 | ||
f142445f DJ |
19629 | 2008-11-24 Daniel Jacobowitz <dan@codesourcery.com> |
19630 | ||
19631 | * server.c (handle_v_run): Always use the supplied argument list. | |
19632 | ||
d0107bb6 | 19633 | 2008-11-19 Bob Wilson <bob.wilson@acm.org> |
889bf7c5 | 19634 | |
d0107bb6 BW |
19635 | * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4. |
19636 | (xtensa_regmap_table): Add entry for scompare1. | |
889bf7c5 | 19637 | |
2c4ad781 TJB |
19638 | 2008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com> |
19639 | ||
19640 | * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c, | |
19641 | powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c, | |
19642 | powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c, | |
19643 | powerpc-isa205-64l.o, powerpc-isa205-64l.c, | |
19644 | powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c, | |
19645 | powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets. | |
19646 | * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and | |
19647 | XML target descriptions. | |
19648 | * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR | |
19649 | when inferior is running on an ISA 2.05 or later processor. Add | |
19650 | special case to return offset for full 64-bit slot of FPSCR when | |
19651 | in 32-bits. | |
19652 | ||
dfb64f85 DJ |
19653 | 2008-11-14 Daniel Gutson <dgutson@codesourcery.com> |
19654 | ||
19655 | * Makefile.in (SFILES, clean): Added sparc64 files. | |
19656 | (reg-sparc64.o, reg-sparc64.c): New. | |
19657 | * configure.srv (sparc*-*-linux*): New configuration. | |
19658 | * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace | |
19659 | syscall arguments for SPARC. | |
19660 | (regsets_store_inferior_registers): Likewise. | |
19661 | * linux-sparc-low.c: New file. | |
19662 | ||
66b6e1dd DE |
19663 | 2008-10-21 Doug Evans <dje@google.com> |
19664 | ||
19665 | * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete. | |
19666 | (READLINE_DIR,READLINE_DEP): Delete. | |
19667 | (INTERNAL_CFLAGS): Update. | |
19668 | (LINTFLAGS): Update. | |
19669 | ||
9b710a42 PA |
19670 | 2008-10-10 Pedro Alves <pedro@codesourcery.com> |
19671 | ||
19672 | * server.c (handle_v_run): If GDB didn't specify an argv, use the | |
19673 | whole argv from the last run, not just argv[0]. | |
19674 | ||
5822d809 PA |
19675 | 2008-09-08 Pedro Alves <pedro@codesourcery.com> |
19676 | ||
19677 | * regcache.c (new_register_cache): Return NULL if the register | |
19678 | cache size isn't known yet. | |
19679 | (free_register_cache): Avoid dereferencing a NULL regcache. | |
19680 | ||
74aac56f DJ |
19681 | 2008-09-04 Daniel Jacobowitz <dan@codesourcery.com> |
19682 | ||
19683 | * configure.srv: Merge MIPS and MIPS64. | |
19684 | ||
400b20f5 MR |
19685 | 2008-08-24 Maciej W. Rozycki <macro@linux-mips.org> |
19686 | ||
19687 | * Makefile.in (uninstall): Apply $(EXEEXT) too. | |
19688 | ||
677c5bb1 LM |
19689 | 2008-08-18 Luis Machado <luisgpm@br.ibm.com> |
19690 | ||
19691 | * Makefile.in: Add required vsx dependencies. | |
19692 | ||
19693 | * linux-ppc-low: Define PPC_FEATURE_HAS_VSX. | |
19694 | Declare init_registers_powerpc_vsx32l. | |
19695 | Declare init_registers_powerpc_vsx64l. | |
19696 | Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS. | |
19697 | (ppc_arch_setup): Check for VSX in hwcap. | |
19698 | (ppc_fill_vsxregset): New function. | |
19699 | (ppc_store_vsxregset): New function. | |
19700 | Add new VSX entry in regset_info target_regsets. | |
19701 | ||
19702 | * configure.srv: Add new VSX dependencies. | |
19703 | ||
a6f3e723 SL |
19704 | 2008-08-12 Pedro Alves <pedro@codesourcery.com> |
19705 | ||
19706 | * remote-utils.c (noack_mode, transport_is_reliable): New globals. | |
19707 | (remote_open): Set or clear transport_is_reliable. | |
19708 | (putpkt_binary): Don't expect acks in noack mode. | |
19709 | (getpkt): Don't send ack/nac in noack mode. | |
19710 | * server.c (handle_general_set): Handle QStartNoAckMode. | |
19711 | (handle_query): If connected by tcp pass QStartNoAckMode+ in | |
19712 | qSupported. | |
19713 | (main): Reset noack_mode on every connection. | |
19714 | * server.h (noack_mode): Declare. | |
19715 | ||
a417dc56 RW |
19716 | 2008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
19717 | ||
19718 | * Makefile.in (GDBREPLAY_OBS): New variable. | |
19719 | (gdbreplay$(EXEEXT)): Use it to avoid unportable $^. | |
19720 | ||
3221518c UW |
19721 | 2008-08-05 Ulrich Weigand <uweigand@de.ibm.com> |
19722 | Daniel Jacobowitz <dan@codesourcery.com> | |
19723 | ||
19724 | * linux-low.c (linux_resume_one_process): Ignore ESRCH. | |
19725 | (usr_store_inferior_registers): Likewise. | |
19726 | (regsets_store_inferior_registers): Likewise. | |
19727 | ||
ec56be1b PA |
19728 | 2008-07-31 Rolf Jansen <rj@surtec.com> |
19729 | Pedro Alves <pedro@codesourcery.com> | |
19730 | ||
19731 | * configure.ac: Check for memmem declaration. | |
19732 | * server.c [HAVE_MALLOC_H]: Include malloc.h. | |
19733 | (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC) | |
19734 | (disable_packet_qfThreadInfo): Unconditionally compile. | |
19735 | * server.h [!HAVE_DECL_MEMMEM]: Declare memmem. | |
19736 | * configure, config.in: Regenerate. | |
19737 | ||
2fe5e3ff DE |
19738 | 2008-07-28 Doug Kwan <dougkwan@google.com> |
19739 | ||
19740 | * linux-low.c (sys/dir.h, sys/user.h): Remove includes. | |
19741 | (linux_write_memory): Remove declaration of errno. | |
19742 | ||
836acd6d UW |
19743 | 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com> |
19744 | ||
19745 | * linux-low.c (handle_extended_wait): Do not use "status" | |
19746 | variable uninitialized. | |
19747 | ||
aeba519e PA |
19748 | 2008-07-07 Pedro Alves <pedro@codesourcery.com> |
19749 | ||
19750 | * server.c (handle_v_attach): Inhibit reporting dll changes. | |
19751 | ||
db42f210 PA |
19752 | 2008-06-27 Pedro Alves <pedro@codesourcery.com> |
19753 | ||
19754 | * remote-utils.c (prepare_resume_reply): If requested, don't | |
19755 | output "thread:TID" in the T stop reply. | |
19756 | ||
19757 | * server.c (disable_packet_vCont, disable_packet_Tthread) | |
19758 | (disable_packet_qC, disable_packet_qfThreadInfo): New globals. | |
19759 | (handle_query): If requested, disable support for qC, qfThreadInfo | |
19760 | and qsThreadInfo. | |
19761 | (handle_v_requests): If requested, disable support for vCont. | |
19762 | (gdbserver_show_disableable): New. | |
19763 | (main): Handle --disable-packet and --disable-packet=LIST. | |
19764 | ||
19765 | * server.h (disable_packet_vCont, disable_packet_Tthread) | |
19766 | (disable_packet_qC, disable_packet_qfThreadInfo): Declare. | |
19767 | ||
8e4c5421 CD |
19768 | 2008-06-20 Carlos O'Donell <carlos@codesourcery.com> |
19769 | ||
19770 | * server.c (gdbserver_usage): Mention --version. | |
19771 | ||
6e23a804 DJ |
19772 | 2008-06-06 Daniel Jacobowitz <dan@codesourcery.com> |
19773 | ||
19774 | * Makefile.in (gdbreplay.o): New rule. | |
19775 | ||
90aa6a40 JM |
19776 | 2008-06-06 Joseph Myers <joseph@codesourcery.com> |
19777 | ||
19778 | * gdbreplay.c (gdbreplay_version): Say gdbreplay in version | |
19779 | message, not gdbserver. | |
19780 | ||
c16158bc | 19781 | 2008-06-05 Vladimir Prus <vladimir@codesourcery.com> |
889bf7c5 PA |
19782 | Nathan Sidwell <nathan@codesourcery.com> |
19783 | Joseph Myers <joseph@codesourcery.com> | |
c16158bc JM |
19784 | |
19785 | * acinclude.m4: Include ../../config/acx.m4. | |
19786 | * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL. | |
19787 | * configure, config.in: Regenerate. | |
19788 | * Makefile.in (gdbreplay$(EXEEXT)): Add version.o. | |
19789 | * server.c (gdbserver_version): Print PKGVERSION. | |
19790 | (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO. | |
19791 | (main): Adjust gdbserver_usage calls. | |
19792 | * gdbreplay.c (version, host_name): Add declarations. | |
19793 | (gdbreplay_version, gdbreplay_usage): New. | |
19794 | (main): Accept --version and --help options. | |
19795 | ||
aeb75bf5 DJ |
19796 | 2008-06-04 Daniel Jacobowitz <dan@codesourcery.com> |
19797 | ||
19798 | * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New. | |
19799 | (arm_breakpoint_at): Handle Thumb. | |
19800 | (the_low_target): Add comment. | |
19801 | ||
76b233dd UW |
19802 | 2008-05-29 Ulrich Weigand <uweigand@de.ibm.com> |
19803 | ||
19804 | * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer. | |
19805 | ||
08388c79 DE |
19806 | 2008-05-09 Doug Evans <dje@google.com> |
19807 | ||
a3c83fae DE |
19808 | * server.h (decode_search_memory_packet): Declare. |
19809 | * remote-utils.c (decode_search_memory_packet): New fn. | |
19810 | * server.c (handle_search_memory_1): New fn. | |
08388c79 DE |
19811 | (handle_search_memory): New fn. |
19812 | (handle_query): Process qSearch:memory packets. | |
19813 | ||
bb9c3d36 UW |
19814 | 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com> |
19815 | ||
19816 | * regcache.c (registers_length): Remove. | |
19817 | (set_register_cache): Verify that PBUFSIZ is large enough to hold a | |
19818 | full register packet. | |
19819 | * regcache.h (registers_length): Remove prototype. | |
19820 | * server.h (PBUFSIZ): Define to 16384. | |
19821 | ||
7284e1be UW |
19822 | 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com> |
19823 | ||
19824 | * configure.srv (powerpc*-*-linux*): Set srv_regobj to | |
19825 | powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o, | |
19826 | powerpc-64l.o, and powerpc-altivec64l.o. | |
19827 | Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and | |
19828 | rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml, | |
19829 | rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml, | |
19830 | rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml, | |
19831 | rs6000/power-linux.xml, and rs6000/power64-linux.xml | |
19832 | to srv_xmlfiles. | |
19833 | ||
19834 | * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ... | |
19835 | (powerpc-32l.o, powerpc-32l.c): ... these new rules. | |
19836 | (powerpc-32.o, powerpc-32.c): Remove, replace by ... | |
19837 | (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules. | |
19838 | (powerpc-e500.o, powerpc-e500.c): Remove, replace by ... | |
19839 | (powerpc-e500l.o, powerpc-e500l.c): ... these new rules. | |
19840 | (reg-ppc64.o, reg-ppc64.c): Remove, replace by ... | |
19841 | (powerpc-64l.o, powerpc-64l.c): ... these new rules. | |
19842 | (powerpc-64.o, powerpc-64.c): Remove, replace by ... | |
19843 | (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules. | |
19844 | (clean): Update. | |
19845 | ||
19846 | * linux-ppc-low.c (init_registers_ppc): Remove, replace by ... | |
19847 | (init_registers_powerpc_32l): ... this new prototype. | |
19848 | (init_registers_powerpc_32): Remove, replace by ... | |
19849 | (init_registers_powerpc_altivec32l): ... this new prototype. | |
19850 | (init_registers_powerpc_e500): Remove, replace by ... | |
19851 | (init_registers_powerpc_e500l): ... this new prototype. | |
19852 | (init_registers_ppc64): Remove, replace by ... | |
19853 | (init_registers_powerpc_64l): ... this new prototype. | |
19854 | (init_registers_powerpc_64): Remove, replace by ... | |
19855 | (init_registers_powerpc_altivec64l): ... this new prototype. | |
19856 | (ppc_num_regs): Set to 73. | |
19857 | (PT_ORIG_R3, PT_TRAP): Define if necessary. | |
19858 | (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap. | |
19859 | (ppc_cannot_store_register): Handle orig_r3 and trap. | |
19860 | (ppc_arch_setup): Update init_registers_... calls. | |
19861 | (ppc_fill_gregset): Handle orig_r3 and trap. | |
19862 | ||
19863 | * inferiors.c (clear_inferiors): Reset current_inferior. | |
19864 | ||
fdc59709 PB |
19865 | 2008-04-23 Paolo Bonzini <bonzini@gnu.org> |
19866 | ||
889bf7c5 PA |
19867 | * acinclude.m4: Add override.m4. |
19868 | * configure: Regenerate. | |
fdc59709 | 19869 | |
c9b2f845 UW |
19870 | 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com> |
19871 | ||
19872 | * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the | |
19873 | initial call to init_register_ppc64. | |
19874 | ||
550512b8 UW |
19875 | 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com> |
19876 | ||
43aaf8b6 PA |
19877 | * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into |
19878 | single powerpc*-*-linux* case. | |
550512b8 UW |
19879 | (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case. |
19880 | ||
b6430ec3 UW |
19881 | 2008-04-17 Ulrich Weigand <uweigand@de.ibm.com> |
19882 | ||
19883 | * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from | |
889bf7c5 | 19884 | srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml |
b6430ec3 UW |
19885 | from reg_xmlfiles. |
19886 | * linux-ppc-low.c: Include <elf.h>. | |
19887 | (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define. | |
19888 | (ppc_hwcap): New global variable. | |
19889 | (ppc_regmap): Remove __SPE__ #ifdef sections. | |
19890 | (ppc_regmap_e500): New global variable. | |
19891 | (ppc_cannot_store_register): Update __SPE__ special case. | |
19892 | (ppc_get_hwcap): New function. | |
19893 | (ppc_arch_setup): Use it to determine whether inferior supports | |
19894 | AltiVec or SPE registers. Set the_low_target.regmap if appropriate. | |
19895 | (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally. | |
19896 | Do not access registers if target does not support AltiVec. | |
19897 | (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally. | |
19898 | Do not access registers if target does not support SPE. | |
19899 | (target_regsets): Unconditionally include AltiVec and SPE regsets. | |
19900 | ||
52fa2412 UW |
19901 | 2008-04-17 Daniel Jacobowitz <dan@codesourcery.com> |
19902 | ||
19903 | * linux-low.c (disabled_regsets, num_regsets): New. | |
19904 | (use_regsets_p): Delete. | |
19905 | (linux_wait_for_process): Clear disabled_regsets. | |
19906 | (regsets_fetch_inferior_registers): Check and set it. | |
19907 | (regsets_store_inferior_registers): Likewise. | |
19908 | (linux_fetch_registers, linux_store_registers): Do not use | |
19909 | use_regsets_p. | |
19910 | (initialize_low): Allocate disabled_regsets. | |
19911 | ||
e28b3332 DJ |
19912 | 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com> |
19913 | ||
19914 | * Makefile.in (LIBOBJS): New. | |
19915 | (OBS): Use LIBOBJS. | |
19916 | (memmem.o): New rule. | |
19917 | * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem. | |
19918 | * configure: Regenerated. | |
19919 | ||
4536995d UW |
19920 | 2008-04-04 Ulrich Weigand <uweigand@de.ibm.com> |
19921 | ||
19922 | * server.c (handle_query): Never return "unsupported" for | |
19923 | qXfer:features:read queries. | |
19924 | ||
221c031f UW |
19925 | 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com> |
19926 | ||
19927 | * server.c (get_features_xml): Fix inverted condition. | |
19928 | (handle_query): Always support qXfer:feature:read. | |
19929 | ||
ccd213ac DJ |
19930 | 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com> |
19931 | ||
19932 | * server.c (wrapper_argv): New. | |
19933 | (start_inferior): Handle wrapper_argv. If set, expect an extra | |
19934 | trap. | |
19935 | (gdbserver_usage): Document --wrapper. | |
19936 | (main): Parse --wrapper. | |
19937 | ||
6fe305f7 UW |
19938 | 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com> |
19939 | ||
19940 | * configure.srv [powerpc64-*-linux*]: Add all files mentioned for | |
19941 | powerpc-*-linux* to srv_regobj and reg_xmlfiles. | |
19942 | * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation. | |
19943 | (ppc_set_pc): Likewise. | |
19944 | (ppc_arch_setup): New function. | |
19945 | (ppc_fill_gregset): Call ppc_collect_ptrace_register instead | |
19946 | of collect_register. | |
889bf7c5 | 19947 | (the_low_target): Use ppc_arch_setup as arch_setup initializer. |
6fe305f7 | 19948 | |
5b0a002e UW |
19949 | 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com> |
19950 | ||
19951 | * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o | |
19952 | instead of linux-ppc64-low.o. | |
19953 | * linux-ppc64-low.c: Remove file. | |
19954 | * Makefile.in (SFILES): Remove linux-ppc64-low.c. | |
19955 | (linux-ppc64-low.o): Remove rule. | |
19956 | ||
19957 | * linux-ppc-low.c (init_registers_ppc64): Add prototype. | |
19958 | (init_registers_powerpc_64): Likewise. | |
19959 | (ppc_regmap): Conditionally define depending on __powerpc64__. | |
19960 | (ppc_cannot_store_register): Do not special-case "fpscr" when | |
19961 | compiled on __powerpc64__. | |
19962 | (ppc_collect_ptrace_register): New function. | |
19963 | (ppc_supply_ptrace_register): New function. | |
19964 | (ppc_breakpoint): Change type to "unsigned int". | |
19965 | (ppc_breakpoint_at): Change type of "insn" to "unsigned int". | |
19966 | (the_low_target): Conditionally provide initializers for the | |
889bf7c5 | 19967 | arch_setup member depending on __powerpc64__. Install |
5b0a002e UW |
19968 | collect_ptrace_register and supply_ptrace_register members. |
19969 | ||
9b4b61c8 UW |
19970 | 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com> |
19971 | ||
19972 | * regcache.h (gdbserver_xmltarget): Add extern declaration. | |
19973 | * server.c (gdbserver_xmltarget): Define. | |
19974 | (get_features_xml): Use it to replace "target.xml" and arch_string. | |
19975 | ||
19976 | * configure.srv: Remove srv_xmltarget. Add XML files that were | |
19977 | mentioned there to srv_xmlfiles instead. Remove conditional tests | |
19978 | on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set | |
19979 | srv_xmlfiles and srv_regobj to include all possible choices. | |
19980 | * configure.ac (srv_xmltarget): Remove. | |
19981 | (srv_xmlfiles): Do not add "target.xml". | |
19982 | (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove | |
19983 | checks for supplementary target information. | |
19984 | * configure: Regenerate. | |
19985 | * Makefile.in (XML_TARGET): Remove. | |
19986 | (target.xml): Remove rule. | |
19987 | (clean): Do not clean up target.xml. | |
19988 | (.PRECIOUS): Do not mention target.xml. | |
19989 | ||
19990 | * target.h (struct target_ops): Remove arch_string member. | |
19991 | * linux-low.c (linux_arch_string): Remove. | |
19992 | (linux_target_ops): Remove arch_string initializer. | |
19993 | * linux-low.h (struct linux_target_ops): Remove arch_string member. | |
19994 | * linux-i386-low.c (the_low_target): Remove arch_string initializer. | |
19995 | * linux-x86-64-low.c (the_low_target): Remove arch_string initializer. | |
19996 | * spu-low.c (spu_arch_string): Remove. | |
19997 | (spu_target_ops): Remove arch_string initializer. | |
19998 | * win32-low.c (win32_arch_string): Remove. | |
19999 | (win32_target_ops): Remove arch_string initializer. | |
20000 | * win32-low.h (struct win32_target_ops): Remove arch_string member. | |
20001 | * win32-arm-low.c (the_low_target): Remove arch_string initializer. | |
20002 | * win32-i368-low.c (the_low_target): Remove arch_string initializer. | |
20003 | ||
ee1a7ae4 UW |
20004 | 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com> |
20005 | ||
20006 | * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field | |
20007 | by collect_ptrace_register and supply_ptrace_register hooks. | |
20008 | * linux-low.c (fetch_register): Use supply_ptrace_register callback | |
20009 | instead of checking for the_low_target.left_pad_xfer. | |
20010 | (usr_store_inferior_registers): Use collect_ptrace_register callback | |
20011 | instead of checking for the_low_target.left_pad_xfer. | |
20012 | ||
20013 | * linux-s390-low.c (s390_collect_ptrace_register): New function. | |
20014 | (s390_supply_ptrace_register): Likewise. | |
20015 | (s390_fill_gregset): Call s390_collect_ptrace_register. | |
20016 | (the_low_target): Update. | |
20017 | ||
20018 | * linux-ppc64-low.c (ppc_collect_ptrace_register): New function. | |
20019 | (ppc_supply_ptrace_register): Likewise. | |
20020 | (the_low_target): Update. | |
20021 | ||
20022 | * linux-i386-low.c (the_low_target): Update. | |
20023 | * linux-x86-64-low.c (the_low_target): Update. | |
20024 | ||
d61ddec4 UW |
20025 | 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com> |
20026 | ||
20027 | * configure.srv [s390x-*-linux*]: Set srv_regobj to include both | |
20028 | reg-s390.o and reg-s390x.o. | |
20029 | ||
20030 | * linux-low.c (new_inferior): New global variable. | |
20031 | (linux_create_inferior, linux_attach): Set it. | |
20032 | (linux_wait_for_process): Call the_low_target.arch_setup after the | |
20033 | target has stopped for the first time. | |
20034 | (initialize_low): Do not call the_low_target.arch_setup. | |
20035 | ||
20036 | * linux-s390-low.c (s390_get_pc): Support bi-arch operation. | |
20037 | (s390_set_pc): Likewise. | |
20038 | (s390_arch_setup): New function. | |
20039 | (the_low_target): Use s390_arch_setup as arch_setup routine. | |
20040 | ||
20041 | * regcache.c (realloc_register_cache): New function. | |
20042 | (set_register_cache): Call it for each existing regcache. | |
20043 | ||
d05b4ac3 UW |
20044 | 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com> |
20045 | ||
20046 | * server.h (init_registers): Remove prototype. | |
20047 | ||
20048 | * linux-low.h (struct linux_target_ops): Add arch_setup field. | |
20049 | * linux-low.c (initialize_low): Call the_low_target.arch_setup () | |
20050 | instead of init_registers (). | |
20051 | * linux-arm-low.c (init_registers_arm): Add prototype. | |
20052 | (init_registers_arm_with_iwmmxt): Likewise. | |
20053 | (the_low_target): Add initializer for arch_setup field. | |
20054 | * linux-cris-low.c (init_registers_cris): Add prototype. | |
20055 | (the_low_target): Add initializer for arch_setup field. | |
20056 | * linux-crisv32-low.c (init_registers_crisv32): Add prototype. | |
20057 | (the_low_target): Add initializer for arch_setup field. | |
20058 | * linux-i386-low.c (init_registers_i386_linux): Add prototype. | |
20059 | (the_low_target): Add initializer for arch_setup field. | |
20060 | * linux-ia64-low.c (init_registers_ia64): Add prototype. | |
20061 | (the_low_target): Add initializer for arch_setup field. | |
20062 | * linux-m32r-low.c (init_registers_m32r): Add prototype. | |
20063 | (the_low_target): Add initializer for arch_setup field. | |
20064 | * linux-m68k-low.c (init_registers_m68k): Add prototype. | |
20065 | (the_low_target): Add initializer for arch_setup field. | |
20066 | * linux-mips-low.c (init_registers_mips_linux): Add prototype. | |
20067 | (init_registers_mips64_linux): Likewise. | |
20068 | (the_low_target): Add initializer for arch_setup field. | |
20069 | * linux-ppc-low.c (init_registers_ppc): Add prototype. | |
20070 | (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise. | |
20071 | (the_low_target): Add initializer for arch_setup field. | |
20072 | * linux-ppc64-low.c (init_registers_ppc64): Add prototype. | |
20073 | (init_registers_powerpc_64): Likewise. | |
20074 | (the_low_target): Add initializer for arch_setup field. | |
20075 | * linux-s390-low.c (init_registers_s390): Add prototype. | |
20076 | (init_registers_s390x): Likewise. | |
20077 | (the_low_target): Add initializer for arch_setup field. | |
20078 | * linux-sh-low.c (init_registers_sh): Add prototype. | |
20079 | (the_low_target): Add initializer for arch_setup field. | |
20080 | * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype. | |
20081 | (the_low_target): Add initializer for arch_setup field. | |
20082 | * linux-xtensa-low.c (init_registers_xtensa): Add prototype. | |
20083 | (the_low_target): Add initializer for arch_setup field. | |
20084 | ||
20085 | * win32-low.h (struct win32_target_ops): Add arch_setup field. | |
20086 | * win32-low.c (initialize_low): Call the_low_target.arch_setup () | |
20087 | instead of init_registers (). | |
20088 | * win32-arm-low.c (init_registers_arm): Add prototype. | |
20089 | (the_low_target): Add initializer for arch_setup field. | |
20090 | * win32-i386-low.c (init_registers_i386): Add prototype. | |
20091 | (the_low_target): Add initializer for arch_setup field. | |
20092 | ||
20093 | * spu-low.c (init_registers_spu): Add prototype. | |
20094 | (initialize_low): Call initialie_registers_spu () instead of | |
20095 | initialize_registers (). | |
20096 | ||
fd96d250 PA |
20097 | 2008-02-19 Pedro Alves <pedro@codesourcery.com> |
20098 | ||
20099 | * server.c (handle_v_requests): When handling the vRun and vAttach | |
20100 | packets, if already debugging a process, don't kill it. Return an | |
20101 | error instead. | |
20102 | ||
d41b6bb4 DJ |
20103 | 2008-02-17 Daniel Jacobowitz <dan@codesourcery.com> |
20104 | ||
20105 | * server.c (handle_query): Correct length check. | |
20106 | ||
5ac588cf PA |
20107 | 2008-02-14 Pedro Alves <pedro_alves@portugalmail.pt> |
20108 | ||
20109 | * win32-low.c (do_initial_child_stuff): Add process handle | |
20110 | parameter. Set current_process_handle and current_process_id from the | |
20111 | parameters. Clear globals. | |
20112 | (win32_create_inferior): Don't set current_process_handle and | |
20113 | current_process_id here. Instead pass them on the call to | |
20114 | do_initial_child_stuff. | |
20115 | (win32_attach): Likewise. | |
20116 | (win32_clear_inferiors): New. | |
20117 | (win32_kill): Don't close the current process handle or the | |
20118 | current thread handle here. Instead call win32_clear_inferiors. | |
20119 | (win32_detach): Don't open a new handle to the process. Call | |
20120 | win32_clear_inferiors. | |
20121 | (win32_join): Don't rely on current_process_handle; open a new | |
20122 | handle using the process id. | |
20123 | (win32_wait): Call win32_clear_inferiors when the inferior process | |
20124 | has exited. | |
20125 | ||
ecd7ecbc DJ |
20126 | 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com> |
20127 | ||
20128 | * server.c (monitor_show_help): Add "exit". | |
20129 | ||
1525d545 MG |
20130 | 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com> |
20131 | ||
ecd7ecbc | 20132 | * Makefile.in (SFILES): Add linux-xtensa-low.c. |
1525d545 MG |
20133 | (clean): Add reg-xtensa.c. |
20134 | (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies. | |
ecd7ecbc DJ |
20135 | * configure.srv (xtensa*-*-linux*) New target. |
20136 | * linux-xtensa-low.c: New. | |
20137 | * xtensa-xtregs.c: New. | |
1525d545 | 20138 | |
59a016f0 PA |
20139 | 2008-02-01 Pedro Alves <pedro_alves@portugalmail.pt> |
20140 | ||
20141 | * hostio.c: Don't include errno.h. | |
20142 | (errno_to_fileio_errno): Move to hostio-errno. | |
20143 | * hostio.c: (hostio_error): Remove the error parameter. Defer the | |
20144 | error number outputting to the target->hostio_last_error callback. | |
20145 | (hostio_packet_error): Use FILEIO_EINVAL directly. | |
20146 | (handle_open, handle_pread, hostio_error, handle_unlink): Update | |
20147 | calls to hostio_error. | |
20148 | * hostio-errno.c: New. | |
20149 | * server.h (hostio_last_error_from_errno): Declare. | |
20150 | * target.h (target_ops): Add hostio_last_error member. | |
20151 | * linux-low.c (linux_target_op): Register hostio_last_error_from_errno | |
20152 | as hostio_last_error handler. | |
889bf7c5 | 20153 | * spu-low.c (spu_target_ops): Likewise. |
59a016f0 PA |
20154 | * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error) |
20155 | (wince_hostio_last_error): New functions. | |
20156 | (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error | |
20157 | as hostio_last_error handler. | |
20158 | (win32_target_ops) [!_WIN32_WCE]: Register | |
20159 | hostio_last_error_from_errno as hostio_last_error handler. | |
20160 | * Makefile.in (SFILES): Add hostio.c and hostio-errno.c. | |
20161 | (hostio-errno.o): New rule. | |
20162 | * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs. | |
20163 | * configure.srv (srv_hostio_err_objs): New variable. Default to | |
20164 | hostio-errno.o. | |
20165 | (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "". | |
20166 | * configure: Regenerate. | |
20167 | ||
2d717e4f DJ |
20168 | 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com> |
20169 | ||
20170 | * linux-low.c (linux_attach_lwp): Do not _exit after errors. | |
20171 | (linux_kill, linux_detach): Clean up the process list. | |
20172 | * remote-utils.c (remote_open): Improve port number parsing. | |
20173 | (putpkt_binary, input_interrupt): Only send interrupts if the target | |
20174 | is running. | |
20175 | * server.c (extended_protocol): Make static. | |
20176 | (attached): Define earlier. | |
20177 | (exit_requested, response_needed, program_argv): New variables. | |
20178 | (target_running): New. | |
20179 | (start_inferior): Clear attached here. | |
20180 | (attach_inferior): Set attached here. | |
20181 | (require_running): Define. | |
20182 | (handle_query): Use require_running and target_running. Implement | |
20183 | "monitor exit". | |
20184 | (handle_v_attach, handle_v_run): New. | |
20185 | (handle_v_requests): Use require_running. Handle vAttach and vRun. | |
20186 | (gdbserver_usage): Update. | |
20187 | (main): Redo argument parsing. Handle --debug and --multi. Handle | |
20188 | --attach along with other options or after the port. Save | |
20189 | program_argv. Support no initial program. Resynchronize | |
20190 | communication with GDB after an error. Handle "monitor exit". | |
20191 | Use require_running and target_running. Always allow the extended | |
20192 | protocol. Do not error out for Hc0 or Hc-1. Do not automatically | |
20193 | restart in extended mode. | |
20194 | * README: Refer to the GDB manual. Update --attach usage. | |
20195 | ||
7407e2de AS |
20196 | 2007-12-20 Andreas Schwab <schwab@suse.de> |
20197 | ||
20198 | * linux-low.c (STACK_SIZE): Define. | |
20199 | (linux_tracefork_child): Use it. Use __clone2 on ia64. | |
20200 | (linux_test_for_tracefork): Likewise. | |
20201 | ||
b65d95c5 DJ |
20202 | 2007-12-18 Daniel Jacobowitz <dan@codesourcery.com> |
20203 | ||
20204 | * linux-low.c (linux_wait_for_event): Update messages. Do not | |
20205 | reinsert auto-delete breakpoints. | |
20206 | * mem-break.c (struct breakpoint): Change return type of handler to | |
20207 | int. | |
20208 | (set_breakpoint_at): Update handler type. | |
20209 | (reinsert_breakpoint_handler): Return 1 instead of calling | |
20210 | delete_breakpoint. | |
20211 | (reinsert_breakpoint_by_bp): Check for the original breakpoint before | |
20212 | setting a new one. | |
20213 | (check_breakpoints): Delete auto-delete breakpoints and return 2. | |
20214 | * mem-break.h (set_breakpoint_at): Update handler type. | |
20215 | * thread-db.c (thread_db_create_event, thread_db_create_event): Update. | |
20216 | * win32-low.c (auto_delete_breakpoint): New. | |
20217 | (get_child_debug_event): Use it. | |
20218 | ||
4e799345 DJ |
20219 | 2007-12-16 Daniel Jacobowitz <dan@codesourcery.com> |
20220 | ||
20221 | * configure.ac: Check for pread and pwrite. | |
20222 | * hostio.c (handle_pread): Fall back to lseek and read. | |
20223 | (handle_pwrite): Fall back to lseek and write. | |
20224 | * config.in, configure: Regenerated. | |
20225 | ||
27524b67 DJ |
20226 | 2007-12-07 Daniel Jacobowitz <dan@codesourcery.com> |
20227 | ||
20228 | * server.c (myresume): Add own_buf argument. | |
20229 | (main): Update calls. | |
20230 | ||
a20d5e98 DJ |
20231 | 2007-12-06 Daniel Jacobowitz <dan@codesourcery.com> |
20232 | ||
20233 | * linux-low.c (linux_wait, linux_resume): Do not handle async I/O. | |
20234 | * remote-utils.c (remote_open): Do not call disable_async_io. | |
20235 | (block_async_io): Delete. | |
20236 | (unblock_async_io): Make static. | |
20237 | (initialize_async_io): New. | |
20238 | * server.c (handle_v_cont): Handle async I/O here. | |
20239 | (myresume): Likewise. Move other common resume tasks here... | |
20240 | (main): ... from here. Call initialize_async_io. Disable async | |
20241 | I/O before the main loop. | |
20242 | * server.h (initialize_async_io): Declare. | |
20243 | (block_async_io, unblock_async_io): Delete prototypes. | |
20244 | * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here. | |
20245 | ||
b79d787e DJ |
20246 | 2007-12-06 Mick Davis <mickd@goanna.iinet.net.au> |
20247 | ||
20248 | * remote-utils.c (readchar): Allow binary data in received messages. | |
20249 | ||
d97903b2 PA |
20250 | 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt> |
20251 | ||
20252 | * win32-low.c (attaching): New global. | |
20253 | (win32_create_inferior): Clear the `attaching' global. | |
20254 | (win32_attach): Set the `attaching' global. | |
20255 | (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when | |
20256 | attaching. Only set a breakpoint at the entry point if not | |
20257 | attaching. | |
20258 | ||
311de423 PA |
20259 | 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt> |
20260 | ||
20261 | * server.c (main): Don't report dll events on the initial | |
20262 | connection on attaches. | |
20263 | ||
6c2d16d2 PA |
20264 | 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt> |
20265 | ||
20266 | * server.c (main): Relax numerical bases supported for the pid of | |
20267 | the --attach command line argument. | |
20268 | ||
5ca906e6 PA |
20269 | 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt> |
20270 | ||
20271 | * win32-low.c (win32_attach): Call OpenProcess before | |
20272 | DebugActiveProcess, not after. Add last error output to error | |
20273 | call. | |
20274 | ||
9c6c8194 PA |
20275 | 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt> |
20276 | ||
20277 | * win32-low.c (win32_get_thread_context) | |
20278 | (win32_set_thread_context): New functions. | |
20279 | (thread_rec): Use win32_get_thread_context. | |
20280 | (continue_one_thread, win32_resume): Use win32_set_thread_context. | |
20281 | * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context' | |
20282 | field. | |
20283 | ||
4d5d1aaa PA |
20284 | 2007-12-03 Leo Zayas |
20285 | Pedro Alves <pedro_alves@portugalmail.pt> | |
20286 | ||
20287 | * win32-low.c (soft_interrupt_requested, faked_breakpoint): New | |
20288 | global variables. | |
20289 | (child_add_thread): Minor cleanup. | |
20290 | (child_continue): Resume artificially suspended threads before | |
20291 | calling ContinueDebugEvent. | |
20292 | (suspend_one_thread): New. | |
20293 | (fake_breakpoint_event): New. | |
20294 | (get_child_debug_event): Change return type to int. Check here if | |
20295 | gdb sent an interrupt request. If a soft interrupt was requested, | |
20296 | fake a breakpoint event. Return 0 if there is no event to handle, | |
20297 | and 1 otherwise. | |
20298 | (win32_wait): Don't check here if gdb sent an interrupt request. | |
20299 | Ensure there is a valid event to handle. | |
20300 | (win32_request_interrupt): Add soft interruption method as last | |
20301 | resort. | |
20302 | ||
c436e841 PA |
20303 | 2007-12-03 Leo Zayas |
20304 | Pedro Alves <pedro_alves@portugalmail.pt> | |
20305 | ||
20306 | * win32-low.h (win32_thread_info): Add descriptions to the | |
20307 | structure members. Replace `suspend_count' counter by a | |
20308 | `suspended' flag. | |
20309 | * win32-low.c (thread_rec): Update condition of when to get the | |
20310 | context from the inferior. Rely on ContextFlags being set if it | |
20311 | has already been retrieved. Only suspend the inferior thread if | |
20312 | we haven't already. Warn if that fails. | |
20313 | (continue_one_thread): s/suspend_count/suspended/. Only call | |
20314 | ResumeThread once. Warn if that fails. | |
20315 | ||
e7b5fa67 PA |
20316 | 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt> |
20317 | ||
20318 | * win32-low.c (win32_wait): Don't read from the inferior when it | |
20319 | has already exited. | |
20320 | ||
a385171d PA |
20321 | 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt> |
20322 | ||
20323 | * Makefile.in (win32_low_h): New variable. | |
20324 | (win32-low.o): Add dependency on $(win32_low_h). | |
20325 | (win32-arm-low.o, win32-i386-low.o): New rules. | |
20326 | ||
f80c84b3 DJ |
20327 | 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com> |
20328 | ||
20329 | * hostio.c: Correct copyright year. | |
20330 | ||
a6b151f1 DJ |
20331 | 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com> |
20332 | ||
20333 | * Makefile.in (OBS): Add hostio.o. | |
20334 | (hostio.o): New rule. | |
20335 | * server.h (handle_vFile): Declare. | |
20336 | * hostio.c: New file. | |
20337 | * server.c (handle_v_requests): Take packet_len and new_packet_len | |
20338 | for binary packets. Call handle_vFile. | |
20339 | (main): Update call to handle_v_requests. | |
20340 | ||
f9387fc3 DJ |
20341 | 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com> |
20342 | ||
20343 | * linux-low.c: Include <sched.h>. | |
20344 | ||
51c2684e DJ |
20345 | 2007-11-01 Daniel Jacobowitz <dan@codesourcery.com> |
20346 | ||
20347 | * linux-low.c (linux_tracefork_grandchild): New. | |
20348 | (linux_tracefork_child): Use clone. | |
20349 | (linux_test_for_tracefork): Use clone; allocate and free a stack. | |
20350 | ||
75f83163 JB |
20351 | 2007-10-31 Joel Brobecker <brobecker@adacore.com> |
20352 | ||
20353 | * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh. | |
20354 | ||
da5898ce DJ |
20355 | 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com> |
20356 | ||
20357 | * linux-low.c (handle_extended_wait): Handle unexpected signals. | |
20358 | ||
24a09b5f DJ |
20359 | 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com> |
20360 | ||
20361 | * inferiors.c (change_inferior_id): Delete. | |
20362 | (add_pid_to_list, pull_pid_from_list): New. | |
20363 | * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG) | |
20364 | (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK) | |
20365 | (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE) | |
20366 | (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK) | |
20367 | (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE) | |
20368 | (PTRACE_EVENT_EXIT, __WALL): Provide default definitions. | |
20369 | (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables. | |
20370 | (using_threads): Always set to 1. | |
20371 | (handle_extended_wait): New. | |
20372 | (add_process): Do not set TID. | |
20373 | (linux_create_inferior): Set must_set_ptrace_flags. | |
20374 | (linux_attach_lwp): Remove TID argument. Do not check using_threads. | |
20375 | Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers. | |
20376 | (linux_thread_alive): Rename TID argument to LWPID. | |
20377 | (linux_wait_for_process): Handle unknown processes. Do not use TID. | |
20378 | (linux_wait_for_event): Do not use TID or check using_threads. Update | |
20379 | call to dead_thread_notify. Call handle_extended_wait. | |
20380 | (linux_create_inferior): Use PTRACE_SETOPTIONS. | |
20381 | (send_sigstop): Delete sigstop_sent. | |
20382 | (wait_for_sigstop): Avoid TID. | |
20383 | (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid) | |
20384 | (linux_test_for_tracefork): New. | |
20385 | (linux_lookup_signals): Use thread_db_active and | |
20386 | linux_supports_tracefork_flag. | |
20387 | (initialize_low): Use thread_db_active and linux_test_for_tracefork. | |
20388 | * linux-low.h (get_process_thread): Avoid TID. | |
20389 | (struct process_ifo): Move thread_known and tid to the end. Remove | |
20390 | sigstop_sent. | |
20391 | (linux_attach_lwp, thread_db_init): Update prototypes. | |
20392 | * server.h (change_inferior_id): Delete prototype. | |
20393 | (add_pid_to_list, pull_pid_from_list): New prototypes. | |
20394 | * thread-db.c (thread_db_use_events): New. | |
20395 | (find_first_thread): Rename to... | |
20396 | (find_one_thread): ...this. Update callers and messages. Do not | |
20397 | call fatal. Check thread_db_use_events. Do not call | |
20398 | change_inferior_id or new_thread_notify. | |
20399 | (maybe_attach_thread): Update. Do not call new_thread_notify. | |
20400 | (thread_db_init): Set thread_db_use_events. Check use_events. | |
20401 | * utils.c (fatal, warning): Correct message prefix. | |
20402 | ||
30ed0a8f DJ |
20403 | 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com> |
20404 | ||
20405 | * Makefile.in (clean): Remove new files. | |
20406 | (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c) | |
20407 | (powerpc-64.o, powerpc-64.c): New rules. | |
20408 | * configure.srv: Use alternate register sets for powerpc64-*-linux* | |
20409 | with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux* | |
20410 | with SPE. | |
20411 | * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for | |
20412 | SPE targets. | |
20413 | (ppc_cannot_store_register): Do not check for FPSCR for SPE targets. | |
20414 | (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset) | |
20415 | (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS) | |
20416 | (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New. | |
20417 | (target_regsets): Add AltiVec and SPE register sets. | |
20418 | * configure.ac: Check for AltiVec and SPE. | |
20419 | * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS) | |
20420 | (ppc_fill_vrregset, ppc_store_vrregset): New. | |
20421 | (target_regsets): Add AltiVec register set. | |
20422 | * configure: Regenerated. | |
20423 | ||
fd462a61 DJ |
20424 | 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com> |
20425 | ||
20426 | * linux-low.c (O_LARGEFILE): Define. | |
20427 | (linux_read_memory): Use /proc/PID/mem. | |
20428 | * configure.ac: Use AC_GNU_SOURCE. Check for pread64. | |
20429 | * configure, config.in: Regenerated. | |
20430 | ||
69f223ed DJ |
20431 | 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com> |
20432 | ||
20433 | * linux-low.c (linux_wait_for_event): Do not pass signals while | |
20434 | single-stepping. | |
20435 | ||
aec18585 PA |
20436 | 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt> |
20437 | ||
20438 | * win32-low.c (create_process): New. | |
20439 | (win32_create_inferior): Use create_process instead of | |
20440 | CreateProcess. If create_process failed retry appending an ".exe" | |
20441 | suffix. Store the GetLastError result immediatelly after | |
20442 | create_process calls and use it on the call to error. | |
20443 | ||
34d86ddd PA |
20444 | 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt> |
20445 | ||
20446 | * win32-low.c (handle_load_dll): Don't use toolhelp when waiting. | |
20447 | ||
5a0e3bd0 JB |
20448 | 2007-08-23 Joel Brobecker <brobecker@adacore.com> |
20449 | ||
20450 | * configure.ac: Switch license to GPLv3. | |
20451 | ||
f88c79e6 MS |
20452 | 2007-08-01 Michael Snyder <msnyder@access-company.com> |
20453 | ||
20454 | * remote-utils.c (putpkt_binary): Memory leak, free buf2. | |
20455 | ||
6b3d9b83 PA |
20456 | 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt> |
20457 | ||
20458 | * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New | |
20459 | typedef. | |
20460 | (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var. | |
20461 | (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get | |
20462 | CloseToolhelp32Snapshot. | |
20463 | (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with | |
20464 | CloseToolhelp32Snapshot. | |
20465 | ||
c588c53c MS |
20466 | 2007-07-27 Michael Snyder <michael.snyder@access-company.com> |
20467 | ||
20468 | * server.c (main): Check for inferior exit before main loop. | |
20469 | ||
aa0403d9 PA |
20470 | 2007-07-18 Pedro Alves <pedro_alves@portugalmail.pt> |
20471 | ||
20472 | * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc | |
20473 | instead of on tmp_desc. | |
20474 | ||
255e7678 DJ |
20475 | 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt> |
20476 | Daniel Jacobowitz <dan@codesourcery.com> | |
20477 | ||
20478 | * inferiors.c (all_dlls, dlls_changed, get_dll): New. | |
20479 | (add_thread): Minor cleanups. | |
20480 | (clear_inferiors): Move lower in the file. Clear the DLL | |
20481 | list. | |
20482 | (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New. | |
20483 | * remote-utils.c (prepare_resume_reply): Check dlls_changed. | |
20484 | (xml_escape_text): New. | |
20485 | * server.c (handle_query): Handle qXfer:libraries:read. Report it | |
20486 | for qSupported. | |
20487 | (handle_v_cont): Report errors. | |
20488 | (gdbserver_version): Update. | |
20489 | (main): Correct size of own_buf. Do not report initial DLL events. | |
20490 | * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll) | |
20491 | (unloaded_dll, xml_escape_text): New. | |
20492 | * win32-low.c (enum target_waitkind): Update comments. | |
20493 | (win32_add_one_solib, get_image_name, winapi_EnumProcessModules) | |
20494 | (winapi_GetModuleInformation, winapi_GetModuleFileNameExA) | |
20495 | (win32_EnumProcessModules, win32_GetModuleInformation) | |
20496 | (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name) | |
20497 | (winapi_CreateToolhelp32Snapshot, winapi_Module32First) | |
20498 | (winapi_Module32Next, win32_CreateToolhelp32Snapshot) | |
20499 | (win32_Module32First, win32_Module32Next, load_toolhelp) | |
20500 | (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New. | |
20501 | (get_child_debug_event): Handle DLL events. | |
20502 | (win32_wait): Likewise. | |
20503 | ||
0d37add9 DJ |
20504 | 2007-07-12 Daniel Jacobowitz <dan@codesourcery.com> |
20505 | ||
20506 | * configure.srv: Set srv_linux_regsets for sh*-*-linux*. | |
20507 | * linux-sh-low.c (sh_fill_gregset, target_regsets): New. | |
20508 | ||
45e2715e PA |
20509 | 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt> |
20510 | ||
20511 | * win32-low.c (handle_output_debug_string): Ignore event if not | |
20512 | waiting. | |
20513 | ||
c5674cf1 PA |
20514 | 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt> |
20515 | ||
20516 | * win32-arm-low.c (arm_wince_breakpoint): Fix typo. | |
20517 | ||
2bbe3cc1 DJ |
20518 | 2007-07-03 Daniel Jacobowitz <dan@codesourcery.com> |
20519 | ||
20520 | * remote-utils.c (look_up_one_symbol): Handle 'm' packets. | |
20521 | ||
ae13219e DJ |
20522 | 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com> |
20523 | ||
20524 | * inferiors.c (change_inferior_id): Add comment. | |
20525 | * linux-low.c (check_removed_breakpoint): Add an early | |
20526 | prototype. Improve debug output. | |
20527 | (linux_attach): Doc update. | |
20528 | (linux_detach_one_process, linux_detach): Clean up before releasing | |
20529 | each process. | |
20530 | (send_sigstop, wait_for_sigstop): Improve comments and debug output. | |
20531 | * linux-low.h (struct process_info): Doc improvement. | |
20532 | * mem-break.c (delete_all_breakpoints): New. | |
20533 | * mem-break.h (delete_all_breakpoints): New prototype. | |
20534 | * thread-db.c (find_first_thread): New. | |
20535 | (thread_db_create_event): Call it instead of | |
20536 | thread_db_find_new_threads. Clean up unused variables. | |
20537 | (maybe_attach_thread): Remove first thread handling. | |
20538 | (thread_db_find_new_threads): Use find_first_thread. | |
20539 | (thread_db_get_tls_address): Likewise. | |
20540 | ||
4105de34 DJ |
20541 | 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com> |
20542 | ||
20543 | * thread-db.c (thread_db_find_new_threads): Add prototype. | |
20544 | (thread_db_create_event): Check for the main thread before adding | |
20545 | a new thread. | |
20546 | (maybe_attach_thread): Only enable event reporting if TID == 0. | |
20547 | (thread_db_get_tls_address): Check for new threads. | |
20548 | ||
2b876972 DJ |
20549 | 2007-06-20 Daniel Jacobowitz <dan@codesourcery.com> |
20550 | ||
20551 | * linux-low.c (linux_create_inferior): Try execv before execvp. | |
20552 | * spu-low.c (spu_create_inferior): Likewise. | |
20553 | ||
7a245884 DJ |
20554 | 2007-06-13 Mike Frysinger <vapier@gentoo.org> |
20555 | ||
20556 | * linux-low.c (linux_create_inferior): Change execv to execvp. | |
20557 | * spu-low.c (spu_create_inferior): Likewies. | |
20558 | ||
117ce543 DJ |
20559 | 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com> |
20560 | ||
20561 | * Makefile.in (clean): Clean new files instead of deleted ones. | |
20562 | (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete. | |
20563 | (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New | |
20564 | rules. | |
20565 | * configure.srv: Specify XML files and new regformats for MIPS and | |
20566 | MIPS64 GNU/Linux. | |
20567 | * linux-mips-low.c (mips_num_regs): Set to only used registers. | |
20568 | (mips_regmap): Do not fetch $0. Remove unused registers. Add | |
20569 | an entry for the restart register. | |
20570 | (mips_cannot_fetch_register, mips_cannot_store_register) | |
20571 | (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update | |
20572 | register names to match the XML descriptions. | |
20573 | (mips_fill_gregset, mips_store_gregset): Likewise. Handle the | |
20574 | restart register instead of $0. | |
20575 | ||
0e7f50da UW |
20576 | 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com> |
20577 | Markus Deuling <deuling@de.ibm.com> | |
20578 | ||
20579 | * remote-utils.c (decode_xfer_write): New function. | |
20580 | * server.h (decode_xfer_write): Add prototype. | |
20581 | * server.c (handle_query): Add PACKET_LEN argument. Support | |
20582 | qXfer:spu:read and qXfer:spu:write packets. | |
20583 | (main): Pass packet_len to handle_query. | |
20584 | * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu. | |
20585 | * target.h (target_ops): Add qxfer_spu. | |
20586 | ||
374c1d38 UW |
20587 | 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com> |
20588 | ||
20589 | * spu-low.c (spu_proc_xfer_spu): Do not return failure when | |
20590 | accessing non-seekable spufs files. | |
20591 | ||
bb63802a UW |
20592 | 2007-05-16 Markus Deuling <deuling@de.ibm.com> |
20593 | ||
889bf7c5 | 20594 | * server.c (handle_query): Add reply for qC packet. |
bb63802a | 20595 | |
7390519e PA |
20596 | 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt> |
20597 | Leo Zayas <lerele@champenstudios@com> | |
20598 | ||
20599 | * server.h (check_remote_input_interrupt_request): New function. | |
20600 | * remote_utils.c (INVALID_DESCRIPTOR): New define. | |
20601 | (remote_desc): Initialize with INVALID_DESCRIPTOR. | |
20602 | (input_interrupt): Expose on USE_WIN32API too. Fix whitespace. | |
20603 | (check_remote_input_interrupt_request): New function. | |
20604 | * server.h (check_remote_input_interrupt_request): Declare. | |
3ecf0694 | 20605 | * win32-low.c (winapi_DebugBreakProcess, |
7390519e PA |
20606 | winapi_GenerateConsoleCtrlEvent): New typedefs. |
20607 | (get_child_debug_event): Lower Win32 debug event polling from 1 sec | |
20608 | to 250 ms. | |
20609 | (win32_wait): Check for remote interrupt request | |
20610 | with check_remote_input_interrupt_request. | |
20611 | (win32_request_interrupt): New function. | |
20612 | (win32_target_op): Set request_interrupt to win32_request_interrupt. | |
20613 | ||
34b34921 PA |
20614 | 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt> |
20615 | ||
20616 | * win32-low.c (debug_registers_changed, | |
20617 | debug_registers_used, CONTEXT_EXTENDED_REGISTERS, | |
20618 | CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS, | |
20619 | CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete. | |
20620 | (thread_rec): Get context using the low target. | |
20621 | (child_add_thread): Call thread_added on the low target, | |
20622 | which does the same thing. | |
20623 | (regptr): Delete. | |
20624 | (do_initial_child_stuff): Remove debug registers references. | |
20625 | Set context using the low target. Resume threads after | |
20626 | setting the contexts. | |
20627 | (child_continue): Remove dead variable. Remove debug | |
20628 | registers references. | |
20629 | (child_fetch_inferior_registers): Go through the low target. | |
20630 | (do_child_store_inferior_registers): Remove. | |
20631 | (child_store_inferior_registers): Go through the low target. | |
20632 | (win32_resume): Remove debug registers references. | |
20633 | Set context using the low target. | |
20634 | (handle_exception): Change return type to void. Don't record | |
20635 | context here. Set status to TARGET_WAITKIND_SPURIOUS on a | |
20636 | first chance exception. | |
889bf7c5 | 20637 | (get_child_debug_event): Change return type to void. Remove |
34b34921 PA |
20638 | goto loop. Always return after waiting for debug event. |
20639 | (win32_wait): Convert to switch statement. Handle spurious | |
20640 | events. | |
20641 | ||
20642 | * win32-i386-low.c (debug_registers_changed, | |
20643 | debug_registers_used): New. | |
20644 | (initial_stuff): Rename to ... | |
20645 | (i386_initial_stuff): ... this. Clear debug registers | |
20646 | state variables. | |
20647 | (store_debug_registers): Delete. | |
20648 | (i386_get_thread_context): New. | |
20649 | (load_debug_registers): Delete. | |
20650 | (i386_set_thread_context): New. | |
20651 | (i386_thread_added): New. | |
20652 | (single_step): Rename to ... | |
20653 | (i386_single_step): ... this. | |
20654 | (do_fetch_inferior_registers): Rename to ... | |
20655 | (i386_fetch_inferior_register): ... this. | |
20656 | (i386_store_inferior_register): New. | |
20657 | (the_low_target): Adapt to new interface. | |
20658 | ||
20659 | * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define. | |
20660 | (arm_get_thread_context): New. | |
20661 | (arm_set_thread_context): New. | |
20662 | (regptr): New. | |
20663 | (do_fetch_inferior_registers): Rename to ... | |
20664 | (arm_fetch_inferior_register): ... this. | |
20665 | (arm_store_inferior_register): New. | |
20666 | (arm_wince_breakpoint): Reimplement as unsigned long. | |
20667 | (arm_wince_breakpoint_len): Define. | |
20668 | (the_low_target): Adapt to new interface. | |
20669 | ||
20670 | * win32-low.h (target_ops): Remove regmap, store_debug_registers and | |
20671 | load_debug_registers. Add get_thread_context, set_thread_context, | |
20672 | thread_added and store_inferior_register. Rename | |
20673 | fetch_inferior_registers to fetch_inferior_register. | |
20674 | (regptr): Remove declaration. | |
20675 | ||
dd6953e1 PA |
20676 | 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt> |
20677 | ||
20678 | * linux-low.c (linux_detach): Change return type to int. Return 0. | |
20679 | * spu-low.c (spu_detach): Likewise. | |
20680 | ||
444d6139 PA |
20681 | 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt> |
20682 | ||
20683 | * target.h (target_ops): Change return type of detach to int. | |
20684 | Add join. | |
20685 | (join_inferior): New. | |
20686 | * server.c (main): Don't skip detach support on mingw32. | |
20687 | If the inferior doesn't support detaching return error. | |
20688 | Call join_inferior instead of using waitpid. | |
20689 | * linux-low.c (linux_join): New. | |
20690 | (linux_target_op): Add linux_join. | |
20691 | * spu-low.c (spu_join): New. | |
20692 | (spu_target_ops): Add spu_join. | |
20693 | * win32-low.c (win32_detach): Adapt to new interface. | |
20694 | Reopen current_process_handle before detaching. Issue a child | |
20695 | resume before detaching. | |
20696 | (win32_join): New. | |
20697 | (win32_target_op): Add win32_join. | |
20698 | ||
1d5315fe PA |
20699 | 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt> |
20700 | ||
20701 | * win32-low.c (win32-attach): Fix return value. | |
20702 | * target.h (target_ops): Describe ATTACH return values. | |
20703 | ||
bf914831 PA |
20704 | 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt> |
20705 | ||
20706 | * win32-low.c (GETPROCADDRESS): Define. | |
20707 | (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer. | |
20708 | (winapi_DebugSetProcessKillOnExit): Likewise. | |
20709 | (win32_create_inferior): Force usage of ansi CreateProcessA. | |
20710 | (win32_attach): Use GETPROCADDRESS. | |
20711 | (win32_detach): Likewise. | |
20712 | ||
f72f3e60 PA |
20713 | 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt> |
20714 | ||
20715 | * win32-low.c (win32_wait): Don't use WSTOPSIG. | |
20716 | ||
ed50f18f PA |
20717 | 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt> |
20718 | ||
20719 | * win32-low.c: Commit leftover changes from 2007-03-29. | |
20720 | ||
0c2ead7e DJ |
20721 | 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com> |
20722 | ||
20723 | * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit | |
20724 | fields short instead of int. Add explicit padding. | |
20725 | (i387_cache_to_fsave): Remove unnecessary casts. | |
20726 | (i387_fsave_to_cache): Doc fix. | |
20727 | (i387_cache_to_fxsave): Remove unnecessary casts and masking. | |
20728 | ||
73725ff3 DJ |
20729 | 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com> |
20730 | ||
20731 | * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use. | |
20732 | (i387_fxsave_to_cache): Check fp->ftag while building ftag value. | |
20733 | ||
d99f33d8 PA |
20734 | 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt> |
20735 | ||
20736 | * configure.srv (arm*-*-mingw32ce*): Move near the other | |
20737 | arm targets. | |
20738 | ||
68070c10 PA |
20739 | 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt> |
20740 | ||
2482afc6 | 20741 | * configure.ac: Add errno checking. |
68070c10 PA |
20742 | (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h, |
20743 | sys/file.h and malloc.h. | |
20744 | (AC_CHECK_DECLS): Add perror. | |
20745 | (srv_mingwce): Handle. | |
2482afc6 | 20746 | * configure.srv (i[34567]86-*-cygwin*): Add |
68070c10 PA |
20747 | win32-i386-low.o to srv_tgtobj. |
20748 | (i[34567]86-*-mingw*): Likewise. | |
20749 | (arm*-*-mingw32ce*): Add case. | |
20750 | * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H, | |
20751 | HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check. | |
20752 | [__MINGW32CE__] (strerror): New function. | |
20753 | [__MINGW32CE__] (errno): Define to GetLastError. | |
20754 | [__MINGW32CE__] (COUNTOF): New macro. | |
20755 | (remote_open): Remove extra close call. | |
20756 | * mem-break.c (delete_breakpoint_at): New function. | |
20757 | * mem-break.h (delete_breakpoint_at): Declare. | |
20758 | * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H, | |
20759 | HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check. | |
20760 | [USE_WIN32API] (read, write): Add char* casts. | |
20761 | * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check. | |
20762 | * server.h: Include wincecompat.h on Windows CE. | |
20763 | [HAVE_ERRNO_H]: Check. | |
20764 | (perror): Declare if not declared. | |
20765 | * utils.c: Add stdlib.h, errno.h and malloc.h includes. | |
20766 | (perror_with_name): Remove errno declaration. | |
20767 | * wincecompat.h: New. | |
20768 | * wincecompat.c: New. | |
20769 | * win32-low.h: New. | |
20770 | * win32-arm-low.c: New. | |
20771 | * win32-i386-low.c: New. | |
20772 | (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h. | |
20773 | (OUTMSG2): Make it safe. | |
20774 | (_T): New macro. | |
20775 | (COUNTOF): New macro. | |
20776 | (NUM_REGS): Get it from the low target. | |
20777 | (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT, | |
20778 | CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0. | |
20779 | (thread_rec): Let low target handle debug registers. | |
20780 | (child_add_thread): Likewise. | |
20781 | (child_init_thread_list): Likewise. | |
20782 | (continue_one_thread): Likewise. | |
20783 | (regptr): New. | |
20784 | (do_child_fetch_inferior_registers): Move to ... | |
20785 | * win32-i386-low.c: ... here, and rename to ... | |
20786 | (do_fetch_inferior_registers): ... this. | |
889bf7c5 | 20787 | * win32-low.c (child_fetch_inferior_registers): |
68070c10 PA |
20788 | Go through the low target. |
20789 | (do_child_store_inferior_registers): Use regptr. | |
20790 | (strwinerror): New function. | |
20791 | (win32_create_inferior): Handle Windows CE. | |
20792 | Use strwinerror instead of strerror on Windows error | |
20793 | codes. Add program to the error output. | |
20794 | Don't close the main thread handle on Windows CE. | |
20795 | (win32_attach): Use coredll.dll on Windows CE. | |
20796 | (win32_kill): Close current process and current | |
20797 | thread handles. | |
20798 | (win32_detach): Use coredll.dll on Windows CE. | |
20799 | (win32_resume): Let low target handle debug registers, and | |
20800 | step request. | |
20801 | (handle_exception): Add/Remove initial breakpoint. Avoid | |
20802 | non-existant WSTOPSIG on Windows CE. | |
20803 | (win32_read_inferior_memory): Cast to remove warning. | |
20804 | (win32_arch_string): Go through the low target. | |
20805 | (initialize_low): Call set_breakpoint_data with the low | |
20806 | target's breakpoint. | |
20807 | * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM, | |
20808 | FOP_REGNUM, mappings): Move to ... | |
20809 | * win32-i386-low.c: ... here. | |
20810 | * win32-low.c (win32_thread_info): Move to ... | |
20811 | * win32-low.h: ... here. | |
20812 | * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c, | |
20813 | win32-arm-low.c and wincecompat.c. | |
20814 | (all:): Add $EXEEXT. | |
20815 | (install-only:): Likewise. | |
20816 | (gdbserver:): Likewise. | |
20817 | (gdbreplay:): Likewise. | |
20818 | * config.in: Regenerate. | |
20819 | * configure: Regenerate. | |
20820 | ||
41093d81 PA |
20821 | 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt> |
20822 | ||
20823 | * win32-low.c: Rename typedef thread_info to | |
20824 | win32_thread_info throughout. | |
20825 | ||
544afa54 PA |
20826 | 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt> |
20827 | ||
20828 | * win32-i386-low.c: Rename to ... | |
20829 | * win32-low.c: ... this. | |
20830 | * configure.srv: Replace win32-i386-low.o with win32-low.o. | |
20831 | * Makefile.in: Likewise. | |
20832 | ||
bce7165d PA |
20833 | 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt> |
20834 | ||
20835 | * remote-utils.c (monitor_output): Constify msg parameter. | |
20836 | * server.h (monitor_output): Likewise. | |
20837 | * win32-i386-low.c (handle_output_debug_string): New. | |
20838 | (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using | |
20839 | handle_output_debug_string. | |
20840 | (get_child_debug_event): Likewise. | |
20841 | ||
506c7aa0 DJ |
20842 | 2007-03-27 Mat Hostetter <mat@lcs.mit.edu> |
20843 | ||
20844 | * server.c (main): Correct strtoul check. | |
20845 | ||
42c81e2a DJ |
20846 | 2007-03-27 Jon Ringle <jon@ringle.org> |
20847 | ||
20848 | * linux-low.c: Check __ARCH_HAS_MMU__ also. | |
20849 | ||
9453113a DJ |
20850 | 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com> |
20851 | ||
20852 | * Makefile.in: Add dummy "pdf" and "install-pdf" targets. | |
20853 | ||
64a69107 DJ |
20854 | 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com> |
20855 | ||
20856 | * terminal.h: Check HAVE_SGTTY_H. | |
20857 | ||
20858 | 2007-02-27 Mat Hostetter <mat@lcs.mit.edu> | |
6f8486da DJ |
20859 | |
20860 | * remote-utils.c (remote_open): Print out the assigned port number. | |
20861 | ||
c74d0ad8 DJ |
20862 | 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com> |
20863 | ||
20864 | * remote-utils.c (monitor_output): New function. | |
20865 | * server.c (debug_threads): Define here. | |
20866 | (monitor_show_help): New function. | |
20867 | (handle_query): Handle qRcmd. | |
20868 | (main): Do not handle 'd' packet. | |
20869 | * server.h (debug_threads, remote_debug, monitor_output): Declare. | |
20870 | * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions | |
20871 | of debug_threads. | |
20872 | ||
de7c3b4a PA |
20873 | 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt> |
20874 | ||
20875 | * Makefile.in (EXEEXT): New. | |
20876 | (clean): Use $(EXEEXT). | |
20877 | ||
ef57601b PA |
20878 | 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt> |
20879 | ||
20880 | * target.h (target_ops): Rename send_signal to request_interrupt, | |
20881 | and remove enum target_signal parameter. | |
20882 | * linux-low.c (linux_request_interrupt): Rename from | |
20883 | linux_send_signal, and always send SIGINT. | |
20884 | * spu-low.c (spu_request_interrupt): Rename from spu_send_signal, | |
20885 | and always send SIGINT. | |
20886 | * remote-utils.c (putpkt_binary): Call request_interrupt, instead | |
20887 | of send_signal. | |
20888 | (input_interrupt): Likewise. | |
20889 | ||
820f2bda PA |
20890 | 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt> |
20891 | ||
20892 | * server.c (get_features_xml): Check if target implemented | |
20893 | arch_string. | |
20894 | * win32-i386-low.c (win32_arch_string): New. | |
20895 | (win32_target_ops): Add win32_arch_string as arch_string member. | |
20896 | ||
ab39bf24 UW |
20897 | 2007-02-22 Markus Deuling <deuling@de.ibm.com> |
20898 | ||
20899 | * spu-low.c (spu_arch_string): New. | |
20900 | (spu_target_ops): Add spu_arch_string. | |
20901 | ||
61ff6e04 DJ |
20902 | 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com> |
20903 | ||
20904 | * remote-utils.c: Remove HAVE_TERMINAL_H check. | |
20905 | * configure.ac: Do not check for terminal.h. | |
20906 | * configure, config.in: Regenerated. | |
20907 | ||
fb1e4ffc DJ |
20908 | 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com> |
20909 | ||
20910 | * Makefile.in (OBS): Add $(XML_BUILTIN). | |
20911 | (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New. | |
20912 | (clean): Update. | |
20913 | (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o) | |
20914 | (arm-with-iwmmxt.c): New. | |
20915 | * config.in, configure: Regenerate. | |
20916 | * configure.ac: Check for iWMMXt. Handle srv_xmltarget, | |
20917 | srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML. | |
20918 | * configure.srv: Mention srv_xmltarget and srv_xmlfiles. | |
20919 | (arm*-*-linux*): Add iWMMXt and regset support. | |
20920 | * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define. | |
20921 | (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset) | |
20922 | (arm_store_wmmxregset, target_regsets): New. | |
20923 | * server.c (get_features_xml): Take annex argument. Check builtin | |
20924 | XML documents. | |
20925 | (handle_query): Handle multiple annexes. | |
20926 | ||
0f48aa01 DJ |
20927 | 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com> |
20928 | ||
20929 | * remote-utils.c [USE_WIN32API] (read, write): Define. | |
20930 | (putpkt_binary, input_interrupt, readchar, getpkt): Use read and | |
20931 | write. | |
20932 | ||
23181151 DJ |
20933 | 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com> |
20934 | ||
20935 | * linux-i386-low.c (the_low_target): Set arch_string. | |
20936 | * linux-x86-64-low.c (the_low_target): Likewise. | |
20937 | * linux-low.c (linux_arch_string): New. | |
20938 | (linux_target_ops): Add it. | |
20939 | * linux-low.h (struct linux_target_ops): Add arch_string. | |
20940 | * server.c (write_qxfer_response): Use const void * for DATA. | |
20941 | (get_features_xml): New. | |
20942 | (handle_query): Handle qXfer:features:read. Report it for qSupported. | |
20943 | * target.h (struct target_ops): Add arch_string method. | |
20944 | ||
9d606399 DJ |
20945 | 2007-01-03 Denis Pilat <denis.pilat@st.com> |
20946 | Daniel Jacobowitz <dan@codesourcery.com> | |
20947 | ||
20948 | * linux-low.c (linux_kill): Handle being called with no threads. | |
20949 | * win32-i386-low.c (win32_kill): Likewise. | |
20950 | (get_child_debug_event): Clear current_process_handle. | |
20951 | ||
20952 | 2006-12-30 Denis PILAT <denis.pilat@st.com> | |
8264bb58 DJ |
20953 | Daniel Jacobowitz <dan@codesourcery.com> |
20954 | ||
20955 | * remote-utils.c (remote_open): Check the type of specified | |
20956 | serial port devices before opening them. | |
20957 | * server.c (main): Kill the inferior if an error occurs during | |
20958 | the first remote_open. | |
20959 | ||
a5e13d24 DJ |
20960 | 2006-12-05 Markus Deuling <deuling@de.ibm.com> |
20961 | ||
20962 | * README: Update supported targets. | |
20963 | ||
186947f7 DJ |
20964 | 2006-11-28 Daniel Jacobowitz <dan@codesourcery.com> |
20965 | ||
20966 | * Makefile.in (clean): Remove reg-mips64.c. | |
20967 | (reg-mips64.c, reg-mips64.o): New rules. | |
20968 | * configure.srv: Handle mips64. Include regset support for mips. | |
20969 | * linux-mips-low.c (union mips_register): New. | |
20970 | (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it. | |
20971 | (mips_breakpoint, mips_breakpoint_at): Use int. | |
20972 | (mips_collect_register, mips_supply_register) | |
20973 | (mips_collect_register_32bit, mips_supply_register_32bit) | |
20974 | (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset) | |
20975 | (mips_store_fpregset, target_regsets): New. | |
20976 | * thread-db.c (thread_db_get_tls_address): Use uintptr_t. | |
20977 | ||
a13e2c95 UW |
20978 | 2006-11-22 Ulrich Weigand <uweigand@de.ibm.com> |
20979 | ||
20980 | * configure.srv: Add target "spu*-*-*". | |
20981 | * Makefile.in (clean): Remove reg-spu.c. | |
20982 | (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies. | |
20983 | * spu-low.c: New file. | |
20984 | ||
cb7283db DJ |
20985 | 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com> |
20986 | ||
20987 | * configure.ac: Correct td_thr_tls_get_addr test. | |
20988 | * configure: Regenerated. | |
20989 | ||
89be2091 DJ |
20990 | 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com> |
20991 | ||
20992 | * linux-low.c (linux_wait_for_event): Reformat. Use the | |
20993 | pass_signals array. | |
20994 | * remote-utils.c (decode_address_to_semicolon): New. | |
20995 | * server.c (pass_signals, handle_general_set): New. | |
20996 | (handle_query): Mention QPassSignals for qSupported. | |
20997 | (main): Call handle_general_set. | |
20998 | * server.h (pass_signals, decode_address_to_semicolon): New. | |
20999 | ||
000ef4f0 DJ |
21000 | 2006-11-06 Daniel Jacobowitz <dan@codesourcery.com> |
21001 | ||
21002 | * server.c (handle_query): Correct error handling for read_auxv. | |
21003 | ||
b7149293 UW |
21004 | 2005-10-19 Ulrich Weigand <uweigand@de.ibm.com> |
21005 | ||
21006 | * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets | |
21007 | and srv_linux_thread_db to yes. | |
21008 | * linux-s390-low.c (s390_fill_gregset): New function. | |
21009 | (target_regsets): Define data structure. | |
21010 | ||
dae5f5cf DJ |
21011 | 2006-10-17 Daniel Jacobowitz <dan@codesourcery.com> |
21012 | ||
21013 | * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New. | |
21014 | * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR. | |
21015 | * config.in, configure: Regenerated. | |
21016 | * inferiors.c (gdb_id_to_thread): New function. | |
21017 | (gdb_id_to_thread_id): Use it. | |
21018 | * linux-low.c (linux_target_ops): Use thread_db_get_tls_address. | |
21019 | * linux-low.h (struct process_info): Add th member. | |
21020 | (thread_db_get_tls_address): New prototype. | |
21021 | * remote-utils.c (decode_address): Make non-static. | |
21022 | * server.c (handle_query): Handle qGetTLSAddr. | |
21023 | * server.h (gdb_id_to_thread, decode_address): New prototypes. | |
21024 | * target.h (struct target_ops): Add get_tls_address. | |
21025 | * thread-db.c (maybe_attach_thread): Save the thread handle. | |
21026 | (thread_db_get_tls_address): New. | |
21027 | ||
32ca6d61 DJ |
21028 | 2006-09-28 Daniel Jacobowitz <dan@codesourcery.com> |
21029 | ||
21030 | * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define. | |
21031 | (linux_resume_one_process): Take a siginfo_t *. Update all | |
21032 | callers. Queue it if necessary. Use PTRACE_SETSIGINFO. | |
21033 | (struct pending_signals): Add a siginfo_t. | |
21034 | (linux_wait_for_process): Always set last_status. | |
21035 | (linux_wait_for_event): Use PTRACE_GETSIGINFO. | |
21036 | (linux_queue_one_thread): Use PTRACE_GETSIGINFO. | |
21037 | * linux-low.h (struct process_info): Add last_status. | |
21038 | ||
5ffff7c1 DJ |
21039 | 2006-09-21 Daniel Jacobowitz <dan@codesourcery.com> |
21040 | ||
21041 | * remote-utils.c (try_rle): New function. | |
21042 | (putpkt_binary): Use it. | |
21043 | ||
8695c747 DJ |
21044 | 2006-08-19 Daniel Jacobowitz <dan@codesourcery.com> |
21045 | ||
21046 | * Makefile.in (clean): Clean reg-x86-64-linux.c. | |
21047 | (reg-x86-64-linux.o, reg-x86-64-linux.c): New. | |
21048 | * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o. | |
21049 | * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX. | |
21050 | (x86_64_fill_gregset, x86_64_store_gregset): Skip floating | |
21051 | point registers. | |
21052 | ||
290fadea RS |
21053 | 2006-08-08 Richard Sandiford <richard@codesourcery.com> |
21054 | ||
21055 | * server.c (terminal_fd): New variable. | |
21056 | (old_foreground_pgrp): Likewise. | |
21057 | (restore_old_foreground_pgrp): New function. | |
21058 | (start_inferior): Record the terminal file descriptor in terminal_fd | |
21059 | and its original foreground group in old_foreground_pgrp. Register | |
21060 | restore_old_foreground_pgrp with atexit(). | |
21061 | ||
9f2e1e63 DJ |
21062 | 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com> |
21063 | ||
21064 | * server.c (handle_query): Correct qPart to qXfer. | |
21065 | ||
b80864fb DJ |
21066 | 2006-07-22 Daniel Jacobowitz <dan@codesourcery.com> |
21067 | ||
21068 | * configure.ac: Check for more headers which are missing on | |
21069 | Windows. Automatically supply -lwsock32 and USE_WIN32API. | |
21070 | * configure.srv: Add Cygwin and mingw32. | |
21071 | * remote-utils.c: Don't include headers unconditionally which | |
21072 | are missing on mingw32. Include <winsock.h> for mingw32. | |
21073 | (remote_open): Adjust for mingw32 support. Flush | |
21074 | standard error after writing to it. | |
21075 | (remote_close, putpkt_binary, input_interrupt, block_async_io) | |
21076 | (unblock_async_io, enable_async_io, disable_async_io) | |
21077 | (readchar, getpkt): Update for Winsock support. | |
21078 | (prepare_resume_reply): Expect a protocol signal number. | |
21079 | * server.c: Disable <sys/wait.h> on mingw32. | |
21080 | (start_inferior): Adjust for mingw32 support. Flush | |
21081 | standard error after writing to it. | |
21082 | (attach_inferior): Likewise. Use protocol signal | |
21083 | numbers. | |
21084 | (main): Skip 'D' packet on mingw32. Use protocol signal numbers | |
21085 | and names. | |
21086 | * win32-i386-low.c: New file. | |
21087 | * Makefile.in (XM_CLIBS): Set. | |
21088 | (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS). | |
21089 | (win32-i386-low.o): New dependency rule. | |
21090 | * linux-low.c (linux_wait): Use target signal numbers. | |
21091 | * target.h (struct target_ops): Doc fix. | |
21092 | * server.h (target_signal_to_name): New prototype. | |
21093 | * gdbreplay.c: Don't include headers unconditionally which | |
21094 | are missing on mingw32. Include <winsock.h> for mingw32. | |
21095 | (remote_close, remote_open): Adjust for Winsock support. | |
21096 | * configure, config.in: Regenerated. | |
21097 | ||
0876f84a DJ |
21098 | 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com> |
21099 | ||
21100 | * server.c (decode_xfer_read, write_qxfer_response): New. | |
21101 | (handle_query): Take a packet length argument. Handle | |
21102 | qXfer:auxv:read instead of qPart:auxv:read. Mention it in | |
21103 | the qSupported response. | |
21104 | (main): Update call to handle_query. | |
21105 | ||
01f9e8fa DJ |
21106 | 2006-06-22 Daniel Jacobowitz <dan@codesourcery.com> |
21107 | ||
21108 | * remote-utils.c (remote_escape_output, remote_unescape_input): New. | |
21109 | (putpkt_binary): Renamed from putpkt and adjusted for binary | |
21110 | data. | |
21111 | (putpkt): New wrapper for putpkt_binary. | |
21112 | (readchar): Don't mask off the high bit. | |
21113 | (decode_X_packet): New function. | |
21114 | * server.c (main): Call putpkt_binary if a handler sets the packet | |
21115 | length. Save the length of the incoming packet. Handle 'X'. | |
21116 | * server.h (gdb_byte, remote_escape_output, decode_X_packet): New. | |
21117 | ||
be2a5f71 DJ |
21118 | 2006-06-21 Daniel Jacobowitz <dan@codesourcery.com> |
21119 | ||
21120 | * server.c (handle_query): Handle qSupported. | |
21121 | ||
ea025f5f DJ |
21122 | 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com> |
21123 | ||
21124 | * remote-utils.c (all_symbols_looked_up): New variable. | |
21125 | (look_up_one_symbol): Check it. | |
21126 | * server.h (look_up_one_symbol): New declaration. | |
21127 | * thread-db.c (thread_db_init): Set all_symbols_looked_up. | |
21128 | ||
9308fc88 DJ |
21129 | 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com> |
21130 | ||
21131 | * Makefile.in (linux-arm-low.o): Update dependencies. | |
66f338c7 | 21132 | * linux-arm-low.c: Include "gdb_proc_service.h". |
9308fc88 DJ |
21133 | (PTRACE_GET_THREAD_AREA): Define. |
21134 | (ps_get_thread_area): New function. | |
21135 | ||
52fb6437 NS |
21136 | 2006-05-09 Nathan Sidwell <nathan@codesourcery.com> |
21137 | ||
21138 | * configure.srv (m68k*-*-uclinux*): New target. | |
21139 | * linux-low.c (linux_create_inferior): Use vfork on mmuless systems. | |
21140 | (linux_resume_one_process): Remove extraneous cast. | |
21141 | (linux_read_offsets): New. | |
21142 | (linux_target_op): Add linux_read_offsets on mmuless systems. | |
21143 | * server.c (handle_query): Add qOffsets logic. | |
21144 | * target.h (struct target_ops): Add read_offsets. | |
21145 | ||
21b0f40c DJ |
21146 | 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com> |
21147 | ||
21148 | * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h". | |
21149 | (PTRACE_GET_THREAD_AREA): Define. | |
21150 | (ps_get_thread_area): New function. | |
21151 | * Makefile.in (linux-i386-low.o, linux-mips-low.o) | |
21152 | (linux-x86-64-low.o): Update. | |
21153 | ||
0050a760 DJ |
21154 | 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com> |
21155 | ||
21156 | * configure.ac: Remove checks for prfpregset_t. | |
21157 | * gdb_proc_service.h: New file. | |
21158 | * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the | |
21159 | new "gdb_proc_service.h". | |
21160 | * proc-service.c: Likewise. | |
21161 | (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t. | |
21162 | (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument. | |
21163 | * Makefile.in (gdb_proc_service_h): Updated. | |
21164 | * configure, config.in: Regenerated. | |
21165 | ||
b92a518e DJ |
21166 | 2006-03-03 Daniel Jacobowitz <dan@codesourcery.com> |
21167 | ||
21168 | * remote-utils.c (prepare_resume_reply): Move declaration | |
21169 | of gdb_id_from_wait to the top of the block. | |
21170 | ||
545587ee DJ |
21171 | 2006-02-15 Daniel Jacobowitz <dan@codesourcery.com> |
21172 | ||
21173 | * linux-low.c (regsets_store_inferior_registers): Read the regset | |
21174 | from the target before filling it. | |
21175 | ||
9db87ebd DJ |
21176 | 2006-02-08 Daniel Jacobowitz <dan@codesourcery.com> |
21177 | ||
21178 | * server.c (attach_inferior): Return SIGTRAP for a successful | |
21179 | attach. | |
21180 | ||
dd24457d DJ |
21181 | 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com> |
21182 | ||
21183 | * Makefile.in (OBS): Add version.o. | |
21184 | (STAGESTUFF): Delete. | |
21185 | (version.o): Add dependencies. | |
21186 | (version.c): Replace rule. | |
21187 | (clean): Remove version.c. | |
21188 | * server.c (gdbserver_version): New. | |
21189 | (gdbserver_usage): Use printf. | |
21190 | (main): Handle --version and --help. | |
21191 | * server.h (version, host_name): Add declarations. | |
21192 | ||
6f0f660e EZ |
21193 | 2005-12-23 Eli Zaretskii <eliz@gnu.org> |
21194 | ||
889bf7c5 PA |
21195 | * linux-arm-low.c: |
21196 | * linux-arm-low.c: | |
21197 | * inferiors.c: | |
21198 | * i387-fp.h: | |
21199 | * i387-fp.c: | |
21200 | * gdbreplay.c: | |
21201 | * regcache.c: | |
21202 | * proc-service.c: | |
21203 | * mem-break.h: | |
21204 | * mem-break.c: | |
21205 | * linux-x86-64-low.c: | |
21206 | * linux-sh-low.c: | |
21207 | * linux-s390-low.c: | |
21208 | * linux-ppc64-low.c: | |
21209 | * linux-ppc-low.c: | |
21210 | * linux-mips-low.c: | |
21211 | * linux-m68k-low.c: | |
21212 | * linux-m32r-low.c: | |
21213 | * linux-low.h: | |
21214 | * linux-low.c: | |
21215 | * linux-ia64-low.c: | |
21216 | * linux-i386-low.c: | |
21217 | * linux-crisv32-low.c: | |
21218 | * thread-db.c: | |
21219 | * terminal.h: | |
21220 | * target.h: | |
21221 | * target.c: | |
21222 | * server.h: | |
21223 | * server.c: | |
21224 | * remote-utils.c: | |
21225 | * regcache.h: | |
21226 | * utils.c: | |
21227 | * Makefile.in: | |
21228 | * configure.ac: | |
6f0f660e EZ |
21229 | * gdbserver.1: Add (C) after Copyright. Update the FSF |
21230 | address. | |
21231 | ||
9d1fb177 DJ |
21232 | 2005-11-13 Daniel Jacobowitz <dan@codesourcery.com> |
21233 | ||
21234 | * linux-arm-low.c (arm_eabi_breakpoint): New variable. | |
21235 | (arm_breakpoint_at): Recognize both breakpoints. | |
21236 | (the_low_target): Use the correct breakpoint instruction. | |
21237 | ||
011a70c2 DJ |
21238 | 2005-11-02 Daniel Jacobowitz <dan@codesourcery.com> |
21239 | ||
21240 | * configure.srv (x86_64-*-linux*): Turn on thread_db support. | |
21241 | * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len) | |
21242 | (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New. | |
21243 | (the_low_target): Update. | |
21244 | ||
7fb85e41 AS |
21245 | 2005-10-25 Andreas Schwab <schwab@suse.de> |
21246 | ||
21247 | * server.c (main): Allocate mem_buf with PBUFSIZ bytes. | |
21248 | ||
21249 | * linux-ia64-low.c (ia64_regmap): Remove NAT registers. | |
21250 | (ia64_num_regs): Reduce to 462. | |
21251 | ||
3db0444b DJ |
21252 | 2005-09-17 Daniel Jacobowitz <dan@codesourcery.com> |
21253 | ||
21254 | * acinclude.m4: Correct quoting. | |
21255 | * aclocal.m4: Regenerated. | |
21256 | ||
21257 | Suggested by SZOKOVACS Robert <szo@ies.hu>: | |
21258 | * thread-db.c (thread_db_err_str): Handle TD_VERSION. | |
21259 | (thread_db_init): Call thread_db_err_str. | |
21260 | * configure.ac: Check for TD_VERSION. | |
21261 | * config.in, configure: Regenerated. | |
21262 | ||
bee0189a DJ |
21263 | 2005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> |
21264 | ||
21265 | * server.h (error, fatal, warning): Add ATTR_FORMAT. | |
21266 | ||
e9d25b98 DJ |
21267 | 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com> |
21268 | ||
21269 | * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS | |
21270 | is not available. Define HAVE_PTRACE_GETREGS if it is. | |
21271 | * config.in, configure: Regenerated. | |
21272 | * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64. | |
21273 | * linux-i386-low.c, linux-m68k-low.c: Update to use | |
21274 | HAVE_PTRACE_GETREGS. | |
21275 | * linux-low.c (regsets_fetch_inferior_registers) | |
21276 | (regsets_store_inferior_registers): Only return 0 if we processed | |
21277 | GENERAL_REGS. | |
21278 | * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New. | |
21279 | * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New. | |
21280 | ||
a06660f7 DJ |
21281 | 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com> |
21282 | ||
21283 | * inferiors.c (struct thread_info): Add gdb_id. | |
21284 | (add_thread): Add gdb_id argument. | |
21285 | (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New. | |
21286 | * linux-low.c (linux_create_inferior, linux_attach_lwp): Update | |
21287 | calls to add_thread. | |
21288 | * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id. | |
21289 | * server.c (handle_query): Use thread_to_gdb_id. | |
21290 | (handle_v_cont, main): Use gdb_id_to_thread_id. | |
21291 | * server.h (add_thread): Update prototype. | |
21292 | (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New | |
21293 | prototypes. | |
21294 | ||
5a1f5858 DJ |
21295 | 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com> |
21296 | ||
21297 | * linux-low.c (fetch_register, usr_store_inferior_registers): Handle | |
21298 | left-padded registers. | |
21299 | * linux-low.h (struct linux_target_ops): Add left_pad_xfer. | |
21300 | * linux-ppc64-low.c (the_low_target): Set left_pad_xfer. | |
21301 | ||
e122f1f5 SE |
21302 | 2005-07-01 Steve Ellcey <sje@cup.hp.com> |
21303 | ||
21304 | * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS. | |
21305 | * configure: Regenerate. | |
21306 | * config.in: Regenerate. | |
21307 | * server.h (NEED_DECLARATION_STRERROR): | |
21308 | Replace with !HAVE_DECL_STRERROR. | |
21309 | ||
d592fa2f DJ |
21310 | 2005-06-16 Daniel Jacobowitz <dan@codesourcery.com> |
21311 | ||
21312 | * linux-low.c (linux_wait, linux_send_signal): Don't test | |
21313 | an unsigned long variable for > 0 if it could be MAX_ULONG. | |
21314 | * server.c (myresume): Likewise. | |
21315 | * target.c (set_desired_inferior): Likewise. | |
21316 | ||
ccbd4912 MK |
21317 | 2005-06-13 Mark Kettenis <kettenis@gnu.org> |
21318 | ||
21319 | * configure.ac: Simplify and improve check for socklen_t. | |
21320 | * configure, config.in: Regenerate. | |
21321 | ||
f450004a DJ |
21322 | 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com> |
21323 | ||
21324 | * acconfig.h: Remove. | |
21325 | * configure.ac: Add a test for socklen_t. Use three-argument | |
21326 | AC_DEFINE throughout. | |
21327 | * config.in: Regenerated using autoheader 2.59. | |
21328 | * configure: Regenerated. | |
21329 | ||
21330 | * gdbreplay.c (socklen_t): Provide a default. | |
21331 | (remote_open): Use socklen_t. | |
21332 | * remote-utils.c (socklen_t): Provide a default. | |
21333 | (remote_open): Use socklen_t. | |
21334 | (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use | |
21335 | unsigned char. | |
21336 | ||
21337 | * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned | |
21338 | char for buffers. | |
21339 | * linux-low.c (linux_read_memory, linux_write_memory) | |
21340 | (linux_read_auxv): Likewise. | |
21341 | * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read) | |
21342 | (check_mem_write): Likewise. | |
21343 | * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write): | |
21344 | Likewise. | |
21345 | * regcache.c (struct inferior_rgcache_data, registers_to_string) | |
21346 | (registers_from_string, register_data): Likewise. | |
21347 | * server.c (handle_query, main): Likewise. | |
21348 | * server.h (convert_ascii_to_int, convert_int_to_ascii) | |
21349 | (decode_M_packet): Likewise. | |
21350 | * target.c (read_inferior_memory, write_inferior_memory): Likewise. | |
21351 | * target.h (struct target_ops): Update read_memory, write_memory, | |
21352 | and read_auxv. | |
21353 | (read_inferior_memory, write_inferior_memory): Update. | |
21354 | * linux-low.h (struct linux_target_ops): Change type of breakpoint | |
21355 | to unsigned char *. | |
21356 | * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c, | |
21357 | linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c, | |
21358 | linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c, | |
21359 | linux-s390-low.c, linux-sh-low.c: Update for changes in | |
21360 | read_inferior_memory and the_low_target->breakpoint. | |
21361 | ||
eee84df1 DJ |
21362 | 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com> |
21363 | ||
21364 | * Makefile.in (SFILES): Add linux-ppc64-low.c. | |
21365 | (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets. | |
21366 | * configure.srv: Add powerpc64-*-linux*. | |
21367 | * linux-ppc64-low.c: New file. | |
21368 | ||
45b134e5 OF |
21369 | 2005-05-23 Orjan Friberg <orjanf@axis.com> |
21370 | ||
21371 | * linux-cris-low.c: New file with support for CRIS. | |
21372 | * linux-crisv32-low.c: Ditto for CRISv32. | |
21373 | * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c. | |
21374 | (clean): Add reg-cris.c and reg-crisv32.c. | |
889bf7c5 | 21375 | Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c, |
45b134e5 OF |
21376 | reg-crisv32.o, and reg-crisv32.c to make rules. |
21377 | * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of | |
21378 | recognized targets. | |
21379 | ||
48d93c75 UW |
21380 | 2005-05-16 Ulrich Weigand <uweigand@de.ibm.com> |
21381 | ||
21382 | * linux-low.c (fetch_register): Ensure buffer size is a multiple | |
21383 | of sizeof (PTRACE_XFER_TYPE). | |
21384 | (usr_store_inferior_registers): Likewise. Zero out excess bytes. | |
21385 | ||
e013ee27 OF |
21386 | 2005-05-12 Orjan Friberg <orjanf@axis.com> |
21387 | ||
889bf7c5 | 21388 | * target.h (struct target_ops): Add insert_watchpoint, |
e013ee27 OF |
21389 | remove_watchpoint, stopped_by_watchpoint, stopped_data_address function |
21390 | pointers for hardware watchpoint support. | |
21391 | * linux-low.h (struct linux_target_ops): Ditto. | |
21392 | * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint) | |
21393 | (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add | |
21394 | to linux_target_ops. | |
21395 | * remote-utils.c (prepare_resume_reply): Add watchpoint information to | |
21396 | reply packet. | |
21397 | * server.c (main): Recognize 'Z' and 'z' packets. | |
21398 | ||
b0ded00b UW |
21399 | 2005-05-10 Ulrich Weigand <uweigand@de.ibm.com> |
21400 | ||
21401 | * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define. | |
21402 | (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions. | |
21403 | (the_low_target): Add new members. | |
21404 | ||
8643e2ad DJ |
21405 | 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com> |
21406 | ||
21407 | * proc-service.c (ps_lgetregs): Search all_processes instead of | |
21408 | all_threads. | |
21409 | ||
fc620387 DJ |
21410 | 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com> |
21411 | ||
21412 | * server.c (start_inferior): Change return type to int. | |
21413 | (attach_inferior): Change sigptr to int *. | |
21414 | (handle_v_cont, handle_v_requests): Change signal to int *. | |
21415 | (main): Change signal to int. | |
21416 | ||
21417 | 2005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com> | |
7cfbc4a0 KI |
21418 | |
21419 | * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o. | |
21420 | * configure.srv: Add m32r*-*-linux*. | |
21421 | * linux-m32r-low.c: New file. | |
21422 | ||
e0e76420 DJ |
21423 | 2005-03-04 Daniel Jacobowitz <dan@codesourcery.com> |
21424 | ||
21425 | * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly. | |
21426 | ||
a1928bad DJ |
21427 | 2005-03-03 Daniel Jacobowitz <dan@codesourcery.com> |
21428 | ||
21429 | * inferiors.c (change_inferior_id, add_thread, find_inferior_id): | |
21430 | Take unsigned long arguments for PIDs. | |
21431 | * linux-low.c (add_process, linux_attach_lwp, linux_attach) | |
21432 | (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop) | |
21433 | (wait_for_sigstop, linux_resume_one_process) | |
21434 | (regsets_fetch_inferior_registers, linux_send_signal) | |
21435 | (linux_read_auxv): Likewise. Update the types of variables holding | |
21436 | PIDs. Update format string specifiers. | |
21437 | * linux-low.h (struct process_info, linux_attach_lwp): Likewise. | |
21438 | * remote-utils.c (prepare_resume_reply): Likewise. | |
21439 | * server.c (cont_thread, general_thread, step_thread) | |
21440 | (thread_from_wait, old_thread_from_wait, signal_pid): Change type to | |
21441 | unsigned long. | |
21442 | (handle_query): Update format specifiers. | |
21443 | (handle_v_cont, main): Use strtoul for thread IDs. | |
21444 | * server.h (struct inferior_list_entry): Use unsigned long for ID. | |
21445 | (add_thread, find_inferior_id, change_inferior_id, cont_thread) | |
21446 | (general_thread, step_thread, thread_from_wait) | |
21447 | (old_thread_from_wait): Update. | |
21448 | * target.h (struct thread_resume): Use unsigned long for THREAD. | |
21449 | (struct target_ops): Use unsigned long for arguments to attach and | |
21450 | thread_alive. | |
21451 | ||
dcdb98d2 DJ |
21452 | 2005-02-24 Daniel Jacobowitz <dan@codesourcery.com> |
21453 | ||
21454 | * acinclude.m4: Include bfd/bfd.m4 directly. | |
21455 | * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis | |
21456 | <agriffis@toolchain.org>. | |
21457 | * aclocal.m4, configure: Regenerated. | |
21458 | ||
bec39cab AC |
21459 | 2005-01-07 Andrew Cagney <cagney@gnu.org> |
21460 | ||
21461 | * configure.ac: Rename configure.in, require autoconf 2.59. | |
21462 | * configure: Re-generate. | |
21463 | ||
434c4c77 DJ |
21464 | 2004-12-08 Daniel Jacobowitz <dan@debian.org> |
21465 | ||
21466 | * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset | |
21467 | LIBS when finished. | |
21468 | * aclocal.m4: Regenerated. | |
21469 | * configure: Regenerated. | |
21470 | ||
db1d3e1b AS |
21471 | 2004-11-21 Andreas Schwab <schwab@suse.de> |
21472 | ||
21473 | * linux-m68k-low.c (m68k_num_gregs): Define. | |
21474 | (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset) | |
21475 | (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New. | |
21476 | (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc) | |
21477 | (m68k_breakpoint_at): New. Add to the_low_target. | |
21478 | ||
21479 | * configure.srv (m68*-*-linux*): Set srv_linux_regsets and | |
21480 | srv_linux_thread_db to yes. | |
21481 | ||
43360365 JB |
21482 | 2004-10-20 Joel Brobecker <brobecker@gnat.com> |
21483 | ||
21484 | * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing. | |
21485 | (ARCH_SET_FS): Likewise. | |
21486 | (ARCH_GET_FS): Likewise. | |
21487 | (ARCH_GET_GS): Likewise. | |
21488 | ||
fd500816 DJ |
21489 | 2004-10-16 Daniel Jacobowitz <dan@debian.org> |
21490 | ||
21491 | * linux-i386-low.c (ps_get_thread_area): New. | |
21492 | * linux-x86-64-low.c (ps_get_thread_area): New. | |
21493 | * linux-low.c: Include <sys/syscall.h>. | |
21494 | (linux_kill_one_process): Don't kill the first thread here. | |
21495 | (linux_kill): Kill the first thread here. | |
21496 | (kill_lwp): New function. | |
21497 | (send_sigstop, linux_send_signal): Use it. | |
21498 | * proc-service.c: Clean up #ifdefs. | |
21499 | (fpregset_info): Delete. | |
21500 | (ps_lgetregs): Update and enable implementation. | |
21501 | (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled | |
21502 | implementations. | |
21503 | * remote-utils.c (struct sym_cache, symbol_cache): New. | |
21504 | (input_interrupt): Print a clearer message. | |
21505 | (async_io_enabled): New variable. | |
21506 | (enable_async_io, disable_async_io): Use it. Update comments. | |
21507 | (look_up_one_symbol): Use the symbol cache. | |
21508 | * thread-db.c (thread_db_look_up_symbols): New function. | |
21509 | (thread_db_init): Update comments. Call thread_db_look_up_symbols. | |
21510 | ||
f6de3c42 DJ |
21511 | 2004-10-16 Daniel Jacobowitz <dan@debian.org> |
21512 | ||
21513 | * configure.in: Test for -rdynamic. | |
21514 | * configure: Regenerated. | |
21515 | * Makefile (INTERNAL_LDFLAGS): New. | |
21516 | (gdbserver, gdbreplay): Use it. | |
21517 | ||
2c0fc042 AC |
21518 | 2004-09-02 Andrew Cagney <cagney@gnu.org> |
21519 | ||
21520 | * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE. | |
21521 | ||
075b3282 DJ |
21522 | 2004-03-23 Daniel Jacobowitz <drow@mvista.com> |
21523 | ||
21524 | * linux-low.c (linux_wait): Clear all_processes list also. | |
21525 | ||
fa6a77dc DJ |
21526 | 2004-03-12 Daniel Jacobowitz <drow@mvista.com> |
21527 | ||
21528 | * linux-low.c: Include <errno.h>. Remove extern declaration of | |
21529 | errno. | |
21530 | ||
6d782a97 DJ |
21531 | 2004-03-12 Daniel Jacobowitz <drow@mvista.com> |
21532 | ||
21533 | * gdbreplay.c, server.h, utils.c: Update copyright years. | |
21534 | ||
3a7fb99b DJ |
21535 | 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com> |
21536 | ||
21537 | * server.c (main): Print child status or termination signal from | |
21538 | variable 'signal', not 'sig'. | |
21539 | ||
c3e735a6 DJ |
21540 | 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com> |
21541 | ||
21542 | * linux-low.c (linux_read_memory): Change return type to | |
21543 | int. Check for and return error from ptrace(). | |
21544 | * target.c (read_inferior_memory): Change return type to int. Pass | |
21545 | back return status from the_target->read_memory(). | |
21546 | * target.h (struct target_ops): Adapt *read_memory() prototype. | |
21547 | Update comment. | |
21548 | (read_inferior_memory): Adapt prototype. | |
21549 | * server.c (main): Return an error packet if | |
21550 | read_inferior_memory() returns an error. | |
21551 | ||
a59d1c82 DJ |
21552 | 2004-03-04 Daniel Jacobowitz <drow@mvista.com> |
21553 | ||
21554 | * Makefile.in (distclean): Remove config.h, stamp-h, and config.log. | |
21555 | Unify with other clean targets. | |
21556 | ||
dc3f8883 DJ |
21557 | 2004-02-29 Daniel Jacobowitz <drow@mvista.com> |
21558 | ||
21559 | * server.c (handle_v_cont): Call set_desired_inferior. | |
21560 | ||
89a208da DJ |
21561 | 2004-02-29 Daniel Jacobowitz <drow@mvista.com> |
21562 | ||
21563 | * remote-utils.c (prepare_resume_reply): Always supply "thread:". | |
21564 | ||
62ea82f5 DJ |
21565 | 2004-02-29 Daniel Jacobowitz <drow@mvista.com> |
21566 | ||
21567 | * linux-low.c (linux_wait): Unblock async I/O. | |
21568 | (linux_resume): Block and enable async I/O. | |
21569 | * remote-utils.c (block_async_io, unblock_async_io): New functions. | |
21570 | * server.h (block_async_io, unblock_async_io): Add prototypes. | |
21571 | ||
6910d122 DJ |
21572 | 2004-02-29 Daniel Jacobowitz <drow@mvista.com> |
21573 | ||
21574 | * remote-utils.c (remote_open): Print a status notice after | |
21575 | opening a TCP port. | |
21576 | * server.c (attach_inferior): Print a status notice after | |
21577 | attaching. | |
21578 | ||
21579 | 2004-02-29 Daniel Jacobowitz <drow@mvista.com> | |
d677d77d DJ |
21580 | |
21581 | * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode. | |
21582 | ||
c89dc5d4 DJ |
21583 | 2004-02-26 Daniel Jacobowitz <drow@mvista.com> |
21584 | ||
21585 | * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the | |
21586 | error packet. | |
21587 | * server.c, target.h: Update copyright years. | |
21588 | ||
4b8dad4a RM |
21589 | 2004-02-25 Roland McGrath <roland@redhat.com> |
21590 | ||
21591 | * target.h (struct target_ops): New member `read_auxv'. | |
21592 | * server.c (handle_query): Handle qPart:auxv:read: query using that. | |
21593 | * linux-low.c (linux_read_auxv): New function. | |
21594 | (linux_target_ops): Initialize `read_auxv' member to that. | |
21595 | ||
d7446758 JB |
21596 | 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com> |
21597 | ||
21598 | Committed by Jim Blandy <jimb@redhat.com>. | |
21599 | ||
21600 | * linux-s390-low.c (s390_num_regs): Update. | |
4b8dad4a | 21601 | (s390_regmap): Remove control registers. Use __s390x__ predefine |
d7446758 JB |
21602 | instead of GPR_SIZE to distiguish s390 and s390x targets. |
21603 | ||
5544ad89 DJ |
21604 | 2004-01-31 Daniel Jacobowitz <drow@mvista.com> |
21605 | ||
21606 | * linux-low.c: Update copyright year. | |
21607 | (check_removed_breakpoint): Clear pending_is_breakpoint. | |
21608 | (linux_set_resume_request, linux_queue_one_thread) | |
21609 | (resume_status_pending_p): New functions. | |
21610 | (linux_continue_one_thread): Use process->resume. | |
21611 | (linux_resume): Only resume threads if there are no pending events. | |
21612 | * linux-low.h (struct process_info): Add resume request | |
21613 | pointer. | |
21614 | ||
2a68b70e DJ |
21615 | 2004-01-30 Daniel Jacobowitz <drow@mvista.com> |
21616 | ||
21617 | * regcache.c (new_register_cache): Clear the allocated register | |
21618 | buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>. | |
21619 | ||
64386c31 DJ |
21620 | 2003-10-13 Daniel Jacobowitz <drow@mvista.com> |
21621 | ||
21622 | * linux-low.c (linux_resume): Take a struct thread_resume * | |
21623 | argument. | |
21624 | (linux_wait): Update call. | |
21625 | (resume_ptr): New static variable. | |
21626 | (linux_continue_one_thread): Renamed from | |
21627 | linux_continue_one_process. Use resume_ptr. | |
21628 | (linux_resume): Use linux_continue_one_thread. | |
21629 | * server.c (handle_v_cont, handle_v_requests): New functions. | |
21630 | (myresume): New function. | |
21631 | (main): Handle 'v' case. | |
21632 | * target.h (struct thread_resume): New type. | |
21633 | (struct target_ops): Change argument of "resume" to struct | |
21634 | thread_resume *. | |
21635 | (myresume): Delete macro. | |
21636 | ||
c938e9b0 L |
21637 | 2003-08-08 H.J. Lu <hongjiu.lu@intel.com> |
21638 | ||
21639 | * Makefile.in (install-only): Create dest dir. Support DESTDIR. | |
21640 | (uninstall): Support DESTDIR. | |
21641 | ||
7f313d07 BC |
21642 | Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com> |
21643 | ||
21644 | * configure.srv: Add xscale*linux copy of arm*linux entry. | |
21645 | ||
3b2fc2ea DJ |
21646 | 2003-07-24 Daniel Jacobowitz <drow@mvista.com> |
21647 | ||
21648 | * linux-arm-low.c (arm_reinsert_addr): New function. | |
21649 | (the_low_target): Add arm_reinsert_addr. | |
21650 | ||
1c0a559e MK |
21651 | 2003-07-08 Mark Kettenis <kettenis@gnu.org> |
21652 | ||
21653 | * mem-break.c: Remove whitespace at end of file. | |
21654 | ||
43d5792c DJ |
21655 | 2003-06-28 Daniel Jacobowitz <drow@mvista.com> |
21656 | ||
21657 | * configure.in: Check whether we need to prototype strerror. | |
21658 | * server.h: Optionally prototype strerror. | |
21659 | * gdbreplay.c (perror_with_name): Use strerror. | |
21660 | * linux-low.c (linux_attach_lwp): Use strerror. | |
21661 | * utils.c (perror_with_name): Use strerror. | |
21662 | * config.in, configure: Regenerated. | |
21663 | ||
c8a86edf DJ |
21664 | 2003-06-28 Daniel Jacobowitz <drow@mvista.com> |
21665 | ||
21666 | * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by | |
21667 | SUGIOKA Toshinobu <sugioka@itonet.co.jp>. | |
21668 | ||
73d37363 DJ |
21669 | 2003-06-20 Daniel Jacobowitz <drow@mvista.com> |
21670 | ||
21671 | * Makefile.in (SFILES): Update. | |
21672 | * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c, | |
21673 | low-sun3.c: Remove files. | |
21674 | ||
6ad8ae5c DJ |
21675 | 2003-06-17 Daniel Jacobowitz <drow@mvista.com> |
21676 | ||
21677 | * linux-low.c: Move comment to linux_thread_alive where it belonged. | |
21678 | (linux_detach_one_process, linux_detach): New functions. | |
21679 | (linux_target_ops): Add linux_detach. | |
21680 | * server.c (main): Handle 'D' packet. | |
21681 | * target.h (struct target_ops): Add "detach" member. | |
21682 | (detach_inferior): Define. | |
21683 | ||
1581182a MK |
21684 | 2003-06-13 Mark Kettenis <kettenis@gnu.org> |
21685 | ||
21686 | From Kelley Cook <kelleycook@wideopenwest.com>: | |
21687 | * configure.srv: Accept i[34567]86 variants. | |
21688 | ||
e5379b03 DJ |
21689 | 2003-06-05 Daniel Jacobowitz <drow@mvista.com> |
21690 | ||
21691 | * linux-low.c (linux_wait_for_event): Correct comment typos. | |
21692 | (linux_resume_one_process): Call check_removed_breakpoint. | |
21693 | (linux_send_signal): New function. | |
21694 | (linux_target_ops): Add linux_send_signal. | |
21695 | * remote-utils.c (putpkt, input_interrupt): Use send_signal instead | |
21696 | of kill. | |
21697 | * target.h (struct target_ops): Add send_signal. | |
21698 | ||
2ff29de4 JB |
21699 | 2003-05-29 Jim Blandy <jimb@redhat.com> |
21700 | ||
21701 | * linux-low.c (usr_store_inferior_registers): Transfer buf in | |
21702 | PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise, | |
21703 | if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing | |
21704 | away part of the register's value. | |
21705 | ||
254787d4 DJ |
21706 | 2003-03-26 Daniel Jacobowitz <drow@mvista.com> |
21707 | ||
21708 | * linux-low.c (linux_create_inferior): Use __SIGRTMIN. | |
21709 | (linux_wait_for_event, linux_init_signals): Likewise. | |
21710 | ||
94e10508 DJ |
21711 | 2003-03-17 Daniel Jacobowitz <drow@mvista.com> |
21712 | ||
21713 | * configure.in: Check for stdlib.h. | |
21714 | * configure: Regenerated. | |
21715 | * config.in: Regenerated. | |
21716 | ||
4c0711e0 DJ |
21717 | 2003-01-04 Andreas Schwab <schwab@suse.de> |
21718 | ||
21719 | * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31. | |
21720 | ||
ef66e766 AC |
21721 | 2003-01-02 Andrew Cagney <ac131313@redhat.com> |
21722 | ||
21723 | * Makefile.in: Remove obsolete code. | |
21724 | ||
a1358604 DJ |
21725 | 2002-11-20 Daniel Jacobowitz <drow@mvista.com> |
21726 | ||
21727 | * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of | |
21728 | defined(PT_FPR0_HI). | |
21729 | ||
23ce3b1c DJ |
21730 | 2002-11-17 Stuart Hughes <seh@zee2.com> |
21731 | ||
21732 | * linux-arm-low.c (arm_num_regs): Increase. | |
21733 | (arm_regmap): Include status register. | |
21734 | ||
21735 | 2002-11-17 Daniel Jacobowitz <drow@mvista.com> | |
21736 | ||
21737 | * linux-low.c (register_addr): Remove incorrect -1 check. | |
21738 | ||
a9fa9f7d DJ |
21739 | 2002-08-29 Daniel Jacobowitz <drow@mvista.com> |
21740 | ||
21741 | * linux-low.c (linux_create_inferior): Call setpgid. Return | |
21742 | the new PID. | |
21743 | (unstopped_p, linux_signal_pid): Remove. | |
21744 | (linux_target_ops): Remove linux_signal_pid. | |
21745 | * remote-utils.c (putpkt, input_interrupt): Use signal_pid | |
21746 | global instead of target method. | |
21747 | * target.h (struct target_ops): Remove signal_pid. Update comment | |
21748 | for create_inferior. | |
21749 | * server.c (signal_pid): New variable. | |
21750 | (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in | |
4b8dad4a | 21751 | gdbserver. Set the child to be the foreground process group. |
a9fa9f7d DJ |
21752 | (attach_inferior): Set signal_pid. |
21753 | ||
17574093 DJ |
21754 | 2002-08-23 Daniel Jacobowitz <drow@mvista.com> |
21755 | ||
21756 | * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2. | |
21757 | ||
21758 | 2002-08-20 Jim Blandy <jimb@redhat.com> | |
21759 | ||
21760 | * Makefile.in (LDFLAGS): Allow the configure script to establish a | |
21761 | default for this. | |
21762 | ||
21763 | 2002-08-01 Andrew Cagney <cagney@redhat.com> | |
21764 | ||
21765 | * Makefile.in: Make chill references obsolete. | |
21766 | ||
21767 | 2002-07-24 Kevin Buettner <kevinb@redhat.com> | |
21768 | ||
21769 | * configure.in (unistd.h): Add to AC_CHECK_HEADERS list. | |
21770 | * configure: Regenerate. | |
21771 | * config.in: Regenerate. | |
21772 | ||
21773 | 2002-07-09 David O'Brien <obrien@FreeBSD.org> | |
21774 | ||
21775 | * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include. | |
21776 | (perror_with_name, remote_close, remote_open, expect, play): Static. | |
21777 | ||
21778 | 2002-07-04 Michal Ludvig <mludvig@suse.cz> | |
21779 | ||
4b8dad4a | 21780 | * linux-x86-64-low.c (x86_64_regmap): Make it an array of |
17574093 DJ |
21781 | byte offsets instead of an array of indexes. |
21782 | (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const. | |
21783 | ||
21784 | 2002-06-13 Daniel Jacobowitz <drow@mvista.com> | |
21785 | ||
21786 | * regcache.c: Add comment. | |
21787 | ||
21788 | 2002-06-11 Daniel Jacobowitz <drow@mvista.com> | |
21789 | ||
21790 | * thread-db.c: New file. | |
21791 | * proc-service.c: New file. | |
21792 | * acinclude.m4: New file. | |
21793 | * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h, | |
21794 | proc-service.o, and thread-db.o. | |
21795 | (linux-low.o): Add USE_THREAD_DB. | |
21796 | * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T, | |
21797 | HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN. | |
21798 | * aclocal.m4: Regenerated. | |
21799 | * config.in: Regenerated. | |
21800 | * configure: Regenerated. | |
21801 | * configure.in: Check for proc_service.h, sys/procfs.h, | |
21802 | thread_db.h, and linux/elf.h headrs. | |
21803 | Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and | |
21804 | PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB. | |
21805 | Check for -lthread_db and thread support. | |
21806 | * configure.srv: Enable thread_db support for ARM, i386, MIPS, | |
21807 | PowerPC, and SuperH. | |
21808 | * i387-fp.c: Constify arguments. | |
21809 | * i387-fp.h: Likewise. | |
21810 | * inferiors.c: (struct thread_info): Renamed from | |
21811 | `struct inferior_info'. Remove PID member. Use generic inferior | |
21812 | list header. All uses updated. | |
21813 | (inferiors, signal_pid): Removed. | |
21814 | (all_threads): New variable. | |
21815 | (get_thread): Define. | |
21816 | (add_inferior_to_list): New function. | |
21817 | (for_each_inferior): New function. | |
21818 | (change_inferior_id): New function. | |
21819 | (add_inferior): Removed. | |
21820 | (remove_inferior): New function. | |
21821 | (add_thread): New function. | |
21822 | (free_one_thread): New function. | |
21823 | (remove_thread): New function. | |
21824 | (clear_inferiors): Use for_each_inferior and free_one_thread. | |
21825 | (find_inferior): New function. | |
21826 | (find_inferior_id): New function. | |
21827 | (inferior_target_data): Update argument type. | |
21828 | (set_inferior_target_data): Likewise. | |
21829 | (inferior_regcache_data): Likewise. | |
21830 | (set_inferior_regcache_data): Likewise. | |
21831 | * linux-low.c (linux_bp_reinsert): Remove. | |
21832 | (all_processes, stopping_threads, using_thrads) | |
21833 | (struct pending_signals, debug_threads, pid_of): New. | |
21834 | (inferior_pid): Replace with macro. | |
21835 | (struct inferior_linux_data): Remove. | |
21836 | (get_stop_pc, add_process): New functions. | |
21837 | (linux_create_inferior): Restore SIGRTMIN+1 before calling exec. | |
21838 | Use add_process and add_thread. | |
21839 | (linux_attach_lwp): New function, based on old linux_attach. Use | |
21840 | add_process and add_thread. Set stop_expected for new threads. | |
21841 | (linux_attach): New function. | |
21842 | (linux_kill_one_process): New function. | |
21843 | (linux_kill): Kill all LWPs. | |
21844 | (linux_thread_alive): Use find_inferior_id. | |
21845 | (check_removed_breakpoints, status_pending_p): New functions. | |
21846 | (linux_wait_for_process): Renamed from linux_wait_for_one_inferior. | |
21847 | Update. Use WNOHANG. Wait for cloned processes also. Update process | |
21848 | struct for the found process. | |
21849 | (linux_wait_for_event): New function. | |
21850 | (linux_wait): Use it. Support LWPs. | |
21851 | (send_sigstop, wait_for_sigstop, stop_all_processes) | |
21852 | (linux_resume_one_process, linux_continue_one_process): New functions. | |
21853 | (linux_resume): Support LWPs. | |
21854 | (REGISTER_RAW_SIZE): Remove. | |
21855 | (fetch_register): Use register_size instead. Call supply_register. | |
21856 | (usr_store_inferior_registers): Likewise. Call collect_register. | |
21857 | Fix recursive case. | |
21858 | (regsets_fetch_inferior_registers): Improve error message. | |
21859 | (regsets_store_inferior_registers): Add debugging. | |
21860 | (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB. | |
21861 | (unstopped_p, linux_signal_pid): New functions. | |
21862 | (linux_target_ops): Add linux_signal_pid. | |
21863 | (linux_init_signals): New function. | |
21864 | (initialize_low): Call it. Initialize using_threads. | |
21865 | * regcache.c (inferior_regcache_data): Add valid | |
21866 | flag. | |
21867 | (get_regcache): Fetch registers lazily. Add fetch argument | |
21868 | and update all callers. | |
21869 | (regcache_invalidate_one, regcache_invalidate): New | |
21870 | functions. | |
21871 | (new_register_cache): Renamed from create_register_cache. | |
21872 | Return the new regcache. | |
21873 | (free_register_cache): Change argument to a void *. | |
21874 | (registers_to_string, registers_from_string): Call get_regcache | |
21875 | with fetch flag set. | |
21876 | (register_data): Make static. Pass fetch flag to get_regcache. | |
21877 | (supply_register): Call get_regcache with fetch flag clear. | |
21878 | (collect_register): Call get_regcache with fetch flag set. | |
21879 | (collect_register_as_string): New function. | |
21880 | * regcache.h: Update. | |
21881 | * remote-utils.c (putpkt): Flush after debug output and use | |
21882 | stderr. | |
21883 | Handle input interrupts while waiting for an ACK. | |
21884 | (input_interrupt): Use signal_pid method. | |
21885 | (getpkt): Flush after debug output and use stderr. | |
21886 | (outreg): Use collect_register_as_string. | |
21887 | (new_thread_notify, dead_thread_notify): New functions. | |
21888 | (prepare_resume_reply): Check using_threads. Set thread_from_wait | |
21889 | and general_thread. | |
21890 | (look_up_one_symbol): Flush after debug output. | |
21891 | * server.c (step_thread, server_waiting): New variables. | |
21892 | (start_inferior): Don't use signal_pid. Update call to mywait. | |
21893 | (attach_inferior): Update call to mywait. | |
21894 | (handle_query): Handle qfThreadInfo and qsThreadInfo. | |
21895 | (main): Don't fetch/store registers explicitly. Use | |
21896 | set_desired_inferior. Support proposed ``Hs'' packet. Update | |
21897 | calls to mywait. | |
21898 | * server.h: Update. | |
21899 | (struct inferior_list, struct_inferior_list_entry): New. | |
21900 | * target.c (set_desired_inferior): New. | |
21901 | (write_inferior_memory): Constify. | |
21902 | (mywait): New function. | |
21903 | * target.h: Update. | |
21904 | (struct target_ops): New signal_pid method. | |
21905 | (mywait): Removed macro, added prototype. | |
21906 | ||
21907 | * linux-low.h (regset_func): Removed. | |
21908 | (regset_fill_func, regset_store_func): New. | |
21909 | (enum regset_type): New. | |
21910 | (struct regset_info): Add type field. Use new operation types. | |
21911 | (struct linux_target_ops): stop_pc renamed to get_pc. | |
21912 | Add decr_pc_after_break and breakpoint_at. | |
21913 | (get_process, get_thread_proess, get_process_thread) | |
21914 | (strut process_info, all_processes, linux_attach_lwp) | |
21915 | (thread_db_init): New. | |
21916 | ||
21917 | * linux-arm-low.c (arm_get_pc, arm_set_pc, | |
21918 | arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New. | |
21919 | (the_low_target): Add new members. | |
21920 | * linux-i386-low.c (i386_store_gregset, i386_store_fpregset) | |
21921 | (i386_store_fpxregset): Constify. | |
21922 | (target_regsets): Add new kind identifier. | |
21923 | (i386_get_pc): Renamed from i386_stop_pc. Simplify. | |
21924 | (i386_set_pc): Add debugging. | |
21925 | (i386_breakpoint_at): New function. | |
21926 | (the_low_target): Add new members. | |
21927 | * linux-mips-low.c (mips_get_pc, mips_set_pc) | |
21928 | (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr) | |
21929 | (mips_breakpoint_at): New. | |
21930 | (the_low_target): Add new members. | |
21931 | * linux-ppc-low.c (ppc_get_pc, ppc_set_pc) | |
21932 | (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New. | |
21933 | (the_low_target): Add new members. | |
21934 | * linux-sh-low.c (sh_get_pc, sh_set_pc) | |
21935 | (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New. | |
21936 | (the_low_target): Add new members. | |
21937 | * linux-x86-64-low.c (target_regsets): Add new kind | |
21938 | identifier. | |
21939 | ||
21940 | 2002-05-15 Daniel Jacobowitz <drow@mvista.com> | |
21941 | ||
21942 | From Martin Pool <mbp@samba.org>: | |
21943 | * server.c (gdbserver_usage): New function. | |
21944 | (main): Call it. | |
21945 | ||
21946 | 2002-05-14 Daniel Jacobowitz <drow@mvista.com> | |
21947 | ||
21948 | * mem-break.c (reinsert_breakpoint_by_bp): Correct typo | |
21949 | stop_at -> stop_pc. | |
21950 | ||
21951 | 2002-05-04 Andrew Cagney <ac131313@redhat.com> | |
21952 | ||
21953 | * Makefile.in: Remove obsolete code. | |
21954 | ||
21955 | 2002-04-24 Michal Ludvig <mludvig@suse.cz> | |
21956 | ||
21957 | * linux-low.c (regsets_fetch_inferior_registers), | |
21958 | (regsets_store_inferior_registers): Removed cast to int from | |
21959 | ptrace() calls. | |
21960 | * regcache.h: Added declaration of struct inferior_info. | |
21961 | ||
21962 | 2002-04-20 Daniel Jacobowitz <drow@mvista.com> | |
21963 | ||
21964 | * inferiors.c (struct inferior_info): Add regcache_data. | |
21965 | (add_inferior): Call create_register_cache. | |
21966 | (clear_inferiors): Call free_register_cache. | |
21967 | (inferior_regcache_data, set_inferior_regcache_data): New functions. | |
21968 | * regcache.c (struct inferior_regcache_data): New. | |
21969 | (registers): Remove. | |
21970 | (get_regcache): New function. | |
21971 | (create_register_cache, free_register_cache): New functions. | |
21972 | (set_register_cache): Don't initialize the register cache here. | |
21973 | (registers_to_string, registers_from_string, register_data): Call | |
21974 | get_regcache. | |
21975 | * regcache.h: Add prototypes. | |
21976 | * server.h: Likewise. | |
21977 | ||
21978 | 2002-04-20 Daniel Jacobowitz <drow@mvista.com> | |
21979 | ||
21980 | * mem-break.c: New file. | |
21981 | * mem-break.h: New file. | |
21982 | * Makefile.in: Add mem-break.o rule; update server.h | |
21983 | dependencies. | |
21984 | * inferiors.c (struct inferior_info): Add target_data | |
21985 | member. | |
21986 | (clear_inferiors): Free target_data member if set. | |
21987 | (inferior_target_data, set_inferior_target_data): New functions. | |
21988 | * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len) | |
21989 | (i386_stop_pc, i386_set_pc): New. Add to the_low_target. | |
21990 | * linux-low.c (linux_bp_reinsert): New variable. | |
21991 | (struct inferior_linux_data): New. | |
21992 | (linux_create_inferior): Use set_inferior_target_data. | |
21993 | (linux_attach): Likewise. Call add_inferior. | |
21994 | (linux_wait_for_one_inferior): New function. | |
21995 | (linux_wait): Call it. | |
21996 | (linux_write_memory): Add const. | |
21997 | (initialize_low): Call set_breakpoint_data. | |
21998 | * linux-low.h (struct linux_target_ops): Add breakpoint | |
21999 | handling members. | |
22000 | * server.c (attach_inferior): Remove extra add_inferior | |
22001 | call. | |
22002 | * server.h: Include mem-break.h. Update inferior.c | |
22003 | prototypes. | |
22004 | * target.c (read_inferior_memory) | |
22005 | (write_inferior_memory): New functions. | |
22006 | * target.h (read_inferior_memory) | |
22007 | (write_inferior_memory): Change macros to prototypes. | |
22008 | (struct target_ops): Update comments. Add const to write_memory | |
22009 | definition. | |
22010 | ||
22011 | 2002-04-11 Daniel Jacobowitz <drow@mvista.com> | |
22012 | ||
22013 | * linux-low.c (usr_store_inferior_registers): Support | |
22014 | registers which are allowed to fail to store. | |
22015 | * linux-low.h (linux_target_ops): Likewise. | |
22016 | * linux-ppc-low.c (ppc_regmap): Support FPSCR. | |
22017 | (ppc_cannot_store_register): FPSCR may not be storable. | |
22018 | ||
22019 | 2002-04-09 Daniel Jacobowitz <drow@mvista.com> | |
22020 | ||
22021 | * server.h: Include <string.h> if HAVE_STRING_H. | |
22022 | * ChangeLog: Correct paths in last ChangeLog entry. | |
22023 | ||
22024 | 2002-04-09 Daniel Jacobowitz <drow@mvista.com> | |
22025 | ||
22026 | * linux-low.h: Remove obsolete prototypes. | |
22027 | (struct linux_target_ops): New. | |
22028 | (extern the_low_target): New. | |
22029 | * linux-low.c (num_regs, regmap): Remove declarations. | |
22030 | (register_addr): Use the_low_target explicitly. | |
22031 | (fetch_register): Likewise. | |
22032 | (usr_fetch_inferior_registers): Likewise. | |
22033 | (usr_store_inferior_registers): Likewise. | |
22034 | * linux-arm-low.c (num_regs): Remove. | |
22035 | (arm_num_regs): Define. | |
22036 | (arm_regmap): Renamed from regmap, made static. | |
22037 | (arm_cannot_fetch_register): Renamed from cannot_fetch_register, | |
22038 | made static. | |
22039 | (arm_cannot_store_register): Renamed from cannot_store_register, | |
22040 | made static. | |
22041 | (the_low_target): New. | |
22042 | * linux-i386-low.c (num_regs): Remove. | |
22043 | (i386_num_regs): Define. | |
22044 | (i386_regmap): Renamed from regmap, made static. | |
22045 | (i386_cannot_fetch_register): Renamed from cannot_fetch_register, | |
22046 | made static. | |
22047 | (i386_cannot_store_register): Renamed from cannot_store_register, | |
22048 | made static. | |
22049 | (the_low_target): New. | |
22050 | * linux-ia64-low.c (num_regs): Remove. | |
22051 | (ia64_num_regs): Define. | |
22052 | (ia64_regmap): Renamed from regmap, made static. | |
22053 | (ia64_cannot_fetch_register): Renamed from cannot_fetch_register, | |
22054 | made static. | |
22055 | (ia64_cannot_store_register): Renamed from cannot_store_register, | |
22056 | made static. | |
22057 | (the_low_target): New. | |
22058 | * linux-m68k-low.c (num_regs): Remove. | |
22059 | (m68k_num_regs): Define. | |
22060 | (m68k_regmap): Renamed from regmap, made static. | |
22061 | (m68k_cannot_fetch_register): Renamed from cannot_fetch_register, | |
22062 | made static. | |
22063 | (m68k_cannot_store_register): Renamed from cannot_store_register, | |
22064 | made static. | |
22065 | (the_low_target): New. | |
22066 | * linux-mips-low.c (num_regs): Remove. | |
22067 | (mips_num_regs): Define. | |
22068 | (mips_regmap): Renamed from regmap, made static. | |
22069 | (mips_cannot_fetch_register): Renamed from cannot_fetch_register, | |
22070 | made static. | |
22071 | (mips_cannot_store_register): Renamed from cannot_store_register, | |
22072 | made static. | |
22073 | (the_low_target): New. | |
22074 | * linux-ppc-low.c (num_regs): Remove. | |
22075 | (ppc_num_regs): Define. | |
22076 | (ppc_regmap): Renamed from regmap, made static. | |
22077 | (ppc_cannot_fetch_register): Renamed from cannot_fetch_register, | |
22078 | made static. | |
22079 | (ppc_cannot_store_register): Renamed from cannot_store_register, | |
22080 | made static. | |
22081 | (the_low_target): New. | |
22082 | * linux-s390-low.c (num_regs): Remove. | |
22083 | (s390_num_regs): Define. | |
22084 | (s390_regmap): Renamed from regmap, made static. | |
22085 | (s390_cannot_fetch_register): Renamed from cannot_fetch_register, | |
22086 | made static. | |
22087 | (s390_cannot_store_register): Renamed from cannot_store_register, | |
22088 | made static. | |
22089 | (the_low_target): New. | |
22090 | * linux-sh-low.c (num_regs): Remove. | |
22091 | (sh_num_regs): Define. | |
22092 | (sh_regmap): Renamed from regmap, made static. | |
22093 | (sh_cannot_fetch_register): Renamed from cannot_fetch_register, | |
22094 | made static. | |
22095 | (sh_cannot_store_register): Renamed from cannot_store_register, | |
22096 | made static. | |
22097 | (the_low_target): New. | |
22098 | * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap. | |
22099 | (the_low_target): New. | |
22100 | ||
22101 | 2002-04-09 Daniel Jacobowitz <drow@mvista.com> | |
22102 | ||
22103 | * Makefile.in: Add stamp-h target. | |
22104 | * configure.in: Create stamp-h. | |
22105 | * configure: Regenerated. | |
22106 | ||
22107 | 2002-04-09 Daniel Jacobowitz <drow@mvista.com> | |
22108 | ||
22109 | * inferiors.c: New file. | |
22110 | * target.c: New file. | |
22111 | * target.h: New file. | |
22112 | * Makefile.in: Add target.o and inferiors.o. Update | |
22113 | dependencies. | |
22114 | * linux-low.c (inferior_pid): New static variable, | |
22115 | moved from server.c. | |
22116 | (linux_create_inferior): Renamed from create_inferior. | |
22117 | Call add_inferior. Return 0 on success instead of a PID. | |
22118 | (linux_attach): Renamed from myattach. | |
22119 | (linux_kill): Renamed from kill_inferior. Call clear_inferiors (). | |
22120 | (linux_thread_alive): Renamed from mythread_alive. | |
22121 | (linux_wait): Renamed from mywait. Call clear_inferiors () if the | |
22122 | child dies. | |
22123 | (linux_resume): Renamed from myresume. Add missing ``return 0''. | |
22124 | (regsets_store_inferior_registers): Correct error message. | |
22125 | Add missing ``return 0''. | |
22126 | (linux_fetch_registers): Renamed from fetch_inferior_registers. | |
22127 | (linux_store_registers): Renamed from store_inferior_registers. | |
22128 | (linux_read_memory): Renamed from read_inferior_memory. | |
22129 | (linux_write_memory): Renamed from write_inferior_memory. | |
22130 | (linux_target_ops): New structure. | |
22131 | (initialize_low): Call set_target_ops (). | |
22132 | * remote-utils.c (unhexify): New function. | |
22133 | (hexify): New function. | |
22134 | (input_interrupt): Send signals to ``signal_pid''. | |
22135 | * server.c (inferior_pid): Remove. | |
22136 | (start_inferior): Update create_inferior call. | |
22137 | (attach_inferior): Call add_inferior. | |
22138 | (handle_query): New function. | |
22139 | (main): Call handle_query for `q' packets. | |
22140 | * server.h: Include "target.h". Remove obsolete prototypes. | |
22141 | Add prototypes for "inferiors.c", "target.c", hexify, and unhexify. | |
22142 | ||
22143 | 2002-04-09 Daniel Jacobowitz <drow@mvista.com> | |
22144 | ||
22145 | * Makefile.in: Add WARN_CFLAGS. Update configury | |
22146 | dependencies. | |
22147 | * configure.in: Check for <string.h> | |
22148 | * configure: Regenerate. | |
22149 | * config.in: Regenerate. | |
22150 | * gdbreplay.c: Include needed system headers. | |
22151 | (remote_open): Remove strchr prototype. | |
22152 | * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS. | |
22153 | * regcache.c (supply_register): Change buf argument to const void *. | |
22154 | (supply_register_by_name): Likewise. | |
22155 | (collect_register): Change buf argument to void *. | |
22156 | (collect_register_by_name): Likewise. | |
22157 | * regcache.h: Add missing prototypes. | |
22158 | * remote-utils.c: Include <arpa/inet.h> for inet_ntoa. | |
22159 | * server.c (handle_query): New function. | |
22160 | (attached): New static variable, moved out of main. | |
22161 | (main): Quiet longjmp clobber warnings. | |
22162 | * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes. | |
22163 | * utils.c (error): Remove NORETURN. | |
22164 | (fatal): Likewise. |