f42b5c753a3b7686c5f166f4f6e820ed6d713d15
[deliverable/binutils-gdb.git] / gdbserver / ChangeLog
1 2020-07-22 Pedro Alves <pedro@palves.net>
2
3 * inferiors.cc (switch_to_process): New, moved here from
4 thread-db.cc, and made extern.
5 * inferiors.h (switch_to_process): Declare.
6 * server.cc: Include "gdbsupport/scoped_restore.h".
7 (handle_qxfer_threads_proper): Now returns bool. Prepare to
8 access memory around target calls.
9 (handle_qxfer_threads): Handle errors.
10 * thread-db.cc (switch_to_process): Moved to inferiors.cc.
11
12 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
13
14 * linux-low.cc (stopped_pids): Make static.
15
16 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
17
18 * tdesc.cc (allocate_target_description): Add header comment.
19 (target_desc_deleter::operator()): New function.
20 * tdesc.h (struct target_desc): Declare as final.
21
22 2020-07-13 Simon Marchi <simon.marchi@polymtl.ca>
23
24 * server.cc (handle_query): Use std::vector of
25 std::string for `qsupported` vector. Use separate
26 vector for unknowns.
27 * target.h (class process_stratum_target) <process_qsupported>:
28 Change parameters to array_view of const char *.
29 (target_process_qsupported): Remove `count` parameter.
30 * target.cc (process_stratum_target::process_qsupported): Change
31 parameters to array_view of const char *.
32 * linux-x86-low.cc (class x86_target) <process_qsupported>:
33 Likewise.
34
35 2020-06-29 Tom de Vries <tdevries@suse.de>
36
37 * ax.h: Include gdbsupport/debug_agent.h.
38
39 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
40
41 * tdesc.cc (struct tdesc_compatible_info): New struct.
42 (tdesc_compatible_info_list): New function.
43 (tdesc_compatible_info_arch_name): New function.
44
45 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
46
47 Use std::list to stop pending signal instead of manually-created
48 linked list.
49 * linux-low.h: Include <list>.
50 (struct pending_signal): Move here from linux-low.cc.
51 (struct lwp_info) <pending_signals>
52 <pending_signals_to_report>: Update the type.
53 * linux-low.cc (struct pending_signals): Remove.
54 (linux_process_target::delete_lwp)
55 (linux_process_target::add_lwp)
56 (enqueue_one_deferred_signal)
57 (dequeue_one_deferred_signal)
58 (enqueue_pending_signal)
59 (linux_process_target::resume_one_lwp_throw)
60 (linux_process_target::thread_needs_step_over)
61 (linux_process_target::resume_one_thread)
62 (linux_process_target::proceed_one_lwp): Update the use of pending
63 signal list.
64
65 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
66
67 * Makefile.in (%-generated.cc: ../gdb/regformats/arm/%.dat):
68 Remove.
69
70 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
71
72 * Makefile.in (SFILES): Remove win32-arm-low.cc, wincecompat.cc.
73 * configure.srv: Remove mingw32ce cases.
74 * server.h, win32-low.cc: Remove __MINGW32CE__-guarded code.
75 * win32-low.h (to_back_slashes): Remove.
76 * win32-arm-low.cc, wincecompat.cc, wincecompat.h: Remove.
77
78 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
79
80 * Makefile.in (SFILES): linux-tile-low.cc.
81 * configure.srv: Remove tilegx case.
82 * linux-tile-low.cc: Remove.
83
84 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
85
86 * Makefile.in (SFILES): Remove linux-m32r-low.cc.
87 * configure.srv: Remove m32r case.
88 * linux-m32r-low.cc: Remove.
89
90 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
91
92 * Makefile.in (SFILES): Remove linux-cris-low.c.
93 * configure.srv: Remove cris cases.
94 * linux-cris-low.cc, linux-crisv32-low.cc: Remove.
95
96 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
97
98 * Makefile.in (SFILES): Remove linux-bfin-low.c.
99 * configure.srv: Remove bfin case.
100 * linux-bfin-low.cc: Remove.
101 * linux-low.cc: Remove BFIN-conditional code.
102
103 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
104
105 * configure: Re-generate.
106 * configure.ac: Remove srv_qnx test.
107 * configure.srv: Remove nto case.
108 * nto-low.cc, nto-low.h, nto-x86-low.cc: Remove.
109 * remote-utils.c: Remove __QNX__-guarded code.
110
111 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
112
113 * configure: Re-generate.
114 * configure.ac: Remove srv_lynxos test.
115 * configure.srv: Remove lynxos cases.
116 * lynx-i386-low.cc, lynx-low.cc, lynx-low.h, lynx-ppc-low.c:
117 Remove.
118
119 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
120
121 * README: Fix a few outdated or incoherent things.
122
123 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
124
125 * win32-low.cc (do_initial_child_stuff): Set open_process_used.
126 (win32_clear_inferiors): Use open_process_used.
127 (get_child_debug_event): Likewise.
128
129 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
130
131 PR gdbserver/25893
132 * linux-low.cc (linux_process_target::create_inferior),
133 lynx-low.cc (lynx_process_target::create_inferior),
134 win32-low.cc (win32_process_target::create_inferior): Use
135 construct_inferior_arguments instead of stringify_argv
136 to get string representation which properly escapes
137 special characters.
138 * server.cc (handle_v_run): Just pass empty program arg
139 as such, since any further processing is now handled via
140 construct_inferior_arguments.
141
142 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
143
144 * nto-low.cc (nto_process_target::create_inferior): Pass
145 argv to spawnp function as char **.
146
147 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
148
149 * server.cc (captured_main), (handle_v_run): No longer
150 insert extra NULL element to args vector.
151
152 2020-05-23 Pedro Alves <palves@redhat.com>
153
154 * gdb-safe-ctype.h: New.
155
156 2020-05-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
157
158 * linux-ia64-low.cc (ia64_target::sw_breakpoint_from_kind):
159 Fix incorrect 'gdb_assert_no_reached' to 'gdb_assert_not_reached'.
160 (ia64_target::low_breakpoint_at): Ditto.
161
162 2020-05-15 Hannes Domani <ssbssa@yahoo.de>
163
164 * win32-i386-low.cc (i386_supports_z_point_type): Handle
165 Z_PACKET_HW_BP z_type.
166 (i386_insert_point): Handle raw_bkpt_type type.
167 (i386_remove_point): Likewise.
168
169 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
170
171 * configure.srv <x86_64-*-mingw*, x86_64-*-cygwin*> (srv_tgtobj):
172 Add arch/i386.o.
173 * win32-arm-low.cc (arm_num_regs): New function.
174 (struct win32_target_ops): Use arm_num_regs.
175 * win32-i386-low.cc (win32_get_current_dr): Adapt for WOW64
176 processes.
177 (i386_get_thread_context): Likewise.
178 (i386_prepare_to_resume): Likewise.
179 (i386_thread_added): Likewise.
180 (i386_single_step): Likewise.
181 (i386_fetch_inferior_register): Likewise.
182 (i386_store_inferior_register): Likewise.
183 (i386_arch_setup): Likewise.
184 (i386_win32_num_regs): New function.
185 (struct win32_target_ops): Use i386_win32_num_regs.
186 * win32-low.cc (win32_get_thread_context): Adapt for WOW64
187 processes.
188 (win32_require_context): Likewise.
189 (child_add_thread): Likewise.
190 (do_initial_child_stuff): Likewise.
191 (continue_one_thread): Likewise.
192 (win32_process_target::resume): Likewise.
193 (load_psapi): Likewise.
194 (win32_add_all_dlls): Likewise.
195 (maybe_adjust_pc): Likewise.
196 (win32_process_target::qxfer_siginfo): Likewise.
197 (initialize_low): Likewise.
198 * win32-low.h (struct win32_target_ops): Change num_regs to
199 callback function.
200
201 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
202
203 * configure.ac: Remove check for fs_base/gs_base in
204 user_regs_struct.
205 * configure: Re-generate.
206 * config.in: Re-generate.
207 * linux-x86-low.cc (x86_64_regmap, x86_fill_gregset,
208 x86_store_gregset): Adjust.
209
210 2020-04-22 Hannes Domani <ssbssa@yahoo.de>
211
212 * server.cc (handle_search_memory_1): Fix gdb_read_memory return value
213 comparison.
214
215 2020-04-16 Tom Tromey <tromey@adacore.com>
216
217 * win32-low.cc (windows_nat::handle_access_violation): New
218 function.
219
220 2020-04-15 Simon Marchi <simon.marchi@polymtl.ca>
221
222 * win32-low.cc (get_child_debug_event): Fix format string warning.
223
224 2020-04-13 Tom Tromey <tom@tromey.com>
225
226 * server.h (gdb_fildes_t): Remove typedef.
227 * remote-utils.c (remote_desc, list_desc): Now int.
228 (INVALID_DESCRIPTOR): Remove.
229 (gdb_connected, remote_close)
230 (check_remote_input_interrupt_request): Update.
231 * utils.h (pfildes): Don't declare.
232 * utils.c (pfildes): Remove.
233
234 2020-04-13 Tom Tromey <tom@tromey.com>
235
236 * server.h (handle_serial_event, handle_target_event): Update.
237 * server.c: Don't call initialize_event_loop.
238 (keep_processing_events): New global.
239 (handle_serial_event): Return void. Set keep_processing_events.
240 (handle_target_event): Return void.
241 (start_event_loop): Move from event-loop.c. Rewrite.
242 * remote-utils.c (handle_accept_event): Return void.
243 (reset_readchar): Use delete_timer.
244 (process_remaining): Return void.
245 (reschedule): Use create_timer.
246 * event-loop.h: Remove.
247 * event-loop.cc: Remove.
248 * Makefile.in (OBS): Use gdbsupport/event-loop.o, not event-loop.o.
249
250 2020-04-13 Tom Tromey <tom@tromey.com>
251
252 * server.c (invoke_async_signal_handlers)
253 (check_async_event_handlers, flush_streams, gdb_select): New
254 functions.
255
256 2020-04-13 Tom Tromey <tom@tromey.com>
257
258 * configure: Rebuild.
259 * config.in: Rebuild.
260
261 2020-04-08 Tom Tromey <tromey@adacore.com>
262
263 PR gdb/22992
264 * win32-low.c (child_continue): Call matching_pending_stop.
265 (get_child_debug_event): Call fetch_pending_stop. Push pending
266 stop when needed.
267
268 2020-04-08 Tom Tromey <tromey@adacore.com>
269
270 * win32-low.h (win32_process_target::stopped_by_sw_breakpoint)
271 (win32_process_target::supports_stopped_by_sw_breakpoint):
272 Declare.
273 * win32-low.c (win32_supports_z_point_type): Always handle
274 Z_PACKET_SW_BP.
275 (win32_insert_point): Call insert_memory_breakpoint when needed.
276 (win32_remove_point): Call remove_memory_breakpoint when needed.
277 (win32_process_target::stopped_by_sw_breakpoint)
278 (win32_process_target::supports_stopped_by_sw_breakpoint): New
279 methods.
280 (win32_target_ops): Update.
281 (maybe_adjust_pc): New function.
282 (win32_wait): Call maybe_adjust_pc.
283
284 2020-04-08 Tom Tromey <tromey@adacore.com>
285
286 * win32-low.h (struct win32_target_ops) <decr_pc_after_break>: New
287 field.
288 * win32-i386-low.c (the_low_target): Update.
289 * win32-arm-low.c (the_low_target): Update.
290
291 2020-04-08 Tom Tromey <tromey@adacore.com>
292
293 * win32-low.h (win32_process_target::read_pc)
294 (win32_process_target::write_pc): Declare.
295 * win32-low.c (win32_process_target::read_pc)
296 (win32_process_target::write_pc): New methods.
297 * win32-i386-low.c (i386_win32_get_pc, i386_win32_set_pc): New
298 functions.
299 (the_low_target): Update.
300 * win32-arm-low.c (arm_win32_get_pc, arm_win32_set_pc): New
301 functions.
302 (the_low_target): Update.
303
304 2020-04-08 Tom Tromey <tromey@adacore.com>
305
306 * win32-low.c (win32_kill, get_child_debug_event): Use
307 wait_for_debug_event.
308
309 2020-04-08 Tom Tromey <tromey@adacore.com>
310
311 * win32-low.c (child_continue): Call continue_last_debug_event.
312
313 2020-04-08 Tom Tromey <tromey@adacore.com>
314
315 * win32-low.c (handle_exception): Remove.
316 (windows_nat::handle_ms_vc_exception): New function.
317 (get_child_debug_event): Add "continue_status" parameter.
318 Update.
319 (win32_wait): Update.
320
321 2020-04-08 Tom Tromey <tromey@adacore.com>
322
323 * win32-low.c (windows_nat::handle_load_dll): Rename from
324 handle_load_dll. No longer static.
325 (windows_nat::handle_unload_dll): Rename from handle_unload_dll.
326 No longer static.
327
328 2020-04-08 Tom Tromey <tromey@adacore.com>
329
330 * win32-low.c (handle_output_debug_string): Add parameter. Change
331 return type.
332 (win32_kill, get_child_debug_event): Update.
333
334 2020-04-08 Tom Tromey <tromey@adacore.com>
335
336 * win32-low.c (current_process_handle, current_process_id)
337 (main_thread_id, last_sig, current_event, siginfo_er): Move to
338 nat/windows-nat.c.
339
340 2020-04-08 Tom Tromey <tromey@adacore.com>
341
342 * win32-low.c (get_image_name): Remove.
343 (handle_load_dll): Update.
344
345 2020-04-08 Tom Tromey <tromey@adacore.com>
346
347 * win32-low.c (windows_nat::thread_rec): Rename from thread_rec.
348 No longer static. Change parameters.
349 (child_add_thread, child_fetch_inferior_registers)
350 (child_store_inferior_registers, win32_resume)
351 (win32_get_tib_address): Update.
352
353 2020-04-08 Tom Tromey <tromey@adacore.com>
354
355 * win32-low.h (struct win32_target_ops): Use qualified names where
356 needed.
357 * win32-i386-low.c: Add "using namespace".
358 * win32-low.c: Add "using namespace".
359 * win32-arm-low.c: Add "using namespace".
360
361 2020-04-08 Tom Tromey <tromey@adacore.com>
362
363 * win32-low.c (delete_thread_info): Don't call CloseHandle.
364
365 2020-04-08 Tom Tromey <tromey@adacore.com>
366
367 * win32-low.c (win32_require_context, suspend_one_thread): Use
368 windows_thread_info::suspend.
369 (continue_one_thread): Use windows_thread_info::resume.
370 * configure.srv (srv_tgtobj): Add windows-nat.o when needed.
371
372 2020-04-08 Tom Tromey <tromey@adacore.com>
373
374 * win32-i386-low.c (update_debug_registers)
375 (i386_prepare_to_resume, i386_thread_added): Update.
376
377 2020-04-08 Tom Tromey <tromey@adacore.com>
378
379 * win32-low.c (child_add_thread): Use new.
380 (delete_thread_info): Use delete.
381
382 2020-04-08 Tom Tromey <tromey@adacore.com>
383
384 * win32-low.h (struct windows_thread_info): Remove.
385
386 2020-04-08 Tom Tromey <tromey@adacore.com>
387
388 * win32-low.h (struct windows_thread_info): Rename from
389 win32_thread_info. Remove typedef.
390 (struct win32_target_ops, win32_require_context): Update.
391 * win32-low.c (win32_get_thread_context)
392 (win32_set_thread_context, win32_prepare_to_resume)
393 (win32_require_context, thread_rec, child_add_thread)
394 (delete_thread_info, continue_one_thread)
395 (child_fetch_inferior_registers, child_store_inferior_registers)
396 (win32_resume, suspend_one_thread, win32_get_tib_address):
397 Update.
398 * win32-i386-low.c (update_debug_registers)
399 (win32_get_current_dr, i386_get_thread_context)
400 (i386_prepare_to_resume, i386_thread_added, i386_single_step)
401 (i386_fetch_inferior_register, i386_store_inferior_register):
402 Update.
403 * win32-arm-low.c (arm_get_thread_context)
404 (arm_fetch_inferior_register, arm_store_inferior_register):
405 Update.
406
407 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
408
409 * linux-low.h (struct linux_target_ops): Remove.
410 (the_low_target): Remove.
411 * linux-x86-low.cc (the_low_target): Remove.
412 * linux-aarch64-low.cc (the_low_target): Ditto.
413 * linux-arm-low.cc (the_low_target): Ditto.
414 * linux-bfin-low.cc (the_low_target): Ditto.
415 * linux-cris-low.cc (the_low_target): Ditto.
416 * linux-crisv32-low.cc (the_low_target): Ditto.
417 * linux-ia64-low.cc (the_low_target): Ditto.
418 * linux-m32r-low.cc (the_low_target): Ditto.
419 * linux-m68k-low.cc (the_low_target): Ditto.
420 * linux-mips-low.cc (the_low_target): Ditto.
421 * linux-nios2-low.cc (the_low_target): Ditto.
422 * linux-ppc-low.cc (the_low_target): Ditto.
423 * linux-riscv-low.cc (the_low_target): Ditto.
424 * linux-s390-low.cc (the_low_target): Ditto.
425 * linux-sh-low.cc (the_low_target): Ditto.
426 * linux-sparc-low.cc (the_low_target): Ditto.
427 * linux-tic6x-low.cc (the_low_target): Ditto.
428 * linux-tile-low.cc (the_low_target): Ditto.
429 * linux-xtensa-low.cc (the_low_target): Ditto.
430
431 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
432
433 Remove the 'get_ipa_tdesc_idx' linux target op and let a concrete
434 linux target define the op by overriding the declaration in
435 process_stratum_target.
436
437 * linux-low.h (struct linux_target_ops): Remove the op.
438 (class linux_process_target) <get_ipa_tdesc_idx>: Remove.
439 * linux-low.cc (linux_process_target::get_ipa_tdesc_idx): Remove.
440 * linux-x86-low.cc (class x86_target) <get_ipa_tdesc_idx>: Declare.
441 (x86_get_ipa_tdesc_idx): Turn into...
442 (x86_target::get_ipa_tdesc_idx): ...this.
443 (the_low_target): Remove the op field.
444 * linux-ppc-low.cc (class ppc_target) <get_ipa_tdesc_idx>: Declare.
445 (ppc_get_ipa_tdesc_idx): Turn into...
446 (ppc_target::get_ipa_tdesc_idx): ...this.
447 (the_low_target): Remove the op field.
448 * linux-s390-low.cc (class s390_target) <get_ipa_tdesc_idx>: Declare.
449 (s390_get_ipa_tdesc_idx): Turn into...
450 (s390_target::get_ipa_tdesc_idx): ...this.
451 (the_low_target): Remove the op field.
452
453 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
454
455 Turn the 'get_syscall_trapinfo' linux target op into a method
456 of process_stratum_target.
457
458 * linux-low.h (struct linux_target_ops): Remove the op.
459 (class linux_process_target) <get_syscall_trapinfo>
460 <gdb_catch_this_syscall>
461 <low_supports_catch_syscall>
462 <low_get_syscall_trapinfo>: Declare.
463 * linux-low.cc (get_syscall_trapinfo): Turn into...
464 (linux_process_target::get_syscall_trapinfo): ...this.
465 (linux_process_target::low_get_syscall_trapinfo): Define.
466 (gdb_catch_this_syscall_p): Turn into...
467 (linux_process_target::gdb_catch_this_syscall): ...this.
468 (linux_process_target::low_supports_catch_syscall): Define.
469
470 Update the callers below.
471
472 (linux_process_target::wait_1)
473 (linux_process_target::supports_catch_syscall)
474
475 * linux-x86-low.cc (class x86_target) <low_supports_catch_syscall>
476 <low_get_syscall_trapinfo>: Declare.
477 (x86_target::low_supports_catch_syscall): Define.
478 (x86_get_syscall_trapinfo): Turn into...
479 (x86_target::low_get_syscall_trapinfo): ...this.
480 (the_low_target): Remove the op field.
481 * linux-aarch64-low.cc (class aarch64_target)
482 <low_supports_catch_syscall>
483 <low_get_syscall_trapinfo>: Declare.
484 (aarch64_target::low_supports_catch_syscall): Define.
485 (aarch64_get_syscall_trapinfo): Turn into...
486 (aarch64_target::low_get_syscall_trapinfo): ...this.
487 (the_low_target): Remove the op field.
488 * linux-arm-low.cc (class arm_target) <low_supports_catch_syscall>
489 <low_get_syscall_trapinfo>: Declare.
490 (arm_target::low_supports_catch_syscall): Define.
491 (arm_get_syscall_trapinfo): Turn into...
492 (arm_target::low_get_syscall_trapinfo): ...this.
493 (the_low_target): Remove the op field.
494 * linux-ppc-low.cc (the_low_target): Remove the op field.
495 * linux-s390-low.cc (the_low_target): Remove the op field.
496
497 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
498
499 Remove the 'supports_hardware_single_step' linux target op and
500 override the process_stratum_target's op definition in
501 linux_process_target to return true.
502
503 * linux-low.h (struct linux_target_ops): Remove the op.
504 (class linux_process_target) <finish_step_over>
505 <maybe_hw_step>: Declare.
506 * linux-low.cc (can_hardware_single_step): Remove.
507 (maybe_hw_step): Turn into...
508 (linux_process_target::maybe_hw_step): ...this.
509 (finish_step_over): Turn into...
510 (linux_process_target::finish_step_over): ...this.
511 (linux_process_target::supports_hardware_single_step): Update
512 to return true.
513
514 Update the callers below.
515
516 (linux_process_target::single_step)
517 (linux_process_target::resume_one_lwp_throw)
518
519 * linux-arm-low.cc (class arm_target)
520 <supports_hardware_single_step>: Declare.
521 (arm_supports_hardware_single_step): Turn into...
522 (arm_target::supports_hardware_single_step): ...this.
523 (the_low_target): Remove the op field.
524 * linux-x86-low.cc (x86_supports_hardware_single_step): Remove.
525 (the_low_target): Remove the op field.
526 * linux-aarch64-low.cc (aarch64_supports_hardware_single_step):
527 Remove.
528 (the_low_target): Remove the op field.
529 * linux-bfin-low.cc (bfin_supports_hardware_single_step): Remove.
530 (the_low_target): Remove the op field.
531 * linux-crisv32-low.cc (cris_supports_hardware_single_step): Remove.
532 (the_low_target): Remove the op field.
533 * linux-m32r-low.cc (m32r_supports_hardware_single_step): Remove.
534 (the_low_target): Remove the op field.
535 * linux-m68k-low.cc (m68k_supports_hardware_single_step): Remove.
536 (the_low_target): Remove the op field.
537 * linux-ppc-low.cc (ppc_supports_hardware_single_step): Remove.
538 (the_low_target): Remove the op field.
539 * linux-s390-low.cc (s390_supports_hardware_single_step): Remove.
540 (the_low_target): Remove the op field.
541 * linux-sh-low.cc (sh_supports_hardware_single_step): Remove.
542 (the_low_target): Remove the op field.
543 * linux-tic6x-low.cc (tic6x_supports_hardware_single_step): Remove.
544 (the_low_target): Remove the op field.
545 * linux-tile-low.cc (tile_supports_hardware_single_step): Remove.
546 (the_low_target): Remove the op field.
547 * linux-xtensa-low.cc (xtensa_supports_hardware_single_step):
548 Remove.
549 (the_low_target): Remove the op field.
550
551 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
552
553 Turn the 'supports_range_stepping' linux target op into a method
554 of linux_process_target.
555
556 * linux-low.h (struct linux_target_ops): Remove the op.
557 (class linux_process_target) <low_supports_range_stepping>: Declare.
558 * linux-low.cc (linux_process_target::low_supports_range_stepping):
559 Define.
560 (linux_process_target::supports_range_stepping): Update the call
561 site.
562 * linux-x86-low.cc (class x86_target)
563 <low_supports_range_stepping>: Declare.
564 (x86_supports_range_stepping): Turn into...
565 (x86_target::low_supports_range_stepping): ...this.
566 (the_low_target): Remove the op field.
567 * linux-aarch64-low.cc (class aarch64_target)
568 <low_supports_range_stepping>: Declare.
569 (aarch64_supports_range_stepping): Turn into...
570 (aarch64_target::low_supports_range_stepping): ...this.
571 (the_low_target): Remove the op field.
572 * linux-arm-low.cc (the_low_target): Remove the op field.
573 * linux-bfin-low.cc (the_low_target): Ditto.
574 * linux-crisv32-low.cc (the_low_target): Ditto.
575 * linux-m32r-low.cc (the_low_target): Ditto.
576 * linux-m68k-low.cc (the_low_target): Ditto.
577 * linux-ppc-low.cc (the_low_target): Ditto.
578 * linux-s390-low.cc (the_low_target): Ditto.
579 * linux-sh-low.cc (the_low_target): Ditto.
580 * linux-tic6x-low.cc (the_low_target): Ditto.
581 * linux-tile-low.cc (the_low_target): Ditto.
582 * linux-xtensa-low.cc (the_low_target): Ditto.
583
584 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
585
586 Remove the 'emit_ops' linux target ops and let the concrete
587 linux target define the op by overriding the declaration of
588 process_stratum_target.
589
590 * linux-low.h (struct linux_target_ops): Remove the op.
591 (class linux_process_target) <emit_ops>: Remove.
592 * linux-low.cc (linux_process_target::emit_ops): Remove.
593 * linux-x86-low.cc (class x86_target) <emit_ops>: Declare.
594 (x86_emit_ops): Turn into...
595 (x86_target::emit_ops): ...this.
596 (the_low_target): Remove the op field.
597 * linux-aarch64-low.cc (class aarch64_target) <emit_ops>: Declare.
598 (aarch64_emit_ops): Turn into...
599 (aarch64_target::emit_ops): ...this.
600 (the_low_target): Remove the op field.
601 * linux-ppc-low.cc (class ppc_target) <emit_ops>: Declare.
602 (ppc_emit_ops): Turn into...
603 (ppc_target::emit_ops): ...this.
604 (the_low_target): Remove the op field.
605 * linux-s390-low.cc (class s390_target) <emit_ops>: Declare.
606 (s390_emit_ops): Turn into...
607 (s390_target::emit_ops): ...this.
608 (the_low_target): Remove the op field.
609 * linux-arm-low.cc (the_low_target): Remove the op field.
610 * linux-bfin-low.cc (the_low_target): Ditto.
611 * linux-crisv32-low.cc (the_low_target): Ditto.
612 * linux-m32r-low.cc (the_low_target): Ditto.
613 * linux-m68k-low.cc (the_low_target): Ditto.
614 * linux-sh-low.cc (the_low_target): Ditto.
615 * linux-tic6x-low.cc (the_low_target): Ditto.
616 * linux-tile-low.cc (the_low_target): Ditto.
617 * linux-xtensa-low.cc (the_low_target): Ditto.
618
619 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
620
621 Remove the 'install_fast_tracepoint_jump_pad' and
622 'get_min_fast_tracepoint_insn_len' linux target ops to let the
623 concrete linux target define the ops by overriding the declarations
624 of process_stratum_target.
625
626 * linux-low.h (struct linux_target_ops): Remove the ops.
627 (class linux_process_target) <supports_fast_tracepoints>
628 <install_fast_tracepoint_jump_pad>
629 <get_min_fast_tracepoint_insn_len>: Remove.
630 * linux-low.cc (linux_process_target::supports_fast_tracepoints)
631 (linux_process_target::install_fast_tracepoint_jump_pad)
632 (linux_process_target::get_min_fast_tracepoint_insn_len): Remove.
633 * linux-x86-low.cc (class x86_target) <supports_fast_tracepoints>
634 <install_fast_tracepoint_jump_pad>
635 <get_min_fast_tracepoint_insn_len>: Declare.
636 (x86_target::supports_fast_tracepoints): Define.
637 (x86_install_fast_tracepoint_jump_pad): Turn into...
638 (x86_target::install_fast_tracepoint_jump_pad): ...this.
639 (x86_get_min_fast_tracepoint_insn_len): Turn into...
640 (x86_target::get_min_fast_tracepoint_insn_len): ...this.
641 (the_low_target): Remove the op fields.
642 * linux-aarch64-low.cc (class aarch64_target)
643 <supports_fast_tracepoints>
644 <install_fast_tracepoint_jump_pad>
645 <get_min_fast_tracepoint_insn_len>: Declare.
646 (aarch64_target::supports_fast_tracepoints): Define.
647 (aarch64_install_fast_tracepoint_jump_pad): Turn into...
648 (aarch64_target::install_fast_tracepoint_jump_pad): ...this.
649 (aarch64_get_min_fast_tracepoint_insn_len): Turn into...
650 (aarch64_target::get_min_fast_tracepoint_insn_len): ...this.
651 (the_low_target): Remove the op fields.
652 * linux-ppc-low.cc (class ppc_target) <supports_fast_tracepoints>
653 <install_fast_tracepoint_jump_pad>
654 <get_min_fast_tracepoint_insn_len>: Declare.
655 (ppc_target::supports_fast_tracepoints): Define.
656 (ppc_install_fast_tracepoint_jump_pad): Turn into...
657 (ppc_target::install_fast_tracepoint_jump_pad): ...this.
658 (ppc_get_min_fast_tracepoint_insn_len): Turn into...
659 (ppc_target::get_min_fast_tracepoint_insn_len): ...this.
660 (the_low_target): Remove the op fields.
661 * linux-s390-low.cc (class s390_target) <supports_fast_tracepoints>
662 <install_fast_tracepoint_jump_pad>
663 <get_min_fast_tracepoint_insn_len>: Declare.
664 (s390_target::supports_fast_tracepoints): Define.
665 (s390_install_fast_tracepoint_jump_pad): Turn into...
666 (s390_target::install_fast_tracepoint_jump_pad): ...this.
667 (s390_get_min_fast_tracepoint_insn_len): Turn into...
668 (s390_target::get_min_fast_tracepoint_insn_len): ...this.
669 (the_low_target): Remove the op fields.
670 * linux-arm-low.cc (the_low_target): Remove the op fields.
671 * linux-bfin-low.cc (the_low_target): Ditto.
672 * linux-crisv32-low.cc (the_low_target): Ditto.
673 * linux-m32r-low.cc (the_low_target): Ditto.
674 * linux-m68k-low.cc (the_low_target): Ditto.
675 * linux-sh-low.cc (the_low_target): Ditto.
676 * linux-tic6x-low.cc (the_low_target): Ditto.
677 * linux-tile-low.cc (the_low_target): Ditto.
678 * linux-xtensa-low.cc (the_low_target): Ditto.
679
680 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
681
682 Turn the 'get_thread_area' linux target op into a method of
683 process_stratum_target.
684
685 * linux-low.h (struct linux_target_ops): Remove the op.
686 (class linux_process_target) <stuck_in_jump_pad>
687 <linux_fast_tracepoint_collecting>
688 <low_get_thread_area>: Declare.
689 * linux-low.cc (supports_fast_tracepoints): Remove.
690 (linux_fast_tracepoint_collecting): Turn into...
691 (linux_process_target::linux_fast_tracepoint_collecting): ...this.
692 (linux_process_target::low_get_thread_area): Define.
693 (stuck_in_jump_pad_callback): Turn into...
694 (linux_process_target::stuck_in_jump_pad): ...this.
695
696 Update the caller below.
697
698 (linux_process_target::stabilize_threads)
699
700 * linux-x86-low.cc (class x86_target) <low_get_thread_area>:
701 Declare.
702 (x86_get_thread_area): Turn into...
703 (x86_target::low_get_thread_area): ...this.
704 (the_low_target): Remove the op field.
705 * linux-aarch64-low.cc (class aarch64_target) <low_get_thread_area>:
706 Declare.
707 (aarch64_get_thread_area): Turn into...
708 (aarch64_target::low_get_thread_area): ...this.
709 (the_low_target): Remove the op field.
710 * linux-ppc-low.cc (class ppc_target) <low_get_thread_area>:
711 Declare.
712 (ppc_get_thread_area): Turn into...
713 (ppc_target::low_get_thread_area): ...this.
714 (the_low_target): Remove the op field.
715 * linux-s390-low.cc (class s390_target) <low_get_thread_area>:
716 Declare.
717 (s390_get_thread_area): Turn into...
718 (s390_target::low_get_thread_area): ...this.
719 (the_low_target): Remove the op field.
720 * linux-arm-low.cc (the_low_target): Remove the op field.
721 * linux-bfin-low.cc (the_low_target): Ditto.
722 * linux-crisv32-low.cc (the_low_target): Ditto.
723 * linux-m32r-low.cc (the_low_target): Ditto.
724 * linux-m68k-low.cc (the_low_target): Ditto.
725 * linux-sh-low.cc (the_low_target): Ditto.
726 * linux-tic6x-low.cc (the_low_target): Ditto.
727 * linux-tile-low.cc (the_low_target): Ditto.
728 * linux-xtensa-low.cc (the_low_target): Ditto.
729
730 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
731
732 Remote the 'supports_tracepoints' linux target op and let the
733 concrete linux target define it by overriding the op declared in
734 process_stratum_target.
735
736 * linux-low.h (struct linux_target_ops): Remove the op.
737 (class linux_process_target) <supports_tracepoints>: Remove.
738 * linux-low.cc (linux_process_target::supports_tracepoints): Remove.
739 * linux-x86-low.cc (class x86_target) <supports_tracepoints>:
740 Declare.
741 (x86_supports_tracepoints): Turn into...
742 (x86_target::supports_tracepoints): ...this.
743 (the_low_target): Remove the op field.
744 * linux-aarch64-low.cc (class aarch64_target)
745 <supports_tracepoints>: Declare.
746 (aarch64_supports_tracepoints): Turn into...
747 (aarch64_target::supports_tracepoints): ...this.
748 (the_low_target): Remove the op field.
749 * linux-ppc-low.cc (class ppc_target) <supports_tracepoints>:
750 Declare.
751 (ppc_supports_tracepoints): Turn into...
752 (ppc_target::supports_tracepoints): ...this.
753 (the_low_target): Remove the op field.
754 * linux-s390-low.cc (class s390_target) <supports_tracepoints>:
755 Declare.
756 (s390_supports_tracepoints): Turn into...
757 (s390_target::supports_tracepoints): ...this.
758 (the_low_target): Remove the op field.
759 * linux-arm-low.cc (the_low_target): Remove the op field.
760 * linux-bfin-low.cc (the_low_target): Ditto.
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-sh-low.cc (the_low_target): Ditto.
765 * linux-tic6x-low.cc (the_low_target): Ditto.
766 * linux-tile-low.cc (the_low_target): Ditto.
767 * linux-xtensa-low.cc (the_low_target): Ditto.
768
769 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
770
771 Remove the 'process_qsupported' linux target op and let a concrete
772 linux target define the op by overriding the op declaration in
773 process_stratum_target.
774
775 * linux-low.h (struct linux_target_ops): Remove the op.
776 (class linux_process_target) <process_qsupported>: Remove.
777 * linux-low.cc (linux_process_target::process_qsupported): Remove.
778 * linux-x86-low.cc (class x86_target) <process_qsupported>: Declare.
779 (x86_linux_process_qsupported): Turn into...
780 (x86_target::process_qsupported): ...this.
781 (the_low_target): Remove the op field.
782 * linux-aarch64-low.cc (the_low_target): Remove the op
783 field.
784 * linux-arm-low.cc (the_low_target): Ditto.
785 * linux-bfin-low.cc (the_low_target): Ditto.
786 * linux-crisv32-low.cc (the_low_target): Ditto.
787 * linux-m32r-low.cc (the_low_target): Ditto.
788 * linux-m68k-low.cc (the_low_target): Ditto.
789 * linux-ppc-low.cc (the_low_target): Ditto.
790 * linux-s390-low.cc (the_low_target): Ditto.
791 * linux-sh-low.cc (the_low_target): Ditto.
792 * linux-tic6x-low.cc (the_low_target): Ditto.
793 * linux-tile-low.cc (the_low_target): Ditto.
794 * linux-xtensa-low.cc (the_low_target): Ditto.
795
796 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
797
798 Turn the 'prepare_to_resume' linux target op into a method of
799 linux_process_target.
800
801 * linux-low.h (struct linux_target_ops): Remove the op.
802 (class linux_process_target) <low_prepare_to_resume>: Declare.
803 * linux-low.cc (linux_process_target::low_prepare_to_resume):
804 Define.
805
806 Update the callers below:
807
808 (linux_process_target::resume_one_lwp_throw)
809 (linux_process_target::low_prepare_to_resume)
810
811 * linux-x86-low.cc (class x86_target) <low_prepare_to_resume>:
812 Declare.
813 (x86_target::low_prepare_to_resume): Define.
814 (the_low_target): Remove the op field.
815 * linux-aarch64-low.cc (class aarch64_target)
816 <low_prepare_to_resume>: Declare.
817 (aarch64_target::low_prepare_to_resume): Define.
818 (the_low_target): Remove the op field.
819 * linux-arm-low.cc (class arm_target) <low_prepare_to_resume>:
820 Declare.
821 (arm_prepare_to_resume): Turn into...
822 (arm_target::low_prepare_to_resume): ...this.
823 (the_low_target): Remove the op field.
824 * linux-mips-low.cc (class mips_target) <low_prepare_to_resume>:
825 Declare.
826 (mips_linux_prepare_to_resume): Turn into...
827 (mips_target::low_prepare_to_resume): ...this.
828 (the_low_target): Remove the op field.
829 * linux-bfin-low.cc (the_low_target): Remove the op field.
830 * linux-crisv32-low.cc (the_low_target): Ditto.
831 * linux-m32r-low.cc (the_low_target): Ditto.
832 * linux-m68k-low.cc (the_low_target): Ditto.
833 * linux-ppc-low.cc (the_low_target): Ditto.
834 * linux-s390-low.cc (the_low_target): Ditto.
835 * linux-sh-low.cc (the_low_target): Ditto.
836 * linux-tic6x-low.cc (the_low_target): Ditto.
837 * linux-tile-low.cc (the_low_target): Ditto.
838 * linux-xtensa-low.cc (the_low_target): Ditto.
839
840 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
841
842 Turn the 'new_process', 'delete_process', 'new_thread',
843 'delete_thread', and 'new_fork' linux target ops into methods
844 of linux_process_target.
845
846 * linux-low.h (struct linux_target_ops): Remove the ops.
847 (class linux_process_target) <add_linux_process>
848 <add_lwp>
849 <delete_lwp>
850 <attach_lwp>
851 <detach_one_lwp>
852 <check_zombie_leaders>
853 <filter_exit_event>
854 <low_new_process>
855 <low_delete_process>
856 <low_new_thread>
857 <low_delete_thread>
858 <low_new_fork>: Declare.
859 * linux-low.cc (delete_lwp): Turn into...
860 (linux_process_target::delete_lwp): ...this.
861 (linux_process_target::low_delete_thread): Define.
862 (linux_add_process): Turn into...
863 (linux_process_target::add_linux_process): ...this.
864 (linux_process_target::low_new_process): Define.
865 (linux_process_target::low_delete_process): Define.
866 (linux_process_target::low_new_fork): Define.
867 (add_lwp): Turn into...
868 (linux_process_target::add_lwp): ...this.
869 (linux_process_target::low_new_thread): Define.
870 (linux_attach_lwp): Turn into...
871 (linux_process_target::attach_lwp): ...this.
872 (linux_detach_one_lwp): Turn into...
873 (linux_process_target::detach_one_lwp): ...this.
874 (linux_detach_lwp_callback): Remove and inline...
875 (linux_process_target::detach): ...here.
876 (check_zombie_leaders): Turn into...
877 (linux_process_target::check_zombie_leaders): ...this.
878 (filter_exit_event): Turn into...
879 (linux_process_target::filter_exit_event): ...this.
880
881 Update the callers below.
882
883 (linux_process_target::handle_extended_wait)
884 (linux_process_target::create_inferior)
885 (attach_proc_task_lwp_callback)
886 (linux_process_target::attach)
887 (linux_process_target::detach)
888 (linux_process_target::mourn)
889 * thread-db.cc (attach_thread)
890
891 * linux-x86-low.cc (class x86_target) <low_new_process>
892 <low_delete_process>
893 <low_new_thread>
894 <low_delete_thread>
895 <low_new_fork>: Declare.
896 (x86_linux_new_process): Turn into...
897 (x86_target::low_new_process): ...this.
898 (x86_linux_delete_process): Turn into...
899 (x86_target::low_delete_process): ...this.
900 (x86_target::low_new_thread): Define.
901 (x86_target::low_delete_thread): Define.
902 (x86_linux_new_fork): Turn into...
903 (x86_target::low_new_fork): ...this.
904 (the_low_target): Remove the op fields.
905 * linux-aarch64-low.cc (class aarch64_target) <low_new_process>
906 <low_delete_process>
907 <low_new_thread>
908 <low_delete_thread>
909 <low_new_fork>: Declare.
910 (aarch64_linux_new_process): Turn into...
911 (aarch64_target::low_new_process): ...this.
912 (aarch64_linux_delete_process): Turn into...
913 (aarch64_target::low_delete_process): ...this.
914 (aarch64_target::low_new_thread): Define.
915 (aarch64_target::low_delete_thread): Define.
916 (aarch64_linux_new_fork): Turn into...
917 (aarch64_target::low_new_fork): ...this.
918 (the_low_target): Remove the op fields.
919 * linux-arm-low.cc (class arm_target) <low_new_process>
920 <low_delete_process>
921 <low_new_thread>
922 <low_delete_thread>
923 <low_new_fork>: Declare.
924 (arm_new_process): Turn into...
925 (arm_target::low_new_process): ...this.
926 (arm_delete_process): Turn into...
927 (arm_target::low_delete_process): ...this.
928 (arm_new_thread): Turn into...
929 (arm_target::low_new_thread): ...this.
930 (arm_delete_thread): Turn into...
931 (arm_target::low_delete_thread): ...this.
932 (arm_new_fork): Turn into...
933 (arm_target::low_new_fork): ...this.
934 (the_low_target): Remove the op fields.
935 * linux-mips-low.cc (class mips_target) <low_new_process>
936 <low_delete_process>
937 <low_new_thread>
938 <low_delete_thread>
939 <low_new_fork>: Declare.
940 (mips_linux_new_process): Turn into...
941 (mips_target::low_new_process): ...this.
942 (mips_linux_delete_process): Turn into...
943 (mips_target::low_delete_process): ...this.
944 (mips_linux_new_thread): Turn into...
945 (mips_target::low_new_thread): ...this.
946 (mips_linux_delete_thread): Turn into...
947 (mips_target::low_delete_thread): ...this.
948 (mips_linux_new_fork): Turn into...
949 (mips_target::low_new_fork): ...this.
950 (the_low_target): Remove the op fields.
951 * linux-bfin-low.cc (the_low_target): Remove the op fields.
952 * linux-crisv32-low.cc (the_low_target): Ditto.
953 * linux-m32r-low.cc (the_low_target): Ditto.
954 * linux-m68k-low.cc (the_low_target): Ditto.
955 * linux-ppc-low.cc (the_low_target): Ditto.
956 * linux-s390-low.cc (the_low_target): Ditto.
957 * linux-sh-low.cc (the_low_target): Ditto.
958 * linux-tic6x-low.cc (the_low_target): Ditto.
959 * linux-tile-low.cc (the_low_target): Ditto.
960 * linux-xtensa-low.cc (the_low_target): Ditto.
961
962 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
963
964 Turn the 'siginfo_fixup' linux target op into a method of
965 linux_process_target.
966
967 * linux-low.h (struct linux_target_ops): Remove the op.
968 (class linux_process_target) <siginfo_fixup>
969 <low_siginfo_fixup>: Declare.
970 * linux-low.cc (siginfo_fixup): Turn into...
971 (linux_process_target::siginfo_fixup): ...this.
972 (linux_process_target::low_siginfo_fixup): Define.
973 * linux-x86-low.cc (class x86_target) <low_siginfo_fixup>: Declare.
974 (x86_siginfo_fixup): Turn into...
975 (x86_target::low_siginfo_fixup): ...this.
976 (the_low_target): Remove the op field.
977 * linux-aarch64-low.cc (class aarch64_target):
978 <low_siginfo_fixup>: Declare.
979 (aarch64_linux_siginfo_fixup): Turn into...
980 (aarch64_target::low_siginfo_fixup): ...this.
981 (the_low_target): Remove the op field.
982 * linux-arm-low.cc (the_low_target): Remove the op field.
983 * linux-bfin-low.cc (the_low_target): Ditto.
984 * linux-crisv32-low.cc (the_low_target): Ditto.
985 * linux-m32r-low.cc (the_low_target): Ditto.
986 * linux-m68k-low.cc (the_low_target): Ditto.
987 * linux-mips-low.cc (the_low_target): Ditto.
988 * linux-ppc-low.cc (the_low_target): Ditto.
989 * linux-s390-low.cc (the_low_target): Ditto.
990 * linux-sh-low.cc (the_low_target): Ditto.
991 * linux-tic6x-low.cc (the_low_target): Ditto.
992 * linux-tile-low.cc (the_low_target): Ditto.
993 * linux-xtensa-low.cc (the_low_target): Ditto.
994
995 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
996
997 Turn the 'collect_ptrace_register' and 'supply_ptrace_register'
998 linux target ops into methods of linux_process_target.
999
1000 * linux-low.h (struct linux_target_ops): Remove the ops.
1001 (class linux_process_target) <low_collect_ptrace_register>
1002 <low_store_ptrace_register>: Declare.
1003 * linux-low.cc (linux_process_target::low_collect_ptrace_register)
1004 (linux_process_target::low_supply_ptrace_register): Define.
1005
1006 Update the callers below.
1007
1008 (linux_process_target::fetch_register)
1009 (linux_process_target::store_register)
1010
1011 * linux-x86-low.cc (the_low_target): Remove the op fields.
1012 * linux-aarch64-low.cc (the_low_target): Ditto.
1013 * linux-arm-low.cc (the_low_target): Ditto.
1014 * linux-bfin-low.cc (the_low_target): Ditto.
1015 * linux-crisv32-low.cc (the_low_target): Ditto.
1016 * linux-m32r-low.cc (the_low_target): Ditto.
1017 * linux-m68k-low.cc (the_low_target): Ditto.
1018 * linux-sh-low.cc (the_low_target): Ditto.
1019 * linux-sparc-low.cc (the_low_target): Ditto.
1020 * linux-tic6x-low.cc (the_low_target): Ditto.
1021 * linux-tile-low.cc (the_low_target): Ditto.
1022 * linux-xtensa-low.cc (the_low_target): Ditto.
1023 * linux-mips-low.cc (class mips_target)
1024 <low_collect_ptrace_register>
1025 <low_supply_ptrace_register>: Declare.
1026 (mips_collect_ptrace_register): Turn into ...
1027 (mips_target::low_collect_ptrace_register): ...this.
1028 (mips_supply_ptrace_register): Turn into...
1029 (mips_target::low_supply_ptrace_register): ...this.
1030 (the_low_target): Remove the op fields.
1031 * linux-ppc-low.cc (class ppc_target)
1032 <low_collect_ptrace_register>
1033 <low_supply_ptrace_register>: Declare.
1034 (ppc_collect_ptrace_register): Turn into ...
1035 (ppc_target::low_collect_ptrace_register): ...this.
1036 (ppc_supply_ptrace_register): Turn into ...
1037 (ppc_target::low_supply_ptrace_register): ...this.
1038 (ppc_fill_gregset): Update for the calls to
1039 low_collect_ptrace_register.
1040 (the_low_target): Remove the op fields.
1041 * linux-s390-low.cc (class s390_target)
1042 <low_collect_ptrace_register>
1043 <low_supply_ptrace_register>: Declare.
1044 (s390_collect_ptrace_register): Turn into ...
1045 (s390_target::low_collect_ptrace_register): ...this.
1046 (s390_supply_ptrace_register): Turn into ...
1047 (s390_target::low_supply_ptrace_register): ...this.
1048 (s390_fill_gregset): Update for the calls to
1049 low_collect_ptrace_register.
1050 (the_low_target): Remove the op fields.
1051
1052 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1053
1054 Turn the 'stopped_by_watchpoint' and 'stopped_data_address' linux
1055 target ops into methods of linux_process_target.
1056
1057 * linux-low.h (struct linux_target_ops): Remove the ops.
1058 (class linux_process_target) <check_stopped_by_watchpoint>
1059 <low_stopped_by_watchpoint>
1060 <low_stopped_data_address>: Declare.
1061 * linux-low.cc (check_stopped_by_watchpoint): Turn into...
1062 (linux_process_target::check_stopped_by_watchpoint): ...this.
1063 (linux_process_target::low_stopped_by_watchpoint): Define.
1064 (linux_process_target::low_stopped_data_address): Define.
1065 * linux-x86-low.cc (class x86_target) <low_stopped_by_watchpoint>
1066 <low_stopped_data_address>: Declare.
1067 (x86_stopped_by_watchpoint): Turn into...
1068 (x86_target::low_stopped_by_watchpoint): ...this.
1069 (x86_stopped_data_address): Turn into...
1070 (x86_target::low_stopped_data_address): ...this.
1071 (the_low_target): Remove the op fields.
1072 * linux-aarch64-low.cc (class aarch64_target)
1073 <low_stopped_by_watchpoint>
1074 <low_stopped_data_address>: Declare.
1075 (aarch64_stopped_by_watchpoint): Turn into...
1076 (aarch64_target::low_stopped_by_watchpoint): ...this.
1077 (aarch64_stopped_data_address): Turn into...
1078 (aarch64_target::low_stopped_data_address): ...this.
1079 (the_low_target): Remove the op fields.
1080 * linux-arm-low.cc (class arm_target) <low_stopped_by_watchpoint>
1081 <low_stopped_data_address>: Declare.
1082 (arm_stopped_by_watchpoint): Turn into...
1083 (arm_target::low_stopped_by_watchpoint): ...this.
1084 (arm_stopped_data_address): Turn into...
1085 (arm_target::low_stopped_data_address): ...this.
1086 (the_low_target): Remove the op fields.
1087 * linux-crisv32-low.cc (class crisv32_target)
1088 <low_stopped_by_watchpoint>
1089 <low_stopped_data_address>: Declare.
1090 (cris_stopped_by_watchpoint): Turn into...
1091 (crisv32_target::low_stopped_by_watchpoint): ...this.
1092 (cris_stopped_data_address): Turn into...
1093 (crisv32_target::low_stopped_data_address): ...this.
1094 (the_low_target): Remove the op fields.
1095 * linux-mips-low.cc (class mips_target) <low_stopped_by_watchpoint>
1096 <low_stopped_data_address>: Declare.
1097 (mips_stopped_by_watchpoint): Turn into...
1098 (mips_target::low_stopped_by_watchpoint): ...this.
1099 (mips_stopped_data_address): Turn into...
1100 (mips_target::low_stopped_data_address): ...this.
1101 (the_low_target): Remove the op fields.
1102 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1103 * linux-m32r-low.cc (the_low_target): Ditto.
1104 * linux-m68k-low.cc (the_low_target): Ditto.
1105 * linux-ppc-low.cc (the_low_target): Ditto.
1106 * linux-s390-low.cc (the_low_target): Ditto.
1107 * linux-sh-low.cc (the_low_target): Ditto.
1108 * linux-sparc-low.cc (the_low_target): Ditto.
1109 * linux-tic6x-low.cc (the_low_target): Ditto.
1110 * linux-tile-low.cc (the_low_target): Ditto.
1111 * linux-xtensa-low.cc (the_low_target): Ditto.
1112
1113 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1114
1115 Turn the 'insert_point' and 'remove_point' linux target ops into
1116 methods of linux_process_target.
1117
1118 * linux-low.h (struct linux_target_ops): Remove the ops.
1119 (class linux_process_target) <low_insert_point>
1120 <low_remove_point>: Declare.
1121 * linux-low.cc (linux_process_target::low_insert_point)
1122 (linux_process_target::low_remove_point): Define.
1123 (linux_process_target::insert_point)
1124 (linux_process_target::remove_point): Update for calls to
1125 low_insert_point and low_remove_point.
1126 * linux-x86-low.cc (class x86_target) <low_insert_point>
1127 <low_remove_point>: Declare.
1128 (x86_insert_point): Turn into...
1129 (x86_target::low_insert_point): ...this.
1130 (x86_remove_point): Turn into...
1131 (x86_target::low_remove_point): ...this.
1132 (the_low_target): Remove the op fields.
1133 * linux-aarch64-low.cc (class aarch64_target) <low_insert_point>
1134 <low_remove_point>: Declare.
1135 (aarch64_insert_point): Turn into...
1136 (aarch64_target::low_insert_point): ...this.
1137 (aarch64_remove_point): Turn into...
1138 (aarch64_target::low_remove_point): ...this.
1139 (the_low_target): Remove the op fields.
1140 * linux-arm-low.cc (class arm_target) <low_insert_point>
1141 <low_remove_point>: Declare.
1142 (arm_insert_point): Turn into...
1143 (arm_target::low_insert_point): ...this.
1144 (arm_remove_point): Turn into...
1145 (arm_target::low_remove_point): ...this.
1146 (the_low_target): Remove the op fields.
1147 * linux-crisv32-low.cc (class crisv32_target) <low_insert_point>
1148 <low_remove_point>: Declare.
1149 (crisv32_insert_point): Turn into...
1150 (crisv32_target::low_insert_point): ...this.
1151 (crisv32_remove_point): Turn into...
1152 (crisv32_target::low_remove_point): ...this.
1153 (the_low_target): Remove the op fields.
1154 * linux-mips-low.cc (class mips_target) <low_insert_point>
1155 <low_remove_point>: Declare.
1156 (mips_insert_point): Turn into...
1157 (mips_target::low_insert_point): ...this.
1158 (mips_remove_point): Turn into...
1159 (mips_target::low_remove_point): ...this.
1160 (the_low_target): Remove the op fields.
1161 * linux-ppc-low.cc (class ppc_target) <low_insert_point>
1162 <low_remove_point>: Declare.
1163 (ppc_insert_point): Turn into...
1164 (ppc_target::low_insert_point): ...this.
1165 (ppc_remove_point): Turn into...
1166 (ppc_target::low_remove_point): ...this.
1167 (the_low_target): Remove the op fields.
1168 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1169 * linux-m32r-low.cc (the_low_target): Ditto.
1170 * linux-m68k-low.cc (the_low_target): Ditto.
1171 * linux-s390-low.cc (the_low_target): Ditto.
1172 * linux-sh-low.cc (the_low_target): Ditto.
1173 * linux-sparc-low.cc (the_low_target): Ditto.
1174 * linux-tic6x-low.cc (the_low_target): Ditto.
1175 * linux-tile-low.cc (the_low_target): Ditto.
1176 * linux-xtensa-low.cc (the_low_target): Ditto.
1177
1178 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1179
1180 Remove the 'supports_z_point_type' linux target op and let the
1181 concrete linux target define it by overriding the op declared in
1182 process_stratum_target.
1183
1184 * linux-low.cc (linux_process_target::supports_z_point_type):
1185 Remove.
1186 * linux-low.h (struct linux_target_ops): Remove the op.
1187 (class linux_process_target) <supports_z_point_type>: Remove.
1188 * linux-x86-low.cc (class x86_target) <supports_z_point_type>:
1189 Declare.
1190 (x86_supports_z_point_type): Turn into...
1191 (x86_target::supports_z_point_type): ...this.
1192 (the_low_target): Remove the op field.
1193 * linux-aarch64-low.cc (class aarch64_target)
1194 <supports_z_point_type>: Declare.
1195 (aarch64_supports_z_point_type): Turn into...
1196 (aarch64_target::supports_z_point_type): ...this.
1197 (the_low_target): Remove the op field.
1198 * linux-arm-low.cc (class arm_target) <supports_z_point_type>:
1199 Declare.
1200 (arm_supports_z_point_type): Turn into...
1201 (arm_target::supports_z_point_type): ...this.
1202 (the_low_target): Remove the op field.
1203 * linux-crisv32-low.cc (class crisv32_target)
1204 <supports_z_point_type>: Declare.
1205 (cris_supports_z_point_type): Turn into...
1206 (crisv32_target::supports_z_point_type): ...this.
1207 (the_low_target): Remove the op field.
1208 * linux-mips-low.cc (class mips_target) <supports_z_point_type>:
1209 Declare.
1210 (mips_supports_z_point_type): Turn into...
1211 (mips_target::supports_z_point_type): ...this.
1212 (the_low_target): Remove the op field.
1213 * linux-ppc-low.cc (class ppc_target) <supports_z_point_type>:
1214 Declare.
1215 (ppc_supports_z_point_type): Turn into...
1216 (ppc_target::supports_z_point_type): ...this.
1217 (the_low_target): Remove the op field.
1218 * linux-s390-low.cc (class s390_target) <supports_z_point_type>:
1219 Declare.
1220 (s390_supports_z_point_type): Turn into...
1221 (s390_target::supports_z_point_type): ...this.
1222 (the_low_target): Remove the op field.
1223 * linux-bfin-low.cc (the_low_target): Remove the op field.
1224 * linux-m32r-low.cc (the_low_target): Ditto.
1225 * linux-m68k-low.cc (the_low_target): Ditto.
1226 * linux-sh-low.cc (the_low_target): Ditto.
1227 * linux-sparc-low.cc (the_low_target): Ditto.
1228 * linux-tic6x-low.cc (the_low_target): Ditto.
1229 * linux-tile-low.cc (the_low_target): Ditto.
1230 * linux-xtensa-low.cc (the_low_target): Ditto.
1231
1232 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1233
1234 Turn the 'breakpoint_at' linux target op into a method of
1235 linux_process_target.
1236
1237 * linux-low.h (struct linux_target_ops): Remove the op.
1238 (class linux_process_target) <low_breakpoint_at>: Declare.
1239
1240 Update the callers below:
1241
1242 * linux-low.cc (linux_process_target::save_stop_reason)
1243 (linux_process_target::thread_still_has_status_pending)
1244 (linux_process_target::wait_1)
1245
1246 * linux-x86-low.cc (class x86_target)
1247 <low_breakpoint_at>: Declare.
1248 (x86_breakpoint_at): Turn into...
1249 (x86_target::low_breakpoint_at): ...this.
1250 (the_low_target): Remove the op field.
1251 * linux-aarch64-low.cc (class aarch64_target)
1252 <low_breakpoint_at>: Declare.
1253 (aarch64_breakpoint_at): Turn into...
1254 (aarch64_target::low_breakpoint_at): ...this.
1255 (the_low_target): Remove the op field.
1256 * linux-arm-low.cc (class arm_target)
1257 <low_breakpoint_at>: Declare.
1258 (arm_target::low_breakpoint_at): Define.
1259 (the_low_target): Remove the op field.
1260 * linux-bfin-low.cc (class bfin_target)
1261 <low_breakpoint_at>: Declare.
1262 (bfin_breakpoint_at): Turn into...
1263 (bfin_target::low_breakpoint_at): ...this.
1264 (the_low_target): Remove the op field.
1265 * linux-cris-low.cc (class cris_target)
1266 <low_breakpoint_at>: Declare.
1267 (cris_breakpoint_at): Turn into...
1268 (cris_target::low_breakpoint_at): ...this.
1269 (the_low_target): Remove the op field.
1270 * linux-crisv32-low.cc (class crisv32_target)
1271 <low_breakpoint_at>: Declare.
1272 (crisv32_breakpoint_at): Turn into...
1273 (crisv32_target::low_breakpoint_at): ...this.
1274 (the_low_target): Remove the op field.
1275 * linux-ia64-low.cc (class ia64_target)
1276 <low_breakpoint_at>: Declare.
1277 (ia64_target::low_breakpoint_at): Define.
1278 * linux-m32r-low.cc (class m32r_target)
1279 <low_breakpoint_at>: Declare.
1280 (m32r_breakpoint_at): Turn into...
1281 (m32r_target::low_breakpoint_at): ...this.
1282 (the_low_target): Remove the op field.
1283 * linux-m68k-low.cc (class m68k_target)
1284 <low_breakpoint_at>: Declare.
1285 (m68k_breakpoint_at): Turn into...
1286 (m68k_target::low_breakpoint_at): ...this.
1287 (the_low_target): Remove the op field.
1288 * linux-mips-low.cc (class mips_target)
1289 <low_breakpoint_at>: Declare.
1290 (mips_breakpoint_at): Turn into...
1291 (mips_target::low_breakpoint_at): ...this.
1292 (the_low_target): Remove the op field.
1293 * linux-nios2-low.cc (class nios2_target)
1294 <low_breakpoint_at>: Declare.
1295 (nios2_breakpoint_at): Turn into...
1296 (nios2_target::low_breakpoint_at): ...this.
1297 (the_low_target): Remove the op field.
1298 * linux-ppc-low.cc (class ppc_target)
1299 <low_breakpoint_at>: Declare.
1300 (ppc_breakpoint_at): Turn into...
1301 (ppc_target::low_breakpoint_at): ...this.
1302 (the_low_target): Remove the op field.
1303 * linux-riscv-low.cc (class riscv_target)
1304 <low_breakpoint_at>: Declare.
1305 (riscv_breakpoint_at): Turn into...
1306 (riscv_target::low_breakpoint_at): ...this.
1307 (the_low_target): Remove the op field.
1308 * linux-s390-low.cc (class s390_target)
1309 <low_breakpoint_at>: Declare.
1310 (s390_breakpoint_at): Turn into...
1311 (s390_target::low_breakpoint_at): ...this.
1312 (the_low_target): Remove the op field.
1313 * linux-sh-low.cc (class sh_target)
1314 <low_breakpoint_at>: Declare.
1315 (sh_breakpoint_at): Turn into...
1316 (sh_target::low_breakpoint_at): ...this.
1317 (the_low_target): Remove the op field.
1318 * linux-sparc-low.cc (class sparc_target)
1319 <low_breakpoint_at>: Declare.
1320 (sparc_breakpoint_at): Turn into...
1321 (sparc_target::low_breakpoint_at): ...this.
1322 (the_low_target): Remove the op field.
1323 * linux-tic6x-low.cc (class tic6x_target)
1324 <low_breakpoint_at>: Declare.
1325 (tic6x_breakpoint_at): Turn into...
1326 (tic6x_target::low_breakpoint_at): ...this.
1327 (the_low_target): Remove the op field.
1328 * linux-tile-low.cc (class tile_target)
1329 <low_breakpoint_at>: Declare.
1330 (tile_breakpoint_at): Turn into...
1331 (tile_target::low_breakpoint_at): ...this.
1332 (the_low_target): Remove the op field.
1333 * linux-xtensa-low.cc (class xtensa_target)
1334 <low_breakpoint_at>: Declare.
1335 (xtensa_breakpoint_at): Turn into...
1336 (xtensa_target::low_breakpoint_at): ...this.
1337 (the_low_target): Remove the op field.
1338
1339 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1340
1341 Turn the 'decr_pc_after_break' linux_target_ops field into
1342 a method of linux_process_target.
1343
1344 * linux-low.h (struct linux_target_ops)
1345 <decr_pc_after_break>: Remove.
1346 (class linux_process_target) <low_decr_pc_after_break>: New method
1347 declaration.
1348 * linux-low.cc (linux_process_target::low_decr_pc_after_break):
1349 New method implementation.
1350
1351 Update the users below.
1352
1353 (linux_process_target::save_stop_reason)
1354 (linux_process_target::wait_1)
1355 * linux-x86-low.cc (class x86_target) <low_decr_pc_after_break>:
1356 New declaration.
1357 (x86_target::low_decr_pc_after_break): New method implementation.
1358 (the_low_target): Remove the field.
1359 * linux-bfin-low.cc (class bfin_target) <low_decr_pc_after_break>:
1360 New declaration.
1361 (bfin_target::low_decr_pc_after_break): New method implementation.
1362 (the_low_target): Remove the field.
1363 * linux-m68k-low.cc (class m68k_target) <low_decr_pc_after_break>:
1364 New declaration.
1365 (m68k_target::low_decr_pc_after_break): New method implementation.
1366 (the_low_target): Remove the field.
1367 * linux-s390-low.cc (class s390_target) <low_decr_pc_after_break>:
1368 New declaration.
1369 (s390_target::low_decr_pc_after_break): New method implementation.
1370 (the_low_target): Remove the field.
1371 * linux-aarch64-low.cc (the_low_target): Remove the field.
1372 * linux-arm-low.cc (the_low_target): Remove the field.
1373 * linux-cris-low.cc (the_low_target): Remove the field.
1374 * linux-crisv32-low.cc (the_low_target): Remove the field.
1375 * linux-m32r-low.cc (the_low_target): Remove the field.
1376 * linux-mips-low.cc (the_low_target): Remove the field.
1377 * linux-nios2-low.cc (the_low_target): Remove the field.
1378 * linux-ppc-low.cc (the_low_target): Remove the field.
1379 * linux-riscv-low.cc (the_low_target): Remove the field.
1380 * linux-sh-low.cc (the_low_target): Remove the field.
1381 * linux-sparc-low.cc (the_low_target): Remove the field.
1382 * linux-tic6x-low.cc (the_low_target): Remove the field.
1383 * linux-tile-low.cc (the_low_target): Remove the field.
1384 * linux-xtensa-low.cc (the_low_target): Remove the field.
1385
1386 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1387
1388 Remove the 'supports_software_single_step' linux target op and let
1389 the concrete linux target define it by overriding the op in
1390 process_stratum_target.
1391 Turn the 'get_next_pcs' linux target op into a method of
1392 linux_process_target.
1393
1394 * linux-low.h (struct linux_target_ops): Remove the ops.
1395 (class linux_process_target) <supports_software_single_step>:
1396 Remove.
1397 <low_get_next_pcs>: Declare.
1398 * linux-low.cc (can_software_single_step): Remove.
1399 (linux_process_target::low_get_next_pcs): Define.
1400 (linux_process_target::supports_software_single_step): Remove.
1401
1402 Update the callers below.
1403
1404 (linux_process_target::handle_extended_wait)
1405 (linux_process_target::wait_1)
1406 (linux_process_target::install_software_single_step_breakpoints)
1407 (linux_process_target::single_step)
1408 (linux_process_target::thread_needs_step_over)
1409 (linux_process_target::proceed_one_lwp)
1410 (linux_process_target::supports_range_stepping)
1411
1412 * linux-x86-low.cc (the_low_target): Remove the op field.
1413 * linux-aarch64-low.cc (the_low_target): Ditto.
1414 * linux-bfin-low.cc (the_low_target): Ditto.
1415 * linux-cris-low.cc (the_low_target): Ditto.
1416 * linux-crisv32-low.cc (the_low_target): Ditto.
1417 * linux-m32r-low.cc (the_low_target): Ditto.
1418 * linux-m68k-low.cc (the_low_target): Ditto.
1419 * linux-mips-low.cc (the_low_target): Ditto.
1420 * linux-nios2-low.cc (the_low_target): Ditto.
1421 * linux-ppc-low.cc (the_low_target): Ditto.
1422 * linux-riscv-low.cc (the_low_target): Ditto.
1423 * linux-s390-low.cc (the_low_target): Ditto.
1424 * linux-sh-low.cc (the_low_target): Ditto.
1425 * linux-sparc-low.cc (the_low_target): Ditto.
1426 * linux-tic6x-low.cc (the_low_target): Ditto.
1427 * linux-tile-low.cc (the_low_target): Ditto.
1428 * linux-xtensa-low.cc (the_low_target): Ditto.
1429 * linux-arm-low.cc (class arm_target) <low_get_next_pcs>
1430 <supports_software_single_step>: Declare.
1431 (arm_target::supports_software_single_step): Define.
1432 (arm_gdbserver_get_next_pcs): Turn into...
1433 (arm_target::low_get_next_pcs): ...this.
1434 (the_low_target): Remove the op field.
1435
1436 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1437
1438 Remove the 'sw_breakpoint_from_kind' linux target op, and let
1439 the concrete linux target define it by overriding the op
1440 in process_stratum_target.
1441
1442 * linux-low.cc (linux_process_target::sw_breakpoint_from_kind):
1443 Remove.
1444 * linux-low.h (struct linux_target_ops): Remove the op.
1445 (class linux_process_target) <sw_breakpoint_from_kind>: Remove.
1446 * linux-x86-low.cc (class x86_target) <sw_breakpoint_from_kind>:
1447 Declare.
1448 (x86_sw_breakpoint_from_kind): Turn into...
1449 (x86_target::sw_breakpoint_from_kind): ...this.
1450 (the_low_target): Remove the op field.
1451 * linux-aarch64-low.cc (class aarch64_target)
1452 <sw_breakpoint_from_kind>: Declare.
1453 (aarch64_sw_breakpoint_from_kind): Turn into...
1454 (aarch64_target::sw_breakpoint_from_kind): ...this.
1455 (the_low_target): Remove the op field.
1456 * linux-arm-low.cc (class arm_target) <sw_breakpoint_from_kind>:
1457 Declare.
1458 (arm_target::sw_breakpoint_from_kind): Define.
1459 (the_low_target): Remove the op field.
1460 * linux-bfin-low.cc (class bfin_target) <sw_breakpoint_from_kind>:
1461 Declare.
1462 (bfin_sw_breakpoint_from_kind): Turn into...
1463 (bfin_target::sw_breakpoint_from_kind): ...this.
1464 (the_low_target): Remove the op field.
1465 * linux-cris-low.cc (class cris_target) <sw_breakpoint_from_kind>:
1466 Declare.
1467 (cris_sw_breakpoint_from_kind): Turn into...
1468 (cris_target::sw_breakpoint_from_kind): ...this.
1469 (the_low_target): Remove the op field.
1470 * linux-crisv32-low.cc (class crisv32_target)
1471 <sw_breakpoint_from_kind>: Declare.
1472 (cris_sw_breakpoint_from_kind): Turn into...
1473 (crisv32_target::sw_breakpoint_from_kind): ...this.
1474 (the_low_target): Remove the op field.
1475 * linux-ia64-low.cc (class ia64_target) <sw_breakpoint_from_kind>:
1476 Declare.
1477 (ia64_target::sw_breakpoint_from_kind): Define.
1478 * linux-m32r-low.cc (class m32r_target) <sw_breakpoint_from_kind>:
1479 Declare.
1480 (m32r_sw_breakpoint_from_kind): Turn into...
1481 (m32r_target::sw_breakpoint_from_kind): ...this.
1482 (the_low_target): Remove the op field.
1483 * linux-m68k-low.cc (class m68k_target) <sw_breakpoint_from_kind>:
1484 Declare.
1485 (m68k_sw_breakpoint_from_kind): Turn into...
1486 (m68k_target::sw_breakpoint_from_kind): ...this.
1487 (the_low_target): Remove the op field.
1488 * linux-mips-low.cc (class mips_target) <sw_breakpoint_from_kind>:
1489 Declare.
1490 (mips_sw_breakpoint_from_kind): Turn into...
1491 (mips_target::sw_breakpoint_from_kind): ...this.
1492 (the_low_target): Remove the op field.
1493 * linux-nios2-low.cc (class nios2_target) <sw_breakpoint_from_kind>:
1494 Declare.
1495 (nios2_sw_breakpoint_from_kind): Turn into...
1496 (nios2_target::sw_breakpoint_from_kind): ...this.
1497 (the_low_target): Remove the op field.
1498 * linux-ppc-low.cc (class ppc_target) <sw_breakpoint_from_kind>:
1499 Declare.
1500 (ppc_sw_breakpoint_from_kind): Turn into...
1501 (ppc_target::sw_breakpoint_from_kind): ...this.
1502 (the_low_target): Remove the op field.
1503 * linux-riscv-low.cc (class riscv_target) <sw_breakpoint_from_kind>:
1504 Declare.
1505 (riscv_sw_breakpoint_from_kind): Turn into...
1506 (riscv_target::sw_breakpoint_from_kind): ...this.
1507 (the_low_target): Remove the op field.
1508 * linux-s390-low.cc (class s390_target) <sw_breakpoint_from_kind>:
1509 Declare.
1510 (s390_sw_breakpoint_from_kind): Turn into...
1511 (s390_target::sw_breakpoint_from_kind): ...this.
1512 (the_low_target): Remove the op field.
1513 * linux-sh-low.cc (class sh_target) <sw_breakpoint_from_kind>:
1514 Declare.
1515 (sh_sw_breakpoint_from_kind): Turn into...
1516 (sh_target::sw_breakpoint_from_kind): ...this.
1517 (the_low_target): Remove the op field.
1518 * linux-sparc-low.cc (class sparc_target) <sw_breakpoint_from_kind>:
1519 Declare.
1520 (sparc_sw_breakpoint_from_kind): Turn into...
1521 (sparc_target::sw_breakpoint_from_kind): ...this.
1522 (the_low_target): Remove the op field.
1523 * linux-tic6x-low.cc (class tic6x_target) <sw_breakpoint_from_kind>:
1524 Declare.
1525 (tic6x_sw_breakpoint_from_kind): Turn into...
1526 (tic6x_target::sw_breakpoint_from_kind): ...this.
1527 (the_low_target): Remove the op field.
1528 * linux-tile-low.cc (class tile_target) <sw_breakpoint_from_kind>:
1529 Declare.
1530 (tile_sw_breakpoint_from_kind): Turn into...
1531 (tile_target::sw_breakpoint_from_kind): ...this.
1532 (the_low_target): Remove the op field.
1533 * linux-xtensa-low.cc (class xtensa_target)
1534 <sw_breakpoint_from_kind>: Declare.
1535 (xtensa_sw_breakpoint_from_kind): Turn into...
1536 (xtensa_target::sw_breakpoint_from_kind): ...this.
1537 (the_low_target): Remove the op field.
1538
1539 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1540
1541 Remove the 'breakpoint_kind_from_pc' and
1542 'breakpoint_kind_from_current_state' linux target ops, and let the
1543 concrete linux target define them by overriding the ops of
1544 process_stratum_target.
1545
1546 * linux-low.cc (linux_process_target::breakpoint_kind_from_pc):
1547 Remove.
1548 (linux_process_target::breakpoint_kind_from_current_state): Remove.
1549 * linux-low.h (struct linux_target_ops): Remove ops.
1550 (class linux_process_target) <breakpoint_kind_from_pc>: Remove.
1551 <breakpoint_kind_from_current_state>: Remove.
1552 * linux-x86-low.cc (the_low_target): Remove the op fields.
1553 * linux-bfin-low.cc (the_low_target): Ditto.
1554 * linux-cris-low.cc (the_low_target): Ditto.
1555 * linux-crisv32-low.cc (the_low_target): Ditto.
1556 * linux-m32r-low.cc (the_low_target): Ditto.
1557 * linux-m68k-low.cc (the_low_target): Ditto.
1558 * linux-mips-low.cc (the_low_target): Ditto.
1559 * linux-nios2-low.cc (the_low_target): Ditto.
1560 * linux-ppc-low.cc (the_low_target): Ditto.
1561 * linux-s390-low.cc (the_low_target): Ditto.
1562 * linux-sh-low.cc (the_low_target): Ditto.
1563 * linux-sparc-low.cc (the_low_target): Ditto.
1564 * linux-tic6x-low.cc (the_low_target): Ditto.
1565 * linux-tile-low.cc (the_low_target): Ditto.
1566 * linux-xtensa-low.cc (the_low_target): Ditto.
1567 * linux-aarch64-low.cc (class aarch64_target)
1568 <breakpoint_kind_from_pc>
1569 <breakpoint_kind_from_current_state>: Declare.
1570 (aarch64_breakpoint_kind_from_pc): Turn into...
1571 (aarch64_target::breakpoint_kind_from_pc): ...this.
1572 (aarch64_breakpoint_kind_from_current_state): Turn into...
1573 (aarch64_target::breakpoint_kind_from_current_state): ...this.
1574 (the_low_target): Remove the op fields.
1575 * linux-arm-low.cc (class arm_target):
1576 <breakpoint_kind_from_pc>
1577 <breakpoint_kind_from_current_state>: Declare.
1578 (arm_target::breakpoint_kind_from_pc): Define.
1579 (arm_target::breakpoint_kind_from_current_state): Define.
1580 (the_low_target): Remove the op fields.
1581 * linux-riscv-low.cc (class riscv_target):
1582 <breakpoint_kind_from_pc>: Declare.
1583 (riscv_breakpoint_kind_from_pc): Turn into...
1584 (riscv_target::breakpoint_kind_from_pc): ...this.
1585 (the_low_target): Remove the op fields.
1586
1587 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1588
1589 Turn the 'get_pc' and 'set_pc' linux target ops into methods
1590 of linux_process_target.
1591
1592 * linux-low.h (struct linux_target_ops): Remove the ops.
1593 (class linux_process_target) <low_supports_breakpoints>
1594 <low_get_pc>
1595 <low_set_pc>: Declare.
1596 * linux-low.cc (supports_breakpoints): Turn into...
1597 (linux_process_target::low_supports_breakpoints): ...this.
1598 (linux_process_target::low_get_pc): Define.
1599 (linux_process_target::low_set_pc): Define.
1600
1601 Update the callers below.
1602
1603 (linux_process_target::get_pc)
1604 (linux_process_target::save_stop_reason)
1605 (linux_process_target::maybe_move_out_of_jump_pad)
1606 (linux_process_target::wait_1)
1607 (linux_process_target::resume_one_lwp_throw)
1608 (linux_process_target::resume)
1609 (linux_process_target::proceed_all_lwps)
1610 (linux_process_target::read_pc)
1611 (linux_process_target::write_pc)
1612
1613 * linux-x86-low.cc (class linux_process_target)
1614 <low_supports_breakpoints>
1615 <low_get_pc>
1616 <low_set_pc>: Declare.
1617 (x86_target::low_supports_breakpoints): Define.
1618 (x86_get_pc): Turn into...
1619 (x86_target::low_get_pc): ...this.
1620 (x86_set_pc): Turn into...
1621 (x86_target::low_set_pc): ...this.
1622 (the_low_target): Remove the op fields.
1623 * linux-arm-low.cc (class arm_target)
1624 <low_supports_breakpoints>
1625 <low_get_pc>
1626 <low_set_pc>: Declare.
1627 (arm_target::low_supports_breakpoints)
1628 (arm_target::low_get_pc)
1629 (arm_target::low_set_pc): Define.
1630 (the_low_target): Remove the op fields.
1631 * linux-bfin-low.cc (class bfin_target)
1632 <low_supports_breakpoints>
1633 <low_get_pc>
1634 <low_set_pc>: Declare.
1635 (bfin_target::low_supports_breakpoints)
1636 (bfin_target::low_get_pc)
1637 (bfin_target::low_set_pc): Define.
1638 (the_low_target): Remove the op fields.
1639 * linux-cris-low.cc (class cris_target)
1640 <low_supports_breakpoints>
1641 <low_get_pc>
1642 <low_set_pc>: Declare.
1643 (cris_target::low_supports_breakpoints)
1644 (cris_target::low_get_pc)
1645 (cris_target::low_set_pc): Define.
1646 (the_low_target): Remove the op fields.
1647 * linux-crisv32-low.cc (class crisv32_target)
1648 <low_supports_breakpoints>
1649 <low_get_pc>
1650 <low_set_pc>: Declare.
1651 (crisv32_target::low_supports_breakpoints)
1652 (crisv32_target::low_get_pc)
1653 (crisv32_target::low_set_pc): Define.
1654 (the_low_target): Remove the op fields.
1655 * linux-m32r-low.cc (class m32r_target)
1656 <low_supports_breakpoints>
1657 <low_get_pc>
1658 <low_set_pc>: Declare.
1659 (m32r_target::low_supports_breakpoints)
1660 (m32r_target::low_get_pc)
1661 (m32r_target::low_set_pc): Define.
1662 (the_low_target): Remove the op fields.
1663 * linux-m68k-low.cc (class m68k_target)
1664 <low_supports_breakpoints>
1665 <low_get_pc>
1666 <low_set_pc>: Declare.
1667 (m68k_target::low_supports_breakpoints)
1668 (m68k_target::low_get_pc)
1669 (m68k_target::low_set_pc): Define.
1670 (the_low_target): Remove the op fields.
1671 * linux-nios2-low.cc (class nios2_target)
1672 <low_supports_breakpoints>
1673 <low_get_pc>
1674 <low_set_pc>: Declare.
1675 (nios2_target::low_supports_breakpoints)
1676 (nios2_target::low_get_pc)
1677 (nios2_target::low_set_pc): Define.
1678 (the_low_target): Remove the op fields.
1679 * linux-sh-low.cc (class sh_target)
1680 <low_supports_breakpoints>
1681 <low_get_pc>
1682 <low_set_pc>: Declare.
1683 (sh_target::low_supports_breakpoints)
1684 (sh_target::low_get_pc)
1685 (sh_target::low_set_pc): Define.
1686 (the_low_target): Remove the op fields.
1687 * linux-xtensa-low.cc (class xtensa_target)
1688 <low_supports_breakpoints>
1689 <low_get_pc>
1690 <low_set_pc>: Declare.
1691 (xtensa_target::low_supports_breakpoints)
1692 (xtensa_target::low_get_pc)
1693 (xtensa_target::low_set_pc): Define.
1694 (the_low_target): Remove the op fields.
1695 * linux-sparc-low.cc (class sparc_target)
1696 <low_supports_breakpoints>
1697 <low_get_pc>: Declare.
1698 (sparc_target::low_supports_breakpoints)
1699 (sparc_target::low_get_pc): Define.
1700 (the_low_target): Remove the op fields.
1701 * linux-tile-low.cc (class tile_target)
1702 <low_supports_breakpoints>
1703 <low_get_pc>
1704 <low_set_pc>: Declare.
1705 (tile_target::low_supports_breakpoints)
1706 (tile_target::low_get_pc)
1707 (tile_target::low_set_pc): Define.
1708 (the_low_target): Remove the op fields.
1709 * linux-aarch64-low.cc (class aarch64_target)
1710 <low_supports_breakpoints>
1711 <low_get_pc>
1712 <low_set_pc>: Declare.
1713 (aarch64_target::low_supports_breakpoints): Define.
1714 (aarch64_get_pc): Turn into...
1715 (aarch64_target::low_get_pc): ...this.
1716 (aarch64_set_pc): Turn into...
1717 (aarch64_target::low_set_pc): ...this.
1718 (the_low_target): Remove the op fields.
1719 * linux-mips-low.cc (class mips_target)
1720 <low_supports_breakpoints>
1721 <low_get_pc>
1722 <low_set_pc>: Declare.
1723 (mips_target::low_supports_breakpoints): Define.
1724 (mips_get_pc): Turn into...
1725 (mips_target::low_get_pc): ...this.
1726 (mips_set_pc): Turn into...
1727 (mips_target::low_set_pc): ...this.
1728 (the_low_target): Remove the op fields.
1729 * linux-ppc-low.cc (class ppc_target)
1730 <low_supports_breakpoints>
1731 <low_get_pc>
1732 <low_set_pc>: Declare.
1733 (ppc_target::low_supports_breakpoints): Define.
1734 (ppc_get_pc): Turn into...
1735 (ppc_target::low_get_pc): ...this.
1736 (ppc_set_pc): Turn into...
1737 (ppc_target::low_set_pc): ...this.
1738 (the_low_target): Remove the op fields.
1739 * linux-riscv-low.cc (class riscv_target)
1740 <low_supports_breakpoints>
1741 <low_get_pc>
1742 <low_set_pc>: Declare.
1743 (riscv_target::low_supports_breakpoints): Define.
1744 (riscv_get_pc): Turn into...
1745 (riscv_target::low_get_pc): ...this.
1746 (riscv_set_pc): Turn into...
1747 (riscv_target::low_set_pc): ...this.
1748 (the_low_target): Remove the op fields.
1749 * linux-s390-low.cc (class s390_target)
1750 <low_supports_breakpoints>
1751 <low_get_pc>
1752 <low_set_pc>: Declare.
1753 (s390_target::low_supports_breakpoints): Define.
1754 (s390_get_pc): Turn into...
1755 (s390_target::low_get_pc): ...this.
1756 (s390_set_pc): Turn into...
1757 (s390_target::low_set_pc): ...this.
1758 (the_low_target): Remove the op fields.
1759 * linux-tic6x-low.cc (class tic6x_target)
1760 <low_supports_breakpoints>
1761 <low_get_pc>
1762 <low_set_pc>: Declare.
1763 (tic6x_target::low_supports_breakpoints): Define.
1764 (tic6x_get_pc): Turn into...
1765 (tic6x_target::low_get_pc): ...this.
1766 (tic6x_set_pc): Turn into...
1767 (tic6x_target::low_set_pc): ...this.
1768 (the_low_target): Remove the op fields.
1769
1770 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1771
1772 Turn some more static methods in linux-low into private methods
1773 of linux_process_target.
1774
1775 * linux-low.cc (get_pc): Turn into...
1776 (linux_process_target::get_pc): ...this.
1777 (save_stop_reason): Turn into...
1778 (linux_process_target::save_stop_reason): ...this.
1779 (thread_still_has_status_pending_p): Turn into...
1780 (linux_process_target::thread_still_has_status_pending): ...this.
1781 (status_pending_p_callback): Turn into...
1782 (linux_process_target::status_pending_p_callback): ...this.
1783 (resume_stopped_resumed_lwps): Turn into...
1784 (linux_process_target::resume_stopped_resumed_lwps): ...this.
1785 (install_software_single_step_breakpoints): Turn into...
1786 (linux_process_target::install_software_single_step_breakpoints):
1787 ...this.
1788 (single_step): Turn into...
1789 (linux_process_target::single_step): ...this.
1790 (linux_resume_one_lwp_throw): Turn into...
1791 (linux_process_target::resume_one_lwp_throw): ...this.
1792 (linux_resume_one_lwp): Turn into...
1793 (linux_process_target::resume_one_lwp): ...this.
1794 (resume_status_pending_p): Turn into...
1795 (linux_process_target::resume_status_pending): ...this.
1796 (need_step_over_p): Turn into...
1797 (linux_process_target::thread_needs_step_over): ...this.
1798 (linux_resume_one_thread): Turn into...
1799 (linux_process_target::resume_one_thread): ...this.
1800 (proceed_one_lwp): Turn into...
1801 (linux_process_target::proceed_one_lwp): ...this.
1802 (unsuspend_and_proceed_one_lwp): Turn into...
1803 (linux_process_target::unsuspend_and_proceed_one_lwp): ...this.
1804
1805 Update the calls/references to the above functions below.
1806
1807 (linux_process_target::handle_extended_wait)
1808 (linux_process_target::filter_event)
1809 (linux_process_target::wait_for_event_filtered)
1810 (linux_process_target::wait_1)
1811 (linux_process_target::move_out_of_jump_pad)
1812 (linux_process_target::start_step_over)
1813 (linux_process_target::resume)
1814 (linux_process_target::proceed_all_lwps)
1815 (regsets_store_inferior_registers)
1816 (linux_process_target::store_register)
1817
1818 * linux-low.h (class linux_process_target)
1819 <get_pc>
1820 <save_stop_reason>
1821 <thread_still_has_status_pending>
1822 <status_pending_p_callback>
1823 <resume_stopped_resumed_lwps>
1824 <install_software_single_step_breakpoints>
1825 <single_step>
1826 <resume_one_lwp_throw>
1827 <resume_one_lwp>
1828 <resume_status_pending>
1829 <thread_needs_step_over>
1830 <resume_one_thread>
1831 <proceed_one_lwp>
1832 <unsuspend_and_proceed_one_lwp>: Declare.
1833
1834 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1835
1836 Turn the 'fetch_register' linux target op into a method of
1837 linux_process_target.
1838
1839 * linux-low.h (struct linux_target_ops) <fetch_register>: Remove.
1840 (class linux_process_target) <low_fetch_register>: Declare.
1841 * linux-x86-low.cc (the_low_target)
1842 * linux-aarch64-low.cc (the_low_target)
1843 * linux-arm-low.cc (the_low_target)
1844 * linux-bfin-low.cc (the_low_target)
1845 * linux-cris-low.cc (the_low_target)
1846 * linux-crisv32-low.cc (the_low_target)
1847 * linux-m32r-low.cc (the_low_target)
1848 * linux-m68k-low.cc (the_low_target)
1849 * linux-nios2-low.cc (the_low_target)
1850 * linux-ppc-low.cc (the_low_target)
1851 * linux-s390-low.cc (the_low_target)
1852 * linux-sh-low.cc (the_low_target)
1853 * linux-sparc-low.cc (the_low_target)
1854 * linux-tic6x-low.cc (the_low_target)
1855 * linux-tile-low.cc (the_low_target)
1856 * linux-xtensa-low.cc (the_low_target): Remove the op field.
1857 * linux-ia64-low.cc (class ia64_target) <low_fetch_register>:
1858 Declare.
1859 (ia64_fetch_register): Turn into...
1860 (ia64_target::low_fetch_register): ...this.
1861 (the_low_target): Remove the op field.
1862 * linux-mips-low.cc (class mips_target) <low_fetch_register>:
1863 Declare.
1864 (mips_fetch_register): Turn into...
1865 (mips_target::low_fetch_register): ...this.
1866 (the_low_target): Remove the op field.
1867 * linux-riscv-low.cc (class riscv_target) <low_fetch_register>:
1868 Declare.
1869 (riscv_fetch_register): Turn into...
1870 (riscv_target::low_fetch_register): ...this.
1871 (the_low_target): Remove the op field.
1872
1873 Update the callers below.
1874
1875 * linux-low.cc (linux_process_target::fetch_registers)
1876 (linux_process_target::low_fetch_register)
1877
1878 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1879
1880 Turn the 'cannot_fetch_register' and 'cannot_store_register'
1881 linux target ops into methods of linux_process_target.
1882
1883 * linux-low.h (struct linux_target_ops): Remove the low target ops.
1884 (class linux_process_target) <fetch_register>
1885 <store_register>
1886 <usr_fetch_inferior_registers>
1887 <usr_store_inferior_registers>
1888 <low_cannot_fetch_register>
1889 <low_cannot_fetch_register> Declare.
1890 * linux-low.cc (fetch_register): Turn into...
1891 (linux_process_target::fetch_register): ...this.
1892 (store_register): Turn into ...
1893 (linux_process_target::store_register): ...this.
1894 (usr_fetch_inferior_registers): Turn into...
1895 (linux_process_target::usr_fetch_inferior_registers): ...this.
1896 (usr_store_inferior_registers): Turn into...
1897 (linux_process_target::usr_store_inferior_registers): ...this.
1898 * linux-x86-low.cc (class x86_target)
1899 <low_cannot_fetch_register>
1900 <low_cannot_store_register>: Declare.
1901 (x86_cannot_store_register): Turn into...
1902 (x86_target::low_cannot_store_register): ...this.
1903 (x86_cannot_fetch_register): Turn into...
1904 (x86_target::low_cannot_fetch_register): ...this.
1905 (the_low_target): Remove the target op fields.
1906 * linux-aarch64-low.cc (class aarch64_target)
1907 <low_cannot_fetch_register>
1908 <low_cannot_store_register>: Declare.
1909 (aarch64_target::low_cannot_fetch_register)
1910 (aarch64_target::low_cannot_store_register): Define.
1911 (the_low_target): Remove the op fields.
1912 * linux-arm-low.cc (class arm_target)
1913 <low_cannot_fetch_register>
1914 <low_cannot_store_register>: Declare.
1915 (arm_cannot_fetch_register): Turn into...
1916 (arm_target::low_cannot_fetch_register): ...this.
1917 (arm_cannot_store_register): Turn into...
1918 (arm_target::low_cannot_store_register): ...this.
1919 (the_low_target): Remove the op fields.
1920 * linux-bfin-low.cc (class bfin_target)
1921 <low_cannot_fetch_register>
1922 <low_cannot_store_register>: Declare.
1923 (bfin_cannot_fetch_register): Turn into...
1924 (bfin_target::low_cannot_fetch_register): ...this.
1925 (bfin_cannot_store_register): Turn into...
1926 (bfin_target::low_cannot_store_register): ...this.
1927 (the_low_target): Remove the op fields.
1928 * linux-cris-low.cc (class cris_target)
1929 <low_cannot_fetch_register>
1930 <low_cannot_store_register>: Declare.
1931 (cris_cannot_fetch_register): Turn into...
1932 (cris_target::low_cannot_fetch_register): ...this.
1933 (cris_cannot_store_register): Turn into...
1934 (cris_target::low_cannot_store_register): ...this.
1935 (the_low_target): Remove the op fields.
1936 * linux-crisv32-low.cc (class crisv32_target)
1937 <low_cannot_fetch_register>
1938 <low_cannot_store_register>: Declare.
1939 (crisv32_target::low_cannot_fetch_register)
1940 (crisv32_target::low_cannot_store_register): Define.
1941 (the_low_target): Remove the op fields.
1942 * linux-ia64-low.cc (class ia64_target)
1943 <low_cannot_fetch_register>
1944 <low_cannot_store_register>: Declare.
1945 (ia64_cannot_fetch_register): Turn into...
1946 (ia64_target::low_cannot_fetch_register): ...this.
1947 (ia64_cannot_store_register): Turn into...
1948 (ia64_target::low_cannot_store_register): ...this.
1949 (the_low_target): Remove the op fields.
1950 * linux-m32r-low.cc (class m32r_target)
1951 <low_cannot_fetch_register>
1952 <low_cannot_store_register>: Declare.
1953 (m32r_cannot_fetch_register): Turn into...
1954 (m32r_target::low_cannot_fetch_register): ...this.
1955 (m32r_cannot_store_register): Turn into...
1956 (m32r_target::low_cannot_store_register): ...this.
1957 (the_low_target): Remove the op fields.
1958 * linux-m68k-low.cc (class m68k_target)
1959 <low_cannot_fetch_register>
1960 <low_cannot_store_register>: Declare.
1961 (m68k_cannot_fetch_register): Turn into...
1962 (m68k_target::low_cannot_fetch_register): ...this.
1963 (m68k_cannot_store_register): Turn into...
1964 (m68k_target::low_cannot_store_register): ...this.
1965 (the_low_target): Remove the op fields.
1966 * linux-mips-low.cc (class mips_target)
1967 <low_cannot_fetch_register>
1968 <low_cannot_store_register>: Declare.
1969 (mips_cannot_fetch_register): Turn into...
1970 (mips_target::low_cannot_fetch_register): ...this.
1971 (mips_cannot_store_register): Turn into...
1972 (mips_target::low_cannot_store_register): ...this.
1973 (get_usrregs_info): Inline at the call sites in
1974 low_cannot_fetch_register and low_cannot_store_register,
1975 and remove.
1976 (the_low_target): Remove the op fields.
1977 * linux-nios2-low.cc (class nios2_target)
1978 <low_cannot_fetch_register>
1979 <low_cannot_store_register>: Declare.
1980 (nios2_cannot_fetch_register): Turn into...
1981 (nios2_target::low_cannot_fetch_register): ...this.
1982 (nios2_cannot_store_register): Turn into...
1983 (nios2_target::low_cannot_store_register): ...this.
1984 (the_low_target): Remove the op fields.
1985 * linux-ppc-low.cc (class ppc_target)
1986 <low_cannot_fetch_register>
1987 <low_cannot_store_register>: Declare.
1988 (ppc_cannot_fetch_register): Turn into...
1989 (ppc_target::low_cannot_fetch_register): ...this.
1990 (ppc_cannot_store_register): Turn into...
1991 (ppc_target::low_cannot_store_register): ...this.
1992 (the_low_target): Remove the op fields.
1993 * linux-riscv-low.cc (class riscv_target)
1994 <low_cannot_fetch_register>
1995 <low_cannot_store_register>: Declare.
1996 (riscv_target::low_cannot_fetch_register)
1997 (riscv_target::low_cannot_store_register): Define.
1998 (the_low_target): Remove the op fields.
1999 * linux-s390-low.cc (class s390_target)
2000 <low_cannot_fetch_register>
2001 <low_cannot_store_register>: Declare.
2002 (s390_cannot_fetch_register): Turn into...
2003 (s390_target::low_cannot_fetch_register): ...this.
2004 (s390_cannot_store_register): Turn into...
2005 (s390_target::low_cannot_store_register): ...this.
2006 (the_low_target): Remove the op fields.
2007 * linux-sh-low.cc (class sh_target)
2008 <low_cannot_fetch_register>
2009 <low_cannot_store_register>: Declare.
2010 (sh_cannot_fetch_register): Turn into...
2011 (sh_target::low_cannot_fetch_register): ...this.
2012 (sh_cannot_store_register): Turn into...
2013 (sh_target::low_cannot_store_register): ...this.
2014 (the_low_target): Remove the op fields.
2015 * linux-sparc-low.cc (class sparc_target)
2016 <low_cannot_fetch_register>
2017 <low_cannot_store_register>: Declare.
2018 (sparc_cannot_fetch_register): Turn into...
2019 (sparc_target::low_cannot_fetch_register): ...this.
2020 (sparc_cannot_store_register): Turn into...
2021 (sparc_target::low_cannot_store_register): ...this.
2022 (the_low_target): Remove the op fields.
2023 * linux-tic6x-low.cc (class tic6x_target)
2024 <low_cannot_fetch_register>
2025 <low_cannot_store_register>: Declare.
2026 (tic6x_cannot_fetch_register): Turn into...
2027 (tic6x_target::low_cannot_fetch_register): ...this.
2028 (tic6x_cannot_store_register): Turn into...
2029 (tic6x_target::low_cannot_store_register): ...this.
2030 (the_low_target): Remove the op fields.
2031 * linux-tile-low.cc (class tile_target)
2032 <low_cannot_fetch_register>
2033 <low_cannot_store_register>: Declare.
2034 (tile_cannot_fetch_register): Turn into...
2035 (tile_target::low_cannot_fetch_register): ...this.
2036 (tile_cannot_store_register): Turn into...
2037 (tile_target::low_cannot_store_register): ...this.
2038 (the_low_target): Remove the op fields.
2039 * linux-xtensa-low.cc (class xtensa_target)
2040 <low_cannot_fetch_register>
2041 <low_cannot_store_register>: Declare.
2042 (xtensa_target::low_cannot_fetch_register)
2043 (xtensa_target::low_cannot_store_register): Define.
2044 (the_low_target): Remove the op fields.
2045
2046 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2047
2048 Turn the 'regs_info' linux target op into a method of
2049 linux_process_target.
2050
2051 * linux-low.h (struct linux_target_ops) <regs_info>: Remove.
2052 (class linux_process_target) <get_regs_info>: Define.
2053
2054 Update the callers below.
2055
2056 * linux-low.cc (linux_process_target::fetch_registers)
2057 (linux_process_target::store_registers)
2058 * proc-service.cc (gregset_info)
2059
2060 * linux-x86-low.cc (class x86_target) <get_regs_info>: Declare.
2061 (x86_linux_regs_info): Turn into ...
2062 (x86_target::get_regs_info): ...this.
2063 (the_low_target): Remove the op field.
2064 * linux-aarch64-low.cc (class aarch64_target) <get_regs_info>:
2065 Declare.
2066 (aarch64_regs_info): Turn into ...
2067 (aarch64_target::get_regs_info): ...this.
2068 (the_low_target): Remove the op field.
2069 * linux-arm-low.cc (class arm_target) <get_regs_info>: Declare.
2070 (arm_regs_info): Turn into ...
2071 (arm_target::get_regs_info): ...this.
2072 (the_low_target): Remove the op field.
2073 * linux-bfin-low.cc (class bfin_target) <get_regs_info>: Declare.
2074 (bfin_regs_info): Turn into ...
2075 (bfin_target::get_regs_info): ...this.
2076 (the_low_target): Remove the op field.
2077 * linux-cris-low.cc (class cris_target) <get_regs_info>: Declare.
2078 (cris_regs_info): Turn into ...
2079 (cris_target::get_regs_info): ...this.
2080 (the_low_target): Remove the op field.
2081 * linux-crisv32-low.cc (class crisv32_target) <get_regs_info>:
2082 Declare.
2083 (crisv32_regs_info): Turn into ...
2084 (crisv32_target::get_regs_info): ...this.
2085 (the_low_target): Remove the op field.
2086 * linux-ia64-low.cc (class ia64_target) <get_regs_info>: Declare.
2087 (ia64_regs_info): Turn into ...
2088 (ia64_target::get_regs_info): ...this.
2089 (the_low_target): Remove the op field.
2090 * linux-m32r-low.cc (class m32r_target) <get_regs_info>: Declare.
2091 (m32r_regs_info): Turn into ...
2092 (m32r_target::get_regs_info): ...this.
2093 (the_low_target): Remove the op field.
2094 * linux-m68k-low.cc (class m68k_target) <get_regs_info>: Declare.
2095 (m68k_regs_info): Turn into ...
2096 (m68k_target::get_regs_info): ...this.
2097 (the_low_target): Remove the op field.
2098 * linux-mips-low.cc (class mips_target) <get_regs_info>: Declare.
2099 (mips_regs_info): Turn into ...
2100 (mips_target::get_regs_info): ...this.
2101 (the_low_target): Remove the op field.
2102 (get_usrregs_info): Update the call to the op.
2103 * linux-nios2-low.cc (class nios2_target) <get_regs_info>: Declare.
2104 (nios2_regs_info): Turn into ...
2105 (nios2_target::get_regs_info): ...this.
2106 (the_low_target): Remove the op field.
2107 * linux-ppc-low.cc (class ppc_target) <get_regs_info>: Declare.
2108 (ppc_regs_info): Turn into ...
2109 (ppc_target::get_regs_info): ...this.
2110 (the_low_target): Remove the op field.
2111 * linux-riscv-low.cc (class riscv_target) <get_regs_info>: Declare.
2112 (riscv_regs_info): Turn into ...
2113 (riscv_target::get_regs_info): ...this.
2114 (the_low_target): Remove the op field.
2115 * linux-s390-low.cc (class s390_target) <get_regs_info>: Declare.
2116 (s390_regs_info): Turn into ...
2117 (s390_target::get_regs_info): ...this.
2118 (the_low_target): Remove the op field.
2119 (s390_collect_ptrace_register)
2120 (s390_supply_ptrace_register)
2121 (s390_fill_gregset): Update the call to the op.
2122 * linux-sh-low.cc (class sh_target) <get_regs_info>: Declare.
2123 (sh_regs_info): Turn into ...
2124 (sh_target::get_regs_info): ...this.
2125 (the_low_target): Remove the op field.
2126 * linux-sparc-low.cc (class sparc_target) <get_regs_info>: Declare.
2127 (sparc_regs_info): Turn into ...
2128 (sparc_target::get_regs_info): ...this.
2129 (the_low_target): Remove the op field.
2130 * linux-tic6x-low.cc (class tic6x_target) <get_regs_info>: Declare.
2131 (tic6x_regs_info): Turn into ...
2132 (tic6x_target::get_regs_info): ...this.
2133 (the_low_target): Remove the op field.
2134 * linux-tile-low.cc (class tile_target) <get_regs_info>: Declare.
2135 (tile_regs_info): Turn into ...
2136 (tile_target::get_regs_info): ...this.
2137 (the_low_target): Remove the op field.
2138 * linux-xtensa-low.cc (class xtensa_target) <get_regs_info>:
2139 Declare.
2140 (xtensa_regs_info): Turn into ...
2141 (xtensa_target::get_regs_info): ...this.
2142 (the_low_target): Remove the op field.
2143
2144 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2145
2146 Turn the 'arch_setup' linux target op into a method of
2147 linux_process_target.
2148
2149 * linux-low.h (struct linux_target_ops) <arch_setup>: Delete.
2150 (class linux_process_target) <arch_setup_thread>
2151 <low_arch_setup>: New declarations.
2152 * linux-low.cc (linux_arch_setup): Delete.
2153 (linux_arch_setup_thread): Turn into...
2154 (linux_process_target::arch_setup_thread): ... this.
2155
2156 Update the callers below.
2157
2158 (linux_process_target::handle_extended_wait)
2159 (linux_process_target::post_create_inferior)
2160 (linux_process_target::filter_event)
2161
2162 * linux-x86-low.cc (class x86_target) <low_arch_setup>: New
2163 declaration.
2164 (x86_linux_update_xmltarget): Turn into...
2165 (x86_target::update_xmltarget): ...this.
2166 (x86_linux_process_qsupported): Update the call to
2167 x86_linux_update_xmltarget.
2168 (x86_arch_setup): Turn into ...
2169 (x86_target::low_arch_setup): ...this.
2170 (the_low_target): Remove the op field.
2171 * linux-aarch64-low.cc (class aarch64_target) <low_arch_setup>: New
2172 declaration.
2173 (aarch64_arch_setup): Turn into ...
2174 (aarch64_target::low_arch_setup): ...this.
2175 (the_low_target): Remove the op field.
2176 * linux-arm-low.cc (class arm_target) <low_arch_setup>: New
2177 declaration.
2178 (arm_arch_setup): Turn into ...
2179 (arm_target::low_arch_setup): ...this.
2180 (the_low_target): Remove the op field.
2181 * linux-bfin-low.cc (class bfin_target) <low_arch_setup>: New
2182 declaration.
2183 (bfin_arch_setup): Turn into ...
2184 (bfin_target::low_arch_setup): ...this.
2185 (the_low_target): Remove the op field.
2186 * linux-cris-low.cc (class cris_target) <low_arch_setup>: New
2187 declaration.
2188 (cris_arch_setup): Turn into ...
2189 (cris_target::low_arch_setup): ...this.
2190 (the_low_target): Remove the op field.
2191 * linux-crisv32-low.cc (class crisv32_target) <low_arch_setup>: New
2192 declaration.
2193 (crisv32_arch_setup): Turn into ...
2194 (crisv32_target::low_arch_setup): ...this.
2195 (the_low_target): Remove the op field.
2196 * linux-ia64-low.cc (class ia64_target) <low_arch_setup>: New
2197 declaration.
2198 (ia64_arch_setup): Turn into ...
2199 (ia64_target::low_arch_setup): ...this.
2200 (the_low_target): Remove the op field.
2201 * linux-m32r-low.cc (class m32r_target) <low_arch_setup>: New
2202 declaration.
2203 (m32r_arch_setup): Turn into ...
2204 (m32r_target::low_arch_setup): ...this.
2205 (the_low_target): Remove the op field.
2206 * linux-m68k-low.cc (class m68k_target) <low_arch_setup>: New
2207 declaration.
2208 (m68k_arch_setup): Turn into ...
2209 (m68k_target::low_arch_setup): ...this.
2210 (the_low_target): Remove the op field.
2211 * linux-mips-low.cc (class mips_target) <low_arch_setup>: New
2212 declaration.
2213 (mips_arch_setup): Turn into ...
2214 (mips_target::low_arch_setup): ...this.
2215 (the_low_target): Remove the op field.
2216 * linux-nios2-low.cc (class nios2_target) <low_arch_setup>: New
2217 declaration.
2218 (nios2_arch_setup): Turn into ...
2219 (nios2_target::low_arch_setup): ...this.
2220 (the_low_target): Remove the op field.
2221 * linux-ppc-low.cc (class ppc_target) <low_arch_setup>: New
2222 declaration.
2223 (ppc_arch_setup): Turn into ...
2224 (ppc_target::low_arch_setup): ...this.
2225 (the_low_target): Remove the op field.
2226 * linux-riscv-low.cc (class riscv_target) <low_arch_setup>: New
2227 declaration.
2228 (riscv_arch_setup): Turn into ...
2229 (riscv_target::low_arch_setup): ...this.
2230 (the_low_target): Remove the op field.
2231 * linux-s390-low.cc (class s390_target) <low_arch_setup>: New
2232 declaration.
2233 (s390_arch_setup): Turn into ...
2234 (s390_target::low_arch_setup): ...this.
2235 (the_low_target): Remove the op field.
2236 * linux-sh-low.cc (class sh_target) <low_arch_setup>: New
2237 declaration.
2238 (sh_arch_setup): Turn into ...
2239 (sh_target::low_arch_setup): ...this.
2240 (the_low_target): Remove the op field.
2241 * linux-sparc-low.cc (class sparc_target) <low_arch_setup>: New
2242 declaration.
2243 (sparc_arch_setup): Turn into ...
2244 (sparc_target::low_arch_setup): ...this.
2245 (the_low_target): Remove the op field.
2246 * linux-tic6x-low.cc (class tic6x_target) <low_arch_setup>: New
2247 declaration.
2248 (tic6x_arch_setup): Turn into ...
2249 (tic6x_target::low_arch_setup): ...this.
2250 (the_low_target): Remove the op field.
2251 * linux-tile-low.cc (class tile_target) <low_arch_setup>: New
2252 declaration.
2253 (tile_arch_setup): Turn into ...
2254 (tile_target::low_arch_setup): ...this.
2255 (the_low_target): Remove the op field.
2256 * linux-xtensa-low.cc (class xtensa_target) <low_arch_setup>: New
2257 declaration.
2258 (xtensa_arch_setup): Turn into ...
2259 (xtensa_target::low_arch_setup): ...this.
2260 (the_low_target): Remove the op field.
2261
2262 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2263
2264 * linux-low.h (the_linux_target): New extern declaration.
2265 * linux-low.cc (initialize_low): Use 'the_linux_target' to set
2266 'the_target'.
2267 (the_linux_target): Remove.
2268 * linux-x86-low.cc (class x86_target): New class.
2269 (the_x86_target): New static object.
2270 (the_linux_target): Define as pointer to the_x86_target.
2271 * linux-aarch64-low.cc (class aarch64_target): New class.
2272 (the_aarch64_target): New static object.
2273 (the_linux_target): Define as pointer to the_aarch64_target.
2274 * linux-arm-low.cc (class arm_target): New class.
2275 (the_arm_target): New static object.
2276 (the_linux_target): Define as pointer to the_arm_target.
2277 * linux-bfin-low.cc (class bfin_target): New class.
2278 (the_bfin_target): New static object.
2279 (the_linux_target): Define as pointer to the_bfin_target.
2280 * linux-cris-low.cc (class cris_target): New class.
2281 (the_cris_target): New static object.
2282 (the_linux_target): Define as pointer to the_cris_target.
2283 * linux-crisv32-low.cc (class crisv32_target): New class.
2284 (the_crisv32_target): New static object.
2285 (the_linux_target): Define as pointer to the_crisv32_target.
2286 * linux-ia64-low.cc (class ia64_target): New class.
2287 (the_ia64_target): New static object.
2288 (the_linux_target): Define as pointer to the_ia64_target.
2289 * linux-m32r-low.cc (class m32r_target): New class.
2290 (the_m32r_target): New static object.
2291 (the_linux_target): Define as pointer to the_m32r_target.
2292 * linux-m68k-low.cc (class m68k_target): New class.
2293 (the_m68k_target): New static object.
2294 (the_linux_target): Define as pointer to the_m68k_target.
2295 * linux-mips-low.cc (class mips_target): New class.
2296 (the_mips_target): New static object.
2297 (the_linux_target): Define as pointer to the_mips_target.
2298 * linux-nios2-low.cc (class nios2_target): New class.
2299 (the_nios2_target): New static object.
2300 (the_linux_target): Define as pointer to the_nios2_target.
2301 * linux-ppc-low.cc (class ppc_target): New class.
2302 (the_ppc_target): New static object.
2303 (the_linux_target): Define as pointer to the_ppc_target.
2304 * linux-riscv-low.cc (class riscv_target): New class.
2305 (the_riscv_target): New static object.
2306 (the_linux_target): Define as pointer to the_riscv_target.
2307 * linux-s390-low.cc (class s390_target): New class.
2308 (the_s390_target): New static object.
2309 (the_linux_target): Define as pointer to the_s390_target.
2310 * linux-sh-low.cc (class sh_target): New class.
2311 (the_sh_target): New static object.
2312 (the_linux_target): Define as pointer to the_sh_target.
2313 * linux-sparc-low.cc (class sparc_target): New class.
2314 (the_sparc_target): New static object.
2315 (the_linux_target): Define as pointer to the_sparc_target.
2316 * linux-tic6x-low.cc (class tic6x_target): New class.
2317 (the_tic6x_target): New static object.
2318 (the_linux_target): Define as pointer to the_tic6x_target.
2319 * linux-tile-low.cc (class tile_target): New class.
2320 (the_tile_target): New static object.
2321 (the_linux_target): Define as pointer to the_tile_target.
2322 * linux-xtensa-low.cc (class xtensa_target): New class.
2323 (the_xtensa_target): New static object.
2324 (the_linux_target): Define as pointer to the_xtensa_target.
2325
2326 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2327
2328 Turn some static functions in linux-low.cc into private methods of
2329 linux_process_target.
2330
2331 * linux-low.cc (handle_extended_wait): Turn into ...
2332 (linux_process_target::handle_extended_wait): ...this. Call
2333 'mourn' on 'this' object instead of 'the_target'.
2334 (maybe_move_out_of_jump_pad): Turn into...
2335 (linux_process_target::maybe_move_out_of_jump_pad): ...this.
2336 (linux_low_filter_event): Turn into...
2337 (linux_process_target::filter_event): ...this.
2338 (linux_wait_for_event_filtered): Turn into...
2339 (linux_process_target::wait_for_event_filtered): ...this.
2340 (linux_wait_for_event): Turn into...
2341 (linux_process_target::wait_for_event): ...this.
2342 (linux_wait_1): Turn into...
2343 (linux_process_target::wait_1): ...this.
2344 (wait_for_sigstop): Turn into...
2345 (linux_process_target::wait_for_sigstop): ...this.
2346 (move_out_of_jump_pad_callback): Turn into...
2347 (linux_process_target::move_out_of_jump_pad): ...this.
2348 (stop_all_lwps): Turn into...
2349 (linux_process_target::stop_all_lwps): ...this.
2350 (start_step_over): Turn into...
2351 (linux_process_target::start_step_over): ...this.
2352 (complete_ongoing_step_over): Turn into...
2353 (linux_process_target::complete_ongoing_step_over): ...this.
2354 (proceed_all_lwps): Turn into...
2355 (linux_process_target::proceed_all_lwps): ...this.
2356 (unstop_all_lwps): Turn into...
2357 (linux_process_target::unstop_all_lwps): ...this.
2358
2359 * linux-low.h (class linux_process_target)
2360 <handle_extended_wait>
2361 <maybe_move_out_of_jump_pad>
2362 filter_event>
2363 <wait_for_event_filtered>
2364 <wait_for_event>
2365 <wait_1>
2366 <wait_for_sigstop>
2367 <move_out_of_jump_pad>
2368 <stop_all_lwps>
2369 <start_step_over>
2370 <complete_ongoing_step_over>
2371 <proceed_all_lwps>
2372 <unstop_all_lwps>: Declare.
2373
2374 Update the callers below.
2375
2376 * linux-low.cc (linux_process_target::attach): Update.
2377 (linux_process_target::stabilize_threads): Ditto.
2378 (linux_process_target::wait): Ditto.
2379
2380 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2381
2382 * linux-low.h (struct linux_target_ops): Update the comment for
2383 'cannot_store_register' to return 0 or 1.
2384 * linux-ppc-low.cc (ppc_cannot_store_register): Return 1 instead
2385 of 2.
2386
2387 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
2388
2389 * config.in: Re-generate.
2390 * configure: Re-generate.
2391
2392 2020-03-17 Kamil Rytarowski <n54@gmx.com>
2393
2394 * regcache.cc (find_register_by_number): Update.
2395 * tdesc.cc (init_target_desc): Likewise.
2396 * tdesc.h (target_desc::reg_defs): Likewise.
2397
2398 2020-03-12 Tom Tromey <tom@tromey.com>
2399
2400 * configure: Rebuild.
2401 * configure.ac (GDBSERVER_DEPFILES): Remove srv_selftest_objs.
2402 (WIN32APILIBS): New subst.
2403 * Makefile.in (SFILES, OBS, TAGS, GDBREPLAY_OBS): Remove
2404 gdbsupport files.
2405 (gdbsupport/%.o): Remove target.
2406 (GDBSUPPORT_BUILDDIR, GDBSUPPORT): New variables.
2407 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Add GDBSUPPORT.
2408 (WIN32APILIBS): New variable.
2409 (gdbserver$(EXEEXT)): Add WIN32APILIBS.
2410 (gdbreplay$(EXEEXT)): Likewise.
2411
2412 2020-03-12 Tom Tromey <tom@tromey.com>
2413
2414 * config.in, configure: Rebuild.
2415 * configure.ac: Call ZW_GNU_GETTEXT_SISTER_DIR.
2416 * acinclude.m4: Include gettext-sister.m4.
2417 * Makefile.in (top_builddir, INTL, INTL_DEPS, INTL_CFLAGS): New
2418 variables.
2419 (INCLUDE_CFLAGS): Add INTL_CFLAGS.
2420 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL.
2421
2422 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2423
2424 * acinclude.m4: Update path to selftest.m4.
2425
2426 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2427
2428 * configure.ac: Don't source bfd/development.sh, move
2429 GDB_AC_COMMON higher.
2430 * configure: Re-generate.
2431
2432 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2433
2434 * configure: Re-generate.
2435
2436 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
2437
2438 * configure: Re-generate.
2439
2440 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2441
2442 * .dir-locals.el: New file.
2443
2444 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2445
2446 * .gitattributes: New file.
2447
2448 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
2449
2450 * remote-utils.cc (prepare_resume_reply): Add ability to convert T
2451 reply into an S reply.
2452 * server.cc (disable_packet_T): New global.
2453 (captured_main): Set new global when appropriate.
2454 * server.h (disable_packet_T): Declare.
2455
2456 2020-02-21 Tom Tromey <tom@tromey.com>
2457
2458 * Makefile.in (mostlyclean): New target.
2459
2460 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2461
2462 * target.h (struct process_stratum_target): Remove.
2463 (class process_target): Rename to ...
2464 (class process_stratum_target): ... this.
2465 * linux-low.h (class linux_process_target): Derive from
2466 'process_stratum_target'.
2467 * linux-low.cc (linux_target_ops): Remove.
2468 (initialize_low): Set the_target to the singleton instance of
2469 linux_process_target.
2470 * lynx-low.h (class lynx_process_target): Derive from
2471 'process_stratum_target'.
2472 * lynx-low.cc (lynx_target_ops): Remove.
2473 (initialize_low): Set the_target to the singleton instance of
2474 lynx_process_target.
2475 * nto-low.h (class nto_process_target): Derive from
2476 'process_stratum_target'.
2477 * nto-low.cc (nto_target_ops): Remove.
2478 (initialize_low): Set the_target to the singleton instance of
2479 nto_process_target.
2480 * win32-low.h (class win32_process_target): Derive from
2481 'process_stratum_target'.
2482 * win32-low.cc (win32_target_ops): Remove.
2483 (initialize_low): Set the_target to the singleton instance of
2484 win32_process_target.
2485
2486 Replace 'the_target->pt' with 'the_target' in the uses below.
2487
2488 * hostio.cc (hostio_error)
2489 (handle_setfs)
2490 (handle_open)
2491 (handle_unlink)
2492 (handle_readlink)
2493 * linux-aarch32-low.cc (arm_breakpoint_at)
2494 * linux-aarch64-low.cc (aarch64_breakpoint_at)
2495 * linux-arm-low.cc (arm_sigreturn_next_pc)
2496 (arm_get_hwcap)
2497 (arm_get_syscall_trapinfo)
2498 * linux-cris-low.cc (cris_breakpoint_at)
2499 * linux-crisv32-low.cc (cris_breakpoint_at)
2500 * linux-low.cc (handle_extended_wait)
2501 (linux_wait_1)
2502 (linux_read_memory)
2503 (linux_process_target::breakpoint_kind_from_pc)
2504 (linux_get_auxv)
2505 * linux-m32r-low.cc (m32r_breakpoint_at)
2506 * linux-mips-low.cc (mips_breakpoint_at)
2507 * linux-nios2-low.cc (nios2_breakpoint_at)
2508 * linux-ppc-low.cc (ppc_breakpoint_at)
2509 * linux-s390-low.cc (s390_get_hwcap)
2510 * linux-sh-low.cc (sh_breakpoint_at)
2511 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
2512 (sparc_store_gregset_from_stack)
2513 (sparc_breakpoint_at)
2514 * linux-tic6x-low.cc (tic6x_breakpoint_at)
2515 * linux-tile-low.cc (tile_breakpoint_at)
2516 * linux-x86-low.cc (x86_breakpoint_at)
2517 * linux-xtensa-low.cc (xtensa_breakpoint_at)
2518 * mem-break.cc (bp_size)
2519 (bp_opcode)
2520 (insert_memory_breakpoint)
2521 (set_raw_breakpoint_at)
2522 (delete_raw_breakpoint)
2523 (z_type_supported)
2524 (uninsert_raw_breakpoint)
2525 (reinsert_raw_breakpoint)
2526 (validate_inserted_breakpoint)
2527 * regcache.cc (regcache_read_pc)
2528 (regcache_write_pc)
2529 * remote-utils.cc (putpkt_binary_1)
2530 (input_interrupt)
2531 (getpkt)
2532 (prepare_resume_reply)
2533 * server.cc (handle_general_set)
2534 (handle_detach)
2535 (handle_qxfer_auxv)
2536 (handle_qxfer_exec_file)
2537 (handle_qxfer_libraries_svr4)
2538 (handle_qxfer_osdata)
2539 (handle_qxfer_siginfo)
2540 (handle_qxfer_fdpic)
2541 (handle_query)
2542 (resume)
2543 (handle_v_requests)
2544 (queue_stop_reply_callback)
2545 (captured_main)
2546 * target.cc (prepare_to_access_memory)
2547 (done_accessing_memory)
2548 (read_inferior_memory)
2549 (target_write_memory)
2550 (target_stop_and_wait)
2551 (target_wait)
2552 (target_mourn_inferior)
2553 (target_continue_no_signal)
2554 (target_continue)
2555 (target_supports_multi_process)
2556 (kill_inferior)
2557 * target.h
2558 (target_create_inferior)
2559 (target_post_create_inferior)
2560 (myattach)
2561 (target_supports_fork_events)
2562 (target_supports_vfork_events)
2563 (target_supports_exec_events)
2564 (target_handle_new_gdb_connection)
2565 (detach_inferior)
2566 (mythread_alive)
2567 (fetch_inferior_registers)
2568 (store_inferior_registers)
2569 (join_inferior)
2570 (target_supports_non_stop)
2571 (target_async)
2572 (target_process_qsupported)
2573 (target_supports_catch_syscall)
2574 (target_get_ipa_tdesc_idx)
2575 (target_supports_tracepoints)
2576 (target_supports_fast_tracepoints)
2577 (target_get_min_fast_tracepoint_insn_len)
2578 (target_thread_stopped)
2579 (target_pause_all)
2580 (target_unpause_all)
2581 (target_stabilize_threads)
2582 (target_install_fast_tracepoint_jump_pad)
2583 (target_emit_ops)
2584 (target_supports_disable_randomization)
2585 (target_supports_agent)
2586 (target_enable_btrace)
2587 (target_disable_btrace)
2588 (target_read_btrace)
2589 (target_read_btrace_conf)
2590 (target_supports_range_stepping)
2591 (target_supports_stopped_by_sw_breakpoint)
2592 (target_stopped_by_sw_breakpoint)
2593 (target_supports_stopped_by_hw_breakpoint)
2594 (target_supports_hardware_single_step)
2595 (target_stopped_by_hw_breakpoint)
2596 (target_breakpoint_kind_from_pc)
2597 (target_breakpoint_kind_from_current_state)
2598 (target_supports_software_single_step)
2599 (target_core_of_thread)
2600 (target_thread_name)
2601 (target_thread_handle)
2602 * win32-low.cc (do_initial_child_stuff)
2603
2604 Rename target op default definitions listed below.
2605
2606 * target.cc (process_target::post_create_inferior): Rename as ...
2607 (process_stratum_target::post_create_inferior): ... this.
2608 (process_target::prepare_to_access_memory): Rename as ...
2609 (process_stratum_target::prepare_to_access_memory): ... this.
2610 (process_target::done_accessing_memory): Rename as ...
2611 (process_stratum_target::done_accessing_memory): ... this.
2612 (process_target::look_up_symbols): Rename as ...
2613 (process_stratum_target::look_up_symbols): ... this.
2614 (process_target::supports_read_auxv): Rename as ...
2615 (process_stratum_target::supports_read_auxv): ... this.
2616 (process_target::read_auxv): Rename as ...
2617 (process_stratum_target::read_auxv): ... this.
2618 (process_target::supports_z_point_type): Rename as ...
2619 (process_stratum_target::supports_z_point_type): ... this.
2620 (process_target::insert_point): Rename as ...
2621 (process_stratum_target::insert_point): ... this.
2622 (process_target::remove_point): Rename as ...
2623 (process_stratum_target::remove_point): ... this.
2624 (process_target::stopped_by_sw_breakpoint): Rename as ...
2625 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
2626 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
2627 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
2628 (process_target::stopped_by_hw_breakpoint): Rename as ...
2629 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
2630 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
2631 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
2632 (process_target::supports_hardware_single_step): Rename as ...
2633 (process_stratum_target::supports_hardware_single_step): ... this.
2634 (process_target::stopped_by_watchpoint): Rename as ...
2635 (process_stratum_target::stopped_by_watchpoint): ... this.
2636 (process_target::stopped_data_address): Rename as ...
2637 (process_stratum_target::stopped_data_address): ... this.
2638 (process_target::supports_read_offsets): Rename as ...
2639 (process_stratum_target::supports_read_offsets): ... this.
2640 (process_target::read_offsets): Rename as ...
2641 (process_stratum_target::read_offsets): ... this.
2642 (process_target::supports_get_tls_address): Rename as ...
2643 (process_stratum_target::supports_get_tls_address): ... this.
2644 (process_target::get_tls_address): Rename as ...
2645 (process_stratum_target::get_tls_address): ... this.
2646 (process_target::hostio_last_error): Rename as ...
2647 (process_stratum_target::hostio_last_error): ... this.
2648 (process_target::supports_qxfer_osdata): Rename as ...
2649 (process_stratum_target::supports_qxfer_osdata): ... this.
2650 (process_target::qxfer_osdata): Rename as ...
2651 (process_stratum_target::qxfer_osdata): ... this.
2652 (process_target::supports_qxfer_siginfo): Rename as ...
2653 (process_stratum_target::supports_qxfer_siginfo): ... this.
2654 (process_target::qxfer_siginfo): Rename as ...
2655 (process_stratum_target::qxfer_siginfo): ... this.
2656 (process_target::supports_non_stop): Rename as ...
2657 (process_stratum_target::supports_non_stop): ... this.
2658 (process_target::async): Rename as ...
2659 (process_stratum_target::async): ... this.
2660 (process_target::start_non_stop): Rename as ...
2661 (process_stratum_target::start_non_stop): ... this.
2662 (process_target::supports_multi_process): Rename as ...
2663 (process_stratum_target::supports_multi_process): ... this.
2664 (process_target::supports_fork_events): Rename as ...
2665 (process_stratum_target::supports_fork_events): ... this.
2666 (process_target::supports_vfork_events): Rename as ...
2667 (process_stratum_target::supports_vfork_events): ... this.
2668 (process_target::supports_exec_events): Rename as ...
2669 (process_stratum_target::supports_exec_events): ... this.
2670 (process_target::handle_new_gdb_connection): Rename as ...
2671 (process_stratum_target::handle_new_gdb_connection): ... this.
2672 (process_target::handle_monitor_command): Rename as ...
2673 (process_stratum_target::handle_monitor_command): ... this.
2674 (process_target::core_of_thread): Rename as ...
2675 (process_stratum_target::core_of_thread): ... this.
2676 (process_target::supports_read_loadmap): Rename as ...
2677 (process_stratum_target::supports_read_loadmap): ... this.
2678 (process_target::read_loadmap): Rename as ...
2679 (process_stratum_target::read_loadmap): ... this.
2680 (process_target::process_qsupported): Rename as ...
2681 (process_stratum_target::process_qsupported): ... this.
2682 (process_target::supports_tracepoints): Rename as ...
2683 (process_stratum_target::supports_tracepoints): ... this.
2684 (process_target::read_pc): Rename as ...
2685 (process_stratum_target::read_pc): ... this.
2686 (process_target::write_pc): Rename as ...
2687 (process_stratum_target::write_pc): ... this.
2688 (process_target::supports_thread_stopped): Rename as ...
2689 (process_stratum_target::supports_thread_stopped): ... this.
2690 (process_target::thread_stopped): Rename as ...
2691 (process_stratum_target::thread_stopped): ... this.
2692 (process_target::supports_get_tib_address): Rename as ...
2693 (process_stratum_target::supports_get_tib_address): ... this.
2694 (process_target::get_tib_address): Rename as ...
2695 (process_stratum_target::get_tib_address): ... this.
2696 (process_target::pause_all): Rename as ...
2697 (process_stratum_target::pause_all): ... this.
2698 (process_target::unpause_all): Rename as ...
2699 (process_stratum_target::unpause_all): ... this.
2700 (process_target::stabilize_threads): Rename as ...
2701 (process_stratum_target::stabilize_threads): ... this.
2702 (process_target::supports_fast_tracepoints): Rename as ...
2703 (process_stratum_target::supports_fast_tracepoints): ... this.
2704 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
2705 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
2706 (process_target::emit_ops): Rename as ...
2707 (process_stratum_target::emit_ops): ... this.
2708 (process_target::supports_disable_randomization): Rename as ...
2709 (process_stratum_target::supports_disable_randomization): ... this.
2710 (process_target::supports_qxfer_libraries_svr4): Rename as ...
2711 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
2712 (process_target::qxfer_libraries_svr4): Rename as ...
2713 (process_stratum_target::qxfer_libraries_svr4): ... this.
2714 (process_target::supports_agent): Rename as ...
2715 (process_stratum_target::supports_agent): ... this.
2716 (process_target::enable_btrace): Rename as ...
2717 (process_stratum_target::enable_btrace): ... this.
2718 (process_target::disable_btrace): Rename as ...
2719 (process_stratum_target::disable_btrace): ... this.
2720 (process_target::read_btrace): Rename as ...
2721 (process_stratum_target::read_btrace): ... this.
2722 (process_target::read_btrace_conf): Rename as ...
2723 (process_stratum_target::read_btrace_conf): ... this.
2724 (process_target::supports_range_stepping): Rename as ...
2725 (process_stratum_target::supports_range_stepping): ... this.
2726 (process_target::supports_pid_to_exec_file): Rename as ...
2727 (process_stratum_target::supports_pid_to_exec_file): ... this.
2728 (process_target::pid_to_exec_file): Rename as ...
2729 (process_stratum_target::pid_to_exec_file): ... this.
2730 (process_target::supports_multifs): Rename as ...
2731 (process_stratum_target::supports_multifs): ... this.
2732 (process_target::multifs_open): Rename as ...
2733 (process_stratum_target::multifs_open): ... this.
2734 (process_target::multifs_unlink): Rename as ...
2735 (process_stratum_target::multifs_unlink): ... this.
2736 (process_target::multifs_readlink): Rename as ...
2737 (process_stratum_target::multifs_readlink): ... this.
2738 (process_target::breakpoint_kind_from_pc): Rename as ...
2739 (process_stratum_target::breakpoint_kind_from_pc): ... this.
2740 (process_target::breakpoint_kind_from_current_state): Rename as ...
2741 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
2742 (process_target::thread_name): Rename as ...
2743 (process_stratum_target::thread_name): ... this.
2744 (process_target::thread_handle): Rename as ...
2745 (process_stratum_target::thread_handle): ... this.
2746 (process_target::supports_software_single_step): Rename as ...
2747 (process_stratum_target::supports_software_single_step): ... this.
2748 (process_target::supports_catch_syscall): Rename as ...
2749 (process_stratum_target::supports_catch_syscall): ... this.
2750 (process_target::get_ipa_tdesc_idx): Rename as ...
2751 (process_stratum_target::get_ipa_tdesc_idx): ... this.
2752
2753 2020-02-20 Pedro Alves <palves@redhat.com>
2754
2755 * target.cc (set_target_ops): Simply copy the given target pointer
2756 instead of creating a copy of the pointed object.
2757
2758 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2759
2760 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
2761 of process_target.
2762
2763 * target.h (struct process_stratum_target): Remove the target op.
2764 (class process_target): Add the target op.
2765 (target_get_ipa_tdesc_idx): Update the macro.
2766 * target.cc (process_target::get_ipa_tdesc_idx): Define.
2767
2768 Update the derived classes and callers below.
2769
2770 * linux-low.cc (linux_target_ops): Update.
2771 (linux_get_ipa_tdesc_idx): Turn into ...
2772 (linux_process_target::get_ipa_tdesc_idx): ... this.
2773 * linux-low.h (class linux_process_target): Update.
2774 * lynx-low.cc (lynx_target_ops): Update.
2775 * nto-low.cc (nto_target_ops): Update.
2776 * win32-low.cc (win32_target_ops): Update.
2777
2778 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2779
2780 Turn process_stratum_target's supports_catch_syscall op into a
2781 method of process_target.
2782
2783 * target.h (struct process_stratum_target): Remove the target op.
2784 (class process_target): Add the target op.
2785 (target_supports_catch_syscall): Update the macro.
2786 * target.cc (process_target::supports_catch_syscall): Define.
2787
2788 Update the derived classes and callers below.
2789
2790 * linux-low.cc (linux_target_ops): Update.
2791 (linux_supports_catch_syscall): Turn into ...
2792 (linux_process_target::supports_catch_syscall): ... this.
2793 * linux-low.h (class linux_process_target): Update.
2794 * lynx-low.cc (lynx_target_ops): Update.
2795 * nto-low.cc (nto_target_ops): Update.
2796 * win32-low.cc (win32_target_ops): Update.
2797
2798 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2799
2800 Turn process_stratum_target's supports_software_single_step op
2801 into a method of process_target.
2802
2803 * target.h (struct process_stratum_target): Remove the target op.
2804 (class process_target): Add the target op.
2805 (target_supports_software_single_step): Update the macro.
2806 * target.cc (process_target::supports_software_single_step): Define.
2807
2808 Update the derived classes and callers below.
2809
2810 * linux-low.cc (linux_target_ops): Update.
2811 (linux_supports_software_single_step): Turn into ...
2812 (linux_process_target::supports_software_single_step): ... this.
2813 * linux-low.h (class linux_process_target): Update.
2814 * lynx-low.cc (lynx_target_ops): Update.
2815 * nto-low.cc (nto_target_ops): Update.
2816 * win32-low.cc (win32_target_ops): Update.
2817
2818 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2819
2820 Turn process_stratum_target's thread_name and thread_handle ops
2821 into methods of process_target.
2822
2823 * target.h (struct process_stratum_target): Remove the target ops.
2824 (class process_target): Add the target ops.
2825 (target_thread_name): Update the macro.
2826 (target_thread_handle): Update the macro.
2827 * target.cc (process_target::thread_name): Define.
2828 (process_target::thread_handle): Define.
2829
2830 Update the derived classes and callers below.
2831
2832 * linux-low.cc (linux_target_ops): Update.
2833 (linux_process_target::thread_name): Define.
2834 (linux_process_target::thread_handle): Define.
2835 * linux-low.h (class linux_process_target): Update.
2836 * lynx-low.cc (lynx_target_ops): Update.
2837 * nto-low.cc (nto_target_ops): Update.
2838 * win32-low.cc (win32_target_ops): Update.
2839
2840 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2841
2842 Turn process_stratum_target's breakpoint_kind_from_pc,
2843 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
2844 ops into methods of process_target.
2845
2846 * target.h (struct process_stratum_target): Remove the target op.
2847 (class process_target): Add the target op.
2848 (target_breakpoint_kind_from_pc): Update the macro.
2849 (target_breakpoint_kind_from_current_state): Update the macro.
2850 (default_breakpoint_kind_from_pc): Remove declaration.
2851 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
2852 (process_target::breakpoint_kind_from_pc): ... this.
2853 (process_target::breakpoint_kind_from_current_state): Define.
2854
2855 Update the derived classes and callers below.
2856
2857 * mem-break.cc (bp_size): Update.
2858 (bp_opcode): Update.
2859 * linux-low.cc (linux_target_ops): Update.
2860 (linux_wait_1): Update.
2861 (linux_breakpoint_kind_from_pc): Turn into ...
2862 (linux_process_target::breakpoint_kind_from_pc): ... this.
2863 (linux_sw_breakpoint_from_kind): Turn into ...
2864 (linux_process_target::sw_breakpoint_from_kind): ... this.
2865 (linux_breakpoint_kind_from_current_state): Turn into ...
2866 (linux_process_target::breakpoint_kind_from_current_state): ... this.
2867 * linux-low.h (class linux_process_target): Update.
2868 * lynx-low.cc (lynx_target_ops): Update.
2869 (lynx_process_target::sw_breakpoint_from_kind): Define.
2870 * lynx-low.h (class lynx_process_target): Update.
2871 * nto-low.cc (nto_target_ops): Update.
2872 (nto_sw_breakpoint_from_kind): Turn into ...
2873 (nto_process_target::sw_breakpoint_from_kind): ... this.
2874 * nto-low.h (class nto_process_target): Update.
2875 * win32-low.cc (win32_target_ops): Update.
2876 (win32_sw_breakpoint_from_kind): Turn into ...
2877 (win32_process_target::sw_breakpoint_from_kind): ... this.
2878 * win32-low.h (class win32_process_target): Update.
2879
2880 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2881
2882 Turn process_stratum_target's multifs_open, multifs_readlink,
2883 multifs_unlink ops into methods of process_target.
2884
2885 * target.h (struct process_stratum_target): Remove the target ops.
2886 (class process_target): Add the target ops. Also add
2887 'supports_multifs'.
2888 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
2889 "sys/stat.h".
2890 (process_target::supports_multifs): Define.
2891 (process_target::multifs_open): Define.
2892 (process_target::multifs_readlink): Define.
2893 (process_target::multifs_unlink): Define.
2894
2895 Update the derived classes and callers below.
2896
2897 * hostio.cc (handle_setfs): Update.
2898 (handle_open): Update.
2899 (handle_unlink): Update.
2900 (handle_readlink): Update.
2901 * linux-low.cc (linux_target_ops): Update.
2902 (linux_process_target::supports_multifs): Define.
2903 (linux_process_target::multifs_open): Define.
2904 (linux_process_target::multifs_readlink): Define.
2905 (linux_process_target::multifs_unlink): Define.
2906 * linux-low.h (class linux_process_target): Update.
2907 * lynx-low.cc (lynx_target_ops): Update.
2908 * nto-low.cc (nto_target_ops): Update.
2909 * win32-low.cc (win32_target_ops): Update.
2910
2911 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2912
2913 Turn process_stratum_target's pid_to_exec_file op into a method
2914 of process_target.
2915
2916 * target.h (struct process_stratum_target): Remove the target op.
2917 (class process_target): Add the target op. Also add
2918 'supports_pid_to_exec_file'.
2919 * target.cc (process_target::pid_to_exec_file): Define.
2920 (process_target::supports_pid_to_exec_file): Define.
2921
2922 Update the derived classes and callers below.
2923
2924 * server.cc (handle_qxfer_exec_file): Update.
2925 (handle_query): Update.
2926 * linux-low.cc (linux_target_ops): Update.
2927 (linux_process_target::supports_pid_to_exec_file): Define.
2928 (linux_process_target::pid_to_exec_file): Define.
2929 * linux-low.h (class linux_process_target): Update.
2930 * lynx-low.cc (lynx_target_ops): Update.
2931 * nto-low.cc (nto_target_ops): Update.
2932 * win32-low.cc (win32_target_ops): Update.
2933
2934 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2935
2936 Turn process_stratum_target's supports_range_stepping op into a
2937 method of process_target.
2938
2939 * target.h (struct process_stratum_target): Remove the target op.
2940 (class process_target): Add the target op.
2941 (target_supports_range_stepping): Update the macro.
2942 * target.cc (process_target::supports_range_stepping): Define.
2943
2944 Update the derived classes and callers below.
2945
2946 * linux-low.cc (linux_target_ops): Update.
2947 (linux_supports_range_stepping): Turn into ...
2948 (linux_process_target::supports_range_stepping): ... this.
2949 * linux-low.h (class linux_process_target): Update.
2950 * lynx-low.cc (lynx_target_ops): Update.
2951 * nto-low.cc (nto_target_ops): Update.
2952 * win32-low.cc (win32_target_ops): Update.
2953
2954 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2955
2956 Turn process_stratum_target's btrace-related ops (enable_btrace,
2957 disable_btrace, read_btrace, read_btrace_conf) into methods of
2958 process_target.
2959
2960 * target.h (struct process_stratum_target): Remove the target ops.
2961 (class process_target): Add the target ops.
2962 (target_enable_btrace): Update.
2963 (target_disable_btrace): Update.
2964 (target_read_btrace): Update.
2965 (target_read_btrace_conf): Update.
2966 * target.cc (process_target::enable_btrace): Define.
2967 (process_target::disable_btrace): Define.
2968 (process_target::read_btrace): Define.
2969 (process_target::read_btrace_conf): Define.
2970
2971 Update the derived classes and callers below.
2972
2973 * linux-low.cc (linux_target_ops): Update.
2974 (linux_process_target:enable_btrace): Define as a wrapper around
2975 linux_enable_btrace.
2976 (linux_low_disable_btrace): Turn into ...
2977 (linux_process_target::disable_btrace): ... this.
2978 (linux_low_read_btrace): Turn into ...
2979 (linux_process_target::read_btrace): ... this.
2980 (linux_low_btrace_conf): Turn into ...
2981 (linux_process_target::read_btrace_conf): ... this.
2982 * linux-low.h (class linux_process_target): Update.
2983 * lynx-low.cc (lynx_target_ops): Update.
2984 * nto-low.cc (nto_target_ops): Update.
2985 * win32-low.cc (win32_target_ops): Update.
2986
2987 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2988
2989 Turn process_stratum_target's supports_agent op into a method of
2990 process_target.
2991
2992 * target.h (struct process_stratum_target): Remove the target op.
2993 (class process_target): Add the target op.
2994 (target_supports_agent): Update the macro.
2995 * target.cc (process_target::supports_agent): Define.
2996
2997 Update the derived classes and callers below.
2998
2999 * linux-low.cc (linux_target_ops): Update.
3000 (linux_supports_agent): Turn into ...
3001 (linux_process_target::supports_agent): ... this.
3002 * linux-low.h (class linux_process_target): Update.
3003 * lynx-low.cc (lynx_target_ops): Update.
3004 * nto-low.cc (nto_target_ops): Update.
3005 * win32-low.cc (win32_target_ops): Update.
3006
3007 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3008
3009 Turn process_stratum_target's qxfer_libraries_svr4 op into a
3010 method of process_target.
3011
3012 * target.h (struct process_stratum_target): Remove the target op.
3013 (class process_target): Add the target op. Also add
3014 'supports_qxfer_libraries_svr4'.
3015 * target.cc (process_target::qxfer_libraries_svr4): Define.
3016 (process_target::supports_qxfer_libraries_svr4): Define.
3017
3018 Update the derived classes and callers below.
3019
3020 * server.cc (handle_qxfer_libraries_svr4): Update.
3021 (handle_query): Update.
3022 * linux-low.cc (linux_target_ops): Update.
3023 (linux_process_target::supports_qxfer_libraries_svr4): Define.
3024 (linux_qxfer_libraries_svr4): Turn into ...
3025 (linux_process_target::qxfer_libraries_svr4): ... this.
3026 * linux-low.h (class linux_process_target): Update.
3027 * lynx-low.cc (lynx_target_ops): Update.
3028 * nto-low.cc (nto_target_ops): Update.
3029 * win32-low.cc (win32_target_ops): Update.
3030
3031 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3032
3033 Turn process_stratum_target's supports_disable_randomization op
3034 into a method of process_target.
3035
3036 * target.h (struct process_stratum_target): Remove the target op.
3037 (class process_target): Add the target op.
3038 (target_supports_disable_randomization): Update the macro.
3039 * target.cc (process_target::supports_disable_randomization): Define.
3040
3041 Update the derived classes and callers below.
3042
3043 * linux-low.cc (linux_target_ops): Update.
3044 (linux_supports_disable_randomization): Turn into ...
3045 (linux_process_target::supports_disable_randomization): ... this.
3046 * linux-low.h (class linux_process_target): Update.
3047 * lynx-low.cc (lynx_target_ops): Update.
3048 * nto-low.cc (nto_target_ops): Update.
3049 * win32-low.cc (win32_target_ops): Update.
3050
3051 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3052
3053 Turn process_stratum_target's emit_ops op into a method of
3054 process_target.
3055
3056 * target.h (struct process_stratum_target): Remove the target op.
3057 (class process_target): Add the target op.
3058 (target_emit_ops): Update the macro.
3059 * target.cc (process_target::emit_ops): Define.
3060
3061 Update the derived classes and callers below.
3062
3063 * linux-low.cc (linux_target_ops): Update.
3064 (linux_emit_ops): Turn into ...
3065 (linux_process_target::emit_ops): ... this.
3066 * linux-low.h (class linux_process_target): Update.
3067 * lynx-low.cc (lynx_target_ops): Update.
3068 * nto-low.cc (nto_target_ops): Update.
3069 * win32-low.cc (win32_target_ops): Update.
3070
3071 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3072
3073 Turn process_stratum_target's install_fast_tracepoint_jump_pad
3074 and get_min_fast_tracepoint_insn_len ops into methods of
3075 process_target.
3076
3077 * target.h (struct process_stratum_target): Remove the target ops.
3078 (class process_target): Add the target ops. Also add
3079 'supports_fast_tracepoints'.
3080 (target_supports_fast_tracepoints): Update the macro.
3081 (target_get_min_fast_tracepoint_insn_len): Update the macro.
3082 (install_fast_tracepoint_jump_pad): Update and rename the macro
3083 to ...
3084 (target_install_fast_tracepoint_jump_pad): ... this.
3085 * target.cc (process_target::supports_fast_tracepoints): Define.
3086 (process_target::install_fast_tracepoint_jump_pad): Define.
3087 (process_target::get_min_fast_tracepoint_insn_len): Define.
3088
3089 Update the derived classes and callers below.
3090
3091 * tracepoint.cc (install_fast_tracepoint): Update.
3092 * linux-low.cc (linux_target_ops): Update.
3093 (linux_process_target::supports_fast_tracepoints): Define.
3094 (linux_install_fast_tracepoint_jump_pad): Turn into ...
3095 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
3096 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
3097 (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
3098 * linux-low.h (class linux_process_target): Update.
3099 * lynx-low.cc (lynx_target_ops): Update.
3100 * nto-low.cc (nto_target_ops): Update.
3101 * win32-low.cc (win32_target_ops): Update.
3102
3103 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3104
3105 Turn process_stratum_target's stabilize_threads op into a
3106 method of process_target.
3107
3108 * target.h (struct process_stratum_target): Remove the target op.
3109 (class process_target): Add the target op.
3110 (target_stabilize_threads): Update the macro.
3111 * target.cc (process_target::stabilize_threads): Define.
3112
3113 Update the derived classes and callers below.
3114
3115 * server.cc (handle_status): Update.
3116 * tracepoint.cc (cmd_qtdp): Update.
3117 (cmd_qtstart): Update.
3118 * linux-low.cc (linux_target_ops): Update.
3119 (linux_stabilize_threads): Turn into ...
3120 (linux_process_target::stabilize_threads): ... this.
3121 (linux_wait_1): Update.
3122 * linux-low.h (class linux_process_target): Update.
3123 * lynx-low.cc (lynx_target_ops): Update.
3124 * nto-low.cc (nto_target_ops): Update.
3125 * win32-low.cc (win32_target_ops): Update.
3126
3127 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3128
3129 Turn process_stratum_target's pause_all and unpause_all ops
3130 into methods of process_target.
3131
3132 * target.h (struct process_stratum_target): Remove the target ops.
3133 (class process_target): Add the target ops.
3134 (pause_all): Update the macro and rename to...
3135 (target_pause_all): ... this.
3136 (unpause_all): Update the macro and rename to...
3137 (target_unpause_all): ... this.
3138 * target.cc (process_target::pause_all): Define.
3139 (process_target::unpause_all): Define.
3140
3141 Update the derived classes and callers below.
3142
3143 * server.cc (handle_status): Update.
3144 * tracepoint.cc (clear_installed_tracepoints): Update.
3145 (cmd_qtdp): Update.
3146 (cmd_qtstart): Update.
3147 (stop_tracing): Update.
3148 (cmd_qtstatus): Update.
3149 (upload_fast_traceframes): Update.
3150 (run_inferior_command): Update.
3151 * linux-low.cc (linux_target_ops): Update.
3152 (linux_pause_all): Turn into ...
3153 (linux_process_target::pause_all): ... this.
3154 (linux_unpause_all): Turn into ...
3155 (linux_process_target::unpause_all): ... this.
3156 (linux_process_target::prepare_to_access_memory): Update.
3157 (linux_process_target::done_accessing_memory): Update.
3158 * linux-low.h (class linux_process_target): Update.
3159 * lynx-low.cc (lynx_target_ops): Update.
3160 * nto-low.cc (nto_target_ops): Update.
3161 * win32-low.cc (win32_target_ops): Update.
3162
3163 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3164
3165 Turn process_stratum_target's get_tib_address op into a method of
3166 process_target.
3167
3168 * target.h (struct process_stratum_target): Remove the target op.
3169 (class process_target): Add the target op. Also add
3170 'supports_get_tib_address'.
3171 * target.cc (process_target::get_tib_address): Define.
3172 (process_target::supports_get_tib_address): Define.
3173
3174 Update the derived classes and callers below.
3175
3176 * server.cc (handle_query): Update.
3177 * linux-low.cc (win32_target_ops): Update.
3178 * lynx-low.cc (lynx_target_ops): Update.
3179 * nto-low.cc (nto_target_ops): Update.
3180 * win32-low.cc (win32_target_ops): Update.
3181 (win32_process_target::supports_get_tib_address): Define.
3182 (win32_get_tib_address): Turn into ...
3183 (win32_process_target::get_tib_address): ... this.
3184 * win32-low.h (class win32_process_target): Update.
3185
3186 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3187
3188 Turn process_stratum_target's thread_stopped op into a method of
3189 process_target.
3190
3191 * target.h (struct process_stratum_target): Remove the target op.
3192 (class process_target): Add the target op. Also add
3193 'supports_thread_stopped'.
3194 (target_thread_stopped): Update the macro.
3195 * target.cc (process_target::thread_stopped): Define.
3196 (process_target::supports_thread_stopped): Define.
3197 (prepare_to_access_memory): Update.
3198
3199 Update the derived classes and callers below.
3200
3201 * server.cc (queue_stop_reply_callback): Update.
3202 * linux-low.cc (linux_target_ops): Update.
3203 (linux_process_target::supports_thread_stopped): Define.
3204 (linux_thread_stopped): Turn into ...
3205 (linux_process_target::thread_stopped): ... this.
3206 * linux-low.h (class linux_process_target): Update.
3207 * lynx-low.cc (lynx_target_ops): Update.
3208 * nto-low.cc (nto_target_ops): Update.
3209 * win32-low.cc (win32_target_ops): Update.
3210
3211 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3212
3213 Turn process_stratum_target's read_pc and write_pc ops into
3214 methods of process_target.
3215
3216 * target.h (struct process_stratum_target): Remove the target ops.
3217 (class process_target): Add the target ops.
3218 * target.cc (process_target::read_pc): Define.
3219 (process_target::write_pc): Define.
3220
3221 Update the derived classes and callers below.
3222
3223 * regcache.cc (regcache_read_pc): Update.
3224 (regcache_write_pc): Update.
3225 * linux-low.cc (linux_target_ops): Update.
3226 (linux_read_pc): Turn into ...
3227 (linux_process_target::read_pc): ... this.
3228 (linux_write_pc): Turn into ...
3229 (linux_process_target::write_pc): ... this.
3230 * linux-low.h (class linux_process_target): Update.
3231 * lynx-low.cc (lynx_target_ops): Update.
3232 * nto-low.cc (nto_target_ops): Update.
3233 * win32-low.cc (win32_target_ops): Update.
3234
3235 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3236
3237 Turn process_stratum_target's supports_tracepoints op into a
3238 method of process_target.
3239
3240 * target.h (struct process_stratum_target): Remove the target op.
3241 (class process_target): Add the target op.
3242 (target_supports_tracepoints): Update the macro.
3243 * target.cc (process_target::supports_tracepoints): Define.
3244
3245 Update the derived classes and callers below.
3246
3247 * linux-low.cc (linux_target_ops): Update.
3248 (linux_supports_tracepoints): Turn into ...
3249 (linux_process_target::supports_tracepoints): ... this.
3250 * linux-low.h (class linux_process_target): Update.
3251 * lynx-low.cc (lynx_target_ops): Update.
3252 * nto-low.cc (nto_target_ops): Update.
3253 * win32-low.cc (win32_target_ops): Update.
3254
3255 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3256
3257 Turn process_stratum_target's process_qsupported op into a method
3258 of process_target.
3259
3260 * target.h (struct process_stratum_target): Remove the target op.
3261 (class process_target): Add the target op.
3262 (target_process_qsupported): Update the macro.
3263 * target.cc (process_target::process_qsupported): Define.
3264
3265 Update the derived classes and callers below.
3266
3267 * linux-low.cc (linux_target_ops): Update.
3268 (linux_process_qsupported): Turn into ...
3269 (linux_process_target::process_qsupported): ... this.
3270 * linux-low.h (class linux_process_target): Update.
3271 * lynx-low.cc (lynx_target_ops): Update.
3272 * nto-low.cc (nto_target_ops): Update.
3273 * win32-low.cc (win32_target_ops): Update.
3274
3275 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3276
3277 Turn process_stratum_target's read_loadmap op into a method of
3278 process_target.
3279
3280 * target.h (struct process_stratum_target): Remove the target op.
3281 (class process_target): Add the target op. Also add
3282 'supports_read_loadmap'.
3283 * target.cc (process_target::read_loadmap): Define.
3284 (process_target::supports_read_loadmap): Define.
3285
3286 Update the derived classes and callers below.
3287
3288 * server.cc (handle_qxfer_fdpic): Update.
3289 (handle_query): Update.
3290 * linux-low.cc (linux_target_ops): Update.
3291 (linux_process_target::supports_read_loadmap): Define.
3292 (linux_read_loadmap): Turn into ...
3293 (linux_process_target::read_loadmap): ... this.
3294 * linux-low.h (class linux_process_target): Update.
3295 * lynx-low.cc (lynx_target_ops): Update.
3296 * nto-low.cc (nto_target_ops): Update.
3297 * win32-low.cc (win32_target_ops): Update.
3298
3299 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3300
3301 Turn process_stratum_target's core_of_thread op into a method of
3302 process_target.
3303
3304 * target.h (struct process_stratum_target): Remove the target op.
3305 (class process_target): Add the target op.
3306 (target_core_of_thread): Update the macro.
3307 * target.cc (process_target::core_of_thread): Define.
3308
3309 Update the derived classes and callers below.
3310
3311 * linux-low.cc (linux_target_ops): Update.
3312 (linux_process_target::core_of_thread): Define.
3313 * linux-low.h (class linux_process_target): Update.
3314 * lynx-low.cc (lynx_target_ops): Update.
3315 * nto-low.cc (nto_target_ops): Update.
3316 * win32-low.cc (win32_target_ops): Update.
3317
3318 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3319
3320 Turn process_stratum_target's handle_monitor_command 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_handle_monitor_command): Update the macro.
3326 * target.cc (process_target::handle_monitor_command): Define.
3327
3328 Update the derived classes and callers below.
3329
3330 * server.cc (handle_query): Update.
3331 * linux-low.cc (linux_target_ops): Update.
3332 (linux_process_target::handle_monitor_command): Define.
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
3338 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3339
3340 Turn process_stratum_target's handle_new_gdb_connection op into a
3341 method of process_target.
3342
3343 * target.h (struct process_stratum_target): Remove the target op.
3344 (class process_target): Add the target op.
3345 (target_handle_new_gdb_connection): Update the macro.
3346 * target.cc (process_target::handle_new_gdb_connection): Define.
3347
3348 Update the derived classes and callers below.
3349
3350 * linux-low.cc (linux_target_ops): Update.
3351 (linux_handle_new_gdb_connection): Turn into ...
3352 (linux_process_target::handle_new_gdb_connection): ... this.
3353 * linux-low.h (class linux_process_target): Update.
3354 * lynx-low.cc (lynx_target_ops): Update.
3355 * nto-low.cc (nto_target_ops): Update.
3356 * win32-low.cc (win32_target_ops): Update.
3357
3358 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3359
3360 Turn process_stratum_target's supports_fork_events,
3361 supports_vfork_events, and supports_exec_events ops into methods
3362 of process_target.
3363
3364 * target.h (struct process_stratum_target): Remove the target ops.
3365 (class process_target): Add the target ops.
3366 (target_supports_fork_events): Update the macro.
3367 (target_supports_vfork_events): Update the macro.
3368 (target_supports_exec_events): Update the macro.
3369 * target.cc (process_target::supports_fork_events): Define.
3370 (process_target::supports_vfork_events): Define.
3371 (process_target::supports_exec_events): Define.
3372
3373 Update the derived classes and callers below.
3374
3375 * linux-low.cc (linux_target_ops): Update.
3376 (linux_supports_fork_events): Turn into ...
3377 (linux_process_target::supports_fork_events): ... this.
3378 (linux_supports_vfork_events): Turn into ...
3379 (linux_process_target::supports_vfork_events): ... this.
3380 (linux_supports_exec_events): Turn into ...
3381 (linux_process_target::supports_exec_events): ... this.
3382 * linux-low.h (class linux_process_target): Update.
3383 * lynx-low.cc (lynx_target_ops): Update.
3384 * nto-low.cc (nto_target_ops): Update.
3385 * win32-low.cc (win32_target_ops): Update.
3386
3387 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3388
3389 Turn process_stratum_target's supports_multi_process op into a
3390 method of process_target.
3391
3392 * target.h (struct process_stratum_target): Remove the target op.
3393 (class process_target): Add the target op.
3394 * target.cc (process_target::supports_multi_process): Define.
3395 (target_supports_multi_process): Update.
3396
3397 Update the derived classes and callers below.
3398
3399 * linux-low.cc (linux_target_ops): Update.
3400 (linux_supports_multi_process): Turn into ...
3401 (linux_process_target::supports_multi_process): ... this.
3402 * linux-low.h (class linux_process_target): Update.
3403 * lynx-low.cc (lynx_target_ops): Update.
3404 * nto-low.cc (nto_target_ops): Update.
3405 * win32-low.cc (win32_target_ops): Update.
3406
3407 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3408
3409 Turn process_stratum_target's supports_non_stop, async, and
3410 start_non_stop ops into methods of process_target.
3411
3412 * target.h (struct process_stratum_target): Remove the target ops.
3413 (class process_target): Add the target ops.
3414 (target_supports_non_stop): Update the macro.
3415 (target_async): Update the macro.
3416 (start_non_stop): Remove declaration.
3417 * target.cc (process_target::supports_non_stop): Define.
3418 (process_target::async): Define.
3419 (process_target::start_non_stop): Define.
3420 (start_non_stop): Remove.
3421
3422 Update the derived classes and callers below.
3423
3424 * server.cc (handle_qxfer_siginfo): Update.
3425 (handle_query): Update.
3426 * linux-low.cc (linux_target_ops): Update.
3427 (linux_supports_non_stop): Turn into ...
3428 (linux_process_target::supports_non_stop): ... this.
3429 (linux_async): Turn into ...
3430 (linux_process_target::async): ... this.
3431 (linux_start_non_stop): Turn into ...
3432 (linux_process_target::start_non_stop): ... this.
3433 * linux-low.h (class linux_process_target): Update.
3434 * lynx-low.cc (lynx_target_ops): Update.
3435 * nto-low.cc (nto_target_ops): Update.
3436 (nto_supports_non_stop): Remove; rely on the default behavior
3437 instead.
3438 * win32-low.cc (win32_target_ops): Update.
3439
3440 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3441
3442 Turn process_stratum_target's qxfer_siginfo op into a method of
3443 process_target.
3444
3445 * target.h (struct process_stratum_target): Remove the target op.
3446 (class process_target): Add the target op. Also add
3447 'supports_qxfer_siginfo'.
3448 * target.cc (process_target::qxfer_siginfo): Define.
3449 (process_target::supports_qxfer_siginfo): Define.
3450
3451 Update the derived classes and callers below.
3452
3453 * server.cc (handle_qxfer_siginfo): Update.
3454 (handle_query): Update.
3455 * linux-low.cc (linux_target_ops): Update.
3456 (linux_process_target::supports_qxfer_siginfo): Define.
3457 (linux_xfer_siginfo): Turn into ...
3458 (linux_process_target::qxfer_siginfo): ... this.
3459 * linux-low.h (class linux_process_target): Update.
3460 * lynx-low.cc (lynx_target_ops): Update.
3461 * nto-low.cc (nto_target_ops): Update.
3462 * win32-low.cc (win32_target_ops): Update.
3463
3464 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3465
3466 Turn process_stratum_target's qxfer_osdata op into a method of
3467 process_target.
3468
3469 * target.h (struct process_stratum_target): Remove the target op.
3470 (class process_target): Add the target op. Also add
3471 'supports_qxfer_osdata'.
3472 * target.cc (process_target::qxfer_osdata): Define.
3473 (process_target::supports_qxfer_osdata): Define.
3474
3475 Update the derived classes and callers below.
3476
3477 * server.cc (handle_qxfer_osdata): Update.
3478 (handle_query): Update.
3479 * linux-low.cc (linux_target_ops): Update.
3480 (linux_process_target::supports_qxfer_osdata): Define.
3481 (linux_qxfer_osdata): Turn into ...
3482 (linux_process_target::qxfer_osdata): ... this.
3483 * linux-low.h (class linux_process_target): Update.
3484 * lynx-low.cc (lynx_target_ops): Update.
3485 * nto-low.cc (nto_target_ops): Update.
3486 * win32-low.cc (win32_target_ops): Update.
3487
3488 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3489
3490 Turn process_stratum_target's hostio_last_error op into a
3491 method of process_target.
3492
3493 * target.h (struct process_stratum_target): Remove the target op.
3494 (class process_target): Add the target op.
3495 * target.cc: Add "hostio.h" to includes.
3496 (process_target::hostio_last_error): Define.
3497
3498 Update the derived classes and callers below.
3499
3500 * hostio.cc (hostio_error): Update.
3501 * linux-low.cc: Remove "hostio.h" from includes.
3502 (linux_target_ops): Update.
3503 * lynx-low.cc (lynx_target_ops): Update.
3504 * nto-low.cc (nto_target_ops): Update.
3505 * win32-low.h (class win32_process_target): Update.
3506 * win32-low.cc (win32_target_ops): Update.
3507 (wince_hostio_last_error): Turn into ...
3508 (win32_process_target::hostio_last_error): ... this.
3509
3510 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3511
3512 Turn process_stratum_target's get_tls_address op into a method of
3513 process_target.
3514
3515 * target.h (struct process_stratum_target): Remove the target op.
3516 (class process_target): Add the target op. Also add
3517 'supports_get_tls_address'.
3518 * target.cc (process_target::get_tls_address): Define.
3519 (process_target::supports_get_tls_address): Define.
3520
3521 Update the derived classes and callers below.
3522
3523 * server.cc (handle_query): Update.
3524 * linux-low.cc (linux_target_ops): Update.
3525 (linux_process_target::supports_get_tls_address): Define.
3526 (linux_process_target::get_tls_address): Define.
3527 * linux-low.h (class linux_process_target): Update.
3528 * lynx-low.cc (lynx_target_ops): Update.
3529 * nto-low.cc (nto_target_ops): Update.
3530 * win32-low.cc (win32_target_ops): Update.
3531
3532 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3533
3534 Turn process_stratum_target's read_offsets op into a method of
3535 process_target.
3536
3537 * target.h (struct process_stratum_target): Remove the target op.
3538 (class process_target): Add the target op. Also add
3539 'supports_read_offsets'.
3540 * target.cc (process_target::read_offsets): Define.
3541 (process_target::supports_read_offsets): Define.
3542
3543 Update the derived classes and callers below.
3544
3545 * server.cc (handle_query): Update.
3546 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
3547 (linux_target_ops): Update.
3548 (linux_process_target::supports_read_offsets): Define.
3549 (linux_read_offsets): Turn into ...
3550 (linux_process_target::read_offsets): ... this.
3551 * linux-low.h (class linux_process_target): Update.
3552 * lynx-low.cc (lynx_target_ops): Update.
3553 * nto-low.cc (nto_target_ops): Update.
3554 * win32-low.cc (win32_target_ops): Update.
3555
3556 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3557
3558 Turn process_stratum_target's stopped_by_watchpoint and
3559 stopped_data_address ops into methods of process_target.
3560
3561 * target.h (struct process_stratum_target): Remove the target ops.
3562 (class process_target): Add the target ops.
3563 * target.cc (process_target::stopped_by_watchpoint): Define.
3564 (process_target::stopped_data_address): Define.
3565
3566 Update the derived classes and callers below.
3567
3568 * remote-utils.cc (prepare_resume_reply): Update.
3569 * linux-low.cc (linux_target_ops): Update.
3570 (linux_stopped_by_watchpoint): Turn into ...
3571 (linux_process_target::stopped_by_watchpoint): ... this.
3572 (linux_stopped_data_address): Turn into ...
3573 (linux_process_target::stopped_data_address): ... this.
3574 * linux-low.h (class linux_process_target): Update.
3575 * lynx-low.cc (lynx_target_ops): Update.
3576 * nto-low.cc (nto_target_ops): Update.
3577 (nto_stopped_by_watchpoint): Turn into ...
3578 (nto_process_target::stopped_by_watchpoint): ... this.
3579 (nto_stopped_data_address): Turn into ...
3580 (nto_process_target::stopped_data_address): ... this.
3581 * nto-low.h (class nto_process_target): Update.
3582 * win32-low.cc (win32_target_ops): Update.
3583 (win32_stopped_by_watchpoint): Turn into ...
3584 (win32_process_target::stopped_by_watchpoint): ... this.
3585 (win32_stopped_data_address): Turn into ...
3586 (win32_process_target::stopped_data_address): ... this.
3587 * win32-low.h (class win32_process_target): Update.
3588
3589 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3590
3591 Turn process_stratum_target's supports_hardware_single_step op into
3592 a method of process_target.
3593
3594 * target.h (struct process_stratum_target): Remove the target op.
3595 (class process_target): Add the target op.
3596 (target_supports_hardware_single_step): Update the macro.
3597 (target_can_do_hardware_single_step): Remove declaration.
3598 * target.cc (process_target::supports_hardware_single_step): Define.
3599 (target_can_do_hardware_single_step): Remove.
3600
3601 Update the derived classes and callers below.
3602
3603 * linux-low.h (class linux_process_target): Update.
3604 * linux-low.cc (linux_target_ops): Update.
3605 (linux_supports_hardware_single_step): Turn into ...
3606 (linux_process_target::supports_hardware_single_step): ... this.
3607 * lynx-low.h (class lynx_process_target): Update.
3608 * lynx-low.cc (lynx_target_ops): Update.
3609 (lynx_process_target::supports_hardware_single_step): Define.
3610 * nto-low.h (class nto_process_target): Update.
3611 * nto-low.cc (nto_target_ops): Update.
3612 (nto_process_target::supports_hardware_single_step): Define.
3613 * win32-low.h (class win32_process_target): Update.
3614 * win32-low.cc (win32_target_ops): Update.
3615 (win32_process_target::supports_hardware_single_step): Define.
3616
3617 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3618
3619 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
3620 ops into methods of process_target.
3621
3622 * target.h (struct process_stratum_target): Remove the target ops.
3623 (class process_target): Add the target ops.
3624 (target_stopped_by_hw_breakpoint): Update the macro.
3625 (target_supports_stopped_by_hw_breakpoint): Update the macro.
3626 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
3627 (process_target::supports_stopped_by_hw_breakpoint): Define.
3628
3629 Update the derived classes and callers below.
3630
3631 * linux-low.cc (linux_target_ops): Update.
3632 (linux_stopped_by_hw_breakpoint): Turn into ...
3633 (linux_process_target::stopped_by_hw_breakpoint): ... this.
3634 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
3635 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
3636 * linux-low.h (class linux_process_target): Update.
3637 * lynx-low.cc (lynx_target_ops): Update.
3638 * nto-low.cc (nto_target_ops): Update.
3639 * win32-low.cc (win32_target_ops): Update.
3640
3641 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3642
3643 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
3644 ops into methods of process_target.
3645
3646 * target.h (struct process_stratum_target): Remove the target ops.
3647 (class process_target): Add the target ops.
3648 (target_stopped_by_sw_breakpoint): Update the macro.
3649 (target_supports_stopped_by_sw_breakpoint): Update the macro.
3650 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
3651 (process_target::supports_stopped_by_sw_breakpoint): Define.
3652
3653 Update the derived classes and callers below.
3654
3655 * linux-low.cc (linux_target_ops): Update.
3656 (linux_stopped_by_sw_breakpoint): Turn into ...
3657 (linux_process_target::stopped_by_sw_breakpoint): ... this.
3658 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
3659 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
3660 * linux-low.h (class linux_process_target): Update.
3661 * lynx-low.cc (lynx_target_ops): Update.
3662 * nto-low.cc (nto_target_ops): Update.
3663 * win32-low.cc (win32_target_ops): Update.
3664
3665 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3666
3667 Turn process_stratum_target's insert_point and remove_point ops
3668 into methods of process_target.
3669
3670 * target.h (struct process_stratum_target): Remove the target ops.
3671 (class process_target): Add the target ops.
3672 * target.cc (process_target::insert_point): Define.
3673 (process_target::remove_point): Define.
3674
3675 Update the derived classes and callers below.
3676
3677 * mem-break.cc (set_raw_breakpoint_at): Update.
3678 (delete_raw_breakpoint): Update.
3679 (uninsert_raw_breakpoint): Update.
3680 (reinsert_raw_breakpoint): Update.
3681 * linux-low.cc (linux_target_ops): Update.
3682 (linux_insert_point): Turn into ...
3683 (linux_process_target::insert_point): ... this.
3684 (linux_remove_point): Turn into ...
3685 (linux_process_target::remove_point): ... this.
3686 * linux-low.h (class linux_process_target): Update.
3687 * lynx-low.cc (lynx_target_ops): Update.
3688 * nto-low.cc (nto_target_ops): Update.
3689 (nto_insert_point): Turn into ...
3690 (nto_process_target::insert_point): ... this.
3691 (nto_remove_point): Turn into ...
3692 (nto_process_target::remove_point): ... this.
3693 * nto-low.h (class nto_process_target): Update.
3694 * win32-low.cc (win32_target_ops): Update.
3695 (win32_insert_point): Turn into ...
3696 (win32_process_target::insert_point): ... this.
3697 (win32_remove_point): Turn into ...
3698 (win32_process_target::remove_point): ... this.
3699 * win32-low.h (class win32_process_target): Update.
3700
3701 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3702
3703 Turn process_stratum_target's supports_z_point_type op into a
3704 method of process_target.
3705
3706 * target.h (struct process_stratum_target): Remove the target op.
3707 (class process_target): Add the target op.
3708 * target.cc (process_target::supports_z_point_type): Define.
3709
3710 Update the derived classes and callers below.
3711
3712 * mem-break.cc (z_type_supported): Update.
3713 * linux-low.cc (linux_target_ops): Update.
3714 (linux_supports_z_point_type): Turn into ...
3715 (linux_process_target::supports_z_point_type): ... this.
3716 * linux-low.h (class linux_process_target): Update.
3717 * lynx-low.cc (lynx_target_ops): Update.
3718 * nto-low.cc (nto_target_ops): Update.
3719 (nto_supports_z_point_type): Turn into ...
3720 (nto_process_target::supports_z_point_type): ... this.
3721 * nto-low.h (class nto_process_target): Update.
3722 * win32-low.cc (win32_target_ops): Update.
3723 (win32_supports_z_point_type): Turn into ...
3724 (win32_process_target::supports_z_point_type): ... this.
3725 * win32-low.h (class win32_process_target): Update.
3726
3727 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3728
3729 Turn process_stratum_target's read_auxv op into a method of
3730 process_target.
3731
3732 * target.h (class process_stratum_target): Remove the target op.
3733 (struct process_target): Add the target op. Also add
3734 'supports_read_auxv'.
3735 * target.cc (process_target::read_auxv): Define.
3736 (process_target::supports_read_auxv): Define.
3737
3738 Update the derived classes and callers below.
3739
3740 * server.cc (handle_qxfer_auxv): Update.
3741 (handle_query): Update.
3742 * linux-low.cc (linux_target_ops): Update.
3743 (linux_process_target::supports_read_auxv): Define.
3744 (linux_read_auxv): Turn into ...
3745 (linux_process_target::read_auxv): ... this.
3746 * linux-low.h (class linux_process_target): Update.
3747 * lynx-low.cc (lynx_target_ops): Update.
3748 * nto-low.cc (nto_target_ops): Update.
3749 (nto_process_target::supports_read_auxv): Define.
3750 (nto_read_auxv): Turn into ...
3751 (nto_process_target::read_auxv): ... this.
3752 * nto-low.h (class nto_process_target): Update.
3753 * win32-low.cc (win32_target_ops): Update.
3754
3755 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3756
3757 Turn process_stratum_target's request_interrupt op into a method of
3758 process_target.
3759
3760 * target.h (struct process_stratum_target): Remove the target op.
3761 (class process_target): Add the target op.
3762
3763 Update the derived classes and callers below.
3764
3765 * remote-utils.cc (putpkt_binary_1): Update.
3766 (input_interrupt): Update.
3767 (getpkt): Update.
3768 * server.cc (handle_v_requests): Update.
3769 * linux-low.cc (linux_target_ops): Update.
3770 (linux_request_interrupt): Turn into ...
3771 (linux_process_target::request_interrupt): ... this.
3772 * linux-low.h (class linux_process_target): Update.
3773 * lynx-low.cc (lynx_target_ops): Update.
3774 (lynx_request_interrupt): Turn into ...
3775 (lynx_process_target::request_interrupt): ... this.
3776 * lynx-low.h (class lynx_process_target): Update.
3777 * nto-low.cc (nto_target_ops): Update.
3778 (nto_request_interrupt): Turn into ...
3779 (nto_process_target::request_interrupt): ... this.
3780 * nto-low.h (class nto_process_target): Update.
3781 * win32-low.cc (win32_target_ops): Update.
3782 (win32_request_interrupt): Turn into ...
3783 (win32_process_target::request_interrupt): ... this.
3784 * win32-low.h (class win32_process_target): Update.
3785
3786 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3787
3788 Turn process_stratum_target's look_up_symbols op into a method of
3789 process_target.
3790
3791 * target.h (struct process_stratum_target): Remove the target op.
3792 (class process_target): Add the target op.
3793 * target.cc (process_target::look_up_symbols): Define.
3794
3795 Update the derived classes and callers below.
3796
3797 * server.cc (handle_query): Update.
3798 * linux-low.cc (linux_target_ops): Update.
3799 (linux_look_up_symbols): Turn into ...
3800 (linux_process_target::look_up_symbols): ... this.
3801 * linux-low.h (class linux_process_target): Update.
3802 * lynx-low.cc (lynx_target_ops): Update.
3803 * nto-low.cc (nto_target_ops): Update.
3804 * win32-low.cc (win32_target_ops): Update.
3805
3806 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3807
3808 Turn process_stratum_target's read_memory and write_memory
3809 ops into methods of process_target.
3810
3811 * target.h (struct process_stratum_target): Remove the target ops.
3812 (class process_target): Add the target ops.
3813
3814 Update the derived classes and callers below.
3815
3816 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
3817 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
3818 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
3819 (arm_get_syscall_trapinfo): Update.
3820 * linux-cris-low.cc (cris_breakpoint_at): Update.
3821 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
3822 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
3823 * linux-mips-low.cc (mips_breakpoint_at): Update.
3824 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
3825 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
3826 * linux-sh-low.cc (sh_breakpoint_at): Update.
3827 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
3828 (sparc_store_gregset_from_stack): Update.
3829 (sparc_breakpoint_at): Update.
3830 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
3831 * linux-tile-low.cc (tile_breakpoint_at): Update.
3832 * linux-x86-low.cc (x86_breakpoint_at): Update.
3833 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
3834 * mem-brea.cc (insert_memory_breakpoint): Update.
3835 (validate_inserted_breakpoint): Update.
3836 * target.cc (read_inferior_memory): Update.
3837 (target_write_memory): Update.
3838 * linux-low.cc (linux_target_ops): Update.
3839 (linux_read_memory): Make a wrapper around the read_memory target
3840 op call.
3841 (linux_process_target::read_memory): Rename from linux_read_memory.
3842 (linux_write_memory): Turn into ...
3843 (linux_process_target::write_memory): ... this.
3844 * linux-low.h (class linux_process_target): Update.
3845 * lynx-low.cc (lynx_target_ops): Update.
3846 (lynx_read_memory): Turn into ...
3847 (lynx_process_target::read_memory): ... this.
3848 (lynx_write_memory): Turn into ...
3849 (lynx_process_target::write_memory): ... this.
3850 * lynx-low.h (class lynx_process_target): Update.
3851 * nto-low.cc (nto_target_ops): Update.
3852 (nto_read_memory): Turn into ...
3853 (nto_process_target::read_memory): ... this.
3854 (nto_write_memory): Turn into ...
3855 (nto_process_target::write_memory): ... this.
3856 * nto-low.h (class nto_process_target): Update.
3857 * win32-low.cc (win32_target_ops): Update.
3858 (win32_read_inferior_memory): Turn into ...
3859 (win32_process_target::read_memory): ... this.
3860 (win32_write_inferior_memory): Turn into ...
3861 (win32_process_target::write_memory): ... this.
3862 * win32-low.h (class win32_process_target): Update.
3863
3864 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3865
3866 Turn process_stratum_target's prepare_to_access_memory and
3867 done_accessing_memory ops into methods of process_target.
3868
3869 * target.h (struct process_stratum_target): Remove the target ops.
3870 (class process_target): Add the target ops.
3871 * target.cc (process_target::prepare_to_access_memory): Define.
3872 (process_target::done_accessing_memory): Define.
3873 (prepare_to_access_memory): Update.
3874 (done_accessing_memory): Update.
3875
3876 Update the derived classes and callers below.
3877
3878 * linux-low.cc (linux_target_ops): Update.
3879 (linux_prepare_to_access_memory): Turn into ...
3880 (linux_process_target::prepare_to_access_memory): ... this.
3881 (linux_done_accessing_memory): Turn into ...
3882 (linux_process_target::done_accessing_memory): ... this.
3883 * linux-low.h (class linux_process_target): Update.
3884 * lynx-low.cc (lynx_target_ops): Update.
3885 * nto-low.cc (nto_target_ops): Update.
3886 * win32-low.cc (win32_target_ops): Update.
3887
3888 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3889
3890 Turn process_stratum_target's fetch_registers and store_registers
3891 ops into methods of process_target.
3892
3893 * target.h (struct process_stratum_target): Remove the target ops.
3894 (class process_target): Add the target ops.
3895 (fetch_inferior_registers): Update the macro.
3896 (store_inferior_registers): Update the macro.
3897
3898 Update the derived classes and callers below.
3899
3900 * linux-low.cc (linux_target_ops): Update.
3901 (linux_fetch_registers): Turn into ...
3902 (linux_process_target::fetch_registers): ... this.
3903 (linux_store_registers): Turn into ...
3904 (linux_process_target::store_registers): ... this.
3905 * linux-low.h (class linux_process_target): Update.
3906 * lynx-low.cc (lynx_target_ops): Update.
3907 (lynx_fetch_registers): Turn into ...
3908 (lynx_process_target::fetch_registers): ... this.
3909 (lynx_store_registers): Turn into ...
3910 (lynx_process_target::store_registers): ... this.
3911 * lynx-low.h (class lynx_process_target): Update.
3912 * nto-low.cc (nto_target_ops): Update.
3913 (nto_fetch_registers): Turn into ...
3914 (nto_process_target::fetch_registers): ... this.
3915 (nto_store_registers): Turn into ...
3916 (nto_process_target::store_registers): ... this.
3917 * nto-low.h (class nto_process_target): Update.
3918 * win32-low.cc (win32_target_ops): Update.
3919 (win32_fetch_inferior_registers): Turn into ...
3920 (win32_process_target::fetch_registers): ... this.
3921 (win32_store_inferior_registers): Turn into ...
3922 (win32_process_target::store_registers): ... this.
3923 * win32-low.h (class win32_process_target): Update.
3924
3925 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3926
3927 Turn process_stratum_target's wait op into a method of
3928 process_target.
3929
3930 * target.h (struct process_stratum_target): Remove the target op.
3931 (class process_target): Add the target op.
3932
3933 Update the derived classes and callers below.
3934
3935 * target.cc (target_wait): Update.
3936 * linux-low.cc (linux_target_ops): Update.
3937 (linux_wait): Turn into ...
3938 (linux_process_target::wait): ... this.
3939 * linux-low.h (class linux_process_target): Update.
3940 * lynx-low.cc (lynx_target_ops): Update.
3941 (lynx_wait): Turn into ...
3942 (lynx_process_target::wait): ... this.
3943 * lynx-low.h (class lynx_process_target): Update.
3944 * nto-low.cc (nto_target_ops): Update.
3945 (nto_wait): Turn into ...
3946 (nto_process_target::wait): ... this.
3947 * nto-low.h (class nto_process_target): Update.
3948 * win32-low.cc (win32_target_ops): Update.
3949 (win32_wait): Turn into ...
3950 (win32_process_target::wait): ... this.
3951 (do_initial_child_stuff): Update.
3952 * win32-low.h (class win32_process_target): Update.
3953
3954 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3955
3956 Turn process_stratum_target's resume op into a method of
3957 process_target.
3958
3959 * target.h (struct process_stratum_target): Remove the target op.
3960 (class process_target): Add the target op.
3961
3962 Update the derived classes and callers below.
3963
3964 * server.cc (resume): Update.
3965 * target.cc (target_stop_and_wait): Update.
3966 (target_continue_no_signal): Update.
3967 (target_continue): Update.
3968 * linux-low.cc (linux_target_ops): Update.
3969 (linux_resume): Turn into ...
3970 (linux_process_target::resume): ... this.
3971 * linux-low.h (class linux_process_target): Update.
3972 * lynx-low.cc (lynx_target_ops): Update.
3973 (lynx_resume): Turn into ...
3974 (lynx_process_target::resume): ... this.
3975 * lynx-low.h (class lynx_process_target): Update.
3976 * nto-low.cc (nto_target_ops): Update.
3977 (nto_resume): Turn into ...
3978 (nto_process_target::resume): ... this.
3979 * nto-low.h (class nto_process_target): Update.
3980 * win32-low.cc (win32_target_ops): Update.
3981 (win32_resume): Turn into ...
3982 (win32_process_target::resume): ... this.
3983 (win32_process_target::detach): Update.
3984 (do_initial_child_stuff): Update.
3985 * win32-low.h (class win32_process_target): Update.
3986
3987 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3988
3989 Turn process_stratum_target's thread_alive op into a method of
3990 process_target.
3991
3992 * target.h (struct process_stratum_target): Remove the target op.
3993 (class process_target): Add the target op.
3994 (mythread_alive): Update the macro.
3995
3996 Update the derived classes and callers below.
3997
3998 * linux-low.cc (linux_target_ops): Update.
3999 (linux_thread_alive): Turn into ...
4000 (linux_process_target::thread_alive): ... this.
4001 (wait_for_sigstop): Update.
4002 * linux-low.h (class linux_process_target): Update.
4003 * lynx-low.cc (lynx_target_ops): Update.
4004 (lynx_thread_alive): Turn into ...
4005 (lynx_process_target::thread_alive): ... this.
4006 * lynx-low.h (class lynx_process_target): Update.
4007 * nto-low.cc (nto_target_ops): Update.
4008 (nto_thread_alive): Turn into ...
4009 (nto_process_target::thread_alive): ... this.
4010 * nto-low.h (class nto_process_target): Update.
4011 * win32-low.cc (win32_target_ops): Update.
4012 (win32_thread_alive): Turn into ...
4013 (win32_process_target::thread_alive): ... this.
4014 * win32-low.h (class win32_process_target): Update.
4015
4016 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4017
4018 Turn process_stratum_target's join op into a method of
4019 process_target.
4020
4021 * target.h (struct process_stratum_target): Remove the target op.
4022 (class process_target): Add the target op.
4023 (join_inferior): Update the macro.
4024
4025 Update the derived classes and callers below.
4026
4027 * linux-low.cc (linux_target_ops): Update.
4028 (linux_join): Turn into ...
4029 (linux_process_target::join): ... this.
4030 * linux-low.h (class linux_process_target): Update.
4031 * lynx-low.cc (lynx_target_ops): Update.
4032 (lynx_join): Turn into ...
4033 (lynx_process_target::join): ... this.
4034 * lynx-low.h (class lynx_process_target): Update.
4035 * nto-low.cc (nto_target_ops): Update.
4036 (nto_process_target::join): Define.
4037 * nto-low.h (class nto_process_target): Update.
4038 * win32-low.cc (win32_target_ops): Update.
4039 (win32_join): Turn into ...
4040 (win32_process_target::join): ... this.
4041 * win32-low.h (class win32_process_target): Update.
4042
4043 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4044
4045 Turn process_stratum_target's mourn op into a method of
4046 process_target.
4047
4048 * target.h (struct process_stratum_target): Remove the target op.
4049 (class process_target): Add the target op.
4050
4051 Update the derived classes and callers below.
4052
4053 * target.cc (target_mourn_inferior): Update.
4054 * linux-low.cc (linux_target_ops): Update.
4055 (linux_mourn): Turn into ...
4056 (linux_process_target::mourn): ... this.
4057 (handle_extended_wait): Update.
4058 (linux_process_target::kill): Update.
4059 (linux_process_target::detach): Update.
4060 * linux-low.h (class linux_process_target): Update.
4061 * lynx-low.cc (lynx_target_ops): Update.
4062 (lynx_mourn): Turn into ...
4063 (lynx_process_target::mourn): ... this.
4064 * lynx-low.h (class lynx_process_target): Update.
4065 * nto-low.cc (nto_target_ops): Update.
4066 (nto_mourn): Turn into ...
4067 (nto_process_target::mourn): ... this.
4068 * nto-low.h (class nto_process_target): Update.
4069 * win32-low.cc (win32_target_ops): Update.
4070 (win32_mourn): Turn into ...
4071 (win32_process_target::mourn): ... this.
4072 * win32-low.h (class win32_process_target): Update.
4073
4074 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4075
4076 Turn process_stratum_target's detach op into a method of
4077 process_target.
4078
4079 * target.h (struct process_stratum_target): Remove the target op.
4080 (class process_target): Add the target op.
4081 (detach_inferior): Update the macro.
4082
4083 Update the derived classes and callers below.
4084
4085 * linux-low.cc (linux_target_ops): Update.
4086 (linux_detach): Turn into ...
4087 (linux_process_target::detach): ... this.
4088 * linux-low.h (class linux_process_target): Update.
4089 * lynx-low.cc (lynx_target_ops): Update.
4090 (lynx_detach): Turn into ...
4091 (lynx_process_target::detach): ... this.
4092 * lynx-low.h (class lynx_process_target): Update.
4093 * nto-low.cc (nto_target_ops): Update.
4094 (nto_detach): Turn into ...
4095 (nto_process_target::detach): ... this.
4096 * nto-low.h (class nto_process_target): Update.
4097 * win32-low.cc (win32_target_ops): Update.
4098 (win32_detach): Turn into ...
4099 (win32_process_target::detach): ... this.
4100 * win32-low.h (class win32_process_target): Update.
4101
4102 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4103
4104 Turn process_stratum_target's kill op into a method of
4105 process_target.
4106
4107 * target.h (struct process_stratum_target): Remove the target op.
4108 (class process_target): Add the target op.
4109
4110 Update the derived classes and callers below.
4111
4112 * target.cc (kill_inferior): Update.
4113 * linux-low.cc (linux_target_ops): Update.
4114 (linux_kill): Turn into ...
4115 (linux_process_target::kill): ... this.
4116 * linux-low.h (class linux_process_target): Update.
4117 * lynx-low.cc (lynx_target_ops): Update.
4118 (lynx_kill): Turn into ...
4119 (lynx_process_target::kill): ... this.
4120 * lynx-low.h (class lynx_process_target): Update.
4121 * nto-low.cc (nto_target_ops): Update.
4122 (nto_kill): Turn into ...
4123 (nto_process_target::kill): ... this.
4124 * nto-low.h (class nto_process_target): Update.
4125 * win32-low.cc (win32_target_ops): Update.
4126 (win32_kill): Turn into ...
4127 (win32_process_target::kill): ... this.
4128 * win32-low.h (class win32_process_target): Update.
4129
4130 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4131
4132 Turn process_stratum_target's attach op into a method of
4133 process_target.
4134
4135 * target.h (struct process_stratum_target): Remove the target op.
4136 (class process_target): Add the target op.
4137 (myattach): Update the macro.
4138
4139 Update the derived classes and callers below.
4140
4141 * linux-low.cc (linux_target_ops): Update.
4142 (linux_attach): Turn into ...
4143 (linux_process_target::attach): ... this.
4144 * linux-low.h (class linux_process_target): Update.
4145 * lynx-low.cc (lynx_target_ops): Update.
4146 (lynx_attach): Turn into ...
4147 (lynx_process_target::attach): ... this.
4148 * lynx-low.h (class lynx_process_target): Update.
4149 * nto-low.cc (nto_target_ops): Update.
4150 (nto_attach): Turn into ...
4151 (nto_process_target::attach): ... this.
4152 * nto-low.h (class nto_process_target): Update.
4153 * win32-low.cc (win32_target_ops): Update.
4154 (win32_attach): Turn into ...
4155 (win32_process_target::attach): ... this.
4156 * win32-low.h (class win32_process_target): Update.
4157
4158 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4159
4160 Turn process_stratum_target's post_create_inferior op into a method
4161 of process_target.
4162
4163 * target.h (struct process_stratum_target): Remove the target op.
4164 (class process_target): Add the target op.
4165 (target_post_create_inferior): Update the macro.
4166 * target.cc (process_target::post_create_inferior): Define.
4167
4168 Update the derived classes and callers below.
4169
4170 * linux-low.cc (linux_target_ops): Update.
4171 (linux_post_create_inferior): Turn into ...
4172 (linux_process_target::post_create_inferior): ... this.
4173 * linux-low.h (class linux_process_target): Update.
4174 * lynx-low.cc (lynx_target_ops): Update.
4175 * nto-low.cc (nto_target_ops): Update.
4176 * win32-low.cc (win32_target_ops): Update.
4177
4178 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4179
4180 Turn process_stratum_target's create_inferior op into a method of
4181 process_target.
4182
4183 * target.h (struct process_stratum_target): Remove the target op.
4184 (class process_target): Add the target op.
4185 (create_inferior): Rename the macro to ...
4186 (target_create_inferior): ... this.
4187
4188 Update the derived classes and callers below.
4189
4190 * server.cc (handle_v_run): Update.
4191 (captured_main): Update.
4192 (process_serial_event): Update.
4193 * linux-low.cc (linux_target_ops): Update.
4194 (linux_create_inferior): Turn into ...
4195 (linux_process_target::create_inferior): ... this.
4196 * linux-low.h (class linux_process_target): Update.
4197 * lynx-low.cc (lynx_target_ops): Update.
4198 (lynx_create_inferior): Turn into ...
4199 (lynx_process_target::create_inferior): ... this.
4200 * lynx-low.h (class lynx_process_target): Update.
4201 * nto-low.cc (nto_target_ops): Update.
4202 (nto_create_inferior): Turn into ...
4203 (nto_process_target::create_inferior): ... this.
4204 * nto-low.h (class nto_process_target): Update.
4205 * win32-low.cc (win32_target_ops): Update.
4206 (win32_create_inferior): Turn into ...
4207 (win32_process_target::create_inferior): ... this.
4208 * win32-low.h (class win32_process_target): Update.
4209
4210 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4211
4212 * target.h (class process_target): New class definition.
4213 (struct process_stratum_target) <pt>: New field with type
4214 'process_target*'.
4215 * linux-low.h (class linux_process_target): Define as a derived
4216 class of 'process_target'.
4217 * linux-low.cc (linux_target_ops): Add a linux_process_target*
4218 as the 'pt' field.
4219 * lynx-low.h (class lynx_process_target): Define as a derived
4220 class of 'process_target'.
4221 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
4222 as the 'pt' field.
4223 * nto-low.h (class nto_process_target): Define as a derived
4224 class of 'process_target'.
4225 * nto-low.cc (nto_target_ops): Add an nto_process_target*
4226 as the 'pt' field.
4227 * win32-low.h (class win32_process_target): Define as a derived
4228 class of 'process_target'.
4229 * win32-low.cc (win32_target_ops): Add a win32_process_target*
4230 as the 'pt' field.
4231
4232 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
4233
4234 * configure: Regenerate.
4235
4236 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
4237 Andrew Burgess <andrew.burgess@embecosm.com>
4238
4239 * linux-riscv-low.cc: New file.
4240 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
4241 and nat/riscv-linux-tdesc.c.
4242 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
4243 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
4244 Define.
4245
4246 2020-02-14 Tom Tromey <tom@tromey.com>
4247
4248 * acinclude.m4: Don't include acx_configure_dir.m4.
4249 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
4250 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
4251 (all, install-only, uninstall, clean-info, clean)
4252 (maintainer-clean): Don't recurse.
4253 (subdir_do, all-lib): Remove.
4254 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
4255 (GNULIB_H): Remove.
4256 (generated_files): Update.
4257 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
4258 * configure: Rebuild.
4259 * configure.ac: Don't configure gnulib or libiberty.
4260 (GNULIB): Update.
4261
4262 2020-02-14 Eli Zaretskii <eliz@gnu.org>
4263
4264 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
4265 preparing the command line for CreateProcess.
4266 (win32_create_inferior): Reflect the program name in debugging
4267 output that shows the process and its command line.
4268
4269 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
4270
4271 * Makefile.in: Rename source files from .c to .cc.
4272 * %.c: Rename to %.cc.
4273 * configure.ac: Rename server.c to server.cc.
4274 * configure: Re-generate.
4275
4276 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
4277
4278 * Makefile.in: Rename gdbsupport source files from .c to .cc.
4279
4280 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
4281
4282 * win32-low.c (win32_create_inferior): Set signal_pid.
4283
4284 2020-02-12 Maciej W. Rozycki <macro@wdc.com>
4285 Pedro Alves <palves@redhat.com>
4286
4287 Skip building gdbserver in a cross-configuration.
4288 * configure.srv: Set $gdbserver_host depending on whether $target
4289 is $host. Use $gdbserver_host instead of $host.
4290
4291 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4292
4293 * configure: Re-generate.
4294
4295 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4296
4297 * configure: Re-generate.
4298
4299 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4300
4301 * acinclude.m4: Update warning.m4 path.
4302
4303 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
4304
4305 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
4306 (handle_exception): Set siginfo_er.
4307 (win32_xfer_siginfo): New function.
4308
4309 2020-02-07 Tom Tromey <tom@tromey.com>
4310 Pedro Alves <palves@redhat.com>
4311
4312 * README: Update build documentation.
4313 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
4314 host, not target.
4315 * configure.ac: Update paths.
4316 * configure: Rebuild.
4317 * acinclude.m4: Update paths.
4318 * Makefile.in: Update include paths.
4319 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
4320 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
4321 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
4322 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
4323 (%-generated.c): Update paths.
4324 * Move entire directory from ../gdb/gdbserver.
4325
4326 2020-01-29 Maciej W. Rozycki <macro@wdc.com>
4327
4328 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
4329
4330 2020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4331
4332 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
4333 assignment instead of srv_linux_obj.
4334
4335 2020-01-28 Hannes Domani <ssbssa@yahoo.de>
4336
4337 * server.c (handle_qxfer_libraries): Write segment-address with
4338 paddress.
4339
4340 2020-01-24 Hannes Domani <ssbssa@yahoo.de>
4341
4342 * Makefile.in (install-strip): New target.
4343 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
4344 * aclocal.m4: Regenerate.
4345 * configure: Regenerate.
4346 * configure.ac: Add AM_PROG_INSTALL_STRIP.
4347
4348 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
4349
4350 * Makefile.in (SFILES): Adjust paths to point to real files.
4351 (OBS): Move waitstatus.o to target/waitstatus.o.
4352 (TAGS): Transform paths appropriately.
4353 (%.o): Rename to...
4354 (nat/%.o): ... this pattern rule.
4355 (%.o): Rename to...
4356 (target/%.o): ... this pattern rule.
4357 * configure.srv: Adjust paths throughout to include nat/ prefix
4358 with the revant files.
4359 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
4360 * configure: Regenerate.
4361
4362 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
4363
4364 * Makefile.in (TAGS): Remove config files from the recipe.
4365
4366 2020-01-14 Tom Tromey <tom@tromey.com>
4367
4368 * configure: Rebuild.
4369 * configure.ac: Remove any checks that were added to common.m4.
4370 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
4371 lib-link.m4.
4372
4373 2020-01-14 Tom Tromey <tom@tromey.com>
4374
4375 * server.h: Include config.h.
4376 * gdbreplay.c: Include config.h.
4377 * configure: Rebuild.
4378 * configure.ac: Don't source common.host.
4379 * acinclude.m4: Update path.
4380 * Makefile.in (INCSUPPORT): New variable.
4381 (INCLUDE_CFLAGS): Add INCSUPPORT.
4382 (SFILES): Update paths.
4383 (version-generated.c): Update path to create-version.sh.
4384 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
4385
4386 2020-01-14 Tom Tromey <tom@tromey.com>
4387
4388 * configure.ac (LIBS): Use WIN32APILIBS.
4389 (USE_WIN32API): Don't define.
4390 * configure: Rebuild.
4391
4392 2020-01-14 Tom Tromey <tom@tromey.com>
4393
4394 * configure: Rebuild.
4395
4396 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4397
4398 * Makefile.in (%-generated.c): Remove rule for files from
4399 regformats/i386.
4400
4401 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4402
4403 * configure: Re-generate.
4404
4405 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4406
4407 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
4408 Define to static.
4409 * tracepoint.c (stop_tracing, flush_trace_buffer,
4410 about_to_request_buffer_space, get_trace_state_variable_value,
4411 set_trace_state_variable_value, gdb_collect): Add declaration.
4412
4413 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4414
4415 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
4416 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
4417 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
4418 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
4419 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
4420 static.
4421
4422 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4423
4424 * inferiors.c: Include gdbsupport/common-inferior.h.
4425
4426 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4427
4428 * hostio-errno.c: Include hostio.h.
4429
4430 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4431
4432 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
4433 prerequisite.
4434
4435 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4436
4437 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
4438 * linux-arm-tdesc.h: Include arch/arm.h.
4439
4440 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4441
4442 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
4443
4444 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4445
4446 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
4447 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
4448
4449 2020-01-10 Pedro Alves <palves@redhat.com>
4450
4451 * fork-child.c (post_fork_inferior): Pass target down to
4452 startup_inferior.
4453 * inferiors.c (switch_to_thread): Add process_stratum_target
4454 parameter.
4455 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
4456 * nto-low.c (nto_target_ops): Now a process_stratum_target.
4457 * linux-low.c (linux_target_ops): Now a process_stratum_target.
4458 * remote-utils.c (prepare_resume_reply): Pass the target to
4459 switch_to_thread.
4460 * target.c (the_target): Now a process_stratum_target.
4461 (done_accessing_memory): Pass the target to switch_to_thread.
4462 (set_target_ops): Ajust to use process_stratum_target.
4463 * target.h (struct target_ops): Rename to ...
4464 (struct process_stratum_target): ... this.
4465 (the_target, set_target_ops): Adjust.
4466 (prepare_to_access_memory): Adjust comment.
4467 * win32-low.c (child_xfer_memory): Adjust to use
4468 process_stratum_target.
4469 (win32_target_ops): Now a process_stratum_target.
4470
4471 2020-01-06 Eli Zaretskii <eliz@gnu.org>
4472 Pedro Alves <palves@redhat.com>
4473
4474 * win32-low.c (get_child_debug_event): Extract the fatal exception
4475 from the exit status and convert to the equivalent Posix signal
4476 number.
4477 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
4478 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
4479
4480 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
4481
4482 * Makefile.in: Use INSTALL_PROGRAM_ENV.
4483
4484 2020-01-01 Joel Brobecker <brobecker@adacore.com>
4485
4486 * server.c (gdbserver_version): Change copyright year to 2020.
4487 * gdbreplay.c (gdbreplay_version): Likewise.
4488
4489 2019-12-19 Christian Biesinger <cbiesinger@google.com>
4490
4491 * configure: Regenerate.
4492 * configure.ac: Quote variable arguments of test.
4493
4494 2019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
4495
4496 * Makefile.in: Fix build with GNU Make 3.81
4497
4498 2019-12-16 Tom Tromey <tromey@adacore.com>
4499
4500 * server.c (get_exec_file): Constify result.
4501
4502 2019-12-10 Christian Biesinger <cbiesinger@google.com>
4503
4504 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
4505 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
4506 * config.in: Regenerate.
4507 * configure: Regenerate.
4508 * configure.ac: Don't check for strerror.
4509 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
4510 Call safe_strerror instead of strerror.
4511 * server.h (strerror): Remove this now-unnecessary declaration.
4512 * tracepoint.c (init_named_socket): Call safe_strerror instead of
4513 strerror.
4514 (gdb_agent_helper_thread): Likewise.
4515 * utils.c (perror_with_name): Likewise.
4516
4517 2019-11-26 Tom Tromey <tom@tromey.com>
4518
4519 * configure, config.in: Rebuild.
4520
4521 2019-11-26 Tom Tromey <tom@tromey.com>
4522
4523 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
4524 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
4525 gdb_sigmask.
4526 * configure, config.in: Rebuild.
4527
4528 2019-11-26 Tom Tromey <tom@tromey.com>
4529
4530 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
4531 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
4532 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
4533 * acinclude.m4: Include ax_pthread.m4.
4534 * config.in, configure: Rebuild.
4535
4536 2019-11-26 Christian Biesinger <cbiesinger@google.com>
4537
4538 * debug.c (debug_set_output): Call safe_strerror instead of
4539 strerror.
4540 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
4541 (linux_kill_one_lwp): Likewise.
4542 (linux_detach_one_lwp): Likewise.
4543 (linux_wait_for_event_filtered): Likewise.
4544 (store_register): Likewise.
4545 * lynx-low.c (lynx_attach): Likewise.
4546 * mem-break.c (insert_memory_breakpoint): Likewise.
4547 (remove_memory_breakpoint): Likewise.
4548 (delete_fast_tracepoint_jump): Likewise.
4549 (set_fast_tracepoint_jump): Likewise.
4550 (uninsert_fast_tracepoint_jumps_at): Likewise.
4551 (reinsert_fast_tracepoint_jumps_at): Likewise.
4552 * nto-low.c (nto_xfer_memory): Likewise.
4553 (nto_resume): Likewise.
4554
4555 2019-11-20 Luis Machado <luis.machado@linaro.org>
4556
4557 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
4558 instead of register count.
4559 * tdesc.c (tdesc_contains_feature): New function.
4560 * tdesc.h (tdesc_contains_feature): New prototype.
4561
4562 2019-11-15 Christian Biesinger <cbiesinger@google.com>
4563
4564 * Makefile.in: Add safe-strerror.c.
4565 * configure: Regenerate.
4566 * configure.ac: Don't source common.host.
4567
4568 2019-11-15 Christian Biesinger <cbiesinger@google.com>
4569
4570 * config.in: Regenerate.
4571 * configure: Regenerate.
4572
4573 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
4574
4575 * ax.c (ax_printf): Handle size_t_arg.
4576
4577 2019-11-06 Christian Biesinger <cbiesinger@google.com>
4578
4579 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
4580 * mi/mi-main.c (output_cores): Likewise.
4581 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
4582 (linux_xfer_osdata_modules): Likewise.
4583 * remote.c (register_remote_support_xml): Likewise.
4584 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
4585 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
4586
4587 2019-11-01 Christian Biesinger <cbiesinger@google.com>
4588
4589 * configure: Regenerate.
4590 * configure.ac: Remove check for strerror_r.
4591
4592 2019-10-31 Christian Biesinger <cbiesinger@google.com>
4593
4594 * config.in: Regenerate.
4595 * configure: Regenerate.
4596 * configure.ac: Also check for strerror_r.
4597
4598 2019-10-31 Christian Biesinger <cbiesinger@google.com>
4599
4600 * ax.h (debug_agent): Remove duplicate declaration.
4601
4602 2019-10-26 Tom de Vries <tdevries@suse.de>
4603
4604 * linux-aarch64-low.c: Fix typos in comments.
4605 * linux-arm-low.c: Same.
4606 * linux-low.c: Same.
4607 * linux-ppc-low.c: Same.
4608 * proc-service.c: Same.
4609 * regcache.h: Same.
4610 * server.c: Same.
4611 * tracepoint.c: Same.
4612 * win32-low.c: Same.
4613
4614 2019-10-25 Tom Tromey <tromey@adacore.com>
4615
4616 * utils.c (xstrdup): Remove.
4617
4618 2019-10-23 Tom Tromey <tom@tromey.com>
4619
4620 * configure, config.in: Rebuild.
4621
4622 2019-10-23 Tom Tromey <tom@tromey.com>
4623
4624 * configure: Rebuild.
4625 * acinclude.m4: Use m4_include, not sinclude.
4626
4627 2019-10-17 Tom Tromey <tromey@adacore.com>
4628
4629 * configure: Rebuild.
4630 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
4631 in AC_CONFIG_FILES invocation.
4632 * Makefile.in (stamp-h, Makefile): Use new-style config.status
4633 invocation.
4634
4635 2019-10-16 Christian Biesinger <cbiesinger@google.com>
4636
4637 * server.c: Include xml-builtin.h.
4638 (get_xml_features): Don't declare xml_builtins here.
4639
4640 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4641
4642 * Makefile.in: Remove references to vec-ipa.o.
4643
4644 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4645
4646 * Makefile.in: Remove references to vec.c.
4647
4648 2019-10-02 Christian Biesinger <cbiesinger@google.com>
4649
4650 * server.c (server_waiting): Change to bool.
4651 (extended_protocol): Likewise.
4652 (response_needed): Likewise.
4653 (exit_requested): Likewise.
4654 (run_once): Likewise.
4655 (report_no_resumed): Likewise.
4656 (non_stop): Likewise.
4657 (disable_packet_vCont): Likewise.
4658 (disable_packet_Tthread): Likewise.
4659 (disable_packet_qC): Likewise.
4660 (disable_packet_qfThreadInfo): Likewise.
4661 (handle_general_set): Update.
4662 (handle_detach): Update.
4663 (handle_monitor_command): Update.
4664 (handle_query): Update.
4665 (captured_main): Update.
4666 (process_serial_event): Update.
4667 * server.h (server_waiting): Change to bool.
4668 (disable_packet_vCont): Likewise.
4669 (disable_packet_Tthread): Likewise.
4670 (disable_packet_qC): Likewise.
4671 (disable_packet_qfThreadInfo): Likewise.
4672 (run_once): Likewise.
4673 (non_stop): Likewise.
4674 * target.c (target_stop_and_wait): Update.
4675
4676 2019-10-02 Tom Tromey <tromey@adacore.com>
4677
4678 * Makefile.in (SFILES): Add common-inferior.c.
4679 (OBS): Add common-inferior.o.
4680 * server.c (startup_with_shell): Don't define.
4681
4682 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
4683
4684 * linux-low.c (linux_low_read_btrace): Update for change to
4685 std::vector.
4686
4687 2019-09-20 Christian Biesinger <cbiesinger@google.com>
4688
4689 * debug.c (debug_threads): Remove comment in favor of the header.
4690 * debug.h (using_threads): Add declaration.
4691 (debug_threads): Add comment.
4692 * linux-aarch64-low.c: Include debug.h and remove declaration of
4693 debug_threads.
4694 * nto-low.c: Likewise.
4695 * remote-utils.c: Likewise.
4696 * thread-db.c: Likewise.
4697
4698 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
4699
4700 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
4701 and powerpc-cell64l-ipa.o.
4702 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
4703 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
4704 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
4705 (spu*-*-*): Remove.
4706
4707 * spu-low.c: Remove file.
4708
4709 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
4710 (parse_spufs_run): Remove.
4711 (ppc_get_pc): Remove Cell/B.E. support.
4712 (ppc_set_pc): Likewise.
4713 (ppc_breakpoint_at): Likewise.
4714 (ppc_arch_setup): Likewise.
4715 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
4716 tdesc_powerpc_cell32l.
4717 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
4718 or init_registers_powerpc_cell32l.
4719 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
4720 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
4721 or init_registers_powerpc_cell32l.
4722 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
4723 (init_registers_powerpc_cell32l): Remove prototype.
4724 (init_registers_powerpc_cell64l): Likewise.
4725
4726 * target.h (struct target_ops): Remove qxfer_spu member.
4727 * server.c (handle_qxfer_spu): Remove.
4728 (qxfer_packets): Remove entry for "spu".
4729 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
4730 * linux-low.c (SPUFS_MAGIC): Remove.
4731 (spu_enumerate_spu_ids): Remove.
4732 (linux_qxfer_spu): Remove.
4733 (linux_target_ops): Remove qxfer_spu member.
4734 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
4735 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
4736 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
4737
4738 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4739
4740 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
4741 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
4742 * config.in: Regenerate.
4743 * configure: Regenerate.
4744
4745 2019-08-15 Tom Tromey <tromey@adacore.com>
4746
4747 * target.c (target_write_memory): Use gdb::byte_vector.
4748
4749 2019-08-15 Tom Tromey <tromey@adacore.com>
4750
4751 * tracepoint.c (write_inferior_data_pointer)
4752 (write_inferior_integer, write_inferior_int8)
4753 (write_inferior_uinteger, m_tracepoint_action_download)
4754 (r_tracepoint_action_download, x_tracepoint_action_download)
4755 (l_tracepoint_action_download, clear_inferior_trace_buffer)
4756 (download_agent_expr, download_tracepoint_1)
4757 (download_trace_state_variables, upload_fast_traceframes): Update.
4758 * server.c (gdb_write_memory): Update.
4759 * remote-utils.c (relocate_instruction): Update.
4760 * proc-service.c (ps_pdwrite): Update.
4761 * mem-break.c (remove_memory_breakpoint)
4762 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
4763 (uninsert_fast_tracepoint_jumps_at)
4764 (reinsert_fast_tracepoint_jumps_at): Update.
4765 * linux-x86-low.c (append_insns)
4766 (i386_install_fast_tracepoint_jump_pad)
4767 (amd64_write_goto_address, i386_write_goto_address): Update.
4768 * linux-s390-low.c (append_insns, s390_write_goto_address):
4769 Update.
4770 * linux-ppc-low.c (ppc_relocate_instruction)
4771 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
4772 (ppc_write_goto_address): Update.
4773 * linux-aarch64-low.c (append_insns): Update.
4774 * target.h (struct target_ops): Update.
4775 (write_inferior_memory): Don't declare.
4776 * target.c (target_write_memory): Rename from
4777 write_inferior_memory. Remove old target_write_memory.
4778
4779 2019-08-15 Tom Tromey <tromey@adacore.com>
4780
4781 * target.c (write_inferior_memory): Use std::vector.
4782
4783 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
4784
4785 PR build/24886
4786 * configure.ac: Drop enable-libmcheck support.
4787 * configure, config.in: Rebuild.
4788 * acinclude.m4: Don't include it.
4789
4790 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4791
4792 * configure.srv: Remove Arm xml files.
4793
4794 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4795
4796 * configure.srv: Add new files. Remove xml generated files.
4797 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
4798 registers.
4799 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
4800 * linux-aarch32-tdesc.c: New file.
4801 * linux-aarch32-tdesc.h: New file.
4802 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
4803 * linux-arm-low.c (init_registers_arm, tdesc_arm)
4804 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
4805 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
4806 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
4807 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
4808 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
4809 (arm_read_description): Call arm_linux_read_description.
4810 (initialize_low_arch): Don't init registers.
4811 * linux-arm-tdesc.c: New file.
4812 * linux-arm-tdesc.h: New file.
4813
4814 2019-07-10 Alan Hayward <alan.hayward@arm.com>
4815
4816 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
4817 Move counter inside for.
4818 (arm_read_description): Check ptrace earlier.
4819 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
4820
4821 2019-07-09 Tom Tromey <tom@tromey.com>
4822
4823 * configure: Rebuild.
4824 * configure.ac: Change common to gdbsupport.
4825 * acinclude.m4: Change common to gdbsupport.
4826 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
4827 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
4828 common to gdbsupport.
4829 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
4830 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
4831 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
4832 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
4833 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
4834 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
4835 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
4836 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
4837 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
4838 common to gdbsupport.
4839
4840 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4841
4842 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
4843 defines.
4844 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
4845
4846 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4847
4848 * configure.srv: Remove legacy xml.
4849 * linux-aarch64-low.c (initialize_low_arch): Remove
4850 initialize_low_tdesc call.
4851 * linux-aarch64-tdesc-selftest.c: Remove file.
4852 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
4853 * linux-x86-low.c (initialize_low_arch): Remove
4854 initialize_low_tdesc call.
4855 * linux-x86-tdesc-selftest.c: Remove file.
4856 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
4857
4858 2019-06-20 Tom de Vries <tdevries@suse.de>
4859
4860 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
4861 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
4862
4863 2019-06-19 Tom de Vries <tdevries@suse.de>
4864
4865 * debug.h (debug_write): Change return type to ssize_t.
4866 * debug.c (debug_write): Same.
4867
4868 2019-06-14 Tom Tromey <tom@tromey.com>
4869
4870 * configure.ac: Use new path to gnulib.
4871 * configure: Rebuild.
4872 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
4873 to gnulib.
4874
4875 2019-06-11 Tom Tromey <tom@tromey.com>
4876
4877 * Makefile.in (SFILES): Add alloc.c.
4878 (OBS): Add alloc.o.
4879 (IPA_OBJS): Add alloc-ipa.o.
4880 (alloc-ipa.o): New target.
4881 (%.o: ../%.c): New pattern rule.
4882
4883 2019-06-10 Tom Tromey <tromey@adacore.com>
4884
4885 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
4886 end warning with a newline.
4887 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
4888 newline.
4889 * thread-db.c (attach_thread): Don't end warning with a newline.
4890 (thread_db_notice_clone): Likewise.
4891 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
4892 newline.
4893 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
4894 end warning with a newline.
4895
4896 2019-06-04 Pedro Alves <palves@redhat.com>
4897
4898 * server.c (captured_main): Use make_unique_xstrdup.
4899
4900 2019-06-02 Tom Tromey <tom@tromey.com>
4901
4902 * gdbreplay.c (fromhex): Remove.
4903 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
4904
4905 2019-05-29 Tom Tromey <tromey@adacore.com>
4906
4907 * configure: Rebuild.
4908
4909 2019-05-06 Kevin Buettner <kevinb@redhat.com>
4910
4911 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
4912 sign extension code on 32-bit builds.
4913
4914 2019-05-03 Eli Zaretskii <eliz@gnu.org>
4915
4916 * remote-utils.c:
4917 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
4918
4919 2019-04-19 Tom Tromey <tom@tromey.com>
4920
4921 * server.c (struct vstop_notif): Derive from notif_event.
4922 <base>: Remove.
4923 (queue_stop_reply): Update.
4924 (remove_all_on_match_ptid): Change type. Rewrite.
4925 (discard_queued_stop_replies): Rewrite.
4926 (in_queued_stop_replies_ptid): Change type.
4927 (in_queued_stop_replies): Rewrite.
4928 (notif_stop): Update.
4929 (queue_stop_reply_callback): Update.
4930 (captured_main): Don't call initialize_notif.
4931 (push_stop_notification): Update.
4932 * notif.c (notif_write_event, handle_notif_ack)
4933 (notif_event_enque, notif_push): Update.
4934 (notif_event_xfree, initialize_notif): Remove.
4935 * notif.h (struct notif_event): Include <list>, not
4936 "common/queue.h".
4937 (struct notif_server) <queue>: Now a std::list.
4938 (notif_event_p): Remove typedef.
4939 (initialize_notif): Don't declare.
4940 (struct notif_event): Add virtual destructor.
4941
4942 2019-04-17 Alan Hayward <alan.hayward@arm.com>
4943
4944 * ax.c (ax_vdebug): Call debug_printf.
4945 * debug.c (debug_write): New function.
4946 * debug.h (debug_write): New declaration.
4947 * linux-low.c (sigchld_handler): Call debug_write.
4948
4949 2019-04-17 Alan Hayward <alan.hayward@arm.com>
4950
4951 * debug.c (debug_set_output): New function.
4952 (debug_vprintf): Send output to debug_file.
4953 (debug_flush): Likewise.
4954 * debug.h (debug_set_output): New declaration.
4955 * server.c (handle_monitor_command): Add debug-file option.
4956 (captured_main): Likewise.
4957
4958 2019-04-17 Alan Hayward <alan.hayward@arm.com>
4959
4960 * debug.c (remote_debug): Add definition.
4961 * debug.h (remote_debug): Add declaration.
4962 * hostio.c (remote_debug): Remove declaration.
4963 * remote-utils.c (struct ui_file): Likewise.
4964 (remote_debug): Likewise.
4965 * remote-utils.h (remote_debug): Likewise,
4966 * server.c (remote_debug): Remove definition.
4967
4968 2019-04-10 Kevin Buettner <kevinb@redhat.com>
4969
4970 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
4971 when using a 64-bit gdbserver.
4972
4973 2019-04-09 Tom Tromey <tromey@adacore.com>
4974
4975 * linux-low.c (select_event_lwp): Use find_thread_in_random.
4976
4977 2019-04-08 Tom Tromey <tom@tromey.com>
4978
4979 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
4980 throw.
4981 (linux_resume_one_lwp): Likewise.
4982
4983 2019-04-08 Tom Tromey <tom@tromey.com>
4984
4985 * gdbreplay.c: Update.
4986 * linux-low.c: Update.
4987 * server.c: Update.
4988
4989 2019-04-08 Tom Tromey <tom@tromey.com>
4990
4991 * server.c: Use C++ exception handling.
4992 * linux-low.c: Use C++ exception handling.
4993 * gdbreplay.c: Use C++ exception handling.
4994
4995 2019-04-08 Tom Tromey <tom@tromey.com>
4996
4997 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
4998 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
4999 (captured_main, main): Update.
5000 * gdbreplay.c (main): Update.
5001
5002 2019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5003
5004 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
5005 value in argument pointer, return 1 if the entry is found and 0
5006 otherwise. Move comment.
5007 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
5008 * linux-low.h (linux_get_auxv): Declare.
5009 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
5010
5011 2019-04-05 Tom Tromey <tromey@adacore.com>
5012
5013 * server.c (gdbserver_usage): Use upper-case for metasyntactic
5014 variables.
5015
5016 2019-03-28 Alan Hayward <alan.hayward@arm.com>
5017
5018 * linux-low.c (AT_HWCAP2): Add define if not already included.
5019
5020 2019-03-26 Alan Hayward <alan.hayward@arm.com>
5021
5022 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
5023 (aarch64_arch_setup): Call linux_get_hwcap.
5024 * linux-arm-low.c (arm_get_hwcap): Remove function.
5025 (arm_read_description): Call linux_get_hwcap.
5026 * linux-low.c (linux_get_auxv): New function.
5027 (linux_get_hwcap): Likewise.
5028 (linux_get_hwcap2): Likewise.
5029 * linux-low.h (linux_get_hwcap): New declaration.
5030 (linux_get_hwcap2): Likewise.
5031 * linux-ppc-low.c (ppc_get_auxv): Remove function.
5032 (ppc_arch_setup): Call linux_get_hwcap.
5033 * linux-s390-low.c (s390_get_hwcap): Remove function.
5034 (s390_arch_setup): Call linux_get_hwcap.
5035
5036 2019-03-22 Alan Hayward <alan.hayward@arm.com>
5037 Jiong Wang <jiong.wang@arm.com>
5038
5039 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
5040 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
5041 to fail.
5042 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
5043
5044 2019-03-22 Alan Hayward <alan.hayward@arm.com>
5045 Jiong Wang <jiong.wang@arm.com>
5046
5047 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
5048 (aarch64_get_hwcap): New function.
5049 (aarch64_arch_setup): Read APIA hwcap.
5050
5051 2019-03-22 Alan Hayward <alan.hayward@arm.com>
5052 Jiong Wang <jiong.wang@arm.com>
5053
5054 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
5055 (initialize_low_tracepoint): Likewise.
5056 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
5057 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
5058 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
5059 (aarch64_linux_read_description): Likewise.
5060 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
5061
5062 2019-03-12 John Baldwin <jhb@FreeBSD.org>
5063
5064 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
5065 i386_create_target_description for 'segments' parameter.
5066 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
5067 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
5068 * win32-i386-low.c (i386_arch_setup): Likewise.
5069
5070 2019-03-12 Tom Tromey <tromey@adacore.com>
5071
5072 * linux-low.c (iterate_over_lwps): Update.
5073
5074 2019-03-06 Tom Tromey <tom@tromey.com>
5075
5076 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
5077 (captured_main): Use SCOPE_EXIT.
5078
5079 2019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
5080
5081 * configure.srv: Use '$enable_unittest' instead of '$development'
5082 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
5083 case.
5084
5085 2019-02-27 Tom Tromey <tromey@adacore.com>
5086
5087 * gdbreplay.c (logchar): Handle \r\n.
5088
5089 2019-02-07 Alan Hayward <alan.hayward@arm.com>
5090
5091 * linux-low.c (linux_attach): Add process before lwp.
5092 * server.c (attach_inferior): Check if already attached.
5093
5094 2019-02-07 Tom Tromey <tom@tromey.com>
5095
5096 * x86-tdesc.h: Rename include guard.
5097 * x86-low.h: Add include guard.
5098 * wincecompat.h: Rename include guard.
5099 * win32-low.h: Add include guard.
5100 * utils.h: Rename include guard.
5101 * tracepoint.h: Rename include guard.
5102 * tdesc.h: Rename include guard.
5103 * target.h: Rename include guard.
5104 * server.h: Rename include guard.
5105 * remote-utils.h: Rename include guard.
5106 * regcache.h: Rename include guard.
5107 * nto-low.h: Rename include guard.
5108 * notif.h: Add include guard.
5109 * mem-break.h: Rename include guard.
5110 * lynx-low.h: Add include guard.
5111 * linux-x86-tdesc.h: Add include guard.
5112 * linux-s390-tdesc.h: Add include guard.
5113 * linux-ppc-tdesc-init.h: Add include guard.
5114 * linux-low.h: Add include guard.
5115 * linux-aarch64-tdesc.h: Add include guard.
5116 * linux-aarch32-low.h: Add include guard.
5117 * inferiors.h: Rename include guard.
5118 * i387-fp.h: Rename include guard.
5119 * hostio.h: Rename include guard.
5120 * gdbthread.h: Rename include guard.
5121 * gdb_proc_service.h: Rename include guard.
5122 * event-loop.h: Rename include guard.
5123 * dll.h: Rename include guard.
5124 * debug.h: Rename include guard.
5125 * ax.h: Rename include guard.
5126
5127 2018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
5128
5129 PR gdb/23985
5130 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
5131 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
5132
5133 2019-01-25 Tom Tromey <tom@tromey.com>
5134
5135 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
5136
5137 2019-01-25 Tom Tromey <tom@tromey.com>
5138
5139 * win32-low.c: Fix common/ includes.
5140 * win32-i386-low.c: Fix common/ includes.
5141 * tracepoint.c: Fix common/ includes.
5142 * thread-db.c: Fix common/ includes.
5143 * target.h: Fix common/ includes.
5144 * symbol.c: Fix common/ includes.
5145 * spu-low.c: Fix common/ includes.
5146 * server.h: Fix common/ includes.
5147 * server.c: Fix common/ includes.
5148 * remote-utils.c: Fix common/ includes.
5149 * regcache.h: Fix common/ includes.
5150 * regcache.c: Fix common/ includes.
5151 * nto-x86-low.c: Fix common/ includes.
5152 * notif.h: Fix common/ includes.
5153 * mem-break.h: Fix common/ includes.
5154 * lynx-low.c: Fix common/ includes.
5155 * lynx-i386-low.c: Fix common/ includes.
5156 * linux-x86-tdesc-selftest.c: Fix common/ includes.
5157 * linux-x86-low.c: Fix common/ includes.
5158 * linux-low.c: Fix common/ includes.
5159 * inferiors.h: Fix common/ includes.
5160 * i387-fp.c: Fix common/ includes.
5161 * hostio.c: Fix common/ includes.
5162 * hostio-errno.c: Fix common/ includes.
5163 * gdbthread.h: Fix common/ includes.
5164 * gdbreplay.c: Fix common/ includes.
5165 * fork-child.c: Fix common/ includes.
5166 * event-loop.c: Fix common/ includes.
5167 * ax.c:
5168 (enum gdb_agent_op): Fix common/ includes.
5169
5170 2019-01-21 Tom Tromey <tom@tromey.com>
5171
5172 * tracepoint.c: Fix includes.
5173 * remote-utils.c: Fix includes.
5174 * linux-x86-low.c: Fix includes.
5175
5176 2019-01-01 Joel Brobecker <brobecker@adacore.com>
5177
5178 * gdbreplay.c (gdbreplay_version): Update copyright year in
5179 version message.
5180 * server.c (gdbserver_version): Likewise.
5181
5182 2018-12-05 Alan Hayward <alan.hayward@arm.com>
5183
5184 * linux-low.c (add_lwp): Switch ordering.
5185
5186 2018-11-29 Tom Tromey <tom@tromey.com>
5187
5188 * win32-low.c (win32_join): Take pid, not process.
5189 * target.h (struct target_ops) <join>: Change argument type.
5190 (join_inferior): Change argument name.
5191 * spu-low.c (spu_join): Take pid, not process.
5192 * server.c (handle_detach): Preserve pid before destroying
5193 process.
5194 * lynx-low.c (lynx_join): Take pid, not process.
5195 * linux-low.c (linux_join): Take pid, not process.
5196
5197 2018-11-23 Alan Hayward <alan.hayward@arm.com>
5198
5199 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
5200 (aarch64_cannot_fetch_register): Likewise.
5201 (struct linux_target_ops): Update references.
5202
5203 2018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5204
5205 * linux-ppc-low.c: Include nat/linux-ptrace.h.
5206
5207 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5208
5209 * configure.srv (ipa_ppc_linux_regobj): Add
5210 powerpc-isa207-htm-vsx32l-ipa.o and
5211 powerpc-isa207-htm-vsx64l-ipa.o.
5212 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
5213 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
5214 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
5215 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
5216 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
5217 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
5218 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
5219 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
5220 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5221 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
5222 (init_registers_powerpc_isa207_htm_vsx32l)
5223 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
5224 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
5225 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
5226 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
5227 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
5228 (ppc_store_tm_ctarregset): New functions.
5229 (ppc_regsets): Add entries for HTM regsets.
5230 (ppc_arch_setup): Set htm in features struct when needed. Set
5231 sizes for the HTM regsets.
5232 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
5233 (initialize_low_arch): Call
5234 init_registers_powerpc_isa207_htm_vsx32l and
5235 init_registers_powerpc_isa207_htm_vsx64l.
5236 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5237 PPC_TDESC_ISA207_HTM_VSX.
5238 (initialize_low_tracepoint): Call
5239 init_registers_powerpc_isa207_htm_vsx32l and
5240 init_registers_powerpc_isa207_htm_vsx64l.
5241
5242 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5243
5244 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
5245 rs6000/power-linux-pmu.xml to srv_xmlfiles.
5246 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
5247 (ppc_store_pmuregset): New functions.
5248 (ppc_regsets): Add entries for ebb and pmu regsets.
5249 (ppc_arch_setup): Set isa207 in features struct if the ebb and
5250 pmu regsets are available. Set sizes for these regsets.
5251
5252 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5253
5254 * configure.srv (ipa_ppc_linux_regobj): Add
5255 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
5256 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
5257 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
5258 rs6000/powerpc-isa207-vsx32l.xml, and
5259 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
5260 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5261 <PPC_TDESC_ISA207_VSX>: New enum value.
5262 (init_registers_powerpc_isa207_vsx32l): Declare.
5263 (init_registers_powerpc_isa207_vsx64l): Declare.
5264 * linux-ppc-low.c (ppc_fill_tarregset): New function.
5265 (ppc_store_tarregset): New function.
5266 (ppc_regsets): Add entry for the TAR regset.
5267 (ppc_arch_setup): Set isa207 in features struct when needed. Set
5268 size for the TAR regsets.
5269 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
5270 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
5271 and init_registers_powerpc_isa207_vsx64l.
5272 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
5273 (initialize_low_tracepoint): Call
5274 init_registers_powerpc_isa207_vsx32l and
5275 init_registers_powerpc_isa207_vsx64l.
5276
5277 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5278 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5279
5280 * configure.srv (ipa_ppc_linux_regobj): Add
5281 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
5282 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
5283 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
5284 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
5285 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
5286 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
5287 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
5288 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5289 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
5290 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
5291 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
5292 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
5293 (ppc_hwcap): Add comment.
5294 (ppc_hwcap2): New global.
5295 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
5296 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
5297 (ppc_regsets): Add entries for the DSCR and PPR regsets.
5298 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
5299 when needed. Set sizes for the the DSCR and PPR regsets.
5300 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
5301 (initialize_low_arch): Call
5302 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5303 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5304 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5305 PPC_TDESC_ISA205_PPR_DSCR_VSX.
5306 (initialize_low_tracepoint): Call
5307 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5308 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5309
5310 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5311
5312 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
5313
5314 2018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
5315 Simon Marchi <simark@simark.ca>
5316
5317 * acinclude.m4: Include "../selftest.m4".
5318 * configure: Regenerate.
5319 * configure.ac: Use "GDB_AC_SELFTEST".
5320 * configure.srv: Use "$enable_unittests" instead of
5321 "$development" when checking whether unit tests have been
5322 enabled.
5323 * server.c (captured_main): Update message informing that
5324 selftests have been disabled.
5325
5326 2018-10-04 Tom Tromey <tom@tromey.com>
5327
5328 * configure: Rebuild.
5329
5330 2018-10-04 Tom Tromey <tom@tromey.com>
5331
5332 * server.c (handle_status): Rename inner "thread".
5333 (process_serial_event): Declare "res" in 'm' case.
5334 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
5335 (iterate_over_lwps): Rename inner "thread".
5336 (linux_qxfer_libraries_svr4): Rename inner "len".
5337 * gdbthread.h (find_thread_in_random): Rename inner "thread".
5338
5339 2018-10-01 Gary Benson <gbenson@redhat.com>
5340
5341 * gdb_proc_service.h: Moved common code to
5342 common/gdb_proc_service.h.
5343
5344 2018-10-01 Gary Benson <gbenson@redhat.com>
5345
5346 * gdb_proc_service.h: Synchronize comments and whitespace with
5347 GDB's version of this file.
5348
5349 2018-09-25 Tom Tromey <tom@tromey.com>
5350
5351 * configure: Rebuild.
5352 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
5353
5354 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5355
5356 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
5357 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
5358 ($(IPA_LIB)): Sort IPA_OBJS.
5359
5360 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5361
5362 * Makefile.in: Remove references to $(ADD_DEPS).
5363
5364 2018-09-16 Tom Tromey <tom@tromey.com>
5365
5366 * remote-utils.c (remote_open): Use GNU style for metasyntactic
5367 variables.
5368 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
5369 variables.
5370
5371 2018-09-05 Tom Tromey <tom@tromey.com>
5372
5373 * configure: Rebuild.
5374
5375 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
5376
5377 PR build/23399
5378 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
5379
5380 2018-08-27 Tom Tromey <tom@tromey.com>
5381
5382 PR build/23087:
5383 * configure: Rebuild.
5384
5385 2018-08-27 Tom Tromey <tom@tromey.com>
5386
5387 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
5388 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
5389 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
5390 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
5391 (s390x_emit_stack_adjust): Add casts to unsigned char.
5392
5393 2018-08-22 Simon Marchi <simon.marchi@ericsson.com>
5394
5395 PR gdb/23374
5396 PR gdb/23375
5397 * server.h (struct client_state) <disable_randomization>:
5398 Initialize to 1.
5399
5400 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5401
5402 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
5403 variable.
5404 (mips_supply_ptrace_register): Likewise.
5405
5406 2018-07-22 Tom Tromey <tom@tromey.com>
5407
5408 * configure: Rebuild.
5409
5410 2018-07-22 Tom Tromey <tom@tromey.com>
5411
5412 * win32-low.c (win32_create_inferior): Remove unused variables.
5413 * gdbreplay.c (remote_open): Remove unused variable.
5414 * remote-utils.c (remote_prepare): Remove unused variable.
5415 * x86-tdesc.h (X86_TDESC_H): Define.
5416 (amd64_expedite_regs): Define conditionally.
5417 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
5418 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
5419 * remote-utils.c (readchar): Remove unused variable.
5420
5421 2018-07-13 Pedro Alves <palves@redhat.com>
5422
5423 * linux-low.c (linux_kill): Change parameter to process_info
5424 pointer instead of pid. Adjust.
5425 * lynx-low.c (lynx_kill): Likewise.
5426 * nto-low.c (nto_kill): Likewise.
5427 * spu-low.c (spu_kill): Likewise.
5428 * win32-low.c (win32_kill): Likewise.
5429 * server.c (handle_v_kill, kill_inferior_callback)
5430 (detach_or_kill_for_exit): Adjust.
5431 * target.c (kill_inferior): Change parameter to process_info
5432 pointer instead of pid. Adjust.
5433 * target.h (struct target_ops) <kill>: Change parameter to
5434 process_info pointer instead of pid. Adjust all implementations
5435 and callers.
5436 (kill_inferior): Likewise.
5437
5438 2018-07-13 Pedro Alves <palves@redhat.com>
5439
5440 * linux-low.c (linux_detach, linux_join): Change parameter to
5441 process_info pointer instead of pid. Adjust.
5442 * lynx-low.c (lynx_detach, lynx_join): Likewise.
5443 * nto-low.c (nto_detach): Likewise.
5444 * spu-low.c (spu_detach, spu_join): Likewise.
5445 * win32-low.c (win32_detach, win32_join): Likewise.
5446 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
5447 * target.h (struct target_ops) <detach, join>: Change parameter to
5448 process_info pointer instead of pid. Adjust all implementations
5449 and callers.
5450 (detach_inferior, join_inferior): Rename 'pid' parameter to
5451 'proc'.
5452
5453 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
5454 Jan Kratochvil <jan.kratochvil@redhat.com>
5455 Paul Fertser <fercerpav@gmail.com>
5456 Tsutomu Seki <sekiriki@gmail.com>
5457
5458 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
5459 (OBS): Add 'common/netstuff.o'.
5460 (GDBREPLAY_OBS): Likewise.
5461 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
5462 (remote_open): Implement support for IPv6
5463 connections.
5464 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
5465 and 'wspiapi.h'.
5466 (handle_accept_event): Accept connections from IPv6 sources.
5467 (remote_prepare): Handle IPv6-style hostnames; implement
5468 support for IPv6 connections.
5469 (remote_open): Implement support for printing connections from
5470 IPv6 sources.
5471
5472 2018-07-11 Pedro Alves <palves@redhat.com>
5473
5474 PR gdb/23377
5475 * mem-break.c (any_persistent_commands): Add process_info
5476 parameter and use it instead of relying on the current process.
5477 Change return type to bool.
5478 * mem-break.h (any_persistent_commands): Add process_info
5479 parameter and change return type to bool.
5480 * server.c (handle_detach): Remove require_running_or_return call.
5481 Look up the process_info for the process we're about to detach.
5482 If not found, return back error to GDB. Adjust
5483 any_persistent_commands call to pass down a process pointer.
5484
5485 2018-07-11 Pedro Alves <palves@redhat.com>
5486
5487 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
5488 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
5489 instead of collect_register_by_name.
5490 * regcache.c (regcache_raw_get_unsigned_by_name): New.
5491 * regcache.h (regcache_raw_get_unsigned_by_name): New.
5492
5493 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
5494 Pedro Alves <palves@redhat.com>
5495
5496 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
5497
5498 2018-07-03 Tom Tromey <tom@tromey.com>
5499
5500 * linux-low.c: Update.
5501 * lynx-low.c: Update.
5502 * mem-break.c: Update.
5503 * nto-low.c: Update.
5504 * remote-utils.c: Update.
5505 * server.c: Update.
5506 * spu-low.c: Update.
5507 * target.c: Update.
5508 * win32-low.c: Update.
5509
5510 2018-07-03 Tom Tromey <tom@tromey.com>
5511
5512 * server.c: Update.
5513
5514 2018-07-03 Tom Tromey <tom@tromey.com>
5515
5516 * linux-low.c: Update.
5517
5518 2018-07-03 Tom Tromey <tom@tromey.com>
5519
5520 * target.c: Update.
5521
5522 2018-07-03 Tom Tromey <tom@tromey.com>
5523
5524 * linux-low.c: Update.
5525 * linux-mips-low.c: Update.
5526 * lynx-low.c: Update.
5527 * nto-low.c: Update.
5528 * remote-utils.c: Update.
5529 * server.c: Update.
5530 * spu-low.c: Update.
5531 * target.c: Update.
5532 * thread-db.c: Update.
5533
5534 2018-07-03 Tom Tromey <tom@tromey.com>
5535
5536 * linux-low.c: Update.
5537 * linux-mips-low.c: Update.
5538 * lynx-low.c: Update.
5539 * mem-break.c: Update.
5540 * nto-low.c: Update.
5541 * remote-utils.c: Update.
5542 * server.c: Update.
5543 * spu-low.c: Update.
5544 * target.c: Update.
5545 * tracepoint.c: Update.
5546
5547 2018-07-03 Tom Tromey <tom@tromey.com>
5548
5549 * linux-low.c: Update.
5550 * linux-ppc-low.c: Update.
5551 * linux-x86-low.c: Update.
5552 * proc-service.c: Update.
5553 * server.c: Update.
5554 * spu-low.c: Update.
5555 * thread-db.c: Update.
5556 * win32-low.c: Update.
5557
5558 2018-07-03 Tom Tromey <tom@tromey.com>
5559
5560 * linux-low.c: Update.
5561 * lynx-low.c: Update.
5562 * nto-low.c: Update.
5563 * remote-utils.c: Update.
5564 * spu-low.c: Update.
5565 * thread-db.c: Update.
5566 * win32-low.c: Update.
5567
5568 2018-06-29 Joel Brobecker <brobecker@adacore.com>
5569
5570 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
5571 parameter in call to 'amd64_create_target_description'.
5572
5573 2018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5574
5575 * x86-tdesc.h: Remove executable permission flag.
5576
5577 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5578
5579 * configure.ac: Remove AC_PREREQ, add missing quoting.
5580 * configure: Re-generate.
5581 * config.in: Re-generate.
5582 * aclocal.m4: Re-generate.
5583
5584 2018-06-18 Simon Marchi <simon.marchi@ericsson.com>
5585
5586 * tracepoint.h (current_traceframe): Remove declaration.
5587
5588 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5589
5590 * linux-aarch64-low.c (is_sve_tdesc): New function.
5591 (aarch64_sve_regs_copy_to_regcache): Likewise.
5592 (aarch64_sve_regs_copy_from_regcache): Likewise.
5593 (aarch64_regs_info): Add SVE checks.
5594 (initialize_low_arch): Initialize SVE.
5595
5596 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5597
5598 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
5599
5600 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5601
5602 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
5603 (initialize_low_tracepoint): Likewise
5604 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
5605 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
5606 param.
5607 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
5608 checks.
5609 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
5610
5611 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5612
5613 * server.h (PBUFSIZ): Increase size
5614
5615 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5616
5617 * regcache.c (regcache::raw_compare): New function.
5618 * regcache.h (regcache::raw_compare): New declaration.
5619
5620 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5621
5622 * regcache.c (new_register_cache): Use new.
5623 (free_register_cache): Use delete.
5624 (register_data): Use const.
5625 (supply_register): Move body inside regcache.
5626 (regcache::raw_supply): New override function.
5627 (collect_register): Move body inside regcache.
5628 (regcache::raw_collect): New override function.
5629 (regcache::get_register_status): New override function.
5630 * regcache.h (struct regcache): Inherit from reg_buffer_common.
5631
5632 2018-06-09 Tom Tromey <tom@tromey.com>
5633
5634 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
5635 declare queue.
5636 (event_queue): Use std::queue.
5637 (gdb_event_xfree): Remove.
5638 (initialize_event_loop, process_event, wait_for_event): Update.
5639
5640 2018-06-08 Stan Cox <scox@redhat.com>
5641
5642 * win32-low.c (win32_create_inferior): last_ptid and last_status
5643 moved to client_state.
5644
5645 2018-06-08 Pedro Alves <palves@redhat.com>
5646
5647 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
5648 common/common-exceptions.o, common/common-utils.o,
5649 common/errors.o, common/print-utils.o and utils.o.
5650 * gdbreplay.c: Include "common-defs.h" instead of the two
5651 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
5652 string.h or alloca.h.
5653 (perror_with_name): Delete.
5654 (remote_open): Use xstrdup instead of strdup.
5655 (main): Rename to ...
5656 (captured_main): ... this.
5657 (main): New.
5658
5659 2018-06-08 Tom Tromey <tom@tromey.com>
5660
5661 * linux-low.c (linux_low_read_btrace): Update.
5662
5663 2018-06-04 Stan Cox <scox@redhat.com>
5664
5665 * server.h (struct client_state): New.
5666 * server.c (cont_thread, general_thread, multi_process)
5667 (report_fork_events, report_vfork_events, report_exec_events)
5668 (report_thread_events, swbreak_feature, hwbreak_feature)
5669 (vCont_supported, disable_randomization, pass_signals)
5670 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
5671 Moved to client_state.
5672 * remote-utils.c (remote_debug, noack_mode)
5673 (transport_is_reliable): Moved to client_state.
5674 * tracepoint.c (current_traceframe): Moved to client_state.
5675
5676 Update all callers.
5677 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
5678 linux-low.c, remote-utils.h, target.c: Use client_state.
5679
5680 2018-05-31 Alan Hayward <alan.hayward@arm.com>
5681
5682 * configure.srv: Add new c/h file.
5683
5684 2018-05-31 Alan Hayward <alan.hayward@arm.com>
5685
5686 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
5687 null VQ.
5688
5689 2018-05-25 Maciej W. Rozycki <macro@mips.com>
5690
5691 * gdb.arch/mips-fpregset-core.exp: New test.
5692 * gdb.arch/mips-fpregset-core.c: New test source.
5693
5694 2018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
5695
5696 PR server/23198
5697 * hostio.c (require_int): Do not report overflow for integers
5698 between 0xfffffff and 0x7fffffff.
5699
5700 2018-05-22 Maciej W. Rozycki <macro@mips.com>
5701
5702 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
5703 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
5704 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
5705 functions.
5706 (the_low_target): Wire them.
5707
5708 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5709
5710 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
5711 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
5712 mode. Call collect_register_by_name with vscr using
5713 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
5714 (ppc_store_vrregset): Add and set vscr_offset variable as in
5715 ppc_fill_vrregset. Call supply_register_by_name with vscr using
5716 vscr_offset.
5717
5718 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5719
5720 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
5721 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
5722 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
5723
5724 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5725
5726 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
5727 (ppc_store_vsxregset): Likewise.
5728 (ppc_fill_vrregset): Likewise.
5729 (ppc_store_vrregset): Likewise.
5730 (ppc_fill_evrregset): Likewise.
5731 (ppc_store_evrregset): Likewise.
5732 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
5733 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
5734 needed.
5735
5736 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5737
5738 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
5739 wordsize of the inferior. Call ppc_linux_target_wordsize.
5740
5741 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5742
5743 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
5744 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
5745 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
5746 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
5747 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
5748 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
5749 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
5750 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
5751 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
5752 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
5753 (tdesc_powerpc_e500l): Remove.
5754 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
5755 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
5756 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
5757 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
5758 linux-ppc-tdesc.h.
5759 (ppc_arch_setup): Remove target description matching code. Fill a
5760 ppc_linux_features struct and call ppc_linux_match_description
5761 with it.
5762
5763 2018-05-22 Maciej W. Rozycki <macro@mips.com>
5764
5765 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
5766 width of the requested register exceeds the width of the
5767 `ptrace' data type.
5768 (mips_cannot_store_register): Likewise.
5769
5770 2018-05-21 Maciej W. Rozycki <macro@mips.com>
5771
5772 * linux-mips-low.c (mips_fetch_register): New function. Update
5773 preceding comment.
5774 (mips_store_gregset): Supply 0 rather than $restart for $zero.
5775 (the_low_target): Wire `mips_fetch_register'.
5776
5777 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5778
5779 * lynx-i386-low.c (LYNXOS_178): New macro.
5780 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
5781 the layout on LynxOS-178.
5782 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
5783 handle floating point registers that are not supported by
5784 LynxOS-178.
5785
5786 2018-05-10 Tom Tromey <tom@tromey.com>
5787
5788 * configure: Rebuild.
5789
5790 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5791
5792 PR server/23158:
5793 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
5794 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
5795 Use it to set the expedite_regs field in the given tdesc.
5796 * x86-tdesc.h: New file.
5797 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
5798 Adjust following the addition of the new expedite_regs parameter
5799 to init_target_desc.
5800 * linux-tic6x-low.c (tic6x_read_description): Likewise.
5801 * linux-x86-tdesc.c: #include "x86-tdesc.h".
5802 (i386_linux_read_description, amd64_linux_read_description):
5803 Adjust following the addition of the new expedite_regs parameter
5804 to init_target_desc.
5805 * lynx-i386-low.c: #include "x86-tdesc.h".
5806 (lynx_i386_arch_setup): Adjust following the addition of the new
5807 expedite_regs parameter to init_target_desc.
5808 * nto-x86-low.c: #include "x86-tdesc.h".
5809 (nto_x86_arch_setup): Adjust following the addition of the new
5810 expedite_regs parameter to init_target_desc.
5811 * win32-i386-low.c: #include "x86-tdesc.h".
5812 (i386_arch_setup): Adjust following the addition of the new
5813 expedite_regs parameter to init_target_desc.
5814
5815 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5816
5817 PR server/23158:
5818 * win32-low.c (win32_create_inferior): Add call to my_wait
5819 setting last_status global.
5820
5821 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5822
5823 PR server/23158:
5824 * win32-low.c (create_process): Only call gdb_tilde_expand if
5825 inferior_cwd is not NULL.
5826
5827 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
5828
5829 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
5830 registers to the cache if their values have changed.
5831 (i387_xsave_to_cache): Provide default values for x87 control
5832 registers when these features are available, but disabled.
5833 * regcache.c (supply_register_by_name_zeroed): New function.
5834 * regcache.h (supply_register_by_name_zeroed): Declare new
5835 function.
5836
5837 2018-05-07 Tom Tromey <tom@tromey.com>
5838
5839 * configure: Rebuild.
5840
5841 2018-05-04 Tom Tromey <tom@tromey.com>
5842
5843 * configure: Rebuild.
5844
5845 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5846 Pedro Alves <palves@redhat.com>
5847
5848 * linux-aarch64-low.c (aarch64_stopped_data_address):
5849 Likewise.
5850
5851 2018-04-27 Tom Tromey <tom@tromey.com>
5852
5853 * configure: Rebuild.
5854
5855 2018-04-23 Tom Tromey <tom@tromey.com>
5856
5857 * configure: Rebuild.
5858
5859 2018-04-19 Simon Marchi <simon.marchi@ericsson.com>
5860
5861 * Makefile.in (depcomp): Add "..".
5862 (all_deps_files): New and use it.
5863
5864 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5865
5866 * configure.srv (aarch64*-*-linux*): Don't include xml.
5867 (i[34567]86-*-cygwin*): Likewise.
5868 (i[34567]86-*-linux*): Likewise.
5869 (i[34567]86-*-lynxos*): Likewise.
5870 (i[34567]86-*-mingw32ce*): Likewise.
5871 (i[34567]86-*-mingw*): Likewise.
5872 (i[34567]86-*-nto*): Likewise.
5873 (tic6x-*-uclinux): Likewise.
5874 (x86_64-*-linux*): Likewise.
5875 (x86_64-*-mingw*): Likewise.
5876 (x86_64-*-cygwin*): Likewise.
5877
5878 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5879
5880 * tdesc.c: Remove xml parameter.
5881
5882 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5883
5884 * server.c (get_features_xml): Remove cast.
5885 * tdesc.c (void target_desc::accept): Fill in function.
5886 (tdesc_get_features_xml): Remove old xml creation.
5887 (print_xml_feature::visit_pre): Add xml vistor.
5888 * tdesc.h (struct target_desc): Make xmltarget mutable.
5889 (tdesc_get_features_xml): Remove declaration.
5890
5891 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5892
5893 * tdesc.c (tdesc_architecture_name): Add new function.
5894 (tdesc_osabi_name): Likewise.
5895 (tdesc_get_features_xml): Use new functions.
5896
5897 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5898
5899 * tdesc.c (tdesc_create_flags): Remove.
5900 (tdesc_add_flag): Likewise.
5901 (tdesc_named_type): Likewise.
5902 (tdesc_create_union): Likewise.
5903 (tdesc_create_struct): Likewise.
5904 (tdesc_create_vector): Likewise.
5905 (tdesc_add_bitfield): Likewise.
5906 (tdesc_add_field): Likewise.
5907 (tdesc_set_struct_size): Likewise.
5908
5909 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5910
5911 * tdesc.c (~target_desc): Remove implictly deleted items.
5912 (init_target_desc): Iterate all features.
5913 (tdesc_get_features_xml): Use vector.
5914 (tdesc_create_feature): Create feature.
5915 * tdesc.h (tdesc_feature) Remove
5916 (target_desc): Add features.
5917
5918 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5919
5920 * Makefile.in: Add common/tdesc.c
5921 * tdesc.c (init_target_desc): init all reg_defs from register
5922 vector.
5923 (tdesc_create_reg): Create tdesc_reg.
5924 * tdesc.h (tdesc_feature): Add register vector.
5925
5926 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
5927
5928 * tdesc.h (struct target_desc) <features>: Change type to
5929 std::vector<std::string>.
5930 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
5931 changes.
5932 (tdesc_get_features_xml): Likewise.
5933 (tdesc_create_feature): Likewise.
5934
5935 2018-03-26 Alan Hayward <alan.hayward@arm.com>
5936
5937 * regcache.c (find_register_by_number): Return a ref.
5938 (find_regno): Use references.
5939 (register_size): Likewise.
5940 (register_data): Likewise.
5941 * tdesc.c (target_desc::~target_desc): Remove free calls.
5942 (target_desc::operator==): Use std::vector compare.
5943 (init_target_desc): Use reference.
5944 (tdesc_create_reg): Use reg constructors.
5945 * tdesc.h (struct target_desc): Replace pointer with object.
5946
5947 2018-03-23 Alan Hayward <alan.hayward@arm.com>
5948
5949 * regcache.c (find_register_by_number): Make static.
5950 (find_regno): Use find_register_by_number
5951 * regcache.h (struct reg): Remove declaration.
5952
5953 2018-03-23 Alan Hayward <alan.hayward@arm.com>
5954
5955 * tdesc.c (target_desc::~target_desc): Move to here.
5956 (target_desc::operator==): Likewise.
5957 * tdesc.h (target_desc::~target_desc): Move from here.
5958 (target_desc::operator==): Likewise.
5959
5960 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
5961
5962 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
5963
5964 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5965
5966 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
5967 S390_TDESC_GS.
5968 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
5969 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
5970 and init_registers_s390_gs_linux64.
5971
5972 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5973
5974 * linux-s390-low.c (s390_fill_gs): Remove function.
5975 (s390_fill_gsbc): Remove function.
5976 (s390_regsets): Set fill functions for the guarded storage regsets
5977 to NULL.
5978
5979 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5980
5981 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
5982 the word size. Add comment.
5983 (s390_get_wordsize): New function.
5984 (s390_arch_setup): No longer select a temporary tdesc to fetch the
5985 pswm with it. Instead, use s390_get_wordsize to determine the
5986 word size first and derive the correct tdesc from that directly.
5987
5988 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
5989
5990 * Makefile.in: Include silent-rules.mk.
5991 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
5992 (COMPILE): Add ECHO_CXX.
5993 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
5994 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
5995 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
5996 (version-generated.c): Add ECHO_GEN.
5997 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
5998 (IPAGENT_COMPILE): Add ECHO_CXX.
5999 (%-generated.c): Add ECHO_REGDAT.
6000
6001 2018-03-14 Tom Tromey <tom@tromey.com>
6002
6003 PR cli/14977:
6004 * ax.c (ax_printf): Special case for NULL.
6005
6006 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
6007
6008 * linux-low.c (linux_qxfer_libraries_svr4): Use
6009 xml_escape_text_append.
6010
6011 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
6012
6013 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
6014
6015 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
6016
6017 * server.c (handle_general_set): Remove unnecessary xstrdup.
6018
6019 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
6020
6021 * server.c (parse_debug_format_options): Adjust to
6022 delim_string_to_char_ptr_vec changes.
6023 * thread-db.c (thread_db_load_search): Adjust to
6024 dirnames_to_char_ptr_vec changes.
6025
6026 2018-03-01 Markus Metzger <markus.t.metzger@intel.com>
6027
6028 * target.h (target_enable_btrace, target_disable_btrace)
6029 (target_read_btrace, target_read_btrace_conf): Turn macro into
6030 inline function. Throw error if target method is not defined.
6031 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
6032 check for btrace target method. Be prepared to handle exceptions
6033 from btrace target methods.
6034
6035 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6036
6037 * server.c (captured_main): Change order of error message printed
6038 when the current working directory cannot be found.
6039
6040 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6041
6042 * server.c: Include "filenames.h" and "pathstuff.h".
6043 (program_name): Delete variable.
6044 (program_path): New anonymous class.
6045 (get_exec_wrapper): Use "program_path" instead of
6046 "program_name".
6047 (handle_v_run): Likewise.
6048 (captured_main): Likewise.
6049 (process_serial_event): Likewise.
6050
6051 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6052
6053 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
6054 (OBJS): Add "pathstuff.o".
6055 * server.c (current_directory): New global variable.
6056 (captured_main): Initialize "current_directory".
6057
6058 2018-02-26 Alan Hayward <alan.hayward@arm.com>
6059
6060 * tdesc.c: Use common/tdesc.h.
6061 * tdesc.h: Likewise.
6062
6063 2018-02-20 Alan Hayward <alan.hayward@arm.com>
6064 Simon Marchi <simon.marchi@ericsson.com>
6065
6066 * Makefile.in: Switch order of make rules.
6067
6068 2018-02-19 Alan Hayward <alan.hayward@arm.com>
6069
6070 * Makefile.in: Add common directory in build.
6071 * configure.ac: Add common reference.
6072 * configure: Regenerate.
6073
6074 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6075
6076 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
6077 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
6078 * spu-low.c (spu_target_ops): Likewise.
6079 * win32-low.c (win32_target_ops): Likewise.
6080 * server.c (supported_btrace_packets): Report packets unconditionally.
6081 * target.h (target_ops) <supports_btrace>: Remove.
6082 (target_supports_btrace): Remove.
6083
6084 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6085
6086 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
6087 (handle_btrace_disable): Change return type to void. Use exceptions
6088 to report errors.
6089 (handle_btrace_general_set): Catch exception and copy message to
6090 return message.
6091
6092 2018-02-08 Tom Tromey <tom@tromey.com>
6093
6094 * linux-low.c (install_software_single_step_breakpoints): Use
6095 make_scoped_restore.
6096 * inferiors.c (make_cleanup_restore_current_thread): Remove.
6097 (do_restore_current_thread_cleanup): Remove.
6098 * gdbthread.h (make_cleanup_restore_current_thread): Don't
6099 declare.
6100
6101 2018-02-08 Tom Tromey <tom@tromey.com>
6102
6103 * mem-break.c (set_raw_breakpoint_at): Use
6104 gdb::unique_xmalloc_ptr.
6105
6106 2018-01-30 Pedro Alves <palves@redhat.com>
6107
6108 PR gdb/13211
6109 * target.c (target_terminal::terminal_state): Rename to ...
6110 (target_terminal::m_terminal_state): ... this.
6111
6112 2018-01-19 James Clarke <jrtc27@jrtc27.com>
6113
6114 * linux-low.c (handle_extended_wait): Surround call to
6115 thread_db_notice_clone with #ifdef USE_THREAD_DB.
6116
6117 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
6118
6119 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
6120 linux_ptrace_attach_fail_reason_string now returning an
6121 std::string.
6122 (linux_attach): Likewise.
6123 * thread-db.c (attach_thread): Likewise.
6124
6125 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
6126
6127 PR gdb/21559
6128 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
6129 checking for fs_base/gs_base fields in struct user_regs_struct.
6130 * configure: Regenerate.
6131
6132 2018-01-16 Yao Qi <yao.qi@linaro.org>
6133
6134 PR gdb/18749
6135 * linux-low.c (fetch_register): Call supply_register instead of
6136 error.
6137
6138 2018-01-08 Yao Qi <yao.qi@linaro.org>
6139 Simon Marchi <simon.marchi@ericsson.com>
6140
6141 * Makefile.in (OBS): Remove selftest.o.
6142 * configure.ac: Set srv_selftest_objs if $development is true.
6143 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
6144 * configure: Re-generated.
6145 * server.c (captured_main): Wrap variable selftest_filter with
6146 GDB_SELF_TEST.
6147
6148 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
6149
6150 * server.c (parse_debug_format_options): Return std::string.
6151 (handle_monitor_command, captured_main): Adjust.
6152
6153 2018-01-05 Pedro Alves <palves@redhat.com>
6154
6155 PR gdb/18653
6156 * server.c (captured_main): Pass quiet=false to
6157 save_original_signals_state.
6158
6159 2018-01-01 Joel Brobecker <brobecker@adacore.com>
6160
6161 * gdbreplay.c (gdbreplay_version): Update copyright year in
6162 version message.
6163 * server.c (gdbserver_version): Likewise.
6164
6165 2017-12-08 Tom Tromey <tom@tromey.com>
6166
6167 * ax.c (ax_printf): Update.
6168
6169 2017-12-07 Yao Qi <yao.qi@linaro.org>
6170
6171 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
6172 aarch64_linux_read_description.
6173 * linux-amd64-ipa.c (idx2mask): New array.
6174 (get_ipa_tdesc): Move idx2mask out.
6175 (initialize_low_tracepoint): Initialize target descriptions.
6176 * linux-i386-ipa.c (idx2mask): New array.
6177 (get_ipa_tdesc): Move idx2mask out.
6178 (initialize_low_tracepoint): Initialize target descriptions.
6179
6180 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
6181
6182 * tdesc.c (struct tdesc_type): Change return type.
6183 (tdesc_add_flag): Change parameter type.
6184 (tdesc_add_bitfield): Likewise.
6185 (tdesc_add_field): Likewise.
6186 (tdesc_set_struct_size): Likewise.
6187
6188 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
6189
6190 * regcache.c (registers_to_string): Remove unused variable.
6191
6192 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6193
6194 * inferiors.c (for_each_inferior_with_data): Remove.
6195 * inferiors.h (for_each_inferior_with_data): Remove.
6196 * server.c (handle_qxfer_threads_worker): Change parameter type.
6197 (handle_qxfer_threads_proper): Use for_each_thread.
6198
6199 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6200
6201 * inferiors.c (for_each_inferior): Remove.
6202 (clear_inferiors): Use for_each_thread.
6203 * inferiors.h (for_each_inferior): Remove.
6204 * linux-low.c (linux_wait_for_event_filtered): Use
6205 for_each_thread.
6206 (linux_stabilize_threads): Likewise.
6207 * regcache.c (regcache_release): Likewise.
6208 * server.c (gdb_wants_all_threads_stopped): Likewise.
6209 (clear_pending_status_callback): Remove.
6210 (handle_status): Use for_each_thread.
6211 (captured_main): Likewise.
6212 * win32-low.c (child_init_thread_list): Likewise.
6213 (win32_clear_inferiors): Likewise.
6214 (fake_breakpoint_event): Likewise.
6215
6216 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6217
6218 * inferiors.h (find_inferior): Remove.
6219 * inferiors.c (find_inferior): Remove.
6220
6221 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6222
6223 * linux-low.c (resume_status_pending_p): Update comment.
6224 (need_step_over_p): Update comment.
6225
6226 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6227
6228 * linux-low.c (proceed_one_lwp): Return void, change parameter
6229 type.
6230 (unsuspend_and_proceed_one_lwp): Likewise.
6231 (proceed_all_lwps): Use for_each_thread.
6232 (unstop_all_lwps): Likewise.
6233
6234 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6235
6236 * linux-low.c (linux_resume_one_thread): Return void, take
6237 parameter directly.
6238 (linux_resume): Use for_each_thread.
6239
6240 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6241
6242 * linux-low.c (send_sigstop_callback): Return void, change
6243 parameter type. Rename to...
6244 (send_sigstop): ... this.
6245 (suspend_and_send_sigstop_callback): Return void, change parameter
6246 type. Rename to...
6247 (suspend_and_send_sigstop): ... this.
6248 (stop_all_lwps): Use for_each_thread.
6249
6250 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6251
6252 * linux-low.c (lwp_running): Return bool, remove unused
6253 argument.
6254 (linux_stabilize_threads): Use find_thread.
6255
6256 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6257
6258 * linux-low.c (select_singlestep_lwp_callback): Remove.
6259 (count_events_callback): Remove.
6260 (select_event_lwp_callback): Remove.
6261 (select_event_lwp): Use find_thread/for_each_thread.
6262
6263 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6264
6265 * linux-low.c (not_stopped_callback): Return bool, take filter
6266 argument directly.
6267 (linux_wait_for_event_filtered): Use find_thread.
6268 (linux_wait_1): Likewise.
6269
6270 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6271
6272 * linux-low.c (same_lwp): Remove.
6273 (find_lwp_pid): Use find_thread.
6274
6275 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6276
6277 * linux-low.c (delete_lwp_callback): Remove.
6278 (linux_mourn): Use for_each_thread.
6279
6280 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6281
6282 * linux-low.c (linux_detach_lwp_callback): Return void, remove
6283 args parameter, don't check for pid.
6284 (linux_detach): Use for_each_thread.
6285
6286 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6287
6288 * linux-low.c (struct counter): Remove.
6289 (second_thread_of_pid_p): Remove.
6290 (last_thread_of_process_p): Use find_thread.
6291
6292 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6293
6294 * inferiors.c (find_inferior_in_random): Remove.
6295 * inferiors.h (find_inferior_in_random): Remove.
6296 * linux-low.c (status_pending_p_callback): Return bool, accept
6297 parameter ptid directly.
6298 (linux_wait_for_event_filtered): Use find_thread_in_random.
6299 (linux_wait_1): Likewise.
6300
6301 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6302
6303 * inferiors.c (find_inferior_id): Remove.
6304 (find_thread_ptid): Move implemention from find_inferior_id to
6305 here.
6306 * inferiors.h (find_inferior_id): Remove.
6307 * server.c (handle_status): Use find_thread_ptid.
6308 (process_serial_event): Likewise.
6309 * thread-db.c (find_one_thread): Likewise.
6310 (thread_db_thread_handle): Likewise.
6311 * win32-low.c (thread_rec): Likewise.
6312 (child_delete_thread): Likewise.
6313 (win32_thread_alive): Likewise.
6314 (get_child_debug_event): Likewise.
6315
6316 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6317
6318 * linux-mips-low.c (update_watch_registers_callback): Return
6319 void, remove pid_p parameter, don't check for pid.
6320 (mips_insert_point, mips_remove_point): Use for_each_thread.
6321
6322 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6323
6324 * lynx.low (lynx_delete_thread_callback): Remove.
6325 (lynx_mourn): Use for_each_thread.
6326
6327 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6328
6329 * regcache.c (regcache_invalidate_one): Remove.
6330 (regcache_invalidate_pid): use for_each_thread.
6331
6332 2017-11-26 Tom Tromey <tom@tromey.com>
6333
6334 * linux-low.c (linux_create_inferior): Update.
6335
6336 2017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
6337
6338 * spu-low.c (spu_create_inferior): Fix typo in argument name.
6339
6340 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6341
6342 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
6343 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6344 * linux-aarch64-tdesc-selftest.c: New file.
6345 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6346
6347 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6348
6349 * configure.srv: Add new file.
6350 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6351 * linux-aarch64-tdesc-selftest.c: New file.
6352 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6353
6354 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6355
6356 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
6357 * linux-aarch64-low.c (initialize_low_arch): Remove init.
6358 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
6359
6360 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6361
6362 * configure.srv: Add new files.
6363 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
6364 aarch64_linux_read_description.
6365 * linux-aarch64-low.c (aarch64_linux_read_description):
6366 Merge with aarch64_arch_setup.
6367 (aarch64_arch_setup): Call aarch64_linux_read_description.
6368 * linux-aarch64-tdesc.c: New file.
6369 * linux-aarch64-tdesc.h: New file.
6370
6371 2017-11-24 Yao Qi <yao.qi@linaro.org>
6372
6373 * configure.srv: Set $srv_regobj for tic6x-linux.
6374 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
6375 (tic6x_read_description): Move some code to tic6x_arch_setup.
6376 (tic6x_tdesc_test): New function.
6377 (initialize_low_arch): Call selftests::register_test.
6378
6379 2017-11-22 Yao Qi <yao.qi@linaro.org>
6380
6381 * remote-utils.c (prepare_resume_reply): Use memcpy.
6382
6383 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6384
6385 * linux-low.c (kill_one_lwp_callback): Return void, take
6386 argument directly, don't filter on pid.
6387 (linux_kill): Use for_each_thread.
6388
6389 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6390
6391 * linux-low.c (need_step_over_p): Return bool, remove dummy
6392 argument.
6393 (linux_resume, proceed_all_lwps): Use find_thread.
6394
6395 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6396
6397 * linux-low.c (resume_status_pending_p): Return bool, remove
6398 flag_p argument.
6399 (linux_resume): Use find_thread.
6400
6401 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6402
6403 * linux-low.c (struct thread_resume_array): Remove.
6404 (linux_set_resume_request): Return void, take arguments
6405 directly.
6406 (linux_resume): Use for_each_thread.
6407
6408 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6409
6410 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
6411 return bool, remove data argument.
6412 (linux_stabilize_threads): Use find_thread.
6413
6414 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6415
6416 * linux-low.c (unsuspend_one_lwp): Remove.
6417 (unsuspend_all_lwps): Use for_each_thread, inline code from
6418 unsuspend_one_lwp.
6419
6420 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6421
6422 * gdbthread.h (find_thread): Add overload with ptid_t filter.
6423 * linux-low.c (struct iterate_over_lwps_args): Remove.
6424 (iterate_over_lwps_filter): Remove.
6425 (iterate_over_lwps): Use find_thread.
6426
6427 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6428
6429 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
6430 (linux_handle_new_gdb_connection): Use for_each_thread, inline
6431 code from reset_lwp_ptrace_options_callback.
6432
6433 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6434
6435 * linux-arm-low.c (struct update_registers_data): Remove.
6436 (update_registers_callback): Return void, take arguments
6437 directly, don't check thread's pid.
6438 (arm_insert_point, arm_remove_point): Use for_each_thread.
6439
6440 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6441
6442 * win32-low.c (continue_one_thread): Return void, take argument
6443 directly.
6444 (child_continue): Use for_each_thread.
6445
6446 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6447
6448 * win32-i386-low.c (update_debug_registers_callback): Rename
6449 to ...
6450 (update_debug_registers): ... this, return void, remove pid_p arg.
6451 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
6452
6453 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
6454
6455 * inferiors.h (struct process_info): Add constructor, initialize
6456 fields..
6457 <syscalls_to_catch>: Change type to std::vector<int>.
6458 * inferiors.c (add_process): Allocate process_info with new.
6459 (remove_process): Free process_info with delete.
6460 * linux-low.c (handle_extended_wait): Adjust.
6461 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
6462 * server.c (handle_general_set): Adjust.
6463
6464 2017-11-16 Pedro Alves <palves@redhat.com>
6465
6466 * remote-utils.c (remote_close): Block SIGIO signals instead of
6467 uninstalling the SIGIO handler.
6468
6469 2017-11-16 Alan Hayward <alan.hayward@arm.com>
6470
6471 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
6472
6473 2017-11-16 Yao Qi <yao.qi@linaro.org>
6474
6475 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
6476 (tic6x_store_gregset): Likewise.
6477 (tic6x_usrregs_info): Move it up.
6478
6479 2017-11-15 Alan Hayward <alan.hayward@arm.com>
6480
6481 * Makefile.in: Update arch rules.
6482 * configure.srv: Explicitly mark arch/ files.
6483
6484 2017-11-13 Andreas Schwab <schwab@suse.de>
6485
6486 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
6487 function.
6488 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6489
6490 2017-11-06 Pedro Alves <palves@redhat.com>
6491
6492 * config.in, configure: Regenerate.
6493
6494 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6495
6496 * target.c (struct thread_search): Remove.
6497 (thread_search_callback): Remove.
6498 (prepare_to_access_memory): Use for_each_thread instead of
6499 find_inferior. Inline code from thread_search_callback.
6500
6501 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6502
6503 * server.c (struct visit_actioned_threads_data): Remove.
6504 (visit_actioned_threads): Change prototype to take arguments
6505 directly.
6506 (resume): Use find_thread instead of find_inferior.
6507
6508 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6509
6510 * server.c (queue_stop_reply_callback): Change prototype, return
6511 void.
6512 (find_status_pending_thread_callback): Remove.
6513 (handle_status): Replace find_inferior with find_thread and
6514 for_each_thread.
6515
6516 2017-10-25 Alan Hayward <alan.hayward@arm.com>
6517
6518 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
6519 with REGNO.
6520 (aarch64_store_gregset): Likewise.
6521 (aarch64_fill_fpregset): Likewise.
6522 (aarch64_store_fpregset): Likewise.
6523
6524 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
6525
6526 * gdbthread.h (find_thread, for_each_thread): New functions.
6527 * inferiors.c (thread_of_pid): Remove.
6528 (find_any_thread_of_pid): Use find_thread.
6529 * linux-low.c (num_lwps): Use for_each_thread.
6530
6531 2017-10-17 Yao Qi <yao.qi@linaro.org>
6532
6533 * Makefile.in: Remove one rule.
6534 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
6535
6536 2017-10-17 Yao Qi <yao.qi@linaro.org>
6537
6538 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
6539 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
6540
6541 2017-10-17 Yao Qi <yao.qi@linaro.org>
6542
6543 * configure.srv: Rename arm.o with arch/arm.o.
6544
6545 2017-10-17 Yao Qi <yao.qi@linaro.org>
6546
6547 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
6548 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
6549 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
6550 (arch-i386.o, arch-amd64.o): Remove rules.
6551 (arch/%.o): New rule.
6552 Update POSTCOMPILE and COMPILE.pre.
6553 * configure.ac: Invoke AC_CONFIG_COMMANDS.
6554 * configure: Re-generated.
6555 * configure.srv: Replace arch-i386.o with arch/i386.o.
6556 Replace arch-amd64.o with arch/amd64.o.
6557
6558 2017-10-16 Yao Qi <yao.qi@linaro.org>
6559
6560 * configure: Regenerated.
6561
6562 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6563
6564 * inferiors.h: (struct inferior_list): Remove.
6565 (struct inferior_list_entry); Remove.
6566 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
6567 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
6568 get_first_inferior): Remove.
6569 (for_each_inferior, for_each_inferior_with_data, find_inferior,
6570 find_inferior_id, find_inferior_in_random): Change signature.
6571 * inferiors.c (all_threads): Change type to
6572 std::list<thread_info *>.
6573 (get_thread): Remove macro.
6574 (find_inferior, find_inferior_id): Change signature, implement
6575 using find_thread.
6576 (find_inferior_in_random): Change signature, implement using
6577 find_thread_in_random.
6578 (for_each_inferior, for_each_inferior_with_data): Change
6579 signature, implement using for_each_thread.
6580 (add_inferior_to_list, remove_inferior): Remove.
6581 (add_thread, get_first_thread, thread_of_pid,
6582 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
6583 (get_first_inferior, one_inferior_p, clear_inferior_list):
6584 Remove.
6585 (clear_inferiors, get_thread_process): Update.
6586 * gdbthread.h: Include <list>.
6587 (struct thread_info) <entry>: Remove field.
6588 <id>: New field.
6589 (all_threads): Change type to std::list<thread_info *>.
6590 (get_first_inferior): Add doc.
6591 (find_thread, for_each_thread, find_thread_in_random): New
6592 functions.
6593 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
6594 * linux-arm-low.c (update_registers_callback): Update.
6595 * linux-low.c (second_thread_of_pid_p): Update.
6596 (kill_one_lwp_callback, linux_detach_lwp_callback,
6597 delete_lwp_callback, status_pending_p_callback, same_lwp,
6598 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
6599 iterate_over_lwps, not_stopped_callback,
6600 resume_stopped_resumed_lwps, count_events_callback,
6601 select_singlestep_lwp_callback, select_event_lwp_callback,
6602 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
6603 suspend_and_send_sigstop_callback, wait_for_sigstop,
6604 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
6605 lwp_running, linux_set_resume_request, resume_status_pending_p,
6606 need_step_over_p, start_step_over, linux_resume_one_thread,
6607 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
6608 reset_lwp_ptrace_options_callback): Update.
6609 * linux-mips-low.c (update_watch_registers_callback): Update.
6610 * regcache.c (regcache_invalidate_one, regcache_invalidate):
6611 Update.
6612 (free_register_cache_thread_one): Remove.
6613 (regcache_release): Update.
6614 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
6615 handle_qxfer_threads_worker): Update.
6616 (handle_query): Update, use list iterator.
6617 (visit_actioned_threads, handle_pending_status,
6618 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
6619 clear_pending_status_callback, set_pending_status_callback,
6620 find_status_pending_thread_callback, handle_status,
6621 process_serial_event): Update.
6622 * target.c (thread_search_callback): Update.
6623 * thread-db.c (thread_db_get_tls_address): Update.
6624 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
6625 Update.
6626 * win32-i386-low.c (update_debug_registers_callback): Update.
6627 * win32-low.c (delete_thread_info, child_delete_thread,
6628 continue_one_thread, suspend_one_thread,
6629 get_child_debug_event): Adjust.
6630
6631 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6632
6633 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
6634 * inferiors.h: Include <list>.
6635 (struct process_info) <entry>: Remove field.
6636 <pid>: New field.
6637 (pid_of): Change macro to function.
6638 (ptid_of, lwpid_of): Remove macro.
6639 (all_processes): Change type to std::list<process_info *>.
6640 (ALL_PROCESSES): Remove macro.
6641 (for_each_process, find_process): New function.
6642 * inferiors.c (all_processes): Change type to
6643 std::list<process_info *>.
6644 (find_thread_process): Adjust.
6645 (add_process): Likewise.
6646 (remove_process): Likewise.
6647 (find_process_pid): Likewise.
6648 (get_first_process): Likewise.
6649 (started_inferior_callback): Remove.
6650 (have_started_inferiors_p): Adjust.
6651 (attached_inferior_callback): Remove.
6652 (have_attached_inferiors_p): Adjust.
6653 * linux-low.c (check_zombie_leaders): Likewise.
6654 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
6655 (x86_linux_update_xmltarget): Adjust.
6656 * server.c (handle_query): Likewise.
6657 (gdb_reattached_process): Remove.
6658 (handle_status): Adjust.
6659 (kill_inferior_callback): Likewise.
6660 (detach_or_kill_inferior): Remove.
6661 (print_started_pid): Likewise.
6662 (print_attached_pid): Likewise.
6663 (detach_or_kill_for_exit): Update.
6664 (process_serial_event): Likewise.
6665 * linux-arm-low.c (arm_new_fork): Likewise.
6666
6667 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6668
6669 * dll.h: Include <list>.
6670 (struct dll_info): Add constructor.
6671 <entry>: Remove field.
6672 (all_dlls): Change type to std::list<dll_info>.
6673 * dll.c: Include <algorithm>.
6674 (get_dll): Remove macro.
6675 (all_dlls): Change type to std::list<dll_info *>.
6676 (free_one_dll): Remove.
6677 (match_dll): Likewise.
6678 (loaded_dll): Adjust.
6679 (unloaded_dll): Adjust to all_dlls type change, use
6680 std::find_if. Inline code from match_dll.
6681 (clear_dlls): Adjust to all_dlls type change.
6682 * server.c (emit_dll_description): Remove.
6683 (handle_qxfer_libraries): Adjust to all_dlls type change,
6684 integrate emit_dll_description's functionality.
6685
6686 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6687
6688 * linux-low.h (struct linux_target_ops) <delete_process>: New
6689 field.
6690 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
6691 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
6692 (struct linux_target_ops): Add delete_process callback.
6693 * linux-arm-low.c (arm_delete_process): New.
6694 (struct linux_target_ops): Add delete_process callback.
6695 * linux-bfin-low.c (struct linux_target_ops): Likewise.
6696 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
6697 * linux-m32r-low.c (struct linux_target_ops): Likewise.
6698 * linux-mips-low.c (mips_linux_delete_process): New.
6699 (struct linux_target_ops): Add delete_process callback.
6700 * linux-ppc-low.c (struct linux_target_ops): Likewise.
6701 * linux-s390-low.c (struct linux_target_ops): Likewise.
6702 * linux-sh-low.c (struct linux_target_ops): Likewise.
6703 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
6704 * linux-tile-low.c (struct linux_target_ops): Likewise.
6705 * linux-x86-low.c (x86_linux_delete_process): New.
6706 (struct linux_target_ops): Add delete_process callback.
6707 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
6708
6709 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6710
6711 * linux-aarch64-low.c (the_low_target): Add thread delete
6712 callback.
6713 * linux-arm-low.c (arm_delete_thread): New function.
6714 (the_low_target): Add thread delete callback.
6715 * linux-bfin-low.c (the_low_target): Likewise.
6716 * linux-crisv32-low.c (the_low_target): Likewise.
6717 * linux-low.c (delete_lwp): Invoke delete_thread callback if
6718 set.
6719 * linux-low.h (struct linux_target_ops) <delete_thread>: New
6720 field.
6721 * linux-m32r-low.c (the_low_target): Add thread delete callback.
6722 * linux-mips-low.c (mips_linux_delete_thread): New function.
6723 (the_low_target): Add thread delete callback.
6724 * linux-ppc-low.c (the_low_target): Likewise.
6725 * linux-s390-low.c (the_low_target): Likewise.
6726 * linux-sh-low.c (the_low_target): Likewise.
6727 * linux-tic6x-low.c (the_low_target): Likewise.
6728 * linux-tile-low.c (the_low_target): Likewise.
6729 * linux-x86-low.c (the_low_target): Likewise.
6730 * linux-xtensa-low.c (the_low_target): Likewise.
6731
6732 2017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
6733
6734 * win32-low.c: Include "common-inferior.h".
6735
6736 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6737
6738 * inferiors.c (set_inferior_cwd): New function.
6739 * server.c (handle_general_set): Handle QSetWorkingDir packet.
6740 (handle_query): Inform that QSetWorkingDir is supported.
6741 * win32-low.c (create_process): Pass the inferior's cwd to
6742 CreateProcess.
6743
6744 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6745
6746 * inferiors.c (current_inferior_cwd): New global variable.
6747 (get_inferior_cwd): New function.
6748 * inferiors.h (struct process_info) <cwd>: New field.
6749
6750 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6751
6752 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
6753 (OBS): Add gdb_tilde_expand.o.
6754
6755 2017-10-02 Simon Marchi <simon.marchi@ericsson.com>
6756
6757 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
6758 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
6759
6760 2017-09-29 Pedro Alves <palves@redhat.com>
6761
6762 * ax.c (gdb_parse_agent_expr): Constify.
6763 * ax.h (gdb_parse_agent_expr): Constify.
6764 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
6765 Constify.
6766 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
6767 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
6768 * remote-utils.h (read_ptid): Constify.
6769 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
6770 (process_point_options, process_serial_event): Constify.
6771 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
6772 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
6773 (cmd_qtbuffer): Constify.
6774
6775 2017-09-29 Pedro Alves <palves@redhat.com>
6776
6777 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
6778 fails.
6779
6780 2017-09-29 Pedro Alves <palves@redhat.com>
6781
6782 * linux-low.c (handle_extended_wait): Pass parent thread instead
6783 of process to thread_db_notice_clone.
6784 * linux-low.h (thread_db_notice_clone): Replace parent process
6785 parameter with parent thread parameter.
6786 * thread-db.c (find_one_thread): Add comment.
6787 (thread_db_notice_clone): Replace parent process parameter with
6788 parent thread parameter. Temporarily switch to the parent thread.
6789
6790 2017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
6791
6792 * gdbthread.h: Include "common-gdbthread.h".
6793 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
6794 "if" when validating the ptid.
6795 * remote-utils.c: Include "gdbthread.h".
6796 (prepare_resume_reply): Use "switch_to_thread".
6797 * target.c (done_accessing_memory): Likewise.
6798
6799 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6800
6801 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
6802 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
6803 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
6804 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
6805 s390x-gs-linux64-ipa.o to ipa_obj.
6806 * linux-s390-low.c (HWCAP_S390_GS): New define.
6807 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
6808 New functions.
6809 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
6810 (s390_arch_setup): Check for guarded-storage support and choose
6811 appropriate tdesc.
6812 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
6813 init_registers_s390x_gs_linux64.
6814 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
6815 enum value.
6816 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
6817 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
6818
6819 2017-09-22 Simon Marchi <simon.marchi@ericsson.com>
6820
6821 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
6822
6823 2017-09-21 Kevin Buettner <kevinb@redhat.com>
6824
6825 * linux-low.h (struct lwp_info): Add new field, thread_handle.
6826 (thread_db_thread_handle): Declare.
6827 * linux-low.c (linux_target_ops): Initialize thread_handle.
6828 * server.c (handle_qxfer_threads_worker): Add support for
6829 "handle" attribute.
6830 * target.h (struct target_ops): Add new function pointer,
6831 thread_handle.
6832 (target_thread_handle): Define.
6833 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
6834 field in lwp.
6835 (thread_db_thread_handle): New function.
6836
6837 2017-09-21 Kevin Buettner <kevinb@redhat.com>
6838
6839 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
6840 * linux-low.h (thread_db_notice_clone): Declare.
6841 * thread-db.c (thread_db_notice_clone): New function.
6842
6843 2017-09-21 Pedro Alves <palves@redhat.com>
6844
6845 * server.c (gdb_read_memory, handle_status, process_serial_event)
6846 (handle_serial_event, handle_target_event): Adjust to
6847 set_desired_thread prototype change.
6848 * target.c (set_desired_thread): Remove 'use_general' parameter
6849 and adjust.
6850 * target.h (set_desired_thread): Remove 'use_general' parameter.
6851
6852 2017-09-20 Tom Tromey <tom@tromey.com>
6853
6854 * target.c (target_terminal::terminal_state): Define.
6855 (target_terminal::init): Rename from target_terminal_init.
6856 (target_terminal::inferior): Rename from
6857 target_terminal_inferior.
6858 (target_terminal::ours): Rename from target_terminal_ours.
6859 (target_terminal::ours_for_output, target_terminal::info): New.
6860
6861 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6862
6863 * server.c (accumulate_file_name_length): Remove.
6864 (emit_dll_description): Adjust to std::string change.
6865 (handle_qxfer_libraries): Use std::string to hold document.
6866
6867 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6868
6869 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
6870 return type of xml_escape_text.
6871 * server.c (emit_dll_description): Likewise.
6872
6873 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6874
6875 * server.c (captured_main): Accept argument for --selftest.
6876 Update run_tests call.
6877 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
6878 when registering selftests.
6879
6880 2017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
6881
6882 * regcache.c (get_thread_regcache): Update code to use "std::vector"
6883 instead of "VEC" for "target_desc.reg_defs".
6884 (regcache_cpy): Likewise.
6885 (registers_to_string): Likewise.
6886 (registers_from_string): Likewise.
6887 (find_regno): Likewise.
6888 (supply_regblock): Likewise.
6889 (regcache_raw_read_unsigned): Likewise.
6890 * tdesc.c (init_target_desc): Likewise.
6891 (tdesc_create_reg): Likewise.
6892 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
6893 (struct target_desc) <reg_defs>: Convert to "std::vector".
6894 (target_desc): Do not initialize "reg_defs".
6895 (~target_desc): Update code to use "std::vector" instead of "VEC"
6896 for "target_desc.reg_defs".
6897 (operator==): Likewise.
6898
6899 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6900
6901 * inferiors.h (thread_to_gdb_id): Remove.
6902 * inferiors.c (thread_to_gdb_id): Remove.
6903 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
6904 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
6905 lynx_store_registers, lynx_read_memory, lynx_write_memory):
6906 Likewise.
6907 * nto-low.c (nto_fetch_registers, nto_store_registers,
6908 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
6909
6910 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6911
6912 * inferiors.h (gdb_id_to_thread_id): Remove.
6913 * inferiors.c (gdb_id_to_thread_id): Remove.
6914 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
6915 removal. Move pid declaration closer to where it's used.
6916
6917 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6918
6919 * server.c (handle_detach): New function.
6920 (process_serial_event): Move code out, call handle_detach.
6921
6922 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6923
6924 * server.c (require_running): Rename to ...
6925 (require_running_or_return): ... this ...
6926 (require_running_or_break): ... and this.
6927 (handle_query, process_serial_event): Adjust.
6928
6929 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6930
6931 * linux-low.c (linux_set_resume_request): Remove unused
6932 variables.
6933
6934 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6935
6936 * server.c (first_thread_of): Remove.
6937 (process_serial_event): Replace usage of first_thread_of with
6938 find_any_thread_of_pid.
6939 * tracepoint.c (same_process_p): Remove.
6940 (gdb_agent_about_to_close): Replace usage of same_process_p with
6941 find_any_thread_of_pid.
6942 * linux-x86-low.c (same_process_callback): Remove.
6943 (x86_arch_setup_process_callback): Replace usage of
6944 same_process_callback with find_any_thread_of_pid.
6945 * thread-db.c (any_thread_of): Remove.
6946 (switch_to_process): Replace usage of any_thread_of with
6947 find_any_thread_of_pid.
6948 * inferiors.c (thread_pid_matches_callback): Remove.
6949 (find_thread_process): Adjust to use find_any_thread_of_pid.
6950
6951 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6952
6953 * regcache.c (get_thread_regcache): Guard calls to "memset"
6954 with "!VEC_empty".
6955
6956 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6957
6958 * linux-low.c (handle_extended_wait): Use
6959 "allocate_target_description" instead of "XNEW".
6960 * linux-x86-low.c (initialize_low_arch): Likewise.
6961
6962 2017-09-05 Yao Qi <yao.qi@linaro.org>
6963
6964 * configure.srv (srv_i386_regobj): Remove.
6965 (srv_amd64_regobj): Remove.
6966 (srv_regobj): Set it to "" for x86 non-linux targets.
6967 * linux-x86-tdesc.c (i386_linux_read_description):
6968 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
6969 (init_registers_i386): Remove the declaration.
6970 (tdesc_i386): Remove the declaration.
6971 (lynx_i386_arch_setup): Call i386_create_target_description.
6972 * nto-x86-low.c: Likewise.
6973 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
6974 [!__x86_64__]: include arch/i386.h.
6975 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
6976
6977 2017-09-05 Yao Qi <yao.qi@linaro.org>
6978
6979 * configure.srv (srv_amd64_linux_xmlfiles): Remove
6980 i386/amd64-XXX-linux from it.
6981
6982 2017-09-05 Yao Qi <yao.qi@linaro.org>
6983
6984 * configure.srv: Empty srv_amd64_linux_regobj if $development is
6985 false.
6986 (ipa_amd64_linux_regobj): Remove.
6987 (ipa_x32_linux_regobj): Remove.
6988
6989 2017-09-05 Yao Qi <yao.qi@linaro.org>
6990
6991 * Makefile.in (arch-amd64.o): New rule.
6992 * configure.srv: Append arch-amd64.o.
6993 * linux-amd64-ipa.c: Include common/x86-xstate.h.
6994 (get_ipa_tdesc): Call amd64_linux_read_description.
6995 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
6996 and init_registers_amd64_XXX.
6997 * linux-x86-low.c (x86_linux_read_description): Call
6998 amd64_linux_read_description.
6999 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
7000 (initialize_low_arch): Don't call init_registers_x32_XXX and
7001 init_registers_amd64_XXX.
7002 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
7003 and tdesc_amd64_XXX.
7004 [__x86_64__] (amd64_tdesc_test): New function.
7005 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
7006 and init_registers_amd64_XXX.
7007 * linux-x86-tdesc.c: Include arch/amd64.h.
7008 (xcr0_to_tdesc_idx): New function.
7009 (i386_linux_read_description): New function.
7010 (amd64_get_ipa_tdesc_idx): New function.
7011 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
7012 (amd64_get_ipa_tdesc): Declare.
7013
7014 2017-09-05 Yao Qi <yao.qi@linaro.org>
7015
7016 * configure.srv (srv_i386_linux_xmlfiles): Remove
7017 i386/i386-XXX-linux.xml from it.
7018
7019 2017-09-05 Yao Qi <yao.qi@linaro.org>
7020
7021 * configure.srv: Set srv_i386_linux_regobj empty if $development
7022 is false.
7023 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
7024 initialize_low_tdesc.
7025 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
7026 with #if initialize_low_tdesc.
7027 * linux-x86-tdesc-selftest.c: New file.
7028 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
7029
7030 2017-09-05 Yao Qi <yao.qi@linaro.org>
7031
7032 * Makefile.in (arch-i386.o): New rule.
7033 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
7034 (x86_64-*-linux*): Likewise.
7035 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
7036 include arch/i386.h.
7037 (i386_linux_read_description): Remove code and call
7038 i386_create_target_description.
7039 * tdesc.c (allocate_target_description): New function.
7040 * tdesc.h (set_tdesc_architecture): Remove declaration.
7041 (set_tdesc_osabi): Likewise.
7042
7043 2017-09-05 Yao Qi <yao.qi@linaro.org>
7044
7045 * linux-x86-tdesc.c: Don't include <inttypes.h>.
7046 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
7047 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
7048 .xmltarget.
7049 * server.c (get_features_xml): Call tdesc_get_features_xml.
7050 * tdesc.c (set_tdesc_architecture): New function.
7051 (set_tdesc_osabi): New function.
7052 (tdesc_get_features_xml): New function.
7053 (tdesc_create_feature): Add an argument.
7054 * tdesc.h (struct target_desc) <features>: New field.
7055 <arch, osabi>: New field.
7056 (~target_desc): xfree features, arch, and osabi.
7057 (target_desc::oerator==): Don't compare .xmltarget.
7058 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
7059 (set_tdesc_osabi): Likewise.
7060 (tdesc_get_features_xml): Likewise.
7061
7062 2017-09-05 Yao Qi <yao.qi@linaro.org>
7063
7064 * linux-x86-tdesc.c: Include selftest.h.
7065 (i386_tdesc_test): New function.
7066 (initialize_low_tdesc): Call selftests::register_test.
7067 * tdesc.h: Include regdef.h.
7068 (target_desc): Override operator == and !=.
7069
7070 2017-09-05 Yao Qi <yao.qi@linaro.org>
7071
7072 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
7073 (ipa_obj): Likewise.
7074 * linux-i386-ipa.c: Include common/x86-xstate.h
7075 (get_ipa_tdesc): Call i386_linux_read_description.
7076 (initialize_low_tracepoint): Don't call init_registers_XXX
7077 functions, call initialize_low_tdesc instead.
7078 * linux-x86-low.c (x86_linux_read_description): Call
7079 i386_linux_read_description.
7080 (initialize_low_arch): Don't call init_registers_i386_XXX
7081 functions, call initialize_low_tdesc.
7082 * linux-x86-tdesc.c: New file.
7083 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
7084 (i386_get_ipa_tdesc_idx): Declare.
7085 (i386_get_ipa_tdesc): Declare.
7086 (initialize_low_tdesc): Declare.
7087
7088 2017-09-05 Yao Qi <yao.qi@linaro.org>
7089
7090 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
7091 instead of 0.
7092
7093 2017-09-05 Yao Qi <yao.qi@linaro.org>
7094
7095 * Makefile.in (IPA_OBJS): Add vec-ipa.o
7096 * regcache.c (get_thread_regcache): Use VEC_length.
7097 (init_register_cache): Likewise.
7098 (regcache_cpy): Likewise.
7099 (registers_to_string): Iterate reg_defs via VEC_iterate.
7100 (find_regno): Likewise.
7101 (find_register_by_number): Use VEC_index.
7102 (register_size): Call find_register_by_number.
7103 (register_data): Call find_register_by_number.
7104 (supply_regblock): Use VEC_length.
7105 (regcache_raw_read_unsigned): Likewise.
7106 * tdesc.c (init_target_desc): Iterate reg_defs via
7107 VEC_iterate.
7108 (default_description): Update initializer.
7109 (copy_target_description): Don't update field num_registers.
7110 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
7111 <num_registers>: Remove.
7112
7113 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
7114
7115 * Makefile.in (.SECONDARY): Define target.
7116
7117 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
7118
7119 * linux-low.c (linux_wait_1): Adjust.
7120 * server.c (queue_stop_reply_callback): Adjust.
7121
7122 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
7123
7124 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
7125 QEnvironmentUnset and QEnvironmentReset packets.
7126 (handle_query): Inform remote that QEnvironmentHexEncoded,
7127 QEnvironmentUnset and QEnvironmentReset are supported.
7128
7129 2017-08-25 Simon Marchi <simon.marchi@ericsson.com>
7130
7131 * inferiors.h (inferior_target_data): Rename to ...
7132 (thread_target_data): ... this.
7133 (inferior_regcache_data): Rename to ...
7134 (thread_regcache_data): ... this.
7135 (set_inferior_regcache_data): Rename to ...
7136 (set_thread_regcache_data): ... this.
7137 * inferiors.c (inferior_target_data): Rename to ...
7138 (thread_target_data): ... this.
7139 (inferior_regcache_data): Rename to ...
7140 (thread_regcache_data): ... this.
7141 (set_inferior_regcache_data): Rename to ...
7142 (set_thread_regcache_data): ... this.
7143 (free_one_thread): Update.
7144 * linux-low.h (get_thread_lwp): Update.
7145 * regcache.c (get_thread_regcache): Update.
7146 (regcache_invalidate_thread): Update.
7147 (free_register_cache_thread): Update.
7148 * win32-i386-low.c (update_debug_registers_callback): Update.
7149 (win32_get_current_dr): Update.
7150 * win32-low.c (thread_rec): Update.
7151 (delete_thread_info): Update.
7152 (continue_one_thread): Update.
7153 (suspend_one_thread): Update.
7154
7155 2017-08-24 Simon Marchi <simon.marchi@ericsson.com>
7156
7157 * inferiors.c (set_inferior_target_data): Remove.
7158 * inferiors.h (set_inferior_target_data): Remove.
7159
7160 2017-08-18 Yao Qi <yao.qi@linaro.org>
7161
7162 * Makefile.in (OBS): Add selftest.o.
7163 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
7164 * configure, config.in: Re-generated.
7165 * server.c: Include common/sefltest.h.
7166 (captured_main): Handle option --selftest.
7167
7168 2017-08-09 Yao Qi <yao.qi@linaro.org>
7169
7170 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
7171 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
7172 i386-avx-mpx.o and i386-mmx.o.
7173 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
7174 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
7175 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
7176 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
7177 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
7178 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
7179 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
7180 i386/amd64-avx-mpx.xml.
7181
7182 2017-08-09 Yao Qi <yao.qi@linaro.org>
7183
7184 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
7185 and x32-avx-avx512.o.
7186 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
7187 i386/x32-avx-avx512.xml.
7188
7189 2017-07-26 Simon Marchi <simon.marchi@ericsson.com>
7190
7191 * tracepoint.h (enum class fast_tpoint_collect_result): New
7192 enumeration.
7193 (fast_tracepoint_collecting): Change return type to
7194 fast_tpoint_collect_result.
7195 * tracepoint.c (fast_tracepoint_collecting): Likewise.
7196 * linux-low.h: Include tracepoint.h.
7197 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
7198 fast_tpoint_collect_result.
7199 * linux-low.c (handle_tracepoints): Adjust.
7200 (linux_fast_tracepoint_collecting): Change return type to
7201 fast_tpoint_collect_result.
7202 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
7203 linux_wait_1, stuck_in_jump_pad_callback,
7204 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
7205 proceed_one_lwp): Adjust to type change.
7206
7207 2017-07-10 Yao Qi <yao.qi@linaro.org>
7208
7209 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
7210
7211 2017-06-29 Yao Qi <yao.qi@linaro.org>
7212
7213 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
7214 Remove.
7215 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
7216
7217 2017-06-20 Simon Marchi <simon.marchi@ericsson.com>
7218
7219 * Makefile.in (IPA_OBJS): Sort and format one item per line.
7220
7221 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
7222
7223 * linux-low.c (linux_create_inferior): Adjust code to access the
7224 environment information via 'gdb_environ' class.
7225 * lynx-low.c (lynx_create_inferior): Likewise.
7226 * server.c (our_environ): Make it an instance of 'gdb_environ'.
7227 (get_environ): Return a pointer to 'our_environ'.
7228 (captured_main): Initialize 'our_environ'.
7229 * server.h (get_environ): Adjust prototype.
7230 * spu-low.c (spu_create_inferior): Adjust code to access the
7231 environment information via 'gdb_environ' class.
7232
7233 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7234
7235 * linux-low.c (linux_read_memory, linux_write_memory): Remove
7236 usage of "register" keyword.
7237
7238 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7239
7240 * configure: Re-generate.
7241
7242 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7243
7244 * configure: Re-generate.
7245
7246 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7247
7248 * Makefile.in (COMPILE.pre): Add "-x c++".
7249
7250 2017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
7251
7252 * fork-child.c: Conditionally include <signal.h>.
7253
7254 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7255
7256 * server.c (handle_general_set): Handle new packet
7257 "QStartupWithShell".
7258 (handle_query): Add "QStartupWithShell" to the list of supported
7259 packets.
7260 (gdbserver_usage): Add help text explaining the
7261 new "--startup-with-shell" and "--no-startup-with-shell" CLI
7262 options.
7263 (captured_main): Recognize and act upon the presence of the new
7264 CLI options.
7265
7266 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7267 Pedro Alves <palves@redhat.com>
7268
7269 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
7270 * configure: Regenerate.
7271 * configure.srv (srv_linux_obj): Add "fork-child.o" and
7272 "fork-inferior.o".
7273 (i[34567]86-*-lynxos*): Likewise.
7274 (spu*-*-*): Likewise.
7275 * fork-child.c: New file.
7276 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
7277 and "environ.h".
7278 (linux_ptrace_fun): New function.
7279 (linux_create_inferior): Adjust function prototype to reflect
7280 change on "target.h". Adjust function code to use
7281 "fork_inferior".
7282 (linux_request_interrupt): Delete "signal_pid".
7283 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7284 (lynx_ptrace_fun): New function.
7285 (lynx_create_inferior): Adjust function prototype to reflect
7286 change on "target.h". Adjust function code to use
7287 "fork_inferior".
7288 * nto-low.c (nto_create_inferior): Adjust function prototype and
7289 code to reflect change on "target.h". Update comments.
7290 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
7291 "common-terminal.h" and "environ.h".
7292 (terminal_fd): Moved to fork-child.c.
7293 (old_foreground_pgrp): Likewise.
7294 (restore_old_foreground_pgrp): Likewise.
7295 (last_status): Make it global.
7296 (last_ptid): Likewise.
7297 (our_environ): New variable.
7298 (startup_with_shell): Likewise.
7299 (program_name): Likewise.
7300 (program_argv): Rename to...
7301 (program_args): ...this.
7302 (wrapper_argv): New variable.
7303 (start_inferior): Delete function.
7304 (get_exec_wrapper): New function.
7305 (get_exec_file): Likewise.
7306 (get_environ): Likewise.
7307 (prefork_hook): Likewise.
7308 (post_fork_inferior): Likewise.
7309 (postfork_hook): Likewise.
7310 (postfork_child_hook): Likewise.
7311 (handle_v_run): Update code to deal with arguments coming from the
7312 remote host. Update calls from "start_inferior" to
7313 "create_inferior".
7314 (captured_main): Likewise. Initialize environment variable. Call
7315 "have_job_control".
7316 * server.h (post_fork_inferior): New prototype.
7317 (get_environ): Likewise.
7318 (last_status): Declare.
7319 (last_ptid): Likewise.
7320 (signal_pid): Likewise.
7321 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7322 (spu_ptrace_fun): New function.
7323 (spu_create_inferior): Adjust function prototype to reflect change
7324 on "target.h". Adjust function code to use "fork_inferior".
7325 * target.c (target_terminal_init): New function.
7326 (target_terminal_inferior): Likewise.
7327 (target_terminal_ours): Likewise.
7328 * target.h: Include <vector>.
7329 (struct target_ops) <create_inferior>: Update prototype.
7330 (create_inferior): Update macro.
7331 * utils.c (gdb_flush_out_err): New function.
7332 * win32-low.c (win32_create_inferior): Adjust function prototype
7333 and code to reflect change on "target.h".
7334
7335 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7336
7337 * inferiors.c (switch_to_thread): New function.
7338
7339 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7340
7341 * Makefile.in (SFILE): Add "common/job-control.c".
7342 (OBS): Add "job-control.o".
7343
7344 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
7345
7346 * Makefile: Remove "@host_makefile_frag@".
7347
7348 2017-05-05 Pedro Alves <palves@redhat.com>
7349
7350 * configure: Regenerate.
7351
7352 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7353
7354 * configure: Regenerate.
7355
7356 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7357
7358 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
7359 software_single_step change of return type to
7360 std::vector<CORE_ADDR>.
7361 * linux-low.c (install_software_single_step_breakpoints):
7362 Likewise.
7363 * linux-low.h (install_software_single_step_breakpoints):
7364 Likewise.
7365
7366 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7367
7368 * remote-utils.c: Include "gdb_termios.h" instead of
7369 "terminal.h".
7370 * terminal.h: Delete file.
7371
7372 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7373
7374 * server.c: Include <vector>.
7375 <program_argv, wrapper_argv>: Convert to std::vector.
7376 (start_inferior): Rewrite function to use C++.
7377 (handle_v_run): Likewise. Update code that calculates the argv
7378 based on the vRun packet; use C++.
7379 (captured_main): Likewise.
7380
7381 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
7382
7383 * server.c (handle_v_cont): Initialize thread_resume::thread
7384 with null_ptid.
7385
7386 2017-04-05 Pedro Alves <palves@redhat.com>
7387
7388 * configure: Regenerate.
7389
7390 2017-04-05 Pedro Alves <palves@redhat.com>
7391
7392 * gdbreplay.c (sync_error): Constify.
7393 * linux-x86-low.c (push_opcode): Constify.
7394
7395 2017-04-05 Pedro Alves <palves@redhat.com>
7396
7397 * win32-low.c (get_child_debug_event)
7398 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
7399 Report TARGET_WAITKIND_SPURIOUS instead.
7400
7401 2017-04-05 Pedro Alves <palves@redhat.com>
7402
7403 * remote-utils.c (remote_prepare, remote_open): Constify.
7404 * remote-utils.h (remote_prepare, remote_open): Constify.
7405 * server.c (captured_main): Constify 'port' handling.
7406
7407 2017-04-04 Simon Marchi <simon.marchi@ericsson.com>
7408
7409 * Makefile.in (clean): Clear .deps.
7410
7411 2017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
7412
7413 * .gitignore: Remove generated files, replace with wildcard.
7414 * (clean): Replace removal of generated files with wildcard.
7415 (version.c): Replace with...
7416 (version-generated.c): ...this.
7417 (xml-builtin.c): Replace with...
7418 (xml-builtin-generated.c): ...this.
7419 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
7420 (%.c: *regformats*): Replace with...
7421 (%-generated.c: *regformats*): ...this.
7422
7423 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7424
7425 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
7426 (xtensa_fill_gregset): Call collect_register_by_name for
7427 threadptr register.
7428 (xtensa_store_gregset): Call supply_register_by_name for
7429 threadptr register.
7430
7431 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7432
7433 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
7434 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
7435 (xtensa_store_gregset): Call supply_register for all registers in
7436 a0_regnum..a0_regnum + C0_NREGS range.
7437
7438 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7439
7440 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
7441 (ax-ipa.o: ax.c): Remove.
7442 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
7443 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
7444 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
7445 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
7446 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
7447
7448 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7449
7450 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
7451 (print-utils-ipa.o: ../common/print-utils.c): Remove.
7452 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
7453 (errors-ipa.o: ../common/errors.c): Remove.
7454 (format-ipa.o: ../common/format.c): Remove.
7455 (common-utils-ipa.o: ../common/common-utils.c): Remove.
7456
7457 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7458
7459 * Makefile.in (%-ipa.o: %.c): New rule.
7460 (tracepoint-ipa.o: tracepoint.c): Remove.
7461 (utils-ipa.o: utils.c): Remove.
7462 (remote-utils-ipa.o: remote-utils.c): Remove.
7463 (regcache-ipa.o: regcache.c): Remove.
7464 (i386-linux-ipa.o: i386-linux.c): Remove.
7465 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
7466 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
7467 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
7468 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
7469 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
7470 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
7471 (amd64-linux-ipa.o: amd64-linux.c): Remove.
7472 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
7473 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
7474 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
7475 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
7476 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
7477 (aarch64-ipa.o: aarch64.c): Remove.
7478 (s390-linux32-ipa.o: s390-linux32.c): Remove.
7479 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
7480 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
7481 (s390-linux64-ipa.o: s390-linux64.c): Remove.
7482 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
7483 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
7484 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
7485 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
7486 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
7487 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
7488 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
7489 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
7490 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
7491 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
7492 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
7493 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
7494 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
7495 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
7496 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
7497 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
7498 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
7499 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
7500 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
7501 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
7502 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
7503 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
7504 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
7505 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
7506 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
7507 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
7508 (tdesc-ipa.o: tdesc.c): Remove.
7509 (x32-linux-ipa.o: x32-linux.c): Remove.
7510 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
7511 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
7512
7513 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7514
7515 * Makefile.in (%.o: ../arch/%.c): New rule.
7516 (arm.o: ../arch/arm.c): Remove.
7517 (arm-linux.o: ../arch/arm-linux.c): Remove.
7518 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
7519 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
7520
7521 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7522
7523 * Makefile.in (%.o: ../nat/%.c): New rule.
7524 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
7525 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
7526 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
7527 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
7528 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
7529 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
7530 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
7531 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
7532 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
7533 (linux-personality.o: ../nat/linux-personality.c): Remove.
7534 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
7535 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
7536 (x86-linux.o: ../nat/x86-linux.c): Remove.
7537 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
7538 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
7539
7540 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7541
7542 * Makefile.in (%.o: ../common/%.c): New rule.
7543 (signals.o: ../common/signals.c): Remove.
7544 (print-utils.o: ../common/print-utils.c): Remove.
7545 (rsp-low.o: ../common/rsp-low.c): Remove.
7546 (common-utils.o: ../common/common-utils.c): Remove.
7547 (posix-strerror.o: ../common/posix-strerror.c): Remove.
7548 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
7549 (vec.o: ../common/vec.c): Remove.
7550 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
7551 (xml-utils.o: ../common/xml-utils.c): Remove.
7552 (ptid.o: ../common/ptid.c): Remove.
7553 (buffer.o: ../common/buffer.c): Remove.
7554 (format.o: ../common/format.c): Remove.
7555 (filestuff.o: ../common/filestuff.c): Remove.
7556 (agent.o: ../common/agent.c): Remove.
7557 (errors.o: ../common/errors.c): Remove.
7558 (environ.o: ../common/environ.c): Remove.
7559 (common-debug.o: ../common/common-debug.c): Remove.
7560 (cleanups.o: ../common/cleanups.c): Remove.
7561 (common-exceptions.o: ../common/common-exceptions.c): Remove.
7562 (fileio.o: ../common/fileio.c): Remove.
7563 (common-regcache.o: ../common/common-regcache.c): Remove.
7564 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
7565 (new-op.o: ../common/new-op.c): Remove.
7566 (btrace-common.o: ../common/btrace-common.c): Remove.
7567
7568 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7569
7570 * Makefile.in (%.o: ../target/%.c): New rule.
7571 (waitstatus.o: ../target/waitstatus.c): Remove.
7572
7573 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7574
7575 * Makefile.in
7576 (%.c: ../regformats/%.dat,
7577 (%.c: ../regformats/arm/%.dat,
7578 (%.c: ../regformats/i386/%.dat,
7579 (%.c: ../regformats/rs6000/%.dat): New rules.
7580 (aarch64.c): Remove.
7581 (reg-arm.c): Remove.
7582 (arm-with-iwmmxt.c): Remove.
7583 (arm-with-vfpv2.c): Remove.
7584 (arm-with-vfpv3.c): Remove.
7585 (arm-with-neon.c): Remove.
7586 (reg-bfin.c): Remove.
7587 (reg-cris.c): Remove.
7588 (reg-crisv32.c): Remove.
7589 (i386.c): Remove.
7590 (i386-linux.c): Remove.
7591 (i386-avx.c): Remove.
7592 (i386-avx-linux.c): Remove.
7593 (i386-avx-avx512.c): Remove.
7594 (i386-avx-avx512-linux.c): Remove.
7595 (i386-mpx.c): Remove.
7596 (i386-mpx-linux.c): Remove.
7597 (i386-avx-mpx-avx512-pku.c): Remove.
7598 (i386-avx-mpx-avx512-pku-linux.c): Remove.
7599 (i386-avx-mpx.c): Remove.
7600 (i386-avx-mpx-linux.c): Remove.
7601 (i386-mmx.c): Remove.
7602 (i386-mmx-linux.c): Remove.
7603 (reg-ia64.c): Remove.
7604 (reg-m32r.c): Remove.
7605 (reg-m68k.c): Remove.
7606 (reg-cf.c): Remove.
7607 (mips-linux.c): Remove.
7608 (mips-dsp-linux.c): Remove.
7609 (mips64-linux.c): Remove.
7610 (mips64-dsp-linux.c): Remove.
7611 (nios2-linux.c): Remove.
7612 (powerpc-32.c): Remove.
7613 (powerpc-32l.c): Remove.
7614 (powerpc-altivec32l.c): Remove.
7615 (powerpc-cell32l.c): Remove.
7616 (powerpc-vsx32l.c): Remove.
7617 (powerpc-isa205-32l.c): Remove.
7618 (powerpc-isa205-altivec32l.c): Remove.
7619 (powerpc-isa205-vsx32l.c): Remove.
7620 (powerpc-e500l.c): Remove.
7621 (powerpc-64l.c): Remove.
7622 (powerpc-altivec64l.c): Remove.
7623 (powerpc-cell64l.c): Remove.
7624 (powerpc-vsx64l.c): Remove.
7625 (powerpc-isa205-64l.c): Remove.
7626 (powerpc-isa205-altivec64l.c): Remove.
7627 (powerpc-isa205-vsx64l.c): Remove.
7628 (s390-linux32.c): Remove.
7629 (s390-linux32v1.c): Remove.
7630 (s390-linux32v2.c): Remove.
7631 (s390-linux64.c): Remove.
7632 (s390-linux64v1.c): Remove.
7633 (s390-linux64v2.c): Remove.
7634 (s390-te-linux64.c): Remove.
7635 (s390-vx-linux64.c): Remove.
7636 (s390-tevx-linux64.c): Remove.
7637 (s390x-linux64.c): Remove.
7638 (s390x-linux64v1.c): Remove.
7639 (s390x-linux64v2.c): Remove.
7640 (s390x-te-linux64.c): Remove.
7641 (s390x-vx-linux64.c): Remove.
7642 (s390x-tevx-linux64.c): Remove.
7643 (tic6x-c64xp-linux.c): Remove.
7644 (tic6x-c64x-linux.c): Remove.
7645 (tic6x-c62x-linux.c): Remove.
7646 (reg-sh.c): Remove.
7647 (reg-sparc64.c): Remove.
7648 (reg-spu.c): Remove.
7649 (amd64.c): Remove.
7650 (amd64-linux.c): Remove.
7651 (amd64-avx.c): Remove.
7652 (amd64-avx-linux.c): Remove.
7653 (amd64-avx-avx512.c): Remove.
7654 (amd64-avx-avx512-linux.c): Remove.
7655 (amd64-mpx.c): Remove.
7656 (amd64-mpx-linux.c): Remove.
7657 (amd64-avx-mpx-avx512-pku.c): Remove.
7658 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
7659 (amd64-avx-mpx.c): Remove.
7660 (amd64-avx-mpx-linux.c): Remove.
7661 (x32.c): Remove.
7662 (x32-linux.c): Remove.
7663 (x32-avx.c): Remove.
7664 (x32-avx-linux.c): Remove.
7665 (x32-avx-avx512.c): Remove.
7666 (x32-avx-avx512-linux.c): Remove.
7667 (reg-xtensa.c): Remove.
7668 (reg-tilegx.c): Remove.
7669 (reg-tilegx32.c): Remove.
7670
7671 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
7672
7673 * Makefile.in (SFILES): Add "common/environ.c".
7674 (OBJS): Add "common/environ.h".
7675
7676 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7677
7678 * configure.ac: Check if the fs_base and gs_base members of
7679 `struct user_regs_struct' exist.
7680 * config.in: Regenerated.
7681 * configure: Likewise.
7682
7683 2017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
7684
7685 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
7686 target_read_memory.
7687 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
7688 (get_next_pcs_syscall_next_pc): Likewise.
7689
7690 2016-12-23 Luis Machado <lgustavo@codesourcery.com>
7691
7692 * win32-i386-low.c: Fix incorrect reference to a couple source files.
7693 * nto-x86-low.c: Likewise.
7694
7695 2016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
7696
7697 * Makefile.in: Include disable-implicit-rules.mk.
7698
7699 2016-11-23 Pedro Alves <palves@redhat.com>
7700
7701 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
7702 (debug_vprintf): Use std::chrono::steady_clock instead of
7703 gettimeofday. Use '.' instead of ':'.
7704 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
7705 (get_timestamp): Use std::chrono::steady_clock instead of
7706 gettimeofday.
7707
7708 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7709
7710 * Makefile.in: Fix whitespace formatting.
7711
7712 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7713
7714 * Makefile.in (SFILES, OBS): Flatten list and order
7715 alphabetically.
7716
7717 2016-11-23 Pedro Alves <palves@redhat.com>
7718
7719 * event-loop.c (handle_file_event): Use warning.
7720 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
7721 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
7722 Use warning.
7723
7724 2016-11-23 Pedro Alves <palves@redhat.com>
7725
7726 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
7727 output.
7728 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
7729 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
7730 debug_printf and debug_flush for debug output.
7731 * server.c (handle_general_set): Likewise.
7732 * thread-db.c (try_thread_db_load): Use debug_printf for debug
7733 output.
7734
7735 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7736
7737 * Makefile.in (.c.o): Replace rule with ...
7738 (%.o: %.c): ... this one.
7739
7740 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7741
7742 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
7743 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
7744 make.
7745 * configure.ac: Remove checks for the make program.
7746 * configure: Re-generate.
7747
7748 2016-10-28 Pedro Alves <palves@redhat.com>
7749
7750 * Makefile.in (CXX_DIALECT): Get from configure.
7751 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
7752 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
7753 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
7754 * config.in: Regenerate.
7755 * configure: Regenerate.
7756
7757 2016-10-27 Yao Qi <yao.qi@linaro.org>
7758
7759 * linux-low.c (linux_supports_range_stepping): Return true if
7760 can_software_single_step return true.
7761
7762 2016-10-27 Yao Qi <yao.qi@linaro.org>
7763
7764 * inferiors.c (find_inferior_in_random): New function.
7765 * inferiors.h (find_inferior_in_random): Declare.
7766 * linux-low.c (linux_wait_for_event_filtered): Call
7767 find_inferior_in_random instead of find_inferior.
7768
7769 2016-10-27 Yao Qi <yao.qi@linaro.org>
7770
7771 * linux-low.c (linux_wait_1): If single-step breakpoints are
7772 inserted, remove them.
7773
7774 2016-10-26 Pedro Alves <palves@redhat.com>
7775
7776 * linux-low.c (handle_extended_wait): Link parent/child fork
7777 threads.
7778 (linux_wait_1): Unlink them.
7779 (linux_set_resume_request): Ignore resume requests for
7780 already-resumed and unhandled fork child threads.
7781 * linux-low.h (struct lwp_info) <fork_relative>: New field.
7782 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
7783 New functions.
7784 (handle_v_requests) <vCont>: Don't call require_running.
7785 * server.h (in_queued_stop_replies): New declaration.
7786
7787 2016-10-24 Yao Qi <yao.qi@linaro.org>
7788
7789 PR server/20733
7790 * linux-aarch64-low.c (append_insns): Cast the return value to
7791 'uint32_t *'.
7792
7793 2016-10-10 Yao Qi <yao.qi@linaro.org>
7794
7795 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
7796
7797 2016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
7798
7799 * target.c (target_supports_multi_process): New function, moved
7800 from...
7801 * target.h (target_supports_multi_process): ... here. Remove
7802 macro.
7803
7804 2016-10-05 Tom Tromey <tom@tromey.com>
7805
7806 PR remote/20655:
7807 * tracepoint.c (handle_tracepoint_bkpts): Check
7808 ipa_error_tracepoint, not ipa_stopping_tracepoint.
7809
7810 2016-10-05 Yao Qi <yao.qi@linaro.org>
7811
7812 * configure.srv: Update the path of arm-*.xml files.
7813
7814 2016-10-05 Terry Guo <terry.guo@arm.com>
7815 Yao Qi <yao.qi@linaro.org>
7816
7817 * Makefile.in: Adjust the path of rules.
7818 * configure.srv: Update the path of xml files.
7819 * regformats/arm-with-iwmmxt.dat: Regenerated.
7820 * regformats/arm-with-neon.dat: Likewise.
7821 * regformats/arm-with-vfpv2.dat: Likewise.
7822 * regformats/arm-with-vfpv3.dat Likewise.
7823
7824 2016-09-30 Yao Qi <yao.qi@linaro.org>
7825
7826 PR gdbserver/20627
7827 * target.c (target_stop_and_wait): Don't call
7828 target_continue_no_signal, use resume_stop instead.
7829
7830 2016-09-26 Yao Qi <yao.qi@linaro.org>
7831
7832 * linux-low.c (linux_wait_1): Call debug_exit.
7833
7834 2016-09-23 Pedro Alves <palves@redhat.com>
7835
7836 * Makefile.in (SFILES): Add common/new-op.c.
7837 (OBS): Add common/new-op.o.
7838 (new-op.o): New rule.
7839
7840 2016-09-21 Simon Marchi <simon.marchi@ericsson.com>
7841
7842 * .gitinore: Ignore more files.
7843
7844 2016-09-21 Yao Qi <yao.qi@linaro.org>
7845
7846 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
7847 23.
7848
7849 2016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
7850
7851 * server.c (start_inferior): Call target_mourn_inferior instead of
7852 mourn_inferior; pass ptid_t argument to it.
7853 (resume): Likewise.
7854 (handle_target_event): Likewise.
7855 * target.c (target_mourn_inferior): New function.
7856 * target.h (mourn_inferior): Delete macro.
7857
7858 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
7859
7860 * linux-low.c (lwp_is_stepping): New function.
7861
7862 2016-09-06 Carl Love <cel@us.ibm.com>
7863
7864 * server.c (start_inferior): Fixed comment, requested comment change
7865 didn't get updated correctly. Removed reference to ptrace () call as
7866 it is only true on Linux systems.
7867
7868 2016-09-06 Carl Love <cel@us.ibm.com>
7869
7870 * server.c (start_inferior): Do not call
7871 function target_post_create_inferior () if the
7872 inferior process has already exited.
7873
7874 2016-09-05 Pedro Alves <palves@redhat.com>
7875
7876 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
7877 (COMPILE.pre, CC_LD): Use CXX directly.
7878 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
7879 * acinclude.m4: Don't include build-with-cxx.m4.
7880 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
7881 * configure: Regenerate.
7882
7883 2016-09-02 Akash Trehan <akash.trehan123@gmail.com>
7884
7885 PR gdb/19495
7886 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
7887 call writing data to own_buf.
7888
7889 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7890
7891 * target.c (mywait): Call target_wait instead of
7892 the_target->wait.
7893 (target_wait): New function.
7894
7895 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7896
7897 * server.c (start_inferior): New variable 'ptid'. Replace calls
7898 to the_target->resume by target_continue{,_no_signal}, depending
7899 on the case.
7900 * target.c (target_stop_and_wait): Call target_continue_no_signal
7901 instead of the_target->resume.
7902 (target_continue): New function.
7903
7904 2016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
7905
7906 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
7907
7908 2016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7909
7910 PR server/20491
7911 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
7912 ps_prochandle.
7913 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
7914 * linux-arm-low.c (ps_get_thread_area): Likewise.
7915 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
7916 * linux-m68k-low.c (ps_get_thread_area): Likewise.
7917 * linux-mips-low.c (ps_get_thread_area): Likewise.
7918 * linux-nios2-low.c (ps_get_thread_area): Likewise.
7919 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
7920 * linux-x86-low.c (ps_get_thread_area): Likewise.
7921 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
7922
7923 2016-08-19 Pedro Alves <palves@redhat.com>
7924
7925 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
7926
7927 2016-08-19 Pedro Alves <palves@redhat.com>
7928
7929 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
7930 comment. Use memcpy instead of casting through unsigned long.
7931
7932 2016-08-19 Pedro Alves <palves@redhat.com>
7933
7934 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
7935 allocating around 0x80000000.
7936
7937 2016-08-19 Pedro Alves <palves@redhat.com>
7938
7939 PR gdb/20415
7940 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
7941 (x32-avx512-linux-ipa.o): New rules.
7942 * configure.ac (x86_64-*-linux*): New x32 check.
7943 * configure.srv (ipa_x32_linux_regobj): New.
7944 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
7945 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
7946 descriptions.
7947 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
7948 descriptions.
7949 * configure: Regenerate.
7950
7951 2016-08-09 Pedro Alves <palves@redhat.com>
7952
7953 PR gdb/18653
7954 * Makefile.in (OBS): Add signals-state-save-restore.o.
7955 (signals-state-save-restore.o): New rule.
7956 * config.in: Regenerate.
7957 * configure: Regenerate.
7958 * linux-low.c: Include "signals-state-save-restore.h".
7959 (linux_create_inferior): Call
7960 restore_original_signals_state.
7961 * server.c: Include "dispositions-save-restore.h".
7962 (captured_main): Call save_original_signals_state.
7963
7964 2016-08-05 Pedro Alves <palves@redhat.com>
7965
7966 * configure: Regenerate.
7967
7968 2016-08-04 Yao Qi <yao.qi@linaro.org>
7969
7970 * linux-low.c (regsets_fetch_inferior_registers): Check
7971 errno is ESRCH or not.
7972
7973 2016-08-02 Yao Qi <yao.qi@linaro.org>
7974
7975 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
7976 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
7977 (thread_db_load_search): Update.
7978 (try_thread_db_load_1): Don't look for td_ta_event_addr,
7979 td_ta_set_event and td_ta_event_getmsg.
7980
7981 2016-07-26 Pedro Alves <palves@redhat.com>
7982
7983 PR server/20414
7984 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
7985 of unsigned long for 64-bit registers and use uint32_t instead of
7986 unsigned int for 32-bit registers.
7987
7988 2016-07-26 Pedro Alves <palves@redhat.com>
7989
7990 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
7991 to 'ptrace'.
7992
7993 2016-07-21 Tom Tromey <tom@tromey.com>
7994
7995 * configure: Rebuild.
7996
7997 2016-07-21 Yao Qi <yao.qi@linaro.org>
7998
7999 * mem-break.c (find_gdb_breakpoint): Cast bp to
8000 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
8001
8002 2016-07-21 Yao Qi <yao.qi@linaro.org>
8003
8004 * server.c (handle_v_requests): Support s and S actions
8005 if target_supports_software_single_step return true.
8006
8007 2016-07-21 Yao Qi <yao.qi@linaro.org>
8008
8009 * linux-low.c (resume_stopped_resumed_lwps): If resume request
8010 is resume_step, call maybe_hw_step.
8011 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
8012 and unstop them.
8013 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
8014 breakpoints or not.
8015 (proceed_one_lwp): If resume request is resume_step, install
8016 reinsert breakpoints and call maybe_hw_step.
8017
8018 2016-07-21 Yao Qi <yao.qi@linaro.org>
8019
8020 * linux-low.c (proceed_one_lwp): Declare.
8021 (linux_resume_one_thread): Remove local variable 'step'.
8022 Lift code enqueue signal. Call proceed_one_lwp instead of
8023 linux_resume_one_lwp.
8024
8025 2016-07-21 Yao Qi <yao.qi@linaro.org>
8026
8027 * linux-low.c (linux_resume_one_thread): Call
8028 enqueue_pending_signal.
8029
8030 2016-07-21 Yao Qi <yao.qi@linaro.org>
8031
8032 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
8033 * inferiors.c (do_restore_current_thread_cleanup): New function.
8034 (make_cleanup_restore_current_thread): Likewise.
8035 * linux-low.c (install_software_single_step_breakpoints): Call
8036 make_cleanup_restore_current_thread. Switch current_thread to
8037 thread.
8038
8039 2016-07-21 Yao Qi <yao.qi@linaro.org>
8040
8041 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
8042 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
8043 (clone_one_breakpoint): Likewise.
8044 (delete_reinsert_breakpoints): Change parameter to thread.
8045 Callers updated.
8046 (has_reinsert_breakpoints): Likewise.
8047 (uninsert_reinsert_breakpoints): Likewise.
8048 (reinsert_reinsert_breakpoints): Likewise.
8049 * mem-break.h (set_reinsert_breakpoint): Update declaration.
8050 (delete_reinsert_breakpoints): Likewise.
8051 (reinsert_reinsert_breakpoints): Likewise.
8052 (uninsert_reinsert_breakpoints): Likewise.
8053 (has_reinsert_breakpoints): Likewise.
8054
8055 2016-07-21 Yao Qi <yao.qi@linaro.org>
8056
8057 * inferiors.c (get_thread_process): Make parameter const.
8058 * inferiors.h (get_thread_process): Update declaration.
8059 * mem-break.c (clone_all_breakpoints): Remove all parameters.
8060 Add new parameters child_thread and parent_thread. Callers
8061 updated.
8062 * mem-break.h (clone_all_breakpoints): Update declaration.
8063
8064 2016-07-21 Yao Qi <yao.qi@linaro.org>
8065
8066 * mem-break.c (struct breakpoint) <cond_list>: Remove.
8067 <command_list, handler>: Remove.
8068 (struct gdb_breakpoint): New.
8069 (struct other_breakpoint): New.
8070 (struct reinsert_breakpoint): New.
8071 (is_gdb_breakpoint): New function.
8072 (any_persistent_commands): Update command_list if
8073 is_gdb_breakpoint returns true.
8074 (set_breakpoint): Create breakpoints according to their types.
8075 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
8076 (set_gdb_breakpoint_1): Likewise.
8077 (set_gdb_breakpoint): Likewise.
8078 (clear_breakpoint_conditions): Change parameter type to
8079 'struct gdb_breakpoint *'.
8080 (clear_breakpoint_commands): Likewise.
8081 (clear_breakpoint_conditions_and_commands): Likewise.
8082 (add_condition_to_breakpoint): Likewise.
8083 (add_breakpoint_condition): Likewise.
8084 (add_commands_to_breakpoint): Likewise.
8085 (check_breakpoints): Check other_breakpoint.
8086 (clone_one_breakpoint): Clone breakpopint according to its type.
8087 * mem-break.h (struct gdb_breakpoint): Declare.
8088 (set_gdb_breakpoint): Update declaration.
8089 (clear_breakpoint_conditions_and_commands): Likewise.
8090 (add_breakpoint_condition): Likewise.
8091 (add_breakpoint_commands): Likewise.
8092 * server.c (process_point_options): Change parameter type to
8093 'struct gdb_breakpoint *'.
8094
8095 2016-07-21 Yao Qi <yao.qi@linaro.org>
8096
8097 * mem-break.c (set_breakpoint_at): Rename it to ...
8098 (set_breakpoint_type_at): ... it.
8099 (set_breakpoint_at): Call set_breakpoint_type_at.
8100 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
8101 * mem-break.h (set_breakpoint_at): Update comments.
8102
8103 2016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
8104
8105 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
8106 to buf parameter.
8107 (nios2_store_gregset): Likewise.
8108
8109 2016-07-01 Pedro Alves <palves@redhat.com>
8110 Antoine Tremblay <antoine.tremblay@ericsson.com>
8111
8112 * linux-low.c: Change interface to take the target lwp_info
8113 pointer directly and return void. Handle detaching from a zombie
8114 thread.
8115 (linux_detach_lwp_callback): New function.
8116 (linux_detach): Detach from the leader thread after detaching from
8117 the clone threads.
8118
8119 2016-06-28 Yao Qi <yao.qi@linaro.org>
8120
8121 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
8122 for variable new_offset.
8123 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
8124 (aarch64_ftrace_insn_reloc_cb): Likewise.
8125 (aarch64_ftrace_insn_reloc_tb): Likewise.
8126 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
8127 PRIx64 instead of PRIx32.
8128
8129 2016-06-28 Yao Qi <yao.qi@linaro.org>
8130
8131 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
8132 (the_low_target): Install arm_get_syscall_trapinfo.
8133
8134 2016-06-28 Yao Qi <yao.qi@linaro.org>
8135
8136 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
8137 function.
8138 (the_low_target): Install aarch64_get_syscall_trapinfo.
8139
8140 2016-06-28 Yao Qi <yao.qi@linaro.org>
8141
8142 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
8143 Callers updated.
8144 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
8145 Remove parameter sysno.
8146 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
8147 sysret.
8148
8149 2016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8150
8151 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
8152 (s390_emit_ne_goto): Likewise.
8153 (s390_emit_lt_goto): Likewise.
8154 (s390_emit_le_goto): Likewise.
8155 (s390_emit_gt_goto): Likewise.
8156 (s390_emit_ge_goto): Likewise.
8157 (s390x_emit_eq_goto): Likewise.
8158 (s390x_emit_ne_goto): Likewise.
8159 (s390x_emit_lt_goto): Likewise.
8160 (s390x_emit_le_goto): Likewise.
8161 (s390x_emit_gt_goto): Likewise.
8162 (s390x_emit_ge_goto): Likewise.
8163 (s390_emit_ops_impl): Mark variable static.
8164 (s390x_emit_ops): Likewise.
8165
8166 2016-06-17 Yao Qi <yao.qi@linaro.org>
8167
8168 * linux-low.c (handle_extended_wait): Call
8169 uninsert_reinsert_breakpoints for the parent process. Remove
8170 reinsert breakpoints from the child process. Reinsert them to
8171 the parent process when vfork is done.
8172 * mem-break.c (uninsert_reinsert_breakpoints): New function.
8173 (reinsert_reinsert_breakpoints): New function.
8174 * mem-break.h (uninsert_reinsert_breakpoints): Declare
8175 (reinsert_reinsert_breakpoints): Declare.
8176
8177 2016-06-17 Yao Qi <yao.qi@linaro.org>
8178
8179 * linux-low.c (handle_extended_wait): If the parent is doing
8180 step-over, remove the reinsert breakpoints from the forked child.
8181
8182 2016-06-17 Yao Qi <yao.qi@linaro.org>
8183
8184 * linux-low.c (unsuspend_all_lwps): Declare.
8185 (linux_low_filter_event): If thread exited, call finish_step_over.
8186 If step-over is finished, unsuspend other threads.
8187
8188 2016-06-17 Yao Qi <yao.qi@linaro.org>
8189
8190 * linux-low.c (linux_resume_one_lwp_throw): Assert
8191 has_reinsert_breakpoints returns false.
8192 * mem-break.c (delete_disabled_breakpoints): Assert
8193 bp type isn't reinsert_breakpoint.
8194
8195 2016-06-17 Yao Qi <yao.qi@linaro.org>
8196
8197 * linux-low.c (maybe_hw_step): New function.
8198 (linux_resume_one_lwp_throw): Call maybe_hw_step.
8199 (finish_step_over): Switch current_thread to lwp temporarily,
8200 and assert has_reinsert_breakpoints returns true.
8201 (proceed_one_lwp): Call maybe_hw_step.
8202 * mem-break.c (has_reinsert_breakpoints): New function.
8203 * mem-break.h (has_reinsert_breakpoints): Declare.
8204
8205 2016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
8206
8207 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
8208
8209 2016-05-17 Yao Qi <yao.qi@linaro.org>
8210
8211 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
8212 instead of find_inferior.
8213
8214 2016-05-05 Yao Qi <yao.qi@linaro.org>
8215
8216 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
8217 Initialize res to zero.
8218
8219 2016-05-05 Yao Qi <yao.qi@linaro.org>
8220
8221 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
8222 to uint32_t.
8223
8224 2016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8225
8226 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
8227 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
8228 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
8229
8230 2016-04-28 Par Olsson <par.olsson@windriver.com>
8231 Simon Marchi <simon.marchi@ericsson.com>
8232
8233 * tracepoint.c (write_inferior_int8): New function.
8234 (cmd_qtenable_disable): Write enable flag using
8235 write_inferior_int8.
8236
8237 2016-04-25 Yao Qi <yao.qi@linaro.org>
8238
8239 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
8240 (need_step_over_p): Return zero if the LWP has pending signals
8241 can be delivered on software single step target.
8242
8243 2016-04-25 Yao Qi <yao.qi@linaro.org>
8244
8245 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
8246 return instead of error.
8247
8248 2016-04-22 Yao Qi <yao.qi@linaro.org>
8249
8250 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
8251 to 23.
8252
8253 2016-04-22 Yao Qi <yao.qi@linaro.org>
8254
8255 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
8256 signal when stepping over breakpoint with software single
8257 step.
8258
8259 2016-04-21 Pedro Alves <palves@redhat.com>
8260
8261 * linux-s390-low.c (s390_collect_ptrace_register)
8262 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
8263 add casts.
8264 (s390_check_regset): Use void * instead of gdb_byte *.
8265
8266 2016-04-20 Pedro Alves <palves@redhat.com>
8267
8268 * configure: Renegerate.
8269
8270 2016-04-20 Yao Qi <yao.qi@linaro.org>
8271
8272 * linux-aarch32-low.c: Include "arch/arm-linux.h".
8273 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
8274 number 16.
8275 (arm_store_gregset): Likewise.
8276
8277 2016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
8278
8279 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
8280 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
8281 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
8282 (amd64-avx-mpx-linux.c): New rules.
8283 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
8284 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
8285 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
8286 (srv_amd64_regobj): Add amd64-avx-mpx.o.
8287 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
8288 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
8289 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
8290 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
8291 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
8292 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
8293 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
8294 * linux-x86-low.c (x86_linux_read_description): Add case for
8295 X86_XSTATE_AVX_MPX_MASK.
8296 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
8297 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
8298 init_registers_i386_avx_mpx_linux.
8299 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8300 (initialize_low_tracepoint): Call
8301 init_registers_i386_avx_mpx_linux.
8302 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8303 (initialize_low_tracepoint): Call
8304 init_registers_amd64_avx_mpx_linux.
8305 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
8306 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
8307 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
8308 declarations.
8309
8310 2016-04-18 Pedro Alves <palves@redhat.com>
8311
8312 * configure: Regenerate.
8313
8314 2016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
8315
8316 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
8317 (aarch64_emit_sub): Likewise.
8318
8319 2016-04-12 Pedro Alves <palves@redhat.com>
8320
8321 * utils.c (prepare_to_throw_exception): Delete.
8322
8323 2016-04-05 Simon Marchi <simon.marchi@ericsson.com>
8324
8325 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
8326
8327 2016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
8328
8329 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
8330
8331 2016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
8332
8333 * linux-aarch64-ipa.c: Add <elf.h> include.
8334 * linux-ppc-ipa.c: Add <elf.h> include.
8335 * linux-s390-ipa.c: Add <elf.h> include.
8336
8337 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8338
8339 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
8340 (get_raw_reg_ptr): Likewise.
8341 (get_trace_state_variable_value_ptr): Likewise.
8342 (set_trace_state_variable_value_ptr): Likewise.
8343 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
8344 char *.
8345
8346 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
8347 Marcin Kościelnicki <koriakin@0x04.net>
8348
8349 PR/17221
8350 * linux-ppc-low.c (emit_insns): New function.
8351 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
8352 (ppc_emit_prologue): New function.
8353 (ppc_emit_epilogue): New function.
8354 (ppc_emit_add): New function.
8355 (ppc_emit_sub): New function.
8356 (ppc_emit_mul): New function.
8357 (ppc_emit_lsh): New function.
8358 (ppc_emit_rsh_signed): New function.
8359 (ppc_emit_rsh_unsigned): New function.
8360 (ppc_emit_ext): New function.
8361 (ppc_emit_zero_ext): New function.
8362 (ppc_emit_log_not): New function.
8363 (ppc_emit_bit_and): New function.
8364 (ppc_emit_bit_or): New function.
8365 (ppc_emit_bit_xor): New function.
8366 (ppc_emit_bit_not): New function.
8367 (ppc_emit_equal): New function.
8368 (ppc_emit_less_signed): New function.
8369 (ppc_emit_less_unsigned): New function.
8370 (ppc_emit_ref): New function.
8371 (ppc_emit_const): New function.
8372 (ppc_emit_reg): New function.
8373 (ppc_emit_pop): New function.
8374 (ppc_emit_stack_flush): New function.
8375 (ppc_emit_swap): New function.
8376 (ppc_emit_stack_adjust): New function.
8377 (ppc_emit_call): New function.
8378 (ppc_emit_int_call_1): New function.
8379 (ppc_emit_void_call_2): New function.
8380 (ppc_emit_if_goto): New function.
8381 (ppc_emit_goto): New function.
8382 (ppc_emit_eq_goto): New function.
8383 (ppc_emit_ne_goto): New function.
8384 (ppc_emit_lt_goto): New function.
8385 (ppc_emit_le_goto): New function.
8386 (ppc_emit_gt_goto): New function.
8387 (ppc_emit_ge_goto): New function.
8388 (ppc_write_goto_address): New function.
8389 (ppc_emit_ops_impl): New static variable.
8390 (ppc64v1_emit_prologue): New function.
8391 (ppc64v2_emit_prologue): New function.
8392 (ppc64_emit_epilogue): New function.
8393 (ppc64_emit_add): New function.
8394 (ppc64_emit_sub): New function.
8395 (ppc64_emit_mul): New function.
8396 (ppc64_emit_lsh): New function.
8397 (ppc64_emit_rsh_signed): New function.
8398 (ppc64_emit_rsh_unsigned): New function.
8399 (ppc64_emit_ext): New function.
8400 (ppc64_emit_zero_ext): New function.
8401 (ppc64_emit_log_not): New function.
8402 (ppc64_emit_bit_and): New function.
8403 (ppc64_emit_bit_or): New function.
8404 (ppc64_emit_bit_xor): New function.
8405 (ppc64_emit_bit_not): New function.
8406 (ppc64_emit_equal): New function.
8407 (ppc64_emit_less_signed): New function.
8408 (ppc64_emit_less_unsigned): New function.
8409 (ppc64_emit_ref): New function.
8410 (ppc64_emit_const): New function.
8411 (ppc64v1_emit_reg): New function.
8412 (ppc64v2_emit_reg): New function.
8413 (ppc64_emit_pop): New function.
8414 (ppc64_emit_stack_flush): New function.
8415 (ppc64_emit_swap): New function.
8416 (ppc64v1_emit_call): New function.
8417 (ppc64v2_emit_call): New function.
8418 (ppc64v1_emit_int_call_1): New function.
8419 (ppc64v2_emit_int_call_1): New function.
8420 (ppc64v1_emit_void_call_2): New function.
8421 (ppc64v2_emit_void_call_2): New function.
8422 (ppc64_emit_if_goto): New function.
8423 (ppc64_emit_eq_goto): New function.
8424 (ppc64_emit_ne_goto): New function.
8425 (ppc64_emit_lt_goto): New function.
8426 (ppc64_emit_le_goto): New function.
8427 (ppc64_emit_gt_goto): New function.
8428 (ppc64_emit_ge_goto): New function.
8429 (ppc64v1_emit_ops_impl): New static variable.
8430 (ppc64v2_emit_ops_impl): New static variable.
8431 (ppc_emit_ops): New function.
8432 (linux_low_target): Wire in ppc_emit_ops.
8433
8434 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
8435 Marcin Kościelnicki <koriakin@0x04.net>
8436
8437 PR/17221
8438 * Makefile.in: Add powerpc-*-ipa.o
8439 * configure.srv: Add ipa_obj for powerpc*-linux.
8440 * linux-ppc-ipa.c: New file.
8441 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
8442 includes.
8443 (PPC_FIELD): New macro.
8444 (PPC_SEXT): New macro.
8445 (PPC_OP6): New macro.
8446 (PPC_BO): New macro.
8447 (PPC_LI): New macro.
8448 (PPC_BD): New macro.
8449 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
8450 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
8451 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
8452 (ppc_get_thread_area): New function.
8453 (is_elfv2_inferior): New function.
8454 (gen_ds_form): New function.
8455 (GEN_STD): New macro.
8456 (GEN_STDU): New macro.
8457 (GEN_LD): New macro.
8458 (GEN_LDU): New macro.
8459 (gen_d_form): New function.
8460 (GEN_ADDI): New macro.
8461 (GEN_ADDIS): New macro.
8462 (GEN_LI): New macro.
8463 (GEN_LIS): New macro.
8464 (GEN_ORI): New macro.
8465 (GEN_ORIS): New macro.
8466 (GEN_LWZ): New macro.
8467 (GEN_STW): New macro.
8468 (GEN_STWU): New macro.
8469 (gen_xfx_form): New function.
8470 (GEN_MFSPR): New macro.
8471 (GEN_MTSPR): New macro.
8472 (GEN_MFCR): New macro.
8473 (GEN_MTCR): New macro.
8474 (GEN_SYNC): New macro.
8475 (GEN_LWSYNC): New macro.
8476 (gen_x_form): New function.
8477 (GEN_OR): New macro.
8478 (GEN_MR): New macro.
8479 (GEN_LWARX): New macro.
8480 (GEN_STWCX): New macro.
8481 (GEN_CMPW): New macro.
8482 (gen_md_form): New function.
8483 (GEN_RLDICL): New macro.
8484 (GEN_RLDICR): New macro.
8485 (gen_i_form): New function.
8486 (GEN_B): New macro.
8487 (GEN_BL): New macro.
8488 (gen_b_form): New function.
8489 (GEN_BNE): New macro.
8490 (GEN_LOAD): New macro.
8491 (GEN_STORE): New macro.
8492 (gen_limm): New function.
8493 (gen_atomic_xchg): New function.
8494 (gen_call): New function.
8495 (ppc_relocate_instruction): New function.
8496 (ppc_install_fast_tracepoint_jump_pad): New function.
8497 (ppc_get_min_fast_tracepoint_insn_len): New function.
8498 (ppc_get_ipa_tdesc_idx): New function.
8499 (the_low_target): Wire in the new functions.
8500 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
8501 tdescs.
8502 * linux-ppc-tdesc.h: New file.
8503
8504 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8505
8506 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8507 (alloc_jump_pad_buffer): New function.
8508 * linux-amd64-ipa.c: Add <sys/mman.h> include.
8509 (alloc_jump_pad_buffer): New function.
8510 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
8511 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8512 (alloc_jump_pad_buffer): New function.
8513 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
8514 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
8515 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
8516 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
8517
8518 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8519
8520 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
8521 * linux-amd64-ipa.c: Likewise.
8522 * linux-i386-ipa.c: Likewise.
8523 * linux-s390-ipa.c: Likewise.
8524 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
8525 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
8526 set_trace_state_variable_value_ptr.
8527 (struct ipa_sym_addresses): Likewise.
8528 (symbol_list): Likewise.
8529 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
8530 accessing gdb_collect directly.
8531 (gdb_collect_ptr_type): New typedef.
8532 (get_raw_reg_ptr_type): New typedef.
8533 (get_trace_state_variable_value_ptr_type): New typedef.
8534 (set_trace_state_variable_value_ptr_type): New typedef.
8535 (gdb_collect_ptr): New global.
8536 (get_raw_reg_ptr): New global.
8537 (get_trace_state_variable_value_ptr): New global.
8538 (set_trace_state_variable_value_ptr): New global.
8539 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
8540 accessing get_raw_reg directly.
8541 (get_get_tsv_func_addr): Likewise for
8542 get_trace_state_variable_value_ptr.
8543 (get_set_tsv_func_addr): Likewise for
8544 set_trace_state_variable_value_ptr.
8545 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
8546
8547 2016-03-30 Simon Marchi <simon.marchi@ericsson.com>
8548
8549 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
8550
8551 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8552
8553 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
8554 packets.
8555 (relocate_instruction): Remove own_buf.
8556 * server.c (own_buf): Make global.
8557 (handle_v_requests): Make global.
8558 * server.h (own_buf): New declaration.
8559 (handle_v_requests): New prototype.
8560
8561 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8562
8563 PR 18377
8564 * linux-s390-low.c (add_insns): New function.
8565 (s390_emit_prologue): New function.
8566 (s390_emit_epilogue): New function.
8567 (s390_emit_add): New function.
8568 (s390_emit_sub): New function.
8569 (s390_emit_mul): New function.
8570 (s390_emit_lsh): New function.
8571 (s390_emit_rsh_signed): New function.
8572 (s390_emit_rsh_unsigned): New function.
8573 (s390_emit_ext): New function.
8574 (s390_emit_log_not): New function.
8575 (s390_emit_bit_and): New function.
8576 (s390_emit_bit_or): New function.
8577 (s390_emit_bit_xor): New function.
8578 (s390_emit_bit_not): New function.
8579 (s390_emit_equal): New function.
8580 (s390_emit_less_signed): New function.
8581 (s390_emit_less_unsigned): New function.
8582 (s390_emit_ref): New function.
8583 (s390_emit_if_goto): New function.
8584 (s390_emit_goto): New function.
8585 (s390_write_goto_address): New function.
8586 (s390_emit_litpool): New function.
8587 (s390_emit_const): New function.
8588 (s390_emit_call): New function.
8589 (s390_emit_reg): New function.
8590 (s390_emit_pop): New function.
8591 (s390_emit_stack_flush): New function.
8592 (s390_emit_zero_ext): New function.
8593 (s390_emit_swap): New function.
8594 (s390_emit_stack_adjust): New function.
8595 (s390_emit_set_r2): New function.
8596 (s390_emit_int_call_1): New function.
8597 (s390_emit_void_call_2): New function.
8598 (s390_emit_eq_goto): New function.
8599 (s390_emit_ne_goto): New function.
8600 (s390_emit_lt_goto): New function.
8601 (s390_emit_le_goto): New function.
8602 (s390_emit_gt_goto): New function.
8603 (s390_emit_ge_goto): New function.
8604 (s390x_emit_prologue): New function.
8605 (s390x_emit_epilogue): New function.
8606 (s390x_emit_add): New function.
8607 (s390x_emit_sub): New function.
8608 (s390x_emit_mul): New function.
8609 (s390x_emit_lsh): New function.
8610 (s390x_emit_rsh_signed): New function.
8611 (s390x_emit_rsh_unsigned): New function.
8612 (s390x_emit_ext): New function.
8613 (s390x_emit_log_not): New function.
8614 (s390x_emit_bit_and): New function.
8615 (s390x_emit_bit_or): New function.
8616 (s390x_emit_bit_xor): New function.
8617 (s390x_emit_bit_not): New function.
8618 (s390x_emit_equal): New function.
8619 (s390x_emit_less_signed): New function.
8620 (s390x_emit_less_unsigned): New function.
8621 (s390x_emit_ref): New function.
8622 (s390x_emit_if_goto): New function.
8623 (s390x_emit_const): New function.
8624 (s390x_emit_call): New function.
8625 (s390x_emit_reg): New function.
8626 (s390x_emit_pop): New function.
8627 (s390x_emit_stack_flush): New function.
8628 (s390x_emit_zero_ext): New function.
8629 (s390x_emit_swap): New function.
8630 (s390x_emit_stack_adjust): New function.
8631 (s390x_emit_int_call_1): New function.
8632 (s390x_emit_void_call_2): New function.
8633 (s390x_emit_eq_goto): New function.
8634 (s390x_emit_ne_goto): New function.
8635 (s390x_emit_lt_goto): New function.
8636 (s390x_emit_le_goto): New function.
8637 (s390x_emit_gt_goto): New function.
8638 (s390x_emit_ge_goto): New function.
8639 (s390_emit_ops): New function.
8640 (struct linux_target_ops): Fill in emit_ops hook.
8641
8642 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8643
8644 PR 18377
8645 * Makefile.in: Add s390 IPA files.
8646 * configure.srv: Build IPA for s390.
8647 * linux-s390-ipa.c: New file.
8648 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
8649 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
8650 (tdesc_s390_linux32): Likewise.
8651 (init_registers_s390_linux32v1): Likewise.
8652 (tdesc_s390_linux32v1): Likewise.
8653 (init_registers_s390_linux32v2): Likewise.
8654 (tdesc_s390_linux32v2): Likewise.
8655 (init_registers_s390_linux64): Likewise.
8656 (tdesc_s390_linux64): Likewise.
8657 (init_registers_s390_linux64v1): Likewise.
8658 (tdesc_s390_linux64v1): Likewise.
8659 (init_registers_s390_linux64v2): Likewise.
8660 (tdesc_s390_linux64v2): Likewise.
8661 (init_registers_s390_te_linux64): Likewise.
8662 (tdesc_s390_te_linux64): Likewise.
8663 (init_registers_s390_vx_linux64): Likewise.
8664 (tdesc_s390_vx_linux64): Likewise.
8665 (init_registers_s390_tevx_linux64): Likewise.
8666 (tdesc_s390_tevx_linux64): Likewise.
8667 (init_registers_s390x_linux64): Likewise.
8668 (tdesc_s390x_linux64): Likewise.
8669 (init_registers_s390x_linux64v1): Likewise.
8670 (tdesc_s390x_linux64v1): Likewise.
8671 (init_registers_s390x_linux64v2): Likewise.
8672 (tdesc_s390x_linux64v2): Likewise.
8673 (init_registers_s390x_te_linux64): Likewise.
8674 (tdesc_s390x_te_linux64): Likewise.
8675 (init_registers_s390x_vx_linux64): Likewise.
8676 (tdesc_s390x_vx_linux64): Likewise.
8677 (init_registers_s390x_tevx_linux64): Likewise.
8678 (tdesc_s390x_tevx_linux64): Likewise.
8679 (have_hwcap_s390_vx): New static variable.
8680 (s390_arch_setup): Fill have_hwcap_s390_vx.
8681 (s390_get_thread_area): New function.
8682 (s390_ft_entry_gpr_esa): New const.
8683 (s390_ft_entry_gpr_zarch): New const.
8684 (s390_ft_entry_misc): New const.
8685 (s390_ft_entry_fr): New const.
8686 (s390_ft_entry_vr): New const.
8687 (s390_ft_main_31): New const.
8688 (s390_ft_main_64): New const.
8689 (s390_ft_exit_fr): New const.
8690 (s390_ft_exit_vr): New const.
8691 (s390_ft_exit_misc): New const.
8692 (s390_ft_exit_gpr_esa): New const.
8693 (s390_ft_exit_gpr_zarch): New const.
8694 (append_insns): New function.
8695 (s390_relocate_instruction): New function.
8696 (s390_install_fast_tracepoint_jump_pad): New function.
8697 (s390_get_min_fast_tracepoint_insn_len): New function.
8698 (s390_get_ipa_tdesc_idx): New function.
8699 (struct linux_target_ops): Wire in the above functions.
8700 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
8701 * linux-s390-tdesc.h: New file.
8702
8703 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8704
8705 * linux-s390-low.c (s390_supports_tracepoints): New function.
8706 (struct linux_target_ops): Fill supports_tracepoints hook.
8707
8708 2016-03-18 Yao Qi <yao.qi@linaro.org>
8709
8710 * linux-low.c (lwp_signal_can_be_delivered): New function.
8711 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
8712
8713 2016-03-18 Yao Qi <yao.qi@linaro.org>
8714
8715 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
8716 0 if signal is enqueued. Remove 'signal' from one debugging
8717 message. Move one debugging message to some lines below.
8718 Remove code setting 'signal' to 0.
8719
8720 2016-03-18 Yao Qi <yao.qi@linaro.org>
8721
8722 * linux-low.c (linux_low_filter_event): Remove redundant
8723 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
8724
8725 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
8726
8727 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
8728 (struct linux_target_ops): Wire in the above.
8729
8730 2016-03-03 Yao Qi <yao.qi@linaro.org>
8731
8732 * linux-low.c: Update comments to start_step_over.
8733
8734 2016-03-03 Yao Qi <yao.qi@linaro.org>
8735
8736 PR server/19736
8737 * linux-low.c (handle_extended_wait): Set child suspended
8738 if event_lwp->bp_reinsert isn't zero.
8739
8740 2016-03-02 Yao Qi <yao.qi@linaro.org>
8741
8742 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
8743 enqueue_pending_signal.
8744
8745 2016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
8746
8747 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
8748 is actually loaded.
8749
8750 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8751
8752 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
8753 (s390_regmap_3264) [!__s390x__]: New global.
8754 (s390_collect_ptrace_register): Skip map entries containing -1.
8755 (s390_supply_ptrace_register): Ditto.
8756 (s390_fill_gprs_high): New function.
8757 (s390_store_gprs_high): New function.
8758 (s390_regsets): Add NT_S390_HIGH_GPRS.
8759 (s390_get_hwcap): Enable on 31-bit.
8760 (have_hwcap_s390_high_gprs): Enable on 31-bit.
8761 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
8762 Detect NT_S390_HIGH_GPRS.
8763 (s390_usrregs_info_3264): Enable on 31-bit.
8764 (s390_regs_info): Enable regs_info_3264 on 31-bit.
8765 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
8766
8767 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8768
8769 PR gdb/13808
8770 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
8771 * configure.srv: Ditto.
8772 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
8773 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
8774 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
8775 (init_registers_amd64_linux): Remove prototype.
8776 (tdesc_amd64_linux): Remove declaration.
8777 (get_ipa_tdesc): New function.
8778 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8779 initialize remaining tdescs.
8780 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
8781 (init_registers_i386_linux): Remove prototype.
8782 (tdesc_i386_linux): Remove declaration.
8783 (get_ipa_tdesc): New function.
8784 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8785 initialize remaining tdescs.
8786 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
8787 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
8788 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
8789 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
8790 (x86_get_ipa_tdesc_idx): New function.
8791 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
8792 * linux-x86-tdesc.h: New file.
8793 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
8794 (target_get_ipa_tdesc_idx): New macro.
8795 * tracepoint.c (ipa_tdesc_idx): New macro.
8796 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
8797 (symbol_list): Add ipa_tdesc_idx.
8798 (cmd_qtstart): Write ipa_tdesc_idx in the target.
8799 (ipa_tdesc): Remove.
8800 (ipa_tdesc_idx): New variable.
8801 (get_context_regcache): Use get_ipa_tdesc.
8802 (gdb_collect): Ditto.
8803 (gdb_probe): Ditto.
8804 * tracepoint.h (get_ipa_tdesc): New prototype.
8805 (ipa_tdesc): Remove.
8806
8807 2016-02-24 Pedro Alves <palves@redhat.com>
8808
8809 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
8810 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
8811 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
8812 Factor out common code between the USE_SIGTRAP_SIGINFO and
8813 !USE_SIGTRAP_SIGINFO blocks.
8814 (linux_low_filter_event): Call save_stop_reason instead of
8815 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
8816 Update comments.
8817 (linux_wait_1): Update comments.
8818
8819 2016-02-24 Wei-cheng Wang <cole945@gmail.com>
8820
8821 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
8822 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
8823 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
8824 ppc_insert_point, ppc_remove_point.
8825
8826 2016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
8827
8828 * linux-s390-low.c (s390_supports_z_point_type): New function.
8829 (struct linux_target_ops): Wire s390_supports_z_point_type in.
8830
8831 2016-02-16 Yao Qi <yao.qi@linaro.org>
8832
8833 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
8834 PC. Get pc from regcache_read_pc.
8835
8836 2016-02-12 Yao Qi <yao.qi@linaro.org>
8837
8838 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
8839 or linux_get_pc_32bit.
8840 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
8841
8842 2016-02-12 Yao Qi <yao.qi@linaro.org>
8843
8844 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
8845 arm_linux_get_next_pcs_fixup.
8846
8847 2016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
8848
8849 * tracepoint.c (x_tracepoint_action_download): Change
8850 write_inferior_data_ptr to write_inferior_data_pointer.
8851 (cmd_qtstart): Likewise.
8852 (write_inferior_data_ptr): Remove.
8853 (download_agent_expr): Change write_inferior_data_ptr to
8854 write_inferior_data_pointer.
8855 (download_tracepoint_1): Likewise.
8856 (download_tracepoint): Likewise.
8857 (download_trace_state_variables): Likewise.
8858
8859 2016-02-11 Wei-cheng Wang <cole945@gmail.com>
8860 Marcin Kościelnicki <koriakin@0x04.net>
8861
8862 * tracepoint.c (struct tracepoint_action_ops): Remove.
8863 (struct tracepoint_action): Remove ops.
8864 (m_tracepoint_action_download, r_tracepoint_action_download)
8865 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
8866 size and offset accordingly.
8867 (m_tracepoint_action_ops, r_tracepoint_action_ops)
8868 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
8869 (tracepoint_action_send, tracepoint_action_download): New functions.
8870 Helpers for trace action handlers.
8871 (add_tracepoint_action): Remove setup actions ops.
8872 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
8873
8874 2016-02-10 Yao Qi <yao.qi@linaro.org>
8875
8876 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
8877
8878 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8879
8880 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
8881 to AC_OUTPUT.
8882 * configure: Regenerate.
8883
8884 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8885
8886 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
8887 void * to gdb_byte *.
8888 * linux-low.c (siginfo_fixup): Likewise.
8889 (linux_xfer_siginfo): Likewise.
8890 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
8891 Likewise.
8892 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
8893
8894 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
8895
8896 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
8897 to srv_tgtobj.
8898 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
8899 to srv_tgtobj.
8900 * linux-x86-low.c [__x86_64__]: Include
8901 "nat/amd64-linux-siginfo.h".
8902 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
8903 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
8904 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
8905 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
8906 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
8907 (cpt_si_fd, si_timerid, si_overrun): Move from
8908 nat/amd64-linux-siginfo.c.
8909 * Makefile.in (amd64-linux-siginfo.o:): New rule.
8910
8911 2016-01-28 Simon Marchi <simon.marchi@ericsson.com>
8912
8913 * server.c (skip_to_semicolon): Remove.
8914 (process_point_options): Use strchrnul instead of
8915 skip_to_semicolon.
8916
8917 2016-01-26 Yao Qi <yao.qi@linaro.org>
8918
8919 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
8920 * linux-low.c (install_software_single_step_breakpoints): Don't
8921 call regcache_read_pc.
8922 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
8923 argument pc.
8924
8925 2016-01-26 Yao Qi <yao.qi@linaro.org>
8926
8927 * linux-low.c (install_software_single_step_breakpoints): Call
8928 regcache_read_pc instead of get_pc.
8929
8930 2016-01-26 Yao Qi <yao.qi@linaro.org>
8931
8932 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
8933 (unblock_async_io): Rename to ...
8934 (block_unblock_async_io): ... it. New function.
8935 (enable_async_io): Don't install SIGIO handler. Unblock it
8936 instead.
8937 (disable_async_io): Don't ignore SIGIO. Block it instead.
8938 (initialize_async_io): Install SIGIO handler. Don't call
8939 unblock_async_io.
8940
8941 2016-01-26 Yao Qi <yao.qi@linaro.org>
8942
8943 * remote-utils.c (getpkt): If the buffer isn't empty, and the
8944 first character is '\003', call *the_target->request_interrupt.
8945
8946 2016-01-25 Yao Qi <yao.qi@linaro.org>
8947
8948 * remote-utils.c (new_thread_notify): Remove.
8949 (dead_thread_notify): Likewise.
8950 * remote-utils.h (new_thread_notify): Remove declaration.
8951 (dead_thread_notify): Likewise.
8952
8953 2016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
8954
8955 * gdb.trace/pending.exp: Fix expected message on continue.
8956
8957 2016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
8958
8959 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
8960 it works properly on big-endian machines where sizeof (CORE_ADDR)
8961 != sizeof (void *).
8962
8963 2016-01-21 Pedro Alves <palves@redhat.com>
8964
8965 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
8966 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
8967 * configure: Regenerate.
8968
8969 2016-01-21 Yao Qi <yao.qi@linaro.org>
8970
8971 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
8972 is_thumb and set it according to CPSR saved on the stack.
8973 (get_next_pcs_syscall_next_pc): Pass is_thumb to
8974 arm_sigreturn_next_pc.
8975
8976 2016-01-18 Yao Qi <yao.qi@linaro.org>
8977
8978 * linux-low.c (linux_set_pc_64bit): New function.
8979 (linux_get_pc_64bit): New function.
8980 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
8981 Declare.
8982 * linux-sparc-low.c (debug_threads): Remove declaration.
8983 (sparc_get_pc): Remove.
8984 (the_low_target): Use linux_get_pc_64bit instead of
8985 sparc_get_pc.
8986 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
8987 (the_low_target): Use linux_get_pc_64bit and
8988 linux_set_pc_64bit.
8989
8990 2016-01-18 Yao Qi <yao.qi@linaro.org>
8991
8992 * linux-arm-low.c (debug_threads): Remove declaration.
8993 (arm_get_pc, arm_set_pc): Remove.
8994 (the_low_target): Use linux_get_pc_32bit and
8995 linux_set_pc_32bit.
8996 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
8997 (the_low_target): Use linux_get_pc_32bit and
8998 linux_set_pc_32bit.
8999 * linux-cris-low.c (debug_threads): Remove declaration.
9000 (cris_get_pc, cris_set_pc,): Remove.
9001 (the_low_target): Use linux_get_pc_32bit and
9002 linux_set_pc_32bit.
9003 * linux-crisv32-low.c (debug_threads): Remove declaration.
9004 (cris_get_pc, cris_set_pc): Remove.
9005 (the_low_target): Use linux_get_pc_32bit and
9006 linux_set_pc_32bit.
9007 * linux-low.c: Include inttypes.h.
9008 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
9009 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
9010 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
9011 (the_low_target): Use linux_get_pc_32bit and
9012 linux_set_pc_32bit.
9013 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
9014 (the_low_target): Use linux_get_pc_32bit and
9015 linux_set_pc_32bit.
9016 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
9017 (the_low_target): Use linux_get_pc_32bit and
9018 linux_set_pc_32bit.
9019 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
9020 (the_low_target): Use linux_get_pc_32bit and
9021 linux_set_pc_32bit.
9022 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
9023 (the_low_target): Use linux_get_pc_32bit and
9024 linux_set_pc_32bit.
9025
9026 2016-01-18 Gary Benson <gbenson@redhat.com>
9027
9028 * configure.ac (AC_FUNC_FORK): New check.
9029 * config.in: Regenerate.
9030 * configure: Likewise.
9031
9032 2016-01-14 Yao Qi <yao.qi@linaro.org>
9033
9034 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
9035 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
9036 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
9037 arm_get_next_pcs_ctor.
9038
9039 2016-01-12 Josh Stone <jistone@redhat.com>
9040 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9041
9042 * inferiors.h: Include "gdb_vecs.h".
9043 (struct process_info): Add syscalls_to_catch.
9044 * inferiors.c (remove_process): Free syscalls_to_catch.
9045 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
9046 syscall_return stops.
9047 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
9048 * server.c (handle_general_set): Handle QCatchSyscalls.
9049 (handle_query): Report support for QCatchSyscalls.
9050 * target.h (struct target_ops): Add supports_catch_syscall.
9051 (target_supports_catch_syscall): New macro.
9052 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
9053 (struct lwp_info): Add syscall_state.
9054 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
9055 Maintain syscall_state and syscalls_to_catch across exec.
9056 (get_syscall_trapinfo): New function, proxy to the_low_target.
9057 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
9058 (linux_low_filter_event): Toggle syscall_state entry/return for
9059 syscall traps, and set it ignored for all others.
9060 (gdb_catching_syscalls_p): New function.
9061 (gdb_catch_this_syscall_p): New function.
9062 (linux_wait_1): Handle SYSCALL_SIGTRAP.
9063 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
9064 (linux_supports_catch_syscall): New function.
9065 (linux_target_ops): Install it.
9066 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
9067 (the_low_target): Install it.
9068
9069 2016-01-12 Mike Frysinger <vapier@gentoo.org>
9070
9071 * acinclude.m4: Include new ../warning.m4 file.
9072 * configure: Regenerated.
9073 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
9074
9075 2016-01-12 Mike Frysinger <vapier@gentoo.org>
9076
9077 * ax.c (is_goto_target): Mark static.
9078 * linux-low.c (register_addr): Likewise.
9079 (linux_fetch_registers, linux_store_registers): Likewise.
9080 * mem-break.c (any_persistent_commands): Fix old prototype.
9081 (add_commands_to_breakpoint): Mark static.
9082 * regcache.c (find_register_by_name): Delete unused func.
9083 * remote-utils.c (hex_or_minus_one): Mark static.
9084 * server.c (monitor_show_help): Mark static.
9085 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
9086 handle_v_requests): Likewise.
9087
9088 2016-01-12 Pedro Alves <palves@redhat.com>
9089
9090 Remove use of the registered trademark symbol throughout.
9091
9092 2016-01-08 Yao Qi <yao.qi@linaro.org>
9093
9094 * remote-utils.c (getpkt): If c is '\003', call target hook
9095 request_interrupt.
9096
9097 2016-01-06 Yao Qi <yao.qi@linaro.org>
9098
9099 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
9100 linux-aarch32-low.c.
9101 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9102 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
9103 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9104 (thumb2_breakpoint): Declare.
9105 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
9106 linux-aarch32-low.h.
9107 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9108 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
9109 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9110
9111 2016-01-01 Joel Brobecker <brobecker@adacore.com>
9112
9113 * gdbreplay.c (gdbreplay_version): Change copyright year in
9114 version message.
9115 * server.c (gdbserver_version): Likewise.
9116
9117 2015-12-28 Patrick Palka <patrick@parcs.ath.cx>
9118
9119 * server.c (crc32_table): Delete.
9120 (crc32): Use libiberty's xcrc32 function.
9121
9122 2015-12-22 Joel Brobecker <brobecker@adacore.com>
9123
9124 * lynx-low.c (lynx_delete_thread_callback): New function.
9125 (lynx_mourn): Properly delete our process and all of its
9126 threads. Remove call to clear_inferiors.
9127
9128 2015-12-22 Joel Brobecker <brobecker@adacore.com>
9129
9130 * target.c (thread_search_callback): Add check that
9131 the thread_stopped target callback is not NULL before
9132 calling it.
9133
9134 2015-12-21 Yao Qi <yao.qi@linaro.org>
9135
9136 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
9137 arm breakpoint.
9138
9139 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9140
9141 * server.c (handle_query): Call target_supports_software_single_step.
9142
9143 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9144
9145 * linux-low.c (single_step): New function.
9146 (linux_resume_one_lwp_throw): Call single_step.
9147 (start_step_over): Likewise.
9148
9149 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9150
9151 * Makefile.in (SFILES): Append arch/arm-linux.c,
9152 arch/arm-get-next-pcs.c.
9153 (arm-linux.o): New rule.
9154 (arm-get-next-pcs.o): New rule.
9155 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
9156 arm-linux.o.
9157 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
9158 to linux-aarch32-low.c.
9159 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9160 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9161 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9162 (thumb2_breakpoint_len): Likewise.
9163 (arm_is_thumb_mode): Make non-static.
9164 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
9165 from linux-aarch32-low.c.
9166 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9167 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9168 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9169 (thumb2_breakpoint_len): Likewise.
9170 (arm_is_thumb_mode): New declaration.
9171 * linux-arm-low.c: Include arch/arm-linux.h
9172 aarch/arm-get-next-pcs.h, sys/syscall.h.
9173 (get_next_pcs_ops): New struct.
9174 (get_next_pcs_addr_bits_remove): New function.
9175 (get_next_pcs_is_thumb): New function.
9176 (get_next_pcs_read_memory_unsigned_integer): Likewise.
9177 (arm_sigreturn_next_pc): Likewise.
9178 (get_next_pcs_syscall_next_pc): Likewise.
9179 (arm_gdbserver_get_next_pcs): Likewise.
9180 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
9181 Initialize.
9182 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
9183 * server.h: Include gdb_vecs.h.
9184
9185 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9186
9187 * Makefile.in (SFILES): Append common/common-regcache.c.
9188 (OBS): Append common-regcache.o.
9189 (common-regcache.o): New rule.
9190 * regcache.c (init_register_cache): Initialize cache to
9191 REG_UNAVAILABLE.
9192 (regcache_raw_read_unsigned): New function.
9193 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
9194 register_status enum.
9195
9196 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9197
9198 * linux-aarch64-low.c (the_low_targets): Rename
9199 breakpoint_reinsert_addr to get_next_pcs.
9200 * linux-arm-low.c (the_low_targets): Likewise.
9201 * linux-bfin-low.c (the_low_targets): Likewise.
9202 * linux-cris-low.c (the_low_targets): Likewise.
9203 * linux-crisv32-low.c (the_low_targets): Likewise.
9204 * linux-low.c (can_software_single_step): Likewise.
9205 (install_software_single_step_breakpoints): New function.
9206 (start_step_over): Use install_software_single_step_breakpoints.
9207 * linux-low.h: New CORE_ADDR vector.
9208 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
9209 get_next_pcs.
9210 * linux-mips-low.c (the_low_targets): Likewise.
9211 * linux-nios2-low.c (the_low_targets): Likewise.
9212 * linux-sparc-low.c (the_low_targets): Likewise.
9213
9214 2015-12-17 Pedro Alves <palves@redhat.com>
9215
9216 * linux-low.c (linux_kill_one_lwp): Remove references to
9217 LinuxThreads.
9218 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
9219 to 'kill'.
9220 (linux_init_signals): Delete.
9221 (initialize_low): Adjust.
9222 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
9223
9224 2015-12-16 Pedro Alves <palves@redhat.com>
9225
9226 * configure.ac (compiler warning flags): When testing a
9227 -Wno-foo option, check whether -Wfoo works instead.
9228 * configure: Regenerate.
9229
9230 2015-12-11 Don Breazeal <donb@codesourcery.com>
9231
9232 * server.c (process_serial_event): Don't exit from gdbserver
9233 in remote mode if there are still active inferiors.
9234
9235 2015-12-11 Yao Qi <yao.qi@linaro.org>
9236
9237 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
9238 arm_breakpoint_at if the process is 32-bit.
9239
9240 2015-12-11 Yao Qi <yao.qi@linaro.org>
9241
9242 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
9243 arm breakpoint.
9244
9245 2015-12-07 Yao Qi <yao.qi@linaro.org>
9246
9247 * configure.srv: Append arm.o to srv_tgtobj for
9248 aarch64*-*-linux* target.
9249 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
9250 from linux-arm-low.c.
9251 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9252 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9253 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9254 (thumb2_breakpoint_len): Likewise.
9255 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
9256 (arm_breakpoint_kinds): Likewise.
9257 (arm_breakpoint_kind_from_pc): Likewise.
9258 (arm_sw_breakpoint_from_kind): Likewise.
9259 (arm_breakpoint_kind_from_current_state): Likewise.
9260 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
9261 (arm_sw_breakpoint_from_kind): Declare.
9262 (arm_breakpoint_kind_from_current_state): Declare.
9263 (arm_breakpoint_at): Declare.
9264 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
9265 arm_sw_breakpoint_from_kind if process is 32-bit.
9266 (aarch64_breakpoint_kind_from_pc): New function.
9267 (aarch64_breakpoint_kind_from_current_state): New function.
9268 (the_low_target): Initialize fields breakpoint_kind_from_pc
9269 and breakpoint_kind_from_current_state.
9270 * linux-arm-low.c (arm_breakpoint_kinds): Move to
9271 linux-aarch32-low.c.
9272 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
9273 (arm_breakpoint, arm_breakpoint_len): Likewise.
9274 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
9275 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9276 (arm_is_thumb_mode): Likewise.
9277 (arm_breakpoint_at): Likewise.
9278 (arm_breakpoint_kind_from_pc): Likewise.
9279 (arm_sw_breakpoint_from_kind): Likewise.
9280 (arm_breakpoint_kind_from_current_state): Likewise.
9281
9282 Revert:
9283 2015-08-04 Yao Qi <yao.qi@linaro.org>
9284
9285 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
9286 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
9287 * server.c (extended_protocol): Remove "static".
9288 * server.h (extended_protocol): Declare it.
9289
9290 2015-12-04 Josh Stone <jistone@redhat.com>
9291
9292 * target.h (struct target_ops) <arch_setup>: Rename to ...
9293 (struct target_ops) <post_create_inferior>: ... this.
9294 (target_arch_setup): Rename to ...
9295 (target_post_create_inferior): ... this, calling post_create_inferior.
9296 * server.c (start_inferior): Update target_arch_setup calls to
9297 target_post_create_inferior.
9298 * linux-low.c (linux_low_ptrace_options): Forward declare.
9299 (linux_arch_setup): Update its comment for general use.
9300 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
9301 (struct linux_target_ops): Use linux_post_create_inferior.
9302 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
9303 to post_create_inferior.
9304 * nto-low.c (struct nto_target_ops): Likewise.
9305 * spu-low.c (struct spu_target_ops): Likewise.
9306 * win32-low.c (struct win32_target_ops): Likewise.
9307
9308 2015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
9309
9310 * linux-arm-low.c: Remove duplicate arch/arm.h include.
9311
9312 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9313
9314 * linux-arm-low.c (arm_reinsert_addr): Remove function.
9315 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
9316 * linux-cris-low.c (cris_reinsert_addr> Remove function.
9317 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9318 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
9319 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9320 * linux-mips-low.c (mips_reinsert_addr): Remove function.
9321 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9322 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
9323 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9324 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
9325 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9326
9327 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9328
9329 * linux-low.c (linux_look_up_symbols): Don't call
9330 linux_supports_traceclone.
9331 * linux-low.h (thread_db_init): Remove use_events argument.
9332 * thread-db.c (thread_db_use_event): Remove global variable.
9333 (struct thread_db) <td_thr_event_enable_p>: Remove field.
9334 (struct thread_db) <td_create_bp>: Remove field.
9335 (thread_db_create_event): Remove function.
9336 (thread_db_enable_reporting): Likewise.
9337 (find_one_thread): Don't check for thread_db_use_events.
9338 (attach_thread): Likewise.
9339 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
9340 (try_thread_db_load_1): Don't check for thread_db_use_events.
9341 (thread_db_init): Remove use_events argument and thread events
9342 handling.
9343 (remove_thread_event_breakpoints): Remove function.
9344 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
9345
9346 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9347
9348 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
9349 New function.
9350 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9351 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
9352 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9353 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
9354 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
9355 Initialize.
9356 * linux-crisv32-low.c (cris_supports_hardware_single_step):
9357 New function.
9358 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9359 * linux-low.c (can_hardware_single_step): Use
9360 supports_hardware_single_step.
9361 (can_software_single_step): New function.
9362 (start_step_over): Call can_software_single_step.
9363 (linux_supports_hardware_single_step): New function.
9364 (struct target_ops) <supports_software_single_step>: Initialize.
9365 * linux-low.h (struct linux_target_ops)
9366 <supports_hardware_single_step>: Initialize.
9367 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
9368 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9369 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
9370 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
9371 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
9372 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9373 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
9374 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9375 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
9376 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
9377 Initialize.
9378 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
9379 (struct linux_target_ops) <tile_supports_hardware_single_step>:
9380 Initialize.
9381 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
9382 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9383 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
9384 New function.
9385 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9386 * target.h (struct target_ops): <supports_software_single_step>:
9387 New field.
9388 (target_supports_software_single_step): New macro.
9389
9390 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9391
9392 * linux-low.c (linux_wait_1): Fix pc advance condition.
9393 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
9394 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
9395
9396 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9397
9398 * linux-arm-low.c (arm_is_thumb_mode): New function.
9399 (arm_breakpoint_at): Use arm_is_thumb_mode.
9400 (arm_breakpoint_kind_from_current_state): New function.
9401 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
9402 Initialize.
9403 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
9404 (linux_breakpoint_kind_from_current_state): New function.
9405 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
9406 * linux-low.h (struct linux_target_ops)
9407 <breakpoint_kind_from_current_state>: New field.
9408 * target.h (struct target_ops): Likewise.
9409 (target_breakpoint_kind_from_current_state): New macro.
9410
9411 2015-11-30 Pedro Alves <palves@redhat.com>
9412
9413 * linux-low.c (linux_resume): Wake up the event loop before
9414 returning.
9415
9416 2015-11-30 Pedro Alves <palves@redhat.com>
9417
9418 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
9419 check.
9420 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
9421 to -1.
9422 * target.c (struct thread_search): New structure.
9423 (thread_search_callback): New function.
9424 (prev_general_thread): New global.
9425 (prepare_to_access_memory, done_accessing_memory): New functions.
9426 * target.h (prepare_to_access_memory, done_accessing_memory):
9427 Replace macros with function declarations.
9428
9429 2015-11-30 Pedro Alves <palves@redhat.com>
9430
9431 PR 14618
9432 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
9433 report TARGET_WAITKIND_NO_RESUMED.
9434 * remote-utils.c (prepare_resume_reply): Handle
9435 TARGET_WAITKIND_NO_RESUMED.
9436 * server.c (report_no_resumed): New global.
9437 (handle_query) <qSupported>: Handle "no-resumed+". Report
9438 "no-resumed+" support.
9439 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
9440 return error if the client doesn't support no-resumed events.
9441 (push_stop_notification): New function.
9442 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
9443 events if the client supports them.
9444
9445 2015-11-30 Pedro Alves <palves@redhat.com>
9446
9447 * linux-low.c (thread_still_has_status_pending_p): Don't check
9448 vCont;t here.
9449 (lwp_resumed): New function.
9450 (status_pending_p_callback): Return early if the LWP is not
9451 supposed to be resumed.
9452
9453 2015-11-30 Pedro Alves <palves@redhat.com>
9454
9455 * linux-low.c (handle_extended_wait): Assert that the LWP's
9456 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
9457 thread create events, leave the new child's status pending.
9458 (linux_low_filter_event): If GDB wants to hear about thread exit
9459 events, leave the LWP marked dead and don't delete it.
9460 (linux_wait_for_event_filtered): Don't check for thread exit.
9461 (filter_exit_event): New function.
9462 (linux_wait_1): Use it, when returning an exit event.
9463 (linux_resume_one_lwp_throw): Assert that the LWP's
9464 waitstatus is TARGET_WAITKIND_IGNORE.
9465 * remote-utils.c (prepare_resume_reply): Handle
9466 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
9467 * server.c (report_thread_events): New global.
9468 (handle_general_set): Handle QThreadEvents.
9469 (handle_query) <qSupported>: Handle and report QThreadEvents+;
9470 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
9471 TARGET_WAITKIND_THREAD_EXITED.
9472 * server.h (report_thread_events): Declare.
9473
9474 2015-11-30 Pedro Alves <palves@redhat.com>
9475
9476 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
9477 the thread's last_resume_kind was resume_stop.
9478
9479 2015-11-30 Pedro Alves <palves@redhat.com>
9480
9481 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
9482 before returning.
9483
9484 2015-11-30 Pedro Alves <palves@redhat.com>
9485
9486 * server.c (handle_v_requests): Handle vCtrlC.
9487
9488 2015-11-30 Pedro Alves <palves@redhat.com>
9489
9490 * gdbthread.h (find_any_thread_of_pid): Declare.
9491 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
9492 functions.
9493 * server.c (handle_query): If current_thread is NULL, look for
9494 another thread of the selected process.
9495
9496 2015-11-26 Daniel Colascione <dancol@dancol.org>
9497 Simon Marchi <simon.marchi@ericsson.com>
9498
9499 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
9500 * server.c (handle_qxfer_threads_worker): Refactor to include thread
9501 name in reply.
9502 * target.h (struct target_ops) <thread_name>: New field.
9503 (target_thread_name): New macro.
9504
9505 2015-11-23 Joel Brobecker <brobecker@adacore.com>
9506
9507 * regcache.h (regcache_invalidate_pid): Add declaration.
9508 * regcache.c (regcache_invalidate_pid): New function, extracted
9509 from regcache_invalidate.
9510 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
9511 Add trivial documentation comment.
9512 * lynx-low.c: Use regcache_invalidate_pid instead of
9513 regcache_invalidate.
9514
9515 2015-11-23 Joel Brobecker <brobecker@adacore.com>
9516
9517 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
9518 and Elf64_auxv_t if the target is Android.
9519
9520 2015-11-22 Doug Evans <xdje42@gmail.com>
9521
9522 * target.h: #include <sys/types.h>.
9523
9524 2015-11-19 Pedro Alves <palves@redhat.com>
9525
9526 * linux-low.c (linux_process_qsupported): Change prototype.
9527 Adjust.
9528 * linux-low.h (struct linux_target_ops) <process_qsupported>:
9529 Change prototype.
9530 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
9531 and adjust to loop over all features.
9532 * server.c (handle_query) <qSupported>: Adjust to call
9533 target_process_qsupported once, passing it a vector of unprocessed
9534 features.
9535 * target.h (struct target_ops) <process_qsupported>: Change
9536 prototype.
9537 (target_process_qsupported): Adjust.
9538
9539 2015-11-19 Pedro Alves <palves@redhat.com>
9540
9541 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
9542 mode.
9543 * configure: Regenerate.
9544
9545 2015-11-19 Pedro Alves <palves@redhat.com>
9546
9547 * configure: Regenerate.
9548
9549 2015-11-19 Yao Qi <yao.qi@linaro.org>
9550
9551 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
9552 type to uint32_t.
9553
9554 2015-11-19 Yao Qi <yao.qi@linaro.org>
9555
9556 * linux-aarch64-low.c (enum aarch64_operand_type): New.
9557 (struct aarch64_operand): Move enum out.
9558
9559 2015-11-19 Yao Qi <yao.qi@linaro.org>
9560
9561 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
9562 struct user_fpsimd_state *.
9563 (aarch64_store_fpregset): Likewise.
9564
9565 2015-11-19 Yao Qi <yao.qi@linaro.org>
9566
9567 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
9568 struct user_pt_regs *.
9569 (aarch64_store_gregset): Likewise.
9570
9571 2015-11-18 Pedro Alves <palves@redhat.com>
9572
9573 * Makefile.in (all_object_files): Add $IPA_OBJS.
9574
9575 2015-11-17 Pedro Alves <palves@redhat.com>
9576
9577 * win32-low.c (win32_resume): Use gdb_signal_from_host,
9578 GDB_SIGNAL_0 and gdb_signal_to_string.
9579
9580 2015-11-17 Pedro Alves <palves@redhat.com>
9581
9582 * win32-low.c (handle_output_debug_string): Remove parameter.
9583 (win32_kill): Remove our_status local and adjust call to
9584 handle_output_debug_string.
9585 (get_child_debug_event): Adjust call to
9586 handle_output_debug_string.
9587
9588 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9589
9590 * linux-mips-low.c (mips_fill_gregset): Add cast.
9591 (mips_store_gregset): Likewise.
9592 (mips_fill_fpregset): Likewise.
9593 (mips_store_fpregset): Likewise.
9594
9595 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9596
9597 * linux-mips-low.c (mips_add_watchpoint): Rename private to
9598 priv.
9599
9600 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9601
9602 * linux-mips-low.c (mips_linux_new_thread): Change type of
9603 watch_type to enum target_hw_bp_type.
9604
9605 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9606
9607 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
9608 Change return type to arm_hwbp_type.
9609
9610 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9611
9612 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
9613 (arm_store_gregset): Likewise.
9614 * linux-arm-low.c (arm_get_hwcap): Likewise.
9615 (arm_read_description): Likewise.
9616
9617 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9618
9619 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
9620
9621 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9622
9623 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
9624 (ppc_fill_vsxregset): Likewise.
9625 (ppc_store_vsxregset): Likewise.
9626 (ppc_fill_vrregset): Likewise.
9627 (ppc_store_vrregset): Likewise.
9628 (ppc_fill_evrregset): Likewise.
9629 (ppc_store_evrregset): Likewise.
9630
9631 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9632
9633 * linux-ppc-low.c (ppc_usrregs_info): Remove
9634 forward-declaration.
9635 (ppc_arch_setup): Move lower in file.
9636
9637 2015-10-30 Simon Marchi <simon.marchi@ericsson.com>
9638
9639 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
9640 (ps_pdwrite): Likewise.
9641
9642 2015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
9643
9644 * linux-arm-low.c (arm_new_thread): Move pointer dereference
9645 to after assert checks.
9646
9647 2015-10-29 Simon Marchi <simon.marchi@ericsson.com>
9648
9649 * proc-service.c (ps_pdread): Add/adjust casts.
9650 (ps_pdwrite): Add/adjust casts.
9651
9652 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9653
9654 * server.c (handle_search_memory_1): Cast return value of
9655 memmem.
9656
9657 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9658
9659 * server.c (write_qxfer_response): Change type of data to
9660 gdb_byte *.
9661
9662 2015-10-29 Pedro Alves <palves@redhat.com>
9663
9664 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
9665
9666 2015-10-29 Pedro Alves <palves@redhat.com>
9667
9668 * tracepoint.c (clear_installed_tracepoints): Add casts.
9669
9670 2015-10-29 Pedro Alves <palves@redhat.com>
9671
9672 * server.c (handle_v_cont, process_serial_event): Add enum
9673 gdb_signal casts to signal parsing code.
9674
9675 2015-10-29 Pedro Alves <palves@redhat.com>
9676
9677 * linux-low.h (NULL_REGSET): Define.
9678 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9679 * linux-arm-low.c (arm_regsets): Likewise.
9680 * linux-crisv32-low.c (cris_regsets): Likewise.
9681 * linux-m68k-low.c (m68k_regsets): Likewise.
9682 * linux-mips-low.c (mips_regsets): Likewise.
9683 * linux-nios2-low.c (nios2_regsets): Likewise.
9684 * linux-ppc-low.c (ppc_regsets): Likewise.
9685 * linux-s390-low.c (s390_regsets): Likewise.
9686 * linux-sh-low.c (sh_regsets): Likewise.
9687 * linux-sparc-low.c (sparc_regsets): Likewise.
9688 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9689 * linux-tile-low.c (tile_regsets): Likewise.
9690 * linux-x86-low.c (x86_regsets): Likewise.
9691 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9692
9693 2015-10-29 Pedro Alves <palves@redhat.com>
9694
9695 * linux-low.h (NULL_REGSET): Define.
9696 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9697 * linux-arm-low.c (arm_regsets): Likewise.
9698 * linux-crisv32-low.c (cris_regsets): Likewise.
9699 * linux-m68k-low.c (m68k_regsets): Likewise.
9700 * linux-mips-low.c (mips_regsets): Likewise.
9701 * linux-nios2-low.c (nios2_regsets): Likewise.
9702 * linux-ppc-low.c (ppc_regsets): Likewise.
9703 * linux-s390-low.c (s390_regsets): Likewise.
9704 * linux-sh-low.c (sh_regsets): Likewise.
9705 * linux-sparc-low.c (sparc_regsets): Likewise.
9706 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9707 * linux-tile-low.c (tile_regsets): Likewise.
9708 * linux-x86-low.c (x86_regsets): Likewise.
9709 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9710
9711 2015-10-26 Doug Evans <dje@google.com>
9712
9713 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
9714
9715 2015-10-26 Doug Evans <dje@google.com>
9716
9717 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
9718
9719 2015-10-26 Doug Evans <dje@google.com>
9720
9721 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
9722 for debug_printf.
9723 (attach_thread, find_new_threads_callback): Ditto.
9724
9725 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9726
9727 * mem-break.h (set_breakpoint_data): Remove.
9728
9729 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9730
9731 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
9732 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9733 (initialize_low): Remove set_breakpoint_data call.
9734 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
9735 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
9736 (initialize_low): Remove set_breakpoint_data call.
9737 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
9738 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9739 (initialize_low): Remove set_breakpoint_data call.
9740
9741 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9742
9743 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
9744 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
9745 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
9746 * target.h (target_breakpoint_kind_from_pc): New macro.
9747
9748 2015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
9749
9750 * linux-low.c (default_breakpoint_kind_from_pc): New function.
9751 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
9752 the default breakpoint kind.
9753
9754 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9755
9756 * linux-arm-low.c (arm_supports_z_point_type): Add software
9757 breakpoint support.
9758
9759 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9760
9761 * linux-arm-low.c: Refactor breakpoint definitions.
9762 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
9763 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
9764
9765 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9766
9767 * Makefile.in: Add arm.c/o.
9768 * configure.srv: Likewise.
9769 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
9770 (arm_breakpoint_kind_from_pc): New function.
9771 (arm_sw_breakpoint_from_kind): Return proper kind.
9772 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
9773
9774 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9775
9776 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
9777 removal.
9778 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
9779 (struct raw_breakpoint) <size>: Remove.
9780 (struct raw_breakpoint) <kind>: Add.
9781 (bp_size): New function.
9782 (bp_opcode): Likewise.
9783 (find_raw_breakpoint_at): Adjust for kind.
9784 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
9785 (remove_memory_breakpoint): Adjust for kind call bp_size.
9786 (set_raw_breakpoint_at): Adjust for kind.
9787 (set_breakpoint): Likewise.
9788 (set_breakpoint_at): Call breakpoint_kind_from_pc.
9789 (delete_raw_breakpoint): Adjust for kind.
9790 (delete_breakpoint): Likewise.
9791 (find_gdb_breakpoint): Likewise.
9792 (set_gdb_breakpoint_1): Likewise.
9793 (set_gdb_breakpoint): Likewise.
9794 (delete_gdb_breakpoint_1): Likewise.
9795 (delete_gdb_breakpoint): Likewise.
9796 (uninsert_raw_breakpoint): Likewise.
9797 (reinsert_raw_breakpoint): Likewise.
9798 (set_breakpoint_data): Remove.
9799 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
9800 (check_mem_read): Adjust for kind call bp_size.
9801 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
9802 (clone_one_breakpoint): Adjust for kind.
9803 * mem-break.h (set_gdb_breakpoint): Likewise.
9804 (delete_gdb_breakpoint): Likewise.
9805 * server.c (process_serial_event): Likewise.
9806
9807 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9808
9809 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
9810 (struct linux_target_ops) <breakpoint>: Remove.
9811 (struct linux_target_ops) <breakpoint_len>: Remove.
9812 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9813 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9814 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
9815 (arm_sw_breakpoint_from_kind): New function.
9816 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
9817 (struct linux_target_ops) <breakpoint>: Remove.
9818 (struct linux_target_ops) <breakpoint_len>: Remove.
9819 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9820 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9821 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
9822 (struct linux_target_ops) <breakpoint>: Remove.
9823 (struct linux_target_ops) <breakpoint_len>: Remove.
9824 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9825 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9826 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
9827 (struct linux_target_ops) <breakpoint>: Remove.
9828 (struct linux_target_ops) <breakpoint_len>: Remove.
9829 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9830 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9831 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
9832 and sw_breakpoint_from_kind to increment the pc.
9833 (linux_breakpoint_kind_from_pc): New function.
9834 (linux_sw_breakpoint_from_kind): New function.
9835 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
9836 (initialize_low): Call breakpoint_kind_from_pc and
9837 sw_breakpoint_from_kind to replace breakpoint_data/len.
9838 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
9839 New field.
9840 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
9841 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
9842 (struct linux_target_ops) <breakpoint>: Remove.
9843 (struct linux_target_ops) <breakpoint_len>: Remove.
9844 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9845 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9846 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
9847 (struct linux_target_ops) <breakpoint>: Remove.
9848 (struct linux_target_ops) <breakpoint_len>: Remove.
9849 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9850 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9851 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
9852 (struct linux_target_ops) <breakpoint>: Remove.
9853 (struct linux_target_ops) <breakpoint_len>: Remove.
9854 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9855 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9856 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
9857 (struct linux_target_ops) <breakpoint>: Remove.
9858 (struct linux_target_ops) <breakpoint_len>: Remove.
9859 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9860 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9861 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
9862 (struct linux_target_ops) <breakpoint>: Remove.
9863 (struct linux_target_ops) <breakpoint_len>: Remove.
9864 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9865 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9866 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
9867 (struct linux_target_ops) <breakpoint>: Remove.
9868 (struct linux_target_ops) <breakpoint_len>: Remove.
9869 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9870 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9871 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
9872 (struct linux_target_ops) <breakpoint>: Remove.
9873 (struct linux_target_ops) <breakpoint_len>: Remove.
9874 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9875 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9876 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
9877 (struct linux_target_ops) <breakpoint>: Remove.
9878 (struct linux_target_ops) <breakpoint_len>: Remove.
9879 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9880 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9881 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
9882 (struct linux_target_ops) <breakpoint>: Remove.
9883 (struct linux_target_ops) <breakpoint_len>: Remove.
9884 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9885 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9886 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
9887 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
9888 (struct linux_target_ops) <breakpoint>: Remove.
9889 (struct linux_target_ops) <breakpoint_len>: Remove.
9890 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9891 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9892 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
9893 (struct linux_target_ops) <breakpoint>: Remove.
9894 (struct linux_target_ops) <breakpoint_len>: Remove.
9895 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9896 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9897
9898 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9899
9900 * linux-cris-low.c (cris_get_pc): Remove void arg.
9901
9902 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9903
9904 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
9905 variable name.
9906
9907 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9908
9909 * inferiors.c (thread_pid_matches_callback): New function.
9910 (find_thread_process): New function.
9911 (remove_thread): Reset current_thread.
9912 (remove_process): Assert threads have been removed first.
9913
9914 2015-10-15 Yao Qi <yao.qi@linaro.org>
9915
9916 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
9917 if it is 3.
9918 (aarch64_remove_point): Likewise.
9919 * regcache.c (regcache_register_size): New function.
9920
9921 2015-10-12 Yao Qi <yao.qi@linaro.org>
9922
9923 * linux-aarch64-low.c: Update all callers as emit_load_store
9924 is renamed to aarch64_emit_load_store.
9925
9926 2015-10-12 Yao Qi <yao.qi@linaro.org>
9927
9928 * linux-aarch64-low.c: Update all callers of function renaming
9929 from emit_insn to aarch64_emit_insn.
9930
9931 2015-10-12 Yao Qi <yao.qi@linaro.org>
9932
9933 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
9934 arch/aarch64-insn.h.
9935 (struct aarch64_memory_operand): Likewise.
9936 (ENCODE): Likewise.
9937 (emit_insn): Move to arch/aarch64-insn.c.
9938 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
9939 (emit_load_store): Move to arch/aarch64-insn.c.
9940 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
9941 (can_encode_int32): Remove.
9942
9943 2015-10-12 Yao Qi <yao.qi@linaro.org>
9944
9945 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
9946 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
9947 (aarch64_relocate_instruction): Likewise.
9948 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
9949 (struct aarch64_insn_visitor): Likewise.
9950
9951 2015-10-12 Yao Qi <yao.qi@linaro.org>
9952
9953 * linux-aarch64-low.c (struct aarch64_insn_data): New.
9954 (struct aarch64_insn_visitor): New.
9955 (struct aarch64_insn_relocation_data): New.
9956 (aarch64_ftrace_insn_reloc_b): New function.
9957 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
9958 (aarch64_ftrace_insn_reloc_cb): Likewise.
9959 (aarch64_ftrace_insn_reloc_tb): Likewise.
9960 (aarch64_ftrace_insn_reloc_adr): Likewise.
9961 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
9962 (aarch64_ftrace_insn_reloc_others): Likewise.
9963 (visitor): New.
9964 (aarch64_relocate_instruction): Use visitor.
9965
9966 2015-10-12 Yao Qi <yao.qi@linaro.org>
9967
9968 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
9969 int. Add argument buf.
9970 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
9971 aarch64_relocate_instruction.
9972
9973 2015-10-12 Yao Qi <yao.qi@linaro.org>
9974
9975 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
9976 argument insn. Remove local variable insn. Don't call
9977 target_read_uint32.
9978 (aarch64_install_fast_tracepoint_jump_pad): Call
9979 target_read_uint32.
9980
9981 2015-09-30 Yao Qi <yao.qi@linaro.org>
9982
9983 * linux-aarch64-low.c (emit_movk): Shorten a long line.
9984 (emit_load_store_pair): Likewise.
9985
9986 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
9987
9988 * dll.c (match_dll): Add cast(s).
9989 (unloaded_dll): Likewise.
9990 * linux-low.c (second_thread_of_pid_p): Likewise.
9991 (delete_lwp_callback): Likewise.
9992 (count_events_callback): Likewise.
9993 (select_event_lwp_callback): Likewise.
9994 (linux_set_resume_request): Likewise.
9995 * server.c (accumulate_file_name_length): Likewise.
9996 (emit_dll_description): Likewise.
9997 (handle_qxfer_threads_worker): Likewise.
9998 (visit_actioned_threads): Likewise.
9999 * thread-db.c (any_thread_of): Likewise.
10000 * tracepoint.c (same_process_p): Likewise.
10001 (match_blocktype): Likewise.
10002 (build_traceframe_info_xml): Likewise.
10003
10004 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
10005
10006 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
10007 assignment.
10008 (gdb_unparse_agent_expr): Likewise.
10009 * hostio.c (require_data): Likewise.
10010 (handle_pread): Likewise.
10011 * linux-low.c (disable_regset): Likewise.
10012 (fetch_register): Likewise.
10013 (store_register): Likewise.
10014 (get_dynamic): Likewise.
10015 (linux_qxfer_libraries_svr4): Likewise.
10016 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
10017 (set_fast_tracepoint_jump): Likewise.
10018 (uninsert_fast_tracepoint_jumps_at): Likewise.
10019 (reinsert_fast_tracepoint_jumps_at): Likewise.
10020 (validate_inserted_breakpoint): Likewise.
10021 (clone_agent_expr): Likewise.
10022 * regcache.c (init_register_cache): Likewise.
10023 * remote-utils.c (putpkt_binary_1): Likewise.
10024 (decode_M_packet): Likewise.
10025 (decode_X_packet): Likewise.
10026 (look_up_one_symbol): Likewise.
10027 (relocate_instruction): Likewise.
10028 (monitor_output): Likewise.
10029 * server.c (handle_search_memory): Likewise.
10030 (handle_qxfer_exec_file): Likewise.
10031 (handle_qxfer_libraries): Likewise.
10032 (handle_qxfer): Likewise.
10033 (handle_query): Likewise.
10034 (handle_v_cont): Likewise.
10035 (handle_v_run): Likewise.
10036 (captured_main): Likewise.
10037 * target.c (write_inferior_memory): Likewise.
10038 * thread-db.c (try_thread_db_load_from_dir): Likewise.
10039 * tracepoint.c (init_trace_buffer): Likewise.
10040 (add_tracepoint_action): Likewise.
10041 (add_traceframe): Likewise.
10042 (add_traceframe_block): Likewise.
10043 (cmd_qtdpsrc): Likewise.
10044 (cmd_qtdv): Likewise.
10045 (cmd_qtstatus): Likewise.
10046 (response_source): Likewise.
10047 (response_tsv): Likewise.
10048 (cmd_qtnotes): Likewise.
10049 (gdb_collect): Likewise.
10050 (initialize_tracepoint): Likewise.
10051
10052 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10053
10054 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
10055 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
10056 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
10057 <NOP>: New.
10058 (enum aarch64_condition_codes): New enum.
10059 (w0): New static global.
10060 (fp): Likewise.
10061 (lr): Likewise.
10062 (struct aarch64_memory_operand) <type>: New
10063 MEMORY_OPERAND_POSTINDEX type.
10064 (postindex_memory_operand): New helper function.
10065 (emit_ret): New function.
10066 (emit_load_store_pair): New function, factored out of emit_stp
10067 with support for MEMORY_OPERAND_POSTINDEX.
10068 (emit_stp): Rewrite using emit_load_store_pair.
10069 (emit_ldp): New function.
10070 (emit_load_store): Likewise.
10071 (emit_ldr): Mention post-index instruction in comment.
10072 (emit_ldrh): New function.
10073 (emit_ldrb): New function.
10074 (emit_ldrsw): Mention post-index instruction in comment.
10075 (emit_str): Likewise.
10076 (emit_subs): New function.
10077 (emit_cmp): Likewise.
10078 (emit_and): Likewise.
10079 (emit_orr): Likewise.
10080 (emit_orn): Likewise.
10081 (emit_eor): Likewise.
10082 (emit_mvn): Likewise.
10083 (emit_lslv): Likewise.
10084 (emit_lsrv): Likewise.
10085 (emit_asrv): Likewise.
10086 (emit_mul): Likewise.
10087 (emit_sbfm): Likewise.
10088 (emit_sbfx): Likewise.
10089 (emit_ubfm): Likewise.
10090 (emit_ubfx): Likewise.
10091 (emit_csinc): Likewise.
10092 (emit_cset): Likewise.
10093 (emit_nop): Likewise.
10094 (emit_ops_insns): New helper function.
10095 (emit_pop): Likewise.
10096 (emit_push): Likewise.
10097 (aarch64_emit_prologue): New function.
10098 (aarch64_emit_epilogue): Likewise.
10099 (aarch64_emit_add): Likewise.
10100 (aarch64_emit_sub): Likewise.
10101 (aarch64_emit_mul): Likewise.
10102 (aarch64_emit_lsh): Likewise.
10103 (aarch64_emit_rsh_signed): Likewise.
10104 (aarch64_emit_rsh_unsigned): Likewise.
10105 (aarch64_emit_ext): Likewise.
10106 (aarch64_emit_log_not): Likewise.
10107 (aarch64_emit_bit_and): Likewise.
10108 (aarch64_emit_bit_or): Likewise.
10109 (aarch64_emit_bit_xor): Likewise.
10110 (aarch64_emit_bit_not): Likewise.
10111 (aarch64_emit_equal): Likewise.
10112 (aarch64_emit_less_signed): Likewise.
10113 (aarch64_emit_less_unsigned): Likewise.
10114 (aarch64_emit_ref): Likewise.
10115 (aarch64_emit_if_goto): Likewise.
10116 (aarch64_emit_goto): Likewise.
10117 (aarch64_write_goto_address): Likewise.
10118 (aarch64_emit_const): Likewise.
10119 (aarch64_emit_call): Likewise.
10120 (aarch64_emit_reg): Likewise.
10121 (aarch64_emit_pop): Likewise.
10122 (aarch64_emit_stack_flush): Likewise.
10123 (aarch64_emit_zero_ext): Likewise.
10124 (aarch64_emit_swap): Likewise.
10125 (aarch64_emit_stack_adjust): Likewise.
10126 (aarch64_emit_int_call_1): Likewise.
10127 (aarch64_emit_void_call_2): Likewise.
10128 (aarch64_emit_eq_goto): Likewise.
10129 (aarch64_emit_ne_goto): Likewise.
10130 (aarch64_emit_lt_goto): Likewise.
10131 (aarch64_emit_le_goto): Likewise.
10132 (aarch64_emit_gt_goto): Likewise.
10133 (aarch64_emit_ge_got): Likewise.
10134 (aarch64_emit_ops_impl): New static global variable.
10135 (aarch64_emit_ops): New target function, return
10136 &aarch64_emit_ops_impl.
10137 (struct linux_target_ops): Install it.
10138
10139 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10140
10141 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
10142 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
10143 aarch64-ipa.o.
10144 * linux-aarch64-ipa.c: New file.
10145 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
10146 and endian.h.
10147 (aarch64_get_thread_area): New target method.
10148 (extract_signed_bitfield): New helper function.
10149 (aarch64_decode_ldr_literal): New function.
10150 (enum aarch64_opcodes): New enum.
10151 (struct aarch64_register): New struct.
10152 (struct aarch64_operand): New struct.
10153 (x0): New static global.
10154 (x1): Likewise.
10155 (x2): Likewise.
10156 (x3): Likewise.
10157 (x4): Likewise.
10158 (w2): Likewise.
10159 (ip0): Likewise.
10160 (sp): Likewise.
10161 (xzr): Likewise.
10162 (aarch64_register): New helper function.
10163 (register_operand): Likewise.
10164 (immediate_operand): Likewise.
10165 (struct aarch64_memory_operand): New struct.
10166 (offset_memory_operand): New helper function.
10167 (preindex_memory_operand): Likewise.
10168 (enum aarch64_system_control_registers): New enum.
10169 (ENCODE): New macro.
10170 (emit_insn): New helper function.
10171 (emit_b): New function.
10172 (emit_bcond): Likewise.
10173 (emit_cb): Likewise.
10174 (emit_tb): Likewise.
10175 (emit_blr): Likewise.
10176 (emit_stp): Likewise.
10177 (emit_ldp_q_offset): Likewise.
10178 (emit_stp_q_offset): Likewise.
10179 (emit_load_store): Likewise.
10180 (emit_ldr): Likewise.
10181 (emit_ldrsw): Likewise.
10182 (emit_str): Likewise.
10183 (emit_ldaxr): Likewise.
10184 (emit_stxr): Likewise.
10185 (emit_stlr): Likewise.
10186 (emit_data_processing_reg): Likewise.
10187 (emit_data_processing): Likewise.
10188 (emit_add): Likewise.
10189 (emit_sub): Likewise.
10190 (emit_mov): Likewise.
10191 (emit_movk): Likewise.
10192 (emit_mov_addr): Likewise.
10193 (emit_mrs): Likewise.
10194 (emit_msr): Likewise.
10195 (emit_sevl): Likewise.
10196 (emit_wfe): Likewise.
10197 (append_insns): Likewise.
10198 (can_encode_int32_in): New helper function.
10199 (aarch64_relocate_instruction): New function.
10200 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
10201 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
10202 (struct linux_target_ops): Install aarch64_get_thread_area,
10203 aarch64_install_fast_tracepoint_jump_pad and
10204 aarch64_get_min_fast_tracepoint_insn_len.
10205
10206 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10207
10208 * Makefile.in (aarch64-insn.o): New rule.
10209 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
10210
10211 2015-09-21 Yao Qi <yao.qi@linaro.org>
10212
10213 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
10214
10215 2015-09-21 Yao Qi <yao.qi@linaro.org>
10216
10217 * tracepoint.c (max_jump_pad_size): Remove.
10218
10219 2015-09-18 Yao Qi <yao.qi@linaro.org>
10220
10221 * linux-aarch64-low.c: Don't include sys/uio.h.
10222 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
10223
10224 2015-09-16 Wei-cheng Wang <cole945@gmail.com>
10225
10226 * tracepoint.c (eval_result_type): Change prototype.
10227 (condition_true_at_tracepoint): Fix argument to compiled_cond.
10228
10229 2015-09-15 Pedro Alves <palves@redhat.com>
10230
10231 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
10232 Check whether to report exec events instead of checking whether
10233 multiprocess is enabled.
10234
10235 2015-09-15 Pedro Alves <palves@redhat.com>
10236
10237 PR remote/18965
10238 * remote-utils.c (prepare_resume_reply): Merge
10239 TARGET_WAITKIND_VFORK_DONE switch case with the
10240 TARGET_WAITKIND_FORKED case.
10241
10242 2015-09-15 Yao Qi <yao.qi@linaro.org>
10243
10244 * server.c (handle_query): Check string comparison using
10245 "else if" instead of "if".
10246
10247 2015-09-15 Yao Qi <yao.qi@linaro.org>
10248
10249 * server.c (vCont_supported): New global variable.
10250 (handle_query): Set vCont_supported to 1 if "vContSupported+"
10251 matches. Append ";vContSupported+" to own_buf.
10252 (handle_v_requests): Append ";s;S" to own_buf if target supports
10253 hardware single step or vCont_supported is false.
10254 (capture_main): Set vCont_supported to zero.
10255
10256 2015-09-15 Yao Qi <yao.qi@linaro.org>
10257
10258 * linux-low.c (linux_supports_conditional_breakpoints): Rename
10259 it to ...
10260 (linux_supports_hardware_single_step): ... New function.
10261 (linux_target_ops): Update.
10262 * lynx-low.c (lynx_target_ops): Set field
10263 supports_hardware_single_step to target_can_do_hardware_single_step.
10264 * nto-low.c (nto_target_ops): Likewise.
10265 * spu-low.c (spu_target_ops): Likewise.
10266 * win32-low.c (win32_target_ops): Likewise.
10267 * target.c (target_can_do_hardware_single_step): New function.
10268 * target.h (struct target_ops) <supports_conditional_breakpoints>:
10269 Remove. <supports_hardware_single_step>: New field.
10270 (target_supports_conditional_breakpoints): Remove.
10271 (target_supports_hardware_single_step): New macro.
10272 (target_can_do_hardware_single_step): Declare.
10273 * server.c (handle_query): Use target_supports_hardware_single_step
10274 instead of target_supports_conditional_breakpoints.
10275
10276 2015-09-15 Yao Qi <yao.qi@linaro.org>
10277
10278 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
10279 function.
10280 (struct linux_target_ops the_low_target): Install
10281 aarch64_linux_siginfo_fixup.
10282
10283 2015-09-11 Don Breazeal <donb@codesourcery.com>
10284 Luis Machado <lgustavo@codesourcery.com>
10285
10286 * linux-low.c (linux_mourn): Static declaration.
10287 (linux_arch_setup): Move in front of
10288 handle_extended_wait.
10289 (linux_arch_setup_thread): New function.
10290 (handle_extended_wait): Handle exec events. Call
10291 linux_arch_setup_thread. Make event_lwp argument a
10292 pointer-to-a-pointer.
10293 (check_zombie_leaders): Do not check stopped threads.
10294 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
10295 (linux_low_filter_event): Add lwp and thread for exec'ing
10296 non-leader thread if leader thread has been deleted.
10297 Refactor code into linux_arch_setup_thread and call it.
10298 Pass child lwp pointer by reference to handle_extended_wait.
10299 (linux_wait_for_event_filtered): Update comment.
10300 (linux_wait_1): Prevent clobbering exec event status.
10301 (linux_supports_exec_events): New function.
10302 (linux_target_ops) <supports_exec_events>: Initialize new member.
10303 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
10304 new member.
10305 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
10306 * server.c (report_exec_events): New global variable.
10307 (handle_query): Handle qSupported query for exec-events feature.
10308 (captured_main): Initialize report_exec_events.
10309 * server.h (report_exec_events): Declare new global variable.
10310 * target.h (struct target_ops) <supports_exec_events>: New
10311 member.
10312 (target_supports_exec_events): New macro.
10313 * win32-low.c (win32_target_ops) <supports_exec_events>:
10314 Initialize new member.
10315
10316 2015-09-09 Markus Metzger <markus.t.metzger@intel.com>
10317
10318 * linux-low.c (linux_low_enable_btrace): Remove.
10319 (linux_target_ops): Replace linux_low_enable_btrace with
10320 linux_enable_btrace.
10321
10322 2015-09-03 Yao Qi <yao.qi@linaro.org>
10323
10324 * linux-aarch64-low.c (aarch64_insert_point): Call
10325 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
10326 returns true.
10327
10328 2015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10329
10330 * linux-low.c (check_stopped_by_breakpoint): Use
10331 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
10332
10333 2015-08-27 Pedro Alves <palves@redhat.com>
10334
10335 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
10336
10337 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
10338
10339 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
10340 the XNEW-family equivalent.
10341 (compile_bytecodes): Likewise.
10342 * dll.c (loaded_dll): Likewise.
10343 * event-loop.c (append_callback_event): Likewise.
10344 (create_file_handler): Likewise.
10345 (create_file_event): Likewise.
10346 * hostio.c (handle_open): Likewise.
10347 * inferiors.c (add_thread): Likewise.
10348 (add_process): Likewise.
10349 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
10350 * linux-arm-low.c (arm_new_process): Likewise.
10351 (arm_new_thread): Likewise.
10352 * linux-low.c (add_to_pid_list): Likewise.
10353 (linux_add_process): Likewise.
10354 (handle_extended_wait): Likewise.
10355 (add_lwp): Likewise.
10356 (enqueue_one_deferred_signal): Likewise.
10357 (enqueue_pending_signal): Likewise.
10358 (linux_resume_one_lwp_throw): Likewise.
10359 (linux_resume_one_thread): Likewise.
10360 (linux_read_memory): Likewise.
10361 (linux_write_memory): Likewise.
10362 * linux-mips-low.c (mips_linux_new_process): Likewise.
10363 (mips_linux_new_thread): Likewise.
10364 (mips_add_watchpoint): Likewise.
10365 * linux-x86-low.c (initialize_low_arch): Likewise.
10366 * lynx-low.c (lynx_add_process): Likewise.
10367 * mem-break.c (set_raw_breakpoint_at): Likewise.
10368 (set_breakpoint): Likewise.
10369 (add_condition_to_breakpoint): Likewise.
10370 (add_commands_to_breakpoint): Likewise.
10371 (clone_agent_expr): Likewise.
10372 (clone_one_breakpoint): Likewise.
10373 * regcache.c (new_register_cache): Likewise.
10374 * remote-utils.c (look_up_one_symbol): Likewise.
10375 * server.c (queue_stop_reply): Likewise.
10376 (start_inferior): Likewise.
10377 (queue_stop_reply_callback): Likewise.
10378 (handle_target_event): Likewise.
10379 * spu-low.c (fetch_ppc_memory): Likewise.
10380 (store_ppc_memory): Likewise.
10381 * target.c (set_target_ops): Likewise.
10382 * thread-db.c (thread_db_load_search): Likewise.
10383 (try_thread_db_load_1): Likewise.
10384 * tracepoint.c (add_tracepoint): Likewise.
10385 (add_tracepoint_action): Likewise.
10386 (create_trace_state_variable): Likewise.
10387 (cmd_qtdpsrc): Likewise.
10388 (cmd_qtro): Likewise.
10389 (add_while_stepping_state): Likewise.
10390 * win32-low.c (child_add_thread): Likewise.
10391 (get_image_name): Likewise.
10392
10393 2015-08-25 Yao Qi <yao.qi@linaro.org>
10394
10395 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
10396
10397 2015-08-25 Yao Qi <yao.qi@linaro.org>
10398
10399 * Makefile.in (aarch64-linux.o): New rule.
10400 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
10401 srv_tgtobj.
10402 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
10403 (aarch64_init_debug_reg_state): Make it extern.
10404 (aarch64_linux_prepare_to_resume): Remove.
10405
10406 2015-08-25 Yao Qi <yao.qi@linaro.org>
10407
10408 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
10409 lwp_arch_private_info and ptid_of_lwp.
10410
10411 2015-08-25 Yao Qi <yao.qi@linaro.org>
10412
10413 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
10414 Find proc_info by find_process_pid. All callers updated.
10415
10416 2015-08-25 Yao Qi <yao.qi@linaro.org>
10417
10418 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
10419 Remove.
10420 (debug_reg_change_callback): Remove.
10421 (aarch64_notify_debug_reg_change): Remove.
10422
10423 2015-08-25 Yao Qi <yao.qi@linaro.org>
10424
10425 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
10426 Call current_lwp_ptid.
10427
10428 2015-08-25 Yao Qi <yao.qi@linaro.org>
10429
10430 * linux-aarch64-low.c (debug_reg_change_callback): Use
10431 debug_printf.
10432
10433 2015-08-25 Yao Qi <yao.qi@linaro.org>
10434
10435 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
10436
10437 2015-08-25 Yao Qi <yao.qi@linaro.org>
10438
10439 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
10440
10441 2015-08-25 Yao Qi <yao.qi@linaro.org>
10442
10443 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
10444 the code.
10445
10446 2015-08-25 Yao Qi <yao.qi@linaro.org>
10447
10448 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
10449 Remove.
10450 (debug_reg_change_callback): Remove argument entry and add argument
10451 lwp. Remove local variable thread. Don't print thread id in the
10452 debugging output. Don't check whether pid of thread equals to pid.
10453 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
10454 iterate_over_lwps instead find_inferior.
10455
10456 2015-08-24 Pedro Alves <palves@redhat.com>
10457
10458 * inferiors.c (get_first_process): New function.
10459 * inferiors.h (get_first_process): New declaration.
10460 * remote-utils.c (read_ptid): Default to the first process in the
10461 list, instead of to the current thread's process.
10462
10463 2015-08-24 Pedro Alves <palves@redhat.com>
10464
10465 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
10466 * event-loop.c: Likewise.
10467 * remote-utils.c: Likewise.
10468 * tracepoint.c: Likewise.
10469
10470 2015-08-24 Pedro Alves <palves@redhat.com>
10471
10472 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
10473 ptid_get_lwp.
10474
10475 2015-08-21 Pedro Alves <palves@redhat.com>
10476
10477 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
10478 instead of literal 1.
10479
10480 2015-08-21 Pedro Alves <palves@redhat.com>
10481
10482 * tdesc.c (default_description): Explicitly zero-initialize.
10483
10484 2015-08-21 Pedro Alves <palves@redhat.com>
10485
10486 PR gdb/18749
10487 * inferiors.c (remove_thread): Discard any pending stop reply for
10488 this thread.
10489 * server.c (remove_all_on_match_pid): Rename to ...
10490 (remove_all_on_match_ptid): ... this. Work with a filter ptid
10491 instead of a pid.
10492 (discard_queued_stop_replies): Change parameter to a ptid. Now
10493 extern.
10494 (handle_v_kill, kill_inferior_callback, captured_main)
10495 (process_serial_event): Adjust.
10496 * server.h (discard_queued_stop_replies): Declare.
10497
10498 2015-08-21 Pedro Alves <palves@redhat.com>
10499
10500 * linux-low.c (wait_for_sigstop): Always switch to no thread
10501 selected if the previously current thread dies.
10502 * lynx-low.c (lynx_request_interrupt): Use the first thread's
10503 process instead of the current thread's.
10504 * remote-utils.c (input_interrupt): Don't check if there's no
10505 current thread.
10506 * server.c (gdb_read_memory, gdb_write_memory): If setting the
10507 current thread to the general thread fails, error out.
10508 (handle_qxfer_auxv, handle_qxfer_libraries)
10509 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
10510 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
10511 (handle_query): Check if there's a thread selected instead of
10512 checking whether there's any thread in the thread list.
10513 (handle_qxfer_threads, handle_qxfer_btrace)
10514 (handle_qxfer_btrace_conf): Don't error out early if there's no
10515 thread in the thread list.
10516 (handle_v_cont, myresume): Don't set the current thread to the
10517 continue thread.
10518 (process_serial_event) <Hg handling>: Also set thread_id if the
10519 previous general thread is still alive.
10520 (process_serial_event) <g/G handling>: If setting the current
10521 thread to the general thread fails, error out.
10522 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
10523 thread's lwp instead of the current thread's.
10524 * target.c (set_desired_thread): If the desired thread was not
10525 found, leave the current thread pointing to NULL. Return an int
10526 (boolean) indicating success.
10527 * target.h (set_desired_thread): Change return type to int.
10528
10529 2015-08-20 Max Filippov <jcmvbkbc@gmail.com>
10530
10531 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
10532 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
10533 #includes.
10534 (ps_get_thread_area): New function.
10535
10536 2015-08-19 Gary Benson <gbenson@redhat.com>
10537
10538 * hostio.c (handle_pread): Do not attempt to read more data
10539 than hostio_reply_with_data can fit in a packet.
10540
10541 2015-08-18 Joel Brobecker <brobecker@adacore.com>
10542
10543 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
10544
10545 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
10546
10547 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
10548
10549 2015-08-06 Pedro Alves <palves@redhat.com>
10550
10551 * tracepoint.c (expr_eval_result): Now an int.
10552
10553 2015-08-06 Pedro Alves <palves@redhat.com>
10554
10555 * gdbthread.h (struct regcache): Forward declare.
10556 (struct thread_info) <regcache_data>: Now a struct regcache
10557 pointer.
10558 * inferiors.c (inferior_regcache_data)
10559 (set_inferior_regcache_data): Now work with struct regcache
10560 pointers.
10561 * inferiors.h (struct regcache): Forward declare.
10562 (inferior_regcache_data, set_inferior_regcache_data): Now work
10563 with struct regcache pointers.
10564 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
10565 (free_register_cache_thread): Remove struct regcache pointer
10566 casts.
10567
10568 2015-08-06 Pedro Alves <palves@redhat.com>
10569
10570 * server.c (captured_main): On error, print the exception message
10571 to stderr, and if run_once is set, throw a quit.
10572
10573 2015-08-06 Pedro Alves <palves@redhat.com>
10574
10575 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
10576 the current thread.
10577
10578 2015-08-06 Pedro Alves <palves@redhat.com>
10579
10580 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
10581 reading beyond the passed in buffer length.
10582
10583 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
10584
10585 * tracepoint.c (symbol_list) <required>: Remove.
10586
10587 2015-08-06 Pedro Alves <palves@redhat.com>
10588
10589 * linux-low.c (handle_extended_wait): Set the fork child's suspend
10590 count if stopping and suspending threads.
10591 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
10592 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
10593 (linux_detach): Complete an ongoing step-over.
10594 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
10595 throughout.
10596 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
10597 (linux_wait_1): If passing a signal to the inferior after
10598 finishing a step-over, unsuspend and re-resume all lwps. If we
10599 see a single-step event but the thread should be continuing, don't
10600 pass the trap to gdb.
10601 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
10602 internal_error instead of gdb_assert.
10603 (enqueue_pending_signal): New function.
10604 (check_ptrace_stopped_lwp_gone): Add debug output.
10605 (start_step_over): Use internal_error instead of gdb_assert.
10606 (complete_ongoing_step_over): New function.
10607 (linux_resume_one_thread): Don't resume a suspended thread.
10608 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
10609 it stepping.
10610
10611 2015-08-06 Pedro Alves <palves@redhat.com>
10612
10613 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
10614 (linux_thread_alive): Use lwp_is_marked_dead.
10615 (extended_event_reported): Delete.
10616 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
10617 instead of extended_event_reported.
10618 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
10619 as well.
10620 (lwp_is_marked_dead): New function.
10621 (lwp_running): Use lwp_is_marked_dead.
10622 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
10623 comment.
10624
10625 2015-08-06 Pedro Alves <palves@redhat.com>
10626
10627 * linux-low.c (linux_wait_1): Move fork event output out of the
10628 !report_to_gdb check. Pass event_child->waitstatus to
10629 target_waitstatus_to_string instead of ourstatus.
10630
10631 2015-08-04 Yao Qi <yao.qi@linaro.org>
10632
10633 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
10634 if current_thread is 32 bit.
10635
10636 2015-08-04 Yao Qi <yao.qi@linaro.org>
10637
10638 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
10639 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
10640 * server.c (extended_protocol): Remove "static".
10641 * server.h (extended_protocol): Declare it.
10642
10643 2015-08-04 Yao Qi <yao.qi@linaro.org>
10644
10645 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
10646 both aarch64 and aarch32.
10647 (aarch64_set_pc): Likewise.
10648
10649 2015-08-04 Yao Qi <yao.qi@linaro.org>
10650
10651 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
10652 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
10653 arm-with-neon.xml to srv_xmlfiles.
10654 * linux-aarch64-low.c: Include linux-aarch32-low.h.
10655 (is_64bit_tdesc): New function.
10656 (aarch64_linux_read_description): New function.
10657 (aarch64_arch_setup): Call aarch64_linux_read_description.
10658 (regs_info): Rename to regs_info_aarch64.
10659 (aarch64_regs_info): Return right regs_info.
10660 (initialize_low_arch): Call initialize_low_arch_aarch32.
10661
10662 2015-08-04 Yao Qi <yao.qi@linaro.org>
10663
10664 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
10665 * linux-aarch32-low.c: New file.
10666 * linux-aarch32-low.h: New file.
10667 * linux-arm-low.c (arm_fill_gregset): Move it to
10668 linux-aarch32-low.c.
10669 (arm_store_gregset): Likewise.
10670 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
10671 (arm_store_vfpregset): Call arm_store_vfpregset_num.
10672 (arm_arch_setup): Check if PTRACE_GETREGSET works.
10673 (regs_info): Rename to regs_info_arm.
10674 (arm_regs_info): Return regs_info_aarch32 if
10675 have_ptrace_getregset is 1 and target description is
10676 arm_with_neon or arm_with_vfpv3.
10677 (initialize_low_arch): Don't call init_registers_arm_with_neon.
10678 Call initialize_low_arch_aarch32 instead.
10679
10680 2015-08-04 Yao Qi <yao.qi@linaro.org>
10681
10682 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
10683 * linux-low.c: ... here.
10684 * linux-low.h (have_ptrace_getregset): Declare it.
10685
10686 2015-08-04 Pedro Alves <palves@redhat.com>
10687
10688 * thread-db.c (struct thread_db): Use new typedefs.
10689 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
10690 CHK calls.
10691 (disable_thread_event_reporting): Cast result of dlsym to
10692 destination function pointer type.
10693 (thread_db_mourn): Use td_ta_delete_ftype.
10694
10695 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
10696
10697 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
10698 arch variant.
10699 (CDX_BREAKPOINT): Define for R2.
10700 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
10701 (the_low_target): Add comments.
10702
10703 2015-07-30 Yao Qi <yao.qi@linaro.org>
10704
10705 * linux-arm-low.c (arm_hwcap): Remove it.
10706 (arm_read_description): New local variable arm_hwcap. Don't
10707 set arm_hwcap to zero.
10708
10709 2015-07-30 Yao Qi <yao.qi@linaro.org>
10710
10711 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
10712 Use regcache->tdesc instead.
10713 (arm_store_wmmxregset): Likewise.
10714 (arm_fill_vfpregset): Likewise.
10715 (arm_store_vfpregset): Likewise.
10716
10717 2015-07-30 Yao Qi <yao.qi@linaro.org>
10718
10719 * linux-arm-low.c: Include arch/arm.h.
10720 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
10721 (arm_store_gregset): Likewise.
10722
10723 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
10724
10725 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
10726 ptrace's 4th parameter.
10727
10728 2015-07-27 Yao Qi <yao.qi@linaro.org>
10729
10730 * configure.srv (case aarch64*-*-linux*): Don't set
10731 srv_linux_usrregs.
10732
10733 2015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
10734
10735 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
10736 sys/ptrace.h.
10737 * linux-arm-low.c: Likewise.
10738 * linux-cris-low.c: Likewise.
10739 * linux-crisv32-low.c: Likewise.
10740 * linux-low.c: Likewise.
10741 * linux-m68k-low.c: Likewise.
10742 * linux-mips-low.c: Likewise.
10743 * linux-nios2-low.c: Likewise.
10744 * linux-s390-low.c: Likewise.
10745 * linux-sparc-low.c: Likewise.
10746 * linux-tic6x-low.c: Likewise.
10747 * linux-tile-low.c: Likewise.
10748 * linux-x86-low.c: Likewise.
10749
10750 2015-07-24 Pedro Alves <palves@redhat.com>
10751
10752 * config.in: Regenerate.
10753 * configure: Regenerate.
10754
10755 2015-07-24 Pedro Alves <palves@redhat.com>
10756
10757 * acinclude.m4: Include ../ptrace.m4.
10758 * configure.ac: Call GDB_AC_PTRACE.
10759 * config.in, configure: Regenerate.
10760
10761 2015-07-24 Yao Qi <yao.qi@linaro.org>
10762
10763 * linux-low.c (linux_create_inferior): Remove setting to
10764 proc->priv->new_inferior.
10765 (linux_attach): Likewise.
10766 (linux_low_filter_event): Likewise.
10767 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
10768
10769 2015-07-24 Yao Qi <yao.qi@linaro.org>
10770
10771 * linux-low.c (linux_arch_setup): New function.
10772 (linux_low_filter_event): If proc->tdesc is NULL and
10773 proc->attached is true, call the_low_target.arch_setup.
10774 Otherwise, keep status pending, and return.
10775 (linux_resume_one_lwp_throw): Don't call get_pc if
10776 thread->while_stepping isn't NULL. Don't call
10777 get_thread_regcache if proc->tdesc is NULL.
10778 (need_step_over_p): Return 0 if proc->tdesc is NULL.
10779 (linux_target_ops): Install arch_setup.
10780 * server.c (start_inferior): Call the_target->arch_setup.
10781 * target.h (struct target_ops) <arch_setup>: New field.
10782 (target_arch_setup): New marco.
10783 * lynx-low.c (lynx_target_ops): Update.
10784 * nto-low.c (nto_target_ops): Update.
10785 * spu-low.c (spu_target_ops): Update.
10786 * win32-low.c (win32_target_ops): Update.
10787
10788 2015-07-24 Yao Qi <yao.qi@linaro.org>
10789
10790 * linux-low.c (linux_add_process): Don't set
10791 proc->priv->new_inferior.
10792 (linux_create_inferior): Set proc->priv->new_inferior to 1.
10793 (linux_attach): Likewise.
10794
10795 2015-07-24 Yao Qi <yao.qi@linaro.org>
10796
10797 * server.c (start_inferior): Code refactor.
10798
10799 2015-07-24 Yao Qi <yao.qi@linaro.org>
10800
10801 * server.c (process_serial_event): Set general_thread.
10802
10803 2015-07-21 Yao Qi <yao.qi@linaro.org>
10804
10805 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
10806 aarch64_linux_get_debug_reg_capacity.
10807
10808 2015-07-17 Yao Qi <yao.qi@linaro.org>
10809
10810 * Makefile.in (aarch64-linux-hw-point.o): New rule.
10811 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
10812 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
10813 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
10814 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
10815 (AARCH64_HWP_ALIGNMENT): Likewise.
10816 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
10817 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
10818 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
10819 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
10820 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
10821 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
10822 (struct aarch64_debug_reg_state): Likewise.
10823 (struct arch_lwp_info): Likewise.
10824 (aarch64_align_watchpoint): Likewise.
10825 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
10826 (aarch64_watchpoint_length): Likewise.
10827 (aarch64_point_encode_ctrl_reg): Likewise
10828 (aarch64_point_is_aligned): Likewise.
10829 (aarch64_align_watchpoint): Likewise.
10830 (aarch64_linux_set_debug_regs):
10831 (aarch64_dr_state_insert_one_point): Likewise.
10832 (aarch64_dr_state_remove_one_point): Likewise.
10833 (aarch64_handle_breakpoint): Likewise.
10834 (aarch64_handle_aligned_watchpoint): Likewise.
10835 (aarch64_handle_unaligned_watchpoint): Likewise.
10836 (aarch64_handle_watchpoint): Likewise.
10837
10838 2015-07-17 Yao Qi <yao.qi@linaro.org>
10839
10840 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
10841 and don't aarch64_get_debug_reg_state. All callers update.
10842 (aarch64_handle_aligned_watchpoint): Likewise.
10843 (aarch64_handle_unaligned_watchpoint): Likewise.
10844 (aarch64_handle_watchpoint): Likewise.
10845 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
10846 (aarch64_remove_point): Likewise.
10847
10848 2015-07-17 Yao Qi <yao.qi@linaro.org>
10849
10850 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
10851 debug_printf.
10852 (aarch64_handle_unaligned_watchpoint): Likewise.
10853
10854 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10855
10856 Revert the previous 3 commits:
10857 Move gdb_regex* to common/
10858 Move linux_find_memory_regions_full & co.
10859 gdbserver build-id attribute generator
10860
10861 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10862 Jan Kratochvil <jan.kratochvil@redhat.com>
10863
10864 gdbserver build-id attribute generator.
10865 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
10866 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
10867 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
10868 (find_phdr): New.
10869 (get_dynamic): Use find_pdhr to traverse program headers.
10870 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
10871 (compare_mapping_entry_range, struct find_memory_region_callback_data)
10872 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
10873 (get_hex_build_id): New.
10874 (linux_qxfer_libraries_svr4): Add optional build-id attribute
10875 to reply XML document.
10876
10877 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10878 Jan Kratochvil <jan.kratochvil@redhat.com>
10879
10880 * target.c: Include target/target-utils.h and fcntl.h.
10881 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
10882 (target_fileio_read_stralloc): New functions.
10883
10884 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10885
10886 * Makefile.in (OBS): Add gdb_regex.o.
10887 (gdb_regex.o): New.
10888 * config.in: Rebuilt.
10889 * configure: Rebuilt.
10890
10891 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10892 Jan Kratochvil <jan.kratochvil@redhat.com>
10893
10894 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
10895 * Makefile.in (OBS): Add target-utils.o.
10896 (linux-maps.o, target-utils.o): New.
10897 * configure.srv (srv_linux_obj): Add linux-maps.o.
10898
10899 2015-07-15 Pierre Langlois <pierre.langlois@arm.com>
10900
10901 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
10902 function, return 1.
10903 (the_low_target): Install it.
10904
10905 2015-07-14 Pedro Alves <palves@redhat.com>
10906
10907 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
10908 Instead, ignore ECHILD, and throw an error for other errnos.
10909
10910 2015-07-10 Pedro Alves <palves@redhat.com>
10911
10912 * event-loop.c (struct callback_event) <data>: Change type to
10913 gdb_client_data instance instead of gdb_client_data pointer.
10914 (append_callback_event): Adjust.
10915
10916 2015-07-10 Pierre Langlois <pierre.langlois@arm.com>
10917
10918 * linux-aarch64-low.c: Add comments for each linux_target_ops
10919 method. Remove comments already covered in target_ops and
10920 linux_target_ops definitions.
10921 (the_low_target): Add comments for each unimplemented method.
10922
10923 2015-07-09 Yao Qi <yao.qi@linaro.org>
10924
10925 * linux-aarch64-low.c (aarch64_regmap): Remove.
10926 (aarch64_usrregs_info): Remove.
10927 (regs_info): Set field usrregs to NULL.
10928
10929 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
10930
10931 * linux-low.c: Include "rsp-low.h"
10932 (linux_low_encode_pt_config, linux_low_encode_raw): New.
10933 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
10934 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
10935 (handle_btrace_enable_pt): New.
10936 (handle_btrace_general_set): Support "pt".
10937 (handle_btrace_conf_general_set): Support "pt:size".
10938
10939 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10940
10941 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
10942 Z_PACKET_SW_BP.
10943
10944 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10945
10946 * linux-aarch64-low.c: Remove comment about endianness.
10947 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
10948 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
10949 memcmp.
10950
10951 2015-06-24 Gary Benson <gbenson@redhat.com>
10952
10953 * linux-i386-ipa.c (stdint.h): Do not include.
10954 * lynx-i386-low.c (stdint.h): Likewise.
10955 * lynx-ppc-low.c (stdint.h): Likewise.
10956 * mem-break.c (stdint.h): Likewise.
10957 * thread-db.c (stdint.h): Likewise.
10958 * tracepoint.c (stdint.h): Likewise.
10959 * win32-low.c (stdint.h): Likewise.
10960
10961 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
10962
10963 * server.c (write_qxfer_response): Update call to
10964 remote_escape_output.
10965
10966 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
10967 Jan Kratochvil <jan.kratochvil@redhat.com>
10968
10969 Merge multiple hex conversions.
10970 * gdbreplay.c (tohex): Rename to 'fromhex'.
10971 (logchar): Use fromhex.
10972
10973 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10974
10975 * server.c (handle_qxfer_libraries): Set `version' attribute for
10976 <library-list>.
10977
10978 2015-06-10 Gary Benson <gbenson@redhat.com>
10979
10980 * target.h (struct target_ops) <multifs_open>: New field.
10981 <multifs_unlink>: Likewise.
10982 <multifs_readlink>: Likewise.
10983 * linux-low.c (nat/linux-namespaces.h): New include.
10984 (linux_target_ops): Initialize the_target->multifs_open,
10985 the_target->multifs_unlink and the_target->multifs_readlink.
10986 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
10987 * hostio.c (hostio_fs_pid): New static variable.
10988 (hostio_handle_new_gdb_connection): New function.
10989 (handle_setfs): Likewise.
10990 (handle_open): Use the_target->multifs_open as appropriate.
10991 (handle_unlink): Use the_target->multifs_unlink as appropriate.
10992 (handle_readlink): Use the_target->multifs_readlink as
10993 appropriate.
10994 (handle_vFile): Handle vFile:setfs packets.
10995 * server.c (handle_query): Call hostio_handle_new_gdb_connection
10996 after target_handle_new_gdb_connection.
10997
10998 2015-06-10 Gary Benson <gbenson@redhat.com>
10999
11000 * configure.ac (AC_CHECK_FUNCS): Add setns.
11001 * config.in: Regenerate.
11002 * configure: Likewise.
11003 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
11004 (linux-namespaces.o): New rule.
11005 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
11006
11007 2015-06-09 Gary Benson <gbenson@redhat.com>
11008
11009 * hostio.c (handle_open): Process mode argument with
11010 fileio_to_host_mode.
11011
11012 2015-06-01 Yao Qi <yao.qi@linaro.org>
11013
11014 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
11015 * linux-x86-low.c: Likewise.
11016
11017 2015-05-28 Don Breazeal <donb@codesourcery.com>
11018
11019 * linux-low.c (handle_extended_wait): Initialize
11020 thread_info.last_resume_kind for new fork children.
11021
11022 2015-05-15 Pedro Alves <palves@redhat.com>
11023
11024 * target.h (target_handle_new_gdb_connection): Rewrite using if
11025 wrapped in do/while.
11026
11027 2015-05-14 Joel Brobecker <brobecker@adacore.com>
11028
11029 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
11030 * configure, config.in: Regenerate.
11031 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
11032 Declare typedef.
11033
11034 2015-05-12 Don Breazeal <donb@codesourcery.com>
11035
11036 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
11037 PTRACE_EVENT_VFORK_DONE.
11038 (linux_low_ptrace_options, extended_event_reported): Add vfork
11039 events.
11040 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
11041 and "vforkdone" for RSP 'T' Stop Reply Packet.
11042 * server.h (report_vfork_events): Declare
11043 global variable.
11044
11045 2015-05-12 Don Breazeal <donb@codesourcery.com>
11046
11047 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
11048 (the_low_target) <new_fork>: Initialize new member.
11049 * linux-arm-low.c (arm_new_fork): New function.
11050 (the_low_target) <new_fork>: Initialize new member.
11051 * linux-low.c (handle_extended_wait): Call new target function
11052 new_fork.
11053 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
11054 * linux-mips-low.c (mips_add_watchpoint): New function
11055 extracted from mips_insert_point.
11056 (the_low_target) <new_fork>: Initialize new member.
11057 (mips_linux_new_fork): New function.
11058 (mips_insert_point): Call mips_add_watchpoint.
11059 * linux-x86-low.c (x86_linux_new_fork): New function.
11060 (the_low_target) <new_fork>: Initialize new member.
11061
11062 2015-05-12 Don Breazeal <donb@codesourcery.com>
11063
11064 * linux-low.c (handle_extended_wait): Implement return value,
11065 rename argument 'event_child' to 'event_lwp', handle
11066 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
11067 (linux_low_ptrace_options): New function.
11068 (linux_low_filter_event): Call linux_low_ptrace_options,
11069 use different argument fo linux_enable_event_reporting,
11070 use return value from handle_extended_wait.
11071 (extended_event_reported): New function.
11072 (linux_wait_1): Call extended_event_reported and set
11073 status to report fork events.
11074 (linux_write_memory): Add pid to debug message.
11075 (reset_lwp_ptrace_options_callback): New function.
11076 (linux_handle_new_gdb_connection): New function.
11077 (linux_target_ops): Initialize new structure member.
11078 * linux-low.h (struct lwp_info) <waitstatus>: New member.
11079 * lynx-low.c: Initialize new structure member.
11080 * remote-utils.c (prepare_resume_reply): Implement stop reason
11081 "fork" for "T" stop message.
11082 * server.c (handle_query): Call handle_new_gdb_connection.
11083 * server.h (report_fork_events): Declare global flag.
11084 * target.h (struct target_ops) <handle_new_gdb_connection>:
11085 New member.
11086 (target_handle_new_gdb_connection): New macro.
11087 * win32-low.c: Initialize new structure member.
11088
11089 2015-05-12 Don Breazeal <donb@codesourcery.com>
11090
11091 * mem-break.c (APPEND_TO_LIST): Define macro.
11092 (clone_agent_expr): New function.
11093 (clone_one_breakpoint): New function.
11094 (clone_all_breakpoints): New function.
11095 * mem-break.h: Declare new functions.
11096
11097 2015-05-12 Don Breazeal <donb@codesourcery.com>
11098
11099 * linux-low.c (linux_supports_fork_events): New function.
11100 (linux_supports_vfork_events): New function.
11101 (linux_target_ops): Initialize new structure members.
11102 (initialize_low): Call linux_check_ptrace_features.
11103 * lynx-low.c (lynx_target_ops): Initialize new structure
11104 members.
11105 * server.c (report_fork_events, report_vfork_events):
11106 New global flags.
11107 (handle_query): Add new features to qSupported packet and
11108 response.
11109 (captured_main): Initialize new global variables.
11110 * target.h (struct target_ops) <supports_fork_events>:
11111 New member.
11112 <supports_vfork_events>: New member.
11113 (target_supports_fork_events): New macro.
11114 (target_supports_vfork_events): New macro.
11115 * win32-low.c (win32_target_ops): Initialize new structure
11116 members.
11117
11118 2015-05-12 Gary Benson <gbenson@redhat.com>
11119
11120 * server.c (handle_qxfer_exec_file): Use current process
11121 if annex is empty.
11122
11123 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
11124
11125 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
11126 Remove HAVE_PTRACE_GETREGS conditionals.
11127 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
11128 instead of PTRACE_GETREGS and PTRACE_SETREGS.
11129
11130 2015-05-08 Yao Qi <yao.qi@linaro.org>
11131
11132 * linux-low.c (linux_supports_conditional_breakpoints): New
11133 function.
11134 (linux_target_ops): Install new target method.
11135 * lynx-low.c (lynx_target_ops): Install NULL hook for
11136 supports_conditional_breakpoints.
11137 * nto-low.c (nto_target_ops): Likewise.
11138 * spu-low.c (spu_target_ops): Likewise.
11139 * win32-low.c (win32_target_ops): Likewise.
11140 * server.c (handle_query): Check
11141 target_supports_conditional_breakpoints.
11142 * target.h (struct target_ops) <supports_conditional_breakpoints>:
11143 New field.
11144 (target_supports_conditional_breakpoints): New macro.
11145
11146 2015-05-06 Pedro Alves <palves@redhat.com>
11147
11148 PR server/18081
11149 * server.c (start_inferior): If the process exits, mourn it.
11150
11151 2015-04-21 Gary Benson <gbenson@redhat.com>
11152
11153 * hostio.c (fileio_open_flags_to_host): Factored out to
11154 fileio_to_host_openflags in common/fileio.c. Single use
11155 updated.
11156
11157 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11158
11159 * linux-xtensa-low.c (xtensa_fill_gregset)
11160 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
11161 XCHAL_HAVE_LOOP.
11162
11163 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11164
11165 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
11166 (regs_info): Replace usrregs pointer with NULL.
11167
11168 2015-04-17 Gary Benson <gbenson@redhat.com>
11169
11170 * target.h (struct target_ops) <pid_to_exec_file>: New field.
11171 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
11172 * server.c (handle_qxfer_exec_file): New function.
11173 (qxfer_packets): Add exec-file entry.
11174 (handle_query): Report qXfer:exec-file:read as supported packet.
11175
11176 2015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
11177
11178 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
11179
11180 2015-04-09 Gary Benson <gbenson@redhat.com>
11181
11182 * hostio-errno.c (errno_to_fileio_error): Remove function.
11183 Update caller to use remote_fileio_to_fio_error.
11184
11185 2015-04-09 Yao Qi <yao.qi@linaro.org>
11186
11187 * linux-low.c (linux_insert_point): Call
11188 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
11189 (linux_remove_point): Call remove_memory_breakpoint if type is
11190 raw_bkpt_type_sw.
11191 * linux-x86-low.c (x86_insert_point): Don't call
11192 insert_memory_breakpoint.
11193 (x86_remove_point): Don't call remove_memory_breakpoint.
11194
11195 2015-04-01 Pedro Alves <palves@redhat.com>
11196 Cleber Rosa <crosa@redhat.com>
11197
11198 * server.c (gdbserver_usage): Reorganize and extend the usage
11199 message.
11200
11201 2015-03-24 Pedro Alves <palves@redhat.com>
11202
11203 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
11204 output. Also dump TRAP_TRACE.
11205 (linux_low_filter_event): In debug output, distinguish a
11206 resume_stop SIGSTOP from a delayed SIGSTOP.
11207
11208 2015-03-24 Gary Benson <gbenson@redhat.com>
11209
11210 * linux-x86-low.c (x86_linux_new_thread): Moved to
11211 nat/x86-linux.c.
11212 (x86_linux_prepare_to_resume): Likewise.
11213
11214 2015-03-24 Gary Benson <gbenson@redhat.com>
11215
11216 * Makefile.in (x86-linux-dregs.o): New rule.
11217 * configure.srv: Add x86-linux-dregs.o to relevant targets.
11218 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
11219 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
11220 (x86_linux_dr_get): Likewise.
11221 (x86_linux_dr_set): Likewise.
11222 (update_debug_registers_callback): Likewise.
11223 (x86_linux_dr_set_addr): Likewise.
11224 (x86_linux_dr_get_addr): Likewise.
11225 (x86_linux_dr_set_control): Likewise.
11226 (x86_linux_dr_get_control): Likewise.
11227 (x86_linux_dr_get_status): Likewise.
11228 (x86_linux_update_debug_registers): Likewise.
11229
11230 2015-03-24 Gary Benson <gbenson@redhat.com>
11231
11232 * linux-x86-low.c (x86_linux_update_debug_registers):
11233 New function, factored out from...
11234 (x86_linux_prepare_to_resume): ...this.
11235
11236 2015-03-24 Gary Benson <gbenson@redhat.com>
11237
11238 * linux-x86-low.c (x86_linux_dr_get): Update comments.
11239 (x86_linux_dr_set): Likewise.
11240 (update_debug_registers_callback): Likewise.
11241 (x86_linux_dr_set_addr): Likewise.
11242 (x86_linux_dr_get_addr): Likewise.
11243 (x86_linux_dr_set_control): Likewise.
11244 (x86_linux_dr_get_control): Likewise.
11245 (x86_linux_dr_get_status): Likewise.
11246 (x86_linux_prepare_to_resume): Likewise.
11247
11248 2015-03-24 Gary Benson <gbenson@redhat.com>
11249
11250 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
11251 Use perror_with_name. Pass string through gettext.
11252 (x86_linux_dr_set): Likewise.
11253
11254 2015-03-24 Gary Benson <gbenson@redhat.com>
11255
11256 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
11257 (x86_linux_dr_set_addr): ...this.
11258 (x86_dr_low_get_addr): Rename to...
11259 (x86_linux_dr_get_addr): ...this.
11260 (x86_dr_low_set_control): Rename to...
11261 (x86_linux_dr_set_control): ...this.
11262 (x86_dr_low_get_control): Rename to...
11263 (x86_linux_dr_get_control): ...this.
11264 (x86_dr_low_get_status): Rename to...
11265 (x86_linux_dr_get_status): ...this.
11266 (x86_dr_low): Update with new function names.
11267
11268 2015-03-24 Gary Benson <gbenson@redhat.com>
11269
11270 * Makefile.in (x86-linux.o): New rule.
11271 * configure.srv: Add x86-linux.o to relevant targets.
11272 * linux-low.c (lwp_set_arch_private_info): New function.
11273 (lwp_arch_private_info): Likewise.
11274 * linux-x86-low.c: Include nat/x86-linux.h.
11275 (arch_lwp_info): Removed structure.
11276 (update_debug_registers_callback):
11277 Use lwp_set_debug_registers_changed.
11278 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
11279 and lwp_set_debug_registers_changed.
11280 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
11281
11282 2015-03-24 Gary Benson <gbenson@redhat.com>
11283
11284 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
11285 * linux-arm-low.c (arm_new_thread): Likewise.
11286 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
11287 * linux-mips-low.c (mips_linux_new_thread): Likewise.
11288 * linux-x86-low.c (x86_linux_new_thread): Likewise.
11289 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
11290
11291 2015-03-24 Gary Benson <gbenson@redhat.com>
11292
11293 * linux-low.c (ptid_of_lwp): New function.
11294 (lwp_is_stopped): Likewise.
11295 (lwp_stop_reason): Likewise.
11296 * linux-x86-low.c (update_debug_registers_callback):
11297 Use lwp_is_stopped.
11298 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
11299 lwp_stop_reason.
11300
11301 2015-03-24 Gary Benson <gbenson@redhat.com>
11302
11303 * linux-low.h (linux_stop_lwp): Remove declaration.
11304
11305 2015-03-24 Gary Benson <gbenson@redhat.com>
11306
11307 * linux-low.h: Include nat/linux-nat.h.
11308 * linux-low.c (iterate_over_lwps_args): New structure.
11309 (iterate_over_lwps_filter): New function.
11310 (iterate_over_lwps): Likewise.
11311 * linux-x86-low.c (update_debug_registers_callback):
11312 Update signature to what iterate_over_lwps expects.
11313 Remove PID check that iterate_over_lwps now performs.
11314 (x86_dr_low_set_addr): Use iterate_over_lwps.
11315 (x86_dr_low_set_control): Likewise.
11316
11317 2015-03-24 Gary Benson <gbenson@redhat.com>
11318
11319 * linux-x86-low.c (x86_debug_reg_state): New function.
11320 (x86_linux_prepare_to_resume): Use the above.
11321
11322 2015-03-24 Gary Benson <gbenson@redhat.com>
11323
11324 * linux-low.c (current_lwp_ptid): New function.
11325 * linux-x86-low.c: Include nat/linux-nat.h.
11326 (x86_dr_low_get_addr): Use current_lwp_ptid.
11327 (x86_dr_low_get_control): Likewise.
11328 (x86_dr_low_get_status): Likewise.
11329
11330 2015-03-20 Pedro Alves <palves@redhat.com>
11331
11332 * tracepoint.c (cmd_qtstatus): Make "str" const.
11333
11334 2015-03-20 Pedro Alves <palves@redhat.com>
11335
11336 * server.c (handle_general_set): Make "req_str" const.
11337
11338 2015-03-19 Pedro Alves <palves@redhat.com>
11339
11340 * linux-low.c (linux_resume_one_lwp): Rename to ...
11341 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
11342 instead call perror_with_name.
11343 (check_ptrace_stopped_lwp_gone): New function.
11344 (linux_resume_one_lwp): Reimplement as wrapper around
11345 linux_resume_one_lwp_throw that swallows errors if the LWP is
11346 gone.
11347
11348 2015-03-19 Pedro Alves <palves@redhat.com>
11349
11350 * linux-low.c (count_events_callback, select_event_lwp_callback):
11351 No longer check whether the thread has resume_stop as last resume
11352 kind.
11353
11354 2015-03-19 Pedro Alves <palves@redhat.com>
11355
11356 * linux-low.c (count_events_callback, select_event_lwp_callback):
11357 Use the lwp's status_pending_p field, not the thread's.
11358
11359 2015-03-19 Pedro Alves <palves@redhat.com>
11360
11361 * linux-low.c (select_event_lwp_callback): Update comments to
11362 no longer mention SIGTRAP.
11363
11364 2015-03-18 Gary Benson <gbenson@redhat.com>
11365
11366 * server.c (handle_query): Do not report vFile:fstat as supported.
11367
11368 2015-03-11 Gary Benson <gbenson@redhat.com>
11369
11370 * hostio.c (sys/types.h): New include.
11371 (sys/stat.h): Likewise.
11372 (common-remote-fileio.h): Likewise.
11373 (handle_fstat): New function.
11374 (handle_vFile): Handle vFile:fstat packets.
11375
11376 2015-03-11 Gary Benson <gbenson@redhat.com>
11377
11378 * configure.ac (AC_CHECK_MEMBERS): Add checks for
11379 struct stat.st_blocks and struct stat.st_blksize.
11380 * configure: Regenerate.
11381 * config.in: Likewise.
11382 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
11383 (OBS): Add common-remote-fileio.o.
11384 (common-remote-fileio.o): New rule.
11385
11386 2015-03-09 Pedro Alves <palves@redhat.com>
11387
11388 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
11389 'struct sockaddr' pointer in 'accept' call.
11390
11391 2015-03-09 Pedro Alves <palves@redhat.com>
11392
11393 Revert:
11394 2015-03-07 Pedro Alves <palves@redhat.com>
11395 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11396 or <winsock2.h> here. Instead include "gdb_socket.h".
11397 (remote_open): Use union gdb_sockaddr_u.
11398 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11399 or <winsock2.h> here. Instead include "gdb_socket.h".
11400 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11401 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11402 or <sys/un.h>.
11403 (init_named_socket, gdb_agent_helper_thread): Use union
11404 gdb_sockaddr_u.
11405
11406 2015-03-07 Pedro Alves <palves@redhat.com>
11407
11408 * configure.ac (build_warnings): Move
11409 -Wdeclaration-after-statement to the C-specific set.
11410 * configure: Regenerate.
11411
11412 2015-03-07 Pedro Alves <palves@redhat.com>
11413
11414 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11415 or <winsock2.h> here. Instead include "gdb_socket.h".
11416 (remote_open): Use union gdb_sockaddr_u.
11417 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11418 or <winsock2.h> here. Instead include "gdb_socket.h".
11419 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11420 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11421 or <sys/un.h>.
11422 (init_named_socket, gdb_agent_helper_thread): Use union
11423 gdb_sockaddr_u.
11424
11425 2015-03-07 Pedro Alves <palves@redhat.com>
11426
11427 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
11428 instead.
11429
11430 2015-03-06 Yao Qi <yao.qi@linaro.org>
11431
11432 * linux-aarch64-low.c (aarch64_insert_point): Use
11433 show_debug_regs as a boolean.
11434 (aarch64_remove_point): Likewise.
11435
11436 2015-03-05 Pedro Alves <palves@redhat.com>
11437
11438 * lynx-low.c (lynx_target_ops): Install NULL hooks for
11439 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
11440 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
11441 * nto-low.c (nto_target_ops): Likewise.
11442 * spu-low.c (spu_target_ops): Likewise.
11443 * win32-low.c (win32_target_ops): Likewise.
11444
11445 2015-03-04 Pedro Alves <palves@redhat.com>
11446
11447 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
11448 Decide whether a breakpoint triggered based on the SIGTRAP's
11449 siginfo.si_code.
11450 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
11451 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
11452 (linux_low_filter_event): Check for breakpoints before checking
11453 watchpoints.
11454 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
11455 siginfo.si_code.
11456 (linux_stopped_by_sw_breakpoint)
11457 (linux_supports_stopped_by_sw_breakpoint)
11458 (linux_stopped_by_hw_breakpoint)
11459 (linux_supports_stopped_by_hw_breakpoint): New functions.
11460 (linux_target_ops): Install new target methods.
11461
11462 2015-03-04 Pedro Alves <palves@redhat.com>
11463
11464 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
11465 * server.c (swbreak_feature, hwbreak_feature): New globals.
11466 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
11467 (captured_main): Clear swbreak_feature and hwbreak_feature.
11468 * server.h (swbreak_feature, hwbreak_feature): Declare.
11469 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
11470 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
11471 supports_stopped_by_hw_breakpoint>: New fields.
11472 (target_supports_stopped_by_sw_breakpoint)
11473 (target_stopped_by_sw_breakpoint)
11474 (target_supports_stopped_by_hw_breakpoint)
11475 (target_stopped_by_hw_breakpoint): Declare.
11476
11477 2015-03-04 Pedro Alves <palves@redhat.com>
11478
11479 enum lwp_stop_reason -> enum target_stop_reason
11480 * linux-low.c (check_stopped_by_breakpoint): Adjust.
11481 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
11482 (linux_wait_1, stuck_in_jump_pad_callback)
11483 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
11484 (linux_stopped_by_watchpoint):
11485 * linux-low.h (enum lwp_stop_reason): Delete.
11486 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
11487 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11488
11489 2015-03-04 Yao Qi <yao.qi@linaro.org>
11490
11491 * Makefile.in (SFILES): Add linux-aarch64-low.c.
11492
11493 2015-03-03 Gary Benson <gbenson@redhat.com>
11494
11495 * hostio.c (handle_vFile): Fix prefix lengths.
11496
11497 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
11498
11499 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
11500 ptr_bits.
11501
11502 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
11503
11504 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
11505 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
11506 (clean): Add "rm -f" for above C files.
11507 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
11508 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
11509 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
11510 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
11511 * linux-s390-low.c (HWCAP_S390_VX): New macro.
11512 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
11513 (init_registers_s390x_vx_linux64)
11514 (init_registers_s390x_tevx_linux64)
11515 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
11516 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
11517 declarations.
11518 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
11519 (s390_store_vxrs_high): New functions.
11520 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
11521 NT_S390_VXRS_HIGH.
11522 (s390_arch_setup): Add logic for selecting one of the new target
11523 descriptions. Activate the new vector regsets if applicable.
11524 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
11525 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
11526 and init_registers_s390x_tevx_linux64.
11527
11528 2015-03-01 Pedro Alves <palves@redhat.com>
11529
11530 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
11531 parameter.
11532
11533 2015-02-27 Pedro Alves <palves@redhat.com>
11534
11535 * linux-x86-low.c (u_debugreg_offset): New function.
11536 (x86_linux_dr_get, x86_linux_dr_set): Use it.
11537
11538 2015-02-27 Pedro Alves <palves@redhat.com>
11539
11540 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
11541 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
11542 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
11543 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
11544 (ps_lsetfpregs, ps_getpid)
11545 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
11546 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
11547 (ps_lsetxregs, ps_plog): Declare.
11548
11549 2015-02-27 Pedro Alves <palves@redhat.com>
11550
11551 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
11552 IP_AGENT_EXPORT_FUNC.
11553 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
11554 IP_AGENT_EXPORT_FUNC.
11555 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
11556 (IP_AGENT_EXPORT): Delete.
11557 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11558 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11559 (gdb_trampoline_buffer_error, collecting, gdb_collect)
11560 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
11561 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
11562 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
11563 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
11564 (traceframe_read_count, traceframe_write_count)
11565 (traceframes_created, trace_state_variables, get_raw_reg)
11566 (get_trace_state_variable_value, set_trace_state_variable_value)
11567 (ust_loaded, helper_thread_id, cmd_buf): Use
11568 IPA_SYM_EXPORTED_NAME.
11569 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
11570 (tracepoints) Use IP_AGENT_EXPORT_VAR.
11571 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
11572 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11573 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
11574 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
11575 EXTERN_C_PUSH/EXTERN_C_POP.
11576 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
11577 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
11578 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11579 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
11580 (traceframe_write_count, traceframe_read_count)
11581 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
11582 (about_to_request_buffer_space, get_trace_state_variable_value)
11583 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
11584 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
11585 EXTERN_C_PUSH/EXTERN_C_POP.
11586 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
11587 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
11588 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
11589 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11590 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11591 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11592 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
11593 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
11594 Define.
11595 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
11596 (IP_AGENT_EXPORT_VAR_DECL): Define.
11597 (tracing): Declare.
11598 (gdb_agent_get_raw_reg): Declare.
11599
11600 2015-02-27 Tom Tromey <tromey@redhat.com>
11601 Pedro Alves <palves@redhat.com>
11602
11603 Rename symbols whose names are reserved C++ keywords throughout.
11604
11605 2015-02-27 Pedro Alves <palves@redhat.com>
11606
11607 * Makefile.in (COMPILER): New, get it from autoconf.
11608 (CXX): Get from autoconf instead.
11609 (COMPILE.pre): Use COMPILER.
11610 (CC-LD): Rename to ...
11611 (CC_LD): ... this. Use COMPILER.
11612 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
11613 (CXX_FOR_TARGET): Default to g++ instead of gcc.
11614 * acinclude.m4: Include build-with-cxx.m4.
11615 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
11616 Disable -Werror by default if building in C++ mode.
11617 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
11618 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
11619 the C++ compiler. Save/restore CXXFLAGS too.
11620 * configure: Regenerate.
11621
11622 2015-02-27 Pedro Alves <palves@redhat.com>
11623
11624 * acinclude.m4: Include libiberty.m4.
11625 * configure.ac: Call libiberty_INIT.
11626 * config.in, configure: Regenerate.
11627
11628 2015-02-26 Pedro Alves <palves@redhat.com>
11629
11630 * linux-low.c (linux_wait_1): When incrementing the PC past a
11631 program breakpoint always use the_low_target.breakpoint_len as
11632 increment, rather than the maximum between that and
11633 the_low_target.decr_pc_after_break.
11634
11635 2015-02-23 Pedro Alves <palves@redhat.com>
11636
11637 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
11638 thread was doing a step-over; always adjust the PC if
11639 we stepped over a permanent breakpoint.
11640 (linux_wait_1): If we stepped over breakpoint that was on top of a
11641 permanent breakpoint, manually advance the PC past it.
11642
11643 2015-02-23 Pedro Alves <palves@redhat.com>
11644
11645 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
11646 modes.
11647 (x86_fill_gregset, x86_store_gregset): Use it when handling
11648 $orig_eax.
11649
11650 2015-02-20 Pedro Alves <palves@redhat.com>
11651
11652 * thread-db.c: Include "nat/linux-procfs.h".
11653 (thread_db_init): Skip listing new threads if the kernel supports
11654 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
11655
11656 2015-02-20 Pedro Alves <palves@redhat.com>
11657
11658 * linux-low.c (status_pending_p_callback): Use ptid_match.
11659
11660 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
11661
11662 PR breakpoints/16812
11663 * linux-low.c (wstatus_maybe_breakpoint): Remove.
11664 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
11665 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
11666
11667 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
11668
11669 PR breakpoints/15956
11670 * tracepoint.c (cmd_qtinit): Add check for current_thread.
11671
11672 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11673
11674 * linux-low.c (linux_low_btrace_conf): Print size.
11675 * server.c (handle_btrace_conf_general_set): New.
11676 (hanle_general_set): Call handle_btrace_conf_general_set.
11677 (handle_query): Report Qbtrace-conf:bts:size as supported.
11678
11679 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11680
11681 * linux-low.c (linux_low_enable_btrace): Update parameters.
11682 (linux_low_btrace_conf): New.
11683 (linux_target_ops)<to_btrace_conf>: Initialize.
11684 * server.c (current_btrace_conf): New.
11685 (handle_btrace_enable): Rename to ...
11686 (handle_btrace_enable_bts): ... this. Pass &current_btrace_conf
11687 to target_enable_btrace. Update comment. Update users.
11688 (handle_qxfer_btrace_conf): New.
11689 (qxfer_packets): Add btrace-conf entry.
11690 (handle_query): Report qXfer:btrace-conf:read as supported packet.
11691 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
11692 (target_ops)<read_btrace_conf>: New.
11693 (target_enable_btrace): Update parameters.
11694 (target_read_btrace_conf): New.
11695
11696 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11697
11698 * server.c (handle_btrace_general_set): Remove call to
11699 target_supports_btrace.
11700 (supported_btrace_packets): New.
11701 (handle_query): Call supported_btrace_packets.
11702 * target.h: include btrace-common.h.
11703 (btrace_target_info): Removed.
11704 (supports_btrace, target_supports_btrace): Update parameters.
11705
11706 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11707
11708 * Makefile.in (SFILES): Add common/btrace-common.c.
11709 (OBS): Add common/btrace-common.o.
11710 (btrace-common.o): Add build rules.
11711 * linux-low: Include btrace-common.h.
11712 (linux_low_read_btrace): Use struct btrace_data. Call
11713 btrace_data_init and btrace_data_fini.
11714
11715 2015-02-06 Pedro Alves <palves@redhat.com>
11716
11717 * thread-db.c (find_new_threads_callback): Add debug output.
11718
11719 2015-02-04 Pedro Alves <palves@redhat.com>
11720
11721 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
11722 (resume_stopped_resumed_lwps): New function.
11723 (linux_wait_for_event_filtered): Use it.
11724
11725 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11726
11727 * Makefile.in (SFILES): Add linux-personality.c.
11728 (linux-personality.o): New rule.
11729 * configure.srv (srv_linux_obj): Add linux-personality.o to the
11730 list of objects to be built.
11731 * linux-low.c: Include nat/linux-personality.h.
11732 (linux_create_inferior): Remove code to disable address space
11733 randomization (moved to ../nat/linux-personality.c). Create
11734 cleanup to disable address space randomization.
11735
11736 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11737
11738 * Makefile.in (posix-strerror.o): New rule.
11739 (mingw-strerror.o): Likewise.
11740 * configure: Regenerated.
11741 * configure.ac: Source file ../common/common.host. Initialize new
11742 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
11743
11744 2015-01-14 Yao Qi <yao@codesourcery.com>
11745
11746 * Makefile.in (SFILES): Add nat/ppc-linux.c.
11747 (ppc-linux.o): New rule.
11748 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
11749 * configure.ac: AC_CHECK_FUNCS(getauxval).
11750 * config.in: Re-generated.
11751 * configure: Re-generated.
11752 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
11753 ppc64_64bit_inferior_p
11754
11755 2015-01-14 Yao Qi <yao@codesourcery.com>
11756
11757 * linux-ppc-low.c: Include "nat/ppc-linux.h".
11758 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
11759 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
11760 (PT_ORIG_R3, PT_TRAP): Likewise.
11761 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
11762 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
11763 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
11764
11765 2015-01-10 Joel Brobecker <brobecker@adacore.com>
11766
11767 * i387-fp.c (i387_cache_to_xsave): In look over
11768 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
11769 zmmh_low_space field by use of zmmh_high_space.
11770
11771 2015-01-09 Pedro Alves <palves@redhat.com>
11772
11773 * linux-low.c (step_over_bkpt): Move higher up in the file.
11774 (handle_extended_wait): Don't store the stop_pc here.
11775 (get_stop_pc): Adjust comments and rename to ...
11776 (check_stopped_by_breakpoint): ... this. Record whether the LWP
11777 stopped for a software breakpoint or hardware breakpoint.
11778 (thread_still_has_status_pending_p): New function.
11779 (status_pending_p_callback): Use
11780 thread_still_has_status_pending_p. If the event is no longer
11781 interesting, resume the LWP.
11782 (handle_tracepoints): Add assert.
11783 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
11784 (wstatus_maybe_breakpoint): New function.
11785 (cancel_breakpoint): Delete function.
11786 (check_stopped_by_watchpoint): New function, factored out from
11787 linux_low_filter_event.
11788 (lp_status_maybe_breakpoint): Delete function.
11789 (linux_low_filter_event): Remove filter_ptid argument.
11790 Leave thread group exits pending here. Store the LWP's stop PC.
11791 Always leave events pending.
11792 (linux_wait_for_event_filtered): Pull all events out of the
11793 kernel, and leave them all pending.
11794 (count_events_callback, select_event_lwp_callback): Consider all
11795 events.
11796 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
11797 (select_event_lwp): Only give preference to the stepping LWP in
11798 all-stop mode. Adjust comments.
11799 (ignore_event): New function.
11800 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
11801 references to cancel_breakpoints. Adjust to renames. Also give
11802 equal priority to all LWPs that have had events in non-stop mode.
11803 If reporting a software breakpoint event, unadjust the LWP's PC.
11804 (linux_wait): If linux_wait_1 returned an ignored event, retry.
11805 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
11806 Adjust.
11807 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
11808 (resume_status_pending_p): Use thread_still_has_status_pending_p.
11809 (linux_stopped_by_watchpoint): Adjust.
11810 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
11811 * linux-low.h (enum lwp_stop_reason): New.
11812 (struct lwp_info) <stop_pc>: Adjust comment.
11813 <stopped_by_watchpoint>: Delete field.
11814 <stop_reason>: New field.
11815 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11816 * mem-break.c (software_breakpoint_inserted_here)
11817 (hardware_breakpoint_inserted_here): New function.
11818 * mem-break.h (software_breakpoint_inserted_here)
11819 (hardware_breakpoint_inserted_here): Declare.
11820 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
11821 (cancel_breakpoints): Delete.
11822 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
11823 (upload_fast_traceframes): Remove references to
11824 cancel_breakpoints.
11825
11826 2015-01-09 Pedro Alves <palves@redhat.com>
11827
11828 * thread-db.c (find_new_threads_callback): Ignore thread if the
11829 kernel thread ID is -1.
11830
11831 2015-01-09 Pedro Alves <palves@redhat.com>
11832
11833 * linux-low.c (linux_attach_fail_reason_string): Move to
11834 nat/linux-ptrace.c, and rename.
11835 (linux_attach_lwp): Update comment.
11836 (attach_proc_task_lwp_callback): New function.
11837 (linux_attach): Adjust to rename and use
11838 linux_proc_attach_tgid_threads.
11839 (linux_attach_fail_reason_string): Delete declaration.
11840
11841 2015-01-01 Joel Brobecker <brobecker@adacore.com>
11842
11843 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
11844 * server.c (gdbserver_version): Likewise.
11845
11846 2014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
11847
11848 * remote-utils.c: Include ctype.h.
11849 (input_interrupt): Explicitly handle the case when the char
11850 received is the NUL byte. Improve the printing of non-ASCII
11851 characters.
11852
11853 2014-12-16 Joel Brobecker <brobecker@adacore.com>
11854
11855 * linux-low.c (linux_low_filter_event): Update call to
11856 linux_enable_event_reporting following the addition of
11857 a new parameter to that function.
11858
11859 2014-12-16 Catalin Udma <catalin.udma@freescale.com>
11860
11861 PR server/17457
11862 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
11863 (AARCH64_FPCR_REGNO): Likewise.
11864 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
11865 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
11866 (aarch64_store_fpregset): Likewise.
11867
11868 2014-12-15 Joel Brobecker <brobecker@adacore.com>
11869
11870 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
11871 Remove FIXME comment about assumption about N.
11872
11873 2014-12-13 Joel Brobecker <brobecker@adacore.com>
11874
11875 * configure.ac: If large-file support is disabled in GDBserver,
11876 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
11877 * configure: Regenerate.
11878
11879 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11880
11881 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
11882 warning upon ENODATA from ptrace.
11883 * linux-s390-low.c (s390_store_tdb): New.
11884 (s390_regsets): Add regset for NT_S390_TDB.
11885
11886 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11887
11888 * linux-low.c (regsets_store_inferior_registers): Skip regsets
11889 without a fill_function.
11890 * linux-s390-low.c (s390_fill_last_break): Remove.
11891 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
11892 (s390_arch_setup): Use regset's size instead of fill_function for
11893 loop end condition.
11894
11895 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11896
11897 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
11898 the regset's store function when ptrace returned an error.
11899 * regcache.c (get_thread_regcache): Invalidate register cache
11900 before fetching inferior's registers.
11901
11902 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11903
11904 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
11905 while-loop as for-loop.
11906 (regsets_store_inferior_registers): Likewise.
11907
11908 2014-11-28 Yao Qi <yao@codesourcery.com>
11909
11910 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
11911 * config.in, configure: Re-generate.
11912 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
11913 is defined.
11914
11915 2014-11-21 Yao Qi <yao@codesourcery.com>
11916
11917 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
11918 (AC_CHECK_HEADERS): Remove malloc.h.
11919 * configure: Re-generated.
11920 * config.in: Re-generated.
11921 * server.h: Don't include alloca.h and malloc.h.
11922 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
11923 Don't include malloc.h.
11924
11925 2014-11-17 Joel Brobecker <brobecker@adacore.com>
11926
11927 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
11928 corresponding ERRNO check in same block.
11929
11930 2014-11-12 Pedro Alves <palves@redhat.com>
11931
11932 * server.c (cont_thread): Update comment.
11933 (start_inferior, attach_inferior): No longer clear cont_thread.
11934 (handle_v_cont): No longer set cont_thread.
11935 (captured_main): Clear cont_thread each time a GDB connects.
11936
11937 2014-11-12 Pedro Alves <palves@redhat.com>
11938
11939 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
11940 thread, and don't resume all threads if the Hc thread has exited.
11941
11942 2014-11-12 Pedro Alves <palves@redhat.com>
11943
11944 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
11945 the process group instead of to a specific LWP.
11946
11947 2014-10-15 Pedro Alves <palves@redhat.com>
11948
11949 PR server/17487
11950 * win32-arm-low.c (arm_set_thread_context): Remove current_event
11951 parameter.
11952 (arm_set_thread_context): Delete.
11953 (the_low_target): Adjust.
11954 * win32-i386-low.c (debug_registers_changed)
11955 (debug_registers_used): Delete.
11956 (update_debug_registers_callback): New function.
11957 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
11958 needing to update their debug registers.
11959 (win32_get_current_dr): New function.
11960 (x86_dr_low_get_addr, x86_dr_low_get_control)
11961 (x86_dr_low_get_status): Fetch the debug register from the thread
11962 record's context.
11963 (i386_initial_stuff): Adjust.
11964 (i386_get_thread_context): Remove current_event parameter. Don't
11965 clear debug_registers_changed nor copy DR values to
11966 debug_reg_state.
11967 (i386_set_thread_context): Delete.
11968 (i386_prepare_to_resume): New function.
11969 (i386_thread_added): Mark the thread as needing to update irs
11970 debug registers.
11971 (the_low_target): Remove i386_set_thread_context and install
11972 i386_prepare_to_resume.
11973 * win32-low.c (win32_get_thread_context): Adjust.
11974 (win32_set_thread_context): Use SetThreadContext
11975 directly.
11976 (win32_prepare_to_resume): New function.
11977 (win32_require_context): New function, factored out from ...
11978 (thread_rec): ... this.
11979 (continue_one_thread): Call win32_prepare_to_resume on each thread
11980 we're about to continue.
11981 (win32_resume): Call win32_prepare_to_resume on the event thread.
11982 * win32-low.h (struct win32_thread_info)
11983 <debug_registers_changed>: New field.
11984 (struct win32_target_ops): Change prototype of set_thread_context,
11985 delete set_thread_context and add prepare_to_resume.
11986 (win32_require_context): New declaration.
11987
11988 2014-10-08 Gary Benson <gbenson@redhat.com>
11989
11990 * server.h: Do not include common-exceptions.h.
11991
11992 2014-10-08 Gary Benson <gbenson@redhat.com>
11993
11994 * server.h: Do not include cleanups.h.
11995
11996 2014-09-30 James Hogan <james.hogan@imgtec.com>
11997
11998 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
11999 mips64-dsp-linux.c.
12000
12001 2014-09-23 Yao Qi <yao@codesourcery.com>
12002
12003 * linux-low.c (lp_status_maybe_breakpoint): New function.
12004 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
12005 (count_events_callback): Likewise.
12006 (select_event_lwp_callback): Likewise.
12007 (cancel_breakpoints_callback): Likewise.
12008
12009 2014-09-19 Don Breazeal <donb@codesourcery.com>
12010
12011 * linux-low.c (handle_extended_wait): Call
12012 linux_ptrace_get_extended_event.
12013 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
12014 linux_is_extended_waitstatus.
12015
12016 2014-09-16 Joel Brobecker <brobecker@adacore.com>
12017
12018 * Makefile.in (CPPFLAGS): Define.
12019 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
12020 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
12021
12022 2014-09-16 Gary Benson <gbenson@redhat.com>
12023
12024 * inferiors.h (current_inferior): Renamed as...
12025 (current_thread): New variable. All uses updated.
12026 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
12027 (maybe_move_out_of_jump_pad): Likewise.
12028 (cancel_breakpoint): Likewise.
12029 (linux_low_filter_event): Likewise.
12030 (wait_for_sigstop): Likewise.
12031 (linux_resume_one_lwp): Likewise.
12032 (need_step_over_p): Likewise.
12033 (start_step_over): Likewise.
12034 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
12035 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
12036 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
12037 and save_inferior as saved_thread.
12038 * regcache.c (get_thread_regcache): Renamed saved_inferior as
12039 saved_thread.
12040 (regcache_invalidate_thread): Likewise.
12041 * remote-utils.c (prepare_resume_reply): Likewise.
12042 * thread-db.c (thread_db_get_tls_address): Likewise.
12043 (disable_thread_event_reporting): Likewise.
12044 (remove_thread_event_breakpoints): Likewise.
12045 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
12046 as saved_thread.
12047 * target.h (set_desired_inferior): Renamed as...
12048 (set_desired_thread): New declaration. All uses updated.
12049 * server.c (myresume): Updated comment to reference thread instead
12050 of inferior.
12051 (handle_serial_event): Likewise.
12052 (handle_target_event): Likewise.
12053
12054 2014-09-12 Tom Tromey <tromey@redhat.com>
12055 Gary Benson <gbenson@redhat.com>
12056
12057 * regcache.h: Include common-regcache.h.
12058 (regcache_read_pc): Don't declare.
12059 * regcache.c (get_thread_regcache_for_ptid): New function.
12060
12061 2014-09-11 Tom Tromey <tromey@redhat.com>
12062 Gary Benson <gbenson@redhat.com>
12063
12064 * symbol.c: New file.
12065 * Makefile.in (SFILES): Add symbol.c.
12066 (OBS): Add symbol.o.
12067
12068 2014-09-11 Gary Benson <gbenson@redhat.com>
12069
12070 * target.c (target_stop_ptid, target_continue_ptid): New
12071 functions.
12072
12073 2014-09-11 Tom Tromey <tromey@redhat.com>
12074 Gary Benson <gbenson@redhat.com>
12075
12076 * target.h: Include target/target.h.
12077 * target.c (target_read_memory, target_read_uint32)
12078 (target_write_memory): New functions.
12079
12080 2014-09-11 Gary Benson <gbenson@redhat.com>
12081
12082 * server.h (debug_hw_points): Don't declare.
12083 * server.c (debug_hw_points): Don't define. Replace all uses
12084 with show_debug_regs.
12085 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
12086 all uses with show_debug_regs.
12087
12088 2014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12089
12090 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
12091 endianness into account.
12092 (ppc_supply_ptrace_register): Likewise.
12093
12094 2014-09-03 James Hogan <james.hogan@imgtec.com>
12095
12096 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
12097 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
12098
12099 2014-09-03 Gary Benson <gbenson@redhat.com>
12100
12101 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
12102 ALL_DEBUG_ADDRESS_REGISTERS.
12103
12104 2014-09-02 Gary Benson <gbenson@redhat.com>
12105
12106 * i386-low.h: Renamed as...
12107 * x86-low.h: New file. All type, function and variable name
12108 prefixes changed from "i386_" to "x86_". All references updated.
12109 * i386-low.c: Renamed as...
12110 * x86-low.c: New file. All type, function and variable name
12111 prefixes changed from "i386_" to "x86_". All references updated.
12112
12113 2014-09-02 Gary Benson <gbenson@redhat.com>
12114
12115 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
12116 (x86_linux_new_thread): Likewise.
12117
12118 2014-08-29 Gary Benson <gbenson@redhat.com>
12119
12120 * server.h (setjmp.h): Do not include.
12121 (toplevel): Do not declare.
12122 (common-exceptions.h): Include.
12123 (cleanups.h): Likewise.
12124 * server.c (toplevel): Do not define.
12125 (exit_code): New static global.
12126 (detach_or_kill_for_exit_cleanup): New function.
12127 (main): New function. Original main renamed to...
12128 (captured_main): New function.
12129 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
12130
12131 2014-08-29 Gary Benson <gbenson@redhat.com>
12132
12133 * Makefile.in (SFILES): Add common/common-exceptions.c.
12134 (OBS): Add common-exceptions.o.
12135 (common-exceptions.o): New rule.
12136 * utils.c (prepare_to_throw_exception): New function.
12137
12138 2014-08-29 Gary Benson <gbenson@redhat.com>
12139
12140 * config.in: Regenerate.
12141 * configure: Likewise.
12142
12143 2014-08-29 Gary Benson <gbenson@redhat.com>
12144
12145 * Makefile.in (SFILES): Add common/cleanups.c.
12146 (OBS): cleanups.o.
12147 (cleanups.o): New rule.
12148
12149 2014-08-29 Gary Benson <gbenson@redhat.com>
12150
12151 * utils.c (internal_vwarning): New function.
12152
12153 2014-08-28 Gary Benson <gbenson@redhat.com>
12154
12155 * utils.h (fatal): Remove declaration.
12156 * utils.c (fatal): Remove function.
12157
12158 2014-08-28 Gary Benson <gbenson@redhat.com>
12159
12160 * tracepoint.c (gdb_agent_init): Replace fatal with
12161 perror_with_name.
12162 (initialize_tracepoint): Likewise.
12163
12164 2014-08-28 Gary Benson <gbenson@redhat.com>
12165
12166 * remote-utils.c (remote_prepare): Replace fatal with error.
12167
12168 2014-08-28 Gary Benson <gbenson@redhat.com>
12169
12170 * linux-low.c (linux_async): Replace fatal with warning.
12171 Tidy up and return.
12172 (linux_start_non_stop): Return -1 if linux_async failed.
12173
12174 2014-08-28 Gary Benson <gbenson@redhat.com>
12175
12176 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
12177 gdb_assert.
12178 (i386_dr_low_get_addr): Remove vague comment.
12179 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
12180 gdb_assert.
12181
12182 2014-08-28 Gary Benson <gbenson@redhat.com>
12183
12184 * inferiors.c (get_thread_process): Replace check with gdb_assert.
12185 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
12186 internal_error.
12187 (linux_resume_one_lwp): Likewise.
12188 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
12189 gdb_assert.
12190 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
12191 with internal_error.
12192 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
12193 (init_register_cache): Replace fatal with gdb_assert_not_reached.
12194 (find_register_by_name): Replace fatal with internal_error.
12195 (find_regno): Likewise.
12196 * tdesc.c (init_target_desc): Replace check with gdb_assert.
12197 * thread-db.c (thread_db_create_event): Likewise.
12198 (thread_db_load_search): Likewise.
12199 (try_thread_db_load_1): Likewise.
12200 * tracepoint.c (get_jump_space_head): Replace fatal with
12201 internal_error.
12202 (claim_trampoline_space): Likewise.
12203 (have_fast_tracepoint_trampoline_buffer): Likewise.
12204 (cmd_qtstart): Likewise.
12205 (stop_tracing): Likewise.
12206 (fast_tracepoint_collecting): Likewise.
12207 (target_malloc): Likewise.
12208 (download_tracepoint): Likewise.
12209 (download_trace_state_variables): Replace check with gdb_assert.
12210 (upload_fast_traceframes): Replace fatal with internal_error.
12211
12212 2014-08-19 Tom Tromey <tromey@redhat.com>
12213 Gary Benson <gbenson@redhat.com>
12214
12215 * Makefile.in (SFILES): Add common/common-debug.c.
12216 (OBS): Add common-debug.o.
12217 (common-debug.o): New rule.
12218 * debug.h (debug_printf): Don't declare.
12219 * debug.c (debug_printf): Renamed and rewritten as...
12220 (debug_vprintf): New function.
12221
12222 2014-08-19 Gary Benson <gbenson@redhat.com>
12223
12224 * utils.h: Do not include print-utils.h.
12225
12226 2014-08-19 Tom Tromey <tromey@redhat.com>
12227 Gary Benson <gbenson@redhat.com>
12228
12229 * server.h: Add static assertion.
12230 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
12231
12232 2014-08-19 Tom Tromey <tromey@redhat.com>
12233 Gary Benson <gbenson@redhat.com>
12234
12235 * Makefile.in (SFILES): Add common/errors.c.
12236 (OBS): Add errors.o.
12237 (IPA_OBS): Add errors-ipa.o.
12238 (errors.o): New rule.
12239 (errors-ipa.o): Likewise.
12240 * utils.h (perror_with_name, error, warning): Don't declare.
12241 * utils.c (warning): Renamed and rewritten as...
12242 (vwarning): New function.
12243 (error): Renamed and rewritten as...
12244 (verror): New function.
12245 (internal_error): Renamed and rewritten as...
12246 (internal_verror): New function.
12247
12248 2014-08-07 Gary Benson <gbenson@redhat.com>
12249
12250 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
12251 * configure: Regenerate.
12252 * config.in: Likewise.
12253 * server.h: Do not include errno.h.
12254 * event-loop.c: Likewise.
12255 * hostio-errno.c: Likewise.
12256 * linux-low.c: Likewise.
12257 * remote-utils.c: Likewise.
12258 * spu-low.c: Likewise.
12259 * utils.c: Likewise.
12260 * gdbreplay.c: Unconditionally include errno.h.
12261
12262 2014-08-07 Gary Benson <gbenson@redhat.com>
12263
12264 * server.h: Do not include string.h.
12265 * event-loop.c: Likewise.
12266 * linux-low.c: Likewise.
12267 * regcache.c: Likewise.
12268 * remote-utils.c: Likewise.
12269 * spu-low.c: Likewise.
12270 * utils.c: Likewise.
12271
12272 2014-08-07 Gary Benson <gbenson@redhat.com>
12273
12274 * server.h: Do not include gdb_assert.h.
12275
12276 2014-08-07 Gary Benson <gbenson@redhat.com>
12277
12278 * server.h: Do not include common-utils.h.
12279
12280 2014-08-07 Gary Benson <gbenson@redhat.com>
12281
12282 * server.h: Do not include ptid.h.
12283 * notif.h: Likewise.
12284
12285 2014-08-07 Gary Benson <gbenson@redhat.com>
12286
12287 * server.h: Do not include gdb_locale.h.
12288
12289 2014-08-07 Gary Benson <gbenson@redhat.com>
12290
12291 * server.h: Do not include gdb/signals.h.
12292 * win32-low.c: Likewise.
12293
12294 2014-08-07 Gary Benson <gbenson@redhat.com>
12295
12296 * server.h: Do not include pathmax.h.
12297
12298 2014-08-07 Gary Benson <gbenson@redhat.com>
12299
12300 * server.h: Do not include libiberty.h.
12301 * linux-bfin-low.c: Likewise.
12302
12303 2014-08-07 Gary Benson <gbenson@redhat.com>
12304
12305 * server.h: Do not include ansidecl.h.
12306
12307 2014-08-07 Gary Benson <gbenson@redhat.com>
12308
12309 * linux-x86-low.c: Do not include stddef.h.
12310 * lynx-ppc-low.c: Likewise.
12311 * tracepoint.c: Likewise.
12312
12313 2014-08-07 Gary Benson <gbenson@redhat.com>
12314
12315 * server.h: Do not include stdarg.h.
12316 * nto-low.c: Likewise.
12317
12318 2014-08-07 Gary Benson <gbenson@redhat.com>
12319
12320 * server.h: Do not include stdlib.h.
12321 * inferiors.c: Likewise.
12322 * linux-low.c: Likewise.
12323 * regcache.c: Likewise.
12324 * spu-low.c: Likewise.
12325 * tracepoint.c: Likewise.
12326 * utils.c: Likewise.
12327
12328 2014-08-07 Gary Benson <gbenson@redhat.com>
12329
12330 * server.h: Do not include stdio.h.
12331 * linux-low.c: Likewise.
12332 * remote-utils.c: Likewise.
12333 * spu-low.c: Likewise.
12334 * utils.c: Likewise.
12335 * wincecompat.c: Likewise.
12336
12337 2014-08-06 Gary Benson <gbenson@redhat.com>
12338
12339 * regcache.c (init_register_cache): Move conditionals inside if.
12340
12341 2014-08-06 Gary Benson <gbenson@redhat.com>
12342
12343 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
12344
12345 2014-07-31 Gary Benson <gbenson@redhat.com>
12346
12347 * ax.h: Do not include server.h.
12348 * gdbthread.h: Likewise.
12349 * lynx-low.h: Likewise.
12350 * notif.h: Likewise.
12351
12352 2014-07-30 Gary Benson <gbenson@redhat.com>
12353
12354 * server.h: Include common-defs.h.
12355 Do not include config.h or build-gnulib-gdbserver/config.h.
12356
12357 2014-07-30 Gary Benson <gbenson@redhat.com>
12358
12359 * hostio-errno.c: Move server.h to top of includes list.
12360 * inferiors.c: Likewise.
12361 * linux-x86-low.c: Likewise.
12362 * notif.c: Include server.h.
12363
12364 2014-07-24 Tom Tromey <tromey@redhat.com>
12365 Gary Benson <gbenson@redhat.com>
12366
12367 * server.h (CORE_ADDR): Now unsigned.
12368
12369 2014-07-16 Pedro Alves <palves@redhat.com>
12370
12371 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
12372
12373 2014-07-15 Pedro Alves <palves@redhat.com>
12374
12375 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
12376 copy.
12377
12378 2014-07-11 Pedro Alves <palves@redhat.com>
12379
12380 * linux-low.c (kill_wait_lwp): New function, based on
12381 kill_one_lwp_callback, but use my_waitpid directly.
12382 (kill_one_lwp_callback, linux_kill): Use it.
12383
12384 2014-06-23 Pedro Alves <palves@redhat.com>
12385
12386 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
12387 before setting DR0..DR3.
12388
12389 2014-06-20 Gary Benson <gbenson@redhat.com>
12390
12391 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
12392 * configure: Regenerated.
12393 * config.in: Likewise.
12394
12395 2014-06-20 Gary Benson <gbenson@redhat.com>
12396
12397 * Makefile.in (SFILES): Update locations for files moved
12398 from common to nat.
12399 (object file files): Reordered.
12400
12401 2014-06-20 Gary Benson <gbenson@redhat.com>
12402
12403 * i386-low.h (i386_dr_low_can_set_addr): Removed.
12404 (i386_dr_low_set_addr): Likewise.
12405 (i386_dr_low_get_addr): Likewise.
12406 (i386_dr_low_can_set_control): Likewise.
12407 (i386_dr_low_set_control): Likewise.
12408 (i386_dr_low_get_control): Likewise.
12409 (i386_dr_low_get_status): Likewise.
12410 (i386_get_debug_register_length): Likewise.
12411 * linux-x86-low.c (i386_dr_low_set_addr):
12412 Changed signature. Made static.
12413 (i386_dr_low_get_addr): Likewise.
12414 (i386_dr_low_set_control): Likewise.
12415 (i386_dr_low_get_control): Likewise.
12416 (i386_dr_low_get_status): Likewise.
12417 (i386_dr_low): New global variable.
12418 * win32-i386-low.c (i386_dr_low_set_addr):
12419 Changed signature. Made static.
12420 (i386_dr_low_get_addr): Likewise.
12421 (i386_dr_low_set_control): Likewise.
12422 (i386_dr_low_get_control): Likewise.
12423 (i386_dr_low_get_status): Likewise.
12424 (i386_dr_low): New global variable.
12425
12426 2014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
12427
12428 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
12429 * Makefile.in (AR, AR_FLAGS): Define.
12430 * configure: Regenerate.
12431
12432 2014-06-19 Gary Benson <gbenson@redhat.com>
12433
12434 * Makefile.in (i386-dregs.o): New rule.
12435 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
12436 * i386-low.c (target.h): Remove include.
12437 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
12438 (DR_CONTROL_SHIFT): Likewise.
12439 (DR_CONTROL_SIZE): Likewise.
12440 (DR_RW_EXECUTE): Likewise.
12441 (DR_RW_WRITE): Likewise.
12442 (DR_RW_READ): Likewise.
12443 (DR_RW_IORW): Likewise.
12444 (DR_LEN_1): Likewise.
12445 (DR_LEN_2): Likewise.
12446 (DR_LEN_4): Likewise.
12447 (DR_LEN_8): Likewise.
12448 (DR_LOCAL_ENABLE_SHIFT): Likewise.
12449 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
12450 (DR_ENABLE_SIZE): Likewise.
12451 (DR_LOCAL_SLOWDOWN): Likewise.
12452 (DR_GLOBAL_SLOWDOWN): Likewise.
12453 (DR_CONTROL_RESERVED): Likewise.
12454 (I386_DR_CONTROL_MASK): Likewise.
12455 (I386_DR_VACANT): Likewise.
12456 (I386_DR_LOCAL_ENABLE): Likewise.
12457 (I386_DR_GLOBAL_ENABLE): Likewise.
12458 (I386_DR_DISABLE): Likewise.
12459 (I386_DR_SET_RW_LEN): Likewise.
12460 (I386_DR_GET_RW_LEN): Likewise.
12461 (I386_DR_WATCH_HIT): Likewise.
12462 (i386_wp_op_t): Likewise.
12463 (i386_show_dr): Likewise.
12464 (i386_length_and_rw_bits): Likewise.
12465 (i386_insert_aligned_watchpoint): Likewise.
12466 (i386_remove_aligned_watchpoint): Likewise.
12467 (i386_handle_nonaligned_watchpoint): Likewise.
12468 i386_update_inferior_debug_regs(): Likewise.
12469 (i386_dr_insert_watchpoint): Likewise.
12470 (i386_dr_remove_watchpoint): Likewise.
12471 (i386_dr_region_ok_for_watchpoint): Likewise.
12472 (i386_dr_stopped_data_address): Likewise.
12473 (i386_dr_stopped_by_watchpoint): Likewise.
12474
12475 2014-06-19 Gary Benson <gbenson@redhat.com>
12476
12477 * i386-low.c (i386_dr_show): Renamed to
12478 i386_show_dr and made static. All uses updated.
12479 (i386_dr_length_and_rw_bits): Renamed to
12480 i386_length_and_rw_bits and made static.
12481 All uses updated.
12482 (i386_dr_insert_aligned_watchpoint): Renamed to
12483 i386_insert_aligned_watchpoint and made static.
12484 All uses updated.
12485 (i386_dr_remove_aligned_watchpoint): Renamed to
12486 i386_remove_aligned_watchpoint and made static.
12487 All uses updated.
12488 (i386_dr_update_inferior_debug_regs): Renamed to
12489 i386_update_inferior_debug_regs and made static.
12490 All uses updated.
12491
12492 2014-06-18 Gary Benson <gbenson@redhat.com>
12493
12494 * i386-low.h (i386_dr_low_can_set_addr): New macro.
12495 (i386_dr_low_can_set_control): Likewise.
12496 (i386_get_debug_register_length): Likewise.
12497 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
12498 (i386_dr_low_can_set_control): Likewise.
12499 (i386_get_debug_register_length): Likewise.
12500
12501 2014-06-17 Gary Benson <gbenson@redhat.com>
12502
12503 * i386-low.h (i386-dregs.h): New include.
12504 (DR_FIRSTADDR): Now in i386-dregs.h.
12505 (DR_LASTADDR): Likewise.
12506 (DR_NADDR): Likewise.
12507 (DR_STATUS): Likewise.
12508 (DR_CONTROL): Likewise.
12509 (i386_debug_reg_state): Likewise.
12510 (i386_dr_insert_watchpoint): Likewise.
12511 (i386_dr_remove_watchpoint): Likewise.
12512 (i386_dr_region_ok_for_watchpoint): Likewise.
12513 (i386_dr_stopped_data_address): Likewise.
12514 (i386_dr_stopped_by_watchpoint): Likewise.
12515 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
12516
12517 2014-06-18 Gary Benson <gbenson@redhat.com>
12518
12519 * i386-low.h (i386_low_insert_watchpoint): Renamed to
12520 i386_dr_insert_watchpoint.
12521 (i386_low_remove_watchpoint): Renamed to
12522 i386_dr_remove_watchpoint.
12523 (i386_low_region_ok_for_watchpoint): Renamed to
12524 i386_dr_region_ok_for_watchpoint.
12525 (i386_low_stopped_data_address): Renamed to
12526 i386_dr_stopped_data_address.
12527 (i386_low_stopped_by_watchpoint): Renamed to
12528 i386_dr_stopped_by_watchpoint.
12529 * i386-low.c (i386_show_dr): Renamed to
12530 i386_dr_show and made nonstatic. All uses updated.
12531 (i386_length_and_rw_bits): Renamed to
12532 i386_dr_length_and_rw_bits and made nonstatic.
12533 All uses updated.
12534 (i386_insert_aligned_watchpoint): Renamed to
12535 i386_dr_insert_aligned_watchpoint and made nonstatic.
12536 All uses updated.
12537 (i386_remove_aligned_watchpoint): Renamed to
12538 i386_dr_remove_aligned_watchpoint and made nonstatic.
12539 All uses updated.
12540 (i386_update_inferior_debug_regs): Renamed to
12541 i386_dr_update_inferior_debug_regs and made nonstatic.
12542 All uses updated.
12543 (i386_low_insert_watchpoint): Renamed to
12544 i386_dr_insert_watchpoint. All uses updated.
12545 (i386_low_remove_watchpoint): Renamed to
12546 i386_dr_remove_watchpoint. All uses updated.
12547 (i386_low_region_ok_for_watchpoint): Renamed to
12548 i386_dr_region_ok_for_watchpoint. All uses updated.
12549 (i386_low_stopped_data_address): Renamed to
12550 i386_dr_stopped_data_address. All uses updated.
12551 (i386_low_stopped_by_watchpoint): Renamed to
12552 i386_dr_stopped_by_watchpoint. All uses updated.
12553
12554 2014-06-18 Gary Benson <gbenson@redhat.com>
12555
12556 * i386-low.c (i386_dr_low_can_set_addr): New macro.
12557 (i386_dr_low_can_set_control): Likewise.
12558 (i386_insert_aligned_watchpoint): New check.
12559
12560 2014-06-18 Gary Benson <gbenson@redhat.com>
12561
12562 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
12563 Renamed to state.
12564
12565 2014-06-18 Gary Benson <gbenson@redhat.com>
12566
12567 * i386-low.c (i386_length_and_rw_bits): Use internal_error
12568 instead of fatal and error.
12569 (i386_handle_nonaligned_watchpoint): Likewise.
12570
12571 2014-06-18 Gary Benson <gbenson@redhat.com>
12572
12573 * i386-low.c (i386_get_debug_register_length): New macro.
12574 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
12575 (i386_show_dr): Use debug_printf instead of fprintf. Use
12576 phex to format values.
12577
12578 2014-06-18 Gary Benson <gbenson@redhat.com>
12579
12580 * i386-low.h: Comment changes.
12581 * i386-low.c: Likewise.
12582
12583 2014-06-18 Gary Benson <gbenson@redhat.com>
12584
12585 * i386-low.c: Whitespace changes.
12586
12587 2014-06-12 Tom Tromey <tromey@redhat.com>
12588
12589 * utils.c (freeargv): Remove.
12590
12591 2014-06-12 Tom Tromey <tromey@redhat.com>
12592
12593 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
12594 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
12595 (parse_debug_format_options): Likewise.
12596 (gdbserver_usage): Likewise.
12597 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
12598 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
12599 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
12600 against libiberty.
12601 ($(LIBGNU)): Depend on libiberty.
12602 (all-lib): Recurse into all subdirs.
12603 (install-only): Invoke "install" target in subdirs.
12604 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
12605 targets.
12606 * configure: Rebuild.
12607 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
12608 for vasprintf, vsnprintf, or gettimeofday.
12609 * configure.srv: Don't add safe-ctype.o or lbasename.o to
12610 srv_tgtobj.
12611
12612 2014-06-05 Joel Brobecker <brobecker@adacore.com>
12613
12614 * development.sh: Delete.
12615 * Makefile.in (config.status): Adjust dependency on development.sh.
12616 * configure.ac: Adjust development.sh source call.
12617 * configure: Regenerate.
12618
12619 2014-06-02 Pedro Alves <palves@redhat.com>
12620
12621 * ax.c (gdb_free_agent_expr): New function.
12622 * ax.h (gdb_free_agent_expr): New declaration.
12623 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
12624 list.
12625 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
12626 static.
12627 (clear_breakpoint_conditions_and_commands): New function.
12628 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
12629 (clear_breakpoint_conditions_and_commands): New declaration.
12630
12631 2014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12632
12633 * linux-aarch64-low.c (asm/ptrace.h): Include.
12634
12635 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12636
12637 Fix TLS access for -static -pthread.
12638 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
12639 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
12640 (thread_db_load_search, try_thread_db_load_1): Initialize it.
12641
12642 2014-05-20 Pedro Alves <palves@redhat.com>
12643
12644 * linux-aarch64-low.c (aarch64_insert_point)
12645 (aarch64_remove_point): No longer check whether the type is
12646 supported here. Adjust to new interface.
12647 (the_low_target): Install aarch64_supports_z_point_type as
12648 supports_z_point_type method.
12649 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
12650 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
12651 instead of a Z packet char. Adjust.
12652 (arm_supports_z_point_type): New function.
12653 (arm_insert_point, arm_remove_point): Adjust to new interface.
12654 (the_low_target): Install arm_supports_z_point_type.
12655 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
12656 (cris_insert_point, cris_remove_point): Adjust to new interface.
12657 Don't check whether the type is supported here.
12658 (the_low_target): Install cris_supports_z_point_type.
12659 * linux-low.c (linux_supports_z_point_type): New function.
12660 (linux_insert_point, linux_remove_point): Adjust to new interface.
12661 * linux-low.h (struct linux_target_ops) <insert_point,
12662 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
12663 raw_breakpoint pointer parameter.
12664 <supports_z_point_type>: New method.
12665 * linux-mips-low.c (mips_supports_z_point_type): New function.
12666 (mips_insert_point, mips_remove_point): Adjust to new interface.
12667 Use mips_supports_z_point_type.
12668 (the_low_target): Install mips_supports_z_point_type.
12669 * linux-ppc-low.c (the_low_target): Install NULL as
12670 supports_z_point_type method.
12671 * linux-s390-low.c (the_low_target): Install NULL as
12672 supports_z_point_type method.
12673 * linux-sparc-low.c (the_low_target): Install NULL as
12674 supports_z_point_type method.
12675 * linux-x86-low.c (x86_supports_z_point_type): New function.
12676 (x86_insert_point): Adjust to new insert_point interface. Use
12677 insert_memory_breakpoint. Adjust to new
12678 i386_low_insert_watchpoint interface.
12679 (x86_remove_point): Adjust to remove_point interface. Use
12680 remove_memory_breakpoint. Adjust to new
12681 i386_low_remove_watchpoint interface.
12682 (the_low_target): Install x86_supports_z_point_type.
12683 * lynx-low.c (lynx_target_ops): Install NULL as
12684 supports_z_point_type callback.
12685 * nto-low.c (nto_supports_z_point_type): New.
12686 (nto_insert_point, nto_remove_point): Adjust to new interface.
12687 (nto_target_ops): Install nto_supports_z_point_type.
12688 * mem-break.c: Adjust intro comment.
12689 (struct raw_breakpoint) <raw_type, size>: New fields.
12690 <inserted>: Update comment.
12691 <shlib_disabled>: Delete field.
12692 (enum bkpt_type) <gdb_breakpoint>: Delete value.
12693 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
12694 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
12695 (raw_bkpt_type_to_target_hw_bp_type): New function.
12696 (find_enabled_raw_code_breakpoint_at): New function.
12697 (find_raw_breakpoint_at): New type and size parameters. Use them.
12698 (insert_memory_breakpoint): New function, based off
12699 set_raw_breakpoint_at.
12700 (remove_memory_breakpoint): New function.
12701 (set_raw_breakpoint_at): Reimplement.
12702 (set_breakpoint): New, based on set_breakpoint_at.
12703 (set_breakpoint_at): Reimplement.
12704 (delete_raw_breakpoint): Go through the_target->remove_point
12705 instead of assuming memory breakpoints.
12706 (find_gdb_breakpoint_at): Delete.
12707 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
12708 (find_gdb_breakpoint): New function.
12709 (set_gdb_breakpoint_at): Delete.
12710 (z_type_supported): New function.
12711 (set_gdb_breakpoint_1): New function, loosely based off
12712 set_gdb_breakpoint_at.
12713 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
12714 (delete_gdb_breakpoint_at): Delete.
12715 (delete_gdb_breakpoint_1): New function, loosely based off
12716 delete_gdb_breakpoint_at.
12717 (delete_gdb_breakpoint): New function.
12718 (clear_gdb_breakpoint_conditions): Rename to ...
12719 (clear_breakpoint_conditions): ... this. Don't handle a NULL
12720 breakpoint.
12721 (add_condition_to_breakpoint): Make static.
12722 (add_breakpoint_condition): Take a struct breakpoint pointer
12723 instead of an address. Adjust.
12724 (gdb_condition_true_at_breakpoint): Rename to ...
12725 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
12726 z_type parameter.
12727 (gdb_condition_true_at_breakpoint): Reimplement.
12728 (add_breakpoint_commands): Take a struct breakpoint pointer
12729 instead of an address. Adjust.
12730 (gdb_no_commands_at_breakpoint): Rename to ...
12731 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
12732 parameter. Return true if no breakpoint was found. Change debug
12733 output.
12734 (gdb_no_commands_at_breakpoint): Reimplement.
12735 (run_breakpoint_commands): Rename to ...
12736 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
12737 and change return type to boolean.
12738 (run_breakpoint_commands): New function.
12739 (gdb_breakpoint_here): Also check for Z1 breakpoints.
12740 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
12741 breakpoint. Go through the_target->remove_point instead of
12742 assuming memory breakpoint.
12743 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
12744 software and hardware breakpoints.
12745 (reinsert_raw_breakpoint): Go through the_target->insert_point
12746 instead of assuming memory breakpoint.
12747 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
12748 software and hardware breakpoints.
12749 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
12750 Check both software and hardware breakpoints.
12751 (validate_inserted_breakpoint): Assert the breakpoint is a
12752 software breakpoint. Set the inserted flag to -1 instead of
12753 setting shlib_disabled.
12754 (delete_disabled_breakpoints): Adjust.
12755 (validate_breakpoints): Only validate software breakpoints.
12756 Adjust to inserted flag change.
12757 (check_mem_read, check_mem_write): Skip breakpoint types other
12758 than software breakpoints. Adjust to inserted flag change.
12759 * mem-break.h (enum raw_bkpt_type): New enum.
12760 (raw_breakpoint, struct process_info): Forward declare.
12761 (Z_packet_to_target_hw_bp_type): Delete declaration.
12762 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
12763 (set_gdb_breakpoint, delete_gdb_breakpoint)
12764 (clear_breakpoint_conditions): New declarations.
12765 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
12766 (breakpoint_inserted_here): Update comment.
12767 (add_breakpoint_condition, add_breakpoint_commands): Replace
12768 address parameter with a breakpoint pointer parameter.
12769 (gdb_breakpoint_here): Update comment.
12770 (delete_gdb_breakpoint_at): Delete.
12771 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
12772 * server.c (process_point_options): Take a struct breakpoint
12773 pointer instead of an address. Adjust.
12774 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
12775 delete_gdb_breakpoint.
12776 * spu-low.c (spu_target_ops): Install NULL as
12777 supports_z_point_type method.
12778 * target.h: Include mem-break.h.
12779 (struct target_ops) <prepare_to_access_memory>: Update comment.
12780 <supports_z_point_type>: New field.
12781 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12782 instead of a char. Also take a raw breakpoint pointer.
12783 * win32-arm-low.c (the_low_target): Install NULL as
12784 supports_z_point_type.
12785 * win32-i386-low.c (i386_supports_z_point_type): New function.
12786 (i386_insert_point, i386_remove_point): Adjust to new interface.
12787 (the_low_target): Install i386_supports_z_point_type.
12788 * win32-low.c (win32_supports_z_point_type): New function.
12789 (win32_insert_point, win32_remove_point): Adjust to new interface.
12790 (win32_target_ops): Install win32_supports_z_point_type.
12791 * win32-low.h (struct win32_target_ops):
12792 <supports_z_point_type>: New method.
12793 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12794 instead of a char. Also take a raw breakpoint pointer.
12795
12796 2014-05-20 Pedro Alves <palves@redhat.com>
12797
12798 * mem-break.h: Include break-common.h.
12799 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12800 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
12801 (Z_packet_to_target_hw_bp_type): New declaration.
12802 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
12803 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
12804 (Z_PACKET_ACCESS_WP): Delete macros.
12805 (Z_packet_to_hw_type): Delete function.
12806 * i386-low.h: Don't include break-common.h here.
12807 (Z_packet_to_hw_type): Delete declaration.
12808 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
12809 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12810 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
12811 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12812 * linux-aarch64-low.c: Don't include break-common.h here.
12813 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12814 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
12815 (Z_packet_to_target_hw_bp_type): Delete function.
12816 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
12817 function.
12818 (mips_insert_point, mips_remove_point): Use
12819 Z_packet_to_target_hw_bp_type.
12820
12821 2014-05-20 Pedro Alves <palves@redhat.com>
12822
12823 * linux-aarch64-low.c: Include break-common.h.
12824 (enum target_point_type): Delete.
12825 (Z_packet_to_point_type): Rename to ...
12826 (Z_packet_to_target_hw_bp_type): ... this, and return a
12827 target_hw_bp_type instead.
12828 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
12829 instead of an enum target_point_type.
12830 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
12831 breakpoint type.
12832 (aarch64_dr_state_insert_one_point)
12833 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
12834 (aarch64_handle_aligned_watchpoint)
12835 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
12836 Take an enum target_hw_bp_type instead of an enum
12837 target_point_type.
12838 (aarch64_supports_z_point_type): New function.
12839 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
12840 use Z_packet_to_target_hw_bp_type.
12841
12842 2014-05-20 Joel Brobecker <brobecker@adacore.com>
12843
12844 * configure.ac: Only use -Werror by default when DEVELOPMENT
12845 is true.
12846 * configure: Regenerate.
12847
12848 2014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
12849
12850 Fix gdbserver qGetTLSAddr for x86_64 -m32.
12851 * linux-x86-low.c (X86_64_USER_REGS): New.
12852 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
12853
12854 2014-04-28 Yao Qi <yao@codesourcery.com>
12855
12856 * Makefile.in (i386-avx512.c): Fix the typo of generated file
12857 name.
12858
12859 2014-04-25 Pedro Alves <palves@redhat.com>
12860
12861 PR server/16255
12862 * linux-low.c (linux_attach_fail_reason_string): New function.
12863 (linux_attach_lwp): Delete.
12864 (linux_attach_lwp_1): Rename to ...
12865 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
12866 argument. Remove "initial" parameter. Return int instead of
12867 void. Don't error or warn here.
12868 (linux_attach): Adjust to call linux_attach_lwp. Call error on
12869 failure to attach to the tgid. Call warning when failing to
12870 attach to an lwp.
12871 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
12872 argument. Remove "initial" parameter. Return int instead of
12873 void. Don't error or warn here.
12874 (linux_attach_fail_reason_string): New declaration.
12875 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
12876 interface change. Use linux_attach_fail_reason_string.
12877
12878 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
12879 Walfred Tedeschi <walfred.tedeschi@intel.com>
12880
12881 * Makefile.in: Added rules to handle new files
12882 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
12883 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
12884 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
12885 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
12886 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
12887 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
12888 x32-avx512-linux.o.
12889 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
12890 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
12891 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
12892 i386/x32-avx512.xml.
12893 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
12894 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
12895 i386/x32-avx512-linux.xml.
12896 * i387-fp.c (num_avx512_k_registers): New constant for number
12897 of K registers.
12898 (num_avx512_zmmh_low_registers): New constant for number of
12899 lower ZMM registers (0-15).
12900 (num_avx512_zmmh_high_registers): New constant for number of
12901 higher ZMM registers (16-31).
12902 (num_avx512_ymmh_registers): New contant for number of higher
12903 YMM registers (ymm16-31 added by avx521 on x86_64).
12904 (num_avx512_xmm_registers): New constant for number of higher
12905 XMM registers (xmm16-31 added by AVX512 on x86_64).
12906 (struct i387_xsave): Add space for AVX512 registers.
12907 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
12908 Add code to handle AVX512 registers.
12909 (i387_xsave_to_cache): Add code to handle AVX512 registers.
12910 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
12911 prototypei from generated file.
12912 (tdesc_amd64_avx512_linux): Likewise.
12913 (init_registers_x32_avx512_linux): Likewise.
12914 (tdesc_x32_avx512_linux): Likewise.
12915 (init_registers_i386_avx512_linux): Likewise.
12916 (tdesc_i386_avx512_linux): Likewise.
12917 (x86_64_regmap): Add AVX512 registers.
12918 (x86_linux_read_description): Add code to handle AVX512 XSTATE
12919 mask.
12920 (initialize_low_arch): Add code to initialize AVX512 registers.
12921
12922 2014-04-23 Pedro Alves <palves@redhat.com>
12923
12924 * mem-break.c (find_gdb_breakpoint_at): Make static.
12925 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
12926
12927 2014-04-23 Pedro Alves <palves@redhat.com>
12928
12929 * i386-low.c: Don't include break-common.h here.
12930 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12931 prototype to take target_hw_bp_type as argument instead of a Z
12932 packet char.
12933 * i386-low.h: Include break-common.h here.
12934 (Z_packet_to_hw_type): Declare.
12935 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12936 prototypes.
12937 * linux-x86-low.c (x86_insert_point): Convert the packet number to
12938 a target_hw_bp_type before calling i386_low_insert_watchpoint.
12939 (x86_remove_point): Convert the packet number to a
12940 target_hw_bp_type before calling i386_low_remove_watchpoint.
12941 * win32-i386-low.c (i386_insert_point): Convert the packet number
12942 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
12943 (i386_remove_point): Convert the packet number to a
12944 target_hw_bp_type before calling i386_low_remove_watchpoint.
12945
12946 2014-04-23 Pedro Alves <palves@redhat.com>
12947
12948 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
12949
12950 2014-04-10 Pedro Alves <palves@redhat.com>
12951
12952 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
12953 Check if the condition or command is NULL before checking if the
12954 breakpoint is known. On success, return true.
12955 * mem-break.h (add_breakpoint_condition): Document return.
12956 (add_breakpoint_commands): Add describing comment.
12957 * server.c (skip_to_semicolon): New function.
12958 (process_point_options): Use it.
12959
12960 2014-04-09 Pedro Alves <palves@redhat.com>
12961
12962 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
12963 to lwpid_of.
12964
12965 2014-02-27 Pedro Alves <palves@redhat.com>
12966
12967 PR 12702
12968 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
12969 macros.
12970 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
12971 output.
12972 (last_thread_of_process_p): Take a PID argument instead of a
12973 thread pointer.
12974 (linux_wait_for_lwp): Delete.
12975 (num_lwps, check_zombie_leaders, not_stopped_callback): New
12976 functions.
12977 (linux_low_filter_event): New function, party factored out from
12978 linux_wait_for_event.
12979 (linux_wait_for_event): Rename to ...
12980 (linux_wait_for_event_filtered): ... this. Add new filter ptid
12981 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
12982 sigsuspend. Check for zombie leaders.
12983 (linux_wait_for_event): Reimplement as wrapper around
12984 linux_wait_for_event_filtered.
12985 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
12986 a normal or signal exit is seen, it's the whole process exiting.
12987 (wait_for_sigstop): No longer a for_each_inferior callback.
12988 Rewrite on top of linux_wait_for_event_filtered.
12989 (stop_all_lwps): Call wait_for_sigstop directly.
12990 * server.c (resume, handle_target_event): Handle
12991 TARGET_WAITKIND_NO_RESUMED.
12992
12993 2014-02-26 Joel Brobecker <brobecker@adacore.com>
12994
12995 * win32-low.c (psapi_get_dll_name,
12996 * win32_CreateToolhelp32Snapshot): Delete.
12997 (win32_CreateToolhelp32Snapshot, win32_Module32First)
12998 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
12999 Delete.
13000 (handle_load_dll): Add function description.
13001 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
13002
13003 2014-02-26 Joel Brobecker <brobecker@adacore.com>
13004
13005 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
13006 Add comment.
13007 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
13008 base address when calling win32_add_one_solib.
13009 (handle_load_dll): Delete local variable load_addr.
13010 Remove 0x1000 offset applied to DLL base address when calling
13011 win32_add_one_solib.
13012 (handle_unload_dll): Add comment.
13013
13014 2014-02-26 Joel Brobecker <brobecker@adacore.com>
13015
13016 * win32-low.c (win32_add_all_dlls): Renames
13017 win32_ensure_ntdll_loaded. Rewrite function documentation.
13018 Adjust implementation to always load all DLLs.
13019 Add 0x1000 offset to DLL base address when calling
13020 win32_add_one_solib.
13021 (child_initialization_done): New static global.
13022 (do_initial_child_stuff): Set child_initialization_done to
13023 zero during child initialization, and 1 after. Replace call
13024 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
13025 Add comment.
13026 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
13027 (handle_unload_dll): Add function documentation.
13028 (get_child_debug_event): Ignore load and unload DLL events
13029 during child initialization.
13030
13031 2014-02-20 Doug Evans <dje@google.com>
13032
13033 Remove global all_lwps.
13034 * inferiors.h (ptid_of): Move here from linux-low.h.
13035 (pid_of, lwpid_of): Ditto.
13036 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
13037 parameter is a struct thread_info * now.
13038 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
13039 directly. Pass &all_threads to find_inferior instead of &all_lwps.
13040 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
13041 directly.
13042 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
13043 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
13044 * linux-arm-low.c (update_registers_callback): Update, "entry"
13045 parameter is a struct thread_info * now.
13046 Fetch lwpid from current_inferior directly.
13047 (arm_insert_point): Pass &all_threads to find_inferior instead of
13048 &all_lwps.
13049 (arm_remove_point): Ditto.
13050 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
13051 (arm_prepare_to_resume): Fetch pid from thread.
13052 (arm_read_description): Fetch lwpid from current_inferior directly.
13053 * linux-low.c (all_lwps): Delete.
13054 (delete_lwp): Delete call to remove_inferior.
13055 (handle_extended_wait): Fetch lwpid from thread.
13056 (add_lwp): Don't set lwp->entry.id. Remove call to
13057 add_inferior_to_list.
13058 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
13059 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
13060 (kill_one_lwp_callback): Ditto.
13061 (linux_kill): Don't dereference NULL pointer.
13062 Fetch ptid,lwpid from thread.
13063 (get_detach_signal): Fetch ptid from thread.
13064 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
13065 Simplify call to regcache_invalidate_thread.
13066 (delete_lwp_callback): Update, "entry" parameter is a
13067 struct thread_info * now. Fetch pid from thread.
13068 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
13069 (status_pending_p_callback): Update, "entry" parameter is a
13070 struct thread_info * now. Fetch ptid from thread.
13071 (find_lwp_pid): Update, "entry" parameter is a
13072 struct thread_info * now.
13073 (linux_wait_for_lwp): Fetch pid from thread.
13074 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
13075 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
13076 (enqueue_one_deferred_signal): Fetch lwpid from thread.
13077 (dequeue_one_deferred_signal): Ditto.
13078 (cancel_breakpoint): Fetch ptid from current_inferior.
13079 (linux_wait_for_event): Pass &all_threads to find_inferior,
13080 not &all_lwps. Fetch ptid, lwpid from thread.
13081 (count_events_callback): Update, "entry" parameter is a
13082 struct thread_info * now.
13083 (select_singlestep_lwp_callback): Ditto.
13084 (select_event_lwp_callback): Ditto.
13085 (cancel_breakpoints_callback): Ditto.
13086 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
13087 not &all_lwps.
13088 (select_event_lwp): Ditto. Fetch ptid from event_thread.
13089 (unsuspend_one_lwp): Update, "entry" parameter is a
13090 struct thread_info * now.
13091 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
13092 not &all_lwps.
13093 (linux_stabilize_threads): Ditto. And for for_each_inferior.
13094 Fetch lwpid from thread, not lwp.
13095 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
13096 Pass &all_threads to find_inferior, not &all_lwps.
13097 (send_sigstop): Fetch lwpid from thread, not lwp.
13098 (send_sigstop_callback): Update, "entry" parameter is a
13099 struct thread_info * now.
13100 (suspend_and_send_sigstop_callback): Ditto.
13101 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
13102 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
13103 struct thread_info * now.
13104 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
13105 from thread, lwp.
13106 (lwp_running): Update, "entry" parameter is a
13107 struct thread_info * now.
13108 (stop_all_lwps): Fetch ptid from thread.
13109 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
13110 (linux_resume_one_lwp): Fetch lwpid from thread.
13111 (linux_set_resume_request): Update, "entry" parameter is a
13112 struct thread_info * now. Fetch pid, lwpid from thread.
13113 (resume_status_pending_p): Update, "entry" parameter is a
13114 struct thread_info * now.
13115 (need_step_over_p): Ditto. Fetch lwpid from thread.
13116 (start_step_over): Fetch lwpid from thread.
13117 (linux_resume_one_thread): Update, "entry" parameter is a
13118 struct thread_info * now. Fetch lwpid from thread.
13119 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
13120 (proceed_one_lwp): Update, "entry" parameter is a
13121 struct thread_info * now. Fetch lwpid from thread.
13122 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
13123 struct thread_info * now.
13124 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
13125 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
13126 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
13127 directly.
13128 (regsets_store_inferior_registers): Ditto.
13129 (fetch_register, store_register): Ditto.
13130 (linux_read_memory, linux_write_memory): Ditto.
13131 (linux_request_interrupt): Ditto.
13132 (linux_read_auxv): Ditto.
13133 (linux_xfer_siginfo): Ditto.
13134 (linux_qxfer_spu): Ditto.
13135 (linux_qxfer_libraries_svr4): Ditto.
13136 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
13137 moved to inferiors.h.
13138 (get_lwp): Delete.
13139 (get_thread_lwp): Update.
13140 (struct lwp_info): Delete member "entry". Simplify comment for
13141 member "thread".
13142 (all_lwps): Delete.
13143 * linux-mips-low.c (mips_read_description): Fetch lwpid from
13144 current_inferior directly.
13145 (update_watch_registers_callback): Update, "entry" parameter is a
13146 struct thread_info * now. Fetch pid from thread.
13147 (mips_linux_prepare_to_resume): Fetch ptid from thread.
13148 (mips_insert_point): Fetch lwpid from current_inferior.
13149 Pass &all_threads to find_inferior, not &all_lwps.
13150 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
13151 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
13152 directly.
13153 (mips_stopped_data_address): Ditto.
13154 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
13155 directly.
13156 * linux-tile-low.c (tile_arch_setup): Ditto.
13157 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
13158 (update_debug_registers_callback): Update, "entry" parameter is a
13159 struct thread_info * now. Fetch pid from thread.
13160 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
13161 Pass &all_threads to find_inferior, not &all_lwps.
13162 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
13163 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
13164 Pass &all_threads to find_inferior, not &all_lwps.
13165 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
13166 (i386_dr_low_get_status): Ditto.
13167 (x86_linux_prepare_to_resume): Fetch ptid from thread.
13168 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
13169 (x86_linux_read_description): Ditto.
13170 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
13171
13172 2014-02-20 Doug Evans <dje@google.com>
13173
13174 * inferiors.c (get_first_inferior): Fix buglet.
13175
13176 2014-02-19 Doug Evans <dje@google.com>
13177
13178 * gdbthread.h (add_thread): Change result type to struct thread_info *.
13179 * inferiors.c (add_thread): Change result type to struct thread_info *.
13180 All callers updated.
13181 (add_lwp): Call add_thread here instead of in callers.
13182 All callers updated.
13183 * linux-low.h (get_lwp_thread): Rewrite.
13184 (struct lwp_info): New member "thread".
13185
13186 2014-02-19 Doug Evans <dje@google.com>
13187
13188 * linux-low.c (add_lwp): Change result to struct lwp_info *.
13189 All callers updated.
13190
13191 2014-02-19 Doug Evans <dje@google.com>
13192
13193 * inferiors.c (add_thread): Fix whitespace.
13194
13195 2014-02-19 Doug Evans <dje@google.com>
13196
13197 * dll.c (clear_dlls): Replace accessing list implemention details
13198 with API function.
13199 * gdbthread.h (get_first_thread): Declare.
13200 * inferiors.c (for_each_inferior_with_data): New function.
13201 (get_first_thread): New function.
13202 (find_thread_ptid): Simplify.
13203 (get_first_inferior): New function.
13204 (clear_list): Delete.
13205 (one_inferior_p): New function.
13206 (clear_inferior_list): New function.
13207 (clear_inferiors): Update.
13208 * inferiors.h (for_each_inferior_with_data): Declare.
13209 (clear_inferior_list): Declare.
13210 (one_inferior_p): Declare.
13211 (get_first_inferior): Declare.
13212 * linux-low.c (linux_wait_for_event): Replace accessing list
13213 implemention details with API function.
13214 * server.c (target_running): Ditto.
13215 (accumulate_file_name_length): New function.
13216 (emit_dll_description): New function.
13217 (handle_qxfer_libraries): Replace accessing list implemention
13218 details with API function.
13219 (handle_qxfer_threads_worker): New function.
13220 (handle_qxfer_threads_proper): Replace accessing list implemention
13221 details with API function.
13222 (handle_query): Ditto.
13223 (visit_actioned_threads_callback_ftype): New typedef.
13224 (visit_actioned_threads_data): New struct.
13225 (visit_actioned_threads): Rewrite to be find_inferior callback.
13226 (resume): Call find_inferior.
13227 (handle_status): Replace accessing list implemention
13228 details with API function.
13229 (process_serial_event): Replace accessing list implemention details
13230 with API function.
13231 * target.c (set_desired_inferior): Replace accessing list implemention
13232 details with API function.
13233 * tracepoint.c (same_process_p): New function.
13234 (gdb_agent_about_to_close): Replace accessing list implemention
13235 details with API function.
13236 * win32-low.c (child_delete_thread): Replace accessing list
13237 implemention details with API function.
13238 (match_dll_by_basename): New function.
13239 (dll_is_loaded_by_basename): New function.
13240 (win32_ensure_ntdll_loaded): Replace accessing list implemention
13241 details call to dll_is_loaded_by_basename.
13242
13243 2014-02-19 Doug Evans <dje@google.com>
13244
13245 * dll.h (struct dll_info): Add comment.
13246 * gdbthread.h (struct thread_info): Add comment.
13247 (current_ptid): Simplify.
13248 * inferiors.c (add_process): Update.
13249 (remove_process): Update.
13250 * inferiors.h (struct process_info): Rename member "head" to "entry".
13251 * linux-low.c (delete_lwp): Update.
13252 (add_lwp): Update.
13253 (last_thread_of_process_p): Update.
13254 (kill_one_lwp_callback, linux_kill): Update.
13255 (status_pending_p_callback): Update.
13256 (wait_for_sigstop): Update. Simplify read of ptid.
13257 (start_step_over): Update.
13258 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
13259 (get_lwp_thread): Update.
13260 (struct lwp_info): Rename member "head" to "entry".
13261 * regcache.h (inferior_list_entry): Delete.
13262 * server.c (kill_inferior_callback): Update.
13263 (detach_or_kill_inferior_callback): Update.
13264 (print_started_pid): Update.
13265 (print_attached_pid): Update.
13266 (process_serial_event): Simplify read of ptid.
13267 * thread-db.c (thread_db_create_event): Update.
13268 (thread_db_get_tls_address): Update.
13269 * win32-low.c (current_inferior_ptid): Simplify.
13270
13271 2014-02-19 Tom Tromey <tromey@redhat.com>
13272
13273 * target.h (struct target_ops) <supports_btrace>: Add target_ops
13274 argument.
13275 (target_supports_btrace): Update.
13276
13277 2014-02-14 Yao Qi <yao@codesourcery.com>
13278
13279 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
13280 (rsp-low-ipa.o): New target.
13281
13282 2014-02-12 Tom Tromey <tromey@redhat.com>
13283
13284 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
13285 convert_ascii_to_int.
13286 * regcache.c (registers_to_string): Likewise.
13287 * remote-utils.c (decode_M_packet): Likewise.
13288 * server.c (process_serial_event): Likewise.
13289
13290 2014-02-12 Tom Tromey <tromey@redhat.com>
13291
13292 * server.c (handle_query, handle_v_run): Use hex2bin, not
13293 unhexify.
13294 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
13295
13296 2014-02-12 Tom Tromey <tromey@redhat.com>
13297
13298 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
13299 convert_int_to_ascii.
13300 * regcache.c (registers_to_string, collect_register_as_string):
13301 Likewise.
13302 * remote-utils.c (look_up_one_symbol, relocate_instruction):
13303 Likewise.
13304 * server.c (process_serial_event): Likewise.
13305 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
13306 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
13307
13308 2014-02-12 Tom Tromey <tromey@redhat.com>
13309
13310 * remote-utils.c (look_up_one_symbol, monitor_output): Use
13311 bin2hex, not hexify.
13312 * tracepoint.c (cmd_qtstatus): Likewise.
13313
13314 2014-02-12 Tom Tromey <tromey@redhat.com>
13315
13316 * remote-utils.c (monitor_output): Pass explicit length to
13317 hexify.
13318
13319 2014-02-12 Tom Tromey <tromey@redhat.com>
13320
13321 * tracepoint.c: Include rsp-low.h.
13322 * server.c: Include rsp-low.h.
13323 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
13324 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
13325 declare.
13326 * remote-utils.c: Include rsp-low.h.
13327 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
13328 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
13329 (convert_int_to_ascii, convert_ascii_to_int): Move to
13330 common/rsp-low.c.
13331 * regcache.c: Include rsp-low.h.
13332 * ax.c: Include rsp-low.h.
13333 * Makefile.in (SFILES): Add common/rsp-low.c.
13334 (OBS): Add rsp-low.o.
13335 (rsp-low.o): New target.
13336
13337 2014-02-12 Tom Tromey <tromey@redhat.com>
13338
13339 * utils.h (pulongest, plongest, phex_nz): Don't declare.
13340 Include print-utils.h.
13341 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13342 (plongest, thirty_two, phex_nz): Remove.
13343 * Makefile.in (SFILES): Add common/print-utils.c.
13344 (OBS): Add print-utils.o.
13345 (print-utils-ipa.o): New target.
13346 (print-utils.o): New target.
13347 (IPA_OBJS): Add print-utils-ipa.o.
13348
13349 2014-02-06 Tom Tromey <tromey@redhat.com>
13350
13351 * Makefile.in (SFILES): Fix indentation.
13352
13353 2014-02-05 Doug Evans <dje@google.com>
13354
13355 * linux-low.c (linux_wait_for_event): Improve comment.
13356 (linux_wait_1): Keep current_inferior in sync with event_child.
13357
13358 2014-01-22 Doug Evans <dje@google.com>
13359
13360 * gdbthread.h (gdb_id_to_thread): Delete, unused.
13361
13362 2014-01-22 Doug Evans <dje@google.com>
13363
13364 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
13365 * configure: Regenerate.
13366 * config.in: Regenerate.
13367 * Makefile.in (SFILES): Add debug.c.
13368 (OBS): Add debug.o.
13369 * debug.c: New file.
13370 * debug.h: New file.
13371 * linux-aarch64-low.c (*): Update all debugging printfs to use
13372 debug_printf instead of fprintf.
13373 * linux-arm-low.c (*): Ditto.
13374 * linux-cris-low.c (*): Ditto.
13375 * linux-crisv32-low.c (*): Ditto.
13376 * linux-m32r-low.c (*): Ditto.
13377 * linux-sparc-low.c (*): Ditto.
13378 * linux-x86.c (*): Ditto.
13379 * linux-low.c (*): Ditto.
13380 (linux_wait_1): Add calls to debug_enter, debug_exit.
13381 (linux_wait): Remove redundant debugging printf.
13382 (stop_all_lwps): Add calls to debug_enter, debug_exit.
13383 (linux_resume, unstop_all_lwps): Ditto.
13384 * mem-break.c (*): Update all debugging printfs to use
13385 debug_printf instead of fprintf.
13386 * remote-utils.c (*): Ditto.
13387 * thread-db.c (*): Ditto.
13388 * server.c #include <ctype.h>, "gdb_vecs.h".
13389 (debug_threads): Moved to debug.c.
13390 (*): Update all debugging printfs to use debug_printf instead of
13391 fprintf.
13392 (start_inferior): Replace call to fflush with call to debug_flush.
13393 (monitor_show_help): Mention set debug-format.
13394 (parse_debug_format_options): New function.
13395 (handle_monitor_command): Handle "monitor set debug-format".
13396 (gdbserver_usage): Mention --debug-format.
13397 (main): Parse --debug-format.
13398 * server.h (debug_threads): Declaration moved to debug.h.
13399 #include "debug.h".
13400 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
13401 trace_debug_1 that uses debug_printf.
13402 (tracepoint_look_up_symbols): Update all debugging printfs to use
13403 debug_printf instead of fprintf.
13404
13405 2014-01-20 Baruch Siach <baruch@tkos.co.il>
13406
13407 * linux-xtensa-low.c: Include asm/ptrace.h instead of
13408 sys/ptrace.h.
13409
13410 2014-01-17 Pedro Alves <palves@redhat.com>
13411
13412 PR build/16445
13413 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
13414 defined after including gdb_proc_service.h.
13415
13416 2014-01-16 Doug Evans <dje@google.com>
13417
13418 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
13419 (match_dll): Use it.
13420
13421 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13422
13423 * target.h (target_ops) <read_btrace>: Change parameters and
13424 return type to allow error reporting.
13425 * server.c (handle_qxfer_btrace): Support delta reads. Pass
13426 trace reading errors on.
13427 * linux-low.c (linux_low_read_btrace): Pass trace reading
13428 errors on.
13429 (linux_low_disable_btrace): New.
13430
13431 2014-01-15 Doug Evans <dje@google.com>
13432
13433 * inferiors.c (thread_id_to_gdb_id): Delete.
13434 * inferiors.h (thread_id_to_gdb_id): Delete.
13435
13436 2014-01-13 Eli Zaretskii <eliz@gnu.org>
13437
13438 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
13439 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
13440 versions.
13441
13442 2014-01-08 Pedro Alves <palves@redhat.com>
13443
13444 * server.c (handle_status): Don't discard previous queued stop
13445 replies or thread's pending status here.
13446 (main) <disconnection>: Do it here instead.
13447
13448 2014-01-08 Pedro Alves <palves@redhat.com>
13449
13450 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
13451 * server.c (visit_actioned_threads, handle_pending_status): New
13452 function.
13453 (handle_v_cont): Factor out parts to ...
13454 (resume): ... this new function. If in all-stop, and a thread
13455 being resumed has a pending status, report it without actually
13456 resuming.
13457 (myresume): Adjust to use the new 'resume' function.
13458 (clear_pending_status_callback, set_pending_status_callback)
13459 (find_status_pending_thread_callback): New functions.
13460 (handle_status): Handle the case of multiple threads having
13461 interesting statuses to report. Report threads' real last signal
13462 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
13463 with an interesting thread to report the status for, instead of
13464 always reporting the status of the first thread.
13465
13466 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13467
13468 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
13469 * gdbreplay.c (gdbreplay_version): Likewise.
13470
13471 2013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
13472
13473 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
13474 iov.iov_len with the real length in use.
13475
13476 2013-12-13 Joel Brobecker <brobecker@adacore.com>
13477
13478 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
13479 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
13480 for all targets that use win32-low.c.
13481 * win32-low.c (win32_ensure_ntdll_loaded): New function.
13482 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
13483
13484 2013-12-13 Pedro Alves <palves@redhat.com>
13485
13486 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
13487 if equal to TARGET_WAITKIND_LOADED.
13488 * win32-low.c (cached_status): New static global.
13489 (win32_wait): Add declaration.
13490 (do_initial_child_stuff): Flush all initial pending debug events
13491 up to the initial breakpoint.
13492 (win32_wait): If CACHED_STATUS was set, return that instead
13493 of doing a real wait. Remove the code resuming the execution
13494 of the inferior after receiving a TARGET_WAITKIND_LOADED event
13495 during the initial phase. Also remove the code changing
13496 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
13497 TARGET_WAITKIND_STOPPED.
13498
13499 2013-12-11 Yao Qi <yao@codesourcery.com>
13500
13501 * notif.c (handle_notif_ack): Return 0 if no notification
13502 matches.
13503
13504 2013-11-20 Doug Evans <dje@google.com>
13505
13506 * linux-low.c (linux_set_resume_request): Fix comment.
13507
13508 2013-11-20 Doug Evans <dje@google.com>
13509
13510 * linux-low.c (resume_status_pending_p): Tweak comment.
13511
13512 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
13513
13514 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
13515 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
13516 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
13517 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
13518 (srv_amd64_regobj): Add amd64-mpx.o.
13519 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
13520 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
13521 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
13522 * i387-fp.c (num_pl_bnd_register) Added constant.
13523 (num_pl_bnd_cfg_registers) Added constant.
13524 (struct i387_xsave) Added reserved area and MPX fields.
13525 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
13526 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
13527 function.
13528 (tdesc_i386_mpx_linux): Add MPX amd64 target.
13529 (init_registers_amd64_mpx_linux): Declare new function.
13530 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
13531 (x86_64_regmap): Add MPX registers.
13532 (x86_linux_read_description): Add MPX case.
13533 (initialize_low_arch): Initialize MPX targets.
13534
13535 2013-11-18 Tom Tromey <tromey@redhat.com>
13536
13537 * configure: Rebuild.
13538 * configure.ac: Don't check for stdlib.h.
13539 * gdbreplay.c: Unconditionally include stdlib.h.
13540
13541 2013-11-18 Tom Tromey <tromey@redhat.com>
13542
13543 * config.in: Rebuild.
13544 * configure: Rebuild.
13545 * configure.ac: Don't use AC_HEADER_DIRENT.
13546
13547 2013-11-18 Tom Tromey <tromey@redhat.com>
13548
13549 * server.h: Don't check HAVE_STRING_H.
13550 * gdbreplay.c: Don't check HAVE_STRING_H.
13551 * configure: Rebuild.
13552
13553 2013-11-18 Tom Tromey <tromey@redhat.com>
13554
13555 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
13556 LIBGNU.
13557
13558 2013-11-08 Tom Tromey <tromey@redhat.com>
13559
13560 * configure, config.in: Rebuild.
13561 * configure.ac: Remove unused configury.
13562
13563 2013-11-08 Tom Tromey <tromey@redhat.com>
13564
13565 * acinclude.m4: Include common.m4, codeset.m4.
13566 * configure, config.in: Rebuild.
13567 * configure.ac: Use GDB_AC_COMMON.
13568
13569 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
13570
13571 * linux-s390-low.c (HWCAP_S390_TE): New define.
13572 (s390_arch_setup): Consider the TE field in the HWCAP for
13573 determining 'have_regset_tdb'.
13574
13575 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
13576
13577 PR gdb/16014
13578 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
13579 call to sizeof.
13580
13581 2013-10-02 Pedro Alves <palves@redhat.com>
13582
13583 * server.c (process_serial_event): Don't output "GDBserver
13584 exiting" if GDB is connected through stdio.
13585 * target.c (mywait): Likewise, be silent if GDB is connected
13586 through stdio.
13587
13588 2013-10-01 Joel Brobecker <brobecker@adacore.com>
13589
13590 * lynx-low.c (lynx_add_threads_after_attach): New function.
13591 (lynx_attach): Remove call to add_thread. Add call to
13592 lynx_add_threads_after_attach instead.
13593
13594 2013-09-28 Mike Frysinger <vapier@gentoo.org>
13595
13596 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
13597 * config.in, configure: Regenerated.
13598
13599 2013-09-18 Yao Qi <yao@codesourcery.com>
13600
13601 PR server/15959
13602 * server.c (start_inferior): Clear 'resume_info'.
13603
13604 2013-09-16 Jiong Wang <jiwang@tilera.com>
13605
13606 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
13607 for each register.
13608
13609 2013-09-16 Jiong Wang <jiwang@tilera.com>
13610
13611 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
13612 linux-tile-low.o to srv_tgtobj.
13613
13614 2013-09-16 Will Newton <will.newton@linaro.org>
13615
13616 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
13617 out regs.
13618
13619 2013-09-06 Pedro Alves <palves@redhat.com>
13620
13621 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
13622 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
13623 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
13624 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
13625 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
13626 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
13627
13628 2013-09-06 Pedro Alves <palves@redhat.com>
13629
13630 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
13631 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
13632
13633 2013-09-06 Pedro Alves <palves@redhat.com>
13634
13635 * linux-amd64-ipa.c: Include tracepoint.h.
13636 * linux-i386-ipa.c: Include tracepoint.h.
13637
13638 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
13639
13640 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
13641 (ps_get_thread_area): New function.
13642
13643 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
13644
13645 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
13646 (initialize_low_arch): Call init_registers_crisv32 rather than
13647 init_register_crisv32.
13648
13649 2013-09-05 Pedro Alves <palves@redhat.com>
13650
13651 * server.h (handle_vFile, hostio_last_error_from_errno): Move
13652 to ...
13653 * hostio.h: ... this new file.
13654 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
13655 win32-low.c: Include hostio.h.
13656
13657 2013-09-05 Pedro Alves <palves@redhat.com>
13658
13659 * server.h (gdb_client_data, handler_func, callback_handler_func)
13660 (delete_file_handler, add_file_handler, append_callback_event)
13661 (delete_callback_event, start_event_loop, initialize_event_loop):
13662 Move to event-loop.h and include it.
13663 * event-loop.h: New file.
13664
13665 2013-09-05 Pedro Alves <palves@redhat.com>
13666
13667 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
13668 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
13669 (loaded_dll, unloaded_dll): Move to ...
13670 * dll.h: ... this new file.
13671 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
13672
13673 2013-09-05 Pedro Alves <palves@redhat.com>
13674
13675 * server.h (current_process, get_thread_process, all_processes)
13676 (add_inferior_to_list, for_each_inferior, current_inferior)
13677 (remove_inferior, add_process, remove_process, find_process_pid)
13678 (have_started_inferiors_p, have_attached_inferiors_p)
13679 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
13680 (clear_inferiors, find_inferior, find_inferior_id)
13681 (inferior_target_data, set_inferior_target_data)
13682 (inferior_regcache_data, set_inferior_regcache_data): Move to
13683 inferiors.h, and include it.
13684 * inferiors.h: New file.
13685
13686 2013-09-05 Pedro Alves <palves@redhat.com>
13687
13688 * server.h (struct emit_ops, current_insn_ptr, emit_error):
13689 Move ...
13690 * ax.h: ... here.
13691
13692 2013-09-05 Pedro Alves <palves@redhat.com>
13693
13694 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
13695 tracepoint.h.
13696 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
13697 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
13698 (handle_tracepoint_general_set, handle_tracepoint_query)
13699 (tracepoint_finished_step, tracepoint_was_hit)
13700 (release_while_stepping_state_list, current_traceframe)
13701 (in_readonly_region, traceframe_read_mem)
13702 (fetch_traceframe_registers, traceframe_read_sdata)
13703 (traceframe_read_info, struct fast_tpoint_collect_status)
13704 (fast_tracepoint_collecting, force_unlock_trace_buffer)
13705 (handle_tracepoit_bkpts, initialize_low_tracepoint)
13706 (supply_fast_tracepoint_registers)
13707 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
13708 (ipa_tdesc, claim_trampoline_space)
13709 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
13710 (agent_mem_read, agent_get_trace_state_variable_value)
13711 (agent_set_trace_state_variable_value, agent_tsv_read)
13712 (agent_mem_read_string, get_raw_reg_func_addr)
13713 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
13714 * tracepoint.h: ... this new file.
13715
13716 2013-09-05 Pedro Alves <palves@redhat.com>
13717
13718 * server.h (perror_with_name, error, fatal, warning, paddress)
13719 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
13720 include it.
13721 * utils.h: New file.
13722
13723 2013-09-05 Pedro Alves <palves@redhat.com>
13724
13725 * server.h (remote_debug, noack_mode, transport_is_reliable)
13726 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
13727 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
13728 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
13729 (write_enn, initialize_async_io, enable_async_io)
13730 (disable_async_io, check_remote_input_interrupt_request)
13731 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
13732 (dead_thread_notify, prepare_resume_reply)
13733 (decode_address_to_semicolon, decode_address, decode_m_packet)
13734 (decode_M_packet, decode_X_packet, decode_xfer_write)
13735 (decode_search_memory_packet, unhexify, hexify)
13736 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
13737 (look_up_one_symbol, relocate_instruction)
13738 (monitor_output): Move to remote-utils.h, and include it.
13739 * remote-utils.h: New file.
13740
13741 2013-09-05 Pedro Alves <palves@redhat.com>
13742
13743 * server.h (_): Delete.
13744
13745 2013-09-02 Pedro Alves <palves@redhat.com>
13746
13747 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
13748 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
13749 allocated.
13750 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
13751
13752 2013-09-02 Pierre Muller <muller@sourceware.org>
13753
13754 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
13755 or WriteProcessMemory complete successfully and handle
13756 ERROR_PARTIAL_COPY error.
13757
13758 2013-09-02 Pedro Alves <palves@redhat.com>
13759
13760 * server.c (gdb_read_memory): Return -1 on traceframe memory read
13761 error instead of EIO.
13762
13763 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
13764
13765 PR server/15604
13766 * linux-low.c: Include filestuff.h.
13767 (linux_create_inferior) <pid == 0>: Call close_most_fds.
13768 * lynx-low.c: Include filestuff.h.
13769 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
13770 * server.c: Include filestuff.h.
13771 (main): Call notice_open_fds.
13772 * spu-low.c: Include filestuff.h.
13773 (spu_create_inferior) <pid == 0>: Call close_most_fds.
13774
13775 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
13776
13777 * Makefile.in: Explain why ../target and ../nat are not
13778 listed as include file search paths.
13779 (linux-waitpid.o): New object file rule.
13780 * configure.srv (srv_native_linux_obj): New variable.
13781 Replace all occurrences of linux native object files with
13782 $srv_native_linux_obj.
13783 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
13784 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
13785 (linux_enable_event_reporting): Remove declaration.
13786 (my_waitpid): Moved to common/linux-waitpid.c.
13787 (linux_wait_for_event): Pass ptid when calling
13788 linux_enable_event_reporting.
13789 (linux_supports_tracefork_flag): Remove.
13790 (linux_enable_event_reporting): Likewise.
13791 (linux_tracefork_grandchild): Remove.
13792 (STACK_SIZE): Moved to common/linux-ptrace.c.
13793 (linux_tracefork_child): Remove.
13794 (linux_test_for_tracefork): Remove.
13795 (linux_look_up_symbols): Call linux_supports_traceclone.
13796 (initialize_low): Remove call to linux_test_for_tracefork.
13797 * linux-low.h (PTRACE_TYPE_ARG3): Move to
13798 common/linux-ptrace.h.
13799 (PTRACE_TYPE_ARG4): Likewise.
13800 Include linux-ptrace.h.
13801
13802 2013-08-21 Pedro Alves <palves@redhat.com>
13803
13804 * config.in: Renegerate.
13805
13806 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
13807
13808 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
13809 (SFILES): Remove $(srcdir)/common/target-common.c and
13810 add $(srcdir)/target/waitstatus.c.
13811 (OBS): Remove target-common.o and add waitstatus.o.
13812 (server_h): Remove $(srcdir)/../common/target-common.h and
13813 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
13814 and $(srcdir)/../target/waitstatus.h.
13815 (target-common.o): Remove.
13816 (waitstatus.o): New target object file.
13817 * target.h: Do not include target-common.h and
13818 include target/resume.h, target/wait.h and
13819 target/waitstatus.h.
13820
13821 2013-08-13 Luis Machado <lgustavo@codesourcery.com>
13822
13823 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13824 to PTRACE_TYPE_ARG3.
13825 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13826 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
13827 PTRACE_TYPE_ARG4.
13828 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
13829 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
13830
13831 2013-07-27 Jie Zhang <jie@codesourcery.com>
13832 Daniel Jacobowitz <dan@codesourcery.com>
13833 Yao Qi <yao@codesourcery.com>
13834
13835 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
13836 (mips-linux-watch.o): New rule.
13837 (mips_linux_watch_h): New variable.
13838 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
13839 srv_tgtobj.
13840 * linux-mips-low.c: Include mips-linux-watch.h.
13841 (struct arch_process_info, struct arch_lwp_info): New.
13842 (update_watch_registers_callback): New function.
13843 (mips_linux_new_process, mips_linux_new_thread) New functions.
13844 (mips_linux_prepare_to_resume, mips_insert_point): New
13845 functions.
13846 (mips_remove_point, mips_stopped_by_watchpoint): New
13847 functions.
13848 (rsp_bp_type_to_target_hw_bp_type): New function.
13849 (mips_stopped_data_address): New function.
13850 (the_low_target): Add watchpoint support functions.
13851
13852 2013-07-27 Yao Qi <yao@codesourcery.com>
13853
13854 * i386-low.c: Include break-common.h.
13855 (enum target_hw_bp_type): Remove.
13856
13857 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
13858
13859 * Makefile.in (SFILES): /common/target-common.c.
13860 (OBS): Add target-common.o.
13861 (server_h): Add $(srcdir)/../common/target-common.h.
13862 (target-common.o): New target.
13863 * server.c (queue_stop_reply_callback): Free
13864 status string after use.
13865 * target.c (target_waitstatus_to_string): Remove.
13866 * target.h: Include target-common.h.
13867 (resume_kind): Likewise.
13868 (target_waitkind): Likewise.
13869 (target_waitstatus): Likewise.
13870 (TARGET_WNOHANG): Likewise.
13871
13872 2013-07-04 Yao Qi <yao@codesourcery.com>
13873
13874 * Makefile.in (host_alias): Use @host_noncanonical@.
13875 (target_alias): Use @target_noncanonical@.
13876 * configure.ac: Use ACX_NONCANONICAL_TARGET and
13877 ACX_NONCANONICAL_HOST.
13878 * configure: Regenerated.
13879
13880 Revert:
13881 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13882
13883 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13884 * configure: Rebuild.
13885 * Makefile.in (version_host, version_target): Get from configure.
13886 (version.c): Use $(version_host) and $(version_target).
13887
13888 2013-07-03 Pedro Alves <palves@redhat.com>
13889
13890 * Makefile.in (config.status): Depend on development.sh.
13891 * acinclude.m4: Include libmcheck.m4.
13892 * configure: Regenerate.
13893
13894 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13895
13896 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
13897 attribute inside the parentheses.
13898 (winapi_DebugSetProcessKillOnExit): Ditto.
13899 (winapi_DebugBreakProcess): Ditto.
13900 (winapi_GenerateConsoleCtrlEvent): Ditto.
13901
13902 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13903
13904 * notif.h (notif_event): Add a dummy member to avoid compiler
13905 errors.
13906
13907 2013-07-01 Pedro Alves <palves@redhat.com>
13908
13909 * hostio.c (HOSTIO_PATH_MAX): Define.
13910 (require_filename, handle_open, handle_unlink, handle_readlink):
13911 Use it.
13912
13913 2013-07-01 Pedro Alves <palves@redhat.com>
13914
13915 * server.h: Include "pathmax.h".
13916 * linux-low.c: Don't include sys/param.h.
13917 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
13918 MAXPATHLEN.
13919 * win32-low.c: Don't include sys/param.h.
13920 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
13921
13922 2013-07-01 Pedro Alves <palves@redhat.com>
13923
13924 * event-loop.c: Don't check HAVE_UNISTD_H before including
13925 <unistd.h>.
13926 * gdbreplay.c: Likewise.
13927 * remote-utils.c: Likewise.
13928 * server.c: Likewise.
13929 * configure.ac: Don't check for unistd.h.
13930 * configure: Regenerate.
13931
13932 2013-06-28 Tom Tromey <tromey@redhat.com>
13933
13934 * Makefile.in (version.c): Use version.in, not
13935 common/version.in.
13936
13937 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13938
13939 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13940 * configure: Rebuild.
13941 * Makefile.in (version_host, version_target): Get from configure.
13942 (version.c): Use $(version_host) and $(version_target).
13943
13944 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13945
13946 Fix trace-status to output user name without trailing colon.
13947 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
13948
13949 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13950
13951 Fix trace-status to output proper start-time and stop-time.
13952 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
13953 output start time and stop time in hex as gdb expects.
13954
13955 2013-06-26 Pedro Alves <pedro@codesourcery.com>
13956
13957 * tracepoint.c (build_traceframe_info_xml): Output trace state
13958 variables present in the trace buffer.
13959
13960 2013-06-24 Tom Tromey <tromey@redhat.com>
13961
13962 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
13963 create-version.sh.
13964 (version.o): Remove.
13965 * gdbreplay.c: Include version.h.
13966 (version, host_name): Don't declare.
13967 * server.h: Include version.h.
13968 (version, host_name): Don't declare.
13969
13970 2013-06-12 Pedro Alves <palves@redhat.com>
13971
13972 * linux-x86-low.c (linux_is_elf64): Delete global.
13973 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
13974 with local linux_pid_exe_is_elf_64_file use.
13975
13976 2013-06-11 Pedro Alves <palves@redhat.com>
13977
13978 * linux-low.c (regset_disabled, disable_regset): New functions.
13979 (regsets_fetch_inferior_registers)
13980 (regsets_store_inferior_registers): Use them.
13981 (initialize_regsets_info); Don't allocate the disabled_regsets
13982 array here.
13983 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
13984 comment.
13985
13986 2013-06-11 Pedro Alves <palves@redhat.com>
13987
13988 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
13989 xmalloc.
13990
13991 2013-06-11 Pedro Alves <palves@redhat.com>
13992
13993 * linux-x86-low.c (initialize_low_arch): Call
13994 init_registers_x32_avx_linux.
13995
13996 2013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13997
13998 Fix compatibility with Android Bionic.
13999 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
14000 it is not empty.
14001
14002 2013-06-07 Pedro Alves <palves@redhat.com>
14003
14004 PR server/14823
14005 * Makefile.in (OBS): Add tdesc.o.
14006 (IPA_OBJS): Add tdesc-ipa.o.
14007 (tdesc-ipa.o): New rule.
14008 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
14009 interface.
14010 * linux-low.c (new_inferior): Delete.
14011 (disabled_regsets, num_regsets): Delete.
14012 (linux_add_process): Adjust to set the new per-process
14013 new_inferior flag.
14014 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
14015 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
14016 was a stop. When calling arch_setup, switch the current inferior
14017 to the thread that got an event.
14018 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
14019 (regsets_fetch_inferior_registers)
14020 (regsets_store_inferior_registers): New regsets_info parameter.
14021 Adjust to use it.
14022 (linux_register_in_regsets): New regs_info parameter. Adjust to
14023 use it.
14024 (register_addr, fetch_register, store_register): New usrregs_info
14025 parameter. Adjust to use it.
14026 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
14027 parameter regs_info. Adjust to use it.
14028 (linux_fetch_registers): Get the current inferior's regs_info, and
14029 adjust to use it.
14030 (linux_store_registers): Ditto.
14031 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
14032 (initialize_low): Don't initialize the target_regsets here. Call
14033 initialize_low_arch.
14034 * linux-low.h (target_regsets): Delete declaration.
14035 (struct regsets_info): New.
14036 (struct usrregs_info): New.
14037 (struct regs_info): New.
14038 (struct process_info_private) <new_inferior>: New field.
14039 (struct linux_target_ops): Delete the num_regs, regmap, and
14040 regset_bitmap fields. New field regs_info.
14041 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
14042 * i387-fp.c (num_xmm_registers): Delete.
14043 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
14044 calls to new interface.
14045 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
14046 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
14047 Infer the number of xmm registers from the regcache's target
14048 description.
14049 * i387-fp.h (num_xmm_registers): Delete.
14050 * inferiors.c (add_thread): Don't install the thread's regcache
14051 here.
14052 * proc-service.c (gregset_info): Fetch the current inferior's
14053 regs_info. Adjust to use it.
14054 * regcache.c: Include tdesc.h.
14055 (register_bytes, reg_defs, num_registers)
14056 (gdbserver_expedite_regs): Delete.
14057 (get_thread_regcache): If the thread doesn't have a regcache yet,
14058 create one, instead of aborting gdbserver.
14059 (regcache_invalidate_one): Rename to ...
14060 (regcache_invalidate_thread): ... this.
14061 (regcache_invalidate_one): New.
14062 (regcache_invalidate): Only invalidate registers of the current
14063 process.
14064 (init_register_cache): Add target_desc parameter, and use it.
14065 (new_register_cache): Ditto. Assert the target description has a
14066 non zero registers_size.
14067 (regcache_cpy): Add assertions. Adjust.
14068 (realloc_register_cache, set_register_cache): Delete.
14069 (registers_to_string, registers_from_string): Adjust.
14070 (find_register_by_name, find_regno, find_register_by_number)
14071 (register_cache_size): Add target_desc parameter, and use it.
14072 (free_register_cache_thread, free_register_cache_thread_one)
14073 (regcache_release, register_cache_size): New.
14074 (register_size): Add target_desc parameter, and use it.
14075 (register_data, supply_register, supply_register_zeroed)
14076 (supply_regblock, supply_register_by_name, collect_register)
14077 (collect_register_as_string, collect_register_by_name): Adjust.
14078 * regcache.h (struct target_desc): Forward declare.
14079 (struct regcache) <tdesc>: New field.
14080 (init_register_cache, new_register_cache): Add target_desc
14081 parameter.
14082 (regcache_invalidate_thread): Declare.
14083 (regcache_invalidate_one): Delete declaration.
14084 (regcache_release): Declare.
14085 (find_register_by_number, register_cache_size, register_size)
14086 (find_regno): Add target_desc parameter.
14087 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
14088 declarations.
14089 * remote-utils.c: Include tdesc.h.
14090 (outreg, prepare_resume_reply): Adjust.
14091 * server.c: Include tdesc.h.
14092 (gdbserver_xmltarget): Delete declaration.
14093 (get_features_xml, process_serial_event): Adjust.
14094 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
14095 declare.
14096 (struct process_info) <tdesc>: New field.
14097 (ipa_tdesc): Declare.
14098 * tdesc.c: New file.
14099 * tdesc.h: New file.
14100 * tracepoint.c: Include tdesc.h.
14101 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
14102 (get_context_regcache): Adjust to pass ipa_tdesc down.
14103 (do_action_at_tracepoint): Adjust to get the register cache size
14104 from the context regcache's description.
14105 (traceframe_walk_blocks): Adjust to get the register cache size
14106 from the current trace frame's description.
14107 (traceframe_get_pc): Adjust to get current trace frame's
14108 description and pass it down.
14109 (gdb_collect): Adjust to get the register cache size from the
14110 IPA's description.
14111 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
14112 (gdbserver_xmltarget): Delete.
14113 (initialize_low_tracepoint): Set the ipa's target description.
14114 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
14115 (initialize_low_tracepoint): Set the ipa's target description.
14116 * linux-x86-low.c: Include tdesc.h.
14117 [__x86_64__] (is_64bit_tdesc): New.
14118 (ps_get_thread_area, x86_get_thread_area): Use it.
14119 (i386_cannot_store_register): Rename to ...
14120 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
14121 (i386_cannot_fetch_register): Rename to ...
14122 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
14123 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
14124 to new interface.
14125 (target_regsets): Rename to ...
14126 (x86_regsets): ... this.
14127 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
14128 interface.
14129 (x86_siginfo_fixup): Use is_64bit_tdesc.
14130 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
14131 (tdesc_x32_avx_linux, tdesc_x32_linux)
14132 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
14133 Declare.
14134 (x86_linux_update_xmltarget): Delete.
14135 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
14136 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
14137 (AMD64_LINUX_USER64_CS): New.
14138 (x86_linux_read_description): New, based on
14139 x86_linux_update_xmltarget.
14140 (same_process_callback): New.
14141 (x86_arch_setup_process_callback): New.
14142 (x86_linux_update_xmltarget): New.
14143 (x86_regsets_info): New.
14144 (amd64_linux_regs_info): New.
14145 (i386_linux_usrregs_info): New.
14146 (i386_linux_regs_info): New.
14147 (x86_linux_regs_info): New.
14148 (x86_arch_setup): Reimplement.
14149 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
14150 (x86_emit_ops): Ditto.
14151 (the_low_target): Adjust. Install x86_linux_regs_info,
14152 x86_cannot_fetch_register, and x86_cannot_store_register.
14153 (initialize_low_arch): New.
14154 * linux-ia64-low.c (tdesc_ia64): Declare.
14155 (ia64_fetch_register): Adjust.
14156 (ia64_usrregs_info, regs_info): New globals.
14157 (ia64_regs_info): New function.
14158 (the_low_target): Adjust.
14159 (initialize_low_arch): New function.
14160 * linux-sparc-low.c (tdesc_sparc64): Declare.
14161 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
14162 Adjust.
14163 (sparc_arch_setup): New function.
14164 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
14165 (the_low_target): Adjust.
14166 (initialize_low_arch): New function.
14167 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
14168 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
14169 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
14170 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
14171 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
14172 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
14173 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
14174 (tdesc_powerpc_isa205_vsx64l): Declare.
14175 (ppc_cannot_store_register, ppc_collect_ptrace_register)
14176 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
14177 (ppc_set_pc, ppc_get_hwcap): Adjust.
14178 (ppc_usrregs_info): Forward declare.
14179 (!__powerpc64__) ppc_regmap_adjusted: New global.
14180 (ppc_arch_setup): Adjust to the current process'es target
14181 description.
14182 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
14183 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
14184 (ppc_store_evrregset): Adjust.
14185 (target_regsets): Rename to ...
14186 (ppc_regsets): ... this, and make static.
14187 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
14188 (ppc_regs_info): New function.
14189 (the_low_target): Adjust.
14190 (initialize_low_arch): New function.
14191 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
14192 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
14193 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
14194 (tdesc_s390x_linux64v2): Declare.
14195 (s390_collect_ptrace_register, s390_supply_ptrace_register)
14196 (s390_fill_gregset, s390_store_last_break): Adjust.
14197 (target_regsets): Rename to ...
14198 (s390_regsets): ... this, and make static.
14199 (s390_get_pc, s390_set_pc): Adjust.
14200 (s390_get_hwcap): New target_desc parameter, and use it.
14201 [__s390x__] (have_hwcap_s390_high_gprs): New global.
14202 (s390_arch_setup): Adjust to set the current process'es target
14203 description. Don't adjust the regmap.
14204 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
14205 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
14206 (regs_info_3264): New globals.
14207 (s390_regs_info): New function.
14208 (the_low_target): Adjust.
14209 (initialize_low_arch): New function.
14210 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
14211 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
14212 [__mips64] (init_registers_mips_linux)
14213 (init_registers_mips_dsp_linux): Delete defines.
14214 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
14215 (have_dsp): New global.
14216 (mips_read_description): New, based on mips_arch_setup.
14217 (mips_arch_setup): Reimplement.
14218 (get_usrregs_info): New function.
14219 (mips_cannot_fetch_register, mips_cannot_store_register)
14220 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
14221 (mips_fill_fpregset, mips_store_fpregset): Adjust.
14222 (target_regsets): Rename to ...
14223 (mips_regsets): ... this, and make static.
14224 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
14225 (dsp_regs_info, regs_info): New globals.
14226 (mips_regs_info): New function.
14227 (the_low_target): Adjust.
14228 (initialize_low_arch): New function.
14229 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
14230 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
14231 Declare.
14232 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
14233 (arm_read_description): New, with bits factored from
14234 arm_arch_setup.
14235 (arm_arch_setup): Reimplement.
14236 (target_regsets): Rename to ...
14237 (arm_regsets): ... this, and make static.
14238 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
14239 (arm_regs_info): New function.
14240 (the_low_target): Adjust.
14241 (initialize_low_arch): New function.
14242 * linux-m68k-low.c (tdesc_m68k): Declare.
14243 (target_regsets): Rename to ...
14244 (m68k_regsets): ... this, and make static.
14245 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
14246 (m68k_regs_info): New function.
14247 (m68k_arch_setup): New function.
14248 (the_low_target): Adjust.
14249 (initialize_low_arch): New function.
14250 * linux-sh-low.c (tdesc_sharch): Declare.
14251 (target_regsets): Rename to ...
14252 (sh_regsets): ... this, and make static.
14253 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
14254 (sh_regs_info, sh_arch_setup): New functions.
14255 (the_low_target): Adjust.
14256 (initialize_low_arch): New function.
14257 * linux-bfin-low.c (tdesc_bfin): Declare.
14258 (bfin_arch_setup): New function.
14259 (bfin_usrregs_info, regs_info): New globals.
14260 (bfin_regs_info): New function.
14261 (the_low_target): Adjust.
14262 (initialize_low_arch): New function.
14263 * linux-cris-low.c (tdesc_cris): Declare.
14264 (cris_arch_setup): New function.
14265 (cris_usrregs_info, regs_info): New globals.
14266 (cris_regs_info): New function.
14267 (the_low_target): Adjust.
14268 (initialize_low_arch): New function.
14269 * linux-cris-low.c (tdesc_crisv32): Declare.
14270 (cris_arch_setup): New function.
14271 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
14272 (cris_regs_info): New function.
14273 (the_low_target): Adjust.
14274 (initialize_low_arch): New function.
14275 * linux-m32r-low.c (tdesc_m32r): Declare.
14276 (m32r_arch_setup): New function.
14277 (m32r_usrregs_info, regs_info): New globals.
14278 (m32r_regs_info): Adjust.
14279 (initialize_low_arch): New function.
14280 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
14281 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
14282 (tic6x_usrregs_info): Forward declare.
14283 (tic6x_read_description): New function, based on ...
14284 (tic6x_arch_setup): ... this. Reimplement.
14285 (target_regsets): Rename to ...
14286 (tic6x_regsets): ... this, and make static.
14287 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
14288 (tic6x_regs_info): New function.
14289 (the_low_target): Adjust.
14290 (initialize_low_arch): New function.
14291 * linux-xtensa-low.c (tdesc_xtensa): Declare.
14292 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
14293 (target_regsets): Rename to ...
14294 (xtensa_regsets): ... this, and make static.
14295 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
14296 globals.
14297 (xtensa_arch_setup, xtensa_regs_info): New functions.
14298 (the_low_target): Adjust.
14299 (initialize_low_arch): New function.
14300 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
14301 (nios2_arch_setup): Set the current process'es tdesc.
14302 (target_regsets): Rename to ...
14303 (nios2_regsets): ... this.
14304 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
14305 (nios2_regs_info): New function.
14306 (the_low_target): Adjust.
14307 (initialize_low_arch): New function.
14308 * linux-aarch64-low.c (tdesc_aarch64): Declare.
14309 (aarch64_arch_setup): Set the current process'es tdesc.
14310 (target_regsets): Rename to ...
14311 (aarch64_regsets): ... this.
14312 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
14313 (aarch64_regs_info): New function.
14314 (the_low_target): Adjust.
14315 (initialize_low_arch): New function.
14316 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
14317 globals.
14318 (target_regsets): Rename to ...
14319 (tile_regsets): ... this.
14320 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
14321 (tile_regs_info): New function.
14322 (tile_arch_setup): Set the current process'es tdesc.
14323 (the_low_target): Adjust.
14324 (initialize_low_arch): New function.
14325 * spu-low.c (tdesc_spu): Declare.
14326 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
14327 * win32-arm-low.c (tdesc_arm): Declare.
14328 (arm_arch_setup): New function.
14329 (the_low_target): Install arm_arch_setup instead of
14330 init_registers_arm.
14331 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
14332 (init_windows_x86): Rename to ...
14333 (i386_arch_setup): ... this. Set `win32_tdesc'.
14334 (the_low_target): Adjust.
14335 * win32-low.c (win32_tdesc): New global.
14336 (child_add_thread): Don't create the thread cache here.
14337 (do_initial_child_stuff): Set the new process'es tdesc.
14338 * win32-low.h (struct target_desc): Forward declare.
14339 (win32_tdesc): Declare.
14340 * lynx-i386-low.c (tdesc_i386): Declare global.
14341 (lynx_i386_arch_setup): Set `lynx_tdesc'.
14342 * lynx-low.c (lynx_tdesc): New global.
14343 (lynx_add_process): Set the new process'es tdesc.
14344 * lynx-low.h (struct target_desc): Forward declare.
14345 (lynx_tdesc): Declare global.
14346 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
14347 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
14348 * nto-low.c (nto_tdesc): New global.
14349 (do_attach): Set the new process'es tdesc.
14350 * nto-low.h (struct target_desc): Forward declare.
14351 (nto_tdesc): Declare.
14352 * nto-x86-low.c (tdesc_i386): Declare.
14353 (nto_x86_arch_setup): Set `nto_tdesc'.
14354
14355 2013-06-04 Gary Benson <gbenson@redhat.com>
14356
14357 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
14358 to qSupported response when appropriate.
14359 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
14360 with nonzero-length annex.
14361 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
14362 arguments supplied in annex.
14363
14364 2013-05-31 Doug Evans <dje@google.com>
14365
14366 PR server/15594
14367 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
14368 64 bits in 64-cross-32 environment.
14369
14370 2013-05-28 Pedro Alves <palves@redhat.com>
14371
14372 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
14373 (aarch64-without-fpu.c): Delete rule.
14374 * configure.srv (aarch64*-*-linux*): Remove references to
14375 aarch64-without-fpu.o and aarch64-without-fpu.xml.
14376 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
14377 declaration.
14378
14379 2013-05-24 Pedro Alves <palves@redhat.com>
14380
14381 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
14382 instead of strchr/decode_address. Error if the range isn't split
14383 with a ','. Don't assume there's be a ':' in the action.
14384
14385 2013-05-23 Yao Qi <yao@codesourcery.com>
14386 Pedro Alves <palves@redhat.com>
14387
14388 * linux-low.c (lwp_in_step_range): New function.
14389 (linux_wait_1): If the thread was range stepping and stopped
14390 outside the stepping range, report the stop to GDB. Otherwise,
14391 continue stepping. Add range stepping debug output.
14392 (linux_set_resume_request): Copy the step range from the resume
14393 request to the lwp.
14394 (linux_supports_range_stepping): New.
14395 (linux_target_ops) <supports_range_stepping>: Set to
14396 linux_supports_range_stepping.
14397 * linux-low.h (struct linux_target_ops)
14398 <supports_range_stepping>: New field.
14399 (struct lwp_info) <step_range_start, step_range_end>: New fields.
14400 * linux-x86-low.c (x86_supports_range_stepping): New.
14401 (the_low_target) <supports_range_stepping>: Set to
14402 x86_supports_range_stepping.
14403 * server.c (handle_v_cont): Handle 'r' action.
14404 (handle_v_requests): Append ";r" if the target supports range
14405 stepping.
14406 * target.h (struct thread_resume) <step_range_start,
14407 step_range_end>: New fields.
14408 (struct target_ops) <supports_range_stepping>:
14409 New field.
14410 (target_supports_range_stepping): New macro.
14411
14412 2013-05-17 Joel Brobecker <brobecker@adacore.com>
14413
14414 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
14415 confusion in comment.
14416
14417 2013-05-17 Joel Brobecker <brobecker@adacore.com>
14418
14419 * lynx-low.c (struct process_info_private): New type.
14420 (lynx_add_process): New function.
14421 (lynx_create_inferior, lynx_attach): Replace calls to
14422 add_process by calls to lynx_add_process.
14423 (lynx_resume): If PTID is null, then try using
14424 current_process()->private->last_wait_event_ptid.
14425 Add comments.
14426 (lynx_clear_inferiors): Delete. The contents of that function
14427 has been inlined in lynx_mourn;
14428 (lynx_wait_1): Save the ptid in the process's private data.
14429 (lynx_mourn): Free the process' private data. Replace call
14430 to lynx_clear_inferiors by call to clear_inferiors.
14431
14432 2013-05-17 Yao Qi <yao@codesourcery.com>
14433
14434 * i386-low.c (i386_length_and_rw_bits): Move the comment to
14435 the right place.
14436
14437 2013-05-16 Luis Machado <lgustavo@codesourcery.com>
14438
14439 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
14440 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
14441 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
14442 PT_TEXT_END_ADDR guards. Update comments.
14443 (linux_target_op) <read_offsets>: Conditionally define to
14444 linux_read_offsets if the target is UCLIBC and if it defines
14445 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
14446
14447 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
14448 Andrew Jenner <andrew@codesourcery.com>
14449
14450 * Makefile.in (SFILES): Add linux-nios2-low.c.
14451 (clean): Add action to delete nios2-linux.c.
14452 (nios2-linux.c): New rule.
14453 * configure.srv: Add nios2*-*-linux*.
14454 * linux-nios2-low.c: New.
14455
14456 2013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
14457
14458 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
14459
14460 2013-04-25 Hui Zhu <hui@codesourcery.com>
14461
14462 PR gdb/15186
14463 * ax.c (ax_printf): Add fflush.
14464
14465 2013-04-22 Tom Tromey <tromey@redhat.com>
14466
14467 * Makefile.in (SFILES): Add filestuff.c.
14468 (OBS): Add filestuff.o.
14469 (filestuff.o): New target.
14470 * config.in, configure: Rebuild.
14471 * configure.ac: Check for fdwalk, pipe2.
14472
14473 2013-04-17 Pedro Alves <palves@redhat.com>
14474
14475 * configure.ac (USE_THREAD_DB): Delete variable.
14476 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
14477 Don't AC_SUBST USE_THREAD_DB.
14478 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
14479 * config.in, configure: Regenerate.
14480
14481 2013-04-16 Pedro Alves <palves@redhat.com>
14482
14483 * linux-low.h (struct lwp_info) <thread_known>: Move under
14484 the USE_THREAD_DB #ifdef.
14485
14486 2013-04-16 Pedro Alves <palves@redhat.com>
14487
14488 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
14489 (linux-low.o): Delete rule.
14490 * linux-low.h: Always include "gdb_thread_db.h" instead of
14491 conditionally including thread_db.h.
14492 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
14493 HAVE_THREAD_DB_H.
14494
14495 2013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14496
14497 * Makefile.in (install-only): Fix make install regression.
14498
14499 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
14500
14501 Convert man pages to texinfo, new gdbinit.5 texinfo page.
14502 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
14503 installation.
14504 * gdbserver.1: Remove.
14505
14506 2013-03-22 Pedro Alves <palves@redhat.com>
14507
14508 * linux-low.c (handle_extended_wait): Don't call
14509 linux_enable_event_reporting.
14510
14511 2013-03-15 Tony Theodore <tonyt@logyst.com>
14512
14513 PR build/9098:
14514 * Makefile.in (SHELL): Use @SHELL@.
14515
14516 2013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
14517
14518 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
14519 compiler warning.
14520
14521 2013-03-13 Joel Brobecker <brobecker@adacore.com>
14522
14523 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
14524 Remove extraneous NULL element.
14525
14526 2013-03-13 Yao Qi <yao@codesourcery.com>
14527
14528 * tracepoint.c (traceframe_read_tsv): Look for the last matched
14529 'V' block in trace frame.
14530
14531 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14532
14533 * target.h (struct target_ops): Add btrace ops.
14534 (target_supports_btrace): New macro.
14535 (target_enable_btrace): New macro.
14536 (target_disable_btrace): New macro.
14537 (target_read_btrace): New macro.
14538 * gdbthread.h (struct thread_info): Add btrace field.
14539 * server.c: Include btrace-common.h.
14540 (handle_btrace_general_set): New function.
14541 (handle_btrace_enable): New function.
14542 (handle_btrace_disable): New function.
14543 (handle_general_set): Call handle_btrace_general_set.
14544 (handle_qxfer_btrace): New function.
14545 (struct qxfer qxfer_packets[]): Add btrace entry.
14546 * inferiors.c (remove_thread): Disable btrace.
14547 * linux-low: Include linux-btrace.h.
14548 (linux_low_enable_btrace): New function.
14549 (linux_low_read_btrace): New function.
14550 (linux_target_ops): Add btrace ops.
14551 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
14552 Add srv_linux_btrace=yes.
14553 (x86_64-*-linux*): Add linux-btrace.o.
14554 Add srv_linux_btrace=yes.
14555 * configure.ac: Define HAVE_LINUX_BTRACE.
14556 * config.in: Regenerated.
14557 * configure: Regenerated.
14558
14559 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14560
14561 * server.c (handle_qxfer): Preserve error message if -3 is
14562 returned.
14563 (qxfer): Document the -3 return value.
14564
14565 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14566
14567 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
14568 (linux_btrace_h): New variable.
14569 (linux-btrace.o): New rule.
14570
14571 2013-03-08 Stan Shebs <stan@codesourcery.com>
14572 Hafiz Abid Qadeer <abidh@codesourcery.com>
14573
14574 * tracepoint.c (trace_buffer_size): New global.
14575 (DEFAULT_TRACE_BUFFER_SIZE): New define.
14576 (init_trace_buffer): Change to one-argument function. Allocate
14577 trace buffer memory.
14578 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
14579 handle QTBuffer:size packet.
14580 (cmd_bigqtbuffer_size): New function.
14581 (initialize_tracepoint): Call init_trace_buffer with
14582 DEFAULT_TRACE_BUFFER_SIZE.
14583 * server.c (handle_query): Add QTBuffer:size in the
14584 supported packets.
14585
14586 2013-03-07 Yao Qi <yao@codesourcery.com>
14587
14588 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
14589 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
14590 of -1.
14591 (cmd_qtsp): Adjust condition. Do post increment.
14592 Set cur_action and cur_step_action back to 0.
14593
14594 2013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
14595
14596 PR server/15236
14597 * linux-low.c (linux_write_memory): Return early success if LEN is
14598 zero.
14599
14600 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
14601
14602 * configure.srv: Add x86_64-*-cygwin* as target.
14603
14604 2013-02-28 Tom Tromey <tromey@redhat.com>
14605
14606 * configure.ac: Invoke AC_SYS_LARGEFILE.
14607 * configure, config.in: Rebuild.
14608
14609 2013-02-28 Corinna Vinschen <vinschen@redhat.com>
14610
14611 * win32-low.c: Throughout, fix format strings and casts of
14612 printf-like functions to avoid type related warnings on all
14613 platforms.
14614 (get_child_debug_event): Print dwDebugEventCode as hex since
14615 that's how it's usually documented.
14616
14617 2013-02-28 Yao Qi <yao@codesourcery.com>
14618
14619 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
14620 pulongest.
14621
14622 2013-02-27 Jiong Wang <jiwang@tilera.com>
14623
14624 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
14625 (reg-tilegx32.c): New rule.
14626 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
14627 * linux-tile-low.c (tile_arch_setup): New function. Invoke
14628 different register info initializer according to elf class.
14629 (init_registers_tilgx32): New function. The tilegx32 register info
14630 initializer.
14631 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
14632 (tile_store_gregset): Likewise.
14633
14634 2013-02-27 Yao Qi <yao@codesourcery.com>
14635
14636 * server.c (process_point_options): Print debug message when
14637 debug_threads is true.
14638
14639 2013-02-26 Yao Qi <yao@codesourcery.com>
14640
14641 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
14642
14643 2013-02-19 Pedro Alves <palves@redhat.com>
14644 Kai Tietz <ktietz@redhat.com>
14645
14646 PR gdb/15161
14647
14648 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
14649 instead of strtoul to extract address from packet.
14650 (process_serial_event) <'z'>: Likewise.
14651
14652 2013-02-18 Yao Qi <yao@codesourcery.com>
14653
14654 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
14655
14656 2013-02-14 Pedro Alves <palves@redhat.com>
14657
14658 Plug memory leak.
14659
14660 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
14661 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
14662
14663 2013-02-14 Pedro Alves <palves@redhat.com>
14664
14665 * tracepoint.c (cmd_qtdpsrc): Use savestring.
14666
14667 2013-02-14 Pedro Alves <palves@redhat.com>
14668
14669 * tracepoint.c (save_string): Delete.
14670 (add_tracepoint_action): Use savestring instead of save_string.
14671
14672 2013-02-12 Pedro Alves <palves@redhat.com>
14673
14674 * linux-xtensa-low.c: Ditto.
14675 * xtensa-xtregs.c: Ditto.
14676
14677 2013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14678
14679 * thread-db.c (thread_db_get_tls_address): NULL pointer check
14680 thread_db.
14681
14682 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14683
14684 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
14685 aarch64_num_wp_regs and aarch64_num_bp_regs to
14686 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
14687
14688 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14689
14690 * linux-aarch64-low.c (ps_get_thread_area): Replace
14691 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
14692
14693 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
14694 Marcus Shawcroft <marcus.shawcroft@arm.com>
14695 Nigel Stephens <nigel.stephens@arm.com>
14696 Yufeng Zhang <yufeng.zhang@arm.com>
14697
14698 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
14699 (aarch64.c, aarch64-without-fpu.c): New targets.
14700 * configure.srv (aarch64*-*-linux*): New.
14701 * linux-aarch64-low.c: New file.
14702
14703 2013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
14704
14705 * linux-low.c (handle_extended_wait, linux_create_inferior)
14706 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
14707 (dequeue_one_deferred_signal, linux_resume_one_thread)
14708 (fetch_register, linux_write_memory, linux_enable_event_reporting)
14709 (linux_tracefork_grandchild, linux_test_for_tracefork)
14710 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
14711 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
14712 where the argument is 0.
14713
14714 2013-01-25 Yao Qi <yao@codesourcery.com>
14715
14716 * event-loop.c: Include "queue.h".
14717 (gdb_event_p): New typedef.
14718 (struct gdb_event) <next_event>: Remove.
14719 (event_queue): Change to QUEUE(gdb_event_p).
14720 (async_queue_event): Remove.
14721 (gdb_event_xfree): New.
14722 (initialize_event_loop): New.
14723 (process_event): Use API from QUEUE.
14724 (wait_for_event): Likewise.
14725 * server.c (main): Call initialize_event_loop.
14726 * server.h (initialize_event_loop): Declare.
14727
14728 2013-01-18 Yao Qi <yao@codesourcery.com>
14729
14730 * ax.h (struct eval_agent_expr_context): New.
14731 (gdb_eval_agent_expr): Update declaration.
14732 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
14733 TFRAME. Add new argument CTX.
14734 * server.h (struct eval_agent_expr_context): Declare.
14735 (agent_mem_read, agent_tsv_read): Update declaration.
14736 (agent_mem_read_string): Likewise.
14737 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
14738 (add_traceframe_block): Add new argument TPOINT.
14739 Increase TPOINT->traceframe_usage.
14740 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
14741 eval_tracepoint_agent_expr.
14742 (condition_true_at_tracepoint): Likewise.
14743 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
14744 (agent_mem_read_string, agent_tsv_read): Likewise.
14745
14746 2013-01-16 Yao Qi <yao@codesourcery.com>
14747
14748 * linux-low.c (linux_resume_one_lwp): Don't check
14749 'lwp->bp_reinsert != 0'.
14750
14751 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14752 Pedro Alves <palves@redhat.com>
14753
14754 * lynx-low.c (ptrace_request_to_str): Define a temporary
14755 macro and use it to simplify this function's implementation.
14756
14757 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14758
14759 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
14760 sets errno.
14761
14762 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14763
14764 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
14765
14766 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14767
14768 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
14769
14770 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14771
14772 * lynx-low.c (lynx_resume): Use the resume_info parameter
14773 to determine the ptid for the lynx_ptrace call, unless
14774 it is equal to minus_one_ptid, in which case we use the
14775 ptid of the current_inferior.
14776 (lynx_wait_1): After having received a thread create/exit
14777 event, resume the inferior's execution using the signaling
14778 thread's ptid, rather than the old ptid.
14779
14780 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14781
14782 * lynx-low.c (lynx_resume): Delete variable ret.
14783
14784 2013-01-01 Joel Brobecker <brobecker@adacore.com>
14785
14786 * gdbreplay.c (gdbreplay_version): Update copyright year.
14787 * server.c (gdbserver_version): Likewise.
14788
14789 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14790
14791 * lynx-low.c (lynx_wait_1): Add debug trace before adding
14792 new thread.
14793
14794 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14795
14796 * lynx-low.c (ptrace_request_to_str): Add handling for
14797 PTRACE_GETTRACESIG.
14798
14799 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14800
14801 * lynx-low.c (lynx_attach): Delete variable new_process.
14802
14803 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14804
14805 * lynx-low.c (lynx_create_inferior): Delete variable
14806 new_process.
14807
14808 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14809
14810 * lynx-low.c (ptrace_request_to_str): Do not handle
14811 PTRACE_GETTHREADLIST if this macro does not exist.
14812
14813 2012-12-15 Yao Qi <yao@codesourcery.com>
14814
14815 * Makefile.in (OBS): Add notif.o.
14816 * notif.c, notif.h: New.
14817 * server.c: Include "notif.h".
14818 (struct vstop_notif) <next>: Remove.
14819 <base>: New field.
14820 (queue_stop_reply): Update.
14821 (push_event, send_next_stop_reply): Remove.
14822 (discard_queued_stop_replies): Update.
14823 (notif_stop): New variable.
14824 (handle_v_stopped): Remove.
14825 (handle_v_requests): Don't call handle_v_stopped. Call
14826 handle_ack_notif instead.
14827 (queue_stop_reply_callback): Call notif_event_enque instead
14828 of queue_stop_reply.
14829 (handle_status): Don't call send_next_stop_reply, call
14830 notif_write_event instead.
14831 (kill_inferior_callback): Likewise.
14832 (detach_or_kill_inferior_callback): Likewise.
14833 (main): Call initialize_notif.
14834 (process_serial_event): Call QUEUE_is_empty.
14835 (handle_target_event): Call notif_push instead of push event.
14836 * server.h (push_event): Remove declaration.
14837
14838 2012-12-10 Tom Tromey <tromey@redhat.com>
14839
14840 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
14841 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
14842 macros.
14843 (.c.o): Rewrite.
14844 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
14845 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
14846 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
14847 (amd64-linux-ipa.o, ax.o): Rewrite.
14848 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
14849 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
14850 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
14851 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
14852 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
14853 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
14854 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
14855 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
14856 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
14857 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
14858 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
14859 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
14860 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
14861 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
14862 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
14863 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
14864 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
14865 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
14866 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
14867 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
14868 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
14869 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
14870 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
14871 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
14872 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
14873 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
14874 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
14875 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
14876 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
14877 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
14878 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
14879 (reg-tilegx.o): Remove.
14880 (all_object_files): New macro.
14881 Include .deps files.
14882 * aclocal.m4, configure: Rebuild.
14883 * acinclude.m4: Include depstand.m4, lead-dot.m4.
14884 * configure.ac: Invoke ZW_CREATE_DEPDIR,
14885 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
14886
14887 2012-12-05 Tom Tromey <tromey@redhat.com>
14888
14889 PR gdb/14917:
14890 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
14891
14892 2012-11-28 Markus Metzger <markus.t.metzger@intel.com>
14893
14894 * configure.ac: Check for linux/perf_event.h.
14895 * config.in: Regenerated.
14896 * configure: Regenerated.
14897
14898 2012-11-26 Maxime Villard <rustyBSD@gmx.fr>
14899
14900 * hostio.c (handle_readlink): Decrease buffer size
14901 parameter passed to readlink by one byte.
14902
14903 2012-11-26 Yao Qi <yao@codesourcery.com>
14904
14905 * configure.ac (build_warnings): Append '-Wempty-body'.
14906 * configure: Regenerated.
14907 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
14908 body.
14909
14910 2012-11-15 Pierre Muller <muller@sourceware.org>
14911
14912 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
14913 * config.in: Regenerate.
14914 * configure: Regenerate.
14915 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
14916 Use "gdb_wait.h" header instead of <sys/wait.h> header.
14917 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14918 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
14919 header.
14920 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
14921 instead of <sys/wait.h> header.
14922 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14923
14924 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
14925
14926 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
14927 (various make rules): Remove -DGDBSERVER
14928
14929 2012-11-09 Yao Qi <yao@codesourcery.com>
14930
14931 * spu-low.c (current_ptid): Move it to ..
14932 * gdbthread.h: ... here. New.
14933 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
14934 * server.c (myresume, process_serial_event): Likewise.
14935 * thread-db.c (thread_db_find_new_threads): Likewise.
14936 * tracepoint.c (run_inferior_command): Likewise.
14937
14938 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
14939
14940 * server.c (handle_search_memory_1): Include access length in
14941 warning message.
14942
14943 2012-09-05 Michael Brandt <michael.brandt@axis.com>
14944
14945 * linux-crisv32-low.c: Fix compile errors.
14946
14947 2012-09-04 Yao Qi <yao@codesourcery.com>
14948
14949 * tracepoint.c (cmd_qtsv): Adjust debug message.
14950 Don't check CUR_TPOINT.
14951
14952 2012-08-28 Yao Qi <yao@codesourcery.com>
14953
14954 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
14955 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
14956 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
14957 Remove declarations of xmalloc, xreallloc, xstrdup and
14958 freeargv.
14959 * Makefile.in (libiberty_h): New.
14960 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
14961 (linux-bfin-low.o): Append dependency 'libiberty.h'.
14962
14963 2012-08-23 Yao Qi <yao@codesourcery.com>
14964
14965 * server.h: Remove declaration of 'xsnprintf'.
14966
14967 2012-08-22 Keith Seitz <keiths@redhat.com>
14968
14969 * server.h: Include build-gnulib-gbserver/config.h.
14970 * gdbreplay.c: Likewise.
14971
14972 2012-08-08 Doug Evans <dje@google.com>
14973
14974 * Makefile.in (SFILES): Add gdb_vecs.c.
14975 (OBS): Add gdb_vecs.o.
14976 (gdb_vecs_h, host_defs_h): New variables.
14977 (thread-db.o): Add $(gdb_vecs_h) dependency.
14978 (gdb_vecs.o): New rule.
14979 * thread-db.c: #include "gdb_vecs.h".
14980 (thread_db_load_search): Use a vector to iterate over path elements.
14981 Handle text appearing after "$pdir".
14982
14983 * configure.ac: Add check for strstr.
14984 * config.in: Regenerate.
14985 * configure: Regenerate.
14986
14987 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
14988
14989 * hostio.c (handle_pread): If pread fails, fall back to attempting
14990 lseek/read.
14991 (handle_pwrite): Likewise for pwrite.
14992
14993 2012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
14994
14995 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
14996 between unsupported TYPE and unimplementable ADDR/LEN combination.
14997 (arm_insert_point): Act on new return value.
14998
14999 2012-07-31 Pedro Alves <palves@redhat.com>
15000
15001 * server.c (process_point_options): Only skip tokens if we find
15002 one that is unrecognized. Don't treat 'X' specially while
15003 skipping unrecognized tokens.
15004
15005 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
15006
15007 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
15008 to 4-byte-align HW breakpoint addresses for Thumb.
15009
15010 2012-07-27 Yao Qi <yao@codesourcery.com>
15011
15012 PR remote/14161.
15013
15014 * server.h: Declare gdb_agent_about_to_close.
15015 * target.c (kill_inferior): Include "agent.h".
15016 New. Send command 'kill'.
15017 * target.h (kill_inferior): Removed macro.
15018 * tracepoint.c (gdb_agent_about_to_close): New.
15019 (gdb_agent_helper_thread): Handle command 'close'.
15020 Wait endlessly until the inferior stops.
15021 Install gdb_agent_remove_socket to atexit hook.
15022 (agent_socket_name): New static variable.
15023 (gdb_agent_socket_init): Replace local variable 'name' with
15024 'agent_socket_name'.
15025 (gdb_agent_remove_socket): New.
15026
15027 2012-07-27 Yao Qi <yao@codesourcery.com>
15028
15029 * server.c (process_point_options): Stop at 'X' when parsing.
15030
15031 2012-07-19 Michael Eager <eager@eagercon.com>
15032
15033 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
15034 to hw_execute.
15035 * linux-x86-low.c (x86_insert_point, x86_remove_point):
15036 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
15037 hardware breakpoint.
15038
15039 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
15040
15041 * gdbserver/linux-low.c (initialize_low): Call
15042 linux_ptrace_init_warnings.
15043
15044 2012-07-02 Doug Evans <dje@google.com>
15045
15046 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
15047 pointer to int.
15048
15049 2012-07-02 Stan Shebs <stan@codesourcery.com>
15050
15051 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
15052 (ax.o): Add it to build rule.
15053 (ax-ipa.o): Ditto.
15054 (OBS): Add format.o.
15055 (IPA_OBS): Add format.o.
15056 * server.c (handle_query): Claim support for breakpoint commands.
15057 (process_point_options): Add command case.
15058 (process_serial_event): Leave running if there are printfs in
15059 effect.
15060 * mem-break.h (any_persistent_commands): Declare.
15061 (add_breakpoint_commands): Declare.
15062 (gdb_no_commands_at_breakpoint): Declare.
15063 (run_breakpoint_commands): Declare.
15064 * mem-break.c (struct point_command_list): New struct.
15065 (struct breakpoint): New field command_list.
15066 (any_persistent_commands): New function.
15067 (add_commands_to_breakpoint): New function.
15068 (add_breakpoint_commands): New function.
15069 (gdb_no_commands_at_breakpoint): New function.
15070 (run_breakpoint_commands): New function.
15071 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
15072 locally.
15073 * ax.c: Include format.h.
15074 (ax_printf): New function.
15075 (gdb_eval_agent_expr): Add printf opcode.
15076
15077 2012-06-13 Yao Qi <yao@codesourcery.com>
15078
15079 * server.c (start_inferior): Remove duplicated writes to fields
15080 'last_resume_kind' and 'last_status' of 'current_inferior'.
15081
15082 2012-06-12 Yao Qi <yao@codesourcery.com>
15083 Pedro Alves <palves@redhat.com>
15084
15085 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
15086 comment.
15087 * server.c (handle_v_cont): Extend comment.
15088
15089 2012-06-11 Yao Qi <yao@codesourcery.com>
15090
15091 * linux-low.c (linux_attach): Add 'static'.
15092
15093 2012-06-06 Yao Qi <yao@codesourcery.com>
15094
15095 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
15096
15097 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
15098
15099 Fix gcc -flto compilation warning.
15100 * server.c (main): Make variable multi_mode and attach volatile.
15101
15102 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15103
15104 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
15105 if the platform doesn't know about it.
15106
15107 2012-05-30 Jeff Kenton <jkenton@tilera.com>
15108
15109 * Makefile.in (SFILES): Add linux-tile-low.c.
15110 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
15111 * configure.srv: Handle tilegx-*-linux*.
15112 * linux-tile-low.c: New file.
15113
15114 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
15115
15116 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
15117
15118 2012-05-24 Pedro Alves <palves@redhat.com>
15119
15120 PR gdb/7205
15121
15122 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
15123
15124 2012-05-24 Pedro Alves <palves@redhat.com>
15125
15126 PR gdb/7205
15127
15128 Replace target_signal with gdb_signal throughout.
15129
15130 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
15131
15132 * linux-low.c (linux_store_registers): Avoid the copying sequence
15133 when no data has been retrieved by ptrace.
15134
15135 2012-05-22 Will Deacon <will.deacon@arm.com>
15136
15137 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
15138 Include asm/ptrace.h.
15139 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
15140 already defined.
15141
15142 2012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
15143
15144 * linux-low.c (linux_store_registers): Don't re-retrieve data
15145 with ptrace that has already been obtained from /proc. Always
15146 copy any data retrieved with ptrace to the buffer supplied.
15147
15148 2012-05-11 Yao Qi <yao@codesourcery.com>
15149 Pedro Alves <palves@redhat.com>
15150
15151 * linux-low.c (enum stopping_threads_kind): New.
15152 (stopping_threads): Change type to `enum stopping_threads_kind'.
15153 (handle_extended_wait): If stopping and suspending threads, leave
15154 the new_lwp suspended too.
15155 (linux_wait_for_event): Adjust.
15156 (stop_all_lwps): Set `stopping_threads' to
15157 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
15158 whether we're suspending threads or just stopping them. Assert no
15159 recursion happens.
15160
15161 2012-04-29 Yao Qi <yao@codesourcery.com>
15162
15163 * server.h: Move some code to ...
15164 * gdbthread.h: ... here. New.
15165 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
15166 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
15167 (nto-low.o, win32-low.o): Likewise.
15168 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
15169 * regcache.c, remote-utils.c, server.c: Likewise.
15170 * target.c, tracepoint.c, win32-low.c: Likewise.
15171
15172 2012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15173
15174 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
15175 (PTRACE_ARG4_TYPE): Likewise.
15176 (PTRACE_XFER_TYPE): Likewise.
15177 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
15178 ptrace to PTRACE_ARG3_TYPE.
15179 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
15180 (PTRACE_ARG4_TYPE): Likewise.
15181 (PTRACE_XFER_TYPE): Likewise.
15182 (linux_detach_one_lwp): Cast fourth argument of
15183 ptrace to long then PTRACE_ARG4_TYPE.
15184 (regsets_fetch_inferior_registers): Cast third argument of
15185 ptrace to long then PTRACE_ARG3_TYPE.
15186 (regsets_store_inferior_registers): Likewise.
15187
15188 2012-04-20 Pedro Alves <palves@redhat.com>
15189
15190 * configure: Regenerate.
15191
15192 2012-04-19 Pedro Alves <palves@redhat.com>
15193
15194 * Makefile.in (GNULIB_BUILDDIR): New.
15195 (LIBGNU, INCGNU, GNULIB_H): Adjust.
15196 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
15197 (all, install-only, uninstall, clean-info, all-lib, clean): No
15198 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
15199 (maintainer-clean realclean distclean): Use subdir_do.
15200 (subdir_do): New.
15201 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
15202 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
15203 * acinclude.m4: Include acx_configure_dir.m4.
15204 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
15205 calls. Call AC_PROG_RANLIB. Configure gnulib using
15206 ACX_CONFIGURE_DIR.
15207 (GNULIB): New.
15208 (GNULIB_STDINT_H): Adjust.
15209 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
15210 * gdbreplay.c: Include build-gnulib/config.h.
15211 * server.h: Likewise.
15212 * aclocal.m4: Regenerate.
15213 * config.in: Regenerate.
15214 * configure: Regenerate.
15215
15216 2012-04-19 Pedro Alves <palves@redhat.com>
15217
15218 * Makefile.in (LIBGNU, INCGNU): Adjust.
15219 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
15220 (all, install-only, uninstall, clean-info, all-lib, clean)
15221 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
15222 * configure.ac: Adjust AC_OUTPUT output.
15223 * aclocal.m4: Regenerate.
15224 * configure: Regenerate.
15225
15226 2012-04-19 Pedro Alves <palves@redhat.com>
15227
15228 * Makefile.in (generated_files): New.
15229 (server_h): Remove the explicit dependency on config.h, and depend
15230 on $generated_files.
15231
15232 2012-04-19 Pedro Alves <palves@redhat.com>
15233
15234 * Makefile.in (INCGNU): Add -Ignulib.
15235
15236 2012-04-19 Pedro Alves <palves@redhat.com>
15237
15238 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
15239 (INCGNU): ... this, and spell out -I here.
15240 (GNULIB_LIB): Rename to ...
15241 (LIBGNU): ... this.
15242 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
15243
15244 2012-04-19 Pedro Alves <palves@redhat.com>
15245
15246 * config.in: Regenerate.
15247
15248 2012-04-19 Pedro Alves <palves@redhat.com>
15249
15250 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
15251 * server.h (memmem): Remove declaration.
15252 * config.in: Regenerate.
15253 * configure: Regenerate.
15254
15255 2012-04-19 Yao Qi <yao@codesourcery.com>
15256
15257 * Makefile.in (SFILES): Add common/vec.c.
15258 (OBS): Add vec.o.
15259 (vec.o): New rule.
15260
15261 2012-04-19 Yao Qi <yao@codesourcery.com>
15262
15263 * remote-utils.c (prepare_resume_reply): Replace with macro
15264 target_core_of_thread.
15265 * server.c (handle_qxfer_threads_proper): Likewise.
15266 * target.h (traget_core_of_thread): New macro.
15267
15268 2012-04-18 Pedro Alves <palves@redhat.com>
15269
15270 * aclocal.m4: Regenerate.
15271 * configure: Regenerate.
15272
15273 2012-04-16 Yao Qi <yao@codesourcery.com>
15274
15275 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
15276 duplicated on address.
15277
15278 2012-04-16 Yao Qi <yao@codesourcery.com>
15279
15280 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
15281 (struct tracepoint_action_ops) <send>: New field.
15282 (m_tracepoint_action_send, r_tracepoint_action_send): New.
15283 (agent_expr_send, x_tracepoint_action_send): New.
15284 (l_tracepoint_action_send): New.
15285 (cmd_qtdp): Download and install tracepoint
15286 according to `use_agent'.
15287 (run_inferior_command): Add one more parameter `len'.
15288 Update callers.
15289 (tracepoint_send_agent): New.
15290 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
15291
15292 2012-04-16 Yao Qi <yao@codesourcery.com>
15293
15294 * tracepoint.c (download_tracepoints): Moved to ...
15295 (cmd_qtstart): ... here.
15296
15297 2012-04-14 Yao Qi <yao@codesourcery.com>
15298
15299 * tracepoint.c: Include inttypes.h.
15300 (struct collect_memory_action): Use sized types.
15301 (struct tracepoint): Likewise.
15302 (cmd_qtdp, stop_tracing): Update print specifiers.
15303 (cmd_qtp, response_tracepoint): Likewise.
15304 (collect_data_at_tracepoint): Likewise.
15305 (collect_data_at_step): Likewise.
15306
15307 2012-04-14 Yao Qi <yao@codesourcery.com>
15308
15309 Import gnulib module inttypes.
15310 * aclocal.m4, config.in, configure: Regenerated.
15311
15312 2012-04-14 Yao Qi <yao@codesourcery.com>
15313
15314 * Makefile.in (maintainer-clean, realclean, distclean): Remove
15315 Makefile and config.status at last.
15316
15317 2012-04-13 Yao Qi <yao@codesourcery.com>
15318
15319 * tracepoint.c: Include stdint.h unconditionally.
15320
15321 2012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15322
15323 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
15324 on BFD_HAVE_SYS_PROCFS_TYPE.
15325 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
15326 * configure: Regenerate.
15327 * config.in: Likewise.
15328
15329 2012-04-13 H.J. Lu <hongjiu.lu@intel.com>
15330
15331 * Makefile.in (clean): Also remove x32.c x32-linux.c
15332 x32-avx.c x32-avx-linux.c.
15333 (x32.o): New target.
15334 (x32.c): Likewise.
15335 (x32-linux.o): Likewise.
15336 (x32-linux.c): Likewise.
15337 (x32-avx.o): Likewise.
15338 (x32-avx.c): Likewise.
15339 (x32-avx-linux.o): Likewise.
15340 (x32-avx-linux.c): Likewise.
15341
15342 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
15343 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
15344 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
15345 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
15346 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
15347 i386/x32-avx-linux.xml.
15348
15349 * linux-x86-low.c (init_registers_x32_linux): New prototype.
15350 (init_registers_x32_avx_linux): Likwise.
15351 (x86_linux_update_xmltarget): Call init_registers_x32_linux
15352 or init_registers_x32_avx_linux if linux_is_elf64 is false.
15353
15354 2012-04-13 Pedro Alves <palves@redhat.com>
15355
15356 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
15357 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
15358 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
15359 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
15360 the sub-make.
15361
15362 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15363
15364 * linux-x86-low.c (compat_x32_clock_t): New.
15365 (compat_x32_siginfo_t): Likewise.
15366 (compat_x32_siginfo_from_siginfo): Likewise.
15367 (siginfo_from_compat_x32_siginfo): Likewise.
15368 (linux_is_elf64): Likewise.
15369 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
15370 and siginfo_from_compat_x32_siginfo for x32.
15371 (x86_arch_setup): Set linux_is_elf64.
15372
15373 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15374
15375 PR gdb/13969
15376 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
15377 e_machine field.
15378 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
15379 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
15380 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
15381 compatible with process.
15382
15383 2012-04-12 Yao Qi <yao@codesourcery.com>
15384
15385 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
15386 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
15387 (install-only, install-info, clean): Handle sub dir gnulib.
15388 (all-lib, am--refresh): New targets.
15389 (memmem.o): Remove target.
15390 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
15391 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
15392 (AC_REPLACE_FUNCS): Remove memmem.
15393 Invoke gl_INIT and AM_INIT_AUTOMAKE.
15394 (AC_OUTPUT): Generate Makefile in gnulib/.
15395 * aclocal.m4, config.in, configure: Regenerated.
15396
15397 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
15398
15399 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
15400
15401 2012-04-05 Pedro Alves <palves@redhat.com>
15402
15403 -Werror=strict-aliasing
15404
15405 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
15406 pointer.
15407
15408 2012-04-04 Pedro Alves <palves@redhat.com>
15409
15410 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
15411 (sparc_store_gregset_from_stack, sparc_store_gregset)
15412 (sparc_breakpoint_at): Fix formatting.
15413
15414 2012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15415
15416 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
15417 are available.
15418 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
15419 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
15420 * config.in: Regenerate.
15421 * configure: Likewise.
15422
15423 2012-03-29 Pedro Alves <palves@redhat.com>
15424
15425 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
15426 Correct ptrace arguments.
15427
15428 2012-03-28 Pedro Alves <palves@redhat.com>
15429
15430 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
15431 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
15432 (IA64_FR1_REGNUM): New defines.
15433 (ia64_fetch_register): New.
15434 (the_low_target): Install it.
15435 * linux-low.h (struct linux_target_ops) <fetch_register>: New
15436 field.
15437 * linux-low.c (linux_fetch_registers): Try the
15438 the_low_target.fetch_register hook first.
15439
15440 * linux-arm-low.c (the_low_target): Adjust.
15441 * linux-bfin-low.c (the_low_target): Adjust.
15442 * linux-cris-low.c (the_low_target): Adjust.
15443 * linux-crisv32-low.c (the_low_target): Adjust.
15444 * linux-m32r-low.c (the_low_target): Adjust.
15445 * linux-m68k-low.c (the_low_target): Adjust.
15446 * linux-mips-low.c (the_low_target): Adjust.
15447 * linux-ppc-low.c (the_low_target): Adjust.
15448 * linux-s390-low.c (the_low_target): Adjust.
15449 * linux-sh-low.c (the_low_target): Adjust.
15450 * linux-sparc-low.c (the_low_target): Adjust.
15451 * linux-tic6x-low.c (the_low_target): Adjust.
15452 * linux-x86-low.c (the_low_target): Adjust.
15453 * linux-xtensa-low.c (the_low_target): Adjust.
15454
15455 2012-03-26 Pedro Alves <palves@redhat.com>
15456
15457 * server.c (handle_qxfer_libraries): Don't bail early if
15458 the_target->qxfer_libraries_svr4 is not NULL.
15459
15460 2012-03-26 Pedro Alves <palves@redhat.com>
15461
15462 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
15463
15464 2012-03-23 Pedro Alves <palves@redhat.com>
15465
15466 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
15467 "library-list-svr4" element's start tag when the the DSO list is
15468 empty.
15469
15470 2012-03-23 Pedro Alves <palves@redhat.com>
15471
15472 * linux-low.c (read_one_ptr): Read the inferior's pointer through
15473 a variable whose type size is the same as the inferior's pointer
15474 size.
15475
15476 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
15477
15478 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
15479 struct siginfo.
15480 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
15481 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
15482 * linux-low.h: Include <signal.h>.
15483 (struct siginfo): Remove forward declaration.
15484 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
15485 struct siginfo.
15486
15487 2012-03-21 Mike Frysinger <vapier@gentoo.org>
15488
15489 * .gitignore: Ignore more files.
15490
15491 2012-03-19 Pedro Alves <palves@redhat.com>
15492 Jan Kratochvil <jan.kratochvil@redhat.com>
15493
15494 * server.c (cont_thread, general_thread): Add describing comments.
15495 (start_inferior): Clear `cont_thread'.
15496 (handle_v_cont): Don't set `cont_thread' if resuming all threads
15497 of a process.
15498
15499 2012-03-15 Yao Qi <yao@codesourcery.com>
15500
15501 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
15502 handling to ...
15503 (cmd_qtdp): ... here.
15504
15505 2012-03-15 Yao Qi <yao@codesourcery.com>
15506
15507 * tracepoint.c (struct tracepoint_action_ops): New.
15508 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
15509 (m_tracepoint_action_download): New.
15510 (r_tracepoint_action_download): New.
15511 (x_tracepoint_action_download): New.
15512 (l_tracepoint_action_download): New.
15513 (add_tracepoint_action): Install `action->ops' according type.
15514 (download_tracepoint_1): Move code `download' function pointer
15515 of various tracepoint_action_ops.
15516
15517 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15518
15519 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
15520 linux_ptrace_attach_warnings.
15521
15522 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15523
15524 * Makefile.in (linux-ptrace.o): New.
15525 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
15526 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
15527 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
15528 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
15529 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
15530 of these targets.
15531 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
15532
15533 2012-03-08 Yao Qi <yao@codesourcery.com>
15534 Pedro Alves <palves@redhat.com>
15535
15536 Fix PR server/13392.
15537 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
15538 offset of JMP insn.
15539 * tracepoint.c (remove_tracepoint): New.
15540 (cmd_qtdp): Call remove_tracepoint when failed to install.
15541
15542 2012-03-07 Pedro Alves <palves@redhat.com>
15543
15544 * linux-low.c (get_detach_signal): New.
15545 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
15546 Pass on pending signals to PTRACE_DETACH. Check the result of the
15547 ptrace call.
15548 * server.c (program_signals, program_signals_p): New.
15549 (handle_general_set): Handle QProgramSignals.
15550 * server.h (program_signals, program_signals_p): Declare.
15551
15552 2012-03-05 Pedro Alves <palves@redhat.com>
15553 Jan Kratochvil <jan.kratochvil@redhat.com>
15554
15555 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
15556 New comment why.
15557
15558 2012-03-03 Yao Qi <yao@codesourcery.com>
15559
15560 * tracepoint.c (tracepoint_look_up_symbols): Update call to
15561 agent_look_up_symbols.
15562
15563 2012-03-03 Yao Qi <yao@codesourcery.com>
15564
15565 * Makefile.in (linux-low.o): Keep dependence on agent.h.
15566 (linux-x86-low.o): Likewise.
15567 * server.h: Remove in_process_agent_loaded.
15568 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
15569 common/agent.c.
15570 Update callers.
15571
15572 2012-03-03 Yao Qi <yao@codesourcery.com>
15573
15574 * tracepoint.c (gdb_agent_capability): New global.
15575 (in_process_agent_loaded_ust): Renamed to
15576 `in_process_agent_supports_ust'.
15577 Update callers.
15578 (in_process_agent_supports_ust): Call agent_capability_check.
15579 (clear_installed_tracepoints): Assert that agent supports
15580 agent.
15581
15582 2012-03-03 Yao Qi <yao@codesourcery.com>
15583
15584 * linux-low.c (linux_supports_agent): New.
15585 (linux_target_ops): Initialize field `supports_agent' with
15586 linux_supports_agent.
15587 * target.h (struct target_ops) <supports_agent>: New.
15588 (target_supports_agent): New macro.
15589 * server.c (handle_general_set): Handle packet 'QAgent'.
15590 (handle_query): Send `QAgent+'.
15591 * Makefile.in (server.o): Depends on agent.h.
15592
15593 2012-03-03 Yao Qi <yao@codesourcery.com>
15594
15595 * Makefile.in (OBS): Add agent.o.
15596 Add new rule for agent.o.
15597 Track dependence of tracepoint.c on agent.h.
15598 * tracepoint.c (run_inferior_command_1):
15599 (run_inferior_command): Call agent_run_command.
15600 (gdb_ust_connect_sync_socket): Deleted. Move it to
15601 common/agent.c.
15602 (resume_thread, stop_thread): Likewise.
15603 (gdb_ust_socket_init): Renamed to ...
15604 (gdb_agent_socket_init): ... New.
15605 (gdb_ust_thread): Renamed to ...
15606 (gdb_agent_helper_thread): ... New.
15607 (gdb_ust_init): Move some code to ...
15608 (gdb_agent_init): ... here. New.
15609 [HAVE_UST]: Call gdb_ust_init.
15610 (initialize_tracepoint_ftlib): Call gdb_agent_init.
15611 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
15612 * config.in, configure: Regenerated.
15613
15614 2012-03-02 Pedro Alves <palves@redhat.com>
15615
15616 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
15617 * linux-low.c (struct simple_pid_list): New.
15618 (stopped_pids): New a struct simple_pid_list pointer.
15619 (add_to_pid_list, pull_pid_from_list): New.
15620 (handle_extended_wait): Don't assume the first signal new children
15621 report is SIGSTOP. Adjust call to pull_pid_from_list.
15622 (linux_wait_for_lwp): Adjust.
15623
15624 2012-03-02 Yao Qi <yao@codesourcery.com>
15625
15626 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
15627 debug log.
15628
15629 2012-03-02 Yao Qi <yao@codesourcery.com>
15630
15631 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
15632 `stop_pc' and `tpoint'. Update caller.
15633
15634 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
15635
15636 * linux-low.h (linux_target_ops): Add regset_bitmap member.
15637 * linux-low.c (use_linux_regsets): New macro.
15638 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
15639 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
15640 (linux_register_in_regsets): New function.
15641 (usr_fetch_inferior_registers): Skip registers covered by
15642 regsets.
15643 (usr_store_inferior_registers): Likewise.
15644 (usr_fetch_inferior_registers): New macro.
15645 (usr_store_inferior_registers): Likewise.
15646 (linux_fetch_registers): Handle mixed regset/non-regset targets.
15647 (linux_store_registers): Likewise.
15648 * linux-mips-low.c (init_registers_mips_dsp_linux): New
15649 prototype.
15650 (init_registers_mips64_dsp_linux): Likewise.
15651 (init_registers_mips_linux): New macro.
15652 (init_registers_mips_dsp_linux): Likewise.
15653 (mips_dsp_num_regs): Likewise.
15654 (DSP_BASE, DSP_CONTROL): New fallback macros.
15655 (mips_base_regs): New macro.
15656 (mips_regmap): Use it. Fix the size.
15657 (mips_dsp_regmap): New variable.
15658 (mips_dsp_regset_bitmap): Likewise.
15659 (mips_arch_setup): New function.
15660 (mips_cannot_fetch_register): Use the_low_target.regmap rather
15661 than mips_regmap.
15662 (mips_cannot_store_register): Likewise.
15663 (the_low_target): Update .arch_setup, .num_regs and .regmap
15664 initializers. Add .regset_bitmap initializer.
15665 * linux-arm-low.c (the_low_target): Add .regset_bitmap
15666 initializer.
15667 * linux-bfin-low.c (the_low_target): Likewise.
15668 * linux-cris-low.c (the_low_target): Likewise.
15669 * linux-crisv32-low.c (the_low_target): Likewise.
15670 * linux-ia64-low.c (the_low_target): Likewise.
15671 * linux-m32r-low.c (the_low_target): Likewise.
15672 * linux-m68k-low.c (the_low_target): Likewise.
15673 * linux-ppc-low.c (the_low_target): Likewise.
15674 * linux-s390-low.c (the_low_target): Likewise.
15675 * linux-sh-low.c (the_low_target): Likewise.
15676 * linux-sparc-low.c (the_low_target): Likewise.
15677 * linux-tic6x-low.c (the_low_target): Likewise.
15678 * linux-x86-low.c (the_low_target): Likewise.
15679 * linux-xtensa-low.c (the_low_target): Likewise.
15680 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
15681 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
15682 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
15683 srv_xmlfiles.
15684 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
15685 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
15686
15687 2012-02-29 Yao Qi <yao@codesourcery.com>
15688 Pedro Alves <palves@redhat.com>
15689
15690 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
15691 `step_over_finished' is true.
15692
15693 2012-02-27 Pedro Alves <palves@redhat.com>
15694
15695 * linux-low.c (pid_is_stopped): Delete, moved to common/.
15696 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
15697
15698 2012-02-27 Pedro Alves <palves@redhat.com>
15699
15700 PR server/9684
15701 * linux-low.c (pid_is_stopped): New.
15702 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
15703
15704 2012-02-25 Luis Machado <lgustavo@codesourcery.com>
15705
15706 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
15707 of conditions.
15708
15709 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
15710
15711 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
15712
15713 2012-02-24 Luis Machado <lgustavo@codesourcery>
15714
15715 * server.c (handle_query): Advertise support for target-side
15716 breakpoint condition evaluation.
15717 (process_point_options): New function.
15718 (process_serial_event): When inserting a breakpoint, check for
15719 a target-side condition that should be evaluated.
15720
15721 * mem-break.c: Include regcache.h and ax.h.
15722 (point_cond_list_t): New data structure.
15723 (breakpoint) <cond_list>: New field.
15724 (find_gdb_breakpoint_at): Make non-static.
15725 (delete_gdb_breakpoint_at): Clear any target-side
15726 conditions.
15727 (clear_gdb_breakpoint_conditions): New function.
15728 (add_condition_to_breakpoint): Likewise.
15729 (add_breakpoint_condition): Likewise.
15730 (gdb_condition_true_at_breakpoint): Likewise.
15731 (gdb_breakpoint_here): Return result directly instead
15732 of going through a local variable.
15733
15734 * mem-break.h (find_gdb_breakpoint_at): New prototype.
15735 (clear_gdb_breakpoint_conditions): Likewise.
15736 (add_breakpoint_condition): Likewise.
15737 (gdb_condition_true_at_breakpoint): Likewise.
15738
15739 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
15740 (need_step_over_p): Take target-side breakpoint condition into
15741 consideration.
15742
15743 2012-02-24 Luis Machado <lgustavo@codesourcery>
15744
15745 * server.h: Include tracepoint.h.
15746 (agent_mem_read, agent_get_trace_state_variable_value,
15747 agent_set_trace_state_variable_value,
15748 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
15749 get_set_tsv_func_addr): New prototypes.
15750
15751 * ax.h: New include file.
15752 * ax.c: New source file.
15753
15754 * tracepoint.c: Include ax.h.
15755 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
15756 agent_expr, eval_result_type): Move to ax.h.
15757 (parse_agent_expr): Rename to ...
15758 (gdb_parse_agent_expr): ... this, make it non-static and move
15759 to ax.h.
15760 (unparse_agent_expr) Rename to ...
15761 (gdb_unparse_agent_expr): ... this, make it non-static and move
15762 to ax.h.
15763 (eval_agent_expr): Rename to ...
15764 (eval_tracepoint_agent_expr): ... this.
15765 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
15766 forward declarations.
15767 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
15768 (agent_get_trace_state_variable_value): New function.
15769 (agent_set_trace_state_variable_value): New function.
15770 (cmd_qtdp): Call gdb_parse_agent_expr (...).
15771 (response_tracepoint): Call gdb_unparse_agent_expr (...).
15772 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
15773 (condition_true_at_tracepoint): Likewise.
15774 (parse_agent_expr): Rename to ...
15775 (gdb_parse_agent_expr): ... this and move to ax.c.
15776 (unparse_agent_expr): Rename to ...
15777 (gdb_unparse_agent_expr): ... this and move to ax.c.
15778 (gdb_agent_op_name): Move to ax.c.
15779 (eval_agent_expr): Rename to ...
15780 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
15781 and move to ax.c.
15782 (eval_tracepoint_agent_expr): New function.
15783 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
15784 non-static.
15785 (current_insn_ptr, emit_error, struct bytecode_address): Move to
15786 ax.c.
15787 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
15788 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
15789 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
15790 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
15791 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
15792 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
15793 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
15794 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
15795 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
15796 (compile_bytecodes): Remove forward declaration.
15797 (is_goto_target): Move to ax.c.
15798 (compile_bytecodes): Move to ax.c and call
15799 agent_get_trace_state_variable_value (...) and
15800 agent_set_trace_state_variable_value (...).
15801
15802 * Makefile.in: Update ax.c and IPA dependencies.
15803
15804 2012-02-24 Pedro Alves <palves@redhat.com>
15805
15806 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
15807 (cmd_bigqtbuffer_circular): ... this. Only handle
15808 'QTBuffer:circular:'.
15809 (handle_tracepoint_general_set): Adjust.
15810
15811 2012-02-16 Yao Qi <yao@codesourcery.com>
15812
15813 * inferiors.c: Move code to ...
15814 * dll.c: .... here. New.
15815 * server.h: Declare clear_dlls.
15816 * Makefile.in (SFILES): Add dll.c.
15817 (OBS): Add dll.o
15818 (dll.o): New rule.
15819
15820 2012-02-11 Yao Qi <yao@codesourcery.com>
15821
15822 * server.c: (handle_monitor_command): Add a new parameter
15823 `own_buf'.
15824 (handle_query): Update caller.
15825
15826 2012-02-09 Joel Brobecker <brobecker@adacore.com>
15827
15828 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
15829 * configure, config.in: Regenerate.
15830 * hostio.c: Provide an alternate implementation if HAVE_READLINK
15831 is not defined.
15832
15833 2012-02-02 Pedro Alves <palves@redhat.com>
15834
15835 Try SIGKILL first, then PTRACE_KILL.
15836 * linux-low.c (linux_kill_one_lwp): New.
15837 (linux_kill_one_lwp): Rename to ...
15838 (kill_one_lwp_callback): ... this. Use the new
15839 linux_kill_one_lwp.
15840
15841 2012-02-02 Pedro Alves <palves@redhat.com>
15842
15843 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
15844 inferior.
15845
15846 2012-01-27 Pedro Alves <palves@redhat.com>
15847
15848 * linux-low.c (linux_child_pid_to_exec_file): Delete.
15849 (elf_64_file_p): Make static.
15850 (linux_pid_exe_is_elf_64_file): New.
15851 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
15852 Delete declarations.
15853 (linux_pid_exe_is_elf_64_file): Declare.
15854 * linux-x86-low.c (x86_arch_setup): Use
15855 linux_pid_exe_is_elf_64_file.
15856
15857 2012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
15858
15859 * linux-low.c (linux_wait_for_event_1): Rename to ...
15860 (linux_wait_for_event): ... here and merge it with former
15861 linux_wait_for_event - new variable wait_ptid, use it.
15862 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
15863
15864 2012-01-23 Pedro Alves <palves@redhat.com>
15865
15866 * server.c (main): Avoid yet another case of infinite loop while
15867 detaching/killing after a longjmp.
15868
15869 2012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15870
15871 Code cleanup.
15872 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
15873
15874 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
15875
15876 * hostio.c (handle_readlink): New function.
15877 (handle_vFile): Call it to handle "vFile:readlink" packets.
15878
15879 2012-01-20 Pedro Alves <palves@redhat.com>
15880 Ulrich Weigand <ulrich.weigand@linaro.org>
15881
15882 * server.c (handle_v_requests): Only support vAttach and vRun to
15883 start multiple processes when in extended protocol mode.
15884
15885 2012-01-17 Pedro Alves <palves@redhat.com>
15886
15887 * tracepoint.c (initialize_tracepoint): Use mmap instead of
15888 memalign plus mprotect to allocate the scratch buffer.
15889
15890 2012-01-13 Pedro Alves <palves@redhat.com>
15891
15892 * server.c (attach_inferior): Clear `cont_thread'.
15893
15894 2012-01-13 Pedro Alves <palves@redhat.com>
15895
15896 * server.c (main): Avoid infinite loop while detaching/killing
15897 after a longjmp.
15898
15899 2012-01-09 Doug Evans <dje@google.com>
15900
15901 * server.c (start_inferior): Set last_ptid in --wrapper case.
15902
15903 2012-01-06 Yao Qi <yao@codesourcery.com>
15904
15905 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
15906 defined.
15907 [IN_PROCESS_AGENT] (debug_agent): New global variable.
15908
15909 2012-01-04 Yao Qi <yao@codesourcery.com>
15910
15911 * tracepoint.c (cmd_qtdp): Print debug message
15912 for static tracepoint.
15913
15914 2012-01-04 Yao Qi <yao@codesourcery.com>
15915
15916 * tracepoint.c (trace_vdebug): Differentiate debug message
15917 between gdbserver and IPA.
15918
15919 2012-01-03 Yao Qi <yao@codesourcery.com>
15920
15921 * tracepoint.c (tracepoint_was_hit): Don't collect for
15922 static tracepoint.
15923
15924 2012-01-02 Joel Brobecker <brobecker@adacore.com>
15925
15926 * terminal.h: Reformat copyright header.
15927
15928 2012-01-02 Joel Brobecker <brobecker@adacore.com>
15929
15930 * server.c (gdbserver_version): Update copyright year.
15931 * gdbreplay.c (gdbreplay_version): Likewise.
15932
15933 2011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
15934
15935 * linux-low.c (linux_create_inferior): Put empty if clause for write.
15936
15937 Revert:
15938 2011-12-18 Hui Zhu <teawater@gmail.com>
15939 * linux-low.c (linux_create_inferior): Save return value to ret.
15940
15941 2011-12-18 Hui Zhu <teawater@gmail.com>
15942
15943 * linux-low.c (linux_create_inferior): Save return value to ret.
15944
15945 2011-12-16 Doug Evans <dje@google.com>
15946
15947 * linux-low.c (linux_create_inferior): If stdio connection,
15948 redirect stdin from /dev/null, stdout to stderr.
15949 * remote-utils.c (remote_is_stdio): New static global.
15950 (remote_connection_is_stdio): New function.
15951 (remote_prepare): Handle stdio connection.
15952 (remote_open): Ditto.
15953 (remote_close): Don't close stdin for stdio connections.
15954 (read_prim,write_prim): New functions. Replace all calls to
15955 read/write to these.
15956 * server.c (main): Watch for "-" argument. Move call to
15957 remote_prepare before start_inferior.
15958 * server.h (STDIO_CONNECTION_NAME): New macro.
15959 (remote_connection_is_stdio): Declare.
15960
15961 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
15962 in debugging output.
15963
15964 2011-12-15 Yao Qi <yao@codesourcery.com>
15965
15966 * tracepoint.c: Include sys/syscall.h.
15967 (gdb_ust_thread): Remove preprocessor conditional.
15968
15969 2011-12-14 Pedro Alves <pedro@codesourcery.com>
15970
15971 * linux-low.c (linux_detach_one_lwp): Call
15972 the_low_target.prepare_to_resume before detaching.
15973
15974 2011-12-14 Yao Qi <yao@codesourcery.com>
15975
15976 * tracepoint.c (gdb_ust_thread): Don't ignore return value
15977 of write.
15978
15979 2011-12-14 Yao Qi <yao@codesourcery.com>
15980
15981 * i386-low.c (i386_low_stopped_data_address): Initialize local
15982 variable `control'.
15983
15984 2011-12-13 Pedro Alves <pedro@codesourcery.com>
15985
15986 PR remote/13492
15987
15988 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
15989 DR_CONTROL unless necessary. Extend comments.
15990 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
15991 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
15992
15993 2011-12-13 Yao Qi <yao@codesourcery.com>
15994
15995 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
15996 macros.
15997 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
15998
15999 2011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
16000
16001 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
16002 Print new debug message for such case.
16003
16004 2011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
16005
16006 Fix overlapping memcpy.
16007 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
16008 the read_inferior_memory transfer.
16009 (delete_fast_tracepoint_jump): New variable buf. Use it for the
16010 write_inferior_memory transfer.
16011 (set_fast_tracepoint_jump): New variable buf. Use it for the
16012 read_inferior_memory and write_inferior_memory transfers.
16013 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
16014 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
16015 Use it for the write_inferior_memory transfer.
16016 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
16017 buffers.
16018
16019 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
16020
16021 * linux-low.c (fetch_register, store_register): Make code
16022 consistent, fix formatting.
16023
16024 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
16025
16026 * linux-low.c (usr_store_inferior_registers): Factor out code
16027 to handle individual registers into...
16028 (store_register): ... this new function.
16029
16030 2011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
16031
16032 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
16033 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
16034 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
16035 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
16036 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
16037 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
16038 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
16039 (srv_xmlfiles): Add new XML files.
16040
16041 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
16042 and <sys/uio.h>.
16043 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
16044 (init_registers_s390_linux32v1): Add prototype.
16045 (init_registers_s390_linux32v2): Likewise.
16046 (init_registers_s390_linux64v1): Likewise.
16047 (init_registers_s390_linux64v2): Likewise.
16048 (init_registers_s390x_linux64v1): Likewise.
16049 (init_registers_s390x_linux64v2): Likewise.
16050 (s390_num_regs): Increment to 52.
16051 (s390_regmap): Add orig_r2 register.
16052 (s390_num_regs_3264): Increment to 68.
16053 (s390_regmap_3264): Add orig_r2 register.
16054 (s390_collect_ptrace_register): Handle orig_r2 register.
16055 (s390_supply_ptrace_register): Likewise.
16056 (s390_fill_last_break): New function.
16057 (s390_store_last_break): Likewise.
16058 (s390_fill_system_call): New function.
16059 (s390_store_system_call): Likewise.
16060 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
16061 register sets.
16062 (s390_check_regset): New function.
16063 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
16064 NT_S390_SYSTEM_CALL regsets and use appropriate description.
16065 Update target_regsets for available register sets.
16066
16067 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
16068 Jan Kratochvil <jan.kratochvil@redhat.com>
16069
16070 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
16071 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
16072 New.
16073 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
16074 * linux-low.h (struct process_info_private): New member r_debug.
16075 * server.c (handle_qxfer_libraries): Call
16076 the_target->qxfer_libraries_svr4.
16077 (handle_qxfer_libraries_svr4): New function.
16078 (qxfer_packets): New entry "libraries-svr4".
16079 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
16080 * target.h (struct target_ops): New member qxfer_libraries_svr4.
16081 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
16082 PACKET_qXfer_libraries_svr4.
16083
16084 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
16085
16086 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
16087 PSW address/mask between 8-byte and 16-byte formats.
16088 (s390_supply_ptrace_register): Likewise.
16089 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
16090 basic addressing mode bit.
16091
16092 2011-11-24 Stan Shebs <stan@codesourcery.com>
16093
16094 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
16095
16096 2011-11-17 Stan Shebs <stan@codesourcery.com>
16097
16098 * tracepoint.c (struct tracepoint): New field traceframe_usage.
16099 (tracing_start_time): New global.
16100 (tracing_stop_time): New global.
16101 (tracing_user_name): New global.
16102 (tracing_notes): New global.
16103 (tracing_stop_note): New global.
16104 (cmd_qtstart): Set traceframe_usage, start_time.
16105 (stop_tracing): Set stop_time.
16106 (cmd_qtstatus): Report additional status.
16107 (cmd_qtp): New function.
16108 (handle_tracepoint_query): Call it.
16109 (cmd_qtnotes): New function.
16110 (handle_tracepoint_general_set): Call it.
16111 (get_timestamp): Rename from tsv_get_timestamp.
16112
16113 2011-11-14 Stan Shebs <stan@codesourcery.com>
16114 Kwok Cheung Yeung <kcy@codesourcery.com>
16115
16116 * linux-x86-low.c (small_jump_insn): New.
16117 (i386_install_fast_tracepoint_jump_pad): Add arguments for
16118 trampoline and error message, build a trampoline and issue a small
16119 jump instruction to it.
16120 (x86_install_fast_tracepoint_jump_pad): Add arguments for
16121 trampoline and error message.
16122 (x86_get_min_fast_tracepoint_insn_len): New.
16123 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
16124 * linux-low.h (struct linux_target_ops): Add arguments to
16125 install_fast_tracepoint_jump_pad operation, add new operation.
16126 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
16127 arguments.
16128 (linux_get_min_fast_tracepoint_insn_len): New function.
16129 (linux_target_op): Add new operation.
16130 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
16131 (gdb_trampoline_buffer_end): Ditto.
16132 (gdb_trampoline_buffer_error): Ditto.
16133 (struct ipa_sym_addresses): Add fields for new IPA variables.
16134 (symbol_list): Add entries for new IPA variables.
16135 (struct tracepoint): Add fields to hold the address range of the
16136 trampoline used by the tracepoint.
16137 (trampoline_buffer_head): New static variable.
16138 (trampoline_buffer_tail): Ditto.
16139 (claim_trampoline_space): New function.
16140 (have_fast_tracepoint_trampoline_buffer): New function.
16141 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
16142 structure.
16143 (install_fast_tracepoint): Ditto, also add error buffer argument.
16144 (cmd_qtminftpilen): New function.
16145 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
16146 (fast_tracepoint_from_trampoline_address): New function.
16147 (fast_tracepoint_collecting): Handle trampoline as part of jump
16148 pad space.
16149 (set_trampoline_buffer_space): New function.
16150 (initialize_tracepoint): Initialize new IPA variables.
16151 * target.h (struct target_ops): Add arguments to
16152 install_fast_tracepoint_jump_pad operation, add new
16153 get_min_fast_tracepoint_insn_len operation.
16154 (target_get_min_fast_tracepoint_insn_len): New.
16155 (install_fast_tracepoint_jump_pad): Add arguments.
16156 * server.h (IPA_BUFSIZ): Define.
16157 * linux-i386-ipa.c: Include extra header files.
16158 (initialize_fast_tracepoint_trampoline_buffer): New function.
16159 (initialize_low_tracepoint): Call it.
16160 * server.h (set_trampoline_buffer_space): Declare.
16161 (claim_trampoline_space): Ditto.
16162 (have_fast_tracepoint_trampoline_buffer): Ditto.
16163
16164 2011-11-14 Yao Qi <yao@codesourcery.com>
16165
16166 * server.c (handle_query): Handle InstallInTrace for qSupported.
16167 * tracepoint.c (add_tracepoint): Sort list.
16168 (install_tracepoint, download_tracepoint): New.
16169 (cmd_qtdp): Call them to install and download tracepoints.
16170 (sort_tracepoints): Removed.
16171 (cmd_qtstart): Update.
16172
16173 2011-11-14 Yao Qi <yao@codesourcery.com>
16174
16175 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
16176 * mem-break.h: Declare.
16177 * tracepoint.c (cmd_qtstart): Move some code to ...
16178 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
16179 New.
16180 (download_tracepoints): Move some code to ...
16181 (download_tracepoint_1): ... here. New.
16182
16183 2011-11-08 Yao Qi <yao@codesourcery.com>
16184
16185 * remote-utils.c (relocate_instruction): A comment fix.
16186
16187 2011-11-07 Joel Brobecker <brobecker@adacore.com>
16188
16189 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
16190 (i386_dr_low_get_control, i386_dr_low_get_status): Use
16191 dr_status_mirror and dr_control_mirror from debug_reg_state.
16192 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
16193 (i386_initial_stuff): Remove use of deleted globals.
16194 (i386_get_thread_context, i386_set_thread_context,
16195 i386_thread_added): Use dr_status_mirror and dr_control_mirror
16196 from debug_reg_state.
16197
16198 2011-11-05 Yao Qi <yao@codesourcery.com>
16199
16200 * tracepoint.c (gdb_collect): Loop over tracepoints of same
16201 address as TPOINT's.
16202
16203 2011-11-02 Stan Shebs <stan@codesourcery.com>
16204
16205 * tracepoint.c (agent_mem_read_string): New function.
16206 (eval_agent_expr): Call it for tracenz.
16207 * server.c (handle_query): Report support for tracenz.
16208
16209 2011-11-02 Yao Qi <yao@codesourcery.com>
16210
16211 * tracepoint.c (cmd_qtstart): Remove unused local variables.
16212
16213 2011-11-02 Yao Qi <yao@codesourcery.com>
16214
16215 * target.h: Fix a typo in comment.
16216
16217 2011-10-31 Pedro Alves <pedro@codesourcery.com>
16218
16219 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
16220 clobber the breakpoints' shadows with fast tracepoint jumps.
16221 * mem-break.h (check_mem_write): Add `myaddr' parameter.
16222 * target.c (write_inferior_memory): Also pass MYADDR down to
16223 check_mem_write.
16224
16225 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
16226
16227 * configure.ac: Check support for personality routine.
16228 * configure: Regenerate.
16229 * config.in: Likewise.
16230 * linux-low.c: Include <sys/personality.h>.
16231 Define ADDR_NO_RANDOMIZE if necessary.
16232 (linux_create_inferior): Disable address space randomization when
16233 forking inferior, if requested.
16234 (linux_supports_disable_randomization): New function.
16235 (linux_target_ops): Install it.
16236 * server.h (disable_randomization): Declare.
16237 * server.c (disable_randomization): New global variable.
16238 (handle_general_set): Handle QDisableRandomization.
16239 (handle_query): Likewise for qSupported.
16240 (main): Support --disable-randomization and --no-disable-randomization
16241 command line arguments.
16242 * target.h (struct target_ops): Add supports_disable_randomization.
16243 (target_supports_disable_randomization): New macro.
16244
16245 2011-09-29 Mike Frysinger <vapier@gentoo.org>
16246
16247 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
16248 ifdef check.
16249 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
16250 [!PT_GETDSBT] (target_loadmap): New definition.
16251 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
16252 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
16253 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
16254 and PT_GETDSBT to LINUX_LOADMAP.
16255 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
16256 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
16257
16258 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
16259
16260 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
16261 (arm_linux_hwbp_cap): New static variable.
16262 (arm_linux_get_hwbp_cap): Replace by ...
16263 (arm_linux_init_hwbp_cap): ... this new function.
16264 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
16265 (arm_linux_get_hw_watchpoint_count): Likewise.
16266 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16267 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
16268 (arm_prepare_to_resume): Use perror_with_name instead of error.
16269
16270 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
16271
16272 * linux-arm-low.c: Include <signal.h>.
16273 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
16274 (struct arm_linux_hwbp_cap): New data type.
16275 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
16276 (struct arm_linux_hw_breakpoint): New data type.
16277 (MAX_BPTS, MAX_WPTS): Define.
16278 (struct arch_process_info, struct arch_lwp_info): New data types.
16279 (arm_linux_get_hwbp_cap): New function.
16280 (arm_linux_get_hw_breakpoint_count): Likewise.
16281 (arm_linux_get_hw_watchpoint_count): Likewise.
16282 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16283 (arm_hwbp_control_initialize): Likewise.
16284 (arm_hwbp_control_is_enabled): Likewise.
16285 (arm_hwbp_control_is_initialized): Likewise.
16286 (arm_hwbp_control_disable): Likewise.
16287 (arm_linux_hw_breakpoint_equal): Likewise.
16288 (arm_linux_hw_point_initialize): Likewise.
16289 (struct update_registers_data): New data structure.
16290 (update_registers_callback: New function.
16291 (arm_insert_point): Likewise.
16292 (arm_remove_point): Likewise.
16293 (arm_stopped_by_watchpoint): Likewise.
16294 (arm_stopped_data_address): Likewise.
16295 (arm_new_process): Likewise.
16296 (arm_new_thread): Likewise.
16297 (arm_prepare_to_resume): Likewise.
16298 (the_low_target): Register arm_insert_point, arm_remove_point,
16299 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
16300 arm_new_thread, and arm_prepare_to_resume.
16301
16302 2011-09-15 Stan Shebs <stan@codesourcery.com>
16303
16304 * server.h (struct emit_ops): Add compare-goto fields.
16305 * tracepoint.c (gdb_agent_op_sizes): New table.
16306 (emit_eq_goto): New function.
16307 (emit_ne_goto): New function.
16308 (emit_lt_goto): New function.
16309 (emit_le_goto): New function.
16310 (emit_gt_goto): New function.
16311 (emit_ge_goto): New function.
16312 (is_goto_target): New function.
16313 (compile_bytecodes): Recognize special cases of compare-goto
16314 combinations and call specialized emitters for them.
16315 * linux-x86-low.c (amd64_emit_eq_goto): New function.
16316 (amd64_emit_ne_goto): New function.
16317 (amd64_emit_lt_goto): New function.
16318 (amd64_emit_le_goto): New function.
16319 (amd64_emit_gt_goto): New function.
16320 (amd64_emit_ge_goto): New function.
16321 (amd64_emit_ops): Add the new functions.
16322 (i386_emit_eq_goto): New function.
16323 (i386_emit_ne_goto): New function.
16324 (i386_emit_lt_goto): New function.
16325 (i386_emit_le_goto): New function.
16326 (i386_emit_gt_goto): New function.
16327 (i386_emit_ge_goto): New function.
16328 (i386_emit_ops): Add the new functions.
16329
16330 2011-09-08 Stan Shebs <stan@codesourcery.com>
16331
16332 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
16333 (i386_emit_epilogue): Restore %ebx.
16334
16335 2011-08-31 Jie Zhang <jzhang918@gmail.com>
16336
16337 * server.c (step_thread): Remove definition.
16338 (process_serial_event): Don't handle Hs.
16339 * server.h (step_thread): Remove declaration.
16340 * target.c (set_desired_inferior): Remove use of step_thread.
16341
16342 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
16343
16344 * linux-low.c: Include linux-procfs.h.
16345 (linux_attach_lwp_1): Update comments.
16346 (linux_attach): Scan for existing threads when attaching to a
16347 process that is the tgid.
16348 * Makefile.in: Update dependencies.
16349
16350 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
16351
16352 * configure.srv: Add linux-procfs.o dependencies.
16353
16354 2011-08-14 Yao Qi <yao@codesourcery.com>
16355
16356 * target.h (struct target_ops): Fix indent.
16357 * win32-low.c (win32_target_ops): Fix comment.
16358
16359 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
16360 Yao Qi <yao@codesourcery.com>
16361
16362 * Makefile.in (clean): Remove tic6x-*.c files.
16363 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
16364 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
16365 (tic6x-c64xp-linux.c): Likewise.
16366 * configure.srv: Add support for tic6x-*-uclinux.
16367 * linux-tic6x-low.c: New.
16368 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
16369
16370 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
16371 Yao Qi <yao@codesourcery.com>
16372
16373 * target.h (struct target_ops): Add read_loadmap.
16374 * linux-low.c (struct target_loadseg): New type.
16375 (struct target_loadmap): New type.
16376 (linux_read_loadmap): New function.
16377 (linux_target_ops): Add linux_read_loadmap.
16378 * server.c (handle_query): Support qXfer:fdpic:read packet.
16379 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
16380 to NULL.
16381
16382 2011-08-05 Eli Zaretskii <eliz@gnu.org>
16383
16384 * win32-low.c: Include <stdint.h>.
16385
16386 2011-07-22 Pedro Alves <pedro@codesourcery.com>
16387
16388 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
16389 to the inferior here.
16390 (i386_remove_aligned_watchpoint): Ditto.
16391 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
16392 fit part of the watchpoint in the debug registers.
16393 (i386_update_inferior_debug_regs): New.
16394 (i386_low_insert_watchpoint): Work on a local mirror of the debug
16395 registers, and only update the inferior on success.
16396 (i386_low_remove_watchpoint): Ditto.
16397
16398 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
16399
16400 * linux-low.c (compare_ints, unique, list_threads, show_process,
16401 linux_core_of_thread): Delete.
16402 (linux_target_ops): Change linux_core_of_thread to
16403 linux_common_core_of_thread.
16404 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
16405 * utils.c (malloc_failure): Change type of argument.
16406 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
16407 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
16408 common/linux-osdata.c, common/ptid.c and common/buffer.c.
16409 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
16410 (IPA_OBJS): Add common-utils-ipa.o.
16411 (ptid_h, linux_osdata_h): New macros.
16412 (server_h): Add common/common-utils.h, common/xml-utils.h,
16413 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
16414 common/ptid.h.
16415 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
16416 ptid.o, buffer.o): New rules.
16417 (linux-low.o): Add common/linux-osdata.h as a dependency.
16418 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
16419 * configure.ac: Add AC_HEADER_DIRENT check.
16420 * config.in: Regenerate.
16421 * configure: Regenerate.
16422 * remote-utils.c (xml_escape_text): Delete.
16423 (buffer_grow, buffer_free, buffer_init, buffer_finish,
16424 buffer_xml_printf): Move to common/buffer.c.
16425 * server.c (main): Remove call to initialize_inferiors.
16426 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
16427 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
16428 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
16429 internal_error, gdb_assert, gdb_assert_fail): Delete.
16430 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
16431 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
16432 common/buffer.h.
16433 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
16434 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
16435 initialize_inferiors): Delete.
16436
16437 2011-07-20 Pedro Alves <pedro@codesourcery.com>
16438
16439 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
16440 symbol error.
16441
16442 2011-05-31 Pedro Alves <pedro@codesourcery.com>
16443
16444 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
16445 assertion.
16446 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
16447
16448 2011-05-26 Yao Qi <yao@codesourcery.com>
16449
16450 * Makefile.in (thread-db.o): Track dependence to
16451 common/gdb_thread_db.h.
16452 * thread-db.c: include gdb_thread_db.h from right place.
16453
16454 2011-05-16 Adrian Cornish <gnu@bluedreamer.com>
16455
16456 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
16457 __FILE__ and __LINE__ to internal_error.
16458
16459 2011-05-13 Doug Evans <dje@google.com>
16460
16461 * thread-db.c (try_thread_db_load_from_sdir): New function.
16462 (try_thread_db_load_from_dir): New function.
16463 (thread_db_load_search): Handle $sdir, ignore $pdir.
16464 Remove trying of system directories if search of
16465 libthread-db-search-path fails, that is now done via $sdir.
16466
16467 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
16468
16469 * server.c (handle_query): Add EnableDisableTracepoints to the list
16470 of supported features.
16471 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
16472 tracepoints.
16473 (cmd_qtenable_disable): New.
16474 (cmd_qtstart): Install tracepoints even if disabled.
16475 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
16476 receiving a QTEnable or QTDisable packet.
16477 (gdb_collect): Skip data collection if fast tracepoint is disabled.
16478 (ust_marker_to_static_tracepoint): Do not ignore disabled static
16479 tracepoints.
16480 (gdb_probe): Skip data collection if static tracepoint is disabled.
16481
16482 2011-05-10 Doug Evans <dje@google.com>
16483
16484 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
16485
16486 2011-05-04 Doug Evans <dje@google.com>
16487
16488 * linux-low.c (linux_join): Skip process lookup.
16489 * spu-low.c (spu_join): Ditto.
16490 * server.c (join_inferiors_callback): Delete.
16491 (process_serial_event): For 'D' packet (detach) call join_inferior
16492 directly.
16493
16494 2011-05-04 Joseph Myers <joseph@codesourcery.com>
16495
16496 * README: Don't mention xscale*-*-linux*.
16497 * configure.srv (xscale*-*-linux*): Don't handle target.
16498
16499 2011-04-27 Nathan Froyd <froydnj@codesourcery.com>
16500
16501 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
16502 casting pointers.
16503 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
16504 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
16505 (i386_emit_void_call_2): Likewise.
16506
16507 2011-04-26 Yao Qi <yao@codesourcery.com>
16508
16509 * linux-low.c: Move common macros to linux-ptrace.h.
16510 Include linux-ptrace.h.
16511 * Makefile.in (linux_ptrace_h): New.
16512 (linux-low.o): Depends on linux-ptrace.h.
16513
16514 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
16515
16516 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
16517 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
16518 (remote_prepare): New function with most of the TCP code from ...
16519 (remote_open): ... here. Detect PORT here unconditionally. Move also
16520 setting transport_is_reliable.
16521 * server.c (run_once): New variable.
16522 (gdbserver_usage): Document it.
16523 (main): Set run_once for `--once'. Call remote_prepare. Exit after
16524 the first run if RUN_ONCE.
16525 * server.h (run_once, remote_prepare): New declarations.
16526
16527 2011-04-19 Tom Tromey <tromey@redhat.com>
16528
16529 * win32-low.c (handle_load_dll): Remove duplicate "the".
16530
16531 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
16532
16533 Remove support for old Cygwin 1.5 versions.
16534 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
16535 function to avoid warning.
16536 (win32_add_one_solib): Use cygwin_conv_path function to avoid
16537 warning.
16538
16539 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
16540
16541 * gdbserver/server.h (Macro _): Define it if not available.
16542
16543 2011-03-14 Michael Snyder <msnyder@vmware.com>
16544
16545 * hostio.c (handle_close): Remove unnecessary null test.
16546
16547 2011-03-10 Joel Brobecker <brobecker@adacore.com>
16548
16549 * Makefile.in (maintainer-clean realclean distclean): Remove
16550 "make ... subdir_do" command.
16551
16552 2011-03-10 Michael Snyder <msnyder@vmware.com>
16553
16554 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
16555
16556 * server.c (handle_v_run): Free alloced buffer on early return.
16557
16558 2011-03-09 Yao Qi <yao@codesourcery.com>
16559
16560 Revert:
16561 2011-03-04 Yao Qi <yao@codesourcery.com>
16562
16563 * Makefile.in: Remove GNU make feature --directory.
16564
16565 2011-03-05 Yao Qi <yao@codesourcery.com>
16566
16567 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16568 (subdir_do): New make target. Copied from gdb/Makefile.
16569 (maintainer-clean, realclean, distclean, clean): Call corresponding
16570 make targets in common/Makefile.
16571
16572 2011-02-11 Yao Qi <yao@codesourcery.com>
16573
16574 * configure.ac: Call AC_PROG_RANLIB.
16575 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16576 * configure: Regenerate.
16577
16578 2011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
16579
16580 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
16581
16582 2011-03-06 Yao Qi <yao@codesourcery.com>
16583
16584 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
16585
16586 2011-03-05 Yao Qi <yao@codesourcery.com>
16587
16588 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16589 (subdir_do): New make target. Copied from gdb/Makefile.
16590 (maintainer-clean, realclean, distclean, clean): Call corresponding
16591 make targets in common/Makefile.
16592
16593 2011-03-04 Yao Qi <yao@codesourcery.com>
16594
16595 * Makefile.in: Remove GNU make feature --directory.
16596
16597 2011-03-04 Michael Snyder <msnyder@vmware.com>
16598
16599 * server.c (queue_stop_reply): Call xmalloc not malloc.
16600
16601 2011-03-02 Michael Snyder <msnyder@vmware.com>
16602
16603 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
16604
16605 2011-02-28 Michael Snyder <msnyder@vmware.com>
16606
16607 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
16608 (cmd_qtframe): Ditto.
16609 (cmd_qtbuffer): Ditto.
16610 (cmd_bigqtbuffer): Ditto.
16611
16612 * utils.c (decimal2str): Initialize 'width' to nine, then
16613 don't mess with it.
16614
16615 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
16616
16617 * hostio.c (require_data): Free *data, not data.
16618
16619 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
16620
16621 * hostio.c (require_data): Use free, not xfree.
16622
16623 2011-02-27 Michael Snyder <msnyder@vmware.com>
16624
16625 * server.c (handle_query): Discard unused value.
16626
16627 * hostio.c (require_data): Free malloc memory before returning
16628 error.
16629
16630 2011-02-26 Michael Snyder <msnyder@vmware.com>
16631
16632 * linux-low.c (list_threads): Call closedir for dirent.
16633
16634 2011-02-27 Michael Snyder <msnyder@vmware.com>
16635
16636 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
16637 a case statement falls through.
16638
16639 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
16640
16641 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
16642 in comparison.
16643
16644 2011-02-26 Michael Snyder <msnyder@vmware.com>
16645
16646 * utils.c (decimal2str): Eliminate dead code and dead param.
16647 (pulongest): Drop dead param from call to decimal2str.
16648 (plongest): Ditto.
16649
16650 2011-02-24 Joel Brobecker <brobecker@adacore.com>
16651
16652 Revert the following patch (not approved yet):
16653 2011-02-21 Hui Zhu <teawater@gmail.com>
16654 * tracepoint.c (tp_printf): New function.
16655 (eval_agent_expr): Handle gdb_agent_op_printf.
16656
16657 2011-02-21 Hui Zhu <teawater@gmail.com>
16658
16659 * tracepoint.c (tp_printf): New function.
16660 (eval_agent_expr): Handle gdb_agent_op_printf.
16661
16662 2011-02-18 Tom Tromey <tromey@redhat.com>
16663
16664 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
16665 (tracepoint.o): Likewise.
16666 * tracepoint.c (enum gdb_agent_op): Use ax.def.
16667 (gdb_agent_op_names): Likewise.
16668
16669 2011-02-18 Tom Tromey <tromey@redhat.com>
16670
16671 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
16672 gdb_agent_op_rot>: New constants.
16673 (gdb_agent_op_names): Add pick and roll.
16674 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
16675 cases.
16676
16677 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
16678
16679 * aclocal.m4: Regenerated with aclocal-1.11.1.
16680
16681 2011-02-14 Pedro Alves <pedro@codesourcery.com>
16682
16683 * server.c (handle_qxfer_traceframe_info): New.
16684 (qxfer_packets): Register "traceframe-info".
16685 (handle_query): Report support for qXfer:traceframe-info:read+.
16686 * tracepoint.c (match_blocktype): New.
16687 (traceframe_find_block_type): Rename to ...
16688 (traceframe_walk_blocks): ... this. Add callback filter argument,
16689 and use it.
16690 (traceframe_find_block_type): New, reimplemented on top of
16691 traceframe_walk_blocks.
16692 (build_traceframe_info_xml): New.
16693 (traceframe_read_info): New.
16694 * server.h (traceframe_read_info): Declare.
16695
16696 2011-02-11 Yao Qi <yao@codesourcery.com>
16697
16698 * configure.ac: Call AC_PROG_RANLIB.
16699 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16700 * configure: Regenerate.
16701
16702 2011-02-07 Pedro Alves <pedro@codesourcery.com>
16703
16704 * server.c (gdb_read_memory): Change return semantics to allow
16705 partial transfers.
16706 (handle_search_memory_1): Adjust.
16707 (process_serial_event) <'m' packet>: Handle partial transfers.
16708 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
16709
16710 2011-01-28 Pedro Alves <pedro@codesourcery.com>
16711
16712 * regcache.c (init_register_cache): Initialize
16713 regcache->register_status.
16714 (free_register_cache): Release regcache->register_status.
16715 (regcache_cpy): Copy register_status.
16716 (registers_to_string): Print 'x's for unavailable registers.
16717 (supply_register): Mark the register's status valid or
16718 unavailable, depending on whether a buffer was passed in or not.
16719 (supply_register_zeroed): New.
16720 (supply_regblock): Mark the registers' status valid or
16721 unavailable, depending on whether a buffer was passed in or not.
16722 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
16723 (struct regcache): New `register_status' field.
16724 (supply_register_zeroed): Declare.
16725 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
16726 supply_register_zeroed, rather than passing a NULL buffer to
16727 supply_register.
16728 * tracepoint.c (fetch_traceframe_registers): Update comment.
16729
16730 2011-01-28 Pedro Alves <pedro@codesourcery.com>
16731
16732 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
16733 buffer explicit.
16734
16735 2011-01-25 Pedro Alves <pedro@codesourcery.com>
16736
16737 * server.h (decode_xfer_write): Change prototype.
16738 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
16739 and don't extract the annex here.
16740 * server.c (decode_xfer_read): Remove `annex' parameter,
16741 and don't extract the annex here.
16742 (decode_xfer): New.
16743 (struct qxfer): New.
16744 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
16745 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
16746 (handle_qxfer_statictrace): New functions, abstracted out from
16747 handle_query, and made to use the struct qxfer interface.
16748 (handle_threads_qxfer_proper): Rename to ...
16749 (handle_qxfer_threads_proper): ... this.
16750 (handle_threads_qxfer): Rename to ...
16751 (handle_qxfer_threads): ... this. Adjust.
16752 (qxfer_packets): New array.
16753 (handle_qxfer): New function.
16754 (handle_query): Use handle_qxfer.
16755
16756 2011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
16757
16758 * gdbreplay.c: Shorten lines of >= 80 columns.
16759 * linux-low.c: Ditto.
16760 * linux-ppc-low.c: Ditto.
16761 * linux-s390-low.c: Ditto.
16762 * linux-sparc-low.c: Ditto.
16763 * linux-x86-low.c: Ditto.
16764 * linux-xtensa-low.c: Ditto.
16765 * mem-break.c: Ditto.
16766 * nto-low.c: Ditto.
16767 * regcache.h: Ditto.
16768 * remote-utils.c: Ditto.
16769 * server.c: Ditto.
16770 * server.h: Ditto.
16771 * thread-db.c: Ditto.
16772 * tracepoint.c: Ditto.
16773 * utils.c: Ditto.
16774 * win32-low.h: Ditto.
16775
16776 2011-01-05 Joel Brobecker <brobecker@adacore.com>
16777
16778 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
16779 update.
16780
16781 2011-01-01 Joel Brobecker <brobecker@adacore.com>
16782
16783 * server.c (gdbserver_version): Update copyright year in version
16784 output.
16785 * gdbreplay.c (gdbreplay_version): Ditto.
16786
16787 2010-12-29 Jie Zhang <jie.zhang@analog.com>
16788
16789 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
16790 * linux-bfin-low.c: New file.
16791 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
16792 PT_DATA_ADDR for BFIN targets.
16793 * Makefile.in (SFILES): Add linux-bfin-low.c.
16794 (clean): Remove reg-bfin.c.
16795 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
16796 * README: Mention supported Blackfin targets.
16797
16798 2010-12-23 Mike Frysinger <vapier@gentoo.org>
16799
16800 * .gitignore: New file.
16801
16802 2010-11-16 Mike Frysinger <vapier@gentoo.org>
16803
16804 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
16805
16806 2010-10-22 Jie Zhang <jie@codesourcery.com>
16807
16808 * Makefile.in: Add FLAGS_TO_PASS variable.
16809 (install): Remove dependency of install-only and recursively
16810 invoke make for install-only.
16811
16812 2010-10-04 Doug Evans <dje@google.com>
16813
16814 * Makefile.in (uninstall): Use $(DESTDIR).
16815
16816 2010-09-24 Pedro Alves <pedro@codesourcery.com>
16817
16818 PR gdb/11842
16819
16820 * linux-x86-low.c (compat_siginfo_from_siginfo)
16821 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
16822 si_code is < 0. Check for si_code == SI_TIMER before checking for
16823 si_code < 0.
16824
16825 2010-09-13 Joel Brobecker <brobecker@adacore.com>
16826
16827 * lynx-i386-low.c: New file.
16828 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
16829
16830 2010-09-13 Joel Brobecker <brobecker@adacore.com>
16831
16832 * lynx-low.c (ptrace_request_to_str): Remove handling for
16833 request values that have been removed in LynxOS 5.x.
16834
16835 2010-09-13 Joel Brobecker <brobecker@adacore.com>
16836
16837 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
16838 <ptrace.h>
16839
16840 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
16841
16842 * configure.ac: Add --enable-inprocess-agent option.
16843 * configure: Rebuilt.
16844
16845 2010-09-06 Yao Qi <yao@codesourcery.com>
16846
16847 * linux-low.c (linux_kill): Remove unused variable.
16848 (linux_stabilize_threads): Likewise.
16849 * server.c (start_inferior): Likewise.
16850 (queue_stop_reply_callback): Likewise.
16851 * tracepoint.c (do_action_at_tracepoint): Likewise.
16852
16853 2010-09-06 Yao Qi <yao@codesourcery.com>
16854
16855 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
16856 on return.
16857
16858 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
16859
16860 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
16861
16862 2010-09-06 Pedro Alves <pedro@codesourcery.com>
16863
16864 * Makefile.in (install-only): Replace $IPA_DEPFILES with
16865 "$(IPA_DEPFILES)".
16866
16867 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16868
16869 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
16870 gdbserver/lynx-ppc-low.c: New files.
16871 * Makefile.in (lynx_low_h): New variable.
16872 (lynx-low.o, lynx-ppc-low.o): New rules.
16873 * configure.ac: On LynxOS, link with -lnetinet.
16874 * configure.srv: Add handling of powerpc-*-lynxos* targets.
16875 * configure: regenerate.
16876
16877 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16878
16879 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
16880 * configure.ac: Add check for vasprintf and vsnprintf.
16881 * configure, config.in: Regenerate.
16882 * server.h (vasprintf, vsnprintf): Add conditional declarations.
16883
16884 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16885
16886 * gdbreplay.c: Move include of alloca.h up, next to include of
16887 malloc.h.
16888 * server.h: Add include of malloc.h.
16889 * mem-break.c: Remove include of malloc.h.
16890 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
16891
16892 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16893
16894 * Makefile.in (memmem.o): Build with -Wno-error.
16895
16896 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16897
16898 * utils.c (xsnprintf): Make non-static.
16899 * server.h: Add xsnprintf declaration.
16900 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
16901 replace calls to snprintf by calls to xsnprintf throughout.
16902
16903 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16904
16905 * configure.ac: Add configure check for alloca.
16906 * configure, config.in: Regenerate.
16907 * server.h: Include alloca.h if it exists.
16908 * gdbreplay.c: Include alloca.h if it exists.
16909
16910 2010-08-28 Pedro Alves <pedro@codesourcery.com>
16911
16912 * linux-low.c (__SIGRTMIN): Define if not already defined.
16913 (linux_create_inferior): Check for __ANDROID__ rather than
16914 __SIGRTMIN.
16915 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
16916 are already deferred.
16917 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
16918 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
16919 stopped and already has a pending signal to report.
16920 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
16921 a pending signal to report or is moving out of a jump pad.
16922 (linux_init_signals): Check for __ANDROID__ rather than
16923 __SIGRTMIN.
16924
16925 2010-08-28 Pedro Alves <pedro@codesourcery.com>
16926
16927 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
16928 debug_threads check. Avoid a linear search when not doing debug
16929 output.
16930
16931 2010-08-27 Pedro Alves <pedro@codesourcery.com>
16932
16933 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
16934 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
16935 (struct file_handler) <fd>: Change type to gdb_fildes_t.
16936 (process_event): Change local fd's type to gdb_fildes_t.
16937 (create_file_handler): Adjust prototype.
16938 (delete_file_handler): Adjust prototype.
16939 (handle_file_event): Adjust prototype. Use pfildes.
16940 (create_file_event): Adjsut prototype.
16941 * remote-utils.c (remote_desc, listen_desc): Change type to
16942 gdb_fildes_t.
16943 * server.h: New gdb_fildes_t typedef.
16944 [USE_WIN32API]: Include winsock2.h.
16945 (delete_file_handler, add_file_handler): Adjust prototypes.
16946 (pfildes): Declare.
16947 * utils.c (pfildes): New.
16948
16949 2010-08-27 Pedro Alves <pedro@codesourcery.com>
16950
16951 * configure.ac (build_warnings): Add -Wno-char-subscripts.
16952 * configure: Regenerate.
16953
16954 2010-08-27 Pedro Alves <pedro@codesourcery.com>
16955
16956 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
16957 (linux_done_accessing_memory): ... this.
16958 (linux_target_ops): Adjust.
16959 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
16960 * nto-low.c (nto_target_ops): Adjust comment.
16961 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
16962 * spu-low.c (spu_target_ops): Adjust comment.
16963 * target.h (target_ops): Rename unprepare_to_access_memory field
16964 to done_accessing_memory.
16965 (unprepare_to_access_memory): Rename to ...
16966 (done_accessing_memory): ... this.
16967
16968 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16969
16970 * linux-low.c (linux_prepare_to_access_memory): New.
16971 (linux_unprepare_to_access_memory): New.
16972 (linux_target_ops): Install them.
16973 * server.c (read_memory): Rename to ...
16974 (gdb_read_memory): ... this. Use
16975 prepare_to_access_memory/prepare_to_access_memory.
16976 (write_memory): Rename to ...
16977 (gdb_write_memory): ... this. Use
16978 prepare_to_access_memory/prepare_to_access_memory.
16979 (handle_search_memory_1): Adjust.
16980 (process_serial_event): Adjust.
16981 * target.h (struct target_ops): New fields
16982 prepare_to_access_memory and unprepare_to_access_memory.
16983 (prepare_to_access_memory, unprepare_to_access_memory): New.
16984 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
16985 prepare_to_access_memory/prepare_to_access_memory.
16986 * nto-low.c (nto_target_ops): Adjust.
16987 * spu-low.c (spu_target_ops): Adjust.
16988 * win32-low.c (win32_target_ops): Adjust.
16989
16990 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16991
16992 * Makefile.in (WARN_CFLAGS): Get it from configure.
16993 (WERROR_CFLAGS): New.
16994 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
16995 * configure.ac: Introduce --enable-werror, which adds -Werror to
16996 the compiler command line. Enabled by default. Disable with
16997 --disable-werror. Add -Wdeclaration-after-statement
16998 Wpointer-arith and -Wformat-nonliteral to warning flags.
16999 * configure: Regenerate.
17000
17001 2010-08-26 Pedro Alves <pedro@codesourcery.com>
17002
17003 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
17004
17005 2010-08-26 Pedro Alves <pedro@codesourcery.com>
17006
17007 * gdbreplay.c (remote_error): New.
17008 (gdbchar): New.
17009 (expect): Use gdbchar. Check for error reading from GDB.
17010 Clarify sync error output.
17011 (play): Check for errors writing to GDB.
17012 * linux-low.c (sigchld_handler): Really ignore `write' errors.
17013 * remote-utils.c (getpkt): Check for errors writing to the remote
17014 descriptor.
17015
17016 2010-08-25 Pedro Alves <pedro@codesourcery.com>
17017
17018 * linux-low.c (linux_wait_1): Move non-debugging code out of
17019 `debug_threads' control.
17020
17021 2010-08-25 Pedro Alves <pedro@codesourcery.com>
17022
17023 * linux-low.c (linux_wait_1): Don't set last_status here.
17024 * server.c (push_event, queue_stop_reply_callback): Assert we're
17025 not pushing a TARGET_WAITKIND_IGNORE event.
17026 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
17027 (myresume, handle_target_event): Set the thread's last_resume_kind
17028 and last_status from the target returned status.
17029
17030 2010-08-25 Pedro Alves <pedro@codesourcery.com>
17031
17032 PR threads/10729
17033
17034 * linux-x86-low.c (update_debug_registers_callback): New.
17035 (i386_dr_low_set_addr): Use it.
17036 (i386_dr_low_get_addr): New.
17037 (i386_dr_low_set_control): Use update_debug_registers_callback.
17038 (i386_dr_low_get_control): New.
17039 (i386_dr_low_get_status): Adjust.
17040 * linux-low.c (linux_stop_lwp): New.
17041 * linux-low.h (linux_stop_lwp): Declare.
17042
17043 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
17044 argument instead of a i386_debug_reg_state.
17045 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
17046 a i386_debug_reg_state.
17047 (i386_insert_aligned_watchpoint): Adjust.
17048 (i386_remove_aligned_watchpoint): Adjust.
17049 (i386_low_stopped_data_address): Read the debug registers from the
17050 inferior instead of from the mirrors.
17051 * i386-low.h (struct i386_debug_reg_state): Extend comment.
17052 (i386_dr_low_get_addr): Declare.
17053 (i386_dr_low_get_control): Declare.
17054 (i386_dr_low_get_status): Change prototype.
17055
17056 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
17057 (i386_dr_low_get_addr): New.
17058 (i386_dr_low_get_control): New.
17059 (i386_dr_low_get_status): Adjust prototype. Return
17060 dr_status_mirror.
17061 (i386_initial_stuff): Clear dr_status_mirror and
17062 dr_control_mirror.
17063 (i386_get_thread_context): Adjust.
17064 (i386_set_thread_context): Adjust.
17065 (i386_thread_added): Adjust.
17066
17067 2010-08-24 Pedro Alves <pedro@codesourcery.com>
17068
17069 * linux-low.h (linux_thread_area): Delete declaration.
17070
17071 2010-08-11 Thomas Schwinge <thomas@codesourcery.com>
17072
17073 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
17074 after its termination.
17075
17076 2010-08-09 Pedro Alves <pedro@codesourcery.com>
17077
17078 * linux-low.c (gdb_wants_lwp_stopped): Delete.
17079 (gdb_wants_all_stopped): Delete.
17080 (linux_wait_1): Don't call them.
17081 * server.c (handle_v_cont): Tag all threads as want-stopped.
17082 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
17083 stopped as "client-wants-stopped".
17084
17085 2010-07-31 Pedro Alves <pedro@codesourcery.com>
17086
17087 * Makefile.in (signals_h): New.
17088 (server_h): Depend on it.
17089 (server.o): Don't depend on $(signals_def).
17090 (signals.o): Depend on $(signals_def).
17091
17092 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
17093
17094 * Makefile.in (signals_def): New.
17095 (server_h): Append include/gdb/signals.h and signals_def.
17096 (server.o): Append signals_def.
17097
17098 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
17099
17100 * server.c (handle_target_event): Use target_signal_to_host for
17101 resume_info.sig initialization.
17102 * target.h (struct thread_resume) <sig>: New comment.
17103
17104 2010-07-20 Ozkan Sezer <sezeroz@gmail.com>
17105
17106 * server.c (handle_query): strcpy() the returned string from paddress()
17107 instead of sprintf().
17108 * utils.c (paddress): Return phex_nz().
17109
17110 2010-07-07 Joel Brobecker <brobecker@adacore.com>
17111
17112 * server.c (handle_v_cont): Call mourn_inferior if process
17113 just exited.
17114 (myresume): Likewise.
17115
17116 2010-07-01 Pedro Alves <pedro@codesourcery.com>
17117
17118 Static tracepoints, and integration with UST.
17119
17120 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
17121 * mem-break.c (uninsert_all_breakpoints)
17122 (reinsert_all_breakpoints): New.
17123 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
17124 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
17125 (gdb_agent_ust_loaded, helper_thread_id)
17126 (gdb_agent_helper_thread_id): New macros.
17127 (struct ipa_sym_addresses): Add addr_ust_loaded,
17128 addr_helper_thread_id, addr_cmd_buf.
17129 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
17130 (in_process_agent_loaded_ust): New.
17131 (write_e_ust_not_loaded): New.
17132 (maybe_write_ipa_ust_not_loaded): New.
17133 (struct collect_static_trace_data_action): New.
17134 (enum tracepoint_type) <static_tracepoint>: New.
17135 (struct tracepoint) <handle>: Mention static tracepoints.
17136 (struct static_tracepoint_ctx): New.
17137 (CMD_BUF_SIZE): New.
17138 (add_tracepoint_action): Handle static tracepoint actions.
17139 (unprobe_marker_at): New.
17140 (clear_installed_tracepoints): Handle static tracepoints.
17141 (cmd_qtdp): Handle static tracepoints.
17142 (probe_marker_at): New.
17143 (cmd_qtstart): Handle static tracepoints.
17144 (response_tracepoint): Handle static tracepoints.
17145 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
17146 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
17147 (get_context_regcache): Handle static tracepoints.
17148 (do_action_at_tracepoint): Handle static tracepoint actions.
17149 (traceframe_find_block_type): Handle static trace data blocks.
17150 (traceframe_read_sdata): New.
17151 (download_tracepoints): Download static tracepoint actions.
17152 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
17153 (GDB_PROBE_NAME): New.
17154 (ust_ops): New.
17155 (GET_UST_SYM): New.
17156 (USTF): New.
17157 (dlsym_ust): New.
17158 (ust_marker_to_static_tracepoint): New.
17159 (gdb_probe): New.
17160 (collect_ust_data_at_tracepoint): New.
17161 (gdb_ust_probe): New.
17162 (UNIX_PATH_MAX, SOCK_DIR): New.
17163 (gdb_ust_connect_sync_socket): New.
17164 (resume_thread, stop_thread): New.
17165 (run_inferior_command): New.
17166 (init_named_socket): New.
17167 (gdb_ust_socket_init): New.
17168 (cstr_to_hexstr): New.
17169 (next_st): New.
17170 (first_marker, next_marker): New.
17171 (response_ust_marker): New.
17172 (cmd_qtfstm, cmd_qtsstm): New.
17173 (unprobe_marker_at, probe_marker_at): New.
17174 (cmd_qtstmat, gdb_ust_thread): New.
17175 (gdb_ust_init): New.
17176 (initialize_tracepoint_ftlib): Call gdb_ust_init.
17177 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
17178 (ST_REGENTRY): New.
17179 (x86_64_st_collect_regmap): New.
17180 (X86_64_NUM_ST_COLLECT_GREGS): New.
17181 (AMD64_RIP_REGNUM): New.
17182 (supply_static_tracepoint_registers): New.
17183 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
17184 (ST_REGENTRY): New.
17185 (i386_st_collect_regmap): New.
17186 (i386_NUM_ST_COLLECT_GREGS): New.
17187 (supply_static_tracepoint_registers): New.
17188 * server.c (handle_query): Handle qXfer:statictrace:read.
17189 <qSupported>: Report support for StaticTracepoints, and
17190 qXfer:statictrace:read features.
17191 * server.h (traceframe_read_sdata)
17192 (supply_static_tracepoint_registers): Declare.
17193 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
17194 (unpack_varlen_hex): Include in IPA build.
17195 * Makefile.in (ustlibs, ustinc): New.
17196 (IPA_OBJS): Add remote-utils-ipa.o.
17197 ($(IPA_LIB)): Link -ldl and -lpthread.
17198 (UST_CFLAGS): New.
17199 (IPAGENT_CFLAGS): Add UST_CFLAGS.
17200 * config.in, configure: Regenerate.
17201
17202 2010-06-20 Ian Lance Taylor <iant@google.com>
17203 Pedro Alves <pedro@codesourcery.com>
17204
17205 * linux-x86-low.c (always_true): Delete.
17206 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
17207 trying to fool the compiler with always_true.
17208
17209 2010-06-20 Pedro Alves <pedro@codesourcery.com>
17210
17211 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
17212 conditions in gdbserver.
17213
17214 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
17215
17216 * spu-low.c (spu_read_memory): Wrap around local store limit.
17217 (spu_write_memory): Likewise.
17218
17219 2010-06-15 Pedro Alves <pedro@codesourcery.com>
17220
17221 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
17222 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
17223 LONGEST uses.
17224 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
17225 uses.
17226 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
17227 uses with LONGEST uses.
17228
17229 2010-06-14 Stan Shebs <stan@codesourcery.com>
17230 Pedro Alves <pedro@codesourcery.com>
17231
17232 Bytecode compiler.
17233
17234 * linux-x86-low.c: Include limits.h.
17235 (add_insns): New.
17236 (always_true): New.
17237 (EMIT_ASM): New.
17238 (EMIT_ASM32): New.
17239 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
17240 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
17241 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
17242 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
17243 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
17244 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
17245 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
17246 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
17247 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
17248 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
17249 (amd64_emit_void_call_2): New.
17250 (amd64_emit_ops): New.
17251 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
17252 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
17253 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
17254 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
17255 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
17256 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
17257 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
17258 (i386_emit_call, i386_emit_reg, i386_emit_pop)
17259 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
17260 (i386_emit_stack_adjust, i386_emit_int_call_1)
17261 (i386_emit_void_call_2): New.
17262 (i386_emit_ops): New.
17263 (x86_emit_ops): New.
17264 (the_low_target): Install x86_emit_ops.
17265 * server.h (struct emit_ops): New.
17266 (get_raw_reg_func_addr): Declare.
17267 (current_insn_ptr, emit_error): Declare.
17268 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
17269 (set_trace_state_variable_value): New defines.
17270 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
17271 addr_get_trace_state_variable_value and
17272 addr_set_trace_state_variable_value.
17273 (symbol_list): New fields for get_raw_reg,
17274 get_trace_state_variable_value and set_trace_state_variable_value.
17275 (condfn): New typedef.
17276 (struct tracepoint): New field `compiled_cond'.
17277 (do_action_at_tracepoint): Clear compiled_cond.
17278 (get_trace_state_variable_value, set_trace_state_variable_value):
17279 Export in the IPA.
17280 (condition_true_at_tracepoint): If there's a compiled condition,
17281 run that.
17282 (current_insn_ptr, emit_error): New globals.
17283 (struct bytecode_address): New.
17284 (get_raw_reg_func_addr): New.
17285 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
17286 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
17287 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
17288 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
17289 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
17290 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
17291 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
17292 (compile_tracepoint_condition, compile_bytecodes): New.
17293 * target.h (emit_ops): Forward declare.
17294 (struct target_ops): New field emit_ops.
17295 (target_emit_ops): New.
17296 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
17297 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
17298 * linux-low.c (linux_emit_ops): New.
17299 (linux_target_ops): Install it.
17300 * linux-low.h (struct linux_target_ops): New field emit_ops.
17301
17302 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
17303
17304 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
17305 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
17306
17307 2010-06-01 Pedro Alves <pedro@codesourcery.com>
17308 Stan Shebs <stan@codesourcery.com>
17309
17310 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
17311 (all): Depend on $(extra_libraries).
17312 (install-only): Install the IPA.
17313 (IPA_OBJS, IPA_LIB): New.
17314 (clean): Remove the IPA lib.
17315 (IPAGENT_CFLAGS): New.
17316 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
17317 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
17318 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
17319 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
17320 * configure.ac: Check for atomic builtins support in the compiler.
17321 (IPA_DEPFILES, extra_libraries): Define.
17322 * configure.srv (ipa_obj): Add description.
17323 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
17324 (i[34567]86-*-linux*): Set ipa_obj.
17325 (x86_64-*-linux*): Set ipa_obj.
17326 * linux-low.c (stabilizing_threads): New.
17327 (supports_fast_tracepoints): New.
17328 (linux_detach): Stabilize threads before detaching.
17329 (handle_tracepoints): Handle internal tracing breakpoints. Assert
17330 the lwp is either not stabilizing, or is moving out of a jump pad.
17331 (linux_fast_tracepoint_collecting): New.
17332 (maybe_move_out_of_jump_pad): New.
17333 (enqueue_one_deferred_signal): New.
17334 (dequeue_one_deferred_signal): New.
17335 (linux_wait_for_event_1): If moving out of a jump pad, defer
17336 pending signals to later.
17337 (linux_stabilize_threads): New.
17338 (linux_wait_1): Check if threads need moving out of jump pads, and
17339 do it if so.
17340 (stuck_in_jump_pad_callback): New.
17341 (move_out_of_jump_pad_callback): New.
17342 (lwp_running): New.
17343 (linux_resume_one_lwp): Handle moving out of jump pads.
17344 (linux_set_resume_request): Dequeue deferred signals.
17345 (need_step_over_p): Also step over fast tracepoint jumps.
17346 (start_step_over): Also uninsert fast tracepoint jumps.
17347 (finish_step_over): Also reinsert fast tracepoint jumps.
17348 (linux_install_fast_tracepoint_jump): New.
17349 (linux_target_ops): Install linux_stabilize_threads and
17350 linux_install_fast_tracepoint_jump_pad.
17351 * linux-low.h (linux_target_ops) <get_thread_area,
17352 install_fast_tracepoint_jump_pad>: New fields.
17353 (struct lwp_info) <collecting_fast_tracepoint,
17354 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
17355 (linux_get_thread_area): Declare.
17356 * linux-x86-low.c (jump_insn): New.
17357 (x86_get_thread_area): New.
17358 (append_insns): New.
17359 (push_opcode): New.
17360 (amd64_install_fast_tracepoint_jump_pad): New.
17361 (i386_install_fast_tracepoint_jump_pad): New.
17362 (x86_install_fast_tracepoint_jump_pad): New.
17363 (the_low_target): Install x86_get_thread_area and
17364 x86_install_fast_tracepoint_jump_pad.
17365 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
17366 (struct fast_tracepoint_jump): New.
17367 (fast_tracepoint_jump_insn): New.
17368 (fast_tracepoint_jump_shadow): New.
17369 (find_fast_tracepoint_jump_at): New.
17370 (fast_tracepoint_jump_here): New.
17371 (delete_fast_tracepoint_jump): New.
17372 (set_fast_tracepoint_jump): New.
17373 (uninsert_fast_tracepoint_jumps_at): New.
17374 (reinsert_fast_tracepoint_jumps_at): New.
17375 (set_breakpoint_at): Use write_inferior_memory.
17376 (uninsert_raw_breakpoint): Use write_inferior_memory.
17377 (check_mem_read): Mask out fast tracepoint jumps.
17378 (check_mem_write): Mask out fast tracepoint jumps.
17379 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
17380 (set_fast_tracepoint_jump): Declare.
17381 (delete_fast_tracepoint_jump)
17382 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
17383 (reinsert_fast_tracepoint_jumps_at): Declare.
17384 * regcache.c: Don't compile many functions when building the
17385 in-process agent library.
17386 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
17387 the register buffer in the heap.
17388 (free_register_cache): If the register buffer isn't owned by the
17389 regcache, don't free it.
17390 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
17391 pre-existing register caches.
17392 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
17393 type.
17394 (convert_ascii_to_int): : Constify `from' parameter type.
17395 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
17396 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
17397 the needed buffer in-place.
17398 (relocate_instruction): New.
17399 * server.c (handle_query) <qSymbols>: If the target supports
17400 tracepoints, give it a chance of looking up symbols. Report
17401 support for fast tracepoints.
17402 (handle_status): Stabilize threads.
17403 (process_serial_event): Adjust.
17404 * server.h (struct fast_tracepoint_jump): Forward declare.
17405 (struct process_info) <fast_tracepoint_jumps>: New field.
17406 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
17407 (decode_X_packet, decode_M_packet): Adjust.
17408 (relocate_instruction): Declare.
17409 (in_process_agent_loaded): Declare.
17410 (tracepoint_look_up_symbols): Declare.
17411 (struct fast_tpoint_collect_status): Declare.
17412 (fast_tracepoint_collecting): Declare.
17413 (force_unlock_trace_buffer): Declare.
17414 (handle_tracepoint_bkpts): Declare.
17415 (initialize_low_tracepoint)
17416 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
17417 * target.h (struct target_ops) <stabilize_threads,
17418 install_fast_tracepoint_jump_pad>: New fields.
17419 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
17420 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
17421 [HAVE_STDINT_H]: Include stdint.h.
17422 (trace_debug_1): Rename to ...
17423 (trace_vdebug): ... this.
17424 (trace_debug): Rename to ...
17425 (trace_debug_1): ... this. Add `level' parameter.
17426 (trace_debug): New.
17427 (ATTR_USED, ATTR_NOINLINE): New.
17428 (IP_AGENT_EXPORT): New.
17429 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
17430 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
17431 (about_to_request_buffer_space, trace_buffer_is_full)
17432 (stopping_tracepoint, expr_eval_result, error_tracepoint)
17433 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
17434 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
17435 (traceframe_write_count, traceframes_created)
17436 (trace_state_variables)
17437 New renaming defines.
17438 (struct ipa_sym_addresses): New.
17439 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
17440 (symbol_list): New.
17441 (ipa_sym_addrs): New.
17442 (all_tracepoint_symbols_looked_up): New.
17443 (in_process_agent_loaded): New.
17444 (write_e_ipa_not_loaded): New.
17445 (maybe_write_ipa_not_loaded): New.
17446 (tracepoint_look_up_symbols): New.
17447 (debug_threads) [IN_PROCESS_AGENT]: New.
17448 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
17449 (UNKNOWN_SIDE_EFFECTS): New.
17450 (stop_tracing): New.
17451 (flush_trace_buffer): New.
17452 (stop_tracing_bkpt): New.
17453 (flush_trace_buffer_bkpt): New.
17454 (read_inferior_integer): New.
17455 (read_inferior_uinteger): New.
17456 (read_inferior_data_pointer): New.
17457 (write_inferior_data_pointer): New.
17458 (write_inferior_integer): New.
17459 (write_inferior_uinteger): New.
17460 (struct collect_static_trace_data_action): Delete.
17461 (enum tracepoint_type): New.
17462 (struct tracepoint) <type>: New field `type'.
17463 <actions_str, step_actions, step_actions_str>: Only include in
17464 GDBserver.
17465 <orig_size, obj_addr_on_target, adjusted_insn_addr>
17466 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
17467 (tracepoints): Use IP_AGENT_EXPORT.
17468 (last_tracepoint): Don't include in the IPA.
17469 (stopping_tracepoint): Use IP_AGENT_EXPORT.
17470 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
17471 (alloced_trace_state_variables): New.
17472 (trace_state_variables): Use IP_AGENT_EXPORT.
17473 (traceframe_t): Delete unused variable.
17474 (circular_trace_buffer): Don't include in the IPA.
17475 (trace_buffer_start): Delete.
17476 (struct trace_buffer_control): New.
17477 (trace_buffer_free): Delete.
17478 (struct ipa_trace_buffer_control): New.
17479 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
17480 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
17481 New.
17482 (trace_buffer_ctrl): New.
17483 (TRACE_BUFFER_CTRL_CURR): New.
17484 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
17485 Reimplement as macros.
17486 (trace_buffer_wrap): Delete.
17487 (traceframe_write_count, traceframe_read_count)
17488 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
17489 (struct tracepoint_hit_ctx) <type>: New field.
17490 (struct fast_tracepoint_ctx): New.
17491 (memory_barrier): New.
17492 (cmpxchg): New.
17493 (record_tracepoint_error): Update atomically in the IPA.
17494 (clear_inferior_trace_buffer): New.
17495 (about_to_request_buffer_space): New.
17496 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
17497 updating the same buffer.
17498 (add_tracepoint): Default the tracepoint's type to trap
17499 tracepoint, and orig_size to -1.
17500 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
17501 internal variables.
17502 (create_trace_state_variable): New parameter `gdb'. Handle it.
17503 (clear_installed_tracepoints): Clear fast tracepoint jumps.
17504 (cmd_qtdp): Handle fast tracepoints.
17505 (cmd_qtdv): Adjust.
17506 (max_jump_pad_size): New.
17507 (gdb_jump_pad_head): New.
17508 (get_jump_space_head): New.
17509 (claim_jump_space): New.
17510 (sort_tracepoints): New.
17511 (MAX_JUMP_SIZE): New.
17512 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
17513 IPA.
17514 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
17515 support. Upload fast traceframes, and delete internal IPA
17516 breakpoints.
17517 (stop_tracing_handler): New.
17518 (flush_trace_buffer_handler): New.
17519 (cmd_qtstop): Upload fast tracepoints.
17520 (response_tracepoint): Handle fast tracepoints.
17521 (tracepoint_finished_step): Upload fast traceframes. Set the
17522 tracepoint hit context's tracepoint type.
17523 (handle_tracepoint_bkpts): New.
17524 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
17525 type. Add comment about fast tracepoints.
17526 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
17527 non-existing action_str field.
17528 (get_context_regcache): Handle fast tracepoints.
17529 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
17530 to the regcache.
17531 (fast_tracepoint_from_jump_pad_address): New.
17532 (fast_tracepoint_from_ipa_tpoint_address): New.
17533 (collecting_t): New.
17534 (force_unlock_trace_buffer): New.
17535 (fast_tracepoint_collecting): New.
17536 (collecting): New.
17537 (gdb_collect): New.
17538 (write_inferior_data_ptr): New.
17539 (target_tp_heap): New.
17540 (target_malloc): New.
17541 (download_agent_expr): New.
17542 (UALIGN): New.
17543 (download_tracepoints): New.
17544 (download_trace_state_variables): New.
17545 (upload_fast_traceframes): New.
17546 (IPA_FIRST_TRACEFRAME): New.
17547 (IPA_NEXT_TRACEFRAME_1): New.
17548 (IPA_NEXT_TRACEFRAME): New.
17549 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
17550 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
17551 (gdb_jump_pad_buffer_end): New.
17552 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
17553 (initialize_tracepoint): Adjust.
17554 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
17555 buffer. Initialize the low module.
17556 * utils.c (PREFIX, TOOLNAME): New.
17557 (malloc_failure): Use PREFIX.
17558 (error): In the IPA, an error causes an exit.
17559 (fatal, warning): Use PREFIX.
17560 (internal_error): Use TOOLNAME.
17561 (NUMCELLS): Increase to 10.
17562 * configure, config.in: Regenerate.
17563
17564 2010-06-01 Pedro Alves <pedro@codesourcery.com>
17565
17566 * server.c (handle_query) <qSupported>: Do two passes over the
17567 qSupported string to avoid nesting strtok.
17568
17569 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17570
17571 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
17572 (CDEPS): New.
17573 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
17574 -Wl,--dynamic-list.
17575 * configure: Regenerate.
17576 * proc-service.list: New.
17577
17578 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17579
17580 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
17581 New comment.
17582
17583 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
17584
17585 * gdbreplay.c (remote_open): Check error return from socket() call by
17586 its equality to -1 not by it being negative.
17587 * remote-utils.c (remote_open): Likewise.
17588
17589 2010-05-23 Pedro Alves <pedro@codesourcery.com>
17590
17591 * config.h: Regenerate.
17592
17593 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17594
17595 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
17596 doesn't provide PTRACE_GET_THREAD_AREA.
17597
17598 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17599
17600 * linux-m68k-low.c: Include <asm/ptrace.h>
17601 (ps_get_thread_area): Implement.
17602
17603 2010-05-03 Doug Evans <dje@google.com>
17604
17605 * event-loop.c (struct callback_event): New struct.
17606 (callback_list): New global.
17607 (append_callback_event, delete_callback_event): New functions.
17608 (process_callback): New function.
17609 (start_event_loop): Call it.
17610 * remote-utils.c (NOT_SCHEDULED): Define.
17611 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
17612 moved out of readchar.
17613 (readchar): Rewrite. Call reschedule before returning.
17614 (reset_readchar): New function.
17615 (remote_close): Call it.
17616 (process_remaining, reschedule): New functions.
17617 * server.h (callback_handler_func): New typedef.
17618 (append_callback_event, delete_callback_event): Declare.
17619
17620 2010-05-03 Pedro Alves <pedro@codesourcery.com>
17621
17622 * proc-service.c (ps_pglobal_lookup): Use
17623 thread_db_look_up_one_symbol.
17624 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
17625 parameter. Use it instead of all_symbols_looked_up.
17626 * server.h (struct process_info) <all_symbols_looked_up>: Delete
17627 field.
17628 (all_symbols_looked_up): Don't declare.
17629 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
17630 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
17631 field.
17632 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
17633 Set all_symbols_looked_up here.
17634 (thread_db_look_up_one_symbol): New.
17635 (thread_db_get_tls_address): Adjust.
17636 (thread_db_load_search, try_thread_db_load_1): Always allocate the
17637 thread_db object on the heap, and tentatively set it in the
17638 process structure.
17639 (thread_db_init): Don't set all_symbols_looked_up here.
17640 * linux-low.h (thread_db_look_up_one_symbol): Declare.
17641
17642 2010-05-03 Pedro Alves <pedro@codesourcery.com>
17643
17644 * linux-low.c (linux_kill, linux_detach): Adjust.
17645 (status_pending_p_callback): Remove redundant statement. Check
17646 for !TARGET_WAITIKIND_IGNORE, instead of
17647 TARGET_WAITKIND_STOPPED.
17648 (handle_tracepoints): Make sure LWP is locked. Adjust.
17649 (linux_wait_for_event_1): Adjust.
17650 (linux_cancel_breakpoints): New.
17651 (unsuspend_one_lwp): New.
17652 (unsuspend_all_lwps): New.
17653 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
17654 (send_sigstop_callback): Change return type to int, add new
17655 `except' parameter and handle it.
17656 (suspend_and_send_sigstop_callback): New.
17657 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
17658 pass them down. If SUSPEND, also increment the lwp's suspend
17659 count.
17660 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
17661 (need_step_over_p): Don't consider suspended LWPs.
17662 (start_step_over): Adjust.
17663 (proceed_one_lwp): Change return type to int, add new `except'
17664 parameter and handle it.
17665 (unsuspend_and_proceed_one_lwp): New.
17666 (proceed_all_lwps): Use find_inferior instead of
17667 for_each_inferior.
17668 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
17669 also decrement the suspend count of LWPs. Pass `except' down,
17670 instead of hacking its suspend count.
17671 (linux_pause_all): Add `freeze' parameter. Adjust.
17672 (linux_unpause_all): New.
17673 (linux_target_ops): Install linux_unpause_all.
17674 * server.c (handle_status): Adjust.
17675 * target.h (struct target_ops): New fields `unpause_all' and
17676 `cancel_breakpoints'. Add new parameter to `pause_all'.
17677 (pause_all): Add new `freeze' parameter.
17678 (unpause_all): New.
17679 (cancel_breakpoints): New.
17680 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
17681 cancel breakpoints.
17682 (cmd_qtstart): Pause threads.
17683 (stop_tracing): Pause threads, and cancel breakpoints.
17684 * win32-low.c (win32_target_ops): Adjust.
17685
17686 2010-05-03 Pedro Alves <pedro@codesourcery.com>
17687
17688 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
17689 the inferior right away from here...
17690 (linux_wait_1): ... to here, and adjust to check the thread's
17691 last_resume_kind instead of the lwp's step or stop_expected flags.
17692
17693 2010-05-02 Pedro Alves <pedro@codesourcery.com>
17694
17695 * README: Use consistent `GDB' and `GDBserver' spellings.
17696
17697 2010-05-02 Pedro Alves <pedro@codesourcery.com>
17698
17699 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
17700 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
17701 (linux_detach_one_lwp): Assume the lwp is stopped.
17702 (any_thread_of): Delete.
17703 (linux_detach): Stop all lwps here. Don't blindly delete all
17704 breakpoints.
17705 (delete_lwp_callback): New.
17706 (linux_mourn): Delete all lwps of the process that is gone.
17707 (linux_wait_1): Don't delete the last lwp of the process here.
17708 * mem-break.h (mark_breakpoints_out): Declare.
17709 * mem-break.c (mark_breakpoints_out): New.
17710 (free_all_breakpoints): Use it.
17711 * server.c (handle_target_event): If the process is gone, mark
17712 breakpoints out.
17713 * thread-db.c (struct thread_db) <create_bp>: New field.
17714 (thread_db_enable_reporting): Fix prototype. Store a thread event
17715 breakpoint reference in the thread_db struct.
17716 (thread_db_load_search): Clear the thread_db object.
17717 (try_thread_db_load_1): Ditto.
17718 (switch_to_process): New.
17719 (disable_thread_event_reporting): Use it.
17720 (remove_thread_event_breakpoints): New.
17721 (thread_db_detach, thread_db_mourn): Use it.
17722
17723 2010-05-01 Pedro Alves <pedro@codesourcery.com>
17724
17725 * linux-low.c (linux_enable_event_reporting): New.
17726 (linux_wait_for_event_1, handle_extended_wait): Use it.
17727
17728 2010-04-30 Pedro Alves <pedro@codesourcery.com>
17729
17730 * linux-low.c (linux_kill_one_lwp, linux_kill)
17731 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
17732 (send_sigstop): Take an lwp_info as parameter instead. Queue a
17733 SIGSTOP even if the LWP is stopped.
17734 (send_sigstop_callback): New.
17735 (stop_all_lwps): Use send_sigstop_callback instead.
17736 (linux_resume_one_thread): Adjust.
17737 (proceed_one_lwp): Still proceed an LWP that the client has
17738 requested to stop, if we haven't reported it as stopped yet. Make
17739 sure that LWPs the client want stopped, have a pending SIGSTOP.
17740
17741 2010-04-26 Doug Evans <dje@google.com>
17742
17743 * server.c (handle_general_set): Make static.
17744
17745 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
17746 Print received char after testing for error/eof instead of before.
17747 (input_interrupt): Tweak comment.
17748
17749 2010-04-23 Doug Evans <dje@google.com>
17750
17751 * server.c (start_inferior): Print inferior argv if --debug.
17752
17753 2010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
17754
17755 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
17756 * nto-x86-low.c: Include server.h
17757
17758 2010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
17759
17760 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
17761 be consistent with other sources of this directory.
17762 (init_registers_amd64): Correct name of source file of this function
17763 in the comment.
17764
17765 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17766
17767 * configure.srv (x86_64-*-mingw*): New configuration for Windows
17768 64-bit executables.
17769
17770 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17771
17772 * win32-i386-low.c: Add 64-bit support.
17773 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
17774 (init_registers_amd64): Declare.
17775 (mappings): Add 64-bit version of array.
17776 (init_windows_x86): New function.
17777 (the_low_target): Change init_arch field to init_windows_x86.
17778
17779 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17780
17781 * win32-low.c: Adapt to support also 64-bit architecture.
17782 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
17783 (get_image_name): Use SIZE_T type for local variable `done'.
17784 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
17785 (toolhelp_get_dll_name): Idem.
17786 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
17787 Use uintptr_t typecast to avoid warning.
17788 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
17789 (handle_exception): Use phex_nz to avoid warning.
17790 (win32_wait): Remove unused local variable `process'.
17791
17792 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17793
17794 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
17795 `amd64-avx.o'.
17796
17797 2010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
17798
17799 * configure.ac: Use `ws2_32' library for srv_mingw.
17800 * configure: Regenerate.
17801 * gdbreplay.c: Include winsock2.h instead of winsock.h.
17802 * remote-utils.c: Likewise.
17803
17804 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
17805
17806 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
17807 if __x86_64__ is defined.
17808
17809 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17810
17811 * configure: Regenerate.
17812
17813 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17814
17815 * server.c (handle_query): Handle 'qGetTIBAddr' query.
17816 * target.h (target_ops): New get_tib_address field.
17817 * win32-low.h (win32_thread_info): Add thread_local_base field.
17818 * win32-low.c (child_add_thread): Add tlb argument.
17819 Set thread_local_base field to TLB.
17820 (get_child_debug_event): Adapt to child_add_thread change.
17821 (win32_get_tib_address): New function.
17822 (win32_target_ops): Set get_tib_address field to
17823 win32_get_tib_address.
17824 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
17825
17826 2010-04-12 Pedro Alves <pedro@codesourcery.com>
17827
17828 * linux-low.c (linux_mourn): Also remove the process.
17829 * server.c (handle_target_event): Don't remove the process here.
17830 * nto-low.c (nto_mourn): New.
17831 (nto_target_ops): Install it.
17832 * spu-low.c (spu_mourn): New.
17833 (spu_target_ops): Install it.
17834 * win32-low.c (win32_mourn): New.
17835 (win32_target_ops): Install it.
17836
17837 2010-04-12 Pedro Alves <pedro@codesourcery.com>
17838
17839 * server.h (buffer_xml_printf): Remove redundant `;'.
17840
17841 2010-04-12 Pedro Alves <pedro@codesourcery.com>
17842
17843 * regcache.c (set_register_cache): Invalidate regcaches before
17844 changing the register cache layout.
17845 (regcache_invalidate_one): Allow a NULL regcache.
17846 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
17847 regcaches before changing the register cache layout or the target
17848 regsets.
17849
17850 2010-04-12 H.J. Lu <hongjiu.lu@intel.com>
17851
17852 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
17853 variable warning on Linux/x86-64.
17854
17855 2010-04-11 Pedro Alves <pedro@codesourcery.com>
17856
17857 GDBserver disconnected tracing support.
17858
17859 * linux-low.c (linux_remove_process): Delete.
17860 (add_lwp): Don't set last_resume_kind here.
17861 (linux_kill): Use `mourn'.
17862 (linux_detach): Use `thread_db_detach', and `mourn'.
17863 (linux_mourn): New.
17864 (linux_attach_lwp_1): Adjust comment.
17865 (linux_attach): last_resume_kind moved the thread_info; adjust.
17866 (status_pending_p_callback): Adjust.
17867 (linux_wait_for_event_1): Adjust.
17868 (count_events_callback, select_singlestep_lwp_callback)
17869 (select_event_lwp_callback, cancel_breakpoints_callback)
17870 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
17871 (proceed_one_lwp): Adjust.
17872 (linux_async): Add debug output.
17873 (linux_thread_stopped): New.
17874 (linux_pause_all): New.
17875 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
17876 linux_pause_all.
17877 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
17878 (thread_db_free): Delete declaration.
17879 (thread_db_detach, thread_db_mourn): Declare.
17880 * thread-db.c (thread_db_init): Use thread_db_mourn.
17881 (thread_db_free): Delete, split in two.
17882 (disable_thread_event_reporting): New.
17883 (thread_db_detach): New.
17884 (thread_db_mourn): New.
17885
17886 * server.h (struct thread_info) <last_resume_kind>: New field.
17887 <attached>: Add comment.
17888 <gdb_detached>: New field.
17889 (handler_func): Change return type to int.
17890 (handle_serial_event, handle_target_event): Ditto.
17891 (gdb_connected): Declare.
17892 (tracing): Delete.
17893 (disconnected_tracing): Declare.
17894 (stop_tracing): Declare.
17895
17896 * server.c (handle_query) <qSupported>: Report support for
17897 disconnected tracing.
17898 (queue_stop_reply_callback): Account for running threads.
17899 (gdb_wants_thread_stopped): New.
17900 (gdb_wants_all_threads_stopped): New.
17901 (gdb_reattached_process): New.
17902 (handle_status): Clear the `gdb_detached' flag of all processes.
17903 In all-stop, stop all threads.
17904 (main): Be sure to leave tfind mode. Handle disconnected tracing.
17905 (process_serial_event): If the remote connection breaks, or if an
17906 exit was forced with "monitor exit", force an event loop exit.
17907 Handle disconnected tracing on detach.
17908 (handle_serial_event): Adjust.
17909 (handle_target_event): If GDB isn't connected, forward events back
17910 to the inferior, unless the last process exited, in which case,
17911 exit gdbserver. Adjust interface.
17912
17913 * remote-utils.c (remote_open): Don't block in accept. Instead
17914 register an event loop source on the listen socket file
17915 descriptor. Refactor bits into ...
17916 (listen_desc): ... this new global.
17917 (gdb_connected): ... this new function.
17918 (enable_async_notification): ... this new function.
17919 (handle_accept_event): ... this new function.
17920 (remote_close): Clear remote_desc.
17921
17922 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
17923
17924 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
17925 New fields.
17926 (mourn_inferior): Define.
17927 (target_process_qsupported): Avoid the dangling else problem.
17928 (thread_stopped): Define.
17929 (pause_all): Define.
17930 (target_waitstatus_to_string): Declare.
17931 * target.c (target_waitstatus_to_string): New.
17932
17933 * tracepoint.c (tracing): Make extern.
17934 (disconnected_tracing): New.
17935 (stop_tracing): Make extern. Handle tracing stops due to GDB
17936 disconnecting.
17937 (cmd_qtdisconnected): New.
17938 (cmd_qtstatus): Report disconnected tracing status in trace reply.
17939 (handle_tracepoint_general_set): Handle QTDisconnected.
17940
17941 * event-loop.c (event_handler_func): Change return type to int.
17942 (process_event): Bail out if the event handler wants the event
17943 loop to stop.
17944 (handle_file_event): Ditto.
17945 (start_event_loop): Bail out if the event handler wants the event
17946 loop to stop.
17947
17948 * nto-low.c (nto_target_ops): Adjust.
17949 * spu-low.c (spu_wait): Don't remove the process here.
17950 (spu_target_ops): Adjust.
17951 * win32-low.c (win32_wait): Don't remove the process here.
17952 (win32_target_ops): Adjust.
17953
17954 2010-04-11 Pedro Alves <pedro@codesourcery.com>
17955
17956 * regcache.c (realloc_register_cache): Invalidate inferior's
17957 regcache before recreating it.
17958
17959 2010-04-09 Pedro Alves <pedro@codesourcery.com>
17960
17961 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
17962
17963 2010-04-09 Stan Shebs <stan@codesourcery.com>
17964 Pedro Alves <pedro@codesourcery.com>
17965
17966 * server.h (LONGEST): New.
17967 (struct thread_info) <while_stepping>: New field.
17968 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
17969 Declare.
17970 (initialize_tracepoint, handle_tracepoint_general_set)
17971 (handle_tracepoint_query, tracepoint_finished_step)
17972 (tracepoint_was_hit, release_while_stepping_state_list):
17973 (current_traceframe): Declare.
17974 * server.c (handle_general_set): Handle tracepoint packets.
17975 (read_memory): New.
17976 (write_memory): New.
17977 (handle_search_memory_1): Use read_memory.
17978 (handle_query): Report support for conditional tracepoints, trace
17979 state variables, and tracepoint sources. Handle tracepoint
17980 queries.
17981 (main): Initialize the tracepoints module.
17982 (process_serial_event): Handle traceframe reads/writes.
17983
17984 * linux-low.c (handle_tracepoints): New.
17985 (linux_wait_1): Call it.
17986 (linux_resume_one_lwp): Handle while-stepping.
17987 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
17988 (linux_target_ops): Install them.
17989 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
17990 New field.
17991 * linux-x86-low.c (x86_supports_tracepoints): New.
17992 (the_low_target). Install it.
17993
17994 * mem-break.h (delete_breakpoint): Declare.
17995 * mem-break.c (delete_breakpoint): Make external.
17996
17997 * target.h (struct target_ops): Add `supports_tracepoints',
17998 `read_pc', and `write_pc' fields.
17999 (target_supports_tracepoints): Define.
18000 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
18001 (phex_nz): New.
18002
18003 * regcache.h (struct regcache) <registers_owned>: New field.
18004 (init_register_cache, regcache_cpy): Declare.
18005 (regcache_read_pc, regcache_write_pc): Declare.
18006 (register_cache_size): Declare.
18007 (supply_regblock): Declare.
18008 * regcache.c (init_register_cache): New.
18009 (new_register_cache): Use it.
18010 (regcache_cpy): New.
18011 (register_cache_size): New.
18012 (supply_regblock): New.
18013 (regcache_read_pc, regcache_write_pc): New.
18014
18015 * tracepoint.c: New.
18016
18017 * Makefile.in (OBS): Add tracepoint.o.
18018 (tracepoint.o): New rule.
18019
18020 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
18021
18022 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
18023 (i386-mmx.o): New.
18024 (i386-mmx.c): Likewise.
18025 (i386-mmx-linux.o): Likewise.
18026 (i386-mmx-linux.c): Likewise.
18027
18028 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
18029 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
18030 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
18031 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
18032
18033 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
18034 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
18035 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
18036
18037 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
18038
18039 * Makefile.in (clean): Updated.
18040 (i386-avx.o): New.
18041 (i386-avx.c): Likewise.
18042 (i386-avx-linux.o): Likewise.
18043 (i386-avx-linux.c): Likewise.
18044 (amd64-avx.o): Likewise.
18045 (amd64-avx.c): Likewise.
18046 (amd64-avx-linux.o): Likewise.
18047 (amd64-avx-linux.c): Likewise.
18048
18049 * configure.srv (srv_i386_regobj): Add i386-avx.o.
18050 (srv_i386_linux_regobj): Add i386-avx-linux.o.
18051 (srv_amd64_regobj): Add amd64-avx.o.
18052 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
18053 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
18054 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
18055 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
18056 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
18057 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
18058 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
18059
18060 * i387-fp.c: Include "i386-xstate.h".
18061 (i387_xsave): New.
18062 (i387_cache_to_xsave): Likewise.
18063 (i387_xsave_to_cache): Likewise.
18064 (x86_xcr0): Likewise.
18065
18066 * i387-fp.h (i387_cache_to_xsave): Likewise.
18067 (i387_xsave_to_cache): Likewise.
18068 (x86_xcr0): Likewise.
18069
18070 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
18071 * linux-crisv32-low.c (target_regsets): Likewise.
18072 * linux-m68k-low.c (target_regsets): Likewise.
18073 * linux-mips-low.c (target_regsets): Likewise.
18074 * linux-ppc-low.c (target_regsets): Likewise.
18075 * linux-s390-low.c (target_regsets): Likewise.
18076 * linux-sh-low.c (target_regsets): Likewise.
18077 * linux-sparc-low.c (target_regsets): Likewise.
18078 * linux-xtensa-low.c (target_regsets): Likewise.
18079
18080 * linux-low.c: Include <sys/uio.h>.
18081 (regsets_fetch_inferior_registers): Support nt_type.
18082 (regsets_store_inferior_registers): Likewise.
18083 (linux_process_qsupported): New.
18084 (linux_target_ops): Add linux_process_qsupported.
18085
18086 * linux-low.h (regset_info): Add nt_type.
18087 (linux_target_ops): Add process_qsupported.
18088
18089 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
18090 and <sys/uio.h>.
18091 (init_registers_i386_avx_linux): New.
18092 (init_registers_amd64_avx_linux): Likewise.
18093 (xmltarget_i386_linux_no_xml): Likewise.
18094 (xmltarget_amd64_linux_no_xml): Likewise.
18095 (PTRACE_GETREGSET): Likewise.
18096 (PTRACE_SETREGSET): Likewise.
18097 (x86_fill_xstateregset): Likewise.
18098 (x86_store_xstateregset): Likewise.
18099 (use_xml): Likewise.
18100 (x86_linux_update_xmltarget): Likewise.
18101 (x86_linux_process_qsupported): Likewise.
18102 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
18103 (x86_arch_setup): Don't call init_registers_amd64_linux nor
18104 init_registers_i386_linux here. Call
18105 x86_linux_update_xmltarget.
18106 (the_low_target): Add x86_linux_process_qsupported.
18107
18108 * server.c (handle_query): Call target_process_qsupported.
18109
18110 * target.h (target_ops): Add process_qsupported.
18111 (target_process_qsupported): New.
18112
18113 2010-04-03 Pedro Alves <pedro@codesourcery.com>
18114
18115 * inferiors.c (add_thread): Set last_status kind to
18116 TARGET_WAITKIND_IGNORE.
18117 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
18118 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
18119 (linux_wait_1): Move `thread' local definition to block that uses
18120 it. Don't NULL initialize `event_child'.
18121 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
18122 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
18123 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
18124
18125 2010-04-01 Pedro Alves <pedro@codesourcery.com>
18126
18127 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
18128 an extended waitstatus, or by a watchpoint.
18129 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
18130 thread was stepping or has been stopped by a watchpoint.
18131
18132 2010-04-01 Pedro Alves <pedro@codesourcery.com>
18133
18134 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
18135 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
18136 of another, then delete the previous, and validate all
18137 breakpoints.
18138 (validate_inserted_breakpoint): New.
18139 (delete_disabled_breakpoints): New.
18140 (validate_breakpoints): New.
18141 (check_mem_read): Validate breakpoints before trusting their
18142 shadow. Delete disabled breakpoints.
18143 (check_mem_write): Validate breakpoints before trusting they
18144 should be inserted. Delete disabled breakpoints.
18145 * mem-break.h (validate_breakpoints):
18146 * server.c (handle_query): Validate breakpoints when we see a
18147 qSymbol query.
18148
18149 2010-04-01 Pedro Alves <pedro@codesourcery.com>
18150
18151 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
18152 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
18153 if we could tell there's a GDB breakpoint at stop_pc.
18154 (need_step_over_p): Don't do a step over if we find a GDB
18155 breakpoint at the resume PC.
18156
18157 * mem-break.c (struct raw_breakpoint): New.
18158 (enum bkpt_type): New type `gdb_breakpoint'.
18159 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
18160 fields. New field `raw'.
18161 (find_raw_breakpoint_at): New.
18162 (set_raw_breakpoint_at): Handle refcounting. Create a raw
18163 breakpoint instead.
18164 (set_breakpoint_at): Adjust.
18165 (delete_raw_breakpoint): New.
18166 (release_breakpoint): New.
18167 (delete_breakpoint): Rename to...
18168 (delete_breakpoint_1): ... this. Add proc parameter. Use
18169 release_breakpoint. Return ENOENT.
18170 (delete_breakpoint): Reimplement.
18171 (find_breakpoint_at): Delete.
18172 (find_gdb_breakpoint_at): New.
18173 (delete_breakpoint_at): Delete.
18174 (set_gdb_breakpoint_at): New.
18175 (delete_gdb_breakpoint_at): New.
18176 (gdb_breakpoint_here): New.
18177 (set_reinsert_breakpoint): Use release_breakpoint.
18178 (uninsert_breakpoint): Rename to ...
18179 (uninsert_raw_breakpoint): ... this.
18180 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
18181 (reinsert_raw_breakpoint): Change parameter type to
18182 raw_breakpoint.
18183 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
18184 instead.
18185 (check_breakpoints): Adjust. Use release_breakpoint.
18186 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
18187 (breakpoint_inserted_here): Ditto.
18188 (check_mem_read): Adjust to iterate over raw breakpoints instead.
18189 Don't trust the breakpoint's shadow if it is not inserted.
18190 (check_mem_write): Adjust to iterate over raw breakpoints instead.
18191 (delete_all_breakpoints): Adjust.
18192 (free_all_breakpoints): Mark all breakpoints as uninserted, and
18193 use delete_breakpoint_1.
18194
18195 * mem-break.h (breakpoints_supported): Delete declaration.
18196 (set_gdb_breakpoint_at): Declare.
18197 (gdb_breakpoint_here): Declare.
18198 (delete_breakpoint_at): Delete.
18199 (delete_gdb_breakpoint_at): Declare.
18200
18201 * server.h (struct raw_breakpoint): Forward declare.
18202 (struct process_info): New field `raw_breakpoints'.
18203
18204 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
18205 breakpoints.
18206
18207 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18208
18209 * linux-low.c (status_pending_p_callback): Fix comment.
18210 (linux_wait_for_event_1): Move most of the internal breakpoint
18211 handling from here...
18212 (linux_wait_1): ... to here.
18213 (count_events_callback): New.
18214 (select_singlestep_lwp_callback): New.
18215 (select_event_lwp_callback): New.
18216 (cancel_breakpoints_callback): New.
18217 (select_event_lwp): New.
18218 (linux_wait_1): Simplify internal breakpoint handling. Give equal
18219 priority to all LWPs that have had events that should be reported
18220 to the client. Cancel breakpoints when about to reporting the
18221 event to the client, not while stopping lwps. No longer cancel
18222 finished single-steps here.
18223 (cancel_finished_single_step): Delete.
18224 (cancel_finished_single_steps): Delete.
18225
18226 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18227
18228 * mem-break.c (enum bkpt_type): New.
18229 (struct breakpoint): New field `type'.
18230 (set_breakpoint_at): Change return type to struct breakpoint
18231 pointer. Set type to `other_breakpoint' by default.
18232 (delete_breakpoint): Rewrite, supporting more than one breakpoint
18233 in the breakpoint list.
18234 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
18235 (reinsert_breakpoint): Rename to ...
18236 (reinsert_raw_breakpoint): ... this.
18237 (reinsert_breakpoints_at): Adjust.
18238 * mem-break.h (struct breakpoint): Declare.
18239 (set_breakpoint_at): Change return type to struct breakpoint
18240 pointer.
18241
18242 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18243
18244 * server.c (handle_query): Assign, not compare.
18245
18246 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18247
18248 Teach linux gdbserver to step-over-breakpoints.
18249
18250 * linux-low.c (can_hardware_single_step): New.
18251 (supports_breakpoints): New.
18252 (handle_extended_wait): If stopping threads, read the stop pc of
18253 the new cloned LWP.
18254 (get_pc): New.
18255 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
18256 low target doesn't support retrieving the PC.
18257 (add_lwp): Set last_resume_kind to resume_continue.
18258 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
18259 (linux_attach): Don't clear stop_expected. Set the lwp's
18260 last_resume_kind to resume_stop.
18261 (linux_detach_one_lwp): Don't check for removed breakpoints.
18262 (check_removed_breakpoint): Delete.
18263 (status_pending_p): Rename to ...
18264 (status_pending_p_callback): ... this. Don't check for removed
18265 breakpoints. Don't consider threads that are stopped from GDB's
18266 perspective.
18267 (linux_wait_for_lwp): Always read the stop_pc here.
18268 (cancel_breakpoint): New.
18269 (step_over_bkpt): New global.
18270 (linux_wait_for_event_1): Implement stepping over breakpoints.
18271 (gdb_wants_lwp_stopped): New.
18272 (gdb_wants_all_stopped): New.
18273 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
18274 single-step traps here. Store the thread's last reported target
18275 wait status.
18276 (send_sigstop): Don't clear stop_expected. Always set it,
18277 instead.
18278 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
18279 (cancel_finished_single_step): New.
18280 (cancel_finished_single_steps): New.
18281 (wait_for_sigstop): Don't cancel finished single-step traps here.
18282 (linux_resume_one_lwp): Don't check for removed breakpoints.
18283 Don't set `step' on non-hardware step archs.
18284 (linux_set_resume_request): Ignore resume_stop requests if already
18285 stopping or stopped. Set the lwp's last_resume_kind.
18286 (resume_status_pending_p): Don't check for removed breakpoints.
18287 (need_step_over_p): New.
18288 (start_step_over): New.
18289 (finish_step_over): New.
18290 (linux_resume_one_thread): Always queue a sigstop for resume_stop
18291 requests. Clear the thread's last reported target waitstatus.
18292 Don't use the `suspended' flag. Don't consider pending breakpoints.
18293 (linux_resume): Start a step-over if necessary.
18294 (proceed_one_lwp): New.
18295 (proceed_all_lwps): New.
18296 (unstop_all_lwps): New.
18297 * linux-low.h (struct lwp_info): Rewrite comment for the
18298 `suspended' flag. Add the `stop_pc' field. Delete the
18299 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
18300 Add `'last_resume_kind' and `need_step_over' fields.
18301 * inferiors.c (struct thread_info): Delete, moved elsewhere.
18302 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
18303 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
18304 (set_raw_breakpoint_at): New.
18305 (set_breakpoint_at): Rewrite to use it.
18306 (reinsert_breakpoint_handler): Delete.
18307 (set_reinsert_breakpoint): New.
18308 (reinsert_breakpoint_by_bp): Delete.
18309 (delete_reinsert_breakpoints): New.
18310 (uninsert_breakpoint): Rewrite.
18311 (uninsert_breakpoints_at): New.
18312 (reinsert_breakpoint): Rewrite.
18313 (reinsert_breakpoints_at): New.
18314 (check_breakpoints): Rewrite.
18315 (breakpoint_here): New.
18316 (breakpoint_inserted_here): New.
18317 (check_mem_read): Adjust.
18318 * mem-break.h (breakpoints_supported, breakpoint_here)
18319 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
18320 (reinsert_breakpoint_by_bp): Delete declaration.
18321 (delete_reinsert_breakpoints): Declare.
18322 (reinsert_breakpoint): Delete declaration.
18323 (reinsert_breakpoints_at): Declare.
18324 (uninsert_breakpoint): Delete declaration.
18325 (uninsert_breakpoints_at): Declare.
18326 (check_breakpoints): Adjust prototype.
18327 * server.h: Adjust include order.
18328 (struct thread_info): Declare here. Add a `last_status' field.
18329
18330 2010-03-23 Michael Snyder <msnyder@vmware.com>
18331
18332 * server.c (crc32): New function.
18333 (handle_query): Add handling for 'qCRC:' request.
18334
18335 2010-03-23 Pedro Alves <pedro@codesourcery.com>
18336
18337 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
18338 lwp had been stopped by a watchpoint.
18339
18340 2010-03-16 Pedro Alves <pedro@codesourcery.com>
18341
18342 * server.h (internal_error): Declare.
18343 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
18344 * utils.c (internal_error): New function.
18345
18346 2010-03-15 Andreas Schwab <schwab@redhat.com>
18347
18348 * configure.srv: Fix typo setting srv_regobj.
18349
18350 2010-03-15 Pedro Alves <pedro@codesourcery.com>
18351
18352 * linux-low.c (fetch_register): Avoid passing a non string literal
18353 format to `error'.
18354 (usr_store_inferior_registers): Ditto.
18355
18356 2010-03-14 Pedro Alves <pedro@codesourcery.com>
18357
18358 * linux-low.c (linux_write_memory): Bail out early if peeking
18359 memory failed.
18360
18361 2010-03-14 Pedro Alves <pedro@codesourcery.com>
18362
18363 * linux-low.h (struct lwp_info): New fields
18364 `stopped_by_watchpoint' and `stopped_data_address'.
18365 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
18366 here, and cache them in the lwp object.
18367 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
18368 directly.
18369 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
18370 field.
18371 (linux_stopped_by_watchpoint): Rewrite.
18372 (linux_stopped_data_address): Rewrite.
18373
18374 2010-03-06 Simo Melenius <simo.melenius@iki.fi>
18375
18376 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
18377 switching the current inferior, not before.
18378
18379 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
18380
18381 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
18382 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
18383 i386-linux.c and amd64-linux.c.
18384 (reg-i386.o): Removed.
18385 (reg-i386.c): Likewise.
18386 (reg-i386-linux.o): Likewise.
18387 (reg-i386-linux.c): Likewise.
18388 (reg-x86-64.o): Likewise.
18389 (reg-x86-64.c): Likewise.
18390 (reg-x86-64-linux.o): Likewise.
18391 (reg-x86-64-linux.c): Likewise.
18392 (i386.o): New.
18393 (i386.c): Likewise.
18394 (i386-linux.o): Likewise.
18395 (i386-linux.c): Likewise.
18396 (amd64.o): Likewise.
18397 (amd64.c): Likewise.
18398 (amd64-linux.o): Likewise.
18399 (amd64-linux.c): Likewise.
18400
18401 * configure.srv (srv_i386_regobj): New.
18402 (srv_i386_linux_regobj): Likewise.
18403 (srv_amd64_regobj): Likewise.
18404 (srv_amd64_linux_regobj): Likewise.
18405 (srv_i386_32bit_xmlfiles): Likewise.
18406 (srv_i386_64bit_xmlfiles): Likewise.
18407 (srv_i386_xmlfiles): Likewise.
18408 (srv_amd64_xmlfiles): Likewise.
18409 (srv_i386_linux_xmlfiles): Likewise.
18410 (srv_amd64_linux_xmlfiles): Likewise.
18411 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
18412 srv_xmlfiles to $srv_i386_xmlfiles.
18413 (i[34567]86-*-mingw32ce*): Likewise.
18414 (i[34567]86-*-mingw*): Likewise.
18415 (i[34567]86-*-nto*): Likewise.
18416 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
18417 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
18418 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
18419 (x86_64-*-linux*): Likewise.
18420
18421 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
18422 (init_registers_amd64_linux): New.
18423 (x86_arch_setup): Replace init_registers_x86_64_linux with
18424 init_registers_amd64_linux.
18425
18426 2010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
18427
18428 * configure.ac: Check for libdl. If it is not available link against
18429 static libthread_db.
18430 * configure: Regenerate.
18431
18432 2010-02-22 Pedro Alves <pedro@codesourcery.com>
18433
18434 PR9605
18435
18436 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
18437 handing a read watchpoint.
18438 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
18439
18440 2010-02-12 Doug Evans <dje@google.com>
18441
18442 * linux-low.c (linux_supports_tracefork_flag): Document.
18443 (linux_look_up_symbols): Add comment.
18444
18445 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
18446
18447 * regcache.c (supply_register): Clear regcache if buf is NULL.
18448
18449 2010-02-02 Nicolas Roche <roche@sourceware.org>
18450 Joel Brobecker <brobecker@adacore.com>
18451
18452 * inferiors.c (find_inferior): Add function documentation.
18453 (unloaded_dll): Handle the case where the unloaded dll has not
18454 been previously registered in the dll list.
18455
18456 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
18457
18458 * linux-arm-low.c (thumb_breakpoint_len): Delete.
18459 (thumb2_breakpoint): New.
18460 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
18461
18462 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
18463
18464 * linux-low.c (get_stop_pc): Check for SIGTRAP.
18465 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
18466 breakpoints.
18467
18468 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18469
18470 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
18471
18472 2010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
18473
18474 * linux-s390-low.c (s390_collect_ptrace_register)
18475 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
18476
18477 2010-01-21 Doug Evans <dje@google.com>
18478
18479 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
18480 (PTRACE_ARG4_TYPE): New macro.
18481 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
18482 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
18483 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
18484 (usr_store_inferior_registers): Ditto.
18485 (linux_read_memory, linux_write_memory): Ditto.
18486 (linux_test_for_tracefork): Ditto.
18487
18488 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
18489 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
18490
18491 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18492
18493 * proc-service.c (ps_lgetregs): Don't refetch registers from the
18494 target.
18495
18496 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18497
18498 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
18499 prototype to take a regcache. Adjust.
18500
18501 2010-01-20 Pedro Alves <pedro@codesourcery.com>
18502
18503 * regcache.h (struct thread_info): Forward declare.
18504 (struct regcache): New.
18505 (new_register_cache): Adjust prototype.
18506 (get_thread_regcache): Declare.
18507 (free_register_cache): Adjust prototype.
18508 (registers_to_string, registers_from_string): Ditto.
18509 (supply_register, supply_register_by_name, collect_register)
18510 (collect_register_as_string, collect_register_by_name): Ditto.
18511 * regcache.c (struct inferior_regcache_data): Delete.
18512 (get_regcache): Rename to ...
18513 (get_thread_regcache): ... this. Adjust. Switch inferior before
18514 fetching registers.
18515 (regcache_invalidate_one): Adjust.
18516 (regcache_invalidate): Fix prototype.
18517 (new_register_cache): Return the new register cache.
18518 (free_register_cache): Change prototype.
18519 (realloc_register_cache): Adjust.
18520 (registers_to_string): Change prototype to take a regcache. Adjust.
18521 (registers_from_string): Ditto.
18522 (register_data): Ditto.
18523 (supply_register): Ditto.
18524 (supply_register_by_name): Ditto.
18525 (collect_register): Ditto.
18526 (collect_register_as_string): Ditto.
18527 (collect_register_by_name): Ditto.
18528 * server.c (process_serial_event): Adjust.
18529 * linux-low.h (regset_fill_func, regset_store_func): Change
18530 prototype.
18531 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
18532 Change prototype.
18533 * linux-low.c (get_stop_pc): Adjust.
18534 (check_removed_breakpoint): Adjust.
18535 (linux_wait_for_event): Adjust.
18536 (linux_resume_one_lwp): Adjust.
18537 (fetch_register): Add regcache parameter. Adjust.
18538 (usr_store_inferior_registers): Ditto.
18539 (regsets_fetch_inferior_registers): Ditto.
18540 (regsets_store_inferior_registers): Ditto.
18541 (linux_fetch_registers, linux_store_registers): Ditto.
18542 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
18543 regcache. Adjust.
18544 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
18545 Ditto.
18546 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
18547 prototype to take a regcache.
18548 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
18549 * remote-utils.c (convert_ascii_to_int, outreg)
18550 (prepare_resume_reply): Change prototype to take a regcache.
18551 Adjust.
18552 * target.h (struct target_ops) <fetch_registers, store_registers>:
18553 Change prototype to take a regcache.
18554 (fetch_inferior_registers, store_inferior_registers): Change
18555 prototype to take a regcache. Adjust.
18556 * proc-service.c (ps_lgetregs): Adjust.
18557 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
18558 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
18559 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
18560 take a regcache. Adjust.
18561 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
18562 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
18563 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
18564 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
18565 * linux-cris-low.c (cris_get_pc, cris_set_pc)
18566 (cris_cannot_fetch_register):
18567 (cris_breakpoint_at): Change prototype to take a regcache.
18568 Adjust.
18569 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
18570 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
18571 to take a regcache. Adjust.
18572 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
18573 Adjust.
18574 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
18575 take a regcache. Adjust.
18576 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
18577 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
18578 (m68k_set_pc): Change prototype to take a regcache. Adjust.
18579 * linux-mips-low.c (mips_get_pc):
18580 (mips_set_pc): Change prototype to take a regcache. Adjust.
18581 (mips_reinsert_addr): Adjust.
18582 (mips_collect_register): Change prototype to take a regcache.
18583 Adjust.
18584 (mips_supply_register):
18585 (mips_collect_register_32bit, mips_supply_register_32bit)
18586 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
18587 (mips_store_fpregset): Ditto.
18588 * linux-ppc-low.c (ppc_supply_ptrace_register)
18589 (ppc_supply_ptrace_register): Ditto.
18590 (parse_spufs_run): Adjust.
18591 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
18592 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
18593 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
18594 take a regcache. Adjust.
18595 * linux-s390-low.c (s390_collect_ptrace_register)
18596 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
18597 (s390_set_pc): Change prototype to take a regcache. Adjust.
18598 (s390_arch_setup): Adjust.
18599 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
18600 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
18601 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
18602 (sparc_fill_gregset, sparc_store_gregset_from_stack)
18603 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
18604 regcache. Adjust.
18605 (sparc_breakpoint_at): Adjust.
18606 * linux-xtensa-low.c (xtensa_fill_gregset):
18607 (xtensa_store_gregset):
18608 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
18609 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
18610 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
18611 prototype to take a regcache. Adjust.
18612 * win32-arm-low.c (arm_fetch_inferior_register)
18613 (arm_store_inferior_register): Change prototype to take a
18614 regcache. Adjust.
18615 * win32-i386-low.c (i386_fetch_inferior_register)
18616 (i386_store_inferior_register): Change prototype to take a
18617 regcache. Adjust.
18618 * win32-low.c (child_fetch_inferior_registers)
18619 (child_store_inferior_registers): Change prototype to take a
18620 regcache. Adjust.
18621 (win32_wait): Adjust.
18622 (win32_fetch_inferior_registers): Change prototype to take a
18623 regcache. Adjust.
18624 (win32_store_inferior_registers): Adjust.
18625 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
18626 store_inferior_register>: Change prototype to take a regcache.
18627
18628 2010-01-20 Doug Evans <dje@google.com>
18629
18630 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
18631 #ifdef.
18632 (linux_wait_for_event1, linux_init_signals): Ditto.
18633 (W_STOPCODE): Provide definition if missing.
18634
18635 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
18636
18637 * linux-low.c (linux_core_of_thread): New.
18638 (compare_ints, show_process, list_threads): New.
18639 (linux_qxfer_osdata): Report threads and cores.
18640 (linux_target_op): Register linux_core_of_thread.
18641 * remote-utils.c (prepare_resume_reply): Report the core.
18642 (buffer_xml_printf): Support %d specifier.
18643 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
18644 New.
18645 (handle_query): Handle qXfer:threads. Announce availability
18646 thereof.
18647 * target.h (struct target_ops): New field core_of_thread.
18648
18649 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
18650
18651 * Makefile.in (clean): Remove new generated files.
18652 (reg-s390.o, reg-s390.c): Remove rules.
18653 (reg-s390x.o, reg-s390x.c): Likewise.
18654 (s390-linux32.o, s390-linux32.c): Add rules.
18655 (s390-linux64.o, s390-linux64.c): Likewise.
18656 (s390x-linux64.o, s390x-linux64.c): Likewise.
18657 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
18658 * linux-s390-low.c: Include <elf.h>.
18659 (HWCAP_S390_HIGH_GPRS): Define if undefined.
18660 (init_registers_s390): Remove prototype.
18661 (init_registers_s390x): Likewise.
18662 (init_registers_s390_linux32): Add prototype.
18663 (init_registers_s390_linux64): Likewise.
18664 (init_registers_s390x_linux64): Likewise.
18665 (s390_num_regs_3264): New define.
18666 (s390_regmap_3264): New global variable.
18667 (s390_cannot_fetch_register): Remove obsolete check.
18668 (s390_cannot_store_register): Likewise.
18669 (s390_collect_ptrace_register): Handle upper/lower register halves.
18670 (s390_supply_ptrace_register): Likewise.
18671 (s390_fill_gregset): Update to register number changes.
18672 (s390_get_hwcap): New routine.
18673 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
18674 Install appropriate regmap and register set.
18675
18676 2010-01-01 Joel Brobecker <brobecker@adacore.com>
18677
18678 * server.c (gdbserver_version): Update copyright year to 2010.
18679 * gdbreplay.c (gdbreplay_version): Likewise.
18680
18681 2009-12-28 Doug Evans <dje@google.com>
18682
18683 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
18684 elf/external.h. Include <elf.h> instead but only if necessary.
18685
18686 2009-12-28 Pedro Alves <pedro@codesourcery.com>
18687
18688 * linux-low.c (linux_remove_process): Remove `detaching'
18689 parameter. Don't release/detach from thread_db here.
18690 (linux_kill): Release/detach from thread_db here, ...
18691 (linux_detach): ... and here, before actually detaching.
18692 (linux_wait_1): ... and here, when a process exits.
18693 * thread-db.c (any_thread_of): New.
18694 (thread_db_free): Switch the current inferior to a thread of the
18695 passed in process.
18696
18697 2009-12-21 Doug Evans <dje@google.com>
18698
18699 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
18700
18701 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
18702 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
18703 warning ifndef __NR_tkill. Move setting of errno there too.
18704 Delete unnecessary resetting of errno after syscall.
18705 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
18706
18707 * configure.ac: Check for dladdr.
18708 * config.in: Regenerate.
18709 * configure: Regenerate.
18710 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
18711 (try_thread_db_load): Update.
18712
18713 * linux-low.c (my_waitpid): Delete unnecessary prototype.
18714
18715 2009-12-18 Doug Evans <dje@google.com>
18716
18717 * event-loop.c: Include unistd.h if it exists.
18718
18719 * linux-low.c (my_waitpid): Move definition away from being in
18720 between linux_tracefork_child/linux_test_for_tracefork.
18721
18722 * gdb_proc_service.h (psaddr_t): Fix type.
18723 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
18724 signature to match glibc.
18725
18726 2009-12-16 Doug Evans <dje@google.com>
18727
18728 * linux-low.c (linux_read_memory): Fix argument to read.
18729
18730 2009-11-26 Pedro Alves <pedro@codesourcery.com>
18731
18732 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
18733 events, don't leave current_inferior pointing at null.
18734
18735 2009-11-26 Pedro Alves <pedro@codesourcery.com>
18736
18737 * win32-low.c (LOG): Delete.
18738 (OUTMSG): Output to stderr.
18739 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
18740 on compile time LOG macro.
18741 (win32_wait): Fix debug output.
18742
18743 2009-11-26 Pedro Alves <pedro@codesourcery.com>
18744
18745 * win32-low.c (win32_add_one_solib): If the dll name is
18746 "ntdll.dll", prepend the system directory to the dll path.
18747
18748 2009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
18749
18750 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
18751
18752 2009-11-17 Nathan Sidwell <nathan@codesourcery.com>
18753 Vladimir Prus <vladimir@codesourcery.com>
18754
18755 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
18756 * configure.ac: Check for __mcoldfire__ and set
18757 gdb_cv_m68k_is_coldfire.
18758 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
18759 reg-cf.o and reg-m68k.o.
18760 * configure: Regenerated.
18761
18762 2009-11-16 Pedro Alves <pedro@codesourcery.com>
18763
18764 * linux-low.c (linux_remove_process): Add `detaching' parameter.
18765 Pass it to thread_db_free.
18766 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
18767 proper `detaching' argument to linux_remove_process.
18768 * linux-low.h (thread_db_free): Add `detaching' parameter.
18769 * thread-db.c (thread_db_init): Pass false as `detaching' argument
18770 to thread_db_free.
18771 (thread_db_free): Add `detaching' parameter. Only
18772 call td_ta_clear_event if detaching from process.
18773
18774 2009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
18775
18776 * thread-db.c (thread_db_free): Fix typo.
18777
18778 2009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
18779
18780 PR gdb/10838
18781 * thread-db.c (thread_db_free): Call td_ta_clear_event.
18782
18783 2009-11-03 Nathan Sidwell <nathan@codesourcery.com>
18784
18785 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
18786 with an i686 compiler.
18787 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
18788 needed.
18789 * configure: Rebuilt.
18790
18791 2009-10-29 Sandra Loosemore <sandra@codesourcery.com>
18792
18793 PR gdb/10783
18794
18795 * server.c (handle_search_memory_1): Correct read_addr initialization
18796 in loop for searching subsequent chunks.
18797
18798 2009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
18799
18800 * configure.ac: New --with-libthread-db option.
18801 * thread-db.c: Allow direct dependence on libthread_db.
18802 (thread_db_free): Adjust.
18803 * config.in: Regenerate.
18804 * configure: Likewise.
18805
18806 2009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
18807
18808 PR gdb/10757
18809 * thread-db.c (attach_thread): New function.
18810 (maybe_attach_thread): Return success/failure.
18811 (find_new_threads_callback): Adjust.
18812 (thread_db_find_new_threads): Loop until no new threads.
18813
18814 2009-10-13 Pedro Alves <pedro@codesourcery.com>
18815
18816 * proc-service.c (ps_lgetregs): Formatting.
18817
18818 2009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
18819
18820 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
18821 * configure.ac: Adjust.
18822 * linux-low.h (struct process_info_private): Move members to struct
18823 thread_db.
18824 (thread_db_free, thread_db_handle_monitor_command): New prototype.
18825 * linux-low.c (linux_remove_process): Adjust.
18826 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
18827 * server.c (handle_query): Move code ...
18828 (handle_monitor_command): ... here. New function.
18829 * target.h (struct target_ops): New member.
18830 * thread-db.c (struct thread_db): New.
18831 (libthread_db_search_path): New variable.
18832 (thread_db_create_event, thread_db_enable_reporting)
18833 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
18834 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
18835 (try_thread_db_load_1, dladdr_to_soname): New functions.
18836 (try_thread_db_load, thread_db_load_search): New functions.
18837 (thread_db_init): Search for libthread_db.
18838 (thread_db_free): New function.
18839 (thread_db_handle_monitor_command): Likewise.
18840 * config.in: Regenerate.
18841 * configure: Regenerate.
18842
18843 2009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
18844
18845 * spu-low.c (spu_kill): Wait for inferior to terminate.
18846 Call clear_inferiors.
18847 (spu_detach): Call clear_inferiors.
18848
18849 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18850
18851 * aclocal.m4: Regenerate.
18852 * config.in: Likewise.
18853 * configure: Likewise.
18854
18855 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18856
18857 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
18858 (parse_spufs_run): New function.
18859 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
18860 (ppc_breakpoint_at): Handle SPU breakpoints.
18861
18862 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18863
18864 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
18865 (SPUFS_MAGIC): Define.
18866 (spu_enumerate_spu_ids): New function.
18867 (linux_qxfer_spu): New function.
18868 (linux_target_ops): Install linux_qxfer_spu.
18869
18870 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18871
18872 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
18873 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
18874 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
18875 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
18876 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
18877 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
18878 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
18879 (init_registers_powerpc_cell32l): Add prototype.
18880 (init_registers_powerpc_cell64l): Likewise.
18881 (ppc_arch_setup): Detect Cell/B.E. architecture.
18882
18883 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18884
18885 * Makefile.in (datarootdir): New variable.
18886
18887 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18888
18889 * linux-low.c (linux_write_memory): Update debugging output.
18890 * Makefile.in (clean): Add new descriptions.
18891 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
18892 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
18893 * configure.srv: Add new files for arm*-*-linux*.
18894 * linux-arm-low.c: Add new declarations.
18895 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
18896 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
18897 (HWCAP_VFPv3D16): New.
18898 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
18899 instead of __IWMMXT__.
18900 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
18901 (arm_arch_setup): New.
18902 (target_regsets): Remove #ifdef. Add VFP regset.
18903 (the_low_target): Use arm_arch_setup.
18904
18905 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18906
18907 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
18908 the main thread again.
18909
18910 2009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
18911
18912 Adding Neutrino gdbserver.
18913 * configure: Regenerated.
18914 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
18915 * configure.srv (i[34567]86-*-nto*): New target.
18916 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
18917 * remote-utils.c [__QNX__]: Include sys/iomgr.h
18918 (nto_comctrl) [__QNX__]: New function.
18919 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
18920
18921 2009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
18922
18923 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
18924 srv_tgtobj.
18925
18926 2009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
18927 Pedro Alves <pedro@codesourcery.com>
18928
18929 * win32-i386-low.c (i386_get_thread_context): Handle systems that
18930 don't support CONTEXT_EXTENDED_REGISTERS.
18931 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
18932 (the_low_target): Install them.
18933 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
18934 failing with ERROR_PIPE_NOT_CONNECTED.
18935
18936 2009-06-30 Doug Evans <dje@google.com>
18937 Pierre Muller <muller@ics.u-strasbg.fr>
18938
18939 Add h/w watchpoint support to x86-linux, win32-i386.
18940 * Makefile.in (SFILES): Add i386-low.c
18941 (i386_low_h): Define.
18942 (i386-low.o): Add dependencies.
18943 (linux-x86-low.o): Add i386-low.h dependency.
18944 (win32-i386-low.o): Ditto.
18945 * i386-low.c: New file.
18946 * i386-low.h: New file.
18947 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
18948 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
18949 * linux-low.c (linux_add_process): Initialize arch_private.
18950 (linux_remove_process): Free arch_private.
18951 (add_lwp): Initialize arch_private.
18952 (delete_lwp): Free arch_private.
18953 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
18954 provided.
18955 * linux-low.h (process_info_private): New member arch_private.
18956 (lwp_info): New member arch_private.
18957 (linux_target_ops): New members new_process, new_thread,
18958 prepare_to_resume.
18959 (ptid_of): New macro.
18960 * linux-x86-low.c: Include stddef.h, i386-low.h.
18961 (arch_process_info): New struct.
18962 (arch_lwp_info): New struct.
18963 (x86_linux_dr_get, x86_linux_dr_set): New functions.
18964 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18965 (i386_dr_low_get_status): New function.
18966 (x86_insert_point, x86_remove_point): New functions.
18967 (x86_stopped_by_watchpoint): New function.
18968 (x86_stopped_data_address): New function.
18969 (x86_linux_new_process, x86_linux_new_thread): New functions.
18970 (x86_linux_prepare_to_resume): New function.
18971 (the_low_target): Add entries for insert_point, remove_point,
18972 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
18973 prepare_to_resume.
18974 * server.c (debug_hw_points): New global.
18975 (monitor_show_help): Document set debug-hw-points.
18976 (handle_query): Process "set debug-hw-points".
18977 * server.h (debug_hw_points): Declare.
18978 (paddress): Declare.
18979 * utils.c (NUMCELLS, CELLSIZE): New macros.
18980 (get_sell, xsnprintf, paddress): New functions.
18981 * win32-arm-low.c (the_low_target): Add entries for insert_point,
18982 remove_point, stopped_by_watchpoint, stopped_data_address.
18983 * win32-i386-low.c: Include i386-low.h.
18984 (debug_reg_state): Replaces dr.
18985 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18986 (i386_dr_low_get_status): New function.
18987 (i386_insert_point, i386_remove_point): New functions.
18988 (i386_stopped_by_watchpoint): New function.
18989 (i386_stopped_data_address): New function.
18990 (i386_initial_stuff): Update.
18991 (get_thread_context,set_thread_context,i386_thread_added): Update.
18992 (the_low_target): Add entries for insert_point,
18993 remove_point, stopped_by_watchpoint, stopped_data_address.
18994 * win32-low.c (win32_insert_watchpoint): New function.
18995 (win32_remove_watchpoint): New function.
18996 (win32_stopped_by_watchpoint): New function.
18997 (win32_stopped_data_address): New function.
18998 (win32_target_ops): Add entries for insert_watchpoint,
18999 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
19000 * win32-low.h (win32_target_ops): New members insert_point,
19001 remove_point, stopped_by_watchpoint, stopped_data_address.
19002
19003 2009-06-25 Pedro Alves <pedro@codesourcery.com>
19004
19005 * server.c (process_serial_event): Re-return unsupported, not
19006 error, if the type isn't recognized. Re-allow supporting only
19007 insert or remove packets. Also call require_running for
19008 breakpoints. Add missing break statement to default case. Tidy.
19009 * target.h (struct target_ops): Rename insert_watchpoint to
19010 insert_point, and remove_watchpoint to remove_point.
19011
19012 * linux-low.h (struct linux_target_ops): Likewise.
19013 * linux-low.c (linux_insert_watchpoint): Rename to ...
19014 (linux_insert_point): ... this. Adjust.
19015 (linux_remove_watchpoint): Rename to ...
19016 (linux_remove_point): ... this. Adjust.
19017 (linux_target_ops): Adjust.
19018 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
19019 (cris_insert_point): ... this.
19020 (cris_remove_watchpoint): Rename to ...
19021 (cris_remove_point): ... this.
19022 (the_low_target): Adjust.
19023
19024 2009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
19025
19026 * server.c (handle_v_kill): Pass signal_pid to
19027 kill_inferior if multi_process is zero.
19028
19029 2009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
19030
19031 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
19032 * target.h (target_ops): Comment for *_watchpoint to make it clear
19033 the functions can get types '0' and '1'.
19034
19035 2009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
19036
19037 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
19038 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
19039 * regcache.c (get_regcache): Likewise.
19040 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
19041 * win32-low.c (child_fetch_inferior_registers): Remove check for
19042 regno 0.
19043
19044 2009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
19045 Pedro Alves <pedro@codesourcery.com>
19046
19047 * target.h (struct target_ops) <supports_multi_process>: New
19048 callback.
19049 (target_supports_multi_process): New.
19050 * server.c (handle_query): Even if GDB reports support, only
19051 enable multi-process if the target also supports it. Report
19052 multi-process support only if the target backend supports it.
19053 * linux-low.c (linux_supports_multi_process): New function.
19054 (linux_target_ops): Install it as target_supports_multi_process
19055 callback.
19056
19057 2009-05-24 Doug Evans <dje@google.com>
19058
19059 Global renaming of find_thread_pid to find_thread_ptid.
19060 * server.h (find_thread_ptid): Renamed from find_thread_pid.
19061 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
19062 All callers updated.
19063
19064 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
19065 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
19066 directly.
19067
19068 * linux-low.c (get_stop_pc): Print pc if debug_threads.
19069 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
19070 (linux_resume_one_lwp): Ditto.
19071
19072 2009-05-23 Doug Evans <dje@google.com>
19073
19074 * linux-low.c (linux_resume_one_lwp): Change type of first arg
19075 from struct inferior_list_entry * to struct lwp_info *.
19076 All callers updated.
19077
19078 2009-05-13 Doug Evans <dje@google.com>
19079
19080 * linux-x86-low.c: Don't include assert.h.
19081 (x86_siginfo_fixup): Use fatal, not assert.
19082 (x86_arch_setup): Fix comment.
19083
19084 2009-05-12 Doug Evans <dje@google.com>
19085
19086 Biarch support for i386/amd64 gdbserver.
19087 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
19088 Add linux-x86-low.c.
19089 (linux-i386-low.o, linux-x86-64-low.o): Delete.
19090 (linux-x86-low.o): Add.
19091 * linux-x86-64-low.c: Delete.
19092 * linux-i386-low.c: Delete.
19093 * linux-x86-low.c: New file.
19094 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
19095 linux-x86-low.o.
19096 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
19097 linux-x86-low.o.
19098 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
19099 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
19100 (linux_child_pid_to_exec_file): New function.
19101 (elf_64_header_p, elf_64_file_p): New functions.
19102 (siginfo_fixup): New function.
19103 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
19104 give target a chance to convert layout.
19105 * linux-low.h (linux_target_ops): New member siginfo_fixup.
19106 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
19107
19108 2009-05-07 Doug Evans <dje@google.com>
19109
19110 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
19111 (regsets_store_inferior_registers): Ditto.
19112
19113 2009-05-06 Pedro Alves <pedro@codesourcery.com>
19114
19115 PR server/10048
19116
19117 * linux-low.c (must_set_ptrace_flags): Delete.
19118 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
19119 of the global.
19120 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
19121 `lwp->must_set_ptrace_flags' instead.
19122 (linux_wait_for_event_1): Set ptrace options here.
19123 (linux_wait_1): ... not here.
19124
19125 2009-04-30 Doug Evans <dje@google.com>
19126
19127 * inferiors.c (started_inferior_callback): New function.
19128 (attached_inferior_callback): New function.
19129 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
19130 * server.c (print_started_pid, print_attached_pid): New functions.
19131 (detach_or_kill_for_exit): New function.
19132 (main): Call it instead of for_each_inferior (kill_inferior_callback).
19133 * server.h (have_started_inferiors_p): Declare.
19134 (have_attached_inferiors_p): Declare.
19135
19136 * inferiors.c (remove_process): Fix memory leak, free process.
19137 * linux-low.c (linux_remove_process): New function.
19138 (linux_kill): Call it instead of remove_process.
19139 (linux_detach, linux_wait_1): Ditto.
19140
19141 2009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
19142
19143 * configure.srv: Add x86 Windows CE target.
19144
19145 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19146
19147 * inferiors.c (get_thread_process): Make global.
19148 * server.h (get_thread_process): Add prototype.
19149 * thread-db.c (find_one_thread): Use get_thread_process
19150 instead of current_process.
19151 (thread_db_get_tls_address): Do not crash if called when
19152 thread layer is not yet initialized.
19153
19154 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19155
19156 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
19157 * spu-low.c (current_tid): Rename to ...
19158 (current_ptid): ... this.
19159 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
19160 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
19161 ptid_get_lwp (current_ptid) instead of current_tid.
19162 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
19163 instead of current_tid. Use find_process_pid to verify pid
19164 argument is valid. Pass proper argument to remove_process.
19165 (spu_thread_alive): Compare current_ptid instead of current_tid.
19166 (spu_resume): Likewise.
19167
19168 2009-04-02 Pedro Alves <pedro@codesourcery.com>
19169
19170 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
19171 variable.
19172
19173 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19174
19175 Implement the multiprocess extensions, and add linux multiprocess
19176 support.
19177
19178 * server.h (ULONGEST): Declare.
19179 (struct ptid, ptid_t): New.
19180 (minus_one_ptid, null_ptid): Declare.
19181 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19182 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
19183 (struct inferior_list_entry): Change `id' type from unsigned from
19184 to ptid_t.
19185 (struct sym_cache, struct breakpoint, struct
19186 process_info_private): Forward declare.
19187 (struct process_info): Declare.
19188 (current_process): Declare.
19189 (all_processes): Declare.
19190 (initialize_inferiors): Declare.
19191 (add_thread): Adjust to use ptid_t.
19192 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
19193 (add_process, remove_process, find_thread_pid): Declare.
19194 (find_inferior_id): Adjust to use ptid_t.
19195 (cont_thread, general_thread, step_thread): Change type to ptid_t.
19196 (multi_process): Declare.
19197 (push_event): Adjust to use ptid_t.
19198 (read_ptid, write_ptid): Declare.
19199 (prepare_resume_reply): Adjust to use ptid_t.
19200 (clear_symbol_cache): Declare.
19201 * inferiors.c (all_processes): New.
19202 (null_ptid, minus_one_ptid): New.
19203 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19204 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
19205 (add_thread): Change unsigned long to ptid. Remove gdb_id
19206 parameter. Adjust.
19207 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
19208 (gdb_id_to_thread): Rename to ...
19209 (find_thread_pid): ... this. Change unsigned long to ptid.
19210 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
19211 (loaded_dll, pull_pid_from_list): Adjust.
19212 (add_process, remove_process, find_process_pid)
19213 (get_thread_process, current_process, initialize_inferiors): New.
19214 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
19215 (struct target_waitstatus) <related_pid>: Ditto.
19216 (struct target_ops) <kill, detach>: Add `pid' argument. Change
19217 return type to int.
19218 (struct target_ops) <join>: Add `pid' argument.
19219 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
19220 (struct target_ops) <wait>: Add `ptid' field. Change return type
19221 to ptid.
19222 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
19223 (mywait): Add `ptid' argument. Change return type to ptid_t.
19224 (target_pid_to_str): Declare.
19225 * target.c (set_desired_inferior): Adjust to use ptids.
19226 (mywait): Add new `ptid' argument. Adjust.
19227 (target_pid_to_str): New.
19228 * mem-break.h (free_all_breakpoints): Declare.
19229 * mem-break.c (breakpoints): Delelete.
19230 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
19231 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
19232 to use per-process breakpoint list.
19233 (free_all_breakpoints): New.
19234 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
19235 (symbol_cache, all_symbols_looked_up): Delete.
19236 (hexchars): New.
19237 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
19238 read_ptid): New.
19239 (prepare_resume_reply): Change ptid argument's type from unsigned
19240 long to ptid_t. Adjust. Implement W;process and X;process.
19241 (free_sym_cache, clear_symbol_cache): New.
19242 (look_up_one_symbol): Adjust to per-process symbol cache. *
19243 * server.c (cont_thread, general_thread, step_thread): Change type
19244 to ptid_t.
19245 (attached): Delete.
19246 (multi_process): New.
19247 (last_ptid): Change type to ptid_t.
19248 (struct vstop_notif) <ptid>: Change type to ptid_t.
19249 (queue_stop_reply, push_event): Change `ptid' argument's type to
19250 ptid_t.
19251 (discard_queued_stop_replies): Add `pid' argument.
19252 (start_inferior): Adjust to use ptids. Adjust to mywait interface
19253 changes. Don't reference the `attached' global.
19254 (attach_inferior): Adjust to mywait interface changes.
19255 (handle_query): Adjust to use ptids. Parse GDB's qSupported
19256 features. Handle and report "multiprocess+". Handle
19257 "qAttached:PID".
19258 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
19259 changes.
19260 (handle_v_kill): New.
19261 (handle_v_stopped): Adjust to use target_pid_to_str.
19262 (handle_v_requests): Allow multiple attaches and runs when
19263 multiprocess extensions are in effect. Handle "vKill".
19264 (myresume): Adjust to use ptids.
19265 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
19266 (handle_status): Adjust to discard_queued_stop_replies interface
19267 change.
19268 (first_thread_of, kill_inferior_callback)
19269 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
19270 (main): Call initialize_inferiors. Adjust to use ptids, killing
19271 and detaching from all inferiors. Handle multiprocess packet
19272 variants.
19273 * linux-low.h: Include gdb_proc_service.h.
19274 (struct process_info_private): New.
19275 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
19276 <lwpid_of>: Use ptid_get_lwp.
19277 (get_lwp_thread): Adjust.
19278 (struct lwp_info): Add `dead' member.
19279 (find_lwp_pid): Declare.
19280 * linux-low.c (thread_db_active): Delete.
19281 (new_inferior): Adjust comment.
19282 (inferior_pid): Delete.
19283 (linux_add_process): New.
19284 (handle_extended_wait): Adjust.
19285 (add_lwp): Change unsigned long to ptid.
19286 (linux_create_inferior): Add process to processes table. Adjust
19287 to use ptids. Don't set new_inferior here.
19288 (linux_attach_lwp): Rename to ...
19289 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
19290 it. Adjust to use ptids.
19291 (linux_attach_lwp): New.
19292 (linux_attach): Add process to processes table. Don't set
19293 new_inferior here.
19294 (struct counter): New.
19295 (second_thread_of_pid_p, last_thread_of_process_p): New.
19296 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
19297 multiple processes.
19298 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
19299 processes. Remove process from process table.
19300 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
19301 to multiple processes.
19302 (any_thread_of): New.
19303 (linux_detach): Add `pid' argument, and handle it. Remove process
19304 from processes table.
19305 (linux_join): Add `pid' argument. Handle it.
19306 (linux_thread_alive): Change unsighed long argument to ptid_t.
19307 Consider dead lwps as not being alive.
19308 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
19309 threads we're not interested in.
19310 (same_lwp, find_lwp_pid): New.
19311 (linux_wait_for_lwp): Change `pid' argument's type from int to
19312 ptid_t. Adjust.
19313 (linux_wait_for_event): Rename to ...
19314 (linux_wait_for_event_1): ... this. Change `pid' argument's type
19315 from int to ptid_t. Adjust.
19316 (linux_wait_for_event): New.
19317 (linux_wait_1): Add `ptid' argument. Change return type to
19318 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
19319 that exit from the process table.
19320 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
19321 Adjust.
19322 (mark_lwp_dead): New.
19323 (wait_for_sigstop): Adjust to use ptids. If a process exits while
19324 stopping all threads, mark its main lwp as dead.
19325 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
19326 ptids.
19327 (fetch_register, usr_store_inferior_registers)
19328 (regsets_fetch_inferior_registers)
19329 (regsets_store_inferior_registers, linux_read_memory)
19330 (linux_write_memory): Inline `inferior_pid'.
19331 (linux_look_up_symbols): Adjust to use per-process
19332 `thread_db_active'.
19333 (linux_request_interrupt): Adjust to use ptids.
19334 (linux_read_auxv): Inline `inferior_pid'.
19335 (initialize_low): Don't reference thread_db_active.
19336 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
19337 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
19338 (ps_getpid): Return the pid of the current inferior.
19339 * thread-db.c (proc_handle, thread_agent): Delete.
19340 (thread_db_create_event, thread_db_enable_reporting): Adjust to
19341 per-process data.
19342 (find_one_thread): Change argument type to ptid_t. Adjust to
19343 per-process data.
19344 (maybe_attach_thread): Adjust to per-process data and ptids.
19345 (thread_db_find_new_threads): Ditto.
19346 (thread_db_init): Ditto.
19347 * spu-low.c (spu_create_inferior, spu_attach): Add process to
19348 processes table. Adjust to use ptids.
19349 (spu_kill, spu_detach): Adjust interface. Remove process from
19350 processes table.
19351 (spu_join, spu_thread_alive): Adjust interface.
19352 (spu_wait): Adjust interface. Remove process from processes
19353 table. Adjust to use ptids.
19354 * win32-low.c (current_inferior_tid): Delete.
19355 (current_inferior_ptid): New.
19356 (debug_event_ptid): New.
19357 (thread_rec): Take a ptid. Adjust.
19358 (child_add_thread): Add `pid' argument. Adjust to use ptids.
19359 (child_delete_thread): Ditto.
19360 (do_initial_child_stuff): Add `attached' argument. Add process to
19361 processes table.
19362 (child_fetch_inferior_registers, child_store_inferior_registers):
19363 Adjust.
19364 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
19365 (win32_attach): Pass 1 to do_initial_child_stuff.
19366 (win32_kill): Adjust interface. Remove process from processes
19367 table.
19368 (win32_detach): Ditto.
19369 (win32_join): Adjust interface.
19370 (win32_thread_alive): Take a ptid.
19371 (win32_resume): Adjust to use ptids.
19372 (get_child_debug_event): Ditto.
19373 (win32_wait): Adjust interface. Remove exiting process from
19374 processes table.
19375
19376 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19377
19378 Non-stop mode support.
19379
19380 * server.h (non_stop): Declare.
19381 (gdb_client_data, handler_func): Declare.
19382 (delete_file_handler, add_file_handler, start_event_loop):
19383 Declare.
19384 (handle_serial_event, handle_target_event, push_event)
19385 (putpkt_notif): Declare.
19386 * target.h (enum resume_kind): New.
19387 (struct thread_resume): Replace `step' field by `kind' field.
19388 (TARGET_WNOHANG): Define.
19389 (struct target_ops) <wait>: Add `options' argument.
19390 <supports_non_stop, async, start_non_stop>: New fields.
19391 (target_supports_non_stop, target_async): New.
19392 (start_non_stop): Declare.
19393 (mywait): Add `options' argument.
19394 * target.c (mywait): Add `options' argument. Print child exit
19395 notifications here.
19396 (start_non_stop): New.
19397 * server.c (non_stop, own_buf, mem_buf): New globals.
19398 (struct vstop_notif): New.
19399 (notif_queue): New global.
19400 (queue_stop_reply, push_event, discard_queued_stop_replies)
19401 (send_next_stop_reply): New.
19402 (start_inferior): Adjust to use resume_kind. Adjust to mywait
19403 interface changes.
19404 (attach_inferior): In non-stop mode, don't wait for the target
19405 here.
19406 (handle_general_set): Handle QNonStop.
19407 (handle_query): When handling qC, return the current general
19408 thread, instead of the first thread of the list.
19409 (handle_query): If the backend supports non-stop mode, include
19410 QNonStop+ in the qSupported query response.
19411 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
19412 and non-stop mode.
19413 (handle_v_attach, handle_v_run): Handle non-stop mode.
19414 (handle_v_stopped): New.
19415 (handle_v_requests): Report support for vCont;t. Handle vStopped.
19416 (myresume): Adjust to use resume_kind. Handle non-stop.
19417 (queue_stop_reply_callback): New.
19418 (handle_status): Handle non-stop mode.
19419 (main): Clear non_stop flag on reconnection. Use the event-loop.
19420 Refactor serial protocol handling from here ...
19421 (process_serial_event): ... to this new function. When GDB
19422 selects any thread, select one here. In non-stop mode, wait until
19423 GDB acks all pending events before exiting.
19424 (handle_serial_event, handle_target_event): New.
19425 * remote-utils.c (remote_open): Install remote_desc in the event
19426 loop.
19427 (remote_close): Remove remote_desc from the event loop.
19428 (putpkt_binary): Rename to...
19429 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
19430 (putpkt_binary): New as wrapper around putpkt_binary_1.
19431 (putpkt_notif): New.
19432 (prepare_resume_reply): In non-stop mode, don't change the
19433 general_thread.
19434 * event-loop.c: New.
19435 * Makefile.in (OBJ): Add event-loop.o.
19436 (event-loop.o): New rule.
19437
19438 * linux-low.h (pid_of): Moved here.
19439 (lwpid_of): New.
19440 (get_lwp_thread): Use lwpid_of.
19441 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
19442 * linux-low.c (pid_of): Delete.
19443 (inferior_pid): Use lwpid_of.
19444 (linux_event_pipe): New.
19445 (target_is_async_p): New.
19446 (delete_lwp): New.
19447 (handle_extended_wait): Use lwpid_of.
19448 (add_lwp): Don't set lwpid field.
19449 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
19450 (linux_kill_one_lwp): If killing a running lwp, stop it first.
19451 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
19452 (linux_detach_one_lwp): If detaching from a running lwp, stop it
19453 first. Adjust to linux_wait_for_event interface changes. Use
19454 lwpid_of.
19455 (linux_detach): Don't delete the main lwp here.
19456 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
19457 (status_pending_p): Don't consider explicitly suspended lwps.
19458 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
19459 pointer. Add OPTIONS argument. Change return type to int. Use
19460 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
19461 (linux_wait_for_event): Take an integer pid instead of a lwp_info
19462 pointer. Add status pointer argument. Return a pid instead of a
19463 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
19464 changes. In non-stop mode, don't switch to a random thread.
19465 (linux_wait): Rename to...
19466 (linux_wait_1): ... this. Add target_options argument, and handle
19467 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
19468 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
19469 clean exit and signal exit code. Don't stop all threads in
19470 non-stop mode. In all-stop mode, only stop all threads when
19471 reporting a stop to GDB. Handle explicit thread stop requests.
19472 (async_file_flush, async_file_mark): New.
19473 (linux_wait): New.
19474 (send_sigstop): Use lwpid_of.
19475 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
19476 interface changes. In non-stop mode, don't switch to a random
19477 thread.
19478 (linux_resume_one_lwp): Use lwpid_of.
19479 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
19480 (linux_resume_one_thread): ... this. Handle resume_stop. In
19481 non-stop mode, don't look for pending flag in all threads.
19482 (resume_status_pending_p): Don't consider explicitly suspended
19483 threads.
19484 (my_waitpid): Reimplement. Emulate __WALL.
19485 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19486 Use lwpid_of.
19487 (sigchld_handler, linux_supports_non_stop, linux_async)
19488 (linux_start_non_stop): New.
19489 (linux_target_ops): Register linux_supports_non_stop, linux_async
19490 and linux_start_non_stop.
19491 (initialize_low): Install SIGCHLD handler.
19492 * thread-db.c (thread_db_create_event, find_one_thread)
19493 (thread_db_get_tls_address): Use lwpid_of.
19494 * win32-low.c (win32_detach): Adjust to use resume_kind.
19495 (win32_wait): Add `options' argument.
19496 * spu-low.c (spu_resume): Adjust to use resume_kind.
19497 (spu_wait): Add `options' argument.
19498
19499 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19500
19501 Decouple target code from remote protocol.
19502
19503 * target.h (enum target_waitkind): New.
19504 (struct target_waitstatus): New.
19505 (struct target_ops) <wait>: Return an unsigned long. Take a
19506 target_waitstatus pointer instead of a char pointer.
19507 (mywait): Likewise.
19508 * target.c (mywait): Change prototype to return an unsigned long.
19509 Take a target_waitstatus pointer instead of a char pointer. Adjust.
19510 * server.h (thread_from_wait, old_thread_from_wait): Delete
19511 declarations.
19512 (prepare_resume_reply): Change prototype to take a
19513 target_waitstatus.
19514 * server.c (thread_from_wait, old_thread_from_wait): Delete.
19515 (last_status, last_ptid): New.
19516 (start_inferior): Remove "statusptr" argument. Adjust. Return a
19517 pid instead of a signal.
19518 (attach_inferior): Remove "status" and "signal" parameters.
19519 Adjust.
19520 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
19521 not as an address.
19522 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
19523 (handle_v_requests, myresume): Remove "status" and "signal"
19524 parameters. Adjust.
19525 (handle_status): New.
19526 (main): Delete local `status'. Adjust.
19527 * remote-utils.c: Include target.h.
19528 (prepare_resume_reply): Change prototype to take a
19529 target_waitstatus. Adjust.
19530
19531 * linux-low.c (linux_wait): Adjust to new target_ops->wait
19532 interface.
19533 * spu-low.c (spu_wait): Adjust.
19534 * win32-low.c (enum target_waitkind, struct target_waitstatus):
19535 Delete.
19536 (win32_wait): Adjust.
19537
19538 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19539
19540 * target.h (struct thread_resume): Delete leave_stopped member.
19541 (struct target_ops): Add a `n' argument to the `resume' callback.
19542 * server.c (start_inferior): Adjust.
19543 (handle_v_cont, myresume): Adjust.
19544 * linux-low.c (check_removed_breakpoint): Adjust to resume
19545 interface change, and to removed leave_stopped field.
19546 (resume_ptr): Delete.
19547 (struct thread_resume_array): New.
19548 (linux_set_resume_request): Add new `arg' parameter. Adjust to
19549 resume interface change.
19550 (linux_continue_one_thread, linux_queue_one_thread)
19551 (resume_status_pending_p): Check if the resume field is NULL
19552 instead of checking the leave_stopped member.
19553 (linux_resume): Adjust to the target resume interface change.
19554 * spu-low.c (spu_resume): Adjust to the target resume interface
19555 change.
19556 * win32-low.c (win32_detach, win32_resume): Ditto.
19557
19558 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19559
19560 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
19561 flag.
19562 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
19563 pending.
19564 (linux_continue_one_thread): Only preserve the stepping flag if
19565 there's a pending breakpoint.
19566
19567 2009-03-31 Pedro Alves <pedro@codesourcery.com>
19568
19569 * server.c (main): After the inferior having exited, call
19570 remote_close before exiting gdbserver.
19571
19572 2009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
19573
19574 Fix size of FPSCR in Power 7 processors.
19575 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
19576 (PPC_FEATURE_HAS_DFP): New #define.
19577 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
19578 size of the FPSCR.
19579
19580 2009-03-23 Pedro Alves <pedro@codesourcery.com>
19581
19582 * server.c (handle_query) Whitespace and formatting.
19583
19584 2009-03-22 Pedro Alves <pedro@codesourcery.com>
19585
19586 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
19587 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
19588 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
19589 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
19590 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
19591 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
19592 Makefile.in, configure.ac: Fix whitespace throughout.
19593 * configure: Regenerate.
19594
19595 2009-03-22 Pedro Alves <pedro@codesourcery.com>
19596
19597 * inferiors.c (find_inferior): Make it safe for the callback
19598 function to delete the currently iterated inferior.
19599
19600 2009-03-22 Pedro Alves <pedro@codesourcery.com>
19601
19602 * Makefile.in (linuw_low_h): Move higher.
19603 (thread-db.o): Depend on $(linux_low_h).
19604
19605 2009-03-17 Pedro Alves <pedro@codesourcery.com>
19606
19607 Rename "process" to "lwp" throughout.
19608
19609 * linux-low.c (all_processes): Rename to...
19610 (all_lwps): ... this.
19611 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
19612 (add_process): Rename to ...
19613 (add_lwp): ... this. Adjust.
19614 (linux_create_inferior): Adjust.
19615 (linux_attach_lwp): Adjust.
19616 (linux_attach): Adjust.
19617 (linux_kill_one_process): Rename to ...
19618 (linux_kill_one_lwp): ... this. Adjust.
19619 (linux_kill): Adjust.
19620 (linux_detach_one_process): Rename to ...
19621 (linux_detach_one_lwp): ... this. Adjust.
19622 (linux_detach): Adjust.
19623 (check_removed_breakpoint): Adjust.
19624 (status_pending_p): Adjust.
19625 (linux_wait_for_process): Rename to ...
19626 (linux_wait_for_lwp): ... this. Adjust.
19627 (linux_wait_for_event): Adjust.
19628 (send_sigstop): Adjust.
19629 (wait_for_sigstop): Adjust.
19630 (stop_all_processes): Rename to ...
19631 (stop_all_lwps): ... this.
19632 (linux_resume_one_process): Rename to ...
19633 (linux_resume_one_lwp): ... this. Adjust.
19634 (linux_set_resume_request, linux_continue_one_thread)
19635 (linux_queue_one_thread, resume_status_pending_p)
19636 (usr_store_inferior_registers, regsets_store_inferior_registers)
19637 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19638 Adjust.
19639 * linux-low.h (get_process): Rename to ...
19640 (get_lwp): ... this. Adjust.
19641 (get_thread_process): Rename to ...
19642 (get_thread_lwp): ... this. Adjust.
19643 (get_process_thread): Rename to ...
19644 (get_lwp_thread): ... this. Adjust.
19645 (struct process_info): Rename to ...
19646 (struct lwp_info): ... this.
19647 (all_processes): Rename to ...
19648 (all_lwps): ... this.
19649 * proc-service.c (ps_lgetregs): Adjust.
19650 * thread-db.c (thread_db_create_event, find_one_thread)
19651 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
19652
19653 2009-03-14 Pedro Alves <pedro@codesourcery.com>
19654
19655 * server.c (handle_query): Handle "qAttached".
19656
19657 2009-03-13 Nathan Sidwell <nathan@codesourcery.com>
19658
19659 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
19660 GPLv3, update license URL.
19661
19662 2009-03-01 Doug Evans <dje@google.com>
19663
19664 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
19665 (server_h): Add gdb_signals.h.
19666 (signals.o): Update.
19667 * server.h (target_signal_from_host,target_signal_to_host_p)
19668 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
19669
19670 2009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
19671
19672 * remote-utils.c (getpkt): Also generate remote-debug
19673 information if noack_mode is set.
19674
19675 2009-02-06 Pedro Alves <pedro@codesourcery.com>
19676
19677 * server.c (handle_query): Report qXfer:siginfo:read and
19678 qXfer:siginfo:write as supported and handle them.
19679 * target.h (struct target_ops) <qxfer_siginfo>: New field.
19680 * linux-low.c (linux_xfer_siginfo): New.
19681 (linux_target_ops): Set it.
19682
19683 2009-01-26 Pedro Alves <pedro@codesourcery.com>
19684
19685 * server.c (gdbserver_usage): Mention --remote-debug.
19686 (main): Accept '--remote-debug' switch.
19687
19688 2009-01-18 Doug Evans <dje@google.com>
19689
19690 * regcache.c (new_register_cache): No need to check result of xcalloc.
19691 * server.c (handle_search_memory): Back out calls to xmalloc,
19692 result is checked and error is returned to user upon failure.
19693 (handle_query): Ditto. Add more checks for result of malloc.
19694 (handle_v_cont): Check result of malloc, report error back to
19695 user upon failure.
19696 (handle_v_run): Ditto. Call freeargv.
19697 * server.h (freeargv): Declare.
19698 * utils.c (freeargv): New fn.
19699
19700 2009-01-15 Doug Evans <dje@google.com>
19701
19702 * gdbreplay.c (perror_with_name): Make arg const char *.
19703 * server.h (target_signal_to_name): Make return type const char *.
19704 * thread-db.c (thread_db_err_str): Make return type const char *.
19705 * utils.c (perror_with_name): Make arg const char *.
19706
19707 2009-01-14 Pedro Alves <pedro@codesourcery.com>
19708
19709 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
19710 when handling a EXIT_PROCESS_DEBUG_EVENT.
19711
19712 2009-01-06 Joel Brobecker <brobecker@adacore.com>
19713
19714 * gdbreplay.c (gdbreplay_version): Update copyright year.
19715 * server.c (gdbserver_version): Likewise.
19716
19717 2009-01-05 Doug Evans <dje@google.com>
19718
19719 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
19720 (handle_extended_wait): Improve comment.
19721
19722 2008-12-13 Doug Evans <dje@google.com>
19723
19724 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
19725 * server.h (ATTR_MALLOC): New macro.
19726 (xmalloc,xcalloc,xstrdup): Declare.
19727 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
19728 * inferiors.c: Ditto.
19729 * linux-low.c: Ditto.
19730 * mem-break.c: Ditto.
19731 * regcache.c: Ditto.
19732 * remote-utils.c: Ditto.
19733 * server.c: Ditto.
19734 * target.c: Ditto.
19735 * win32-low.c: Ditto.
19736
19737 2008-12-12 Doug Evans <dje@google.com>
19738
19739 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
19740 in debugging printf.
19741
19742 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
19743
19744 2008-12-09 Doug Evans <dje@google.com>
19745
19746 * linux-low.h (struct process_info): Delete member tid, unused.
19747 * thread-db.c (find_one_thread): Update.
19748 (maybe_attach_thread): Update.
19749
19750 2008-12-02 Pedro Alves <pedro@codesourcery.com>
19751
19752 * target.h (struct target_ops): Add qxfer_osdata member.
19753 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
19754 and dirent.h.
19755 (linux_qxfer_osdata): New functions.
19756 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
19757 callback.
19758 * server.c (handle_query): Handle "qXfer:osdata:read:".
19759 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
19760 (buffer_xml_printf): New functions.
19761 * server.h (struct buffer): New.
19762 (buffer_grow_str, buffer_grow_str0): New macros.
19763 (buffer_grow, buffer_free, buffer_init, buffer_finish)
19764 (buffer_xml_printf): Declare.
19765
19766 2008-11-24 Doug Evans <dje@google.com>
19767
19768 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
19769
19770 2008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
19771
19772 * server.c (handle_v_run): Always use the supplied argument list.
19773
19774 2008-11-19 Bob Wilson <bob.wilson@acm.org>
19775
19776 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
19777 (xtensa_regmap_table): Add entry for scompare1.
19778
19779 2008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
19780
19781 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
19782 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
19783 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
19784 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
19785 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
19786 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
19787 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
19788 XML target descriptions.
19789 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
19790 when inferior is running on an ISA 2.05 or later processor. Add
19791 special case to return offset for full 64-bit slot of FPSCR when
19792 in 32-bits.
19793
19794 2008-11-14 Daniel Gutson <dgutson@codesourcery.com>
19795
19796 * Makefile.in (SFILES, clean): Added sparc64 files.
19797 (reg-sparc64.o, reg-sparc64.c): New.
19798 * configure.srv (sparc*-*-linux*): New configuration.
19799 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
19800 syscall arguments for SPARC.
19801 (regsets_store_inferior_registers): Likewise.
19802 * linux-sparc-low.c: New file.
19803
19804 2008-10-21 Doug Evans <dje@google.com>
19805
19806 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
19807 (READLINE_DIR,READLINE_DEP): Delete.
19808 (INTERNAL_CFLAGS): Update.
19809 (LINTFLAGS): Update.
19810
19811 2008-10-10 Pedro Alves <pedro@codesourcery.com>
19812
19813 * server.c (handle_v_run): If GDB didn't specify an argv, use the
19814 whole argv from the last run, not just argv[0].
19815
19816 2008-09-08 Pedro Alves <pedro@codesourcery.com>
19817
19818 * regcache.c (new_register_cache): Return NULL if the register
19819 cache size isn't known yet.
19820 (free_register_cache): Avoid dereferencing a NULL regcache.
19821
19822 2008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
19823
19824 * configure.srv: Merge MIPS and MIPS64.
19825
19826 2008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
19827
19828 * Makefile.in (uninstall): Apply $(EXEEXT) too.
19829
19830 2008-08-18 Luis Machado <luisgpm@br.ibm.com>
19831
19832 * Makefile.in: Add required vsx dependencies.
19833
19834 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
19835 Declare init_registers_powerpc_vsx32l.
19836 Declare init_registers_powerpc_vsx64l.
19837 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
19838 (ppc_arch_setup): Check for VSX in hwcap.
19839 (ppc_fill_vsxregset): New function.
19840 (ppc_store_vsxregset): New function.
19841 Add new VSX entry in regset_info target_regsets.
19842
19843 * configure.srv: Add new VSX dependencies.
19844
19845 2008-08-12 Pedro Alves <pedro@codesourcery.com>
19846
19847 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
19848 (remote_open): Set or clear transport_is_reliable.
19849 (putpkt_binary): Don't expect acks in noack mode.
19850 (getpkt): Don't send ack/nac in noack mode.
19851 * server.c (handle_general_set): Handle QStartNoAckMode.
19852 (handle_query): If connected by tcp pass QStartNoAckMode+ in
19853 qSupported.
19854 (main): Reset noack_mode on every connection.
19855 * server.h (noack_mode): Declare.
19856
19857 2008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19858
19859 * Makefile.in (GDBREPLAY_OBS): New variable.
19860 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
19861
19862 2008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
19863 Daniel Jacobowitz <dan@codesourcery.com>
19864
19865 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
19866 (usr_store_inferior_registers): Likewise.
19867 (regsets_store_inferior_registers): Likewise.
19868
19869 2008-07-31 Rolf Jansen <rj@surtec.com>
19870 Pedro Alves <pedro@codesourcery.com>
19871
19872 * configure.ac: Check for memmem declaration.
19873 * server.c [HAVE_MALLOC_H]: Include malloc.h.
19874 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
19875 (disable_packet_qfThreadInfo): Unconditionally compile.
19876 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
19877 * configure, config.in: Regenerate.
19878
19879 2008-07-28 Doug Kwan <dougkwan@google.com>
19880
19881 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
19882 (linux_write_memory): Remove declaration of errno.
19883
19884 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
19885
19886 * linux-low.c (handle_extended_wait): Do not use "status"
19887 variable uninitialized.
19888
19889 2008-07-07 Pedro Alves <pedro@codesourcery.com>
19890
19891 * server.c (handle_v_attach): Inhibit reporting dll changes.
19892
19893 2008-06-27 Pedro Alves <pedro@codesourcery.com>
19894
19895 * remote-utils.c (prepare_resume_reply): If requested, don't
19896 output "thread:TID" in the T stop reply.
19897
19898 * server.c (disable_packet_vCont, disable_packet_Tthread)
19899 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
19900 (handle_query): If requested, disable support for qC, qfThreadInfo
19901 and qsThreadInfo.
19902 (handle_v_requests): If requested, disable support for vCont.
19903 (gdbserver_show_disableable): New.
19904 (main): Handle --disable-packet and --disable-packet=LIST.
19905
19906 * server.h (disable_packet_vCont, disable_packet_Tthread)
19907 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
19908
19909 2008-06-20 Carlos O'Donell <carlos@codesourcery.com>
19910
19911 * server.c (gdbserver_usage): Mention --version.
19912
19913 2008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
19914
19915 * Makefile.in (gdbreplay.o): New rule.
19916
19917 2008-06-06 Joseph Myers <joseph@codesourcery.com>
19918
19919 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
19920 message, not gdbserver.
19921
19922 2008-06-05 Vladimir Prus <vladimir@codesourcery.com>
19923 Nathan Sidwell <nathan@codesourcery.com>
19924 Joseph Myers <joseph@codesourcery.com>
19925
19926 * acinclude.m4: Include ../../config/acx.m4.
19927 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
19928 * configure, config.in: Regenerate.
19929 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
19930 * server.c (gdbserver_version): Print PKGVERSION.
19931 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
19932 (main): Adjust gdbserver_usage calls.
19933 * gdbreplay.c (version, host_name): Add declarations.
19934 (gdbreplay_version, gdbreplay_usage): New.
19935 (main): Accept --version and --help options.
19936
19937 2008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
19938
19939 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
19940 (arm_breakpoint_at): Handle Thumb.
19941 (the_low_target): Add comment.
19942
19943 2008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
19944
19945 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
19946
19947 2008-05-09 Doug Evans <dje@google.com>
19948
19949 * server.h (decode_search_memory_packet): Declare.
19950 * remote-utils.c (decode_search_memory_packet): New fn.
19951 * server.c (handle_search_memory_1): New fn.
19952 (handle_search_memory): New fn.
19953 (handle_query): Process qSearch:memory packets.
19954
19955 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
19956
19957 * regcache.c (registers_length): Remove.
19958 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
19959 full register packet.
19960 * regcache.h (registers_length): Remove prototype.
19961 * server.h (PBUFSIZ): Define to 16384.
19962
19963 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
19964
19965 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
19966 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
19967 powerpc-64l.o, and powerpc-altivec64l.o.
19968 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
19969 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
19970 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
19971 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
19972 rs6000/power-linux.xml, and rs6000/power64-linux.xml
19973 to srv_xmlfiles.
19974
19975 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
19976 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
19977 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
19978 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
19979 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
19980 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
19981 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
19982 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
19983 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
19984 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
19985 (clean): Update.
19986
19987 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
19988 (init_registers_powerpc_32l): ... this new prototype.
19989 (init_registers_powerpc_32): Remove, replace by ...
19990 (init_registers_powerpc_altivec32l): ... this new prototype.
19991 (init_registers_powerpc_e500): Remove, replace by ...
19992 (init_registers_powerpc_e500l): ... this new prototype.
19993 (init_registers_ppc64): Remove, replace by ...
19994 (init_registers_powerpc_64l): ... this new prototype.
19995 (init_registers_powerpc_64): Remove, replace by ...
19996 (init_registers_powerpc_altivec64l): ... this new prototype.
19997 (ppc_num_regs): Set to 73.
19998 (PT_ORIG_R3, PT_TRAP): Define if necessary.
19999 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
20000 (ppc_cannot_store_register): Handle orig_r3 and trap.
20001 (ppc_arch_setup): Update init_registers_... calls.
20002 (ppc_fill_gregset): Handle orig_r3 and trap.
20003
20004 * inferiors.c (clear_inferiors): Reset current_inferior.
20005
20006 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
20007
20008 * acinclude.m4: Add override.m4.
20009 * configure: Regenerate.
20010
20011 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
20012
20013 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
20014 initial call to init_register_ppc64.
20015
20016 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
20017
20018 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
20019 single powerpc*-*-linux* case.
20020 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
20021
20022 2008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
20023
20024 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
20025 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
20026 from reg_xmlfiles.
20027 * linux-ppc-low.c: Include <elf.h>.
20028 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
20029 (ppc_hwcap): New global variable.
20030 (ppc_regmap): Remove __SPE__ #ifdef sections.
20031 (ppc_regmap_e500): New global variable.
20032 (ppc_cannot_store_register): Update __SPE__ special case.
20033 (ppc_get_hwcap): New function.
20034 (ppc_arch_setup): Use it to determine whether inferior supports
20035 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
20036 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
20037 Do not access registers if target does not support AltiVec.
20038 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
20039 Do not access registers if target does not support SPE.
20040 (target_regsets): Unconditionally include AltiVec and SPE regsets.
20041
20042 2008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
20043
20044 * linux-low.c (disabled_regsets, num_regsets): New.
20045 (use_regsets_p): Delete.
20046 (linux_wait_for_process): Clear disabled_regsets.
20047 (regsets_fetch_inferior_registers): Check and set it.
20048 (regsets_store_inferior_registers): Likewise.
20049 (linux_fetch_registers, linux_store_registers): Do not use
20050 use_regsets_p.
20051 (initialize_low): Allocate disabled_regsets.
20052
20053 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
20054
20055 * Makefile.in (LIBOBJS): New.
20056 (OBS): Use LIBOBJS.
20057 (memmem.o): New rule.
20058 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
20059 * configure: Regenerated.
20060
20061 2008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
20062
20063 * server.c (handle_query): Never return "unsupported" for
20064 qXfer:features:read queries.
20065
20066 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
20067
20068 * server.c (get_features_xml): Fix inverted condition.
20069 (handle_query): Always support qXfer:feature:read.
20070
20071 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
20072
20073 * server.c (wrapper_argv): New.
20074 (start_inferior): Handle wrapper_argv. If set, expect an extra
20075 trap.
20076 (gdbserver_usage): Document --wrapper.
20077 (main): Parse --wrapper.
20078
20079 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20080
20081 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
20082 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
20083 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
20084 (ppc_set_pc): Likewise.
20085 (ppc_arch_setup): New function.
20086 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
20087 of collect_register.
20088 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
20089
20090 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20091
20092 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
20093 instead of linux-ppc64-low.o.
20094 * linux-ppc64-low.c: Remove file.
20095 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
20096 (linux-ppc64-low.o): Remove rule.
20097
20098 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
20099 (init_registers_powerpc_64): Likewise.
20100 (ppc_regmap): Conditionally define depending on __powerpc64__.
20101 (ppc_cannot_store_register): Do not special-case "fpscr" when
20102 compiled on __powerpc64__.
20103 (ppc_collect_ptrace_register): New function.
20104 (ppc_supply_ptrace_register): New function.
20105 (ppc_breakpoint): Change type to "unsigned int".
20106 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
20107 (the_low_target): Conditionally provide initializers for the
20108 arch_setup member depending on __powerpc64__. Install
20109 collect_ptrace_register and supply_ptrace_register members.
20110
20111 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20112
20113 * regcache.h (gdbserver_xmltarget): Add extern declaration.
20114 * server.c (gdbserver_xmltarget): Define.
20115 (get_features_xml): Use it to replace "target.xml" and arch_string.
20116
20117 * configure.srv: Remove srv_xmltarget. Add XML files that were
20118 mentioned there to srv_xmlfiles instead. Remove conditional tests
20119 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
20120 srv_xmlfiles and srv_regobj to include all possible choices.
20121 * configure.ac (srv_xmltarget): Remove.
20122 (srv_xmlfiles): Do not add "target.xml".
20123 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
20124 checks for supplementary target information.
20125 * configure: Regenerate.
20126 * Makefile.in (XML_TARGET): Remove.
20127 (target.xml): Remove rule.
20128 (clean): Do not clean up target.xml.
20129 (.PRECIOUS): Do not mention target.xml.
20130
20131 * target.h (struct target_ops): Remove arch_string member.
20132 * linux-low.c (linux_arch_string): Remove.
20133 (linux_target_ops): Remove arch_string initializer.
20134 * linux-low.h (struct linux_target_ops): Remove arch_string member.
20135 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
20136 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
20137 * spu-low.c (spu_arch_string): Remove.
20138 (spu_target_ops): Remove arch_string initializer.
20139 * win32-low.c (win32_arch_string): Remove.
20140 (win32_target_ops): Remove arch_string initializer.
20141 * win32-low.h (struct win32_target_ops): Remove arch_string member.
20142 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
20143 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
20144
20145 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20146
20147 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
20148 by collect_ptrace_register and supply_ptrace_register hooks.
20149 * linux-low.c (fetch_register): Use supply_ptrace_register callback
20150 instead of checking for the_low_target.left_pad_xfer.
20151 (usr_store_inferior_registers): Use collect_ptrace_register callback
20152 instead of checking for the_low_target.left_pad_xfer.
20153
20154 * linux-s390-low.c (s390_collect_ptrace_register): New function.
20155 (s390_supply_ptrace_register): Likewise.
20156 (s390_fill_gregset): Call s390_collect_ptrace_register.
20157 (the_low_target): Update.
20158
20159 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
20160 (ppc_supply_ptrace_register): Likewise.
20161 (the_low_target): Update.
20162
20163 * linux-i386-low.c (the_low_target): Update.
20164 * linux-x86-64-low.c (the_low_target): Update.
20165
20166 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20167
20168 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
20169 reg-s390.o and reg-s390x.o.
20170
20171 * linux-low.c (new_inferior): New global variable.
20172 (linux_create_inferior, linux_attach): Set it.
20173 (linux_wait_for_process): Call the_low_target.arch_setup after the
20174 target has stopped for the first time.
20175 (initialize_low): Do not call the_low_target.arch_setup.
20176
20177 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
20178 (s390_set_pc): Likewise.
20179 (s390_arch_setup): New function.
20180 (the_low_target): Use s390_arch_setup as arch_setup routine.
20181
20182 * regcache.c (realloc_register_cache): New function.
20183 (set_register_cache): Call it for each existing regcache.
20184
20185 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20186
20187 * server.h (init_registers): Remove prototype.
20188
20189 * linux-low.h (struct linux_target_ops): Add arch_setup field.
20190 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
20191 instead of init_registers ().
20192 * linux-arm-low.c (init_registers_arm): Add prototype.
20193 (init_registers_arm_with_iwmmxt): Likewise.
20194 (the_low_target): Add initializer for arch_setup field.
20195 * linux-cris-low.c (init_registers_cris): Add prototype.
20196 (the_low_target): Add initializer for arch_setup field.
20197 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
20198 (the_low_target): Add initializer for arch_setup field.
20199 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
20200 (the_low_target): Add initializer for arch_setup field.
20201 * linux-ia64-low.c (init_registers_ia64): Add prototype.
20202 (the_low_target): Add initializer for arch_setup field.
20203 * linux-m32r-low.c (init_registers_m32r): Add prototype.
20204 (the_low_target): Add initializer for arch_setup field.
20205 * linux-m68k-low.c (init_registers_m68k): Add prototype.
20206 (the_low_target): Add initializer for arch_setup field.
20207 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
20208 (init_registers_mips64_linux): Likewise.
20209 (the_low_target): Add initializer for arch_setup field.
20210 * linux-ppc-low.c (init_registers_ppc): Add prototype.
20211 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
20212 (the_low_target): Add initializer for arch_setup field.
20213 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
20214 (init_registers_powerpc_64): Likewise.
20215 (the_low_target): Add initializer for arch_setup field.
20216 * linux-s390-low.c (init_registers_s390): Add prototype.
20217 (init_registers_s390x): Likewise.
20218 (the_low_target): Add initializer for arch_setup field.
20219 * linux-sh-low.c (init_registers_sh): Add prototype.
20220 (the_low_target): Add initializer for arch_setup field.
20221 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
20222 (the_low_target): Add initializer for arch_setup field.
20223 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
20224 (the_low_target): Add initializer for arch_setup field.
20225
20226 * win32-low.h (struct win32_target_ops): Add arch_setup field.
20227 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
20228 instead of init_registers ().
20229 * win32-arm-low.c (init_registers_arm): Add prototype.
20230 (the_low_target): Add initializer for arch_setup field.
20231 * win32-i386-low.c (init_registers_i386): Add prototype.
20232 (the_low_target): Add initializer for arch_setup field.
20233
20234 * spu-low.c (init_registers_spu): Add prototype.
20235 (initialize_low): Call initialie_registers_spu () instead of
20236 initialize_registers ().
20237
20238 2008-02-19 Pedro Alves <pedro@codesourcery.com>
20239
20240 * server.c (handle_v_requests): When handling the vRun and vAttach
20241 packets, if already debugging a process, don't kill it. Return an
20242 error instead.
20243
20244 2008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
20245
20246 * server.c (handle_query): Correct length check.
20247
20248 2008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
20249
20250 * win32-low.c (do_initial_child_stuff): Add process handle
20251 parameter. Set current_process_handle and current_process_id from the
20252 parameters. Clear globals.
20253 (win32_create_inferior): Don't set current_process_handle and
20254 current_process_id here. Instead pass them on the call to
20255 do_initial_child_stuff.
20256 (win32_attach): Likewise.
20257 (win32_clear_inferiors): New.
20258 (win32_kill): Don't close the current process handle or the
20259 current thread handle here. Instead call win32_clear_inferiors.
20260 (win32_detach): Don't open a new handle to the process. Call
20261 win32_clear_inferiors.
20262 (win32_join): Don't rely on current_process_handle; open a new
20263 handle using the process id.
20264 (win32_wait): Call win32_clear_inferiors when the inferior process
20265 has exited.
20266
20267 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
20268
20269 * server.c (monitor_show_help): Add "exit".
20270
20271 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
20272
20273 * Makefile.in (SFILES): Add linux-xtensa-low.c.
20274 (clean): Add reg-xtensa.c.
20275 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
20276 * configure.srv (xtensa*-*-linux*) New target.
20277 * linux-xtensa-low.c: New.
20278 * xtensa-xtregs.c: New.
20279
20280 2008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
20281
20282 * hostio.c: Don't include errno.h.
20283 (errno_to_fileio_errno): Move to hostio-errno.
20284 * hostio.c: (hostio_error): Remove the error parameter. Defer the
20285 error number outputting to the target->hostio_last_error callback.
20286 (hostio_packet_error): Use FILEIO_EINVAL directly.
20287 (handle_open, handle_pread, hostio_error, handle_unlink): Update
20288 calls to hostio_error.
20289 * hostio-errno.c: New.
20290 * server.h (hostio_last_error_from_errno): Declare.
20291 * target.h (target_ops): Add hostio_last_error member.
20292 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
20293 as hostio_last_error handler.
20294 * spu-low.c (spu_target_ops): Likewise.
20295 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
20296 (wince_hostio_last_error): New functions.
20297 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
20298 as hostio_last_error handler.
20299 (win32_target_ops) [!_WIN32_WCE]: Register
20300 hostio_last_error_from_errno as hostio_last_error handler.
20301 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
20302 (hostio-errno.o): New rule.
20303 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
20304 * configure.srv (srv_hostio_err_objs): New variable. Default to
20305 hostio-errno.o.
20306 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
20307 * configure: Regenerate.
20308
20309 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20310
20311 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
20312 (linux_kill, linux_detach): Clean up the process list.
20313 * remote-utils.c (remote_open): Improve port number parsing.
20314 (putpkt_binary, input_interrupt): Only send interrupts if the target
20315 is running.
20316 * server.c (extended_protocol): Make static.
20317 (attached): Define earlier.
20318 (exit_requested, response_needed, program_argv): New variables.
20319 (target_running): New.
20320 (start_inferior): Clear attached here.
20321 (attach_inferior): Set attached here.
20322 (require_running): Define.
20323 (handle_query): Use require_running and target_running. Implement
20324 "monitor exit".
20325 (handle_v_attach, handle_v_run): New.
20326 (handle_v_requests): Use require_running. Handle vAttach and vRun.
20327 (gdbserver_usage): Update.
20328 (main): Redo argument parsing. Handle --debug and --multi. Handle
20329 --attach along with other options or after the port. Save
20330 program_argv. Support no initial program. Resynchronize
20331 communication with GDB after an error. Handle "monitor exit".
20332 Use require_running and target_running. Always allow the extended
20333 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
20334 restart in extended mode.
20335 * README: Refer to the GDB manual. Update --attach usage.
20336
20337 2007-12-20 Andreas Schwab <schwab@suse.de>
20338
20339 * linux-low.c (STACK_SIZE): Define.
20340 (linux_tracefork_child): Use it. Use __clone2 on ia64.
20341 (linux_test_for_tracefork): Likewise.
20342
20343 2007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
20344
20345 * linux-low.c (linux_wait_for_event): Update messages. Do not
20346 reinsert auto-delete breakpoints.
20347 * mem-break.c (struct breakpoint): Change return type of handler to
20348 int.
20349 (set_breakpoint_at): Update handler type.
20350 (reinsert_breakpoint_handler): Return 1 instead of calling
20351 delete_breakpoint.
20352 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
20353 setting a new one.
20354 (check_breakpoints): Delete auto-delete breakpoints and return 2.
20355 * mem-break.h (set_breakpoint_at): Update handler type.
20356 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
20357 * win32-low.c (auto_delete_breakpoint): New.
20358 (get_child_debug_event): Use it.
20359
20360 2007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
20361
20362 * configure.ac: Check for pread and pwrite.
20363 * hostio.c (handle_pread): Fall back to lseek and read.
20364 (handle_pwrite): Fall back to lseek and write.
20365 * config.in, configure: Regenerated.
20366
20367 2007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
20368
20369 * server.c (myresume): Add own_buf argument.
20370 (main): Update calls.
20371
20372 2007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
20373
20374 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
20375 * remote-utils.c (remote_open): Do not call disable_async_io.
20376 (block_async_io): Delete.
20377 (unblock_async_io): Make static.
20378 (initialize_async_io): New.
20379 * server.c (handle_v_cont): Handle async I/O here.
20380 (myresume): Likewise. Move other common resume tasks here...
20381 (main): ... from here. Call initialize_async_io. Disable async
20382 I/O before the main loop.
20383 * server.h (initialize_async_io): Declare.
20384 (block_async_io, unblock_async_io): Delete prototypes.
20385 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
20386
20387 2007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
20388
20389 * remote-utils.c (readchar): Allow binary data in received messages.
20390
20391 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20392
20393 * win32-low.c (attaching): New global.
20394 (win32_create_inferior): Clear the `attaching' global.
20395 (win32_attach): Set the `attaching' global.
20396 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
20397 attaching. Only set a breakpoint at the entry point if not
20398 attaching.
20399
20400 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20401
20402 * server.c (main): Don't report dll events on the initial
20403 connection on attaches.
20404
20405 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20406
20407 * server.c (main): Relax numerical bases supported for the pid of
20408 the --attach command line argument.
20409
20410 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20411
20412 * win32-low.c (win32_attach): Call OpenProcess before
20413 DebugActiveProcess, not after. Add last error output to error
20414 call.
20415
20416 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20417
20418 * win32-low.c (win32_get_thread_context)
20419 (win32_set_thread_context): New functions.
20420 (thread_rec): Use win32_get_thread_context.
20421 (continue_one_thread, win32_resume): Use win32_set_thread_context.
20422 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
20423 field.
20424
20425 2007-12-03 Leo Zayas
20426 Pedro Alves <pedro_alves@portugalmail.pt>
20427
20428 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
20429 global variables.
20430 (child_add_thread): Minor cleanup.
20431 (child_continue): Resume artificially suspended threads before
20432 calling ContinueDebugEvent.
20433 (suspend_one_thread): New.
20434 (fake_breakpoint_event): New.
20435 (get_child_debug_event): Change return type to int. Check here if
20436 gdb sent an interrupt request. If a soft interrupt was requested,
20437 fake a breakpoint event. Return 0 if there is no event to handle,
20438 and 1 otherwise.
20439 (win32_wait): Don't check here if gdb sent an interrupt request.
20440 Ensure there is a valid event to handle.
20441 (win32_request_interrupt): Add soft interruption method as last
20442 resort.
20443
20444 2007-12-03 Leo Zayas
20445 Pedro Alves <pedro_alves@portugalmail.pt>
20446
20447 * win32-low.h (win32_thread_info): Add descriptions to the
20448 structure members. Replace `suspend_count' counter by a
20449 `suspended' flag.
20450 * win32-low.c (thread_rec): Update condition of when to get the
20451 context from the inferior. Rely on ContextFlags being set if it
20452 has already been retrieved. Only suspend the inferior thread if
20453 we haven't already. Warn if that fails.
20454 (continue_one_thread): s/suspend_count/suspended/. Only call
20455 ResumeThread once. Warn if that fails.
20456
20457 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20458
20459 * win32-low.c (win32_wait): Don't read from the inferior when it
20460 has already exited.
20461
20462 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20463
20464 * Makefile.in (win32_low_h): New variable.
20465 (win32-low.o): Add dependency on $(win32_low_h).
20466 (win32-arm-low.o, win32-i386-low.o): New rules.
20467
20468 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20469
20470 * hostio.c: Correct copyright year.
20471
20472 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20473
20474 * Makefile.in (OBS): Add hostio.o.
20475 (hostio.o): New rule.
20476 * server.h (handle_vFile): Declare.
20477 * hostio.c: New file.
20478 * server.c (handle_v_requests): Take packet_len and new_packet_len
20479 for binary packets. Call handle_vFile.
20480 (main): Update call to handle_v_requests.
20481
20482 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
20483
20484 * linux-low.c: Include <sched.h>.
20485
20486 2007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
20487
20488 * linux-low.c (linux_tracefork_grandchild): New.
20489 (linux_tracefork_child): Use clone.
20490 (linux_test_for_tracefork): Use clone; allocate and free a stack.
20491
20492 2007-10-31 Joel Brobecker <brobecker@adacore.com>
20493
20494 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
20495
20496 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
20497
20498 * linux-low.c (handle_extended_wait): Handle unexpected signals.
20499
20500 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
20501
20502 * inferiors.c (change_inferior_id): Delete.
20503 (add_pid_to_list, pull_pid_from_list): New.
20504 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
20505 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
20506 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
20507 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
20508 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
20509 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
20510 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
20511 (using_threads): Always set to 1.
20512 (handle_extended_wait): New.
20513 (add_process): Do not set TID.
20514 (linux_create_inferior): Set must_set_ptrace_flags.
20515 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
20516 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
20517 (linux_thread_alive): Rename TID argument to LWPID.
20518 (linux_wait_for_process): Handle unknown processes. Do not use TID.
20519 (linux_wait_for_event): Do not use TID or check using_threads. Update
20520 call to dead_thread_notify. Call handle_extended_wait.
20521 (linux_create_inferior): Use PTRACE_SETOPTIONS.
20522 (send_sigstop): Delete sigstop_sent.
20523 (wait_for_sigstop): Avoid TID.
20524 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
20525 (linux_test_for_tracefork): New.
20526 (linux_lookup_signals): Use thread_db_active and
20527 linux_supports_tracefork_flag.
20528 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
20529 * linux-low.h (get_process_thread): Avoid TID.
20530 (struct process_ifo): Move thread_known and tid to the end. Remove
20531 sigstop_sent.
20532 (linux_attach_lwp, thread_db_init): Update prototypes.
20533 * server.h (change_inferior_id): Delete prototype.
20534 (add_pid_to_list, pull_pid_from_list): New prototypes.
20535 * thread-db.c (thread_db_use_events): New.
20536 (find_first_thread): Rename to...
20537 (find_one_thread): ...this. Update callers and messages. Do not
20538 call fatal. Check thread_db_use_events. Do not call
20539 change_inferior_id or new_thread_notify.
20540 (maybe_attach_thread): Update. Do not call new_thread_notify.
20541 (thread_db_init): Set thread_db_use_events. Check use_events.
20542 * utils.c (fatal, warning): Correct message prefix.
20543
20544 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
20545
20546 * Makefile.in (clean): Remove new files.
20547 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
20548 (powerpc-64.o, powerpc-64.c): New rules.
20549 * configure.srv: Use alternate register sets for powerpc64-*-linux*
20550 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
20551 with SPE.
20552 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
20553 SPE targets.
20554 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
20555 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
20556 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
20557 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
20558 (target_regsets): Add AltiVec and SPE register sets.
20559 * configure.ac: Check for AltiVec and SPE.
20560 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
20561 (ppc_fill_vrregset, ppc_store_vrregset): New.
20562 (target_regsets): Add AltiVec register set.
20563 * configure: Regenerated.
20564
20565 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
20566
20567 * linux-low.c (O_LARGEFILE): Define.
20568 (linux_read_memory): Use /proc/PID/mem.
20569 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
20570 * configure, config.in: Regenerated.
20571
20572 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
20573
20574 * linux-low.c (linux_wait_for_event): Do not pass signals while
20575 single-stepping.
20576
20577 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20578
20579 * win32-low.c (create_process): New.
20580 (win32_create_inferior): Use create_process instead of
20581 CreateProcess. If create_process failed retry appending an ".exe"
20582 suffix. Store the GetLastError result immediatelly after
20583 create_process calls and use it on the call to error.
20584
20585 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20586
20587 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
20588
20589 2007-08-23 Joel Brobecker <brobecker@adacore.com>
20590
20591 * configure.ac: Switch license to GPLv3.
20592
20593 2007-08-01 Michael Snyder <msnyder@access-company.com>
20594
20595 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
20596
20597 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
20598
20599 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
20600 typedef.
20601 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
20602 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
20603 CloseToolhelp32Snapshot.
20604 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
20605 CloseToolhelp32Snapshot.
20606
20607 2007-07-27 Michael Snyder <michael.snyder@access-company.com>
20608
20609 * server.c (main): Check for inferior exit before main loop.
20610
20611 2007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
20612
20613 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
20614 instead of on tmp_desc.
20615
20616 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
20617 Daniel Jacobowitz <dan@codesourcery.com>
20618
20619 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
20620 (add_thread): Minor cleanups.
20621 (clear_inferiors): Move lower in the file. Clear the DLL
20622 list.
20623 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
20624 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
20625 (xml_escape_text): New.
20626 * server.c (handle_query): Handle qXfer:libraries:read. Report it
20627 for qSupported.
20628 (handle_v_cont): Report errors.
20629 (gdbserver_version): Update.
20630 (main): Correct size of own_buf. Do not report initial DLL events.
20631 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
20632 (unloaded_dll, xml_escape_text): New.
20633 * win32-low.c (enum target_waitkind): Update comments.
20634 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
20635 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
20636 (win32_EnumProcessModules, win32_GetModuleInformation)
20637 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
20638 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
20639 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
20640 (win32_Module32First, win32_Module32Next, load_toolhelp)
20641 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
20642 (get_child_debug_event): Handle DLL events.
20643 (win32_wait): Likewise.
20644
20645 2007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
20646
20647 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
20648 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
20649
20650 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20651
20652 * win32-low.c (handle_output_debug_string): Ignore event if not
20653 waiting.
20654
20655 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20656
20657 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
20658
20659 2007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
20660
20661 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
20662
20663 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
20664
20665 * inferiors.c (change_inferior_id): Add comment.
20666 * linux-low.c (check_removed_breakpoint): Add an early
20667 prototype. Improve debug output.
20668 (linux_attach): Doc update.
20669 (linux_detach_one_process, linux_detach): Clean up before releasing
20670 each process.
20671 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
20672 * linux-low.h (struct process_info): Doc improvement.
20673 * mem-break.c (delete_all_breakpoints): New.
20674 * mem-break.h (delete_all_breakpoints): New prototype.
20675 * thread-db.c (find_first_thread): New.
20676 (thread_db_create_event): Call it instead of
20677 thread_db_find_new_threads. Clean up unused variables.
20678 (maybe_attach_thread): Remove first thread handling.
20679 (thread_db_find_new_threads): Use find_first_thread.
20680 (thread_db_get_tls_address): Likewise.
20681
20682 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
20683
20684 * thread-db.c (thread_db_find_new_threads): Add prototype.
20685 (thread_db_create_event): Check for the main thread before adding
20686 a new thread.
20687 (maybe_attach_thread): Only enable event reporting if TID == 0.
20688 (thread_db_get_tls_address): Check for new threads.
20689
20690 2007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
20691
20692 * linux-low.c (linux_create_inferior): Try execv before execvp.
20693 * spu-low.c (spu_create_inferior): Likewise.
20694
20695 2007-06-13 Mike Frysinger <vapier@gentoo.org>
20696
20697 * linux-low.c (linux_create_inferior): Change execv to execvp.
20698 * spu-low.c (spu_create_inferior): Likewies.
20699
20700 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
20701
20702 * Makefile.in (clean): Clean new files instead of deleted ones.
20703 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
20704 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
20705 rules.
20706 * configure.srv: Specify XML files and new regformats for MIPS and
20707 MIPS64 GNU/Linux.
20708 * linux-mips-low.c (mips_num_regs): Set to only used registers.
20709 (mips_regmap): Do not fetch $0. Remove unused registers. Add
20710 an entry for the restart register.
20711 (mips_cannot_fetch_register, mips_cannot_store_register)
20712 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
20713 register names to match the XML descriptions.
20714 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
20715 restart register instead of $0.
20716
20717 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20718 Markus Deuling <deuling@de.ibm.com>
20719
20720 * remote-utils.c (decode_xfer_write): New function.
20721 * server.h (decode_xfer_write): Add prototype.
20722 * server.c (handle_query): Add PACKET_LEN argument. Support
20723 qXfer:spu:read and qXfer:spu:write packets.
20724 (main): Pass packet_len to handle_query.
20725 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
20726 * target.h (target_ops): Add qxfer_spu.
20727
20728 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20729
20730 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
20731 accessing non-seekable spufs files.
20732
20733 2007-05-16 Markus Deuling <deuling@de.ibm.com>
20734
20735 * server.c (handle_query): Add reply for qC packet.
20736
20737 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20738 Leo Zayas <lerele@champenstudios@com>
20739
20740 * server.h (check_remote_input_interrupt_request): New function.
20741 * remote_utils.c (INVALID_DESCRIPTOR): New define.
20742 (remote_desc): Initialize with INVALID_DESCRIPTOR.
20743 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
20744 (check_remote_input_interrupt_request): New function.
20745 * server.h (check_remote_input_interrupt_request): Declare.
20746 * win32-low.c (winapi_DebugBreakProcess,
20747 winapi_GenerateConsoleCtrlEvent): New typedefs.
20748 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
20749 to 250 ms.
20750 (win32_wait): Check for remote interrupt request
20751 with check_remote_input_interrupt_request.
20752 (win32_request_interrupt): New function.
20753 (win32_target_op): Set request_interrupt to win32_request_interrupt.
20754
20755 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20756
20757 * win32-low.c (debug_registers_changed,
20758 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
20759 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
20760 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
20761 (thread_rec): Get context using the low target.
20762 (child_add_thread): Call thread_added on the low target,
20763 which does the same thing.
20764 (regptr): Delete.
20765 (do_initial_child_stuff): Remove debug registers references.
20766 Set context using the low target. Resume threads after
20767 setting the contexts.
20768 (child_continue): Remove dead variable. Remove debug
20769 registers references.
20770 (child_fetch_inferior_registers): Go through the low target.
20771 (do_child_store_inferior_registers): Remove.
20772 (child_store_inferior_registers): Go through the low target.
20773 (win32_resume): Remove debug registers references.
20774 Set context using the low target.
20775 (handle_exception): Change return type to void. Don't record
20776 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
20777 first chance exception.
20778 (get_child_debug_event): Change return type to void. Remove
20779 goto loop. Always return after waiting for debug event.
20780 (win32_wait): Convert to switch statement. Handle spurious
20781 events.
20782
20783 * win32-i386-low.c (debug_registers_changed,
20784 debug_registers_used): New.
20785 (initial_stuff): Rename to ...
20786 (i386_initial_stuff): ... this. Clear debug registers
20787 state variables.
20788 (store_debug_registers): Delete.
20789 (i386_get_thread_context): New.
20790 (load_debug_registers): Delete.
20791 (i386_set_thread_context): New.
20792 (i386_thread_added): New.
20793 (single_step): Rename to ...
20794 (i386_single_step): ... this.
20795 (do_fetch_inferior_registers): Rename to ...
20796 (i386_fetch_inferior_register): ... this.
20797 (i386_store_inferior_register): New.
20798 (the_low_target): Adapt to new interface.
20799
20800 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
20801 (arm_get_thread_context): New.
20802 (arm_set_thread_context): New.
20803 (regptr): New.
20804 (do_fetch_inferior_registers): Rename to ...
20805 (arm_fetch_inferior_register): ... this.
20806 (arm_store_inferior_register): New.
20807 (arm_wince_breakpoint): Reimplement as unsigned long.
20808 (arm_wince_breakpoint_len): Define.
20809 (the_low_target): Adapt to new interface.
20810
20811 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
20812 load_debug_registers. Add get_thread_context, set_thread_context,
20813 thread_added and store_inferior_register. Rename
20814 fetch_inferior_registers to fetch_inferior_register.
20815 (regptr): Remove declaration.
20816
20817 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20818
20819 * linux-low.c (linux_detach): Change return type to int. Return 0.
20820 * spu-low.c (spu_detach): Likewise.
20821
20822 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20823
20824 * target.h (target_ops): Change return type of detach to int.
20825 Add join.
20826 (join_inferior): New.
20827 * server.c (main): Don't skip detach support on mingw32.
20828 If the inferior doesn't support detaching return error.
20829 Call join_inferior instead of using waitpid.
20830 * linux-low.c (linux_join): New.
20831 (linux_target_op): Add linux_join.
20832 * spu-low.c (spu_join): New.
20833 (spu_target_ops): Add spu_join.
20834 * win32-low.c (win32_detach): Adapt to new interface.
20835 Reopen current_process_handle before detaching. Issue a child
20836 resume before detaching.
20837 (win32_join): New.
20838 (win32_target_op): Add win32_join.
20839
20840 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20841
20842 * win32-low.c (win32-attach): Fix return value.
20843 * target.h (target_ops): Describe ATTACH return values.
20844
20845 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20846
20847 * win32-low.c (GETPROCADDRESS): Define.
20848 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
20849 (winapi_DebugSetProcessKillOnExit): Likewise.
20850 (win32_create_inferior): Force usage of ansi CreateProcessA.
20851 (win32_attach): Use GETPROCADDRESS.
20852 (win32_detach): Likewise.
20853
20854 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20855
20856 * win32-low.c (win32_wait): Don't use WSTOPSIG.
20857
20858 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
20859
20860 * win32-low.c: Commit leftover changes from 2007-03-29.
20861
20862 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20863
20864 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
20865 fields short instead of int. Add explicit padding.
20866 (i387_cache_to_fsave): Remove unnecessary casts.
20867 (i387_fsave_to_cache): Doc fix.
20868 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
20869
20870 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20871
20872 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
20873 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
20874
20875 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20876
20877 * configure.srv (arm*-*-mingw32ce*): Move near the other
20878 arm targets.
20879
20880 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20881
20882 * configure.ac: Add errno checking.
20883 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
20884 sys/file.h and malloc.h.
20885 (AC_CHECK_DECLS): Add perror.
20886 (srv_mingwce): Handle.
20887 * configure.srv (i[34567]86-*-cygwin*): Add
20888 win32-i386-low.o to srv_tgtobj.
20889 (i[34567]86-*-mingw*): Likewise.
20890 (arm*-*-mingw32ce*): Add case.
20891 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20892 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
20893 [__MINGW32CE__] (strerror): New function.
20894 [__MINGW32CE__] (errno): Define to GetLastError.
20895 [__MINGW32CE__] (COUNTOF): New macro.
20896 (remote_open): Remove extra close call.
20897 * mem-break.c (delete_breakpoint_at): New function.
20898 * mem-break.h (delete_breakpoint_at): Declare.
20899 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20900 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
20901 [USE_WIN32API] (read, write): Add char* casts.
20902 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
20903 * server.h: Include wincecompat.h on Windows CE.
20904 [HAVE_ERRNO_H]: Check.
20905 (perror): Declare if not declared.
20906 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
20907 (perror_with_name): Remove errno declaration.
20908 * wincecompat.h: New.
20909 * wincecompat.c: New.
20910 * win32-low.h: New.
20911 * win32-arm-low.c: New.
20912 * win32-i386-low.c: New.
20913 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
20914 (OUTMSG2): Make it safe.
20915 (_T): New macro.
20916 (COUNTOF): New macro.
20917 (NUM_REGS): Get it from the low target.
20918 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
20919 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
20920 (thread_rec): Let low target handle debug registers.
20921 (child_add_thread): Likewise.
20922 (child_init_thread_list): Likewise.
20923 (continue_one_thread): Likewise.
20924 (regptr): New.
20925 (do_child_fetch_inferior_registers): Move to ...
20926 * win32-i386-low.c: ... here, and rename to ...
20927 (do_fetch_inferior_registers): ... this.
20928 * win32-low.c (child_fetch_inferior_registers):
20929 Go through the low target.
20930 (do_child_store_inferior_registers): Use regptr.
20931 (strwinerror): New function.
20932 (win32_create_inferior): Handle Windows CE.
20933 Use strwinerror instead of strerror on Windows error
20934 codes. Add program to the error output.
20935 Don't close the main thread handle on Windows CE.
20936 (win32_attach): Use coredll.dll on Windows CE.
20937 (win32_kill): Close current process and current
20938 thread handles.
20939 (win32_detach): Use coredll.dll on Windows CE.
20940 (win32_resume): Let low target handle debug registers, and
20941 step request.
20942 (handle_exception): Add/Remove initial breakpoint. Avoid
20943 non-existant WSTOPSIG on Windows CE.
20944 (win32_read_inferior_memory): Cast to remove warning.
20945 (win32_arch_string): Go through the low target.
20946 (initialize_low): Call set_breakpoint_data with the low
20947 target's breakpoint.
20948 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
20949 FOP_REGNUM, mappings): Move to ...
20950 * win32-i386-low.c: ... here.
20951 * win32-low.c (win32_thread_info): Move to ...
20952 * win32-low.h: ... here.
20953 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
20954 win32-arm-low.c and wincecompat.c.
20955 (all:): Add $EXEEXT.
20956 (install-only:): Likewise.
20957 (gdbserver:): Likewise.
20958 (gdbreplay:): Likewise.
20959 * config.in: Regenerate.
20960 * configure: Regenerate.
20961
20962 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20963
20964 * win32-low.c: Rename typedef thread_info to
20965 win32_thread_info throughout.
20966
20967 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20968
20969 * win32-i386-low.c: Rename to ...
20970 * win32-low.c: ... this.
20971 * configure.srv: Replace win32-i386-low.o with win32-low.o.
20972 * Makefile.in: Likewise.
20973
20974 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
20975
20976 * remote-utils.c (monitor_output): Constify msg parameter.
20977 * server.h (monitor_output): Likewise.
20978 * win32-i386-low.c (handle_output_debug_string): New.
20979 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
20980 handle_output_debug_string.
20981 (get_child_debug_event): Likewise.
20982
20983 2007-03-27 Mat Hostetter <mat@lcs.mit.edu>
20984
20985 * server.c (main): Correct strtoul check.
20986
20987 2007-03-27 Jon Ringle <jon@ringle.org>
20988
20989 * linux-low.c: Check __ARCH_HAS_MMU__ also.
20990
20991 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
20992
20993 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
20994
20995 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
20996
20997 * terminal.h: Check HAVE_SGTTY_H.
20998
20999 2007-02-27 Mat Hostetter <mat@lcs.mit.edu>
21000
21001 * remote-utils.c (remote_open): Print out the assigned port number.
21002
21003 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
21004
21005 * remote-utils.c (monitor_output): New function.
21006 * server.c (debug_threads): Define here.
21007 (monitor_show_help): New function.
21008 (handle_query): Handle qRcmd.
21009 (main): Do not handle 'd' packet.
21010 * server.h (debug_threads, remote_debug, monitor_output): Declare.
21011 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
21012 of debug_threads.
21013
21014 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21015
21016 * Makefile.in (EXEEXT): New.
21017 (clean): Use $(EXEEXT).
21018
21019 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21020
21021 * target.h (target_ops): Rename send_signal to request_interrupt,
21022 and remove enum target_signal parameter.
21023 * linux-low.c (linux_request_interrupt): Rename from
21024 linux_send_signal, and always send SIGINT.
21025 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
21026 and always send SIGINT.
21027 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
21028 of send_signal.
21029 (input_interrupt): Likewise.
21030
21031 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21032
21033 * server.c (get_features_xml): Check if target implemented
21034 arch_string.
21035 * win32-i386-low.c (win32_arch_string): New.
21036 (win32_target_ops): Add win32_arch_string as arch_string member.
21037
21038 2007-02-22 Markus Deuling <deuling@de.ibm.com>
21039
21040 * spu-low.c (spu_arch_string): New.
21041 (spu_target_ops): Add spu_arch_string.
21042
21043 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
21044
21045 * remote-utils.c: Remove HAVE_TERMINAL_H check.
21046 * configure.ac: Do not check for terminal.h.
21047 * configure, config.in: Regenerated.
21048
21049 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21050
21051 * Makefile.in (OBS): Add $(XML_BUILTIN).
21052 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
21053 (clean): Update.
21054 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
21055 (arm-with-iwmmxt.c): New.
21056 * config.in, configure: Regenerate.
21057 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
21058 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
21059 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
21060 (arm*-*-linux*): Add iWMMXt and regset support.
21061 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
21062 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
21063 (arm_store_wmmxregset, target_regsets): New.
21064 * server.c (get_features_xml): Take annex argument. Check builtin
21065 XML documents.
21066 (handle_query): Handle multiple annexes.
21067
21068 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
21069
21070 * remote-utils.c [USE_WIN32API] (read, write): Define.
21071 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
21072 write.
21073
21074 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
21075
21076 * linux-i386-low.c (the_low_target): Set arch_string.
21077 * linux-x86-64-low.c (the_low_target): Likewise.
21078 * linux-low.c (linux_arch_string): New.
21079 (linux_target_ops): Add it.
21080 * linux-low.h (struct linux_target_ops): Add arch_string.
21081 * server.c (write_qxfer_response): Use const void * for DATA.
21082 (get_features_xml): New.
21083 (handle_query): Handle qXfer:features:read. Report it for qSupported.
21084 * target.h (struct target_ops): Add arch_string method.
21085
21086 2007-01-03 Denis Pilat <denis.pilat@st.com>
21087 Daniel Jacobowitz <dan@codesourcery.com>
21088
21089 * linux-low.c (linux_kill): Handle being called with no threads.
21090 * win32-i386-low.c (win32_kill): Likewise.
21091 (get_child_debug_event): Clear current_process_handle.
21092
21093 2006-12-30 Denis PILAT <denis.pilat@st.com>
21094 Daniel Jacobowitz <dan@codesourcery.com>
21095
21096 * remote-utils.c (remote_open): Check the type of specified
21097 serial port devices before opening them.
21098 * server.c (main): Kill the inferior if an error occurs during
21099 the first remote_open.
21100
21101 2006-12-05 Markus Deuling <deuling@de.ibm.com>
21102
21103 * README: Update supported targets.
21104
21105 2006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
21106
21107 * Makefile.in (clean): Remove reg-mips64.c.
21108 (reg-mips64.c, reg-mips64.o): New rules.
21109 * configure.srv: Handle mips64. Include regset support for mips.
21110 * linux-mips-low.c (union mips_register): New.
21111 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
21112 (mips_breakpoint, mips_breakpoint_at): Use int.
21113 (mips_collect_register, mips_supply_register)
21114 (mips_collect_register_32bit, mips_supply_register_32bit)
21115 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
21116 (mips_store_fpregset, target_regsets): New.
21117 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
21118
21119 2006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
21120
21121 * configure.srv: Add target "spu*-*-*".
21122 * Makefile.in (clean): Remove reg-spu.c.
21123 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
21124 * spu-low.c: New file.
21125
21126 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21127
21128 * configure.ac: Correct td_thr_tls_get_addr test.
21129 * configure: Regenerated.
21130
21131 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21132
21133 * linux-low.c (linux_wait_for_event): Reformat. Use the
21134 pass_signals array.
21135 * remote-utils.c (decode_address_to_semicolon): New.
21136 * server.c (pass_signals, handle_general_set): New.
21137 (handle_query): Mention QPassSignals for qSupported.
21138 (main): Call handle_general_set.
21139 * server.h (pass_signals, decode_address_to_semicolon): New.
21140
21141 2006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
21142
21143 * server.c (handle_query): Correct error handling for read_auxv.
21144
21145 2005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
21146
21147 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
21148 and srv_linux_thread_db to yes.
21149 * linux-s390-low.c (s390_fill_gregset): New function.
21150 (target_regsets): Define data structure.
21151
21152 2006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
21153
21154 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
21155 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
21156 * config.in, configure: Regenerated.
21157 * inferiors.c (gdb_id_to_thread): New function.
21158 (gdb_id_to_thread_id): Use it.
21159 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
21160 * linux-low.h (struct process_info): Add th member.
21161 (thread_db_get_tls_address): New prototype.
21162 * remote-utils.c (decode_address): Make non-static.
21163 * server.c (handle_query): Handle qGetTLSAddr.
21164 * server.h (gdb_id_to_thread, decode_address): New prototypes.
21165 * target.h (struct target_ops): Add get_tls_address.
21166 * thread-db.c (maybe_attach_thread): Save the thread handle.
21167 (thread_db_get_tls_address): New.
21168
21169 2006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
21170
21171 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
21172 (linux_resume_one_process): Take a siginfo_t *. Update all
21173 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
21174 (struct pending_signals): Add a siginfo_t.
21175 (linux_wait_for_process): Always set last_status.
21176 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
21177 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
21178 * linux-low.h (struct process_info): Add last_status.
21179
21180 2006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
21181
21182 * remote-utils.c (try_rle): New function.
21183 (putpkt_binary): Use it.
21184
21185 2006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
21186
21187 * Makefile.in (clean): Clean reg-x86-64-linux.c.
21188 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
21189 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
21190 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
21191 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
21192 point registers.
21193
21194 2006-08-08 Richard Sandiford <richard@codesourcery.com>
21195
21196 * server.c (terminal_fd): New variable.
21197 (old_foreground_pgrp): Likewise.
21198 (restore_old_foreground_pgrp): New function.
21199 (start_inferior): Record the terminal file descriptor in terminal_fd
21200 and its original foreground group in old_foreground_pgrp. Register
21201 restore_old_foreground_pgrp with atexit().
21202
21203 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
21204
21205 * server.c (handle_query): Correct qPart to qXfer.
21206
21207 2006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
21208
21209 * configure.ac: Check for more headers which are missing on
21210 Windows. Automatically supply -lwsock32 and USE_WIN32API.
21211 * configure.srv: Add Cygwin and mingw32.
21212 * remote-utils.c: Don't include headers unconditionally which
21213 are missing on mingw32. Include <winsock.h> for mingw32.
21214 (remote_open): Adjust for mingw32 support. Flush
21215 standard error after writing to it.
21216 (remote_close, putpkt_binary, input_interrupt, block_async_io)
21217 (unblock_async_io, enable_async_io, disable_async_io)
21218 (readchar, getpkt): Update for Winsock support.
21219 (prepare_resume_reply): Expect a protocol signal number.
21220 * server.c: Disable <sys/wait.h> on mingw32.
21221 (start_inferior): Adjust for mingw32 support. Flush
21222 standard error after writing to it.
21223 (attach_inferior): Likewise. Use protocol signal
21224 numbers.
21225 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
21226 and names.
21227 * win32-i386-low.c: New file.
21228 * Makefile.in (XM_CLIBS): Set.
21229 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
21230 (win32-i386-low.o): New dependency rule.
21231 * linux-low.c (linux_wait): Use target signal numbers.
21232 * target.h (struct target_ops): Doc fix.
21233 * server.h (target_signal_to_name): New prototype.
21234 * gdbreplay.c: Don't include headers unconditionally which
21235 are missing on mingw32. Include <winsock.h> for mingw32.
21236 (remote_close, remote_open): Adjust for Winsock support.
21237 * configure, config.in: Regenerated.
21238
21239 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
21240
21241 * server.c (decode_xfer_read, write_qxfer_response): New.
21242 (handle_query): Take a packet length argument. Handle
21243 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
21244 the qSupported response.
21245 (main): Update call to handle_query.
21246
21247 2006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
21248
21249 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
21250 (putpkt_binary): Renamed from putpkt and adjusted for binary
21251 data.
21252 (putpkt): New wrapper for putpkt_binary.
21253 (readchar): Don't mask off the high bit.
21254 (decode_X_packet): New function.
21255 * server.c (main): Call putpkt_binary if a handler sets the packet
21256 length. Save the length of the incoming packet. Handle 'X'.
21257 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
21258
21259 2006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
21260
21261 * server.c (handle_query): Handle qSupported.
21262
21263 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21264
21265 * remote-utils.c (all_symbols_looked_up): New variable.
21266 (look_up_one_symbol): Check it.
21267 * server.h (look_up_one_symbol): New declaration.
21268 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
21269
21270 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21271
21272 * Makefile.in (linux-arm-low.o): Update dependencies.
21273 * linux-arm-low.c: Include "gdb_proc_service.h".
21274 (PTRACE_GET_THREAD_AREA): Define.
21275 (ps_get_thread_area): New function.
21276
21277 2006-05-09 Nathan Sidwell <nathan@codesourcery.com>
21278
21279 * configure.srv (m68k*-*-uclinux*): New target.
21280 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
21281 (linux_resume_one_process): Remove extraneous cast.
21282 (linux_read_offsets): New.
21283 (linux_target_op): Add linux_read_offsets on mmuless systems.
21284 * server.c (handle_query): Add qOffsets logic.
21285 * target.h (struct target_ops): Add read_offsets.
21286
21287 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21288
21289 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
21290 (PTRACE_GET_THREAD_AREA): Define.
21291 (ps_get_thread_area): New function.
21292 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
21293 (linux-x86-64-low.o): Update.
21294
21295 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21296
21297 * configure.ac: Remove checks for prfpregset_t.
21298 * gdb_proc_service.h: New file.
21299 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
21300 new "gdb_proc_service.h".
21301 * proc-service.c: Likewise.
21302 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
21303 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
21304 * Makefile.in (gdb_proc_service_h): Updated.
21305 * configure, config.in: Regenerated.
21306
21307 2006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21308
21309 * remote-utils.c (prepare_resume_reply): Move declaration
21310 of gdb_id_from_wait to the top of the block.
21311
21312 2006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
21313
21314 * linux-low.c (regsets_store_inferior_registers): Read the regset
21315 from the target before filling it.
21316
21317 2006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21318
21319 * server.c (attach_inferior): Return SIGTRAP for a successful
21320 attach.
21321
21322 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
21323
21324 * Makefile.in (OBS): Add version.o.
21325 (STAGESTUFF): Delete.
21326 (version.o): Add dependencies.
21327 (version.c): Replace rule.
21328 (clean): Remove version.c.
21329 * server.c (gdbserver_version): New.
21330 (gdbserver_usage): Use printf.
21331 (main): Handle --version and --help.
21332 * server.h (version, host_name): Add declarations.
21333
21334 2005-12-23 Eli Zaretskii <eliz@gnu.org>
21335
21336 * linux-arm-low.c:
21337 * linux-arm-low.c:
21338 * inferiors.c:
21339 * i387-fp.h:
21340 * i387-fp.c:
21341 * gdbreplay.c:
21342 * regcache.c:
21343 * proc-service.c:
21344 * mem-break.h:
21345 * mem-break.c:
21346 * linux-x86-64-low.c:
21347 * linux-sh-low.c:
21348 * linux-s390-low.c:
21349 * linux-ppc64-low.c:
21350 * linux-ppc-low.c:
21351 * linux-mips-low.c:
21352 * linux-m68k-low.c:
21353 * linux-m32r-low.c:
21354 * linux-low.h:
21355 * linux-low.c:
21356 * linux-ia64-low.c:
21357 * linux-i386-low.c:
21358 * linux-crisv32-low.c:
21359 * thread-db.c:
21360 * terminal.h:
21361 * target.h:
21362 * target.c:
21363 * server.h:
21364 * server.c:
21365 * remote-utils.c:
21366 * regcache.h:
21367 * utils.c:
21368 * Makefile.in:
21369 * configure.ac:
21370 * gdbserver.1: Add (C) after Copyright. Update the FSF
21371 address.
21372
21373 2005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
21374
21375 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
21376 (arm_breakpoint_at): Recognize both breakpoints.
21377 (the_low_target): Use the correct breakpoint instruction.
21378
21379 2005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
21380
21381 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
21382 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
21383 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
21384 (the_low_target): Update.
21385
21386 2005-10-25 Andreas Schwab <schwab@suse.de>
21387
21388 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
21389
21390 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
21391 (ia64_num_regs): Reduce to 462.
21392
21393 2005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
21394
21395 * acinclude.m4: Correct quoting.
21396 * aclocal.m4: Regenerated.
21397
21398 Suggested by SZOKOVACS Robert <szo@ies.hu>:
21399 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
21400 (thread_db_init): Call thread_db_err_str.
21401 * configure.ac: Check for TD_VERSION.
21402 * config.in, configure: Regenerated.
21403
21404 2005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21405
21406 * server.h (error, fatal, warning): Add ATTR_FORMAT.
21407
21408 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21409
21410 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
21411 is not available. Define HAVE_PTRACE_GETREGS if it is.
21412 * config.in, configure: Regenerated.
21413 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
21414 * linux-i386-low.c, linux-m68k-low.c: Update to use
21415 HAVE_PTRACE_GETREGS.
21416 * linux-low.c (regsets_fetch_inferior_registers)
21417 (regsets_store_inferior_registers): Only return 0 if we processed
21418 GENERAL_REGS.
21419 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
21420 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
21421
21422 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21423
21424 * inferiors.c (struct thread_info): Add gdb_id.
21425 (add_thread): Add gdb_id argument.
21426 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
21427 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
21428 calls to add_thread.
21429 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
21430 * server.c (handle_query): Use thread_to_gdb_id.
21431 (handle_v_cont, main): Use gdb_id_to_thread_id.
21432 * server.h (add_thread): Update prototype.
21433 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
21434 prototypes.
21435
21436 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21437
21438 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
21439 left-padded registers.
21440 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
21441 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
21442
21443 2005-07-01 Steve Ellcey <sje@cup.hp.com>
21444
21445 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
21446 * configure: Regenerate.
21447 * config.in: Regenerate.
21448 * server.h (NEED_DECLARATION_STRERROR):
21449 Replace with !HAVE_DECL_STRERROR.
21450
21451 2005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
21452
21453 * linux-low.c (linux_wait, linux_send_signal): Don't test
21454 an unsigned long variable for > 0 if it could be MAX_ULONG.
21455 * server.c (myresume): Likewise.
21456 * target.c (set_desired_inferior): Likewise.
21457
21458 2005-06-13 Mark Kettenis <kettenis@gnu.org>
21459
21460 * configure.ac: Simplify and improve check for socklen_t.
21461 * configure, config.in: Regenerate.
21462
21463 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
21464
21465 * acconfig.h: Remove.
21466 * configure.ac: Add a test for socklen_t. Use three-argument
21467 AC_DEFINE throughout.
21468 * config.in: Regenerated using autoheader 2.59.
21469 * configure: Regenerated.
21470
21471 * gdbreplay.c (socklen_t): Provide a default.
21472 (remote_open): Use socklen_t.
21473 * remote-utils.c (socklen_t): Provide a default.
21474 (remote_open): Use socklen_t.
21475 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
21476 unsigned char.
21477
21478 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
21479 char for buffers.
21480 * linux-low.c (linux_read_memory, linux_write_memory)
21481 (linux_read_auxv): Likewise.
21482 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
21483 (check_mem_write): Likewise.
21484 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
21485 Likewise.
21486 * regcache.c (struct inferior_rgcache_data, registers_to_string)
21487 (registers_from_string, register_data): Likewise.
21488 * server.c (handle_query, main): Likewise.
21489 * server.h (convert_ascii_to_int, convert_int_to_ascii)
21490 (decode_M_packet): Likewise.
21491 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
21492 * target.h (struct target_ops): Update read_memory, write_memory,
21493 and read_auxv.
21494 (read_inferior_memory, write_inferior_memory): Update.
21495 * linux-low.h (struct linux_target_ops): Change type of breakpoint
21496 to unsigned char *.
21497 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
21498 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
21499 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
21500 linux-s390-low.c, linux-sh-low.c: Update for changes in
21501 read_inferior_memory and the_low_target->breakpoint.
21502
21503 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
21504
21505 * Makefile.in (SFILES): Add linux-ppc64-low.c.
21506 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
21507 * configure.srv: Add powerpc64-*-linux*.
21508 * linux-ppc64-low.c: New file.
21509
21510 2005-05-23 Orjan Friberg <orjanf@axis.com>
21511
21512 * linux-cris-low.c: New file with support for CRIS.
21513 * linux-crisv32-low.c: Ditto for CRISv32.
21514 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
21515 (clean): Add reg-cris.c and reg-crisv32.c.
21516 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
21517 reg-crisv32.o, and reg-crisv32.c to make rules.
21518 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
21519 recognized targets.
21520
21521 2005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
21522
21523 * linux-low.c (fetch_register): Ensure buffer size is a multiple
21524 of sizeof (PTRACE_XFER_TYPE).
21525 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
21526
21527 2005-05-12 Orjan Friberg <orjanf@axis.com>
21528
21529 * target.h (struct target_ops): Add insert_watchpoint,
21530 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
21531 pointers for hardware watchpoint support.
21532 * linux-low.h (struct linux_target_ops): Ditto.
21533 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
21534 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
21535 to linux_target_ops.
21536 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
21537 reply packet.
21538 * server.c (main): Recognize 'Z' and 'z' packets.
21539
21540 2005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
21541
21542 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
21543 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
21544 (the_low_target): Add new members.
21545
21546 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21547
21548 * proc-service.c (ps_lgetregs): Search all_processes instead of
21549 all_threads.
21550
21551 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21552
21553 * server.c (start_inferior): Change return type to int.
21554 (attach_inferior): Change sigptr to int *.
21555 (handle_v_cont, handle_v_requests): Change signal to int *.
21556 (main): Change signal to int.
21557
21558 2005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
21559
21560 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
21561 * configure.srv: Add m32r*-*-linux*.
21562 * linux-m32r-low.c: New file.
21563
21564 2005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
21565
21566 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
21567
21568 2005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21569
21570 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
21571 Take unsigned long arguments for PIDs.
21572 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
21573 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
21574 (wait_for_sigstop, linux_resume_one_process)
21575 (regsets_fetch_inferior_registers, linux_send_signal)
21576 (linux_read_auxv): Likewise. Update the types of variables holding
21577 PIDs. Update format string specifiers.
21578 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
21579 * remote-utils.c (prepare_resume_reply): Likewise.
21580 * server.c (cont_thread, general_thread, step_thread)
21581 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
21582 unsigned long.
21583 (handle_query): Update format specifiers.
21584 (handle_v_cont, main): Use strtoul for thread IDs.
21585 * server.h (struct inferior_list_entry): Use unsigned long for ID.
21586 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
21587 (general_thread, step_thread, thread_from_wait)
21588 (old_thread_from_wait): Update.
21589 * target.h (struct thread_resume): Use unsigned long for THREAD.
21590 (struct target_ops): Use unsigned long for arguments to attach and
21591 thread_alive.
21592
21593 2005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
21594
21595 * acinclude.m4: Include bfd/bfd.m4 directly.
21596 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
21597 <agriffis@toolchain.org>.
21598 * aclocal.m4, configure: Regenerated.
21599
21600 2005-01-07 Andrew Cagney <cagney@gnu.org>
21601
21602 * configure.ac: Rename configure.in, require autoconf 2.59.
21603 * configure: Re-generate.
21604
21605 2004-12-08 Daniel Jacobowitz <dan@debian.org>
21606
21607 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
21608 LIBS when finished.
21609 * aclocal.m4: Regenerated.
21610 * configure: Regenerated.
21611
21612 2004-11-21 Andreas Schwab <schwab@suse.de>
21613
21614 * linux-m68k-low.c (m68k_num_gregs): Define.
21615 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
21616 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
21617 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
21618 (m68k_breakpoint_at): New. Add to the_low_target.
21619
21620 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
21621 srv_linux_thread_db to yes.
21622
21623 2004-10-20 Joel Brobecker <brobecker@gnat.com>
21624
21625 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
21626 (ARCH_SET_FS): Likewise.
21627 (ARCH_GET_FS): Likewise.
21628 (ARCH_GET_GS): Likewise.
21629
21630 2004-10-16 Daniel Jacobowitz <dan@debian.org>
21631
21632 * linux-i386-low.c (ps_get_thread_area): New.
21633 * linux-x86-64-low.c (ps_get_thread_area): New.
21634 * linux-low.c: Include <sys/syscall.h>.
21635 (linux_kill_one_process): Don't kill the first thread here.
21636 (linux_kill): Kill the first thread here.
21637 (kill_lwp): New function.
21638 (send_sigstop, linux_send_signal): Use it.
21639 * proc-service.c: Clean up #ifdefs.
21640 (fpregset_info): Delete.
21641 (ps_lgetregs): Update and enable implementation.
21642 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
21643 implementations.
21644 * remote-utils.c (struct sym_cache, symbol_cache): New.
21645 (input_interrupt): Print a clearer message.
21646 (async_io_enabled): New variable.
21647 (enable_async_io, disable_async_io): Use it. Update comments.
21648 (look_up_one_symbol): Use the symbol cache.
21649 * thread-db.c (thread_db_look_up_symbols): New function.
21650 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
21651
21652 2004-10-16 Daniel Jacobowitz <dan@debian.org>
21653
21654 * configure.in: Test for -rdynamic.
21655 * configure: Regenerated.
21656 * Makefile (INTERNAL_LDFLAGS): New.
21657 (gdbserver, gdbreplay): Use it.
21658
21659 2004-09-02 Andrew Cagney <cagney@gnu.org>
21660
21661 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
21662
21663 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
21664
21665 * linux-low.c (linux_wait): Clear all_processes list also.
21666
21667 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
21668
21669 * linux-low.c: Include <errno.h>. Remove extern declaration of
21670 errno.
21671
21672 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
21673
21674 * gdbreplay.c, server.h, utils.c: Update copyright years.
21675
21676 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21677
21678 * server.c (main): Print child status or termination signal from
21679 variable 'signal', not 'sig'.
21680
21681 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21682
21683 * linux-low.c (linux_read_memory): Change return type to
21684 int. Check for and return error from ptrace().
21685 * target.c (read_inferior_memory): Change return type to int. Pass
21686 back return status from the_target->read_memory().
21687 * target.h (struct target_ops): Adapt *read_memory() prototype.
21688 Update comment.
21689 (read_inferior_memory): Adapt prototype.
21690 * server.c (main): Return an error packet if
21691 read_inferior_memory() returns an error.
21692
21693 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
21694
21695 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
21696 Unify with other clean targets.
21697
21698 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21699
21700 * server.c (handle_v_cont): Call set_desired_inferior.
21701
21702 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21703
21704 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
21705
21706 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21707
21708 * linux-low.c (linux_wait): Unblock async I/O.
21709 (linux_resume): Block and enable async I/O.
21710 * remote-utils.c (block_async_io, unblock_async_io): New functions.
21711 * server.h (block_async_io, unblock_async_io): Add prototypes.
21712
21713 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21714
21715 * remote-utils.c (remote_open): Print a status notice after
21716 opening a TCP port.
21717 * server.c (attach_inferior): Print a status notice after
21718 attaching.
21719
21720 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21721
21722 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
21723
21724 2004-02-26 Daniel Jacobowitz <drow@mvista.com>
21725
21726 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
21727 error packet.
21728 * server.c, target.h: Update copyright years.
21729
21730 2004-02-25 Roland McGrath <roland@redhat.com>
21731
21732 * target.h (struct target_ops): New member `read_auxv'.
21733 * server.c (handle_query): Handle qPart:auxv:read: query using that.
21734 * linux-low.c (linux_read_auxv): New function.
21735 (linux_target_ops): Initialize `read_auxv' member to that.
21736
21737 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21738
21739 Committed by Jim Blandy <jimb@redhat.com>.
21740
21741 * linux-s390-low.c (s390_num_regs): Update.
21742 (s390_regmap): Remove control registers. Use __s390x__ predefine
21743 instead of GPR_SIZE to distiguish s390 and s390x targets.
21744
21745 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
21746
21747 * linux-low.c: Update copyright year.
21748 (check_removed_breakpoint): Clear pending_is_breakpoint.
21749 (linux_set_resume_request, linux_queue_one_thread)
21750 (resume_status_pending_p): New functions.
21751 (linux_continue_one_thread): Use process->resume.
21752 (linux_resume): Only resume threads if there are no pending events.
21753 * linux-low.h (struct process_info): Add resume request
21754 pointer.
21755
21756 2004-01-30 Daniel Jacobowitz <drow@mvista.com>
21757
21758 * regcache.c (new_register_cache): Clear the allocated register
21759 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
21760
21761 2003-10-13 Daniel Jacobowitz <drow@mvista.com>
21762
21763 * linux-low.c (linux_resume): Take a struct thread_resume *
21764 argument.
21765 (linux_wait): Update call.
21766 (resume_ptr): New static variable.
21767 (linux_continue_one_thread): Renamed from
21768 linux_continue_one_process. Use resume_ptr.
21769 (linux_resume): Use linux_continue_one_thread.
21770 * server.c (handle_v_cont, handle_v_requests): New functions.
21771 (myresume): New function.
21772 (main): Handle 'v' case.
21773 * target.h (struct thread_resume): New type.
21774 (struct target_ops): Change argument of "resume" to struct
21775 thread_resume *.
21776 (myresume): Delete macro.
21777
21778 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
21779
21780 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
21781 (uninstall): Support DESTDIR.
21782
21783 Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
21784
21785 * configure.srv: Add xscale*linux copy of arm*linux entry.
21786
21787 2003-07-24 Daniel Jacobowitz <drow@mvista.com>
21788
21789 * linux-arm-low.c (arm_reinsert_addr): New function.
21790 (the_low_target): Add arm_reinsert_addr.
21791
21792 2003-07-08 Mark Kettenis <kettenis@gnu.org>
21793
21794 * mem-break.c: Remove whitespace at end of file.
21795
21796 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
21797
21798 * configure.in: Check whether we need to prototype strerror.
21799 * server.h: Optionally prototype strerror.
21800 * gdbreplay.c (perror_with_name): Use strerror.
21801 * linux-low.c (linux_attach_lwp): Use strerror.
21802 * utils.c (perror_with_name): Use strerror.
21803 * config.in, configure: Regenerated.
21804
21805 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
21806
21807 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
21808 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
21809
21810 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
21811
21812 * Makefile.in (SFILES): Update.
21813 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
21814 low-sun3.c: Remove files.
21815
21816 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
21817
21818 * linux-low.c: Move comment to linux_thread_alive where it belonged.
21819 (linux_detach_one_process, linux_detach): New functions.
21820 (linux_target_ops): Add linux_detach.
21821 * server.c (main): Handle 'D' packet.
21822 * target.h (struct target_ops): Add "detach" member.
21823 (detach_inferior): Define.
21824
21825 2003-06-13 Mark Kettenis <kettenis@gnu.org>
21826
21827 From Kelley Cook <kelleycook@wideopenwest.com>:
21828 * configure.srv: Accept i[34567]86 variants.
21829
21830 2003-06-05 Daniel Jacobowitz <drow@mvista.com>
21831
21832 * linux-low.c (linux_wait_for_event): Correct comment typos.
21833 (linux_resume_one_process): Call check_removed_breakpoint.
21834 (linux_send_signal): New function.
21835 (linux_target_ops): Add linux_send_signal.
21836 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
21837 of kill.
21838 * target.h (struct target_ops): Add send_signal.
21839
21840 2003-05-29 Jim Blandy <jimb@redhat.com>
21841
21842 * linux-low.c (usr_store_inferior_registers): Transfer buf in
21843 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
21844 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
21845 away part of the register's value.
21846
21847 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
21848
21849 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
21850 (linux_wait_for_event, linux_init_signals): Likewise.
21851
21852 2003-03-17 Daniel Jacobowitz <drow@mvista.com>
21853
21854 * configure.in: Check for stdlib.h.
21855 * configure: Regenerated.
21856 * config.in: Regenerated.
21857
21858 2003-01-04 Andreas Schwab <schwab@suse.de>
21859
21860 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
21861
21862 2003-01-02 Andrew Cagney <ac131313@redhat.com>
21863
21864 * Makefile.in: Remove obsolete code.
21865
21866 2002-11-20 Daniel Jacobowitz <drow@mvista.com>
21867
21868 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
21869 defined(PT_FPR0_HI).
21870
21871 2002-11-17 Stuart Hughes <seh@zee2.com>
21872
21873 * linux-arm-low.c (arm_num_regs): Increase.
21874 (arm_regmap): Include status register.
21875
21876 2002-11-17 Daniel Jacobowitz <drow@mvista.com>
21877
21878 * linux-low.c (register_addr): Remove incorrect -1 check.
21879
21880 2002-08-29 Daniel Jacobowitz <drow@mvista.com>
21881
21882 * linux-low.c (linux_create_inferior): Call setpgid. Return
21883 the new PID.
21884 (unstopped_p, linux_signal_pid): Remove.
21885 (linux_target_ops): Remove linux_signal_pid.
21886 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
21887 global instead of target method.
21888 * target.h (struct target_ops): Remove signal_pid. Update comment
21889 for create_inferior.
21890 * server.c (signal_pid): New variable.
21891 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
21892 gdbserver. Set the child to be the foreground process group.
21893 (attach_inferior): Set signal_pid.
21894
21895 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
21896
21897 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
21898
21899 2002-08-20 Jim Blandy <jimb@redhat.com>
21900
21901 * Makefile.in (LDFLAGS): Allow the configure script to establish a
21902 default for this.
21903
21904 2002-08-01 Andrew Cagney <cagney@redhat.com>
21905
21906 * Makefile.in: Make chill references obsolete.
21907
21908 2002-07-24 Kevin Buettner <kevinb@redhat.com>
21909
21910 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
21911 * configure: Regenerate.
21912 * config.in: Regenerate.
21913
21914 2002-07-09 David O'Brien <obrien@FreeBSD.org>
21915
21916 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
21917 (perror_with_name, remote_close, remote_open, expect, play): Static.
21918
21919 2002-07-04 Michal Ludvig <mludvig@suse.cz>
21920
21921 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
21922 byte offsets instead of an array of indexes.
21923 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
21924
21925 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
21926
21927 * regcache.c: Add comment.
21928
21929 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
21930
21931 * thread-db.c: New file.
21932 * proc-service.c: New file.
21933 * acinclude.m4: New file.
21934 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
21935 proc-service.o, and thread-db.o.
21936 (linux-low.o): Add USE_THREAD_DB.
21937 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
21938 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
21939 * aclocal.m4: Regenerated.
21940 * config.in: Regenerated.
21941 * configure: Regenerated.
21942 * configure.in: Check for proc_service.h, sys/procfs.h,
21943 thread_db.h, and linux/elf.h headrs.
21944 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
21945 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
21946 Check for -lthread_db and thread support.
21947 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
21948 PowerPC, and SuperH.
21949 * i387-fp.c: Constify arguments.
21950 * i387-fp.h: Likewise.
21951 * inferiors.c: (struct thread_info): Renamed from
21952 `struct inferior_info'. Remove PID member. Use generic inferior
21953 list header. All uses updated.
21954 (inferiors, signal_pid): Removed.
21955 (all_threads): New variable.
21956 (get_thread): Define.
21957 (add_inferior_to_list): New function.
21958 (for_each_inferior): New function.
21959 (change_inferior_id): New function.
21960 (add_inferior): Removed.
21961 (remove_inferior): New function.
21962 (add_thread): New function.
21963 (free_one_thread): New function.
21964 (remove_thread): New function.
21965 (clear_inferiors): Use for_each_inferior and free_one_thread.
21966 (find_inferior): New function.
21967 (find_inferior_id): New function.
21968 (inferior_target_data): Update argument type.
21969 (set_inferior_target_data): Likewise.
21970 (inferior_regcache_data): Likewise.
21971 (set_inferior_regcache_data): Likewise.
21972 * linux-low.c (linux_bp_reinsert): Remove.
21973 (all_processes, stopping_threads, using_thrads)
21974 (struct pending_signals, debug_threads, pid_of): New.
21975 (inferior_pid): Replace with macro.
21976 (struct inferior_linux_data): Remove.
21977 (get_stop_pc, add_process): New functions.
21978 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
21979 Use add_process and add_thread.
21980 (linux_attach_lwp): New function, based on old linux_attach. Use
21981 add_process and add_thread. Set stop_expected for new threads.
21982 (linux_attach): New function.
21983 (linux_kill_one_process): New function.
21984 (linux_kill): Kill all LWPs.
21985 (linux_thread_alive): Use find_inferior_id.
21986 (check_removed_breakpoints, status_pending_p): New functions.
21987 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
21988 Update. Use WNOHANG. Wait for cloned processes also. Update process
21989 struct for the found process.
21990 (linux_wait_for_event): New function.
21991 (linux_wait): Use it. Support LWPs.
21992 (send_sigstop, wait_for_sigstop, stop_all_processes)
21993 (linux_resume_one_process, linux_continue_one_process): New functions.
21994 (linux_resume): Support LWPs.
21995 (REGISTER_RAW_SIZE): Remove.
21996 (fetch_register): Use register_size instead. Call supply_register.
21997 (usr_store_inferior_registers): Likewise. Call collect_register.
21998 Fix recursive case.
21999 (regsets_fetch_inferior_registers): Improve error message.
22000 (regsets_store_inferior_registers): Add debugging.
22001 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
22002 (unstopped_p, linux_signal_pid): New functions.
22003 (linux_target_ops): Add linux_signal_pid.
22004 (linux_init_signals): New function.
22005 (initialize_low): Call it. Initialize using_threads.
22006 * regcache.c (inferior_regcache_data): Add valid
22007 flag.
22008 (get_regcache): Fetch registers lazily. Add fetch argument
22009 and update all callers.
22010 (regcache_invalidate_one, regcache_invalidate): New
22011 functions.
22012 (new_register_cache): Renamed from create_register_cache.
22013 Return the new regcache.
22014 (free_register_cache): Change argument to a void *.
22015 (registers_to_string, registers_from_string): Call get_regcache
22016 with fetch flag set.
22017 (register_data): Make static. Pass fetch flag to get_regcache.
22018 (supply_register): Call get_regcache with fetch flag clear.
22019 (collect_register): Call get_regcache with fetch flag set.
22020 (collect_register_as_string): New function.
22021 * regcache.h: Update.
22022 * remote-utils.c (putpkt): Flush after debug output and use
22023 stderr.
22024 Handle input interrupts while waiting for an ACK.
22025 (input_interrupt): Use signal_pid method.
22026 (getpkt): Flush after debug output and use stderr.
22027 (outreg): Use collect_register_as_string.
22028 (new_thread_notify, dead_thread_notify): New functions.
22029 (prepare_resume_reply): Check using_threads. Set thread_from_wait
22030 and general_thread.
22031 (look_up_one_symbol): Flush after debug output.
22032 * server.c (step_thread, server_waiting): New variables.
22033 (start_inferior): Don't use signal_pid. Update call to mywait.
22034 (attach_inferior): Update call to mywait.
22035 (handle_query): Handle qfThreadInfo and qsThreadInfo.
22036 (main): Don't fetch/store registers explicitly. Use
22037 set_desired_inferior. Support proposed ``Hs'' packet. Update
22038 calls to mywait.
22039 * server.h: Update.
22040 (struct inferior_list, struct_inferior_list_entry): New.
22041 * target.c (set_desired_inferior): New.
22042 (write_inferior_memory): Constify.
22043 (mywait): New function.
22044 * target.h: Update.
22045 (struct target_ops): New signal_pid method.
22046 (mywait): Removed macro, added prototype.
22047
22048 * linux-low.h (regset_func): Removed.
22049 (regset_fill_func, regset_store_func): New.
22050 (enum regset_type): New.
22051 (struct regset_info): Add type field. Use new operation types.
22052 (struct linux_target_ops): stop_pc renamed to get_pc.
22053 Add decr_pc_after_break and breakpoint_at.
22054 (get_process, get_thread_proess, get_process_thread)
22055 (strut process_info, all_processes, linux_attach_lwp)
22056 (thread_db_init): New.
22057
22058 * linux-arm-low.c (arm_get_pc, arm_set_pc,
22059 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
22060 (the_low_target): Add new members.
22061 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
22062 (i386_store_fpxregset): Constify.
22063 (target_regsets): Add new kind identifier.
22064 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
22065 (i386_set_pc): Add debugging.
22066 (i386_breakpoint_at): New function.
22067 (the_low_target): Add new members.
22068 * linux-mips-low.c (mips_get_pc, mips_set_pc)
22069 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
22070 (mips_breakpoint_at): New.
22071 (the_low_target): Add new members.
22072 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
22073 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
22074 (the_low_target): Add new members.
22075 * linux-sh-low.c (sh_get_pc, sh_set_pc)
22076 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
22077 (the_low_target): Add new members.
22078 * linux-x86-64-low.c (target_regsets): Add new kind
22079 identifier.
22080
22081 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
22082
22083 From Martin Pool <mbp@samba.org>:
22084 * server.c (gdbserver_usage): New function.
22085 (main): Call it.
22086
22087 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
22088
22089 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
22090 stop_at -> stop_pc.
22091
22092 2002-05-04 Andrew Cagney <ac131313@redhat.com>
22093
22094 * Makefile.in: Remove obsolete code.
22095
22096 2002-04-24 Michal Ludvig <mludvig@suse.cz>
22097
22098 * linux-low.c (regsets_fetch_inferior_registers),
22099 (regsets_store_inferior_registers): Removed cast to int from
22100 ptrace() calls.
22101 * regcache.h: Added declaration of struct inferior_info.
22102
22103 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
22104
22105 * inferiors.c (struct inferior_info): Add regcache_data.
22106 (add_inferior): Call create_register_cache.
22107 (clear_inferiors): Call free_register_cache.
22108 (inferior_regcache_data, set_inferior_regcache_data): New functions.
22109 * regcache.c (struct inferior_regcache_data): New.
22110 (registers): Remove.
22111 (get_regcache): New function.
22112 (create_register_cache, free_register_cache): New functions.
22113 (set_register_cache): Don't initialize the register cache here.
22114 (registers_to_string, registers_from_string, register_data): Call
22115 get_regcache.
22116 * regcache.h: Add prototypes.
22117 * server.h: Likewise.
22118
22119 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
22120
22121 * mem-break.c: New file.
22122 * mem-break.h: New file.
22123 * Makefile.in: Add mem-break.o rule; update server.h
22124 dependencies.
22125 * inferiors.c (struct inferior_info): Add target_data
22126 member.
22127 (clear_inferiors): Free target_data member if set.
22128 (inferior_target_data, set_inferior_target_data): New functions.
22129 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
22130 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
22131 * linux-low.c (linux_bp_reinsert): New variable.
22132 (struct inferior_linux_data): New.
22133 (linux_create_inferior): Use set_inferior_target_data.
22134 (linux_attach): Likewise. Call add_inferior.
22135 (linux_wait_for_one_inferior): New function.
22136 (linux_wait): Call it.
22137 (linux_write_memory): Add const.
22138 (initialize_low): Call set_breakpoint_data.
22139 * linux-low.h (struct linux_target_ops): Add breakpoint
22140 handling members.
22141 * server.c (attach_inferior): Remove extra add_inferior
22142 call.
22143 * server.h: Include mem-break.h. Update inferior.c
22144 prototypes.
22145 * target.c (read_inferior_memory)
22146 (write_inferior_memory): New functions.
22147 * target.h (read_inferior_memory)
22148 (write_inferior_memory): Change macros to prototypes.
22149 (struct target_ops): Update comments. Add const to write_memory
22150 definition.
22151
22152 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
22153
22154 * linux-low.c (usr_store_inferior_registers): Support
22155 registers which are allowed to fail to store.
22156 * linux-low.h (linux_target_ops): Likewise.
22157 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
22158 (ppc_cannot_store_register): FPSCR may not be storable.
22159
22160 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22161
22162 * server.h: Include <string.h> if HAVE_STRING_H.
22163 * ChangeLog: Correct paths in last ChangeLog entry.
22164
22165 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22166
22167 * linux-low.h: Remove obsolete prototypes.
22168 (struct linux_target_ops): New.
22169 (extern the_low_target): New.
22170 * linux-low.c (num_regs, regmap): Remove declarations.
22171 (register_addr): Use the_low_target explicitly.
22172 (fetch_register): Likewise.
22173 (usr_fetch_inferior_registers): Likewise.
22174 (usr_store_inferior_registers): Likewise.
22175 * linux-arm-low.c (num_regs): Remove.
22176 (arm_num_regs): Define.
22177 (arm_regmap): Renamed from regmap, made static.
22178 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
22179 made static.
22180 (arm_cannot_store_register): Renamed from cannot_store_register,
22181 made static.
22182 (the_low_target): New.
22183 * linux-i386-low.c (num_regs): Remove.
22184 (i386_num_regs): Define.
22185 (i386_regmap): Renamed from regmap, made static.
22186 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
22187 made static.
22188 (i386_cannot_store_register): Renamed from cannot_store_register,
22189 made static.
22190 (the_low_target): New.
22191 * linux-ia64-low.c (num_regs): Remove.
22192 (ia64_num_regs): Define.
22193 (ia64_regmap): Renamed from regmap, made static.
22194 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
22195 made static.
22196 (ia64_cannot_store_register): Renamed from cannot_store_register,
22197 made static.
22198 (the_low_target): New.
22199 * linux-m68k-low.c (num_regs): Remove.
22200 (m68k_num_regs): Define.
22201 (m68k_regmap): Renamed from regmap, made static.
22202 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
22203 made static.
22204 (m68k_cannot_store_register): Renamed from cannot_store_register,
22205 made static.
22206 (the_low_target): New.
22207 * linux-mips-low.c (num_regs): Remove.
22208 (mips_num_regs): Define.
22209 (mips_regmap): Renamed from regmap, made static.
22210 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
22211 made static.
22212 (mips_cannot_store_register): Renamed from cannot_store_register,
22213 made static.
22214 (the_low_target): New.
22215 * linux-ppc-low.c (num_regs): Remove.
22216 (ppc_num_regs): Define.
22217 (ppc_regmap): Renamed from regmap, made static.
22218 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
22219 made static.
22220 (ppc_cannot_store_register): Renamed from cannot_store_register,
22221 made static.
22222 (the_low_target): New.
22223 * linux-s390-low.c (num_regs): Remove.
22224 (s390_num_regs): Define.
22225 (s390_regmap): Renamed from regmap, made static.
22226 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
22227 made static.
22228 (s390_cannot_store_register): Renamed from cannot_store_register,
22229 made static.
22230 (the_low_target): New.
22231 * linux-sh-low.c (num_regs): Remove.
22232 (sh_num_regs): Define.
22233 (sh_regmap): Renamed from regmap, made static.
22234 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
22235 made static.
22236 (sh_cannot_store_register): Renamed from cannot_store_register,
22237 made static.
22238 (the_low_target): New.
22239 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
22240 (the_low_target): New.
22241
22242 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22243
22244 * Makefile.in: Add stamp-h target.
22245 * configure.in: Create stamp-h.
22246 * configure: Regenerated.
22247
22248 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22249
22250 * inferiors.c: New file.
22251 * target.c: New file.
22252 * target.h: New file.
22253 * Makefile.in: Add target.o and inferiors.o. Update
22254 dependencies.
22255 * linux-low.c (inferior_pid): New static variable,
22256 moved from server.c.
22257 (linux_create_inferior): Renamed from create_inferior.
22258 Call add_inferior. Return 0 on success instead of a PID.
22259 (linux_attach): Renamed from myattach.
22260 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
22261 (linux_thread_alive): Renamed from mythread_alive.
22262 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
22263 child dies.
22264 (linux_resume): Renamed from myresume. Add missing ``return 0''.
22265 (regsets_store_inferior_registers): Correct error message.
22266 Add missing ``return 0''.
22267 (linux_fetch_registers): Renamed from fetch_inferior_registers.
22268 (linux_store_registers): Renamed from store_inferior_registers.
22269 (linux_read_memory): Renamed from read_inferior_memory.
22270 (linux_write_memory): Renamed from write_inferior_memory.
22271 (linux_target_ops): New structure.
22272 (initialize_low): Call set_target_ops ().
22273 * remote-utils.c (unhexify): New function.
22274 (hexify): New function.
22275 (input_interrupt): Send signals to ``signal_pid''.
22276 * server.c (inferior_pid): Remove.
22277 (start_inferior): Update create_inferior call.
22278 (attach_inferior): Call add_inferior.
22279 (handle_query): New function.
22280 (main): Call handle_query for `q' packets.
22281 * server.h: Include "target.h". Remove obsolete prototypes.
22282 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
22283
22284 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22285
22286 * Makefile.in: Add WARN_CFLAGS. Update configury
22287 dependencies.
22288 * configure.in: Check for <string.h>
22289 * configure: Regenerate.
22290 * config.in: Regenerate.
22291 * gdbreplay.c: Include needed system headers.
22292 (remote_open): Remove strchr prototype.
22293 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
22294 * regcache.c (supply_register): Change buf argument to const void *.
22295 (supply_register_by_name): Likewise.
22296 (collect_register): Change buf argument to void *.
22297 (collect_register_by_name): Likewise.
22298 * regcache.h: Add missing prototypes.
22299 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
22300 * server.c (handle_query): New function.
22301 (attached): New static variable, moved out of main.
22302 (main): Quiet longjmp clobber warnings.
22303 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
22304 * utils.c (error): Remove NORETURN.
22305 (fatal): Likewise.
This page took 0.513934 seconds and 4 git commands to generate.