c857f0014041097b29e6fe27e1fbd893a7a0198a
[deliverable/binutils-gdb.git] / gdbserver / ChangeLog
1 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
2
3 * Makefile.in (SFILES): Remove linux-cris-low.c.
4 * configure.srv: Remove cris cases.
5 * linux-cris-low.cc, linux-crisv32-low.cc: Remove.
6
7 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
8
9 * Makefile.in (SFILES): Remove linux-bfin-low.c.
10 * configure.srv: Remove bfin case.
11 * linux-bfin-low.cc: Remove.
12 * linux-low.cc: Remove BFIN-conditional code.
13
14 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
15
16 * configure: Re-generate.
17 * configure.ac: Remove srv_qnx test.
18 * configure.srv: Remove nto case.
19 * nto-low.cc, nto-low.h, nto-x86-low.cc: Remove.
20 * remote-utils.c: Remove __QNX__-guarded code.
21
22 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
23
24 * configure: Re-generate.
25 * configure.ac: Remove srv_lynxos test.
26 * configure.srv: Remove lynxos cases.
27 * lynx-i386-low.cc, lynx-low.cc, lynx-low.h, lynx-ppc-low.c:
28 Remove.
29
30 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
31
32 * README: Fix a few outdated or incoherent things.
33
34 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
35
36 * win32-low.cc (do_initial_child_stuff): Set open_process_used.
37 (win32_clear_inferiors): Use open_process_used.
38 (get_child_debug_event): Likewise.
39
40 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
41
42 PR gdbserver/25893
43 * linux-low.cc (linux_process_target::create_inferior),
44 lynx-low.cc (lynx_process_target::create_inferior),
45 win32-low.cc (win32_process_target::create_inferior): Use
46 construct_inferior_arguments instead of stringify_argv
47 to get string representation which properly escapes
48 special characters.
49 * server.cc (handle_v_run): Just pass empty program arg
50 as such, since any further processing is now handled via
51 construct_inferior_arguments.
52
53 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
54
55 * nto-low.cc (nto_process_target::create_inferior): Pass
56 argv to spawnp function as char **.
57
58 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
59
60 * server.cc (captured_main), (handle_v_run): No longer
61 insert extra NULL element to args vector.
62
63 2020-05-23 Pedro Alves <palves@redhat.com>
64
65 * gdb-safe-ctype.h: New.
66
67 2020-05-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
68
69 * linux-ia64-low.cc (ia64_target::sw_breakpoint_from_kind):
70 Fix incorrect 'gdb_assert_no_reached' to 'gdb_assert_not_reached'.
71 (ia64_target::low_breakpoint_at): Ditto.
72
73 2020-05-15 Hannes Domani <ssbssa@yahoo.de>
74
75 * win32-i386-low.cc (i386_supports_z_point_type): Handle
76 Z_PACKET_HW_BP z_type.
77 (i386_insert_point): Handle raw_bkpt_type type.
78 (i386_remove_point): Likewise.
79
80 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
81
82 * configure.srv <x86_64-*-mingw*, x86_64-*-cygwin*> (srv_tgtobj):
83 Add arch/i386.o.
84 * win32-arm-low.cc (arm_num_regs): New function.
85 (struct win32_target_ops): Use arm_num_regs.
86 * win32-i386-low.cc (win32_get_current_dr): Adapt for WOW64
87 processes.
88 (i386_get_thread_context): Likewise.
89 (i386_prepare_to_resume): Likewise.
90 (i386_thread_added): Likewise.
91 (i386_single_step): Likewise.
92 (i386_fetch_inferior_register): Likewise.
93 (i386_store_inferior_register): Likewise.
94 (i386_arch_setup): Likewise.
95 (i386_win32_num_regs): New function.
96 (struct win32_target_ops): Use i386_win32_num_regs.
97 * win32-low.cc (win32_get_thread_context): Adapt for WOW64
98 processes.
99 (win32_require_context): Likewise.
100 (child_add_thread): Likewise.
101 (do_initial_child_stuff): Likewise.
102 (continue_one_thread): Likewise.
103 (win32_process_target::resume): Likewise.
104 (load_psapi): Likewise.
105 (win32_add_all_dlls): Likewise.
106 (maybe_adjust_pc): Likewise.
107 (win32_process_target::qxfer_siginfo): Likewise.
108 (initialize_low): Likewise.
109 * win32-low.h (struct win32_target_ops): Change num_regs to
110 callback function.
111
112 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
113
114 * configure.ac: Remove check for fs_base/gs_base in
115 user_regs_struct.
116 * configure: Re-generate.
117 * config.in: Re-generate.
118 * linux-x86-low.cc (x86_64_regmap, x86_fill_gregset,
119 x86_store_gregset): Adjust.
120
121 2020-04-22 Hannes Domani <ssbssa@yahoo.de>
122
123 * server.cc (handle_search_memory_1): Fix gdb_read_memory return value
124 comparison.
125
126 2020-04-16 Tom Tromey <tromey@adacore.com>
127
128 * win32-low.cc (windows_nat::handle_access_violation): New
129 function.
130
131 2020-04-15 Simon Marchi <simon.marchi@polymtl.ca>
132
133 * win32-low.cc (get_child_debug_event): Fix format string warning.
134
135 2020-04-13 Tom Tromey <tom@tromey.com>
136
137 * server.h (gdb_fildes_t): Remove typedef.
138 * remote-utils.c (remote_desc, list_desc): Now int.
139 (INVALID_DESCRIPTOR): Remove.
140 (gdb_connected, remote_close)
141 (check_remote_input_interrupt_request): Update.
142 * utils.h (pfildes): Don't declare.
143 * utils.c (pfildes): Remove.
144
145 2020-04-13 Tom Tromey <tom@tromey.com>
146
147 * server.h (handle_serial_event, handle_target_event): Update.
148 * server.c: Don't call initialize_event_loop.
149 (keep_processing_events): New global.
150 (handle_serial_event): Return void. Set keep_processing_events.
151 (handle_target_event): Return void.
152 (start_event_loop): Move from event-loop.c. Rewrite.
153 * remote-utils.c (handle_accept_event): Return void.
154 (reset_readchar): Use delete_timer.
155 (process_remaining): Return void.
156 (reschedule): Use create_timer.
157 * event-loop.h: Remove.
158 * event-loop.cc: Remove.
159 * Makefile.in (OBS): Use gdbsupport/event-loop.o, not event-loop.o.
160
161 2020-04-13 Tom Tromey <tom@tromey.com>
162
163 * server.c (invoke_async_signal_handlers)
164 (check_async_event_handlers, flush_streams, gdb_select): New
165 functions.
166
167 2020-04-13 Tom Tromey <tom@tromey.com>
168
169 * configure: Rebuild.
170 * config.in: Rebuild.
171
172 2020-04-08 Tom Tromey <tromey@adacore.com>
173
174 PR gdb/22992
175 * win32-low.c (child_continue): Call matching_pending_stop.
176 (get_child_debug_event): Call fetch_pending_stop. Push pending
177 stop when needed.
178
179 2020-04-08 Tom Tromey <tromey@adacore.com>
180
181 * win32-low.h (win32_process_target::stopped_by_sw_breakpoint)
182 (win32_process_target::supports_stopped_by_sw_breakpoint):
183 Declare.
184 * win32-low.c (win32_supports_z_point_type): Always handle
185 Z_PACKET_SW_BP.
186 (win32_insert_point): Call insert_memory_breakpoint when needed.
187 (win32_remove_point): Call remove_memory_breakpoint when needed.
188 (win32_process_target::stopped_by_sw_breakpoint)
189 (win32_process_target::supports_stopped_by_sw_breakpoint): New
190 methods.
191 (win32_target_ops): Update.
192 (maybe_adjust_pc): New function.
193 (win32_wait): Call maybe_adjust_pc.
194
195 2020-04-08 Tom Tromey <tromey@adacore.com>
196
197 * win32-low.h (struct win32_target_ops) <decr_pc_after_break>: New
198 field.
199 * win32-i386-low.c (the_low_target): Update.
200 * win32-arm-low.c (the_low_target): Update.
201
202 2020-04-08 Tom Tromey <tromey@adacore.com>
203
204 * win32-low.h (win32_process_target::read_pc)
205 (win32_process_target::write_pc): Declare.
206 * win32-low.c (win32_process_target::read_pc)
207 (win32_process_target::write_pc): New methods.
208 * win32-i386-low.c (i386_win32_get_pc, i386_win32_set_pc): New
209 functions.
210 (the_low_target): Update.
211 * win32-arm-low.c (arm_win32_get_pc, arm_win32_set_pc): New
212 functions.
213 (the_low_target): Update.
214
215 2020-04-08 Tom Tromey <tromey@adacore.com>
216
217 * win32-low.c (win32_kill, get_child_debug_event): Use
218 wait_for_debug_event.
219
220 2020-04-08 Tom Tromey <tromey@adacore.com>
221
222 * win32-low.c (child_continue): Call continue_last_debug_event.
223
224 2020-04-08 Tom Tromey <tromey@adacore.com>
225
226 * win32-low.c (handle_exception): Remove.
227 (windows_nat::handle_ms_vc_exception): New function.
228 (get_child_debug_event): Add "continue_status" parameter.
229 Update.
230 (win32_wait): Update.
231
232 2020-04-08 Tom Tromey <tromey@adacore.com>
233
234 * win32-low.c (windows_nat::handle_load_dll): Rename from
235 handle_load_dll. No longer static.
236 (windows_nat::handle_unload_dll): Rename from handle_unload_dll.
237 No longer static.
238
239 2020-04-08 Tom Tromey <tromey@adacore.com>
240
241 * win32-low.c (handle_output_debug_string): Add parameter. Change
242 return type.
243 (win32_kill, get_child_debug_event): Update.
244
245 2020-04-08 Tom Tromey <tromey@adacore.com>
246
247 * win32-low.c (current_process_handle, current_process_id)
248 (main_thread_id, last_sig, current_event, siginfo_er): Move to
249 nat/windows-nat.c.
250
251 2020-04-08 Tom Tromey <tromey@adacore.com>
252
253 * win32-low.c (get_image_name): Remove.
254 (handle_load_dll): Update.
255
256 2020-04-08 Tom Tromey <tromey@adacore.com>
257
258 * win32-low.c (windows_nat::thread_rec): Rename from thread_rec.
259 No longer static. Change parameters.
260 (child_add_thread, child_fetch_inferior_registers)
261 (child_store_inferior_registers, win32_resume)
262 (win32_get_tib_address): Update.
263
264 2020-04-08 Tom Tromey <tromey@adacore.com>
265
266 * win32-low.h (struct win32_target_ops): Use qualified names where
267 needed.
268 * win32-i386-low.c: Add "using namespace".
269 * win32-low.c: Add "using namespace".
270 * win32-arm-low.c: Add "using namespace".
271
272 2020-04-08 Tom Tromey <tromey@adacore.com>
273
274 * win32-low.c (delete_thread_info): Don't call CloseHandle.
275
276 2020-04-08 Tom Tromey <tromey@adacore.com>
277
278 * win32-low.c (win32_require_context, suspend_one_thread): Use
279 windows_thread_info::suspend.
280 (continue_one_thread): Use windows_thread_info::resume.
281 * configure.srv (srv_tgtobj): Add windows-nat.o when needed.
282
283 2020-04-08 Tom Tromey <tromey@adacore.com>
284
285 * win32-i386-low.c (update_debug_registers)
286 (i386_prepare_to_resume, i386_thread_added): Update.
287
288 2020-04-08 Tom Tromey <tromey@adacore.com>
289
290 * win32-low.c (child_add_thread): Use new.
291 (delete_thread_info): Use delete.
292
293 2020-04-08 Tom Tromey <tromey@adacore.com>
294
295 * win32-low.h (struct windows_thread_info): Remove.
296
297 2020-04-08 Tom Tromey <tromey@adacore.com>
298
299 * win32-low.h (struct windows_thread_info): Rename from
300 win32_thread_info. Remove typedef.
301 (struct win32_target_ops, win32_require_context): Update.
302 * win32-low.c (win32_get_thread_context)
303 (win32_set_thread_context, win32_prepare_to_resume)
304 (win32_require_context, thread_rec, child_add_thread)
305 (delete_thread_info, continue_one_thread)
306 (child_fetch_inferior_registers, child_store_inferior_registers)
307 (win32_resume, suspend_one_thread, win32_get_tib_address):
308 Update.
309 * win32-i386-low.c (update_debug_registers)
310 (win32_get_current_dr, i386_get_thread_context)
311 (i386_prepare_to_resume, i386_thread_added, i386_single_step)
312 (i386_fetch_inferior_register, i386_store_inferior_register):
313 Update.
314 * win32-arm-low.c (arm_get_thread_context)
315 (arm_fetch_inferior_register, arm_store_inferior_register):
316 Update.
317
318 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
319
320 * linux-low.h (struct linux_target_ops): Remove.
321 (the_low_target): Remove.
322 * linux-x86-low.cc (the_low_target): Remove.
323 * linux-aarch64-low.cc (the_low_target): Ditto.
324 * linux-arm-low.cc (the_low_target): Ditto.
325 * linux-bfin-low.cc (the_low_target): Ditto.
326 * linux-cris-low.cc (the_low_target): Ditto.
327 * linux-crisv32-low.cc (the_low_target): Ditto.
328 * linux-ia64-low.cc (the_low_target): Ditto.
329 * linux-m32r-low.cc (the_low_target): Ditto.
330 * linux-m68k-low.cc (the_low_target): Ditto.
331 * linux-mips-low.cc (the_low_target): Ditto.
332 * linux-nios2-low.cc (the_low_target): Ditto.
333 * linux-ppc-low.cc (the_low_target): Ditto.
334 * linux-riscv-low.cc (the_low_target): Ditto.
335 * linux-s390-low.cc (the_low_target): Ditto.
336 * linux-sh-low.cc (the_low_target): Ditto.
337 * linux-sparc-low.cc (the_low_target): Ditto.
338 * linux-tic6x-low.cc (the_low_target): Ditto.
339 * linux-tile-low.cc (the_low_target): Ditto.
340 * linux-xtensa-low.cc (the_low_target): Ditto.
341
342 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
343
344 Remove the 'get_ipa_tdesc_idx' linux target op and let a concrete
345 linux target define the op by overriding the declaration in
346 process_stratum_target.
347
348 * linux-low.h (struct linux_target_ops): Remove the op.
349 (class linux_process_target) <get_ipa_tdesc_idx>: Remove.
350 * linux-low.cc (linux_process_target::get_ipa_tdesc_idx): Remove.
351 * linux-x86-low.cc (class x86_target) <get_ipa_tdesc_idx>: Declare.
352 (x86_get_ipa_tdesc_idx): Turn into...
353 (x86_target::get_ipa_tdesc_idx): ...this.
354 (the_low_target): Remove the op field.
355 * linux-ppc-low.cc (class ppc_target) <get_ipa_tdesc_idx>: Declare.
356 (ppc_get_ipa_tdesc_idx): Turn into...
357 (ppc_target::get_ipa_tdesc_idx): ...this.
358 (the_low_target): Remove the op field.
359 * linux-s390-low.cc (class s390_target) <get_ipa_tdesc_idx>: Declare.
360 (s390_get_ipa_tdesc_idx): Turn into...
361 (s390_target::get_ipa_tdesc_idx): ...this.
362 (the_low_target): Remove the op field.
363
364 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
365
366 Turn the 'get_syscall_trapinfo' linux target op into a method
367 of process_stratum_target.
368
369 * linux-low.h (struct linux_target_ops): Remove the op.
370 (class linux_process_target) <get_syscall_trapinfo>
371 <gdb_catch_this_syscall>
372 <low_supports_catch_syscall>
373 <low_get_syscall_trapinfo>: Declare.
374 * linux-low.cc (get_syscall_trapinfo): Turn into...
375 (linux_process_target::get_syscall_trapinfo): ...this.
376 (linux_process_target::low_get_syscall_trapinfo): Define.
377 (gdb_catch_this_syscall_p): Turn into...
378 (linux_process_target::gdb_catch_this_syscall): ...this.
379 (linux_process_target::low_supports_catch_syscall): Define.
380
381 Update the callers below.
382
383 (linux_process_target::wait_1)
384 (linux_process_target::supports_catch_syscall)
385
386 * linux-x86-low.cc (class x86_target) <low_supports_catch_syscall>
387 <low_get_syscall_trapinfo>: Declare.
388 (x86_target::low_supports_catch_syscall): Define.
389 (x86_get_syscall_trapinfo): Turn into...
390 (x86_target::low_get_syscall_trapinfo): ...this.
391 (the_low_target): Remove the op field.
392 * linux-aarch64-low.cc (class aarch64_target)
393 <low_supports_catch_syscall>
394 <low_get_syscall_trapinfo>: Declare.
395 (aarch64_target::low_supports_catch_syscall): Define.
396 (aarch64_get_syscall_trapinfo): Turn into...
397 (aarch64_target::low_get_syscall_trapinfo): ...this.
398 (the_low_target): Remove the op field.
399 * linux-arm-low.cc (class arm_target) <low_supports_catch_syscall>
400 <low_get_syscall_trapinfo>: Declare.
401 (arm_target::low_supports_catch_syscall): Define.
402 (arm_get_syscall_trapinfo): Turn into...
403 (arm_target::low_get_syscall_trapinfo): ...this.
404 (the_low_target): Remove the op field.
405 * linux-ppc-low.cc (the_low_target): Remove the op field.
406 * linux-s390-low.cc (the_low_target): Remove the op field.
407
408 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
409
410 Remove the 'supports_hardware_single_step' linux target op and
411 override the process_stratum_target's op definition in
412 linux_process_target to return true.
413
414 * linux-low.h (struct linux_target_ops): Remove the op.
415 (class linux_process_target) <finish_step_over>
416 <maybe_hw_step>: Declare.
417 * linux-low.cc (can_hardware_single_step): Remove.
418 (maybe_hw_step): Turn into...
419 (linux_process_target::maybe_hw_step): ...this.
420 (finish_step_over): Turn into...
421 (linux_process_target::finish_step_over): ...this.
422 (linux_process_target::supports_hardware_single_step): Update
423 to return true.
424
425 Update the callers below.
426
427 (linux_process_target::single_step)
428 (linux_process_target::resume_one_lwp_throw)
429
430 * linux-arm-low.cc (class arm_target)
431 <supports_hardware_single_step>: Declare.
432 (arm_supports_hardware_single_step): Turn into...
433 (arm_target::supports_hardware_single_step): ...this.
434 (the_low_target): Remove the op field.
435 * linux-x86-low.cc (x86_supports_hardware_single_step): Remove.
436 (the_low_target): Remove the op field.
437 * linux-aarch64-low.cc (aarch64_supports_hardware_single_step):
438 Remove.
439 (the_low_target): Remove the op field.
440 * linux-bfin-low.cc (bfin_supports_hardware_single_step): Remove.
441 (the_low_target): Remove the op field.
442 * linux-crisv32-low.cc (cris_supports_hardware_single_step): Remove.
443 (the_low_target): Remove the op field.
444 * linux-m32r-low.cc (m32r_supports_hardware_single_step): Remove.
445 (the_low_target): Remove the op field.
446 * linux-m68k-low.cc (m68k_supports_hardware_single_step): Remove.
447 (the_low_target): Remove the op field.
448 * linux-ppc-low.cc (ppc_supports_hardware_single_step): Remove.
449 (the_low_target): Remove the op field.
450 * linux-s390-low.cc (s390_supports_hardware_single_step): Remove.
451 (the_low_target): Remove the op field.
452 * linux-sh-low.cc (sh_supports_hardware_single_step): Remove.
453 (the_low_target): Remove the op field.
454 * linux-tic6x-low.cc (tic6x_supports_hardware_single_step): Remove.
455 (the_low_target): Remove the op field.
456 * linux-tile-low.cc (tile_supports_hardware_single_step): Remove.
457 (the_low_target): Remove the op field.
458 * linux-xtensa-low.cc (xtensa_supports_hardware_single_step):
459 Remove.
460 (the_low_target): Remove the op field.
461
462 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
463
464 Turn the 'supports_range_stepping' linux target op into a method
465 of linux_process_target.
466
467 * linux-low.h (struct linux_target_ops): Remove the op.
468 (class linux_process_target) <low_supports_range_stepping>: Declare.
469 * linux-low.cc (linux_process_target::low_supports_range_stepping):
470 Define.
471 (linux_process_target::supports_range_stepping): Update the call
472 site.
473 * linux-x86-low.cc (class x86_target)
474 <low_supports_range_stepping>: Declare.
475 (x86_supports_range_stepping): Turn into...
476 (x86_target::low_supports_range_stepping): ...this.
477 (the_low_target): Remove the op field.
478 * linux-aarch64-low.cc (class aarch64_target)
479 <low_supports_range_stepping>: Declare.
480 (aarch64_supports_range_stepping): Turn into...
481 (aarch64_target::low_supports_range_stepping): ...this.
482 (the_low_target): Remove the op field.
483 * linux-arm-low.cc (the_low_target): Remove the op field.
484 * linux-bfin-low.cc (the_low_target): Ditto.
485 * linux-crisv32-low.cc (the_low_target): Ditto.
486 * linux-m32r-low.cc (the_low_target): Ditto.
487 * linux-m68k-low.cc (the_low_target): Ditto.
488 * linux-ppc-low.cc (the_low_target): Ditto.
489 * linux-s390-low.cc (the_low_target): Ditto.
490 * linux-sh-low.cc (the_low_target): Ditto.
491 * linux-tic6x-low.cc (the_low_target): Ditto.
492 * linux-tile-low.cc (the_low_target): Ditto.
493 * linux-xtensa-low.cc (the_low_target): Ditto.
494
495 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
496
497 Remove the 'emit_ops' linux target ops and let the concrete
498 linux target define the op by overriding the declaration of
499 process_stratum_target.
500
501 * linux-low.h (struct linux_target_ops): Remove the op.
502 (class linux_process_target) <emit_ops>: Remove.
503 * linux-low.cc (linux_process_target::emit_ops): Remove.
504 * linux-x86-low.cc (class x86_target) <emit_ops>: Declare.
505 (x86_emit_ops): Turn into...
506 (x86_target::emit_ops): ...this.
507 (the_low_target): Remove the op field.
508 * linux-aarch64-low.cc (class aarch64_target) <emit_ops>: Declare.
509 (aarch64_emit_ops): Turn into...
510 (aarch64_target::emit_ops): ...this.
511 (the_low_target): Remove the op field.
512 * linux-ppc-low.cc (class ppc_target) <emit_ops>: Declare.
513 (ppc_emit_ops): Turn into...
514 (ppc_target::emit_ops): ...this.
515 (the_low_target): Remove the op field.
516 * linux-s390-low.cc (class s390_target) <emit_ops>: Declare.
517 (s390_emit_ops): Turn into...
518 (s390_target::emit_ops): ...this.
519 (the_low_target): Remove the op field.
520 * linux-arm-low.cc (the_low_target): Remove the op field.
521 * linux-bfin-low.cc (the_low_target): Ditto.
522 * linux-crisv32-low.cc (the_low_target): Ditto.
523 * linux-m32r-low.cc (the_low_target): Ditto.
524 * linux-m68k-low.cc (the_low_target): Ditto.
525 * linux-sh-low.cc (the_low_target): Ditto.
526 * linux-tic6x-low.cc (the_low_target): Ditto.
527 * linux-tile-low.cc (the_low_target): Ditto.
528 * linux-xtensa-low.cc (the_low_target): Ditto.
529
530 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
531
532 Remove the 'install_fast_tracepoint_jump_pad' and
533 'get_min_fast_tracepoint_insn_len' linux target ops to let the
534 concrete linux target define the ops by overriding the declarations
535 of process_stratum_target.
536
537 * linux-low.h (struct linux_target_ops): Remove the ops.
538 (class linux_process_target) <supports_fast_tracepoints>
539 <install_fast_tracepoint_jump_pad>
540 <get_min_fast_tracepoint_insn_len>: Remove.
541 * linux-low.cc (linux_process_target::supports_fast_tracepoints)
542 (linux_process_target::install_fast_tracepoint_jump_pad)
543 (linux_process_target::get_min_fast_tracepoint_insn_len): Remove.
544 * linux-x86-low.cc (class x86_target) <supports_fast_tracepoints>
545 <install_fast_tracepoint_jump_pad>
546 <get_min_fast_tracepoint_insn_len>: Declare.
547 (x86_target::supports_fast_tracepoints): Define.
548 (x86_install_fast_tracepoint_jump_pad): Turn into...
549 (x86_target::install_fast_tracepoint_jump_pad): ...this.
550 (x86_get_min_fast_tracepoint_insn_len): Turn into...
551 (x86_target::get_min_fast_tracepoint_insn_len): ...this.
552 (the_low_target): Remove the op fields.
553 * linux-aarch64-low.cc (class aarch64_target)
554 <supports_fast_tracepoints>
555 <install_fast_tracepoint_jump_pad>
556 <get_min_fast_tracepoint_insn_len>: Declare.
557 (aarch64_target::supports_fast_tracepoints): Define.
558 (aarch64_install_fast_tracepoint_jump_pad): Turn into...
559 (aarch64_target::install_fast_tracepoint_jump_pad): ...this.
560 (aarch64_get_min_fast_tracepoint_insn_len): Turn into...
561 (aarch64_target::get_min_fast_tracepoint_insn_len): ...this.
562 (the_low_target): Remove the op fields.
563 * linux-ppc-low.cc (class ppc_target) <supports_fast_tracepoints>
564 <install_fast_tracepoint_jump_pad>
565 <get_min_fast_tracepoint_insn_len>: Declare.
566 (ppc_target::supports_fast_tracepoints): Define.
567 (ppc_install_fast_tracepoint_jump_pad): Turn into...
568 (ppc_target::install_fast_tracepoint_jump_pad): ...this.
569 (ppc_get_min_fast_tracepoint_insn_len): Turn into...
570 (ppc_target::get_min_fast_tracepoint_insn_len): ...this.
571 (the_low_target): Remove the op fields.
572 * linux-s390-low.cc (class s390_target) <supports_fast_tracepoints>
573 <install_fast_tracepoint_jump_pad>
574 <get_min_fast_tracepoint_insn_len>: Declare.
575 (s390_target::supports_fast_tracepoints): Define.
576 (s390_install_fast_tracepoint_jump_pad): Turn into...
577 (s390_target::install_fast_tracepoint_jump_pad): ...this.
578 (s390_get_min_fast_tracepoint_insn_len): Turn into...
579 (s390_target::get_min_fast_tracepoint_insn_len): ...this.
580 (the_low_target): Remove the op fields.
581 * linux-arm-low.cc (the_low_target): Remove the op fields.
582 * linux-bfin-low.cc (the_low_target): Ditto.
583 * linux-crisv32-low.cc (the_low_target): Ditto.
584 * linux-m32r-low.cc (the_low_target): Ditto.
585 * linux-m68k-low.cc (the_low_target): Ditto.
586 * linux-sh-low.cc (the_low_target): Ditto.
587 * linux-tic6x-low.cc (the_low_target): Ditto.
588 * linux-tile-low.cc (the_low_target): Ditto.
589 * linux-xtensa-low.cc (the_low_target): Ditto.
590
591 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
592
593 Turn the 'get_thread_area' linux target op into a method of
594 process_stratum_target.
595
596 * linux-low.h (struct linux_target_ops): Remove the op.
597 (class linux_process_target) <stuck_in_jump_pad>
598 <linux_fast_tracepoint_collecting>
599 <low_get_thread_area>: Declare.
600 * linux-low.cc (supports_fast_tracepoints): Remove.
601 (linux_fast_tracepoint_collecting): Turn into...
602 (linux_process_target::linux_fast_tracepoint_collecting): ...this.
603 (linux_process_target::low_get_thread_area): Define.
604 (stuck_in_jump_pad_callback): Turn into...
605 (linux_process_target::stuck_in_jump_pad): ...this.
606
607 Update the caller below.
608
609 (linux_process_target::stabilize_threads)
610
611 * linux-x86-low.cc (class x86_target) <low_get_thread_area>:
612 Declare.
613 (x86_get_thread_area): Turn into...
614 (x86_target::low_get_thread_area): ...this.
615 (the_low_target): Remove the op field.
616 * linux-aarch64-low.cc (class aarch64_target) <low_get_thread_area>:
617 Declare.
618 (aarch64_get_thread_area): Turn into...
619 (aarch64_target::low_get_thread_area): ...this.
620 (the_low_target): Remove the op field.
621 * linux-ppc-low.cc (class ppc_target) <low_get_thread_area>:
622 Declare.
623 (ppc_get_thread_area): Turn into...
624 (ppc_target::low_get_thread_area): ...this.
625 (the_low_target): Remove the op field.
626 * linux-s390-low.cc (class s390_target) <low_get_thread_area>:
627 Declare.
628 (s390_get_thread_area): Turn into...
629 (s390_target::low_get_thread_area): ...this.
630 (the_low_target): Remove the op field.
631 * linux-arm-low.cc (the_low_target): Remove the op field.
632 * linux-bfin-low.cc (the_low_target): Ditto.
633 * linux-crisv32-low.cc (the_low_target): Ditto.
634 * linux-m32r-low.cc (the_low_target): Ditto.
635 * linux-m68k-low.cc (the_low_target): Ditto.
636 * linux-sh-low.cc (the_low_target): Ditto.
637 * linux-tic6x-low.cc (the_low_target): Ditto.
638 * linux-tile-low.cc (the_low_target): Ditto.
639 * linux-xtensa-low.cc (the_low_target): Ditto.
640
641 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
642
643 Remote the 'supports_tracepoints' linux target op and let the
644 concrete linux target define it by overriding the op declared in
645 process_stratum_target.
646
647 * linux-low.h (struct linux_target_ops): Remove the op.
648 (class linux_process_target) <supports_tracepoints>: Remove.
649 * linux-low.cc (linux_process_target::supports_tracepoints): Remove.
650 * linux-x86-low.cc (class x86_target) <supports_tracepoints>:
651 Declare.
652 (x86_supports_tracepoints): Turn into...
653 (x86_target::supports_tracepoints): ...this.
654 (the_low_target): Remove the op field.
655 * linux-aarch64-low.cc (class aarch64_target)
656 <supports_tracepoints>: Declare.
657 (aarch64_supports_tracepoints): Turn into...
658 (aarch64_target::supports_tracepoints): ...this.
659 (the_low_target): Remove the op field.
660 * linux-ppc-low.cc (class ppc_target) <supports_tracepoints>:
661 Declare.
662 (ppc_supports_tracepoints): Turn into...
663 (ppc_target::supports_tracepoints): ...this.
664 (the_low_target): Remove the op field.
665 * linux-s390-low.cc (class s390_target) <supports_tracepoints>:
666 Declare.
667 (s390_supports_tracepoints): Turn into...
668 (s390_target::supports_tracepoints): ...this.
669 (the_low_target): Remove the op field.
670 * linux-arm-low.cc (the_low_target): Remove the op field.
671 * linux-bfin-low.cc (the_low_target): Ditto.
672 * linux-crisv32-low.cc (the_low_target): Ditto.
673 * linux-m32r-low.cc (the_low_target): Ditto.
674 * linux-m68k-low.cc (the_low_target): Ditto.
675 * linux-sh-low.cc (the_low_target): Ditto.
676 * linux-tic6x-low.cc (the_low_target): Ditto.
677 * linux-tile-low.cc (the_low_target): Ditto.
678 * linux-xtensa-low.cc (the_low_target): Ditto.
679
680 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
681
682 Remove the 'process_qsupported' linux target op and let a concrete
683 linux target define the op by overriding the op declaration in
684 process_stratum_target.
685
686 * linux-low.h (struct linux_target_ops): Remove the op.
687 (class linux_process_target) <process_qsupported>: Remove.
688 * linux-low.cc (linux_process_target::process_qsupported): Remove.
689 * linux-x86-low.cc (class x86_target) <process_qsupported>: Declare.
690 (x86_linux_process_qsupported): Turn into...
691 (x86_target::process_qsupported): ...this.
692 (the_low_target): Remove the op field.
693 * linux-aarch64-low.cc (the_low_target): Remove the op
694 field.
695 * linux-arm-low.cc (the_low_target): Ditto.
696 * linux-bfin-low.cc (the_low_target): Ditto.
697 * linux-crisv32-low.cc (the_low_target): Ditto.
698 * linux-m32r-low.cc (the_low_target): Ditto.
699 * linux-m68k-low.cc (the_low_target): Ditto.
700 * linux-ppc-low.cc (the_low_target): Ditto.
701 * linux-s390-low.cc (the_low_target): Ditto.
702 * linux-sh-low.cc (the_low_target): Ditto.
703 * linux-tic6x-low.cc (the_low_target): Ditto.
704 * linux-tile-low.cc (the_low_target): Ditto.
705 * linux-xtensa-low.cc (the_low_target): Ditto.
706
707 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
708
709 Turn the 'prepare_to_resume' linux target op into a method of
710 linux_process_target.
711
712 * linux-low.h (struct linux_target_ops): Remove the op.
713 (class linux_process_target) <low_prepare_to_resume>: Declare.
714 * linux-low.cc (linux_process_target::low_prepare_to_resume):
715 Define.
716
717 Update the callers below:
718
719 (linux_process_target::resume_one_lwp_throw)
720 (linux_process_target::low_prepare_to_resume)
721
722 * linux-x86-low.cc (class x86_target) <low_prepare_to_resume>:
723 Declare.
724 (x86_target::low_prepare_to_resume): Define.
725 (the_low_target): Remove the op field.
726 * linux-aarch64-low.cc (class aarch64_target)
727 <low_prepare_to_resume>: Declare.
728 (aarch64_target::low_prepare_to_resume): Define.
729 (the_low_target): Remove the op field.
730 * linux-arm-low.cc (class arm_target) <low_prepare_to_resume>:
731 Declare.
732 (arm_prepare_to_resume): Turn into...
733 (arm_target::low_prepare_to_resume): ...this.
734 (the_low_target): Remove the op field.
735 * linux-mips-low.cc (class mips_target) <low_prepare_to_resume>:
736 Declare.
737 (mips_linux_prepare_to_resume): Turn into...
738 (mips_target::low_prepare_to_resume): ...this.
739 (the_low_target): Remove the op field.
740 * linux-bfin-low.cc (the_low_target): Remove the op field.
741 * linux-crisv32-low.cc (the_low_target): Ditto.
742 * linux-m32r-low.cc (the_low_target): Ditto.
743 * linux-m68k-low.cc (the_low_target): Ditto.
744 * linux-ppc-low.cc (the_low_target): Ditto.
745 * linux-s390-low.cc (the_low_target): Ditto.
746 * linux-sh-low.cc (the_low_target): Ditto.
747 * linux-tic6x-low.cc (the_low_target): Ditto.
748 * linux-tile-low.cc (the_low_target): Ditto.
749 * linux-xtensa-low.cc (the_low_target): Ditto.
750
751 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
752
753 Turn the 'new_process', 'delete_process', 'new_thread',
754 'delete_thread', and 'new_fork' linux target ops into methods
755 of linux_process_target.
756
757 * linux-low.h (struct linux_target_ops): Remove the ops.
758 (class linux_process_target) <add_linux_process>
759 <add_lwp>
760 <delete_lwp>
761 <attach_lwp>
762 <detach_one_lwp>
763 <check_zombie_leaders>
764 <filter_exit_event>
765 <low_new_process>
766 <low_delete_process>
767 <low_new_thread>
768 <low_delete_thread>
769 <low_new_fork>: Declare.
770 * linux-low.cc (delete_lwp): Turn into...
771 (linux_process_target::delete_lwp): ...this.
772 (linux_process_target::low_delete_thread): Define.
773 (linux_add_process): Turn into...
774 (linux_process_target::add_linux_process): ...this.
775 (linux_process_target::low_new_process): Define.
776 (linux_process_target::low_delete_process): Define.
777 (linux_process_target::low_new_fork): Define.
778 (add_lwp): Turn into...
779 (linux_process_target::add_lwp): ...this.
780 (linux_process_target::low_new_thread): Define.
781 (linux_attach_lwp): Turn into...
782 (linux_process_target::attach_lwp): ...this.
783 (linux_detach_one_lwp): Turn into...
784 (linux_process_target::detach_one_lwp): ...this.
785 (linux_detach_lwp_callback): Remove and inline...
786 (linux_process_target::detach): ...here.
787 (check_zombie_leaders): Turn into...
788 (linux_process_target::check_zombie_leaders): ...this.
789 (filter_exit_event): Turn into...
790 (linux_process_target::filter_exit_event): ...this.
791
792 Update the callers below.
793
794 (linux_process_target::handle_extended_wait)
795 (linux_process_target::create_inferior)
796 (attach_proc_task_lwp_callback)
797 (linux_process_target::attach)
798 (linux_process_target::detach)
799 (linux_process_target::mourn)
800 * thread-db.cc (attach_thread)
801
802 * linux-x86-low.cc (class x86_target) <low_new_process>
803 <low_delete_process>
804 <low_new_thread>
805 <low_delete_thread>
806 <low_new_fork>: Declare.
807 (x86_linux_new_process): Turn into...
808 (x86_target::low_new_process): ...this.
809 (x86_linux_delete_process): Turn into...
810 (x86_target::low_delete_process): ...this.
811 (x86_target::low_new_thread): Define.
812 (x86_target::low_delete_thread): Define.
813 (x86_linux_new_fork): Turn into...
814 (x86_target::low_new_fork): ...this.
815 (the_low_target): Remove the op fields.
816 * linux-aarch64-low.cc (class aarch64_target) <low_new_process>
817 <low_delete_process>
818 <low_new_thread>
819 <low_delete_thread>
820 <low_new_fork>: Declare.
821 (aarch64_linux_new_process): Turn into...
822 (aarch64_target::low_new_process): ...this.
823 (aarch64_linux_delete_process): Turn into...
824 (aarch64_target::low_delete_process): ...this.
825 (aarch64_target::low_new_thread): Define.
826 (aarch64_target::low_delete_thread): Define.
827 (aarch64_linux_new_fork): Turn into...
828 (aarch64_target::low_new_fork): ...this.
829 (the_low_target): Remove the op fields.
830 * linux-arm-low.cc (class arm_target) <low_new_process>
831 <low_delete_process>
832 <low_new_thread>
833 <low_delete_thread>
834 <low_new_fork>: Declare.
835 (arm_new_process): Turn into...
836 (arm_target::low_new_process): ...this.
837 (arm_delete_process): Turn into...
838 (arm_target::low_delete_process): ...this.
839 (arm_new_thread): Turn into...
840 (arm_target::low_new_thread): ...this.
841 (arm_delete_thread): Turn into...
842 (arm_target::low_delete_thread): ...this.
843 (arm_new_fork): Turn into...
844 (arm_target::low_new_fork): ...this.
845 (the_low_target): Remove the op fields.
846 * linux-mips-low.cc (class mips_target) <low_new_process>
847 <low_delete_process>
848 <low_new_thread>
849 <low_delete_thread>
850 <low_new_fork>: Declare.
851 (mips_linux_new_process): Turn into...
852 (mips_target::low_new_process): ...this.
853 (mips_linux_delete_process): Turn into...
854 (mips_target::low_delete_process): ...this.
855 (mips_linux_new_thread): Turn into...
856 (mips_target::low_new_thread): ...this.
857 (mips_linux_delete_thread): Turn into...
858 (mips_target::low_delete_thread): ...this.
859 (mips_linux_new_fork): Turn into...
860 (mips_target::low_new_fork): ...this.
861 (the_low_target): Remove the op fields.
862 * linux-bfin-low.cc (the_low_target): Remove the op fields.
863 * linux-crisv32-low.cc (the_low_target): Ditto.
864 * linux-m32r-low.cc (the_low_target): Ditto.
865 * linux-m68k-low.cc (the_low_target): Ditto.
866 * linux-ppc-low.cc (the_low_target): Ditto.
867 * linux-s390-low.cc (the_low_target): Ditto.
868 * linux-sh-low.cc (the_low_target): Ditto.
869 * linux-tic6x-low.cc (the_low_target): Ditto.
870 * linux-tile-low.cc (the_low_target): Ditto.
871 * linux-xtensa-low.cc (the_low_target): Ditto.
872
873 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
874
875 Turn the 'siginfo_fixup' linux target op into a method of
876 linux_process_target.
877
878 * linux-low.h (struct linux_target_ops): Remove the op.
879 (class linux_process_target) <siginfo_fixup>
880 <low_siginfo_fixup>: Declare.
881 * linux-low.cc (siginfo_fixup): Turn into...
882 (linux_process_target::siginfo_fixup): ...this.
883 (linux_process_target::low_siginfo_fixup): Define.
884 * linux-x86-low.cc (class x86_target) <low_siginfo_fixup>: Declare.
885 (x86_siginfo_fixup): Turn into...
886 (x86_target::low_siginfo_fixup): ...this.
887 (the_low_target): Remove the op field.
888 * linux-aarch64-low.cc (class aarch64_target):
889 <low_siginfo_fixup>: Declare.
890 (aarch64_linux_siginfo_fixup): Turn into...
891 (aarch64_target::low_siginfo_fixup): ...this.
892 (the_low_target): Remove the op field.
893 * linux-arm-low.cc (the_low_target): Remove the op field.
894 * linux-bfin-low.cc (the_low_target): Ditto.
895 * linux-crisv32-low.cc (the_low_target): Ditto.
896 * linux-m32r-low.cc (the_low_target): Ditto.
897 * linux-m68k-low.cc (the_low_target): Ditto.
898 * linux-mips-low.cc (the_low_target): Ditto.
899 * linux-ppc-low.cc (the_low_target): Ditto.
900 * linux-s390-low.cc (the_low_target): Ditto.
901 * linux-sh-low.cc (the_low_target): Ditto.
902 * linux-tic6x-low.cc (the_low_target): Ditto.
903 * linux-tile-low.cc (the_low_target): Ditto.
904 * linux-xtensa-low.cc (the_low_target): Ditto.
905
906 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
907
908 Turn the 'collect_ptrace_register' and 'supply_ptrace_register'
909 linux target ops into methods of linux_process_target.
910
911 * linux-low.h (struct linux_target_ops): Remove the ops.
912 (class linux_process_target) <low_collect_ptrace_register>
913 <low_store_ptrace_register>: Declare.
914 * linux-low.cc (linux_process_target::low_collect_ptrace_register)
915 (linux_process_target::low_supply_ptrace_register): Define.
916
917 Update the callers below.
918
919 (linux_process_target::fetch_register)
920 (linux_process_target::store_register)
921
922 * linux-x86-low.cc (the_low_target): Remove the op fields.
923 * linux-aarch64-low.cc (the_low_target): Ditto.
924 * linux-arm-low.cc (the_low_target): Ditto.
925 * linux-bfin-low.cc (the_low_target): Ditto.
926 * linux-crisv32-low.cc (the_low_target): Ditto.
927 * linux-m32r-low.cc (the_low_target): Ditto.
928 * linux-m68k-low.cc (the_low_target): Ditto.
929 * linux-sh-low.cc (the_low_target): Ditto.
930 * linux-sparc-low.cc (the_low_target): Ditto.
931 * linux-tic6x-low.cc (the_low_target): Ditto.
932 * linux-tile-low.cc (the_low_target): Ditto.
933 * linux-xtensa-low.cc (the_low_target): Ditto.
934 * linux-mips-low.cc (class mips_target)
935 <low_collect_ptrace_register>
936 <low_supply_ptrace_register>: Declare.
937 (mips_collect_ptrace_register): Turn into ...
938 (mips_target::low_collect_ptrace_register): ...this.
939 (mips_supply_ptrace_register): Turn into...
940 (mips_target::low_supply_ptrace_register): ...this.
941 (the_low_target): Remove the op fields.
942 * linux-ppc-low.cc (class ppc_target)
943 <low_collect_ptrace_register>
944 <low_supply_ptrace_register>: Declare.
945 (ppc_collect_ptrace_register): Turn into ...
946 (ppc_target::low_collect_ptrace_register): ...this.
947 (ppc_supply_ptrace_register): Turn into ...
948 (ppc_target::low_supply_ptrace_register): ...this.
949 (ppc_fill_gregset): Update for the calls to
950 low_collect_ptrace_register.
951 (the_low_target): Remove the op fields.
952 * linux-s390-low.cc (class s390_target)
953 <low_collect_ptrace_register>
954 <low_supply_ptrace_register>: Declare.
955 (s390_collect_ptrace_register): Turn into ...
956 (s390_target::low_collect_ptrace_register): ...this.
957 (s390_supply_ptrace_register): Turn into ...
958 (s390_target::low_supply_ptrace_register): ...this.
959 (s390_fill_gregset): Update for the calls to
960 low_collect_ptrace_register.
961 (the_low_target): Remove the op fields.
962
963 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
964
965 Turn the 'stopped_by_watchpoint' and 'stopped_data_address' linux
966 target ops into methods of linux_process_target.
967
968 * linux-low.h (struct linux_target_ops): Remove the ops.
969 (class linux_process_target) <check_stopped_by_watchpoint>
970 <low_stopped_by_watchpoint>
971 <low_stopped_data_address>: Declare.
972 * linux-low.cc (check_stopped_by_watchpoint): Turn into...
973 (linux_process_target::check_stopped_by_watchpoint): ...this.
974 (linux_process_target::low_stopped_by_watchpoint): Define.
975 (linux_process_target::low_stopped_data_address): Define.
976 * linux-x86-low.cc (class x86_target) <low_stopped_by_watchpoint>
977 <low_stopped_data_address>: Declare.
978 (x86_stopped_by_watchpoint): Turn into...
979 (x86_target::low_stopped_by_watchpoint): ...this.
980 (x86_stopped_data_address): Turn into...
981 (x86_target::low_stopped_data_address): ...this.
982 (the_low_target): Remove the op fields.
983 * linux-aarch64-low.cc (class aarch64_target)
984 <low_stopped_by_watchpoint>
985 <low_stopped_data_address>: Declare.
986 (aarch64_stopped_by_watchpoint): Turn into...
987 (aarch64_target::low_stopped_by_watchpoint): ...this.
988 (aarch64_stopped_data_address): Turn into...
989 (aarch64_target::low_stopped_data_address): ...this.
990 (the_low_target): Remove the op fields.
991 * linux-arm-low.cc (class arm_target) <low_stopped_by_watchpoint>
992 <low_stopped_data_address>: Declare.
993 (arm_stopped_by_watchpoint): Turn into...
994 (arm_target::low_stopped_by_watchpoint): ...this.
995 (arm_stopped_data_address): Turn into...
996 (arm_target::low_stopped_data_address): ...this.
997 (the_low_target): Remove the op fields.
998 * linux-crisv32-low.cc (class crisv32_target)
999 <low_stopped_by_watchpoint>
1000 <low_stopped_data_address>: Declare.
1001 (cris_stopped_by_watchpoint): Turn into...
1002 (crisv32_target::low_stopped_by_watchpoint): ...this.
1003 (cris_stopped_data_address): Turn into...
1004 (crisv32_target::low_stopped_data_address): ...this.
1005 (the_low_target): Remove the op fields.
1006 * linux-mips-low.cc (class mips_target) <low_stopped_by_watchpoint>
1007 <low_stopped_data_address>: Declare.
1008 (mips_stopped_by_watchpoint): Turn into...
1009 (mips_target::low_stopped_by_watchpoint): ...this.
1010 (mips_stopped_data_address): Turn into...
1011 (mips_target::low_stopped_data_address): ...this.
1012 (the_low_target): Remove the op fields.
1013 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1014 * linux-m32r-low.cc (the_low_target): Ditto.
1015 * linux-m68k-low.cc (the_low_target): Ditto.
1016 * linux-ppc-low.cc (the_low_target): Ditto.
1017 * linux-s390-low.cc (the_low_target): Ditto.
1018 * linux-sh-low.cc (the_low_target): Ditto.
1019 * linux-sparc-low.cc (the_low_target): Ditto.
1020 * linux-tic6x-low.cc (the_low_target): Ditto.
1021 * linux-tile-low.cc (the_low_target): Ditto.
1022 * linux-xtensa-low.cc (the_low_target): Ditto.
1023
1024 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1025
1026 Turn the 'insert_point' and 'remove_point' linux target ops into
1027 methods of linux_process_target.
1028
1029 * linux-low.h (struct linux_target_ops): Remove the ops.
1030 (class linux_process_target) <low_insert_point>
1031 <low_remove_point>: Declare.
1032 * linux-low.cc (linux_process_target::low_insert_point)
1033 (linux_process_target::low_remove_point): Define.
1034 (linux_process_target::insert_point)
1035 (linux_process_target::remove_point): Update for calls to
1036 low_insert_point and low_remove_point.
1037 * linux-x86-low.cc (class x86_target) <low_insert_point>
1038 <low_remove_point>: Declare.
1039 (x86_insert_point): Turn into...
1040 (x86_target::low_insert_point): ...this.
1041 (x86_remove_point): Turn into...
1042 (x86_target::low_remove_point): ...this.
1043 (the_low_target): Remove the op fields.
1044 * linux-aarch64-low.cc (class aarch64_target) <low_insert_point>
1045 <low_remove_point>: Declare.
1046 (aarch64_insert_point): Turn into...
1047 (aarch64_target::low_insert_point): ...this.
1048 (aarch64_remove_point): Turn into...
1049 (aarch64_target::low_remove_point): ...this.
1050 (the_low_target): Remove the op fields.
1051 * linux-arm-low.cc (class arm_target) <low_insert_point>
1052 <low_remove_point>: Declare.
1053 (arm_insert_point): Turn into...
1054 (arm_target::low_insert_point): ...this.
1055 (arm_remove_point): Turn into...
1056 (arm_target::low_remove_point): ...this.
1057 (the_low_target): Remove the op fields.
1058 * linux-crisv32-low.cc (class crisv32_target) <low_insert_point>
1059 <low_remove_point>: Declare.
1060 (crisv32_insert_point): Turn into...
1061 (crisv32_target::low_insert_point): ...this.
1062 (crisv32_remove_point): Turn into...
1063 (crisv32_target::low_remove_point): ...this.
1064 (the_low_target): Remove the op fields.
1065 * linux-mips-low.cc (class mips_target) <low_insert_point>
1066 <low_remove_point>: Declare.
1067 (mips_insert_point): Turn into...
1068 (mips_target::low_insert_point): ...this.
1069 (mips_remove_point): Turn into...
1070 (mips_target::low_remove_point): ...this.
1071 (the_low_target): Remove the op fields.
1072 * linux-ppc-low.cc (class ppc_target) <low_insert_point>
1073 <low_remove_point>: Declare.
1074 (ppc_insert_point): Turn into...
1075 (ppc_target::low_insert_point): ...this.
1076 (ppc_remove_point): Turn into...
1077 (ppc_target::low_remove_point): ...this.
1078 (the_low_target): Remove the op fields.
1079 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1080 * linux-m32r-low.cc (the_low_target): Ditto.
1081 * linux-m68k-low.cc (the_low_target): Ditto.
1082 * linux-s390-low.cc (the_low_target): Ditto.
1083 * linux-sh-low.cc (the_low_target): Ditto.
1084 * linux-sparc-low.cc (the_low_target): Ditto.
1085 * linux-tic6x-low.cc (the_low_target): Ditto.
1086 * linux-tile-low.cc (the_low_target): Ditto.
1087 * linux-xtensa-low.cc (the_low_target): Ditto.
1088
1089 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1090
1091 Remove the 'supports_z_point_type' linux target op and let the
1092 concrete linux target define it by overriding the op declared in
1093 process_stratum_target.
1094
1095 * linux-low.cc (linux_process_target::supports_z_point_type):
1096 Remove.
1097 * linux-low.h (struct linux_target_ops): Remove the op.
1098 (class linux_process_target) <supports_z_point_type>: Remove.
1099 * linux-x86-low.cc (class x86_target) <supports_z_point_type>:
1100 Declare.
1101 (x86_supports_z_point_type): Turn into...
1102 (x86_target::supports_z_point_type): ...this.
1103 (the_low_target): Remove the op field.
1104 * linux-aarch64-low.cc (class aarch64_target)
1105 <supports_z_point_type>: Declare.
1106 (aarch64_supports_z_point_type): Turn into...
1107 (aarch64_target::supports_z_point_type): ...this.
1108 (the_low_target): Remove the op field.
1109 * linux-arm-low.cc (class arm_target) <supports_z_point_type>:
1110 Declare.
1111 (arm_supports_z_point_type): Turn into...
1112 (arm_target::supports_z_point_type): ...this.
1113 (the_low_target): Remove the op field.
1114 * linux-crisv32-low.cc (class crisv32_target)
1115 <supports_z_point_type>: Declare.
1116 (cris_supports_z_point_type): Turn into...
1117 (crisv32_target::supports_z_point_type): ...this.
1118 (the_low_target): Remove the op field.
1119 * linux-mips-low.cc (class mips_target) <supports_z_point_type>:
1120 Declare.
1121 (mips_supports_z_point_type): Turn into...
1122 (mips_target::supports_z_point_type): ...this.
1123 (the_low_target): Remove the op field.
1124 * linux-ppc-low.cc (class ppc_target) <supports_z_point_type>:
1125 Declare.
1126 (ppc_supports_z_point_type): Turn into...
1127 (ppc_target::supports_z_point_type): ...this.
1128 (the_low_target): Remove the op field.
1129 * linux-s390-low.cc (class s390_target) <supports_z_point_type>:
1130 Declare.
1131 (s390_supports_z_point_type): Turn into...
1132 (s390_target::supports_z_point_type): ...this.
1133 (the_low_target): Remove the op field.
1134 * linux-bfin-low.cc (the_low_target): Remove the op field.
1135 * linux-m32r-low.cc (the_low_target): Ditto.
1136 * linux-m68k-low.cc (the_low_target): Ditto.
1137 * linux-sh-low.cc (the_low_target): Ditto.
1138 * linux-sparc-low.cc (the_low_target): Ditto.
1139 * linux-tic6x-low.cc (the_low_target): Ditto.
1140 * linux-tile-low.cc (the_low_target): Ditto.
1141 * linux-xtensa-low.cc (the_low_target): Ditto.
1142
1143 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1144
1145 Turn the 'breakpoint_at' linux target op into a method of
1146 linux_process_target.
1147
1148 * linux-low.h (struct linux_target_ops): Remove the op.
1149 (class linux_process_target) <low_breakpoint_at>: Declare.
1150
1151 Update the callers below:
1152
1153 * linux-low.cc (linux_process_target::save_stop_reason)
1154 (linux_process_target::thread_still_has_status_pending)
1155 (linux_process_target::wait_1)
1156
1157 * linux-x86-low.cc (class x86_target)
1158 <low_breakpoint_at>: Declare.
1159 (x86_breakpoint_at): Turn into...
1160 (x86_target::low_breakpoint_at): ...this.
1161 (the_low_target): Remove the op field.
1162 * linux-aarch64-low.cc (class aarch64_target)
1163 <low_breakpoint_at>: Declare.
1164 (aarch64_breakpoint_at): Turn into...
1165 (aarch64_target::low_breakpoint_at): ...this.
1166 (the_low_target): Remove the op field.
1167 * linux-arm-low.cc (class arm_target)
1168 <low_breakpoint_at>: Declare.
1169 (arm_target::low_breakpoint_at): Define.
1170 (the_low_target): Remove the op field.
1171 * linux-bfin-low.cc (class bfin_target)
1172 <low_breakpoint_at>: Declare.
1173 (bfin_breakpoint_at): Turn into...
1174 (bfin_target::low_breakpoint_at): ...this.
1175 (the_low_target): Remove the op field.
1176 * linux-cris-low.cc (class cris_target)
1177 <low_breakpoint_at>: Declare.
1178 (cris_breakpoint_at): Turn into...
1179 (cris_target::low_breakpoint_at): ...this.
1180 (the_low_target): Remove the op field.
1181 * linux-crisv32-low.cc (class crisv32_target)
1182 <low_breakpoint_at>: Declare.
1183 (crisv32_breakpoint_at): Turn into...
1184 (crisv32_target::low_breakpoint_at): ...this.
1185 (the_low_target): Remove the op field.
1186 * linux-ia64-low.cc (class ia64_target)
1187 <low_breakpoint_at>: Declare.
1188 (ia64_target::low_breakpoint_at): Define.
1189 * linux-m32r-low.cc (class m32r_target)
1190 <low_breakpoint_at>: Declare.
1191 (m32r_breakpoint_at): Turn into...
1192 (m32r_target::low_breakpoint_at): ...this.
1193 (the_low_target): Remove the op field.
1194 * linux-m68k-low.cc (class m68k_target)
1195 <low_breakpoint_at>: Declare.
1196 (m68k_breakpoint_at): Turn into...
1197 (m68k_target::low_breakpoint_at): ...this.
1198 (the_low_target): Remove the op field.
1199 * linux-mips-low.cc (class mips_target)
1200 <low_breakpoint_at>: Declare.
1201 (mips_breakpoint_at): Turn into...
1202 (mips_target::low_breakpoint_at): ...this.
1203 (the_low_target): Remove the op field.
1204 * linux-nios2-low.cc (class nios2_target)
1205 <low_breakpoint_at>: Declare.
1206 (nios2_breakpoint_at): Turn into...
1207 (nios2_target::low_breakpoint_at): ...this.
1208 (the_low_target): Remove the op field.
1209 * linux-ppc-low.cc (class ppc_target)
1210 <low_breakpoint_at>: Declare.
1211 (ppc_breakpoint_at): Turn into...
1212 (ppc_target::low_breakpoint_at): ...this.
1213 (the_low_target): Remove the op field.
1214 * linux-riscv-low.cc (class riscv_target)
1215 <low_breakpoint_at>: Declare.
1216 (riscv_breakpoint_at): Turn into...
1217 (riscv_target::low_breakpoint_at): ...this.
1218 (the_low_target): Remove the op field.
1219 * linux-s390-low.cc (class s390_target)
1220 <low_breakpoint_at>: Declare.
1221 (s390_breakpoint_at): Turn into...
1222 (s390_target::low_breakpoint_at): ...this.
1223 (the_low_target): Remove the op field.
1224 * linux-sh-low.cc (class sh_target)
1225 <low_breakpoint_at>: Declare.
1226 (sh_breakpoint_at): Turn into...
1227 (sh_target::low_breakpoint_at): ...this.
1228 (the_low_target): Remove the op field.
1229 * linux-sparc-low.cc (class sparc_target)
1230 <low_breakpoint_at>: Declare.
1231 (sparc_breakpoint_at): Turn into...
1232 (sparc_target::low_breakpoint_at): ...this.
1233 (the_low_target): Remove the op field.
1234 * linux-tic6x-low.cc (class tic6x_target)
1235 <low_breakpoint_at>: Declare.
1236 (tic6x_breakpoint_at): Turn into...
1237 (tic6x_target::low_breakpoint_at): ...this.
1238 (the_low_target): Remove the op field.
1239 * linux-tile-low.cc (class tile_target)
1240 <low_breakpoint_at>: Declare.
1241 (tile_breakpoint_at): Turn into...
1242 (tile_target::low_breakpoint_at): ...this.
1243 (the_low_target): Remove the op field.
1244 * linux-xtensa-low.cc (class xtensa_target)
1245 <low_breakpoint_at>: Declare.
1246 (xtensa_breakpoint_at): Turn into...
1247 (xtensa_target::low_breakpoint_at): ...this.
1248 (the_low_target): Remove the op field.
1249
1250 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1251
1252 Turn the 'decr_pc_after_break' linux_target_ops field into
1253 a method of linux_process_target.
1254
1255 * linux-low.h (struct linux_target_ops)
1256 <decr_pc_after_break>: Remove.
1257 (class linux_process_target) <low_decr_pc_after_break>: New method
1258 declaration.
1259 * linux-low.cc (linux_process_target::low_decr_pc_after_break):
1260 New method implementation.
1261
1262 Update the users below.
1263
1264 (linux_process_target::save_stop_reason)
1265 (linux_process_target::wait_1)
1266 * linux-x86-low.cc (class x86_target) <low_decr_pc_after_break>:
1267 New declaration.
1268 (x86_target::low_decr_pc_after_break): New method implementation.
1269 (the_low_target): Remove the field.
1270 * linux-bfin-low.cc (class bfin_target) <low_decr_pc_after_break>:
1271 New declaration.
1272 (bfin_target::low_decr_pc_after_break): New method implementation.
1273 (the_low_target): Remove the field.
1274 * linux-m68k-low.cc (class m68k_target) <low_decr_pc_after_break>:
1275 New declaration.
1276 (m68k_target::low_decr_pc_after_break): New method implementation.
1277 (the_low_target): Remove the field.
1278 * linux-s390-low.cc (class s390_target) <low_decr_pc_after_break>:
1279 New declaration.
1280 (s390_target::low_decr_pc_after_break): New method implementation.
1281 (the_low_target): Remove the field.
1282 * linux-aarch64-low.cc (the_low_target): Remove the field.
1283 * linux-arm-low.cc (the_low_target): Remove the field.
1284 * linux-cris-low.cc (the_low_target): Remove the field.
1285 * linux-crisv32-low.cc (the_low_target): Remove the field.
1286 * linux-m32r-low.cc (the_low_target): Remove the field.
1287 * linux-mips-low.cc (the_low_target): Remove the field.
1288 * linux-nios2-low.cc (the_low_target): Remove the field.
1289 * linux-ppc-low.cc (the_low_target): Remove the field.
1290 * linux-riscv-low.cc (the_low_target): Remove the field.
1291 * linux-sh-low.cc (the_low_target): Remove the field.
1292 * linux-sparc-low.cc (the_low_target): Remove the field.
1293 * linux-tic6x-low.cc (the_low_target): Remove the field.
1294 * linux-tile-low.cc (the_low_target): Remove the field.
1295 * linux-xtensa-low.cc (the_low_target): Remove the field.
1296
1297 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1298
1299 Remove the 'supports_software_single_step' linux target op and let
1300 the concrete linux target define it by overriding the op in
1301 process_stratum_target.
1302 Turn the 'get_next_pcs' linux target op into a method of
1303 linux_process_target.
1304
1305 * linux-low.h (struct linux_target_ops): Remove the ops.
1306 (class linux_process_target) <supports_software_single_step>:
1307 Remove.
1308 <low_get_next_pcs>: Declare.
1309 * linux-low.cc (can_software_single_step): Remove.
1310 (linux_process_target::low_get_next_pcs): Define.
1311 (linux_process_target::supports_software_single_step): Remove.
1312
1313 Update the callers below.
1314
1315 (linux_process_target::handle_extended_wait)
1316 (linux_process_target::wait_1)
1317 (linux_process_target::install_software_single_step_breakpoints)
1318 (linux_process_target::single_step)
1319 (linux_process_target::thread_needs_step_over)
1320 (linux_process_target::proceed_one_lwp)
1321 (linux_process_target::supports_range_stepping)
1322
1323 * linux-x86-low.cc (the_low_target): Remove the op field.
1324 * linux-aarch64-low.cc (the_low_target): Ditto.
1325 * linux-bfin-low.cc (the_low_target): Ditto.
1326 * linux-cris-low.cc (the_low_target): Ditto.
1327 * linux-crisv32-low.cc (the_low_target): Ditto.
1328 * linux-m32r-low.cc (the_low_target): Ditto.
1329 * linux-m68k-low.cc (the_low_target): Ditto.
1330 * linux-mips-low.cc (the_low_target): Ditto.
1331 * linux-nios2-low.cc (the_low_target): Ditto.
1332 * linux-ppc-low.cc (the_low_target): Ditto.
1333 * linux-riscv-low.cc (the_low_target): Ditto.
1334 * linux-s390-low.cc (the_low_target): Ditto.
1335 * linux-sh-low.cc (the_low_target): Ditto.
1336 * linux-sparc-low.cc (the_low_target): Ditto.
1337 * linux-tic6x-low.cc (the_low_target): Ditto.
1338 * linux-tile-low.cc (the_low_target): Ditto.
1339 * linux-xtensa-low.cc (the_low_target): Ditto.
1340 * linux-arm-low.cc (class arm_target) <low_get_next_pcs>
1341 <supports_software_single_step>: Declare.
1342 (arm_target::supports_software_single_step): Define.
1343 (arm_gdbserver_get_next_pcs): Turn into...
1344 (arm_target::low_get_next_pcs): ...this.
1345 (the_low_target): Remove the op field.
1346
1347 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1348
1349 Remove the 'sw_breakpoint_from_kind' linux target op, and let
1350 the concrete linux target define it by overriding the op
1351 in process_stratum_target.
1352
1353 * linux-low.cc (linux_process_target::sw_breakpoint_from_kind):
1354 Remove.
1355 * linux-low.h (struct linux_target_ops): Remove the op.
1356 (class linux_process_target) <sw_breakpoint_from_kind>: Remove.
1357 * linux-x86-low.cc (class x86_target) <sw_breakpoint_from_kind>:
1358 Declare.
1359 (x86_sw_breakpoint_from_kind): Turn into...
1360 (x86_target::sw_breakpoint_from_kind): ...this.
1361 (the_low_target): Remove the op field.
1362 * linux-aarch64-low.cc (class aarch64_target)
1363 <sw_breakpoint_from_kind>: Declare.
1364 (aarch64_sw_breakpoint_from_kind): Turn into...
1365 (aarch64_target::sw_breakpoint_from_kind): ...this.
1366 (the_low_target): Remove the op field.
1367 * linux-arm-low.cc (class arm_target) <sw_breakpoint_from_kind>:
1368 Declare.
1369 (arm_target::sw_breakpoint_from_kind): Define.
1370 (the_low_target): Remove the op field.
1371 * linux-bfin-low.cc (class bfin_target) <sw_breakpoint_from_kind>:
1372 Declare.
1373 (bfin_sw_breakpoint_from_kind): Turn into...
1374 (bfin_target::sw_breakpoint_from_kind): ...this.
1375 (the_low_target): Remove the op field.
1376 * linux-cris-low.cc (class cris_target) <sw_breakpoint_from_kind>:
1377 Declare.
1378 (cris_sw_breakpoint_from_kind): Turn into...
1379 (cris_target::sw_breakpoint_from_kind): ...this.
1380 (the_low_target): Remove the op field.
1381 * linux-crisv32-low.cc (class crisv32_target)
1382 <sw_breakpoint_from_kind>: Declare.
1383 (cris_sw_breakpoint_from_kind): Turn into...
1384 (crisv32_target::sw_breakpoint_from_kind): ...this.
1385 (the_low_target): Remove the op field.
1386 * linux-ia64-low.cc (class ia64_target) <sw_breakpoint_from_kind>:
1387 Declare.
1388 (ia64_target::sw_breakpoint_from_kind): Define.
1389 * linux-m32r-low.cc (class m32r_target) <sw_breakpoint_from_kind>:
1390 Declare.
1391 (m32r_sw_breakpoint_from_kind): Turn into...
1392 (m32r_target::sw_breakpoint_from_kind): ...this.
1393 (the_low_target): Remove the op field.
1394 * linux-m68k-low.cc (class m68k_target) <sw_breakpoint_from_kind>:
1395 Declare.
1396 (m68k_sw_breakpoint_from_kind): Turn into...
1397 (m68k_target::sw_breakpoint_from_kind): ...this.
1398 (the_low_target): Remove the op field.
1399 * linux-mips-low.cc (class mips_target) <sw_breakpoint_from_kind>:
1400 Declare.
1401 (mips_sw_breakpoint_from_kind): Turn into...
1402 (mips_target::sw_breakpoint_from_kind): ...this.
1403 (the_low_target): Remove the op field.
1404 * linux-nios2-low.cc (class nios2_target) <sw_breakpoint_from_kind>:
1405 Declare.
1406 (nios2_sw_breakpoint_from_kind): Turn into...
1407 (nios2_target::sw_breakpoint_from_kind): ...this.
1408 (the_low_target): Remove the op field.
1409 * linux-ppc-low.cc (class ppc_target) <sw_breakpoint_from_kind>:
1410 Declare.
1411 (ppc_sw_breakpoint_from_kind): Turn into...
1412 (ppc_target::sw_breakpoint_from_kind): ...this.
1413 (the_low_target): Remove the op field.
1414 * linux-riscv-low.cc (class riscv_target) <sw_breakpoint_from_kind>:
1415 Declare.
1416 (riscv_sw_breakpoint_from_kind): Turn into...
1417 (riscv_target::sw_breakpoint_from_kind): ...this.
1418 (the_low_target): Remove the op field.
1419 * linux-s390-low.cc (class s390_target) <sw_breakpoint_from_kind>:
1420 Declare.
1421 (s390_sw_breakpoint_from_kind): Turn into...
1422 (s390_target::sw_breakpoint_from_kind): ...this.
1423 (the_low_target): Remove the op field.
1424 * linux-sh-low.cc (class sh_target) <sw_breakpoint_from_kind>:
1425 Declare.
1426 (sh_sw_breakpoint_from_kind): Turn into...
1427 (sh_target::sw_breakpoint_from_kind): ...this.
1428 (the_low_target): Remove the op field.
1429 * linux-sparc-low.cc (class sparc_target) <sw_breakpoint_from_kind>:
1430 Declare.
1431 (sparc_sw_breakpoint_from_kind): Turn into...
1432 (sparc_target::sw_breakpoint_from_kind): ...this.
1433 (the_low_target): Remove the op field.
1434 * linux-tic6x-low.cc (class tic6x_target) <sw_breakpoint_from_kind>:
1435 Declare.
1436 (tic6x_sw_breakpoint_from_kind): Turn into...
1437 (tic6x_target::sw_breakpoint_from_kind): ...this.
1438 (the_low_target): Remove the op field.
1439 * linux-tile-low.cc (class tile_target) <sw_breakpoint_from_kind>:
1440 Declare.
1441 (tile_sw_breakpoint_from_kind): Turn into...
1442 (tile_target::sw_breakpoint_from_kind): ...this.
1443 (the_low_target): Remove the op field.
1444 * linux-xtensa-low.cc (class xtensa_target)
1445 <sw_breakpoint_from_kind>: Declare.
1446 (xtensa_sw_breakpoint_from_kind): Turn into...
1447 (xtensa_target::sw_breakpoint_from_kind): ...this.
1448 (the_low_target): Remove the op field.
1449
1450 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1451
1452 Remove the 'breakpoint_kind_from_pc' and
1453 'breakpoint_kind_from_current_state' linux target ops, and let the
1454 concrete linux target define them by overriding the ops of
1455 process_stratum_target.
1456
1457 * linux-low.cc (linux_process_target::breakpoint_kind_from_pc):
1458 Remove.
1459 (linux_process_target::breakpoint_kind_from_current_state): Remove.
1460 * linux-low.h (struct linux_target_ops): Remove ops.
1461 (class linux_process_target) <breakpoint_kind_from_pc>: Remove.
1462 <breakpoint_kind_from_current_state>: Remove.
1463 * linux-x86-low.cc (the_low_target): Remove the op fields.
1464 * linux-bfin-low.cc (the_low_target): Ditto.
1465 * linux-cris-low.cc (the_low_target): Ditto.
1466 * linux-crisv32-low.cc (the_low_target): Ditto.
1467 * linux-m32r-low.cc (the_low_target): Ditto.
1468 * linux-m68k-low.cc (the_low_target): Ditto.
1469 * linux-mips-low.cc (the_low_target): Ditto.
1470 * linux-nios2-low.cc (the_low_target): Ditto.
1471 * linux-ppc-low.cc (the_low_target): Ditto.
1472 * linux-s390-low.cc (the_low_target): Ditto.
1473 * linux-sh-low.cc (the_low_target): Ditto.
1474 * linux-sparc-low.cc (the_low_target): Ditto.
1475 * linux-tic6x-low.cc (the_low_target): Ditto.
1476 * linux-tile-low.cc (the_low_target): Ditto.
1477 * linux-xtensa-low.cc (the_low_target): Ditto.
1478 * linux-aarch64-low.cc (class aarch64_target)
1479 <breakpoint_kind_from_pc>
1480 <breakpoint_kind_from_current_state>: Declare.
1481 (aarch64_breakpoint_kind_from_pc): Turn into...
1482 (aarch64_target::breakpoint_kind_from_pc): ...this.
1483 (aarch64_breakpoint_kind_from_current_state): Turn into...
1484 (aarch64_target::breakpoint_kind_from_current_state): ...this.
1485 (the_low_target): Remove the op fields.
1486 * linux-arm-low.cc (class arm_target):
1487 <breakpoint_kind_from_pc>
1488 <breakpoint_kind_from_current_state>: Declare.
1489 (arm_target::breakpoint_kind_from_pc): Define.
1490 (arm_target::breakpoint_kind_from_current_state): Define.
1491 (the_low_target): Remove the op fields.
1492 * linux-riscv-low.cc (class riscv_target):
1493 <breakpoint_kind_from_pc>: Declare.
1494 (riscv_breakpoint_kind_from_pc): Turn into...
1495 (riscv_target::breakpoint_kind_from_pc): ...this.
1496 (the_low_target): Remove the op fields.
1497
1498 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1499
1500 Turn the 'get_pc' and 'set_pc' linux target ops into methods
1501 of linux_process_target.
1502
1503 * linux-low.h (struct linux_target_ops): Remove the ops.
1504 (class linux_process_target) <low_supports_breakpoints>
1505 <low_get_pc>
1506 <low_set_pc>: Declare.
1507 * linux-low.cc (supports_breakpoints): Turn into...
1508 (linux_process_target::low_supports_breakpoints): ...this.
1509 (linux_process_target::low_get_pc): Define.
1510 (linux_process_target::low_set_pc): Define.
1511
1512 Update the callers below.
1513
1514 (linux_process_target::get_pc)
1515 (linux_process_target::save_stop_reason)
1516 (linux_process_target::maybe_move_out_of_jump_pad)
1517 (linux_process_target::wait_1)
1518 (linux_process_target::resume_one_lwp_throw)
1519 (linux_process_target::resume)
1520 (linux_process_target::proceed_all_lwps)
1521 (linux_process_target::read_pc)
1522 (linux_process_target::write_pc)
1523
1524 * linux-x86-low.cc (class linux_process_target)
1525 <low_supports_breakpoints>
1526 <low_get_pc>
1527 <low_set_pc>: Declare.
1528 (x86_target::low_supports_breakpoints): Define.
1529 (x86_get_pc): Turn into...
1530 (x86_target::low_get_pc): ...this.
1531 (x86_set_pc): Turn into...
1532 (x86_target::low_set_pc): ...this.
1533 (the_low_target): Remove the op fields.
1534 * linux-arm-low.cc (class arm_target)
1535 <low_supports_breakpoints>
1536 <low_get_pc>
1537 <low_set_pc>: Declare.
1538 (arm_target::low_supports_breakpoints)
1539 (arm_target::low_get_pc)
1540 (arm_target::low_set_pc): Define.
1541 (the_low_target): Remove the op fields.
1542 * linux-bfin-low.cc (class bfin_target)
1543 <low_supports_breakpoints>
1544 <low_get_pc>
1545 <low_set_pc>: Declare.
1546 (bfin_target::low_supports_breakpoints)
1547 (bfin_target::low_get_pc)
1548 (bfin_target::low_set_pc): Define.
1549 (the_low_target): Remove the op fields.
1550 * linux-cris-low.cc (class cris_target)
1551 <low_supports_breakpoints>
1552 <low_get_pc>
1553 <low_set_pc>: Declare.
1554 (cris_target::low_supports_breakpoints)
1555 (cris_target::low_get_pc)
1556 (cris_target::low_set_pc): Define.
1557 (the_low_target): Remove the op fields.
1558 * linux-crisv32-low.cc (class crisv32_target)
1559 <low_supports_breakpoints>
1560 <low_get_pc>
1561 <low_set_pc>: Declare.
1562 (crisv32_target::low_supports_breakpoints)
1563 (crisv32_target::low_get_pc)
1564 (crisv32_target::low_set_pc): Define.
1565 (the_low_target): Remove the op fields.
1566 * linux-m32r-low.cc (class m32r_target)
1567 <low_supports_breakpoints>
1568 <low_get_pc>
1569 <low_set_pc>: Declare.
1570 (m32r_target::low_supports_breakpoints)
1571 (m32r_target::low_get_pc)
1572 (m32r_target::low_set_pc): Define.
1573 (the_low_target): Remove the op fields.
1574 * linux-m68k-low.cc (class m68k_target)
1575 <low_supports_breakpoints>
1576 <low_get_pc>
1577 <low_set_pc>: Declare.
1578 (m68k_target::low_supports_breakpoints)
1579 (m68k_target::low_get_pc)
1580 (m68k_target::low_set_pc): Define.
1581 (the_low_target): Remove the op fields.
1582 * linux-nios2-low.cc (class nios2_target)
1583 <low_supports_breakpoints>
1584 <low_get_pc>
1585 <low_set_pc>: Declare.
1586 (nios2_target::low_supports_breakpoints)
1587 (nios2_target::low_get_pc)
1588 (nios2_target::low_set_pc): Define.
1589 (the_low_target): Remove the op fields.
1590 * linux-sh-low.cc (class sh_target)
1591 <low_supports_breakpoints>
1592 <low_get_pc>
1593 <low_set_pc>: Declare.
1594 (sh_target::low_supports_breakpoints)
1595 (sh_target::low_get_pc)
1596 (sh_target::low_set_pc): Define.
1597 (the_low_target): Remove the op fields.
1598 * linux-xtensa-low.cc (class xtensa_target)
1599 <low_supports_breakpoints>
1600 <low_get_pc>
1601 <low_set_pc>: Declare.
1602 (xtensa_target::low_supports_breakpoints)
1603 (xtensa_target::low_get_pc)
1604 (xtensa_target::low_set_pc): Define.
1605 (the_low_target): Remove the op fields.
1606 * linux-sparc-low.cc (class sparc_target)
1607 <low_supports_breakpoints>
1608 <low_get_pc>: Declare.
1609 (sparc_target::low_supports_breakpoints)
1610 (sparc_target::low_get_pc): Define.
1611 (the_low_target): Remove the op fields.
1612 * linux-tile-low.cc (class tile_target)
1613 <low_supports_breakpoints>
1614 <low_get_pc>
1615 <low_set_pc>: Declare.
1616 (tile_target::low_supports_breakpoints)
1617 (tile_target::low_get_pc)
1618 (tile_target::low_set_pc): Define.
1619 (the_low_target): Remove the op fields.
1620 * linux-aarch64-low.cc (class aarch64_target)
1621 <low_supports_breakpoints>
1622 <low_get_pc>
1623 <low_set_pc>: Declare.
1624 (aarch64_target::low_supports_breakpoints): Define.
1625 (aarch64_get_pc): Turn into...
1626 (aarch64_target::low_get_pc): ...this.
1627 (aarch64_set_pc): Turn into...
1628 (aarch64_target::low_set_pc): ...this.
1629 (the_low_target): Remove the op fields.
1630 * linux-mips-low.cc (class mips_target)
1631 <low_supports_breakpoints>
1632 <low_get_pc>
1633 <low_set_pc>: Declare.
1634 (mips_target::low_supports_breakpoints): Define.
1635 (mips_get_pc): Turn into...
1636 (mips_target::low_get_pc): ...this.
1637 (mips_set_pc): Turn into...
1638 (mips_target::low_set_pc): ...this.
1639 (the_low_target): Remove the op fields.
1640 * linux-ppc-low.cc (class ppc_target)
1641 <low_supports_breakpoints>
1642 <low_get_pc>
1643 <low_set_pc>: Declare.
1644 (ppc_target::low_supports_breakpoints): Define.
1645 (ppc_get_pc): Turn into...
1646 (ppc_target::low_get_pc): ...this.
1647 (ppc_set_pc): Turn into...
1648 (ppc_target::low_set_pc): ...this.
1649 (the_low_target): Remove the op fields.
1650 * linux-riscv-low.cc (class riscv_target)
1651 <low_supports_breakpoints>
1652 <low_get_pc>
1653 <low_set_pc>: Declare.
1654 (riscv_target::low_supports_breakpoints): Define.
1655 (riscv_get_pc): Turn into...
1656 (riscv_target::low_get_pc): ...this.
1657 (riscv_set_pc): Turn into...
1658 (riscv_target::low_set_pc): ...this.
1659 (the_low_target): Remove the op fields.
1660 * linux-s390-low.cc (class s390_target)
1661 <low_supports_breakpoints>
1662 <low_get_pc>
1663 <low_set_pc>: Declare.
1664 (s390_target::low_supports_breakpoints): Define.
1665 (s390_get_pc): Turn into...
1666 (s390_target::low_get_pc): ...this.
1667 (s390_set_pc): Turn into...
1668 (s390_target::low_set_pc): ...this.
1669 (the_low_target): Remove the op fields.
1670 * linux-tic6x-low.cc (class tic6x_target)
1671 <low_supports_breakpoints>
1672 <low_get_pc>
1673 <low_set_pc>: Declare.
1674 (tic6x_target::low_supports_breakpoints): Define.
1675 (tic6x_get_pc): Turn into...
1676 (tic6x_target::low_get_pc): ...this.
1677 (tic6x_set_pc): Turn into...
1678 (tic6x_target::low_set_pc): ...this.
1679 (the_low_target): Remove the op fields.
1680
1681 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1682
1683 Turn some more static methods in linux-low into private methods
1684 of linux_process_target.
1685
1686 * linux-low.cc (get_pc): Turn into...
1687 (linux_process_target::get_pc): ...this.
1688 (save_stop_reason): Turn into...
1689 (linux_process_target::save_stop_reason): ...this.
1690 (thread_still_has_status_pending_p): Turn into...
1691 (linux_process_target::thread_still_has_status_pending): ...this.
1692 (status_pending_p_callback): Turn into...
1693 (linux_process_target::status_pending_p_callback): ...this.
1694 (resume_stopped_resumed_lwps): Turn into...
1695 (linux_process_target::resume_stopped_resumed_lwps): ...this.
1696 (install_software_single_step_breakpoints): Turn into...
1697 (linux_process_target::install_software_single_step_breakpoints):
1698 ...this.
1699 (single_step): Turn into...
1700 (linux_process_target::single_step): ...this.
1701 (linux_resume_one_lwp_throw): Turn into...
1702 (linux_process_target::resume_one_lwp_throw): ...this.
1703 (linux_resume_one_lwp): Turn into...
1704 (linux_process_target::resume_one_lwp): ...this.
1705 (resume_status_pending_p): Turn into...
1706 (linux_process_target::resume_status_pending): ...this.
1707 (need_step_over_p): Turn into...
1708 (linux_process_target::thread_needs_step_over): ...this.
1709 (linux_resume_one_thread): Turn into...
1710 (linux_process_target::resume_one_thread): ...this.
1711 (proceed_one_lwp): Turn into...
1712 (linux_process_target::proceed_one_lwp): ...this.
1713 (unsuspend_and_proceed_one_lwp): Turn into...
1714 (linux_process_target::unsuspend_and_proceed_one_lwp): ...this.
1715
1716 Update the calls/references to the above functions below.
1717
1718 (linux_process_target::handle_extended_wait)
1719 (linux_process_target::filter_event)
1720 (linux_process_target::wait_for_event_filtered)
1721 (linux_process_target::wait_1)
1722 (linux_process_target::move_out_of_jump_pad)
1723 (linux_process_target::start_step_over)
1724 (linux_process_target::resume)
1725 (linux_process_target::proceed_all_lwps)
1726 (regsets_store_inferior_registers)
1727 (linux_process_target::store_register)
1728
1729 * linux-low.h (class linux_process_target)
1730 <get_pc>
1731 <save_stop_reason>
1732 <thread_still_has_status_pending>
1733 <status_pending_p_callback>
1734 <resume_stopped_resumed_lwps>
1735 <install_software_single_step_breakpoints>
1736 <single_step>
1737 <resume_one_lwp_throw>
1738 <resume_one_lwp>
1739 <resume_status_pending>
1740 <thread_needs_step_over>
1741 <resume_one_thread>
1742 <proceed_one_lwp>
1743 <unsuspend_and_proceed_one_lwp>: Declare.
1744
1745 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1746
1747 Turn the 'fetch_register' linux target op into a method of
1748 linux_process_target.
1749
1750 * linux-low.h (struct linux_target_ops) <fetch_register>: Remove.
1751 (class linux_process_target) <low_fetch_register>: Declare.
1752 * linux-x86-low.cc (the_low_target)
1753 * linux-aarch64-low.cc (the_low_target)
1754 * linux-arm-low.cc (the_low_target)
1755 * linux-bfin-low.cc (the_low_target)
1756 * linux-cris-low.cc (the_low_target)
1757 * linux-crisv32-low.cc (the_low_target)
1758 * linux-m32r-low.cc (the_low_target)
1759 * linux-m68k-low.cc (the_low_target)
1760 * linux-nios2-low.cc (the_low_target)
1761 * linux-ppc-low.cc (the_low_target)
1762 * linux-s390-low.cc (the_low_target)
1763 * linux-sh-low.cc (the_low_target)
1764 * linux-sparc-low.cc (the_low_target)
1765 * linux-tic6x-low.cc (the_low_target)
1766 * linux-tile-low.cc (the_low_target)
1767 * linux-xtensa-low.cc (the_low_target): Remove the op field.
1768 * linux-ia64-low.cc (class ia64_target) <low_fetch_register>:
1769 Declare.
1770 (ia64_fetch_register): Turn into...
1771 (ia64_target::low_fetch_register): ...this.
1772 (the_low_target): Remove the op field.
1773 * linux-mips-low.cc (class mips_target) <low_fetch_register>:
1774 Declare.
1775 (mips_fetch_register): Turn into...
1776 (mips_target::low_fetch_register): ...this.
1777 (the_low_target): Remove the op field.
1778 * linux-riscv-low.cc (class riscv_target) <low_fetch_register>:
1779 Declare.
1780 (riscv_fetch_register): Turn into...
1781 (riscv_target::low_fetch_register): ...this.
1782 (the_low_target): Remove the op field.
1783
1784 Update the callers below.
1785
1786 * linux-low.cc (linux_process_target::fetch_registers)
1787 (linux_process_target::low_fetch_register)
1788
1789 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1790
1791 Turn the 'cannot_fetch_register' and 'cannot_store_register'
1792 linux target ops into methods of linux_process_target.
1793
1794 * linux-low.h (struct linux_target_ops): Remove the low target ops.
1795 (class linux_process_target) <fetch_register>
1796 <store_register>
1797 <usr_fetch_inferior_registers>
1798 <usr_store_inferior_registers>
1799 <low_cannot_fetch_register>
1800 <low_cannot_fetch_register> Declare.
1801 * linux-low.cc (fetch_register): Turn into...
1802 (linux_process_target::fetch_register): ...this.
1803 (store_register): Turn into ...
1804 (linux_process_target::store_register): ...this.
1805 (usr_fetch_inferior_registers): Turn into...
1806 (linux_process_target::usr_fetch_inferior_registers): ...this.
1807 (usr_store_inferior_registers): Turn into...
1808 (linux_process_target::usr_store_inferior_registers): ...this.
1809 * linux-x86-low.cc (class x86_target)
1810 <low_cannot_fetch_register>
1811 <low_cannot_store_register>: Declare.
1812 (x86_cannot_store_register): Turn into...
1813 (x86_target::low_cannot_store_register): ...this.
1814 (x86_cannot_fetch_register): Turn into...
1815 (x86_target::low_cannot_fetch_register): ...this.
1816 (the_low_target): Remove the target op fields.
1817 * linux-aarch64-low.cc (class aarch64_target)
1818 <low_cannot_fetch_register>
1819 <low_cannot_store_register>: Declare.
1820 (aarch64_target::low_cannot_fetch_register)
1821 (aarch64_target::low_cannot_store_register): Define.
1822 (the_low_target): Remove the op fields.
1823 * linux-arm-low.cc (class arm_target)
1824 <low_cannot_fetch_register>
1825 <low_cannot_store_register>: Declare.
1826 (arm_cannot_fetch_register): Turn into...
1827 (arm_target::low_cannot_fetch_register): ...this.
1828 (arm_cannot_store_register): Turn into...
1829 (arm_target::low_cannot_store_register): ...this.
1830 (the_low_target): Remove the op fields.
1831 * linux-bfin-low.cc (class bfin_target)
1832 <low_cannot_fetch_register>
1833 <low_cannot_store_register>: Declare.
1834 (bfin_cannot_fetch_register): Turn into...
1835 (bfin_target::low_cannot_fetch_register): ...this.
1836 (bfin_cannot_store_register): Turn into...
1837 (bfin_target::low_cannot_store_register): ...this.
1838 (the_low_target): Remove the op fields.
1839 * linux-cris-low.cc (class cris_target)
1840 <low_cannot_fetch_register>
1841 <low_cannot_store_register>: Declare.
1842 (cris_cannot_fetch_register): Turn into...
1843 (cris_target::low_cannot_fetch_register): ...this.
1844 (cris_cannot_store_register): Turn into...
1845 (cris_target::low_cannot_store_register): ...this.
1846 (the_low_target): Remove the op fields.
1847 * linux-crisv32-low.cc (class crisv32_target)
1848 <low_cannot_fetch_register>
1849 <low_cannot_store_register>: Declare.
1850 (crisv32_target::low_cannot_fetch_register)
1851 (crisv32_target::low_cannot_store_register): Define.
1852 (the_low_target): Remove the op fields.
1853 * linux-ia64-low.cc (class ia64_target)
1854 <low_cannot_fetch_register>
1855 <low_cannot_store_register>: Declare.
1856 (ia64_cannot_fetch_register): Turn into...
1857 (ia64_target::low_cannot_fetch_register): ...this.
1858 (ia64_cannot_store_register): Turn into...
1859 (ia64_target::low_cannot_store_register): ...this.
1860 (the_low_target): Remove the op fields.
1861 * linux-m32r-low.cc (class m32r_target)
1862 <low_cannot_fetch_register>
1863 <low_cannot_store_register>: Declare.
1864 (m32r_cannot_fetch_register): Turn into...
1865 (m32r_target::low_cannot_fetch_register): ...this.
1866 (m32r_cannot_store_register): Turn into...
1867 (m32r_target::low_cannot_store_register): ...this.
1868 (the_low_target): Remove the op fields.
1869 * linux-m68k-low.cc (class m68k_target)
1870 <low_cannot_fetch_register>
1871 <low_cannot_store_register>: Declare.
1872 (m68k_cannot_fetch_register): Turn into...
1873 (m68k_target::low_cannot_fetch_register): ...this.
1874 (m68k_cannot_store_register): Turn into...
1875 (m68k_target::low_cannot_store_register): ...this.
1876 (the_low_target): Remove the op fields.
1877 * linux-mips-low.cc (class mips_target)
1878 <low_cannot_fetch_register>
1879 <low_cannot_store_register>: Declare.
1880 (mips_cannot_fetch_register): Turn into...
1881 (mips_target::low_cannot_fetch_register): ...this.
1882 (mips_cannot_store_register): Turn into...
1883 (mips_target::low_cannot_store_register): ...this.
1884 (get_usrregs_info): Inline at the call sites in
1885 low_cannot_fetch_register and low_cannot_store_register,
1886 and remove.
1887 (the_low_target): Remove the op fields.
1888 * linux-nios2-low.cc (class nios2_target)
1889 <low_cannot_fetch_register>
1890 <low_cannot_store_register>: Declare.
1891 (nios2_cannot_fetch_register): Turn into...
1892 (nios2_target::low_cannot_fetch_register): ...this.
1893 (nios2_cannot_store_register): Turn into...
1894 (nios2_target::low_cannot_store_register): ...this.
1895 (the_low_target): Remove the op fields.
1896 * linux-ppc-low.cc (class ppc_target)
1897 <low_cannot_fetch_register>
1898 <low_cannot_store_register>: Declare.
1899 (ppc_cannot_fetch_register): Turn into...
1900 (ppc_target::low_cannot_fetch_register): ...this.
1901 (ppc_cannot_store_register): Turn into...
1902 (ppc_target::low_cannot_store_register): ...this.
1903 (the_low_target): Remove the op fields.
1904 * linux-riscv-low.cc (class riscv_target)
1905 <low_cannot_fetch_register>
1906 <low_cannot_store_register>: Declare.
1907 (riscv_target::low_cannot_fetch_register)
1908 (riscv_target::low_cannot_store_register): Define.
1909 (the_low_target): Remove the op fields.
1910 * linux-s390-low.cc (class s390_target)
1911 <low_cannot_fetch_register>
1912 <low_cannot_store_register>: Declare.
1913 (s390_cannot_fetch_register): Turn into...
1914 (s390_target::low_cannot_fetch_register): ...this.
1915 (s390_cannot_store_register): Turn into...
1916 (s390_target::low_cannot_store_register): ...this.
1917 (the_low_target): Remove the op fields.
1918 * linux-sh-low.cc (class sh_target)
1919 <low_cannot_fetch_register>
1920 <low_cannot_store_register>: Declare.
1921 (sh_cannot_fetch_register): Turn into...
1922 (sh_target::low_cannot_fetch_register): ...this.
1923 (sh_cannot_store_register): Turn into...
1924 (sh_target::low_cannot_store_register): ...this.
1925 (the_low_target): Remove the op fields.
1926 * linux-sparc-low.cc (class sparc_target)
1927 <low_cannot_fetch_register>
1928 <low_cannot_store_register>: Declare.
1929 (sparc_cannot_fetch_register): Turn into...
1930 (sparc_target::low_cannot_fetch_register): ...this.
1931 (sparc_cannot_store_register): Turn into...
1932 (sparc_target::low_cannot_store_register): ...this.
1933 (the_low_target): Remove the op fields.
1934 * linux-tic6x-low.cc (class tic6x_target)
1935 <low_cannot_fetch_register>
1936 <low_cannot_store_register>: Declare.
1937 (tic6x_cannot_fetch_register): Turn into...
1938 (tic6x_target::low_cannot_fetch_register): ...this.
1939 (tic6x_cannot_store_register): Turn into...
1940 (tic6x_target::low_cannot_store_register): ...this.
1941 (the_low_target): Remove the op fields.
1942 * linux-tile-low.cc (class tile_target)
1943 <low_cannot_fetch_register>
1944 <low_cannot_store_register>: Declare.
1945 (tile_cannot_fetch_register): Turn into...
1946 (tile_target::low_cannot_fetch_register): ...this.
1947 (tile_cannot_store_register): Turn into...
1948 (tile_target::low_cannot_store_register): ...this.
1949 (the_low_target): Remove the op fields.
1950 * linux-xtensa-low.cc (class xtensa_target)
1951 <low_cannot_fetch_register>
1952 <low_cannot_store_register>: Declare.
1953 (xtensa_target::low_cannot_fetch_register)
1954 (xtensa_target::low_cannot_store_register): Define.
1955 (the_low_target): Remove the op fields.
1956
1957 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1958
1959 Turn the 'regs_info' linux target op into a method of
1960 linux_process_target.
1961
1962 * linux-low.h (struct linux_target_ops) <regs_info>: Remove.
1963 (class linux_process_target) <get_regs_info>: Define.
1964
1965 Update the callers below.
1966
1967 * linux-low.cc (linux_process_target::fetch_registers)
1968 (linux_process_target::store_registers)
1969 * proc-service.cc (gregset_info)
1970
1971 * linux-x86-low.cc (class x86_target) <get_regs_info>: Declare.
1972 (x86_linux_regs_info): Turn into ...
1973 (x86_target::get_regs_info): ...this.
1974 (the_low_target): Remove the op field.
1975 * linux-aarch64-low.cc (class aarch64_target) <get_regs_info>:
1976 Declare.
1977 (aarch64_regs_info): Turn into ...
1978 (aarch64_target::get_regs_info): ...this.
1979 (the_low_target): Remove the op field.
1980 * linux-arm-low.cc (class arm_target) <get_regs_info>: Declare.
1981 (arm_regs_info): Turn into ...
1982 (arm_target::get_regs_info): ...this.
1983 (the_low_target): Remove the op field.
1984 * linux-bfin-low.cc (class bfin_target) <get_regs_info>: Declare.
1985 (bfin_regs_info): Turn into ...
1986 (bfin_target::get_regs_info): ...this.
1987 (the_low_target): Remove the op field.
1988 * linux-cris-low.cc (class cris_target) <get_regs_info>: Declare.
1989 (cris_regs_info): Turn into ...
1990 (cris_target::get_regs_info): ...this.
1991 (the_low_target): Remove the op field.
1992 * linux-crisv32-low.cc (class crisv32_target) <get_regs_info>:
1993 Declare.
1994 (crisv32_regs_info): Turn into ...
1995 (crisv32_target::get_regs_info): ...this.
1996 (the_low_target): Remove the op field.
1997 * linux-ia64-low.cc (class ia64_target) <get_regs_info>: Declare.
1998 (ia64_regs_info): Turn into ...
1999 (ia64_target::get_regs_info): ...this.
2000 (the_low_target): Remove the op field.
2001 * linux-m32r-low.cc (class m32r_target) <get_regs_info>: Declare.
2002 (m32r_regs_info): Turn into ...
2003 (m32r_target::get_regs_info): ...this.
2004 (the_low_target): Remove the op field.
2005 * linux-m68k-low.cc (class m68k_target) <get_regs_info>: Declare.
2006 (m68k_regs_info): Turn into ...
2007 (m68k_target::get_regs_info): ...this.
2008 (the_low_target): Remove the op field.
2009 * linux-mips-low.cc (class mips_target) <get_regs_info>: Declare.
2010 (mips_regs_info): Turn into ...
2011 (mips_target::get_regs_info): ...this.
2012 (the_low_target): Remove the op field.
2013 (get_usrregs_info): Update the call to the op.
2014 * linux-nios2-low.cc (class nios2_target) <get_regs_info>: Declare.
2015 (nios2_regs_info): Turn into ...
2016 (nios2_target::get_regs_info): ...this.
2017 (the_low_target): Remove the op field.
2018 * linux-ppc-low.cc (class ppc_target) <get_regs_info>: Declare.
2019 (ppc_regs_info): Turn into ...
2020 (ppc_target::get_regs_info): ...this.
2021 (the_low_target): Remove the op field.
2022 * linux-riscv-low.cc (class riscv_target) <get_regs_info>: Declare.
2023 (riscv_regs_info): Turn into ...
2024 (riscv_target::get_regs_info): ...this.
2025 (the_low_target): Remove the op field.
2026 * linux-s390-low.cc (class s390_target) <get_regs_info>: Declare.
2027 (s390_regs_info): Turn into ...
2028 (s390_target::get_regs_info): ...this.
2029 (the_low_target): Remove the op field.
2030 (s390_collect_ptrace_register)
2031 (s390_supply_ptrace_register)
2032 (s390_fill_gregset): Update the call to the op.
2033 * linux-sh-low.cc (class sh_target) <get_regs_info>: Declare.
2034 (sh_regs_info): Turn into ...
2035 (sh_target::get_regs_info): ...this.
2036 (the_low_target): Remove the op field.
2037 * linux-sparc-low.cc (class sparc_target) <get_regs_info>: Declare.
2038 (sparc_regs_info): Turn into ...
2039 (sparc_target::get_regs_info): ...this.
2040 (the_low_target): Remove the op field.
2041 * linux-tic6x-low.cc (class tic6x_target) <get_regs_info>: Declare.
2042 (tic6x_regs_info): Turn into ...
2043 (tic6x_target::get_regs_info): ...this.
2044 (the_low_target): Remove the op field.
2045 * linux-tile-low.cc (class tile_target) <get_regs_info>: Declare.
2046 (tile_regs_info): Turn into ...
2047 (tile_target::get_regs_info): ...this.
2048 (the_low_target): Remove the op field.
2049 * linux-xtensa-low.cc (class xtensa_target) <get_regs_info>:
2050 Declare.
2051 (xtensa_regs_info): Turn into ...
2052 (xtensa_target::get_regs_info): ...this.
2053 (the_low_target): Remove the op field.
2054
2055 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2056
2057 Turn the 'arch_setup' linux target op into a method of
2058 linux_process_target.
2059
2060 * linux-low.h (struct linux_target_ops) <arch_setup>: Delete.
2061 (class linux_process_target) <arch_setup_thread>
2062 <low_arch_setup>: New declarations.
2063 * linux-low.cc (linux_arch_setup): Delete.
2064 (linux_arch_setup_thread): Turn into...
2065 (linux_process_target::arch_setup_thread): ... this.
2066
2067 Update the callers below.
2068
2069 (linux_process_target::handle_extended_wait)
2070 (linux_process_target::post_create_inferior)
2071 (linux_process_target::filter_event)
2072
2073 * linux-x86-low.cc (class x86_target) <low_arch_setup>: New
2074 declaration.
2075 (x86_linux_update_xmltarget): Turn into...
2076 (x86_target::update_xmltarget): ...this.
2077 (x86_linux_process_qsupported): Update the call to
2078 x86_linux_update_xmltarget.
2079 (x86_arch_setup): Turn into ...
2080 (x86_target::low_arch_setup): ...this.
2081 (the_low_target): Remove the op field.
2082 * linux-aarch64-low.cc (class aarch64_target) <low_arch_setup>: New
2083 declaration.
2084 (aarch64_arch_setup): Turn into ...
2085 (aarch64_target::low_arch_setup): ...this.
2086 (the_low_target): Remove the op field.
2087 * linux-arm-low.cc (class arm_target) <low_arch_setup>: New
2088 declaration.
2089 (arm_arch_setup): Turn into ...
2090 (arm_target::low_arch_setup): ...this.
2091 (the_low_target): Remove the op field.
2092 * linux-bfin-low.cc (class bfin_target) <low_arch_setup>: New
2093 declaration.
2094 (bfin_arch_setup): Turn into ...
2095 (bfin_target::low_arch_setup): ...this.
2096 (the_low_target): Remove the op field.
2097 * linux-cris-low.cc (class cris_target) <low_arch_setup>: New
2098 declaration.
2099 (cris_arch_setup): Turn into ...
2100 (cris_target::low_arch_setup): ...this.
2101 (the_low_target): Remove the op field.
2102 * linux-crisv32-low.cc (class crisv32_target) <low_arch_setup>: New
2103 declaration.
2104 (crisv32_arch_setup): Turn into ...
2105 (crisv32_target::low_arch_setup): ...this.
2106 (the_low_target): Remove the op field.
2107 * linux-ia64-low.cc (class ia64_target) <low_arch_setup>: New
2108 declaration.
2109 (ia64_arch_setup): Turn into ...
2110 (ia64_target::low_arch_setup): ...this.
2111 (the_low_target): Remove the op field.
2112 * linux-m32r-low.cc (class m32r_target) <low_arch_setup>: New
2113 declaration.
2114 (m32r_arch_setup): Turn into ...
2115 (m32r_target::low_arch_setup): ...this.
2116 (the_low_target): Remove the op field.
2117 * linux-m68k-low.cc (class m68k_target) <low_arch_setup>: New
2118 declaration.
2119 (m68k_arch_setup): Turn into ...
2120 (m68k_target::low_arch_setup): ...this.
2121 (the_low_target): Remove the op field.
2122 * linux-mips-low.cc (class mips_target) <low_arch_setup>: New
2123 declaration.
2124 (mips_arch_setup): Turn into ...
2125 (mips_target::low_arch_setup): ...this.
2126 (the_low_target): Remove the op field.
2127 * linux-nios2-low.cc (class nios2_target) <low_arch_setup>: New
2128 declaration.
2129 (nios2_arch_setup): Turn into ...
2130 (nios2_target::low_arch_setup): ...this.
2131 (the_low_target): Remove the op field.
2132 * linux-ppc-low.cc (class ppc_target) <low_arch_setup>: New
2133 declaration.
2134 (ppc_arch_setup): Turn into ...
2135 (ppc_target::low_arch_setup): ...this.
2136 (the_low_target): Remove the op field.
2137 * linux-riscv-low.cc (class riscv_target) <low_arch_setup>: New
2138 declaration.
2139 (riscv_arch_setup): Turn into ...
2140 (riscv_target::low_arch_setup): ...this.
2141 (the_low_target): Remove the op field.
2142 * linux-s390-low.cc (class s390_target) <low_arch_setup>: New
2143 declaration.
2144 (s390_arch_setup): Turn into ...
2145 (s390_target::low_arch_setup): ...this.
2146 (the_low_target): Remove the op field.
2147 * linux-sh-low.cc (class sh_target) <low_arch_setup>: New
2148 declaration.
2149 (sh_arch_setup): Turn into ...
2150 (sh_target::low_arch_setup): ...this.
2151 (the_low_target): Remove the op field.
2152 * linux-sparc-low.cc (class sparc_target) <low_arch_setup>: New
2153 declaration.
2154 (sparc_arch_setup): Turn into ...
2155 (sparc_target::low_arch_setup): ...this.
2156 (the_low_target): Remove the op field.
2157 * linux-tic6x-low.cc (class tic6x_target) <low_arch_setup>: New
2158 declaration.
2159 (tic6x_arch_setup): Turn into ...
2160 (tic6x_target::low_arch_setup): ...this.
2161 (the_low_target): Remove the op field.
2162 * linux-tile-low.cc (class tile_target) <low_arch_setup>: New
2163 declaration.
2164 (tile_arch_setup): Turn into ...
2165 (tile_target::low_arch_setup): ...this.
2166 (the_low_target): Remove the op field.
2167 * linux-xtensa-low.cc (class xtensa_target) <low_arch_setup>: New
2168 declaration.
2169 (xtensa_arch_setup): Turn into ...
2170 (xtensa_target::low_arch_setup): ...this.
2171 (the_low_target): Remove the op field.
2172
2173 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2174
2175 * linux-low.h (the_linux_target): New extern declaration.
2176 * linux-low.cc (initialize_low): Use 'the_linux_target' to set
2177 'the_target'.
2178 (the_linux_target): Remove.
2179 * linux-x86-low.cc (class x86_target): New class.
2180 (the_x86_target): New static object.
2181 (the_linux_target): Define as pointer to the_x86_target.
2182 * linux-aarch64-low.cc (class aarch64_target): New class.
2183 (the_aarch64_target): New static object.
2184 (the_linux_target): Define as pointer to the_aarch64_target.
2185 * linux-arm-low.cc (class arm_target): New class.
2186 (the_arm_target): New static object.
2187 (the_linux_target): Define as pointer to the_arm_target.
2188 * linux-bfin-low.cc (class bfin_target): New class.
2189 (the_bfin_target): New static object.
2190 (the_linux_target): Define as pointer to the_bfin_target.
2191 * linux-cris-low.cc (class cris_target): New class.
2192 (the_cris_target): New static object.
2193 (the_linux_target): Define as pointer to the_cris_target.
2194 * linux-crisv32-low.cc (class crisv32_target): New class.
2195 (the_crisv32_target): New static object.
2196 (the_linux_target): Define as pointer to the_crisv32_target.
2197 * linux-ia64-low.cc (class ia64_target): New class.
2198 (the_ia64_target): New static object.
2199 (the_linux_target): Define as pointer to the_ia64_target.
2200 * linux-m32r-low.cc (class m32r_target): New class.
2201 (the_m32r_target): New static object.
2202 (the_linux_target): Define as pointer to the_m32r_target.
2203 * linux-m68k-low.cc (class m68k_target): New class.
2204 (the_m68k_target): New static object.
2205 (the_linux_target): Define as pointer to the_m68k_target.
2206 * linux-mips-low.cc (class mips_target): New class.
2207 (the_mips_target): New static object.
2208 (the_linux_target): Define as pointer to the_mips_target.
2209 * linux-nios2-low.cc (class nios2_target): New class.
2210 (the_nios2_target): New static object.
2211 (the_linux_target): Define as pointer to the_nios2_target.
2212 * linux-ppc-low.cc (class ppc_target): New class.
2213 (the_ppc_target): New static object.
2214 (the_linux_target): Define as pointer to the_ppc_target.
2215 * linux-riscv-low.cc (class riscv_target): New class.
2216 (the_riscv_target): New static object.
2217 (the_linux_target): Define as pointer to the_riscv_target.
2218 * linux-s390-low.cc (class s390_target): New class.
2219 (the_s390_target): New static object.
2220 (the_linux_target): Define as pointer to the_s390_target.
2221 * linux-sh-low.cc (class sh_target): New class.
2222 (the_sh_target): New static object.
2223 (the_linux_target): Define as pointer to the_sh_target.
2224 * linux-sparc-low.cc (class sparc_target): New class.
2225 (the_sparc_target): New static object.
2226 (the_linux_target): Define as pointer to the_sparc_target.
2227 * linux-tic6x-low.cc (class tic6x_target): New class.
2228 (the_tic6x_target): New static object.
2229 (the_linux_target): Define as pointer to the_tic6x_target.
2230 * linux-tile-low.cc (class tile_target): New class.
2231 (the_tile_target): New static object.
2232 (the_linux_target): Define as pointer to the_tile_target.
2233 * linux-xtensa-low.cc (class xtensa_target): New class.
2234 (the_xtensa_target): New static object.
2235 (the_linux_target): Define as pointer to the_xtensa_target.
2236
2237 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2238
2239 Turn some static functions in linux-low.cc into private methods of
2240 linux_process_target.
2241
2242 * linux-low.cc (handle_extended_wait): Turn into ...
2243 (linux_process_target::handle_extended_wait): ...this. Call
2244 'mourn' on 'this' object instead of 'the_target'.
2245 (maybe_move_out_of_jump_pad): Turn into...
2246 (linux_process_target::maybe_move_out_of_jump_pad): ...this.
2247 (linux_low_filter_event): Turn into...
2248 (linux_process_target::filter_event): ...this.
2249 (linux_wait_for_event_filtered): Turn into...
2250 (linux_process_target::wait_for_event_filtered): ...this.
2251 (linux_wait_for_event): Turn into...
2252 (linux_process_target::wait_for_event): ...this.
2253 (linux_wait_1): Turn into...
2254 (linux_process_target::wait_1): ...this.
2255 (wait_for_sigstop): Turn into...
2256 (linux_process_target::wait_for_sigstop): ...this.
2257 (move_out_of_jump_pad_callback): Turn into...
2258 (linux_process_target::move_out_of_jump_pad): ...this.
2259 (stop_all_lwps): Turn into...
2260 (linux_process_target::stop_all_lwps): ...this.
2261 (start_step_over): Turn into...
2262 (linux_process_target::start_step_over): ...this.
2263 (complete_ongoing_step_over): Turn into...
2264 (linux_process_target::complete_ongoing_step_over): ...this.
2265 (proceed_all_lwps): Turn into...
2266 (linux_process_target::proceed_all_lwps): ...this.
2267 (unstop_all_lwps): Turn into...
2268 (linux_process_target::unstop_all_lwps): ...this.
2269
2270 * linux-low.h (class linux_process_target)
2271 <handle_extended_wait>
2272 <maybe_move_out_of_jump_pad>
2273 filter_event>
2274 <wait_for_event_filtered>
2275 <wait_for_event>
2276 <wait_1>
2277 <wait_for_sigstop>
2278 <move_out_of_jump_pad>
2279 <stop_all_lwps>
2280 <start_step_over>
2281 <complete_ongoing_step_over>
2282 <proceed_all_lwps>
2283 <unstop_all_lwps>: Declare.
2284
2285 Update the callers below.
2286
2287 * linux-low.cc (linux_process_target::attach): Update.
2288 (linux_process_target::stabilize_threads): Ditto.
2289 (linux_process_target::wait): Ditto.
2290
2291 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2292
2293 * linux-low.h (struct linux_target_ops): Update the comment for
2294 'cannot_store_register' to return 0 or 1.
2295 * linux-ppc-low.cc (ppc_cannot_store_register): Return 1 instead
2296 of 2.
2297
2298 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
2299
2300 * config.in: Re-generate.
2301 * configure: Re-generate.
2302
2303 2020-03-17 Kamil Rytarowski <n54@gmx.com>
2304
2305 * regcache.cc (find_register_by_number): Update.
2306 * tdesc.cc (init_target_desc): Likewise.
2307 * tdesc.h (target_desc::reg_defs): Likewise.
2308
2309 2020-03-12 Tom Tromey <tom@tromey.com>
2310
2311 * configure: Rebuild.
2312 * configure.ac (GDBSERVER_DEPFILES): Remove srv_selftest_objs.
2313 (WIN32APILIBS): New subst.
2314 * Makefile.in (SFILES, OBS, TAGS, GDBREPLAY_OBS): Remove
2315 gdbsupport files.
2316 (gdbsupport/%.o): Remove target.
2317 (GDBSUPPORT_BUILDDIR, GDBSUPPORT): New variables.
2318 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Add GDBSUPPORT.
2319 (WIN32APILIBS): New variable.
2320 (gdbserver$(EXEEXT)): Add WIN32APILIBS.
2321 (gdbreplay$(EXEEXT)): Likewise.
2322
2323 2020-03-12 Tom Tromey <tom@tromey.com>
2324
2325 * config.in, configure: Rebuild.
2326 * configure.ac: Call ZW_GNU_GETTEXT_SISTER_DIR.
2327 * acinclude.m4: Include gettext-sister.m4.
2328 * Makefile.in (top_builddir, INTL, INTL_DEPS, INTL_CFLAGS): New
2329 variables.
2330 (INCLUDE_CFLAGS): Add INTL_CFLAGS.
2331 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL.
2332
2333 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2334
2335 * acinclude.m4: Update path to selftest.m4.
2336
2337 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2338
2339 * configure.ac: Don't source bfd/development.sh, move
2340 GDB_AC_COMMON higher.
2341 * configure: Re-generate.
2342
2343 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2344
2345 * configure: Re-generate.
2346
2347 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
2348
2349 * configure: Re-generate.
2350
2351 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2352
2353 * .dir-locals.el: New file.
2354
2355 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2356
2357 * .gitattributes: New file.
2358
2359 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
2360
2361 * remote-utils.cc (prepare_resume_reply): Add ability to convert T
2362 reply into an S reply.
2363 * server.cc (disable_packet_T): New global.
2364 (captured_main): Set new global when appropriate.
2365 * server.h (disable_packet_T): Declare.
2366
2367 2020-02-21 Tom Tromey <tom@tromey.com>
2368
2369 * Makefile.in (mostlyclean): New target.
2370
2371 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2372
2373 * target.h (struct process_stratum_target): Remove.
2374 (class process_target): Rename to ...
2375 (class process_stratum_target): ... this.
2376 * linux-low.h (class linux_process_target): Derive from
2377 'process_stratum_target'.
2378 * linux-low.cc (linux_target_ops): Remove.
2379 (initialize_low): Set the_target to the singleton instance of
2380 linux_process_target.
2381 * lynx-low.h (class lynx_process_target): Derive from
2382 'process_stratum_target'.
2383 * lynx-low.cc (lynx_target_ops): Remove.
2384 (initialize_low): Set the_target to the singleton instance of
2385 lynx_process_target.
2386 * nto-low.h (class nto_process_target): Derive from
2387 'process_stratum_target'.
2388 * nto-low.cc (nto_target_ops): Remove.
2389 (initialize_low): Set the_target to the singleton instance of
2390 nto_process_target.
2391 * win32-low.h (class win32_process_target): Derive from
2392 'process_stratum_target'.
2393 * win32-low.cc (win32_target_ops): Remove.
2394 (initialize_low): Set the_target to the singleton instance of
2395 win32_process_target.
2396
2397 Replace 'the_target->pt' with 'the_target' in the uses below.
2398
2399 * hostio.cc (hostio_error)
2400 (handle_setfs)
2401 (handle_open)
2402 (handle_unlink)
2403 (handle_readlink)
2404 * linux-aarch32-low.cc (arm_breakpoint_at)
2405 * linux-aarch64-low.cc (aarch64_breakpoint_at)
2406 * linux-arm-low.cc (arm_sigreturn_next_pc)
2407 (arm_get_hwcap)
2408 (arm_get_syscall_trapinfo)
2409 * linux-cris-low.cc (cris_breakpoint_at)
2410 * linux-crisv32-low.cc (cris_breakpoint_at)
2411 * linux-low.cc (handle_extended_wait)
2412 (linux_wait_1)
2413 (linux_read_memory)
2414 (linux_process_target::breakpoint_kind_from_pc)
2415 (linux_get_auxv)
2416 * linux-m32r-low.cc (m32r_breakpoint_at)
2417 * linux-mips-low.cc (mips_breakpoint_at)
2418 * linux-nios2-low.cc (nios2_breakpoint_at)
2419 * linux-ppc-low.cc (ppc_breakpoint_at)
2420 * linux-s390-low.cc (s390_get_hwcap)
2421 * linux-sh-low.cc (sh_breakpoint_at)
2422 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
2423 (sparc_store_gregset_from_stack)
2424 (sparc_breakpoint_at)
2425 * linux-tic6x-low.cc (tic6x_breakpoint_at)
2426 * linux-tile-low.cc (tile_breakpoint_at)
2427 * linux-x86-low.cc (x86_breakpoint_at)
2428 * linux-xtensa-low.cc (xtensa_breakpoint_at)
2429 * mem-break.cc (bp_size)
2430 (bp_opcode)
2431 (insert_memory_breakpoint)
2432 (set_raw_breakpoint_at)
2433 (delete_raw_breakpoint)
2434 (z_type_supported)
2435 (uninsert_raw_breakpoint)
2436 (reinsert_raw_breakpoint)
2437 (validate_inserted_breakpoint)
2438 * regcache.cc (regcache_read_pc)
2439 (regcache_write_pc)
2440 * remote-utils.cc (putpkt_binary_1)
2441 (input_interrupt)
2442 (getpkt)
2443 (prepare_resume_reply)
2444 * server.cc (handle_general_set)
2445 (handle_detach)
2446 (handle_qxfer_auxv)
2447 (handle_qxfer_exec_file)
2448 (handle_qxfer_libraries_svr4)
2449 (handle_qxfer_osdata)
2450 (handle_qxfer_siginfo)
2451 (handle_qxfer_fdpic)
2452 (handle_query)
2453 (resume)
2454 (handle_v_requests)
2455 (queue_stop_reply_callback)
2456 (captured_main)
2457 * target.cc (prepare_to_access_memory)
2458 (done_accessing_memory)
2459 (read_inferior_memory)
2460 (target_write_memory)
2461 (target_stop_and_wait)
2462 (target_wait)
2463 (target_mourn_inferior)
2464 (target_continue_no_signal)
2465 (target_continue)
2466 (target_supports_multi_process)
2467 (kill_inferior)
2468 * target.h
2469 (target_create_inferior)
2470 (target_post_create_inferior)
2471 (myattach)
2472 (target_supports_fork_events)
2473 (target_supports_vfork_events)
2474 (target_supports_exec_events)
2475 (target_handle_new_gdb_connection)
2476 (detach_inferior)
2477 (mythread_alive)
2478 (fetch_inferior_registers)
2479 (store_inferior_registers)
2480 (join_inferior)
2481 (target_supports_non_stop)
2482 (target_async)
2483 (target_process_qsupported)
2484 (target_supports_catch_syscall)
2485 (target_get_ipa_tdesc_idx)
2486 (target_supports_tracepoints)
2487 (target_supports_fast_tracepoints)
2488 (target_get_min_fast_tracepoint_insn_len)
2489 (target_thread_stopped)
2490 (target_pause_all)
2491 (target_unpause_all)
2492 (target_stabilize_threads)
2493 (target_install_fast_tracepoint_jump_pad)
2494 (target_emit_ops)
2495 (target_supports_disable_randomization)
2496 (target_supports_agent)
2497 (target_enable_btrace)
2498 (target_disable_btrace)
2499 (target_read_btrace)
2500 (target_read_btrace_conf)
2501 (target_supports_range_stepping)
2502 (target_supports_stopped_by_sw_breakpoint)
2503 (target_stopped_by_sw_breakpoint)
2504 (target_supports_stopped_by_hw_breakpoint)
2505 (target_supports_hardware_single_step)
2506 (target_stopped_by_hw_breakpoint)
2507 (target_breakpoint_kind_from_pc)
2508 (target_breakpoint_kind_from_current_state)
2509 (target_supports_software_single_step)
2510 (target_core_of_thread)
2511 (target_thread_name)
2512 (target_thread_handle)
2513 * win32-low.cc (do_initial_child_stuff)
2514
2515 Rename target op default definitions listed below.
2516
2517 * target.cc (process_target::post_create_inferior): Rename as ...
2518 (process_stratum_target::post_create_inferior): ... this.
2519 (process_target::prepare_to_access_memory): Rename as ...
2520 (process_stratum_target::prepare_to_access_memory): ... this.
2521 (process_target::done_accessing_memory): Rename as ...
2522 (process_stratum_target::done_accessing_memory): ... this.
2523 (process_target::look_up_symbols): Rename as ...
2524 (process_stratum_target::look_up_symbols): ... this.
2525 (process_target::supports_read_auxv): Rename as ...
2526 (process_stratum_target::supports_read_auxv): ... this.
2527 (process_target::read_auxv): Rename as ...
2528 (process_stratum_target::read_auxv): ... this.
2529 (process_target::supports_z_point_type): Rename as ...
2530 (process_stratum_target::supports_z_point_type): ... this.
2531 (process_target::insert_point): Rename as ...
2532 (process_stratum_target::insert_point): ... this.
2533 (process_target::remove_point): Rename as ...
2534 (process_stratum_target::remove_point): ... this.
2535 (process_target::stopped_by_sw_breakpoint): Rename as ...
2536 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
2537 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
2538 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
2539 (process_target::stopped_by_hw_breakpoint): Rename as ...
2540 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
2541 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
2542 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
2543 (process_target::supports_hardware_single_step): Rename as ...
2544 (process_stratum_target::supports_hardware_single_step): ... this.
2545 (process_target::stopped_by_watchpoint): Rename as ...
2546 (process_stratum_target::stopped_by_watchpoint): ... this.
2547 (process_target::stopped_data_address): Rename as ...
2548 (process_stratum_target::stopped_data_address): ... this.
2549 (process_target::supports_read_offsets): Rename as ...
2550 (process_stratum_target::supports_read_offsets): ... this.
2551 (process_target::read_offsets): Rename as ...
2552 (process_stratum_target::read_offsets): ... this.
2553 (process_target::supports_get_tls_address): Rename as ...
2554 (process_stratum_target::supports_get_tls_address): ... this.
2555 (process_target::get_tls_address): Rename as ...
2556 (process_stratum_target::get_tls_address): ... this.
2557 (process_target::hostio_last_error): Rename as ...
2558 (process_stratum_target::hostio_last_error): ... this.
2559 (process_target::supports_qxfer_osdata): Rename as ...
2560 (process_stratum_target::supports_qxfer_osdata): ... this.
2561 (process_target::qxfer_osdata): Rename as ...
2562 (process_stratum_target::qxfer_osdata): ... this.
2563 (process_target::supports_qxfer_siginfo): Rename as ...
2564 (process_stratum_target::supports_qxfer_siginfo): ... this.
2565 (process_target::qxfer_siginfo): Rename as ...
2566 (process_stratum_target::qxfer_siginfo): ... this.
2567 (process_target::supports_non_stop): Rename as ...
2568 (process_stratum_target::supports_non_stop): ... this.
2569 (process_target::async): Rename as ...
2570 (process_stratum_target::async): ... this.
2571 (process_target::start_non_stop): Rename as ...
2572 (process_stratum_target::start_non_stop): ... this.
2573 (process_target::supports_multi_process): Rename as ...
2574 (process_stratum_target::supports_multi_process): ... this.
2575 (process_target::supports_fork_events): Rename as ...
2576 (process_stratum_target::supports_fork_events): ... this.
2577 (process_target::supports_vfork_events): Rename as ...
2578 (process_stratum_target::supports_vfork_events): ... this.
2579 (process_target::supports_exec_events): Rename as ...
2580 (process_stratum_target::supports_exec_events): ... this.
2581 (process_target::handle_new_gdb_connection): Rename as ...
2582 (process_stratum_target::handle_new_gdb_connection): ... this.
2583 (process_target::handle_monitor_command): Rename as ...
2584 (process_stratum_target::handle_monitor_command): ... this.
2585 (process_target::core_of_thread): Rename as ...
2586 (process_stratum_target::core_of_thread): ... this.
2587 (process_target::supports_read_loadmap): Rename as ...
2588 (process_stratum_target::supports_read_loadmap): ... this.
2589 (process_target::read_loadmap): Rename as ...
2590 (process_stratum_target::read_loadmap): ... this.
2591 (process_target::process_qsupported): Rename as ...
2592 (process_stratum_target::process_qsupported): ... this.
2593 (process_target::supports_tracepoints): Rename as ...
2594 (process_stratum_target::supports_tracepoints): ... this.
2595 (process_target::read_pc): Rename as ...
2596 (process_stratum_target::read_pc): ... this.
2597 (process_target::write_pc): Rename as ...
2598 (process_stratum_target::write_pc): ... this.
2599 (process_target::supports_thread_stopped): Rename as ...
2600 (process_stratum_target::supports_thread_stopped): ... this.
2601 (process_target::thread_stopped): Rename as ...
2602 (process_stratum_target::thread_stopped): ... this.
2603 (process_target::supports_get_tib_address): Rename as ...
2604 (process_stratum_target::supports_get_tib_address): ... this.
2605 (process_target::get_tib_address): Rename as ...
2606 (process_stratum_target::get_tib_address): ... this.
2607 (process_target::pause_all): Rename as ...
2608 (process_stratum_target::pause_all): ... this.
2609 (process_target::unpause_all): Rename as ...
2610 (process_stratum_target::unpause_all): ... this.
2611 (process_target::stabilize_threads): Rename as ...
2612 (process_stratum_target::stabilize_threads): ... this.
2613 (process_target::supports_fast_tracepoints): Rename as ...
2614 (process_stratum_target::supports_fast_tracepoints): ... this.
2615 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
2616 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
2617 (process_target::emit_ops): Rename as ...
2618 (process_stratum_target::emit_ops): ... this.
2619 (process_target::supports_disable_randomization): Rename as ...
2620 (process_stratum_target::supports_disable_randomization): ... this.
2621 (process_target::supports_qxfer_libraries_svr4): Rename as ...
2622 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
2623 (process_target::qxfer_libraries_svr4): Rename as ...
2624 (process_stratum_target::qxfer_libraries_svr4): ... this.
2625 (process_target::supports_agent): Rename as ...
2626 (process_stratum_target::supports_agent): ... this.
2627 (process_target::enable_btrace): Rename as ...
2628 (process_stratum_target::enable_btrace): ... this.
2629 (process_target::disable_btrace): Rename as ...
2630 (process_stratum_target::disable_btrace): ... this.
2631 (process_target::read_btrace): Rename as ...
2632 (process_stratum_target::read_btrace): ... this.
2633 (process_target::read_btrace_conf): Rename as ...
2634 (process_stratum_target::read_btrace_conf): ... this.
2635 (process_target::supports_range_stepping): Rename as ...
2636 (process_stratum_target::supports_range_stepping): ... this.
2637 (process_target::supports_pid_to_exec_file): Rename as ...
2638 (process_stratum_target::supports_pid_to_exec_file): ... this.
2639 (process_target::pid_to_exec_file): Rename as ...
2640 (process_stratum_target::pid_to_exec_file): ... this.
2641 (process_target::supports_multifs): Rename as ...
2642 (process_stratum_target::supports_multifs): ... this.
2643 (process_target::multifs_open): Rename as ...
2644 (process_stratum_target::multifs_open): ... this.
2645 (process_target::multifs_unlink): Rename as ...
2646 (process_stratum_target::multifs_unlink): ... this.
2647 (process_target::multifs_readlink): Rename as ...
2648 (process_stratum_target::multifs_readlink): ... this.
2649 (process_target::breakpoint_kind_from_pc): Rename as ...
2650 (process_stratum_target::breakpoint_kind_from_pc): ... this.
2651 (process_target::breakpoint_kind_from_current_state): Rename as ...
2652 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
2653 (process_target::thread_name): Rename as ...
2654 (process_stratum_target::thread_name): ... this.
2655 (process_target::thread_handle): Rename as ...
2656 (process_stratum_target::thread_handle): ... this.
2657 (process_target::supports_software_single_step): Rename as ...
2658 (process_stratum_target::supports_software_single_step): ... this.
2659 (process_target::supports_catch_syscall): Rename as ...
2660 (process_stratum_target::supports_catch_syscall): ... this.
2661 (process_target::get_ipa_tdesc_idx): Rename as ...
2662 (process_stratum_target::get_ipa_tdesc_idx): ... this.
2663
2664 2020-02-20 Pedro Alves <palves@redhat.com>
2665
2666 * target.cc (set_target_ops): Simply copy the given target pointer
2667 instead of creating a copy of the pointed object.
2668
2669 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2670
2671 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
2672 of process_target.
2673
2674 * target.h (struct process_stratum_target): Remove the target op.
2675 (class process_target): Add the target op.
2676 (target_get_ipa_tdesc_idx): Update the macro.
2677 * target.cc (process_target::get_ipa_tdesc_idx): Define.
2678
2679 Update the derived classes and callers below.
2680
2681 * linux-low.cc (linux_target_ops): Update.
2682 (linux_get_ipa_tdesc_idx): Turn into ...
2683 (linux_process_target::get_ipa_tdesc_idx): ... this.
2684 * linux-low.h (class linux_process_target): Update.
2685 * lynx-low.cc (lynx_target_ops): Update.
2686 * nto-low.cc (nto_target_ops): Update.
2687 * win32-low.cc (win32_target_ops): Update.
2688
2689 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2690
2691 Turn process_stratum_target's supports_catch_syscall op into a
2692 method of process_target.
2693
2694 * target.h (struct process_stratum_target): Remove the target op.
2695 (class process_target): Add the target op.
2696 (target_supports_catch_syscall): Update the macro.
2697 * target.cc (process_target::supports_catch_syscall): Define.
2698
2699 Update the derived classes and callers below.
2700
2701 * linux-low.cc (linux_target_ops): Update.
2702 (linux_supports_catch_syscall): Turn into ...
2703 (linux_process_target::supports_catch_syscall): ... this.
2704 * linux-low.h (class linux_process_target): Update.
2705 * lynx-low.cc (lynx_target_ops): Update.
2706 * nto-low.cc (nto_target_ops): Update.
2707 * win32-low.cc (win32_target_ops): Update.
2708
2709 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2710
2711 Turn process_stratum_target's supports_software_single_step op
2712 into a method of process_target.
2713
2714 * target.h (struct process_stratum_target): Remove the target op.
2715 (class process_target): Add the target op.
2716 (target_supports_software_single_step): Update the macro.
2717 * target.cc (process_target::supports_software_single_step): Define.
2718
2719 Update the derived classes and callers below.
2720
2721 * linux-low.cc (linux_target_ops): Update.
2722 (linux_supports_software_single_step): Turn into ...
2723 (linux_process_target::supports_software_single_step): ... this.
2724 * linux-low.h (class linux_process_target): Update.
2725 * lynx-low.cc (lynx_target_ops): Update.
2726 * nto-low.cc (nto_target_ops): Update.
2727 * win32-low.cc (win32_target_ops): Update.
2728
2729 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2730
2731 Turn process_stratum_target's thread_name and thread_handle ops
2732 into methods of process_target.
2733
2734 * target.h (struct process_stratum_target): Remove the target ops.
2735 (class process_target): Add the target ops.
2736 (target_thread_name): Update the macro.
2737 (target_thread_handle): Update the macro.
2738 * target.cc (process_target::thread_name): Define.
2739 (process_target::thread_handle): Define.
2740
2741 Update the derived classes and callers below.
2742
2743 * linux-low.cc (linux_target_ops): Update.
2744 (linux_process_target::thread_name): Define.
2745 (linux_process_target::thread_handle): Define.
2746 * linux-low.h (class linux_process_target): Update.
2747 * lynx-low.cc (lynx_target_ops): Update.
2748 * nto-low.cc (nto_target_ops): Update.
2749 * win32-low.cc (win32_target_ops): Update.
2750
2751 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2752
2753 Turn process_stratum_target's breakpoint_kind_from_pc,
2754 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
2755 ops into methods of process_target.
2756
2757 * target.h (struct process_stratum_target): Remove the target op.
2758 (class process_target): Add the target op.
2759 (target_breakpoint_kind_from_pc): Update the macro.
2760 (target_breakpoint_kind_from_current_state): Update the macro.
2761 (default_breakpoint_kind_from_pc): Remove declaration.
2762 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
2763 (process_target::breakpoint_kind_from_pc): ... this.
2764 (process_target::breakpoint_kind_from_current_state): Define.
2765
2766 Update the derived classes and callers below.
2767
2768 * mem-break.cc (bp_size): Update.
2769 (bp_opcode): Update.
2770 * linux-low.cc (linux_target_ops): Update.
2771 (linux_wait_1): Update.
2772 (linux_breakpoint_kind_from_pc): Turn into ...
2773 (linux_process_target::breakpoint_kind_from_pc): ... this.
2774 (linux_sw_breakpoint_from_kind): Turn into ...
2775 (linux_process_target::sw_breakpoint_from_kind): ... this.
2776 (linux_breakpoint_kind_from_current_state): Turn into ...
2777 (linux_process_target::breakpoint_kind_from_current_state): ... this.
2778 * linux-low.h (class linux_process_target): Update.
2779 * lynx-low.cc (lynx_target_ops): Update.
2780 (lynx_process_target::sw_breakpoint_from_kind): Define.
2781 * lynx-low.h (class lynx_process_target): Update.
2782 * nto-low.cc (nto_target_ops): Update.
2783 (nto_sw_breakpoint_from_kind): Turn into ...
2784 (nto_process_target::sw_breakpoint_from_kind): ... this.
2785 * nto-low.h (class nto_process_target): Update.
2786 * win32-low.cc (win32_target_ops): Update.
2787 (win32_sw_breakpoint_from_kind): Turn into ...
2788 (win32_process_target::sw_breakpoint_from_kind): ... this.
2789 * win32-low.h (class win32_process_target): Update.
2790
2791 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2792
2793 Turn process_stratum_target's multifs_open, multifs_readlink,
2794 multifs_unlink ops into methods of process_target.
2795
2796 * target.h (struct process_stratum_target): Remove the target ops.
2797 (class process_target): Add the target ops. Also add
2798 'supports_multifs'.
2799 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
2800 "sys/stat.h".
2801 (process_target::supports_multifs): Define.
2802 (process_target::multifs_open): Define.
2803 (process_target::multifs_readlink): Define.
2804 (process_target::multifs_unlink): Define.
2805
2806 Update the derived classes and callers below.
2807
2808 * hostio.cc (handle_setfs): Update.
2809 (handle_open): Update.
2810 (handle_unlink): Update.
2811 (handle_readlink): Update.
2812 * linux-low.cc (linux_target_ops): Update.
2813 (linux_process_target::supports_multifs): Define.
2814 (linux_process_target::multifs_open): Define.
2815 (linux_process_target::multifs_readlink): Define.
2816 (linux_process_target::multifs_unlink): Define.
2817 * linux-low.h (class linux_process_target): Update.
2818 * lynx-low.cc (lynx_target_ops): Update.
2819 * nto-low.cc (nto_target_ops): Update.
2820 * win32-low.cc (win32_target_ops): Update.
2821
2822 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2823
2824 Turn process_stratum_target's pid_to_exec_file op into a method
2825 of process_target.
2826
2827 * target.h (struct process_stratum_target): Remove the target op.
2828 (class process_target): Add the target op. Also add
2829 'supports_pid_to_exec_file'.
2830 * target.cc (process_target::pid_to_exec_file): Define.
2831 (process_target::supports_pid_to_exec_file): Define.
2832
2833 Update the derived classes and callers below.
2834
2835 * server.cc (handle_qxfer_exec_file): Update.
2836 (handle_query): Update.
2837 * linux-low.cc (linux_target_ops): Update.
2838 (linux_process_target::supports_pid_to_exec_file): Define.
2839 (linux_process_target::pid_to_exec_file): Define.
2840 * linux-low.h (class linux_process_target): Update.
2841 * lynx-low.cc (lynx_target_ops): Update.
2842 * nto-low.cc (nto_target_ops): Update.
2843 * win32-low.cc (win32_target_ops): Update.
2844
2845 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2846
2847 Turn process_stratum_target's supports_range_stepping op into a
2848 method of process_target.
2849
2850 * target.h (struct process_stratum_target): Remove the target op.
2851 (class process_target): Add the target op.
2852 (target_supports_range_stepping): Update the macro.
2853 * target.cc (process_target::supports_range_stepping): Define.
2854
2855 Update the derived classes and callers below.
2856
2857 * linux-low.cc (linux_target_ops): Update.
2858 (linux_supports_range_stepping): Turn into ...
2859 (linux_process_target::supports_range_stepping): ... this.
2860 * linux-low.h (class linux_process_target): Update.
2861 * lynx-low.cc (lynx_target_ops): Update.
2862 * nto-low.cc (nto_target_ops): Update.
2863 * win32-low.cc (win32_target_ops): Update.
2864
2865 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2866
2867 Turn process_stratum_target's btrace-related ops (enable_btrace,
2868 disable_btrace, read_btrace, read_btrace_conf) into methods of
2869 process_target.
2870
2871 * target.h (struct process_stratum_target): Remove the target ops.
2872 (class process_target): Add the target ops.
2873 (target_enable_btrace): Update.
2874 (target_disable_btrace): Update.
2875 (target_read_btrace): Update.
2876 (target_read_btrace_conf): Update.
2877 * target.cc (process_target::enable_btrace): Define.
2878 (process_target::disable_btrace): Define.
2879 (process_target::read_btrace): Define.
2880 (process_target::read_btrace_conf): Define.
2881
2882 Update the derived classes and callers below.
2883
2884 * linux-low.cc (linux_target_ops): Update.
2885 (linux_process_target:enable_btrace): Define as a wrapper around
2886 linux_enable_btrace.
2887 (linux_low_disable_btrace): Turn into ...
2888 (linux_process_target::disable_btrace): ... this.
2889 (linux_low_read_btrace): Turn into ...
2890 (linux_process_target::read_btrace): ... this.
2891 (linux_low_btrace_conf): Turn into ...
2892 (linux_process_target::read_btrace_conf): ... this.
2893 * linux-low.h (class linux_process_target): Update.
2894 * lynx-low.cc (lynx_target_ops): Update.
2895 * nto-low.cc (nto_target_ops): Update.
2896 * win32-low.cc (win32_target_ops): Update.
2897
2898 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2899
2900 Turn process_stratum_target's supports_agent op into a method of
2901 process_target.
2902
2903 * target.h (struct process_stratum_target): Remove the target op.
2904 (class process_target): Add the target op.
2905 (target_supports_agent): Update the macro.
2906 * target.cc (process_target::supports_agent): Define.
2907
2908 Update the derived classes and callers below.
2909
2910 * linux-low.cc (linux_target_ops): Update.
2911 (linux_supports_agent): Turn into ...
2912 (linux_process_target::supports_agent): ... this.
2913 * linux-low.h (class linux_process_target): Update.
2914 * lynx-low.cc (lynx_target_ops): Update.
2915 * nto-low.cc (nto_target_ops): Update.
2916 * win32-low.cc (win32_target_ops): Update.
2917
2918 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2919
2920 Turn process_stratum_target's qxfer_libraries_svr4 op into a
2921 method of process_target.
2922
2923 * target.h (struct process_stratum_target): Remove the target op.
2924 (class process_target): Add the target op. Also add
2925 'supports_qxfer_libraries_svr4'.
2926 * target.cc (process_target::qxfer_libraries_svr4): Define.
2927 (process_target::supports_qxfer_libraries_svr4): Define.
2928
2929 Update the derived classes and callers below.
2930
2931 * server.cc (handle_qxfer_libraries_svr4): Update.
2932 (handle_query): Update.
2933 * linux-low.cc (linux_target_ops): Update.
2934 (linux_process_target::supports_qxfer_libraries_svr4): Define.
2935 (linux_qxfer_libraries_svr4): Turn into ...
2936 (linux_process_target::qxfer_libraries_svr4): ... this.
2937 * linux-low.h (class linux_process_target): Update.
2938 * lynx-low.cc (lynx_target_ops): Update.
2939 * nto-low.cc (nto_target_ops): Update.
2940 * win32-low.cc (win32_target_ops): Update.
2941
2942 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2943
2944 Turn process_stratum_target's supports_disable_randomization op
2945 into a method of process_target.
2946
2947 * target.h (struct process_stratum_target): Remove the target op.
2948 (class process_target): Add the target op.
2949 (target_supports_disable_randomization): Update the macro.
2950 * target.cc (process_target::supports_disable_randomization): Define.
2951
2952 Update the derived classes and callers below.
2953
2954 * linux-low.cc (linux_target_ops): Update.
2955 (linux_supports_disable_randomization): Turn into ...
2956 (linux_process_target::supports_disable_randomization): ... 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
2962 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2963
2964 Turn process_stratum_target's emit_ops op into a method of
2965 process_target.
2966
2967 * target.h (struct process_stratum_target): Remove the target op.
2968 (class process_target): Add the target op.
2969 (target_emit_ops): Update the macro.
2970 * target.cc (process_target::emit_ops): Define.
2971
2972 Update the derived classes and callers below.
2973
2974 * linux-low.cc (linux_target_ops): Update.
2975 (linux_emit_ops): Turn into ...
2976 (linux_process_target::emit_ops): ... this.
2977 * linux-low.h (class linux_process_target): Update.
2978 * lynx-low.cc (lynx_target_ops): Update.
2979 * nto-low.cc (nto_target_ops): Update.
2980 * win32-low.cc (win32_target_ops): Update.
2981
2982 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2983
2984 Turn process_stratum_target's install_fast_tracepoint_jump_pad
2985 and get_min_fast_tracepoint_insn_len ops into methods of
2986 process_target.
2987
2988 * target.h (struct process_stratum_target): Remove the target ops.
2989 (class process_target): Add the target ops. Also add
2990 'supports_fast_tracepoints'.
2991 (target_supports_fast_tracepoints): Update the macro.
2992 (target_get_min_fast_tracepoint_insn_len): Update the macro.
2993 (install_fast_tracepoint_jump_pad): Update and rename the macro
2994 to ...
2995 (target_install_fast_tracepoint_jump_pad): ... this.
2996 * target.cc (process_target::supports_fast_tracepoints): Define.
2997 (process_target::install_fast_tracepoint_jump_pad): Define.
2998 (process_target::get_min_fast_tracepoint_insn_len): Define.
2999
3000 Update the derived classes and callers below.
3001
3002 * tracepoint.cc (install_fast_tracepoint): Update.
3003 * linux-low.cc (linux_target_ops): Update.
3004 (linux_process_target::supports_fast_tracepoints): Define.
3005 (linux_install_fast_tracepoint_jump_pad): Turn into ...
3006 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
3007 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
3008 (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
3009 * linux-low.h (class linux_process_target): Update.
3010 * lynx-low.cc (lynx_target_ops): Update.
3011 * nto-low.cc (nto_target_ops): Update.
3012 * win32-low.cc (win32_target_ops): Update.
3013
3014 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3015
3016 Turn process_stratum_target's stabilize_threads op into a
3017 method of process_target.
3018
3019 * target.h (struct process_stratum_target): Remove the target op.
3020 (class process_target): Add the target op.
3021 (target_stabilize_threads): Update the macro.
3022 * target.cc (process_target::stabilize_threads): Define.
3023
3024 Update the derived classes and callers below.
3025
3026 * server.cc (handle_status): Update.
3027 * tracepoint.cc (cmd_qtdp): Update.
3028 (cmd_qtstart): Update.
3029 * linux-low.cc (linux_target_ops): Update.
3030 (linux_stabilize_threads): Turn into ...
3031 (linux_process_target::stabilize_threads): ... this.
3032 (linux_wait_1): Update.
3033 * linux-low.h (class linux_process_target): Update.
3034 * lynx-low.cc (lynx_target_ops): Update.
3035 * nto-low.cc (nto_target_ops): Update.
3036 * win32-low.cc (win32_target_ops): Update.
3037
3038 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3039
3040 Turn process_stratum_target's pause_all and unpause_all ops
3041 into methods of process_target.
3042
3043 * target.h (struct process_stratum_target): Remove the target ops.
3044 (class process_target): Add the target ops.
3045 (pause_all): Update the macro and rename to...
3046 (target_pause_all): ... this.
3047 (unpause_all): Update the macro and rename to...
3048 (target_unpause_all): ... this.
3049 * target.cc (process_target::pause_all): Define.
3050 (process_target::unpause_all): Define.
3051
3052 Update the derived classes and callers below.
3053
3054 * server.cc (handle_status): Update.
3055 * tracepoint.cc (clear_installed_tracepoints): Update.
3056 (cmd_qtdp): Update.
3057 (cmd_qtstart): Update.
3058 (stop_tracing): Update.
3059 (cmd_qtstatus): Update.
3060 (upload_fast_traceframes): Update.
3061 (run_inferior_command): Update.
3062 * linux-low.cc (linux_target_ops): Update.
3063 (linux_pause_all): Turn into ...
3064 (linux_process_target::pause_all): ... this.
3065 (linux_unpause_all): Turn into ...
3066 (linux_process_target::unpause_all): ... this.
3067 (linux_process_target::prepare_to_access_memory): Update.
3068 (linux_process_target::done_accessing_memory): Update.
3069 * linux-low.h (class linux_process_target): Update.
3070 * lynx-low.cc (lynx_target_ops): Update.
3071 * nto-low.cc (nto_target_ops): Update.
3072 * win32-low.cc (win32_target_ops): Update.
3073
3074 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3075
3076 Turn process_stratum_target's get_tib_address op into a method of
3077 process_target.
3078
3079 * target.h (struct process_stratum_target): Remove the target op.
3080 (class process_target): Add the target op. Also add
3081 'supports_get_tib_address'.
3082 * target.cc (process_target::get_tib_address): Define.
3083 (process_target::supports_get_tib_address): Define.
3084
3085 Update the derived classes and callers below.
3086
3087 * server.cc (handle_query): Update.
3088 * linux-low.cc (win32_target_ops): Update.
3089 * lynx-low.cc (lynx_target_ops): Update.
3090 * nto-low.cc (nto_target_ops): Update.
3091 * win32-low.cc (win32_target_ops): Update.
3092 (win32_process_target::supports_get_tib_address): Define.
3093 (win32_get_tib_address): Turn into ...
3094 (win32_process_target::get_tib_address): ... this.
3095 * win32-low.h (class win32_process_target): Update.
3096
3097 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3098
3099 Turn process_stratum_target's thread_stopped op into a method of
3100 process_target.
3101
3102 * target.h (struct process_stratum_target): Remove the target op.
3103 (class process_target): Add the target op. Also add
3104 'supports_thread_stopped'.
3105 (target_thread_stopped): Update the macro.
3106 * target.cc (process_target::thread_stopped): Define.
3107 (process_target::supports_thread_stopped): Define.
3108 (prepare_to_access_memory): Update.
3109
3110 Update the derived classes and callers below.
3111
3112 * server.cc (queue_stop_reply_callback): Update.
3113 * linux-low.cc (linux_target_ops): Update.
3114 (linux_process_target::supports_thread_stopped): Define.
3115 (linux_thread_stopped): Turn into ...
3116 (linux_process_target::thread_stopped): ... this.
3117 * linux-low.h (class linux_process_target): Update.
3118 * lynx-low.cc (lynx_target_ops): Update.
3119 * nto-low.cc (nto_target_ops): Update.
3120 * win32-low.cc (win32_target_ops): Update.
3121
3122 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3123
3124 Turn process_stratum_target's read_pc and write_pc ops into
3125 methods of process_target.
3126
3127 * target.h (struct process_stratum_target): Remove the target ops.
3128 (class process_target): Add the target ops.
3129 * target.cc (process_target::read_pc): Define.
3130 (process_target::write_pc): Define.
3131
3132 Update the derived classes and callers below.
3133
3134 * regcache.cc (regcache_read_pc): Update.
3135 (regcache_write_pc): Update.
3136 * linux-low.cc (linux_target_ops): Update.
3137 (linux_read_pc): Turn into ...
3138 (linux_process_target::read_pc): ... this.
3139 (linux_write_pc): Turn into ...
3140 (linux_process_target::write_pc): ... this.
3141 * linux-low.h (class linux_process_target): Update.
3142 * lynx-low.cc (lynx_target_ops): Update.
3143 * nto-low.cc (nto_target_ops): Update.
3144 * win32-low.cc (win32_target_ops): Update.
3145
3146 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3147
3148 Turn process_stratum_target's supports_tracepoints op into a
3149 method of process_target.
3150
3151 * target.h (struct process_stratum_target): Remove the target op.
3152 (class process_target): Add the target op.
3153 (target_supports_tracepoints): Update the macro.
3154 * target.cc (process_target::supports_tracepoints): Define.
3155
3156 Update the derived classes and callers below.
3157
3158 * linux-low.cc (linux_target_ops): Update.
3159 (linux_supports_tracepoints): Turn into ...
3160 (linux_process_target::supports_tracepoints): ... this.
3161 * linux-low.h (class linux_process_target): Update.
3162 * lynx-low.cc (lynx_target_ops): Update.
3163 * nto-low.cc (nto_target_ops): Update.
3164 * win32-low.cc (win32_target_ops): Update.
3165
3166 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3167
3168 Turn process_stratum_target's process_qsupported op into a method
3169 of process_target.
3170
3171 * target.h (struct process_stratum_target): Remove the target op.
3172 (class process_target): Add the target op.
3173 (target_process_qsupported): Update the macro.
3174 * target.cc (process_target::process_qsupported): Define.
3175
3176 Update the derived classes and callers below.
3177
3178 * linux-low.cc (linux_target_ops): Update.
3179 (linux_process_qsupported): Turn into ...
3180 (linux_process_target::process_qsupported): ... this.
3181 * linux-low.h (class linux_process_target): Update.
3182 * lynx-low.cc (lynx_target_ops): Update.
3183 * nto-low.cc (nto_target_ops): Update.
3184 * win32-low.cc (win32_target_ops): Update.
3185
3186 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3187
3188 Turn process_stratum_target's read_loadmap op into a method of
3189 process_target.
3190
3191 * target.h (struct process_stratum_target): Remove the target op.
3192 (class process_target): Add the target op. Also add
3193 'supports_read_loadmap'.
3194 * target.cc (process_target::read_loadmap): Define.
3195 (process_target::supports_read_loadmap): Define.
3196
3197 Update the derived classes and callers below.
3198
3199 * server.cc (handle_qxfer_fdpic): Update.
3200 (handle_query): Update.
3201 * linux-low.cc (linux_target_ops): Update.
3202 (linux_process_target::supports_read_loadmap): Define.
3203 (linux_read_loadmap): Turn into ...
3204 (linux_process_target::read_loadmap): ... this.
3205 * linux-low.h (class linux_process_target): Update.
3206 * lynx-low.cc (lynx_target_ops): Update.
3207 * nto-low.cc (nto_target_ops): Update.
3208 * win32-low.cc (win32_target_ops): Update.
3209
3210 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3211
3212 Turn process_stratum_target's core_of_thread op into a method of
3213 process_target.
3214
3215 * target.h (struct process_stratum_target): Remove the target op.
3216 (class process_target): Add the target op.
3217 (target_core_of_thread): Update the macro.
3218 * target.cc (process_target::core_of_thread): Define.
3219
3220 Update the derived classes and callers below.
3221
3222 * linux-low.cc (linux_target_ops): Update.
3223 (linux_process_target::core_of_thread): Define.
3224 * linux-low.h (class linux_process_target): Update.
3225 * lynx-low.cc (lynx_target_ops): Update.
3226 * nto-low.cc (nto_target_ops): Update.
3227 * win32-low.cc (win32_target_ops): Update.
3228
3229 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3230
3231 Turn process_stratum_target's handle_monitor_command op into a
3232 method of process_target.
3233
3234 * target.h (struct process_stratum_target): Remove the target op.
3235 (class process_target): Add the target op.
3236 (target_handle_monitor_command): Update the macro.
3237 * target.cc (process_target::handle_monitor_command): Define.
3238
3239 Update the derived classes and callers below.
3240
3241 * server.cc (handle_query): Update.
3242 * linux-low.cc (linux_target_ops): Update.
3243 (linux_process_target::handle_monitor_command): Define.
3244 * linux-low.h (class linux_process_target): Update.
3245 * lynx-low.cc (lynx_target_ops): Update.
3246 * nto-low.cc (nto_target_ops): Update.
3247 * win32-low.cc (win32_target_ops): Update.
3248
3249 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3250
3251 Turn process_stratum_target's handle_new_gdb_connection op into a
3252 method of process_target.
3253
3254 * target.h (struct process_stratum_target): Remove the target op.
3255 (class process_target): Add the target op.
3256 (target_handle_new_gdb_connection): Update the macro.
3257 * target.cc (process_target::handle_new_gdb_connection): Define.
3258
3259 Update the derived classes and callers below.
3260
3261 * linux-low.cc (linux_target_ops): Update.
3262 (linux_handle_new_gdb_connection): Turn into ...
3263 (linux_process_target::handle_new_gdb_connection): ... this.
3264 * linux-low.h (class linux_process_target): Update.
3265 * lynx-low.cc (lynx_target_ops): Update.
3266 * nto-low.cc (nto_target_ops): Update.
3267 * win32-low.cc (win32_target_ops): Update.
3268
3269 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3270
3271 Turn process_stratum_target's supports_fork_events,
3272 supports_vfork_events, and supports_exec_events ops into methods
3273 of process_target.
3274
3275 * target.h (struct process_stratum_target): Remove the target ops.
3276 (class process_target): Add the target ops.
3277 (target_supports_fork_events): Update the macro.
3278 (target_supports_vfork_events): Update the macro.
3279 (target_supports_exec_events): Update the macro.
3280 * target.cc (process_target::supports_fork_events): Define.
3281 (process_target::supports_vfork_events): Define.
3282 (process_target::supports_exec_events): Define.
3283
3284 Update the derived classes and callers below.
3285
3286 * linux-low.cc (linux_target_ops): Update.
3287 (linux_supports_fork_events): Turn into ...
3288 (linux_process_target::supports_fork_events): ... this.
3289 (linux_supports_vfork_events): Turn into ...
3290 (linux_process_target::supports_vfork_events): ... this.
3291 (linux_supports_exec_events): Turn into ...
3292 (linux_process_target::supports_exec_events): ... this.
3293 * linux-low.h (class linux_process_target): Update.
3294 * lynx-low.cc (lynx_target_ops): Update.
3295 * nto-low.cc (nto_target_ops): Update.
3296 * win32-low.cc (win32_target_ops): Update.
3297
3298 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3299
3300 Turn process_stratum_target's supports_multi_process op into a
3301 method of process_target.
3302
3303 * target.h (struct process_stratum_target): Remove the target op.
3304 (class process_target): Add the target op.
3305 * target.cc (process_target::supports_multi_process): Define.
3306 (target_supports_multi_process): Update.
3307
3308 Update the derived classes and callers below.
3309
3310 * linux-low.cc (linux_target_ops): Update.
3311 (linux_supports_multi_process): Turn into ...
3312 (linux_process_target::supports_multi_process): ... this.
3313 * linux-low.h (class linux_process_target): Update.
3314 * lynx-low.cc (lynx_target_ops): Update.
3315 * nto-low.cc (nto_target_ops): Update.
3316 * win32-low.cc (win32_target_ops): Update.
3317
3318 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3319
3320 Turn process_stratum_target's supports_non_stop, async, and
3321 start_non_stop ops into methods of process_target.
3322
3323 * target.h (struct process_stratum_target): Remove the target ops.
3324 (class process_target): Add the target ops.
3325 (target_supports_non_stop): Update the macro.
3326 (target_async): Update the macro.
3327 (start_non_stop): Remove declaration.
3328 * target.cc (process_target::supports_non_stop): Define.
3329 (process_target::async): Define.
3330 (process_target::start_non_stop): Define.
3331 (start_non_stop): Remove.
3332
3333 Update the derived classes and callers below.
3334
3335 * server.cc (handle_qxfer_siginfo): Update.
3336 (handle_query): Update.
3337 * linux-low.cc (linux_target_ops): Update.
3338 (linux_supports_non_stop): Turn into ...
3339 (linux_process_target::supports_non_stop): ... this.
3340 (linux_async): Turn into ...
3341 (linux_process_target::async): ... this.
3342 (linux_start_non_stop): Turn into ...
3343 (linux_process_target::start_non_stop): ... this.
3344 * linux-low.h (class linux_process_target): Update.
3345 * lynx-low.cc (lynx_target_ops): Update.
3346 * nto-low.cc (nto_target_ops): Update.
3347 (nto_supports_non_stop): Remove; rely on the default behavior
3348 instead.
3349 * win32-low.cc (win32_target_ops): Update.
3350
3351 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3352
3353 Turn process_stratum_target's qxfer_siginfo op into a method of
3354 process_target.
3355
3356 * target.h (struct process_stratum_target): Remove the target op.
3357 (class process_target): Add the target op. Also add
3358 'supports_qxfer_siginfo'.
3359 * target.cc (process_target::qxfer_siginfo): Define.
3360 (process_target::supports_qxfer_siginfo): Define.
3361
3362 Update the derived classes and callers below.
3363
3364 * server.cc (handle_qxfer_siginfo): Update.
3365 (handle_query): Update.
3366 * linux-low.cc (linux_target_ops): Update.
3367 (linux_process_target::supports_qxfer_siginfo): Define.
3368 (linux_xfer_siginfo): Turn into ...
3369 (linux_process_target::qxfer_siginfo): ... this.
3370 * linux-low.h (class linux_process_target): Update.
3371 * lynx-low.cc (lynx_target_ops): Update.
3372 * nto-low.cc (nto_target_ops): Update.
3373 * win32-low.cc (win32_target_ops): Update.
3374
3375 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3376
3377 Turn process_stratum_target's qxfer_osdata op into a method of
3378 process_target.
3379
3380 * target.h (struct process_stratum_target): Remove the target op.
3381 (class process_target): Add the target op. Also add
3382 'supports_qxfer_osdata'.
3383 * target.cc (process_target::qxfer_osdata): Define.
3384 (process_target::supports_qxfer_osdata): Define.
3385
3386 Update the derived classes and callers below.
3387
3388 * server.cc (handle_qxfer_osdata): Update.
3389 (handle_query): Update.
3390 * linux-low.cc (linux_target_ops): Update.
3391 (linux_process_target::supports_qxfer_osdata): Define.
3392 (linux_qxfer_osdata): Turn into ...
3393 (linux_process_target::qxfer_osdata): ... this.
3394 * linux-low.h (class linux_process_target): Update.
3395 * lynx-low.cc (lynx_target_ops): Update.
3396 * nto-low.cc (nto_target_ops): Update.
3397 * win32-low.cc (win32_target_ops): Update.
3398
3399 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3400
3401 Turn process_stratum_target's hostio_last_error op into a
3402 method of process_target.
3403
3404 * target.h (struct process_stratum_target): Remove the target op.
3405 (class process_target): Add the target op.
3406 * target.cc: Add "hostio.h" to includes.
3407 (process_target::hostio_last_error): Define.
3408
3409 Update the derived classes and callers below.
3410
3411 * hostio.cc (hostio_error): Update.
3412 * linux-low.cc: Remove "hostio.h" from includes.
3413 (linux_target_ops): Update.
3414 * lynx-low.cc (lynx_target_ops): Update.
3415 * nto-low.cc (nto_target_ops): Update.
3416 * win32-low.h (class win32_process_target): Update.
3417 * win32-low.cc (win32_target_ops): Update.
3418 (wince_hostio_last_error): Turn into ...
3419 (win32_process_target::hostio_last_error): ... this.
3420
3421 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3422
3423 Turn process_stratum_target's get_tls_address op into a method of
3424 process_target.
3425
3426 * target.h (struct process_stratum_target): Remove the target op.
3427 (class process_target): Add the target op. Also add
3428 'supports_get_tls_address'.
3429 * target.cc (process_target::get_tls_address): Define.
3430 (process_target::supports_get_tls_address): Define.
3431
3432 Update the derived classes and callers below.
3433
3434 * server.cc (handle_query): Update.
3435 * linux-low.cc (linux_target_ops): Update.
3436 (linux_process_target::supports_get_tls_address): Define.
3437 (linux_process_target::get_tls_address): Define.
3438 * linux-low.h (class linux_process_target): Update.
3439 * lynx-low.cc (lynx_target_ops): Update.
3440 * nto-low.cc (nto_target_ops): Update.
3441 * win32-low.cc (win32_target_ops): Update.
3442
3443 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3444
3445 Turn process_stratum_target's read_offsets op into a method of
3446 process_target.
3447
3448 * target.h (struct process_stratum_target): Remove the target op.
3449 (class process_target): Add the target op. Also add
3450 'supports_read_offsets'.
3451 * target.cc (process_target::read_offsets): Define.
3452 (process_target::supports_read_offsets): Define.
3453
3454 Update the derived classes and callers below.
3455
3456 * server.cc (handle_query): Update.
3457 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
3458 (linux_target_ops): Update.
3459 (linux_process_target::supports_read_offsets): Define.
3460 (linux_read_offsets): Turn into ...
3461 (linux_process_target::read_offsets): ... this.
3462 * linux-low.h (class linux_process_target): Update.
3463 * lynx-low.cc (lynx_target_ops): Update.
3464 * nto-low.cc (nto_target_ops): Update.
3465 * win32-low.cc (win32_target_ops): Update.
3466
3467 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3468
3469 Turn process_stratum_target's stopped_by_watchpoint and
3470 stopped_data_address ops into methods of process_target.
3471
3472 * target.h (struct process_stratum_target): Remove the target ops.
3473 (class process_target): Add the target ops.
3474 * target.cc (process_target::stopped_by_watchpoint): Define.
3475 (process_target::stopped_data_address): Define.
3476
3477 Update the derived classes and callers below.
3478
3479 * remote-utils.cc (prepare_resume_reply): Update.
3480 * linux-low.cc (linux_target_ops): Update.
3481 (linux_stopped_by_watchpoint): Turn into ...
3482 (linux_process_target::stopped_by_watchpoint): ... this.
3483 (linux_stopped_data_address): Turn into ...
3484 (linux_process_target::stopped_data_address): ... this.
3485 * linux-low.h (class linux_process_target): Update.
3486 * lynx-low.cc (lynx_target_ops): Update.
3487 * nto-low.cc (nto_target_ops): Update.
3488 (nto_stopped_by_watchpoint): Turn into ...
3489 (nto_process_target::stopped_by_watchpoint): ... this.
3490 (nto_stopped_data_address): Turn into ...
3491 (nto_process_target::stopped_data_address): ... this.
3492 * nto-low.h (class nto_process_target): Update.
3493 * win32-low.cc (win32_target_ops): Update.
3494 (win32_stopped_by_watchpoint): Turn into ...
3495 (win32_process_target::stopped_by_watchpoint): ... this.
3496 (win32_stopped_data_address): Turn into ...
3497 (win32_process_target::stopped_data_address): ... this.
3498 * win32-low.h (class win32_process_target): Update.
3499
3500 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3501
3502 Turn process_stratum_target's supports_hardware_single_step op into
3503 a method of process_target.
3504
3505 * target.h (struct process_stratum_target): Remove the target op.
3506 (class process_target): Add the target op.
3507 (target_supports_hardware_single_step): Update the macro.
3508 (target_can_do_hardware_single_step): Remove declaration.
3509 * target.cc (process_target::supports_hardware_single_step): Define.
3510 (target_can_do_hardware_single_step): Remove.
3511
3512 Update the derived classes and callers below.
3513
3514 * linux-low.h (class linux_process_target): Update.
3515 * linux-low.cc (linux_target_ops): Update.
3516 (linux_supports_hardware_single_step): Turn into ...
3517 (linux_process_target::supports_hardware_single_step): ... this.
3518 * lynx-low.h (class lynx_process_target): Update.
3519 * lynx-low.cc (lynx_target_ops): Update.
3520 (lynx_process_target::supports_hardware_single_step): Define.
3521 * nto-low.h (class nto_process_target): Update.
3522 * nto-low.cc (nto_target_ops): Update.
3523 (nto_process_target::supports_hardware_single_step): Define.
3524 * win32-low.h (class win32_process_target): Update.
3525 * win32-low.cc (win32_target_ops): Update.
3526 (win32_process_target::supports_hardware_single_step): Define.
3527
3528 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3529
3530 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
3531 ops into methods of process_target.
3532
3533 * target.h (struct process_stratum_target): Remove the target ops.
3534 (class process_target): Add the target ops.
3535 (target_stopped_by_hw_breakpoint): Update the macro.
3536 (target_supports_stopped_by_hw_breakpoint): Update the macro.
3537 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
3538 (process_target::supports_stopped_by_hw_breakpoint): Define.
3539
3540 Update the derived classes and callers below.
3541
3542 * linux-low.cc (linux_target_ops): Update.
3543 (linux_stopped_by_hw_breakpoint): Turn into ...
3544 (linux_process_target::stopped_by_hw_breakpoint): ... this.
3545 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
3546 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
3547 * linux-low.h (class linux_process_target): Update.
3548 * lynx-low.cc (lynx_target_ops): Update.
3549 * nto-low.cc (nto_target_ops): Update.
3550 * win32-low.cc (win32_target_ops): Update.
3551
3552 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3553
3554 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
3555 ops into methods of process_target.
3556
3557 * target.h (struct process_stratum_target): Remove the target ops.
3558 (class process_target): Add the target ops.
3559 (target_stopped_by_sw_breakpoint): Update the macro.
3560 (target_supports_stopped_by_sw_breakpoint): Update the macro.
3561 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
3562 (process_target::supports_stopped_by_sw_breakpoint): Define.
3563
3564 Update the derived classes and callers below.
3565
3566 * linux-low.cc (linux_target_ops): Update.
3567 (linux_stopped_by_sw_breakpoint): Turn into ...
3568 (linux_process_target::stopped_by_sw_breakpoint): ... this.
3569 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
3570 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
3571 * linux-low.h (class linux_process_target): Update.
3572 * lynx-low.cc (lynx_target_ops): Update.
3573 * nto-low.cc (nto_target_ops): Update.
3574 * win32-low.cc (win32_target_ops): Update.
3575
3576 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3577
3578 Turn process_stratum_target's insert_point and remove_point ops
3579 into methods of process_target.
3580
3581 * target.h (struct process_stratum_target): Remove the target ops.
3582 (class process_target): Add the target ops.
3583 * target.cc (process_target::insert_point): Define.
3584 (process_target::remove_point): Define.
3585
3586 Update the derived classes and callers below.
3587
3588 * mem-break.cc (set_raw_breakpoint_at): Update.
3589 (delete_raw_breakpoint): Update.
3590 (uninsert_raw_breakpoint): Update.
3591 (reinsert_raw_breakpoint): Update.
3592 * linux-low.cc (linux_target_ops): Update.
3593 (linux_insert_point): Turn into ...
3594 (linux_process_target::insert_point): ... this.
3595 (linux_remove_point): Turn into ...
3596 (linux_process_target::remove_point): ... this.
3597 * linux-low.h (class linux_process_target): Update.
3598 * lynx-low.cc (lynx_target_ops): Update.
3599 * nto-low.cc (nto_target_ops): Update.
3600 (nto_insert_point): Turn into ...
3601 (nto_process_target::insert_point): ... this.
3602 (nto_remove_point): Turn into ...
3603 (nto_process_target::remove_point): ... this.
3604 * nto-low.h (class nto_process_target): Update.
3605 * win32-low.cc (win32_target_ops): Update.
3606 (win32_insert_point): Turn into ...
3607 (win32_process_target::insert_point): ... this.
3608 (win32_remove_point): Turn into ...
3609 (win32_process_target::remove_point): ... this.
3610 * win32-low.h (class win32_process_target): Update.
3611
3612 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3613
3614 Turn process_stratum_target's supports_z_point_type op into a
3615 method of process_target.
3616
3617 * target.h (struct process_stratum_target): Remove the target op.
3618 (class process_target): Add the target op.
3619 * target.cc (process_target::supports_z_point_type): Define.
3620
3621 Update the derived classes and callers below.
3622
3623 * mem-break.cc (z_type_supported): Update.
3624 * linux-low.cc (linux_target_ops): Update.
3625 (linux_supports_z_point_type): Turn into ...
3626 (linux_process_target::supports_z_point_type): ... this.
3627 * linux-low.h (class linux_process_target): Update.
3628 * lynx-low.cc (lynx_target_ops): Update.
3629 * nto-low.cc (nto_target_ops): Update.
3630 (nto_supports_z_point_type): Turn into ...
3631 (nto_process_target::supports_z_point_type): ... this.
3632 * nto-low.h (class nto_process_target): Update.
3633 * win32-low.cc (win32_target_ops): Update.
3634 (win32_supports_z_point_type): Turn into ...
3635 (win32_process_target::supports_z_point_type): ... this.
3636 * win32-low.h (class win32_process_target): Update.
3637
3638 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3639
3640 Turn process_stratum_target's read_auxv op into a method of
3641 process_target.
3642
3643 * target.h (class process_stratum_target): Remove the target op.
3644 (struct process_target): Add the target op. Also add
3645 'supports_read_auxv'.
3646 * target.cc (process_target::read_auxv): Define.
3647 (process_target::supports_read_auxv): Define.
3648
3649 Update the derived classes and callers below.
3650
3651 * server.cc (handle_qxfer_auxv): Update.
3652 (handle_query): Update.
3653 * linux-low.cc (linux_target_ops): Update.
3654 (linux_process_target::supports_read_auxv): Define.
3655 (linux_read_auxv): Turn into ...
3656 (linux_process_target::read_auxv): ... this.
3657 * linux-low.h (class linux_process_target): Update.
3658 * lynx-low.cc (lynx_target_ops): Update.
3659 * nto-low.cc (nto_target_ops): Update.
3660 (nto_process_target::supports_read_auxv): Define.
3661 (nto_read_auxv): Turn into ...
3662 (nto_process_target::read_auxv): ... this.
3663 * nto-low.h (class nto_process_target): Update.
3664 * win32-low.cc (win32_target_ops): Update.
3665
3666 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3667
3668 Turn process_stratum_target's request_interrupt op into a method of
3669 process_target.
3670
3671 * target.h (struct process_stratum_target): Remove the target op.
3672 (class process_target): Add the target op.
3673
3674 Update the derived classes and callers below.
3675
3676 * remote-utils.cc (putpkt_binary_1): Update.
3677 (input_interrupt): Update.
3678 (getpkt): Update.
3679 * server.cc (handle_v_requests): Update.
3680 * linux-low.cc (linux_target_ops): Update.
3681 (linux_request_interrupt): Turn into ...
3682 (linux_process_target::request_interrupt): ... this.
3683 * linux-low.h (class linux_process_target): Update.
3684 * lynx-low.cc (lynx_target_ops): Update.
3685 (lynx_request_interrupt): Turn into ...
3686 (lynx_process_target::request_interrupt): ... this.
3687 * lynx-low.h (class lynx_process_target): Update.
3688 * nto-low.cc (nto_target_ops): Update.
3689 (nto_request_interrupt): Turn into ...
3690 (nto_process_target::request_interrupt): ... this.
3691 * nto-low.h (class nto_process_target): Update.
3692 * win32-low.cc (win32_target_ops): Update.
3693 (win32_request_interrupt): Turn into ...
3694 (win32_process_target::request_interrupt): ... this.
3695 * win32-low.h (class win32_process_target): Update.
3696
3697 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3698
3699 Turn process_stratum_target's look_up_symbols op into a method of
3700 process_target.
3701
3702 * target.h (struct process_stratum_target): Remove the target op.
3703 (class process_target): Add the target op.
3704 * target.cc (process_target::look_up_symbols): Define.
3705
3706 Update the derived classes and callers below.
3707
3708 * server.cc (handle_query): Update.
3709 * linux-low.cc (linux_target_ops): Update.
3710 (linux_look_up_symbols): Turn into ...
3711 (linux_process_target::look_up_symbols): ... this.
3712 * linux-low.h (class linux_process_target): Update.
3713 * lynx-low.cc (lynx_target_ops): Update.
3714 * nto-low.cc (nto_target_ops): Update.
3715 * win32-low.cc (win32_target_ops): Update.
3716
3717 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3718
3719 Turn process_stratum_target's read_memory and write_memory
3720 ops into methods of process_target.
3721
3722 * target.h (struct process_stratum_target): Remove the target ops.
3723 (class process_target): Add the target ops.
3724
3725 Update the derived classes and callers below.
3726
3727 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
3728 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
3729 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
3730 (arm_get_syscall_trapinfo): Update.
3731 * linux-cris-low.cc (cris_breakpoint_at): Update.
3732 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
3733 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
3734 * linux-mips-low.cc (mips_breakpoint_at): Update.
3735 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
3736 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
3737 * linux-sh-low.cc (sh_breakpoint_at): Update.
3738 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
3739 (sparc_store_gregset_from_stack): Update.
3740 (sparc_breakpoint_at): Update.
3741 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
3742 * linux-tile-low.cc (tile_breakpoint_at): Update.
3743 * linux-x86-low.cc (x86_breakpoint_at): Update.
3744 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
3745 * mem-brea.cc (insert_memory_breakpoint): Update.
3746 (validate_inserted_breakpoint): Update.
3747 * target.cc (read_inferior_memory): Update.
3748 (target_write_memory): Update.
3749 * linux-low.cc (linux_target_ops): Update.
3750 (linux_read_memory): Make a wrapper around the read_memory target
3751 op call.
3752 (linux_process_target::read_memory): Rename from linux_read_memory.
3753 (linux_write_memory): Turn into ...
3754 (linux_process_target::write_memory): ... this.
3755 * linux-low.h (class linux_process_target): Update.
3756 * lynx-low.cc (lynx_target_ops): Update.
3757 (lynx_read_memory): Turn into ...
3758 (lynx_process_target::read_memory): ... this.
3759 (lynx_write_memory): Turn into ...
3760 (lynx_process_target::write_memory): ... this.
3761 * lynx-low.h (class lynx_process_target): Update.
3762 * nto-low.cc (nto_target_ops): Update.
3763 (nto_read_memory): Turn into ...
3764 (nto_process_target::read_memory): ... this.
3765 (nto_write_memory): Turn into ...
3766 (nto_process_target::write_memory): ... this.
3767 * nto-low.h (class nto_process_target): Update.
3768 * win32-low.cc (win32_target_ops): Update.
3769 (win32_read_inferior_memory): Turn into ...
3770 (win32_process_target::read_memory): ... this.
3771 (win32_write_inferior_memory): Turn into ...
3772 (win32_process_target::write_memory): ... this.
3773 * win32-low.h (class win32_process_target): Update.
3774
3775 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3776
3777 Turn process_stratum_target's prepare_to_access_memory and
3778 done_accessing_memory ops into methods of process_target.
3779
3780 * target.h (struct process_stratum_target): Remove the target ops.
3781 (class process_target): Add the target ops.
3782 * target.cc (process_target::prepare_to_access_memory): Define.
3783 (process_target::done_accessing_memory): Define.
3784 (prepare_to_access_memory): Update.
3785 (done_accessing_memory): Update.
3786
3787 Update the derived classes and callers below.
3788
3789 * linux-low.cc (linux_target_ops): Update.
3790 (linux_prepare_to_access_memory): Turn into ...
3791 (linux_process_target::prepare_to_access_memory): ... this.
3792 (linux_done_accessing_memory): Turn into ...
3793 (linux_process_target::done_accessing_memory): ... this.
3794 * linux-low.h (class linux_process_target): Update.
3795 * lynx-low.cc (lynx_target_ops): Update.
3796 * nto-low.cc (nto_target_ops): Update.
3797 * win32-low.cc (win32_target_ops): Update.
3798
3799 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3800
3801 Turn process_stratum_target's fetch_registers and store_registers
3802 ops into methods of process_target.
3803
3804 * target.h (struct process_stratum_target): Remove the target ops.
3805 (class process_target): Add the target ops.
3806 (fetch_inferior_registers): Update the macro.
3807 (store_inferior_registers): Update the macro.
3808
3809 Update the derived classes and callers below.
3810
3811 * linux-low.cc (linux_target_ops): Update.
3812 (linux_fetch_registers): Turn into ...
3813 (linux_process_target::fetch_registers): ... this.
3814 (linux_store_registers): Turn into ...
3815 (linux_process_target::store_registers): ... this.
3816 * linux-low.h (class linux_process_target): Update.
3817 * lynx-low.cc (lynx_target_ops): Update.
3818 (lynx_fetch_registers): Turn into ...
3819 (lynx_process_target::fetch_registers): ... this.
3820 (lynx_store_registers): Turn into ...
3821 (lynx_process_target::store_registers): ... this.
3822 * lynx-low.h (class lynx_process_target): Update.
3823 * nto-low.cc (nto_target_ops): Update.
3824 (nto_fetch_registers): Turn into ...
3825 (nto_process_target::fetch_registers): ... this.
3826 (nto_store_registers): Turn into ...
3827 (nto_process_target::store_registers): ... this.
3828 * nto-low.h (class nto_process_target): Update.
3829 * win32-low.cc (win32_target_ops): Update.
3830 (win32_fetch_inferior_registers): Turn into ...
3831 (win32_process_target::fetch_registers): ... this.
3832 (win32_store_inferior_registers): Turn into ...
3833 (win32_process_target::store_registers): ... this.
3834 * win32-low.h (class win32_process_target): Update.
3835
3836 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3837
3838 Turn process_stratum_target's wait op into a method of
3839 process_target.
3840
3841 * target.h (struct process_stratum_target): Remove the target op.
3842 (class process_target): Add the target op.
3843
3844 Update the derived classes and callers below.
3845
3846 * target.cc (target_wait): Update.
3847 * linux-low.cc (linux_target_ops): Update.
3848 (linux_wait): Turn into ...
3849 (linux_process_target::wait): ... this.
3850 * linux-low.h (class linux_process_target): Update.
3851 * lynx-low.cc (lynx_target_ops): Update.
3852 (lynx_wait): Turn into ...
3853 (lynx_process_target::wait): ... this.
3854 * lynx-low.h (class lynx_process_target): Update.
3855 * nto-low.cc (nto_target_ops): Update.
3856 (nto_wait): Turn into ...
3857 (nto_process_target::wait): ... this.
3858 * nto-low.h (class nto_process_target): Update.
3859 * win32-low.cc (win32_target_ops): Update.
3860 (win32_wait): Turn into ...
3861 (win32_process_target::wait): ... this.
3862 (do_initial_child_stuff): Update.
3863 * win32-low.h (class win32_process_target): Update.
3864
3865 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3866
3867 Turn process_stratum_target's resume op into a method of
3868 process_target.
3869
3870 * target.h (struct process_stratum_target): Remove the target op.
3871 (class process_target): Add the target op.
3872
3873 Update the derived classes and callers below.
3874
3875 * server.cc (resume): Update.
3876 * target.cc (target_stop_and_wait): Update.
3877 (target_continue_no_signal): Update.
3878 (target_continue): Update.
3879 * linux-low.cc (linux_target_ops): Update.
3880 (linux_resume): Turn into ...
3881 (linux_process_target::resume): ... this.
3882 * linux-low.h (class linux_process_target): Update.
3883 * lynx-low.cc (lynx_target_ops): Update.
3884 (lynx_resume): Turn into ...
3885 (lynx_process_target::resume): ... this.
3886 * lynx-low.h (class lynx_process_target): Update.
3887 * nto-low.cc (nto_target_ops): Update.
3888 (nto_resume): Turn into ...
3889 (nto_process_target::resume): ... this.
3890 * nto-low.h (class nto_process_target): Update.
3891 * win32-low.cc (win32_target_ops): Update.
3892 (win32_resume): Turn into ...
3893 (win32_process_target::resume): ... this.
3894 (win32_process_target::detach): Update.
3895 (do_initial_child_stuff): Update.
3896 * win32-low.h (class win32_process_target): Update.
3897
3898 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3899
3900 Turn process_stratum_target's thread_alive op into a method of
3901 process_target.
3902
3903 * target.h (struct process_stratum_target): Remove the target op.
3904 (class process_target): Add the target op.
3905 (mythread_alive): Update the macro.
3906
3907 Update the derived classes and callers below.
3908
3909 * linux-low.cc (linux_target_ops): Update.
3910 (linux_thread_alive): Turn into ...
3911 (linux_process_target::thread_alive): ... this.
3912 (wait_for_sigstop): Update.
3913 * linux-low.h (class linux_process_target): Update.
3914 * lynx-low.cc (lynx_target_ops): Update.
3915 (lynx_thread_alive): Turn into ...
3916 (lynx_process_target::thread_alive): ... this.
3917 * lynx-low.h (class lynx_process_target): Update.
3918 * nto-low.cc (nto_target_ops): Update.
3919 (nto_thread_alive): Turn into ...
3920 (nto_process_target::thread_alive): ... this.
3921 * nto-low.h (class nto_process_target): Update.
3922 * win32-low.cc (win32_target_ops): Update.
3923 (win32_thread_alive): Turn into ...
3924 (win32_process_target::thread_alive): ... this.
3925 * win32-low.h (class win32_process_target): Update.
3926
3927 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3928
3929 Turn process_stratum_target's join op into a method of
3930 process_target.
3931
3932 * target.h (struct process_stratum_target): Remove the target op.
3933 (class process_target): Add the target op.
3934 (join_inferior): Update the macro.
3935
3936 Update the derived classes and callers below.
3937
3938 * linux-low.cc (linux_target_ops): Update.
3939 (linux_join): Turn into ...
3940 (linux_process_target::join): ... this.
3941 * linux-low.h (class linux_process_target): Update.
3942 * lynx-low.cc (lynx_target_ops): Update.
3943 (lynx_join): Turn into ...
3944 (lynx_process_target::join): ... this.
3945 * lynx-low.h (class lynx_process_target): Update.
3946 * nto-low.cc (nto_target_ops): Update.
3947 (nto_process_target::join): Define.
3948 * nto-low.h (class nto_process_target): Update.
3949 * win32-low.cc (win32_target_ops): Update.
3950 (win32_join): Turn into ...
3951 (win32_process_target::join): ... this.
3952 * win32-low.h (class win32_process_target): Update.
3953
3954 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3955
3956 Turn process_stratum_target's mourn op into a method of
3957 process_target.
3958
3959 * target.h (struct process_stratum_target): Remove the target op.
3960 (class process_target): Add the target op.
3961
3962 Update the derived classes and callers below.
3963
3964 * target.cc (target_mourn_inferior): Update.
3965 * linux-low.cc (linux_target_ops): Update.
3966 (linux_mourn): Turn into ...
3967 (linux_process_target::mourn): ... this.
3968 (handle_extended_wait): Update.
3969 (linux_process_target::kill): Update.
3970 (linux_process_target::detach): Update.
3971 * linux-low.h (class linux_process_target): Update.
3972 * lynx-low.cc (lynx_target_ops): Update.
3973 (lynx_mourn): Turn into ...
3974 (lynx_process_target::mourn): ... this.
3975 * lynx-low.h (class lynx_process_target): Update.
3976 * nto-low.cc (nto_target_ops): Update.
3977 (nto_mourn): Turn into ...
3978 (nto_process_target::mourn): ... this.
3979 * nto-low.h (class nto_process_target): Update.
3980 * win32-low.cc (win32_target_ops): Update.
3981 (win32_mourn): Turn into ...
3982 (win32_process_target::mourn): ... this.
3983 * win32-low.h (class win32_process_target): Update.
3984
3985 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3986
3987 Turn process_stratum_target's detach op into a method of
3988 process_target.
3989
3990 * target.h (struct process_stratum_target): Remove the target op.
3991 (class process_target): Add the target op.
3992 (detach_inferior): Update the macro.
3993
3994 Update the derived classes and callers below.
3995
3996 * linux-low.cc (linux_target_ops): Update.
3997 (linux_detach): Turn into ...
3998 (linux_process_target::detach): ... this.
3999 * linux-low.h (class linux_process_target): Update.
4000 * lynx-low.cc (lynx_target_ops): Update.
4001 (lynx_detach): Turn into ...
4002 (lynx_process_target::detach): ... this.
4003 * lynx-low.h (class lynx_process_target): Update.
4004 * nto-low.cc (nto_target_ops): Update.
4005 (nto_detach): Turn into ...
4006 (nto_process_target::detach): ... this.
4007 * nto-low.h (class nto_process_target): Update.
4008 * win32-low.cc (win32_target_ops): Update.
4009 (win32_detach): Turn into ...
4010 (win32_process_target::detach): ... this.
4011 * win32-low.h (class win32_process_target): Update.
4012
4013 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4014
4015 Turn process_stratum_target's kill op into a method of
4016 process_target.
4017
4018 * target.h (struct process_stratum_target): Remove the target op.
4019 (class process_target): Add the target op.
4020
4021 Update the derived classes and callers below.
4022
4023 * target.cc (kill_inferior): Update.
4024 * linux-low.cc (linux_target_ops): Update.
4025 (linux_kill): Turn into ...
4026 (linux_process_target::kill): ... this.
4027 * linux-low.h (class linux_process_target): Update.
4028 * lynx-low.cc (lynx_target_ops): Update.
4029 (lynx_kill): Turn into ...
4030 (lynx_process_target::kill): ... this.
4031 * lynx-low.h (class lynx_process_target): Update.
4032 * nto-low.cc (nto_target_ops): Update.
4033 (nto_kill): Turn into ...
4034 (nto_process_target::kill): ... this.
4035 * nto-low.h (class nto_process_target): Update.
4036 * win32-low.cc (win32_target_ops): Update.
4037 (win32_kill): Turn into ...
4038 (win32_process_target::kill): ... this.
4039 * win32-low.h (class win32_process_target): Update.
4040
4041 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4042
4043 Turn process_stratum_target's attach op into a method of
4044 process_target.
4045
4046 * target.h (struct process_stratum_target): Remove the target op.
4047 (class process_target): Add the target op.
4048 (myattach): Update the macro.
4049
4050 Update the derived classes and callers below.
4051
4052 * linux-low.cc (linux_target_ops): Update.
4053 (linux_attach): Turn into ...
4054 (linux_process_target::attach): ... this.
4055 * linux-low.h (class linux_process_target): Update.
4056 * lynx-low.cc (lynx_target_ops): Update.
4057 (lynx_attach): Turn into ...
4058 (lynx_process_target::attach): ... this.
4059 * lynx-low.h (class lynx_process_target): Update.
4060 * nto-low.cc (nto_target_ops): Update.
4061 (nto_attach): Turn into ...
4062 (nto_process_target::attach): ... this.
4063 * nto-low.h (class nto_process_target): Update.
4064 * win32-low.cc (win32_target_ops): Update.
4065 (win32_attach): Turn into ...
4066 (win32_process_target::attach): ... this.
4067 * win32-low.h (class win32_process_target): Update.
4068
4069 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4070
4071 Turn process_stratum_target's post_create_inferior op into a method
4072 of process_target.
4073
4074 * target.h (struct process_stratum_target): Remove the target op.
4075 (class process_target): Add the target op.
4076 (target_post_create_inferior): Update the macro.
4077 * target.cc (process_target::post_create_inferior): Define.
4078
4079 Update the derived classes and callers below.
4080
4081 * linux-low.cc (linux_target_ops): Update.
4082 (linux_post_create_inferior): Turn into ...
4083 (linux_process_target::post_create_inferior): ... this.
4084 * linux-low.h (class linux_process_target): Update.
4085 * lynx-low.cc (lynx_target_ops): Update.
4086 * nto-low.cc (nto_target_ops): Update.
4087 * win32-low.cc (win32_target_ops): Update.
4088
4089 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4090
4091 Turn process_stratum_target's create_inferior op into a method of
4092 process_target.
4093
4094 * target.h (struct process_stratum_target): Remove the target op.
4095 (class process_target): Add the target op.
4096 (create_inferior): Rename the macro to ...
4097 (target_create_inferior): ... this.
4098
4099 Update the derived classes and callers below.
4100
4101 * server.cc (handle_v_run): Update.
4102 (captured_main): Update.
4103 (process_serial_event): Update.
4104 * linux-low.cc (linux_target_ops): Update.
4105 (linux_create_inferior): Turn into ...
4106 (linux_process_target::create_inferior): ... this.
4107 * linux-low.h (class linux_process_target): Update.
4108 * lynx-low.cc (lynx_target_ops): Update.
4109 (lynx_create_inferior): Turn into ...
4110 (lynx_process_target::create_inferior): ... this.
4111 * lynx-low.h (class lynx_process_target): Update.
4112 * nto-low.cc (nto_target_ops): Update.
4113 (nto_create_inferior): Turn into ...
4114 (nto_process_target::create_inferior): ... this.
4115 * nto-low.h (class nto_process_target): Update.
4116 * win32-low.cc (win32_target_ops): Update.
4117 (win32_create_inferior): Turn into ...
4118 (win32_process_target::create_inferior): ... this.
4119 * win32-low.h (class win32_process_target): Update.
4120
4121 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4122
4123 * target.h (class process_target): New class definition.
4124 (struct process_stratum_target) <pt>: New field with type
4125 'process_target*'.
4126 * linux-low.h (class linux_process_target): Define as a derived
4127 class of 'process_target'.
4128 * linux-low.cc (linux_target_ops): Add a linux_process_target*
4129 as the 'pt' field.
4130 * lynx-low.h (class lynx_process_target): Define as a derived
4131 class of 'process_target'.
4132 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
4133 as the 'pt' field.
4134 * nto-low.h (class nto_process_target): Define as a derived
4135 class of 'process_target'.
4136 * nto-low.cc (nto_target_ops): Add an nto_process_target*
4137 as the 'pt' field.
4138 * win32-low.h (class win32_process_target): Define as a derived
4139 class of 'process_target'.
4140 * win32-low.cc (win32_target_ops): Add a win32_process_target*
4141 as the 'pt' field.
4142
4143 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
4144
4145 * configure: Regenerate.
4146
4147 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
4148 Andrew Burgess <andrew.burgess@embecosm.com>
4149
4150 * linux-riscv-low.cc: New file.
4151 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
4152 and nat/riscv-linux-tdesc.c.
4153 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
4154 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
4155 Define.
4156
4157 2020-02-14 Tom Tromey <tom@tromey.com>
4158
4159 * acinclude.m4: Don't include acx_configure_dir.m4.
4160 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
4161 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
4162 (all, install-only, uninstall, clean-info, clean)
4163 (maintainer-clean): Don't recurse.
4164 (subdir_do, all-lib): Remove.
4165 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
4166 (GNULIB_H): Remove.
4167 (generated_files): Update.
4168 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
4169 * configure: Rebuild.
4170 * configure.ac: Don't configure gnulib or libiberty.
4171 (GNULIB): Update.
4172
4173 2020-02-14 Eli Zaretskii <eliz@gnu.org>
4174
4175 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
4176 preparing the command line for CreateProcess.
4177 (win32_create_inferior): Reflect the program name in debugging
4178 output that shows the process and its command line.
4179
4180 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
4181
4182 * Makefile.in: Rename source files from .c to .cc.
4183 * %.c: Rename to %.cc.
4184 * configure.ac: Rename server.c to server.cc.
4185 * configure: Re-generate.
4186
4187 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
4188
4189 * Makefile.in: Rename gdbsupport source files from .c to .cc.
4190
4191 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
4192
4193 * win32-low.c (win32_create_inferior): Set signal_pid.
4194
4195 2020-02-12 Maciej W. Rozycki <macro@wdc.com>
4196 Pedro Alves <palves@redhat.com>
4197
4198 Skip building gdbserver in a cross-configuration.
4199 * configure.srv: Set $gdbserver_host depending on whether $target
4200 is $host. Use $gdbserver_host instead of $host.
4201
4202 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4203
4204 * configure: Re-generate.
4205
4206 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4207
4208 * configure: Re-generate.
4209
4210 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4211
4212 * acinclude.m4: Update warning.m4 path.
4213
4214 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
4215
4216 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
4217 (handle_exception): Set siginfo_er.
4218 (win32_xfer_siginfo): New function.
4219
4220 2020-02-07 Tom Tromey <tom@tromey.com>
4221 Pedro Alves <palves@redhat.com>
4222
4223 * README: Update build documentation.
4224 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
4225 host, not target.
4226 * configure.ac: Update paths.
4227 * configure: Rebuild.
4228 * acinclude.m4: Update paths.
4229 * Makefile.in: Update include paths.
4230 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
4231 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
4232 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
4233 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
4234 (%-generated.c): Update paths.
4235 * Move entire directory from ../gdb/gdbserver.
4236
4237 2020-01-29 Maciej W. Rozycki <macro@wdc.com>
4238
4239 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
4240
4241 2020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4242
4243 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
4244 assignment instead of srv_linux_obj.
4245
4246 2020-01-28 Hannes Domani <ssbssa@yahoo.de>
4247
4248 * server.c (handle_qxfer_libraries): Write segment-address with
4249 paddress.
4250
4251 2020-01-24 Hannes Domani <ssbssa@yahoo.de>
4252
4253 * Makefile.in (install-strip): New target.
4254 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
4255 * aclocal.m4: Regenerate.
4256 * configure: Regenerate.
4257 * configure.ac: Add AM_PROG_INSTALL_STRIP.
4258
4259 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
4260
4261 * Makefile.in (SFILES): Adjust paths to point to real files.
4262 (OBS): Move waitstatus.o to target/waitstatus.o.
4263 (TAGS): Transform paths appropriately.
4264 (%.o): Rename to...
4265 (nat/%.o): ... this pattern rule.
4266 (%.o): Rename to...
4267 (target/%.o): ... this pattern rule.
4268 * configure.srv: Adjust paths throughout to include nat/ prefix
4269 with the revant files.
4270 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
4271 * configure: Regenerate.
4272
4273 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
4274
4275 * Makefile.in (TAGS): Remove config files from the recipe.
4276
4277 2020-01-14 Tom Tromey <tom@tromey.com>
4278
4279 * configure: Rebuild.
4280 * configure.ac: Remove any checks that were added to common.m4.
4281 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
4282 lib-link.m4.
4283
4284 2020-01-14 Tom Tromey <tom@tromey.com>
4285
4286 * server.h: Include config.h.
4287 * gdbreplay.c: Include config.h.
4288 * configure: Rebuild.
4289 * configure.ac: Don't source common.host.
4290 * acinclude.m4: Update path.
4291 * Makefile.in (INCSUPPORT): New variable.
4292 (INCLUDE_CFLAGS): Add INCSUPPORT.
4293 (SFILES): Update paths.
4294 (version-generated.c): Update path to create-version.sh.
4295 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
4296
4297 2020-01-14 Tom Tromey <tom@tromey.com>
4298
4299 * configure.ac (LIBS): Use WIN32APILIBS.
4300 (USE_WIN32API): Don't define.
4301 * configure: Rebuild.
4302
4303 2020-01-14 Tom Tromey <tom@tromey.com>
4304
4305 * configure: Rebuild.
4306
4307 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4308
4309 * Makefile.in (%-generated.c): Remove rule for files from
4310 regformats/i386.
4311
4312 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4313
4314 * configure: Re-generate.
4315
4316 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4317
4318 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
4319 Define to static.
4320 * tracepoint.c (stop_tracing, flush_trace_buffer,
4321 about_to_request_buffer_space, get_trace_state_variable_value,
4322 set_trace_state_variable_value, gdb_collect): Add declaration.
4323
4324 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4325
4326 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
4327 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
4328 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
4329 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
4330 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
4331 static.
4332
4333 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4334
4335 * inferiors.c: Include gdbsupport/common-inferior.h.
4336
4337 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4338
4339 * hostio-errno.c: Include hostio.h.
4340
4341 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4342
4343 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
4344 prerequisite.
4345
4346 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4347
4348 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
4349 * linux-arm-tdesc.h: Include arch/arm.h.
4350
4351 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4352
4353 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
4354
4355 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4356
4357 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
4358 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
4359
4360 2020-01-10 Pedro Alves <palves@redhat.com>
4361
4362 * fork-child.c (post_fork_inferior): Pass target down to
4363 startup_inferior.
4364 * inferiors.c (switch_to_thread): Add process_stratum_target
4365 parameter.
4366 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
4367 * nto-low.c (nto_target_ops): Now a process_stratum_target.
4368 * linux-low.c (linux_target_ops): Now a process_stratum_target.
4369 * remote-utils.c (prepare_resume_reply): Pass the target to
4370 switch_to_thread.
4371 * target.c (the_target): Now a process_stratum_target.
4372 (done_accessing_memory): Pass the target to switch_to_thread.
4373 (set_target_ops): Ajust to use process_stratum_target.
4374 * target.h (struct target_ops): Rename to ...
4375 (struct process_stratum_target): ... this.
4376 (the_target, set_target_ops): Adjust.
4377 (prepare_to_access_memory): Adjust comment.
4378 * win32-low.c (child_xfer_memory): Adjust to use
4379 process_stratum_target.
4380 (win32_target_ops): Now a process_stratum_target.
4381
4382 2020-01-06 Eli Zaretskii <eliz@gnu.org>
4383 Pedro Alves <palves@redhat.com>
4384
4385 * win32-low.c (get_child_debug_event): Extract the fatal exception
4386 from the exit status and convert to the equivalent Posix signal
4387 number.
4388 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
4389 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
4390
4391 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
4392
4393 * Makefile.in: Use INSTALL_PROGRAM_ENV.
4394
4395 2020-01-01 Joel Brobecker <brobecker@adacore.com>
4396
4397 * server.c (gdbserver_version): Change copyright year to 2020.
4398 * gdbreplay.c (gdbreplay_version): Likewise.
4399
4400 2019-12-19 Christian Biesinger <cbiesinger@google.com>
4401
4402 * configure: Regenerate.
4403 * configure.ac: Quote variable arguments of test.
4404
4405 2019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
4406
4407 * Makefile.in: Fix build with GNU Make 3.81
4408
4409 2019-12-16 Tom Tromey <tromey@adacore.com>
4410
4411 * server.c (get_exec_file): Constify result.
4412
4413 2019-12-10 Christian Biesinger <cbiesinger@google.com>
4414
4415 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
4416 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
4417 * config.in: Regenerate.
4418 * configure: Regenerate.
4419 * configure.ac: Don't check for strerror.
4420 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
4421 Call safe_strerror instead of strerror.
4422 * server.h (strerror): Remove this now-unnecessary declaration.
4423 * tracepoint.c (init_named_socket): Call safe_strerror instead of
4424 strerror.
4425 (gdb_agent_helper_thread): Likewise.
4426 * utils.c (perror_with_name): Likewise.
4427
4428 2019-11-26 Tom Tromey <tom@tromey.com>
4429
4430 * configure, config.in: Rebuild.
4431
4432 2019-11-26 Tom Tromey <tom@tromey.com>
4433
4434 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
4435 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
4436 gdb_sigmask.
4437 * configure, config.in: Rebuild.
4438
4439 2019-11-26 Tom Tromey <tom@tromey.com>
4440
4441 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
4442 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
4443 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
4444 * acinclude.m4: Include ax_pthread.m4.
4445 * config.in, configure: Rebuild.
4446
4447 2019-11-26 Christian Biesinger <cbiesinger@google.com>
4448
4449 * debug.c (debug_set_output): Call safe_strerror instead of
4450 strerror.
4451 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
4452 (linux_kill_one_lwp): Likewise.
4453 (linux_detach_one_lwp): Likewise.
4454 (linux_wait_for_event_filtered): Likewise.
4455 (store_register): Likewise.
4456 * lynx-low.c (lynx_attach): Likewise.
4457 * mem-break.c (insert_memory_breakpoint): Likewise.
4458 (remove_memory_breakpoint): Likewise.
4459 (delete_fast_tracepoint_jump): Likewise.
4460 (set_fast_tracepoint_jump): Likewise.
4461 (uninsert_fast_tracepoint_jumps_at): Likewise.
4462 (reinsert_fast_tracepoint_jumps_at): Likewise.
4463 * nto-low.c (nto_xfer_memory): Likewise.
4464 (nto_resume): Likewise.
4465
4466 2019-11-20 Luis Machado <luis.machado@linaro.org>
4467
4468 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
4469 instead of register count.
4470 * tdesc.c (tdesc_contains_feature): New function.
4471 * tdesc.h (tdesc_contains_feature): New prototype.
4472
4473 2019-11-15 Christian Biesinger <cbiesinger@google.com>
4474
4475 * Makefile.in: Add safe-strerror.c.
4476 * configure: Regenerate.
4477 * configure.ac: Don't source common.host.
4478
4479 2019-11-15 Christian Biesinger <cbiesinger@google.com>
4480
4481 * config.in: Regenerate.
4482 * configure: Regenerate.
4483
4484 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
4485
4486 * ax.c (ax_printf): Handle size_t_arg.
4487
4488 2019-11-06 Christian Biesinger <cbiesinger@google.com>
4489
4490 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
4491 * mi/mi-main.c (output_cores): Likewise.
4492 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
4493 (linux_xfer_osdata_modules): Likewise.
4494 * remote.c (register_remote_support_xml): Likewise.
4495 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
4496 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
4497
4498 2019-11-01 Christian Biesinger <cbiesinger@google.com>
4499
4500 * configure: Regenerate.
4501 * configure.ac: Remove check for strerror_r.
4502
4503 2019-10-31 Christian Biesinger <cbiesinger@google.com>
4504
4505 * config.in: Regenerate.
4506 * configure: Regenerate.
4507 * configure.ac: Also check for strerror_r.
4508
4509 2019-10-31 Christian Biesinger <cbiesinger@google.com>
4510
4511 * ax.h (debug_agent): Remove duplicate declaration.
4512
4513 2019-10-26 Tom de Vries <tdevries@suse.de>
4514
4515 * linux-aarch64-low.c: Fix typos in comments.
4516 * linux-arm-low.c: Same.
4517 * linux-low.c: Same.
4518 * linux-ppc-low.c: Same.
4519 * proc-service.c: Same.
4520 * regcache.h: Same.
4521 * server.c: Same.
4522 * tracepoint.c: Same.
4523 * win32-low.c: Same.
4524
4525 2019-10-25 Tom Tromey <tromey@adacore.com>
4526
4527 * utils.c (xstrdup): Remove.
4528
4529 2019-10-23 Tom Tromey <tom@tromey.com>
4530
4531 * configure, config.in: Rebuild.
4532
4533 2019-10-23 Tom Tromey <tom@tromey.com>
4534
4535 * configure: Rebuild.
4536 * acinclude.m4: Use m4_include, not sinclude.
4537
4538 2019-10-17 Tom Tromey <tromey@adacore.com>
4539
4540 * configure: Rebuild.
4541 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
4542 in AC_CONFIG_FILES invocation.
4543 * Makefile.in (stamp-h, Makefile): Use new-style config.status
4544 invocation.
4545
4546 2019-10-16 Christian Biesinger <cbiesinger@google.com>
4547
4548 * server.c: Include xml-builtin.h.
4549 (get_xml_features): Don't declare xml_builtins here.
4550
4551 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4552
4553 * Makefile.in: Remove references to vec-ipa.o.
4554
4555 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4556
4557 * Makefile.in: Remove references to vec.c.
4558
4559 2019-10-02 Christian Biesinger <cbiesinger@google.com>
4560
4561 * server.c (server_waiting): Change to bool.
4562 (extended_protocol): Likewise.
4563 (response_needed): Likewise.
4564 (exit_requested): Likewise.
4565 (run_once): Likewise.
4566 (report_no_resumed): Likewise.
4567 (non_stop): Likewise.
4568 (disable_packet_vCont): Likewise.
4569 (disable_packet_Tthread): Likewise.
4570 (disable_packet_qC): Likewise.
4571 (disable_packet_qfThreadInfo): Likewise.
4572 (handle_general_set): Update.
4573 (handle_detach): Update.
4574 (handle_monitor_command): Update.
4575 (handle_query): Update.
4576 (captured_main): Update.
4577 (process_serial_event): Update.
4578 * server.h (server_waiting): Change to bool.
4579 (disable_packet_vCont): Likewise.
4580 (disable_packet_Tthread): Likewise.
4581 (disable_packet_qC): Likewise.
4582 (disable_packet_qfThreadInfo): Likewise.
4583 (run_once): Likewise.
4584 (non_stop): Likewise.
4585 * target.c (target_stop_and_wait): Update.
4586
4587 2019-10-02 Tom Tromey <tromey@adacore.com>
4588
4589 * Makefile.in (SFILES): Add common-inferior.c.
4590 (OBS): Add common-inferior.o.
4591 * server.c (startup_with_shell): Don't define.
4592
4593 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
4594
4595 * linux-low.c (linux_low_read_btrace): Update for change to
4596 std::vector.
4597
4598 2019-09-20 Christian Biesinger <cbiesinger@google.com>
4599
4600 * debug.c (debug_threads): Remove comment in favor of the header.
4601 * debug.h (using_threads): Add declaration.
4602 (debug_threads): Add comment.
4603 * linux-aarch64-low.c: Include debug.h and remove declaration of
4604 debug_threads.
4605 * nto-low.c: Likewise.
4606 * remote-utils.c: Likewise.
4607 * thread-db.c: Likewise.
4608
4609 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
4610
4611 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
4612 and powerpc-cell64l-ipa.o.
4613 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
4614 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
4615 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
4616 (spu*-*-*): Remove.
4617
4618 * spu-low.c: Remove file.
4619
4620 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
4621 (parse_spufs_run): Remove.
4622 (ppc_get_pc): Remove Cell/B.E. support.
4623 (ppc_set_pc): Likewise.
4624 (ppc_breakpoint_at): Likewise.
4625 (ppc_arch_setup): Likewise.
4626 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
4627 tdesc_powerpc_cell32l.
4628 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
4629 or init_registers_powerpc_cell32l.
4630 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
4631 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
4632 or init_registers_powerpc_cell32l.
4633 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
4634 (init_registers_powerpc_cell32l): Remove prototype.
4635 (init_registers_powerpc_cell64l): Likewise.
4636
4637 * target.h (struct target_ops): Remove qxfer_spu member.
4638 * server.c (handle_qxfer_spu): Remove.
4639 (qxfer_packets): Remove entry for "spu".
4640 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
4641 * linux-low.c (SPUFS_MAGIC): Remove.
4642 (spu_enumerate_spu_ids): Remove.
4643 (linux_qxfer_spu): Remove.
4644 (linux_target_ops): Remove qxfer_spu member.
4645 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
4646 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
4647 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
4648
4649 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4650
4651 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
4652 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
4653 * config.in: Regenerate.
4654 * configure: Regenerate.
4655
4656 2019-08-15 Tom Tromey <tromey@adacore.com>
4657
4658 * target.c (target_write_memory): Use gdb::byte_vector.
4659
4660 2019-08-15 Tom Tromey <tromey@adacore.com>
4661
4662 * tracepoint.c (write_inferior_data_pointer)
4663 (write_inferior_integer, write_inferior_int8)
4664 (write_inferior_uinteger, m_tracepoint_action_download)
4665 (r_tracepoint_action_download, x_tracepoint_action_download)
4666 (l_tracepoint_action_download, clear_inferior_trace_buffer)
4667 (download_agent_expr, download_tracepoint_1)
4668 (download_trace_state_variables, upload_fast_traceframes): Update.
4669 * server.c (gdb_write_memory): Update.
4670 * remote-utils.c (relocate_instruction): Update.
4671 * proc-service.c (ps_pdwrite): Update.
4672 * mem-break.c (remove_memory_breakpoint)
4673 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
4674 (uninsert_fast_tracepoint_jumps_at)
4675 (reinsert_fast_tracepoint_jumps_at): Update.
4676 * linux-x86-low.c (append_insns)
4677 (i386_install_fast_tracepoint_jump_pad)
4678 (amd64_write_goto_address, i386_write_goto_address): Update.
4679 * linux-s390-low.c (append_insns, s390_write_goto_address):
4680 Update.
4681 * linux-ppc-low.c (ppc_relocate_instruction)
4682 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
4683 (ppc_write_goto_address): Update.
4684 * linux-aarch64-low.c (append_insns): Update.
4685 * target.h (struct target_ops): Update.
4686 (write_inferior_memory): Don't declare.
4687 * target.c (target_write_memory): Rename from
4688 write_inferior_memory. Remove old target_write_memory.
4689
4690 2019-08-15 Tom Tromey <tromey@adacore.com>
4691
4692 * target.c (write_inferior_memory): Use std::vector.
4693
4694 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
4695
4696 PR build/24886
4697 * configure.ac: Drop enable-libmcheck support.
4698 * configure, config.in: Rebuild.
4699 * acinclude.m4: Don't include it.
4700
4701 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4702
4703 * configure.srv: Remove Arm xml files.
4704
4705 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4706
4707 * configure.srv: Add new files. Remove xml generated files.
4708 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
4709 registers.
4710 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
4711 * linux-aarch32-tdesc.c: New file.
4712 * linux-aarch32-tdesc.h: New file.
4713 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
4714 * linux-arm-low.c (init_registers_arm, tdesc_arm)
4715 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
4716 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
4717 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
4718 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
4719 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
4720 (arm_read_description): Call arm_linux_read_description.
4721 (initialize_low_arch): Don't init registers.
4722 * linux-arm-tdesc.c: New file.
4723 * linux-arm-tdesc.h: New file.
4724
4725 2019-07-10 Alan Hayward <alan.hayward@arm.com>
4726
4727 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
4728 Move counter inside for.
4729 (arm_read_description): Check ptrace earlier.
4730 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
4731
4732 2019-07-09 Tom Tromey <tom@tromey.com>
4733
4734 * configure: Rebuild.
4735 * configure.ac: Change common to gdbsupport.
4736 * acinclude.m4: Change common to gdbsupport.
4737 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
4738 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
4739 common to gdbsupport.
4740 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
4741 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
4742 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
4743 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
4744 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
4745 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
4746 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
4747 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
4748 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
4749 common to gdbsupport.
4750
4751 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4752
4753 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
4754 defines.
4755 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
4756
4757 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4758
4759 * configure.srv: Remove legacy xml.
4760 * linux-aarch64-low.c (initialize_low_arch): Remove
4761 initialize_low_tdesc call.
4762 * linux-aarch64-tdesc-selftest.c: Remove file.
4763 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
4764 * linux-x86-low.c (initialize_low_arch): Remove
4765 initialize_low_tdesc call.
4766 * linux-x86-tdesc-selftest.c: Remove file.
4767 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
4768
4769 2019-06-20 Tom de Vries <tdevries@suse.de>
4770
4771 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
4772 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
4773
4774 2019-06-19 Tom de Vries <tdevries@suse.de>
4775
4776 * debug.h (debug_write): Change return type to ssize_t.
4777 * debug.c (debug_write): Same.
4778
4779 2019-06-14 Tom Tromey <tom@tromey.com>
4780
4781 * configure.ac: Use new path to gnulib.
4782 * configure: Rebuild.
4783 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
4784 to gnulib.
4785
4786 2019-06-11 Tom Tromey <tom@tromey.com>
4787
4788 * Makefile.in (SFILES): Add alloc.c.
4789 (OBS): Add alloc.o.
4790 (IPA_OBJS): Add alloc-ipa.o.
4791 (alloc-ipa.o): New target.
4792 (%.o: ../%.c): New pattern rule.
4793
4794 2019-06-10 Tom Tromey <tromey@adacore.com>
4795
4796 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
4797 end warning with a newline.
4798 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
4799 newline.
4800 * thread-db.c (attach_thread): Don't end warning with a newline.
4801 (thread_db_notice_clone): Likewise.
4802 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
4803 newline.
4804 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
4805 end warning with a newline.
4806
4807 2019-06-04 Pedro Alves <palves@redhat.com>
4808
4809 * server.c (captured_main): Use make_unique_xstrdup.
4810
4811 2019-06-02 Tom Tromey <tom@tromey.com>
4812
4813 * gdbreplay.c (fromhex): Remove.
4814 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
4815
4816 2019-05-29 Tom Tromey <tromey@adacore.com>
4817
4818 * configure: Rebuild.
4819
4820 2019-05-06 Kevin Buettner <kevinb@redhat.com>
4821
4822 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
4823 sign extension code on 32-bit builds.
4824
4825 2019-05-03 Eli Zaretskii <eliz@gnu.org>
4826
4827 * remote-utils.c:
4828 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
4829
4830 2019-04-19 Tom Tromey <tom@tromey.com>
4831
4832 * server.c (struct vstop_notif): Derive from notif_event.
4833 <base>: Remove.
4834 (queue_stop_reply): Update.
4835 (remove_all_on_match_ptid): Change type. Rewrite.
4836 (discard_queued_stop_replies): Rewrite.
4837 (in_queued_stop_replies_ptid): Change type.
4838 (in_queued_stop_replies): Rewrite.
4839 (notif_stop): Update.
4840 (queue_stop_reply_callback): Update.
4841 (captured_main): Don't call initialize_notif.
4842 (push_stop_notification): Update.
4843 * notif.c (notif_write_event, handle_notif_ack)
4844 (notif_event_enque, notif_push): Update.
4845 (notif_event_xfree, initialize_notif): Remove.
4846 * notif.h (struct notif_event): Include <list>, not
4847 "common/queue.h".
4848 (struct notif_server) <queue>: Now a std::list.
4849 (notif_event_p): Remove typedef.
4850 (initialize_notif): Don't declare.
4851 (struct notif_event): Add virtual destructor.
4852
4853 2019-04-17 Alan Hayward <alan.hayward@arm.com>
4854
4855 * ax.c (ax_vdebug): Call debug_printf.
4856 * debug.c (debug_write): New function.
4857 * debug.h (debug_write): New declaration.
4858 * linux-low.c (sigchld_handler): Call debug_write.
4859
4860 2019-04-17 Alan Hayward <alan.hayward@arm.com>
4861
4862 * debug.c (debug_set_output): New function.
4863 (debug_vprintf): Send output to debug_file.
4864 (debug_flush): Likewise.
4865 * debug.h (debug_set_output): New declaration.
4866 * server.c (handle_monitor_command): Add debug-file option.
4867 (captured_main): Likewise.
4868
4869 2019-04-17 Alan Hayward <alan.hayward@arm.com>
4870
4871 * debug.c (remote_debug): Add definition.
4872 * debug.h (remote_debug): Add declaration.
4873 * hostio.c (remote_debug): Remove declaration.
4874 * remote-utils.c (struct ui_file): Likewise.
4875 (remote_debug): Likewise.
4876 * remote-utils.h (remote_debug): Likewise,
4877 * server.c (remote_debug): Remove definition.
4878
4879 2019-04-10 Kevin Buettner <kevinb@redhat.com>
4880
4881 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
4882 when using a 64-bit gdbserver.
4883
4884 2019-04-09 Tom Tromey <tromey@adacore.com>
4885
4886 * linux-low.c (select_event_lwp): Use find_thread_in_random.
4887
4888 2019-04-08 Tom Tromey <tom@tromey.com>
4889
4890 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
4891 throw.
4892 (linux_resume_one_lwp): Likewise.
4893
4894 2019-04-08 Tom Tromey <tom@tromey.com>
4895
4896 * gdbreplay.c: Update.
4897 * linux-low.c: Update.
4898 * server.c: Update.
4899
4900 2019-04-08 Tom Tromey <tom@tromey.com>
4901
4902 * server.c: Use C++ exception handling.
4903 * linux-low.c: Use C++ exception handling.
4904 * gdbreplay.c: Use C++ exception handling.
4905
4906 2019-04-08 Tom Tromey <tom@tromey.com>
4907
4908 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
4909 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
4910 (captured_main, main): Update.
4911 * gdbreplay.c (main): Update.
4912
4913 2019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4914
4915 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
4916 value in argument pointer, return 1 if the entry is found and 0
4917 otherwise. Move comment.
4918 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
4919 * linux-low.h (linux_get_auxv): Declare.
4920 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
4921
4922 2019-04-05 Tom Tromey <tromey@adacore.com>
4923
4924 * server.c (gdbserver_usage): Use upper-case for metasyntactic
4925 variables.
4926
4927 2019-03-28 Alan Hayward <alan.hayward@arm.com>
4928
4929 * linux-low.c (AT_HWCAP2): Add define if not already included.
4930
4931 2019-03-26 Alan Hayward <alan.hayward@arm.com>
4932
4933 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
4934 (aarch64_arch_setup): Call linux_get_hwcap.
4935 * linux-arm-low.c (arm_get_hwcap): Remove function.
4936 (arm_read_description): Call linux_get_hwcap.
4937 * linux-low.c (linux_get_auxv): New function.
4938 (linux_get_hwcap): Likewise.
4939 (linux_get_hwcap2): Likewise.
4940 * linux-low.h (linux_get_hwcap): New declaration.
4941 (linux_get_hwcap2): Likewise.
4942 * linux-ppc-low.c (ppc_get_auxv): Remove function.
4943 (ppc_arch_setup): Call linux_get_hwcap.
4944 * linux-s390-low.c (s390_get_hwcap): Remove function.
4945 (s390_arch_setup): Call linux_get_hwcap.
4946
4947 2019-03-22 Alan Hayward <alan.hayward@arm.com>
4948 Jiong Wang <jiong.wang@arm.com>
4949
4950 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
4951 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
4952 to fail.
4953 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
4954
4955 2019-03-22 Alan Hayward <alan.hayward@arm.com>
4956 Jiong Wang <jiong.wang@arm.com>
4957
4958 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
4959 (aarch64_get_hwcap): New function.
4960 (aarch64_arch_setup): Read APIA hwcap.
4961
4962 2019-03-22 Alan Hayward <alan.hayward@arm.com>
4963 Jiong Wang <jiong.wang@arm.com>
4964
4965 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
4966 (initialize_low_tracepoint): Likewise.
4967 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
4968 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
4969 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
4970 (aarch64_linux_read_description): Likewise.
4971 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
4972
4973 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4974
4975 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
4976 i386_create_target_description for 'segments' parameter.
4977 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
4978 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
4979 * win32-i386-low.c (i386_arch_setup): Likewise.
4980
4981 2019-03-12 Tom Tromey <tromey@adacore.com>
4982
4983 * linux-low.c (iterate_over_lwps): Update.
4984
4985 2019-03-06 Tom Tromey <tom@tromey.com>
4986
4987 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
4988 (captured_main): Use SCOPE_EXIT.
4989
4990 2019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
4991
4992 * configure.srv: Use '$enable_unittest' instead of '$development'
4993 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
4994 case.
4995
4996 2019-02-27 Tom Tromey <tromey@adacore.com>
4997
4998 * gdbreplay.c (logchar): Handle \r\n.
4999
5000 2019-02-07 Alan Hayward <alan.hayward@arm.com>
5001
5002 * linux-low.c (linux_attach): Add process before lwp.
5003 * server.c (attach_inferior): Check if already attached.
5004
5005 2019-02-07 Tom Tromey <tom@tromey.com>
5006
5007 * x86-tdesc.h: Rename include guard.
5008 * x86-low.h: Add include guard.
5009 * wincecompat.h: Rename include guard.
5010 * win32-low.h: Add include guard.
5011 * utils.h: Rename include guard.
5012 * tracepoint.h: Rename include guard.
5013 * tdesc.h: Rename include guard.
5014 * target.h: Rename include guard.
5015 * server.h: Rename include guard.
5016 * remote-utils.h: Rename include guard.
5017 * regcache.h: Rename include guard.
5018 * nto-low.h: Rename include guard.
5019 * notif.h: Add include guard.
5020 * mem-break.h: Rename include guard.
5021 * lynx-low.h: Add include guard.
5022 * linux-x86-tdesc.h: Add include guard.
5023 * linux-s390-tdesc.h: Add include guard.
5024 * linux-ppc-tdesc-init.h: Add include guard.
5025 * linux-low.h: Add include guard.
5026 * linux-aarch64-tdesc.h: Add include guard.
5027 * linux-aarch32-low.h: Add include guard.
5028 * inferiors.h: Rename include guard.
5029 * i387-fp.h: Rename include guard.
5030 * hostio.h: Rename include guard.
5031 * gdbthread.h: Rename include guard.
5032 * gdb_proc_service.h: Rename include guard.
5033 * event-loop.h: Rename include guard.
5034 * dll.h: Rename include guard.
5035 * debug.h: Rename include guard.
5036 * ax.h: Rename include guard.
5037
5038 2018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
5039
5040 PR gdb/23985
5041 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
5042 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
5043
5044 2019-01-25 Tom Tromey <tom@tromey.com>
5045
5046 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
5047
5048 2019-01-25 Tom Tromey <tom@tromey.com>
5049
5050 * win32-low.c: Fix common/ includes.
5051 * win32-i386-low.c: Fix common/ includes.
5052 * tracepoint.c: Fix common/ includes.
5053 * thread-db.c: Fix common/ includes.
5054 * target.h: Fix common/ includes.
5055 * symbol.c: Fix common/ includes.
5056 * spu-low.c: Fix common/ includes.
5057 * server.h: Fix common/ includes.
5058 * server.c: Fix common/ includes.
5059 * remote-utils.c: Fix common/ includes.
5060 * regcache.h: Fix common/ includes.
5061 * regcache.c: Fix common/ includes.
5062 * nto-x86-low.c: Fix common/ includes.
5063 * notif.h: Fix common/ includes.
5064 * mem-break.h: Fix common/ includes.
5065 * lynx-low.c: Fix common/ includes.
5066 * lynx-i386-low.c: Fix common/ includes.
5067 * linux-x86-tdesc-selftest.c: Fix common/ includes.
5068 * linux-x86-low.c: Fix common/ includes.
5069 * linux-low.c: Fix common/ includes.
5070 * inferiors.h: Fix common/ includes.
5071 * i387-fp.c: Fix common/ includes.
5072 * hostio.c: Fix common/ includes.
5073 * hostio-errno.c: Fix common/ includes.
5074 * gdbthread.h: Fix common/ includes.
5075 * gdbreplay.c: Fix common/ includes.
5076 * fork-child.c: Fix common/ includes.
5077 * event-loop.c: Fix common/ includes.
5078 * ax.c:
5079 (enum gdb_agent_op): Fix common/ includes.
5080
5081 2019-01-21 Tom Tromey <tom@tromey.com>
5082
5083 * tracepoint.c: Fix includes.
5084 * remote-utils.c: Fix includes.
5085 * linux-x86-low.c: Fix includes.
5086
5087 2019-01-01 Joel Brobecker <brobecker@adacore.com>
5088
5089 * gdbreplay.c (gdbreplay_version): Update copyright year in
5090 version message.
5091 * server.c (gdbserver_version): Likewise.
5092
5093 2018-12-05 Alan Hayward <alan.hayward@arm.com>
5094
5095 * linux-low.c (add_lwp): Switch ordering.
5096
5097 2018-11-29 Tom Tromey <tom@tromey.com>
5098
5099 * win32-low.c (win32_join): Take pid, not process.
5100 * target.h (struct target_ops) <join>: Change argument type.
5101 (join_inferior): Change argument name.
5102 * spu-low.c (spu_join): Take pid, not process.
5103 * server.c (handle_detach): Preserve pid before destroying
5104 process.
5105 * lynx-low.c (lynx_join): Take pid, not process.
5106 * linux-low.c (linux_join): Take pid, not process.
5107
5108 2018-11-23 Alan Hayward <alan.hayward@arm.com>
5109
5110 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
5111 (aarch64_cannot_fetch_register): Likewise.
5112 (struct linux_target_ops): Update references.
5113
5114 2018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5115
5116 * linux-ppc-low.c: Include nat/linux-ptrace.h.
5117
5118 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5119
5120 * configure.srv (ipa_ppc_linux_regobj): Add
5121 powerpc-isa207-htm-vsx32l-ipa.o and
5122 powerpc-isa207-htm-vsx64l-ipa.o.
5123 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
5124 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
5125 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
5126 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
5127 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
5128 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
5129 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
5130 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
5131 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5132 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
5133 (init_registers_powerpc_isa207_htm_vsx32l)
5134 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
5135 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
5136 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
5137 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
5138 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
5139 (ppc_store_tm_ctarregset): New functions.
5140 (ppc_regsets): Add entries for HTM regsets.
5141 (ppc_arch_setup): Set htm in features struct when needed. Set
5142 sizes for the HTM regsets.
5143 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
5144 (initialize_low_arch): Call
5145 init_registers_powerpc_isa207_htm_vsx32l and
5146 init_registers_powerpc_isa207_htm_vsx64l.
5147 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5148 PPC_TDESC_ISA207_HTM_VSX.
5149 (initialize_low_tracepoint): Call
5150 init_registers_powerpc_isa207_htm_vsx32l and
5151 init_registers_powerpc_isa207_htm_vsx64l.
5152
5153 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5154
5155 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
5156 rs6000/power-linux-pmu.xml to srv_xmlfiles.
5157 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
5158 (ppc_store_pmuregset): New functions.
5159 (ppc_regsets): Add entries for ebb and pmu regsets.
5160 (ppc_arch_setup): Set isa207 in features struct if the ebb and
5161 pmu regsets are available. Set sizes for these regsets.
5162
5163 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5164
5165 * configure.srv (ipa_ppc_linux_regobj): Add
5166 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
5167 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
5168 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
5169 rs6000/powerpc-isa207-vsx32l.xml, and
5170 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
5171 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5172 <PPC_TDESC_ISA207_VSX>: New enum value.
5173 (init_registers_powerpc_isa207_vsx32l): Declare.
5174 (init_registers_powerpc_isa207_vsx64l): Declare.
5175 * linux-ppc-low.c (ppc_fill_tarregset): New function.
5176 (ppc_store_tarregset): New function.
5177 (ppc_regsets): Add entry for the TAR regset.
5178 (ppc_arch_setup): Set isa207 in features struct when needed. Set
5179 size for the TAR regsets.
5180 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
5181 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
5182 and init_registers_powerpc_isa207_vsx64l.
5183 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
5184 (initialize_low_tracepoint): Call
5185 init_registers_powerpc_isa207_vsx32l and
5186 init_registers_powerpc_isa207_vsx64l.
5187
5188 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5189 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5190
5191 * configure.srv (ipa_ppc_linux_regobj): Add
5192 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
5193 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
5194 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
5195 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
5196 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
5197 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
5198 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
5199 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5200 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
5201 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
5202 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
5203 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
5204 (ppc_hwcap): Add comment.
5205 (ppc_hwcap2): New global.
5206 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
5207 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
5208 (ppc_regsets): Add entries for the DSCR and PPR regsets.
5209 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
5210 when needed. Set sizes for the the DSCR and PPR regsets.
5211 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
5212 (initialize_low_arch): Call
5213 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5214 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5215 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5216 PPC_TDESC_ISA205_PPR_DSCR_VSX.
5217 (initialize_low_tracepoint): Call
5218 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5219 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5220
5221 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5222
5223 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
5224
5225 2018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
5226 Simon Marchi <simark@simark.ca>
5227
5228 * acinclude.m4: Include "../selftest.m4".
5229 * configure: Regenerate.
5230 * configure.ac: Use "GDB_AC_SELFTEST".
5231 * configure.srv: Use "$enable_unittests" instead of
5232 "$development" when checking whether unit tests have been
5233 enabled.
5234 * server.c (captured_main): Update message informing that
5235 selftests have been disabled.
5236
5237 2018-10-04 Tom Tromey <tom@tromey.com>
5238
5239 * configure: Rebuild.
5240
5241 2018-10-04 Tom Tromey <tom@tromey.com>
5242
5243 * server.c (handle_status): Rename inner "thread".
5244 (process_serial_event): Declare "res" in 'm' case.
5245 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
5246 (iterate_over_lwps): Rename inner "thread".
5247 (linux_qxfer_libraries_svr4): Rename inner "len".
5248 * gdbthread.h (find_thread_in_random): Rename inner "thread".
5249
5250 2018-10-01 Gary Benson <gbenson@redhat.com>
5251
5252 * gdb_proc_service.h: Moved common code to
5253 common/gdb_proc_service.h.
5254
5255 2018-10-01 Gary Benson <gbenson@redhat.com>
5256
5257 * gdb_proc_service.h: Synchronize comments and whitespace with
5258 GDB's version of this file.
5259
5260 2018-09-25 Tom Tromey <tom@tromey.com>
5261
5262 * configure: Rebuild.
5263 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
5264
5265 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5266
5267 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
5268 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
5269 ($(IPA_LIB)): Sort IPA_OBJS.
5270
5271 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5272
5273 * Makefile.in: Remove references to $(ADD_DEPS).
5274
5275 2018-09-16 Tom Tromey <tom@tromey.com>
5276
5277 * remote-utils.c (remote_open): Use GNU style for metasyntactic
5278 variables.
5279 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
5280 variables.
5281
5282 2018-09-05 Tom Tromey <tom@tromey.com>
5283
5284 * configure: Rebuild.
5285
5286 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
5287
5288 PR build/23399
5289 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
5290
5291 2018-08-27 Tom Tromey <tom@tromey.com>
5292
5293 PR build/23087:
5294 * configure: Rebuild.
5295
5296 2018-08-27 Tom Tromey <tom@tromey.com>
5297
5298 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
5299 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
5300 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
5301 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
5302 (s390x_emit_stack_adjust): Add casts to unsigned char.
5303
5304 2018-08-22 Simon Marchi <simon.marchi@ericsson.com>
5305
5306 PR gdb/23374
5307 PR gdb/23375
5308 * server.h (struct client_state) <disable_randomization>:
5309 Initialize to 1.
5310
5311 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5312
5313 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
5314 variable.
5315 (mips_supply_ptrace_register): Likewise.
5316
5317 2018-07-22 Tom Tromey <tom@tromey.com>
5318
5319 * configure: Rebuild.
5320
5321 2018-07-22 Tom Tromey <tom@tromey.com>
5322
5323 * win32-low.c (win32_create_inferior): Remove unused variables.
5324 * gdbreplay.c (remote_open): Remove unused variable.
5325 * remote-utils.c (remote_prepare): Remove unused variable.
5326 * x86-tdesc.h (X86_TDESC_H): Define.
5327 (amd64_expedite_regs): Define conditionally.
5328 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
5329 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
5330 * remote-utils.c (readchar): Remove unused variable.
5331
5332 2018-07-13 Pedro Alves <palves@redhat.com>
5333
5334 * linux-low.c (linux_kill): Change parameter to process_info
5335 pointer instead of pid. Adjust.
5336 * lynx-low.c (lynx_kill): Likewise.
5337 * nto-low.c (nto_kill): Likewise.
5338 * spu-low.c (spu_kill): Likewise.
5339 * win32-low.c (win32_kill): Likewise.
5340 * server.c (handle_v_kill, kill_inferior_callback)
5341 (detach_or_kill_for_exit): Adjust.
5342 * target.c (kill_inferior): Change parameter to process_info
5343 pointer instead of pid. Adjust.
5344 * target.h (struct target_ops) <kill>: Change parameter to
5345 process_info pointer instead of pid. Adjust all implementations
5346 and callers.
5347 (kill_inferior): Likewise.
5348
5349 2018-07-13 Pedro Alves <palves@redhat.com>
5350
5351 * linux-low.c (linux_detach, linux_join): Change parameter to
5352 process_info pointer instead of pid. Adjust.
5353 * lynx-low.c (lynx_detach, lynx_join): Likewise.
5354 * nto-low.c (nto_detach): Likewise.
5355 * spu-low.c (spu_detach, spu_join): Likewise.
5356 * win32-low.c (win32_detach, win32_join): Likewise.
5357 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
5358 * target.h (struct target_ops) <detach, join>: Change parameter to
5359 process_info pointer instead of pid. Adjust all implementations
5360 and callers.
5361 (detach_inferior, join_inferior): Rename 'pid' parameter to
5362 'proc'.
5363
5364 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
5365 Jan Kratochvil <jan.kratochvil@redhat.com>
5366 Paul Fertser <fercerpav@gmail.com>
5367 Tsutomu Seki <sekiriki@gmail.com>
5368
5369 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
5370 (OBS): Add 'common/netstuff.o'.
5371 (GDBREPLAY_OBS): Likewise.
5372 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
5373 (remote_open): Implement support for IPv6
5374 connections.
5375 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
5376 and 'wspiapi.h'.
5377 (handle_accept_event): Accept connections from IPv6 sources.
5378 (remote_prepare): Handle IPv6-style hostnames; implement
5379 support for IPv6 connections.
5380 (remote_open): Implement support for printing connections from
5381 IPv6 sources.
5382
5383 2018-07-11 Pedro Alves <palves@redhat.com>
5384
5385 PR gdb/23377
5386 * mem-break.c (any_persistent_commands): Add process_info
5387 parameter and use it instead of relying on the current process.
5388 Change return type to bool.
5389 * mem-break.h (any_persistent_commands): Add process_info
5390 parameter and change return type to bool.
5391 * server.c (handle_detach): Remove require_running_or_return call.
5392 Look up the process_info for the process we're about to detach.
5393 If not found, return back error to GDB. Adjust
5394 any_persistent_commands call to pass down a process pointer.
5395
5396 2018-07-11 Pedro Alves <palves@redhat.com>
5397
5398 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
5399 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
5400 instead of collect_register_by_name.
5401 * regcache.c (regcache_raw_get_unsigned_by_name): New.
5402 * regcache.h (regcache_raw_get_unsigned_by_name): New.
5403
5404 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
5405 Pedro Alves <palves@redhat.com>
5406
5407 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
5408
5409 2018-07-03 Tom Tromey <tom@tromey.com>
5410
5411 * linux-low.c: Update.
5412 * lynx-low.c: Update.
5413 * mem-break.c: Update.
5414 * nto-low.c: Update.
5415 * remote-utils.c: Update.
5416 * server.c: Update.
5417 * spu-low.c: Update.
5418 * target.c: Update.
5419 * win32-low.c: Update.
5420
5421 2018-07-03 Tom Tromey <tom@tromey.com>
5422
5423 * server.c: Update.
5424
5425 2018-07-03 Tom Tromey <tom@tromey.com>
5426
5427 * linux-low.c: Update.
5428
5429 2018-07-03 Tom Tromey <tom@tromey.com>
5430
5431 * target.c: Update.
5432
5433 2018-07-03 Tom Tromey <tom@tromey.com>
5434
5435 * linux-low.c: Update.
5436 * linux-mips-low.c: Update.
5437 * lynx-low.c: Update.
5438 * nto-low.c: Update.
5439 * remote-utils.c: Update.
5440 * server.c: Update.
5441 * spu-low.c: Update.
5442 * target.c: Update.
5443 * thread-db.c: Update.
5444
5445 2018-07-03 Tom Tromey <tom@tromey.com>
5446
5447 * linux-low.c: Update.
5448 * linux-mips-low.c: Update.
5449 * lynx-low.c: Update.
5450 * mem-break.c: Update.
5451 * nto-low.c: Update.
5452 * remote-utils.c: Update.
5453 * server.c: Update.
5454 * spu-low.c: Update.
5455 * target.c: Update.
5456 * tracepoint.c: Update.
5457
5458 2018-07-03 Tom Tromey <tom@tromey.com>
5459
5460 * linux-low.c: Update.
5461 * linux-ppc-low.c: Update.
5462 * linux-x86-low.c: Update.
5463 * proc-service.c: Update.
5464 * server.c: Update.
5465 * spu-low.c: Update.
5466 * thread-db.c: Update.
5467 * win32-low.c: Update.
5468
5469 2018-07-03 Tom Tromey <tom@tromey.com>
5470
5471 * linux-low.c: Update.
5472 * lynx-low.c: Update.
5473 * nto-low.c: Update.
5474 * remote-utils.c: Update.
5475 * spu-low.c: Update.
5476 * thread-db.c: Update.
5477 * win32-low.c: Update.
5478
5479 2018-06-29 Joel Brobecker <brobecker@adacore.com>
5480
5481 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
5482 parameter in call to 'amd64_create_target_description'.
5483
5484 2018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5485
5486 * x86-tdesc.h: Remove executable permission flag.
5487
5488 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5489
5490 * configure.ac: Remove AC_PREREQ, add missing quoting.
5491 * configure: Re-generate.
5492 * config.in: Re-generate.
5493 * aclocal.m4: Re-generate.
5494
5495 2018-06-18 Simon Marchi <simon.marchi@ericsson.com>
5496
5497 * tracepoint.h (current_traceframe): Remove declaration.
5498
5499 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5500
5501 * linux-aarch64-low.c (is_sve_tdesc): New function.
5502 (aarch64_sve_regs_copy_to_regcache): Likewise.
5503 (aarch64_sve_regs_copy_from_regcache): Likewise.
5504 (aarch64_regs_info): Add SVE checks.
5505 (initialize_low_arch): Initialize SVE.
5506
5507 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5508
5509 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
5510
5511 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5512
5513 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
5514 (initialize_low_tracepoint): Likewise
5515 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
5516 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
5517 param.
5518 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
5519 checks.
5520 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
5521
5522 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5523
5524 * server.h (PBUFSIZ): Increase size
5525
5526 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5527
5528 * regcache.c (regcache::raw_compare): New function.
5529 * regcache.h (regcache::raw_compare): New declaration.
5530
5531 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5532
5533 * regcache.c (new_register_cache): Use new.
5534 (free_register_cache): Use delete.
5535 (register_data): Use const.
5536 (supply_register): Move body inside regcache.
5537 (regcache::raw_supply): New override function.
5538 (collect_register): Move body inside regcache.
5539 (regcache::raw_collect): New override function.
5540 (regcache::get_register_status): New override function.
5541 * regcache.h (struct regcache): Inherit from reg_buffer_common.
5542
5543 2018-06-09 Tom Tromey <tom@tromey.com>
5544
5545 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
5546 declare queue.
5547 (event_queue): Use std::queue.
5548 (gdb_event_xfree): Remove.
5549 (initialize_event_loop, process_event, wait_for_event): Update.
5550
5551 2018-06-08 Stan Cox <scox@redhat.com>
5552
5553 * win32-low.c (win32_create_inferior): last_ptid and last_status
5554 moved to client_state.
5555
5556 2018-06-08 Pedro Alves <palves@redhat.com>
5557
5558 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
5559 common/common-exceptions.o, common/common-utils.o,
5560 common/errors.o, common/print-utils.o and utils.o.
5561 * gdbreplay.c: Include "common-defs.h" instead of the two
5562 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
5563 string.h or alloca.h.
5564 (perror_with_name): Delete.
5565 (remote_open): Use xstrdup instead of strdup.
5566 (main): Rename to ...
5567 (captured_main): ... this.
5568 (main): New.
5569
5570 2018-06-08 Tom Tromey <tom@tromey.com>
5571
5572 * linux-low.c (linux_low_read_btrace): Update.
5573
5574 2018-06-04 Stan Cox <scox@redhat.com>
5575
5576 * server.h (struct client_state): New.
5577 * server.c (cont_thread, general_thread, multi_process)
5578 (report_fork_events, report_vfork_events, report_exec_events)
5579 (report_thread_events, swbreak_feature, hwbreak_feature)
5580 (vCont_supported, disable_randomization, pass_signals)
5581 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
5582 Moved to client_state.
5583 * remote-utils.c (remote_debug, noack_mode)
5584 (transport_is_reliable): Moved to client_state.
5585 * tracepoint.c (current_traceframe): Moved to client_state.
5586
5587 Update all callers.
5588 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
5589 linux-low.c, remote-utils.h, target.c: Use client_state.
5590
5591 2018-05-31 Alan Hayward <alan.hayward@arm.com>
5592
5593 * configure.srv: Add new c/h file.
5594
5595 2018-05-31 Alan Hayward <alan.hayward@arm.com>
5596
5597 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
5598 null VQ.
5599
5600 2018-05-25 Maciej W. Rozycki <macro@mips.com>
5601
5602 * gdb.arch/mips-fpregset-core.exp: New test.
5603 * gdb.arch/mips-fpregset-core.c: New test source.
5604
5605 2018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
5606
5607 PR server/23198
5608 * hostio.c (require_int): Do not report overflow for integers
5609 between 0xfffffff and 0x7fffffff.
5610
5611 2018-05-22 Maciej W. Rozycki <macro@mips.com>
5612
5613 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
5614 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
5615 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
5616 functions.
5617 (the_low_target): Wire them.
5618
5619 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5620
5621 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
5622 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
5623 mode. Call collect_register_by_name with vscr using
5624 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
5625 (ppc_store_vrregset): Add and set vscr_offset variable as in
5626 ppc_fill_vrregset. Call supply_register_by_name with vscr using
5627 vscr_offset.
5628
5629 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5630
5631 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
5632 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
5633 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
5634
5635 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5636
5637 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
5638 (ppc_store_vsxregset): Likewise.
5639 (ppc_fill_vrregset): Likewise.
5640 (ppc_store_vrregset): Likewise.
5641 (ppc_fill_evrregset): Likewise.
5642 (ppc_store_evrregset): Likewise.
5643 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
5644 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
5645 needed.
5646
5647 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5648
5649 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
5650 wordsize of the inferior. Call ppc_linux_target_wordsize.
5651
5652 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5653
5654 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
5655 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
5656 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
5657 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
5658 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
5659 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
5660 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
5661 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
5662 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
5663 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
5664 (tdesc_powerpc_e500l): Remove.
5665 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
5666 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
5667 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
5668 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
5669 linux-ppc-tdesc.h.
5670 (ppc_arch_setup): Remove target description matching code. Fill a
5671 ppc_linux_features struct and call ppc_linux_match_description
5672 with it.
5673
5674 2018-05-22 Maciej W. Rozycki <macro@mips.com>
5675
5676 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
5677 width of the requested register exceeds the width of the
5678 `ptrace' data type.
5679 (mips_cannot_store_register): Likewise.
5680
5681 2018-05-21 Maciej W. Rozycki <macro@mips.com>
5682
5683 * linux-mips-low.c (mips_fetch_register): New function. Update
5684 preceding comment.
5685 (mips_store_gregset): Supply 0 rather than $restart for $zero.
5686 (the_low_target): Wire `mips_fetch_register'.
5687
5688 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5689
5690 * lynx-i386-low.c (LYNXOS_178): New macro.
5691 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
5692 the layout on LynxOS-178.
5693 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
5694 handle floating point registers that are not supported by
5695 LynxOS-178.
5696
5697 2018-05-10 Tom Tromey <tom@tromey.com>
5698
5699 * configure: Rebuild.
5700
5701 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5702
5703 PR server/23158:
5704 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
5705 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
5706 Use it to set the expedite_regs field in the given tdesc.
5707 * x86-tdesc.h: New file.
5708 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
5709 Adjust following the addition of the new expedite_regs parameter
5710 to init_target_desc.
5711 * linux-tic6x-low.c (tic6x_read_description): Likewise.
5712 * linux-x86-tdesc.c: #include "x86-tdesc.h".
5713 (i386_linux_read_description, amd64_linux_read_description):
5714 Adjust following the addition of the new expedite_regs parameter
5715 to init_target_desc.
5716 * lynx-i386-low.c: #include "x86-tdesc.h".
5717 (lynx_i386_arch_setup): Adjust following the addition of the new
5718 expedite_regs parameter to init_target_desc.
5719 * nto-x86-low.c: #include "x86-tdesc.h".
5720 (nto_x86_arch_setup): Adjust following the addition of the new
5721 expedite_regs parameter to init_target_desc.
5722 * win32-i386-low.c: #include "x86-tdesc.h".
5723 (i386_arch_setup): Adjust following the addition of the new
5724 expedite_regs parameter to init_target_desc.
5725
5726 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5727
5728 PR server/23158:
5729 * win32-low.c (win32_create_inferior): Add call to my_wait
5730 setting last_status global.
5731
5732 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5733
5734 PR server/23158:
5735 * win32-low.c (create_process): Only call gdb_tilde_expand if
5736 inferior_cwd is not NULL.
5737
5738 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
5739
5740 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
5741 registers to the cache if their values have changed.
5742 (i387_xsave_to_cache): Provide default values for x87 control
5743 registers when these features are available, but disabled.
5744 * regcache.c (supply_register_by_name_zeroed): New function.
5745 * regcache.h (supply_register_by_name_zeroed): Declare new
5746 function.
5747
5748 2018-05-07 Tom Tromey <tom@tromey.com>
5749
5750 * configure: Rebuild.
5751
5752 2018-05-04 Tom Tromey <tom@tromey.com>
5753
5754 * configure: Rebuild.
5755
5756 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5757 Pedro Alves <palves@redhat.com>
5758
5759 * linux-aarch64-low.c (aarch64_stopped_data_address):
5760 Likewise.
5761
5762 2018-04-27 Tom Tromey <tom@tromey.com>
5763
5764 * configure: Rebuild.
5765
5766 2018-04-23 Tom Tromey <tom@tromey.com>
5767
5768 * configure: Rebuild.
5769
5770 2018-04-19 Simon Marchi <simon.marchi@ericsson.com>
5771
5772 * Makefile.in (depcomp): Add "..".
5773 (all_deps_files): New and use it.
5774
5775 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5776
5777 * configure.srv (aarch64*-*-linux*): Don't include xml.
5778 (i[34567]86-*-cygwin*): Likewise.
5779 (i[34567]86-*-linux*): Likewise.
5780 (i[34567]86-*-lynxos*): Likewise.
5781 (i[34567]86-*-mingw32ce*): Likewise.
5782 (i[34567]86-*-mingw*): Likewise.
5783 (i[34567]86-*-nto*): Likewise.
5784 (tic6x-*-uclinux): Likewise.
5785 (x86_64-*-linux*): Likewise.
5786 (x86_64-*-mingw*): Likewise.
5787 (x86_64-*-cygwin*): Likewise.
5788
5789 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5790
5791 * tdesc.c: Remove xml parameter.
5792
5793 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5794
5795 * server.c (get_features_xml): Remove cast.
5796 * tdesc.c (void target_desc::accept): Fill in function.
5797 (tdesc_get_features_xml): Remove old xml creation.
5798 (print_xml_feature::visit_pre): Add xml vistor.
5799 * tdesc.h (struct target_desc): Make xmltarget mutable.
5800 (tdesc_get_features_xml): Remove declaration.
5801
5802 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5803
5804 * tdesc.c (tdesc_architecture_name): Add new function.
5805 (tdesc_osabi_name): Likewise.
5806 (tdesc_get_features_xml): Use new functions.
5807
5808 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5809
5810 * tdesc.c (tdesc_create_flags): Remove.
5811 (tdesc_add_flag): Likewise.
5812 (tdesc_named_type): Likewise.
5813 (tdesc_create_union): Likewise.
5814 (tdesc_create_struct): Likewise.
5815 (tdesc_create_vector): Likewise.
5816 (tdesc_add_bitfield): Likewise.
5817 (tdesc_add_field): Likewise.
5818 (tdesc_set_struct_size): Likewise.
5819
5820 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5821
5822 * tdesc.c (~target_desc): Remove implictly deleted items.
5823 (init_target_desc): Iterate all features.
5824 (tdesc_get_features_xml): Use vector.
5825 (tdesc_create_feature): Create feature.
5826 * tdesc.h (tdesc_feature) Remove
5827 (target_desc): Add features.
5828
5829 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5830
5831 * Makefile.in: Add common/tdesc.c
5832 * tdesc.c (init_target_desc): init all reg_defs from register
5833 vector.
5834 (tdesc_create_reg): Create tdesc_reg.
5835 * tdesc.h (tdesc_feature): Add register vector.
5836
5837 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
5838
5839 * tdesc.h (struct target_desc) <features>: Change type to
5840 std::vector<std::string>.
5841 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
5842 changes.
5843 (tdesc_get_features_xml): Likewise.
5844 (tdesc_create_feature): Likewise.
5845
5846 2018-03-26 Alan Hayward <alan.hayward@arm.com>
5847
5848 * regcache.c (find_register_by_number): Return a ref.
5849 (find_regno): Use references.
5850 (register_size): Likewise.
5851 (register_data): Likewise.
5852 * tdesc.c (target_desc::~target_desc): Remove free calls.
5853 (target_desc::operator==): Use std::vector compare.
5854 (init_target_desc): Use reference.
5855 (tdesc_create_reg): Use reg constructors.
5856 * tdesc.h (struct target_desc): Replace pointer with object.
5857
5858 2018-03-23 Alan Hayward <alan.hayward@arm.com>
5859
5860 * regcache.c (find_register_by_number): Make static.
5861 (find_regno): Use find_register_by_number
5862 * regcache.h (struct reg): Remove declaration.
5863
5864 2018-03-23 Alan Hayward <alan.hayward@arm.com>
5865
5866 * tdesc.c (target_desc::~target_desc): Move to here.
5867 (target_desc::operator==): Likewise.
5868 * tdesc.h (target_desc::~target_desc): Move from here.
5869 (target_desc::operator==): Likewise.
5870
5871 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
5872
5873 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
5874
5875 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5876
5877 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
5878 S390_TDESC_GS.
5879 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
5880 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
5881 and init_registers_s390_gs_linux64.
5882
5883 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5884
5885 * linux-s390-low.c (s390_fill_gs): Remove function.
5886 (s390_fill_gsbc): Remove function.
5887 (s390_regsets): Set fill functions for the guarded storage regsets
5888 to NULL.
5889
5890 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5891
5892 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
5893 the word size. Add comment.
5894 (s390_get_wordsize): New function.
5895 (s390_arch_setup): No longer select a temporary tdesc to fetch the
5896 pswm with it. Instead, use s390_get_wordsize to determine the
5897 word size first and derive the correct tdesc from that directly.
5898
5899 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
5900
5901 * Makefile.in: Include silent-rules.mk.
5902 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
5903 (COMPILE): Add ECHO_CXX.
5904 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
5905 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
5906 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
5907 (version-generated.c): Add ECHO_GEN.
5908 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
5909 (IPAGENT_COMPILE): Add ECHO_CXX.
5910 (%-generated.c): Add ECHO_REGDAT.
5911
5912 2018-03-14 Tom Tromey <tom@tromey.com>
5913
5914 PR cli/14977:
5915 * ax.c (ax_printf): Special case for NULL.
5916
5917 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
5918
5919 * linux-low.c (linux_qxfer_libraries_svr4): Use
5920 xml_escape_text_append.
5921
5922 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
5923
5924 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
5925
5926 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5927
5928 * server.c (handle_general_set): Remove unnecessary xstrdup.
5929
5930 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5931
5932 * server.c (parse_debug_format_options): Adjust to
5933 delim_string_to_char_ptr_vec changes.
5934 * thread-db.c (thread_db_load_search): Adjust to
5935 dirnames_to_char_ptr_vec changes.
5936
5937 2018-03-01 Markus Metzger <markus.t.metzger@intel.com>
5938
5939 * target.h (target_enable_btrace, target_disable_btrace)
5940 (target_read_btrace, target_read_btrace_conf): Turn macro into
5941 inline function. Throw error if target method is not defined.
5942 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
5943 check for btrace target method. Be prepared to handle exceptions
5944 from btrace target methods.
5945
5946 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5947
5948 * server.c (captured_main): Change order of error message printed
5949 when the current working directory cannot be found.
5950
5951 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5952
5953 * server.c: Include "filenames.h" and "pathstuff.h".
5954 (program_name): Delete variable.
5955 (program_path): New anonymous class.
5956 (get_exec_wrapper): Use "program_path" instead of
5957 "program_name".
5958 (handle_v_run): Likewise.
5959 (captured_main): Likewise.
5960 (process_serial_event): Likewise.
5961
5962 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5963
5964 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
5965 (OBJS): Add "pathstuff.o".
5966 * server.c (current_directory): New global variable.
5967 (captured_main): Initialize "current_directory".
5968
5969 2018-02-26 Alan Hayward <alan.hayward@arm.com>
5970
5971 * tdesc.c: Use common/tdesc.h.
5972 * tdesc.h: Likewise.
5973
5974 2018-02-20 Alan Hayward <alan.hayward@arm.com>
5975 Simon Marchi <simon.marchi@ericsson.com>
5976
5977 * Makefile.in: Switch order of make rules.
5978
5979 2018-02-19 Alan Hayward <alan.hayward@arm.com>
5980
5981 * Makefile.in: Add common directory in build.
5982 * configure.ac: Add common reference.
5983 * configure: Regenerate.
5984
5985 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
5986
5987 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
5988 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
5989 * spu-low.c (spu_target_ops): Likewise.
5990 * win32-low.c (win32_target_ops): Likewise.
5991 * server.c (supported_btrace_packets): Report packets unconditionally.
5992 * target.h (target_ops) <supports_btrace>: Remove.
5993 (target_supports_btrace): Remove.
5994
5995 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
5996
5997 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
5998 (handle_btrace_disable): Change return type to void. Use exceptions
5999 to report errors.
6000 (handle_btrace_general_set): Catch exception and copy message to
6001 return message.
6002
6003 2018-02-08 Tom Tromey <tom@tromey.com>
6004
6005 * linux-low.c (install_software_single_step_breakpoints): Use
6006 make_scoped_restore.
6007 * inferiors.c (make_cleanup_restore_current_thread): Remove.
6008 (do_restore_current_thread_cleanup): Remove.
6009 * gdbthread.h (make_cleanup_restore_current_thread): Don't
6010 declare.
6011
6012 2018-02-08 Tom Tromey <tom@tromey.com>
6013
6014 * mem-break.c (set_raw_breakpoint_at): Use
6015 gdb::unique_xmalloc_ptr.
6016
6017 2018-01-30 Pedro Alves <palves@redhat.com>
6018
6019 PR gdb/13211
6020 * target.c (target_terminal::terminal_state): Rename to ...
6021 (target_terminal::m_terminal_state): ... this.
6022
6023 2018-01-19 James Clarke <jrtc27@jrtc27.com>
6024
6025 * linux-low.c (handle_extended_wait): Surround call to
6026 thread_db_notice_clone with #ifdef USE_THREAD_DB.
6027
6028 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
6029
6030 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
6031 linux_ptrace_attach_fail_reason_string now returning an
6032 std::string.
6033 (linux_attach): Likewise.
6034 * thread-db.c (attach_thread): Likewise.
6035
6036 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
6037
6038 PR gdb/21559
6039 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
6040 checking for fs_base/gs_base fields in struct user_regs_struct.
6041 * configure: Regenerate.
6042
6043 2018-01-16 Yao Qi <yao.qi@linaro.org>
6044
6045 PR gdb/18749
6046 * linux-low.c (fetch_register): Call supply_register instead of
6047 error.
6048
6049 2018-01-08 Yao Qi <yao.qi@linaro.org>
6050 Simon Marchi <simon.marchi@ericsson.com>
6051
6052 * Makefile.in (OBS): Remove selftest.o.
6053 * configure.ac: Set srv_selftest_objs if $development is true.
6054 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
6055 * configure: Re-generated.
6056 * server.c (captured_main): Wrap variable selftest_filter with
6057 GDB_SELF_TEST.
6058
6059 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
6060
6061 * server.c (parse_debug_format_options): Return std::string.
6062 (handle_monitor_command, captured_main): Adjust.
6063
6064 2018-01-05 Pedro Alves <palves@redhat.com>
6065
6066 PR gdb/18653
6067 * server.c (captured_main): Pass quiet=false to
6068 save_original_signals_state.
6069
6070 2018-01-01 Joel Brobecker <brobecker@adacore.com>
6071
6072 * gdbreplay.c (gdbreplay_version): Update copyright year in
6073 version message.
6074 * server.c (gdbserver_version): Likewise.
6075
6076 2017-12-08 Tom Tromey <tom@tromey.com>
6077
6078 * ax.c (ax_printf): Update.
6079
6080 2017-12-07 Yao Qi <yao.qi@linaro.org>
6081
6082 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
6083 aarch64_linux_read_description.
6084 * linux-amd64-ipa.c (idx2mask): New array.
6085 (get_ipa_tdesc): Move idx2mask out.
6086 (initialize_low_tracepoint): Initialize target descriptions.
6087 * linux-i386-ipa.c (idx2mask): New array.
6088 (get_ipa_tdesc): Move idx2mask out.
6089 (initialize_low_tracepoint): Initialize target descriptions.
6090
6091 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
6092
6093 * tdesc.c (struct tdesc_type): Change return type.
6094 (tdesc_add_flag): Change parameter type.
6095 (tdesc_add_bitfield): Likewise.
6096 (tdesc_add_field): Likewise.
6097 (tdesc_set_struct_size): Likewise.
6098
6099 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
6100
6101 * regcache.c (registers_to_string): Remove unused variable.
6102
6103 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6104
6105 * inferiors.c (for_each_inferior_with_data): Remove.
6106 * inferiors.h (for_each_inferior_with_data): Remove.
6107 * server.c (handle_qxfer_threads_worker): Change parameter type.
6108 (handle_qxfer_threads_proper): Use for_each_thread.
6109
6110 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6111
6112 * inferiors.c (for_each_inferior): Remove.
6113 (clear_inferiors): Use for_each_thread.
6114 * inferiors.h (for_each_inferior): Remove.
6115 * linux-low.c (linux_wait_for_event_filtered): Use
6116 for_each_thread.
6117 (linux_stabilize_threads): Likewise.
6118 * regcache.c (regcache_release): Likewise.
6119 * server.c (gdb_wants_all_threads_stopped): Likewise.
6120 (clear_pending_status_callback): Remove.
6121 (handle_status): Use for_each_thread.
6122 (captured_main): Likewise.
6123 * win32-low.c (child_init_thread_list): Likewise.
6124 (win32_clear_inferiors): Likewise.
6125 (fake_breakpoint_event): Likewise.
6126
6127 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6128
6129 * inferiors.h (find_inferior): Remove.
6130 * inferiors.c (find_inferior): Remove.
6131
6132 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6133
6134 * linux-low.c (resume_status_pending_p): Update comment.
6135 (need_step_over_p): Update comment.
6136
6137 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6138
6139 * linux-low.c (proceed_one_lwp): Return void, change parameter
6140 type.
6141 (unsuspend_and_proceed_one_lwp): Likewise.
6142 (proceed_all_lwps): Use for_each_thread.
6143 (unstop_all_lwps): Likewise.
6144
6145 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6146
6147 * linux-low.c (linux_resume_one_thread): Return void, take
6148 parameter directly.
6149 (linux_resume): Use for_each_thread.
6150
6151 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6152
6153 * linux-low.c (send_sigstop_callback): Return void, change
6154 parameter type. Rename to...
6155 (send_sigstop): ... this.
6156 (suspend_and_send_sigstop_callback): Return void, change parameter
6157 type. Rename to...
6158 (suspend_and_send_sigstop): ... this.
6159 (stop_all_lwps): Use for_each_thread.
6160
6161 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6162
6163 * linux-low.c (lwp_running): Return bool, remove unused
6164 argument.
6165 (linux_stabilize_threads): Use find_thread.
6166
6167 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6168
6169 * linux-low.c (select_singlestep_lwp_callback): Remove.
6170 (count_events_callback): Remove.
6171 (select_event_lwp_callback): Remove.
6172 (select_event_lwp): Use find_thread/for_each_thread.
6173
6174 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6175
6176 * linux-low.c (not_stopped_callback): Return bool, take filter
6177 argument directly.
6178 (linux_wait_for_event_filtered): Use find_thread.
6179 (linux_wait_1): Likewise.
6180
6181 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6182
6183 * linux-low.c (same_lwp): Remove.
6184 (find_lwp_pid): Use find_thread.
6185
6186 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6187
6188 * linux-low.c (delete_lwp_callback): Remove.
6189 (linux_mourn): Use for_each_thread.
6190
6191 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6192
6193 * linux-low.c (linux_detach_lwp_callback): Return void, remove
6194 args parameter, don't check for pid.
6195 (linux_detach): Use for_each_thread.
6196
6197 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6198
6199 * linux-low.c (struct counter): Remove.
6200 (second_thread_of_pid_p): Remove.
6201 (last_thread_of_process_p): Use find_thread.
6202
6203 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6204
6205 * inferiors.c (find_inferior_in_random): Remove.
6206 * inferiors.h (find_inferior_in_random): Remove.
6207 * linux-low.c (status_pending_p_callback): Return bool, accept
6208 parameter ptid directly.
6209 (linux_wait_for_event_filtered): Use find_thread_in_random.
6210 (linux_wait_1): Likewise.
6211
6212 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6213
6214 * inferiors.c (find_inferior_id): Remove.
6215 (find_thread_ptid): Move implemention from find_inferior_id to
6216 here.
6217 * inferiors.h (find_inferior_id): Remove.
6218 * server.c (handle_status): Use find_thread_ptid.
6219 (process_serial_event): Likewise.
6220 * thread-db.c (find_one_thread): Likewise.
6221 (thread_db_thread_handle): Likewise.
6222 * win32-low.c (thread_rec): Likewise.
6223 (child_delete_thread): Likewise.
6224 (win32_thread_alive): Likewise.
6225 (get_child_debug_event): Likewise.
6226
6227 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6228
6229 * linux-mips-low.c (update_watch_registers_callback): Return
6230 void, remove pid_p parameter, don't check for pid.
6231 (mips_insert_point, mips_remove_point): Use for_each_thread.
6232
6233 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6234
6235 * lynx.low (lynx_delete_thread_callback): Remove.
6236 (lynx_mourn): Use for_each_thread.
6237
6238 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6239
6240 * regcache.c (regcache_invalidate_one): Remove.
6241 (regcache_invalidate_pid): use for_each_thread.
6242
6243 2017-11-26 Tom Tromey <tom@tromey.com>
6244
6245 * linux-low.c (linux_create_inferior): Update.
6246
6247 2017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
6248
6249 * spu-low.c (spu_create_inferior): Fix typo in argument name.
6250
6251 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6252
6253 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
6254 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6255 * linux-aarch64-tdesc-selftest.c: New file.
6256 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6257
6258 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6259
6260 * configure.srv: Add new file.
6261 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6262 * linux-aarch64-tdesc-selftest.c: New file.
6263 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6264
6265 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6266
6267 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
6268 * linux-aarch64-low.c (initialize_low_arch): Remove init.
6269 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
6270
6271 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6272
6273 * configure.srv: Add new files.
6274 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
6275 aarch64_linux_read_description.
6276 * linux-aarch64-low.c (aarch64_linux_read_description):
6277 Merge with aarch64_arch_setup.
6278 (aarch64_arch_setup): Call aarch64_linux_read_description.
6279 * linux-aarch64-tdesc.c: New file.
6280 * linux-aarch64-tdesc.h: New file.
6281
6282 2017-11-24 Yao Qi <yao.qi@linaro.org>
6283
6284 * configure.srv: Set $srv_regobj for tic6x-linux.
6285 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
6286 (tic6x_read_description): Move some code to tic6x_arch_setup.
6287 (tic6x_tdesc_test): New function.
6288 (initialize_low_arch): Call selftests::register_test.
6289
6290 2017-11-22 Yao Qi <yao.qi@linaro.org>
6291
6292 * remote-utils.c (prepare_resume_reply): Use memcpy.
6293
6294 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6295
6296 * linux-low.c (kill_one_lwp_callback): Return void, take
6297 argument directly, don't filter on pid.
6298 (linux_kill): Use for_each_thread.
6299
6300 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6301
6302 * linux-low.c (need_step_over_p): Return bool, remove dummy
6303 argument.
6304 (linux_resume, proceed_all_lwps): Use find_thread.
6305
6306 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6307
6308 * linux-low.c (resume_status_pending_p): Return bool, remove
6309 flag_p argument.
6310 (linux_resume): Use find_thread.
6311
6312 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6313
6314 * linux-low.c (struct thread_resume_array): Remove.
6315 (linux_set_resume_request): Return void, take arguments
6316 directly.
6317 (linux_resume): Use for_each_thread.
6318
6319 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6320
6321 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
6322 return bool, remove data argument.
6323 (linux_stabilize_threads): Use find_thread.
6324
6325 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6326
6327 * linux-low.c (unsuspend_one_lwp): Remove.
6328 (unsuspend_all_lwps): Use for_each_thread, inline code from
6329 unsuspend_one_lwp.
6330
6331 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6332
6333 * gdbthread.h (find_thread): Add overload with ptid_t filter.
6334 * linux-low.c (struct iterate_over_lwps_args): Remove.
6335 (iterate_over_lwps_filter): Remove.
6336 (iterate_over_lwps): Use find_thread.
6337
6338 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6339
6340 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
6341 (linux_handle_new_gdb_connection): Use for_each_thread, inline
6342 code from reset_lwp_ptrace_options_callback.
6343
6344 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6345
6346 * linux-arm-low.c (struct update_registers_data): Remove.
6347 (update_registers_callback): Return void, take arguments
6348 directly, don't check thread's pid.
6349 (arm_insert_point, arm_remove_point): Use for_each_thread.
6350
6351 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6352
6353 * win32-low.c (continue_one_thread): Return void, take argument
6354 directly.
6355 (child_continue): Use for_each_thread.
6356
6357 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6358
6359 * win32-i386-low.c (update_debug_registers_callback): Rename
6360 to ...
6361 (update_debug_registers): ... this, return void, remove pid_p arg.
6362 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
6363
6364 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
6365
6366 * inferiors.h (struct process_info): Add constructor, initialize
6367 fields..
6368 <syscalls_to_catch>: Change type to std::vector<int>.
6369 * inferiors.c (add_process): Allocate process_info with new.
6370 (remove_process): Free process_info with delete.
6371 * linux-low.c (handle_extended_wait): Adjust.
6372 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
6373 * server.c (handle_general_set): Adjust.
6374
6375 2017-11-16 Pedro Alves <palves@redhat.com>
6376
6377 * remote-utils.c (remote_close): Block SIGIO signals instead of
6378 uninstalling the SIGIO handler.
6379
6380 2017-11-16 Alan Hayward <alan.hayward@arm.com>
6381
6382 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
6383
6384 2017-11-16 Yao Qi <yao.qi@linaro.org>
6385
6386 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
6387 (tic6x_store_gregset): Likewise.
6388 (tic6x_usrregs_info): Move it up.
6389
6390 2017-11-15 Alan Hayward <alan.hayward@arm.com>
6391
6392 * Makefile.in: Update arch rules.
6393 * configure.srv: Explicitly mark arch/ files.
6394
6395 2017-11-13 Andreas Schwab <schwab@suse.de>
6396
6397 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
6398 function.
6399 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6400
6401 2017-11-06 Pedro Alves <palves@redhat.com>
6402
6403 * config.in, configure: Regenerate.
6404
6405 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6406
6407 * target.c (struct thread_search): Remove.
6408 (thread_search_callback): Remove.
6409 (prepare_to_access_memory): Use for_each_thread instead of
6410 find_inferior. Inline code from thread_search_callback.
6411
6412 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6413
6414 * server.c (struct visit_actioned_threads_data): Remove.
6415 (visit_actioned_threads): Change prototype to take arguments
6416 directly.
6417 (resume): Use find_thread instead of find_inferior.
6418
6419 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6420
6421 * server.c (queue_stop_reply_callback): Change prototype, return
6422 void.
6423 (find_status_pending_thread_callback): Remove.
6424 (handle_status): Replace find_inferior with find_thread and
6425 for_each_thread.
6426
6427 2017-10-25 Alan Hayward <alan.hayward@arm.com>
6428
6429 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
6430 with REGNO.
6431 (aarch64_store_gregset): Likewise.
6432 (aarch64_fill_fpregset): Likewise.
6433 (aarch64_store_fpregset): Likewise.
6434
6435 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
6436
6437 * gdbthread.h (find_thread, for_each_thread): New functions.
6438 * inferiors.c (thread_of_pid): Remove.
6439 (find_any_thread_of_pid): Use find_thread.
6440 * linux-low.c (num_lwps): Use for_each_thread.
6441
6442 2017-10-17 Yao Qi <yao.qi@linaro.org>
6443
6444 * Makefile.in: Remove one rule.
6445 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
6446
6447 2017-10-17 Yao Qi <yao.qi@linaro.org>
6448
6449 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
6450 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
6451
6452 2017-10-17 Yao Qi <yao.qi@linaro.org>
6453
6454 * configure.srv: Rename arm.o with arch/arm.o.
6455
6456 2017-10-17 Yao Qi <yao.qi@linaro.org>
6457
6458 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
6459 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
6460 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
6461 (arch-i386.o, arch-amd64.o): Remove rules.
6462 (arch/%.o): New rule.
6463 Update POSTCOMPILE and COMPILE.pre.
6464 * configure.ac: Invoke AC_CONFIG_COMMANDS.
6465 * configure: Re-generated.
6466 * configure.srv: Replace arch-i386.o with arch/i386.o.
6467 Replace arch-amd64.o with arch/amd64.o.
6468
6469 2017-10-16 Yao Qi <yao.qi@linaro.org>
6470
6471 * configure: Regenerated.
6472
6473 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6474
6475 * inferiors.h: (struct inferior_list): Remove.
6476 (struct inferior_list_entry); Remove.
6477 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
6478 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
6479 get_first_inferior): Remove.
6480 (for_each_inferior, for_each_inferior_with_data, find_inferior,
6481 find_inferior_id, find_inferior_in_random): Change signature.
6482 * inferiors.c (all_threads): Change type to
6483 std::list<thread_info *>.
6484 (get_thread): Remove macro.
6485 (find_inferior, find_inferior_id): Change signature, implement
6486 using find_thread.
6487 (find_inferior_in_random): Change signature, implement using
6488 find_thread_in_random.
6489 (for_each_inferior, for_each_inferior_with_data): Change
6490 signature, implement using for_each_thread.
6491 (add_inferior_to_list, remove_inferior): Remove.
6492 (add_thread, get_first_thread, thread_of_pid,
6493 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
6494 (get_first_inferior, one_inferior_p, clear_inferior_list):
6495 Remove.
6496 (clear_inferiors, get_thread_process): Update.
6497 * gdbthread.h: Include <list>.
6498 (struct thread_info) <entry>: Remove field.
6499 <id>: New field.
6500 (all_threads): Change type to std::list<thread_info *>.
6501 (get_first_inferior): Add doc.
6502 (find_thread, for_each_thread, find_thread_in_random): New
6503 functions.
6504 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
6505 * linux-arm-low.c (update_registers_callback): Update.
6506 * linux-low.c (second_thread_of_pid_p): Update.
6507 (kill_one_lwp_callback, linux_detach_lwp_callback,
6508 delete_lwp_callback, status_pending_p_callback, same_lwp,
6509 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
6510 iterate_over_lwps, not_stopped_callback,
6511 resume_stopped_resumed_lwps, count_events_callback,
6512 select_singlestep_lwp_callback, select_event_lwp_callback,
6513 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
6514 suspend_and_send_sigstop_callback, wait_for_sigstop,
6515 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
6516 lwp_running, linux_set_resume_request, resume_status_pending_p,
6517 need_step_over_p, start_step_over, linux_resume_one_thread,
6518 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
6519 reset_lwp_ptrace_options_callback): Update.
6520 * linux-mips-low.c (update_watch_registers_callback): Update.
6521 * regcache.c (regcache_invalidate_one, regcache_invalidate):
6522 Update.
6523 (free_register_cache_thread_one): Remove.
6524 (regcache_release): Update.
6525 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
6526 handle_qxfer_threads_worker): Update.
6527 (handle_query): Update, use list iterator.
6528 (visit_actioned_threads, handle_pending_status,
6529 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
6530 clear_pending_status_callback, set_pending_status_callback,
6531 find_status_pending_thread_callback, handle_status,
6532 process_serial_event): Update.
6533 * target.c (thread_search_callback): Update.
6534 * thread-db.c (thread_db_get_tls_address): Update.
6535 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
6536 Update.
6537 * win32-i386-low.c (update_debug_registers_callback): Update.
6538 * win32-low.c (delete_thread_info, child_delete_thread,
6539 continue_one_thread, suspend_one_thread,
6540 get_child_debug_event): Adjust.
6541
6542 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6543
6544 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
6545 * inferiors.h: Include <list>.
6546 (struct process_info) <entry>: Remove field.
6547 <pid>: New field.
6548 (pid_of): Change macro to function.
6549 (ptid_of, lwpid_of): Remove macro.
6550 (all_processes): Change type to std::list<process_info *>.
6551 (ALL_PROCESSES): Remove macro.
6552 (for_each_process, find_process): New function.
6553 * inferiors.c (all_processes): Change type to
6554 std::list<process_info *>.
6555 (find_thread_process): Adjust.
6556 (add_process): Likewise.
6557 (remove_process): Likewise.
6558 (find_process_pid): Likewise.
6559 (get_first_process): Likewise.
6560 (started_inferior_callback): Remove.
6561 (have_started_inferiors_p): Adjust.
6562 (attached_inferior_callback): Remove.
6563 (have_attached_inferiors_p): Adjust.
6564 * linux-low.c (check_zombie_leaders): Likewise.
6565 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
6566 (x86_linux_update_xmltarget): Adjust.
6567 * server.c (handle_query): Likewise.
6568 (gdb_reattached_process): Remove.
6569 (handle_status): Adjust.
6570 (kill_inferior_callback): Likewise.
6571 (detach_or_kill_inferior): Remove.
6572 (print_started_pid): Likewise.
6573 (print_attached_pid): Likewise.
6574 (detach_or_kill_for_exit): Update.
6575 (process_serial_event): Likewise.
6576 * linux-arm-low.c (arm_new_fork): Likewise.
6577
6578 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6579
6580 * dll.h: Include <list>.
6581 (struct dll_info): Add constructor.
6582 <entry>: Remove field.
6583 (all_dlls): Change type to std::list<dll_info>.
6584 * dll.c: Include <algorithm>.
6585 (get_dll): Remove macro.
6586 (all_dlls): Change type to std::list<dll_info *>.
6587 (free_one_dll): Remove.
6588 (match_dll): Likewise.
6589 (loaded_dll): Adjust.
6590 (unloaded_dll): Adjust to all_dlls type change, use
6591 std::find_if. Inline code from match_dll.
6592 (clear_dlls): Adjust to all_dlls type change.
6593 * server.c (emit_dll_description): Remove.
6594 (handle_qxfer_libraries): Adjust to all_dlls type change,
6595 integrate emit_dll_description's functionality.
6596
6597 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6598
6599 * linux-low.h (struct linux_target_ops) <delete_process>: New
6600 field.
6601 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
6602 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
6603 (struct linux_target_ops): Add delete_process callback.
6604 * linux-arm-low.c (arm_delete_process): New.
6605 (struct linux_target_ops): Add delete_process callback.
6606 * linux-bfin-low.c (struct linux_target_ops): Likewise.
6607 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
6608 * linux-m32r-low.c (struct linux_target_ops): Likewise.
6609 * linux-mips-low.c (mips_linux_delete_process): New.
6610 (struct linux_target_ops): Add delete_process callback.
6611 * linux-ppc-low.c (struct linux_target_ops): Likewise.
6612 * linux-s390-low.c (struct linux_target_ops): Likewise.
6613 * linux-sh-low.c (struct linux_target_ops): Likewise.
6614 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
6615 * linux-tile-low.c (struct linux_target_ops): Likewise.
6616 * linux-x86-low.c (x86_linux_delete_process): New.
6617 (struct linux_target_ops): Add delete_process callback.
6618 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
6619
6620 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6621
6622 * linux-aarch64-low.c (the_low_target): Add thread delete
6623 callback.
6624 * linux-arm-low.c (arm_delete_thread): New function.
6625 (the_low_target): Add thread delete callback.
6626 * linux-bfin-low.c (the_low_target): Likewise.
6627 * linux-crisv32-low.c (the_low_target): Likewise.
6628 * linux-low.c (delete_lwp): Invoke delete_thread callback if
6629 set.
6630 * linux-low.h (struct linux_target_ops) <delete_thread>: New
6631 field.
6632 * linux-m32r-low.c (the_low_target): Add thread delete callback.
6633 * linux-mips-low.c (mips_linux_delete_thread): New function.
6634 (the_low_target): Add thread delete callback.
6635 * linux-ppc-low.c (the_low_target): Likewise.
6636 * linux-s390-low.c (the_low_target): Likewise.
6637 * linux-sh-low.c (the_low_target): Likewise.
6638 * linux-tic6x-low.c (the_low_target): Likewise.
6639 * linux-tile-low.c (the_low_target): Likewise.
6640 * linux-x86-low.c (the_low_target): Likewise.
6641 * linux-xtensa-low.c (the_low_target): Likewise.
6642
6643 2017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
6644
6645 * win32-low.c: Include "common-inferior.h".
6646
6647 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6648
6649 * inferiors.c (set_inferior_cwd): New function.
6650 * server.c (handle_general_set): Handle QSetWorkingDir packet.
6651 (handle_query): Inform that QSetWorkingDir is supported.
6652 * win32-low.c (create_process): Pass the inferior's cwd to
6653 CreateProcess.
6654
6655 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6656
6657 * inferiors.c (current_inferior_cwd): New global variable.
6658 (get_inferior_cwd): New function.
6659 * inferiors.h (struct process_info) <cwd>: New field.
6660
6661 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6662
6663 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
6664 (OBS): Add gdb_tilde_expand.o.
6665
6666 2017-10-02 Simon Marchi <simon.marchi@ericsson.com>
6667
6668 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
6669 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
6670
6671 2017-09-29 Pedro Alves <palves@redhat.com>
6672
6673 * ax.c (gdb_parse_agent_expr): Constify.
6674 * ax.h (gdb_parse_agent_expr): Constify.
6675 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
6676 Constify.
6677 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
6678 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
6679 * remote-utils.h (read_ptid): Constify.
6680 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
6681 (process_point_options, process_serial_event): Constify.
6682 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
6683 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
6684 (cmd_qtbuffer): Constify.
6685
6686 2017-09-29 Pedro Alves <palves@redhat.com>
6687
6688 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
6689 fails.
6690
6691 2017-09-29 Pedro Alves <palves@redhat.com>
6692
6693 * linux-low.c (handle_extended_wait): Pass parent thread instead
6694 of process to thread_db_notice_clone.
6695 * linux-low.h (thread_db_notice_clone): Replace parent process
6696 parameter with parent thread parameter.
6697 * thread-db.c (find_one_thread): Add comment.
6698 (thread_db_notice_clone): Replace parent process parameter with
6699 parent thread parameter. Temporarily switch to the parent thread.
6700
6701 2017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
6702
6703 * gdbthread.h: Include "common-gdbthread.h".
6704 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
6705 "if" when validating the ptid.
6706 * remote-utils.c: Include "gdbthread.h".
6707 (prepare_resume_reply): Use "switch_to_thread".
6708 * target.c (done_accessing_memory): Likewise.
6709
6710 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6711
6712 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
6713 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
6714 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
6715 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
6716 s390x-gs-linux64-ipa.o to ipa_obj.
6717 * linux-s390-low.c (HWCAP_S390_GS): New define.
6718 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
6719 New functions.
6720 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
6721 (s390_arch_setup): Check for guarded-storage support and choose
6722 appropriate tdesc.
6723 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
6724 init_registers_s390x_gs_linux64.
6725 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
6726 enum value.
6727 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
6728 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
6729
6730 2017-09-22 Simon Marchi <simon.marchi@ericsson.com>
6731
6732 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
6733
6734 2017-09-21 Kevin Buettner <kevinb@redhat.com>
6735
6736 * linux-low.h (struct lwp_info): Add new field, thread_handle.
6737 (thread_db_thread_handle): Declare.
6738 * linux-low.c (linux_target_ops): Initialize thread_handle.
6739 * server.c (handle_qxfer_threads_worker): Add support for
6740 "handle" attribute.
6741 * target.h (struct target_ops): Add new function pointer,
6742 thread_handle.
6743 (target_thread_handle): Define.
6744 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
6745 field in lwp.
6746 (thread_db_thread_handle): New function.
6747
6748 2017-09-21 Kevin Buettner <kevinb@redhat.com>
6749
6750 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
6751 * linux-low.h (thread_db_notice_clone): Declare.
6752 * thread-db.c (thread_db_notice_clone): New function.
6753
6754 2017-09-21 Pedro Alves <palves@redhat.com>
6755
6756 * server.c (gdb_read_memory, handle_status, process_serial_event)
6757 (handle_serial_event, handle_target_event): Adjust to
6758 set_desired_thread prototype change.
6759 * target.c (set_desired_thread): Remove 'use_general' parameter
6760 and adjust.
6761 * target.h (set_desired_thread): Remove 'use_general' parameter.
6762
6763 2017-09-20 Tom Tromey <tom@tromey.com>
6764
6765 * target.c (target_terminal::terminal_state): Define.
6766 (target_terminal::init): Rename from target_terminal_init.
6767 (target_terminal::inferior): Rename from
6768 target_terminal_inferior.
6769 (target_terminal::ours): Rename from target_terminal_ours.
6770 (target_terminal::ours_for_output, target_terminal::info): New.
6771
6772 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6773
6774 * server.c (accumulate_file_name_length): Remove.
6775 (emit_dll_description): Adjust to std::string change.
6776 (handle_qxfer_libraries): Use std::string to hold document.
6777
6778 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6779
6780 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
6781 return type of xml_escape_text.
6782 * server.c (emit_dll_description): Likewise.
6783
6784 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6785
6786 * server.c (captured_main): Accept argument for --selftest.
6787 Update run_tests call.
6788 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
6789 when registering selftests.
6790
6791 2017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
6792
6793 * regcache.c (get_thread_regcache): Update code to use "std::vector"
6794 instead of "VEC" for "target_desc.reg_defs".
6795 (regcache_cpy): Likewise.
6796 (registers_to_string): Likewise.
6797 (registers_from_string): Likewise.
6798 (find_regno): Likewise.
6799 (supply_regblock): Likewise.
6800 (regcache_raw_read_unsigned): Likewise.
6801 * tdesc.c (init_target_desc): Likewise.
6802 (tdesc_create_reg): Likewise.
6803 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
6804 (struct target_desc) <reg_defs>: Convert to "std::vector".
6805 (target_desc): Do not initialize "reg_defs".
6806 (~target_desc): Update code to use "std::vector" instead of "VEC"
6807 for "target_desc.reg_defs".
6808 (operator==): Likewise.
6809
6810 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6811
6812 * inferiors.h (thread_to_gdb_id): Remove.
6813 * inferiors.c (thread_to_gdb_id): Remove.
6814 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
6815 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
6816 lynx_store_registers, lynx_read_memory, lynx_write_memory):
6817 Likewise.
6818 * nto-low.c (nto_fetch_registers, nto_store_registers,
6819 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
6820
6821 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6822
6823 * inferiors.h (gdb_id_to_thread_id): Remove.
6824 * inferiors.c (gdb_id_to_thread_id): Remove.
6825 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
6826 removal. Move pid declaration closer to where it's used.
6827
6828 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6829
6830 * server.c (handle_detach): New function.
6831 (process_serial_event): Move code out, call handle_detach.
6832
6833 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6834
6835 * server.c (require_running): Rename to ...
6836 (require_running_or_return): ... this ...
6837 (require_running_or_break): ... and this.
6838 (handle_query, process_serial_event): Adjust.
6839
6840 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6841
6842 * linux-low.c (linux_set_resume_request): Remove unused
6843 variables.
6844
6845 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6846
6847 * server.c (first_thread_of): Remove.
6848 (process_serial_event): Replace usage of first_thread_of with
6849 find_any_thread_of_pid.
6850 * tracepoint.c (same_process_p): Remove.
6851 (gdb_agent_about_to_close): Replace usage of same_process_p with
6852 find_any_thread_of_pid.
6853 * linux-x86-low.c (same_process_callback): Remove.
6854 (x86_arch_setup_process_callback): Replace usage of
6855 same_process_callback with find_any_thread_of_pid.
6856 * thread-db.c (any_thread_of): Remove.
6857 (switch_to_process): Replace usage of any_thread_of with
6858 find_any_thread_of_pid.
6859 * inferiors.c (thread_pid_matches_callback): Remove.
6860 (find_thread_process): Adjust to use find_any_thread_of_pid.
6861
6862 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6863
6864 * regcache.c (get_thread_regcache): Guard calls to "memset"
6865 with "!VEC_empty".
6866
6867 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6868
6869 * linux-low.c (handle_extended_wait): Use
6870 "allocate_target_description" instead of "XNEW".
6871 * linux-x86-low.c (initialize_low_arch): Likewise.
6872
6873 2017-09-05 Yao Qi <yao.qi@linaro.org>
6874
6875 * configure.srv (srv_i386_regobj): Remove.
6876 (srv_amd64_regobj): Remove.
6877 (srv_regobj): Set it to "" for x86 non-linux targets.
6878 * linux-x86-tdesc.c (i386_linux_read_description):
6879 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
6880 (init_registers_i386): Remove the declaration.
6881 (tdesc_i386): Remove the declaration.
6882 (lynx_i386_arch_setup): Call i386_create_target_description.
6883 * nto-x86-low.c: Likewise.
6884 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
6885 [!__x86_64__]: include arch/i386.h.
6886 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
6887
6888 2017-09-05 Yao Qi <yao.qi@linaro.org>
6889
6890 * configure.srv (srv_amd64_linux_xmlfiles): Remove
6891 i386/amd64-XXX-linux from it.
6892
6893 2017-09-05 Yao Qi <yao.qi@linaro.org>
6894
6895 * configure.srv: Empty srv_amd64_linux_regobj if $development is
6896 false.
6897 (ipa_amd64_linux_regobj): Remove.
6898 (ipa_x32_linux_regobj): Remove.
6899
6900 2017-09-05 Yao Qi <yao.qi@linaro.org>
6901
6902 * Makefile.in (arch-amd64.o): New rule.
6903 * configure.srv: Append arch-amd64.o.
6904 * linux-amd64-ipa.c: Include common/x86-xstate.h.
6905 (get_ipa_tdesc): Call amd64_linux_read_description.
6906 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
6907 and init_registers_amd64_XXX.
6908 * linux-x86-low.c (x86_linux_read_description): Call
6909 amd64_linux_read_description.
6910 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
6911 (initialize_low_arch): Don't call init_registers_x32_XXX and
6912 init_registers_amd64_XXX.
6913 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
6914 and tdesc_amd64_XXX.
6915 [__x86_64__] (amd64_tdesc_test): New function.
6916 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
6917 and init_registers_amd64_XXX.
6918 * linux-x86-tdesc.c: Include arch/amd64.h.
6919 (xcr0_to_tdesc_idx): New function.
6920 (i386_linux_read_description): New function.
6921 (amd64_get_ipa_tdesc_idx): New function.
6922 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
6923 (amd64_get_ipa_tdesc): Declare.
6924
6925 2017-09-05 Yao Qi <yao.qi@linaro.org>
6926
6927 * configure.srv (srv_i386_linux_xmlfiles): Remove
6928 i386/i386-XXX-linux.xml from it.
6929
6930 2017-09-05 Yao Qi <yao.qi@linaro.org>
6931
6932 * configure.srv: Set srv_i386_linux_regobj empty if $development
6933 is false.
6934 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
6935 initialize_low_tdesc.
6936 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
6937 with #if initialize_low_tdesc.
6938 * linux-x86-tdesc-selftest.c: New file.
6939 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
6940
6941 2017-09-05 Yao Qi <yao.qi@linaro.org>
6942
6943 * Makefile.in (arch-i386.o): New rule.
6944 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
6945 (x86_64-*-linux*): Likewise.
6946 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
6947 include arch/i386.h.
6948 (i386_linux_read_description): Remove code and call
6949 i386_create_target_description.
6950 * tdesc.c (allocate_target_description): New function.
6951 * tdesc.h (set_tdesc_architecture): Remove declaration.
6952 (set_tdesc_osabi): Likewise.
6953
6954 2017-09-05 Yao Qi <yao.qi@linaro.org>
6955
6956 * linux-x86-tdesc.c: Don't include <inttypes.h>.
6957 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
6958 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
6959 .xmltarget.
6960 * server.c (get_features_xml): Call tdesc_get_features_xml.
6961 * tdesc.c (set_tdesc_architecture): New function.
6962 (set_tdesc_osabi): New function.
6963 (tdesc_get_features_xml): New function.
6964 (tdesc_create_feature): Add an argument.
6965 * tdesc.h (struct target_desc) <features>: New field.
6966 <arch, osabi>: New field.
6967 (~target_desc): xfree features, arch, and osabi.
6968 (target_desc::oerator==): Don't compare .xmltarget.
6969 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
6970 (set_tdesc_osabi): Likewise.
6971 (tdesc_get_features_xml): Likewise.
6972
6973 2017-09-05 Yao Qi <yao.qi@linaro.org>
6974
6975 * linux-x86-tdesc.c: Include selftest.h.
6976 (i386_tdesc_test): New function.
6977 (initialize_low_tdesc): Call selftests::register_test.
6978 * tdesc.h: Include regdef.h.
6979 (target_desc): Override operator == and !=.
6980
6981 2017-09-05 Yao Qi <yao.qi@linaro.org>
6982
6983 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
6984 (ipa_obj): Likewise.
6985 * linux-i386-ipa.c: Include common/x86-xstate.h
6986 (get_ipa_tdesc): Call i386_linux_read_description.
6987 (initialize_low_tracepoint): Don't call init_registers_XXX
6988 functions, call initialize_low_tdesc instead.
6989 * linux-x86-low.c (x86_linux_read_description): Call
6990 i386_linux_read_description.
6991 (initialize_low_arch): Don't call init_registers_i386_XXX
6992 functions, call initialize_low_tdesc.
6993 * linux-x86-tdesc.c: New file.
6994 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
6995 (i386_get_ipa_tdesc_idx): Declare.
6996 (i386_get_ipa_tdesc): Declare.
6997 (initialize_low_tdesc): Declare.
6998
6999 2017-09-05 Yao Qi <yao.qi@linaro.org>
7000
7001 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
7002 instead of 0.
7003
7004 2017-09-05 Yao Qi <yao.qi@linaro.org>
7005
7006 * Makefile.in (IPA_OBJS): Add vec-ipa.o
7007 * regcache.c (get_thread_regcache): Use VEC_length.
7008 (init_register_cache): Likewise.
7009 (regcache_cpy): Likewise.
7010 (registers_to_string): Iterate reg_defs via VEC_iterate.
7011 (find_regno): Likewise.
7012 (find_register_by_number): Use VEC_index.
7013 (register_size): Call find_register_by_number.
7014 (register_data): Call find_register_by_number.
7015 (supply_regblock): Use VEC_length.
7016 (regcache_raw_read_unsigned): Likewise.
7017 * tdesc.c (init_target_desc): Iterate reg_defs via
7018 VEC_iterate.
7019 (default_description): Update initializer.
7020 (copy_target_description): Don't update field num_registers.
7021 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
7022 <num_registers>: Remove.
7023
7024 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
7025
7026 * Makefile.in (.SECONDARY): Define target.
7027
7028 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
7029
7030 * linux-low.c (linux_wait_1): Adjust.
7031 * server.c (queue_stop_reply_callback): Adjust.
7032
7033 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
7034
7035 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
7036 QEnvironmentUnset and QEnvironmentReset packets.
7037 (handle_query): Inform remote that QEnvironmentHexEncoded,
7038 QEnvironmentUnset and QEnvironmentReset are supported.
7039
7040 2017-08-25 Simon Marchi <simon.marchi@ericsson.com>
7041
7042 * inferiors.h (inferior_target_data): Rename to ...
7043 (thread_target_data): ... this.
7044 (inferior_regcache_data): Rename to ...
7045 (thread_regcache_data): ... this.
7046 (set_inferior_regcache_data): Rename to ...
7047 (set_thread_regcache_data): ... this.
7048 * inferiors.c (inferior_target_data): Rename to ...
7049 (thread_target_data): ... this.
7050 (inferior_regcache_data): Rename to ...
7051 (thread_regcache_data): ... this.
7052 (set_inferior_regcache_data): Rename to ...
7053 (set_thread_regcache_data): ... this.
7054 (free_one_thread): Update.
7055 * linux-low.h (get_thread_lwp): Update.
7056 * regcache.c (get_thread_regcache): Update.
7057 (regcache_invalidate_thread): Update.
7058 (free_register_cache_thread): Update.
7059 * win32-i386-low.c (update_debug_registers_callback): Update.
7060 (win32_get_current_dr): Update.
7061 * win32-low.c (thread_rec): Update.
7062 (delete_thread_info): Update.
7063 (continue_one_thread): Update.
7064 (suspend_one_thread): Update.
7065
7066 2017-08-24 Simon Marchi <simon.marchi@ericsson.com>
7067
7068 * inferiors.c (set_inferior_target_data): Remove.
7069 * inferiors.h (set_inferior_target_data): Remove.
7070
7071 2017-08-18 Yao Qi <yao.qi@linaro.org>
7072
7073 * Makefile.in (OBS): Add selftest.o.
7074 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
7075 * configure, config.in: Re-generated.
7076 * server.c: Include common/sefltest.h.
7077 (captured_main): Handle option --selftest.
7078
7079 2017-08-09 Yao Qi <yao.qi@linaro.org>
7080
7081 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
7082 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
7083 i386-avx-mpx.o and i386-mmx.o.
7084 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
7085 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
7086 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
7087 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
7088 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
7089 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
7090 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
7091 i386/amd64-avx-mpx.xml.
7092
7093 2017-08-09 Yao Qi <yao.qi@linaro.org>
7094
7095 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
7096 and x32-avx-avx512.o.
7097 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
7098 i386/x32-avx-avx512.xml.
7099
7100 2017-07-26 Simon Marchi <simon.marchi@ericsson.com>
7101
7102 * tracepoint.h (enum class fast_tpoint_collect_result): New
7103 enumeration.
7104 (fast_tracepoint_collecting): Change return type to
7105 fast_tpoint_collect_result.
7106 * tracepoint.c (fast_tracepoint_collecting): Likewise.
7107 * linux-low.h: Include tracepoint.h.
7108 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
7109 fast_tpoint_collect_result.
7110 * linux-low.c (handle_tracepoints): Adjust.
7111 (linux_fast_tracepoint_collecting): Change return type to
7112 fast_tpoint_collect_result.
7113 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
7114 linux_wait_1, stuck_in_jump_pad_callback,
7115 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
7116 proceed_one_lwp): Adjust to type change.
7117
7118 2017-07-10 Yao Qi <yao.qi@linaro.org>
7119
7120 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
7121
7122 2017-06-29 Yao Qi <yao.qi@linaro.org>
7123
7124 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
7125 Remove.
7126 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
7127
7128 2017-06-20 Simon Marchi <simon.marchi@ericsson.com>
7129
7130 * Makefile.in (IPA_OBJS): Sort and format one item per line.
7131
7132 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
7133
7134 * linux-low.c (linux_create_inferior): Adjust code to access the
7135 environment information via 'gdb_environ' class.
7136 * lynx-low.c (lynx_create_inferior): Likewise.
7137 * server.c (our_environ): Make it an instance of 'gdb_environ'.
7138 (get_environ): Return a pointer to 'our_environ'.
7139 (captured_main): Initialize 'our_environ'.
7140 * server.h (get_environ): Adjust prototype.
7141 * spu-low.c (spu_create_inferior): Adjust code to access the
7142 environment information via 'gdb_environ' class.
7143
7144 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7145
7146 * linux-low.c (linux_read_memory, linux_write_memory): Remove
7147 usage of "register" keyword.
7148
7149 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7150
7151 * configure: Re-generate.
7152
7153 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7154
7155 * configure: Re-generate.
7156
7157 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7158
7159 * Makefile.in (COMPILE.pre): Add "-x c++".
7160
7161 2017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
7162
7163 * fork-child.c: Conditionally include <signal.h>.
7164
7165 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7166
7167 * server.c (handle_general_set): Handle new packet
7168 "QStartupWithShell".
7169 (handle_query): Add "QStartupWithShell" to the list of supported
7170 packets.
7171 (gdbserver_usage): Add help text explaining the
7172 new "--startup-with-shell" and "--no-startup-with-shell" CLI
7173 options.
7174 (captured_main): Recognize and act upon the presence of the new
7175 CLI options.
7176
7177 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7178 Pedro Alves <palves@redhat.com>
7179
7180 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
7181 * configure: Regenerate.
7182 * configure.srv (srv_linux_obj): Add "fork-child.o" and
7183 "fork-inferior.o".
7184 (i[34567]86-*-lynxos*): Likewise.
7185 (spu*-*-*): Likewise.
7186 * fork-child.c: New file.
7187 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
7188 and "environ.h".
7189 (linux_ptrace_fun): New function.
7190 (linux_create_inferior): Adjust function prototype to reflect
7191 change on "target.h". Adjust function code to use
7192 "fork_inferior".
7193 (linux_request_interrupt): Delete "signal_pid".
7194 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7195 (lynx_ptrace_fun): New function.
7196 (lynx_create_inferior): Adjust function prototype to reflect
7197 change on "target.h". Adjust function code to use
7198 "fork_inferior".
7199 * nto-low.c (nto_create_inferior): Adjust function prototype and
7200 code to reflect change on "target.h". Update comments.
7201 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
7202 "common-terminal.h" and "environ.h".
7203 (terminal_fd): Moved to fork-child.c.
7204 (old_foreground_pgrp): Likewise.
7205 (restore_old_foreground_pgrp): Likewise.
7206 (last_status): Make it global.
7207 (last_ptid): Likewise.
7208 (our_environ): New variable.
7209 (startup_with_shell): Likewise.
7210 (program_name): Likewise.
7211 (program_argv): Rename to...
7212 (program_args): ...this.
7213 (wrapper_argv): New variable.
7214 (start_inferior): Delete function.
7215 (get_exec_wrapper): New function.
7216 (get_exec_file): Likewise.
7217 (get_environ): Likewise.
7218 (prefork_hook): Likewise.
7219 (post_fork_inferior): Likewise.
7220 (postfork_hook): Likewise.
7221 (postfork_child_hook): Likewise.
7222 (handle_v_run): Update code to deal with arguments coming from the
7223 remote host. Update calls from "start_inferior" to
7224 "create_inferior".
7225 (captured_main): Likewise. Initialize environment variable. Call
7226 "have_job_control".
7227 * server.h (post_fork_inferior): New prototype.
7228 (get_environ): Likewise.
7229 (last_status): Declare.
7230 (last_ptid): Likewise.
7231 (signal_pid): Likewise.
7232 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7233 (spu_ptrace_fun): New function.
7234 (spu_create_inferior): Adjust function prototype to reflect change
7235 on "target.h". Adjust function code to use "fork_inferior".
7236 * target.c (target_terminal_init): New function.
7237 (target_terminal_inferior): Likewise.
7238 (target_terminal_ours): Likewise.
7239 * target.h: Include <vector>.
7240 (struct target_ops) <create_inferior>: Update prototype.
7241 (create_inferior): Update macro.
7242 * utils.c (gdb_flush_out_err): New function.
7243 * win32-low.c (win32_create_inferior): Adjust function prototype
7244 and code to reflect change on "target.h".
7245
7246 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7247
7248 * inferiors.c (switch_to_thread): New function.
7249
7250 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7251
7252 * Makefile.in (SFILE): Add "common/job-control.c".
7253 (OBS): Add "job-control.o".
7254
7255 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
7256
7257 * Makefile: Remove "@host_makefile_frag@".
7258
7259 2017-05-05 Pedro Alves <palves@redhat.com>
7260
7261 * configure: Regenerate.
7262
7263 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7264
7265 * configure: Regenerate.
7266
7267 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7268
7269 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
7270 software_single_step change of return type to
7271 std::vector<CORE_ADDR>.
7272 * linux-low.c (install_software_single_step_breakpoints):
7273 Likewise.
7274 * linux-low.h (install_software_single_step_breakpoints):
7275 Likewise.
7276
7277 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7278
7279 * remote-utils.c: Include "gdb_termios.h" instead of
7280 "terminal.h".
7281 * terminal.h: Delete file.
7282
7283 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7284
7285 * server.c: Include <vector>.
7286 <program_argv, wrapper_argv>: Convert to std::vector.
7287 (start_inferior): Rewrite function to use C++.
7288 (handle_v_run): Likewise. Update code that calculates the argv
7289 based on the vRun packet; use C++.
7290 (captured_main): Likewise.
7291
7292 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
7293
7294 * server.c (handle_v_cont): Initialize thread_resume::thread
7295 with null_ptid.
7296
7297 2017-04-05 Pedro Alves <palves@redhat.com>
7298
7299 * configure: Regenerate.
7300
7301 2017-04-05 Pedro Alves <palves@redhat.com>
7302
7303 * gdbreplay.c (sync_error): Constify.
7304 * linux-x86-low.c (push_opcode): Constify.
7305
7306 2017-04-05 Pedro Alves <palves@redhat.com>
7307
7308 * win32-low.c (get_child_debug_event)
7309 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
7310 Report TARGET_WAITKIND_SPURIOUS instead.
7311
7312 2017-04-05 Pedro Alves <palves@redhat.com>
7313
7314 * remote-utils.c (remote_prepare, remote_open): Constify.
7315 * remote-utils.h (remote_prepare, remote_open): Constify.
7316 * server.c (captured_main): Constify 'port' handling.
7317
7318 2017-04-04 Simon Marchi <simon.marchi@ericsson.com>
7319
7320 * Makefile.in (clean): Clear .deps.
7321
7322 2017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
7323
7324 * .gitignore: Remove generated files, replace with wildcard.
7325 * (clean): Replace removal of generated files with wildcard.
7326 (version.c): Replace with...
7327 (version-generated.c): ...this.
7328 (xml-builtin.c): Replace with...
7329 (xml-builtin-generated.c): ...this.
7330 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
7331 (%.c: *regformats*): Replace with...
7332 (%-generated.c: *regformats*): ...this.
7333
7334 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7335
7336 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
7337 (xtensa_fill_gregset): Call collect_register_by_name for
7338 threadptr register.
7339 (xtensa_store_gregset): Call supply_register_by_name for
7340 threadptr register.
7341
7342 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7343
7344 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
7345 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
7346 (xtensa_store_gregset): Call supply_register for all registers in
7347 a0_regnum..a0_regnum + C0_NREGS range.
7348
7349 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7350
7351 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
7352 (ax-ipa.o: ax.c): Remove.
7353 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
7354 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
7355 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
7356 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
7357 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
7358
7359 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7360
7361 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
7362 (print-utils-ipa.o: ../common/print-utils.c): Remove.
7363 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
7364 (errors-ipa.o: ../common/errors.c): Remove.
7365 (format-ipa.o: ../common/format.c): Remove.
7366 (common-utils-ipa.o: ../common/common-utils.c): Remove.
7367
7368 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7369
7370 * Makefile.in (%-ipa.o: %.c): New rule.
7371 (tracepoint-ipa.o: tracepoint.c): Remove.
7372 (utils-ipa.o: utils.c): Remove.
7373 (remote-utils-ipa.o: remote-utils.c): Remove.
7374 (regcache-ipa.o: regcache.c): Remove.
7375 (i386-linux-ipa.o: i386-linux.c): Remove.
7376 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
7377 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
7378 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
7379 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
7380 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
7381 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
7382 (amd64-linux-ipa.o: amd64-linux.c): Remove.
7383 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
7384 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
7385 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
7386 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
7387 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
7388 (aarch64-ipa.o: aarch64.c): Remove.
7389 (s390-linux32-ipa.o: s390-linux32.c): Remove.
7390 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
7391 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
7392 (s390-linux64-ipa.o: s390-linux64.c): Remove.
7393 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
7394 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
7395 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
7396 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
7397 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
7398 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
7399 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
7400 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
7401 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
7402 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
7403 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
7404 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
7405 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
7406 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
7407 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
7408 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
7409 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
7410 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
7411 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
7412 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
7413 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
7414 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
7415 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
7416 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
7417 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
7418 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
7419 (tdesc-ipa.o: tdesc.c): Remove.
7420 (x32-linux-ipa.o: x32-linux.c): Remove.
7421 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
7422 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
7423
7424 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7425
7426 * Makefile.in (%.o: ../arch/%.c): New rule.
7427 (arm.o: ../arch/arm.c): Remove.
7428 (arm-linux.o: ../arch/arm-linux.c): Remove.
7429 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
7430 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
7431
7432 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7433
7434 * Makefile.in (%.o: ../nat/%.c): New rule.
7435 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
7436 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
7437 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
7438 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
7439 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
7440 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
7441 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
7442 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
7443 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
7444 (linux-personality.o: ../nat/linux-personality.c): Remove.
7445 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
7446 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
7447 (x86-linux.o: ../nat/x86-linux.c): Remove.
7448 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
7449 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
7450
7451 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7452
7453 * Makefile.in (%.o: ../common/%.c): New rule.
7454 (signals.o: ../common/signals.c): Remove.
7455 (print-utils.o: ../common/print-utils.c): Remove.
7456 (rsp-low.o: ../common/rsp-low.c): Remove.
7457 (common-utils.o: ../common/common-utils.c): Remove.
7458 (posix-strerror.o: ../common/posix-strerror.c): Remove.
7459 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
7460 (vec.o: ../common/vec.c): Remove.
7461 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
7462 (xml-utils.o: ../common/xml-utils.c): Remove.
7463 (ptid.o: ../common/ptid.c): Remove.
7464 (buffer.o: ../common/buffer.c): Remove.
7465 (format.o: ../common/format.c): Remove.
7466 (filestuff.o: ../common/filestuff.c): Remove.
7467 (agent.o: ../common/agent.c): Remove.
7468 (errors.o: ../common/errors.c): Remove.
7469 (environ.o: ../common/environ.c): Remove.
7470 (common-debug.o: ../common/common-debug.c): Remove.
7471 (cleanups.o: ../common/cleanups.c): Remove.
7472 (common-exceptions.o: ../common/common-exceptions.c): Remove.
7473 (fileio.o: ../common/fileio.c): Remove.
7474 (common-regcache.o: ../common/common-regcache.c): Remove.
7475 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
7476 (new-op.o: ../common/new-op.c): Remove.
7477 (btrace-common.o: ../common/btrace-common.c): Remove.
7478
7479 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7480
7481 * Makefile.in (%.o: ../target/%.c): New rule.
7482 (waitstatus.o: ../target/waitstatus.c): Remove.
7483
7484 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7485
7486 * Makefile.in
7487 (%.c: ../regformats/%.dat,
7488 (%.c: ../regformats/arm/%.dat,
7489 (%.c: ../regformats/i386/%.dat,
7490 (%.c: ../regformats/rs6000/%.dat): New rules.
7491 (aarch64.c): Remove.
7492 (reg-arm.c): Remove.
7493 (arm-with-iwmmxt.c): Remove.
7494 (arm-with-vfpv2.c): Remove.
7495 (arm-with-vfpv3.c): Remove.
7496 (arm-with-neon.c): Remove.
7497 (reg-bfin.c): Remove.
7498 (reg-cris.c): Remove.
7499 (reg-crisv32.c): Remove.
7500 (i386.c): Remove.
7501 (i386-linux.c): Remove.
7502 (i386-avx.c): Remove.
7503 (i386-avx-linux.c): Remove.
7504 (i386-avx-avx512.c): Remove.
7505 (i386-avx-avx512-linux.c): Remove.
7506 (i386-mpx.c): Remove.
7507 (i386-mpx-linux.c): Remove.
7508 (i386-avx-mpx-avx512-pku.c): Remove.
7509 (i386-avx-mpx-avx512-pku-linux.c): Remove.
7510 (i386-avx-mpx.c): Remove.
7511 (i386-avx-mpx-linux.c): Remove.
7512 (i386-mmx.c): Remove.
7513 (i386-mmx-linux.c): Remove.
7514 (reg-ia64.c): Remove.
7515 (reg-m32r.c): Remove.
7516 (reg-m68k.c): Remove.
7517 (reg-cf.c): Remove.
7518 (mips-linux.c): Remove.
7519 (mips-dsp-linux.c): Remove.
7520 (mips64-linux.c): Remove.
7521 (mips64-dsp-linux.c): Remove.
7522 (nios2-linux.c): Remove.
7523 (powerpc-32.c): Remove.
7524 (powerpc-32l.c): Remove.
7525 (powerpc-altivec32l.c): Remove.
7526 (powerpc-cell32l.c): Remove.
7527 (powerpc-vsx32l.c): Remove.
7528 (powerpc-isa205-32l.c): Remove.
7529 (powerpc-isa205-altivec32l.c): Remove.
7530 (powerpc-isa205-vsx32l.c): Remove.
7531 (powerpc-e500l.c): Remove.
7532 (powerpc-64l.c): Remove.
7533 (powerpc-altivec64l.c): Remove.
7534 (powerpc-cell64l.c): Remove.
7535 (powerpc-vsx64l.c): Remove.
7536 (powerpc-isa205-64l.c): Remove.
7537 (powerpc-isa205-altivec64l.c): Remove.
7538 (powerpc-isa205-vsx64l.c): Remove.
7539 (s390-linux32.c): Remove.
7540 (s390-linux32v1.c): Remove.
7541 (s390-linux32v2.c): Remove.
7542 (s390-linux64.c): Remove.
7543 (s390-linux64v1.c): Remove.
7544 (s390-linux64v2.c): Remove.
7545 (s390-te-linux64.c): Remove.
7546 (s390-vx-linux64.c): Remove.
7547 (s390-tevx-linux64.c): Remove.
7548 (s390x-linux64.c): Remove.
7549 (s390x-linux64v1.c): Remove.
7550 (s390x-linux64v2.c): Remove.
7551 (s390x-te-linux64.c): Remove.
7552 (s390x-vx-linux64.c): Remove.
7553 (s390x-tevx-linux64.c): Remove.
7554 (tic6x-c64xp-linux.c): Remove.
7555 (tic6x-c64x-linux.c): Remove.
7556 (tic6x-c62x-linux.c): Remove.
7557 (reg-sh.c): Remove.
7558 (reg-sparc64.c): Remove.
7559 (reg-spu.c): Remove.
7560 (amd64.c): Remove.
7561 (amd64-linux.c): Remove.
7562 (amd64-avx.c): Remove.
7563 (amd64-avx-linux.c): Remove.
7564 (amd64-avx-avx512.c): Remove.
7565 (amd64-avx-avx512-linux.c): Remove.
7566 (amd64-mpx.c): Remove.
7567 (amd64-mpx-linux.c): Remove.
7568 (amd64-avx-mpx-avx512-pku.c): Remove.
7569 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
7570 (amd64-avx-mpx.c): Remove.
7571 (amd64-avx-mpx-linux.c): Remove.
7572 (x32.c): Remove.
7573 (x32-linux.c): Remove.
7574 (x32-avx.c): Remove.
7575 (x32-avx-linux.c): Remove.
7576 (x32-avx-avx512.c): Remove.
7577 (x32-avx-avx512-linux.c): Remove.
7578 (reg-xtensa.c): Remove.
7579 (reg-tilegx.c): Remove.
7580 (reg-tilegx32.c): Remove.
7581
7582 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
7583
7584 * Makefile.in (SFILES): Add "common/environ.c".
7585 (OBJS): Add "common/environ.h".
7586
7587 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7588
7589 * configure.ac: Check if the fs_base and gs_base members of
7590 `struct user_regs_struct' exist.
7591 * config.in: Regenerated.
7592 * configure: Likewise.
7593
7594 2017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
7595
7596 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
7597 target_read_memory.
7598 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
7599 (get_next_pcs_syscall_next_pc): Likewise.
7600
7601 2016-12-23 Luis Machado <lgustavo@codesourcery.com>
7602
7603 * win32-i386-low.c: Fix incorrect reference to a couple source files.
7604 * nto-x86-low.c: Likewise.
7605
7606 2016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
7607
7608 * Makefile.in: Include disable-implicit-rules.mk.
7609
7610 2016-11-23 Pedro Alves <palves@redhat.com>
7611
7612 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
7613 (debug_vprintf): Use std::chrono::steady_clock instead of
7614 gettimeofday. Use '.' instead of ':'.
7615 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
7616 (get_timestamp): Use std::chrono::steady_clock instead of
7617 gettimeofday.
7618
7619 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7620
7621 * Makefile.in: Fix whitespace formatting.
7622
7623 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7624
7625 * Makefile.in (SFILES, OBS): Flatten list and order
7626 alphabetically.
7627
7628 2016-11-23 Pedro Alves <palves@redhat.com>
7629
7630 * event-loop.c (handle_file_event): Use warning.
7631 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
7632 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
7633 Use warning.
7634
7635 2016-11-23 Pedro Alves <palves@redhat.com>
7636
7637 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
7638 output.
7639 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
7640 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
7641 debug_printf and debug_flush for debug output.
7642 * server.c (handle_general_set): Likewise.
7643 * thread-db.c (try_thread_db_load): Use debug_printf for debug
7644 output.
7645
7646 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7647
7648 * Makefile.in (.c.o): Replace rule with ...
7649 (%.o: %.c): ... this one.
7650
7651 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7652
7653 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
7654 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
7655 make.
7656 * configure.ac: Remove checks for the make program.
7657 * configure: Re-generate.
7658
7659 2016-10-28 Pedro Alves <palves@redhat.com>
7660
7661 * Makefile.in (CXX_DIALECT): Get from configure.
7662 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
7663 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
7664 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
7665 * config.in: Regenerate.
7666 * configure: Regenerate.
7667
7668 2016-10-27 Yao Qi <yao.qi@linaro.org>
7669
7670 * linux-low.c (linux_supports_range_stepping): Return true if
7671 can_software_single_step return true.
7672
7673 2016-10-27 Yao Qi <yao.qi@linaro.org>
7674
7675 * inferiors.c (find_inferior_in_random): New function.
7676 * inferiors.h (find_inferior_in_random): Declare.
7677 * linux-low.c (linux_wait_for_event_filtered): Call
7678 find_inferior_in_random instead of find_inferior.
7679
7680 2016-10-27 Yao Qi <yao.qi@linaro.org>
7681
7682 * linux-low.c (linux_wait_1): If single-step breakpoints are
7683 inserted, remove them.
7684
7685 2016-10-26 Pedro Alves <palves@redhat.com>
7686
7687 * linux-low.c (handle_extended_wait): Link parent/child fork
7688 threads.
7689 (linux_wait_1): Unlink them.
7690 (linux_set_resume_request): Ignore resume requests for
7691 already-resumed and unhandled fork child threads.
7692 * linux-low.h (struct lwp_info) <fork_relative>: New field.
7693 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
7694 New functions.
7695 (handle_v_requests) <vCont>: Don't call require_running.
7696 * server.h (in_queued_stop_replies): New declaration.
7697
7698 2016-10-24 Yao Qi <yao.qi@linaro.org>
7699
7700 PR server/20733
7701 * linux-aarch64-low.c (append_insns): Cast the return value to
7702 'uint32_t *'.
7703
7704 2016-10-10 Yao Qi <yao.qi@linaro.org>
7705
7706 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
7707
7708 2016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
7709
7710 * target.c (target_supports_multi_process): New function, moved
7711 from...
7712 * target.h (target_supports_multi_process): ... here. Remove
7713 macro.
7714
7715 2016-10-05 Tom Tromey <tom@tromey.com>
7716
7717 PR remote/20655:
7718 * tracepoint.c (handle_tracepoint_bkpts): Check
7719 ipa_error_tracepoint, not ipa_stopping_tracepoint.
7720
7721 2016-10-05 Yao Qi <yao.qi@linaro.org>
7722
7723 * configure.srv: Update the path of arm-*.xml files.
7724
7725 2016-10-05 Terry Guo <terry.guo@arm.com>
7726 Yao Qi <yao.qi@linaro.org>
7727
7728 * Makefile.in: Adjust the path of rules.
7729 * configure.srv: Update the path of xml files.
7730 * regformats/arm-with-iwmmxt.dat: Regenerated.
7731 * regformats/arm-with-neon.dat: Likewise.
7732 * regformats/arm-with-vfpv2.dat: Likewise.
7733 * regformats/arm-with-vfpv3.dat Likewise.
7734
7735 2016-09-30 Yao Qi <yao.qi@linaro.org>
7736
7737 PR gdbserver/20627
7738 * target.c (target_stop_and_wait): Don't call
7739 target_continue_no_signal, use resume_stop instead.
7740
7741 2016-09-26 Yao Qi <yao.qi@linaro.org>
7742
7743 * linux-low.c (linux_wait_1): Call debug_exit.
7744
7745 2016-09-23 Pedro Alves <palves@redhat.com>
7746
7747 * Makefile.in (SFILES): Add common/new-op.c.
7748 (OBS): Add common/new-op.o.
7749 (new-op.o): New rule.
7750
7751 2016-09-21 Simon Marchi <simon.marchi@ericsson.com>
7752
7753 * .gitinore: Ignore more files.
7754
7755 2016-09-21 Yao Qi <yao.qi@linaro.org>
7756
7757 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
7758 23.
7759
7760 2016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
7761
7762 * server.c (start_inferior): Call target_mourn_inferior instead of
7763 mourn_inferior; pass ptid_t argument to it.
7764 (resume): Likewise.
7765 (handle_target_event): Likewise.
7766 * target.c (target_mourn_inferior): New function.
7767 * target.h (mourn_inferior): Delete macro.
7768
7769 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
7770
7771 * linux-low.c (lwp_is_stepping): New function.
7772
7773 2016-09-06 Carl Love <cel@us.ibm.com>
7774
7775 * server.c (start_inferior): Fixed comment, requested comment change
7776 didn't get updated correctly. Removed reference to ptrace () call as
7777 it is only true on Linux systems.
7778
7779 2016-09-06 Carl Love <cel@us.ibm.com>
7780
7781 * server.c (start_inferior): Do not call
7782 function target_post_create_inferior () if the
7783 inferior process has already exited.
7784
7785 2016-09-05 Pedro Alves <palves@redhat.com>
7786
7787 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
7788 (COMPILE.pre, CC_LD): Use CXX directly.
7789 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
7790 * acinclude.m4: Don't include build-with-cxx.m4.
7791 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
7792 * configure: Regenerate.
7793
7794 2016-09-02 Akash Trehan <akash.trehan123@gmail.com>
7795
7796 PR gdb/19495
7797 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
7798 call writing data to own_buf.
7799
7800 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7801
7802 * target.c (mywait): Call target_wait instead of
7803 the_target->wait.
7804 (target_wait): New function.
7805
7806 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7807
7808 * server.c (start_inferior): New variable 'ptid'. Replace calls
7809 to the_target->resume by target_continue{,_no_signal}, depending
7810 on the case.
7811 * target.c (target_stop_and_wait): Call target_continue_no_signal
7812 instead of the_target->resume.
7813 (target_continue): New function.
7814
7815 2016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
7816
7817 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
7818
7819 2016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7820
7821 PR server/20491
7822 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
7823 ps_prochandle.
7824 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
7825 * linux-arm-low.c (ps_get_thread_area): Likewise.
7826 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
7827 * linux-m68k-low.c (ps_get_thread_area): Likewise.
7828 * linux-mips-low.c (ps_get_thread_area): Likewise.
7829 * linux-nios2-low.c (ps_get_thread_area): Likewise.
7830 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
7831 * linux-x86-low.c (ps_get_thread_area): Likewise.
7832 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
7833
7834 2016-08-19 Pedro Alves <palves@redhat.com>
7835
7836 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
7837
7838 2016-08-19 Pedro Alves <palves@redhat.com>
7839
7840 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
7841 comment. Use memcpy instead of casting through unsigned long.
7842
7843 2016-08-19 Pedro Alves <palves@redhat.com>
7844
7845 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
7846 allocating around 0x80000000.
7847
7848 2016-08-19 Pedro Alves <palves@redhat.com>
7849
7850 PR gdb/20415
7851 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
7852 (x32-avx512-linux-ipa.o): New rules.
7853 * configure.ac (x86_64-*-linux*): New x32 check.
7854 * configure.srv (ipa_x32_linux_regobj): New.
7855 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
7856 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
7857 descriptions.
7858 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
7859 descriptions.
7860 * configure: Regenerate.
7861
7862 2016-08-09 Pedro Alves <palves@redhat.com>
7863
7864 PR gdb/18653
7865 * Makefile.in (OBS): Add signals-state-save-restore.o.
7866 (signals-state-save-restore.o): New rule.
7867 * config.in: Regenerate.
7868 * configure: Regenerate.
7869 * linux-low.c: Include "signals-state-save-restore.h".
7870 (linux_create_inferior): Call
7871 restore_original_signals_state.
7872 * server.c: Include "dispositions-save-restore.h".
7873 (captured_main): Call save_original_signals_state.
7874
7875 2016-08-05 Pedro Alves <palves@redhat.com>
7876
7877 * configure: Regenerate.
7878
7879 2016-08-04 Yao Qi <yao.qi@linaro.org>
7880
7881 * linux-low.c (regsets_fetch_inferior_registers): Check
7882 errno is ESRCH or not.
7883
7884 2016-08-02 Yao Qi <yao.qi@linaro.org>
7885
7886 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
7887 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
7888 (thread_db_load_search): Update.
7889 (try_thread_db_load_1): Don't look for td_ta_event_addr,
7890 td_ta_set_event and td_ta_event_getmsg.
7891
7892 2016-07-26 Pedro Alves <palves@redhat.com>
7893
7894 PR server/20414
7895 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
7896 of unsigned long for 64-bit registers and use uint32_t instead of
7897 unsigned int for 32-bit registers.
7898
7899 2016-07-26 Pedro Alves <palves@redhat.com>
7900
7901 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
7902 to 'ptrace'.
7903
7904 2016-07-21 Tom Tromey <tom@tromey.com>
7905
7906 * configure: Rebuild.
7907
7908 2016-07-21 Yao Qi <yao.qi@linaro.org>
7909
7910 * mem-break.c (find_gdb_breakpoint): Cast bp to
7911 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
7912
7913 2016-07-21 Yao Qi <yao.qi@linaro.org>
7914
7915 * server.c (handle_v_requests): Support s and S actions
7916 if target_supports_software_single_step return true.
7917
7918 2016-07-21 Yao Qi <yao.qi@linaro.org>
7919
7920 * linux-low.c (resume_stopped_resumed_lwps): If resume request
7921 is resume_step, call maybe_hw_step.
7922 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
7923 and unstop them.
7924 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
7925 breakpoints or not.
7926 (proceed_one_lwp): If resume request is resume_step, install
7927 reinsert breakpoints and call maybe_hw_step.
7928
7929 2016-07-21 Yao Qi <yao.qi@linaro.org>
7930
7931 * linux-low.c (proceed_one_lwp): Declare.
7932 (linux_resume_one_thread): Remove local variable 'step'.
7933 Lift code enqueue signal. Call proceed_one_lwp instead of
7934 linux_resume_one_lwp.
7935
7936 2016-07-21 Yao Qi <yao.qi@linaro.org>
7937
7938 * linux-low.c (linux_resume_one_thread): Call
7939 enqueue_pending_signal.
7940
7941 2016-07-21 Yao Qi <yao.qi@linaro.org>
7942
7943 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
7944 * inferiors.c (do_restore_current_thread_cleanup): New function.
7945 (make_cleanup_restore_current_thread): Likewise.
7946 * linux-low.c (install_software_single_step_breakpoints): Call
7947 make_cleanup_restore_current_thread. Switch current_thread to
7948 thread.
7949
7950 2016-07-21 Yao Qi <yao.qi@linaro.org>
7951
7952 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
7953 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
7954 (clone_one_breakpoint): Likewise.
7955 (delete_reinsert_breakpoints): Change parameter to thread.
7956 Callers updated.
7957 (has_reinsert_breakpoints): Likewise.
7958 (uninsert_reinsert_breakpoints): Likewise.
7959 (reinsert_reinsert_breakpoints): Likewise.
7960 * mem-break.h (set_reinsert_breakpoint): Update declaration.
7961 (delete_reinsert_breakpoints): Likewise.
7962 (reinsert_reinsert_breakpoints): Likewise.
7963 (uninsert_reinsert_breakpoints): Likewise.
7964 (has_reinsert_breakpoints): Likewise.
7965
7966 2016-07-21 Yao Qi <yao.qi@linaro.org>
7967
7968 * inferiors.c (get_thread_process): Make parameter const.
7969 * inferiors.h (get_thread_process): Update declaration.
7970 * mem-break.c (clone_all_breakpoints): Remove all parameters.
7971 Add new parameters child_thread and parent_thread. Callers
7972 updated.
7973 * mem-break.h (clone_all_breakpoints): Update declaration.
7974
7975 2016-07-21 Yao Qi <yao.qi@linaro.org>
7976
7977 * mem-break.c (struct breakpoint) <cond_list>: Remove.
7978 <command_list, handler>: Remove.
7979 (struct gdb_breakpoint): New.
7980 (struct other_breakpoint): New.
7981 (struct reinsert_breakpoint): New.
7982 (is_gdb_breakpoint): New function.
7983 (any_persistent_commands): Update command_list if
7984 is_gdb_breakpoint returns true.
7985 (set_breakpoint): Create breakpoints according to their types.
7986 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
7987 (set_gdb_breakpoint_1): Likewise.
7988 (set_gdb_breakpoint): Likewise.
7989 (clear_breakpoint_conditions): Change parameter type to
7990 'struct gdb_breakpoint *'.
7991 (clear_breakpoint_commands): Likewise.
7992 (clear_breakpoint_conditions_and_commands): Likewise.
7993 (add_condition_to_breakpoint): Likewise.
7994 (add_breakpoint_condition): Likewise.
7995 (add_commands_to_breakpoint): Likewise.
7996 (check_breakpoints): Check other_breakpoint.
7997 (clone_one_breakpoint): Clone breakpopint according to its type.
7998 * mem-break.h (struct gdb_breakpoint): Declare.
7999 (set_gdb_breakpoint): Update declaration.
8000 (clear_breakpoint_conditions_and_commands): Likewise.
8001 (add_breakpoint_condition): Likewise.
8002 (add_breakpoint_commands): Likewise.
8003 * server.c (process_point_options): Change parameter type to
8004 'struct gdb_breakpoint *'.
8005
8006 2016-07-21 Yao Qi <yao.qi@linaro.org>
8007
8008 * mem-break.c (set_breakpoint_at): Rename it to ...
8009 (set_breakpoint_type_at): ... it.
8010 (set_breakpoint_at): Call set_breakpoint_type_at.
8011 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
8012 * mem-break.h (set_breakpoint_at): Update comments.
8013
8014 2016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
8015
8016 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
8017 to buf parameter.
8018 (nios2_store_gregset): Likewise.
8019
8020 2016-07-01 Pedro Alves <palves@redhat.com>
8021 Antoine Tremblay <antoine.tremblay@ericsson.com>
8022
8023 * linux-low.c: Change interface to take the target lwp_info
8024 pointer directly and return void. Handle detaching from a zombie
8025 thread.
8026 (linux_detach_lwp_callback): New function.
8027 (linux_detach): Detach from the leader thread after detaching from
8028 the clone threads.
8029
8030 2016-06-28 Yao Qi <yao.qi@linaro.org>
8031
8032 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
8033 for variable new_offset.
8034 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
8035 (aarch64_ftrace_insn_reloc_cb): Likewise.
8036 (aarch64_ftrace_insn_reloc_tb): Likewise.
8037 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
8038 PRIx64 instead of PRIx32.
8039
8040 2016-06-28 Yao Qi <yao.qi@linaro.org>
8041
8042 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
8043 (the_low_target): Install arm_get_syscall_trapinfo.
8044
8045 2016-06-28 Yao Qi <yao.qi@linaro.org>
8046
8047 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
8048 function.
8049 (the_low_target): Install aarch64_get_syscall_trapinfo.
8050
8051 2016-06-28 Yao Qi <yao.qi@linaro.org>
8052
8053 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
8054 Callers updated.
8055 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
8056 Remove parameter sysno.
8057 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
8058 sysret.
8059
8060 2016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8061
8062 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
8063 (s390_emit_ne_goto): Likewise.
8064 (s390_emit_lt_goto): Likewise.
8065 (s390_emit_le_goto): Likewise.
8066 (s390_emit_gt_goto): Likewise.
8067 (s390_emit_ge_goto): Likewise.
8068 (s390x_emit_eq_goto): Likewise.
8069 (s390x_emit_ne_goto): Likewise.
8070 (s390x_emit_lt_goto): Likewise.
8071 (s390x_emit_le_goto): Likewise.
8072 (s390x_emit_gt_goto): Likewise.
8073 (s390x_emit_ge_goto): Likewise.
8074 (s390_emit_ops_impl): Mark variable static.
8075 (s390x_emit_ops): Likewise.
8076
8077 2016-06-17 Yao Qi <yao.qi@linaro.org>
8078
8079 * linux-low.c (handle_extended_wait): Call
8080 uninsert_reinsert_breakpoints for the parent process. Remove
8081 reinsert breakpoints from the child process. Reinsert them to
8082 the parent process when vfork is done.
8083 * mem-break.c (uninsert_reinsert_breakpoints): New function.
8084 (reinsert_reinsert_breakpoints): New function.
8085 * mem-break.h (uninsert_reinsert_breakpoints): Declare
8086 (reinsert_reinsert_breakpoints): Declare.
8087
8088 2016-06-17 Yao Qi <yao.qi@linaro.org>
8089
8090 * linux-low.c (handle_extended_wait): If the parent is doing
8091 step-over, remove the reinsert breakpoints from the forked child.
8092
8093 2016-06-17 Yao Qi <yao.qi@linaro.org>
8094
8095 * linux-low.c (unsuspend_all_lwps): Declare.
8096 (linux_low_filter_event): If thread exited, call finish_step_over.
8097 If step-over is finished, unsuspend other threads.
8098
8099 2016-06-17 Yao Qi <yao.qi@linaro.org>
8100
8101 * linux-low.c (linux_resume_one_lwp_throw): Assert
8102 has_reinsert_breakpoints returns false.
8103 * mem-break.c (delete_disabled_breakpoints): Assert
8104 bp type isn't reinsert_breakpoint.
8105
8106 2016-06-17 Yao Qi <yao.qi@linaro.org>
8107
8108 * linux-low.c (maybe_hw_step): New function.
8109 (linux_resume_one_lwp_throw): Call maybe_hw_step.
8110 (finish_step_over): Switch current_thread to lwp temporarily,
8111 and assert has_reinsert_breakpoints returns true.
8112 (proceed_one_lwp): Call maybe_hw_step.
8113 * mem-break.c (has_reinsert_breakpoints): New function.
8114 * mem-break.h (has_reinsert_breakpoints): Declare.
8115
8116 2016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
8117
8118 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
8119
8120 2016-05-17 Yao Qi <yao.qi@linaro.org>
8121
8122 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
8123 instead of find_inferior.
8124
8125 2016-05-05 Yao Qi <yao.qi@linaro.org>
8126
8127 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
8128 Initialize res to zero.
8129
8130 2016-05-05 Yao Qi <yao.qi@linaro.org>
8131
8132 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
8133 to uint32_t.
8134
8135 2016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8136
8137 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
8138 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
8139 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
8140
8141 2016-04-28 Par Olsson <par.olsson@windriver.com>
8142 Simon Marchi <simon.marchi@ericsson.com>
8143
8144 * tracepoint.c (write_inferior_int8): New function.
8145 (cmd_qtenable_disable): Write enable flag using
8146 write_inferior_int8.
8147
8148 2016-04-25 Yao Qi <yao.qi@linaro.org>
8149
8150 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
8151 (need_step_over_p): Return zero if the LWP has pending signals
8152 can be delivered on software single step target.
8153
8154 2016-04-25 Yao Qi <yao.qi@linaro.org>
8155
8156 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
8157 return instead of error.
8158
8159 2016-04-22 Yao Qi <yao.qi@linaro.org>
8160
8161 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
8162 to 23.
8163
8164 2016-04-22 Yao Qi <yao.qi@linaro.org>
8165
8166 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
8167 signal when stepping over breakpoint with software single
8168 step.
8169
8170 2016-04-21 Pedro Alves <palves@redhat.com>
8171
8172 * linux-s390-low.c (s390_collect_ptrace_register)
8173 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
8174 add casts.
8175 (s390_check_regset): Use void * instead of gdb_byte *.
8176
8177 2016-04-20 Pedro Alves <palves@redhat.com>
8178
8179 * configure: Renegerate.
8180
8181 2016-04-20 Yao Qi <yao.qi@linaro.org>
8182
8183 * linux-aarch32-low.c: Include "arch/arm-linux.h".
8184 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
8185 number 16.
8186 (arm_store_gregset): Likewise.
8187
8188 2016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
8189
8190 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
8191 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
8192 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
8193 (amd64-avx-mpx-linux.c): New rules.
8194 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
8195 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
8196 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
8197 (srv_amd64_regobj): Add amd64-avx-mpx.o.
8198 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
8199 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
8200 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
8201 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
8202 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
8203 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
8204 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
8205 * linux-x86-low.c (x86_linux_read_description): Add case for
8206 X86_XSTATE_AVX_MPX_MASK.
8207 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
8208 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
8209 init_registers_i386_avx_mpx_linux.
8210 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8211 (initialize_low_tracepoint): Call
8212 init_registers_i386_avx_mpx_linux.
8213 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8214 (initialize_low_tracepoint): Call
8215 init_registers_amd64_avx_mpx_linux.
8216 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
8217 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
8218 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
8219 declarations.
8220
8221 2016-04-18 Pedro Alves <palves@redhat.com>
8222
8223 * configure: Regenerate.
8224
8225 2016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
8226
8227 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
8228 (aarch64_emit_sub): Likewise.
8229
8230 2016-04-12 Pedro Alves <palves@redhat.com>
8231
8232 * utils.c (prepare_to_throw_exception): Delete.
8233
8234 2016-04-05 Simon Marchi <simon.marchi@ericsson.com>
8235
8236 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
8237
8238 2016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
8239
8240 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
8241
8242 2016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
8243
8244 * linux-aarch64-ipa.c: Add <elf.h> include.
8245 * linux-ppc-ipa.c: Add <elf.h> include.
8246 * linux-s390-ipa.c: Add <elf.h> include.
8247
8248 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8249
8250 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
8251 (get_raw_reg_ptr): Likewise.
8252 (get_trace_state_variable_value_ptr): Likewise.
8253 (set_trace_state_variable_value_ptr): Likewise.
8254 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
8255 char *.
8256
8257 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
8258 Marcin Kościelnicki <koriakin@0x04.net>
8259
8260 PR/17221
8261 * linux-ppc-low.c (emit_insns): New function.
8262 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
8263 (ppc_emit_prologue): New function.
8264 (ppc_emit_epilogue): New function.
8265 (ppc_emit_add): New function.
8266 (ppc_emit_sub): New function.
8267 (ppc_emit_mul): New function.
8268 (ppc_emit_lsh): New function.
8269 (ppc_emit_rsh_signed): New function.
8270 (ppc_emit_rsh_unsigned): New function.
8271 (ppc_emit_ext): New function.
8272 (ppc_emit_zero_ext): New function.
8273 (ppc_emit_log_not): New function.
8274 (ppc_emit_bit_and): New function.
8275 (ppc_emit_bit_or): New function.
8276 (ppc_emit_bit_xor): New function.
8277 (ppc_emit_bit_not): New function.
8278 (ppc_emit_equal): New function.
8279 (ppc_emit_less_signed): New function.
8280 (ppc_emit_less_unsigned): New function.
8281 (ppc_emit_ref): New function.
8282 (ppc_emit_const): New function.
8283 (ppc_emit_reg): New function.
8284 (ppc_emit_pop): New function.
8285 (ppc_emit_stack_flush): New function.
8286 (ppc_emit_swap): New function.
8287 (ppc_emit_stack_adjust): New function.
8288 (ppc_emit_call): New function.
8289 (ppc_emit_int_call_1): New function.
8290 (ppc_emit_void_call_2): New function.
8291 (ppc_emit_if_goto): New function.
8292 (ppc_emit_goto): New function.
8293 (ppc_emit_eq_goto): New function.
8294 (ppc_emit_ne_goto): New function.
8295 (ppc_emit_lt_goto): New function.
8296 (ppc_emit_le_goto): New function.
8297 (ppc_emit_gt_goto): New function.
8298 (ppc_emit_ge_goto): New function.
8299 (ppc_write_goto_address): New function.
8300 (ppc_emit_ops_impl): New static variable.
8301 (ppc64v1_emit_prologue): New function.
8302 (ppc64v2_emit_prologue): New function.
8303 (ppc64_emit_epilogue): New function.
8304 (ppc64_emit_add): New function.
8305 (ppc64_emit_sub): New function.
8306 (ppc64_emit_mul): New function.
8307 (ppc64_emit_lsh): New function.
8308 (ppc64_emit_rsh_signed): New function.
8309 (ppc64_emit_rsh_unsigned): New function.
8310 (ppc64_emit_ext): New function.
8311 (ppc64_emit_zero_ext): New function.
8312 (ppc64_emit_log_not): New function.
8313 (ppc64_emit_bit_and): New function.
8314 (ppc64_emit_bit_or): New function.
8315 (ppc64_emit_bit_xor): New function.
8316 (ppc64_emit_bit_not): New function.
8317 (ppc64_emit_equal): New function.
8318 (ppc64_emit_less_signed): New function.
8319 (ppc64_emit_less_unsigned): New function.
8320 (ppc64_emit_ref): New function.
8321 (ppc64_emit_const): New function.
8322 (ppc64v1_emit_reg): New function.
8323 (ppc64v2_emit_reg): New function.
8324 (ppc64_emit_pop): New function.
8325 (ppc64_emit_stack_flush): New function.
8326 (ppc64_emit_swap): New function.
8327 (ppc64v1_emit_call): New function.
8328 (ppc64v2_emit_call): New function.
8329 (ppc64v1_emit_int_call_1): New function.
8330 (ppc64v2_emit_int_call_1): New function.
8331 (ppc64v1_emit_void_call_2): New function.
8332 (ppc64v2_emit_void_call_2): New function.
8333 (ppc64_emit_if_goto): New function.
8334 (ppc64_emit_eq_goto): New function.
8335 (ppc64_emit_ne_goto): New function.
8336 (ppc64_emit_lt_goto): New function.
8337 (ppc64_emit_le_goto): New function.
8338 (ppc64_emit_gt_goto): New function.
8339 (ppc64_emit_ge_goto): New function.
8340 (ppc64v1_emit_ops_impl): New static variable.
8341 (ppc64v2_emit_ops_impl): New static variable.
8342 (ppc_emit_ops): New function.
8343 (linux_low_target): Wire in ppc_emit_ops.
8344
8345 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
8346 Marcin Kościelnicki <koriakin@0x04.net>
8347
8348 PR/17221
8349 * Makefile.in: Add powerpc-*-ipa.o
8350 * configure.srv: Add ipa_obj for powerpc*-linux.
8351 * linux-ppc-ipa.c: New file.
8352 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
8353 includes.
8354 (PPC_FIELD): New macro.
8355 (PPC_SEXT): New macro.
8356 (PPC_OP6): New macro.
8357 (PPC_BO): New macro.
8358 (PPC_LI): New macro.
8359 (PPC_BD): New macro.
8360 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
8361 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
8362 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
8363 (ppc_get_thread_area): New function.
8364 (is_elfv2_inferior): New function.
8365 (gen_ds_form): New function.
8366 (GEN_STD): New macro.
8367 (GEN_STDU): New macro.
8368 (GEN_LD): New macro.
8369 (GEN_LDU): New macro.
8370 (gen_d_form): New function.
8371 (GEN_ADDI): New macro.
8372 (GEN_ADDIS): New macro.
8373 (GEN_LI): New macro.
8374 (GEN_LIS): New macro.
8375 (GEN_ORI): New macro.
8376 (GEN_ORIS): New macro.
8377 (GEN_LWZ): New macro.
8378 (GEN_STW): New macro.
8379 (GEN_STWU): New macro.
8380 (gen_xfx_form): New function.
8381 (GEN_MFSPR): New macro.
8382 (GEN_MTSPR): New macro.
8383 (GEN_MFCR): New macro.
8384 (GEN_MTCR): New macro.
8385 (GEN_SYNC): New macro.
8386 (GEN_LWSYNC): New macro.
8387 (gen_x_form): New function.
8388 (GEN_OR): New macro.
8389 (GEN_MR): New macro.
8390 (GEN_LWARX): New macro.
8391 (GEN_STWCX): New macro.
8392 (GEN_CMPW): New macro.
8393 (gen_md_form): New function.
8394 (GEN_RLDICL): New macro.
8395 (GEN_RLDICR): New macro.
8396 (gen_i_form): New function.
8397 (GEN_B): New macro.
8398 (GEN_BL): New macro.
8399 (gen_b_form): New function.
8400 (GEN_BNE): New macro.
8401 (GEN_LOAD): New macro.
8402 (GEN_STORE): New macro.
8403 (gen_limm): New function.
8404 (gen_atomic_xchg): New function.
8405 (gen_call): New function.
8406 (ppc_relocate_instruction): New function.
8407 (ppc_install_fast_tracepoint_jump_pad): New function.
8408 (ppc_get_min_fast_tracepoint_insn_len): New function.
8409 (ppc_get_ipa_tdesc_idx): New function.
8410 (the_low_target): Wire in the new functions.
8411 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
8412 tdescs.
8413 * linux-ppc-tdesc.h: New file.
8414
8415 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8416
8417 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8418 (alloc_jump_pad_buffer): New function.
8419 * linux-amd64-ipa.c: Add <sys/mman.h> include.
8420 (alloc_jump_pad_buffer): New function.
8421 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
8422 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8423 (alloc_jump_pad_buffer): New function.
8424 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
8425 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
8426 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
8427 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
8428
8429 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8430
8431 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
8432 * linux-amd64-ipa.c: Likewise.
8433 * linux-i386-ipa.c: Likewise.
8434 * linux-s390-ipa.c: Likewise.
8435 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
8436 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
8437 set_trace_state_variable_value_ptr.
8438 (struct ipa_sym_addresses): Likewise.
8439 (symbol_list): Likewise.
8440 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
8441 accessing gdb_collect directly.
8442 (gdb_collect_ptr_type): New typedef.
8443 (get_raw_reg_ptr_type): New typedef.
8444 (get_trace_state_variable_value_ptr_type): New typedef.
8445 (set_trace_state_variable_value_ptr_type): New typedef.
8446 (gdb_collect_ptr): New global.
8447 (get_raw_reg_ptr): New global.
8448 (get_trace_state_variable_value_ptr): New global.
8449 (set_trace_state_variable_value_ptr): New global.
8450 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
8451 accessing get_raw_reg directly.
8452 (get_get_tsv_func_addr): Likewise for
8453 get_trace_state_variable_value_ptr.
8454 (get_set_tsv_func_addr): Likewise for
8455 set_trace_state_variable_value_ptr.
8456 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
8457
8458 2016-03-30 Simon Marchi <simon.marchi@ericsson.com>
8459
8460 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
8461
8462 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8463
8464 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
8465 packets.
8466 (relocate_instruction): Remove own_buf.
8467 * server.c (own_buf): Make global.
8468 (handle_v_requests): Make global.
8469 * server.h (own_buf): New declaration.
8470 (handle_v_requests): New prototype.
8471
8472 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8473
8474 PR 18377
8475 * linux-s390-low.c (add_insns): New function.
8476 (s390_emit_prologue): New function.
8477 (s390_emit_epilogue): New function.
8478 (s390_emit_add): New function.
8479 (s390_emit_sub): New function.
8480 (s390_emit_mul): New function.
8481 (s390_emit_lsh): New function.
8482 (s390_emit_rsh_signed): New function.
8483 (s390_emit_rsh_unsigned): New function.
8484 (s390_emit_ext): New function.
8485 (s390_emit_log_not): New function.
8486 (s390_emit_bit_and): New function.
8487 (s390_emit_bit_or): New function.
8488 (s390_emit_bit_xor): New function.
8489 (s390_emit_bit_not): New function.
8490 (s390_emit_equal): New function.
8491 (s390_emit_less_signed): New function.
8492 (s390_emit_less_unsigned): New function.
8493 (s390_emit_ref): New function.
8494 (s390_emit_if_goto): New function.
8495 (s390_emit_goto): New function.
8496 (s390_write_goto_address): New function.
8497 (s390_emit_litpool): New function.
8498 (s390_emit_const): New function.
8499 (s390_emit_call): New function.
8500 (s390_emit_reg): New function.
8501 (s390_emit_pop): New function.
8502 (s390_emit_stack_flush): New function.
8503 (s390_emit_zero_ext): New function.
8504 (s390_emit_swap): New function.
8505 (s390_emit_stack_adjust): New function.
8506 (s390_emit_set_r2): New function.
8507 (s390_emit_int_call_1): New function.
8508 (s390_emit_void_call_2): New function.
8509 (s390_emit_eq_goto): New function.
8510 (s390_emit_ne_goto): New function.
8511 (s390_emit_lt_goto): New function.
8512 (s390_emit_le_goto): New function.
8513 (s390_emit_gt_goto): New function.
8514 (s390_emit_ge_goto): New function.
8515 (s390x_emit_prologue): New function.
8516 (s390x_emit_epilogue): New function.
8517 (s390x_emit_add): New function.
8518 (s390x_emit_sub): New function.
8519 (s390x_emit_mul): New function.
8520 (s390x_emit_lsh): New function.
8521 (s390x_emit_rsh_signed): New function.
8522 (s390x_emit_rsh_unsigned): New function.
8523 (s390x_emit_ext): New function.
8524 (s390x_emit_log_not): New function.
8525 (s390x_emit_bit_and): New function.
8526 (s390x_emit_bit_or): New function.
8527 (s390x_emit_bit_xor): New function.
8528 (s390x_emit_bit_not): New function.
8529 (s390x_emit_equal): New function.
8530 (s390x_emit_less_signed): New function.
8531 (s390x_emit_less_unsigned): New function.
8532 (s390x_emit_ref): New function.
8533 (s390x_emit_if_goto): New function.
8534 (s390x_emit_const): New function.
8535 (s390x_emit_call): New function.
8536 (s390x_emit_reg): New function.
8537 (s390x_emit_pop): New function.
8538 (s390x_emit_stack_flush): New function.
8539 (s390x_emit_zero_ext): New function.
8540 (s390x_emit_swap): New function.
8541 (s390x_emit_stack_adjust): New function.
8542 (s390x_emit_int_call_1): New function.
8543 (s390x_emit_void_call_2): New function.
8544 (s390x_emit_eq_goto): New function.
8545 (s390x_emit_ne_goto): New function.
8546 (s390x_emit_lt_goto): New function.
8547 (s390x_emit_le_goto): New function.
8548 (s390x_emit_gt_goto): New function.
8549 (s390x_emit_ge_goto): New function.
8550 (s390_emit_ops): New function.
8551 (struct linux_target_ops): Fill in emit_ops hook.
8552
8553 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8554
8555 PR 18377
8556 * Makefile.in: Add s390 IPA files.
8557 * configure.srv: Build IPA for s390.
8558 * linux-s390-ipa.c: New file.
8559 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
8560 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
8561 (tdesc_s390_linux32): Likewise.
8562 (init_registers_s390_linux32v1): Likewise.
8563 (tdesc_s390_linux32v1): Likewise.
8564 (init_registers_s390_linux32v2): Likewise.
8565 (tdesc_s390_linux32v2): Likewise.
8566 (init_registers_s390_linux64): Likewise.
8567 (tdesc_s390_linux64): Likewise.
8568 (init_registers_s390_linux64v1): Likewise.
8569 (tdesc_s390_linux64v1): Likewise.
8570 (init_registers_s390_linux64v2): Likewise.
8571 (tdesc_s390_linux64v2): Likewise.
8572 (init_registers_s390_te_linux64): Likewise.
8573 (tdesc_s390_te_linux64): Likewise.
8574 (init_registers_s390_vx_linux64): Likewise.
8575 (tdesc_s390_vx_linux64): Likewise.
8576 (init_registers_s390_tevx_linux64): Likewise.
8577 (tdesc_s390_tevx_linux64): Likewise.
8578 (init_registers_s390x_linux64): Likewise.
8579 (tdesc_s390x_linux64): Likewise.
8580 (init_registers_s390x_linux64v1): Likewise.
8581 (tdesc_s390x_linux64v1): Likewise.
8582 (init_registers_s390x_linux64v2): Likewise.
8583 (tdesc_s390x_linux64v2): Likewise.
8584 (init_registers_s390x_te_linux64): Likewise.
8585 (tdesc_s390x_te_linux64): Likewise.
8586 (init_registers_s390x_vx_linux64): Likewise.
8587 (tdesc_s390x_vx_linux64): Likewise.
8588 (init_registers_s390x_tevx_linux64): Likewise.
8589 (tdesc_s390x_tevx_linux64): Likewise.
8590 (have_hwcap_s390_vx): New static variable.
8591 (s390_arch_setup): Fill have_hwcap_s390_vx.
8592 (s390_get_thread_area): New function.
8593 (s390_ft_entry_gpr_esa): New const.
8594 (s390_ft_entry_gpr_zarch): New const.
8595 (s390_ft_entry_misc): New const.
8596 (s390_ft_entry_fr): New const.
8597 (s390_ft_entry_vr): New const.
8598 (s390_ft_main_31): New const.
8599 (s390_ft_main_64): New const.
8600 (s390_ft_exit_fr): New const.
8601 (s390_ft_exit_vr): New const.
8602 (s390_ft_exit_misc): New const.
8603 (s390_ft_exit_gpr_esa): New const.
8604 (s390_ft_exit_gpr_zarch): New const.
8605 (append_insns): New function.
8606 (s390_relocate_instruction): New function.
8607 (s390_install_fast_tracepoint_jump_pad): New function.
8608 (s390_get_min_fast_tracepoint_insn_len): New function.
8609 (s390_get_ipa_tdesc_idx): New function.
8610 (struct linux_target_ops): Wire in the above functions.
8611 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
8612 * linux-s390-tdesc.h: New file.
8613
8614 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8615
8616 * linux-s390-low.c (s390_supports_tracepoints): New function.
8617 (struct linux_target_ops): Fill supports_tracepoints hook.
8618
8619 2016-03-18 Yao Qi <yao.qi@linaro.org>
8620
8621 * linux-low.c (lwp_signal_can_be_delivered): New function.
8622 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
8623
8624 2016-03-18 Yao Qi <yao.qi@linaro.org>
8625
8626 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
8627 0 if signal is enqueued. Remove 'signal' from one debugging
8628 message. Move one debugging message to some lines below.
8629 Remove code setting 'signal' to 0.
8630
8631 2016-03-18 Yao Qi <yao.qi@linaro.org>
8632
8633 * linux-low.c (linux_low_filter_event): Remove redundant
8634 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
8635
8636 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
8637
8638 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
8639 (struct linux_target_ops): Wire in the above.
8640
8641 2016-03-03 Yao Qi <yao.qi@linaro.org>
8642
8643 * linux-low.c: Update comments to start_step_over.
8644
8645 2016-03-03 Yao Qi <yao.qi@linaro.org>
8646
8647 PR server/19736
8648 * linux-low.c (handle_extended_wait): Set child suspended
8649 if event_lwp->bp_reinsert isn't zero.
8650
8651 2016-03-02 Yao Qi <yao.qi@linaro.org>
8652
8653 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
8654 enqueue_pending_signal.
8655
8656 2016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
8657
8658 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
8659 is actually loaded.
8660
8661 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8662
8663 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
8664 (s390_regmap_3264) [!__s390x__]: New global.
8665 (s390_collect_ptrace_register): Skip map entries containing -1.
8666 (s390_supply_ptrace_register): Ditto.
8667 (s390_fill_gprs_high): New function.
8668 (s390_store_gprs_high): New function.
8669 (s390_regsets): Add NT_S390_HIGH_GPRS.
8670 (s390_get_hwcap): Enable on 31-bit.
8671 (have_hwcap_s390_high_gprs): Enable on 31-bit.
8672 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
8673 Detect NT_S390_HIGH_GPRS.
8674 (s390_usrregs_info_3264): Enable on 31-bit.
8675 (s390_regs_info): Enable regs_info_3264 on 31-bit.
8676 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
8677
8678 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8679
8680 PR gdb/13808
8681 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
8682 * configure.srv: Ditto.
8683 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
8684 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
8685 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
8686 (init_registers_amd64_linux): Remove prototype.
8687 (tdesc_amd64_linux): Remove declaration.
8688 (get_ipa_tdesc): New function.
8689 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8690 initialize remaining tdescs.
8691 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
8692 (init_registers_i386_linux): Remove prototype.
8693 (tdesc_i386_linux): Remove declaration.
8694 (get_ipa_tdesc): New function.
8695 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8696 initialize remaining tdescs.
8697 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
8698 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
8699 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
8700 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
8701 (x86_get_ipa_tdesc_idx): New function.
8702 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
8703 * linux-x86-tdesc.h: New file.
8704 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
8705 (target_get_ipa_tdesc_idx): New macro.
8706 * tracepoint.c (ipa_tdesc_idx): New macro.
8707 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
8708 (symbol_list): Add ipa_tdesc_idx.
8709 (cmd_qtstart): Write ipa_tdesc_idx in the target.
8710 (ipa_tdesc): Remove.
8711 (ipa_tdesc_idx): New variable.
8712 (get_context_regcache): Use get_ipa_tdesc.
8713 (gdb_collect): Ditto.
8714 (gdb_probe): Ditto.
8715 * tracepoint.h (get_ipa_tdesc): New prototype.
8716 (ipa_tdesc): Remove.
8717
8718 2016-02-24 Pedro Alves <palves@redhat.com>
8719
8720 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
8721 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
8722 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
8723 Factor out common code between the USE_SIGTRAP_SIGINFO and
8724 !USE_SIGTRAP_SIGINFO blocks.
8725 (linux_low_filter_event): Call save_stop_reason instead of
8726 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
8727 Update comments.
8728 (linux_wait_1): Update comments.
8729
8730 2016-02-24 Wei-cheng Wang <cole945@gmail.com>
8731
8732 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
8733 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
8734 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
8735 ppc_insert_point, ppc_remove_point.
8736
8737 2016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
8738
8739 * linux-s390-low.c (s390_supports_z_point_type): New function.
8740 (struct linux_target_ops): Wire s390_supports_z_point_type in.
8741
8742 2016-02-16 Yao Qi <yao.qi@linaro.org>
8743
8744 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
8745 PC. Get pc from regcache_read_pc.
8746
8747 2016-02-12 Yao Qi <yao.qi@linaro.org>
8748
8749 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
8750 or linux_get_pc_32bit.
8751 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
8752
8753 2016-02-12 Yao Qi <yao.qi@linaro.org>
8754
8755 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
8756 arm_linux_get_next_pcs_fixup.
8757
8758 2016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
8759
8760 * tracepoint.c (x_tracepoint_action_download): Change
8761 write_inferior_data_ptr to write_inferior_data_pointer.
8762 (cmd_qtstart): Likewise.
8763 (write_inferior_data_ptr): Remove.
8764 (download_agent_expr): Change write_inferior_data_ptr to
8765 write_inferior_data_pointer.
8766 (download_tracepoint_1): Likewise.
8767 (download_tracepoint): Likewise.
8768 (download_trace_state_variables): Likewise.
8769
8770 2016-02-11 Wei-cheng Wang <cole945@gmail.com>
8771 Marcin Kościelnicki <koriakin@0x04.net>
8772
8773 * tracepoint.c (struct tracepoint_action_ops): Remove.
8774 (struct tracepoint_action): Remove ops.
8775 (m_tracepoint_action_download, r_tracepoint_action_download)
8776 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
8777 size and offset accordingly.
8778 (m_tracepoint_action_ops, r_tracepoint_action_ops)
8779 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
8780 (tracepoint_action_send, tracepoint_action_download): New functions.
8781 Helpers for trace action handlers.
8782 (add_tracepoint_action): Remove setup actions ops.
8783 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
8784
8785 2016-02-10 Yao Qi <yao.qi@linaro.org>
8786
8787 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
8788
8789 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8790
8791 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
8792 to AC_OUTPUT.
8793 * configure: Regenerate.
8794
8795 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8796
8797 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
8798 void * to gdb_byte *.
8799 * linux-low.c (siginfo_fixup): Likewise.
8800 (linux_xfer_siginfo): Likewise.
8801 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
8802 Likewise.
8803 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
8804
8805 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
8806
8807 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
8808 to srv_tgtobj.
8809 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
8810 to srv_tgtobj.
8811 * linux-x86-low.c [__x86_64__]: Include
8812 "nat/amd64-linux-siginfo.h".
8813 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
8814 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
8815 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
8816 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
8817 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
8818 (cpt_si_fd, si_timerid, si_overrun): Move from
8819 nat/amd64-linux-siginfo.c.
8820 * Makefile.in (amd64-linux-siginfo.o:): New rule.
8821
8822 2016-01-28 Simon Marchi <simon.marchi@ericsson.com>
8823
8824 * server.c (skip_to_semicolon): Remove.
8825 (process_point_options): Use strchrnul instead of
8826 skip_to_semicolon.
8827
8828 2016-01-26 Yao Qi <yao.qi@linaro.org>
8829
8830 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
8831 * linux-low.c (install_software_single_step_breakpoints): Don't
8832 call regcache_read_pc.
8833 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
8834 argument pc.
8835
8836 2016-01-26 Yao Qi <yao.qi@linaro.org>
8837
8838 * linux-low.c (install_software_single_step_breakpoints): Call
8839 regcache_read_pc instead of get_pc.
8840
8841 2016-01-26 Yao Qi <yao.qi@linaro.org>
8842
8843 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
8844 (unblock_async_io): Rename to ...
8845 (block_unblock_async_io): ... it. New function.
8846 (enable_async_io): Don't install SIGIO handler. Unblock it
8847 instead.
8848 (disable_async_io): Don't ignore SIGIO. Block it instead.
8849 (initialize_async_io): Install SIGIO handler. Don't call
8850 unblock_async_io.
8851
8852 2016-01-26 Yao Qi <yao.qi@linaro.org>
8853
8854 * remote-utils.c (getpkt): If the buffer isn't empty, and the
8855 first character is '\003', call *the_target->request_interrupt.
8856
8857 2016-01-25 Yao Qi <yao.qi@linaro.org>
8858
8859 * remote-utils.c (new_thread_notify): Remove.
8860 (dead_thread_notify): Likewise.
8861 * remote-utils.h (new_thread_notify): Remove declaration.
8862 (dead_thread_notify): Likewise.
8863
8864 2016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
8865
8866 * gdb.trace/pending.exp: Fix expected message on continue.
8867
8868 2016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
8869
8870 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
8871 it works properly on big-endian machines where sizeof (CORE_ADDR)
8872 != sizeof (void *).
8873
8874 2016-01-21 Pedro Alves <palves@redhat.com>
8875
8876 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
8877 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
8878 * configure: Regenerate.
8879
8880 2016-01-21 Yao Qi <yao.qi@linaro.org>
8881
8882 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
8883 is_thumb and set it according to CPSR saved on the stack.
8884 (get_next_pcs_syscall_next_pc): Pass is_thumb to
8885 arm_sigreturn_next_pc.
8886
8887 2016-01-18 Yao Qi <yao.qi@linaro.org>
8888
8889 * linux-low.c (linux_set_pc_64bit): New function.
8890 (linux_get_pc_64bit): New function.
8891 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
8892 Declare.
8893 * linux-sparc-low.c (debug_threads): Remove declaration.
8894 (sparc_get_pc): Remove.
8895 (the_low_target): Use linux_get_pc_64bit instead of
8896 sparc_get_pc.
8897 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
8898 (the_low_target): Use linux_get_pc_64bit and
8899 linux_set_pc_64bit.
8900
8901 2016-01-18 Yao Qi <yao.qi@linaro.org>
8902
8903 * linux-arm-low.c (debug_threads): Remove declaration.
8904 (arm_get_pc, arm_set_pc): Remove.
8905 (the_low_target): Use linux_get_pc_32bit and
8906 linux_set_pc_32bit.
8907 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
8908 (the_low_target): Use linux_get_pc_32bit and
8909 linux_set_pc_32bit.
8910 * linux-cris-low.c (debug_threads): Remove declaration.
8911 (cris_get_pc, cris_set_pc,): Remove.
8912 (the_low_target): Use linux_get_pc_32bit and
8913 linux_set_pc_32bit.
8914 * linux-crisv32-low.c (debug_threads): Remove declaration.
8915 (cris_get_pc, cris_set_pc): Remove.
8916 (the_low_target): Use linux_get_pc_32bit and
8917 linux_set_pc_32bit.
8918 * linux-low.c: Include inttypes.h.
8919 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
8920 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
8921 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
8922 (the_low_target): Use linux_get_pc_32bit and
8923 linux_set_pc_32bit.
8924 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
8925 (the_low_target): Use linux_get_pc_32bit and
8926 linux_set_pc_32bit.
8927 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
8928 (the_low_target): Use linux_get_pc_32bit and
8929 linux_set_pc_32bit.
8930 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
8931 (the_low_target): Use linux_get_pc_32bit and
8932 linux_set_pc_32bit.
8933 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
8934 (the_low_target): Use linux_get_pc_32bit and
8935 linux_set_pc_32bit.
8936
8937 2016-01-18 Gary Benson <gbenson@redhat.com>
8938
8939 * configure.ac (AC_FUNC_FORK): New check.
8940 * config.in: Regenerate.
8941 * configure: Likewise.
8942
8943 2016-01-14 Yao Qi <yao.qi@linaro.org>
8944
8945 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
8946 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
8947 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
8948 arm_get_next_pcs_ctor.
8949
8950 2016-01-12 Josh Stone <jistone@redhat.com>
8951 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8952
8953 * inferiors.h: Include "gdb_vecs.h".
8954 (struct process_info): Add syscalls_to_catch.
8955 * inferiors.c (remove_process): Free syscalls_to_catch.
8956 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
8957 syscall_return stops.
8958 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
8959 * server.c (handle_general_set): Handle QCatchSyscalls.
8960 (handle_query): Report support for QCatchSyscalls.
8961 * target.h (struct target_ops): Add supports_catch_syscall.
8962 (target_supports_catch_syscall): New macro.
8963 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
8964 (struct lwp_info): Add syscall_state.
8965 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
8966 Maintain syscall_state and syscalls_to_catch across exec.
8967 (get_syscall_trapinfo): New function, proxy to the_low_target.
8968 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
8969 (linux_low_filter_event): Toggle syscall_state entry/return for
8970 syscall traps, and set it ignored for all others.
8971 (gdb_catching_syscalls_p): New function.
8972 (gdb_catch_this_syscall_p): New function.
8973 (linux_wait_1): Handle SYSCALL_SIGTRAP.
8974 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
8975 (linux_supports_catch_syscall): New function.
8976 (linux_target_ops): Install it.
8977 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
8978 (the_low_target): Install it.
8979
8980 2016-01-12 Mike Frysinger <vapier@gentoo.org>
8981
8982 * acinclude.m4: Include new ../warning.m4 file.
8983 * configure: Regenerated.
8984 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
8985
8986 2016-01-12 Mike Frysinger <vapier@gentoo.org>
8987
8988 * ax.c (is_goto_target): Mark static.
8989 * linux-low.c (register_addr): Likewise.
8990 (linux_fetch_registers, linux_store_registers): Likewise.
8991 * mem-break.c (any_persistent_commands): Fix old prototype.
8992 (add_commands_to_breakpoint): Mark static.
8993 * regcache.c (find_register_by_name): Delete unused func.
8994 * remote-utils.c (hex_or_minus_one): Mark static.
8995 * server.c (monitor_show_help): Mark static.
8996 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
8997 handle_v_requests): Likewise.
8998
8999 2016-01-12 Pedro Alves <palves@redhat.com>
9000
9001 Remove use of the registered trademark symbol throughout.
9002
9003 2016-01-08 Yao Qi <yao.qi@linaro.org>
9004
9005 * remote-utils.c (getpkt): If c is '\003', call target hook
9006 request_interrupt.
9007
9008 2016-01-06 Yao Qi <yao.qi@linaro.org>
9009
9010 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
9011 linux-aarch32-low.c.
9012 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9013 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
9014 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9015 (thumb2_breakpoint): Declare.
9016 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
9017 linux-aarch32-low.h.
9018 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9019 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
9020 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9021
9022 2016-01-01 Joel Brobecker <brobecker@adacore.com>
9023
9024 * gdbreplay.c (gdbreplay_version): Change copyright year in
9025 version message.
9026 * server.c (gdbserver_version): Likewise.
9027
9028 2015-12-28 Patrick Palka <patrick@parcs.ath.cx>
9029
9030 * server.c (crc32_table): Delete.
9031 (crc32): Use libiberty's xcrc32 function.
9032
9033 2015-12-22 Joel Brobecker <brobecker@adacore.com>
9034
9035 * lynx-low.c (lynx_delete_thread_callback): New function.
9036 (lynx_mourn): Properly delete our process and all of its
9037 threads. Remove call to clear_inferiors.
9038
9039 2015-12-22 Joel Brobecker <brobecker@adacore.com>
9040
9041 * target.c (thread_search_callback): Add check that
9042 the thread_stopped target callback is not NULL before
9043 calling it.
9044
9045 2015-12-21 Yao Qi <yao.qi@linaro.org>
9046
9047 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
9048 arm breakpoint.
9049
9050 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9051
9052 * server.c (handle_query): Call target_supports_software_single_step.
9053
9054 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9055
9056 * linux-low.c (single_step): New function.
9057 (linux_resume_one_lwp_throw): Call single_step.
9058 (start_step_over): Likewise.
9059
9060 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9061
9062 * Makefile.in (SFILES): Append arch/arm-linux.c,
9063 arch/arm-get-next-pcs.c.
9064 (arm-linux.o): New rule.
9065 (arm-get-next-pcs.o): New rule.
9066 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
9067 arm-linux.o.
9068 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
9069 to linux-aarch32-low.c.
9070 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9071 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9072 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9073 (thumb2_breakpoint_len): Likewise.
9074 (arm_is_thumb_mode): Make non-static.
9075 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
9076 from linux-aarch32-low.c.
9077 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9078 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9079 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9080 (thumb2_breakpoint_len): Likewise.
9081 (arm_is_thumb_mode): New declaration.
9082 * linux-arm-low.c: Include arch/arm-linux.h
9083 aarch/arm-get-next-pcs.h, sys/syscall.h.
9084 (get_next_pcs_ops): New struct.
9085 (get_next_pcs_addr_bits_remove): New function.
9086 (get_next_pcs_is_thumb): New function.
9087 (get_next_pcs_read_memory_unsigned_integer): Likewise.
9088 (arm_sigreturn_next_pc): Likewise.
9089 (get_next_pcs_syscall_next_pc): Likewise.
9090 (arm_gdbserver_get_next_pcs): Likewise.
9091 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
9092 Initialize.
9093 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
9094 * server.h: Include gdb_vecs.h.
9095
9096 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9097
9098 * Makefile.in (SFILES): Append common/common-regcache.c.
9099 (OBS): Append common-regcache.o.
9100 (common-regcache.o): New rule.
9101 * regcache.c (init_register_cache): Initialize cache to
9102 REG_UNAVAILABLE.
9103 (regcache_raw_read_unsigned): New function.
9104 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
9105 register_status enum.
9106
9107 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9108
9109 * linux-aarch64-low.c (the_low_targets): Rename
9110 breakpoint_reinsert_addr to get_next_pcs.
9111 * linux-arm-low.c (the_low_targets): Likewise.
9112 * linux-bfin-low.c (the_low_targets): Likewise.
9113 * linux-cris-low.c (the_low_targets): Likewise.
9114 * linux-crisv32-low.c (the_low_targets): Likewise.
9115 * linux-low.c (can_software_single_step): Likewise.
9116 (install_software_single_step_breakpoints): New function.
9117 (start_step_over): Use install_software_single_step_breakpoints.
9118 * linux-low.h: New CORE_ADDR vector.
9119 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
9120 get_next_pcs.
9121 * linux-mips-low.c (the_low_targets): Likewise.
9122 * linux-nios2-low.c (the_low_targets): Likewise.
9123 * linux-sparc-low.c (the_low_targets): Likewise.
9124
9125 2015-12-17 Pedro Alves <palves@redhat.com>
9126
9127 * linux-low.c (linux_kill_one_lwp): Remove references to
9128 LinuxThreads.
9129 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
9130 to 'kill'.
9131 (linux_init_signals): Delete.
9132 (initialize_low): Adjust.
9133 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
9134
9135 2015-12-16 Pedro Alves <palves@redhat.com>
9136
9137 * configure.ac (compiler warning flags): When testing a
9138 -Wno-foo option, check whether -Wfoo works instead.
9139 * configure: Regenerate.
9140
9141 2015-12-11 Don Breazeal <donb@codesourcery.com>
9142
9143 * server.c (process_serial_event): Don't exit from gdbserver
9144 in remote mode if there are still active inferiors.
9145
9146 2015-12-11 Yao Qi <yao.qi@linaro.org>
9147
9148 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
9149 arm_breakpoint_at if the process is 32-bit.
9150
9151 2015-12-11 Yao Qi <yao.qi@linaro.org>
9152
9153 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
9154 arm breakpoint.
9155
9156 2015-12-07 Yao Qi <yao.qi@linaro.org>
9157
9158 * configure.srv: Append arm.o to srv_tgtobj for
9159 aarch64*-*-linux* target.
9160 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
9161 from linux-arm-low.c.
9162 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9163 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9164 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9165 (thumb2_breakpoint_len): Likewise.
9166 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
9167 (arm_breakpoint_kinds): Likewise.
9168 (arm_breakpoint_kind_from_pc): Likewise.
9169 (arm_sw_breakpoint_from_kind): Likewise.
9170 (arm_breakpoint_kind_from_current_state): Likewise.
9171 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
9172 (arm_sw_breakpoint_from_kind): Declare.
9173 (arm_breakpoint_kind_from_current_state): Declare.
9174 (arm_breakpoint_at): Declare.
9175 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
9176 arm_sw_breakpoint_from_kind if process is 32-bit.
9177 (aarch64_breakpoint_kind_from_pc): New function.
9178 (aarch64_breakpoint_kind_from_current_state): New function.
9179 (the_low_target): Initialize fields breakpoint_kind_from_pc
9180 and breakpoint_kind_from_current_state.
9181 * linux-arm-low.c (arm_breakpoint_kinds): Move to
9182 linux-aarch32-low.c.
9183 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
9184 (arm_breakpoint, arm_breakpoint_len): Likewise.
9185 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
9186 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9187 (arm_is_thumb_mode): Likewise.
9188 (arm_breakpoint_at): Likewise.
9189 (arm_breakpoint_kind_from_pc): Likewise.
9190 (arm_sw_breakpoint_from_kind): Likewise.
9191 (arm_breakpoint_kind_from_current_state): Likewise.
9192
9193 Revert:
9194 2015-08-04 Yao Qi <yao.qi@linaro.org>
9195
9196 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
9197 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
9198 * server.c (extended_protocol): Remove "static".
9199 * server.h (extended_protocol): Declare it.
9200
9201 2015-12-04 Josh Stone <jistone@redhat.com>
9202
9203 * target.h (struct target_ops) <arch_setup>: Rename to ...
9204 (struct target_ops) <post_create_inferior>: ... this.
9205 (target_arch_setup): Rename to ...
9206 (target_post_create_inferior): ... this, calling post_create_inferior.
9207 * server.c (start_inferior): Update target_arch_setup calls to
9208 target_post_create_inferior.
9209 * linux-low.c (linux_low_ptrace_options): Forward declare.
9210 (linux_arch_setup): Update its comment for general use.
9211 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
9212 (struct linux_target_ops): Use linux_post_create_inferior.
9213 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
9214 to post_create_inferior.
9215 * nto-low.c (struct nto_target_ops): Likewise.
9216 * spu-low.c (struct spu_target_ops): Likewise.
9217 * win32-low.c (struct win32_target_ops): Likewise.
9218
9219 2015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
9220
9221 * linux-arm-low.c: Remove duplicate arch/arm.h include.
9222
9223 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9224
9225 * linux-arm-low.c (arm_reinsert_addr): Remove function.
9226 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
9227 * linux-cris-low.c (cris_reinsert_addr> Remove function.
9228 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9229 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
9230 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9231 * linux-mips-low.c (mips_reinsert_addr): Remove function.
9232 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9233 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
9234 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9235 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
9236 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9237
9238 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9239
9240 * linux-low.c (linux_look_up_symbols): Don't call
9241 linux_supports_traceclone.
9242 * linux-low.h (thread_db_init): Remove use_events argument.
9243 * thread-db.c (thread_db_use_event): Remove global variable.
9244 (struct thread_db) <td_thr_event_enable_p>: Remove field.
9245 (struct thread_db) <td_create_bp>: Remove field.
9246 (thread_db_create_event): Remove function.
9247 (thread_db_enable_reporting): Likewise.
9248 (find_one_thread): Don't check for thread_db_use_events.
9249 (attach_thread): Likewise.
9250 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
9251 (try_thread_db_load_1): Don't check for thread_db_use_events.
9252 (thread_db_init): Remove use_events argument and thread events
9253 handling.
9254 (remove_thread_event_breakpoints): Remove function.
9255 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
9256
9257 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9258
9259 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
9260 New function.
9261 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9262 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
9263 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9264 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
9265 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
9266 Initialize.
9267 * linux-crisv32-low.c (cris_supports_hardware_single_step):
9268 New function.
9269 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9270 * linux-low.c (can_hardware_single_step): Use
9271 supports_hardware_single_step.
9272 (can_software_single_step): New function.
9273 (start_step_over): Call can_software_single_step.
9274 (linux_supports_hardware_single_step): New function.
9275 (struct target_ops) <supports_software_single_step>: Initialize.
9276 * linux-low.h (struct linux_target_ops)
9277 <supports_hardware_single_step>: Initialize.
9278 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
9279 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9280 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
9281 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
9282 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
9283 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9284 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
9285 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9286 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
9287 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
9288 Initialize.
9289 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
9290 (struct linux_target_ops) <tile_supports_hardware_single_step>:
9291 Initialize.
9292 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
9293 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9294 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
9295 New function.
9296 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9297 * target.h (struct target_ops): <supports_software_single_step>:
9298 New field.
9299 (target_supports_software_single_step): New macro.
9300
9301 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9302
9303 * linux-low.c (linux_wait_1): Fix pc advance condition.
9304 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
9305 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
9306
9307 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9308
9309 * linux-arm-low.c (arm_is_thumb_mode): New function.
9310 (arm_breakpoint_at): Use arm_is_thumb_mode.
9311 (arm_breakpoint_kind_from_current_state): New function.
9312 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
9313 Initialize.
9314 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
9315 (linux_breakpoint_kind_from_current_state): New function.
9316 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
9317 * linux-low.h (struct linux_target_ops)
9318 <breakpoint_kind_from_current_state>: New field.
9319 * target.h (struct target_ops): Likewise.
9320 (target_breakpoint_kind_from_current_state): New macro.
9321
9322 2015-11-30 Pedro Alves <palves@redhat.com>
9323
9324 * linux-low.c (linux_resume): Wake up the event loop before
9325 returning.
9326
9327 2015-11-30 Pedro Alves <palves@redhat.com>
9328
9329 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
9330 check.
9331 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
9332 to -1.
9333 * target.c (struct thread_search): New structure.
9334 (thread_search_callback): New function.
9335 (prev_general_thread): New global.
9336 (prepare_to_access_memory, done_accessing_memory): New functions.
9337 * target.h (prepare_to_access_memory, done_accessing_memory):
9338 Replace macros with function declarations.
9339
9340 2015-11-30 Pedro Alves <palves@redhat.com>
9341
9342 PR 14618
9343 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
9344 report TARGET_WAITKIND_NO_RESUMED.
9345 * remote-utils.c (prepare_resume_reply): Handle
9346 TARGET_WAITKIND_NO_RESUMED.
9347 * server.c (report_no_resumed): New global.
9348 (handle_query) <qSupported>: Handle "no-resumed+". Report
9349 "no-resumed+" support.
9350 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
9351 return error if the client doesn't support no-resumed events.
9352 (push_stop_notification): New function.
9353 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
9354 events if the client supports them.
9355
9356 2015-11-30 Pedro Alves <palves@redhat.com>
9357
9358 * linux-low.c (thread_still_has_status_pending_p): Don't check
9359 vCont;t here.
9360 (lwp_resumed): New function.
9361 (status_pending_p_callback): Return early if the LWP is not
9362 supposed to be resumed.
9363
9364 2015-11-30 Pedro Alves <palves@redhat.com>
9365
9366 * linux-low.c (handle_extended_wait): Assert that the LWP's
9367 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
9368 thread create events, leave the new child's status pending.
9369 (linux_low_filter_event): If GDB wants to hear about thread exit
9370 events, leave the LWP marked dead and don't delete it.
9371 (linux_wait_for_event_filtered): Don't check for thread exit.
9372 (filter_exit_event): New function.
9373 (linux_wait_1): Use it, when returning an exit event.
9374 (linux_resume_one_lwp_throw): Assert that the LWP's
9375 waitstatus is TARGET_WAITKIND_IGNORE.
9376 * remote-utils.c (prepare_resume_reply): Handle
9377 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
9378 * server.c (report_thread_events): New global.
9379 (handle_general_set): Handle QThreadEvents.
9380 (handle_query) <qSupported>: Handle and report QThreadEvents+;
9381 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
9382 TARGET_WAITKIND_THREAD_EXITED.
9383 * server.h (report_thread_events): Declare.
9384
9385 2015-11-30 Pedro Alves <palves@redhat.com>
9386
9387 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
9388 the thread's last_resume_kind was resume_stop.
9389
9390 2015-11-30 Pedro Alves <palves@redhat.com>
9391
9392 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
9393 before returning.
9394
9395 2015-11-30 Pedro Alves <palves@redhat.com>
9396
9397 * server.c (handle_v_requests): Handle vCtrlC.
9398
9399 2015-11-30 Pedro Alves <palves@redhat.com>
9400
9401 * gdbthread.h (find_any_thread_of_pid): Declare.
9402 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
9403 functions.
9404 * server.c (handle_query): If current_thread is NULL, look for
9405 another thread of the selected process.
9406
9407 2015-11-26 Daniel Colascione <dancol@dancol.org>
9408 Simon Marchi <simon.marchi@ericsson.com>
9409
9410 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
9411 * server.c (handle_qxfer_threads_worker): Refactor to include thread
9412 name in reply.
9413 * target.h (struct target_ops) <thread_name>: New field.
9414 (target_thread_name): New macro.
9415
9416 2015-11-23 Joel Brobecker <brobecker@adacore.com>
9417
9418 * regcache.h (regcache_invalidate_pid): Add declaration.
9419 * regcache.c (regcache_invalidate_pid): New function, extracted
9420 from regcache_invalidate.
9421 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
9422 Add trivial documentation comment.
9423 * lynx-low.c: Use regcache_invalidate_pid instead of
9424 regcache_invalidate.
9425
9426 2015-11-23 Joel Brobecker <brobecker@adacore.com>
9427
9428 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
9429 and Elf64_auxv_t if the target is Android.
9430
9431 2015-11-22 Doug Evans <xdje42@gmail.com>
9432
9433 * target.h: #include <sys/types.h>.
9434
9435 2015-11-19 Pedro Alves <palves@redhat.com>
9436
9437 * linux-low.c (linux_process_qsupported): Change prototype.
9438 Adjust.
9439 * linux-low.h (struct linux_target_ops) <process_qsupported>:
9440 Change prototype.
9441 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
9442 and adjust to loop over all features.
9443 * server.c (handle_query) <qSupported>: Adjust to call
9444 target_process_qsupported once, passing it a vector of unprocessed
9445 features.
9446 * target.h (struct target_ops) <process_qsupported>: Change
9447 prototype.
9448 (target_process_qsupported): Adjust.
9449
9450 2015-11-19 Pedro Alves <palves@redhat.com>
9451
9452 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
9453 mode.
9454 * configure: Regenerate.
9455
9456 2015-11-19 Pedro Alves <palves@redhat.com>
9457
9458 * configure: Regenerate.
9459
9460 2015-11-19 Yao Qi <yao.qi@linaro.org>
9461
9462 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
9463 type to uint32_t.
9464
9465 2015-11-19 Yao Qi <yao.qi@linaro.org>
9466
9467 * linux-aarch64-low.c (enum aarch64_operand_type): New.
9468 (struct aarch64_operand): Move enum out.
9469
9470 2015-11-19 Yao Qi <yao.qi@linaro.org>
9471
9472 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
9473 struct user_fpsimd_state *.
9474 (aarch64_store_fpregset): Likewise.
9475
9476 2015-11-19 Yao Qi <yao.qi@linaro.org>
9477
9478 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
9479 struct user_pt_regs *.
9480 (aarch64_store_gregset): Likewise.
9481
9482 2015-11-18 Pedro Alves <palves@redhat.com>
9483
9484 * Makefile.in (all_object_files): Add $IPA_OBJS.
9485
9486 2015-11-17 Pedro Alves <palves@redhat.com>
9487
9488 * win32-low.c (win32_resume): Use gdb_signal_from_host,
9489 GDB_SIGNAL_0 and gdb_signal_to_string.
9490
9491 2015-11-17 Pedro Alves <palves@redhat.com>
9492
9493 * win32-low.c (handle_output_debug_string): Remove parameter.
9494 (win32_kill): Remove our_status local and adjust call to
9495 handle_output_debug_string.
9496 (get_child_debug_event): Adjust call to
9497 handle_output_debug_string.
9498
9499 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9500
9501 * linux-mips-low.c (mips_fill_gregset): Add cast.
9502 (mips_store_gregset): Likewise.
9503 (mips_fill_fpregset): Likewise.
9504 (mips_store_fpregset): Likewise.
9505
9506 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9507
9508 * linux-mips-low.c (mips_add_watchpoint): Rename private to
9509 priv.
9510
9511 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9512
9513 * linux-mips-low.c (mips_linux_new_thread): Change type of
9514 watch_type to enum target_hw_bp_type.
9515
9516 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9517
9518 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
9519 Change return type to arm_hwbp_type.
9520
9521 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9522
9523 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
9524 (arm_store_gregset): Likewise.
9525 * linux-arm-low.c (arm_get_hwcap): Likewise.
9526 (arm_read_description): Likewise.
9527
9528 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9529
9530 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
9531
9532 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9533
9534 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
9535 (ppc_fill_vsxregset): Likewise.
9536 (ppc_store_vsxregset): Likewise.
9537 (ppc_fill_vrregset): Likewise.
9538 (ppc_store_vrregset): Likewise.
9539 (ppc_fill_evrregset): Likewise.
9540 (ppc_store_evrregset): Likewise.
9541
9542 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9543
9544 * linux-ppc-low.c (ppc_usrregs_info): Remove
9545 forward-declaration.
9546 (ppc_arch_setup): Move lower in file.
9547
9548 2015-10-30 Simon Marchi <simon.marchi@ericsson.com>
9549
9550 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
9551 (ps_pdwrite): Likewise.
9552
9553 2015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
9554
9555 * linux-arm-low.c (arm_new_thread): Move pointer dereference
9556 to after assert checks.
9557
9558 2015-10-29 Simon Marchi <simon.marchi@ericsson.com>
9559
9560 * proc-service.c (ps_pdread): Add/adjust casts.
9561 (ps_pdwrite): Add/adjust casts.
9562
9563 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9564
9565 * server.c (handle_search_memory_1): Cast return value of
9566 memmem.
9567
9568 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9569
9570 * server.c (write_qxfer_response): Change type of data to
9571 gdb_byte *.
9572
9573 2015-10-29 Pedro Alves <palves@redhat.com>
9574
9575 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
9576
9577 2015-10-29 Pedro Alves <palves@redhat.com>
9578
9579 * tracepoint.c (clear_installed_tracepoints): Add casts.
9580
9581 2015-10-29 Pedro Alves <palves@redhat.com>
9582
9583 * server.c (handle_v_cont, process_serial_event): Add enum
9584 gdb_signal casts to signal parsing code.
9585
9586 2015-10-29 Pedro Alves <palves@redhat.com>
9587
9588 * linux-low.h (NULL_REGSET): Define.
9589 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9590 * linux-arm-low.c (arm_regsets): Likewise.
9591 * linux-crisv32-low.c (cris_regsets): Likewise.
9592 * linux-m68k-low.c (m68k_regsets): Likewise.
9593 * linux-mips-low.c (mips_regsets): Likewise.
9594 * linux-nios2-low.c (nios2_regsets): Likewise.
9595 * linux-ppc-low.c (ppc_regsets): Likewise.
9596 * linux-s390-low.c (s390_regsets): Likewise.
9597 * linux-sh-low.c (sh_regsets): Likewise.
9598 * linux-sparc-low.c (sparc_regsets): Likewise.
9599 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9600 * linux-tile-low.c (tile_regsets): Likewise.
9601 * linux-x86-low.c (x86_regsets): Likewise.
9602 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9603
9604 2015-10-29 Pedro Alves <palves@redhat.com>
9605
9606 * linux-low.h (NULL_REGSET): Define.
9607 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9608 * linux-arm-low.c (arm_regsets): Likewise.
9609 * linux-crisv32-low.c (cris_regsets): Likewise.
9610 * linux-m68k-low.c (m68k_regsets): Likewise.
9611 * linux-mips-low.c (mips_regsets): Likewise.
9612 * linux-nios2-low.c (nios2_regsets): Likewise.
9613 * linux-ppc-low.c (ppc_regsets): Likewise.
9614 * linux-s390-low.c (s390_regsets): Likewise.
9615 * linux-sh-low.c (sh_regsets): Likewise.
9616 * linux-sparc-low.c (sparc_regsets): Likewise.
9617 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9618 * linux-tile-low.c (tile_regsets): Likewise.
9619 * linux-x86-low.c (x86_regsets): Likewise.
9620 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9621
9622 2015-10-26 Doug Evans <dje@google.com>
9623
9624 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
9625
9626 2015-10-26 Doug Evans <dje@google.com>
9627
9628 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
9629
9630 2015-10-26 Doug Evans <dje@google.com>
9631
9632 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
9633 for debug_printf.
9634 (attach_thread, find_new_threads_callback): Ditto.
9635
9636 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9637
9638 * mem-break.h (set_breakpoint_data): Remove.
9639
9640 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9641
9642 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
9643 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9644 (initialize_low): Remove set_breakpoint_data call.
9645 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
9646 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
9647 (initialize_low): Remove set_breakpoint_data call.
9648 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
9649 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9650 (initialize_low): Remove set_breakpoint_data call.
9651
9652 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9653
9654 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
9655 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
9656 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
9657 * target.h (target_breakpoint_kind_from_pc): New macro.
9658
9659 2015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
9660
9661 * linux-low.c (default_breakpoint_kind_from_pc): New function.
9662 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
9663 the default breakpoint kind.
9664
9665 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9666
9667 * linux-arm-low.c (arm_supports_z_point_type): Add software
9668 breakpoint support.
9669
9670 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9671
9672 * linux-arm-low.c: Refactor breakpoint definitions.
9673 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
9674 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
9675
9676 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9677
9678 * Makefile.in: Add arm.c/o.
9679 * configure.srv: Likewise.
9680 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
9681 (arm_breakpoint_kind_from_pc): New function.
9682 (arm_sw_breakpoint_from_kind): Return proper kind.
9683 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
9684
9685 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9686
9687 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
9688 removal.
9689 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
9690 (struct raw_breakpoint) <size>: Remove.
9691 (struct raw_breakpoint) <kind>: Add.
9692 (bp_size): New function.
9693 (bp_opcode): Likewise.
9694 (find_raw_breakpoint_at): Adjust for kind.
9695 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
9696 (remove_memory_breakpoint): Adjust for kind call bp_size.
9697 (set_raw_breakpoint_at): Adjust for kind.
9698 (set_breakpoint): Likewise.
9699 (set_breakpoint_at): Call breakpoint_kind_from_pc.
9700 (delete_raw_breakpoint): Adjust for kind.
9701 (delete_breakpoint): Likewise.
9702 (find_gdb_breakpoint): Likewise.
9703 (set_gdb_breakpoint_1): Likewise.
9704 (set_gdb_breakpoint): Likewise.
9705 (delete_gdb_breakpoint_1): Likewise.
9706 (delete_gdb_breakpoint): Likewise.
9707 (uninsert_raw_breakpoint): Likewise.
9708 (reinsert_raw_breakpoint): Likewise.
9709 (set_breakpoint_data): Remove.
9710 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
9711 (check_mem_read): Adjust for kind call bp_size.
9712 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
9713 (clone_one_breakpoint): Adjust for kind.
9714 * mem-break.h (set_gdb_breakpoint): Likewise.
9715 (delete_gdb_breakpoint): Likewise.
9716 * server.c (process_serial_event): Likewise.
9717
9718 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9719
9720 * linux-aarch64-low.c (aarch64_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-arm-low.c (arm_breakpoint_kind_from_pc): New function.
9726 (arm_sw_breakpoint_from_kind): New function.
9727 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
9728 (struct linux_target_ops) <breakpoint>: Remove.
9729 (struct linux_target_ops) <breakpoint_len>: Remove.
9730 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9731 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9732 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
9733 (struct linux_target_ops) <breakpoint>: Remove.
9734 (struct linux_target_ops) <breakpoint_len>: Remove.
9735 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9736 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9737 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
9738 (struct linux_target_ops) <breakpoint>: Remove.
9739 (struct linux_target_ops) <breakpoint_len>: Remove.
9740 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9741 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9742 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
9743 and sw_breakpoint_from_kind to increment the pc.
9744 (linux_breakpoint_kind_from_pc): New function.
9745 (linux_sw_breakpoint_from_kind): New function.
9746 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
9747 (initialize_low): Call breakpoint_kind_from_pc and
9748 sw_breakpoint_from_kind to replace breakpoint_data/len.
9749 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
9750 New field.
9751 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
9752 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
9753 (struct linux_target_ops) <breakpoint>: Remove.
9754 (struct linux_target_ops) <breakpoint_len>: Remove.
9755 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9756 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9757 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
9758 (struct linux_target_ops) <breakpoint>: Remove.
9759 (struct linux_target_ops) <breakpoint_len>: Remove.
9760 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9761 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9762 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
9763 (struct linux_target_ops) <breakpoint>: Remove.
9764 (struct linux_target_ops) <breakpoint_len>: Remove.
9765 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9766 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9767 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
9768 (struct linux_target_ops) <breakpoint>: Remove.
9769 (struct linux_target_ops) <breakpoint_len>: Remove.
9770 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9771 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9772 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
9773 (struct linux_target_ops) <breakpoint>: Remove.
9774 (struct linux_target_ops) <breakpoint_len>: Remove.
9775 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9776 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9777 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
9778 (struct linux_target_ops) <breakpoint>: Remove.
9779 (struct linux_target_ops) <breakpoint_len>: Remove.
9780 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9781 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9782 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
9783 (struct linux_target_ops) <breakpoint>: Remove.
9784 (struct linux_target_ops) <breakpoint_len>: Remove.
9785 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9786 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9787 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
9788 (struct linux_target_ops) <breakpoint>: Remove.
9789 (struct linux_target_ops) <breakpoint_len>: Remove.
9790 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9791 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9792 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
9793 (struct linux_target_ops) <breakpoint>: Remove.
9794 (struct linux_target_ops) <breakpoint_len>: Remove.
9795 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9796 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9797 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
9798 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
9799 (struct linux_target_ops) <breakpoint>: Remove.
9800 (struct linux_target_ops) <breakpoint_len>: Remove.
9801 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9802 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9803 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
9804 (struct linux_target_ops) <breakpoint>: Remove.
9805 (struct linux_target_ops) <breakpoint_len>: Remove.
9806 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9807 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9808
9809 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9810
9811 * linux-cris-low.c (cris_get_pc): Remove void arg.
9812
9813 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9814
9815 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
9816 variable name.
9817
9818 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9819
9820 * inferiors.c (thread_pid_matches_callback): New function.
9821 (find_thread_process): New function.
9822 (remove_thread): Reset current_thread.
9823 (remove_process): Assert threads have been removed first.
9824
9825 2015-10-15 Yao Qi <yao.qi@linaro.org>
9826
9827 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
9828 if it is 3.
9829 (aarch64_remove_point): Likewise.
9830 * regcache.c (regcache_register_size): New function.
9831
9832 2015-10-12 Yao Qi <yao.qi@linaro.org>
9833
9834 * linux-aarch64-low.c: Update all callers as emit_load_store
9835 is renamed to aarch64_emit_load_store.
9836
9837 2015-10-12 Yao Qi <yao.qi@linaro.org>
9838
9839 * linux-aarch64-low.c: Update all callers of function renaming
9840 from emit_insn to aarch64_emit_insn.
9841
9842 2015-10-12 Yao Qi <yao.qi@linaro.org>
9843
9844 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
9845 arch/aarch64-insn.h.
9846 (struct aarch64_memory_operand): Likewise.
9847 (ENCODE): Likewise.
9848 (emit_insn): Move to arch/aarch64-insn.c.
9849 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
9850 (emit_load_store): Move to arch/aarch64-insn.c.
9851 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
9852 (can_encode_int32): Remove.
9853
9854 2015-10-12 Yao Qi <yao.qi@linaro.org>
9855
9856 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
9857 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
9858 (aarch64_relocate_instruction): Likewise.
9859 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
9860 (struct aarch64_insn_visitor): Likewise.
9861
9862 2015-10-12 Yao Qi <yao.qi@linaro.org>
9863
9864 * linux-aarch64-low.c (struct aarch64_insn_data): New.
9865 (struct aarch64_insn_visitor): New.
9866 (struct aarch64_insn_relocation_data): New.
9867 (aarch64_ftrace_insn_reloc_b): New function.
9868 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
9869 (aarch64_ftrace_insn_reloc_cb): Likewise.
9870 (aarch64_ftrace_insn_reloc_tb): Likewise.
9871 (aarch64_ftrace_insn_reloc_adr): Likewise.
9872 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
9873 (aarch64_ftrace_insn_reloc_others): Likewise.
9874 (visitor): New.
9875 (aarch64_relocate_instruction): Use visitor.
9876
9877 2015-10-12 Yao Qi <yao.qi@linaro.org>
9878
9879 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
9880 int. Add argument buf.
9881 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
9882 aarch64_relocate_instruction.
9883
9884 2015-10-12 Yao Qi <yao.qi@linaro.org>
9885
9886 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
9887 argument insn. Remove local variable insn. Don't call
9888 target_read_uint32.
9889 (aarch64_install_fast_tracepoint_jump_pad): Call
9890 target_read_uint32.
9891
9892 2015-09-30 Yao Qi <yao.qi@linaro.org>
9893
9894 * linux-aarch64-low.c (emit_movk): Shorten a long line.
9895 (emit_load_store_pair): Likewise.
9896
9897 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
9898
9899 * dll.c (match_dll): Add cast(s).
9900 (unloaded_dll): Likewise.
9901 * linux-low.c (second_thread_of_pid_p): Likewise.
9902 (delete_lwp_callback): Likewise.
9903 (count_events_callback): Likewise.
9904 (select_event_lwp_callback): Likewise.
9905 (linux_set_resume_request): Likewise.
9906 * server.c (accumulate_file_name_length): Likewise.
9907 (emit_dll_description): Likewise.
9908 (handle_qxfer_threads_worker): Likewise.
9909 (visit_actioned_threads): Likewise.
9910 * thread-db.c (any_thread_of): Likewise.
9911 * tracepoint.c (same_process_p): Likewise.
9912 (match_blocktype): Likewise.
9913 (build_traceframe_info_xml): Likewise.
9914
9915 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
9916
9917 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
9918 assignment.
9919 (gdb_unparse_agent_expr): Likewise.
9920 * hostio.c (require_data): Likewise.
9921 (handle_pread): Likewise.
9922 * linux-low.c (disable_regset): Likewise.
9923 (fetch_register): Likewise.
9924 (store_register): Likewise.
9925 (get_dynamic): Likewise.
9926 (linux_qxfer_libraries_svr4): Likewise.
9927 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
9928 (set_fast_tracepoint_jump): Likewise.
9929 (uninsert_fast_tracepoint_jumps_at): Likewise.
9930 (reinsert_fast_tracepoint_jumps_at): Likewise.
9931 (validate_inserted_breakpoint): Likewise.
9932 (clone_agent_expr): Likewise.
9933 * regcache.c (init_register_cache): Likewise.
9934 * remote-utils.c (putpkt_binary_1): Likewise.
9935 (decode_M_packet): Likewise.
9936 (decode_X_packet): Likewise.
9937 (look_up_one_symbol): Likewise.
9938 (relocate_instruction): Likewise.
9939 (monitor_output): Likewise.
9940 * server.c (handle_search_memory): Likewise.
9941 (handle_qxfer_exec_file): Likewise.
9942 (handle_qxfer_libraries): Likewise.
9943 (handle_qxfer): Likewise.
9944 (handle_query): Likewise.
9945 (handle_v_cont): Likewise.
9946 (handle_v_run): Likewise.
9947 (captured_main): Likewise.
9948 * target.c (write_inferior_memory): Likewise.
9949 * thread-db.c (try_thread_db_load_from_dir): Likewise.
9950 * tracepoint.c (init_trace_buffer): Likewise.
9951 (add_tracepoint_action): Likewise.
9952 (add_traceframe): Likewise.
9953 (add_traceframe_block): Likewise.
9954 (cmd_qtdpsrc): Likewise.
9955 (cmd_qtdv): Likewise.
9956 (cmd_qtstatus): Likewise.
9957 (response_source): Likewise.
9958 (response_tsv): Likewise.
9959 (cmd_qtnotes): Likewise.
9960 (gdb_collect): Likewise.
9961 (initialize_tracepoint): Likewise.
9962
9963 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9964
9965 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
9966 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
9967 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
9968 <NOP>: New.
9969 (enum aarch64_condition_codes): New enum.
9970 (w0): New static global.
9971 (fp): Likewise.
9972 (lr): Likewise.
9973 (struct aarch64_memory_operand) <type>: New
9974 MEMORY_OPERAND_POSTINDEX type.
9975 (postindex_memory_operand): New helper function.
9976 (emit_ret): New function.
9977 (emit_load_store_pair): New function, factored out of emit_stp
9978 with support for MEMORY_OPERAND_POSTINDEX.
9979 (emit_stp): Rewrite using emit_load_store_pair.
9980 (emit_ldp): New function.
9981 (emit_load_store): Likewise.
9982 (emit_ldr): Mention post-index instruction in comment.
9983 (emit_ldrh): New function.
9984 (emit_ldrb): New function.
9985 (emit_ldrsw): Mention post-index instruction in comment.
9986 (emit_str): Likewise.
9987 (emit_subs): New function.
9988 (emit_cmp): Likewise.
9989 (emit_and): Likewise.
9990 (emit_orr): Likewise.
9991 (emit_orn): Likewise.
9992 (emit_eor): Likewise.
9993 (emit_mvn): Likewise.
9994 (emit_lslv): Likewise.
9995 (emit_lsrv): Likewise.
9996 (emit_asrv): Likewise.
9997 (emit_mul): Likewise.
9998 (emit_sbfm): Likewise.
9999 (emit_sbfx): Likewise.
10000 (emit_ubfm): Likewise.
10001 (emit_ubfx): Likewise.
10002 (emit_csinc): Likewise.
10003 (emit_cset): Likewise.
10004 (emit_nop): Likewise.
10005 (emit_ops_insns): New helper function.
10006 (emit_pop): Likewise.
10007 (emit_push): Likewise.
10008 (aarch64_emit_prologue): New function.
10009 (aarch64_emit_epilogue): Likewise.
10010 (aarch64_emit_add): Likewise.
10011 (aarch64_emit_sub): Likewise.
10012 (aarch64_emit_mul): Likewise.
10013 (aarch64_emit_lsh): Likewise.
10014 (aarch64_emit_rsh_signed): Likewise.
10015 (aarch64_emit_rsh_unsigned): Likewise.
10016 (aarch64_emit_ext): Likewise.
10017 (aarch64_emit_log_not): Likewise.
10018 (aarch64_emit_bit_and): Likewise.
10019 (aarch64_emit_bit_or): Likewise.
10020 (aarch64_emit_bit_xor): Likewise.
10021 (aarch64_emit_bit_not): Likewise.
10022 (aarch64_emit_equal): Likewise.
10023 (aarch64_emit_less_signed): Likewise.
10024 (aarch64_emit_less_unsigned): Likewise.
10025 (aarch64_emit_ref): Likewise.
10026 (aarch64_emit_if_goto): Likewise.
10027 (aarch64_emit_goto): Likewise.
10028 (aarch64_write_goto_address): Likewise.
10029 (aarch64_emit_const): Likewise.
10030 (aarch64_emit_call): Likewise.
10031 (aarch64_emit_reg): Likewise.
10032 (aarch64_emit_pop): Likewise.
10033 (aarch64_emit_stack_flush): Likewise.
10034 (aarch64_emit_zero_ext): Likewise.
10035 (aarch64_emit_swap): Likewise.
10036 (aarch64_emit_stack_adjust): Likewise.
10037 (aarch64_emit_int_call_1): Likewise.
10038 (aarch64_emit_void_call_2): Likewise.
10039 (aarch64_emit_eq_goto): Likewise.
10040 (aarch64_emit_ne_goto): Likewise.
10041 (aarch64_emit_lt_goto): Likewise.
10042 (aarch64_emit_le_goto): Likewise.
10043 (aarch64_emit_gt_goto): Likewise.
10044 (aarch64_emit_ge_got): Likewise.
10045 (aarch64_emit_ops_impl): New static global variable.
10046 (aarch64_emit_ops): New target function, return
10047 &aarch64_emit_ops_impl.
10048 (struct linux_target_ops): Install it.
10049
10050 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10051
10052 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
10053 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
10054 aarch64-ipa.o.
10055 * linux-aarch64-ipa.c: New file.
10056 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
10057 and endian.h.
10058 (aarch64_get_thread_area): New target method.
10059 (extract_signed_bitfield): New helper function.
10060 (aarch64_decode_ldr_literal): New function.
10061 (enum aarch64_opcodes): New enum.
10062 (struct aarch64_register): New struct.
10063 (struct aarch64_operand): New struct.
10064 (x0): New static global.
10065 (x1): Likewise.
10066 (x2): Likewise.
10067 (x3): Likewise.
10068 (x4): Likewise.
10069 (w2): Likewise.
10070 (ip0): Likewise.
10071 (sp): Likewise.
10072 (xzr): Likewise.
10073 (aarch64_register): New helper function.
10074 (register_operand): Likewise.
10075 (immediate_operand): Likewise.
10076 (struct aarch64_memory_operand): New struct.
10077 (offset_memory_operand): New helper function.
10078 (preindex_memory_operand): Likewise.
10079 (enum aarch64_system_control_registers): New enum.
10080 (ENCODE): New macro.
10081 (emit_insn): New helper function.
10082 (emit_b): New function.
10083 (emit_bcond): Likewise.
10084 (emit_cb): Likewise.
10085 (emit_tb): Likewise.
10086 (emit_blr): Likewise.
10087 (emit_stp): Likewise.
10088 (emit_ldp_q_offset): Likewise.
10089 (emit_stp_q_offset): Likewise.
10090 (emit_load_store): Likewise.
10091 (emit_ldr): Likewise.
10092 (emit_ldrsw): Likewise.
10093 (emit_str): Likewise.
10094 (emit_ldaxr): Likewise.
10095 (emit_stxr): Likewise.
10096 (emit_stlr): Likewise.
10097 (emit_data_processing_reg): Likewise.
10098 (emit_data_processing): Likewise.
10099 (emit_add): Likewise.
10100 (emit_sub): Likewise.
10101 (emit_mov): Likewise.
10102 (emit_movk): Likewise.
10103 (emit_mov_addr): Likewise.
10104 (emit_mrs): Likewise.
10105 (emit_msr): Likewise.
10106 (emit_sevl): Likewise.
10107 (emit_wfe): Likewise.
10108 (append_insns): Likewise.
10109 (can_encode_int32_in): New helper function.
10110 (aarch64_relocate_instruction): New function.
10111 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
10112 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
10113 (struct linux_target_ops): Install aarch64_get_thread_area,
10114 aarch64_install_fast_tracepoint_jump_pad and
10115 aarch64_get_min_fast_tracepoint_insn_len.
10116
10117 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10118
10119 * Makefile.in (aarch64-insn.o): New rule.
10120 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
10121
10122 2015-09-21 Yao Qi <yao.qi@linaro.org>
10123
10124 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
10125
10126 2015-09-21 Yao Qi <yao.qi@linaro.org>
10127
10128 * tracepoint.c (max_jump_pad_size): Remove.
10129
10130 2015-09-18 Yao Qi <yao.qi@linaro.org>
10131
10132 * linux-aarch64-low.c: Don't include sys/uio.h.
10133 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
10134
10135 2015-09-16 Wei-cheng Wang <cole945@gmail.com>
10136
10137 * tracepoint.c (eval_result_type): Change prototype.
10138 (condition_true_at_tracepoint): Fix argument to compiled_cond.
10139
10140 2015-09-15 Pedro Alves <palves@redhat.com>
10141
10142 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
10143 Check whether to report exec events instead of checking whether
10144 multiprocess is enabled.
10145
10146 2015-09-15 Pedro Alves <palves@redhat.com>
10147
10148 PR remote/18965
10149 * remote-utils.c (prepare_resume_reply): Merge
10150 TARGET_WAITKIND_VFORK_DONE switch case with the
10151 TARGET_WAITKIND_FORKED case.
10152
10153 2015-09-15 Yao Qi <yao.qi@linaro.org>
10154
10155 * server.c (handle_query): Check string comparison using
10156 "else if" instead of "if".
10157
10158 2015-09-15 Yao Qi <yao.qi@linaro.org>
10159
10160 * server.c (vCont_supported): New global variable.
10161 (handle_query): Set vCont_supported to 1 if "vContSupported+"
10162 matches. Append ";vContSupported+" to own_buf.
10163 (handle_v_requests): Append ";s;S" to own_buf if target supports
10164 hardware single step or vCont_supported is false.
10165 (capture_main): Set vCont_supported to zero.
10166
10167 2015-09-15 Yao Qi <yao.qi@linaro.org>
10168
10169 * linux-low.c (linux_supports_conditional_breakpoints): Rename
10170 it to ...
10171 (linux_supports_hardware_single_step): ... New function.
10172 (linux_target_ops): Update.
10173 * lynx-low.c (lynx_target_ops): Set field
10174 supports_hardware_single_step to target_can_do_hardware_single_step.
10175 * nto-low.c (nto_target_ops): Likewise.
10176 * spu-low.c (spu_target_ops): Likewise.
10177 * win32-low.c (win32_target_ops): Likewise.
10178 * target.c (target_can_do_hardware_single_step): New function.
10179 * target.h (struct target_ops) <supports_conditional_breakpoints>:
10180 Remove. <supports_hardware_single_step>: New field.
10181 (target_supports_conditional_breakpoints): Remove.
10182 (target_supports_hardware_single_step): New macro.
10183 (target_can_do_hardware_single_step): Declare.
10184 * server.c (handle_query): Use target_supports_hardware_single_step
10185 instead of target_supports_conditional_breakpoints.
10186
10187 2015-09-15 Yao Qi <yao.qi@linaro.org>
10188
10189 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
10190 function.
10191 (struct linux_target_ops the_low_target): Install
10192 aarch64_linux_siginfo_fixup.
10193
10194 2015-09-11 Don Breazeal <donb@codesourcery.com>
10195 Luis Machado <lgustavo@codesourcery.com>
10196
10197 * linux-low.c (linux_mourn): Static declaration.
10198 (linux_arch_setup): Move in front of
10199 handle_extended_wait.
10200 (linux_arch_setup_thread): New function.
10201 (handle_extended_wait): Handle exec events. Call
10202 linux_arch_setup_thread. Make event_lwp argument a
10203 pointer-to-a-pointer.
10204 (check_zombie_leaders): Do not check stopped threads.
10205 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
10206 (linux_low_filter_event): Add lwp and thread for exec'ing
10207 non-leader thread if leader thread has been deleted.
10208 Refactor code into linux_arch_setup_thread and call it.
10209 Pass child lwp pointer by reference to handle_extended_wait.
10210 (linux_wait_for_event_filtered): Update comment.
10211 (linux_wait_1): Prevent clobbering exec event status.
10212 (linux_supports_exec_events): New function.
10213 (linux_target_ops) <supports_exec_events>: Initialize new member.
10214 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
10215 new member.
10216 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
10217 * server.c (report_exec_events): New global variable.
10218 (handle_query): Handle qSupported query for exec-events feature.
10219 (captured_main): Initialize report_exec_events.
10220 * server.h (report_exec_events): Declare new global variable.
10221 * target.h (struct target_ops) <supports_exec_events>: New
10222 member.
10223 (target_supports_exec_events): New macro.
10224 * win32-low.c (win32_target_ops) <supports_exec_events>:
10225 Initialize new member.
10226
10227 2015-09-09 Markus Metzger <markus.t.metzger@intel.com>
10228
10229 * linux-low.c (linux_low_enable_btrace): Remove.
10230 (linux_target_ops): Replace linux_low_enable_btrace with
10231 linux_enable_btrace.
10232
10233 2015-09-03 Yao Qi <yao.qi@linaro.org>
10234
10235 * linux-aarch64-low.c (aarch64_insert_point): Call
10236 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
10237 returns true.
10238
10239 2015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10240
10241 * linux-low.c (check_stopped_by_breakpoint): Use
10242 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
10243
10244 2015-08-27 Pedro Alves <palves@redhat.com>
10245
10246 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
10247
10248 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
10249
10250 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
10251 the XNEW-family equivalent.
10252 (compile_bytecodes): Likewise.
10253 * dll.c (loaded_dll): Likewise.
10254 * event-loop.c (append_callback_event): Likewise.
10255 (create_file_handler): Likewise.
10256 (create_file_event): Likewise.
10257 * hostio.c (handle_open): Likewise.
10258 * inferiors.c (add_thread): Likewise.
10259 (add_process): Likewise.
10260 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
10261 * linux-arm-low.c (arm_new_process): Likewise.
10262 (arm_new_thread): Likewise.
10263 * linux-low.c (add_to_pid_list): Likewise.
10264 (linux_add_process): Likewise.
10265 (handle_extended_wait): Likewise.
10266 (add_lwp): Likewise.
10267 (enqueue_one_deferred_signal): Likewise.
10268 (enqueue_pending_signal): Likewise.
10269 (linux_resume_one_lwp_throw): Likewise.
10270 (linux_resume_one_thread): Likewise.
10271 (linux_read_memory): Likewise.
10272 (linux_write_memory): Likewise.
10273 * linux-mips-low.c (mips_linux_new_process): Likewise.
10274 (mips_linux_new_thread): Likewise.
10275 (mips_add_watchpoint): Likewise.
10276 * linux-x86-low.c (initialize_low_arch): Likewise.
10277 * lynx-low.c (lynx_add_process): Likewise.
10278 * mem-break.c (set_raw_breakpoint_at): Likewise.
10279 (set_breakpoint): Likewise.
10280 (add_condition_to_breakpoint): Likewise.
10281 (add_commands_to_breakpoint): Likewise.
10282 (clone_agent_expr): Likewise.
10283 (clone_one_breakpoint): Likewise.
10284 * regcache.c (new_register_cache): Likewise.
10285 * remote-utils.c (look_up_one_symbol): Likewise.
10286 * server.c (queue_stop_reply): Likewise.
10287 (start_inferior): Likewise.
10288 (queue_stop_reply_callback): Likewise.
10289 (handle_target_event): Likewise.
10290 * spu-low.c (fetch_ppc_memory): Likewise.
10291 (store_ppc_memory): Likewise.
10292 * target.c (set_target_ops): Likewise.
10293 * thread-db.c (thread_db_load_search): Likewise.
10294 (try_thread_db_load_1): Likewise.
10295 * tracepoint.c (add_tracepoint): Likewise.
10296 (add_tracepoint_action): Likewise.
10297 (create_trace_state_variable): Likewise.
10298 (cmd_qtdpsrc): Likewise.
10299 (cmd_qtro): Likewise.
10300 (add_while_stepping_state): Likewise.
10301 * win32-low.c (child_add_thread): Likewise.
10302 (get_image_name): Likewise.
10303
10304 2015-08-25 Yao Qi <yao.qi@linaro.org>
10305
10306 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
10307
10308 2015-08-25 Yao Qi <yao.qi@linaro.org>
10309
10310 * Makefile.in (aarch64-linux.o): New rule.
10311 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
10312 srv_tgtobj.
10313 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
10314 (aarch64_init_debug_reg_state): Make it extern.
10315 (aarch64_linux_prepare_to_resume): Remove.
10316
10317 2015-08-25 Yao Qi <yao.qi@linaro.org>
10318
10319 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
10320 lwp_arch_private_info and ptid_of_lwp.
10321
10322 2015-08-25 Yao Qi <yao.qi@linaro.org>
10323
10324 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
10325 Find proc_info by find_process_pid. All callers updated.
10326
10327 2015-08-25 Yao Qi <yao.qi@linaro.org>
10328
10329 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
10330 Remove.
10331 (debug_reg_change_callback): Remove.
10332 (aarch64_notify_debug_reg_change): Remove.
10333
10334 2015-08-25 Yao Qi <yao.qi@linaro.org>
10335
10336 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
10337 Call current_lwp_ptid.
10338
10339 2015-08-25 Yao Qi <yao.qi@linaro.org>
10340
10341 * linux-aarch64-low.c (debug_reg_change_callback): Use
10342 debug_printf.
10343
10344 2015-08-25 Yao Qi <yao.qi@linaro.org>
10345
10346 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
10347
10348 2015-08-25 Yao Qi <yao.qi@linaro.org>
10349
10350 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
10351
10352 2015-08-25 Yao Qi <yao.qi@linaro.org>
10353
10354 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
10355 the code.
10356
10357 2015-08-25 Yao Qi <yao.qi@linaro.org>
10358
10359 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
10360 Remove.
10361 (debug_reg_change_callback): Remove argument entry and add argument
10362 lwp. Remove local variable thread. Don't print thread id in the
10363 debugging output. Don't check whether pid of thread equals to pid.
10364 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
10365 iterate_over_lwps instead find_inferior.
10366
10367 2015-08-24 Pedro Alves <palves@redhat.com>
10368
10369 * inferiors.c (get_first_process): New function.
10370 * inferiors.h (get_first_process): New declaration.
10371 * remote-utils.c (read_ptid): Default to the first process in the
10372 list, instead of to the current thread's process.
10373
10374 2015-08-24 Pedro Alves <palves@redhat.com>
10375
10376 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
10377 * event-loop.c: Likewise.
10378 * remote-utils.c: Likewise.
10379 * tracepoint.c: Likewise.
10380
10381 2015-08-24 Pedro Alves <palves@redhat.com>
10382
10383 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
10384 ptid_get_lwp.
10385
10386 2015-08-21 Pedro Alves <palves@redhat.com>
10387
10388 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
10389 instead of literal 1.
10390
10391 2015-08-21 Pedro Alves <palves@redhat.com>
10392
10393 * tdesc.c (default_description): Explicitly zero-initialize.
10394
10395 2015-08-21 Pedro Alves <palves@redhat.com>
10396
10397 PR gdb/18749
10398 * inferiors.c (remove_thread): Discard any pending stop reply for
10399 this thread.
10400 * server.c (remove_all_on_match_pid): Rename to ...
10401 (remove_all_on_match_ptid): ... this. Work with a filter ptid
10402 instead of a pid.
10403 (discard_queued_stop_replies): Change parameter to a ptid. Now
10404 extern.
10405 (handle_v_kill, kill_inferior_callback, captured_main)
10406 (process_serial_event): Adjust.
10407 * server.h (discard_queued_stop_replies): Declare.
10408
10409 2015-08-21 Pedro Alves <palves@redhat.com>
10410
10411 * linux-low.c (wait_for_sigstop): Always switch to no thread
10412 selected if the previously current thread dies.
10413 * lynx-low.c (lynx_request_interrupt): Use the first thread's
10414 process instead of the current thread's.
10415 * remote-utils.c (input_interrupt): Don't check if there's no
10416 current thread.
10417 * server.c (gdb_read_memory, gdb_write_memory): If setting the
10418 current thread to the general thread fails, error out.
10419 (handle_qxfer_auxv, handle_qxfer_libraries)
10420 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
10421 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
10422 (handle_query): Check if there's a thread selected instead of
10423 checking whether there's any thread in the thread list.
10424 (handle_qxfer_threads, handle_qxfer_btrace)
10425 (handle_qxfer_btrace_conf): Don't error out early if there's no
10426 thread in the thread list.
10427 (handle_v_cont, myresume): Don't set the current thread to the
10428 continue thread.
10429 (process_serial_event) <Hg handling>: Also set thread_id if the
10430 previous general thread is still alive.
10431 (process_serial_event) <g/G handling>: If setting the current
10432 thread to the general thread fails, error out.
10433 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
10434 thread's lwp instead of the current thread's.
10435 * target.c (set_desired_thread): If the desired thread was not
10436 found, leave the current thread pointing to NULL. Return an int
10437 (boolean) indicating success.
10438 * target.h (set_desired_thread): Change return type to int.
10439
10440 2015-08-20 Max Filippov <jcmvbkbc@gmail.com>
10441
10442 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
10443 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
10444 #includes.
10445 (ps_get_thread_area): New function.
10446
10447 2015-08-19 Gary Benson <gbenson@redhat.com>
10448
10449 * hostio.c (handle_pread): Do not attempt to read more data
10450 than hostio_reply_with_data can fit in a packet.
10451
10452 2015-08-18 Joel Brobecker <brobecker@adacore.com>
10453
10454 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
10455
10456 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
10457
10458 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
10459
10460 2015-08-06 Pedro Alves <palves@redhat.com>
10461
10462 * tracepoint.c (expr_eval_result): Now an int.
10463
10464 2015-08-06 Pedro Alves <palves@redhat.com>
10465
10466 * gdbthread.h (struct regcache): Forward declare.
10467 (struct thread_info) <regcache_data>: Now a struct regcache
10468 pointer.
10469 * inferiors.c (inferior_regcache_data)
10470 (set_inferior_regcache_data): Now work with struct regcache
10471 pointers.
10472 * inferiors.h (struct regcache): Forward declare.
10473 (inferior_regcache_data, set_inferior_regcache_data): Now work
10474 with struct regcache pointers.
10475 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
10476 (free_register_cache_thread): Remove struct regcache pointer
10477 casts.
10478
10479 2015-08-06 Pedro Alves <palves@redhat.com>
10480
10481 * server.c (captured_main): On error, print the exception message
10482 to stderr, and if run_once is set, throw a quit.
10483
10484 2015-08-06 Pedro Alves <palves@redhat.com>
10485
10486 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
10487 the current thread.
10488
10489 2015-08-06 Pedro Alves <palves@redhat.com>
10490
10491 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
10492 reading beyond the passed in buffer length.
10493
10494 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
10495
10496 * tracepoint.c (symbol_list) <required>: Remove.
10497
10498 2015-08-06 Pedro Alves <palves@redhat.com>
10499
10500 * linux-low.c (handle_extended_wait): Set the fork child's suspend
10501 count if stopping and suspending threads.
10502 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
10503 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
10504 (linux_detach): Complete an ongoing step-over.
10505 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
10506 throughout.
10507 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
10508 (linux_wait_1): If passing a signal to the inferior after
10509 finishing a step-over, unsuspend and re-resume all lwps. If we
10510 see a single-step event but the thread should be continuing, don't
10511 pass the trap to gdb.
10512 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
10513 internal_error instead of gdb_assert.
10514 (enqueue_pending_signal): New function.
10515 (check_ptrace_stopped_lwp_gone): Add debug output.
10516 (start_step_over): Use internal_error instead of gdb_assert.
10517 (complete_ongoing_step_over): New function.
10518 (linux_resume_one_thread): Don't resume a suspended thread.
10519 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
10520 it stepping.
10521
10522 2015-08-06 Pedro Alves <palves@redhat.com>
10523
10524 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
10525 (linux_thread_alive): Use lwp_is_marked_dead.
10526 (extended_event_reported): Delete.
10527 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
10528 instead of extended_event_reported.
10529 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
10530 as well.
10531 (lwp_is_marked_dead): New function.
10532 (lwp_running): Use lwp_is_marked_dead.
10533 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
10534 comment.
10535
10536 2015-08-06 Pedro Alves <palves@redhat.com>
10537
10538 * linux-low.c (linux_wait_1): Move fork event output out of the
10539 !report_to_gdb check. Pass event_child->waitstatus to
10540 target_waitstatus_to_string instead of ourstatus.
10541
10542 2015-08-04 Yao Qi <yao.qi@linaro.org>
10543
10544 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
10545 if current_thread is 32 bit.
10546
10547 2015-08-04 Yao Qi <yao.qi@linaro.org>
10548
10549 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
10550 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
10551 * server.c (extended_protocol): Remove "static".
10552 * server.h (extended_protocol): Declare it.
10553
10554 2015-08-04 Yao Qi <yao.qi@linaro.org>
10555
10556 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
10557 both aarch64 and aarch32.
10558 (aarch64_set_pc): Likewise.
10559
10560 2015-08-04 Yao Qi <yao.qi@linaro.org>
10561
10562 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
10563 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
10564 arm-with-neon.xml to srv_xmlfiles.
10565 * linux-aarch64-low.c: Include linux-aarch32-low.h.
10566 (is_64bit_tdesc): New function.
10567 (aarch64_linux_read_description): New function.
10568 (aarch64_arch_setup): Call aarch64_linux_read_description.
10569 (regs_info): Rename to regs_info_aarch64.
10570 (aarch64_regs_info): Return right regs_info.
10571 (initialize_low_arch): Call initialize_low_arch_aarch32.
10572
10573 2015-08-04 Yao Qi <yao.qi@linaro.org>
10574
10575 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
10576 * linux-aarch32-low.c: New file.
10577 * linux-aarch32-low.h: New file.
10578 * linux-arm-low.c (arm_fill_gregset): Move it to
10579 linux-aarch32-low.c.
10580 (arm_store_gregset): Likewise.
10581 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
10582 (arm_store_vfpregset): Call arm_store_vfpregset_num.
10583 (arm_arch_setup): Check if PTRACE_GETREGSET works.
10584 (regs_info): Rename to regs_info_arm.
10585 (arm_regs_info): Return regs_info_aarch32 if
10586 have_ptrace_getregset is 1 and target description is
10587 arm_with_neon or arm_with_vfpv3.
10588 (initialize_low_arch): Don't call init_registers_arm_with_neon.
10589 Call initialize_low_arch_aarch32 instead.
10590
10591 2015-08-04 Yao Qi <yao.qi@linaro.org>
10592
10593 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
10594 * linux-low.c: ... here.
10595 * linux-low.h (have_ptrace_getregset): Declare it.
10596
10597 2015-08-04 Pedro Alves <palves@redhat.com>
10598
10599 * thread-db.c (struct thread_db): Use new typedefs.
10600 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
10601 CHK calls.
10602 (disable_thread_event_reporting): Cast result of dlsym to
10603 destination function pointer type.
10604 (thread_db_mourn): Use td_ta_delete_ftype.
10605
10606 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
10607
10608 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
10609 arch variant.
10610 (CDX_BREAKPOINT): Define for R2.
10611 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
10612 (the_low_target): Add comments.
10613
10614 2015-07-30 Yao Qi <yao.qi@linaro.org>
10615
10616 * linux-arm-low.c (arm_hwcap): Remove it.
10617 (arm_read_description): New local variable arm_hwcap. Don't
10618 set arm_hwcap to zero.
10619
10620 2015-07-30 Yao Qi <yao.qi@linaro.org>
10621
10622 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
10623 Use regcache->tdesc instead.
10624 (arm_store_wmmxregset): Likewise.
10625 (arm_fill_vfpregset): Likewise.
10626 (arm_store_vfpregset): Likewise.
10627
10628 2015-07-30 Yao Qi <yao.qi@linaro.org>
10629
10630 * linux-arm-low.c: Include arch/arm.h.
10631 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
10632 (arm_store_gregset): Likewise.
10633
10634 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
10635
10636 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
10637 ptrace's 4th parameter.
10638
10639 2015-07-27 Yao Qi <yao.qi@linaro.org>
10640
10641 * configure.srv (case aarch64*-*-linux*): Don't set
10642 srv_linux_usrregs.
10643
10644 2015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
10645
10646 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
10647 sys/ptrace.h.
10648 * linux-arm-low.c: Likewise.
10649 * linux-cris-low.c: Likewise.
10650 * linux-crisv32-low.c: Likewise.
10651 * linux-low.c: Likewise.
10652 * linux-m68k-low.c: Likewise.
10653 * linux-mips-low.c: Likewise.
10654 * linux-nios2-low.c: Likewise.
10655 * linux-s390-low.c: Likewise.
10656 * linux-sparc-low.c: Likewise.
10657 * linux-tic6x-low.c: Likewise.
10658 * linux-tile-low.c: Likewise.
10659 * linux-x86-low.c: Likewise.
10660
10661 2015-07-24 Pedro Alves <palves@redhat.com>
10662
10663 * config.in: Regenerate.
10664 * configure: Regenerate.
10665
10666 2015-07-24 Pedro Alves <palves@redhat.com>
10667
10668 * acinclude.m4: Include ../ptrace.m4.
10669 * configure.ac: Call GDB_AC_PTRACE.
10670 * config.in, configure: Regenerate.
10671
10672 2015-07-24 Yao Qi <yao.qi@linaro.org>
10673
10674 * linux-low.c (linux_create_inferior): Remove setting to
10675 proc->priv->new_inferior.
10676 (linux_attach): Likewise.
10677 (linux_low_filter_event): Likewise.
10678 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
10679
10680 2015-07-24 Yao Qi <yao.qi@linaro.org>
10681
10682 * linux-low.c (linux_arch_setup): New function.
10683 (linux_low_filter_event): If proc->tdesc is NULL and
10684 proc->attached is true, call the_low_target.arch_setup.
10685 Otherwise, keep status pending, and return.
10686 (linux_resume_one_lwp_throw): Don't call get_pc if
10687 thread->while_stepping isn't NULL. Don't call
10688 get_thread_regcache if proc->tdesc is NULL.
10689 (need_step_over_p): Return 0 if proc->tdesc is NULL.
10690 (linux_target_ops): Install arch_setup.
10691 * server.c (start_inferior): Call the_target->arch_setup.
10692 * target.h (struct target_ops) <arch_setup>: New field.
10693 (target_arch_setup): New marco.
10694 * lynx-low.c (lynx_target_ops): Update.
10695 * nto-low.c (nto_target_ops): Update.
10696 * spu-low.c (spu_target_ops): Update.
10697 * win32-low.c (win32_target_ops): Update.
10698
10699 2015-07-24 Yao Qi <yao.qi@linaro.org>
10700
10701 * linux-low.c (linux_add_process): Don't set
10702 proc->priv->new_inferior.
10703 (linux_create_inferior): Set proc->priv->new_inferior to 1.
10704 (linux_attach): Likewise.
10705
10706 2015-07-24 Yao Qi <yao.qi@linaro.org>
10707
10708 * server.c (start_inferior): Code refactor.
10709
10710 2015-07-24 Yao Qi <yao.qi@linaro.org>
10711
10712 * server.c (process_serial_event): Set general_thread.
10713
10714 2015-07-21 Yao Qi <yao.qi@linaro.org>
10715
10716 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
10717 aarch64_linux_get_debug_reg_capacity.
10718
10719 2015-07-17 Yao Qi <yao.qi@linaro.org>
10720
10721 * Makefile.in (aarch64-linux-hw-point.o): New rule.
10722 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
10723 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
10724 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
10725 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
10726 (AARCH64_HWP_ALIGNMENT): Likewise.
10727 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
10728 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
10729 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
10730 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
10731 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
10732 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
10733 (struct aarch64_debug_reg_state): Likewise.
10734 (struct arch_lwp_info): Likewise.
10735 (aarch64_align_watchpoint): Likewise.
10736 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
10737 (aarch64_watchpoint_length): Likewise.
10738 (aarch64_point_encode_ctrl_reg): Likewise
10739 (aarch64_point_is_aligned): Likewise.
10740 (aarch64_align_watchpoint): Likewise.
10741 (aarch64_linux_set_debug_regs):
10742 (aarch64_dr_state_insert_one_point): Likewise.
10743 (aarch64_dr_state_remove_one_point): Likewise.
10744 (aarch64_handle_breakpoint): Likewise.
10745 (aarch64_handle_aligned_watchpoint): Likewise.
10746 (aarch64_handle_unaligned_watchpoint): Likewise.
10747 (aarch64_handle_watchpoint): Likewise.
10748
10749 2015-07-17 Yao Qi <yao.qi@linaro.org>
10750
10751 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
10752 and don't aarch64_get_debug_reg_state. All callers update.
10753 (aarch64_handle_aligned_watchpoint): Likewise.
10754 (aarch64_handle_unaligned_watchpoint): Likewise.
10755 (aarch64_handle_watchpoint): Likewise.
10756 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
10757 (aarch64_remove_point): Likewise.
10758
10759 2015-07-17 Yao Qi <yao.qi@linaro.org>
10760
10761 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
10762 debug_printf.
10763 (aarch64_handle_unaligned_watchpoint): Likewise.
10764
10765 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10766
10767 Revert the previous 3 commits:
10768 Move gdb_regex* to common/
10769 Move linux_find_memory_regions_full & co.
10770 gdbserver build-id attribute generator
10771
10772 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10773 Jan Kratochvil <jan.kratochvil@redhat.com>
10774
10775 gdbserver build-id attribute generator.
10776 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
10777 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
10778 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
10779 (find_phdr): New.
10780 (get_dynamic): Use find_pdhr to traverse program headers.
10781 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
10782 (compare_mapping_entry_range, struct find_memory_region_callback_data)
10783 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
10784 (get_hex_build_id): New.
10785 (linux_qxfer_libraries_svr4): Add optional build-id attribute
10786 to reply XML document.
10787
10788 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10789 Jan Kratochvil <jan.kratochvil@redhat.com>
10790
10791 * target.c: Include target/target-utils.h and fcntl.h.
10792 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
10793 (target_fileio_read_stralloc): New functions.
10794
10795 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10796
10797 * Makefile.in (OBS): Add gdb_regex.o.
10798 (gdb_regex.o): New.
10799 * config.in: Rebuilt.
10800 * configure: Rebuilt.
10801
10802 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10803 Jan Kratochvil <jan.kratochvil@redhat.com>
10804
10805 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
10806 * Makefile.in (OBS): Add target-utils.o.
10807 (linux-maps.o, target-utils.o): New.
10808 * configure.srv (srv_linux_obj): Add linux-maps.o.
10809
10810 2015-07-15 Pierre Langlois <pierre.langlois@arm.com>
10811
10812 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
10813 function, return 1.
10814 (the_low_target): Install it.
10815
10816 2015-07-14 Pedro Alves <palves@redhat.com>
10817
10818 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
10819 Instead, ignore ECHILD, and throw an error for other errnos.
10820
10821 2015-07-10 Pedro Alves <palves@redhat.com>
10822
10823 * event-loop.c (struct callback_event) <data>: Change type to
10824 gdb_client_data instance instead of gdb_client_data pointer.
10825 (append_callback_event): Adjust.
10826
10827 2015-07-10 Pierre Langlois <pierre.langlois@arm.com>
10828
10829 * linux-aarch64-low.c: Add comments for each linux_target_ops
10830 method. Remove comments already covered in target_ops and
10831 linux_target_ops definitions.
10832 (the_low_target): Add comments for each unimplemented method.
10833
10834 2015-07-09 Yao Qi <yao.qi@linaro.org>
10835
10836 * linux-aarch64-low.c (aarch64_regmap): Remove.
10837 (aarch64_usrregs_info): Remove.
10838 (regs_info): Set field usrregs to NULL.
10839
10840 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
10841
10842 * linux-low.c: Include "rsp-low.h"
10843 (linux_low_encode_pt_config, linux_low_encode_raw): New.
10844 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
10845 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
10846 (handle_btrace_enable_pt): New.
10847 (handle_btrace_general_set): Support "pt".
10848 (handle_btrace_conf_general_set): Support "pt:size".
10849
10850 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10851
10852 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
10853 Z_PACKET_SW_BP.
10854
10855 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10856
10857 * linux-aarch64-low.c: Remove comment about endianness.
10858 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
10859 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
10860 memcmp.
10861
10862 2015-06-24 Gary Benson <gbenson@redhat.com>
10863
10864 * linux-i386-ipa.c (stdint.h): Do not include.
10865 * lynx-i386-low.c (stdint.h): Likewise.
10866 * lynx-ppc-low.c (stdint.h): Likewise.
10867 * mem-break.c (stdint.h): Likewise.
10868 * thread-db.c (stdint.h): Likewise.
10869 * tracepoint.c (stdint.h): Likewise.
10870 * win32-low.c (stdint.h): Likewise.
10871
10872 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
10873
10874 * server.c (write_qxfer_response): Update call to
10875 remote_escape_output.
10876
10877 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
10878 Jan Kratochvil <jan.kratochvil@redhat.com>
10879
10880 Merge multiple hex conversions.
10881 * gdbreplay.c (tohex): Rename to 'fromhex'.
10882 (logchar): Use fromhex.
10883
10884 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10885
10886 * server.c (handle_qxfer_libraries): Set `version' attribute for
10887 <library-list>.
10888
10889 2015-06-10 Gary Benson <gbenson@redhat.com>
10890
10891 * target.h (struct target_ops) <multifs_open>: New field.
10892 <multifs_unlink>: Likewise.
10893 <multifs_readlink>: Likewise.
10894 * linux-low.c (nat/linux-namespaces.h): New include.
10895 (linux_target_ops): Initialize the_target->multifs_open,
10896 the_target->multifs_unlink and the_target->multifs_readlink.
10897 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
10898 * hostio.c (hostio_fs_pid): New static variable.
10899 (hostio_handle_new_gdb_connection): New function.
10900 (handle_setfs): Likewise.
10901 (handle_open): Use the_target->multifs_open as appropriate.
10902 (handle_unlink): Use the_target->multifs_unlink as appropriate.
10903 (handle_readlink): Use the_target->multifs_readlink as
10904 appropriate.
10905 (handle_vFile): Handle vFile:setfs packets.
10906 * server.c (handle_query): Call hostio_handle_new_gdb_connection
10907 after target_handle_new_gdb_connection.
10908
10909 2015-06-10 Gary Benson <gbenson@redhat.com>
10910
10911 * configure.ac (AC_CHECK_FUNCS): Add setns.
10912 * config.in: Regenerate.
10913 * configure: Likewise.
10914 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
10915 (linux-namespaces.o): New rule.
10916 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
10917
10918 2015-06-09 Gary Benson <gbenson@redhat.com>
10919
10920 * hostio.c (handle_open): Process mode argument with
10921 fileio_to_host_mode.
10922
10923 2015-06-01 Yao Qi <yao.qi@linaro.org>
10924
10925 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
10926 * linux-x86-low.c: Likewise.
10927
10928 2015-05-28 Don Breazeal <donb@codesourcery.com>
10929
10930 * linux-low.c (handle_extended_wait): Initialize
10931 thread_info.last_resume_kind for new fork children.
10932
10933 2015-05-15 Pedro Alves <palves@redhat.com>
10934
10935 * target.h (target_handle_new_gdb_connection): Rewrite using if
10936 wrapped in do/while.
10937
10938 2015-05-14 Joel Brobecker <brobecker@adacore.com>
10939
10940 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
10941 * configure, config.in: Regenerate.
10942 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
10943 Declare typedef.
10944
10945 2015-05-12 Don Breazeal <donb@codesourcery.com>
10946
10947 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
10948 PTRACE_EVENT_VFORK_DONE.
10949 (linux_low_ptrace_options, extended_event_reported): Add vfork
10950 events.
10951 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
10952 and "vforkdone" for RSP 'T' Stop Reply Packet.
10953 * server.h (report_vfork_events): Declare
10954 global variable.
10955
10956 2015-05-12 Don Breazeal <donb@codesourcery.com>
10957
10958 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
10959 (the_low_target) <new_fork>: Initialize new member.
10960 * linux-arm-low.c (arm_new_fork): New function.
10961 (the_low_target) <new_fork>: Initialize new member.
10962 * linux-low.c (handle_extended_wait): Call new target function
10963 new_fork.
10964 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
10965 * linux-mips-low.c (mips_add_watchpoint): New function
10966 extracted from mips_insert_point.
10967 (the_low_target) <new_fork>: Initialize new member.
10968 (mips_linux_new_fork): New function.
10969 (mips_insert_point): Call mips_add_watchpoint.
10970 * linux-x86-low.c (x86_linux_new_fork): New function.
10971 (the_low_target) <new_fork>: Initialize new member.
10972
10973 2015-05-12 Don Breazeal <donb@codesourcery.com>
10974
10975 * linux-low.c (handle_extended_wait): Implement return value,
10976 rename argument 'event_child' to 'event_lwp', handle
10977 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
10978 (linux_low_ptrace_options): New function.
10979 (linux_low_filter_event): Call linux_low_ptrace_options,
10980 use different argument fo linux_enable_event_reporting,
10981 use return value from handle_extended_wait.
10982 (extended_event_reported): New function.
10983 (linux_wait_1): Call extended_event_reported and set
10984 status to report fork events.
10985 (linux_write_memory): Add pid to debug message.
10986 (reset_lwp_ptrace_options_callback): New function.
10987 (linux_handle_new_gdb_connection): New function.
10988 (linux_target_ops): Initialize new structure member.
10989 * linux-low.h (struct lwp_info) <waitstatus>: New member.
10990 * lynx-low.c: Initialize new structure member.
10991 * remote-utils.c (prepare_resume_reply): Implement stop reason
10992 "fork" for "T" stop message.
10993 * server.c (handle_query): Call handle_new_gdb_connection.
10994 * server.h (report_fork_events): Declare global flag.
10995 * target.h (struct target_ops) <handle_new_gdb_connection>:
10996 New member.
10997 (target_handle_new_gdb_connection): New macro.
10998 * win32-low.c: Initialize new structure member.
10999
11000 2015-05-12 Don Breazeal <donb@codesourcery.com>
11001
11002 * mem-break.c (APPEND_TO_LIST): Define macro.
11003 (clone_agent_expr): New function.
11004 (clone_one_breakpoint): New function.
11005 (clone_all_breakpoints): New function.
11006 * mem-break.h: Declare new functions.
11007
11008 2015-05-12 Don Breazeal <donb@codesourcery.com>
11009
11010 * linux-low.c (linux_supports_fork_events): New function.
11011 (linux_supports_vfork_events): New function.
11012 (linux_target_ops): Initialize new structure members.
11013 (initialize_low): Call linux_check_ptrace_features.
11014 * lynx-low.c (lynx_target_ops): Initialize new structure
11015 members.
11016 * server.c (report_fork_events, report_vfork_events):
11017 New global flags.
11018 (handle_query): Add new features to qSupported packet and
11019 response.
11020 (captured_main): Initialize new global variables.
11021 * target.h (struct target_ops) <supports_fork_events>:
11022 New member.
11023 <supports_vfork_events>: New member.
11024 (target_supports_fork_events): New macro.
11025 (target_supports_vfork_events): New macro.
11026 * win32-low.c (win32_target_ops): Initialize new structure
11027 members.
11028
11029 2015-05-12 Gary Benson <gbenson@redhat.com>
11030
11031 * server.c (handle_qxfer_exec_file): Use current process
11032 if annex is empty.
11033
11034 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
11035
11036 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
11037 Remove HAVE_PTRACE_GETREGS conditionals.
11038 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
11039 instead of PTRACE_GETREGS and PTRACE_SETREGS.
11040
11041 2015-05-08 Yao Qi <yao.qi@linaro.org>
11042
11043 * linux-low.c (linux_supports_conditional_breakpoints): New
11044 function.
11045 (linux_target_ops): Install new target method.
11046 * lynx-low.c (lynx_target_ops): Install NULL hook for
11047 supports_conditional_breakpoints.
11048 * nto-low.c (nto_target_ops): Likewise.
11049 * spu-low.c (spu_target_ops): Likewise.
11050 * win32-low.c (win32_target_ops): Likewise.
11051 * server.c (handle_query): Check
11052 target_supports_conditional_breakpoints.
11053 * target.h (struct target_ops) <supports_conditional_breakpoints>:
11054 New field.
11055 (target_supports_conditional_breakpoints): New macro.
11056
11057 2015-05-06 Pedro Alves <palves@redhat.com>
11058
11059 PR server/18081
11060 * server.c (start_inferior): If the process exits, mourn it.
11061
11062 2015-04-21 Gary Benson <gbenson@redhat.com>
11063
11064 * hostio.c (fileio_open_flags_to_host): Factored out to
11065 fileio_to_host_openflags in common/fileio.c. Single use
11066 updated.
11067
11068 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11069
11070 * linux-xtensa-low.c (xtensa_fill_gregset)
11071 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
11072 XCHAL_HAVE_LOOP.
11073
11074 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11075
11076 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
11077 (regs_info): Replace usrregs pointer with NULL.
11078
11079 2015-04-17 Gary Benson <gbenson@redhat.com>
11080
11081 * target.h (struct target_ops) <pid_to_exec_file>: New field.
11082 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
11083 * server.c (handle_qxfer_exec_file): New function.
11084 (qxfer_packets): Add exec-file entry.
11085 (handle_query): Report qXfer:exec-file:read as supported packet.
11086
11087 2015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
11088
11089 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
11090
11091 2015-04-09 Gary Benson <gbenson@redhat.com>
11092
11093 * hostio-errno.c (errno_to_fileio_error): Remove function.
11094 Update caller to use remote_fileio_to_fio_error.
11095
11096 2015-04-09 Yao Qi <yao.qi@linaro.org>
11097
11098 * linux-low.c (linux_insert_point): Call
11099 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
11100 (linux_remove_point): Call remove_memory_breakpoint if type is
11101 raw_bkpt_type_sw.
11102 * linux-x86-low.c (x86_insert_point): Don't call
11103 insert_memory_breakpoint.
11104 (x86_remove_point): Don't call remove_memory_breakpoint.
11105
11106 2015-04-01 Pedro Alves <palves@redhat.com>
11107 Cleber Rosa <crosa@redhat.com>
11108
11109 * server.c (gdbserver_usage): Reorganize and extend the usage
11110 message.
11111
11112 2015-03-24 Pedro Alves <palves@redhat.com>
11113
11114 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
11115 output. Also dump TRAP_TRACE.
11116 (linux_low_filter_event): In debug output, distinguish a
11117 resume_stop SIGSTOP from a delayed SIGSTOP.
11118
11119 2015-03-24 Gary Benson <gbenson@redhat.com>
11120
11121 * linux-x86-low.c (x86_linux_new_thread): Moved to
11122 nat/x86-linux.c.
11123 (x86_linux_prepare_to_resume): Likewise.
11124
11125 2015-03-24 Gary Benson <gbenson@redhat.com>
11126
11127 * Makefile.in (x86-linux-dregs.o): New rule.
11128 * configure.srv: Add x86-linux-dregs.o to relevant targets.
11129 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
11130 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
11131 (x86_linux_dr_get): Likewise.
11132 (x86_linux_dr_set): Likewise.
11133 (update_debug_registers_callback): Likewise.
11134 (x86_linux_dr_set_addr): Likewise.
11135 (x86_linux_dr_get_addr): Likewise.
11136 (x86_linux_dr_set_control): Likewise.
11137 (x86_linux_dr_get_control): Likewise.
11138 (x86_linux_dr_get_status): Likewise.
11139 (x86_linux_update_debug_registers): Likewise.
11140
11141 2015-03-24 Gary Benson <gbenson@redhat.com>
11142
11143 * linux-x86-low.c (x86_linux_update_debug_registers):
11144 New function, factored out from...
11145 (x86_linux_prepare_to_resume): ...this.
11146
11147 2015-03-24 Gary Benson <gbenson@redhat.com>
11148
11149 * linux-x86-low.c (x86_linux_dr_get): Update comments.
11150 (x86_linux_dr_set): Likewise.
11151 (update_debug_registers_callback): Likewise.
11152 (x86_linux_dr_set_addr): Likewise.
11153 (x86_linux_dr_get_addr): Likewise.
11154 (x86_linux_dr_set_control): Likewise.
11155 (x86_linux_dr_get_control): Likewise.
11156 (x86_linux_dr_get_status): Likewise.
11157 (x86_linux_prepare_to_resume): Likewise.
11158
11159 2015-03-24 Gary Benson <gbenson@redhat.com>
11160
11161 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
11162 Use perror_with_name. Pass string through gettext.
11163 (x86_linux_dr_set): Likewise.
11164
11165 2015-03-24 Gary Benson <gbenson@redhat.com>
11166
11167 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
11168 (x86_linux_dr_set_addr): ...this.
11169 (x86_dr_low_get_addr): Rename to...
11170 (x86_linux_dr_get_addr): ...this.
11171 (x86_dr_low_set_control): Rename to...
11172 (x86_linux_dr_set_control): ...this.
11173 (x86_dr_low_get_control): Rename to...
11174 (x86_linux_dr_get_control): ...this.
11175 (x86_dr_low_get_status): Rename to...
11176 (x86_linux_dr_get_status): ...this.
11177 (x86_dr_low): Update with new function names.
11178
11179 2015-03-24 Gary Benson <gbenson@redhat.com>
11180
11181 * Makefile.in (x86-linux.o): New rule.
11182 * configure.srv: Add x86-linux.o to relevant targets.
11183 * linux-low.c (lwp_set_arch_private_info): New function.
11184 (lwp_arch_private_info): Likewise.
11185 * linux-x86-low.c: Include nat/x86-linux.h.
11186 (arch_lwp_info): Removed structure.
11187 (update_debug_registers_callback):
11188 Use lwp_set_debug_registers_changed.
11189 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
11190 and lwp_set_debug_registers_changed.
11191 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
11192
11193 2015-03-24 Gary Benson <gbenson@redhat.com>
11194
11195 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
11196 * linux-arm-low.c (arm_new_thread): Likewise.
11197 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
11198 * linux-mips-low.c (mips_linux_new_thread): Likewise.
11199 * linux-x86-low.c (x86_linux_new_thread): Likewise.
11200 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
11201
11202 2015-03-24 Gary Benson <gbenson@redhat.com>
11203
11204 * linux-low.c (ptid_of_lwp): New function.
11205 (lwp_is_stopped): Likewise.
11206 (lwp_stop_reason): Likewise.
11207 * linux-x86-low.c (update_debug_registers_callback):
11208 Use lwp_is_stopped.
11209 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
11210 lwp_stop_reason.
11211
11212 2015-03-24 Gary Benson <gbenson@redhat.com>
11213
11214 * linux-low.h (linux_stop_lwp): Remove declaration.
11215
11216 2015-03-24 Gary Benson <gbenson@redhat.com>
11217
11218 * linux-low.h: Include nat/linux-nat.h.
11219 * linux-low.c (iterate_over_lwps_args): New structure.
11220 (iterate_over_lwps_filter): New function.
11221 (iterate_over_lwps): Likewise.
11222 * linux-x86-low.c (update_debug_registers_callback):
11223 Update signature to what iterate_over_lwps expects.
11224 Remove PID check that iterate_over_lwps now performs.
11225 (x86_dr_low_set_addr): Use iterate_over_lwps.
11226 (x86_dr_low_set_control): Likewise.
11227
11228 2015-03-24 Gary Benson <gbenson@redhat.com>
11229
11230 * linux-x86-low.c (x86_debug_reg_state): New function.
11231 (x86_linux_prepare_to_resume): Use the above.
11232
11233 2015-03-24 Gary Benson <gbenson@redhat.com>
11234
11235 * linux-low.c (current_lwp_ptid): New function.
11236 * linux-x86-low.c: Include nat/linux-nat.h.
11237 (x86_dr_low_get_addr): Use current_lwp_ptid.
11238 (x86_dr_low_get_control): Likewise.
11239 (x86_dr_low_get_status): Likewise.
11240
11241 2015-03-20 Pedro Alves <palves@redhat.com>
11242
11243 * tracepoint.c (cmd_qtstatus): Make "str" const.
11244
11245 2015-03-20 Pedro Alves <palves@redhat.com>
11246
11247 * server.c (handle_general_set): Make "req_str" const.
11248
11249 2015-03-19 Pedro Alves <palves@redhat.com>
11250
11251 * linux-low.c (linux_resume_one_lwp): Rename to ...
11252 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
11253 instead call perror_with_name.
11254 (check_ptrace_stopped_lwp_gone): New function.
11255 (linux_resume_one_lwp): Reimplement as wrapper around
11256 linux_resume_one_lwp_throw that swallows errors if the LWP is
11257 gone.
11258
11259 2015-03-19 Pedro Alves <palves@redhat.com>
11260
11261 * linux-low.c (count_events_callback, select_event_lwp_callback):
11262 No longer check whether the thread has resume_stop as last resume
11263 kind.
11264
11265 2015-03-19 Pedro Alves <palves@redhat.com>
11266
11267 * linux-low.c (count_events_callback, select_event_lwp_callback):
11268 Use the lwp's status_pending_p field, not the thread's.
11269
11270 2015-03-19 Pedro Alves <palves@redhat.com>
11271
11272 * linux-low.c (select_event_lwp_callback): Update comments to
11273 no longer mention SIGTRAP.
11274
11275 2015-03-18 Gary Benson <gbenson@redhat.com>
11276
11277 * server.c (handle_query): Do not report vFile:fstat as supported.
11278
11279 2015-03-11 Gary Benson <gbenson@redhat.com>
11280
11281 * hostio.c (sys/types.h): New include.
11282 (sys/stat.h): Likewise.
11283 (common-remote-fileio.h): Likewise.
11284 (handle_fstat): New function.
11285 (handle_vFile): Handle vFile:fstat packets.
11286
11287 2015-03-11 Gary Benson <gbenson@redhat.com>
11288
11289 * configure.ac (AC_CHECK_MEMBERS): Add checks for
11290 struct stat.st_blocks and struct stat.st_blksize.
11291 * configure: Regenerate.
11292 * config.in: Likewise.
11293 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
11294 (OBS): Add common-remote-fileio.o.
11295 (common-remote-fileio.o): New rule.
11296
11297 2015-03-09 Pedro Alves <palves@redhat.com>
11298
11299 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
11300 'struct sockaddr' pointer in 'accept' call.
11301
11302 2015-03-09 Pedro Alves <palves@redhat.com>
11303
11304 Revert:
11305 2015-03-07 Pedro Alves <palves@redhat.com>
11306 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11307 or <winsock2.h> here. Instead include "gdb_socket.h".
11308 (remote_open): Use union gdb_sockaddr_u.
11309 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11310 or <winsock2.h> here. Instead include "gdb_socket.h".
11311 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11312 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11313 or <sys/un.h>.
11314 (init_named_socket, gdb_agent_helper_thread): Use union
11315 gdb_sockaddr_u.
11316
11317 2015-03-07 Pedro Alves <palves@redhat.com>
11318
11319 * configure.ac (build_warnings): Move
11320 -Wdeclaration-after-statement to the C-specific set.
11321 * configure: Regenerate.
11322
11323 2015-03-07 Pedro Alves <palves@redhat.com>
11324
11325 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11326 or <winsock2.h> here. Instead include "gdb_socket.h".
11327 (remote_open): Use union gdb_sockaddr_u.
11328 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11329 or <winsock2.h> here. Instead include "gdb_socket.h".
11330 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11331 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11332 or <sys/un.h>.
11333 (init_named_socket, gdb_agent_helper_thread): Use union
11334 gdb_sockaddr_u.
11335
11336 2015-03-07 Pedro Alves <palves@redhat.com>
11337
11338 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
11339 instead.
11340
11341 2015-03-06 Yao Qi <yao.qi@linaro.org>
11342
11343 * linux-aarch64-low.c (aarch64_insert_point): Use
11344 show_debug_regs as a boolean.
11345 (aarch64_remove_point): Likewise.
11346
11347 2015-03-05 Pedro Alves <palves@redhat.com>
11348
11349 * lynx-low.c (lynx_target_ops): Install NULL hooks for
11350 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
11351 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
11352 * nto-low.c (nto_target_ops): Likewise.
11353 * spu-low.c (spu_target_ops): Likewise.
11354 * win32-low.c (win32_target_ops): Likewise.
11355
11356 2015-03-04 Pedro Alves <palves@redhat.com>
11357
11358 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
11359 Decide whether a breakpoint triggered based on the SIGTRAP's
11360 siginfo.si_code.
11361 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
11362 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
11363 (linux_low_filter_event): Check for breakpoints before checking
11364 watchpoints.
11365 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
11366 siginfo.si_code.
11367 (linux_stopped_by_sw_breakpoint)
11368 (linux_supports_stopped_by_sw_breakpoint)
11369 (linux_stopped_by_hw_breakpoint)
11370 (linux_supports_stopped_by_hw_breakpoint): New functions.
11371 (linux_target_ops): Install new target methods.
11372
11373 2015-03-04 Pedro Alves <palves@redhat.com>
11374
11375 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
11376 * server.c (swbreak_feature, hwbreak_feature): New globals.
11377 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
11378 (captured_main): Clear swbreak_feature and hwbreak_feature.
11379 * server.h (swbreak_feature, hwbreak_feature): Declare.
11380 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
11381 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
11382 supports_stopped_by_hw_breakpoint>: New fields.
11383 (target_supports_stopped_by_sw_breakpoint)
11384 (target_stopped_by_sw_breakpoint)
11385 (target_supports_stopped_by_hw_breakpoint)
11386 (target_stopped_by_hw_breakpoint): Declare.
11387
11388 2015-03-04 Pedro Alves <palves@redhat.com>
11389
11390 enum lwp_stop_reason -> enum target_stop_reason
11391 * linux-low.c (check_stopped_by_breakpoint): Adjust.
11392 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
11393 (linux_wait_1, stuck_in_jump_pad_callback)
11394 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
11395 (linux_stopped_by_watchpoint):
11396 * linux-low.h (enum lwp_stop_reason): Delete.
11397 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
11398 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11399
11400 2015-03-04 Yao Qi <yao.qi@linaro.org>
11401
11402 * Makefile.in (SFILES): Add linux-aarch64-low.c.
11403
11404 2015-03-03 Gary Benson <gbenson@redhat.com>
11405
11406 * hostio.c (handle_vFile): Fix prefix lengths.
11407
11408 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
11409
11410 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
11411 ptr_bits.
11412
11413 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
11414
11415 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
11416 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
11417 (clean): Add "rm -f" for above C files.
11418 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
11419 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
11420 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
11421 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
11422 * linux-s390-low.c (HWCAP_S390_VX): New macro.
11423 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
11424 (init_registers_s390x_vx_linux64)
11425 (init_registers_s390x_tevx_linux64)
11426 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
11427 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
11428 declarations.
11429 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
11430 (s390_store_vxrs_high): New functions.
11431 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
11432 NT_S390_VXRS_HIGH.
11433 (s390_arch_setup): Add logic for selecting one of the new target
11434 descriptions. Activate the new vector regsets if applicable.
11435 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
11436 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
11437 and init_registers_s390x_tevx_linux64.
11438
11439 2015-03-01 Pedro Alves <palves@redhat.com>
11440
11441 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
11442 parameter.
11443
11444 2015-02-27 Pedro Alves <palves@redhat.com>
11445
11446 * linux-x86-low.c (u_debugreg_offset): New function.
11447 (x86_linux_dr_get, x86_linux_dr_set): Use it.
11448
11449 2015-02-27 Pedro Alves <palves@redhat.com>
11450
11451 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
11452 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
11453 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
11454 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
11455 (ps_lsetfpregs, ps_getpid)
11456 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
11457 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
11458 (ps_lsetxregs, ps_plog): Declare.
11459
11460 2015-02-27 Pedro Alves <palves@redhat.com>
11461
11462 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
11463 IP_AGENT_EXPORT_FUNC.
11464 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
11465 IP_AGENT_EXPORT_FUNC.
11466 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
11467 (IP_AGENT_EXPORT): Delete.
11468 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11469 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11470 (gdb_trampoline_buffer_error, collecting, gdb_collect)
11471 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
11472 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
11473 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
11474 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
11475 (traceframe_read_count, traceframe_write_count)
11476 (traceframes_created, trace_state_variables, get_raw_reg)
11477 (get_trace_state_variable_value, set_trace_state_variable_value)
11478 (ust_loaded, helper_thread_id, cmd_buf): Use
11479 IPA_SYM_EXPORTED_NAME.
11480 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
11481 (tracepoints) Use IP_AGENT_EXPORT_VAR.
11482 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
11483 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11484 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
11485 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
11486 EXTERN_C_PUSH/EXTERN_C_POP.
11487 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
11488 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
11489 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11490 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
11491 (traceframe_write_count, traceframe_read_count)
11492 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
11493 (about_to_request_buffer_space, get_trace_state_variable_value)
11494 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
11495 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
11496 EXTERN_C_PUSH/EXTERN_C_POP.
11497 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
11498 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
11499 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
11500 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11501 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11502 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11503 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
11504 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
11505 Define.
11506 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
11507 (IP_AGENT_EXPORT_VAR_DECL): Define.
11508 (tracing): Declare.
11509 (gdb_agent_get_raw_reg): Declare.
11510
11511 2015-02-27 Tom Tromey <tromey@redhat.com>
11512 Pedro Alves <palves@redhat.com>
11513
11514 Rename symbols whose names are reserved C++ keywords throughout.
11515
11516 2015-02-27 Pedro Alves <palves@redhat.com>
11517
11518 * Makefile.in (COMPILER): New, get it from autoconf.
11519 (CXX): Get from autoconf instead.
11520 (COMPILE.pre): Use COMPILER.
11521 (CC-LD): Rename to ...
11522 (CC_LD): ... this. Use COMPILER.
11523 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
11524 (CXX_FOR_TARGET): Default to g++ instead of gcc.
11525 * acinclude.m4: Include build-with-cxx.m4.
11526 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
11527 Disable -Werror by default if building in C++ mode.
11528 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
11529 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
11530 the C++ compiler. Save/restore CXXFLAGS too.
11531 * configure: Regenerate.
11532
11533 2015-02-27 Pedro Alves <palves@redhat.com>
11534
11535 * acinclude.m4: Include libiberty.m4.
11536 * configure.ac: Call libiberty_INIT.
11537 * config.in, configure: Regenerate.
11538
11539 2015-02-26 Pedro Alves <palves@redhat.com>
11540
11541 * linux-low.c (linux_wait_1): When incrementing the PC past a
11542 program breakpoint always use the_low_target.breakpoint_len as
11543 increment, rather than the maximum between that and
11544 the_low_target.decr_pc_after_break.
11545
11546 2015-02-23 Pedro Alves <palves@redhat.com>
11547
11548 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
11549 thread was doing a step-over; always adjust the PC if
11550 we stepped over a permanent breakpoint.
11551 (linux_wait_1): If we stepped over breakpoint that was on top of a
11552 permanent breakpoint, manually advance the PC past it.
11553
11554 2015-02-23 Pedro Alves <palves@redhat.com>
11555
11556 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
11557 modes.
11558 (x86_fill_gregset, x86_store_gregset): Use it when handling
11559 $orig_eax.
11560
11561 2015-02-20 Pedro Alves <palves@redhat.com>
11562
11563 * thread-db.c: Include "nat/linux-procfs.h".
11564 (thread_db_init): Skip listing new threads if the kernel supports
11565 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
11566
11567 2015-02-20 Pedro Alves <palves@redhat.com>
11568
11569 * linux-low.c (status_pending_p_callback): Use ptid_match.
11570
11571 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
11572
11573 PR breakpoints/16812
11574 * linux-low.c (wstatus_maybe_breakpoint): Remove.
11575 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
11576 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
11577
11578 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
11579
11580 PR breakpoints/15956
11581 * tracepoint.c (cmd_qtinit): Add check for current_thread.
11582
11583 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11584
11585 * linux-low.c (linux_low_btrace_conf): Print size.
11586 * server.c (handle_btrace_conf_general_set): New.
11587 (hanle_general_set): Call handle_btrace_conf_general_set.
11588 (handle_query): Report Qbtrace-conf:bts:size as supported.
11589
11590 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11591
11592 * linux-low.c (linux_low_enable_btrace): Update parameters.
11593 (linux_low_btrace_conf): New.
11594 (linux_target_ops)<to_btrace_conf>: Initialize.
11595 * server.c (current_btrace_conf): New.
11596 (handle_btrace_enable): Rename to ...
11597 (handle_btrace_enable_bts): ... this. Pass &current_btrace_conf
11598 to target_enable_btrace. Update comment. Update users.
11599 (handle_qxfer_btrace_conf): New.
11600 (qxfer_packets): Add btrace-conf entry.
11601 (handle_query): Report qXfer:btrace-conf:read as supported packet.
11602 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
11603 (target_ops)<read_btrace_conf>: New.
11604 (target_enable_btrace): Update parameters.
11605 (target_read_btrace_conf): New.
11606
11607 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11608
11609 * server.c (handle_btrace_general_set): Remove call to
11610 target_supports_btrace.
11611 (supported_btrace_packets): New.
11612 (handle_query): Call supported_btrace_packets.
11613 * target.h: include btrace-common.h.
11614 (btrace_target_info): Removed.
11615 (supports_btrace, target_supports_btrace): Update parameters.
11616
11617 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11618
11619 * Makefile.in (SFILES): Add common/btrace-common.c.
11620 (OBS): Add common/btrace-common.o.
11621 (btrace-common.o): Add build rules.
11622 * linux-low: Include btrace-common.h.
11623 (linux_low_read_btrace): Use struct btrace_data. Call
11624 btrace_data_init and btrace_data_fini.
11625
11626 2015-02-06 Pedro Alves <palves@redhat.com>
11627
11628 * thread-db.c (find_new_threads_callback): Add debug output.
11629
11630 2015-02-04 Pedro Alves <palves@redhat.com>
11631
11632 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
11633 (resume_stopped_resumed_lwps): New function.
11634 (linux_wait_for_event_filtered): Use it.
11635
11636 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11637
11638 * Makefile.in (SFILES): Add linux-personality.c.
11639 (linux-personality.o): New rule.
11640 * configure.srv (srv_linux_obj): Add linux-personality.o to the
11641 list of objects to be built.
11642 * linux-low.c: Include nat/linux-personality.h.
11643 (linux_create_inferior): Remove code to disable address space
11644 randomization (moved to ../nat/linux-personality.c). Create
11645 cleanup to disable address space randomization.
11646
11647 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11648
11649 * Makefile.in (posix-strerror.o): New rule.
11650 (mingw-strerror.o): Likewise.
11651 * configure: Regenerated.
11652 * configure.ac: Source file ../common/common.host. Initialize new
11653 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
11654
11655 2015-01-14 Yao Qi <yao@codesourcery.com>
11656
11657 * Makefile.in (SFILES): Add nat/ppc-linux.c.
11658 (ppc-linux.o): New rule.
11659 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
11660 * configure.ac: AC_CHECK_FUNCS(getauxval).
11661 * config.in: Re-generated.
11662 * configure: Re-generated.
11663 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
11664 ppc64_64bit_inferior_p
11665
11666 2015-01-14 Yao Qi <yao@codesourcery.com>
11667
11668 * linux-ppc-low.c: Include "nat/ppc-linux.h".
11669 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
11670 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
11671 (PT_ORIG_R3, PT_TRAP): Likewise.
11672 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
11673 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
11674 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
11675
11676 2015-01-10 Joel Brobecker <brobecker@adacore.com>
11677
11678 * i387-fp.c (i387_cache_to_xsave): In look over
11679 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
11680 zmmh_low_space field by use of zmmh_high_space.
11681
11682 2015-01-09 Pedro Alves <palves@redhat.com>
11683
11684 * linux-low.c (step_over_bkpt): Move higher up in the file.
11685 (handle_extended_wait): Don't store the stop_pc here.
11686 (get_stop_pc): Adjust comments and rename to ...
11687 (check_stopped_by_breakpoint): ... this. Record whether the LWP
11688 stopped for a software breakpoint or hardware breakpoint.
11689 (thread_still_has_status_pending_p): New function.
11690 (status_pending_p_callback): Use
11691 thread_still_has_status_pending_p. If the event is no longer
11692 interesting, resume the LWP.
11693 (handle_tracepoints): Add assert.
11694 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
11695 (wstatus_maybe_breakpoint): New function.
11696 (cancel_breakpoint): Delete function.
11697 (check_stopped_by_watchpoint): New function, factored out from
11698 linux_low_filter_event.
11699 (lp_status_maybe_breakpoint): Delete function.
11700 (linux_low_filter_event): Remove filter_ptid argument.
11701 Leave thread group exits pending here. Store the LWP's stop PC.
11702 Always leave events pending.
11703 (linux_wait_for_event_filtered): Pull all events out of the
11704 kernel, and leave them all pending.
11705 (count_events_callback, select_event_lwp_callback): Consider all
11706 events.
11707 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
11708 (select_event_lwp): Only give preference to the stepping LWP in
11709 all-stop mode. Adjust comments.
11710 (ignore_event): New function.
11711 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
11712 references to cancel_breakpoints. Adjust to renames. Also give
11713 equal priority to all LWPs that have had events in non-stop mode.
11714 If reporting a software breakpoint event, unadjust the LWP's PC.
11715 (linux_wait): If linux_wait_1 returned an ignored event, retry.
11716 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
11717 Adjust.
11718 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
11719 (resume_status_pending_p): Use thread_still_has_status_pending_p.
11720 (linux_stopped_by_watchpoint): Adjust.
11721 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
11722 * linux-low.h (enum lwp_stop_reason): New.
11723 (struct lwp_info) <stop_pc>: Adjust comment.
11724 <stopped_by_watchpoint>: Delete field.
11725 <stop_reason>: New field.
11726 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11727 * mem-break.c (software_breakpoint_inserted_here)
11728 (hardware_breakpoint_inserted_here): New function.
11729 * mem-break.h (software_breakpoint_inserted_here)
11730 (hardware_breakpoint_inserted_here): Declare.
11731 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
11732 (cancel_breakpoints): Delete.
11733 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
11734 (upload_fast_traceframes): Remove references to
11735 cancel_breakpoints.
11736
11737 2015-01-09 Pedro Alves <palves@redhat.com>
11738
11739 * thread-db.c (find_new_threads_callback): Ignore thread if the
11740 kernel thread ID is -1.
11741
11742 2015-01-09 Pedro Alves <palves@redhat.com>
11743
11744 * linux-low.c (linux_attach_fail_reason_string): Move to
11745 nat/linux-ptrace.c, and rename.
11746 (linux_attach_lwp): Update comment.
11747 (attach_proc_task_lwp_callback): New function.
11748 (linux_attach): Adjust to rename and use
11749 linux_proc_attach_tgid_threads.
11750 (linux_attach_fail_reason_string): Delete declaration.
11751
11752 2015-01-01 Joel Brobecker <brobecker@adacore.com>
11753
11754 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
11755 * server.c (gdbserver_version): Likewise.
11756
11757 2014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
11758
11759 * remote-utils.c: Include ctype.h.
11760 (input_interrupt): Explicitly handle the case when the char
11761 received is the NUL byte. Improve the printing of non-ASCII
11762 characters.
11763
11764 2014-12-16 Joel Brobecker <brobecker@adacore.com>
11765
11766 * linux-low.c (linux_low_filter_event): Update call to
11767 linux_enable_event_reporting following the addition of
11768 a new parameter to that function.
11769
11770 2014-12-16 Catalin Udma <catalin.udma@freescale.com>
11771
11772 PR server/17457
11773 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
11774 (AARCH64_FPCR_REGNO): Likewise.
11775 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
11776 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
11777 (aarch64_store_fpregset): Likewise.
11778
11779 2014-12-15 Joel Brobecker <brobecker@adacore.com>
11780
11781 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
11782 Remove FIXME comment about assumption about N.
11783
11784 2014-12-13 Joel Brobecker <brobecker@adacore.com>
11785
11786 * configure.ac: If large-file support is disabled in GDBserver,
11787 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
11788 * configure: Regenerate.
11789
11790 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11791
11792 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
11793 warning upon ENODATA from ptrace.
11794 * linux-s390-low.c (s390_store_tdb): New.
11795 (s390_regsets): Add regset for NT_S390_TDB.
11796
11797 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11798
11799 * linux-low.c (regsets_store_inferior_registers): Skip regsets
11800 without a fill_function.
11801 * linux-s390-low.c (s390_fill_last_break): Remove.
11802 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
11803 (s390_arch_setup): Use regset's size instead of fill_function for
11804 loop end condition.
11805
11806 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11807
11808 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
11809 the regset's store function when ptrace returned an error.
11810 * regcache.c (get_thread_regcache): Invalidate register cache
11811 before fetching inferior's registers.
11812
11813 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11814
11815 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
11816 while-loop as for-loop.
11817 (regsets_store_inferior_registers): Likewise.
11818
11819 2014-11-28 Yao Qi <yao@codesourcery.com>
11820
11821 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
11822 * config.in, configure: Re-generate.
11823 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
11824 is defined.
11825
11826 2014-11-21 Yao Qi <yao@codesourcery.com>
11827
11828 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
11829 (AC_CHECK_HEADERS): Remove malloc.h.
11830 * configure: Re-generated.
11831 * config.in: Re-generated.
11832 * server.h: Don't include alloca.h and malloc.h.
11833 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
11834 Don't include malloc.h.
11835
11836 2014-11-17 Joel Brobecker <brobecker@adacore.com>
11837
11838 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
11839 corresponding ERRNO check in same block.
11840
11841 2014-11-12 Pedro Alves <palves@redhat.com>
11842
11843 * server.c (cont_thread): Update comment.
11844 (start_inferior, attach_inferior): No longer clear cont_thread.
11845 (handle_v_cont): No longer set cont_thread.
11846 (captured_main): Clear cont_thread each time a GDB connects.
11847
11848 2014-11-12 Pedro Alves <palves@redhat.com>
11849
11850 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
11851 thread, and don't resume all threads if the Hc thread has exited.
11852
11853 2014-11-12 Pedro Alves <palves@redhat.com>
11854
11855 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
11856 the process group instead of to a specific LWP.
11857
11858 2014-10-15 Pedro Alves <palves@redhat.com>
11859
11860 PR server/17487
11861 * win32-arm-low.c (arm_set_thread_context): Remove current_event
11862 parameter.
11863 (arm_set_thread_context): Delete.
11864 (the_low_target): Adjust.
11865 * win32-i386-low.c (debug_registers_changed)
11866 (debug_registers_used): Delete.
11867 (update_debug_registers_callback): New function.
11868 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
11869 needing to update their debug registers.
11870 (win32_get_current_dr): New function.
11871 (x86_dr_low_get_addr, x86_dr_low_get_control)
11872 (x86_dr_low_get_status): Fetch the debug register from the thread
11873 record's context.
11874 (i386_initial_stuff): Adjust.
11875 (i386_get_thread_context): Remove current_event parameter. Don't
11876 clear debug_registers_changed nor copy DR values to
11877 debug_reg_state.
11878 (i386_set_thread_context): Delete.
11879 (i386_prepare_to_resume): New function.
11880 (i386_thread_added): Mark the thread as needing to update irs
11881 debug registers.
11882 (the_low_target): Remove i386_set_thread_context and install
11883 i386_prepare_to_resume.
11884 * win32-low.c (win32_get_thread_context): Adjust.
11885 (win32_set_thread_context): Use SetThreadContext
11886 directly.
11887 (win32_prepare_to_resume): New function.
11888 (win32_require_context): New function, factored out from ...
11889 (thread_rec): ... this.
11890 (continue_one_thread): Call win32_prepare_to_resume on each thread
11891 we're about to continue.
11892 (win32_resume): Call win32_prepare_to_resume on the event thread.
11893 * win32-low.h (struct win32_thread_info)
11894 <debug_registers_changed>: New field.
11895 (struct win32_target_ops): Change prototype of set_thread_context,
11896 delete set_thread_context and add prepare_to_resume.
11897 (win32_require_context): New declaration.
11898
11899 2014-10-08 Gary Benson <gbenson@redhat.com>
11900
11901 * server.h: Do not include common-exceptions.h.
11902
11903 2014-10-08 Gary Benson <gbenson@redhat.com>
11904
11905 * server.h: Do not include cleanups.h.
11906
11907 2014-09-30 James Hogan <james.hogan@imgtec.com>
11908
11909 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
11910 mips64-dsp-linux.c.
11911
11912 2014-09-23 Yao Qi <yao@codesourcery.com>
11913
11914 * linux-low.c (lp_status_maybe_breakpoint): New function.
11915 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
11916 (count_events_callback): Likewise.
11917 (select_event_lwp_callback): Likewise.
11918 (cancel_breakpoints_callback): Likewise.
11919
11920 2014-09-19 Don Breazeal <donb@codesourcery.com>
11921
11922 * linux-low.c (handle_extended_wait): Call
11923 linux_ptrace_get_extended_event.
11924 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
11925 linux_is_extended_waitstatus.
11926
11927 2014-09-16 Joel Brobecker <brobecker@adacore.com>
11928
11929 * Makefile.in (CPPFLAGS): Define.
11930 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
11931 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
11932
11933 2014-09-16 Gary Benson <gbenson@redhat.com>
11934
11935 * inferiors.h (current_inferior): Renamed as...
11936 (current_thread): New variable. All uses updated.
11937 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
11938 (maybe_move_out_of_jump_pad): Likewise.
11939 (cancel_breakpoint): Likewise.
11940 (linux_low_filter_event): Likewise.
11941 (wait_for_sigstop): Likewise.
11942 (linux_resume_one_lwp): Likewise.
11943 (need_step_over_p): Likewise.
11944 (start_step_over): Likewise.
11945 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
11946 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
11947 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
11948 and save_inferior as saved_thread.
11949 * regcache.c (get_thread_regcache): Renamed saved_inferior as
11950 saved_thread.
11951 (regcache_invalidate_thread): Likewise.
11952 * remote-utils.c (prepare_resume_reply): Likewise.
11953 * thread-db.c (thread_db_get_tls_address): Likewise.
11954 (disable_thread_event_reporting): Likewise.
11955 (remove_thread_event_breakpoints): Likewise.
11956 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
11957 as saved_thread.
11958 * target.h (set_desired_inferior): Renamed as...
11959 (set_desired_thread): New declaration. All uses updated.
11960 * server.c (myresume): Updated comment to reference thread instead
11961 of inferior.
11962 (handle_serial_event): Likewise.
11963 (handle_target_event): Likewise.
11964
11965 2014-09-12 Tom Tromey <tromey@redhat.com>
11966 Gary Benson <gbenson@redhat.com>
11967
11968 * regcache.h: Include common-regcache.h.
11969 (regcache_read_pc): Don't declare.
11970 * regcache.c (get_thread_regcache_for_ptid): New function.
11971
11972 2014-09-11 Tom Tromey <tromey@redhat.com>
11973 Gary Benson <gbenson@redhat.com>
11974
11975 * symbol.c: New file.
11976 * Makefile.in (SFILES): Add symbol.c.
11977 (OBS): Add symbol.o.
11978
11979 2014-09-11 Gary Benson <gbenson@redhat.com>
11980
11981 * target.c (target_stop_ptid, target_continue_ptid): New
11982 functions.
11983
11984 2014-09-11 Tom Tromey <tromey@redhat.com>
11985 Gary Benson <gbenson@redhat.com>
11986
11987 * target.h: Include target/target.h.
11988 * target.c (target_read_memory, target_read_uint32)
11989 (target_write_memory): New functions.
11990
11991 2014-09-11 Gary Benson <gbenson@redhat.com>
11992
11993 * server.h (debug_hw_points): Don't declare.
11994 * server.c (debug_hw_points): Don't define. Replace all uses
11995 with show_debug_regs.
11996 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
11997 all uses with show_debug_regs.
11998
11999 2014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12000
12001 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
12002 endianness into account.
12003 (ppc_supply_ptrace_register): Likewise.
12004
12005 2014-09-03 James Hogan <james.hogan@imgtec.com>
12006
12007 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
12008 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
12009
12010 2014-09-03 Gary Benson <gbenson@redhat.com>
12011
12012 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
12013 ALL_DEBUG_ADDRESS_REGISTERS.
12014
12015 2014-09-02 Gary Benson <gbenson@redhat.com>
12016
12017 * i386-low.h: Renamed as...
12018 * x86-low.h: New file. All type, function and variable name
12019 prefixes changed from "i386_" to "x86_". All references updated.
12020 * i386-low.c: Renamed as...
12021 * x86-low.c: New file. All type, function and variable name
12022 prefixes changed from "i386_" to "x86_". All references updated.
12023
12024 2014-09-02 Gary Benson <gbenson@redhat.com>
12025
12026 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
12027 (x86_linux_new_thread): Likewise.
12028
12029 2014-08-29 Gary Benson <gbenson@redhat.com>
12030
12031 * server.h (setjmp.h): Do not include.
12032 (toplevel): Do not declare.
12033 (common-exceptions.h): Include.
12034 (cleanups.h): Likewise.
12035 * server.c (toplevel): Do not define.
12036 (exit_code): New static global.
12037 (detach_or_kill_for_exit_cleanup): New function.
12038 (main): New function. Original main renamed to...
12039 (captured_main): New function.
12040 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
12041
12042 2014-08-29 Gary Benson <gbenson@redhat.com>
12043
12044 * Makefile.in (SFILES): Add common/common-exceptions.c.
12045 (OBS): Add common-exceptions.o.
12046 (common-exceptions.o): New rule.
12047 * utils.c (prepare_to_throw_exception): New function.
12048
12049 2014-08-29 Gary Benson <gbenson@redhat.com>
12050
12051 * config.in: Regenerate.
12052 * configure: Likewise.
12053
12054 2014-08-29 Gary Benson <gbenson@redhat.com>
12055
12056 * Makefile.in (SFILES): Add common/cleanups.c.
12057 (OBS): cleanups.o.
12058 (cleanups.o): New rule.
12059
12060 2014-08-29 Gary Benson <gbenson@redhat.com>
12061
12062 * utils.c (internal_vwarning): New function.
12063
12064 2014-08-28 Gary Benson <gbenson@redhat.com>
12065
12066 * utils.h (fatal): Remove declaration.
12067 * utils.c (fatal): Remove function.
12068
12069 2014-08-28 Gary Benson <gbenson@redhat.com>
12070
12071 * tracepoint.c (gdb_agent_init): Replace fatal with
12072 perror_with_name.
12073 (initialize_tracepoint): Likewise.
12074
12075 2014-08-28 Gary Benson <gbenson@redhat.com>
12076
12077 * remote-utils.c (remote_prepare): Replace fatal with error.
12078
12079 2014-08-28 Gary Benson <gbenson@redhat.com>
12080
12081 * linux-low.c (linux_async): Replace fatal with warning.
12082 Tidy up and return.
12083 (linux_start_non_stop): Return -1 if linux_async failed.
12084
12085 2014-08-28 Gary Benson <gbenson@redhat.com>
12086
12087 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
12088 gdb_assert.
12089 (i386_dr_low_get_addr): Remove vague comment.
12090 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
12091 gdb_assert.
12092
12093 2014-08-28 Gary Benson <gbenson@redhat.com>
12094
12095 * inferiors.c (get_thread_process): Replace check with gdb_assert.
12096 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
12097 internal_error.
12098 (linux_resume_one_lwp): Likewise.
12099 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
12100 gdb_assert.
12101 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
12102 with internal_error.
12103 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
12104 (init_register_cache): Replace fatal with gdb_assert_not_reached.
12105 (find_register_by_name): Replace fatal with internal_error.
12106 (find_regno): Likewise.
12107 * tdesc.c (init_target_desc): Replace check with gdb_assert.
12108 * thread-db.c (thread_db_create_event): Likewise.
12109 (thread_db_load_search): Likewise.
12110 (try_thread_db_load_1): Likewise.
12111 * tracepoint.c (get_jump_space_head): Replace fatal with
12112 internal_error.
12113 (claim_trampoline_space): Likewise.
12114 (have_fast_tracepoint_trampoline_buffer): Likewise.
12115 (cmd_qtstart): Likewise.
12116 (stop_tracing): Likewise.
12117 (fast_tracepoint_collecting): Likewise.
12118 (target_malloc): Likewise.
12119 (download_tracepoint): Likewise.
12120 (download_trace_state_variables): Replace check with gdb_assert.
12121 (upload_fast_traceframes): Replace fatal with internal_error.
12122
12123 2014-08-19 Tom Tromey <tromey@redhat.com>
12124 Gary Benson <gbenson@redhat.com>
12125
12126 * Makefile.in (SFILES): Add common/common-debug.c.
12127 (OBS): Add common-debug.o.
12128 (common-debug.o): New rule.
12129 * debug.h (debug_printf): Don't declare.
12130 * debug.c (debug_printf): Renamed and rewritten as...
12131 (debug_vprintf): New function.
12132
12133 2014-08-19 Gary Benson <gbenson@redhat.com>
12134
12135 * utils.h: Do not include print-utils.h.
12136
12137 2014-08-19 Tom Tromey <tromey@redhat.com>
12138 Gary Benson <gbenson@redhat.com>
12139
12140 * server.h: Add static assertion.
12141 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
12142
12143 2014-08-19 Tom Tromey <tromey@redhat.com>
12144 Gary Benson <gbenson@redhat.com>
12145
12146 * Makefile.in (SFILES): Add common/errors.c.
12147 (OBS): Add errors.o.
12148 (IPA_OBS): Add errors-ipa.o.
12149 (errors.o): New rule.
12150 (errors-ipa.o): Likewise.
12151 * utils.h (perror_with_name, error, warning): Don't declare.
12152 * utils.c (warning): Renamed and rewritten as...
12153 (vwarning): New function.
12154 (error): Renamed and rewritten as...
12155 (verror): New function.
12156 (internal_error): Renamed and rewritten as...
12157 (internal_verror): New function.
12158
12159 2014-08-07 Gary Benson <gbenson@redhat.com>
12160
12161 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
12162 * configure: Regenerate.
12163 * config.in: Likewise.
12164 * server.h: Do not include errno.h.
12165 * event-loop.c: Likewise.
12166 * hostio-errno.c: Likewise.
12167 * linux-low.c: Likewise.
12168 * remote-utils.c: Likewise.
12169 * spu-low.c: Likewise.
12170 * utils.c: Likewise.
12171 * gdbreplay.c: Unconditionally include errno.h.
12172
12173 2014-08-07 Gary Benson <gbenson@redhat.com>
12174
12175 * server.h: Do not include string.h.
12176 * event-loop.c: Likewise.
12177 * linux-low.c: Likewise.
12178 * regcache.c: Likewise.
12179 * remote-utils.c: Likewise.
12180 * spu-low.c: Likewise.
12181 * utils.c: Likewise.
12182
12183 2014-08-07 Gary Benson <gbenson@redhat.com>
12184
12185 * server.h: Do not include gdb_assert.h.
12186
12187 2014-08-07 Gary Benson <gbenson@redhat.com>
12188
12189 * server.h: Do not include common-utils.h.
12190
12191 2014-08-07 Gary Benson <gbenson@redhat.com>
12192
12193 * server.h: Do not include ptid.h.
12194 * notif.h: Likewise.
12195
12196 2014-08-07 Gary Benson <gbenson@redhat.com>
12197
12198 * server.h: Do not include gdb_locale.h.
12199
12200 2014-08-07 Gary Benson <gbenson@redhat.com>
12201
12202 * server.h: Do not include gdb/signals.h.
12203 * win32-low.c: Likewise.
12204
12205 2014-08-07 Gary Benson <gbenson@redhat.com>
12206
12207 * server.h: Do not include pathmax.h.
12208
12209 2014-08-07 Gary Benson <gbenson@redhat.com>
12210
12211 * server.h: Do not include libiberty.h.
12212 * linux-bfin-low.c: Likewise.
12213
12214 2014-08-07 Gary Benson <gbenson@redhat.com>
12215
12216 * server.h: Do not include ansidecl.h.
12217
12218 2014-08-07 Gary Benson <gbenson@redhat.com>
12219
12220 * linux-x86-low.c: Do not include stddef.h.
12221 * lynx-ppc-low.c: Likewise.
12222 * tracepoint.c: Likewise.
12223
12224 2014-08-07 Gary Benson <gbenson@redhat.com>
12225
12226 * server.h: Do not include stdarg.h.
12227 * nto-low.c: Likewise.
12228
12229 2014-08-07 Gary Benson <gbenson@redhat.com>
12230
12231 * server.h: Do not include stdlib.h.
12232 * inferiors.c: Likewise.
12233 * linux-low.c: Likewise.
12234 * regcache.c: Likewise.
12235 * spu-low.c: Likewise.
12236 * tracepoint.c: Likewise.
12237 * utils.c: Likewise.
12238
12239 2014-08-07 Gary Benson <gbenson@redhat.com>
12240
12241 * server.h: Do not include stdio.h.
12242 * linux-low.c: Likewise.
12243 * remote-utils.c: Likewise.
12244 * spu-low.c: Likewise.
12245 * utils.c: Likewise.
12246 * wincecompat.c: Likewise.
12247
12248 2014-08-06 Gary Benson <gbenson@redhat.com>
12249
12250 * regcache.c (init_register_cache): Move conditionals inside if.
12251
12252 2014-08-06 Gary Benson <gbenson@redhat.com>
12253
12254 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
12255
12256 2014-07-31 Gary Benson <gbenson@redhat.com>
12257
12258 * ax.h: Do not include server.h.
12259 * gdbthread.h: Likewise.
12260 * lynx-low.h: Likewise.
12261 * notif.h: Likewise.
12262
12263 2014-07-30 Gary Benson <gbenson@redhat.com>
12264
12265 * server.h: Include common-defs.h.
12266 Do not include config.h or build-gnulib-gdbserver/config.h.
12267
12268 2014-07-30 Gary Benson <gbenson@redhat.com>
12269
12270 * hostio-errno.c: Move server.h to top of includes list.
12271 * inferiors.c: Likewise.
12272 * linux-x86-low.c: Likewise.
12273 * notif.c: Include server.h.
12274
12275 2014-07-24 Tom Tromey <tromey@redhat.com>
12276 Gary Benson <gbenson@redhat.com>
12277
12278 * server.h (CORE_ADDR): Now unsigned.
12279
12280 2014-07-16 Pedro Alves <palves@redhat.com>
12281
12282 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
12283
12284 2014-07-15 Pedro Alves <palves@redhat.com>
12285
12286 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
12287 copy.
12288
12289 2014-07-11 Pedro Alves <palves@redhat.com>
12290
12291 * linux-low.c (kill_wait_lwp): New function, based on
12292 kill_one_lwp_callback, but use my_waitpid directly.
12293 (kill_one_lwp_callback, linux_kill): Use it.
12294
12295 2014-06-23 Pedro Alves <palves@redhat.com>
12296
12297 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
12298 before setting DR0..DR3.
12299
12300 2014-06-20 Gary Benson <gbenson@redhat.com>
12301
12302 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
12303 * configure: Regenerated.
12304 * config.in: Likewise.
12305
12306 2014-06-20 Gary Benson <gbenson@redhat.com>
12307
12308 * Makefile.in (SFILES): Update locations for files moved
12309 from common to nat.
12310 (object file files): Reordered.
12311
12312 2014-06-20 Gary Benson <gbenson@redhat.com>
12313
12314 * i386-low.h (i386_dr_low_can_set_addr): Removed.
12315 (i386_dr_low_set_addr): Likewise.
12316 (i386_dr_low_get_addr): Likewise.
12317 (i386_dr_low_can_set_control): Likewise.
12318 (i386_dr_low_set_control): Likewise.
12319 (i386_dr_low_get_control): Likewise.
12320 (i386_dr_low_get_status): Likewise.
12321 (i386_get_debug_register_length): Likewise.
12322 * linux-x86-low.c (i386_dr_low_set_addr):
12323 Changed signature. Made static.
12324 (i386_dr_low_get_addr): Likewise.
12325 (i386_dr_low_set_control): Likewise.
12326 (i386_dr_low_get_control): Likewise.
12327 (i386_dr_low_get_status): Likewise.
12328 (i386_dr_low): New global variable.
12329 * win32-i386-low.c (i386_dr_low_set_addr):
12330 Changed signature. Made static.
12331 (i386_dr_low_get_addr): Likewise.
12332 (i386_dr_low_set_control): Likewise.
12333 (i386_dr_low_get_control): Likewise.
12334 (i386_dr_low_get_status): Likewise.
12335 (i386_dr_low): New global variable.
12336
12337 2014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
12338
12339 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
12340 * Makefile.in (AR, AR_FLAGS): Define.
12341 * configure: Regenerate.
12342
12343 2014-06-19 Gary Benson <gbenson@redhat.com>
12344
12345 * Makefile.in (i386-dregs.o): New rule.
12346 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
12347 * i386-low.c (target.h): Remove include.
12348 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
12349 (DR_CONTROL_SHIFT): Likewise.
12350 (DR_CONTROL_SIZE): Likewise.
12351 (DR_RW_EXECUTE): Likewise.
12352 (DR_RW_WRITE): Likewise.
12353 (DR_RW_READ): Likewise.
12354 (DR_RW_IORW): Likewise.
12355 (DR_LEN_1): Likewise.
12356 (DR_LEN_2): Likewise.
12357 (DR_LEN_4): Likewise.
12358 (DR_LEN_8): Likewise.
12359 (DR_LOCAL_ENABLE_SHIFT): Likewise.
12360 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
12361 (DR_ENABLE_SIZE): Likewise.
12362 (DR_LOCAL_SLOWDOWN): Likewise.
12363 (DR_GLOBAL_SLOWDOWN): Likewise.
12364 (DR_CONTROL_RESERVED): Likewise.
12365 (I386_DR_CONTROL_MASK): Likewise.
12366 (I386_DR_VACANT): Likewise.
12367 (I386_DR_LOCAL_ENABLE): Likewise.
12368 (I386_DR_GLOBAL_ENABLE): Likewise.
12369 (I386_DR_DISABLE): Likewise.
12370 (I386_DR_SET_RW_LEN): Likewise.
12371 (I386_DR_GET_RW_LEN): Likewise.
12372 (I386_DR_WATCH_HIT): Likewise.
12373 (i386_wp_op_t): Likewise.
12374 (i386_show_dr): Likewise.
12375 (i386_length_and_rw_bits): Likewise.
12376 (i386_insert_aligned_watchpoint): Likewise.
12377 (i386_remove_aligned_watchpoint): Likewise.
12378 (i386_handle_nonaligned_watchpoint): Likewise.
12379 i386_update_inferior_debug_regs(): Likewise.
12380 (i386_dr_insert_watchpoint): Likewise.
12381 (i386_dr_remove_watchpoint): Likewise.
12382 (i386_dr_region_ok_for_watchpoint): Likewise.
12383 (i386_dr_stopped_data_address): Likewise.
12384 (i386_dr_stopped_by_watchpoint): Likewise.
12385
12386 2014-06-19 Gary Benson <gbenson@redhat.com>
12387
12388 * i386-low.c (i386_dr_show): Renamed to
12389 i386_show_dr and made static. All uses updated.
12390 (i386_dr_length_and_rw_bits): Renamed to
12391 i386_length_and_rw_bits and made static.
12392 All uses updated.
12393 (i386_dr_insert_aligned_watchpoint): Renamed to
12394 i386_insert_aligned_watchpoint and made static.
12395 All uses updated.
12396 (i386_dr_remove_aligned_watchpoint): Renamed to
12397 i386_remove_aligned_watchpoint and made static.
12398 All uses updated.
12399 (i386_dr_update_inferior_debug_regs): Renamed to
12400 i386_update_inferior_debug_regs and made static.
12401 All uses updated.
12402
12403 2014-06-18 Gary Benson <gbenson@redhat.com>
12404
12405 * i386-low.h (i386_dr_low_can_set_addr): New macro.
12406 (i386_dr_low_can_set_control): Likewise.
12407 (i386_get_debug_register_length): Likewise.
12408 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
12409 (i386_dr_low_can_set_control): Likewise.
12410 (i386_get_debug_register_length): Likewise.
12411
12412 2014-06-17 Gary Benson <gbenson@redhat.com>
12413
12414 * i386-low.h (i386-dregs.h): New include.
12415 (DR_FIRSTADDR): Now in i386-dregs.h.
12416 (DR_LASTADDR): Likewise.
12417 (DR_NADDR): Likewise.
12418 (DR_STATUS): Likewise.
12419 (DR_CONTROL): Likewise.
12420 (i386_debug_reg_state): Likewise.
12421 (i386_dr_insert_watchpoint): Likewise.
12422 (i386_dr_remove_watchpoint): Likewise.
12423 (i386_dr_region_ok_for_watchpoint): Likewise.
12424 (i386_dr_stopped_data_address): Likewise.
12425 (i386_dr_stopped_by_watchpoint): Likewise.
12426 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
12427
12428 2014-06-18 Gary Benson <gbenson@redhat.com>
12429
12430 * i386-low.h (i386_low_insert_watchpoint): Renamed to
12431 i386_dr_insert_watchpoint.
12432 (i386_low_remove_watchpoint): Renamed to
12433 i386_dr_remove_watchpoint.
12434 (i386_low_region_ok_for_watchpoint): Renamed to
12435 i386_dr_region_ok_for_watchpoint.
12436 (i386_low_stopped_data_address): Renamed to
12437 i386_dr_stopped_data_address.
12438 (i386_low_stopped_by_watchpoint): Renamed to
12439 i386_dr_stopped_by_watchpoint.
12440 * i386-low.c (i386_show_dr): Renamed to
12441 i386_dr_show and made nonstatic. All uses updated.
12442 (i386_length_and_rw_bits): Renamed to
12443 i386_dr_length_and_rw_bits and made nonstatic.
12444 All uses updated.
12445 (i386_insert_aligned_watchpoint): Renamed to
12446 i386_dr_insert_aligned_watchpoint and made nonstatic.
12447 All uses updated.
12448 (i386_remove_aligned_watchpoint): Renamed to
12449 i386_dr_remove_aligned_watchpoint and made nonstatic.
12450 All uses updated.
12451 (i386_update_inferior_debug_regs): Renamed to
12452 i386_dr_update_inferior_debug_regs and made nonstatic.
12453 All uses updated.
12454 (i386_low_insert_watchpoint): Renamed to
12455 i386_dr_insert_watchpoint. All uses updated.
12456 (i386_low_remove_watchpoint): Renamed to
12457 i386_dr_remove_watchpoint. All uses updated.
12458 (i386_low_region_ok_for_watchpoint): Renamed to
12459 i386_dr_region_ok_for_watchpoint. All uses updated.
12460 (i386_low_stopped_data_address): Renamed to
12461 i386_dr_stopped_data_address. All uses updated.
12462 (i386_low_stopped_by_watchpoint): Renamed to
12463 i386_dr_stopped_by_watchpoint. All uses updated.
12464
12465 2014-06-18 Gary Benson <gbenson@redhat.com>
12466
12467 * i386-low.c (i386_dr_low_can_set_addr): New macro.
12468 (i386_dr_low_can_set_control): Likewise.
12469 (i386_insert_aligned_watchpoint): New check.
12470
12471 2014-06-18 Gary Benson <gbenson@redhat.com>
12472
12473 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
12474 Renamed to state.
12475
12476 2014-06-18 Gary Benson <gbenson@redhat.com>
12477
12478 * i386-low.c (i386_length_and_rw_bits): Use internal_error
12479 instead of fatal and error.
12480 (i386_handle_nonaligned_watchpoint): Likewise.
12481
12482 2014-06-18 Gary Benson <gbenson@redhat.com>
12483
12484 * i386-low.c (i386_get_debug_register_length): New macro.
12485 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
12486 (i386_show_dr): Use debug_printf instead of fprintf. Use
12487 phex to format values.
12488
12489 2014-06-18 Gary Benson <gbenson@redhat.com>
12490
12491 * i386-low.h: Comment changes.
12492 * i386-low.c: Likewise.
12493
12494 2014-06-18 Gary Benson <gbenson@redhat.com>
12495
12496 * i386-low.c: Whitespace changes.
12497
12498 2014-06-12 Tom Tromey <tromey@redhat.com>
12499
12500 * utils.c (freeargv): Remove.
12501
12502 2014-06-12 Tom Tromey <tromey@redhat.com>
12503
12504 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
12505 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
12506 (parse_debug_format_options): Likewise.
12507 (gdbserver_usage): Likewise.
12508 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
12509 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
12510 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
12511 against libiberty.
12512 ($(LIBGNU)): Depend on libiberty.
12513 (all-lib): Recurse into all subdirs.
12514 (install-only): Invoke "install" target in subdirs.
12515 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
12516 targets.
12517 * configure: Rebuild.
12518 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
12519 for vasprintf, vsnprintf, or gettimeofday.
12520 * configure.srv: Don't add safe-ctype.o or lbasename.o to
12521 srv_tgtobj.
12522
12523 2014-06-05 Joel Brobecker <brobecker@adacore.com>
12524
12525 * development.sh: Delete.
12526 * Makefile.in (config.status): Adjust dependency on development.sh.
12527 * configure.ac: Adjust development.sh source call.
12528 * configure: Regenerate.
12529
12530 2014-06-02 Pedro Alves <palves@redhat.com>
12531
12532 * ax.c (gdb_free_agent_expr): New function.
12533 * ax.h (gdb_free_agent_expr): New declaration.
12534 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
12535 list.
12536 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
12537 static.
12538 (clear_breakpoint_conditions_and_commands): New function.
12539 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
12540 (clear_breakpoint_conditions_and_commands): New declaration.
12541
12542 2014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12543
12544 * linux-aarch64-low.c (asm/ptrace.h): Include.
12545
12546 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12547
12548 Fix TLS access for -static -pthread.
12549 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
12550 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
12551 (thread_db_load_search, try_thread_db_load_1): Initialize it.
12552
12553 2014-05-20 Pedro Alves <palves@redhat.com>
12554
12555 * linux-aarch64-low.c (aarch64_insert_point)
12556 (aarch64_remove_point): No longer check whether the type is
12557 supported here. Adjust to new interface.
12558 (the_low_target): Install aarch64_supports_z_point_type as
12559 supports_z_point_type method.
12560 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
12561 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
12562 instead of a Z packet char. Adjust.
12563 (arm_supports_z_point_type): New function.
12564 (arm_insert_point, arm_remove_point): Adjust to new interface.
12565 (the_low_target): Install arm_supports_z_point_type.
12566 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
12567 (cris_insert_point, cris_remove_point): Adjust to new interface.
12568 Don't check whether the type is supported here.
12569 (the_low_target): Install cris_supports_z_point_type.
12570 * linux-low.c (linux_supports_z_point_type): New function.
12571 (linux_insert_point, linux_remove_point): Adjust to new interface.
12572 * linux-low.h (struct linux_target_ops) <insert_point,
12573 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
12574 raw_breakpoint pointer parameter.
12575 <supports_z_point_type>: New method.
12576 * linux-mips-low.c (mips_supports_z_point_type): New function.
12577 (mips_insert_point, mips_remove_point): Adjust to new interface.
12578 Use mips_supports_z_point_type.
12579 (the_low_target): Install mips_supports_z_point_type.
12580 * linux-ppc-low.c (the_low_target): Install NULL as
12581 supports_z_point_type method.
12582 * linux-s390-low.c (the_low_target): Install NULL as
12583 supports_z_point_type method.
12584 * linux-sparc-low.c (the_low_target): Install NULL as
12585 supports_z_point_type method.
12586 * linux-x86-low.c (x86_supports_z_point_type): New function.
12587 (x86_insert_point): Adjust to new insert_point interface. Use
12588 insert_memory_breakpoint. Adjust to new
12589 i386_low_insert_watchpoint interface.
12590 (x86_remove_point): Adjust to remove_point interface. Use
12591 remove_memory_breakpoint. Adjust to new
12592 i386_low_remove_watchpoint interface.
12593 (the_low_target): Install x86_supports_z_point_type.
12594 * lynx-low.c (lynx_target_ops): Install NULL as
12595 supports_z_point_type callback.
12596 * nto-low.c (nto_supports_z_point_type): New.
12597 (nto_insert_point, nto_remove_point): Adjust to new interface.
12598 (nto_target_ops): Install nto_supports_z_point_type.
12599 * mem-break.c: Adjust intro comment.
12600 (struct raw_breakpoint) <raw_type, size>: New fields.
12601 <inserted>: Update comment.
12602 <shlib_disabled>: Delete field.
12603 (enum bkpt_type) <gdb_breakpoint>: Delete value.
12604 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
12605 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
12606 (raw_bkpt_type_to_target_hw_bp_type): New function.
12607 (find_enabled_raw_code_breakpoint_at): New function.
12608 (find_raw_breakpoint_at): New type and size parameters. Use them.
12609 (insert_memory_breakpoint): New function, based off
12610 set_raw_breakpoint_at.
12611 (remove_memory_breakpoint): New function.
12612 (set_raw_breakpoint_at): Reimplement.
12613 (set_breakpoint): New, based on set_breakpoint_at.
12614 (set_breakpoint_at): Reimplement.
12615 (delete_raw_breakpoint): Go through the_target->remove_point
12616 instead of assuming memory breakpoints.
12617 (find_gdb_breakpoint_at): Delete.
12618 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
12619 (find_gdb_breakpoint): New function.
12620 (set_gdb_breakpoint_at): Delete.
12621 (z_type_supported): New function.
12622 (set_gdb_breakpoint_1): New function, loosely based off
12623 set_gdb_breakpoint_at.
12624 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
12625 (delete_gdb_breakpoint_at): Delete.
12626 (delete_gdb_breakpoint_1): New function, loosely based off
12627 delete_gdb_breakpoint_at.
12628 (delete_gdb_breakpoint): New function.
12629 (clear_gdb_breakpoint_conditions): Rename to ...
12630 (clear_breakpoint_conditions): ... this. Don't handle a NULL
12631 breakpoint.
12632 (add_condition_to_breakpoint): Make static.
12633 (add_breakpoint_condition): Take a struct breakpoint pointer
12634 instead of an address. Adjust.
12635 (gdb_condition_true_at_breakpoint): Rename to ...
12636 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
12637 z_type parameter.
12638 (gdb_condition_true_at_breakpoint): Reimplement.
12639 (add_breakpoint_commands): Take a struct breakpoint pointer
12640 instead of an address. Adjust.
12641 (gdb_no_commands_at_breakpoint): Rename to ...
12642 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
12643 parameter. Return true if no breakpoint was found. Change debug
12644 output.
12645 (gdb_no_commands_at_breakpoint): Reimplement.
12646 (run_breakpoint_commands): Rename to ...
12647 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
12648 and change return type to boolean.
12649 (run_breakpoint_commands): New function.
12650 (gdb_breakpoint_here): Also check for Z1 breakpoints.
12651 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
12652 breakpoint. Go through the_target->remove_point instead of
12653 assuming memory breakpoint.
12654 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
12655 software and hardware breakpoints.
12656 (reinsert_raw_breakpoint): Go through the_target->insert_point
12657 instead of assuming memory breakpoint.
12658 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
12659 software and hardware breakpoints.
12660 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
12661 Check both software and hardware breakpoints.
12662 (validate_inserted_breakpoint): Assert the breakpoint is a
12663 software breakpoint. Set the inserted flag to -1 instead of
12664 setting shlib_disabled.
12665 (delete_disabled_breakpoints): Adjust.
12666 (validate_breakpoints): Only validate software breakpoints.
12667 Adjust to inserted flag change.
12668 (check_mem_read, check_mem_write): Skip breakpoint types other
12669 than software breakpoints. Adjust to inserted flag change.
12670 * mem-break.h (enum raw_bkpt_type): New enum.
12671 (raw_breakpoint, struct process_info): Forward declare.
12672 (Z_packet_to_target_hw_bp_type): Delete declaration.
12673 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
12674 (set_gdb_breakpoint, delete_gdb_breakpoint)
12675 (clear_breakpoint_conditions): New declarations.
12676 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
12677 (breakpoint_inserted_here): Update comment.
12678 (add_breakpoint_condition, add_breakpoint_commands): Replace
12679 address parameter with a breakpoint pointer parameter.
12680 (gdb_breakpoint_here): Update comment.
12681 (delete_gdb_breakpoint_at): Delete.
12682 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
12683 * server.c (process_point_options): Take a struct breakpoint
12684 pointer instead of an address. Adjust.
12685 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
12686 delete_gdb_breakpoint.
12687 * spu-low.c (spu_target_ops): Install NULL as
12688 supports_z_point_type method.
12689 * target.h: Include mem-break.h.
12690 (struct target_ops) <prepare_to_access_memory>: Update comment.
12691 <supports_z_point_type>: New field.
12692 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12693 instead of a char. Also take a raw breakpoint pointer.
12694 * win32-arm-low.c (the_low_target): Install NULL as
12695 supports_z_point_type.
12696 * win32-i386-low.c (i386_supports_z_point_type): New function.
12697 (i386_insert_point, i386_remove_point): Adjust to new interface.
12698 (the_low_target): Install i386_supports_z_point_type.
12699 * win32-low.c (win32_supports_z_point_type): New function.
12700 (win32_insert_point, win32_remove_point): Adjust to new interface.
12701 (win32_target_ops): Install win32_supports_z_point_type.
12702 * win32-low.h (struct win32_target_ops):
12703 <supports_z_point_type>: New method.
12704 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12705 instead of a char. Also take a raw breakpoint pointer.
12706
12707 2014-05-20 Pedro Alves <palves@redhat.com>
12708
12709 * mem-break.h: Include break-common.h.
12710 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12711 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
12712 (Z_packet_to_target_hw_bp_type): New declaration.
12713 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
12714 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
12715 (Z_PACKET_ACCESS_WP): Delete macros.
12716 (Z_packet_to_hw_type): Delete function.
12717 * i386-low.h: Don't include break-common.h here.
12718 (Z_packet_to_hw_type): Delete declaration.
12719 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
12720 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12721 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
12722 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12723 * linux-aarch64-low.c: Don't include break-common.h here.
12724 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12725 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
12726 (Z_packet_to_target_hw_bp_type): Delete function.
12727 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
12728 function.
12729 (mips_insert_point, mips_remove_point): Use
12730 Z_packet_to_target_hw_bp_type.
12731
12732 2014-05-20 Pedro Alves <palves@redhat.com>
12733
12734 * linux-aarch64-low.c: Include break-common.h.
12735 (enum target_point_type): Delete.
12736 (Z_packet_to_point_type): Rename to ...
12737 (Z_packet_to_target_hw_bp_type): ... this, and return a
12738 target_hw_bp_type instead.
12739 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
12740 instead of an enum target_point_type.
12741 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
12742 breakpoint type.
12743 (aarch64_dr_state_insert_one_point)
12744 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
12745 (aarch64_handle_aligned_watchpoint)
12746 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
12747 Take an enum target_hw_bp_type instead of an enum
12748 target_point_type.
12749 (aarch64_supports_z_point_type): New function.
12750 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
12751 use Z_packet_to_target_hw_bp_type.
12752
12753 2014-05-20 Joel Brobecker <brobecker@adacore.com>
12754
12755 * configure.ac: Only use -Werror by default when DEVELOPMENT
12756 is true.
12757 * configure: Regenerate.
12758
12759 2014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
12760
12761 Fix gdbserver qGetTLSAddr for x86_64 -m32.
12762 * linux-x86-low.c (X86_64_USER_REGS): New.
12763 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
12764
12765 2014-04-28 Yao Qi <yao@codesourcery.com>
12766
12767 * Makefile.in (i386-avx512.c): Fix the typo of generated file
12768 name.
12769
12770 2014-04-25 Pedro Alves <palves@redhat.com>
12771
12772 PR server/16255
12773 * linux-low.c (linux_attach_fail_reason_string): New function.
12774 (linux_attach_lwp): Delete.
12775 (linux_attach_lwp_1): Rename to ...
12776 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
12777 argument. Remove "initial" parameter. Return int instead of
12778 void. Don't error or warn here.
12779 (linux_attach): Adjust to call linux_attach_lwp. Call error on
12780 failure to attach to the tgid. Call warning when failing to
12781 attach to an lwp.
12782 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
12783 argument. Remove "initial" parameter. Return int instead of
12784 void. Don't error or warn here.
12785 (linux_attach_fail_reason_string): New declaration.
12786 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
12787 interface change. Use linux_attach_fail_reason_string.
12788
12789 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
12790 Walfred Tedeschi <walfred.tedeschi@intel.com>
12791
12792 * Makefile.in: Added rules to handle new files
12793 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
12794 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
12795 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
12796 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
12797 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
12798 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
12799 x32-avx512-linux.o.
12800 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
12801 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
12802 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
12803 i386/x32-avx512.xml.
12804 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
12805 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
12806 i386/x32-avx512-linux.xml.
12807 * i387-fp.c (num_avx512_k_registers): New constant for number
12808 of K registers.
12809 (num_avx512_zmmh_low_registers): New constant for number of
12810 lower ZMM registers (0-15).
12811 (num_avx512_zmmh_high_registers): New constant for number of
12812 higher ZMM registers (16-31).
12813 (num_avx512_ymmh_registers): New contant for number of higher
12814 YMM registers (ymm16-31 added by avx521 on x86_64).
12815 (num_avx512_xmm_registers): New constant for number of higher
12816 XMM registers (xmm16-31 added by AVX512 on x86_64).
12817 (struct i387_xsave): Add space for AVX512 registers.
12818 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
12819 Add code to handle AVX512 registers.
12820 (i387_xsave_to_cache): Add code to handle AVX512 registers.
12821 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
12822 prototypei from generated file.
12823 (tdesc_amd64_avx512_linux): Likewise.
12824 (init_registers_x32_avx512_linux): Likewise.
12825 (tdesc_x32_avx512_linux): Likewise.
12826 (init_registers_i386_avx512_linux): Likewise.
12827 (tdesc_i386_avx512_linux): Likewise.
12828 (x86_64_regmap): Add AVX512 registers.
12829 (x86_linux_read_description): Add code to handle AVX512 XSTATE
12830 mask.
12831 (initialize_low_arch): Add code to initialize AVX512 registers.
12832
12833 2014-04-23 Pedro Alves <palves@redhat.com>
12834
12835 * mem-break.c (find_gdb_breakpoint_at): Make static.
12836 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
12837
12838 2014-04-23 Pedro Alves <palves@redhat.com>
12839
12840 * i386-low.c: Don't include break-common.h here.
12841 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12842 prototype to take target_hw_bp_type as argument instead of a Z
12843 packet char.
12844 * i386-low.h: Include break-common.h here.
12845 (Z_packet_to_hw_type): Declare.
12846 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12847 prototypes.
12848 * linux-x86-low.c (x86_insert_point): Convert the packet number to
12849 a target_hw_bp_type before calling i386_low_insert_watchpoint.
12850 (x86_remove_point): Convert the packet number to a
12851 target_hw_bp_type before calling i386_low_remove_watchpoint.
12852 * win32-i386-low.c (i386_insert_point): Convert the packet number
12853 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
12854 (i386_remove_point): Convert the packet number to a
12855 target_hw_bp_type before calling i386_low_remove_watchpoint.
12856
12857 2014-04-23 Pedro Alves <palves@redhat.com>
12858
12859 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
12860
12861 2014-04-10 Pedro Alves <palves@redhat.com>
12862
12863 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
12864 Check if the condition or command is NULL before checking if the
12865 breakpoint is known. On success, return true.
12866 * mem-break.h (add_breakpoint_condition): Document return.
12867 (add_breakpoint_commands): Add describing comment.
12868 * server.c (skip_to_semicolon): New function.
12869 (process_point_options): Use it.
12870
12871 2014-04-09 Pedro Alves <palves@redhat.com>
12872
12873 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
12874 to lwpid_of.
12875
12876 2014-02-27 Pedro Alves <palves@redhat.com>
12877
12878 PR 12702
12879 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
12880 macros.
12881 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
12882 output.
12883 (last_thread_of_process_p): Take a PID argument instead of a
12884 thread pointer.
12885 (linux_wait_for_lwp): Delete.
12886 (num_lwps, check_zombie_leaders, not_stopped_callback): New
12887 functions.
12888 (linux_low_filter_event): New function, party factored out from
12889 linux_wait_for_event.
12890 (linux_wait_for_event): Rename to ...
12891 (linux_wait_for_event_filtered): ... this. Add new filter ptid
12892 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
12893 sigsuspend. Check for zombie leaders.
12894 (linux_wait_for_event): Reimplement as wrapper around
12895 linux_wait_for_event_filtered.
12896 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
12897 a normal or signal exit is seen, it's the whole process exiting.
12898 (wait_for_sigstop): No longer a for_each_inferior callback.
12899 Rewrite on top of linux_wait_for_event_filtered.
12900 (stop_all_lwps): Call wait_for_sigstop directly.
12901 * server.c (resume, handle_target_event): Handle
12902 TARGET_WAITKIND_NO_RESUMED.
12903
12904 2014-02-26 Joel Brobecker <brobecker@adacore.com>
12905
12906 * win32-low.c (psapi_get_dll_name,
12907 * win32_CreateToolhelp32Snapshot): Delete.
12908 (win32_CreateToolhelp32Snapshot, win32_Module32First)
12909 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
12910 Delete.
12911 (handle_load_dll): Add function description.
12912 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
12913
12914 2014-02-26 Joel Brobecker <brobecker@adacore.com>
12915
12916 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
12917 Add comment.
12918 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
12919 base address when calling win32_add_one_solib.
12920 (handle_load_dll): Delete local variable load_addr.
12921 Remove 0x1000 offset applied to DLL base address when calling
12922 win32_add_one_solib.
12923 (handle_unload_dll): Add comment.
12924
12925 2014-02-26 Joel Brobecker <brobecker@adacore.com>
12926
12927 * win32-low.c (win32_add_all_dlls): Renames
12928 win32_ensure_ntdll_loaded. Rewrite function documentation.
12929 Adjust implementation to always load all DLLs.
12930 Add 0x1000 offset to DLL base address when calling
12931 win32_add_one_solib.
12932 (child_initialization_done): New static global.
12933 (do_initial_child_stuff): Set child_initialization_done to
12934 zero during child initialization, and 1 after. Replace call
12935 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
12936 Add comment.
12937 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
12938 (handle_unload_dll): Add function documentation.
12939 (get_child_debug_event): Ignore load and unload DLL events
12940 during child initialization.
12941
12942 2014-02-20 Doug Evans <dje@google.com>
12943
12944 Remove global all_lwps.
12945 * inferiors.h (ptid_of): Move here from linux-low.h.
12946 (pid_of, lwpid_of): Ditto.
12947 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
12948 parameter is a struct thread_info * now.
12949 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
12950 directly. Pass &all_threads to find_inferior instead of &all_lwps.
12951 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
12952 directly.
12953 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
12954 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
12955 * linux-arm-low.c (update_registers_callback): Update, "entry"
12956 parameter is a struct thread_info * now.
12957 Fetch lwpid from current_inferior directly.
12958 (arm_insert_point): Pass &all_threads to find_inferior instead of
12959 &all_lwps.
12960 (arm_remove_point): Ditto.
12961 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
12962 (arm_prepare_to_resume): Fetch pid from thread.
12963 (arm_read_description): Fetch lwpid from current_inferior directly.
12964 * linux-low.c (all_lwps): Delete.
12965 (delete_lwp): Delete call to remove_inferior.
12966 (handle_extended_wait): Fetch lwpid from thread.
12967 (add_lwp): Don't set lwp->entry.id. Remove call to
12968 add_inferior_to_list.
12969 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
12970 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
12971 (kill_one_lwp_callback): Ditto.
12972 (linux_kill): Don't dereference NULL pointer.
12973 Fetch ptid,lwpid from thread.
12974 (get_detach_signal): Fetch ptid from thread.
12975 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
12976 Simplify call to regcache_invalidate_thread.
12977 (delete_lwp_callback): Update, "entry" parameter is a
12978 struct thread_info * now. Fetch pid from thread.
12979 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
12980 (status_pending_p_callback): Update, "entry" parameter is a
12981 struct thread_info * now. Fetch ptid from thread.
12982 (find_lwp_pid): Update, "entry" parameter is a
12983 struct thread_info * now.
12984 (linux_wait_for_lwp): Fetch pid from thread.
12985 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
12986 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
12987 (enqueue_one_deferred_signal): Fetch lwpid from thread.
12988 (dequeue_one_deferred_signal): Ditto.
12989 (cancel_breakpoint): Fetch ptid from current_inferior.
12990 (linux_wait_for_event): Pass &all_threads to find_inferior,
12991 not &all_lwps. Fetch ptid, lwpid from thread.
12992 (count_events_callback): Update, "entry" parameter is a
12993 struct thread_info * now.
12994 (select_singlestep_lwp_callback): Ditto.
12995 (select_event_lwp_callback): Ditto.
12996 (cancel_breakpoints_callback): Ditto.
12997 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
12998 not &all_lwps.
12999 (select_event_lwp): Ditto. Fetch ptid from event_thread.
13000 (unsuspend_one_lwp): Update, "entry" parameter is a
13001 struct thread_info * now.
13002 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
13003 not &all_lwps.
13004 (linux_stabilize_threads): Ditto. And for for_each_inferior.
13005 Fetch lwpid from thread, not lwp.
13006 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
13007 Pass &all_threads to find_inferior, not &all_lwps.
13008 (send_sigstop): Fetch lwpid from thread, not lwp.
13009 (send_sigstop_callback): Update, "entry" parameter is a
13010 struct thread_info * now.
13011 (suspend_and_send_sigstop_callback): Ditto.
13012 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
13013 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
13014 struct thread_info * now.
13015 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
13016 from thread, lwp.
13017 (lwp_running): Update, "entry" parameter is a
13018 struct thread_info * now.
13019 (stop_all_lwps): Fetch ptid from thread.
13020 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
13021 (linux_resume_one_lwp): Fetch lwpid from thread.
13022 (linux_set_resume_request): Update, "entry" parameter is a
13023 struct thread_info * now. Fetch pid, lwpid from thread.
13024 (resume_status_pending_p): Update, "entry" parameter is a
13025 struct thread_info * now.
13026 (need_step_over_p): Ditto. Fetch lwpid from thread.
13027 (start_step_over): Fetch lwpid from thread.
13028 (linux_resume_one_thread): Update, "entry" parameter is a
13029 struct thread_info * now. Fetch lwpid from thread.
13030 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
13031 (proceed_one_lwp): Update, "entry" parameter is a
13032 struct thread_info * now. Fetch lwpid from thread.
13033 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
13034 struct thread_info * now.
13035 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
13036 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
13037 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
13038 directly.
13039 (regsets_store_inferior_registers): Ditto.
13040 (fetch_register, store_register): Ditto.
13041 (linux_read_memory, linux_write_memory): Ditto.
13042 (linux_request_interrupt): Ditto.
13043 (linux_read_auxv): Ditto.
13044 (linux_xfer_siginfo): Ditto.
13045 (linux_qxfer_spu): Ditto.
13046 (linux_qxfer_libraries_svr4): Ditto.
13047 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
13048 moved to inferiors.h.
13049 (get_lwp): Delete.
13050 (get_thread_lwp): Update.
13051 (struct lwp_info): Delete member "entry". Simplify comment for
13052 member "thread".
13053 (all_lwps): Delete.
13054 * linux-mips-low.c (mips_read_description): Fetch lwpid from
13055 current_inferior directly.
13056 (update_watch_registers_callback): Update, "entry" parameter is a
13057 struct thread_info * now. Fetch pid from thread.
13058 (mips_linux_prepare_to_resume): Fetch ptid from thread.
13059 (mips_insert_point): Fetch lwpid from current_inferior.
13060 Pass &all_threads to find_inferior, not &all_lwps.
13061 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
13062 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
13063 directly.
13064 (mips_stopped_data_address): Ditto.
13065 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
13066 directly.
13067 * linux-tile-low.c (tile_arch_setup): Ditto.
13068 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
13069 (update_debug_registers_callback): Update, "entry" parameter is a
13070 struct thread_info * now. Fetch pid from thread.
13071 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
13072 Pass &all_threads to find_inferior, not &all_lwps.
13073 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
13074 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
13075 Pass &all_threads to find_inferior, not &all_lwps.
13076 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
13077 (i386_dr_low_get_status): Ditto.
13078 (x86_linux_prepare_to_resume): Fetch ptid from thread.
13079 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
13080 (x86_linux_read_description): Ditto.
13081 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
13082
13083 2014-02-20 Doug Evans <dje@google.com>
13084
13085 * inferiors.c (get_first_inferior): Fix buglet.
13086
13087 2014-02-19 Doug Evans <dje@google.com>
13088
13089 * gdbthread.h (add_thread): Change result type to struct thread_info *.
13090 * inferiors.c (add_thread): Change result type to struct thread_info *.
13091 All callers updated.
13092 (add_lwp): Call add_thread here instead of in callers.
13093 All callers updated.
13094 * linux-low.h (get_lwp_thread): Rewrite.
13095 (struct lwp_info): New member "thread".
13096
13097 2014-02-19 Doug Evans <dje@google.com>
13098
13099 * linux-low.c (add_lwp): Change result to struct lwp_info *.
13100 All callers updated.
13101
13102 2014-02-19 Doug Evans <dje@google.com>
13103
13104 * inferiors.c (add_thread): Fix whitespace.
13105
13106 2014-02-19 Doug Evans <dje@google.com>
13107
13108 * dll.c (clear_dlls): Replace accessing list implemention details
13109 with API function.
13110 * gdbthread.h (get_first_thread): Declare.
13111 * inferiors.c (for_each_inferior_with_data): New function.
13112 (get_first_thread): New function.
13113 (find_thread_ptid): Simplify.
13114 (get_first_inferior): New function.
13115 (clear_list): Delete.
13116 (one_inferior_p): New function.
13117 (clear_inferior_list): New function.
13118 (clear_inferiors): Update.
13119 * inferiors.h (for_each_inferior_with_data): Declare.
13120 (clear_inferior_list): Declare.
13121 (one_inferior_p): Declare.
13122 (get_first_inferior): Declare.
13123 * linux-low.c (linux_wait_for_event): Replace accessing list
13124 implemention details with API function.
13125 * server.c (target_running): Ditto.
13126 (accumulate_file_name_length): New function.
13127 (emit_dll_description): New function.
13128 (handle_qxfer_libraries): Replace accessing list implemention
13129 details with API function.
13130 (handle_qxfer_threads_worker): New function.
13131 (handle_qxfer_threads_proper): Replace accessing list implemention
13132 details with API function.
13133 (handle_query): Ditto.
13134 (visit_actioned_threads_callback_ftype): New typedef.
13135 (visit_actioned_threads_data): New struct.
13136 (visit_actioned_threads): Rewrite to be find_inferior callback.
13137 (resume): Call find_inferior.
13138 (handle_status): Replace accessing list implemention
13139 details with API function.
13140 (process_serial_event): Replace accessing list implemention details
13141 with API function.
13142 * target.c (set_desired_inferior): Replace accessing list implemention
13143 details with API function.
13144 * tracepoint.c (same_process_p): New function.
13145 (gdb_agent_about_to_close): Replace accessing list implemention
13146 details with API function.
13147 * win32-low.c (child_delete_thread): Replace accessing list
13148 implemention details with API function.
13149 (match_dll_by_basename): New function.
13150 (dll_is_loaded_by_basename): New function.
13151 (win32_ensure_ntdll_loaded): Replace accessing list implemention
13152 details call to dll_is_loaded_by_basename.
13153
13154 2014-02-19 Doug Evans <dje@google.com>
13155
13156 * dll.h (struct dll_info): Add comment.
13157 * gdbthread.h (struct thread_info): Add comment.
13158 (current_ptid): Simplify.
13159 * inferiors.c (add_process): Update.
13160 (remove_process): Update.
13161 * inferiors.h (struct process_info): Rename member "head" to "entry".
13162 * linux-low.c (delete_lwp): Update.
13163 (add_lwp): Update.
13164 (last_thread_of_process_p): Update.
13165 (kill_one_lwp_callback, linux_kill): Update.
13166 (status_pending_p_callback): Update.
13167 (wait_for_sigstop): Update. Simplify read of ptid.
13168 (start_step_over): Update.
13169 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
13170 (get_lwp_thread): Update.
13171 (struct lwp_info): Rename member "head" to "entry".
13172 * regcache.h (inferior_list_entry): Delete.
13173 * server.c (kill_inferior_callback): Update.
13174 (detach_or_kill_inferior_callback): Update.
13175 (print_started_pid): Update.
13176 (print_attached_pid): Update.
13177 (process_serial_event): Simplify read of ptid.
13178 * thread-db.c (thread_db_create_event): Update.
13179 (thread_db_get_tls_address): Update.
13180 * win32-low.c (current_inferior_ptid): Simplify.
13181
13182 2014-02-19 Tom Tromey <tromey@redhat.com>
13183
13184 * target.h (struct target_ops) <supports_btrace>: Add target_ops
13185 argument.
13186 (target_supports_btrace): Update.
13187
13188 2014-02-14 Yao Qi <yao@codesourcery.com>
13189
13190 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
13191 (rsp-low-ipa.o): New target.
13192
13193 2014-02-12 Tom Tromey <tromey@redhat.com>
13194
13195 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
13196 convert_ascii_to_int.
13197 * regcache.c (registers_to_string): Likewise.
13198 * remote-utils.c (decode_M_packet): Likewise.
13199 * server.c (process_serial_event): Likewise.
13200
13201 2014-02-12 Tom Tromey <tromey@redhat.com>
13202
13203 * server.c (handle_query, handle_v_run): Use hex2bin, not
13204 unhexify.
13205 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
13206
13207 2014-02-12 Tom Tromey <tromey@redhat.com>
13208
13209 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
13210 convert_int_to_ascii.
13211 * regcache.c (registers_to_string, collect_register_as_string):
13212 Likewise.
13213 * remote-utils.c (look_up_one_symbol, relocate_instruction):
13214 Likewise.
13215 * server.c (process_serial_event): Likewise.
13216 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
13217 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
13218
13219 2014-02-12 Tom Tromey <tromey@redhat.com>
13220
13221 * remote-utils.c (look_up_one_symbol, monitor_output): Use
13222 bin2hex, not hexify.
13223 * tracepoint.c (cmd_qtstatus): Likewise.
13224
13225 2014-02-12 Tom Tromey <tromey@redhat.com>
13226
13227 * remote-utils.c (monitor_output): Pass explicit length to
13228 hexify.
13229
13230 2014-02-12 Tom Tromey <tromey@redhat.com>
13231
13232 * tracepoint.c: Include rsp-low.h.
13233 * server.c: Include rsp-low.h.
13234 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
13235 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
13236 declare.
13237 * remote-utils.c: Include rsp-low.h.
13238 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
13239 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
13240 (convert_int_to_ascii, convert_ascii_to_int): Move to
13241 common/rsp-low.c.
13242 * regcache.c: Include rsp-low.h.
13243 * ax.c: Include rsp-low.h.
13244 * Makefile.in (SFILES): Add common/rsp-low.c.
13245 (OBS): Add rsp-low.o.
13246 (rsp-low.o): New target.
13247
13248 2014-02-12 Tom Tromey <tromey@redhat.com>
13249
13250 * utils.h (pulongest, plongest, phex_nz): Don't declare.
13251 Include print-utils.h.
13252 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13253 (plongest, thirty_two, phex_nz): Remove.
13254 * Makefile.in (SFILES): Add common/print-utils.c.
13255 (OBS): Add print-utils.o.
13256 (print-utils-ipa.o): New target.
13257 (print-utils.o): New target.
13258 (IPA_OBJS): Add print-utils-ipa.o.
13259
13260 2014-02-06 Tom Tromey <tromey@redhat.com>
13261
13262 * Makefile.in (SFILES): Fix indentation.
13263
13264 2014-02-05 Doug Evans <dje@google.com>
13265
13266 * linux-low.c (linux_wait_for_event): Improve comment.
13267 (linux_wait_1): Keep current_inferior in sync with event_child.
13268
13269 2014-01-22 Doug Evans <dje@google.com>
13270
13271 * gdbthread.h (gdb_id_to_thread): Delete, unused.
13272
13273 2014-01-22 Doug Evans <dje@google.com>
13274
13275 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
13276 * configure: Regenerate.
13277 * config.in: Regenerate.
13278 * Makefile.in (SFILES): Add debug.c.
13279 (OBS): Add debug.o.
13280 * debug.c: New file.
13281 * debug.h: New file.
13282 * linux-aarch64-low.c (*): Update all debugging printfs to use
13283 debug_printf instead of fprintf.
13284 * linux-arm-low.c (*): Ditto.
13285 * linux-cris-low.c (*): Ditto.
13286 * linux-crisv32-low.c (*): Ditto.
13287 * linux-m32r-low.c (*): Ditto.
13288 * linux-sparc-low.c (*): Ditto.
13289 * linux-x86.c (*): Ditto.
13290 * linux-low.c (*): Ditto.
13291 (linux_wait_1): Add calls to debug_enter, debug_exit.
13292 (linux_wait): Remove redundant debugging printf.
13293 (stop_all_lwps): Add calls to debug_enter, debug_exit.
13294 (linux_resume, unstop_all_lwps): Ditto.
13295 * mem-break.c (*): Update all debugging printfs to use
13296 debug_printf instead of fprintf.
13297 * remote-utils.c (*): Ditto.
13298 * thread-db.c (*): Ditto.
13299 * server.c #include <ctype.h>, "gdb_vecs.h".
13300 (debug_threads): Moved to debug.c.
13301 (*): Update all debugging printfs to use debug_printf instead of
13302 fprintf.
13303 (start_inferior): Replace call to fflush with call to debug_flush.
13304 (monitor_show_help): Mention set debug-format.
13305 (parse_debug_format_options): New function.
13306 (handle_monitor_command): Handle "monitor set debug-format".
13307 (gdbserver_usage): Mention --debug-format.
13308 (main): Parse --debug-format.
13309 * server.h (debug_threads): Declaration moved to debug.h.
13310 #include "debug.h".
13311 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
13312 trace_debug_1 that uses debug_printf.
13313 (tracepoint_look_up_symbols): Update all debugging printfs to use
13314 debug_printf instead of fprintf.
13315
13316 2014-01-20 Baruch Siach <baruch@tkos.co.il>
13317
13318 * linux-xtensa-low.c: Include asm/ptrace.h instead of
13319 sys/ptrace.h.
13320
13321 2014-01-17 Pedro Alves <palves@redhat.com>
13322
13323 PR build/16445
13324 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
13325 defined after including gdb_proc_service.h.
13326
13327 2014-01-16 Doug Evans <dje@google.com>
13328
13329 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
13330 (match_dll): Use it.
13331
13332 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13333
13334 * target.h (target_ops) <read_btrace>: Change parameters and
13335 return type to allow error reporting.
13336 * server.c (handle_qxfer_btrace): Support delta reads. Pass
13337 trace reading errors on.
13338 * linux-low.c (linux_low_read_btrace): Pass trace reading
13339 errors on.
13340 (linux_low_disable_btrace): New.
13341
13342 2014-01-15 Doug Evans <dje@google.com>
13343
13344 * inferiors.c (thread_id_to_gdb_id): Delete.
13345 * inferiors.h (thread_id_to_gdb_id): Delete.
13346
13347 2014-01-13 Eli Zaretskii <eliz@gnu.org>
13348
13349 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
13350 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
13351 versions.
13352
13353 2014-01-08 Pedro Alves <palves@redhat.com>
13354
13355 * server.c (handle_status): Don't discard previous queued stop
13356 replies or thread's pending status here.
13357 (main) <disconnection>: Do it here instead.
13358
13359 2014-01-08 Pedro Alves <palves@redhat.com>
13360
13361 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
13362 * server.c (visit_actioned_threads, handle_pending_status): New
13363 function.
13364 (handle_v_cont): Factor out parts to ...
13365 (resume): ... this new function. If in all-stop, and a thread
13366 being resumed has a pending status, report it without actually
13367 resuming.
13368 (myresume): Adjust to use the new 'resume' function.
13369 (clear_pending_status_callback, set_pending_status_callback)
13370 (find_status_pending_thread_callback): New functions.
13371 (handle_status): Handle the case of multiple threads having
13372 interesting statuses to report. Report threads' real last signal
13373 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
13374 with an interesting thread to report the status for, instead of
13375 always reporting the status of the first thread.
13376
13377 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13378
13379 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
13380 * gdbreplay.c (gdbreplay_version): Likewise.
13381
13382 2013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
13383
13384 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
13385 iov.iov_len with the real length in use.
13386
13387 2013-12-13 Joel Brobecker <brobecker@adacore.com>
13388
13389 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
13390 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
13391 for all targets that use win32-low.c.
13392 * win32-low.c (win32_ensure_ntdll_loaded): New function.
13393 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
13394
13395 2013-12-13 Pedro Alves <palves@redhat.com>
13396
13397 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
13398 if equal to TARGET_WAITKIND_LOADED.
13399 * win32-low.c (cached_status): New static global.
13400 (win32_wait): Add declaration.
13401 (do_initial_child_stuff): Flush all initial pending debug events
13402 up to the initial breakpoint.
13403 (win32_wait): If CACHED_STATUS was set, return that instead
13404 of doing a real wait. Remove the code resuming the execution
13405 of the inferior after receiving a TARGET_WAITKIND_LOADED event
13406 during the initial phase. Also remove the code changing
13407 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
13408 TARGET_WAITKIND_STOPPED.
13409
13410 2013-12-11 Yao Qi <yao@codesourcery.com>
13411
13412 * notif.c (handle_notif_ack): Return 0 if no notification
13413 matches.
13414
13415 2013-11-20 Doug Evans <dje@google.com>
13416
13417 * linux-low.c (linux_set_resume_request): Fix comment.
13418
13419 2013-11-20 Doug Evans <dje@google.com>
13420
13421 * linux-low.c (resume_status_pending_p): Tweak comment.
13422
13423 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
13424
13425 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
13426 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
13427 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
13428 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
13429 (srv_amd64_regobj): Add amd64-mpx.o.
13430 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
13431 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
13432 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
13433 * i387-fp.c (num_pl_bnd_register) Added constant.
13434 (num_pl_bnd_cfg_registers) Added constant.
13435 (struct i387_xsave) Added reserved area and MPX fields.
13436 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
13437 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
13438 function.
13439 (tdesc_i386_mpx_linux): Add MPX amd64 target.
13440 (init_registers_amd64_mpx_linux): Declare new function.
13441 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
13442 (x86_64_regmap): Add MPX registers.
13443 (x86_linux_read_description): Add MPX case.
13444 (initialize_low_arch): Initialize MPX targets.
13445
13446 2013-11-18 Tom Tromey <tromey@redhat.com>
13447
13448 * configure: Rebuild.
13449 * configure.ac: Don't check for stdlib.h.
13450 * gdbreplay.c: Unconditionally include stdlib.h.
13451
13452 2013-11-18 Tom Tromey <tromey@redhat.com>
13453
13454 * config.in: Rebuild.
13455 * configure: Rebuild.
13456 * configure.ac: Don't use AC_HEADER_DIRENT.
13457
13458 2013-11-18 Tom Tromey <tromey@redhat.com>
13459
13460 * server.h: Don't check HAVE_STRING_H.
13461 * gdbreplay.c: Don't check HAVE_STRING_H.
13462 * configure: Rebuild.
13463
13464 2013-11-18 Tom Tromey <tromey@redhat.com>
13465
13466 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
13467 LIBGNU.
13468
13469 2013-11-08 Tom Tromey <tromey@redhat.com>
13470
13471 * configure, config.in: Rebuild.
13472 * configure.ac: Remove unused configury.
13473
13474 2013-11-08 Tom Tromey <tromey@redhat.com>
13475
13476 * acinclude.m4: Include common.m4, codeset.m4.
13477 * configure, config.in: Rebuild.
13478 * configure.ac: Use GDB_AC_COMMON.
13479
13480 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
13481
13482 * linux-s390-low.c (HWCAP_S390_TE): New define.
13483 (s390_arch_setup): Consider the TE field in the HWCAP for
13484 determining 'have_regset_tdb'.
13485
13486 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
13487
13488 PR gdb/16014
13489 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
13490 call to sizeof.
13491
13492 2013-10-02 Pedro Alves <palves@redhat.com>
13493
13494 * server.c (process_serial_event): Don't output "GDBserver
13495 exiting" if GDB is connected through stdio.
13496 * target.c (mywait): Likewise, be silent if GDB is connected
13497 through stdio.
13498
13499 2013-10-01 Joel Brobecker <brobecker@adacore.com>
13500
13501 * lynx-low.c (lynx_add_threads_after_attach): New function.
13502 (lynx_attach): Remove call to add_thread. Add call to
13503 lynx_add_threads_after_attach instead.
13504
13505 2013-09-28 Mike Frysinger <vapier@gentoo.org>
13506
13507 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
13508 * config.in, configure: Regenerated.
13509
13510 2013-09-18 Yao Qi <yao@codesourcery.com>
13511
13512 PR server/15959
13513 * server.c (start_inferior): Clear 'resume_info'.
13514
13515 2013-09-16 Jiong Wang <jiwang@tilera.com>
13516
13517 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
13518 for each register.
13519
13520 2013-09-16 Jiong Wang <jiwang@tilera.com>
13521
13522 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
13523 linux-tile-low.o to srv_tgtobj.
13524
13525 2013-09-16 Will Newton <will.newton@linaro.org>
13526
13527 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
13528 out regs.
13529
13530 2013-09-06 Pedro Alves <palves@redhat.com>
13531
13532 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
13533 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
13534 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
13535 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
13536 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
13537 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
13538
13539 2013-09-06 Pedro Alves <palves@redhat.com>
13540
13541 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
13542 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
13543
13544 2013-09-06 Pedro Alves <palves@redhat.com>
13545
13546 * linux-amd64-ipa.c: Include tracepoint.h.
13547 * linux-i386-ipa.c: Include tracepoint.h.
13548
13549 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
13550
13551 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
13552 (ps_get_thread_area): New function.
13553
13554 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
13555
13556 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
13557 (initialize_low_arch): Call init_registers_crisv32 rather than
13558 init_register_crisv32.
13559
13560 2013-09-05 Pedro Alves <palves@redhat.com>
13561
13562 * server.h (handle_vFile, hostio_last_error_from_errno): Move
13563 to ...
13564 * hostio.h: ... this new file.
13565 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
13566 win32-low.c: Include hostio.h.
13567
13568 2013-09-05 Pedro Alves <palves@redhat.com>
13569
13570 * server.h (gdb_client_data, handler_func, callback_handler_func)
13571 (delete_file_handler, add_file_handler, append_callback_event)
13572 (delete_callback_event, start_event_loop, initialize_event_loop):
13573 Move to event-loop.h and include it.
13574 * event-loop.h: New file.
13575
13576 2013-09-05 Pedro Alves <palves@redhat.com>
13577
13578 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
13579 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
13580 (loaded_dll, unloaded_dll): Move to ...
13581 * dll.h: ... this new file.
13582 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
13583
13584 2013-09-05 Pedro Alves <palves@redhat.com>
13585
13586 * server.h (current_process, get_thread_process, all_processes)
13587 (add_inferior_to_list, for_each_inferior, current_inferior)
13588 (remove_inferior, add_process, remove_process, find_process_pid)
13589 (have_started_inferiors_p, have_attached_inferiors_p)
13590 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
13591 (clear_inferiors, find_inferior, find_inferior_id)
13592 (inferior_target_data, set_inferior_target_data)
13593 (inferior_regcache_data, set_inferior_regcache_data): Move to
13594 inferiors.h, and include it.
13595 * inferiors.h: New file.
13596
13597 2013-09-05 Pedro Alves <palves@redhat.com>
13598
13599 * server.h (struct emit_ops, current_insn_ptr, emit_error):
13600 Move ...
13601 * ax.h: ... here.
13602
13603 2013-09-05 Pedro Alves <palves@redhat.com>
13604
13605 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
13606 tracepoint.h.
13607 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
13608 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
13609 (handle_tracepoint_general_set, handle_tracepoint_query)
13610 (tracepoint_finished_step, tracepoint_was_hit)
13611 (release_while_stepping_state_list, current_traceframe)
13612 (in_readonly_region, traceframe_read_mem)
13613 (fetch_traceframe_registers, traceframe_read_sdata)
13614 (traceframe_read_info, struct fast_tpoint_collect_status)
13615 (fast_tracepoint_collecting, force_unlock_trace_buffer)
13616 (handle_tracepoit_bkpts, initialize_low_tracepoint)
13617 (supply_fast_tracepoint_registers)
13618 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
13619 (ipa_tdesc, claim_trampoline_space)
13620 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
13621 (agent_mem_read, agent_get_trace_state_variable_value)
13622 (agent_set_trace_state_variable_value, agent_tsv_read)
13623 (agent_mem_read_string, get_raw_reg_func_addr)
13624 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
13625 * tracepoint.h: ... this new file.
13626
13627 2013-09-05 Pedro Alves <palves@redhat.com>
13628
13629 * server.h (perror_with_name, error, fatal, warning, paddress)
13630 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
13631 include it.
13632 * utils.h: New file.
13633
13634 2013-09-05 Pedro Alves <palves@redhat.com>
13635
13636 * server.h (remote_debug, noack_mode, transport_is_reliable)
13637 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
13638 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
13639 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
13640 (write_enn, initialize_async_io, enable_async_io)
13641 (disable_async_io, check_remote_input_interrupt_request)
13642 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
13643 (dead_thread_notify, prepare_resume_reply)
13644 (decode_address_to_semicolon, decode_address, decode_m_packet)
13645 (decode_M_packet, decode_X_packet, decode_xfer_write)
13646 (decode_search_memory_packet, unhexify, hexify)
13647 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
13648 (look_up_one_symbol, relocate_instruction)
13649 (monitor_output): Move to remote-utils.h, and include it.
13650 * remote-utils.h: New file.
13651
13652 2013-09-05 Pedro Alves <palves@redhat.com>
13653
13654 * server.h (_): Delete.
13655
13656 2013-09-02 Pedro Alves <palves@redhat.com>
13657
13658 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
13659 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
13660 allocated.
13661 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
13662
13663 2013-09-02 Pierre Muller <muller@sourceware.org>
13664
13665 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
13666 or WriteProcessMemory complete successfully and handle
13667 ERROR_PARTIAL_COPY error.
13668
13669 2013-09-02 Pedro Alves <palves@redhat.com>
13670
13671 * server.c (gdb_read_memory): Return -1 on traceframe memory read
13672 error instead of EIO.
13673
13674 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
13675
13676 PR server/15604
13677 * linux-low.c: Include filestuff.h.
13678 (linux_create_inferior) <pid == 0>: Call close_most_fds.
13679 * lynx-low.c: Include filestuff.h.
13680 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
13681 * server.c: Include filestuff.h.
13682 (main): Call notice_open_fds.
13683 * spu-low.c: Include filestuff.h.
13684 (spu_create_inferior) <pid == 0>: Call close_most_fds.
13685
13686 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
13687
13688 * Makefile.in: Explain why ../target and ../nat are not
13689 listed as include file search paths.
13690 (linux-waitpid.o): New object file rule.
13691 * configure.srv (srv_native_linux_obj): New variable.
13692 Replace all occurrences of linux native object files with
13693 $srv_native_linux_obj.
13694 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
13695 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
13696 (linux_enable_event_reporting): Remove declaration.
13697 (my_waitpid): Moved to common/linux-waitpid.c.
13698 (linux_wait_for_event): Pass ptid when calling
13699 linux_enable_event_reporting.
13700 (linux_supports_tracefork_flag): Remove.
13701 (linux_enable_event_reporting): Likewise.
13702 (linux_tracefork_grandchild): Remove.
13703 (STACK_SIZE): Moved to common/linux-ptrace.c.
13704 (linux_tracefork_child): Remove.
13705 (linux_test_for_tracefork): Remove.
13706 (linux_look_up_symbols): Call linux_supports_traceclone.
13707 (initialize_low): Remove call to linux_test_for_tracefork.
13708 * linux-low.h (PTRACE_TYPE_ARG3): Move to
13709 common/linux-ptrace.h.
13710 (PTRACE_TYPE_ARG4): Likewise.
13711 Include linux-ptrace.h.
13712
13713 2013-08-21 Pedro Alves <palves@redhat.com>
13714
13715 * config.in: Renegerate.
13716
13717 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
13718
13719 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
13720 (SFILES): Remove $(srcdir)/common/target-common.c and
13721 add $(srcdir)/target/waitstatus.c.
13722 (OBS): Remove target-common.o and add waitstatus.o.
13723 (server_h): Remove $(srcdir)/../common/target-common.h and
13724 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
13725 and $(srcdir)/../target/waitstatus.h.
13726 (target-common.o): Remove.
13727 (waitstatus.o): New target object file.
13728 * target.h: Do not include target-common.h and
13729 include target/resume.h, target/wait.h and
13730 target/waitstatus.h.
13731
13732 2013-08-13 Luis Machado <lgustavo@codesourcery.com>
13733
13734 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13735 to PTRACE_TYPE_ARG3.
13736 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13737 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
13738 PTRACE_TYPE_ARG4.
13739 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
13740 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
13741
13742 2013-07-27 Jie Zhang <jie@codesourcery.com>
13743 Daniel Jacobowitz <dan@codesourcery.com>
13744 Yao Qi <yao@codesourcery.com>
13745
13746 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
13747 (mips-linux-watch.o): New rule.
13748 (mips_linux_watch_h): New variable.
13749 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
13750 srv_tgtobj.
13751 * linux-mips-low.c: Include mips-linux-watch.h.
13752 (struct arch_process_info, struct arch_lwp_info): New.
13753 (update_watch_registers_callback): New function.
13754 (mips_linux_new_process, mips_linux_new_thread) New functions.
13755 (mips_linux_prepare_to_resume, mips_insert_point): New
13756 functions.
13757 (mips_remove_point, mips_stopped_by_watchpoint): New
13758 functions.
13759 (rsp_bp_type_to_target_hw_bp_type): New function.
13760 (mips_stopped_data_address): New function.
13761 (the_low_target): Add watchpoint support functions.
13762
13763 2013-07-27 Yao Qi <yao@codesourcery.com>
13764
13765 * i386-low.c: Include break-common.h.
13766 (enum target_hw_bp_type): Remove.
13767
13768 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
13769
13770 * Makefile.in (SFILES): /common/target-common.c.
13771 (OBS): Add target-common.o.
13772 (server_h): Add $(srcdir)/../common/target-common.h.
13773 (target-common.o): New target.
13774 * server.c (queue_stop_reply_callback): Free
13775 status string after use.
13776 * target.c (target_waitstatus_to_string): Remove.
13777 * target.h: Include target-common.h.
13778 (resume_kind): Likewise.
13779 (target_waitkind): Likewise.
13780 (target_waitstatus): Likewise.
13781 (TARGET_WNOHANG): Likewise.
13782
13783 2013-07-04 Yao Qi <yao@codesourcery.com>
13784
13785 * Makefile.in (host_alias): Use @host_noncanonical@.
13786 (target_alias): Use @target_noncanonical@.
13787 * configure.ac: Use ACX_NONCANONICAL_TARGET and
13788 ACX_NONCANONICAL_HOST.
13789 * configure: Regenerated.
13790
13791 Revert:
13792 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13793
13794 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13795 * configure: Rebuild.
13796 * Makefile.in (version_host, version_target): Get from configure.
13797 (version.c): Use $(version_host) and $(version_target).
13798
13799 2013-07-03 Pedro Alves <palves@redhat.com>
13800
13801 * Makefile.in (config.status): Depend on development.sh.
13802 * acinclude.m4: Include libmcheck.m4.
13803 * configure: Regenerate.
13804
13805 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13806
13807 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
13808 attribute inside the parentheses.
13809 (winapi_DebugSetProcessKillOnExit): Ditto.
13810 (winapi_DebugBreakProcess): Ditto.
13811 (winapi_GenerateConsoleCtrlEvent): Ditto.
13812
13813 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13814
13815 * notif.h (notif_event): Add a dummy member to avoid compiler
13816 errors.
13817
13818 2013-07-01 Pedro Alves <palves@redhat.com>
13819
13820 * hostio.c (HOSTIO_PATH_MAX): Define.
13821 (require_filename, handle_open, handle_unlink, handle_readlink):
13822 Use it.
13823
13824 2013-07-01 Pedro Alves <palves@redhat.com>
13825
13826 * server.h: Include "pathmax.h".
13827 * linux-low.c: Don't include sys/param.h.
13828 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
13829 MAXPATHLEN.
13830 * win32-low.c: Don't include sys/param.h.
13831 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
13832
13833 2013-07-01 Pedro Alves <palves@redhat.com>
13834
13835 * event-loop.c: Don't check HAVE_UNISTD_H before including
13836 <unistd.h>.
13837 * gdbreplay.c: Likewise.
13838 * remote-utils.c: Likewise.
13839 * server.c: Likewise.
13840 * configure.ac: Don't check for unistd.h.
13841 * configure: Regenerate.
13842
13843 2013-06-28 Tom Tromey <tromey@redhat.com>
13844
13845 * Makefile.in (version.c): Use version.in, not
13846 common/version.in.
13847
13848 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13849
13850 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13851 * configure: Rebuild.
13852 * Makefile.in (version_host, version_target): Get from configure.
13853 (version.c): Use $(version_host) and $(version_target).
13854
13855 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13856
13857 Fix trace-status to output user name without trailing colon.
13858 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
13859
13860 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13861
13862 Fix trace-status to output proper start-time and stop-time.
13863 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
13864 output start time and stop time in hex as gdb expects.
13865
13866 2013-06-26 Pedro Alves <pedro@codesourcery.com>
13867
13868 * tracepoint.c (build_traceframe_info_xml): Output trace state
13869 variables present in the trace buffer.
13870
13871 2013-06-24 Tom Tromey <tromey@redhat.com>
13872
13873 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
13874 create-version.sh.
13875 (version.o): Remove.
13876 * gdbreplay.c: Include version.h.
13877 (version, host_name): Don't declare.
13878 * server.h: Include version.h.
13879 (version, host_name): Don't declare.
13880
13881 2013-06-12 Pedro Alves <palves@redhat.com>
13882
13883 * linux-x86-low.c (linux_is_elf64): Delete global.
13884 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
13885 with local linux_pid_exe_is_elf_64_file use.
13886
13887 2013-06-11 Pedro Alves <palves@redhat.com>
13888
13889 * linux-low.c (regset_disabled, disable_regset): New functions.
13890 (regsets_fetch_inferior_registers)
13891 (regsets_store_inferior_registers): Use them.
13892 (initialize_regsets_info); Don't allocate the disabled_regsets
13893 array here.
13894 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
13895 comment.
13896
13897 2013-06-11 Pedro Alves <palves@redhat.com>
13898
13899 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
13900 xmalloc.
13901
13902 2013-06-11 Pedro Alves <palves@redhat.com>
13903
13904 * linux-x86-low.c (initialize_low_arch): Call
13905 init_registers_x32_avx_linux.
13906
13907 2013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13908
13909 Fix compatibility with Android Bionic.
13910 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
13911 it is not empty.
13912
13913 2013-06-07 Pedro Alves <palves@redhat.com>
13914
13915 PR server/14823
13916 * Makefile.in (OBS): Add tdesc.o.
13917 (IPA_OBJS): Add tdesc-ipa.o.
13918 (tdesc-ipa.o): New rule.
13919 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
13920 interface.
13921 * linux-low.c (new_inferior): Delete.
13922 (disabled_regsets, num_regsets): Delete.
13923 (linux_add_process): Adjust to set the new per-process
13924 new_inferior flag.
13925 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
13926 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
13927 was a stop. When calling arch_setup, switch the current inferior
13928 to the thread that got an event.
13929 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
13930 (regsets_fetch_inferior_registers)
13931 (regsets_store_inferior_registers): New regsets_info parameter.
13932 Adjust to use it.
13933 (linux_register_in_regsets): New regs_info parameter. Adjust to
13934 use it.
13935 (register_addr, fetch_register, store_register): New usrregs_info
13936 parameter. Adjust to use it.
13937 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
13938 parameter regs_info. Adjust to use it.
13939 (linux_fetch_registers): Get the current inferior's regs_info, and
13940 adjust to use it.
13941 (linux_store_registers): Ditto.
13942 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
13943 (initialize_low): Don't initialize the target_regsets here. Call
13944 initialize_low_arch.
13945 * linux-low.h (target_regsets): Delete declaration.
13946 (struct regsets_info): New.
13947 (struct usrregs_info): New.
13948 (struct regs_info): New.
13949 (struct process_info_private) <new_inferior>: New field.
13950 (struct linux_target_ops): Delete the num_regs, regmap, and
13951 regset_bitmap fields. New field regs_info.
13952 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
13953 * i387-fp.c (num_xmm_registers): Delete.
13954 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
13955 calls to new interface.
13956 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
13957 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
13958 Infer the number of xmm registers from the regcache's target
13959 description.
13960 * i387-fp.h (num_xmm_registers): Delete.
13961 * inferiors.c (add_thread): Don't install the thread's regcache
13962 here.
13963 * proc-service.c (gregset_info): Fetch the current inferior's
13964 regs_info. Adjust to use it.
13965 * regcache.c: Include tdesc.h.
13966 (register_bytes, reg_defs, num_registers)
13967 (gdbserver_expedite_regs): Delete.
13968 (get_thread_regcache): If the thread doesn't have a regcache yet,
13969 create one, instead of aborting gdbserver.
13970 (regcache_invalidate_one): Rename to ...
13971 (regcache_invalidate_thread): ... this.
13972 (regcache_invalidate_one): New.
13973 (regcache_invalidate): Only invalidate registers of the current
13974 process.
13975 (init_register_cache): Add target_desc parameter, and use it.
13976 (new_register_cache): Ditto. Assert the target description has a
13977 non zero registers_size.
13978 (regcache_cpy): Add assertions. Adjust.
13979 (realloc_register_cache, set_register_cache): Delete.
13980 (registers_to_string, registers_from_string): Adjust.
13981 (find_register_by_name, find_regno, find_register_by_number)
13982 (register_cache_size): Add target_desc parameter, and use it.
13983 (free_register_cache_thread, free_register_cache_thread_one)
13984 (regcache_release, register_cache_size): New.
13985 (register_size): Add target_desc parameter, and use it.
13986 (register_data, supply_register, supply_register_zeroed)
13987 (supply_regblock, supply_register_by_name, collect_register)
13988 (collect_register_as_string, collect_register_by_name): Adjust.
13989 * regcache.h (struct target_desc): Forward declare.
13990 (struct regcache) <tdesc>: New field.
13991 (init_register_cache, new_register_cache): Add target_desc
13992 parameter.
13993 (regcache_invalidate_thread): Declare.
13994 (regcache_invalidate_one): Delete declaration.
13995 (regcache_release): Declare.
13996 (find_register_by_number, register_cache_size, register_size)
13997 (find_regno): Add target_desc parameter.
13998 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
13999 declarations.
14000 * remote-utils.c: Include tdesc.h.
14001 (outreg, prepare_resume_reply): Adjust.
14002 * server.c: Include tdesc.h.
14003 (gdbserver_xmltarget): Delete declaration.
14004 (get_features_xml, process_serial_event): Adjust.
14005 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
14006 declare.
14007 (struct process_info) <tdesc>: New field.
14008 (ipa_tdesc): Declare.
14009 * tdesc.c: New file.
14010 * tdesc.h: New file.
14011 * tracepoint.c: Include tdesc.h.
14012 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
14013 (get_context_regcache): Adjust to pass ipa_tdesc down.
14014 (do_action_at_tracepoint): Adjust to get the register cache size
14015 from the context regcache's description.
14016 (traceframe_walk_blocks): Adjust to get the register cache size
14017 from the current trace frame's description.
14018 (traceframe_get_pc): Adjust to get current trace frame's
14019 description and pass it down.
14020 (gdb_collect): Adjust to get the register cache size from the
14021 IPA's description.
14022 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
14023 (gdbserver_xmltarget): Delete.
14024 (initialize_low_tracepoint): Set the ipa's target description.
14025 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
14026 (initialize_low_tracepoint): Set the ipa's target description.
14027 * linux-x86-low.c: Include tdesc.h.
14028 [__x86_64__] (is_64bit_tdesc): New.
14029 (ps_get_thread_area, x86_get_thread_area): Use it.
14030 (i386_cannot_store_register): Rename to ...
14031 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
14032 (i386_cannot_fetch_register): Rename to ...
14033 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
14034 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
14035 to new interface.
14036 (target_regsets): Rename to ...
14037 (x86_regsets): ... this.
14038 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
14039 interface.
14040 (x86_siginfo_fixup): Use is_64bit_tdesc.
14041 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
14042 (tdesc_x32_avx_linux, tdesc_x32_linux)
14043 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
14044 Declare.
14045 (x86_linux_update_xmltarget): Delete.
14046 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
14047 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
14048 (AMD64_LINUX_USER64_CS): New.
14049 (x86_linux_read_description): New, based on
14050 x86_linux_update_xmltarget.
14051 (same_process_callback): New.
14052 (x86_arch_setup_process_callback): New.
14053 (x86_linux_update_xmltarget): New.
14054 (x86_regsets_info): New.
14055 (amd64_linux_regs_info): New.
14056 (i386_linux_usrregs_info): New.
14057 (i386_linux_regs_info): New.
14058 (x86_linux_regs_info): New.
14059 (x86_arch_setup): Reimplement.
14060 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
14061 (x86_emit_ops): Ditto.
14062 (the_low_target): Adjust. Install x86_linux_regs_info,
14063 x86_cannot_fetch_register, and x86_cannot_store_register.
14064 (initialize_low_arch): New.
14065 * linux-ia64-low.c (tdesc_ia64): Declare.
14066 (ia64_fetch_register): Adjust.
14067 (ia64_usrregs_info, regs_info): New globals.
14068 (ia64_regs_info): New function.
14069 (the_low_target): Adjust.
14070 (initialize_low_arch): New function.
14071 * linux-sparc-low.c (tdesc_sparc64): Declare.
14072 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
14073 Adjust.
14074 (sparc_arch_setup): New function.
14075 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
14076 (the_low_target): Adjust.
14077 (initialize_low_arch): New function.
14078 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
14079 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
14080 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
14081 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
14082 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
14083 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
14084 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
14085 (tdesc_powerpc_isa205_vsx64l): Declare.
14086 (ppc_cannot_store_register, ppc_collect_ptrace_register)
14087 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
14088 (ppc_set_pc, ppc_get_hwcap): Adjust.
14089 (ppc_usrregs_info): Forward declare.
14090 (!__powerpc64__) ppc_regmap_adjusted: New global.
14091 (ppc_arch_setup): Adjust to the current process'es target
14092 description.
14093 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
14094 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
14095 (ppc_store_evrregset): Adjust.
14096 (target_regsets): Rename to ...
14097 (ppc_regsets): ... this, and make static.
14098 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
14099 (ppc_regs_info): New function.
14100 (the_low_target): Adjust.
14101 (initialize_low_arch): New function.
14102 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
14103 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
14104 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
14105 (tdesc_s390x_linux64v2): Declare.
14106 (s390_collect_ptrace_register, s390_supply_ptrace_register)
14107 (s390_fill_gregset, s390_store_last_break): Adjust.
14108 (target_regsets): Rename to ...
14109 (s390_regsets): ... this, and make static.
14110 (s390_get_pc, s390_set_pc): Adjust.
14111 (s390_get_hwcap): New target_desc parameter, and use it.
14112 [__s390x__] (have_hwcap_s390_high_gprs): New global.
14113 (s390_arch_setup): Adjust to set the current process'es target
14114 description. Don't adjust the regmap.
14115 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
14116 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
14117 (regs_info_3264): New globals.
14118 (s390_regs_info): New function.
14119 (the_low_target): Adjust.
14120 (initialize_low_arch): New function.
14121 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
14122 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
14123 [__mips64] (init_registers_mips_linux)
14124 (init_registers_mips_dsp_linux): Delete defines.
14125 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
14126 (have_dsp): New global.
14127 (mips_read_description): New, based on mips_arch_setup.
14128 (mips_arch_setup): Reimplement.
14129 (get_usrregs_info): New function.
14130 (mips_cannot_fetch_register, mips_cannot_store_register)
14131 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
14132 (mips_fill_fpregset, mips_store_fpregset): Adjust.
14133 (target_regsets): Rename to ...
14134 (mips_regsets): ... this, and make static.
14135 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
14136 (dsp_regs_info, regs_info): New globals.
14137 (mips_regs_info): New function.
14138 (the_low_target): Adjust.
14139 (initialize_low_arch): New function.
14140 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
14141 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
14142 Declare.
14143 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
14144 (arm_read_description): New, with bits factored from
14145 arm_arch_setup.
14146 (arm_arch_setup): Reimplement.
14147 (target_regsets): Rename to ...
14148 (arm_regsets): ... this, and make static.
14149 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
14150 (arm_regs_info): New function.
14151 (the_low_target): Adjust.
14152 (initialize_low_arch): New function.
14153 * linux-m68k-low.c (tdesc_m68k): Declare.
14154 (target_regsets): Rename to ...
14155 (m68k_regsets): ... this, and make static.
14156 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
14157 (m68k_regs_info): New function.
14158 (m68k_arch_setup): New function.
14159 (the_low_target): Adjust.
14160 (initialize_low_arch): New function.
14161 * linux-sh-low.c (tdesc_sharch): Declare.
14162 (target_regsets): Rename to ...
14163 (sh_regsets): ... this, and make static.
14164 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
14165 (sh_regs_info, sh_arch_setup): New functions.
14166 (the_low_target): Adjust.
14167 (initialize_low_arch): New function.
14168 * linux-bfin-low.c (tdesc_bfin): Declare.
14169 (bfin_arch_setup): New function.
14170 (bfin_usrregs_info, regs_info): New globals.
14171 (bfin_regs_info): New function.
14172 (the_low_target): Adjust.
14173 (initialize_low_arch): New function.
14174 * linux-cris-low.c (tdesc_cris): Declare.
14175 (cris_arch_setup): New function.
14176 (cris_usrregs_info, regs_info): New globals.
14177 (cris_regs_info): New function.
14178 (the_low_target): Adjust.
14179 (initialize_low_arch): New function.
14180 * linux-cris-low.c (tdesc_crisv32): Declare.
14181 (cris_arch_setup): New function.
14182 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
14183 (cris_regs_info): New function.
14184 (the_low_target): Adjust.
14185 (initialize_low_arch): New function.
14186 * linux-m32r-low.c (tdesc_m32r): Declare.
14187 (m32r_arch_setup): New function.
14188 (m32r_usrregs_info, regs_info): New globals.
14189 (m32r_regs_info): Adjust.
14190 (initialize_low_arch): New function.
14191 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
14192 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
14193 (tic6x_usrregs_info): Forward declare.
14194 (tic6x_read_description): New function, based on ...
14195 (tic6x_arch_setup): ... this. Reimplement.
14196 (target_regsets): Rename to ...
14197 (tic6x_regsets): ... this, and make static.
14198 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
14199 (tic6x_regs_info): New function.
14200 (the_low_target): Adjust.
14201 (initialize_low_arch): New function.
14202 * linux-xtensa-low.c (tdesc_xtensa): Declare.
14203 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
14204 (target_regsets): Rename to ...
14205 (xtensa_regsets): ... this, and make static.
14206 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
14207 globals.
14208 (xtensa_arch_setup, xtensa_regs_info): New functions.
14209 (the_low_target): Adjust.
14210 (initialize_low_arch): New function.
14211 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
14212 (nios2_arch_setup): Set the current process'es tdesc.
14213 (target_regsets): Rename to ...
14214 (nios2_regsets): ... this.
14215 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
14216 (nios2_regs_info): New function.
14217 (the_low_target): Adjust.
14218 (initialize_low_arch): New function.
14219 * linux-aarch64-low.c (tdesc_aarch64): Declare.
14220 (aarch64_arch_setup): Set the current process'es tdesc.
14221 (target_regsets): Rename to ...
14222 (aarch64_regsets): ... this.
14223 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
14224 (aarch64_regs_info): New function.
14225 (the_low_target): Adjust.
14226 (initialize_low_arch): New function.
14227 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
14228 globals.
14229 (target_regsets): Rename to ...
14230 (tile_regsets): ... this.
14231 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
14232 (tile_regs_info): New function.
14233 (tile_arch_setup): Set the current process'es tdesc.
14234 (the_low_target): Adjust.
14235 (initialize_low_arch): New function.
14236 * spu-low.c (tdesc_spu): Declare.
14237 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
14238 * win32-arm-low.c (tdesc_arm): Declare.
14239 (arm_arch_setup): New function.
14240 (the_low_target): Install arm_arch_setup instead of
14241 init_registers_arm.
14242 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
14243 (init_windows_x86): Rename to ...
14244 (i386_arch_setup): ... this. Set `win32_tdesc'.
14245 (the_low_target): Adjust.
14246 * win32-low.c (win32_tdesc): New global.
14247 (child_add_thread): Don't create the thread cache here.
14248 (do_initial_child_stuff): Set the new process'es tdesc.
14249 * win32-low.h (struct target_desc): Forward declare.
14250 (win32_tdesc): Declare.
14251 * lynx-i386-low.c (tdesc_i386): Declare global.
14252 (lynx_i386_arch_setup): Set `lynx_tdesc'.
14253 * lynx-low.c (lynx_tdesc): New global.
14254 (lynx_add_process): Set the new process'es tdesc.
14255 * lynx-low.h (struct target_desc): Forward declare.
14256 (lynx_tdesc): Declare global.
14257 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
14258 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
14259 * nto-low.c (nto_tdesc): New global.
14260 (do_attach): Set the new process'es tdesc.
14261 * nto-low.h (struct target_desc): Forward declare.
14262 (nto_tdesc): Declare.
14263 * nto-x86-low.c (tdesc_i386): Declare.
14264 (nto_x86_arch_setup): Set `nto_tdesc'.
14265
14266 2013-06-04 Gary Benson <gbenson@redhat.com>
14267
14268 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
14269 to qSupported response when appropriate.
14270 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
14271 with nonzero-length annex.
14272 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
14273 arguments supplied in annex.
14274
14275 2013-05-31 Doug Evans <dje@google.com>
14276
14277 PR server/15594
14278 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
14279 64 bits in 64-cross-32 environment.
14280
14281 2013-05-28 Pedro Alves <palves@redhat.com>
14282
14283 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
14284 (aarch64-without-fpu.c): Delete rule.
14285 * configure.srv (aarch64*-*-linux*): Remove references to
14286 aarch64-without-fpu.o and aarch64-without-fpu.xml.
14287 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
14288 declaration.
14289
14290 2013-05-24 Pedro Alves <palves@redhat.com>
14291
14292 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
14293 instead of strchr/decode_address. Error if the range isn't split
14294 with a ','. Don't assume there's be a ':' in the action.
14295
14296 2013-05-23 Yao Qi <yao@codesourcery.com>
14297 Pedro Alves <palves@redhat.com>
14298
14299 * linux-low.c (lwp_in_step_range): New function.
14300 (linux_wait_1): If the thread was range stepping and stopped
14301 outside the stepping range, report the stop to GDB. Otherwise,
14302 continue stepping. Add range stepping debug output.
14303 (linux_set_resume_request): Copy the step range from the resume
14304 request to the lwp.
14305 (linux_supports_range_stepping): New.
14306 (linux_target_ops) <supports_range_stepping>: Set to
14307 linux_supports_range_stepping.
14308 * linux-low.h (struct linux_target_ops)
14309 <supports_range_stepping>: New field.
14310 (struct lwp_info) <step_range_start, step_range_end>: New fields.
14311 * linux-x86-low.c (x86_supports_range_stepping): New.
14312 (the_low_target) <supports_range_stepping>: Set to
14313 x86_supports_range_stepping.
14314 * server.c (handle_v_cont): Handle 'r' action.
14315 (handle_v_requests): Append ";r" if the target supports range
14316 stepping.
14317 * target.h (struct thread_resume) <step_range_start,
14318 step_range_end>: New fields.
14319 (struct target_ops) <supports_range_stepping>:
14320 New field.
14321 (target_supports_range_stepping): New macro.
14322
14323 2013-05-17 Joel Brobecker <brobecker@adacore.com>
14324
14325 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
14326 confusion in comment.
14327
14328 2013-05-17 Joel Brobecker <brobecker@adacore.com>
14329
14330 * lynx-low.c (struct process_info_private): New type.
14331 (lynx_add_process): New function.
14332 (lynx_create_inferior, lynx_attach): Replace calls to
14333 add_process by calls to lynx_add_process.
14334 (lynx_resume): If PTID is null, then try using
14335 current_process()->private->last_wait_event_ptid.
14336 Add comments.
14337 (lynx_clear_inferiors): Delete. The contents of that function
14338 has been inlined in lynx_mourn;
14339 (lynx_wait_1): Save the ptid in the process's private data.
14340 (lynx_mourn): Free the process' private data. Replace call
14341 to lynx_clear_inferiors by call to clear_inferiors.
14342
14343 2013-05-17 Yao Qi <yao@codesourcery.com>
14344
14345 * i386-low.c (i386_length_and_rw_bits): Move the comment to
14346 the right place.
14347
14348 2013-05-16 Luis Machado <lgustavo@codesourcery.com>
14349
14350 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
14351 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
14352 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
14353 PT_TEXT_END_ADDR guards. Update comments.
14354 (linux_target_op) <read_offsets>: Conditionally define to
14355 linux_read_offsets if the target is UCLIBC and if it defines
14356 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
14357
14358 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
14359 Andrew Jenner <andrew@codesourcery.com>
14360
14361 * Makefile.in (SFILES): Add linux-nios2-low.c.
14362 (clean): Add action to delete nios2-linux.c.
14363 (nios2-linux.c): New rule.
14364 * configure.srv: Add nios2*-*-linux*.
14365 * linux-nios2-low.c: New.
14366
14367 2013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
14368
14369 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
14370
14371 2013-04-25 Hui Zhu <hui@codesourcery.com>
14372
14373 PR gdb/15186
14374 * ax.c (ax_printf): Add fflush.
14375
14376 2013-04-22 Tom Tromey <tromey@redhat.com>
14377
14378 * Makefile.in (SFILES): Add filestuff.c.
14379 (OBS): Add filestuff.o.
14380 (filestuff.o): New target.
14381 * config.in, configure: Rebuild.
14382 * configure.ac: Check for fdwalk, pipe2.
14383
14384 2013-04-17 Pedro Alves <palves@redhat.com>
14385
14386 * configure.ac (USE_THREAD_DB): Delete variable.
14387 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
14388 Don't AC_SUBST USE_THREAD_DB.
14389 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
14390 * config.in, configure: Regenerate.
14391
14392 2013-04-16 Pedro Alves <palves@redhat.com>
14393
14394 * linux-low.h (struct lwp_info) <thread_known>: Move under
14395 the USE_THREAD_DB #ifdef.
14396
14397 2013-04-16 Pedro Alves <palves@redhat.com>
14398
14399 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
14400 (linux-low.o): Delete rule.
14401 * linux-low.h: Always include "gdb_thread_db.h" instead of
14402 conditionally including thread_db.h.
14403 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
14404 HAVE_THREAD_DB_H.
14405
14406 2013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14407
14408 * Makefile.in (install-only): Fix make install regression.
14409
14410 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
14411
14412 Convert man pages to texinfo, new gdbinit.5 texinfo page.
14413 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
14414 installation.
14415 * gdbserver.1: Remove.
14416
14417 2013-03-22 Pedro Alves <palves@redhat.com>
14418
14419 * linux-low.c (handle_extended_wait): Don't call
14420 linux_enable_event_reporting.
14421
14422 2013-03-15 Tony Theodore <tonyt@logyst.com>
14423
14424 PR build/9098:
14425 * Makefile.in (SHELL): Use @SHELL@.
14426
14427 2013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
14428
14429 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
14430 compiler warning.
14431
14432 2013-03-13 Joel Brobecker <brobecker@adacore.com>
14433
14434 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
14435 Remove extraneous NULL element.
14436
14437 2013-03-13 Yao Qi <yao@codesourcery.com>
14438
14439 * tracepoint.c (traceframe_read_tsv): Look for the last matched
14440 'V' block in trace frame.
14441
14442 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14443
14444 * target.h (struct target_ops): Add btrace ops.
14445 (target_supports_btrace): New macro.
14446 (target_enable_btrace): New macro.
14447 (target_disable_btrace): New macro.
14448 (target_read_btrace): New macro.
14449 * gdbthread.h (struct thread_info): Add btrace field.
14450 * server.c: Include btrace-common.h.
14451 (handle_btrace_general_set): New function.
14452 (handle_btrace_enable): New function.
14453 (handle_btrace_disable): New function.
14454 (handle_general_set): Call handle_btrace_general_set.
14455 (handle_qxfer_btrace): New function.
14456 (struct qxfer qxfer_packets[]): Add btrace entry.
14457 * inferiors.c (remove_thread): Disable btrace.
14458 * linux-low: Include linux-btrace.h.
14459 (linux_low_enable_btrace): New function.
14460 (linux_low_read_btrace): New function.
14461 (linux_target_ops): Add btrace ops.
14462 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
14463 Add srv_linux_btrace=yes.
14464 (x86_64-*-linux*): Add linux-btrace.o.
14465 Add srv_linux_btrace=yes.
14466 * configure.ac: Define HAVE_LINUX_BTRACE.
14467 * config.in: Regenerated.
14468 * configure: Regenerated.
14469
14470 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14471
14472 * server.c (handle_qxfer): Preserve error message if -3 is
14473 returned.
14474 (qxfer): Document the -3 return value.
14475
14476 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14477
14478 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
14479 (linux_btrace_h): New variable.
14480 (linux-btrace.o): New rule.
14481
14482 2013-03-08 Stan Shebs <stan@codesourcery.com>
14483 Hafiz Abid Qadeer <abidh@codesourcery.com>
14484
14485 * tracepoint.c (trace_buffer_size): New global.
14486 (DEFAULT_TRACE_BUFFER_SIZE): New define.
14487 (init_trace_buffer): Change to one-argument function. Allocate
14488 trace buffer memory.
14489 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
14490 handle QTBuffer:size packet.
14491 (cmd_bigqtbuffer_size): New function.
14492 (initialize_tracepoint): Call init_trace_buffer with
14493 DEFAULT_TRACE_BUFFER_SIZE.
14494 * server.c (handle_query): Add QTBuffer:size in the
14495 supported packets.
14496
14497 2013-03-07 Yao Qi <yao@codesourcery.com>
14498
14499 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
14500 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
14501 of -1.
14502 (cmd_qtsp): Adjust condition. Do post increment.
14503 Set cur_action and cur_step_action back to 0.
14504
14505 2013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
14506
14507 PR server/15236
14508 * linux-low.c (linux_write_memory): Return early success if LEN is
14509 zero.
14510
14511 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
14512
14513 * configure.srv: Add x86_64-*-cygwin* as target.
14514
14515 2013-02-28 Tom Tromey <tromey@redhat.com>
14516
14517 * configure.ac: Invoke AC_SYS_LARGEFILE.
14518 * configure, config.in: Rebuild.
14519
14520 2013-02-28 Corinna Vinschen <vinschen@redhat.com>
14521
14522 * win32-low.c: Throughout, fix format strings and casts of
14523 printf-like functions to avoid type related warnings on all
14524 platforms.
14525 (get_child_debug_event): Print dwDebugEventCode as hex since
14526 that's how it's usually documented.
14527
14528 2013-02-28 Yao Qi <yao@codesourcery.com>
14529
14530 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
14531 pulongest.
14532
14533 2013-02-27 Jiong Wang <jiwang@tilera.com>
14534
14535 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
14536 (reg-tilegx32.c): New rule.
14537 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
14538 * linux-tile-low.c (tile_arch_setup): New function. Invoke
14539 different register info initializer according to elf class.
14540 (init_registers_tilgx32): New function. The tilegx32 register info
14541 initializer.
14542 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
14543 (tile_store_gregset): Likewise.
14544
14545 2013-02-27 Yao Qi <yao@codesourcery.com>
14546
14547 * server.c (process_point_options): Print debug message when
14548 debug_threads is true.
14549
14550 2013-02-26 Yao Qi <yao@codesourcery.com>
14551
14552 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
14553
14554 2013-02-19 Pedro Alves <palves@redhat.com>
14555 Kai Tietz <ktietz@redhat.com>
14556
14557 PR gdb/15161
14558
14559 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
14560 instead of strtoul to extract address from packet.
14561 (process_serial_event) <'z'>: Likewise.
14562
14563 2013-02-18 Yao Qi <yao@codesourcery.com>
14564
14565 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
14566
14567 2013-02-14 Pedro Alves <palves@redhat.com>
14568
14569 Plug memory leak.
14570
14571 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
14572 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
14573
14574 2013-02-14 Pedro Alves <palves@redhat.com>
14575
14576 * tracepoint.c (cmd_qtdpsrc): Use savestring.
14577
14578 2013-02-14 Pedro Alves <palves@redhat.com>
14579
14580 * tracepoint.c (save_string): Delete.
14581 (add_tracepoint_action): Use savestring instead of save_string.
14582
14583 2013-02-12 Pedro Alves <palves@redhat.com>
14584
14585 * linux-xtensa-low.c: Ditto.
14586 * xtensa-xtregs.c: Ditto.
14587
14588 2013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14589
14590 * thread-db.c (thread_db_get_tls_address): NULL pointer check
14591 thread_db.
14592
14593 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14594
14595 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
14596 aarch64_num_wp_regs and aarch64_num_bp_regs to
14597 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
14598
14599 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14600
14601 * linux-aarch64-low.c (ps_get_thread_area): Replace
14602 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
14603
14604 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
14605 Marcus Shawcroft <marcus.shawcroft@arm.com>
14606 Nigel Stephens <nigel.stephens@arm.com>
14607 Yufeng Zhang <yufeng.zhang@arm.com>
14608
14609 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
14610 (aarch64.c, aarch64-without-fpu.c): New targets.
14611 * configure.srv (aarch64*-*-linux*): New.
14612 * linux-aarch64-low.c: New file.
14613
14614 2013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
14615
14616 * linux-low.c (handle_extended_wait, linux_create_inferior)
14617 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
14618 (dequeue_one_deferred_signal, linux_resume_one_thread)
14619 (fetch_register, linux_write_memory, linux_enable_event_reporting)
14620 (linux_tracefork_grandchild, linux_test_for_tracefork)
14621 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
14622 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
14623 where the argument is 0.
14624
14625 2013-01-25 Yao Qi <yao@codesourcery.com>
14626
14627 * event-loop.c: Include "queue.h".
14628 (gdb_event_p): New typedef.
14629 (struct gdb_event) <next_event>: Remove.
14630 (event_queue): Change to QUEUE(gdb_event_p).
14631 (async_queue_event): Remove.
14632 (gdb_event_xfree): New.
14633 (initialize_event_loop): New.
14634 (process_event): Use API from QUEUE.
14635 (wait_for_event): Likewise.
14636 * server.c (main): Call initialize_event_loop.
14637 * server.h (initialize_event_loop): Declare.
14638
14639 2013-01-18 Yao Qi <yao@codesourcery.com>
14640
14641 * ax.h (struct eval_agent_expr_context): New.
14642 (gdb_eval_agent_expr): Update declaration.
14643 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
14644 TFRAME. Add new argument CTX.
14645 * server.h (struct eval_agent_expr_context): Declare.
14646 (agent_mem_read, agent_tsv_read): Update declaration.
14647 (agent_mem_read_string): Likewise.
14648 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
14649 (add_traceframe_block): Add new argument TPOINT.
14650 Increase TPOINT->traceframe_usage.
14651 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
14652 eval_tracepoint_agent_expr.
14653 (condition_true_at_tracepoint): Likewise.
14654 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
14655 (agent_mem_read_string, agent_tsv_read): Likewise.
14656
14657 2013-01-16 Yao Qi <yao@codesourcery.com>
14658
14659 * linux-low.c (linux_resume_one_lwp): Don't check
14660 'lwp->bp_reinsert != 0'.
14661
14662 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14663 Pedro Alves <palves@redhat.com>
14664
14665 * lynx-low.c (ptrace_request_to_str): Define a temporary
14666 macro and use it to simplify this function's implementation.
14667
14668 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14669
14670 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
14671 sets errno.
14672
14673 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14674
14675 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
14676
14677 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14678
14679 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
14680
14681 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14682
14683 * lynx-low.c (lynx_resume): Use the resume_info parameter
14684 to determine the ptid for the lynx_ptrace call, unless
14685 it is equal to minus_one_ptid, in which case we use the
14686 ptid of the current_inferior.
14687 (lynx_wait_1): After having received a thread create/exit
14688 event, resume the inferior's execution using the signaling
14689 thread's ptid, rather than the old ptid.
14690
14691 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14692
14693 * lynx-low.c (lynx_resume): Delete variable ret.
14694
14695 2013-01-01 Joel Brobecker <brobecker@adacore.com>
14696
14697 * gdbreplay.c (gdbreplay_version): Update copyright year.
14698 * server.c (gdbserver_version): Likewise.
14699
14700 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14701
14702 * lynx-low.c (lynx_wait_1): Add debug trace before adding
14703 new thread.
14704
14705 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14706
14707 * lynx-low.c (ptrace_request_to_str): Add handling for
14708 PTRACE_GETTRACESIG.
14709
14710 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14711
14712 * lynx-low.c (lynx_attach): Delete variable new_process.
14713
14714 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14715
14716 * lynx-low.c (lynx_create_inferior): Delete variable
14717 new_process.
14718
14719 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14720
14721 * lynx-low.c (ptrace_request_to_str): Do not handle
14722 PTRACE_GETTHREADLIST if this macro does not exist.
14723
14724 2012-12-15 Yao Qi <yao@codesourcery.com>
14725
14726 * Makefile.in (OBS): Add notif.o.
14727 * notif.c, notif.h: New.
14728 * server.c: Include "notif.h".
14729 (struct vstop_notif) <next>: Remove.
14730 <base>: New field.
14731 (queue_stop_reply): Update.
14732 (push_event, send_next_stop_reply): Remove.
14733 (discard_queued_stop_replies): Update.
14734 (notif_stop): New variable.
14735 (handle_v_stopped): Remove.
14736 (handle_v_requests): Don't call handle_v_stopped. Call
14737 handle_ack_notif instead.
14738 (queue_stop_reply_callback): Call notif_event_enque instead
14739 of queue_stop_reply.
14740 (handle_status): Don't call send_next_stop_reply, call
14741 notif_write_event instead.
14742 (kill_inferior_callback): Likewise.
14743 (detach_or_kill_inferior_callback): Likewise.
14744 (main): Call initialize_notif.
14745 (process_serial_event): Call QUEUE_is_empty.
14746 (handle_target_event): Call notif_push instead of push event.
14747 * server.h (push_event): Remove declaration.
14748
14749 2012-12-10 Tom Tromey <tromey@redhat.com>
14750
14751 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
14752 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
14753 macros.
14754 (.c.o): Rewrite.
14755 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
14756 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
14757 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
14758 (amd64-linux-ipa.o, ax.o): Rewrite.
14759 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
14760 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
14761 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
14762 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
14763 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
14764 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
14765 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
14766 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
14767 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
14768 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
14769 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
14770 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
14771 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
14772 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
14773 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
14774 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
14775 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
14776 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
14777 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
14778 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
14779 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
14780 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
14781 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
14782 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
14783 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
14784 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
14785 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
14786 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
14787 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
14788 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
14789 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
14790 (reg-tilegx.o): Remove.
14791 (all_object_files): New macro.
14792 Include .deps files.
14793 * aclocal.m4, configure: Rebuild.
14794 * acinclude.m4: Include depstand.m4, lead-dot.m4.
14795 * configure.ac: Invoke ZW_CREATE_DEPDIR,
14796 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
14797
14798 2012-12-05 Tom Tromey <tromey@redhat.com>
14799
14800 PR gdb/14917:
14801 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
14802
14803 2012-11-28 Markus Metzger <markus.t.metzger@intel.com>
14804
14805 * configure.ac: Check for linux/perf_event.h.
14806 * config.in: Regenerated.
14807 * configure: Regenerated.
14808
14809 2012-11-26 Maxime Villard <rustyBSD@gmx.fr>
14810
14811 * hostio.c (handle_readlink): Decrease buffer size
14812 parameter passed to readlink by one byte.
14813
14814 2012-11-26 Yao Qi <yao@codesourcery.com>
14815
14816 * configure.ac (build_warnings): Append '-Wempty-body'.
14817 * configure: Regenerated.
14818 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
14819 body.
14820
14821 2012-11-15 Pierre Muller <muller@sourceware.org>
14822
14823 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
14824 * config.in: Regenerate.
14825 * configure: Regenerate.
14826 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
14827 Use "gdb_wait.h" header instead of <sys/wait.h> header.
14828 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14829 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
14830 header.
14831 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
14832 instead of <sys/wait.h> header.
14833 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14834
14835 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
14836
14837 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
14838 (various make rules): Remove -DGDBSERVER
14839
14840 2012-11-09 Yao Qi <yao@codesourcery.com>
14841
14842 * spu-low.c (current_ptid): Move it to ..
14843 * gdbthread.h: ... here. New.
14844 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
14845 * server.c (myresume, process_serial_event): Likewise.
14846 * thread-db.c (thread_db_find_new_threads): Likewise.
14847 * tracepoint.c (run_inferior_command): Likewise.
14848
14849 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
14850
14851 * server.c (handle_search_memory_1): Include access length in
14852 warning message.
14853
14854 2012-09-05 Michael Brandt <michael.brandt@axis.com>
14855
14856 * linux-crisv32-low.c: Fix compile errors.
14857
14858 2012-09-04 Yao Qi <yao@codesourcery.com>
14859
14860 * tracepoint.c (cmd_qtsv): Adjust debug message.
14861 Don't check CUR_TPOINT.
14862
14863 2012-08-28 Yao Qi <yao@codesourcery.com>
14864
14865 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
14866 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
14867 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
14868 Remove declarations of xmalloc, xreallloc, xstrdup and
14869 freeargv.
14870 * Makefile.in (libiberty_h): New.
14871 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
14872 (linux-bfin-low.o): Append dependency 'libiberty.h'.
14873
14874 2012-08-23 Yao Qi <yao@codesourcery.com>
14875
14876 * server.h: Remove declaration of 'xsnprintf'.
14877
14878 2012-08-22 Keith Seitz <keiths@redhat.com>
14879
14880 * server.h: Include build-gnulib-gbserver/config.h.
14881 * gdbreplay.c: Likewise.
14882
14883 2012-08-08 Doug Evans <dje@google.com>
14884
14885 * Makefile.in (SFILES): Add gdb_vecs.c.
14886 (OBS): Add gdb_vecs.o.
14887 (gdb_vecs_h, host_defs_h): New variables.
14888 (thread-db.o): Add $(gdb_vecs_h) dependency.
14889 (gdb_vecs.o): New rule.
14890 * thread-db.c: #include "gdb_vecs.h".
14891 (thread_db_load_search): Use a vector to iterate over path elements.
14892 Handle text appearing after "$pdir".
14893
14894 * configure.ac: Add check for strstr.
14895 * config.in: Regenerate.
14896 * configure: Regenerate.
14897
14898 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
14899
14900 * hostio.c (handle_pread): If pread fails, fall back to attempting
14901 lseek/read.
14902 (handle_pwrite): Likewise for pwrite.
14903
14904 2012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
14905
14906 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
14907 between unsupported TYPE and unimplementable ADDR/LEN combination.
14908 (arm_insert_point): Act on new return value.
14909
14910 2012-07-31 Pedro Alves <palves@redhat.com>
14911
14912 * server.c (process_point_options): Only skip tokens if we find
14913 one that is unrecognized. Don't treat 'X' specially while
14914 skipping unrecognized tokens.
14915
14916 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
14917
14918 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
14919 to 4-byte-align HW breakpoint addresses for Thumb.
14920
14921 2012-07-27 Yao Qi <yao@codesourcery.com>
14922
14923 PR remote/14161.
14924
14925 * server.h: Declare gdb_agent_about_to_close.
14926 * target.c (kill_inferior): Include "agent.h".
14927 New. Send command 'kill'.
14928 * target.h (kill_inferior): Removed macro.
14929 * tracepoint.c (gdb_agent_about_to_close): New.
14930 (gdb_agent_helper_thread): Handle command 'close'.
14931 Wait endlessly until the inferior stops.
14932 Install gdb_agent_remove_socket to atexit hook.
14933 (agent_socket_name): New static variable.
14934 (gdb_agent_socket_init): Replace local variable 'name' with
14935 'agent_socket_name'.
14936 (gdb_agent_remove_socket): New.
14937
14938 2012-07-27 Yao Qi <yao@codesourcery.com>
14939
14940 * server.c (process_point_options): Stop at 'X' when parsing.
14941
14942 2012-07-19 Michael Eager <eager@eagercon.com>
14943
14944 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
14945 to hw_execute.
14946 * linux-x86-low.c (x86_insert_point, x86_remove_point):
14947 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
14948 hardware breakpoint.
14949
14950 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14951
14952 * gdbserver/linux-low.c (initialize_low): Call
14953 linux_ptrace_init_warnings.
14954
14955 2012-07-02 Doug Evans <dje@google.com>
14956
14957 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
14958 pointer to int.
14959
14960 2012-07-02 Stan Shebs <stan@codesourcery.com>
14961
14962 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
14963 (ax.o): Add it to build rule.
14964 (ax-ipa.o): Ditto.
14965 (OBS): Add format.o.
14966 (IPA_OBS): Add format.o.
14967 * server.c (handle_query): Claim support for breakpoint commands.
14968 (process_point_options): Add command case.
14969 (process_serial_event): Leave running if there are printfs in
14970 effect.
14971 * mem-break.h (any_persistent_commands): Declare.
14972 (add_breakpoint_commands): Declare.
14973 (gdb_no_commands_at_breakpoint): Declare.
14974 (run_breakpoint_commands): Declare.
14975 * mem-break.c (struct point_command_list): New struct.
14976 (struct breakpoint): New field command_list.
14977 (any_persistent_commands): New function.
14978 (add_commands_to_breakpoint): New function.
14979 (add_breakpoint_commands): New function.
14980 (gdb_no_commands_at_breakpoint): New function.
14981 (run_breakpoint_commands): New function.
14982 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
14983 locally.
14984 * ax.c: Include format.h.
14985 (ax_printf): New function.
14986 (gdb_eval_agent_expr): Add printf opcode.
14987
14988 2012-06-13 Yao Qi <yao@codesourcery.com>
14989
14990 * server.c (start_inferior): Remove duplicated writes to fields
14991 'last_resume_kind' and 'last_status' of 'current_inferior'.
14992
14993 2012-06-12 Yao Qi <yao@codesourcery.com>
14994 Pedro Alves <palves@redhat.com>
14995
14996 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
14997 comment.
14998 * server.c (handle_v_cont): Extend comment.
14999
15000 2012-06-11 Yao Qi <yao@codesourcery.com>
15001
15002 * linux-low.c (linux_attach): Add 'static'.
15003
15004 2012-06-06 Yao Qi <yao@codesourcery.com>
15005
15006 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
15007
15008 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
15009
15010 Fix gcc -flto compilation warning.
15011 * server.c (main): Make variable multi_mode and attach volatile.
15012
15013 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15014
15015 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
15016 if the platform doesn't know about it.
15017
15018 2012-05-30 Jeff Kenton <jkenton@tilera.com>
15019
15020 * Makefile.in (SFILES): Add linux-tile-low.c.
15021 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
15022 * configure.srv: Handle tilegx-*-linux*.
15023 * linux-tile-low.c: New file.
15024
15025 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
15026
15027 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
15028
15029 2012-05-24 Pedro Alves <palves@redhat.com>
15030
15031 PR gdb/7205
15032
15033 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
15034
15035 2012-05-24 Pedro Alves <palves@redhat.com>
15036
15037 PR gdb/7205
15038
15039 Replace target_signal with gdb_signal throughout.
15040
15041 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
15042
15043 * linux-low.c (linux_store_registers): Avoid the copying sequence
15044 when no data has been retrieved by ptrace.
15045
15046 2012-05-22 Will Deacon <will.deacon@arm.com>
15047
15048 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
15049 Include asm/ptrace.h.
15050 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
15051 already defined.
15052
15053 2012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
15054
15055 * linux-low.c (linux_store_registers): Don't re-retrieve data
15056 with ptrace that has already been obtained from /proc. Always
15057 copy any data retrieved with ptrace to the buffer supplied.
15058
15059 2012-05-11 Yao Qi <yao@codesourcery.com>
15060 Pedro Alves <palves@redhat.com>
15061
15062 * linux-low.c (enum stopping_threads_kind): New.
15063 (stopping_threads): Change type to `enum stopping_threads_kind'.
15064 (handle_extended_wait): If stopping and suspending threads, leave
15065 the new_lwp suspended too.
15066 (linux_wait_for_event): Adjust.
15067 (stop_all_lwps): Set `stopping_threads' to
15068 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
15069 whether we're suspending threads or just stopping them. Assert no
15070 recursion happens.
15071
15072 2012-04-29 Yao Qi <yao@codesourcery.com>
15073
15074 * server.h: Move some code to ...
15075 * gdbthread.h: ... here. New.
15076 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
15077 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
15078 (nto-low.o, win32-low.o): Likewise.
15079 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
15080 * regcache.c, remote-utils.c, server.c: Likewise.
15081 * target.c, tracepoint.c, win32-low.c: Likewise.
15082
15083 2012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15084
15085 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
15086 (PTRACE_ARG4_TYPE): Likewise.
15087 (PTRACE_XFER_TYPE): Likewise.
15088 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
15089 ptrace to PTRACE_ARG3_TYPE.
15090 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
15091 (PTRACE_ARG4_TYPE): Likewise.
15092 (PTRACE_XFER_TYPE): Likewise.
15093 (linux_detach_one_lwp): Cast fourth argument of
15094 ptrace to long then PTRACE_ARG4_TYPE.
15095 (regsets_fetch_inferior_registers): Cast third argument of
15096 ptrace to long then PTRACE_ARG3_TYPE.
15097 (regsets_store_inferior_registers): Likewise.
15098
15099 2012-04-20 Pedro Alves <palves@redhat.com>
15100
15101 * configure: Regenerate.
15102
15103 2012-04-19 Pedro Alves <palves@redhat.com>
15104
15105 * Makefile.in (GNULIB_BUILDDIR): New.
15106 (LIBGNU, INCGNU, GNULIB_H): Adjust.
15107 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
15108 (all, install-only, uninstall, clean-info, all-lib, clean): No
15109 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
15110 (maintainer-clean realclean distclean): Use subdir_do.
15111 (subdir_do): New.
15112 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
15113 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
15114 * acinclude.m4: Include acx_configure_dir.m4.
15115 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
15116 calls. Call AC_PROG_RANLIB. Configure gnulib using
15117 ACX_CONFIGURE_DIR.
15118 (GNULIB): New.
15119 (GNULIB_STDINT_H): Adjust.
15120 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
15121 * gdbreplay.c: Include build-gnulib/config.h.
15122 * server.h: Likewise.
15123 * aclocal.m4: Regenerate.
15124 * config.in: Regenerate.
15125 * configure: Regenerate.
15126
15127 2012-04-19 Pedro Alves <palves@redhat.com>
15128
15129 * Makefile.in (LIBGNU, INCGNU): Adjust.
15130 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
15131 (all, install-only, uninstall, clean-info, all-lib, clean)
15132 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
15133 * configure.ac: Adjust AC_OUTPUT output.
15134 * aclocal.m4: Regenerate.
15135 * configure: Regenerate.
15136
15137 2012-04-19 Pedro Alves <palves@redhat.com>
15138
15139 * Makefile.in (generated_files): New.
15140 (server_h): Remove the explicit dependency on config.h, and depend
15141 on $generated_files.
15142
15143 2012-04-19 Pedro Alves <palves@redhat.com>
15144
15145 * Makefile.in (INCGNU): Add -Ignulib.
15146
15147 2012-04-19 Pedro Alves <palves@redhat.com>
15148
15149 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
15150 (INCGNU): ... this, and spell out -I here.
15151 (GNULIB_LIB): Rename to ...
15152 (LIBGNU): ... this.
15153 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
15154
15155 2012-04-19 Pedro Alves <palves@redhat.com>
15156
15157 * config.in: Regenerate.
15158
15159 2012-04-19 Pedro Alves <palves@redhat.com>
15160
15161 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
15162 * server.h (memmem): Remove declaration.
15163 * config.in: Regenerate.
15164 * configure: Regenerate.
15165
15166 2012-04-19 Yao Qi <yao@codesourcery.com>
15167
15168 * Makefile.in (SFILES): Add common/vec.c.
15169 (OBS): Add vec.o.
15170 (vec.o): New rule.
15171
15172 2012-04-19 Yao Qi <yao@codesourcery.com>
15173
15174 * remote-utils.c (prepare_resume_reply): Replace with macro
15175 target_core_of_thread.
15176 * server.c (handle_qxfer_threads_proper): Likewise.
15177 * target.h (traget_core_of_thread): New macro.
15178
15179 2012-04-18 Pedro Alves <palves@redhat.com>
15180
15181 * aclocal.m4: Regenerate.
15182 * configure: Regenerate.
15183
15184 2012-04-16 Yao Qi <yao@codesourcery.com>
15185
15186 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
15187 duplicated on address.
15188
15189 2012-04-16 Yao Qi <yao@codesourcery.com>
15190
15191 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
15192 (struct tracepoint_action_ops) <send>: New field.
15193 (m_tracepoint_action_send, r_tracepoint_action_send): New.
15194 (agent_expr_send, x_tracepoint_action_send): New.
15195 (l_tracepoint_action_send): New.
15196 (cmd_qtdp): Download and install tracepoint
15197 according to `use_agent'.
15198 (run_inferior_command): Add one more parameter `len'.
15199 Update callers.
15200 (tracepoint_send_agent): New.
15201 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
15202
15203 2012-04-16 Yao Qi <yao@codesourcery.com>
15204
15205 * tracepoint.c (download_tracepoints): Moved to ...
15206 (cmd_qtstart): ... here.
15207
15208 2012-04-14 Yao Qi <yao@codesourcery.com>
15209
15210 * tracepoint.c: Include inttypes.h.
15211 (struct collect_memory_action): Use sized types.
15212 (struct tracepoint): Likewise.
15213 (cmd_qtdp, stop_tracing): Update print specifiers.
15214 (cmd_qtp, response_tracepoint): Likewise.
15215 (collect_data_at_tracepoint): Likewise.
15216 (collect_data_at_step): Likewise.
15217
15218 2012-04-14 Yao Qi <yao@codesourcery.com>
15219
15220 Import gnulib module inttypes.
15221 * aclocal.m4, config.in, configure: Regenerated.
15222
15223 2012-04-14 Yao Qi <yao@codesourcery.com>
15224
15225 * Makefile.in (maintainer-clean, realclean, distclean): Remove
15226 Makefile and config.status at last.
15227
15228 2012-04-13 Yao Qi <yao@codesourcery.com>
15229
15230 * tracepoint.c: Include stdint.h unconditionally.
15231
15232 2012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15233
15234 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
15235 on BFD_HAVE_SYS_PROCFS_TYPE.
15236 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
15237 * configure: Regenerate.
15238 * config.in: Likewise.
15239
15240 2012-04-13 H.J. Lu <hongjiu.lu@intel.com>
15241
15242 * Makefile.in (clean): Also remove x32.c x32-linux.c
15243 x32-avx.c x32-avx-linux.c.
15244 (x32.o): New target.
15245 (x32.c): Likewise.
15246 (x32-linux.o): Likewise.
15247 (x32-linux.c): Likewise.
15248 (x32-avx.o): Likewise.
15249 (x32-avx.c): Likewise.
15250 (x32-avx-linux.o): Likewise.
15251 (x32-avx-linux.c): Likewise.
15252
15253 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
15254 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
15255 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
15256 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
15257 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
15258 i386/x32-avx-linux.xml.
15259
15260 * linux-x86-low.c (init_registers_x32_linux): New prototype.
15261 (init_registers_x32_avx_linux): Likwise.
15262 (x86_linux_update_xmltarget): Call init_registers_x32_linux
15263 or init_registers_x32_avx_linux if linux_is_elf64 is false.
15264
15265 2012-04-13 Pedro Alves <palves@redhat.com>
15266
15267 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
15268 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
15269 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
15270 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
15271 the sub-make.
15272
15273 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15274
15275 * linux-x86-low.c (compat_x32_clock_t): New.
15276 (compat_x32_siginfo_t): Likewise.
15277 (compat_x32_siginfo_from_siginfo): Likewise.
15278 (siginfo_from_compat_x32_siginfo): Likewise.
15279 (linux_is_elf64): Likewise.
15280 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
15281 and siginfo_from_compat_x32_siginfo for x32.
15282 (x86_arch_setup): Set linux_is_elf64.
15283
15284 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15285
15286 PR gdb/13969
15287 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
15288 e_machine field.
15289 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
15290 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
15291 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
15292 compatible with process.
15293
15294 2012-04-12 Yao Qi <yao@codesourcery.com>
15295
15296 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
15297 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
15298 (install-only, install-info, clean): Handle sub dir gnulib.
15299 (all-lib, am--refresh): New targets.
15300 (memmem.o): Remove target.
15301 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
15302 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
15303 (AC_REPLACE_FUNCS): Remove memmem.
15304 Invoke gl_INIT and AM_INIT_AUTOMAKE.
15305 (AC_OUTPUT): Generate Makefile in gnulib/.
15306 * aclocal.m4, config.in, configure: Regenerated.
15307
15308 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
15309
15310 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
15311
15312 2012-04-05 Pedro Alves <palves@redhat.com>
15313
15314 -Werror=strict-aliasing
15315
15316 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
15317 pointer.
15318
15319 2012-04-04 Pedro Alves <palves@redhat.com>
15320
15321 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
15322 (sparc_store_gregset_from_stack, sparc_store_gregset)
15323 (sparc_breakpoint_at): Fix formatting.
15324
15325 2012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15326
15327 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
15328 are available.
15329 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
15330 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
15331 * config.in: Regenerate.
15332 * configure: Likewise.
15333
15334 2012-03-29 Pedro Alves <palves@redhat.com>
15335
15336 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
15337 Correct ptrace arguments.
15338
15339 2012-03-28 Pedro Alves <palves@redhat.com>
15340
15341 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
15342 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
15343 (IA64_FR1_REGNUM): New defines.
15344 (ia64_fetch_register): New.
15345 (the_low_target): Install it.
15346 * linux-low.h (struct linux_target_ops) <fetch_register>: New
15347 field.
15348 * linux-low.c (linux_fetch_registers): Try the
15349 the_low_target.fetch_register hook first.
15350
15351 * linux-arm-low.c (the_low_target): Adjust.
15352 * linux-bfin-low.c (the_low_target): Adjust.
15353 * linux-cris-low.c (the_low_target): Adjust.
15354 * linux-crisv32-low.c (the_low_target): Adjust.
15355 * linux-m32r-low.c (the_low_target): Adjust.
15356 * linux-m68k-low.c (the_low_target): Adjust.
15357 * linux-mips-low.c (the_low_target): Adjust.
15358 * linux-ppc-low.c (the_low_target): Adjust.
15359 * linux-s390-low.c (the_low_target): Adjust.
15360 * linux-sh-low.c (the_low_target): Adjust.
15361 * linux-sparc-low.c (the_low_target): Adjust.
15362 * linux-tic6x-low.c (the_low_target): Adjust.
15363 * linux-x86-low.c (the_low_target): Adjust.
15364 * linux-xtensa-low.c (the_low_target): Adjust.
15365
15366 2012-03-26 Pedro Alves <palves@redhat.com>
15367
15368 * server.c (handle_qxfer_libraries): Don't bail early if
15369 the_target->qxfer_libraries_svr4 is not NULL.
15370
15371 2012-03-26 Pedro Alves <palves@redhat.com>
15372
15373 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
15374
15375 2012-03-23 Pedro Alves <palves@redhat.com>
15376
15377 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
15378 "library-list-svr4" element's start tag when the the DSO list is
15379 empty.
15380
15381 2012-03-23 Pedro Alves <palves@redhat.com>
15382
15383 * linux-low.c (read_one_ptr): Read the inferior's pointer through
15384 a variable whose type size is the same as the inferior's pointer
15385 size.
15386
15387 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
15388
15389 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
15390 struct siginfo.
15391 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
15392 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
15393 * linux-low.h: Include <signal.h>.
15394 (struct siginfo): Remove forward declaration.
15395 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
15396 struct siginfo.
15397
15398 2012-03-21 Mike Frysinger <vapier@gentoo.org>
15399
15400 * .gitignore: Ignore more files.
15401
15402 2012-03-19 Pedro Alves <palves@redhat.com>
15403 Jan Kratochvil <jan.kratochvil@redhat.com>
15404
15405 * server.c (cont_thread, general_thread): Add describing comments.
15406 (start_inferior): Clear `cont_thread'.
15407 (handle_v_cont): Don't set `cont_thread' if resuming all threads
15408 of a process.
15409
15410 2012-03-15 Yao Qi <yao@codesourcery.com>
15411
15412 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
15413 handling to ...
15414 (cmd_qtdp): ... here.
15415
15416 2012-03-15 Yao Qi <yao@codesourcery.com>
15417
15418 * tracepoint.c (struct tracepoint_action_ops): New.
15419 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
15420 (m_tracepoint_action_download): New.
15421 (r_tracepoint_action_download): New.
15422 (x_tracepoint_action_download): New.
15423 (l_tracepoint_action_download): New.
15424 (add_tracepoint_action): Install `action->ops' according type.
15425 (download_tracepoint_1): Move code `download' function pointer
15426 of various tracepoint_action_ops.
15427
15428 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15429
15430 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
15431 linux_ptrace_attach_warnings.
15432
15433 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15434
15435 * Makefile.in (linux-ptrace.o): New.
15436 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
15437 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
15438 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
15439 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
15440 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
15441 of these targets.
15442 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
15443
15444 2012-03-08 Yao Qi <yao@codesourcery.com>
15445 Pedro Alves <palves@redhat.com>
15446
15447 Fix PR server/13392.
15448 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
15449 offset of JMP insn.
15450 * tracepoint.c (remove_tracepoint): New.
15451 (cmd_qtdp): Call remove_tracepoint when failed to install.
15452
15453 2012-03-07 Pedro Alves <palves@redhat.com>
15454
15455 * linux-low.c (get_detach_signal): New.
15456 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
15457 Pass on pending signals to PTRACE_DETACH. Check the result of the
15458 ptrace call.
15459 * server.c (program_signals, program_signals_p): New.
15460 (handle_general_set): Handle QProgramSignals.
15461 * server.h (program_signals, program_signals_p): Declare.
15462
15463 2012-03-05 Pedro Alves <palves@redhat.com>
15464 Jan Kratochvil <jan.kratochvil@redhat.com>
15465
15466 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
15467 New comment why.
15468
15469 2012-03-03 Yao Qi <yao@codesourcery.com>
15470
15471 * tracepoint.c (tracepoint_look_up_symbols): Update call to
15472 agent_look_up_symbols.
15473
15474 2012-03-03 Yao Qi <yao@codesourcery.com>
15475
15476 * Makefile.in (linux-low.o): Keep dependence on agent.h.
15477 (linux-x86-low.o): Likewise.
15478 * server.h: Remove in_process_agent_loaded.
15479 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
15480 common/agent.c.
15481 Update callers.
15482
15483 2012-03-03 Yao Qi <yao@codesourcery.com>
15484
15485 * tracepoint.c (gdb_agent_capability): New global.
15486 (in_process_agent_loaded_ust): Renamed to
15487 `in_process_agent_supports_ust'.
15488 Update callers.
15489 (in_process_agent_supports_ust): Call agent_capability_check.
15490 (clear_installed_tracepoints): Assert that agent supports
15491 agent.
15492
15493 2012-03-03 Yao Qi <yao@codesourcery.com>
15494
15495 * linux-low.c (linux_supports_agent): New.
15496 (linux_target_ops): Initialize field `supports_agent' with
15497 linux_supports_agent.
15498 * target.h (struct target_ops) <supports_agent>: New.
15499 (target_supports_agent): New macro.
15500 * server.c (handle_general_set): Handle packet 'QAgent'.
15501 (handle_query): Send `QAgent+'.
15502 * Makefile.in (server.o): Depends on agent.h.
15503
15504 2012-03-03 Yao Qi <yao@codesourcery.com>
15505
15506 * Makefile.in (OBS): Add agent.o.
15507 Add new rule for agent.o.
15508 Track dependence of tracepoint.c on agent.h.
15509 * tracepoint.c (run_inferior_command_1):
15510 (run_inferior_command): Call agent_run_command.
15511 (gdb_ust_connect_sync_socket): Deleted. Move it to
15512 common/agent.c.
15513 (resume_thread, stop_thread): Likewise.
15514 (gdb_ust_socket_init): Renamed to ...
15515 (gdb_agent_socket_init): ... New.
15516 (gdb_ust_thread): Renamed to ...
15517 (gdb_agent_helper_thread): ... New.
15518 (gdb_ust_init): Move some code to ...
15519 (gdb_agent_init): ... here. New.
15520 [HAVE_UST]: Call gdb_ust_init.
15521 (initialize_tracepoint_ftlib): Call gdb_agent_init.
15522 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
15523 * config.in, configure: Regenerated.
15524
15525 2012-03-02 Pedro Alves <palves@redhat.com>
15526
15527 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
15528 * linux-low.c (struct simple_pid_list): New.
15529 (stopped_pids): New a struct simple_pid_list pointer.
15530 (add_to_pid_list, pull_pid_from_list): New.
15531 (handle_extended_wait): Don't assume the first signal new children
15532 report is SIGSTOP. Adjust call to pull_pid_from_list.
15533 (linux_wait_for_lwp): Adjust.
15534
15535 2012-03-02 Yao Qi <yao@codesourcery.com>
15536
15537 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
15538 debug log.
15539
15540 2012-03-02 Yao Qi <yao@codesourcery.com>
15541
15542 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
15543 `stop_pc' and `tpoint'. Update caller.
15544
15545 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
15546
15547 * linux-low.h (linux_target_ops): Add regset_bitmap member.
15548 * linux-low.c (use_linux_regsets): New macro.
15549 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
15550 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
15551 (linux_register_in_regsets): New function.
15552 (usr_fetch_inferior_registers): Skip registers covered by
15553 regsets.
15554 (usr_store_inferior_registers): Likewise.
15555 (usr_fetch_inferior_registers): New macro.
15556 (usr_store_inferior_registers): Likewise.
15557 (linux_fetch_registers): Handle mixed regset/non-regset targets.
15558 (linux_store_registers): Likewise.
15559 * linux-mips-low.c (init_registers_mips_dsp_linux): New
15560 prototype.
15561 (init_registers_mips64_dsp_linux): Likewise.
15562 (init_registers_mips_linux): New macro.
15563 (init_registers_mips_dsp_linux): Likewise.
15564 (mips_dsp_num_regs): Likewise.
15565 (DSP_BASE, DSP_CONTROL): New fallback macros.
15566 (mips_base_regs): New macro.
15567 (mips_regmap): Use it. Fix the size.
15568 (mips_dsp_regmap): New variable.
15569 (mips_dsp_regset_bitmap): Likewise.
15570 (mips_arch_setup): New function.
15571 (mips_cannot_fetch_register): Use the_low_target.regmap rather
15572 than mips_regmap.
15573 (mips_cannot_store_register): Likewise.
15574 (the_low_target): Update .arch_setup, .num_regs and .regmap
15575 initializers. Add .regset_bitmap initializer.
15576 * linux-arm-low.c (the_low_target): Add .regset_bitmap
15577 initializer.
15578 * linux-bfin-low.c (the_low_target): Likewise.
15579 * linux-cris-low.c (the_low_target): Likewise.
15580 * linux-crisv32-low.c (the_low_target): Likewise.
15581 * linux-ia64-low.c (the_low_target): Likewise.
15582 * linux-m32r-low.c (the_low_target): Likewise.
15583 * linux-m68k-low.c (the_low_target): Likewise.
15584 * linux-ppc-low.c (the_low_target): Likewise.
15585 * linux-s390-low.c (the_low_target): Likewise.
15586 * linux-sh-low.c (the_low_target): Likewise.
15587 * linux-sparc-low.c (the_low_target): Likewise.
15588 * linux-tic6x-low.c (the_low_target): Likewise.
15589 * linux-x86-low.c (the_low_target): Likewise.
15590 * linux-xtensa-low.c (the_low_target): Likewise.
15591 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
15592 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
15593 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
15594 srv_xmlfiles.
15595 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
15596 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
15597
15598 2012-02-29 Yao Qi <yao@codesourcery.com>
15599 Pedro Alves <palves@redhat.com>
15600
15601 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
15602 `step_over_finished' is true.
15603
15604 2012-02-27 Pedro Alves <palves@redhat.com>
15605
15606 * linux-low.c (pid_is_stopped): Delete, moved to common/.
15607 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
15608
15609 2012-02-27 Pedro Alves <palves@redhat.com>
15610
15611 PR server/9684
15612 * linux-low.c (pid_is_stopped): New.
15613 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
15614
15615 2012-02-25 Luis Machado <lgustavo@codesourcery.com>
15616
15617 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
15618 of conditions.
15619
15620 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
15621
15622 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
15623
15624 2012-02-24 Luis Machado <lgustavo@codesourcery>
15625
15626 * server.c (handle_query): Advertise support for target-side
15627 breakpoint condition evaluation.
15628 (process_point_options): New function.
15629 (process_serial_event): When inserting a breakpoint, check for
15630 a target-side condition that should be evaluated.
15631
15632 * mem-break.c: Include regcache.h and ax.h.
15633 (point_cond_list_t): New data structure.
15634 (breakpoint) <cond_list>: New field.
15635 (find_gdb_breakpoint_at): Make non-static.
15636 (delete_gdb_breakpoint_at): Clear any target-side
15637 conditions.
15638 (clear_gdb_breakpoint_conditions): New function.
15639 (add_condition_to_breakpoint): Likewise.
15640 (add_breakpoint_condition): Likewise.
15641 (gdb_condition_true_at_breakpoint): Likewise.
15642 (gdb_breakpoint_here): Return result directly instead
15643 of going through a local variable.
15644
15645 * mem-break.h (find_gdb_breakpoint_at): New prototype.
15646 (clear_gdb_breakpoint_conditions): Likewise.
15647 (add_breakpoint_condition): Likewise.
15648 (gdb_condition_true_at_breakpoint): Likewise.
15649
15650 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
15651 (need_step_over_p): Take target-side breakpoint condition into
15652 consideration.
15653
15654 2012-02-24 Luis Machado <lgustavo@codesourcery>
15655
15656 * server.h: Include tracepoint.h.
15657 (agent_mem_read, agent_get_trace_state_variable_value,
15658 agent_set_trace_state_variable_value,
15659 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
15660 get_set_tsv_func_addr): New prototypes.
15661
15662 * ax.h: New include file.
15663 * ax.c: New source file.
15664
15665 * tracepoint.c: Include ax.h.
15666 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
15667 agent_expr, eval_result_type): Move to ax.h.
15668 (parse_agent_expr): Rename to ...
15669 (gdb_parse_agent_expr): ... this, make it non-static and move
15670 to ax.h.
15671 (unparse_agent_expr) Rename to ...
15672 (gdb_unparse_agent_expr): ... this, make it non-static and move
15673 to ax.h.
15674 (eval_agent_expr): Rename to ...
15675 (eval_tracepoint_agent_expr): ... this.
15676 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
15677 forward declarations.
15678 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
15679 (agent_get_trace_state_variable_value): New function.
15680 (agent_set_trace_state_variable_value): New function.
15681 (cmd_qtdp): Call gdb_parse_agent_expr (...).
15682 (response_tracepoint): Call gdb_unparse_agent_expr (...).
15683 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
15684 (condition_true_at_tracepoint): Likewise.
15685 (parse_agent_expr): Rename to ...
15686 (gdb_parse_agent_expr): ... this and move to ax.c.
15687 (unparse_agent_expr): Rename to ...
15688 (gdb_unparse_agent_expr): ... this and move to ax.c.
15689 (gdb_agent_op_name): Move to ax.c.
15690 (eval_agent_expr): Rename to ...
15691 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
15692 and move to ax.c.
15693 (eval_tracepoint_agent_expr): New function.
15694 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
15695 non-static.
15696 (current_insn_ptr, emit_error, struct bytecode_address): Move to
15697 ax.c.
15698 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
15699 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
15700 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
15701 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
15702 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
15703 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
15704 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
15705 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
15706 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
15707 (compile_bytecodes): Remove forward declaration.
15708 (is_goto_target): Move to ax.c.
15709 (compile_bytecodes): Move to ax.c and call
15710 agent_get_trace_state_variable_value (...) and
15711 agent_set_trace_state_variable_value (...).
15712
15713 * Makefile.in: Update ax.c and IPA dependencies.
15714
15715 2012-02-24 Pedro Alves <palves@redhat.com>
15716
15717 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
15718 (cmd_bigqtbuffer_circular): ... this. Only handle
15719 'QTBuffer:circular:'.
15720 (handle_tracepoint_general_set): Adjust.
15721
15722 2012-02-16 Yao Qi <yao@codesourcery.com>
15723
15724 * inferiors.c: Move code to ...
15725 * dll.c: .... here. New.
15726 * server.h: Declare clear_dlls.
15727 * Makefile.in (SFILES): Add dll.c.
15728 (OBS): Add dll.o
15729 (dll.o): New rule.
15730
15731 2012-02-11 Yao Qi <yao@codesourcery.com>
15732
15733 * server.c: (handle_monitor_command): Add a new parameter
15734 `own_buf'.
15735 (handle_query): Update caller.
15736
15737 2012-02-09 Joel Brobecker <brobecker@adacore.com>
15738
15739 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
15740 * configure, config.in: Regenerate.
15741 * hostio.c: Provide an alternate implementation if HAVE_READLINK
15742 is not defined.
15743
15744 2012-02-02 Pedro Alves <palves@redhat.com>
15745
15746 Try SIGKILL first, then PTRACE_KILL.
15747 * linux-low.c (linux_kill_one_lwp): New.
15748 (linux_kill_one_lwp): Rename to ...
15749 (kill_one_lwp_callback): ... this. Use the new
15750 linux_kill_one_lwp.
15751
15752 2012-02-02 Pedro Alves <palves@redhat.com>
15753
15754 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
15755 inferior.
15756
15757 2012-01-27 Pedro Alves <palves@redhat.com>
15758
15759 * linux-low.c (linux_child_pid_to_exec_file): Delete.
15760 (elf_64_file_p): Make static.
15761 (linux_pid_exe_is_elf_64_file): New.
15762 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
15763 Delete declarations.
15764 (linux_pid_exe_is_elf_64_file): Declare.
15765 * linux-x86-low.c (x86_arch_setup): Use
15766 linux_pid_exe_is_elf_64_file.
15767
15768 2012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
15769
15770 * linux-low.c (linux_wait_for_event_1): Rename to ...
15771 (linux_wait_for_event): ... here and merge it with former
15772 linux_wait_for_event - new variable wait_ptid, use it.
15773 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
15774
15775 2012-01-23 Pedro Alves <palves@redhat.com>
15776
15777 * server.c (main): Avoid yet another case of infinite loop while
15778 detaching/killing after a longjmp.
15779
15780 2012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15781
15782 Code cleanup.
15783 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
15784
15785 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
15786
15787 * hostio.c (handle_readlink): New function.
15788 (handle_vFile): Call it to handle "vFile:readlink" packets.
15789
15790 2012-01-20 Pedro Alves <palves@redhat.com>
15791 Ulrich Weigand <ulrich.weigand@linaro.org>
15792
15793 * server.c (handle_v_requests): Only support vAttach and vRun to
15794 start multiple processes when in extended protocol mode.
15795
15796 2012-01-17 Pedro Alves <palves@redhat.com>
15797
15798 * tracepoint.c (initialize_tracepoint): Use mmap instead of
15799 memalign plus mprotect to allocate the scratch buffer.
15800
15801 2012-01-13 Pedro Alves <palves@redhat.com>
15802
15803 * server.c (attach_inferior): Clear `cont_thread'.
15804
15805 2012-01-13 Pedro Alves <palves@redhat.com>
15806
15807 * server.c (main): Avoid infinite loop while detaching/killing
15808 after a longjmp.
15809
15810 2012-01-09 Doug Evans <dje@google.com>
15811
15812 * server.c (start_inferior): Set last_ptid in --wrapper case.
15813
15814 2012-01-06 Yao Qi <yao@codesourcery.com>
15815
15816 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
15817 defined.
15818 [IN_PROCESS_AGENT] (debug_agent): New global variable.
15819
15820 2012-01-04 Yao Qi <yao@codesourcery.com>
15821
15822 * tracepoint.c (cmd_qtdp): Print debug message
15823 for static tracepoint.
15824
15825 2012-01-04 Yao Qi <yao@codesourcery.com>
15826
15827 * tracepoint.c (trace_vdebug): Differentiate debug message
15828 between gdbserver and IPA.
15829
15830 2012-01-03 Yao Qi <yao@codesourcery.com>
15831
15832 * tracepoint.c (tracepoint_was_hit): Don't collect for
15833 static tracepoint.
15834
15835 2012-01-02 Joel Brobecker <brobecker@adacore.com>
15836
15837 * terminal.h: Reformat copyright header.
15838
15839 2012-01-02 Joel Brobecker <brobecker@adacore.com>
15840
15841 * server.c (gdbserver_version): Update copyright year.
15842 * gdbreplay.c (gdbreplay_version): Likewise.
15843
15844 2011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
15845
15846 * linux-low.c (linux_create_inferior): Put empty if clause for write.
15847
15848 Revert:
15849 2011-12-18 Hui Zhu <teawater@gmail.com>
15850 * linux-low.c (linux_create_inferior): Save return value to ret.
15851
15852 2011-12-18 Hui Zhu <teawater@gmail.com>
15853
15854 * linux-low.c (linux_create_inferior): Save return value to ret.
15855
15856 2011-12-16 Doug Evans <dje@google.com>
15857
15858 * linux-low.c (linux_create_inferior): If stdio connection,
15859 redirect stdin from /dev/null, stdout to stderr.
15860 * remote-utils.c (remote_is_stdio): New static global.
15861 (remote_connection_is_stdio): New function.
15862 (remote_prepare): Handle stdio connection.
15863 (remote_open): Ditto.
15864 (remote_close): Don't close stdin for stdio connections.
15865 (read_prim,write_prim): New functions. Replace all calls to
15866 read/write to these.
15867 * server.c (main): Watch for "-" argument. Move call to
15868 remote_prepare before start_inferior.
15869 * server.h (STDIO_CONNECTION_NAME): New macro.
15870 (remote_connection_is_stdio): Declare.
15871
15872 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
15873 in debugging output.
15874
15875 2011-12-15 Yao Qi <yao@codesourcery.com>
15876
15877 * tracepoint.c: Include sys/syscall.h.
15878 (gdb_ust_thread): Remove preprocessor conditional.
15879
15880 2011-12-14 Pedro Alves <pedro@codesourcery.com>
15881
15882 * linux-low.c (linux_detach_one_lwp): Call
15883 the_low_target.prepare_to_resume before detaching.
15884
15885 2011-12-14 Yao Qi <yao@codesourcery.com>
15886
15887 * tracepoint.c (gdb_ust_thread): Don't ignore return value
15888 of write.
15889
15890 2011-12-14 Yao Qi <yao@codesourcery.com>
15891
15892 * i386-low.c (i386_low_stopped_data_address): Initialize local
15893 variable `control'.
15894
15895 2011-12-13 Pedro Alves <pedro@codesourcery.com>
15896
15897 PR remote/13492
15898
15899 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
15900 DR_CONTROL unless necessary. Extend comments.
15901 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
15902 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
15903
15904 2011-12-13 Yao Qi <yao@codesourcery.com>
15905
15906 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
15907 macros.
15908 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
15909
15910 2011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
15911
15912 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
15913 Print new debug message for such case.
15914
15915 2011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
15916
15917 Fix overlapping memcpy.
15918 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
15919 the read_inferior_memory transfer.
15920 (delete_fast_tracepoint_jump): New variable buf. Use it for the
15921 write_inferior_memory transfer.
15922 (set_fast_tracepoint_jump): New variable buf. Use it for the
15923 read_inferior_memory and write_inferior_memory transfers.
15924 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
15925 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
15926 Use it for the write_inferior_memory transfer.
15927 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
15928 buffers.
15929
15930 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
15931
15932 * linux-low.c (fetch_register, store_register): Make code
15933 consistent, fix formatting.
15934
15935 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
15936
15937 * linux-low.c (usr_store_inferior_registers): Factor out code
15938 to handle individual registers into...
15939 (store_register): ... this new function.
15940
15941 2011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
15942
15943 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
15944 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
15945 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
15946 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
15947 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
15948 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
15949 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
15950 (srv_xmlfiles): Add new XML files.
15951
15952 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
15953 and <sys/uio.h>.
15954 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
15955 (init_registers_s390_linux32v1): Add prototype.
15956 (init_registers_s390_linux32v2): Likewise.
15957 (init_registers_s390_linux64v1): Likewise.
15958 (init_registers_s390_linux64v2): Likewise.
15959 (init_registers_s390x_linux64v1): Likewise.
15960 (init_registers_s390x_linux64v2): Likewise.
15961 (s390_num_regs): Increment to 52.
15962 (s390_regmap): Add orig_r2 register.
15963 (s390_num_regs_3264): Increment to 68.
15964 (s390_regmap_3264): Add orig_r2 register.
15965 (s390_collect_ptrace_register): Handle orig_r2 register.
15966 (s390_supply_ptrace_register): Likewise.
15967 (s390_fill_last_break): New function.
15968 (s390_store_last_break): Likewise.
15969 (s390_fill_system_call): New function.
15970 (s390_store_system_call): Likewise.
15971 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
15972 register sets.
15973 (s390_check_regset): New function.
15974 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
15975 NT_S390_SYSTEM_CALL regsets and use appropriate description.
15976 Update target_regsets for available register sets.
15977
15978 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
15979 Jan Kratochvil <jan.kratochvil@redhat.com>
15980
15981 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
15982 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
15983 New.
15984 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
15985 * linux-low.h (struct process_info_private): New member r_debug.
15986 * server.c (handle_qxfer_libraries): Call
15987 the_target->qxfer_libraries_svr4.
15988 (handle_qxfer_libraries_svr4): New function.
15989 (qxfer_packets): New entry "libraries-svr4".
15990 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
15991 * target.h (struct target_ops): New member qxfer_libraries_svr4.
15992 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
15993 PACKET_qXfer_libraries_svr4.
15994
15995 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
15996
15997 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
15998 PSW address/mask between 8-byte and 16-byte formats.
15999 (s390_supply_ptrace_register): Likewise.
16000 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
16001 basic addressing mode bit.
16002
16003 2011-11-24 Stan Shebs <stan@codesourcery.com>
16004
16005 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
16006
16007 2011-11-17 Stan Shebs <stan@codesourcery.com>
16008
16009 * tracepoint.c (struct tracepoint): New field traceframe_usage.
16010 (tracing_start_time): New global.
16011 (tracing_stop_time): New global.
16012 (tracing_user_name): New global.
16013 (tracing_notes): New global.
16014 (tracing_stop_note): New global.
16015 (cmd_qtstart): Set traceframe_usage, start_time.
16016 (stop_tracing): Set stop_time.
16017 (cmd_qtstatus): Report additional status.
16018 (cmd_qtp): New function.
16019 (handle_tracepoint_query): Call it.
16020 (cmd_qtnotes): New function.
16021 (handle_tracepoint_general_set): Call it.
16022 (get_timestamp): Rename from tsv_get_timestamp.
16023
16024 2011-11-14 Stan Shebs <stan@codesourcery.com>
16025 Kwok Cheung Yeung <kcy@codesourcery.com>
16026
16027 * linux-x86-low.c (small_jump_insn): New.
16028 (i386_install_fast_tracepoint_jump_pad): Add arguments for
16029 trampoline and error message, build a trampoline and issue a small
16030 jump instruction to it.
16031 (x86_install_fast_tracepoint_jump_pad): Add arguments for
16032 trampoline and error message.
16033 (x86_get_min_fast_tracepoint_insn_len): New.
16034 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
16035 * linux-low.h (struct linux_target_ops): Add arguments to
16036 install_fast_tracepoint_jump_pad operation, add new operation.
16037 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
16038 arguments.
16039 (linux_get_min_fast_tracepoint_insn_len): New function.
16040 (linux_target_op): Add new operation.
16041 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
16042 (gdb_trampoline_buffer_end): Ditto.
16043 (gdb_trampoline_buffer_error): Ditto.
16044 (struct ipa_sym_addresses): Add fields for new IPA variables.
16045 (symbol_list): Add entries for new IPA variables.
16046 (struct tracepoint): Add fields to hold the address range of the
16047 trampoline used by the tracepoint.
16048 (trampoline_buffer_head): New static variable.
16049 (trampoline_buffer_tail): Ditto.
16050 (claim_trampoline_space): New function.
16051 (have_fast_tracepoint_trampoline_buffer): New function.
16052 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
16053 structure.
16054 (install_fast_tracepoint): Ditto, also add error buffer argument.
16055 (cmd_qtminftpilen): New function.
16056 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
16057 (fast_tracepoint_from_trampoline_address): New function.
16058 (fast_tracepoint_collecting): Handle trampoline as part of jump
16059 pad space.
16060 (set_trampoline_buffer_space): New function.
16061 (initialize_tracepoint): Initialize new IPA variables.
16062 * target.h (struct target_ops): Add arguments to
16063 install_fast_tracepoint_jump_pad operation, add new
16064 get_min_fast_tracepoint_insn_len operation.
16065 (target_get_min_fast_tracepoint_insn_len): New.
16066 (install_fast_tracepoint_jump_pad): Add arguments.
16067 * server.h (IPA_BUFSIZ): Define.
16068 * linux-i386-ipa.c: Include extra header files.
16069 (initialize_fast_tracepoint_trampoline_buffer): New function.
16070 (initialize_low_tracepoint): Call it.
16071 * server.h (set_trampoline_buffer_space): Declare.
16072 (claim_trampoline_space): Ditto.
16073 (have_fast_tracepoint_trampoline_buffer): Ditto.
16074
16075 2011-11-14 Yao Qi <yao@codesourcery.com>
16076
16077 * server.c (handle_query): Handle InstallInTrace for qSupported.
16078 * tracepoint.c (add_tracepoint): Sort list.
16079 (install_tracepoint, download_tracepoint): New.
16080 (cmd_qtdp): Call them to install and download tracepoints.
16081 (sort_tracepoints): Removed.
16082 (cmd_qtstart): Update.
16083
16084 2011-11-14 Yao Qi <yao@codesourcery.com>
16085
16086 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
16087 * mem-break.h: Declare.
16088 * tracepoint.c (cmd_qtstart): Move some code to ...
16089 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
16090 New.
16091 (download_tracepoints): Move some code to ...
16092 (download_tracepoint_1): ... here. New.
16093
16094 2011-11-08 Yao Qi <yao@codesourcery.com>
16095
16096 * remote-utils.c (relocate_instruction): A comment fix.
16097
16098 2011-11-07 Joel Brobecker <brobecker@adacore.com>
16099
16100 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
16101 (i386_dr_low_get_control, i386_dr_low_get_status): Use
16102 dr_status_mirror and dr_control_mirror from debug_reg_state.
16103 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
16104 (i386_initial_stuff): Remove use of deleted globals.
16105 (i386_get_thread_context, i386_set_thread_context,
16106 i386_thread_added): Use dr_status_mirror and dr_control_mirror
16107 from debug_reg_state.
16108
16109 2011-11-05 Yao Qi <yao@codesourcery.com>
16110
16111 * tracepoint.c (gdb_collect): Loop over tracepoints of same
16112 address as TPOINT's.
16113
16114 2011-11-02 Stan Shebs <stan@codesourcery.com>
16115
16116 * tracepoint.c (agent_mem_read_string): New function.
16117 (eval_agent_expr): Call it for tracenz.
16118 * server.c (handle_query): Report support for tracenz.
16119
16120 2011-11-02 Yao Qi <yao@codesourcery.com>
16121
16122 * tracepoint.c (cmd_qtstart): Remove unused local variables.
16123
16124 2011-11-02 Yao Qi <yao@codesourcery.com>
16125
16126 * target.h: Fix a typo in comment.
16127
16128 2011-10-31 Pedro Alves <pedro@codesourcery.com>
16129
16130 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
16131 clobber the breakpoints' shadows with fast tracepoint jumps.
16132 * mem-break.h (check_mem_write): Add `myaddr' parameter.
16133 * target.c (write_inferior_memory): Also pass MYADDR down to
16134 check_mem_write.
16135
16136 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
16137
16138 * configure.ac: Check support for personality routine.
16139 * configure: Regenerate.
16140 * config.in: Likewise.
16141 * linux-low.c: Include <sys/personality.h>.
16142 Define ADDR_NO_RANDOMIZE if necessary.
16143 (linux_create_inferior): Disable address space randomization when
16144 forking inferior, if requested.
16145 (linux_supports_disable_randomization): New function.
16146 (linux_target_ops): Install it.
16147 * server.h (disable_randomization): Declare.
16148 * server.c (disable_randomization): New global variable.
16149 (handle_general_set): Handle QDisableRandomization.
16150 (handle_query): Likewise for qSupported.
16151 (main): Support --disable-randomization and --no-disable-randomization
16152 command line arguments.
16153 * target.h (struct target_ops): Add supports_disable_randomization.
16154 (target_supports_disable_randomization): New macro.
16155
16156 2011-09-29 Mike Frysinger <vapier@gentoo.org>
16157
16158 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
16159 ifdef check.
16160 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
16161 [!PT_GETDSBT] (target_loadmap): New definition.
16162 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
16163 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
16164 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
16165 and PT_GETDSBT to LINUX_LOADMAP.
16166 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
16167 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
16168
16169 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
16170
16171 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
16172 (arm_linux_hwbp_cap): New static variable.
16173 (arm_linux_get_hwbp_cap): Replace by ...
16174 (arm_linux_init_hwbp_cap): ... this new function.
16175 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
16176 (arm_linux_get_hw_watchpoint_count): Likewise.
16177 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16178 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
16179 (arm_prepare_to_resume): Use perror_with_name instead of error.
16180
16181 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
16182
16183 * linux-arm-low.c: Include <signal.h>.
16184 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
16185 (struct arm_linux_hwbp_cap): New data type.
16186 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
16187 (struct arm_linux_hw_breakpoint): New data type.
16188 (MAX_BPTS, MAX_WPTS): Define.
16189 (struct arch_process_info, struct arch_lwp_info): New data types.
16190 (arm_linux_get_hwbp_cap): New function.
16191 (arm_linux_get_hw_breakpoint_count): Likewise.
16192 (arm_linux_get_hw_watchpoint_count): Likewise.
16193 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16194 (arm_hwbp_control_initialize): Likewise.
16195 (arm_hwbp_control_is_enabled): Likewise.
16196 (arm_hwbp_control_is_initialized): Likewise.
16197 (arm_hwbp_control_disable): Likewise.
16198 (arm_linux_hw_breakpoint_equal): Likewise.
16199 (arm_linux_hw_point_initialize): Likewise.
16200 (struct update_registers_data): New data structure.
16201 (update_registers_callback: New function.
16202 (arm_insert_point): Likewise.
16203 (arm_remove_point): Likewise.
16204 (arm_stopped_by_watchpoint): Likewise.
16205 (arm_stopped_data_address): Likewise.
16206 (arm_new_process): Likewise.
16207 (arm_new_thread): Likewise.
16208 (arm_prepare_to_resume): Likewise.
16209 (the_low_target): Register arm_insert_point, arm_remove_point,
16210 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
16211 arm_new_thread, and arm_prepare_to_resume.
16212
16213 2011-09-15 Stan Shebs <stan@codesourcery.com>
16214
16215 * server.h (struct emit_ops): Add compare-goto fields.
16216 * tracepoint.c (gdb_agent_op_sizes): New table.
16217 (emit_eq_goto): New function.
16218 (emit_ne_goto): New function.
16219 (emit_lt_goto): New function.
16220 (emit_le_goto): New function.
16221 (emit_gt_goto): New function.
16222 (emit_ge_goto): New function.
16223 (is_goto_target): New function.
16224 (compile_bytecodes): Recognize special cases of compare-goto
16225 combinations and call specialized emitters for them.
16226 * linux-x86-low.c (amd64_emit_eq_goto): New function.
16227 (amd64_emit_ne_goto): New function.
16228 (amd64_emit_lt_goto): New function.
16229 (amd64_emit_le_goto): New function.
16230 (amd64_emit_gt_goto): New function.
16231 (amd64_emit_ge_goto): New function.
16232 (amd64_emit_ops): Add the new functions.
16233 (i386_emit_eq_goto): New function.
16234 (i386_emit_ne_goto): New function.
16235 (i386_emit_lt_goto): New function.
16236 (i386_emit_le_goto): New function.
16237 (i386_emit_gt_goto): New function.
16238 (i386_emit_ge_goto): New function.
16239 (i386_emit_ops): Add the new functions.
16240
16241 2011-09-08 Stan Shebs <stan@codesourcery.com>
16242
16243 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
16244 (i386_emit_epilogue): Restore %ebx.
16245
16246 2011-08-31 Jie Zhang <jzhang918@gmail.com>
16247
16248 * server.c (step_thread): Remove definition.
16249 (process_serial_event): Don't handle Hs.
16250 * server.h (step_thread): Remove declaration.
16251 * target.c (set_desired_inferior): Remove use of step_thread.
16252
16253 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
16254
16255 * linux-low.c: Include linux-procfs.h.
16256 (linux_attach_lwp_1): Update comments.
16257 (linux_attach): Scan for existing threads when attaching to a
16258 process that is the tgid.
16259 * Makefile.in: Update dependencies.
16260
16261 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
16262
16263 * configure.srv: Add linux-procfs.o dependencies.
16264
16265 2011-08-14 Yao Qi <yao@codesourcery.com>
16266
16267 * target.h (struct target_ops): Fix indent.
16268 * win32-low.c (win32_target_ops): Fix comment.
16269
16270 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
16271 Yao Qi <yao@codesourcery.com>
16272
16273 * Makefile.in (clean): Remove tic6x-*.c files.
16274 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
16275 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
16276 (tic6x-c64xp-linux.c): Likewise.
16277 * configure.srv: Add support for tic6x-*-uclinux.
16278 * linux-tic6x-low.c: New.
16279 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
16280
16281 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
16282 Yao Qi <yao@codesourcery.com>
16283
16284 * target.h (struct target_ops): Add read_loadmap.
16285 * linux-low.c (struct target_loadseg): New type.
16286 (struct target_loadmap): New type.
16287 (linux_read_loadmap): New function.
16288 (linux_target_ops): Add linux_read_loadmap.
16289 * server.c (handle_query): Support qXfer:fdpic:read packet.
16290 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
16291 to NULL.
16292
16293 2011-08-05 Eli Zaretskii <eliz@gnu.org>
16294
16295 * win32-low.c: Include <stdint.h>.
16296
16297 2011-07-22 Pedro Alves <pedro@codesourcery.com>
16298
16299 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
16300 to the inferior here.
16301 (i386_remove_aligned_watchpoint): Ditto.
16302 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
16303 fit part of the watchpoint in the debug registers.
16304 (i386_update_inferior_debug_regs): New.
16305 (i386_low_insert_watchpoint): Work on a local mirror of the debug
16306 registers, and only update the inferior on success.
16307 (i386_low_remove_watchpoint): Ditto.
16308
16309 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
16310
16311 * linux-low.c (compare_ints, unique, list_threads, show_process,
16312 linux_core_of_thread): Delete.
16313 (linux_target_ops): Change linux_core_of_thread to
16314 linux_common_core_of_thread.
16315 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
16316 * utils.c (malloc_failure): Change type of argument.
16317 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
16318 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
16319 common/linux-osdata.c, common/ptid.c and common/buffer.c.
16320 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
16321 (IPA_OBJS): Add common-utils-ipa.o.
16322 (ptid_h, linux_osdata_h): New macros.
16323 (server_h): Add common/common-utils.h, common/xml-utils.h,
16324 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
16325 common/ptid.h.
16326 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
16327 ptid.o, buffer.o): New rules.
16328 (linux-low.o): Add common/linux-osdata.h as a dependency.
16329 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
16330 * configure.ac: Add AC_HEADER_DIRENT check.
16331 * config.in: Regenerate.
16332 * configure: Regenerate.
16333 * remote-utils.c (xml_escape_text): Delete.
16334 (buffer_grow, buffer_free, buffer_init, buffer_finish,
16335 buffer_xml_printf): Move to common/buffer.c.
16336 * server.c (main): Remove call to initialize_inferiors.
16337 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
16338 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
16339 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
16340 internal_error, gdb_assert, gdb_assert_fail): Delete.
16341 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
16342 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
16343 common/buffer.h.
16344 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
16345 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
16346 initialize_inferiors): Delete.
16347
16348 2011-07-20 Pedro Alves <pedro@codesourcery.com>
16349
16350 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
16351 symbol error.
16352
16353 2011-05-31 Pedro Alves <pedro@codesourcery.com>
16354
16355 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
16356 assertion.
16357 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
16358
16359 2011-05-26 Yao Qi <yao@codesourcery.com>
16360
16361 * Makefile.in (thread-db.o): Track dependence to
16362 common/gdb_thread_db.h.
16363 * thread-db.c: include gdb_thread_db.h from right place.
16364
16365 2011-05-16 Adrian Cornish <gnu@bluedreamer.com>
16366
16367 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
16368 __FILE__ and __LINE__ to internal_error.
16369
16370 2011-05-13 Doug Evans <dje@google.com>
16371
16372 * thread-db.c (try_thread_db_load_from_sdir): New function.
16373 (try_thread_db_load_from_dir): New function.
16374 (thread_db_load_search): Handle $sdir, ignore $pdir.
16375 Remove trying of system directories if search of
16376 libthread-db-search-path fails, that is now done via $sdir.
16377
16378 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
16379
16380 * server.c (handle_query): Add EnableDisableTracepoints to the list
16381 of supported features.
16382 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
16383 tracepoints.
16384 (cmd_qtenable_disable): New.
16385 (cmd_qtstart): Install tracepoints even if disabled.
16386 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
16387 receiving a QTEnable or QTDisable packet.
16388 (gdb_collect): Skip data collection if fast tracepoint is disabled.
16389 (ust_marker_to_static_tracepoint): Do not ignore disabled static
16390 tracepoints.
16391 (gdb_probe): Skip data collection if static tracepoint is disabled.
16392
16393 2011-05-10 Doug Evans <dje@google.com>
16394
16395 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
16396
16397 2011-05-04 Doug Evans <dje@google.com>
16398
16399 * linux-low.c (linux_join): Skip process lookup.
16400 * spu-low.c (spu_join): Ditto.
16401 * server.c (join_inferiors_callback): Delete.
16402 (process_serial_event): For 'D' packet (detach) call join_inferior
16403 directly.
16404
16405 2011-05-04 Joseph Myers <joseph@codesourcery.com>
16406
16407 * README: Don't mention xscale*-*-linux*.
16408 * configure.srv (xscale*-*-linux*): Don't handle target.
16409
16410 2011-04-27 Nathan Froyd <froydnj@codesourcery.com>
16411
16412 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
16413 casting pointers.
16414 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
16415 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
16416 (i386_emit_void_call_2): Likewise.
16417
16418 2011-04-26 Yao Qi <yao@codesourcery.com>
16419
16420 * linux-low.c: Move common macros to linux-ptrace.h.
16421 Include linux-ptrace.h.
16422 * Makefile.in (linux_ptrace_h): New.
16423 (linux-low.o): Depends on linux-ptrace.h.
16424
16425 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
16426
16427 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
16428 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
16429 (remote_prepare): New function with most of the TCP code from ...
16430 (remote_open): ... here. Detect PORT here unconditionally. Move also
16431 setting transport_is_reliable.
16432 * server.c (run_once): New variable.
16433 (gdbserver_usage): Document it.
16434 (main): Set run_once for `--once'. Call remote_prepare. Exit after
16435 the first run if RUN_ONCE.
16436 * server.h (run_once, remote_prepare): New declarations.
16437
16438 2011-04-19 Tom Tromey <tromey@redhat.com>
16439
16440 * win32-low.c (handle_load_dll): Remove duplicate "the".
16441
16442 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
16443
16444 Remove support for old Cygwin 1.5 versions.
16445 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
16446 function to avoid warning.
16447 (win32_add_one_solib): Use cygwin_conv_path function to avoid
16448 warning.
16449
16450 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
16451
16452 * gdbserver/server.h (Macro _): Define it if not available.
16453
16454 2011-03-14 Michael Snyder <msnyder@vmware.com>
16455
16456 * hostio.c (handle_close): Remove unnecessary null test.
16457
16458 2011-03-10 Joel Brobecker <brobecker@adacore.com>
16459
16460 * Makefile.in (maintainer-clean realclean distclean): Remove
16461 "make ... subdir_do" command.
16462
16463 2011-03-10 Michael Snyder <msnyder@vmware.com>
16464
16465 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
16466
16467 * server.c (handle_v_run): Free alloced buffer on early return.
16468
16469 2011-03-09 Yao Qi <yao@codesourcery.com>
16470
16471 Revert:
16472 2011-03-04 Yao Qi <yao@codesourcery.com>
16473
16474 * Makefile.in: Remove GNU make feature --directory.
16475
16476 2011-03-05 Yao Qi <yao@codesourcery.com>
16477
16478 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16479 (subdir_do): New make target. Copied from gdb/Makefile.
16480 (maintainer-clean, realclean, distclean, clean): Call corresponding
16481 make targets in common/Makefile.
16482
16483 2011-02-11 Yao Qi <yao@codesourcery.com>
16484
16485 * configure.ac: Call AC_PROG_RANLIB.
16486 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16487 * configure: Regenerate.
16488
16489 2011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
16490
16491 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
16492
16493 2011-03-06 Yao Qi <yao@codesourcery.com>
16494
16495 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
16496
16497 2011-03-05 Yao Qi <yao@codesourcery.com>
16498
16499 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16500 (subdir_do): New make target. Copied from gdb/Makefile.
16501 (maintainer-clean, realclean, distclean, clean): Call corresponding
16502 make targets in common/Makefile.
16503
16504 2011-03-04 Yao Qi <yao@codesourcery.com>
16505
16506 * Makefile.in: Remove GNU make feature --directory.
16507
16508 2011-03-04 Michael Snyder <msnyder@vmware.com>
16509
16510 * server.c (queue_stop_reply): Call xmalloc not malloc.
16511
16512 2011-03-02 Michael Snyder <msnyder@vmware.com>
16513
16514 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
16515
16516 2011-02-28 Michael Snyder <msnyder@vmware.com>
16517
16518 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
16519 (cmd_qtframe): Ditto.
16520 (cmd_qtbuffer): Ditto.
16521 (cmd_bigqtbuffer): Ditto.
16522
16523 * utils.c (decimal2str): Initialize 'width' to nine, then
16524 don't mess with it.
16525
16526 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
16527
16528 * hostio.c (require_data): Free *data, not data.
16529
16530 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
16531
16532 * hostio.c (require_data): Use free, not xfree.
16533
16534 2011-02-27 Michael Snyder <msnyder@vmware.com>
16535
16536 * server.c (handle_query): Discard unused value.
16537
16538 * hostio.c (require_data): Free malloc memory before returning
16539 error.
16540
16541 2011-02-26 Michael Snyder <msnyder@vmware.com>
16542
16543 * linux-low.c (list_threads): Call closedir for dirent.
16544
16545 2011-02-27 Michael Snyder <msnyder@vmware.com>
16546
16547 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
16548 a case statement falls through.
16549
16550 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
16551
16552 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
16553 in comparison.
16554
16555 2011-02-26 Michael Snyder <msnyder@vmware.com>
16556
16557 * utils.c (decimal2str): Eliminate dead code and dead param.
16558 (pulongest): Drop dead param from call to decimal2str.
16559 (plongest): Ditto.
16560
16561 2011-02-24 Joel Brobecker <brobecker@adacore.com>
16562
16563 Revert the following patch (not approved yet):
16564 2011-02-21 Hui Zhu <teawater@gmail.com>
16565 * tracepoint.c (tp_printf): New function.
16566 (eval_agent_expr): Handle gdb_agent_op_printf.
16567
16568 2011-02-21 Hui Zhu <teawater@gmail.com>
16569
16570 * tracepoint.c (tp_printf): New function.
16571 (eval_agent_expr): Handle gdb_agent_op_printf.
16572
16573 2011-02-18 Tom Tromey <tromey@redhat.com>
16574
16575 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
16576 (tracepoint.o): Likewise.
16577 * tracepoint.c (enum gdb_agent_op): Use ax.def.
16578 (gdb_agent_op_names): Likewise.
16579
16580 2011-02-18 Tom Tromey <tromey@redhat.com>
16581
16582 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
16583 gdb_agent_op_rot>: New constants.
16584 (gdb_agent_op_names): Add pick and roll.
16585 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
16586 cases.
16587
16588 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
16589
16590 * aclocal.m4: Regenerated with aclocal-1.11.1.
16591
16592 2011-02-14 Pedro Alves <pedro@codesourcery.com>
16593
16594 * server.c (handle_qxfer_traceframe_info): New.
16595 (qxfer_packets): Register "traceframe-info".
16596 (handle_query): Report support for qXfer:traceframe-info:read+.
16597 * tracepoint.c (match_blocktype): New.
16598 (traceframe_find_block_type): Rename to ...
16599 (traceframe_walk_blocks): ... this. Add callback filter argument,
16600 and use it.
16601 (traceframe_find_block_type): New, reimplemented on top of
16602 traceframe_walk_blocks.
16603 (build_traceframe_info_xml): New.
16604 (traceframe_read_info): New.
16605 * server.h (traceframe_read_info): Declare.
16606
16607 2011-02-11 Yao Qi <yao@codesourcery.com>
16608
16609 * configure.ac: Call AC_PROG_RANLIB.
16610 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16611 * configure: Regenerate.
16612
16613 2011-02-07 Pedro Alves <pedro@codesourcery.com>
16614
16615 * server.c (gdb_read_memory): Change return semantics to allow
16616 partial transfers.
16617 (handle_search_memory_1): Adjust.
16618 (process_serial_event) <'m' packet>: Handle partial transfers.
16619 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
16620
16621 2011-01-28 Pedro Alves <pedro@codesourcery.com>
16622
16623 * regcache.c (init_register_cache): Initialize
16624 regcache->register_status.
16625 (free_register_cache): Release regcache->register_status.
16626 (regcache_cpy): Copy register_status.
16627 (registers_to_string): Print 'x's for unavailable registers.
16628 (supply_register): Mark the register's status valid or
16629 unavailable, depending on whether a buffer was passed in or not.
16630 (supply_register_zeroed): New.
16631 (supply_regblock): Mark the registers' status valid or
16632 unavailable, depending on whether a buffer was passed in or not.
16633 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
16634 (struct regcache): New `register_status' field.
16635 (supply_register_zeroed): Declare.
16636 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
16637 supply_register_zeroed, rather than passing a NULL buffer to
16638 supply_register.
16639 * tracepoint.c (fetch_traceframe_registers): Update comment.
16640
16641 2011-01-28 Pedro Alves <pedro@codesourcery.com>
16642
16643 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
16644 buffer explicit.
16645
16646 2011-01-25 Pedro Alves <pedro@codesourcery.com>
16647
16648 * server.h (decode_xfer_write): Change prototype.
16649 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
16650 and don't extract the annex here.
16651 * server.c (decode_xfer_read): Remove `annex' parameter,
16652 and don't extract the annex here.
16653 (decode_xfer): New.
16654 (struct qxfer): New.
16655 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
16656 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
16657 (handle_qxfer_statictrace): New functions, abstracted out from
16658 handle_query, and made to use the struct qxfer interface.
16659 (handle_threads_qxfer_proper): Rename to ...
16660 (handle_qxfer_threads_proper): ... this.
16661 (handle_threads_qxfer): Rename to ...
16662 (handle_qxfer_threads): ... this. Adjust.
16663 (qxfer_packets): New array.
16664 (handle_qxfer): New function.
16665 (handle_query): Use handle_qxfer.
16666
16667 2011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
16668
16669 * gdbreplay.c: Shorten lines of >= 80 columns.
16670 * linux-low.c: Ditto.
16671 * linux-ppc-low.c: Ditto.
16672 * linux-s390-low.c: Ditto.
16673 * linux-sparc-low.c: Ditto.
16674 * linux-x86-low.c: Ditto.
16675 * linux-xtensa-low.c: Ditto.
16676 * mem-break.c: Ditto.
16677 * nto-low.c: Ditto.
16678 * regcache.h: Ditto.
16679 * remote-utils.c: Ditto.
16680 * server.c: Ditto.
16681 * server.h: Ditto.
16682 * thread-db.c: Ditto.
16683 * tracepoint.c: Ditto.
16684 * utils.c: Ditto.
16685 * win32-low.h: Ditto.
16686
16687 2011-01-05 Joel Brobecker <brobecker@adacore.com>
16688
16689 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
16690 update.
16691
16692 2011-01-01 Joel Brobecker <brobecker@adacore.com>
16693
16694 * server.c (gdbserver_version): Update copyright year in version
16695 output.
16696 * gdbreplay.c (gdbreplay_version): Ditto.
16697
16698 2010-12-29 Jie Zhang <jie.zhang@analog.com>
16699
16700 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
16701 * linux-bfin-low.c: New file.
16702 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
16703 PT_DATA_ADDR for BFIN targets.
16704 * Makefile.in (SFILES): Add linux-bfin-low.c.
16705 (clean): Remove reg-bfin.c.
16706 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
16707 * README: Mention supported Blackfin targets.
16708
16709 2010-12-23 Mike Frysinger <vapier@gentoo.org>
16710
16711 * .gitignore: New file.
16712
16713 2010-11-16 Mike Frysinger <vapier@gentoo.org>
16714
16715 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
16716
16717 2010-10-22 Jie Zhang <jie@codesourcery.com>
16718
16719 * Makefile.in: Add FLAGS_TO_PASS variable.
16720 (install): Remove dependency of install-only and recursively
16721 invoke make for install-only.
16722
16723 2010-10-04 Doug Evans <dje@google.com>
16724
16725 * Makefile.in (uninstall): Use $(DESTDIR).
16726
16727 2010-09-24 Pedro Alves <pedro@codesourcery.com>
16728
16729 PR gdb/11842
16730
16731 * linux-x86-low.c (compat_siginfo_from_siginfo)
16732 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
16733 si_code is < 0. Check for si_code == SI_TIMER before checking for
16734 si_code < 0.
16735
16736 2010-09-13 Joel Brobecker <brobecker@adacore.com>
16737
16738 * lynx-i386-low.c: New file.
16739 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
16740
16741 2010-09-13 Joel Brobecker <brobecker@adacore.com>
16742
16743 * lynx-low.c (ptrace_request_to_str): Remove handling for
16744 request values that have been removed in LynxOS 5.x.
16745
16746 2010-09-13 Joel Brobecker <brobecker@adacore.com>
16747
16748 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
16749 <ptrace.h>
16750
16751 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
16752
16753 * configure.ac: Add --enable-inprocess-agent option.
16754 * configure: Rebuilt.
16755
16756 2010-09-06 Yao Qi <yao@codesourcery.com>
16757
16758 * linux-low.c (linux_kill): Remove unused variable.
16759 (linux_stabilize_threads): Likewise.
16760 * server.c (start_inferior): Likewise.
16761 (queue_stop_reply_callback): Likewise.
16762 * tracepoint.c (do_action_at_tracepoint): Likewise.
16763
16764 2010-09-06 Yao Qi <yao@codesourcery.com>
16765
16766 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
16767 on return.
16768
16769 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
16770
16771 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
16772
16773 2010-09-06 Pedro Alves <pedro@codesourcery.com>
16774
16775 * Makefile.in (install-only): Replace $IPA_DEPFILES with
16776 "$(IPA_DEPFILES)".
16777
16778 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16779
16780 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
16781 gdbserver/lynx-ppc-low.c: New files.
16782 * Makefile.in (lynx_low_h): New variable.
16783 (lynx-low.o, lynx-ppc-low.o): New rules.
16784 * configure.ac: On LynxOS, link with -lnetinet.
16785 * configure.srv: Add handling of powerpc-*-lynxos* targets.
16786 * configure: regenerate.
16787
16788 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16789
16790 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
16791 * configure.ac: Add check for vasprintf and vsnprintf.
16792 * configure, config.in: Regenerate.
16793 * server.h (vasprintf, vsnprintf): Add conditional declarations.
16794
16795 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16796
16797 * gdbreplay.c: Move include of alloca.h up, next to include of
16798 malloc.h.
16799 * server.h: Add include of malloc.h.
16800 * mem-break.c: Remove include of malloc.h.
16801 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
16802
16803 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16804
16805 * Makefile.in (memmem.o): Build with -Wno-error.
16806
16807 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16808
16809 * utils.c (xsnprintf): Make non-static.
16810 * server.h: Add xsnprintf declaration.
16811 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
16812 replace calls to snprintf by calls to xsnprintf throughout.
16813
16814 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16815
16816 * configure.ac: Add configure check for alloca.
16817 * configure, config.in: Regenerate.
16818 * server.h: Include alloca.h if it exists.
16819 * gdbreplay.c: Include alloca.h if it exists.
16820
16821 2010-08-28 Pedro Alves <pedro@codesourcery.com>
16822
16823 * linux-low.c (__SIGRTMIN): Define if not already defined.
16824 (linux_create_inferior): Check for __ANDROID__ rather than
16825 __SIGRTMIN.
16826 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
16827 are already deferred.
16828 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
16829 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
16830 stopped and already has a pending signal to report.
16831 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
16832 a pending signal to report or is moving out of a jump pad.
16833 (linux_init_signals): Check for __ANDROID__ rather than
16834 __SIGRTMIN.
16835
16836 2010-08-28 Pedro Alves <pedro@codesourcery.com>
16837
16838 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
16839 debug_threads check. Avoid a linear search when not doing debug
16840 output.
16841
16842 2010-08-27 Pedro Alves <pedro@codesourcery.com>
16843
16844 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
16845 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
16846 (struct file_handler) <fd>: Change type to gdb_fildes_t.
16847 (process_event): Change local fd's type to gdb_fildes_t.
16848 (create_file_handler): Adjust prototype.
16849 (delete_file_handler): Adjust prototype.
16850 (handle_file_event): Adjust prototype. Use pfildes.
16851 (create_file_event): Adjsut prototype.
16852 * remote-utils.c (remote_desc, listen_desc): Change type to
16853 gdb_fildes_t.
16854 * server.h: New gdb_fildes_t typedef.
16855 [USE_WIN32API]: Include winsock2.h.
16856 (delete_file_handler, add_file_handler): Adjust prototypes.
16857 (pfildes): Declare.
16858 * utils.c (pfildes): New.
16859
16860 2010-08-27 Pedro Alves <pedro@codesourcery.com>
16861
16862 * configure.ac (build_warnings): Add -Wno-char-subscripts.
16863 * configure: Regenerate.
16864
16865 2010-08-27 Pedro Alves <pedro@codesourcery.com>
16866
16867 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
16868 (linux_done_accessing_memory): ... this.
16869 (linux_target_ops): Adjust.
16870 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
16871 * nto-low.c (nto_target_ops): Adjust comment.
16872 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
16873 * spu-low.c (spu_target_ops): Adjust comment.
16874 * target.h (target_ops): Rename unprepare_to_access_memory field
16875 to done_accessing_memory.
16876 (unprepare_to_access_memory): Rename to ...
16877 (done_accessing_memory): ... this.
16878
16879 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16880
16881 * linux-low.c (linux_prepare_to_access_memory): New.
16882 (linux_unprepare_to_access_memory): New.
16883 (linux_target_ops): Install them.
16884 * server.c (read_memory): Rename to ...
16885 (gdb_read_memory): ... this. Use
16886 prepare_to_access_memory/prepare_to_access_memory.
16887 (write_memory): Rename to ...
16888 (gdb_write_memory): ... this. Use
16889 prepare_to_access_memory/prepare_to_access_memory.
16890 (handle_search_memory_1): Adjust.
16891 (process_serial_event): Adjust.
16892 * target.h (struct target_ops): New fields
16893 prepare_to_access_memory and unprepare_to_access_memory.
16894 (prepare_to_access_memory, unprepare_to_access_memory): New.
16895 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
16896 prepare_to_access_memory/prepare_to_access_memory.
16897 * nto-low.c (nto_target_ops): Adjust.
16898 * spu-low.c (spu_target_ops): Adjust.
16899 * win32-low.c (win32_target_ops): Adjust.
16900
16901 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16902
16903 * Makefile.in (WARN_CFLAGS): Get it from configure.
16904 (WERROR_CFLAGS): New.
16905 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
16906 * configure.ac: Introduce --enable-werror, which adds -Werror to
16907 the compiler command line. Enabled by default. Disable with
16908 --disable-werror. Add -Wdeclaration-after-statement
16909 Wpointer-arith and -Wformat-nonliteral to warning flags.
16910 * configure: Regenerate.
16911
16912 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16913
16914 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
16915
16916 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16917
16918 * gdbreplay.c (remote_error): New.
16919 (gdbchar): New.
16920 (expect): Use gdbchar. Check for error reading from GDB.
16921 Clarify sync error output.
16922 (play): Check for errors writing to GDB.
16923 * linux-low.c (sigchld_handler): Really ignore `write' errors.
16924 * remote-utils.c (getpkt): Check for errors writing to the remote
16925 descriptor.
16926
16927 2010-08-25 Pedro Alves <pedro@codesourcery.com>
16928
16929 * linux-low.c (linux_wait_1): Move non-debugging code out of
16930 `debug_threads' control.
16931
16932 2010-08-25 Pedro Alves <pedro@codesourcery.com>
16933
16934 * linux-low.c (linux_wait_1): Don't set last_status here.
16935 * server.c (push_event, queue_stop_reply_callback): Assert we're
16936 not pushing a TARGET_WAITKIND_IGNORE event.
16937 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
16938 (myresume, handle_target_event): Set the thread's last_resume_kind
16939 and last_status from the target returned status.
16940
16941 2010-08-25 Pedro Alves <pedro@codesourcery.com>
16942
16943 PR threads/10729
16944
16945 * linux-x86-low.c (update_debug_registers_callback): New.
16946 (i386_dr_low_set_addr): Use it.
16947 (i386_dr_low_get_addr): New.
16948 (i386_dr_low_set_control): Use update_debug_registers_callback.
16949 (i386_dr_low_get_control): New.
16950 (i386_dr_low_get_status): Adjust.
16951 * linux-low.c (linux_stop_lwp): New.
16952 * linux-low.h (linux_stop_lwp): Declare.
16953
16954 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
16955 argument instead of a i386_debug_reg_state.
16956 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
16957 a i386_debug_reg_state.
16958 (i386_insert_aligned_watchpoint): Adjust.
16959 (i386_remove_aligned_watchpoint): Adjust.
16960 (i386_low_stopped_data_address): Read the debug registers from the
16961 inferior instead of from the mirrors.
16962 * i386-low.h (struct i386_debug_reg_state): Extend comment.
16963 (i386_dr_low_get_addr): Declare.
16964 (i386_dr_low_get_control): Declare.
16965 (i386_dr_low_get_status): Change prototype.
16966
16967 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
16968 (i386_dr_low_get_addr): New.
16969 (i386_dr_low_get_control): New.
16970 (i386_dr_low_get_status): Adjust prototype. Return
16971 dr_status_mirror.
16972 (i386_initial_stuff): Clear dr_status_mirror and
16973 dr_control_mirror.
16974 (i386_get_thread_context): Adjust.
16975 (i386_set_thread_context): Adjust.
16976 (i386_thread_added): Adjust.
16977
16978 2010-08-24 Pedro Alves <pedro@codesourcery.com>
16979
16980 * linux-low.h (linux_thread_area): Delete declaration.
16981
16982 2010-08-11 Thomas Schwinge <thomas@codesourcery.com>
16983
16984 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
16985 after its termination.
16986
16987 2010-08-09 Pedro Alves <pedro@codesourcery.com>
16988
16989 * linux-low.c (gdb_wants_lwp_stopped): Delete.
16990 (gdb_wants_all_stopped): Delete.
16991 (linux_wait_1): Don't call them.
16992 * server.c (handle_v_cont): Tag all threads as want-stopped.
16993 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
16994 stopped as "client-wants-stopped".
16995
16996 2010-07-31 Pedro Alves <pedro@codesourcery.com>
16997
16998 * Makefile.in (signals_h): New.
16999 (server_h): Depend on it.
17000 (server.o): Don't depend on $(signals_def).
17001 (signals.o): Depend on $(signals_def).
17002
17003 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
17004
17005 * Makefile.in (signals_def): New.
17006 (server_h): Append include/gdb/signals.h and signals_def.
17007 (server.o): Append signals_def.
17008
17009 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
17010
17011 * server.c (handle_target_event): Use target_signal_to_host for
17012 resume_info.sig initialization.
17013 * target.h (struct thread_resume) <sig>: New comment.
17014
17015 2010-07-20 Ozkan Sezer <sezeroz@gmail.com>
17016
17017 * server.c (handle_query): strcpy() the returned string from paddress()
17018 instead of sprintf().
17019 * utils.c (paddress): Return phex_nz().
17020
17021 2010-07-07 Joel Brobecker <brobecker@adacore.com>
17022
17023 * server.c (handle_v_cont): Call mourn_inferior if process
17024 just exited.
17025 (myresume): Likewise.
17026
17027 2010-07-01 Pedro Alves <pedro@codesourcery.com>
17028
17029 Static tracepoints, and integration with UST.
17030
17031 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
17032 * mem-break.c (uninsert_all_breakpoints)
17033 (reinsert_all_breakpoints): New.
17034 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
17035 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
17036 (gdb_agent_ust_loaded, helper_thread_id)
17037 (gdb_agent_helper_thread_id): New macros.
17038 (struct ipa_sym_addresses): Add addr_ust_loaded,
17039 addr_helper_thread_id, addr_cmd_buf.
17040 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
17041 (in_process_agent_loaded_ust): New.
17042 (write_e_ust_not_loaded): New.
17043 (maybe_write_ipa_ust_not_loaded): New.
17044 (struct collect_static_trace_data_action): New.
17045 (enum tracepoint_type) <static_tracepoint>: New.
17046 (struct tracepoint) <handle>: Mention static tracepoints.
17047 (struct static_tracepoint_ctx): New.
17048 (CMD_BUF_SIZE): New.
17049 (add_tracepoint_action): Handle static tracepoint actions.
17050 (unprobe_marker_at): New.
17051 (clear_installed_tracepoints): Handle static tracepoints.
17052 (cmd_qtdp): Handle static tracepoints.
17053 (probe_marker_at): New.
17054 (cmd_qtstart): Handle static tracepoints.
17055 (response_tracepoint): Handle static tracepoints.
17056 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
17057 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
17058 (get_context_regcache): Handle static tracepoints.
17059 (do_action_at_tracepoint): Handle static tracepoint actions.
17060 (traceframe_find_block_type): Handle static trace data blocks.
17061 (traceframe_read_sdata): New.
17062 (download_tracepoints): Download static tracepoint actions.
17063 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
17064 (GDB_PROBE_NAME): New.
17065 (ust_ops): New.
17066 (GET_UST_SYM): New.
17067 (USTF): New.
17068 (dlsym_ust): New.
17069 (ust_marker_to_static_tracepoint): New.
17070 (gdb_probe): New.
17071 (collect_ust_data_at_tracepoint): New.
17072 (gdb_ust_probe): New.
17073 (UNIX_PATH_MAX, SOCK_DIR): New.
17074 (gdb_ust_connect_sync_socket): New.
17075 (resume_thread, stop_thread): New.
17076 (run_inferior_command): New.
17077 (init_named_socket): New.
17078 (gdb_ust_socket_init): New.
17079 (cstr_to_hexstr): New.
17080 (next_st): New.
17081 (first_marker, next_marker): New.
17082 (response_ust_marker): New.
17083 (cmd_qtfstm, cmd_qtsstm): New.
17084 (unprobe_marker_at, probe_marker_at): New.
17085 (cmd_qtstmat, gdb_ust_thread): New.
17086 (gdb_ust_init): New.
17087 (initialize_tracepoint_ftlib): Call gdb_ust_init.
17088 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
17089 (ST_REGENTRY): New.
17090 (x86_64_st_collect_regmap): New.
17091 (X86_64_NUM_ST_COLLECT_GREGS): New.
17092 (AMD64_RIP_REGNUM): New.
17093 (supply_static_tracepoint_registers): New.
17094 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
17095 (ST_REGENTRY): New.
17096 (i386_st_collect_regmap): New.
17097 (i386_NUM_ST_COLLECT_GREGS): New.
17098 (supply_static_tracepoint_registers): New.
17099 * server.c (handle_query): Handle qXfer:statictrace:read.
17100 <qSupported>: Report support for StaticTracepoints, and
17101 qXfer:statictrace:read features.
17102 * server.h (traceframe_read_sdata)
17103 (supply_static_tracepoint_registers): Declare.
17104 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
17105 (unpack_varlen_hex): Include in IPA build.
17106 * Makefile.in (ustlibs, ustinc): New.
17107 (IPA_OBJS): Add remote-utils-ipa.o.
17108 ($(IPA_LIB)): Link -ldl and -lpthread.
17109 (UST_CFLAGS): New.
17110 (IPAGENT_CFLAGS): Add UST_CFLAGS.
17111 * config.in, configure: Regenerate.
17112
17113 2010-06-20 Ian Lance Taylor <iant@google.com>
17114 Pedro Alves <pedro@codesourcery.com>
17115
17116 * linux-x86-low.c (always_true): Delete.
17117 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
17118 trying to fool the compiler with always_true.
17119
17120 2010-06-20 Pedro Alves <pedro@codesourcery.com>
17121
17122 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
17123 conditions in gdbserver.
17124
17125 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
17126
17127 * spu-low.c (spu_read_memory): Wrap around local store limit.
17128 (spu_write_memory): Likewise.
17129
17130 2010-06-15 Pedro Alves <pedro@codesourcery.com>
17131
17132 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
17133 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
17134 LONGEST uses.
17135 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
17136 uses.
17137 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
17138 uses with LONGEST uses.
17139
17140 2010-06-14 Stan Shebs <stan@codesourcery.com>
17141 Pedro Alves <pedro@codesourcery.com>
17142
17143 Bytecode compiler.
17144
17145 * linux-x86-low.c: Include limits.h.
17146 (add_insns): New.
17147 (always_true): New.
17148 (EMIT_ASM): New.
17149 (EMIT_ASM32): New.
17150 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
17151 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
17152 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
17153 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
17154 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
17155 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
17156 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
17157 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
17158 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
17159 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
17160 (amd64_emit_void_call_2): New.
17161 (amd64_emit_ops): New.
17162 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
17163 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
17164 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
17165 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
17166 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
17167 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
17168 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
17169 (i386_emit_call, i386_emit_reg, i386_emit_pop)
17170 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
17171 (i386_emit_stack_adjust, i386_emit_int_call_1)
17172 (i386_emit_void_call_2): New.
17173 (i386_emit_ops): New.
17174 (x86_emit_ops): New.
17175 (the_low_target): Install x86_emit_ops.
17176 * server.h (struct emit_ops): New.
17177 (get_raw_reg_func_addr): Declare.
17178 (current_insn_ptr, emit_error): Declare.
17179 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
17180 (set_trace_state_variable_value): New defines.
17181 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
17182 addr_get_trace_state_variable_value and
17183 addr_set_trace_state_variable_value.
17184 (symbol_list): New fields for get_raw_reg,
17185 get_trace_state_variable_value and set_trace_state_variable_value.
17186 (condfn): New typedef.
17187 (struct tracepoint): New field `compiled_cond'.
17188 (do_action_at_tracepoint): Clear compiled_cond.
17189 (get_trace_state_variable_value, set_trace_state_variable_value):
17190 Export in the IPA.
17191 (condition_true_at_tracepoint): If there's a compiled condition,
17192 run that.
17193 (current_insn_ptr, emit_error): New globals.
17194 (struct bytecode_address): New.
17195 (get_raw_reg_func_addr): New.
17196 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
17197 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
17198 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
17199 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
17200 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
17201 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
17202 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
17203 (compile_tracepoint_condition, compile_bytecodes): New.
17204 * target.h (emit_ops): Forward declare.
17205 (struct target_ops): New field emit_ops.
17206 (target_emit_ops): New.
17207 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
17208 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
17209 * linux-low.c (linux_emit_ops): New.
17210 (linux_target_ops): Install it.
17211 * linux-low.h (struct linux_target_ops): New field emit_ops.
17212
17213 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
17214
17215 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
17216 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
17217
17218 2010-06-01 Pedro Alves <pedro@codesourcery.com>
17219 Stan Shebs <stan@codesourcery.com>
17220
17221 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
17222 (all): Depend on $(extra_libraries).
17223 (install-only): Install the IPA.
17224 (IPA_OBJS, IPA_LIB): New.
17225 (clean): Remove the IPA lib.
17226 (IPAGENT_CFLAGS): New.
17227 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
17228 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
17229 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
17230 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
17231 * configure.ac: Check for atomic builtins support in the compiler.
17232 (IPA_DEPFILES, extra_libraries): Define.
17233 * configure.srv (ipa_obj): Add description.
17234 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
17235 (i[34567]86-*-linux*): Set ipa_obj.
17236 (x86_64-*-linux*): Set ipa_obj.
17237 * linux-low.c (stabilizing_threads): New.
17238 (supports_fast_tracepoints): New.
17239 (linux_detach): Stabilize threads before detaching.
17240 (handle_tracepoints): Handle internal tracing breakpoints. Assert
17241 the lwp is either not stabilizing, or is moving out of a jump pad.
17242 (linux_fast_tracepoint_collecting): New.
17243 (maybe_move_out_of_jump_pad): New.
17244 (enqueue_one_deferred_signal): New.
17245 (dequeue_one_deferred_signal): New.
17246 (linux_wait_for_event_1): If moving out of a jump pad, defer
17247 pending signals to later.
17248 (linux_stabilize_threads): New.
17249 (linux_wait_1): Check if threads need moving out of jump pads, and
17250 do it if so.
17251 (stuck_in_jump_pad_callback): New.
17252 (move_out_of_jump_pad_callback): New.
17253 (lwp_running): New.
17254 (linux_resume_one_lwp): Handle moving out of jump pads.
17255 (linux_set_resume_request): Dequeue deferred signals.
17256 (need_step_over_p): Also step over fast tracepoint jumps.
17257 (start_step_over): Also uninsert fast tracepoint jumps.
17258 (finish_step_over): Also reinsert fast tracepoint jumps.
17259 (linux_install_fast_tracepoint_jump): New.
17260 (linux_target_ops): Install linux_stabilize_threads and
17261 linux_install_fast_tracepoint_jump_pad.
17262 * linux-low.h (linux_target_ops) <get_thread_area,
17263 install_fast_tracepoint_jump_pad>: New fields.
17264 (struct lwp_info) <collecting_fast_tracepoint,
17265 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
17266 (linux_get_thread_area): Declare.
17267 * linux-x86-low.c (jump_insn): New.
17268 (x86_get_thread_area): New.
17269 (append_insns): New.
17270 (push_opcode): New.
17271 (amd64_install_fast_tracepoint_jump_pad): New.
17272 (i386_install_fast_tracepoint_jump_pad): New.
17273 (x86_install_fast_tracepoint_jump_pad): New.
17274 (the_low_target): Install x86_get_thread_area and
17275 x86_install_fast_tracepoint_jump_pad.
17276 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
17277 (struct fast_tracepoint_jump): New.
17278 (fast_tracepoint_jump_insn): New.
17279 (fast_tracepoint_jump_shadow): New.
17280 (find_fast_tracepoint_jump_at): New.
17281 (fast_tracepoint_jump_here): New.
17282 (delete_fast_tracepoint_jump): New.
17283 (set_fast_tracepoint_jump): New.
17284 (uninsert_fast_tracepoint_jumps_at): New.
17285 (reinsert_fast_tracepoint_jumps_at): New.
17286 (set_breakpoint_at): Use write_inferior_memory.
17287 (uninsert_raw_breakpoint): Use write_inferior_memory.
17288 (check_mem_read): Mask out fast tracepoint jumps.
17289 (check_mem_write): Mask out fast tracepoint jumps.
17290 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
17291 (set_fast_tracepoint_jump): Declare.
17292 (delete_fast_tracepoint_jump)
17293 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
17294 (reinsert_fast_tracepoint_jumps_at): Declare.
17295 * regcache.c: Don't compile many functions when building the
17296 in-process agent library.
17297 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
17298 the register buffer in the heap.
17299 (free_register_cache): If the register buffer isn't owned by the
17300 regcache, don't free it.
17301 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
17302 pre-existing register caches.
17303 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
17304 type.
17305 (convert_ascii_to_int): : Constify `from' parameter type.
17306 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
17307 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
17308 the needed buffer in-place.
17309 (relocate_instruction): New.
17310 * server.c (handle_query) <qSymbols>: If the target supports
17311 tracepoints, give it a chance of looking up symbols. Report
17312 support for fast tracepoints.
17313 (handle_status): Stabilize threads.
17314 (process_serial_event): Adjust.
17315 * server.h (struct fast_tracepoint_jump): Forward declare.
17316 (struct process_info) <fast_tracepoint_jumps>: New field.
17317 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
17318 (decode_X_packet, decode_M_packet): Adjust.
17319 (relocate_instruction): Declare.
17320 (in_process_agent_loaded): Declare.
17321 (tracepoint_look_up_symbols): Declare.
17322 (struct fast_tpoint_collect_status): Declare.
17323 (fast_tracepoint_collecting): Declare.
17324 (force_unlock_trace_buffer): Declare.
17325 (handle_tracepoint_bkpts): Declare.
17326 (initialize_low_tracepoint)
17327 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
17328 * target.h (struct target_ops) <stabilize_threads,
17329 install_fast_tracepoint_jump_pad>: New fields.
17330 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
17331 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
17332 [HAVE_STDINT_H]: Include stdint.h.
17333 (trace_debug_1): Rename to ...
17334 (trace_vdebug): ... this.
17335 (trace_debug): Rename to ...
17336 (trace_debug_1): ... this. Add `level' parameter.
17337 (trace_debug): New.
17338 (ATTR_USED, ATTR_NOINLINE): New.
17339 (IP_AGENT_EXPORT): New.
17340 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
17341 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
17342 (about_to_request_buffer_space, trace_buffer_is_full)
17343 (stopping_tracepoint, expr_eval_result, error_tracepoint)
17344 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
17345 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
17346 (traceframe_write_count, traceframes_created)
17347 (trace_state_variables)
17348 New renaming defines.
17349 (struct ipa_sym_addresses): New.
17350 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
17351 (symbol_list): New.
17352 (ipa_sym_addrs): New.
17353 (all_tracepoint_symbols_looked_up): New.
17354 (in_process_agent_loaded): New.
17355 (write_e_ipa_not_loaded): New.
17356 (maybe_write_ipa_not_loaded): New.
17357 (tracepoint_look_up_symbols): New.
17358 (debug_threads) [IN_PROCESS_AGENT]: New.
17359 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
17360 (UNKNOWN_SIDE_EFFECTS): New.
17361 (stop_tracing): New.
17362 (flush_trace_buffer): New.
17363 (stop_tracing_bkpt): New.
17364 (flush_trace_buffer_bkpt): New.
17365 (read_inferior_integer): New.
17366 (read_inferior_uinteger): New.
17367 (read_inferior_data_pointer): New.
17368 (write_inferior_data_pointer): New.
17369 (write_inferior_integer): New.
17370 (write_inferior_uinteger): New.
17371 (struct collect_static_trace_data_action): Delete.
17372 (enum tracepoint_type): New.
17373 (struct tracepoint) <type>: New field `type'.
17374 <actions_str, step_actions, step_actions_str>: Only include in
17375 GDBserver.
17376 <orig_size, obj_addr_on_target, adjusted_insn_addr>
17377 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
17378 (tracepoints): Use IP_AGENT_EXPORT.
17379 (last_tracepoint): Don't include in the IPA.
17380 (stopping_tracepoint): Use IP_AGENT_EXPORT.
17381 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
17382 (alloced_trace_state_variables): New.
17383 (trace_state_variables): Use IP_AGENT_EXPORT.
17384 (traceframe_t): Delete unused variable.
17385 (circular_trace_buffer): Don't include in the IPA.
17386 (trace_buffer_start): Delete.
17387 (struct trace_buffer_control): New.
17388 (trace_buffer_free): Delete.
17389 (struct ipa_trace_buffer_control): New.
17390 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
17391 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
17392 New.
17393 (trace_buffer_ctrl): New.
17394 (TRACE_BUFFER_CTRL_CURR): New.
17395 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
17396 Reimplement as macros.
17397 (trace_buffer_wrap): Delete.
17398 (traceframe_write_count, traceframe_read_count)
17399 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
17400 (struct tracepoint_hit_ctx) <type>: New field.
17401 (struct fast_tracepoint_ctx): New.
17402 (memory_barrier): New.
17403 (cmpxchg): New.
17404 (record_tracepoint_error): Update atomically in the IPA.
17405 (clear_inferior_trace_buffer): New.
17406 (about_to_request_buffer_space): New.
17407 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
17408 updating the same buffer.
17409 (add_tracepoint): Default the tracepoint's type to trap
17410 tracepoint, and orig_size to -1.
17411 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
17412 internal variables.
17413 (create_trace_state_variable): New parameter `gdb'. Handle it.
17414 (clear_installed_tracepoints): Clear fast tracepoint jumps.
17415 (cmd_qtdp): Handle fast tracepoints.
17416 (cmd_qtdv): Adjust.
17417 (max_jump_pad_size): New.
17418 (gdb_jump_pad_head): New.
17419 (get_jump_space_head): New.
17420 (claim_jump_space): New.
17421 (sort_tracepoints): New.
17422 (MAX_JUMP_SIZE): New.
17423 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
17424 IPA.
17425 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
17426 support. Upload fast traceframes, and delete internal IPA
17427 breakpoints.
17428 (stop_tracing_handler): New.
17429 (flush_trace_buffer_handler): New.
17430 (cmd_qtstop): Upload fast tracepoints.
17431 (response_tracepoint): Handle fast tracepoints.
17432 (tracepoint_finished_step): Upload fast traceframes. Set the
17433 tracepoint hit context's tracepoint type.
17434 (handle_tracepoint_bkpts): New.
17435 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
17436 type. Add comment about fast tracepoints.
17437 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
17438 non-existing action_str field.
17439 (get_context_regcache): Handle fast tracepoints.
17440 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
17441 to the regcache.
17442 (fast_tracepoint_from_jump_pad_address): New.
17443 (fast_tracepoint_from_ipa_tpoint_address): New.
17444 (collecting_t): New.
17445 (force_unlock_trace_buffer): New.
17446 (fast_tracepoint_collecting): New.
17447 (collecting): New.
17448 (gdb_collect): New.
17449 (write_inferior_data_ptr): New.
17450 (target_tp_heap): New.
17451 (target_malloc): New.
17452 (download_agent_expr): New.
17453 (UALIGN): New.
17454 (download_tracepoints): New.
17455 (download_trace_state_variables): New.
17456 (upload_fast_traceframes): New.
17457 (IPA_FIRST_TRACEFRAME): New.
17458 (IPA_NEXT_TRACEFRAME_1): New.
17459 (IPA_NEXT_TRACEFRAME): New.
17460 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
17461 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
17462 (gdb_jump_pad_buffer_end): New.
17463 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
17464 (initialize_tracepoint): Adjust.
17465 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
17466 buffer. Initialize the low module.
17467 * utils.c (PREFIX, TOOLNAME): New.
17468 (malloc_failure): Use PREFIX.
17469 (error): In the IPA, an error causes an exit.
17470 (fatal, warning): Use PREFIX.
17471 (internal_error): Use TOOLNAME.
17472 (NUMCELLS): Increase to 10.
17473 * configure, config.in: Regenerate.
17474
17475 2010-06-01 Pedro Alves <pedro@codesourcery.com>
17476
17477 * server.c (handle_query) <qSupported>: Do two passes over the
17478 qSupported string to avoid nesting strtok.
17479
17480 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17481
17482 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
17483 (CDEPS): New.
17484 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
17485 -Wl,--dynamic-list.
17486 * configure: Regenerate.
17487 * proc-service.list: New.
17488
17489 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17490
17491 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
17492 New comment.
17493
17494 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
17495
17496 * gdbreplay.c (remote_open): Check error return from socket() call by
17497 its equality to -1 not by it being negative.
17498 * remote-utils.c (remote_open): Likewise.
17499
17500 2010-05-23 Pedro Alves <pedro@codesourcery.com>
17501
17502 * config.h: Regenerate.
17503
17504 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17505
17506 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
17507 doesn't provide PTRACE_GET_THREAD_AREA.
17508
17509 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17510
17511 * linux-m68k-low.c: Include <asm/ptrace.h>
17512 (ps_get_thread_area): Implement.
17513
17514 2010-05-03 Doug Evans <dje@google.com>
17515
17516 * event-loop.c (struct callback_event): New struct.
17517 (callback_list): New global.
17518 (append_callback_event, delete_callback_event): New functions.
17519 (process_callback): New function.
17520 (start_event_loop): Call it.
17521 * remote-utils.c (NOT_SCHEDULED): Define.
17522 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
17523 moved out of readchar.
17524 (readchar): Rewrite. Call reschedule before returning.
17525 (reset_readchar): New function.
17526 (remote_close): Call it.
17527 (process_remaining, reschedule): New functions.
17528 * server.h (callback_handler_func): New typedef.
17529 (append_callback_event, delete_callback_event): Declare.
17530
17531 2010-05-03 Pedro Alves <pedro@codesourcery.com>
17532
17533 * proc-service.c (ps_pglobal_lookup): Use
17534 thread_db_look_up_one_symbol.
17535 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
17536 parameter. Use it instead of all_symbols_looked_up.
17537 * server.h (struct process_info) <all_symbols_looked_up>: Delete
17538 field.
17539 (all_symbols_looked_up): Don't declare.
17540 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
17541 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
17542 field.
17543 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
17544 Set all_symbols_looked_up here.
17545 (thread_db_look_up_one_symbol): New.
17546 (thread_db_get_tls_address): Adjust.
17547 (thread_db_load_search, try_thread_db_load_1): Always allocate the
17548 thread_db object on the heap, and tentatively set it in the
17549 process structure.
17550 (thread_db_init): Don't set all_symbols_looked_up here.
17551 * linux-low.h (thread_db_look_up_one_symbol): Declare.
17552
17553 2010-05-03 Pedro Alves <pedro@codesourcery.com>
17554
17555 * linux-low.c (linux_kill, linux_detach): Adjust.
17556 (status_pending_p_callback): Remove redundant statement. Check
17557 for !TARGET_WAITIKIND_IGNORE, instead of
17558 TARGET_WAITKIND_STOPPED.
17559 (handle_tracepoints): Make sure LWP is locked. Adjust.
17560 (linux_wait_for_event_1): Adjust.
17561 (linux_cancel_breakpoints): New.
17562 (unsuspend_one_lwp): New.
17563 (unsuspend_all_lwps): New.
17564 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
17565 (send_sigstop_callback): Change return type to int, add new
17566 `except' parameter and handle it.
17567 (suspend_and_send_sigstop_callback): New.
17568 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
17569 pass them down. If SUSPEND, also increment the lwp's suspend
17570 count.
17571 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
17572 (need_step_over_p): Don't consider suspended LWPs.
17573 (start_step_over): Adjust.
17574 (proceed_one_lwp): Change return type to int, add new `except'
17575 parameter and handle it.
17576 (unsuspend_and_proceed_one_lwp): New.
17577 (proceed_all_lwps): Use find_inferior instead of
17578 for_each_inferior.
17579 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
17580 also decrement the suspend count of LWPs. Pass `except' down,
17581 instead of hacking its suspend count.
17582 (linux_pause_all): Add `freeze' parameter. Adjust.
17583 (linux_unpause_all): New.
17584 (linux_target_ops): Install linux_unpause_all.
17585 * server.c (handle_status): Adjust.
17586 * target.h (struct target_ops): New fields `unpause_all' and
17587 `cancel_breakpoints'. Add new parameter to `pause_all'.
17588 (pause_all): Add new `freeze' parameter.
17589 (unpause_all): New.
17590 (cancel_breakpoints): New.
17591 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
17592 cancel breakpoints.
17593 (cmd_qtstart): Pause threads.
17594 (stop_tracing): Pause threads, and cancel breakpoints.
17595 * win32-low.c (win32_target_ops): Adjust.
17596
17597 2010-05-03 Pedro Alves <pedro@codesourcery.com>
17598
17599 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
17600 the inferior right away from here...
17601 (linux_wait_1): ... to here, and adjust to check the thread's
17602 last_resume_kind instead of the lwp's step or stop_expected flags.
17603
17604 2010-05-02 Pedro Alves <pedro@codesourcery.com>
17605
17606 * README: Use consistent `GDB' and `GDBserver' spellings.
17607
17608 2010-05-02 Pedro Alves <pedro@codesourcery.com>
17609
17610 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
17611 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
17612 (linux_detach_one_lwp): Assume the lwp is stopped.
17613 (any_thread_of): Delete.
17614 (linux_detach): Stop all lwps here. Don't blindly delete all
17615 breakpoints.
17616 (delete_lwp_callback): New.
17617 (linux_mourn): Delete all lwps of the process that is gone.
17618 (linux_wait_1): Don't delete the last lwp of the process here.
17619 * mem-break.h (mark_breakpoints_out): Declare.
17620 * mem-break.c (mark_breakpoints_out): New.
17621 (free_all_breakpoints): Use it.
17622 * server.c (handle_target_event): If the process is gone, mark
17623 breakpoints out.
17624 * thread-db.c (struct thread_db) <create_bp>: New field.
17625 (thread_db_enable_reporting): Fix prototype. Store a thread event
17626 breakpoint reference in the thread_db struct.
17627 (thread_db_load_search): Clear the thread_db object.
17628 (try_thread_db_load_1): Ditto.
17629 (switch_to_process): New.
17630 (disable_thread_event_reporting): Use it.
17631 (remove_thread_event_breakpoints): New.
17632 (thread_db_detach, thread_db_mourn): Use it.
17633
17634 2010-05-01 Pedro Alves <pedro@codesourcery.com>
17635
17636 * linux-low.c (linux_enable_event_reporting): New.
17637 (linux_wait_for_event_1, handle_extended_wait): Use it.
17638
17639 2010-04-30 Pedro Alves <pedro@codesourcery.com>
17640
17641 * linux-low.c (linux_kill_one_lwp, linux_kill)
17642 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
17643 (send_sigstop): Take an lwp_info as parameter instead. Queue a
17644 SIGSTOP even if the LWP is stopped.
17645 (send_sigstop_callback): New.
17646 (stop_all_lwps): Use send_sigstop_callback instead.
17647 (linux_resume_one_thread): Adjust.
17648 (proceed_one_lwp): Still proceed an LWP that the client has
17649 requested to stop, if we haven't reported it as stopped yet. Make
17650 sure that LWPs the client want stopped, have a pending SIGSTOP.
17651
17652 2010-04-26 Doug Evans <dje@google.com>
17653
17654 * server.c (handle_general_set): Make static.
17655
17656 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
17657 Print received char after testing for error/eof instead of before.
17658 (input_interrupt): Tweak comment.
17659
17660 2010-04-23 Doug Evans <dje@google.com>
17661
17662 * server.c (start_inferior): Print inferior argv if --debug.
17663
17664 2010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
17665
17666 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
17667 * nto-x86-low.c: Include server.h
17668
17669 2010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
17670
17671 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
17672 be consistent with other sources of this directory.
17673 (init_registers_amd64): Correct name of source file of this function
17674 in the comment.
17675
17676 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17677
17678 * configure.srv (x86_64-*-mingw*): New configuration for Windows
17679 64-bit executables.
17680
17681 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17682
17683 * win32-i386-low.c: Add 64-bit support.
17684 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
17685 (init_registers_amd64): Declare.
17686 (mappings): Add 64-bit version of array.
17687 (init_windows_x86): New function.
17688 (the_low_target): Change init_arch field to init_windows_x86.
17689
17690 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17691
17692 * win32-low.c: Adapt to support also 64-bit architecture.
17693 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
17694 (get_image_name): Use SIZE_T type for local variable `done'.
17695 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
17696 (toolhelp_get_dll_name): Idem.
17697 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
17698 Use uintptr_t typecast to avoid warning.
17699 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
17700 (handle_exception): Use phex_nz to avoid warning.
17701 (win32_wait): Remove unused local variable `process'.
17702
17703 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17704
17705 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
17706 `amd64-avx.o'.
17707
17708 2010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
17709
17710 * configure.ac: Use `ws2_32' library for srv_mingw.
17711 * configure: Regenerate.
17712 * gdbreplay.c: Include winsock2.h instead of winsock.h.
17713 * remote-utils.c: Likewise.
17714
17715 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
17716
17717 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
17718 if __x86_64__ is defined.
17719
17720 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17721
17722 * configure: Regenerate.
17723
17724 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17725
17726 * server.c (handle_query): Handle 'qGetTIBAddr' query.
17727 * target.h (target_ops): New get_tib_address field.
17728 * win32-low.h (win32_thread_info): Add thread_local_base field.
17729 * win32-low.c (child_add_thread): Add tlb argument.
17730 Set thread_local_base field to TLB.
17731 (get_child_debug_event): Adapt to child_add_thread change.
17732 (win32_get_tib_address): New function.
17733 (win32_target_ops): Set get_tib_address field to
17734 win32_get_tib_address.
17735 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
17736
17737 2010-04-12 Pedro Alves <pedro@codesourcery.com>
17738
17739 * linux-low.c (linux_mourn): Also remove the process.
17740 * server.c (handle_target_event): Don't remove the process here.
17741 * nto-low.c (nto_mourn): New.
17742 (nto_target_ops): Install it.
17743 * spu-low.c (spu_mourn): New.
17744 (spu_target_ops): Install it.
17745 * win32-low.c (win32_mourn): New.
17746 (win32_target_ops): Install it.
17747
17748 2010-04-12 Pedro Alves <pedro@codesourcery.com>
17749
17750 * server.h (buffer_xml_printf): Remove redundant `;'.
17751
17752 2010-04-12 Pedro Alves <pedro@codesourcery.com>
17753
17754 * regcache.c (set_register_cache): Invalidate regcaches before
17755 changing the register cache layout.
17756 (regcache_invalidate_one): Allow a NULL regcache.
17757 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
17758 regcaches before changing the register cache layout or the target
17759 regsets.
17760
17761 2010-04-12 H.J. Lu <hongjiu.lu@intel.com>
17762
17763 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
17764 variable warning on Linux/x86-64.
17765
17766 2010-04-11 Pedro Alves <pedro@codesourcery.com>
17767
17768 GDBserver disconnected tracing support.
17769
17770 * linux-low.c (linux_remove_process): Delete.
17771 (add_lwp): Don't set last_resume_kind here.
17772 (linux_kill): Use `mourn'.
17773 (linux_detach): Use `thread_db_detach', and `mourn'.
17774 (linux_mourn): New.
17775 (linux_attach_lwp_1): Adjust comment.
17776 (linux_attach): last_resume_kind moved the thread_info; adjust.
17777 (status_pending_p_callback): Adjust.
17778 (linux_wait_for_event_1): Adjust.
17779 (count_events_callback, select_singlestep_lwp_callback)
17780 (select_event_lwp_callback, cancel_breakpoints_callback)
17781 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
17782 (proceed_one_lwp): Adjust.
17783 (linux_async): Add debug output.
17784 (linux_thread_stopped): New.
17785 (linux_pause_all): New.
17786 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
17787 linux_pause_all.
17788 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
17789 (thread_db_free): Delete declaration.
17790 (thread_db_detach, thread_db_mourn): Declare.
17791 * thread-db.c (thread_db_init): Use thread_db_mourn.
17792 (thread_db_free): Delete, split in two.
17793 (disable_thread_event_reporting): New.
17794 (thread_db_detach): New.
17795 (thread_db_mourn): New.
17796
17797 * server.h (struct thread_info) <last_resume_kind>: New field.
17798 <attached>: Add comment.
17799 <gdb_detached>: New field.
17800 (handler_func): Change return type to int.
17801 (handle_serial_event, handle_target_event): Ditto.
17802 (gdb_connected): Declare.
17803 (tracing): Delete.
17804 (disconnected_tracing): Declare.
17805 (stop_tracing): Declare.
17806
17807 * server.c (handle_query) <qSupported>: Report support for
17808 disconnected tracing.
17809 (queue_stop_reply_callback): Account for running threads.
17810 (gdb_wants_thread_stopped): New.
17811 (gdb_wants_all_threads_stopped): New.
17812 (gdb_reattached_process): New.
17813 (handle_status): Clear the `gdb_detached' flag of all processes.
17814 In all-stop, stop all threads.
17815 (main): Be sure to leave tfind mode. Handle disconnected tracing.
17816 (process_serial_event): If the remote connection breaks, or if an
17817 exit was forced with "monitor exit", force an event loop exit.
17818 Handle disconnected tracing on detach.
17819 (handle_serial_event): Adjust.
17820 (handle_target_event): If GDB isn't connected, forward events back
17821 to the inferior, unless the last process exited, in which case,
17822 exit gdbserver. Adjust interface.
17823
17824 * remote-utils.c (remote_open): Don't block in accept. Instead
17825 register an event loop source on the listen socket file
17826 descriptor. Refactor bits into ...
17827 (listen_desc): ... this new global.
17828 (gdb_connected): ... this new function.
17829 (enable_async_notification): ... this new function.
17830 (handle_accept_event): ... this new function.
17831 (remote_close): Clear remote_desc.
17832
17833 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
17834
17835 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
17836 New fields.
17837 (mourn_inferior): Define.
17838 (target_process_qsupported): Avoid the dangling else problem.
17839 (thread_stopped): Define.
17840 (pause_all): Define.
17841 (target_waitstatus_to_string): Declare.
17842 * target.c (target_waitstatus_to_string): New.
17843
17844 * tracepoint.c (tracing): Make extern.
17845 (disconnected_tracing): New.
17846 (stop_tracing): Make extern. Handle tracing stops due to GDB
17847 disconnecting.
17848 (cmd_qtdisconnected): New.
17849 (cmd_qtstatus): Report disconnected tracing status in trace reply.
17850 (handle_tracepoint_general_set): Handle QTDisconnected.
17851
17852 * event-loop.c (event_handler_func): Change return type to int.
17853 (process_event): Bail out if the event handler wants the event
17854 loop to stop.
17855 (handle_file_event): Ditto.
17856 (start_event_loop): Bail out if the event handler wants the event
17857 loop to stop.
17858
17859 * nto-low.c (nto_target_ops): Adjust.
17860 * spu-low.c (spu_wait): Don't remove the process here.
17861 (spu_target_ops): Adjust.
17862 * win32-low.c (win32_wait): Don't remove the process here.
17863 (win32_target_ops): Adjust.
17864
17865 2010-04-11 Pedro Alves <pedro@codesourcery.com>
17866
17867 * regcache.c (realloc_register_cache): Invalidate inferior's
17868 regcache before recreating it.
17869
17870 2010-04-09 Pedro Alves <pedro@codesourcery.com>
17871
17872 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
17873
17874 2010-04-09 Stan Shebs <stan@codesourcery.com>
17875 Pedro Alves <pedro@codesourcery.com>
17876
17877 * server.h (LONGEST): New.
17878 (struct thread_info) <while_stepping>: New field.
17879 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
17880 Declare.
17881 (initialize_tracepoint, handle_tracepoint_general_set)
17882 (handle_tracepoint_query, tracepoint_finished_step)
17883 (tracepoint_was_hit, release_while_stepping_state_list):
17884 (current_traceframe): Declare.
17885 * server.c (handle_general_set): Handle tracepoint packets.
17886 (read_memory): New.
17887 (write_memory): New.
17888 (handle_search_memory_1): Use read_memory.
17889 (handle_query): Report support for conditional tracepoints, trace
17890 state variables, and tracepoint sources. Handle tracepoint
17891 queries.
17892 (main): Initialize the tracepoints module.
17893 (process_serial_event): Handle traceframe reads/writes.
17894
17895 * linux-low.c (handle_tracepoints): New.
17896 (linux_wait_1): Call it.
17897 (linux_resume_one_lwp): Handle while-stepping.
17898 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
17899 (linux_target_ops): Install them.
17900 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
17901 New field.
17902 * linux-x86-low.c (x86_supports_tracepoints): New.
17903 (the_low_target). Install it.
17904
17905 * mem-break.h (delete_breakpoint): Declare.
17906 * mem-break.c (delete_breakpoint): Make external.
17907
17908 * target.h (struct target_ops): Add `supports_tracepoints',
17909 `read_pc', and `write_pc' fields.
17910 (target_supports_tracepoints): Define.
17911 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
17912 (phex_nz): New.
17913
17914 * regcache.h (struct regcache) <registers_owned>: New field.
17915 (init_register_cache, regcache_cpy): Declare.
17916 (regcache_read_pc, regcache_write_pc): Declare.
17917 (register_cache_size): Declare.
17918 (supply_regblock): Declare.
17919 * regcache.c (init_register_cache): New.
17920 (new_register_cache): Use it.
17921 (regcache_cpy): New.
17922 (register_cache_size): New.
17923 (supply_regblock): New.
17924 (regcache_read_pc, regcache_write_pc): New.
17925
17926 * tracepoint.c: New.
17927
17928 * Makefile.in (OBS): Add tracepoint.o.
17929 (tracepoint.o): New rule.
17930
17931 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
17932
17933 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
17934 (i386-mmx.o): New.
17935 (i386-mmx.c): Likewise.
17936 (i386-mmx-linux.o): Likewise.
17937 (i386-mmx-linux.c): Likewise.
17938
17939 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
17940 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
17941 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
17942 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
17943
17944 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
17945 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
17946 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
17947
17948 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
17949
17950 * Makefile.in (clean): Updated.
17951 (i386-avx.o): New.
17952 (i386-avx.c): Likewise.
17953 (i386-avx-linux.o): Likewise.
17954 (i386-avx-linux.c): Likewise.
17955 (amd64-avx.o): Likewise.
17956 (amd64-avx.c): Likewise.
17957 (amd64-avx-linux.o): Likewise.
17958 (amd64-avx-linux.c): Likewise.
17959
17960 * configure.srv (srv_i386_regobj): Add i386-avx.o.
17961 (srv_i386_linux_regobj): Add i386-avx-linux.o.
17962 (srv_amd64_regobj): Add amd64-avx.o.
17963 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
17964 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
17965 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
17966 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
17967 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
17968 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
17969 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
17970
17971 * i387-fp.c: Include "i386-xstate.h".
17972 (i387_xsave): New.
17973 (i387_cache_to_xsave): Likewise.
17974 (i387_xsave_to_cache): Likewise.
17975 (x86_xcr0): Likewise.
17976
17977 * i387-fp.h (i387_cache_to_xsave): Likewise.
17978 (i387_xsave_to_cache): Likewise.
17979 (x86_xcr0): Likewise.
17980
17981 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
17982 * linux-crisv32-low.c (target_regsets): Likewise.
17983 * linux-m68k-low.c (target_regsets): Likewise.
17984 * linux-mips-low.c (target_regsets): Likewise.
17985 * linux-ppc-low.c (target_regsets): Likewise.
17986 * linux-s390-low.c (target_regsets): Likewise.
17987 * linux-sh-low.c (target_regsets): Likewise.
17988 * linux-sparc-low.c (target_regsets): Likewise.
17989 * linux-xtensa-low.c (target_regsets): Likewise.
17990
17991 * linux-low.c: Include <sys/uio.h>.
17992 (regsets_fetch_inferior_registers): Support nt_type.
17993 (regsets_store_inferior_registers): Likewise.
17994 (linux_process_qsupported): New.
17995 (linux_target_ops): Add linux_process_qsupported.
17996
17997 * linux-low.h (regset_info): Add nt_type.
17998 (linux_target_ops): Add process_qsupported.
17999
18000 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
18001 and <sys/uio.h>.
18002 (init_registers_i386_avx_linux): New.
18003 (init_registers_amd64_avx_linux): Likewise.
18004 (xmltarget_i386_linux_no_xml): Likewise.
18005 (xmltarget_amd64_linux_no_xml): Likewise.
18006 (PTRACE_GETREGSET): Likewise.
18007 (PTRACE_SETREGSET): Likewise.
18008 (x86_fill_xstateregset): Likewise.
18009 (x86_store_xstateregset): Likewise.
18010 (use_xml): Likewise.
18011 (x86_linux_update_xmltarget): Likewise.
18012 (x86_linux_process_qsupported): Likewise.
18013 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
18014 (x86_arch_setup): Don't call init_registers_amd64_linux nor
18015 init_registers_i386_linux here. Call
18016 x86_linux_update_xmltarget.
18017 (the_low_target): Add x86_linux_process_qsupported.
18018
18019 * server.c (handle_query): Call target_process_qsupported.
18020
18021 * target.h (target_ops): Add process_qsupported.
18022 (target_process_qsupported): New.
18023
18024 2010-04-03 Pedro Alves <pedro@codesourcery.com>
18025
18026 * inferiors.c (add_thread): Set last_status kind to
18027 TARGET_WAITKIND_IGNORE.
18028 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
18029 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
18030 (linux_wait_1): Move `thread' local definition to block that uses
18031 it. Don't NULL initialize `event_child'.
18032 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
18033 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
18034 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
18035
18036 2010-04-01 Pedro Alves <pedro@codesourcery.com>
18037
18038 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
18039 an extended waitstatus, or by a watchpoint.
18040 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
18041 thread was stepping or has been stopped by a watchpoint.
18042
18043 2010-04-01 Pedro Alves <pedro@codesourcery.com>
18044
18045 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
18046 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
18047 of another, then delete the previous, and validate all
18048 breakpoints.
18049 (validate_inserted_breakpoint): New.
18050 (delete_disabled_breakpoints): New.
18051 (validate_breakpoints): New.
18052 (check_mem_read): Validate breakpoints before trusting their
18053 shadow. Delete disabled breakpoints.
18054 (check_mem_write): Validate breakpoints before trusting they
18055 should be inserted. Delete disabled breakpoints.
18056 * mem-break.h (validate_breakpoints):
18057 * server.c (handle_query): Validate breakpoints when we see a
18058 qSymbol query.
18059
18060 2010-04-01 Pedro Alves <pedro@codesourcery.com>
18061
18062 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
18063 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
18064 if we could tell there's a GDB breakpoint at stop_pc.
18065 (need_step_over_p): Don't do a step over if we find a GDB
18066 breakpoint at the resume PC.
18067
18068 * mem-break.c (struct raw_breakpoint): New.
18069 (enum bkpt_type): New type `gdb_breakpoint'.
18070 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
18071 fields. New field `raw'.
18072 (find_raw_breakpoint_at): New.
18073 (set_raw_breakpoint_at): Handle refcounting. Create a raw
18074 breakpoint instead.
18075 (set_breakpoint_at): Adjust.
18076 (delete_raw_breakpoint): New.
18077 (release_breakpoint): New.
18078 (delete_breakpoint): Rename to...
18079 (delete_breakpoint_1): ... this. Add proc parameter. Use
18080 release_breakpoint. Return ENOENT.
18081 (delete_breakpoint): Reimplement.
18082 (find_breakpoint_at): Delete.
18083 (find_gdb_breakpoint_at): New.
18084 (delete_breakpoint_at): Delete.
18085 (set_gdb_breakpoint_at): New.
18086 (delete_gdb_breakpoint_at): New.
18087 (gdb_breakpoint_here): New.
18088 (set_reinsert_breakpoint): Use release_breakpoint.
18089 (uninsert_breakpoint): Rename to ...
18090 (uninsert_raw_breakpoint): ... this.
18091 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
18092 (reinsert_raw_breakpoint): Change parameter type to
18093 raw_breakpoint.
18094 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
18095 instead.
18096 (check_breakpoints): Adjust. Use release_breakpoint.
18097 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
18098 (breakpoint_inserted_here): Ditto.
18099 (check_mem_read): Adjust to iterate over raw breakpoints instead.
18100 Don't trust the breakpoint's shadow if it is not inserted.
18101 (check_mem_write): Adjust to iterate over raw breakpoints instead.
18102 (delete_all_breakpoints): Adjust.
18103 (free_all_breakpoints): Mark all breakpoints as uninserted, and
18104 use delete_breakpoint_1.
18105
18106 * mem-break.h (breakpoints_supported): Delete declaration.
18107 (set_gdb_breakpoint_at): Declare.
18108 (gdb_breakpoint_here): Declare.
18109 (delete_breakpoint_at): Delete.
18110 (delete_gdb_breakpoint_at): Declare.
18111
18112 * server.h (struct raw_breakpoint): Forward declare.
18113 (struct process_info): New field `raw_breakpoints'.
18114
18115 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
18116 breakpoints.
18117
18118 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18119
18120 * linux-low.c (status_pending_p_callback): Fix comment.
18121 (linux_wait_for_event_1): Move most of the internal breakpoint
18122 handling from here...
18123 (linux_wait_1): ... to here.
18124 (count_events_callback): New.
18125 (select_singlestep_lwp_callback): New.
18126 (select_event_lwp_callback): New.
18127 (cancel_breakpoints_callback): New.
18128 (select_event_lwp): New.
18129 (linux_wait_1): Simplify internal breakpoint handling. Give equal
18130 priority to all LWPs that have had events that should be reported
18131 to the client. Cancel breakpoints when about to reporting the
18132 event to the client, not while stopping lwps. No longer cancel
18133 finished single-steps here.
18134 (cancel_finished_single_step): Delete.
18135 (cancel_finished_single_steps): Delete.
18136
18137 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18138
18139 * mem-break.c (enum bkpt_type): New.
18140 (struct breakpoint): New field `type'.
18141 (set_breakpoint_at): Change return type to struct breakpoint
18142 pointer. Set type to `other_breakpoint' by default.
18143 (delete_breakpoint): Rewrite, supporting more than one breakpoint
18144 in the breakpoint list.
18145 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
18146 (reinsert_breakpoint): Rename to ...
18147 (reinsert_raw_breakpoint): ... this.
18148 (reinsert_breakpoints_at): Adjust.
18149 * mem-break.h (struct breakpoint): Declare.
18150 (set_breakpoint_at): Change return type to struct breakpoint
18151 pointer.
18152
18153 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18154
18155 * server.c (handle_query): Assign, not compare.
18156
18157 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18158
18159 Teach linux gdbserver to step-over-breakpoints.
18160
18161 * linux-low.c (can_hardware_single_step): New.
18162 (supports_breakpoints): New.
18163 (handle_extended_wait): If stopping threads, read the stop pc of
18164 the new cloned LWP.
18165 (get_pc): New.
18166 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
18167 low target doesn't support retrieving the PC.
18168 (add_lwp): Set last_resume_kind to resume_continue.
18169 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
18170 (linux_attach): Don't clear stop_expected. Set the lwp's
18171 last_resume_kind to resume_stop.
18172 (linux_detach_one_lwp): Don't check for removed breakpoints.
18173 (check_removed_breakpoint): Delete.
18174 (status_pending_p): Rename to ...
18175 (status_pending_p_callback): ... this. Don't check for removed
18176 breakpoints. Don't consider threads that are stopped from GDB's
18177 perspective.
18178 (linux_wait_for_lwp): Always read the stop_pc here.
18179 (cancel_breakpoint): New.
18180 (step_over_bkpt): New global.
18181 (linux_wait_for_event_1): Implement stepping over breakpoints.
18182 (gdb_wants_lwp_stopped): New.
18183 (gdb_wants_all_stopped): New.
18184 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
18185 single-step traps here. Store the thread's last reported target
18186 wait status.
18187 (send_sigstop): Don't clear stop_expected. Always set it,
18188 instead.
18189 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
18190 (cancel_finished_single_step): New.
18191 (cancel_finished_single_steps): New.
18192 (wait_for_sigstop): Don't cancel finished single-step traps here.
18193 (linux_resume_one_lwp): Don't check for removed breakpoints.
18194 Don't set `step' on non-hardware step archs.
18195 (linux_set_resume_request): Ignore resume_stop requests if already
18196 stopping or stopped. Set the lwp's last_resume_kind.
18197 (resume_status_pending_p): Don't check for removed breakpoints.
18198 (need_step_over_p): New.
18199 (start_step_over): New.
18200 (finish_step_over): New.
18201 (linux_resume_one_thread): Always queue a sigstop for resume_stop
18202 requests. Clear the thread's last reported target waitstatus.
18203 Don't use the `suspended' flag. Don't consider pending breakpoints.
18204 (linux_resume): Start a step-over if necessary.
18205 (proceed_one_lwp): New.
18206 (proceed_all_lwps): New.
18207 (unstop_all_lwps): New.
18208 * linux-low.h (struct lwp_info): Rewrite comment for the
18209 `suspended' flag. Add the `stop_pc' field. Delete the
18210 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
18211 Add `'last_resume_kind' and `need_step_over' fields.
18212 * inferiors.c (struct thread_info): Delete, moved elsewhere.
18213 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
18214 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
18215 (set_raw_breakpoint_at): New.
18216 (set_breakpoint_at): Rewrite to use it.
18217 (reinsert_breakpoint_handler): Delete.
18218 (set_reinsert_breakpoint): New.
18219 (reinsert_breakpoint_by_bp): Delete.
18220 (delete_reinsert_breakpoints): New.
18221 (uninsert_breakpoint): Rewrite.
18222 (uninsert_breakpoints_at): New.
18223 (reinsert_breakpoint): Rewrite.
18224 (reinsert_breakpoints_at): New.
18225 (check_breakpoints): Rewrite.
18226 (breakpoint_here): New.
18227 (breakpoint_inserted_here): New.
18228 (check_mem_read): Adjust.
18229 * mem-break.h (breakpoints_supported, breakpoint_here)
18230 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
18231 (reinsert_breakpoint_by_bp): Delete declaration.
18232 (delete_reinsert_breakpoints): Declare.
18233 (reinsert_breakpoint): Delete declaration.
18234 (reinsert_breakpoints_at): Declare.
18235 (uninsert_breakpoint): Delete declaration.
18236 (uninsert_breakpoints_at): Declare.
18237 (check_breakpoints): Adjust prototype.
18238 * server.h: Adjust include order.
18239 (struct thread_info): Declare here. Add a `last_status' field.
18240
18241 2010-03-23 Michael Snyder <msnyder@vmware.com>
18242
18243 * server.c (crc32): New function.
18244 (handle_query): Add handling for 'qCRC:' request.
18245
18246 2010-03-23 Pedro Alves <pedro@codesourcery.com>
18247
18248 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
18249 lwp had been stopped by a watchpoint.
18250
18251 2010-03-16 Pedro Alves <pedro@codesourcery.com>
18252
18253 * server.h (internal_error): Declare.
18254 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
18255 * utils.c (internal_error): New function.
18256
18257 2010-03-15 Andreas Schwab <schwab@redhat.com>
18258
18259 * configure.srv: Fix typo setting srv_regobj.
18260
18261 2010-03-15 Pedro Alves <pedro@codesourcery.com>
18262
18263 * linux-low.c (fetch_register): Avoid passing a non string literal
18264 format to `error'.
18265 (usr_store_inferior_registers): Ditto.
18266
18267 2010-03-14 Pedro Alves <pedro@codesourcery.com>
18268
18269 * linux-low.c (linux_write_memory): Bail out early if peeking
18270 memory failed.
18271
18272 2010-03-14 Pedro Alves <pedro@codesourcery.com>
18273
18274 * linux-low.h (struct lwp_info): New fields
18275 `stopped_by_watchpoint' and `stopped_data_address'.
18276 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
18277 here, and cache them in the lwp object.
18278 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
18279 directly.
18280 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
18281 field.
18282 (linux_stopped_by_watchpoint): Rewrite.
18283 (linux_stopped_data_address): Rewrite.
18284
18285 2010-03-06 Simo Melenius <simo.melenius@iki.fi>
18286
18287 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
18288 switching the current inferior, not before.
18289
18290 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
18291
18292 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
18293 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
18294 i386-linux.c and amd64-linux.c.
18295 (reg-i386.o): Removed.
18296 (reg-i386.c): Likewise.
18297 (reg-i386-linux.o): Likewise.
18298 (reg-i386-linux.c): Likewise.
18299 (reg-x86-64.o): Likewise.
18300 (reg-x86-64.c): Likewise.
18301 (reg-x86-64-linux.o): Likewise.
18302 (reg-x86-64-linux.c): Likewise.
18303 (i386.o): New.
18304 (i386.c): Likewise.
18305 (i386-linux.o): Likewise.
18306 (i386-linux.c): Likewise.
18307 (amd64.o): Likewise.
18308 (amd64.c): Likewise.
18309 (amd64-linux.o): Likewise.
18310 (amd64-linux.c): Likewise.
18311
18312 * configure.srv (srv_i386_regobj): New.
18313 (srv_i386_linux_regobj): Likewise.
18314 (srv_amd64_regobj): Likewise.
18315 (srv_amd64_linux_regobj): Likewise.
18316 (srv_i386_32bit_xmlfiles): Likewise.
18317 (srv_i386_64bit_xmlfiles): Likewise.
18318 (srv_i386_xmlfiles): Likewise.
18319 (srv_amd64_xmlfiles): Likewise.
18320 (srv_i386_linux_xmlfiles): Likewise.
18321 (srv_amd64_linux_xmlfiles): Likewise.
18322 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
18323 srv_xmlfiles to $srv_i386_xmlfiles.
18324 (i[34567]86-*-mingw32ce*): Likewise.
18325 (i[34567]86-*-mingw*): Likewise.
18326 (i[34567]86-*-nto*): Likewise.
18327 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
18328 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
18329 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
18330 (x86_64-*-linux*): Likewise.
18331
18332 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
18333 (init_registers_amd64_linux): New.
18334 (x86_arch_setup): Replace init_registers_x86_64_linux with
18335 init_registers_amd64_linux.
18336
18337 2010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
18338
18339 * configure.ac: Check for libdl. If it is not available link against
18340 static libthread_db.
18341 * configure: Regenerate.
18342
18343 2010-02-22 Pedro Alves <pedro@codesourcery.com>
18344
18345 PR9605
18346
18347 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
18348 handing a read watchpoint.
18349 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
18350
18351 2010-02-12 Doug Evans <dje@google.com>
18352
18353 * linux-low.c (linux_supports_tracefork_flag): Document.
18354 (linux_look_up_symbols): Add comment.
18355
18356 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
18357
18358 * regcache.c (supply_register): Clear regcache if buf is NULL.
18359
18360 2010-02-02 Nicolas Roche <roche@sourceware.org>
18361 Joel Brobecker <brobecker@adacore.com>
18362
18363 * inferiors.c (find_inferior): Add function documentation.
18364 (unloaded_dll): Handle the case where the unloaded dll has not
18365 been previously registered in the dll list.
18366
18367 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
18368
18369 * linux-arm-low.c (thumb_breakpoint_len): Delete.
18370 (thumb2_breakpoint): New.
18371 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
18372
18373 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
18374
18375 * linux-low.c (get_stop_pc): Check for SIGTRAP.
18376 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
18377 breakpoints.
18378
18379 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18380
18381 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
18382
18383 2010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
18384
18385 * linux-s390-low.c (s390_collect_ptrace_register)
18386 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
18387
18388 2010-01-21 Doug Evans <dje@google.com>
18389
18390 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
18391 (PTRACE_ARG4_TYPE): New macro.
18392 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
18393 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
18394 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
18395 (usr_store_inferior_registers): Ditto.
18396 (linux_read_memory, linux_write_memory): Ditto.
18397 (linux_test_for_tracefork): Ditto.
18398
18399 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
18400 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
18401
18402 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18403
18404 * proc-service.c (ps_lgetregs): Don't refetch registers from the
18405 target.
18406
18407 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18408
18409 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
18410 prototype to take a regcache. Adjust.
18411
18412 2010-01-20 Pedro Alves <pedro@codesourcery.com>
18413
18414 * regcache.h (struct thread_info): Forward declare.
18415 (struct regcache): New.
18416 (new_register_cache): Adjust prototype.
18417 (get_thread_regcache): Declare.
18418 (free_register_cache): Adjust prototype.
18419 (registers_to_string, registers_from_string): Ditto.
18420 (supply_register, supply_register_by_name, collect_register)
18421 (collect_register_as_string, collect_register_by_name): Ditto.
18422 * regcache.c (struct inferior_regcache_data): Delete.
18423 (get_regcache): Rename to ...
18424 (get_thread_regcache): ... this. Adjust. Switch inferior before
18425 fetching registers.
18426 (regcache_invalidate_one): Adjust.
18427 (regcache_invalidate): Fix prototype.
18428 (new_register_cache): Return the new register cache.
18429 (free_register_cache): Change prototype.
18430 (realloc_register_cache): Adjust.
18431 (registers_to_string): Change prototype to take a regcache. Adjust.
18432 (registers_from_string): Ditto.
18433 (register_data): Ditto.
18434 (supply_register): Ditto.
18435 (supply_register_by_name): Ditto.
18436 (collect_register): Ditto.
18437 (collect_register_as_string): Ditto.
18438 (collect_register_by_name): Ditto.
18439 * server.c (process_serial_event): Adjust.
18440 * linux-low.h (regset_fill_func, regset_store_func): Change
18441 prototype.
18442 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
18443 Change prototype.
18444 * linux-low.c (get_stop_pc): Adjust.
18445 (check_removed_breakpoint): Adjust.
18446 (linux_wait_for_event): Adjust.
18447 (linux_resume_one_lwp): Adjust.
18448 (fetch_register): Add regcache parameter. Adjust.
18449 (usr_store_inferior_registers): Ditto.
18450 (regsets_fetch_inferior_registers): Ditto.
18451 (regsets_store_inferior_registers): Ditto.
18452 (linux_fetch_registers, linux_store_registers): Ditto.
18453 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
18454 regcache. Adjust.
18455 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
18456 Ditto.
18457 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
18458 prototype to take a regcache.
18459 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
18460 * remote-utils.c (convert_ascii_to_int, outreg)
18461 (prepare_resume_reply): Change prototype to take a regcache.
18462 Adjust.
18463 * target.h (struct target_ops) <fetch_registers, store_registers>:
18464 Change prototype to take a regcache.
18465 (fetch_inferior_registers, store_inferior_registers): Change
18466 prototype to take a regcache. Adjust.
18467 * proc-service.c (ps_lgetregs): Adjust.
18468 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
18469 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
18470 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
18471 take a regcache. Adjust.
18472 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
18473 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
18474 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
18475 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
18476 * linux-cris-low.c (cris_get_pc, cris_set_pc)
18477 (cris_cannot_fetch_register):
18478 (cris_breakpoint_at): Change prototype to take a regcache.
18479 Adjust.
18480 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
18481 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
18482 to take a regcache. Adjust.
18483 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
18484 Adjust.
18485 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
18486 take a regcache. Adjust.
18487 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
18488 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
18489 (m68k_set_pc): Change prototype to take a regcache. Adjust.
18490 * linux-mips-low.c (mips_get_pc):
18491 (mips_set_pc): Change prototype to take a regcache. Adjust.
18492 (mips_reinsert_addr): Adjust.
18493 (mips_collect_register): Change prototype to take a regcache.
18494 Adjust.
18495 (mips_supply_register):
18496 (mips_collect_register_32bit, mips_supply_register_32bit)
18497 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
18498 (mips_store_fpregset): Ditto.
18499 * linux-ppc-low.c (ppc_supply_ptrace_register)
18500 (ppc_supply_ptrace_register): Ditto.
18501 (parse_spufs_run): Adjust.
18502 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
18503 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
18504 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
18505 take a regcache. Adjust.
18506 * linux-s390-low.c (s390_collect_ptrace_register)
18507 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
18508 (s390_set_pc): Change prototype to take a regcache. Adjust.
18509 (s390_arch_setup): Adjust.
18510 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
18511 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
18512 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
18513 (sparc_fill_gregset, sparc_store_gregset_from_stack)
18514 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
18515 regcache. Adjust.
18516 (sparc_breakpoint_at): Adjust.
18517 * linux-xtensa-low.c (xtensa_fill_gregset):
18518 (xtensa_store_gregset):
18519 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
18520 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
18521 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
18522 prototype to take a regcache. Adjust.
18523 * win32-arm-low.c (arm_fetch_inferior_register)
18524 (arm_store_inferior_register): Change prototype to take a
18525 regcache. Adjust.
18526 * win32-i386-low.c (i386_fetch_inferior_register)
18527 (i386_store_inferior_register): Change prototype to take a
18528 regcache. Adjust.
18529 * win32-low.c (child_fetch_inferior_registers)
18530 (child_store_inferior_registers): Change prototype to take a
18531 regcache. Adjust.
18532 (win32_wait): Adjust.
18533 (win32_fetch_inferior_registers): Change prototype to take a
18534 regcache. Adjust.
18535 (win32_store_inferior_registers): Adjust.
18536 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
18537 store_inferior_register>: Change prototype to take a regcache.
18538
18539 2010-01-20 Doug Evans <dje@google.com>
18540
18541 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
18542 #ifdef.
18543 (linux_wait_for_event1, linux_init_signals): Ditto.
18544 (W_STOPCODE): Provide definition if missing.
18545
18546 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
18547
18548 * linux-low.c (linux_core_of_thread): New.
18549 (compare_ints, show_process, list_threads): New.
18550 (linux_qxfer_osdata): Report threads and cores.
18551 (linux_target_op): Register linux_core_of_thread.
18552 * remote-utils.c (prepare_resume_reply): Report the core.
18553 (buffer_xml_printf): Support %d specifier.
18554 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
18555 New.
18556 (handle_query): Handle qXfer:threads. Announce availability
18557 thereof.
18558 * target.h (struct target_ops): New field core_of_thread.
18559
18560 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
18561
18562 * Makefile.in (clean): Remove new generated files.
18563 (reg-s390.o, reg-s390.c): Remove rules.
18564 (reg-s390x.o, reg-s390x.c): Likewise.
18565 (s390-linux32.o, s390-linux32.c): Add rules.
18566 (s390-linux64.o, s390-linux64.c): Likewise.
18567 (s390x-linux64.o, s390x-linux64.c): Likewise.
18568 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
18569 * linux-s390-low.c: Include <elf.h>.
18570 (HWCAP_S390_HIGH_GPRS): Define if undefined.
18571 (init_registers_s390): Remove prototype.
18572 (init_registers_s390x): Likewise.
18573 (init_registers_s390_linux32): Add prototype.
18574 (init_registers_s390_linux64): Likewise.
18575 (init_registers_s390x_linux64): Likewise.
18576 (s390_num_regs_3264): New define.
18577 (s390_regmap_3264): New global variable.
18578 (s390_cannot_fetch_register): Remove obsolete check.
18579 (s390_cannot_store_register): Likewise.
18580 (s390_collect_ptrace_register): Handle upper/lower register halves.
18581 (s390_supply_ptrace_register): Likewise.
18582 (s390_fill_gregset): Update to register number changes.
18583 (s390_get_hwcap): New routine.
18584 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
18585 Install appropriate regmap and register set.
18586
18587 2010-01-01 Joel Brobecker <brobecker@adacore.com>
18588
18589 * server.c (gdbserver_version): Update copyright year to 2010.
18590 * gdbreplay.c (gdbreplay_version): Likewise.
18591
18592 2009-12-28 Doug Evans <dje@google.com>
18593
18594 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
18595 elf/external.h. Include <elf.h> instead but only if necessary.
18596
18597 2009-12-28 Pedro Alves <pedro@codesourcery.com>
18598
18599 * linux-low.c (linux_remove_process): Remove `detaching'
18600 parameter. Don't release/detach from thread_db here.
18601 (linux_kill): Release/detach from thread_db here, ...
18602 (linux_detach): ... and here, before actually detaching.
18603 (linux_wait_1): ... and here, when a process exits.
18604 * thread-db.c (any_thread_of): New.
18605 (thread_db_free): Switch the current inferior to a thread of the
18606 passed in process.
18607
18608 2009-12-21 Doug Evans <dje@google.com>
18609
18610 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
18611
18612 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
18613 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
18614 warning ifndef __NR_tkill. Move setting of errno there too.
18615 Delete unnecessary resetting of errno after syscall.
18616 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
18617
18618 * configure.ac: Check for dladdr.
18619 * config.in: Regenerate.
18620 * configure: Regenerate.
18621 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
18622 (try_thread_db_load): Update.
18623
18624 * linux-low.c (my_waitpid): Delete unnecessary prototype.
18625
18626 2009-12-18 Doug Evans <dje@google.com>
18627
18628 * event-loop.c: Include unistd.h if it exists.
18629
18630 * linux-low.c (my_waitpid): Move definition away from being in
18631 between linux_tracefork_child/linux_test_for_tracefork.
18632
18633 * gdb_proc_service.h (psaddr_t): Fix type.
18634 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
18635 signature to match glibc.
18636
18637 2009-12-16 Doug Evans <dje@google.com>
18638
18639 * linux-low.c (linux_read_memory): Fix argument to read.
18640
18641 2009-11-26 Pedro Alves <pedro@codesourcery.com>
18642
18643 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
18644 events, don't leave current_inferior pointing at null.
18645
18646 2009-11-26 Pedro Alves <pedro@codesourcery.com>
18647
18648 * win32-low.c (LOG): Delete.
18649 (OUTMSG): Output to stderr.
18650 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
18651 on compile time LOG macro.
18652 (win32_wait): Fix debug output.
18653
18654 2009-11-26 Pedro Alves <pedro@codesourcery.com>
18655
18656 * win32-low.c (win32_add_one_solib): If the dll name is
18657 "ntdll.dll", prepend the system directory to the dll path.
18658
18659 2009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
18660
18661 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
18662
18663 2009-11-17 Nathan Sidwell <nathan@codesourcery.com>
18664 Vladimir Prus <vladimir@codesourcery.com>
18665
18666 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
18667 * configure.ac: Check for __mcoldfire__ and set
18668 gdb_cv_m68k_is_coldfire.
18669 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
18670 reg-cf.o and reg-m68k.o.
18671 * configure: Regenerated.
18672
18673 2009-11-16 Pedro Alves <pedro@codesourcery.com>
18674
18675 * linux-low.c (linux_remove_process): Add `detaching' parameter.
18676 Pass it to thread_db_free.
18677 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
18678 proper `detaching' argument to linux_remove_process.
18679 * linux-low.h (thread_db_free): Add `detaching' parameter.
18680 * thread-db.c (thread_db_init): Pass false as `detaching' argument
18681 to thread_db_free.
18682 (thread_db_free): Add `detaching' parameter. Only
18683 call td_ta_clear_event if detaching from process.
18684
18685 2009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
18686
18687 * thread-db.c (thread_db_free): Fix typo.
18688
18689 2009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
18690
18691 PR gdb/10838
18692 * thread-db.c (thread_db_free): Call td_ta_clear_event.
18693
18694 2009-11-03 Nathan Sidwell <nathan@codesourcery.com>
18695
18696 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
18697 with an i686 compiler.
18698 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
18699 needed.
18700 * configure: Rebuilt.
18701
18702 2009-10-29 Sandra Loosemore <sandra@codesourcery.com>
18703
18704 PR gdb/10783
18705
18706 * server.c (handle_search_memory_1): Correct read_addr initialization
18707 in loop for searching subsequent chunks.
18708
18709 2009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
18710
18711 * configure.ac: New --with-libthread-db option.
18712 * thread-db.c: Allow direct dependence on libthread_db.
18713 (thread_db_free): Adjust.
18714 * config.in: Regenerate.
18715 * configure: Likewise.
18716
18717 2009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
18718
18719 PR gdb/10757
18720 * thread-db.c (attach_thread): New function.
18721 (maybe_attach_thread): Return success/failure.
18722 (find_new_threads_callback): Adjust.
18723 (thread_db_find_new_threads): Loop until no new threads.
18724
18725 2009-10-13 Pedro Alves <pedro@codesourcery.com>
18726
18727 * proc-service.c (ps_lgetregs): Formatting.
18728
18729 2009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
18730
18731 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
18732 * configure.ac: Adjust.
18733 * linux-low.h (struct process_info_private): Move members to struct
18734 thread_db.
18735 (thread_db_free, thread_db_handle_monitor_command): New prototype.
18736 * linux-low.c (linux_remove_process): Adjust.
18737 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
18738 * server.c (handle_query): Move code ...
18739 (handle_monitor_command): ... here. New function.
18740 * target.h (struct target_ops): New member.
18741 * thread-db.c (struct thread_db): New.
18742 (libthread_db_search_path): New variable.
18743 (thread_db_create_event, thread_db_enable_reporting)
18744 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
18745 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
18746 (try_thread_db_load_1, dladdr_to_soname): New functions.
18747 (try_thread_db_load, thread_db_load_search): New functions.
18748 (thread_db_init): Search for libthread_db.
18749 (thread_db_free): New function.
18750 (thread_db_handle_monitor_command): Likewise.
18751 * config.in: Regenerate.
18752 * configure: Regenerate.
18753
18754 2009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
18755
18756 * spu-low.c (spu_kill): Wait for inferior to terminate.
18757 Call clear_inferiors.
18758 (spu_detach): Call clear_inferiors.
18759
18760 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18761
18762 * aclocal.m4: Regenerate.
18763 * config.in: Likewise.
18764 * configure: Likewise.
18765
18766 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18767
18768 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
18769 (parse_spufs_run): New function.
18770 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
18771 (ppc_breakpoint_at): Handle SPU breakpoints.
18772
18773 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18774
18775 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
18776 (SPUFS_MAGIC): Define.
18777 (spu_enumerate_spu_ids): New function.
18778 (linux_qxfer_spu): New function.
18779 (linux_target_ops): Install linux_qxfer_spu.
18780
18781 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18782
18783 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
18784 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
18785 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
18786 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
18787 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
18788 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
18789 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
18790 (init_registers_powerpc_cell32l): Add prototype.
18791 (init_registers_powerpc_cell64l): Likewise.
18792 (ppc_arch_setup): Detect Cell/B.E. architecture.
18793
18794 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18795
18796 * Makefile.in (datarootdir): New variable.
18797
18798 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18799
18800 * linux-low.c (linux_write_memory): Update debugging output.
18801 * Makefile.in (clean): Add new descriptions.
18802 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
18803 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
18804 * configure.srv: Add new files for arm*-*-linux*.
18805 * linux-arm-low.c: Add new declarations.
18806 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
18807 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
18808 (HWCAP_VFPv3D16): New.
18809 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
18810 instead of __IWMMXT__.
18811 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
18812 (arm_arch_setup): New.
18813 (target_regsets): Remove #ifdef. Add VFP regset.
18814 (the_low_target): Use arm_arch_setup.
18815
18816 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18817
18818 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
18819 the main thread again.
18820
18821 2009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
18822
18823 Adding Neutrino gdbserver.
18824 * configure: Regenerated.
18825 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
18826 * configure.srv (i[34567]86-*-nto*): New target.
18827 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
18828 * remote-utils.c [__QNX__]: Include sys/iomgr.h
18829 (nto_comctrl) [__QNX__]: New function.
18830 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
18831
18832 2009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
18833
18834 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
18835 srv_tgtobj.
18836
18837 2009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
18838 Pedro Alves <pedro@codesourcery.com>
18839
18840 * win32-i386-low.c (i386_get_thread_context): Handle systems that
18841 don't support CONTEXT_EXTENDED_REGISTERS.
18842 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
18843 (the_low_target): Install them.
18844 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
18845 failing with ERROR_PIPE_NOT_CONNECTED.
18846
18847 2009-06-30 Doug Evans <dje@google.com>
18848 Pierre Muller <muller@ics.u-strasbg.fr>
18849
18850 Add h/w watchpoint support to x86-linux, win32-i386.
18851 * Makefile.in (SFILES): Add i386-low.c
18852 (i386_low_h): Define.
18853 (i386-low.o): Add dependencies.
18854 (linux-x86-low.o): Add i386-low.h dependency.
18855 (win32-i386-low.o): Ditto.
18856 * i386-low.c: New file.
18857 * i386-low.h: New file.
18858 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
18859 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
18860 * linux-low.c (linux_add_process): Initialize arch_private.
18861 (linux_remove_process): Free arch_private.
18862 (add_lwp): Initialize arch_private.
18863 (delete_lwp): Free arch_private.
18864 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
18865 provided.
18866 * linux-low.h (process_info_private): New member arch_private.
18867 (lwp_info): New member arch_private.
18868 (linux_target_ops): New members new_process, new_thread,
18869 prepare_to_resume.
18870 (ptid_of): New macro.
18871 * linux-x86-low.c: Include stddef.h, i386-low.h.
18872 (arch_process_info): New struct.
18873 (arch_lwp_info): New struct.
18874 (x86_linux_dr_get, x86_linux_dr_set): New functions.
18875 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18876 (i386_dr_low_get_status): New function.
18877 (x86_insert_point, x86_remove_point): New functions.
18878 (x86_stopped_by_watchpoint): New function.
18879 (x86_stopped_data_address): New function.
18880 (x86_linux_new_process, x86_linux_new_thread): New functions.
18881 (x86_linux_prepare_to_resume): New function.
18882 (the_low_target): Add entries for insert_point, remove_point,
18883 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
18884 prepare_to_resume.
18885 * server.c (debug_hw_points): New global.
18886 (monitor_show_help): Document set debug-hw-points.
18887 (handle_query): Process "set debug-hw-points".
18888 * server.h (debug_hw_points): Declare.
18889 (paddress): Declare.
18890 * utils.c (NUMCELLS, CELLSIZE): New macros.
18891 (get_sell, xsnprintf, paddress): New functions.
18892 * win32-arm-low.c (the_low_target): Add entries for insert_point,
18893 remove_point, stopped_by_watchpoint, stopped_data_address.
18894 * win32-i386-low.c: Include i386-low.h.
18895 (debug_reg_state): Replaces dr.
18896 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18897 (i386_dr_low_get_status): New function.
18898 (i386_insert_point, i386_remove_point): New functions.
18899 (i386_stopped_by_watchpoint): New function.
18900 (i386_stopped_data_address): New function.
18901 (i386_initial_stuff): Update.
18902 (get_thread_context,set_thread_context,i386_thread_added): Update.
18903 (the_low_target): Add entries for insert_point,
18904 remove_point, stopped_by_watchpoint, stopped_data_address.
18905 * win32-low.c (win32_insert_watchpoint): New function.
18906 (win32_remove_watchpoint): New function.
18907 (win32_stopped_by_watchpoint): New function.
18908 (win32_stopped_data_address): New function.
18909 (win32_target_ops): Add entries for insert_watchpoint,
18910 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
18911 * win32-low.h (win32_target_ops): New members insert_point,
18912 remove_point, stopped_by_watchpoint, stopped_data_address.
18913
18914 2009-06-25 Pedro Alves <pedro@codesourcery.com>
18915
18916 * server.c (process_serial_event): Re-return unsupported, not
18917 error, if the type isn't recognized. Re-allow supporting only
18918 insert or remove packets. Also call require_running for
18919 breakpoints. Add missing break statement to default case. Tidy.
18920 * target.h (struct target_ops): Rename insert_watchpoint to
18921 insert_point, and remove_watchpoint to remove_point.
18922
18923 * linux-low.h (struct linux_target_ops): Likewise.
18924 * linux-low.c (linux_insert_watchpoint): Rename to ...
18925 (linux_insert_point): ... this. Adjust.
18926 (linux_remove_watchpoint): Rename to ...
18927 (linux_remove_point): ... this. Adjust.
18928 (linux_target_ops): Adjust.
18929 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
18930 (cris_insert_point): ... this.
18931 (cris_remove_watchpoint): Rename to ...
18932 (cris_remove_point): ... this.
18933 (the_low_target): Adjust.
18934
18935 2009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
18936
18937 * server.c (handle_v_kill): Pass signal_pid to
18938 kill_inferior if multi_process is zero.
18939
18940 2009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
18941
18942 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
18943 * target.h (target_ops): Comment for *_watchpoint to make it clear
18944 the functions can get types '0' and '1'.
18945
18946 2009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
18947
18948 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
18949 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
18950 * regcache.c (get_regcache): Likewise.
18951 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
18952 * win32-low.c (child_fetch_inferior_registers): Remove check for
18953 regno 0.
18954
18955 2009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
18956 Pedro Alves <pedro@codesourcery.com>
18957
18958 * target.h (struct target_ops) <supports_multi_process>: New
18959 callback.
18960 (target_supports_multi_process): New.
18961 * server.c (handle_query): Even if GDB reports support, only
18962 enable multi-process if the target also supports it. Report
18963 multi-process support only if the target backend supports it.
18964 * linux-low.c (linux_supports_multi_process): New function.
18965 (linux_target_ops): Install it as target_supports_multi_process
18966 callback.
18967
18968 2009-05-24 Doug Evans <dje@google.com>
18969
18970 Global renaming of find_thread_pid to find_thread_ptid.
18971 * server.h (find_thread_ptid): Renamed from find_thread_pid.
18972 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
18973 All callers updated.
18974
18975 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
18976 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
18977 directly.
18978
18979 * linux-low.c (get_stop_pc): Print pc if debug_threads.
18980 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
18981 (linux_resume_one_lwp): Ditto.
18982
18983 2009-05-23 Doug Evans <dje@google.com>
18984
18985 * linux-low.c (linux_resume_one_lwp): Change type of first arg
18986 from struct inferior_list_entry * to struct lwp_info *.
18987 All callers updated.
18988
18989 2009-05-13 Doug Evans <dje@google.com>
18990
18991 * linux-x86-low.c: Don't include assert.h.
18992 (x86_siginfo_fixup): Use fatal, not assert.
18993 (x86_arch_setup): Fix comment.
18994
18995 2009-05-12 Doug Evans <dje@google.com>
18996
18997 Biarch support for i386/amd64 gdbserver.
18998 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
18999 Add linux-x86-low.c.
19000 (linux-i386-low.o, linux-x86-64-low.o): Delete.
19001 (linux-x86-low.o): Add.
19002 * linux-x86-64-low.c: Delete.
19003 * linux-i386-low.c: Delete.
19004 * linux-x86-low.c: New file.
19005 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
19006 linux-x86-low.o.
19007 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
19008 linux-x86-low.o.
19009 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
19010 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
19011 (linux_child_pid_to_exec_file): New function.
19012 (elf_64_header_p, elf_64_file_p): New functions.
19013 (siginfo_fixup): New function.
19014 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
19015 give target a chance to convert layout.
19016 * linux-low.h (linux_target_ops): New member siginfo_fixup.
19017 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
19018
19019 2009-05-07 Doug Evans <dje@google.com>
19020
19021 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
19022 (regsets_store_inferior_registers): Ditto.
19023
19024 2009-05-06 Pedro Alves <pedro@codesourcery.com>
19025
19026 PR server/10048
19027
19028 * linux-low.c (must_set_ptrace_flags): Delete.
19029 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
19030 of the global.
19031 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
19032 `lwp->must_set_ptrace_flags' instead.
19033 (linux_wait_for_event_1): Set ptrace options here.
19034 (linux_wait_1): ... not here.
19035
19036 2009-04-30 Doug Evans <dje@google.com>
19037
19038 * inferiors.c (started_inferior_callback): New function.
19039 (attached_inferior_callback): New function.
19040 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
19041 * server.c (print_started_pid, print_attached_pid): New functions.
19042 (detach_or_kill_for_exit): New function.
19043 (main): Call it instead of for_each_inferior (kill_inferior_callback).
19044 * server.h (have_started_inferiors_p): Declare.
19045 (have_attached_inferiors_p): Declare.
19046
19047 * inferiors.c (remove_process): Fix memory leak, free process.
19048 * linux-low.c (linux_remove_process): New function.
19049 (linux_kill): Call it instead of remove_process.
19050 (linux_detach, linux_wait_1): Ditto.
19051
19052 2009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
19053
19054 * configure.srv: Add x86 Windows CE target.
19055
19056 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19057
19058 * inferiors.c (get_thread_process): Make global.
19059 * server.h (get_thread_process): Add prototype.
19060 * thread-db.c (find_one_thread): Use get_thread_process
19061 instead of current_process.
19062 (thread_db_get_tls_address): Do not crash if called when
19063 thread layer is not yet initialized.
19064
19065 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19066
19067 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
19068 * spu-low.c (current_tid): Rename to ...
19069 (current_ptid): ... this.
19070 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
19071 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
19072 ptid_get_lwp (current_ptid) instead of current_tid.
19073 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
19074 instead of current_tid. Use find_process_pid to verify pid
19075 argument is valid. Pass proper argument to remove_process.
19076 (spu_thread_alive): Compare current_ptid instead of current_tid.
19077 (spu_resume): Likewise.
19078
19079 2009-04-02 Pedro Alves <pedro@codesourcery.com>
19080
19081 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
19082 variable.
19083
19084 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19085
19086 Implement the multiprocess extensions, and add linux multiprocess
19087 support.
19088
19089 * server.h (ULONGEST): Declare.
19090 (struct ptid, ptid_t): New.
19091 (minus_one_ptid, null_ptid): Declare.
19092 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19093 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
19094 (struct inferior_list_entry): Change `id' type from unsigned from
19095 to ptid_t.
19096 (struct sym_cache, struct breakpoint, struct
19097 process_info_private): Forward declare.
19098 (struct process_info): Declare.
19099 (current_process): Declare.
19100 (all_processes): Declare.
19101 (initialize_inferiors): Declare.
19102 (add_thread): Adjust to use ptid_t.
19103 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
19104 (add_process, remove_process, find_thread_pid): Declare.
19105 (find_inferior_id): Adjust to use ptid_t.
19106 (cont_thread, general_thread, step_thread): Change type to ptid_t.
19107 (multi_process): Declare.
19108 (push_event): Adjust to use ptid_t.
19109 (read_ptid, write_ptid): Declare.
19110 (prepare_resume_reply): Adjust to use ptid_t.
19111 (clear_symbol_cache): Declare.
19112 * inferiors.c (all_processes): New.
19113 (null_ptid, minus_one_ptid): New.
19114 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19115 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
19116 (add_thread): Change unsigned long to ptid. Remove gdb_id
19117 parameter. Adjust.
19118 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
19119 (gdb_id_to_thread): Rename to ...
19120 (find_thread_pid): ... this. Change unsigned long to ptid.
19121 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
19122 (loaded_dll, pull_pid_from_list): Adjust.
19123 (add_process, remove_process, find_process_pid)
19124 (get_thread_process, current_process, initialize_inferiors): New.
19125 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
19126 (struct target_waitstatus) <related_pid>: Ditto.
19127 (struct target_ops) <kill, detach>: Add `pid' argument. Change
19128 return type to int.
19129 (struct target_ops) <join>: Add `pid' argument.
19130 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
19131 (struct target_ops) <wait>: Add `ptid' field. Change return type
19132 to ptid.
19133 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
19134 (mywait): Add `ptid' argument. Change return type to ptid_t.
19135 (target_pid_to_str): Declare.
19136 * target.c (set_desired_inferior): Adjust to use ptids.
19137 (mywait): Add new `ptid' argument. Adjust.
19138 (target_pid_to_str): New.
19139 * mem-break.h (free_all_breakpoints): Declare.
19140 * mem-break.c (breakpoints): Delelete.
19141 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
19142 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
19143 to use per-process breakpoint list.
19144 (free_all_breakpoints): New.
19145 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
19146 (symbol_cache, all_symbols_looked_up): Delete.
19147 (hexchars): New.
19148 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
19149 read_ptid): New.
19150 (prepare_resume_reply): Change ptid argument's type from unsigned
19151 long to ptid_t. Adjust. Implement W;process and X;process.
19152 (free_sym_cache, clear_symbol_cache): New.
19153 (look_up_one_symbol): Adjust to per-process symbol cache. *
19154 * server.c (cont_thread, general_thread, step_thread): Change type
19155 to ptid_t.
19156 (attached): Delete.
19157 (multi_process): New.
19158 (last_ptid): Change type to ptid_t.
19159 (struct vstop_notif) <ptid>: Change type to ptid_t.
19160 (queue_stop_reply, push_event): Change `ptid' argument's type to
19161 ptid_t.
19162 (discard_queued_stop_replies): Add `pid' argument.
19163 (start_inferior): Adjust to use ptids. Adjust to mywait interface
19164 changes. Don't reference the `attached' global.
19165 (attach_inferior): Adjust to mywait interface changes.
19166 (handle_query): Adjust to use ptids. Parse GDB's qSupported
19167 features. Handle and report "multiprocess+". Handle
19168 "qAttached:PID".
19169 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
19170 changes.
19171 (handle_v_kill): New.
19172 (handle_v_stopped): Adjust to use target_pid_to_str.
19173 (handle_v_requests): Allow multiple attaches and runs when
19174 multiprocess extensions are in effect. Handle "vKill".
19175 (myresume): Adjust to use ptids.
19176 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
19177 (handle_status): Adjust to discard_queued_stop_replies interface
19178 change.
19179 (first_thread_of, kill_inferior_callback)
19180 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
19181 (main): Call initialize_inferiors. Adjust to use ptids, killing
19182 and detaching from all inferiors. Handle multiprocess packet
19183 variants.
19184 * linux-low.h: Include gdb_proc_service.h.
19185 (struct process_info_private): New.
19186 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
19187 <lwpid_of>: Use ptid_get_lwp.
19188 (get_lwp_thread): Adjust.
19189 (struct lwp_info): Add `dead' member.
19190 (find_lwp_pid): Declare.
19191 * linux-low.c (thread_db_active): Delete.
19192 (new_inferior): Adjust comment.
19193 (inferior_pid): Delete.
19194 (linux_add_process): New.
19195 (handle_extended_wait): Adjust.
19196 (add_lwp): Change unsigned long to ptid.
19197 (linux_create_inferior): Add process to processes table. Adjust
19198 to use ptids. Don't set new_inferior here.
19199 (linux_attach_lwp): Rename to ...
19200 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
19201 it. Adjust to use ptids.
19202 (linux_attach_lwp): New.
19203 (linux_attach): Add process to processes table. Don't set
19204 new_inferior here.
19205 (struct counter): New.
19206 (second_thread_of_pid_p, last_thread_of_process_p): New.
19207 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
19208 multiple processes.
19209 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
19210 processes. Remove process from process table.
19211 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
19212 to multiple processes.
19213 (any_thread_of): New.
19214 (linux_detach): Add `pid' argument, and handle it. Remove process
19215 from processes table.
19216 (linux_join): Add `pid' argument. Handle it.
19217 (linux_thread_alive): Change unsighed long argument to ptid_t.
19218 Consider dead lwps as not being alive.
19219 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
19220 threads we're not interested in.
19221 (same_lwp, find_lwp_pid): New.
19222 (linux_wait_for_lwp): Change `pid' argument's type from int to
19223 ptid_t. Adjust.
19224 (linux_wait_for_event): Rename to ...
19225 (linux_wait_for_event_1): ... this. Change `pid' argument's type
19226 from int to ptid_t. Adjust.
19227 (linux_wait_for_event): New.
19228 (linux_wait_1): Add `ptid' argument. Change return type to
19229 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
19230 that exit from the process table.
19231 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
19232 Adjust.
19233 (mark_lwp_dead): New.
19234 (wait_for_sigstop): Adjust to use ptids. If a process exits while
19235 stopping all threads, mark its main lwp as dead.
19236 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
19237 ptids.
19238 (fetch_register, usr_store_inferior_registers)
19239 (regsets_fetch_inferior_registers)
19240 (regsets_store_inferior_registers, linux_read_memory)
19241 (linux_write_memory): Inline `inferior_pid'.
19242 (linux_look_up_symbols): Adjust to use per-process
19243 `thread_db_active'.
19244 (linux_request_interrupt): Adjust to use ptids.
19245 (linux_read_auxv): Inline `inferior_pid'.
19246 (initialize_low): Don't reference thread_db_active.
19247 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
19248 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
19249 (ps_getpid): Return the pid of the current inferior.
19250 * thread-db.c (proc_handle, thread_agent): Delete.
19251 (thread_db_create_event, thread_db_enable_reporting): Adjust to
19252 per-process data.
19253 (find_one_thread): Change argument type to ptid_t. Adjust to
19254 per-process data.
19255 (maybe_attach_thread): Adjust to per-process data and ptids.
19256 (thread_db_find_new_threads): Ditto.
19257 (thread_db_init): Ditto.
19258 * spu-low.c (spu_create_inferior, spu_attach): Add process to
19259 processes table. Adjust to use ptids.
19260 (spu_kill, spu_detach): Adjust interface. Remove process from
19261 processes table.
19262 (spu_join, spu_thread_alive): Adjust interface.
19263 (spu_wait): Adjust interface. Remove process from processes
19264 table. Adjust to use ptids.
19265 * win32-low.c (current_inferior_tid): Delete.
19266 (current_inferior_ptid): New.
19267 (debug_event_ptid): New.
19268 (thread_rec): Take a ptid. Adjust.
19269 (child_add_thread): Add `pid' argument. Adjust to use ptids.
19270 (child_delete_thread): Ditto.
19271 (do_initial_child_stuff): Add `attached' argument. Add process to
19272 processes table.
19273 (child_fetch_inferior_registers, child_store_inferior_registers):
19274 Adjust.
19275 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
19276 (win32_attach): Pass 1 to do_initial_child_stuff.
19277 (win32_kill): Adjust interface. Remove process from processes
19278 table.
19279 (win32_detach): Ditto.
19280 (win32_join): Adjust interface.
19281 (win32_thread_alive): Take a ptid.
19282 (win32_resume): Adjust to use ptids.
19283 (get_child_debug_event): Ditto.
19284 (win32_wait): Adjust interface. Remove exiting process from
19285 processes table.
19286
19287 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19288
19289 Non-stop mode support.
19290
19291 * server.h (non_stop): Declare.
19292 (gdb_client_data, handler_func): Declare.
19293 (delete_file_handler, add_file_handler, start_event_loop):
19294 Declare.
19295 (handle_serial_event, handle_target_event, push_event)
19296 (putpkt_notif): Declare.
19297 * target.h (enum resume_kind): New.
19298 (struct thread_resume): Replace `step' field by `kind' field.
19299 (TARGET_WNOHANG): Define.
19300 (struct target_ops) <wait>: Add `options' argument.
19301 <supports_non_stop, async, start_non_stop>: New fields.
19302 (target_supports_non_stop, target_async): New.
19303 (start_non_stop): Declare.
19304 (mywait): Add `options' argument.
19305 * target.c (mywait): Add `options' argument. Print child exit
19306 notifications here.
19307 (start_non_stop): New.
19308 * server.c (non_stop, own_buf, mem_buf): New globals.
19309 (struct vstop_notif): New.
19310 (notif_queue): New global.
19311 (queue_stop_reply, push_event, discard_queued_stop_replies)
19312 (send_next_stop_reply): New.
19313 (start_inferior): Adjust to use resume_kind. Adjust to mywait
19314 interface changes.
19315 (attach_inferior): In non-stop mode, don't wait for the target
19316 here.
19317 (handle_general_set): Handle QNonStop.
19318 (handle_query): When handling qC, return the current general
19319 thread, instead of the first thread of the list.
19320 (handle_query): If the backend supports non-stop mode, include
19321 QNonStop+ in the qSupported query response.
19322 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
19323 and non-stop mode.
19324 (handle_v_attach, handle_v_run): Handle non-stop mode.
19325 (handle_v_stopped): New.
19326 (handle_v_requests): Report support for vCont;t. Handle vStopped.
19327 (myresume): Adjust to use resume_kind. Handle non-stop.
19328 (queue_stop_reply_callback): New.
19329 (handle_status): Handle non-stop mode.
19330 (main): Clear non_stop flag on reconnection. Use the event-loop.
19331 Refactor serial protocol handling from here ...
19332 (process_serial_event): ... to this new function. When GDB
19333 selects any thread, select one here. In non-stop mode, wait until
19334 GDB acks all pending events before exiting.
19335 (handle_serial_event, handle_target_event): New.
19336 * remote-utils.c (remote_open): Install remote_desc in the event
19337 loop.
19338 (remote_close): Remove remote_desc from the event loop.
19339 (putpkt_binary): Rename to...
19340 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
19341 (putpkt_binary): New as wrapper around putpkt_binary_1.
19342 (putpkt_notif): New.
19343 (prepare_resume_reply): In non-stop mode, don't change the
19344 general_thread.
19345 * event-loop.c: New.
19346 * Makefile.in (OBJ): Add event-loop.o.
19347 (event-loop.o): New rule.
19348
19349 * linux-low.h (pid_of): Moved here.
19350 (lwpid_of): New.
19351 (get_lwp_thread): Use lwpid_of.
19352 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
19353 * linux-low.c (pid_of): Delete.
19354 (inferior_pid): Use lwpid_of.
19355 (linux_event_pipe): New.
19356 (target_is_async_p): New.
19357 (delete_lwp): New.
19358 (handle_extended_wait): Use lwpid_of.
19359 (add_lwp): Don't set lwpid field.
19360 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
19361 (linux_kill_one_lwp): If killing a running lwp, stop it first.
19362 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
19363 (linux_detach_one_lwp): If detaching from a running lwp, stop it
19364 first. Adjust to linux_wait_for_event interface changes. Use
19365 lwpid_of.
19366 (linux_detach): Don't delete the main lwp here.
19367 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
19368 (status_pending_p): Don't consider explicitly suspended lwps.
19369 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
19370 pointer. Add OPTIONS argument. Change return type to int. Use
19371 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
19372 (linux_wait_for_event): Take an integer pid instead of a lwp_info
19373 pointer. Add status pointer argument. Return a pid instead of a
19374 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
19375 changes. In non-stop mode, don't switch to a random thread.
19376 (linux_wait): Rename to...
19377 (linux_wait_1): ... this. Add target_options argument, and handle
19378 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
19379 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
19380 clean exit and signal exit code. Don't stop all threads in
19381 non-stop mode. In all-stop mode, only stop all threads when
19382 reporting a stop to GDB. Handle explicit thread stop requests.
19383 (async_file_flush, async_file_mark): New.
19384 (linux_wait): New.
19385 (send_sigstop): Use lwpid_of.
19386 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
19387 interface changes. In non-stop mode, don't switch to a random
19388 thread.
19389 (linux_resume_one_lwp): Use lwpid_of.
19390 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
19391 (linux_resume_one_thread): ... this. Handle resume_stop. In
19392 non-stop mode, don't look for pending flag in all threads.
19393 (resume_status_pending_p): Don't consider explicitly suspended
19394 threads.
19395 (my_waitpid): Reimplement. Emulate __WALL.
19396 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19397 Use lwpid_of.
19398 (sigchld_handler, linux_supports_non_stop, linux_async)
19399 (linux_start_non_stop): New.
19400 (linux_target_ops): Register linux_supports_non_stop, linux_async
19401 and linux_start_non_stop.
19402 (initialize_low): Install SIGCHLD handler.
19403 * thread-db.c (thread_db_create_event, find_one_thread)
19404 (thread_db_get_tls_address): Use lwpid_of.
19405 * win32-low.c (win32_detach): Adjust to use resume_kind.
19406 (win32_wait): Add `options' argument.
19407 * spu-low.c (spu_resume): Adjust to use resume_kind.
19408 (spu_wait): Add `options' argument.
19409
19410 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19411
19412 Decouple target code from remote protocol.
19413
19414 * target.h (enum target_waitkind): New.
19415 (struct target_waitstatus): New.
19416 (struct target_ops) <wait>: Return an unsigned long. Take a
19417 target_waitstatus pointer instead of a char pointer.
19418 (mywait): Likewise.
19419 * target.c (mywait): Change prototype to return an unsigned long.
19420 Take a target_waitstatus pointer instead of a char pointer. Adjust.
19421 * server.h (thread_from_wait, old_thread_from_wait): Delete
19422 declarations.
19423 (prepare_resume_reply): Change prototype to take a
19424 target_waitstatus.
19425 * server.c (thread_from_wait, old_thread_from_wait): Delete.
19426 (last_status, last_ptid): New.
19427 (start_inferior): Remove "statusptr" argument. Adjust. Return a
19428 pid instead of a signal.
19429 (attach_inferior): Remove "status" and "signal" parameters.
19430 Adjust.
19431 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
19432 not as an address.
19433 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
19434 (handle_v_requests, myresume): Remove "status" and "signal"
19435 parameters. Adjust.
19436 (handle_status): New.
19437 (main): Delete local `status'. Adjust.
19438 * remote-utils.c: Include target.h.
19439 (prepare_resume_reply): Change prototype to take a
19440 target_waitstatus. Adjust.
19441
19442 * linux-low.c (linux_wait): Adjust to new target_ops->wait
19443 interface.
19444 * spu-low.c (spu_wait): Adjust.
19445 * win32-low.c (enum target_waitkind, struct target_waitstatus):
19446 Delete.
19447 (win32_wait): Adjust.
19448
19449 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19450
19451 * target.h (struct thread_resume): Delete leave_stopped member.
19452 (struct target_ops): Add a `n' argument to the `resume' callback.
19453 * server.c (start_inferior): Adjust.
19454 (handle_v_cont, myresume): Adjust.
19455 * linux-low.c (check_removed_breakpoint): Adjust to resume
19456 interface change, and to removed leave_stopped field.
19457 (resume_ptr): Delete.
19458 (struct thread_resume_array): New.
19459 (linux_set_resume_request): Add new `arg' parameter. Adjust to
19460 resume interface change.
19461 (linux_continue_one_thread, linux_queue_one_thread)
19462 (resume_status_pending_p): Check if the resume field is NULL
19463 instead of checking the leave_stopped member.
19464 (linux_resume): Adjust to the target resume interface change.
19465 * spu-low.c (spu_resume): Adjust to the target resume interface
19466 change.
19467 * win32-low.c (win32_detach, win32_resume): Ditto.
19468
19469 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19470
19471 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
19472 flag.
19473 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
19474 pending.
19475 (linux_continue_one_thread): Only preserve the stepping flag if
19476 there's a pending breakpoint.
19477
19478 2009-03-31 Pedro Alves <pedro@codesourcery.com>
19479
19480 * server.c (main): After the inferior having exited, call
19481 remote_close before exiting gdbserver.
19482
19483 2009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
19484
19485 Fix size of FPSCR in Power 7 processors.
19486 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
19487 (PPC_FEATURE_HAS_DFP): New #define.
19488 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
19489 size of the FPSCR.
19490
19491 2009-03-23 Pedro Alves <pedro@codesourcery.com>
19492
19493 * server.c (handle_query) Whitespace and formatting.
19494
19495 2009-03-22 Pedro Alves <pedro@codesourcery.com>
19496
19497 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
19498 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
19499 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
19500 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
19501 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
19502 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
19503 Makefile.in, configure.ac: Fix whitespace throughout.
19504 * configure: Regenerate.
19505
19506 2009-03-22 Pedro Alves <pedro@codesourcery.com>
19507
19508 * inferiors.c (find_inferior): Make it safe for the callback
19509 function to delete the currently iterated inferior.
19510
19511 2009-03-22 Pedro Alves <pedro@codesourcery.com>
19512
19513 * Makefile.in (linuw_low_h): Move higher.
19514 (thread-db.o): Depend on $(linux_low_h).
19515
19516 2009-03-17 Pedro Alves <pedro@codesourcery.com>
19517
19518 Rename "process" to "lwp" throughout.
19519
19520 * linux-low.c (all_processes): Rename to...
19521 (all_lwps): ... this.
19522 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
19523 (add_process): Rename to ...
19524 (add_lwp): ... this. Adjust.
19525 (linux_create_inferior): Adjust.
19526 (linux_attach_lwp): Adjust.
19527 (linux_attach): Adjust.
19528 (linux_kill_one_process): Rename to ...
19529 (linux_kill_one_lwp): ... this. Adjust.
19530 (linux_kill): Adjust.
19531 (linux_detach_one_process): Rename to ...
19532 (linux_detach_one_lwp): ... this. Adjust.
19533 (linux_detach): Adjust.
19534 (check_removed_breakpoint): Adjust.
19535 (status_pending_p): Adjust.
19536 (linux_wait_for_process): Rename to ...
19537 (linux_wait_for_lwp): ... this. Adjust.
19538 (linux_wait_for_event): Adjust.
19539 (send_sigstop): Adjust.
19540 (wait_for_sigstop): Adjust.
19541 (stop_all_processes): Rename to ...
19542 (stop_all_lwps): ... this.
19543 (linux_resume_one_process): Rename to ...
19544 (linux_resume_one_lwp): ... this. Adjust.
19545 (linux_set_resume_request, linux_continue_one_thread)
19546 (linux_queue_one_thread, resume_status_pending_p)
19547 (usr_store_inferior_registers, regsets_store_inferior_registers)
19548 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19549 Adjust.
19550 * linux-low.h (get_process): Rename to ...
19551 (get_lwp): ... this. Adjust.
19552 (get_thread_process): Rename to ...
19553 (get_thread_lwp): ... this. Adjust.
19554 (get_process_thread): Rename to ...
19555 (get_lwp_thread): ... this. Adjust.
19556 (struct process_info): Rename to ...
19557 (struct lwp_info): ... this.
19558 (all_processes): Rename to ...
19559 (all_lwps): ... this.
19560 * proc-service.c (ps_lgetregs): Adjust.
19561 * thread-db.c (thread_db_create_event, find_one_thread)
19562 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
19563
19564 2009-03-14 Pedro Alves <pedro@codesourcery.com>
19565
19566 * server.c (handle_query): Handle "qAttached".
19567
19568 2009-03-13 Nathan Sidwell <nathan@codesourcery.com>
19569
19570 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
19571 GPLv3, update license URL.
19572
19573 2009-03-01 Doug Evans <dje@google.com>
19574
19575 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
19576 (server_h): Add gdb_signals.h.
19577 (signals.o): Update.
19578 * server.h (target_signal_from_host,target_signal_to_host_p)
19579 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
19580
19581 2009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
19582
19583 * remote-utils.c (getpkt): Also generate remote-debug
19584 information if noack_mode is set.
19585
19586 2009-02-06 Pedro Alves <pedro@codesourcery.com>
19587
19588 * server.c (handle_query): Report qXfer:siginfo:read and
19589 qXfer:siginfo:write as supported and handle them.
19590 * target.h (struct target_ops) <qxfer_siginfo>: New field.
19591 * linux-low.c (linux_xfer_siginfo): New.
19592 (linux_target_ops): Set it.
19593
19594 2009-01-26 Pedro Alves <pedro@codesourcery.com>
19595
19596 * server.c (gdbserver_usage): Mention --remote-debug.
19597 (main): Accept '--remote-debug' switch.
19598
19599 2009-01-18 Doug Evans <dje@google.com>
19600
19601 * regcache.c (new_register_cache): No need to check result of xcalloc.
19602 * server.c (handle_search_memory): Back out calls to xmalloc,
19603 result is checked and error is returned to user upon failure.
19604 (handle_query): Ditto. Add more checks for result of malloc.
19605 (handle_v_cont): Check result of malloc, report error back to
19606 user upon failure.
19607 (handle_v_run): Ditto. Call freeargv.
19608 * server.h (freeargv): Declare.
19609 * utils.c (freeargv): New fn.
19610
19611 2009-01-15 Doug Evans <dje@google.com>
19612
19613 * gdbreplay.c (perror_with_name): Make arg const char *.
19614 * server.h (target_signal_to_name): Make return type const char *.
19615 * thread-db.c (thread_db_err_str): Make return type const char *.
19616 * utils.c (perror_with_name): Make arg const char *.
19617
19618 2009-01-14 Pedro Alves <pedro@codesourcery.com>
19619
19620 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
19621 when handling a EXIT_PROCESS_DEBUG_EVENT.
19622
19623 2009-01-06 Joel Brobecker <brobecker@adacore.com>
19624
19625 * gdbreplay.c (gdbreplay_version): Update copyright year.
19626 * server.c (gdbserver_version): Likewise.
19627
19628 2009-01-05 Doug Evans <dje@google.com>
19629
19630 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
19631 (handle_extended_wait): Improve comment.
19632
19633 2008-12-13 Doug Evans <dje@google.com>
19634
19635 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
19636 * server.h (ATTR_MALLOC): New macro.
19637 (xmalloc,xcalloc,xstrdup): Declare.
19638 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
19639 * inferiors.c: Ditto.
19640 * linux-low.c: Ditto.
19641 * mem-break.c: Ditto.
19642 * regcache.c: Ditto.
19643 * remote-utils.c: Ditto.
19644 * server.c: Ditto.
19645 * target.c: Ditto.
19646 * win32-low.c: Ditto.
19647
19648 2008-12-12 Doug Evans <dje@google.com>
19649
19650 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
19651 in debugging printf.
19652
19653 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
19654
19655 2008-12-09 Doug Evans <dje@google.com>
19656
19657 * linux-low.h (struct process_info): Delete member tid, unused.
19658 * thread-db.c (find_one_thread): Update.
19659 (maybe_attach_thread): Update.
19660
19661 2008-12-02 Pedro Alves <pedro@codesourcery.com>
19662
19663 * target.h (struct target_ops): Add qxfer_osdata member.
19664 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
19665 and dirent.h.
19666 (linux_qxfer_osdata): New functions.
19667 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
19668 callback.
19669 * server.c (handle_query): Handle "qXfer:osdata:read:".
19670 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
19671 (buffer_xml_printf): New functions.
19672 * server.h (struct buffer): New.
19673 (buffer_grow_str, buffer_grow_str0): New macros.
19674 (buffer_grow, buffer_free, buffer_init, buffer_finish)
19675 (buffer_xml_printf): Declare.
19676
19677 2008-11-24 Doug Evans <dje@google.com>
19678
19679 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
19680
19681 2008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
19682
19683 * server.c (handle_v_run): Always use the supplied argument list.
19684
19685 2008-11-19 Bob Wilson <bob.wilson@acm.org>
19686
19687 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
19688 (xtensa_regmap_table): Add entry for scompare1.
19689
19690 2008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
19691
19692 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
19693 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
19694 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
19695 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
19696 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
19697 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
19698 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
19699 XML target descriptions.
19700 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
19701 when inferior is running on an ISA 2.05 or later processor. Add
19702 special case to return offset for full 64-bit slot of FPSCR when
19703 in 32-bits.
19704
19705 2008-11-14 Daniel Gutson <dgutson@codesourcery.com>
19706
19707 * Makefile.in (SFILES, clean): Added sparc64 files.
19708 (reg-sparc64.o, reg-sparc64.c): New.
19709 * configure.srv (sparc*-*-linux*): New configuration.
19710 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
19711 syscall arguments for SPARC.
19712 (regsets_store_inferior_registers): Likewise.
19713 * linux-sparc-low.c: New file.
19714
19715 2008-10-21 Doug Evans <dje@google.com>
19716
19717 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
19718 (READLINE_DIR,READLINE_DEP): Delete.
19719 (INTERNAL_CFLAGS): Update.
19720 (LINTFLAGS): Update.
19721
19722 2008-10-10 Pedro Alves <pedro@codesourcery.com>
19723
19724 * server.c (handle_v_run): If GDB didn't specify an argv, use the
19725 whole argv from the last run, not just argv[0].
19726
19727 2008-09-08 Pedro Alves <pedro@codesourcery.com>
19728
19729 * regcache.c (new_register_cache): Return NULL if the register
19730 cache size isn't known yet.
19731 (free_register_cache): Avoid dereferencing a NULL regcache.
19732
19733 2008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
19734
19735 * configure.srv: Merge MIPS and MIPS64.
19736
19737 2008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
19738
19739 * Makefile.in (uninstall): Apply $(EXEEXT) too.
19740
19741 2008-08-18 Luis Machado <luisgpm@br.ibm.com>
19742
19743 * Makefile.in: Add required vsx dependencies.
19744
19745 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
19746 Declare init_registers_powerpc_vsx32l.
19747 Declare init_registers_powerpc_vsx64l.
19748 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
19749 (ppc_arch_setup): Check for VSX in hwcap.
19750 (ppc_fill_vsxregset): New function.
19751 (ppc_store_vsxregset): New function.
19752 Add new VSX entry in regset_info target_regsets.
19753
19754 * configure.srv: Add new VSX dependencies.
19755
19756 2008-08-12 Pedro Alves <pedro@codesourcery.com>
19757
19758 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
19759 (remote_open): Set or clear transport_is_reliable.
19760 (putpkt_binary): Don't expect acks in noack mode.
19761 (getpkt): Don't send ack/nac in noack mode.
19762 * server.c (handle_general_set): Handle QStartNoAckMode.
19763 (handle_query): If connected by tcp pass QStartNoAckMode+ in
19764 qSupported.
19765 (main): Reset noack_mode on every connection.
19766 * server.h (noack_mode): Declare.
19767
19768 2008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19769
19770 * Makefile.in (GDBREPLAY_OBS): New variable.
19771 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
19772
19773 2008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
19774 Daniel Jacobowitz <dan@codesourcery.com>
19775
19776 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
19777 (usr_store_inferior_registers): Likewise.
19778 (regsets_store_inferior_registers): Likewise.
19779
19780 2008-07-31 Rolf Jansen <rj@surtec.com>
19781 Pedro Alves <pedro@codesourcery.com>
19782
19783 * configure.ac: Check for memmem declaration.
19784 * server.c [HAVE_MALLOC_H]: Include malloc.h.
19785 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
19786 (disable_packet_qfThreadInfo): Unconditionally compile.
19787 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
19788 * configure, config.in: Regenerate.
19789
19790 2008-07-28 Doug Kwan <dougkwan@google.com>
19791
19792 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
19793 (linux_write_memory): Remove declaration of errno.
19794
19795 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
19796
19797 * linux-low.c (handle_extended_wait): Do not use "status"
19798 variable uninitialized.
19799
19800 2008-07-07 Pedro Alves <pedro@codesourcery.com>
19801
19802 * server.c (handle_v_attach): Inhibit reporting dll changes.
19803
19804 2008-06-27 Pedro Alves <pedro@codesourcery.com>
19805
19806 * remote-utils.c (prepare_resume_reply): If requested, don't
19807 output "thread:TID" in the T stop reply.
19808
19809 * server.c (disable_packet_vCont, disable_packet_Tthread)
19810 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
19811 (handle_query): If requested, disable support for qC, qfThreadInfo
19812 and qsThreadInfo.
19813 (handle_v_requests): If requested, disable support for vCont.
19814 (gdbserver_show_disableable): New.
19815 (main): Handle --disable-packet and --disable-packet=LIST.
19816
19817 * server.h (disable_packet_vCont, disable_packet_Tthread)
19818 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
19819
19820 2008-06-20 Carlos O'Donell <carlos@codesourcery.com>
19821
19822 * server.c (gdbserver_usage): Mention --version.
19823
19824 2008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
19825
19826 * Makefile.in (gdbreplay.o): New rule.
19827
19828 2008-06-06 Joseph Myers <joseph@codesourcery.com>
19829
19830 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
19831 message, not gdbserver.
19832
19833 2008-06-05 Vladimir Prus <vladimir@codesourcery.com>
19834 Nathan Sidwell <nathan@codesourcery.com>
19835 Joseph Myers <joseph@codesourcery.com>
19836
19837 * acinclude.m4: Include ../../config/acx.m4.
19838 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
19839 * configure, config.in: Regenerate.
19840 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
19841 * server.c (gdbserver_version): Print PKGVERSION.
19842 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
19843 (main): Adjust gdbserver_usage calls.
19844 * gdbreplay.c (version, host_name): Add declarations.
19845 (gdbreplay_version, gdbreplay_usage): New.
19846 (main): Accept --version and --help options.
19847
19848 2008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
19849
19850 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
19851 (arm_breakpoint_at): Handle Thumb.
19852 (the_low_target): Add comment.
19853
19854 2008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
19855
19856 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
19857
19858 2008-05-09 Doug Evans <dje@google.com>
19859
19860 * server.h (decode_search_memory_packet): Declare.
19861 * remote-utils.c (decode_search_memory_packet): New fn.
19862 * server.c (handle_search_memory_1): New fn.
19863 (handle_search_memory): New fn.
19864 (handle_query): Process qSearch:memory packets.
19865
19866 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
19867
19868 * regcache.c (registers_length): Remove.
19869 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
19870 full register packet.
19871 * regcache.h (registers_length): Remove prototype.
19872 * server.h (PBUFSIZ): Define to 16384.
19873
19874 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
19875
19876 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
19877 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
19878 powerpc-64l.o, and powerpc-altivec64l.o.
19879 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
19880 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
19881 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
19882 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
19883 rs6000/power-linux.xml, and rs6000/power64-linux.xml
19884 to srv_xmlfiles.
19885
19886 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
19887 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
19888 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
19889 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
19890 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
19891 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
19892 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
19893 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
19894 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
19895 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
19896 (clean): Update.
19897
19898 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
19899 (init_registers_powerpc_32l): ... this new prototype.
19900 (init_registers_powerpc_32): Remove, replace by ...
19901 (init_registers_powerpc_altivec32l): ... this new prototype.
19902 (init_registers_powerpc_e500): Remove, replace by ...
19903 (init_registers_powerpc_e500l): ... this new prototype.
19904 (init_registers_ppc64): Remove, replace by ...
19905 (init_registers_powerpc_64l): ... this new prototype.
19906 (init_registers_powerpc_64): Remove, replace by ...
19907 (init_registers_powerpc_altivec64l): ... this new prototype.
19908 (ppc_num_regs): Set to 73.
19909 (PT_ORIG_R3, PT_TRAP): Define if necessary.
19910 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
19911 (ppc_cannot_store_register): Handle orig_r3 and trap.
19912 (ppc_arch_setup): Update init_registers_... calls.
19913 (ppc_fill_gregset): Handle orig_r3 and trap.
19914
19915 * inferiors.c (clear_inferiors): Reset current_inferior.
19916
19917 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
19918
19919 * acinclude.m4: Add override.m4.
19920 * configure: Regenerate.
19921
19922 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
19923
19924 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
19925 initial call to init_register_ppc64.
19926
19927 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
19928
19929 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
19930 single powerpc*-*-linux* case.
19931 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
19932
19933 2008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
19934
19935 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
19936 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
19937 from reg_xmlfiles.
19938 * linux-ppc-low.c: Include <elf.h>.
19939 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
19940 (ppc_hwcap): New global variable.
19941 (ppc_regmap): Remove __SPE__ #ifdef sections.
19942 (ppc_regmap_e500): New global variable.
19943 (ppc_cannot_store_register): Update __SPE__ special case.
19944 (ppc_get_hwcap): New function.
19945 (ppc_arch_setup): Use it to determine whether inferior supports
19946 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
19947 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
19948 Do not access registers if target does not support AltiVec.
19949 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
19950 Do not access registers if target does not support SPE.
19951 (target_regsets): Unconditionally include AltiVec and SPE regsets.
19952
19953 2008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
19954
19955 * linux-low.c (disabled_regsets, num_regsets): New.
19956 (use_regsets_p): Delete.
19957 (linux_wait_for_process): Clear disabled_regsets.
19958 (regsets_fetch_inferior_registers): Check and set it.
19959 (regsets_store_inferior_registers): Likewise.
19960 (linux_fetch_registers, linux_store_registers): Do not use
19961 use_regsets_p.
19962 (initialize_low): Allocate disabled_regsets.
19963
19964 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
19965
19966 * Makefile.in (LIBOBJS): New.
19967 (OBS): Use LIBOBJS.
19968 (memmem.o): New rule.
19969 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
19970 * configure: Regenerated.
19971
19972 2008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
19973
19974 * server.c (handle_query): Never return "unsupported" for
19975 qXfer:features:read queries.
19976
19977 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
19978
19979 * server.c (get_features_xml): Fix inverted condition.
19980 (handle_query): Always support qXfer:feature:read.
19981
19982 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
19983
19984 * server.c (wrapper_argv): New.
19985 (start_inferior): Handle wrapper_argv. If set, expect an extra
19986 trap.
19987 (gdbserver_usage): Document --wrapper.
19988 (main): Parse --wrapper.
19989
19990 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19991
19992 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
19993 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
19994 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
19995 (ppc_set_pc): Likewise.
19996 (ppc_arch_setup): New function.
19997 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
19998 of collect_register.
19999 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
20000
20001 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20002
20003 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
20004 instead of linux-ppc64-low.o.
20005 * linux-ppc64-low.c: Remove file.
20006 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
20007 (linux-ppc64-low.o): Remove rule.
20008
20009 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
20010 (init_registers_powerpc_64): Likewise.
20011 (ppc_regmap): Conditionally define depending on __powerpc64__.
20012 (ppc_cannot_store_register): Do not special-case "fpscr" when
20013 compiled on __powerpc64__.
20014 (ppc_collect_ptrace_register): New function.
20015 (ppc_supply_ptrace_register): New function.
20016 (ppc_breakpoint): Change type to "unsigned int".
20017 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
20018 (the_low_target): Conditionally provide initializers for the
20019 arch_setup member depending on __powerpc64__. Install
20020 collect_ptrace_register and supply_ptrace_register members.
20021
20022 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20023
20024 * regcache.h (gdbserver_xmltarget): Add extern declaration.
20025 * server.c (gdbserver_xmltarget): Define.
20026 (get_features_xml): Use it to replace "target.xml" and arch_string.
20027
20028 * configure.srv: Remove srv_xmltarget. Add XML files that were
20029 mentioned there to srv_xmlfiles instead. Remove conditional tests
20030 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
20031 srv_xmlfiles and srv_regobj to include all possible choices.
20032 * configure.ac (srv_xmltarget): Remove.
20033 (srv_xmlfiles): Do not add "target.xml".
20034 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
20035 checks for supplementary target information.
20036 * configure: Regenerate.
20037 * Makefile.in (XML_TARGET): Remove.
20038 (target.xml): Remove rule.
20039 (clean): Do not clean up target.xml.
20040 (.PRECIOUS): Do not mention target.xml.
20041
20042 * target.h (struct target_ops): Remove arch_string member.
20043 * linux-low.c (linux_arch_string): Remove.
20044 (linux_target_ops): Remove arch_string initializer.
20045 * linux-low.h (struct linux_target_ops): Remove arch_string member.
20046 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
20047 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
20048 * spu-low.c (spu_arch_string): Remove.
20049 (spu_target_ops): Remove arch_string initializer.
20050 * win32-low.c (win32_arch_string): Remove.
20051 (win32_target_ops): Remove arch_string initializer.
20052 * win32-low.h (struct win32_target_ops): Remove arch_string member.
20053 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
20054 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
20055
20056 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20057
20058 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
20059 by collect_ptrace_register and supply_ptrace_register hooks.
20060 * linux-low.c (fetch_register): Use supply_ptrace_register callback
20061 instead of checking for the_low_target.left_pad_xfer.
20062 (usr_store_inferior_registers): Use collect_ptrace_register callback
20063 instead of checking for the_low_target.left_pad_xfer.
20064
20065 * linux-s390-low.c (s390_collect_ptrace_register): New function.
20066 (s390_supply_ptrace_register): Likewise.
20067 (s390_fill_gregset): Call s390_collect_ptrace_register.
20068 (the_low_target): Update.
20069
20070 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
20071 (ppc_supply_ptrace_register): Likewise.
20072 (the_low_target): Update.
20073
20074 * linux-i386-low.c (the_low_target): Update.
20075 * linux-x86-64-low.c (the_low_target): Update.
20076
20077 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20078
20079 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
20080 reg-s390.o and reg-s390x.o.
20081
20082 * linux-low.c (new_inferior): New global variable.
20083 (linux_create_inferior, linux_attach): Set it.
20084 (linux_wait_for_process): Call the_low_target.arch_setup after the
20085 target has stopped for the first time.
20086 (initialize_low): Do not call the_low_target.arch_setup.
20087
20088 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
20089 (s390_set_pc): Likewise.
20090 (s390_arch_setup): New function.
20091 (the_low_target): Use s390_arch_setup as arch_setup routine.
20092
20093 * regcache.c (realloc_register_cache): New function.
20094 (set_register_cache): Call it for each existing regcache.
20095
20096 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20097
20098 * server.h (init_registers): Remove prototype.
20099
20100 * linux-low.h (struct linux_target_ops): Add arch_setup field.
20101 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
20102 instead of init_registers ().
20103 * linux-arm-low.c (init_registers_arm): Add prototype.
20104 (init_registers_arm_with_iwmmxt): Likewise.
20105 (the_low_target): Add initializer for arch_setup field.
20106 * linux-cris-low.c (init_registers_cris): Add prototype.
20107 (the_low_target): Add initializer for arch_setup field.
20108 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
20109 (the_low_target): Add initializer for arch_setup field.
20110 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
20111 (the_low_target): Add initializer for arch_setup field.
20112 * linux-ia64-low.c (init_registers_ia64): Add prototype.
20113 (the_low_target): Add initializer for arch_setup field.
20114 * linux-m32r-low.c (init_registers_m32r): Add prototype.
20115 (the_low_target): Add initializer for arch_setup field.
20116 * linux-m68k-low.c (init_registers_m68k): Add prototype.
20117 (the_low_target): Add initializer for arch_setup field.
20118 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
20119 (init_registers_mips64_linux): Likewise.
20120 (the_low_target): Add initializer for arch_setup field.
20121 * linux-ppc-low.c (init_registers_ppc): Add prototype.
20122 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
20123 (the_low_target): Add initializer for arch_setup field.
20124 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
20125 (init_registers_powerpc_64): Likewise.
20126 (the_low_target): Add initializer for arch_setup field.
20127 * linux-s390-low.c (init_registers_s390): Add prototype.
20128 (init_registers_s390x): Likewise.
20129 (the_low_target): Add initializer for arch_setup field.
20130 * linux-sh-low.c (init_registers_sh): Add prototype.
20131 (the_low_target): Add initializer for arch_setup field.
20132 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
20133 (the_low_target): Add initializer for arch_setup field.
20134 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
20135 (the_low_target): Add initializer for arch_setup field.
20136
20137 * win32-low.h (struct win32_target_ops): Add arch_setup field.
20138 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
20139 instead of init_registers ().
20140 * win32-arm-low.c (init_registers_arm): Add prototype.
20141 (the_low_target): Add initializer for arch_setup field.
20142 * win32-i386-low.c (init_registers_i386): Add prototype.
20143 (the_low_target): Add initializer for arch_setup field.
20144
20145 * spu-low.c (init_registers_spu): Add prototype.
20146 (initialize_low): Call initialie_registers_spu () instead of
20147 initialize_registers ().
20148
20149 2008-02-19 Pedro Alves <pedro@codesourcery.com>
20150
20151 * server.c (handle_v_requests): When handling the vRun and vAttach
20152 packets, if already debugging a process, don't kill it. Return an
20153 error instead.
20154
20155 2008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
20156
20157 * server.c (handle_query): Correct length check.
20158
20159 2008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
20160
20161 * win32-low.c (do_initial_child_stuff): Add process handle
20162 parameter. Set current_process_handle and current_process_id from the
20163 parameters. Clear globals.
20164 (win32_create_inferior): Don't set current_process_handle and
20165 current_process_id here. Instead pass them on the call to
20166 do_initial_child_stuff.
20167 (win32_attach): Likewise.
20168 (win32_clear_inferiors): New.
20169 (win32_kill): Don't close the current process handle or the
20170 current thread handle here. Instead call win32_clear_inferiors.
20171 (win32_detach): Don't open a new handle to the process. Call
20172 win32_clear_inferiors.
20173 (win32_join): Don't rely on current_process_handle; open a new
20174 handle using the process id.
20175 (win32_wait): Call win32_clear_inferiors when the inferior process
20176 has exited.
20177
20178 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
20179
20180 * server.c (monitor_show_help): Add "exit".
20181
20182 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
20183
20184 * Makefile.in (SFILES): Add linux-xtensa-low.c.
20185 (clean): Add reg-xtensa.c.
20186 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
20187 * configure.srv (xtensa*-*-linux*) New target.
20188 * linux-xtensa-low.c: New.
20189 * xtensa-xtregs.c: New.
20190
20191 2008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
20192
20193 * hostio.c: Don't include errno.h.
20194 (errno_to_fileio_errno): Move to hostio-errno.
20195 * hostio.c: (hostio_error): Remove the error parameter. Defer the
20196 error number outputting to the target->hostio_last_error callback.
20197 (hostio_packet_error): Use FILEIO_EINVAL directly.
20198 (handle_open, handle_pread, hostio_error, handle_unlink): Update
20199 calls to hostio_error.
20200 * hostio-errno.c: New.
20201 * server.h (hostio_last_error_from_errno): Declare.
20202 * target.h (target_ops): Add hostio_last_error member.
20203 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
20204 as hostio_last_error handler.
20205 * spu-low.c (spu_target_ops): Likewise.
20206 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
20207 (wince_hostio_last_error): New functions.
20208 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
20209 as hostio_last_error handler.
20210 (win32_target_ops) [!_WIN32_WCE]: Register
20211 hostio_last_error_from_errno as hostio_last_error handler.
20212 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
20213 (hostio-errno.o): New rule.
20214 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
20215 * configure.srv (srv_hostio_err_objs): New variable. Default to
20216 hostio-errno.o.
20217 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
20218 * configure: Regenerate.
20219
20220 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20221
20222 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
20223 (linux_kill, linux_detach): Clean up the process list.
20224 * remote-utils.c (remote_open): Improve port number parsing.
20225 (putpkt_binary, input_interrupt): Only send interrupts if the target
20226 is running.
20227 * server.c (extended_protocol): Make static.
20228 (attached): Define earlier.
20229 (exit_requested, response_needed, program_argv): New variables.
20230 (target_running): New.
20231 (start_inferior): Clear attached here.
20232 (attach_inferior): Set attached here.
20233 (require_running): Define.
20234 (handle_query): Use require_running and target_running. Implement
20235 "monitor exit".
20236 (handle_v_attach, handle_v_run): New.
20237 (handle_v_requests): Use require_running. Handle vAttach and vRun.
20238 (gdbserver_usage): Update.
20239 (main): Redo argument parsing. Handle --debug and --multi. Handle
20240 --attach along with other options or after the port. Save
20241 program_argv. Support no initial program. Resynchronize
20242 communication with GDB after an error. Handle "monitor exit".
20243 Use require_running and target_running. Always allow the extended
20244 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
20245 restart in extended mode.
20246 * README: Refer to the GDB manual. Update --attach usage.
20247
20248 2007-12-20 Andreas Schwab <schwab@suse.de>
20249
20250 * linux-low.c (STACK_SIZE): Define.
20251 (linux_tracefork_child): Use it. Use __clone2 on ia64.
20252 (linux_test_for_tracefork): Likewise.
20253
20254 2007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
20255
20256 * linux-low.c (linux_wait_for_event): Update messages. Do not
20257 reinsert auto-delete breakpoints.
20258 * mem-break.c (struct breakpoint): Change return type of handler to
20259 int.
20260 (set_breakpoint_at): Update handler type.
20261 (reinsert_breakpoint_handler): Return 1 instead of calling
20262 delete_breakpoint.
20263 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
20264 setting a new one.
20265 (check_breakpoints): Delete auto-delete breakpoints and return 2.
20266 * mem-break.h (set_breakpoint_at): Update handler type.
20267 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
20268 * win32-low.c (auto_delete_breakpoint): New.
20269 (get_child_debug_event): Use it.
20270
20271 2007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
20272
20273 * configure.ac: Check for pread and pwrite.
20274 * hostio.c (handle_pread): Fall back to lseek and read.
20275 (handle_pwrite): Fall back to lseek and write.
20276 * config.in, configure: Regenerated.
20277
20278 2007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
20279
20280 * server.c (myresume): Add own_buf argument.
20281 (main): Update calls.
20282
20283 2007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
20284
20285 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
20286 * remote-utils.c (remote_open): Do not call disable_async_io.
20287 (block_async_io): Delete.
20288 (unblock_async_io): Make static.
20289 (initialize_async_io): New.
20290 * server.c (handle_v_cont): Handle async I/O here.
20291 (myresume): Likewise. Move other common resume tasks here...
20292 (main): ... from here. Call initialize_async_io. Disable async
20293 I/O before the main loop.
20294 * server.h (initialize_async_io): Declare.
20295 (block_async_io, unblock_async_io): Delete prototypes.
20296 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
20297
20298 2007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
20299
20300 * remote-utils.c (readchar): Allow binary data in received messages.
20301
20302 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20303
20304 * win32-low.c (attaching): New global.
20305 (win32_create_inferior): Clear the `attaching' global.
20306 (win32_attach): Set the `attaching' global.
20307 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
20308 attaching. Only set a breakpoint at the entry point if not
20309 attaching.
20310
20311 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20312
20313 * server.c (main): Don't report dll events on the initial
20314 connection on attaches.
20315
20316 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20317
20318 * server.c (main): Relax numerical bases supported for the pid of
20319 the --attach command line argument.
20320
20321 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20322
20323 * win32-low.c (win32_attach): Call OpenProcess before
20324 DebugActiveProcess, not after. Add last error output to error
20325 call.
20326
20327 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20328
20329 * win32-low.c (win32_get_thread_context)
20330 (win32_set_thread_context): New functions.
20331 (thread_rec): Use win32_get_thread_context.
20332 (continue_one_thread, win32_resume): Use win32_set_thread_context.
20333 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
20334 field.
20335
20336 2007-12-03 Leo Zayas
20337 Pedro Alves <pedro_alves@portugalmail.pt>
20338
20339 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
20340 global variables.
20341 (child_add_thread): Minor cleanup.
20342 (child_continue): Resume artificially suspended threads before
20343 calling ContinueDebugEvent.
20344 (suspend_one_thread): New.
20345 (fake_breakpoint_event): New.
20346 (get_child_debug_event): Change return type to int. Check here if
20347 gdb sent an interrupt request. If a soft interrupt was requested,
20348 fake a breakpoint event. Return 0 if there is no event to handle,
20349 and 1 otherwise.
20350 (win32_wait): Don't check here if gdb sent an interrupt request.
20351 Ensure there is a valid event to handle.
20352 (win32_request_interrupt): Add soft interruption method as last
20353 resort.
20354
20355 2007-12-03 Leo Zayas
20356 Pedro Alves <pedro_alves@portugalmail.pt>
20357
20358 * win32-low.h (win32_thread_info): Add descriptions to the
20359 structure members. Replace `suspend_count' counter by a
20360 `suspended' flag.
20361 * win32-low.c (thread_rec): Update condition of when to get the
20362 context from the inferior. Rely on ContextFlags being set if it
20363 has already been retrieved. Only suspend the inferior thread if
20364 we haven't already. Warn if that fails.
20365 (continue_one_thread): s/suspend_count/suspended/. Only call
20366 ResumeThread once. Warn if that fails.
20367
20368 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20369
20370 * win32-low.c (win32_wait): Don't read from the inferior when it
20371 has already exited.
20372
20373 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20374
20375 * Makefile.in (win32_low_h): New variable.
20376 (win32-low.o): Add dependency on $(win32_low_h).
20377 (win32-arm-low.o, win32-i386-low.o): New rules.
20378
20379 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20380
20381 * hostio.c: Correct copyright year.
20382
20383 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20384
20385 * Makefile.in (OBS): Add hostio.o.
20386 (hostio.o): New rule.
20387 * server.h (handle_vFile): Declare.
20388 * hostio.c: New file.
20389 * server.c (handle_v_requests): Take packet_len and new_packet_len
20390 for binary packets. Call handle_vFile.
20391 (main): Update call to handle_v_requests.
20392
20393 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
20394
20395 * linux-low.c: Include <sched.h>.
20396
20397 2007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
20398
20399 * linux-low.c (linux_tracefork_grandchild): New.
20400 (linux_tracefork_child): Use clone.
20401 (linux_test_for_tracefork): Use clone; allocate and free a stack.
20402
20403 2007-10-31 Joel Brobecker <brobecker@adacore.com>
20404
20405 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
20406
20407 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
20408
20409 * linux-low.c (handle_extended_wait): Handle unexpected signals.
20410
20411 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
20412
20413 * inferiors.c (change_inferior_id): Delete.
20414 (add_pid_to_list, pull_pid_from_list): New.
20415 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
20416 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
20417 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
20418 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
20419 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
20420 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
20421 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
20422 (using_threads): Always set to 1.
20423 (handle_extended_wait): New.
20424 (add_process): Do not set TID.
20425 (linux_create_inferior): Set must_set_ptrace_flags.
20426 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
20427 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
20428 (linux_thread_alive): Rename TID argument to LWPID.
20429 (linux_wait_for_process): Handle unknown processes. Do not use TID.
20430 (linux_wait_for_event): Do not use TID or check using_threads. Update
20431 call to dead_thread_notify. Call handle_extended_wait.
20432 (linux_create_inferior): Use PTRACE_SETOPTIONS.
20433 (send_sigstop): Delete sigstop_sent.
20434 (wait_for_sigstop): Avoid TID.
20435 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
20436 (linux_test_for_tracefork): New.
20437 (linux_lookup_signals): Use thread_db_active and
20438 linux_supports_tracefork_flag.
20439 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
20440 * linux-low.h (get_process_thread): Avoid TID.
20441 (struct process_ifo): Move thread_known and tid to the end. Remove
20442 sigstop_sent.
20443 (linux_attach_lwp, thread_db_init): Update prototypes.
20444 * server.h (change_inferior_id): Delete prototype.
20445 (add_pid_to_list, pull_pid_from_list): New prototypes.
20446 * thread-db.c (thread_db_use_events): New.
20447 (find_first_thread): Rename to...
20448 (find_one_thread): ...this. Update callers and messages. Do not
20449 call fatal. Check thread_db_use_events. Do not call
20450 change_inferior_id or new_thread_notify.
20451 (maybe_attach_thread): Update. Do not call new_thread_notify.
20452 (thread_db_init): Set thread_db_use_events. Check use_events.
20453 * utils.c (fatal, warning): Correct message prefix.
20454
20455 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
20456
20457 * Makefile.in (clean): Remove new files.
20458 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
20459 (powerpc-64.o, powerpc-64.c): New rules.
20460 * configure.srv: Use alternate register sets for powerpc64-*-linux*
20461 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
20462 with SPE.
20463 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
20464 SPE targets.
20465 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
20466 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
20467 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
20468 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
20469 (target_regsets): Add AltiVec and SPE register sets.
20470 * configure.ac: Check for AltiVec and SPE.
20471 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
20472 (ppc_fill_vrregset, ppc_store_vrregset): New.
20473 (target_regsets): Add AltiVec register set.
20474 * configure: Regenerated.
20475
20476 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
20477
20478 * linux-low.c (O_LARGEFILE): Define.
20479 (linux_read_memory): Use /proc/PID/mem.
20480 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
20481 * configure, config.in: Regenerated.
20482
20483 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
20484
20485 * linux-low.c (linux_wait_for_event): Do not pass signals while
20486 single-stepping.
20487
20488 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20489
20490 * win32-low.c (create_process): New.
20491 (win32_create_inferior): Use create_process instead of
20492 CreateProcess. If create_process failed retry appending an ".exe"
20493 suffix. Store the GetLastError result immediatelly after
20494 create_process calls and use it on the call to error.
20495
20496 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20497
20498 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
20499
20500 2007-08-23 Joel Brobecker <brobecker@adacore.com>
20501
20502 * configure.ac: Switch license to GPLv3.
20503
20504 2007-08-01 Michael Snyder <msnyder@access-company.com>
20505
20506 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
20507
20508 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
20509
20510 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
20511 typedef.
20512 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
20513 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
20514 CloseToolhelp32Snapshot.
20515 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
20516 CloseToolhelp32Snapshot.
20517
20518 2007-07-27 Michael Snyder <michael.snyder@access-company.com>
20519
20520 * server.c (main): Check for inferior exit before main loop.
20521
20522 2007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
20523
20524 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
20525 instead of on tmp_desc.
20526
20527 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
20528 Daniel Jacobowitz <dan@codesourcery.com>
20529
20530 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
20531 (add_thread): Minor cleanups.
20532 (clear_inferiors): Move lower in the file. Clear the DLL
20533 list.
20534 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
20535 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
20536 (xml_escape_text): New.
20537 * server.c (handle_query): Handle qXfer:libraries:read. Report it
20538 for qSupported.
20539 (handle_v_cont): Report errors.
20540 (gdbserver_version): Update.
20541 (main): Correct size of own_buf. Do not report initial DLL events.
20542 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
20543 (unloaded_dll, xml_escape_text): New.
20544 * win32-low.c (enum target_waitkind): Update comments.
20545 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
20546 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
20547 (win32_EnumProcessModules, win32_GetModuleInformation)
20548 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
20549 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
20550 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
20551 (win32_Module32First, win32_Module32Next, load_toolhelp)
20552 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
20553 (get_child_debug_event): Handle DLL events.
20554 (win32_wait): Likewise.
20555
20556 2007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
20557
20558 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
20559 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
20560
20561 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20562
20563 * win32-low.c (handle_output_debug_string): Ignore event if not
20564 waiting.
20565
20566 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20567
20568 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
20569
20570 2007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
20571
20572 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
20573
20574 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
20575
20576 * inferiors.c (change_inferior_id): Add comment.
20577 * linux-low.c (check_removed_breakpoint): Add an early
20578 prototype. Improve debug output.
20579 (linux_attach): Doc update.
20580 (linux_detach_one_process, linux_detach): Clean up before releasing
20581 each process.
20582 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
20583 * linux-low.h (struct process_info): Doc improvement.
20584 * mem-break.c (delete_all_breakpoints): New.
20585 * mem-break.h (delete_all_breakpoints): New prototype.
20586 * thread-db.c (find_first_thread): New.
20587 (thread_db_create_event): Call it instead of
20588 thread_db_find_new_threads. Clean up unused variables.
20589 (maybe_attach_thread): Remove first thread handling.
20590 (thread_db_find_new_threads): Use find_first_thread.
20591 (thread_db_get_tls_address): Likewise.
20592
20593 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
20594
20595 * thread-db.c (thread_db_find_new_threads): Add prototype.
20596 (thread_db_create_event): Check for the main thread before adding
20597 a new thread.
20598 (maybe_attach_thread): Only enable event reporting if TID == 0.
20599 (thread_db_get_tls_address): Check for new threads.
20600
20601 2007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
20602
20603 * linux-low.c (linux_create_inferior): Try execv before execvp.
20604 * spu-low.c (spu_create_inferior): Likewise.
20605
20606 2007-06-13 Mike Frysinger <vapier@gentoo.org>
20607
20608 * linux-low.c (linux_create_inferior): Change execv to execvp.
20609 * spu-low.c (spu_create_inferior): Likewies.
20610
20611 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
20612
20613 * Makefile.in (clean): Clean new files instead of deleted ones.
20614 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
20615 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
20616 rules.
20617 * configure.srv: Specify XML files and new regformats for MIPS and
20618 MIPS64 GNU/Linux.
20619 * linux-mips-low.c (mips_num_regs): Set to only used registers.
20620 (mips_regmap): Do not fetch $0. Remove unused registers. Add
20621 an entry for the restart register.
20622 (mips_cannot_fetch_register, mips_cannot_store_register)
20623 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
20624 register names to match the XML descriptions.
20625 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
20626 restart register instead of $0.
20627
20628 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20629 Markus Deuling <deuling@de.ibm.com>
20630
20631 * remote-utils.c (decode_xfer_write): New function.
20632 * server.h (decode_xfer_write): Add prototype.
20633 * server.c (handle_query): Add PACKET_LEN argument. Support
20634 qXfer:spu:read and qXfer:spu:write packets.
20635 (main): Pass packet_len to handle_query.
20636 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
20637 * target.h (target_ops): Add qxfer_spu.
20638
20639 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20640
20641 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
20642 accessing non-seekable spufs files.
20643
20644 2007-05-16 Markus Deuling <deuling@de.ibm.com>
20645
20646 * server.c (handle_query): Add reply for qC packet.
20647
20648 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20649 Leo Zayas <lerele@champenstudios@com>
20650
20651 * server.h (check_remote_input_interrupt_request): New function.
20652 * remote_utils.c (INVALID_DESCRIPTOR): New define.
20653 (remote_desc): Initialize with INVALID_DESCRIPTOR.
20654 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
20655 (check_remote_input_interrupt_request): New function.
20656 * server.h (check_remote_input_interrupt_request): Declare.
20657 * win32-low.c (winapi_DebugBreakProcess,
20658 winapi_GenerateConsoleCtrlEvent): New typedefs.
20659 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
20660 to 250 ms.
20661 (win32_wait): Check for remote interrupt request
20662 with check_remote_input_interrupt_request.
20663 (win32_request_interrupt): New function.
20664 (win32_target_op): Set request_interrupt to win32_request_interrupt.
20665
20666 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20667
20668 * win32-low.c (debug_registers_changed,
20669 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
20670 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
20671 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
20672 (thread_rec): Get context using the low target.
20673 (child_add_thread): Call thread_added on the low target,
20674 which does the same thing.
20675 (regptr): Delete.
20676 (do_initial_child_stuff): Remove debug registers references.
20677 Set context using the low target. Resume threads after
20678 setting the contexts.
20679 (child_continue): Remove dead variable. Remove debug
20680 registers references.
20681 (child_fetch_inferior_registers): Go through the low target.
20682 (do_child_store_inferior_registers): Remove.
20683 (child_store_inferior_registers): Go through the low target.
20684 (win32_resume): Remove debug registers references.
20685 Set context using the low target.
20686 (handle_exception): Change return type to void. Don't record
20687 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
20688 first chance exception.
20689 (get_child_debug_event): Change return type to void. Remove
20690 goto loop. Always return after waiting for debug event.
20691 (win32_wait): Convert to switch statement. Handle spurious
20692 events.
20693
20694 * win32-i386-low.c (debug_registers_changed,
20695 debug_registers_used): New.
20696 (initial_stuff): Rename to ...
20697 (i386_initial_stuff): ... this. Clear debug registers
20698 state variables.
20699 (store_debug_registers): Delete.
20700 (i386_get_thread_context): New.
20701 (load_debug_registers): Delete.
20702 (i386_set_thread_context): New.
20703 (i386_thread_added): New.
20704 (single_step): Rename to ...
20705 (i386_single_step): ... this.
20706 (do_fetch_inferior_registers): Rename to ...
20707 (i386_fetch_inferior_register): ... this.
20708 (i386_store_inferior_register): New.
20709 (the_low_target): Adapt to new interface.
20710
20711 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
20712 (arm_get_thread_context): New.
20713 (arm_set_thread_context): New.
20714 (regptr): New.
20715 (do_fetch_inferior_registers): Rename to ...
20716 (arm_fetch_inferior_register): ... this.
20717 (arm_store_inferior_register): New.
20718 (arm_wince_breakpoint): Reimplement as unsigned long.
20719 (arm_wince_breakpoint_len): Define.
20720 (the_low_target): Adapt to new interface.
20721
20722 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
20723 load_debug_registers. Add get_thread_context, set_thread_context,
20724 thread_added and store_inferior_register. Rename
20725 fetch_inferior_registers to fetch_inferior_register.
20726 (regptr): Remove declaration.
20727
20728 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20729
20730 * linux-low.c (linux_detach): Change return type to int. Return 0.
20731 * spu-low.c (spu_detach): Likewise.
20732
20733 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20734
20735 * target.h (target_ops): Change return type of detach to int.
20736 Add join.
20737 (join_inferior): New.
20738 * server.c (main): Don't skip detach support on mingw32.
20739 If the inferior doesn't support detaching return error.
20740 Call join_inferior instead of using waitpid.
20741 * linux-low.c (linux_join): New.
20742 (linux_target_op): Add linux_join.
20743 * spu-low.c (spu_join): New.
20744 (spu_target_ops): Add spu_join.
20745 * win32-low.c (win32_detach): Adapt to new interface.
20746 Reopen current_process_handle before detaching. Issue a child
20747 resume before detaching.
20748 (win32_join): New.
20749 (win32_target_op): Add win32_join.
20750
20751 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20752
20753 * win32-low.c (win32-attach): Fix return value.
20754 * target.h (target_ops): Describe ATTACH return values.
20755
20756 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20757
20758 * win32-low.c (GETPROCADDRESS): Define.
20759 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
20760 (winapi_DebugSetProcessKillOnExit): Likewise.
20761 (win32_create_inferior): Force usage of ansi CreateProcessA.
20762 (win32_attach): Use GETPROCADDRESS.
20763 (win32_detach): Likewise.
20764
20765 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20766
20767 * win32-low.c (win32_wait): Don't use WSTOPSIG.
20768
20769 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
20770
20771 * win32-low.c: Commit leftover changes from 2007-03-29.
20772
20773 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20774
20775 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
20776 fields short instead of int. Add explicit padding.
20777 (i387_cache_to_fsave): Remove unnecessary casts.
20778 (i387_fsave_to_cache): Doc fix.
20779 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
20780
20781 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20782
20783 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
20784 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
20785
20786 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20787
20788 * configure.srv (arm*-*-mingw32ce*): Move near the other
20789 arm targets.
20790
20791 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20792
20793 * configure.ac: Add errno checking.
20794 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
20795 sys/file.h and malloc.h.
20796 (AC_CHECK_DECLS): Add perror.
20797 (srv_mingwce): Handle.
20798 * configure.srv (i[34567]86-*-cygwin*): Add
20799 win32-i386-low.o to srv_tgtobj.
20800 (i[34567]86-*-mingw*): Likewise.
20801 (arm*-*-mingw32ce*): Add case.
20802 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20803 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
20804 [__MINGW32CE__] (strerror): New function.
20805 [__MINGW32CE__] (errno): Define to GetLastError.
20806 [__MINGW32CE__] (COUNTOF): New macro.
20807 (remote_open): Remove extra close call.
20808 * mem-break.c (delete_breakpoint_at): New function.
20809 * mem-break.h (delete_breakpoint_at): Declare.
20810 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20811 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
20812 [USE_WIN32API] (read, write): Add char* casts.
20813 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
20814 * server.h: Include wincecompat.h on Windows CE.
20815 [HAVE_ERRNO_H]: Check.
20816 (perror): Declare if not declared.
20817 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
20818 (perror_with_name): Remove errno declaration.
20819 * wincecompat.h: New.
20820 * wincecompat.c: New.
20821 * win32-low.h: New.
20822 * win32-arm-low.c: New.
20823 * win32-i386-low.c: New.
20824 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
20825 (OUTMSG2): Make it safe.
20826 (_T): New macro.
20827 (COUNTOF): New macro.
20828 (NUM_REGS): Get it from the low target.
20829 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
20830 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
20831 (thread_rec): Let low target handle debug registers.
20832 (child_add_thread): Likewise.
20833 (child_init_thread_list): Likewise.
20834 (continue_one_thread): Likewise.
20835 (regptr): New.
20836 (do_child_fetch_inferior_registers): Move to ...
20837 * win32-i386-low.c: ... here, and rename to ...
20838 (do_fetch_inferior_registers): ... this.
20839 * win32-low.c (child_fetch_inferior_registers):
20840 Go through the low target.
20841 (do_child_store_inferior_registers): Use regptr.
20842 (strwinerror): New function.
20843 (win32_create_inferior): Handle Windows CE.
20844 Use strwinerror instead of strerror on Windows error
20845 codes. Add program to the error output.
20846 Don't close the main thread handle on Windows CE.
20847 (win32_attach): Use coredll.dll on Windows CE.
20848 (win32_kill): Close current process and current
20849 thread handles.
20850 (win32_detach): Use coredll.dll on Windows CE.
20851 (win32_resume): Let low target handle debug registers, and
20852 step request.
20853 (handle_exception): Add/Remove initial breakpoint. Avoid
20854 non-existant WSTOPSIG on Windows CE.
20855 (win32_read_inferior_memory): Cast to remove warning.
20856 (win32_arch_string): Go through the low target.
20857 (initialize_low): Call set_breakpoint_data with the low
20858 target's breakpoint.
20859 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
20860 FOP_REGNUM, mappings): Move to ...
20861 * win32-i386-low.c: ... here.
20862 * win32-low.c (win32_thread_info): Move to ...
20863 * win32-low.h: ... here.
20864 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
20865 win32-arm-low.c and wincecompat.c.
20866 (all:): Add $EXEEXT.
20867 (install-only:): Likewise.
20868 (gdbserver:): Likewise.
20869 (gdbreplay:): Likewise.
20870 * config.in: Regenerate.
20871 * configure: Regenerate.
20872
20873 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20874
20875 * win32-low.c: Rename typedef thread_info to
20876 win32_thread_info throughout.
20877
20878 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20879
20880 * win32-i386-low.c: Rename to ...
20881 * win32-low.c: ... this.
20882 * configure.srv: Replace win32-i386-low.o with win32-low.o.
20883 * Makefile.in: Likewise.
20884
20885 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
20886
20887 * remote-utils.c (monitor_output): Constify msg parameter.
20888 * server.h (monitor_output): Likewise.
20889 * win32-i386-low.c (handle_output_debug_string): New.
20890 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
20891 handle_output_debug_string.
20892 (get_child_debug_event): Likewise.
20893
20894 2007-03-27 Mat Hostetter <mat@lcs.mit.edu>
20895
20896 * server.c (main): Correct strtoul check.
20897
20898 2007-03-27 Jon Ringle <jon@ringle.org>
20899
20900 * linux-low.c: Check __ARCH_HAS_MMU__ also.
20901
20902 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
20903
20904 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
20905
20906 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
20907
20908 * terminal.h: Check HAVE_SGTTY_H.
20909
20910 2007-02-27 Mat Hostetter <mat@lcs.mit.edu>
20911
20912 * remote-utils.c (remote_open): Print out the assigned port number.
20913
20914 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
20915
20916 * remote-utils.c (monitor_output): New function.
20917 * server.c (debug_threads): Define here.
20918 (monitor_show_help): New function.
20919 (handle_query): Handle qRcmd.
20920 (main): Do not handle 'd' packet.
20921 * server.h (debug_threads, remote_debug, monitor_output): Declare.
20922 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
20923 of debug_threads.
20924
20925 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20926
20927 * Makefile.in (EXEEXT): New.
20928 (clean): Use $(EXEEXT).
20929
20930 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20931
20932 * target.h (target_ops): Rename send_signal to request_interrupt,
20933 and remove enum target_signal parameter.
20934 * linux-low.c (linux_request_interrupt): Rename from
20935 linux_send_signal, and always send SIGINT.
20936 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
20937 and always send SIGINT.
20938 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
20939 of send_signal.
20940 (input_interrupt): Likewise.
20941
20942 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20943
20944 * server.c (get_features_xml): Check if target implemented
20945 arch_string.
20946 * win32-i386-low.c (win32_arch_string): New.
20947 (win32_target_ops): Add win32_arch_string as arch_string member.
20948
20949 2007-02-22 Markus Deuling <deuling@de.ibm.com>
20950
20951 * spu-low.c (spu_arch_string): New.
20952 (spu_target_ops): Add spu_arch_string.
20953
20954 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
20955
20956 * remote-utils.c: Remove HAVE_TERMINAL_H check.
20957 * configure.ac: Do not check for terminal.h.
20958 * configure, config.in: Regenerated.
20959
20960 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
20961
20962 * Makefile.in (OBS): Add $(XML_BUILTIN).
20963 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
20964 (clean): Update.
20965 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
20966 (arm-with-iwmmxt.c): New.
20967 * config.in, configure: Regenerate.
20968 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
20969 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
20970 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
20971 (arm*-*-linux*): Add iWMMXt and regset support.
20972 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
20973 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
20974 (arm_store_wmmxregset, target_regsets): New.
20975 * server.c (get_features_xml): Take annex argument. Check builtin
20976 XML documents.
20977 (handle_query): Handle multiple annexes.
20978
20979 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20980
20981 * remote-utils.c [USE_WIN32API] (read, write): Define.
20982 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
20983 write.
20984
20985 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
20986
20987 * linux-i386-low.c (the_low_target): Set arch_string.
20988 * linux-x86-64-low.c (the_low_target): Likewise.
20989 * linux-low.c (linux_arch_string): New.
20990 (linux_target_ops): Add it.
20991 * linux-low.h (struct linux_target_ops): Add arch_string.
20992 * server.c (write_qxfer_response): Use const void * for DATA.
20993 (get_features_xml): New.
20994 (handle_query): Handle qXfer:features:read. Report it for qSupported.
20995 * target.h (struct target_ops): Add arch_string method.
20996
20997 2007-01-03 Denis Pilat <denis.pilat@st.com>
20998 Daniel Jacobowitz <dan@codesourcery.com>
20999
21000 * linux-low.c (linux_kill): Handle being called with no threads.
21001 * win32-i386-low.c (win32_kill): Likewise.
21002 (get_child_debug_event): Clear current_process_handle.
21003
21004 2006-12-30 Denis PILAT <denis.pilat@st.com>
21005 Daniel Jacobowitz <dan@codesourcery.com>
21006
21007 * remote-utils.c (remote_open): Check the type of specified
21008 serial port devices before opening them.
21009 * server.c (main): Kill the inferior if an error occurs during
21010 the first remote_open.
21011
21012 2006-12-05 Markus Deuling <deuling@de.ibm.com>
21013
21014 * README: Update supported targets.
21015
21016 2006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
21017
21018 * Makefile.in (clean): Remove reg-mips64.c.
21019 (reg-mips64.c, reg-mips64.o): New rules.
21020 * configure.srv: Handle mips64. Include regset support for mips.
21021 * linux-mips-low.c (union mips_register): New.
21022 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
21023 (mips_breakpoint, mips_breakpoint_at): Use int.
21024 (mips_collect_register, mips_supply_register)
21025 (mips_collect_register_32bit, mips_supply_register_32bit)
21026 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
21027 (mips_store_fpregset, target_regsets): New.
21028 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
21029
21030 2006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
21031
21032 * configure.srv: Add target "spu*-*-*".
21033 * Makefile.in (clean): Remove reg-spu.c.
21034 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
21035 * spu-low.c: New file.
21036
21037 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21038
21039 * configure.ac: Correct td_thr_tls_get_addr test.
21040 * configure: Regenerated.
21041
21042 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21043
21044 * linux-low.c (linux_wait_for_event): Reformat. Use the
21045 pass_signals array.
21046 * remote-utils.c (decode_address_to_semicolon): New.
21047 * server.c (pass_signals, handle_general_set): New.
21048 (handle_query): Mention QPassSignals for qSupported.
21049 (main): Call handle_general_set.
21050 * server.h (pass_signals, decode_address_to_semicolon): New.
21051
21052 2006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
21053
21054 * server.c (handle_query): Correct error handling for read_auxv.
21055
21056 2005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
21057
21058 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
21059 and srv_linux_thread_db to yes.
21060 * linux-s390-low.c (s390_fill_gregset): New function.
21061 (target_regsets): Define data structure.
21062
21063 2006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
21064
21065 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
21066 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
21067 * config.in, configure: Regenerated.
21068 * inferiors.c (gdb_id_to_thread): New function.
21069 (gdb_id_to_thread_id): Use it.
21070 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
21071 * linux-low.h (struct process_info): Add th member.
21072 (thread_db_get_tls_address): New prototype.
21073 * remote-utils.c (decode_address): Make non-static.
21074 * server.c (handle_query): Handle qGetTLSAddr.
21075 * server.h (gdb_id_to_thread, decode_address): New prototypes.
21076 * target.h (struct target_ops): Add get_tls_address.
21077 * thread-db.c (maybe_attach_thread): Save the thread handle.
21078 (thread_db_get_tls_address): New.
21079
21080 2006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
21081
21082 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
21083 (linux_resume_one_process): Take a siginfo_t *. Update all
21084 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
21085 (struct pending_signals): Add a siginfo_t.
21086 (linux_wait_for_process): Always set last_status.
21087 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
21088 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
21089 * linux-low.h (struct process_info): Add last_status.
21090
21091 2006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
21092
21093 * remote-utils.c (try_rle): New function.
21094 (putpkt_binary): Use it.
21095
21096 2006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
21097
21098 * Makefile.in (clean): Clean reg-x86-64-linux.c.
21099 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
21100 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
21101 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
21102 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
21103 point registers.
21104
21105 2006-08-08 Richard Sandiford <richard@codesourcery.com>
21106
21107 * server.c (terminal_fd): New variable.
21108 (old_foreground_pgrp): Likewise.
21109 (restore_old_foreground_pgrp): New function.
21110 (start_inferior): Record the terminal file descriptor in terminal_fd
21111 and its original foreground group in old_foreground_pgrp. Register
21112 restore_old_foreground_pgrp with atexit().
21113
21114 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
21115
21116 * server.c (handle_query): Correct qPart to qXfer.
21117
21118 2006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
21119
21120 * configure.ac: Check for more headers which are missing on
21121 Windows. Automatically supply -lwsock32 and USE_WIN32API.
21122 * configure.srv: Add Cygwin and mingw32.
21123 * remote-utils.c: Don't include headers unconditionally which
21124 are missing on mingw32. Include <winsock.h> for mingw32.
21125 (remote_open): Adjust for mingw32 support. Flush
21126 standard error after writing to it.
21127 (remote_close, putpkt_binary, input_interrupt, block_async_io)
21128 (unblock_async_io, enable_async_io, disable_async_io)
21129 (readchar, getpkt): Update for Winsock support.
21130 (prepare_resume_reply): Expect a protocol signal number.
21131 * server.c: Disable <sys/wait.h> on mingw32.
21132 (start_inferior): Adjust for mingw32 support. Flush
21133 standard error after writing to it.
21134 (attach_inferior): Likewise. Use protocol signal
21135 numbers.
21136 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
21137 and names.
21138 * win32-i386-low.c: New file.
21139 * Makefile.in (XM_CLIBS): Set.
21140 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
21141 (win32-i386-low.o): New dependency rule.
21142 * linux-low.c (linux_wait): Use target signal numbers.
21143 * target.h (struct target_ops): Doc fix.
21144 * server.h (target_signal_to_name): New prototype.
21145 * gdbreplay.c: Don't include headers unconditionally which
21146 are missing on mingw32. Include <winsock.h> for mingw32.
21147 (remote_close, remote_open): Adjust for Winsock support.
21148 * configure, config.in: Regenerated.
21149
21150 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
21151
21152 * server.c (decode_xfer_read, write_qxfer_response): New.
21153 (handle_query): Take a packet length argument. Handle
21154 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
21155 the qSupported response.
21156 (main): Update call to handle_query.
21157
21158 2006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
21159
21160 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
21161 (putpkt_binary): Renamed from putpkt and adjusted for binary
21162 data.
21163 (putpkt): New wrapper for putpkt_binary.
21164 (readchar): Don't mask off the high bit.
21165 (decode_X_packet): New function.
21166 * server.c (main): Call putpkt_binary if a handler sets the packet
21167 length. Save the length of the incoming packet. Handle 'X'.
21168 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
21169
21170 2006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
21171
21172 * server.c (handle_query): Handle qSupported.
21173
21174 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21175
21176 * remote-utils.c (all_symbols_looked_up): New variable.
21177 (look_up_one_symbol): Check it.
21178 * server.h (look_up_one_symbol): New declaration.
21179 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
21180
21181 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21182
21183 * Makefile.in (linux-arm-low.o): Update dependencies.
21184 * linux-arm-low.c: Include "gdb_proc_service.h".
21185 (PTRACE_GET_THREAD_AREA): Define.
21186 (ps_get_thread_area): New function.
21187
21188 2006-05-09 Nathan Sidwell <nathan@codesourcery.com>
21189
21190 * configure.srv (m68k*-*-uclinux*): New target.
21191 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
21192 (linux_resume_one_process): Remove extraneous cast.
21193 (linux_read_offsets): New.
21194 (linux_target_op): Add linux_read_offsets on mmuless systems.
21195 * server.c (handle_query): Add qOffsets logic.
21196 * target.h (struct target_ops): Add read_offsets.
21197
21198 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21199
21200 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
21201 (PTRACE_GET_THREAD_AREA): Define.
21202 (ps_get_thread_area): New function.
21203 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
21204 (linux-x86-64-low.o): Update.
21205
21206 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21207
21208 * configure.ac: Remove checks for prfpregset_t.
21209 * gdb_proc_service.h: New file.
21210 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
21211 new "gdb_proc_service.h".
21212 * proc-service.c: Likewise.
21213 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
21214 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
21215 * Makefile.in (gdb_proc_service_h): Updated.
21216 * configure, config.in: Regenerated.
21217
21218 2006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21219
21220 * remote-utils.c (prepare_resume_reply): Move declaration
21221 of gdb_id_from_wait to the top of the block.
21222
21223 2006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
21224
21225 * linux-low.c (regsets_store_inferior_registers): Read the regset
21226 from the target before filling it.
21227
21228 2006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21229
21230 * server.c (attach_inferior): Return SIGTRAP for a successful
21231 attach.
21232
21233 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
21234
21235 * Makefile.in (OBS): Add version.o.
21236 (STAGESTUFF): Delete.
21237 (version.o): Add dependencies.
21238 (version.c): Replace rule.
21239 (clean): Remove version.c.
21240 * server.c (gdbserver_version): New.
21241 (gdbserver_usage): Use printf.
21242 (main): Handle --version and --help.
21243 * server.h (version, host_name): Add declarations.
21244
21245 2005-12-23 Eli Zaretskii <eliz@gnu.org>
21246
21247 * linux-arm-low.c:
21248 * linux-arm-low.c:
21249 * inferiors.c:
21250 * i387-fp.h:
21251 * i387-fp.c:
21252 * gdbreplay.c:
21253 * regcache.c:
21254 * proc-service.c:
21255 * mem-break.h:
21256 * mem-break.c:
21257 * linux-x86-64-low.c:
21258 * linux-sh-low.c:
21259 * linux-s390-low.c:
21260 * linux-ppc64-low.c:
21261 * linux-ppc-low.c:
21262 * linux-mips-low.c:
21263 * linux-m68k-low.c:
21264 * linux-m32r-low.c:
21265 * linux-low.h:
21266 * linux-low.c:
21267 * linux-ia64-low.c:
21268 * linux-i386-low.c:
21269 * linux-crisv32-low.c:
21270 * thread-db.c:
21271 * terminal.h:
21272 * target.h:
21273 * target.c:
21274 * server.h:
21275 * server.c:
21276 * remote-utils.c:
21277 * regcache.h:
21278 * utils.c:
21279 * Makefile.in:
21280 * configure.ac:
21281 * gdbserver.1: Add (C) after Copyright. Update the FSF
21282 address.
21283
21284 2005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
21285
21286 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
21287 (arm_breakpoint_at): Recognize both breakpoints.
21288 (the_low_target): Use the correct breakpoint instruction.
21289
21290 2005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
21291
21292 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
21293 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
21294 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
21295 (the_low_target): Update.
21296
21297 2005-10-25 Andreas Schwab <schwab@suse.de>
21298
21299 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
21300
21301 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
21302 (ia64_num_regs): Reduce to 462.
21303
21304 2005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
21305
21306 * acinclude.m4: Correct quoting.
21307 * aclocal.m4: Regenerated.
21308
21309 Suggested by SZOKOVACS Robert <szo@ies.hu>:
21310 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
21311 (thread_db_init): Call thread_db_err_str.
21312 * configure.ac: Check for TD_VERSION.
21313 * config.in, configure: Regenerated.
21314
21315 2005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21316
21317 * server.h (error, fatal, warning): Add ATTR_FORMAT.
21318
21319 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21320
21321 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
21322 is not available. Define HAVE_PTRACE_GETREGS if it is.
21323 * config.in, configure: Regenerated.
21324 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
21325 * linux-i386-low.c, linux-m68k-low.c: Update to use
21326 HAVE_PTRACE_GETREGS.
21327 * linux-low.c (regsets_fetch_inferior_registers)
21328 (regsets_store_inferior_registers): Only return 0 if we processed
21329 GENERAL_REGS.
21330 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
21331 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
21332
21333 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21334
21335 * inferiors.c (struct thread_info): Add gdb_id.
21336 (add_thread): Add gdb_id argument.
21337 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
21338 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
21339 calls to add_thread.
21340 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
21341 * server.c (handle_query): Use thread_to_gdb_id.
21342 (handle_v_cont, main): Use gdb_id_to_thread_id.
21343 * server.h (add_thread): Update prototype.
21344 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
21345 prototypes.
21346
21347 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21348
21349 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
21350 left-padded registers.
21351 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
21352 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
21353
21354 2005-07-01 Steve Ellcey <sje@cup.hp.com>
21355
21356 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
21357 * configure: Regenerate.
21358 * config.in: Regenerate.
21359 * server.h (NEED_DECLARATION_STRERROR):
21360 Replace with !HAVE_DECL_STRERROR.
21361
21362 2005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
21363
21364 * linux-low.c (linux_wait, linux_send_signal): Don't test
21365 an unsigned long variable for > 0 if it could be MAX_ULONG.
21366 * server.c (myresume): Likewise.
21367 * target.c (set_desired_inferior): Likewise.
21368
21369 2005-06-13 Mark Kettenis <kettenis@gnu.org>
21370
21371 * configure.ac: Simplify and improve check for socklen_t.
21372 * configure, config.in: Regenerate.
21373
21374 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
21375
21376 * acconfig.h: Remove.
21377 * configure.ac: Add a test for socklen_t. Use three-argument
21378 AC_DEFINE throughout.
21379 * config.in: Regenerated using autoheader 2.59.
21380 * configure: Regenerated.
21381
21382 * gdbreplay.c (socklen_t): Provide a default.
21383 (remote_open): Use socklen_t.
21384 * remote-utils.c (socklen_t): Provide a default.
21385 (remote_open): Use socklen_t.
21386 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
21387 unsigned char.
21388
21389 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
21390 char for buffers.
21391 * linux-low.c (linux_read_memory, linux_write_memory)
21392 (linux_read_auxv): Likewise.
21393 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
21394 (check_mem_write): Likewise.
21395 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
21396 Likewise.
21397 * regcache.c (struct inferior_rgcache_data, registers_to_string)
21398 (registers_from_string, register_data): Likewise.
21399 * server.c (handle_query, main): Likewise.
21400 * server.h (convert_ascii_to_int, convert_int_to_ascii)
21401 (decode_M_packet): Likewise.
21402 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
21403 * target.h (struct target_ops): Update read_memory, write_memory,
21404 and read_auxv.
21405 (read_inferior_memory, write_inferior_memory): Update.
21406 * linux-low.h (struct linux_target_ops): Change type of breakpoint
21407 to unsigned char *.
21408 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
21409 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
21410 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
21411 linux-s390-low.c, linux-sh-low.c: Update for changes in
21412 read_inferior_memory and the_low_target->breakpoint.
21413
21414 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
21415
21416 * Makefile.in (SFILES): Add linux-ppc64-low.c.
21417 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
21418 * configure.srv: Add powerpc64-*-linux*.
21419 * linux-ppc64-low.c: New file.
21420
21421 2005-05-23 Orjan Friberg <orjanf@axis.com>
21422
21423 * linux-cris-low.c: New file with support for CRIS.
21424 * linux-crisv32-low.c: Ditto for CRISv32.
21425 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
21426 (clean): Add reg-cris.c and reg-crisv32.c.
21427 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
21428 reg-crisv32.o, and reg-crisv32.c to make rules.
21429 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
21430 recognized targets.
21431
21432 2005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
21433
21434 * linux-low.c (fetch_register): Ensure buffer size is a multiple
21435 of sizeof (PTRACE_XFER_TYPE).
21436 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
21437
21438 2005-05-12 Orjan Friberg <orjanf@axis.com>
21439
21440 * target.h (struct target_ops): Add insert_watchpoint,
21441 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
21442 pointers for hardware watchpoint support.
21443 * linux-low.h (struct linux_target_ops): Ditto.
21444 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
21445 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
21446 to linux_target_ops.
21447 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
21448 reply packet.
21449 * server.c (main): Recognize 'Z' and 'z' packets.
21450
21451 2005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
21452
21453 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
21454 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
21455 (the_low_target): Add new members.
21456
21457 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21458
21459 * proc-service.c (ps_lgetregs): Search all_processes instead of
21460 all_threads.
21461
21462 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21463
21464 * server.c (start_inferior): Change return type to int.
21465 (attach_inferior): Change sigptr to int *.
21466 (handle_v_cont, handle_v_requests): Change signal to int *.
21467 (main): Change signal to int.
21468
21469 2005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
21470
21471 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
21472 * configure.srv: Add m32r*-*-linux*.
21473 * linux-m32r-low.c: New file.
21474
21475 2005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
21476
21477 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
21478
21479 2005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21480
21481 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
21482 Take unsigned long arguments for PIDs.
21483 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
21484 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
21485 (wait_for_sigstop, linux_resume_one_process)
21486 (regsets_fetch_inferior_registers, linux_send_signal)
21487 (linux_read_auxv): Likewise. Update the types of variables holding
21488 PIDs. Update format string specifiers.
21489 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
21490 * remote-utils.c (prepare_resume_reply): Likewise.
21491 * server.c (cont_thread, general_thread, step_thread)
21492 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
21493 unsigned long.
21494 (handle_query): Update format specifiers.
21495 (handle_v_cont, main): Use strtoul for thread IDs.
21496 * server.h (struct inferior_list_entry): Use unsigned long for ID.
21497 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
21498 (general_thread, step_thread, thread_from_wait)
21499 (old_thread_from_wait): Update.
21500 * target.h (struct thread_resume): Use unsigned long for THREAD.
21501 (struct target_ops): Use unsigned long for arguments to attach and
21502 thread_alive.
21503
21504 2005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
21505
21506 * acinclude.m4: Include bfd/bfd.m4 directly.
21507 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
21508 <agriffis@toolchain.org>.
21509 * aclocal.m4, configure: Regenerated.
21510
21511 2005-01-07 Andrew Cagney <cagney@gnu.org>
21512
21513 * configure.ac: Rename configure.in, require autoconf 2.59.
21514 * configure: Re-generate.
21515
21516 2004-12-08 Daniel Jacobowitz <dan@debian.org>
21517
21518 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
21519 LIBS when finished.
21520 * aclocal.m4: Regenerated.
21521 * configure: Regenerated.
21522
21523 2004-11-21 Andreas Schwab <schwab@suse.de>
21524
21525 * linux-m68k-low.c (m68k_num_gregs): Define.
21526 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
21527 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
21528 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
21529 (m68k_breakpoint_at): New. Add to the_low_target.
21530
21531 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
21532 srv_linux_thread_db to yes.
21533
21534 2004-10-20 Joel Brobecker <brobecker@gnat.com>
21535
21536 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
21537 (ARCH_SET_FS): Likewise.
21538 (ARCH_GET_FS): Likewise.
21539 (ARCH_GET_GS): Likewise.
21540
21541 2004-10-16 Daniel Jacobowitz <dan@debian.org>
21542
21543 * linux-i386-low.c (ps_get_thread_area): New.
21544 * linux-x86-64-low.c (ps_get_thread_area): New.
21545 * linux-low.c: Include <sys/syscall.h>.
21546 (linux_kill_one_process): Don't kill the first thread here.
21547 (linux_kill): Kill the first thread here.
21548 (kill_lwp): New function.
21549 (send_sigstop, linux_send_signal): Use it.
21550 * proc-service.c: Clean up #ifdefs.
21551 (fpregset_info): Delete.
21552 (ps_lgetregs): Update and enable implementation.
21553 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
21554 implementations.
21555 * remote-utils.c (struct sym_cache, symbol_cache): New.
21556 (input_interrupt): Print a clearer message.
21557 (async_io_enabled): New variable.
21558 (enable_async_io, disable_async_io): Use it. Update comments.
21559 (look_up_one_symbol): Use the symbol cache.
21560 * thread-db.c (thread_db_look_up_symbols): New function.
21561 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
21562
21563 2004-10-16 Daniel Jacobowitz <dan@debian.org>
21564
21565 * configure.in: Test for -rdynamic.
21566 * configure: Regenerated.
21567 * Makefile (INTERNAL_LDFLAGS): New.
21568 (gdbserver, gdbreplay): Use it.
21569
21570 2004-09-02 Andrew Cagney <cagney@gnu.org>
21571
21572 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
21573
21574 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
21575
21576 * linux-low.c (linux_wait): Clear all_processes list also.
21577
21578 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
21579
21580 * linux-low.c: Include <errno.h>. Remove extern declaration of
21581 errno.
21582
21583 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
21584
21585 * gdbreplay.c, server.h, utils.c: Update copyright years.
21586
21587 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21588
21589 * server.c (main): Print child status or termination signal from
21590 variable 'signal', not 'sig'.
21591
21592 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21593
21594 * linux-low.c (linux_read_memory): Change return type to
21595 int. Check for and return error from ptrace().
21596 * target.c (read_inferior_memory): Change return type to int. Pass
21597 back return status from the_target->read_memory().
21598 * target.h (struct target_ops): Adapt *read_memory() prototype.
21599 Update comment.
21600 (read_inferior_memory): Adapt prototype.
21601 * server.c (main): Return an error packet if
21602 read_inferior_memory() returns an error.
21603
21604 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
21605
21606 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
21607 Unify with other clean targets.
21608
21609 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21610
21611 * server.c (handle_v_cont): Call set_desired_inferior.
21612
21613 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21614
21615 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
21616
21617 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21618
21619 * linux-low.c (linux_wait): Unblock async I/O.
21620 (linux_resume): Block and enable async I/O.
21621 * remote-utils.c (block_async_io, unblock_async_io): New functions.
21622 * server.h (block_async_io, unblock_async_io): Add prototypes.
21623
21624 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21625
21626 * remote-utils.c (remote_open): Print a status notice after
21627 opening a TCP port.
21628 * server.c (attach_inferior): Print a status notice after
21629 attaching.
21630
21631 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21632
21633 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
21634
21635 2004-02-26 Daniel Jacobowitz <drow@mvista.com>
21636
21637 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
21638 error packet.
21639 * server.c, target.h: Update copyright years.
21640
21641 2004-02-25 Roland McGrath <roland@redhat.com>
21642
21643 * target.h (struct target_ops): New member `read_auxv'.
21644 * server.c (handle_query): Handle qPart:auxv:read: query using that.
21645 * linux-low.c (linux_read_auxv): New function.
21646 (linux_target_ops): Initialize `read_auxv' member to that.
21647
21648 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21649
21650 Committed by Jim Blandy <jimb@redhat.com>.
21651
21652 * linux-s390-low.c (s390_num_regs): Update.
21653 (s390_regmap): Remove control registers. Use __s390x__ predefine
21654 instead of GPR_SIZE to distiguish s390 and s390x targets.
21655
21656 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
21657
21658 * linux-low.c: Update copyright year.
21659 (check_removed_breakpoint): Clear pending_is_breakpoint.
21660 (linux_set_resume_request, linux_queue_one_thread)
21661 (resume_status_pending_p): New functions.
21662 (linux_continue_one_thread): Use process->resume.
21663 (linux_resume): Only resume threads if there are no pending events.
21664 * linux-low.h (struct process_info): Add resume request
21665 pointer.
21666
21667 2004-01-30 Daniel Jacobowitz <drow@mvista.com>
21668
21669 * regcache.c (new_register_cache): Clear the allocated register
21670 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
21671
21672 2003-10-13 Daniel Jacobowitz <drow@mvista.com>
21673
21674 * linux-low.c (linux_resume): Take a struct thread_resume *
21675 argument.
21676 (linux_wait): Update call.
21677 (resume_ptr): New static variable.
21678 (linux_continue_one_thread): Renamed from
21679 linux_continue_one_process. Use resume_ptr.
21680 (linux_resume): Use linux_continue_one_thread.
21681 * server.c (handle_v_cont, handle_v_requests): New functions.
21682 (myresume): New function.
21683 (main): Handle 'v' case.
21684 * target.h (struct thread_resume): New type.
21685 (struct target_ops): Change argument of "resume" to struct
21686 thread_resume *.
21687 (myresume): Delete macro.
21688
21689 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
21690
21691 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
21692 (uninstall): Support DESTDIR.
21693
21694 Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
21695
21696 * configure.srv: Add xscale*linux copy of arm*linux entry.
21697
21698 2003-07-24 Daniel Jacobowitz <drow@mvista.com>
21699
21700 * linux-arm-low.c (arm_reinsert_addr): New function.
21701 (the_low_target): Add arm_reinsert_addr.
21702
21703 2003-07-08 Mark Kettenis <kettenis@gnu.org>
21704
21705 * mem-break.c: Remove whitespace at end of file.
21706
21707 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
21708
21709 * configure.in: Check whether we need to prototype strerror.
21710 * server.h: Optionally prototype strerror.
21711 * gdbreplay.c (perror_with_name): Use strerror.
21712 * linux-low.c (linux_attach_lwp): Use strerror.
21713 * utils.c (perror_with_name): Use strerror.
21714 * config.in, configure: Regenerated.
21715
21716 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
21717
21718 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
21719 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
21720
21721 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
21722
21723 * Makefile.in (SFILES): Update.
21724 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
21725 low-sun3.c: Remove files.
21726
21727 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
21728
21729 * linux-low.c: Move comment to linux_thread_alive where it belonged.
21730 (linux_detach_one_process, linux_detach): New functions.
21731 (linux_target_ops): Add linux_detach.
21732 * server.c (main): Handle 'D' packet.
21733 * target.h (struct target_ops): Add "detach" member.
21734 (detach_inferior): Define.
21735
21736 2003-06-13 Mark Kettenis <kettenis@gnu.org>
21737
21738 From Kelley Cook <kelleycook@wideopenwest.com>:
21739 * configure.srv: Accept i[34567]86 variants.
21740
21741 2003-06-05 Daniel Jacobowitz <drow@mvista.com>
21742
21743 * linux-low.c (linux_wait_for_event): Correct comment typos.
21744 (linux_resume_one_process): Call check_removed_breakpoint.
21745 (linux_send_signal): New function.
21746 (linux_target_ops): Add linux_send_signal.
21747 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
21748 of kill.
21749 * target.h (struct target_ops): Add send_signal.
21750
21751 2003-05-29 Jim Blandy <jimb@redhat.com>
21752
21753 * linux-low.c (usr_store_inferior_registers): Transfer buf in
21754 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
21755 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
21756 away part of the register's value.
21757
21758 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
21759
21760 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
21761 (linux_wait_for_event, linux_init_signals): Likewise.
21762
21763 2003-03-17 Daniel Jacobowitz <drow@mvista.com>
21764
21765 * configure.in: Check for stdlib.h.
21766 * configure: Regenerated.
21767 * config.in: Regenerated.
21768
21769 2003-01-04 Andreas Schwab <schwab@suse.de>
21770
21771 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
21772
21773 2003-01-02 Andrew Cagney <ac131313@redhat.com>
21774
21775 * Makefile.in: Remove obsolete code.
21776
21777 2002-11-20 Daniel Jacobowitz <drow@mvista.com>
21778
21779 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
21780 defined(PT_FPR0_HI).
21781
21782 2002-11-17 Stuart Hughes <seh@zee2.com>
21783
21784 * linux-arm-low.c (arm_num_regs): Increase.
21785 (arm_regmap): Include status register.
21786
21787 2002-11-17 Daniel Jacobowitz <drow@mvista.com>
21788
21789 * linux-low.c (register_addr): Remove incorrect -1 check.
21790
21791 2002-08-29 Daniel Jacobowitz <drow@mvista.com>
21792
21793 * linux-low.c (linux_create_inferior): Call setpgid. Return
21794 the new PID.
21795 (unstopped_p, linux_signal_pid): Remove.
21796 (linux_target_ops): Remove linux_signal_pid.
21797 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
21798 global instead of target method.
21799 * target.h (struct target_ops): Remove signal_pid. Update comment
21800 for create_inferior.
21801 * server.c (signal_pid): New variable.
21802 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
21803 gdbserver. Set the child to be the foreground process group.
21804 (attach_inferior): Set signal_pid.
21805
21806 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
21807
21808 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
21809
21810 2002-08-20 Jim Blandy <jimb@redhat.com>
21811
21812 * Makefile.in (LDFLAGS): Allow the configure script to establish a
21813 default for this.
21814
21815 2002-08-01 Andrew Cagney <cagney@redhat.com>
21816
21817 * Makefile.in: Make chill references obsolete.
21818
21819 2002-07-24 Kevin Buettner <kevinb@redhat.com>
21820
21821 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
21822 * configure: Regenerate.
21823 * config.in: Regenerate.
21824
21825 2002-07-09 David O'Brien <obrien@FreeBSD.org>
21826
21827 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
21828 (perror_with_name, remote_close, remote_open, expect, play): Static.
21829
21830 2002-07-04 Michal Ludvig <mludvig@suse.cz>
21831
21832 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
21833 byte offsets instead of an array of indexes.
21834 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
21835
21836 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
21837
21838 * regcache.c: Add comment.
21839
21840 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
21841
21842 * thread-db.c: New file.
21843 * proc-service.c: New file.
21844 * acinclude.m4: New file.
21845 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
21846 proc-service.o, and thread-db.o.
21847 (linux-low.o): Add USE_THREAD_DB.
21848 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
21849 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
21850 * aclocal.m4: Regenerated.
21851 * config.in: Regenerated.
21852 * configure: Regenerated.
21853 * configure.in: Check for proc_service.h, sys/procfs.h,
21854 thread_db.h, and linux/elf.h headrs.
21855 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
21856 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
21857 Check for -lthread_db and thread support.
21858 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
21859 PowerPC, and SuperH.
21860 * i387-fp.c: Constify arguments.
21861 * i387-fp.h: Likewise.
21862 * inferiors.c: (struct thread_info): Renamed from
21863 `struct inferior_info'. Remove PID member. Use generic inferior
21864 list header. All uses updated.
21865 (inferiors, signal_pid): Removed.
21866 (all_threads): New variable.
21867 (get_thread): Define.
21868 (add_inferior_to_list): New function.
21869 (for_each_inferior): New function.
21870 (change_inferior_id): New function.
21871 (add_inferior): Removed.
21872 (remove_inferior): New function.
21873 (add_thread): New function.
21874 (free_one_thread): New function.
21875 (remove_thread): New function.
21876 (clear_inferiors): Use for_each_inferior and free_one_thread.
21877 (find_inferior): New function.
21878 (find_inferior_id): New function.
21879 (inferior_target_data): Update argument type.
21880 (set_inferior_target_data): Likewise.
21881 (inferior_regcache_data): Likewise.
21882 (set_inferior_regcache_data): Likewise.
21883 * linux-low.c (linux_bp_reinsert): Remove.
21884 (all_processes, stopping_threads, using_thrads)
21885 (struct pending_signals, debug_threads, pid_of): New.
21886 (inferior_pid): Replace with macro.
21887 (struct inferior_linux_data): Remove.
21888 (get_stop_pc, add_process): New functions.
21889 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
21890 Use add_process and add_thread.
21891 (linux_attach_lwp): New function, based on old linux_attach. Use
21892 add_process and add_thread. Set stop_expected for new threads.
21893 (linux_attach): New function.
21894 (linux_kill_one_process): New function.
21895 (linux_kill): Kill all LWPs.
21896 (linux_thread_alive): Use find_inferior_id.
21897 (check_removed_breakpoints, status_pending_p): New functions.
21898 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
21899 Update. Use WNOHANG. Wait for cloned processes also. Update process
21900 struct for the found process.
21901 (linux_wait_for_event): New function.
21902 (linux_wait): Use it. Support LWPs.
21903 (send_sigstop, wait_for_sigstop, stop_all_processes)
21904 (linux_resume_one_process, linux_continue_one_process): New functions.
21905 (linux_resume): Support LWPs.
21906 (REGISTER_RAW_SIZE): Remove.
21907 (fetch_register): Use register_size instead. Call supply_register.
21908 (usr_store_inferior_registers): Likewise. Call collect_register.
21909 Fix recursive case.
21910 (regsets_fetch_inferior_registers): Improve error message.
21911 (regsets_store_inferior_registers): Add debugging.
21912 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
21913 (unstopped_p, linux_signal_pid): New functions.
21914 (linux_target_ops): Add linux_signal_pid.
21915 (linux_init_signals): New function.
21916 (initialize_low): Call it. Initialize using_threads.
21917 * regcache.c (inferior_regcache_data): Add valid
21918 flag.
21919 (get_regcache): Fetch registers lazily. Add fetch argument
21920 and update all callers.
21921 (regcache_invalidate_one, regcache_invalidate): New
21922 functions.
21923 (new_register_cache): Renamed from create_register_cache.
21924 Return the new regcache.
21925 (free_register_cache): Change argument to a void *.
21926 (registers_to_string, registers_from_string): Call get_regcache
21927 with fetch flag set.
21928 (register_data): Make static. Pass fetch flag to get_regcache.
21929 (supply_register): Call get_regcache with fetch flag clear.
21930 (collect_register): Call get_regcache with fetch flag set.
21931 (collect_register_as_string): New function.
21932 * regcache.h: Update.
21933 * remote-utils.c (putpkt): Flush after debug output and use
21934 stderr.
21935 Handle input interrupts while waiting for an ACK.
21936 (input_interrupt): Use signal_pid method.
21937 (getpkt): Flush after debug output and use stderr.
21938 (outreg): Use collect_register_as_string.
21939 (new_thread_notify, dead_thread_notify): New functions.
21940 (prepare_resume_reply): Check using_threads. Set thread_from_wait
21941 and general_thread.
21942 (look_up_one_symbol): Flush after debug output.
21943 * server.c (step_thread, server_waiting): New variables.
21944 (start_inferior): Don't use signal_pid. Update call to mywait.
21945 (attach_inferior): Update call to mywait.
21946 (handle_query): Handle qfThreadInfo and qsThreadInfo.
21947 (main): Don't fetch/store registers explicitly. Use
21948 set_desired_inferior. Support proposed ``Hs'' packet. Update
21949 calls to mywait.
21950 * server.h: Update.
21951 (struct inferior_list, struct_inferior_list_entry): New.
21952 * target.c (set_desired_inferior): New.
21953 (write_inferior_memory): Constify.
21954 (mywait): New function.
21955 * target.h: Update.
21956 (struct target_ops): New signal_pid method.
21957 (mywait): Removed macro, added prototype.
21958
21959 * linux-low.h (regset_func): Removed.
21960 (regset_fill_func, regset_store_func): New.
21961 (enum regset_type): New.
21962 (struct regset_info): Add type field. Use new operation types.
21963 (struct linux_target_ops): stop_pc renamed to get_pc.
21964 Add decr_pc_after_break and breakpoint_at.
21965 (get_process, get_thread_proess, get_process_thread)
21966 (strut process_info, all_processes, linux_attach_lwp)
21967 (thread_db_init): New.
21968
21969 * linux-arm-low.c (arm_get_pc, arm_set_pc,
21970 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
21971 (the_low_target): Add new members.
21972 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
21973 (i386_store_fpxregset): Constify.
21974 (target_regsets): Add new kind identifier.
21975 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
21976 (i386_set_pc): Add debugging.
21977 (i386_breakpoint_at): New function.
21978 (the_low_target): Add new members.
21979 * linux-mips-low.c (mips_get_pc, mips_set_pc)
21980 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
21981 (mips_breakpoint_at): New.
21982 (the_low_target): Add new members.
21983 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
21984 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
21985 (the_low_target): Add new members.
21986 * linux-sh-low.c (sh_get_pc, sh_set_pc)
21987 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
21988 (the_low_target): Add new members.
21989 * linux-x86-64-low.c (target_regsets): Add new kind
21990 identifier.
21991
21992 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
21993
21994 From Martin Pool <mbp@samba.org>:
21995 * server.c (gdbserver_usage): New function.
21996 (main): Call it.
21997
21998 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
21999
22000 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
22001 stop_at -> stop_pc.
22002
22003 2002-05-04 Andrew Cagney <ac131313@redhat.com>
22004
22005 * Makefile.in: Remove obsolete code.
22006
22007 2002-04-24 Michal Ludvig <mludvig@suse.cz>
22008
22009 * linux-low.c (regsets_fetch_inferior_registers),
22010 (regsets_store_inferior_registers): Removed cast to int from
22011 ptrace() calls.
22012 * regcache.h: Added declaration of struct inferior_info.
22013
22014 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
22015
22016 * inferiors.c (struct inferior_info): Add regcache_data.
22017 (add_inferior): Call create_register_cache.
22018 (clear_inferiors): Call free_register_cache.
22019 (inferior_regcache_data, set_inferior_regcache_data): New functions.
22020 * regcache.c (struct inferior_regcache_data): New.
22021 (registers): Remove.
22022 (get_regcache): New function.
22023 (create_register_cache, free_register_cache): New functions.
22024 (set_register_cache): Don't initialize the register cache here.
22025 (registers_to_string, registers_from_string, register_data): Call
22026 get_regcache.
22027 * regcache.h: Add prototypes.
22028 * server.h: Likewise.
22029
22030 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
22031
22032 * mem-break.c: New file.
22033 * mem-break.h: New file.
22034 * Makefile.in: Add mem-break.o rule; update server.h
22035 dependencies.
22036 * inferiors.c (struct inferior_info): Add target_data
22037 member.
22038 (clear_inferiors): Free target_data member if set.
22039 (inferior_target_data, set_inferior_target_data): New functions.
22040 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
22041 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
22042 * linux-low.c (linux_bp_reinsert): New variable.
22043 (struct inferior_linux_data): New.
22044 (linux_create_inferior): Use set_inferior_target_data.
22045 (linux_attach): Likewise. Call add_inferior.
22046 (linux_wait_for_one_inferior): New function.
22047 (linux_wait): Call it.
22048 (linux_write_memory): Add const.
22049 (initialize_low): Call set_breakpoint_data.
22050 * linux-low.h (struct linux_target_ops): Add breakpoint
22051 handling members.
22052 * server.c (attach_inferior): Remove extra add_inferior
22053 call.
22054 * server.h: Include mem-break.h. Update inferior.c
22055 prototypes.
22056 * target.c (read_inferior_memory)
22057 (write_inferior_memory): New functions.
22058 * target.h (read_inferior_memory)
22059 (write_inferior_memory): Change macros to prototypes.
22060 (struct target_ops): Update comments. Add const to write_memory
22061 definition.
22062
22063 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
22064
22065 * linux-low.c (usr_store_inferior_registers): Support
22066 registers which are allowed to fail to store.
22067 * linux-low.h (linux_target_ops): Likewise.
22068 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
22069 (ppc_cannot_store_register): FPSCR may not be storable.
22070
22071 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22072
22073 * server.h: Include <string.h> if HAVE_STRING_H.
22074 * ChangeLog: Correct paths in last ChangeLog entry.
22075
22076 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22077
22078 * linux-low.h: Remove obsolete prototypes.
22079 (struct linux_target_ops): New.
22080 (extern the_low_target): New.
22081 * linux-low.c (num_regs, regmap): Remove declarations.
22082 (register_addr): Use the_low_target explicitly.
22083 (fetch_register): Likewise.
22084 (usr_fetch_inferior_registers): Likewise.
22085 (usr_store_inferior_registers): Likewise.
22086 * linux-arm-low.c (num_regs): Remove.
22087 (arm_num_regs): Define.
22088 (arm_regmap): Renamed from regmap, made static.
22089 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
22090 made static.
22091 (arm_cannot_store_register): Renamed from cannot_store_register,
22092 made static.
22093 (the_low_target): New.
22094 * linux-i386-low.c (num_regs): Remove.
22095 (i386_num_regs): Define.
22096 (i386_regmap): Renamed from regmap, made static.
22097 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
22098 made static.
22099 (i386_cannot_store_register): Renamed from cannot_store_register,
22100 made static.
22101 (the_low_target): New.
22102 * linux-ia64-low.c (num_regs): Remove.
22103 (ia64_num_regs): Define.
22104 (ia64_regmap): Renamed from regmap, made static.
22105 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
22106 made static.
22107 (ia64_cannot_store_register): Renamed from cannot_store_register,
22108 made static.
22109 (the_low_target): New.
22110 * linux-m68k-low.c (num_regs): Remove.
22111 (m68k_num_regs): Define.
22112 (m68k_regmap): Renamed from regmap, made static.
22113 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
22114 made static.
22115 (m68k_cannot_store_register): Renamed from cannot_store_register,
22116 made static.
22117 (the_low_target): New.
22118 * linux-mips-low.c (num_regs): Remove.
22119 (mips_num_regs): Define.
22120 (mips_regmap): Renamed from regmap, made static.
22121 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
22122 made static.
22123 (mips_cannot_store_register): Renamed from cannot_store_register,
22124 made static.
22125 (the_low_target): New.
22126 * linux-ppc-low.c (num_regs): Remove.
22127 (ppc_num_regs): Define.
22128 (ppc_regmap): Renamed from regmap, made static.
22129 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
22130 made static.
22131 (ppc_cannot_store_register): Renamed from cannot_store_register,
22132 made static.
22133 (the_low_target): New.
22134 * linux-s390-low.c (num_regs): Remove.
22135 (s390_num_regs): Define.
22136 (s390_regmap): Renamed from regmap, made static.
22137 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
22138 made static.
22139 (s390_cannot_store_register): Renamed from cannot_store_register,
22140 made static.
22141 (the_low_target): New.
22142 * linux-sh-low.c (num_regs): Remove.
22143 (sh_num_regs): Define.
22144 (sh_regmap): Renamed from regmap, made static.
22145 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
22146 made static.
22147 (sh_cannot_store_register): Renamed from cannot_store_register,
22148 made static.
22149 (the_low_target): New.
22150 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
22151 (the_low_target): New.
22152
22153 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22154
22155 * Makefile.in: Add stamp-h target.
22156 * configure.in: Create stamp-h.
22157 * configure: Regenerated.
22158
22159 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22160
22161 * inferiors.c: New file.
22162 * target.c: New file.
22163 * target.h: New file.
22164 * Makefile.in: Add target.o and inferiors.o. Update
22165 dependencies.
22166 * linux-low.c (inferior_pid): New static variable,
22167 moved from server.c.
22168 (linux_create_inferior): Renamed from create_inferior.
22169 Call add_inferior. Return 0 on success instead of a PID.
22170 (linux_attach): Renamed from myattach.
22171 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
22172 (linux_thread_alive): Renamed from mythread_alive.
22173 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
22174 child dies.
22175 (linux_resume): Renamed from myresume. Add missing ``return 0''.
22176 (regsets_store_inferior_registers): Correct error message.
22177 Add missing ``return 0''.
22178 (linux_fetch_registers): Renamed from fetch_inferior_registers.
22179 (linux_store_registers): Renamed from store_inferior_registers.
22180 (linux_read_memory): Renamed from read_inferior_memory.
22181 (linux_write_memory): Renamed from write_inferior_memory.
22182 (linux_target_ops): New structure.
22183 (initialize_low): Call set_target_ops ().
22184 * remote-utils.c (unhexify): New function.
22185 (hexify): New function.
22186 (input_interrupt): Send signals to ``signal_pid''.
22187 * server.c (inferior_pid): Remove.
22188 (start_inferior): Update create_inferior call.
22189 (attach_inferior): Call add_inferior.
22190 (handle_query): New function.
22191 (main): Call handle_query for `q' packets.
22192 * server.h: Include "target.h". Remove obsolete prototypes.
22193 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
22194
22195 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22196
22197 * Makefile.in: Add WARN_CFLAGS. Update configury
22198 dependencies.
22199 * configure.in: Check for <string.h>
22200 * configure: Regenerate.
22201 * config.in: Regenerate.
22202 * gdbreplay.c: Include needed system headers.
22203 (remote_open): Remove strchr prototype.
22204 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
22205 * regcache.c (supply_register): Change buf argument to const void *.
22206 (supply_register_by_name): Likewise.
22207 (collect_register): Change buf argument to void *.
22208 (collect_register_by_name): Likewise.
22209 * regcache.h: Add missing prototypes.
22210 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
22211 * server.c (handle_query): New function.
22212 (attached): New static variable, moved out of main.
22213 (main): Quiet longjmp clobber warnings.
22214 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
22215 * utils.c (error): Remove NORETURN.
22216 (fatal): Likewise.
This page took 0.865111 seconds and 4 git commands to generate.