Fix crash when exiting TUI with gdb -tui
[deliverable/binutils-gdb.git] / gdbserver / ChangeLog
... / ...
CommitLineData
12020-06-12 Simon Marchi <simon.marchi@efficios.com>
2
3 * Makefile.in (SFILES): Remove win32-arm-low.cc, wincecompat.cc.
4 * configure.srv: Remove mingw32ce cases.
5 * server.h, win32-low.cc: Remove __MINGW32CE__-guarded code.
6 * win32-low.h (to_back_slashes): Remove.
7 * win32-arm-low.cc, wincecompat.cc, wincecompat.h: Remove.
8
92020-06-12 Simon Marchi <simon.marchi@efficios.com>
10
11 * Makefile.in (SFILES): linux-tile-low.cc.
12 * configure.srv: Remove tilegx case.
13 * linux-tile-low.cc: Remove.
14
152020-06-12 Simon Marchi <simon.marchi@efficios.com>
16
17 * Makefile.in (SFILES): Remove linux-m32r-low.cc.
18 * configure.srv: Remove m32r case.
19 * linux-m32r-low.cc: Remove.
20
212020-06-12 Simon Marchi <simon.marchi@efficios.com>
22
23 * Makefile.in (SFILES): Remove linux-cris-low.c.
24 * configure.srv: Remove cris cases.
25 * linux-cris-low.cc, linux-crisv32-low.cc: Remove.
26
272020-06-12 Simon Marchi <simon.marchi@efficios.com>
28
29 * Makefile.in (SFILES): Remove linux-bfin-low.c.
30 * configure.srv: Remove bfin case.
31 * linux-bfin-low.cc: Remove.
32 * linux-low.cc: Remove BFIN-conditional code.
33
342020-06-12 Simon Marchi <simon.marchi@efficios.com>
35
36 * configure: Re-generate.
37 * configure.ac: Remove srv_qnx test.
38 * configure.srv: Remove nto case.
39 * nto-low.cc, nto-low.h, nto-x86-low.cc: Remove.
40 * remote-utils.c: Remove __QNX__-guarded code.
41
422020-06-12 Simon Marchi <simon.marchi@efficios.com>
43
44 * configure: Re-generate.
45 * configure.ac: Remove srv_lynxos test.
46 * configure.srv: Remove lynxos cases.
47 * lynx-i386-low.cc, lynx-low.cc, lynx-low.h, lynx-ppc-low.c:
48 Remove.
49
502020-06-12 Simon Marchi <simon.marchi@efficios.com>
51
52 * README: Fix a few outdated or incoherent things.
53
542020-05-27 Hannes Domani <ssbssa@yahoo.de>
55
56 * win32-low.cc (do_initial_child_stuff): Set open_process_used.
57 (win32_clear_inferiors): Use open_process_used.
58 (get_child_debug_event): Likewise.
59
602020-05-25 Michael Weghorn <m.weghorn@posteo.de>
61
62 PR gdbserver/25893
63 * linux-low.cc (linux_process_target::create_inferior),
64 lynx-low.cc (lynx_process_target::create_inferior),
65 win32-low.cc (win32_process_target::create_inferior): Use
66 construct_inferior_arguments instead of stringify_argv
67 to get string representation which properly escapes
68 special characters.
69 * server.cc (handle_v_run): Just pass empty program arg
70 as such, since any further processing is now handled via
71 construct_inferior_arguments.
72
732020-05-25 Michael Weghorn <m.weghorn@posteo.de>
74
75 * nto-low.cc (nto_process_target::create_inferior): Pass
76 argv to spawnp function as char **.
77
782020-05-25 Michael Weghorn <m.weghorn@posteo.de>
79
80 * server.cc (captured_main), (handle_v_run): No longer
81 insert extra NULL element to args vector.
82
832020-05-23 Pedro Alves <palves@redhat.com>
84
85 * gdb-safe-ctype.h: New.
86
872020-05-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
88
89 * linux-ia64-low.cc (ia64_target::sw_breakpoint_from_kind):
90 Fix incorrect 'gdb_assert_no_reached' to 'gdb_assert_not_reached'.
91 (ia64_target::low_breakpoint_at): Ditto.
92
932020-05-15 Hannes Domani <ssbssa@yahoo.de>
94
95 * win32-i386-low.cc (i386_supports_z_point_type): Handle
96 Z_PACKET_HW_BP z_type.
97 (i386_insert_point): Handle raw_bkpt_type type.
98 (i386_remove_point): Likewise.
99
1002020-04-30 Hannes Domani <ssbssa@yahoo.de>
101
102 * configure.srv <x86_64-*-mingw*, x86_64-*-cygwin*> (srv_tgtobj):
103 Add arch/i386.o.
104 * win32-arm-low.cc (arm_num_regs): New function.
105 (struct win32_target_ops): Use arm_num_regs.
106 * win32-i386-low.cc (win32_get_current_dr): Adapt for WOW64
107 processes.
108 (i386_get_thread_context): Likewise.
109 (i386_prepare_to_resume): Likewise.
110 (i386_thread_added): Likewise.
111 (i386_single_step): Likewise.
112 (i386_fetch_inferior_register): Likewise.
113 (i386_store_inferior_register): Likewise.
114 (i386_arch_setup): Likewise.
115 (i386_win32_num_regs): New function.
116 (struct win32_target_ops): Use i386_win32_num_regs.
117 * win32-low.cc (win32_get_thread_context): Adapt for WOW64
118 processes.
119 (win32_require_context): Likewise.
120 (child_add_thread): Likewise.
121 (do_initial_child_stuff): Likewise.
122 (continue_one_thread): Likewise.
123 (win32_process_target::resume): Likewise.
124 (load_psapi): Likewise.
125 (win32_add_all_dlls): Likewise.
126 (maybe_adjust_pc): Likewise.
127 (win32_process_target::qxfer_siginfo): Likewise.
128 (initialize_low): Likewise.
129 * win32-low.h (struct win32_target_ops): Change num_regs to
130 callback function.
131
1322020-04-27 Simon Marchi <simon.marchi@efficios.com>
133
134 * configure.ac: Remove check for fs_base/gs_base in
135 user_regs_struct.
136 * configure: Re-generate.
137 * config.in: Re-generate.
138 * linux-x86-low.cc (x86_64_regmap, x86_fill_gregset,
139 x86_store_gregset): Adjust.
140
1412020-04-22 Hannes Domani <ssbssa@yahoo.de>
142
143 * server.cc (handle_search_memory_1): Fix gdb_read_memory return value
144 comparison.
145
1462020-04-16 Tom Tromey <tromey@adacore.com>
147
148 * win32-low.cc (windows_nat::handle_access_violation): New
149 function.
150
1512020-04-15 Simon Marchi <simon.marchi@polymtl.ca>
152
153 * win32-low.cc (get_child_debug_event): Fix format string warning.
154
1552020-04-13 Tom Tromey <tom@tromey.com>
156
157 * server.h (gdb_fildes_t): Remove typedef.
158 * remote-utils.c (remote_desc, list_desc): Now int.
159 (INVALID_DESCRIPTOR): Remove.
160 (gdb_connected, remote_close)
161 (check_remote_input_interrupt_request): Update.
162 * utils.h (pfildes): Don't declare.
163 * utils.c (pfildes): Remove.
164
1652020-04-13 Tom Tromey <tom@tromey.com>
166
167 * server.h (handle_serial_event, handle_target_event): Update.
168 * server.c: Don't call initialize_event_loop.
169 (keep_processing_events): New global.
170 (handle_serial_event): Return void. Set keep_processing_events.
171 (handle_target_event): Return void.
172 (start_event_loop): Move from event-loop.c. Rewrite.
173 * remote-utils.c (handle_accept_event): Return void.
174 (reset_readchar): Use delete_timer.
175 (process_remaining): Return void.
176 (reschedule): Use create_timer.
177 * event-loop.h: Remove.
178 * event-loop.cc: Remove.
179 * Makefile.in (OBS): Use gdbsupport/event-loop.o, not event-loop.o.
180
1812020-04-13 Tom Tromey <tom@tromey.com>
182
183 * server.c (invoke_async_signal_handlers)
184 (check_async_event_handlers, flush_streams, gdb_select): New
185 functions.
186
1872020-04-13 Tom Tromey <tom@tromey.com>
188
189 * configure: Rebuild.
190 * config.in: Rebuild.
191
1922020-04-08 Tom Tromey <tromey@adacore.com>
193
194 PR gdb/22992
195 * win32-low.c (child_continue): Call matching_pending_stop.
196 (get_child_debug_event): Call fetch_pending_stop. Push pending
197 stop when needed.
198
1992020-04-08 Tom Tromey <tromey@adacore.com>
200
201 * win32-low.h (win32_process_target::stopped_by_sw_breakpoint)
202 (win32_process_target::supports_stopped_by_sw_breakpoint):
203 Declare.
204 * win32-low.c (win32_supports_z_point_type): Always handle
205 Z_PACKET_SW_BP.
206 (win32_insert_point): Call insert_memory_breakpoint when needed.
207 (win32_remove_point): Call remove_memory_breakpoint when needed.
208 (win32_process_target::stopped_by_sw_breakpoint)
209 (win32_process_target::supports_stopped_by_sw_breakpoint): New
210 methods.
211 (win32_target_ops): Update.
212 (maybe_adjust_pc): New function.
213 (win32_wait): Call maybe_adjust_pc.
214
2152020-04-08 Tom Tromey <tromey@adacore.com>
216
217 * win32-low.h (struct win32_target_ops) <decr_pc_after_break>: New
218 field.
219 * win32-i386-low.c (the_low_target): Update.
220 * win32-arm-low.c (the_low_target): Update.
221
2222020-04-08 Tom Tromey <tromey@adacore.com>
223
224 * win32-low.h (win32_process_target::read_pc)
225 (win32_process_target::write_pc): Declare.
226 * win32-low.c (win32_process_target::read_pc)
227 (win32_process_target::write_pc): New methods.
228 * win32-i386-low.c (i386_win32_get_pc, i386_win32_set_pc): New
229 functions.
230 (the_low_target): Update.
231 * win32-arm-low.c (arm_win32_get_pc, arm_win32_set_pc): New
232 functions.
233 (the_low_target): Update.
234
2352020-04-08 Tom Tromey <tromey@adacore.com>
236
237 * win32-low.c (win32_kill, get_child_debug_event): Use
238 wait_for_debug_event.
239
2402020-04-08 Tom Tromey <tromey@adacore.com>
241
242 * win32-low.c (child_continue): Call continue_last_debug_event.
243
2442020-04-08 Tom Tromey <tromey@adacore.com>
245
246 * win32-low.c (handle_exception): Remove.
247 (windows_nat::handle_ms_vc_exception): New function.
248 (get_child_debug_event): Add "continue_status" parameter.
249 Update.
250 (win32_wait): Update.
251
2522020-04-08 Tom Tromey <tromey@adacore.com>
253
254 * win32-low.c (windows_nat::handle_load_dll): Rename from
255 handle_load_dll. No longer static.
256 (windows_nat::handle_unload_dll): Rename from handle_unload_dll.
257 No longer static.
258
2592020-04-08 Tom Tromey <tromey@adacore.com>
260
261 * win32-low.c (handle_output_debug_string): Add parameter. Change
262 return type.
263 (win32_kill, get_child_debug_event): Update.
264
2652020-04-08 Tom Tromey <tromey@adacore.com>
266
267 * win32-low.c (current_process_handle, current_process_id)
268 (main_thread_id, last_sig, current_event, siginfo_er): Move to
269 nat/windows-nat.c.
270
2712020-04-08 Tom Tromey <tromey@adacore.com>
272
273 * win32-low.c (get_image_name): Remove.
274 (handle_load_dll): Update.
275
2762020-04-08 Tom Tromey <tromey@adacore.com>
277
278 * win32-low.c (windows_nat::thread_rec): Rename from thread_rec.
279 No longer static. Change parameters.
280 (child_add_thread, child_fetch_inferior_registers)
281 (child_store_inferior_registers, win32_resume)
282 (win32_get_tib_address): Update.
283
2842020-04-08 Tom Tromey <tromey@adacore.com>
285
286 * win32-low.h (struct win32_target_ops): Use qualified names where
287 needed.
288 * win32-i386-low.c: Add "using namespace".
289 * win32-low.c: Add "using namespace".
290 * win32-arm-low.c: Add "using namespace".
291
2922020-04-08 Tom Tromey <tromey@adacore.com>
293
294 * win32-low.c (delete_thread_info): Don't call CloseHandle.
295
2962020-04-08 Tom Tromey <tromey@adacore.com>
297
298 * win32-low.c (win32_require_context, suspend_one_thread): Use
299 windows_thread_info::suspend.
300 (continue_one_thread): Use windows_thread_info::resume.
301 * configure.srv (srv_tgtobj): Add windows-nat.o when needed.
302
3032020-04-08 Tom Tromey <tromey@adacore.com>
304
305 * win32-i386-low.c (update_debug_registers)
306 (i386_prepare_to_resume, i386_thread_added): Update.
307
3082020-04-08 Tom Tromey <tromey@adacore.com>
309
310 * win32-low.c (child_add_thread): Use new.
311 (delete_thread_info): Use delete.
312
3132020-04-08 Tom Tromey <tromey@adacore.com>
314
315 * win32-low.h (struct windows_thread_info): Remove.
316
3172020-04-08 Tom Tromey <tromey@adacore.com>
318
319 * win32-low.h (struct windows_thread_info): Rename from
320 win32_thread_info. Remove typedef.
321 (struct win32_target_ops, win32_require_context): Update.
322 * win32-low.c (win32_get_thread_context)
323 (win32_set_thread_context, win32_prepare_to_resume)
324 (win32_require_context, thread_rec, child_add_thread)
325 (delete_thread_info, continue_one_thread)
326 (child_fetch_inferior_registers, child_store_inferior_registers)
327 (win32_resume, suspend_one_thread, win32_get_tib_address):
328 Update.
329 * win32-i386-low.c (update_debug_registers)
330 (win32_get_current_dr, i386_get_thread_context)
331 (i386_prepare_to_resume, i386_thread_added, i386_single_step)
332 (i386_fetch_inferior_register, i386_store_inferior_register):
333 Update.
334 * win32-arm-low.c (arm_get_thread_context)
335 (arm_fetch_inferior_register, arm_store_inferior_register):
336 Update.
337
3382020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
339
340 * linux-low.h (struct linux_target_ops): Remove.
341 (the_low_target): Remove.
342 * linux-x86-low.cc (the_low_target): Remove.
343 * linux-aarch64-low.cc (the_low_target): Ditto.
344 * linux-arm-low.cc (the_low_target): Ditto.
345 * linux-bfin-low.cc (the_low_target): Ditto.
346 * linux-cris-low.cc (the_low_target): Ditto.
347 * linux-crisv32-low.cc (the_low_target): Ditto.
348 * linux-ia64-low.cc (the_low_target): Ditto.
349 * linux-m32r-low.cc (the_low_target): Ditto.
350 * linux-m68k-low.cc (the_low_target): Ditto.
351 * linux-mips-low.cc (the_low_target): Ditto.
352 * linux-nios2-low.cc (the_low_target): Ditto.
353 * linux-ppc-low.cc (the_low_target): Ditto.
354 * linux-riscv-low.cc (the_low_target): Ditto.
355 * linux-s390-low.cc (the_low_target): Ditto.
356 * linux-sh-low.cc (the_low_target): Ditto.
357 * linux-sparc-low.cc (the_low_target): Ditto.
358 * linux-tic6x-low.cc (the_low_target): Ditto.
359 * linux-tile-low.cc (the_low_target): Ditto.
360 * linux-xtensa-low.cc (the_low_target): Ditto.
361
3622020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
363
364 Remove the 'get_ipa_tdesc_idx' linux target op and let a concrete
365 linux target define the op by overriding the declaration in
366 process_stratum_target.
367
368 * linux-low.h (struct linux_target_ops): Remove the op.
369 (class linux_process_target) <get_ipa_tdesc_idx>: Remove.
370 * linux-low.cc (linux_process_target::get_ipa_tdesc_idx): Remove.
371 * linux-x86-low.cc (class x86_target) <get_ipa_tdesc_idx>: Declare.
372 (x86_get_ipa_tdesc_idx): Turn into...
373 (x86_target::get_ipa_tdesc_idx): ...this.
374 (the_low_target): Remove the op field.
375 * linux-ppc-low.cc (class ppc_target) <get_ipa_tdesc_idx>: Declare.
376 (ppc_get_ipa_tdesc_idx): Turn into...
377 (ppc_target::get_ipa_tdesc_idx): ...this.
378 (the_low_target): Remove the op field.
379 * linux-s390-low.cc (class s390_target) <get_ipa_tdesc_idx>: Declare.
380 (s390_get_ipa_tdesc_idx): Turn into...
381 (s390_target::get_ipa_tdesc_idx): ...this.
382 (the_low_target): Remove the op field.
383
3842020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
385
386 Turn the 'get_syscall_trapinfo' linux target op into a method
387 of process_stratum_target.
388
389 * linux-low.h (struct linux_target_ops): Remove the op.
390 (class linux_process_target) <get_syscall_trapinfo>
391 <gdb_catch_this_syscall>
392 <low_supports_catch_syscall>
393 <low_get_syscall_trapinfo>: Declare.
394 * linux-low.cc (get_syscall_trapinfo): Turn into...
395 (linux_process_target::get_syscall_trapinfo): ...this.
396 (linux_process_target::low_get_syscall_trapinfo): Define.
397 (gdb_catch_this_syscall_p): Turn into...
398 (linux_process_target::gdb_catch_this_syscall): ...this.
399 (linux_process_target::low_supports_catch_syscall): Define.
400
401 Update the callers below.
402
403 (linux_process_target::wait_1)
404 (linux_process_target::supports_catch_syscall)
405
406 * linux-x86-low.cc (class x86_target) <low_supports_catch_syscall>
407 <low_get_syscall_trapinfo>: Declare.
408 (x86_target::low_supports_catch_syscall): Define.
409 (x86_get_syscall_trapinfo): Turn into...
410 (x86_target::low_get_syscall_trapinfo): ...this.
411 (the_low_target): Remove the op field.
412 * linux-aarch64-low.cc (class aarch64_target)
413 <low_supports_catch_syscall>
414 <low_get_syscall_trapinfo>: Declare.
415 (aarch64_target::low_supports_catch_syscall): Define.
416 (aarch64_get_syscall_trapinfo): Turn into...
417 (aarch64_target::low_get_syscall_trapinfo): ...this.
418 (the_low_target): Remove the op field.
419 * linux-arm-low.cc (class arm_target) <low_supports_catch_syscall>
420 <low_get_syscall_trapinfo>: Declare.
421 (arm_target::low_supports_catch_syscall): Define.
422 (arm_get_syscall_trapinfo): Turn into...
423 (arm_target::low_get_syscall_trapinfo): ...this.
424 (the_low_target): Remove the op field.
425 * linux-ppc-low.cc (the_low_target): Remove the op field.
426 * linux-s390-low.cc (the_low_target): Remove the op field.
427
4282020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
429
430 Remove the 'supports_hardware_single_step' linux target op and
431 override the process_stratum_target's op definition in
432 linux_process_target to return true.
433
434 * linux-low.h (struct linux_target_ops): Remove the op.
435 (class linux_process_target) <finish_step_over>
436 <maybe_hw_step>: Declare.
437 * linux-low.cc (can_hardware_single_step): Remove.
438 (maybe_hw_step): Turn into...
439 (linux_process_target::maybe_hw_step): ...this.
440 (finish_step_over): Turn into...
441 (linux_process_target::finish_step_over): ...this.
442 (linux_process_target::supports_hardware_single_step): Update
443 to return true.
444
445 Update the callers below.
446
447 (linux_process_target::single_step)
448 (linux_process_target::resume_one_lwp_throw)
449
450 * linux-arm-low.cc (class arm_target)
451 <supports_hardware_single_step>: Declare.
452 (arm_supports_hardware_single_step): Turn into...
453 (arm_target::supports_hardware_single_step): ...this.
454 (the_low_target): Remove the op field.
455 * linux-x86-low.cc (x86_supports_hardware_single_step): Remove.
456 (the_low_target): Remove the op field.
457 * linux-aarch64-low.cc (aarch64_supports_hardware_single_step):
458 Remove.
459 (the_low_target): Remove the op field.
460 * linux-bfin-low.cc (bfin_supports_hardware_single_step): Remove.
461 (the_low_target): Remove the op field.
462 * linux-crisv32-low.cc (cris_supports_hardware_single_step): Remove.
463 (the_low_target): Remove the op field.
464 * linux-m32r-low.cc (m32r_supports_hardware_single_step): Remove.
465 (the_low_target): Remove the op field.
466 * linux-m68k-low.cc (m68k_supports_hardware_single_step): Remove.
467 (the_low_target): Remove the op field.
468 * linux-ppc-low.cc (ppc_supports_hardware_single_step): Remove.
469 (the_low_target): Remove the op field.
470 * linux-s390-low.cc (s390_supports_hardware_single_step): Remove.
471 (the_low_target): Remove the op field.
472 * linux-sh-low.cc (sh_supports_hardware_single_step): Remove.
473 (the_low_target): Remove the op field.
474 * linux-tic6x-low.cc (tic6x_supports_hardware_single_step): Remove.
475 (the_low_target): Remove the op field.
476 * linux-tile-low.cc (tile_supports_hardware_single_step): Remove.
477 (the_low_target): Remove the op field.
478 * linux-xtensa-low.cc (xtensa_supports_hardware_single_step):
479 Remove.
480 (the_low_target): Remove the op field.
481
4822020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
483
484 Turn the 'supports_range_stepping' linux target op into a method
485 of linux_process_target.
486
487 * linux-low.h (struct linux_target_ops): Remove the op.
488 (class linux_process_target) <low_supports_range_stepping>: Declare.
489 * linux-low.cc (linux_process_target::low_supports_range_stepping):
490 Define.
491 (linux_process_target::supports_range_stepping): Update the call
492 site.
493 * linux-x86-low.cc (class x86_target)
494 <low_supports_range_stepping>: Declare.
495 (x86_supports_range_stepping): Turn into...
496 (x86_target::low_supports_range_stepping): ...this.
497 (the_low_target): Remove the op field.
498 * linux-aarch64-low.cc (class aarch64_target)
499 <low_supports_range_stepping>: Declare.
500 (aarch64_supports_range_stepping): Turn into...
501 (aarch64_target::low_supports_range_stepping): ...this.
502 (the_low_target): Remove the op field.
503 * linux-arm-low.cc (the_low_target): Remove the op field.
504 * linux-bfin-low.cc (the_low_target): Ditto.
505 * linux-crisv32-low.cc (the_low_target): Ditto.
506 * linux-m32r-low.cc (the_low_target): Ditto.
507 * linux-m68k-low.cc (the_low_target): Ditto.
508 * linux-ppc-low.cc (the_low_target): Ditto.
509 * linux-s390-low.cc (the_low_target): Ditto.
510 * linux-sh-low.cc (the_low_target): Ditto.
511 * linux-tic6x-low.cc (the_low_target): Ditto.
512 * linux-tile-low.cc (the_low_target): Ditto.
513 * linux-xtensa-low.cc (the_low_target): Ditto.
514
5152020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
516
517 Remove the 'emit_ops' linux target ops and let the concrete
518 linux target define the op by overriding the declaration of
519 process_stratum_target.
520
521 * linux-low.h (struct linux_target_ops): Remove the op.
522 (class linux_process_target) <emit_ops>: Remove.
523 * linux-low.cc (linux_process_target::emit_ops): Remove.
524 * linux-x86-low.cc (class x86_target) <emit_ops>: Declare.
525 (x86_emit_ops): Turn into...
526 (x86_target::emit_ops): ...this.
527 (the_low_target): Remove the op field.
528 * linux-aarch64-low.cc (class aarch64_target) <emit_ops>: Declare.
529 (aarch64_emit_ops): Turn into...
530 (aarch64_target::emit_ops): ...this.
531 (the_low_target): Remove the op field.
532 * linux-ppc-low.cc (class ppc_target) <emit_ops>: Declare.
533 (ppc_emit_ops): Turn into...
534 (ppc_target::emit_ops): ...this.
535 (the_low_target): Remove the op field.
536 * linux-s390-low.cc (class s390_target) <emit_ops>: Declare.
537 (s390_emit_ops): Turn into...
538 (s390_target::emit_ops): ...this.
539 (the_low_target): Remove the op field.
540 * linux-arm-low.cc (the_low_target): Remove the op field.
541 * linux-bfin-low.cc (the_low_target): Ditto.
542 * linux-crisv32-low.cc (the_low_target): Ditto.
543 * linux-m32r-low.cc (the_low_target): Ditto.
544 * linux-m68k-low.cc (the_low_target): Ditto.
545 * linux-sh-low.cc (the_low_target): Ditto.
546 * linux-tic6x-low.cc (the_low_target): Ditto.
547 * linux-tile-low.cc (the_low_target): Ditto.
548 * linux-xtensa-low.cc (the_low_target): Ditto.
549
5502020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
551
552 Remove the 'install_fast_tracepoint_jump_pad' and
553 'get_min_fast_tracepoint_insn_len' linux target ops to let the
554 concrete linux target define the ops by overriding the declarations
555 of process_stratum_target.
556
557 * linux-low.h (struct linux_target_ops): Remove the ops.
558 (class linux_process_target) <supports_fast_tracepoints>
559 <install_fast_tracepoint_jump_pad>
560 <get_min_fast_tracepoint_insn_len>: Remove.
561 * linux-low.cc (linux_process_target::supports_fast_tracepoints)
562 (linux_process_target::install_fast_tracepoint_jump_pad)
563 (linux_process_target::get_min_fast_tracepoint_insn_len): Remove.
564 * linux-x86-low.cc (class x86_target) <supports_fast_tracepoints>
565 <install_fast_tracepoint_jump_pad>
566 <get_min_fast_tracepoint_insn_len>: Declare.
567 (x86_target::supports_fast_tracepoints): Define.
568 (x86_install_fast_tracepoint_jump_pad): Turn into...
569 (x86_target::install_fast_tracepoint_jump_pad): ...this.
570 (x86_get_min_fast_tracepoint_insn_len): Turn into...
571 (x86_target::get_min_fast_tracepoint_insn_len): ...this.
572 (the_low_target): Remove the op fields.
573 * linux-aarch64-low.cc (class aarch64_target)
574 <supports_fast_tracepoints>
575 <install_fast_tracepoint_jump_pad>
576 <get_min_fast_tracepoint_insn_len>: Declare.
577 (aarch64_target::supports_fast_tracepoints): Define.
578 (aarch64_install_fast_tracepoint_jump_pad): Turn into...
579 (aarch64_target::install_fast_tracepoint_jump_pad): ...this.
580 (aarch64_get_min_fast_tracepoint_insn_len): Turn into...
581 (aarch64_target::get_min_fast_tracepoint_insn_len): ...this.
582 (the_low_target): Remove the op fields.
583 * linux-ppc-low.cc (class ppc_target) <supports_fast_tracepoints>
584 <install_fast_tracepoint_jump_pad>
585 <get_min_fast_tracepoint_insn_len>: Declare.
586 (ppc_target::supports_fast_tracepoints): Define.
587 (ppc_install_fast_tracepoint_jump_pad): Turn into...
588 (ppc_target::install_fast_tracepoint_jump_pad): ...this.
589 (ppc_get_min_fast_tracepoint_insn_len): Turn into...
590 (ppc_target::get_min_fast_tracepoint_insn_len): ...this.
591 (the_low_target): Remove the op fields.
592 * linux-s390-low.cc (class s390_target) <supports_fast_tracepoints>
593 <install_fast_tracepoint_jump_pad>
594 <get_min_fast_tracepoint_insn_len>: Declare.
595 (s390_target::supports_fast_tracepoints): Define.
596 (s390_install_fast_tracepoint_jump_pad): Turn into...
597 (s390_target::install_fast_tracepoint_jump_pad): ...this.
598 (s390_get_min_fast_tracepoint_insn_len): Turn into...
599 (s390_target::get_min_fast_tracepoint_insn_len): ...this.
600 (the_low_target): Remove the op fields.
601 * linux-arm-low.cc (the_low_target): Remove the op fields.
602 * linux-bfin-low.cc (the_low_target): Ditto.
603 * linux-crisv32-low.cc (the_low_target): Ditto.
604 * linux-m32r-low.cc (the_low_target): Ditto.
605 * linux-m68k-low.cc (the_low_target): Ditto.
606 * linux-sh-low.cc (the_low_target): Ditto.
607 * linux-tic6x-low.cc (the_low_target): Ditto.
608 * linux-tile-low.cc (the_low_target): Ditto.
609 * linux-xtensa-low.cc (the_low_target): Ditto.
610
6112020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
612
613 Turn the 'get_thread_area' linux target op into a method of
614 process_stratum_target.
615
616 * linux-low.h (struct linux_target_ops): Remove the op.
617 (class linux_process_target) <stuck_in_jump_pad>
618 <linux_fast_tracepoint_collecting>
619 <low_get_thread_area>: Declare.
620 * linux-low.cc (supports_fast_tracepoints): Remove.
621 (linux_fast_tracepoint_collecting): Turn into...
622 (linux_process_target::linux_fast_tracepoint_collecting): ...this.
623 (linux_process_target::low_get_thread_area): Define.
624 (stuck_in_jump_pad_callback): Turn into...
625 (linux_process_target::stuck_in_jump_pad): ...this.
626
627 Update the caller below.
628
629 (linux_process_target::stabilize_threads)
630
631 * linux-x86-low.cc (class x86_target) <low_get_thread_area>:
632 Declare.
633 (x86_get_thread_area): Turn into...
634 (x86_target::low_get_thread_area): ...this.
635 (the_low_target): Remove the op field.
636 * linux-aarch64-low.cc (class aarch64_target) <low_get_thread_area>:
637 Declare.
638 (aarch64_get_thread_area): Turn into...
639 (aarch64_target::low_get_thread_area): ...this.
640 (the_low_target): Remove the op field.
641 * linux-ppc-low.cc (class ppc_target) <low_get_thread_area>:
642 Declare.
643 (ppc_get_thread_area): Turn into...
644 (ppc_target::low_get_thread_area): ...this.
645 (the_low_target): Remove the op field.
646 * linux-s390-low.cc (class s390_target) <low_get_thread_area>:
647 Declare.
648 (s390_get_thread_area): Turn into...
649 (s390_target::low_get_thread_area): ...this.
650 (the_low_target): Remove the op field.
651 * linux-arm-low.cc (the_low_target): Remove the op field.
652 * linux-bfin-low.cc (the_low_target): Ditto.
653 * linux-crisv32-low.cc (the_low_target): Ditto.
654 * linux-m32r-low.cc (the_low_target): Ditto.
655 * linux-m68k-low.cc (the_low_target): Ditto.
656 * linux-sh-low.cc (the_low_target): Ditto.
657 * linux-tic6x-low.cc (the_low_target): Ditto.
658 * linux-tile-low.cc (the_low_target): Ditto.
659 * linux-xtensa-low.cc (the_low_target): Ditto.
660
6612020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
662
663 Remote the 'supports_tracepoints' linux target op and let the
664 concrete linux target define it by overriding the op declared in
665 process_stratum_target.
666
667 * linux-low.h (struct linux_target_ops): Remove the op.
668 (class linux_process_target) <supports_tracepoints>: Remove.
669 * linux-low.cc (linux_process_target::supports_tracepoints): Remove.
670 * linux-x86-low.cc (class x86_target) <supports_tracepoints>:
671 Declare.
672 (x86_supports_tracepoints): Turn into...
673 (x86_target::supports_tracepoints): ...this.
674 (the_low_target): Remove the op field.
675 * linux-aarch64-low.cc (class aarch64_target)
676 <supports_tracepoints>: Declare.
677 (aarch64_supports_tracepoints): Turn into...
678 (aarch64_target::supports_tracepoints): ...this.
679 (the_low_target): Remove the op field.
680 * linux-ppc-low.cc (class ppc_target) <supports_tracepoints>:
681 Declare.
682 (ppc_supports_tracepoints): Turn into...
683 (ppc_target::supports_tracepoints): ...this.
684 (the_low_target): Remove the op field.
685 * linux-s390-low.cc (class s390_target) <supports_tracepoints>:
686 Declare.
687 (s390_supports_tracepoints): Turn into...
688 (s390_target::supports_tracepoints): ...this.
689 (the_low_target): Remove the op field.
690 * linux-arm-low.cc (the_low_target): Remove the op field.
691 * linux-bfin-low.cc (the_low_target): Ditto.
692 * linux-crisv32-low.cc (the_low_target): Ditto.
693 * linux-m32r-low.cc (the_low_target): Ditto.
694 * linux-m68k-low.cc (the_low_target): Ditto.
695 * linux-sh-low.cc (the_low_target): Ditto.
696 * linux-tic6x-low.cc (the_low_target): Ditto.
697 * linux-tile-low.cc (the_low_target): Ditto.
698 * linux-xtensa-low.cc (the_low_target): Ditto.
699
7002020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
701
702 Remove the 'process_qsupported' linux target op and let a concrete
703 linux target define the op by overriding the op declaration in
704 process_stratum_target.
705
706 * linux-low.h (struct linux_target_ops): Remove the op.
707 (class linux_process_target) <process_qsupported>: Remove.
708 * linux-low.cc (linux_process_target::process_qsupported): Remove.
709 * linux-x86-low.cc (class x86_target) <process_qsupported>: Declare.
710 (x86_linux_process_qsupported): Turn into...
711 (x86_target::process_qsupported): ...this.
712 (the_low_target): Remove the op field.
713 * linux-aarch64-low.cc (the_low_target): Remove the op
714 field.
715 * linux-arm-low.cc (the_low_target): Ditto.
716 * linux-bfin-low.cc (the_low_target): Ditto.
717 * linux-crisv32-low.cc (the_low_target): Ditto.
718 * linux-m32r-low.cc (the_low_target): Ditto.
719 * linux-m68k-low.cc (the_low_target): Ditto.
720 * linux-ppc-low.cc (the_low_target): Ditto.
721 * linux-s390-low.cc (the_low_target): Ditto.
722 * linux-sh-low.cc (the_low_target): Ditto.
723 * linux-tic6x-low.cc (the_low_target): Ditto.
724 * linux-tile-low.cc (the_low_target): Ditto.
725 * linux-xtensa-low.cc (the_low_target): Ditto.
726
7272020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
728
729 Turn the 'prepare_to_resume' linux target op into a method of
730 linux_process_target.
731
732 * linux-low.h (struct linux_target_ops): Remove the op.
733 (class linux_process_target) <low_prepare_to_resume>: Declare.
734 * linux-low.cc (linux_process_target::low_prepare_to_resume):
735 Define.
736
737 Update the callers below:
738
739 (linux_process_target::resume_one_lwp_throw)
740 (linux_process_target::low_prepare_to_resume)
741
742 * linux-x86-low.cc (class x86_target) <low_prepare_to_resume>:
743 Declare.
744 (x86_target::low_prepare_to_resume): Define.
745 (the_low_target): Remove the op field.
746 * linux-aarch64-low.cc (class aarch64_target)
747 <low_prepare_to_resume>: Declare.
748 (aarch64_target::low_prepare_to_resume): Define.
749 (the_low_target): Remove the op field.
750 * linux-arm-low.cc (class arm_target) <low_prepare_to_resume>:
751 Declare.
752 (arm_prepare_to_resume): Turn into...
753 (arm_target::low_prepare_to_resume): ...this.
754 (the_low_target): Remove the op field.
755 * linux-mips-low.cc (class mips_target) <low_prepare_to_resume>:
756 Declare.
757 (mips_linux_prepare_to_resume): Turn into...
758 (mips_target::low_prepare_to_resume): ...this.
759 (the_low_target): Remove the op field.
760 * linux-bfin-low.cc (the_low_target): Remove the op field.
761 * linux-crisv32-low.cc (the_low_target): Ditto.
762 * linux-m32r-low.cc (the_low_target): Ditto.
763 * linux-m68k-low.cc (the_low_target): Ditto.
764 * linux-ppc-low.cc (the_low_target): Ditto.
765 * linux-s390-low.cc (the_low_target): Ditto.
766 * linux-sh-low.cc (the_low_target): Ditto.
767 * linux-tic6x-low.cc (the_low_target): Ditto.
768 * linux-tile-low.cc (the_low_target): Ditto.
769 * linux-xtensa-low.cc (the_low_target): Ditto.
770
7712020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
772
773 Turn the 'new_process', 'delete_process', 'new_thread',
774 'delete_thread', and 'new_fork' linux target ops into methods
775 of linux_process_target.
776
777 * linux-low.h (struct linux_target_ops): Remove the ops.
778 (class linux_process_target) <add_linux_process>
779 <add_lwp>
780 <delete_lwp>
781 <attach_lwp>
782 <detach_one_lwp>
783 <check_zombie_leaders>
784 <filter_exit_event>
785 <low_new_process>
786 <low_delete_process>
787 <low_new_thread>
788 <low_delete_thread>
789 <low_new_fork>: Declare.
790 * linux-low.cc (delete_lwp): Turn into...
791 (linux_process_target::delete_lwp): ...this.
792 (linux_process_target::low_delete_thread): Define.
793 (linux_add_process): Turn into...
794 (linux_process_target::add_linux_process): ...this.
795 (linux_process_target::low_new_process): Define.
796 (linux_process_target::low_delete_process): Define.
797 (linux_process_target::low_new_fork): Define.
798 (add_lwp): Turn into...
799 (linux_process_target::add_lwp): ...this.
800 (linux_process_target::low_new_thread): Define.
801 (linux_attach_lwp): Turn into...
802 (linux_process_target::attach_lwp): ...this.
803 (linux_detach_one_lwp): Turn into...
804 (linux_process_target::detach_one_lwp): ...this.
805 (linux_detach_lwp_callback): Remove and inline...
806 (linux_process_target::detach): ...here.
807 (check_zombie_leaders): Turn into...
808 (linux_process_target::check_zombie_leaders): ...this.
809 (filter_exit_event): Turn into...
810 (linux_process_target::filter_exit_event): ...this.
811
812 Update the callers below.
813
814 (linux_process_target::handle_extended_wait)
815 (linux_process_target::create_inferior)
816 (attach_proc_task_lwp_callback)
817 (linux_process_target::attach)
818 (linux_process_target::detach)
819 (linux_process_target::mourn)
820 * thread-db.cc (attach_thread)
821
822 * linux-x86-low.cc (class x86_target) <low_new_process>
823 <low_delete_process>
824 <low_new_thread>
825 <low_delete_thread>
826 <low_new_fork>: Declare.
827 (x86_linux_new_process): Turn into...
828 (x86_target::low_new_process): ...this.
829 (x86_linux_delete_process): Turn into...
830 (x86_target::low_delete_process): ...this.
831 (x86_target::low_new_thread): Define.
832 (x86_target::low_delete_thread): Define.
833 (x86_linux_new_fork): Turn into...
834 (x86_target::low_new_fork): ...this.
835 (the_low_target): Remove the op fields.
836 * linux-aarch64-low.cc (class aarch64_target) <low_new_process>
837 <low_delete_process>
838 <low_new_thread>
839 <low_delete_thread>
840 <low_new_fork>: Declare.
841 (aarch64_linux_new_process): Turn into...
842 (aarch64_target::low_new_process): ...this.
843 (aarch64_linux_delete_process): Turn into...
844 (aarch64_target::low_delete_process): ...this.
845 (aarch64_target::low_new_thread): Define.
846 (aarch64_target::low_delete_thread): Define.
847 (aarch64_linux_new_fork): Turn into...
848 (aarch64_target::low_new_fork): ...this.
849 (the_low_target): Remove the op fields.
850 * linux-arm-low.cc (class arm_target) <low_new_process>
851 <low_delete_process>
852 <low_new_thread>
853 <low_delete_thread>
854 <low_new_fork>: Declare.
855 (arm_new_process): Turn into...
856 (arm_target::low_new_process): ...this.
857 (arm_delete_process): Turn into...
858 (arm_target::low_delete_process): ...this.
859 (arm_new_thread): Turn into...
860 (arm_target::low_new_thread): ...this.
861 (arm_delete_thread): Turn into...
862 (arm_target::low_delete_thread): ...this.
863 (arm_new_fork): Turn into...
864 (arm_target::low_new_fork): ...this.
865 (the_low_target): Remove the op fields.
866 * linux-mips-low.cc (class mips_target) <low_new_process>
867 <low_delete_process>
868 <low_new_thread>
869 <low_delete_thread>
870 <low_new_fork>: Declare.
871 (mips_linux_new_process): Turn into...
872 (mips_target::low_new_process): ...this.
873 (mips_linux_delete_process): Turn into...
874 (mips_target::low_delete_process): ...this.
875 (mips_linux_new_thread): Turn into...
876 (mips_target::low_new_thread): ...this.
877 (mips_linux_delete_thread): Turn into...
878 (mips_target::low_delete_thread): ...this.
879 (mips_linux_new_fork): Turn into...
880 (mips_target::low_new_fork): ...this.
881 (the_low_target): Remove the op fields.
882 * linux-bfin-low.cc (the_low_target): Remove the op fields.
883 * linux-crisv32-low.cc (the_low_target): Ditto.
884 * linux-m32r-low.cc (the_low_target): Ditto.
885 * linux-m68k-low.cc (the_low_target): Ditto.
886 * linux-ppc-low.cc (the_low_target): Ditto.
887 * linux-s390-low.cc (the_low_target): Ditto.
888 * linux-sh-low.cc (the_low_target): Ditto.
889 * linux-tic6x-low.cc (the_low_target): Ditto.
890 * linux-tile-low.cc (the_low_target): Ditto.
891 * linux-xtensa-low.cc (the_low_target): Ditto.
892
8932020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
894
895 Turn the 'siginfo_fixup' linux target op into a method of
896 linux_process_target.
897
898 * linux-low.h (struct linux_target_ops): Remove the op.
899 (class linux_process_target) <siginfo_fixup>
900 <low_siginfo_fixup>: Declare.
901 * linux-low.cc (siginfo_fixup): Turn into...
902 (linux_process_target::siginfo_fixup): ...this.
903 (linux_process_target::low_siginfo_fixup): Define.
904 * linux-x86-low.cc (class x86_target) <low_siginfo_fixup>: Declare.
905 (x86_siginfo_fixup): Turn into...
906 (x86_target::low_siginfo_fixup): ...this.
907 (the_low_target): Remove the op field.
908 * linux-aarch64-low.cc (class aarch64_target):
909 <low_siginfo_fixup>: Declare.
910 (aarch64_linux_siginfo_fixup): Turn into...
911 (aarch64_target::low_siginfo_fixup): ...this.
912 (the_low_target): Remove the op field.
913 * linux-arm-low.cc (the_low_target): Remove the op field.
914 * linux-bfin-low.cc (the_low_target): Ditto.
915 * linux-crisv32-low.cc (the_low_target): Ditto.
916 * linux-m32r-low.cc (the_low_target): Ditto.
917 * linux-m68k-low.cc (the_low_target): Ditto.
918 * linux-mips-low.cc (the_low_target): Ditto.
919 * linux-ppc-low.cc (the_low_target): Ditto.
920 * linux-s390-low.cc (the_low_target): Ditto.
921 * linux-sh-low.cc (the_low_target): Ditto.
922 * linux-tic6x-low.cc (the_low_target): Ditto.
923 * linux-tile-low.cc (the_low_target): Ditto.
924 * linux-xtensa-low.cc (the_low_target): Ditto.
925
9262020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
927
928 Turn the 'collect_ptrace_register' and 'supply_ptrace_register'
929 linux target ops into methods of linux_process_target.
930
931 * linux-low.h (struct linux_target_ops): Remove the ops.
932 (class linux_process_target) <low_collect_ptrace_register>
933 <low_store_ptrace_register>: Declare.
934 * linux-low.cc (linux_process_target::low_collect_ptrace_register)
935 (linux_process_target::low_supply_ptrace_register): Define.
936
937 Update the callers below.
938
939 (linux_process_target::fetch_register)
940 (linux_process_target::store_register)
941
942 * linux-x86-low.cc (the_low_target): Remove the op fields.
943 * linux-aarch64-low.cc (the_low_target): Ditto.
944 * linux-arm-low.cc (the_low_target): Ditto.
945 * linux-bfin-low.cc (the_low_target): Ditto.
946 * linux-crisv32-low.cc (the_low_target): Ditto.
947 * linux-m32r-low.cc (the_low_target): Ditto.
948 * linux-m68k-low.cc (the_low_target): Ditto.
949 * linux-sh-low.cc (the_low_target): Ditto.
950 * linux-sparc-low.cc (the_low_target): Ditto.
951 * linux-tic6x-low.cc (the_low_target): Ditto.
952 * linux-tile-low.cc (the_low_target): Ditto.
953 * linux-xtensa-low.cc (the_low_target): Ditto.
954 * linux-mips-low.cc (class mips_target)
955 <low_collect_ptrace_register>
956 <low_supply_ptrace_register>: Declare.
957 (mips_collect_ptrace_register): Turn into ...
958 (mips_target::low_collect_ptrace_register): ...this.
959 (mips_supply_ptrace_register): Turn into...
960 (mips_target::low_supply_ptrace_register): ...this.
961 (the_low_target): Remove the op fields.
962 * linux-ppc-low.cc (class ppc_target)
963 <low_collect_ptrace_register>
964 <low_supply_ptrace_register>: Declare.
965 (ppc_collect_ptrace_register): Turn into ...
966 (ppc_target::low_collect_ptrace_register): ...this.
967 (ppc_supply_ptrace_register): Turn into ...
968 (ppc_target::low_supply_ptrace_register): ...this.
969 (ppc_fill_gregset): Update for the calls to
970 low_collect_ptrace_register.
971 (the_low_target): Remove the op fields.
972 * linux-s390-low.cc (class s390_target)
973 <low_collect_ptrace_register>
974 <low_supply_ptrace_register>: Declare.
975 (s390_collect_ptrace_register): Turn into ...
976 (s390_target::low_collect_ptrace_register): ...this.
977 (s390_supply_ptrace_register): Turn into ...
978 (s390_target::low_supply_ptrace_register): ...this.
979 (s390_fill_gregset): Update for the calls to
980 low_collect_ptrace_register.
981 (the_low_target): Remove the op fields.
982
9832020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
984
985 Turn the 'stopped_by_watchpoint' and 'stopped_data_address' linux
986 target ops into methods of linux_process_target.
987
988 * linux-low.h (struct linux_target_ops): Remove the ops.
989 (class linux_process_target) <check_stopped_by_watchpoint>
990 <low_stopped_by_watchpoint>
991 <low_stopped_data_address>: Declare.
992 * linux-low.cc (check_stopped_by_watchpoint): Turn into...
993 (linux_process_target::check_stopped_by_watchpoint): ...this.
994 (linux_process_target::low_stopped_by_watchpoint): Define.
995 (linux_process_target::low_stopped_data_address): Define.
996 * linux-x86-low.cc (class x86_target) <low_stopped_by_watchpoint>
997 <low_stopped_data_address>: Declare.
998 (x86_stopped_by_watchpoint): Turn into...
999 (x86_target::low_stopped_by_watchpoint): ...this.
1000 (x86_stopped_data_address): Turn into...
1001 (x86_target::low_stopped_data_address): ...this.
1002 (the_low_target): Remove the op fields.
1003 * linux-aarch64-low.cc (class aarch64_target)
1004 <low_stopped_by_watchpoint>
1005 <low_stopped_data_address>: Declare.
1006 (aarch64_stopped_by_watchpoint): Turn into...
1007 (aarch64_target::low_stopped_by_watchpoint): ...this.
1008 (aarch64_stopped_data_address): Turn into...
1009 (aarch64_target::low_stopped_data_address): ...this.
1010 (the_low_target): Remove the op fields.
1011 * linux-arm-low.cc (class arm_target) <low_stopped_by_watchpoint>
1012 <low_stopped_data_address>: Declare.
1013 (arm_stopped_by_watchpoint): Turn into...
1014 (arm_target::low_stopped_by_watchpoint): ...this.
1015 (arm_stopped_data_address): Turn into...
1016 (arm_target::low_stopped_data_address): ...this.
1017 (the_low_target): Remove the op fields.
1018 * linux-crisv32-low.cc (class crisv32_target)
1019 <low_stopped_by_watchpoint>
1020 <low_stopped_data_address>: Declare.
1021 (cris_stopped_by_watchpoint): Turn into...
1022 (crisv32_target::low_stopped_by_watchpoint): ...this.
1023 (cris_stopped_data_address): Turn into...
1024 (crisv32_target::low_stopped_data_address): ...this.
1025 (the_low_target): Remove the op fields.
1026 * linux-mips-low.cc (class mips_target) <low_stopped_by_watchpoint>
1027 <low_stopped_data_address>: Declare.
1028 (mips_stopped_by_watchpoint): Turn into...
1029 (mips_target::low_stopped_by_watchpoint): ...this.
1030 (mips_stopped_data_address): Turn into...
1031 (mips_target::low_stopped_data_address): ...this.
1032 (the_low_target): Remove the op fields.
1033 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1034 * linux-m32r-low.cc (the_low_target): Ditto.
1035 * linux-m68k-low.cc (the_low_target): Ditto.
1036 * linux-ppc-low.cc (the_low_target): Ditto.
1037 * linux-s390-low.cc (the_low_target): Ditto.
1038 * linux-sh-low.cc (the_low_target): Ditto.
1039 * linux-sparc-low.cc (the_low_target): Ditto.
1040 * linux-tic6x-low.cc (the_low_target): Ditto.
1041 * linux-tile-low.cc (the_low_target): Ditto.
1042 * linux-xtensa-low.cc (the_low_target): Ditto.
1043
10442020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1045
1046 Turn the 'insert_point' and 'remove_point' linux target ops into
1047 methods of linux_process_target.
1048
1049 * linux-low.h (struct linux_target_ops): Remove the ops.
1050 (class linux_process_target) <low_insert_point>
1051 <low_remove_point>: Declare.
1052 * linux-low.cc (linux_process_target::low_insert_point)
1053 (linux_process_target::low_remove_point): Define.
1054 (linux_process_target::insert_point)
1055 (linux_process_target::remove_point): Update for calls to
1056 low_insert_point and low_remove_point.
1057 * linux-x86-low.cc (class x86_target) <low_insert_point>
1058 <low_remove_point>: Declare.
1059 (x86_insert_point): Turn into...
1060 (x86_target::low_insert_point): ...this.
1061 (x86_remove_point): Turn into...
1062 (x86_target::low_remove_point): ...this.
1063 (the_low_target): Remove the op fields.
1064 * linux-aarch64-low.cc (class aarch64_target) <low_insert_point>
1065 <low_remove_point>: Declare.
1066 (aarch64_insert_point): Turn into...
1067 (aarch64_target::low_insert_point): ...this.
1068 (aarch64_remove_point): Turn into...
1069 (aarch64_target::low_remove_point): ...this.
1070 (the_low_target): Remove the op fields.
1071 * linux-arm-low.cc (class arm_target) <low_insert_point>
1072 <low_remove_point>: Declare.
1073 (arm_insert_point): Turn into...
1074 (arm_target::low_insert_point): ...this.
1075 (arm_remove_point): Turn into...
1076 (arm_target::low_remove_point): ...this.
1077 (the_low_target): Remove the op fields.
1078 * linux-crisv32-low.cc (class crisv32_target) <low_insert_point>
1079 <low_remove_point>: Declare.
1080 (crisv32_insert_point): Turn into...
1081 (crisv32_target::low_insert_point): ...this.
1082 (crisv32_remove_point): Turn into...
1083 (crisv32_target::low_remove_point): ...this.
1084 (the_low_target): Remove the op fields.
1085 * linux-mips-low.cc (class mips_target) <low_insert_point>
1086 <low_remove_point>: Declare.
1087 (mips_insert_point): Turn into...
1088 (mips_target::low_insert_point): ...this.
1089 (mips_remove_point): Turn into...
1090 (mips_target::low_remove_point): ...this.
1091 (the_low_target): Remove the op fields.
1092 * linux-ppc-low.cc (class ppc_target) <low_insert_point>
1093 <low_remove_point>: Declare.
1094 (ppc_insert_point): Turn into...
1095 (ppc_target::low_insert_point): ...this.
1096 (ppc_remove_point): Turn into...
1097 (ppc_target::low_remove_point): ...this.
1098 (the_low_target): Remove the op fields.
1099 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1100 * linux-m32r-low.cc (the_low_target): Ditto.
1101 * linux-m68k-low.cc (the_low_target): Ditto.
1102 * linux-s390-low.cc (the_low_target): Ditto.
1103 * linux-sh-low.cc (the_low_target): Ditto.
1104 * linux-sparc-low.cc (the_low_target): Ditto.
1105 * linux-tic6x-low.cc (the_low_target): Ditto.
1106 * linux-tile-low.cc (the_low_target): Ditto.
1107 * linux-xtensa-low.cc (the_low_target): Ditto.
1108
11092020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1110
1111 Remove the 'supports_z_point_type' linux target op and let the
1112 concrete linux target define it by overriding the op declared in
1113 process_stratum_target.
1114
1115 * linux-low.cc (linux_process_target::supports_z_point_type):
1116 Remove.
1117 * linux-low.h (struct linux_target_ops): Remove the op.
1118 (class linux_process_target) <supports_z_point_type>: Remove.
1119 * linux-x86-low.cc (class x86_target) <supports_z_point_type>:
1120 Declare.
1121 (x86_supports_z_point_type): Turn into...
1122 (x86_target::supports_z_point_type): ...this.
1123 (the_low_target): Remove the op field.
1124 * linux-aarch64-low.cc (class aarch64_target)
1125 <supports_z_point_type>: Declare.
1126 (aarch64_supports_z_point_type): Turn into...
1127 (aarch64_target::supports_z_point_type): ...this.
1128 (the_low_target): Remove the op field.
1129 * linux-arm-low.cc (class arm_target) <supports_z_point_type>:
1130 Declare.
1131 (arm_supports_z_point_type): Turn into...
1132 (arm_target::supports_z_point_type): ...this.
1133 (the_low_target): Remove the op field.
1134 * linux-crisv32-low.cc (class crisv32_target)
1135 <supports_z_point_type>: Declare.
1136 (cris_supports_z_point_type): Turn into...
1137 (crisv32_target::supports_z_point_type): ...this.
1138 (the_low_target): Remove the op field.
1139 * linux-mips-low.cc (class mips_target) <supports_z_point_type>:
1140 Declare.
1141 (mips_supports_z_point_type): Turn into...
1142 (mips_target::supports_z_point_type): ...this.
1143 (the_low_target): Remove the op field.
1144 * linux-ppc-low.cc (class ppc_target) <supports_z_point_type>:
1145 Declare.
1146 (ppc_supports_z_point_type): Turn into...
1147 (ppc_target::supports_z_point_type): ...this.
1148 (the_low_target): Remove the op field.
1149 * linux-s390-low.cc (class s390_target) <supports_z_point_type>:
1150 Declare.
1151 (s390_supports_z_point_type): Turn into...
1152 (s390_target::supports_z_point_type): ...this.
1153 (the_low_target): Remove the op field.
1154 * linux-bfin-low.cc (the_low_target): Remove the op field.
1155 * linux-m32r-low.cc (the_low_target): Ditto.
1156 * linux-m68k-low.cc (the_low_target): Ditto.
1157 * linux-sh-low.cc (the_low_target): Ditto.
1158 * linux-sparc-low.cc (the_low_target): Ditto.
1159 * linux-tic6x-low.cc (the_low_target): Ditto.
1160 * linux-tile-low.cc (the_low_target): Ditto.
1161 * linux-xtensa-low.cc (the_low_target): Ditto.
1162
11632020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1164
1165 Turn the 'breakpoint_at' linux target op into a method of
1166 linux_process_target.
1167
1168 * linux-low.h (struct linux_target_ops): Remove the op.
1169 (class linux_process_target) <low_breakpoint_at>: Declare.
1170
1171 Update the callers below:
1172
1173 * linux-low.cc (linux_process_target::save_stop_reason)
1174 (linux_process_target::thread_still_has_status_pending)
1175 (linux_process_target::wait_1)
1176
1177 * linux-x86-low.cc (class x86_target)
1178 <low_breakpoint_at>: Declare.
1179 (x86_breakpoint_at): Turn into...
1180 (x86_target::low_breakpoint_at): ...this.
1181 (the_low_target): Remove the op field.
1182 * linux-aarch64-low.cc (class aarch64_target)
1183 <low_breakpoint_at>: Declare.
1184 (aarch64_breakpoint_at): Turn into...
1185 (aarch64_target::low_breakpoint_at): ...this.
1186 (the_low_target): Remove the op field.
1187 * linux-arm-low.cc (class arm_target)
1188 <low_breakpoint_at>: Declare.
1189 (arm_target::low_breakpoint_at): Define.
1190 (the_low_target): Remove the op field.
1191 * linux-bfin-low.cc (class bfin_target)
1192 <low_breakpoint_at>: Declare.
1193 (bfin_breakpoint_at): Turn into...
1194 (bfin_target::low_breakpoint_at): ...this.
1195 (the_low_target): Remove the op field.
1196 * linux-cris-low.cc (class cris_target)
1197 <low_breakpoint_at>: Declare.
1198 (cris_breakpoint_at): Turn into...
1199 (cris_target::low_breakpoint_at): ...this.
1200 (the_low_target): Remove the op field.
1201 * linux-crisv32-low.cc (class crisv32_target)
1202 <low_breakpoint_at>: Declare.
1203 (crisv32_breakpoint_at): Turn into...
1204 (crisv32_target::low_breakpoint_at): ...this.
1205 (the_low_target): Remove the op field.
1206 * linux-ia64-low.cc (class ia64_target)
1207 <low_breakpoint_at>: Declare.
1208 (ia64_target::low_breakpoint_at): Define.
1209 * linux-m32r-low.cc (class m32r_target)
1210 <low_breakpoint_at>: Declare.
1211 (m32r_breakpoint_at): Turn into...
1212 (m32r_target::low_breakpoint_at): ...this.
1213 (the_low_target): Remove the op field.
1214 * linux-m68k-low.cc (class m68k_target)
1215 <low_breakpoint_at>: Declare.
1216 (m68k_breakpoint_at): Turn into...
1217 (m68k_target::low_breakpoint_at): ...this.
1218 (the_low_target): Remove the op field.
1219 * linux-mips-low.cc (class mips_target)
1220 <low_breakpoint_at>: Declare.
1221 (mips_breakpoint_at): Turn into...
1222 (mips_target::low_breakpoint_at): ...this.
1223 (the_low_target): Remove the op field.
1224 * linux-nios2-low.cc (class nios2_target)
1225 <low_breakpoint_at>: Declare.
1226 (nios2_breakpoint_at): Turn into...
1227 (nios2_target::low_breakpoint_at): ...this.
1228 (the_low_target): Remove the op field.
1229 * linux-ppc-low.cc (class ppc_target)
1230 <low_breakpoint_at>: Declare.
1231 (ppc_breakpoint_at): Turn into...
1232 (ppc_target::low_breakpoint_at): ...this.
1233 (the_low_target): Remove the op field.
1234 * linux-riscv-low.cc (class riscv_target)
1235 <low_breakpoint_at>: Declare.
1236 (riscv_breakpoint_at): Turn into...
1237 (riscv_target::low_breakpoint_at): ...this.
1238 (the_low_target): Remove the op field.
1239 * linux-s390-low.cc (class s390_target)
1240 <low_breakpoint_at>: Declare.
1241 (s390_breakpoint_at): Turn into...
1242 (s390_target::low_breakpoint_at): ...this.
1243 (the_low_target): Remove the op field.
1244 * linux-sh-low.cc (class sh_target)
1245 <low_breakpoint_at>: Declare.
1246 (sh_breakpoint_at): Turn into...
1247 (sh_target::low_breakpoint_at): ...this.
1248 (the_low_target): Remove the op field.
1249 * linux-sparc-low.cc (class sparc_target)
1250 <low_breakpoint_at>: Declare.
1251 (sparc_breakpoint_at): Turn into...
1252 (sparc_target::low_breakpoint_at): ...this.
1253 (the_low_target): Remove the op field.
1254 * linux-tic6x-low.cc (class tic6x_target)
1255 <low_breakpoint_at>: Declare.
1256 (tic6x_breakpoint_at): Turn into...
1257 (tic6x_target::low_breakpoint_at): ...this.
1258 (the_low_target): Remove the op field.
1259 * linux-tile-low.cc (class tile_target)
1260 <low_breakpoint_at>: Declare.
1261 (tile_breakpoint_at): Turn into...
1262 (tile_target::low_breakpoint_at): ...this.
1263 (the_low_target): Remove the op field.
1264 * linux-xtensa-low.cc (class xtensa_target)
1265 <low_breakpoint_at>: Declare.
1266 (xtensa_breakpoint_at): Turn into...
1267 (xtensa_target::low_breakpoint_at): ...this.
1268 (the_low_target): Remove the op field.
1269
12702020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1271
1272 Turn the 'decr_pc_after_break' linux_target_ops field into
1273 a method of linux_process_target.
1274
1275 * linux-low.h (struct linux_target_ops)
1276 <decr_pc_after_break>: Remove.
1277 (class linux_process_target) <low_decr_pc_after_break>: New method
1278 declaration.
1279 * linux-low.cc (linux_process_target::low_decr_pc_after_break):
1280 New method implementation.
1281
1282 Update the users below.
1283
1284 (linux_process_target::save_stop_reason)
1285 (linux_process_target::wait_1)
1286 * linux-x86-low.cc (class x86_target) <low_decr_pc_after_break>:
1287 New declaration.
1288 (x86_target::low_decr_pc_after_break): New method implementation.
1289 (the_low_target): Remove the field.
1290 * linux-bfin-low.cc (class bfin_target) <low_decr_pc_after_break>:
1291 New declaration.
1292 (bfin_target::low_decr_pc_after_break): New method implementation.
1293 (the_low_target): Remove the field.
1294 * linux-m68k-low.cc (class m68k_target) <low_decr_pc_after_break>:
1295 New declaration.
1296 (m68k_target::low_decr_pc_after_break): New method implementation.
1297 (the_low_target): Remove the field.
1298 * linux-s390-low.cc (class s390_target) <low_decr_pc_after_break>:
1299 New declaration.
1300 (s390_target::low_decr_pc_after_break): New method implementation.
1301 (the_low_target): Remove the field.
1302 * linux-aarch64-low.cc (the_low_target): Remove the field.
1303 * linux-arm-low.cc (the_low_target): Remove the field.
1304 * linux-cris-low.cc (the_low_target): Remove the field.
1305 * linux-crisv32-low.cc (the_low_target): Remove the field.
1306 * linux-m32r-low.cc (the_low_target): Remove the field.
1307 * linux-mips-low.cc (the_low_target): Remove the field.
1308 * linux-nios2-low.cc (the_low_target): Remove the field.
1309 * linux-ppc-low.cc (the_low_target): Remove the field.
1310 * linux-riscv-low.cc (the_low_target): Remove the field.
1311 * linux-sh-low.cc (the_low_target): Remove the field.
1312 * linux-sparc-low.cc (the_low_target): Remove the field.
1313 * linux-tic6x-low.cc (the_low_target): Remove the field.
1314 * linux-tile-low.cc (the_low_target): Remove the field.
1315 * linux-xtensa-low.cc (the_low_target): Remove the field.
1316
13172020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1318
1319 Remove the 'supports_software_single_step' linux target op and let
1320 the concrete linux target define it by overriding the op in
1321 process_stratum_target.
1322 Turn the 'get_next_pcs' linux target op into a method of
1323 linux_process_target.
1324
1325 * linux-low.h (struct linux_target_ops): Remove the ops.
1326 (class linux_process_target) <supports_software_single_step>:
1327 Remove.
1328 <low_get_next_pcs>: Declare.
1329 * linux-low.cc (can_software_single_step): Remove.
1330 (linux_process_target::low_get_next_pcs): Define.
1331 (linux_process_target::supports_software_single_step): Remove.
1332
1333 Update the callers below.
1334
1335 (linux_process_target::handle_extended_wait)
1336 (linux_process_target::wait_1)
1337 (linux_process_target::install_software_single_step_breakpoints)
1338 (linux_process_target::single_step)
1339 (linux_process_target::thread_needs_step_over)
1340 (linux_process_target::proceed_one_lwp)
1341 (linux_process_target::supports_range_stepping)
1342
1343 * linux-x86-low.cc (the_low_target): Remove the op field.
1344 * linux-aarch64-low.cc (the_low_target): Ditto.
1345 * linux-bfin-low.cc (the_low_target): Ditto.
1346 * linux-cris-low.cc (the_low_target): Ditto.
1347 * linux-crisv32-low.cc (the_low_target): Ditto.
1348 * linux-m32r-low.cc (the_low_target): Ditto.
1349 * linux-m68k-low.cc (the_low_target): Ditto.
1350 * linux-mips-low.cc (the_low_target): Ditto.
1351 * linux-nios2-low.cc (the_low_target): Ditto.
1352 * linux-ppc-low.cc (the_low_target): Ditto.
1353 * linux-riscv-low.cc (the_low_target): Ditto.
1354 * linux-s390-low.cc (the_low_target): Ditto.
1355 * linux-sh-low.cc (the_low_target): Ditto.
1356 * linux-sparc-low.cc (the_low_target): Ditto.
1357 * linux-tic6x-low.cc (the_low_target): Ditto.
1358 * linux-tile-low.cc (the_low_target): Ditto.
1359 * linux-xtensa-low.cc (the_low_target): Ditto.
1360 * linux-arm-low.cc (class arm_target) <low_get_next_pcs>
1361 <supports_software_single_step>: Declare.
1362 (arm_target::supports_software_single_step): Define.
1363 (arm_gdbserver_get_next_pcs): Turn into...
1364 (arm_target::low_get_next_pcs): ...this.
1365 (the_low_target): Remove the op field.
1366
13672020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1368
1369 Remove the 'sw_breakpoint_from_kind' linux target op, and let
1370 the concrete linux target define it by overriding the op
1371 in process_stratum_target.
1372
1373 * linux-low.cc (linux_process_target::sw_breakpoint_from_kind):
1374 Remove.
1375 * linux-low.h (struct linux_target_ops): Remove the op.
1376 (class linux_process_target) <sw_breakpoint_from_kind>: Remove.
1377 * linux-x86-low.cc (class x86_target) <sw_breakpoint_from_kind>:
1378 Declare.
1379 (x86_sw_breakpoint_from_kind): Turn into...
1380 (x86_target::sw_breakpoint_from_kind): ...this.
1381 (the_low_target): Remove the op field.
1382 * linux-aarch64-low.cc (class aarch64_target)
1383 <sw_breakpoint_from_kind>: Declare.
1384 (aarch64_sw_breakpoint_from_kind): Turn into...
1385 (aarch64_target::sw_breakpoint_from_kind): ...this.
1386 (the_low_target): Remove the op field.
1387 * linux-arm-low.cc (class arm_target) <sw_breakpoint_from_kind>:
1388 Declare.
1389 (arm_target::sw_breakpoint_from_kind): Define.
1390 (the_low_target): Remove the op field.
1391 * linux-bfin-low.cc (class bfin_target) <sw_breakpoint_from_kind>:
1392 Declare.
1393 (bfin_sw_breakpoint_from_kind): Turn into...
1394 (bfin_target::sw_breakpoint_from_kind): ...this.
1395 (the_low_target): Remove the op field.
1396 * linux-cris-low.cc (class cris_target) <sw_breakpoint_from_kind>:
1397 Declare.
1398 (cris_sw_breakpoint_from_kind): Turn into...
1399 (cris_target::sw_breakpoint_from_kind): ...this.
1400 (the_low_target): Remove the op field.
1401 * linux-crisv32-low.cc (class crisv32_target)
1402 <sw_breakpoint_from_kind>: Declare.
1403 (cris_sw_breakpoint_from_kind): Turn into...
1404 (crisv32_target::sw_breakpoint_from_kind): ...this.
1405 (the_low_target): Remove the op field.
1406 * linux-ia64-low.cc (class ia64_target) <sw_breakpoint_from_kind>:
1407 Declare.
1408 (ia64_target::sw_breakpoint_from_kind): Define.
1409 * linux-m32r-low.cc (class m32r_target) <sw_breakpoint_from_kind>:
1410 Declare.
1411 (m32r_sw_breakpoint_from_kind): Turn into...
1412 (m32r_target::sw_breakpoint_from_kind): ...this.
1413 (the_low_target): Remove the op field.
1414 * linux-m68k-low.cc (class m68k_target) <sw_breakpoint_from_kind>:
1415 Declare.
1416 (m68k_sw_breakpoint_from_kind): Turn into...
1417 (m68k_target::sw_breakpoint_from_kind): ...this.
1418 (the_low_target): Remove the op field.
1419 * linux-mips-low.cc (class mips_target) <sw_breakpoint_from_kind>:
1420 Declare.
1421 (mips_sw_breakpoint_from_kind): Turn into...
1422 (mips_target::sw_breakpoint_from_kind): ...this.
1423 (the_low_target): Remove the op field.
1424 * linux-nios2-low.cc (class nios2_target) <sw_breakpoint_from_kind>:
1425 Declare.
1426 (nios2_sw_breakpoint_from_kind): Turn into...
1427 (nios2_target::sw_breakpoint_from_kind): ...this.
1428 (the_low_target): Remove the op field.
1429 * linux-ppc-low.cc (class ppc_target) <sw_breakpoint_from_kind>:
1430 Declare.
1431 (ppc_sw_breakpoint_from_kind): Turn into...
1432 (ppc_target::sw_breakpoint_from_kind): ...this.
1433 (the_low_target): Remove the op field.
1434 * linux-riscv-low.cc (class riscv_target) <sw_breakpoint_from_kind>:
1435 Declare.
1436 (riscv_sw_breakpoint_from_kind): Turn into...
1437 (riscv_target::sw_breakpoint_from_kind): ...this.
1438 (the_low_target): Remove the op field.
1439 * linux-s390-low.cc (class s390_target) <sw_breakpoint_from_kind>:
1440 Declare.
1441 (s390_sw_breakpoint_from_kind): Turn into...
1442 (s390_target::sw_breakpoint_from_kind): ...this.
1443 (the_low_target): Remove the op field.
1444 * linux-sh-low.cc (class sh_target) <sw_breakpoint_from_kind>:
1445 Declare.
1446 (sh_sw_breakpoint_from_kind): Turn into...
1447 (sh_target::sw_breakpoint_from_kind): ...this.
1448 (the_low_target): Remove the op field.
1449 * linux-sparc-low.cc (class sparc_target) <sw_breakpoint_from_kind>:
1450 Declare.
1451 (sparc_sw_breakpoint_from_kind): Turn into...
1452 (sparc_target::sw_breakpoint_from_kind): ...this.
1453 (the_low_target): Remove the op field.
1454 * linux-tic6x-low.cc (class tic6x_target) <sw_breakpoint_from_kind>:
1455 Declare.
1456 (tic6x_sw_breakpoint_from_kind): Turn into...
1457 (tic6x_target::sw_breakpoint_from_kind): ...this.
1458 (the_low_target): Remove the op field.
1459 * linux-tile-low.cc (class tile_target) <sw_breakpoint_from_kind>:
1460 Declare.
1461 (tile_sw_breakpoint_from_kind): Turn into...
1462 (tile_target::sw_breakpoint_from_kind): ...this.
1463 (the_low_target): Remove the op field.
1464 * linux-xtensa-low.cc (class xtensa_target)
1465 <sw_breakpoint_from_kind>: Declare.
1466 (xtensa_sw_breakpoint_from_kind): Turn into...
1467 (xtensa_target::sw_breakpoint_from_kind): ...this.
1468 (the_low_target): Remove the op field.
1469
14702020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1471
1472 Remove the 'breakpoint_kind_from_pc' and
1473 'breakpoint_kind_from_current_state' linux target ops, and let the
1474 concrete linux target define them by overriding the ops of
1475 process_stratum_target.
1476
1477 * linux-low.cc (linux_process_target::breakpoint_kind_from_pc):
1478 Remove.
1479 (linux_process_target::breakpoint_kind_from_current_state): Remove.
1480 * linux-low.h (struct linux_target_ops): Remove ops.
1481 (class linux_process_target) <breakpoint_kind_from_pc>: Remove.
1482 <breakpoint_kind_from_current_state>: Remove.
1483 * linux-x86-low.cc (the_low_target): Remove the op fields.
1484 * linux-bfin-low.cc (the_low_target): Ditto.
1485 * linux-cris-low.cc (the_low_target): Ditto.
1486 * linux-crisv32-low.cc (the_low_target): Ditto.
1487 * linux-m32r-low.cc (the_low_target): Ditto.
1488 * linux-m68k-low.cc (the_low_target): Ditto.
1489 * linux-mips-low.cc (the_low_target): Ditto.
1490 * linux-nios2-low.cc (the_low_target): Ditto.
1491 * linux-ppc-low.cc (the_low_target): Ditto.
1492 * linux-s390-low.cc (the_low_target): Ditto.
1493 * linux-sh-low.cc (the_low_target): Ditto.
1494 * linux-sparc-low.cc (the_low_target): Ditto.
1495 * linux-tic6x-low.cc (the_low_target): Ditto.
1496 * linux-tile-low.cc (the_low_target): Ditto.
1497 * linux-xtensa-low.cc (the_low_target): Ditto.
1498 * linux-aarch64-low.cc (class aarch64_target)
1499 <breakpoint_kind_from_pc>
1500 <breakpoint_kind_from_current_state>: Declare.
1501 (aarch64_breakpoint_kind_from_pc): Turn into...
1502 (aarch64_target::breakpoint_kind_from_pc): ...this.
1503 (aarch64_breakpoint_kind_from_current_state): Turn into...
1504 (aarch64_target::breakpoint_kind_from_current_state): ...this.
1505 (the_low_target): Remove the op fields.
1506 * linux-arm-low.cc (class arm_target):
1507 <breakpoint_kind_from_pc>
1508 <breakpoint_kind_from_current_state>: Declare.
1509 (arm_target::breakpoint_kind_from_pc): Define.
1510 (arm_target::breakpoint_kind_from_current_state): Define.
1511 (the_low_target): Remove the op fields.
1512 * linux-riscv-low.cc (class riscv_target):
1513 <breakpoint_kind_from_pc>: Declare.
1514 (riscv_breakpoint_kind_from_pc): Turn into...
1515 (riscv_target::breakpoint_kind_from_pc): ...this.
1516 (the_low_target): Remove the op fields.
1517
15182020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1519
1520 Turn the 'get_pc' and 'set_pc' linux target ops into methods
1521 of linux_process_target.
1522
1523 * linux-low.h (struct linux_target_ops): Remove the ops.
1524 (class linux_process_target) <low_supports_breakpoints>
1525 <low_get_pc>
1526 <low_set_pc>: Declare.
1527 * linux-low.cc (supports_breakpoints): Turn into...
1528 (linux_process_target::low_supports_breakpoints): ...this.
1529 (linux_process_target::low_get_pc): Define.
1530 (linux_process_target::low_set_pc): Define.
1531
1532 Update the callers below.
1533
1534 (linux_process_target::get_pc)
1535 (linux_process_target::save_stop_reason)
1536 (linux_process_target::maybe_move_out_of_jump_pad)
1537 (linux_process_target::wait_1)
1538 (linux_process_target::resume_one_lwp_throw)
1539 (linux_process_target::resume)
1540 (linux_process_target::proceed_all_lwps)
1541 (linux_process_target::read_pc)
1542 (linux_process_target::write_pc)
1543
1544 * linux-x86-low.cc (class linux_process_target)
1545 <low_supports_breakpoints>
1546 <low_get_pc>
1547 <low_set_pc>: Declare.
1548 (x86_target::low_supports_breakpoints): Define.
1549 (x86_get_pc): Turn into...
1550 (x86_target::low_get_pc): ...this.
1551 (x86_set_pc): Turn into...
1552 (x86_target::low_set_pc): ...this.
1553 (the_low_target): Remove the op fields.
1554 * linux-arm-low.cc (class arm_target)
1555 <low_supports_breakpoints>
1556 <low_get_pc>
1557 <low_set_pc>: Declare.
1558 (arm_target::low_supports_breakpoints)
1559 (arm_target::low_get_pc)
1560 (arm_target::low_set_pc): Define.
1561 (the_low_target): Remove the op fields.
1562 * linux-bfin-low.cc (class bfin_target)
1563 <low_supports_breakpoints>
1564 <low_get_pc>
1565 <low_set_pc>: Declare.
1566 (bfin_target::low_supports_breakpoints)
1567 (bfin_target::low_get_pc)
1568 (bfin_target::low_set_pc): Define.
1569 (the_low_target): Remove the op fields.
1570 * linux-cris-low.cc (class cris_target)
1571 <low_supports_breakpoints>
1572 <low_get_pc>
1573 <low_set_pc>: Declare.
1574 (cris_target::low_supports_breakpoints)
1575 (cris_target::low_get_pc)
1576 (cris_target::low_set_pc): Define.
1577 (the_low_target): Remove the op fields.
1578 * linux-crisv32-low.cc (class crisv32_target)
1579 <low_supports_breakpoints>
1580 <low_get_pc>
1581 <low_set_pc>: Declare.
1582 (crisv32_target::low_supports_breakpoints)
1583 (crisv32_target::low_get_pc)
1584 (crisv32_target::low_set_pc): Define.
1585 (the_low_target): Remove the op fields.
1586 * linux-m32r-low.cc (class m32r_target)
1587 <low_supports_breakpoints>
1588 <low_get_pc>
1589 <low_set_pc>: Declare.
1590 (m32r_target::low_supports_breakpoints)
1591 (m32r_target::low_get_pc)
1592 (m32r_target::low_set_pc): Define.
1593 (the_low_target): Remove the op fields.
1594 * linux-m68k-low.cc (class m68k_target)
1595 <low_supports_breakpoints>
1596 <low_get_pc>
1597 <low_set_pc>: Declare.
1598 (m68k_target::low_supports_breakpoints)
1599 (m68k_target::low_get_pc)
1600 (m68k_target::low_set_pc): Define.
1601 (the_low_target): Remove the op fields.
1602 * linux-nios2-low.cc (class nios2_target)
1603 <low_supports_breakpoints>
1604 <low_get_pc>
1605 <low_set_pc>: Declare.
1606 (nios2_target::low_supports_breakpoints)
1607 (nios2_target::low_get_pc)
1608 (nios2_target::low_set_pc): Define.
1609 (the_low_target): Remove the op fields.
1610 * linux-sh-low.cc (class sh_target)
1611 <low_supports_breakpoints>
1612 <low_get_pc>
1613 <low_set_pc>: Declare.
1614 (sh_target::low_supports_breakpoints)
1615 (sh_target::low_get_pc)
1616 (sh_target::low_set_pc): Define.
1617 (the_low_target): Remove the op fields.
1618 * linux-xtensa-low.cc (class xtensa_target)
1619 <low_supports_breakpoints>
1620 <low_get_pc>
1621 <low_set_pc>: Declare.
1622 (xtensa_target::low_supports_breakpoints)
1623 (xtensa_target::low_get_pc)
1624 (xtensa_target::low_set_pc): Define.
1625 (the_low_target): Remove the op fields.
1626 * linux-sparc-low.cc (class sparc_target)
1627 <low_supports_breakpoints>
1628 <low_get_pc>: Declare.
1629 (sparc_target::low_supports_breakpoints)
1630 (sparc_target::low_get_pc): Define.
1631 (the_low_target): Remove the op fields.
1632 * linux-tile-low.cc (class tile_target)
1633 <low_supports_breakpoints>
1634 <low_get_pc>
1635 <low_set_pc>: Declare.
1636 (tile_target::low_supports_breakpoints)
1637 (tile_target::low_get_pc)
1638 (tile_target::low_set_pc): Define.
1639 (the_low_target): Remove the op fields.
1640 * linux-aarch64-low.cc (class aarch64_target)
1641 <low_supports_breakpoints>
1642 <low_get_pc>
1643 <low_set_pc>: Declare.
1644 (aarch64_target::low_supports_breakpoints): Define.
1645 (aarch64_get_pc): Turn into...
1646 (aarch64_target::low_get_pc): ...this.
1647 (aarch64_set_pc): Turn into...
1648 (aarch64_target::low_set_pc): ...this.
1649 (the_low_target): Remove the op fields.
1650 * linux-mips-low.cc (class mips_target)
1651 <low_supports_breakpoints>
1652 <low_get_pc>
1653 <low_set_pc>: Declare.
1654 (mips_target::low_supports_breakpoints): Define.
1655 (mips_get_pc): Turn into...
1656 (mips_target::low_get_pc): ...this.
1657 (mips_set_pc): Turn into...
1658 (mips_target::low_set_pc): ...this.
1659 (the_low_target): Remove the op fields.
1660 * linux-ppc-low.cc (class ppc_target)
1661 <low_supports_breakpoints>
1662 <low_get_pc>
1663 <low_set_pc>: Declare.
1664 (ppc_target::low_supports_breakpoints): Define.
1665 (ppc_get_pc): Turn into...
1666 (ppc_target::low_get_pc): ...this.
1667 (ppc_set_pc): Turn into...
1668 (ppc_target::low_set_pc): ...this.
1669 (the_low_target): Remove the op fields.
1670 * linux-riscv-low.cc (class riscv_target)
1671 <low_supports_breakpoints>
1672 <low_get_pc>
1673 <low_set_pc>: Declare.
1674 (riscv_target::low_supports_breakpoints): Define.
1675 (riscv_get_pc): Turn into...
1676 (riscv_target::low_get_pc): ...this.
1677 (riscv_set_pc): Turn into...
1678 (riscv_target::low_set_pc): ...this.
1679 (the_low_target): Remove the op fields.
1680 * linux-s390-low.cc (class s390_target)
1681 <low_supports_breakpoints>
1682 <low_get_pc>
1683 <low_set_pc>: Declare.
1684 (s390_target::low_supports_breakpoints): Define.
1685 (s390_get_pc): Turn into...
1686 (s390_target::low_get_pc): ...this.
1687 (s390_set_pc): Turn into...
1688 (s390_target::low_set_pc): ...this.
1689 (the_low_target): Remove the op fields.
1690 * linux-tic6x-low.cc (class tic6x_target)
1691 <low_supports_breakpoints>
1692 <low_get_pc>
1693 <low_set_pc>: Declare.
1694 (tic6x_target::low_supports_breakpoints): Define.
1695 (tic6x_get_pc): Turn into...
1696 (tic6x_target::low_get_pc): ...this.
1697 (tic6x_set_pc): Turn into...
1698 (tic6x_target::low_set_pc): ...this.
1699 (the_low_target): Remove the op fields.
1700
17012020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1702
1703 Turn some more static methods in linux-low into private methods
1704 of linux_process_target.
1705
1706 * linux-low.cc (get_pc): Turn into...
1707 (linux_process_target::get_pc): ...this.
1708 (save_stop_reason): Turn into...
1709 (linux_process_target::save_stop_reason): ...this.
1710 (thread_still_has_status_pending_p): Turn into...
1711 (linux_process_target::thread_still_has_status_pending): ...this.
1712 (status_pending_p_callback): Turn into...
1713 (linux_process_target::status_pending_p_callback): ...this.
1714 (resume_stopped_resumed_lwps): Turn into...
1715 (linux_process_target::resume_stopped_resumed_lwps): ...this.
1716 (install_software_single_step_breakpoints): Turn into...
1717 (linux_process_target::install_software_single_step_breakpoints):
1718 ...this.
1719 (single_step): Turn into...
1720 (linux_process_target::single_step): ...this.
1721 (linux_resume_one_lwp_throw): Turn into...
1722 (linux_process_target::resume_one_lwp_throw): ...this.
1723 (linux_resume_one_lwp): Turn into...
1724 (linux_process_target::resume_one_lwp): ...this.
1725 (resume_status_pending_p): Turn into...
1726 (linux_process_target::resume_status_pending): ...this.
1727 (need_step_over_p): Turn into...
1728 (linux_process_target::thread_needs_step_over): ...this.
1729 (linux_resume_one_thread): Turn into...
1730 (linux_process_target::resume_one_thread): ...this.
1731 (proceed_one_lwp): Turn into...
1732 (linux_process_target::proceed_one_lwp): ...this.
1733 (unsuspend_and_proceed_one_lwp): Turn into...
1734 (linux_process_target::unsuspend_and_proceed_one_lwp): ...this.
1735
1736 Update the calls/references to the above functions below.
1737
1738 (linux_process_target::handle_extended_wait)
1739 (linux_process_target::filter_event)
1740 (linux_process_target::wait_for_event_filtered)
1741 (linux_process_target::wait_1)
1742 (linux_process_target::move_out_of_jump_pad)
1743 (linux_process_target::start_step_over)
1744 (linux_process_target::resume)
1745 (linux_process_target::proceed_all_lwps)
1746 (regsets_store_inferior_registers)
1747 (linux_process_target::store_register)
1748
1749 * linux-low.h (class linux_process_target)
1750 <get_pc>
1751 <save_stop_reason>
1752 <thread_still_has_status_pending>
1753 <status_pending_p_callback>
1754 <resume_stopped_resumed_lwps>
1755 <install_software_single_step_breakpoints>
1756 <single_step>
1757 <resume_one_lwp_throw>
1758 <resume_one_lwp>
1759 <resume_status_pending>
1760 <thread_needs_step_over>
1761 <resume_one_thread>
1762 <proceed_one_lwp>
1763 <unsuspend_and_proceed_one_lwp>: Declare.
1764
17652020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1766
1767 Turn the 'fetch_register' linux target op into a method of
1768 linux_process_target.
1769
1770 * linux-low.h (struct linux_target_ops) <fetch_register>: Remove.
1771 (class linux_process_target) <low_fetch_register>: Declare.
1772 * linux-x86-low.cc (the_low_target)
1773 * linux-aarch64-low.cc (the_low_target)
1774 * linux-arm-low.cc (the_low_target)
1775 * linux-bfin-low.cc (the_low_target)
1776 * linux-cris-low.cc (the_low_target)
1777 * linux-crisv32-low.cc (the_low_target)
1778 * linux-m32r-low.cc (the_low_target)
1779 * linux-m68k-low.cc (the_low_target)
1780 * linux-nios2-low.cc (the_low_target)
1781 * linux-ppc-low.cc (the_low_target)
1782 * linux-s390-low.cc (the_low_target)
1783 * linux-sh-low.cc (the_low_target)
1784 * linux-sparc-low.cc (the_low_target)
1785 * linux-tic6x-low.cc (the_low_target)
1786 * linux-tile-low.cc (the_low_target)
1787 * linux-xtensa-low.cc (the_low_target): Remove the op field.
1788 * linux-ia64-low.cc (class ia64_target) <low_fetch_register>:
1789 Declare.
1790 (ia64_fetch_register): Turn into...
1791 (ia64_target::low_fetch_register): ...this.
1792 (the_low_target): Remove the op field.
1793 * linux-mips-low.cc (class mips_target) <low_fetch_register>:
1794 Declare.
1795 (mips_fetch_register): Turn into...
1796 (mips_target::low_fetch_register): ...this.
1797 (the_low_target): Remove the op field.
1798 * linux-riscv-low.cc (class riscv_target) <low_fetch_register>:
1799 Declare.
1800 (riscv_fetch_register): Turn into...
1801 (riscv_target::low_fetch_register): ...this.
1802 (the_low_target): Remove the op field.
1803
1804 Update the callers below.
1805
1806 * linux-low.cc (linux_process_target::fetch_registers)
1807 (linux_process_target::low_fetch_register)
1808
18092020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1810
1811 Turn the 'cannot_fetch_register' and 'cannot_store_register'
1812 linux target ops into methods of linux_process_target.
1813
1814 * linux-low.h (struct linux_target_ops): Remove the low target ops.
1815 (class linux_process_target) <fetch_register>
1816 <store_register>
1817 <usr_fetch_inferior_registers>
1818 <usr_store_inferior_registers>
1819 <low_cannot_fetch_register>
1820 <low_cannot_fetch_register> Declare.
1821 * linux-low.cc (fetch_register): Turn into...
1822 (linux_process_target::fetch_register): ...this.
1823 (store_register): Turn into ...
1824 (linux_process_target::store_register): ...this.
1825 (usr_fetch_inferior_registers): Turn into...
1826 (linux_process_target::usr_fetch_inferior_registers): ...this.
1827 (usr_store_inferior_registers): Turn into...
1828 (linux_process_target::usr_store_inferior_registers): ...this.
1829 * linux-x86-low.cc (class x86_target)
1830 <low_cannot_fetch_register>
1831 <low_cannot_store_register>: Declare.
1832 (x86_cannot_store_register): Turn into...
1833 (x86_target::low_cannot_store_register): ...this.
1834 (x86_cannot_fetch_register): Turn into...
1835 (x86_target::low_cannot_fetch_register): ...this.
1836 (the_low_target): Remove the target op fields.
1837 * linux-aarch64-low.cc (class aarch64_target)
1838 <low_cannot_fetch_register>
1839 <low_cannot_store_register>: Declare.
1840 (aarch64_target::low_cannot_fetch_register)
1841 (aarch64_target::low_cannot_store_register): Define.
1842 (the_low_target): Remove the op fields.
1843 * linux-arm-low.cc (class arm_target)
1844 <low_cannot_fetch_register>
1845 <low_cannot_store_register>: Declare.
1846 (arm_cannot_fetch_register): Turn into...
1847 (arm_target::low_cannot_fetch_register): ...this.
1848 (arm_cannot_store_register): Turn into...
1849 (arm_target::low_cannot_store_register): ...this.
1850 (the_low_target): Remove the op fields.
1851 * linux-bfin-low.cc (class bfin_target)
1852 <low_cannot_fetch_register>
1853 <low_cannot_store_register>: Declare.
1854 (bfin_cannot_fetch_register): Turn into...
1855 (bfin_target::low_cannot_fetch_register): ...this.
1856 (bfin_cannot_store_register): Turn into...
1857 (bfin_target::low_cannot_store_register): ...this.
1858 (the_low_target): Remove the op fields.
1859 * linux-cris-low.cc (class cris_target)
1860 <low_cannot_fetch_register>
1861 <low_cannot_store_register>: Declare.
1862 (cris_cannot_fetch_register): Turn into...
1863 (cris_target::low_cannot_fetch_register): ...this.
1864 (cris_cannot_store_register): Turn into...
1865 (cris_target::low_cannot_store_register): ...this.
1866 (the_low_target): Remove the op fields.
1867 * linux-crisv32-low.cc (class crisv32_target)
1868 <low_cannot_fetch_register>
1869 <low_cannot_store_register>: Declare.
1870 (crisv32_target::low_cannot_fetch_register)
1871 (crisv32_target::low_cannot_store_register): Define.
1872 (the_low_target): Remove the op fields.
1873 * linux-ia64-low.cc (class ia64_target)
1874 <low_cannot_fetch_register>
1875 <low_cannot_store_register>: Declare.
1876 (ia64_cannot_fetch_register): Turn into...
1877 (ia64_target::low_cannot_fetch_register): ...this.
1878 (ia64_cannot_store_register): Turn into...
1879 (ia64_target::low_cannot_store_register): ...this.
1880 (the_low_target): Remove the op fields.
1881 * linux-m32r-low.cc (class m32r_target)
1882 <low_cannot_fetch_register>
1883 <low_cannot_store_register>: Declare.
1884 (m32r_cannot_fetch_register): Turn into...
1885 (m32r_target::low_cannot_fetch_register): ...this.
1886 (m32r_cannot_store_register): Turn into...
1887 (m32r_target::low_cannot_store_register): ...this.
1888 (the_low_target): Remove the op fields.
1889 * linux-m68k-low.cc (class m68k_target)
1890 <low_cannot_fetch_register>
1891 <low_cannot_store_register>: Declare.
1892 (m68k_cannot_fetch_register): Turn into...
1893 (m68k_target::low_cannot_fetch_register): ...this.
1894 (m68k_cannot_store_register): Turn into...
1895 (m68k_target::low_cannot_store_register): ...this.
1896 (the_low_target): Remove the op fields.
1897 * linux-mips-low.cc (class mips_target)
1898 <low_cannot_fetch_register>
1899 <low_cannot_store_register>: Declare.
1900 (mips_cannot_fetch_register): Turn into...
1901 (mips_target::low_cannot_fetch_register): ...this.
1902 (mips_cannot_store_register): Turn into...
1903 (mips_target::low_cannot_store_register): ...this.
1904 (get_usrregs_info): Inline at the call sites in
1905 low_cannot_fetch_register and low_cannot_store_register,
1906 and remove.
1907 (the_low_target): Remove the op fields.
1908 * linux-nios2-low.cc (class nios2_target)
1909 <low_cannot_fetch_register>
1910 <low_cannot_store_register>: Declare.
1911 (nios2_cannot_fetch_register): Turn into...
1912 (nios2_target::low_cannot_fetch_register): ...this.
1913 (nios2_cannot_store_register): Turn into...
1914 (nios2_target::low_cannot_store_register): ...this.
1915 (the_low_target): Remove the op fields.
1916 * linux-ppc-low.cc (class ppc_target)
1917 <low_cannot_fetch_register>
1918 <low_cannot_store_register>: Declare.
1919 (ppc_cannot_fetch_register): Turn into...
1920 (ppc_target::low_cannot_fetch_register): ...this.
1921 (ppc_cannot_store_register): Turn into...
1922 (ppc_target::low_cannot_store_register): ...this.
1923 (the_low_target): Remove the op fields.
1924 * linux-riscv-low.cc (class riscv_target)
1925 <low_cannot_fetch_register>
1926 <low_cannot_store_register>: Declare.
1927 (riscv_target::low_cannot_fetch_register)
1928 (riscv_target::low_cannot_store_register): Define.
1929 (the_low_target): Remove the op fields.
1930 * linux-s390-low.cc (class s390_target)
1931 <low_cannot_fetch_register>
1932 <low_cannot_store_register>: Declare.
1933 (s390_cannot_fetch_register): Turn into...
1934 (s390_target::low_cannot_fetch_register): ...this.
1935 (s390_cannot_store_register): Turn into...
1936 (s390_target::low_cannot_store_register): ...this.
1937 (the_low_target): Remove the op fields.
1938 * linux-sh-low.cc (class sh_target)
1939 <low_cannot_fetch_register>
1940 <low_cannot_store_register>: Declare.
1941 (sh_cannot_fetch_register): Turn into...
1942 (sh_target::low_cannot_fetch_register): ...this.
1943 (sh_cannot_store_register): Turn into...
1944 (sh_target::low_cannot_store_register): ...this.
1945 (the_low_target): Remove the op fields.
1946 * linux-sparc-low.cc (class sparc_target)
1947 <low_cannot_fetch_register>
1948 <low_cannot_store_register>: Declare.
1949 (sparc_cannot_fetch_register): Turn into...
1950 (sparc_target::low_cannot_fetch_register): ...this.
1951 (sparc_cannot_store_register): Turn into...
1952 (sparc_target::low_cannot_store_register): ...this.
1953 (the_low_target): Remove the op fields.
1954 * linux-tic6x-low.cc (class tic6x_target)
1955 <low_cannot_fetch_register>
1956 <low_cannot_store_register>: Declare.
1957 (tic6x_cannot_fetch_register): Turn into...
1958 (tic6x_target::low_cannot_fetch_register): ...this.
1959 (tic6x_cannot_store_register): Turn into...
1960 (tic6x_target::low_cannot_store_register): ...this.
1961 (the_low_target): Remove the op fields.
1962 * linux-tile-low.cc (class tile_target)
1963 <low_cannot_fetch_register>
1964 <low_cannot_store_register>: Declare.
1965 (tile_cannot_fetch_register): Turn into...
1966 (tile_target::low_cannot_fetch_register): ...this.
1967 (tile_cannot_store_register): Turn into...
1968 (tile_target::low_cannot_store_register): ...this.
1969 (the_low_target): Remove the op fields.
1970 * linux-xtensa-low.cc (class xtensa_target)
1971 <low_cannot_fetch_register>
1972 <low_cannot_store_register>: Declare.
1973 (xtensa_target::low_cannot_fetch_register)
1974 (xtensa_target::low_cannot_store_register): Define.
1975 (the_low_target): Remove the op fields.
1976
19772020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1978
1979 Turn the 'regs_info' linux target op into a method of
1980 linux_process_target.
1981
1982 * linux-low.h (struct linux_target_ops) <regs_info>: Remove.
1983 (class linux_process_target) <get_regs_info>: Define.
1984
1985 Update the callers below.
1986
1987 * linux-low.cc (linux_process_target::fetch_registers)
1988 (linux_process_target::store_registers)
1989 * proc-service.cc (gregset_info)
1990
1991 * linux-x86-low.cc (class x86_target) <get_regs_info>: Declare.
1992 (x86_linux_regs_info): Turn into ...
1993 (x86_target::get_regs_info): ...this.
1994 (the_low_target): Remove the op field.
1995 * linux-aarch64-low.cc (class aarch64_target) <get_regs_info>:
1996 Declare.
1997 (aarch64_regs_info): Turn into ...
1998 (aarch64_target::get_regs_info): ...this.
1999 (the_low_target): Remove the op field.
2000 * linux-arm-low.cc (class arm_target) <get_regs_info>: Declare.
2001 (arm_regs_info): Turn into ...
2002 (arm_target::get_regs_info): ...this.
2003 (the_low_target): Remove the op field.
2004 * linux-bfin-low.cc (class bfin_target) <get_regs_info>: Declare.
2005 (bfin_regs_info): Turn into ...
2006 (bfin_target::get_regs_info): ...this.
2007 (the_low_target): Remove the op field.
2008 * linux-cris-low.cc (class cris_target) <get_regs_info>: Declare.
2009 (cris_regs_info): Turn into ...
2010 (cris_target::get_regs_info): ...this.
2011 (the_low_target): Remove the op field.
2012 * linux-crisv32-low.cc (class crisv32_target) <get_regs_info>:
2013 Declare.
2014 (crisv32_regs_info): Turn into ...
2015 (crisv32_target::get_regs_info): ...this.
2016 (the_low_target): Remove the op field.
2017 * linux-ia64-low.cc (class ia64_target) <get_regs_info>: Declare.
2018 (ia64_regs_info): Turn into ...
2019 (ia64_target::get_regs_info): ...this.
2020 (the_low_target): Remove the op field.
2021 * linux-m32r-low.cc (class m32r_target) <get_regs_info>: Declare.
2022 (m32r_regs_info): Turn into ...
2023 (m32r_target::get_regs_info): ...this.
2024 (the_low_target): Remove the op field.
2025 * linux-m68k-low.cc (class m68k_target) <get_regs_info>: Declare.
2026 (m68k_regs_info): Turn into ...
2027 (m68k_target::get_regs_info): ...this.
2028 (the_low_target): Remove the op field.
2029 * linux-mips-low.cc (class mips_target) <get_regs_info>: Declare.
2030 (mips_regs_info): Turn into ...
2031 (mips_target::get_regs_info): ...this.
2032 (the_low_target): Remove the op field.
2033 (get_usrregs_info): Update the call to the op.
2034 * linux-nios2-low.cc (class nios2_target) <get_regs_info>: Declare.
2035 (nios2_regs_info): Turn into ...
2036 (nios2_target::get_regs_info): ...this.
2037 (the_low_target): Remove the op field.
2038 * linux-ppc-low.cc (class ppc_target) <get_regs_info>: Declare.
2039 (ppc_regs_info): Turn into ...
2040 (ppc_target::get_regs_info): ...this.
2041 (the_low_target): Remove the op field.
2042 * linux-riscv-low.cc (class riscv_target) <get_regs_info>: Declare.
2043 (riscv_regs_info): Turn into ...
2044 (riscv_target::get_regs_info): ...this.
2045 (the_low_target): Remove the op field.
2046 * linux-s390-low.cc (class s390_target) <get_regs_info>: Declare.
2047 (s390_regs_info): Turn into ...
2048 (s390_target::get_regs_info): ...this.
2049 (the_low_target): Remove the op field.
2050 (s390_collect_ptrace_register)
2051 (s390_supply_ptrace_register)
2052 (s390_fill_gregset): Update the call to the op.
2053 * linux-sh-low.cc (class sh_target) <get_regs_info>: Declare.
2054 (sh_regs_info): Turn into ...
2055 (sh_target::get_regs_info): ...this.
2056 (the_low_target): Remove the op field.
2057 * linux-sparc-low.cc (class sparc_target) <get_regs_info>: Declare.
2058 (sparc_regs_info): Turn into ...
2059 (sparc_target::get_regs_info): ...this.
2060 (the_low_target): Remove the op field.
2061 * linux-tic6x-low.cc (class tic6x_target) <get_regs_info>: Declare.
2062 (tic6x_regs_info): Turn into ...
2063 (tic6x_target::get_regs_info): ...this.
2064 (the_low_target): Remove the op field.
2065 * linux-tile-low.cc (class tile_target) <get_regs_info>: Declare.
2066 (tile_regs_info): Turn into ...
2067 (tile_target::get_regs_info): ...this.
2068 (the_low_target): Remove the op field.
2069 * linux-xtensa-low.cc (class xtensa_target) <get_regs_info>:
2070 Declare.
2071 (xtensa_regs_info): Turn into ...
2072 (xtensa_target::get_regs_info): ...this.
2073 (the_low_target): Remove the op field.
2074
20752020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2076
2077 Turn the 'arch_setup' linux target op into a method of
2078 linux_process_target.
2079
2080 * linux-low.h (struct linux_target_ops) <arch_setup>: Delete.
2081 (class linux_process_target) <arch_setup_thread>
2082 <low_arch_setup>: New declarations.
2083 * linux-low.cc (linux_arch_setup): Delete.
2084 (linux_arch_setup_thread): Turn into...
2085 (linux_process_target::arch_setup_thread): ... this.
2086
2087 Update the callers below.
2088
2089 (linux_process_target::handle_extended_wait)
2090 (linux_process_target::post_create_inferior)
2091 (linux_process_target::filter_event)
2092
2093 * linux-x86-low.cc (class x86_target) <low_arch_setup>: New
2094 declaration.
2095 (x86_linux_update_xmltarget): Turn into...
2096 (x86_target::update_xmltarget): ...this.
2097 (x86_linux_process_qsupported): Update the call to
2098 x86_linux_update_xmltarget.
2099 (x86_arch_setup): Turn into ...
2100 (x86_target::low_arch_setup): ...this.
2101 (the_low_target): Remove the op field.
2102 * linux-aarch64-low.cc (class aarch64_target) <low_arch_setup>: New
2103 declaration.
2104 (aarch64_arch_setup): Turn into ...
2105 (aarch64_target::low_arch_setup): ...this.
2106 (the_low_target): Remove the op field.
2107 * linux-arm-low.cc (class arm_target) <low_arch_setup>: New
2108 declaration.
2109 (arm_arch_setup): Turn into ...
2110 (arm_target::low_arch_setup): ...this.
2111 (the_low_target): Remove the op field.
2112 * linux-bfin-low.cc (class bfin_target) <low_arch_setup>: New
2113 declaration.
2114 (bfin_arch_setup): Turn into ...
2115 (bfin_target::low_arch_setup): ...this.
2116 (the_low_target): Remove the op field.
2117 * linux-cris-low.cc (class cris_target) <low_arch_setup>: New
2118 declaration.
2119 (cris_arch_setup): Turn into ...
2120 (cris_target::low_arch_setup): ...this.
2121 (the_low_target): Remove the op field.
2122 * linux-crisv32-low.cc (class crisv32_target) <low_arch_setup>: New
2123 declaration.
2124 (crisv32_arch_setup): Turn into ...
2125 (crisv32_target::low_arch_setup): ...this.
2126 (the_low_target): Remove the op field.
2127 * linux-ia64-low.cc (class ia64_target) <low_arch_setup>: New
2128 declaration.
2129 (ia64_arch_setup): Turn into ...
2130 (ia64_target::low_arch_setup): ...this.
2131 (the_low_target): Remove the op field.
2132 * linux-m32r-low.cc (class m32r_target) <low_arch_setup>: New
2133 declaration.
2134 (m32r_arch_setup): Turn into ...
2135 (m32r_target::low_arch_setup): ...this.
2136 (the_low_target): Remove the op field.
2137 * linux-m68k-low.cc (class m68k_target) <low_arch_setup>: New
2138 declaration.
2139 (m68k_arch_setup): Turn into ...
2140 (m68k_target::low_arch_setup): ...this.
2141 (the_low_target): Remove the op field.
2142 * linux-mips-low.cc (class mips_target) <low_arch_setup>: New
2143 declaration.
2144 (mips_arch_setup): Turn into ...
2145 (mips_target::low_arch_setup): ...this.
2146 (the_low_target): Remove the op field.
2147 * linux-nios2-low.cc (class nios2_target) <low_arch_setup>: New
2148 declaration.
2149 (nios2_arch_setup): Turn into ...
2150 (nios2_target::low_arch_setup): ...this.
2151 (the_low_target): Remove the op field.
2152 * linux-ppc-low.cc (class ppc_target) <low_arch_setup>: New
2153 declaration.
2154 (ppc_arch_setup): Turn into ...
2155 (ppc_target::low_arch_setup): ...this.
2156 (the_low_target): Remove the op field.
2157 * linux-riscv-low.cc (class riscv_target) <low_arch_setup>: New
2158 declaration.
2159 (riscv_arch_setup): Turn into ...
2160 (riscv_target::low_arch_setup): ...this.
2161 (the_low_target): Remove the op field.
2162 * linux-s390-low.cc (class s390_target) <low_arch_setup>: New
2163 declaration.
2164 (s390_arch_setup): Turn into ...
2165 (s390_target::low_arch_setup): ...this.
2166 (the_low_target): Remove the op field.
2167 * linux-sh-low.cc (class sh_target) <low_arch_setup>: New
2168 declaration.
2169 (sh_arch_setup): Turn into ...
2170 (sh_target::low_arch_setup): ...this.
2171 (the_low_target): Remove the op field.
2172 * linux-sparc-low.cc (class sparc_target) <low_arch_setup>: New
2173 declaration.
2174 (sparc_arch_setup): Turn into ...
2175 (sparc_target::low_arch_setup): ...this.
2176 (the_low_target): Remove the op field.
2177 * linux-tic6x-low.cc (class tic6x_target) <low_arch_setup>: New
2178 declaration.
2179 (tic6x_arch_setup): Turn into ...
2180 (tic6x_target::low_arch_setup): ...this.
2181 (the_low_target): Remove the op field.
2182 * linux-tile-low.cc (class tile_target) <low_arch_setup>: New
2183 declaration.
2184 (tile_arch_setup): Turn into ...
2185 (tile_target::low_arch_setup): ...this.
2186 (the_low_target): Remove the op field.
2187 * linux-xtensa-low.cc (class xtensa_target) <low_arch_setup>: New
2188 declaration.
2189 (xtensa_arch_setup): Turn into ...
2190 (xtensa_target::low_arch_setup): ...this.
2191 (the_low_target): Remove the op field.
2192
21932020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2194
2195 * linux-low.h (the_linux_target): New extern declaration.
2196 * linux-low.cc (initialize_low): Use 'the_linux_target' to set
2197 'the_target'.
2198 (the_linux_target): Remove.
2199 * linux-x86-low.cc (class x86_target): New class.
2200 (the_x86_target): New static object.
2201 (the_linux_target): Define as pointer to the_x86_target.
2202 * linux-aarch64-low.cc (class aarch64_target): New class.
2203 (the_aarch64_target): New static object.
2204 (the_linux_target): Define as pointer to the_aarch64_target.
2205 * linux-arm-low.cc (class arm_target): New class.
2206 (the_arm_target): New static object.
2207 (the_linux_target): Define as pointer to the_arm_target.
2208 * linux-bfin-low.cc (class bfin_target): New class.
2209 (the_bfin_target): New static object.
2210 (the_linux_target): Define as pointer to the_bfin_target.
2211 * linux-cris-low.cc (class cris_target): New class.
2212 (the_cris_target): New static object.
2213 (the_linux_target): Define as pointer to the_cris_target.
2214 * linux-crisv32-low.cc (class crisv32_target): New class.
2215 (the_crisv32_target): New static object.
2216 (the_linux_target): Define as pointer to the_crisv32_target.
2217 * linux-ia64-low.cc (class ia64_target): New class.
2218 (the_ia64_target): New static object.
2219 (the_linux_target): Define as pointer to the_ia64_target.
2220 * linux-m32r-low.cc (class m32r_target): New class.
2221 (the_m32r_target): New static object.
2222 (the_linux_target): Define as pointer to the_m32r_target.
2223 * linux-m68k-low.cc (class m68k_target): New class.
2224 (the_m68k_target): New static object.
2225 (the_linux_target): Define as pointer to the_m68k_target.
2226 * linux-mips-low.cc (class mips_target): New class.
2227 (the_mips_target): New static object.
2228 (the_linux_target): Define as pointer to the_mips_target.
2229 * linux-nios2-low.cc (class nios2_target): New class.
2230 (the_nios2_target): New static object.
2231 (the_linux_target): Define as pointer to the_nios2_target.
2232 * linux-ppc-low.cc (class ppc_target): New class.
2233 (the_ppc_target): New static object.
2234 (the_linux_target): Define as pointer to the_ppc_target.
2235 * linux-riscv-low.cc (class riscv_target): New class.
2236 (the_riscv_target): New static object.
2237 (the_linux_target): Define as pointer to the_riscv_target.
2238 * linux-s390-low.cc (class s390_target): New class.
2239 (the_s390_target): New static object.
2240 (the_linux_target): Define as pointer to the_s390_target.
2241 * linux-sh-low.cc (class sh_target): New class.
2242 (the_sh_target): New static object.
2243 (the_linux_target): Define as pointer to the_sh_target.
2244 * linux-sparc-low.cc (class sparc_target): New class.
2245 (the_sparc_target): New static object.
2246 (the_linux_target): Define as pointer to the_sparc_target.
2247 * linux-tic6x-low.cc (class tic6x_target): New class.
2248 (the_tic6x_target): New static object.
2249 (the_linux_target): Define as pointer to the_tic6x_target.
2250 * linux-tile-low.cc (class tile_target): New class.
2251 (the_tile_target): New static object.
2252 (the_linux_target): Define as pointer to the_tile_target.
2253 * linux-xtensa-low.cc (class xtensa_target): New class.
2254 (the_xtensa_target): New static object.
2255 (the_linux_target): Define as pointer to the_xtensa_target.
2256
22572020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2258
2259 Turn some static functions in linux-low.cc into private methods of
2260 linux_process_target.
2261
2262 * linux-low.cc (handle_extended_wait): Turn into ...
2263 (linux_process_target::handle_extended_wait): ...this. Call
2264 'mourn' on 'this' object instead of 'the_target'.
2265 (maybe_move_out_of_jump_pad): Turn into...
2266 (linux_process_target::maybe_move_out_of_jump_pad): ...this.
2267 (linux_low_filter_event): Turn into...
2268 (linux_process_target::filter_event): ...this.
2269 (linux_wait_for_event_filtered): Turn into...
2270 (linux_process_target::wait_for_event_filtered): ...this.
2271 (linux_wait_for_event): Turn into...
2272 (linux_process_target::wait_for_event): ...this.
2273 (linux_wait_1): Turn into...
2274 (linux_process_target::wait_1): ...this.
2275 (wait_for_sigstop): Turn into...
2276 (linux_process_target::wait_for_sigstop): ...this.
2277 (move_out_of_jump_pad_callback): Turn into...
2278 (linux_process_target::move_out_of_jump_pad): ...this.
2279 (stop_all_lwps): Turn into...
2280 (linux_process_target::stop_all_lwps): ...this.
2281 (start_step_over): Turn into...
2282 (linux_process_target::start_step_over): ...this.
2283 (complete_ongoing_step_over): Turn into...
2284 (linux_process_target::complete_ongoing_step_over): ...this.
2285 (proceed_all_lwps): Turn into...
2286 (linux_process_target::proceed_all_lwps): ...this.
2287 (unstop_all_lwps): Turn into...
2288 (linux_process_target::unstop_all_lwps): ...this.
2289
2290 * linux-low.h (class linux_process_target)
2291 <handle_extended_wait>
2292 <maybe_move_out_of_jump_pad>
2293 filter_event>
2294 <wait_for_event_filtered>
2295 <wait_for_event>
2296 <wait_1>
2297 <wait_for_sigstop>
2298 <move_out_of_jump_pad>
2299 <stop_all_lwps>
2300 <start_step_over>
2301 <complete_ongoing_step_over>
2302 <proceed_all_lwps>
2303 <unstop_all_lwps>: Declare.
2304
2305 Update the callers below.
2306
2307 * linux-low.cc (linux_process_target::attach): Update.
2308 (linux_process_target::stabilize_threads): Ditto.
2309 (linux_process_target::wait): Ditto.
2310
23112020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2312
2313 * linux-low.h (struct linux_target_ops): Update the comment for
2314 'cannot_store_register' to return 0 or 1.
2315 * linux-ppc-low.cc (ppc_cannot_store_register): Return 1 instead
2316 of 2.
2317
23182020-03-20 Simon Marchi <simon.marchi@efficios.com>
2319
2320 * config.in: Re-generate.
2321 * configure: Re-generate.
2322
23232020-03-17 Kamil Rytarowski <n54@gmx.com>
2324
2325 * regcache.cc (find_register_by_number): Update.
2326 * tdesc.cc (init_target_desc): Likewise.
2327 * tdesc.h (target_desc::reg_defs): Likewise.
2328
23292020-03-12 Tom Tromey <tom@tromey.com>
2330
2331 * configure: Rebuild.
2332 * configure.ac (GDBSERVER_DEPFILES): Remove srv_selftest_objs.
2333 (WIN32APILIBS): New subst.
2334 * Makefile.in (SFILES, OBS, TAGS, GDBREPLAY_OBS): Remove
2335 gdbsupport files.
2336 (gdbsupport/%.o): Remove target.
2337 (GDBSUPPORT_BUILDDIR, GDBSUPPORT): New variables.
2338 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Add GDBSUPPORT.
2339 (WIN32APILIBS): New variable.
2340 (gdbserver$(EXEEXT)): Add WIN32APILIBS.
2341 (gdbreplay$(EXEEXT)): Likewise.
2342
23432020-03-12 Tom Tromey <tom@tromey.com>
2344
2345 * config.in, configure: Rebuild.
2346 * configure.ac: Call ZW_GNU_GETTEXT_SISTER_DIR.
2347 * acinclude.m4: Include gettext-sister.m4.
2348 * Makefile.in (top_builddir, INTL, INTL_DEPS, INTL_CFLAGS): New
2349 variables.
2350 (INCLUDE_CFLAGS): Add INTL_CFLAGS.
2351 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL.
2352
23532020-03-12 Simon Marchi <simon.marchi@efficios.com>
2354
2355 * acinclude.m4: Update path to selftest.m4.
2356
23572020-03-12 Simon Marchi <simon.marchi@efficios.com>
2358
2359 * configure.ac: Don't source bfd/development.sh, move
2360 GDB_AC_COMMON higher.
2361 * configure: Re-generate.
2362
23632020-03-12 Simon Marchi <simon.marchi@efficios.com>
2364
2365 * configure: Re-generate.
2366
23672020-03-11 Simon Marchi <simon.marchi@efficios.com>
2368
2369 * configure: Re-generate.
2370
23712020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2372
2373 * .dir-locals.el: New file.
2374
23752020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2376
2377 * .gitattributes: New file.
2378
23792020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
2380
2381 * remote-utils.cc (prepare_resume_reply): Add ability to convert T
2382 reply into an S reply.
2383 * server.cc (disable_packet_T): New global.
2384 (captured_main): Set new global when appropriate.
2385 * server.h (disable_packet_T): Declare.
2386
23872020-02-21 Tom Tromey <tom@tromey.com>
2388
2389 * Makefile.in (mostlyclean): New target.
2390
23912020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2392
2393 * target.h (struct process_stratum_target): Remove.
2394 (class process_target): Rename to ...
2395 (class process_stratum_target): ... this.
2396 * linux-low.h (class linux_process_target): Derive from
2397 'process_stratum_target'.
2398 * linux-low.cc (linux_target_ops): Remove.
2399 (initialize_low): Set the_target to the singleton instance of
2400 linux_process_target.
2401 * lynx-low.h (class lynx_process_target): Derive from
2402 'process_stratum_target'.
2403 * lynx-low.cc (lynx_target_ops): Remove.
2404 (initialize_low): Set the_target to the singleton instance of
2405 lynx_process_target.
2406 * nto-low.h (class nto_process_target): Derive from
2407 'process_stratum_target'.
2408 * nto-low.cc (nto_target_ops): Remove.
2409 (initialize_low): Set the_target to the singleton instance of
2410 nto_process_target.
2411 * win32-low.h (class win32_process_target): Derive from
2412 'process_stratum_target'.
2413 * win32-low.cc (win32_target_ops): Remove.
2414 (initialize_low): Set the_target to the singleton instance of
2415 win32_process_target.
2416
2417 Replace 'the_target->pt' with 'the_target' in the uses below.
2418
2419 * hostio.cc (hostio_error)
2420 (handle_setfs)
2421 (handle_open)
2422 (handle_unlink)
2423 (handle_readlink)
2424 * linux-aarch32-low.cc (arm_breakpoint_at)
2425 * linux-aarch64-low.cc (aarch64_breakpoint_at)
2426 * linux-arm-low.cc (arm_sigreturn_next_pc)
2427 (arm_get_hwcap)
2428 (arm_get_syscall_trapinfo)
2429 * linux-cris-low.cc (cris_breakpoint_at)
2430 * linux-crisv32-low.cc (cris_breakpoint_at)
2431 * linux-low.cc (handle_extended_wait)
2432 (linux_wait_1)
2433 (linux_read_memory)
2434 (linux_process_target::breakpoint_kind_from_pc)
2435 (linux_get_auxv)
2436 * linux-m32r-low.cc (m32r_breakpoint_at)
2437 * linux-mips-low.cc (mips_breakpoint_at)
2438 * linux-nios2-low.cc (nios2_breakpoint_at)
2439 * linux-ppc-low.cc (ppc_breakpoint_at)
2440 * linux-s390-low.cc (s390_get_hwcap)
2441 * linux-sh-low.cc (sh_breakpoint_at)
2442 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
2443 (sparc_store_gregset_from_stack)
2444 (sparc_breakpoint_at)
2445 * linux-tic6x-low.cc (tic6x_breakpoint_at)
2446 * linux-tile-low.cc (tile_breakpoint_at)
2447 * linux-x86-low.cc (x86_breakpoint_at)
2448 * linux-xtensa-low.cc (xtensa_breakpoint_at)
2449 * mem-break.cc (bp_size)
2450 (bp_opcode)
2451 (insert_memory_breakpoint)
2452 (set_raw_breakpoint_at)
2453 (delete_raw_breakpoint)
2454 (z_type_supported)
2455 (uninsert_raw_breakpoint)
2456 (reinsert_raw_breakpoint)
2457 (validate_inserted_breakpoint)
2458 * regcache.cc (regcache_read_pc)
2459 (regcache_write_pc)
2460 * remote-utils.cc (putpkt_binary_1)
2461 (input_interrupt)
2462 (getpkt)
2463 (prepare_resume_reply)
2464 * server.cc (handle_general_set)
2465 (handle_detach)
2466 (handle_qxfer_auxv)
2467 (handle_qxfer_exec_file)
2468 (handle_qxfer_libraries_svr4)
2469 (handle_qxfer_osdata)
2470 (handle_qxfer_siginfo)
2471 (handle_qxfer_fdpic)
2472 (handle_query)
2473 (resume)
2474 (handle_v_requests)
2475 (queue_stop_reply_callback)
2476 (captured_main)
2477 * target.cc (prepare_to_access_memory)
2478 (done_accessing_memory)
2479 (read_inferior_memory)
2480 (target_write_memory)
2481 (target_stop_and_wait)
2482 (target_wait)
2483 (target_mourn_inferior)
2484 (target_continue_no_signal)
2485 (target_continue)
2486 (target_supports_multi_process)
2487 (kill_inferior)
2488 * target.h
2489 (target_create_inferior)
2490 (target_post_create_inferior)
2491 (myattach)
2492 (target_supports_fork_events)
2493 (target_supports_vfork_events)
2494 (target_supports_exec_events)
2495 (target_handle_new_gdb_connection)
2496 (detach_inferior)
2497 (mythread_alive)
2498 (fetch_inferior_registers)
2499 (store_inferior_registers)
2500 (join_inferior)
2501 (target_supports_non_stop)
2502 (target_async)
2503 (target_process_qsupported)
2504 (target_supports_catch_syscall)
2505 (target_get_ipa_tdesc_idx)
2506 (target_supports_tracepoints)
2507 (target_supports_fast_tracepoints)
2508 (target_get_min_fast_tracepoint_insn_len)
2509 (target_thread_stopped)
2510 (target_pause_all)
2511 (target_unpause_all)
2512 (target_stabilize_threads)
2513 (target_install_fast_tracepoint_jump_pad)
2514 (target_emit_ops)
2515 (target_supports_disable_randomization)
2516 (target_supports_agent)
2517 (target_enable_btrace)
2518 (target_disable_btrace)
2519 (target_read_btrace)
2520 (target_read_btrace_conf)
2521 (target_supports_range_stepping)
2522 (target_supports_stopped_by_sw_breakpoint)
2523 (target_stopped_by_sw_breakpoint)
2524 (target_supports_stopped_by_hw_breakpoint)
2525 (target_supports_hardware_single_step)
2526 (target_stopped_by_hw_breakpoint)
2527 (target_breakpoint_kind_from_pc)
2528 (target_breakpoint_kind_from_current_state)
2529 (target_supports_software_single_step)
2530 (target_core_of_thread)
2531 (target_thread_name)
2532 (target_thread_handle)
2533 * win32-low.cc (do_initial_child_stuff)
2534
2535 Rename target op default definitions listed below.
2536
2537 * target.cc (process_target::post_create_inferior): Rename as ...
2538 (process_stratum_target::post_create_inferior): ... this.
2539 (process_target::prepare_to_access_memory): Rename as ...
2540 (process_stratum_target::prepare_to_access_memory): ... this.
2541 (process_target::done_accessing_memory): Rename as ...
2542 (process_stratum_target::done_accessing_memory): ... this.
2543 (process_target::look_up_symbols): Rename as ...
2544 (process_stratum_target::look_up_symbols): ... this.
2545 (process_target::supports_read_auxv): Rename as ...
2546 (process_stratum_target::supports_read_auxv): ... this.
2547 (process_target::read_auxv): Rename as ...
2548 (process_stratum_target::read_auxv): ... this.
2549 (process_target::supports_z_point_type): Rename as ...
2550 (process_stratum_target::supports_z_point_type): ... this.
2551 (process_target::insert_point): Rename as ...
2552 (process_stratum_target::insert_point): ... this.
2553 (process_target::remove_point): Rename as ...
2554 (process_stratum_target::remove_point): ... this.
2555 (process_target::stopped_by_sw_breakpoint): Rename as ...
2556 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
2557 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
2558 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
2559 (process_target::stopped_by_hw_breakpoint): Rename as ...
2560 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
2561 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
2562 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
2563 (process_target::supports_hardware_single_step): Rename as ...
2564 (process_stratum_target::supports_hardware_single_step): ... this.
2565 (process_target::stopped_by_watchpoint): Rename as ...
2566 (process_stratum_target::stopped_by_watchpoint): ... this.
2567 (process_target::stopped_data_address): Rename as ...
2568 (process_stratum_target::stopped_data_address): ... this.
2569 (process_target::supports_read_offsets): Rename as ...
2570 (process_stratum_target::supports_read_offsets): ... this.
2571 (process_target::read_offsets): Rename as ...
2572 (process_stratum_target::read_offsets): ... this.
2573 (process_target::supports_get_tls_address): Rename as ...
2574 (process_stratum_target::supports_get_tls_address): ... this.
2575 (process_target::get_tls_address): Rename as ...
2576 (process_stratum_target::get_tls_address): ... this.
2577 (process_target::hostio_last_error): Rename as ...
2578 (process_stratum_target::hostio_last_error): ... this.
2579 (process_target::supports_qxfer_osdata): Rename as ...
2580 (process_stratum_target::supports_qxfer_osdata): ... this.
2581 (process_target::qxfer_osdata): Rename as ...
2582 (process_stratum_target::qxfer_osdata): ... this.
2583 (process_target::supports_qxfer_siginfo): Rename as ...
2584 (process_stratum_target::supports_qxfer_siginfo): ... this.
2585 (process_target::qxfer_siginfo): Rename as ...
2586 (process_stratum_target::qxfer_siginfo): ... this.
2587 (process_target::supports_non_stop): Rename as ...
2588 (process_stratum_target::supports_non_stop): ... this.
2589 (process_target::async): Rename as ...
2590 (process_stratum_target::async): ... this.
2591 (process_target::start_non_stop): Rename as ...
2592 (process_stratum_target::start_non_stop): ... this.
2593 (process_target::supports_multi_process): Rename as ...
2594 (process_stratum_target::supports_multi_process): ... this.
2595 (process_target::supports_fork_events): Rename as ...
2596 (process_stratum_target::supports_fork_events): ... this.
2597 (process_target::supports_vfork_events): Rename as ...
2598 (process_stratum_target::supports_vfork_events): ... this.
2599 (process_target::supports_exec_events): Rename as ...
2600 (process_stratum_target::supports_exec_events): ... this.
2601 (process_target::handle_new_gdb_connection): Rename as ...
2602 (process_stratum_target::handle_new_gdb_connection): ... this.
2603 (process_target::handle_monitor_command): Rename as ...
2604 (process_stratum_target::handle_monitor_command): ... this.
2605 (process_target::core_of_thread): Rename as ...
2606 (process_stratum_target::core_of_thread): ... this.
2607 (process_target::supports_read_loadmap): Rename as ...
2608 (process_stratum_target::supports_read_loadmap): ... this.
2609 (process_target::read_loadmap): Rename as ...
2610 (process_stratum_target::read_loadmap): ... this.
2611 (process_target::process_qsupported): Rename as ...
2612 (process_stratum_target::process_qsupported): ... this.
2613 (process_target::supports_tracepoints): Rename as ...
2614 (process_stratum_target::supports_tracepoints): ... this.
2615 (process_target::read_pc): Rename as ...
2616 (process_stratum_target::read_pc): ... this.
2617 (process_target::write_pc): Rename as ...
2618 (process_stratum_target::write_pc): ... this.
2619 (process_target::supports_thread_stopped): Rename as ...
2620 (process_stratum_target::supports_thread_stopped): ... this.
2621 (process_target::thread_stopped): Rename as ...
2622 (process_stratum_target::thread_stopped): ... this.
2623 (process_target::supports_get_tib_address): Rename as ...
2624 (process_stratum_target::supports_get_tib_address): ... this.
2625 (process_target::get_tib_address): Rename as ...
2626 (process_stratum_target::get_tib_address): ... this.
2627 (process_target::pause_all): Rename as ...
2628 (process_stratum_target::pause_all): ... this.
2629 (process_target::unpause_all): Rename as ...
2630 (process_stratum_target::unpause_all): ... this.
2631 (process_target::stabilize_threads): Rename as ...
2632 (process_stratum_target::stabilize_threads): ... this.
2633 (process_target::supports_fast_tracepoints): Rename as ...
2634 (process_stratum_target::supports_fast_tracepoints): ... this.
2635 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
2636 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
2637 (process_target::emit_ops): Rename as ...
2638 (process_stratum_target::emit_ops): ... this.
2639 (process_target::supports_disable_randomization): Rename as ...
2640 (process_stratum_target::supports_disable_randomization): ... this.
2641 (process_target::supports_qxfer_libraries_svr4): Rename as ...
2642 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
2643 (process_target::qxfer_libraries_svr4): Rename as ...
2644 (process_stratum_target::qxfer_libraries_svr4): ... this.
2645 (process_target::supports_agent): Rename as ...
2646 (process_stratum_target::supports_agent): ... this.
2647 (process_target::enable_btrace): Rename as ...
2648 (process_stratum_target::enable_btrace): ... this.
2649 (process_target::disable_btrace): Rename as ...
2650 (process_stratum_target::disable_btrace): ... this.
2651 (process_target::read_btrace): Rename as ...
2652 (process_stratum_target::read_btrace): ... this.
2653 (process_target::read_btrace_conf): Rename as ...
2654 (process_stratum_target::read_btrace_conf): ... this.
2655 (process_target::supports_range_stepping): Rename as ...
2656 (process_stratum_target::supports_range_stepping): ... this.
2657 (process_target::supports_pid_to_exec_file): Rename as ...
2658 (process_stratum_target::supports_pid_to_exec_file): ... this.
2659 (process_target::pid_to_exec_file): Rename as ...
2660 (process_stratum_target::pid_to_exec_file): ... this.
2661 (process_target::supports_multifs): Rename as ...
2662 (process_stratum_target::supports_multifs): ... this.
2663 (process_target::multifs_open): Rename as ...
2664 (process_stratum_target::multifs_open): ... this.
2665 (process_target::multifs_unlink): Rename as ...
2666 (process_stratum_target::multifs_unlink): ... this.
2667 (process_target::multifs_readlink): Rename as ...
2668 (process_stratum_target::multifs_readlink): ... this.
2669 (process_target::breakpoint_kind_from_pc): Rename as ...
2670 (process_stratum_target::breakpoint_kind_from_pc): ... this.
2671 (process_target::breakpoint_kind_from_current_state): Rename as ...
2672 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
2673 (process_target::thread_name): Rename as ...
2674 (process_stratum_target::thread_name): ... this.
2675 (process_target::thread_handle): Rename as ...
2676 (process_stratum_target::thread_handle): ... this.
2677 (process_target::supports_software_single_step): Rename as ...
2678 (process_stratum_target::supports_software_single_step): ... this.
2679 (process_target::supports_catch_syscall): Rename as ...
2680 (process_stratum_target::supports_catch_syscall): ... this.
2681 (process_target::get_ipa_tdesc_idx): Rename as ...
2682 (process_stratum_target::get_ipa_tdesc_idx): ... this.
2683
26842020-02-20 Pedro Alves <palves@redhat.com>
2685
2686 * target.cc (set_target_ops): Simply copy the given target pointer
2687 instead of creating a copy of the pointed object.
2688
26892020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2690
2691 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
2692 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_get_ipa_tdesc_idx): Update the macro.
2697 * target.cc (process_target::get_ipa_tdesc_idx): Define.
2698
2699 Update the derived classes and callers below.
2700
2701 * linux-low.cc (linux_target_ops): Update.
2702 (linux_get_ipa_tdesc_idx): Turn into ...
2703 (linux_process_target::get_ipa_tdesc_idx): ... 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
27092020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2710
2711 Turn process_stratum_target's supports_catch_syscall op into a
2712 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_catch_syscall): Update the macro.
2717 * target.cc (process_target::supports_catch_syscall): Define.
2718
2719 Update the derived classes and callers below.
2720
2721 * linux-low.cc (linux_target_ops): Update.
2722 (linux_supports_catch_syscall): Turn into ...
2723 (linux_process_target::supports_catch_syscall): ... 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
27292020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2730
2731 Turn process_stratum_target's supports_software_single_step op
2732 into a method of process_target.
2733
2734 * target.h (struct process_stratum_target): Remove the target op.
2735 (class process_target): Add the target op.
2736 (target_supports_software_single_step): Update the macro.
2737 * target.cc (process_target::supports_software_single_step): Define.
2738
2739 Update the derived classes and callers below.
2740
2741 * linux-low.cc (linux_target_ops): Update.
2742 (linux_supports_software_single_step): Turn into ...
2743 (linux_process_target::supports_software_single_step): ... this.
2744 * linux-low.h (class linux_process_target): Update.
2745 * lynx-low.cc (lynx_target_ops): Update.
2746 * nto-low.cc (nto_target_ops): Update.
2747 * win32-low.cc (win32_target_ops): Update.
2748
27492020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2750
2751 Turn process_stratum_target's thread_name and thread_handle ops
2752 into methods of process_target.
2753
2754 * target.h (struct process_stratum_target): Remove the target ops.
2755 (class process_target): Add the target ops.
2756 (target_thread_name): Update the macro.
2757 (target_thread_handle): Update the macro.
2758 * target.cc (process_target::thread_name): Define.
2759 (process_target::thread_handle): Define.
2760
2761 Update the derived classes and callers below.
2762
2763 * linux-low.cc (linux_target_ops): Update.
2764 (linux_process_target::thread_name): Define.
2765 (linux_process_target::thread_handle): Define.
2766 * linux-low.h (class linux_process_target): Update.
2767 * lynx-low.cc (lynx_target_ops): Update.
2768 * nto-low.cc (nto_target_ops): Update.
2769 * win32-low.cc (win32_target_ops): Update.
2770
27712020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2772
2773 Turn process_stratum_target's breakpoint_kind_from_pc,
2774 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
2775 ops into methods of process_target.
2776
2777 * target.h (struct process_stratum_target): Remove the target op.
2778 (class process_target): Add the target op.
2779 (target_breakpoint_kind_from_pc): Update the macro.
2780 (target_breakpoint_kind_from_current_state): Update the macro.
2781 (default_breakpoint_kind_from_pc): Remove declaration.
2782 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
2783 (process_target::breakpoint_kind_from_pc): ... this.
2784 (process_target::breakpoint_kind_from_current_state): Define.
2785
2786 Update the derived classes and callers below.
2787
2788 * mem-break.cc (bp_size): Update.
2789 (bp_opcode): Update.
2790 * linux-low.cc (linux_target_ops): Update.
2791 (linux_wait_1): Update.
2792 (linux_breakpoint_kind_from_pc): Turn into ...
2793 (linux_process_target::breakpoint_kind_from_pc): ... this.
2794 (linux_sw_breakpoint_from_kind): Turn into ...
2795 (linux_process_target::sw_breakpoint_from_kind): ... this.
2796 (linux_breakpoint_kind_from_current_state): Turn into ...
2797 (linux_process_target::breakpoint_kind_from_current_state): ... this.
2798 * linux-low.h (class linux_process_target): Update.
2799 * lynx-low.cc (lynx_target_ops): Update.
2800 (lynx_process_target::sw_breakpoint_from_kind): Define.
2801 * lynx-low.h (class lynx_process_target): Update.
2802 * nto-low.cc (nto_target_ops): Update.
2803 (nto_sw_breakpoint_from_kind): Turn into ...
2804 (nto_process_target::sw_breakpoint_from_kind): ... this.
2805 * nto-low.h (class nto_process_target): Update.
2806 * win32-low.cc (win32_target_ops): Update.
2807 (win32_sw_breakpoint_from_kind): Turn into ...
2808 (win32_process_target::sw_breakpoint_from_kind): ... this.
2809 * win32-low.h (class win32_process_target): Update.
2810
28112020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2812
2813 Turn process_stratum_target's multifs_open, multifs_readlink,
2814 multifs_unlink ops into methods of process_target.
2815
2816 * target.h (struct process_stratum_target): Remove the target ops.
2817 (class process_target): Add the target ops. Also add
2818 'supports_multifs'.
2819 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
2820 "sys/stat.h".
2821 (process_target::supports_multifs): Define.
2822 (process_target::multifs_open): Define.
2823 (process_target::multifs_readlink): Define.
2824 (process_target::multifs_unlink): Define.
2825
2826 Update the derived classes and callers below.
2827
2828 * hostio.cc (handle_setfs): Update.
2829 (handle_open): Update.
2830 (handle_unlink): Update.
2831 (handle_readlink): Update.
2832 * linux-low.cc (linux_target_ops): Update.
2833 (linux_process_target::supports_multifs): Define.
2834 (linux_process_target::multifs_open): Define.
2835 (linux_process_target::multifs_readlink): Define.
2836 (linux_process_target::multifs_unlink): Define.
2837 * linux-low.h (class linux_process_target): Update.
2838 * lynx-low.cc (lynx_target_ops): Update.
2839 * nto-low.cc (nto_target_ops): Update.
2840 * win32-low.cc (win32_target_ops): Update.
2841
28422020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2843
2844 Turn process_stratum_target's pid_to_exec_file op into a method
2845 of process_target.
2846
2847 * target.h (struct process_stratum_target): Remove the target op.
2848 (class process_target): Add the target op. Also add
2849 'supports_pid_to_exec_file'.
2850 * target.cc (process_target::pid_to_exec_file): Define.
2851 (process_target::supports_pid_to_exec_file): Define.
2852
2853 Update the derived classes and callers below.
2854
2855 * server.cc (handle_qxfer_exec_file): Update.
2856 (handle_query): Update.
2857 * linux-low.cc (linux_target_ops): Update.
2858 (linux_process_target::supports_pid_to_exec_file): Define.
2859 (linux_process_target::pid_to_exec_file): Define.
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
28652020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2866
2867 Turn process_stratum_target's supports_range_stepping op into a
2868 method of process_target.
2869
2870 * target.h (struct process_stratum_target): Remove the target op.
2871 (class process_target): Add the target op.
2872 (target_supports_range_stepping): Update the macro.
2873 * target.cc (process_target::supports_range_stepping): Define.
2874
2875 Update the derived classes and callers below.
2876
2877 * linux-low.cc (linux_target_ops): Update.
2878 (linux_supports_range_stepping): Turn into ...
2879 (linux_process_target::supports_range_stepping): ... this.
2880 * linux-low.h (class linux_process_target): Update.
2881 * lynx-low.cc (lynx_target_ops): Update.
2882 * nto-low.cc (nto_target_ops): Update.
2883 * win32-low.cc (win32_target_ops): Update.
2884
28852020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2886
2887 Turn process_stratum_target's btrace-related ops (enable_btrace,
2888 disable_btrace, read_btrace, read_btrace_conf) into methods of
2889 process_target.
2890
2891 * target.h (struct process_stratum_target): Remove the target ops.
2892 (class process_target): Add the target ops.
2893 (target_enable_btrace): Update.
2894 (target_disable_btrace): Update.
2895 (target_read_btrace): Update.
2896 (target_read_btrace_conf): Update.
2897 * target.cc (process_target::enable_btrace): Define.
2898 (process_target::disable_btrace): Define.
2899 (process_target::read_btrace): Define.
2900 (process_target::read_btrace_conf): Define.
2901
2902 Update the derived classes and callers below.
2903
2904 * linux-low.cc (linux_target_ops): Update.
2905 (linux_process_target:enable_btrace): Define as a wrapper around
2906 linux_enable_btrace.
2907 (linux_low_disable_btrace): Turn into ...
2908 (linux_process_target::disable_btrace): ... this.
2909 (linux_low_read_btrace): Turn into ...
2910 (linux_process_target::read_btrace): ... this.
2911 (linux_low_btrace_conf): Turn into ...
2912 (linux_process_target::read_btrace_conf): ... 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
29182020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2919
2920 Turn process_stratum_target's supports_agent op into a method of
2921 process_target.
2922
2923 * target.h (struct process_stratum_target): Remove the target op.
2924 (class process_target): Add the target op.
2925 (target_supports_agent): Update the macro.
2926 * target.cc (process_target::supports_agent): Define.
2927
2928 Update the derived classes and callers below.
2929
2930 * linux-low.cc (linux_target_ops): Update.
2931 (linux_supports_agent): Turn into ...
2932 (linux_process_target::supports_agent): ... this.
2933 * linux-low.h (class linux_process_target): Update.
2934 * lynx-low.cc (lynx_target_ops): Update.
2935 * nto-low.cc (nto_target_ops): Update.
2936 * win32-low.cc (win32_target_ops): Update.
2937
29382020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2939
2940 Turn process_stratum_target's qxfer_libraries_svr4 op into a
2941 method of process_target.
2942
2943 * target.h (struct process_stratum_target): Remove the target op.
2944 (class process_target): Add the target op. Also add
2945 'supports_qxfer_libraries_svr4'.
2946 * target.cc (process_target::qxfer_libraries_svr4): Define.
2947 (process_target::supports_qxfer_libraries_svr4): Define.
2948
2949 Update the derived classes and callers below.
2950
2951 * server.cc (handle_qxfer_libraries_svr4): Update.
2952 (handle_query): Update.
2953 * linux-low.cc (linux_target_ops): Update.
2954 (linux_process_target::supports_qxfer_libraries_svr4): Define.
2955 (linux_qxfer_libraries_svr4): Turn into ...
2956 (linux_process_target::qxfer_libraries_svr4): ... 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
29622020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2963
2964 Turn process_stratum_target's supports_disable_randomization op
2965 into a method of process_target.
2966
2967 * target.h (struct process_stratum_target): Remove the target op.
2968 (class process_target): Add the target op.
2969 (target_supports_disable_randomization): Update the macro.
2970 * target.cc (process_target::supports_disable_randomization): Define.
2971
2972 Update the derived classes and callers below.
2973
2974 * linux-low.cc (linux_target_ops): Update.
2975 (linux_supports_disable_randomization): Turn into ...
2976 (linux_process_target::supports_disable_randomization): ... 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
29822020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2983
2984 Turn process_stratum_target's emit_ops op into a method of
2985 process_target.
2986
2987 * target.h (struct process_stratum_target): Remove the target op.
2988 (class process_target): Add the target op.
2989 (target_emit_ops): Update the macro.
2990 * target.cc (process_target::emit_ops): Define.
2991
2992 Update the derived classes and callers below.
2993
2994 * linux-low.cc (linux_target_ops): Update.
2995 (linux_emit_ops): Turn into ...
2996 (linux_process_target::emit_ops): ... this.
2997 * linux-low.h (class linux_process_target): Update.
2998 * lynx-low.cc (lynx_target_ops): Update.
2999 * nto-low.cc (nto_target_ops): Update.
3000 * win32-low.cc (win32_target_ops): Update.
3001
30022020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3003
3004 Turn process_stratum_target's install_fast_tracepoint_jump_pad
3005 and get_min_fast_tracepoint_insn_len ops into methods of
3006 process_target.
3007
3008 * target.h (struct process_stratum_target): Remove the target ops.
3009 (class process_target): Add the target ops. Also add
3010 'supports_fast_tracepoints'.
3011 (target_supports_fast_tracepoints): Update the macro.
3012 (target_get_min_fast_tracepoint_insn_len): Update the macro.
3013 (install_fast_tracepoint_jump_pad): Update and rename the macro
3014 to ...
3015 (target_install_fast_tracepoint_jump_pad): ... this.
3016 * target.cc (process_target::supports_fast_tracepoints): Define.
3017 (process_target::install_fast_tracepoint_jump_pad): Define.
3018 (process_target::get_min_fast_tracepoint_insn_len): Define.
3019
3020 Update the derived classes and callers below.
3021
3022 * tracepoint.cc (install_fast_tracepoint): Update.
3023 * linux-low.cc (linux_target_ops): Update.
3024 (linux_process_target::supports_fast_tracepoints): Define.
3025 (linux_install_fast_tracepoint_jump_pad): Turn into ...
3026 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
3027 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
3028 (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
3029 * linux-low.h (class linux_process_target): Update.
3030 * lynx-low.cc (lynx_target_ops): Update.
3031 * nto-low.cc (nto_target_ops): Update.
3032 * win32-low.cc (win32_target_ops): Update.
3033
30342020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3035
3036 Turn process_stratum_target's stabilize_threads op into a
3037 method of process_target.
3038
3039 * target.h (struct process_stratum_target): Remove the target op.
3040 (class process_target): Add the target op.
3041 (target_stabilize_threads): Update the macro.
3042 * target.cc (process_target::stabilize_threads): Define.
3043
3044 Update the derived classes and callers below.
3045
3046 * server.cc (handle_status): Update.
3047 * tracepoint.cc (cmd_qtdp): Update.
3048 (cmd_qtstart): Update.
3049 * linux-low.cc (linux_target_ops): Update.
3050 (linux_stabilize_threads): Turn into ...
3051 (linux_process_target::stabilize_threads): ... this.
3052 (linux_wait_1): Update.
3053 * linux-low.h (class linux_process_target): Update.
3054 * lynx-low.cc (lynx_target_ops): Update.
3055 * nto-low.cc (nto_target_ops): Update.
3056 * win32-low.cc (win32_target_ops): Update.
3057
30582020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3059
3060 Turn process_stratum_target's pause_all and unpause_all ops
3061 into methods of process_target.
3062
3063 * target.h (struct process_stratum_target): Remove the target ops.
3064 (class process_target): Add the target ops.
3065 (pause_all): Update the macro and rename to...
3066 (target_pause_all): ... this.
3067 (unpause_all): Update the macro and rename to...
3068 (target_unpause_all): ... this.
3069 * target.cc (process_target::pause_all): Define.
3070 (process_target::unpause_all): Define.
3071
3072 Update the derived classes and callers below.
3073
3074 * server.cc (handle_status): Update.
3075 * tracepoint.cc (clear_installed_tracepoints): Update.
3076 (cmd_qtdp): Update.
3077 (cmd_qtstart): Update.
3078 (stop_tracing): Update.
3079 (cmd_qtstatus): Update.
3080 (upload_fast_traceframes): Update.
3081 (run_inferior_command): Update.
3082 * linux-low.cc (linux_target_ops): Update.
3083 (linux_pause_all): Turn into ...
3084 (linux_process_target::pause_all): ... this.
3085 (linux_unpause_all): Turn into ...
3086 (linux_process_target::unpause_all): ... this.
3087 (linux_process_target::prepare_to_access_memory): Update.
3088 (linux_process_target::done_accessing_memory): Update.
3089 * linux-low.h (class linux_process_target): Update.
3090 * lynx-low.cc (lynx_target_ops): Update.
3091 * nto-low.cc (nto_target_ops): Update.
3092 * win32-low.cc (win32_target_ops): Update.
3093
30942020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3095
3096 Turn process_stratum_target's get_tib_address op into a method of
3097 process_target.
3098
3099 * target.h (struct process_stratum_target): Remove the target op.
3100 (class process_target): Add the target op. Also add
3101 'supports_get_tib_address'.
3102 * target.cc (process_target::get_tib_address): Define.
3103 (process_target::supports_get_tib_address): Define.
3104
3105 Update the derived classes and callers below.
3106
3107 * server.cc (handle_query): Update.
3108 * linux-low.cc (win32_target_ops): Update.
3109 * lynx-low.cc (lynx_target_ops): Update.
3110 * nto-low.cc (nto_target_ops): Update.
3111 * win32-low.cc (win32_target_ops): Update.
3112 (win32_process_target::supports_get_tib_address): Define.
3113 (win32_get_tib_address): Turn into ...
3114 (win32_process_target::get_tib_address): ... this.
3115 * win32-low.h (class win32_process_target): Update.
3116
31172020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3118
3119 Turn process_stratum_target's thread_stopped op into a method of
3120 process_target.
3121
3122 * target.h (struct process_stratum_target): Remove the target op.
3123 (class process_target): Add the target op. Also add
3124 'supports_thread_stopped'.
3125 (target_thread_stopped): Update the macro.
3126 * target.cc (process_target::thread_stopped): Define.
3127 (process_target::supports_thread_stopped): Define.
3128 (prepare_to_access_memory): Update.
3129
3130 Update the derived classes and callers below.
3131
3132 * server.cc (queue_stop_reply_callback): Update.
3133 * linux-low.cc (linux_target_ops): Update.
3134 (linux_process_target::supports_thread_stopped): Define.
3135 (linux_thread_stopped): Turn into ...
3136 (linux_process_target::thread_stopped): ... this.
3137 * linux-low.h (class linux_process_target): Update.
3138 * lynx-low.cc (lynx_target_ops): Update.
3139 * nto-low.cc (nto_target_ops): Update.
3140 * win32-low.cc (win32_target_ops): Update.
3141
31422020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3143
3144 Turn process_stratum_target's read_pc and write_pc ops into
3145 methods of process_target.
3146
3147 * target.h (struct process_stratum_target): Remove the target ops.
3148 (class process_target): Add the target ops.
3149 * target.cc (process_target::read_pc): Define.
3150 (process_target::write_pc): Define.
3151
3152 Update the derived classes and callers below.
3153
3154 * regcache.cc (regcache_read_pc): Update.
3155 (regcache_write_pc): Update.
3156 * linux-low.cc (linux_target_ops): Update.
3157 (linux_read_pc): Turn into ...
3158 (linux_process_target::read_pc): ... this.
3159 (linux_write_pc): Turn into ...
3160 (linux_process_target::write_pc): ... 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
31662020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3167
3168 Turn process_stratum_target's supports_tracepoints op into a
3169 method 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_supports_tracepoints): Update the macro.
3174 * target.cc (process_target::supports_tracepoints): Define.
3175
3176 Update the derived classes and callers below.
3177
3178 * linux-low.cc (linux_target_ops): Update.
3179 (linux_supports_tracepoints): Turn into ...
3180 (linux_process_target::supports_tracepoints): ... 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
31862020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3187
3188 Turn process_stratum_target's process_qsupported op into a method
3189 of process_target.
3190
3191 * target.h (struct process_stratum_target): Remove the target op.
3192 (class process_target): Add the target op.
3193 (target_process_qsupported): Update the macro.
3194 * target.cc (process_target::process_qsupported): Define.
3195
3196 Update the derived classes and callers below.
3197
3198 * linux-low.cc (linux_target_ops): Update.
3199 (linux_process_qsupported): Turn into ...
3200 (linux_process_target::process_qsupported): ... this.
3201 * linux-low.h (class linux_process_target): Update.
3202 * lynx-low.cc (lynx_target_ops): Update.
3203 * nto-low.cc (nto_target_ops): Update.
3204 * win32-low.cc (win32_target_ops): Update.
3205
32062020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3207
3208 Turn process_stratum_target's read_loadmap op into a method of
3209 process_target.
3210
3211 * target.h (struct process_stratum_target): Remove the target op.
3212 (class process_target): Add the target op. Also add
3213 'supports_read_loadmap'.
3214 * target.cc (process_target::read_loadmap): Define.
3215 (process_target::supports_read_loadmap): Define.
3216
3217 Update the derived classes and callers below.
3218
3219 * server.cc (handle_qxfer_fdpic): Update.
3220 (handle_query): Update.
3221 * linux-low.cc (linux_target_ops): Update.
3222 (linux_process_target::supports_read_loadmap): Define.
3223 (linux_read_loadmap): Turn into ...
3224 (linux_process_target::read_loadmap): ... this.
3225 * linux-low.h (class linux_process_target): Update.
3226 * lynx-low.cc (lynx_target_ops): Update.
3227 * nto-low.cc (nto_target_ops): Update.
3228 * win32-low.cc (win32_target_ops): Update.
3229
32302020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3231
3232 Turn process_stratum_target's core_of_thread op into a method of
3233 process_target.
3234
3235 * target.h (struct process_stratum_target): Remove the target op.
3236 (class process_target): Add the target op.
3237 (target_core_of_thread): Update the macro.
3238 * target.cc (process_target::core_of_thread): Define.
3239
3240 Update the derived classes and callers below.
3241
3242 * linux-low.cc (linux_target_ops): Update.
3243 (linux_process_target::core_of_thread): 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
32492020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3250
3251 Turn process_stratum_target's handle_monitor_command 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_monitor_command): Update the macro.
3257 * target.cc (process_target::handle_monitor_command): Define.
3258
3259 Update the derived classes and callers below.
3260
3261 * server.cc (handle_query): Update.
3262 * linux-low.cc (linux_target_ops): Update.
3263 (linux_process_target::handle_monitor_command): Define.
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
32692020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3270
3271 Turn process_stratum_target's handle_new_gdb_connection op into a
3272 method of process_target.
3273
3274 * target.h (struct process_stratum_target): Remove the target op.
3275 (class process_target): Add the target op.
3276 (target_handle_new_gdb_connection): Update the macro.
3277 * target.cc (process_target::handle_new_gdb_connection): Define.
3278
3279 Update the derived classes and callers below.
3280
3281 * linux-low.cc (linux_target_ops): Update.
3282 (linux_handle_new_gdb_connection): Turn into ...
3283 (linux_process_target::handle_new_gdb_connection): ... this.
3284 * linux-low.h (class linux_process_target): Update.
3285 * lynx-low.cc (lynx_target_ops): Update.
3286 * nto-low.cc (nto_target_ops): Update.
3287 * win32-low.cc (win32_target_ops): Update.
3288
32892020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3290
3291 Turn process_stratum_target's supports_fork_events,
3292 supports_vfork_events, and supports_exec_events ops into methods
3293 of process_target.
3294
3295 * target.h (struct process_stratum_target): Remove the target ops.
3296 (class process_target): Add the target ops.
3297 (target_supports_fork_events): Update the macro.
3298 (target_supports_vfork_events): Update the macro.
3299 (target_supports_exec_events): Update the macro.
3300 * target.cc (process_target::supports_fork_events): Define.
3301 (process_target::supports_vfork_events): Define.
3302 (process_target::supports_exec_events): Define.
3303
3304 Update the derived classes and callers below.
3305
3306 * linux-low.cc (linux_target_ops): Update.
3307 (linux_supports_fork_events): Turn into ...
3308 (linux_process_target::supports_fork_events): ... this.
3309 (linux_supports_vfork_events): Turn into ...
3310 (linux_process_target::supports_vfork_events): ... this.
3311 (linux_supports_exec_events): Turn into ...
3312 (linux_process_target::supports_exec_events): ... 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
33182020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3319
3320 Turn process_stratum_target's supports_multi_process op into a
3321 method of process_target.
3322
3323 * target.h (struct process_stratum_target): Remove the target op.
3324 (class process_target): Add the target op.
3325 * target.cc (process_target::supports_multi_process): Define.
3326 (target_supports_multi_process): Update.
3327
3328 Update the derived classes and callers below.
3329
3330 * linux-low.cc (linux_target_ops): Update.
3331 (linux_supports_multi_process): Turn into ...
3332 (linux_process_target::supports_multi_process): ... this.
3333 * linux-low.h (class linux_process_target): Update.
3334 * lynx-low.cc (lynx_target_ops): Update.
3335 * nto-low.cc (nto_target_ops): Update.
3336 * win32-low.cc (win32_target_ops): Update.
3337
33382020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3339
3340 Turn process_stratum_target's supports_non_stop, async, and
3341 start_non_stop ops into methods of process_target.
3342
3343 * target.h (struct process_stratum_target): Remove the target ops.
3344 (class process_target): Add the target ops.
3345 (target_supports_non_stop): Update the macro.
3346 (target_async): Update the macro.
3347 (start_non_stop): Remove declaration.
3348 * target.cc (process_target::supports_non_stop): Define.
3349 (process_target::async): Define.
3350 (process_target::start_non_stop): Define.
3351 (start_non_stop): Remove.
3352
3353 Update the derived classes and callers below.
3354
3355 * server.cc (handle_qxfer_siginfo): Update.
3356 (handle_query): Update.
3357 * linux-low.cc (linux_target_ops): Update.
3358 (linux_supports_non_stop): Turn into ...
3359 (linux_process_target::supports_non_stop): ... this.
3360 (linux_async): Turn into ...
3361 (linux_process_target::async): ... this.
3362 (linux_start_non_stop): Turn into ...
3363 (linux_process_target::start_non_stop): ... this.
3364 * linux-low.h (class linux_process_target): Update.
3365 * lynx-low.cc (lynx_target_ops): Update.
3366 * nto-low.cc (nto_target_ops): Update.
3367 (nto_supports_non_stop): Remove; rely on the default behavior
3368 instead.
3369 * win32-low.cc (win32_target_ops): Update.
3370
33712020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3372
3373 Turn process_stratum_target's qxfer_siginfo op into a method of
3374 process_target.
3375
3376 * target.h (struct process_stratum_target): Remove the target op.
3377 (class process_target): Add the target op. Also add
3378 'supports_qxfer_siginfo'.
3379 * target.cc (process_target::qxfer_siginfo): Define.
3380 (process_target::supports_qxfer_siginfo): Define.
3381
3382 Update the derived classes and callers below.
3383
3384 * server.cc (handle_qxfer_siginfo): Update.
3385 (handle_query): Update.
3386 * linux-low.cc (linux_target_ops): Update.
3387 (linux_process_target::supports_qxfer_siginfo): Define.
3388 (linux_xfer_siginfo): Turn into ...
3389 (linux_process_target::qxfer_siginfo): ... this.
3390 * linux-low.h (class linux_process_target): Update.
3391 * lynx-low.cc (lynx_target_ops): Update.
3392 * nto-low.cc (nto_target_ops): Update.
3393 * win32-low.cc (win32_target_ops): Update.
3394
33952020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3396
3397 Turn process_stratum_target's qxfer_osdata op into a method of
3398 process_target.
3399
3400 * target.h (struct process_stratum_target): Remove the target op.
3401 (class process_target): Add the target op. Also add
3402 'supports_qxfer_osdata'.
3403 * target.cc (process_target::qxfer_osdata): Define.
3404 (process_target::supports_qxfer_osdata): Define.
3405
3406 Update the derived classes and callers below.
3407
3408 * server.cc (handle_qxfer_osdata): Update.
3409 (handle_query): Update.
3410 * linux-low.cc (linux_target_ops): Update.
3411 (linux_process_target::supports_qxfer_osdata): Define.
3412 (linux_qxfer_osdata): Turn into ...
3413 (linux_process_target::qxfer_osdata): ... this.
3414 * linux-low.h (class linux_process_target): Update.
3415 * lynx-low.cc (lynx_target_ops): Update.
3416 * nto-low.cc (nto_target_ops): Update.
3417 * win32-low.cc (win32_target_ops): Update.
3418
34192020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3420
3421 Turn process_stratum_target's hostio_last_error op into a
3422 method of process_target.
3423
3424 * target.h (struct process_stratum_target): Remove the target op.
3425 (class process_target): Add the target op.
3426 * target.cc: Add "hostio.h" to includes.
3427 (process_target::hostio_last_error): Define.
3428
3429 Update the derived classes and callers below.
3430
3431 * hostio.cc (hostio_error): Update.
3432 * linux-low.cc: Remove "hostio.h" from includes.
3433 (linux_target_ops): Update.
3434 * lynx-low.cc (lynx_target_ops): Update.
3435 * nto-low.cc (nto_target_ops): Update.
3436 * win32-low.h (class win32_process_target): Update.
3437 * win32-low.cc (win32_target_ops): Update.
3438 (wince_hostio_last_error): Turn into ...
3439 (win32_process_target::hostio_last_error): ... this.
3440
34412020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3442
3443 Turn process_stratum_target's get_tls_address op into a method of
3444 process_target.
3445
3446 * target.h (struct process_stratum_target): Remove the target op.
3447 (class process_target): Add the target op. Also add
3448 'supports_get_tls_address'.
3449 * target.cc (process_target::get_tls_address): Define.
3450 (process_target::supports_get_tls_address): Define.
3451
3452 Update the derived classes and callers below.
3453
3454 * server.cc (handle_query): Update.
3455 * linux-low.cc (linux_target_ops): Update.
3456 (linux_process_target::supports_get_tls_address): Define.
3457 (linux_process_target::get_tls_address): Define.
3458 * linux-low.h (class linux_process_target): Update.
3459 * lynx-low.cc (lynx_target_ops): Update.
3460 * nto-low.cc (nto_target_ops): Update.
3461 * win32-low.cc (win32_target_ops): Update.
3462
34632020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3464
3465 Turn process_stratum_target's read_offsets op into a method of
3466 process_target.
3467
3468 * target.h (struct process_stratum_target): Remove the target op.
3469 (class process_target): Add the target op. Also add
3470 'supports_read_offsets'.
3471 * target.cc (process_target::read_offsets): Define.
3472 (process_target::supports_read_offsets): Define.
3473
3474 Update the derived classes and callers below.
3475
3476 * server.cc (handle_query): Update.
3477 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
3478 (linux_target_ops): Update.
3479 (linux_process_target::supports_read_offsets): Define.
3480 (linux_read_offsets): Turn into ...
3481 (linux_process_target::read_offsets): ... this.
3482 * linux-low.h (class linux_process_target): Update.
3483 * lynx-low.cc (lynx_target_ops): Update.
3484 * nto-low.cc (nto_target_ops): Update.
3485 * win32-low.cc (win32_target_ops): Update.
3486
34872020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3488
3489 Turn process_stratum_target's stopped_by_watchpoint and
3490 stopped_data_address ops into methods of process_target.
3491
3492 * target.h (struct process_stratum_target): Remove the target ops.
3493 (class process_target): Add the target ops.
3494 * target.cc (process_target::stopped_by_watchpoint): Define.
3495 (process_target::stopped_data_address): Define.
3496
3497 Update the derived classes and callers below.
3498
3499 * remote-utils.cc (prepare_resume_reply): Update.
3500 * linux-low.cc (linux_target_ops): Update.
3501 (linux_stopped_by_watchpoint): Turn into ...
3502 (linux_process_target::stopped_by_watchpoint): ... this.
3503 (linux_stopped_data_address): Turn into ...
3504 (linux_process_target::stopped_data_address): ... this.
3505 * linux-low.h (class linux_process_target): Update.
3506 * lynx-low.cc (lynx_target_ops): Update.
3507 * nto-low.cc (nto_target_ops): Update.
3508 (nto_stopped_by_watchpoint): Turn into ...
3509 (nto_process_target::stopped_by_watchpoint): ... this.
3510 (nto_stopped_data_address): Turn into ...
3511 (nto_process_target::stopped_data_address): ... this.
3512 * nto-low.h (class nto_process_target): Update.
3513 * win32-low.cc (win32_target_ops): Update.
3514 (win32_stopped_by_watchpoint): Turn into ...
3515 (win32_process_target::stopped_by_watchpoint): ... this.
3516 (win32_stopped_data_address): Turn into ...
3517 (win32_process_target::stopped_data_address): ... this.
3518 * win32-low.h (class win32_process_target): Update.
3519
35202020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3521
3522 Turn process_stratum_target's supports_hardware_single_step op into
3523 a method of process_target.
3524
3525 * target.h (struct process_stratum_target): Remove the target op.
3526 (class process_target): Add the target op.
3527 (target_supports_hardware_single_step): Update the macro.
3528 (target_can_do_hardware_single_step): Remove declaration.
3529 * target.cc (process_target::supports_hardware_single_step): Define.
3530 (target_can_do_hardware_single_step): Remove.
3531
3532 Update the derived classes and callers below.
3533
3534 * linux-low.h (class linux_process_target): Update.
3535 * linux-low.cc (linux_target_ops): Update.
3536 (linux_supports_hardware_single_step): Turn into ...
3537 (linux_process_target::supports_hardware_single_step): ... this.
3538 * lynx-low.h (class lynx_process_target): Update.
3539 * lynx-low.cc (lynx_target_ops): Update.
3540 (lynx_process_target::supports_hardware_single_step): Define.
3541 * nto-low.h (class nto_process_target): Update.
3542 * nto-low.cc (nto_target_ops): Update.
3543 (nto_process_target::supports_hardware_single_step): Define.
3544 * win32-low.h (class win32_process_target): Update.
3545 * win32-low.cc (win32_target_ops): Update.
3546 (win32_process_target::supports_hardware_single_step): Define.
3547
35482020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3549
3550 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
3551 ops into methods of process_target.
3552
3553 * target.h (struct process_stratum_target): Remove the target ops.
3554 (class process_target): Add the target ops.
3555 (target_stopped_by_hw_breakpoint): Update the macro.
3556 (target_supports_stopped_by_hw_breakpoint): Update the macro.
3557 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
3558 (process_target::supports_stopped_by_hw_breakpoint): Define.
3559
3560 Update the derived classes and callers below.
3561
3562 * linux-low.cc (linux_target_ops): Update.
3563 (linux_stopped_by_hw_breakpoint): Turn into ...
3564 (linux_process_target::stopped_by_hw_breakpoint): ... this.
3565 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
3566 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
3567 * linux-low.h (class linux_process_target): Update.
3568 * lynx-low.cc (lynx_target_ops): Update.
3569 * nto-low.cc (nto_target_ops): Update.
3570 * win32-low.cc (win32_target_ops): Update.
3571
35722020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3573
3574 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
3575 ops into methods of process_target.
3576
3577 * target.h (struct process_stratum_target): Remove the target ops.
3578 (class process_target): Add the target ops.
3579 (target_stopped_by_sw_breakpoint): Update the macro.
3580 (target_supports_stopped_by_sw_breakpoint): Update the macro.
3581 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
3582 (process_target::supports_stopped_by_sw_breakpoint): Define.
3583
3584 Update the derived classes and callers below.
3585
3586 * linux-low.cc (linux_target_ops): Update.
3587 (linux_stopped_by_sw_breakpoint): Turn into ...
3588 (linux_process_target::stopped_by_sw_breakpoint): ... this.
3589 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
3590 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
3591 * linux-low.h (class linux_process_target): Update.
3592 * lynx-low.cc (lynx_target_ops): Update.
3593 * nto-low.cc (nto_target_ops): Update.
3594 * win32-low.cc (win32_target_ops): Update.
3595
35962020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3597
3598 Turn process_stratum_target's insert_point and remove_point ops
3599 into methods of process_target.
3600
3601 * target.h (struct process_stratum_target): Remove the target ops.
3602 (class process_target): Add the target ops.
3603 * target.cc (process_target::insert_point): Define.
3604 (process_target::remove_point): Define.
3605
3606 Update the derived classes and callers below.
3607
3608 * mem-break.cc (set_raw_breakpoint_at): Update.
3609 (delete_raw_breakpoint): Update.
3610 (uninsert_raw_breakpoint): Update.
3611 (reinsert_raw_breakpoint): Update.
3612 * linux-low.cc (linux_target_ops): Update.
3613 (linux_insert_point): Turn into ...
3614 (linux_process_target::insert_point): ... this.
3615 (linux_remove_point): Turn into ...
3616 (linux_process_target::remove_point): ... this.
3617 * linux-low.h (class linux_process_target): Update.
3618 * lynx-low.cc (lynx_target_ops): Update.
3619 * nto-low.cc (nto_target_ops): Update.
3620 (nto_insert_point): Turn into ...
3621 (nto_process_target::insert_point): ... this.
3622 (nto_remove_point): Turn into ...
3623 (nto_process_target::remove_point): ... this.
3624 * nto-low.h (class nto_process_target): Update.
3625 * win32-low.cc (win32_target_ops): Update.
3626 (win32_insert_point): Turn into ...
3627 (win32_process_target::insert_point): ... this.
3628 (win32_remove_point): Turn into ...
3629 (win32_process_target::remove_point): ... this.
3630 * win32-low.h (class win32_process_target): Update.
3631
36322020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3633
3634 Turn process_stratum_target's supports_z_point_type op into a
3635 method of process_target.
3636
3637 * target.h (struct process_stratum_target): Remove the target op.
3638 (class process_target): Add the target op.
3639 * target.cc (process_target::supports_z_point_type): Define.
3640
3641 Update the derived classes and callers below.
3642
3643 * mem-break.cc (z_type_supported): Update.
3644 * linux-low.cc (linux_target_ops): Update.
3645 (linux_supports_z_point_type): Turn into ...
3646 (linux_process_target::supports_z_point_type): ... this.
3647 * linux-low.h (class linux_process_target): Update.
3648 * lynx-low.cc (lynx_target_ops): Update.
3649 * nto-low.cc (nto_target_ops): Update.
3650 (nto_supports_z_point_type): Turn into ...
3651 (nto_process_target::supports_z_point_type): ... this.
3652 * nto-low.h (class nto_process_target): Update.
3653 * win32-low.cc (win32_target_ops): Update.
3654 (win32_supports_z_point_type): Turn into ...
3655 (win32_process_target::supports_z_point_type): ... this.
3656 * win32-low.h (class win32_process_target): Update.
3657
36582020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3659
3660 Turn process_stratum_target's read_auxv op into a method of
3661 process_target.
3662
3663 * target.h (class process_stratum_target): Remove the target op.
3664 (struct process_target): Add the target op. Also add
3665 'supports_read_auxv'.
3666 * target.cc (process_target::read_auxv): Define.
3667 (process_target::supports_read_auxv): Define.
3668
3669 Update the derived classes and callers below.
3670
3671 * server.cc (handle_qxfer_auxv): Update.
3672 (handle_query): Update.
3673 * linux-low.cc (linux_target_ops): Update.
3674 (linux_process_target::supports_read_auxv): Define.
3675 (linux_read_auxv): Turn into ...
3676 (linux_process_target::read_auxv): ... this.
3677 * linux-low.h (class linux_process_target): Update.
3678 * lynx-low.cc (lynx_target_ops): Update.
3679 * nto-low.cc (nto_target_ops): Update.
3680 (nto_process_target::supports_read_auxv): Define.
3681 (nto_read_auxv): Turn into ...
3682 (nto_process_target::read_auxv): ... this.
3683 * nto-low.h (class nto_process_target): Update.
3684 * win32-low.cc (win32_target_ops): Update.
3685
36862020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3687
3688 Turn process_stratum_target's request_interrupt op into a method of
3689 process_target.
3690
3691 * target.h (struct process_stratum_target): Remove the target op.
3692 (class process_target): Add the target op.
3693
3694 Update the derived classes and callers below.
3695
3696 * remote-utils.cc (putpkt_binary_1): Update.
3697 (input_interrupt): Update.
3698 (getpkt): Update.
3699 * server.cc (handle_v_requests): Update.
3700 * linux-low.cc (linux_target_ops): Update.
3701 (linux_request_interrupt): Turn into ...
3702 (linux_process_target::request_interrupt): ... this.
3703 * linux-low.h (class linux_process_target): Update.
3704 * lynx-low.cc (lynx_target_ops): Update.
3705 (lynx_request_interrupt): Turn into ...
3706 (lynx_process_target::request_interrupt): ... this.
3707 * lynx-low.h (class lynx_process_target): Update.
3708 * nto-low.cc (nto_target_ops): Update.
3709 (nto_request_interrupt): Turn into ...
3710 (nto_process_target::request_interrupt): ... this.
3711 * nto-low.h (class nto_process_target): Update.
3712 * win32-low.cc (win32_target_ops): Update.
3713 (win32_request_interrupt): Turn into ...
3714 (win32_process_target::request_interrupt): ... this.
3715 * win32-low.h (class win32_process_target): Update.
3716
37172020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3718
3719 Turn process_stratum_target's look_up_symbols op into a method of
3720 process_target.
3721
3722 * target.h (struct process_stratum_target): Remove the target op.
3723 (class process_target): Add the target op.
3724 * target.cc (process_target::look_up_symbols): Define.
3725
3726 Update the derived classes and callers below.
3727
3728 * server.cc (handle_query): Update.
3729 * linux-low.cc (linux_target_ops): Update.
3730 (linux_look_up_symbols): Turn into ...
3731 (linux_process_target::look_up_symbols): ... this.
3732 * linux-low.h (class linux_process_target): Update.
3733 * lynx-low.cc (lynx_target_ops): Update.
3734 * nto-low.cc (nto_target_ops): Update.
3735 * win32-low.cc (win32_target_ops): Update.
3736
37372020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3738
3739 Turn process_stratum_target's read_memory and write_memory
3740 ops into methods of process_target.
3741
3742 * target.h (struct process_stratum_target): Remove the target ops.
3743 (class process_target): Add the target ops.
3744
3745 Update the derived classes and callers below.
3746
3747 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
3748 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
3749 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
3750 (arm_get_syscall_trapinfo): Update.
3751 * linux-cris-low.cc (cris_breakpoint_at): Update.
3752 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
3753 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
3754 * linux-mips-low.cc (mips_breakpoint_at): Update.
3755 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
3756 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
3757 * linux-sh-low.cc (sh_breakpoint_at): Update.
3758 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
3759 (sparc_store_gregset_from_stack): Update.
3760 (sparc_breakpoint_at): Update.
3761 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
3762 * linux-tile-low.cc (tile_breakpoint_at): Update.
3763 * linux-x86-low.cc (x86_breakpoint_at): Update.
3764 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
3765 * mem-brea.cc (insert_memory_breakpoint): Update.
3766 (validate_inserted_breakpoint): Update.
3767 * target.cc (read_inferior_memory): Update.
3768 (target_write_memory): Update.
3769 * linux-low.cc (linux_target_ops): Update.
3770 (linux_read_memory): Make a wrapper around the read_memory target
3771 op call.
3772 (linux_process_target::read_memory): Rename from linux_read_memory.
3773 (linux_write_memory): Turn into ...
3774 (linux_process_target::write_memory): ... this.
3775 * linux-low.h (class linux_process_target): Update.
3776 * lynx-low.cc (lynx_target_ops): Update.
3777 (lynx_read_memory): Turn into ...
3778 (lynx_process_target::read_memory): ... this.
3779 (lynx_write_memory): Turn into ...
3780 (lynx_process_target::write_memory): ... this.
3781 * lynx-low.h (class lynx_process_target): Update.
3782 * nto-low.cc (nto_target_ops): Update.
3783 (nto_read_memory): Turn into ...
3784 (nto_process_target::read_memory): ... this.
3785 (nto_write_memory): Turn into ...
3786 (nto_process_target::write_memory): ... this.
3787 * nto-low.h (class nto_process_target): Update.
3788 * win32-low.cc (win32_target_ops): Update.
3789 (win32_read_inferior_memory): Turn into ...
3790 (win32_process_target::read_memory): ... this.
3791 (win32_write_inferior_memory): Turn into ...
3792 (win32_process_target::write_memory): ... this.
3793 * win32-low.h (class win32_process_target): Update.
3794
37952020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3796
3797 Turn process_stratum_target's prepare_to_access_memory and
3798 done_accessing_memory ops into methods of process_target.
3799
3800 * target.h (struct process_stratum_target): Remove the target ops.
3801 (class process_target): Add the target ops.
3802 * target.cc (process_target::prepare_to_access_memory): Define.
3803 (process_target::done_accessing_memory): Define.
3804 (prepare_to_access_memory): Update.
3805 (done_accessing_memory): Update.
3806
3807 Update the derived classes and callers below.
3808
3809 * linux-low.cc (linux_target_ops): Update.
3810 (linux_prepare_to_access_memory): Turn into ...
3811 (linux_process_target::prepare_to_access_memory): ... this.
3812 (linux_done_accessing_memory): Turn into ...
3813 (linux_process_target::done_accessing_memory): ... this.
3814 * linux-low.h (class linux_process_target): Update.
3815 * lynx-low.cc (lynx_target_ops): Update.
3816 * nto-low.cc (nto_target_ops): Update.
3817 * win32-low.cc (win32_target_ops): Update.
3818
38192020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3820
3821 Turn process_stratum_target's fetch_registers and store_registers
3822 ops into methods of process_target.
3823
3824 * target.h (struct process_stratum_target): Remove the target ops.
3825 (class process_target): Add the target ops.
3826 (fetch_inferior_registers): Update the macro.
3827 (store_inferior_registers): Update the macro.
3828
3829 Update the derived classes and callers below.
3830
3831 * linux-low.cc (linux_target_ops): Update.
3832 (linux_fetch_registers): Turn into ...
3833 (linux_process_target::fetch_registers): ... this.
3834 (linux_store_registers): Turn into ...
3835 (linux_process_target::store_registers): ... this.
3836 * linux-low.h (class linux_process_target): Update.
3837 * lynx-low.cc (lynx_target_ops): Update.
3838 (lynx_fetch_registers): Turn into ...
3839 (lynx_process_target::fetch_registers): ... this.
3840 (lynx_store_registers): Turn into ...
3841 (lynx_process_target::store_registers): ... this.
3842 * lynx-low.h (class lynx_process_target): Update.
3843 * nto-low.cc (nto_target_ops): Update.
3844 (nto_fetch_registers): Turn into ...
3845 (nto_process_target::fetch_registers): ... this.
3846 (nto_store_registers): Turn into ...
3847 (nto_process_target::store_registers): ... this.
3848 * nto-low.h (class nto_process_target): Update.
3849 * win32-low.cc (win32_target_ops): Update.
3850 (win32_fetch_inferior_registers): Turn into ...
3851 (win32_process_target::fetch_registers): ... this.
3852 (win32_store_inferior_registers): Turn into ...
3853 (win32_process_target::store_registers): ... this.
3854 * win32-low.h (class win32_process_target): Update.
3855
38562020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3857
3858 Turn process_stratum_target's wait op into a method of
3859 process_target.
3860
3861 * target.h (struct process_stratum_target): Remove the target op.
3862 (class process_target): Add the target op.
3863
3864 Update the derived classes and callers below.
3865
3866 * target.cc (target_wait): Update.
3867 * linux-low.cc (linux_target_ops): Update.
3868 (linux_wait): Turn into ...
3869 (linux_process_target::wait): ... this.
3870 * linux-low.h (class linux_process_target): Update.
3871 * lynx-low.cc (lynx_target_ops): Update.
3872 (lynx_wait): Turn into ...
3873 (lynx_process_target::wait): ... this.
3874 * lynx-low.h (class lynx_process_target): Update.
3875 * nto-low.cc (nto_target_ops): Update.
3876 (nto_wait): Turn into ...
3877 (nto_process_target::wait): ... this.
3878 * nto-low.h (class nto_process_target): Update.
3879 * win32-low.cc (win32_target_ops): Update.
3880 (win32_wait): Turn into ...
3881 (win32_process_target::wait): ... this.
3882 (do_initial_child_stuff): Update.
3883 * win32-low.h (class win32_process_target): Update.
3884
38852020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3886
3887 Turn process_stratum_target's resume op into a method of
3888 process_target.
3889
3890 * target.h (struct process_stratum_target): Remove the target op.
3891 (class process_target): Add the target op.
3892
3893 Update the derived classes and callers below.
3894
3895 * server.cc (resume): Update.
3896 * target.cc (target_stop_and_wait): Update.
3897 (target_continue_no_signal): Update.
3898 (target_continue): Update.
3899 * linux-low.cc (linux_target_ops): Update.
3900 (linux_resume): Turn into ...
3901 (linux_process_target::resume): ... this.
3902 * linux-low.h (class linux_process_target): Update.
3903 * lynx-low.cc (lynx_target_ops): Update.
3904 (lynx_resume): Turn into ...
3905 (lynx_process_target::resume): ... this.
3906 * lynx-low.h (class lynx_process_target): Update.
3907 * nto-low.cc (nto_target_ops): Update.
3908 (nto_resume): Turn into ...
3909 (nto_process_target::resume): ... this.
3910 * nto-low.h (class nto_process_target): Update.
3911 * win32-low.cc (win32_target_ops): Update.
3912 (win32_resume): Turn into ...
3913 (win32_process_target::resume): ... this.
3914 (win32_process_target::detach): Update.
3915 (do_initial_child_stuff): Update.
3916 * win32-low.h (class win32_process_target): Update.
3917
39182020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3919
3920 Turn process_stratum_target's thread_alive op into a method of
3921 process_target.
3922
3923 * target.h (struct process_stratum_target): Remove the target op.
3924 (class process_target): Add the target op.
3925 (mythread_alive): Update the macro.
3926
3927 Update the derived classes and callers below.
3928
3929 * linux-low.cc (linux_target_ops): Update.
3930 (linux_thread_alive): Turn into ...
3931 (linux_process_target::thread_alive): ... this.
3932 (wait_for_sigstop): Update.
3933 * linux-low.h (class linux_process_target): Update.
3934 * lynx-low.cc (lynx_target_ops): Update.
3935 (lynx_thread_alive): Turn into ...
3936 (lynx_process_target::thread_alive): ... this.
3937 * lynx-low.h (class lynx_process_target): Update.
3938 * nto-low.cc (nto_target_ops): Update.
3939 (nto_thread_alive): Turn into ...
3940 (nto_process_target::thread_alive): ... this.
3941 * nto-low.h (class nto_process_target): Update.
3942 * win32-low.cc (win32_target_ops): Update.
3943 (win32_thread_alive): Turn into ...
3944 (win32_process_target::thread_alive): ... this.
3945 * win32-low.h (class win32_process_target): Update.
3946
39472020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3948
3949 Turn process_stratum_target's join op into a method of
3950 process_target.
3951
3952 * target.h (struct process_stratum_target): Remove the target op.
3953 (class process_target): Add the target op.
3954 (join_inferior): Update the macro.
3955
3956 Update the derived classes and callers below.
3957
3958 * linux-low.cc (linux_target_ops): Update.
3959 (linux_join): Turn into ...
3960 (linux_process_target::join): ... this.
3961 * linux-low.h (class linux_process_target): Update.
3962 * lynx-low.cc (lynx_target_ops): Update.
3963 (lynx_join): Turn into ...
3964 (lynx_process_target::join): ... this.
3965 * lynx-low.h (class lynx_process_target): Update.
3966 * nto-low.cc (nto_target_ops): Update.
3967 (nto_process_target::join): Define.
3968 * nto-low.h (class nto_process_target): Update.
3969 * win32-low.cc (win32_target_ops): Update.
3970 (win32_join): Turn into ...
3971 (win32_process_target::join): ... this.
3972 * win32-low.h (class win32_process_target): Update.
3973
39742020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3975
3976 Turn process_stratum_target's mourn op into a method of
3977 process_target.
3978
3979 * target.h (struct process_stratum_target): Remove the target op.
3980 (class process_target): Add the target op.
3981
3982 Update the derived classes and callers below.
3983
3984 * target.cc (target_mourn_inferior): Update.
3985 * linux-low.cc (linux_target_ops): Update.
3986 (linux_mourn): Turn into ...
3987 (linux_process_target::mourn): ... this.
3988 (handle_extended_wait): Update.
3989 (linux_process_target::kill): Update.
3990 (linux_process_target::detach): Update.
3991 * linux-low.h (class linux_process_target): Update.
3992 * lynx-low.cc (lynx_target_ops): Update.
3993 (lynx_mourn): Turn into ...
3994 (lynx_process_target::mourn): ... this.
3995 * lynx-low.h (class lynx_process_target): Update.
3996 * nto-low.cc (nto_target_ops): Update.
3997 (nto_mourn): Turn into ...
3998 (nto_process_target::mourn): ... this.
3999 * nto-low.h (class nto_process_target): Update.
4000 * win32-low.cc (win32_target_ops): Update.
4001 (win32_mourn): Turn into ...
4002 (win32_process_target::mourn): ... this.
4003 * win32-low.h (class win32_process_target): Update.
4004
40052020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4006
4007 Turn process_stratum_target's detach op into a method of
4008 process_target.
4009
4010 * target.h (struct process_stratum_target): Remove the target op.
4011 (class process_target): Add the target op.
4012 (detach_inferior): Update the macro.
4013
4014 Update the derived classes and callers below.
4015
4016 * linux-low.cc (linux_target_ops): Update.
4017 (linux_detach): Turn into ...
4018 (linux_process_target::detach): ... this.
4019 * linux-low.h (class linux_process_target): Update.
4020 * lynx-low.cc (lynx_target_ops): Update.
4021 (lynx_detach): Turn into ...
4022 (lynx_process_target::detach): ... this.
4023 * lynx-low.h (class lynx_process_target): Update.
4024 * nto-low.cc (nto_target_ops): Update.
4025 (nto_detach): Turn into ...
4026 (nto_process_target::detach): ... this.
4027 * nto-low.h (class nto_process_target): Update.
4028 * win32-low.cc (win32_target_ops): Update.
4029 (win32_detach): Turn into ...
4030 (win32_process_target::detach): ... this.
4031 * win32-low.h (class win32_process_target): Update.
4032
40332020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4034
4035 Turn process_stratum_target's kill op into a method of
4036 process_target.
4037
4038 * target.h (struct process_stratum_target): Remove the target op.
4039 (class process_target): Add the target op.
4040
4041 Update the derived classes and callers below.
4042
4043 * target.cc (kill_inferior): Update.
4044 * linux-low.cc (linux_target_ops): Update.
4045 (linux_kill): Turn into ...
4046 (linux_process_target::kill): ... this.
4047 * linux-low.h (class linux_process_target): Update.
4048 * lynx-low.cc (lynx_target_ops): Update.
4049 (lynx_kill): Turn into ...
4050 (lynx_process_target::kill): ... this.
4051 * lynx-low.h (class lynx_process_target): Update.
4052 * nto-low.cc (nto_target_ops): Update.
4053 (nto_kill): Turn into ...
4054 (nto_process_target::kill): ... this.
4055 * nto-low.h (class nto_process_target): Update.
4056 * win32-low.cc (win32_target_ops): Update.
4057 (win32_kill): Turn into ...
4058 (win32_process_target::kill): ... this.
4059 * win32-low.h (class win32_process_target): Update.
4060
40612020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4062
4063 Turn process_stratum_target's attach op into a method of
4064 process_target.
4065
4066 * target.h (struct process_stratum_target): Remove the target op.
4067 (class process_target): Add the target op.
4068 (myattach): Update the macro.
4069
4070 Update the derived classes and callers below.
4071
4072 * linux-low.cc (linux_target_ops): Update.
4073 (linux_attach): Turn into ...
4074 (linux_process_target::attach): ... this.
4075 * linux-low.h (class linux_process_target): Update.
4076 * lynx-low.cc (lynx_target_ops): Update.
4077 (lynx_attach): Turn into ...
4078 (lynx_process_target::attach): ... this.
4079 * lynx-low.h (class lynx_process_target): Update.
4080 * nto-low.cc (nto_target_ops): Update.
4081 (nto_attach): Turn into ...
4082 (nto_process_target::attach): ... this.
4083 * nto-low.h (class nto_process_target): Update.
4084 * win32-low.cc (win32_target_ops): Update.
4085 (win32_attach): Turn into ...
4086 (win32_process_target::attach): ... this.
4087 * win32-low.h (class win32_process_target): Update.
4088
40892020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4090
4091 Turn process_stratum_target's post_create_inferior op into a method
4092 of process_target.
4093
4094 * target.h (struct process_stratum_target): Remove the target op.
4095 (class process_target): Add the target op.
4096 (target_post_create_inferior): Update the macro.
4097 * target.cc (process_target::post_create_inferior): Define.
4098
4099 Update the derived classes and callers below.
4100
4101 * linux-low.cc (linux_target_ops): Update.
4102 (linux_post_create_inferior): Turn into ...
4103 (linux_process_target::post_create_inferior): ... this.
4104 * linux-low.h (class linux_process_target): Update.
4105 * lynx-low.cc (lynx_target_ops): Update.
4106 * nto-low.cc (nto_target_ops): Update.
4107 * win32-low.cc (win32_target_ops): Update.
4108
41092020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4110
4111 Turn process_stratum_target's create_inferior op into a method of
4112 process_target.
4113
4114 * target.h (struct process_stratum_target): Remove the target op.
4115 (class process_target): Add the target op.
4116 (create_inferior): Rename the macro to ...
4117 (target_create_inferior): ... this.
4118
4119 Update the derived classes and callers below.
4120
4121 * server.cc (handle_v_run): Update.
4122 (captured_main): Update.
4123 (process_serial_event): Update.
4124 * linux-low.cc (linux_target_ops): Update.
4125 (linux_create_inferior): Turn into ...
4126 (linux_process_target::create_inferior): ... this.
4127 * linux-low.h (class linux_process_target): Update.
4128 * lynx-low.cc (lynx_target_ops): Update.
4129 (lynx_create_inferior): Turn into ...
4130 (lynx_process_target::create_inferior): ... this.
4131 * lynx-low.h (class lynx_process_target): Update.
4132 * nto-low.cc (nto_target_ops): Update.
4133 (nto_create_inferior): Turn into ...
4134 (nto_process_target::create_inferior): ... this.
4135 * nto-low.h (class nto_process_target): Update.
4136 * win32-low.cc (win32_target_ops): Update.
4137 (win32_create_inferior): Turn into ...
4138 (win32_process_target::create_inferior): ... this.
4139 * win32-low.h (class win32_process_target): Update.
4140
41412020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4142
4143 * target.h (class process_target): New class definition.
4144 (struct process_stratum_target) <pt>: New field with type
4145 'process_target*'.
4146 * linux-low.h (class linux_process_target): Define as a derived
4147 class of 'process_target'.
4148 * linux-low.cc (linux_target_ops): Add a linux_process_target*
4149 as the 'pt' field.
4150 * lynx-low.h (class lynx_process_target): Define as a derived
4151 class of 'process_target'.
4152 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
4153 as the 'pt' field.
4154 * nto-low.h (class nto_process_target): Define as a derived
4155 class of 'process_target'.
4156 * nto-low.cc (nto_target_ops): Add an nto_process_target*
4157 as the 'pt' field.
4158 * win32-low.h (class win32_process_target): Define as a derived
4159 class of 'process_target'.
4160 * win32-low.cc (win32_target_ops): Add a win32_process_target*
4161 as the 'pt' field.
4162
41632020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
4164
4165 * configure: Regenerate.
4166
41672020-02-19 Maciej W. Rozycki <macro@wdc.com>
4168 Andrew Burgess <andrew.burgess@embecosm.com>
4169
4170 * linux-riscv-low.cc: New file.
4171 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
4172 and nat/riscv-linux-tdesc.c.
4173 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
4174 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
4175 Define.
4176
41772020-02-14 Tom Tromey <tom@tromey.com>
4178
4179 * acinclude.m4: Don't include acx_configure_dir.m4.
4180 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
4181 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
4182 (all, install-only, uninstall, clean-info, clean)
4183 (maintainer-clean): Don't recurse.
4184 (subdir_do, all-lib): Remove.
4185 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
4186 (GNULIB_H): Remove.
4187 (generated_files): Update.
4188 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
4189 * configure: Rebuild.
4190 * configure.ac: Don't configure gnulib or libiberty.
4191 (GNULIB): Update.
4192
41932020-02-14 Eli Zaretskii <eliz@gnu.org>
4194
4195 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
4196 preparing the command line for CreateProcess.
4197 (win32_create_inferior): Reflect the program name in debugging
4198 output that shows the process and its command line.
4199
42002020-02-13 Simon Marchi <simon.marchi@efficios.com>
4201
4202 * Makefile.in: Rename source files from .c to .cc.
4203 * %.c: Rename to %.cc.
4204 * configure.ac: Rename server.c to server.cc.
4205 * configure: Re-generate.
4206
42072020-02-13 Simon Marchi <simon.marchi@efficios.com>
4208
4209 * Makefile.in: Rename gdbsupport source files from .c to .cc.
4210
42112020-02-12 Hannes Domani <ssbssa@yahoo.de>
4212
4213 * win32-low.c (win32_create_inferior): Set signal_pid.
4214
42152020-02-12 Maciej W. Rozycki <macro@wdc.com>
4216 Pedro Alves <palves@redhat.com>
4217
4218 Skip building gdbserver in a cross-configuration.
4219 * configure.srv: Set $gdbserver_host depending on whether $target
4220 is $host. Use $gdbserver_host instead of $host.
4221
42222020-02-11 Simon Marchi <simon.marchi@efficios.com>
4223
4224 * configure: Re-generate.
4225
42262020-02-11 Simon Marchi <simon.marchi@efficios.com>
4227
4228 * configure: Re-generate.
4229
42302020-02-11 Simon Marchi <simon.marchi@efficios.com>
4231
4232 * acinclude.m4: Update warning.m4 path.
4233
42342020-02-09 Hannes Domani <ssbssa@yahoo.de>
4235
4236 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
4237 (handle_exception): Set siginfo_er.
4238 (win32_xfer_siginfo): New function.
4239
42402020-02-07 Tom Tromey <tom@tromey.com>
4241 Pedro Alves <palves@redhat.com>
4242
4243 * README: Update build documentation.
4244 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
4245 host, not target.
4246 * configure.ac: Update paths.
4247 * configure: Rebuild.
4248 * acinclude.m4: Update paths.
4249 * Makefile.in: Update include paths.
4250 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
4251 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
4252 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
4253 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
4254 (%-generated.c): Update paths.
4255 * Move entire directory from ../gdb/gdbserver.
4256
42572020-01-29 Maciej W. Rozycki <macro@wdc.com>
4258
4259 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
4260
42612020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4262
4263 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
4264 assignment instead of srv_linux_obj.
4265
42662020-01-28 Hannes Domani <ssbssa@yahoo.de>
4267
4268 * server.c (handle_qxfer_libraries): Write segment-address with
4269 paddress.
4270
42712020-01-24 Hannes Domani <ssbssa@yahoo.de>
4272
4273 * Makefile.in (install-strip): New target.
4274 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
4275 * aclocal.m4: Regenerate.
4276 * configure: Regenerate.
4277 * configure.ac: Add AM_PROG_INSTALL_STRIP.
4278
42792020-01-24 Maciej W. Rozycki <macro@wdc.com>
4280
4281 * Makefile.in (SFILES): Adjust paths to point to real files.
4282 (OBS): Move waitstatus.o to target/waitstatus.o.
4283 (TAGS): Transform paths appropriately.
4284 (%.o): Rename to...
4285 (nat/%.o): ... this pattern rule.
4286 (%.o): Rename to...
4287 (target/%.o): ... this pattern rule.
4288 * configure.srv: Adjust paths throughout to include nat/ prefix
4289 with the revant files.
4290 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
4291 * configure: Regenerate.
4292
42932020-01-24 Maciej W. Rozycki <macro@wdc.com>
4294
4295 * Makefile.in (TAGS): Remove config files from the recipe.
4296
42972020-01-14 Tom Tromey <tom@tromey.com>
4298
4299 * configure: Rebuild.
4300 * configure.ac: Remove any checks that were added to common.m4.
4301 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
4302 lib-link.m4.
4303
43042020-01-14 Tom Tromey <tom@tromey.com>
4305
4306 * server.h: Include config.h.
4307 * gdbreplay.c: Include config.h.
4308 * configure: Rebuild.
4309 * configure.ac: Don't source common.host.
4310 * acinclude.m4: Update path.
4311 * Makefile.in (INCSUPPORT): New variable.
4312 (INCLUDE_CFLAGS): Add INCSUPPORT.
4313 (SFILES): Update paths.
4314 (version-generated.c): Update path to create-version.sh.
4315 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
4316
43172020-01-14 Tom Tromey <tom@tromey.com>
4318
4319 * configure.ac (LIBS): Use WIN32APILIBS.
4320 (USE_WIN32API): Don't define.
4321 * configure: Rebuild.
4322
43232020-01-14 Tom Tromey <tom@tromey.com>
4324
4325 * configure: Rebuild.
4326
43272020-01-13 Simon Marchi <simon.marchi@efficios.com>
4328
4329 * Makefile.in (%-generated.c): Remove rule for files from
4330 regformats/i386.
4331
43322020-01-13 Simon Marchi <simon.marchi@efficios.com>
4333
4334 * configure: Re-generate.
4335
43362020-01-13 Simon Marchi <simon.marchi@efficios.com>
4337
4338 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
4339 Define to static.
4340 * tracepoint.c (stop_tracing, flush_trace_buffer,
4341 about_to_request_buffer_space, get_trace_state_variable_value,
4342 set_trace_state_variable_value, gdb_collect): Add declaration.
4343
43442020-01-13 Simon Marchi <simon.marchi@efficios.com>
4345
4346 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
4347 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
4348 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
4349 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
4350 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
4351 static.
4352
43532020-01-13 Simon Marchi <simon.marchi@efficios.com>
4354
4355 * inferiors.c: Include gdbsupport/common-inferior.h.
4356
43572020-01-13 Simon Marchi <simon.marchi@efficios.com>
4358
4359 * hostio-errno.c: Include hostio.h.
4360
43612020-01-13 Simon Marchi <simon.marchi@efficios.com>
4362
4363 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
4364 prerequisite.
4365
43662020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4367
4368 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
4369 * linux-arm-tdesc.h: Include arch/arm.h.
4370
43712020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4372
4373 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
4374
43752020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4376
4377 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
4378 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
4379
43802020-01-10 Pedro Alves <palves@redhat.com>
4381
4382 * fork-child.c (post_fork_inferior): Pass target down to
4383 startup_inferior.
4384 * inferiors.c (switch_to_thread): Add process_stratum_target
4385 parameter.
4386 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
4387 * nto-low.c (nto_target_ops): Now a process_stratum_target.
4388 * linux-low.c (linux_target_ops): Now a process_stratum_target.
4389 * remote-utils.c (prepare_resume_reply): Pass the target to
4390 switch_to_thread.
4391 * target.c (the_target): Now a process_stratum_target.
4392 (done_accessing_memory): Pass the target to switch_to_thread.
4393 (set_target_ops): Ajust to use process_stratum_target.
4394 * target.h (struct target_ops): Rename to ...
4395 (struct process_stratum_target): ... this.
4396 (the_target, set_target_ops): Adjust.
4397 (prepare_to_access_memory): Adjust comment.
4398 * win32-low.c (child_xfer_memory): Adjust to use
4399 process_stratum_target.
4400 (win32_target_ops): Now a process_stratum_target.
4401
44022020-01-06 Eli Zaretskii <eliz@gnu.org>
4403 Pedro Alves <palves@redhat.com>
4404
4405 * win32-low.c (get_child_debug_event): Extract the fatal exception
4406 from the exit status and convert to the equivalent Posix signal
4407 number.
4408 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
4409 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
4410
44112020-01-01 Hannes Domani <ssbssa@yahoo.de>
4412
4413 * Makefile.in: Use INSTALL_PROGRAM_ENV.
4414
44152020-01-01 Joel Brobecker <brobecker@adacore.com>
4416
4417 * server.c (gdbserver_version): Change copyright year to 2020.
4418 * gdbreplay.c (gdbreplay_version): Likewise.
4419
44202019-12-19 Christian Biesinger <cbiesinger@google.com>
4421
4422 * configure: Regenerate.
4423 * configure.ac: Quote variable arguments of test.
4424
44252019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
4426
4427 * Makefile.in: Fix build with GNU Make 3.81
4428
44292019-12-16 Tom Tromey <tromey@adacore.com>
4430
4431 * server.c (get_exec_file): Constify result.
4432
44332019-12-10 Christian Biesinger <cbiesinger@google.com>
4434
4435 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
4436 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
4437 * config.in: Regenerate.
4438 * configure: Regenerate.
4439 * configure.ac: Don't check for strerror.
4440 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
4441 Call safe_strerror instead of strerror.
4442 * server.h (strerror): Remove this now-unnecessary declaration.
4443 * tracepoint.c (init_named_socket): Call safe_strerror instead of
4444 strerror.
4445 (gdb_agent_helper_thread): Likewise.
4446 * utils.c (perror_with_name): Likewise.
4447
44482019-11-26 Tom Tromey <tom@tromey.com>
4449
4450 * configure, config.in: Rebuild.
4451
44522019-11-26 Tom Tromey <tom@tromey.com>
4453
4454 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
4455 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
4456 gdb_sigmask.
4457 * configure, config.in: Rebuild.
4458
44592019-11-26 Tom Tromey <tom@tromey.com>
4460
4461 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
4462 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
4463 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
4464 * acinclude.m4: Include ax_pthread.m4.
4465 * config.in, configure: Rebuild.
4466
44672019-11-26 Christian Biesinger <cbiesinger@google.com>
4468
4469 * debug.c (debug_set_output): Call safe_strerror instead of
4470 strerror.
4471 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
4472 (linux_kill_one_lwp): Likewise.
4473 (linux_detach_one_lwp): Likewise.
4474 (linux_wait_for_event_filtered): Likewise.
4475 (store_register): Likewise.
4476 * lynx-low.c (lynx_attach): Likewise.
4477 * mem-break.c (insert_memory_breakpoint): Likewise.
4478 (remove_memory_breakpoint): Likewise.
4479 (delete_fast_tracepoint_jump): Likewise.
4480 (set_fast_tracepoint_jump): Likewise.
4481 (uninsert_fast_tracepoint_jumps_at): Likewise.
4482 (reinsert_fast_tracepoint_jumps_at): Likewise.
4483 * nto-low.c (nto_xfer_memory): Likewise.
4484 (nto_resume): Likewise.
4485
44862019-11-20 Luis Machado <luis.machado@linaro.org>
4487
4488 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
4489 instead of register count.
4490 * tdesc.c (tdesc_contains_feature): New function.
4491 * tdesc.h (tdesc_contains_feature): New prototype.
4492
44932019-11-15 Christian Biesinger <cbiesinger@google.com>
4494
4495 * Makefile.in: Add safe-strerror.c.
4496 * configure: Regenerate.
4497 * configure.ac: Don't source common.host.
4498
44992019-11-15 Christian Biesinger <cbiesinger@google.com>
4500
4501 * config.in: Regenerate.
4502 * configure: Regenerate.
4503
45042019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
4505
4506 * ax.c (ax_printf): Handle size_t_arg.
4507
45082019-11-06 Christian Biesinger <cbiesinger@google.com>
4509
4510 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
4511 * mi/mi-main.c (output_cores): Likewise.
4512 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
4513 (linux_xfer_osdata_modules): Likewise.
4514 * remote.c (register_remote_support_xml): Likewise.
4515 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
4516 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
4517
45182019-11-01 Christian Biesinger <cbiesinger@google.com>
4519
4520 * configure: Regenerate.
4521 * configure.ac: Remove check for strerror_r.
4522
45232019-10-31 Christian Biesinger <cbiesinger@google.com>
4524
4525 * config.in: Regenerate.
4526 * configure: Regenerate.
4527 * configure.ac: Also check for strerror_r.
4528
45292019-10-31 Christian Biesinger <cbiesinger@google.com>
4530
4531 * ax.h (debug_agent): Remove duplicate declaration.
4532
45332019-10-26 Tom de Vries <tdevries@suse.de>
4534
4535 * linux-aarch64-low.c: Fix typos in comments.
4536 * linux-arm-low.c: Same.
4537 * linux-low.c: Same.
4538 * linux-ppc-low.c: Same.
4539 * proc-service.c: Same.
4540 * regcache.h: Same.
4541 * server.c: Same.
4542 * tracepoint.c: Same.
4543 * win32-low.c: Same.
4544
45452019-10-25 Tom Tromey <tromey@adacore.com>
4546
4547 * utils.c (xstrdup): Remove.
4548
45492019-10-23 Tom Tromey <tom@tromey.com>
4550
4551 * configure, config.in: Rebuild.
4552
45532019-10-23 Tom Tromey <tom@tromey.com>
4554
4555 * configure: Rebuild.
4556 * acinclude.m4: Use m4_include, not sinclude.
4557
45582019-10-17 Tom Tromey <tromey@adacore.com>
4559
4560 * configure: Rebuild.
4561 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
4562 in AC_CONFIG_FILES invocation.
4563 * Makefile.in (stamp-h, Makefile): Use new-style config.status
4564 invocation.
4565
45662019-10-16 Christian Biesinger <cbiesinger@google.com>
4567
4568 * server.c: Include xml-builtin.h.
4569 (get_xml_features): Don't declare xml_builtins here.
4570
45712019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4572
4573 * Makefile.in: Remove references to vec-ipa.o.
4574
45752019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4576
4577 * Makefile.in: Remove references to vec.c.
4578
45792019-10-02 Christian Biesinger <cbiesinger@google.com>
4580
4581 * server.c (server_waiting): Change to bool.
4582 (extended_protocol): Likewise.
4583 (response_needed): Likewise.
4584 (exit_requested): Likewise.
4585 (run_once): Likewise.
4586 (report_no_resumed): Likewise.
4587 (non_stop): Likewise.
4588 (disable_packet_vCont): Likewise.
4589 (disable_packet_Tthread): Likewise.
4590 (disable_packet_qC): Likewise.
4591 (disable_packet_qfThreadInfo): Likewise.
4592 (handle_general_set): Update.
4593 (handle_detach): Update.
4594 (handle_monitor_command): Update.
4595 (handle_query): Update.
4596 (captured_main): Update.
4597 (process_serial_event): Update.
4598 * server.h (server_waiting): Change to bool.
4599 (disable_packet_vCont): Likewise.
4600 (disable_packet_Tthread): Likewise.
4601 (disable_packet_qC): Likewise.
4602 (disable_packet_qfThreadInfo): Likewise.
4603 (run_once): Likewise.
4604 (non_stop): Likewise.
4605 * target.c (target_stop_and_wait): Update.
4606
46072019-10-02 Tom Tromey <tromey@adacore.com>
4608
4609 * Makefile.in (SFILES): Add common-inferior.c.
4610 (OBS): Add common-inferior.o.
4611 * server.c (startup_with_shell): Don't define.
4612
46132019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
4614
4615 * linux-low.c (linux_low_read_btrace): Update for change to
4616 std::vector.
4617
46182019-09-20 Christian Biesinger <cbiesinger@google.com>
4619
4620 * debug.c (debug_threads): Remove comment in favor of the header.
4621 * debug.h (using_threads): Add declaration.
4622 (debug_threads): Add comment.
4623 * linux-aarch64-low.c: Include debug.h and remove declaration of
4624 debug_threads.
4625 * nto-low.c: Likewise.
4626 * remote-utils.c: Likewise.
4627 * thread-db.c: Likewise.
4628
46292019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
4630
4631 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
4632 and powerpc-cell64l-ipa.o.
4633 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
4634 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
4635 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
4636 (spu*-*-*): Remove.
4637
4638 * spu-low.c: Remove file.
4639
4640 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
4641 (parse_spufs_run): Remove.
4642 (ppc_get_pc): Remove Cell/B.E. support.
4643 (ppc_set_pc): Likewise.
4644 (ppc_breakpoint_at): Likewise.
4645 (ppc_arch_setup): Likewise.
4646 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
4647 tdesc_powerpc_cell32l.
4648 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
4649 or init_registers_powerpc_cell32l.
4650 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
4651 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
4652 or init_registers_powerpc_cell32l.
4653 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
4654 (init_registers_powerpc_cell32l): Remove prototype.
4655 (init_registers_powerpc_cell64l): Likewise.
4656
4657 * target.h (struct target_ops): Remove qxfer_spu member.
4658 * server.c (handle_qxfer_spu): Remove.
4659 (qxfer_packets): Remove entry for "spu".
4660 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
4661 * linux-low.c (SPUFS_MAGIC): Remove.
4662 (spu_enumerate_spu_ids): Remove.
4663 (linux_qxfer_spu): Remove.
4664 (linux_target_ops): Remove qxfer_spu member.
4665 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
4666 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
4667 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
4668
46692019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4670
4671 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
4672 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
4673 * config.in: Regenerate.
4674 * configure: Regenerate.
4675
46762019-08-15 Tom Tromey <tromey@adacore.com>
4677
4678 * target.c (target_write_memory): Use gdb::byte_vector.
4679
46802019-08-15 Tom Tromey <tromey@adacore.com>
4681
4682 * tracepoint.c (write_inferior_data_pointer)
4683 (write_inferior_integer, write_inferior_int8)
4684 (write_inferior_uinteger, m_tracepoint_action_download)
4685 (r_tracepoint_action_download, x_tracepoint_action_download)
4686 (l_tracepoint_action_download, clear_inferior_trace_buffer)
4687 (download_agent_expr, download_tracepoint_1)
4688 (download_trace_state_variables, upload_fast_traceframes): Update.
4689 * server.c (gdb_write_memory): Update.
4690 * remote-utils.c (relocate_instruction): Update.
4691 * proc-service.c (ps_pdwrite): Update.
4692 * mem-break.c (remove_memory_breakpoint)
4693 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
4694 (uninsert_fast_tracepoint_jumps_at)
4695 (reinsert_fast_tracepoint_jumps_at): Update.
4696 * linux-x86-low.c (append_insns)
4697 (i386_install_fast_tracepoint_jump_pad)
4698 (amd64_write_goto_address, i386_write_goto_address): Update.
4699 * linux-s390-low.c (append_insns, s390_write_goto_address):
4700 Update.
4701 * linux-ppc-low.c (ppc_relocate_instruction)
4702 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
4703 (ppc_write_goto_address): Update.
4704 * linux-aarch64-low.c (append_insns): Update.
4705 * target.h (struct target_ops): Update.
4706 (write_inferior_memory): Don't declare.
4707 * target.c (target_write_memory): Rename from
4708 write_inferior_memory. Remove old target_write_memory.
4709
47102019-08-15 Tom Tromey <tromey@adacore.com>
4711
4712 * target.c (write_inferior_memory): Use std::vector.
4713
47142019-08-06 Frank Ch. Eigler <fche@redhat.com>
4715
4716 PR build/24886
4717 * configure.ac: Drop enable-libmcheck support.
4718 * configure, config.in: Rebuild.
4719 * acinclude.m4: Don't include it.
4720
47212019-07-19 Alan Hayward <alan.hayward@arm.com>
4722
4723 * configure.srv: Remove Arm xml files.
4724
47252019-07-19 Alan Hayward <alan.hayward@arm.com>
4726
4727 * configure.srv: Add new files. Remove xml generated files.
4728 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
4729 registers.
4730 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
4731 * linux-aarch32-tdesc.c: New file.
4732 * linux-aarch32-tdesc.h: New file.
4733 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
4734 * linux-arm-low.c (init_registers_arm, tdesc_arm)
4735 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
4736 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
4737 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
4738 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
4739 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
4740 (arm_read_description): Call arm_linux_read_description.
4741 (initialize_low_arch): Don't init registers.
4742 * linux-arm-tdesc.c: New file.
4743 * linux-arm-tdesc.h: New file.
4744
47452019-07-10 Alan Hayward <alan.hayward@arm.com>
4746
4747 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
4748 Move counter inside for.
4749 (arm_read_description): Check ptrace earlier.
4750 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
4751
47522019-07-09 Tom Tromey <tom@tromey.com>
4753
4754 * configure: Rebuild.
4755 * configure.ac: Change common to gdbsupport.
4756 * acinclude.m4: Change common to gdbsupport.
4757 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
4758 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
4759 common to gdbsupport.
4760 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
4761 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
4762 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
4763 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
4764 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
4765 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
4766 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
4767 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
4768 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
4769 common to gdbsupport.
4770
47712019-07-04 Alan Hayward <alan.hayward@arm.com>
4772
4773 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
4774 defines.
4775 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
4776
47772019-07-04 Alan Hayward <alan.hayward@arm.com>
4778
4779 * configure.srv: Remove legacy xml.
4780 * linux-aarch64-low.c (initialize_low_arch): Remove
4781 initialize_low_tdesc call.
4782 * linux-aarch64-tdesc-selftest.c: Remove file.
4783 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
4784 * linux-x86-low.c (initialize_low_arch): Remove
4785 initialize_low_tdesc call.
4786 * linux-x86-tdesc-selftest.c: Remove file.
4787 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
4788
47892019-06-20 Tom de Vries <tdevries@suse.de>
4790
4791 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
4792 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
4793
47942019-06-19 Tom de Vries <tdevries@suse.de>
4795
4796 * debug.h (debug_write): Change return type to ssize_t.
4797 * debug.c (debug_write): Same.
4798
47992019-06-14 Tom Tromey <tom@tromey.com>
4800
4801 * configure.ac: Use new path to gnulib.
4802 * configure: Rebuild.
4803 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
4804 to gnulib.
4805
48062019-06-11 Tom Tromey <tom@tromey.com>
4807
4808 * Makefile.in (SFILES): Add alloc.c.
4809 (OBS): Add alloc.o.
4810 (IPA_OBJS): Add alloc-ipa.o.
4811 (alloc-ipa.o): New target.
4812 (%.o: ../%.c): New pattern rule.
4813
48142019-06-10 Tom Tromey <tromey@adacore.com>
4815
4816 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
4817 end warning with a newline.
4818 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
4819 newline.
4820 * thread-db.c (attach_thread): Don't end warning with a newline.
4821 (thread_db_notice_clone): Likewise.
4822 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
4823 newline.
4824 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
4825 end warning with a newline.
4826
48272019-06-04 Pedro Alves <palves@redhat.com>
4828
4829 * server.c (captured_main): Use make_unique_xstrdup.
4830
48312019-06-02 Tom Tromey <tom@tromey.com>
4832
4833 * gdbreplay.c (fromhex): Remove.
4834 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
4835
48362019-05-29 Tom Tromey <tromey@adacore.com>
4837
4838 * configure: Rebuild.
4839
48402019-05-06 Kevin Buettner <kevinb@redhat.com>
4841
4842 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
4843 sign extension code on 32-bit builds.
4844
48452019-05-03 Eli Zaretskii <eliz@gnu.org>
4846
4847 * remote-utils.c:
4848 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
4849
48502019-04-19 Tom Tromey <tom@tromey.com>
4851
4852 * server.c (struct vstop_notif): Derive from notif_event.
4853 <base>: Remove.
4854 (queue_stop_reply): Update.
4855 (remove_all_on_match_ptid): Change type. Rewrite.
4856 (discard_queued_stop_replies): Rewrite.
4857 (in_queued_stop_replies_ptid): Change type.
4858 (in_queued_stop_replies): Rewrite.
4859 (notif_stop): Update.
4860 (queue_stop_reply_callback): Update.
4861 (captured_main): Don't call initialize_notif.
4862 (push_stop_notification): Update.
4863 * notif.c (notif_write_event, handle_notif_ack)
4864 (notif_event_enque, notif_push): Update.
4865 (notif_event_xfree, initialize_notif): Remove.
4866 * notif.h (struct notif_event): Include <list>, not
4867 "common/queue.h".
4868 (struct notif_server) <queue>: Now a std::list.
4869 (notif_event_p): Remove typedef.
4870 (initialize_notif): Don't declare.
4871 (struct notif_event): Add virtual destructor.
4872
48732019-04-17 Alan Hayward <alan.hayward@arm.com>
4874
4875 * ax.c (ax_vdebug): Call debug_printf.
4876 * debug.c (debug_write): New function.
4877 * debug.h (debug_write): New declaration.
4878 * linux-low.c (sigchld_handler): Call debug_write.
4879
48802019-04-17 Alan Hayward <alan.hayward@arm.com>
4881
4882 * debug.c (debug_set_output): New function.
4883 (debug_vprintf): Send output to debug_file.
4884 (debug_flush): Likewise.
4885 * debug.h (debug_set_output): New declaration.
4886 * server.c (handle_monitor_command): Add debug-file option.
4887 (captured_main): Likewise.
4888
48892019-04-17 Alan Hayward <alan.hayward@arm.com>
4890
4891 * debug.c (remote_debug): Add definition.
4892 * debug.h (remote_debug): Add declaration.
4893 * hostio.c (remote_debug): Remove declaration.
4894 * remote-utils.c (struct ui_file): Likewise.
4895 (remote_debug): Likewise.
4896 * remote-utils.h (remote_debug): Likewise,
4897 * server.c (remote_debug): Remove definition.
4898
48992019-04-10 Kevin Buettner <kevinb@redhat.com>
4900
4901 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
4902 when using a 64-bit gdbserver.
4903
49042019-04-09 Tom Tromey <tromey@adacore.com>
4905
4906 * linux-low.c (select_event_lwp): Use find_thread_in_random.
4907
49082019-04-08 Tom Tromey <tom@tromey.com>
4909
4910 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
4911 throw.
4912 (linux_resume_one_lwp): Likewise.
4913
49142019-04-08 Tom Tromey <tom@tromey.com>
4915
4916 * gdbreplay.c: Update.
4917 * linux-low.c: Update.
4918 * server.c: Update.
4919
49202019-04-08 Tom Tromey <tom@tromey.com>
4921
4922 * server.c: Use C++ exception handling.
4923 * linux-low.c: Use C++ exception handling.
4924 * gdbreplay.c: Use C++ exception handling.
4925
49262019-04-08 Tom Tromey <tom@tromey.com>
4927
4928 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
4929 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
4930 (captured_main, main): Update.
4931 * gdbreplay.c (main): Update.
4932
49332019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4934
4935 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
4936 value in argument pointer, return 1 if the entry is found and 0
4937 otherwise. Move comment.
4938 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
4939 * linux-low.h (linux_get_auxv): Declare.
4940 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
4941
49422019-04-05 Tom Tromey <tromey@adacore.com>
4943
4944 * server.c (gdbserver_usage): Use upper-case for metasyntactic
4945 variables.
4946
49472019-03-28 Alan Hayward <alan.hayward@arm.com>
4948
4949 * linux-low.c (AT_HWCAP2): Add define if not already included.
4950
49512019-03-26 Alan Hayward <alan.hayward@arm.com>
4952
4953 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
4954 (aarch64_arch_setup): Call linux_get_hwcap.
4955 * linux-arm-low.c (arm_get_hwcap): Remove function.
4956 (arm_read_description): Call linux_get_hwcap.
4957 * linux-low.c (linux_get_auxv): New function.
4958 (linux_get_hwcap): Likewise.
4959 (linux_get_hwcap2): Likewise.
4960 * linux-low.h (linux_get_hwcap): New declaration.
4961 (linux_get_hwcap2): Likewise.
4962 * linux-ppc-low.c (ppc_get_auxv): Remove function.
4963 (ppc_arch_setup): Call linux_get_hwcap.
4964 * linux-s390-low.c (s390_get_hwcap): Remove function.
4965 (s390_arch_setup): Call linux_get_hwcap.
4966
49672019-03-22 Alan Hayward <alan.hayward@arm.com>
4968 Jiong Wang <jiong.wang@arm.com>
4969
4970 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
4971 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
4972 to fail.
4973 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
4974
49752019-03-22 Alan Hayward <alan.hayward@arm.com>
4976 Jiong Wang <jiong.wang@arm.com>
4977
4978 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
4979 (aarch64_get_hwcap): New function.
4980 (aarch64_arch_setup): Read APIA hwcap.
4981
49822019-03-22 Alan Hayward <alan.hayward@arm.com>
4983 Jiong Wang <jiong.wang@arm.com>
4984
4985 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
4986 (initialize_low_tracepoint): Likewise.
4987 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
4988 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
4989 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
4990 (aarch64_linux_read_description): Likewise.
4991 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
4992
49932019-03-12 John Baldwin <jhb@FreeBSD.org>
4994
4995 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
4996 i386_create_target_description for 'segments' parameter.
4997 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
4998 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
4999 * win32-i386-low.c (i386_arch_setup): Likewise.
5000
50012019-03-12 Tom Tromey <tromey@adacore.com>
5002
5003 * linux-low.c (iterate_over_lwps): Update.
5004
50052019-03-06 Tom Tromey <tom@tromey.com>
5006
5007 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
5008 (captured_main): Use SCOPE_EXIT.
5009
50102019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
5011
5012 * configure.srv: Use '$enable_unittest' instead of '$development'
5013 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
5014 case.
5015
50162019-02-27 Tom Tromey <tromey@adacore.com>
5017
5018 * gdbreplay.c (logchar): Handle \r\n.
5019
50202019-02-07 Alan Hayward <alan.hayward@arm.com>
5021
5022 * linux-low.c (linux_attach): Add process before lwp.
5023 * server.c (attach_inferior): Check if already attached.
5024
50252019-02-07 Tom Tromey <tom@tromey.com>
5026
5027 * x86-tdesc.h: Rename include guard.
5028 * x86-low.h: Add include guard.
5029 * wincecompat.h: Rename include guard.
5030 * win32-low.h: Add include guard.
5031 * utils.h: Rename include guard.
5032 * tracepoint.h: Rename include guard.
5033 * tdesc.h: Rename include guard.
5034 * target.h: Rename include guard.
5035 * server.h: Rename include guard.
5036 * remote-utils.h: Rename include guard.
5037 * regcache.h: Rename include guard.
5038 * nto-low.h: Rename include guard.
5039 * notif.h: Add include guard.
5040 * mem-break.h: Rename include guard.
5041 * lynx-low.h: Add include guard.
5042 * linux-x86-tdesc.h: Add include guard.
5043 * linux-s390-tdesc.h: Add include guard.
5044 * linux-ppc-tdesc-init.h: Add include guard.
5045 * linux-low.h: Add include guard.
5046 * linux-aarch64-tdesc.h: Add include guard.
5047 * linux-aarch32-low.h: Add include guard.
5048 * inferiors.h: Rename include guard.
5049 * i387-fp.h: Rename include guard.
5050 * hostio.h: Rename include guard.
5051 * gdbthread.h: Rename include guard.
5052 * gdb_proc_service.h: Rename include guard.
5053 * event-loop.h: Rename include guard.
5054 * dll.h: Rename include guard.
5055 * debug.h: Rename include guard.
5056 * ax.h: Rename include guard.
5057
50582018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
5059
5060 PR gdb/23985
5061 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
5062 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
5063
50642019-01-25 Tom Tromey <tom@tromey.com>
5065
5066 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
5067
50682019-01-25 Tom Tromey <tom@tromey.com>
5069
5070 * win32-low.c: Fix common/ includes.
5071 * win32-i386-low.c: Fix common/ includes.
5072 * tracepoint.c: Fix common/ includes.
5073 * thread-db.c: Fix common/ includes.
5074 * target.h: Fix common/ includes.
5075 * symbol.c: Fix common/ includes.
5076 * spu-low.c: Fix common/ includes.
5077 * server.h: Fix common/ includes.
5078 * server.c: Fix common/ includes.
5079 * remote-utils.c: Fix common/ includes.
5080 * regcache.h: Fix common/ includes.
5081 * regcache.c: Fix common/ includes.
5082 * nto-x86-low.c: Fix common/ includes.
5083 * notif.h: Fix common/ includes.
5084 * mem-break.h: Fix common/ includes.
5085 * lynx-low.c: Fix common/ includes.
5086 * lynx-i386-low.c: Fix common/ includes.
5087 * linux-x86-tdesc-selftest.c: Fix common/ includes.
5088 * linux-x86-low.c: Fix common/ includes.
5089 * linux-low.c: Fix common/ includes.
5090 * inferiors.h: Fix common/ includes.
5091 * i387-fp.c: Fix common/ includes.
5092 * hostio.c: Fix common/ includes.
5093 * hostio-errno.c: Fix common/ includes.
5094 * gdbthread.h: Fix common/ includes.
5095 * gdbreplay.c: Fix common/ includes.
5096 * fork-child.c: Fix common/ includes.
5097 * event-loop.c: Fix common/ includes.
5098 * ax.c:
5099 (enum gdb_agent_op): Fix common/ includes.
5100
51012019-01-21 Tom Tromey <tom@tromey.com>
5102
5103 * tracepoint.c: Fix includes.
5104 * remote-utils.c: Fix includes.
5105 * linux-x86-low.c: Fix includes.
5106
51072019-01-01 Joel Brobecker <brobecker@adacore.com>
5108
5109 * gdbreplay.c (gdbreplay_version): Update copyright year in
5110 version message.
5111 * server.c (gdbserver_version): Likewise.
5112
51132018-12-05 Alan Hayward <alan.hayward@arm.com>
5114
5115 * linux-low.c (add_lwp): Switch ordering.
5116
51172018-11-29 Tom Tromey <tom@tromey.com>
5118
5119 * win32-low.c (win32_join): Take pid, not process.
5120 * target.h (struct target_ops) <join>: Change argument type.
5121 (join_inferior): Change argument name.
5122 * spu-low.c (spu_join): Take pid, not process.
5123 * server.c (handle_detach): Preserve pid before destroying
5124 process.
5125 * lynx-low.c (lynx_join): Take pid, not process.
5126 * linux-low.c (linux_join): Take pid, not process.
5127
51282018-11-23 Alan Hayward <alan.hayward@arm.com>
5129
5130 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
5131 (aarch64_cannot_fetch_register): Likewise.
5132 (struct linux_target_ops): Update references.
5133
51342018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5135
5136 * linux-ppc-low.c: Include nat/linux-ptrace.h.
5137
51382018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5139
5140 * configure.srv (ipa_ppc_linux_regobj): Add
5141 powerpc-isa207-htm-vsx32l-ipa.o and
5142 powerpc-isa207-htm-vsx64l-ipa.o.
5143 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
5144 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
5145 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
5146 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
5147 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
5148 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
5149 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
5150 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
5151 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5152 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
5153 (init_registers_powerpc_isa207_htm_vsx32l)
5154 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
5155 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
5156 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
5157 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
5158 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
5159 (ppc_store_tm_ctarregset): New functions.
5160 (ppc_regsets): Add entries for HTM regsets.
5161 (ppc_arch_setup): Set htm in features struct when needed. Set
5162 sizes for the HTM regsets.
5163 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
5164 (initialize_low_arch): Call
5165 init_registers_powerpc_isa207_htm_vsx32l and
5166 init_registers_powerpc_isa207_htm_vsx64l.
5167 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5168 PPC_TDESC_ISA207_HTM_VSX.
5169 (initialize_low_tracepoint): Call
5170 init_registers_powerpc_isa207_htm_vsx32l and
5171 init_registers_powerpc_isa207_htm_vsx64l.
5172
51732018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5174
5175 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
5176 rs6000/power-linux-pmu.xml to srv_xmlfiles.
5177 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
5178 (ppc_store_pmuregset): New functions.
5179 (ppc_regsets): Add entries for ebb and pmu regsets.
5180 (ppc_arch_setup): Set isa207 in features struct if the ebb and
5181 pmu regsets are available. Set sizes for these regsets.
5182
51832018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5184
5185 * configure.srv (ipa_ppc_linux_regobj): Add
5186 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
5187 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
5188 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
5189 rs6000/powerpc-isa207-vsx32l.xml, and
5190 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
5191 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5192 <PPC_TDESC_ISA207_VSX>: New enum value.
5193 (init_registers_powerpc_isa207_vsx32l): Declare.
5194 (init_registers_powerpc_isa207_vsx64l): Declare.
5195 * linux-ppc-low.c (ppc_fill_tarregset): New function.
5196 (ppc_store_tarregset): New function.
5197 (ppc_regsets): Add entry for the TAR regset.
5198 (ppc_arch_setup): Set isa207 in features struct when needed. Set
5199 size for the TAR regsets.
5200 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
5201 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
5202 and init_registers_powerpc_isa207_vsx64l.
5203 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
5204 (initialize_low_tracepoint): Call
5205 init_registers_powerpc_isa207_vsx32l and
5206 init_registers_powerpc_isa207_vsx64l.
5207
52082018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5209 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5210
5211 * configure.srv (ipa_ppc_linux_regobj): Add
5212 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
5213 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
5214 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
5215 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
5216 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
5217 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
5218 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
5219 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5220 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
5221 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
5222 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
5223 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
5224 (ppc_hwcap): Add comment.
5225 (ppc_hwcap2): New global.
5226 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
5227 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
5228 (ppc_regsets): Add entries for the DSCR and PPR regsets.
5229 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
5230 when needed. Set sizes for the the DSCR and PPR regsets.
5231 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
5232 (initialize_low_arch): Call
5233 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5234 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5235 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5236 PPC_TDESC_ISA205_PPR_DSCR_VSX.
5237 (initialize_low_tracepoint): Call
5238 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5239 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5240
52412018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5242
5243 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
5244
52452018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
5246 Simon Marchi <simark@simark.ca>
5247
5248 * acinclude.m4: Include "../selftest.m4".
5249 * configure: Regenerate.
5250 * configure.ac: Use "GDB_AC_SELFTEST".
5251 * configure.srv: Use "$enable_unittests" instead of
5252 "$development" when checking whether unit tests have been
5253 enabled.
5254 * server.c (captured_main): Update message informing that
5255 selftests have been disabled.
5256
52572018-10-04 Tom Tromey <tom@tromey.com>
5258
5259 * configure: Rebuild.
5260
52612018-10-04 Tom Tromey <tom@tromey.com>
5262
5263 * server.c (handle_status): Rename inner "thread".
5264 (process_serial_event): Declare "res" in 'm' case.
5265 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
5266 (iterate_over_lwps): Rename inner "thread".
5267 (linux_qxfer_libraries_svr4): Rename inner "len".
5268 * gdbthread.h (find_thread_in_random): Rename inner "thread".
5269
52702018-10-01 Gary Benson <gbenson@redhat.com>
5271
5272 * gdb_proc_service.h: Moved common code to
5273 common/gdb_proc_service.h.
5274
52752018-10-01 Gary Benson <gbenson@redhat.com>
5276
5277 * gdb_proc_service.h: Synchronize comments and whitespace with
5278 GDB's version of this file.
5279
52802018-09-25 Tom Tromey <tom@tromey.com>
5281
5282 * configure: Rebuild.
5283 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
5284
52852018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5286
5287 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
5288 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
5289 ($(IPA_LIB)): Sort IPA_OBJS.
5290
52912018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5292
5293 * Makefile.in: Remove references to $(ADD_DEPS).
5294
52952018-09-16 Tom Tromey <tom@tromey.com>
5296
5297 * remote-utils.c (remote_open): Use GNU style for metasyntactic
5298 variables.
5299 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
5300 variables.
5301
53022018-09-05 Tom Tromey <tom@tromey.com>
5303
5304 * configure: Rebuild.
5305
53062018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
5307
5308 PR build/23399
5309 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
5310
53112018-08-27 Tom Tromey <tom@tromey.com>
5312
5313 PR build/23087:
5314 * configure: Rebuild.
5315
53162018-08-27 Tom Tromey <tom@tromey.com>
5317
5318 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
5319 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
5320 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
5321 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
5322 (s390x_emit_stack_adjust): Add casts to unsigned char.
5323
53242018-08-22 Simon Marchi <simon.marchi@ericsson.com>
5325
5326 PR gdb/23374
5327 PR gdb/23375
5328 * server.h (struct client_state) <disable_randomization>:
5329 Initialize to 1.
5330
53312018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5332
5333 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
5334 variable.
5335 (mips_supply_ptrace_register): Likewise.
5336
53372018-07-22 Tom Tromey <tom@tromey.com>
5338
5339 * configure: Rebuild.
5340
53412018-07-22 Tom Tromey <tom@tromey.com>
5342
5343 * win32-low.c (win32_create_inferior): Remove unused variables.
5344 * gdbreplay.c (remote_open): Remove unused variable.
5345 * remote-utils.c (remote_prepare): Remove unused variable.
5346 * x86-tdesc.h (X86_TDESC_H): Define.
5347 (amd64_expedite_regs): Define conditionally.
5348 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
5349 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
5350 * remote-utils.c (readchar): Remove unused variable.
5351
53522018-07-13 Pedro Alves <palves@redhat.com>
5353
5354 * linux-low.c (linux_kill): Change parameter to process_info
5355 pointer instead of pid. Adjust.
5356 * lynx-low.c (lynx_kill): Likewise.
5357 * nto-low.c (nto_kill): Likewise.
5358 * spu-low.c (spu_kill): Likewise.
5359 * win32-low.c (win32_kill): Likewise.
5360 * server.c (handle_v_kill, kill_inferior_callback)
5361 (detach_or_kill_for_exit): Adjust.
5362 * target.c (kill_inferior): Change parameter to process_info
5363 pointer instead of pid. Adjust.
5364 * target.h (struct target_ops) <kill>: Change parameter to
5365 process_info pointer instead of pid. Adjust all implementations
5366 and callers.
5367 (kill_inferior): Likewise.
5368
53692018-07-13 Pedro Alves <palves@redhat.com>
5370
5371 * linux-low.c (linux_detach, linux_join): Change parameter to
5372 process_info pointer instead of pid. Adjust.
5373 * lynx-low.c (lynx_detach, lynx_join): Likewise.
5374 * nto-low.c (nto_detach): Likewise.
5375 * spu-low.c (spu_detach, spu_join): Likewise.
5376 * win32-low.c (win32_detach, win32_join): Likewise.
5377 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
5378 * target.h (struct target_ops) <detach, join>: Change parameter to
5379 process_info pointer instead of pid. Adjust all implementations
5380 and callers.
5381 (detach_inferior, join_inferior): Rename 'pid' parameter to
5382 'proc'.
5383
53842018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
5385 Jan Kratochvil <jan.kratochvil@redhat.com>
5386 Paul Fertser <fercerpav@gmail.com>
5387 Tsutomu Seki <sekiriki@gmail.com>
5388
5389 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
5390 (OBS): Add 'common/netstuff.o'.
5391 (GDBREPLAY_OBS): Likewise.
5392 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
5393 (remote_open): Implement support for IPv6
5394 connections.
5395 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
5396 and 'wspiapi.h'.
5397 (handle_accept_event): Accept connections from IPv6 sources.
5398 (remote_prepare): Handle IPv6-style hostnames; implement
5399 support for IPv6 connections.
5400 (remote_open): Implement support for printing connections from
5401 IPv6 sources.
5402
54032018-07-11 Pedro Alves <palves@redhat.com>
5404
5405 PR gdb/23377
5406 * mem-break.c (any_persistent_commands): Add process_info
5407 parameter and use it instead of relying on the current process.
5408 Change return type to bool.
5409 * mem-break.h (any_persistent_commands): Add process_info
5410 parameter and change return type to bool.
5411 * server.c (handle_detach): Remove require_running_or_return call.
5412 Look up the process_info for the process we're about to detach.
5413 If not found, return back error to GDB. Adjust
5414 any_persistent_commands call to pass down a process pointer.
5415
54162018-07-11 Pedro Alves <palves@redhat.com>
5417
5418 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
5419 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
5420 instead of collect_register_by_name.
5421 * regcache.c (regcache_raw_get_unsigned_by_name): New.
5422 * regcache.h (regcache_raw_get_unsigned_by_name): New.
5423
54242018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
5425 Pedro Alves <palves@redhat.com>
5426
5427 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
5428
54292018-07-03 Tom Tromey <tom@tromey.com>
5430
5431 * linux-low.c: Update.
5432 * lynx-low.c: Update.
5433 * mem-break.c: Update.
5434 * nto-low.c: Update.
5435 * remote-utils.c: Update.
5436 * server.c: Update.
5437 * spu-low.c: Update.
5438 * target.c: Update.
5439 * win32-low.c: Update.
5440
54412018-07-03 Tom Tromey <tom@tromey.com>
5442
5443 * server.c: Update.
5444
54452018-07-03 Tom Tromey <tom@tromey.com>
5446
5447 * linux-low.c: Update.
5448
54492018-07-03 Tom Tromey <tom@tromey.com>
5450
5451 * target.c: Update.
5452
54532018-07-03 Tom Tromey <tom@tromey.com>
5454
5455 * linux-low.c: Update.
5456 * linux-mips-low.c: Update.
5457 * lynx-low.c: Update.
5458 * nto-low.c: Update.
5459 * remote-utils.c: Update.
5460 * server.c: Update.
5461 * spu-low.c: Update.
5462 * target.c: Update.
5463 * thread-db.c: Update.
5464
54652018-07-03 Tom Tromey <tom@tromey.com>
5466
5467 * linux-low.c: Update.
5468 * linux-mips-low.c: Update.
5469 * lynx-low.c: Update.
5470 * mem-break.c: Update.
5471 * nto-low.c: Update.
5472 * remote-utils.c: Update.
5473 * server.c: Update.
5474 * spu-low.c: Update.
5475 * target.c: Update.
5476 * tracepoint.c: Update.
5477
54782018-07-03 Tom Tromey <tom@tromey.com>
5479
5480 * linux-low.c: Update.
5481 * linux-ppc-low.c: Update.
5482 * linux-x86-low.c: Update.
5483 * proc-service.c: Update.
5484 * server.c: Update.
5485 * spu-low.c: Update.
5486 * thread-db.c: Update.
5487 * win32-low.c: Update.
5488
54892018-07-03 Tom Tromey <tom@tromey.com>
5490
5491 * linux-low.c: Update.
5492 * lynx-low.c: Update.
5493 * nto-low.c: Update.
5494 * remote-utils.c: Update.
5495 * spu-low.c: Update.
5496 * thread-db.c: Update.
5497 * win32-low.c: Update.
5498
54992018-06-29 Joel Brobecker <brobecker@adacore.com>
5500
5501 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
5502 parameter in call to 'amd64_create_target_description'.
5503
55042018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5505
5506 * x86-tdesc.h: Remove executable permission flag.
5507
55082018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5509
5510 * configure.ac: Remove AC_PREREQ, add missing quoting.
5511 * configure: Re-generate.
5512 * config.in: Re-generate.
5513 * aclocal.m4: Re-generate.
5514
55152018-06-18 Simon Marchi <simon.marchi@ericsson.com>
5516
5517 * tracepoint.h (current_traceframe): Remove declaration.
5518
55192018-06-18 Alan Hayward <alan.hayward@arm.com>
5520
5521 * linux-aarch64-low.c (is_sve_tdesc): New function.
5522 (aarch64_sve_regs_copy_to_regcache): Likewise.
5523 (aarch64_sve_regs_copy_from_regcache): Likewise.
5524 (aarch64_regs_info): Add SVE checks.
5525 (initialize_low_arch): Initialize SVE.
5526
55272018-06-18 Alan Hayward <alan.hayward@arm.com>
5528
5529 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
5530
55312018-06-11 Alan Hayward <alan.hayward@arm.com>
5532
5533 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
5534 (initialize_low_tracepoint): Likewise
5535 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
5536 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
5537 param.
5538 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
5539 checks.
5540 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
5541
55422018-06-11 Alan Hayward <alan.hayward@arm.com>
5543
5544 * server.h (PBUFSIZ): Increase size
5545
55462018-06-11 Alan Hayward <alan.hayward@arm.com>
5547
5548 * regcache.c (regcache::raw_compare): New function.
5549 * regcache.h (regcache::raw_compare): New declaration.
5550
55512018-06-11 Alan Hayward <alan.hayward@arm.com>
5552
5553 * regcache.c (new_register_cache): Use new.
5554 (free_register_cache): Use delete.
5555 (register_data): Use const.
5556 (supply_register): Move body inside regcache.
5557 (regcache::raw_supply): New override function.
5558 (collect_register): Move body inside regcache.
5559 (regcache::raw_collect): New override function.
5560 (regcache::get_register_status): New override function.
5561 * regcache.h (struct regcache): Inherit from reg_buffer_common.
5562
55632018-06-09 Tom Tromey <tom@tromey.com>
5564
5565 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
5566 declare queue.
5567 (event_queue): Use std::queue.
5568 (gdb_event_xfree): Remove.
5569 (initialize_event_loop, process_event, wait_for_event): Update.
5570
55712018-06-08 Stan Cox <scox@redhat.com>
5572
5573 * win32-low.c (win32_create_inferior): last_ptid and last_status
5574 moved to client_state.
5575
55762018-06-08 Pedro Alves <palves@redhat.com>
5577
5578 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
5579 common/common-exceptions.o, common/common-utils.o,
5580 common/errors.o, common/print-utils.o and utils.o.
5581 * gdbreplay.c: Include "common-defs.h" instead of the two
5582 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
5583 string.h or alloca.h.
5584 (perror_with_name): Delete.
5585 (remote_open): Use xstrdup instead of strdup.
5586 (main): Rename to ...
5587 (captured_main): ... this.
5588 (main): New.
5589
55902018-06-08 Tom Tromey <tom@tromey.com>
5591
5592 * linux-low.c (linux_low_read_btrace): Update.
5593
55942018-06-04 Stan Cox <scox@redhat.com>
5595
5596 * server.h (struct client_state): New.
5597 * server.c (cont_thread, general_thread, multi_process)
5598 (report_fork_events, report_vfork_events, report_exec_events)
5599 (report_thread_events, swbreak_feature, hwbreak_feature)
5600 (vCont_supported, disable_randomization, pass_signals)
5601 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
5602 Moved to client_state.
5603 * remote-utils.c (remote_debug, noack_mode)
5604 (transport_is_reliable): Moved to client_state.
5605 * tracepoint.c (current_traceframe): Moved to client_state.
5606
5607 Update all callers.
5608 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
5609 linux-low.c, remote-utils.h, target.c: Use client_state.
5610
56112018-05-31 Alan Hayward <alan.hayward@arm.com>
5612
5613 * configure.srv: Add new c/h file.
5614
56152018-05-31 Alan Hayward <alan.hayward@arm.com>
5616
5617 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
5618 null VQ.
5619
56202018-05-25 Maciej W. Rozycki <macro@mips.com>
5621
5622 * gdb.arch/mips-fpregset-core.exp: New test.
5623 * gdb.arch/mips-fpregset-core.c: New test source.
5624
56252018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
5626
5627 PR server/23198
5628 * hostio.c (require_int): Do not report overflow for integers
5629 between 0xfffffff and 0x7fffffff.
5630
56312018-05-22 Maciej W. Rozycki <macro@mips.com>
5632
5633 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
5634 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
5635 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
5636 functions.
5637 (the_low_target): Wire them.
5638
56392018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5640
5641 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
5642 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
5643 mode. Call collect_register_by_name with vscr using
5644 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
5645 (ppc_store_vrregset): Add and set vscr_offset variable as in
5646 ppc_fill_vrregset. Call supply_register_by_name with vscr using
5647 vscr_offset.
5648
56492018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5650
5651 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
5652 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
5653 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
5654
56552018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5656
5657 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
5658 (ppc_store_vsxregset): Likewise.
5659 (ppc_fill_vrregset): Likewise.
5660 (ppc_store_vrregset): Likewise.
5661 (ppc_fill_evrregset): Likewise.
5662 (ppc_store_evrregset): Likewise.
5663 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
5664 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
5665 needed.
5666
56672018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5668
5669 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
5670 wordsize of the inferior. Call ppc_linux_target_wordsize.
5671
56722018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5673
5674 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
5675 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
5676 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
5677 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
5678 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
5679 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
5680 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
5681 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
5682 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
5683 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
5684 (tdesc_powerpc_e500l): Remove.
5685 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
5686 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
5687 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
5688 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
5689 linux-ppc-tdesc.h.
5690 (ppc_arch_setup): Remove target description matching code. Fill a
5691 ppc_linux_features struct and call ppc_linux_match_description
5692 with it.
5693
56942018-05-22 Maciej W. Rozycki <macro@mips.com>
5695
5696 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
5697 width of the requested register exceeds the width of the
5698 `ptrace' data type.
5699 (mips_cannot_store_register): Likewise.
5700
57012018-05-21 Maciej W. Rozycki <macro@mips.com>
5702
5703 * linux-mips-low.c (mips_fetch_register): New function. Update
5704 preceding comment.
5705 (mips_store_gregset): Supply 0 rather than $restart for $zero.
5706 (the_low_target): Wire `mips_fetch_register'.
5707
57082018-05-10 Joel Brobecker <brobecker@adacore.com>
5709
5710 * lynx-i386-low.c (LYNXOS_178): New macro.
5711 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
5712 the layout on LynxOS-178.
5713 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
5714 handle floating point registers that are not supported by
5715 LynxOS-178.
5716
57172018-05-10 Tom Tromey <tom@tromey.com>
5718
5719 * configure: Rebuild.
5720
57212018-05-10 Joel Brobecker <brobecker@adacore.com>
5722
5723 PR server/23158:
5724 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
5725 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
5726 Use it to set the expedite_regs field in the given tdesc.
5727 * x86-tdesc.h: New file.
5728 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
5729 Adjust following the addition of the new expedite_regs parameter
5730 to init_target_desc.
5731 * linux-tic6x-low.c (tic6x_read_description): Likewise.
5732 * linux-x86-tdesc.c: #include "x86-tdesc.h".
5733 (i386_linux_read_description, amd64_linux_read_description):
5734 Adjust following the addition of the new expedite_regs parameter
5735 to init_target_desc.
5736 * lynx-i386-low.c: #include "x86-tdesc.h".
5737 (lynx_i386_arch_setup): Adjust following the addition of the new
5738 expedite_regs parameter to init_target_desc.
5739 * nto-x86-low.c: #include "x86-tdesc.h".
5740 (nto_x86_arch_setup): Adjust following the addition of the new
5741 expedite_regs parameter to init_target_desc.
5742 * win32-i386-low.c: #include "x86-tdesc.h".
5743 (i386_arch_setup): Adjust following the addition of the new
5744 expedite_regs parameter to init_target_desc.
5745
57462018-05-10 Joel Brobecker <brobecker@adacore.com>
5747
5748 PR server/23158:
5749 * win32-low.c (win32_create_inferior): Add call to my_wait
5750 setting last_status global.
5751
57522018-05-10 Joel Brobecker <brobecker@adacore.com>
5753
5754 PR server/23158:
5755 * win32-low.c (create_process): Only call gdb_tilde_expand if
5756 inferior_cwd is not NULL.
5757
57582018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
5759
5760 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
5761 registers to the cache if their values have changed.
5762 (i387_xsave_to_cache): Provide default values for x87 control
5763 registers when these features are available, but disabled.
5764 * regcache.c (supply_register_by_name_zeroed): New function.
5765 * regcache.h (supply_register_by_name_zeroed): Declare new
5766 function.
5767
57682018-05-07 Tom Tromey <tom@tromey.com>
5769
5770 * configure: Rebuild.
5771
57722018-05-04 Tom Tromey <tom@tromey.com>
5773
5774 * configure: Rebuild.
5775
57762018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5777 Pedro Alves <palves@redhat.com>
5778
5779 * linux-aarch64-low.c (aarch64_stopped_data_address):
5780 Likewise.
5781
57822018-04-27 Tom Tromey <tom@tromey.com>
5783
5784 * configure: Rebuild.
5785
57862018-04-23 Tom Tromey <tom@tromey.com>
5787
5788 * configure: Rebuild.
5789
57902018-04-19 Simon Marchi <simon.marchi@ericsson.com>
5791
5792 * Makefile.in (depcomp): Add "..".
5793 (all_deps_files): New and use it.
5794
57952018-04-18 Alan Hayward <alan.hayward@arm.com>
5796
5797 * configure.srv (aarch64*-*-linux*): Don't include xml.
5798 (i[34567]86-*-cygwin*): Likewise.
5799 (i[34567]86-*-linux*): Likewise.
5800 (i[34567]86-*-lynxos*): Likewise.
5801 (i[34567]86-*-mingw32ce*): Likewise.
5802 (i[34567]86-*-mingw*): Likewise.
5803 (i[34567]86-*-nto*): Likewise.
5804 (tic6x-*-uclinux): Likewise.
5805 (x86_64-*-linux*): Likewise.
5806 (x86_64-*-mingw*): Likewise.
5807 (x86_64-*-cygwin*): Likewise.
5808
58092018-04-18 Alan Hayward <alan.hayward@arm.com>
5810
5811 * tdesc.c: Remove xml parameter.
5812
58132018-04-18 Alan Hayward <alan.hayward@arm.com>
5814
5815 * server.c (get_features_xml): Remove cast.
5816 * tdesc.c (void target_desc::accept): Fill in function.
5817 (tdesc_get_features_xml): Remove old xml creation.
5818 (print_xml_feature::visit_pre): Add xml vistor.
5819 * tdesc.h (struct target_desc): Make xmltarget mutable.
5820 (tdesc_get_features_xml): Remove declaration.
5821
58222018-04-18 Alan Hayward <alan.hayward@arm.com>
5823
5824 * tdesc.c (tdesc_architecture_name): Add new function.
5825 (tdesc_osabi_name): Likewise.
5826 (tdesc_get_features_xml): Use new functions.
5827
58282018-04-18 Alan Hayward <alan.hayward@arm.com>
5829
5830 * tdesc.c (tdesc_create_flags): Remove.
5831 (tdesc_add_flag): Likewise.
5832 (tdesc_named_type): Likewise.
5833 (tdesc_create_union): Likewise.
5834 (tdesc_create_struct): Likewise.
5835 (tdesc_create_vector): Likewise.
5836 (tdesc_add_bitfield): Likewise.
5837 (tdesc_add_field): Likewise.
5838 (tdesc_set_struct_size): Likewise.
5839
58402018-04-18 Alan Hayward <alan.hayward@arm.com>
5841
5842 * tdesc.c (~target_desc): Remove implictly deleted items.
5843 (init_target_desc): Iterate all features.
5844 (tdesc_get_features_xml): Use vector.
5845 (tdesc_create_feature): Create feature.
5846 * tdesc.h (tdesc_feature) Remove
5847 (target_desc): Add features.
5848
58492018-04-18 Alan Hayward <alan.hayward@arm.com>
5850
5851 * Makefile.in: Add common/tdesc.c
5852 * tdesc.c (init_target_desc): init all reg_defs from register
5853 vector.
5854 (tdesc_create_reg): Create tdesc_reg.
5855 * tdesc.h (tdesc_feature): Add register vector.
5856
58572018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
5858
5859 * tdesc.h (struct target_desc) <features>: Change type to
5860 std::vector<std::string>.
5861 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
5862 changes.
5863 (tdesc_get_features_xml): Likewise.
5864 (tdesc_create_feature): Likewise.
5865
58662018-03-26 Alan Hayward <alan.hayward@arm.com>
5867
5868 * regcache.c (find_register_by_number): Return a ref.
5869 (find_regno): Use references.
5870 (register_size): Likewise.
5871 (register_data): Likewise.
5872 * tdesc.c (target_desc::~target_desc): Remove free calls.
5873 (target_desc::operator==): Use std::vector compare.
5874 (init_target_desc): Use reference.
5875 (tdesc_create_reg): Use reg constructors.
5876 * tdesc.h (struct target_desc): Replace pointer with object.
5877
58782018-03-23 Alan Hayward <alan.hayward@arm.com>
5879
5880 * regcache.c (find_register_by_number): Make static.
5881 (find_regno): Use find_register_by_number
5882 * regcache.h (struct reg): Remove declaration.
5883
58842018-03-23 Alan Hayward <alan.hayward@arm.com>
5885
5886 * tdesc.c (target_desc::~target_desc): Move to here.
5887 (target_desc::operator==): Likewise.
5888 * tdesc.h (target_desc::~target_desc): Move from here.
5889 (target_desc::operator==): Likewise.
5890
58912018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
5892
5893 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
5894
58952018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5896
5897 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
5898 S390_TDESC_GS.
5899 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
5900 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
5901 and init_registers_s390_gs_linux64.
5902
59032018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5904
5905 * linux-s390-low.c (s390_fill_gs): Remove function.
5906 (s390_fill_gsbc): Remove function.
5907 (s390_regsets): Set fill functions for the guarded storage regsets
5908 to NULL.
5909
59102018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5911
5912 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
5913 the word size. Add comment.
5914 (s390_get_wordsize): New function.
5915 (s390_arch_setup): No longer select a temporary tdesc to fetch the
5916 pswm with it. Instead, use s390_get_wordsize to determine the
5917 word size first and derive the correct tdesc from that directly.
5918
59192018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
5920
5921 * Makefile.in: Include silent-rules.mk.
5922 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
5923 (COMPILE): Add ECHO_CXX.
5924 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
5925 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
5926 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
5927 (version-generated.c): Add ECHO_GEN.
5928 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
5929 (IPAGENT_COMPILE): Add ECHO_CXX.
5930 (%-generated.c): Add ECHO_REGDAT.
5931
59322018-03-14 Tom Tromey <tom@tromey.com>
5933
5934 PR cli/14977:
5935 * ax.c (ax_printf): Special case for NULL.
5936
59372018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
5938
5939 * linux-low.c (linux_qxfer_libraries_svr4): Use
5940 xml_escape_text_append.
5941
59422018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
5943
5944 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
5945
59462018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5947
5948 * server.c (handle_general_set): Remove unnecessary xstrdup.
5949
59502018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5951
5952 * server.c (parse_debug_format_options): Adjust to
5953 delim_string_to_char_ptr_vec changes.
5954 * thread-db.c (thread_db_load_search): Adjust to
5955 dirnames_to_char_ptr_vec changes.
5956
59572018-03-01 Markus Metzger <markus.t.metzger@intel.com>
5958
5959 * target.h (target_enable_btrace, target_disable_btrace)
5960 (target_read_btrace, target_read_btrace_conf): Turn macro into
5961 inline function. Throw error if target method is not defined.
5962 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
5963 check for btrace target method. Be prepared to handle exceptions
5964 from btrace target methods.
5965
59662018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5967
5968 * server.c (captured_main): Change order of error message printed
5969 when the current working directory cannot be found.
5970
59712018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5972
5973 * server.c: Include "filenames.h" and "pathstuff.h".
5974 (program_name): Delete variable.
5975 (program_path): New anonymous class.
5976 (get_exec_wrapper): Use "program_path" instead of
5977 "program_name".
5978 (handle_v_run): Likewise.
5979 (captured_main): Likewise.
5980 (process_serial_event): Likewise.
5981
59822018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5983
5984 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
5985 (OBJS): Add "pathstuff.o".
5986 * server.c (current_directory): New global variable.
5987 (captured_main): Initialize "current_directory".
5988
59892018-02-26 Alan Hayward <alan.hayward@arm.com>
5990
5991 * tdesc.c: Use common/tdesc.h.
5992 * tdesc.h: Likewise.
5993
59942018-02-20 Alan Hayward <alan.hayward@arm.com>
5995 Simon Marchi <simon.marchi@ericsson.com>
5996
5997 * Makefile.in: Switch order of make rules.
5998
59992018-02-19 Alan Hayward <alan.hayward@arm.com>
6000
6001 * Makefile.in: Add common directory in build.
6002 * configure.ac: Add common reference.
6003 * configure: Regenerate.
6004
60052018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6006
6007 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
6008 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
6009 * spu-low.c (spu_target_ops): Likewise.
6010 * win32-low.c (win32_target_ops): Likewise.
6011 * server.c (supported_btrace_packets): Report packets unconditionally.
6012 * target.h (target_ops) <supports_btrace>: Remove.
6013 (target_supports_btrace): Remove.
6014
60152018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6016
6017 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
6018 (handle_btrace_disable): Change return type to void. Use exceptions
6019 to report errors.
6020 (handle_btrace_general_set): Catch exception and copy message to
6021 return message.
6022
60232018-02-08 Tom Tromey <tom@tromey.com>
6024
6025 * linux-low.c (install_software_single_step_breakpoints): Use
6026 make_scoped_restore.
6027 * inferiors.c (make_cleanup_restore_current_thread): Remove.
6028 (do_restore_current_thread_cleanup): Remove.
6029 * gdbthread.h (make_cleanup_restore_current_thread): Don't
6030 declare.
6031
60322018-02-08 Tom Tromey <tom@tromey.com>
6033
6034 * mem-break.c (set_raw_breakpoint_at): Use
6035 gdb::unique_xmalloc_ptr.
6036
60372018-01-30 Pedro Alves <palves@redhat.com>
6038
6039 PR gdb/13211
6040 * target.c (target_terminal::terminal_state): Rename to ...
6041 (target_terminal::m_terminal_state): ... this.
6042
60432018-01-19 James Clarke <jrtc27@jrtc27.com>
6044
6045 * linux-low.c (handle_extended_wait): Surround call to
6046 thread_db_notice_clone with #ifdef USE_THREAD_DB.
6047
60482018-01-17 Simon Marchi <simon.marchi@ericsson.com>
6049
6050 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
6051 linux_ptrace_attach_fail_reason_string now returning an
6052 std::string.
6053 (linux_attach): Likewise.
6054 * thread-db.c (attach_thread): Likewise.
6055
60562018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
6057
6058 PR gdb/21559
6059 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
6060 checking for fs_base/gs_base fields in struct user_regs_struct.
6061 * configure: Regenerate.
6062
60632018-01-16 Yao Qi <yao.qi@linaro.org>
6064
6065 PR gdb/18749
6066 * linux-low.c (fetch_register): Call supply_register instead of
6067 error.
6068
60692018-01-08 Yao Qi <yao.qi@linaro.org>
6070 Simon Marchi <simon.marchi@ericsson.com>
6071
6072 * Makefile.in (OBS): Remove selftest.o.
6073 * configure.ac: Set srv_selftest_objs if $development is true.
6074 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
6075 * configure: Re-generated.
6076 * server.c (captured_main): Wrap variable selftest_filter with
6077 GDB_SELF_TEST.
6078
60792018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
6080
6081 * server.c (parse_debug_format_options): Return std::string.
6082 (handle_monitor_command, captured_main): Adjust.
6083
60842018-01-05 Pedro Alves <palves@redhat.com>
6085
6086 PR gdb/18653
6087 * server.c (captured_main): Pass quiet=false to
6088 save_original_signals_state.
6089
60902018-01-01 Joel Brobecker <brobecker@adacore.com>
6091
6092 * gdbreplay.c (gdbreplay_version): Update copyright year in
6093 version message.
6094 * server.c (gdbserver_version): Likewise.
6095
60962017-12-08 Tom Tromey <tom@tromey.com>
6097
6098 * ax.c (ax_printf): Update.
6099
61002017-12-07 Yao Qi <yao.qi@linaro.org>
6101
6102 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
6103 aarch64_linux_read_description.
6104 * linux-amd64-ipa.c (idx2mask): New array.
6105 (get_ipa_tdesc): Move idx2mask out.
6106 (initialize_low_tracepoint): Initialize target descriptions.
6107 * linux-i386-ipa.c (idx2mask): New array.
6108 (get_ipa_tdesc): Move idx2mask out.
6109 (initialize_low_tracepoint): Initialize target descriptions.
6110
61112017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
6112
6113 * tdesc.c (struct tdesc_type): Change return type.
6114 (tdesc_add_flag): Change parameter type.
6115 (tdesc_add_bitfield): Likewise.
6116 (tdesc_add_field): Likewise.
6117 (tdesc_set_struct_size): Likewise.
6118
61192017-12-05 Simon Marchi <simon.marchi@ericsson.com>
6120
6121 * regcache.c (registers_to_string): Remove unused variable.
6122
61232017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6124
6125 * inferiors.c (for_each_inferior_with_data): Remove.
6126 * inferiors.h (for_each_inferior_with_data): Remove.
6127 * server.c (handle_qxfer_threads_worker): Change parameter type.
6128 (handle_qxfer_threads_proper): Use for_each_thread.
6129
61302017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6131
6132 * inferiors.c (for_each_inferior): Remove.
6133 (clear_inferiors): Use for_each_thread.
6134 * inferiors.h (for_each_inferior): Remove.
6135 * linux-low.c (linux_wait_for_event_filtered): Use
6136 for_each_thread.
6137 (linux_stabilize_threads): Likewise.
6138 * regcache.c (regcache_release): Likewise.
6139 * server.c (gdb_wants_all_threads_stopped): Likewise.
6140 (clear_pending_status_callback): Remove.
6141 (handle_status): Use for_each_thread.
6142 (captured_main): Likewise.
6143 * win32-low.c (child_init_thread_list): Likewise.
6144 (win32_clear_inferiors): Likewise.
6145 (fake_breakpoint_event): Likewise.
6146
61472017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6148
6149 * inferiors.h (find_inferior): Remove.
6150 * inferiors.c (find_inferior): Remove.
6151
61522017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6153
6154 * linux-low.c (resume_status_pending_p): Update comment.
6155 (need_step_over_p): Update comment.
6156
61572017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6158
6159 * linux-low.c (proceed_one_lwp): Return void, change parameter
6160 type.
6161 (unsuspend_and_proceed_one_lwp): Likewise.
6162 (proceed_all_lwps): Use for_each_thread.
6163 (unstop_all_lwps): Likewise.
6164
61652017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6166
6167 * linux-low.c (linux_resume_one_thread): Return void, take
6168 parameter directly.
6169 (linux_resume): Use for_each_thread.
6170
61712017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6172
6173 * linux-low.c (send_sigstop_callback): Return void, change
6174 parameter type. Rename to...
6175 (send_sigstop): ... this.
6176 (suspend_and_send_sigstop_callback): Return void, change parameter
6177 type. Rename to...
6178 (suspend_and_send_sigstop): ... this.
6179 (stop_all_lwps): Use for_each_thread.
6180
61812017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6182
6183 * linux-low.c (lwp_running): Return bool, remove unused
6184 argument.
6185 (linux_stabilize_threads): Use find_thread.
6186
61872017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6188
6189 * linux-low.c (select_singlestep_lwp_callback): Remove.
6190 (count_events_callback): Remove.
6191 (select_event_lwp_callback): Remove.
6192 (select_event_lwp): Use find_thread/for_each_thread.
6193
61942017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6195
6196 * linux-low.c (not_stopped_callback): Return bool, take filter
6197 argument directly.
6198 (linux_wait_for_event_filtered): Use find_thread.
6199 (linux_wait_1): Likewise.
6200
62012017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6202
6203 * linux-low.c (same_lwp): Remove.
6204 (find_lwp_pid): Use find_thread.
6205
62062017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6207
6208 * linux-low.c (delete_lwp_callback): Remove.
6209 (linux_mourn): Use for_each_thread.
6210
62112017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6212
6213 * linux-low.c (linux_detach_lwp_callback): Return void, remove
6214 args parameter, don't check for pid.
6215 (linux_detach): Use for_each_thread.
6216
62172017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6218
6219 * linux-low.c (struct counter): Remove.
6220 (second_thread_of_pid_p): Remove.
6221 (last_thread_of_process_p): Use find_thread.
6222
62232017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6224
6225 * inferiors.c (find_inferior_in_random): Remove.
6226 * inferiors.h (find_inferior_in_random): Remove.
6227 * linux-low.c (status_pending_p_callback): Return bool, accept
6228 parameter ptid directly.
6229 (linux_wait_for_event_filtered): Use find_thread_in_random.
6230 (linux_wait_1): Likewise.
6231
62322017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6233
6234 * inferiors.c (find_inferior_id): Remove.
6235 (find_thread_ptid): Move implemention from find_inferior_id to
6236 here.
6237 * inferiors.h (find_inferior_id): Remove.
6238 * server.c (handle_status): Use find_thread_ptid.
6239 (process_serial_event): Likewise.
6240 * thread-db.c (find_one_thread): Likewise.
6241 (thread_db_thread_handle): Likewise.
6242 * win32-low.c (thread_rec): Likewise.
6243 (child_delete_thread): Likewise.
6244 (win32_thread_alive): Likewise.
6245 (get_child_debug_event): Likewise.
6246
62472017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6248
6249 * linux-mips-low.c (update_watch_registers_callback): Return
6250 void, remove pid_p parameter, don't check for pid.
6251 (mips_insert_point, mips_remove_point): Use for_each_thread.
6252
62532017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6254
6255 * lynx.low (lynx_delete_thread_callback): Remove.
6256 (lynx_mourn): Use for_each_thread.
6257
62582017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6259
6260 * regcache.c (regcache_invalidate_one): Remove.
6261 (regcache_invalidate_pid): use for_each_thread.
6262
62632017-11-26 Tom Tromey <tom@tromey.com>
6264
6265 * linux-low.c (linux_create_inferior): Update.
6266
62672017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
6268
6269 * spu-low.c (spu_create_inferior): Fix typo in argument name.
6270
62712017-11-24 Alan Hayward <alan.hayward@arm.com>
6272
6273 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
6274 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6275 * linux-aarch64-tdesc-selftest.c: New file.
6276 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6277
62782017-11-24 Alan Hayward <alan.hayward@arm.com>
6279
6280 * configure.srv: Add new file.
6281 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6282 * linux-aarch64-tdesc-selftest.c: New file.
6283 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6284
62852017-11-24 Alan Hayward <alan.hayward@arm.com>
6286
6287 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
6288 * linux-aarch64-low.c (initialize_low_arch): Remove init.
6289 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
6290
62912017-11-24 Alan Hayward <alan.hayward@arm.com>
6292
6293 * configure.srv: Add new files.
6294 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
6295 aarch64_linux_read_description.
6296 * linux-aarch64-low.c (aarch64_linux_read_description):
6297 Merge with aarch64_arch_setup.
6298 (aarch64_arch_setup): Call aarch64_linux_read_description.
6299 * linux-aarch64-tdesc.c: New file.
6300 * linux-aarch64-tdesc.h: New file.
6301
63022017-11-24 Yao Qi <yao.qi@linaro.org>
6303
6304 * configure.srv: Set $srv_regobj for tic6x-linux.
6305 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
6306 (tic6x_read_description): Move some code to tic6x_arch_setup.
6307 (tic6x_tdesc_test): New function.
6308 (initialize_low_arch): Call selftests::register_test.
6309
63102017-11-22 Yao Qi <yao.qi@linaro.org>
6311
6312 * remote-utils.c (prepare_resume_reply): Use memcpy.
6313
63142017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6315
6316 * linux-low.c (kill_one_lwp_callback): Return void, take
6317 argument directly, don't filter on pid.
6318 (linux_kill): Use for_each_thread.
6319
63202017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6321
6322 * linux-low.c (need_step_over_p): Return bool, remove dummy
6323 argument.
6324 (linux_resume, proceed_all_lwps): Use find_thread.
6325
63262017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6327
6328 * linux-low.c (resume_status_pending_p): Return bool, remove
6329 flag_p argument.
6330 (linux_resume): Use find_thread.
6331
63322017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6333
6334 * linux-low.c (struct thread_resume_array): Remove.
6335 (linux_set_resume_request): Return void, take arguments
6336 directly.
6337 (linux_resume): Use for_each_thread.
6338
63392017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6340
6341 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
6342 return bool, remove data argument.
6343 (linux_stabilize_threads): Use find_thread.
6344
63452017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6346
6347 * linux-low.c (unsuspend_one_lwp): Remove.
6348 (unsuspend_all_lwps): Use for_each_thread, inline code from
6349 unsuspend_one_lwp.
6350
63512017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6352
6353 * gdbthread.h (find_thread): Add overload with ptid_t filter.
6354 * linux-low.c (struct iterate_over_lwps_args): Remove.
6355 (iterate_over_lwps_filter): Remove.
6356 (iterate_over_lwps): Use find_thread.
6357
63582017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6359
6360 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
6361 (linux_handle_new_gdb_connection): Use for_each_thread, inline
6362 code from reset_lwp_ptrace_options_callback.
6363
63642017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6365
6366 * linux-arm-low.c (struct update_registers_data): Remove.
6367 (update_registers_callback): Return void, take arguments
6368 directly, don't check thread's pid.
6369 (arm_insert_point, arm_remove_point): Use for_each_thread.
6370
63712017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6372
6373 * win32-low.c (continue_one_thread): Return void, take argument
6374 directly.
6375 (child_continue): Use for_each_thread.
6376
63772017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6378
6379 * win32-i386-low.c (update_debug_registers_callback): Rename
6380 to ...
6381 (update_debug_registers): ... this, return void, remove pid_p arg.
6382 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
6383
63842017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
6385
6386 * inferiors.h (struct process_info): Add constructor, initialize
6387 fields..
6388 <syscalls_to_catch>: Change type to std::vector<int>.
6389 * inferiors.c (add_process): Allocate process_info with new.
6390 (remove_process): Free process_info with delete.
6391 * linux-low.c (handle_extended_wait): Adjust.
6392 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
6393 * server.c (handle_general_set): Adjust.
6394
63952017-11-16 Pedro Alves <palves@redhat.com>
6396
6397 * remote-utils.c (remote_close): Block SIGIO signals instead of
6398 uninstalling the SIGIO handler.
6399
64002017-11-16 Alan Hayward <alan.hayward@arm.com>
6401
6402 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
6403
64042017-11-16 Yao Qi <yao.qi@linaro.org>
6405
6406 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
6407 (tic6x_store_gregset): Likewise.
6408 (tic6x_usrregs_info): Move it up.
6409
64102017-11-15 Alan Hayward <alan.hayward@arm.com>
6411
6412 * Makefile.in: Update arch rules.
6413 * configure.srv: Explicitly mark arch/ files.
6414
64152017-11-13 Andreas Schwab <schwab@suse.de>
6416
6417 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
6418 function.
6419 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6420
64212017-11-06 Pedro Alves <palves@redhat.com>
6422
6423 * config.in, configure: Regenerate.
6424
64252017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6426
6427 * target.c (struct thread_search): Remove.
6428 (thread_search_callback): Remove.
6429 (prepare_to_access_memory): Use for_each_thread instead of
6430 find_inferior. Inline code from thread_search_callback.
6431
64322017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6433
6434 * server.c (struct visit_actioned_threads_data): Remove.
6435 (visit_actioned_threads): Change prototype to take arguments
6436 directly.
6437 (resume): Use find_thread instead of find_inferior.
6438
64392017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6440
6441 * server.c (queue_stop_reply_callback): Change prototype, return
6442 void.
6443 (find_status_pending_thread_callback): Remove.
6444 (handle_status): Replace find_inferior with find_thread and
6445 for_each_thread.
6446
64472017-10-25 Alan Hayward <alan.hayward@arm.com>
6448
6449 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
6450 with REGNO.
6451 (aarch64_store_gregset): Likewise.
6452 (aarch64_fill_fpregset): Likewise.
6453 (aarch64_store_fpregset): Likewise.
6454
64552017-10-21 Simon Marchi <simon.marchi@ericsson.com>
6456
6457 * gdbthread.h (find_thread, for_each_thread): New functions.
6458 * inferiors.c (thread_of_pid): Remove.
6459 (find_any_thread_of_pid): Use find_thread.
6460 * linux-low.c (num_lwps): Use for_each_thread.
6461
64622017-10-17 Yao Qi <yao.qi@linaro.org>
6463
6464 * Makefile.in: Remove one rule.
6465 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
6466
64672017-10-17 Yao Qi <yao.qi@linaro.org>
6468
6469 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
6470 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
6471
64722017-10-17 Yao Qi <yao.qi@linaro.org>
6473
6474 * configure.srv: Rename arm.o with arch/arm.o.
6475
64762017-10-17 Yao Qi <yao.qi@linaro.org>
6477
6478 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
6479 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
6480 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
6481 (arch-i386.o, arch-amd64.o): Remove rules.
6482 (arch/%.o): New rule.
6483 Update POSTCOMPILE and COMPILE.pre.
6484 * configure.ac: Invoke AC_CONFIG_COMMANDS.
6485 * configure: Re-generated.
6486 * configure.srv: Replace arch-i386.o with arch/i386.o.
6487 Replace arch-amd64.o with arch/amd64.o.
6488
64892017-10-16 Yao Qi <yao.qi@linaro.org>
6490
6491 * configure: Regenerated.
6492
64932017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6494
6495 * inferiors.h: (struct inferior_list): Remove.
6496 (struct inferior_list_entry); Remove.
6497 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
6498 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
6499 get_first_inferior): Remove.
6500 (for_each_inferior, for_each_inferior_with_data, find_inferior,
6501 find_inferior_id, find_inferior_in_random): Change signature.
6502 * inferiors.c (all_threads): Change type to
6503 std::list<thread_info *>.
6504 (get_thread): Remove macro.
6505 (find_inferior, find_inferior_id): Change signature, implement
6506 using find_thread.
6507 (find_inferior_in_random): Change signature, implement using
6508 find_thread_in_random.
6509 (for_each_inferior, for_each_inferior_with_data): Change
6510 signature, implement using for_each_thread.
6511 (add_inferior_to_list, remove_inferior): Remove.
6512 (add_thread, get_first_thread, thread_of_pid,
6513 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
6514 (get_first_inferior, one_inferior_p, clear_inferior_list):
6515 Remove.
6516 (clear_inferiors, get_thread_process): Update.
6517 * gdbthread.h: Include <list>.
6518 (struct thread_info) <entry>: Remove field.
6519 <id>: New field.
6520 (all_threads): Change type to std::list<thread_info *>.
6521 (get_first_inferior): Add doc.
6522 (find_thread, for_each_thread, find_thread_in_random): New
6523 functions.
6524 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
6525 * linux-arm-low.c (update_registers_callback): Update.
6526 * linux-low.c (second_thread_of_pid_p): Update.
6527 (kill_one_lwp_callback, linux_detach_lwp_callback,
6528 delete_lwp_callback, status_pending_p_callback, same_lwp,
6529 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
6530 iterate_over_lwps, not_stopped_callback,
6531 resume_stopped_resumed_lwps, count_events_callback,
6532 select_singlestep_lwp_callback, select_event_lwp_callback,
6533 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
6534 suspend_and_send_sigstop_callback, wait_for_sigstop,
6535 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
6536 lwp_running, linux_set_resume_request, resume_status_pending_p,
6537 need_step_over_p, start_step_over, linux_resume_one_thread,
6538 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
6539 reset_lwp_ptrace_options_callback): Update.
6540 * linux-mips-low.c (update_watch_registers_callback): Update.
6541 * regcache.c (regcache_invalidate_one, regcache_invalidate):
6542 Update.
6543 (free_register_cache_thread_one): Remove.
6544 (regcache_release): Update.
6545 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
6546 handle_qxfer_threads_worker): Update.
6547 (handle_query): Update, use list iterator.
6548 (visit_actioned_threads, handle_pending_status,
6549 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
6550 clear_pending_status_callback, set_pending_status_callback,
6551 find_status_pending_thread_callback, handle_status,
6552 process_serial_event): Update.
6553 * target.c (thread_search_callback): Update.
6554 * thread-db.c (thread_db_get_tls_address): Update.
6555 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
6556 Update.
6557 * win32-i386-low.c (update_debug_registers_callback): Update.
6558 * win32-low.c (delete_thread_info, child_delete_thread,
6559 continue_one_thread, suspend_one_thread,
6560 get_child_debug_event): Adjust.
6561
65622017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6563
6564 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
6565 * inferiors.h: Include <list>.
6566 (struct process_info) <entry>: Remove field.
6567 <pid>: New field.
6568 (pid_of): Change macro to function.
6569 (ptid_of, lwpid_of): Remove macro.
6570 (all_processes): Change type to std::list<process_info *>.
6571 (ALL_PROCESSES): Remove macro.
6572 (for_each_process, find_process): New function.
6573 * inferiors.c (all_processes): Change type to
6574 std::list<process_info *>.
6575 (find_thread_process): Adjust.
6576 (add_process): Likewise.
6577 (remove_process): Likewise.
6578 (find_process_pid): Likewise.
6579 (get_first_process): Likewise.
6580 (started_inferior_callback): Remove.
6581 (have_started_inferiors_p): Adjust.
6582 (attached_inferior_callback): Remove.
6583 (have_attached_inferiors_p): Adjust.
6584 * linux-low.c (check_zombie_leaders): Likewise.
6585 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
6586 (x86_linux_update_xmltarget): Adjust.
6587 * server.c (handle_query): Likewise.
6588 (gdb_reattached_process): Remove.
6589 (handle_status): Adjust.
6590 (kill_inferior_callback): Likewise.
6591 (detach_or_kill_inferior): Remove.
6592 (print_started_pid): Likewise.
6593 (print_attached_pid): Likewise.
6594 (detach_or_kill_for_exit): Update.
6595 (process_serial_event): Likewise.
6596 * linux-arm-low.c (arm_new_fork): Likewise.
6597
65982017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6599
6600 * dll.h: Include <list>.
6601 (struct dll_info): Add constructor.
6602 <entry>: Remove field.
6603 (all_dlls): Change type to std::list<dll_info>.
6604 * dll.c: Include <algorithm>.
6605 (get_dll): Remove macro.
6606 (all_dlls): Change type to std::list<dll_info *>.
6607 (free_one_dll): Remove.
6608 (match_dll): Likewise.
6609 (loaded_dll): Adjust.
6610 (unloaded_dll): Adjust to all_dlls type change, use
6611 std::find_if. Inline code from match_dll.
6612 (clear_dlls): Adjust to all_dlls type change.
6613 * server.c (emit_dll_description): Remove.
6614 (handle_qxfer_libraries): Adjust to all_dlls type change,
6615 integrate emit_dll_description's functionality.
6616
66172017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6618
6619 * linux-low.h (struct linux_target_ops) <delete_process>: New
6620 field.
6621 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
6622 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
6623 (struct linux_target_ops): Add delete_process callback.
6624 * linux-arm-low.c (arm_delete_process): New.
6625 (struct linux_target_ops): Add delete_process callback.
6626 * linux-bfin-low.c (struct linux_target_ops): Likewise.
6627 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
6628 * linux-m32r-low.c (struct linux_target_ops): Likewise.
6629 * linux-mips-low.c (mips_linux_delete_process): New.
6630 (struct linux_target_ops): Add delete_process callback.
6631 * linux-ppc-low.c (struct linux_target_ops): Likewise.
6632 * linux-s390-low.c (struct linux_target_ops): Likewise.
6633 * linux-sh-low.c (struct linux_target_ops): Likewise.
6634 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
6635 * linux-tile-low.c (struct linux_target_ops): Likewise.
6636 * linux-x86-low.c (x86_linux_delete_process): New.
6637 (struct linux_target_ops): Add delete_process callback.
6638 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
6639
66402017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6641
6642 * linux-aarch64-low.c (the_low_target): Add thread delete
6643 callback.
6644 * linux-arm-low.c (arm_delete_thread): New function.
6645 (the_low_target): Add thread delete callback.
6646 * linux-bfin-low.c (the_low_target): Likewise.
6647 * linux-crisv32-low.c (the_low_target): Likewise.
6648 * linux-low.c (delete_lwp): Invoke delete_thread callback if
6649 set.
6650 * linux-low.h (struct linux_target_ops) <delete_thread>: New
6651 field.
6652 * linux-m32r-low.c (the_low_target): Add thread delete callback.
6653 * linux-mips-low.c (mips_linux_delete_thread): New function.
6654 (the_low_target): Add thread delete callback.
6655 * linux-ppc-low.c (the_low_target): Likewise.
6656 * linux-s390-low.c (the_low_target): Likewise.
6657 * linux-sh-low.c (the_low_target): Likewise.
6658 * linux-tic6x-low.c (the_low_target): Likewise.
6659 * linux-tile-low.c (the_low_target): Likewise.
6660 * linux-x86-low.c (the_low_target): Likewise.
6661 * linux-xtensa-low.c (the_low_target): Likewise.
6662
66632017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
6664
6665 * win32-low.c: Include "common-inferior.h".
6666
66672017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6668
6669 * inferiors.c (set_inferior_cwd): New function.
6670 * server.c (handle_general_set): Handle QSetWorkingDir packet.
6671 (handle_query): Inform that QSetWorkingDir is supported.
6672 * win32-low.c (create_process): Pass the inferior's cwd to
6673 CreateProcess.
6674
66752017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6676
6677 * inferiors.c (current_inferior_cwd): New global variable.
6678 (get_inferior_cwd): New function.
6679 * inferiors.h (struct process_info) <cwd>: New field.
6680
66812017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6682
6683 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
6684 (OBS): Add gdb_tilde_expand.o.
6685
66862017-10-02 Simon Marchi <simon.marchi@ericsson.com>
6687
6688 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
6689 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
6690
66912017-09-29 Pedro Alves <palves@redhat.com>
6692
6693 * ax.c (gdb_parse_agent_expr): Constify.
6694 * ax.h (gdb_parse_agent_expr): Constify.
6695 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
6696 Constify.
6697 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
6698 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
6699 * remote-utils.h (read_ptid): Constify.
6700 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
6701 (process_point_options, process_serial_event): Constify.
6702 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
6703 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
6704 (cmd_qtbuffer): Constify.
6705
67062017-09-29 Pedro Alves <palves@redhat.com>
6707
6708 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
6709 fails.
6710
67112017-09-29 Pedro Alves <palves@redhat.com>
6712
6713 * linux-low.c (handle_extended_wait): Pass parent thread instead
6714 of process to thread_db_notice_clone.
6715 * linux-low.h (thread_db_notice_clone): Replace parent process
6716 parameter with parent thread parameter.
6717 * thread-db.c (find_one_thread): Add comment.
6718 (thread_db_notice_clone): Replace parent process parameter with
6719 parent thread parameter. Temporarily switch to the parent thread.
6720
67212017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
6722
6723 * gdbthread.h: Include "common-gdbthread.h".
6724 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
6725 "if" when validating the ptid.
6726 * remote-utils.c: Include "gdbthread.h".
6727 (prepare_resume_reply): Use "switch_to_thread".
6728 * target.c (done_accessing_memory): Likewise.
6729
67302017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6731
6732 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
6733 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
6734 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
6735 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
6736 s390x-gs-linux64-ipa.o to ipa_obj.
6737 * linux-s390-low.c (HWCAP_S390_GS): New define.
6738 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
6739 New functions.
6740 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
6741 (s390_arch_setup): Check for guarded-storage support and choose
6742 appropriate tdesc.
6743 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
6744 init_registers_s390x_gs_linux64.
6745 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
6746 enum value.
6747 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
6748 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
6749
67502017-09-22 Simon Marchi <simon.marchi@ericsson.com>
6751
6752 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
6753
67542017-09-21 Kevin Buettner <kevinb@redhat.com>
6755
6756 * linux-low.h (struct lwp_info): Add new field, thread_handle.
6757 (thread_db_thread_handle): Declare.
6758 * linux-low.c (linux_target_ops): Initialize thread_handle.
6759 * server.c (handle_qxfer_threads_worker): Add support for
6760 "handle" attribute.
6761 * target.h (struct target_ops): Add new function pointer,
6762 thread_handle.
6763 (target_thread_handle): Define.
6764 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
6765 field in lwp.
6766 (thread_db_thread_handle): New function.
6767
67682017-09-21 Kevin Buettner <kevinb@redhat.com>
6769
6770 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
6771 * linux-low.h (thread_db_notice_clone): Declare.
6772 * thread-db.c (thread_db_notice_clone): New function.
6773
67742017-09-21 Pedro Alves <palves@redhat.com>
6775
6776 * server.c (gdb_read_memory, handle_status, process_serial_event)
6777 (handle_serial_event, handle_target_event): Adjust to
6778 set_desired_thread prototype change.
6779 * target.c (set_desired_thread): Remove 'use_general' parameter
6780 and adjust.
6781 * target.h (set_desired_thread): Remove 'use_general' parameter.
6782
67832017-09-20 Tom Tromey <tom@tromey.com>
6784
6785 * target.c (target_terminal::terminal_state): Define.
6786 (target_terminal::init): Rename from target_terminal_init.
6787 (target_terminal::inferior): Rename from
6788 target_terminal_inferior.
6789 (target_terminal::ours): Rename from target_terminal_ours.
6790 (target_terminal::ours_for_output, target_terminal::info): New.
6791
67922017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6793
6794 * server.c (accumulate_file_name_length): Remove.
6795 (emit_dll_description): Adjust to std::string change.
6796 (handle_qxfer_libraries): Use std::string to hold document.
6797
67982017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6799
6800 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
6801 return type of xml_escape_text.
6802 * server.c (emit_dll_description): Likewise.
6803
68042017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6805
6806 * server.c (captured_main): Accept argument for --selftest.
6807 Update run_tests call.
6808 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
6809 when registering selftests.
6810
68112017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
6812
6813 * regcache.c (get_thread_regcache): Update code to use "std::vector"
6814 instead of "VEC" for "target_desc.reg_defs".
6815 (regcache_cpy): Likewise.
6816 (registers_to_string): Likewise.
6817 (registers_from_string): Likewise.
6818 (find_regno): Likewise.
6819 (supply_regblock): Likewise.
6820 (regcache_raw_read_unsigned): Likewise.
6821 * tdesc.c (init_target_desc): Likewise.
6822 (tdesc_create_reg): Likewise.
6823 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
6824 (struct target_desc) <reg_defs>: Convert to "std::vector".
6825 (target_desc): Do not initialize "reg_defs".
6826 (~target_desc): Update code to use "std::vector" instead of "VEC"
6827 for "target_desc.reg_defs".
6828 (operator==): Likewise.
6829
68302017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6831
6832 * inferiors.h (thread_to_gdb_id): Remove.
6833 * inferiors.c (thread_to_gdb_id): Remove.
6834 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
6835 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
6836 lynx_store_registers, lynx_read_memory, lynx_write_memory):
6837 Likewise.
6838 * nto-low.c (nto_fetch_registers, nto_store_registers,
6839 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
6840
68412017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6842
6843 * inferiors.h (gdb_id_to_thread_id): Remove.
6844 * inferiors.c (gdb_id_to_thread_id): Remove.
6845 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
6846 removal. Move pid declaration closer to where it's used.
6847
68482017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6849
6850 * server.c (handle_detach): New function.
6851 (process_serial_event): Move code out, call handle_detach.
6852
68532017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6854
6855 * server.c (require_running): Rename to ...
6856 (require_running_or_return): ... this ...
6857 (require_running_or_break): ... and this.
6858 (handle_query, process_serial_event): Adjust.
6859
68602017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6861
6862 * linux-low.c (linux_set_resume_request): Remove unused
6863 variables.
6864
68652017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6866
6867 * server.c (first_thread_of): Remove.
6868 (process_serial_event): Replace usage of first_thread_of with
6869 find_any_thread_of_pid.
6870 * tracepoint.c (same_process_p): Remove.
6871 (gdb_agent_about_to_close): Replace usage of same_process_p with
6872 find_any_thread_of_pid.
6873 * linux-x86-low.c (same_process_callback): Remove.
6874 (x86_arch_setup_process_callback): Replace usage of
6875 same_process_callback with find_any_thread_of_pid.
6876 * thread-db.c (any_thread_of): Remove.
6877 (switch_to_process): Replace usage of any_thread_of with
6878 find_any_thread_of_pid.
6879 * inferiors.c (thread_pid_matches_callback): Remove.
6880 (find_thread_process): Adjust to use find_any_thread_of_pid.
6881
68822017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6883
6884 * regcache.c (get_thread_regcache): Guard calls to "memset"
6885 with "!VEC_empty".
6886
68872017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6888
6889 * linux-low.c (handle_extended_wait): Use
6890 "allocate_target_description" instead of "XNEW".
6891 * linux-x86-low.c (initialize_low_arch): Likewise.
6892
68932017-09-05 Yao Qi <yao.qi@linaro.org>
6894
6895 * configure.srv (srv_i386_regobj): Remove.
6896 (srv_amd64_regobj): Remove.
6897 (srv_regobj): Set it to "" for x86 non-linux targets.
6898 * linux-x86-tdesc.c (i386_linux_read_description):
6899 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
6900 (init_registers_i386): Remove the declaration.
6901 (tdesc_i386): Remove the declaration.
6902 (lynx_i386_arch_setup): Call i386_create_target_description.
6903 * nto-x86-low.c: Likewise.
6904 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
6905 [!__x86_64__]: include arch/i386.h.
6906 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
6907
69082017-09-05 Yao Qi <yao.qi@linaro.org>
6909
6910 * configure.srv (srv_amd64_linux_xmlfiles): Remove
6911 i386/amd64-XXX-linux from it.
6912
69132017-09-05 Yao Qi <yao.qi@linaro.org>
6914
6915 * configure.srv: Empty srv_amd64_linux_regobj if $development is
6916 false.
6917 (ipa_amd64_linux_regobj): Remove.
6918 (ipa_x32_linux_regobj): Remove.
6919
69202017-09-05 Yao Qi <yao.qi@linaro.org>
6921
6922 * Makefile.in (arch-amd64.o): New rule.
6923 * configure.srv: Append arch-amd64.o.
6924 * linux-amd64-ipa.c: Include common/x86-xstate.h.
6925 (get_ipa_tdesc): Call amd64_linux_read_description.
6926 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
6927 and init_registers_amd64_XXX.
6928 * linux-x86-low.c (x86_linux_read_description): Call
6929 amd64_linux_read_description.
6930 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
6931 (initialize_low_arch): Don't call init_registers_x32_XXX and
6932 init_registers_amd64_XXX.
6933 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
6934 and tdesc_amd64_XXX.
6935 [__x86_64__] (amd64_tdesc_test): New function.
6936 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
6937 and init_registers_amd64_XXX.
6938 * linux-x86-tdesc.c: Include arch/amd64.h.
6939 (xcr0_to_tdesc_idx): New function.
6940 (i386_linux_read_description): New function.
6941 (amd64_get_ipa_tdesc_idx): New function.
6942 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
6943 (amd64_get_ipa_tdesc): Declare.
6944
69452017-09-05 Yao Qi <yao.qi@linaro.org>
6946
6947 * configure.srv (srv_i386_linux_xmlfiles): Remove
6948 i386/i386-XXX-linux.xml from it.
6949
69502017-09-05 Yao Qi <yao.qi@linaro.org>
6951
6952 * configure.srv: Set srv_i386_linux_regobj empty if $development
6953 is false.
6954 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
6955 initialize_low_tdesc.
6956 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
6957 with #if initialize_low_tdesc.
6958 * linux-x86-tdesc-selftest.c: New file.
6959 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
6960
69612017-09-05 Yao Qi <yao.qi@linaro.org>
6962
6963 * Makefile.in (arch-i386.o): New rule.
6964 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
6965 (x86_64-*-linux*): Likewise.
6966 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
6967 include arch/i386.h.
6968 (i386_linux_read_description): Remove code and call
6969 i386_create_target_description.
6970 * tdesc.c (allocate_target_description): New function.
6971 * tdesc.h (set_tdesc_architecture): Remove declaration.
6972 (set_tdesc_osabi): Likewise.
6973
69742017-09-05 Yao Qi <yao.qi@linaro.org>
6975
6976 * linux-x86-tdesc.c: Don't include <inttypes.h>.
6977 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
6978 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
6979 .xmltarget.
6980 * server.c (get_features_xml): Call tdesc_get_features_xml.
6981 * tdesc.c (set_tdesc_architecture): New function.
6982 (set_tdesc_osabi): New function.
6983 (tdesc_get_features_xml): New function.
6984 (tdesc_create_feature): Add an argument.
6985 * tdesc.h (struct target_desc) <features>: New field.
6986 <arch, osabi>: New field.
6987 (~target_desc): xfree features, arch, and osabi.
6988 (target_desc::oerator==): Don't compare .xmltarget.
6989 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
6990 (set_tdesc_osabi): Likewise.
6991 (tdesc_get_features_xml): Likewise.
6992
69932017-09-05 Yao Qi <yao.qi@linaro.org>
6994
6995 * linux-x86-tdesc.c: Include selftest.h.
6996 (i386_tdesc_test): New function.
6997 (initialize_low_tdesc): Call selftests::register_test.
6998 * tdesc.h: Include regdef.h.
6999 (target_desc): Override operator == and !=.
7000
70012017-09-05 Yao Qi <yao.qi@linaro.org>
7002
7003 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
7004 (ipa_obj): Likewise.
7005 * linux-i386-ipa.c: Include common/x86-xstate.h
7006 (get_ipa_tdesc): Call i386_linux_read_description.
7007 (initialize_low_tracepoint): Don't call init_registers_XXX
7008 functions, call initialize_low_tdesc instead.
7009 * linux-x86-low.c (x86_linux_read_description): Call
7010 i386_linux_read_description.
7011 (initialize_low_arch): Don't call init_registers_i386_XXX
7012 functions, call initialize_low_tdesc.
7013 * linux-x86-tdesc.c: New file.
7014 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
7015 (i386_get_ipa_tdesc_idx): Declare.
7016 (i386_get_ipa_tdesc): Declare.
7017 (initialize_low_tdesc): Declare.
7018
70192017-09-05 Yao Qi <yao.qi@linaro.org>
7020
7021 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
7022 instead of 0.
7023
70242017-09-05 Yao Qi <yao.qi@linaro.org>
7025
7026 * Makefile.in (IPA_OBJS): Add vec-ipa.o
7027 * regcache.c (get_thread_regcache): Use VEC_length.
7028 (init_register_cache): Likewise.
7029 (regcache_cpy): Likewise.
7030 (registers_to_string): Iterate reg_defs via VEC_iterate.
7031 (find_regno): Likewise.
7032 (find_register_by_number): Use VEC_index.
7033 (register_size): Call find_register_by_number.
7034 (register_data): Call find_register_by_number.
7035 (supply_regblock): Use VEC_length.
7036 (regcache_raw_read_unsigned): Likewise.
7037 * tdesc.c (init_target_desc): Iterate reg_defs via
7038 VEC_iterate.
7039 (default_description): Update initializer.
7040 (copy_target_description): Don't update field num_registers.
7041 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
7042 <num_registers>: Remove.
7043
70442017-09-04 Simon Marchi <simon.marchi@ericsson.com>
7045
7046 * Makefile.in (.SECONDARY): Define target.
7047
70482017-09-03 Simon Marchi <simon.marchi@ericsson.com>
7049
7050 * linux-low.c (linux_wait_1): Adjust.
7051 * server.c (queue_stop_reply_callback): Adjust.
7052
70532017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
7054
7055 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
7056 QEnvironmentUnset and QEnvironmentReset packets.
7057 (handle_query): Inform remote that QEnvironmentHexEncoded,
7058 QEnvironmentUnset and QEnvironmentReset are supported.
7059
70602017-08-25 Simon Marchi <simon.marchi@ericsson.com>
7061
7062 * inferiors.h (inferior_target_data): Rename to ...
7063 (thread_target_data): ... this.
7064 (inferior_regcache_data): Rename to ...
7065 (thread_regcache_data): ... this.
7066 (set_inferior_regcache_data): Rename to ...
7067 (set_thread_regcache_data): ... this.
7068 * inferiors.c (inferior_target_data): Rename to ...
7069 (thread_target_data): ... this.
7070 (inferior_regcache_data): Rename to ...
7071 (thread_regcache_data): ... this.
7072 (set_inferior_regcache_data): Rename to ...
7073 (set_thread_regcache_data): ... this.
7074 (free_one_thread): Update.
7075 * linux-low.h (get_thread_lwp): Update.
7076 * regcache.c (get_thread_regcache): Update.
7077 (regcache_invalidate_thread): Update.
7078 (free_register_cache_thread): Update.
7079 * win32-i386-low.c (update_debug_registers_callback): Update.
7080 (win32_get_current_dr): Update.
7081 * win32-low.c (thread_rec): Update.
7082 (delete_thread_info): Update.
7083 (continue_one_thread): Update.
7084 (suspend_one_thread): Update.
7085
70862017-08-24 Simon Marchi <simon.marchi@ericsson.com>
7087
7088 * inferiors.c (set_inferior_target_data): Remove.
7089 * inferiors.h (set_inferior_target_data): Remove.
7090
70912017-08-18 Yao Qi <yao.qi@linaro.org>
7092
7093 * Makefile.in (OBS): Add selftest.o.
7094 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
7095 * configure, config.in: Re-generated.
7096 * server.c: Include common/sefltest.h.
7097 (captured_main): Handle option --selftest.
7098
70992017-08-09 Yao Qi <yao.qi@linaro.org>
7100
7101 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
7102 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
7103 i386-avx-mpx.o and i386-mmx.o.
7104 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
7105 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
7106 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
7107 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
7108 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
7109 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
7110 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
7111 i386/amd64-avx-mpx.xml.
7112
71132017-08-09 Yao Qi <yao.qi@linaro.org>
7114
7115 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
7116 and x32-avx-avx512.o.
7117 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
7118 i386/x32-avx-avx512.xml.
7119
71202017-07-26 Simon Marchi <simon.marchi@ericsson.com>
7121
7122 * tracepoint.h (enum class fast_tpoint_collect_result): New
7123 enumeration.
7124 (fast_tracepoint_collecting): Change return type to
7125 fast_tpoint_collect_result.
7126 * tracepoint.c (fast_tracepoint_collecting): Likewise.
7127 * linux-low.h: Include tracepoint.h.
7128 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
7129 fast_tpoint_collect_result.
7130 * linux-low.c (handle_tracepoints): Adjust.
7131 (linux_fast_tracepoint_collecting): Change return type to
7132 fast_tpoint_collect_result.
7133 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
7134 linux_wait_1, stuck_in_jump_pad_callback,
7135 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
7136 proceed_one_lwp): Adjust to type change.
7137
71382017-07-10 Yao Qi <yao.qi@linaro.org>
7139
7140 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
7141
71422017-06-29 Yao Qi <yao.qi@linaro.org>
7143
7144 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
7145 Remove.
7146 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
7147
71482017-06-20 Simon Marchi <simon.marchi@ericsson.com>
7149
7150 * Makefile.in (IPA_OBJS): Sort and format one item per line.
7151
71522017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
7153
7154 * linux-low.c (linux_create_inferior): Adjust code to access the
7155 environment information via 'gdb_environ' class.
7156 * lynx-low.c (lynx_create_inferior): Likewise.
7157 * server.c (our_environ): Make it an instance of 'gdb_environ'.
7158 (get_environ): Return a pointer to 'our_environ'.
7159 (captured_main): Initialize 'our_environ'.
7160 * server.h (get_environ): Adjust prototype.
7161 * spu-low.c (spu_create_inferior): Adjust code to access the
7162 environment information via 'gdb_environ' class.
7163
71642017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7165
7166 * linux-low.c (linux_read_memory, linux_write_memory): Remove
7167 usage of "register" keyword.
7168
71692017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7170
7171 * configure: Re-generate.
7172
71732017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7174
7175 * configure: Re-generate.
7176
71772017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7178
7179 * Makefile.in (COMPILE.pre): Add "-x c++".
7180
71812017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
7182
7183 * fork-child.c: Conditionally include <signal.h>.
7184
71852017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7186
7187 * server.c (handle_general_set): Handle new packet
7188 "QStartupWithShell".
7189 (handle_query): Add "QStartupWithShell" to the list of supported
7190 packets.
7191 (gdbserver_usage): Add help text explaining the
7192 new "--startup-with-shell" and "--no-startup-with-shell" CLI
7193 options.
7194 (captured_main): Recognize and act upon the presence of the new
7195 CLI options.
7196
71972017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7198 Pedro Alves <palves@redhat.com>
7199
7200 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
7201 * configure: Regenerate.
7202 * configure.srv (srv_linux_obj): Add "fork-child.o" and
7203 "fork-inferior.o".
7204 (i[34567]86-*-lynxos*): Likewise.
7205 (spu*-*-*): Likewise.
7206 * fork-child.c: New file.
7207 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
7208 and "environ.h".
7209 (linux_ptrace_fun): New function.
7210 (linux_create_inferior): Adjust function prototype to reflect
7211 change on "target.h". Adjust function code to use
7212 "fork_inferior".
7213 (linux_request_interrupt): Delete "signal_pid".
7214 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7215 (lynx_ptrace_fun): New function.
7216 (lynx_create_inferior): Adjust function prototype to reflect
7217 change on "target.h". Adjust function code to use
7218 "fork_inferior".
7219 * nto-low.c (nto_create_inferior): Adjust function prototype and
7220 code to reflect change on "target.h". Update comments.
7221 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
7222 "common-terminal.h" and "environ.h".
7223 (terminal_fd): Moved to fork-child.c.
7224 (old_foreground_pgrp): Likewise.
7225 (restore_old_foreground_pgrp): Likewise.
7226 (last_status): Make it global.
7227 (last_ptid): Likewise.
7228 (our_environ): New variable.
7229 (startup_with_shell): Likewise.
7230 (program_name): Likewise.
7231 (program_argv): Rename to...
7232 (program_args): ...this.
7233 (wrapper_argv): New variable.
7234 (start_inferior): Delete function.
7235 (get_exec_wrapper): New function.
7236 (get_exec_file): Likewise.
7237 (get_environ): Likewise.
7238 (prefork_hook): Likewise.
7239 (post_fork_inferior): Likewise.
7240 (postfork_hook): Likewise.
7241 (postfork_child_hook): Likewise.
7242 (handle_v_run): Update code to deal with arguments coming from the
7243 remote host. Update calls from "start_inferior" to
7244 "create_inferior".
7245 (captured_main): Likewise. Initialize environment variable. Call
7246 "have_job_control".
7247 * server.h (post_fork_inferior): New prototype.
7248 (get_environ): Likewise.
7249 (last_status): Declare.
7250 (last_ptid): Likewise.
7251 (signal_pid): Likewise.
7252 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7253 (spu_ptrace_fun): New function.
7254 (spu_create_inferior): Adjust function prototype to reflect change
7255 on "target.h". Adjust function code to use "fork_inferior".
7256 * target.c (target_terminal_init): New function.
7257 (target_terminal_inferior): Likewise.
7258 (target_terminal_ours): Likewise.
7259 * target.h: Include <vector>.
7260 (struct target_ops) <create_inferior>: Update prototype.
7261 (create_inferior): Update macro.
7262 * utils.c (gdb_flush_out_err): New function.
7263 * win32-low.c (win32_create_inferior): Adjust function prototype
7264 and code to reflect change on "target.h".
7265
72662017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7267
7268 * inferiors.c (switch_to_thread): New function.
7269
72702017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7271
7272 * Makefile.in (SFILE): Add "common/job-control.c".
7273 (OBS): Add "job-control.o".
7274
72752017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
7276
7277 * Makefile: Remove "@host_makefile_frag@".
7278
72792017-05-05 Pedro Alves <palves@redhat.com>
7280
7281 * configure: Regenerate.
7282
72832017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7284
7285 * configure: Regenerate.
7286
72872017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7288
7289 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
7290 software_single_step change of return type to
7291 std::vector<CORE_ADDR>.
7292 * linux-low.c (install_software_single_step_breakpoints):
7293 Likewise.
7294 * linux-low.h (install_software_single_step_breakpoints):
7295 Likewise.
7296
72972017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7298
7299 * remote-utils.c: Include "gdb_termios.h" instead of
7300 "terminal.h".
7301 * terminal.h: Delete file.
7302
73032017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7304
7305 * server.c: Include <vector>.
7306 <program_argv, wrapper_argv>: Convert to std::vector.
7307 (start_inferior): Rewrite function to use C++.
7308 (handle_v_run): Likewise. Update code that calculates the argv
7309 based on the vRun packet; use C++.
7310 (captured_main): Likewise.
7311
73122017-04-06 Simon Marchi <simon.marchi@ericsson.com>
7313
7314 * server.c (handle_v_cont): Initialize thread_resume::thread
7315 with null_ptid.
7316
73172017-04-05 Pedro Alves <palves@redhat.com>
7318
7319 * configure: Regenerate.
7320
73212017-04-05 Pedro Alves <palves@redhat.com>
7322
7323 * gdbreplay.c (sync_error): Constify.
7324 * linux-x86-low.c (push_opcode): Constify.
7325
73262017-04-05 Pedro Alves <palves@redhat.com>
7327
7328 * win32-low.c (get_child_debug_event)
7329 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
7330 Report TARGET_WAITKIND_SPURIOUS instead.
7331
73322017-04-05 Pedro Alves <palves@redhat.com>
7333
7334 * remote-utils.c (remote_prepare, remote_open): Constify.
7335 * remote-utils.h (remote_prepare, remote_open): Constify.
7336 * server.c (captured_main): Constify 'port' handling.
7337
73382017-04-04 Simon Marchi <simon.marchi@ericsson.com>
7339
7340 * Makefile.in (clean): Clear .deps.
7341
73422017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
7343
7344 * .gitignore: Remove generated files, replace with wildcard.
7345 * (clean): Replace removal of generated files with wildcard.
7346 (version.c): Replace with...
7347 (version-generated.c): ...this.
7348 (xml-builtin.c): Replace with...
7349 (xml-builtin-generated.c): ...this.
7350 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
7351 (%.c: *regformats*): Replace with...
7352 (%-generated.c: *regformats*): ...this.
7353
73542017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7355
7356 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
7357 (xtensa_fill_gregset): Call collect_register_by_name for
7358 threadptr register.
7359 (xtensa_store_gregset): Call supply_register_by_name for
7360 threadptr register.
7361
73622017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7363
7364 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
7365 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
7366 (xtensa_store_gregset): Call supply_register for all registers in
7367 a0_regnum..a0_regnum + C0_NREGS range.
7368
73692017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7370
7371 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
7372 (ax-ipa.o: ax.c): Remove.
7373 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
7374 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
7375 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
7376 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
7377 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
7378
73792017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7380
7381 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
7382 (print-utils-ipa.o: ../common/print-utils.c): Remove.
7383 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
7384 (errors-ipa.o: ../common/errors.c): Remove.
7385 (format-ipa.o: ../common/format.c): Remove.
7386 (common-utils-ipa.o: ../common/common-utils.c): Remove.
7387
73882017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7389
7390 * Makefile.in (%-ipa.o: %.c): New rule.
7391 (tracepoint-ipa.o: tracepoint.c): Remove.
7392 (utils-ipa.o: utils.c): Remove.
7393 (remote-utils-ipa.o: remote-utils.c): Remove.
7394 (regcache-ipa.o: regcache.c): Remove.
7395 (i386-linux-ipa.o: i386-linux.c): Remove.
7396 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
7397 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
7398 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
7399 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
7400 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
7401 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
7402 (amd64-linux-ipa.o: amd64-linux.c): Remove.
7403 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
7404 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
7405 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
7406 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
7407 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
7408 (aarch64-ipa.o: aarch64.c): Remove.
7409 (s390-linux32-ipa.o: s390-linux32.c): Remove.
7410 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
7411 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
7412 (s390-linux64-ipa.o: s390-linux64.c): Remove.
7413 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
7414 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
7415 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
7416 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
7417 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
7418 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
7419 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
7420 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
7421 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
7422 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
7423 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
7424 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
7425 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
7426 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
7427 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
7428 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
7429 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
7430 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
7431 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
7432 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
7433 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
7434 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
7435 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
7436 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
7437 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
7438 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
7439 (tdesc-ipa.o: tdesc.c): Remove.
7440 (x32-linux-ipa.o: x32-linux.c): Remove.
7441 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
7442 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
7443
74442017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7445
7446 * Makefile.in (%.o: ../arch/%.c): New rule.
7447 (arm.o: ../arch/arm.c): Remove.
7448 (arm-linux.o: ../arch/arm-linux.c): Remove.
7449 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
7450 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
7451
74522017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7453
7454 * Makefile.in (%.o: ../nat/%.c): New rule.
7455 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
7456 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
7457 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
7458 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
7459 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
7460 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
7461 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
7462 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
7463 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
7464 (linux-personality.o: ../nat/linux-personality.c): Remove.
7465 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
7466 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
7467 (x86-linux.o: ../nat/x86-linux.c): Remove.
7468 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
7469 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
7470
74712017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7472
7473 * Makefile.in (%.o: ../common/%.c): New rule.
7474 (signals.o: ../common/signals.c): Remove.
7475 (print-utils.o: ../common/print-utils.c): Remove.
7476 (rsp-low.o: ../common/rsp-low.c): Remove.
7477 (common-utils.o: ../common/common-utils.c): Remove.
7478 (posix-strerror.o: ../common/posix-strerror.c): Remove.
7479 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
7480 (vec.o: ../common/vec.c): Remove.
7481 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
7482 (xml-utils.o: ../common/xml-utils.c): Remove.
7483 (ptid.o: ../common/ptid.c): Remove.
7484 (buffer.o: ../common/buffer.c): Remove.
7485 (format.o: ../common/format.c): Remove.
7486 (filestuff.o: ../common/filestuff.c): Remove.
7487 (agent.o: ../common/agent.c): Remove.
7488 (errors.o: ../common/errors.c): Remove.
7489 (environ.o: ../common/environ.c): Remove.
7490 (common-debug.o: ../common/common-debug.c): Remove.
7491 (cleanups.o: ../common/cleanups.c): Remove.
7492 (common-exceptions.o: ../common/common-exceptions.c): Remove.
7493 (fileio.o: ../common/fileio.c): Remove.
7494 (common-regcache.o: ../common/common-regcache.c): Remove.
7495 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
7496 (new-op.o: ../common/new-op.c): Remove.
7497 (btrace-common.o: ../common/btrace-common.c): Remove.
7498
74992017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7500
7501 * Makefile.in (%.o: ../target/%.c): New rule.
7502 (waitstatus.o: ../target/waitstatus.c): Remove.
7503
75042017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7505
7506 * Makefile.in
7507 (%.c: ../regformats/%.dat,
7508 (%.c: ../regformats/arm/%.dat,
7509 (%.c: ../regformats/i386/%.dat,
7510 (%.c: ../regformats/rs6000/%.dat): New rules.
7511 (aarch64.c): Remove.
7512 (reg-arm.c): Remove.
7513 (arm-with-iwmmxt.c): Remove.
7514 (arm-with-vfpv2.c): Remove.
7515 (arm-with-vfpv3.c): Remove.
7516 (arm-with-neon.c): Remove.
7517 (reg-bfin.c): Remove.
7518 (reg-cris.c): Remove.
7519 (reg-crisv32.c): Remove.
7520 (i386.c): Remove.
7521 (i386-linux.c): Remove.
7522 (i386-avx.c): Remove.
7523 (i386-avx-linux.c): Remove.
7524 (i386-avx-avx512.c): Remove.
7525 (i386-avx-avx512-linux.c): Remove.
7526 (i386-mpx.c): Remove.
7527 (i386-mpx-linux.c): Remove.
7528 (i386-avx-mpx-avx512-pku.c): Remove.
7529 (i386-avx-mpx-avx512-pku-linux.c): Remove.
7530 (i386-avx-mpx.c): Remove.
7531 (i386-avx-mpx-linux.c): Remove.
7532 (i386-mmx.c): Remove.
7533 (i386-mmx-linux.c): Remove.
7534 (reg-ia64.c): Remove.
7535 (reg-m32r.c): Remove.
7536 (reg-m68k.c): Remove.
7537 (reg-cf.c): Remove.
7538 (mips-linux.c): Remove.
7539 (mips-dsp-linux.c): Remove.
7540 (mips64-linux.c): Remove.
7541 (mips64-dsp-linux.c): Remove.
7542 (nios2-linux.c): Remove.
7543 (powerpc-32.c): Remove.
7544 (powerpc-32l.c): Remove.
7545 (powerpc-altivec32l.c): Remove.
7546 (powerpc-cell32l.c): Remove.
7547 (powerpc-vsx32l.c): Remove.
7548 (powerpc-isa205-32l.c): Remove.
7549 (powerpc-isa205-altivec32l.c): Remove.
7550 (powerpc-isa205-vsx32l.c): Remove.
7551 (powerpc-e500l.c): Remove.
7552 (powerpc-64l.c): Remove.
7553 (powerpc-altivec64l.c): Remove.
7554 (powerpc-cell64l.c): Remove.
7555 (powerpc-vsx64l.c): Remove.
7556 (powerpc-isa205-64l.c): Remove.
7557 (powerpc-isa205-altivec64l.c): Remove.
7558 (powerpc-isa205-vsx64l.c): Remove.
7559 (s390-linux32.c): Remove.
7560 (s390-linux32v1.c): Remove.
7561 (s390-linux32v2.c): Remove.
7562 (s390-linux64.c): Remove.
7563 (s390-linux64v1.c): Remove.
7564 (s390-linux64v2.c): Remove.
7565 (s390-te-linux64.c): Remove.
7566 (s390-vx-linux64.c): Remove.
7567 (s390-tevx-linux64.c): Remove.
7568 (s390x-linux64.c): Remove.
7569 (s390x-linux64v1.c): Remove.
7570 (s390x-linux64v2.c): Remove.
7571 (s390x-te-linux64.c): Remove.
7572 (s390x-vx-linux64.c): Remove.
7573 (s390x-tevx-linux64.c): Remove.
7574 (tic6x-c64xp-linux.c): Remove.
7575 (tic6x-c64x-linux.c): Remove.
7576 (tic6x-c62x-linux.c): Remove.
7577 (reg-sh.c): Remove.
7578 (reg-sparc64.c): Remove.
7579 (reg-spu.c): Remove.
7580 (amd64.c): Remove.
7581 (amd64-linux.c): Remove.
7582 (amd64-avx.c): Remove.
7583 (amd64-avx-linux.c): Remove.
7584 (amd64-avx-avx512.c): Remove.
7585 (amd64-avx-avx512-linux.c): Remove.
7586 (amd64-mpx.c): Remove.
7587 (amd64-mpx-linux.c): Remove.
7588 (amd64-avx-mpx-avx512-pku.c): Remove.
7589 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
7590 (amd64-avx-mpx.c): Remove.
7591 (amd64-avx-mpx-linux.c): Remove.
7592 (x32.c): Remove.
7593 (x32-linux.c): Remove.
7594 (x32-avx.c): Remove.
7595 (x32-avx-linux.c): Remove.
7596 (x32-avx-avx512.c): Remove.
7597 (x32-avx-avx512-linux.c): Remove.
7598 (reg-xtensa.c): Remove.
7599 (reg-tilegx.c): Remove.
7600 (reg-tilegx32.c): Remove.
7601
76022017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
7603
7604 * Makefile.in (SFILES): Add "common/environ.c".
7605 (OBJS): Add "common/environ.h".
7606
76072017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7608
7609 * configure.ac: Check if the fs_base and gs_base members of
7610 `struct user_regs_struct' exist.
7611 * config.in: Regenerated.
7612 * configure: Likewise.
7613
76142017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
7615
7616 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
7617 target_read_memory.
7618 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
7619 (get_next_pcs_syscall_next_pc): Likewise.
7620
76212016-12-23 Luis Machado <lgustavo@codesourcery.com>
7622
7623 * win32-i386-low.c: Fix incorrect reference to a couple source files.
7624 * nto-x86-low.c: Likewise.
7625
76262016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
7627
7628 * Makefile.in: Include disable-implicit-rules.mk.
7629
76302016-11-23 Pedro Alves <palves@redhat.com>
7631
7632 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
7633 (debug_vprintf): Use std::chrono::steady_clock instead of
7634 gettimeofday. Use '.' instead of ':'.
7635 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
7636 (get_timestamp): Use std::chrono::steady_clock instead of
7637 gettimeofday.
7638
76392016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7640
7641 * Makefile.in: Fix whitespace formatting.
7642
76432016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7644
7645 * Makefile.in (SFILES, OBS): Flatten list and order
7646 alphabetically.
7647
76482016-11-23 Pedro Alves <palves@redhat.com>
7649
7650 * event-loop.c (handle_file_event): Use warning.
7651 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
7652 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
7653 Use warning.
7654
76552016-11-23 Pedro Alves <palves@redhat.com>
7656
7657 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
7658 output.
7659 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
7660 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
7661 debug_printf and debug_flush for debug output.
7662 * server.c (handle_general_set): Likewise.
7663 * thread-db.c (try_thread_db_load): Use debug_printf for debug
7664 output.
7665
76662016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7667
7668 * Makefile.in (.c.o): Replace rule with ...
7669 (%.o: %.c): ... this one.
7670
76712016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7672
7673 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
7674 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
7675 make.
7676 * configure.ac: Remove checks for the make program.
7677 * configure: Re-generate.
7678
76792016-10-28 Pedro Alves <palves@redhat.com>
7680
7681 * Makefile.in (CXX_DIALECT): Get from configure.
7682 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
7683 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
7684 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
7685 * config.in: Regenerate.
7686 * configure: Regenerate.
7687
76882016-10-27 Yao Qi <yao.qi@linaro.org>
7689
7690 * linux-low.c (linux_supports_range_stepping): Return true if
7691 can_software_single_step return true.
7692
76932016-10-27 Yao Qi <yao.qi@linaro.org>
7694
7695 * inferiors.c (find_inferior_in_random): New function.
7696 * inferiors.h (find_inferior_in_random): Declare.
7697 * linux-low.c (linux_wait_for_event_filtered): Call
7698 find_inferior_in_random instead of find_inferior.
7699
77002016-10-27 Yao Qi <yao.qi@linaro.org>
7701
7702 * linux-low.c (linux_wait_1): If single-step breakpoints are
7703 inserted, remove them.
7704
77052016-10-26 Pedro Alves <palves@redhat.com>
7706
7707 * linux-low.c (handle_extended_wait): Link parent/child fork
7708 threads.
7709 (linux_wait_1): Unlink them.
7710 (linux_set_resume_request): Ignore resume requests for
7711 already-resumed and unhandled fork child threads.
7712 * linux-low.h (struct lwp_info) <fork_relative>: New field.
7713 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
7714 New functions.
7715 (handle_v_requests) <vCont>: Don't call require_running.
7716 * server.h (in_queued_stop_replies): New declaration.
7717
77182016-10-24 Yao Qi <yao.qi@linaro.org>
7719
7720 PR server/20733
7721 * linux-aarch64-low.c (append_insns): Cast the return value to
7722 'uint32_t *'.
7723
77242016-10-10 Yao Qi <yao.qi@linaro.org>
7725
7726 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
7727
77282016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
7729
7730 * target.c (target_supports_multi_process): New function, moved
7731 from...
7732 * target.h (target_supports_multi_process): ... here. Remove
7733 macro.
7734
77352016-10-05 Tom Tromey <tom@tromey.com>
7736
7737 PR remote/20655:
7738 * tracepoint.c (handle_tracepoint_bkpts): Check
7739 ipa_error_tracepoint, not ipa_stopping_tracepoint.
7740
77412016-10-05 Yao Qi <yao.qi@linaro.org>
7742
7743 * configure.srv: Update the path of arm-*.xml files.
7744
77452016-10-05 Terry Guo <terry.guo@arm.com>
7746 Yao Qi <yao.qi@linaro.org>
7747
7748 * Makefile.in: Adjust the path of rules.
7749 * configure.srv: Update the path of xml files.
7750 * regformats/arm-with-iwmmxt.dat: Regenerated.
7751 * regformats/arm-with-neon.dat: Likewise.
7752 * regformats/arm-with-vfpv2.dat: Likewise.
7753 * regformats/arm-with-vfpv3.dat Likewise.
7754
77552016-09-30 Yao Qi <yao.qi@linaro.org>
7756
7757 PR gdbserver/20627
7758 * target.c (target_stop_and_wait): Don't call
7759 target_continue_no_signal, use resume_stop instead.
7760
77612016-09-26 Yao Qi <yao.qi@linaro.org>
7762
7763 * linux-low.c (linux_wait_1): Call debug_exit.
7764
77652016-09-23 Pedro Alves <palves@redhat.com>
7766
7767 * Makefile.in (SFILES): Add common/new-op.c.
7768 (OBS): Add common/new-op.o.
7769 (new-op.o): New rule.
7770
77712016-09-21 Simon Marchi <simon.marchi@ericsson.com>
7772
7773 * .gitinore: Ignore more files.
7774
77752016-09-21 Yao Qi <yao.qi@linaro.org>
7776
7777 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
7778 23.
7779
77802016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
7781
7782 * server.c (start_inferior): Call target_mourn_inferior instead of
7783 mourn_inferior; pass ptid_t argument to it.
7784 (resume): Likewise.
7785 (handle_target_event): Likewise.
7786 * target.c (target_mourn_inferior): New function.
7787 * target.h (mourn_inferior): Delete macro.
7788
77892016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
7790
7791 * linux-low.c (lwp_is_stepping): New function.
7792
77932016-09-06 Carl Love <cel@us.ibm.com>
7794
7795 * server.c (start_inferior): Fixed comment, requested comment change
7796 didn't get updated correctly. Removed reference to ptrace () call as
7797 it is only true on Linux systems.
7798
77992016-09-06 Carl Love <cel@us.ibm.com>
7800
7801 * server.c (start_inferior): Do not call
7802 function target_post_create_inferior () if the
7803 inferior process has already exited.
7804
78052016-09-05 Pedro Alves <palves@redhat.com>
7806
7807 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
7808 (COMPILE.pre, CC_LD): Use CXX directly.
7809 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
7810 * acinclude.m4: Don't include build-with-cxx.m4.
7811 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
7812 * configure: Regenerate.
7813
78142016-09-02 Akash Trehan <akash.trehan123@gmail.com>
7815
7816 PR gdb/19495
7817 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
7818 call writing data to own_buf.
7819
78202016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7821
7822 * target.c (mywait): Call target_wait instead of
7823 the_target->wait.
7824 (target_wait): New function.
7825
78262016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7827
7828 * server.c (start_inferior): New variable 'ptid'. Replace calls
7829 to the_target->resume by target_continue{,_no_signal}, depending
7830 on the case.
7831 * target.c (target_stop_and_wait): Call target_continue_no_signal
7832 instead of the_target->resume.
7833 (target_continue): New function.
7834
78352016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
7836
7837 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
7838
78392016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7840
7841 PR server/20491
7842 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
7843 ps_prochandle.
7844 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
7845 * linux-arm-low.c (ps_get_thread_area): Likewise.
7846 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
7847 * linux-m68k-low.c (ps_get_thread_area): Likewise.
7848 * linux-mips-low.c (ps_get_thread_area): Likewise.
7849 * linux-nios2-low.c (ps_get_thread_area): Likewise.
7850 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
7851 * linux-x86-low.c (ps_get_thread_area): Likewise.
7852 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
7853
78542016-08-19 Pedro Alves <palves@redhat.com>
7855
7856 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
7857
78582016-08-19 Pedro Alves <palves@redhat.com>
7859
7860 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
7861 comment. Use memcpy instead of casting through unsigned long.
7862
78632016-08-19 Pedro Alves <palves@redhat.com>
7864
7865 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
7866 allocating around 0x80000000.
7867
78682016-08-19 Pedro Alves <palves@redhat.com>
7869
7870 PR gdb/20415
7871 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
7872 (x32-avx512-linux-ipa.o): New rules.
7873 * configure.ac (x86_64-*-linux*): New x32 check.
7874 * configure.srv (ipa_x32_linux_regobj): New.
7875 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
7876 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
7877 descriptions.
7878 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
7879 descriptions.
7880 * configure: Regenerate.
7881
78822016-08-09 Pedro Alves <palves@redhat.com>
7883
7884 PR gdb/18653
7885 * Makefile.in (OBS): Add signals-state-save-restore.o.
7886 (signals-state-save-restore.o): New rule.
7887 * config.in: Regenerate.
7888 * configure: Regenerate.
7889 * linux-low.c: Include "signals-state-save-restore.h".
7890 (linux_create_inferior): Call
7891 restore_original_signals_state.
7892 * server.c: Include "dispositions-save-restore.h".
7893 (captured_main): Call save_original_signals_state.
7894
78952016-08-05 Pedro Alves <palves@redhat.com>
7896
7897 * configure: Regenerate.
7898
78992016-08-04 Yao Qi <yao.qi@linaro.org>
7900
7901 * linux-low.c (regsets_fetch_inferior_registers): Check
7902 errno is ESRCH or not.
7903
79042016-08-02 Yao Qi <yao.qi@linaro.org>
7905
7906 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
7907 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
7908 (thread_db_load_search): Update.
7909 (try_thread_db_load_1): Don't look for td_ta_event_addr,
7910 td_ta_set_event and td_ta_event_getmsg.
7911
79122016-07-26 Pedro Alves <palves@redhat.com>
7913
7914 PR server/20414
7915 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
7916 of unsigned long for 64-bit registers and use uint32_t instead of
7917 unsigned int for 32-bit registers.
7918
79192016-07-26 Pedro Alves <palves@redhat.com>
7920
7921 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
7922 to 'ptrace'.
7923
79242016-07-21 Tom Tromey <tom@tromey.com>
7925
7926 * configure: Rebuild.
7927
79282016-07-21 Yao Qi <yao.qi@linaro.org>
7929
7930 * mem-break.c (find_gdb_breakpoint): Cast bp to
7931 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
7932
79332016-07-21 Yao Qi <yao.qi@linaro.org>
7934
7935 * server.c (handle_v_requests): Support s and S actions
7936 if target_supports_software_single_step return true.
7937
79382016-07-21 Yao Qi <yao.qi@linaro.org>
7939
7940 * linux-low.c (resume_stopped_resumed_lwps): If resume request
7941 is resume_step, call maybe_hw_step.
7942 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
7943 and unstop them.
7944 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
7945 breakpoints or not.
7946 (proceed_one_lwp): If resume request is resume_step, install
7947 reinsert breakpoints and call maybe_hw_step.
7948
79492016-07-21 Yao Qi <yao.qi@linaro.org>
7950
7951 * linux-low.c (proceed_one_lwp): Declare.
7952 (linux_resume_one_thread): Remove local variable 'step'.
7953 Lift code enqueue signal. Call proceed_one_lwp instead of
7954 linux_resume_one_lwp.
7955
79562016-07-21 Yao Qi <yao.qi@linaro.org>
7957
7958 * linux-low.c (linux_resume_one_thread): Call
7959 enqueue_pending_signal.
7960
79612016-07-21 Yao Qi <yao.qi@linaro.org>
7962
7963 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
7964 * inferiors.c (do_restore_current_thread_cleanup): New function.
7965 (make_cleanup_restore_current_thread): Likewise.
7966 * linux-low.c (install_software_single_step_breakpoints): Call
7967 make_cleanup_restore_current_thread. Switch current_thread to
7968 thread.
7969
79702016-07-21 Yao Qi <yao.qi@linaro.org>
7971
7972 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
7973 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
7974 (clone_one_breakpoint): Likewise.
7975 (delete_reinsert_breakpoints): Change parameter to thread.
7976 Callers updated.
7977 (has_reinsert_breakpoints): Likewise.
7978 (uninsert_reinsert_breakpoints): Likewise.
7979 (reinsert_reinsert_breakpoints): Likewise.
7980 * mem-break.h (set_reinsert_breakpoint): Update declaration.
7981 (delete_reinsert_breakpoints): Likewise.
7982 (reinsert_reinsert_breakpoints): Likewise.
7983 (uninsert_reinsert_breakpoints): Likewise.
7984 (has_reinsert_breakpoints): Likewise.
7985
79862016-07-21 Yao Qi <yao.qi@linaro.org>
7987
7988 * inferiors.c (get_thread_process): Make parameter const.
7989 * inferiors.h (get_thread_process): Update declaration.
7990 * mem-break.c (clone_all_breakpoints): Remove all parameters.
7991 Add new parameters child_thread and parent_thread. Callers
7992 updated.
7993 * mem-break.h (clone_all_breakpoints): Update declaration.
7994
79952016-07-21 Yao Qi <yao.qi@linaro.org>
7996
7997 * mem-break.c (struct breakpoint) <cond_list>: Remove.
7998 <command_list, handler>: Remove.
7999 (struct gdb_breakpoint): New.
8000 (struct other_breakpoint): New.
8001 (struct reinsert_breakpoint): New.
8002 (is_gdb_breakpoint): New function.
8003 (any_persistent_commands): Update command_list if
8004 is_gdb_breakpoint returns true.
8005 (set_breakpoint): Create breakpoints according to their types.
8006 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
8007 (set_gdb_breakpoint_1): Likewise.
8008 (set_gdb_breakpoint): Likewise.
8009 (clear_breakpoint_conditions): Change parameter type to
8010 'struct gdb_breakpoint *'.
8011 (clear_breakpoint_commands): Likewise.
8012 (clear_breakpoint_conditions_and_commands): Likewise.
8013 (add_condition_to_breakpoint): Likewise.
8014 (add_breakpoint_condition): Likewise.
8015 (add_commands_to_breakpoint): Likewise.
8016 (check_breakpoints): Check other_breakpoint.
8017 (clone_one_breakpoint): Clone breakpopint according to its type.
8018 * mem-break.h (struct gdb_breakpoint): Declare.
8019 (set_gdb_breakpoint): Update declaration.
8020 (clear_breakpoint_conditions_and_commands): Likewise.
8021 (add_breakpoint_condition): Likewise.
8022 (add_breakpoint_commands): Likewise.
8023 * server.c (process_point_options): Change parameter type to
8024 'struct gdb_breakpoint *'.
8025
80262016-07-21 Yao Qi <yao.qi@linaro.org>
8027
8028 * mem-break.c (set_breakpoint_at): Rename it to ...
8029 (set_breakpoint_type_at): ... it.
8030 (set_breakpoint_at): Call set_breakpoint_type_at.
8031 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
8032 * mem-break.h (set_breakpoint_at): Update comments.
8033
80342016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
8035
8036 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
8037 to buf parameter.
8038 (nios2_store_gregset): Likewise.
8039
80402016-07-01 Pedro Alves <palves@redhat.com>
8041 Antoine Tremblay <antoine.tremblay@ericsson.com>
8042
8043 * linux-low.c: Change interface to take the target lwp_info
8044 pointer directly and return void. Handle detaching from a zombie
8045 thread.
8046 (linux_detach_lwp_callback): New function.
8047 (linux_detach): Detach from the leader thread after detaching from
8048 the clone threads.
8049
80502016-06-28 Yao Qi <yao.qi@linaro.org>
8051
8052 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
8053 for variable new_offset.
8054 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
8055 (aarch64_ftrace_insn_reloc_cb): Likewise.
8056 (aarch64_ftrace_insn_reloc_tb): Likewise.
8057 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
8058 PRIx64 instead of PRIx32.
8059
80602016-06-28 Yao Qi <yao.qi@linaro.org>
8061
8062 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
8063 (the_low_target): Install arm_get_syscall_trapinfo.
8064
80652016-06-28 Yao Qi <yao.qi@linaro.org>
8066
8067 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
8068 function.
8069 (the_low_target): Install aarch64_get_syscall_trapinfo.
8070
80712016-06-28 Yao Qi <yao.qi@linaro.org>
8072
8073 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
8074 Callers updated.
8075 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
8076 Remove parameter sysno.
8077 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
8078 sysret.
8079
80802016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8081
8082 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
8083 (s390_emit_ne_goto): Likewise.
8084 (s390_emit_lt_goto): Likewise.
8085 (s390_emit_le_goto): Likewise.
8086 (s390_emit_gt_goto): Likewise.
8087 (s390_emit_ge_goto): Likewise.
8088 (s390x_emit_eq_goto): Likewise.
8089 (s390x_emit_ne_goto): Likewise.
8090 (s390x_emit_lt_goto): Likewise.
8091 (s390x_emit_le_goto): Likewise.
8092 (s390x_emit_gt_goto): Likewise.
8093 (s390x_emit_ge_goto): Likewise.
8094 (s390_emit_ops_impl): Mark variable static.
8095 (s390x_emit_ops): Likewise.
8096
80972016-06-17 Yao Qi <yao.qi@linaro.org>
8098
8099 * linux-low.c (handle_extended_wait): Call
8100 uninsert_reinsert_breakpoints for the parent process. Remove
8101 reinsert breakpoints from the child process. Reinsert them to
8102 the parent process when vfork is done.
8103 * mem-break.c (uninsert_reinsert_breakpoints): New function.
8104 (reinsert_reinsert_breakpoints): New function.
8105 * mem-break.h (uninsert_reinsert_breakpoints): Declare
8106 (reinsert_reinsert_breakpoints): Declare.
8107
81082016-06-17 Yao Qi <yao.qi@linaro.org>
8109
8110 * linux-low.c (handle_extended_wait): If the parent is doing
8111 step-over, remove the reinsert breakpoints from the forked child.
8112
81132016-06-17 Yao Qi <yao.qi@linaro.org>
8114
8115 * linux-low.c (unsuspend_all_lwps): Declare.
8116 (linux_low_filter_event): If thread exited, call finish_step_over.
8117 If step-over is finished, unsuspend other threads.
8118
81192016-06-17 Yao Qi <yao.qi@linaro.org>
8120
8121 * linux-low.c (linux_resume_one_lwp_throw): Assert
8122 has_reinsert_breakpoints returns false.
8123 * mem-break.c (delete_disabled_breakpoints): Assert
8124 bp type isn't reinsert_breakpoint.
8125
81262016-06-17 Yao Qi <yao.qi@linaro.org>
8127
8128 * linux-low.c (maybe_hw_step): New function.
8129 (linux_resume_one_lwp_throw): Call maybe_hw_step.
8130 (finish_step_over): Switch current_thread to lwp temporarily,
8131 and assert has_reinsert_breakpoints returns true.
8132 (proceed_one_lwp): Call maybe_hw_step.
8133 * mem-break.c (has_reinsert_breakpoints): New function.
8134 * mem-break.h (has_reinsert_breakpoints): Declare.
8135
81362016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
8137
8138 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
8139
81402016-05-17 Yao Qi <yao.qi@linaro.org>
8141
8142 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
8143 instead of find_inferior.
8144
81452016-05-05 Yao Qi <yao.qi@linaro.org>
8146
8147 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
8148 Initialize res to zero.
8149
81502016-05-05 Yao Qi <yao.qi@linaro.org>
8151
8152 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
8153 to uint32_t.
8154
81552016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8156
8157 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
8158 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
8159 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
8160
81612016-04-28 Par Olsson <par.olsson@windriver.com>
8162 Simon Marchi <simon.marchi@ericsson.com>
8163
8164 * tracepoint.c (write_inferior_int8): New function.
8165 (cmd_qtenable_disable): Write enable flag using
8166 write_inferior_int8.
8167
81682016-04-25 Yao Qi <yao.qi@linaro.org>
8169
8170 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
8171 (need_step_over_p): Return zero if the LWP has pending signals
8172 can be delivered on software single step target.
8173
81742016-04-25 Yao Qi <yao.qi@linaro.org>
8175
8176 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
8177 return instead of error.
8178
81792016-04-22 Yao Qi <yao.qi@linaro.org>
8180
8181 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
8182 to 23.
8183
81842016-04-22 Yao Qi <yao.qi@linaro.org>
8185
8186 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
8187 signal when stepping over breakpoint with software single
8188 step.
8189
81902016-04-21 Pedro Alves <palves@redhat.com>
8191
8192 * linux-s390-low.c (s390_collect_ptrace_register)
8193 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
8194 add casts.
8195 (s390_check_regset): Use void * instead of gdb_byte *.
8196
81972016-04-20 Pedro Alves <palves@redhat.com>
8198
8199 * configure: Renegerate.
8200
82012016-04-20 Yao Qi <yao.qi@linaro.org>
8202
8203 * linux-aarch32-low.c: Include "arch/arm-linux.h".
8204 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
8205 number 16.
8206 (arm_store_gregset): Likewise.
8207
82082016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
8209
8210 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
8211 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
8212 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
8213 (amd64-avx-mpx-linux.c): New rules.
8214 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
8215 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
8216 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
8217 (srv_amd64_regobj): Add amd64-avx-mpx.o.
8218 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
8219 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
8220 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
8221 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
8222 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
8223 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
8224 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
8225 * linux-x86-low.c (x86_linux_read_description): Add case for
8226 X86_XSTATE_AVX_MPX_MASK.
8227 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
8228 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
8229 init_registers_i386_avx_mpx_linux.
8230 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8231 (initialize_low_tracepoint): Call
8232 init_registers_i386_avx_mpx_linux.
8233 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8234 (initialize_low_tracepoint): Call
8235 init_registers_amd64_avx_mpx_linux.
8236 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
8237 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
8238 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
8239 declarations.
8240
82412016-04-18 Pedro Alves <palves@redhat.com>
8242
8243 * configure: Regenerate.
8244
82452016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
8246
8247 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
8248 (aarch64_emit_sub): Likewise.
8249
82502016-04-12 Pedro Alves <palves@redhat.com>
8251
8252 * utils.c (prepare_to_throw_exception): Delete.
8253
82542016-04-05 Simon Marchi <simon.marchi@ericsson.com>
8255
8256 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
8257
82582016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
8259
8260 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
8261
82622016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
8263
8264 * linux-aarch64-ipa.c: Add <elf.h> include.
8265 * linux-ppc-ipa.c: Add <elf.h> include.
8266 * linux-s390-ipa.c: Add <elf.h> include.
8267
82682016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8269
8270 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
8271 (get_raw_reg_ptr): Likewise.
8272 (get_trace_state_variable_value_ptr): Likewise.
8273 (set_trace_state_variable_value_ptr): Likewise.
8274 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
8275 char *.
8276
82772016-03-31 Wei-cheng Wang <cole945@gmail.com>
8278 Marcin Kościelnicki <koriakin@0x04.net>
8279
8280 PR/17221
8281 * linux-ppc-low.c (emit_insns): New function.
8282 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
8283 (ppc_emit_prologue): New function.
8284 (ppc_emit_epilogue): New function.
8285 (ppc_emit_add): New function.
8286 (ppc_emit_sub): New function.
8287 (ppc_emit_mul): New function.
8288 (ppc_emit_lsh): New function.
8289 (ppc_emit_rsh_signed): New function.
8290 (ppc_emit_rsh_unsigned): New function.
8291 (ppc_emit_ext): New function.
8292 (ppc_emit_zero_ext): New function.
8293 (ppc_emit_log_not): New function.
8294 (ppc_emit_bit_and): New function.
8295 (ppc_emit_bit_or): New function.
8296 (ppc_emit_bit_xor): New function.
8297 (ppc_emit_bit_not): New function.
8298 (ppc_emit_equal): New function.
8299 (ppc_emit_less_signed): New function.
8300 (ppc_emit_less_unsigned): New function.
8301 (ppc_emit_ref): New function.
8302 (ppc_emit_const): New function.
8303 (ppc_emit_reg): New function.
8304 (ppc_emit_pop): New function.
8305 (ppc_emit_stack_flush): New function.
8306 (ppc_emit_swap): New function.
8307 (ppc_emit_stack_adjust): New function.
8308 (ppc_emit_call): New function.
8309 (ppc_emit_int_call_1): New function.
8310 (ppc_emit_void_call_2): New function.
8311 (ppc_emit_if_goto): New function.
8312 (ppc_emit_goto): New function.
8313 (ppc_emit_eq_goto): New function.
8314 (ppc_emit_ne_goto): New function.
8315 (ppc_emit_lt_goto): New function.
8316 (ppc_emit_le_goto): New function.
8317 (ppc_emit_gt_goto): New function.
8318 (ppc_emit_ge_goto): New function.
8319 (ppc_write_goto_address): New function.
8320 (ppc_emit_ops_impl): New static variable.
8321 (ppc64v1_emit_prologue): New function.
8322 (ppc64v2_emit_prologue): New function.
8323 (ppc64_emit_epilogue): New function.
8324 (ppc64_emit_add): New function.
8325 (ppc64_emit_sub): New function.
8326 (ppc64_emit_mul): New function.
8327 (ppc64_emit_lsh): New function.
8328 (ppc64_emit_rsh_signed): New function.
8329 (ppc64_emit_rsh_unsigned): New function.
8330 (ppc64_emit_ext): New function.
8331 (ppc64_emit_zero_ext): New function.
8332 (ppc64_emit_log_not): New function.
8333 (ppc64_emit_bit_and): New function.
8334 (ppc64_emit_bit_or): New function.
8335 (ppc64_emit_bit_xor): New function.
8336 (ppc64_emit_bit_not): New function.
8337 (ppc64_emit_equal): New function.
8338 (ppc64_emit_less_signed): New function.
8339 (ppc64_emit_less_unsigned): New function.
8340 (ppc64_emit_ref): New function.
8341 (ppc64_emit_const): New function.
8342 (ppc64v1_emit_reg): New function.
8343 (ppc64v2_emit_reg): New function.
8344 (ppc64_emit_pop): New function.
8345 (ppc64_emit_stack_flush): New function.
8346 (ppc64_emit_swap): New function.
8347 (ppc64v1_emit_call): New function.
8348 (ppc64v2_emit_call): New function.
8349 (ppc64v1_emit_int_call_1): New function.
8350 (ppc64v2_emit_int_call_1): New function.
8351 (ppc64v1_emit_void_call_2): New function.
8352 (ppc64v2_emit_void_call_2): New function.
8353 (ppc64_emit_if_goto): New function.
8354 (ppc64_emit_eq_goto): New function.
8355 (ppc64_emit_ne_goto): New function.
8356 (ppc64_emit_lt_goto): New function.
8357 (ppc64_emit_le_goto): New function.
8358 (ppc64_emit_gt_goto): New function.
8359 (ppc64_emit_ge_goto): New function.
8360 (ppc64v1_emit_ops_impl): New static variable.
8361 (ppc64v2_emit_ops_impl): New static variable.
8362 (ppc_emit_ops): New function.
8363 (linux_low_target): Wire in ppc_emit_ops.
8364
83652016-03-31 Wei-cheng Wang <cole945@gmail.com>
8366 Marcin Kościelnicki <koriakin@0x04.net>
8367
8368 PR/17221
8369 * Makefile.in: Add powerpc-*-ipa.o
8370 * configure.srv: Add ipa_obj for powerpc*-linux.
8371 * linux-ppc-ipa.c: New file.
8372 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
8373 includes.
8374 (PPC_FIELD): New macro.
8375 (PPC_SEXT): New macro.
8376 (PPC_OP6): New macro.
8377 (PPC_BO): New macro.
8378 (PPC_LI): New macro.
8379 (PPC_BD): New macro.
8380 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
8381 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
8382 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
8383 (ppc_get_thread_area): New function.
8384 (is_elfv2_inferior): New function.
8385 (gen_ds_form): New function.
8386 (GEN_STD): New macro.
8387 (GEN_STDU): New macro.
8388 (GEN_LD): New macro.
8389 (GEN_LDU): New macro.
8390 (gen_d_form): New function.
8391 (GEN_ADDI): New macro.
8392 (GEN_ADDIS): New macro.
8393 (GEN_LI): New macro.
8394 (GEN_LIS): New macro.
8395 (GEN_ORI): New macro.
8396 (GEN_ORIS): New macro.
8397 (GEN_LWZ): New macro.
8398 (GEN_STW): New macro.
8399 (GEN_STWU): New macro.
8400 (gen_xfx_form): New function.
8401 (GEN_MFSPR): New macro.
8402 (GEN_MTSPR): New macro.
8403 (GEN_MFCR): New macro.
8404 (GEN_MTCR): New macro.
8405 (GEN_SYNC): New macro.
8406 (GEN_LWSYNC): New macro.
8407 (gen_x_form): New function.
8408 (GEN_OR): New macro.
8409 (GEN_MR): New macro.
8410 (GEN_LWARX): New macro.
8411 (GEN_STWCX): New macro.
8412 (GEN_CMPW): New macro.
8413 (gen_md_form): New function.
8414 (GEN_RLDICL): New macro.
8415 (GEN_RLDICR): New macro.
8416 (gen_i_form): New function.
8417 (GEN_B): New macro.
8418 (GEN_BL): New macro.
8419 (gen_b_form): New function.
8420 (GEN_BNE): New macro.
8421 (GEN_LOAD): New macro.
8422 (GEN_STORE): New macro.
8423 (gen_limm): New function.
8424 (gen_atomic_xchg): New function.
8425 (gen_call): New function.
8426 (ppc_relocate_instruction): New function.
8427 (ppc_install_fast_tracepoint_jump_pad): New function.
8428 (ppc_get_min_fast_tracepoint_insn_len): New function.
8429 (ppc_get_ipa_tdesc_idx): New function.
8430 (the_low_target): Wire in the new functions.
8431 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
8432 tdescs.
8433 * linux-ppc-tdesc.h: New file.
8434
84352016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8436
8437 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8438 (alloc_jump_pad_buffer): New function.
8439 * linux-amd64-ipa.c: Add <sys/mman.h> include.
8440 (alloc_jump_pad_buffer): New function.
8441 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
8442 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8443 (alloc_jump_pad_buffer): New function.
8444 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
8445 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
8446 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
8447 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
8448
84492016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8450
8451 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
8452 * linux-amd64-ipa.c: Likewise.
8453 * linux-i386-ipa.c: Likewise.
8454 * linux-s390-ipa.c: Likewise.
8455 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
8456 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
8457 set_trace_state_variable_value_ptr.
8458 (struct ipa_sym_addresses): Likewise.
8459 (symbol_list): Likewise.
8460 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
8461 accessing gdb_collect directly.
8462 (gdb_collect_ptr_type): New typedef.
8463 (get_raw_reg_ptr_type): New typedef.
8464 (get_trace_state_variable_value_ptr_type): New typedef.
8465 (set_trace_state_variable_value_ptr_type): New typedef.
8466 (gdb_collect_ptr): New global.
8467 (get_raw_reg_ptr): New global.
8468 (get_trace_state_variable_value_ptr): New global.
8469 (set_trace_state_variable_value_ptr): New global.
8470 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
8471 accessing get_raw_reg directly.
8472 (get_get_tsv_func_addr): Likewise for
8473 get_trace_state_variable_value_ptr.
8474 (get_set_tsv_func_addr): Likewise for
8475 set_trace_state_variable_value_ptr.
8476 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
8477
84782016-03-30 Simon Marchi <simon.marchi@ericsson.com>
8479
8480 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
8481
84822016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8483
8484 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
8485 packets.
8486 (relocate_instruction): Remove own_buf.
8487 * server.c (own_buf): Make global.
8488 (handle_v_requests): Make global.
8489 * server.h (own_buf): New declaration.
8490 (handle_v_requests): New prototype.
8491
84922016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8493
8494 PR 18377
8495 * linux-s390-low.c (add_insns): New function.
8496 (s390_emit_prologue): New function.
8497 (s390_emit_epilogue): New function.
8498 (s390_emit_add): New function.
8499 (s390_emit_sub): New function.
8500 (s390_emit_mul): New function.
8501 (s390_emit_lsh): New function.
8502 (s390_emit_rsh_signed): New function.
8503 (s390_emit_rsh_unsigned): New function.
8504 (s390_emit_ext): New function.
8505 (s390_emit_log_not): New function.
8506 (s390_emit_bit_and): New function.
8507 (s390_emit_bit_or): New function.
8508 (s390_emit_bit_xor): New function.
8509 (s390_emit_bit_not): New function.
8510 (s390_emit_equal): New function.
8511 (s390_emit_less_signed): New function.
8512 (s390_emit_less_unsigned): New function.
8513 (s390_emit_ref): New function.
8514 (s390_emit_if_goto): New function.
8515 (s390_emit_goto): New function.
8516 (s390_write_goto_address): New function.
8517 (s390_emit_litpool): New function.
8518 (s390_emit_const): New function.
8519 (s390_emit_call): New function.
8520 (s390_emit_reg): New function.
8521 (s390_emit_pop): New function.
8522 (s390_emit_stack_flush): New function.
8523 (s390_emit_zero_ext): New function.
8524 (s390_emit_swap): New function.
8525 (s390_emit_stack_adjust): New function.
8526 (s390_emit_set_r2): New function.
8527 (s390_emit_int_call_1): New function.
8528 (s390_emit_void_call_2): New function.
8529 (s390_emit_eq_goto): New function.
8530 (s390_emit_ne_goto): New function.
8531 (s390_emit_lt_goto): New function.
8532 (s390_emit_le_goto): New function.
8533 (s390_emit_gt_goto): New function.
8534 (s390_emit_ge_goto): New function.
8535 (s390x_emit_prologue): New function.
8536 (s390x_emit_epilogue): New function.
8537 (s390x_emit_add): New function.
8538 (s390x_emit_sub): New function.
8539 (s390x_emit_mul): New function.
8540 (s390x_emit_lsh): New function.
8541 (s390x_emit_rsh_signed): New function.
8542 (s390x_emit_rsh_unsigned): New function.
8543 (s390x_emit_ext): New function.
8544 (s390x_emit_log_not): New function.
8545 (s390x_emit_bit_and): New function.
8546 (s390x_emit_bit_or): New function.
8547 (s390x_emit_bit_xor): New function.
8548 (s390x_emit_bit_not): New function.
8549 (s390x_emit_equal): New function.
8550 (s390x_emit_less_signed): New function.
8551 (s390x_emit_less_unsigned): New function.
8552 (s390x_emit_ref): New function.
8553 (s390x_emit_if_goto): New function.
8554 (s390x_emit_const): New function.
8555 (s390x_emit_call): New function.
8556 (s390x_emit_reg): New function.
8557 (s390x_emit_pop): New function.
8558 (s390x_emit_stack_flush): New function.
8559 (s390x_emit_zero_ext): New function.
8560 (s390x_emit_swap): New function.
8561 (s390x_emit_stack_adjust): New function.
8562 (s390x_emit_int_call_1): New function.
8563 (s390x_emit_void_call_2): New function.
8564 (s390x_emit_eq_goto): New function.
8565 (s390x_emit_ne_goto): New function.
8566 (s390x_emit_lt_goto): New function.
8567 (s390x_emit_le_goto): New function.
8568 (s390x_emit_gt_goto): New function.
8569 (s390x_emit_ge_goto): New function.
8570 (s390_emit_ops): New function.
8571 (struct linux_target_ops): Fill in emit_ops hook.
8572
85732016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8574
8575 PR 18377
8576 * Makefile.in: Add s390 IPA files.
8577 * configure.srv: Build IPA for s390.
8578 * linux-s390-ipa.c: New file.
8579 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
8580 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
8581 (tdesc_s390_linux32): Likewise.
8582 (init_registers_s390_linux32v1): Likewise.
8583 (tdesc_s390_linux32v1): Likewise.
8584 (init_registers_s390_linux32v2): Likewise.
8585 (tdesc_s390_linux32v2): Likewise.
8586 (init_registers_s390_linux64): Likewise.
8587 (tdesc_s390_linux64): Likewise.
8588 (init_registers_s390_linux64v1): Likewise.
8589 (tdesc_s390_linux64v1): Likewise.
8590 (init_registers_s390_linux64v2): Likewise.
8591 (tdesc_s390_linux64v2): Likewise.
8592 (init_registers_s390_te_linux64): Likewise.
8593 (tdesc_s390_te_linux64): Likewise.
8594 (init_registers_s390_vx_linux64): Likewise.
8595 (tdesc_s390_vx_linux64): Likewise.
8596 (init_registers_s390_tevx_linux64): Likewise.
8597 (tdesc_s390_tevx_linux64): Likewise.
8598 (init_registers_s390x_linux64): Likewise.
8599 (tdesc_s390x_linux64): Likewise.
8600 (init_registers_s390x_linux64v1): Likewise.
8601 (tdesc_s390x_linux64v1): Likewise.
8602 (init_registers_s390x_linux64v2): Likewise.
8603 (tdesc_s390x_linux64v2): Likewise.
8604 (init_registers_s390x_te_linux64): Likewise.
8605 (tdesc_s390x_te_linux64): Likewise.
8606 (init_registers_s390x_vx_linux64): Likewise.
8607 (tdesc_s390x_vx_linux64): Likewise.
8608 (init_registers_s390x_tevx_linux64): Likewise.
8609 (tdesc_s390x_tevx_linux64): Likewise.
8610 (have_hwcap_s390_vx): New static variable.
8611 (s390_arch_setup): Fill have_hwcap_s390_vx.
8612 (s390_get_thread_area): New function.
8613 (s390_ft_entry_gpr_esa): New const.
8614 (s390_ft_entry_gpr_zarch): New const.
8615 (s390_ft_entry_misc): New const.
8616 (s390_ft_entry_fr): New const.
8617 (s390_ft_entry_vr): New const.
8618 (s390_ft_main_31): New const.
8619 (s390_ft_main_64): New const.
8620 (s390_ft_exit_fr): New const.
8621 (s390_ft_exit_vr): New const.
8622 (s390_ft_exit_misc): New const.
8623 (s390_ft_exit_gpr_esa): New const.
8624 (s390_ft_exit_gpr_zarch): New const.
8625 (append_insns): New function.
8626 (s390_relocate_instruction): New function.
8627 (s390_install_fast_tracepoint_jump_pad): New function.
8628 (s390_get_min_fast_tracepoint_insn_len): New function.
8629 (s390_get_ipa_tdesc_idx): New function.
8630 (struct linux_target_ops): Wire in the above functions.
8631 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
8632 * linux-s390-tdesc.h: New file.
8633
86342016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8635
8636 * linux-s390-low.c (s390_supports_tracepoints): New function.
8637 (struct linux_target_ops): Fill supports_tracepoints hook.
8638
86392016-03-18 Yao Qi <yao.qi@linaro.org>
8640
8641 * linux-low.c (lwp_signal_can_be_delivered): New function.
8642 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
8643
86442016-03-18 Yao Qi <yao.qi@linaro.org>
8645
8646 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
8647 0 if signal is enqueued. Remove 'signal' from one debugging
8648 message. Move one debugging message to some lines below.
8649 Remove code setting 'signal' to 0.
8650
86512016-03-18 Yao Qi <yao.qi@linaro.org>
8652
8653 * linux-low.c (linux_low_filter_event): Remove redundant
8654 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
8655
86562016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
8657
8658 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
8659 (struct linux_target_ops): Wire in the above.
8660
86612016-03-03 Yao Qi <yao.qi@linaro.org>
8662
8663 * linux-low.c: Update comments to start_step_over.
8664
86652016-03-03 Yao Qi <yao.qi@linaro.org>
8666
8667 PR server/19736
8668 * linux-low.c (handle_extended_wait): Set child suspended
8669 if event_lwp->bp_reinsert isn't zero.
8670
86712016-03-02 Yao Qi <yao.qi@linaro.org>
8672
8673 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
8674 enqueue_pending_signal.
8675
86762016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
8677
8678 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
8679 is actually loaded.
8680
86812016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8682
8683 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
8684 (s390_regmap_3264) [!__s390x__]: New global.
8685 (s390_collect_ptrace_register): Skip map entries containing -1.
8686 (s390_supply_ptrace_register): Ditto.
8687 (s390_fill_gprs_high): New function.
8688 (s390_store_gprs_high): New function.
8689 (s390_regsets): Add NT_S390_HIGH_GPRS.
8690 (s390_get_hwcap): Enable on 31-bit.
8691 (have_hwcap_s390_high_gprs): Enable on 31-bit.
8692 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
8693 Detect NT_S390_HIGH_GPRS.
8694 (s390_usrregs_info_3264): Enable on 31-bit.
8695 (s390_regs_info): Enable regs_info_3264 on 31-bit.
8696 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
8697
86982016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8699
8700 PR gdb/13808
8701 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
8702 * configure.srv: Ditto.
8703 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
8704 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
8705 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
8706 (init_registers_amd64_linux): Remove prototype.
8707 (tdesc_amd64_linux): Remove declaration.
8708 (get_ipa_tdesc): New function.
8709 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8710 initialize remaining tdescs.
8711 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
8712 (init_registers_i386_linux): Remove prototype.
8713 (tdesc_i386_linux): Remove declaration.
8714 (get_ipa_tdesc): New function.
8715 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8716 initialize remaining tdescs.
8717 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
8718 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
8719 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
8720 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
8721 (x86_get_ipa_tdesc_idx): New function.
8722 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
8723 * linux-x86-tdesc.h: New file.
8724 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
8725 (target_get_ipa_tdesc_idx): New macro.
8726 * tracepoint.c (ipa_tdesc_idx): New macro.
8727 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
8728 (symbol_list): Add ipa_tdesc_idx.
8729 (cmd_qtstart): Write ipa_tdesc_idx in the target.
8730 (ipa_tdesc): Remove.
8731 (ipa_tdesc_idx): New variable.
8732 (get_context_regcache): Use get_ipa_tdesc.
8733 (gdb_collect): Ditto.
8734 (gdb_probe): Ditto.
8735 * tracepoint.h (get_ipa_tdesc): New prototype.
8736 (ipa_tdesc): Remove.
8737
87382016-02-24 Pedro Alves <palves@redhat.com>
8739
8740 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
8741 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
8742 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
8743 Factor out common code between the USE_SIGTRAP_SIGINFO and
8744 !USE_SIGTRAP_SIGINFO blocks.
8745 (linux_low_filter_event): Call save_stop_reason instead of
8746 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
8747 Update comments.
8748 (linux_wait_1): Update comments.
8749
87502016-02-24 Wei-cheng Wang <cole945@gmail.com>
8751
8752 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
8753 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
8754 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
8755 ppc_insert_point, ppc_remove_point.
8756
87572016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
8758
8759 * linux-s390-low.c (s390_supports_z_point_type): New function.
8760 (struct linux_target_ops): Wire s390_supports_z_point_type in.
8761
87622016-02-16 Yao Qi <yao.qi@linaro.org>
8763
8764 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
8765 PC. Get pc from regcache_read_pc.
8766
87672016-02-12 Yao Qi <yao.qi@linaro.org>
8768
8769 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
8770 or linux_get_pc_32bit.
8771 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
8772
87732016-02-12 Yao Qi <yao.qi@linaro.org>
8774
8775 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
8776 arm_linux_get_next_pcs_fixup.
8777
87782016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
8779
8780 * tracepoint.c (x_tracepoint_action_download): Change
8781 write_inferior_data_ptr to write_inferior_data_pointer.
8782 (cmd_qtstart): Likewise.
8783 (write_inferior_data_ptr): Remove.
8784 (download_agent_expr): Change write_inferior_data_ptr to
8785 write_inferior_data_pointer.
8786 (download_tracepoint_1): Likewise.
8787 (download_tracepoint): Likewise.
8788 (download_trace_state_variables): Likewise.
8789
87902016-02-11 Wei-cheng Wang <cole945@gmail.com>
8791 Marcin Kościelnicki <koriakin@0x04.net>
8792
8793 * tracepoint.c (struct tracepoint_action_ops): Remove.
8794 (struct tracepoint_action): Remove ops.
8795 (m_tracepoint_action_download, r_tracepoint_action_download)
8796 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
8797 size and offset accordingly.
8798 (m_tracepoint_action_ops, r_tracepoint_action_ops)
8799 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
8800 (tracepoint_action_send, tracepoint_action_download): New functions.
8801 Helpers for trace action handlers.
8802 (add_tracepoint_action): Remove setup actions ops.
8803 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
8804
88052016-02-10 Yao Qi <yao.qi@linaro.org>
8806
8807 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
8808
88092016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8810
8811 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
8812 to AC_OUTPUT.
8813 * configure: Regenerate.
8814
88152016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8816
8817 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
8818 void * to gdb_byte *.
8819 * linux-low.c (siginfo_fixup): Likewise.
8820 (linux_xfer_siginfo): Likewise.
8821 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
8822 Likewise.
8823 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
8824
88252016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
8826
8827 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
8828 to srv_tgtobj.
8829 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
8830 to srv_tgtobj.
8831 * linux-x86-low.c [__x86_64__]: Include
8832 "nat/amd64-linux-siginfo.h".
8833 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
8834 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
8835 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
8836 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
8837 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
8838 (cpt_si_fd, si_timerid, si_overrun): Move from
8839 nat/amd64-linux-siginfo.c.
8840 * Makefile.in (amd64-linux-siginfo.o:): New rule.
8841
88422016-01-28 Simon Marchi <simon.marchi@ericsson.com>
8843
8844 * server.c (skip_to_semicolon): Remove.
8845 (process_point_options): Use strchrnul instead of
8846 skip_to_semicolon.
8847
88482016-01-26 Yao Qi <yao.qi@linaro.org>
8849
8850 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
8851 * linux-low.c (install_software_single_step_breakpoints): Don't
8852 call regcache_read_pc.
8853 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
8854 argument pc.
8855
88562016-01-26 Yao Qi <yao.qi@linaro.org>
8857
8858 * linux-low.c (install_software_single_step_breakpoints): Call
8859 regcache_read_pc instead of get_pc.
8860
88612016-01-26 Yao Qi <yao.qi@linaro.org>
8862
8863 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
8864 (unblock_async_io): Rename to ...
8865 (block_unblock_async_io): ... it. New function.
8866 (enable_async_io): Don't install SIGIO handler. Unblock it
8867 instead.
8868 (disable_async_io): Don't ignore SIGIO. Block it instead.
8869 (initialize_async_io): Install SIGIO handler. Don't call
8870 unblock_async_io.
8871
88722016-01-26 Yao Qi <yao.qi@linaro.org>
8873
8874 * remote-utils.c (getpkt): If the buffer isn't empty, and the
8875 first character is '\003', call *the_target->request_interrupt.
8876
88772016-01-25 Yao Qi <yao.qi@linaro.org>
8878
8879 * remote-utils.c (new_thread_notify): Remove.
8880 (dead_thread_notify): Likewise.
8881 * remote-utils.h (new_thread_notify): Remove declaration.
8882 (dead_thread_notify): Likewise.
8883
88842016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
8885
8886 * gdb.trace/pending.exp: Fix expected message on continue.
8887
88882016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
8889
8890 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
8891 it works properly on big-endian machines where sizeof (CORE_ADDR)
8892 != sizeof (void *).
8893
88942016-01-21 Pedro Alves <palves@redhat.com>
8895
8896 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
8897 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
8898 * configure: Regenerate.
8899
89002016-01-21 Yao Qi <yao.qi@linaro.org>
8901
8902 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
8903 is_thumb and set it according to CPSR saved on the stack.
8904 (get_next_pcs_syscall_next_pc): Pass is_thumb to
8905 arm_sigreturn_next_pc.
8906
89072016-01-18 Yao Qi <yao.qi@linaro.org>
8908
8909 * linux-low.c (linux_set_pc_64bit): New function.
8910 (linux_get_pc_64bit): New function.
8911 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
8912 Declare.
8913 * linux-sparc-low.c (debug_threads): Remove declaration.
8914 (sparc_get_pc): Remove.
8915 (the_low_target): Use linux_get_pc_64bit instead of
8916 sparc_get_pc.
8917 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
8918 (the_low_target): Use linux_get_pc_64bit and
8919 linux_set_pc_64bit.
8920
89212016-01-18 Yao Qi <yao.qi@linaro.org>
8922
8923 * linux-arm-low.c (debug_threads): Remove declaration.
8924 (arm_get_pc, arm_set_pc): Remove.
8925 (the_low_target): Use linux_get_pc_32bit and
8926 linux_set_pc_32bit.
8927 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
8928 (the_low_target): Use linux_get_pc_32bit and
8929 linux_set_pc_32bit.
8930 * linux-cris-low.c (debug_threads): Remove declaration.
8931 (cris_get_pc, cris_set_pc,): Remove.
8932 (the_low_target): Use linux_get_pc_32bit and
8933 linux_set_pc_32bit.
8934 * linux-crisv32-low.c (debug_threads): Remove declaration.
8935 (cris_get_pc, cris_set_pc): Remove.
8936 (the_low_target): Use linux_get_pc_32bit and
8937 linux_set_pc_32bit.
8938 * linux-low.c: Include inttypes.h.
8939 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
8940 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
8941 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
8942 (the_low_target): Use linux_get_pc_32bit and
8943 linux_set_pc_32bit.
8944 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
8945 (the_low_target): Use linux_get_pc_32bit and
8946 linux_set_pc_32bit.
8947 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
8948 (the_low_target): Use linux_get_pc_32bit and
8949 linux_set_pc_32bit.
8950 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
8951 (the_low_target): Use linux_get_pc_32bit and
8952 linux_set_pc_32bit.
8953 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
8954 (the_low_target): Use linux_get_pc_32bit and
8955 linux_set_pc_32bit.
8956
89572016-01-18 Gary Benson <gbenson@redhat.com>
8958
8959 * configure.ac (AC_FUNC_FORK): New check.
8960 * config.in: Regenerate.
8961 * configure: Likewise.
8962
89632016-01-14 Yao Qi <yao.qi@linaro.org>
8964
8965 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
8966 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
8967 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
8968 arm_get_next_pcs_ctor.
8969
89702016-01-12 Josh Stone <jistone@redhat.com>
8971 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8972
8973 * inferiors.h: Include "gdb_vecs.h".
8974 (struct process_info): Add syscalls_to_catch.
8975 * inferiors.c (remove_process): Free syscalls_to_catch.
8976 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
8977 syscall_return stops.
8978 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
8979 * server.c (handle_general_set): Handle QCatchSyscalls.
8980 (handle_query): Report support for QCatchSyscalls.
8981 * target.h (struct target_ops): Add supports_catch_syscall.
8982 (target_supports_catch_syscall): New macro.
8983 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
8984 (struct lwp_info): Add syscall_state.
8985 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
8986 Maintain syscall_state and syscalls_to_catch across exec.
8987 (get_syscall_trapinfo): New function, proxy to the_low_target.
8988 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
8989 (linux_low_filter_event): Toggle syscall_state entry/return for
8990 syscall traps, and set it ignored for all others.
8991 (gdb_catching_syscalls_p): New function.
8992 (gdb_catch_this_syscall_p): New function.
8993 (linux_wait_1): Handle SYSCALL_SIGTRAP.
8994 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
8995 (linux_supports_catch_syscall): New function.
8996 (linux_target_ops): Install it.
8997 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
8998 (the_low_target): Install it.
8999
90002016-01-12 Mike Frysinger <vapier@gentoo.org>
9001
9002 * acinclude.m4: Include new ../warning.m4 file.
9003 * configure: Regenerated.
9004 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
9005
90062016-01-12 Mike Frysinger <vapier@gentoo.org>
9007
9008 * ax.c (is_goto_target): Mark static.
9009 * linux-low.c (register_addr): Likewise.
9010 (linux_fetch_registers, linux_store_registers): Likewise.
9011 * mem-break.c (any_persistent_commands): Fix old prototype.
9012 (add_commands_to_breakpoint): Mark static.
9013 * regcache.c (find_register_by_name): Delete unused func.
9014 * remote-utils.c (hex_or_minus_one): Mark static.
9015 * server.c (monitor_show_help): Mark static.
9016 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
9017 handle_v_requests): Likewise.
9018
90192016-01-12 Pedro Alves <palves@redhat.com>
9020
9021 Remove use of the registered trademark symbol throughout.
9022
90232016-01-08 Yao Qi <yao.qi@linaro.org>
9024
9025 * remote-utils.c (getpkt): If c is '\003', call target hook
9026 request_interrupt.
9027
90282016-01-06 Yao Qi <yao.qi@linaro.org>
9029
9030 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
9031 linux-aarch32-low.c.
9032 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9033 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
9034 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9035 (thumb2_breakpoint): Declare.
9036 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
9037 linux-aarch32-low.h.
9038 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9039 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
9040 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9041
90422016-01-01 Joel Brobecker <brobecker@adacore.com>
9043
9044 * gdbreplay.c (gdbreplay_version): Change copyright year in
9045 version message.
9046 * server.c (gdbserver_version): Likewise.
9047
90482015-12-28 Patrick Palka <patrick@parcs.ath.cx>
9049
9050 * server.c (crc32_table): Delete.
9051 (crc32): Use libiberty's xcrc32 function.
9052
90532015-12-22 Joel Brobecker <brobecker@adacore.com>
9054
9055 * lynx-low.c (lynx_delete_thread_callback): New function.
9056 (lynx_mourn): Properly delete our process and all of its
9057 threads. Remove call to clear_inferiors.
9058
90592015-12-22 Joel Brobecker <brobecker@adacore.com>
9060
9061 * target.c (thread_search_callback): Add check that
9062 the thread_stopped target callback is not NULL before
9063 calling it.
9064
90652015-12-21 Yao Qi <yao.qi@linaro.org>
9066
9067 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
9068 arm breakpoint.
9069
90702015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9071
9072 * server.c (handle_query): Call target_supports_software_single_step.
9073
90742015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9075
9076 * linux-low.c (single_step): New function.
9077 (linux_resume_one_lwp_throw): Call single_step.
9078 (start_step_over): Likewise.
9079
90802015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9081
9082 * Makefile.in (SFILES): Append arch/arm-linux.c,
9083 arch/arm-get-next-pcs.c.
9084 (arm-linux.o): New rule.
9085 (arm-get-next-pcs.o): New rule.
9086 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
9087 arm-linux.o.
9088 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
9089 to linux-aarch32-low.c.
9090 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9091 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9092 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9093 (thumb2_breakpoint_len): Likewise.
9094 (arm_is_thumb_mode): Make non-static.
9095 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
9096 from linux-aarch32-low.c.
9097 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9098 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9099 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9100 (thumb2_breakpoint_len): Likewise.
9101 (arm_is_thumb_mode): New declaration.
9102 * linux-arm-low.c: Include arch/arm-linux.h
9103 aarch/arm-get-next-pcs.h, sys/syscall.h.
9104 (get_next_pcs_ops): New struct.
9105 (get_next_pcs_addr_bits_remove): New function.
9106 (get_next_pcs_is_thumb): New function.
9107 (get_next_pcs_read_memory_unsigned_integer): Likewise.
9108 (arm_sigreturn_next_pc): Likewise.
9109 (get_next_pcs_syscall_next_pc): Likewise.
9110 (arm_gdbserver_get_next_pcs): Likewise.
9111 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
9112 Initialize.
9113 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
9114 * server.h: Include gdb_vecs.h.
9115
91162015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9117
9118 * Makefile.in (SFILES): Append common/common-regcache.c.
9119 (OBS): Append common-regcache.o.
9120 (common-regcache.o): New rule.
9121 * regcache.c (init_register_cache): Initialize cache to
9122 REG_UNAVAILABLE.
9123 (regcache_raw_read_unsigned): New function.
9124 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
9125 register_status enum.
9126
91272015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9128
9129 * linux-aarch64-low.c (the_low_targets): Rename
9130 breakpoint_reinsert_addr to get_next_pcs.
9131 * linux-arm-low.c (the_low_targets): Likewise.
9132 * linux-bfin-low.c (the_low_targets): Likewise.
9133 * linux-cris-low.c (the_low_targets): Likewise.
9134 * linux-crisv32-low.c (the_low_targets): Likewise.
9135 * linux-low.c (can_software_single_step): Likewise.
9136 (install_software_single_step_breakpoints): New function.
9137 (start_step_over): Use install_software_single_step_breakpoints.
9138 * linux-low.h: New CORE_ADDR vector.
9139 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
9140 get_next_pcs.
9141 * linux-mips-low.c (the_low_targets): Likewise.
9142 * linux-nios2-low.c (the_low_targets): Likewise.
9143 * linux-sparc-low.c (the_low_targets): Likewise.
9144
91452015-12-17 Pedro Alves <palves@redhat.com>
9146
9147 * linux-low.c (linux_kill_one_lwp): Remove references to
9148 LinuxThreads.
9149 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
9150 to 'kill'.
9151 (linux_init_signals): Delete.
9152 (initialize_low): Adjust.
9153 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
9154
91552015-12-16 Pedro Alves <palves@redhat.com>
9156
9157 * configure.ac (compiler warning flags): When testing a
9158 -Wno-foo option, check whether -Wfoo works instead.
9159 * configure: Regenerate.
9160
91612015-12-11 Don Breazeal <donb@codesourcery.com>
9162
9163 * server.c (process_serial_event): Don't exit from gdbserver
9164 in remote mode if there are still active inferiors.
9165
91662015-12-11 Yao Qi <yao.qi@linaro.org>
9167
9168 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
9169 arm_breakpoint_at if the process is 32-bit.
9170
91712015-12-11 Yao Qi <yao.qi@linaro.org>
9172
9173 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
9174 arm breakpoint.
9175
91762015-12-07 Yao Qi <yao.qi@linaro.org>
9177
9178 * configure.srv: Append arm.o to srv_tgtobj for
9179 aarch64*-*-linux* target.
9180 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
9181 from linux-arm-low.c.
9182 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9183 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9184 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9185 (thumb2_breakpoint_len): Likewise.
9186 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
9187 (arm_breakpoint_kinds): Likewise.
9188 (arm_breakpoint_kind_from_pc): Likewise.
9189 (arm_sw_breakpoint_from_kind): Likewise.
9190 (arm_breakpoint_kind_from_current_state): Likewise.
9191 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
9192 (arm_sw_breakpoint_from_kind): Declare.
9193 (arm_breakpoint_kind_from_current_state): Declare.
9194 (arm_breakpoint_at): Declare.
9195 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
9196 arm_sw_breakpoint_from_kind if process is 32-bit.
9197 (aarch64_breakpoint_kind_from_pc): New function.
9198 (aarch64_breakpoint_kind_from_current_state): New function.
9199 (the_low_target): Initialize fields breakpoint_kind_from_pc
9200 and breakpoint_kind_from_current_state.
9201 * linux-arm-low.c (arm_breakpoint_kinds): Move to
9202 linux-aarch32-low.c.
9203 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
9204 (arm_breakpoint, arm_breakpoint_len): Likewise.
9205 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
9206 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9207 (arm_is_thumb_mode): Likewise.
9208 (arm_breakpoint_at): Likewise.
9209 (arm_breakpoint_kind_from_pc): Likewise.
9210 (arm_sw_breakpoint_from_kind): Likewise.
9211 (arm_breakpoint_kind_from_current_state): Likewise.
9212
9213 Revert:
9214 2015-08-04 Yao Qi <yao.qi@linaro.org>
9215
9216 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
9217 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
9218 * server.c (extended_protocol): Remove "static".
9219 * server.h (extended_protocol): Declare it.
9220
92212015-12-04 Josh Stone <jistone@redhat.com>
9222
9223 * target.h (struct target_ops) <arch_setup>: Rename to ...
9224 (struct target_ops) <post_create_inferior>: ... this.
9225 (target_arch_setup): Rename to ...
9226 (target_post_create_inferior): ... this, calling post_create_inferior.
9227 * server.c (start_inferior): Update target_arch_setup calls to
9228 target_post_create_inferior.
9229 * linux-low.c (linux_low_ptrace_options): Forward declare.
9230 (linux_arch_setup): Update its comment for general use.
9231 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
9232 (struct linux_target_ops): Use linux_post_create_inferior.
9233 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
9234 to post_create_inferior.
9235 * nto-low.c (struct nto_target_ops): Likewise.
9236 * spu-low.c (struct spu_target_ops): Likewise.
9237 * win32-low.c (struct win32_target_ops): Likewise.
9238
92392015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
9240
9241 * linux-arm-low.c: Remove duplicate arch/arm.h include.
9242
92432015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9244
9245 * linux-arm-low.c (arm_reinsert_addr): Remove function.
9246 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
9247 * linux-cris-low.c (cris_reinsert_addr> Remove function.
9248 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9249 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
9250 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9251 * linux-mips-low.c (mips_reinsert_addr): Remove function.
9252 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9253 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
9254 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9255 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
9256 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9257
92582015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9259
9260 * linux-low.c (linux_look_up_symbols): Don't call
9261 linux_supports_traceclone.
9262 * linux-low.h (thread_db_init): Remove use_events argument.
9263 * thread-db.c (thread_db_use_event): Remove global variable.
9264 (struct thread_db) <td_thr_event_enable_p>: Remove field.
9265 (struct thread_db) <td_create_bp>: Remove field.
9266 (thread_db_create_event): Remove function.
9267 (thread_db_enable_reporting): Likewise.
9268 (find_one_thread): Don't check for thread_db_use_events.
9269 (attach_thread): Likewise.
9270 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
9271 (try_thread_db_load_1): Don't check for thread_db_use_events.
9272 (thread_db_init): Remove use_events argument and thread events
9273 handling.
9274 (remove_thread_event_breakpoints): Remove function.
9275 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
9276
92772015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9278
9279 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
9280 New function.
9281 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9282 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
9283 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9284 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
9285 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
9286 Initialize.
9287 * linux-crisv32-low.c (cris_supports_hardware_single_step):
9288 New function.
9289 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9290 * linux-low.c (can_hardware_single_step): Use
9291 supports_hardware_single_step.
9292 (can_software_single_step): New function.
9293 (start_step_over): Call can_software_single_step.
9294 (linux_supports_hardware_single_step): New function.
9295 (struct target_ops) <supports_software_single_step>: Initialize.
9296 * linux-low.h (struct linux_target_ops)
9297 <supports_hardware_single_step>: Initialize.
9298 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
9299 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9300 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
9301 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
9302 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
9303 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9304 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
9305 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9306 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
9307 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
9308 Initialize.
9309 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
9310 (struct linux_target_ops) <tile_supports_hardware_single_step>:
9311 Initialize.
9312 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
9313 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9314 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
9315 New function.
9316 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9317 * target.h (struct target_ops): <supports_software_single_step>:
9318 New field.
9319 (target_supports_software_single_step): New macro.
9320
93212015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9322
9323 * linux-low.c (linux_wait_1): Fix pc advance condition.
9324 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
9325 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
9326
93272015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9328
9329 * linux-arm-low.c (arm_is_thumb_mode): New function.
9330 (arm_breakpoint_at): Use arm_is_thumb_mode.
9331 (arm_breakpoint_kind_from_current_state): New function.
9332 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
9333 Initialize.
9334 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
9335 (linux_breakpoint_kind_from_current_state): New function.
9336 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
9337 * linux-low.h (struct linux_target_ops)
9338 <breakpoint_kind_from_current_state>: New field.
9339 * target.h (struct target_ops): Likewise.
9340 (target_breakpoint_kind_from_current_state): New macro.
9341
93422015-11-30 Pedro Alves <palves@redhat.com>
9343
9344 * linux-low.c (linux_resume): Wake up the event loop before
9345 returning.
9346
93472015-11-30 Pedro Alves <palves@redhat.com>
9348
9349 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
9350 check.
9351 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
9352 to -1.
9353 * target.c (struct thread_search): New structure.
9354 (thread_search_callback): New function.
9355 (prev_general_thread): New global.
9356 (prepare_to_access_memory, done_accessing_memory): New functions.
9357 * target.h (prepare_to_access_memory, done_accessing_memory):
9358 Replace macros with function declarations.
9359
93602015-11-30 Pedro Alves <palves@redhat.com>
9361
9362 PR 14618
9363 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
9364 report TARGET_WAITKIND_NO_RESUMED.
9365 * remote-utils.c (prepare_resume_reply): Handle
9366 TARGET_WAITKIND_NO_RESUMED.
9367 * server.c (report_no_resumed): New global.
9368 (handle_query) <qSupported>: Handle "no-resumed+". Report
9369 "no-resumed+" support.
9370 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
9371 return error if the client doesn't support no-resumed events.
9372 (push_stop_notification): New function.
9373 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
9374 events if the client supports them.
9375
93762015-11-30 Pedro Alves <palves@redhat.com>
9377
9378 * linux-low.c (thread_still_has_status_pending_p): Don't check
9379 vCont;t here.
9380 (lwp_resumed): New function.
9381 (status_pending_p_callback): Return early if the LWP is not
9382 supposed to be resumed.
9383
93842015-11-30 Pedro Alves <palves@redhat.com>
9385
9386 * linux-low.c (handle_extended_wait): Assert that the LWP's
9387 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
9388 thread create events, leave the new child's status pending.
9389 (linux_low_filter_event): If GDB wants to hear about thread exit
9390 events, leave the LWP marked dead and don't delete it.
9391 (linux_wait_for_event_filtered): Don't check for thread exit.
9392 (filter_exit_event): New function.
9393 (linux_wait_1): Use it, when returning an exit event.
9394 (linux_resume_one_lwp_throw): Assert that the LWP's
9395 waitstatus is TARGET_WAITKIND_IGNORE.
9396 * remote-utils.c (prepare_resume_reply): Handle
9397 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
9398 * server.c (report_thread_events): New global.
9399 (handle_general_set): Handle QThreadEvents.
9400 (handle_query) <qSupported>: Handle and report QThreadEvents+;
9401 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
9402 TARGET_WAITKIND_THREAD_EXITED.
9403 * server.h (report_thread_events): Declare.
9404
94052015-11-30 Pedro Alves <palves@redhat.com>
9406
9407 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
9408 the thread's last_resume_kind was resume_stop.
9409
94102015-11-30 Pedro Alves <palves@redhat.com>
9411
9412 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
9413 before returning.
9414
94152015-11-30 Pedro Alves <palves@redhat.com>
9416
9417 * server.c (handle_v_requests): Handle vCtrlC.
9418
94192015-11-30 Pedro Alves <palves@redhat.com>
9420
9421 * gdbthread.h (find_any_thread_of_pid): Declare.
9422 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
9423 functions.
9424 * server.c (handle_query): If current_thread is NULL, look for
9425 another thread of the selected process.
9426
94272015-11-26 Daniel Colascione <dancol@dancol.org>
9428 Simon Marchi <simon.marchi@ericsson.com>
9429
9430 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
9431 * server.c (handle_qxfer_threads_worker): Refactor to include thread
9432 name in reply.
9433 * target.h (struct target_ops) <thread_name>: New field.
9434 (target_thread_name): New macro.
9435
94362015-11-23 Joel Brobecker <brobecker@adacore.com>
9437
9438 * regcache.h (regcache_invalidate_pid): Add declaration.
9439 * regcache.c (regcache_invalidate_pid): New function, extracted
9440 from regcache_invalidate.
9441 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
9442 Add trivial documentation comment.
9443 * lynx-low.c: Use regcache_invalidate_pid instead of
9444 regcache_invalidate.
9445
94462015-11-23 Joel Brobecker <brobecker@adacore.com>
9447
9448 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
9449 and Elf64_auxv_t if the target is Android.
9450
94512015-11-22 Doug Evans <xdje42@gmail.com>
9452
9453 * target.h: #include <sys/types.h>.
9454
94552015-11-19 Pedro Alves <palves@redhat.com>
9456
9457 * linux-low.c (linux_process_qsupported): Change prototype.
9458 Adjust.
9459 * linux-low.h (struct linux_target_ops) <process_qsupported>:
9460 Change prototype.
9461 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
9462 and adjust to loop over all features.
9463 * server.c (handle_query) <qSupported>: Adjust to call
9464 target_process_qsupported once, passing it a vector of unprocessed
9465 features.
9466 * target.h (struct target_ops) <process_qsupported>: Change
9467 prototype.
9468 (target_process_qsupported): Adjust.
9469
94702015-11-19 Pedro Alves <palves@redhat.com>
9471
9472 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
9473 mode.
9474 * configure: Regenerate.
9475
94762015-11-19 Pedro Alves <palves@redhat.com>
9477
9478 * configure: Regenerate.
9479
94802015-11-19 Yao Qi <yao.qi@linaro.org>
9481
9482 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
9483 type to uint32_t.
9484
94852015-11-19 Yao Qi <yao.qi@linaro.org>
9486
9487 * linux-aarch64-low.c (enum aarch64_operand_type): New.
9488 (struct aarch64_operand): Move enum out.
9489
94902015-11-19 Yao Qi <yao.qi@linaro.org>
9491
9492 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
9493 struct user_fpsimd_state *.
9494 (aarch64_store_fpregset): Likewise.
9495
94962015-11-19 Yao Qi <yao.qi@linaro.org>
9497
9498 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
9499 struct user_pt_regs *.
9500 (aarch64_store_gregset): Likewise.
9501
95022015-11-18 Pedro Alves <palves@redhat.com>
9503
9504 * Makefile.in (all_object_files): Add $IPA_OBJS.
9505
95062015-11-17 Pedro Alves <palves@redhat.com>
9507
9508 * win32-low.c (win32_resume): Use gdb_signal_from_host,
9509 GDB_SIGNAL_0 and gdb_signal_to_string.
9510
95112015-11-17 Pedro Alves <palves@redhat.com>
9512
9513 * win32-low.c (handle_output_debug_string): Remove parameter.
9514 (win32_kill): Remove our_status local and adjust call to
9515 handle_output_debug_string.
9516 (get_child_debug_event): Adjust call to
9517 handle_output_debug_string.
9518
95192015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9520
9521 * linux-mips-low.c (mips_fill_gregset): Add cast.
9522 (mips_store_gregset): Likewise.
9523 (mips_fill_fpregset): Likewise.
9524 (mips_store_fpregset): Likewise.
9525
95262015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9527
9528 * linux-mips-low.c (mips_add_watchpoint): Rename private to
9529 priv.
9530
95312015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9532
9533 * linux-mips-low.c (mips_linux_new_thread): Change type of
9534 watch_type to enum target_hw_bp_type.
9535
95362015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9537
9538 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
9539 Change return type to arm_hwbp_type.
9540
95412015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9542
9543 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
9544 (arm_store_gregset): Likewise.
9545 * linux-arm-low.c (arm_get_hwcap): Likewise.
9546 (arm_read_description): Likewise.
9547
95482015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9549
9550 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
9551
95522015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9553
9554 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
9555 (ppc_fill_vsxregset): Likewise.
9556 (ppc_store_vsxregset): Likewise.
9557 (ppc_fill_vrregset): Likewise.
9558 (ppc_store_vrregset): Likewise.
9559 (ppc_fill_evrregset): Likewise.
9560 (ppc_store_evrregset): Likewise.
9561
95622015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9563
9564 * linux-ppc-low.c (ppc_usrregs_info): Remove
9565 forward-declaration.
9566 (ppc_arch_setup): Move lower in file.
9567
95682015-10-30 Simon Marchi <simon.marchi@ericsson.com>
9569
9570 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
9571 (ps_pdwrite): Likewise.
9572
95732015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
9574
9575 * linux-arm-low.c (arm_new_thread): Move pointer dereference
9576 to after assert checks.
9577
95782015-10-29 Simon Marchi <simon.marchi@ericsson.com>
9579
9580 * proc-service.c (ps_pdread): Add/adjust casts.
9581 (ps_pdwrite): Add/adjust casts.
9582
95832015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9584
9585 * server.c (handle_search_memory_1): Cast return value of
9586 memmem.
9587
95882015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9589
9590 * server.c (write_qxfer_response): Change type of data to
9591 gdb_byte *.
9592
95932015-10-29 Pedro Alves <palves@redhat.com>
9594
9595 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
9596
95972015-10-29 Pedro Alves <palves@redhat.com>
9598
9599 * tracepoint.c (clear_installed_tracepoints): Add casts.
9600
96012015-10-29 Pedro Alves <palves@redhat.com>
9602
9603 * server.c (handle_v_cont, process_serial_event): Add enum
9604 gdb_signal casts to signal parsing code.
9605
96062015-10-29 Pedro Alves <palves@redhat.com>
9607
9608 * linux-low.h (NULL_REGSET): Define.
9609 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9610 * linux-arm-low.c (arm_regsets): Likewise.
9611 * linux-crisv32-low.c (cris_regsets): Likewise.
9612 * linux-m68k-low.c (m68k_regsets): Likewise.
9613 * linux-mips-low.c (mips_regsets): Likewise.
9614 * linux-nios2-low.c (nios2_regsets): Likewise.
9615 * linux-ppc-low.c (ppc_regsets): Likewise.
9616 * linux-s390-low.c (s390_regsets): Likewise.
9617 * linux-sh-low.c (sh_regsets): Likewise.
9618 * linux-sparc-low.c (sparc_regsets): Likewise.
9619 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9620 * linux-tile-low.c (tile_regsets): Likewise.
9621 * linux-x86-low.c (x86_regsets): Likewise.
9622 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9623
96242015-10-29 Pedro Alves <palves@redhat.com>
9625
9626 * linux-low.h (NULL_REGSET): Define.
9627 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9628 * linux-arm-low.c (arm_regsets): Likewise.
9629 * linux-crisv32-low.c (cris_regsets): Likewise.
9630 * linux-m68k-low.c (m68k_regsets): Likewise.
9631 * linux-mips-low.c (mips_regsets): Likewise.
9632 * linux-nios2-low.c (nios2_regsets): Likewise.
9633 * linux-ppc-low.c (ppc_regsets): Likewise.
9634 * linux-s390-low.c (s390_regsets): Likewise.
9635 * linux-sh-low.c (sh_regsets): Likewise.
9636 * linux-sparc-low.c (sparc_regsets): Likewise.
9637 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9638 * linux-tile-low.c (tile_regsets): Likewise.
9639 * linux-x86-low.c (x86_regsets): Likewise.
9640 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9641
96422015-10-26 Doug Evans <dje@google.com>
9643
9644 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
9645
96462015-10-26 Doug Evans <dje@google.com>
9647
9648 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
9649
96502015-10-26 Doug Evans <dje@google.com>
9651
9652 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
9653 for debug_printf.
9654 (attach_thread, find_new_threads_callback): Ditto.
9655
96562015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9657
9658 * mem-break.h (set_breakpoint_data): Remove.
9659
96602015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9661
9662 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
9663 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9664 (initialize_low): Remove set_breakpoint_data call.
9665 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
9666 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
9667 (initialize_low): Remove set_breakpoint_data call.
9668 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
9669 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9670 (initialize_low): Remove set_breakpoint_data call.
9671
96722015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9673
9674 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
9675 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
9676 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
9677 * target.h (target_breakpoint_kind_from_pc): New macro.
9678
96792015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
9680
9681 * linux-low.c (default_breakpoint_kind_from_pc): New function.
9682 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
9683 the default breakpoint kind.
9684
96852015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9686
9687 * linux-arm-low.c (arm_supports_z_point_type): Add software
9688 breakpoint support.
9689
96902015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9691
9692 * linux-arm-low.c: Refactor breakpoint definitions.
9693 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
9694 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
9695
96962015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9697
9698 * Makefile.in: Add arm.c/o.
9699 * configure.srv: Likewise.
9700 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
9701 (arm_breakpoint_kind_from_pc): New function.
9702 (arm_sw_breakpoint_from_kind): Return proper kind.
9703 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
9704
97052015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9706
9707 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
9708 removal.
9709 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
9710 (struct raw_breakpoint) <size>: Remove.
9711 (struct raw_breakpoint) <kind>: Add.
9712 (bp_size): New function.
9713 (bp_opcode): Likewise.
9714 (find_raw_breakpoint_at): Adjust for kind.
9715 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
9716 (remove_memory_breakpoint): Adjust for kind call bp_size.
9717 (set_raw_breakpoint_at): Adjust for kind.
9718 (set_breakpoint): Likewise.
9719 (set_breakpoint_at): Call breakpoint_kind_from_pc.
9720 (delete_raw_breakpoint): Adjust for kind.
9721 (delete_breakpoint): Likewise.
9722 (find_gdb_breakpoint): Likewise.
9723 (set_gdb_breakpoint_1): Likewise.
9724 (set_gdb_breakpoint): Likewise.
9725 (delete_gdb_breakpoint_1): Likewise.
9726 (delete_gdb_breakpoint): Likewise.
9727 (uninsert_raw_breakpoint): Likewise.
9728 (reinsert_raw_breakpoint): Likewise.
9729 (set_breakpoint_data): Remove.
9730 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
9731 (check_mem_read): Adjust for kind call bp_size.
9732 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
9733 (clone_one_breakpoint): Adjust for kind.
9734 * mem-break.h (set_gdb_breakpoint): Likewise.
9735 (delete_gdb_breakpoint): Likewise.
9736 * server.c (process_serial_event): Likewise.
9737
97382015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9739
9740 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
9741 (struct linux_target_ops) <breakpoint>: Remove.
9742 (struct linux_target_ops) <breakpoint_len>: Remove.
9743 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9744 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9745 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
9746 (arm_sw_breakpoint_from_kind): New function.
9747 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
9748 (struct linux_target_ops) <breakpoint>: Remove.
9749 (struct linux_target_ops) <breakpoint_len>: Remove.
9750 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9751 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9752 * linux-cris-low.c (cris_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-crisv32-low.c (cris_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-low.c (linux_wait_1): Call breakpoint_kind_from_pc
9763 and sw_breakpoint_from_kind to increment the pc.
9764 (linux_breakpoint_kind_from_pc): New function.
9765 (linux_sw_breakpoint_from_kind): New function.
9766 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
9767 (initialize_low): Call breakpoint_kind_from_pc and
9768 sw_breakpoint_from_kind to replace breakpoint_data/len.
9769 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
9770 New field.
9771 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
9772 * linux-m32r-low.c (m32r_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-m68k-low.c (m68k_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-mips-low.c (mips_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-nios2-low.c (nios2_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-ppc-low.c (ppc_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-s390-low.c (s390_sw_breakpoint_from_kind): New function.
9798 (struct linux_target_ops) <breakpoint>: Remove.
9799 (struct linux_target_ops) <breakpoint_len>: Remove.
9800 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9801 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9802 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
9803 (struct linux_target_ops) <breakpoint>: Remove.
9804 (struct linux_target_ops) <breakpoint_len>: Remove.
9805 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9806 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9807 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
9808 (struct linux_target_ops) <breakpoint>: Remove.
9809 (struct linux_target_ops) <breakpoint_len>: Remove.
9810 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9811 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9812 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
9813 (struct linux_target_ops) <breakpoint>: Remove.
9814 (struct linux_target_ops) <breakpoint_len>: Remove.
9815 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9816 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9817 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
9818 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
9819 (struct linux_target_ops) <breakpoint>: Remove.
9820 (struct linux_target_ops) <breakpoint_len>: Remove.
9821 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9822 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9823 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
9824 (struct linux_target_ops) <breakpoint>: Remove.
9825 (struct linux_target_ops) <breakpoint_len>: Remove.
9826 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9827 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9828
98292015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9830
9831 * linux-cris-low.c (cris_get_pc): Remove void arg.
9832
98332015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9834
9835 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
9836 variable name.
9837
98382015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9839
9840 * inferiors.c (thread_pid_matches_callback): New function.
9841 (find_thread_process): New function.
9842 (remove_thread): Reset current_thread.
9843 (remove_process): Assert threads have been removed first.
9844
98452015-10-15 Yao Qi <yao.qi@linaro.org>
9846
9847 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
9848 if it is 3.
9849 (aarch64_remove_point): Likewise.
9850 * regcache.c (regcache_register_size): New function.
9851
98522015-10-12 Yao Qi <yao.qi@linaro.org>
9853
9854 * linux-aarch64-low.c: Update all callers as emit_load_store
9855 is renamed to aarch64_emit_load_store.
9856
98572015-10-12 Yao Qi <yao.qi@linaro.org>
9858
9859 * linux-aarch64-low.c: Update all callers of function renaming
9860 from emit_insn to aarch64_emit_insn.
9861
98622015-10-12 Yao Qi <yao.qi@linaro.org>
9863
9864 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
9865 arch/aarch64-insn.h.
9866 (struct aarch64_memory_operand): Likewise.
9867 (ENCODE): Likewise.
9868 (emit_insn): Move to arch/aarch64-insn.c.
9869 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
9870 (emit_load_store): Move to arch/aarch64-insn.c.
9871 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
9872 (can_encode_int32): Remove.
9873
98742015-10-12 Yao Qi <yao.qi@linaro.org>
9875
9876 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
9877 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
9878 (aarch64_relocate_instruction): Likewise.
9879 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
9880 (struct aarch64_insn_visitor): Likewise.
9881
98822015-10-12 Yao Qi <yao.qi@linaro.org>
9883
9884 * linux-aarch64-low.c (struct aarch64_insn_data): New.
9885 (struct aarch64_insn_visitor): New.
9886 (struct aarch64_insn_relocation_data): New.
9887 (aarch64_ftrace_insn_reloc_b): New function.
9888 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
9889 (aarch64_ftrace_insn_reloc_cb): Likewise.
9890 (aarch64_ftrace_insn_reloc_tb): Likewise.
9891 (aarch64_ftrace_insn_reloc_adr): Likewise.
9892 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
9893 (aarch64_ftrace_insn_reloc_others): Likewise.
9894 (visitor): New.
9895 (aarch64_relocate_instruction): Use visitor.
9896
98972015-10-12 Yao Qi <yao.qi@linaro.org>
9898
9899 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
9900 int. Add argument buf.
9901 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
9902 aarch64_relocate_instruction.
9903
99042015-10-12 Yao Qi <yao.qi@linaro.org>
9905
9906 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
9907 argument insn. Remove local variable insn. Don't call
9908 target_read_uint32.
9909 (aarch64_install_fast_tracepoint_jump_pad): Call
9910 target_read_uint32.
9911
99122015-09-30 Yao Qi <yao.qi@linaro.org>
9913
9914 * linux-aarch64-low.c (emit_movk): Shorten a long line.
9915 (emit_load_store_pair): Likewise.
9916
99172015-09-25 Simon Marchi <simon.marchi@ericsson.com>
9918
9919 * dll.c (match_dll): Add cast(s).
9920 (unloaded_dll): Likewise.
9921 * linux-low.c (second_thread_of_pid_p): Likewise.
9922 (delete_lwp_callback): Likewise.
9923 (count_events_callback): Likewise.
9924 (select_event_lwp_callback): Likewise.
9925 (linux_set_resume_request): Likewise.
9926 * server.c (accumulate_file_name_length): Likewise.
9927 (emit_dll_description): Likewise.
9928 (handle_qxfer_threads_worker): Likewise.
9929 (visit_actioned_threads): Likewise.
9930 * thread-db.c (any_thread_of): Likewise.
9931 * tracepoint.c (same_process_p): Likewise.
9932 (match_blocktype): Likewise.
9933 (build_traceframe_info_xml): Likewise.
9934
99352015-09-25 Simon Marchi <simon.marchi@ericsson.com>
9936
9937 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
9938 assignment.
9939 (gdb_unparse_agent_expr): Likewise.
9940 * hostio.c (require_data): Likewise.
9941 (handle_pread): Likewise.
9942 * linux-low.c (disable_regset): Likewise.
9943 (fetch_register): Likewise.
9944 (store_register): Likewise.
9945 (get_dynamic): Likewise.
9946 (linux_qxfer_libraries_svr4): Likewise.
9947 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
9948 (set_fast_tracepoint_jump): Likewise.
9949 (uninsert_fast_tracepoint_jumps_at): Likewise.
9950 (reinsert_fast_tracepoint_jumps_at): Likewise.
9951 (validate_inserted_breakpoint): Likewise.
9952 (clone_agent_expr): Likewise.
9953 * regcache.c (init_register_cache): Likewise.
9954 * remote-utils.c (putpkt_binary_1): Likewise.
9955 (decode_M_packet): Likewise.
9956 (decode_X_packet): Likewise.
9957 (look_up_one_symbol): Likewise.
9958 (relocate_instruction): Likewise.
9959 (monitor_output): Likewise.
9960 * server.c (handle_search_memory): Likewise.
9961 (handle_qxfer_exec_file): Likewise.
9962 (handle_qxfer_libraries): Likewise.
9963 (handle_qxfer): Likewise.
9964 (handle_query): Likewise.
9965 (handle_v_cont): Likewise.
9966 (handle_v_run): Likewise.
9967 (captured_main): Likewise.
9968 * target.c (write_inferior_memory): Likewise.
9969 * thread-db.c (try_thread_db_load_from_dir): Likewise.
9970 * tracepoint.c (init_trace_buffer): Likewise.
9971 (add_tracepoint_action): Likewise.
9972 (add_traceframe): Likewise.
9973 (add_traceframe_block): Likewise.
9974 (cmd_qtdpsrc): Likewise.
9975 (cmd_qtdv): Likewise.
9976 (cmd_qtstatus): Likewise.
9977 (response_source): Likewise.
9978 (response_tsv): Likewise.
9979 (cmd_qtnotes): Likewise.
9980 (gdb_collect): Likewise.
9981 (initialize_tracepoint): Likewise.
9982
99832015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9984
9985 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
9986 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
9987 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
9988 <NOP>: New.
9989 (enum aarch64_condition_codes): New enum.
9990 (w0): New static global.
9991 (fp): Likewise.
9992 (lr): Likewise.
9993 (struct aarch64_memory_operand) <type>: New
9994 MEMORY_OPERAND_POSTINDEX type.
9995 (postindex_memory_operand): New helper function.
9996 (emit_ret): New function.
9997 (emit_load_store_pair): New function, factored out of emit_stp
9998 with support for MEMORY_OPERAND_POSTINDEX.
9999 (emit_stp): Rewrite using emit_load_store_pair.
10000 (emit_ldp): New function.
10001 (emit_load_store): Likewise.
10002 (emit_ldr): Mention post-index instruction in comment.
10003 (emit_ldrh): New function.
10004 (emit_ldrb): New function.
10005 (emit_ldrsw): Mention post-index instruction in comment.
10006 (emit_str): Likewise.
10007 (emit_subs): New function.
10008 (emit_cmp): Likewise.
10009 (emit_and): Likewise.
10010 (emit_orr): Likewise.
10011 (emit_orn): Likewise.
10012 (emit_eor): Likewise.
10013 (emit_mvn): Likewise.
10014 (emit_lslv): Likewise.
10015 (emit_lsrv): Likewise.
10016 (emit_asrv): Likewise.
10017 (emit_mul): Likewise.
10018 (emit_sbfm): Likewise.
10019 (emit_sbfx): Likewise.
10020 (emit_ubfm): Likewise.
10021 (emit_ubfx): Likewise.
10022 (emit_csinc): Likewise.
10023 (emit_cset): Likewise.
10024 (emit_nop): Likewise.
10025 (emit_ops_insns): New helper function.
10026 (emit_pop): Likewise.
10027 (emit_push): Likewise.
10028 (aarch64_emit_prologue): New function.
10029 (aarch64_emit_epilogue): Likewise.
10030 (aarch64_emit_add): Likewise.
10031 (aarch64_emit_sub): Likewise.
10032 (aarch64_emit_mul): Likewise.
10033 (aarch64_emit_lsh): Likewise.
10034 (aarch64_emit_rsh_signed): Likewise.
10035 (aarch64_emit_rsh_unsigned): Likewise.
10036 (aarch64_emit_ext): Likewise.
10037 (aarch64_emit_log_not): Likewise.
10038 (aarch64_emit_bit_and): Likewise.
10039 (aarch64_emit_bit_or): Likewise.
10040 (aarch64_emit_bit_xor): Likewise.
10041 (aarch64_emit_bit_not): Likewise.
10042 (aarch64_emit_equal): Likewise.
10043 (aarch64_emit_less_signed): Likewise.
10044 (aarch64_emit_less_unsigned): Likewise.
10045 (aarch64_emit_ref): Likewise.
10046 (aarch64_emit_if_goto): Likewise.
10047 (aarch64_emit_goto): Likewise.
10048 (aarch64_write_goto_address): Likewise.
10049 (aarch64_emit_const): Likewise.
10050 (aarch64_emit_call): Likewise.
10051 (aarch64_emit_reg): Likewise.
10052 (aarch64_emit_pop): Likewise.
10053 (aarch64_emit_stack_flush): Likewise.
10054 (aarch64_emit_zero_ext): Likewise.
10055 (aarch64_emit_swap): Likewise.
10056 (aarch64_emit_stack_adjust): Likewise.
10057 (aarch64_emit_int_call_1): Likewise.
10058 (aarch64_emit_void_call_2): Likewise.
10059 (aarch64_emit_eq_goto): Likewise.
10060 (aarch64_emit_ne_goto): Likewise.
10061 (aarch64_emit_lt_goto): Likewise.
10062 (aarch64_emit_le_goto): Likewise.
10063 (aarch64_emit_gt_goto): Likewise.
10064 (aarch64_emit_ge_got): Likewise.
10065 (aarch64_emit_ops_impl): New static global variable.
10066 (aarch64_emit_ops): New target function, return
10067 &aarch64_emit_ops_impl.
10068 (struct linux_target_ops): Install it.
10069
100702015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10071
10072 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
10073 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
10074 aarch64-ipa.o.
10075 * linux-aarch64-ipa.c: New file.
10076 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
10077 and endian.h.
10078 (aarch64_get_thread_area): New target method.
10079 (extract_signed_bitfield): New helper function.
10080 (aarch64_decode_ldr_literal): New function.
10081 (enum aarch64_opcodes): New enum.
10082 (struct aarch64_register): New struct.
10083 (struct aarch64_operand): New struct.
10084 (x0): New static global.
10085 (x1): Likewise.
10086 (x2): Likewise.
10087 (x3): Likewise.
10088 (x4): Likewise.
10089 (w2): Likewise.
10090 (ip0): Likewise.
10091 (sp): Likewise.
10092 (xzr): Likewise.
10093 (aarch64_register): New helper function.
10094 (register_operand): Likewise.
10095 (immediate_operand): Likewise.
10096 (struct aarch64_memory_operand): New struct.
10097 (offset_memory_operand): New helper function.
10098 (preindex_memory_operand): Likewise.
10099 (enum aarch64_system_control_registers): New enum.
10100 (ENCODE): New macro.
10101 (emit_insn): New helper function.
10102 (emit_b): New function.
10103 (emit_bcond): Likewise.
10104 (emit_cb): Likewise.
10105 (emit_tb): Likewise.
10106 (emit_blr): Likewise.
10107 (emit_stp): Likewise.
10108 (emit_ldp_q_offset): Likewise.
10109 (emit_stp_q_offset): Likewise.
10110 (emit_load_store): Likewise.
10111 (emit_ldr): Likewise.
10112 (emit_ldrsw): Likewise.
10113 (emit_str): Likewise.
10114 (emit_ldaxr): Likewise.
10115 (emit_stxr): Likewise.
10116 (emit_stlr): Likewise.
10117 (emit_data_processing_reg): Likewise.
10118 (emit_data_processing): Likewise.
10119 (emit_add): Likewise.
10120 (emit_sub): Likewise.
10121 (emit_mov): Likewise.
10122 (emit_movk): Likewise.
10123 (emit_mov_addr): Likewise.
10124 (emit_mrs): Likewise.
10125 (emit_msr): Likewise.
10126 (emit_sevl): Likewise.
10127 (emit_wfe): Likewise.
10128 (append_insns): Likewise.
10129 (can_encode_int32_in): New helper function.
10130 (aarch64_relocate_instruction): New function.
10131 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
10132 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
10133 (struct linux_target_ops): Install aarch64_get_thread_area,
10134 aarch64_install_fast_tracepoint_jump_pad and
10135 aarch64_get_min_fast_tracepoint_insn_len.
10136
101372015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10138
10139 * Makefile.in (aarch64-insn.o): New rule.
10140 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
10141
101422015-09-21 Yao Qi <yao.qi@linaro.org>
10143
10144 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
10145
101462015-09-21 Yao Qi <yao.qi@linaro.org>
10147
10148 * tracepoint.c (max_jump_pad_size): Remove.
10149
101502015-09-18 Yao Qi <yao.qi@linaro.org>
10151
10152 * linux-aarch64-low.c: Don't include sys/uio.h.
10153 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
10154
101552015-09-16 Wei-cheng Wang <cole945@gmail.com>
10156
10157 * tracepoint.c (eval_result_type): Change prototype.
10158 (condition_true_at_tracepoint): Fix argument to compiled_cond.
10159
101602015-09-15 Pedro Alves <palves@redhat.com>
10161
10162 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
10163 Check whether to report exec events instead of checking whether
10164 multiprocess is enabled.
10165
101662015-09-15 Pedro Alves <palves@redhat.com>
10167
10168 PR remote/18965
10169 * remote-utils.c (prepare_resume_reply): Merge
10170 TARGET_WAITKIND_VFORK_DONE switch case with the
10171 TARGET_WAITKIND_FORKED case.
10172
101732015-09-15 Yao Qi <yao.qi@linaro.org>
10174
10175 * server.c (handle_query): Check string comparison using
10176 "else if" instead of "if".
10177
101782015-09-15 Yao Qi <yao.qi@linaro.org>
10179
10180 * server.c (vCont_supported): New global variable.
10181 (handle_query): Set vCont_supported to 1 if "vContSupported+"
10182 matches. Append ";vContSupported+" to own_buf.
10183 (handle_v_requests): Append ";s;S" to own_buf if target supports
10184 hardware single step or vCont_supported is false.
10185 (capture_main): Set vCont_supported to zero.
10186
101872015-09-15 Yao Qi <yao.qi@linaro.org>
10188
10189 * linux-low.c (linux_supports_conditional_breakpoints): Rename
10190 it to ...
10191 (linux_supports_hardware_single_step): ... New function.
10192 (linux_target_ops): Update.
10193 * lynx-low.c (lynx_target_ops): Set field
10194 supports_hardware_single_step to target_can_do_hardware_single_step.
10195 * nto-low.c (nto_target_ops): Likewise.
10196 * spu-low.c (spu_target_ops): Likewise.
10197 * win32-low.c (win32_target_ops): Likewise.
10198 * target.c (target_can_do_hardware_single_step): New function.
10199 * target.h (struct target_ops) <supports_conditional_breakpoints>:
10200 Remove. <supports_hardware_single_step>: New field.
10201 (target_supports_conditional_breakpoints): Remove.
10202 (target_supports_hardware_single_step): New macro.
10203 (target_can_do_hardware_single_step): Declare.
10204 * server.c (handle_query): Use target_supports_hardware_single_step
10205 instead of target_supports_conditional_breakpoints.
10206
102072015-09-15 Yao Qi <yao.qi@linaro.org>
10208
10209 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
10210 function.
10211 (struct linux_target_ops the_low_target): Install
10212 aarch64_linux_siginfo_fixup.
10213
102142015-09-11 Don Breazeal <donb@codesourcery.com>
10215 Luis Machado <lgustavo@codesourcery.com>
10216
10217 * linux-low.c (linux_mourn): Static declaration.
10218 (linux_arch_setup): Move in front of
10219 handle_extended_wait.
10220 (linux_arch_setup_thread): New function.
10221 (handle_extended_wait): Handle exec events. Call
10222 linux_arch_setup_thread. Make event_lwp argument a
10223 pointer-to-a-pointer.
10224 (check_zombie_leaders): Do not check stopped threads.
10225 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
10226 (linux_low_filter_event): Add lwp and thread for exec'ing
10227 non-leader thread if leader thread has been deleted.
10228 Refactor code into linux_arch_setup_thread and call it.
10229 Pass child lwp pointer by reference to handle_extended_wait.
10230 (linux_wait_for_event_filtered): Update comment.
10231 (linux_wait_1): Prevent clobbering exec event status.
10232 (linux_supports_exec_events): New function.
10233 (linux_target_ops) <supports_exec_events>: Initialize new member.
10234 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
10235 new member.
10236 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
10237 * server.c (report_exec_events): New global variable.
10238 (handle_query): Handle qSupported query for exec-events feature.
10239 (captured_main): Initialize report_exec_events.
10240 * server.h (report_exec_events): Declare new global variable.
10241 * target.h (struct target_ops) <supports_exec_events>: New
10242 member.
10243 (target_supports_exec_events): New macro.
10244 * win32-low.c (win32_target_ops) <supports_exec_events>:
10245 Initialize new member.
10246
102472015-09-09 Markus Metzger <markus.t.metzger@intel.com>
10248
10249 * linux-low.c (linux_low_enable_btrace): Remove.
10250 (linux_target_ops): Replace linux_low_enable_btrace with
10251 linux_enable_btrace.
10252
102532015-09-03 Yao Qi <yao.qi@linaro.org>
10254
10255 * linux-aarch64-low.c (aarch64_insert_point): Call
10256 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
10257 returns true.
10258
102592015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10260
10261 * linux-low.c (check_stopped_by_breakpoint): Use
10262 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
10263
102642015-08-27 Pedro Alves <palves@redhat.com>
10265
10266 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
10267
102682015-08-26 Simon Marchi <simon.marchi@ericsson.com>
10269
10270 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
10271 the XNEW-family equivalent.
10272 (compile_bytecodes): Likewise.
10273 * dll.c (loaded_dll): Likewise.
10274 * event-loop.c (append_callback_event): Likewise.
10275 (create_file_handler): Likewise.
10276 (create_file_event): Likewise.
10277 * hostio.c (handle_open): Likewise.
10278 * inferiors.c (add_thread): Likewise.
10279 (add_process): Likewise.
10280 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
10281 * linux-arm-low.c (arm_new_process): Likewise.
10282 (arm_new_thread): Likewise.
10283 * linux-low.c (add_to_pid_list): Likewise.
10284 (linux_add_process): Likewise.
10285 (handle_extended_wait): Likewise.
10286 (add_lwp): Likewise.
10287 (enqueue_one_deferred_signal): Likewise.
10288 (enqueue_pending_signal): Likewise.
10289 (linux_resume_one_lwp_throw): Likewise.
10290 (linux_resume_one_thread): Likewise.
10291 (linux_read_memory): Likewise.
10292 (linux_write_memory): Likewise.
10293 * linux-mips-low.c (mips_linux_new_process): Likewise.
10294 (mips_linux_new_thread): Likewise.
10295 (mips_add_watchpoint): Likewise.
10296 * linux-x86-low.c (initialize_low_arch): Likewise.
10297 * lynx-low.c (lynx_add_process): Likewise.
10298 * mem-break.c (set_raw_breakpoint_at): Likewise.
10299 (set_breakpoint): Likewise.
10300 (add_condition_to_breakpoint): Likewise.
10301 (add_commands_to_breakpoint): Likewise.
10302 (clone_agent_expr): Likewise.
10303 (clone_one_breakpoint): Likewise.
10304 * regcache.c (new_register_cache): Likewise.
10305 * remote-utils.c (look_up_one_symbol): Likewise.
10306 * server.c (queue_stop_reply): Likewise.
10307 (start_inferior): Likewise.
10308 (queue_stop_reply_callback): Likewise.
10309 (handle_target_event): Likewise.
10310 * spu-low.c (fetch_ppc_memory): Likewise.
10311 (store_ppc_memory): Likewise.
10312 * target.c (set_target_ops): Likewise.
10313 * thread-db.c (thread_db_load_search): Likewise.
10314 (try_thread_db_load_1): Likewise.
10315 * tracepoint.c (add_tracepoint): Likewise.
10316 (add_tracepoint_action): Likewise.
10317 (create_trace_state_variable): Likewise.
10318 (cmd_qtdpsrc): Likewise.
10319 (cmd_qtro): Likewise.
10320 (add_while_stepping_state): Likewise.
10321 * win32-low.c (child_add_thread): Likewise.
10322 (get_image_name): Likewise.
10323
103242015-08-25 Yao Qi <yao.qi@linaro.org>
10325
10326 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
10327
103282015-08-25 Yao Qi <yao.qi@linaro.org>
10329
10330 * Makefile.in (aarch64-linux.o): New rule.
10331 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
10332 srv_tgtobj.
10333 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
10334 (aarch64_init_debug_reg_state): Make it extern.
10335 (aarch64_linux_prepare_to_resume): Remove.
10336
103372015-08-25 Yao Qi <yao.qi@linaro.org>
10338
10339 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
10340 lwp_arch_private_info and ptid_of_lwp.
10341
103422015-08-25 Yao Qi <yao.qi@linaro.org>
10343
10344 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
10345 Find proc_info by find_process_pid. All callers updated.
10346
103472015-08-25 Yao Qi <yao.qi@linaro.org>
10348
10349 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
10350 Remove.
10351 (debug_reg_change_callback): Remove.
10352 (aarch64_notify_debug_reg_change): Remove.
10353
103542015-08-25 Yao Qi <yao.qi@linaro.org>
10355
10356 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
10357 Call current_lwp_ptid.
10358
103592015-08-25 Yao Qi <yao.qi@linaro.org>
10360
10361 * linux-aarch64-low.c (debug_reg_change_callback): Use
10362 debug_printf.
10363
103642015-08-25 Yao Qi <yao.qi@linaro.org>
10365
10366 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
10367
103682015-08-25 Yao Qi <yao.qi@linaro.org>
10369
10370 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
10371
103722015-08-25 Yao Qi <yao.qi@linaro.org>
10373
10374 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
10375 the code.
10376
103772015-08-25 Yao Qi <yao.qi@linaro.org>
10378
10379 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
10380 Remove.
10381 (debug_reg_change_callback): Remove argument entry and add argument
10382 lwp. Remove local variable thread. Don't print thread id in the
10383 debugging output. Don't check whether pid of thread equals to pid.
10384 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
10385 iterate_over_lwps instead find_inferior.
10386
103872015-08-24 Pedro Alves <palves@redhat.com>
10388
10389 * inferiors.c (get_first_process): New function.
10390 * inferiors.h (get_first_process): New declaration.
10391 * remote-utils.c (read_ptid): Default to the first process in the
10392 list, instead of to the current thread's process.
10393
103942015-08-24 Pedro Alves <palves@redhat.com>
10395
10396 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
10397 * event-loop.c: Likewise.
10398 * remote-utils.c: Likewise.
10399 * tracepoint.c: Likewise.
10400
104012015-08-24 Pedro Alves <palves@redhat.com>
10402
10403 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
10404 ptid_get_lwp.
10405
104062015-08-21 Pedro Alves <palves@redhat.com>
10407
10408 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
10409 instead of literal 1.
10410
104112015-08-21 Pedro Alves <palves@redhat.com>
10412
10413 * tdesc.c (default_description): Explicitly zero-initialize.
10414
104152015-08-21 Pedro Alves <palves@redhat.com>
10416
10417 PR gdb/18749
10418 * inferiors.c (remove_thread): Discard any pending stop reply for
10419 this thread.
10420 * server.c (remove_all_on_match_pid): Rename to ...
10421 (remove_all_on_match_ptid): ... this. Work with a filter ptid
10422 instead of a pid.
10423 (discard_queued_stop_replies): Change parameter to a ptid. Now
10424 extern.
10425 (handle_v_kill, kill_inferior_callback, captured_main)
10426 (process_serial_event): Adjust.
10427 * server.h (discard_queued_stop_replies): Declare.
10428
104292015-08-21 Pedro Alves <palves@redhat.com>
10430
10431 * linux-low.c (wait_for_sigstop): Always switch to no thread
10432 selected if the previously current thread dies.
10433 * lynx-low.c (lynx_request_interrupt): Use the first thread's
10434 process instead of the current thread's.
10435 * remote-utils.c (input_interrupt): Don't check if there's no
10436 current thread.
10437 * server.c (gdb_read_memory, gdb_write_memory): If setting the
10438 current thread to the general thread fails, error out.
10439 (handle_qxfer_auxv, handle_qxfer_libraries)
10440 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
10441 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
10442 (handle_query): Check if there's a thread selected instead of
10443 checking whether there's any thread in the thread list.
10444 (handle_qxfer_threads, handle_qxfer_btrace)
10445 (handle_qxfer_btrace_conf): Don't error out early if there's no
10446 thread in the thread list.
10447 (handle_v_cont, myresume): Don't set the current thread to the
10448 continue thread.
10449 (process_serial_event) <Hg handling>: Also set thread_id if the
10450 previous general thread is still alive.
10451 (process_serial_event) <g/G handling>: If setting the current
10452 thread to the general thread fails, error out.
10453 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
10454 thread's lwp instead of the current thread's.
10455 * target.c (set_desired_thread): If the desired thread was not
10456 found, leave the current thread pointing to NULL. Return an int
10457 (boolean) indicating success.
10458 * target.h (set_desired_thread): Change return type to int.
10459
104602015-08-20 Max Filippov <jcmvbkbc@gmail.com>
10461
10462 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
10463 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
10464 #includes.
10465 (ps_get_thread_area): New function.
10466
104672015-08-19 Gary Benson <gbenson@redhat.com>
10468
10469 * hostio.c (handle_pread): Do not attempt to read more data
10470 than hostio_reply_with_data can fit in a packet.
10471
104722015-08-18 Joel Brobecker <brobecker@adacore.com>
10473
10474 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
10475
104762015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
10477
10478 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
10479
104802015-08-06 Pedro Alves <palves@redhat.com>
10481
10482 * tracepoint.c (expr_eval_result): Now an int.
10483
104842015-08-06 Pedro Alves <palves@redhat.com>
10485
10486 * gdbthread.h (struct regcache): Forward declare.
10487 (struct thread_info) <regcache_data>: Now a struct regcache
10488 pointer.
10489 * inferiors.c (inferior_regcache_data)
10490 (set_inferior_regcache_data): Now work with struct regcache
10491 pointers.
10492 * inferiors.h (struct regcache): Forward declare.
10493 (inferior_regcache_data, set_inferior_regcache_data): Now work
10494 with struct regcache pointers.
10495 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
10496 (free_register_cache_thread): Remove struct regcache pointer
10497 casts.
10498
104992015-08-06 Pedro Alves <palves@redhat.com>
10500
10501 * server.c (captured_main): On error, print the exception message
10502 to stderr, and if run_once is set, throw a quit.
10503
105042015-08-06 Pedro Alves <palves@redhat.com>
10505
10506 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
10507 the current thread.
10508
105092015-08-06 Pedro Alves <palves@redhat.com>
10510
10511 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
10512 reading beyond the passed in buffer length.
10513
105142015-08-06 Pierre Langlois <pierre.langlois@arm.com>
10515
10516 * tracepoint.c (symbol_list) <required>: Remove.
10517
105182015-08-06 Pedro Alves <palves@redhat.com>
10519
10520 * linux-low.c (handle_extended_wait): Set the fork child's suspend
10521 count if stopping and suspending threads.
10522 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
10523 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
10524 (linux_detach): Complete an ongoing step-over.
10525 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
10526 throughout.
10527 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
10528 (linux_wait_1): If passing a signal to the inferior after
10529 finishing a step-over, unsuspend and re-resume all lwps. If we
10530 see a single-step event but the thread should be continuing, don't
10531 pass the trap to gdb.
10532 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
10533 internal_error instead of gdb_assert.
10534 (enqueue_pending_signal): New function.
10535 (check_ptrace_stopped_lwp_gone): Add debug output.
10536 (start_step_over): Use internal_error instead of gdb_assert.
10537 (complete_ongoing_step_over): New function.
10538 (linux_resume_one_thread): Don't resume a suspended thread.
10539 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
10540 it stepping.
10541
105422015-08-06 Pedro Alves <palves@redhat.com>
10543
10544 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
10545 (linux_thread_alive): Use lwp_is_marked_dead.
10546 (extended_event_reported): Delete.
10547 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
10548 instead of extended_event_reported.
10549 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
10550 as well.
10551 (lwp_is_marked_dead): New function.
10552 (lwp_running): Use lwp_is_marked_dead.
10553 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
10554 comment.
10555
105562015-08-06 Pedro Alves <palves@redhat.com>
10557
10558 * linux-low.c (linux_wait_1): Move fork event output out of the
10559 !report_to_gdb check. Pass event_child->waitstatus to
10560 target_waitstatus_to_string instead of ourstatus.
10561
105622015-08-04 Yao Qi <yao.qi@linaro.org>
10563
10564 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
10565 if current_thread is 32 bit.
10566
105672015-08-04 Yao Qi <yao.qi@linaro.org>
10568
10569 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
10570 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
10571 * server.c (extended_protocol): Remove "static".
10572 * server.h (extended_protocol): Declare it.
10573
105742015-08-04 Yao Qi <yao.qi@linaro.org>
10575
10576 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
10577 both aarch64 and aarch32.
10578 (aarch64_set_pc): Likewise.
10579
105802015-08-04 Yao Qi <yao.qi@linaro.org>
10581
10582 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
10583 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
10584 arm-with-neon.xml to srv_xmlfiles.
10585 * linux-aarch64-low.c: Include linux-aarch32-low.h.
10586 (is_64bit_tdesc): New function.
10587 (aarch64_linux_read_description): New function.
10588 (aarch64_arch_setup): Call aarch64_linux_read_description.
10589 (regs_info): Rename to regs_info_aarch64.
10590 (aarch64_regs_info): Return right regs_info.
10591 (initialize_low_arch): Call initialize_low_arch_aarch32.
10592
105932015-08-04 Yao Qi <yao.qi@linaro.org>
10594
10595 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
10596 * linux-aarch32-low.c: New file.
10597 * linux-aarch32-low.h: New file.
10598 * linux-arm-low.c (arm_fill_gregset): Move it to
10599 linux-aarch32-low.c.
10600 (arm_store_gregset): Likewise.
10601 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
10602 (arm_store_vfpregset): Call arm_store_vfpregset_num.
10603 (arm_arch_setup): Check if PTRACE_GETREGSET works.
10604 (regs_info): Rename to regs_info_arm.
10605 (arm_regs_info): Return regs_info_aarch32 if
10606 have_ptrace_getregset is 1 and target description is
10607 arm_with_neon or arm_with_vfpv3.
10608 (initialize_low_arch): Don't call init_registers_arm_with_neon.
10609 Call initialize_low_arch_aarch32 instead.
10610
106112015-08-04 Yao Qi <yao.qi@linaro.org>
10612
10613 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
10614 * linux-low.c: ... here.
10615 * linux-low.h (have_ptrace_getregset): Declare it.
10616
106172015-08-04 Pedro Alves <palves@redhat.com>
10618
10619 * thread-db.c (struct thread_db): Use new typedefs.
10620 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
10621 CHK calls.
10622 (disable_thread_event_reporting): Cast result of dlsym to
10623 destination function pointer type.
10624 (thread_db_mourn): Use td_ta_delete_ftype.
10625
106262015-08-03 Sandra Loosemore <sandra@codesourcery.com>
10627
10628 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
10629 arch variant.
10630 (CDX_BREAKPOINT): Define for R2.
10631 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
10632 (the_low_target): Add comments.
10633
106342015-07-30 Yao Qi <yao.qi@linaro.org>
10635
10636 * linux-arm-low.c (arm_hwcap): Remove it.
10637 (arm_read_description): New local variable arm_hwcap. Don't
10638 set arm_hwcap to zero.
10639
106402015-07-30 Yao Qi <yao.qi@linaro.org>
10641
10642 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
10643 Use regcache->tdesc instead.
10644 (arm_store_wmmxregset): Likewise.
10645 (arm_fill_vfpregset): Likewise.
10646 (arm_store_vfpregset): Likewise.
10647
106482015-07-30 Yao Qi <yao.qi@linaro.org>
10649
10650 * linux-arm-low.c: Include arch/arm.h.
10651 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
10652 (arm_store_gregset): Likewise.
10653
106542015-07-29 Simon Marchi <simon.marchi@ericsson.com>
10655
10656 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
10657 ptrace's 4th parameter.
10658
106592015-07-27 Yao Qi <yao.qi@linaro.org>
10660
10661 * configure.srv (case aarch64*-*-linux*): Don't set
10662 srv_linux_usrregs.
10663
106642015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
10665
10666 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
10667 sys/ptrace.h.
10668 * linux-arm-low.c: Likewise.
10669 * linux-cris-low.c: Likewise.
10670 * linux-crisv32-low.c: Likewise.
10671 * linux-low.c: Likewise.
10672 * linux-m68k-low.c: Likewise.
10673 * linux-mips-low.c: Likewise.
10674 * linux-nios2-low.c: Likewise.
10675 * linux-s390-low.c: Likewise.
10676 * linux-sparc-low.c: Likewise.
10677 * linux-tic6x-low.c: Likewise.
10678 * linux-tile-low.c: Likewise.
10679 * linux-x86-low.c: Likewise.
10680
106812015-07-24 Pedro Alves <palves@redhat.com>
10682
10683 * config.in: Regenerate.
10684 * configure: Regenerate.
10685
106862015-07-24 Pedro Alves <palves@redhat.com>
10687
10688 * acinclude.m4: Include ../ptrace.m4.
10689 * configure.ac: Call GDB_AC_PTRACE.
10690 * config.in, configure: Regenerate.
10691
106922015-07-24 Yao Qi <yao.qi@linaro.org>
10693
10694 * linux-low.c (linux_create_inferior): Remove setting to
10695 proc->priv->new_inferior.
10696 (linux_attach): Likewise.
10697 (linux_low_filter_event): Likewise.
10698 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
10699
107002015-07-24 Yao Qi <yao.qi@linaro.org>
10701
10702 * linux-low.c (linux_arch_setup): New function.
10703 (linux_low_filter_event): If proc->tdesc is NULL and
10704 proc->attached is true, call the_low_target.arch_setup.
10705 Otherwise, keep status pending, and return.
10706 (linux_resume_one_lwp_throw): Don't call get_pc if
10707 thread->while_stepping isn't NULL. Don't call
10708 get_thread_regcache if proc->tdesc is NULL.
10709 (need_step_over_p): Return 0 if proc->tdesc is NULL.
10710 (linux_target_ops): Install arch_setup.
10711 * server.c (start_inferior): Call the_target->arch_setup.
10712 * target.h (struct target_ops) <arch_setup>: New field.
10713 (target_arch_setup): New marco.
10714 * lynx-low.c (lynx_target_ops): Update.
10715 * nto-low.c (nto_target_ops): Update.
10716 * spu-low.c (spu_target_ops): Update.
10717 * win32-low.c (win32_target_ops): Update.
10718
107192015-07-24 Yao Qi <yao.qi@linaro.org>
10720
10721 * linux-low.c (linux_add_process): Don't set
10722 proc->priv->new_inferior.
10723 (linux_create_inferior): Set proc->priv->new_inferior to 1.
10724 (linux_attach): Likewise.
10725
107262015-07-24 Yao Qi <yao.qi@linaro.org>
10727
10728 * server.c (start_inferior): Code refactor.
10729
107302015-07-24 Yao Qi <yao.qi@linaro.org>
10731
10732 * server.c (process_serial_event): Set general_thread.
10733
107342015-07-21 Yao Qi <yao.qi@linaro.org>
10735
10736 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
10737 aarch64_linux_get_debug_reg_capacity.
10738
107392015-07-17 Yao Qi <yao.qi@linaro.org>
10740
10741 * Makefile.in (aarch64-linux-hw-point.o): New rule.
10742 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
10743 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
10744 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
10745 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
10746 (AARCH64_HWP_ALIGNMENT): Likewise.
10747 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
10748 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
10749 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
10750 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
10751 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
10752 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
10753 (struct aarch64_debug_reg_state): Likewise.
10754 (struct arch_lwp_info): Likewise.
10755 (aarch64_align_watchpoint): Likewise.
10756 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
10757 (aarch64_watchpoint_length): Likewise.
10758 (aarch64_point_encode_ctrl_reg): Likewise
10759 (aarch64_point_is_aligned): Likewise.
10760 (aarch64_align_watchpoint): Likewise.
10761 (aarch64_linux_set_debug_regs):
10762 (aarch64_dr_state_insert_one_point): Likewise.
10763 (aarch64_dr_state_remove_one_point): Likewise.
10764 (aarch64_handle_breakpoint): Likewise.
10765 (aarch64_handle_aligned_watchpoint): Likewise.
10766 (aarch64_handle_unaligned_watchpoint): Likewise.
10767 (aarch64_handle_watchpoint): Likewise.
10768
107692015-07-17 Yao Qi <yao.qi@linaro.org>
10770
10771 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
10772 and don't aarch64_get_debug_reg_state. All callers update.
10773 (aarch64_handle_aligned_watchpoint): Likewise.
10774 (aarch64_handle_unaligned_watchpoint): Likewise.
10775 (aarch64_handle_watchpoint): Likewise.
10776 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
10777 (aarch64_remove_point): Likewise.
10778
107792015-07-17 Yao Qi <yao.qi@linaro.org>
10780
10781 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
10782 debug_printf.
10783 (aarch64_handle_unaligned_watchpoint): Likewise.
10784
107852015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10786
10787 Revert the previous 3 commits:
10788 Move gdb_regex* to common/
10789 Move linux_find_memory_regions_full & co.
10790 gdbserver build-id attribute generator
10791
107922015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10793 Jan Kratochvil <jan.kratochvil@redhat.com>
10794
10795 gdbserver build-id attribute generator.
10796 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
10797 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
10798 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
10799 (find_phdr): New.
10800 (get_dynamic): Use find_pdhr to traverse program headers.
10801 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
10802 (compare_mapping_entry_range, struct find_memory_region_callback_data)
10803 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
10804 (get_hex_build_id): New.
10805 (linux_qxfer_libraries_svr4): Add optional build-id attribute
10806 to reply XML document.
10807
108082015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10809 Jan Kratochvil <jan.kratochvil@redhat.com>
10810
10811 * target.c: Include target/target-utils.h and fcntl.h.
10812 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
10813 (target_fileio_read_stralloc): New functions.
10814
108152015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10816
10817 * Makefile.in (OBS): Add gdb_regex.o.
10818 (gdb_regex.o): New.
10819 * config.in: Rebuilt.
10820 * configure: Rebuilt.
10821
108222015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10823 Jan Kratochvil <jan.kratochvil@redhat.com>
10824
10825 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
10826 * Makefile.in (OBS): Add target-utils.o.
10827 (linux-maps.o, target-utils.o): New.
10828 * configure.srv (srv_linux_obj): Add linux-maps.o.
10829
108302015-07-15 Pierre Langlois <pierre.langlois@arm.com>
10831
10832 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
10833 function, return 1.
10834 (the_low_target): Install it.
10835
108362015-07-14 Pedro Alves <palves@redhat.com>
10837
10838 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
10839 Instead, ignore ECHILD, and throw an error for other errnos.
10840
108412015-07-10 Pedro Alves <palves@redhat.com>
10842
10843 * event-loop.c (struct callback_event) <data>: Change type to
10844 gdb_client_data instance instead of gdb_client_data pointer.
10845 (append_callback_event): Adjust.
10846
108472015-07-10 Pierre Langlois <pierre.langlois@arm.com>
10848
10849 * linux-aarch64-low.c: Add comments for each linux_target_ops
10850 method. Remove comments already covered in target_ops and
10851 linux_target_ops definitions.
10852 (the_low_target): Add comments for each unimplemented method.
10853
108542015-07-09 Yao Qi <yao.qi@linaro.org>
10855
10856 * linux-aarch64-low.c (aarch64_regmap): Remove.
10857 (aarch64_usrregs_info): Remove.
10858 (regs_info): Set field usrregs to NULL.
10859
108602015-07-02 Markus Metzger <markus.t.metzger@intel.com>
10861
10862 * linux-low.c: Include "rsp-low.h"
10863 (linux_low_encode_pt_config, linux_low_encode_raw): New.
10864 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
10865 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
10866 (handle_btrace_enable_pt): New.
10867 (handle_btrace_general_set): Support "pt".
10868 (handle_btrace_conf_general_set): Support "pt:size".
10869
108702015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10871
10872 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
10873 Z_PACKET_SW_BP.
10874
108752015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10876
10877 * linux-aarch64-low.c: Remove comment about endianness.
10878 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
10879 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
10880 memcmp.
10881
108822015-06-24 Gary Benson <gbenson@redhat.com>
10883
10884 * linux-i386-ipa.c (stdint.h): Do not include.
10885 * lynx-i386-low.c (stdint.h): Likewise.
10886 * lynx-ppc-low.c (stdint.h): Likewise.
10887 * mem-break.c (stdint.h): Likewise.
10888 * thread-db.c (stdint.h): Likewise.
10889 * tracepoint.c (stdint.h): Likewise.
10890 * win32-low.c (stdint.h): Likewise.
10891
108922015-06-18 Simon Marchi <simon.marchi@ericsson.com>
10893
10894 * server.c (write_qxfer_response): Update call to
10895 remote_escape_output.
10896
108972015-06-15 Aleksandar Ristovski <aristovski@qnx.com
10898 Jan Kratochvil <jan.kratochvil@redhat.com>
10899
10900 Merge multiple hex conversions.
10901 * gdbreplay.c (tohex): Rename to 'fromhex'.
10902 (logchar): Use fromhex.
10903
109042015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10905
10906 * server.c (handle_qxfer_libraries): Set `version' attribute for
10907 <library-list>.
10908
109092015-06-10 Gary Benson <gbenson@redhat.com>
10910
10911 * target.h (struct target_ops) <multifs_open>: New field.
10912 <multifs_unlink>: Likewise.
10913 <multifs_readlink>: Likewise.
10914 * linux-low.c (nat/linux-namespaces.h): New include.
10915 (linux_target_ops): Initialize the_target->multifs_open,
10916 the_target->multifs_unlink and the_target->multifs_readlink.
10917 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
10918 * hostio.c (hostio_fs_pid): New static variable.
10919 (hostio_handle_new_gdb_connection): New function.
10920 (handle_setfs): Likewise.
10921 (handle_open): Use the_target->multifs_open as appropriate.
10922 (handle_unlink): Use the_target->multifs_unlink as appropriate.
10923 (handle_readlink): Use the_target->multifs_readlink as
10924 appropriate.
10925 (handle_vFile): Handle vFile:setfs packets.
10926 * server.c (handle_query): Call hostio_handle_new_gdb_connection
10927 after target_handle_new_gdb_connection.
10928
109292015-06-10 Gary Benson <gbenson@redhat.com>
10930
10931 * configure.ac (AC_CHECK_FUNCS): Add setns.
10932 * config.in: Regenerate.
10933 * configure: Likewise.
10934 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
10935 (linux-namespaces.o): New rule.
10936 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
10937
109382015-06-09 Gary Benson <gbenson@redhat.com>
10939
10940 * hostio.c (handle_open): Process mode argument with
10941 fileio_to_host_mode.
10942
109432015-06-01 Yao Qi <yao.qi@linaro.org>
10944
10945 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
10946 * linux-x86-low.c: Likewise.
10947
109482015-05-28 Don Breazeal <donb@codesourcery.com>
10949
10950 * linux-low.c (handle_extended_wait): Initialize
10951 thread_info.last_resume_kind for new fork children.
10952
109532015-05-15 Pedro Alves <palves@redhat.com>
10954
10955 * target.h (target_handle_new_gdb_connection): Rewrite using if
10956 wrapped in do/while.
10957
109582015-05-14 Joel Brobecker <brobecker@adacore.com>
10959
10960 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
10961 * configure, config.in: Regenerate.
10962 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
10963 Declare typedef.
10964
109652015-05-12 Don Breazeal <donb@codesourcery.com>
10966
10967 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
10968 PTRACE_EVENT_VFORK_DONE.
10969 (linux_low_ptrace_options, extended_event_reported): Add vfork
10970 events.
10971 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
10972 and "vforkdone" for RSP 'T' Stop Reply Packet.
10973 * server.h (report_vfork_events): Declare
10974 global variable.
10975
109762015-05-12 Don Breazeal <donb@codesourcery.com>
10977
10978 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
10979 (the_low_target) <new_fork>: Initialize new member.
10980 * linux-arm-low.c (arm_new_fork): New function.
10981 (the_low_target) <new_fork>: Initialize new member.
10982 * linux-low.c (handle_extended_wait): Call new target function
10983 new_fork.
10984 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
10985 * linux-mips-low.c (mips_add_watchpoint): New function
10986 extracted from mips_insert_point.
10987 (the_low_target) <new_fork>: Initialize new member.
10988 (mips_linux_new_fork): New function.
10989 (mips_insert_point): Call mips_add_watchpoint.
10990 * linux-x86-low.c (x86_linux_new_fork): New function.
10991 (the_low_target) <new_fork>: Initialize new member.
10992
109932015-05-12 Don Breazeal <donb@codesourcery.com>
10994
10995 * linux-low.c (handle_extended_wait): Implement return value,
10996 rename argument 'event_child' to 'event_lwp', handle
10997 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
10998 (linux_low_ptrace_options): New function.
10999 (linux_low_filter_event): Call linux_low_ptrace_options,
11000 use different argument fo linux_enable_event_reporting,
11001 use return value from handle_extended_wait.
11002 (extended_event_reported): New function.
11003 (linux_wait_1): Call extended_event_reported and set
11004 status to report fork events.
11005 (linux_write_memory): Add pid to debug message.
11006 (reset_lwp_ptrace_options_callback): New function.
11007 (linux_handle_new_gdb_connection): New function.
11008 (linux_target_ops): Initialize new structure member.
11009 * linux-low.h (struct lwp_info) <waitstatus>: New member.
11010 * lynx-low.c: Initialize new structure member.
11011 * remote-utils.c (prepare_resume_reply): Implement stop reason
11012 "fork" for "T" stop message.
11013 * server.c (handle_query): Call handle_new_gdb_connection.
11014 * server.h (report_fork_events): Declare global flag.
11015 * target.h (struct target_ops) <handle_new_gdb_connection>:
11016 New member.
11017 (target_handle_new_gdb_connection): New macro.
11018 * win32-low.c: Initialize new structure member.
11019
110202015-05-12 Don Breazeal <donb@codesourcery.com>
11021
11022 * mem-break.c (APPEND_TO_LIST): Define macro.
11023 (clone_agent_expr): New function.
11024 (clone_one_breakpoint): New function.
11025 (clone_all_breakpoints): New function.
11026 * mem-break.h: Declare new functions.
11027
110282015-05-12 Don Breazeal <donb@codesourcery.com>
11029
11030 * linux-low.c (linux_supports_fork_events): New function.
11031 (linux_supports_vfork_events): New function.
11032 (linux_target_ops): Initialize new structure members.
11033 (initialize_low): Call linux_check_ptrace_features.
11034 * lynx-low.c (lynx_target_ops): Initialize new structure
11035 members.
11036 * server.c (report_fork_events, report_vfork_events):
11037 New global flags.
11038 (handle_query): Add new features to qSupported packet and
11039 response.
11040 (captured_main): Initialize new global variables.
11041 * target.h (struct target_ops) <supports_fork_events>:
11042 New member.
11043 <supports_vfork_events>: New member.
11044 (target_supports_fork_events): New macro.
11045 (target_supports_vfork_events): New macro.
11046 * win32-low.c (win32_target_ops): Initialize new structure
11047 members.
11048
110492015-05-12 Gary Benson <gbenson@redhat.com>
11050
11051 * server.c (handle_qxfer_exec_file): Use current process
11052 if annex is empty.
11053
110542015-05-08 Sandra Loosemore <sandra@codesourcery.com>
11055
11056 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
11057 Remove HAVE_PTRACE_GETREGS conditionals.
11058 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
11059 instead of PTRACE_GETREGS and PTRACE_SETREGS.
11060
110612015-05-08 Yao Qi <yao.qi@linaro.org>
11062
11063 * linux-low.c (linux_supports_conditional_breakpoints): New
11064 function.
11065 (linux_target_ops): Install new target method.
11066 * lynx-low.c (lynx_target_ops): Install NULL hook for
11067 supports_conditional_breakpoints.
11068 * nto-low.c (nto_target_ops): Likewise.
11069 * spu-low.c (spu_target_ops): Likewise.
11070 * win32-low.c (win32_target_ops): Likewise.
11071 * server.c (handle_query): Check
11072 target_supports_conditional_breakpoints.
11073 * target.h (struct target_ops) <supports_conditional_breakpoints>:
11074 New field.
11075 (target_supports_conditional_breakpoints): New macro.
11076
110772015-05-06 Pedro Alves <palves@redhat.com>
11078
11079 PR server/18081
11080 * server.c (start_inferior): If the process exits, mourn it.
11081
110822015-04-21 Gary Benson <gbenson@redhat.com>
11083
11084 * hostio.c (fileio_open_flags_to_host): Factored out to
11085 fileio_to_host_openflags in common/fileio.c. Single use
11086 updated.
11087
110882015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11089
11090 * linux-xtensa-low.c (xtensa_fill_gregset)
11091 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
11092 XCHAL_HAVE_LOOP.
11093
110942015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11095
11096 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
11097 (regs_info): Replace usrregs pointer with NULL.
11098
110992015-04-17 Gary Benson <gbenson@redhat.com>
11100
11101 * target.h (struct target_ops) <pid_to_exec_file>: New field.
11102 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
11103 * server.c (handle_qxfer_exec_file): New function.
11104 (qxfer_packets): Add exec-file entry.
11105 (handle_query): Report qXfer:exec-file:read as supported packet.
11106
111072015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
11108
11109 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
11110
111112015-04-09 Gary Benson <gbenson@redhat.com>
11112
11113 * hostio-errno.c (errno_to_fileio_error): Remove function.
11114 Update caller to use remote_fileio_to_fio_error.
11115
111162015-04-09 Yao Qi <yao.qi@linaro.org>
11117
11118 * linux-low.c (linux_insert_point): Call
11119 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
11120 (linux_remove_point): Call remove_memory_breakpoint if type is
11121 raw_bkpt_type_sw.
11122 * linux-x86-low.c (x86_insert_point): Don't call
11123 insert_memory_breakpoint.
11124 (x86_remove_point): Don't call remove_memory_breakpoint.
11125
111262015-04-01 Pedro Alves <palves@redhat.com>
11127 Cleber Rosa <crosa@redhat.com>
11128
11129 * server.c (gdbserver_usage): Reorganize and extend the usage
11130 message.
11131
111322015-03-24 Pedro Alves <palves@redhat.com>
11133
11134 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
11135 output. Also dump TRAP_TRACE.
11136 (linux_low_filter_event): In debug output, distinguish a
11137 resume_stop SIGSTOP from a delayed SIGSTOP.
11138
111392015-03-24 Gary Benson <gbenson@redhat.com>
11140
11141 * linux-x86-low.c (x86_linux_new_thread): Moved to
11142 nat/x86-linux.c.
11143 (x86_linux_prepare_to_resume): Likewise.
11144
111452015-03-24 Gary Benson <gbenson@redhat.com>
11146
11147 * Makefile.in (x86-linux-dregs.o): New rule.
11148 * configure.srv: Add x86-linux-dregs.o to relevant targets.
11149 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
11150 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
11151 (x86_linux_dr_get): Likewise.
11152 (x86_linux_dr_set): Likewise.
11153 (update_debug_registers_callback): Likewise.
11154 (x86_linux_dr_set_addr): Likewise.
11155 (x86_linux_dr_get_addr): Likewise.
11156 (x86_linux_dr_set_control): Likewise.
11157 (x86_linux_dr_get_control): Likewise.
11158 (x86_linux_dr_get_status): Likewise.
11159 (x86_linux_update_debug_registers): Likewise.
11160
111612015-03-24 Gary Benson <gbenson@redhat.com>
11162
11163 * linux-x86-low.c (x86_linux_update_debug_registers):
11164 New function, factored out from...
11165 (x86_linux_prepare_to_resume): ...this.
11166
111672015-03-24 Gary Benson <gbenson@redhat.com>
11168
11169 * linux-x86-low.c (x86_linux_dr_get): Update comments.
11170 (x86_linux_dr_set): Likewise.
11171 (update_debug_registers_callback): Likewise.
11172 (x86_linux_dr_set_addr): Likewise.
11173 (x86_linux_dr_get_addr): Likewise.
11174 (x86_linux_dr_set_control): Likewise.
11175 (x86_linux_dr_get_control): Likewise.
11176 (x86_linux_dr_get_status): Likewise.
11177 (x86_linux_prepare_to_resume): Likewise.
11178
111792015-03-24 Gary Benson <gbenson@redhat.com>
11180
11181 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
11182 Use perror_with_name. Pass string through gettext.
11183 (x86_linux_dr_set): Likewise.
11184
111852015-03-24 Gary Benson <gbenson@redhat.com>
11186
11187 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
11188 (x86_linux_dr_set_addr): ...this.
11189 (x86_dr_low_get_addr): Rename to...
11190 (x86_linux_dr_get_addr): ...this.
11191 (x86_dr_low_set_control): Rename to...
11192 (x86_linux_dr_set_control): ...this.
11193 (x86_dr_low_get_control): Rename to...
11194 (x86_linux_dr_get_control): ...this.
11195 (x86_dr_low_get_status): Rename to...
11196 (x86_linux_dr_get_status): ...this.
11197 (x86_dr_low): Update with new function names.
11198
111992015-03-24 Gary Benson <gbenson@redhat.com>
11200
11201 * Makefile.in (x86-linux.o): New rule.
11202 * configure.srv: Add x86-linux.o to relevant targets.
11203 * linux-low.c (lwp_set_arch_private_info): New function.
11204 (lwp_arch_private_info): Likewise.
11205 * linux-x86-low.c: Include nat/x86-linux.h.
11206 (arch_lwp_info): Removed structure.
11207 (update_debug_registers_callback):
11208 Use lwp_set_debug_registers_changed.
11209 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
11210 and lwp_set_debug_registers_changed.
11211 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
11212
112132015-03-24 Gary Benson <gbenson@redhat.com>
11214
11215 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
11216 * linux-arm-low.c (arm_new_thread): Likewise.
11217 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
11218 * linux-mips-low.c (mips_linux_new_thread): Likewise.
11219 * linux-x86-low.c (x86_linux_new_thread): Likewise.
11220 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
11221
112222015-03-24 Gary Benson <gbenson@redhat.com>
11223
11224 * linux-low.c (ptid_of_lwp): New function.
11225 (lwp_is_stopped): Likewise.
11226 (lwp_stop_reason): Likewise.
11227 * linux-x86-low.c (update_debug_registers_callback):
11228 Use lwp_is_stopped.
11229 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
11230 lwp_stop_reason.
11231
112322015-03-24 Gary Benson <gbenson@redhat.com>
11233
11234 * linux-low.h (linux_stop_lwp): Remove declaration.
11235
112362015-03-24 Gary Benson <gbenson@redhat.com>
11237
11238 * linux-low.h: Include nat/linux-nat.h.
11239 * linux-low.c (iterate_over_lwps_args): New structure.
11240 (iterate_over_lwps_filter): New function.
11241 (iterate_over_lwps): Likewise.
11242 * linux-x86-low.c (update_debug_registers_callback):
11243 Update signature to what iterate_over_lwps expects.
11244 Remove PID check that iterate_over_lwps now performs.
11245 (x86_dr_low_set_addr): Use iterate_over_lwps.
11246 (x86_dr_low_set_control): Likewise.
11247
112482015-03-24 Gary Benson <gbenson@redhat.com>
11249
11250 * linux-x86-low.c (x86_debug_reg_state): New function.
11251 (x86_linux_prepare_to_resume): Use the above.
11252
112532015-03-24 Gary Benson <gbenson@redhat.com>
11254
11255 * linux-low.c (current_lwp_ptid): New function.
11256 * linux-x86-low.c: Include nat/linux-nat.h.
11257 (x86_dr_low_get_addr): Use current_lwp_ptid.
11258 (x86_dr_low_get_control): Likewise.
11259 (x86_dr_low_get_status): Likewise.
11260
112612015-03-20 Pedro Alves <palves@redhat.com>
11262
11263 * tracepoint.c (cmd_qtstatus): Make "str" const.
11264
112652015-03-20 Pedro Alves <palves@redhat.com>
11266
11267 * server.c (handle_general_set): Make "req_str" const.
11268
112692015-03-19 Pedro Alves <palves@redhat.com>
11270
11271 * linux-low.c (linux_resume_one_lwp): Rename to ...
11272 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
11273 instead call perror_with_name.
11274 (check_ptrace_stopped_lwp_gone): New function.
11275 (linux_resume_one_lwp): Reimplement as wrapper around
11276 linux_resume_one_lwp_throw that swallows errors if the LWP is
11277 gone.
11278
112792015-03-19 Pedro Alves <palves@redhat.com>
11280
11281 * linux-low.c (count_events_callback, select_event_lwp_callback):
11282 No longer check whether the thread has resume_stop as last resume
11283 kind.
11284
112852015-03-19 Pedro Alves <palves@redhat.com>
11286
11287 * linux-low.c (count_events_callback, select_event_lwp_callback):
11288 Use the lwp's status_pending_p field, not the thread's.
11289
112902015-03-19 Pedro Alves <palves@redhat.com>
11291
11292 * linux-low.c (select_event_lwp_callback): Update comments to
11293 no longer mention SIGTRAP.
11294
112952015-03-18 Gary Benson <gbenson@redhat.com>
11296
11297 * server.c (handle_query): Do not report vFile:fstat as supported.
11298
112992015-03-11 Gary Benson <gbenson@redhat.com>
11300
11301 * hostio.c (sys/types.h): New include.
11302 (sys/stat.h): Likewise.
11303 (common-remote-fileio.h): Likewise.
11304 (handle_fstat): New function.
11305 (handle_vFile): Handle vFile:fstat packets.
11306
113072015-03-11 Gary Benson <gbenson@redhat.com>
11308
11309 * configure.ac (AC_CHECK_MEMBERS): Add checks for
11310 struct stat.st_blocks and struct stat.st_blksize.
11311 * configure: Regenerate.
11312 * config.in: Likewise.
11313 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
11314 (OBS): Add common-remote-fileio.o.
11315 (common-remote-fileio.o): New rule.
11316
113172015-03-09 Pedro Alves <palves@redhat.com>
11318
11319 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
11320 'struct sockaddr' pointer in 'accept' call.
11321
113222015-03-09 Pedro Alves <palves@redhat.com>
11323
11324 Revert:
11325 2015-03-07 Pedro Alves <palves@redhat.com>
11326 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11327 or <winsock2.h> here. Instead include "gdb_socket.h".
11328 (remote_open): Use union gdb_sockaddr_u.
11329 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11330 or <winsock2.h> here. Instead include "gdb_socket.h".
11331 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11332 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11333 or <sys/un.h>.
11334 (init_named_socket, gdb_agent_helper_thread): Use union
11335 gdb_sockaddr_u.
11336
113372015-03-07 Pedro Alves <palves@redhat.com>
11338
11339 * configure.ac (build_warnings): Move
11340 -Wdeclaration-after-statement to the C-specific set.
11341 * configure: Regenerate.
11342
113432015-03-07 Pedro Alves <palves@redhat.com>
11344
11345 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11346 or <winsock2.h> here. Instead include "gdb_socket.h".
11347 (remote_open): Use union gdb_sockaddr_u.
11348 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11349 or <winsock2.h> here. Instead include "gdb_socket.h".
11350 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11351 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11352 or <sys/un.h>.
11353 (init_named_socket, gdb_agent_helper_thread): Use union
11354 gdb_sockaddr_u.
11355
113562015-03-07 Pedro Alves <palves@redhat.com>
11357
11358 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
11359 instead.
11360
113612015-03-06 Yao Qi <yao.qi@linaro.org>
11362
11363 * linux-aarch64-low.c (aarch64_insert_point): Use
11364 show_debug_regs as a boolean.
11365 (aarch64_remove_point): Likewise.
11366
113672015-03-05 Pedro Alves <palves@redhat.com>
11368
11369 * lynx-low.c (lynx_target_ops): Install NULL hooks for
11370 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
11371 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
11372 * nto-low.c (nto_target_ops): Likewise.
11373 * spu-low.c (spu_target_ops): Likewise.
11374 * win32-low.c (win32_target_ops): Likewise.
11375
113762015-03-04 Pedro Alves <palves@redhat.com>
11377
11378 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
11379 Decide whether a breakpoint triggered based on the SIGTRAP's
11380 siginfo.si_code.
11381 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
11382 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
11383 (linux_low_filter_event): Check for breakpoints before checking
11384 watchpoints.
11385 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
11386 siginfo.si_code.
11387 (linux_stopped_by_sw_breakpoint)
11388 (linux_supports_stopped_by_sw_breakpoint)
11389 (linux_stopped_by_hw_breakpoint)
11390 (linux_supports_stopped_by_hw_breakpoint): New functions.
11391 (linux_target_ops): Install new target methods.
11392
113932015-03-04 Pedro Alves <palves@redhat.com>
11394
11395 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
11396 * server.c (swbreak_feature, hwbreak_feature): New globals.
11397 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
11398 (captured_main): Clear swbreak_feature and hwbreak_feature.
11399 * server.h (swbreak_feature, hwbreak_feature): Declare.
11400 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
11401 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
11402 supports_stopped_by_hw_breakpoint>: New fields.
11403 (target_supports_stopped_by_sw_breakpoint)
11404 (target_stopped_by_sw_breakpoint)
11405 (target_supports_stopped_by_hw_breakpoint)
11406 (target_stopped_by_hw_breakpoint): Declare.
11407
114082015-03-04 Pedro Alves <palves@redhat.com>
11409
11410 enum lwp_stop_reason -> enum target_stop_reason
11411 * linux-low.c (check_stopped_by_breakpoint): Adjust.
11412 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
11413 (linux_wait_1, stuck_in_jump_pad_callback)
11414 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
11415 (linux_stopped_by_watchpoint):
11416 * linux-low.h (enum lwp_stop_reason): Delete.
11417 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
11418 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11419
114202015-03-04 Yao Qi <yao.qi@linaro.org>
11421
11422 * Makefile.in (SFILES): Add linux-aarch64-low.c.
11423
114242015-03-03 Gary Benson <gbenson@redhat.com>
11425
11426 * hostio.c (handle_vFile): Fix prefix lengths.
11427
114282015-03-03 Markus Metzger <markus.t.metzger@intel.com>
11429
11430 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
11431 ptr_bits.
11432
114332015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
11434
11435 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
11436 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
11437 (clean): Add "rm -f" for above C files.
11438 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
11439 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
11440 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
11441 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
11442 * linux-s390-low.c (HWCAP_S390_VX): New macro.
11443 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
11444 (init_registers_s390x_vx_linux64)
11445 (init_registers_s390x_tevx_linux64)
11446 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
11447 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
11448 declarations.
11449 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
11450 (s390_store_vxrs_high): New functions.
11451 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
11452 NT_S390_VXRS_HIGH.
11453 (s390_arch_setup): Add logic for selecting one of the new target
11454 descriptions. Activate the new vector regsets if applicable.
11455 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
11456 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
11457 and init_registers_s390x_tevx_linux64.
11458
114592015-03-01 Pedro Alves <palves@redhat.com>
11460
11461 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
11462 parameter.
11463
114642015-02-27 Pedro Alves <palves@redhat.com>
11465
11466 * linux-x86-low.c (u_debugreg_offset): New function.
11467 (x86_linux_dr_get, x86_linux_dr_set): Use it.
11468
114692015-02-27 Pedro Alves <palves@redhat.com>
11470
11471 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
11472 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
11473 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
11474 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
11475 (ps_lsetfpregs, ps_getpid)
11476 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
11477 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
11478 (ps_lsetxregs, ps_plog): Declare.
11479
114802015-02-27 Pedro Alves <palves@redhat.com>
11481
11482 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
11483 IP_AGENT_EXPORT_FUNC.
11484 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
11485 IP_AGENT_EXPORT_FUNC.
11486 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
11487 (IP_AGENT_EXPORT): Delete.
11488 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11489 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11490 (gdb_trampoline_buffer_error, collecting, gdb_collect)
11491 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
11492 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
11493 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
11494 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
11495 (traceframe_read_count, traceframe_write_count)
11496 (traceframes_created, trace_state_variables, get_raw_reg)
11497 (get_trace_state_variable_value, set_trace_state_variable_value)
11498 (ust_loaded, helper_thread_id, cmd_buf): Use
11499 IPA_SYM_EXPORTED_NAME.
11500 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
11501 (tracepoints) Use IP_AGENT_EXPORT_VAR.
11502 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
11503 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11504 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
11505 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
11506 EXTERN_C_PUSH/EXTERN_C_POP.
11507 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
11508 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
11509 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11510 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
11511 (traceframe_write_count, traceframe_read_count)
11512 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
11513 (about_to_request_buffer_space, get_trace_state_variable_value)
11514 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
11515 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
11516 EXTERN_C_PUSH/EXTERN_C_POP.
11517 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
11518 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
11519 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
11520 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11521 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11522 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11523 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
11524 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
11525 Define.
11526 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
11527 (IP_AGENT_EXPORT_VAR_DECL): Define.
11528 (tracing): Declare.
11529 (gdb_agent_get_raw_reg): Declare.
11530
115312015-02-27 Tom Tromey <tromey@redhat.com>
11532 Pedro Alves <palves@redhat.com>
11533
11534 Rename symbols whose names are reserved C++ keywords throughout.
11535
115362015-02-27 Pedro Alves <palves@redhat.com>
11537
11538 * Makefile.in (COMPILER): New, get it from autoconf.
11539 (CXX): Get from autoconf instead.
11540 (COMPILE.pre): Use COMPILER.
11541 (CC-LD): Rename to ...
11542 (CC_LD): ... this. Use COMPILER.
11543 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
11544 (CXX_FOR_TARGET): Default to g++ instead of gcc.
11545 * acinclude.m4: Include build-with-cxx.m4.
11546 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
11547 Disable -Werror by default if building in C++ mode.
11548 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
11549 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
11550 the C++ compiler. Save/restore CXXFLAGS too.
11551 * configure: Regenerate.
11552
115532015-02-27 Pedro Alves <palves@redhat.com>
11554
11555 * acinclude.m4: Include libiberty.m4.
11556 * configure.ac: Call libiberty_INIT.
11557 * config.in, configure: Regenerate.
11558
115592015-02-26 Pedro Alves <palves@redhat.com>
11560
11561 * linux-low.c (linux_wait_1): When incrementing the PC past a
11562 program breakpoint always use the_low_target.breakpoint_len as
11563 increment, rather than the maximum between that and
11564 the_low_target.decr_pc_after_break.
11565
115662015-02-23 Pedro Alves <palves@redhat.com>
11567
11568 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
11569 thread was doing a step-over; always adjust the PC if
11570 we stepped over a permanent breakpoint.
11571 (linux_wait_1): If we stepped over breakpoint that was on top of a
11572 permanent breakpoint, manually advance the PC past it.
11573
115742015-02-23 Pedro Alves <palves@redhat.com>
11575
11576 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
11577 modes.
11578 (x86_fill_gregset, x86_store_gregset): Use it when handling
11579 $orig_eax.
11580
115812015-02-20 Pedro Alves <palves@redhat.com>
11582
11583 * thread-db.c: Include "nat/linux-procfs.h".
11584 (thread_db_init): Skip listing new threads if the kernel supports
11585 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
11586
115872015-02-20 Pedro Alves <palves@redhat.com>
11588
11589 * linux-low.c (status_pending_p_callback): Use ptid_match.
11590
115912015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
11592
11593 PR breakpoints/16812
11594 * linux-low.c (wstatus_maybe_breakpoint): Remove.
11595 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
11596 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
11597
115982015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
11599
11600 PR breakpoints/15956
11601 * tracepoint.c (cmd_qtinit): Add check for current_thread.
11602
116032015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11604
11605 * linux-low.c (linux_low_btrace_conf): Print size.
11606 * server.c (handle_btrace_conf_general_set): New.
11607 (hanle_general_set): Call handle_btrace_conf_general_set.
11608 (handle_query): Report Qbtrace-conf:bts:size as supported.
11609
116102015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11611
11612 * linux-low.c (linux_low_enable_btrace): Update parameters.
11613 (linux_low_btrace_conf): New.
11614 (linux_target_ops)<to_btrace_conf>: Initialize.
11615 * server.c (current_btrace_conf): New.
11616 (handle_btrace_enable): Rename to ...
11617 (handle_btrace_enable_bts): ... this. Pass &current_btrace_conf
11618 to target_enable_btrace. Update comment. Update users.
11619 (handle_qxfer_btrace_conf): New.
11620 (qxfer_packets): Add btrace-conf entry.
11621 (handle_query): Report qXfer:btrace-conf:read as supported packet.
11622 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
11623 (target_ops)<read_btrace_conf>: New.
11624 (target_enable_btrace): Update parameters.
11625 (target_read_btrace_conf): New.
11626
116272015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11628
11629 * server.c (handle_btrace_general_set): Remove call to
11630 target_supports_btrace.
11631 (supported_btrace_packets): New.
11632 (handle_query): Call supported_btrace_packets.
11633 * target.h: include btrace-common.h.
11634 (btrace_target_info): Removed.
11635 (supports_btrace, target_supports_btrace): Update parameters.
11636
116372015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11638
11639 * Makefile.in (SFILES): Add common/btrace-common.c.
11640 (OBS): Add common/btrace-common.o.
11641 (btrace-common.o): Add build rules.
11642 * linux-low: Include btrace-common.h.
11643 (linux_low_read_btrace): Use struct btrace_data. Call
11644 btrace_data_init and btrace_data_fini.
11645
116462015-02-06 Pedro Alves <palves@redhat.com>
11647
11648 * thread-db.c (find_new_threads_callback): Add debug output.
11649
116502015-02-04 Pedro Alves <palves@redhat.com>
11651
11652 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
11653 (resume_stopped_resumed_lwps): New function.
11654 (linux_wait_for_event_filtered): Use it.
11655
116562015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11657
11658 * Makefile.in (SFILES): Add linux-personality.c.
11659 (linux-personality.o): New rule.
11660 * configure.srv (srv_linux_obj): Add linux-personality.o to the
11661 list of objects to be built.
11662 * linux-low.c: Include nat/linux-personality.h.
11663 (linux_create_inferior): Remove code to disable address space
11664 randomization (moved to ../nat/linux-personality.c). Create
11665 cleanup to disable address space randomization.
11666
116672015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11668
11669 * Makefile.in (posix-strerror.o): New rule.
11670 (mingw-strerror.o): Likewise.
11671 * configure: Regenerated.
11672 * configure.ac: Source file ../common/common.host. Initialize new
11673 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
11674
116752015-01-14 Yao Qi <yao@codesourcery.com>
11676
11677 * Makefile.in (SFILES): Add nat/ppc-linux.c.
11678 (ppc-linux.o): New rule.
11679 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
11680 * configure.ac: AC_CHECK_FUNCS(getauxval).
11681 * config.in: Re-generated.
11682 * configure: Re-generated.
11683 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
11684 ppc64_64bit_inferior_p
11685
116862015-01-14 Yao Qi <yao@codesourcery.com>
11687
11688 * linux-ppc-low.c: Include "nat/ppc-linux.h".
11689 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
11690 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
11691 (PT_ORIG_R3, PT_TRAP): Likewise.
11692 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
11693 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
11694 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
11695
116962015-01-10 Joel Brobecker <brobecker@adacore.com>
11697
11698 * i387-fp.c (i387_cache_to_xsave): In look over
11699 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
11700 zmmh_low_space field by use of zmmh_high_space.
11701
117022015-01-09 Pedro Alves <palves@redhat.com>
11703
11704 * linux-low.c (step_over_bkpt): Move higher up in the file.
11705 (handle_extended_wait): Don't store the stop_pc here.
11706 (get_stop_pc): Adjust comments and rename to ...
11707 (check_stopped_by_breakpoint): ... this. Record whether the LWP
11708 stopped for a software breakpoint or hardware breakpoint.
11709 (thread_still_has_status_pending_p): New function.
11710 (status_pending_p_callback): Use
11711 thread_still_has_status_pending_p. If the event is no longer
11712 interesting, resume the LWP.
11713 (handle_tracepoints): Add assert.
11714 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
11715 (wstatus_maybe_breakpoint): New function.
11716 (cancel_breakpoint): Delete function.
11717 (check_stopped_by_watchpoint): New function, factored out from
11718 linux_low_filter_event.
11719 (lp_status_maybe_breakpoint): Delete function.
11720 (linux_low_filter_event): Remove filter_ptid argument.
11721 Leave thread group exits pending here. Store the LWP's stop PC.
11722 Always leave events pending.
11723 (linux_wait_for_event_filtered): Pull all events out of the
11724 kernel, and leave them all pending.
11725 (count_events_callback, select_event_lwp_callback): Consider all
11726 events.
11727 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
11728 (select_event_lwp): Only give preference to the stepping LWP in
11729 all-stop mode. Adjust comments.
11730 (ignore_event): New function.
11731 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
11732 references to cancel_breakpoints. Adjust to renames. Also give
11733 equal priority to all LWPs that have had events in non-stop mode.
11734 If reporting a software breakpoint event, unadjust the LWP's PC.
11735 (linux_wait): If linux_wait_1 returned an ignored event, retry.
11736 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
11737 Adjust.
11738 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
11739 (resume_status_pending_p): Use thread_still_has_status_pending_p.
11740 (linux_stopped_by_watchpoint): Adjust.
11741 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
11742 * linux-low.h (enum lwp_stop_reason): New.
11743 (struct lwp_info) <stop_pc>: Adjust comment.
11744 <stopped_by_watchpoint>: Delete field.
11745 <stop_reason>: New field.
11746 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11747 * mem-break.c (software_breakpoint_inserted_here)
11748 (hardware_breakpoint_inserted_here): New function.
11749 * mem-break.h (software_breakpoint_inserted_here)
11750 (hardware_breakpoint_inserted_here): Declare.
11751 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
11752 (cancel_breakpoints): Delete.
11753 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
11754 (upload_fast_traceframes): Remove references to
11755 cancel_breakpoints.
11756
117572015-01-09 Pedro Alves <palves@redhat.com>
11758
11759 * thread-db.c (find_new_threads_callback): Ignore thread if the
11760 kernel thread ID is -1.
11761
117622015-01-09 Pedro Alves <palves@redhat.com>
11763
11764 * linux-low.c (linux_attach_fail_reason_string): Move to
11765 nat/linux-ptrace.c, and rename.
11766 (linux_attach_lwp): Update comment.
11767 (attach_proc_task_lwp_callback): New function.
11768 (linux_attach): Adjust to rename and use
11769 linux_proc_attach_tgid_threads.
11770 (linux_attach_fail_reason_string): Delete declaration.
11771
117722015-01-01 Joel Brobecker <brobecker@adacore.com>
11773
11774 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
11775 * server.c (gdbserver_version): Likewise.
11776
117772014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
11778
11779 * remote-utils.c: Include ctype.h.
11780 (input_interrupt): Explicitly handle the case when the char
11781 received is the NUL byte. Improve the printing of non-ASCII
11782 characters.
11783
117842014-12-16 Joel Brobecker <brobecker@adacore.com>
11785
11786 * linux-low.c (linux_low_filter_event): Update call to
11787 linux_enable_event_reporting following the addition of
11788 a new parameter to that function.
11789
117902014-12-16 Catalin Udma <catalin.udma@freescale.com>
11791
11792 PR server/17457
11793 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
11794 (AARCH64_FPCR_REGNO): Likewise.
11795 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
11796 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
11797 (aarch64_store_fpregset): Likewise.
11798
117992014-12-15 Joel Brobecker <brobecker@adacore.com>
11800
11801 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
11802 Remove FIXME comment about assumption about N.
11803
118042014-12-13 Joel Brobecker <brobecker@adacore.com>
11805
11806 * configure.ac: If large-file support is disabled in GDBserver,
11807 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
11808 * configure: Regenerate.
11809
118102014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11811
11812 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
11813 warning upon ENODATA from ptrace.
11814 * linux-s390-low.c (s390_store_tdb): New.
11815 (s390_regsets): Add regset for NT_S390_TDB.
11816
118172014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11818
11819 * linux-low.c (regsets_store_inferior_registers): Skip regsets
11820 without a fill_function.
11821 * linux-s390-low.c (s390_fill_last_break): Remove.
11822 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
11823 (s390_arch_setup): Use regset's size instead of fill_function for
11824 loop end condition.
11825
118262014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11827
11828 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
11829 the regset's store function when ptrace returned an error.
11830 * regcache.c (get_thread_regcache): Invalidate register cache
11831 before fetching inferior's registers.
11832
118332014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11834
11835 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
11836 while-loop as for-loop.
11837 (regsets_store_inferior_registers): Likewise.
11838
118392014-11-28 Yao Qi <yao@codesourcery.com>
11840
11841 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
11842 * config.in, configure: Re-generate.
11843 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
11844 is defined.
11845
118462014-11-21 Yao Qi <yao@codesourcery.com>
11847
11848 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
11849 (AC_CHECK_HEADERS): Remove malloc.h.
11850 * configure: Re-generated.
11851 * config.in: Re-generated.
11852 * server.h: Don't include alloca.h and malloc.h.
11853 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
11854 Don't include malloc.h.
11855
118562014-11-17 Joel Brobecker <brobecker@adacore.com>
11857
11858 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
11859 corresponding ERRNO check in same block.
11860
118612014-11-12 Pedro Alves <palves@redhat.com>
11862
11863 * server.c (cont_thread): Update comment.
11864 (start_inferior, attach_inferior): No longer clear cont_thread.
11865 (handle_v_cont): No longer set cont_thread.
11866 (captured_main): Clear cont_thread each time a GDB connects.
11867
118682014-11-12 Pedro Alves <palves@redhat.com>
11869
11870 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
11871 thread, and don't resume all threads if the Hc thread has exited.
11872
118732014-11-12 Pedro Alves <palves@redhat.com>
11874
11875 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
11876 the process group instead of to a specific LWP.
11877
118782014-10-15 Pedro Alves <palves@redhat.com>
11879
11880 PR server/17487
11881 * win32-arm-low.c (arm_set_thread_context): Remove current_event
11882 parameter.
11883 (arm_set_thread_context): Delete.
11884 (the_low_target): Adjust.
11885 * win32-i386-low.c (debug_registers_changed)
11886 (debug_registers_used): Delete.
11887 (update_debug_registers_callback): New function.
11888 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
11889 needing to update their debug registers.
11890 (win32_get_current_dr): New function.
11891 (x86_dr_low_get_addr, x86_dr_low_get_control)
11892 (x86_dr_low_get_status): Fetch the debug register from the thread
11893 record's context.
11894 (i386_initial_stuff): Adjust.
11895 (i386_get_thread_context): Remove current_event parameter. Don't
11896 clear debug_registers_changed nor copy DR values to
11897 debug_reg_state.
11898 (i386_set_thread_context): Delete.
11899 (i386_prepare_to_resume): New function.
11900 (i386_thread_added): Mark the thread as needing to update irs
11901 debug registers.
11902 (the_low_target): Remove i386_set_thread_context and install
11903 i386_prepare_to_resume.
11904 * win32-low.c (win32_get_thread_context): Adjust.
11905 (win32_set_thread_context): Use SetThreadContext
11906 directly.
11907 (win32_prepare_to_resume): New function.
11908 (win32_require_context): New function, factored out from ...
11909 (thread_rec): ... this.
11910 (continue_one_thread): Call win32_prepare_to_resume on each thread
11911 we're about to continue.
11912 (win32_resume): Call win32_prepare_to_resume on the event thread.
11913 * win32-low.h (struct win32_thread_info)
11914 <debug_registers_changed>: New field.
11915 (struct win32_target_ops): Change prototype of set_thread_context,
11916 delete set_thread_context and add prepare_to_resume.
11917 (win32_require_context): New declaration.
11918
119192014-10-08 Gary Benson <gbenson@redhat.com>
11920
11921 * server.h: Do not include common-exceptions.h.
11922
119232014-10-08 Gary Benson <gbenson@redhat.com>
11924
11925 * server.h: Do not include cleanups.h.
11926
119272014-09-30 James Hogan <james.hogan@imgtec.com>
11928
11929 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
11930 mips64-dsp-linux.c.
11931
119322014-09-23 Yao Qi <yao@codesourcery.com>
11933
11934 * linux-low.c (lp_status_maybe_breakpoint): New function.
11935 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
11936 (count_events_callback): Likewise.
11937 (select_event_lwp_callback): Likewise.
11938 (cancel_breakpoints_callback): Likewise.
11939
119402014-09-19 Don Breazeal <donb@codesourcery.com>
11941
11942 * linux-low.c (handle_extended_wait): Call
11943 linux_ptrace_get_extended_event.
11944 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
11945 linux_is_extended_waitstatus.
11946
119472014-09-16 Joel Brobecker <brobecker@adacore.com>
11948
11949 * Makefile.in (CPPFLAGS): Define.
11950 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
11951 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
11952
119532014-09-16 Gary Benson <gbenson@redhat.com>
11954
11955 * inferiors.h (current_inferior): Renamed as...
11956 (current_thread): New variable. All uses updated.
11957 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
11958 (maybe_move_out_of_jump_pad): Likewise.
11959 (cancel_breakpoint): Likewise.
11960 (linux_low_filter_event): Likewise.
11961 (wait_for_sigstop): Likewise.
11962 (linux_resume_one_lwp): Likewise.
11963 (need_step_over_p): Likewise.
11964 (start_step_over): Likewise.
11965 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
11966 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
11967 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
11968 and save_inferior as saved_thread.
11969 * regcache.c (get_thread_regcache): Renamed saved_inferior as
11970 saved_thread.
11971 (regcache_invalidate_thread): Likewise.
11972 * remote-utils.c (prepare_resume_reply): Likewise.
11973 * thread-db.c (thread_db_get_tls_address): Likewise.
11974 (disable_thread_event_reporting): Likewise.
11975 (remove_thread_event_breakpoints): Likewise.
11976 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
11977 as saved_thread.
11978 * target.h (set_desired_inferior): Renamed as...
11979 (set_desired_thread): New declaration. All uses updated.
11980 * server.c (myresume): Updated comment to reference thread instead
11981 of inferior.
11982 (handle_serial_event): Likewise.
11983 (handle_target_event): Likewise.
11984
119852014-09-12 Tom Tromey <tromey@redhat.com>
11986 Gary Benson <gbenson@redhat.com>
11987
11988 * regcache.h: Include common-regcache.h.
11989 (regcache_read_pc): Don't declare.
11990 * regcache.c (get_thread_regcache_for_ptid): New function.
11991
119922014-09-11 Tom Tromey <tromey@redhat.com>
11993 Gary Benson <gbenson@redhat.com>
11994
11995 * symbol.c: New file.
11996 * Makefile.in (SFILES): Add symbol.c.
11997 (OBS): Add symbol.o.
11998
119992014-09-11 Gary Benson <gbenson@redhat.com>
12000
12001 * target.c (target_stop_ptid, target_continue_ptid): New
12002 functions.
12003
120042014-09-11 Tom Tromey <tromey@redhat.com>
12005 Gary Benson <gbenson@redhat.com>
12006
12007 * target.h: Include target/target.h.
12008 * target.c (target_read_memory, target_read_uint32)
12009 (target_write_memory): New functions.
12010
120112014-09-11 Gary Benson <gbenson@redhat.com>
12012
12013 * server.h (debug_hw_points): Don't declare.
12014 * server.c (debug_hw_points): Don't define. Replace all uses
12015 with show_debug_regs.
12016 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
12017 all uses with show_debug_regs.
12018
120192014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12020
12021 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
12022 endianness into account.
12023 (ppc_supply_ptrace_register): Likewise.
12024
120252014-09-03 James Hogan <james.hogan@imgtec.com>
12026
12027 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
12028 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
12029
120302014-09-03 Gary Benson <gbenson@redhat.com>
12031
12032 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
12033 ALL_DEBUG_ADDRESS_REGISTERS.
12034
120352014-09-02 Gary Benson <gbenson@redhat.com>
12036
12037 * i386-low.h: Renamed as...
12038 * x86-low.h: New file. All type, function and variable name
12039 prefixes changed from "i386_" to "x86_". All references updated.
12040 * i386-low.c: Renamed as...
12041 * x86-low.c: New file. All type, function and variable name
12042 prefixes changed from "i386_" to "x86_". All references updated.
12043
120442014-09-02 Gary Benson <gbenson@redhat.com>
12045
12046 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
12047 (x86_linux_new_thread): Likewise.
12048
120492014-08-29 Gary Benson <gbenson@redhat.com>
12050
12051 * server.h (setjmp.h): Do not include.
12052 (toplevel): Do not declare.
12053 (common-exceptions.h): Include.
12054 (cleanups.h): Likewise.
12055 * server.c (toplevel): Do not define.
12056 (exit_code): New static global.
12057 (detach_or_kill_for_exit_cleanup): New function.
12058 (main): New function. Original main renamed to...
12059 (captured_main): New function.
12060 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
12061
120622014-08-29 Gary Benson <gbenson@redhat.com>
12063
12064 * Makefile.in (SFILES): Add common/common-exceptions.c.
12065 (OBS): Add common-exceptions.o.
12066 (common-exceptions.o): New rule.
12067 * utils.c (prepare_to_throw_exception): New function.
12068
120692014-08-29 Gary Benson <gbenson@redhat.com>
12070
12071 * config.in: Regenerate.
12072 * configure: Likewise.
12073
120742014-08-29 Gary Benson <gbenson@redhat.com>
12075
12076 * Makefile.in (SFILES): Add common/cleanups.c.
12077 (OBS): cleanups.o.
12078 (cleanups.o): New rule.
12079
120802014-08-29 Gary Benson <gbenson@redhat.com>
12081
12082 * utils.c (internal_vwarning): New function.
12083
120842014-08-28 Gary Benson <gbenson@redhat.com>
12085
12086 * utils.h (fatal): Remove declaration.
12087 * utils.c (fatal): Remove function.
12088
120892014-08-28 Gary Benson <gbenson@redhat.com>
12090
12091 * tracepoint.c (gdb_agent_init): Replace fatal with
12092 perror_with_name.
12093 (initialize_tracepoint): Likewise.
12094
120952014-08-28 Gary Benson <gbenson@redhat.com>
12096
12097 * remote-utils.c (remote_prepare): Replace fatal with error.
12098
120992014-08-28 Gary Benson <gbenson@redhat.com>
12100
12101 * linux-low.c (linux_async): Replace fatal with warning.
12102 Tidy up and return.
12103 (linux_start_non_stop): Return -1 if linux_async failed.
12104
121052014-08-28 Gary Benson <gbenson@redhat.com>
12106
12107 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
12108 gdb_assert.
12109 (i386_dr_low_get_addr): Remove vague comment.
12110 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
12111 gdb_assert.
12112
121132014-08-28 Gary Benson <gbenson@redhat.com>
12114
12115 * inferiors.c (get_thread_process): Replace check with gdb_assert.
12116 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
12117 internal_error.
12118 (linux_resume_one_lwp): Likewise.
12119 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
12120 gdb_assert.
12121 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
12122 with internal_error.
12123 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
12124 (init_register_cache): Replace fatal with gdb_assert_not_reached.
12125 (find_register_by_name): Replace fatal with internal_error.
12126 (find_regno): Likewise.
12127 * tdesc.c (init_target_desc): Replace check with gdb_assert.
12128 * thread-db.c (thread_db_create_event): Likewise.
12129 (thread_db_load_search): Likewise.
12130 (try_thread_db_load_1): Likewise.
12131 * tracepoint.c (get_jump_space_head): Replace fatal with
12132 internal_error.
12133 (claim_trampoline_space): Likewise.
12134 (have_fast_tracepoint_trampoline_buffer): Likewise.
12135 (cmd_qtstart): Likewise.
12136 (stop_tracing): Likewise.
12137 (fast_tracepoint_collecting): Likewise.
12138 (target_malloc): Likewise.
12139 (download_tracepoint): Likewise.
12140 (download_trace_state_variables): Replace check with gdb_assert.
12141 (upload_fast_traceframes): Replace fatal with internal_error.
12142
121432014-08-19 Tom Tromey <tromey@redhat.com>
12144 Gary Benson <gbenson@redhat.com>
12145
12146 * Makefile.in (SFILES): Add common/common-debug.c.
12147 (OBS): Add common-debug.o.
12148 (common-debug.o): New rule.
12149 * debug.h (debug_printf): Don't declare.
12150 * debug.c (debug_printf): Renamed and rewritten as...
12151 (debug_vprintf): New function.
12152
121532014-08-19 Gary Benson <gbenson@redhat.com>
12154
12155 * utils.h: Do not include print-utils.h.
12156
121572014-08-19 Tom Tromey <tromey@redhat.com>
12158 Gary Benson <gbenson@redhat.com>
12159
12160 * server.h: Add static assertion.
12161 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
12162
121632014-08-19 Tom Tromey <tromey@redhat.com>
12164 Gary Benson <gbenson@redhat.com>
12165
12166 * Makefile.in (SFILES): Add common/errors.c.
12167 (OBS): Add errors.o.
12168 (IPA_OBS): Add errors-ipa.o.
12169 (errors.o): New rule.
12170 (errors-ipa.o): Likewise.
12171 * utils.h (perror_with_name, error, warning): Don't declare.
12172 * utils.c (warning): Renamed and rewritten as...
12173 (vwarning): New function.
12174 (error): Renamed and rewritten as...
12175 (verror): New function.
12176 (internal_error): Renamed and rewritten as...
12177 (internal_verror): New function.
12178
121792014-08-07 Gary Benson <gbenson@redhat.com>
12180
12181 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
12182 * configure: Regenerate.
12183 * config.in: Likewise.
12184 * server.h: Do not include errno.h.
12185 * event-loop.c: Likewise.
12186 * hostio-errno.c: Likewise.
12187 * linux-low.c: Likewise.
12188 * remote-utils.c: Likewise.
12189 * spu-low.c: Likewise.
12190 * utils.c: Likewise.
12191 * gdbreplay.c: Unconditionally include errno.h.
12192
121932014-08-07 Gary Benson <gbenson@redhat.com>
12194
12195 * server.h: Do not include string.h.
12196 * event-loop.c: Likewise.
12197 * linux-low.c: Likewise.
12198 * regcache.c: Likewise.
12199 * remote-utils.c: Likewise.
12200 * spu-low.c: Likewise.
12201 * utils.c: Likewise.
12202
122032014-08-07 Gary Benson <gbenson@redhat.com>
12204
12205 * server.h: Do not include gdb_assert.h.
12206
122072014-08-07 Gary Benson <gbenson@redhat.com>
12208
12209 * server.h: Do not include common-utils.h.
12210
122112014-08-07 Gary Benson <gbenson@redhat.com>
12212
12213 * server.h: Do not include ptid.h.
12214 * notif.h: Likewise.
12215
122162014-08-07 Gary Benson <gbenson@redhat.com>
12217
12218 * server.h: Do not include gdb_locale.h.
12219
122202014-08-07 Gary Benson <gbenson@redhat.com>
12221
12222 * server.h: Do not include gdb/signals.h.
12223 * win32-low.c: Likewise.
12224
122252014-08-07 Gary Benson <gbenson@redhat.com>
12226
12227 * server.h: Do not include pathmax.h.
12228
122292014-08-07 Gary Benson <gbenson@redhat.com>
12230
12231 * server.h: Do not include libiberty.h.
12232 * linux-bfin-low.c: Likewise.
12233
122342014-08-07 Gary Benson <gbenson@redhat.com>
12235
12236 * server.h: Do not include ansidecl.h.
12237
122382014-08-07 Gary Benson <gbenson@redhat.com>
12239
12240 * linux-x86-low.c: Do not include stddef.h.
12241 * lynx-ppc-low.c: Likewise.
12242 * tracepoint.c: Likewise.
12243
122442014-08-07 Gary Benson <gbenson@redhat.com>
12245
12246 * server.h: Do not include stdarg.h.
12247 * nto-low.c: Likewise.
12248
122492014-08-07 Gary Benson <gbenson@redhat.com>
12250
12251 * server.h: Do not include stdlib.h.
12252 * inferiors.c: Likewise.
12253 * linux-low.c: Likewise.
12254 * regcache.c: Likewise.
12255 * spu-low.c: Likewise.
12256 * tracepoint.c: Likewise.
12257 * utils.c: Likewise.
12258
122592014-08-07 Gary Benson <gbenson@redhat.com>
12260
12261 * server.h: Do not include stdio.h.
12262 * linux-low.c: Likewise.
12263 * remote-utils.c: Likewise.
12264 * spu-low.c: Likewise.
12265 * utils.c: Likewise.
12266 * wincecompat.c: Likewise.
12267
122682014-08-06 Gary Benson <gbenson@redhat.com>
12269
12270 * regcache.c (init_register_cache): Move conditionals inside if.
12271
122722014-08-06 Gary Benson <gbenson@redhat.com>
12273
12274 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
12275
122762014-07-31 Gary Benson <gbenson@redhat.com>
12277
12278 * ax.h: Do not include server.h.
12279 * gdbthread.h: Likewise.
12280 * lynx-low.h: Likewise.
12281 * notif.h: Likewise.
12282
122832014-07-30 Gary Benson <gbenson@redhat.com>
12284
12285 * server.h: Include common-defs.h.
12286 Do not include config.h or build-gnulib-gdbserver/config.h.
12287
122882014-07-30 Gary Benson <gbenson@redhat.com>
12289
12290 * hostio-errno.c: Move server.h to top of includes list.
12291 * inferiors.c: Likewise.
12292 * linux-x86-low.c: Likewise.
12293 * notif.c: Include server.h.
12294
122952014-07-24 Tom Tromey <tromey@redhat.com>
12296 Gary Benson <gbenson@redhat.com>
12297
12298 * server.h (CORE_ADDR): Now unsigned.
12299
123002014-07-16 Pedro Alves <palves@redhat.com>
12301
12302 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
12303
123042014-07-15 Pedro Alves <palves@redhat.com>
12305
12306 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
12307 copy.
12308
123092014-07-11 Pedro Alves <palves@redhat.com>
12310
12311 * linux-low.c (kill_wait_lwp): New function, based on
12312 kill_one_lwp_callback, but use my_waitpid directly.
12313 (kill_one_lwp_callback, linux_kill): Use it.
12314
123152014-06-23 Pedro Alves <palves@redhat.com>
12316
12317 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
12318 before setting DR0..DR3.
12319
123202014-06-20 Gary Benson <gbenson@redhat.com>
12321
12322 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
12323 * configure: Regenerated.
12324 * config.in: Likewise.
12325
123262014-06-20 Gary Benson <gbenson@redhat.com>
12327
12328 * Makefile.in (SFILES): Update locations for files moved
12329 from common to nat.
12330 (object file files): Reordered.
12331
123322014-06-20 Gary Benson <gbenson@redhat.com>
12333
12334 * i386-low.h (i386_dr_low_can_set_addr): Removed.
12335 (i386_dr_low_set_addr): Likewise.
12336 (i386_dr_low_get_addr): Likewise.
12337 (i386_dr_low_can_set_control): Likewise.
12338 (i386_dr_low_set_control): Likewise.
12339 (i386_dr_low_get_control): Likewise.
12340 (i386_dr_low_get_status): Likewise.
12341 (i386_get_debug_register_length): Likewise.
12342 * linux-x86-low.c (i386_dr_low_set_addr):
12343 Changed signature. Made static.
12344 (i386_dr_low_get_addr): Likewise.
12345 (i386_dr_low_set_control): Likewise.
12346 (i386_dr_low_get_control): Likewise.
12347 (i386_dr_low_get_status): Likewise.
12348 (i386_dr_low): New global variable.
12349 * win32-i386-low.c (i386_dr_low_set_addr):
12350 Changed signature. Made static.
12351 (i386_dr_low_get_addr): Likewise.
12352 (i386_dr_low_set_control): Likewise.
12353 (i386_dr_low_get_control): Likewise.
12354 (i386_dr_low_get_status): Likewise.
12355 (i386_dr_low): New global variable.
12356
123572014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
12358
12359 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
12360 * Makefile.in (AR, AR_FLAGS): Define.
12361 * configure: Regenerate.
12362
123632014-06-19 Gary Benson <gbenson@redhat.com>
12364
12365 * Makefile.in (i386-dregs.o): New rule.
12366 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
12367 * i386-low.c (target.h): Remove include.
12368 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
12369 (DR_CONTROL_SHIFT): Likewise.
12370 (DR_CONTROL_SIZE): Likewise.
12371 (DR_RW_EXECUTE): Likewise.
12372 (DR_RW_WRITE): Likewise.
12373 (DR_RW_READ): Likewise.
12374 (DR_RW_IORW): Likewise.
12375 (DR_LEN_1): Likewise.
12376 (DR_LEN_2): Likewise.
12377 (DR_LEN_4): Likewise.
12378 (DR_LEN_8): Likewise.
12379 (DR_LOCAL_ENABLE_SHIFT): Likewise.
12380 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
12381 (DR_ENABLE_SIZE): Likewise.
12382 (DR_LOCAL_SLOWDOWN): Likewise.
12383 (DR_GLOBAL_SLOWDOWN): Likewise.
12384 (DR_CONTROL_RESERVED): Likewise.
12385 (I386_DR_CONTROL_MASK): Likewise.
12386 (I386_DR_VACANT): Likewise.
12387 (I386_DR_LOCAL_ENABLE): Likewise.
12388 (I386_DR_GLOBAL_ENABLE): Likewise.
12389 (I386_DR_DISABLE): Likewise.
12390 (I386_DR_SET_RW_LEN): Likewise.
12391 (I386_DR_GET_RW_LEN): Likewise.
12392 (I386_DR_WATCH_HIT): Likewise.
12393 (i386_wp_op_t): Likewise.
12394 (i386_show_dr): Likewise.
12395 (i386_length_and_rw_bits): Likewise.
12396 (i386_insert_aligned_watchpoint): Likewise.
12397 (i386_remove_aligned_watchpoint): Likewise.
12398 (i386_handle_nonaligned_watchpoint): Likewise.
12399 i386_update_inferior_debug_regs(): Likewise.
12400 (i386_dr_insert_watchpoint): Likewise.
12401 (i386_dr_remove_watchpoint): Likewise.
12402 (i386_dr_region_ok_for_watchpoint): Likewise.
12403 (i386_dr_stopped_data_address): Likewise.
12404 (i386_dr_stopped_by_watchpoint): Likewise.
12405
124062014-06-19 Gary Benson <gbenson@redhat.com>
12407
12408 * i386-low.c (i386_dr_show): Renamed to
12409 i386_show_dr and made static. All uses updated.
12410 (i386_dr_length_and_rw_bits): Renamed to
12411 i386_length_and_rw_bits and made static.
12412 All uses updated.
12413 (i386_dr_insert_aligned_watchpoint): Renamed to
12414 i386_insert_aligned_watchpoint and made static.
12415 All uses updated.
12416 (i386_dr_remove_aligned_watchpoint): Renamed to
12417 i386_remove_aligned_watchpoint and made static.
12418 All uses updated.
12419 (i386_dr_update_inferior_debug_regs): Renamed to
12420 i386_update_inferior_debug_regs and made static.
12421 All uses updated.
12422
124232014-06-18 Gary Benson <gbenson@redhat.com>
12424
12425 * i386-low.h (i386_dr_low_can_set_addr): New macro.
12426 (i386_dr_low_can_set_control): Likewise.
12427 (i386_get_debug_register_length): Likewise.
12428 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
12429 (i386_dr_low_can_set_control): Likewise.
12430 (i386_get_debug_register_length): Likewise.
12431
124322014-06-17 Gary Benson <gbenson@redhat.com>
12433
12434 * i386-low.h (i386-dregs.h): New include.
12435 (DR_FIRSTADDR): Now in i386-dregs.h.
12436 (DR_LASTADDR): Likewise.
12437 (DR_NADDR): Likewise.
12438 (DR_STATUS): Likewise.
12439 (DR_CONTROL): Likewise.
12440 (i386_debug_reg_state): Likewise.
12441 (i386_dr_insert_watchpoint): Likewise.
12442 (i386_dr_remove_watchpoint): Likewise.
12443 (i386_dr_region_ok_for_watchpoint): Likewise.
12444 (i386_dr_stopped_data_address): Likewise.
12445 (i386_dr_stopped_by_watchpoint): Likewise.
12446 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
12447
124482014-06-18 Gary Benson <gbenson@redhat.com>
12449
12450 * i386-low.h (i386_low_insert_watchpoint): Renamed to
12451 i386_dr_insert_watchpoint.
12452 (i386_low_remove_watchpoint): Renamed to
12453 i386_dr_remove_watchpoint.
12454 (i386_low_region_ok_for_watchpoint): Renamed to
12455 i386_dr_region_ok_for_watchpoint.
12456 (i386_low_stopped_data_address): Renamed to
12457 i386_dr_stopped_data_address.
12458 (i386_low_stopped_by_watchpoint): Renamed to
12459 i386_dr_stopped_by_watchpoint.
12460 * i386-low.c (i386_show_dr): Renamed to
12461 i386_dr_show and made nonstatic. All uses updated.
12462 (i386_length_and_rw_bits): Renamed to
12463 i386_dr_length_and_rw_bits and made nonstatic.
12464 All uses updated.
12465 (i386_insert_aligned_watchpoint): Renamed to
12466 i386_dr_insert_aligned_watchpoint and made nonstatic.
12467 All uses updated.
12468 (i386_remove_aligned_watchpoint): Renamed to
12469 i386_dr_remove_aligned_watchpoint and made nonstatic.
12470 All uses updated.
12471 (i386_update_inferior_debug_regs): Renamed to
12472 i386_dr_update_inferior_debug_regs and made nonstatic.
12473 All uses updated.
12474 (i386_low_insert_watchpoint): Renamed to
12475 i386_dr_insert_watchpoint. All uses updated.
12476 (i386_low_remove_watchpoint): Renamed to
12477 i386_dr_remove_watchpoint. All uses updated.
12478 (i386_low_region_ok_for_watchpoint): Renamed to
12479 i386_dr_region_ok_for_watchpoint. All uses updated.
12480 (i386_low_stopped_data_address): Renamed to
12481 i386_dr_stopped_data_address. All uses updated.
12482 (i386_low_stopped_by_watchpoint): Renamed to
12483 i386_dr_stopped_by_watchpoint. All uses updated.
12484
124852014-06-18 Gary Benson <gbenson@redhat.com>
12486
12487 * i386-low.c (i386_dr_low_can_set_addr): New macro.
12488 (i386_dr_low_can_set_control): Likewise.
12489 (i386_insert_aligned_watchpoint): New check.
12490
124912014-06-18 Gary Benson <gbenson@redhat.com>
12492
12493 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
12494 Renamed to state.
12495
124962014-06-18 Gary Benson <gbenson@redhat.com>
12497
12498 * i386-low.c (i386_length_and_rw_bits): Use internal_error
12499 instead of fatal and error.
12500 (i386_handle_nonaligned_watchpoint): Likewise.
12501
125022014-06-18 Gary Benson <gbenson@redhat.com>
12503
12504 * i386-low.c (i386_get_debug_register_length): New macro.
12505 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
12506 (i386_show_dr): Use debug_printf instead of fprintf. Use
12507 phex to format values.
12508
125092014-06-18 Gary Benson <gbenson@redhat.com>
12510
12511 * i386-low.h: Comment changes.
12512 * i386-low.c: Likewise.
12513
125142014-06-18 Gary Benson <gbenson@redhat.com>
12515
12516 * i386-low.c: Whitespace changes.
12517
125182014-06-12 Tom Tromey <tromey@redhat.com>
12519
12520 * utils.c (freeargv): Remove.
12521
125222014-06-12 Tom Tromey <tromey@redhat.com>
12523
12524 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
12525 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
12526 (parse_debug_format_options): Likewise.
12527 (gdbserver_usage): Likewise.
12528 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
12529 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
12530 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
12531 against libiberty.
12532 ($(LIBGNU)): Depend on libiberty.
12533 (all-lib): Recurse into all subdirs.
12534 (install-only): Invoke "install" target in subdirs.
12535 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
12536 targets.
12537 * configure: Rebuild.
12538 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
12539 for vasprintf, vsnprintf, or gettimeofday.
12540 * configure.srv: Don't add safe-ctype.o or lbasename.o to
12541 srv_tgtobj.
12542
125432014-06-05 Joel Brobecker <brobecker@adacore.com>
12544
12545 * development.sh: Delete.
12546 * Makefile.in (config.status): Adjust dependency on development.sh.
12547 * configure.ac: Adjust development.sh source call.
12548 * configure: Regenerate.
12549
125502014-06-02 Pedro Alves <palves@redhat.com>
12551
12552 * ax.c (gdb_free_agent_expr): New function.
12553 * ax.h (gdb_free_agent_expr): New declaration.
12554 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
12555 list.
12556 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
12557 static.
12558 (clear_breakpoint_conditions_and_commands): New function.
12559 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
12560 (clear_breakpoint_conditions_and_commands): New declaration.
12561
125622014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12563
12564 * linux-aarch64-low.c (asm/ptrace.h): Include.
12565
125662014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12567
12568 Fix TLS access for -static -pthread.
12569 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
12570 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
12571 (thread_db_load_search, try_thread_db_load_1): Initialize it.
12572
125732014-05-20 Pedro Alves <palves@redhat.com>
12574
12575 * linux-aarch64-low.c (aarch64_insert_point)
12576 (aarch64_remove_point): No longer check whether the type is
12577 supported here. Adjust to new interface.
12578 (the_low_target): Install aarch64_supports_z_point_type as
12579 supports_z_point_type method.
12580 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
12581 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
12582 instead of a Z packet char. Adjust.
12583 (arm_supports_z_point_type): New function.
12584 (arm_insert_point, arm_remove_point): Adjust to new interface.
12585 (the_low_target): Install arm_supports_z_point_type.
12586 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
12587 (cris_insert_point, cris_remove_point): Adjust to new interface.
12588 Don't check whether the type is supported here.
12589 (the_low_target): Install cris_supports_z_point_type.
12590 * linux-low.c (linux_supports_z_point_type): New function.
12591 (linux_insert_point, linux_remove_point): Adjust to new interface.
12592 * linux-low.h (struct linux_target_ops) <insert_point,
12593 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
12594 raw_breakpoint pointer parameter.
12595 <supports_z_point_type>: New method.
12596 * linux-mips-low.c (mips_supports_z_point_type): New function.
12597 (mips_insert_point, mips_remove_point): Adjust to new interface.
12598 Use mips_supports_z_point_type.
12599 (the_low_target): Install mips_supports_z_point_type.
12600 * linux-ppc-low.c (the_low_target): Install NULL as
12601 supports_z_point_type method.
12602 * linux-s390-low.c (the_low_target): Install NULL as
12603 supports_z_point_type method.
12604 * linux-sparc-low.c (the_low_target): Install NULL as
12605 supports_z_point_type method.
12606 * linux-x86-low.c (x86_supports_z_point_type): New function.
12607 (x86_insert_point): Adjust to new insert_point interface. Use
12608 insert_memory_breakpoint. Adjust to new
12609 i386_low_insert_watchpoint interface.
12610 (x86_remove_point): Adjust to remove_point interface. Use
12611 remove_memory_breakpoint. Adjust to new
12612 i386_low_remove_watchpoint interface.
12613 (the_low_target): Install x86_supports_z_point_type.
12614 * lynx-low.c (lynx_target_ops): Install NULL as
12615 supports_z_point_type callback.
12616 * nto-low.c (nto_supports_z_point_type): New.
12617 (nto_insert_point, nto_remove_point): Adjust to new interface.
12618 (nto_target_ops): Install nto_supports_z_point_type.
12619 * mem-break.c: Adjust intro comment.
12620 (struct raw_breakpoint) <raw_type, size>: New fields.
12621 <inserted>: Update comment.
12622 <shlib_disabled>: Delete field.
12623 (enum bkpt_type) <gdb_breakpoint>: Delete value.
12624 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
12625 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
12626 (raw_bkpt_type_to_target_hw_bp_type): New function.
12627 (find_enabled_raw_code_breakpoint_at): New function.
12628 (find_raw_breakpoint_at): New type and size parameters. Use them.
12629 (insert_memory_breakpoint): New function, based off
12630 set_raw_breakpoint_at.
12631 (remove_memory_breakpoint): New function.
12632 (set_raw_breakpoint_at): Reimplement.
12633 (set_breakpoint): New, based on set_breakpoint_at.
12634 (set_breakpoint_at): Reimplement.
12635 (delete_raw_breakpoint): Go through the_target->remove_point
12636 instead of assuming memory breakpoints.
12637 (find_gdb_breakpoint_at): Delete.
12638 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
12639 (find_gdb_breakpoint): New function.
12640 (set_gdb_breakpoint_at): Delete.
12641 (z_type_supported): New function.
12642 (set_gdb_breakpoint_1): New function, loosely based off
12643 set_gdb_breakpoint_at.
12644 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
12645 (delete_gdb_breakpoint_at): Delete.
12646 (delete_gdb_breakpoint_1): New function, loosely based off
12647 delete_gdb_breakpoint_at.
12648 (delete_gdb_breakpoint): New function.
12649 (clear_gdb_breakpoint_conditions): Rename to ...
12650 (clear_breakpoint_conditions): ... this. Don't handle a NULL
12651 breakpoint.
12652 (add_condition_to_breakpoint): Make static.
12653 (add_breakpoint_condition): Take a struct breakpoint pointer
12654 instead of an address. Adjust.
12655 (gdb_condition_true_at_breakpoint): Rename to ...
12656 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
12657 z_type parameter.
12658 (gdb_condition_true_at_breakpoint): Reimplement.
12659 (add_breakpoint_commands): Take a struct breakpoint pointer
12660 instead of an address. Adjust.
12661 (gdb_no_commands_at_breakpoint): Rename to ...
12662 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
12663 parameter. Return true if no breakpoint was found. Change debug
12664 output.
12665 (gdb_no_commands_at_breakpoint): Reimplement.
12666 (run_breakpoint_commands): Rename to ...
12667 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
12668 and change return type to boolean.
12669 (run_breakpoint_commands): New function.
12670 (gdb_breakpoint_here): Also check for Z1 breakpoints.
12671 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
12672 breakpoint. Go through the_target->remove_point instead of
12673 assuming memory breakpoint.
12674 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
12675 software and hardware breakpoints.
12676 (reinsert_raw_breakpoint): Go through the_target->insert_point
12677 instead of assuming memory breakpoint.
12678 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
12679 software and hardware breakpoints.
12680 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
12681 Check both software and hardware breakpoints.
12682 (validate_inserted_breakpoint): Assert the breakpoint is a
12683 software breakpoint. Set the inserted flag to -1 instead of
12684 setting shlib_disabled.
12685 (delete_disabled_breakpoints): Adjust.
12686 (validate_breakpoints): Only validate software breakpoints.
12687 Adjust to inserted flag change.
12688 (check_mem_read, check_mem_write): Skip breakpoint types other
12689 than software breakpoints. Adjust to inserted flag change.
12690 * mem-break.h (enum raw_bkpt_type): New enum.
12691 (raw_breakpoint, struct process_info): Forward declare.
12692 (Z_packet_to_target_hw_bp_type): Delete declaration.
12693 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
12694 (set_gdb_breakpoint, delete_gdb_breakpoint)
12695 (clear_breakpoint_conditions): New declarations.
12696 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
12697 (breakpoint_inserted_here): Update comment.
12698 (add_breakpoint_condition, add_breakpoint_commands): Replace
12699 address parameter with a breakpoint pointer parameter.
12700 (gdb_breakpoint_here): Update comment.
12701 (delete_gdb_breakpoint_at): Delete.
12702 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
12703 * server.c (process_point_options): Take a struct breakpoint
12704 pointer instead of an address. Adjust.
12705 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
12706 delete_gdb_breakpoint.
12707 * spu-low.c (spu_target_ops): Install NULL as
12708 supports_z_point_type method.
12709 * target.h: Include mem-break.h.
12710 (struct target_ops) <prepare_to_access_memory>: Update comment.
12711 <supports_z_point_type>: New field.
12712 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12713 instead of a char. Also take a raw breakpoint pointer.
12714 * win32-arm-low.c (the_low_target): Install NULL as
12715 supports_z_point_type.
12716 * win32-i386-low.c (i386_supports_z_point_type): New function.
12717 (i386_insert_point, i386_remove_point): Adjust to new interface.
12718 (the_low_target): Install i386_supports_z_point_type.
12719 * win32-low.c (win32_supports_z_point_type): New function.
12720 (win32_insert_point, win32_remove_point): Adjust to new interface.
12721 (win32_target_ops): Install win32_supports_z_point_type.
12722 * win32-low.h (struct win32_target_ops):
12723 <supports_z_point_type>: New method.
12724 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12725 instead of a char. Also take a raw breakpoint pointer.
12726
127272014-05-20 Pedro Alves <palves@redhat.com>
12728
12729 * mem-break.h: Include break-common.h.
12730 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12731 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
12732 (Z_packet_to_target_hw_bp_type): New declaration.
12733 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
12734 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
12735 (Z_PACKET_ACCESS_WP): Delete macros.
12736 (Z_packet_to_hw_type): Delete function.
12737 * i386-low.h: Don't include break-common.h here.
12738 (Z_packet_to_hw_type): Delete declaration.
12739 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
12740 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12741 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
12742 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12743 * linux-aarch64-low.c: Don't include break-common.h here.
12744 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12745 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
12746 (Z_packet_to_target_hw_bp_type): Delete function.
12747 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
12748 function.
12749 (mips_insert_point, mips_remove_point): Use
12750 Z_packet_to_target_hw_bp_type.
12751
127522014-05-20 Pedro Alves <palves@redhat.com>
12753
12754 * linux-aarch64-low.c: Include break-common.h.
12755 (enum target_point_type): Delete.
12756 (Z_packet_to_point_type): Rename to ...
12757 (Z_packet_to_target_hw_bp_type): ... this, and return a
12758 target_hw_bp_type instead.
12759 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
12760 instead of an enum target_point_type.
12761 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
12762 breakpoint type.
12763 (aarch64_dr_state_insert_one_point)
12764 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
12765 (aarch64_handle_aligned_watchpoint)
12766 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
12767 Take an enum target_hw_bp_type instead of an enum
12768 target_point_type.
12769 (aarch64_supports_z_point_type): New function.
12770 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
12771 use Z_packet_to_target_hw_bp_type.
12772
127732014-05-20 Joel Brobecker <brobecker@adacore.com>
12774
12775 * configure.ac: Only use -Werror by default when DEVELOPMENT
12776 is true.
12777 * configure: Regenerate.
12778
127792014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
12780
12781 Fix gdbserver qGetTLSAddr for x86_64 -m32.
12782 * linux-x86-low.c (X86_64_USER_REGS): New.
12783 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
12784
127852014-04-28 Yao Qi <yao@codesourcery.com>
12786
12787 * Makefile.in (i386-avx512.c): Fix the typo of generated file
12788 name.
12789
127902014-04-25 Pedro Alves <palves@redhat.com>
12791
12792 PR server/16255
12793 * linux-low.c (linux_attach_fail_reason_string): New function.
12794 (linux_attach_lwp): Delete.
12795 (linux_attach_lwp_1): Rename to ...
12796 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
12797 argument. Remove "initial" parameter. Return int instead of
12798 void. Don't error or warn here.
12799 (linux_attach): Adjust to call linux_attach_lwp. Call error on
12800 failure to attach to the tgid. Call warning when failing to
12801 attach to an lwp.
12802 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
12803 argument. Remove "initial" parameter. Return int instead of
12804 void. Don't error or warn here.
12805 (linux_attach_fail_reason_string): New declaration.
12806 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
12807 interface change. Use linux_attach_fail_reason_string.
12808
128092014-04-24 Michael Sturm <michael.sturm@mintel.com>
12810 Walfred Tedeschi <walfred.tedeschi@intel.com>
12811
12812 * Makefile.in: Added rules to handle new files
12813 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
12814 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
12815 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
12816 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
12817 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
12818 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
12819 x32-avx512-linux.o.
12820 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
12821 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
12822 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
12823 i386/x32-avx512.xml.
12824 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
12825 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
12826 i386/x32-avx512-linux.xml.
12827 * i387-fp.c (num_avx512_k_registers): New constant for number
12828 of K registers.
12829 (num_avx512_zmmh_low_registers): New constant for number of
12830 lower ZMM registers (0-15).
12831 (num_avx512_zmmh_high_registers): New constant for number of
12832 higher ZMM registers (16-31).
12833 (num_avx512_ymmh_registers): New contant for number of higher
12834 YMM registers (ymm16-31 added by avx521 on x86_64).
12835 (num_avx512_xmm_registers): New constant for number of higher
12836 XMM registers (xmm16-31 added by AVX512 on x86_64).
12837 (struct i387_xsave): Add space for AVX512 registers.
12838 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
12839 Add code to handle AVX512 registers.
12840 (i387_xsave_to_cache): Add code to handle AVX512 registers.
12841 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
12842 prototypei from generated file.
12843 (tdesc_amd64_avx512_linux): Likewise.
12844 (init_registers_x32_avx512_linux): Likewise.
12845 (tdesc_x32_avx512_linux): Likewise.
12846 (init_registers_i386_avx512_linux): Likewise.
12847 (tdesc_i386_avx512_linux): Likewise.
12848 (x86_64_regmap): Add AVX512 registers.
12849 (x86_linux_read_description): Add code to handle AVX512 XSTATE
12850 mask.
12851 (initialize_low_arch): Add code to initialize AVX512 registers.
12852
128532014-04-23 Pedro Alves <palves@redhat.com>
12854
12855 * mem-break.c (find_gdb_breakpoint_at): Make static.
12856 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
12857
128582014-04-23 Pedro Alves <palves@redhat.com>
12859
12860 * i386-low.c: Don't include break-common.h here.
12861 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12862 prototype to take target_hw_bp_type as argument instead of a Z
12863 packet char.
12864 * i386-low.h: Include break-common.h here.
12865 (Z_packet_to_hw_type): Declare.
12866 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12867 prototypes.
12868 * linux-x86-low.c (x86_insert_point): Convert the packet number to
12869 a target_hw_bp_type before calling i386_low_insert_watchpoint.
12870 (x86_remove_point): Convert the packet number to a
12871 target_hw_bp_type before calling i386_low_remove_watchpoint.
12872 * win32-i386-low.c (i386_insert_point): Convert the packet number
12873 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
12874 (i386_remove_point): Convert the packet number to a
12875 target_hw_bp_type before calling i386_low_remove_watchpoint.
12876
128772014-04-23 Pedro Alves <palves@redhat.com>
12878
12879 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
12880
128812014-04-10 Pedro Alves <palves@redhat.com>
12882
12883 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
12884 Check if the condition or command is NULL before checking if the
12885 breakpoint is known. On success, return true.
12886 * mem-break.h (add_breakpoint_condition): Document return.
12887 (add_breakpoint_commands): Add describing comment.
12888 * server.c (skip_to_semicolon): New function.
12889 (process_point_options): Use it.
12890
128912014-04-09 Pedro Alves <palves@redhat.com>
12892
12893 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
12894 to lwpid_of.
12895
128962014-02-27 Pedro Alves <palves@redhat.com>
12897
12898 PR 12702
12899 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
12900 macros.
12901 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
12902 output.
12903 (last_thread_of_process_p): Take a PID argument instead of a
12904 thread pointer.
12905 (linux_wait_for_lwp): Delete.
12906 (num_lwps, check_zombie_leaders, not_stopped_callback): New
12907 functions.
12908 (linux_low_filter_event): New function, party factored out from
12909 linux_wait_for_event.
12910 (linux_wait_for_event): Rename to ...
12911 (linux_wait_for_event_filtered): ... this. Add new filter ptid
12912 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
12913 sigsuspend. Check for zombie leaders.
12914 (linux_wait_for_event): Reimplement as wrapper around
12915 linux_wait_for_event_filtered.
12916 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
12917 a normal or signal exit is seen, it's the whole process exiting.
12918 (wait_for_sigstop): No longer a for_each_inferior callback.
12919 Rewrite on top of linux_wait_for_event_filtered.
12920 (stop_all_lwps): Call wait_for_sigstop directly.
12921 * server.c (resume, handle_target_event): Handle
12922 TARGET_WAITKIND_NO_RESUMED.
12923
129242014-02-26 Joel Brobecker <brobecker@adacore.com>
12925
12926 * win32-low.c (psapi_get_dll_name,
12927 * win32_CreateToolhelp32Snapshot): Delete.
12928 (win32_CreateToolhelp32Snapshot, win32_Module32First)
12929 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
12930 Delete.
12931 (handle_load_dll): Add function description.
12932 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
12933
129342014-02-26 Joel Brobecker <brobecker@adacore.com>
12935
12936 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
12937 Add comment.
12938 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
12939 base address when calling win32_add_one_solib.
12940 (handle_load_dll): Delete local variable load_addr.
12941 Remove 0x1000 offset applied to DLL base address when calling
12942 win32_add_one_solib.
12943 (handle_unload_dll): Add comment.
12944
129452014-02-26 Joel Brobecker <brobecker@adacore.com>
12946
12947 * win32-low.c (win32_add_all_dlls): Renames
12948 win32_ensure_ntdll_loaded. Rewrite function documentation.
12949 Adjust implementation to always load all DLLs.
12950 Add 0x1000 offset to DLL base address when calling
12951 win32_add_one_solib.
12952 (child_initialization_done): New static global.
12953 (do_initial_child_stuff): Set child_initialization_done to
12954 zero during child initialization, and 1 after. Replace call
12955 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
12956 Add comment.
12957 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
12958 (handle_unload_dll): Add function documentation.
12959 (get_child_debug_event): Ignore load and unload DLL events
12960 during child initialization.
12961
129622014-02-20 Doug Evans <dje@google.com>
12963
12964 Remove global all_lwps.
12965 * inferiors.h (ptid_of): Move here from linux-low.h.
12966 (pid_of, lwpid_of): Ditto.
12967 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
12968 parameter is a struct thread_info * now.
12969 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
12970 directly. Pass &all_threads to find_inferior instead of &all_lwps.
12971 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
12972 directly.
12973 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
12974 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
12975 * linux-arm-low.c (update_registers_callback): Update, "entry"
12976 parameter is a struct thread_info * now.
12977 Fetch lwpid from current_inferior directly.
12978 (arm_insert_point): Pass &all_threads to find_inferior instead of
12979 &all_lwps.
12980 (arm_remove_point): Ditto.
12981 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
12982 (arm_prepare_to_resume): Fetch pid from thread.
12983 (arm_read_description): Fetch lwpid from current_inferior directly.
12984 * linux-low.c (all_lwps): Delete.
12985 (delete_lwp): Delete call to remove_inferior.
12986 (handle_extended_wait): Fetch lwpid from thread.
12987 (add_lwp): Don't set lwp->entry.id. Remove call to
12988 add_inferior_to_list.
12989 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
12990 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
12991 (kill_one_lwp_callback): Ditto.
12992 (linux_kill): Don't dereference NULL pointer.
12993 Fetch ptid,lwpid from thread.
12994 (get_detach_signal): Fetch ptid from thread.
12995 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
12996 Simplify call to regcache_invalidate_thread.
12997 (delete_lwp_callback): Update, "entry" parameter is a
12998 struct thread_info * now. Fetch pid from thread.
12999 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
13000 (status_pending_p_callback): Update, "entry" parameter is a
13001 struct thread_info * now. Fetch ptid from thread.
13002 (find_lwp_pid): Update, "entry" parameter is a
13003 struct thread_info * now.
13004 (linux_wait_for_lwp): Fetch pid from thread.
13005 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
13006 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
13007 (enqueue_one_deferred_signal): Fetch lwpid from thread.
13008 (dequeue_one_deferred_signal): Ditto.
13009 (cancel_breakpoint): Fetch ptid from current_inferior.
13010 (linux_wait_for_event): Pass &all_threads to find_inferior,
13011 not &all_lwps. Fetch ptid, lwpid from thread.
13012 (count_events_callback): Update, "entry" parameter is a
13013 struct thread_info * now.
13014 (select_singlestep_lwp_callback): Ditto.
13015 (select_event_lwp_callback): Ditto.
13016 (cancel_breakpoints_callback): Ditto.
13017 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
13018 not &all_lwps.
13019 (select_event_lwp): Ditto. Fetch ptid from event_thread.
13020 (unsuspend_one_lwp): Update, "entry" parameter is a
13021 struct thread_info * now.
13022 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
13023 not &all_lwps.
13024 (linux_stabilize_threads): Ditto. And for for_each_inferior.
13025 Fetch lwpid from thread, not lwp.
13026 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
13027 Pass &all_threads to find_inferior, not &all_lwps.
13028 (send_sigstop): Fetch lwpid from thread, not lwp.
13029 (send_sigstop_callback): Update, "entry" parameter is a
13030 struct thread_info * now.
13031 (suspend_and_send_sigstop_callback): Ditto.
13032 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
13033 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
13034 struct thread_info * now.
13035 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
13036 from thread, lwp.
13037 (lwp_running): Update, "entry" parameter is a
13038 struct thread_info * now.
13039 (stop_all_lwps): Fetch ptid from thread.
13040 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
13041 (linux_resume_one_lwp): Fetch lwpid from thread.
13042 (linux_set_resume_request): Update, "entry" parameter is a
13043 struct thread_info * now. Fetch pid, lwpid from thread.
13044 (resume_status_pending_p): Update, "entry" parameter is a
13045 struct thread_info * now.
13046 (need_step_over_p): Ditto. Fetch lwpid from thread.
13047 (start_step_over): Fetch lwpid from thread.
13048 (linux_resume_one_thread): Update, "entry" parameter is a
13049 struct thread_info * now. Fetch lwpid from thread.
13050 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
13051 (proceed_one_lwp): Update, "entry" parameter is a
13052 struct thread_info * now. Fetch lwpid from thread.
13053 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
13054 struct thread_info * now.
13055 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
13056 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
13057 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
13058 directly.
13059 (regsets_store_inferior_registers): Ditto.
13060 (fetch_register, store_register): Ditto.
13061 (linux_read_memory, linux_write_memory): Ditto.
13062 (linux_request_interrupt): Ditto.
13063 (linux_read_auxv): Ditto.
13064 (linux_xfer_siginfo): Ditto.
13065 (linux_qxfer_spu): Ditto.
13066 (linux_qxfer_libraries_svr4): Ditto.
13067 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
13068 moved to inferiors.h.
13069 (get_lwp): Delete.
13070 (get_thread_lwp): Update.
13071 (struct lwp_info): Delete member "entry". Simplify comment for
13072 member "thread".
13073 (all_lwps): Delete.
13074 * linux-mips-low.c (mips_read_description): Fetch lwpid from
13075 current_inferior directly.
13076 (update_watch_registers_callback): Update, "entry" parameter is a
13077 struct thread_info * now. Fetch pid from thread.
13078 (mips_linux_prepare_to_resume): Fetch ptid from thread.
13079 (mips_insert_point): Fetch lwpid from current_inferior.
13080 Pass &all_threads to find_inferior, not &all_lwps.
13081 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
13082 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
13083 directly.
13084 (mips_stopped_data_address): Ditto.
13085 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
13086 directly.
13087 * linux-tile-low.c (tile_arch_setup): Ditto.
13088 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
13089 (update_debug_registers_callback): Update, "entry" parameter is a
13090 struct thread_info * now. Fetch pid from thread.
13091 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
13092 Pass &all_threads to find_inferior, not &all_lwps.
13093 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
13094 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
13095 Pass &all_threads to find_inferior, not &all_lwps.
13096 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
13097 (i386_dr_low_get_status): Ditto.
13098 (x86_linux_prepare_to_resume): Fetch ptid from thread.
13099 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
13100 (x86_linux_read_description): Ditto.
13101 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
13102
131032014-02-20 Doug Evans <dje@google.com>
13104
13105 * inferiors.c (get_first_inferior): Fix buglet.
13106
131072014-02-19 Doug Evans <dje@google.com>
13108
13109 * gdbthread.h (add_thread): Change result type to struct thread_info *.
13110 * inferiors.c (add_thread): Change result type to struct thread_info *.
13111 All callers updated.
13112 (add_lwp): Call add_thread here instead of in callers.
13113 All callers updated.
13114 * linux-low.h (get_lwp_thread): Rewrite.
13115 (struct lwp_info): New member "thread".
13116
131172014-02-19 Doug Evans <dje@google.com>
13118
13119 * linux-low.c (add_lwp): Change result to struct lwp_info *.
13120 All callers updated.
13121
131222014-02-19 Doug Evans <dje@google.com>
13123
13124 * inferiors.c (add_thread): Fix whitespace.
13125
131262014-02-19 Doug Evans <dje@google.com>
13127
13128 * dll.c (clear_dlls): Replace accessing list implemention details
13129 with API function.
13130 * gdbthread.h (get_first_thread): Declare.
13131 * inferiors.c (for_each_inferior_with_data): New function.
13132 (get_first_thread): New function.
13133 (find_thread_ptid): Simplify.
13134 (get_first_inferior): New function.
13135 (clear_list): Delete.
13136 (one_inferior_p): New function.
13137 (clear_inferior_list): New function.
13138 (clear_inferiors): Update.
13139 * inferiors.h (for_each_inferior_with_data): Declare.
13140 (clear_inferior_list): Declare.
13141 (one_inferior_p): Declare.
13142 (get_first_inferior): Declare.
13143 * linux-low.c (linux_wait_for_event): Replace accessing list
13144 implemention details with API function.
13145 * server.c (target_running): Ditto.
13146 (accumulate_file_name_length): New function.
13147 (emit_dll_description): New function.
13148 (handle_qxfer_libraries): Replace accessing list implemention
13149 details with API function.
13150 (handle_qxfer_threads_worker): New function.
13151 (handle_qxfer_threads_proper): Replace accessing list implemention
13152 details with API function.
13153 (handle_query): Ditto.
13154 (visit_actioned_threads_callback_ftype): New typedef.
13155 (visit_actioned_threads_data): New struct.
13156 (visit_actioned_threads): Rewrite to be find_inferior callback.
13157 (resume): Call find_inferior.
13158 (handle_status): Replace accessing list implemention
13159 details with API function.
13160 (process_serial_event): Replace accessing list implemention details
13161 with API function.
13162 * target.c (set_desired_inferior): Replace accessing list implemention
13163 details with API function.
13164 * tracepoint.c (same_process_p): New function.
13165 (gdb_agent_about_to_close): Replace accessing list implemention
13166 details with API function.
13167 * win32-low.c (child_delete_thread): Replace accessing list
13168 implemention details with API function.
13169 (match_dll_by_basename): New function.
13170 (dll_is_loaded_by_basename): New function.
13171 (win32_ensure_ntdll_loaded): Replace accessing list implemention
13172 details call to dll_is_loaded_by_basename.
13173
131742014-02-19 Doug Evans <dje@google.com>
13175
13176 * dll.h (struct dll_info): Add comment.
13177 * gdbthread.h (struct thread_info): Add comment.
13178 (current_ptid): Simplify.
13179 * inferiors.c (add_process): Update.
13180 (remove_process): Update.
13181 * inferiors.h (struct process_info): Rename member "head" to "entry".
13182 * linux-low.c (delete_lwp): Update.
13183 (add_lwp): Update.
13184 (last_thread_of_process_p): Update.
13185 (kill_one_lwp_callback, linux_kill): Update.
13186 (status_pending_p_callback): Update.
13187 (wait_for_sigstop): Update. Simplify read of ptid.
13188 (start_step_over): Update.
13189 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
13190 (get_lwp_thread): Update.
13191 (struct lwp_info): Rename member "head" to "entry".
13192 * regcache.h (inferior_list_entry): Delete.
13193 * server.c (kill_inferior_callback): Update.
13194 (detach_or_kill_inferior_callback): Update.
13195 (print_started_pid): Update.
13196 (print_attached_pid): Update.
13197 (process_serial_event): Simplify read of ptid.
13198 * thread-db.c (thread_db_create_event): Update.
13199 (thread_db_get_tls_address): Update.
13200 * win32-low.c (current_inferior_ptid): Simplify.
13201
132022014-02-19 Tom Tromey <tromey@redhat.com>
13203
13204 * target.h (struct target_ops) <supports_btrace>: Add target_ops
13205 argument.
13206 (target_supports_btrace): Update.
13207
132082014-02-14 Yao Qi <yao@codesourcery.com>
13209
13210 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
13211 (rsp-low-ipa.o): New target.
13212
132132014-02-12 Tom Tromey <tromey@redhat.com>
13214
13215 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
13216 convert_ascii_to_int.
13217 * regcache.c (registers_to_string): Likewise.
13218 * remote-utils.c (decode_M_packet): Likewise.
13219 * server.c (process_serial_event): Likewise.
13220
132212014-02-12 Tom Tromey <tromey@redhat.com>
13222
13223 * server.c (handle_query, handle_v_run): Use hex2bin, not
13224 unhexify.
13225 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
13226
132272014-02-12 Tom Tromey <tromey@redhat.com>
13228
13229 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
13230 convert_int_to_ascii.
13231 * regcache.c (registers_to_string, collect_register_as_string):
13232 Likewise.
13233 * remote-utils.c (look_up_one_symbol, relocate_instruction):
13234 Likewise.
13235 * server.c (process_serial_event): Likewise.
13236 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
13237 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
13238
132392014-02-12 Tom Tromey <tromey@redhat.com>
13240
13241 * remote-utils.c (look_up_one_symbol, monitor_output): Use
13242 bin2hex, not hexify.
13243 * tracepoint.c (cmd_qtstatus): Likewise.
13244
132452014-02-12 Tom Tromey <tromey@redhat.com>
13246
13247 * remote-utils.c (monitor_output): Pass explicit length to
13248 hexify.
13249
132502014-02-12 Tom Tromey <tromey@redhat.com>
13251
13252 * tracepoint.c: Include rsp-low.h.
13253 * server.c: Include rsp-low.h.
13254 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
13255 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
13256 declare.
13257 * remote-utils.c: Include rsp-low.h.
13258 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
13259 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
13260 (convert_int_to_ascii, convert_ascii_to_int): Move to
13261 common/rsp-low.c.
13262 * regcache.c: Include rsp-low.h.
13263 * ax.c: Include rsp-low.h.
13264 * Makefile.in (SFILES): Add common/rsp-low.c.
13265 (OBS): Add rsp-low.o.
13266 (rsp-low.o): New target.
13267
132682014-02-12 Tom Tromey <tromey@redhat.com>
13269
13270 * utils.h (pulongest, plongest, phex_nz): Don't declare.
13271 Include print-utils.h.
13272 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13273 (plongest, thirty_two, phex_nz): Remove.
13274 * Makefile.in (SFILES): Add common/print-utils.c.
13275 (OBS): Add print-utils.o.
13276 (print-utils-ipa.o): New target.
13277 (print-utils.o): New target.
13278 (IPA_OBJS): Add print-utils-ipa.o.
13279
132802014-02-06 Tom Tromey <tromey@redhat.com>
13281
13282 * Makefile.in (SFILES): Fix indentation.
13283
132842014-02-05 Doug Evans <dje@google.com>
13285
13286 * linux-low.c (linux_wait_for_event): Improve comment.
13287 (linux_wait_1): Keep current_inferior in sync with event_child.
13288
132892014-01-22 Doug Evans <dje@google.com>
13290
13291 * gdbthread.h (gdb_id_to_thread): Delete, unused.
13292
132932014-01-22 Doug Evans <dje@google.com>
13294
13295 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
13296 * configure: Regenerate.
13297 * config.in: Regenerate.
13298 * Makefile.in (SFILES): Add debug.c.
13299 (OBS): Add debug.o.
13300 * debug.c: New file.
13301 * debug.h: New file.
13302 * linux-aarch64-low.c (*): Update all debugging printfs to use
13303 debug_printf instead of fprintf.
13304 * linux-arm-low.c (*): Ditto.
13305 * linux-cris-low.c (*): Ditto.
13306 * linux-crisv32-low.c (*): Ditto.
13307 * linux-m32r-low.c (*): Ditto.
13308 * linux-sparc-low.c (*): Ditto.
13309 * linux-x86.c (*): Ditto.
13310 * linux-low.c (*): Ditto.
13311 (linux_wait_1): Add calls to debug_enter, debug_exit.
13312 (linux_wait): Remove redundant debugging printf.
13313 (stop_all_lwps): Add calls to debug_enter, debug_exit.
13314 (linux_resume, unstop_all_lwps): Ditto.
13315 * mem-break.c (*): Update all debugging printfs to use
13316 debug_printf instead of fprintf.
13317 * remote-utils.c (*): Ditto.
13318 * thread-db.c (*): Ditto.
13319 * server.c #include <ctype.h>, "gdb_vecs.h".
13320 (debug_threads): Moved to debug.c.
13321 (*): Update all debugging printfs to use debug_printf instead of
13322 fprintf.
13323 (start_inferior): Replace call to fflush with call to debug_flush.
13324 (monitor_show_help): Mention set debug-format.
13325 (parse_debug_format_options): New function.
13326 (handle_monitor_command): Handle "monitor set debug-format".
13327 (gdbserver_usage): Mention --debug-format.
13328 (main): Parse --debug-format.
13329 * server.h (debug_threads): Declaration moved to debug.h.
13330 #include "debug.h".
13331 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
13332 trace_debug_1 that uses debug_printf.
13333 (tracepoint_look_up_symbols): Update all debugging printfs to use
13334 debug_printf instead of fprintf.
13335
133362014-01-20 Baruch Siach <baruch@tkos.co.il>
13337
13338 * linux-xtensa-low.c: Include asm/ptrace.h instead of
13339 sys/ptrace.h.
13340
133412014-01-17 Pedro Alves <palves@redhat.com>
13342
13343 PR build/16445
13344 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
13345 defined after including gdb_proc_service.h.
13346
133472014-01-16 Doug Evans <dje@google.com>
13348
13349 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
13350 (match_dll): Use it.
13351
133522014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13353
13354 * target.h (target_ops) <read_btrace>: Change parameters and
13355 return type to allow error reporting.
13356 * server.c (handle_qxfer_btrace): Support delta reads. Pass
13357 trace reading errors on.
13358 * linux-low.c (linux_low_read_btrace): Pass trace reading
13359 errors on.
13360 (linux_low_disable_btrace): New.
13361
133622014-01-15 Doug Evans <dje@google.com>
13363
13364 * inferiors.c (thread_id_to_gdb_id): Delete.
13365 * inferiors.h (thread_id_to_gdb_id): Delete.
13366
133672014-01-13 Eli Zaretskii <eliz@gnu.org>
13368
13369 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
13370 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
13371 versions.
13372
133732014-01-08 Pedro Alves <palves@redhat.com>
13374
13375 * server.c (handle_status): Don't discard previous queued stop
13376 replies or thread's pending status here.
13377 (main) <disconnection>: Do it here instead.
13378
133792014-01-08 Pedro Alves <palves@redhat.com>
13380
13381 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
13382 * server.c (visit_actioned_threads, handle_pending_status): New
13383 function.
13384 (handle_v_cont): Factor out parts to ...
13385 (resume): ... this new function. If in all-stop, and a thread
13386 being resumed has a pending status, report it without actually
13387 resuming.
13388 (myresume): Adjust to use the new 'resume' function.
13389 (clear_pending_status_callback, set_pending_status_callback)
13390 (find_status_pending_thread_callback): New functions.
13391 (handle_status): Handle the case of multiple threads having
13392 interesting statuses to report. Report threads' real last signal
13393 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
13394 with an interesting thread to report the status for, instead of
13395 always reporting the status of the first thread.
13396
133972014-01-01 Joel Brobecker <brobecker@adacore.com>
13398
13399 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
13400 * gdbreplay.c (gdbreplay_version): Likewise.
13401
134022013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
13403
13404 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
13405 iov.iov_len with the real length in use.
13406
134072013-12-13 Joel Brobecker <brobecker@adacore.com>
13408
13409 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
13410 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
13411 for all targets that use win32-low.c.
13412 * win32-low.c (win32_ensure_ntdll_loaded): New function.
13413 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
13414
134152013-12-13 Pedro Alves <palves@redhat.com>
13416
13417 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
13418 if equal to TARGET_WAITKIND_LOADED.
13419 * win32-low.c (cached_status): New static global.
13420 (win32_wait): Add declaration.
13421 (do_initial_child_stuff): Flush all initial pending debug events
13422 up to the initial breakpoint.
13423 (win32_wait): If CACHED_STATUS was set, return that instead
13424 of doing a real wait. Remove the code resuming the execution
13425 of the inferior after receiving a TARGET_WAITKIND_LOADED event
13426 during the initial phase. Also remove the code changing
13427 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
13428 TARGET_WAITKIND_STOPPED.
13429
134302013-12-11 Yao Qi <yao@codesourcery.com>
13431
13432 * notif.c (handle_notif_ack): Return 0 if no notification
13433 matches.
13434
134352013-11-20 Doug Evans <dje@google.com>
13436
13437 * linux-low.c (linux_set_resume_request): Fix comment.
13438
134392013-11-20 Doug Evans <dje@google.com>
13440
13441 * linux-low.c (resume_status_pending_p): Tweak comment.
13442
134432013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
13444
13445 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
13446 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
13447 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
13448 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
13449 (srv_amd64_regobj): Add amd64-mpx.o.
13450 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
13451 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
13452 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
13453 * i387-fp.c (num_pl_bnd_register) Added constant.
13454 (num_pl_bnd_cfg_registers) Added constant.
13455 (struct i387_xsave) Added reserved area and MPX fields.
13456 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
13457 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
13458 function.
13459 (tdesc_i386_mpx_linux): Add MPX amd64 target.
13460 (init_registers_amd64_mpx_linux): Declare new function.
13461 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
13462 (x86_64_regmap): Add MPX registers.
13463 (x86_linux_read_description): Add MPX case.
13464 (initialize_low_arch): Initialize MPX targets.
13465
134662013-11-18 Tom Tromey <tromey@redhat.com>
13467
13468 * configure: Rebuild.
13469 * configure.ac: Don't check for stdlib.h.
13470 * gdbreplay.c: Unconditionally include stdlib.h.
13471
134722013-11-18 Tom Tromey <tromey@redhat.com>
13473
13474 * config.in: Rebuild.
13475 * configure: Rebuild.
13476 * configure.ac: Don't use AC_HEADER_DIRENT.
13477
134782013-11-18 Tom Tromey <tromey@redhat.com>
13479
13480 * server.h: Don't check HAVE_STRING_H.
13481 * gdbreplay.c: Don't check HAVE_STRING_H.
13482 * configure: Rebuild.
13483
134842013-11-18 Tom Tromey <tromey@redhat.com>
13485
13486 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
13487 LIBGNU.
13488
134892013-11-08 Tom Tromey <tromey@redhat.com>
13490
13491 * configure, config.in: Rebuild.
13492 * configure.ac: Remove unused configury.
13493
134942013-11-08 Tom Tromey <tromey@redhat.com>
13495
13496 * acinclude.m4: Include common.m4, codeset.m4.
13497 * configure, config.in: Rebuild.
13498 * configure.ac: Use GDB_AC_COMMON.
13499
135002013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
13501
13502 * linux-s390-low.c (HWCAP_S390_TE): New define.
13503 (s390_arch_setup): Consider the TE field in the HWCAP for
13504 determining 'have_regset_tdb'.
13505
135062013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
13507
13508 PR gdb/16014
13509 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
13510 call to sizeof.
13511
135122013-10-02 Pedro Alves <palves@redhat.com>
13513
13514 * server.c (process_serial_event): Don't output "GDBserver
13515 exiting" if GDB is connected through stdio.
13516 * target.c (mywait): Likewise, be silent if GDB is connected
13517 through stdio.
13518
135192013-10-01 Joel Brobecker <brobecker@adacore.com>
13520
13521 * lynx-low.c (lynx_add_threads_after_attach): New function.
13522 (lynx_attach): Remove call to add_thread. Add call to
13523 lynx_add_threads_after_attach instead.
13524
135252013-09-28 Mike Frysinger <vapier@gentoo.org>
13526
13527 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
13528 * config.in, configure: Regenerated.
13529
135302013-09-18 Yao Qi <yao@codesourcery.com>
13531
13532 PR server/15959
13533 * server.c (start_inferior): Clear 'resume_info'.
13534
135352013-09-16 Jiong Wang <jiwang@tilera.com>
13536
13537 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
13538 for each register.
13539
135402013-09-16 Jiong Wang <jiwang@tilera.com>
13541
13542 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
13543 linux-tile-low.o to srv_tgtobj.
13544
135452013-09-16 Will Newton <will.newton@linaro.org>
13546
13547 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
13548 out regs.
13549
135502013-09-06 Pedro Alves <palves@redhat.com>
13551
13552 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
13553 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
13554 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
13555 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
13556 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
13557 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
13558
135592013-09-06 Pedro Alves <palves@redhat.com>
13560
13561 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
13562 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
13563
135642013-09-06 Pedro Alves <palves@redhat.com>
13565
13566 * linux-amd64-ipa.c: Include tracepoint.h.
13567 * linux-i386-ipa.c: Include tracepoint.h.
13568
135692013-09-06 Ricard Wanderlof <ricardw@axis.com>
13570
13571 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
13572 (ps_get_thread_area): New function.
13573
135742013-09-06 Ricard Wanderlof <ricardw@axis.com>
13575
13576 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
13577 (initialize_low_arch): Call init_registers_crisv32 rather than
13578 init_register_crisv32.
13579
135802013-09-05 Pedro Alves <palves@redhat.com>
13581
13582 * server.h (handle_vFile, hostio_last_error_from_errno): Move
13583 to ...
13584 * hostio.h: ... this new file.
13585 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
13586 win32-low.c: Include hostio.h.
13587
135882013-09-05 Pedro Alves <palves@redhat.com>
13589
13590 * server.h (gdb_client_data, handler_func, callback_handler_func)
13591 (delete_file_handler, add_file_handler, append_callback_event)
13592 (delete_callback_event, start_event_loop, initialize_event_loop):
13593 Move to event-loop.h and include it.
13594 * event-loop.h: New file.
13595
135962013-09-05 Pedro Alves <palves@redhat.com>
13597
13598 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
13599 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
13600 (loaded_dll, unloaded_dll): Move to ...
13601 * dll.h: ... this new file.
13602 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
13603
136042013-09-05 Pedro Alves <palves@redhat.com>
13605
13606 * server.h (current_process, get_thread_process, all_processes)
13607 (add_inferior_to_list, for_each_inferior, current_inferior)
13608 (remove_inferior, add_process, remove_process, find_process_pid)
13609 (have_started_inferiors_p, have_attached_inferiors_p)
13610 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
13611 (clear_inferiors, find_inferior, find_inferior_id)
13612 (inferior_target_data, set_inferior_target_data)
13613 (inferior_regcache_data, set_inferior_regcache_data): Move to
13614 inferiors.h, and include it.
13615 * inferiors.h: New file.
13616
136172013-09-05 Pedro Alves <palves@redhat.com>
13618
13619 * server.h (struct emit_ops, current_insn_ptr, emit_error):
13620 Move ...
13621 * ax.h: ... here.
13622
136232013-09-05 Pedro Alves <palves@redhat.com>
13624
13625 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
13626 tracepoint.h.
13627 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
13628 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
13629 (handle_tracepoint_general_set, handle_tracepoint_query)
13630 (tracepoint_finished_step, tracepoint_was_hit)
13631 (release_while_stepping_state_list, current_traceframe)
13632 (in_readonly_region, traceframe_read_mem)
13633 (fetch_traceframe_registers, traceframe_read_sdata)
13634 (traceframe_read_info, struct fast_tpoint_collect_status)
13635 (fast_tracepoint_collecting, force_unlock_trace_buffer)
13636 (handle_tracepoit_bkpts, initialize_low_tracepoint)
13637 (supply_fast_tracepoint_registers)
13638 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
13639 (ipa_tdesc, claim_trampoline_space)
13640 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
13641 (agent_mem_read, agent_get_trace_state_variable_value)
13642 (agent_set_trace_state_variable_value, agent_tsv_read)
13643 (agent_mem_read_string, get_raw_reg_func_addr)
13644 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
13645 * tracepoint.h: ... this new file.
13646
136472013-09-05 Pedro Alves <palves@redhat.com>
13648
13649 * server.h (perror_with_name, error, fatal, warning, paddress)
13650 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
13651 include it.
13652 * utils.h: New file.
13653
136542013-09-05 Pedro Alves <palves@redhat.com>
13655
13656 * server.h (remote_debug, noack_mode, transport_is_reliable)
13657 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
13658 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
13659 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
13660 (write_enn, initialize_async_io, enable_async_io)
13661 (disable_async_io, check_remote_input_interrupt_request)
13662 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
13663 (dead_thread_notify, prepare_resume_reply)
13664 (decode_address_to_semicolon, decode_address, decode_m_packet)
13665 (decode_M_packet, decode_X_packet, decode_xfer_write)
13666 (decode_search_memory_packet, unhexify, hexify)
13667 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
13668 (look_up_one_symbol, relocate_instruction)
13669 (monitor_output): Move to remote-utils.h, and include it.
13670 * remote-utils.h: New file.
13671
136722013-09-05 Pedro Alves <palves@redhat.com>
13673
13674 * server.h (_): Delete.
13675
136762013-09-02 Pedro Alves <palves@redhat.com>
13677
13678 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
13679 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
13680 allocated.
13681 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
13682
136832013-09-02 Pierre Muller <muller@sourceware.org>
13684
13685 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
13686 or WriteProcessMemory complete successfully and handle
13687 ERROR_PARTIAL_COPY error.
13688
136892013-09-02 Pedro Alves <palves@redhat.com>
13690
13691 * server.c (gdb_read_memory): Return -1 on traceframe memory read
13692 error instead of EIO.
13693
136942013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
13695
13696 PR server/15604
13697 * linux-low.c: Include filestuff.h.
13698 (linux_create_inferior) <pid == 0>: Call close_most_fds.
13699 * lynx-low.c: Include filestuff.h.
13700 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
13701 * server.c: Include filestuff.h.
13702 (main): Call notice_open_fds.
13703 * spu-low.c: Include filestuff.h.
13704 (spu_create_inferior) <pid == 0>: Call close_most_fds.
13705
137062013-08-22 Luis Machado <lgustavo@codesourcery.com>
13707
13708 * Makefile.in: Explain why ../target and ../nat are not
13709 listed as include file search paths.
13710 (linux-waitpid.o): New object file rule.
13711 * configure.srv (srv_native_linux_obj): New variable.
13712 Replace all occurrences of linux native object files with
13713 $srv_native_linux_obj.
13714 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
13715 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
13716 (linux_enable_event_reporting): Remove declaration.
13717 (my_waitpid): Moved to common/linux-waitpid.c.
13718 (linux_wait_for_event): Pass ptid when calling
13719 linux_enable_event_reporting.
13720 (linux_supports_tracefork_flag): Remove.
13721 (linux_enable_event_reporting): Likewise.
13722 (linux_tracefork_grandchild): Remove.
13723 (STACK_SIZE): Moved to common/linux-ptrace.c.
13724 (linux_tracefork_child): Remove.
13725 (linux_test_for_tracefork): Remove.
13726 (linux_look_up_symbols): Call linux_supports_traceclone.
13727 (initialize_low): Remove call to linux_test_for_tracefork.
13728 * linux-low.h (PTRACE_TYPE_ARG3): Move to
13729 common/linux-ptrace.h.
13730 (PTRACE_TYPE_ARG4): Likewise.
13731 Include linux-ptrace.h.
13732
137332013-08-21 Pedro Alves <palves@redhat.com>
13734
13735 * config.in: Renegerate.
13736
137372013-08-19 Luis Machado <lgustavo@codesourcery.com>
13738
13739 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
13740 (SFILES): Remove $(srcdir)/common/target-common.c and
13741 add $(srcdir)/target/waitstatus.c.
13742 (OBS): Remove target-common.o and add waitstatus.o.
13743 (server_h): Remove $(srcdir)/../common/target-common.h and
13744 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
13745 and $(srcdir)/../target/waitstatus.h.
13746 (target-common.o): Remove.
13747 (waitstatus.o): New target object file.
13748 * target.h: Do not include target-common.h and
13749 include target/resume.h, target/wait.h and
13750 target/waitstatus.h.
13751
137522013-08-13 Luis Machado <lgustavo@codesourcery.com>
13753
13754 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13755 to PTRACE_TYPE_ARG3.
13756 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13757 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
13758 PTRACE_TYPE_ARG4.
13759 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
13760 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
13761
137622013-07-27 Jie Zhang <jie@codesourcery.com>
13763 Daniel Jacobowitz <dan@codesourcery.com>
13764 Yao Qi <yao@codesourcery.com>
13765
13766 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
13767 (mips-linux-watch.o): New rule.
13768 (mips_linux_watch_h): New variable.
13769 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
13770 srv_tgtobj.
13771 * linux-mips-low.c: Include mips-linux-watch.h.
13772 (struct arch_process_info, struct arch_lwp_info): New.
13773 (update_watch_registers_callback): New function.
13774 (mips_linux_new_process, mips_linux_new_thread) New functions.
13775 (mips_linux_prepare_to_resume, mips_insert_point): New
13776 functions.
13777 (mips_remove_point, mips_stopped_by_watchpoint): New
13778 functions.
13779 (rsp_bp_type_to_target_hw_bp_type): New function.
13780 (mips_stopped_data_address): New function.
13781 (the_low_target): Add watchpoint support functions.
13782
137832013-07-27 Yao Qi <yao@codesourcery.com>
13784
13785 * i386-low.c: Include break-common.h.
13786 (enum target_hw_bp_type): Remove.
13787
137882013-07-24 Luis Machado <lgustavo@codesourcery.com>
13789
13790 * Makefile.in (SFILES): /common/target-common.c.
13791 (OBS): Add target-common.o.
13792 (server_h): Add $(srcdir)/../common/target-common.h.
13793 (target-common.o): New target.
13794 * server.c (queue_stop_reply_callback): Free
13795 status string after use.
13796 * target.c (target_waitstatus_to_string): Remove.
13797 * target.h: Include target-common.h.
13798 (resume_kind): Likewise.
13799 (target_waitkind): Likewise.
13800 (target_waitstatus): Likewise.
13801 (TARGET_WNOHANG): Likewise.
13802
138032013-07-04 Yao Qi <yao@codesourcery.com>
13804
13805 * Makefile.in (host_alias): Use @host_noncanonical@.
13806 (target_alias): Use @target_noncanonical@.
13807 * configure.ac: Use ACX_NONCANONICAL_TARGET and
13808 ACX_NONCANONICAL_HOST.
13809 * configure: Regenerated.
13810
13811 Revert:
13812 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13813
13814 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13815 * configure: Rebuild.
13816 * Makefile.in (version_host, version_target): Get from configure.
13817 (version.c): Use $(version_host) and $(version_target).
13818
138192013-07-03 Pedro Alves <palves@redhat.com>
13820
13821 * Makefile.in (config.status): Depend on development.sh.
13822 * acinclude.m4: Include libmcheck.m4.
13823 * configure: Regenerate.
13824
138252013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13826
13827 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
13828 attribute inside the parentheses.
13829 (winapi_DebugSetProcessKillOnExit): Ditto.
13830 (winapi_DebugBreakProcess): Ditto.
13831 (winapi_GenerateConsoleCtrlEvent): Ditto.
13832
138332013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13834
13835 * notif.h (notif_event): Add a dummy member to avoid compiler
13836 errors.
13837
138382013-07-01 Pedro Alves <palves@redhat.com>
13839
13840 * hostio.c (HOSTIO_PATH_MAX): Define.
13841 (require_filename, handle_open, handle_unlink, handle_readlink):
13842 Use it.
13843
138442013-07-01 Pedro Alves <palves@redhat.com>
13845
13846 * server.h: Include "pathmax.h".
13847 * linux-low.c: Don't include sys/param.h.
13848 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
13849 MAXPATHLEN.
13850 * win32-low.c: Don't include sys/param.h.
13851 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
13852
138532013-07-01 Pedro Alves <palves@redhat.com>
13854
13855 * event-loop.c: Don't check HAVE_UNISTD_H before including
13856 <unistd.h>.
13857 * gdbreplay.c: Likewise.
13858 * remote-utils.c: Likewise.
13859 * server.c: Likewise.
13860 * configure.ac: Don't check for unistd.h.
13861 * configure: Regenerate.
13862
138632013-06-28 Tom Tromey <tromey@redhat.com>
13864
13865 * Makefile.in (version.c): Use version.in, not
13866 common/version.in.
13867
138682013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13869
13870 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13871 * configure: Rebuild.
13872 * Makefile.in (version_host, version_target): Get from configure.
13873 (version.c): Use $(version_host) and $(version_target).
13874
138752013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13876
13877 Fix trace-status to output user name without trailing colon.
13878 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
13879
138802013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13881
13882 Fix trace-status to output proper start-time and stop-time.
13883 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
13884 output start time and stop time in hex as gdb expects.
13885
138862013-06-26 Pedro Alves <pedro@codesourcery.com>
13887
13888 * tracepoint.c (build_traceframe_info_xml): Output trace state
13889 variables present in the trace buffer.
13890
138912013-06-24 Tom Tromey <tromey@redhat.com>
13892
13893 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
13894 create-version.sh.
13895 (version.o): Remove.
13896 * gdbreplay.c: Include version.h.
13897 (version, host_name): Don't declare.
13898 * server.h: Include version.h.
13899 (version, host_name): Don't declare.
13900
139012013-06-12 Pedro Alves <palves@redhat.com>
13902
13903 * linux-x86-low.c (linux_is_elf64): Delete global.
13904 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
13905 with local linux_pid_exe_is_elf_64_file use.
13906
139072013-06-11 Pedro Alves <palves@redhat.com>
13908
13909 * linux-low.c (regset_disabled, disable_regset): New functions.
13910 (regsets_fetch_inferior_registers)
13911 (regsets_store_inferior_registers): Use them.
13912 (initialize_regsets_info); Don't allocate the disabled_regsets
13913 array here.
13914 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
13915 comment.
13916
139172013-06-11 Pedro Alves <palves@redhat.com>
13918
13919 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
13920 xmalloc.
13921
139222013-06-11 Pedro Alves <palves@redhat.com>
13923
13924 * linux-x86-low.c (initialize_low_arch): Call
13925 init_registers_x32_avx_linux.
13926
139272013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13928
13929 Fix compatibility with Android Bionic.
13930 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
13931 it is not empty.
13932
139332013-06-07 Pedro Alves <palves@redhat.com>
13934
13935 PR server/14823
13936 * Makefile.in (OBS): Add tdesc.o.
13937 (IPA_OBJS): Add tdesc-ipa.o.
13938 (tdesc-ipa.o): New rule.
13939 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
13940 interface.
13941 * linux-low.c (new_inferior): Delete.
13942 (disabled_regsets, num_regsets): Delete.
13943 (linux_add_process): Adjust to set the new per-process
13944 new_inferior flag.
13945 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
13946 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
13947 was a stop. When calling arch_setup, switch the current inferior
13948 to the thread that got an event.
13949 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
13950 (regsets_fetch_inferior_registers)
13951 (regsets_store_inferior_registers): New regsets_info parameter.
13952 Adjust to use it.
13953 (linux_register_in_regsets): New regs_info parameter. Adjust to
13954 use it.
13955 (register_addr, fetch_register, store_register): New usrregs_info
13956 parameter. Adjust to use it.
13957 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
13958 parameter regs_info. Adjust to use it.
13959 (linux_fetch_registers): Get the current inferior's regs_info, and
13960 adjust to use it.
13961 (linux_store_registers): Ditto.
13962 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
13963 (initialize_low): Don't initialize the target_regsets here. Call
13964 initialize_low_arch.
13965 * linux-low.h (target_regsets): Delete declaration.
13966 (struct regsets_info): New.
13967 (struct usrregs_info): New.
13968 (struct regs_info): New.
13969 (struct process_info_private) <new_inferior>: New field.
13970 (struct linux_target_ops): Delete the num_regs, regmap, and
13971 regset_bitmap fields. New field regs_info.
13972 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
13973 * i387-fp.c (num_xmm_registers): Delete.
13974 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
13975 calls to new interface.
13976 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
13977 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
13978 Infer the number of xmm registers from the regcache's target
13979 description.
13980 * i387-fp.h (num_xmm_registers): Delete.
13981 * inferiors.c (add_thread): Don't install the thread's regcache
13982 here.
13983 * proc-service.c (gregset_info): Fetch the current inferior's
13984 regs_info. Adjust to use it.
13985 * regcache.c: Include tdesc.h.
13986 (register_bytes, reg_defs, num_registers)
13987 (gdbserver_expedite_regs): Delete.
13988 (get_thread_regcache): If the thread doesn't have a regcache yet,
13989 create one, instead of aborting gdbserver.
13990 (regcache_invalidate_one): Rename to ...
13991 (regcache_invalidate_thread): ... this.
13992 (regcache_invalidate_one): New.
13993 (regcache_invalidate): Only invalidate registers of the current
13994 process.
13995 (init_register_cache): Add target_desc parameter, and use it.
13996 (new_register_cache): Ditto. Assert the target description has a
13997 non zero registers_size.
13998 (regcache_cpy): Add assertions. Adjust.
13999 (realloc_register_cache, set_register_cache): Delete.
14000 (registers_to_string, registers_from_string): Adjust.
14001 (find_register_by_name, find_regno, find_register_by_number)
14002 (register_cache_size): Add target_desc parameter, and use it.
14003 (free_register_cache_thread, free_register_cache_thread_one)
14004 (regcache_release, register_cache_size): New.
14005 (register_size): Add target_desc parameter, and use it.
14006 (register_data, supply_register, supply_register_zeroed)
14007 (supply_regblock, supply_register_by_name, collect_register)
14008 (collect_register_as_string, collect_register_by_name): Adjust.
14009 * regcache.h (struct target_desc): Forward declare.
14010 (struct regcache) <tdesc>: New field.
14011 (init_register_cache, new_register_cache): Add target_desc
14012 parameter.
14013 (regcache_invalidate_thread): Declare.
14014 (regcache_invalidate_one): Delete declaration.
14015 (regcache_release): Declare.
14016 (find_register_by_number, register_cache_size, register_size)
14017 (find_regno): Add target_desc parameter.
14018 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
14019 declarations.
14020 * remote-utils.c: Include tdesc.h.
14021 (outreg, prepare_resume_reply): Adjust.
14022 * server.c: Include tdesc.h.
14023 (gdbserver_xmltarget): Delete declaration.
14024 (get_features_xml, process_serial_event): Adjust.
14025 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
14026 declare.
14027 (struct process_info) <tdesc>: New field.
14028 (ipa_tdesc): Declare.
14029 * tdesc.c: New file.
14030 * tdesc.h: New file.
14031 * tracepoint.c: Include tdesc.h.
14032 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
14033 (get_context_regcache): Adjust to pass ipa_tdesc down.
14034 (do_action_at_tracepoint): Adjust to get the register cache size
14035 from the context regcache's description.
14036 (traceframe_walk_blocks): Adjust to get the register cache size
14037 from the current trace frame's description.
14038 (traceframe_get_pc): Adjust to get current trace frame's
14039 description and pass it down.
14040 (gdb_collect): Adjust to get the register cache size from the
14041 IPA's description.
14042 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
14043 (gdbserver_xmltarget): Delete.
14044 (initialize_low_tracepoint): Set the ipa's target description.
14045 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
14046 (initialize_low_tracepoint): Set the ipa's target description.
14047 * linux-x86-low.c: Include tdesc.h.
14048 [__x86_64__] (is_64bit_tdesc): New.
14049 (ps_get_thread_area, x86_get_thread_area): Use it.
14050 (i386_cannot_store_register): Rename to ...
14051 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
14052 (i386_cannot_fetch_register): Rename to ...
14053 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
14054 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
14055 to new interface.
14056 (target_regsets): Rename to ...
14057 (x86_regsets): ... this.
14058 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
14059 interface.
14060 (x86_siginfo_fixup): Use is_64bit_tdesc.
14061 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
14062 (tdesc_x32_avx_linux, tdesc_x32_linux)
14063 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
14064 Declare.
14065 (x86_linux_update_xmltarget): Delete.
14066 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
14067 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
14068 (AMD64_LINUX_USER64_CS): New.
14069 (x86_linux_read_description): New, based on
14070 x86_linux_update_xmltarget.
14071 (same_process_callback): New.
14072 (x86_arch_setup_process_callback): New.
14073 (x86_linux_update_xmltarget): New.
14074 (x86_regsets_info): New.
14075 (amd64_linux_regs_info): New.
14076 (i386_linux_usrregs_info): New.
14077 (i386_linux_regs_info): New.
14078 (x86_linux_regs_info): New.
14079 (x86_arch_setup): Reimplement.
14080 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
14081 (x86_emit_ops): Ditto.
14082 (the_low_target): Adjust. Install x86_linux_regs_info,
14083 x86_cannot_fetch_register, and x86_cannot_store_register.
14084 (initialize_low_arch): New.
14085 * linux-ia64-low.c (tdesc_ia64): Declare.
14086 (ia64_fetch_register): Adjust.
14087 (ia64_usrregs_info, regs_info): New globals.
14088 (ia64_regs_info): New function.
14089 (the_low_target): Adjust.
14090 (initialize_low_arch): New function.
14091 * linux-sparc-low.c (tdesc_sparc64): Declare.
14092 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
14093 Adjust.
14094 (sparc_arch_setup): New function.
14095 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
14096 (the_low_target): Adjust.
14097 (initialize_low_arch): New function.
14098 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
14099 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
14100 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
14101 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
14102 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
14103 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
14104 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
14105 (tdesc_powerpc_isa205_vsx64l): Declare.
14106 (ppc_cannot_store_register, ppc_collect_ptrace_register)
14107 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
14108 (ppc_set_pc, ppc_get_hwcap): Adjust.
14109 (ppc_usrregs_info): Forward declare.
14110 (!__powerpc64__) ppc_regmap_adjusted: New global.
14111 (ppc_arch_setup): Adjust to the current process'es target
14112 description.
14113 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
14114 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
14115 (ppc_store_evrregset): Adjust.
14116 (target_regsets): Rename to ...
14117 (ppc_regsets): ... this, and make static.
14118 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
14119 (ppc_regs_info): New function.
14120 (the_low_target): Adjust.
14121 (initialize_low_arch): New function.
14122 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
14123 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
14124 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
14125 (tdesc_s390x_linux64v2): Declare.
14126 (s390_collect_ptrace_register, s390_supply_ptrace_register)
14127 (s390_fill_gregset, s390_store_last_break): Adjust.
14128 (target_regsets): Rename to ...
14129 (s390_regsets): ... this, and make static.
14130 (s390_get_pc, s390_set_pc): Adjust.
14131 (s390_get_hwcap): New target_desc parameter, and use it.
14132 [__s390x__] (have_hwcap_s390_high_gprs): New global.
14133 (s390_arch_setup): Adjust to set the current process'es target
14134 description. Don't adjust the regmap.
14135 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
14136 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
14137 (regs_info_3264): New globals.
14138 (s390_regs_info): New function.
14139 (the_low_target): Adjust.
14140 (initialize_low_arch): New function.
14141 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
14142 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
14143 [__mips64] (init_registers_mips_linux)
14144 (init_registers_mips_dsp_linux): Delete defines.
14145 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
14146 (have_dsp): New global.
14147 (mips_read_description): New, based on mips_arch_setup.
14148 (mips_arch_setup): Reimplement.
14149 (get_usrregs_info): New function.
14150 (mips_cannot_fetch_register, mips_cannot_store_register)
14151 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
14152 (mips_fill_fpregset, mips_store_fpregset): Adjust.
14153 (target_regsets): Rename to ...
14154 (mips_regsets): ... this, and make static.
14155 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
14156 (dsp_regs_info, regs_info): New globals.
14157 (mips_regs_info): New function.
14158 (the_low_target): Adjust.
14159 (initialize_low_arch): New function.
14160 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
14161 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
14162 Declare.
14163 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
14164 (arm_read_description): New, with bits factored from
14165 arm_arch_setup.
14166 (arm_arch_setup): Reimplement.
14167 (target_regsets): Rename to ...
14168 (arm_regsets): ... this, and make static.
14169 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
14170 (arm_regs_info): New function.
14171 (the_low_target): Adjust.
14172 (initialize_low_arch): New function.
14173 * linux-m68k-low.c (tdesc_m68k): Declare.
14174 (target_regsets): Rename to ...
14175 (m68k_regsets): ... this, and make static.
14176 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
14177 (m68k_regs_info): New function.
14178 (m68k_arch_setup): New function.
14179 (the_low_target): Adjust.
14180 (initialize_low_arch): New function.
14181 * linux-sh-low.c (tdesc_sharch): Declare.
14182 (target_regsets): Rename to ...
14183 (sh_regsets): ... this, and make static.
14184 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
14185 (sh_regs_info, sh_arch_setup): New functions.
14186 (the_low_target): Adjust.
14187 (initialize_low_arch): New function.
14188 * linux-bfin-low.c (tdesc_bfin): Declare.
14189 (bfin_arch_setup): New function.
14190 (bfin_usrregs_info, regs_info): New globals.
14191 (bfin_regs_info): New function.
14192 (the_low_target): Adjust.
14193 (initialize_low_arch): New function.
14194 * linux-cris-low.c (tdesc_cris): Declare.
14195 (cris_arch_setup): New function.
14196 (cris_usrregs_info, regs_info): New globals.
14197 (cris_regs_info): New function.
14198 (the_low_target): Adjust.
14199 (initialize_low_arch): New function.
14200 * linux-cris-low.c (tdesc_crisv32): Declare.
14201 (cris_arch_setup): New function.
14202 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
14203 (cris_regs_info): New function.
14204 (the_low_target): Adjust.
14205 (initialize_low_arch): New function.
14206 * linux-m32r-low.c (tdesc_m32r): Declare.
14207 (m32r_arch_setup): New function.
14208 (m32r_usrregs_info, regs_info): New globals.
14209 (m32r_regs_info): Adjust.
14210 (initialize_low_arch): New function.
14211 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
14212 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
14213 (tic6x_usrregs_info): Forward declare.
14214 (tic6x_read_description): New function, based on ...
14215 (tic6x_arch_setup): ... this. Reimplement.
14216 (target_regsets): Rename to ...
14217 (tic6x_regsets): ... this, and make static.
14218 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
14219 (tic6x_regs_info): New function.
14220 (the_low_target): Adjust.
14221 (initialize_low_arch): New function.
14222 * linux-xtensa-low.c (tdesc_xtensa): Declare.
14223 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
14224 (target_regsets): Rename to ...
14225 (xtensa_regsets): ... this, and make static.
14226 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
14227 globals.
14228 (xtensa_arch_setup, xtensa_regs_info): New functions.
14229 (the_low_target): Adjust.
14230 (initialize_low_arch): New function.
14231 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
14232 (nios2_arch_setup): Set the current process'es tdesc.
14233 (target_regsets): Rename to ...
14234 (nios2_regsets): ... this.
14235 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
14236 (nios2_regs_info): New function.
14237 (the_low_target): Adjust.
14238 (initialize_low_arch): New function.
14239 * linux-aarch64-low.c (tdesc_aarch64): Declare.
14240 (aarch64_arch_setup): Set the current process'es tdesc.
14241 (target_regsets): Rename to ...
14242 (aarch64_regsets): ... this.
14243 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
14244 (aarch64_regs_info): New function.
14245 (the_low_target): Adjust.
14246 (initialize_low_arch): New function.
14247 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
14248 globals.
14249 (target_regsets): Rename to ...
14250 (tile_regsets): ... this.
14251 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
14252 (tile_regs_info): New function.
14253 (tile_arch_setup): Set the current process'es tdesc.
14254 (the_low_target): Adjust.
14255 (initialize_low_arch): New function.
14256 * spu-low.c (tdesc_spu): Declare.
14257 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
14258 * win32-arm-low.c (tdesc_arm): Declare.
14259 (arm_arch_setup): New function.
14260 (the_low_target): Install arm_arch_setup instead of
14261 init_registers_arm.
14262 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
14263 (init_windows_x86): Rename to ...
14264 (i386_arch_setup): ... this. Set `win32_tdesc'.
14265 (the_low_target): Adjust.
14266 * win32-low.c (win32_tdesc): New global.
14267 (child_add_thread): Don't create the thread cache here.
14268 (do_initial_child_stuff): Set the new process'es tdesc.
14269 * win32-low.h (struct target_desc): Forward declare.
14270 (win32_tdesc): Declare.
14271 * lynx-i386-low.c (tdesc_i386): Declare global.
14272 (lynx_i386_arch_setup): Set `lynx_tdesc'.
14273 * lynx-low.c (lynx_tdesc): New global.
14274 (lynx_add_process): Set the new process'es tdesc.
14275 * lynx-low.h (struct target_desc): Forward declare.
14276 (lynx_tdesc): Declare global.
14277 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
14278 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
14279 * nto-low.c (nto_tdesc): New global.
14280 (do_attach): Set the new process'es tdesc.
14281 * nto-low.h (struct target_desc): Forward declare.
14282 (nto_tdesc): Declare.
14283 * nto-x86-low.c (tdesc_i386): Declare.
14284 (nto_x86_arch_setup): Set `nto_tdesc'.
14285
142862013-06-04 Gary Benson <gbenson@redhat.com>
14287
14288 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
14289 to qSupported response when appropriate.
14290 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
14291 with nonzero-length annex.
14292 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
14293 arguments supplied in annex.
14294
142952013-05-31 Doug Evans <dje@google.com>
14296
14297 PR server/15594
14298 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
14299 64 bits in 64-cross-32 environment.
14300
143012013-05-28 Pedro Alves <palves@redhat.com>
14302
14303 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
14304 (aarch64-without-fpu.c): Delete rule.
14305 * configure.srv (aarch64*-*-linux*): Remove references to
14306 aarch64-without-fpu.o and aarch64-without-fpu.xml.
14307 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
14308 declaration.
14309
143102013-05-24 Pedro Alves <palves@redhat.com>
14311
14312 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
14313 instead of strchr/decode_address. Error if the range isn't split
14314 with a ','. Don't assume there's be a ':' in the action.
14315
143162013-05-23 Yao Qi <yao@codesourcery.com>
14317 Pedro Alves <palves@redhat.com>
14318
14319 * linux-low.c (lwp_in_step_range): New function.
14320 (linux_wait_1): If the thread was range stepping and stopped
14321 outside the stepping range, report the stop to GDB. Otherwise,
14322 continue stepping. Add range stepping debug output.
14323 (linux_set_resume_request): Copy the step range from the resume
14324 request to the lwp.
14325 (linux_supports_range_stepping): New.
14326 (linux_target_ops) <supports_range_stepping>: Set to
14327 linux_supports_range_stepping.
14328 * linux-low.h (struct linux_target_ops)
14329 <supports_range_stepping>: New field.
14330 (struct lwp_info) <step_range_start, step_range_end>: New fields.
14331 * linux-x86-low.c (x86_supports_range_stepping): New.
14332 (the_low_target) <supports_range_stepping>: Set to
14333 x86_supports_range_stepping.
14334 * server.c (handle_v_cont): Handle 'r' action.
14335 (handle_v_requests): Append ";r" if the target supports range
14336 stepping.
14337 * target.h (struct thread_resume) <step_range_start,
14338 step_range_end>: New fields.
14339 (struct target_ops) <supports_range_stepping>:
14340 New field.
14341 (target_supports_range_stepping): New macro.
14342
143432013-05-17 Joel Brobecker <brobecker@adacore.com>
14344
14345 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
14346 confusion in comment.
14347
143482013-05-17 Joel Brobecker <brobecker@adacore.com>
14349
14350 * lynx-low.c (struct process_info_private): New type.
14351 (lynx_add_process): New function.
14352 (lynx_create_inferior, lynx_attach): Replace calls to
14353 add_process by calls to lynx_add_process.
14354 (lynx_resume): If PTID is null, then try using
14355 current_process()->private->last_wait_event_ptid.
14356 Add comments.
14357 (lynx_clear_inferiors): Delete. The contents of that function
14358 has been inlined in lynx_mourn;
14359 (lynx_wait_1): Save the ptid in the process's private data.
14360 (lynx_mourn): Free the process' private data. Replace call
14361 to lynx_clear_inferiors by call to clear_inferiors.
14362
143632013-05-17 Yao Qi <yao@codesourcery.com>
14364
14365 * i386-low.c (i386_length_and_rw_bits): Move the comment to
14366 the right place.
14367
143682013-05-16 Luis Machado <lgustavo@codesourcery.com>
14369
14370 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
14371 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
14372 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
14373 PT_TEXT_END_ADDR guards. Update comments.
14374 (linux_target_op) <read_offsets>: Conditionally define to
14375 linux_read_offsets if the target is UCLIBC and if it defines
14376 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
14377
143782013-05-06 Sandra Loosemore <sandra@codesourcery.com>
14379 Andrew Jenner <andrew@codesourcery.com>
14380
14381 * Makefile.in (SFILES): Add linux-nios2-low.c.
14382 (clean): Add action to delete nios2-linux.c.
14383 (nios2-linux.c): New rule.
14384 * configure.srv: Add nios2*-*-linux*.
14385 * linux-nios2-low.c: New.
14386
143872013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
14388
14389 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
14390
143912013-04-25 Hui Zhu <hui@codesourcery.com>
14392
14393 PR gdb/15186
14394 * ax.c (ax_printf): Add fflush.
14395
143962013-04-22 Tom Tromey <tromey@redhat.com>
14397
14398 * Makefile.in (SFILES): Add filestuff.c.
14399 (OBS): Add filestuff.o.
14400 (filestuff.o): New target.
14401 * config.in, configure: Rebuild.
14402 * configure.ac: Check for fdwalk, pipe2.
14403
144042013-04-17 Pedro Alves <palves@redhat.com>
14405
14406 * configure.ac (USE_THREAD_DB): Delete variable.
14407 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
14408 Don't AC_SUBST USE_THREAD_DB.
14409 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
14410 * config.in, configure: Regenerate.
14411
144122013-04-16 Pedro Alves <palves@redhat.com>
14413
14414 * linux-low.h (struct lwp_info) <thread_known>: Move under
14415 the USE_THREAD_DB #ifdef.
14416
144172013-04-16 Pedro Alves <palves@redhat.com>
14418
14419 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
14420 (linux-low.o): Delete rule.
14421 * linux-low.h: Always include "gdb_thread_db.h" instead of
14422 conditionally including thread_db.h.
14423 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
14424 HAVE_THREAD_DB_H.
14425
144262013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14427
14428 * Makefile.in (install-only): Fix make install regression.
14429
144302013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
14431
14432 Convert man pages to texinfo, new gdbinit.5 texinfo page.
14433 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
14434 installation.
14435 * gdbserver.1: Remove.
14436
144372013-03-22 Pedro Alves <palves@redhat.com>
14438
14439 * linux-low.c (handle_extended_wait): Don't call
14440 linux_enable_event_reporting.
14441
144422013-03-15 Tony Theodore <tonyt@logyst.com>
14443
14444 PR build/9098:
14445 * Makefile.in (SHELL): Use @SHELL@.
14446
144472013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
14448
14449 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
14450 compiler warning.
14451
144522013-03-13 Joel Brobecker <brobecker@adacore.com>
14453
14454 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
14455 Remove extraneous NULL element.
14456
144572013-03-13 Yao Qi <yao@codesourcery.com>
14458
14459 * tracepoint.c (traceframe_read_tsv): Look for the last matched
14460 'V' block in trace frame.
14461
144622013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14463
14464 * target.h (struct target_ops): Add btrace ops.
14465 (target_supports_btrace): New macro.
14466 (target_enable_btrace): New macro.
14467 (target_disable_btrace): New macro.
14468 (target_read_btrace): New macro.
14469 * gdbthread.h (struct thread_info): Add btrace field.
14470 * server.c: Include btrace-common.h.
14471 (handle_btrace_general_set): New function.
14472 (handle_btrace_enable): New function.
14473 (handle_btrace_disable): New function.
14474 (handle_general_set): Call handle_btrace_general_set.
14475 (handle_qxfer_btrace): New function.
14476 (struct qxfer qxfer_packets[]): Add btrace entry.
14477 * inferiors.c (remove_thread): Disable btrace.
14478 * linux-low: Include linux-btrace.h.
14479 (linux_low_enable_btrace): New function.
14480 (linux_low_read_btrace): New function.
14481 (linux_target_ops): Add btrace ops.
14482 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
14483 Add srv_linux_btrace=yes.
14484 (x86_64-*-linux*): Add linux-btrace.o.
14485 Add srv_linux_btrace=yes.
14486 * configure.ac: Define HAVE_LINUX_BTRACE.
14487 * config.in: Regenerated.
14488 * configure: Regenerated.
14489
144902013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14491
14492 * server.c (handle_qxfer): Preserve error message if -3 is
14493 returned.
14494 (qxfer): Document the -3 return value.
14495
144962013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14497
14498 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
14499 (linux_btrace_h): New variable.
14500 (linux-btrace.o): New rule.
14501
145022013-03-08 Stan Shebs <stan@codesourcery.com>
14503 Hafiz Abid Qadeer <abidh@codesourcery.com>
14504
14505 * tracepoint.c (trace_buffer_size): New global.
14506 (DEFAULT_TRACE_BUFFER_SIZE): New define.
14507 (init_trace_buffer): Change to one-argument function. Allocate
14508 trace buffer memory.
14509 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
14510 handle QTBuffer:size packet.
14511 (cmd_bigqtbuffer_size): New function.
14512 (initialize_tracepoint): Call init_trace_buffer with
14513 DEFAULT_TRACE_BUFFER_SIZE.
14514 * server.c (handle_query): Add QTBuffer:size in the
14515 supported packets.
14516
145172013-03-07 Yao Qi <yao@codesourcery.com>
14518
14519 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
14520 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
14521 of -1.
14522 (cmd_qtsp): Adjust condition. Do post increment.
14523 Set cur_action and cur_step_action back to 0.
14524
145252013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
14526
14527 PR server/15236
14528 * linux-low.c (linux_write_memory): Return early success if LEN is
14529 zero.
14530
145312013-03-05 Corinna Vinschen <vinschen@redhat.de>
14532
14533 * configure.srv: Add x86_64-*-cygwin* as target.
14534
145352013-02-28 Tom Tromey <tromey@redhat.com>
14536
14537 * configure.ac: Invoke AC_SYS_LARGEFILE.
14538 * configure, config.in: Rebuild.
14539
145402013-02-28 Corinna Vinschen <vinschen@redhat.com>
14541
14542 * win32-low.c: Throughout, fix format strings and casts of
14543 printf-like functions to avoid type related warnings on all
14544 platforms.
14545 (get_child_debug_event): Print dwDebugEventCode as hex since
14546 that's how it's usually documented.
14547
145482013-02-28 Yao Qi <yao@codesourcery.com>
14549
14550 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
14551 pulongest.
14552
145532013-02-27 Jiong Wang <jiwang@tilera.com>
14554
14555 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
14556 (reg-tilegx32.c): New rule.
14557 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
14558 * linux-tile-low.c (tile_arch_setup): New function. Invoke
14559 different register info initializer according to elf class.
14560 (init_registers_tilgx32): New function. The tilegx32 register info
14561 initializer.
14562 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
14563 (tile_store_gregset): Likewise.
14564
145652013-02-27 Yao Qi <yao@codesourcery.com>
14566
14567 * server.c (process_point_options): Print debug message when
14568 debug_threads is true.
14569
145702013-02-26 Yao Qi <yao@codesourcery.com>
14571
14572 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
14573
145742013-02-19 Pedro Alves <palves@redhat.com>
14575 Kai Tietz <ktietz@redhat.com>
14576
14577 PR gdb/15161
14578
14579 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
14580 instead of strtoul to extract address from packet.
14581 (process_serial_event) <'z'>: Likewise.
14582
145832013-02-18 Yao Qi <yao@codesourcery.com>
14584
14585 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
14586
145872013-02-14 Pedro Alves <palves@redhat.com>
14588
14589 Plug memory leak.
14590
14591 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
14592 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
14593
145942013-02-14 Pedro Alves <palves@redhat.com>
14595
14596 * tracepoint.c (cmd_qtdpsrc): Use savestring.
14597
145982013-02-14 Pedro Alves <palves@redhat.com>
14599
14600 * tracepoint.c (save_string): Delete.
14601 (add_tracepoint_action): Use savestring instead of save_string.
14602
146032013-02-12 Pedro Alves <palves@redhat.com>
14604
14605 * linux-xtensa-low.c: Ditto.
14606 * xtensa-xtregs.c: Ditto.
14607
146082013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14609
14610 * thread-db.c (thread_db_get_tls_address): NULL pointer check
14611 thread_db.
14612
146132013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14614
14615 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
14616 aarch64_num_wp_regs and aarch64_num_bp_regs to
14617 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
14618
146192013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14620
14621 * linux-aarch64-low.c (ps_get_thread_area): Replace
14622 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
14623
146242013-02-04 Jim MacArthur <jim.macarthur@arm.com>
14625 Marcus Shawcroft <marcus.shawcroft@arm.com>
14626 Nigel Stephens <nigel.stephens@arm.com>
14627 Yufeng Zhang <yufeng.zhang@arm.com>
14628
14629 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
14630 (aarch64.c, aarch64-without-fpu.c): New targets.
14631 * configure.srv (aarch64*-*-linux*): New.
14632 * linux-aarch64-low.c: New file.
14633
146342013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
14635
14636 * linux-low.c (handle_extended_wait, linux_create_inferior)
14637 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
14638 (dequeue_one_deferred_signal, linux_resume_one_thread)
14639 (fetch_register, linux_write_memory, linux_enable_event_reporting)
14640 (linux_tracefork_grandchild, linux_test_for_tracefork)
14641 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
14642 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
14643 where the argument is 0.
14644
146452013-01-25 Yao Qi <yao@codesourcery.com>
14646
14647 * event-loop.c: Include "queue.h".
14648 (gdb_event_p): New typedef.
14649 (struct gdb_event) <next_event>: Remove.
14650 (event_queue): Change to QUEUE(gdb_event_p).
14651 (async_queue_event): Remove.
14652 (gdb_event_xfree): New.
14653 (initialize_event_loop): New.
14654 (process_event): Use API from QUEUE.
14655 (wait_for_event): Likewise.
14656 * server.c (main): Call initialize_event_loop.
14657 * server.h (initialize_event_loop): Declare.
14658
146592013-01-18 Yao Qi <yao@codesourcery.com>
14660
14661 * ax.h (struct eval_agent_expr_context): New.
14662 (gdb_eval_agent_expr): Update declaration.
14663 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
14664 TFRAME. Add new argument CTX.
14665 * server.h (struct eval_agent_expr_context): Declare.
14666 (agent_mem_read, agent_tsv_read): Update declaration.
14667 (agent_mem_read_string): Likewise.
14668 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
14669 (add_traceframe_block): Add new argument TPOINT.
14670 Increase TPOINT->traceframe_usage.
14671 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
14672 eval_tracepoint_agent_expr.
14673 (condition_true_at_tracepoint): Likewise.
14674 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
14675 (agent_mem_read_string, agent_tsv_read): Likewise.
14676
146772013-01-16 Yao Qi <yao@codesourcery.com>
14678
14679 * linux-low.c (linux_resume_one_lwp): Don't check
14680 'lwp->bp_reinsert != 0'.
14681
146822013-01-07 Joel Brobecker <brobecker@adacore.com>
14683 Pedro Alves <palves@redhat.com>
14684
14685 * lynx-low.c (ptrace_request_to_str): Define a temporary
14686 macro and use it to simplify this function's implementation.
14687
146882013-01-07 Joel Brobecker <brobecker@adacore.com>
14689
14690 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
14691 sets errno.
14692
146932013-01-07 Joel Brobecker <brobecker@adacore.com>
14694
14695 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
14696
146972013-01-07 Joel Brobecker <brobecker@adacore.com>
14698
14699 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
14700
147012013-01-07 Joel Brobecker <brobecker@adacore.com>
14702
14703 * lynx-low.c (lynx_resume): Use the resume_info parameter
14704 to determine the ptid for the lynx_ptrace call, unless
14705 it is equal to minus_one_ptid, in which case we use the
14706 ptid of the current_inferior.
14707 (lynx_wait_1): After having received a thread create/exit
14708 event, resume the inferior's execution using the signaling
14709 thread's ptid, rather than the old ptid.
14710
147112013-01-07 Joel Brobecker <brobecker@adacore.com>
14712
14713 * lynx-low.c (lynx_resume): Delete variable ret.
14714
147152013-01-01 Joel Brobecker <brobecker@adacore.com>
14716
14717 * gdbreplay.c (gdbreplay_version): Update copyright year.
14718 * server.c (gdbserver_version): Likewise.
14719
147202012-12-17 Joel Brobecker <brobecker@adacore.com>
14721
14722 * lynx-low.c (lynx_wait_1): Add debug trace before adding
14723 new thread.
14724
147252012-12-17 Joel Brobecker <brobecker@adacore.com>
14726
14727 * lynx-low.c (ptrace_request_to_str): Add handling for
14728 PTRACE_GETTRACESIG.
14729
147302012-12-17 Joel Brobecker <brobecker@adacore.com>
14731
14732 * lynx-low.c (lynx_attach): Delete variable new_process.
14733
147342012-12-17 Joel Brobecker <brobecker@adacore.com>
14735
14736 * lynx-low.c (lynx_create_inferior): Delete variable
14737 new_process.
14738
147392012-12-17 Joel Brobecker <brobecker@adacore.com>
14740
14741 * lynx-low.c (ptrace_request_to_str): Do not handle
14742 PTRACE_GETTHREADLIST if this macro does not exist.
14743
147442012-12-15 Yao Qi <yao@codesourcery.com>
14745
14746 * Makefile.in (OBS): Add notif.o.
14747 * notif.c, notif.h: New.
14748 * server.c: Include "notif.h".
14749 (struct vstop_notif) <next>: Remove.
14750 <base>: New field.
14751 (queue_stop_reply): Update.
14752 (push_event, send_next_stop_reply): Remove.
14753 (discard_queued_stop_replies): Update.
14754 (notif_stop): New variable.
14755 (handle_v_stopped): Remove.
14756 (handle_v_requests): Don't call handle_v_stopped. Call
14757 handle_ack_notif instead.
14758 (queue_stop_reply_callback): Call notif_event_enque instead
14759 of queue_stop_reply.
14760 (handle_status): Don't call send_next_stop_reply, call
14761 notif_write_event instead.
14762 (kill_inferior_callback): Likewise.
14763 (detach_or_kill_inferior_callback): Likewise.
14764 (main): Call initialize_notif.
14765 (process_serial_event): Call QUEUE_is_empty.
14766 (handle_target_event): Call notif_push instead of push event.
14767 * server.h (push_event): Remove declaration.
14768
147692012-12-10 Tom Tromey <tromey@redhat.com>
14770
14771 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
14772 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
14773 macros.
14774 (.c.o): Rewrite.
14775 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
14776 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
14777 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
14778 (amd64-linux-ipa.o, ax.o): Rewrite.
14779 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
14780 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
14781 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
14782 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
14783 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
14784 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
14785 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
14786 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
14787 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
14788 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
14789 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
14790 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
14791 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
14792 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
14793 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
14794 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
14795 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
14796 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
14797 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
14798 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
14799 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
14800 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
14801 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
14802 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
14803 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
14804 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
14805 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
14806 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
14807 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
14808 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
14809 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
14810 (reg-tilegx.o): Remove.
14811 (all_object_files): New macro.
14812 Include .deps files.
14813 * aclocal.m4, configure: Rebuild.
14814 * acinclude.m4: Include depstand.m4, lead-dot.m4.
14815 * configure.ac: Invoke ZW_CREATE_DEPDIR,
14816 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
14817
148182012-12-05 Tom Tromey <tromey@redhat.com>
14819
14820 PR gdb/14917:
14821 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
14822
148232012-11-28 Markus Metzger <markus.t.metzger@intel.com>
14824
14825 * configure.ac: Check for linux/perf_event.h.
14826 * config.in: Regenerated.
14827 * configure: Regenerated.
14828
148292012-11-26 Maxime Villard <rustyBSD@gmx.fr>
14830
14831 * hostio.c (handle_readlink): Decrease buffer size
14832 parameter passed to readlink by one byte.
14833
148342012-11-26 Yao Qi <yao@codesourcery.com>
14835
14836 * configure.ac (build_warnings): Append '-Wempty-body'.
14837 * configure: Regenerated.
14838 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
14839 body.
14840
148412012-11-15 Pierre Muller <muller@sourceware.org>
14842
14843 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
14844 * config.in: Regenerate.
14845 * configure: Regenerate.
14846 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
14847 Use "gdb_wait.h" header instead of <sys/wait.h> header.
14848 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14849 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
14850 header.
14851 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
14852 instead of <sys/wait.h> header.
14853 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14854
148552012-11-13 Markus Metzger <markus.t.metzger@intel.com>
14856
14857 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
14858 (various make rules): Remove -DGDBSERVER
14859
148602012-11-09 Yao Qi <yao@codesourcery.com>
14861
14862 * spu-low.c (current_ptid): Move it to ..
14863 * gdbthread.h: ... here. New.
14864 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
14865 * server.c (myresume, process_serial_event): Likewise.
14866 * thread-db.c (thread_db_find_new_threads): Likewise.
14867 * tracepoint.c (run_inferior_command): Likewise.
14868
148692012-10-01 Andrew Burgess <aburgess@broadcom.com>
14870
14871 * server.c (handle_search_memory_1): Include access length in
14872 warning message.
14873
148742012-09-05 Michael Brandt <michael.brandt@axis.com>
14875
14876 * linux-crisv32-low.c: Fix compile errors.
14877
148782012-09-04 Yao Qi <yao@codesourcery.com>
14879
14880 * tracepoint.c (cmd_qtsv): Adjust debug message.
14881 Don't check CUR_TPOINT.
14882
148832012-08-28 Yao Qi <yao@codesourcery.com>
14884
14885 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
14886 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
14887 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
14888 Remove declarations of xmalloc, xreallloc, xstrdup and
14889 freeargv.
14890 * Makefile.in (libiberty_h): New.
14891 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
14892 (linux-bfin-low.o): Append dependency 'libiberty.h'.
14893
148942012-08-23 Yao Qi <yao@codesourcery.com>
14895
14896 * server.h: Remove declaration of 'xsnprintf'.
14897
148982012-08-22 Keith Seitz <keiths@redhat.com>
14899
14900 * server.h: Include build-gnulib-gbserver/config.h.
14901 * gdbreplay.c: Likewise.
14902
149032012-08-08 Doug Evans <dje@google.com>
14904
14905 * Makefile.in (SFILES): Add gdb_vecs.c.
14906 (OBS): Add gdb_vecs.o.
14907 (gdb_vecs_h, host_defs_h): New variables.
14908 (thread-db.o): Add $(gdb_vecs_h) dependency.
14909 (gdb_vecs.o): New rule.
14910 * thread-db.c: #include "gdb_vecs.h".
14911 (thread_db_load_search): Use a vector to iterate over path elements.
14912 Handle text appearing after "$pdir".
14913
14914 * configure.ac: Add check for strstr.
14915 * config.in: Regenerate.
14916 * configure: Regenerate.
14917
149182012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
14919
14920 * hostio.c (handle_pread): If pread fails, fall back to attempting
14921 lseek/read.
14922 (handle_pwrite): Likewise for pwrite.
14923
149242012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
14925
14926 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
14927 between unsupported TYPE and unimplementable ADDR/LEN combination.
14928 (arm_insert_point): Act on new return value.
14929
149302012-07-31 Pedro Alves <palves@redhat.com>
14931
14932 * server.c (process_point_options): Only skip tokens if we find
14933 one that is unrecognized. Don't treat 'X' specially while
14934 skipping unrecognized tokens.
14935
149362012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
14937
14938 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
14939 to 4-byte-align HW breakpoint addresses for Thumb.
14940
149412012-07-27 Yao Qi <yao@codesourcery.com>
14942
14943 PR remote/14161.
14944
14945 * server.h: Declare gdb_agent_about_to_close.
14946 * target.c (kill_inferior): Include "agent.h".
14947 New. Send command 'kill'.
14948 * target.h (kill_inferior): Removed macro.
14949 * tracepoint.c (gdb_agent_about_to_close): New.
14950 (gdb_agent_helper_thread): Handle command 'close'.
14951 Wait endlessly until the inferior stops.
14952 Install gdb_agent_remove_socket to atexit hook.
14953 (agent_socket_name): New static variable.
14954 (gdb_agent_socket_init): Replace local variable 'name' with
14955 'agent_socket_name'.
14956 (gdb_agent_remove_socket): New.
14957
149582012-07-27 Yao Qi <yao@codesourcery.com>
14959
14960 * server.c (process_point_options): Stop at 'X' when parsing.
14961
149622012-07-19 Michael Eager <eager@eagercon.com>
14963
14964 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
14965 to hw_execute.
14966 * linux-x86-low.c (x86_insert_point, x86_remove_point):
14967 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
14968 hardware breakpoint.
14969
149702012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14971
14972 * gdbserver/linux-low.c (initialize_low): Call
14973 linux_ptrace_init_warnings.
14974
149752012-07-02 Doug Evans <dje@google.com>
14976
14977 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
14978 pointer to int.
14979
149802012-07-02 Stan Shebs <stan@codesourcery.com>
14981
14982 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
14983 (ax.o): Add it to build rule.
14984 (ax-ipa.o): Ditto.
14985 (OBS): Add format.o.
14986 (IPA_OBS): Add format.o.
14987 * server.c (handle_query): Claim support for breakpoint commands.
14988 (process_point_options): Add command case.
14989 (process_serial_event): Leave running if there are printfs in
14990 effect.
14991 * mem-break.h (any_persistent_commands): Declare.
14992 (add_breakpoint_commands): Declare.
14993 (gdb_no_commands_at_breakpoint): Declare.
14994 (run_breakpoint_commands): Declare.
14995 * mem-break.c (struct point_command_list): New struct.
14996 (struct breakpoint): New field command_list.
14997 (any_persistent_commands): New function.
14998 (add_commands_to_breakpoint): New function.
14999 (add_breakpoint_commands): New function.
15000 (gdb_no_commands_at_breakpoint): New function.
15001 (run_breakpoint_commands): New function.
15002 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
15003 locally.
15004 * ax.c: Include format.h.
15005 (ax_printf): New function.
15006 (gdb_eval_agent_expr): Add printf opcode.
15007
150082012-06-13 Yao Qi <yao@codesourcery.com>
15009
15010 * server.c (start_inferior): Remove duplicated writes to fields
15011 'last_resume_kind' and 'last_status' of 'current_inferior'.
15012
150132012-06-12 Yao Qi <yao@codesourcery.com>
15014 Pedro Alves <palves@redhat.com>
15015
15016 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
15017 comment.
15018 * server.c (handle_v_cont): Extend comment.
15019
150202012-06-11 Yao Qi <yao@codesourcery.com>
15021
15022 * linux-low.c (linux_attach): Add 'static'.
15023
150242012-06-06 Yao Qi <yao@codesourcery.com>
15025
15026 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
15027
150282012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
15029
15030 Fix gcc -flto compilation warning.
15031 * server.c (main): Make variable multi_mode and attach volatile.
15032
150332012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15034
15035 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
15036 if the platform doesn't know about it.
15037
150382012-05-30 Jeff Kenton <jkenton@tilera.com>
15039
15040 * Makefile.in (SFILES): Add linux-tile-low.c.
15041 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
15042 * configure.srv: Handle tilegx-*-linux*.
15043 * linux-tile-low.c: New file.
15044
150452012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
15046
15047 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
15048
150492012-05-24 Pedro Alves <palves@redhat.com>
15050
15051 PR gdb/7205
15052
15053 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
15054
150552012-05-24 Pedro Alves <palves@redhat.com>
15056
15057 PR gdb/7205
15058
15059 Replace target_signal with gdb_signal throughout.
15060
150612012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
15062
15063 * linux-low.c (linux_store_registers): Avoid the copying sequence
15064 when no data has been retrieved by ptrace.
15065
150662012-05-22 Will Deacon <will.deacon@arm.com>
15067
15068 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
15069 Include asm/ptrace.h.
15070 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
15071 already defined.
15072
150732012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
15074
15075 * linux-low.c (linux_store_registers): Don't re-retrieve data
15076 with ptrace that has already been obtained from /proc. Always
15077 copy any data retrieved with ptrace to the buffer supplied.
15078
150792012-05-11 Yao Qi <yao@codesourcery.com>
15080 Pedro Alves <palves@redhat.com>
15081
15082 * linux-low.c (enum stopping_threads_kind): New.
15083 (stopping_threads): Change type to `enum stopping_threads_kind'.
15084 (handle_extended_wait): If stopping and suspending threads, leave
15085 the new_lwp suspended too.
15086 (linux_wait_for_event): Adjust.
15087 (stop_all_lwps): Set `stopping_threads' to
15088 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
15089 whether we're suspending threads or just stopping them. Assert no
15090 recursion happens.
15091
150922012-04-29 Yao Qi <yao@codesourcery.com>
15093
15094 * server.h: Move some code to ...
15095 * gdbthread.h: ... here. New.
15096 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
15097 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
15098 (nto-low.o, win32-low.o): Likewise.
15099 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
15100 * regcache.c, remote-utils.c, server.c: Likewise.
15101 * target.c, tracepoint.c, win32-low.c: Likewise.
15102
151032012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15104
15105 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
15106 (PTRACE_ARG4_TYPE): Likewise.
15107 (PTRACE_XFER_TYPE): Likewise.
15108 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
15109 ptrace to PTRACE_ARG3_TYPE.
15110 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
15111 (PTRACE_ARG4_TYPE): Likewise.
15112 (PTRACE_XFER_TYPE): Likewise.
15113 (linux_detach_one_lwp): Cast fourth argument of
15114 ptrace to long then PTRACE_ARG4_TYPE.
15115 (regsets_fetch_inferior_registers): Cast third argument of
15116 ptrace to long then PTRACE_ARG3_TYPE.
15117 (regsets_store_inferior_registers): Likewise.
15118
151192012-04-20 Pedro Alves <palves@redhat.com>
15120
15121 * configure: Regenerate.
15122
151232012-04-19 Pedro Alves <palves@redhat.com>
15124
15125 * Makefile.in (GNULIB_BUILDDIR): New.
15126 (LIBGNU, INCGNU, GNULIB_H): Adjust.
15127 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
15128 (all, install-only, uninstall, clean-info, all-lib, clean): No
15129 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
15130 (maintainer-clean realclean distclean): Use subdir_do.
15131 (subdir_do): New.
15132 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
15133 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
15134 * acinclude.m4: Include acx_configure_dir.m4.
15135 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
15136 calls. Call AC_PROG_RANLIB. Configure gnulib using
15137 ACX_CONFIGURE_DIR.
15138 (GNULIB): New.
15139 (GNULIB_STDINT_H): Adjust.
15140 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
15141 * gdbreplay.c: Include build-gnulib/config.h.
15142 * server.h: Likewise.
15143 * aclocal.m4: Regenerate.
15144 * config.in: Regenerate.
15145 * configure: Regenerate.
15146
151472012-04-19 Pedro Alves <palves@redhat.com>
15148
15149 * Makefile.in (LIBGNU, INCGNU): Adjust.
15150 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
15151 (all, install-only, uninstall, clean-info, all-lib, clean)
15152 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
15153 * configure.ac: Adjust AC_OUTPUT output.
15154 * aclocal.m4: Regenerate.
15155 * configure: Regenerate.
15156
151572012-04-19 Pedro Alves <palves@redhat.com>
15158
15159 * Makefile.in (generated_files): New.
15160 (server_h): Remove the explicit dependency on config.h, and depend
15161 on $generated_files.
15162
151632012-04-19 Pedro Alves <palves@redhat.com>
15164
15165 * Makefile.in (INCGNU): Add -Ignulib.
15166
151672012-04-19 Pedro Alves <palves@redhat.com>
15168
15169 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
15170 (INCGNU): ... this, and spell out -I here.
15171 (GNULIB_LIB): Rename to ...
15172 (LIBGNU): ... this.
15173 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
15174
151752012-04-19 Pedro Alves <palves@redhat.com>
15176
15177 * config.in: Regenerate.
15178
151792012-04-19 Pedro Alves <palves@redhat.com>
15180
15181 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
15182 * server.h (memmem): Remove declaration.
15183 * config.in: Regenerate.
15184 * configure: Regenerate.
15185
151862012-04-19 Yao Qi <yao@codesourcery.com>
15187
15188 * Makefile.in (SFILES): Add common/vec.c.
15189 (OBS): Add vec.o.
15190 (vec.o): New rule.
15191
151922012-04-19 Yao Qi <yao@codesourcery.com>
15193
15194 * remote-utils.c (prepare_resume_reply): Replace with macro
15195 target_core_of_thread.
15196 * server.c (handle_qxfer_threads_proper): Likewise.
15197 * target.h (traget_core_of_thread): New macro.
15198
151992012-04-18 Pedro Alves <palves@redhat.com>
15200
15201 * aclocal.m4: Regenerate.
15202 * configure: Regenerate.
15203
152042012-04-16 Yao Qi <yao@codesourcery.com>
15205
15206 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
15207 duplicated on address.
15208
152092012-04-16 Yao Qi <yao@codesourcery.com>
15210
15211 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
15212 (struct tracepoint_action_ops) <send>: New field.
15213 (m_tracepoint_action_send, r_tracepoint_action_send): New.
15214 (agent_expr_send, x_tracepoint_action_send): New.
15215 (l_tracepoint_action_send): New.
15216 (cmd_qtdp): Download and install tracepoint
15217 according to `use_agent'.
15218 (run_inferior_command): Add one more parameter `len'.
15219 Update callers.
15220 (tracepoint_send_agent): New.
15221 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
15222
152232012-04-16 Yao Qi <yao@codesourcery.com>
15224
15225 * tracepoint.c (download_tracepoints): Moved to ...
15226 (cmd_qtstart): ... here.
15227
152282012-04-14 Yao Qi <yao@codesourcery.com>
15229
15230 * tracepoint.c: Include inttypes.h.
15231 (struct collect_memory_action): Use sized types.
15232 (struct tracepoint): Likewise.
15233 (cmd_qtdp, stop_tracing): Update print specifiers.
15234 (cmd_qtp, response_tracepoint): Likewise.
15235 (collect_data_at_tracepoint): Likewise.
15236 (collect_data_at_step): Likewise.
15237
152382012-04-14 Yao Qi <yao@codesourcery.com>
15239
15240 Import gnulib module inttypes.
15241 * aclocal.m4, config.in, configure: Regenerated.
15242
152432012-04-14 Yao Qi <yao@codesourcery.com>
15244
15245 * Makefile.in (maintainer-clean, realclean, distclean): Remove
15246 Makefile and config.status at last.
15247
152482012-04-13 Yao Qi <yao@codesourcery.com>
15249
15250 * tracepoint.c: Include stdint.h unconditionally.
15251
152522012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15253
15254 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
15255 on BFD_HAVE_SYS_PROCFS_TYPE.
15256 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
15257 * configure: Regenerate.
15258 * config.in: Likewise.
15259
152602012-04-13 H.J. Lu <hongjiu.lu@intel.com>
15261
15262 * Makefile.in (clean): Also remove x32.c x32-linux.c
15263 x32-avx.c x32-avx-linux.c.
15264 (x32.o): New target.
15265 (x32.c): Likewise.
15266 (x32-linux.o): Likewise.
15267 (x32-linux.c): Likewise.
15268 (x32-avx.o): Likewise.
15269 (x32-avx.c): Likewise.
15270 (x32-avx-linux.o): Likewise.
15271 (x32-avx-linux.c): Likewise.
15272
15273 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
15274 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
15275 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
15276 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
15277 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
15278 i386/x32-avx-linux.xml.
15279
15280 * linux-x86-low.c (init_registers_x32_linux): New prototype.
15281 (init_registers_x32_avx_linux): Likwise.
15282 (x86_linux_update_xmltarget): Call init_registers_x32_linux
15283 or init_registers_x32_avx_linux if linux_is_elf64 is false.
15284
152852012-04-13 Pedro Alves <palves@redhat.com>
15286
15287 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
15288 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
15289 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
15290 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
15291 the sub-make.
15292
152932012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15294
15295 * linux-x86-low.c (compat_x32_clock_t): New.
15296 (compat_x32_siginfo_t): Likewise.
15297 (compat_x32_siginfo_from_siginfo): Likewise.
15298 (siginfo_from_compat_x32_siginfo): Likewise.
15299 (linux_is_elf64): Likewise.
15300 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
15301 and siginfo_from_compat_x32_siginfo for x32.
15302 (x86_arch_setup): Set linux_is_elf64.
15303
153042012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15305
15306 PR gdb/13969
15307 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
15308 e_machine field.
15309 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
15310 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
15311 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
15312 compatible with process.
15313
153142012-04-12 Yao Qi <yao@codesourcery.com>
15315
15316 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
15317 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
15318 (install-only, install-info, clean): Handle sub dir gnulib.
15319 (all-lib, am--refresh): New targets.
15320 (memmem.o): Remove target.
15321 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
15322 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
15323 (AC_REPLACE_FUNCS): Remove memmem.
15324 Invoke gl_INIT and AM_INIT_AUTOMAKE.
15325 (AC_OUTPUT): Generate Makefile in gnulib/.
15326 * aclocal.m4, config.in, configure: Regenerated.
15327
153282012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
15329
15330 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
15331
153322012-04-05 Pedro Alves <palves@redhat.com>
15333
15334 -Werror=strict-aliasing
15335
15336 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
15337 pointer.
15338
153392012-04-04 Pedro Alves <palves@redhat.com>
15340
15341 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
15342 (sparc_store_gregset_from_stack, sparc_store_gregset)
15343 (sparc_breakpoint_at): Fix formatting.
15344
153452012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15346
15347 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
15348 are available.
15349 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
15350 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
15351 * config.in: Regenerate.
15352 * configure: Likewise.
15353
153542012-03-29 Pedro Alves <palves@redhat.com>
15355
15356 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
15357 Correct ptrace arguments.
15358
153592012-03-28 Pedro Alves <palves@redhat.com>
15360
15361 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
15362 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
15363 (IA64_FR1_REGNUM): New defines.
15364 (ia64_fetch_register): New.
15365 (the_low_target): Install it.
15366 * linux-low.h (struct linux_target_ops) <fetch_register>: New
15367 field.
15368 * linux-low.c (linux_fetch_registers): Try the
15369 the_low_target.fetch_register hook first.
15370
15371 * linux-arm-low.c (the_low_target): Adjust.
15372 * linux-bfin-low.c (the_low_target): Adjust.
15373 * linux-cris-low.c (the_low_target): Adjust.
15374 * linux-crisv32-low.c (the_low_target): Adjust.
15375 * linux-m32r-low.c (the_low_target): Adjust.
15376 * linux-m68k-low.c (the_low_target): Adjust.
15377 * linux-mips-low.c (the_low_target): Adjust.
15378 * linux-ppc-low.c (the_low_target): Adjust.
15379 * linux-s390-low.c (the_low_target): Adjust.
15380 * linux-sh-low.c (the_low_target): Adjust.
15381 * linux-sparc-low.c (the_low_target): Adjust.
15382 * linux-tic6x-low.c (the_low_target): Adjust.
15383 * linux-x86-low.c (the_low_target): Adjust.
15384 * linux-xtensa-low.c (the_low_target): Adjust.
15385
153862012-03-26 Pedro Alves <palves@redhat.com>
15387
15388 * server.c (handle_qxfer_libraries): Don't bail early if
15389 the_target->qxfer_libraries_svr4 is not NULL.
15390
153912012-03-26 Pedro Alves <palves@redhat.com>
15392
15393 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
15394
153952012-03-23 Pedro Alves <palves@redhat.com>
15396
15397 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
15398 "library-list-svr4" element's start tag when the the DSO list is
15399 empty.
15400
154012012-03-23 Pedro Alves <palves@redhat.com>
15402
15403 * linux-low.c (read_one_ptr): Read the inferior's pointer through
15404 a variable whose type size is the same as the inferior's pointer
15405 size.
15406
154072012-03-21 Thomas Schwinge <thomas@codesourcery.com>
15408
15409 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
15410 struct siginfo.
15411 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
15412 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
15413 * linux-low.h: Include <signal.h>.
15414 (struct siginfo): Remove forward declaration.
15415 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
15416 struct siginfo.
15417
154182012-03-21 Mike Frysinger <vapier@gentoo.org>
15419
15420 * .gitignore: Ignore more files.
15421
154222012-03-19 Pedro Alves <palves@redhat.com>
15423 Jan Kratochvil <jan.kratochvil@redhat.com>
15424
15425 * server.c (cont_thread, general_thread): Add describing comments.
15426 (start_inferior): Clear `cont_thread'.
15427 (handle_v_cont): Don't set `cont_thread' if resuming all threads
15428 of a process.
15429
154302012-03-15 Yao Qi <yao@codesourcery.com>
15431
15432 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
15433 handling to ...
15434 (cmd_qtdp): ... here.
15435
154362012-03-15 Yao Qi <yao@codesourcery.com>
15437
15438 * tracepoint.c (struct tracepoint_action_ops): New.
15439 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
15440 (m_tracepoint_action_download): New.
15441 (r_tracepoint_action_download): New.
15442 (x_tracepoint_action_download): New.
15443 (l_tracepoint_action_download): New.
15444 (add_tracepoint_action): Install `action->ops' according type.
15445 (download_tracepoint_1): Move code `download' function pointer
15446 of various tracepoint_action_ops.
15447
154482012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15449
15450 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
15451 linux_ptrace_attach_warnings.
15452
154532012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15454
15455 * Makefile.in (linux-ptrace.o): New.
15456 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
15457 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
15458 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
15459 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
15460 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
15461 of these targets.
15462 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
15463
154642012-03-08 Yao Qi <yao@codesourcery.com>
15465 Pedro Alves <palves@redhat.com>
15466
15467 Fix PR server/13392.
15468 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
15469 offset of JMP insn.
15470 * tracepoint.c (remove_tracepoint): New.
15471 (cmd_qtdp): Call remove_tracepoint when failed to install.
15472
154732012-03-07 Pedro Alves <palves@redhat.com>
15474
15475 * linux-low.c (get_detach_signal): New.
15476 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
15477 Pass on pending signals to PTRACE_DETACH. Check the result of the
15478 ptrace call.
15479 * server.c (program_signals, program_signals_p): New.
15480 (handle_general_set): Handle QProgramSignals.
15481 * server.h (program_signals, program_signals_p): Declare.
15482
154832012-03-05 Pedro Alves <palves@redhat.com>
15484 Jan Kratochvil <jan.kratochvil@redhat.com>
15485
15486 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
15487 New comment why.
15488
154892012-03-03 Yao Qi <yao@codesourcery.com>
15490
15491 * tracepoint.c (tracepoint_look_up_symbols): Update call to
15492 agent_look_up_symbols.
15493
154942012-03-03 Yao Qi <yao@codesourcery.com>
15495
15496 * Makefile.in (linux-low.o): Keep dependence on agent.h.
15497 (linux-x86-low.o): Likewise.
15498 * server.h: Remove in_process_agent_loaded.
15499 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
15500 common/agent.c.
15501 Update callers.
15502
155032012-03-03 Yao Qi <yao@codesourcery.com>
15504
15505 * tracepoint.c (gdb_agent_capability): New global.
15506 (in_process_agent_loaded_ust): Renamed to
15507 `in_process_agent_supports_ust'.
15508 Update callers.
15509 (in_process_agent_supports_ust): Call agent_capability_check.
15510 (clear_installed_tracepoints): Assert that agent supports
15511 agent.
15512
155132012-03-03 Yao Qi <yao@codesourcery.com>
15514
15515 * linux-low.c (linux_supports_agent): New.
15516 (linux_target_ops): Initialize field `supports_agent' with
15517 linux_supports_agent.
15518 * target.h (struct target_ops) <supports_agent>: New.
15519 (target_supports_agent): New macro.
15520 * server.c (handle_general_set): Handle packet 'QAgent'.
15521 (handle_query): Send `QAgent+'.
15522 * Makefile.in (server.o): Depends on agent.h.
15523
155242012-03-03 Yao Qi <yao@codesourcery.com>
15525
15526 * Makefile.in (OBS): Add agent.o.
15527 Add new rule for agent.o.
15528 Track dependence of tracepoint.c on agent.h.
15529 * tracepoint.c (run_inferior_command_1):
15530 (run_inferior_command): Call agent_run_command.
15531 (gdb_ust_connect_sync_socket): Deleted. Move it to
15532 common/agent.c.
15533 (resume_thread, stop_thread): Likewise.
15534 (gdb_ust_socket_init): Renamed to ...
15535 (gdb_agent_socket_init): ... New.
15536 (gdb_ust_thread): Renamed to ...
15537 (gdb_agent_helper_thread): ... New.
15538 (gdb_ust_init): Move some code to ...
15539 (gdb_agent_init): ... here. New.
15540 [HAVE_UST]: Call gdb_ust_init.
15541 (initialize_tracepoint_ftlib): Call gdb_agent_init.
15542 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
15543 * config.in, configure: Regenerated.
15544
155452012-03-02 Pedro Alves <palves@redhat.com>
15546
15547 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
15548 * linux-low.c (struct simple_pid_list): New.
15549 (stopped_pids): New a struct simple_pid_list pointer.
15550 (add_to_pid_list, pull_pid_from_list): New.
15551 (handle_extended_wait): Don't assume the first signal new children
15552 report is SIGSTOP. Adjust call to pull_pid_from_list.
15553 (linux_wait_for_lwp): Adjust.
15554
155552012-03-02 Yao Qi <yao@codesourcery.com>
15556
15557 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
15558 debug log.
15559
155602012-03-02 Yao Qi <yao@codesourcery.com>
15561
15562 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
15563 `stop_pc' and `tpoint'. Update caller.
15564
155652012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
15566
15567 * linux-low.h (linux_target_ops): Add regset_bitmap member.
15568 * linux-low.c (use_linux_regsets): New macro.
15569 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
15570 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
15571 (linux_register_in_regsets): New function.
15572 (usr_fetch_inferior_registers): Skip registers covered by
15573 regsets.
15574 (usr_store_inferior_registers): Likewise.
15575 (usr_fetch_inferior_registers): New macro.
15576 (usr_store_inferior_registers): Likewise.
15577 (linux_fetch_registers): Handle mixed regset/non-regset targets.
15578 (linux_store_registers): Likewise.
15579 * linux-mips-low.c (init_registers_mips_dsp_linux): New
15580 prototype.
15581 (init_registers_mips64_dsp_linux): Likewise.
15582 (init_registers_mips_linux): New macro.
15583 (init_registers_mips_dsp_linux): Likewise.
15584 (mips_dsp_num_regs): Likewise.
15585 (DSP_BASE, DSP_CONTROL): New fallback macros.
15586 (mips_base_regs): New macro.
15587 (mips_regmap): Use it. Fix the size.
15588 (mips_dsp_regmap): New variable.
15589 (mips_dsp_regset_bitmap): Likewise.
15590 (mips_arch_setup): New function.
15591 (mips_cannot_fetch_register): Use the_low_target.regmap rather
15592 than mips_regmap.
15593 (mips_cannot_store_register): Likewise.
15594 (the_low_target): Update .arch_setup, .num_regs and .regmap
15595 initializers. Add .regset_bitmap initializer.
15596 * linux-arm-low.c (the_low_target): Add .regset_bitmap
15597 initializer.
15598 * linux-bfin-low.c (the_low_target): Likewise.
15599 * linux-cris-low.c (the_low_target): Likewise.
15600 * linux-crisv32-low.c (the_low_target): Likewise.
15601 * linux-ia64-low.c (the_low_target): Likewise.
15602 * linux-m32r-low.c (the_low_target): Likewise.
15603 * linux-m68k-low.c (the_low_target): Likewise.
15604 * linux-ppc-low.c (the_low_target): Likewise.
15605 * linux-s390-low.c (the_low_target): Likewise.
15606 * linux-sh-low.c (the_low_target): Likewise.
15607 * linux-sparc-low.c (the_low_target): Likewise.
15608 * linux-tic6x-low.c (the_low_target): Likewise.
15609 * linux-x86-low.c (the_low_target): Likewise.
15610 * linux-xtensa-low.c (the_low_target): Likewise.
15611 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
15612 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
15613 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
15614 srv_xmlfiles.
15615 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
15616 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
15617
156182012-02-29 Yao Qi <yao@codesourcery.com>
15619 Pedro Alves <palves@redhat.com>
15620
15621 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
15622 `step_over_finished' is true.
15623
156242012-02-27 Pedro Alves <palves@redhat.com>
15625
15626 * linux-low.c (pid_is_stopped): Delete, moved to common/.
15627 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
15628
156292012-02-27 Pedro Alves <palves@redhat.com>
15630
15631 PR server/9684
15632 * linux-low.c (pid_is_stopped): New.
15633 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
15634
156352012-02-25 Luis Machado <lgustavo@codesourcery.com>
15636
15637 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
15638 of conditions.
15639
156402012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
15641
15642 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
15643
156442012-02-24 Luis Machado <lgustavo@codesourcery>
15645
15646 * server.c (handle_query): Advertise support for target-side
15647 breakpoint condition evaluation.
15648 (process_point_options): New function.
15649 (process_serial_event): When inserting a breakpoint, check for
15650 a target-side condition that should be evaluated.
15651
15652 * mem-break.c: Include regcache.h and ax.h.
15653 (point_cond_list_t): New data structure.
15654 (breakpoint) <cond_list>: New field.
15655 (find_gdb_breakpoint_at): Make non-static.
15656 (delete_gdb_breakpoint_at): Clear any target-side
15657 conditions.
15658 (clear_gdb_breakpoint_conditions): New function.
15659 (add_condition_to_breakpoint): Likewise.
15660 (add_breakpoint_condition): Likewise.
15661 (gdb_condition_true_at_breakpoint): Likewise.
15662 (gdb_breakpoint_here): Return result directly instead
15663 of going through a local variable.
15664
15665 * mem-break.h (find_gdb_breakpoint_at): New prototype.
15666 (clear_gdb_breakpoint_conditions): Likewise.
15667 (add_breakpoint_condition): Likewise.
15668 (gdb_condition_true_at_breakpoint): Likewise.
15669
15670 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
15671 (need_step_over_p): Take target-side breakpoint condition into
15672 consideration.
15673
156742012-02-24 Luis Machado <lgustavo@codesourcery>
15675
15676 * server.h: Include tracepoint.h.
15677 (agent_mem_read, agent_get_trace_state_variable_value,
15678 agent_set_trace_state_variable_value,
15679 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
15680 get_set_tsv_func_addr): New prototypes.
15681
15682 * ax.h: New include file.
15683 * ax.c: New source file.
15684
15685 * tracepoint.c: Include ax.h.
15686 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
15687 agent_expr, eval_result_type): Move to ax.h.
15688 (parse_agent_expr): Rename to ...
15689 (gdb_parse_agent_expr): ... this, make it non-static and move
15690 to ax.h.
15691 (unparse_agent_expr) Rename to ...
15692 (gdb_unparse_agent_expr): ... this, make it non-static and move
15693 to ax.h.
15694 (eval_agent_expr): Rename to ...
15695 (eval_tracepoint_agent_expr): ... this.
15696 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
15697 forward declarations.
15698 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
15699 (agent_get_trace_state_variable_value): New function.
15700 (agent_set_trace_state_variable_value): New function.
15701 (cmd_qtdp): Call gdb_parse_agent_expr (...).
15702 (response_tracepoint): Call gdb_unparse_agent_expr (...).
15703 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
15704 (condition_true_at_tracepoint): Likewise.
15705 (parse_agent_expr): Rename to ...
15706 (gdb_parse_agent_expr): ... this and move to ax.c.
15707 (unparse_agent_expr): Rename to ...
15708 (gdb_unparse_agent_expr): ... this and move to ax.c.
15709 (gdb_agent_op_name): Move to ax.c.
15710 (eval_agent_expr): Rename to ...
15711 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
15712 and move to ax.c.
15713 (eval_tracepoint_agent_expr): New function.
15714 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
15715 non-static.
15716 (current_insn_ptr, emit_error, struct bytecode_address): Move to
15717 ax.c.
15718 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
15719 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
15720 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
15721 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
15722 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
15723 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
15724 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
15725 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
15726 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
15727 (compile_bytecodes): Remove forward declaration.
15728 (is_goto_target): Move to ax.c.
15729 (compile_bytecodes): Move to ax.c and call
15730 agent_get_trace_state_variable_value (...) and
15731 agent_set_trace_state_variable_value (...).
15732
15733 * Makefile.in: Update ax.c and IPA dependencies.
15734
157352012-02-24 Pedro Alves <palves@redhat.com>
15736
15737 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
15738 (cmd_bigqtbuffer_circular): ... this. Only handle
15739 'QTBuffer:circular:'.
15740 (handle_tracepoint_general_set): Adjust.
15741
157422012-02-16 Yao Qi <yao@codesourcery.com>
15743
15744 * inferiors.c: Move code to ...
15745 * dll.c: .... here. New.
15746 * server.h: Declare clear_dlls.
15747 * Makefile.in (SFILES): Add dll.c.
15748 (OBS): Add dll.o
15749 (dll.o): New rule.
15750
157512012-02-11 Yao Qi <yao@codesourcery.com>
15752
15753 * server.c: (handle_monitor_command): Add a new parameter
15754 `own_buf'.
15755 (handle_query): Update caller.
15756
157572012-02-09 Joel Brobecker <brobecker@adacore.com>
15758
15759 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
15760 * configure, config.in: Regenerate.
15761 * hostio.c: Provide an alternate implementation if HAVE_READLINK
15762 is not defined.
15763
157642012-02-02 Pedro Alves <palves@redhat.com>
15765
15766 Try SIGKILL first, then PTRACE_KILL.
15767 * linux-low.c (linux_kill_one_lwp): New.
15768 (linux_kill_one_lwp): Rename to ...
15769 (kill_one_lwp_callback): ... this. Use the new
15770 linux_kill_one_lwp.
15771
157722012-02-02 Pedro Alves <palves@redhat.com>
15773
15774 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
15775 inferior.
15776
157772012-01-27 Pedro Alves <palves@redhat.com>
15778
15779 * linux-low.c (linux_child_pid_to_exec_file): Delete.
15780 (elf_64_file_p): Make static.
15781 (linux_pid_exe_is_elf_64_file): New.
15782 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
15783 Delete declarations.
15784 (linux_pid_exe_is_elf_64_file): Declare.
15785 * linux-x86-low.c (x86_arch_setup): Use
15786 linux_pid_exe_is_elf_64_file.
15787
157882012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
15789
15790 * linux-low.c (linux_wait_for_event_1): Rename to ...
15791 (linux_wait_for_event): ... here and merge it with former
15792 linux_wait_for_event - new variable wait_ptid, use it.
15793 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
15794
157952012-01-23 Pedro Alves <palves@redhat.com>
15796
15797 * server.c (main): Avoid yet another case of infinite loop while
15798 detaching/killing after a longjmp.
15799
158002012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15801
15802 Code cleanup.
15803 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
15804
158052012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
15806
15807 * hostio.c (handle_readlink): New function.
15808 (handle_vFile): Call it to handle "vFile:readlink" packets.
15809
158102012-01-20 Pedro Alves <palves@redhat.com>
15811 Ulrich Weigand <ulrich.weigand@linaro.org>
15812
15813 * server.c (handle_v_requests): Only support vAttach and vRun to
15814 start multiple processes when in extended protocol mode.
15815
158162012-01-17 Pedro Alves <palves@redhat.com>
15817
15818 * tracepoint.c (initialize_tracepoint): Use mmap instead of
15819 memalign plus mprotect to allocate the scratch buffer.
15820
158212012-01-13 Pedro Alves <palves@redhat.com>
15822
15823 * server.c (attach_inferior): Clear `cont_thread'.
15824
158252012-01-13 Pedro Alves <palves@redhat.com>
15826
15827 * server.c (main): Avoid infinite loop while detaching/killing
15828 after a longjmp.
15829
158302012-01-09 Doug Evans <dje@google.com>
15831
15832 * server.c (start_inferior): Set last_ptid in --wrapper case.
15833
158342012-01-06 Yao Qi <yao@codesourcery.com>
15835
15836 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
15837 defined.
15838 [IN_PROCESS_AGENT] (debug_agent): New global variable.
15839
158402012-01-04 Yao Qi <yao@codesourcery.com>
15841
15842 * tracepoint.c (cmd_qtdp): Print debug message
15843 for static tracepoint.
15844
158452012-01-04 Yao Qi <yao@codesourcery.com>
15846
15847 * tracepoint.c (trace_vdebug): Differentiate debug message
15848 between gdbserver and IPA.
15849
158502012-01-03 Yao Qi <yao@codesourcery.com>
15851
15852 * tracepoint.c (tracepoint_was_hit): Don't collect for
15853 static tracepoint.
15854
158552012-01-02 Joel Brobecker <brobecker@adacore.com>
15856
15857 * terminal.h: Reformat copyright header.
15858
158592012-01-02 Joel Brobecker <brobecker@adacore.com>
15860
15861 * server.c (gdbserver_version): Update copyright year.
15862 * gdbreplay.c (gdbreplay_version): Likewise.
15863
158642011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
15865
15866 * linux-low.c (linux_create_inferior): Put empty if clause for write.
15867
15868 Revert:
15869 2011-12-18 Hui Zhu <teawater@gmail.com>
15870 * linux-low.c (linux_create_inferior): Save return value to ret.
15871
158722011-12-18 Hui Zhu <teawater@gmail.com>
15873
15874 * linux-low.c (linux_create_inferior): Save return value to ret.
15875
158762011-12-16 Doug Evans <dje@google.com>
15877
15878 * linux-low.c (linux_create_inferior): If stdio connection,
15879 redirect stdin from /dev/null, stdout to stderr.
15880 * remote-utils.c (remote_is_stdio): New static global.
15881 (remote_connection_is_stdio): New function.
15882 (remote_prepare): Handle stdio connection.
15883 (remote_open): Ditto.
15884 (remote_close): Don't close stdin for stdio connections.
15885 (read_prim,write_prim): New functions. Replace all calls to
15886 read/write to these.
15887 * server.c (main): Watch for "-" argument. Move call to
15888 remote_prepare before start_inferior.
15889 * server.h (STDIO_CONNECTION_NAME): New macro.
15890 (remote_connection_is_stdio): Declare.
15891
15892 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
15893 in debugging output.
15894
158952011-12-15 Yao Qi <yao@codesourcery.com>
15896
15897 * tracepoint.c: Include sys/syscall.h.
15898 (gdb_ust_thread): Remove preprocessor conditional.
15899
159002011-12-14 Pedro Alves <pedro@codesourcery.com>
15901
15902 * linux-low.c (linux_detach_one_lwp): Call
15903 the_low_target.prepare_to_resume before detaching.
15904
159052011-12-14 Yao Qi <yao@codesourcery.com>
15906
15907 * tracepoint.c (gdb_ust_thread): Don't ignore return value
15908 of write.
15909
159102011-12-14 Yao Qi <yao@codesourcery.com>
15911
15912 * i386-low.c (i386_low_stopped_data_address): Initialize local
15913 variable `control'.
15914
159152011-12-13 Pedro Alves <pedro@codesourcery.com>
15916
15917 PR remote/13492
15918
15919 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
15920 DR_CONTROL unless necessary. Extend comments.
15921 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
15922 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
15923
159242011-12-13 Yao Qi <yao@codesourcery.com>
15925
15926 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
15927 macros.
15928 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
15929
159302011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
15931
15932 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
15933 Print new debug message for such case.
15934
159352011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
15936
15937 Fix overlapping memcpy.
15938 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
15939 the read_inferior_memory transfer.
15940 (delete_fast_tracepoint_jump): New variable buf. Use it for the
15941 write_inferior_memory transfer.
15942 (set_fast_tracepoint_jump): New variable buf. Use it for the
15943 read_inferior_memory and write_inferior_memory transfers.
15944 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
15945 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
15946 Use it for the write_inferior_memory transfer.
15947 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
15948 buffers.
15949
159502011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
15951
15952 * linux-low.c (fetch_register, store_register): Make code
15953 consistent, fix formatting.
15954
159552011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
15956
15957 * linux-low.c (usr_store_inferior_registers): Factor out code
15958 to handle individual registers into...
15959 (store_register): ... this new function.
15960
159612011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
15962
15963 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
15964 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
15965 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
15966 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
15967 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
15968 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
15969 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
15970 (srv_xmlfiles): Add new XML files.
15971
15972 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
15973 and <sys/uio.h>.
15974 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
15975 (init_registers_s390_linux32v1): Add prototype.
15976 (init_registers_s390_linux32v2): Likewise.
15977 (init_registers_s390_linux64v1): Likewise.
15978 (init_registers_s390_linux64v2): Likewise.
15979 (init_registers_s390x_linux64v1): Likewise.
15980 (init_registers_s390x_linux64v2): Likewise.
15981 (s390_num_regs): Increment to 52.
15982 (s390_regmap): Add orig_r2 register.
15983 (s390_num_regs_3264): Increment to 68.
15984 (s390_regmap_3264): Add orig_r2 register.
15985 (s390_collect_ptrace_register): Handle orig_r2 register.
15986 (s390_supply_ptrace_register): Likewise.
15987 (s390_fill_last_break): New function.
15988 (s390_store_last_break): Likewise.
15989 (s390_fill_system_call): New function.
15990 (s390_store_system_call): Likewise.
15991 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
15992 register sets.
15993 (s390_check_regset): New function.
15994 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
15995 NT_S390_SYSTEM_CALL regsets and use appropriate description.
15996 Update target_regsets for available register sets.
15997
159982011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
15999 Jan Kratochvil <jan.kratochvil@redhat.com>
16000
16001 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
16002 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
16003 New.
16004 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
16005 * linux-low.h (struct process_info_private): New member r_debug.
16006 * server.c (handle_qxfer_libraries): Call
16007 the_target->qxfer_libraries_svr4.
16008 (handle_qxfer_libraries_svr4): New function.
16009 (qxfer_packets): New entry "libraries-svr4".
16010 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
16011 * target.h (struct target_ops): New member qxfer_libraries_svr4.
16012 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
16013 PACKET_qXfer_libraries_svr4.
16014
160152011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
16016
16017 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
16018 PSW address/mask between 8-byte and 16-byte formats.
16019 (s390_supply_ptrace_register): Likewise.
16020 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
16021 basic addressing mode bit.
16022
160232011-11-24 Stan Shebs <stan@codesourcery.com>
16024
16025 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
16026
160272011-11-17 Stan Shebs <stan@codesourcery.com>
16028
16029 * tracepoint.c (struct tracepoint): New field traceframe_usage.
16030 (tracing_start_time): New global.
16031 (tracing_stop_time): New global.
16032 (tracing_user_name): New global.
16033 (tracing_notes): New global.
16034 (tracing_stop_note): New global.
16035 (cmd_qtstart): Set traceframe_usage, start_time.
16036 (stop_tracing): Set stop_time.
16037 (cmd_qtstatus): Report additional status.
16038 (cmd_qtp): New function.
16039 (handle_tracepoint_query): Call it.
16040 (cmd_qtnotes): New function.
16041 (handle_tracepoint_general_set): Call it.
16042 (get_timestamp): Rename from tsv_get_timestamp.
16043
160442011-11-14 Stan Shebs <stan@codesourcery.com>
16045 Kwok Cheung Yeung <kcy@codesourcery.com>
16046
16047 * linux-x86-low.c (small_jump_insn): New.
16048 (i386_install_fast_tracepoint_jump_pad): Add arguments for
16049 trampoline and error message, build a trampoline and issue a small
16050 jump instruction to it.
16051 (x86_install_fast_tracepoint_jump_pad): Add arguments for
16052 trampoline and error message.
16053 (x86_get_min_fast_tracepoint_insn_len): New.
16054 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
16055 * linux-low.h (struct linux_target_ops): Add arguments to
16056 install_fast_tracepoint_jump_pad operation, add new operation.
16057 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
16058 arguments.
16059 (linux_get_min_fast_tracepoint_insn_len): New function.
16060 (linux_target_op): Add new operation.
16061 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
16062 (gdb_trampoline_buffer_end): Ditto.
16063 (gdb_trampoline_buffer_error): Ditto.
16064 (struct ipa_sym_addresses): Add fields for new IPA variables.
16065 (symbol_list): Add entries for new IPA variables.
16066 (struct tracepoint): Add fields to hold the address range of the
16067 trampoline used by the tracepoint.
16068 (trampoline_buffer_head): New static variable.
16069 (trampoline_buffer_tail): Ditto.
16070 (claim_trampoline_space): New function.
16071 (have_fast_tracepoint_trampoline_buffer): New function.
16072 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
16073 structure.
16074 (install_fast_tracepoint): Ditto, also add error buffer argument.
16075 (cmd_qtminftpilen): New function.
16076 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
16077 (fast_tracepoint_from_trampoline_address): New function.
16078 (fast_tracepoint_collecting): Handle trampoline as part of jump
16079 pad space.
16080 (set_trampoline_buffer_space): New function.
16081 (initialize_tracepoint): Initialize new IPA variables.
16082 * target.h (struct target_ops): Add arguments to
16083 install_fast_tracepoint_jump_pad operation, add new
16084 get_min_fast_tracepoint_insn_len operation.
16085 (target_get_min_fast_tracepoint_insn_len): New.
16086 (install_fast_tracepoint_jump_pad): Add arguments.
16087 * server.h (IPA_BUFSIZ): Define.
16088 * linux-i386-ipa.c: Include extra header files.
16089 (initialize_fast_tracepoint_trampoline_buffer): New function.
16090 (initialize_low_tracepoint): Call it.
16091 * server.h (set_trampoline_buffer_space): Declare.
16092 (claim_trampoline_space): Ditto.
16093 (have_fast_tracepoint_trampoline_buffer): Ditto.
16094
160952011-11-14 Yao Qi <yao@codesourcery.com>
16096
16097 * server.c (handle_query): Handle InstallInTrace for qSupported.
16098 * tracepoint.c (add_tracepoint): Sort list.
16099 (install_tracepoint, download_tracepoint): New.
16100 (cmd_qtdp): Call them to install and download tracepoints.
16101 (sort_tracepoints): Removed.
16102 (cmd_qtstart): Update.
16103
161042011-11-14 Yao Qi <yao@codesourcery.com>
16105
16106 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
16107 * mem-break.h: Declare.
16108 * tracepoint.c (cmd_qtstart): Move some code to ...
16109 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
16110 New.
16111 (download_tracepoints): Move some code to ...
16112 (download_tracepoint_1): ... here. New.
16113
161142011-11-08 Yao Qi <yao@codesourcery.com>
16115
16116 * remote-utils.c (relocate_instruction): A comment fix.
16117
161182011-11-07 Joel Brobecker <brobecker@adacore.com>
16119
16120 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
16121 (i386_dr_low_get_control, i386_dr_low_get_status): Use
16122 dr_status_mirror and dr_control_mirror from debug_reg_state.
16123 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
16124 (i386_initial_stuff): Remove use of deleted globals.
16125 (i386_get_thread_context, i386_set_thread_context,
16126 i386_thread_added): Use dr_status_mirror and dr_control_mirror
16127 from debug_reg_state.
16128
161292011-11-05 Yao Qi <yao@codesourcery.com>
16130
16131 * tracepoint.c (gdb_collect): Loop over tracepoints of same
16132 address as TPOINT's.
16133
161342011-11-02 Stan Shebs <stan@codesourcery.com>
16135
16136 * tracepoint.c (agent_mem_read_string): New function.
16137 (eval_agent_expr): Call it for tracenz.
16138 * server.c (handle_query): Report support for tracenz.
16139
161402011-11-02 Yao Qi <yao@codesourcery.com>
16141
16142 * tracepoint.c (cmd_qtstart): Remove unused local variables.
16143
161442011-11-02 Yao Qi <yao@codesourcery.com>
16145
16146 * target.h: Fix a typo in comment.
16147
161482011-10-31 Pedro Alves <pedro@codesourcery.com>
16149
16150 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
16151 clobber the breakpoints' shadows with fast tracepoint jumps.
16152 * mem-break.h (check_mem_write): Add `myaddr' parameter.
16153 * target.c (write_inferior_memory): Also pass MYADDR down to
16154 check_mem_write.
16155
161562011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
16157
16158 * configure.ac: Check support for personality routine.
16159 * configure: Regenerate.
16160 * config.in: Likewise.
16161 * linux-low.c: Include <sys/personality.h>.
16162 Define ADDR_NO_RANDOMIZE if necessary.
16163 (linux_create_inferior): Disable address space randomization when
16164 forking inferior, if requested.
16165 (linux_supports_disable_randomization): New function.
16166 (linux_target_ops): Install it.
16167 * server.h (disable_randomization): Declare.
16168 * server.c (disable_randomization): New global variable.
16169 (handle_general_set): Handle QDisableRandomization.
16170 (handle_query): Likewise for qSupported.
16171 (main): Support --disable-randomization and --no-disable-randomization
16172 command line arguments.
16173 * target.h (struct target_ops): Add supports_disable_randomization.
16174 (target_supports_disable_randomization): New macro.
16175
161762011-09-29 Mike Frysinger <vapier@gentoo.org>
16177
16178 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
16179 ifdef check.
16180 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
16181 [!PT_GETDSBT] (target_loadmap): New definition.
16182 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
16183 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
16184 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
16185 and PT_GETDSBT to LINUX_LOADMAP.
16186 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
16187 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
16188
161892011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
16190
16191 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
16192 (arm_linux_hwbp_cap): New static variable.
16193 (arm_linux_get_hwbp_cap): Replace by ...
16194 (arm_linux_init_hwbp_cap): ... this new function.
16195 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
16196 (arm_linux_get_hw_watchpoint_count): Likewise.
16197 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16198 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
16199 (arm_prepare_to_resume): Use perror_with_name instead of error.
16200
162012011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
16202
16203 * linux-arm-low.c: Include <signal.h>.
16204 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
16205 (struct arm_linux_hwbp_cap): New data type.
16206 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
16207 (struct arm_linux_hw_breakpoint): New data type.
16208 (MAX_BPTS, MAX_WPTS): Define.
16209 (struct arch_process_info, struct arch_lwp_info): New data types.
16210 (arm_linux_get_hwbp_cap): New function.
16211 (arm_linux_get_hw_breakpoint_count): Likewise.
16212 (arm_linux_get_hw_watchpoint_count): Likewise.
16213 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16214 (arm_hwbp_control_initialize): Likewise.
16215 (arm_hwbp_control_is_enabled): Likewise.
16216 (arm_hwbp_control_is_initialized): Likewise.
16217 (arm_hwbp_control_disable): Likewise.
16218 (arm_linux_hw_breakpoint_equal): Likewise.
16219 (arm_linux_hw_point_initialize): Likewise.
16220 (struct update_registers_data): New data structure.
16221 (update_registers_callback: New function.
16222 (arm_insert_point): Likewise.
16223 (arm_remove_point): Likewise.
16224 (arm_stopped_by_watchpoint): Likewise.
16225 (arm_stopped_data_address): Likewise.
16226 (arm_new_process): Likewise.
16227 (arm_new_thread): Likewise.
16228 (arm_prepare_to_resume): Likewise.
16229 (the_low_target): Register arm_insert_point, arm_remove_point,
16230 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
16231 arm_new_thread, and arm_prepare_to_resume.
16232
162332011-09-15 Stan Shebs <stan@codesourcery.com>
16234
16235 * server.h (struct emit_ops): Add compare-goto fields.
16236 * tracepoint.c (gdb_agent_op_sizes): New table.
16237 (emit_eq_goto): New function.
16238 (emit_ne_goto): New function.
16239 (emit_lt_goto): New function.
16240 (emit_le_goto): New function.
16241 (emit_gt_goto): New function.
16242 (emit_ge_goto): New function.
16243 (is_goto_target): New function.
16244 (compile_bytecodes): Recognize special cases of compare-goto
16245 combinations and call specialized emitters for them.
16246 * linux-x86-low.c (amd64_emit_eq_goto): New function.
16247 (amd64_emit_ne_goto): New function.
16248 (amd64_emit_lt_goto): New function.
16249 (amd64_emit_le_goto): New function.
16250 (amd64_emit_gt_goto): New function.
16251 (amd64_emit_ge_goto): New function.
16252 (amd64_emit_ops): Add the new functions.
16253 (i386_emit_eq_goto): New function.
16254 (i386_emit_ne_goto): New function.
16255 (i386_emit_lt_goto): New function.
16256 (i386_emit_le_goto): New function.
16257 (i386_emit_gt_goto): New function.
16258 (i386_emit_ge_goto): New function.
16259 (i386_emit_ops): Add the new functions.
16260
162612011-09-08 Stan Shebs <stan@codesourcery.com>
16262
16263 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
16264 (i386_emit_epilogue): Restore %ebx.
16265
162662011-08-31 Jie Zhang <jzhang918@gmail.com>
16267
16268 * server.c (step_thread): Remove definition.
16269 (process_serial_event): Don't handle Hs.
16270 * server.h (step_thread): Remove declaration.
16271 * target.c (set_desired_inferior): Remove use of step_thread.
16272
162732011-08-24 Luis Machado <lgustavo@codesourcery.com>
16274
16275 * linux-low.c: Include linux-procfs.h.
16276 (linux_attach_lwp_1): Update comments.
16277 (linux_attach): Scan for existing threads when attaching to a
16278 process that is the tgid.
16279 * Makefile.in: Update dependencies.
16280
162812011-08-24 Luis Machado <lgustavo@codesourcery.com>
16282
16283 * configure.srv: Add linux-procfs.o dependencies.
16284
162852011-08-14 Yao Qi <yao@codesourcery.com>
16286
16287 * target.h (struct target_ops): Fix indent.
16288 * win32-low.c (win32_target_ops): Fix comment.
16289
162902011-08-14 Andrew Jenner <andrew@codesourcery.com>
16291 Yao Qi <yao@codesourcery.com>
16292
16293 * Makefile.in (clean): Remove tic6x-*.c files.
16294 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
16295 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
16296 (tic6x-c64xp-linux.c): Likewise.
16297 * configure.srv: Add support for tic6x-*-uclinux.
16298 * linux-tic6x-low.c: New.
16299 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
16300
163012011-08-14 Andrew Stubbs <ams@codesourcery.com>
16302 Yao Qi <yao@codesourcery.com>
16303
16304 * target.h (struct target_ops): Add read_loadmap.
16305 * linux-low.c (struct target_loadseg): New type.
16306 (struct target_loadmap): New type.
16307 (linux_read_loadmap): New function.
16308 (linux_target_ops): Add linux_read_loadmap.
16309 * server.c (handle_query): Support qXfer:fdpic:read packet.
16310 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
16311 to NULL.
16312
163132011-08-05 Eli Zaretskii <eliz@gnu.org>
16314
16315 * win32-low.c: Include <stdint.h>.
16316
163172011-07-22 Pedro Alves <pedro@codesourcery.com>
16318
16319 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
16320 to the inferior here.
16321 (i386_remove_aligned_watchpoint): Ditto.
16322 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
16323 fit part of the watchpoint in the debug registers.
16324 (i386_update_inferior_debug_regs): New.
16325 (i386_low_insert_watchpoint): Work on a local mirror of the debug
16326 registers, and only update the inferior on success.
16327 (i386_low_remove_watchpoint): Ditto.
16328
163292011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
16330
16331 * linux-low.c (compare_ints, unique, list_threads, show_process,
16332 linux_core_of_thread): Delete.
16333 (linux_target_ops): Change linux_core_of_thread to
16334 linux_common_core_of_thread.
16335 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
16336 * utils.c (malloc_failure): Change type of argument.
16337 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
16338 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
16339 common/linux-osdata.c, common/ptid.c and common/buffer.c.
16340 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
16341 (IPA_OBJS): Add common-utils-ipa.o.
16342 (ptid_h, linux_osdata_h): New macros.
16343 (server_h): Add common/common-utils.h, common/xml-utils.h,
16344 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
16345 common/ptid.h.
16346 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
16347 ptid.o, buffer.o): New rules.
16348 (linux-low.o): Add common/linux-osdata.h as a dependency.
16349 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
16350 * configure.ac: Add AC_HEADER_DIRENT check.
16351 * config.in: Regenerate.
16352 * configure: Regenerate.
16353 * remote-utils.c (xml_escape_text): Delete.
16354 (buffer_grow, buffer_free, buffer_init, buffer_finish,
16355 buffer_xml_printf): Move to common/buffer.c.
16356 * server.c (main): Remove call to initialize_inferiors.
16357 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
16358 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
16359 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
16360 internal_error, gdb_assert, gdb_assert_fail): Delete.
16361 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
16362 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
16363 common/buffer.h.
16364 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
16365 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
16366 initialize_inferiors): Delete.
16367
163682011-07-20 Pedro Alves <pedro@codesourcery.com>
16369
16370 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
16371 symbol error.
16372
163732011-05-31 Pedro Alves <pedro@codesourcery.com>
16374
16375 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
16376 assertion.
16377 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
16378
163792011-05-26 Yao Qi <yao@codesourcery.com>
16380
16381 * Makefile.in (thread-db.o): Track dependence to
16382 common/gdb_thread_db.h.
16383 * thread-db.c: include gdb_thread_db.h from right place.
16384
163852011-05-16 Adrian Cornish <gnu@bluedreamer.com>
16386
16387 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
16388 __FILE__ and __LINE__ to internal_error.
16389
163902011-05-13 Doug Evans <dje@google.com>
16391
16392 * thread-db.c (try_thread_db_load_from_sdir): New function.
16393 (try_thread_db_load_from_dir): New function.
16394 (thread_db_load_search): Handle $sdir, ignore $pdir.
16395 Remove trying of system directories if search of
16396 libthread-db-search-path fails, that is now done via $sdir.
16397
163982011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
16399
16400 * server.c (handle_query): Add EnableDisableTracepoints to the list
16401 of supported features.
16402 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
16403 tracepoints.
16404 (cmd_qtenable_disable): New.
16405 (cmd_qtstart): Install tracepoints even if disabled.
16406 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
16407 receiving a QTEnable or QTDisable packet.
16408 (gdb_collect): Skip data collection if fast tracepoint is disabled.
16409 (ust_marker_to_static_tracepoint): Do not ignore disabled static
16410 tracepoints.
16411 (gdb_probe): Skip data collection if static tracepoint is disabled.
16412
164132011-05-10 Doug Evans <dje@google.com>
16414
16415 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
16416
164172011-05-04 Doug Evans <dje@google.com>
16418
16419 * linux-low.c (linux_join): Skip process lookup.
16420 * spu-low.c (spu_join): Ditto.
16421 * server.c (join_inferiors_callback): Delete.
16422 (process_serial_event): For 'D' packet (detach) call join_inferior
16423 directly.
16424
164252011-05-04 Joseph Myers <joseph@codesourcery.com>
16426
16427 * README: Don't mention xscale*-*-linux*.
16428 * configure.srv (xscale*-*-linux*): Don't handle target.
16429
164302011-04-27 Nathan Froyd <froydnj@codesourcery.com>
16431
16432 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
16433 casting pointers.
16434 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
16435 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
16436 (i386_emit_void_call_2): Likewise.
16437
164382011-04-26 Yao Qi <yao@codesourcery.com>
16439
16440 * linux-low.c: Move common macros to linux-ptrace.h.
16441 Include linux-ptrace.h.
16442 * Makefile.in (linux_ptrace_h): New.
16443 (linux-low.o): Depends on linux-ptrace.h.
16444
164452011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
16446
16447 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
16448 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
16449 (remote_prepare): New function with most of the TCP code from ...
16450 (remote_open): ... here. Detect PORT here unconditionally. Move also
16451 setting transport_is_reliable.
16452 * server.c (run_once): New variable.
16453 (gdbserver_usage): Document it.
16454 (main): Set run_once for `--once'. Call remote_prepare. Exit after
16455 the first run if RUN_ONCE.
16456 * server.h (run_once, remote_prepare): New declarations.
16457
164582011-04-19 Tom Tromey <tromey@redhat.com>
16459
16460 * win32-low.c (handle_load_dll): Remove duplicate "the".
16461
164622011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
16463
16464 Remove support for old Cygwin 1.5 versions.
16465 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
16466 function to avoid warning.
16467 (win32_add_one_solib): Use cygwin_conv_path function to avoid
16468 warning.
16469
164702011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
16471
16472 * gdbserver/server.h (Macro _): Define it if not available.
16473
164742011-03-14 Michael Snyder <msnyder@vmware.com>
16475
16476 * hostio.c (handle_close): Remove unnecessary null test.
16477
164782011-03-10 Joel Brobecker <brobecker@adacore.com>
16479
16480 * Makefile.in (maintainer-clean realclean distclean): Remove
16481 "make ... subdir_do" command.
16482
164832011-03-10 Michael Snyder <msnyder@vmware.com>
16484
16485 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
16486
16487 * server.c (handle_v_run): Free alloced buffer on early return.
16488
164892011-03-09 Yao Qi <yao@codesourcery.com>
16490
16491 Revert:
16492 2011-03-04 Yao Qi <yao@codesourcery.com>
16493
16494 * Makefile.in: Remove GNU make feature --directory.
16495
16496 2011-03-05 Yao Qi <yao@codesourcery.com>
16497
16498 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16499 (subdir_do): New make target. Copied from gdb/Makefile.
16500 (maintainer-clean, realclean, distclean, clean): Call corresponding
16501 make targets in common/Makefile.
16502
16503 2011-02-11 Yao Qi <yao@codesourcery.com>
16504
16505 * configure.ac: Call AC_PROG_RANLIB.
16506 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16507 * configure: Regenerate.
16508
165092011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
16510
16511 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
16512
165132011-03-06 Yao Qi <yao@codesourcery.com>
16514
16515 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
16516
165172011-03-05 Yao Qi <yao@codesourcery.com>
16518
16519 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16520 (subdir_do): New make target. Copied from gdb/Makefile.
16521 (maintainer-clean, realclean, distclean, clean): Call corresponding
16522 make targets in common/Makefile.
16523
165242011-03-04 Yao Qi <yao@codesourcery.com>
16525
16526 * Makefile.in: Remove GNU make feature --directory.
16527
165282011-03-04 Michael Snyder <msnyder@vmware.com>
16529
16530 * server.c (queue_stop_reply): Call xmalloc not malloc.
16531
165322011-03-02 Michael Snyder <msnyder@vmware.com>
16533
16534 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
16535
165362011-02-28 Michael Snyder <msnyder@vmware.com>
16537
16538 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
16539 (cmd_qtframe): Ditto.
16540 (cmd_qtbuffer): Ditto.
16541 (cmd_bigqtbuffer): Ditto.
16542
16543 * utils.c (decimal2str): Initialize 'width' to nine, then
16544 don't mess with it.
16545
165462011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
16547
16548 * hostio.c (require_data): Free *data, not data.
16549
165502011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
16551
16552 * hostio.c (require_data): Use free, not xfree.
16553
165542011-02-27 Michael Snyder <msnyder@vmware.com>
16555
16556 * server.c (handle_query): Discard unused value.
16557
16558 * hostio.c (require_data): Free malloc memory before returning
16559 error.
16560
165612011-02-26 Michael Snyder <msnyder@vmware.com>
16562
16563 * linux-low.c (list_threads): Call closedir for dirent.
16564
165652011-02-27 Michael Snyder <msnyder@vmware.com>
16566
16567 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
16568 a case statement falls through.
16569
16570 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
16571
16572 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
16573 in comparison.
16574
165752011-02-26 Michael Snyder <msnyder@vmware.com>
16576
16577 * utils.c (decimal2str): Eliminate dead code and dead param.
16578 (pulongest): Drop dead param from call to decimal2str.
16579 (plongest): Ditto.
16580
165812011-02-24 Joel Brobecker <brobecker@adacore.com>
16582
16583 Revert the following patch (not approved yet):
16584 2011-02-21 Hui Zhu <teawater@gmail.com>
16585 * tracepoint.c (tp_printf): New function.
16586 (eval_agent_expr): Handle gdb_agent_op_printf.
16587
165882011-02-21 Hui Zhu <teawater@gmail.com>
16589
16590 * tracepoint.c (tp_printf): New function.
16591 (eval_agent_expr): Handle gdb_agent_op_printf.
16592
165932011-02-18 Tom Tromey <tromey@redhat.com>
16594
16595 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
16596 (tracepoint.o): Likewise.
16597 * tracepoint.c (enum gdb_agent_op): Use ax.def.
16598 (gdb_agent_op_names): Likewise.
16599
166002011-02-18 Tom Tromey <tromey@redhat.com>
16601
16602 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
16603 gdb_agent_op_rot>: New constants.
16604 (gdb_agent_op_names): Add pick and roll.
16605 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
16606 cases.
16607
166082011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
16609
16610 * aclocal.m4: Regenerated with aclocal-1.11.1.
16611
166122011-02-14 Pedro Alves <pedro@codesourcery.com>
16613
16614 * server.c (handle_qxfer_traceframe_info): New.
16615 (qxfer_packets): Register "traceframe-info".
16616 (handle_query): Report support for qXfer:traceframe-info:read+.
16617 * tracepoint.c (match_blocktype): New.
16618 (traceframe_find_block_type): Rename to ...
16619 (traceframe_walk_blocks): ... this. Add callback filter argument,
16620 and use it.
16621 (traceframe_find_block_type): New, reimplemented on top of
16622 traceframe_walk_blocks.
16623 (build_traceframe_info_xml): New.
16624 (traceframe_read_info): New.
16625 * server.h (traceframe_read_info): Declare.
16626
166272011-02-11 Yao Qi <yao@codesourcery.com>
16628
16629 * configure.ac: Call AC_PROG_RANLIB.
16630 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16631 * configure: Regenerate.
16632
166332011-02-07 Pedro Alves <pedro@codesourcery.com>
16634
16635 * server.c (gdb_read_memory): Change return semantics to allow
16636 partial transfers.
16637 (handle_search_memory_1): Adjust.
16638 (process_serial_event) <'m' packet>: Handle partial transfers.
16639 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
16640
166412011-01-28 Pedro Alves <pedro@codesourcery.com>
16642
16643 * regcache.c (init_register_cache): Initialize
16644 regcache->register_status.
16645 (free_register_cache): Release regcache->register_status.
16646 (regcache_cpy): Copy register_status.
16647 (registers_to_string): Print 'x's for unavailable registers.
16648 (supply_register): Mark the register's status valid or
16649 unavailable, depending on whether a buffer was passed in or not.
16650 (supply_register_zeroed): New.
16651 (supply_regblock): Mark the registers' status valid or
16652 unavailable, depending on whether a buffer was passed in or not.
16653 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
16654 (struct regcache): New `register_status' field.
16655 (supply_register_zeroed): Declare.
16656 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
16657 supply_register_zeroed, rather than passing a NULL buffer to
16658 supply_register.
16659 * tracepoint.c (fetch_traceframe_registers): Update comment.
16660
166612011-01-28 Pedro Alves <pedro@codesourcery.com>
16662
16663 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
16664 buffer explicit.
16665
166662011-01-25 Pedro Alves <pedro@codesourcery.com>
16667
16668 * server.h (decode_xfer_write): Change prototype.
16669 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
16670 and don't extract the annex here.
16671 * server.c (decode_xfer_read): Remove `annex' parameter,
16672 and don't extract the annex here.
16673 (decode_xfer): New.
16674 (struct qxfer): New.
16675 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
16676 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
16677 (handle_qxfer_statictrace): New functions, abstracted out from
16678 handle_query, and made to use the struct qxfer interface.
16679 (handle_threads_qxfer_proper): Rename to ...
16680 (handle_qxfer_threads_proper): ... this.
16681 (handle_threads_qxfer): Rename to ...
16682 (handle_qxfer_threads): ... this. Adjust.
16683 (qxfer_packets): New array.
16684 (handle_qxfer): New function.
16685 (handle_query): Use handle_qxfer.
16686
166872011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
16688
16689 * gdbreplay.c: Shorten lines of >= 80 columns.
16690 * linux-low.c: Ditto.
16691 * linux-ppc-low.c: Ditto.
16692 * linux-s390-low.c: Ditto.
16693 * linux-sparc-low.c: Ditto.
16694 * linux-x86-low.c: Ditto.
16695 * linux-xtensa-low.c: Ditto.
16696 * mem-break.c: Ditto.
16697 * nto-low.c: Ditto.
16698 * regcache.h: Ditto.
16699 * remote-utils.c: Ditto.
16700 * server.c: Ditto.
16701 * server.h: Ditto.
16702 * thread-db.c: Ditto.
16703 * tracepoint.c: Ditto.
16704 * utils.c: Ditto.
16705 * win32-low.h: Ditto.
16706
167072011-01-05 Joel Brobecker <brobecker@adacore.com>
16708
16709 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
16710 update.
16711
167122011-01-01 Joel Brobecker <brobecker@adacore.com>
16713
16714 * server.c (gdbserver_version): Update copyright year in version
16715 output.
16716 * gdbreplay.c (gdbreplay_version): Ditto.
16717
167182010-12-29 Jie Zhang <jie.zhang@analog.com>
16719
16720 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
16721 * linux-bfin-low.c: New file.
16722 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
16723 PT_DATA_ADDR for BFIN targets.
16724 * Makefile.in (SFILES): Add linux-bfin-low.c.
16725 (clean): Remove reg-bfin.c.
16726 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
16727 * README: Mention supported Blackfin targets.
16728
167292010-12-23 Mike Frysinger <vapier@gentoo.org>
16730
16731 * .gitignore: New file.
16732
167332010-11-16 Mike Frysinger <vapier@gentoo.org>
16734
16735 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
16736
167372010-10-22 Jie Zhang <jie@codesourcery.com>
16738
16739 * Makefile.in: Add FLAGS_TO_PASS variable.
16740 (install): Remove dependency of install-only and recursively
16741 invoke make for install-only.
16742
167432010-10-04 Doug Evans <dje@google.com>
16744
16745 * Makefile.in (uninstall): Use $(DESTDIR).
16746
167472010-09-24 Pedro Alves <pedro@codesourcery.com>
16748
16749 PR gdb/11842
16750
16751 * linux-x86-low.c (compat_siginfo_from_siginfo)
16752 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
16753 si_code is < 0. Check for si_code == SI_TIMER before checking for
16754 si_code < 0.
16755
167562010-09-13 Joel Brobecker <brobecker@adacore.com>
16757
16758 * lynx-i386-low.c: New file.
16759 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
16760
167612010-09-13 Joel Brobecker <brobecker@adacore.com>
16762
16763 * lynx-low.c (ptrace_request_to_str): Remove handling for
16764 request values that have been removed in LynxOS 5.x.
16765
167662010-09-13 Joel Brobecker <brobecker@adacore.com>
16767
16768 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
16769 <ptrace.h>
16770
167712010-09-09 Nathan Sidwell <nathan@codesourcery.com>
16772
16773 * configure.ac: Add --enable-inprocess-agent option.
16774 * configure: Rebuilt.
16775
167762010-09-06 Yao Qi <yao@codesourcery.com>
16777
16778 * linux-low.c (linux_kill): Remove unused variable.
16779 (linux_stabilize_threads): Likewise.
16780 * server.c (start_inferior): Likewise.
16781 (queue_stop_reply_callback): Likewise.
16782 * tracepoint.c (do_action_at_tracepoint): Likewise.
16783
167842010-09-06 Yao Qi <yao@codesourcery.com>
16785
16786 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
16787 on return.
16788
167892010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
16790
16791 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
16792
167932010-09-06 Pedro Alves <pedro@codesourcery.com>
16794
16795 * Makefile.in (install-only): Replace $IPA_DEPFILES with
16796 "$(IPA_DEPFILES)".
16797
167982010-09-01 Joel Brobecker <brobecker@adacore.com>
16799
16800 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
16801 gdbserver/lynx-ppc-low.c: New files.
16802 * Makefile.in (lynx_low_h): New variable.
16803 (lynx-low.o, lynx-ppc-low.o): New rules.
16804 * configure.ac: On LynxOS, link with -lnetinet.
16805 * configure.srv: Add handling of powerpc-*-lynxos* targets.
16806 * configure: regenerate.
16807
168082010-09-01 Joel Brobecker <brobecker@adacore.com>
16809
16810 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
16811 * configure.ac: Add check for vasprintf and vsnprintf.
16812 * configure, config.in: Regenerate.
16813 * server.h (vasprintf, vsnprintf): Add conditional declarations.
16814
168152010-09-01 Joel Brobecker <brobecker@adacore.com>
16816
16817 * gdbreplay.c: Move include of alloca.h up, next to include of
16818 malloc.h.
16819 * server.h: Add include of malloc.h.
16820 * mem-break.c: Remove include of malloc.h.
16821 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
16822
168232010-09-01 Joel Brobecker <brobecker@adacore.com>
16824
16825 * Makefile.in (memmem.o): Build with -Wno-error.
16826
168272010-09-01 Joel Brobecker <brobecker@adacore.com>
16828
16829 * utils.c (xsnprintf): Make non-static.
16830 * server.h: Add xsnprintf declaration.
16831 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
16832 replace calls to snprintf by calls to xsnprintf throughout.
16833
168342010-09-01 Joel Brobecker <brobecker@adacore.com>
16835
16836 * configure.ac: Add configure check for alloca.
16837 * configure, config.in: Regenerate.
16838 * server.h: Include alloca.h if it exists.
16839 * gdbreplay.c: Include alloca.h if it exists.
16840
168412010-08-28 Pedro Alves <pedro@codesourcery.com>
16842
16843 * linux-low.c (__SIGRTMIN): Define if not already defined.
16844 (linux_create_inferior): Check for __ANDROID__ rather than
16845 __SIGRTMIN.
16846 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
16847 are already deferred.
16848 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
16849 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
16850 stopped and already has a pending signal to report.
16851 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
16852 a pending signal to report or is moving out of a jump pad.
16853 (linux_init_signals): Check for __ANDROID__ rather than
16854 __SIGRTMIN.
16855
168562010-08-28 Pedro Alves <pedro@codesourcery.com>
16857
16858 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
16859 debug_threads check. Avoid a linear search when not doing debug
16860 output.
16861
168622010-08-27 Pedro Alves <pedro@codesourcery.com>
16863
16864 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
16865 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
16866 (struct file_handler) <fd>: Change type to gdb_fildes_t.
16867 (process_event): Change local fd's type to gdb_fildes_t.
16868 (create_file_handler): Adjust prototype.
16869 (delete_file_handler): Adjust prototype.
16870 (handle_file_event): Adjust prototype. Use pfildes.
16871 (create_file_event): Adjsut prototype.
16872 * remote-utils.c (remote_desc, listen_desc): Change type to
16873 gdb_fildes_t.
16874 * server.h: New gdb_fildes_t typedef.
16875 [USE_WIN32API]: Include winsock2.h.
16876 (delete_file_handler, add_file_handler): Adjust prototypes.
16877 (pfildes): Declare.
16878 * utils.c (pfildes): New.
16879
168802010-08-27 Pedro Alves <pedro@codesourcery.com>
16881
16882 * configure.ac (build_warnings): Add -Wno-char-subscripts.
16883 * configure: Regenerate.
16884
168852010-08-27 Pedro Alves <pedro@codesourcery.com>
16886
16887 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
16888 (linux_done_accessing_memory): ... this.
16889 (linux_target_ops): Adjust.
16890 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
16891 * nto-low.c (nto_target_ops): Adjust comment.
16892 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
16893 * spu-low.c (spu_target_ops): Adjust comment.
16894 * target.h (target_ops): Rename unprepare_to_access_memory field
16895 to done_accessing_memory.
16896 (unprepare_to_access_memory): Rename to ...
16897 (done_accessing_memory): ... this.
16898
168992010-08-26 Pedro Alves <pedro@codesourcery.com>
16900
16901 * linux-low.c (linux_prepare_to_access_memory): New.
16902 (linux_unprepare_to_access_memory): New.
16903 (linux_target_ops): Install them.
16904 * server.c (read_memory): Rename to ...
16905 (gdb_read_memory): ... this. Use
16906 prepare_to_access_memory/prepare_to_access_memory.
16907 (write_memory): Rename to ...
16908 (gdb_write_memory): ... this. Use
16909 prepare_to_access_memory/prepare_to_access_memory.
16910 (handle_search_memory_1): Adjust.
16911 (process_serial_event): Adjust.
16912 * target.h (struct target_ops): New fields
16913 prepare_to_access_memory and unprepare_to_access_memory.
16914 (prepare_to_access_memory, unprepare_to_access_memory): New.
16915 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
16916 prepare_to_access_memory/prepare_to_access_memory.
16917 * nto-low.c (nto_target_ops): Adjust.
16918 * spu-low.c (spu_target_ops): Adjust.
16919 * win32-low.c (win32_target_ops): Adjust.
16920
169212010-08-26 Pedro Alves <pedro@codesourcery.com>
16922
16923 * Makefile.in (WARN_CFLAGS): Get it from configure.
16924 (WERROR_CFLAGS): New.
16925 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
16926 * configure.ac: Introduce --enable-werror, which adds -Werror to
16927 the compiler command line. Enabled by default. Disable with
16928 --disable-werror. Add -Wdeclaration-after-statement
16929 Wpointer-arith and -Wformat-nonliteral to warning flags.
16930 * configure: Regenerate.
16931
169322010-08-26 Pedro Alves <pedro@codesourcery.com>
16933
16934 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
16935
169362010-08-26 Pedro Alves <pedro@codesourcery.com>
16937
16938 * gdbreplay.c (remote_error): New.
16939 (gdbchar): New.
16940 (expect): Use gdbchar. Check for error reading from GDB.
16941 Clarify sync error output.
16942 (play): Check for errors writing to GDB.
16943 * linux-low.c (sigchld_handler): Really ignore `write' errors.
16944 * remote-utils.c (getpkt): Check for errors writing to the remote
16945 descriptor.
16946
169472010-08-25 Pedro Alves <pedro@codesourcery.com>
16948
16949 * linux-low.c (linux_wait_1): Move non-debugging code out of
16950 `debug_threads' control.
16951
169522010-08-25 Pedro Alves <pedro@codesourcery.com>
16953
16954 * linux-low.c (linux_wait_1): Don't set last_status here.
16955 * server.c (push_event, queue_stop_reply_callback): Assert we're
16956 not pushing a TARGET_WAITKIND_IGNORE event.
16957 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
16958 (myresume, handle_target_event): Set the thread's last_resume_kind
16959 and last_status from the target returned status.
16960
169612010-08-25 Pedro Alves <pedro@codesourcery.com>
16962
16963 PR threads/10729
16964
16965 * linux-x86-low.c (update_debug_registers_callback): New.
16966 (i386_dr_low_set_addr): Use it.
16967 (i386_dr_low_get_addr): New.
16968 (i386_dr_low_set_control): Use update_debug_registers_callback.
16969 (i386_dr_low_get_control): New.
16970 (i386_dr_low_get_status): Adjust.
16971 * linux-low.c (linux_stop_lwp): New.
16972 * linux-low.h (linux_stop_lwp): Declare.
16973
16974 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
16975 argument instead of a i386_debug_reg_state.
16976 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
16977 a i386_debug_reg_state.
16978 (i386_insert_aligned_watchpoint): Adjust.
16979 (i386_remove_aligned_watchpoint): Adjust.
16980 (i386_low_stopped_data_address): Read the debug registers from the
16981 inferior instead of from the mirrors.
16982 * i386-low.h (struct i386_debug_reg_state): Extend comment.
16983 (i386_dr_low_get_addr): Declare.
16984 (i386_dr_low_get_control): Declare.
16985 (i386_dr_low_get_status): Change prototype.
16986
16987 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
16988 (i386_dr_low_get_addr): New.
16989 (i386_dr_low_get_control): New.
16990 (i386_dr_low_get_status): Adjust prototype. Return
16991 dr_status_mirror.
16992 (i386_initial_stuff): Clear dr_status_mirror and
16993 dr_control_mirror.
16994 (i386_get_thread_context): Adjust.
16995 (i386_set_thread_context): Adjust.
16996 (i386_thread_added): Adjust.
16997
169982010-08-24 Pedro Alves <pedro@codesourcery.com>
16999
17000 * linux-low.h (linux_thread_area): Delete declaration.
17001
170022010-08-11 Thomas Schwinge <thomas@codesourcery.com>
17003
17004 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
17005 after its termination.
17006
170072010-08-09 Pedro Alves <pedro@codesourcery.com>
17008
17009 * linux-low.c (gdb_wants_lwp_stopped): Delete.
17010 (gdb_wants_all_stopped): Delete.
17011 (linux_wait_1): Don't call them.
17012 * server.c (handle_v_cont): Tag all threads as want-stopped.
17013 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
17014 stopped as "client-wants-stopped".
17015
170162010-07-31 Pedro Alves <pedro@codesourcery.com>
17017
17018 * Makefile.in (signals_h): New.
17019 (server_h): Depend on it.
17020 (server.o): Don't depend on $(signals_def).
17021 (signals.o): Depend on $(signals_def).
17022
170232010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
17024
17025 * Makefile.in (signals_def): New.
17026 (server_h): Append include/gdb/signals.h and signals_def.
17027 (server.o): Append signals_def.
17028
170292010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
17030
17031 * server.c (handle_target_event): Use target_signal_to_host for
17032 resume_info.sig initialization.
17033 * target.h (struct thread_resume) <sig>: New comment.
17034
170352010-07-20 Ozkan Sezer <sezeroz@gmail.com>
17036
17037 * server.c (handle_query): strcpy() the returned string from paddress()
17038 instead of sprintf().
17039 * utils.c (paddress): Return phex_nz().
17040
170412010-07-07 Joel Brobecker <brobecker@adacore.com>
17042
17043 * server.c (handle_v_cont): Call mourn_inferior if process
17044 just exited.
17045 (myresume): Likewise.
17046
170472010-07-01 Pedro Alves <pedro@codesourcery.com>
17048
17049 Static tracepoints, and integration with UST.
17050
17051 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
17052 * mem-break.c (uninsert_all_breakpoints)
17053 (reinsert_all_breakpoints): New.
17054 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
17055 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
17056 (gdb_agent_ust_loaded, helper_thread_id)
17057 (gdb_agent_helper_thread_id): New macros.
17058 (struct ipa_sym_addresses): Add addr_ust_loaded,
17059 addr_helper_thread_id, addr_cmd_buf.
17060 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
17061 (in_process_agent_loaded_ust): New.
17062 (write_e_ust_not_loaded): New.
17063 (maybe_write_ipa_ust_not_loaded): New.
17064 (struct collect_static_trace_data_action): New.
17065 (enum tracepoint_type) <static_tracepoint>: New.
17066 (struct tracepoint) <handle>: Mention static tracepoints.
17067 (struct static_tracepoint_ctx): New.
17068 (CMD_BUF_SIZE): New.
17069 (add_tracepoint_action): Handle static tracepoint actions.
17070 (unprobe_marker_at): New.
17071 (clear_installed_tracepoints): Handle static tracepoints.
17072 (cmd_qtdp): Handle static tracepoints.
17073 (probe_marker_at): New.
17074 (cmd_qtstart): Handle static tracepoints.
17075 (response_tracepoint): Handle static tracepoints.
17076 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
17077 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
17078 (get_context_regcache): Handle static tracepoints.
17079 (do_action_at_tracepoint): Handle static tracepoint actions.
17080 (traceframe_find_block_type): Handle static trace data blocks.
17081 (traceframe_read_sdata): New.
17082 (download_tracepoints): Download static tracepoint actions.
17083 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
17084 (GDB_PROBE_NAME): New.
17085 (ust_ops): New.
17086 (GET_UST_SYM): New.
17087 (USTF): New.
17088 (dlsym_ust): New.
17089 (ust_marker_to_static_tracepoint): New.
17090 (gdb_probe): New.
17091 (collect_ust_data_at_tracepoint): New.
17092 (gdb_ust_probe): New.
17093 (UNIX_PATH_MAX, SOCK_DIR): New.
17094 (gdb_ust_connect_sync_socket): New.
17095 (resume_thread, stop_thread): New.
17096 (run_inferior_command): New.
17097 (init_named_socket): New.
17098 (gdb_ust_socket_init): New.
17099 (cstr_to_hexstr): New.
17100 (next_st): New.
17101 (first_marker, next_marker): New.
17102 (response_ust_marker): New.
17103 (cmd_qtfstm, cmd_qtsstm): New.
17104 (unprobe_marker_at, probe_marker_at): New.
17105 (cmd_qtstmat, gdb_ust_thread): New.
17106 (gdb_ust_init): New.
17107 (initialize_tracepoint_ftlib): Call gdb_ust_init.
17108 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
17109 (ST_REGENTRY): New.
17110 (x86_64_st_collect_regmap): New.
17111 (X86_64_NUM_ST_COLLECT_GREGS): New.
17112 (AMD64_RIP_REGNUM): New.
17113 (supply_static_tracepoint_registers): New.
17114 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
17115 (ST_REGENTRY): New.
17116 (i386_st_collect_regmap): New.
17117 (i386_NUM_ST_COLLECT_GREGS): New.
17118 (supply_static_tracepoint_registers): New.
17119 * server.c (handle_query): Handle qXfer:statictrace:read.
17120 <qSupported>: Report support for StaticTracepoints, and
17121 qXfer:statictrace:read features.
17122 * server.h (traceframe_read_sdata)
17123 (supply_static_tracepoint_registers): Declare.
17124 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
17125 (unpack_varlen_hex): Include in IPA build.
17126 * Makefile.in (ustlibs, ustinc): New.
17127 (IPA_OBJS): Add remote-utils-ipa.o.
17128 ($(IPA_LIB)): Link -ldl and -lpthread.
17129 (UST_CFLAGS): New.
17130 (IPAGENT_CFLAGS): Add UST_CFLAGS.
17131 * config.in, configure: Regenerate.
17132
171332010-06-20 Ian Lance Taylor <iant@google.com>
17134 Pedro Alves <pedro@codesourcery.com>
17135
17136 * linux-x86-low.c (always_true): Delete.
17137 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
17138 trying to fool the compiler with always_true.
17139
171402010-06-20 Pedro Alves <pedro@codesourcery.com>
17141
17142 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
17143 conditions in gdbserver.
17144
171452010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
17146
17147 * spu-low.c (spu_read_memory): Wrap around local store limit.
17148 (spu_write_memory): Likewise.
17149
171502010-06-15 Pedro Alves <pedro@codesourcery.com>
17151
17152 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
17153 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
17154 LONGEST uses.
17155 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
17156 uses.
17157 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
17158 uses with LONGEST uses.
17159
171602010-06-14 Stan Shebs <stan@codesourcery.com>
17161 Pedro Alves <pedro@codesourcery.com>
17162
17163 Bytecode compiler.
17164
17165 * linux-x86-low.c: Include limits.h.
17166 (add_insns): New.
17167 (always_true): New.
17168 (EMIT_ASM): New.
17169 (EMIT_ASM32): New.
17170 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
17171 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
17172 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
17173 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
17174 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
17175 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
17176 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
17177 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
17178 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
17179 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
17180 (amd64_emit_void_call_2): New.
17181 (amd64_emit_ops): New.
17182 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
17183 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
17184 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
17185 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
17186 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
17187 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
17188 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
17189 (i386_emit_call, i386_emit_reg, i386_emit_pop)
17190 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
17191 (i386_emit_stack_adjust, i386_emit_int_call_1)
17192 (i386_emit_void_call_2): New.
17193 (i386_emit_ops): New.
17194 (x86_emit_ops): New.
17195 (the_low_target): Install x86_emit_ops.
17196 * server.h (struct emit_ops): New.
17197 (get_raw_reg_func_addr): Declare.
17198 (current_insn_ptr, emit_error): Declare.
17199 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
17200 (set_trace_state_variable_value): New defines.
17201 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
17202 addr_get_trace_state_variable_value and
17203 addr_set_trace_state_variable_value.
17204 (symbol_list): New fields for get_raw_reg,
17205 get_trace_state_variable_value and set_trace_state_variable_value.
17206 (condfn): New typedef.
17207 (struct tracepoint): New field `compiled_cond'.
17208 (do_action_at_tracepoint): Clear compiled_cond.
17209 (get_trace_state_variable_value, set_trace_state_variable_value):
17210 Export in the IPA.
17211 (condition_true_at_tracepoint): If there's a compiled condition,
17212 run that.
17213 (current_insn_ptr, emit_error): New globals.
17214 (struct bytecode_address): New.
17215 (get_raw_reg_func_addr): New.
17216 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
17217 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
17218 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
17219 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
17220 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
17221 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
17222 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
17223 (compile_tracepoint_condition, compile_bytecodes): New.
17224 * target.h (emit_ops): Forward declare.
17225 (struct target_ops): New field emit_ops.
17226 (target_emit_ops): New.
17227 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
17228 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
17229 * linux-low.c (linux_emit_ops): New.
17230 (linux_target_ops): Install it.
17231 * linux-low.h (struct linux_target_ops): New field emit_ops.
17232
172332010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
17234
17235 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
17236 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
17237
172382010-06-01 Pedro Alves <pedro@codesourcery.com>
17239 Stan Shebs <stan@codesourcery.com>
17240
17241 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
17242 (all): Depend on $(extra_libraries).
17243 (install-only): Install the IPA.
17244 (IPA_OBJS, IPA_LIB): New.
17245 (clean): Remove the IPA lib.
17246 (IPAGENT_CFLAGS): New.
17247 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
17248 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
17249 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
17250 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
17251 * configure.ac: Check for atomic builtins support in the compiler.
17252 (IPA_DEPFILES, extra_libraries): Define.
17253 * configure.srv (ipa_obj): Add description.
17254 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
17255 (i[34567]86-*-linux*): Set ipa_obj.
17256 (x86_64-*-linux*): Set ipa_obj.
17257 * linux-low.c (stabilizing_threads): New.
17258 (supports_fast_tracepoints): New.
17259 (linux_detach): Stabilize threads before detaching.
17260 (handle_tracepoints): Handle internal tracing breakpoints. Assert
17261 the lwp is either not stabilizing, or is moving out of a jump pad.
17262 (linux_fast_tracepoint_collecting): New.
17263 (maybe_move_out_of_jump_pad): New.
17264 (enqueue_one_deferred_signal): New.
17265 (dequeue_one_deferred_signal): New.
17266 (linux_wait_for_event_1): If moving out of a jump pad, defer
17267 pending signals to later.
17268 (linux_stabilize_threads): New.
17269 (linux_wait_1): Check if threads need moving out of jump pads, and
17270 do it if so.
17271 (stuck_in_jump_pad_callback): New.
17272 (move_out_of_jump_pad_callback): New.
17273 (lwp_running): New.
17274 (linux_resume_one_lwp): Handle moving out of jump pads.
17275 (linux_set_resume_request): Dequeue deferred signals.
17276 (need_step_over_p): Also step over fast tracepoint jumps.
17277 (start_step_over): Also uninsert fast tracepoint jumps.
17278 (finish_step_over): Also reinsert fast tracepoint jumps.
17279 (linux_install_fast_tracepoint_jump): New.
17280 (linux_target_ops): Install linux_stabilize_threads and
17281 linux_install_fast_tracepoint_jump_pad.
17282 * linux-low.h (linux_target_ops) <get_thread_area,
17283 install_fast_tracepoint_jump_pad>: New fields.
17284 (struct lwp_info) <collecting_fast_tracepoint,
17285 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
17286 (linux_get_thread_area): Declare.
17287 * linux-x86-low.c (jump_insn): New.
17288 (x86_get_thread_area): New.
17289 (append_insns): New.
17290 (push_opcode): New.
17291 (amd64_install_fast_tracepoint_jump_pad): New.
17292 (i386_install_fast_tracepoint_jump_pad): New.
17293 (x86_install_fast_tracepoint_jump_pad): New.
17294 (the_low_target): Install x86_get_thread_area and
17295 x86_install_fast_tracepoint_jump_pad.
17296 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
17297 (struct fast_tracepoint_jump): New.
17298 (fast_tracepoint_jump_insn): New.
17299 (fast_tracepoint_jump_shadow): New.
17300 (find_fast_tracepoint_jump_at): New.
17301 (fast_tracepoint_jump_here): New.
17302 (delete_fast_tracepoint_jump): New.
17303 (set_fast_tracepoint_jump): New.
17304 (uninsert_fast_tracepoint_jumps_at): New.
17305 (reinsert_fast_tracepoint_jumps_at): New.
17306 (set_breakpoint_at): Use write_inferior_memory.
17307 (uninsert_raw_breakpoint): Use write_inferior_memory.
17308 (check_mem_read): Mask out fast tracepoint jumps.
17309 (check_mem_write): Mask out fast tracepoint jumps.
17310 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
17311 (set_fast_tracepoint_jump): Declare.
17312 (delete_fast_tracepoint_jump)
17313 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
17314 (reinsert_fast_tracepoint_jumps_at): Declare.
17315 * regcache.c: Don't compile many functions when building the
17316 in-process agent library.
17317 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
17318 the register buffer in the heap.
17319 (free_register_cache): If the register buffer isn't owned by the
17320 regcache, don't free it.
17321 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
17322 pre-existing register caches.
17323 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
17324 type.
17325 (convert_ascii_to_int): : Constify `from' parameter type.
17326 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
17327 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
17328 the needed buffer in-place.
17329 (relocate_instruction): New.
17330 * server.c (handle_query) <qSymbols>: If the target supports
17331 tracepoints, give it a chance of looking up symbols. Report
17332 support for fast tracepoints.
17333 (handle_status): Stabilize threads.
17334 (process_serial_event): Adjust.
17335 * server.h (struct fast_tracepoint_jump): Forward declare.
17336 (struct process_info) <fast_tracepoint_jumps>: New field.
17337 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
17338 (decode_X_packet, decode_M_packet): Adjust.
17339 (relocate_instruction): Declare.
17340 (in_process_agent_loaded): Declare.
17341 (tracepoint_look_up_symbols): Declare.
17342 (struct fast_tpoint_collect_status): Declare.
17343 (fast_tracepoint_collecting): Declare.
17344 (force_unlock_trace_buffer): Declare.
17345 (handle_tracepoint_bkpts): Declare.
17346 (initialize_low_tracepoint)
17347 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
17348 * target.h (struct target_ops) <stabilize_threads,
17349 install_fast_tracepoint_jump_pad>: New fields.
17350 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
17351 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
17352 [HAVE_STDINT_H]: Include stdint.h.
17353 (trace_debug_1): Rename to ...
17354 (trace_vdebug): ... this.
17355 (trace_debug): Rename to ...
17356 (trace_debug_1): ... this. Add `level' parameter.
17357 (trace_debug): New.
17358 (ATTR_USED, ATTR_NOINLINE): New.
17359 (IP_AGENT_EXPORT): New.
17360 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
17361 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
17362 (about_to_request_buffer_space, trace_buffer_is_full)
17363 (stopping_tracepoint, expr_eval_result, error_tracepoint)
17364 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
17365 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
17366 (traceframe_write_count, traceframes_created)
17367 (trace_state_variables)
17368 New renaming defines.
17369 (struct ipa_sym_addresses): New.
17370 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
17371 (symbol_list): New.
17372 (ipa_sym_addrs): New.
17373 (all_tracepoint_symbols_looked_up): New.
17374 (in_process_agent_loaded): New.
17375 (write_e_ipa_not_loaded): New.
17376 (maybe_write_ipa_not_loaded): New.
17377 (tracepoint_look_up_symbols): New.
17378 (debug_threads) [IN_PROCESS_AGENT]: New.
17379 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
17380 (UNKNOWN_SIDE_EFFECTS): New.
17381 (stop_tracing): New.
17382 (flush_trace_buffer): New.
17383 (stop_tracing_bkpt): New.
17384 (flush_trace_buffer_bkpt): New.
17385 (read_inferior_integer): New.
17386 (read_inferior_uinteger): New.
17387 (read_inferior_data_pointer): New.
17388 (write_inferior_data_pointer): New.
17389 (write_inferior_integer): New.
17390 (write_inferior_uinteger): New.
17391 (struct collect_static_trace_data_action): Delete.
17392 (enum tracepoint_type): New.
17393 (struct tracepoint) <type>: New field `type'.
17394 <actions_str, step_actions, step_actions_str>: Only include in
17395 GDBserver.
17396 <orig_size, obj_addr_on_target, adjusted_insn_addr>
17397 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
17398 (tracepoints): Use IP_AGENT_EXPORT.
17399 (last_tracepoint): Don't include in the IPA.
17400 (stopping_tracepoint): Use IP_AGENT_EXPORT.
17401 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
17402 (alloced_trace_state_variables): New.
17403 (trace_state_variables): Use IP_AGENT_EXPORT.
17404 (traceframe_t): Delete unused variable.
17405 (circular_trace_buffer): Don't include in the IPA.
17406 (trace_buffer_start): Delete.
17407 (struct trace_buffer_control): New.
17408 (trace_buffer_free): Delete.
17409 (struct ipa_trace_buffer_control): New.
17410 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
17411 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
17412 New.
17413 (trace_buffer_ctrl): New.
17414 (TRACE_BUFFER_CTRL_CURR): New.
17415 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
17416 Reimplement as macros.
17417 (trace_buffer_wrap): Delete.
17418 (traceframe_write_count, traceframe_read_count)
17419 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
17420 (struct tracepoint_hit_ctx) <type>: New field.
17421 (struct fast_tracepoint_ctx): New.
17422 (memory_barrier): New.
17423 (cmpxchg): New.
17424 (record_tracepoint_error): Update atomically in the IPA.
17425 (clear_inferior_trace_buffer): New.
17426 (about_to_request_buffer_space): New.
17427 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
17428 updating the same buffer.
17429 (add_tracepoint): Default the tracepoint's type to trap
17430 tracepoint, and orig_size to -1.
17431 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
17432 internal variables.
17433 (create_trace_state_variable): New parameter `gdb'. Handle it.
17434 (clear_installed_tracepoints): Clear fast tracepoint jumps.
17435 (cmd_qtdp): Handle fast tracepoints.
17436 (cmd_qtdv): Adjust.
17437 (max_jump_pad_size): New.
17438 (gdb_jump_pad_head): New.
17439 (get_jump_space_head): New.
17440 (claim_jump_space): New.
17441 (sort_tracepoints): New.
17442 (MAX_JUMP_SIZE): New.
17443 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
17444 IPA.
17445 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
17446 support. Upload fast traceframes, and delete internal IPA
17447 breakpoints.
17448 (stop_tracing_handler): New.
17449 (flush_trace_buffer_handler): New.
17450 (cmd_qtstop): Upload fast tracepoints.
17451 (response_tracepoint): Handle fast tracepoints.
17452 (tracepoint_finished_step): Upload fast traceframes. Set the
17453 tracepoint hit context's tracepoint type.
17454 (handle_tracepoint_bkpts): New.
17455 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
17456 type. Add comment about fast tracepoints.
17457 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
17458 non-existing action_str field.
17459 (get_context_regcache): Handle fast tracepoints.
17460 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
17461 to the regcache.
17462 (fast_tracepoint_from_jump_pad_address): New.
17463 (fast_tracepoint_from_ipa_tpoint_address): New.
17464 (collecting_t): New.
17465 (force_unlock_trace_buffer): New.
17466 (fast_tracepoint_collecting): New.
17467 (collecting): New.
17468 (gdb_collect): New.
17469 (write_inferior_data_ptr): New.
17470 (target_tp_heap): New.
17471 (target_malloc): New.
17472 (download_agent_expr): New.
17473 (UALIGN): New.
17474 (download_tracepoints): New.
17475 (download_trace_state_variables): New.
17476 (upload_fast_traceframes): New.
17477 (IPA_FIRST_TRACEFRAME): New.
17478 (IPA_NEXT_TRACEFRAME_1): New.
17479 (IPA_NEXT_TRACEFRAME): New.
17480 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
17481 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
17482 (gdb_jump_pad_buffer_end): New.
17483 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
17484 (initialize_tracepoint): Adjust.
17485 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
17486 buffer. Initialize the low module.
17487 * utils.c (PREFIX, TOOLNAME): New.
17488 (malloc_failure): Use PREFIX.
17489 (error): In the IPA, an error causes an exit.
17490 (fatal, warning): Use PREFIX.
17491 (internal_error): Use TOOLNAME.
17492 (NUMCELLS): Increase to 10.
17493 * configure, config.in: Regenerate.
17494
174952010-06-01 Pedro Alves <pedro@codesourcery.com>
17496
17497 * server.c (handle_query) <qSupported>: Do two passes over the
17498 qSupported string to avoid nesting strtok.
17499
175002010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17501
17502 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
17503 (CDEPS): New.
17504 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
17505 -Wl,--dynamic-list.
17506 * configure: Regenerate.
17507 * proc-service.list: New.
17508
175092010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17510
17511 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
17512 New comment.
17513
175142010-05-26 Ozkan Sezer <sezeroz@gmail.com>
17515
17516 * gdbreplay.c (remote_open): Check error return from socket() call by
17517 its equality to -1 not by it being negative.
17518 * remote-utils.c (remote_open): Likewise.
17519
175202010-05-23 Pedro Alves <pedro@codesourcery.com>
17521
17522 * config.h: Regenerate.
17523
175242010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17525
17526 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
17527 doesn't provide PTRACE_GET_THREAD_AREA.
17528
175292010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17530
17531 * linux-m68k-low.c: Include <asm/ptrace.h>
17532 (ps_get_thread_area): Implement.
17533
175342010-05-03 Doug Evans <dje@google.com>
17535
17536 * event-loop.c (struct callback_event): New struct.
17537 (callback_list): New global.
17538 (append_callback_event, delete_callback_event): New functions.
17539 (process_callback): New function.
17540 (start_event_loop): Call it.
17541 * remote-utils.c (NOT_SCHEDULED): Define.
17542 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
17543 moved out of readchar.
17544 (readchar): Rewrite. Call reschedule before returning.
17545 (reset_readchar): New function.
17546 (remote_close): Call it.
17547 (process_remaining, reschedule): New functions.
17548 * server.h (callback_handler_func): New typedef.
17549 (append_callback_event, delete_callback_event): Declare.
17550
175512010-05-03 Pedro Alves <pedro@codesourcery.com>
17552
17553 * proc-service.c (ps_pglobal_lookup): Use
17554 thread_db_look_up_one_symbol.
17555 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
17556 parameter. Use it instead of all_symbols_looked_up.
17557 * server.h (struct process_info) <all_symbols_looked_up>: Delete
17558 field.
17559 (all_symbols_looked_up): Don't declare.
17560 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
17561 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
17562 field.
17563 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
17564 Set all_symbols_looked_up here.
17565 (thread_db_look_up_one_symbol): New.
17566 (thread_db_get_tls_address): Adjust.
17567 (thread_db_load_search, try_thread_db_load_1): Always allocate the
17568 thread_db object on the heap, and tentatively set it in the
17569 process structure.
17570 (thread_db_init): Don't set all_symbols_looked_up here.
17571 * linux-low.h (thread_db_look_up_one_symbol): Declare.
17572
175732010-05-03 Pedro Alves <pedro@codesourcery.com>
17574
17575 * linux-low.c (linux_kill, linux_detach): Adjust.
17576 (status_pending_p_callback): Remove redundant statement. Check
17577 for !TARGET_WAITIKIND_IGNORE, instead of
17578 TARGET_WAITKIND_STOPPED.
17579 (handle_tracepoints): Make sure LWP is locked. Adjust.
17580 (linux_wait_for_event_1): Adjust.
17581 (linux_cancel_breakpoints): New.
17582 (unsuspend_one_lwp): New.
17583 (unsuspend_all_lwps): New.
17584 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
17585 (send_sigstop_callback): Change return type to int, add new
17586 `except' parameter and handle it.
17587 (suspend_and_send_sigstop_callback): New.
17588 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
17589 pass them down. If SUSPEND, also increment the lwp's suspend
17590 count.
17591 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
17592 (need_step_over_p): Don't consider suspended LWPs.
17593 (start_step_over): Adjust.
17594 (proceed_one_lwp): Change return type to int, add new `except'
17595 parameter and handle it.
17596 (unsuspend_and_proceed_one_lwp): New.
17597 (proceed_all_lwps): Use find_inferior instead of
17598 for_each_inferior.
17599 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
17600 also decrement the suspend count of LWPs. Pass `except' down,
17601 instead of hacking its suspend count.
17602 (linux_pause_all): Add `freeze' parameter. Adjust.
17603 (linux_unpause_all): New.
17604 (linux_target_ops): Install linux_unpause_all.
17605 * server.c (handle_status): Adjust.
17606 * target.h (struct target_ops): New fields `unpause_all' and
17607 `cancel_breakpoints'. Add new parameter to `pause_all'.
17608 (pause_all): Add new `freeze' parameter.
17609 (unpause_all): New.
17610 (cancel_breakpoints): New.
17611 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
17612 cancel breakpoints.
17613 (cmd_qtstart): Pause threads.
17614 (stop_tracing): Pause threads, and cancel breakpoints.
17615 * win32-low.c (win32_target_ops): Adjust.
17616
176172010-05-03 Pedro Alves <pedro@codesourcery.com>
17618
17619 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
17620 the inferior right away from here...
17621 (linux_wait_1): ... to here, and adjust to check the thread's
17622 last_resume_kind instead of the lwp's step or stop_expected flags.
17623
176242010-05-02 Pedro Alves <pedro@codesourcery.com>
17625
17626 * README: Use consistent `GDB' and `GDBserver' spellings.
17627
176282010-05-02 Pedro Alves <pedro@codesourcery.com>
17629
17630 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
17631 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
17632 (linux_detach_one_lwp): Assume the lwp is stopped.
17633 (any_thread_of): Delete.
17634 (linux_detach): Stop all lwps here. Don't blindly delete all
17635 breakpoints.
17636 (delete_lwp_callback): New.
17637 (linux_mourn): Delete all lwps of the process that is gone.
17638 (linux_wait_1): Don't delete the last lwp of the process here.
17639 * mem-break.h (mark_breakpoints_out): Declare.
17640 * mem-break.c (mark_breakpoints_out): New.
17641 (free_all_breakpoints): Use it.
17642 * server.c (handle_target_event): If the process is gone, mark
17643 breakpoints out.
17644 * thread-db.c (struct thread_db) <create_bp>: New field.
17645 (thread_db_enable_reporting): Fix prototype. Store a thread event
17646 breakpoint reference in the thread_db struct.
17647 (thread_db_load_search): Clear the thread_db object.
17648 (try_thread_db_load_1): Ditto.
17649 (switch_to_process): New.
17650 (disable_thread_event_reporting): Use it.
17651 (remove_thread_event_breakpoints): New.
17652 (thread_db_detach, thread_db_mourn): Use it.
17653
176542010-05-01 Pedro Alves <pedro@codesourcery.com>
17655
17656 * linux-low.c (linux_enable_event_reporting): New.
17657 (linux_wait_for_event_1, handle_extended_wait): Use it.
17658
176592010-04-30 Pedro Alves <pedro@codesourcery.com>
17660
17661 * linux-low.c (linux_kill_one_lwp, linux_kill)
17662 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
17663 (send_sigstop): Take an lwp_info as parameter instead. Queue a
17664 SIGSTOP even if the LWP is stopped.
17665 (send_sigstop_callback): New.
17666 (stop_all_lwps): Use send_sigstop_callback instead.
17667 (linux_resume_one_thread): Adjust.
17668 (proceed_one_lwp): Still proceed an LWP that the client has
17669 requested to stop, if we haven't reported it as stopped yet. Make
17670 sure that LWPs the client want stopped, have a pending SIGSTOP.
17671
176722010-04-26 Doug Evans <dje@google.com>
17673
17674 * server.c (handle_general_set): Make static.
17675
17676 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
17677 Print received char after testing for error/eof instead of before.
17678 (input_interrupt): Tweak comment.
17679
176802010-04-23 Doug Evans <dje@google.com>
17681
17682 * server.c (start_inferior): Print inferior argv if --debug.
17683
176842010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
17685
17686 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
17687 * nto-x86-low.c: Include server.h
17688
176892010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
17690
17691 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
17692 be consistent with other sources of this directory.
17693 (init_registers_amd64): Correct name of source file of this function
17694 in the comment.
17695
176962010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17697
17698 * configure.srv (x86_64-*-mingw*): New configuration for Windows
17699 64-bit executables.
17700
177012010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17702
17703 * win32-i386-low.c: Add 64-bit support.
17704 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
17705 (init_registers_amd64): Declare.
17706 (mappings): Add 64-bit version of array.
17707 (init_windows_x86): New function.
17708 (the_low_target): Change init_arch field to init_windows_x86.
17709
177102010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17711
17712 * win32-low.c: Adapt to support also 64-bit architecture.
17713 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
17714 (get_image_name): Use SIZE_T type for local variable `done'.
17715 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
17716 (toolhelp_get_dll_name): Idem.
17717 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
17718 Use uintptr_t typecast to avoid warning.
17719 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
17720 (handle_exception): Use phex_nz to avoid warning.
17721 (win32_wait): Remove unused local variable `process'.
17722
177232010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17724
17725 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
17726 `amd64-avx.o'.
17727
177282010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
17729
17730 * configure.ac: Use `ws2_32' library for srv_mingw.
17731 * configure: Regenerate.
17732 * gdbreplay.c: Include winsock2.h instead of winsock.h.
17733 * remote-utils.c: Likewise.
17734
177352010-04-17 H.J. Lu <hongjiu.lu@intel.com>
17736
17737 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
17738 if __x86_64__ is defined.
17739
177402010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17741
17742 * configure: Regenerate.
17743
177442010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17745
17746 * server.c (handle_query): Handle 'qGetTIBAddr' query.
17747 * target.h (target_ops): New get_tib_address field.
17748 * win32-low.h (win32_thread_info): Add thread_local_base field.
17749 * win32-low.c (child_add_thread): Add tlb argument.
17750 Set thread_local_base field to TLB.
17751 (get_child_debug_event): Adapt to child_add_thread change.
17752 (win32_get_tib_address): New function.
17753 (win32_target_ops): Set get_tib_address field to
17754 win32_get_tib_address.
17755 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
17756
177572010-04-12 Pedro Alves <pedro@codesourcery.com>
17758
17759 * linux-low.c (linux_mourn): Also remove the process.
17760 * server.c (handle_target_event): Don't remove the process here.
17761 * nto-low.c (nto_mourn): New.
17762 (nto_target_ops): Install it.
17763 * spu-low.c (spu_mourn): New.
17764 (spu_target_ops): Install it.
17765 * win32-low.c (win32_mourn): New.
17766 (win32_target_ops): Install it.
17767
177682010-04-12 Pedro Alves <pedro@codesourcery.com>
17769
17770 * server.h (buffer_xml_printf): Remove redundant `;'.
17771
177722010-04-12 Pedro Alves <pedro@codesourcery.com>
17773
17774 * regcache.c (set_register_cache): Invalidate regcaches before
17775 changing the register cache layout.
17776 (regcache_invalidate_one): Allow a NULL regcache.
17777 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
17778 regcaches before changing the register cache layout or the target
17779 regsets.
17780
177812010-04-12 H.J. Lu <hongjiu.lu@intel.com>
17782
17783 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
17784 variable warning on Linux/x86-64.
17785
177862010-04-11 Pedro Alves <pedro@codesourcery.com>
17787
17788 GDBserver disconnected tracing support.
17789
17790 * linux-low.c (linux_remove_process): Delete.
17791 (add_lwp): Don't set last_resume_kind here.
17792 (linux_kill): Use `mourn'.
17793 (linux_detach): Use `thread_db_detach', and `mourn'.
17794 (linux_mourn): New.
17795 (linux_attach_lwp_1): Adjust comment.
17796 (linux_attach): last_resume_kind moved the thread_info; adjust.
17797 (status_pending_p_callback): Adjust.
17798 (linux_wait_for_event_1): Adjust.
17799 (count_events_callback, select_singlestep_lwp_callback)
17800 (select_event_lwp_callback, cancel_breakpoints_callback)
17801 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
17802 (proceed_one_lwp): Adjust.
17803 (linux_async): Add debug output.
17804 (linux_thread_stopped): New.
17805 (linux_pause_all): New.
17806 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
17807 linux_pause_all.
17808 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
17809 (thread_db_free): Delete declaration.
17810 (thread_db_detach, thread_db_mourn): Declare.
17811 * thread-db.c (thread_db_init): Use thread_db_mourn.
17812 (thread_db_free): Delete, split in two.
17813 (disable_thread_event_reporting): New.
17814 (thread_db_detach): New.
17815 (thread_db_mourn): New.
17816
17817 * server.h (struct thread_info) <last_resume_kind>: New field.
17818 <attached>: Add comment.
17819 <gdb_detached>: New field.
17820 (handler_func): Change return type to int.
17821 (handle_serial_event, handle_target_event): Ditto.
17822 (gdb_connected): Declare.
17823 (tracing): Delete.
17824 (disconnected_tracing): Declare.
17825 (stop_tracing): Declare.
17826
17827 * server.c (handle_query) <qSupported>: Report support for
17828 disconnected tracing.
17829 (queue_stop_reply_callback): Account for running threads.
17830 (gdb_wants_thread_stopped): New.
17831 (gdb_wants_all_threads_stopped): New.
17832 (gdb_reattached_process): New.
17833 (handle_status): Clear the `gdb_detached' flag of all processes.
17834 In all-stop, stop all threads.
17835 (main): Be sure to leave tfind mode. Handle disconnected tracing.
17836 (process_serial_event): If the remote connection breaks, or if an
17837 exit was forced with "monitor exit", force an event loop exit.
17838 Handle disconnected tracing on detach.
17839 (handle_serial_event): Adjust.
17840 (handle_target_event): If GDB isn't connected, forward events back
17841 to the inferior, unless the last process exited, in which case,
17842 exit gdbserver. Adjust interface.
17843
17844 * remote-utils.c (remote_open): Don't block in accept. Instead
17845 register an event loop source on the listen socket file
17846 descriptor. Refactor bits into ...
17847 (listen_desc): ... this new global.
17848 (gdb_connected): ... this new function.
17849 (enable_async_notification): ... this new function.
17850 (handle_accept_event): ... this new function.
17851 (remote_close): Clear remote_desc.
17852
17853 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
17854
17855 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
17856 New fields.
17857 (mourn_inferior): Define.
17858 (target_process_qsupported): Avoid the dangling else problem.
17859 (thread_stopped): Define.
17860 (pause_all): Define.
17861 (target_waitstatus_to_string): Declare.
17862 * target.c (target_waitstatus_to_string): New.
17863
17864 * tracepoint.c (tracing): Make extern.
17865 (disconnected_tracing): New.
17866 (stop_tracing): Make extern. Handle tracing stops due to GDB
17867 disconnecting.
17868 (cmd_qtdisconnected): New.
17869 (cmd_qtstatus): Report disconnected tracing status in trace reply.
17870 (handle_tracepoint_general_set): Handle QTDisconnected.
17871
17872 * event-loop.c (event_handler_func): Change return type to int.
17873 (process_event): Bail out if the event handler wants the event
17874 loop to stop.
17875 (handle_file_event): Ditto.
17876 (start_event_loop): Bail out if the event handler wants the event
17877 loop to stop.
17878
17879 * nto-low.c (nto_target_ops): Adjust.
17880 * spu-low.c (spu_wait): Don't remove the process here.
17881 (spu_target_ops): Adjust.
17882 * win32-low.c (win32_wait): Don't remove the process here.
17883 (win32_target_ops): Adjust.
17884
178852010-04-11 Pedro Alves <pedro@codesourcery.com>
17886
17887 * regcache.c (realloc_register_cache): Invalidate inferior's
17888 regcache before recreating it.
17889
178902010-04-09 Pedro Alves <pedro@codesourcery.com>
17891
17892 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
17893
178942010-04-09 Stan Shebs <stan@codesourcery.com>
17895 Pedro Alves <pedro@codesourcery.com>
17896
17897 * server.h (LONGEST): New.
17898 (struct thread_info) <while_stepping>: New field.
17899 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
17900 Declare.
17901 (initialize_tracepoint, handle_tracepoint_general_set)
17902 (handle_tracepoint_query, tracepoint_finished_step)
17903 (tracepoint_was_hit, release_while_stepping_state_list):
17904 (current_traceframe): Declare.
17905 * server.c (handle_general_set): Handle tracepoint packets.
17906 (read_memory): New.
17907 (write_memory): New.
17908 (handle_search_memory_1): Use read_memory.
17909 (handle_query): Report support for conditional tracepoints, trace
17910 state variables, and tracepoint sources. Handle tracepoint
17911 queries.
17912 (main): Initialize the tracepoints module.
17913 (process_serial_event): Handle traceframe reads/writes.
17914
17915 * linux-low.c (handle_tracepoints): New.
17916 (linux_wait_1): Call it.
17917 (linux_resume_one_lwp): Handle while-stepping.
17918 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
17919 (linux_target_ops): Install them.
17920 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
17921 New field.
17922 * linux-x86-low.c (x86_supports_tracepoints): New.
17923 (the_low_target). Install it.
17924
17925 * mem-break.h (delete_breakpoint): Declare.
17926 * mem-break.c (delete_breakpoint): Make external.
17927
17928 * target.h (struct target_ops): Add `supports_tracepoints',
17929 `read_pc', and `write_pc' fields.
17930 (target_supports_tracepoints): Define.
17931 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
17932 (phex_nz): New.
17933
17934 * regcache.h (struct regcache) <registers_owned>: New field.
17935 (init_register_cache, regcache_cpy): Declare.
17936 (regcache_read_pc, regcache_write_pc): Declare.
17937 (register_cache_size): Declare.
17938 (supply_regblock): Declare.
17939 * regcache.c (init_register_cache): New.
17940 (new_register_cache): Use it.
17941 (regcache_cpy): New.
17942 (register_cache_size): New.
17943 (supply_regblock): New.
17944 (regcache_read_pc, regcache_write_pc): New.
17945
17946 * tracepoint.c: New.
17947
17948 * Makefile.in (OBS): Add tracepoint.o.
17949 (tracepoint.o): New rule.
17950
179512010-04-08 H.J. Lu <hongjiu.lu@intel.com>
17952
17953 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
17954 (i386-mmx.o): New.
17955 (i386-mmx.c): Likewise.
17956 (i386-mmx-linux.o): Likewise.
17957 (i386-mmx-linux.c): Likewise.
17958
17959 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
17960 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
17961 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
17962 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
17963
17964 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
17965 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
17966 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
17967
179682010-04-07 H.J. Lu <hongjiu.lu@intel.com>
17969
17970 * Makefile.in (clean): Updated.
17971 (i386-avx.o): New.
17972 (i386-avx.c): Likewise.
17973 (i386-avx-linux.o): Likewise.
17974 (i386-avx-linux.c): Likewise.
17975 (amd64-avx.o): Likewise.
17976 (amd64-avx.c): Likewise.
17977 (amd64-avx-linux.o): Likewise.
17978 (amd64-avx-linux.c): Likewise.
17979
17980 * configure.srv (srv_i386_regobj): Add i386-avx.o.
17981 (srv_i386_linux_regobj): Add i386-avx-linux.o.
17982 (srv_amd64_regobj): Add amd64-avx.o.
17983 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
17984 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
17985 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
17986 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
17987 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
17988 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
17989 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
17990
17991 * i387-fp.c: Include "i386-xstate.h".
17992 (i387_xsave): New.
17993 (i387_cache_to_xsave): Likewise.
17994 (i387_xsave_to_cache): Likewise.
17995 (x86_xcr0): Likewise.
17996
17997 * i387-fp.h (i387_cache_to_xsave): Likewise.
17998 (i387_xsave_to_cache): Likewise.
17999 (x86_xcr0): Likewise.
18000
18001 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
18002 * linux-crisv32-low.c (target_regsets): Likewise.
18003 * linux-m68k-low.c (target_regsets): Likewise.
18004 * linux-mips-low.c (target_regsets): Likewise.
18005 * linux-ppc-low.c (target_regsets): Likewise.
18006 * linux-s390-low.c (target_regsets): Likewise.
18007 * linux-sh-low.c (target_regsets): Likewise.
18008 * linux-sparc-low.c (target_regsets): Likewise.
18009 * linux-xtensa-low.c (target_regsets): Likewise.
18010
18011 * linux-low.c: Include <sys/uio.h>.
18012 (regsets_fetch_inferior_registers): Support nt_type.
18013 (regsets_store_inferior_registers): Likewise.
18014 (linux_process_qsupported): New.
18015 (linux_target_ops): Add linux_process_qsupported.
18016
18017 * linux-low.h (regset_info): Add nt_type.
18018 (linux_target_ops): Add process_qsupported.
18019
18020 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
18021 and <sys/uio.h>.
18022 (init_registers_i386_avx_linux): New.
18023 (init_registers_amd64_avx_linux): Likewise.
18024 (xmltarget_i386_linux_no_xml): Likewise.
18025 (xmltarget_amd64_linux_no_xml): Likewise.
18026 (PTRACE_GETREGSET): Likewise.
18027 (PTRACE_SETREGSET): Likewise.
18028 (x86_fill_xstateregset): Likewise.
18029 (x86_store_xstateregset): Likewise.
18030 (use_xml): Likewise.
18031 (x86_linux_update_xmltarget): Likewise.
18032 (x86_linux_process_qsupported): Likewise.
18033 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
18034 (x86_arch_setup): Don't call init_registers_amd64_linux nor
18035 init_registers_i386_linux here. Call
18036 x86_linux_update_xmltarget.
18037 (the_low_target): Add x86_linux_process_qsupported.
18038
18039 * server.c (handle_query): Call target_process_qsupported.
18040
18041 * target.h (target_ops): Add process_qsupported.
18042 (target_process_qsupported): New.
18043
180442010-04-03 Pedro Alves <pedro@codesourcery.com>
18045
18046 * inferiors.c (add_thread): Set last_status kind to
18047 TARGET_WAITKIND_IGNORE.
18048 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
18049 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
18050 (linux_wait_1): Move `thread' local definition to block that uses
18051 it. Don't NULL initialize `event_child'.
18052 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
18053 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
18054 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
18055
180562010-04-01 Pedro Alves <pedro@codesourcery.com>
18057
18058 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
18059 an extended waitstatus, or by a watchpoint.
18060 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
18061 thread was stepping or has been stopped by a watchpoint.
18062
180632010-04-01 Pedro Alves <pedro@codesourcery.com>
18064
18065 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
18066 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
18067 of another, then delete the previous, and validate all
18068 breakpoints.
18069 (validate_inserted_breakpoint): New.
18070 (delete_disabled_breakpoints): New.
18071 (validate_breakpoints): New.
18072 (check_mem_read): Validate breakpoints before trusting their
18073 shadow. Delete disabled breakpoints.
18074 (check_mem_write): Validate breakpoints before trusting they
18075 should be inserted. Delete disabled breakpoints.
18076 * mem-break.h (validate_breakpoints):
18077 * server.c (handle_query): Validate breakpoints when we see a
18078 qSymbol query.
18079
180802010-04-01 Pedro Alves <pedro@codesourcery.com>
18081
18082 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
18083 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
18084 if we could tell there's a GDB breakpoint at stop_pc.
18085 (need_step_over_p): Don't do a step over if we find a GDB
18086 breakpoint at the resume PC.
18087
18088 * mem-break.c (struct raw_breakpoint): New.
18089 (enum bkpt_type): New type `gdb_breakpoint'.
18090 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
18091 fields. New field `raw'.
18092 (find_raw_breakpoint_at): New.
18093 (set_raw_breakpoint_at): Handle refcounting. Create a raw
18094 breakpoint instead.
18095 (set_breakpoint_at): Adjust.
18096 (delete_raw_breakpoint): New.
18097 (release_breakpoint): New.
18098 (delete_breakpoint): Rename to...
18099 (delete_breakpoint_1): ... this. Add proc parameter. Use
18100 release_breakpoint. Return ENOENT.
18101 (delete_breakpoint): Reimplement.
18102 (find_breakpoint_at): Delete.
18103 (find_gdb_breakpoint_at): New.
18104 (delete_breakpoint_at): Delete.
18105 (set_gdb_breakpoint_at): New.
18106 (delete_gdb_breakpoint_at): New.
18107 (gdb_breakpoint_here): New.
18108 (set_reinsert_breakpoint): Use release_breakpoint.
18109 (uninsert_breakpoint): Rename to ...
18110 (uninsert_raw_breakpoint): ... this.
18111 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
18112 (reinsert_raw_breakpoint): Change parameter type to
18113 raw_breakpoint.
18114 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
18115 instead.
18116 (check_breakpoints): Adjust. Use release_breakpoint.
18117 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
18118 (breakpoint_inserted_here): Ditto.
18119 (check_mem_read): Adjust to iterate over raw breakpoints instead.
18120 Don't trust the breakpoint's shadow if it is not inserted.
18121 (check_mem_write): Adjust to iterate over raw breakpoints instead.
18122 (delete_all_breakpoints): Adjust.
18123 (free_all_breakpoints): Mark all breakpoints as uninserted, and
18124 use delete_breakpoint_1.
18125
18126 * mem-break.h (breakpoints_supported): Delete declaration.
18127 (set_gdb_breakpoint_at): Declare.
18128 (gdb_breakpoint_here): Declare.
18129 (delete_breakpoint_at): Delete.
18130 (delete_gdb_breakpoint_at): Declare.
18131
18132 * server.h (struct raw_breakpoint): Forward declare.
18133 (struct process_info): New field `raw_breakpoints'.
18134
18135 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
18136 breakpoints.
18137
181382010-03-24 Pedro Alves <pedro@codesourcery.com>
18139
18140 * linux-low.c (status_pending_p_callback): Fix comment.
18141 (linux_wait_for_event_1): Move most of the internal breakpoint
18142 handling from here...
18143 (linux_wait_1): ... to here.
18144 (count_events_callback): New.
18145 (select_singlestep_lwp_callback): New.
18146 (select_event_lwp_callback): New.
18147 (cancel_breakpoints_callback): New.
18148 (select_event_lwp): New.
18149 (linux_wait_1): Simplify internal breakpoint handling. Give equal
18150 priority to all LWPs that have had events that should be reported
18151 to the client. Cancel breakpoints when about to reporting the
18152 event to the client, not while stopping lwps. No longer cancel
18153 finished single-steps here.
18154 (cancel_finished_single_step): Delete.
18155 (cancel_finished_single_steps): Delete.
18156
181572010-03-24 Pedro Alves <pedro@codesourcery.com>
18158
18159 * mem-break.c (enum bkpt_type): New.
18160 (struct breakpoint): New field `type'.
18161 (set_breakpoint_at): Change return type to struct breakpoint
18162 pointer. Set type to `other_breakpoint' by default.
18163 (delete_breakpoint): Rewrite, supporting more than one breakpoint
18164 in the breakpoint list.
18165 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
18166 (reinsert_breakpoint): Rename to ...
18167 (reinsert_raw_breakpoint): ... this.
18168 (reinsert_breakpoints_at): Adjust.
18169 * mem-break.h (struct breakpoint): Declare.
18170 (set_breakpoint_at): Change return type to struct breakpoint
18171 pointer.
18172
181732010-03-24 Pedro Alves <pedro@codesourcery.com>
18174
18175 * server.c (handle_query): Assign, not compare.
18176
181772010-03-24 Pedro Alves <pedro@codesourcery.com>
18178
18179 Teach linux gdbserver to step-over-breakpoints.
18180
18181 * linux-low.c (can_hardware_single_step): New.
18182 (supports_breakpoints): New.
18183 (handle_extended_wait): If stopping threads, read the stop pc of
18184 the new cloned LWP.
18185 (get_pc): New.
18186 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
18187 low target doesn't support retrieving the PC.
18188 (add_lwp): Set last_resume_kind to resume_continue.
18189 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
18190 (linux_attach): Don't clear stop_expected. Set the lwp's
18191 last_resume_kind to resume_stop.
18192 (linux_detach_one_lwp): Don't check for removed breakpoints.
18193 (check_removed_breakpoint): Delete.
18194 (status_pending_p): Rename to ...
18195 (status_pending_p_callback): ... this. Don't check for removed
18196 breakpoints. Don't consider threads that are stopped from GDB's
18197 perspective.
18198 (linux_wait_for_lwp): Always read the stop_pc here.
18199 (cancel_breakpoint): New.
18200 (step_over_bkpt): New global.
18201 (linux_wait_for_event_1): Implement stepping over breakpoints.
18202 (gdb_wants_lwp_stopped): New.
18203 (gdb_wants_all_stopped): New.
18204 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
18205 single-step traps here. Store the thread's last reported target
18206 wait status.
18207 (send_sigstop): Don't clear stop_expected. Always set it,
18208 instead.
18209 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
18210 (cancel_finished_single_step): New.
18211 (cancel_finished_single_steps): New.
18212 (wait_for_sigstop): Don't cancel finished single-step traps here.
18213 (linux_resume_one_lwp): Don't check for removed breakpoints.
18214 Don't set `step' on non-hardware step archs.
18215 (linux_set_resume_request): Ignore resume_stop requests if already
18216 stopping or stopped. Set the lwp's last_resume_kind.
18217 (resume_status_pending_p): Don't check for removed breakpoints.
18218 (need_step_over_p): New.
18219 (start_step_over): New.
18220 (finish_step_over): New.
18221 (linux_resume_one_thread): Always queue a sigstop for resume_stop
18222 requests. Clear the thread's last reported target waitstatus.
18223 Don't use the `suspended' flag. Don't consider pending breakpoints.
18224 (linux_resume): Start a step-over if necessary.
18225 (proceed_one_lwp): New.
18226 (proceed_all_lwps): New.
18227 (unstop_all_lwps): New.
18228 * linux-low.h (struct lwp_info): Rewrite comment for the
18229 `suspended' flag. Add the `stop_pc' field. Delete the
18230 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
18231 Add `'last_resume_kind' and `need_step_over' fields.
18232 * inferiors.c (struct thread_info): Delete, moved elsewhere.
18233 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
18234 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
18235 (set_raw_breakpoint_at): New.
18236 (set_breakpoint_at): Rewrite to use it.
18237 (reinsert_breakpoint_handler): Delete.
18238 (set_reinsert_breakpoint): New.
18239 (reinsert_breakpoint_by_bp): Delete.
18240 (delete_reinsert_breakpoints): New.
18241 (uninsert_breakpoint): Rewrite.
18242 (uninsert_breakpoints_at): New.
18243 (reinsert_breakpoint): Rewrite.
18244 (reinsert_breakpoints_at): New.
18245 (check_breakpoints): Rewrite.
18246 (breakpoint_here): New.
18247 (breakpoint_inserted_here): New.
18248 (check_mem_read): Adjust.
18249 * mem-break.h (breakpoints_supported, breakpoint_here)
18250 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
18251 (reinsert_breakpoint_by_bp): Delete declaration.
18252 (delete_reinsert_breakpoints): Declare.
18253 (reinsert_breakpoint): Delete declaration.
18254 (reinsert_breakpoints_at): Declare.
18255 (uninsert_breakpoint): Delete declaration.
18256 (uninsert_breakpoints_at): Declare.
18257 (check_breakpoints): Adjust prototype.
18258 * server.h: Adjust include order.
18259 (struct thread_info): Declare here. Add a `last_status' field.
18260
182612010-03-23 Michael Snyder <msnyder@vmware.com>
18262
18263 * server.c (crc32): New function.
18264 (handle_query): Add handling for 'qCRC:' request.
18265
182662010-03-23 Pedro Alves <pedro@codesourcery.com>
18267
18268 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
18269 lwp had been stopped by a watchpoint.
18270
182712010-03-16 Pedro Alves <pedro@codesourcery.com>
18272
18273 * server.h (internal_error): Declare.
18274 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
18275 * utils.c (internal_error): New function.
18276
182772010-03-15 Andreas Schwab <schwab@redhat.com>
18278
18279 * configure.srv: Fix typo setting srv_regobj.
18280
182812010-03-15 Pedro Alves <pedro@codesourcery.com>
18282
18283 * linux-low.c (fetch_register): Avoid passing a non string literal
18284 format to `error'.
18285 (usr_store_inferior_registers): Ditto.
18286
182872010-03-14 Pedro Alves <pedro@codesourcery.com>
18288
18289 * linux-low.c (linux_write_memory): Bail out early if peeking
18290 memory failed.
18291
182922010-03-14 Pedro Alves <pedro@codesourcery.com>
18293
18294 * linux-low.h (struct lwp_info): New fields
18295 `stopped_by_watchpoint' and `stopped_data_address'.
18296 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
18297 here, and cache them in the lwp object.
18298 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
18299 directly.
18300 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
18301 field.
18302 (linux_stopped_by_watchpoint): Rewrite.
18303 (linux_stopped_data_address): Rewrite.
18304
183052010-03-06 Simo Melenius <simo.melenius@iki.fi>
18306
18307 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
18308 switching the current inferior, not before.
18309
183102010-03-01 H.J. Lu <hongjiu.lu@intel.com>
18311
18312 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
18313 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
18314 i386-linux.c and amd64-linux.c.
18315 (reg-i386.o): Removed.
18316 (reg-i386.c): Likewise.
18317 (reg-i386-linux.o): Likewise.
18318 (reg-i386-linux.c): Likewise.
18319 (reg-x86-64.o): Likewise.
18320 (reg-x86-64.c): Likewise.
18321 (reg-x86-64-linux.o): Likewise.
18322 (reg-x86-64-linux.c): Likewise.
18323 (i386.o): New.
18324 (i386.c): Likewise.
18325 (i386-linux.o): Likewise.
18326 (i386-linux.c): Likewise.
18327 (amd64.o): Likewise.
18328 (amd64.c): Likewise.
18329 (amd64-linux.o): Likewise.
18330 (amd64-linux.c): Likewise.
18331
18332 * configure.srv (srv_i386_regobj): New.
18333 (srv_i386_linux_regobj): Likewise.
18334 (srv_amd64_regobj): Likewise.
18335 (srv_amd64_linux_regobj): Likewise.
18336 (srv_i386_32bit_xmlfiles): Likewise.
18337 (srv_i386_64bit_xmlfiles): Likewise.
18338 (srv_i386_xmlfiles): Likewise.
18339 (srv_amd64_xmlfiles): Likewise.
18340 (srv_i386_linux_xmlfiles): Likewise.
18341 (srv_amd64_linux_xmlfiles): Likewise.
18342 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
18343 srv_xmlfiles to $srv_i386_xmlfiles.
18344 (i[34567]86-*-mingw32ce*): Likewise.
18345 (i[34567]86-*-mingw*): Likewise.
18346 (i[34567]86-*-nto*): Likewise.
18347 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
18348 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
18349 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
18350 (x86_64-*-linux*): Likewise.
18351
18352 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
18353 (init_registers_amd64_linux): New.
18354 (x86_arch_setup): Replace init_registers_x86_64_linux with
18355 init_registers_amd64_linux.
18356
183572010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
18358
18359 * configure.ac: Check for libdl. If it is not available link against
18360 static libthread_db.
18361 * configure: Regenerate.
18362
183632010-02-22 Pedro Alves <pedro@codesourcery.com>
18364
18365 PR9605
18366
18367 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
18368 handing a read watchpoint.
18369 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
18370
183712010-02-12 Doug Evans <dje@google.com>
18372
18373 * linux-low.c (linux_supports_tracefork_flag): Document.
18374 (linux_look_up_symbols): Add comment.
18375
183762010-02-03 H.J. Lu <hongjiu.lu@intel.com>
18377
18378 * regcache.c (supply_register): Clear regcache if buf is NULL.
18379
183802010-02-02 Nicolas Roche <roche@sourceware.org>
18381 Joel Brobecker <brobecker@adacore.com>
18382
18383 * inferiors.c (find_inferior): Add function documentation.
18384 (unloaded_dll): Handle the case where the unloaded dll has not
18385 been previously registered in the dll list.
18386
183872010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
18388
18389 * linux-arm-low.c (thumb_breakpoint_len): Delete.
18390 (thumb2_breakpoint): New.
18391 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
18392
183932010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
18394
18395 * linux-low.c (get_stop_pc): Check for SIGTRAP.
18396 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
18397 breakpoints.
18398
183992010-01-21 Pedro Alves <pedro@codesourcery.com>
18400
18401 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
18402
184032010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
18404
18405 * linux-s390-low.c (s390_collect_ptrace_register)
18406 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
18407
184082010-01-21 Doug Evans <dje@google.com>
18409
18410 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
18411 (PTRACE_ARG4_TYPE): New macro.
18412 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
18413 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
18414 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
18415 (usr_store_inferior_registers): Ditto.
18416 (linux_read_memory, linux_write_memory): Ditto.
18417 (linux_test_for_tracefork): Ditto.
18418
18419 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
18420 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
18421
184222010-01-21 Pedro Alves <pedro@codesourcery.com>
18423
18424 * proc-service.c (ps_lgetregs): Don't refetch registers from the
18425 target.
18426
184272010-01-21 Pedro Alves <pedro@codesourcery.com>
18428
18429 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
18430 prototype to take a regcache. Adjust.
18431
184322010-01-20 Pedro Alves <pedro@codesourcery.com>
18433
18434 * regcache.h (struct thread_info): Forward declare.
18435 (struct regcache): New.
18436 (new_register_cache): Adjust prototype.
18437 (get_thread_regcache): Declare.
18438 (free_register_cache): Adjust prototype.
18439 (registers_to_string, registers_from_string): Ditto.
18440 (supply_register, supply_register_by_name, collect_register)
18441 (collect_register_as_string, collect_register_by_name): Ditto.
18442 * regcache.c (struct inferior_regcache_data): Delete.
18443 (get_regcache): Rename to ...
18444 (get_thread_regcache): ... this. Adjust. Switch inferior before
18445 fetching registers.
18446 (regcache_invalidate_one): Adjust.
18447 (regcache_invalidate): Fix prototype.
18448 (new_register_cache): Return the new register cache.
18449 (free_register_cache): Change prototype.
18450 (realloc_register_cache): Adjust.
18451 (registers_to_string): Change prototype to take a regcache. Adjust.
18452 (registers_from_string): Ditto.
18453 (register_data): Ditto.
18454 (supply_register): Ditto.
18455 (supply_register_by_name): Ditto.
18456 (collect_register): Ditto.
18457 (collect_register_as_string): Ditto.
18458 (collect_register_by_name): Ditto.
18459 * server.c (process_serial_event): Adjust.
18460 * linux-low.h (regset_fill_func, regset_store_func): Change
18461 prototype.
18462 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
18463 Change prototype.
18464 * linux-low.c (get_stop_pc): Adjust.
18465 (check_removed_breakpoint): Adjust.
18466 (linux_wait_for_event): Adjust.
18467 (linux_resume_one_lwp): Adjust.
18468 (fetch_register): Add regcache parameter. Adjust.
18469 (usr_store_inferior_registers): Ditto.
18470 (regsets_fetch_inferior_registers): Ditto.
18471 (regsets_store_inferior_registers): Ditto.
18472 (linux_fetch_registers, linux_store_registers): Ditto.
18473 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
18474 regcache. Adjust.
18475 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
18476 Ditto.
18477 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
18478 prototype to take a regcache.
18479 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
18480 * remote-utils.c (convert_ascii_to_int, outreg)
18481 (prepare_resume_reply): Change prototype to take a regcache.
18482 Adjust.
18483 * target.h (struct target_ops) <fetch_registers, store_registers>:
18484 Change prototype to take a regcache.
18485 (fetch_inferior_registers, store_inferior_registers): Change
18486 prototype to take a regcache. Adjust.
18487 * proc-service.c (ps_lgetregs): Adjust.
18488 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
18489 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
18490 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
18491 take a regcache. Adjust.
18492 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
18493 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
18494 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
18495 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
18496 * linux-cris-low.c (cris_get_pc, cris_set_pc)
18497 (cris_cannot_fetch_register):
18498 (cris_breakpoint_at): Change prototype to take a regcache.
18499 Adjust.
18500 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
18501 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
18502 to take a regcache. Adjust.
18503 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
18504 Adjust.
18505 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
18506 take a regcache. Adjust.
18507 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
18508 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
18509 (m68k_set_pc): Change prototype to take a regcache. Adjust.
18510 * linux-mips-low.c (mips_get_pc):
18511 (mips_set_pc): Change prototype to take a regcache. Adjust.
18512 (mips_reinsert_addr): Adjust.
18513 (mips_collect_register): Change prototype to take a regcache.
18514 Adjust.
18515 (mips_supply_register):
18516 (mips_collect_register_32bit, mips_supply_register_32bit)
18517 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
18518 (mips_store_fpregset): Ditto.
18519 * linux-ppc-low.c (ppc_supply_ptrace_register)
18520 (ppc_supply_ptrace_register): Ditto.
18521 (parse_spufs_run): Adjust.
18522 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
18523 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
18524 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
18525 take a regcache. Adjust.
18526 * linux-s390-low.c (s390_collect_ptrace_register)
18527 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
18528 (s390_set_pc): Change prototype to take a regcache. Adjust.
18529 (s390_arch_setup): Adjust.
18530 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
18531 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
18532 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
18533 (sparc_fill_gregset, sparc_store_gregset_from_stack)
18534 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
18535 regcache. Adjust.
18536 (sparc_breakpoint_at): Adjust.
18537 * linux-xtensa-low.c (xtensa_fill_gregset):
18538 (xtensa_store_gregset):
18539 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
18540 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
18541 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
18542 prototype to take a regcache. Adjust.
18543 * win32-arm-low.c (arm_fetch_inferior_register)
18544 (arm_store_inferior_register): Change prototype to take a
18545 regcache. Adjust.
18546 * win32-i386-low.c (i386_fetch_inferior_register)
18547 (i386_store_inferior_register): Change prototype to take a
18548 regcache. Adjust.
18549 * win32-low.c (child_fetch_inferior_registers)
18550 (child_store_inferior_registers): Change prototype to take a
18551 regcache. Adjust.
18552 (win32_wait): Adjust.
18553 (win32_fetch_inferior_registers): Change prototype to take a
18554 regcache. Adjust.
18555 (win32_store_inferior_registers): Adjust.
18556 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
18557 store_inferior_register>: Change prototype to take a regcache.
18558
185592010-01-20 Doug Evans <dje@google.com>
18560
18561 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
18562 #ifdef.
18563 (linux_wait_for_event1, linux_init_signals): Ditto.
18564 (W_STOPCODE): Provide definition if missing.
18565
185662010-01-13 Vladimir Prus <vladimir@codesourcery.com>
18567
18568 * linux-low.c (linux_core_of_thread): New.
18569 (compare_ints, show_process, list_threads): New.
18570 (linux_qxfer_osdata): Report threads and cores.
18571 (linux_target_op): Register linux_core_of_thread.
18572 * remote-utils.c (prepare_resume_reply): Report the core.
18573 (buffer_xml_printf): Support %d specifier.
18574 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
18575 New.
18576 (handle_query): Handle qXfer:threads. Announce availability
18577 thereof.
18578 * target.h (struct target_ops): New field core_of_thread.
18579
185802010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
18581
18582 * Makefile.in (clean): Remove new generated files.
18583 (reg-s390.o, reg-s390.c): Remove rules.
18584 (reg-s390x.o, reg-s390x.c): Likewise.
18585 (s390-linux32.o, s390-linux32.c): Add rules.
18586 (s390-linux64.o, s390-linux64.c): Likewise.
18587 (s390x-linux64.o, s390x-linux64.c): Likewise.
18588 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
18589 * linux-s390-low.c: Include <elf.h>.
18590 (HWCAP_S390_HIGH_GPRS): Define if undefined.
18591 (init_registers_s390): Remove prototype.
18592 (init_registers_s390x): Likewise.
18593 (init_registers_s390_linux32): Add prototype.
18594 (init_registers_s390_linux64): Likewise.
18595 (init_registers_s390x_linux64): Likewise.
18596 (s390_num_regs_3264): New define.
18597 (s390_regmap_3264): New global variable.
18598 (s390_cannot_fetch_register): Remove obsolete check.
18599 (s390_cannot_store_register): Likewise.
18600 (s390_collect_ptrace_register): Handle upper/lower register halves.
18601 (s390_supply_ptrace_register): Likewise.
18602 (s390_fill_gregset): Update to register number changes.
18603 (s390_get_hwcap): New routine.
18604 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
18605 Install appropriate regmap and register set.
18606
186072010-01-01 Joel Brobecker <brobecker@adacore.com>
18608
18609 * server.c (gdbserver_version): Update copyright year to 2010.
18610 * gdbreplay.c (gdbreplay_version): Likewise.
18611
186122009-12-28 Doug Evans <dje@google.com>
18613
18614 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
18615 elf/external.h. Include <elf.h> instead but only if necessary.
18616
186172009-12-28 Pedro Alves <pedro@codesourcery.com>
18618
18619 * linux-low.c (linux_remove_process): Remove `detaching'
18620 parameter. Don't release/detach from thread_db here.
18621 (linux_kill): Release/detach from thread_db here, ...
18622 (linux_detach): ... and here, before actually detaching.
18623 (linux_wait_1): ... and here, when a process exits.
18624 * thread-db.c (any_thread_of): New.
18625 (thread_db_free): Switch the current inferior to a thread of the
18626 passed in process.
18627
186282009-12-21 Doug Evans <dje@google.com>
18629
18630 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
18631
18632 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
18633 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
18634 warning ifndef __NR_tkill. Move setting of errno there too.
18635 Delete unnecessary resetting of errno after syscall.
18636 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
18637
18638 * configure.ac: Check for dladdr.
18639 * config.in: Regenerate.
18640 * configure: Regenerate.
18641 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
18642 (try_thread_db_load): Update.
18643
18644 * linux-low.c (my_waitpid): Delete unnecessary prototype.
18645
186462009-12-18 Doug Evans <dje@google.com>
18647
18648 * event-loop.c: Include unistd.h if it exists.
18649
18650 * linux-low.c (my_waitpid): Move definition away from being in
18651 between linux_tracefork_child/linux_test_for_tracefork.
18652
18653 * gdb_proc_service.h (psaddr_t): Fix type.
18654 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
18655 signature to match glibc.
18656
186572009-12-16 Doug Evans <dje@google.com>
18658
18659 * linux-low.c (linux_read_memory): Fix argument to read.
18660
186612009-11-26 Pedro Alves <pedro@codesourcery.com>
18662
18663 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
18664 events, don't leave current_inferior pointing at null.
18665
186662009-11-26 Pedro Alves <pedro@codesourcery.com>
18667
18668 * win32-low.c (LOG): Delete.
18669 (OUTMSG): Output to stderr.
18670 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
18671 on compile time LOG macro.
18672 (win32_wait): Fix debug output.
18673
186742009-11-26 Pedro Alves <pedro@codesourcery.com>
18675
18676 * win32-low.c (win32_add_one_solib): If the dll name is
18677 "ntdll.dll", prepend the system directory to the dll path.
18678
186792009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
18680
18681 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
18682
186832009-11-17 Nathan Sidwell <nathan@codesourcery.com>
18684 Vladimir Prus <vladimir@codesourcery.com>
18685
18686 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
18687 * configure.ac: Check for __mcoldfire__ and set
18688 gdb_cv_m68k_is_coldfire.
18689 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
18690 reg-cf.o and reg-m68k.o.
18691 * configure: Regenerated.
18692
186932009-11-16 Pedro Alves <pedro@codesourcery.com>
18694
18695 * linux-low.c (linux_remove_process): Add `detaching' parameter.
18696 Pass it to thread_db_free.
18697 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
18698 proper `detaching' argument to linux_remove_process.
18699 * linux-low.h (thread_db_free): Add `detaching' parameter.
18700 * thread-db.c (thread_db_init): Pass false as `detaching' argument
18701 to thread_db_free.
18702 (thread_db_free): Add `detaching' parameter. Only
18703 call td_ta_clear_event if detaching from process.
18704
187052009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
18706
18707 * thread-db.c (thread_db_free): Fix typo.
18708
187092009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
18710
18711 PR gdb/10838
18712 * thread-db.c (thread_db_free): Call td_ta_clear_event.
18713
187142009-11-03 Nathan Sidwell <nathan@codesourcery.com>
18715
18716 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
18717 with an i686 compiler.
18718 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
18719 needed.
18720 * configure: Rebuilt.
18721
187222009-10-29 Sandra Loosemore <sandra@codesourcery.com>
18723
18724 PR gdb/10783
18725
18726 * server.c (handle_search_memory_1): Correct read_addr initialization
18727 in loop for searching subsequent chunks.
18728
187292009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
18730
18731 * configure.ac: New --with-libthread-db option.
18732 * thread-db.c: Allow direct dependence on libthread_db.
18733 (thread_db_free): Adjust.
18734 * config.in: Regenerate.
18735 * configure: Likewise.
18736
187372009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
18738
18739 PR gdb/10757
18740 * thread-db.c (attach_thread): New function.
18741 (maybe_attach_thread): Return success/failure.
18742 (find_new_threads_callback): Adjust.
18743 (thread_db_find_new_threads): Loop until no new threads.
18744
187452009-10-13 Pedro Alves <pedro@codesourcery.com>
18746
18747 * proc-service.c (ps_lgetregs): Formatting.
18748
187492009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
18750
18751 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
18752 * configure.ac: Adjust.
18753 * linux-low.h (struct process_info_private): Move members to struct
18754 thread_db.
18755 (thread_db_free, thread_db_handle_monitor_command): New prototype.
18756 * linux-low.c (linux_remove_process): Adjust.
18757 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
18758 * server.c (handle_query): Move code ...
18759 (handle_monitor_command): ... here. New function.
18760 * target.h (struct target_ops): New member.
18761 * thread-db.c (struct thread_db): New.
18762 (libthread_db_search_path): New variable.
18763 (thread_db_create_event, thread_db_enable_reporting)
18764 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
18765 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
18766 (try_thread_db_load_1, dladdr_to_soname): New functions.
18767 (try_thread_db_load, thread_db_load_search): New functions.
18768 (thread_db_init): Search for libthread_db.
18769 (thread_db_free): New function.
18770 (thread_db_handle_monitor_command): Likewise.
18771 * config.in: Regenerate.
18772 * configure: Regenerate.
18773
187742009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
18775
18776 * spu-low.c (spu_kill): Wait for inferior to terminate.
18777 Call clear_inferiors.
18778 (spu_detach): Call clear_inferiors.
18779
187802009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18781
18782 * aclocal.m4: Regenerate.
18783 * config.in: Likewise.
18784 * configure: Likewise.
18785
187862009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18787
18788 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
18789 (parse_spufs_run): New function.
18790 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
18791 (ppc_breakpoint_at): Handle SPU breakpoints.
18792
187932009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18794
18795 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
18796 (SPUFS_MAGIC): Define.
18797 (spu_enumerate_spu_ids): New function.
18798 (linux_qxfer_spu): New function.
18799 (linux_target_ops): Install linux_qxfer_spu.
18800
188012009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18802
18803 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
18804 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
18805 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
18806 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
18807 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
18808 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
18809 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
18810 (init_registers_powerpc_cell32l): Add prototype.
18811 (init_registers_powerpc_cell64l): Likewise.
18812 (ppc_arch_setup): Detect Cell/B.E. architecture.
18813
188142009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18815
18816 * Makefile.in (datarootdir): New variable.
18817
188182009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18819
18820 * linux-low.c (linux_write_memory): Update debugging output.
18821 * Makefile.in (clean): Add new descriptions.
18822 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
18823 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
18824 * configure.srv: Add new files for arm*-*-linux*.
18825 * linux-arm-low.c: Add new declarations.
18826 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
18827 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
18828 (HWCAP_VFPv3D16): New.
18829 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
18830 instead of __IWMMXT__.
18831 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
18832 (arm_arch_setup): New.
18833 (target_regsets): Remove #ifdef. Add VFP regset.
18834 (the_low_target): Use arm_arch_setup.
18835
188362009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18837
18838 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
18839 the main thread again.
18840
188412009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
18842
18843 Adding Neutrino gdbserver.
18844 * configure: Regenerated.
18845 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
18846 * configure.srv (i[34567]86-*-nto*): New target.
18847 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
18848 * remote-utils.c [__QNX__]: Include sys/iomgr.h
18849 (nto_comctrl) [__QNX__]: New function.
18850 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
18851
188522009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
18853
18854 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
18855 srv_tgtobj.
18856
188572009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
18858 Pedro Alves <pedro@codesourcery.com>
18859
18860 * win32-i386-low.c (i386_get_thread_context): Handle systems that
18861 don't support CONTEXT_EXTENDED_REGISTERS.
18862 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
18863 (the_low_target): Install them.
18864 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
18865 failing with ERROR_PIPE_NOT_CONNECTED.
18866
188672009-06-30 Doug Evans <dje@google.com>
18868 Pierre Muller <muller@ics.u-strasbg.fr>
18869
18870 Add h/w watchpoint support to x86-linux, win32-i386.
18871 * Makefile.in (SFILES): Add i386-low.c
18872 (i386_low_h): Define.
18873 (i386-low.o): Add dependencies.
18874 (linux-x86-low.o): Add i386-low.h dependency.
18875 (win32-i386-low.o): Ditto.
18876 * i386-low.c: New file.
18877 * i386-low.h: New file.
18878 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
18879 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
18880 * linux-low.c (linux_add_process): Initialize arch_private.
18881 (linux_remove_process): Free arch_private.
18882 (add_lwp): Initialize arch_private.
18883 (delete_lwp): Free arch_private.
18884 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
18885 provided.
18886 * linux-low.h (process_info_private): New member arch_private.
18887 (lwp_info): New member arch_private.
18888 (linux_target_ops): New members new_process, new_thread,
18889 prepare_to_resume.
18890 (ptid_of): New macro.
18891 * linux-x86-low.c: Include stddef.h, i386-low.h.
18892 (arch_process_info): New struct.
18893 (arch_lwp_info): New struct.
18894 (x86_linux_dr_get, x86_linux_dr_set): New functions.
18895 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18896 (i386_dr_low_get_status): New function.
18897 (x86_insert_point, x86_remove_point): New functions.
18898 (x86_stopped_by_watchpoint): New function.
18899 (x86_stopped_data_address): New function.
18900 (x86_linux_new_process, x86_linux_new_thread): New functions.
18901 (x86_linux_prepare_to_resume): New function.
18902 (the_low_target): Add entries for insert_point, remove_point,
18903 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
18904 prepare_to_resume.
18905 * server.c (debug_hw_points): New global.
18906 (monitor_show_help): Document set debug-hw-points.
18907 (handle_query): Process "set debug-hw-points".
18908 * server.h (debug_hw_points): Declare.
18909 (paddress): Declare.
18910 * utils.c (NUMCELLS, CELLSIZE): New macros.
18911 (get_sell, xsnprintf, paddress): New functions.
18912 * win32-arm-low.c (the_low_target): Add entries for insert_point,
18913 remove_point, stopped_by_watchpoint, stopped_data_address.
18914 * win32-i386-low.c: Include i386-low.h.
18915 (debug_reg_state): Replaces dr.
18916 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18917 (i386_dr_low_get_status): New function.
18918 (i386_insert_point, i386_remove_point): New functions.
18919 (i386_stopped_by_watchpoint): New function.
18920 (i386_stopped_data_address): New function.
18921 (i386_initial_stuff): Update.
18922 (get_thread_context,set_thread_context,i386_thread_added): Update.
18923 (the_low_target): Add entries for insert_point,
18924 remove_point, stopped_by_watchpoint, stopped_data_address.
18925 * win32-low.c (win32_insert_watchpoint): New function.
18926 (win32_remove_watchpoint): New function.
18927 (win32_stopped_by_watchpoint): New function.
18928 (win32_stopped_data_address): New function.
18929 (win32_target_ops): Add entries for insert_watchpoint,
18930 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
18931 * win32-low.h (win32_target_ops): New members insert_point,
18932 remove_point, stopped_by_watchpoint, stopped_data_address.
18933
189342009-06-25 Pedro Alves <pedro@codesourcery.com>
18935
18936 * server.c (process_serial_event): Re-return unsupported, not
18937 error, if the type isn't recognized. Re-allow supporting only
18938 insert or remove packets. Also call require_running for
18939 breakpoints. Add missing break statement to default case. Tidy.
18940 * target.h (struct target_ops): Rename insert_watchpoint to
18941 insert_point, and remove_watchpoint to remove_point.
18942
18943 * linux-low.h (struct linux_target_ops): Likewise.
18944 * linux-low.c (linux_insert_watchpoint): Rename to ...
18945 (linux_insert_point): ... this. Adjust.
18946 (linux_remove_watchpoint): Rename to ...
18947 (linux_remove_point): ... this. Adjust.
18948 (linux_target_ops): Adjust.
18949 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
18950 (cris_insert_point): ... this.
18951 (cris_remove_watchpoint): Rename to ...
18952 (cris_remove_point): ... this.
18953 (the_low_target): Adjust.
18954
189552009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
18956
18957 * server.c (handle_v_kill): Pass signal_pid to
18958 kill_inferior if multi_process is zero.
18959
189602009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
18961
18962 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
18963 * target.h (target_ops): Comment for *_watchpoint to make it clear
18964 the functions can get types '0' and '1'.
18965
189662009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
18967
18968 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
18969 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
18970 * regcache.c (get_regcache): Likewise.
18971 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
18972 * win32-low.c (child_fetch_inferior_registers): Remove check for
18973 regno 0.
18974
189752009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
18976 Pedro Alves <pedro@codesourcery.com>
18977
18978 * target.h (struct target_ops) <supports_multi_process>: New
18979 callback.
18980 (target_supports_multi_process): New.
18981 * server.c (handle_query): Even if GDB reports support, only
18982 enable multi-process if the target also supports it. Report
18983 multi-process support only if the target backend supports it.
18984 * linux-low.c (linux_supports_multi_process): New function.
18985 (linux_target_ops): Install it as target_supports_multi_process
18986 callback.
18987
189882009-05-24 Doug Evans <dje@google.com>
18989
18990 Global renaming of find_thread_pid to find_thread_ptid.
18991 * server.h (find_thread_ptid): Renamed from find_thread_pid.
18992 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
18993 All callers updated.
18994
18995 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
18996 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
18997 directly.
18998
18999 * linux-low.c (get_stop_pc): Print pc if debug_threads.
19000 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
19001 (linux_resume_one_lwp): Ditto.
19002
190032009-05-23 Doug Evans <dje@google.com>
19004
19005 * linux-low.c (linux_resume_one_lwp): Change type of first arg
19006 from struct inferior_list_entry * to struct lwp_info *.
19007 All callers updated.
19008
190092009-05-13 Doug Evans <dje@google.com>
19010
19011 * linux-x86-low.c: Don't include assert.h.
19012 (x86_siginfo_fixup): Use fatal, not assert.
19013 (x86_arch_setup): Fix comment.
19014
190152009-05-12 Doug Evans <dje@google.com>
19016
19017 Biarch support for i386/amd64 gdbserver.
19018 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
19019 Add linux-x86-low.c.
19020 (linux-i386-low.o, linux-x86-64-low.o): Delete.
19021 (linux-x86-low.o): Add.
19022 * linux-x86-64-low.c: Delete.
19023 * linux-i386-low.c: Delete.
19024 * linux-x86-low.c: New file.
19025 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
19026 linux-x86-low.o.
19027 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
19028 linux-x86-low.o.
19029 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
19030 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
19031 (linux_child_pid_to_exec_file): New function.
19032 (elf_64_header_p, elf_64_file_p): New functions.
19033 (siginfo_fixup): New function.
19034 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
19035 give target a chance to convert layout.
19036 * linux-low.h (linux_target_ops): New member siginfo_fixup.
19037 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
19038
190392009-05-07 Doug Evans <dje@google.com>
19040
19041 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
19042 (regsets_store_inferior_registers): Ditto.
19043
190442009-05-06 Pedro Alves <pedro@codesourcery.com>
19045
19046 PR server/10048
19047
19048 * linux-low.c (must_set_ptrace_flags): Delete.
19049 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
19050 of the global.
19051 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
19052 `lwp->must_set_ptrace_flags' instead.
19053 (linux_wait_for_event_1): Set ptrace options here.
19054 (linux_wait_1): ... not here.
19055
190562009-04-30 Doug Evans <dje@google.com>
19057
19058 * inferiors.c (started_inferior_callback): New function.
19059 (attached_inferior_callback): New function.
19060 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
19061 * server.c (print_started_pid, print_attached_pid): New functions.
19062 (detach_or_kill_for_exit): New function.
19063 (main): Call it instead of for_each_inferior (kill_inferior_callback).
19064 * server.h (have_started_inferiors_p): Declare.
19065 (have_attached_inferiors_p): Declare.
19066
19067 * inferiors.c (remove_process): Fix memory leak, free process.
19068 * linux-low.c (linux_remove_process): New function.
19069 (linux_kill): Call it instead of remove_process.
19070 (linux_detach, linux_wait_1): Ditto.
19071
190722009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
19073
19074 * configure.srv: Add x86 Windows CE target.
19075
190762009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19077
19078 * inferiors.c (get_thread_process): Make global.
19079 * server.h (get_thread_process): Add prototype.
19080 * thread-db.c (find_one_thread): Use get_thread_process
19081 instead of current_process.
19082 (thread_db_get_tls_address): Do not crash if called when
19083 thread layer is not yet initialized.
19084
190852009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19086
19087 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
19088 * spu-low.c (current_tid): Rename to ...
19089 (current_ptid): ... this.
19090 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
19091 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
19092 ptid_get_lwp (current_ptid) instead of current_tid.
19093 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
19094 instead of current_tid. Use find_process_pid to verify pid
19095 argument is valid. Pass proper argument to remove_process.
19096 (spu_thread_alive): Compare current_ptid instead of current_tid.
19097 (spu_resume): Likewise.
19098
190992009-04-02 Pedro Alves <pedro@codesourcery.com>
19100
19101 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
19102 variable.
19103
191042009-04-01 Pedro Alves <pedro@codesourcery.com>
19105
19106 Implement the multiprocess extensions, and add linux multiprocess
19107 support.
19108
19109 * server.h (ULONGEST): Declare.
19110 (struct ptid, ptid_t): New.
19111 (minus_one_ptid, null_ptid): Declare.
19112 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19113 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
19114 (struct inferior_list_entry): Change `id' type from unsigned from
19115 to ptid_t.
19116 (struct sym_cache, struct breakpoint, struct
19117 process_info_private): Forward declare.
19118 (struct process_info): Declare.
19119 (current_process): Declare.
19120 (all_processes): Declare.
19121 (initialize_inferiors): Declare.
19122 (add_thread): Adjust to use ptid_t.
19123 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
19124 (add_process, remove_process, find_thread_pid): Declare.
19125 (find_inferior_id): Adjust to use ptid_t.
19126 (cont_thread, general_thread, step_thread): Change type to ptid_t.
19127 (multi_process): Declare.
19128 (push_event): Adjust to use ptid_t.
19129 (read_ptid, write_ptid): Declare.
19130 (prepare_resume_reply): Adjust to use ptid_t.
19131 (clear_symbol_cache): Declare.
19132 * inferiors.c (all_processes): New.
19133 (null_ptid, minus_one_ptid): New.
19134 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19135 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
19136 (add_thread): Change unsigned long to ptid. Remove gdb_id
19137 parameter. Adjust.
19138 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
19139 (gdb_id_to_thread): Rename to ...
19140 (find_thread_pid): ... this. Change unsigned long to ptid.
19141 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
19142 (loaded_dll, pull_pid_from_list): Adjust.
19143 (add_process, remove_process, find_process_pid)
19144 (get_thread_process, current_process, initialize_inferiors): New.
19145 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
19146 (struct target_waitstatus) <related_pid>: Ditto.
19147 (struct target_ops) <kill, detach>: Add `pid' argument. Change
19148 return type to int.
19149 (struct target_ops) <join>: Add `pid' argument.
19150 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
19151 (struct target_ops) <wait>: Add `ptid' field. Change return type
19152 to ptid.
19153 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
19154 (mywait): Add `ptid' argument. Change return type to ptid_t.
19155 (target_pid_to_str): Declare.
19156 * target.c (set_desired_inferior): Adjust to use ptids.
19157 (mywait): Add new `ptid' argument. Adjust.
19158 (target_pid_to_str): New.
19159 * mem-break.h (free_all_breakpoints): Declare.
19160 * mem-break.c (breakpoints): Delelete.
19161 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
19162 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
19163 to use per-process breakpoint list.
19164 (free_all_breakpoints): New.
19165 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
19166 (symbol_cache, all_symbols_looked_up): Delete.
19167 (hexchars): New.
19168 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
19169 read_ptid): New.
19170 (prepare_resume_reply): Change ptid argument's type from unsigned
19171 long to ptid_t. Adjust. Implement W;process and X;process.
19172 (free_sym_cache, clear_symbol_cache): New.
19173 (look_up_one_symbol): Adjust to per-process symbol cache. *
19174 * server.c (cont_thread, general_thread, step_thread): Change type
19175 to ptid_t.
19176 (attached): Delete.
19177 (multi_process): New.
19178 (last_ptid): Change type to ptid_t.
19179 (struct vstop_notif) <ptid>: Change type to ptid_t.
19180 (queue_stop_reply, push_event): Change `ptid' argument's type to
19181 ptid_t.
19182 (discard_queued_stop_replies): Add `pid' argument.
19183 (start_inferior): Adjust to use ptids. Adjust to mywait interface
19184 changes. Don't reference the `attached' global.
19185 (attach_inferior): Adjust to mywait interface changes.
19186 (handle_query): Adjust to use ptids. Parse GDB's qSupported
19187 features. Handle and report "multiprocess+". Handle
19188 "qAttached:PID".
19189 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
19190 changes.
19191 (handle_v_kill): New.
19192 (handle_v_stopped): Adjust to use target_pid_to_str.
19193 (handle_v_requests): Allow multiple attaches and runs when
19194 multiprocess extensions are in effect. Handle "vKill".
19195 (myresume): Adjust to use ptids.
19196 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
19197 (handle_status): Adjust to discard_queued_stop_replies interface
19198 change.
19199 (first_thread_of, kill_inferior_callback)
19200 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
19201 (main): Call initialize_inferiors. Adjust to use ptids, killing
19202 and detaching from all inferiors. Handle multiprocess packet
19203 variants.
19204 * linux-low.h: Include gdb_proc_service.h.
19205 (struct process_info_private): New.
19206 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
19207 <lwpid_of>: Use ptid_get_lwp.
19208 (get_lwp_thread): Adjust.
19209 (struct lwp_info): Add `dead' member.
19210 (find_lwp_pid): Declare.
19211 * linux-low.c (thread_db_active): Delete.
19212 (new_inferior): Adjust comment.
19213 (inferior_pid): Delete.
19214 (linux_add_process): New.
19215 (handle_extended_wait): Adjust.
19216 (add_lwp): Change unsigned long to ptid.
19217 (linux_create_inferior): Add process to processes table. Adjust
19218 to use ptids. Don't set new_inferior here.
19219 (linux_attach_lwp): Rename to ...
19220 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
19221 it. Adjust to use ptids.
19222 (linux_attach_lwp): New.
19223 (linux_attach): Add process to processes table. Don't set
19224 new_inferior here.
19225 (struct counter): New.
19226 (second_thread_of_pid_p, last_thread_of_process_p): New.
19227 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
19228 multiple processes.
19229 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
19230 processes. Remove process from process table.
19231 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
19232 to multiple processes.
19233 (any_thread_of): New.
19234 (linux_detach): Add `pid' argument, and handle it. Remove process
19235 from processes table.
19236 (linux_join): Add `pid' argument. Handle it.
19237 (linux_thread_alive): Change unsighed long argument to ptid_t.
19238 Consider dead lwps as not being alive.
19239 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
19240 threads we're not interested in.
19241 (same_lwp, find_lwp_pid): New.
19242 (linux_wait_for_lwp): Change `pid' argument's type from int to
19243 ptid_t. Adjust.
19244 (linux_wait_for_event): Rename to ...
19245 (linux_wait_for_event_1): ... this. Change `pid' argument's type
19246 from int to ptid_t. Adjust.
19247 (linux_wait_for_event): New.
19248 (linux_wait_1): Add `ptid' argument. Change return type to
19249 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
19250 that exit from the process table.
19251 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
19252 Adjust.
19253 (mark_lwp_dead): New.
19254 (wait_for_sigstop): Adjust to use ptids. If a process exits while
19255 stopping all threads, mark its main lwp as dead.
19256 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
19257 ptids.
19258 (fetch_register, usr_store_inferior_registers)
19259 (regsets_fetch_inferior_registers)
19260 (regsets_store_inferior_registers, linux_read_memory)
19261 (linux_write_memory): Inline `inferior_pid'.
19262 (linux_look_up_symbols): Adjust to use per-process
19263 `thread_db_active'.
19264 (linux_request_interrupt): Adjust to use ptids.
19265 (linux_read_auxv): Inline `inferior_pid'.
19266 (initialize_low): Don't reference thread_db_active.
19267 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
19268 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
19269 (ps_getpid): Return the pid of the current inferior.
19270 * thread-db.c (proc_handle, thread_agent): Delete.
19271 (thread_db_create_event, thread_db_enable_reporting): Adjust to
19272 per-process data.
19273 (find_one_thread): Change argument type to ptid_t. Adjust to
19274 per-process data.
19275 (maybe_attach_thread): Adjust to per-process data and ptids.
19276 (thread_db_find_new_threads): Ditto.
19277 (thread_db_init): Ditto.
19278 * spu-low.c (spu_create_inferior, spu_attach): Add process to
19279 processes table. Adjust to use ptids.
19280 (spu_kill, spu_detach): Adjust interface. Remove process from
19281 processes table.
19282 (spu_join, spu_thread_alive): Adjust interface.
19283 (spu_wait): Adjust interface. Remove process from processes
19284 table. Adjust to use ptids.
19285 * win32-low.c (current_inferior_tid): Delete.
19286 (current_inferior_ptid): New.
19287 (debug_event_ptid): New.
19288 (thread_rec): Take a ptid. Adjust.
19289 (child_add_thread): Add `pid' argument. Adjust to use ptids.
19290 (child_delete_thread): Ditto.
19291 (do_initial_child_stuff): Add `attached' argument. Add process to
19292 processes table.
19293 (child_fetch_inferior_registers, child_store_inferior_registers):
19294 Adjust.
19295 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
19296 (win32_attach): Pass 1 to do_initial_child_stuff.
19297 (win32_kill): Adjust interface. Remove process from processes
19298 table.
19299 (win32_detach): Ditto.
19300 (win32_join): Adjust interface.
19301 (win32_thread_alive): Take a ptid.
19302 (win32_resume): Adjust to use ptids.
19303 (get_child_debug_event): Ditto.
19304 (win32_wait): Adjust interface. Remove exiting process from
19305 processes table.
19306
193072009-04-01 Pedro Alves <pedro@codesourcery.com>
19308
19309 Non-stop mode support.
19310
19311 * server.h (non_stop): Declare.
19312 (gdb_client_data, handler_func): Declare.
19313 (delete_file_handler, add_file_handler, start_event_loop):
19314 Declare.
19315 (handle_serial_event, handle_target_event, push_event)
19316 (putpkt_notif): Declare.
19317 * target.h (enum resume_kind): New.
19318 (struct thread_resume): Replace `step' field by `kind' field.
19319 (TARGET_WNOHANG): Define.
19320 (struct target_ops) <wait>: Add `options' argument.
19321 <supports_non_stop, async, start_non_stop>: New fields.
19322 (target_supports_non_stop, target_async): New.
19323 (start_non_stop): Declare.
19324 (mywait): Add `options' argument.
19325 * target.c (mywait): Add `options' argument. Print child exit
19326 notifications here.
19327 (start_non_stop): New.
19328 * server.c (non_stop, own_buf, mem_buf): New globals.
19329 (struct vstop_notif): New.
19330 (notif_queue): New global.
19331 (queue_stop_reply, push_event, discard_queued_stop_replies)
19332 (send_next_stop_reply): New.
19333 (start_inferior): Adjust to use resume_kind. Adjust to mywait
19334 interface changes.
19335 (attach_inferior): In non-stop mode, don't wait for the target
19336 here.
19337 (handle_general_set): Handle QNonStop.
19338 (handle_query): When handling qC, return the current general
19339 thread, instead of the first thread of the list.
19340 (handle_query): If the backend supports non-stop mode, include
19341 QNonStop+ in the qSupported query response.
19342 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
19343 and non-stop mode.
19344 (handle_v_attach, handle_v_run): Handle non-stop mode.
19345 (handle_v_stopped): New.
19346 (handle_v_requests): Report support for vCont;t. Handle vStopped.
19347 (myresume): Adjust to use resume_kind. Handle non-stop.
19348 (queue_stop_reply_callback): New.
19349 (handle_status): Handle non-stop mode.
19350 (main): Clear non_stop flag on reconnection. Use the event-loop.
19351 Refactor serial protocol handling from here ...
19352 (process_serial_event): ... to this new function. When GDB
19353 selects any thread, select one here. In non-stop mode, wait until
19354 GDB acks all pending events before exiting.
19355 (handle_serial_event, handle_target_event): New.
19356 * remote-utils.c (remote_open): Install remote_desc in the event
19357 loop.
19358 (remote_close): Remove remote_desc from the event loop.
19359 (putpkt_binary): Rename to...
19360 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
19361 (putpkt_binary): New as wrapper around putpkt_binary_1.
19362 (putpkt_notif): New.
19363 (prepare_resume_reply): In non-stop mode, don't change the
19364 general_thread.
19365 * event-loop.c: New.
19366 * Makefile.in (OBJ): Add event-loop.o.
19367 (event-loop.o): New rule.
19368
19369 * linux-low.h (pid_of): Moved here.
19370 (lwpid_of): New.
19371 (get_lwp_thread): Use lwpid_of.
19372 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
19373 * linux-low.c (pid_of): Delete.
19374 (inferior_pid): Use lwpid_of.
19375 (linux_event_pipe): New.
19376 (target_is_async_p): New.
19377 (delete_lwp): New.
19378 (handle_extended_wait): Use lwpid_of.
19379 (add_lwp): Don't set lwpid field.
19380 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
19381 (linux_kill_one_lwp): If killing a running lwp, stop it first.
19382 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
19383 (linux_detach_one_lwp): If detaching from a running lwp, stop it
19384 first. Adjust to linux_wait_for_event interface changes. Use
19385 lwpid_of.
19386 (linux_detach): Don't delete the main lwp here.
19387 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
19388 (status_pending_p): Don't consider explicitly suspended lwps.
19389 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
19390 pointer. Add OPTIONS argument. Change return type to int. Use
19391 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
19392 (linux_wait_for_event): Take an integer pid instead of a lwp_info
19393 pointer. Add status pointer argument. Return a pid instead of a
19394 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
19395 changes. In non-stop mode, don't switch to a random thread.
19396 (linux_wait): Rename to...
19397 (linux_wait_1): ... this. Add target_options argument, and handle
19398 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
19399 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
19400 clean exit and signal exit code. Don't stop all threads in
19401 non-stop mode. In all-stop mode, only stop all threads when
19402 reporting a stop to GDB. Handle explicit thread stop requests.
19403 (async_file_flush, async_file_mark): New.
19404 (linux_wait): New.
19405 (send_sigstop): Use lwpid_of.
19406 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
19407 interface changes. In non-stop mode, don't switch to a random
19408 thread.
19409 (linux_resume_one_lwp): Use lwpid_of.
19410 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
19411 (linux_resume_one_thread): ... this. Handle resume_stop. In
19412 non-stop mode, don't look for pending flag in all threads.
19413 (resume_status_pending_p): Don't consider explicitly suspended
19414 threads.
19415 (my_waitpid): Reimplement. Emulate __WALL.
19416 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19417 Use lwpid_of.
19418 (sigchld_handler, linux_supports_non_stop, linux_async)
19419 (linux_start_non_stop): New.
19420 (linux_target_ops): Register linux_supports_non_stop, linux_async
19421 and linux_start_non_stop.
19422 (initialize_low): Install SIGCHLD handler.
19423 * thread-db.c (thread_db_create_event, find_one_thread)
19424 (thread_db_get_tls_address): Use lwpid_of.
19425 * win32-low.c (win32_detach): Adjust to use resume_kind.
19426 (win32_wait): Add `options' argument.
19427 * spu-low.c (spu_resume): Adjust to use resume_kind.
19428 (spu_wait): Add `options' argument.
19429
194302009-04-01 Pedro Alves <pedro@codesourcery.com>
19431
19432 Decouple target code from remote protocol.
19433
19434 * target.h (enum target_waitkind): New.
19435 (struct target_waitstatus): New.
19436 (struct target_ops) <wait>: Return an unsigned long. Take a
19437 target_waitstatus pointer instead of a char pointer.
19438 (mywait): Likewise.
19439 * target.c (mywait): Change prototype to return an unsigned long.
19440 Take a target_waitstatus pointer instead of a char pointer. Adjust.
19441 * server.h (thread_from_wait, old_thread_from_wait): Delete
19442 declarations.
19443 (prepare_resume_reply): Change prototype to take a
19444 target_waitstatus.
19445 * server.c (thread_from_wait, old_thread_from_wait): Delete.
19446 (last_status, last_ptid): New.
19447 (start_inferior): Remove "statusptr" argument. Adjust. Return a
19448 pid instead of a signal.
19449 (attach_inferior): Remove "status" and "signal" parameters.
19450 Adjust.
19451 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
19452 not as an address.
19453 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
19454 (handle_v_requests, myresume): Remove "status" and "signal"
19455 parameters. Adjust.
19456 (handle_status): New.
19457 (main): Delete local `status'. Adjust.
19458 * remote-utils.c: Include target.h.
19459 (prepare_resume_reply): Change prototype to take a
19460 target_waitstatus. Adjust.
19461
19462 * linux-low.c (linux_wait): Adjust to new target_ops->wait
19463 interface.
19464 * spu-low.c (spu_wait): Adjust.
19465 * win32-low.c (enum target_waitkind, struct target_waitstatus):
19466 Delete.
19467 (win32_wait): Adjust.
19468
194692009-04-01 Pedro Alves <pedro@codesourcery.com>
19470
19471 * target.h (struct thread_resume): Delete leave_stopped member.
19472 (struct target_ops): Add a `n' argument to the `resume' callback.
19473 * server.c (start_inferior): Adjust.
19474 (handle_v_cont, myresume): Adjust.
19475 * linux-low.c (check_removed_breakpoint): Adjust to resume
19476 interface change, and to removed leave_stopped field.
19477 (resume_ptr): Delete.
19478 (struct thread_resume_array): New.
19479 (linux_set_resume_request): Add new `arg' parameter. Adjust to
19480 resume interface change.
19481 (linux_continue_one_thread, linux_queue_one_thread)
19482 (resume_status_pending_p): Check if the resume field is NULL
19483 instead of checking the leave_stopped member.
19484 (linux_resume): Adjust to the target resume interface change.
19485 * spu-low.c (spu_resume): Adjust to the target resume interface
19486 change.
19487 * win32-low.c (win32_detach, win32_resume): Ditto.
19488
194892009-04-01 Pedro Alves <pedro@codesourcery.com>
19490
19491 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
19492 flag.
19493 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
19494 pending.
19495 (linux_continue_one_thread): Only preserve the stepping flag if
19496 there's a pending breakpoint.
19497
194982009-03-31 Pedro Alves <pedro@codesourcery.com>
19499
19500 * server.c (main): After the inferior having exited, call
19501 remote_close before exiting gdbserver.
19502
195032009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
19504
19505 Fix size of FPSCR in Power 7 processors.
19506 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
19507 (PPC_FEATURE_HAS_DFP): New #define.
19508 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
19509 size of the FPSCR.
19510
195112009-03-23 Pedro Alves <pedro@codesourcery.com>
19512
19513 * server.c (handle_query) Whitespace and formatting.
19514
195152009-03-22 Pedro Alves <pedro@codesourcery.com>
19516
19517 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
19518 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
19519 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
19520 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
19521 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
19522 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
19523 Makefile.in, configure.ac: Fix whitespace throughout.
19524 * configure: Regenerate.
19525
195262009-03-22 Pedro Alves <pedro@codesourcery.com>
19527
19528 * inferiors.c (find_inferior): Make it safe for the callback
19529 function to delete the currently iterated inferior.
19530
195312009-03-22 Pedro Alves <pedro@codesourcery.com>
19532
19533 * Makefile.in (linuw_low_h): Move higher.
19534 (thread-db.o): Depend on $(linux_low_h).
19535
195362009-03-17 Pedro Alves <pedro@codesourcery.com>
19537
19538 Rename "process" to "lwp" throughout.
19539
19540 * linux-low.c (all_processes): Rename to...
19541 (all_lwps): ... this.
19542 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
19543 (add_process): Rename to ...
19544 (add_lwp): ... this. Adjust.
19545 (linux_create_inferior): Adjust.
19546 (linux_attach_lwp): Adjust.
19547 (linux_attach): Adjust.
19548 (linux_kill_one_process): Rename to ...
19549 (linux_kill_one_lwp): ... this. Adjust.
19550 (linux_kill): Adjust.
19551 (linux_detach_one_process): Rename to ...
19552 (linux_detach_one_lwp): ... this. Adjust.
19553 (linux_detach): Adjust.
19554 (check_removed_breakpoint): Adjust.
19555 (status_pending_p): Adjust.
19556 (linux_wait_for_process): Rename to ...
19557 (linux_wait_for_lwp): ... this. Adjust.
19558 (linux_wait_for_event): Adjust.
19559 (send_sigstop): Adjust.
19560 (wait_for_sigstop): Adjust.
19561 (stop_all_processes): Rename to ...
19562 (stop_all_lwps): ... this.
19563 (linux_resume_one_process): Rename to ...
19564 (linux_resume_one_lwp): ... this. Adjust.
19565 (linux_set_resume_request, linux_continue_one_thread)
19566 (linux_queue_one_thread, resume_status_pending_p)
19567 (usr_store_inferior_registers, regsets_store_inferior_registers)
19568 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19569 Adjust.
19570 * linux-low.h (get_process): Rename to ...
19571 (get_lwp): ... this. Adjust.
19572 (get_thread_process): Rename to ...
19573 (get_thread_lwp): ... this. Adjust.
19574 (get_process_thread): Rename to ...
19575 (get_lwp_thread): ... this. Adjust.
19576 (struct process_info): Rename to ...
19577 (struct lwp_info): ... this.
19578 (all_processes): Rename to ...
19579 (all_lwps): ... this.
19580 * proc-service.c (ps_lgetregs): Adjust.
19581 * thread-db.c (thread_db_create_event, find_one_thread)
19582 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
19583
195842009-03-14 Pedro Alves <pedro@codesourcery.com>
19585
19586 * server.c (handle_query): Handle "qAttached".
19587
195882009-03-13 Nathan Sidwell <nathan@codesourcery.com>
19589
19590 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
19591 GPLv3, update license URL.
19592
195932009-03-01 Doug Evans <dje@google.com>
19594
19595 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
19596 (server_h): Add gdb_signals.h.
19597 (signals.o): Update.
19598 * server.h (target_signal_from_host,target_signal_to_host_p)
19599 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
19600
196012009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
19602
19603 * remote-utils.c (getpkt): Also generate remote-debug
19604 information if noack_mode is set.
19605
196062009-02-06 Pedro Alves <pedro@codesourcery.com>
19607
19608 * server.c (handle_query): Report qXfer:siginfo:read and
19609 qXfer:siginfo:write as supported and handle them.
19610 * target.h (struct target_ops) <qxfer_siginfo>: New field.
19611 * linux-low.c (linux_xfer_siginfo): New.
19612 (linux_target_ops): Set it.
19613
196142009-01-26 Pedro Alves <pedro@codesourcery.com>
19615
19616 * server.c (gdbserver_usage): Mention --remote-debug.
19617 (main): Accept '--remote-debug' switch.
19618
196192009-01-18 Doug Evans <dje@google.com>
19620
19621 * regcache.c (new_register_cache): No need to check result of xcalloc.
19622 * server.c (handle_search_memory): Back out calls to xmalloc,
19623 result is checked and error is returned to user upon failure.
19624 (handle_query): Ditto. Add more checks for result of malloc.
19625 (handle_v_cont): Check result of malloc, report error back to
19626 user upon failure.
19627 (handle_v_run): Ditto. Call freeargv.
19628 * server.h (freeargv): Declare.
19629 * utils.c (freeargv): New fn.
19630
196312009-01-15 Doug Evans <dje@google.com>
19632
19633 * gdbreplay.c (perror_with_name): Make arg const char *.
19634 * server.h (target_signal_to_name): Make return type const char *.
19635 * thread-db.c (thread_db_err_str): Make return type const char *.
19636 * utils.c (perror_with_name): Make arg const char *.
19637
196382009-01-14 Pedro Alves <pedro@codesourcery.com>
19639
19640 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
19641 when handling a EXIT_PROCESS_DEBUG_EVENT.
19642
196432009-01-06 Joel Brobecker <brobecker@adacore.com>
19644
19645 * gdbreplay.c (gdbreplay_version): Update copyright year.
19646 * server.c (gdbserver_version): Likewise.
19647
196482009-01-05 Doug Evans <dje@google.com>
19649
19650 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
19651 (handle_extended_wait): Improve comment.
19652
196532008-12-13 Doug Evans <dje@google.com>
19654
19655 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
19656 * server.h (ATTR_MALLOC): New macro.
19657 (xmalloc,xcalloc,xstrdup): Declare.
19658 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
19659 * inferiors.c: Ditto.
19660 * linux-low.c: Ditto.
19661 * mem-break.c: Ditto.
19662 * regcache.c: Ditto.
19663 * remote-utils.c: Ditto.
19664 * server.c: Ditto.
19665 * target.c: Ditto.
19666 * win32-low.c: Ditto.
19667
196682008-12-12 Doug Evans <dje@google.com>
19669
19670 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
19671 in debugging printf.
19672
19673 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
19674
196752008-12-09 Doug Evans <dje@google.com>
19676
19677 * linux-low.h (struct process_info): Delete member tid, unused.
19678 * thread-db.c (find_one_thread): Update.
19679 (maybe_attach_thread): Update.
19680
196812008-12-02 Pedro Alves <pedro@codesourcery.com>
19682
19683 * target.h (struct target_ops): Add qxfer_osdata member.
19684 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
19685 and dirent.h.
19686 (linux_qxfer_osdata): New functions.
19687 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
19688 callback.
19689 * server.c (handle_query): Handle "qXfer:osdata:read:".
19690 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
19691 (buffer_xml_printf): New functions.
19692 * server.h (struct buffer): New.
19693 (buffer_grow_str, buffer_grow_str0): New macros.
19694 (buffer_grow, buffer_free, buffer_init, buffer_finish)
19695 (buffer_xml_printf): Declare.
19696
196972008-11-24 Doug Evans <dje@google.com>
19698
19699 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
19700
197012008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
19702
19703 * server.c (handle_v_run): Always use the supplied argument list.
19704
197052008-11-19 Bob Wilson <bob.wilson@acm.org>
19706
19707 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
19708 (xtensa_regmap_table): Add entry for scompare1.
19709
197102008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
19711
19712 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
19713 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
19714 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
19715 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
19716 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
19717 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
19718 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
19719 XML target descriptions.
19720 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
19721 when inferior is running on an ISA 2.05 or later processor. Add
19722 special case to return offset for full 64-bit slot of FPSCR when
19723 in 32-bits.
19724
197252008-11-14 Daniel Gutson <dgutson@codesourcery.com>
19726
19727 * Makefile.in (SFILES, clean): Added sparc64 files.
19728 (reg-sparc64.o, reg-sparc64.c): New.
19729 * configure.srv (sparc*-*-linux*): New configuration.
19730 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
19731 syscall arguments for SPARC.
19732 (regsets_store_inferior_registers): Likewise.
19733 * linux-sparc-low.c: New file.
19734
197352008-10-21 Doug Evans <dje@google.com>
19736
19737 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
19738 (READLINE_DIR,READLINE_DEP): Delete.
19739 (INTERNAL_CFLAGS): Update.
19740 (LINTFLAGS): Update.
19741
197422008-10-10 Pedro Alves <pedro@codesourcery.com>
19743
19744 * server.c (handle_v_run): If GDB didn't specify an argv, use the
19745 whole argv from the last run, not just argv[0].
19746
197472008-09-08 Pedro Alves <pedro@codesourcery.com>
19748
19749 * regcache.c (new_register_cache): Return NULL if the register
19750 cache size isn't known yet.
19751 (free_register_cache): Avoid dereferencing a NULL regcache.
19752
197532008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
19754
19755 * configure.srv: Merge MIPS and MIPS64.
19756
197572008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
19758
19759 * Makefile.in (uninstall): Apply $(EXEEXT) too.
19760
197612008-08-18 Luis Machado <luisgpm@br.ibm.com>
19762
19763 * Makefile.in: Add required vsx dependencies.
19764
19765 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
19766 Declare init_registers_powerpc_vsx32l.
19767 Declare init_registers_powerpc_vsx64l.
19768 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
19769 (ppc_arch_setup): Check for VSX in hwcap.
19770 (ppc_fill_vsxregset): New function.
19771 (ppc_store_vsxregset): New function.
19772 Add new VSX entry in regset_info target_regsets.
19773
19774 * configure.srv: Add new VSX dependencies.
19775
197762008-08-12 Pedro Alves <pedro@codesourcery.com>
19777
19778 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
19779 (remote_open): Set or clear transport_is_reliable.
19780 (putpkt_binary): Don't expect acks in noack mode.
19781 (getpkt): Don't send ack/nac in noack mode.
19782 * server.c (handle_general_set): Handle QStartNoAckMode.
19783 (handle_query): If connected by tcp pass QStartNoAckMode+ in
19784 qSupported.
19785 (main): Reset noack_mode on every connection.
19786 * server.h (noack_mode): Declare.
19787
197882008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19789
19790 * Makefile.in (GDBREPLAY_OBS): New variable.
19791 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
19792
197932008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
19794 Daniel Jacobowitz <dan@codesourcery.com>
19795
19796 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
19797 (usr_store_inferior_registers): Likewise.
19798 (regsets_store_inferior_registers): Likewise.
19799
198002008-07-31 Rolf Jansen <rj@surtec.com>
19801 Pedro Alves <pedro@codesourcery.com>
19802
19803 * configure.ac: Check for memmem declaration.
19804 * server.c [HAVE_MALLOC_H]: Include malloc.h.
19805 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
19806 (disable_packet_qfThreadInfo): Unconditionally compile.
19807 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
19808 * configure, config.in: Regenerate.
19809
198102008-07-28 Doug Kwan <dougkwan@google.com>
19811
19812 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
19813 (linux_write_memory): Remove declaration of errno.
19814
198152008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
19816
19817 * linux-low.c (handle_extended_wait): Do not use "status"
19818 variable uninitialized.
19819
198202008-07-07 Pedro Alves <pedro@codesourcery.com>
19821
19822 * server.c (handle_v_attach): Inhibit reporting dll changes.
19823
198242008-06-27 Pedro Alves <pedro@codesourcery.com>
19825
19826 * remote-utils.c (prepare_resume_reply): If requested, don't
19827 output "thread:TID" in the T stop reply.
19828
19829 * server.c (disable_packet_vCont, disable_packet_Tthread)
19830 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
19831 (handle_query): If requested, disable support for qC, qfThreadInfo
19832 and qsThreadInfo.
19833 (handle_v_requests): If requested, disable support for vCont.
19834 (gdbserver_show_disableable): New.
19835 (main): Handle --disable-packet and --disable-packet=LIST.
19836
19837 * server.h (disable_packet_vCont, disable_packet_Tthread)
19838 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
19839
198402008-06-20 Carlos O'Donell <carlos@codesourcery.com>
19841
19842 * server.c (gdbserver_usage): Mention --version.
19843
198442008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
19845
19846 * Makefile.in (gdbreplay.o): New rule.
19847
198482008-06-06 Joseph Myers <joseph@codesourcery.com>
19849
19850 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
19851 message, not gdbserver.
19852
198532008-06-05 Vladimir Prus <vladimir@codesourcery.com>
19854 Nathan Sidwell <nathan@codesourcery.com>
19855 Joseph Myers <joseph@codesourcery.com>
19856
19857 * acinclude.m4: Include ../../config/acx.m4.
19858 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
19859 * configure, config.in: Regenerate.
19860 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
19861 * server.c (gdbserver_version): Print PKGVERSION.
19862 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
19863 (main): Adjust gdbserver_usage calls.
19864 * gdbreplay.c (version, host_name): Add declarations.
19865 (gdbreplay_version, gdbreplay_usage): New.
19866 (main): Accept --version and --help options.
19867
198682008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
19869
19870 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
19871 (arm_breakpoint_at): Handle Thumb.
19872 (the_low_target): Add comment.
19873
198742008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
19875
19876 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
19877
198782008-05-09 Doug Evans <dje@google.com>
19879
19880 * server.h (decode_search_memory_packet): Declare.
19881 * remote-utils.c (decode_search_memory_packet): New fn.
19882 * server.c (handle_search_memory_1): New fn.
19883 (handle_search_memory): New fn.
19884 (handle_query): Process qSearch:memory packets.
19885
198862008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
19887
19888 * regcache.c (registers_length): Remove.
19889 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
19890 full register packet.
19891 * regcache.h (registers_length): Remove prototype.
19892 * server.h (PBUFSIZ): Define to 16384.
19893
198942008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
19895
19896 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
19897 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
19898 powerpc-64l.o, and powerpc-altivec64l.o.
19899 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
19900 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
19901 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
19902 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
19903 rs6000/power-linux.xml, and rs6000/power64-linux.xml
19904 to srv_xmlfiles.
19905
19906 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
19907 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
19908 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
19909 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
19910 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
19911 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
19912 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
19913 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
19914 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
19915 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
19916 (clean): Update.
19917
19918 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
19919 (init_registers_powerpc_32l): ... this new prototype.
19920 (init_registers_powerpc_32): Remove, replace by ...
19921 (init_registers_powerpc_altivec32l): ... this new prototype.
19922 (init_registers_powerpc_e500): Remove, replace by ...
19923 (init_registers_powerpc_e500l): ... this new prototype.
19924 (init_registers_ppc64): Remove, replace by ...
19925 (init_registers_powerpc_64l): ... this new prototype.
19926 (init_registers_powerpc_64): Remove, replace by ...
19927 (init_registers_powerpc_altivec64l): ... this new prototype.
19928 (ppc_num_regs): Set to 73.
19929 (PT_ORIG_R3, PT_TRAP): Define if necessary.
19930 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
19931 (ppc_cannot_store_register): Handle orig_r3 and trap.
19932 (ppc_arch_setup): Update init_registers_... calls.
19933 (ppc_fill_gregset): Handle orig_r3 and trap.
19934
19935 * inferiors.c (clear_inferiors): Reset current_inferior.
19936
199372008-04-23 Paolo Bonzini <bonzini@gnu.org>
19938
19939 * acinclude.m4: Add override.m4.
19940 * configure: Regenerate.
19941
199422008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
19943
19944 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
19945 initial call to init_register_ppc64.
19946
199472008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
19948
19949 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
19950 single powerpc*-*-linux* case.
19951 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
19952
199532008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
19954
19955 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
19956 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
19957 from reg_xmlfiles.
19958 * linux-ppc-low.c: Include <elf.h>.
19959 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
19960 (ppc_hwcap): New global variable.
19961 (ppc_regmap): Remove __SPE__ #ifdef sections.
19962 (ppc_regmap_e500): New global variable.
19963 (ppc_cannot_store_register): Update __SPE__ special case.
19964 (ppc_get_hwcap): New function.
19965 (ppc_arch_setup): Use it to determine whether inferior supports
19966 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
19967 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
19968 Do not access registers if target does not support AltiVec.
19969 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
19970 Do not access registers if target does not support SPE.
19971 (target_regsets): Unconditionally include AltiVec and SPE regsets.
19972
199732008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
19974
19975 * linux-low.c (disabled_regsets, num_regsets): New.
19976 (use_regsets_p): Delete.
19977 (linux_wait_for_process): Clear disabled_regsets.
19978 (regsets_fetch_inferior_registers): Check and set it.
19979 (regsets_store_inferior_registers): Likewise.
19980 (linux_fetch_registers, linux_store_registers): Do not use
19981 use_regsets_p.
19982 (initialize_low): Allocate disabled_regsets.
19983
199842008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
19985
19986 * Makefile.in (LIBOBJS): New.
19987 (OBS): Use LIBOBJS.
19988 (memmem.o): New rule.
19989 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
19990 * configure: Regenerated.
19991
199922008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
19993
19994 * server.c (handle_query): Never return "unsupported" for
19995 qXfer:features:read queries.
19996
199972008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
19998
19999 * server.c (get_features_xml): Fix inverted condition.
20000 (handle_query): Always support qXfer:feature:read.
20001
200022008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
20003
20004 * server.c (wrapper_argv): New.
20005 (start_inferior): Handle wrapper_argv. If set, expect an extra
20006 trap.
20007 (gdbserver_usage): Document --wrapper.
20008 (main): Parse --wrapper.
20009
200102008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20011
20012 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
20013 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
20014 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
20015 (ppc_set_pc): Likewise.
20016 (ppc_arch_setup): New function.
20017 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
20018 of collect_register.
20019 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
20020
200212008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20022
20023 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
20024 instead of linux-ppc64-low.o.
20025 * linux-ppc64-low.c: Remove file.
20026 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
20027 (linux-ppc64-low.o): Remove rule.
20028
20029 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
20030 (init_registers_powerpc_64): Likewise.
20031 (ppc_regmap): Conditionally define depending on __powerpc64__.
20032 (ppc_cannot_store_register): Do not special-case "fpscr" when
20033 compiled on __powerpc64__.
20034 (ppc_collect_ptrace_register): New function.
20035 (ppc_supply_ptrace_register): New function.
20036 (ppc_breakpoint): Change type to "unsigned int".
20037 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
20038 (the_low_target): Conditionally provide initializers for the
20039 arch_setup member depending on __powerpc64__. Install
20040 collect_ptrace_register and supply_ptrace_register members.
20041
200422008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20043
20044 * regcache.h (gdbserver_xmltarget): Add extern declaration.
20045 * server.c (gdbserver_xmltarget): Define.
20046 (get_features_xml): Use it to replace "target.xml" and arch_string.
20047
20048 * configure.srv: Remove srv_xmltarget. Add XML files that were
20049 mentioned there to srv_xmlfiles instead. Remove conditional tests
20050 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
20051 srv_xmlfiles and srv_regobj to include all possible choices.
20052 * configure.ac (srv_xmltarget): Remove.
20053 (srv_xmlfiles): Do not add "target.xml".
20054 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
20055 checks for supplementary target information.
20056 * configure: Regenerate.
20057 * Makefile.in (XML_TARGET): Remove.
20058 (target.xml): Remove rule.
20059 (clean): Do not clean up target.xml.
20060 (.PRECIOUS): Do not mention target.xml.
20061
20062 * target.h (struct target_ops): Remove arch_string member.
20063 * linux-low.c (linux_arch_string): Remove.
20064 (linux_target_ops): Remove arch_string initializer.
20065 * linux-low.h (struct linux_target_ops): Remove arch_string member.
20066 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
20067 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
20068 * spu-low.c (spu_arch_string): Remove.
20069 (spu_target_ops): Remove arch_string initializer.
20070 * win32-low.c (win32_arch_string): Remove.
20071 (win32_target_ops): Remove arch_string initializer.
20072 * win32-low.h (struct win32_target_ops): Remove arch_string member.
20073 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
20074 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
20075
200762008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20077
20078 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
20079 by collect_ptrace_register and supply_ptrace_register hooks.
20080 * linux-low.c (fetch_register): Use supply_ptrace_register callback
20081 instead of checking for the_low_target.left_pad_xfer.
20082 (usr_store_inferior_registers): Use collect_ptrace_register callback
20083 instead of checking for the_low_target.left_pad_xfer.
20084
20085 * linux-s390-low.c (s390_collect_ptrace_register): New function.
20086 (s390_supply_ptrace_register): Likewise.
20087 (s390_fill_gregset): Call s390_collect_ptrace_register.
20088 (the_low_target): Update.
20089
20090 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
20091 (ppc_supply_ptrace_register): Likewise.
20092 (the_low_target): Update.
20093
20094 * linux-i386-low.c (the_low_target): Update.
20095 * linux-x86-64-low.c (the_low_target): Update.
20096
200972008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20098
20099 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
20100 reg-s390.o and reg-s390x.o.
20101
20102 * linux-low.c (new_inferior): New global variable.
20103 (linux_create_inferior, linux_attach): Set it.
20104 (linux_wait_for_process): Call the_low_target.arch_setup after the
20105 target has stopped for the first time.
20106 (initialize_low): Do not call the_low_target.arch_setup.
20107
20108 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
20109 (s390_set_pc): Likewise.
20110 (s390_arch_setup): New function.
20111 (the_low_target): Use s390_arch_setup as arch_setup routine.
20112
20113 * regcache.c (realloc_register_cache): New function.
20114 (set_register_cache): Call it for each existing regcache.
20115
201162008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20117
20118 * server.h (init_registers): Remove prototype.
20119
20120 * linux-low.h (struct linux_target_ops): Add arch_setup field.
20121 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
20122 instead of init_registers ().
20123 * linux-arm-low.c (init_registers_arm): Add prototype.
20124 (init_registers_arm_with_iwmmxt): Likewise.
20125 (the_low_target): Add initializer for arch_setup field.
20126 * linux-cris-low.c (init_registers_cris): Add prototype.
20127 (the_low_target): Add initializer for arch_setup field.
20128 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
20129 (the_low_target): Add initializer for arch_setup field.
20130 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
20131 (the_low_target): Add initializer for arch_setup field.
20132 * linux-ia64-low.c (init_registers_ia64): Add prototype.
20133 (the_low_target): Add initializer for arch_setup field.
20134 * linux-m32r-low.c (init_registers_m32r): Add prototype.
20135 (the_low_target): Add initializer for arch_setup field.
20136 * linux-m68k-low.c (init_registers_m68k): Add prototype.
20137 (the_low_target): Add initializer for arch_setup field.
20138 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
20139 (init_registers_mips64_linux): Likewise.
20140 (the_low_target): Add initializer for arch_setup field.
20141 * linux-ppc-low.c (init_registers_ppc): Add prototype.
20142 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
20143 (the_low_target): Add initializer for arch_setup field.
20144 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
20145 (init_registers_powerpc_64): Likewise.
20146 (the_low_target): Add initializer for arch_setup field.
20147 * linux-s390-low.c (init_registers_s390): Add prototype.
20148 (init_registers_s390x): Likewise.
20149 (the_low_target): Add initializer for arch_setup field.
20150 * linux-sh-low.c (init_registers_sh): Add prototype.
20151 (the_low_target): Add initializer for arch_setup field.
20152 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
20153 (the_low_target): Add initializer for arch_setup field.
20154 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
20155 (the_low_target): Add initializer for arch_setup field.
20156
20157 * win32-low.h (struct win32_target_ops): Add arch_setup field.
20158 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
20159 instead of init_registers ().
20160 * win32-arm-low.c (init_registers_arm): Add prototype.
20161 (the_low_target): Add initializer for arch_setup field.
20162 * win32-i386-low.c (init_registers_i386): Add prototype.
20163 (the_low_target): Add initializer for arch_setup field.
20164
20165 * spu-low.c (init_registers_spu): Add prototype.
20166 (initialize_low): Call initialie_registers_spu () instead of
20167 initialize_registers ().
20168
201692008-02-19 Pedro Alves <pedro@codesourcery.com>
20170
20171 * server.c (handle_v_requests): When handling the vRun and vAttach
20172 packets, if already debugging a process, don't kill it. Return an
20173 error instead.
20174
201752008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
20176
20177 * server.c (handle_query): Correct length check.
20178
201792008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
20180
20181 * win32-low.c (do_initial_child_stuff): Add process handle
20182 parameter. Set current_process_handle and current_process_id from the
20183 parameters. Clear globals.
20184 (win32_create_inferior): Don't set current_process_handle and
20185 current_process_id here. Instead pass them on the call to
20186 do_initial_child_stuff.
20187 (win32_attach): Likewise.
20188 (win32_clear_inferiors): New.
20189 (win32_kill): Don't close the current process handle or the
20190 current thread handle here. Instead call win32_clear_inferiors.
20191 (win32_detach): Don't open a new handle to the process. Call
20192 win32_clear_inferiors.
20193 (win32_join): Don't rely on current_process_handle; open a new
20194 handle using the process id.
20195 (win32_wait): Call win32_clear_inferiors when the inferior process
20196 has exited.
20197
201982008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
20199
20200 * server.c (monitor_show_help): Add "exit".
20201
202022008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
20203
20204 * Makefile.in (SFILES): Add linux-xtensa-low.c.
20205 (clean): Add reg-xtensa.c.
20206 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
20207 * configure.srv (xtensa*-*-linux*) New target.
20208 * linux-xtensa-low.c: New.
20209 * xtensa-xtregs.c: New.
20210
202112008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
20212
20213 * hostio.c: Don't include errno.h.
20214 (errno_to_fileio_errno): Move to hostio-errno.
20215 * hostio.c: (hostio_error): Remove the error parameter. Defer the
20216 error number outputting to the target->hostio_last_error callback.
20217 (hostio_packet_error): Use FILEIO_EINVAL directly.
20218 (handle_open, handle_pread, hostio_error, handle_unlink): Update
20219 calls to hostio_error.
20220 * hostio-errno.c: New.
20221 * server.h (hostio_last_error_from_errno): Declare.
20222 * target.h (target_ops): Add hostio_last_error member.
20223 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
20224 as hostio_last_error handler.
20225 * spu-low.c (spu_target_ops): Likewise.
20226 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
20227 (wince_hostio_last_error): New functions.
20228 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
20229 as hostio_last_error handler.
20230 (win32_target_ops) [!_WIN32_WCE]: Register
20231 hostio_last_error_from_errno as hostio_last_error handler.
20232 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
20233 (hostio-errno.o): New rule.
20234 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
20235 * configure.srv (srv_hostio_err_objs): New variable. Default to
20236 hostio-errno.o.
20237 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
20238 * configure: Regenerate.
20239
202402008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20241
20242 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
20243 (linux_kill, linux_detach): Clean up the process list.
20244 * remote-utils.c (remote_open): Improve port number parsing.
20245 (putpkt_binary, input_interrupt): Only send interrupts if the target
20246 is running.
20247 * server.c (extended_protocol): Make static.
20248 (attached): Define earlier.
20249 (exit_requested, response_needed, program_argv): New variables.
20250 (target_running): New.
20251 (start_inferior): Clear attached here.
20252 (attach_inferior): Set attached here.
20253 (require_running): Define.
20254 (handle_query): Use require_running and target_running. Implement
20255 "monitor exit".
20256 (handle_v_attach, handle_v_run): New.
20257 (handle_v_requests): Use require_running. Handle vAttach and vRun.
20258 (gdbserver_usage): Update.
20259 (main): Redo argument parsing. Handle --debug and --multi. Handle
20260 --attach along with other options or after the port. Save
20261 program_argv. Support no initial program. Resynchronize
20262 communication with GDB after an error. Handle "monitor exit".
20263 Use require_running and target_running. Always allow the extended
20264 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
20265 restart in extended mode.
20266 * README: Refer to the GDB manual. Update --attach usage.
20267
202682007-12-20 Andreas Schwab <schwab@suse.de>
20269
20270 * linux-low.c (STACK_SIZE): Define.
20271 (linux_tracefork_child): Use it. Use __clone2 on ia64.
20272 (linux_test_for_tracefork): Likewise.
20273
202742007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
20275
20276 * linux-low.c (linux_wait_for_event): Update messages. Do not
20277 reinsert auto-delete breakpoints.
20278 * mem-break.c (struct breakpoint): Change return type of handler to
20279 int.
20280 (set_breakpoint_at): Update handler type.
20281 (reinsert_breakpoint_handler): Return 1 instead of calling
20282 delete_breakpoint.
20283 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
20284 setting a new one.
20285 (check_breakpoints): Delete auto-delete breakpoints and return 2.
20286 * mem-break.h (set_breakpoint_at): Update handler type.
20287 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
20288 * win32-low.c (auto_delete_breakpoint): New.
20289 (get_child_debug_event): Use it.
20290
202912007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
20292
20293 * configure.ac: Check for pread and pwrite.
20294 * hostio.c (handle_pread): Fall back to lseek and read.
20295 (handle_pwrite): Fall back to lseek and write.
20296 * config.in, configure: Regenerated.
20297
202982007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
20299
20300 * server.c (myresume): Add own_buf argument.
20301 (main): Update calls.
20302
203032007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
20304
20305 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
20306 * remote-utils.c (remote_open): Do not call disable_async_io.
20307 (block_async_io): Delete.
20308 (unblock_async_io): Make static.
20309 (initialize_async_io): New.
20310 * server.c (handle_v_cont): Handle async I/O here.
20311 (myresume): Likewise. Move other common resume tasks here...
20312 (main): ... from here. Call initialize_async_io. Disable async
20313 I/O before the main loop.
20314 * server.h (initialize_async_io): Declare.
20315 (block_async_io, unblock_async_io): Delete prototypes.
20316 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
20317
203182007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
20319
20320 * remote-utils.c (readchar): Allow binary data in received messages.
20321
203222007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20323
20324 * win32-low.c (attaching): New global.
20325 (win32_create_inferior): Clear the `attaching' global.
20326 (win32_attach): Set the `attaching' global.
20327 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
20328 attaching. Only set a breakpoint at the entry point if not
20329 attaching.
20330
203312007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20332
20333 * server.c (main): Don't report dll events on the initial
20334 connection on attaches.
20335
203362007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20337
20338 * server.c (main): Relax numerical bases supported for the pid of
20339 the --attach command line argument.
20340
203412007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20342
20343 * win32-low.c (win32_attach): Call OpenProcess before
20344 DebugActiveProcess, not after. Add last error output to error
20345 call.
20346
203472007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20348
20349 * win32-low.c (win32_get_thread_context)
20350 (win32_set_thread_context): New functions.
20351 (thread_rec): Use win32_get_thread_context.
20352 (continue_one_thread, win32_resume): Use win32_set_thread_context.
20353 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
20354 field.
20355
203562007-12-03 Leo Zayas
20357 Pedro Alves <pedro_alves@portugalmail.pt>
20358
20359 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
20360 global variables.
20361 (child_add_thread): Minor cleanup.
20362 (child_continue): Resume artificially suspended threads before
20363 calling ContinueDebugEvent.
20364 (suspend_one_thread): New.
20365 (fake_breakpoint_event): New.
20366 (get_child_debug_event): Change return type to int. Check here if
20367 gdb sent an interrupt request. If a soft interrupt was requested,
20368 fake a breakpoint event. Return 0 if there is no event to handle,
20369 and 1 otherwise.
20370 (win32_wait): Don't check here if gdb sent an interrupt request.
20371 Ensure there is a valid event to handle.
20372 (win32_request_interrupt): Add soft interruption method as last
20373 resort.
20374
203752007-12-03 Leo Zayas
20376 Pedro Alves <pedro_alves@portugalmail.pt>
20377
20378 * win32-low.h (win32_thread_info): Add descriptions to the
20379 structure members. Replace `suspend_count' counter by a
20380 `suspended' flag.
20381 * win32-low.c (thread_rec): Update condition of when to get the
20382 context from the inferior. Rely on ContextFlags being set if it
20383 has already been retrieved. Only suspend the inferior thread if
20384 we haven't already. Warn if that fails.
20385 (continue_one_thread): s/suspend_count/suspended/. Only call
20386 ResumeThread once. Warn if that fails.
20387
203882007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20389
20390 * win32-low.c (win32_wait): Don't read from the inferior when it
20391 has already exited.
20392
203932007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20394
20395 * Makefile.in (win32_low_h): New variable.
20396 (win32-low.o): Add dependency on $(win32_low_h).
20397 (win32-arm-low.o, win32-i386-low.o): New rules.
20398
203992007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20400
20401 * hostio.c: Correct copyright year.
20402
204032007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20404
20405 * Makefile.in (OBS): Add hostio.o.
20406 (hostio.o): New rule.
20407 * server.h (handle_vFile): Declare.
20408 * hostio.c: New file.
20409 * server.c (handle_v_requests): Take packet_len and new_packet_len
20410 for binary packets. Call handle_vFile.
20411 (main): Update call to handle_v_requests.
20412
204132007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
20414
20415 * linux-low.c: Include <sched.h>.
20416
204172007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
20418
20419 * linux-low.c (linux_tracefork_grandchild): New.
20420 (linux_tracefork_child): Use clone.
20421 (linux_test_for_tracefork): Use clone; allocate and free a stack.
20422
204232007-10-31 Joel Brobecker <brobecker@adacore.com>
20424
20425 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
20426
204272007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
20428
20429 * linux-low.c (handle_extended_wait): Handle unexpected signals.
20430
204312007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
20432
20433 * inferiors.c (change_inferior_id): Delete.
20434 (add_pid_to_list, pull_pid_from_list): New.
20435 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
20436 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
20437 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
20438 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
20439 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
20440 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
20441 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
20442 (using_threads): Always set to 1.
20443 (handle_extended_wait): New.
20444 (add_process): Do not set TID.
20445 (linux_create_inferior): Set must_set_ptrace_flags.
20446 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
20447 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
20448 (linux_thread_alive): Rename TID argument to LWPID.
20449 (linux_wait_for_process): Handle unknown processes. Do not use TID.
20450 (linux_wait_for_event): Do not use TID or check using_threads. Update
20451 call to dead_thread_notify. Call handle_extended_wait.
20452 (linux_create_inferior): Use PTRACE_SETOPTIONS.
20453 (send_sigstop): Delete sigstop_sent.
20454 (wait_for_sigstop): Avoid TID.
20455 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
20456 (linux_test_for_tracefork): New.
20457 (linux_lookup_signals): Use thread_db_active and
20458 linux_supports_tracefork_flag.
20459 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
20460 * linux-low.h (get_process_thread): Avoid TID.
20461 (struct process_ifo): Move thread_known and tid to the end. Remove
20462 sigstop_sent.
20463 (linux_attach_lwp, thread_db_init): Update prototypes.
20464 * server.h (change_inferior_id): Delete prototype.
20465 (add_pid_to_list, pull_pid_from_list): New prototypes.
20466 * thread-db.c (thread_db_use_events): New.
20467 (find_first_thread): Rename to...
20468 (find_one_thread): ...this. Update callers and messages. Do not
20469 call fatal. Check thread_db_use_events. Do not call
20470 change_inferior_id or new_thread_notify.
20471 (maybe_attach_thread): Update. Do not call new_thread_notify.
20472 (thread_db_init): Set thread_db_use_events. Check use_events.
20473 * utils.c (fatal, warning): Correct message prefix.
20474
204752007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
20476
20477 * Makefile.in (clean): Remove new files.
20478 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
20479 (powerpc-64.o, powerpc-64.c): New rules.
20480 * configure.srv: Use alternate register sets for powerpc64-*-linux*
20481 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
20482 with SPE.
20483 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
20484 SPE targets.
20485 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
20486 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
20487 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
20488 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
20489 (target_regsets): Add AltiVec and SPE register sets.
20490 * configure.ac: Check for AltiVec and SPE.
20491 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
20492 (ppc_fill_vrregset, ppc_store_vrregset): New.
20493 (target_regsets): Add AltiVec register set.
20494 * configure: Regenerated.
20495
204962007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
20497
20498 * linux-low.c (O_LARGEFILE): Define.
20499 (linux_read_memory): Use /proc/PID/mem.
20500 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
20501 * configure, config.in: Regenerated.
20502
205032007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
20504
20505 * linux-low.c (linux_wait_for_event): Do not pass signals while
20506 single-stepping.
20507
205082007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20509
20510 * win32-low.c (create_process): New.
20511 (win32_create_inferior): Use create_process instead of
20512 CreateProcess. If create_process failed retry appending an ".exe"
20513 suffix. Store the GetLastError result immediatelly after
20514 create_process calls and use it on the call to error.
20515
205162007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20517
20518 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
20519
205202007-08-23 Joel Brobecker <brobecker@adacore.com>
20521
20522 * configure.ac: Switch license to GPLv3.
20523
205242007-08-01 Michael Snyder <msnyder@access-company.com>
20525
20526 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
20527
205282007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
20529
20530 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
20531 typedef.
20532 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
20533 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
20534 CloseToolhelp32Snapshot.
20535 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
20536 CloseToolhelp32Snapshot.
20537
205382007-07-27 Michael Snyder <michael.snyder@access-company.com>
20539
20540 * server.c (main): Check for inferior exit before main loop.
20541
205422007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
20543
20544 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
20545 instead of on tmp_desc.
20546
205472007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
20548 Daniel Jacobowitz <dan@codesourcery.com>
20549
20550 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
20551 (add_thread): Minor cleanups.
20552 (clear_inferiors): Move lower in the file. Clear the DLL
20553 list.
20554 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
20555 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
20556 (xml_escape_text): New.
20557 * server.c (handle_query): Handle qXfer:libraries:read. Report it
20558 for qSupported.
20559 (handle_v_cont): Report errors.
20560 (gdbserver_version): Update.
20561 (main): Correct size of own_buf. Do not report initial DLL events.
20562 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
20563 (unloaded_dll, xml_escape_text): New.
20564 * win32-low.c (enum target_waitkind): Update comments.
20565 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
20566 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
20567 (win32_EnumProcessModules, win32_GetModuleInformation)
20568 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
20569 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
20570 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
20571 (win32_Module32First, win32_Module32Next, load_toolhelp)
20572 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
20573 (get_child_debug_event): Handle DLL events.
20574 (win32_wait): Likewise.
20575
205762007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
20577
20578 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
20579 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
20580
205812007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20582
20583 * win32-low.c (handle_output_debug_string): Ignore event if not
20584 waiting.
20585
205862007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20587
20588 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
20589
205902007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
20591
20592 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
20593
205942007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
20595
20596 * inferiors.c (change_inferior_id): Add comment.
20597 * linux-low.c (check_removed_breakpoint): Add an early
20598 prototype. Improve debug output.
20599 (linux_attach): Doc update.
20600 (linux_detach_one_process, linux_detach): Clean up before releasing
20601 each process.
20602 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
20603 * linux-low.h (struct process_info): Doc improvement.
20604 * mem-break.c (delete_all_breakpoints): New.
20605 * mem-break.h (delete_all_breakpoints): New prototype.
20606 * thread-db.c (find_first_thread): New.
20607 (thread_db_create_event): Call it instead of
20608 thread_db_find_new_threads. Clean up unused variables.
20609 (maybe_attach_thread): Remove first thread handling.
20610 (thread_db_find_new_threads): Use find_first_thread.
20611 (thread_db_get_tls_address): Likewise.
20612
206132007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
20614
20615 * thread-db.c (thread_db_find_new_threads): Add prototype.
20616 (thread_db_create_event): Check for the main thread before adding
20617 a new thread.
20618 (maybe_attach_thread): Only enable event reporting if TID == 0.
20619 (thread_db_get_tls_address): Check for new threads.
20620
206212007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
20622
20623 * linux-low.c (linux_create_inferior): Try execv before execvp.
20624 * spu-low.c (spu_create_inferior): Likewise.
20625
206262007-06-13 Mike Frysinger <vapier@gentoo.org>
20627
20628 * linux-low.c (linux_create_inferior): Change execv to execvp.
20629 * spu-low.c (spu_create_inferior): Likewies.
20630
206312007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
20632
20633 * Makefile.in (clean): Clean new files instead of deleted ones.
20634 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
20635 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
20636 rules.
20637 * configure.srv: Specify XML files and new regformats for MIPS and
20638 MIPS64 GNU/Linux.
20639 * linux-mips-low.c (mips_num_regs): Set to only used registers.
20640 (mips_regmap): Do not fetch $0. Remove unused registers. Add
20641 an entry for the restart register.
20642 (mips_cannot_fetch_register, mips_cannot_store_register)
20643 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
20644 register names to match the XML descriptions.
20645 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
20646 restart register instead of $0.
20647
206482007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20649 Markus Deuling <deuling@de.ibm.com>
20650
20651 * remote-utils.c (decode_xfer_write): New function.
20652 * server.h (decode_xfer_write): Add prototype.
20653 * server.c (handle_query): Add PACKET_LEN argument. Support
20654 qXfer:spu:read and qXfer:spu:write packets.
20655 (main): Pass packet_len to handle_query.
20656 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
20657 * target.h (target_ops): Add qxfer_spu.
20658
206592007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20660
20661 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
20662 accessing non-seekable spufs files.
20663
206642007-05-16 Markus Deuling <deuling@de.ibm.com>
20665
20666 * server.c (handle_query): Add reply for qC packet.
20667
206682007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20669 Leo Zayas <lerele@champenstudios@com>
20670
20671 * server.h (check_remote_input_interrupt_request): New function.
20672 * remote_utils.c (INVALID_DESCRIPTOR): New define.
20673 (remote_desc): Initialize with INVALID_DESCRIPTOR.
20674 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
20675 (check_remote_input_interrupt_request): New function.
20676 * server.h (check_remote_input_interrupt_request): Declare.
20677 * win32-low.c (winapi_DebugBreakProcess,
20678 winapi_GenerateConsoleCtrlEvent): New typedefs.
20679 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
20680 to 250 ms.
20681 (win32_wait): Check for remote interrupt request
20682 with check_remote_input_interrupt_request.
20683 (win32_request_interrupt): New function.
20684 (win32_target_op): Set request_interrupt to win32_request_interrupt.
20685
206862007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20687
20688 * win32-low.c (debug_registers_changed,
20689 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
20690 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
20691 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
20692 (thread_rec): Get context using the low target.
20693 (child_add_thread): Call thread_added on the low target,
20694 which does the same thing.
20695 (regptr): Delete.
20696 (do_initial_child_stuff): Remove debug registers references.
20697 Set context using the low target. Resume threads after
20698 setting the contexts.
20699 (child_continue): Remove dead variable. Remove debug
20700 registers references.
20701 (child_fetch_inferior_registers): Go through the low target.
20702 (do_child_store_inferior_registers): Remove.
20703 (child_store_inferior_registers): Go through the low target.
20704 (win32_resume): Remove debug registers references.
20705 Set context using the low target.
20706 (handle_exception): Change return type to void. Don't record
20707 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
20708 first chance exception.
20709 (get_child_debug_event): Change return type to void. Remove
20710 goto loop. Always return after waiting for debug event.
20711 (win32_wait): Convert to switch statement. Handle spurious
20712 events.
20713
20714 * win32-i386-low.c (debug_registers_changed,
20715 debug_registers_used): New.
20716 (initial_stuff): Rename to ...
20717 (i386_initial_stuff): ... this. Clear debug registers
20718 state variables.
20719 (store_debug_registers): Delete.
20720 (i386_get_thread_context): New.
20721 (load_debug_registers): Delete.
20722 (i386_set_thread_context): New.
20723 (i386_thread_added): New.
20724 (single_step): Rename to ...
20725 (i386_single_step): ... this.
20726 (do_fetch_inferior_registers): Rename to ...
20727 (i386_fetch_inferior_register): ... this.
20728 (i386_store_inferior_register): New.
20729 (the_low_target): Adapt to new interface.
20730
20731 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
20732 (arm_get_thread_context): New.
20733 (arm_set_thread_context): New.
20734 (regptr): New.
20735 (do_fetch_inferior_registers): Rename to ...
20736 (arm_fetch_inferior_register): ... this.
20737 (arm_store_inferior_register): New.
20738 (arm_wince_breakpoint): Reimplement as unsigned long.
20739 (arm_wince_breakpoint_len): Define.
20740 (the_low_target): Adapt to new interface.
20741
20742 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
20743 load_debug_registers. Add get_thread_context, set_thread_context,
20744 thread_added and store_inferior_register. Rename
20745 fetch_inferior_registers to fetch_inferior_register.
20746 (regptr): Remove declaration.
20747
207482007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20749
20750 * linux-low.c (linux_detach): Change return type to int. Return 0.
20751 * spu-low.c (spu_detach): Likewise.
20752
207532007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20754
20755 * target.h (target_ops): Change return type of detach to int.
20756 Add join.
20757 (join_inferior): New.
20758 * server.c (main): Don't skip detach support on mingw32.
20759 If the inferior doesn't support detaching return error.
20760 Call join_inferior instead of using waitpid.
20761 * linux-low.c (linux_join): New.
20762 (linux_target_op): Add linux_join.
20763 * spu-low.c (spu_join): New.
20764 (spu_target_ops): Add spu_join.
20765 * win32-low.c (win32_detach): Adapt to new interface.
20766 Reopen current_process_handle before detaching. Issue a child
20767 resume before detaching.
20768 (win32_join): New.
20769 (win32_target_op): Add win32_join.
20770
207712007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20772
20773 * win32-low.c (win32-attach): Fix return value.
20774 * target.h (target_ops): Describe ATTACH return values.
20775
207762007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20777
20778 * win32-low.c (GETPROCADDRESS): Define.
20779 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
20780 (winapi_DebugSetProcessKillOnExit): Likewise.
20781 (win32_create_inferior): Force usage of ansi CreateProcessA.
20782 (win32_attach): Use GETPROCADDRESS.
20783 (win32_detach): Likewise.
20784
207852007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20786
20787 * win32-low.c (win32_wait): Don't use WSTOPSIG.
20788
207892007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
20790
20791 * win32-low.c: Commit leftover changes from 2007-03-29.
20792
207932007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20794
20795 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
20796 fields short instead of int. Add explicit padding.
20797 (i387_cache_to_fsave): Remove unnecessary casts.
20798 (i387_fsave_to_cache): Doc fix.
20799 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
20800
208012007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20802
20803 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
20804 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
20805
208062007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20807
20808 * configure.srv (arm*-*-mingw32ce*): Move near the other
20809 arm targets.
20810
208112007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20812
20813 * configure.ac: Add errno checking.
20814 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
20815 sys/file.h and malloc.h.
20816 (AC_CHECK_DECLS): Add perror.
20817 (srv_mingwce): Handle.
20818 * configure.srv (i[34567]86-*-cygwin*): Add
20819 win32-i386-low.o to srv_tgtobj.
20820 (i[34567]86-*-mingw*): Likewise.
20821 (arm*-*-mingw32ce*): Add case.
20822 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20823 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
20824 [__MINGW32CE__] (strerror): New function.
20825 [__MINGW32CE__] (errno): Define to GetLastError.
20826 [__MINGW32CE__] (COUNTOF): New macro.
20827 (remote_open): Remove extra close call.
20828 * mem-break.c (delete_breakpoint_at): New function.
20829 * mem-break.h (delete_breakpoint_at): Declare.
20830 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20831 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
20832 [USE_WIN32API] (read, write): Add char* casts.
20833 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
20834 * server.h: Include wincecompat.h on Windows CE.
20835 [HAVE_ERRNO_H]: Check.
20836 (perror): Declare if not declared.
20837 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
20838 (perror_with_name): Remove errno declaration.
20839 * wincecompat.h: New.
20840 * wincecompat.c: New.
20841 * win32-low.h: New.
20842 * win32-arm-low.c: New.
20843 * win32-i386-low.c: New.
20844 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
20845 (OUTMSG2): Make it safe.
20846 (_T): New macro.
20847 (COUNTOF): New macro.
20848 (NUM_REGS): Get it from the low target.
20849 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
20850 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
20851 (thread_rec): Let low target handle debug registers.
20852 (child_add_thread): Likewise.
20853 (child_init_thread_list): Likewise.
20854 (continue_one_thread): Likewise.
20855 (regptr): New.
20856 (do_child_fetch_inferior_registers): Move to ...
20857 * win32-i386-low.c: ... here, and rename to ...
20858 (do_fetch_inferior_registers): ... this.
20859 * win32-low.c (child_fetch_inferior_registers):
20860 Go through the low target.
20861 (do_child_store_inferior_registers): Use regptr.
20862 (strwinerror): New function.
20863 (win32_create_inferior): Handle Windows CE.
20864 Use strwinerror instead of strerror on Windows error
20865 codes. Add program to the error output.
20866 Don't close the main thread handle on Windows CE.
20867 (win32_attach): Use coredll.dll on Windows CE.
20868 (win32_kill): Close current process and current
20869 thread handles.
20870 (win32_detach): Use coredll.dll on Windows CE.
20871 (win32_resume): Let low target handle debug registers, and
20872 step request.
20873 (handle_exception): Add/Remove initial breakpoint. Avoid
20874 non-existant WSTOPSIG on Windows CE.
20875 (win32_read_inferior_memory): Cast to remove warning.
20876 (win32_arch_string): Go through the low target.
20877 (initialize_low): Call set_breakpoint_data with the low
20878 target's breakpoint.
20879 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
20880 FOP_REGNUM, mappings): Move to ...
20881 * win32-i386-low.c: ... here.
20882 * win32-low.c (win32_thread_info): Move to ...
20883 * win32-low.h: ... here.
20884 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
20885 win32-arm-low.c and wincecompat.c.
20886 (all:): Add $EXEEXT.
20887 (install-only:): Likewise.
20888 (gdbserver:): Likewise.
20889 (gdbreplay:): Likewise.
20890 * config.in: Regenerate.
20891 * configure: Regenerate.
20892
208932007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20894
20895 * win32-low.c: Rename typedef thread_info to
20896 win32_thread_info throughout.
20897
208982007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20899
20900 * win32-i386-low.c: Rename to ...
20901 * win32-low.c: ... this.
20902 * configure.srv: Replace win32-i386-low.o with win32-low.o.
20903 * Makefile.in: Likewise.
20904
209052007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
20906
20907 * remote-utils.c (monitor_output): Constify msg parameter.
20908 * server.h (monitor_output): Likewise.
20909 * win32-i386-low.c (handle_output_debug_string): New.
20910 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
20911 handle_output_debug_string.
20912 (get_child_debug_event): Likewise.
20913
209142007-03-27 Mat Hostetter <mat@lcs.mit.edu>
20915
20916 * server.c (main): Correct strtoul check.
20917
209182007-03-27 Jon Ringle <jon@ringle.org>
20919
20920 * linux-low.c: Check __ARCH_HAS_MMU__ also.
20921
209222007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
20923
20924 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
20925
209262007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
20927
20928 * terminal.h: Check HAVE_SGTTY_H.
20929
209302007-02-27 Mat Hostetter <mat@lcs.mit.edu>
20931
20932 * remote-utils.c (remote_open): Print out the assigned port number.
20933
209342007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
20935
20936 * remote-utils.c (monitor_output): New function.
20937 * server.c (debug_threads): Define here.
20938 (monitor_show_help): New function.
20939 (handle_query): Handle qRcmd.
20940 (main): Do not handle 'd' packet.
20941 * server.h (debug_threads, remote_debug, monitor_output): Declare.
20942 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
20943 of debug_threads.
20944
209452007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20946
20947 * Makefile.in (EXEEXT): New.
20948 (clean): Use $(EXEEXT).
20949
209502007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20951
20952 * target.h (target_ops): Rename send_signal to request_interrupt,
20953 and remove enum target_signal parameter.
20954 * linux-low.c (linux_request_interrupt): Rename from
20955 linux_send_signal, and always send SIGINT.
20956 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
20957 and always send SIGINT.
20958 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
20959 of send_signal.
20960 (input_interrupt): Likewise.
20961
209622007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20963
20964 * server.c (get_features_xml): Check if target implemented
20965 arch_string.
20966 * win32-i386-low.c (win32_arch_string): New.
20967 (win32_target_ops): Add win32_arch_string as arch_string member.
20968
209692007-02-22 Markus Deuling <deuling@de.ibm.com>
20970
20971 * spu-low.c (spu_arch_string): New.
20972 (spu_target_ops): Add spu_arch_string.
20973
209742007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
20975
20976 * remote-utils.c: Remove HAVE_TERMINAL_H check.
20977 * configure.ac: Do not check for terminal.h.
20978 * configure, config.in: Regenerated.
20979
209802007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
20981
20982 * Makefile.in (OBS): Add $(XML_BUILTIN).
20983 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
20984 (clean): Update.
20985 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
20986 (arm-with-iwmmxt.c): New.
20987 * config.in, configure: Regenerate.
20988 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
20989 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
20990 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
20991 (arm*-*-linux*): Add iWMMXt and regset support.
20992 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
20993 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
20994 (arm_store_wmmxregset, target_regsets): New.
20995 * server.c (get_features_xml): Take annex argument. Check builtin
20996 XML documents.
20997 (handle_query): Handle multiple annexes.
20998
209992007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
21000
21001 * remote-utils.c [USE_WIN32API] (read, write): Define.
21002 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
21003 write.
21004
210052007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
21006
21007 * linux-i386-low.c (the_low_target): Set arch_string.
21008 * linux-x86-64-low.c (the_low_target): Likewise.
21009 * linux-low.c (linux_arch_string): New.
21010 (linux_target_ops): Add it.
21011 * linux-low.h (struct linux_target_ops): Add arch_string.
21012 * server.c (write_qxfer_response): Use const void * for DATA.
21013 (get_features_xml): New.
21014 (handle_query): Handle qXfer:features:read. Report it for qSupported.
21015 * target.h (struct target_ops): Add arch_string method.
21016
210172007-01-03 Denis Pilat <denis.pilat@st.com>
21018 Daniel Jacobowitz <dan@codesourcery.com>
21019
21020 * linux-low.c (linux_kill): Handle being called with no threads.
21021 * win32-i386-low.c (win32_kill): Likewise.
21022 (get_child_debug_event): Clear current_process_handle.
21023
210242006-12-30 Denis PILAT <denis.pilat@st.com>
21025 Daniel Jacobowitz <dan@codesourcery.com>
21026
21027 * remote-utils.c (remote_open): Check the type of specified
21028 serial port devices before opening them.
21029 * server.c (main): Kill the inferior if an error occurs during
21030 the first remote_open.
21031
210322006-12-05 Markus Deuling <deuling@de.ibm.com>
21033
21034 * README: Update supported targets.
21035
210362006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
21037
21038 * Makefile.in (clean): Remove reg-mips64.c.
21039 (reg-mips64.c, reg-mips64.o): New rules.
21040 * configure.srv: Handle mips64. Include regset support for mips.
21041 * linux-mips-low.c (union mips_register): New.
21042 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
21043 (mips_breakpoint, mips_breakpoint_at): Use int.
21044 (mips_collect_register, mips_supply_register)
21045 (mips_collect_register_32bit, mips_supply_register_32bit)
21046 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
21047 (mips_store_fpregset, target_regsets): New.
21048 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
21049
210502006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
21051
21052 * configure.srv: Add target "spu*-*-*".
21053 * Makefile.in (clean): Remove reg-spu.c.
21054 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
21055 * spu-low.c: New file.
21056
210572006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21058
21059 * configure.ac: Correct td_thr_tls_get_addr test.
21060 * configure: Regenerated.
21061
210622006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21063
21064 * linux-low.c (linux_wait_for_event): Reformat. Use the
21065 pass_signals array.
21066 * remote-utils.c (decode_address_to_semicolon): New.
21067 * server.c (pass_signals, handle_general_set): New.
21068 (handle_query): Mention QPassSignals for qSupported.
21069 (main): Call handle_general_set.
21070 * server.h (pass_signals, decode_address_to_semicolon): New.
21071
210722006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
21073
21074 * server.c (handle_query): Correct error handling for read_auxv.
21075
210762005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
21077
21078 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
21079 and srv_linux_thread_db to yes.
21080 * linux-s390-low.c (s390_fill_gregset): New function.
21081 (target_regsets): Define data structure.
21082
210832006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
21084
21085 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
21086 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
21087 * config.in, configure: Regenerated.
21088 * inferiors.c (gdb_id_to_thread): New function.
21089 (gdb_id_to_thread_id): Use it.
21090 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
21091 * linux-low.h (struct process_info): Add th member.
21092 (thread_db_get_tls_address): New prototype.
21093 * remote-utils.c (decode_address): Make non-static.
21094 * server.c (handle_query): Handle qGetTLSAddr.
21095 * server.h (gdb_id_to_thread, decode_address): New prototypes.
21096 * target.h (struct target_ops): Add get_tls_address.
21097 * thread-db.c (maybe_attach_thread): Save the thread handle.
21098 (thread_db_get_tls_address): New.
21099
211002006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
21101
21102 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
21103 (linux_resume_one_process): Take a siginfo_t *. Update all
21104 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
21105 (struct pending_signals): Add a siginfo_t.
21106 (linux_wait_for_process): Always set last_status.
21107 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
21108 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
21109 * linux-low.h (struct process_info): Add last_status.
21110
211112006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
21112
21113 * remote-utils.c (try_rle): New function.
21114 (putpkt_binary): Use it.
21115
211162006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
21117
21118 * Makefile.in (clean): Clean reg-x86-64-linux.c.
21119 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
21120 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
21121 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
21122 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
21123 point registers.
21124
211252006-08-08 Richard Sandiford <richard@codesourcery.com>
21126
21127 * server.c (terminal_fd): New variable.
21128 (old_foreground_pgrp): Likewise.
21129 (restore_old_foreground_pgrp): New function.
21130 (start_inferior): Record the terminal file descriptor in terminal_fd
21131 and its original foreground group in old_foreground_pgrp. Register
21132 restore_old_foreground_pgrp with atexit().
21133
211342006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
21135
21136 * server.c (handle_query): Correct qPart to qXfer.
21137
211382006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
21139
21140 * configure.ac: Check for more headers which are missing on
21141 Windows. Automatically supply -lwsock32 and USE_WIN32API.
21142 * configure.srv: Add Cygwin and mingw32.
21143 * remote-utils.c: Don't include headers unconditionally which
21144 are missing on mingw32. Include <winsock.h> for mingw32.
21145 (remote_open): Adjust for mingw32 support. Flush
21146 standard error after writing to it.
21147 (remote_close, putpkt_binary, input_interrupt, block_async_io)
21148 (unblock_async_io, enable_async_io, disable_async_io)
21149 (readchar, getpkt): Update for Winsock support.
21150 (prepare_resume_reply): Expect a protocol signal number.
21151 * server.c: Disable <sys/wait.h> on mingw32.
21152 (start_inferior): Adjust for mingw32 support. Flush
21153 standard error after writing to it.
21154 (attach_inferior): Likewise. Use protocol signal
21155 numbers.
21156 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
21157 and names.
21158 * win32-i386-low.c: New file.
21159 * Makefile.in (XM_CLIBS): Set.
21160 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
21161 (win32-i386-low.o): New dependency rule.
21162 * linux-low.c (linux_wait): Use target signal numbers.
21163 * target.h (struct target_ops): Doc fix.
21164 * server.h (target_signal_to_name): New prototype.
21165 * gdbreplay.c: Don't include headers unconditionally which
21166 are missing on mingw32. Include <winsock.h> for mingw32.
21167 (remote_close, remote_open): Adjust for Winsock support.
21168 * configure, config.in: Regenerated.
21169
211702006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
21171
21172 * server.c (decode_xfer_read, write_qxfer_response): New.
21173 (handle_query): Take a packet length argument. Handle
21174 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
21175 the qSupported response.
21176 (main): Update call to handle_query.
21177
211782006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
21179
21180 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
21181 (putpkt_binary): Renamed from putpkt and adjusted for binary
21182 data.
21183 (putpkt): New wrapper for putpkt_binary.
21184 (readchar): Don't mask off the high bit.
21185 (decode_X_packet): New function.
21186 * server.c (main): Call putpkt_binary if a handler sets the packet
21187 length. Save the length of the incoming packet. Handle 'X'.
21188 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
21189
211902006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
21191
21192 * server.c (handle_query): Handle qSupported.
21193
211942006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21195
21196 * remote-utils.c (all_symbols_looked_up): New variable.
21197 (look_up_one_symbol): Check it.
21198 * server.h (look_up_one_symbol): New declaration.
21199 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
21200
212012006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21202
21203 * Makefile.in (linux-arm-low.o): Update dependencies.
21204 * linux-arm-low.c: Include "gdb_proc_service.h".
21205 (PTRACE_GET_THREAD_AREA): Define.
21206 (ps_get_thread_area): New function.
21207
212082006-05-09 Nathan Sidwell <nathan@codesourcery.com>
21209
21210 * configure.srv (m68k*-*-uclinux*): New target.
21211 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
21212 (linux_resume_one_process): Remove extraneous cast.
21213 (linux_read_offsets): New.
21214 (linux_target_op): Add linux_read_offsets on mmuless systems.
21215 * server.c (handle_query): Add qOffsets logic.
21216 * target.h (struct target_ops): Add read_offsets.
21217
212182006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21219
21220 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
21221 (PTRACE_GET_THREAD_AREA): Define.
21222 (ps_get_thread_area): New function.
21223 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
21224 (linux-x86-64-low.o): Update.
21225
212262006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21227
21228 * configure.ac: Remove checks for prfpregset_t.
21229 * gdb_proc_service.h: New file.
21230 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
21231 new "gdb_proc_service.h".
21232 * proc-service.c: Likewise.
21233 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
21234 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
21235 * Makefile.in (gdb_proc_service_h): Updated.
21236 * configure, config.in: Regenerated.
21237
212382006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21239
21240 * remote-utils.c (prepare_resume_reply): Move declaration
21241 of gdb_id_from_wait to the top of the block.
21242
212432006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
21244
21245 * linux-low.c (regsets_store_inferior_registers): Read the regset
21246 from the target before filling it.
21247
212482006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21249
21250 * server.c (attach_inferior): Return SIGTRAP for a successful
21251 attach.
21252
212532006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
21254
21255 * Makefile.in (OBS): Add version.o.
21256 (STAGESTUFF): Delete.
21257 (version.o): Add dependencies.
21258 (version.c): Replace rule.
21259 (clean): Remove version.c.
21260 * server.c (gdbserver_version): New.
21261 (gdbserver_usage): Use printf.
21262 (main): Handle --version and --help.
21263 * server.h (version, host_name): Add declarations.
21264
212652005-12-23 Eli Zaretskii <eliz@gnu.org>
21266
21267 * linux-arm-low.c:
21268 * linux-arm-low.c:
21269 * inferiors.c:
21270 * i387-fp.h:
21271 * i387-fp.c:
21272 * gdbreplay.c:
21273 * regcache.c:
21274 * proc-service.c:
21275 * mem-break.h:
21276 * mem-break.c:
21277 * linux-x86-64-low.c:
21278 * linux-sh-low.c:
21279 * linux-s390-low.c:
21280 * linux-ppc64-low.c:
21281 * linux-ppc-low.c:
21282 * linux-mips-low.c:
21283 * linux-m68k-low.c:
21284 * linux-m32r-low.c:
21285 * linux-low.h:
21286 * linux-low.c:
21287 * linux-ia64-low.c:
21288 * linux-i386-low.c:
21289 * linux-crisv32-low.c:
21290 * thread-db.c:
21291 * terminal.h:
21292 * target.h:
21293 * target.c:
21294 * server.h:
21295 * server.c:
21296 * remote-utils.c:
21297 * regcache.h:
21298 * utils.c:
21299 * Makefile.in:
21300 * configure.ac:
21301 * gdbserver.1: Add (C) after Copyright. Update the FSF
21302 address.
21303
213042005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
21305
21306 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
21307 (arm_breakpoint_at): Recognize both breakpoints.
21308 (the_low_target): Use the correct breakpoint instruction.
21309
213102005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
21311
21312 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
21313 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
21314 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
21315 (the_low_target): Update.
21316
213172005-10-25 Andreas Schwab <schwab@suse.de>
21318
21319 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
21320
21321 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
21322 (ia64_num_regs): Reduce to 462.
21323
213242005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
21325
21326 * acinclude.m4: Correct quoting.
21327 * aclocal.m4: Regenerated.
21328
21329 Suggested by SZOKOVACS Robert <szo@ies.hu>:
21330 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
21331 (thread_db_init): Call thread_db_err_str.
21332 * configure.ac: Check for TD_VERSION.
21333 * config.in, configure: Regenerated.
21334
213352005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21336
21337 * server.h (error, fatal, warning): Add ATTR_FORMAT.
21338
213392005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21340
21341 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
21342 is not available. Define HAVE_PTRACE_GETREGS if it is.
21343 * config.in, configure: Regenerated.
21344 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
21345 * linux-i386-low.c, linux-m68k-low.c: Update to use
21346 HAVE_PTRACE_GETREGS.
21347 * linux-low.c (regsets_fetch_inferior_registers)
21348 (regsets_store_inferior_registers): Only return 0 if we processed
21349 GENERAL_REGS.
21350 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
21351 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
21352
213532005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21354
21355 * inferiors.c (struct thread_info): Add gdb_id.
21356 (add_thread): Add gdb_id argument.
21357 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
21358 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
21359 calls to add_thread.
21360 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
21361 * server.c (handle_query): Use thread_to_gdb_id.
21362 (handle_v_cont, main): Use gdb_id_to_thread_id.
21363 * server.h (add_thread): Update prototype.
21364 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
21365 prototypes.
21366
213672005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21368
21369 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
21370 left-padded registers.
21371 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
21372 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
21373
213742005-07-01 Steve Ellcey <sje@cup.hp.com>
21375
21376 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
21377 * configure: Regenerate.
21378 * config.in: Regenerate.
21379 * server.h (NEED_DECLARATION_STRERROR):
21380 Replace with !HAVE_DECL_STRERROR.
21381
213822005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
21383
21384 * linux-low.c (linux_wait, linux_send_signal): Don't test
21385 an unsigned long variable for > 0 if it could be MAX_ULONG.
21386 * server.c (myresume): Likewise.
21387 * target.c (set_desired_inferior): Likewise.
21388
213892005-06-13 Mark Kettenis <kettenis@gnu.org>
21390
21391 * configure.ac: Simplify and improve check for socklen_t.
21392 * configure, config.in: Regenerate.
21393
213942005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
21395
21396 * acconfig.h: Remove.
21397 * configure.ac: Add a test for socklen_t. Use three-argument
21398 AC_DEFINE throughout.
21399 * config.in: Regenerated using autoheader 2.59.
21400 * configure: Regenerated.
21401
21402 * gdbreplay.c (socklen_t): Provide a default.
21403 (remote_open): Use socklen_t.
21404 * remote-utils.c (socklen_t): Provide a default.
21405 (remote_open): Use socklen_t.
21406 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
21407 unsigned char.
21408
21409 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
21410 char for buffers.
21411 * linux-low.c (linux_read_memory, linux_write_memory)
21412 (linux_read_auxv): Likewise.
21413 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
21414 (check_mem_write): Likewise.
21415 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
21416 Likewise.
21417 * regcache.c (struct inferior_rgcache_data, registers_to_string)
21418 (registers_from_string, register_data): Likewise.
21419 * server.c (handle_query, main): Likewise.
21420 * server.h (convert_ascii_to_int, convert_int_to_ascii)
21421 (decode_M_packet): Likewise.
21422 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
21423 * target.h (struct target_ops): Update read_memory, write_memory,
21424 and read_auxv.
21425 (read_inferior_memory, write_inferior_memory): Update.
21426 * linux-low.h (struct linux_target_ops): Change type of breakpoint
21427 to unsigned char *.
21428 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
21429 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
21430 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
21431 linux-s390-low.c, linux-sh-low.c: Update for changes in
21432 read_inferior_memory and the_low_target->breakpoint.
21433
214342005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
21435
21436 * Makefile.in (SFILES): Add linux-ppc64-low.c.
21437 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
21438 * configure.srv: Add powerpc64-*-linux*.
21439 * linux-ppc64-low.c: New file.
21440
214412005-05-23 Orjan Friberg <orjanf@axis.com>
21442
21443 * linux-cris-low.c: New file with support for CRIS.
21444 * linux-crisv32-low.c: Ditto for CRISv32.
21445 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
21446 (clean): Add reg-cris.c and reg-crisv32.c.
21447 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
21448 reg-crisv32.o, and reg-crisv32.c to make rules.
21449 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
21450 recognized targets.
21451
214522005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
21453
21454 * linux-low.c (fetch_register): Ensure buffer size is a multiple
21455 of sizeof (PTRACE_XFER_TYPE).
21456 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
21457
214582005-05-12 Orjan Friberg <orjanf@axis.com>
21459
21460 * target.h (struct target_ops): Add insert_watchpoint,
21461 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
21462 pointers for hardware watchpoint support.
21463 * linux-low.h (struct linux_target_ops): Ditto.
21464 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
21465 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
21466 to linux_target_ops.
21467 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
21468 reply packet.
21469 * server.c (main): Recognize 'Z' and 'z' packets.
21470
214712005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
21472
21473 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
21474 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
21475 (the_low_target): Add new members.
21476
214772005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21478
21479 * proc-service.c (ps_lgetregs): Search all_processes instead of
21480 all_threads.
21481
214822005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21483
21484 * server.c (start_inferior): Change return type to int.
21485 (attach_inferior): Change sigptr to int *.
21486 (handle_v_cont, handle_v_requests): Change signal to int *.
21487 (main): Change signal to int.
21488
214892005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
21490
21491 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
21492 * configure.srv: Add m32r*-*-linux*.
21493 * linux-m32r-low.c: New file.
21494
214952005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
21496
21497 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
21498
214992005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21500
21501 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
21502 Take unsigned long arguments for PIDs.
21503 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
21504 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
21505 (wait_for_sigstop, linux_resume_one_process)
21506 (regsets_fetch_inferior_registers, linux_send_signal)
21507 (linux_read_auxv): Likewise. Update the types of variables holding
21508 PIDs. Update format string specifiers.
21509 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
21510 * remote-utils.c (prepare_resume_reply): Likewise.
21511 * server.c (cont_thread, general_thread, step_thread)
21512 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
21513 unsigned long.
21514 (handle_query): Update format specifiers.
21515 (handle_v_cont, main): Use strtoul for thread IDs.
21516 * server.h (struct inferior_list_entry): Use unsigned long for ID.
21517 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
21518 (general_thread, step_thread, thread_from_wait)
21519 (old_thread_from_wait): Update.
21520 * target.h (struct thread_resume): Use unsigned long for THREAD.
21521 (struct target_ops): Use unsigned long for arguments to attach and
21522 thread_alive.
21523
215242005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
21525
21526 * acinclude.m4: Include bfd/bfd.m4 directly.
21527 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
21528 <agriffis@toolchain.org>.
21529 * aclocal.m4, configure: Regenerated.
21530
215312005-01-07 Andrew Cagney <cagney@gnu.org>
21532
21533 * configure.ac: Rename configure.in, require autoconf 2.59.
21534 * configure: Re-generate.
21535
215362004-12-08 Daniel Jacobowitz <dan@debian.org>
21537
21538 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
21539 LIBS when finished.
21540 * aclocal.m4: Regenerated.
21541 * configure: Regenerated.
21542
215432004-11-21 Andreas Schwab <schwab@suse.de>
21544
21545 * linux-m68k-low.c (m68k_num_gregs): Define.
21546 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
21547 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
21548 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
21549 (m68k_breakpoint_at): New. Add to the_low_target.
21550
21551 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
21552 srv_linux_thread_db to yes.
21553
215542004-10-20 Joel Brobecker <brobecker@gnat.com>
21555
21556 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
21557 (ARCH_SET_FS): Likewise.
21558 (ARCH_GET_FS): Likewise.
21559 (ARCH_GET_GS): Likewise.
21560
215612004-10-16 Daniel Jacobowitz <dan@debian.org>
21562
21563 * linux-i386-low.c (ps_get_thread_area): New.
21564 * linux-x86-64-low.c (ps_get_thread_area): New.
21565 * linux-low.c: Include <sys/syscall.h>.
21566 (linux_kill_one_process): Don't kill the first thread here.
21567 (linux_kill): Kill the first thread here.
21568 (kill_lwp): New function.
21569 (send_sigstop, linux_send_signal): Use it.
21570 * proc-service.c: Clean up #ifdefs.
21571 (fpregset_info): Delete.
21572 (ps_lgetregs): Update and enable implementation.
21573 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
21574 implementations.
21575 * remote-utils.c (struct sym_cache, symbol_cache): New.
21576 (input_interrupt): Print a clearer message.
21577 (async_io_enabled): New variable.
21578 (enable_async_io, disable_async_io): Use it. Update comments.
21579 (look_up_one_symbol): Use the symbol cache.
21580 * thread-db.c (thread_db_look_up_symbols): New function.
21581 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
21582
215832004-10-16 Daniel Jacobowitz <dan@debian.org>
21584
21585 * configure.in: Test for -rdynamic.
21586 * configure: Regenerated.
21587 * Makefile (INTERNAL_LDFLAGS): New.
21588 (gdbserver, gdbreplay): Use it.
21589
215902004-09-02 Andrew Cagney <cagney@gnu.org>
21591
21592 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
21593
215942004-03-23 Daniel Jacobowitz <drow@mvista.com>
21595
21596 * linux-low.c (linux_wait): Clear all_processes list also.
21597
215982004-03-12 Daniel Jacobowitz <drow@mvista.com>
21599
21600 * linux-low.c: Include <errno.h>. Remove extern declaration of
21601 errno.
21602
216032004-03-12 Daniel Jacobowitz <drow@mvista.com>
21604
21605 * gdbreplay.c, server.h, utils.c: Update copyright years.
21606
216072004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21608
21609 * server.c (main): Print child status or termination signal from
21610 variable 'signal', not 'sig'.
21611
216122004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21613
21614 * linux-low.c (linux_read_memory): Change return type to
21615 int. Check for and return error from ptrace().
21616 * target.c (read_inferior_memory): Change return type to int. Pass
21617 back return status from the_target->read_memory().
21618 * target.h (struct target_ops): Adapt *read_memory() prototype.
21619 Update comment.
21620 (read_inferior_memory): Adapt prototype.
21621 * server.c (main): Return an error packet if
21622 read_inferior_memory() returns an error.
21623
216242004-03-04 Daniel Jacobowitz <drow@mvista.com>
21625
21626 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
21627 Unify with other clean targets.
21628
216292004-02-29 Daniel Jacobowitz <drow@mvista.com>
21630
21631 * server.c (handle_v_cont): Call set_desired_inferior.
21632
216332004-02-29 Daniel Jacobowitz <drow@mvista.com>
21634
21635 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
21636
216372004-02-29 Daniel Jacobowitz <drow@mvista.com>
21638
21639 * linux-low.c (linux_wait): Unblock async I/O.
21640 (linux_resume): Block and enable async I/O.
21641 * remote-utils.c (block_async_io, unblock_async_io): New functions.
21642 * server.h (block_async_io, unblock_async_io): Add prototypes.
21643
216442004-02-29 Daniel Jacobowitz <drow@mvista.com>
21645
21646 * remote-utils.c (remote_open): Print a status notice after
21647 opening a TCP port.
21648 * server.c (attach_inferior): Print a status notice after
21649 attaching.
21650
216512004-02-29 Daniel Jacobowitz <drow@mvista.com>
21652
21653 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
21654
216552004-02-26 Daniel Jacobowitz <drow@mvista.com>
21656
21657 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
21658 error packet.
21659 * server.c, target.h: Update copyright years.
21660
216612004-02-25 Roland McGrath <roland@redhat.com>
21662
21663 * target.h (struct target_ops): New member `read_auxv'.
21664 * server.c (handle_query): Handle qPart:auxv:read: query using that.
21665 * linux-low.c (linux_read_auxv): New function.
21666 (linux_target_ops): Initialize `read_auxv' member to that.
21667
216682004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21669
21670 Committed by Jim Blandy <jimb@redhat.com>.
21671
21672 * linux-s390-low.c (s390_num_regs): Update.
21673 (s390_regmap): Remove control registers. Use __s390x__ predefine
21674 instead of GPR_SIZE to distiguish s390 and s390x targets.
21675
216762004-01-31 Daniel Jacobowitz <drow@mvista.com>
21677
21678 * linux-low.c: Update copyright year.
21679 (check_removed_breakpoint): Clear pending_is_breakpoint.
21680 (linux_set_resume_request, linux_queue_one_thread)
21681 (resume_status_pending_p): New functions.
21682 (linux_continue_one_thread): Use process->resume.
21683 (linux_resume): Only resume threads if there are no pending events.
21684 * linux-low.h (struct process_info): Add resume request
21685 pointer.
21686
216872004-01-30 Daniel Jacobowitz <drow@mvista.com>
21688
21689 * regcache.c (new_register_cache): Clear the allocated register
21690 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
21691
216922003-10-13 Daniel Jacobowitz <drow@mvista.com>
21693
21694 * linux-low.c (linux_resume): Take a struct thread_resume *
21695 argument.
21696 (linux_wait): Update call.
21697 (resume_ptr): New static variable.
21698 (linux_continue_one_thread): Renamed from
21699 linux_continue_one_process. Use resume_ptr.
21700 (linux_resume): Use linux_continue_one_thread.
21701 * server.c (handle_v_cont, handle_v_requests): New functions.
21702 (myresume): New function.
21703 (main): Handle 'v' case.
21704 * target.h (struct thread_resume): New type.
21705 (struct target_ops): Change argument of "resume" to struct
21706 thread_resume *.
21707 (myresume): Delete macro.
21708
217092003-08-08 H.J. Lu <hongjiu.lu@intel.com>
21710
21711 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
21712 (uninstall): Support DESTDIR.
21713
21714Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
21715
21716 * configure.srv: Add xscale*linux copy of arm*linux entry.
21717
217182003-07-24 Daniel Jacobowitz <drow@mvista.com>
21719
21720 * linux-arm-low.c (arm_reinsert_addr): New function.
21721 (the_low_target): Add arm_reinsert_addr.
21722
217232003-07-08 Mark Kettenis <kettenis@gnu.org>
21724
21725 * mem-break.c: Remove whitespace at end of file.
21726
217272003-06-28 Daniel Jacobowitz <drow@mvista.com>
21728
21729 * configure.in: Check whether we need to prototype strerror.
21730 * server.h: Optionally prototype strerror.
21731 * gdbreplay.c (perror_with_name): Use strerror.
21732 * linux-low.c (linux_attach_lwp): Use strerror.
21733 * utils.c (perror_with_name): Use strerror.
21734 * config.in, configure: Regenerated.
21735
217362003-06-28 Daniel Jacobowitz <drow@mvista.com>
21737
21738 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
21739 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
21740
217412003-06-20 Daniel Jacobowitz <drow@mvista.com>
21742
21743 * Makefile.in (SFILES): Update.
21744 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
21745 low-sun3.c: Remove files.
21746
217472003-06-17 Daniel Jacobowitz <drow@mvista.com>
21748
21749 * linux-low.c: Move comment to linux_thread_alive where it belonged.
21750 (linux_detach_one_process, linux_detach): New functions.
21751 (linux_target_ops): Add linux_detach.
21752 * server.c (main): Handle 'D' packet.
21753 * target.h (struct target_ops): Add "detach" member.
21754 (detach_inferior): Define.
21755
217562003-06-13 Mark Kettenis <kettenis@gnu.org>
21757
21758 From Kelley Cook <kelleycook@wideopenwest.com>:
21759 * configure.srv: Accept i[34567]86 variants.
21760
217612003-06-05 Daniel Jacobowitz <drow@mvista.com>
21762
21763 * linux-low.c (linux_wait_for_event): Correct comment typos.
21764 (linux_resume_one_process): Call check_removed_breakpoint.
21765 (linux_send_signal): New function.
21766 (linux_target_ops): Add linux_send_signal.
21767 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
21768 of kill.
21769 * target.h (struct target_ops): Add send_signal.
21770
217712003-05-29 Jim Blandy <jimb@redhat.com>
21772
21773 * linux-low.c (usr_store_inferior_registers): Transfer buf in
21774 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
21775 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
21776 away part of the register's value.
21777
217782003-03-26 Daniel Jacobowitz <drow@mvista.com>
21779
21780 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
21781 (linux_wait_for_event, linux_init_signals): Likewise.
21782
217832003-03-17 Daniel Jacobowitz <drow@mvista.com>
21784
21785 * configure.in: Check for stdlib.h.
21786 * configure: Regenerated.
21787 * config.in: Regenerated.
21788
217892003-01-04 Andreas Schwab <schwab@suse.de>
21790
21791 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
21792
217932003-01-02 Andrew Cagney <ac131313@redhat.com>
21794
21795 * Makefile.in: Remove obsolete code.
21796
217972002-11-20 Daniel Jacobowitz <drow@mvista.com>
21798
21799 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
21800 defined(PT_FPR0_HI).
21801
218022002-11-17 Stuart Hughes <seh@zee2.com>
21803
21804 * linux-arm-low.c (arm_num_regs): Increase.
21805 (arm_regmap): Include status register.
21806
218072002-11-17 Daniel Jacobowitz <drow@mvista.com>
21808
21809 * linux-low.c (register_addr): Remove incorrect -1 check.
21810
218112002-08-29 Daniel Jacobowitz <drow@mvista.com>
21812
21813 * linux-low.c (linux_create_inferior): Call setpgid. Return
21814 the new PID.
21815 (unstopped_p, linux_signal_pid): Remove.
21816 (linux_target_ops): Remove linux_signal_pid.
21817 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
21818 global instead of target method.
21819 * target.h (struct target_ops): Remove signal_pid. Update comment
21820 for create_inferior.
21821 * server.c (signal_pid): New variable.
21822 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
21823 gdbserver. Set the child to be the foreground process group.
21824 (attach_inferior): Set signal_pid.
21825
218262002-08-23 Daniel Jacobowitz <drow@mvista.com>
21827
21828 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
21829
218302002-08-20 Jim Blandy <jimb@redhat.com>
21831
21832 * Makefile.in (LDFLAGS): Allow the configure script to establish a
21833 default for this.
21834
218352002-08-01 Andrew Cagney <cagney@redhat.com>
21836
21837 * Makefile.in: Make chill references obsolete.
21838
218392002-07-24 Kevin Buettner <kevinb@redhat.com>
21840
21841 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
21842 * configure: Regenerate.
21843 * config.in: Regenerate.
21844
218452002-07-09 David O'Brien <obrien@FreeBSD.org>
21846
21847 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
21848 (perror_with_name, remote_close, remote_open, expect, play): Static.
21849
218502002-07-04 Michal Ludvig <mludvig@suse.cz>
21851
21852 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
21853 byte offsets instead of an array of indexes.
21854 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
21855
218562002-06-13 Daniel Jacobowitz <drow@mvista.com>
21857
21858 * regcache.c: Add comment.
21859
218602002-06-11 Daniel Jacobowitz <drow@mvista.com>
21861
21862 * thread-db.c: New file.
21863 * proc-service.c: New file.
21864 * acinclude.m4: New file.
21865 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
21866 proc-service.o, and thread-db.o.
21867 (linux-low.o): Add USE_THREAD_DB.
21868 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
21869 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
21870 * aclocal.m4: Regenerated.
21871 * config.in: Regenerated.
21872 * configure: Regenerated.
21873 * configure.in: Check for proc_service.h, sys/procfs.h,
21874 thread_db.h, and linux/elf.h headrs.
21875 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
21876 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
21877 Check for -lthread_db and thread support.
21878 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
21879 PowerPC, and SuperH.
21880 * i387-fp.c: Constify arguments.
21881 * i387-fp.h: Likewise.
21882 * inferiors.c: (struct thread_info): Renamed from
21883 `struct inferior_info'. Remove PID member. Use generic inferior
21884 list header. All uses updated.
21885 (inferiors, signal_pid): Removed.
21886 (all_threads): New variable.
21887 (get_thread): Define.
21888 (add_inferior_to_list): New function.
21889 (for_each_inferior): New function.
21890 (change_inferior_id): New function.
21891 (add_inferior): Removed.
21892 (remove_inferior): New function.
21893 (add_thread): New function.
21894 (free_one_thread): New function.
21895 (remove_thread): New function.
21896 (clear_inferiors): Use for_each_inferior and free_one_thread.
21897 (find_inferior): New function.
21898 (find_inferior_id): New function.
21899 (inferior_target_data): Update argument type.
21900 (set_inferior_target_data): Likewise.
21901 (inferior_regcache_data): Likewise.
21902 (set_inferior_regcache_data): Likewise.
21903 * linux-low.c (linux_bp_reinsert): Remove.
21904 (all_processes, stopping_threads, using_thrads)
21905 (struct pending_signals, debug_threads, pid_of): New.
21906 (inferior_pid): Replace with macro.
21907 (struct inferior_linux_data): Remove.
21908 (get_stop_pc, add_process): New functions.
21909 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
21910 Use add_process and add_thread.
21911 (linux_attach_lwp): New function, based on old linux_attach. Use
21912 add_process and add_thread. Set stop_expected for new threads.
21913 (linux_attach): New function.
21914 (linux_kill_one_process): New function.
21915 (linux_kill): Kill all LWPs.
21916 (linux_thread_alive): Use find_inferior_id.
21917 (check_removed_breakpoints, status_pending_p): New functions.
21918 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
21919 Update. Use WNOHANG. Wait for cloned processes also. Update process
21920 struct for the found process.
21921 (linux_wait_for_event): New function.
21922 (linux_wait): Use it. Support LWPs.
21923 (send_sigstop, wait_for_sigstop, stop_all_processes)
21924 (linux_resume_one_process, linux_continue_one_process): New functions.
21925 (linux_resume): Support LWPs.
21926 (REGISTER_RAW_SIZE): Remove.
21927 (fetch_register): Use register_size instead. Call supply_register.
21928 (usr_store_inferior_registers): Likewise. Call collect_register.
21929 Fix recursive case.
21930 (regsets_fetch_inferior_registers): Improve error message.
21931 (regsets_store_inferior_registers): Add debugging.
21932 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
21933 (unstopped_p, linux_signal_pid): New functions.
21934 (linux_target_ops): Add linux_signal_pid.
21935 (linux_init_signals): New function.
21936 (initialize_low): Call it. Initialize using_threads.
21937 * regcache.c (inferior_regcache_data): Add valid
21938 flag.
21939 (get_regcache): Fetch registers lazily. Add fetch argument
21940 and update all callers.
21941 (regcache_invalidate_one, regcache_invalidate): New
21942 functions.
21943 (new_register_cache): Renamed from create_register_cache.
21944 Return the new regcache.
21945 (free_register_cache): Change argument to a void *.
21946 (registers_to_string, registers_from_string): Call get_regcache
21947 with fetch flag set.
21948 (register_data): Make static. Pass fetch flag to get_regcache.
21949 (supply_register): Call get_regcache with fetch flag clear.
21950 (collect_register): Call get_regcache with fetch flag set.
21951 (collect_register_as_string): New function.
21952 * regcache.h: Update.
21953 * remote-utils.c (putpkt): Flush after debug output and use
21954 stderr.
21955 Handle input interrupts while waiting for an ACK.
21956 (input_interrupt): Use signal_pid method.
21957 (getpkt): Flush after debug output and use stderr.
21958 (outreg): Use collect_register_as_string.
21959 (new_thread_notify, dead_thread_notify): New functions.
21960 (prepare_resume_reply): Check using_threads. Set thread_from_wait
21961 and general_thread.
21962 (look_up_one_symbol): Flush after debug output.
21963 * server.c (step_thread, server_waiting): New variables.
21964 (start_inferior): Don't use signal_pid. Update call to mywait.
21965 (attach_inferior): Update call to mywait.
21966 (handle_query): Handle qfThreadInfo and qsThreadInfo.
21967 (main): Don't fetch/store registers explicitly. Use
21968 set_desired_inferior. Support proposed ``Hs'' packet. Update
21969 calls to mywait.
21970 * server.h: Update.
21971 (struct inferior_list, struct_inferior_list_entry): New.
21972 * target.c (set_desired_inferior): New.
21973 (write_inferior_memory): Constify.
21974 (mywait): New function.
21975 * target.h: Update.
21976 (struct target_ops): New signal_pid method.
21977 (mywait): Removed macro, added prototype.
21978
21979 * linux-low.h (regset_func): Removed.
21980 (regset_fill_func, regset_store_func): New.
21981 (enum regset_type): New.
21982 (struct regset_info): Add type field. Use new operation types.
21983 (struct linux_target_ops): stop_pc renamed to get_pc.
21984 Add decr_pc_after_break and breakpoint_at.
21985 (get_process, get_thread_proess, get_process_thread)
21986 (strut process_info, all_processes, linux_attach_lwp)
21987 (thread_db_init): New.
21988
21989 * linux-arm-low.c (arm_get_pc, arm_set_pc,
21990 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
21991 (the_low_target): Add new members.
21992 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
21993 (i386_store_fpxregset): Constify.
21994 (target_regsets): Add new kind identifier.
21995 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
21996 (i386_set_pc): Add debugging.
21997 (i386_breakpoint_at): New function.
21998 (the_low_target): Add new members.
21999 * linux-mips-low.c (mips_get_pc, mips_set_pc)
22000 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
22001 (mips_breakpoint_at): New.
22002 (the_low_target): Add new members.
22003 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
22004 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
22005 (the_low_target): Add new members.
22006 * linux-sh-low.c (sh_get_pc, sh_set_pc)
22007 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
22008 (the_low_target): Add new members.
22009 * linux-x86-64-low.c (target_regsets): Add new kind
22010 identifier.
22011
220122002-05-15 Daniel Jacobowitz <drow@mvista.com>
22013
22014 From Martin Pool <mbp@samba.org>:
22015 * server.c (gdbserver_usage): New function.
22016 (main): Call it.
22017
220182002-05-14 Daniel Jacobowitz <drow@mvista.com>
22019
22020 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
22021 stop_at -> stop_pc.
22022
220232002-05-04 Andrew Cagney <ac131313@redhat.com>
22024
22025 * Makefile.in: Remove obsolete code.
22026
220272002-04-24 Michal Ludvig <mludvig@suse.cz>
22028
22029 * linux-low.c (regsets_fetch_inferior_registers),
22030 (regsets_store_inferior_registers): Removed cast to int from
22031 ptrace() calls.
22032 * regcache.h: Added declaration of struct inferior_info.
22033
220342002-04-20 Daniel Jacobowitz <drow@mvista.com>
22035
22036 * inferiors.c (struct inferior_info): Add regcache_data.
22037 (add_inferior): Call create_register_cache.
22038 (clear_inferiors): Call free_register_cache.
22039 (inferior_regcache_data, set_inferior_regcache_data): New functions.
22040 * regcache.c (struct inferior_regcache_data): New.
22041 (registers): Remove.
22042 (get_regcache): New function.
22043 (create_register_cache, free_register_cache): New functions.
22044 (set_register_cache): Don't initialize the register cache here.
22045 (registers_to_string, registers_from_string, register_data): Call
22046 get_regcache.
22047 * regcache.h: Add prototypes.
22048 * server.h: Likewise.
22049
220502002-04-20 Daniel Jacobowitz <drow@mvista.com>
22051
22052 * mem-break.c: New file.
22053 * mem-break.h: New file.
22054 * Makefile.in: Add mem-break.o rule; update server.h
22055 dependencies.
22056 * inferiors.c (struct inferior_info): Add target_data
22057 member.
22058 (clear_inferiors): Free target_data member if set.
22059 (inferior_target_data, set_inferior_target_data): New functions.
22060 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
22061 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
22062 * linux-low.c (linux_bp_reinsert): New variable.
22063 (struct inferior_linux_data): New.
22064 (linux_create_inferior): Use set_inferior_target_data.
22065 (linux_attach): Likewise. Call add_inferior.
22066 (linux_wait_for_one_inferior): New function.
22067 (linux_wait): Call it.
22068 (linux_write_memory): Add const.
22069 (initialize_low): Call set_breakpoint_data.
22070 * linux-low.h (struct linux_target_ops): Add breakpoint
22071 handling members.
22072 * server.c (attach_inferior): Remove extra add_inferior
22073 call.
22074 * server.h: Include mem-break.h. Update inferior.c
22075 prototypes.
22076 * target.c (read_inferior_memory)
22077 (write_inferior_memory): New functions.
22078 * target.h (read_inferior_memory)
22079 (write_inferior_memory): Change macros to prototypes.
22080 (struct target_ops): Update comments. Add const to write_memory
22081 definition.
22082
220832002-04-11 Daniel Jacobowitz <drow@mvista.com>
22084
22085 * linux-low.c (usr_store_inferior_registers): Support
22086 registers which are allowed to fail to store.
22087 * linux-low.h (linux_target_ops): Likewise.
22088 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
22089 (ppc_cannot_store_register): FPSCR may not be storable.
22090
220912002-04-09 Daniel Jacobowitz <drow@mvista.com>
22092
22093 * server.h: Include <string.h> if HAVE_STRING_H.
22094 * ChangeLog: Correct paths in last ChangeLog entry.
22095
220962002-04-09 Daniel Jacobowitz <drow@mvista.com>
22097
22098 * linux-low.h: Remove obsolete prototypes.
22099 (struct linux_target_ops): New.
22100 (extern the_low_target): New.
22101 * linux-low.c (num_regs, regmap): Remove declarations.
22102 (register_addr): Use the_low_target explicitly.
22103 (fetch_register): Likewise.
22104 (usr_fetch_inferior_registers): Likewise.
22105 (usr_store_inferior_registers): Likewise.
22106 * linux-arm-low.c (num_regs): Remove.
22107 (arm_num_regs): Define.
22108 (arm_regmap): Renamed from regmap, made static.
22109 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
22110 made static.
22111 (arm_cannot_store_register): Renamed from cannot_store_register,
22112 made static.
22113 (the_low_target): New.
22114 * linux-i386-low.c (num_regs): Remove.
22115 (i386_num_regs): Define.
22116 (i386_regmap): Renamed from regmap, made static.
22117 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
22118 made static.
22119 (i386_cannot_store_register): Renamed from cannot_store_register,
22120 made static.
22121 (the_low_target): New.
22122 * linux-ia64-low.c (num_regs): Remove.
22123 (ia64_num_regs): Define.
22124 (ia64_regmap): Renamed from regmap, made static.
22125 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
22126 made static.
22127 (ia64_cannot_store_register): Renamed from cannot_store_register,
22128 made static.
22129 (the_low_target): New.
22130 * linux-m68k-low.c (num_regs): Remove.
22131 (m68k_num_regs): Define.
22132 (m68k_regmap): Renamed from regmap, made static.
22133 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
22134 made static.
22135 (m68k_cannot_store_register): Renamed from cannot_store_register,
22136 made static.
22137 (the_low_target): New.
22138 * linux-mips-low.c (num_regs): Remove.
22139 (mips_num_regs): Define.
22140 (mips_regmap): Renamed from regmap, made static.
22141 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
22142 made static.
22143 (mips_cannot_store_register): Renamed from cannot_store_register,
22144 made static.
22145 (the_low_target): New.
22146 * linux-ppc-low.c (num_regs): Remove.
22147 (ppc_num_regs): Define.
22148 (ppc_regmap): Renamed from regmap, made static.
22149 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
22150 made static.
22151 (ppc_cannot_store_register): Renamed from cannot_store_register,
22152 made static.
22153 (the_low_target): New.
22154 * linux-s390-low.c (num_regs): Remove.
22155 (s390_num_regs): Define.
22156 (s390_regmap): Renamed from regmap, made static.
22157 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
22158 made static.
22159 (s390_cannot_store_register): Renamed from cannot_store_register,
22160 made static.
22161 (the_low_target): New.
22162 * linux-sh-low.c (num_regs): Remove.
22163 (sh_num_regs): Define.
22164 (sh_regmap): Renamed from regmap, made static.
22165 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
22166 made static.
22167 (sh_cannot_store_register): Renamed from cannot_store_register,
22168 made static.
22169 (the_low_target): New.
22170 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
22171 (the_low_target): New.
22172
221732002-04-09 Daniel Jacobowitz <drow@mvista.com>
22174
22175 * Makefile.in: Add stamp-h target.
22176 * configure.in: Create stamp-h.
22177 * configure: Regenerated.
22178
221792002-04-09 Daniel Jacobowitz <drow@mvista.com>
22180
22181 * inferiors.c: New file.
22182 * target.c: New file.
22183 * target.h: New file.
22184 * Makefile.in: Add target.o and inferiors.o. Update
22185 dependencies.
22186 * linux-low.c (inferior_pid): New static variable,
22187 moved from server.c.
22188 (linux_create_inferior): Renamed from create_inferior.
22189 Call add_inferior. Return 0 on success instead of a PID.
22190 (linux_attach): Renamed from myattach.
22191 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
22192 (linux_thread_alive): Renamed from mythread_alive.
22193 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
22194 child dies.
22195 (linux_resume): Renamed from myresume. Add missing ``return 0''.
22196 (regsets_store_inferior_registers): Correct error message.
22197 Add missing ``return 0''.
22198 (linux_fetch_registers): Renamed from fetch_inferior_registers.
22199 (linux_store_registers): Renamed from store_inferior_registers.
22200 (linux_read_memory): Renamed from read_inferior_memory.
22201 (linux_write_memory): Renamed from write_inferior_memory.
22202 (linux_target_ops): New structure.
22203 (initialize_low): Call set_target_ops ().
22204 * remote-utils.c (unhexify): New function.
22205 (hexify): New function.
22206 (input_interrupt): Send signals to ``signal_pid''.
22207 * server.c (inferior_pid): Remove.
22208 (start_inferior): Update create_inferior call.
22209 (attach_inferior): Call add_inferior.
22210 (handle_query): New function.
22211 (main): Call handle_query for `q' packets.
22212 * server.h: Include "target.h". Remove obsolete prototypes.
22213 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
22214
222152002-04-09 Daniel Jacobowitz <drow@mvista.com>
22216
22217 * Makefile.in: Add WARN_CFLAGS. Update configury
22218 dependencies.
22219 * configure.in: Check for <string.h>
22220 * configure: Regenerate.
22221 * config.in: Regenerate.
22222 * gdbreplay.c: Include needed system headers.
22223 (remote_open): Remove strchr prototype.
22224 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
22225 * regcache.c (supply_register): Change buf argument to const void *.
22226 (supply_register_by_name): Likewise.
22227 (collect_register): Change buf argument to void *.
22228 (collect_register_by_name): Likewise.
22229 * regcache.h: Add missing prototypes.
22230 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
22231 * server.c (handle_query): New function.
22232 (attached): New static variable, moved out of main.
22233 (main): Quiet longjmp clobber warnings.
22234 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
22235 * utils.c (error): Remove NORETURN.
22236 (fatal): Likewise.
This page took 0.334471 seconds and 4 git commands to generate.