12020-09-10  Kamil Rytarowski  <n54@gmx.com>
2
3	* netbsd-low.cc: Add.
4	* netbsd-low.h: Likewise.
5	* netbsd-amd64-low.cc: Likewise.
6	* Makefile.in (SFILES): Register "netbsd-low.cc", "netbsd-low.h",
7	"netbsd-amd64-low.cc".
8	* configure.srv: Add x86_64-*-netbsd*.
9
102020-08-13  Simon Marchi  <simon.marchi@polymtl.ca>
11
12	* server.cc (captured_main): Accept multiple `--selftest=`
13	options.  Pass all `--selftest=` arguments to run_tests.
14
152020-07-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16
17	* configure, config.in: Regenerate.
18
192020-07-26  Eli Zaretskii  <eliz@gnu.org>
20
21	* configure.ac (AC_CHECK_HEADERS): Add ws2tcpip.h.
22	When checking whether socklen_t type is defined, use ws2tcpip.h if
23	it is available and sys/socket.h isn't.
24	* configure: Regenerate.
25	* config.in: Regenerate.
26
272020-07-22  Pedro Alves  <pedro@palves.net>
28
29	* inferiors.cc (switch_to_process): New, moved here from
30	thread-db.cc, and made extern.
31	* inferiors.h (switch_to_process): Declare.
32	* server.cc: Include "gdbsupport/scoped_restore.h".
33	(handle_qxfer_threads_proper): Now returns bool.  Prepare to
34	access memory around target calls.
35	(handle_qxfer_threads): Handle errors.
36	* thread-db.cc (switch_to_process): Moved to inferiors.cc.
37
382020-07-21  Simon Marchi  <simon.marchi@efficios.com>
39
40	* linux-low.cc (stopped_pids): Make static.
41
422020-07-17  Andrew Burgess  <andrew.burgess@embecosm.com>
43
44	* tdesc.cc (allocate_target_description): Add header comment.
45	(target_desc_deleter::operator()): New function.
46	* tdesc.h (struct target_desc): Declare as final.
47
482020-07-13  Simon Marchi  <simon.marchi@polymtl.ca>
49
50	* server.cc (handle_query): Use std::vector of
51	std::string for `qsupported` vector.  Use separate
52	vector for unknowns.
53	* target.h (class process_stratum_target) <process_qsupported>:
54	Change parameters to array_view of const char *.
55	(target_process_qsupported): Remove `count` parameter.
56	* target.cc (process_stratum_target::process_qsupported): Change
57	parameters to array_view of const char *.
58	* linux-x86-low.cc (class x86_target) <process_qsupported>:
59	Likewise.
60
612020-06-29  Tom de Vries  <tdevries@suse.de>
62
63	* ax.h: Include gdbsupport/debug_agent.h.
64
652020-06-23  Andrew Burgess  <andrew.burgess@embecosm.com>
66
67	* tdesc.cc (struct tdesc_compatible_info): New struct.
68	(tdesc_compatible_info_list): New function.
69	(tdesc_compatible_info_arch_name): New function.
70
712020-06-22  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
72
73	Use std::list to stop pending signal instead of manually-created
74	linked list.
75	* linux-low.h: Include <list>.
76	(struct pending_signal): Move here from linux-low.cc.
77	(struct lwp_info) <pending_signals>
78	<pending_signals_to_report>: Update the type.
79	* linux-low.cc (struct pending_signals): Remove.
80	(linux_process_target::delete_lwp)
81	(linux_process_target::add_lwp)
82	(enqueue_one_deferred_signal)
83	(dequeue_one_deferred_signal)
84	(enqueue_pending_signal)
85	(linux_process_target::resume_one_lwp_throw)
86	(linux_process_target::thread_needs_step_over)
87	(linux_process_target::resume_one_thread)
88	(linux_process_target::proceed_one_lwp): Update the use of pending
89	signal list.
90
912020-06-17  Simon Marchi  <simon.marchi@efficios.com>
92
93	* Makefile.in (%-generated.cc: ../gdb/regformats/arm/%.dat):
94	Remove.
95
962020-06-12  Simon Marchi  <simon.marchi@efficios.com>
97
98	* Makefile.in (SFILES): Remove win32-arm-low.cc, wincecompat.cc.
99	* configure.srv: Remove mingw32ce cases.
100	* server.h, win32-low.cc: Remove __MINGW32CE__-guarded code.
101	* win32-low.h (to_back_slashes): Remove.
102	* win32-arm-low.cc, wincecompat.cc, wincecompat.h: Remove.
103
1042020-06-12  Simon Marchi  <simon.marchi@efficios.com>
105
106	* Makefile.in (SFILES): linux-tile-low.cc.
107	* configure.srv: Remove tilegx case.
108	* linux-tile-low.cc: Remove.
109
1102020-06-12  Simon Marchi  <simon.marchi@efficios.com>
111
112	* Makefile.in (SFILES): Remove linux-m32r-low.cc.
113	* configure.srv: Remove m32r case.
114	* linux-m32r-low.cc: Remove.
115
1162020-06-12  Simon Marchi  <simon.marchi@efficios.com>
117
118	* Makefile.in (SFILES): Remove linux-cris-low.c.
119	* configure.srv: Remove cris cases.
120	* linux-cris-low.cc, linux-crisv32-low.cc: Remove.
121
1222020-06-12  Simon Marchi  <simon.marchi@efficios.com>
123
124	* Makefile.in (SFILES): Remove linux-bfin-low.c.
125	* configure.srv: Remove bfin case.
126	* linux-bfin-low.cc: Remove.
127	* linux-low.cc: Remove BFIN-conditional code.
128
1292020-06-12  Simon Marchi  <simon.marchi@efficios.com>
130
131	* configure: Re-generate.
132	* configure.ac: Remove srv_qnx test.
133	* configure.srv: Remove nto case.
134	* nto-low.cc, nto-low.h, nto-x86-low.cc: Remove.
135	* remote-utils.c: Remove __QNX__-guarded code.
136
1372020-06-12  Simon Marchi  <simon.marchi@efficios.com>
138
139	* configure: Re-generate.
140	* configure.ac: Remove srv_lynxos test.
141	* configure.srv: Remove lynxos cases.
142	* lynx-i386-low.cc, lynx-low.cc, lynx-low.h, lynx-ppc-low.c:
143	Remove.
144
1452020-06-12  Simon Marchi  <simon.marchi@efficios.com>
146
147	* README: Fix a few outdated or incoherent things.
148
1492020-05-27  Hannes Domani  <ssbssa@yahoo.de>
150
151	* win32-low.cc (do_initial_child_stuff): Set open_process_used.
152	(win32_clear_inferiors): Use open_process_used.
153	(get_child_debug_event): Likewise.
154
1552020-05-25  Michael Weghorn  <m.weghorn@posteo.de>
156
157	PR gdbserver/25893
158	* linux-low.cc (linux_process_target::create_inferior),
159	lynx-low.cc (lynx_process_target::create_inferior),
160	win32-low.cc (win32_process_target::create_inferior): Use
161	construct_inferior_arguments instead of stringify_argv
162	to get string representation which properly escapes
163	special characters.
164	* server.cc (handle_v_run): Just pass empty program arg
165	as such, since any further processing is now handled via
166	construct_inferior_arguments.
167
1682020-05-25  Michael Weghorn  <m.weghorn@posteo.de>
169
170	* nto-low.cc (nto_process_target::create_inferior): Pass
171	argv to spawnp function as char **.
172
1732020-05-25  Michael Weghorn  <m.weghorn@posteo.de>
174
175	* server.cc (captured_main), (handle_v_run): No longer
176	insert extra NULL element to args vector.
177
1782020-05-23  Pedro Alves  <palves@redhat.com>
179
180	* gdb-safe-ctype.h: New.
181
1822020-05-16  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
183
184	* linux-ia64-low.cc (ia64_target::sw_breakpoint_from_kind):
185	Fix incorrect 'gdb_assert_no_reached' to 'gdb_assert_not_reached'.
186	(ia64_target::low_breakpoint_at): Ditto.
187
1882020-05-15  Hannes Domani  <ssbssa@yahoo.de>
189
190	* win32-i386-low.cc (i386_supports_z_point_type): Handle
191	Z_PACKET_HW_BP z_type.
192	(i386_insert_point): Handle raw_bkpt_type type.
193	(i386_remove_point): Likewise.
194
1952020-04-30  Hannes Domani  <ssbssa@yahoo.de>
196
197	* configure.srv <x86_64-*-mingw*, x86_64-*-cygwin*> (srv_tgtobj):
198	Add arch/i386.o.
199	* win32-arm-low.cc (arm_num_regs): New function.
200	(struct win32_target_ops): Use arm_num_regs.
201	* win32-i386-low.cc (win32_get_current_dr): Adapt for WOW64
202	processes.
203	(i386_get_thread_context): Likewise.
204	(i386_prepare_to_resume): Likewise.
205	(i386_thread_added): Likewise.
206	(i386_single_step): Likewise.
207	(i386_fetch_inferior_register): Likewise.
208	(i386_store_inferior_register): Likewise.
209	(i386_arch_setup): Likewise.
210	(i386_win32_num_regs): New function.
211	(struct win32_target_ops): Use i386_win32_num_regs.
212	* win32-low.cc (win32_get_thread_context): Adapt for WOW64
213	processes.
214	(win32_require_context): Likewise.
215	(child_add_thread): Likewise.
216	(do_initial_child_stuff): Likewise.
217	(continue_one_thread): Likewise.
218	(win32_process_target::resume): Likewise.
219	(load_psapi): Likewise.
220	(win32_add_all_dlls): Likewise.
221	(maybe_adjust_pc): Likewise.
222	(win32_process_target::qxfer_siginfo): Likewise.
223	(initialize_low): Likewise.
224	* win32-low.h (struct win32_target_ops): Change num_regs to
225	callback function.
226
2272020-04-27  Simon Marchi  <simon.marchi@efficios.com>
228
229	* configure.ac: Remove check for fs_base/gs_base in
230	user_regs_struct.
231	* configure: Re-generate.
232	* config.in: Re-generate.
233	* linux-x86-low.cc (x86_64_regmap, x86_fill_gregset,
234	x86_store_gregset): Adjust.
235
2362020-04-22  Hannes Domani  <ssbssa@yahoo.de>
237
238	* server.cc (handle_search_memory_1): Fix gdb_read_memory return value
239	comparison.
240
2412020-04-16  Tom Tromey  <tromey@adacore.com>
242
243	* win32-low.cc (windows_nat::handle_access_violation): New
244	function.
245
2462020-04-15  Simon Marchi  <simon.marchi@polymtl.ca>
247
248	* win32-low.cc (get_child_debug_event): Fix format string warning.
249
2502020-04-13  Tom Tromey  <tom@tromey.com>
251
252	* server.h (gdb_fildes_t): Remove typedef.
253	* remote-utils.c (remote_desc, list_desc): Now int.
254	(INVALID_DESCRIPTOR): Remove.
255	(gdb_connected, remote_close)
256	(check_remote_input_interrupt_request): Update.
257	* utils.h (pfildes): Don't declare.
258	* utils.c (pfildes): Remove.
259
2602020-04-13  Tom Tromey  <tom@tromey.com>
261
262	* server.h (handle_serial_event, handle_target_event): Update.
263	* server.c: Don't call initialize_event_loop.
264	(keep_processing_events): New global.
265	(handle_serial_event): Return void.  Set keep_processing_events.
266	(handle_target_event): Return void.
267	(start_event_loop): Move from event-loop.c.  Rewrite.
268	* remote-utils.c (handle_accept_event): Return void.
269	(reset_readchar): Use delete_timer.
270	(process_remaining): Return void.
271	(reschedule): Use create_timer.
272	* event-loop.h: Remove.
273	* event-loop.cc: Remove.
274	* Makefile.in (OBS): Use gdbsupport/event-loop.o, not event-loop.o.
275
2762020-04-13  Tom Tromey  <tom@tromey.com>
277
278	* server.c (invoke_async_signal_handlers)
279	(check_async_event_handlers, flush_streams, gdb_select): New
280	functions.
281
2822020-04-13  Tom Tromey  <tom@tromey.com>
283
284	* configure: Rebuild.
285	* config.in: Rebuild.
286
2872020-04-08  Tom Tromey  <tromey@adacore.com>
288
289	PR gdb/22992
290	* win32-low.c (child_continue): Call matching_pending_stop.
291	(get_child_debug_event): Call fetch_pending_stop.  Push pending
292	stop when needed.
293
2942020-04-08  Tom Tromey  <tromey@adacore.com>
295
296	* win32-low.h  (win32_process_target::stopped_by_sw_breakpoint)
297	(win32_process_target::supports_stopped_by_sw_breakpoint):
298	Declare.
299	* win32-low.c (win32_supports_z_point_type): Always handle
300	Z_PACKET_SW_BP.
301	(win32_insert_point): Call insert_memory_breakpoint when needed.
302	(win32_remove_point): Call remove_memory_breakpoint when needed.
303	(win32_process_target::stopped_by_sw_breakpoint)
304	(win32_process_target::supports_stopped_by_sw_breakpoint): New
305	methods.
306	(win32_target_ops): Update.
307	(maybe_adjust_pc): New function.
308	(win32_wait): Call maybe_adjust_pc.
309
3102020-04-08  Tom Tromey  <tromey@adacore.com>
311
312	* win32-low.h (struct win32_target_ops) <decr_pc_after_break>: New
313	field.
314	* win32-i386-low.c (the_low_target): Update.
315	* win32-arm-low.c (the_low_target): Update.
316
3172020-04-08  Tom Tromey  <tromey@adacore.com>
318
319	* win32-low.h (win32_process_target::read_pc)
320	(win32_process_target::write_pc): Declare.
321	* win32-low.c (win32_process_target::read_pc)
322	(win32_process_target::write_pc): New methods.
323	* win32-i386-low.c (i386_win32_get_pc, i386_win32_set_pc): New
324	functions.
325	(the_low_target): Update.
326	* win32-arm-low.c (arm_win32_get_pc, arm_win32_set_pc): New
327	functions.
328	(the_low_target): Update.
329
3302020-04-08  Tom Tromey  <tromey@adacore.com>
331
332	* win32-low.c (win32_kill, get_child_debug_event): Use
333	wait_for_debug_event.
334
3352020-04-08  Tom Tromey  <tromey@adacore.com>
336
337	* win32-low.c (child_continue): Call continue_last_debug_event.
338
3392020-04-08  Tom Tromey  <tromey@adacore.com>
340
341	* win32-low.c (handle_exception): Remove.
342	(windows_nat::handle_ms_vc_exception): New function.
343	(get_child_debug_event): Add "continue_status" parameter.
344	Update.
345	(win32_wait): Update.
346
3472020-04-08  Tom Tromey  <tromey@adacore.com>
348
349	* win32-low.c (windows_nat::handle_load_dll): Rename from
350	handle_load_dll.  No longer static.
351	(windows_nat::handle_unload_dll): Rename from handle_unload_dll.
352	No longer static.
353
3542020-04-08  Tom Tromey  <tromey@adacore.com>
355
356	* win32-low.c (handle_output_debug_string): Add parameter.  Change
357	return type.
358	(win32_kill, get_child_debug_event): Update.
359
3602020-04-08  Tom Tromey  <tromey@adacore.com>
361
362	* win32-low.c (current_process_handle, current_process_id)
363	(main_thread_id, last_sig, current_event, siginfo_er): Move to
364	nat/windows-nat.c.
365
3662020-04-08  Tom Tromey  <tromey@adacore.com>
367
368	* win32-low.c (get_image_name): Remove.
369	(handle_load_dll): Update.
370
3712020-04-08  Tom Tromey  <tromey@adacore.com>
372
373	* win32-low.c (windows_nat::thread_rec): Rename from thread_rec.
374	No longer static.  Change parameters.
375	(child_add_thread, child_fetch_inferior_registers)
376	(child_store_inferior_registers, win32_resume)
377	(win32_get_tib_address): Update.
378
3792020-04-08  Tom Tromey  <tromey@adacore.com>
380
381	* win32-low.h (struct win32_target_ops): Use qualified names where
382	needed.
383	* win32-i386-low.c: Add "using namespace".
384	* win32-low.c: Add "using namespace".
385	* win32-arm-low.c: Add "using namespace".
386
3872020-04-08  Tom Tromey  <tromey@adacore.com>
388
389	* win32-low.c (delete_thread_info): Don't call CloseHandle.
390
3912020-04-08  Tom Tromey  <tromey@adacore.com>
392
393	* win32-low.c (win32_require_context, suspend_one_thread): Use
394	windows_thread_info::suspend.
395	(continue_one_thread): Use windows_thread_info::resume.
396	* configure.srv (srv_tgtobj): Add windows-nat.o when needed.
397
3982020-04-08  Tom Tromey  <tromey@adacore.com>
399
400	* win32-i386-low.c (update_debug_registers)
401	(i386_prepare_to_resume, i386_thread_added): Update.
402
4032020-04-08  Tom Tromey  <tromey@adacore.com>
404
405	* win32-low.c (child_add_thread): Use new.
406	(delete_thread_info): Use delete.
407
4082020-04-08  Tom Tromey  <tromey@adacore.com>
409
410	* win32-low.h (struct windows_thread_info): Remove.
411
4122020-04-08  Tom Tromey  <tromey@adacore.com>
413
414	* win32-low.h (struct windows_thread_info): Rename from
415	win32_thread_info.  Remove typedef.
416	(struct win32_target_ops, win32_require_context): Update.
417	* win32-low.c (win32_get_thread_context)
418	(win32_set_thread_context, win32_prepare_to_resume)
419	(win32_require_context, thread_rec, child_add_thread)
420	(delete_thread_info, continue_one_thread)
421	(child_fetch_inferior_registers, child_store_inferior_registers)
422	(win32_resume, suspend_one_thread, win32_get_tib_address):
423	Update.
424	* win32-i386-low.c (update_debug_registers)
425	(win32_get_current_dr, i386_get_thread_context)
426	(i386_prepare_to_resume, i386_thread_added, i386_single_step)
427	(i386_fetch_inferior_register, i386_store_inferior_register):
428	Update.
429	* win32-arm-low.c (arm_get_thread_context)
430	(arm_fetch_inferior_register, arm_store_inferior_register):
431	Update.
432
4332020-04-02  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
434
435	* linux-low.h (struct linux_target_ops): Remove.
436	(the_low_target): Remove.
437	* linux-x86-low.cc (the_low_target): Remove.
438	* linux-aarch64-low.cc (the_low_target): Ditto.
439	* linux-arm-low.cc (the_low_target): Ditto.
440	* linux-bfin-low.cc (the_low_target): Ditto.
441	* linux-cris-low.cc (the_low_target): Ditto.
442	* linux-crisv32-low.cc (the_low_target): Ditto.
443	* linux-ia64-low.cc (the_low_target): Ditto.
444	* linux-m32r-low.cc (the_low_target): Ditto.
445	* linux-m68k-low.cc (the_low_target): Ditto.
446	* linux-mips-low.cc (the_low_target): Ditto.
447	* linux-nios2-low.cc (the_low_target): Ditto.
448	* linux-ppc-low.cc (the_low_target): Ditto.
449	* linux-riscv-low.cc (the_low_target): Ditto.
450	* linux-s390-low.cc (the_low_target): Ditto.
451	* linux-sh-low.cc (the_low_target): Ditto.
452	* linux-sparc-low.cc (the_low_target): Ditto.
453	* linux-tic6x-low.cc (the_low_target): Ditto.
454	* linux-tile-low.cc (the_low_target): Ditto.
455	* linux-xtensa-low.cc (the_low_target): Ditto.
456
4572020-04-02  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
458
459	Remove the 'get_ipa_tdesc_idx' linux target op and let a concrete
460	linux target define the op by overriding the declaration in
461	process_stratum_target.
462
463	* linux-low.h (struct linux_target_ops): Remove the op.
464	(class linux_process_target) <get_ipa_tdesc_idx>: Remove.
465	* linux-low.cc (linux_process_target::get_ipa_tdesc_idx): Remove.
466	* linux-x86-low.cc (class x86_target) <get_ipa_tdesc_idx>: Declare.
467	(x86_get_ipa_tdesc_idx): Turn into...
468	(x86_target::get_ipa_tdesc_idx): ...this.
469	(the_low_target): Remove the op field.
470	* linux-ppc-low.cc (class ppc_target) <get_ipa_tdesc_idx>: Declare.
471	(ppc_get_ipa_tdesc_idx): Turn into...
472	(ppc_target::get_ipa_tdesc_idx): ...this.
473	(the_low_target): Remove the op field.
474	* linux-s390-low.cc (class s390_target) <get_ipa_tdesc_idx>: Declare.
475	(s390_get_ipa_tdesc_idx): Turn into...
476	(s390_target::get_ipa_tdesc_idx): ...this.
477	(the_low_target): Remove the op field.
478
4792020-04-02  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
480
481	Turn the 'get_syscall_trapinfo' linux target op into a method
482	of process_stratum_target.
483
484	* linux-low.h (struct linux_target_ops): Remove the op.
485	(class linux_process_target) <get_syscall_trapinfo>
486	<gdb_catch_this_syscall>
487	<low_supports_catch_syscall>
488	<low_get_syscall_trapinfo>: Declare.
489	* linux-low.cc (get_syscall_trapinfo): Turn into...
490	(linux_process_target::get_syscall_trapinfo): ...this.
491	(linux_process_target::low_get_syscall_trapinfo): Define.
492	(gdb_catch_this_syscall_p): Turn into...
493	(linux_process_target::gdb_catch_this_syscall): ...this.
494	(linux_process_target::low_supports_catch_syscall): Define.
495
496	Update the callers below.
497
498	(linux_process_target::wait_1)
499	(linux_process_target::supports_catch_syscall)
500
501	* linux-x86-low.cc (class x86_target) <low_supports_catch_syscall>
502	<low_get_syscall_trapinfo>: Declare.
503	(x86_target::low_supports_catch_syscall): Define.
504	(x86_get_syscall_trapinfo): Turn into...
505	(x86_target::low_get_syscall_trapinfo): ...this.
506	(the_low_target): Remove the op field.
507	* linux-aarch64-low.cc (class aarch64_target)
508	<low_supports_catch_syscall>
509	<low_get_syscall_trapinfo>: Declare.
510	(aarch64_target::low_supports_catch_syscall): Define.
511	(aarch64_get_syscall_trapinfo): Turn into...
512	(aarch64_target::low_get_syscall_trapinfo): ...this.
513	(the_low_target): Remove the op field.
514	* linux-arm-low.cc (class arm_target) <low_supports_catch_syscall>
515	<low_get_syscall_trapinfo>: Declare.
516	(arm_target::low_supports_catch_syscall): Define.
517	(arm_get_syscall_trapinfo): Turn into...
518	(arm_target::low_get_syscall_trapinfo): ...this.
519	(the_low_target): Remove the op field.
520	* linux-ppc-low.cc (the_low_target): Remove the op field.
521	* linux-s390-low.cc (the_low_target): Remove the op field.
522
5232020-04-02  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
524
525	Remove the 'supports_hardware_single_step' linux target op and
526	override the process_stratum_target's op definition in
527	linux_process_target to return true.
528
529	* linux-low.h (struct linux_target_ops): Remove the op.
530	(class linux_process_target) <finish_step_over>
531	<maybe_hw_step>: Declare.
532	* linux-low.cc (can_hardware_single_step): Remove.
533	(maybe_hw_step): Turn into...
534	(linux_process_target::maybe_hw_step): ...this.
535	(finish_step_over): Turn into...
536	(linux_process_target::finish_step_over): ...this.
537	(linux_process_target::supports_hardware_single_step): Update
538	to return true.
539
540	Update the callers below.
541
542	(linux_process_target::single_step)
543	(linux_process_target::resume_one_lwp_throw)
544
545	* linux-arm-low.cc (class arm_target)
546	<supports_hardware_single_step>: Declare.
547	(arm_supports_hardware_single_step): Turn into...
548	(arm_target::supports_hardware_single_step): ...this.
549	(the_low_target): Remove the op field.
550	* linux-x86-low.cc (x86_supports_hardware_single_step): Remove.
551	(the_low_target): Remove the op field.
552	* linux-aarch64-low.cc (aarch64_supports_hardware_single_step):
553	Remove.
554	(the_low_target): Remove the op field.
555	* linux-bfin-low.cc (bfin_supports_hardware_single_step): Remove.
556	(the_low_target): Remove the op field.
557	* linux-crisv32-low.cc (cris_supports_hardware_single_step): Remove.
558	(the_low_target): Remove the op field.
559	* linux-m32r-low.cc (m32r_supports_hardware_single_step): Remove.
560	(the_low_target): Remove the op field.
561	* linux-m68k-low.cc (m68k_supports_hardware_single_step): Remove.
562	(the_low_target): Remove the op field.
563	* linux-ppc-low.cc (ppc_supports_hardware_single_step): Remove.
564	(the_low_target): Remove the op field.
565	* linux-s390-low.cc (s390_supports_hardware_single_step): Remove.
566	(the_low_target): Remove the op field.
567	* linux-sh-low.cc (sh_supports_hardware_single_step): Remove.
568	(the_low_target): Remove the op field.
569	* linux-tic6x-low.cc (tic6x_supports_hardware_single_step): Remove.
570	(the_low_target): Remove the op field.
571	* linux-tile-low.cc (tile_supports_hardware_single_step): Remove.
572	(the_low_target): Remove the op field.
573	* linux-xtensa-low.cc (xtensa_supports_hardware_single_step):
574	Remove.
575	(the_low_target): Remove the op field.
576
5772020-04-02  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
578
579	Turn the 'supports_range_stepping' linux target op into a method
580	of linux_process_target.
581
582	* linux-low.h (struct linux_target_ops): Remove the op.
583	(class linux_process_target) <low_supports_range_stepping>: Declare.
584	* linux-low.cc (linux_process_target::low_supports_range_stepping):
585	Define.
586	(linux_process_target::supports_range_stepping): Update the call
587	site.
588	* linux-x86-low.cc (class x86_target)
589	<low_supports_range_stepping>: Declare.
590	(x86_supports_range_stepping): Turn into...
591	(x86_target::low_supports_range_stepping): ...this.
592	(the_low_target): Remove the op field.
593	* linux-aarch64-low.cc (class aarch64_target)
594	<low_supports_range_stepping>: Declare.
595	(aarch64_supports_range_stepping): Turn into...
596	(aarch64_target::low_supports_range_stepping): ...this.
597	(the_low_target): Remove the op field.
598	* linux-arm-low.cc (the_low_target): Remove the op field.
599	* linux-bfin-low.cc (the_low_target): Ditto.
600	* linux-crisv32-low.cc (the_low_target): Ditto.
601	* linux-m32r-low.cc (the_low_target): Ditto.
602	* linux-m68k-low.cc (the_low_target): Ditto.
603	* linux-ppc-low.cc (the_low_target): Ditto.
604	* linux-s390-low.cc (the_low_target): Ditto.
605	* linux-sh-low.cc (the_low_target): Ditto.
606	* linux-tic6x-low.cc (the_low_target): Ditto.
607	* linux-tile-low.cc (the_low_target): Ditto.
608	* linux-xtensa-low.cc (the_low_target): Ditto.
609
6102020-04-02  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
611
612	Remove the 'emit_ops' linux target ops and let the concrete
613	linux target define the op by overriding the declaration of
614	process_stratum_target.
615
616	* linux-low.h (struct linux_target_ops): Remove the op.
617	(class linux_process_target) <emit_ops>: Remove.
618	* linux-low.cc (linux_process_target::emit_ops): Remove.
619	* linux-x86-low.cc (class x86_target) <emit_ops>: Declare.
620	(x86_emit_ops): Turn into...
621	(x86_target::emit_ops): ...this.
622	(the_low_target): Remove the op field.
623	* linux-aarch64-low.cc (class aarch64_target) <emit_ops>: Declare.
624	(aarch64_emit_ops): Turn into...
625	(aarch64_target::emit_ops): ...this.
626	(the_low_target): Remove the op field.
627	* linux-ppc-low.cc (class ppc_target) <emit_ops>: Declare.
628	(ppc_emit_ops): Turn into...
629	(ppc_target::emit_ops): ...this.
630	(the_low_target): Remove the op field.
631	* linux-s390-low.cc (class s390_target) <emit_ops>: Declare.
632	(s390_emit_ops): Turn into...
633	(s390_target::emit_ops): ...this.
634	(the_low_target): Remove the op field.
635	* linux-arm-low.cc (the_low_target): Remove the op field.
636	* linux-bfin-low.cc (the_low_target): Ditto.
637	* linux-crisv32-low.cc (the_low_target): Ditto.
638	* linux-m32r-low.cc (the_low_target): Ditto.
639	* linux-m68k-low.cc (the_low_target): Ditto.
640	* linux-sh-low.cc (the_low_target): Ditto.
641	* linux-tic6x-low.cc (the_low_target): Ditto.
642	* linux-tile-low.cc (the_low_target): Ditto.
643	* linux-xtensa-low.cc (the_low_target): Ditto.
644
6452020-04-02  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
646
647	Remove the 'install_fast_tracepoint_jump_pad' and
648	'get_min_fast_tracepoint_insn_len' linux target ops to let the
649	concrete linux target define the ops by overriding the declarations
650	of process_stratum_target.
651
652	* linux-low.h (struct linux_target_ops): Remove the ops.
653	(class linux_process_target) <supports_fast_tracepoints>
654	<install_fast_tracepoint_jump_pad>
655	<get_min_fast_tracepoint_insn_len>: Remove.
656	* linux-low.cc (linux_process_target::supports_fast_tracepoints)
657	(linux_process_target::install_fast_tracepoint_jump_pad)
658	(linux_process_target::get_min_fast_tracepoint_insn_len): Remove.
659	* linux-x86-low.cc (class x86_target) <supports_fast_tracepoints>
660	<install_fast_tracepoint_jump_pad>
661	<get_min_fast_tracepoint_insn_len>: Declare.
662	(x86_target::supports_fast_tracepoints): Define.
663	(x86_install_fast_tracepoint_jump_pad): Turn into...
664	(x86_target::install_fast_tracepoint_jump_pad): ...this.
665	(x86_get_min_fast_tracepoint_insn_len): Turn into...
666	(x86_target::get_min_fast_tracepoint_insn_len): ...this.
667	(the_low_target): Remove the op fields.
668	* linux-aarch64-low.cc (class aarch64_target)
669	<supports_fast_tracepoints>
670	<install_fast_tracepoint_jump_pad>
671	<get_min_fast_tracepoint_insn_len>: Declare.
672	(aarch64_target::supports_fast_tracepoints): Define.
673	(aarch64_install_fast_tracepoint_jump_pad): Turn into...
674	(aarch64_target::install_fast_tracepoint_jump_pad): ...this.
675	(aarch64_get_min_fast_tracepoint_insn_len): Turn into...
676	(aarch64_target::get_min_fast_tracepoint_insn_len): ...this.
677	(the_low_target): Remove the op fields.
678	* linux-ppc-low.cc (class ppc_target) <supports_fast_tracepoints>
679	<install_fast_tracepoint_jump_pad>
680	<get_min_fast_tracepoint_insn_len>: Declare.
681	(ppc_target::supports_fast_tracepoints): Define.
682	(ppc_install_fast_tracepoint_jump_pad): Turn into...
683	(ppc_target::install_fast_tracepoint_jump_pad): ...this.
684	(ppc_get_min_fast_tracepoint_insn_len): Turn into...
685	(ppc_target::get_min_fast_tracepoint_insn_len): ...this.
686	(the_low_target): Remove the op fields.
687	* linux-s390-low.cc (class s390_target) <supports_fast_tracepoints>
688	<install_fast_tracepoint_jump_pad>
689	<get_min_fast_tracepoint_insn_len>: Declare.
690	(s390_target::supports_fast_tracepoints): Define.
691	(s390_install_fast_tracepoint_jump_pad): Turn into...
692	(s390_target::install_fast_tracepoint_jump_pad): ...this.
693	(s390_get_min_fast_tracepoint_insn_len): Turn into...
694	(s390_target::get_min_fast_tracepoint_insn_len): ...this.
695	(the_low_target): Remove the op fields.
696	* linux-arm-low.cc (the_low_target): Remove the op fields.
697	* linux-bfin-low.cc (the_low_target): Ditto.
698	* linux-crisv32-low.cc (the_low_target): Ditto.
699	* linux-m32r-low.cc (the_low_target): Ditto.
700	* linux-m68k-low.cc (the_low_target): Ditto.
701	* linux-sh-low.cc (the_low_target): Ditto.
702	* linux-tic6x-low.cc (the_low_target): Ditto.
703	* linux-tile-low.cc (the_low_target): Ditto.
704	* linux-xtensa-low.cc (the_low_target): Ditto.
705
7062020-04-02  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
707
708	Turn the 'get_thread_area' linux target op into a method of
709	process_stratum_target.
710
711	* linux-low.h (struct linux_target_ops): Remove the op.
712	(class linux_process_target) <stuck_in_jump_pad>
713	<linux_fast_tracepoint_collecting>
714	<low_get_thread_area>: Declare.
715	* linux-low.cc (supports_fast_tracepoints): Remove.
716	(linux_fast_tracepoint_collecting): Turn into...
717	(linux_process_target::linux_fast_tracepoint_collecting): ...this.
718	(linux_process_target::low_get_thread_area): Define.
719	(stuck_in_jump_pad_callback): Turn into...
720	(linux_process_target::stuck_in_jump_pad): ...this.
721
722	Update the caller below.
723
724	(linux_process_target::stabilize_threads)
725
726	* linux-x86-low.cc (class x86_target) <low_get_thread_area>:
727	Declare.
728	(x86_get_thread_area): Turn into...
729	(x86_target::low_get_thread_area): ...this.
730	(the_low_target): Remove the op field.
731	* linux-aarch64-low.cc (class aarch64_target) <low_get_thread_area>:
732	Declare.
733	(aarch64_get_thread_area): Turn into...
734	(aarch64_target::low_get_thread_area): ...this.
735	(the_low_target): Remove the op field.
736	* linux-ppc-low.cc (class ppc_target) <low_get_thread_area>:
737	Declare.
738	(ppc_get_thread_area): Turn into...
739	(ppc_target::low_get_thread_area): ...this.
740	(the_low_target): Remove the op field.
741	* linux-s390-low.cc (class s390_target) <low_get_thread_area>:
742	Declare.
743	(s390_get_thread_area): Turn into...
744	(s390_target::low_get_thread_area): ...this.
745	(the_low_target): Remove the op field.
746	* linux-arm-low.cc (the_low_target): Remove the op field.
747	* linux-bfin-low.cc (the_low_target): Ditto.
748	* linux-crisv32-low.cc (the_low_target): Ditto.
749	* linux-m32r-low.cc (the_low_target): Ditto.
750	* linux-m68k-low.cc (the_low_target): Ditto.
751	* linux-sh-low.cc (the_low_target): Ditto.
752	* linux-tic6x-low.cc (the_low_target): Ditto.
753	* linux-tile-low.cc (the_low_target): Ditto.
754	* linux-xtensa-low.cc (the_low_target): Ditto.
755
7562020-04-02  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
757
758	Remote the 'supports_tracepoints' linux target op and let the
759	concrete linux target define it by overriding the op declared in
760	process_stratum_target.
761
762	* linux-low.h (struct linux_target_ops): Remove the op.
763	(class linux_process_target) <supports_tracepoints>: Remove.
764	* linux-low.cc (linux_process_target::supports_tracepoints): Remove.
765	* linux-x86-low.cc (class x86_target) <supports_tracepoints>:
766	Declare.
767	(x86_supports_tracepoints): Turn into...
768	(x86_target::supports_tracepoints): ...this.
769	(the_low_target): Remove the op field.
770	* linux-aarch64-low.cc (class aarch64_target)
771	<supports_tracepoints>: Declare.
772	(aarch64_supports_tracepoints): Turn into...
773	(aarch64_target::supports_tracepoints): ...this.
774	(the_low_target): Remove the op field.
775	* linux-ppc-low.cc (class ppc_target) <supports_tracepoints>:
776	Declare.
777	(ppc_supports_tracepoints): Turn into...
778	(ppc_target::supports_tracepoints): ...this.
779	(the_low_target): Remove the op field.
780	* linux-s390-low.cc (class s390_target) <supports_tracepoints>:
781	Declare.
782	(s390_supports_tracepoints): Turn into...
783	(s390_target::supports_tracepoints): ...this.
784	(the_low_target): Remove the op field.
785	* linux-arm-low.cc (the_low_target): Remove the op field.
786	* linux-bfin-low.cc (the_low_target): Ditto.
787	* linux-crisv32-low.cc (the_low_target): Ditto.
788	* linux-m32r-low.cc (the_low_target): Ditto.
789	* linux-m68k-low.cc (the_low_target): Ditto.
790	* linux-sh-low.cc (the_low_target): Ditto.
791	* linux-tic6x-low.cc (the_low_target): Ditto.
792	* linux-tile-low.cc (the_low_target): Ditto.
793	* linux-xtensa-low.cc (the_low_target): Ditto.
794
7952020-04-02  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
796
797	Remove the 'process_qsupported' linux target op and let a concrete
798	linux target define the op by overriding the op declaration in
799	process_stratum_target.
800
801	* linux-low.h (struct linux_target_ops): Remove the op.
802	(class linux_process_target) <process_qsupported>: Remove.
803	* linux-low.cc (linux_process_target::process_qsupported): Remove.
804	* linux-x86-low.cc (class x86_target) <process_qsupported>: Declare.
805	(x86_linux_process_qsupported): Turn into...
806	(x86_target::process_qsupported): ...this.
807	(the_low_target): Remove the op field.
808	* linux-aarch64-low.cc (the_low_target): Remove the op
809	field.
810	* linux-arm-low.cc (the_low_target): Ditto.
811	* linux-bfin-low.cc (the_low_target): Ditto.
812	* linux-crisv32-low.cc (the_low_target): Ditto.
813	* linux-m32r-low.cc (the_low_target): Ditto.
814	* linux-m68k-low.cc (the_low_target): Ditto.
815	* linux-ppc-low.cc (the_low_target): Ditto.
816	* linux-s390-low.cc (the_low_target): Ditto.
817	* linux-sh-low.cc (the_low_target): Ditto.
818	* linux-tic6x-low.cc (the_low_target): Ditto.
819	* linux-tile-low.cc (the_low_target): Ditto.
820	* linux-xtensa-low.cc (the_low_target): Ditto.
821
8222020-04-02  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
823
824	Turn the 'prepare_to_resume' linux target op into a method of
825	linux_process_target.
826
827	* linux-low.h (struct linux_target_ops): Remove the op.
828	(class linux_process_target) <low_prepare_to_resume>: Declare.
829	* linux-low.cc (linux_process_target::low_prepare_to_resume):
830	Define.
831
832	Update the callers below:
833
834	(linux_process_target::resume_one_lwp_throw)
835	(linux_process_target::low_prepare_to_resume)
836
837	* linux-x86-low.cc (class x86_target) <low_prepare_to_resume>:
838	Declare.
839	(x86_target::low_prepare_to_resume): Define.
840	(the_low_target): Remove the op field.
841	* linux-aarch64-low.cc (class aarch64_target)
842	<low_prepare_to_resume>: Declare.
843	(aarch64_target::low_prepare_to_resume): Define.
844	(the_low_target): Remove the op field.
845	* linux-arm-low.cc (class arm_target) <low_prepare_to_resume>:
846	Declare.
847	(arm_prepare_to_resume): Turn into...
848	(arm_target::low_prepare_to_resume): ...this.
849	(the_low_target): Remove the op field.
850	* linux-mips-low.cc (class mips_target) <low_prepare_to_resume>:
851	Declare.
852	(mips_linux_prepare_to_resume): Turn into...
853	(mips_target::low_prepare_to_resume): ...this.
854	(the_low_target): Remove the op field.
855	* linux-bfin-low.cc (the_low_target): Remove the op field.
856	* linux-crisv32-low.cc (the_low_target): Ditto.
857	* linux-m32r-low.cc (the_low_target): Ditto.
858	* linux-m68k-low.cc (the_low_target): Ditto.
859	* linux-ppc-low.cc (the_low_target): Ditto.
860	* linux-s390-low.cc (the_low_target): Ditto.
861	* linux-sh-low.cc (the_low_target): Ditto.
862	* linux-tic6x-low.cc (the_low_target): Ditto.
863	* linux-tile-low.cc (the_low_target): Ditto.
864	* linux-xtensa-low.cc (the_low_target): Ditto.
865
8662020-04-02  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
867
868	Turn the 'new_process', 'delete_process', 'new_thread',
869	'delete_thread', and 'new_fork' linux target ops into methods
870	of linux_process_target.
871
872	* linux-low.h (struct linux_target_ops): Remove the ops.
873	(class linux_process_target) <add_linux_process>
874	<add_lwp>
875	<delete_lwp>
876	<attach_lwp>
877	<detach_one_lwp>
878	<check_zombie_leaders>
879	<filter_exit_event>
880	<low_new_process>
881	<low_delete_process>
882	<low_new_thread>
883	<low_delete_thread>
884	<low_new_fork>: Declare.
885	* linux-low.cc (delete_lwp): Turn into...
886	(linux_process_target::delete_lwp): ...this.
887	(linux_process_target::low_delete_thread): Define.
888	(linux_add_process): Turn into...
889	(linux_process_target::add_linux_process): ...this.
890	(linux_process_target::low_new_process): Define.
891	(linux_process_target::low_delete_process): Define.
892	(linux_process_target::low_new_fork): Define.
893	(add_lwp): Turn into...
894	(linux_process_target::add_lwp): ...this.
895	(linux_process_target::low_new_thread): Define.
896	(linux_attach_lwp): Turn into...
897	(linux_process_target::attach_lwp): ...this.
898	(linux_detach_one_lwp): Turn into...
899	(linux_process_target::detach_one_lwp): ...this.
900	(linux_detach_lwp_callback): Remove and inline...
901	(linux_process_target::detach): ...here.
902	(check_zombie_leaders): Turn into...
903	(linux_process_target::check_zombie_leaders): ...this.
904	(filter_exit_event): Turn into...
905	(linux_process_target::filter_exit_event): ...this.
906
907	Update the callers below.
908
909	(linux_process_target::handle_extended_wait)
910	(linux_process_target::create_inferior)
911	(attach_proc_task_lwp_callback)
912	(linux_process_target::attach)
913	(linux_process_target::detach)
914	(linux_process_target::mourn)
915	* thread-db.cc (attach_thread)
916
917	* linux-x86-low.cc (class x86_target) <low_new_process>
918	<low_delete_process>
919	<low_new_thread>
920	<low_delete_thread>
921	<low_new_fork>: Declare.
922	(x86_linux_new_process): Turn into...
923	(x86_target::low_new_process): ...this.
924	(x86_linux_delete_process): Turn into...
925	(x86_target::low_delete_process): ...this.
926	(x86_target::low_new_thread): Define.
927	(x86_target::low_delete_thread): Define.
928	(x86_linux_new_fork): Turn into...
929	(x86_target::low_new_fork): ...this.
930	(the_low_target): Remove the op fields.
931	* linux-aarch64-low.cc (class aarch64_target) <low_new_process>
932	<low_delete_process>
933	<low_new_thread>
934	<low_delete_thread>
935	<low_new_fork>: Declare.
936	(aarch64_linux_new_process): Turn into...
937	(aarch64_target::low_new_process): ...this.
938	(aarch64_linux_delete_process): Turn into...
939	(aarch64_target::low_delete_process): ...this.
940	(aarch64_target::low_new_thread): Define.
941	(aarch64_target::low_delete_thread): Define.
942	(aarch64_linux_new_fork): Turn into...
943	(aarch64_target::low_new_fork): ...this.
944	(the_low_target): Remove the op fields.
945	* linux-arm-low.cc (class arm_target) <low_new_process>
946	<low_delete_process>
947	<low_new_thread>
948	<low_delete_thread>
949	<low_new_fork>: Declare.
950	(arm_new_process): Turn into...
951	(arm_target::low_new_process): ...this.
952	(arm_delete_process): Turn into...
953	(arm_target::low_delete_process): ...this.
954	(arm_new_thread): Turn into...
955	(arm_target::low_new_thread): ...this.
956	(arm_delete_thread): Turn into...
957	(arm_target::low_delete_thread): ...this.
958	(arm_new_fork): Turn into...
959	(arm_target::low_new_fork): ...this.
960	(the_low_target): Remove the op fields.
961	* linux-mips-low.cc (class mips_target) <low_new_process>
962	<low_delete_process>
963	<low_new_thread>
964	<low_delete_thread>
965	<low_new_fork>: Declare.
966	(mips_linux_new_process): Turn into...
967	(mips_target::low_new_process): ...this.
968	(mips_linux_delete_process): Turn into...
969	(mips_target::low_delete_process): ...this.
970	(mips_linux_new_thread): Turn into...
971	(mips_target::low_new_thread): ...this.
972	(mips_linux_delete_thread): Turn into...
973	(mips_target::low_delete_thread): ...this.
974	(mips_linux_new_fork): Turn into...
975	(mips_target::low_new_fork): ...this.
976	(the_low_target): Remove the op fields.
977	* linux-bfin-low.cc (the_low_target): Remove the op fields.
978	* linux-crisv32-low.cc (the_low_target): Ditto.
979	* linux-m32r-low.cc (the_low_target): Ditto.
980	* linux-m68k-low.cc (the_low_target): Ditto.
981	* linux-ppc-low.cc (the_low_target): Ditto.
982	* linux-s390-low.cc (the_low_target): Ditto.
983	* linux-sh-low.cc (the_low_target): Ditto.
984	* linux-tic6x-low.cc (the_low_target): Ditto.
985	* linux-tile-low.cc (the_low_target): Ditto.
986	* linux-xtensa-low.cc (the_low_target): Ditto.
987
9882020-04-02  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
989
990	Turn the 'siginfo_fixup' linux target op into a method of
991	linux_process_target.
992
993	* linux-low.h (struct linux_target_ops): Remove the op.
994	(class linux_process_target) <siginfo_fixup>
995	<low_siginfo_fixup>: Declare.
996	* linux-low.cc (siginfo_fixup): Turn into...
997	(linux_process_target::siginfo_fixup): ...this.
998	(linux_process_target::low_siginfo_fixup): Define.
999	* linux-x86-low.cc (class x86_target) <low_siginfo_fixup>: Declare.
1000	(x86_siginfo_fixup): Turn into...
1001	(x86_target::low_siginfo_fixup): ...this.
1002	(the_low_target): Remove the op field.
1003	* linux-aarch64-low.cc (class aarch64_target):
1004	<low_siginfo_fixup>: Declare.
1005	(aarch64_linux_siginfo_fixup): Turn into...
1006	(aarch64_target::low_siginfo_fixup): ...this.
1007	(the_low_target): Remove the op field.
1008	* linux-arm-low.cc (the_low_target): Remove the op field.
1009	* linux-bfin-low.cc (the_low_target): Ditto.
1010	* linux-crisv32-low.cc (the_low_target): Ditto.
1011	* linux-m32r-low.cc (the_low_target): Ditto.
1012	* linux-m68k-low.cc (the_low_target): Ditto.
1013	* linux-mips-low.cc (the_low_target): Ditto.
1014	* linux-ppc-low.cc (the_low_target): Ditto.
1015	* linux-s390-low.cc (the_low_target): Ditto.
1016	* linux-sh-low.cc (the_low_target): Ditto.
1017	* linux-tic6x-low.cc (the_low_target): Ditto.
1018	* linux-tile-low.cc (the_low_target): Ditto.
1019	* linux-xtensa-low.cc (the_low_target): Ditto.
1020
10212020-04-02  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
1022
1023	Turn the 'collect_ptrace_register' and 'supply_ptrace_register'
1024	linux target ops into methods of linux_process_target.
1025
1026	* linux-low.h (struct linux_target_ops): Remove the ops.
1027	(class linux_process_target) <low_collect_ptrace_register>
1028	<low_store_ptrace_register>: Declare.
1029	* linux-low.cc (linux_process_target::low_collect_ptrace_register)
1030	(linux_process_target::low_supply_ptrace_register): Define.
1031
1032	Update the callers below.
1033
1034	(linux_process_target::fetch_register)
1035	(linux_process_target::store_register)
1036
1037	* linux-x86-low.cc (the_low_target): Remove the op fields.
1038	* linux-aarch64-low.cc (the_low_target): Ditto.
1039	* linux-arm-low.cc (the_low_target): Ditto.
1040	* linux-bfin-low.cc (the_low_target): Ditto.
1041	* linux-crisv32-low.cc (the_low_target): Ditto.
1042	* linux-m32r-low.cc (the_low_target): Ditto.
1043	* linux-m68k-low.cc (the_low_target): Ditto.
1044	* linux-sh-low.cc (the_low_target): Ditto.
1045	* linux-sparc-low.cc (the_low_target): Ditto.
1046	* linux-tic6x-low.cc (the_low_target): Ditto.
1047	* linux-tile-low.cc (the_low_target): Ditto.
1048	* linux-xtensa-low.cc (the_low_target): Ditto.
1049	* linux-mips-low.cc (class mips_target)
1050	<low_collect_ptrace_register>
1051	<low_supply_ptrace_register>: Declare.
1052	(mips_collect_ptrace_register): Turn into ...
1053	(mips_target::low_collect_ptrace_register): ...this.
1054	(mips_supply_ptrace_register): Turn into...
1055	(mips_target::low_supply_ptrace_register): ...this.
1056	(the_low_target): Remove the op fields.
1057	* linux-ppc-low.cc (class ppc_target)
1058	<low_collect_ptrace_register>
1059	<low_supply_ptrace_register>: Declare.
1060	(ppc_collect_ptrace_register): Turn into ...
1061	(ppc_target::low_collect_ptrace_register): ...this.
1062	(ppc_supply_ptrace_register): Turn into ...
1063	(ppc_target::low_supply_ptrace_register): ...this.
1064	(ppc_fill_gregset): Update for the calls to
1065	low_collect_ptrace_register.
1066	(the_low_target): Remove the op fields.
1067	* linux-s390-low.cc (class s390_target)
1068	<low_collect_ptrace_register>
1069	<low_supply_ptrace_register>: Declare.
1070	(s390_collect_ptrace_register): Turn into ...
1071	(s390_target::low_collect_ptrace_register): ...this.
1072	(s390_supply_ptrace_register): Turn into ...
1073	(s390_target::low_supply_ptrace_register): ...this.
1074	(s390_fill_gregset): Update for the calls to
1075	low_collect_ptrace_register.
1076	(the_low_target): Remove the op fields.
1077
10782020-04-02  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
1079
1080	Turn the 'stopped_by_watchpoint' and 'stopped_data_address' linux
1081	target ops into methods of linux_process_target.
1082
1083	* linux-low.h (struct linux_target_ops): Remove the ops.
1084	(class linux_process_target) <check_stopped_by_watchpoint>
1085	<low_stopped_by_watchpoint>
1086	<low_stopped_data_address>: Declare.
1087	* linux-low.cc (check_stopped_by_watchpoint): Turn into...
1088	(linux_process_target::check_stopped_by_watchpoint): ...this.
1089	(linux_process_target::low_stopped_by_watchpoint): Define.
1090	(linux_process_target::low_stopped_data_address): Define.
1091	* linux-x86-low.cc (class x86_target) <low_stopped_by_watchpoint>
1092	<low_stopped_data_address>: Declare.
1093	(x86_stopped_by_watchpoint): Turn into...
1094	(x86_target::low_stopped_by_watchpoint): ...this.
1095	(x86_stopped_data_address): Turn into...
1096	(x86_target::low_stopped_data_address): ...this.
1097	(the_low_target): Remove the op fields.
1098	* linux-aarch64-low.cc (class aarch64_target)
1099	<low_stopped_by_watchpoint>
1100	<low_stopped_data_address>: Declare.
1101	(aarch64_stopped_by_watchpoint): Turn into...
1102	(aarch64_target::low_stopped_by_watchpoint): ...this.
1103	(aarch64_stopped_data_address): Turn into...
1104	(aarch64_target::low_stopped_data_address): ...this.
1105	(the_low_target): Remove the op fields.
1106	* linux-arm-low.cc (class arm_target) <low_stopped_by_watchpoint>
1107	<low_stopped_data_address>: Declare.
1108	(arm_stopped_by_watchpoint): Turn into...
1109	(arm_target::low_stopped_by_watchpoint): ...this.
1110	(arm_stopped_data_address): Turn into...
1111	(arm_target::low_stopped_data_address): ...this.
1112	(the_low_target): Remove the op fields.
1113	* linux-crisv32-low.cc (class crisv32_target)
1114	<low_stopped_by_watchpoint>
1115	<low_stopped_data_address>: Declare.
1116	(cris_stopped_by_watchpoint): Turn into...
1117	(crisv32_target::low_stopped_by_watchpoint): ...this.
1118	(cris_stopped_data_address): Turn into...
1119	(crisv32_target::low_stopped_data_address): ...this.
1120	(the_low_target): Remove the op fields.
1121	* linux-mips-low.cc (class mips_target) <low_stopped_by_watchpoint>
1122	<low_stopped_data_address>: Declare.
1123	(mips_stopped_by_watchpoint): Turn into...
1124	(mips_target::low_stopped_by_watchpoint): ...this.
1125	(mips_stopped_data_address): Turn into...
1126	(mips_target::low_stopped_data_address): ...this.
1127	(the_low_target): Remove the op fields.
1128	* linux-bfin-low.cc (the_low_target): Remove the op fields.
1129	* linux-m32r-low.cc (the_low_target): Ditto.
1130	* linux-m68k-low.cc (the_low_target): Ditto.
1131	* linux-ppc-low.cc (the_low_target): Ditto.
1132	* linux-s390-low.cc (the_low_target): Ditto.
1133	* linux-sh-low.cc (the_low_target): Ditto.
1134	* linux-sparc-low.cc (the_low_target): Ditto.
1135	* linux-tic6x-low.cc (the_low_target): Ditto.
1136	* linux-tile-low.cc (the_low_target): Ditto.
1137	* linux-xtensa-low.cc (the_low_target): Ditto.
1138
11392020-04-02  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
1140
1141	Turn the 'insert_point' and 'remove_point' linux target ops into
1142	methods of linux_process_target.
1143
1144	* linux-low.h (struct linux_target_ops): Remove the ops.
1145	(class linux_process_target) <low_insert_point>
1146	<low_remove_point>: Declare.
1147	* linux-low.cc (linux_process_target::low_insert_point)
1148	(linux_process_target::low_remove_point): Define.
1149	(linux_process_target::insert_point)
1150	(linux_process_target::remove_point): Update for calls to
1151	low_insert_point and low_remove_point.
1152	* linux-x86-low.cc (class x86_target) <low_insert_point>
1153	<low_remove_point>: Declare.
1154	(x86_insert_point): Turn into...
1155	(x86_target::low_insert_point): ...this.
1156	(x86_remove_point): Turn into...
1157	(x86_target::low_remove_point): ...this.
1158	(the_low_target): Remove the op fields.
1159	* linux-aarch64-low.cc (class aarch64_target) <low_insert_point>
1160	<low_remove_point>: Declare.
1161	(aarch64_insert_point): Turn into...
1162	(aarch64_target::low_insert_point): ...this.
1163	(aarch64_remove_point): Turn into...
1164	(aarch64_target::low_remove_point): ...this.
1165	(the_low_target): Remove the op fields.
1166	* linux-arm-low.cc (class arm_target) <low_insert_point>
1167	<low_remove_point>: Declare.
1168	(arm_insert_point): Turn into...
1169	(arm_target::low_insert_point): ...this.
1170	(arm_remove_point): Turn into...
1171	(arm_target::low_remove_point): ...this.
1172	(the_low_target): Remove the op fields.
1173	* linux-crisv32-low.cc (class crisv32_target) <low_insert_point>
1174	<low_remove_point>: Declare.
1175	(crisv32_insert_point): Turn into...
1176	(crisv32_target::low_insert_point): ...this.
1177	(crisv32_remove_point): Turn into...
1178	(crisv32_target::low_remove_point): ...this.
1179	(the_low_target): Remove the op fields.
1180	* linux-mips-low.cc (class mips_target) <low_insert_point>
1181	<low_remove_point>: Declare.
1182	(mips_insert_point): Turn into...
1183	(mips_target::low_insert_point): ...this.
1184	(mips_remove_point): Turn into...
1185	(mips_target::low_remove_point): ...this.
1186	(the_low_target): Remove the op fields.
1187	* linux-ppc-low.cc (class ppc_target) <low_insert_point>
1188	<low_remove_point>: Declare.
1189	(ppc_insert_point): Turn into...
1190	(ppc_target::low_insert_point): ...this.
1191	(ppc_remove_point): Turn into...
1192	(ppc_target::low_remove_point): ...this.
1193	(the_low_target): Remove the op fields.
1194	* linux-bfin-low.cc (the_low_target): Remove the op fields.
1195	* linux-m32r-low.cc (the_low_target): Ditto.
1196	* linux-m68k-low.cc (the_low_target): Ditto.
1197	* linux-s390-low.cc (the_low_target): Ditto.
1198	* linux-sh-low.cc (the_low_target): Ditto.
1199	* linux-sparc-low.cc (the_low_target): Ditto.
1200	* linux-tic6x-low.cc (the_low_target): Ditto.
1201	* linux-tile-low.cc (the_low_target): Ditto.
1202	* linux-xtensa-low.cc (the_low_target): Ditto.
1203
12042020-04-02  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
1205
1206	Remove the 'supports_z_point_type' linux target op and let the
1207	concrete linux target define it by overriding the op declared in
1208	process_stratum_target.
1209
1210	* linux-low.cc (linux_process_target::supports_z_point_type):
1211	Remove.
1212	* linux-low.h (struct linux_target_ops): Remove the op.
1213	(class linux_process_target) <supports_z_point_type>: Remove.
1214	* linux-x86-low.cc (class x86_target) <supports_z_point_type>:
1215	Declare.
1216	(x86_supports_z_point_type): Turn into...
1217	(x86_target::supports_z_point_type): ...this.
1218	(the_low_target): Remove the op field.
1219	* linux-aarch64-low.cc (class aarch64_target)
1220	<supports_z_point_type>: Declare.
1221	(aarch64_supports_z_point_type): Turn into...
1222	(aarch64_target::supports_z_point_type): ...this.
1223	(the_low_target): Remove the op field.
1224	* linux-arm-low.cc (class arm_target) <supports_z_point_type>:
1225	Declare.
1226	(arm_supports_z_point_type): Turn into...
1227	(arm_target::supports_z_point_type): ...this.
1228	(the_low_target): Remove the op field.
1229	* linux-crisv32-low.cc (class crisv32_target)
1230	<supports_z_point_type>: Declare.
1231	(cris_supports_z_point_type): Turn into...
1232	(crisv32_target::supports_z_point_type): ...this.
1233	(the_low_target): Remove the op field.
1234	* linux-mips-low.cc (class mips_target) <supports_z_point_type>:
1235	Declare.
1236	(mips_supports_z_point_type): Turn into...
1237	(mips_target::supports_z_point_type): ...this.
1238	(the_low_target): Remove the op field.
1239	* linux-ppc-low.cc (class ppc_target) <supports_z_point_type>:
1240	Declare.
1241	(ppc_supports_z_point_type): Turn into...
1242	(ppc_target::supports_z_point_type): ...this.
1243	(the_low_target): Remove the op field.
1244	* linux-s390-low.cc (class s390_target) <supports_z_point_type>:
1245	Declare.
1246	(s390_supports_z_point_type): Turn into...
1247	(s390_target::supports_z_point_type): ...this.
1248	(the_low_target): Remove the op field.
1249	* linux-bfin-low.cc (the_low_target): Remove the op field.
1250	* linux-m32r-low.cc (the_low_target): Ditto.
1251	* linux-m68k-low.cc (the_low_target): Ditto.
1252	* linux-sh-low.cc (the_low_target): Ditto.
1253	* linux-sparc-low.cc (the_low_target): Ditto.
1254	* linux-tic6x-low.cc (the_low_target): Ditto.
1255	* linux-tile-low.cc (the_low_target): Ditto.
1256	* linux-xtensa-low.cc (the_low_target): Ditto.
1257
12582020-04-02  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
1259
1260	Turn the 'breakpoint_at' linux target op into a method of
1261	linux_process_target.
1262
1263	* linux-low.h (struct linux_target_ops): Remove the op.
1264	(class linux_process_target) <low_breakpoint_at>: Declare.
1265
1266	Update the callers below:
1267
1268	* linux-low.cc (linux_process_target::save_stop_reason)
1269	(linux_process_target::thread_still_has_status_pending)
1270	(linux_process_target::wait_1)
1271
1272	* linux-x86-low.cc (class x86_target)
1273	<low_breakpoint_at>: Declare.
1274	(x86_breakpoint_at): Turn into...
1275	(x86_target::low_breakpoint_at): ...this.
1276	(the_low_target): Remove the op field.
1277	* linux-aarch64-low.cc (class aarch64_target)
1278	<low_breakpoint_at>: Declare.
1279	(aarch64_breakpoint_at): Turn into...
1280	(aarch64_target::low_breakpoint_at): ...this.
1281	(the_low_target): Remove the op field.
1282	* linux-arm-low.cc (class arm_target)
1283	<low_breakpoint_at>: Declare.
1284	(arm_target::low_breakpoint_at): Define.
1285	(the_low_target): Remove the op field.
1286	* linux-bfin-low.cc (class bfin_target)
1287	<low_breakpoint_at>: Declare.
1288	(bfin_breakpoint_at): Turn into...
1289	(bfin_target::low_breakpoint_at): ...this.
1290	(the_low_target): Remove the op field.
1291	* linux-cris-low.cc (class cris_target)
1292	<low_breakpoint_at>: Declare.
1293	(cris_breakpoint_at): Turn into...
1294	(cris_target::low_breakpoint_at): ...this.
1295	(the_low_target): Remove the op field.
1296	* linux-crisv32-low.cc (class crisv32_target)
1297	<low_breakpoint_at>: Declare.
1298	(crisv32_breakpoint_at): Turn into...
1299	(crisv32_target::low_breakpoint_at): ...this.
1300	(the_low_target): Remove the op field.
1301	* linux-ia64-low.cc (class ia64_target)
1302	<low_breakpoint_at>: Declare.
1303	(ia64_target::low_breakpoint_at): Define.
1304	* linux-m32r-low.cc (class m32r_target)
1305	<low_breakpoint_at>: Declare.
1306	(m32r_breakpoint_at): Turn into...
1307	(m32r_target::low_breakpoint_at): ...this.
1308	(the_low_target): Remove the op field.
1309	* linux-m68k-low.cc (class m68k_target)
1310	<low_breakpoint_at>: Declare.
1311	(m68k_breakpoint_at): Turn into...
1312	(m68k_target::low_breakpoint_at): ...this.
1313	(the_low_target): Remove the op field.
1314	* linux-mips-low.cc (class mips_target)
1315	<low_breakpoint_at>: Declare.
1316	(mips_breakpoint_at): Turn into...
1317	(mips_target::low_breakpoint_at): ...this.
1318	(the_low_target): Remove the op field.
1319	* linux-nios2-low.cc (class nios2_target)
1320	<low_breakpoint_at>: Declare.
1321	(nios2_breakpoint_at): Turn into...
1322	(nios2_target::low_breakpoint_at): ...this.
1323	(the_low_target): Remove the op field.
1324	* linux-ppc-low.cc (class ppc_target)
1325	<low_breakpoint_at>: Declare.
1326	(ppc_breakpoint_at): Turn into...
1327	(ppc_target::low_breakpoint_at): ...this.
1328	(the_low_target): Remove the op field.
1329	* linux-riscv-low.cc (class riscv_target)
1330	<low_breakpoint_at>: Declare.
1331	(riscv_breakpoint_at): Turn into...
1332	(riscv_target::low_breakpoint_at): ...this.
1333	(the_low_target): Remove the op field.
1334	* linux-s390-low.cc (class s390_target)
1335	<low_breakpoint_at>: Declare.
1336	(s390_breakpoint_at): Turn into...
1337	(s390_target::low_breakpoint_at): ...this.
1338	(the_low_target): Remove the op field.
1339	* linux-sh-low.cc (class sh_target)
1340	<low_breakpoint_at>: Declare.
1341	(sh_breakpoint_at): Turn into...
1342	(sh_target::low_breakpoint_at): ...this.
1343	(the_low_target): Remove the op field.
1344	* linux-sparc-low.cc (class sparc_target)
1345	<low_breakpoint_at>: Declare.
1346	(sparc_breakpoint_at): Turn into...
1347	(sparc_target::low_breakpoint_at): ...this.
1348	(the_low_target): Remove the op field.
1349	* linux-tic6x-low.cc (class tic6x_target)
1350	<low_breakpoint_at>: Declare.
1351	(tic6x_breakpoint_at): Turn into...
1352	(tic6x_target::low_breakpoint_at): ...this.
1353	(the_low_target): Remove the op field.
1354	* linux-tile-low.cc (class tile_target)
1355	<low_breakpoint_at>: Declare.
1356	(tile_breakpoint_at): Turn into...
1357	(tile_target::low_breakpoint_at): ...this.
1358	(the_low_target): Remove the op field.
1359	* linux-xtensa-low.cc (class xtensa_target)
1360	<low_breakpoint_at>: Declare.
1361	(xtensa_breakpoint_at): Turn into...
1362	(xtensa_target::low_breakpoint_at): ...this.
1363	(the_low_target): Remove the op field.
1364
13652020-04-02  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
1366
1367	Turn the 'decr_pc_after_break' linux_target_ops field into
1368	a method of linux_process_target.
1369
1370	* linux-low.h (struct linux_target_ops)
1371	<decr_pc_after_break>: Remove.
1372	(class linux_process_target) <low_decr_pc_after_break>: New method
1373	declaration.
1374	* linux-low.cc (linux_process_target::low_decr_pc_after_break):
1375	New method implementation.
1376
1377	Update the users below.
1378
1379	(linux_process_target::save_stop_reason)
1380	(linux_process_target::wait_1)
1381	* linux-x86-low.cc (class x86_target) <low_decr_pc_after_break>:
1382	New declaration.
1383	(x86_target::low_decr_pc_after_break): New method implementation.
1384	(the_low_target): Remove the field.
1385	* linux-bfin-low.cc (class bfin_target) <low_decr_pc_after_break>:
1386	New declaration.
1387	(bfin_target::low_decr_pc_after_break): New method implementation.
1388	(the_low_target): Remove the field.
1389	* linux-m68k-low.cc (class m68k_target) <low_decr_pc_after_break>:
1390	New declaration.
1391	(m68k_target::low_decr_pc_after_break): New method implementation.
1392	(the_low_target): Remove the field.
1393	* linux-s390-low.cc (class s390_target) <low_decr_pc_after_break>:
1394	New declaration.
1395	(s390_target::low_decr_pc_after_break): New method implementation.
1396	(the_low_target): Remove the field.
1397	* linux-aarch64-low.cc (the_low_target): Remove the field.
1398	* linux-arm-low.cc (the_low_target): Remove the field.
1399	* linux-cris-low.cc (the_low_target): Remove the field.
1400	* linux-crisv32-low.cc (the_low_target): Remove the field.
1401	* linux-m32r-low.cc (the_low_target): Remove the field.
1402	* linux-mips-low.cc (the_low_target): Remove the field.
1403	* linux-nios2-low.cc (the_low_target): Remove the field.
1404	* linux-ppc-low.cc (the_low_target): Remove the field.
1405	* linux-riscv-low.cc (the_low_target): Remove the field.
1406	* linux-sh-low.cc (the_low_target): Remove the field.
1407	* linux-sparc-low.cc (the_low_target): Remove the field.
1408	* linux-tic6x-low.cc (the_low_target): Remove the field.
1409	* linux-tile-low.cc (the_low_target): Remove the field.
1410	* linux-xtensa-low.cc (the_low_target): Remove the field.
1411
14122020-04-02  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
1413
1414	Remove the 'supports_software_single_step' linux target op and let
1415	the concrete linux target define it by overriding the op in
1416	process_stratum_target.
1417	Turn the 'get_next_pcs' linux target op into a method of
1418	linux_process_target.
1419
1420	* linux-low.h (struct linux_target_ops): Remove the ops.
1421	(class linux_process_target) <supports_software_single_step>:
1422	Remove.
1423	<low_get_next_pcs>: Declare.
1424	* linux-low.cc (can_software_single_step): Remove.
1425	(linux_process_target::low_get_next_pcs): Define.
1426	(linux_process_target::supports_software_single_step): Remove.
1427
1428	Update the callers below.
1429
1430	(linux_process_target::handle_extended_wait)
1431	(linux_process_target::wait_1)
1432	(linux_process_target::install_software_single_step_breakpoints)
1433	(linux_process_target::single_step)
1434	(linux_process_target::thread_needs_step_over)
1435	(linux_process_target::proceed_one_lwp)
1436	(linux_process_target::supports_range_stepping)
1437
1438	* linux-x86-low.cc (the_low_target): Remove the op field.
1439	* linux-aarch64-low.cc (the_low_target): Ditto.
1440	* linux-bfin-low.cc (the_low_target): Ditto.
1441	* linux-cris-low.cc (the_low_target): Ditto.
1442	* linux-crisv32-low.cc (the_low_target): Ditto.
1443	* linux-m32r-low.cc (the_low_target): Ditto.
1444	* linux-m68k-low.cc (the_low_target): Ditto.
1445	* linux-mips-low.cc (the_low_target): Ditto.
1446	* linux-nios2-low.cc (the_low_target): Ditto.
1447	* linux-ppc-low.cc (the_low_target): Ditto.
1448	* linux-riscv-low.cc (the_low_target): Ditto.
1449	* linux-s390-low.cc (the_low_target): Ditto.
1450	* linux-sh-low.cc (the_low_target): Ditto.
1451	* linux-sparc-low.cc (the_low_target): Ditto.
1452	* linux-tic6x-low.cc (the_low_target): Ditto.
1453	* linux-tile-low.cc (the_low_target): Ditto.
1454	* linux-xtensa-low.cc (the_low_target): Ditto.
1455	* linux-arm-low.cc (class arm_target) <low_get_next_pcs>
1456	<supports_software_single_step>: Declare.
1457	(arm_target::supports_software_single_step): Define.
1458	(arm_gdbserver_get_next_pcs): Turn into...
1459	(arm_target::low_get_next_pcs): ...this.
1460	(the_low_target): Remove the op field.
1461
14622020-04-02  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
1463
1464	Remove the 'sw_breakpoint_from_kind' linux target op, and let
1465	the concrete linux target define it by overriding the op
1466	in process_stratum_target.
1467
1468	* linux-low.cc (linux_process_target::sw_breakpoint_from_kind):
1469	Remove.
1470	* linux-low.h (struct linux_target_ops): Remove the op.
1471	(class linux_process_target) <sw_breakpoint_from_kind>: Remove.
1472	* linux-x86-low.cc (class x86_target) <sw_breakpoint_from_kind>:
1473	Declare.
1474	(x86_sw_breakpoint_from_kind): Turn into...
1475	(x86_target::sw_breakpoint_from_kind): ...this.
1476	(the_low_target): Remove the op field.
1477	* linux-aarch64-low.cc (class aarch64_target)
1478	<sw_breakpoint_from_kind>: Declare.
1479	(aarch64_sw_breakpoint_from_kind): Turn into...
1480	(aarch64_target::sw_breakpoint_from_kind): ...this.
1481	(the_low_target): Remove the op field.
1482	* linux-arm-low.cc (class arm_target) <sw_breakpoint_from_kind>:
1483	Declare.
1484	(arm_target::sw_breakpoint_from_kind): Define.
1485	(the_low_target): Remove the op field.
1486	* linux-bfin-low.cc (class bfin_target) <sw_breakpoint_from_kind>:
1487	Declare.
1488	(bfin_sw_breakpoint_from_kind): Turn into...
1489	(bfin_target::sw_breakpoint_from_kind): ...this.
1490	(the_low_target): Remove the op field.
1491	* linux-cris-low.cc (class cris_target) <sw_breakpoint_from_kind>:
1492	Declare.
1493	(cris_sw_breakpoint_from_kind): Turn into...
1494	(cris_target::sw_breakpoint_from_kind): ...this.
1495	(the_low_target): Remove the op field.
1496	* linux-crisv32-low.cc (class crisv32_target)
1497	<sw_breakpoint_from_kind>: Declare.
1498	(cris_sw_breakpoint_from_kind): Turn into...
1499	(crisv32_target::sw_breakpoint_from_kind): ...this.
1500	(the_low_target): Remove the op field.
1501	* linux-ia64-low.cc (class ia64_target) <sw_breakpoint_from_kind>:
1502	Declare.
1503	(ia64_target::sw_breakpoint_from_kind): Define.
1504	* linux-m32r-low.cc (class m32r_target) <sw_breakpoint_from_kind>:
1505	Declare.
1506	(m32r_sw_breakpoint_from_kind): Turn into...
1507	(m32r_target::sw_breakpoint_from_kind): ...this.
1508	(the_low_target): Remove the op field.
1509	* linux-m68k-low.cc (class m68k_target) <sw_breakpoint_from_kind>:
1510	Declare.
1511	(m68k_sw_breakpoint_from_kind): Turn into...
1512	(m68k_target::sw_breakpoint_from_kind): ...this.
1513	(the_low_target): Remove the op field.
1514	* linux-mips-low.cc (class mips_target) <sw_breakpoint_from_kind>:
1515	Declare.
1516	(mips_sw_breakpoint_from_kind): Turn into...
1517	(mips_target::sw_breakpoint_from_kind): ...this.
1518	(the_low_target): Remove the op field.
1519	* linux-nios2-low.cc (class nios2_target) <sw_breakpoint_from_kind>:
1520	Declare.
1521	(nios2_sw_breakpoint_from_kind): Turn into...
1522	(nios2_target::sw_breakpoint_from_kind): ...this.
1523	(the_low_target): Remove the op field.
1524	* linux-ppc-low.cc (class ppc_target) <sw_breakpoint_from_kind>:
1525	Declare.
1526	(ppc_sw_breakpoint_from_kind): Turn into...
1527	(ppc_target::sw_breakpoint_from_kind): ...this.
1528	(the_low_target): Remove the op field.
1529	* linux-riscv-low.cc (class riscv_target) <sw_breakpoint_from_kind>:
1530	Declare.
1531	(riscv_sw_breakpoint_from_kind): Turn into...
1532	(riscv_target::sw_breakpoint_from_kind): ...this.
1533	(the_low_target): Remove the op field.
1534	* linux-s390-low.cc (class s390_target) <sw_breakpoint_from_kind>:
1535	Declare.
1536	(s390_sw_breakpoint_from_kind): Turn into...
1537	(s390_target::sw_breakpoint_from_kind): ...this.
1538	(the_low_target): Remove the op field.
1539	* linux-sh-low.cc (class sh_target) <sw_breakpoint_from_kind>:
1540	Declare.
1541	(sh_sw_breakpoint_from_kind): Turn into...
1542	(sh_target::sw_breakpoint_from_kind): ...this.
1543	(the_low_target): Remove the op field.
1544	* linux-sparc-low.cc (class sparc_target) <sw_breakpoint_from_kind>:
1545	Declare.
1546	(sparc_sw_breakpoint_from_kind): Turn into...
1547	(sparc_target::sw_breakpoint_from_kind): ...this.
1548	(the_low_target): Remove the op field.
1549	* linux-tic6x-low.cc (class tic6x_target) <sw_breakpoint_from_kind>:
1550	Declare.
1551	(tic6x_sw_breakpoint_from_kind): Turn into...
1552	(tic6x_target::sw_breakpoint_from_kind): ...this.
1553	(the_low_target): Remove the op field.
1554	* linux-tile-low.cc (class tile_target) <sw_breakpoint_from_kind>:
1555	Declare.
1556	(tile_sw_breakpoint_from_kind): Turn into...
1557	(tile_target::sw_breakpoint_from_kind): ...this.
1558	(the_low_target): Remove the op field.
1559	* linux-xtensa-low.cc (class xtensa_target)
1560	<sw_breakpoint_from_kind>: Declare.
1561	(xtensa_sw_breakpoint_from_kind): Turn into...
1562	(xtensa_target::sw_breakpoint_from_kind): ...this.
1563	(the_low_target): Remove the op field.
1564
15652020-04-02  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
1566
1567	Remove the 'breakpoint_kind_from_pc' and
1568	'breakpoint_kind_from_current_state' linux target ops, and let the
1569	concrete linux target define them by overriding the ops of
1570	process_stratum_target.
1571
1572	* linux-low.cc (linux_process_target::breakpoint_kind_from_pc):
1573	Remove.
1574	(linux_process_target::breakpoint_kind_from_current_state): Remove.
1575	* linux-low.h (struct linux_target_ops): Remove ops.
1576	(class linux_process_target) <breakpoint_kind_from_pc>: Remove.
1577	<breakpoint_kind_from_current_state>: Remove.
1578	* linux-x86-low.cc (the_low_target): Remove the op fields.
1579	* linux-bfin-low.cc (the_low_target): Ditto.
1580	* linux-cris-low.cc (the_low_target): Ditto.
1581	* linux-crisv32-low.cc (the_low_target): Ditto.
1582	* linux-m32r-low.cc (the_low_target): Ditto.
1583	* linux-m68k-low.cc (the_low_target): Ditto.
1584	* linux-mips-low.cc (the_low_target): Ditto.
1585	* linux-nios2-low.cc (the_low_target): Ditto.
1586	* linux-ppc-low.cc (the_low_target): Ditto.
1587	* linux-s390-low.cc (the_low_target): Ditto.
1588	* linux-sh-low.cc (the_low_target): Ditto.
1589	* linux-sparc-low.cc (the_low_target): Ditto.
1590	* linux-tic6x-low.cc (the_low_target): Ditto.
1591	* linux-tile-low.cc (the_low_target): Ditto.
1592	* linux-xtensa-low.cc (the_low_target): Ditto.
1593	* linux-aarch64-low.cc (class aarch64_target)
1594	<breakpoint_kind_from_pc>
1595	<breakpoint_kind_from_current_state>: Declare.
1596	(aarch64_breakpoint_kind_from_pc): Turn into...
1597	(aarch64_target::breakpoint_kind_from_pc): ...this.
1598	(aarch64_breakpoint_kind_from_current_state): Turn into...
1599	(aarch64_target::breakpoint_kind_from_current_state): ...this.
1600	(the_low_target): Remove the op fields.
1601	* linux-arm-low.cc (class arm_target):
1602	<breakpoint_kind_from_pc>
1603	<breakpoint_kind_from_current_state>: Declare.
1604	(arm_target::breakpoint_kind_from_pc): Define.
1605	(arm_target::breakpoint_kind_from_current_state): Define.
1606	(the_low_target): Remove the op fields.
1607	* linux-riscv-low.cc (class riscv_target):
1608	<breakpoint_kind_from_pc>: Declare.
1609	(riscv_breakpoint_kind_from_pc): Turn into...
1610	(riscv_target::breakpoint_kind_from_pc): ...this.
1611	(the_low_target): Remove the op fields.
1612
16132020-04-02  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
1614
1615	Turn the 'get_pc' and 'set_pc' linux target ops into methods
1616	of linux_process_target.
1617
1618	* linux-low.h (struct linux_target_ops): Remove the ops.
1619	(class linux_process_target) <low_supports_breakpoints>
1620	<low_get_pc>
1621	<low_set_pc>: Declare.
1622	* linux-low.cc (supports_breakpoints): Turn into...
1623	(linux_process_target::low_supports_breakpoints): ...this.
1624	(linux_process_target::low_get_pc): Define.
1625	(linux_process_target::low_set_pc): Define.
1626
1627	Update the callers below.
1628
1629	(linux_process_target::get_pc)
1630	(linux_process_target::save_stop_reason)
1631	(linux_process_target::maybe_move_out_of_jump_pad)
1632	(linux_process_target::wait_1)
1633	(linux_process_target::resume_one_lwp_throw)
1634	(linux_process_target::resume)
1635	(linux_process_target::proceed_all_lwps)
1636	(linux_process_target::read_pc)
1637	(linux_process_target::write_pc)
1638
1639	* linux-x86-low.cc (class linux_process_target)
1640	<low_supports_breakpoints>
1641	<low_get_pc>
1642	<low_set_pc>: Declare.
1643	(x86_target::low_supports_breakpoints): Define.
1644	(x86_get_pc): Turn into...
1645	(x86_target::low_get_pc): ...this.
1646	(x86_set_pc): Turn into...
1647	(x86_target::low_set_pc): ...this.
1648	(the_low_target): Remove the op fields.
1649	* linux-arm-low.cc (class arm_target)
1650	<low_supports_breakpoints>
1651	<low_get_pc>
1652	<low_set_pc>: Declare.
1653	(arm_target::low_supports_breakpoints)
1654	(arm_target::low_get_pc)
1655	(arm_target::low_set_pc): Define.
1656	(the_low_target): Remove the op fields.
1657	* linux-bfin-low.cc (class bfin_target)
1658	<low_supports_breakpoints>
1659	<low_get_pc>
1660	<low_set_pc>: Declare.
1661	(bfin_target::low_supports_breakpoints)
1662	(bfin_target::low_get_pc)
1663	(bfin_target::low_set_pc): Define.
1664	(the_low_target): Remove the op fields.
1665	* linux-cris-low.cc (class cris_target)
1666	<low_supports_breakpoints>
1667	<low_get_pc>
1668	<low_set_pc>: Declare.
1669	(cris_target::low_supports_breakpoints)
1670	(cris_target::low_get_pc)
1671	(cris_target::low_set_pc): Define.
1672	(the_low_target): Remove the op fields.
1673	* linux-crisv32-low.cc (class crisv32_target)
1674	<low_supports_breakpoints>
1675	<low_get_pc>
1676	<low_set_pc>: Declare.
1677	(crisv32_target::low_supports_breakpoints)
1678	(crisv32_target::low_get_pc)
1679	(crisv32_target::low_set_pc): Define.
1680	(the_low_target): Remove the op fields.
1681	* linux-m32r-low.cc (class m32r_target)
1682	<low_supports_breakpoints>
1683	<low_get_pc>
1684	<low_set_pc>: Declare.
1685	(m32r_target::low_supports_breakpoints)
1686	(m32r_target::low_get_pc)
1687	(m32r_target::low_set_pc): Define.
1688	(the_low_target): Remove the op fields.
1689	* linux-m68k-low.cc (class m68k_target)
1690	<low_supports_breakpoints>
1691	<low_get_pc>
1692	<low_set_pc>: Declare.
1693	(m68k_target::low_supports_breakpoints)
1694	(m68k_target::low_get_pc)
1695	(m68k_target::low_set_pc): Define.
1696	(the_low_target): Remove the op fields.
1697	* linux-nios2-low.cc (class nios2_target)
1698	<low_supports_breakpoints>
1699	<low_get_pc>
1700	<low_set_pc>: Declare.
1701	(nios2_target::low_supports_breakpoints)
1702	(nios2_target::low_get_pc)
1703	(nios2_target::low_set_pc): Define.
1704	(the_low_target): Remove the op fields.
1705	* linux-sh-low.cc (class sh_target)
1706	<low_supports_breakpoints>
1707	<low_get_pc>
1708	<low_set_pc>: Declare.
1709	(sh_target::low_supports_breakpoints)
1710	(sh_target::low_get_pc)
1711	(sh_target::low_set_pc): Define.
1712	(the_low_target): Remove the op fields.
1713	* linux-xtensa-low.cc (class xtensa_target)
1714	<low_supports_breakpoints>
1715	<low_get_pc>
1716	<low_set_pc>: Declare.
1717	(xtensa_target::low_supports_breakpoints)
1718	(xtensa_target::low_get_pc)
1719	(xtensa_target::low_set_pc): Define.
1720	(the_low_target): Remove the op fields.
1721	* linux-sparc-low.cc (class sparc_target)
1722	<low_supports_breakpoints>
1723	<low_get_pc>: Declare.
1724	(sparc_target::low_supports_breakpoints)
1725	(sparc_target::low_get_pc): Define.
1726	(the_low_target): Remove the op fields.
1727	* linux-tile-low.cc (class tile_target)
1728	<low_supports_breakpoints>
1729	<low_get_pc>
1730	<low_set_pc>: Declare.
1731	(tile_target::low_supports_breakpoints)
1732	(tile_target::low_get_pc)
1733	(tile_target::low_set_pc): Define.
1734	(the_low_target): Remove the op fields.
1735	* linux-aarch64-low.cc (class aarch64_target)
1736	<low_supports_breakpoints>
1737	<low_get_pc>
1738	<low_set_pc>: Declare.
1739	(aarch64_target::low_supports_breakpoints): Define.
1740	(aarch64_get_pc): Turn into...
1741	(aarch64_target::low_get_pc): ...this.
1742	(aarch64_set_pc): Turn into...
1743	(aarch64_target::low_set_pc): ...this.
1744	(the_low_target): Remove the op fields.
1745	* linux-mips-low.cc (class mips_target)
1746	<low_supports_breakpoints>
1747	<low_get_pc>
1748	<low_set_pc>: Declare.
1749	(mips_target::low_supports_breakpoints): Define.
1750	(mips_get_pc): Turn into...
1751	(mips_target::low_get_pc): ...this.
1752	(mips_set_pc): Turn into...
1753	(mips_target::low_set_pc): ...this.
1754	(the_low_target): Remove the op fields.
1755	* linux-ppc-low.cc (class ppc_target)
1756	<low_supports_breakpoints>
1757	<low_get_pc>
1758	<low_set_pc>: Declare.
1759	(ppc_target::low_supports_breakpoints): Define.
1760	(ppc_get_pc): Turn into...
1761	(ppc_target::low_get_pc): ...this.
1762	(ppc_set_pc): Turn into...
1763	(ppc_target::low_set_pc): ...this.
1764	(the_low_target): Remove the op fields.
1765	* linux-riscv-low.cc (class riscv_target)
1766	<low_supports_breakpoints>
1767	<low_get_pc>
1768	<low_set_pc>: Declare.
1769	(riscv_target::low_supports_breakpoints): Define.
1770	(riscv_get_pc): Turn into...
1771	(riscv_target::low_get_pc): ...this.
1772	(riscv_set_pc): Turn into...
1773	(riscv_target::low_set_pc): ...this.
1774	(the_low_target): Remove the op fields.
1775	* linux-s390-low.cc (class s390_target)
1776	<low_supports_breakpoints>
1777	<low_get_pc>
1778	<low_set_pc>: Declare.
1779	(s390_target::low_supports_breakpoints): Define.
1780	(s390_get_pc): Turn into...
1781	(s390_target::low_get_pc): ...this.
1782	(s390_set_pc): Turn into...
1783	(s390_target::low_set_pc): ...this.
1784	(the_low_target): Remove the op fields.
1785	* linux-tic6x-low.cc (class tic6x_target)
1786	<low_supports_breakpoints>
1787	<low_get_pc>
1788	<low_set_pc>: Declare.
1789	(tic6x_target::low_supports_breakpoints): Define.
1790	(tic6x_get_pc): Turn into...
1791	(tic6x_target::low_get_pc): ...this.
1792	(tic6x_set_pc): Turn into...
1793	(tic6x_target::low_set_pc): ...this.
1794	(the_low_target): Remove the op fields.
1795
17962020-04-02  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
1797
1798	Turn some more static methods in linux-low into private methods
1799	of linux_process_target.
1800
1801	* linux-low.cc (get_pc): Turn into...
1802	(linux_process_target::get_pc): ...this.
1803	(save_stop_reason): Turn into...
1804	(linux_process_target::save_stop_reason): ...this.
1805	(thread_still_has_status_pending_p): Turn into...
1806	(linux_process_target::thread_still_has_status_pending): ...this.
1807	(status_pending_p_callback): Turn into...
1808	(linux_process_target::status_pending_p_callback): ...this.
1809	(resume_stopped_resumed_lwps): Turn into...
1810	(linux_process_target::resume_stopped_resumed_lwps): ...this.
1811	(install_software_single_step_breakpoints): Turn into...
1812	(linux_process_target::install_software_single_step_breakpoints):
1813	...this.
1814	(single_step): Turn into...
1815	(linux_process_target::single_step): ...this.
1816	(linux_resume_one_lwp_throw): Turn into...
1817	(linux_process_target::resume_one_lwp_throw): ...this.
1818	(linux_resume_one_lwp): Turn into...
1819	(linux_process_target::resume_one_lwp): ...this.
1820	(resume_status_pending_p): Turn into...
1821	(linux_process_target::resume_status_pending): ...this.
1822	(need_step_over_p): Turn into...
1823	(linux_process_target::thread_needs_step_over): ...this.
1824	(linux_resume_one_thread): Turn into...
1825	(linux_process_target::resume_one_thread): ...this.
1826	(proceed_one_lwp): Turn into...
1827	(linux_process_target::proceed_one_lwp): ...this.
1828	(unsuspend_and_proceed_one_lwp): Turn into...
1829	(linux_process_target::unsuspend_and_proceed_one_lwp): ...this.
1830
1831	Update the calls/references to the above functions below.
1832
1833	(linux_process_target::handle_extended_wait)
1834	(linux_process_target::filter_event)
1835	(linux_process_target::wait_for_event_filtered)
1836	(linux_process_target::wait_1)
1837	(linux_process_target::move_out_of_jump_pad)
1838	(linux_process_target::start_step_over)
1839	(linux_process_target::resume)
1840	(linux_process_target::proceed_all_lwps)
1841	(regsets_store_inferior_registers)
1842	(linux_process_target::store_register)
1843
1844	* linux-low.h (class linux_process_target)
1845	<get_pc>
1846	<save_stop_reason>
1847	<thread_still_has_status_pending>
1848	<status_pending_p_callback>
1849	<resume_stopped_resumed_lwps>
1850	<install_software_single_step_breakpoints>
1851	<single_step>
1852	<resume_one_lwp_throw>
1853	<resume_one_lwp>
1854	<resume_status_pending>
1855	<thread_needs_step_over>
1856	<resume_one_thread>
1857	<proceed_one_lwp>
1858	<unsuspend_and_proceed_one_lwp>: Declare.
1859
18602020-04-02  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
1861
1862	Turn the 'fetch_register' linux target op into a method of
1863	linux_process_target.
1864
1865	* linux-low.h (struct linux_target_ops) <fetch_register>: Remove.
1866	(class linux_process_target) <low_fetch_register>: Declare.
1867	* linux-x86-low.cc (the_low_target)
1868	* linux-aarch64-low.cc (the_low_target)
1869	* linux-arm-low.cc (the_low_target)
1870	* linux-bfin-low.cc (the_low_target)
1871	* linux-cris-low.cc (the_low_target)
1872	* linux-crisv32-low.cc (the_low_target)
1873	* linux-m32r-low.cc (the_low_target)
1874	* linux-m68k-low.cc (the_low_target)
1875	* linux-nios2-low.cc (the_low_target)
1876	* linux-ppc-low.cc (the_low_target)
1877	* linux-s390-low.cc (the_low_target)
1878	* linux-sh-low.cc (the_low_target)
1879	* linux-sparc-low.cc (the_low_target)
1880	* linux-tic6x-low.cc (the_low_target)
1881	* linux-tile-low.cc (the_low_target)
1882	* linux-xtensa-low.cc (the_low_target): Remove the op field.
1883	* linux-ia64-low.cc (class ia64_target) <low_fetch_register>:
1884	Declare.
1885	(ia64_fetch_register): Turn into...
1886	(ia64_target::low_fetch_register): ...this.
1887	(the_low_target): Remove the op field.
1888	* linux-mips-low.cc (class mips_target) <low_fetch_register>:
1889	Declare.
1890	(mips_fetch_register): Turn into...
1891	(mips_target::low_fetch_register): ...this.
1892	(the_low_target): Remove the op field.
1893	* linux-riscv-low.cc (class riscv_target) <low_fetch_register>:
1894	Declare.
1895	(riscv_fetch_register): Turn into...
1896	(riscv_target::low_fetch_register): ...this.
1897	(the_low_target): Remove the op field.
1898
1899	Update the callers below.
1900
1901	* linux-low.cc (linux_process_target::fetch_registers)
1902	(linux_process_target::low_fetch_register)
1903
19042020-04-02  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
1905
1906	Turn the 'cannot_fetch_register' and 'cannot_store_register'
1907	linux target ops into methods of linux_process_target.
1908
1909	* linux-low.h (struct linux_target_ops): Remove the low target ops.
1910	(class linux_process_target) <fetch_register>
1911	<store_register>
1912	<usr_fetch_inferior_registers>
1913	<usr_store_inferior_registers>
1914	<low_cannot_fetch_register>
1915	<low_cannot_fetch_register> Declare.
1916	* linux-low.cc (fetch_register): Turn into...
1917	(linux_process_target::fetch_register): ...this.
1918	(store_register): Turn into ...
1919	(linux_process_target::store_register): ...this.
1920	(usr_fetch_inferior_registers): Turn into...
1921	(linux_process_target::usr_fetch_inferior_registers): ...this.
1922	(usr_store_inferior_registers): Turn into...
1923	(linux_process_target::usr_store_inferior_registers): ...this.
1924	* linux-x86-low.cc (class x86_target)
1925	<low_cannot_fetch_register>
1926	<low_cannot_store_register>: Declare.
1927	(x86_cannot_store_register): Turn into...
1928	(x86_target::low_cannot_store_register): ...this.
1929	(x86_cannot_fetch_register): Turn into...
1930	(x86_target::low_cannot_fetch_register): ...this.
1931	(the_low_target): Remove the target op fields.
1932	* linux-aarch64-low.cc (class aarch64_target)
1933	<low_cannot_fetch_register>
1934	<low_cannot_store_register>: Declare.
1935	(aarch64_target::low_cannot_fetch_register)
1936	(aarch64_target::low_cannot_store_register): Define.
1937	(the_low_target): Remove the op fields.
1938	* linux-arm-low.cc (class arm_target)
1939	<low_cannot_fetch_register>
1940	<low_cannot_store_register>: Declare.
1941	(arm_cannot_fetch_register): Turn into...
1942	(arm_target::low_cannot_fetch_register): ...this.
1943	(arm_cannot_store_register): Turn into...
1944	(arm_target::low_cannot_store_register): ...this.
1945	(the_low_target): Remove the op fields.
1946	* linux-bfin-low.cc (class bfin_target)
1947	<low_cannot_fetch_register>
1948	<low_cannot_store_register>: Declare.
1949	(bfin_cannot_fetch_register): Turn into...
1950	(bfin_target::low_cannot_fetch_register): ...this.
1951	(bfin_cannot_store_register): Turn into...
1952	(bfin_target::low_cannot_store_register): ...this.
1953	(the_low_target): Remove the op fields.
1954	* linux-cris-low.cc (class cris_target)
1955	<low_cannot_fetch_register>
1956	<low_cannot_store_register>: Declare.
1957	(cris_cannot_fetch_register): Turn into...
1958	(cris_target::low_cannot_fetch_register): ...this.
1959	(cris_cannot_store_register): Turn into...
1960	(cris_target::low_cannot_store_register): ...this.
1961	(the_low_target): Remove the op fields.
1962	* linux-crisv32-low.cc (class crisv32_target)
1963	<low_cannot_fetch_register>
1964	<low_cannot_store_register>: Declare.
1965	(crisv32_target::low_cannot_fetch_register)
1966	(crisv32_target::low_cannot_store_register): Define.
1967	(the_low_target): Remove the op fields.
1968	* linux-ia64-low.cc (class ia64_target)
1969	<low_cannot_fetch_register>
1970	<low_cannot_store_register>: Declare.
1971	(ia64_cannot_fetch_register): Turn into...
1972	(ia64_target::low_cannot_fetch_register): ...this.
1973	(ia64_cannot_store_register): Turn into...
1974	(ia64_target::low_cannot_store_register): ...this.
1975	(the_low_target): Remove the op fields.
1976	* linux-m32r-low.cc (class m32r_target)
1977	<low_cannot_fetch_register>
1978	<low_cannot_store_register>: Declare.
1979	(m32r_cannot_fetch_register): Turn into...
1980	(m32r_target::low_cannot_fetch_register): ...this.
1981	(m32r_cannot_store_register): Turn into...
1982	(m32r_target::low_cannot_store_register): ...this.
1983	(the_low_target): Remove the op fields.
1984	* linux-m68k-low.cc (class m68k_target)
1985	<low_cannot_fetch_register>
1986	<low_cannot_store_register>: Declare.
1987	(m68k_cannot_fetch_register): Turn into...
1988	(m68k_target::low_cannot_fetch_register): ...this.
1989	(m68k_cannot_store_register): Turn into...
1990	(m68k_target::low_cannot_store_register): ...this.
1991	(the_low_target): Remove the op fields.
1992	* linux-mips-low.cc (class mips_target)
1993	<low_cannot_fetch_register>
1994	<low_cannot_store_register>: Declare.
1995	(mips_cannot_fetch_register): Turn into...
1996	(mips_target::low_cannot_fetch_register): ...this.
1997	(mips_cannot_store_register): Turn into...
1998	(mips_target::low_cannot_store_register): ...this.
1999	(get_usrregs_info): Inline at the call sites in
2000	low_cannot_fetch_register and low_cannot_store_register,
2001	and remove.
2002	(the_low_target): Remove the op fields.
2003	* linux-nios2-low.cc (class nios2_target)
2004	<low_cannot_fetch_register>
2005	<low_cannot_store_register>: Declare.
2006	(nios2_cannot_fetch_register): Turn into...
2007	(nios2_target::low_cannot_fetch_register): ...this.
2008	(nios2_cannot_store_register): Turn into...
2009	(nios2_target::low_cannot_store_register): ...this.
2010	(the_low_target): Remove the op fields.
2011	* linux-ppc-low.cc (class ppc_target)
2012	<low_cannot_fetch_register>
2013	<low_cannot_store_register>: Declare.
2014	(ppc_cannot_fetch_register): Turn into...
2015	(ppc_target::low_cannot_fetch_register): ...this.
2016	(ppc_cannot_store_register): Turn into...
2017	(ppc_target::low_cannot_store_register): ...this.
2018	(the_low_target): Remove the op fields.
2019	* linux-riscv-low.cc (class riscv_target)
2020	<low_cannot_fetch_register>
2021	<low_cannot_store_register>: Declare.
2022	(riscv_target::low_cannot_fetch_register)
2023	(riscv_target::low_cannot_store_register): Define.
2024	(the_low_target): Remove the op fields.
2025	* linux-s390-low.cc (class s390_target)
2026	<low_cannot_fetch_register>
2027	<low_cannot_store_register>: Declare.
2028	(s390_cannot_fetch_register): Turn into...
2029	(s390_target::low_cannot_fetch_register): ...this.
2030	(s390_cannot_store_register): Turn into...
2031	(s390_target::low_cannot_store_register): ...this.
2032	(the_low_target): Remove the op fields.
2033	* linux-sh-low.cc (class sh_target)
2034	<low_cannot_fetch_register>
2035	<low_cannot_store_register>: Declare.
2036	(sh_cannot_fetch_register): Turn into...
2037	(sh_target::low_cannot_fetch_register): ...this.
2038	(sh_cannot_store_register): Turn into...
2039	(sh_target::low_cannot_store_register): ...this.
2040	(the_low_target): Remove the op fields.
2041	* linux-sparc-low.cc (class sparc_target)
2042	<low_cannot_fetch_register>
2043	<low_cannot_store_register>: Declare.
2044	(sparc_cannot_fetch_register): Turn into...
2045	(sparc_target::low_cannot_fetch_register): ...this.
2046	(sparc_cannot_store_register): Turn into...
2047	(sparc_target::low_cannot_store_register): ...this.
2048	(the_low_target): Remove the op fields.
2049	* linux-tic6x-low.cc (class tic6x_target)
2050	<low_cannot_fetch_register>
2051	<low_cannot_store_register>: Declare.
2052	(tic6x_cannot_fetch_register): Turn into...
2053	(tic6x_target::low_cannot_fetch_register): ...this.
2054	(tic6x_cannot_store_register): Turn into...
2055	(tic6x_target::low_cannot_store_register): ...this.
2056	(the_low_target): Remove the op fields.
2057	* linux-tile-low.cc (class tile_target)
2058	<low_cannot_fetch_register>
2059	<low_cannot_store_register>: Declare.
2060	(tile_cannot_fetch_register): Turn into...
2061	(tile_target::low_cannot_fetch_register): ...this.
2062	(tile_cannot_store_register): Turn into...
2063	(tile_target::low_cannot_store_register): ...this.
2064	(the_low_target): Remove the op fields.
2065	* linux-xtensa-low.cc (class xtensa_target)
2066	<low_cannot_fetch_register>
2067	<low_cannot_store_register>: Declare.
2068	(xtensa_target::low_cannot_fetch_register)
2069	(xtensa_target::low_cannot_store_register): Define.
2070	(the_low_target): Remove the op fields.
2071
20722020-04-02  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
2073
2074	Turn the 'regs_info' linux target op into a method of
2075	linux_process_target.
2076
2077	* linux-low.h (struct linux_target_ops) <regs_info>: Remove.
2078	(class linux_process_target) <get_regs_info>: Define.
2079
2080	Update the callers below.
2081
2082	* linux-low.cc (linux_process_target::fetch_registers)
2083	(linux_process_target::store_registers)
2084	* proc-service.cc (gregset_info)
2085
2086	* linux-x86-low.cc (class x86_target) <get_regs_info>: Declare.
2087	(x86_linux_regs_info): Turn into ...
2088	(x86_target::get_regs_info): ...this.
2089	(the_low_target): Remove the op field.
2090	* linux-aarch64-low.cc (class aarch64_target) <get_regs_info>:
2091	Declare.
2092	(aarch64_regs_info): Turn into ...
2093	(aarch64_target::get_regs_info): ...this.
2094	(the_low_target): Remove the op field.
2095	* linux-arm-low.cc (class arm_target) <get_regs_info>: Declare.
2096	(arm_regs_info): Turn into ...
2097	(arm_target::get_regs_info): ...this.
2098	(the_low_target): Remove the op field.
2099	* linux-bfin-low.cc (class bfin_target) <get_regs_info>: Declare.
2100	(bfin_regs_info): Turn into ...
2101	(bfin_target::get_regs_info): ...this.
2102	(the_low_target): Remove the op field.
2103	* linux-cris-low.cc (class cris_target) <get_regs_info>: Declare.
2104	(cris_regs_info): Turn into ...
2105	(cris_target::get_regs_info): ...this.
2106	(the_low_target): Remove the op field.
2107	* linux-crisv32-low.cc (class crisv32_target) <get_regs_info>:
2108	Declare.
2109	(crisv32_regs_info): Turn into ...
2110	(crisv32_target::get_regs_info): ...this.
2111	(the_low_target): Remove the op field.
2112	* linux-ia64-low.cc (class ia64_target) <get_regs_info>: Declare.
2113	(ia64_regs_info): Turn into ...
2114	(ia64_target::get_regs_info): ...this.
2115	(the_low_target): Remove the op field.
2116	* linux-m32r-low.cc (class m32r_target) <get_regs_info>: Declare.
2117	(m32r_regs_info): Turn into ...
2118	(m32r_target::get_regs_info): ...this.
2119	(the_low_target): Remove the op field.
2120	* linux-m68k-low.cc (class m68k_target) <get_regs_info>: Declare.
2121	(m68k_regs_info): Turn into ...
2122	(m68k_target::get_regs_info): ...this.
2123	(the_low_target): Remove the op field.
2124	* linux-mips-low.cc (class mips_target) <get_regs_info>: Declare.
2125	(mips_regs_info): Turn into ...
2126	(mips_target::get_regs_info): ...this.
2127	(the_low_target): Remove the op field.
2128	(get_usrregs_info): Update the call to the op.
2129	* linux-nios2-low.cc (class nios2_target) <get_regs_info>: Declare.
2130	(nios2_regs_info): Turn into ...
2131	(nios2_target::get_regs_info): ...this.
2132	(the_low_target): Remove the op field.
2133	* linux-ppc-low.cc (class ppc_target) <get_regs_info>: Declare.
2134	(ppc_regs_info): Turn into ...
2135	(ppc_target::get_regs_info): ...this.
2136	(the_low_target): Remove the op field.
2137	* linux-riscv-low.cc (class riscv_target) <get_regs_info>: Declare.
2138	(riscv_regs_info): Turn into ...
2139	(riscv_target::get_regs_info): ...this.
2140	(the_low_target): Remove the op field.
2141	* linux-s390-low.cc (class s390_target) <get_regs_info>: Declare.
2142	(s390_regs_info): Turn into ...
2143	(s390_target::get_regs_info): ...this.
2144	(the_low_target): Remove the op field.
2145	(s390_collect_ptrace_register)
2146	(s390_supply_ptrace_register)
2147	(s390_fill_gregset): Update the call to the op.
2148	* linux-sh-low.cc (class sh_target) <get_regs_info>: Declare.
2149	(sh_regs_info): Turn into ...
2150	(sh_target::get_regs_info): ...this.
2151	(the_low_target): Remove the op field.
2152	* linux-sparc-low.cc (class sparc_target) <get_regs_info>: Declare.
2153	(sparc_regs_info): Turn into ...
2154	(sparc_target::get_regs_info): ...this.
2155	(the_low_target): Remove the op field.
2156	* linux-tic6x-low.cc (class tic6x_target) <get_regs_info>: Declare.
2157	(tic6x_regs_info): Turn into ...
2158	(tic6x_target::get_regs_info): ...this.
2159	(the_low_target): Remove the op field.
2160	* linux-tile-low.cc (class tile_target) <get_regs_info>: Declare.
2161	(tile_regs_info): Turn into ...
2162	(tile_target::get_regs_info): ...this.
2163	(the_low_target): Remove the op field.
2164	* linux-xtensa-low.cc (class xtensa_target) <get_regs_info>:
2165	Declare.
2166	(xtensa_regs_info): Turn into ...
2167	(xtensa_target::get_regs_info): ...this.
2168	(the_low_target): Remove the op field.
2169
21702020-04-02  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
2171
2172	Turn the 'arch_setup' linux target op into a method of
2173	linux_process_target.
2174
2175	* linux-low.h (struct linux_target_ops) <arch_setup>: Delete.
2176	(class linux_process_target) <arch_setup_thread>
2177	<low_arch_setup>: New declarations.
2178	* linux-low.cc (linux_arch_setup): Delete.
2179	(linux_arch_setup_thread): Turn into...
2180	(linux_process_target::arch_setup_thread): ... this.
2181
2182	Update the callers below.
2183
2184	(linux_process_target::handle_extended_wait)
2185	(linux_process_target::post_create_inferior)
2186	(linux_process_target::filter_event)
2187
2188	* linux-x86-low.cc (class x86_target) <low_arch_setup>: New
2189	declaration.
2190	(x86_linux_update_xmltarget): Turn into...
2191	(x86_target::update_xmltarget): ...this.
2192	(x86_linux_process_qsupported): Update the call to
2193	x86_linux_update_xmltarget.
2194	(x86_arch_setup): Turn into ...
2195	(x86_target::low_arch_setup): ...this.
2196	(the_low_target): Remove the op field.
2197	* linux-aarch64-low.cc (class aarch64_target) <low_arch_setup>: New
2198	declaration.
2199	(aarch64_arch_setup): Turn into ...
2200	(aarch64_target::low_arch_setup): ...this.
2201	(the_low_target): Remove the op field.
2202	* linux-arm-low.cc (class arm_target) <low_arch_setup>: New
2203	declaration.
2204	(arm_arch_setup): Turn into ...
2205	(arm_target::low_arch_setup): ...this.
2206	(the_low_target): Remove the op field.
2207	* linux-bfin-low.cc (class bfin_target) <low_arch_setup>: New
2208	declaration.
2209	(bfin_arch_setup): Turn into ...
2210	(bfin_target::low_arch_setup): ...this.
2211	(the_low_target): Remove the op field.
2212	* linux-cris-low.cc (class cris_target) <low_arch_setup>: New
2213	declaration.
2214	(cris_arch_setup): Turn into ...
2215	(cris_target::low_arch_setup): ...this.
2216	(the_low_target): Remove the op field.
2217	* linux-crisv32-low.cc (class crisv32_target) <low_arch_setup>: New
2218	declaration.
2219	(crisv32_arch_setup): Turn into ...
2220	(crisv32_target::low_arch_setup): ...this.
2221	(the_low_target): Remove the op field.
2222	* linux-ia64-low.cc (class ia64_target) <low_arch_setup>: New
2223	declaration.
2224	(ia64_arch_setup): Turn into ...
2225	(ia64_target::low_arch_setup): ...this.
2226	(the_low_target): Remove the op field.
2227	* linux-m32r-low.cc (class m32r_target) <low_arch_setup>: New
2228	declaration.
2229	(m32r_arch_setup): Turn into ...
2230	(m32r_target::low_arch_setup): ...this.
2231	(the_low_target): Remove the op field.
2232	* linux-m68k-low.cc (class m68k_target) <low_arch_setup>: New
2233	declaration.
2234	(m68k_arch_setup): Turn into ...
2235	(m68k_target::low_arch_setup): ...this.
2236	(the_low_target): Remove the op field.
2237	* linux-mips-low.cc (class mips_target) <low_arch_setup>: New
2238	declaration.
2239	(mips_arch_setup): Turn into ...
2240	(mips_target::low_arch_setup): ...this.
2241	(the_low_target): Remove the op field.
2242	* linux-nios2-low.cc (class nios2_target) <low_arch_setup>: New
2243	declaration.
2244	(nios2_arch_setup): Turn into ...
2245	(nios2_target::low_arch_setup): ...this.
2246	(the_low_target): Remove the op field.
2247	* linux-ppc-low.cc (class ppc_target) <low_arch_setup>: New
2248	declaration.
2249	(ppc_arch_setup): Turn into ...
2250	(ppc_target::low_arch_setup): ...this.
2251	(the_low_target): Remove the op field.
2252	* linux-riscv-low.cc (class riscv_target) <low_arch_setup>: New
2253	declaration.
2254	(riscv_arch_setup): Turn into ...
2255	(riscv_target::low_arch_setup): ...this.
2256	(the_low_target): Remove the op field.
2257	* linux-s390-low.cc (class s390_target) <low_arch_setup>: New
2258	declaration.
2259	(s390_arch_setup): Turn into ...
2260	(s390_target::low_arch_setup): ...this.
2261	(the_low_target): Remove the op field.
2262	* linux-sh-low.cc (class sh_target) <low_arch_setup>: New
2263	declaration.
2264	(sh_arch_setup): Turn into ...
2265	(sh_target::low_arch_setup): ...this.
2266	(the_low_target): Remove the op field.
2267	* linux-sparc-low.cc (class sparc_target) <low_arch_setup>: New
2268	declaration.
2269	(sparc_arch_setup): Turn into ...
2270	(sparc_target::low_arch_setup): ...this.
2271	(the_low_target): Remove the op field.
2272	* linux-tic6x-low.cc (class tic6x_target) <low_arch_setup>: New
2273	declaration.
2274	(tic6x_arch_setup): Turn into ...
2275	(tic6x_target::low_arch_setup): ...this.
2276	(the_low_target): Remove the op field.
2277	* linux-tile-low.cc (class tile_target) <low_arch_setup>: New
2278	declaration.
2279	(tile_arch_setup): Turn into ...
2280	(tile_target::low_arch_setup): ...this.
2281	(the_low_target): Remove the op field.
2282	* linux-xtensa-low.cc (class xtensa_target) <low_arch_setup>: New
2283	declaration.
2284	(xtensa_arch_setup): Turn into ...
2285	(xtensa_target::low_arch_setup): ...this.
2286	(the_low_target): Remove the op field.
2287
22882020-04-02  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
2289
2290	* linux-low.h (the_linux_target): New extern declaration.
2291	* linux-low.cc (initialize_low): Use 'the_linux_target' to set
2292	'the_target'.
2293	(the_linux_target): Remove.
2294	* linux-x86-low.cc (class x86_target): New class.
2295	(the_x86_target): New static object.
2296	(the_linux_target): Define as pointer to the_x86_target.
2297	* linux-aarch64-low.cc (class aarch64_target): New class.
2298	(the_aarch64_target): New static object.
2299	(the_linux_target): Define as pointer to the_aarch64_target.
2300	* linux-arm-low.cc (class arm_target): New class.
2301	(the_arm_target): New static object.
2302	(the_linux_target): Define as pointer to the_arm_target.
2303	* linux-bfin-low.cc (class bfin_target): New class.
2304	(the_bfin_target): New static object.
2305	(the_linux_target): Define as pointer to the_bfin_target.
2306	* linux-cris-low.cc (class cris_target): New class.
2307	(the_cris_target): New static object.
2308	(the_linux_target): Define as pointer to the_cris_target.
2309	* linux-crisv32-low.cc (class crisv32_target): New class.
2310	(the_crisv32_target): New static object.
2311	(the_linux_target): Define as pointer to the_crisv32_target.
2312	* linux-ia64-low.cc (class ia64_target): New class.
2313	(the_ia64_target): New static object.
2314	(the_linux_target): Define as pointer to the_ia64_target.
2315	* linux-m32r-low.cc (class m32r_target): New class.
2316	(the_m32r_target): New static object.
2317	(the_linux_target): Define as pointer to the_m32r_target.
2318	* linux-m68k-low.cc (class m68k_target): New class.
2319	(the_m68k_target): New static object.
2320	(the_linux_target): Define as pointer to the_m68k_target.
2321	* linux-mips-low.cc (class mips_target): New class.
2322	(the_mips_target): New static object.
2323	(the_linux_target): Define as pointer to the_mips_target.
2324	* linux-nios2-low.cc (class nios2_target): New class.
2325	(the_nios2_target): New static object.
2326	(the_linux_target): Define as pointer to the_nios2_target.
2327	* linux-ppc-low.cc (class ppc_target): New class.
2328	(the_ppc_target): New static object.
2329	(the_linux_target): Define as pointer to the_ppc_target.
2330	* linux-riscv-low.cc (class riscv_target): New class.
2331	(the_riscv_target): New static object.
2332	(the_linux_target): Define as pointer to the_riscv_target.
2333	* linux-s390-low.cc (class s390_target): New class.
2334	(the_s390_target): New static object.
2335	(the_linux_target): Define as pointer to the_s390_target.
2336	* linux-sh-low.cc (class sh_target): New class.
2337	(the_sh_target): New static object.
2338	(the_linux_target): Define as pointer to the_sh_target.
2339	* linux-sparc-low.cc (class sparc_target): New class.
2340	(the_sparc_target): New static object.
2341	(the_linux_target): Define as pointer to the_sparc_target.
2342	* linux-tic6x-low.cc (class tic6x_target): New class.
2343	(the_tic6x_target): New static object.
2344	(the_linux_target): Define as pointer to the_tic6x_target.
2345	* linux-tile-low.cc (class tile_target): New class.
2346	(the_tile_target): New static object.
2347	(the_linux_target): Define as pointer to the_tile_target.
2348	* linux-xtensa-low.cc (class xtensa_target): New class.
2349	(the_xtensa_target): New static object.
2350	(the_linux_target): Define as pointer to the_xtensa_target.
2351
23522020-04-02  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
2353
2354	Turn some static functions in linux-low.cc into private methods of
2355	linux_process_target.
2356
2357	* linux-low.cc (handle_extended_wait): Turn into ...
2358	(linux_process_target::handle_extended_wait): ...this.  Call
2359	'mourn' on 'this' object instead of 'the_target'.
2360	(maybe_move_out_of_jump_pad): Turn into...
2361	(linux_process_target::maybe_move_out_of_jump_pad): ...this.
2362	(linux_low_filter_event): Turn into...
2363	(linux_process_target::filter_event): ...this.
2364	(linux_wait_for_event_filtered): Turn into...
2365	(linux_process_target::wait_for_event_filtered): ...this.
2366	(linux_wait_for_event): Turn into...
2367	(linux_process_target::wait_for_event): ...this.
2368	(linux_wait_1): Turn into...
2369	(linux_process_target::wait_1): ...this.
2370	(wait_for_sigstop): Turn into...
2371	(linux_process_target::wait_for_sigstop): ...this.
2372	(move_out_of_jump_pad_callback): Turn into...
2373	(linux_process_target::move_out_of_jump_pad): ...this.
2374	(stop_all_lwps): Turn into...
2375	(linux_process_target::stop_all_lwps): ...this.
2376	(start_step_over): Turn into...
2377	(linux_process_target::start_step_over): ...this.
2378	(complete_ongoing_step_over): Turn into...
2379	(linux_process_target::complete_ongoing_step_over): ...this.
2380	(proceed_all_lwps): Turn into...
2381	(linux_process_target::proceed_all_lwps): ...this.
2382	(unstop_all_lwps): Turn into...
2383	(linux_process_target::unstop_all_lwps): ...this.
2384
2385	* linux-low.h (class linux_process_target)
2386	<handle_extended_wait>
2387	<maybe_move_out_of_jump_pad>
2388	filter_event>
2389	<wait_for_event_filtered>
2390	<wait_for_event>
2391	<wait_1>
2392	<wait_for_sigstop>
2393	<move_out_of_jump_pad>
2394	<stop_all_lwps>
2395	<start_step_over>
2396	<complete_ongoing_step_over>
2397	<proceed_all_lwps>
2398	<unstop_all_lwps>: Declare.
2399
2400	Update the callers below.
2401
2402	* linux-low.cc (linux_process_target::attach): Update.
2403	(linux_process_target::stabilize_threads): Ditto.
2404	(linux_process_target::wait): Ditto.
2405
24062020-04-02  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
2407
2408	* linux-low.h (struct linux_target_ops): Update the comment for
2409	'cannot_store_register' to return 0 or 1.
2410	* linux-ppc-low.cc (ppc_cannot_store_register): Return 1 instead
2411	of 2.
2412
24132020-03-20  Simon Marchi  <simon.marchi@efficios.com>
2414
2415	* config.in: Re-generate.
2416	* configure: Re-generate.
2417
24182020-03-17  Kamil Rytarowski  <n54@gmx.com>
2419
2420	* regcache.cc (find_register_by_number): Update.
2421	* tdesc.cc (init_target_desc): Likewise.
2422	* tdesc.h (target_desc::reg_defs): Likewise.
2423
24242020-03-12  Tom Tromey  <tom@tromey.com>
2425
2426	* configure: Rebuild.
2427	* configure.ac (GDBSERVER_DEPFILES): Remove srv_selftest_objs.
2428	(WIN32APILIBS): New subst.
2429	* Makefile.in (SFILES, OBS, TAGS, GDBREPLAY_OBS): Remove
2430	gdbsupport files.
2431	(gdbsupport/%.o): Remove target.
2432	(GDBSUPPORT_BUILDDIR, GDBSUPPORT): New variables.
2433	(gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Add GDBSUPPORT.
2434	(WIN32APILIBS): New variable.
2435	(gdbserver$(EXEEXT)): Add WIN32APILIBS.
2436	(gdbreplay$(EXEEXT)): Likewise.
2437
24382020-03-12  Tom Tromey  <tom@tromey.com>
2439
2440	* config.in, configure: Rebuild.
2441	* configure.ac: Call ZW_GNU_GETTEXT_SISTER_DIR.
2442	* acinclude.m4: Include gettext-sister.m4.
2443	* Makefile.in (top_builddir, INTL, INTL_DEPS, INTL_CFLAGS): New
2444	variables.
2445	(INCLUDE_CFLAGS): Add INTL_CFLAGS.
2446	(gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL.
2447
24482020-03-12  Simon Marchi  <simon.marchi@efficios.com>
2449
2450	* acinclude.m4: Update path to selftest.m4.
2451
24522020-03-12  Simon Marchi  <simon.marchi@efficios.com>
2453
2454	* configure.ac: Don't source bfd/development.sh, move
2455	GDB_AC_COMMON higher.
2456	* configure: Re-generate.
2457
24582020-03-12  Simon Marchi  <simon.marchi@efficios.com>
2459
2460	* configure: Re-generate.
2461
24622020-03-11  Simon Marchi  <simon.marchi@efficios.com>
2463
2464	* configure: Re-generate.
2465
24662020-03-06  Andrew Burgess  <andrew.burgess@embecosm.com>
2467
2468	* .dir-locals.el: New file.
2469
24702020-03-05  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
2471
2472	* .gitattributes: New file.
2473
24742020-03-02  Andrew Burgess  <andrew.burgess@embecosm.com>
2475
2476	* remote-utils.cc (prepare_resume_reply): Add ability to convert T
2477	reply into an S reply.
2478	* server.cc (disable_packet_T): New global.
2479	(captured_main): Set new global when appropriate.
2480	* server.h (disable_packet_T): Declare.
2481
24822020-02-21  Tom Tromey  <tom@tromey.com>
2483
2484	* Makefile.in (mostlyclean): New target.
2485
24862020-02-20  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
2487
2488	* target.h (struct process_stratum_target): Remove.
2489	(class process_target): Rename to ...
2490	(class process_stratum_target): ... this.
2491	* linux-low.h (class linux_process_target): Derive from
2492	'process_stratum_target'.
2493	* linux-low.cc (linux_target_ops): Remove.
2494	(initialize_low): Set the_target to the singleton instance of
2495	linux_process_target.
2496	* lynx-low.h (class lynx_process_target): Derive from
2497	'process_stratum_target'.
2498	* lynx-low.cc (lynx_target_ops): Remove.
2499	(initialize_low): Set the_target to the singleton instance of
2500	lynx_process_target.
2501	* nto-low.h (class nto_process_target): Derive from
2502	'process_stratum_target'.
2503	* nto-low.cc (nto_target_ops): Remove.
2504	(initialize_low): Set the_target to the singleton instance of
2505	nto_process_target.
2506	* win32-low.h (class win32_process_target): Derive from
2507	'process_stratum_target'.
2508	* win32-low.cc (win32_target_ops): Remove.
2509	(initialize_low): Set the_target to the singleton instance of
2510	win32_process_target.
2511
2512	Replace 'the_target->pt' with 'the_target' in the uses below.
2513
2514	* hostio.cc (hostio_error)
2515	(handle_setfs)
2516	(handle_open)
2517	(handle_unlink)
2518	(handle_readlink)
2519	* linux-aarch32-low.cc (arm_breakpoint_at)
2520	* linux-aarch64-low.cc (aarch64_breakpoint_at)
2521	* linux-arm-low.cc (arm_sigreturn_next_pc)
2522	(arm_get_hwcap)
2523	(arm_get_syscall_trapinfo)
2524	* linux-cris-low.cc (cris_breakpoint_at)
2525	* linux-crisv32-low.cc (cris_breakpoint_at)
2526	* linux-low.cc (handle_extended_wait)
2527	(linux_wait_1)
2528	(linux_read_memory)
2529	(linux_process_target::breakpoint_kind_from_pc)
2530	(linux_get_auxv)
2531	* linux-m32r-low.cc (m32r_breakpoint_at)
2532	* linux-mips-low.cc (mips_breakpoint_at)
2533	* linux-nios2-low.cc (nios2_breakpoint_at)
2534	* linux-ppc-low.cc (ppc_breakpoint_at)
2535	* linux-s390-low.cc (s390_get_hwcap)
2536	* linux-sh-low.cc (sh_breakpoint_at)
2537	* linux-sparc-low.cc (sparc_fill_gregset_to_stack)
2538	(sparc_store_gregset_from_stack)
2539	(sparc_breakpoint_at)
2540	* linux-tic6x-low.cc (tic6x_breakpoint_at)
2541	* linux-tile-low.cc (tile_breakpoint_at)
2542	* linux-x86-low.cc (x86_breakpoint_at)
2543	* linux-xtensa-low.cc (xtensa_breakpoint_at)
2544	* mem-break.cc (bp_size)
2545	(bp_opcode)
2546	(insert_memory_breakpoint)
2547	(set_raw_breakpoint_at)
2548	(delete_raw_breakpoint)
2549	(z_type_supported)
2550	(uninsert_raw_breakpoint)
2551	(reinsert_raw_breakpoint)
2552	(validate_inserted_breakpoint)
2553	* regcache.cc (regcache_read_pc)
2554	(regcache_write_pc)
2555	* remote-utils.cc (putpkt_binary_1)
2556	(input_interrupt)
2557	(getpkt)
2558	(prepare_resume_reply)
2559	* server.cc (handle_general_set)
2560	(handle_detach)
2561	(handle_qxfer_auxv)
2562	(handle_qxfer_exec_file)
2563	(handle_qxfer_libraries_svr4)
2564	(handle_qxfer_osdata)
2565	(handle_qxfer_siginfo)
2566	(handle_qxfer_fdpic)
2567	(handle_query)
2568	(resume)
2569	(handle_v_requests)
2570	(queue_stop_reply_callback)
2571	(captured_main)
2572	* target.cc (prepare_to_access_memory)
2573	(done_accessing_memory)
2574	(read_inferior_memory)
2575	(target_write_memory)
2576	(target_stop_and_wait)
2577	(target_wait)
2578	(target_mourn_inferior)
2579	(target_continue_no_signal)
2580	(target_continue)
2581	(target_supports_multi_process)
2582	(kill_inferior)
2583	* target.h
2584	(target_create_inferior)
2585	(target_post_create_inferior)
2586	(myattach)
2587	(target_supports_fork_events)
2588	(target_supports_vfork_events)
2589	(target_supports_exec_events)
2590	(target_handle_new_gdb_connection)
2591	(detach_inferior)
2592	(mythread_alive)
2593	(fetch_inferior_registers)
2594	(store_inferior_registers)
2595	(join_inferior)
2596	(target_supports_non_stop)
2597	(target_async)
2598	(target_process_qsupported)
2599	(target_supports_catch_syscall)
2600	(target_get_ipa_tdesc_idx)
2601	(target_supports_tracepoints)
2602	(target_supports_fast_tracepoints)
2603	(target_get_min_fast_tracepoint_insn_len)
2604	(target_thread_stopped)
2605	(target_pause_all)
2606	(target_unpause_all)
2607	(target_stabilize_threads)
2608	(target_install_fast_tracepoint_jump_pad)
2609	(target_emit_ops)
2610	(target_supports_disable_randomization)
2611	(target_supports_agent)
2612	(target_enable_btrace)
2613	(target_disable_btrace)
2614	(target_read_btrace)
2615	(target_read_btrace_conf)
2616	(target_supports_range_stepping)
2617	(target_supports_stopped_by_sw_breakpoint)
2618	(target_stopped_by_sw_breakpoint)
2619	(target_supports_stopped_by_hw_breakpoint)
2620	(target_supports_hardware_single_step)
2621	(target_stopped_by_hw_breakpoint)
2622	(target_breakpoint_kind_from_pc)
2623	(target_breakpoint_kind_from_current_state)
2624	(target_supports_software_single_step)
2625	(target_core_of_thread)
2626	(target_thread_name)
2627	(target_thread_handle)
2628	* win32-low.cc (do_initial_child_stuff)
2629
2630	Rename target op default definitions listed below.
2631
2632	* target.cc (process_target::post_create_inferior): Rename as ...
2633	(process_stratum_target::post_create_inferior): ... this.
2634	(process_target::prepare_to_access_memory): Rename as ...
2635	(process_stratum_target::prepare_to_access_memory): ... this.
2636	(process_target::done_accessing_memory): Rename as ...
2637	(process_stratum_target::done_accessing_memory): ... this.
2638	(process_target::look_up_symbols): Rename as ...
2639	(process_stratum_target::look_up_symbols): ... this.
2640	(process_target::supports_read_auxv): Rename as ...
2641	(process_stratum_target::supports_read_auxv): ... this.
2642	(process_target::read_auxv): Rename as ...
2643	(process_stratum_target::read_auxv): ... this.
2644	(process_target::supports_z_point_type): Rename as ...
2645	(process_stratum_target::supports_z_point_type): ... this.
2646	(process_target::insert_point): Rename as ...
2647	(process_stratum_target::insert_point): ... this.
2648	(process_target::remove_point): Rename as ...
2649	(process_stratum_target::remove_point): ... this.
2650	(process_target::stopped_by_sw_breakpoint): Rename as ...
2651	(process_stratum_target::stopped_by_sw_breakpoint): ... this.
2652	(process_target::supports_stopped_by_sw_breakpoint): Rename as ...
2653	(process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
2654	(process_target::stopped_by_hw_breakpoint): Rename as ...
2655	(process_stratum_target::stopped_by_hw_breakpoint): ... this.
2656	(process_target::supports_stopped_by_hw_breakpoint): Rename as ...
2657	(process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
2658	(process_target::supports_hardware_single_step): Rename as ...
2659	(process_stratum_target::supports_hardware_single_step): ... this.
2660	(process_target::stopped_by_watchpoint): Rename as ...
2661	(process_stratum_target::stopped_by_watchpoint): ... this.
2662	(process_target::stopped_data_address): Rename as ...
2663	(process_stratum_target::stopped_data_address): ... this.
2664	(process_target::supports_read_offsets): Rename as ...
2665	(process_stratum_target::supports_read_offsets): ... this.
2666	(process_target::read_offsets): Rename as ...
2667	(process_stratum_target::read_offsets): ... this.
2668	(process_target::supports_get_tls_address): Rename as ...
2669	(process_stratum_target::supports_get_tls_address): ... this.
2670	(process_target::get_tls_address): Rename as ...
2671	(process_stratum_target::get_tls_address): ... this.
2672	(process_target::hostio_last_error): Rename as ...
2673	(process_stratum_target::hostio_last_error): ... this.
2674	(process_target::supports_qxfer_osdata): Rename as ...
2675	(process_stratum_target::supports_qxfer_osdata): ... this.
2676	(process_target::qxfer_osdata): Rename as ...
2677	(process_stratum_target::qxfer_osdata): ... this.
2678	(process_target::supports_qxfer_siginfo): Rename as ...
2679	(process_stratum_target::supports_qxfer_siginfo): ... this.
2680	(process_target::qxfer_siginfo): Rename as ...
2681	(process_stratum_target::qxfer_siginfo): ... this.
2682	(process_target::supports_non_stop): Rename as ...
2683	(process_stratum_target::supports_non_stop): ... this.
2684	(process_target::async): Rename as ...
2685	(process_stratum_target::async): ... this.
2686	(process_target::start_non_stop): Rename as ...
2687	(process_stratum_target::start_non_stop): ... this.
2688	(process_target::supports_multi_process): Rename as ...
2689	(process_stratum_target::supports_multi_process): ... this.
2690	(process_target::supports_fork_events): Rename as ...
2691	(process_stratum_target::supports_fork_events): ... this.
2692	(process_target::supports_vfork_events): Rename as ...
2693	(process_stratum_target::supports_vfork_events): ... this.
2694	(process_target::supports_exec_events): Rename as ...
2695	(process_stratum_target::supports_exec_events): ... this.
2696	(process_target::handle_new_gdb_connection): Rename as ...
2697	(process_stratum_target::handle_new_gdb_connection): ... this.
2698	(process_target::handle_monitor_command): Rename as ...
2699	(process_stratum_target::handle_monitor_command): ... this.
2700	(process_target::core_of_thread): Rename as ...
2701	(process_stratum_target::core_of_thread): ... this.
2702	(process_target::supports_read_loadmap): Rename as ...
2703	(process_stratum_target::supports_read_loadmap): ... this.
2704	(process_target::read_loadmap): Rename as ...
2705	(process_stratum_target::read_loadmap): ... this.
2706	(process_target::process_qsupported): Rename as ...
2707	(process_stratum_target::process_qsupported): ... this.
2708	(process_target::supports_tracepoints): Rename as ...
2709	(process_stratum_target::supports_tracepoints): ... this.
2710	(process_target::read_pc): Rename as ...
2711	(process_stratum_target::read_pc): ... this.
2712	(process_target::write_pc): Rename as ...
2713	(process_stratum_target::write_pc): ... this.
2714	(process_target::supports_thread_stopped): Rename as ...
2715	(process_stratum_target::supports_thread_stopped): ... this.
2716	(process_target::thread_stopped): Rename as ...
2717	(process_stratum_target::thread_stopped): ... this.
2718	(process_target::supports_get_tib_address): Rename as ...
2719	(process_stratum_target::supports_get_tib_address): ... this.
2720	(process_target::get_tib_address): Rename as ...
2721	(process_stratum_target::get_tib_address): ... this.
2722	(process_target::pause_all): Rename as ...
2723	(process_stratum_target::pause_all): ... this.
2724	(process_target::unpause_all): Rename as ...
2725	(process_stratum_target::unpause_all): ... this.
2726	(process_target::stabilize_threads): Rename as ...
2727	(process_stratum_target::stabilize_threads): ... this.
2728	(process_target::supports_fast_tracepoints): Rename as ...
2729	(process_stratum_target::supports_fast_tracepoints): ... this.
2730	(process_target::get_min_fast_tracepoint_insn_len): Rename as ...
2731	(process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
2732	(process_target::emit_ops): Rename as ...
2733	(process_stratum_target::emit_ops): ... this.
2734	(process_target::supports_disable_randomization): Rename as ...
2735	(process_stratum_target::supports_disable_randomization): ... this.
2736	(process_target::supports_qxfer_libraries_svr4): Rename as ...
2737	(process_stratum_target::supports_qxfer_libraries_svr4): ... this.
2738	(process_target::qxfer_libraries_svr4): Rename as ...
2739	(process_stratum_target::qxfer_libraries_svr4): ... this.
2740	(process_target::supports_agent): Rename as ...
2741	(process_stratum_target::supports_agent): ... this.
2742	(process_target::enable_btrace): Rename as ...
2743	(process_stratum_target::enable_btrace): ... this.
2744	(process_target::disable_btrace): Rename as ...
2745	(process_stratum_target::disable_btrace): ... this.
2746	(process_target::read_btrace): Rename as ...
2747	(process_stratum_target::read_btrace): ... this.
2748	(process_target::read_btrace_conf): Rename as ...
2749	(process_stratum_target::read_btrace_conf): ... this.
2750	(process_target::supports_range_stepping): Rename as ...
2751	(process_stratum_target::supports_range_stepping): ... this.
2752	(process_target::supports_pid_to_exec_file): Rename as ...
2753	(process_stratum_target::supports_pid_to_exec_file): ... this.
2754	(process_target::pid_to_exec_file): Rename as ...
2755	(process_stratum_target::pid_to_exec_file): ... this.
2756	(process_target::supports_multifs): Rename as ...
2757	(process_stratum_target::supports_multifs): ... this.
2758	(process_target::multifs_open): Rename as ...
2759	(process_stratum_target::multifs_open): ... this.
2760	(process_target::multifs_unlink): Rename as ...
2761	(process_stratum_target::multifs_unlink): ... this.
2762	(process_target::multifs_readlink): Rename as ...
2763	(process_stratum_target::multifs_readlink): ... this.
2764	(process_target::breakpoint_kind_from_pc): Rename as ...
2765	(process_stratum_target::breakpoint_kind_from_pc): ... this.
2766	(process_target::breakpoint_kind_from_current_state): Rename as ...
2767	(process_stratum_target::breakpoint_kind_from_current_state): ... this.
2768	(process_target::thread_name): Rename as ...
2769	(process_stratum_target::thread_name): ... this.
2770	(process_target::thread_handle): Rename as ...
2771	(process_stratum_target::thread_handle): ... this.
2772	(process_target::supports_software_single_step): Rename as ...
2773	(process_stratum_target::supports_software_single_step): ... this.
2774	(process_target::supports_catch_syscall): Rename as ...
2775	(process_stratum_target::supports_catch_syscall): ... this.
2776	(process_target::get_ipa_tdesc_idx): Rename as ...
2777	(process_stratum_target::get_ipa_tdesc_idx): ... this.
2778
27792020-02-20  Pedro Alves  <palves@redhat.com>
2780
2781	* target.cc (set_target_ops): Simply copy the given target pointer
2782	instead of creating a copy of the pointed object.
2783
27842020-02-20  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
2785
2786	Turn process_stratum_target's get_ipa_tdesc_idx op into a method
2787	of process_target.
2788
2789	* target.h (struct process_stratum_target): Remove the target op.
2790	(class process_target): Add the target op.
2791	(target_get_ipa_tdesc_idx): Update the macro.
2792	* target.cc (process_target::get_ipa_tdesc_idx): Define.
2793
2794	Update the derived classes and callers below.
2795
2796	* linux-low.cc (linux_target_ops): Update.
2797	(linux_get_ipa_tdesc_idx): Turn into ...
2798	(linux_process_target::get_ipa_tdesc_idx): ... this.
2799	* linux-low.h (class linux_process_target): Update.
2800	* lynx-low.cc (lynx_target_ops): Update.
2801	* nto-low.cc (nto_target_ops): Update.
2802	* win32-low.cc (win32_target_ops): Update.
2803
28042020-02-20  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
2805
2806	Turn process_stratum_target's supports_catch_syscall op into a
2807	method of process_target.
2808
2809	* target.h (struct process_stratum_target): Remove the target op.
2810	(class process_target): Add the target op.
2811	(target_supports_catch_syscall): Update the macro.
2812	* target.cc (process_target::supports_catch_syscall): Define.
2813
2814	Update the derived classes and callers below.
2815
2816	* linux-low.cc (linux_target_ops): Update.
2817	(linux_supports_catch_syscall): Turn into ...
2818	(linux_process_target::supports_catch_syscall): ... this.
2819	* linux-low.h (class linux_process_target): Update.
2820	* lynx-low.cc (lynx_target_ops): Update.
2821	* nto-low.cc (nto_target_ops): Update.
2822	* win32-low.cc (win32_target_ops): Update.
2823
28242020-02-20  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
2825
2826	Turn process_stratum_target's supports_software_single_step op
2827	into a method of process_target.
2828
2829	* target.h (struct process_stratum_target): Remove the target op.
2830	(class process_target): Add the target op.
2831	(target_supports_software_single_step): Update the macro.
2832	* target.cc (process_target::supports_software_single_step): Define.
2833
2834	Update the derived classes and callers below.
2835
2836	* linux-low.cc (linux_target_ops): Update.
2837	(linux_supports_software_single_step): Turn into ...
2838	(linux_process_target::supports_software_single_step): ... this.
2839	* linux-low.h (class linux_process_target): Update.
2840	* lynx-low.cc (lynx_target_ops): Update.
2841	* nto-low.cc (nto_target_ops): Update.
2842	* win32-low.cc (win32_target_ops): Update.
2843
28442020-02-20  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
2845
2846	Turn process_stratum_target's thread_name and thread_handle ops
2847	into methods of process_target.
2848
2849	* target.h (struct process_stratum_target): Remove the target ops.
2850	(class process_target): Add the target ops.
2851	(target_thread_name): Update the macro.
2852	(target_thread_handle): Update the macro.
2853	* target.cc (process_target::thread_name): Define.
2854	(process_target::thread_handle): Define.
2855
2856	Update the derived classes and callers below.
2857
2858	* linux-low.cc (linux_target_ops): Update.
2859	(linux_process_target::thread_name): Define.
2860	(linux_process_target::thread_handle): Define.
2861	* linux-low.h (class linux_process_target): Update.
2862	* lynx-low.cc (lynx_target_ops): Update.
2863	* nto-low.cc (nto_target_ops): Update.
2864	* win32-low.cc (win32_target_ops): Update.
2865
28662020-02-20  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
2867
2868	Turn process_stratum_target's breakpoint_kind_from_pc,
2869	sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
2870	ops into methods of process_target.
2871
2872	* target.h (struct process_stratum_target): Remove the target op.
2873	(class process_target): Add the target op.
2874	(target_breakpoint_kind_from_pc): Update the macro.
2875	(target_breakpoint_kind_from_current_state): Update the macro.
2876	(default_breakpoint_kind_from_pc): Remove declaration.
2877	* target.cc (default_breakpoint_kind_from_pc): Turn into ...
2878	(process_target::breakpoint_kind_from_pc): ... this.
2879	(process_target::breakpoint_kind_from_current_state): Define.
2880
2881	Update the derived classes and callers below.
2882
2883	* mem-break.cc (bp_size): Update.
2884	(bp_opcode): Update.
2885	* linux-low.cc (linux_target_ops): Update.
2886	(linux_wait_1): Update.
2887	(linux_breakpoint_kind_from_pc): Turn into ...
2888	(linux_process_target::breakpoint_kind_from_pc): ... this.
2889	(linux_sw_breakpoint_from_kind): Turn into ...
2890	(linux_process_target::sw_breakpoint_from_kind): ... this.
2891	(linux_breakpoint_kind_from_current_state): Turn into ...
2892	(linux_process_target::breakpoint_kind_from_current_state): ... this.
2893	* linux-low.h (class linux_process_target): Update.
2894	* lynx-low.cc (lynx_target_ops): Update.
2895	(lynx_process_target::sw_breakpoint_from_kind): Define.
2896	* lynx-low.h (class lynx_process_target): Update.
2897	* nto-low.cc (nto_target_ops): Update.
2898	(nto_sw_breakpoint_from_kind): Turn into ...
2899	(nto_process_target::sw_breakpoint_from_kind): ... this.
2900	* nto-low.h (class nto_process_target): Update.
2901	* win32-low.cc (win32_target_ops): Update.
2902	(win32_sw_breakpoint_from_kind): Turn into ...
2903	(win32_process_target::sw_breakpoint_from_kind): ... this.
2904	* win32-low.h (class win32_process_target): Update.
2905
29062020-02-20  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
2907
2908	Turn process_stratum_target's multifs_open, multifs_readlink,
2909	multifs_unlink ops into methods of process_target.
2910
2911	* target.h (struct process_stratum_target): Remove the target ops.
2912	(class process_target): Add the target ops.  Also add
2913	'supports_multifs'.
2914	* target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
2915	"sys/stat.h".
2916	(process_target::supports_multifs): Define.
2917	(process_target::multifs_open): Define.
2918	(process_target::multifs_readlink): Define.
2919	(process_target::multifs_unlink): Define.
2920
2921	Update the derived classes and callers below.
2922
2923	* hostio.cc (handle_setfs): Update.
2924	(handle_open): Update.
2925	(handle_unlink): Update.
2926	(handle_readlink): Update.
2927	* linux-low.cc (linux_target_ops): Update.
2928	(linux_process_target::supports_multifs): Define.
2929	(linux_process_target::multifs_open): Define.
2930	(linux_process_target::multifs_readlink): Define.
2931	(linux_process_target::multifs_unlink): Define.
2932	* linux-low.h (class linux_process_target): Update.
2933	* lynx-low.cc (lynx_target_ops): Update.
2934	* nto-low.cc (nto_target_ops): Update.
2935	* win32-low.cc (win32_target_ops): Update.
2936
29372020-02-20  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
2938
2939	Turn process_stratum_target's pid_to_exec_file op into a method
2940	of process_target.
2941
2942	* target.h (struct process_stratum_target): Remove the target op.
2943	(class process_target): Add the target op.  Also add
2944	'supports_pid_to_exec_file'.
2945	* target.cc (process_target::pid_to_exec_file): Define.
2946	(process_target::supports_pid_to_exec_file): Define.
2947
2948	Update the derived classes and callers below.
2949
2950	* server.cc (handle_qxfer_exec_file): Update.
2951	(handle_query): Update.
2952	* linux-low.cc (linux_target_ops): Update.
2953	(linux_process_target::supports_pid_to_exec_file): Define.
2954	(linux_process_target::pid_to_exec_file): Define.
2955	* linux-low.h (class linux_process_target): Update.
2956	* lynx-low.cc (lynx_target_ops): Update.
2957	* nto-low.cc (nto_target_ops): Update.
2958	* win32-low.cc (win32_target_ops): Update.
2959
29602020-02-20  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
2961
2962	Turn process_stratum_target's supports_range_stepping op into a
2963	method of process_target.
2964
2965	* target.h (struct process_stratum_target): Remove the target op.
2966	(class process_target): Add the target op.
2967	(target_supports_range_stepping): Update the macro.
2968	* target.cc (process_target::supports_range_stepping): Define.
2969
2970	Update the derived classes and callers below.
2971
2972	* linux-low.cc (linux_target_ops): Update.
2973	(linux_supports_range_stepping): Turn into ...
2974	(linux_process_target::supports_range_stepping): ... this.
2975	* linux-low.h (class linux_process_target): Update.
2976	* lynx-low.cc (lynx_target_ops): Update.
2977	* nto-low.cc (nto_target_ops): Update.
2978	* win32-low.cc (win32_target_ops): Update.
2979
29802020-02-20  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
2981
2982	Turn process_stratum_target's btrace-related ops (enable_btrace,
2983	disable_btrace, read_btrace, read_btrace_conf) into methods of
2984	process_target.
2985
2986	* target.h (struct process_stratum_target): Remove the target ops.
2987	(class process_target): Add the target ops.
2988	(target_enable_btrace): Update.
2989	(target_disable_btrace): Update.
2990	(target_read_btrace): Update.
2991	(target_read_btrace_conf): Update.
2992	* target.cc (process_target::enable_btrace): Define.
2993	(process_target::disable_btrace): Define.
2994	(process_target::read_btrace): Define.
2995	(process_target::read_btrace_conf): Define.
2996
2997	Update the derived classes and callers below.
2998
2999	* linux-low.cc (linux_target_ops): Update.
3000	(linux_process_target:enable_btrace): Define as a wrapper around
3001	linux_enable_btrace.
3002	(linux_low_disable_btrace): Turn into ...
3003	(linux_process_target::disable_btrace): ... this.
3004	(linux_low_read_btrace): Turn into ...
3005	(linux_process_target::read_btrace): ... this.
3006	(linux_low_btrace_conf): Turn into ...
3007	(linux_process_target::read_btrace_conf): ... this.
3008	* linux-low.h (class linux_process_target): Update.
3009	* lynx-low.cc (lynx_target_ops): Update.
3010	* nto-low.cc (nto_target_ops): Update.
3011	* win32-low.cc (win32_target_ops): Update.
3012
30132020-02-20  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
3014
3015	Turn process_stratum_target's supports_agent op into a method of
3016	process_target.
3017
3018	* target.h (struct process_stratum_target): Remove the target op.
3019	(class process_target): Add the target op.
3020	(target_supports_agent): Update the macro.
3021	* target.cc (process_target::supports_agent): Define.
3022
3023	Update the derived classes and callers below.
3024
3025	* linux-low.cc (linux_target_ops): Update.
3026	(linux_supports_agent): Turn into ...
3027	(linux_process_target::supports_agent): ... this.
3028	* linux-low.h (class linux_process_target): Update.
3029	* lynx-low.cc (lynx_target_ops): Update.
3030	* nto-low.cc (nto_target_ops): Update.
3031	* win32-low.cc (win32_target_ops): Update.
3032
30332020-02-20  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
3034
3035	Turn process_stratum_target's qxfer_libraries_svr4 op into a
3036	method of process_target.
3037
3038	* target.h (struct process_stratum_target): Remove the target op.
3039	(class process_target): Add the target op.  Also add
3040	'supports_qxfer_libraries_svr4'.
3041	* target.cc (process_target::qxfer_libraries_svr4): Define.
3042	(process_target::supports_qxfer_libraries_svr4): Define.
3043
3044	Update the derived classes and callers below.
3045
3046	* server.cc (handle_qxfer_libraries_svr4): Update.
3047	(handle_query): Update.
3048	* linux-low.cc (linux_target_ops): Update.
3049	(linux_process_target::supports_qxfer_libraries_svr4): Define.
3050	(linux_qxfer_libraries_svr4): Turn into ...
3051	(linux_process_target::qxfer_libraries_svr4): ... this.
3052	* linux-low.h (class linux_process_target): Update.
3053	* lynx-low.cc (lynx_target_ops): Update.
3054	* nto-low.cc (nto_target_ops): Update.
3055	* win32-low.cc (win32_target_ops): Update.
3056
30572020-02-20  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
3058
3059	Turn process_stratum_target's supports_disable_randomization op
3060	into a method of process_target.
3061
3062	* target.h (struct process_stratum_target): Remove the target op.
3063	(class process_target): Add the target op.
3064	(target_supports_disable_randomization): Update the macro.
3065	* target.cc (process_target::supports_disable_randomization): Define.
3066
3067	Update the derived classes and callers below.
3068
3069	* linux-low.cc (linux_target_ops): Update.
3070	(linux_supports_disable_randomization): Turn into ...
3071	(linux_process_target::supports_disable_randomization): ... this.
3072	* linux-low.h (class linux_process_target): Update.
3073	* lynx-low.cc (lynx_target_ops): Update.
3074	* nto-low.cc (nto_target_ops): Update.
3075	* win32-low.cc (win32_target_ops): Update.
3076
30772020-02-20  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
3078
3079	Turn process_stratum_target's emit_ops op into a method of
3080	process_target.
3081
3082	* target.h (struct process_stratum_target): Remove the target op.
3083	(class process_target): Add the target op.
3084	(target_emit_ops): Update the macro.
3085	* target.cc (process_target::emit_ops): Define.
3086
3087	Update the derived classes and callers below.
3088
3089	* linux-low.cc (linux_target_ops): Update.
3090	(linux_emit_ops): Turn into ...
3091	(linux_process_target::emit_ops): ... this.
3092	* linux-low.h (class linux_process_target): Update.
3093	* lynx-low.cc (lynx_target_ops): Update.
3094	* nto-low.cc (nto_target_ops): Update.
3095	* win32-low.cc (win32_target_ops): Update.
3096
30972020-02-20  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
3098
3099	Turn process_stratum_target's install_fast_tracepoint_jump_pad
3100	and get_min_fast_tracepoint_insn_len ops into methods of
3101	process_target.
3102
3103	* target.h (struct process_stratum_target): Remove the target ops.
3104	(class process_target): Add the target ops.  Also add
3105	'supports_fast_tracepoints'.
3106	(target_supports_fast_tracepoints): Update the macro.
3107	(target_get_min_fast_tracepoint_insn_len): Update the macro.
3108	(install_fast_tracepoint_jump_pad): Update and rename the macro
3109	to ...
3110	(target_install_fast_tracepoint_jump_pad): ... this.
3111	* target.cc (process_target::supports_fast_tracepoints): Define.
3112	(process_target::install_fast_tracepoint_jump_pad): Define.
3113	(process_target::get_min_fast_tracepoint_insn_len): Define.
3114
3115	Update the derived classes and callers below.
3116
3117	* tracepoint.cc (install_fast_tracepoint): Update.
3118	* linux-low.cc (linux_target_ops): Update.
3119	(linux_process_target::supports_fast_tracepoints): Define.
3120	(linux_install_fast_tracepoint_jump_pad): Turn into ...
3121	(linux_process_target::install_fast_tracepoint_jump_pad): ... this.
3122	(linux_get_min_fast_tracepoint_insn_len): Turn into ...
3123	(linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
3124	* linux-low.h (class linux_process_target): Update.
3125	* lynx-low.cc (lynx_target_ops): Update.
3126	* nto-low.cc (nto_target_ops): Update.
3127	* win32-low.cc (win32_target_ops): Update.
3128
31292020-02-20  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
3130
3131	Turn process_stratum_target's stabilize_threads op into a
3132	method of process_target.
3133
3134	* target.h (struct process_stratum_target): Remove the target op.
3135	(class process_target): Add the target op.
3136	(target_stabilize_threads): Update the macro.
3137	* target.cc (process_target::stabilize_threads): Define.
3138
3139	Update the derived classes and callers below.
3140
3141	* server.cc (handle_status): Update.
3142	* tracepoint.cc (cmd_qtdp): Update.
3143	(cmd_qtstart): Update.
3144	* linux-low.cc (linux_target_ops): Update.
3145	(linux_stabilize_threads): Turn into ...
3146	(linux_process_target::stabilize_threads): ... this.
3147	(linux_wait_1): Update.
3148	* linux-low.h (class linux_process_target): Update.
3149	* lynx-low.cc (lynx_target_ops): Update.
3150	* nto-low.cc (nto_target_ops): Update.
3151	* win32-low.cc (win32_target_ops): Update.
3152
31532020-02-20  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
3154
3155	Turn process_stratum_target's pause_all and unpause_all ops
3156	into methods of process_target.
3157
3158	* target.h (struct process_stratum_target): Remove the target ops.
3159	(class process_target): Add the target ops.
3160	(pause_all): Update the macro and rename to...
3161	(target_pause_all): ... this.
3162	(unpause_all): Update the macro and rename to...
3163	(target_unpause_all): ... this.
3164	* target.cc (process_target::pause_all): Define.
3165	(process_target::unpause_all): Define.
3166
3167	Update the derived classes and callers below.
3168
3169	* server.cc (handle_status): Update.
3170	* tracepoint.cc (clear_installed_tracepoints): Update.
3171	(cmd_qtdp): Update.
3172	(cmd_qtstart): Update.
3173	(stop_tracing): Update.
3174	(cmd_qtstatus): Update.
3175	(upload_fast_traceframes): Update.
3176	(run_inferior_command): Update.
3177	* linux-low.cc (linux_target_ops): Update.
3178	(linux_pause_all): Turn into ...
3179	(linux_process_target::pause_all): ... this.
3180	(linux_unpause_all): Turn into ...
3181	(linux_process_target::unpause_all): ... this.
3182	(linux_process_target::prepare_to_access_memory): Update.
3183	(linux_process_target::done_accessing_memory): Update.
3184	* linux-low.h (class linux_process_target): Update.
3185	* lynx-low.cc (lynx_target_ops): Update.
3186	* nto-low.cc (nto_target_ops): Update.
3187	* win32-low.cc (win32_target_ops): Update.
3188
31892020-02-20  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
3190
3191	Turn process_stratum_target's get_tib_address op into a method of
3192	process_target.
3193
3194	* target.h (struct process_stratum_target): Remove the target op.
3195	(class process_target): Add the target op.  Also add
3196	'supports_get_tib_address'.
3197	* target.cc (process_target::get_tib_address): Define.
3198	(process_target::supports_get_tib_address): Define.
3199
3200	Update the derived classes and callers below.
3201
3202	* server.cc (handle_query): Update.
3203	* linux-low.cc (win32_target_ops): Update.
3204	* lynx-low.cc (lynx_target_ops): Update.
3205	* nto-low.cc (nto_target_ops): Update.
3206	* win32-low.cc (win32_target_ops): Update.
3207	(win32_process_target::supports_get_tib_address): Define.
3208	(win32_get_tib_address): Turn into ...
3209	(win32_process_target::get_tib_address): ... this.
3210	* win32-low.h (class win32_process_target): Update.
3211
32122020-02-20  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
3213
3214	Turn process_stratum_target's thread_stopped op into a method of
3215	process_target.
3216
3217	* target.h (struct process_stratum_target): Remove the target op.
3218	(class process_target): Add the target op.  Also add
3219	'supports_thread_stopped'.
3220	(target_thread_stopped): Update the macro.
3221	* target.cc (process_target::thread_stopped): Define.
3222	(process_target::supports_thread_stopped): Define.
3223	(prepare_to_access_memory): Update.
3224
3225	Update the derived classes and callers below.
3226
3227	* server.cc (queue_stop_reply_callback): Update.
3228	* linux-low.cc (linux_target_ops): Update.
3229	(linux_process_target::supports_thread_stopped): Define.
3230	(linux_thread_stopped): Turn into ...
3231	(linux_process_target::thread_stopped): ... this.
3232	* linux-low.h (class linux_process_target): Update.
3233	* lynx-low.cc (lynx_target_ops): Update.
3234	* nto-low.cc (nto_target_ops): Update.
3235	* win32-low.cc (win32_target_ops): Update.
3236
32372020-02-20  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
3238
3239	Turn process_stratum_target's read_pc and write_pc ops into
3240	methods of process_target.
3241
3242	* target.h (struct process_stratum_target): Remove the target ops.
3243	(class process_target): Add the target ops.
3244	* target.cc (process_target::read_pc): Define.
3245	(process_target::write_pc): Define.
3246
3247	Update the derived classes and callers below.
3248
3249	* regcache.cc (regcache_read_pc): Update.
3250	(regcache_write_pc): Update.
3251	* linux-low.cc (linux_target_ops): Update.
3252	(linux_read_pc): Turn into ...
3253	(linux_process_target::read_pc): ... this.
3254	(linux_write_pc): Turn into ...
3255	(linux_process_target::write_pc): ... this.
3256	* linux-low.h (class linux_process_target): Update.
3257	* lynx-low.cc (lynx_target_ops): Update.
3258	* nto-low.cc (nto_target_ops): Update.
3259	* win32-low.cc (win32_target_ops): Update.
3260
32612020-02-20  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
3262
3263	Turn process_stratum_target's supports_tracepoints op into a
3264	method of process_target.
3265
3266	* target.h (struct process_stratum_target): Remove the target op.
3267	(class process_target): Add the target op.
3268	(target_supports_tracepoints): Update the macro.
3269	* target.cc (process_target::supports_tracepoints): Define.
3270
3271	Update the derived classes and callers below.
3272
3273	* linux-low.cc (linux_target_ops): Update.
3274	(linux_supports_tracepoints): Turn into ...
3275	(linux_process_target::supports_tracepoints): ... this.
3276	* linux-low.h (class linux_process_target): Update.
3277	* lynx-low.cc (lynx_target_ops): Update.
3278	* nto-low.cc (nto_target_ops): Update.
3279	* win32-low.cc (win32_target_ops): Update.
3280
32812020-02-20  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
3282
3283	Turn process_stratum_target's process_qsupported op into a method
3284	of process_target.
3285
3286	* target.h (struct process_stratum_target): Remove the target op.
3287	(class process_target): Add the target op.
3288	(target_process_qsupported): Update the macro.
3289	* target.cc (process_target::process_qsupported): Define.
3290
3291	Update the derived classes and callers below.
3292
3293	* linux-low.cc (linux_target_ops): Update.
3294	(linux_process_qsupported): Turn into ...
3295	(linux_process_target::process_qsupported): ... this.
3296	* linux-low.h (class linux_process_target): Update.
3297	* lynx-low.cc (lynx_target_ops): Update.
3298	* nto-low.cc (nto_target_ops): Update.
3299	* win32-low.cc (win32_target_ops): Update.
3300
33012020-02-20  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
3302
3303	Turn process_stratum_target's read_loadmap op into a method of
3304	process_target.
3305
3306	* target.h (struct process_stratum_target): Remove the target op.
3307	(class process_target): Add the target op.  Also add
3308	'supports_read_loadmap'.
3309	* target.cc (process_target::read_loadmap): Define.
3310	(process_target::supports_read_loadmap): Define.
3311
3312	Update the derived classes and callers below.
3313
3314	* server.cc (handle_qxfer_fdpic): Update.
3315	(handle_query): Update.
3316	* linux-low.cc (linux_target_ops): Update.
3317	(linux_process_target::supports_read_loadmap): Define.
3318	(linux_read_loadmap): Turn into ...
3319	(linux_process_target::read_loadmap): ... this.
3320	* linux-low.h (class linux_process_target): Update.
3321	* lynx-low.cc (lynx_target_ops): Update.
3322	* nto-low.cc (nto_target_ops): Update.
3323	* win32-low.cc (win32_target_ops): Update.
3324
33252020-02-20  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
3326
3327	Turn process_stratum_target's core_of_thread op into a method of
3328	process_target.
3329
3330	* target.h (struct process_stratum_target): Remove the target op.
3331	(class process_target): Add the target op.
3332	(target_core_of_thread): Update the macro.
3333	* target.cc (process_target::core_of_thread): Define.
3334
3335	Update the derived classes and callers below.
3336
3337	* linux-low.cc (linux_target_ops): Update.
3338	(linux_process_target::core_of_thread): Define.
3339	* linux-low.h (class linux_process_target): Update.
3340	* lynx-low.cc (lynx_target_ops): Update.
3341	* nto-low.cc (nto_target_ops): Update.
3342	* win32-low.cc (win32_target_ops): Update.
3343
33442020-02-20  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
3345
3346	Turn process_stratum_target's handle_monitor_command op into a
3347	method of process_target.
3348
3349	* target.h (struct process_stratum_target): Remove the target op.
3350	(class process_target): Add the target op.
3351	(target_handle_monitor_command): Update the macro.
3352	* target.cc (process_target::handle_monitor_command): Define.
3353
3354	Update the derived classes and callers below.
3355
3356	* server.cc (handle_query): Update.
3357	* linux-low.cc (linux_target_ops): Update.
3358	(linux_process_target::handle_monitor_command): Define.
3359	* linux-low.h (class linux_process_target): Update.
3360	* lynx-low.cc (lynx_target_ops): Update.
3361	* nto-low.cc (nto_target_ops): Update.
3362	* win32-low.cc (win32_target_ops): Update.
3363
33642020-02-20  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
3365
3366	Turn process_stratum_target's handle_new_gdb_connection op into a
3367	method of process_target.
3368
3369	* target.h (struct process_stratum_target): Remove the target op.
3370	(class process_target): Add the target op.
3371	(target_handle_new_gdb_connection): Update the macro.
3372	* target.cc (process_target::handle_new_gdb_connection): Define.
3373
3374	Update the derived classes and callers below.
3375
3376	* linux-low.cc (linux_target_ops): Update.
3377	(linux_handle_new_gdb_connection): Turn into ...
3378	(linux_process_target::handle_new_gdb_connection): ... this.
3379	* linux-low.h (class linux_process_target): Update.
3380	* lynx-low.cc (lynx_target_ops): Update.
3381	* nto-low.cc (nto_target_ops): Update.
3382	* win32-low.cc (win32_target_ops): Update.
3383
33842020-02-20  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
3385
3386	Turn process_stratum_target's supports_fork_events,
3387	supports_vfork_events, and supports_exec_events ops into methods
3388	of process_target.
3389
3390	* target.h (struct process_stratum_target): Remove the target ops.
3391	(class process_target): Add the target ops.
3392	(target_supports_fork_events): Update the macro.
3393	(target_supports_vfork_events): Update the macro.
3394	(target_supports_exec_events): Update the macro.
3395	* target.cc (process_target::supports_fork_events): Define.
3396	(process_target::supports_vfork_events): Define.
3397	(process_target::supports_exec_events): Define.
3398
3399	Update the derived classes and callers below.
3400
3401	* linux-low.cc (linux_target_ops): Update.
3402	(linux_supports_fork_events): Turn into ...
3403	(linux_process_target::supports_fork_events): ... this.
3404	(linux_supports_vfork_events): Turn into ...
3405	(linux_process_target::supports_vfork_events): ... this.
3406	(linux_supports_exec_events): Turn into ...
3407	(linux_process_target::supports_exec_events): ... this.
3408	* linux-low.h (class linux_process_target): Update.
3409	* lynx-low.cc (lynx_target_ops): Update.
3410	* nto-low.cc (nto_target_ops): Update.
3411	* win32-low.cc (win32_target_ops): Update.
3412
34132020-02-20  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
3414
3415	Turn process_stratum_target's supports_multi_process op into a
3416	method of process_target.
3417
3418	* target.h (struct process_stratum_target): Remove the target op.
3419	(class process_target): Add the target op.
3420	* target.cc (process_target::supports_multi_process): Define.
3421	(target_supports_multi_process): Update.
3422
3423	Update the derived classes and callers below.
3424
3425	* linux-low.cc (linux_target_ops): Update.
3426	(linux_supports_multi_process): Turn into ...
3427	(linux_process_target::supports_multi_process): ... this.
3428	* linux-low.h (class linux_process_target): Update.
3429	* lynx-low.cc (lynx_target_ops): Update.
3430	* nto-low.cc (nto_target_ops): Update.
3431	* win32-low.cc (win32_target_ops): Update.
3432
34332020-02-20  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
3434
3435	Turn process_stratum_target's supports_non_stop, async, and
3436	start_non_stop ops into methods of process_target.
3437
3438	* target.h (struct process_stratum_target): Remove the target ops.
3439	(class process_target): Add the target ops.
3440	(target_supports_non_stop): Update the macro.
3441	(target_async): Update the macro.
3442	(start_non_stop): Remove declaration.
3443	* target.cc (process_target::supports_non_stop): Define.
3444	(process_target::async): Define.
3445	(process_target::start_non_stop): Define.
3446	(start_non_stop): Remove.
3447
3448	Update the derived classes and callers below.
3449
3450	* server.cc (handle_qxfer_siginfo): Update.
3451	(handle_query): Update.
3452	* linux-low.cc (linux_target_ops): Update.
3453	(linux_supports_non_stop): Turn into ...
3454	(linux_process_target::supports_non_stop): ... this.
3455	(linux_async): Turn into ...
3456	(linux_process_target::async): ... this.
3457	(linux_start_non_stop): Turn into ...
3458	(linux_process_target::start_non_stop): ... 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	(nto_supports_non_stop): Remove; rely on the default behavior
3463	instead.
3464	* win32-low.cc (win32_target_ops): Update.
3465
34662020-02-20  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
3467
3468	Turn process_stratum_target's qxfer_siginfo op into a method of
3469	process_target.
3470
3471	* target.h (struct process_stratum_target): Remove the target op.
3472	(class process_target): Add the target op.  Also add
3473	'supports_qxfer_siginfo'.
3474	* target.cc (process_target::qxfer_siginfo): Define.
3475	(process_target::supports_qxfer_siginfo): Define.
3476
3477	Update the derived classes and callers below.
3478
3479	* server.cc (handle_qxfer_siginfo): Update.
3480	(handle_query): Update.
3481	* linux-low.cc (linux_target_ops): Update.
3482	(linux_process_target::supports_qxfer_siginfo): Define.
3483	(linux_xfer_siginfo): Turn into ...
3484	(linux_process_target::qxfer_siginfo): ... this.
3485	* linux-low.h (class linux_process_target): Update.
3486	* lynx-low.cc (lynx_target_ops): Update.
3487	* nto-low.cc (nto_target_ops): Update.
3488	* win32-low.cc (win32_target_ops): Update.
3489
34902020-02-20  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
3491
3492	Turn process_stratum_target's qxfer_osdata op into a method of
3493	process_target.
3494
3495	* target.h (struct process_stratum_target): Remove the target op.
3496	(class process_target): Add the target op.  Also add
3497	'supports_qxfer_osdata'.
3498	* target.cc (process_target::qxfer_osdata): Define.
3499	(process_target::supports_qxfer_osdata): Define.
3500
3501	Update the derived classes and callers below.
3502
3503	* server.cc (handle_qxfer_osdata): Update.
3504	(handle_query): Update.
3505	* linux-low.cc (linux_target_ops): Update.
3506	(linux_process_target::supports_qxfer_osdata): Define.
3507	(linux_qxfer_osdata): Turn into ...
3508	(linux_process_target::qxfer_osdata): ... this.
3509	* linux-low.h (class linux_process_target): Update.
3510	* lynx-low.cc (lynx_target_ops): Update.
3511	* nto-low.cc (nto_target_ops): Update.
3512	* win32-low.cc (win32_target_ops): Update.
3513
35142020-02-20  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
3515
3516	Turn process_stratum_target's hostio_last_error op into a
3517	method of process_target.
3518
3519	* target.h (struct process_stratum_target): Remove the target op.
3520	(class process_target): Add the target op.
3521	* target.cc: Add "hostio.h" to includes.
3522	(process_target::hostio_last_error): Define.
3523
3524	Update the derived classes and callers below.
3525
3526	* hostio.cc (hostio_error): Update.
3527	* linux-low.cc: Remove "hostio.h" from includes.
3528	(linux_target_ops): Update.
3529	* lynx-low.cc (lynx_target_ops): Update.
3530	* nto-low.cc (nto_target_ops): Update.
3531	* win32-low.h (class win32_process_target): Update.
3532	* win32-low.cc (win32_target_ops): Update.
3533	(wince_hostio_last_error): Turn into ...
3534	(win32_process_target::hostio_last_error): ... this.
3535
35362020-02-20  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
3537
3538	Turn process_stratum_target's get_tls_address op into a method of
3539	process_target.
3540
3541	* target.h (struct process_stratum_target): Remove the target op.
3542	(class process_target): Add the target op.  Also add
3543	'supports_get_tls_address'.
3544	* target.cc (process_target::get_tls_address): Define.
3545	(process_target::supports_get_tls_address): Define.
3546
3547	Update the derived classes and callers below.
3548
3549	* server.cc (handle_query): Update.
3550	* linux-low.cc (linux_target_ops): Update.
3551	(linux_process_target::supports_get_tls_address): Define.
3552	(linux_process_target::get_tls_address): Define.
3553	* linux-low.h (class linux_process_target): Update.
3554	* lynx-low.cc (lynx_target_ops): Update.
3555	* nto-low.cc (nto_target_ops): Update.
3556	* win32-low.cc (win32_target_ops): Update.
3557
35582020-02-20  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
3559
3560	Turn process_stratum_target's read_offsets op into a method of
3561	process_target.
3562
3563	* target.h (struct process_stratum_target): Remove the target op.
3564	(class process_target): Add the target op.  Also add
3565	'supports_read_offsets'.
3566	* target.cc (process_target::read_offsets): Define.
3567	(process_target::supports_read_offsets): Define.
3568
3569	Update the derived classes and callers below.
3570
3571	* server.cc (handle_query): Update.
3572	* linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
3573	(linux_target_ops): Update.
3574	(linux_process_target::supports_read_offsets): Define.
3575	(linux_read_offsets): Turn into ...
3576	(linux_process_target::read_offsets): ... this.
3577	* linux-low.h (class linux_process_target): Update.
3578	* lynx-low.cc (lynx_target_ops): Update.
3579	* nto-low.cc (nto_target_ops): Update.
3580	* win32-low.cc (win32_target_ops): Update.
3581
35822020-02-20  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
3583
3584	Turn process_stratum_target's stopped_by_watchpoint and
3585	stopped_data_address ops into methods of process_target.
3586
3587	* target.h (struct process_stratum_target): Remove the target ops.
3588	(class process_target): Add the target ops.
3589	* target.cc (process_target::stopped_by_watchpoint): Define.
3590	(process_target::stopped_data_address): Define.
3591
3592	Update the derived classes and callers below.
3593
3594	* remote-utils.cc (prepare_resume_reply): Update.
3595	* linux-low.cc (linux_target_ops): Update.
3596	(linux_stopped_by_watchpoint): Turn into ...
3597	(linux_process_target::stopped_by_watchpoint): ... this.
3598	(linux_stopped_data_address): Turn into ...
3599	(linux_process_target::stopped_data_address): ... this.
3600	* linux-low.h (class linux_process_target): Update.
3601	* lynx-low.cc (lynx_target_ops): Update.
3602	* nto-low.cc (nto_target_ops): Update.
3603	(nto_stopped_by_watchpoint): Turn into ...
3604	(nto_process_target::stopped_by_watchpoint): ... this.
3605	(nto_stopped_data_address): Turn into ...
3606	(nto_process_target::stopped_data_address): ... this.
3607	* nto-low.h (class nto_process_target): Update.
3608	* win32-low.cc (win32_target_ops): Update.
3609	(win32_stopped_by_watchpoint): Turn into ...
3610	(win32_process_target::stopped_by_watchpoint): ... this.
3611	(win32_stopped_data_address): Turn into ...
3612	(win32_process_target::stopped_data_address): ... this.
3613	* win32-low.h (class win32_process_target): Update.
3614
36152020-02-20  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
3616
3617	Turn process_stratum_target's supports_hardware_single_step op into
3618	a method of process_target.
3619
3620	* target.h (struct process_stratum_target): Remove the target op.
3621	(class process_target): Add the target op.
3622	(target_supports_hardware_single_step): Update the macro.
3623	(target_can_do_hardware_single_step): Remove declaration.
3624	* target.cc (process_target::supports_hardware_single_step): Define.
3625	(target_can_do_hardware_single_step): Remove.
3626
3627	Update the derived classes and callers below.
3628
3629	* linux-low.h (class linux_process_target): Update.
3630	* linux-low.cc (linux_target_ops): Update.
3631	(linux_supports_hardware_single_step): Turn into ...
3632	(linux_process_target::supports_hardware_single_step): ... this.
3633	* lynx-low.h (class lynx_process_target): Update.
3634	* lynx-low.cc (lynx_target_ops): Update.
3635	(lynx_process_target::supports_hardware_single_step): Define.
3636	* nto-low.h (class nto_process_target): Update.
3637	* nto-low.cc (nto_target_ops): Update.
3638	(nto_process_target::supports_hardware_single_step): Define.
3639	* win32-low.h (class win32_process_target): Update.
3640	* win32-low.cc (win32_target_ops): Update.
3641	(win32_process_target::supports_hardware_single_step): Define.
3642
36432020-02-20  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
3644
3645	Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
3646	ops into methods of process_target.
3647
3648	* target.h (struct process_stratum_target): Remove the target ops.
3649	(class process_target): Add the target ops.
3650	(target_stopped_by_hw_breakpoint): Update the macro.
3651	(target_supports_stopped_by_hw_breakpoint): Update the macro.
3652	* target.cc (process_target::stopped_by_hw_breakpoint): Define.
3653	(process_target::supports_stopped_by_hw_breakpoint): Define.
3654
3655	Update the derived classes and callers below.
3656
3657	* linux-low.cc (linux_target_ops): Update.
3658	(linux_stopped_by_hw_breakpoint): Turn into ...
3659	(linux_process_target::stopped_by_hw_breakpoint): ... this.
3660	(linux_supports_stopped_by_hw_breakpoint): Turn into ...
3661	(linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
3662	* linux-low.h (class linux_process_target): Update.
3663	* lynx-low.cc (lynx_target_ops): Update.
3664	* nto-low.cc (nto_target_ops): Update.
3665	* win32-low.cc (win32_target_ops): Update.
3666
36672020-02-20  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
3668
3669	Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
3670	ops into methods of process_target.
3671
3672	* target.h (struct process_stratum_target): Remove the target ops.
3673	(class process_target): Add the target ops.
3674	(target_stopped_by_sw_breakpoint): Update the macro.
3675	(target_supports_stopped_by_sw_breakpoint): Update the macro.
3676	* target.cc (process_target::stopped_by_sw_breakpoint): Define.
3677	(process_target::supports_stopped_by_sw_breakpoint): Define.
3678
3679	Update the derived classes and callers below.
3680
3681	* linux-low.cc (linux_target_ops): Update.
3682	(linux_stopped_by_sw_breakpoint): Turn into ...
3683	(linux_process_target::stopped_by_sw_breakpoint): ... this.
3684	(linux_supports_stopped_by_sw_breakpoint): Turn into ...
3685	(linux_process_target::supports_stopped_by_sw_breakpoint): ... 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	* win32-low.cc (win32_target_ops): Update.
3690
36912020-02-20  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
3692
3693	Turn process_stratum_target's insert_point and remove_point ops
3694	into methods of process_target.
3695
3696	* target.h (struct process_stratum_target): Remove the target ops.
3697	(class process_target): Add the target ops.
3698	* target.cc (process_target::insert_point): Define.
3699	(process_target::remove_point): Define.
3700
3701	Update the derived classes and callers below.
3702
3703	* mem-break.cc (set_raw_breakpoint_at): Update.
3704	(delete_raw_breakpoint): Update.
3705	(uninsert_raw_breakpoint): Update.
3706	(reinsert_raw_breakpoint): Update.
3707	* linux-low.cc (linux_target_ops): Update.
3708	(linux_insert_point): Turn into ...
3709	(linux_process_target::insert_point): ... this.
3710	(linux_remove_point): Turn into ...
3711	(linux_process_target::remove_point): ... this.
3712	* linux-low.h (class linux_process_target): Update.
3713	* lynx-low.cc (lynx_target_ops): Update.
3714	* nto-low.cc (nto_target_ops): Update.
3715	(nto_insert_point): Turn into ...
3716	(nto_process_target::insert_point): ... this.
3717	(nto_remove_point): Turn into ...
3718	(nto_process_target::remove_point): ... this.
3719	* nto-low.h (class nto_process_target): Update.
3720	* win32-low.cc (win32_target_ops): Update.
3721	(win32_insert_point): Turn into ...
3722	(win32_process_target::insert_point): ... this.
3723	(win32_remove_point): Turn into ...
3724	(win32_process_target::remove_point): ... this.
3725	* win32-low.h (class win32_process_target): Update.
3726
37272020-02-20  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
3728
3729	Turn process_stratum_target's supports_z_point_type op into a
3730	method of process_target.
3731
3732	* target.h (struct process_stratum_target): Remove the target op.
3733	(class process_target): Add the target op.
3734	* target.cc (process_target::supports_z_point_type): Define.
3735
3736	Update the derived classes and callers below.
3737
3738	* mem-break.cc (z_type_supported): Update.
3739	* linux-low.cc (linux_target_ops): Update.
3740	(linux_supports_z_point_type): Turn into ...
3741	(linux_process_target::supports_z_point_type): ... this.
3742	* linux-low.h (class linux_process_target): Update.
3743	* lynx-low.cc (lynx_target_ops): Update.
3744	* nto-low.cc (nto_target_ops): Update.
3745	(nto_supports_z_point_type): Turn into ...
3746	(nto_process_target::supports_z_point_type): ... this.
3747	* nto-low.h (class nto_process_target): Update.
3748	* win32-low.cc (win32_target_ops): Update.
3749	(win32_supports_z_point_type): Turn into ...
3750	(win32_process_target::supports_z_point_type): ... this.
3751	* win32-low.h (class win32_process_target): Update.
3752
37532020-02-20  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
3754
3755	Turn process_stratum_target's read_auxv op into a method of
3756	process_target.
3757
3758	* target.h (class process_stratum_target): Remove the target op.
3759	(struct process_target): Add the target op.  Also add
3760	'supports_read_auxv'.
3761	* target.cc (process_target::read_auxv): Define.
3762	(process_target::supports_read_auxv): Define.
3763
3764	Update the derived classes and callers below.
3765
3766	* server.cc (handle_qxfer_auxv): Update.
3767	(handle_query): Update.
3768	* linux-low.cc (linux_target_ops): Update.
3769	(linux_process_target::supports_read_auxv): Define.
3770	(linux_read_auxv): Turn into ...
3771	(linux_process_target::read_auxv): ... this.
3772	* linux-low.h (class linux_process_target): Update.
3773	* lynx-low.cc (lynx_target_ops): Update.
3774	* nto-low.cc (nto_target_ops): Update.
3775	(nto_process_target::supports_read_auxv): Define.
3776	(nto_read_auxv): Turn into ...
3777	(nto_process_target::read_auxv): ... this.
3778	* nto-low.h (class nto_process_target): Update.
3779	* win32-low.cc (win32_target_ops): Update.
3780
37812020-02-20  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
3782
3783	Turn process_stratum_target's request_interrupt op into a method of
3784	process_target.
3785
3786	* target.h (struct process_stratum_target): Remove the target op.
3787	(class process_target): Add the target op.
3788
3789	Update the derived classes and callers below.
3790
3791	* remote-utils.cc (putpkt_binary_1): Update.
3792	(input_interrupt): Update.
3793	(getpkt): Update.
3794	* server.cc (handle_v_requests): Update.
3795	* linux-low.cc (linux_target_ops): Update.
3796	(linux_request_interrupt): Turn into ...
3797	(linux_process_target::request_interrupt): ... this.
3798	* linux-low.h (class linux_process_target): Update.
3799	* lynx-low.cc (lynx_target_ops): Update.
3800	(lynx_request_interrupt): Turn into ...
3801	(lynx_process_target::request_interrupt): ... this.
3802	* lynx-low.h (class lynx_process_target): Update.
3803	* nto-low.cc (nto_target_ops): Update.
3804	(nto_request_interrupt): Turn into ...
3805	(nto_process_target::request_interrupt): ... this.
3806	* nto-low.h (class nto_process_target): Update.
3807	* win32-low.cc (win32_target_ops): Update.
3808	(win32_request_interrupt): Turn into ...
3809	(win32_process_target::request_interrupt): ... this.
3810	* win32-low.h (class win32_process_target): Update.
3811
38122020-02-20  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
3813
3814	Turn process_stratum_target's look_up_symbols op into a method of
3815	process_target.
3816
3817	* target.h (struct process_stratum_target): Remove the target op.
3818	(class process_target): Add the target op.
3819	* target.cc (process_target::look_up_symbols): Define.
3820
3821	Update the derived classes and callers below.
3822
3823	* server.cc (handle_query): Update.
3824	* linux-low.cc (linux_target_ops): Update.
3825	(linux_look_up_symbols): Turn into ...
3826	(linux_process_target::look_up_symbols): ... this.
3827	* linux-low.h (class linux_process_target): Update.
3828	* lynx-low.cc (lynx_target_ops): Update.
3829	* nto-low.cc (nto_target_ops): Update.
3830	* win32-low.cc (win32_target_ops): Update.
3831
38322020-02-20  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
3833
3834	Turn process_stratum_target's read_memory and write_memory
3835	ops into methods of process_target.
3836
3837	* target.h (struct process_stratum_target): Remove the target ops.
3838	(class process_target): Add the target ops.
3839
3840	Update the derived classes and callers below.
3841
3842	* linux-aarch32-low.cc (arm_breakpoint_at): Update.
3843	* linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
3844	* linux-arm-low.cc (arm_sigreturn_next_pc): Update.
3845	(arm_get_syscall_trapinfo): Update.
3846	* linux-cris-low.cc (cris_breakpoint_at): Update.
3847	* linux-crisv32-low.cc (cris_breakpoint_at): Update.
3848	* linux-m32r-low.cc (m32r_breakpoint_at): Update.
3849	* linux-mips-low.cc (mips_breakpoint_at): Update.
3850	* linux-nios2-low.cc (nios2_breakpoint_at): Update.
3851	* linux-ppc-low.cc (ppc_breakpoint_at): Update.
3852	* linux-sh-low.cc (sh_breakpoint_at): Update.
3853	* linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
3854	(sparc_store_gregset_from_stack): Update.
3855	(sparc_breakpoint_at): Update.
3856	* linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
3857	* linux-tile-low.cc (tile_breakpoint_at): Update.
3858	* linux-x86-low.cc (x86_breakpoint_at): Update.
3859	* linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
3860	* mem-brea.cc (insert_memory_breakpoint): Update.
3861	(validate_inserted_breakpoint): Update.
3862	* target.cc (read_inferior_memory): Update.
3863	(target_write_memory): Update.
3864	* linux-low.cc (linux_target_ops): Update.
3865	(linux_read_memory): Make a wrapper around the read_memory target
3866	op call.
3867	(linux_process_target::read_memory): Rename from linux_read_memory.
3868	(linux_write_memory): Turn into ...
3869	(linux_process_target::write_memory): ... this.
3870	* linux-low.h (class linux_process_target): Update.
3871	* lynx-low.cc (lynx_target_ops): Update.
3872	(lynx_read_memory): Turn into ...
3873	(lynx_process_target::read_memory): ... this.
3874	(lynx_write_memory): Turn into ...
3875	(lynx_process_target::write_memory): ... this.
3876	* lynx-low.h (class lynx_process_target): Update.
3877	* nto-low.cc (nto_target_ops): Update.
3878	(nto_read_memory): Turn into ...
3879	(nto_process_target::read_memory): ... this.
3880	(nto_write_memory): Turn into ...
3881	(nto_process_target::write_memory): ... this.
3882	* nto-low.h (class nto_process_target): Update.
3883	* win32-low.cc (win32_target_ops): Update.
3884	(win32_read_inferior_memory): Turn into ...
3885	(win32_process_target::read_memory): ... this.
3886	(win32_write_inferior_memory): Turn into ...
3887	(win32_process_target::write_memory): ... this.
3888	* win32-low.h (class win32_process_target): Update.
3889
38902020-02-20  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
3891
3892	Turn process_stratum_target's prepare_to_access_memory and
3893	done_accessing_memory ops into methods of process_target.
3894
3895	* target.h (struct process_stratum_target): Remove the target ops.
3896	(class process_target): Add the target ops.
3897	* target.cc (process_target::prepare_to_access_memory): Define.
3898	(process_target::done_accessing_memory): Define.
3899	(prepare_to_access_memory): Update.
3900	(done_accessing_memory): Update.
3901
3902	Update the derived classes and callers below.
3903
3904	* linux-low.cc (linux_target_ops): Update.
3905	(linux_prepare_to_access_memory): Turn into ...
3906	(linux_process_target::prepare_to_access_memory): ... this.
3907	(linux_done_accessing_memory): Turn into ...
3908	(linux_process_target::done_accessing_memory): ... this.
3909	* linux-low.h (class linux_process_target): Update.
3910	* lynx-low.cc (lynx_target_ops): Update.
3911	* nto-low.cc (nto_target_ops): Update.
3912	* win32-low.cc (win32_target_ops): Update.
3913
39142020-02-20  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
3915
3916	Turn process_stratum_target's fetch_registers and store_registers
3917	ops into methods of process_target.
3918
3919	* target.h (struct process_stratum_target): Remove the target ops.
3920	(class process_target): Add the target ops.
3921	(fetch_inferior_registers): Update the macro.
3922	(store_inferior_registers): Update the macro.
3923
3924	Update the derived classes and callers below.
3925
3926	* linux-low.cc (linux_target_ops): Update.
3927	(linux_fetch_registers): Turn into ...
3928	(linux_process_target::fetch_registers): ... this.
3929	(linux_store_registers): Turn into ...
3930	(linux_process_target::store_registers): ... this.
3931	* linux-low.h (class linux_process_target): Update.
3932	* lynx-low.cc (lynx_target_ops): Update.
3933	(lynx_fetch_registers): Turn into ...
3934	(lynx_process_target::fetch_registers): ... this.
3935	(lynx_store_registers): Turn into ...
3936	(lynx_process_target::store_registers): ... this.
3937	* lynx-low.h (class lynx_process_target): Update.
3938	* nto-low.cc (nto_target_ops): Update.
3939	(nto_fetch_registers): Turn into ...
3940	(nto_process_target::fetch_registers): ... this.
3941	(nto_store_registers): Turn into ...
3942	(nto_process_target::store_registers): ... this.
3943	* nto-low.h (class nto_process_target): Update.
3944	* win32-low.cc (win32_target_ops): Update.
3945	(win32_fetch_inferior_registers): Turn into ...
3946	(win32_process_target::fetch_registers): ... this.
3947	(win32_store_inferior_registers): Turn into ...
3948	(win32_process_target::store_registers): ... this.
3949	* win32-low.h (class win32_process_target): Update.
3950
39512020-02-20  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
3952
3953	Turn process_stratum_target's wait op into a method of
3954	process_target.
3955
3956	* target.h (struct process_stratum_target): Remove the target op.
3957	(class process_target): Add the target op.
3958
3959	Update the derived classes and callers below.
3960
3961	* target.cc (target_wait): Update.
3962	* linux-low.cc (linux_target_ops): Update.
3963	(linux_wait): Turn into ...
3964	(linux_process_target::wait): ... this.
3965	* linux-low.h (class linux_process_target): Update.
3966	* lynx-low.cc (lynx_target_ops): Update.
3967	(lynx_wait): Turn into ...
3968	(lynx_process_target::wait): ... this.
3969	* lynx-low.h (class lynx_process_target): Update.
3970	* nto-low.cc (nto_target_ops): Update.
3971	(nto_wait): Turn into ...
3972	(nto_process_target::wait): ... this.
3973	* nto-low.h (class nto_process_target): Update.
3974	* win32-low.cc (win32_target_ops): Update.
3975	(win32_wait): Turn into ...
3976	(win32_process_target::wait): ... this.
3977	(do_initial_child_stuff): Update.
3978	* win32-low.h (class win32_process_target): Update.
3979
39802020-02-20  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
3981
3982	Turn process_stratum_target's resume op into a method of
3983	process_target.
3984
3985	* target.h (struct process_stratum_target): Remove the target op.
3986	(class process_target): Add the target op.
3987
3988	Update the derived classes and callers below.
3989
3990	* server.cc (resume): Update.
3991	* target.cc (target_stop_and_wait): Update.
3992	(target_continue_no_signal): Update.
3993	(target_continue): Update.
3994	* linux-low.cc (linux_target_ops): Update.
3995	(linux_resume): Turn into ...
3996	(linux_process_target::resume): ... this.
3997	* linux-low.h (class linux_process_target): Update.
3998	* lynx-low.cc (lynx_target_ops): Update.
3999	(lynx_resume): Turn into ...
4000	(lynx_process_target::resume): ... this.
4001	* lynx-low.h (class lynx_process_target): Update.
4002	* nto-low.cc (nto_target_ops): Update.
4003	(nto_resume): Turn into ...
4004	(nto_process_target::resume): ... this.
4005	* nto-low.h (class nto_process_target): Update.
4006	* win32-low.cc (win32_target_ops): Update.
4007	(win32_resume): Turn into ...
4008	(win32_process_target::resume): ... this.
4009	(win32_process_target::detach): Update.
4010	(do_initial_child_stuff): Update.
4011	* win32-low.h (class win32_process_target): Update.
4012
40132020-02-20  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
4014
4015	Turn process_stratum_target's thread_alive op into a method of
4016	process_target.
4017
4018	* target.h (struct process_stratum_target): Remove the target op.
4019	(class process_target): Add the target op.
4020	(mythread_alive): Update the macro.
4021
4022	Update the derived classes and callers below.
4023
4024	* linux-low.cc (linux_target_ops): Update.
4025	(linux_thread_alive): Turn into ...
4026	(linux_process_target::thread_alive): ... this.
4027	(wait_for_sigstop): Update.
4028	* linux-low.h (class linux_process_target): Update.
4029	* lynx-low.cc (lynx_target_ops): Update.
4030	(lynx_thread_alive): Turn into ...
4031	(lynx_process_target::thread_alive): ... this.
4032	* lynx-low.h (class lynx_process_target): Update.
4033	* nto-low.cc (nto_target_ops): Update.
4034	(nto_thread_alive): Turn into ...
4035	(nto_process_target::thread_alive): ... this.
4036	* nto-low.h (class nto_process_target): Update.
4037	* win32-low.cc (win32_target_ops): Update.
4038	(win32_thread_alive): Turn into ...
4039	(win32_process_target::thread_alive): ... this.
4040	* win32-low.h (class win32_process_target): Update.
4041
40422020-02-20  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
4043
4044	Turn process_stratum_target's join op into a method of
4045	process_target.
4046
4047	* target.h (struct process_stratum_target): Remove the target op.
4048	(class process_target): Add the target op.
4049	(join_inferior): Update the macro.
4050
4051	Update the derived classes and callers below.
4052
4053	* linux-low.cc (linux_target_ops): Update.
4054	(linux_join): Turn into ...
4055	(linux_process_target::join): ... this.
4056	* linux-low.h (class linux_process_target): Update.
4057	* lynx-low.cc (lynx_target_ops): Update.
4058	(lynx_join): Turn into ...
4059	(lynx_process_target::join): ... this.
4060	* lynx-low.h (class lynx_process_target): Update.
4061	* nto-low.cc (nto_target_ops): Update.
4062	(nto_process_target::join): Define.
4063	* nto-low.h (class nto_process_target): Update.
4064	* win32-low.cc (win32_target_ops): Update.
4065	(win32_join): Turn into ...
4066	(win32_process_target::join): ... this.
4067	* win32-low.h (class win32_process_target): Update.
4068
40692020-02-20  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
4070
4071	Turn process_stratum_target's mourn op into a method of
4072	process_target.
4073
4074	* target.h (struct process_stratum_target): Remove the target op.
4075	(class process_target): Add the target op.
4076
4077	Update the derived classes and callers below.
4078
4079	* target.cc (target_mourn_inferior): Update.
4080	* linux-low.cc (linux_target_ops): Update.
4081	(linux_mourn): Turn into ...
4082	(linux_process_target::mourn): ... this.
4083	(handle_extended_wait): Update.
4084	(linux_process_target::kill): Update.
4085	(linux_process_target::detach): Update.
4086	* linux-low.h (class linux_process_target): Update.
4087	* lynx-low.cc (lynx_target_ops): Update.
4088	(lynx_mourn): Turn into ...
4089	(lynx_process_target::mourn): ... this.
4090	* lynx-low.h (class lynx_process_target): Update.
4091	* nto-low.cc (nto_target_ops): Update.
4092	(nto_mourn): Turn into ...
4093	(nto_process_target::mourn): ... this.
4094	* nto-low.h (class nto_process_target): Update.
4095	* win32-low.cc (win32_target_ops): Update.
4096	(win32_mourn): Turn into ...
4097	(win32_process_target::mourn): ... this.
4098	* win32-low.h (class win32_process_target): Update.
4099
41002020-02-20  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
4101
4102	Turn process_stratum_target's detach op into a method of
4103	process_target.
4104
4105	* target.h (struct process_stratum_target): Remove the target op.
4106	(class process_target): Add the target op.
4107	(detach_inferior): Update the macro.
4108
4109	Update the derived classes and callers below.
4110
4111	* linux-low.cc (linux_target_ops): Update.
4112	(linux_detach): Turn into ...
4113	(linux_process_target::detach): ... this.
4114	* linux-low.h (class linux_process_target): Update.
4115	* lynx-low.cc (lynx_target_ops): Update.
4116	(lynx_detach): Turn into ...
4117	(lynx_process_target::detach): ... this.
4118	* lynx-low.h (class lynx_process_target): Update.
4119	* nto-low.cc (nto_target_ops): Update.
4120	(nto_detach): Turn into ...
4121	(nto_process_target::detach): ... this.
4122	* nto-low.h (class nto_process_target): Update.
4123	* win32-low.cc (win32_target_ops): Update.
4124	(win32_detach): Turn into ...
4125	(win32_process_target::detach): ... this.
4126	* win32-low.h (class win32_process_target): Update.
4127
41282020-02-20  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
4129
4130	Turn process_stratum_target's kill op into a method of
4131	process_target.
4132
4133	* target.h (struct process_stratum_target): Remove the target op.
4134	(class process_target): Add the target op.
4135
4136	Update the derived classes and callers below.
4137
4138	* target.cc (kill_inferior): Update.
4139	* linux-low.cc (linux_target_ops): Update.
4140	(linux_kill): Turn into ...
4141	(linux_process_target::kill): ... this.
4142	* linux-low.h (class linux_process_target): Update.
4143	* lynx-low.cc (lynx_target_ops): Update.
4144	(lynx_kill): Turn into ...
4145	(lynx_process_target::kill): ... this.
4146	* lynx-low.h (class lynx_process_target): Update.
4147	* nto-low.cc (nto_target_ops): Update.
4148	(nto_kill): Turn into ...
4149	(nto_process_target::kill): ... this.
4150	* nto-low.h (class nto_process_target): Update.
4151	* win32-low.cc (win32_target_ops): Update.
4152	(win32_kill): Turn into ...
4153	(win32_process_target::kill): ... this.
4154	* win32-low.h (class win32_process_target): Update.
4155
41562020-02-20  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
4157
4158	Turn process_stratum_target's attach op into a method of
4159	process_target.
4160
4161	* target.h (struct process_stratum_target): Remove the target op.
4162	(class process_target): Add the target op.
4163	(myattach): Update the macro.
4164
4165	Update the derived classes and callers below.
4166
4167	* linux-low.cc (linux_target_ops): Update.
4168	(linux_attach): Turn into ...
4169	(linux_process_target::attach): ... this.
4170	* linux-low.h (class linux_process_target): Update.
4171	* lynx-low.cc (lynx_target_ops): Update.
4172	(lynx_attach): Turn into ...
4173	(lynx_process_target::attach): ... this.
4174	* lynx-low.h (class lynx_process_target): Update.
4175	* nto-low.cc (nto_target_ops): Update.
4176	(nto_attach): Turn into ...
4177	(nto_process_target::attach): ... this.
4178	* nto-low.h (class nto_process_target): Update.
4179	* win32-low.cc (win32_target_ops): Update.
4180	(win32_attach): Turn into ...
4181	(win32_process_target::attach): ... this.
4182	* win32-low.h (class win32_process_target): Update.
4183
41842020-02-20  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
4185
4186	Turn process_stratum_target's post_create_inferior op into a method
4187	of process_target.
4188
4189	* target.h (struct process_stratum_target): Remove the target op.
4190	(class process_target): Add the target op.
4191	(target_post_create_inferior): Update the macro.
4192	* target.cc (process_target::post_create_inferior): Define.
4193
4194	Update the derived classes and callers below.
4195
4196	* linux-low.cc (linux_target_ops): Update.
4197	(linux_post_create_inferior): Turn into ...
4198	(linux_process_target::post_create_inferior): ... this.
4199	* linux-low.h (class linux_process_target): Update.
4200	* lynx-low.cc (lynx_target_ops): Update.
4201	* nto-low.cc (nto_target_ops): Update.
4202	* win32-low.cc (win32_target_ops): Update.
4203
42042020-02-20  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
4205
4206	Turn process_stratum_target's create_inferior op into a method of
4207	process_target.
4208
4209	* target.h (struct process_stratum_target): Remove the target op.
4210	(class process_target): Add the target op.
4211	(create_inferior): Rename the macro to ...
4212	(target_create_inferior): ... this.
4213
4214	Update the derived classes and callers below.
4215
4216	* server.cc (handle_v_run): Update.
4217	(captured_main): Update.
4218	(process_serial_event): Update.
4219	* linux-low.cc (linux_target_ops): Update.
4220	(linux_create_inferior): Turn into ...
4221	(linux_process_target::create_inferior): ... this.
4222	* linux-low.h (class linux_process_target): Update.
4223	* lynx-low.cc (lynx_target_ops): Update.
4224	(lynx_create_inferior): Turn into ...
4225	(lynx_process_target::create_inferior): ... this.
4226	* lynx-low.h (class lynx_process_target): Update.
4227	* nto-low.cc (nto_target_ops): Update.
4228	(nto_create_inferior): Turn into ...
4229	(nto_process_target::create_inferior): ... this.
4230	* nto-low.h (class nto_process_target): Update.
4231	* win32-low.cc (win32_target_ops): Update.
4232	(win32_create_inferior): Turn into ...
4233	(win32_process_target::create_inferior): ... this.
4234	* win32-low.h (class win32_process_target): Update.
4235
42362020-02-20  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
4237
4238	* target.h (class process_target): New class definition.
4239	(struct process_stratum_target) <pt>: New field with type
4240	'process_target*'.
4241	* linux-low.h (class linux_process_target): Define as a derived
4242	class of 'process_target'.
4243	* linux-low.cc (linux_target_ops): Add a linux_process_target*
4244	as the 'pt' field.
4245	* lynx-low.h (class lynx_process_target): Define as a derived
4246	class of 'process_target'.
4247	* lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
4248	as the 'pt' field.
4249	* nto-low.h (class nto_process_target): Define as a derived
4250	class of 'process_target'.
4251	* nto-low.cc (nto_target_ops): Add an nto_process_target*
4252	as the 'pt' field.
4253	* win32-low.h (class win32_process_target): Define as a derived
4254	class of 'process_target'.
4255	* win32-low.cc (win32_target_ops): Add a win32_process_target*
4256	as the 'pt' field.
4257
42582020-02-19  Andrew Burgess  <andrew.burgess@embecosm.com>
4259
4260	* configure: Regenerate.
4261
42622020-02-19  Maciej W. Rozycki  <macro@wdc.com>
4263	    Andrew Burgess  <andrew.burgess@embecosm.com>
4264
4265	* linux-riscv-low.cc: New file.
4266	* Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
4267	and nat/riscv-linux-tdesc.c.
4268	* configure.srv <riscv*-*-linux*> (srv_tgtobj)
4269	(srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
4270	Define.
4271
42722020-02-14  Tom Tromey  <tom@tromey.com>
4273
4274	* acinclude.m4: Don't include acx_configure_dir.m4.
4275	* Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
4276	(SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
4277	(all, install-only, uninstall, clean-info, clean)
4278	(maintainer-clean): Don't recurse.
4279	(subdir_do, all-lib): Remove.
4280	($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
4281	(GNULIB_H): Remove.
4282	(generated_files): Update.
4283	($(GNULIB_BUILDDIR)/Makefile): Remove rule.
4284	* configure: Rebuild.
4285	* configure.ac: Don't configure gnulib or libiberty.
4286	(GNULIB): Update.
4287
42882020-02-14  Eli Zaretskii  <eliz@gnu.org>
4289
4290	* win32-low.c (create_process): Prepend PROGRAM to ARGS when
4291	preparing the command line for CreateProcess.
4292	(win32_create_inferior): Reflect the program name in debugging
4293	output that shows the process and its command line.
4294
42952020-02-13  Simon Marchi  <simon.marchi@efficios.com>
4296
4297	* Makefile.in: Rename source files from .c to .cc.
4298	* %.c: Rename to %.cc.
4299	* configure.ac: Rename server.c to server.cc.
4300	* configure: Re-generate.
4301
43022020-02-13  Simon Marchi  <simon.marchi@efficios.com>
4303
4304	* Makefile.in: Rename gdbsupport source files from .c to .cc.
4305
43062020-02-12  Hannes Domani  <ssbssa@yahoo.de>
4307
4308	* win32-low.c (win32_create_inferior): Set signal_pid.
4309
43102020-02-12  Maciej W. Rozycki <macro@wdc.com>
4311	    Pedro Alves  <palves@redhat.com>
4312
4313	Skip building gdbserver in a cross-configuration.
4314	* configure.srv: Set $gdbserver_host depending on whether $target
4315	is $host.  Use $gdbserver_host instead of $host.
4316
43172020-02-11  Simon Marchi  <simon.marchi@efficios.com>
4318
4319	* configure: Re-generate.
4320
43212020-02-11  Simon Marchi  <simon.marchi@efficios.com>
4322
4323	* configure: Re-generate.
4324
43252020-02-11  Simon Marchi  <simon.marchi@efficios.com>
4326
4327	* acinclude.m4: Update warning.m4 path.
4328
43292020-02-09  Hannes Domani  <ssbssa@yahoo.de>
4330
4331	* win32-low.c (win32_clear_inferiors): Reset siginfo_er.
4332	(handle_exception): Set siginfo_er.
4333	(win32_xfer_siginfo): New function.
4334
43352020-02-07  Tom Tromey  <tom@tromey.com>
4336	    Pedro Alves  <palves@redhat.com>
4337
4338	* README: Update build documentation.
4339	* configure.srv: Set UNSUPPORTED if host is unsupported.  Check
4340	host, not target.
4341	* configure.ac: Update paths.
4342	* configure: Rebuild.
4343	* acinclude.m4: Update paths.
4344	* Makefile.in: Update include paths.
4345	(depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
4346	(SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
4347	(version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
4348	(gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
4349	(%-generated.c): Update paths.
4350	* Move entire directory from ../gdb/gdbserver.
4351
43522020-01-29  Maciej W. Rozycki  <macro@wdc.com>
4353
4354	* configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
4355
43562020-01-29  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
4357
4358	* configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
4359	assignment instead of srv_linux_obj.
4360
43612020-01-28  Hannes Domani  <ssbssa@yahoo.de>
4362
4363	* server.c (handle_qxfer_libraries): Write segment-address with
4364	paddress.
4365
43662020-01-24  Hannes Domani  <ssbssa@yahoo.de>
4367
4368	* Makefile.in (install-strip): New target.
4369	(install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
4370	* aclocal.m4: Regenerate.
4371	* configure: Regenerate.
4372	* configure.ac: Add AM_PROG_INSTALL_STRIP.
4373
43742020-01-24  Maciej W. Rozycki  <macro@wdc.com>
4375
4376	* Makefile.in (SFILES): Adjust paths to point to real files.
4377	(OBS): Move waitstatus.o to target/waitstatus.o.
4378	(TAGS): Transform paths appropriately.
4379	(%.o): Rename to...
4380	(nat/%.o): ... this pattern rule.
4381	(%.o): Rename to...
4382	(target/%.o): ... this pattern rule.
4383	* configure.srv: Adjust paths throughout to include nat/ prefix
4384	with the revant files.
4385	* configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
4386	* configure: Regenerate.
4387
43882020-01-24  Maciej W. Rozycki  <macro@wdc.com>
4389
4390	* Makefile.in (TAGS): Remove config files from the recipe.
4391
43922020-01-14  Tom Tromey  <tom@tromey.com>
4393
4394	* configure: Rebuild.
4395	* configure.ac: Remove any checks that were added to common.m4.
4396	* acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
4397	lib-link.m4.
4398
43992020-01-14  Tom Tromey  <tom@tromey.com>
4400
4401	* server.h: Include config.h.
4402	* gdbreplay.c: Include config.h.
4403	* configure: Rebuild.
4404	* configure.ac: Don't source common.host.
4405	* acinclude.m4: Update path.
4406	* Makefile.in (INCSUPPORT): New variable.
4407	(INCLUDE_CFLAGS): Add INCSUPPORT.
4408	(SFILES): Update paths.
4409	(version-generated.c): Update path to create-version.sh.
4410	(gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
4411
44122020-01-14  Tom Tromey  <tom@tromey.com>
4413
4414	* configure.ac (LIBS): Use WIN32APILIBS.
4415	(USE_WIN32API): Don't define.
4416	* configure: Rebuild.
4417
44182020-01-14  Tom Tromey  <tom@tromey.com>
4419
4420	* configure: Rebuild.
4421
44222020-01-13  Simon Marchi  <simon.marchi@efficios.com>
4423
4424	* Makefile.in (%-generated.c): Remove rule for files from
4425	regformats/i386.
4426
44272020-01-13  Simon Marchi  <simon.marchi@efficios.com>
4428
4429	* configure: Re-generate.
4430
44312020-01-13  Simon Marchi  <simon.marchi@efficios.com>
4432
4433	* tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
4434	Define to static.
4435	* tracepoint.c (stop_tracing, flush_trace_buffer,
4436	about_to_request_buffer_space, get_trace_state_variable_value,
4437	set_trace_state_variable_value, gdb_collect): Add declaration.
4438
44392020-01-13  Simon Marchi  <simon.marchi@efficios.com>
4440
4441	* linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
4442	amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
4443	amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
4444	i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
4445	i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
4446	static.
4447
44482020-01-13  Simon Marchi  <simon.marchi@efficios.com>
4449
4450	* inferiors.c: Include gdbsupport/common-inferior.h.
4451
44522020-01-13  Simon Marchi  <simon.marchi@efficios.com>
4453
4454	* hostio-errno.c: Include hostio.h.
4455
44562020-01-13  Simon Marchi  <simon.marchi@efficios.com>
4457
4458	* Makefile.in (%-generated.c): Make $(regdat_sh) a regular
4459	prerequisite.
4460
44612020-01-12  Simon Marchi  <simon.marchi@polymtl.ca>
4462
4463	* linux-arm-tdesc.c: Include linux-arm-tdesc.h.
4464	* linux-arm-tdesc.h: Include arch/arm.h.
4465
44662020-01-12  Simon Marchi  <simon.marchi@polymtl.ca>
4467
4468	* linux-aarch64-low.c (aarch64_write_goto_address): Make static.
4469
44702020-01-12  Simon Marchi  <simon.marchi@polymtl.ca>
4471
4472	* linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
4473	* linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
4474
44752020-01-10  Pedro Alves  <palves@redhat.com>
4476
4477	* fork-child.c (post_fork_inferior): Pass target down to
4478	startup_inferior.
4479	* inferiors.c (switch_to_thread): Add process_stratum_target
4480	parameter.
4481	* lynx-low.c (lynx_target_ops): Now a process_stratum_target.
4482	* nto-low.c (nto_target_ops): Now a process_stratum_target.
4483	* linux-low.c (linux_target_ops): Now a process_stratum_target.
4484	* remote-utils.c (prepare_resume_reply): Pass the target to
4485	switch_to_thread.
4486	* target.c (the_target): Now a process_stratum_target.
4487	(done_accessing_memory): Pass the target to switch_to_thread.
4488	(set_target_ops): Ajust to use process_stratum_target.
4489	* target.h (struct target_ops): Rename to ...
4490	(struct process_stratum_target): ... this.
4491	(the_target, set_target_ops): Adjust.
4492	(prepare_to_access_memory): Adjust comment.
4493	* win32-low.c (child_xfer_memory): Adjust to use
4494	process_stratum_target.
4495	(win32_target_ops): Now a process_stratum_target.
4496
44972020-01-06  Eli Zaretskii  <eliz@gnu.org>
4498	    Pedro Alves  <palves@redhat.com>
4499
4500	* win32-low.c (get_child_debug_event): Extract the fatal exception
4501	from the exit status and convert to the equivalent Posix signal
4502	number.
4503	(win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
4504	* Makefile.in (OBS, SFILES): Add gdb_wait.[co].
4505
45062020-01-01  Hannes Domani  <ssbssa@yahoo.de>
4507
4508	* Makefile.in: Use INSTALL_PROGRAM_ENV.
4509
45102020-01-01  Joel Brobecker  <brobecker@adacore.com>
4511
4512	* server.c (gdbserver_version): Change copyright year to 2020.
4513	* gdbreplay.c (gdbreplay_version): Likewise.
4514
45152019-12-19  Christian Biesinger  <cbiesinger@google.com>
4516
4517	* configure: Regenerate.
4518	* configure.ac: Quote variable arguments of test.
4519
45202019-12-16  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4521
4522	* Makefile.in: Fix build with GNU Make 3.81
4523
45242019-12-16  Tom Tromey  <tromey@adacore.com>
4525
4526	* server.c (get_exec_file): Constify result.
4527
45282019-12-10  Christian Biesinger  <cbiesinger@google.com>
4529
4530	* Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
4531	UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
4532	* config.in: Regenerate.
4533	* configure: Regenerate.
4534	* configure.ac: Don't check for strerror.
4535	* linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
4536	Call safe_strerror instead of strerror.
4537	* server.h (strerror): Remove this now-unnecessary declaration.
4538	* tracepoint.c (init_named_socket): Call safe_strerror instead of
4539	strerror.
4540	(gdb_agent_helper_thread): Likewise.
4541	* utils.c (perror_with_name): Likewise.
4542
45432019-11-26  Tom Tromey  <tom@tromey.com>
4544
4545	* configure, config.in: Rebuild.
4546
45472019-11-26  Tom Tromey  <tom@tromey.com>
4548
4549	* remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
4550	* linux-low.c (linux_wait_for_event_filtered, linux_async): Use
4551	gdb_sigmask.
4552	* configure, config.in: Rebuild.
4553
45542019-11-26  Tom Tromey  <tom@tromey.com>
4555
4556	* Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
4557	(INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
4558	(GDBSERVER_LIBS): Use PTHREAD_LIBS.
4559	* acinclude.m4: Include ax_pthread.m4.
4560	* config.in, configure: Rebuild.
4561
45622019-11-26  Christian Biesinger  <cbiesinger@google.com>
4563
4564	* debug.c (debug_set_output): Call safe_strerror instead of
4565	strerror.
4566	* linux-low.c (attach_proc_task_lwp_callback): Likewise.
4567	(linux_kill_one_lwp): Likewise.
4568	(linux_detach_one_lwp): Likewise.
4569	(linux_wait_for_event_filtered): Likewise.
4570	(store_register): Likewise.
4571	* lynx-low.c (lynx_attach): Likewise.
4572	* mem-break.c (insert_memory_breakpoint): Likewise.
4573	(remove_memory_breakpoint): Likewise.
4574	(delete_fast_tracepoint_jump): Likewise.
4575	(set_fast_tracepoint_jump): Likewise.
4576	(uninsert_fast_tracepoint_jumps_at): Likewise.
4577	(reinsert_fast_tracepoint_jumps_at): Likewise.
4578	* nto-low.c (nto_xfer_memory): Likewise.
4579	(nto_resume): Likewise.
4580
45812019-11-20  Luis Machado  <luis.machado@linaro.org>
4582
4583	* linux-aarch64-low.c (is_sve_tdesc): Check against target feature
4584	instead of register count.
4585	* tdesc.c (tdesc_contains_feature): New function.
4586	* tdesc.h (tdesc_contains_feature): New prototype.
4587
45882019-11-15  Christian Biesinger  <cbiesinger@google.com>
4589
4590	* Makefile.in: Add safe-strerror.c.
4591	* configure: Regenerate.
4592	* configure.ac: Don't source common.host.
4593
45942019-11-15  Christian Biesinger  <cbiesinger@google.com>
4595
4596	* config.in: Regenerate.
4597	* configure: Regenerate.
4598
45992019-11-12  Andrew Burgess  <andrew.burgess@embecosm.com>
4600
4601	* ax.c (ax_printf): Handle size_t_arg.
4602
46032019-11-06  Christian Biesinger  <cbiesinger@google.com>
4604
4605	* linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
4606	* mi/mi-main.c (output_cores): Likewise.
4607	* nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
4608	(linux_xfer_osdata_modules): Likewise.
4609	* remote.c (register_remote_support_xml): Likewise.
4610	* sparc64-tdep.c (adi_is_addr_mapped): Likewise.
4611	* xml-syscall.c (syscall_create_syscall_desc): Likewise.
4612
46132019-11-01  Christian Biesinger  <cbiesinger@google.com>
4614
4615	* configure: Regenerate.
4616	* configure.ac: Remove check for strerror_r.
4617
46182019-10-31  Christian Biesinger  <cbiesinger@google.com>
4619
4620	* config.in: Regenerate.
4621	* configure: Regenerate.
4622	* configure.ac: Also check for strerror_r.
4623
46242019-10-31  Christian Biesinger  <cbiesinger@google.com>
4625
4626	* ax.h (debug_agent): Remove duplicate declaration.
4627
46282019-10-26  Tom de Vries  <tdevries@suse.de>
4629
4630	* linux-aarch64-low.c: Fix typos in comments.
4631	* linux-arm-low.c: Same.
4632	* linux-low.c: Same.
4633	* linux-ppc-low.c: Same.
4634	* proc-service.c: Same.
4635	* regcache.h: Same.
4636	* server.c: Same.
4637	* tracepoint.c: Same.
4638	* win32-low.c: Same.
4639
46402019-10-25  Tom Tromey  <tromey@adacore.com>
4641
4642	* utils.c (xstrdup): Remove.
4643
46442019-10-23  Tom Tromey  <tom@tromey.com>
4645
4646	* configure, config.in: Rebuild.
4647
46482019-10-23  Tom Tromey  <tom@tromey.com>
4649
4650	* configure: Rebuild.
4651	* acinclude.m4: Use m4_include, not sinclude.
4652
46532019-10-17  Tom Tromey  <tromey@adacore.com>
4654
4655	* configure: Rebuild.
4656	* configure.ac: Use AC_CONFIG_HEADERS.  Create stamp-h there, not
4657	in AC_CONFIG_FILES invocation.
4658	* Makefile.in (stamp-h, Makefile): Use new-style config.status
4659	invocation.
4660
46612019-10-16  Christian Biesinger  <cbiesinger@google.com>
4662
4663	* server.c: Include xml-builtin.h.
4664	(get_xml_features): Don't declare xml_builtins here.
4665
46662019-10-15  Andrew Burgess  <andrew.burgess@embecosm.com>
4667
4668	* Makefile.in: Remove references to vec-ipa.o.
4669
46702019-10-15  Andrew Burgess  <andrew.burgess@embecosm.com>
4671
4672	* Makefile.in: Remove references to vec.c.
4673
46742019-10-02  Christian Biesinger  <cbiesinger@google.com>
4675
4676	* server.c (server_waiting): Change to bool.
4677	(extended_protocol): Likewise.
4678	(response_needed): Likewise.
4679	(exit_requested): Likewise.
4680	(run_once): Likewise.
4681	(report_no_resumed): Likewise.
4682	(non_stop): Likewise.
4683	(disable_packet_vCont): Likewise.
4684	(disable_packet_Tthread): Likewise.
4685	(disable_packet_qC): Likewise.
4686	(disable_packet_qfThreadInfo): Likewise.
4687	(handle_general_set): Update.
4688	(handle_detach): Update.
4689	(handle_monitor_command): Update.
4690	(handle_query): Update.
4691	(captured_main): Update.
4692	(process_serial_event): Update.
4693	* server.h (server_waiting): Change to bool.
4694	(disable_packet_vCont): Likewise.
4695	(disable_packet_Tthread): Likewise.
4696	(disable_packet_qC): Likewise.
4697	(disable_packet_qfThreadInfo): Likewise.
4698	(run_once): Likewise.
4699	(non_stop): Likewise.
4700	* target.c (target_stop_and_wait): Update.
4701
47022019-10-02  Tom Tromey  <tromey@adacore.com>
4703
4704	* Makefile.in (SFILES): Add common-inferior.c.
4705	(OBS): Add common-inferior.o.
4706	* server.c (startup_with_shell): Don't define.
4707
47082019-10-02  Andrew Burgess  <andrew.burgess@embecosm.com>
4709
4710	* linux-low.c (linux_low_read_btrace): Update for change to
4711	std::vector.
4712
47132019-09-20  Christian Biesinger  <cbiesinger@google.com>
4714
4715	* debug.c (debug_threads): Remove comment in favor of the header.
4716	* debug.h (using_threads): Add declaration.
4717	(debug_threads): Add comment.
4718	* linux-aarch64-low.c: Include debug.h and remove declaration of
4719	debug_threads.
4720	* nto-low.c: Likewise.
4721	* remote-utils.c: Likewise.
4722	* thread-db.c: Likewise.
4723
47242019-09-20  Ulrich Weigand  <uweigand@de.ibm.com>
4725
4726	* configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
4727	and powerpc-cell64l-ipa.o.
4728	(powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
4729	from srv_regobj.  Remove rs6000/powerpc-cell32l.xml and
4730	rs6000/powerpc-cell64l.xml from srv_xmlfiles.
4731	(spu*-*-*): Remove.
4732
4733	* spu-low.c: Remove file.
4734
4735	* linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
4736	(parse_spufs_run): Remove.
4737	(ppc_get_pc): Remove Cell/B.E. support.
4738	(ppc_set_pc): Likewise.
4739	(ppc_breakpoint_at): Likewise.
4740	(ppc_arch_setup): Likewise.
4741	(ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
4742	tdesc_powerpc_cell32l.
4743	(initialize_low_arch): Do not call init_registers_powerpc_cell64l
4744	or init_registers_powerpc_cell32l.
4745	* linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
4746	(initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
4747	or init_registers_powerpc_cell32l.
4748	* linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
4749	(init_registers_powerpc_cell32l): Remove prototype.
4750	(init_registers_powerpc_cell64l): Likewise.
4751
4752	* target.h (struct target_ops): Remove qxfer_spu member.
4753	* server.c (handle_qxfer_spu): Remove.
4754	(qxfer_packets): Remove entry for "spu".
4755	(handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
4756	* linux-low.c (SPUFS_MAGIC): Remove.
4757	(spu_enumerate_spu_ids): Remove.
4758	(linux_qxfer_spu): Remove.
4759	(linux_target_ops): Remove qxfer_spu member.
4760	* lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
4761	* nto-low.c (nto_target_ops): Remove qxfer_spu member.
4762	* win32-low.c (win32_target_ops): Remove qxfer_spu member.
4763
47642019-08-23  Sergio Durigan Junior  <sergiodj@redhat.com>
4765
4766	* Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
4767	(OBS): Add 'gdbsupport/gdb-dlfcn.o'.
4768	* config.in: Regenerate.
4769	* configure: Regenerate.
4770
47712019-08-15  Tom Tromey  <tromey@adacore.com>
4772
4773	* target.c (target_write_memory): Use gdb::byte_vector.
4774
47752019-08-15  Tom Tromey  <tromey@adacore.com>
4776
4777	* tracepoint.c (write_inferior_data_pointer)
4778	(write_inferior_integer, write_inferior_int8)
4779	(write_inferior_uinteger, m_tracepoint_action_download)
4780	(r_tracepoint_action_download, x_tracepoint_action_download)
4781	(l_tracepoint_action_download, clear_inferior_trace_buffer)
4782	(download_agent_expr, download_tracepoint_1)
4783	(download_trace_state_variables, upload_fast_traceframes): Update.
4784	* server.c (gdb_write_memory): Update.
4785	* remote-utils.c (relocate_instruction): Update.
4786	* proc-service.c (ps_pdwrite): Update.
4787	* mem-break.c (remove_memory_breakpoint)
4788	(delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
4789	(uninsert_fast_tracepoint_jumps_at)
4790	(reinsert_fast_tracepoint_jumps_at): Update.
4791	* linux-x86-low.c (append_insns)
4792	(i386_install_fast_tracepoint_jump_pad)
4793	(amd64_write_goto_address, i386_write_goto_address): Update.
4794	* linux-s390-low.c (append_insns, s390_write_goto_address):
4795	Update.
4796	* linux-ppc-low.c (ppc_relocate_instruction)
4797	(ppc_install_fast_tracepoint_jump_pad, emit_insns)
4798	(ppc_write_goto_address): Update.
4799	* linux-aarch64-low.c (append_insns): Update.
4800	* target.h (struct target_ops): Update.
4801	(write_inferior_memory): Don't declare.
4802	* target.c (target_write_memory): Rename from
4803	write_inferior_memory.  Remove old target_write_memory.
4804
48052019-08-15  Tom Tromey  <tromey@adacore.com>
4806
4807	* target.c (write_inferior_memory): Use std::vector.
4808
48092019-08-06  Frank Ch. Eigler  <fche@redhat.com>
4810
4811	PR build/24886
4812	* configure.ac: Drop enable-libmcheck support.
4813	* configure, config.in: Rebuild.
4814	* acinclude.m4: Don't include it.
4815
48162019-07-19  Alan Hayward  <alan.hayward@arm.com>
4817
4818	* configure.srv: Remove Arm xml files.
4819
48202019-07-19  Alan Hayward  <alan.hayward@arm.com>
4821
4822	* configure.srv: Add new files. Remove xml generated files.
4823	* linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
4824	registers.
4825	* linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
4826	* linux-aarch32-tdesc.c: New file.
4827	* linux-aarch32-tdesc.h: New file.
4828	* linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
4829	* linux-arm-low.c (init_registers_arm, tdesc_arm)
4830	(init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
4831	(init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
4832	(init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
4833	(arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
4834	(arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
4835	(arm_read_description): Call arm_linux_read_description.
4836	(initialize_low_arch): Don't init registers.
4837	* linux-arm-tdesc.c: New file.
4838	* linux-arm-tdesc.h: New file.
4839
48402019-07-10  Alan Hayward  <alan.hayward@arm.com>
4841
4842	* linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
4843	Move counter inside for.
4844	(arm_read_description): Check ptrace earlier.
4845	(arm_arch_setup): Call arm_linux_init_hwbp_cap here.
4846
48472019-07-09  Tom Tromey  <tom@tromey.com>
4848
4849	* configure: Rebuild.
4850	* configure.ac: Change common to gdbsupport.
4851	* acinclude.m4: Change common to gdbsupport.
4852	* Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
4853	(version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
4854	common to gdbsupport.
4855	* ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
4856	gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
4857	inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
4858	linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
4859	linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
4860	linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
4861	nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
4862	server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
4863	thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
4864	common to gdbsupport.
4865
48662019-07-04  Alan Hayward  <alan.hayward@arm.com>
4867
4868	* linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
4869	defines.
4870	* linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
4871
48722019-07-04  Alan Hayward  <alan.hayward@arm.com>
4873
4874	* configure.srv: Remove legacy xml.
4875	* linux-aarch64-low.c (initialize_low_arch): Remove
4876	initialize_low_tdesc call.
4877	* linux-aarch64-tdesc-selftest.c: Remove file.
4878	* linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
4879	* linux-x86-low.c (initialize_low_arch): Remove
4880	initialize_low_tdesc call.
4881	* linux-x86-tdesc-selftest.c: Remove file.
4882	* linux-x86-tdesc.h (initialize_low_tdesc): Remove.
4883
48842019-06-20  Tom de Vries  <tdevries@suse.de>
4885
4886	* linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
4887	s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
4888
48892019-06-19  Tom de Vries  <tdevries@suse.de>
4890
4891	* debug.h (debug_write): Change return type to ssize_t.
4892	* debug.c (debug_write): Same.
4893
48942019-06-14  Tom Tromey  <tom@tromey.com>
4895
4896	* configure.ac: Use new path to gnulib.
4897	* configure: Rebuild.
4898	* Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
4899	to gnulib.
4900
49012019-06-11  Tom Tromey  <tom@tromey.com>
4902
4903	* Makefile.in (SFILES): Add alloc.c.
4904	(OBS): Add alloc.o.
4905	(IPA_OBJS): Add alloc-ipa.o.
4906	(alloc-ipa.o): New target.
4907	(%.o: ../%.c): New pattern rule.
4908
49092019-06-10  Tom Tromey  <tromey@adacore.com>
4910
4911	* remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
4912	end warning with a newline.
4913	* linux-s390-low.c (s390_get_wordsize): Don't end warning with a
4914	newline.
4915	* thread-db.c (attach_thread): Don't end warning with a newline.
4916	(thread_db_notice_clone): Likewise.
4917	* tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
4918	newline.
4919	* linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
4920	end warning with a newline.
4921
49222019-06-04  Pedro Alves  <palves@redhat.com>
4923
4924	* server.c (captured_main): Use make_unique_xstrdup.
4925
49262019-06-02  Tom Tromey  <tom@tromey.com>
4927
4928	* gdbreplay.c (fromhex): Remove.
4929	* Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
4930
49312019-05-29  Tom Tromey  <tromey@adacore.com>
4932
4933	* configure: Rebuild.
4934
49352019-05-06  Kevin Buettner  <kevinb@redhat.com>
4936
4937	* linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
4938	sign extension code on 32-bit builds.
4939
49402019-05-03  Eli Zaretskii  <eliz@gnu.org>
4941
4942	* remote-utils.c:
4943	* gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
4944
49452019-04-19  Tom Tromey  <tom@tromey.com>
4946
4947	* server.c (struct vstop_notif): Derive from notif_event.
4948	<base>: Remove.
4949	(queue_stop_reply): Update.
4950	(remove_all_on_match_ptid): Change type.  Rewrite.
4951	(discard_queued_stop_replies): Rewrite.
4952	(in_queued_stop_replies_ptid): Change type.
4953	(in_queued_stop_replies): Rewrite.
4954	(notif_stop): Update.
4955	(queue_stop_reply_callback): Update.
4956	(captured_main): Don't call initialize_notif.
4957	(push_stop_notification): Update.
4958	* notif.c (notif_write_event, handle_notif_ack)
4959	(notif_event_enque, notif_push): Update.
4960	(notif_event_xfree, initialize_notif): Remove.
4961	* notif.h (struct notif_event): Include <list>, not
4962	"common/queue.h".
4963	(struct notif_server) <queue>: Now a std::list.
4964	(notif_event_p): Remove typedef.
4965	(initialize_notif): Don't declare.
4966	(struct notif_event): Add virtual destructor.
4967
49682019-04-17  Alan Hayward  <alan.hayward@arm.com>
4969
4970	* ax.c (ax_vdebug): Call debug_printf.
4971	* debug.c (debug_write): New function.
4972	* debug.h (debug_write): New declaration.
4973	* linux-low.c (sigchld_handler): Call debug_write.
4974
49752019-04-17  Alan Hayward  <alan.hayward@arm.com>
4976
4977	* debug.c (debug_set_output): New function.
4978	(debug_vprintf): Send output to debug_file.
4979	(debug_flush): Likewise.
4980	* debug.h (debug_set_output): New declaration.
4981	* server.c (handle_monitor_command): Add debug-file option.
4982	(captured_main): Likewise.
4983
49842019-04-17  Alan Hayward  <alan.hayward@arm.com>
4985
4986	* debug.c (remote_debug): Add definition.
4987	* debug.h (remote_debug): Add declaration.
4988	* hostio.c (remote_debug): Remove declaration.
4989	* remote-utils.c (struct ui_file): Likewise.
4990	(remote_debug): Likewise.
4991	* remote-utils.h (remote_debug): Likewise,
4992	* server.c (remote_debug): Remove definition.
4993
49942019-04-10  Kevin Buettner  <kevinb@redhat.com>
4995
4996	* linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
4997	when using a 64-bit gdbserver.
4998
49992019-04-09  Tom Tromey  <tromey@adacore.com>
5000
5001	* linux-low.c (select_event_lwp): Use find_thread_in_random.
5002
50032019-04-08  Tom Tromey  <tom@tromey.com>
5004
5005	* linux-low.c (linux_detach_one_lwp): Replace throw_exception with
5006	throw.
5007	(linux_resume_one_lwp): Likewise.
5008
50092019-04-08  Tom Tromey  <tom@tromey.com>
5010
5011	* gdbreplay.c: Update.
5012	* linux-low.c: Update.
5013	* server.c: Update.
5014
50152019-04-08  Tom Tromey  <tom@tromey.com>
5016
5017	* server.c: Use C++ exception handling.
5018	* linux-low.c: Use C++ exception handling.
5019	* gdbreplay.c: Use C++ exception handling.
5020
50212019-04-08  Tom Tromey  <tom@tromey.com>
5022
5023	* server.c (handle_btrace_general_set, handle_qxfer_btrace)
5024	(handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
5025	(captured_main, main): Update.
5026	* gdbreplay.c (main): Update.
5027
50282019-04-05  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
5029
5030	* linux-low.c (linux_get_auxv): Remove static.  Return auxv entry
5031	value in argument pointer, return 1 if the entry is found and 0
5032	otherwise.  Move comment.
5033	(linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
5034	* linux-low.h (linux_get_auxv): Declare.
5035	* linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
5036
50372019-04-05  Tom Tromey  <tromey@adacore.com>
5038
5039	* server.c (gdbserver_usage): Use upper-case for metasyntactic
5040	variables.
5041
50422019-03-28  Alan Hayward  <alan.hayward@arm.com>
5043
5044	* linux-low.c (AT_HWCAP2): Add define if not already included.
5045
50462019-03-26  Alan Hayward  <alan.hayward@arm.com>
5047
5048	* linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
5049	(aarch64_arch_setup): Call linux_get_hwcap.
5050	* linux-arm-low.c (arm_get_hwcap): Remove function.
5051	(arm_read_description): Call linux_get_hwcap.
5052	* linux-low.c (linux_get_auxv): New function.
5053	(linux_get_hwcap): Likewise.
5054	(linux_get_hwcap2): Likewise.
5055	* linux-low.h (linux_get_hwcap): New declaration.
5056	(linux_get_hwcap2): Likewise.
5057	* linux-ppc-low.c (ppc_get_auxv): Remove function.
5058	(ppc_arch_setup): Call linux_get_hwcap.
5059	* linux-s390-low.c (s390_get_hwcap): Remove function.
5060	(s390_arch_setup): Call linux_get_hwcap.
5061
50622019-03-22  Alan Hayward  <alan.hayward@arm.com>
5063	    Jiong Wang  <jiong.wang@arm.com>
5064
5065	* linux-aarch64-low.c (aarch64_store_pauthregset): New function.
5066	* linux-low.c (regsets_store_inferior_registers): Allow optional reads
5067	to fail.
5068	* linux-low.h (enum regset_type): Add OPTIONAL_REGS.
5069
50702019-03-22  Alan Hayward  <alan.hayward@arm.com>
5071	    Jiong Wang  <jiong.wang@arm.com>
5072
5073	* linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
5074	(aarch64_get_hwcap): New function.
5075	(aarch64_arch_setup): Read APIA hwcap.
5076
50772019-03-22  Alan Hayward  <alan.hayward@arm.com>
5078	    Jiong Wang  <jiong.wang@arm.com>
5079
5080	* linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
5081	(initialize_low_tracepoint): Likewise.
5082	* linux-aarch64-low.c (aarch64_arch_setup): Likewise.
5083	* linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
5084	* linux-aarch64-tdesc.c (struct target_desc): Likewise.
5085	(aarch64_linux_read_description): Likewise.
5086	* linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
5087
50882019-03-12  John Baldwin  <jhb@FreeBSD.org>
5089
5090	* linux-x86-tdesc.c (i386_linux_read_description): Update call to
5091	i386_create_target_description for 'segments' parameter.
5092	* lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
5093	* nto-x86-low.c (nto_x86_arch_setup): Likewise.
5094	* win32-i386-low.c (i386_arch_setup): Likewise.
5095
50962019-03-12  Tom Tromey  <tromey@adacore.com>
5097
5098	* linux-low.c (iterate_over_lwps): Update.
5099
51002019-03-06  Tom Tromey  <tom@tromey.com>
5101
5102	* server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
5103	(captured_main): Use SCOPE_EXIT.
5104
51052019-03-04  Sergio Durigan Junior  <sergiodj@redhat.com>
5106
5107	* configure.srv: Use '$enable_unittest' instead of '$development'
5108	when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
5109	case.
5110
51112019-02-27  Tom Tromey  <tromey@adacore.com>
5112
5113	* gdbreplay.c (logchar): Handle \r\n.
5114
51152019-02-07  Alan Hayward  <alan.hayward@arm.com>
5116
5117	* linux-low.c (linux_attach): Add process before lwp.
5118	* server.c (attach_inferior): Check if already attached.
5119
51202019-02-07  Tom Tromey  <tom@tromey.com>
5121
5122	* x86-tdesc.h: Rename include guard.
5123	* x86-low.h: Add include guard.
5124	* wincecompat.h: Rename include guard.
5125	* win32-low.h: Add include guard.
5126	* utils.h: Rename include guard.
5127	* tracepoint.h: Rename include guard.
5128	* tdesc.h: Rename include guard.
5129	* target.h: Rename include guard.
5130	* server.h: Rename include guard.
5131	* remote-utils.h: Rename include guard.
5132	* regcache.h: Rename include guard.
5133	* nto-low.h: Rename include guard.
5134	* notif.h: Add include guard.
5135	* mem-break.h: Rename include guard.
5136	* lynx-low.h: Add include guard.
5137	* linux-x86-tdesc.h: Add include guard.
5138	* linux-s390-tdesc.h: Add include guard.
5139	* linux-ppc-tdesc-init.h: Add include guard.
5140	* linux-low.h: Add include guard.
5141	* linux-aarch64-tdesc.h: Add include guard.
5142	* linux-aarch32-low.h: Add include guard.
5143	* inferiors.h: Rename include guard.
5144	* i387-fp.h: Rename include guard.
5145	* hostio.h: Rename include guard.
5146	* gdbthread.h: Rename include guard.
5147	* gdb_proc_service.h: Rename include guard.
5148	* event-loop.h: Rename include guard.
5149	* dll.h: Rename include guard.
5150	* debug.h: Rename include guard.
5151	* ax.h: Rename include guard.
5152
51532018-01-30  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5154
5155	PR gdb/23985
5156	* Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
5157	(UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
5158
51592019-01-25  Tom Tromey  <tom@tromey.com>
5160
5161	* Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
5162
51632019-01-25  Tom Tromey  <tom@tromey.com>
5164
5165	* win32-low.c: Fix common/ includes.
5166	* win32-i386-low.c: Fix common/ includes.
5167	* tracepoint.c: Fix common/ includes.
5168	* thread-db.c: Fix common/ includes.
5169	* target.h: Fix common/ includes.
5170	* symbol.c: Fix common/ includes.
5171	* spu-low.c: Fix common/ includes.
5172	* server.h: Fix common/ includes.
5173	* server.c: Fix common/ includes.
5174	* remote-utils.c: Fix common/ includes.
5175	* regcache.h: Fix common/ includes.
5176	* regcache.c: Fix common/ includes.
5177	* nto-x86-low.c: Fix common/ includes.
5178	* notif.h: Fix common/ includes.
5179	* mem-break.h: Fix common/ includes.
5180	* lynx-low.c: Fix common/ includes.
5181	* lynx-i386-low.c: Fix common/ includes.
5182	* linux-x86-tdesc-selftest.c: Fix common/ includes.
5183	* linux-x86-low.c: Fix common/ includes.
5184	* linux-low.c: Fix common/ includes.
5185	* inferiors.h: Fix common/ includes.
5186	* i387-fp.c: Fix common/ includes.
5187	* hostio.c: Fix common/ includes.
5188	* hostio-errno.c: Fix common/ includes.
5189	* gdbthread.h: Fix common/ includes.
5190	* gdbreplay.c: Fix common/ includes.
5191	* fork-child.c: Fix common/ includes.
5192	* event-loop.c: Fix common/ includes.
5193	* ax.c:
5194	(enum gdb_agent_op): Fix common/ includes.
5195
51962019-01-21  Tom Tromey  <tom@tromey.com>
5197
5198	* tracepoint.c: Fix includes.
5199	* remote-utils.c: Fix includes.
5200	* linux-x86-low.c: Fix includes.
5201
52022019-01-01  Joel Brobecker  <brobecker@adacore.com>
5203
5204	* gdbreplay.c (gdbreplay_version): Update copyright year in
5205	version message.
5206	* server.c (gdbserver_version): Likewise.
5207
52082018-12-05  Alan Hayward  <alan.hayward@arm.com>
5209
5210	* linux-low.c (add_lwp): Switch ordering.
5211
52122018-11-29  Tom Tromey  <tom@tromey.com>
5213
5214	* win32-low.c (win32_join): Take pid, not process.
5215	* target.h (struct target_ops) <join>: Change argument type.
5216	(join_inferior): Change argument name.
5217	* spu-low.c (spu_join): Take pid, not process.
5218	* server.c (handle_detach): Preserve pid before destroying
5219	process.
5220	* lynx-low.c (lynx_join): Take pid, not process.
5221	* linux-low.c (linux_join): Take pid, not process.
5222
52232018-11-23  Alan Hayward  <alan.hayward@arm.com>
5224
5225	* linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
5226	(aarch64_cannot_fetch_register): Likewise.
5227	(struct linux_target_ops): Update references.
5228
52292018-10-31  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
5230
5231	* linux-ppc-low.c: Include nat/linux-ptrace.h.
5232
52332018-10-26  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
5234
5235	* configure.srv (ipa_ppc_linux_regobj): Add
5236	powerpc-isa207-htm-vsx32l-ipa.o and
5237	powerpc-isa207-htm-vsx64l-ipa.o.
5238	(powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
5239	powerpc-isa207-htm-vsx64l.o to srv_regobj.  Add
5240	rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
5241	rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
5242	rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
5243	rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
5244	rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
5245	and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
5246	* linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5247	<PPC_TDESC_ISA207_HTM_VSX>: New enum value.
5248	(init_registers_powerpc_isa207_htm_vsx32l)
5249	(init_registers_powerpc_isa207_htm_vsx64l): Declare.
5250	* linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
5251	(ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
5252	(ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
5253	(ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
5254	(ppc_store_tm_ctarregset): New functions.
5255	(ppc_regsets): Add entries for HTM regsets.
5256	(ppc_arch_setup): Set htm in features struct when needed.  Set
5257	sizes for the HTM regsets.
5258	(ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
5259	(initialize_low_arch): Call
5260	init_registers_powerpc_isa207_htm_vsx32l and
5261	init_registers_powerpc_isa207_htm_vsx64l.
5262	* linux-ppc-ipa.c (get_ipa_tdesc): Handle
5263	PPC_TDESC_ISA207_HTM_VSX.
5264	(initialize_low_tracepoint): Call
5265	init_registers_powerpc_isa207_htm_vsx32l and
5266	init_registers_powerpc_isa207_htm_vsx64l.
5267
52682018-10-26  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
5269
5270	* configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
5271	rs6000/power-linux-pmu.xml to srv_xmlfiles.
5272	* linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
5273	(ppc_store_pmuregset): New functions.
5274	(ppc_regsets): Add entries for ebb and pmu regsets.
5275	(ppc_arch_setup): Set isa207 in features struct if the ebb and
5276	pmu regsets are available.  Set sizes for these regsets.
5277
52782018-10-26  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
5279
5280	* configure.srv (ipa_ppc_linux_regobj): Add
5281	powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
5282	(powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
5283	powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
5284	rs6000/powerpc-isa207-vsx32l.xml, and
5285	rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
5286	* linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5287	<PPC_TDESC_ISA207_VSX>: New enum value.
5288	(init_registers_powerpc_isa207_vsx32l): Declare.
5289	(init_registers_powerpc_isa207_vsx64l): Declare.
5290	* linux-ppc-low.c (ppc_fill_tarregset): New function.
5291	(ppc_store_tarregset): New function.
5292	(ppc_regsets): Add entry for the TAR regset.
5293	(ppc_arch_setup): Set isa207 in features struct when needed.  Set
5294	size for the TAR regsets.
5295	(ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
5296	(initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
5297	and init_registers_powerpc_isa207_vsx64l.
5298	* linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
5299	(initialize_low_tracepoint): Call
5300	init_registers_powerpc_isa207_vsx32l and
5301	init_registers_powerpc_isa207_vsx64l.
5302
53032018-10-26  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
5304	    Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
5305
5306	* configure.srv (ipa_ppc_linux_regobj): Add
5307	powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
5308	powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
5309	(powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
5310	powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
5311	rs6000/power-dscr.xml, rs6000/power-ppr.xml,
5312	rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
5313	rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
5314	* linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5315	<PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
5316	(init_registers_powerpc_isa205_ppr_dscr_vsx32l)
5317	(init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
5318	* linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
5319	(ppc_hwcap): Add comment.
5320	(ppc_hwcap2): New global.
5321	(ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
5322	(ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
5323	(ppc_regsets): Add entries for the DSCR and PPR regsets.
5324	(ppc_arch_setup): Get AT_HWCAP2.  Set ppr_dscr in features struct
5325	when needed.  Set sizes for the the DSCR and PPR regsets.
5326	(ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
5327	(initialize_low_arch): Call
5328	init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5329	init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5330	* linux-ppc-ipa.c (get_ipa_tdesc): Handle
5331	PPC_TDESC_ISA205_PPR_DSCR_VSX.
5332	(initialize_low_tracepoint): Call
5333	init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5334	init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5335
53362018-10-26  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
5337
5338	* linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
5339
53402018-10-10  Sergio Durigan Junior  <sergiodj@redhat.com>
5341	    Simon Marchi <simark@simark.ca>
5342
5343	* acinclude.m4: Include "../selftest.m4".
5344	* configure: Regenerate.
5345	* configure.ac: Use "GDB_AC_SELFTEST".
5346	* configure.srv: Use "$enable_unittests" instead of
5347	"$development" when checking whether unit tests have been
5348	enabled.
5349	* server.c (captured_main): Update message informing that
5350	selftests have been disabled.
5351
53522018-10-04  Tom Tromey  <tom@tromey.com>
5353
5354	* configure: Rebuild.
5355
53562018-10-04  Tom Tromey  <tom@tromey.com>
5357
5358	* server.c (handle_status): Rename inner "thread".
5359	(process_serial_event): Declare "res" in 'm' case.
5360	* linux-low.c (last_thread_of_process_p, find_lwp_pid)
5361	(iterate_over_lwps): Rename inner "thread".
5362	(linux_qxfer_libraries_svr4): Rename inner "len".
5363	* gdbthread.h (find_thread_in_random): Rename inner "thread".
5364
53652018-10-01  Gary Benson <gbenson@redhat.com>
5366
5367	* gdb_proc_service.h: Moved common code to
5368	common/gdb_proc_service.h.
5369
53702018-10-01  Gary Benson <gbenson@redhat.com>
5371
5372	* gdb_proc_service.h: Synchronize comments and whitespace with
5373	GDB's version of this file.
5374
53752018-09-25  Tom Tromey  <tom@tromey.com>
5376
5377	* configure: Rebuild.
5378	* configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
5379
53802018-09-16  Simon Marchi  <simon.marchi@polymtl.ca>
5381
5382	* Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
5383	(gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
5384	($(IPA_LIB)): Sort IPA_OBJS.
5385
53862018-09-16  Simon Marchi  <simon.marchi@polymtl.ca>
5387
5388	* Makefile.in: Remove references to $(ADD_DEPS).
5389
53902018-09-16  Tom Tromey  <tom@tromey.com>
5391
5392	* remote-utils.c (remote_open): Use GNU style for metasyntactic
5393	variables.
5394	* gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
5395	variables.
5396
53972018-09-05  Tom Tromey  <tom@tromey.com>
5398
5399	* configure: Rebuild.
5400
54012018-08-28  Simon Marchi  <simon.marchi@polymtl.ca>
5402
5403	PR build/23399
5404	* tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
5405
54062018-08-27  Tom Tromey  <tom@tromey.com>
5407
5408	PR build/23087:
5409	* configure: Rebuild.
5410
54112018-08-27  Tom Tromey  <tom@tromey.com>
5412
5413	* linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
5414	(s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
5415	(s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
5416	(s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
5417	(s390x_emit_stack_adjust): Add casts to unsigned char.
5418
54192018-08-22  Simon Marchi  <simon.marchi@ericsson.com>
5420
5421	PR gdb/23374
5422	PR gdb/23375
5423	* server.h (struct client_state) <disable_randomization>:
5424	Initialize to 1.
5425
54262018-07-22  Simon Marchi  <simon.marchi@polymtl.ca>
5427
5428	* linux-mips-low.c (mips_collect_ptrace_register): Remove unused
5429	variable.
5430	(mips_supply_ptrace_register): Likewise.
5431
54322018-07-22  Tom Tromey  <tom@tromey.com>
5433
5434	* configure: Rebuild.
5435
54362018-07-22  Tom Tromey  <tom@tromey.com>
5437
5438	* win32-low.c (win32_create_inferior): Remove unused variables.
5439	* gdbreplay.c (remote_open): Remove unused variable.
5440	* remote-utils.c (remote_prepare): Remove unused variable.
5441	* x86-tdesc.h (X86_TDESC_H): Define.
5442	(amd64_expedite_regs): Define conditionally.
5443	(i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
5444	* linux-x86-tdesc.c (i386_tdescs): Move inside #if.
5445	* remote-utils.c (readchar): Remove unused variable.
5446
54472018-07-13  Pedro Alves  <palves@redhat.com>
5448
5449	* linux-low.c (linux_kill): Change parameter to process_info
5450	pointer instead of pid.  Adjust.
5451	* lynx-low.c (lynx_kill): Likewise.
5452	* nto-low.c (nto_kill): Likewise.
5453	* spu-low.c (spu_kill): Likewise.
5454	* win32-low.c (win32_kill): Likewise.
5455	* server.c (handle_v_kill, kill_inferior_callback)
5456	(detach_or_kill_for_exit): Adjust.
5457	* target.c (kill_inferior): Change parameter to process_info
5458	pointer instead of pid.  Adjust.
5459	* target.h (struct target_ops) <kill>: Change parameter to
5460	process_info pointer instead of pid.  Adjust all implementations
5461	and callers.
5462	(kill_inferior): Likewise.
5463
54642018-07-13  Pedro Alves  <palves@redhat.com>
5465
5466	* linux-low.c (linux_detach, linux_join): Change parameter to
5467	process_info pointer instead of pid.  Adjust.
5468	* lynx-low.c (lynx_detach, lynx_join): Likewise.
5469	* nto-low.c (nto_detach): Likewise.
5470	* spu-low.c (spu_detach, spu_join): Likewise.
5471	* win32-low.c (win32_detach, win32_join): Likewise.
5472	* server.c (handle_detach, detach_or_kill_for_exit): Adjust.
5473	* target.h (struct target_ops) <detach, join>: Change parameter to
5474	process_info pointer instead of pid.  Adjust all implementations
5475	and callers.
5476	(detach_inferior, join_inferior): Rename 'pid' parameter to
5477	'proc'.
5478
54792018-07-11  Sergio Durigan Junior  <sergiodj@redhat.com>
5480	    Jan Kratochvil  <jan.kratochvil@redhat.com>
5481	    Paul Fertser  <fercerpav@gmail.com>
5482	    Tsutomu Seki  <sekiriki@gmail.com>
5483
5484	* Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
5485	(OBS): Add 'common/netstuff.o'.
5486	(GDBREPLAY_OBS): Likewise.
5487	* gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
5488	(remote_open): Implement support for IPv6
5489	connections.
5490	* remote-utils.c: Include 'netstuff.h', 'filestuff.h'
5491	and 'wspiapi.h'.
5492	(handle_accept_event): Accept connections from IPv6 sources.
5493	(remote_prepare): Handle IPv6-style hostnames; implement
5494	support for IPv6 connections.
5495	(remote_open): Implement support for printing connections from
5496	IPv6 sources.
5497
54982018-07-11  Pedro Alves  <palves@redhat.com>
5499
5500	PR gdb/23377
5501	* mem-break.c (any_persistent_commands): Add process_info
5502	parameter and use it instead of relying on the current process.
5503	Change return type to bool.
5504	* mem-break.h (any_persistent_commands): Add process_info
5505	parameter and change return type to bool.
5506	* server.c (handle_detach): Remove require_running_or_return call.
5507	Look up the process_info for the process we're about to detach.
5508	If not found, return back error to GDB.  Adjust
5509	any_persistent_commands call to pass down a process pointer.
5510
55112018-07-11  Pedro Alves  <palves@redhat.com>
5512
5513	* i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
5514	(i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
5515	instead of collect_register_by_name.
5516	* regcache.c (regcache_raw_get_unsigned_by_name): New.
5517	* regcache.h (regcache_raw_get_unsigned_by_name): New.
5518
55192018-07-04  Vyacheslav Barinov  <v.barinov@samsung.com>
5520	    Pedro Alves  <palves@redhat.com>
5521
5522	* linux-low.c (initialize_low): Call linux_proc_init_warnings.
5523
55242018-07-03  Tom Tromey  <tom@tromey.com>
5525
5526	* linux-low.c: Update.
5527	* lynx-low.c: Update.
5528	* mem-break.c: Update.
5529	* nto-low.c: Update.
5530	* remote-utils.c: Update.
5531	* server.c: Update.
5532	* spu-low.c: Update.
5533	* target.c: Update.
5534	* win32-low.c: Update.
5535
55362018-07-03  Tom Tromey  <tom@tromey.com>
5537
5538	* server.c: Update.
5539
55402018-07-03  Tom Tromey  <tom@tromey.com>
5541
5542	* linux-low.c: Update.
5543
55442018-07-03  Tom Tromey  <tom@tromey.com>
5545
5546	* target.c: Update.
5547
55482018-07-03  Tom Tromey  <tom@tromey.com>
5549
5550	* linux-low.c: Update.
5551	* linux-mips-low.c: Update.
5552	* lynx-low.c: Update.
5553	* nto-low.c: Update.
5554	* remote-utils.c: Update.
5555	* server.c: Update.
5556	* spu-low.c: Update.
5557	* target.c: Update.
5558	* thread-db.c: Update.
5559
55602018-07-03  Tom Tromey  <tom@tromey.com>
5561
5562	* linux-low.c: Update.
5563	* linux-mips-low.c: Update.
5564	* lynx-low.c: Update.
5565	* mem-break.c: Update.
5566	* nto-low.c: Update.
5567	* remote-utils.c: Update.
5568	* server.c: Update.
5569	* spu-low.c: Update.
5570	* target.c: Update.
5571	* tracepoint.c: Update.
5572
55732018-07-03  Tom Tromey  <tom@tromey.com>
5574
5575	* linux-low.c: Update.
5576	* linux-ppc-low.c: Update.
5577	* linux-x86-low.c: Update.
5578	* proc-service.c: Update.
5579	* server.c: Update.
5580	* spu-low.c: Update.
5581	* thread-db.c: Update.
5582	* win32-low.c: Update.
5583
55842018-07-03  Tom Tromey  <tom@tromey.com>
5585
5586	* linux-low.c: Update.
5587	* lynx-low.c: Update.
5588	* nto-low.c: Update.
5589	* remote-utils.c: Update.
5590	* spu-low.c: Update.
5591	* thread-db.c: Update.
5592	* win32-low.c: Update.
5593
55942018-06-29  Joel Brobecker  <brobecker@adacore.com>
5595
5596	* linux-x86-tdesc.c (amd64_linux_read_description): Add missing
5597	parameter in call to 'amd64_create_target_description'.
5598
55992018-06-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
5600
5601	* x86-tdesc.h: Remove executable permission flag.
5602
56032018-06-19  Simon Marchi  <simon.marchi@ericsson.com>
5604
5605	* configure.ac: Remove AC_PREREQ, add missing quoting.
5606	* configure: Re-generate.
5607	* config.in: Re-generate.
5608	* aclocal.m4: Re-generate.
5609
56102018-06-18  Simon Marchi  <simon.marchi@ericsson.com>
5611
5612	* tracepoint.h (current_traceframe): Remove declaration.
5613
56142018-06-18  Alan Hayward  <alan.hayward@arm.com>
5615
5616	* linux-aarch64-low.c (is_sve_tdesc): New function.
5617	(aarch64_sve_regs_copy_to_regcache): Likewise.
5618	(aarch64_sve_regs_copy_from_regcache): Likewise.
5619	(aarch64_regs_info): Add SVE checks.
5620	(initialize_low_arch): Initialize SVE.
5621
56222018-06-18  Alan Hayward  <alan.hayward@arm.com>
5623
5624	* Makefile.in: Add aarch64-sve-linux-ptrace.c.
5625
56262018-06-11  Alan Hayward  <alan.hayward@arm.com>
5627
5628	* linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
5629	(initialize_low_tracepoint): Likewise
5630	* linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
5631	* linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
5632	param.
5633	* linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
5634	checks.
5635	* linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
5636
56372018-06-11  Alan Hayward  <alan.hayward@arm.com>
5638
5639	* server.h (PBUFSIZ): Increase size
5640
56412018-06-11  Alan Hayward  <alan.hayward@arm.com>
5642
5643	* regcache.c (regcache::raw_compare): New function.
5644	* regcache.h (regcache::raw_compare): New declaration.
5645
56462018-06-11  Alan Hayward  <alan.hayward@arm.com>
5647
5648	* regcache.c (new_register_cache): Use new.
5649	(free_register_cache): Use delete.
5650	(register_data): Use const.
5651	(supply_register): Move body inside regcache.
5652	(regcache::raw_supply): New override function.
5653	(collect_register): Move body inside regcache.
5654	(regcache::raw_collect): New override function.
5655	(regcache::get_register_status): New override function.
5656	* regcache.h (struct regcache): Inherit from reg_buffer_common.
5657
56582018-06-09  Tom Tromey  <tom@tromey.com>
5659
5660	* event-loop.c (gdb_event, gdb_event_p): Remove typedefs.  Don't
5661	declare queue.
5662	(event_queue): Use std::queue.
5663	(gdb_event_xfree): Remove.
5664	(initialize_event_loop, process_event, wait_for_event): Update.
5665
56662018-06-08  Stan Cox  <scox@redhat.com>
5667
5668	* win32-low.c (win32_create_inferior):  last_ptid and last_status
5669	moved to client_state.
5670
56712018-06-08  Pedro Alves  <palves@redhat.com>
5672
5673	* Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
5674	common/common-exceptions.o, common/common-utils.o,
5675	common/errors.o, common/print-utils.o and utils.o.
5676	* gdbreplay.c: Include "common-defs.h" instead of the two
5677	'config.h's here.  Don't include stdio.h, errno.h, stdlib.h,
5678	string.h or alloca.h.
5679	(perror_with_name): Delete.
5680	(remote_open): Use xstrdup instead of strdup.
5681	(main): Rename to ...
5682	(captured_main): ... this.
5683	(main): New.
5684
56852018-06-08  Tom Tromey  <tom@tromey.com>
5686
5687	* linux-low.c (linux_low_read_btrace): Update.
5688
56892018-06-04  Stan Cox  <scox@redhat.com>
5690
5691	* server.h (struct client_state): New.
5692	* server.c (cont_thread, general_thread, multi_process)
5693	(report_fork_events, report_vfork_events, report_exec_events)
5694	(report_thread_events, swbreak_feature, hwbreak_feature)
5695	(vCont_supported, disable_randomization, pass_signals)
5696	(program_signals, program_signals_p, last_status, last_ptid, own_buf):
5697	Moved to client_state.
5698	* remote-utils.c (remote_debug, noack_mode)
5699	(transport_is_reliable): Moved to client_state.
5700	* tracepoint.c (current_traceframe): Moved to client_state.
5701
5702	Update all callers.
5703	* server.c, remote-utils.c, tracepoint.c, fork-child.c,
5704	linux-low.c, remote-utils.h, target.c: Use client_state.
5705
57062018-05-31  Alan Hayward  <alan.hayward@arm.com>
5707
5708	* configure.srv: Add new c/h file.
5709
57102018-05-31  Alan Hayward  <alan.hayward@arm.com>
5711
5712	* linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
5713	null VQ.
5714
57152018-05-25  Maciej W. Rozycki  <macro@mips.com>
5716
5717	* gdb.arch/mips-fpregset-core.exp: New test.
5718	* gdb.arch/mips-fpregset-core.c: New test source.
5719
57202018-05-23  Erik Kurzinger  <ekurzinger@nvidia.com>
5721
5722	PR server/23198
5723	* hostio.c (require_int): Do not report overflow for integers
5724	between 0xfffffff and 0x7fffffff.
5725
57262018-05-22  Maciej W. Rozycki  <macro@mips.com>
5727
5728	* linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
5729	(mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
5730	(mips_collect_ptrace_register, mips_supply_ptrace_register): New
5731	functions.
5732	(the_low_target): Wire them.
5733
57342018-05-22  Pedro Franco de Carvalho  <pedromfc@linux.vnet.ibm.com>
5735
5736	* linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
5737	Set vscr_offset to 0 in little-endian mode and 12 in big-endian
5738	mode. Call collect_register_by_name with vscr using
5739	vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
5740	(ppc_store_vrregset): Add and set vscr_offset variable as in
5741	ppc_fill_vrregset. Call supply_register_by_name with vscr using
5742	vscr_offset.
5743
57442018-05-22  Pedro Franco de Carvalho  <pedromfc@linux.vnet.ibm.com>
5745
5746	* linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
5747	(ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
5748	PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
5749
57502018-05-22  Pedro Franco de Carvalho  <pedromfc@linux.vnet.ibm.com>
5751
5752	* linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
5753	(ppc_store_vsxregset): Likewise.
5754	(ppc_fill_vrregset): Likewise.
5755	(ppc_store_vrregset): Likewise.
5756	(ppc_fill_evrregset): Likewise.
5757	(ppc_store_evrregset): Likewise.
5758	(ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
5759	(ppc_arch_setup): Iterate through ppc_regsets and set sizes when
5760	needed.
5761
57622018-05-22  Pedro Franco de Carvalho  <pedromfc@linux.vnet.ibm.com>
5763
5764	* linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
5765	wordsize of the inferior. Call ppc_linux_target_wordsize.
5766
57672018-05-22  Pedro Franco de Carvalho  <pedromfc@linux.vnet.ibm.com>
5768
5769	* configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
5770	* Makefile.in (SFILES): Add arch/ppc-linux-common.c.
5771	* linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
5772	* linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
5773	(tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
5774	(tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
5775	(tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
5776	(tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
5777	(tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
5778	(tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
5779	(tdesc_powerpc_e500l): Remove.
5780	* linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
5781	linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
5782	* linux-ppc-low.c: Include arch/ppc-linux-common.h,
5783	arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
5784	linux-ppc-tdesc.h.
5785	(ppc_arch_setup): Remove target description matching code. Fill a
5786	ppc_linux_features struct and call ppc_linux_match_description
5787	with it.
5788
57892018-05-22  Maciej W. Rozycki  <macro@mips.com>
5790
5791	* linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
5792	width of the requested register exceeds the width of the
5793	`ptrace' data type.
5794	(mips_cannot_store_register): Likewise.
5795
57962018-05-21  Maciej W. Rozycki  <macro@mips.com>
5797
5798	* linux-mips-low.c (mips_fetch_register): New function.  Update
5799	preceding comment.
5800	(mips_store_gregset): Supply 0 rather than $restart for $zero.
5801	(the_low_target): Wire `mips_fetch_register'.
5802
58032018-05-10  Joel Brobecker  <brobecker@adacore.com>
5804
5805	* lynx-i386-low.c (LYNXOS_178): New macro.
5806	[LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
5807	the layout on LynxOS-178.
5808	(lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
5809	handle floating point registers that are not supported by
5810	LynxOS-178.
5811
58122018-05-10  Tom Tromey  <tom@tromey.com>
5813
5814	* configure: Rebuild.
5815
58162018-05-10  Joel Brobecker  <brobecker@adacore.com>
5817
5818	PR server/23158:
5819	* tdesc.h (init_target_desc) <expedite_regs>: New parameter.
5820	* tdesc.c (init_target_desc) <expedite_regs>: New parameter.
5821	Use it to set the expedite_regs field in the given tdesc.
5822	* x86-tdesc.h: New file.
5823	* linux-aarch64-tdesc.c (aarch64_linux_read_description):
5824	Adjust following the addition of the new expedite_regs parameter
5825	to init_target_desc.
5826	* linux-tic6x-low.c (tic6x_read_description): Likewise.
5827	* linux-x86-tdesc.c: #include "x86-tdesc.h".
5828	(i386_linux_read_description, amd64_linux_read_description):
5829	Adjust following the addition of the new expedite_regs parameter
5830	to init_target_desc.
5831	* lynx-i386-low.c: #include "x86-tdesc.h".
5832	(lynx_i386_arch_setup): Adjust following the addition of the new
5833	expedite_regs parameter to init_target_desc.
5834	* nto-x86-low.c: #include "x86-tdesc.h".
5835	(nto_x86_arch_setup): Adjust following the addition of the new
5836	expedite_regs parameter to init_target_desc.
5837	* win32-i386-low.c: #include "x86-tdesc.h".
5838	(i386_arch_setup): Adjust following the addition of the new
5839	expedite_regs parameter to init_target_desc.
5840
58412018-05-10  Joel Brobecker  <brobecker@adacore.com>
5842
5843	PR server/23158:
5844	* win32-low.c (win32_create_inferior): Add call to my_wait
5845	setting last_status global.
5846
58472018-05-10  Joel Brobecker  <brobecker@adacore.com>
5848
5849	PR server/23158:
5850	* win32-low.c (create_process): Only call gdb_tilde_expand if
5851	inferior_cwd is not NULL.
5852
58532018-05-08  Andrew Burgess  <andrew.burgess@embecosm.com>
5854
5855	* i387-fp.c (i387_cache_to_xsave): Only write x87 control
5856	registers to the cache if their values have changed.
5857	(i387_xsave_to_cache): Provide default values for x87 control
5858	registers when these features are available, but disabled.
5859	* regcache.c (supply_register_by_name_zeroed): New function.
5860	* regcache.h (supply_register_by_name_zeroed): Declare new
5861	function.
5862
58632018-05-07  Tom Tromey  <tom@tromey.com>
5864
5865	* configure: Rebuild.
5866
58672018-05-04  Tom Tromey  <tom@tromey.com>
5868
5869	* configure: Rebuild.
5870
58712018-05-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
5872	    Pedro Alves <palves@redhat.com>
5873
5874	* linux-aarch64-low.c (aarch64_stopped_data_address):
5875	Likewise.
5876
58772018-04-27  Tom Tromey  <tom@tromey.com>
5878
5879	* configure: Rebuild.
5880
58812018-04-23  Tom Tromey  <tom@tromey.com>
5882
5883	* configure: Rebuild.
5884
58852018-04-19  Simon Marchi  <simon.marchi@ericsson.com>
5886
5887	* Makefile.in (depcomp): Add "..".
5888	(all_deps_files): New and use it.
5889
58902018-04-18  Alan Hayward  <alan.hayward@arm.com>
5891
5892	* configure.srv (aarch64*-*-linux*): Don't include xml.
5893	(i[34567]86-*-cygwin*): Likewise.
5894	(i[34567]86-*-linux*): Likewise.
5895	(i[34567]86-*-lynxos*): Likewise.
5896	(i[34567]86-*-mingw32ce*): Likewise.
5897	(i[34567]86-*-mingw*): Likewise.
5898	(i[34567]86-*-nto*): Likewise.
5899	(tic6x-*-uclinux): Likewise.
5900	(x86_64-*-linux*): Likewise.
5901	(x86_64-*-mingw*): Likewise.
5902	(x86_64-*-cygwin*): Likewise.
5903
59042018-04-18  Alan Hayward  <alan.hayward@arm.com>
5905
5906	* tdesc.c: Remove xml parameter.
5907
59082018-04-18  Alan Hayward  <alan.hayward@arm.com>
5909
5910	* server.c (get_features_xml): Remove cast.
5911	* tdesc.c (void target_desc::accept): Fill in function.
5912	(tdesc_get_features_xml): Remove old xml creation.
5913	(print_xml_feature::visit_pre): Add xml vistor.
5914	* tdesc.h (struct target_desc): Make xmltarget mutable.
5915	(tdesc_get_features_xml): Remove declaration.
5916
59172018-04-18  Alan Hayward  <alan.hayward@arm.com>
5918
5919	* tdesc.c (tdesc_architecture_name): Add new function.
5920	(tdesc_osabi_name): Likewise.
5921	(tdesc_get_features_xml): Use new functions.
5922
59232018-04-18  Alan Hayward  <alan.hayward@arm.com>
5924
5925	* tdesc.c (tdesc_create_flags): Remove.
5926	(tdesc_add_flag): Likewise.
5927	(tdesc_named_type): Likewise.
5928	(tdesc_create_union): Likewise.
5929	(tdesc_create_struct): Likewise.
5930	(tdesc_create_vector): Likewise.
5931	(tdesc_add_bitfield): Likewise.
5932	(tdesc_add_field): Likewise.
5933	(tdesc_set_struct_size): Likewise.
5934
59352018-04-18  Alan Hayward  <alan.hayward@arm.com>
5936
5937	* tdesc.c (~target_desc): Remove implictly deleted items.
5938	(init_target_desc): Iterate all features.
5939	(tdesc_get_features_xml): Use vector.
5940	(tdesc_create_feature): Create feature.
5941	* tdesc.h (tdesc_feature) Remove
5942	(target_desc): Add features.
5943
59442018-04-18  Alan Hayward  <alan.hayward@arm.com>
5945
5946	* Makefile.in: Add common/tdesc.c
5947	* tdesc.c (init_target_desc): init all reg_defs from register
5948	vector.
5949	(tdesc_create_reg): Create tdesc_reg.
5950	* tdesc.h (tdesc_feature): Add register vector.
5951
59522018-03-30  Simon Marchi  <simon.marchi@polymtl.ca>
5953
5954	* tdesc.h (struct target_desc) <features>: Change type to
5955	std::vector<std::string>.
5956	* tdesc.c (target_desc::~target_desc): Adjust to std::vector
5957	changes.
5958	(tdesc_get_features_xml): Likewise.
5959	(tdesc_create_feature): Likewise.
5960
59612018-03-26  Alan Hayward  <alan.hayward@arm.com>
5962
5963	* regcache.c (find_register_by_number): Return a ref.
5964	(find_regno): Use references.
5965	(register_size): Likewise.
5966	(register_data): Likewise.
5967	* tdesc.c (target_desc::~target_desc): Remove free calls.
5968	(target_desc::operator==): Use std::vector compare.
5969	(init_target_desc): Use reference.
5970	(tdesc_create_reg): Use reg constructors.
5971	* tdesc.h (struct target_desc): Replace pointer with object.
5972
59732018-03-23  Alan Hayward  <alan.hayward@arm.com>
5974
5975	* regcache.c (find_register_by_number): Make static.
5976	(find_regno): Use find_register_by_number
5977	* regcache.h (struct reg): Remove declaration.
5978
59792018-03-23  Alan Hayward  <alan.hayward@arm.com>
5980
5981	* tdesc.c (target_desc::~target_desc): Move to here.
5982	(target_desc::operator==): Likewise.
5983	* tdesc.h (target_desc::~target_desc): Move from here.
5984	(target_desc::operator==): Likewise.
5985
59862018-03-22  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5987
5988	* linux-s390-low.c (s390_get_wordsize): Correct brace style.
5989
59902018-03-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5991
5992	* linux-s390-ipa.c (get_ipa_tdesc): Add handling for
5993	S390_TDESC_GS.
5994	* linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
5995	(initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
5996	and init_registers_s390_gs_linux64.
5997
59982018-03-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5999
6000	* linux-s390-low.c (s390_fill_gs): Remove function.
6001	(s390_fill_gsbc): Remove function.
6002	(s390_regsets): Set fill functions for the guarded storage regsets
6003	to NULL.
6004
60052018-03-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6006
6007	* linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
6008	the word size.  Add comment.
6009	(s390_get_wordsize): New function.
6010	(s390_arch_setup): No longer select a temporary tdesc to fetch the
6011	pswm with it.  Instead, use s390_get_wordsize to determine the
6012	word size first and derive the correct tdesc from that directly.
6013
60142018-03-16  Simon Marchi  <simon.marchi@polymtl.ca>
6015
6016	* Makefile.in: Include silent-rules.mk.
6017	(srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
6018	(COMPILE): Add ECHO_CXX.
6019	(gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
6020	(gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
6021	($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
6022	(version-generated.c): Add ECHO_GEN.
6023	(stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
6024	(IPAGENT_COMPILE): Add ECHO_CXX.
6025	(%-generated.c): Add ECHO_REGDAT.
6026
60272018-03-14  Tom Tromey  <tom@tromey.com>
6028
6029	PR cli/14977:
6030	* ax.c (ax_printf): Special case for NULL.
6031
60322018-03-08  Simon Marchi  <simon.marchi@polymtl.ca>
6033
6034	* linux-low.c (linux_qxfer_libraries_svr4): Use
6035	xml_escape_text_append.
6036
60372018-03-08  Simon Marchi  <simon.marchi@polymtl.ca>
6038
6039	* linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
6040
60412018-03-02  Simon Marchi  <simon.marchi@polymtl.ca>
6042
6043	* server.c (handle_general_set): Remove unnecessary xstrdup.
6044
60452018-03-02  Simon Marchi  <simon.marchi@polymtl.ca>
6046
6047	* server.c (parse_debug_format_options): Adjust to
6048	delim_string_to_char_ptr_vec changes.
6049	* thread-db.c (thread_db_load_search): Adjust to
6050	dirnames_to_char_ptr_vec changes.
6051
60522018-03-01  Markus Metzger  <markus.t.metzger@intel.com>
6053
6054	* target.h (target_enable_btrace, target_disable_btrace)
6055	(target_read_btrace, target_read_btrace_conf): Turn macro into
6056	inline function.  Throw error if target method is not defined.
6057	* server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
6058	check for btrace target method.  Be prepared to handle exceptions
6059	from btrace target methods.
6060
60612018-02-28  Sergio Durigan Junior  <sergiodj@redhat.com>
6062
6063	* server.c (captured_main): Change order of error message printed
6064	when the current working directory cannot be found.
6065
60662018-02-28  Sergio Durigan Junior  <sergiodj@redhat.com>
6067
6068	* server.c: Include "filenames.h" and "pathstuff.h".
6069	(program_name): Delete variable.
6070	(program_path): New anonymous class.
6071	(get_exec_wrapper): Use "program_path" instead of
6072	"program_name".
6073	(handle_v_run): Likewise.
6074	(captured_main): Likewise.
6075	(process_serial_event): Likewise.
6076
60772018-02-28  Sergio Durigan Junior  <sergiodj@redhat.com>
6078
6079	* Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
6080	(OBJS): Add "pathstuff.o".
6081	* server.c (current_directory): New global variable.
6082	(captured_main): Initialize "current_directory".
6083
60842018-02-26  Alan Hayward  <alan.hayward@arm.com>
6085
6086	* tdesc.c: Use common/tdesc.h.
6087	* tdesc.h: Likewise.
6088
60892018-02-20  Alan Hayward  <alan.hayward@arm.com>
6090	    Simon Marchi  <simon.marchi@ericsson.com>
6091
6092	* Makefile.in: Switch order of make rules.
6093
60942018-02-19  Alan Hayward  <alan.hayward@arm.com>
6095
6096	* Makefile.in: Add common directory in build.
6097	* configure.ac: Add common reference.
6098	* configure: Regenerate.
6099
61002018-02-09  Markus Metzger  <markus.t.metzger@intel.com>
6101
6102	* linux-low.c (linux_target_ops): Remove linux_supports_btrace.
6103	* nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
6104	* spu-low.c (spu_target_ops): Likewise.
6105	* win32-low.c (win32_target_ops): Likewise.
6106	* server.c (supported_btrace_packets): Report packets unconditionally.
6107	* target.h (target_ops) <supports_btrace>: Remove.
6108	(target_supports_btrace): Remove.
6109
61102018-02-09  Markus Metzger  <markus.t.metzger@intel.com>
6111
6112	* server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
6113	(handle_btrace_disable): Change return type to void.  Use exceptions
6114	to report errors.
6115	(handle_btrace_general_set): Catch exception and copy message to
6116	return message.
6117
61182018-02-08  Tom Tromey  <tom@tromey.com>
6119
6120	* linux-low.c (install_software_single_step_breakpoints): Use
6121	make_scoped_restore.
6122	* inferiors.c (make_cleanup_restore_current_thread): Remove.
6123	(do_restore_current_thread_cleanup): Remove.
6124	* gdbthread.h (make_cleanup_restore_current_thread): Don't
6125	declare.
6126
61272018-02-08  Tom Tromey  <tom@tromey.com>
6128
6129	* mem-break.c (set_raw_breakpoint_at): Use
6130	gdb::unique_xmalloc_ptr.
6131
61322018-01-30  Pedro Alves  <palves@redhat.com>
6133
6134	PR gdb/13211
6135	* target.c (target_terminal::terminal_state): Rename to ...
6136	(target_terminal::m_terminal_state): ... this.
6137
61382018-01-19  James Clarke  <jrtc27@jrtc27.com>
6139
6140	* linux-low.c (handle_extended_wait): Surround call to
6141	thread_db_notice_clone with #ifdef USE_THREAD_DB.
6142
61432018-01-17  Simon Marchi  <simon.marchi@ericsson.com>
6144
6145	* linux-low.c (attach_proc_task_lwp_callback): Adjust to
6146	linux_ptrace_attach_fail_reason_string now returning an
6147	std::string.
6148	(linux_attach): Likewise.
6149	* thread-db.c (attach_thread): Likewise.
6150
61512018-01-17  Eldar Abusalimov  <eldar.abusalimov@jetbrains.com>
6152
6153	PR gdb/21559
6154	* configure.ac: Include <sys/types.h> prior to <sys/user.h> when
6155	checking for fs_base/gs_base fields in struct user_regs_struct.
6156	* configure: Regenerate.
6157
61582018-01-16  Yao Qi  <yao.qi@linaro.org>
6159
6160	PR gdb/18749
6161	* linux-low.c (fetch_register): Call supply_register instead of
6162	error.
6163
61642018-01-08  Yao Qi  <yao.qi@linaro.org>
6165	    Simon Marchi  <simon.marchi@ericsson.com>
6166
6167	* Makefile.in (OBS): Remove selftest.o.
6168	* configure.ac: Set srv_selftest_objs if $development is true.
6169	(GDBSERVER_DEPFILES): Append $srv_selftest_objs.
6170	* configure: Re-generated.
6171	* server.c (captured_main): Wrap variable selftest_filter with
6172	GDB_SELF_TEST.
6173
61742018-01-07  Simon Marchi  <simon.marchi@polymtl.ca>
6175
6176	* server.c (parse_debug_format_options): Return std::string.
6177	(handle_monitor_command, captured_main): Adjust.
6178
61792018-01-05  Pedro Alves  <palves@redhat.com>
6180
6181	PR gdb/18653
6182	* server.c (captured_main): Pass quiet=false to
6183	save_original_signals_state.
6184
61852018-01-01  Joel Brobecker  <brobecker@adacore.com>
6186
6187	* gdbreplay.c (gdbreplay_version): Update copyright year in
6188	version message.
6189	* server.c (gdbserver_version): Likewise.
6190
61912017-12-08  Tom Tromey  <tom@tromey.com>
6192
6193	* ax.c (ax_printf): Update.
6194
61952017-12-07  Yao Qi  <yao.qi@linaro.org>
6196
6197	* linux-aarch64-ipa.c (initialize_low_tracepoint): Call
6198	aarch64_linux_read_description.
6199	* linux-amd64-ipa.c (idx2mask): New array.
6200	(get_ipa_tdesc): Move idx2mask out.
6201	(initialize_low_tracepoint): Initialize target descriptions.
6202	* linux-i386-ipa.c (idx2mask): New array.
6203	(get_ipa_tdesc): Move idx2mask out.
6204	(initialize_low_tracepoint): Initialize target descriptions.
6205
62062017-12-05  Simon Marchi  <simon.marchi@polymtl.ca>
6207
6208	* tdesc.c (struct tdesc_type): Change return type.
6209	(tdesc_add_flag): Change parameter type.
6210	(tdesc_add_bitfield): Likewise.
6211	(tdesc_add_field): Likewise.
6212	(tdesc_set_struct_size): Likewise.
6213
62142017-12-05  Simon Marchi  <simon.marchi@ericsson.com>
6215
6216	* regcache.c (registers_to_string): Remove unused variable.
6217
62182017-12-02  Simon Marchi  <simon.marchi@polymtl.ca>
6219
6220	* inferiors.c (for_each_inferior_with_data): Remove.
6221	* inferiors.h (for_each_inferior_with_data): Remove.
6222	* server.c (handle_qxfer_threads_worker): Change parameter type.
6223	(handle_qxfer_threads_proper): Use for_each_thread.
6224
62252017-12-02  Simon Marchi  <simon.marchi@polymtl.ca>
6226
6227	* inferiors.c (for_each_inferior): Remove.
6228	(clear_inferiors): Use for_each_thread.
6229	* inferiors.h (for_each_inferior): Remove.
6230	* linux-low.c (linux_wait_for_event_filtered): Use
6231	for_each_thread.
6232	(linux_stabilize_threads): Likewise.
6233	* regcache.c (regcache_release): Likewise.
6234	* server.c (gdb_wants_all_threads_stopped): Likewise.
6235	(clear_pending_status_callback): Remove.
6236	(handle_status): Use for_each_thread.
6237	(captured_main): Likewise.
6238	* win32-low.c (child_init_thread_list): Likewise.
6239	(win32_clear_inferiors): Likewise.
6240	(fake_breakpoint_event): Likewise.
6241
62422017-12-02  Simon Marchi  <simon.marchi@polymtl.ca>
6243
6244	* inferiors.h (find_inferior): Remove.
6245	* inferiors.c (find_inferior): Remove.
6246
62472017-12-02  Simon Marchi  <simon.marchi@polymtl.ca>
6248
6249	* linux-low.c (resume_status_pending_p): Update comment.
6250	(need_step_over_p): Update comment.
6251
62522017-12-02  Simon Marchi  <simon.marchi@polymtl.ca>
6253
6254	* linux-low.c (proceed_one_lwp): Return void, change parameter
6255	type.
6256	(unsuspend_and_proceed_one_lwp): Likewise.
6257	(proceed_all_lwps): Use for_each_thread.
6258	(unstop_all_lwps): Likewise.
6259
62602017-12-02  Simon Marchi  <simon.marchi@polymtl.ca>
6261
6262	* linux-low.c (linux_resume_one_thread): Return void, take
6263	parameter directly.
6264	(linux_resume): Use for_each_thread.
6265
62662017-12-02  Simon Marchi  <simon.marchi@polymtl.ca>
6267
6268	* linux-low.c (send_sigstop_callback): Return void, change
6269	parameter type.  Rename to...
6270	(send_sigstop): ... this.
6271	(suspend_and_send_sigstop_callback): Return void, change parameter
6272	type.  Rename to...
6273	(suspend_and_send_sigstop): ... this.
6274	(stop_all_lwps): Use for_each_thread.
6275
62762017-12-02  Simon Marchi  <simon.marchi@polymtl.ca>
6277
6278	* linux-low.c (lwp_running): Return bool, remove unused
6279	argument.
6280	(linux_stabilize_threads): Use find_thread.
6281
62822017-12-02  Simon Marchi  <simon.marchi@polymtl.ca>
6283
6284	* linux-low.c (select_singlestep_lwp_callback): Remove.
6285	(count_events_callback): Remove.
6286	(select_event_lwp_callback): Remove.
6287	(select_event_lwp): Use find_thread/for_each_thread.
6288
62892017-12-02  Simon Marchi  <simon.marchi@polymtl.ca>
6290
6291	* linux-low.c (not_stopped_callback): Return bool, take filter
6292	argument directly.
6293	(linux_wait_for_event_filtered): Use find_thread.
6294	(linux_wait_1): Likewise.
6295
62962017-12-02  Simon Marchi  <simon.marchi@polymtl.ca>
6297
6298	* linux-low.c (same_lwp): Remove.
6299	(find_lwp_pid): Use find_thread.
6300
63012017-12-02  Simon Marchi  <simon.marchi@polymtl.ca>
6302
6303	* linux-low.c (delete_lwp_callback): Remove.
6304	(linux_mourn): Use for_each_thread.
6305
63062017-12-02  Simon Marchi  <simon.marchi@polymtl.ca>
6307
6308	* linux-low.c (linux_detach_lwp_callback): Return void, remove
6309	args parameter, don't check for pid.
6310	(linux_detach): Use for_each_thread.
6311
63122017-12-02  Simon Marchi  <simon.marchi@polymtl.ca>
6313
6314	* linux-low.c (struct counter): Remove.
6315	(second_thread_of_pid_p): Remove.
6316	(last_thread_of_process_p): Use find_thread.
6317
63182017-12-02  Simon Marchi  <simon.marchi@polymtl.ca>
6319
6320	* inferiors.c (find_inferior_in_random): Remove.
6321	* inferiors.h (find_inferior_in_random): Remove.
6322	* linux-low.c (status_pending_p_callback): Return bool, accept
6323	parameter ptid directly.
6324	(linux_wait_for_event_filtered): Use find_thread_in_random.
6325	(linux_wait_1): Likewise.
6326
63272017-12-02  Simon Marchi  <simon.marchi@polymtl.ca>
6328
6329	* inferiors.c (find_inferior_id): Remove.
6330	(find_thread_ptid): Move implemention from find_inferior_id to
6331	here.
6332	* inferiors.h (find_inferior_id): Remove.
6333	* server.c (handle_status): Use find_thread_ptid.
6334	(process_serial_event): Likewise.
6335	* thread-db.c (find_one_thread): Likewise.
6336	(thread_db_thread_handle): Likewise.
6337	* win32-low.c (thread_rec): Likewise.
6338	(child_delete_thread): Likewise.
6339	(win32_thread_alive): Likewise.
6340	(get_child_debug_event): Likewise.
6341
63422017-12-02  Simon Marchi  <simon.marchi@polymtl.ca>
6343
6344	* linux-mips-low.c (update_watch_registers_callback): Return
6345	void, remove pid_p parameter, don't check for pid.
6346	(mips_insert_point, mips_remove_point): Use for_each_thread.
6347
63482017-12-02  Simon Marchi  <simon.marchi@polymtl.ca>
6349
6350	* lynx.low (lynx_delete_thread_callback): Remove.
6351	(lynx_mourn): Use for_each_thread.
6352
63532017-12-02  Simon Marchi  <simon.marchi@polymtl.ca>
6354
6355	* regcache.c (regcache_invalidate_one): Remove.
6356	(regcache_invalidate_pid): use for_each_thread.
6357
63582017-11-26  Tom Tromey  <tom@tromey.com>
6359
6360	* linux-low.c (linux_create_inferior): Update.
6361
63622017-11-24  Ulrich Weigand  <uweigand@de.ibm.com>
6363
6364	* spu-low.c (spu_create_inferior): Fix typo in argument name.
6365
63662017-11-24  Alan Hayward  <alan.hayward@arm.com>
6367
6368	* configure.srv: Add linux-aarch64-tdesc-selftest.o.
6369	* linux-aarch64-low.c (initialize_low_arch): Call init func.
6370	* linux-aarch64-tdesc-selftest.c: New file.
6371	* linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6372
63732017-11-24  Alan Hayward  <alan.hayward@arm.com>
6374
6375	* configure.srv: Add new file.
6376	* linux-aarch64-low.c (initialize_low_arch): Call init func.
6377	* linux-aarch64-tdesc-selftest.c: New file.
6378	* linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6379
63802017-11-24  Alan Hayward  <alan.hayward@arm.com>
6381
6382	* linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
6383	* linux-aarch64-low.c (initialize_low_arch): Remove init.
6384	* linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
6385
63862017-11-24  Alan Hayward  <alan.hayward@arm.com>
6387
6388	* configure.srv: Add new files.
6389	* linux-aarch64-ipa.c (get_ipa_tdesc): Call
6390	aarch64_linux_read_description.
6391	* linux-aarch64-low.c (aarch64_linux_read_description):
6392	Merge with aarch64_arch_setup.
6393	(aarch64_arch_setup): Call aarch64_linux_read_description.
6394	* linux-aarch64-tdesc.c: New file.
6395	* linux-aarch64-tdesc.h: New file.
6396
63972017-11-24  Yao Qi  <yao.qi@linaro.org>
6398
6399	* configure.srv: Set $srv_regobj for tic6x-linux.
6400	* linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
6401	(tic6x_read_description): Move some code to tic6x_arch_setup.
6402	(tic6x_tdesc_test): New function.
6403	(initialize_low_arch): Call selftests::register_test.
6404
64052017-11-22  Yao Qi  <yao.qi@linaro.org>
6406
6407	* remote-utils.c (prepare_resume_reply): Use memcpy.
6408
64092017-11-19  Simon Marchi  <simon.marchi@ericsson.com>
6410
6411	* linux-low.c (kill_one_lwp_callback): Return void, take
6412	argument directly, don't filter on pid.
6413	(linux_kill): Use for_each_thread.
6414
64152017-11-19  Simon Marchi  <simon.marchi@ericsson.com>
6416
6417	* linux-low.c (need_step_over_p): Return bool, remove dummy
6418	argument.
6419	(linux_resume, proceed_all_lwps): Use find_thread.
6420
64212017-11-19  Simon Marchi  <simon.marchi@ericsson.com>
6422
6423	* linux-low.c (resume_status_pending_p): Return bool, remove
6424	flag_p argument.
6425	(linux_resume): Use find_thread.
6426
64272017-11-19  Simon Marchi  <simon.marchi@ericsson.com>
6428
6429	* linux-low.c (struct thread_resume_array): Remove.
6430	(linux_set_resume_request): Return void, take arguments
6431	directly.
6432	(linux_resume): Use for_each_thread.
6433
64342017-11-19  Simon Marchi  <simon.marchi@ericsson.com>
6435
6436	* linux-low.c (stuck_in_jump_pad_callback): Change prototype,
6437	return bool, remove data argument.
6438	(linux_stabilize_threads): Use find_thread.
6439
64402017-11-19  Simon Marchi  <simon.marchi@ericsson.com>
6441
6442	* linux-low.c (unsuspend_one_lwp): Remove.
6443	(unsuspend_all_lwps): Use for_each_thread, inline code from
6444	unsuspend_one_lwp.
6445
64462017-11-19  Simon Marchi  <simon.marchi@ericsson.com>
6447
6448	* gdbthread.h (find_thread): Add overload with ptid_t filter.
6449	* linux-low.c (struct iterate_over_lwps_args): Remove.
6450	(iterate_over_lwps_filter): Remove.
6451	(iterate_over_lwps): Use find_thread.
6452
64532017-11-19  Simon Marchi  <simon.marchi@ericsson.com>
6454
6455	* linux-low.c (reset_lwp_ptrace_options_callback): Remove.
6456	(linux_handle_new_gdb_connection): Use for_each_thread, inline
6457	code from reset_lwp_ptrace_options_callback.
6458
64592017-11-19  Simon Marchi  <simon.marchi@ericsson.com>
6460
6461	* linux-arm-low.c (struct update_registers_data): Remove.
6462	(update_registers_callback): Return void, take arguments
6463	directly, don't check thread's pid.
6464	(arm_insert_point, arm_remove_point): Use for_each_thread.
6465
64662017-11-19  Simon Marchi  <simon.marchi@ericsson.com>
6467
6468	* win32-low.c (continue_one_thread): Return void, take argument
6469	directly.
6470	(child_continue): Use for_each_thread.
6471
64722017-11-19  Simon Marchi  <simon.marchi@ericsson.com>
6473
6474	* win32-i386-low.c (update_debug_registers_callback): Rename
6475	to ...
6476	(update_debug_registers): ... this, return void, remove pid_p arg.
6477	(x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
6478
64792017-11-17  Simon Marchi  <simon.marchi@polymtl.ca>
6480
6481	* inferiors.h (struct process_info): Add constructor, initialize
6482	fields..
6483	<syscalls_to_catch>: Change type to std::vector<int>.
6484	* inferiors.c (add_process): Allocate process_info with new.
6485	(remove_process): Free process_info with delete.
6486	* linux-low.c (handle_extended_wait): Adjust.
6487	(gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
6488	* server.c (handle_general_set): Adjust.
6489
64902017-11-16  Pedro Alves  <palves@redhat.com>
6491
6492	* remote-utils.c (remote_close): Block SIGIO signals instead of
6493	uninstalling the SIGIO handler.
6494
64952017-11-16  Alan Hayward  <alan.hayward@arm.com>
6496
6497	* tdesc.c (tdesc_get_features_xml): Allow null osabi.
6498
64992017-11-16  Yao Qi  <yao.qi@linaro.org>
6500
6501	* linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
6502	(tic6x_store_gregset): Likewise.
6503	(tic6x_usrregs_info): Move it up.
6504
65052017-11-15  Alan Hayward  <alan.hayward@arm.com>
6506
6507	* Makefile.in: Update arch rules.
6508	* configure.srv: Explicitly mark arch/ files.
6509
65102017-11-13  Andreas Schwab  <schwab@suse.de>
6511
6512	* linux-m68k-low.c (m68k_supports_hardware_single_step): New
6513	function.
6514	(struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6515
65162017-11-06  Pedro Alves  <palves@redhat.com>
6517
6518	* config.in, configure: Regenerate.
6519
65202017-10-27  Simon Marchi  <simon.marchi@ericsson.com>
6521
6522	* target.c (struct thread_search): Remove.
6523	(thread_search_callback): Remove.
6524	(prepare_to_access_memory): Use for_each_thread instead of
6525	find_inferior.  Inline code from thread_search_callback.
6526
65272017-10-27  Simon Marchi  <simon.marchi@ericsson.com>
6528
6529	* server.c (struct visit_actioned_threads_data): Remove.
6530	(visit_actioned_threads): Change prototype to take arguments
6531	directly.
6532	(resume): Use find_thread instead of find_inferior.
6533
65342017-10-27  Simon Marchi  <simon.marchi@ericsson.com>
6535
6536	* server.c (queue_stop_reply_callback): Change prototype, return
6537	void.
6538	(find_status_pending_thread_callback): Remove.
6539	(handle_status): Replace find_inferior with find_thread and
6540	for_each_thread.
6541
65422017-10-25  Alan Hayward  <alan.hayward@arm.com>
6543
6544	* linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
6545	with REGNO.
6546	(aarch64_store_gregset): Likewise.
6547	(aarch64_fill_fpregset): Likewise.
6548	(aarch64_store_fpregset): Likewise.
6549
65502017-10-21  Simon Marchi  <simon.marchi@ericsson.com>
6551
6552	* gdbthread.h (find_thread, for_each_thread): New functions.
6553	* inferiors.c (thread_of_pid): Remove.
6554	(find_any_thread_of_pid): Use find_thread.
6555	* linux-low.c (num_lwps): Use for_each_thread.
6556
65572017-10-17  Yao Qi  <yao.qi@linaro.org>
6558
6559	* Makefile.in: Remove one rule.
6560	* configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
6561
65622017-10-17  Yao Qi  <yao.qi@linaro.org>
6563
6564	* configure.srv: Rename arm-linux.o with arch/arm-linux.o.
6565	Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
6566
65672017-10-17  Yao Qi  <yao.qi@linaro.org>
6568
6569	* configure.srv: Rename arm.o with arch/arm.o.
6570
65712017-10-17  Yao Qi  <yao.qi@linaro.org>
6572
6573	* Makefile.in (CONFIG_SRC_SUBDIR): New variable.
6574	(clean): Remove .o files in CONFIG_SRC_SUBDIR.
6575	(distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
6576	(arch-i386.o, arch-amd64.o): Remove rules.
6577	(arch/%.o): New rule.
6578	Update POSTCOMPILE and COMPILE.pre.
6579	* configure.ac: Invoke AC_CONFIG_COMMANDS.
6580	* configure: Re-generated.
6581	* configure.srv: Replace arch-i386.o with arch/i386.o.
6582	Replace arch-amd64.o with arch/amd64.o.
6583
65842017-10-16  Yao Qi  <yao.qi@linaro.org>
6585
6586	* configure: Regenerated.
6587
65882017-10-14  Simon Marchi  <simon.marchi@polymtl.ca>
6589
6590	* inferiors.h: (struct inferior_list): Remove.
6591	(struct inferior_list_entry); Remove.
6592	(add_inferior_to_list, clear_inferior_list, one_inferior_p,
6593	A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
6594	get_first_inferior): Remove.
6595	(for_each_inferior, for_each_inferior_with_data, find_inferior,
6596	find_inferior_id, find_inferior_in_random): Change signature.
6597	* inferiors.c (all_threads): Change type to
6598	std::list<thread_info *>.
6599	(get_thread): Remove macro.
6600	(find_inferior, find_inferior_id): Change signature, implement
6601	using find_thread.
6602	(find_inferior_in_random): Change signature, implement using
6603	find_thread_in_random.
6604	(for_each_inferior, for_each_inferior_with_data): Change
6605	signature, implement using for_each_thread.
6606	(add_inferior_to_list, remove_inferior): Remove.
6607	(add_thread, get_first_thread, thread_of_pid,
6608	find_any_thread_of_pid, free_one_thread, remove_thread): Update.
6609	(get_first_inferior, one_inferior_p, clear_inferior_list):
6610	Remove.
6611	(clear_inferiors, get_thread_process): Update.
6612	* gdbthread.h: Include <list>.
6613	(struct thread_info) <entry>: Remove field.
6614	<id>: New field.
6615	(all_threads): Change type to std::list<thread_info *>.
6616	(get_first_inferior): Add doc.
6617	(find_thread, for_each_thread, find_thread_in_random): New
6618	functions.
6619	(current_ptid, pid_of, ptid_of, lwpid_of): Update.
6620	* linux-arm-low.c (update_registers_callback): Update.
6621	* linux-low.c (second_thread_of_pid_p): Update.
6622	(kill_one_lwp_callback, linux_detach_lwp_callback,
6623	delete_lwp_callback, status_pending_p_callback, same_lwp,
6624	find_lwp_pid, num_lwps, iterate_over_lwps_filter,
6625	iterate_over_lwps, not_stopped_callback,
6626	resume_stopped_resumed_lwps, count_events_callback,
6627	select_singlestep_lwp_callback, select_event_lwp_callback,
6628	unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
6629	suspend_and_send_sigstop_callback, wait_for_sigstop,
6630	stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
6631	lwp_running, linux_set_resume_request, resume_status_pending_p,
6632	need_step_over_p, start_step_over, linux_resume_one_thread,
6633	proceed_one_lwp, unsuspend_and_proceed_one_lwp,
6634	reset_lwp_ptrace_options_callback): Update.
6635	* linux-mips-low.c (update_watch_registers_callback): Update.
6636	* regcache.c (regcache_invalidate_one, regcache_invalidate):
6637	Update.
6638	(free_register_cache_thread_one): Remove.
6639	(regcache_release): Update.
6640	* server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
6641	handle_qxfer_threads_worker): Update.
6642	(handle_query): Update, use list iterator.
6643	(visit_actioned_threads, handle_pending_status,
6644	queue_stop_reply_callback, gdb_wants_all_threads_stopped,
6645	clear_pending_status_callback, set_pending_status_callback,
6646	find_status_pending_thread_callback, handle_status,
6647	process_serial_event): Update.
6648	* target.c (thread_search_callback): Update.
6649	* thread-db.c (thread_db_get_tls_address): Update.
6650	* tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
6651	Update.
6652	* win32-i386-low.c (update_debug_registers_callback): Update.
6653	* win32-low.c (delete_thread_info, child_delete_thread,
6654	continue_one_thread, suspend_one_thread,
6655	get_child_debug_event): Adjust.
6656
66572017-10-14  Simon Marchi  <simon.marchi@polymtl.ca>
6658
6659	* gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
6660	* inferiors.h: Include <list>.
6661	(struct process_info) <entry>: Remove field.
6662	<pid>: New field.
6663	(pid_of): Change macro to function.
6664	(ptid_of, lwpid_of): Remove macro.
6665	(all_processes): Change type to std::list<process_info *>.
6666	(ALL_PROCESSES): Remove macro.
6667	(for_each_process, find_process): New function.
6668	* inferiors.c (all_processes): Change type to
6669	std::list<process_info *>.
6670	(find_thread_process): Adjust.
6671	(add_process): Likewise.
6672	(remove_process): Likewise.
6673	(find_process_pid): Likewise.
6674	(get_first_process): Likewise.
6675	(started_inferior_callback): Remove.
6676	(have_started_inferiors_p): Adjust.
6677	(attached_inferior_callback): Remove.
6678	(have_attached_inferiors_p): Adjust.
6679	* linux-low.c (check_zombie_leaders): Likewise.
6680	* linux-x86-low.c (x86_arch_setup_process_callback): Remove.
6681	(x86_linux_update_xmltarget): Adjust.
6682	* server.c (handle_query): Likewise.
6683	(gdb_reattached_process): Remove.
6684	(handle_status): Adjust.
6685	(kill_inferior_callback): Likewise.
6686	(detach_or_kill_inferior): Remove.
6687	(print_started_pid): Likewise.
6688	(print_attached_pid): Likewise.
6689	(detach_or_kill_for_exit): Update.
6690	(process_serial_event): Likewise.
6691	* linux-arm-low.c (arm_new_fork): Likewise.
6692
66932017-10-14  Simon Marchi  <simon.marchi@polymtl.ca>
6694
6695	* dll.h: Include <list>.
6696	(struct dll_info): Add constructor.
6697	<entry>: Remove field.
6698	(all_dlls): Change type to std::list<dll_info>.
6699	* dll.c: Include <algorithm>.
6700	(get_dll): Remove macro.
6701	(all_dlls): Change type to std::list<dll_info *>.
6702	(free_one_dll): Remove.
6703	(match_dll): Likewise.
6704	(loaded_dll): Adjust.
6705	(unloaded_dll): Adjust to all_dlls type change, use
6706	std::find_if.  Inline code from match_dll.
6707	(clear_dlls): Adjust to all_dlls type change.
6708	* server.c (emit_dll_description): Remove.
6709	(handle_qxfer_libraries): Adjust to all_dlls type change,
6710	integrate emit_dll_description's functionality.
6711
67122017-10-12  Simon Marchi  <simon.marchi@ericsson.com>
6713
6714	* linux-low.h (struct linux_target_ops) <delete_process>: New
6715	field.
6716	* linux-low.c (linux_mourn): Call the_low_target.delete_process.
6717	* linux-aarch64-low.c (aarch64_linux_delete_process): New.
6718	(struct linux_target_ops): Add delete_process callback.
6719	* linux-arm-low.c (arm_delete_process): New.
6720	(struct linux_target_ops): Add delete_process callback.
6721	* linux-bfin-low.c (struct linux_target_ops): Likewise.
6722	* linux-crisv32-low.c (struct linux_target_ops): Likewise.
6723	* linux-m32r-low.c (struct linux_target_ops): Likewise.
6724	* linux-mips-low.c (mips_linux_delete_process): New.
6725	(struct linux_target_ops): Add delete_process callback.
6726	* linux-ppc-low.c (struct linux_target_ops): Likewise.
6727	* linux-s390-low.c (struct linux_target_ops): Likewise.
6728	* linux-sh-low.c (struct linux_target_ops): Likewise.
6729	* linux-tic6x-low.c (struct linux_target_ops): Likewise.
6730	* linux-tile-low.c (struct linux_target_ops): Likewise.
6731	* linux-x86-low.c (x86_linux_delete_process): New.
6732	(struct linux_target_ops): Add delete_process callback.
6733	* linux-xtensa-low.c (struct linux_target_ops): Likewise.
6734
67352017-10-12  Simon Marchi  <simon.marchi@ericsson.com>
6736
6737	* linux-aarch64-low.c (the_low_target): Add thread delete
6738	callback.
6739	* linux-arm-low.c (arm_delete_thread): New function.
6740	(the_low_target): Add thread delete callback.
6741	* linux-bfin-low.c (the_low_target): Likewise.
6742	* linux-crisv32-low.c (the_low_target): Likewise.
6743	* linux-low.c (delete_lwp): Invoke delete_thread callback if
6744	set.
6745	* linux-low.h (struct linux_target_ops) <delete_thread>: New
6746	field.
6747	* linux-m32r-low.c (the_low_target): Add thread delete callback.
6748	* linux-mips-low.c (mips_linux_delete_thread): New function.
6749	(the_low_target): Add thread delete callback.
6750	* linux-ppc-low.c (the_low_target): Likewise.
6751	* linux-s390-low.c (the_low_target): Likewise.
6752	* linux-sh-low.c (the_low_target): Likewise.
6753	* linux-tic6x-low.c (the_low_target): Likewise.
6754	* linux-tile-low.c (the_low_target): Likewise.
6755	* linux-x86-low.c (the_low_target): Likewise.
6756	* linux-xtensa-low.c (the_low_target): Likewise.
6757
67582017-10-06  Yuanhui Zhang  <asmwarrior@gmail.com>
6759
6760	* win32-low.c: Include "common-inferior.h".
6761
67622017-10-04  Sergio Durigan Junior  <sergiodj@redhat.com>
6763
6764	* inferiors.c (set_inferior_cwd): New function.
6765	* server.c (handle_general_set): Handle QSetWorkingDir packet.
6766	(handle_query): Inform that QSetWorkingDir is supported.
6767	* win32-low.c (create_process): Pass the inferior's cwd to
6768	CreateProcess.
6769
67702017-10-04  Sergio Durigan Junior  <sergiodj@redhat.com>
6771
6772	* inferiors.c (current_inferior_cwd): New global variable.
6773	(get_inferior_cwd): New function.
6774	* inferiors.h (struct process_info) <cwd>: New field.
6775
67762017-10-04  Sergio Durigan Junior  <sergiodj@redhat.com>
6777
6778	* Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
6779	(OBS): Add gdb_tilde_expand.o.
6780
67812017-10-02  Simon Marchi  <simon.marchi@ericsson.com>
6782
6783	* lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
6784	* nto-x86-low.c (nto_x86_arch_setup): Likewise.
6785
67862017-09-29  Pedro Alves  <palves@redhat.com>
6787
6788	* ax.c (gdb_parse_agent_expr): Constify.
6789	* ax.h (gdb_parse_agent_expr): Constify.
6790	* mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
6791	Constify.
6792	* mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
6793	* remote-utils.c (hex_or_minus_one, read_ptid): Constify.
6794	* remote-utils.h (read_ptid): Constify.
6795	* server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
6796	(process_point_options, process_serial_event): Constify.
6797	* tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
6798	(cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
6799	(cmd_qtbuffer): Constify.
6800
68012017-09-29  Pedro Alves  <palves@redhat.com>
6802
6803	* proc-service.c (ps_pdread): Return PS_ERR if reading memory
6804	fails.
6805
68062017-09-29  Pedro Alves  <palves@redhat.com>
6807
6808	* linux-low.c (handle_extended_wait): Pass parent thread instead
6809	of process to thread_db_notice_clone.
6810	* linux-low.h (thread_db_notice_clone): Replace parent process
6811	parameter with parent thread parameter.
6812	* thread-db.c (find_one_thread): Add comment.
6813	(thread_db_notice_clone): Replace parent process parameter with
6814	parent thread parameter.  Temporarily switch to the parent thread.
6815
68162017-09-26  Sergio Durigan Junior  <sergiodj@redhat.com>
6817
6818	* gdbthread.h: Include "common-gdbthread.h".
6819	* inferiors.c (switch_to_thread): Use "gdb_assert" instead of
6820	"if" when validating the ptid.
6821	* remote-utils.c: Include "gdbthread.h".
6822	(prepare_resume_reply): Use "switch_to_thread".
6823	* target.c (done_accessing_memory): Likewise.
6824
68252017-09-25  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6826
6827	* configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
6828	s390x-gs-linux64.o to srv_regobj.  Add s390-gs-linux64.xml,
6829	s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
6830	srv_xmlfiles.  Add s390-gs-linux64-ipa.o and
6831	s390x-gs-linux64-ipa.o to ipa_obj.
6832	* linux-s390-low.c (HWCAP_S390_GS): New define.
6833	(s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
6834	New functions.
6835	(s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
6836	(s390_arch_setup): Check for guarded-storage support and choose
6837	appropriate tdesc.
6838	(initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
6839	init_registers_s390x_gs_linux64.
6840	* linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
6841	enum value.
6842	(init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
6843	(init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
6844
68452017-09-22  Simon Marchi  <simon.marchi@ericsson.com>
6846
6847	* win32-i386-low.c (i386_arch_setup): Call init_target_desc.
6848
68492017-09-21  Kevin Buettner  <kevinb@redhat.com>
6850
6851	* linux-low.h (struct lwp_info): Add new field, thread_handle.
6852	(thread_db_thread_handle): Declare.
6853	* linux-low.c (linux_target_ops): Initialize thread_handle.
6854	* server.c (handle_qxfer_threads_worker): Add support for
6855	"handle" attribute.
6856	* target.h (struct target_ops): Add new function pointer,
6857	thread_handle.
6858	(target_thread_handle): Define.
6859	* thread-db.c (find_one_thread, attach_thread): Set thread_handle
6860	field in lwp.
6861	(thread_db_thread_handle): New function.
6862
68632017-09-21  Kevin Buettner  <kevinb@redhat.com>
6864
6865	* linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
6866	* linux-low.h (thread_db_notice_clone): Declare.
6867	* thread-db.c (thread_db_notice_clone): New function.
6868
68692017-09-21  Pedro Alves  <palves@redhat.com>
6870
6871	* server.c (gdb_read_memory, handle_status, process_serial_event)
6872	(handle_serial_event, handle_target_event): Adjust to
6873	set_desired_thread prototype change.
6874	* target.c (set_desired_thread): Remove 'use_general' parameter
6875	and adjust.
6876	* target.h (set_desired_thread): Remove 'use_general' parameter.
6877
68782017-09-20  Tom Tromey  <tom@tromey.com>
6879
6880	* target.c (target_terminal::terminal_state): Define.
6881	(target_terminal::init): Rename from target_terminal_init.
6882	(target_terminal::inferior): Rename from
6883	target_terminal_inferior.
6884	(target_terminal::ours): Rename from target_terminal_ours.
6885	(target_terminal::ours_for_output, target_terminal::info): New.
6886
68872017-09-16  Simon Marchi  <simon.marchi@ericsson.com>
6888
6889	* server.c (accumulate_file_name_length): Remove.
6890	(emit_dll_description): Adjust to std::string change.
6891	(handle_qxfer_libraries): Use std::string to hold document.
6892
68932017-09-16  Simon Marchi  <simon.marchi@ericsson.com>
6894
6895	* linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
6896	return type of xml_escape_text.
6897	* server.c (emit_dll_description): Likewise.
6898
68992017-09-16  Simon Marchi  <simon.marchi@ericsson.com>
6900
6901	* server.c (captured_main): Accept argument for --selftest.
6902	Update run_tests call.
6903	* linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
6904	when registering selftests.
6905
69062017-09-16  Sergio Durigan Junior  <sergiodj@redhat.com>
6907
6908	* regcache.c (get_thread_regcache): Update code to use "std::vector"
6909	instead of "VEC" for "target_desc.reg_defs".
6910	(regcache_cpy): Likewise.
6911	(registers_to_string): Likewise.
6912	(registers_from_string): Likewise.
6913	(find_regno): Likewise.
6914	(supply_regblock): Likewise.
6915	(regcache_raw_read_unsigned): Likewise.
6916	* tdesc.c (init_target_desc): Likewise.
6917	(tdesc_create_reg): Likewise.
6918	* tdesc.h: Remove declaration of "tdesc_reg_p".  Include <vector>.
6919	(struct target_desc) <reg_defs>: Convert to "std::vector".
6920	(target_desc): Do not initialize "reg_defs".
6921	(~target_desc): Update code to use "std::vector" instead of "VEC"
6922	for "target_desc.reg_defs".
6923	(operator==): Likewise.
6924
69252017-09-15  Simon Marchi  <simon.marchi@ericsson.com>
6926
6927	* inferiors.h (thread_to_gdb_id): Remove.
6928	* inferiors.c (thread_to_gdb_id): Remove.
6929	* server.c (handle_qxfer_threads_worker, handle_query): Adjust.
6930	* lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
6931	lynx_store_registers, lynx_read_memory, lynx_write_memory):
6932	Likewise.
6933	* nto-low.c (nto_fetch_registers, nto_store_registers,
6934	nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
6935
69362017-09-15  Simon Marchi  <simon.marchi@ericsson.com>
6937
6938	* inferiors.h (gdb_id_to_thread_id): Remove.
6939	* inferiors.c (gdb_id_to_thread_id): Remove.
6940	* server.c (process_serial_event): Adjust to gdb_id_to_thread_id
6941	removal.  Move pid declaration closer to where it's used.
6942
69432017-09-15  Simon Marchi  <simon.marchi@ericsson.com>
6944
6945	* server.c (handle_detach): New function.
6946	(process_serial_event): Move code out, call handle_detach.
6947
69482017-09-15  Simon Marchi  <simon.marchi@ericsson.com>
6949
6950	* server.c (require_running): Rename to ...
6951	(require_running_or_return): ... this ...
6952	(require_running_or_break): ... and this.
6953	(handle_query, process_serial_event): Adjust.
6954
69552017-09-15  Simon Marchi  <simon.marchi@ericsson.com>
6956
6957	* linux-low.c (linux_set_resume_request): Remove unused
6958	variables.
6959
69602017-09-15  Simon Marchi  <simon.marchi@ericsson.com>
6961
6962	* server.c (first_thread_of): Remove.
6963	(process_serial_event): Replace usage of first_thread_of with
6964	find_any_thread_of_pid.
6965	* tracepoint.c (same_process_p): Remove.
6966	(gdb_agent_about_to_close): Replace usage of same_process_p with
6967	find_any_thread_of_pid.
6968	* linux-x86-low.c (same_process_callback): Remove.
6969	(x86_arch_setup_process_callback): Replace usage of
6970	same_process_callback with find_any_thread_of_pid.
6971	* thread-db.c (any_thread_of): Remove.
6972	(switch_to_process): Replace usage of any_thread_of with
6973	find_any_thread_of_pid.
6974	* inferiors.c (thread_pid_matches_callback): Remove.
6975	(find_thread_process): Adjust to use find_any_thread_of_pid.
6976
69772017-09-10  Sergio Durigan Junior  <sergiodj@redhat.com>
6978
6979	* regcache.c (get_thread_regcache): Guard calls to "memset"
6980	with "!VEC_empty".
6981
69822017-09-10  Sergio Durigan Junior  <sergiodj@redhat.com>
6983
6984	* linux-low.c (handle_extended_wait): Use
6985	"allocate_target_description" instead of "XNEW".
6986	* linux-x86-low.c (initialize_low_arch): Likewise.
6987
69882017-09-05  Yao Qi  <yao.qi@linaro.org>
6989
6990	* configure.srv (srv_i386_regobj): Remove.
6991	(srv_amd64_regobj): Remove.
6992	(srv_regobj): Set it to "" for x86 non-linux targets.
6993	* linux-x86-tdesc.c (i386_linux_read_description):
6994	* lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
6995	(init_registers_i386): Remove the declaration.
6996	(tdesc_i386): Remove the declaration.
6997	(lynx_i386_arch_setup): Call i386_create_target_description.
6998	* nto-x86-low.c: Likewise.
6999	* win32-i386-low.c [__x86_64__]: include arch/amd64.h.
7000	[!__x86_64__]: include arch/i386.h.
7001	(i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
7002
70032017-09-05  Yao Qi  <yao.qi@linaro.org>
7004
7005	* configure.srv (srv_amd64_linux_xmlfiles): Remove
7006	i386/amd64-XXX-linux from it.
7007
70082017-09-05  Yao Qi  <yao.qi@linaro.org>
7009
7010	* configure.srv: Empty srv_amd64_linux_regobj if $development is
7011	false.
7012	(ipa_amd64_linux_regobj): Remove.
7013	(ipa_x32_linux_regobj): Remove.
7014
70152017-09-05  Yao Qi  <yao.qi@linaro.org>
7016
7017	* Makefile.in (arch-amd64.o): New rule.
7018	* configure.srv: Append arch-amd64.o.
7019	* linux-amd64-ipa.c: Include common/x86-xstate.h.
7020	(get_ipa_tdesc): Call amd64_linux_read_description.
7021	(initialize_low_tracepoint): Don't call init_registers_x32_XXX
7022	and init_registers_amd64_XXX.
7023	* linux-x86-low.c (x86_linux_read_description): Call
7024	amd64_linux_read_description.
7025	(x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
7026	(initialize_low_arch): Don't call init_registers_x32_XXX and
7027	init_registers_amd64_XXX.
7028	* linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
7029	and tdesc_amd64_XXX.
7030	[__x86_64__] (amd64_tdesc_test): New function.
7031	(initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
7032	and init_registers_amd64_XXX.
7033	* linux-x86-tdesc.c: Include arch/amd64.h.
7034	(xcr0_to_tdesc_idx): New function.
7035	(i386_linux_read_description): New function.
7036	(amd64_get_ipa_tdesc_idx): New function.
7037	* linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
7038	(amd64_get_ipa_tdesc): Declare.
7039
70402017-09-05  Yao Qi  <yao.qi@linaro.org>
7041
7042	* configure.srv (srv_i386_linux_xmlfiles): Remove
7043	i386/i386-XXX-linux.xml from it.
7044
70452017-09-05  Yao Qi  <yao.qi@linaro.org>
7046
7047	* configure.srv: Set srv_i386_linux_regobj empty if $development
7048	is false.
7049	* linux-i386-ipa.c (initialize_low_tracepoint): Don't call
7050	initialize_low_tdesc.
7051	* linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
7052	with #if initialize_low_tdesc.
7053	* linux-x86-tdesc-selftest.c: New file.
7054	* linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
7055
70562017-09-05  Yao Qi  <yao.qi@linaro.org>
7057
7058	* Makefile.in (arch-i386.o): New rule.
7059	* configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
7060	(x86_64-*-linux*): Likewise.
7061	* linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
7062	include arch/i386.h.
7063	(i386_linux_read_description): Remove code and call
7064	i386_create_target_description.
7065	* tdesc.c (allocate_target_description): New function.
7066	* tdesc.h (set_tdesc_architecture): Remove declaration.
7067	(set_tdesc_osabi): Likewise.
7068
70692017-09-05  Yao Qi  <yao.qi@linaro.org>
7070
7071	* linux-x86-tdesc.c: Don't include <inttypes.h>.
7072	(i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
7073	set_tdesc_architecture and set_tdesc_osabi.  Remove code setting
7074	.xmltarget.
7075	* server.c (get_features_xml): Call tdesc_get_features_xml.
7076	* tdesc.c (set_tdesc_architecture): New function.
7077	(set_tdesc_osabi): New function.
7078	(tdesc_get_features_xml): New function.
7079	(tdesc_create_feature): Add an argument.
7080	* tdesc.h (struct target_desc) <features>: New field.
7081	<arch, osabi>: New field.
7082	(~target_desc): xfree features, arch, and osabi.
7083	(target_desc::oerator==): Don't compare .xmltarget.
7084	[!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
7085	(set_tdesc_osabi): Likewise.
7086	(tdesc_get_features_xml): Likewise.
7087
70882017-09-05  Yao Qi  <yao.qi@linaro.org>
7089
7090	* linux-x86-tdesc.c: Include selftest.h.
7091	(i386_tdesc_test): New function.
7092	(initialize_low_tdesc): Call selftests::register_test.
7093	* tdesc.h: Include regdef.h.
7094	(target_desc): Override operator == and !=.
7095
70962017-09-05  Yao Qi  <yao.qi@linaro.org>
7097
7098	* configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
7099	(ipa_obj): Likewise.
7100	* linux-i386-ipa.c: Include common/x86-xstate.h
7101	(get_ipa_tdesc): Call i386_linux_read_description.
7102	(initialize_low_tracepoint): Don't call  init_registers_XXX
7103	functions, call initialize_low_tdesc instead.
7104	* linux-x86-low.c (x86_linux_read_description): Call
7105	i386_linux_read_description.
7106	(initialize_low_arch): Don't call init_registers_i386_XXX
7107	functions, call initialize_low_tdesc.
7108	* linux-x86-tdesc.c: New file.
7109	* linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
7110	(i386_get_ipa_tdesc_idx): Declare.
7111	(i386_get_ipa_tdesc): Declare.
7112	(initialize_low_tdesc): Declare.
7113
71142017-09-05  Yao Qi  <yao.qi@linaro.org>
7115
7116	* linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
7117	instead of 0.
7118
71192017-09-05  Yao Qi  <yao.qi@linaro.org>
7120
7121	* Makefile.in (IPA_OBJS): Add vec-ipa.o
7122	* regcache.c (get_thread_regcache): Use VEC_length.
7123	(init_register_cache): Likewise.
7124	(regcache_cpy): Likewise.
7125	(registers_to_string): Iterate reg_defs via VEC_iterate.
7126	(find_regno): Likewise.
7127	(find_register_by_number): Use VEC_index.
7128	(register_size): Call find_register_by_number.
7129	(register_data): Call find_register_by_number.
7130	(supply_regblock): Use VEC_length.
7131	(regcache_raw_read_unsigned): Likewise.
7132	* tdesc.c (init_target_desc): Iterate reg_defs via
7133	VEC_iterate.
7134	(default_description): Update initializer.
7135	(copy_target_description): Don't update field num_registers.
7136	* tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
7137	<num_registers>: Remove.
7138
71392017-09-04  Simon Marchi  <simon.marchi@ericsson.com>
7140
7141	* Makefile.in (.SECONDARY): Define target.
7142
71432017-09-03  Simon Marchi  <simon.marchi@ericsson.com>
7144
7145	* linux-low.c (linux_wait_1): Adjust.
7146	* server.c (queue_stop_reply_callback): Adjust.
7147
71482017-08-31  Sergio Durigan Junior  <sergiodj@redhat.com>
7149
7150	* server.c (handle_general_set): Handle QEnvironmentHexEncoded,
7151	QEnvironmentUnset and QEnvironmentReset packets.
7152	(handle_query): Inform remote that QEnvironmentHexEncoded,
7153	QEnvironmentUnset and QEnvironmentReset are supported.
7154
71552017-08-25  Simon Marchi  <simon.marchi@ericsson.com>
7156
7157	* inferiors.h (inferior_target_data): Rename to ...
7158	(thread_target_data): ... this.
7159	(inferior_regcache_data): Rename to ...
7160	(thread_regcache_data): ... this.
7161	(set_inferior_regcache_data): Rename to ...
7162	(set_thread_regcache_data): ... this.
7163	* inferiors.c (inferior_target_data): Rename to ...
7164	(thread_target_data): ... this.
7165	(inferior_regcache_data): Rename to ...
7166	(thread_regcache_data): ... this.
7167	(set_inferior_regcache_data): Rename to ...
7168	(set_thread_regcache_data): ... this.
7169	(free_one_thread): Update.
7170	* linux-low.h (get_thread_lwp): Update.
7171	* regcache.c (get_thread_regcache): Update.
7172	(regcache_invalidate_thread): Update.
7173	(free_register_cache_thread): Update.
7174	* win32-i386-low.c (update_debug_registers_callback): Update.
7175	(win32_get_current_dr): Update.
7176	* win32-low.c (thread_rec): Update.
7177	(delete_thread_info): Update.
7178	(continue_one_thread): Update.
7179	(suspend_one_thread): Update.
7180
71812017-08-24  Simon Marchi  <simon.marchi@ericsson.com>
7182
7183	* inferiors.c (set_inferior_target_data): Remove.
7184	* inferiors.h (set_inferior_target_data): Remove.
7185
71862017-08-18  Yao Qi  <yao.qi@linaro.org>
7187
7188	* Makefile.in (OBS): Add selftest.o.
7189	* configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
7190	* configure, config.in: Re-generated.
7191	* server.c: Include common/sefltest.h.
7192	(captured_main): Handle option --selftest.
7193
71942017-08-09  Yao Qi  <yao.qi@linaro.org>
7195
7196	* configure.srv (srv_i386_regobj): Remove i386-avx.o,
7197	i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
7198	i386-avx-mpx.o and i386-mmx.o.
7199	(srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
7200	amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
7201	(srv_i386_xmlfiles): Remove i386/i386-avx.xml,
7202	i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
7203	i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
7204	(srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
7205	i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
7206	i386/amd64-avx-mpx.xml.
7207
72082017-08-09  Yao Qi  <yao.qi@linaro.org>
7209
7210	* configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
7211	and x32-avx-avx512.o.
7212	(srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
7213	i386/x32-avx-avx512.xml.
7214
72152017-07-26  Simon Marchi  <simon.marchi@ericsson.com>
7216
7217	* tracepoint.h (enum class fast_tpoint_collect_result): New
7218	enumeration.
7219	(fast_tracepoint_collecting): Change return type to
7220	fast_tpoint_collect_result.
7221	* tracepoint.c (fast_tracepoint_collecting): Likewise.
7222	* linux-low.h: Include tracepoint.h.
7223	(struct lwp_info) <collecting_fast_tracepoint>: Change type to
7224	fast_tpoint_collect_result.
7225	* linux-low.c (handle_tracepoints): Adjust.
7226	(linux_fast_tracepoint_collecting): Change return type to
7227	fast_tpoint_collect_result.
7228	(maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
7229	linux_wait_1, stuck_in_jump_pad_callback,
7230	lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
7231	proceed_one_lwp): Adjust to type change.
7232
72332017-07-10  Yao Qi  <yao.qi@linaro.org>
7234
7235	* linux-x86-low.c (x86_linux_read_description): Re-indent the code.
7236
72372017-06-29  Yao Qi  <yao.qi@linaro.org>
7238
7239	* tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
7240	Remove.
7241	[IN_PROCESS_AGENT] <xmltarget>: Likewise.
7242
72432017-06-20  Simon Marchi  <simon.marchi@ericsson.com>
7244
7245	* Makefile.in (IPA_OBJS): Sort and format one item per line.
7246
72472017-06-20  Sergio Durigan Junior  <sergiodj@redhat.com>
7248
7249	* linux-low.c (linux_create_inferior): Adjust code to access the
7250	environment information via 'gdb_environ' class.
7251	* lynx-low.c (lynx_create_inferior): Likewise.
7252	* server.c (our_environ): Make it an instance of 'gdb_environ'.
7253	(get_environ): Return a pointer to 'our_environ'.
7254	(captured_main): Initialize 'our_environ'.
7255	* server.h (get_environ): Adjust prototype.
7256	* spu-low.c (spu_create_inferior): Adjust code to access the
7257	environment information via 'gdb_environ' class.
7258
72592017-06-17  Simon Marchi  <simon.marchi@ericsson.com>
7260
7261	* linux-low.c (linux_read_memory, linux_write_memory): Remove
7262	usage of "register" keyword.
7263
72642017-06-17  Simon Marchi  <simon.marchi@ericsson.com>
7265
7266	* configure: Re-generate.
7267
72682017-06-17  Simon Marchi  <simon.marchi@ericsson.com>
7269
7270	* configure: Re-generate.
7271
72722017-06-17  Simon Marchi  <simon.marchi@ericsson.com>
7273
7274	* Makefile.in (COMPILE.pre): Add "-x c++".
7275
72762017-06-09  Sergio Durigan Junior  <sergiodj@redhat.com>
7277
7278	* fork-child.c: Conditionally include <signal.h>.
7279
72802017-06-07  Sergio Durigan Junior  <sergiodj@redhat.com>
7281
7282	* server.c (handle_general_set): Handle new packet
7283	"QStartupWithShell".
7284	(handle_query): Add "QStartupWithShell" to the list of supported
7285	packets.
7286	(gdbserver_usage): Add help text explaining the
7287	new "--startup-with-shell" and "--no-startup-with-shell" CLI
7288	options.
7289	(captured_main): Recognize and act upon the presence of the new
7290	CLI options.
7291
72922017-06-07  Sergio Durigan Junior  <sergiodj@redhat.com>
7293	    Pedro Alves  <palves@redhat.com>
7294
7295	* Makefile.in (SFILES): Add "nat/fork-inferior.o".
7296	* configure: Regenerate.
7297	* configure.srv (srv_linux_obj): Add "fork-child.o" and
7298	"fork-inferior.o".
7299	(i[34567]86-*-lynxos*): Likewise.
7300	(spu*-*-*): Likewise.
7301	* fork-child.c: New file.
7302	* linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
7303	and "environ.h".
7304	(linux_ptrace_fun): New function.
7305	(linux_create_inferior): Adjust function prototype to reflect
7306	change on "target.h".  Adjust function code to use
7307	"fork_inferior".
7308	(linux_request_interrupt): Delete "signal_pid".
7309	* lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7310	(lynx_ptrace_fun): New function.
7311	(lynx_create_inferior): Adjust function prototype to reflect
7312	change on "target.h".  Adjust function code to use
7313	"fork_inferior".
7314	* nto-low.c (nto_create_inferior): Adjust function prototype and
7315	code to reflect change on "target.h".  Update comments.
7316	* server.c: Include "common-inferior.h", "nat/fork-inferior.h",
7317	"common-terminal.h" and "environ.h".
7318	(terminal_fd): Moved to fork-child.c.
7319	(old_foreground_pgrp): Likewise.
7320	(restore_old_foreground_pgrp): Likewise.
7321	(last_status): Make it global.
7322	(last_ptid): Likewise.
7323	(our_environ): New variable.
7324	(startup_with_shell): Likewise.
7325	(program_name): Likewise.
7326	(program_argv): Rename to...
7327	(program_args): ...this.
7328	(wrapper_argv): New variable.
7329	(start_inferior): Delete function.
7330	(get_exec_wrapper): New function.
7331	(get_exec_file): Likewise.
7332	(get_environ): Likewise.
7333	(prefork_hook): Likewise.
7334	(post_fork_inferior): Likewise.
7335	(postfork_hook): Likewise.
7336	(postfork_child_hook): Likewise.
7337	(handle_v_run): Update code to deal with arguments coming from the
7338	remote host.  Update calls from "start_inferior" to
7339	"create_inferior".
7340	(captured_main): Likewise.  Initialize environment variable.  Call
7341	"have_job_control".
7342	* server.h (post_fork_inferior): New prototype.
7343	(get_environ): Likewise.
7344	(last_status): Declare.
7345	(last_ptid): Likewise.
7346	(signal_pid): Likewise.
7347	* spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7348	(spu_ptrace_fun): New function.
7349	(spu_create_inferior): Adjust function prototype to reflect change
7350	on "target.h".  Adjust function code to use "fork_inferior".
7351	* target.c (target_terminal_init): New function.
7352	(target_terminal_inferior): Likewise.
7353	(target_terminal_ours): Likewise.
7354	* target.h: Include <vector>.
7355	(struct target_ops) <create_inferior>: Update prototype.
7356	(create_inferior): Update macro.
7357	* utils.c (gdb_flush_out_err): New function.
7358	* win32-low.c (win32_create_inferior): Adjust function prototype
7359	and code to reflect change on "target.h".
7360
73612017-06-07  Sergio Durigan Junior  <sergiodj@redhat.com>
7362
7363	* inferiors.c (switch_to_thread): New function.
7364
73652017-06-07  Sergio Durigan Junior  <sergiodj@redhat.com>
7366
7367	* Makefile.in (SFILE): Add "common/job-control.c".
7368	(OBS): Add "job-control.o".
7369
73702017-05-06  Sergio Durigan Junior  <sergiodj@redhat.com>
7371
7372	* Makefile: Remove "@host_makefile_frag@".
7373
73742017-05-05  Pedro Alves  <palves@redhat.com>
7375
7376	* configure: Regenerate.
7377
73782017-05-03  Sergio Durigan Junior  <sergiodj@redhat.com>
7379
7380	* configure: Regenerate.
7381
73822017-05-02  Simon Marchi  <simon.marchi@polymtl.ca>
7383
7384	* linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
7385	software_single_step change of return type to
7386	std::vector<CORE_ADDR>.
7387	* linux-low.c (install_software_single_step_breakpoints):
7388	Likewise.
7389	* linux-low.h (install_software_single_step_breakpoints):
7390	Likewise.
7391
73922017-04-12  Sergio Durigan Junior  <sergiodj@redhat.com>
7393
7394	* remote-utils.c: Include "gdb_termios.h" instead of
7395	"terminal.h".
7396	* terminal.h: Delete file.
7397
73982017-04-12  Sergio Durigan Junior  <sergiodj@redhat.com>
7399
7400	* server.c: Include <vector>.
7401	<program_argv, wrapper_argv>: Convert to std::vector.
7402	(start_inferior): Rewrite function to use C++.
7403	(handle_v_run): Likewise.  Update code that calculates the argv
7404	based on the vRun packet; use C++.
7405	(captured_main): Likewise.
7406
74072017-04-06  Simon Marchi  <simon.marchi@ericsson.com>
7408
7409	* server.c (handle_v_cont): Initialize thread_resume::thread
7410	with null_ptid.
7411
74122017-04-05  Pedro Alves  <palves@redhat.com>
7413
7414	* configure: Regenerate.
7415
74162017-04-05  Pedro Alves  <palves@redhat.com>
7417
7418	* gdbreplay.c (sync_error): Constify.
7419	* linux-x86-low.c (push_opcode): Constify.
7420
74212017-04-05  Pedro Alves  <palves@redhat.com>
7422
7423	* win32-low.c (get_child_debug_event)
7424	<CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
7425	Report TARGET_WAITKIND_SPURIOUS instead.
7426
74272017-04-05  Pedro Alves  <palves@redhat.com>
7428
7429	* remote-utils.c (remote_prepare, remote_open): Constify.
7430	* remote-utils.h (remote_prepare, remote_open): Constify.
7431	* server.c (captured_main): Constify 'port' handling.
7432
74332017-04-04  Simon Marchi  <simon.marchi@ericsson.com>
7434
7435	* Makefile.in (clean): Clear .deps.
7436
74372017-03-31  Simon Marchi  <simon.marchi@polymtl.ca>
7438
7439	* .gitignore: Remove generated files, replace with wildcard.
7440	* (clean): Replace removal of generated files with wildcard.
7441	(version.c): Replace with...
7442	(version-generated.c): ...this.
7443	(xml-builtin.c): Replace with...
7444	(xml-builtin-generated.c): ...this.
7445	(%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
7446	(%.c: *regformats*): Replace with...
7447	(%-generated.c: *regformats*): ...this.
7448
74492017-03-27  Max Filippov  <jcmvbkbc@gmail.com>
7450
7451	* linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
7452	(xtensa_fill_gregset): Call collect_register_by_name for
7453	threadptr register.
7454	(xtensa_store_gregset): Call supply_register_by_name for
7455	threadptr register.
7456
74572017-03-27  Max Filippov  <jcmvbkbc@gmail.com>
7458
7459	* linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
7460	for all registers in a0_regnum..a0_regnum + C0_NREGS range.
7461	(xtensa_store_gregset): Call supply_register for all registers in
7462	a0_regnum..a0_regnum + C0_NREGS range.
7463
74642017-03-13  Simon Marchi  <simon.marchi@polymtl.ca>
7465
7466	* Makefile.in (%-ipa.o: %-ipa.c): New rule.
7467	(ax-ipa.o: ax.c): Remove.
7468	(linux-i386-ipa.o: linux-i386-ipa.c): Remove.
7469	(linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
7470	(linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
7471	(linux-s390-ipa.o: linux-s390-ipa.c): Remove.
7472	(linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
7473
74742017-03-13  Simon Marchi  <simon.marchi@polymtl.ca>
7475
7476	* Makefile.in (%-ipa.o: ../common/%.c): New rule.
7477	(print-utils-ipa.o: ../common/print-utils.c): Remove.
7478	(rsp-low-ipa.o: ../common/rsp-low.c): Remove.
7479	(errors-ipa.o: ../common/errors.c): Remove.
7480	(format-ipa.o: ../common/format.c): Remove.
7481	(common-utils-ipa.o: ../common/common-utils.c): Remove.
7482
74832017-03-13  Simon Marchi  <simon.marchi@polymtl.ca>
7484
7485	* Makefile.in (%-ipa.o: %.c): New rule.
7486	(tracepoint-ipa.o: tracepoint.c): Remove.
7487	(utils-ipa.o: utils.c): Remove.
7488	(remote-utils-ipa.o: remote-utils.c): Remove.
7489	(regcache-ipa.o: regcache.c): Remove.
7490	(i386-linux-ipa.o: i386-linux.c): Remove.
7491	(i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
7492	(i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
7493	(i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
7494	(i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
7495	(i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
7496	(i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
7497	(amd64-linux-ipa.o: amd64-linux.c): Remove.
7498	(amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
7499	(amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
7500	(amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
7501	(amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
7502	(amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
7503	(aarch64-ipa.o: aarch64.c): Remove.
7504	(s390-linux32-ipa.o: s390-linux32.c): Remove.
7505	(s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
7506	(s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
7507	(s390-linux64-ipa.o: s390-linux64.c): Remove.
7508	(s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
7509	(s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
7510	(s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
7511	(s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
7512	(s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
7513	(s390x-linux64-ipa.o: s390x-linux64.c): Remove.
7514	(s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
7515	(s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
7516	(s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
7517	(s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
7518	(s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
7519	(powerpc-32l-ipa.o: powerpc-32l.c): Remove.
7520	(powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
7521	(powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
7522	(powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
7523	(powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
7524	(powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
7525	(powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
7526	(powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
7527	(powerpc-64l-ipa.o: powerpc-64l.c): Remove.
7528	(powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
7529	(powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
7530	(powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
7531	(powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
7532	(powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
7533	(powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
7534	(tdesc-ipa.o: tdesc.c): Remove.
7535	(x32-linux-ipa.o: x32-linux.c): Remove.
7536	(x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
7537	(x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
7538
75392017-03-13  Simon Marchi  <simon.marchi@polymtl.ca>
7540
7541	* Makefile.in (%.o: ../arch/%.c): New rule.
7542	(arm.o: ../arch/arm.c): Remove.
7543	(arm-linux.o: ../arch/arm-linux.c): Remove.
7544	(arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
7545	(aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
7546
75472017-03-13  Simon Marchi  <simon.marchi@polymtl.ca>
7548
7549	* Makefile.in (%.o: ../nat/%.c): New rule.
7550	(x86-dregs.o: ../nat/x86-dregs.c): Remove.
7551	(amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
7552	(linux-btrace.o: ../nat/linux-btrace.c): Remove.
7553	(linux-osdata.o: ../nat/linux-osdata.c): Remove.
7554	(linux-procfs.o: ../nat/linux-procfs.c): Remove.
7555	(linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
7556	(linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
7557	(mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
7558	(ppc-linux.o: ../nat/ppc-linux.c): Remove.
7559	(linux-personality.o: ../nat/linux-personality.c): Remove.
7560	(aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
7561	(aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
7562	(x86-linux.o: ../nat/x86-linux.c): Remove.
7563	(x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
7564	(linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
7565
75662017-03-13  Simon Marchi  <simon.marchi@polymtl.ca>
7567
7568	* Makefile.in (%.o: ../common/%.c): New rule.
7569	(signals.o: ../common/signals.c): Remove.
7570	(print-utils.o: ../common/print-utils.c): Remove.
7571	(rsp-low.o: ../common/rsp-low.c): Remove.
7572	(common-utils.o: ../common/common-utils.c): Remove.
7573	(posix-strerror.o: ../common/posix-strerror.c): Remove.
7574	(mingw-strerror.o: ../common/mingw-strerror.c): Remove.
7575	(vec.o: ../common/vec.c): Remove.
7576	(gdb_vecs.o: ../common/gdb_vecs.c): Remove.
7577	(xml-utils.o: ../common/xml-utils.c): Remove.
7578	(ptid.o: ../common/ptid.c): Remove.
7579	(buffer.o: ../common/buffer.c): Remove.
7580	(format.o: ../common/format.c): Remove.
7581	(filestuff.o: ../common/filestuff.c): Remove.
7582	(agent.o: ../common/agent.c): Remove.
7583	(errors.o: ../common/errors.c): Remove.
7584	(environ.o: ../common/environ.c): Remove.
7585	(common-debug.o: ../common/common-debug.c): Remove.
7586	(cleanups.o: ../common/cleanups.c): Remove.
7587	(common-exceptions.o: ../common/common-exceptions.c): Remove.
7588	(fileio.o: ../common/fileio.c): Remove.
7589	(common-regcache.o: ../common/common-regcache.c): Remove.
7590	(signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
7591	(new-op.o: ../common/new-op.c): Remove.
7592	(btrace-common.o: ../common/btrace-common.c): Remove.
7593
75942017-03-13  Simon Marchi  <simon.marchi@polymtl.ca>
7595
7596	* Makefile.in (%.o: ../target/%.c): New rule.
7597	(waitstatus.o: ../target/waitstatus.c): Remove.
7598
75992017-03-13  Simon Marchi  <simon.marchi@polymtl.ca>
7600
7601	* Makefile.in
7602	(%.c: ../regformats/%.dat,
7603	(%.c: ../regformats/arm/%.dat,
7604	(%.c: ../regformats/i386/%.dat,
7605	(%.c: ../regformats/rs6000/%.dat): New rules.
7606	(aarch64.c): Remove.
7607	(reg-arm.c): Remove.
7608	(arm-with-iwmmxt.c): Remove.
7609	(arm-with-vfpv2.c): Remove.
7610	(arm-with-vfpv3.c): Remove.
7611	(arm-with-neon.c): Remove.
7612	(reg-bfin.c): Remove.
7613	(reg-cris.c): Remove.
7614	(reg-crisv32.c): Remove.
7615	(i386.c): Remove.
7616	(i386-linux.c): Remove.
7617	(i386-avx.c): Remove.
7618	(i386-avx-linux.c): Remove.
7619	(i386-avx-avx512.c): Remove.
7620	(i386-avx-avx512-linux.c): Remove.
7621	(i386-mpx.c): Remove.
7622	(i386-mpx-linux.c): Remove.
7623	(i386-avx-mpx-avx512-pku.c): Remove.
7624	(i386-avx-mpx-avx512-pku-linux.c): Remove.
7625	(i386-avx-mpx.c): Remove.
7626	(i386-avx-mpx-linux.c): Remove.
7627	(i386-mmx.c): Remove.
7628	(i386-mmx-linux.c): Remove.
7629	(reg-ia64.c): Remove.
7630	(reg-m32r.c): Remove.
7631	(reg-m68k.c): Remove.
7632	(reg-cf.c): Remove.
7633	(mips-linux.c): Remove.
7634	(mips-dsp-linux.c): Remove.
7635	(mips64-linux.c): Remove.
7636	(mips64-dsp-linux.c): Remove.
7637	(nios2-linux.c): Remove.
7638	(powerpc-32.c): Remove.
7639	(powerpc-32l.c): Remove.
7640	(powerpc-altivec32l.c): Remove.
7641	(powerpc-cell32l.c): Remove.
7642	(powerpc-vsx32l.c): Remove.
7643	(powerpc-isa205-32l.c): Remove.
7644	(powerpc-isa205-altivec32l.c): Remove.
7645	(powerpc-isa205-vsx32l.c): Remove.
7646	(powerpc-e500l.c): Remove.
7647	(powerpc-64l.c): Remove.
7648	(powerpc-altivec64l.c): Remove.
7649	(powerpc-cell64l.c): Remove.
7650	(powerpc-vsx64l.c): Remove.
7651	(powerpc-isa205-64l.c): Remove.
7652	(powerpc-isa205-altivec64l.c): Remove.
7653	(powerpc-isa205-vsx64l.c): Remove.
7654	(s390-linux32.c): Remove.
7655	(s390-linux32v1.c): Remove.
7656	(s390-linux32v2.c): Remove.
7657	(s390-linux64.c): Remove.
7658	(s390-linux64v1.c): Remove.
7659	(s390-linux64v2.c): Remove.
7660	(s390-te-linux64.c): Remove.
7661	(s390-vx-linux64.c): Remove.
7662	(s390-tevx-linux64.c): Remove.
7663	(s390x-linux64.c): Remove.
7664	(s390x-linux64v1.c): Remove.
7665	(s390x-linux64v2.c): Remove.
7666	(s390x-te-linux64.c): Remove.
7667	(s390x-vx-linux64.c): Remove.
7668	(s390x-tevx-linux64.c): Remove.
7669	(tic6x-c64xp-linux.c): Remove.
7670	(tic6x-c64x-linux.c): Remove.
7671	(tic6x-c62x-linux.c): Remove.
7672	(reg-sh.c): Remove.
7673	(reg-sparc64.c): Remove.
7674	(reg-spu.c): Remove.
7675	(amd64.c): Remove.
7676	(amd64-linux.c): Remove.
7677	(amd64-avx.c): Remove.
7678	(amd64-avx-linux.c): Remove.
7679	(amd64-avx-avx512.c): Remove.
7680	(amd64-avx-avx512-linux.c): Remove.
7681	(amd64-mpx.c): Remove.
7682	(amd64-mpx-linux.c): Remove.
7683	(amd64-avx-mpx-avx512-pku.c): Remove.
7684	(amd64-avx-mpx-avx512-pku-linux.c): Remove.
7685	(amd64-avx-mpx.c): Remove.
7686	(amd64-avx-mpx-linux.c): Remove.
7687	(x32.c): Remove.
7688	(x32-linux.c): Remove.
7689	(x32-avx.c): Remove.
7690	(x32-avx-linux.c): Remove.
7691	(x32-avx-avx512.c): Remove.
7692	(x32-avx-avx512-linux.c): Remove.
7693	(reg-xtensa.c): Remove.
7694	(reg-tilegx.c): Remove.
7695	(reg-tilegx32.c): Remove.
7696
76972017-03-07  Sergio Durigan Junior  <sergiodj@redhat.com>
7698
7699	* Makefile.in (SFILES): Add "common/environ.c".
7700	(OBJS): Add "common/environ.h".
7701
77022017-01-27  Walfred Tedeschi  <walfred.tedeschi@intel.com>
7703
7704	* configure.ac: Check if the fs_base and gs_base members of
7705	`struct user_regs_struct' exist.
7706	* config.in: Regenerated.
7707	* configure: Likewise.
7708
77092017-01-09  Antoine Tremblay  <antoine.tremblay@ericsson.com>
7710
7711	* linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
7712	target_read_memory.
7713	* linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
7714	(get_next_pcs_syscall_next_pc): Likewise.
7715
77162016-12-23  Luis Machado  <lgustavo@codesourcery.com>
7717
7718	* win32-i386-low.c: Fix incorrect reference to a couple source files.
7719	* nto-x86-low.c: Likewise.
7720
77212016-11-30  Simon Marchi  <simon.marchi@polymtl.ca>
7722
7723	* Makefile.in: Include disable-implicit-rules.mk.
7724
77252016-11-23  Pedro Alves  <palves@redhat.com>
7726
7727	* debug.c: Include <chrono> instead of "gdb_sys_time.h".
7728	(debug_vprintf): Use std::chrono::steady_clock instead of
7729	gettimeofday.  Use '.' instead of ':'.
7730	* tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
7731	(get_timestamp): Use std::chrono::steady_clock instead of
7732	gettimeofday.
7733
77342016-11-22  Simon Marchi  <simon.marchi@polymtl.ca>
7735
7736	* Makefile.in: Fix whitespace formatting.
7737
77382016-11-22  Simon Marchi  <simon.marchi@polymtl.ca>
7739
7740	* Makefile.in (SFILES, OBS): Flatten list and order
7741	alphabetically.
7742
77432016-11-23  Pedro Alves  <palves@redhat.com>
7744
7745	* event-loop.c (handle_file_event): Use warning.
7746	* linux-low.c (linux_resume_one_lwp_throw): Use warning.
7747	* mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
7748	Use warning.
7749
77502016-11-23  Pedro Alves  <palves@redhat.com>
7751
7752	* linux-low.c (check_zombie_leaders): Use debug_printf for debug
7753	output.
7754	* notif.c (handle_notif_ack, notif_event_enque): Likewise.
7755	* remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
7756	debug_printf and debug_flush for debug output.
7757	* server.c (handle_general_set): Likewise.
7758	* thread-db.c (try_thread_db_load): Use debug_printf for debug
7759	output.
7760
77612016-11-17  Simon Marchi  <simon.marchi@polymtl.ca>
7762
7763	* Makefile.in (.c.o): Replace rule with ...
7764	(%.o: %.c): ... this one.
7765
77662016-11-17  Simon Marchi  <simon.marchi@polymtl.ca>
7767
7768	* Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
7769	prefixed with @GMAKE_FALSE@.  Update comment related to non-GNU
7770	make.
7771	* configure.ac: Remove checks for the make program.
7772	* configure: Re-generate.
7773
77742016-10-28  Pedro Alves  <palves@redhat.com>
7775
7776	* Makefile.in (CXX_DIALECT): Get from configure.
7777	(COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
7778	* acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
7779	* configure.ac: Call AX_CXX_COMPILE_STDCXX.
7780	* config.in: Regenerate.
7781	* configure: Regenerate.
7782
77832016-10-27  Yao Qi  <yao.qi@linaro.org>
7784
7785	* linux-low.c (linux_supports_range_stepping): Return true if
7786	can_software_single_step return true.
7787
77882016-10-27  Yao Qi  <yao.qi@linaro.org>
7789
7790	* inferiors.c (find_inferior_in_random): New function.
7791	* inferiors.h (find_inferior_in_random): Declare.
7792	* linux-low.c (linux_wait_for_event_filtered): Call
7793	find_inferior_in_random instead of find_inferior.
7794
77952016-10-27  Yao Qi  <yao.qi@linaro.org>
7796
7797	* linux-low.c (linux_wait_1): If single-step breakpoints are
7798	inserted, remove them.
7799
78002016-10-26  Pedro Alves  <palves@redhat.com>
7801
7802	* linux-low.c (handle_extended_wait): Link parent/child fork
7803	threads.
7804	(linux_wait_1): Unlink them.
7805	(linux_set_resume_request): Ignore resume requests for
7806	already-resumed and unhandled fork child threads.
7807	* linux-low.h (struct lwp_info) <fork_relative>: New field.
7808	* server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
7809	New functions.
7810	(handle_v_requests) <vCont>: Don't call require_running.
7811	* server.h (in_queued_stop_replies): New declaration.
7812
78132016-10-24  Yao Qi  <yao.qi@linaro.org>
7814
7815	PR server/20733
7816	* linux-aarch64-low.c (append_insns): Cast the return value to
7817	'uint32_t *'.
7818
78192016-10-10  Yao Qi  <yao.qi@linaro.org>
7820
7821	* linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
7822
78232016-10-06  Sergio Durigan Junior  <sergiodj@redhat.com>
7824
7825	* target.c (target_supports_multi_process): New function, moved
7826	from...
7827	* target.h (target_supports_multi_process): ... here.  Remove
7828	macro.
7829
78302016-10-05  Tom Tromey  <tom@tromey.com>
7831
7832	PR remote/20655:
7833	* tracepoint.c (handle_tracepoint_bkpts): Check
7834	ipa_error_tracepoint, not ipa_stopping_tracepoint.
7835
78362016-10-05  Yao Qi  <yao.qi@linaro.org>
7837
7838	* configure.srv: Update the path of arm-*.xml files.
7839
78402016-10-05  Terry Guo  <terry.guo@arm.com>
7841	    Yao Qi  <yao.qi@linaro.org>
7842
7843	* Makefile.in: Adjust the path of rules.
7844	* configure.srv: Update the path of xml files.
7845	* regformats/arm-with-iwmmxt.dat: Regenerated.
7846	* regformats/arm-with-neon.dat: Likewise.
7847	* regformats/arm-with-vfpv2.dat: Likewise.
7848	* regformats/arm-with-vfpv3.dat Likewise.
7849
78502016-09-30  Yao Qi  <yao.qi@linaro.org>
7851
7852	PR gdbserver/20627
7853	* target.c (target_stop_and_wait): Don't call
7854	target_continue_no_signal, use resume_stop instead.
7855
78562016-09-26  Yao Qi  <yao.qi@linaro.org>
7857
7858	* linux-low.c (linux_wait_1): Call debug_exit.
7859
78602016-09-23  Pedro Alves  <palves@redhat.com>
7861
7862	* Makefile.in (SFILES): Add common/new-op.c.
7863	(OBS): Add common/new-op.o.
7864	(new-op.o): New rule.
7865
78662016-09-21  Simon Marchi  <simon.marchi@ericsson.com>
7867
7868	* .gitinore: Ignore more files.
7869
78702016-09-21  Yao Qi  <yao.qi@linaro.org>
7871
7872	* linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
7873	23.
7874
78752016-09-19  Sergio Durigan Junior  <sergiodj@redhat.com>
7876
7877	* server.c (start_inferior): Call target_mourn_inferior instead of
7878	mourn_inferior; pass ptid_t argument to it.
7879	(resume): Likewise.
7880	(handle_target_event): Likewise.
7881	* target.c (target_mourn_inferior): New function.
7882	* target.h (mourn_inferior): Delete macro.
7883
78842016-09-16  Andreas Arnez  <arnez@linux.vnet.ibm.com>
7885
7886	* linux-low.c (lwp_is_stepping): New function.
7887
78882016-09-06  Carl Love  <cel@us.ibm.com>
7889
7890	* server.c (start_inferior):  Fixed comment, requested comment change
7891	didn't get updated correctly.  Removed reference to ptrace () call as
7892	it is only true on Linux systems.
7893
78942016-09-06  Carl Love  <cel@us.ibm.com>
7895
7896	* server.c (start_inferior):  Do not call
7897	function target_post_create_inferior () if the
7898	inferior process has already exited.
7899
79002016-09-05  Pedro Alves  <palves@redhat.com>
7901
7902	* Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
7903	(COMPILE.pre, CC_LD): Use CXX directly.
7904	(INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
7905	* acinclude.m4: Don't include build-with-cxx.m4.
7906	* configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
7907	* configure: Regenerate.
7908
79092016-09-02  Akash Trehan  <akash.trehan123@gmail.com>
7910
7911	PR gdb/19495
7912	* remote-utils.c (relocate_instruction): Remove redundant strcpy()
7913	call writing data to own_buf.
7914
79152016-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
7916
7917	* target.c (mywait): Call target_wait instead of
7918	the_target->wait.
7919	(target_wait): New function.
7920
79212016-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
7922
7923	* server.c (start_inferior): New variable 'ptid'.  Replace calls
7924	to the_target->resume by target_continue{,_no_signal}, depending
7925	on the case.
7926	* target.c (target_stop_and_wait): Call target_continue_no_signal
7927	instead of the_target->resume.
7928	(target_continue): New function.
7929
79302016-08-31  Antoine Tremblay  <antoine.tremblay@ericsson.com>
7931
7932	* linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
7933
79342016-08-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7935
7936	PR server/20491
7937	* gdb_proc_service.h (ps_get_thread_area): Remove const from struct
7938	ps_prochandle.
7939	* linux-aarch64-low.c (ps_get_thread_area): Likewise.
7940	* linux-arm-low.c (ps_get_thread_area): Likewise.
7941	* linux-crisv32-low.c (ps_get_thread_area): Likewise.
7942	* linux-m68k-low.c (ps_get_thread_area): Likewise.
7943	* linux-mips-low.c (ps_get_thread_area): Likewise.
7944	* linux-nios2-low.c (ps_get_thread_area): Likewise.
7945	* linux-tic6x-low.c (ps_get_thread_area): Likewise.
7946	* linux-x86-low.c (ps_get_thread_area): Likewise.
7947	* linux-xtensa-low.c (ps_get_thread_area): Likewise.
7948
79492016-08-19  Pedro Alves  <palves@redhat.com>
7950
7951	* linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
7952
79532016-08-19  Pedro Alves  <palves@redhat.com>
7954
7955	* linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
7956	comment.  Use memcpy instead of casting through unsigned long.
7957
79582016-08-19  Pedro Alves  <palves@redhat.com>
7959
7960	* linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
7961	allocating around 0x80000000.
7962
79632016-08-19  Pedro Alves  <palves@redhat.com>
7964
7965	PR gdb/20415
7966	* Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
7967	(x32-avx512-linux-ipa.o): New rules.
7968	* configure.ac (x86_64-*-linux*): New x32 check.
7969	* configure.srv (ipa_x32_linux_regobj): New.
7970	(x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
7971	* linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
7972	descriptions.
7973	(initialize_low_tracepoint) [__ILP32__]: Initialize x32
7974	descriptions.
7975	* configure: Regenerate.
7976
79772016-08-09  Pedro Alves  <palves@redhat.com>
7978
7979	PR gdb/18653
7980	* Makefile.in (OBS): Add signals-state-save-restore.o.
7981	(signals-state-save-restore.o): New rule.
7982	* config.in: Regenerate.
7983	* configure: Regenerate.
7984	* linux-low.c: Include "signals-state-save-restore.h".
7985	(linux_create_inferior): Call
7986	restore_original_signals_state.
7987	* server.c: Include "dispositions-save-restore.h".
7988	(captured_main): Call save_original_signals_state.
7989
79902016-08-05  Pedro Alves  <palves@redhat.com>
7991
7992	* configure: Regenerate.
7993
79942016-08-04  Yao Qi  <yao.qi@linaro.org>
7995
7996	* linux-low.c (regsets_fetch_inferior_registers): Check
7997	errno is ESRCH or not.
7998
79992016-08-02  Yao Qi  <yao.qi@linaro.org>
8000
8001	* thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
8002	<td_ta_set_event_p, td_ta_event_addr_p>: Remove.
8003	(thread_db_load_search): Update.
8004	(try_thread_db_load_1): Don't look for td_ta_event_addr,
8005	td_ta_set_event and td_ta_event_getmsg.
8006
80072016-07-26  Pedro Alves  <palves@redhat.com>
8008
8009	PR server/20414
8010	* linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
8011	of unsigned long for 64-bit registers and use uint32_t instead of
8012	unsigned int for 32-bit registers.
8013
80142016-07-26  Pedro Alves  <palves@redhat.com>
8015
8016	* linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
8017	to 'ptrace'.
8018
80192016-07-21  Tom Tromey  <tom@tromey.com>
8020
8021	* configure: Rebuild.
8022
80232016-07-21  Yao Qi  <yao.qi@linaro.org>
8024
8025	* mem-break.c (find_gdb_breakpoint): Cast bp to
8026	'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
8027
80282016-07-21  Yao Qi  <yao.qi@linaro.org>
8029
8030	* server.c (handle_v_requests): Support s and S actions
8031	if target_supports_software_single_step return true.
8032
80332016-07-21  Yao Qi  <yao.qi@linaro.org>
8034
8035	* linux-low.c (resume_stopped_resumed_lwps): If resume request
8036	is resume_step, call maybe_hw_step.
8037	(linux_wait_1): Stop all threads, remove reinsert breakpoints,
8038	and unstop them.
8039	(linux_resume_one_lwp_throw): Don't assert the thread has reinsert
8040	breakpoints or not.
8041	(proceed_one_lwp): If resume request is resume_step, install
8042	reinsert breakpoints and call maybe_hw_step.
8043
80442016-07-21  Yao Qi  <yao.qi@linaro.org>
8045
8046	* linux-low.c (proceed_one_lwp): Declare.
8047	(linux_resume_one_thread): Remove local variable 'step'.
8048	Lift code enqueue signal.  Call proceed_one_lwp instead of
8049	linux_resume_one_lwp.
8050
80512016-07-21  Yao Qi  <yao.qi@linaro.org>
8052
8053	* linux-low.c (linux_resume_one_thread): Call
8054	enqueue_pending_signal.
8055
80562016-07-21  Yao Qi  <yao.qi@linaro.org>
8057
8058	* gdbthread.h (make_cleanup_restore_current_thread): Declare.
8059	* inferiors.c (do_restore_current_thread_cleanup): New function.
8060	(make_cleanup_restore_current_thread): Likewise.
8061	* linux-low.c (install_software_single_step_breakpoints): Call
8062	make_cleanup_restore_current_thread.  Switch current_thread to
8063	thread.
8064
80652016-07-21  Yao Qi  <yao.qi@linaro.org>
8066
8067	* mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
8068	(set_reinsert_breakpoint): New parameter ptid.  Callers updated.
8069	(clone_one_breakpoint): Likewise.
8070	(delete_reinsert_breakpoints): Change parameter to thread.
8071	Callers updated.
8072	(has_reinsert_breakpoints): Likewise.
8073	(uninsert_reinsert_breakpoints): Likewise.
8074	(reinsert_reinsert_breakpoints): Likewise.
8075	* mem-break.h (set_reinsert_breakpoint): Update declaration.
8076	(delete_reinsert_breakpoints): Likewise.
8077	(reinsert_reinsert_breakpoints): Likewise.
8078	(uninsert_reinsert_breakpoints): Likewise.
8079	(has_reinsert_breakpoints): Likewise.
8080
80812016-07-21  Yao Qi  <yao.qi@linaro.org>
8082
8083	* inferiors.c (get_thread_process): Make parameter const.
8084	* inferiors.h (get_thread_process): Update declaration.
8085	* mem-break.c (clone_all_breakpoints): Remove all parameters.
8086	Add new parameters child_thread and parent_thread.  Callers
8087	updated.
8088	* mem-break.h (clone_all_breakpoints): Update declaration.
8089
80902016-07-21  Yao Qi  <yao.qi@linaro.org>
8091
8092	* mem-break.c (struct breakpoint) <cond_list>: Remove.
8093	<command_list, handler>: Remove.
8094	(struct gdb_breakpoint): New.
8095	(struct other_breakpoint): New.
8096	(struct reinsert_breakpoint): New.
8097	(is_gdb_breakpoint): New function.
8098	(any_persistent_commands): Update command_list if
8099	is_gdb_breakpoint returns true.
8100	(set_breakpoint): Create breakpoints according to their types.
8101	(find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
8102	(set_gdb_breakpoint_1): Likewise.
8103	(set_gdb_breakpoint): Likewise.
8104	(clear_breakpoint_conditions): Change parameter type to
8105	'struct gdb_breakpoint *'.
8106	(clear_breakpoint_commands): Likewise.
8107	(clear_breakpoint_conditions_and_commands): Likewise.
8108	(add_condition_to_breakpoint): Likewise.
8109	(add_breakpoint_condition): Likewise.
8110	(add_commands_to_breakpoint): Likewise.
8111	(check_breakpoints): Check other_breakpoint.
8112	(clone_one_breakpoint): Clone breakpopint according to its type.
8113	* mem-break.h (struct gdb_breakpoint): Declare.
8114	(set_gdb_breakpoint): Update declaration.
8115	(clear_breakpoint_conditions_and_commands): Likewise.
8116	(add_breakpoint_condition): Likewise.
8117	(add_breakpoint_commands): Likewise.
8118	* server.c (process_point_options): Change parameter type to
8119	'struct gdb_breakpoint *'.
8120
81212016-07-21  Yao Qi  <yao.qi@linaro.org>
8122
8123	* mem-break.c (set_breakpoint_at): Rename it to ...
8124	(set_breakpoint_type_at): ... it.
8125	(set_breakpoint_at): Call set_breakpoint_type_at.
8126	(set_reinsert_breakpoint): Call set_breakpoint_type_at.
8127	* mem-break.h (set_breakpoint_at): Update comments.
8128
81292016-07-12  Chung-Lin Tang  <cltang@codesourcery.com>
8130
8131	* linux-nios2-low.c (nios2_fill_gregset): Add type cast
8132	to buf parameter.
8133	(nios2_store_gregset): Likewise.
8134
81352016-07-01  Pedro Alves  <palves@redhat.com>
8136	    Antoine Tremblay  <antoine.tremblay@ericsson.com>
8137
8138	* linux-low.c: Change interface to take the target lwp_info
8139	pointer directly and return void.  Handle detaching from a zombie
8140	thread.
8141	(linux_detach_lwp_callback): New function.
8142	(linux_detach): Detach from the leader thread after detaching from
8143	the clone threads.
8144
81452016-06-28  Yao Qi  <yao.qi@linaro.org>
8146
8147	* linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
8148	for variable new_offset.
8149	(aarch64_ftrace_insn_reloc_b_cond): Likewise.
8150	(aarch64_ftrace_insn_reloc_cb): Likewise.
8151	(aarch64_ftrace_insn_reloc_tb): Likewise.
8152	(aarch64_install_fast_tracepoint_jump_pad): Likewise.  Use
8153	PRIx64 instead of PRIx32.
8154
81552016-06-28  Yao Qi  <yao.qi@linaro.org>
8156
8157	* linux-arm-low.c (arm_get_syscall_trapinfo): New function.
8158	(the_low_target): Install arm_get_syscall_trapinfo.
8159
81602016-06-28  Yao Qi  <yao.qi@linaro.org>
8161
8162	* linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
8163	function.
8164	(the_low_target): Install aarch64_get_syscall_trapinfo.
8165
81662016-06-28  Yao Qi  <yao.qi@linaro.org>
8167
8168	* linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
8169	Callers updated.
8170	* linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
8171	Remove parameter sysno.
8172	* linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
8173	sysret.
8174
81752016-06-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8176
8177	* linux-s390-low.c (s390_emit_eq_goto): Mark function static.
8178	(s390_emit_ne_goto): Likewise.
8179	(s390_emit_lt_goto): Likewise.
8180	(s390_emit_le_goto): Likewise.
8181	(s390_emit_gt_goto): Likewise.
8182	(s390_emit_ge_goto): Likewise.
8183	(s390x_emit_eq_goto): Likewise.
8184	(s390x_emit_ne_goto): Likewise.
8185	(s390x_emit_lt_goto): Likewise.
8186	(s390x_emit_le_goto): Likewise.
8187	(s390x_emit_gt_goto): Likewise.
8188	(s390x_emit_ge_goto): Likewise.
8189	(s390_emit_ops_impl): Mark variable static.
8190	(s390x_emit_ops): Likewise.
8191
81922016-06-17  Yao Qi  <yao.qi@linaro.org>
8193
8194	* linux-low.c (handle_extended_wait): Call
8195	uninsert_reinsert_breakpoints for the parent process.  Remove
8196	reinsert breakpoints from the child process.  Reinsert them to
8197	the parent process when vfork is done.
8198	* mem-break.c (uninsert_reinsert_breakpoints): New function.
8199	(reinsert_reinsert_breakpoints): New function.
8200	* mem-break.h (uninsert_reinsert_breakpoints): Declare
8201	(reinsert_reinsert_breakpoints): Declare.
8202
82032016-06-17  Yao Qi  <yao.qi@linaro.org>
8204
8205	* linux-low.c (handle_extended_wait): If the parent is doing
8206	step-over, remove the reinsert breakpoints from the forked child.
8207
82082016-06-17  Yao Qi  <yao.qi@linaro.org>
8209
8210	* linux-low.c (unsuspend_all_lwps): Declare.
8211	(linux_low_filter_event): If thread exited, call finish_step_over.
8212	If step-over is finished, unsuspend other threads.
8213
82142016-06-17  Yao Qi  <yao.qi@linaro.org>
8215
8216	* linux-low.c (linux_resume_one_lwp_throw): Assert
8217	has_reinsert_breakpoints returns false.
8218	* mem-break.c (delete_disabled_breakpoints): Assert
8219	bp type isn't reinsert_breakpoint.
8220
82212016-06-17  Yao Qi  <yao.qi@linaro.org>
8222
8223	* linux-low.c (maybe_hw_step): New function.
8224	(linux_resume_one_lwp_throw): Call maybe_hw_step.
8225	(finish_step_over): Switch current_thread to lwp temporarily,
8226	and assert has_reinsert_breakpoints returns true.
8227	(proceed_one_lwp): Call maybe_hw_step.
8228	* mem-break.c (has_reinsert_breakpoints): New function.
8229	* mem-break.h (has_reinsert_breakpoints): Declare.
8230
82312016-06-02  Jon Turney  <jon.turney@dronecode.org.uk>
8232
8233	* win32-low.c (win32_create_inferior): Add pointer casts for C++.
8234
82352016-05-17  Yao Qi  <yao.qi@linaro.org>
8236
8237	* linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
8238	instead of find_inferior.
8239
82402016-05-05  Yao Qi  <yao.qi@linaro.org>
8241
8242	* linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
8243	Initialize res to zero.
8244
82452016-05-05  Yao Qi  <yao.qi@linaro.org>
8246
8247	* linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
8248	to uint32_t.
8249
82502016-05-04  Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8251
8252	* spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
8253	used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
8254	(fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
8255
82562016-04-28  Par Olsson  <par.olsson@windriver.com>
8257	    Simon Marchi  <simon.marchi@ericsson.com>
8258
8259	* tracepoint.c (write_inferior_int8): New function.
8260	(cmd_qtenable_disable): Write enable flag using
8261	write_inferior_int8.
8262
82632016-04-25  Yao Qi  <yao.qi@linaro.org>
8264
8265	* linux-low.c (lwp_signal_can_be_delivered): Adjust.
8266	(need_step_over_p): Return zero if the LWP has pending signals
8267	can be delivered on software single step target.
8268
82692016-04-25  Yao Qi  <yao.qi@linaro.org>
8270
8271	* linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
8272	return instead of error.
8273
82742016-04-22  Yao Qi  <yao.qi@linaro.org>
8275
8276	* linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
8277	to 23.
8278
82792016-04-22  Yao Qi  <yao.qi@linaro.org>
8280
8281	* linux-low.c (lwp_signal_can_be_delivered): Don't deliver
8282	signal when stepping over breakpoint with software single
8283	step.
8284
82852016-04-21  Pedro Alves  <palves@redhat.com>
8286
8287	* linux-s390-low.c (s390_collect_ptrace_register)
8288	(s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
8289	add casts.
8290	(s390_check_regset): Use void * instead of gdb_byte *.
8291
82922016-04-20  Pedro Alves  <palves@redhat.com>
8293
8294	* configure: Renegerate.
8295
82962016-04-20  Yao Qi  <yao.qi@linaro.org>
8297
8298	* linux-aarch32-low.c: Include "arch/arm-linux.h".
8299	(arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
8300	number 16.
8301	(arm_store_gregset): Likewise.
8302
83032016-04-16  Walfred Tedeschi  <walfred.tedeschi@intel.com>
8304
8305	* Makefile.in (clean): Add removal for i386-avx-mpx.c,
8306	i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
8307	(i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
8308	(amd64-avx-mpx-linux.c): New rules.
8309	(amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
8310	* configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
8311	(srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
8312	(srv_amd64_regobj): Add amd64-avx-mpx.o.
8313	(srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
8314	(srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
8315	(srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
8316	(srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
8317	(srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
8318	(ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
8319	(ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
8320	* linux-x86-low.c (x86_linux_read_description): Add case for
8321	X86_XSTATE_AVX_MPX_MASK.
8322	(x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
8323	(initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
8324	init_registers_i386_avx_mpx_linux.
8325	* linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8326	(initialize_low_tracepoint): Call
8327	init_registers_i386_avx_mpx_linux.
8328	* linux-amd64-ipa.c (get_ipa_tdesc):  Add case for avx_mpx.
8329	(initialize_low_tracepoint): Call
8330	init_registers_amd64_avx_mpx_linux.
8331	* linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
8332	(init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
8333	(init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
8334	declarations.
8335
83362016-04-18  Pedro Alves  <palves@redhat.com>
8337
8338	* configure: Regenerate.
8339
83402016-04-13  Antoine Tremblay  <antoine.tremblay@ericsson.com>
8341
8342	* linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
8343	(aarch64_emit_sub): Likewise.
8344
83452016-04-12  Pedro Alves  <palves@redhat.com>
8346
8347	* utils.c (prepare_to_throw_exception): Delete.
8348
83492016-04-05  Simon Marchi  <simon.marchi@ericsson.com>
8350
8351	* Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
8352
83532016-04-05  Marcin Kościelnicki  <koriakin@0x04.net>
8354
8355	* tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
8356
83572016-04-03  Marcin Kościelnicki  <koriakin@0x04.net>
8358
8359	* linux-aarch64-ipa.c: Add <elf.h> include.
8360	* linux-ppc-ipa.c: Add <elf.h> include.
8361	* linux-s390-ipa.c: Add <elf.h> include.
8362
83632016-03-31  Marcin Kościelnicki  <koriakin@0x04.net>
8364
8365	* tracepoint.c (gdb_collect_ptr): Remove const qualifier.
8366	(get_raw_reg_ptr): Likewise.
8367	(get_trace_state_variable_value_ptr): Likewise.
8368	(set_trace_state_variable_value_ptr): Likewise.
8369	(initialize_tracepoint): Cast alloc_jump_pad_buffer result to
8370	char *.
8371
83722016-03-31  Wei-cheng Wang  <cole945@gmail.com>
8373	    Marcin Kościelnicki  <koriakin@0x04.net>
8374
8375	PR/17221
8376	* linux-ppc-low.c (emit_insns): New function.
8377	(__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
8378	(ppc_emit_prologue): New function.
8379	(ppc_emit_epilogue): New function.
8380	(ppc_emit_add): New function.
8381	(ppc_emit_sub): New function.
8382	(ppc_emit_mul): New function.
8383	(ppc_emit_lsh): New function.
8384	(ppc_emit_rsh_signed): New function.
8385	(ppc_emit_rsh_unsigned): New function.
8386	(ppc_emit_ext): New function.
8387	(ppc_emit_zero_ext): New function.
8388	(ppc_emit_log_not): New function.
8389	(ppc_emit_bit_and): New function.
8390	(ppc_emit_bit_or): New function.
8391	(ppc_emit_bit_xor): New function.
8392	(ppc_emit_bit_not): New function.
8393	(ppc_emit_equal): New function.
8394	(ppc_emit_less_signed): New function.
8395	(ppc_emit_less_unsigned): New function.
8396	(ppc_emit_ref): New function.
8397	(ppc_emit_const): New function.
8398	(ppc_emit_reg): New function.
8399	(ppc_emit_pop): New function.
8400	(ppc_emit_stack_flush): New function.
8401	(ppc_emit_swap): New function.
8402	(ppc_emit_stack_adjust): New function.
8403	(ppc_emit_call): New function.
8404	(ppc_emit_int_call_1): New function.
8405	(ppc_emit_void_call_2): New function.
8406	(ppc_emit_if_goto): New function.
8407	(ppc_emit_goto): New function.
8408	(ppc_emit_eq_goto): New function.
8409	(ppc_emit_ne_goto): New function.
8410	(ppc_emit_lt_goto): New function.
8411	(ppc_emit_le_goto): New function.
8412	(ppc_emit_gt_goto): New function.
8413	(ppc_emit_ge_goto): New function.
8414	(ppc_write_goto_address): New function.
8415	(ppc_emit_ops_impl): New static variable.
8416	(ppc64v1_emit_prologue): New function.
8417	(ppc64v2_emit_prologue): New function.
8418	(ppc64_emit_epilogue): New function.
8419	(ppc64_emit_add): New function.
8420	(ppc64_emit_sub): New function.
8421	(ppc64_emit_mul): New function.
8422	(ppc64_emit_lsh): New function.
8423	(ppc64_emit_rsh_signed): New function.
8424	(ppc64_emit_rsh_unsigned): New function.
8425	(ppc64_emit_ext): New function.
8426	(ppc64_emit_zero_ext): New function.
8427	(ppc64_emit_log_not): New function.
8428	(ppc64_emit_bit_and): New function.
8429	(ppc64_emit_bit_or): New function.
8430	(ppc64_emit_bit_xor): New function.
8431	(ppc64_emit_bit_not): New function.
8432	(ppc64_emit_equal): New function.
8433	(ppc64_emit_less_signed): New function.
8434	(ppc64_emit_less_unsigned): New function.
8435	(ppc64_emit_ref): New function.
8436	(ppc64_emit_const): New function.
8437	(ppc64v1_emit_reg): New function.
8438	(ppc64v2_emit_reg): New function.
8439	(ppc64_emit_pop): New function.
8440	(ppc64_emit_stack_flush): New function.
8441	(ppc64_emit_swap): New function.
8442	(ppc64v1_emit_call): New function.
8443	(ppc64v2_emit_call): New function.
8444	(ppc64v1_emit_int_call_1): New function.
8445	(ppc64v2_emit_int_call_1): New function.
8446	(ppc64v1_emit_void_call_2): New function.
8447	(ppc64v2_emit_void_call_2): New function.
8448	(ppc64_emit_if_goto): New function.
8449	(ppc64_emit_eq_goto): New function.
8450	(ppc64_emit_ne_goto): New function.
8451	(ppc64_emit_lt_goto): New function.
8452	(ppc64_emit_le_goto): New function.
8453	(ppc64_emit_gt_goto): New function.
8454	(ppc64_emit_ge_goto): New function.
8455	(ppc64v1_emit_ops_impl): New static variable.
8456	(ppc64v2_emit_ops_impl): New static variable.
8457	(ppc_emit_ops): New function.
8458	(linux_low_target): Wire in ppc_emit_ops.
8459
84602016-03-31  Wei-cheng Wang  <cole945@gmail.com>
8461	    Marcin Kościelnicki  <koriakin@0x04.net>
8462
8463	PR/17221
8464	* Makefile.in: Add powerpc-*-ipa.o
8465	* configure.srv: Add ipa_obj for powerpc*-linux.
8466	* linux-ppc-ipa.c: New file.
8467	* linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
8468	includes.
8469	(PPC_FIELD): New macro.
8470	(PPC_SEXT): New macro.
8471	(PPC_OP6): New macro.
8472	(PPC_BO): New macro.
8473	(PPC_LI): New macro.
8474	(PPC_BD): New macro.
8475	(init_registers_*): Move prototype to linux-ppc-tdesc.h.
8476	(tdesc_*): Move declaration to linux-ppc-tdesc.h.
8477	(ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
8478	(ppc_get_thread_area): New function.
8479	(is_elfv2_inferior): New function.
8480	(gen_ds_form): New function.
8481	(GEN_STD): New macro.
8482	(GEN_STDU): New macro.
8483	(GEN_LD): New macro.
8484	(GEN_LDU): New macro.
8485	(gen_d_form): New function.
8486	(GEN_ADDI): New macro.
8487	(GEN_ADDIS): New macro.
8488	(GEN_LI): New macro.
8489	(GEN_LIS): New macro.
8490	(GEN_ORI): New macro.
8491	(GEN_ORIS): New macro.
8492	(GEN_LWZ): New macro.
8493	(GEN_STW): New macro.
8494	(GEN_STWU): New macro.
8495	(gen_xfx_form): New function.
8496	(GEN_MFSPR): New macro.
8497	(GEN_MTSPR): New macro.
8498	(GEN_MFCR): New macro.
8499	(GEN_MTCR): New macro.
8500	(GEN_SYNC): New macro.
8501	(GEN_LWSYNC): New macro.
8502	(gen_x_form): New function.
8503	(GEN_OR): New macro.
8504	(GEN_MR): New macro.
8505	(GEN_LWARX): New macro.
8506	(GEN_STWCX): New macro.
8507	(GEN_CMPW): New macro.
8508	(gen_md_form): New function.
8509	(GEN_RLDICL): New macro.
8510	(GEN_RLDICR): New macro.
8511	(gen_i_form): New function.
8512	(GEN_B): New macro.
8513	(GEN_BL): New macro.
8514	(gen_b_form): New function.
8515	(GEN_BNE): New macro.
8516	(GEN_LOAD): New macro.
8517	(GEN_STORE): New macro.
8518	(gen_limm): New function.
8519	(gen_atomic_xchg): New function.
8520	(gen_call): New function.
8521	(ppc_relocate_instruction): New function.
8522	(ppc_install_fast_tracepoint_jump_pad): New function.
8523	(ppc_get_min_fast_tracepoint_insn_len): New function.
8524	(ppc_get_ipa_tdesc_idx): New function.
8525	(the_low_target): Wire in the new functions.
8526	(initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
8527	tdescs.
8528	* linux-ppc-tdesc.h: New file.
8529
85302016-03-31  Marcin Kościelnicki  <koriakin@0x04.net>
8531
8532	* linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8533	(alloc_jump_pad_buffer): New function.
8534	* linux-amd64-ipa.c: Add <sys/mman.h> include.
8535	(alloc_jump_pad_buffer): New function.
8536	* linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
8537	* linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8538	(alloc_jump_pad_buffer): New function.
8539	* tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
8540	(initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
8541	* tracepoint.h (alloc_jump_pad_buffer): New prototype.
8542	(getauxval) [!HAVE_GETAUXVAL]: New prototype.
8543
85442016-03-30  Marcin Kościelnicki  <koriakin@0x04.net>
8545
8546	* linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
8547	* linux-amd64-ipa.c: Likewise.
8548	* linux-i386-ipa.c: Likewise.
8549	* linux-s390-ipa.c: Likewise.
8550	* tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
8551	ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
8552	set_trace_state_variable_value_ptr.
8553	(struct ipa_sym_addresses): Likewise.
8554	(symbol_list): Likewise.
8555	(install_fast_tracepoint): Dereference gdb_collect_ptr instead of
8556	accessing gdb_collect directly.
8557	(gdb_collect_ptr_type): New typedef.
8558	(get_raw_reg_ptr_type): New typedef.
8559	(get_trace_state_variable_value_ptr_type): New typedef.
8560	(set_trace_state_variable_value_ptr_type): New typedef.
8561	(gdb_collect_ptr): New global.
8562	(get_raw_reg_ptr): New global.
8563	(get_trace_state_variable_value_ptr): New global.
8564	(set_trace_state_variable_value_ptr): New global.
8565	(get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
8566	accessing get_raw_reg directly.
8567	(get_get_tsv_func_addr): Likewise for
8568	get_trace_state_variable_value_ptr.
8569	(get_set_tsv_func_addr): Likewise for
8570	set_trace_state_variable_value_ptr.
8571	* tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
8572
85732016-03-30  Simon Marchi  <simon.marchi@ericsson.com>
8574
8575	* tracepoint.c (cmd_qtenable_disable): Remove whitespace.
8576
85772016-03-30  Marcin Kościelnicki  <koriakin@0x04.net>
8578
8579	* remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
8580	packets.
8581	(relocate_instruction): Remove own_buf.
8582	* server.c (own_buf): Make global.
8583	(handle_v_requests): Make global.
8584	* server.h (own_buf): New declaration.
8585	(handle_v_requests): New prototype.
8586
85872016-03-29  Marcin Kościelnicki  <koriakin@0x04.net>
8588
8589	PR 18377
8590	* linux-s390-low.c (add_insns): New function.
8591	(s390_emit_prologue): New function.
8592	(s390_emit_epilogue): New function.
8593	(s390_emit_add): New function.
8594	(s390_emit_sub): New function.
8595	(s390_emit_mul): New function.
8596	(s390_emit_lsh): New function.
8597	(s390_emit_rsh_signed): New function.
8598	(s390_emit_rsh_unsigned): New function.
8599	(s390_emit_ext): New function.
8600	(s390_emit_log_not): New function.
8601	(s390_emit_bit_and): New function.
8602	(s390_emit_bit_or): New function.
8603	(s390_emit_bit_xor): New function.
8604	(s390_emit_bit_not): New function.
8605	(s390_emit_equal): New function.
8606	(s390_emit_less_signed): New function.
8607	(s390_emit_less_unsigned): New function.
8608	(s390_emit_ref): New function.
8609	(s390_emit_if_goto): New function.
8610	(s390_emit_goto): New function.
8611	(s390_write_goto_address): New function.
8612	(s390_emit_litpool): New function.
8613	(s390_emit_const): New function.
8614	(s390_emit_call): New function.
8615	(s390_emit_reg): New function.
8616	(s390_emit_pop): New function.
8617	(s390_emit_stack_flush): New function.
8618	(s390_emit_zero_ext): New function.
8619	(s390_emit_swap): New function.
8620	(s390_emit_stack_adjust): New function.
8621	(s390_emit_set_r2): New function.
8622	(s390_emit_int_call_1): New function.
8623	(s390_emit_void_call_2): New function.
8624	(s390_emit_eq_goto): New function.
8625	(s390_emit_ne_goto): New function.
8626	(s390_emit_lt_goto): New function.
8627	(s390_emit_le_goto): New function.
8628	(s390_emit_gt_goto): New function.
8629	(s390_emit_ge_goto): New function.
8630	(s390x_emit_prologue): New function.
8631	(s390x_emit_epilogue): New function.
8632	(s390x_emit_add): New function.
8633	(s390x_emit_sub): New function.
8634	(s390x_emit_mul): New function.
8635	(s390x_emit_lsh): New function.
8636	(s390x_emit_rsh_signed): New function.
8637	(s390x_emit_rsh_unsigned): New function.
8638	(s390x_emit_ext): New function.
8639	(s390x_emit_log_not): New function.
8640	(s390x_emit_bit_and): New function.
8641	(s390x_emit_bit_or): New function.
8642	(s390x_emit_bit_xor): New function.
8643	(s390x_emit_bit_not): New function.
8644	(s390x_emit_equal): New function.
8645	(s390x_emit_less_signed): New function.
8646	(s390x_emit_less_unsigned): New function.
8647	(s390x_emit_ref): New function.
8648	(s390x_emit_if_goto): New function.
8649	(s390x_emit_const): New function.
8650	(s390x_emit_call): New function.
8651	(s390x_emit_reg): New function.
8652	(s390x_emit_pop): New function.
8653	(s390x_emit_stack_flush): New function.
8654	(s390x_emit_zero_ext): New function.
8655	(s390x_emit_swap): New function.
8656	(s390x_emit_stack_adjust): New function.
8657	(s390x_emit_int_call_1): New function.
8658	(s390x_emit_void_call_2): New function.
8659	(s390x_emit_eq_goto): New function.
8660	(s390x_emit_ne_goto): New function.
8661	(s390x_emit_lt_goto): New function.
8662	(s390x_emit_le_goto): New function.
8663	(s390x_emit_gt_goto): New function.
8664	(s390x_emit_ge_goto): New function.
8665	(s390_emit_ops): New function.
8666	(struct linux_target_ops): Fill in emit_ops hook.
8667
86682016-03-29  Marcin Kościelnicki  <koriakin@0x04.net>
8669
8670	PR 18377
8671	* Makefile.in: Add s390 IPA files.
8672	* configure.srv: Build IPA for s390.
8673	* linux-s390-ipa.c: New file.
8674	* linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
8675	(init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
8676	(tdesc_s390_linux32): Likewise.
8677	(init_registers_s390_linux32v1): Likewise.
8678	(tdesc_s390_linux32v1): Likewise.
8679	(init_registers_s390_linux32v2): Likewise.
8680	(tdesc_s390_linux32v2): Likewise.
8681	(init_registers_s390_linux64): Likewise.
8682	(tdesc_s390_linux64): Likewise.
8683	(init_registers_s390_linux64v1): Likewise.
8684	(tdesc_s390_linux64v1): Likewise.
8685	(init_registers_s390_linux64v2): Likewise.
8686	(tdesc_s390_linux64v2): Likewise.
8687	(init_registers_s390_te_linux64): Likewise.
8688	(tdesc_s390_te_linux64): Likewise.
8689	(init_registers_s390_vx_linux64): Likewise.
8690	(tdesc_s390_vx_linux64): Likewise.
8691	(init_registers_s390_tevx_linux64): Likewise.
8692	(tdesc_s390_tevx_linux64): Likewise.
8693	(init_registers_s390x_linux64): Likewise.
8694	(tdesc_s390x_linux64): Likewise.
8695	(init_registers_s390x_linux64v1): Likewise.
8696	(tdesc_s390x_linux64v1): Likewise.
8697	(init_registers_s390x_linux64v2): Likewise.
8698	(tdesc_s390x_linux64v2): Likewise.
8699	(init_registers_s390x_te_linux64): Likewise.
8700	(tdesc_s390x_te_linux64): Likewise.
8701	(init_registers_s390x_vx_linux64): Likewise.
8702	(tdesc_s390x_vx_linux64): Likewise.
8703	(init_registers_s390x_tevx_linux64): Likewise.
8704	(tdesc_s390x_tevx_linux64): Likewise.
8705	(have_hwcap_s390_vx): New static variable.
8706	(s390_arch_setup): Fill have_hwcap_s390_vx.
8707	(s390_get_thread_area): New function.
8708	(s390_ft_entry_gpr_esa): New const.
8709	(s390_ft_entry_gpr_zarch): New const.
8710	(s390_ft_entry_misc): New const.
8711	(s390_ft_entry_fr): New const.
8712	(s390_ft_entry_vr): New const.
8713	(s390_ft_main_31): New const.
8714	(s390_ft_main_64): New const.
8715	(s390_ft_exit_fr): New const.
8716	(s390_ft_exit_vr): New const.
8717	(s390_ft_exit_misc): New const.
8718	(s390_ft_exit_gpr_esa): New const.
8719	(s390_ft_exit_gpr_zarch): New const.
8720	(append_insns): New function.
8721	(s390_relocate_instruction): New function.
8722	(s390_install_fast_tracepoint_jump_pad): New function.
8723	(s390_get_min_fast_tracepoint_insn_len): New function.
8724	(s390_get_ipa_tdesc_idx): New function.
8725	(struct linux_target_ops): Wire in the above functions.
8726	(initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
8727	* linux-s390-tdesc.h: New file.
8728
87292016-03-29  Marcin Kościelnicki  <koriakin@0x04.net>
8730
8731	* linux-s390-low.c (s390_supports_tracepoints): New function.
8732	(struct linux_target_ops): Fill supports_tracepoints hook.
8733
87342016-03-18  Yao Qi  <yao.qi@linaro.org>
8735
8736	* linux-low.c (lwp_signal_can_be_delivered): New function.
8737	(linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
8738
87392016-03-18  Yao Qi  <yao.qi@linaro.org>
8740
8741	* linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
8742	0 if signal is enqueued.  Remove 'signal' from one debugging
8743	message.  Move one debugging message to some lines below.
8744	Remove code setting 'signal' to 0.
8745
87462016-03-18  Yao Qi  <yao.qi@linaro.org>
8747
8748	* linux-low.c (linux_low_filter_event): Remove redundant
8749	WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
8750
87512016-03-09  Marcin Kościelnicki  <koriakin@0x04.net>
8752
8753	* linux-ppc-low.c (ppc_supports_tracepoints): New function.
8754	(struct linux_target_ops): Wire in the above.
8755
87562016-03-03  Yao Qi  <yao.qi@linaro.org>
8757
8758	* linux-low.c: Update comments to start_step_over.
8759
87602016-03-03  Yao Qi  <yao.qi@linaro.org>
8761
8762	PR server/19736
8763	* linux-low.c (handle_extended_wait): Set child suspended
8764	if event_lwp->bp_reinsert isn't zero.
8765
87662016-03-02  Yao Qi  <yao.qi@linaro.org>
8767
8768	* linux-low.c (linux_resume_one_lwp_throw): Replace code with
8769	enqueue_pending_signal.
8770
87712016-03-02  Marcin Kościelnicki  <koriakin@0x04.net>
8772
8773	* tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
8774	is actually loaded.
8775
87762016-02-25  Marcin Kościelnicki  <koriakin@0x04.net>
8777
8778	* linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
8779	(s390_regmap_3264) [!__s390x__]: New global.
8780	(s390_collect_ptrace_register): Skip map entries containing -1.
8781	(s390_supply_ptrace_register): Ditto.
8782	(s390_fill_gprs_high): New function.
8783	(s390_store_gprs_high): New function.
8784	(s390_regsets): Add NT_S390_HIGH_GPRS.
8785	(s390_get_hwcap): Enable on 31-bit.
8786	(have_hwcap_s390_high_gprs): Enable on 31-bit.
8787	(s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
8788	Detect NT_S390_HIGH_GPRS.
8789	(s390_usrregs_info_3264): Enable on 31-bit.
8790	(s390_regs_info): Enable regs_info_3264 on 31-bit.
8791	(initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
8792
87932016-02-25  Marcin Kościelnicki  <koriakin@0x04.net>
8794
8795	PR gdb/13808
8796	* Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
8797	* configure.srv: Ditto.
8798	* linux-aarch64-ipa.c (get_ipa_tdesc): New function.
8799	(initialize_low_tracepoint): Remove ipa_tdesc assignment.
8800	* linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
8801	(init_registers_amd64_linux): Remove prototype.
8802	(tdesc_amd64_linux): Remove declaration.
8803	(get_ipa_tdesc): New function.
8804	(initialize_low_tracepoint): Remove ipa_tdesc assignment,
8805	initialize remaining tdescs.
8806	* linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
8807	(init_registers_i386_linux): Remove prototype.
8808	(tdesc_i386_linux): Remove declaration.
8809	(get_ipa_tdesc): New function.
8810	(initialize_low_tracepoint): Remove ipa_tdesc assignment,
8811	initialize remaining tdescs.
8812	* linux-low.c (linux_get_ipa_tdesc_idx): New function.
8813	(linux_target_ops): wire in linux_get_ipa_tdesc_idx.
8814	* linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
8815	* linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
8816	(x86_get_ipa_tdesc_idx): New function.
8817	(the_low_target): Wire in x86_get_ipa_tdesc_idx.
8818	* linux-x86-tdesc.h: New file.
8819	* target.h (struct target_ops): Add get_ipa_tdesc_idx.
8820	(target_get_ipa_tdesc_idx): New macro.
8821	* tracepoint.c (ipa_tdesc_idx): New macro.
8822	(struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
8823	(symbol_list): Add ipa_tdesc_idx.
8824	(cmd_qtstart): Write ipa_tdesc_idx in the target.
8825	(ipa_tdesc): Remove.
8826	(ipa_tdesc_idx): New variable.
8827	(get_context_regcache): Use get_ipa_tdesc.
8828	(gdb_collect): Ditto.
8829	(gdb_probe): Ditto.
8830	* tracepoint.h (get_ipa_tdesc): New prototype.
8831	(ipa_tdesc): Remove.
8832
88332016-02-24  Pedro Alves  <palves@redhat.com>
8834
8835	* linux-low.c (check_stopped_by_breakpoint): Rename to ...
8836	(save_stop_reason): ... this.  Use GDB_ARCH_IS_TRAP_HWBKPT and
8837	handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
8838	Factor out common code between the USE_SIGTRAP_SIGINFO and
8839	!USE_SIGTRAP_SIGINFO blocks.
8840	(linux_low_filter_event): Call save_stop_reason instead of
8841	check_stopped_by_breakpoint and check_stopped_by_watchpoint.
8842	Update comments.
8843	(linux_wait_1): Update comments.
8844
88452016-02-24  Wei-cheng Wang  <cole945@gmail.com>
8846
8847	* linux-ppc-low.c (ppc_supports_z_point_type): New function:
8848	(ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
8849	(ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
8850	ppc_insert_point, ppc_remove_point.
8851
88522016-02-17  Marcin Kościelnicki  <koriakin@0x04.net>
8853
8854	* linux-s390-low.c (s390_supports_z_point_type): New function.
8855	(struct linux_target_ops): Wire s390_supports_z_point_type in.
8856
88572016-02-16  Yao Qi  <yao.qi@linaro.org>
8858
8859	* linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
8860	PC.  Get pc from regcache_read_pc.
8861
88622016-02-12  Yao Qi  <yao.qi@linaro.org>
8863
8864	* linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
8865	or linux_get_pc_32bit.
8866	(aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
8867
88682016-02-12  Yao Qi  <yao.qi@linaro.org>
8869
8870	* linux-arm-low.c (get_next_pcs_ops): Initialize it with
8871	arm_linux_get_next_pcs_fixup.
8872
88732016-02-12  Marcin Kościelnicki  <koriakin@0x04.net>
8874
8875	* tracepoint.c (x_tracepoint_action_download): Change
8876	write_inferior_data_ptr to write_inferior_data_pointer.
8877	(cmd_qtstart): Likewise.
8878	(write_inferior_data_ptr): Remove.
8879	(download_agent_expr): Change write_inferior_data_ptr to
8880	write_inferior_data_pointer.
8881	(download_tracepoint_1): Likewise.
8882	(download_tracepoint): Likewise.
8883	(download_trace_state_variables): Likewise.
8884
88852016-02-11  Wei-cheng Wang  <cole945@gmail.com>
8886	    Marcin Kościelnicki  <koriakin@0x04.net>
8887
8888	* tracepoint.c (struct tracepoint_action_ops): Remove.
8889	(struct tracepoint_action): Remove ops.
8890	(m_tracepoint_action_download, r_tracepoint_action_download)
8891	(x_tracepoint_action_download, l_tracepoint_action_download): Adjust
8892	size and offset accordingly.
8893	(m_tracepoint_action_ops, r_tracepoint_action_ops)
8894	(x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
8895	(tracepoint_action_send, tracepoint_action_download): New functions.
8896	Helpers for trace action handlers.
8897	(add_tracepoint_action): Remove setup actions ops.
8898	(download_tracepoint_1, tracepoint_send_agent): Call helper functions.
8899
89002016-02-10  Yao Qi  <yao.qi@linaro.org>
8901
8902	* regcache.c (regcache_raw_read_unsigned): Clear *VAL.
8903
89042016-02-09  Simon Marchi  <simon.marchi@ericsson.com>
8905
8906	* configure.ac: Use AC_CONFIG_FILES instead of passing arguments
8907	to AC_OUTPUT.
8908	* configure: Regenerate.
8909
89102016-02-09  Simon Marchi  <simon.marchi@ericsson.com>
8911
8912	* linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
8913	void * to gdb_byte *.
8914	* linux-low.c (siginfo_fixup): Likewise.
8915	(linux_xfer_siginfo): Likewise.
8916	* linux-low.h (struct linux_target_ops) <siginfo_fixup>:
8917	Likewise.
8918	* linux-x86-low.c (x86_siginfo_fixup): Likewise.
8919
89202016-02-02  Walfred Tedeschi  <walfred.tedeschi@intel.com>
8921
8922	* configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
8923	to srv_tgtobj.
8924	(i[34567]86-*-linux*): Add amd64-linux-siginfo.o
8925	to srv_tgtobj.
8926	* linux-x86-low.c [__x86_64__]: Include
8927	"nat/amd64-linux-siginfo.h".
8928	(compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
8929	(compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
8930	(compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
8931	(cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
8932	(cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
8933	(cpt_si_fd, si_timerid, si_overrun): Move from
8934	nat/amd64-linux-siginfo.c.
8935	* Makefile.in (amd64-linux-siginfo.o:): New rule.
8936
89372016-01-28  Simon Marchi  <simon.marchi@ericsson.com>
8938
8939	* server.c (skip_to_semicolon):  Remove.
8940	(process_point_options): Use strchrnul instead of
8941	skip_to_semicolon.
8942
89432016-01-26  Yao Qi  <yao.qi@linaro.org>
8944
8945	* linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
8946	* linux-low.c (install_software_single_step_breakpoints): Don't
8947	call regcache_read_pc.
8948	* linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
8949	argument pc.
8950
89512016-01-26  Yao Qi  <yao.qi@linaro.org>
8952
8953	* linux-low.c (install_software_single_step_breakpoints): Call
8954	regcache_read_pc instead of get_pc.
8955
89562016-01-26  Yao Qi  <yao.qi@linaro.org>
8957
8958	* remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
8959	(unblock_async_io): Rename to ...
8960	(block_unblock_async_io): ... it.  New function.
8961	(enable_async_io): Don't install SIGIO handler.  Unblock it
8962	instead.
8963	(disable_async_io): Don't ignore SIGIO.  Block it instead.
8964	(initialize_async_io): Install SIGIO handler.  Don't call
8965	unblock_async_io.
8966
89672016-01-26  Yao Qi  <yao.qi@linaro.org>
8968
8969	* remote-utils.c (getpkt): If the buffer isn't empty, and the
8970	first character is '\003', call *the_target->request_interrupt.
8971
89722016-01-25  Yao Qi  <yao.qi@linaro.org>
8973
8974	* remote-utils.c (new_thread_notify): Remove.
8975	(dead_thread_notify): Likewise.
8976	* remote-utils.h (new_thread_notify): Remove declaration.
8977	(dead_thread_notify): Likewise.
8978
89792016-01-23  Marcin Kościelnicki  <koriakin@0x04.net>
8980
8981	* gdb.trace/pending.exp: Fix expected message on continue.
8982
89832016-01-22  Marcin Kościelnicki  <koriakin@0x04.net>
8984
8985	* tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
8986	it works properly on big-endian machines where sizeof (CORE_ADDR)
8987	!= sizeof (void *).
8988
89892016-01-21  Pedro Alves  <palves@redhat.com>
8990
8991	* Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
8992	(INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
8993	* configure: Regenerate.
8994
89952016-01-21  Yao Qi  <yao.qi@linaro.org>
8996
8997	* linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
8998	is_thumb and set it according to CPSR saved on the stack.
8999	(get_next_pcs_syscall_next_pc): Pass is_thumb to
9000	arm_sigreturn_next_pc.
9001
90022016-01-18  Yao Qi  <yao.qi@linaro.org>
9003
9004	* linux-low.c (linux_set_pc_64bit): New function.
9005	(linux_get_pc_64bit): New function.
9006	* linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
9007	Declare.
9008	* linux-sparc-low.c (debug_threads): Remove declaration.
9009	(sparc_get_pc): Remove.
9010	(the_low_target): Use linux_get_pc_64bit instead of
9011	sparc_get_pc.
9012	* linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
9013	(the_low_target): Use linux_get_pc_64bit and
9014	linux_set_pc_64bit.
9015
90162016-01-18  Yao Qi  <yao.qi@linaro.org>
9017
9018	* linux-arm-low.c (debug_threads): Remove declaration.
9019	(arm_get_pc, arm_set_pc): Remove.
9020	(the_low_target): Use linux_get_pc_32bit and
9021	linux_set_pc_32bit.
9022	* linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
9023	(the_low_target): Use linux_get_pc_32bit and
9024	linux_set_pc_32bit.
9025	* linux-cris-low.c (debug_threads): Remove declaration.
9026	(cris_get_pc, cris_set_pc,): Remove.
9027	(the_low_target): Use linux_get_pc_32bit and
9028	linux_set_pc_32bit.
9029	* linux-crisv32-low.c (debug_threads): Remove declaration.
9030	(cris_get_pc, cris_set_pc): Remove.
9031	(the_low_target): Use linux_get_pc_32bit and
9032	linux_set_pc_32bit.
9033	* linux-low.c: Include inttypes.h.
9034	(linux_get_pc_32bit, linux_set_pc_32bit): New functions.
9035	* linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
9036	* linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
9037	(the_low_target): Use linux_get_pc_32bit and
9038	linux_set_pc_32bit.
9039	* linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
9040	(the_low_target): Use linux_get_pc_32bit and
9041	linux_set_pc_32bit.
9042	* linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
9043	(the_low_target): Use linux_get_pc_32bit and
9044	linux_set_pc_32bit.
9045	* linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
9046	(the_low_target): Use linux_get_pc_32bit and
9047	linux_set_pc_32bit.
9048	* linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
9049	(the_low_target): Use linux_get_pc_32bit and
9050	linux_set_pc_32bit.
9051
90522016-01-18  Gary Benson  <gbenson@redhat.com>
9053
9054	* configure.ac (AC_FUNC_FORK): New check.
9055	* config.in: Regenerate.
9056	* configure: Likewise.
9057
90582016-01-14  Yao Qi  <yao.qi@linaro.org>
9059
9060	* linux-aarch32-low.c (thumb2_breakpoint): Make it static.
9061	* linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
9062	* linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
9063	arm_get_next_pcs_ctor.
9064
90652016-01-12  Josh Stone  <jistone@redhat.com>
9066	    Philippe Waroquiers  <philippe.waroquiers@skynet.be>
9067
9068	* inferiors.h: Include "gdb_vecs.h".
9069	(struct process_info): Add syscalls_to_catch.
9070	* inferiors.c (remove_process): Free syscalls_to_catch.
9071	* remote-utils.c (prepare_resume_reply): Report syscall_entry and
9072	syscall_return stops.
9073	* server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
9074	* server.c (handle_general_set): Handle QCatchSyscalls.
9075	(handle_query): Report support for QCatchSyscalls.
9076	* target.h (struct target_ops): Add supports_catch_syscall.
9077	(target_supports_catch_syscall): New macro.
9078	* linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
9079	(struct lwp_info): Add syscall_state.
9080	* linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
9081	Maintain syscall_state and syscalls_to_catch across exec.
9082	(get_syscall_trapinfo): New function, proxy to the_low_target.
9083	(linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
9084	(linux_low_filter_event): Toggle syscall_state entry/return for
9085	syscall traps, and set it ignored for all others.
9086	(gdb_catching_syscalls_p): New function.
9087	(gdb_catch_this_syscall_p): New function.
9088	(linux_wait_1): Handle SYSCALL_SIGTRAP.
9089	(linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
9090	(linux_supports_catch_syscall): New function.
9091	(linux_target_ops): Install it.
9092	* linux-x86-low.c (x86_get_syscall_trapinfo): New function.
9093	(the_low_target): Install it.
9094
90952016-01-12  Mike Frysinger  <vapier@gentoo.org>
9096
9097	* acinclude.m4: Include new ../warning.m4 file.
9098	* configure: Regenerated.
9099	* configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
9100
91012016-01-12  Mike Frysinger  <vapier@gentoo.org>
9102
9103	* ax.c (is_goto_target): Mark static.
9104	* linux-low.c (register_addr): Likewise.
9105	(linux_fetch_registers, linux_store_registers): Likewise.
9106	* mem-break.c (any_persistent_commands): Fix old prototype.
9107	(add_commands_to_breakpoint): Mark static.
9108	* regcache.c (find_register_by_name): Delete unused func.
9109	* remote-utils.c (hex_or_minus_one): Mark static.
9110	* server.c (monitor_show_help): Mark static.
9111	(handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
9112	handle_v_requests): Likewise.
9113
91142016-01-12  Pedro Alves  <palves@redhat.com>
9115
9116	Remove use of the registered trademark symbol throughout.
9117
91182016-01-08  Yao Qi  <yao.qi@linaro.org>
9119
9120	* remote-utils.c (getpkt): If c is '\003', call target hook
9121	request_interrupt.
9122
91232016-01-06  Yao Qi  <yao.qi@linaro.org>
9124
9125	* linux-aarch32-low.h (arm_abi_breakpoint): Move to
9126	linux-aarch32-low.c.
9127	(arm_eabi_breakpoint, arm_breakpoint): Likewise.
9128	(arm_breakpoint_len, thumb_breakpoint_len): Likewise.
9129	(thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9130	(thumb2_breakpoint): Declare.
9131	* linux-aarch32-low.c (arm_abi_breakpoint): Moved from
9132	linux-aarch32-low.h.
9133	(arm_eabi_breakpoint, arm_breakpoint): Likewise.
9134	(arm_breakpoint_len, thumb_breakpoint_len): Likewise.
9135	(thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9136
91372016-01-01  Joel Brobecker  <brobecker@adacore.com>
9138
9139	* gdbreplay.c (gdbreplay_version): Change copyright year in
9140	version message.
9141	* server.c (gdbserver_version): Likewise.
9142
91432015-12-28  Patrick Palka  <patrick@parcs.ath.cx>
9144
9145	* server.c (crc32_table): Delete.
9146	(crc32): Use libiberty's xcrc32 function.
9147
91482015-12-22  Joel Brobecker  <brobecker@adacore.com>
9149
9150	* lynx-low.c (lynx_delete_thread_callback): New function.
9151	(lynx_mourn): Properly delete our process and all of its
9152	threads.  Remove call to clear_inferiors.
9153
91542015-12-22  Joel Brobecker  <brobecker@adacore.com>
9155
9156	* target.c (thread_search_callback): Add check that
9157	the thread_stopped target callback is not NULL before
9158	calling it.
9159
91602015-12-21  Yao Qi  <yao.qi@linaro.org>
9161
9162	* linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
9163	arm breakpoint.
9164
91652015-12-18  Antoine Tremblay  <antoine.tremblay@ericsson.com>
9166
9167	* server.c (handle_query): Call target_supports_software_single_step.
9168
91692015-12-18  Antoine Tremblay  <antoine.tremblay@ericsson.com>
9170
9171	* linux-low.c (single_step): New function.
9172	(linux_resume_one_lwp_throw): Call single_step.
9173	(start_step_over): Likewise.
9174
91752015-12-18  Antoine Tremblay  <antoine.tremblay@ericsson.com>
9176
9177	* Makefile.in (SFILES): Append arch/arm-linux.c,
9178	arch/arm-get-next-pcs.c.
9179	(arm-linux.o): New rule.
9180	(arm-get-next-pcs.o): New rule.
9181	* configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
9182	arm-linux.o.
9183	* linux-aarch32-low.c (arm_abi_breakpoint): Remove macro.  Moved
9184	to linux-aarch32-low.c.
9185	(arm_eabi_breakpoint, arm_breakpoint): Likewise.
9186	(arm_breakpoint_len, thumb_breakpoint): Likewise.
9187	(thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9188	(thumb2_breakpoint_len): Likewise.
9189	(arm_is_thumb_mode): Make non-static.
9190	* linux-aarch32-low.h (arm_abi_breakpoint): New macro.  Moved
9191	from linux-aarch32-low.c.
9192	(arm_eabi_breakpoint, arm_breakpoint): Likewise.
9193	(arm_breakpoint_len, thumb_breakpoint): Likewise.
9194	(thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9195	(thumb2_breakpoint_len): Likewise.
9196	(arm_is_thumb_mode): New declaration.
9197	* linux-arm-low.c: Include arch/arm-linux.h
9198	aarch/arm-get-next-pcs.h, sys/syscall.h.
9199	(get_next_pcs_ops): New struct.
9200	(get_next_pcs_addr_bits_remove): New function.
9201	(get_next_pcs_is_thumb): New function.
9202	(get_next_pcs_read_memory_unsigned_integer): Likewise.
9203	(arm_sigreturn_next_pc): Likewise.
9204	(get_next_pcs_syscall_next_pc): Likewise.
9205	(arm_gdbserver_get_next_pcs): Likewise.
9206	(struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
9207	Initialize.
9208	* linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
9209	* server.h: Include gdb_vecs.h.
9210
92112015-12-18  Antoine Tremblay  <antoine.tremblay@ericsson.com>
9212
9213	* Makefile.in (SFILES): Append common/common-regcache.c.
9214	(OBS): Append common-regcache.o.
9215	(common-regcache.o): New rule.
9216	* regcache.c (init_register_cache): Initialize cache to
9217	REG_UNAVAILABLE.
9218	(regcache_raw_read_unsigned): New function.
9219	* regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
9220	register_status enum.
9221
92222015-12-18  Antoine Tremblay  <antoine.tremblay@ericsson.com>
9223
9224	* linux-aarch64-low.c (the_low_targets): Rename
9225	breakpoint_reinsert_addr to get_next_pcs.
9226	* linux-arm-low.c (the_low_targets): Likewise.
9227	* linux-bfin-low.c (the_low_targets): Likewise.
9228	* linux-cris-low.c (the_low_targets): Likewise.
9229	* linux-crisv32-low.c (the_low_targets): Likewise.
9230	* linux-low.c (can_software_single_step): Likewise.
9231	(install_software_single_step_breakpoints): New function.
9232	(start_step_over): Use install_software_single_step_breakpoints.
9233	* linux-low.h: New CORE_ADDR vector.
9234	(struct linux_target_ops) Rename breakpoint_reinsert_addr to
9235	get_next_pcs.
9236	* linux-mips-low.c (the_low_targets): Likewise.
9237	* linux-nios2-low.c (the_low_targets): Likewise.
9238	* linux-sparc-low.c (the_low_targets): Likewise.
9239
92402015-12-17  Pedro Alves  <palves@redhat.com>
9241
9242	* linux-low.c (linux_kill_one_lwp): Remove references to
9243	LinuxThreads.
9244	(kill_lwp): Remove HAVE_TKILL_SYSCALL check.  No longer fall back
9245	to 'kill'.
9246	(linux_init_signals): Delete.
9247	(initialize_low): Adjust.
9248	* thread-db.c (thread_db_init): Remove LinuxThreads reference.
9249
92502015-12-16  Pedro Alves  <palves@redhat.com>
9251
9252	* configure.ac (compiler warning flags): When testing a
9253	-Wno-foo option, check whether -Wfoo works instead.
9254	* configure: Regenerate.
9255
92562015-12-11  Don Breazeal  <donb@codesourcery.com>
9257
9258	* server.c (process_serial_event): Don't exit from gdbserver
9259	in remote mode if there are still active inferiors.
9260
92612015-12-11  Yao Qi  <yao.qi@linaro.org>
9262
9263	* linux-aarch64-low.c (aarch64_breakpoint_at): Call
9264	arm_breakpoint_at if the process is 32-bit.
9265
92662015-12-11  Yao Qi  <yao.qi@linaro.org>
9267
9268	* linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
9269	arm breakpoint.
9270
92712015-12-07  Yao Qi  <yao.qi@linaro.org>
9272
9273	* configure.srv: Append arm.o to srv_tgtobj for
9274	aarch64*-*-linux* target.
9275	* linux-aarch32-low.c (arm_abi_breakpoint): New macro.  Moved
9276	from linux-arm-low.c.
9277	(arm_eabi_breakpoint, arm_breakpoint): Likewise.
9278	(arm_breakpoint_len, thumb_breakpoint): Likewise.
9279	(thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9280	(thumb2_breakpoint_len): Likewise.
9281	(arm_is_thumb_mode, arm_breakpoint_at): Likewise.
9282	(arm_breakpoint_kinds): Likewise.
9283	(arm_breakpoint_kind_from_pc): Likewise.
9284	(arm_sw_breakpoint_from_kind): Likewise.
9285	(arm_breakpoint_kind_from_current_state): Likewise.
9286	* linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
9287	(arm_sw_breakpoint_from_kind): Declare.
9288	(arm_breakpoint_kind_from_current_state): Declare.
9289	(arm_breakpoint_at): Declare.
9290	* linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
9291	arm_sw_breakpoint_from_kind if process is 32-bit.
9292	(aarch64_breakpoint_kind_from_pc): New function.
9293	(aarch64_breakpoint_kind_from_current_state): New function.
9294	(the_low_target): Initialize fields breakpoint_kind_from_pc
9295	and breakpoint_kind_from_current_state.
9296	* linux-arm-low.c (arm_breakpoint_kinds): Move to
9297	linux-aarch32-low.c.
9298	(arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
9299	(arm_breakpoint, arm_breakpoint_len): Likewise.
9300	(thumb_breakpoint, thumb_breakpoint_len): Likewise.
9301	(thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9302	(arm_is_thumb_mode): Likewise.
9303	(arm_breakpoint_at): Likewise.
9304	(arm_breakpoint_kind_from_pc): Likewise.
9305	(arm_sw_breakpoint_from_kind): Likewise.
9306	(arm_breakpoint_kind_from_current_state): Likewise.
9307
9308	Revert:
9309	2015-08-04  Yao Qi  <yao.qi@linaro.org>
9310
9311	* linux-aarch64-low.c (aarch64_supports_z_point_type): Return
9312	0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
9313	* server.c (extended_protocol): Remove "static".
9314	* server.h (extended_protocol): Declare it.
9315
93162015-12-04  Josh Stone  <jistone@redhat.com>
9317
9318	* target.h (struct target_ops) <arch_setup>: Rename to ...
9319	(struct target_ops) <post_create_inferior>: ... this.
9320	(target_arch_setup): Rename to ...
9321	(target_post_create_inferior): ... this, calling post_create_inferior.
9322	* server.c (start_inferior): Update target_arch_setup calls to
9323	target_post_create_inferior.
9324	* linux-low.c (linux_low_ptrace_options): Forward declare.
9325	(linux_arch_setup): Update its comment for general use.
9326	(linux_post_create_inferior): New, run arch_setup and setup ptrace.
9327	(struct linux_target_ops): Use linux_post_create_inferior.
9328	* lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
9329	to post_create_inferior.
9330	* nto-low.c (struct nto_target_ops): Likewise.
9331	* spu-low.c (struct spu_target_ops): Likewise.
9332	* win32-low.c (struct win32_target_ops): Likewise.
9333
93342015-12-03  Antoine Tremblay  <antoine.tremblay@ericsson.com>
9335
9336	* linux-arm-low.c: Remove duplicate arch/arm.h include.
9337
93382015-11-30  Antoine Tremblay  <antoine.tremblay@ericsson.com>
9339
9340	* linux-arm-low.c (arm_reinsert_addr): Remove function.
9341	(struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
9342	* linux-cris-low.c (cris_reinsert_addr> Remove function.
9343	(struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9344	* linux-crisv32-low.c (cris_reinsert_addr): Remove function.
9345	(struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9346	* linux-mips-low.c (mips_reinsert_addr): Remove function.
9347	(struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9348	* linux-nios2-low.c (nios2_reinsert_addr): Remove function.
9349	(struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9350	* linux-sparc-low.c (sparc_reinsert_addr): Remove function.
9351	(struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9352
93532015-11-30  Antoine Tremblay  <antoine.tremblay@ericsson.com>
9354
9355	* linux-low.c (linux_look_up_symbols): Don't call
9356	linux_supports_traceclone.
9357	* linux-low.h (thread_db_init): Remove use_events argument.
9358	* thread-db.c (thread_db_use_event): Remove global variable.
9359	(struct thread_db) <td_thr_event_enable_p>: Remove field.
9360	(struct thread_db) <td_create_bp>: Remove field.
9361	(thread_db_create_event): Remove function.
9362	(thread_db_enable_reporting): Likewise.
9363	(find_one_thread): Don't check for thread_db_use_events.
9364	(attach_thread): Likewise.
9365	(thread_db_load_search): Remove td_thr_event_enable_p initialization.
9366	(try_thread_db_load_1): Don't check for thread_db_use_events.
9367	(thread_db_init): Remove use_events argument and thread events
9368	handling.
9369	(remove_thread_event_breakpoints): Remove function.
9370	(thread_db_detach): Remove call to remove_thred_event_breakpoints.
9371
93722015-11-30  Antoine Tremblay  <antoine.tremblay@ericsson.com>
9373
9374	* linux-aarch64-low.c (aarch64_supports_hardware_single_step):
9375	New function.
9376	(struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9377	* linux-arm-low.c (arm_supports_hardware_single_step): New function.
9378	(struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9379	* linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
9380	(struct linux_target_ops) <bfin_supports_hardware_single_step>:
9381	Initialize.
9382	* linux-crisv32-low.c (cris_supports_hardware_single_step):
9383	New function.
9384	(struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9385	* linux-low.c (can_hardware_single_step): Use
9386	supports_hardware_single_step.
9387	(can_software_single_step): New function.
9388	(start_step_over): Call can_software_single_step.
9389	(linux_supports_hardware_single_step): New function.
9390	(struct target_ops) <supports_software_single_step>: Initialize.
9391	* linux-low.h (struct linux_target_ops)
9392	<supports_hardware_single_step>: Initialize.
9393	* linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
9394	(struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9395	* linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
9396	(struct linux_target_ops) <supports_hardware_single_step> Initialize.
9397	* linux-s390-low.c (s390_supports_hardware_single_step): New function.
9398	(struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9399	* linux-sh-low.c (sh_supports_hardware_single_step): New function.
9400	(struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9401	* linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
9402	(struct linux_target_ops) <tic6x_supports_hardware_single_step>:
9403	Initialize.
9404	* linux-tile-low.c (tile_supports_hardware_single_step): New function.
9405	(struct linux_target_ops) <tile_supports_hardware_single_step>:
9406	Initialize.
9407	* linux-x86-low.c (x86_supports_hardware_single_step) New function.
9408	(struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9409	* linux-xtensa-low.c (xtensa_supports_hardware_single_step):
9410	New function.
9411	(struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9412	* target.h (struct target_ops): <supports_software_single_step>:
9413	New field.
9414	(target_supports_software_single_step): New macro.
9415
94162015-11-30  Antoine Tremblay  <antoine.tremblay@ericsson.com>
9417
9418	* linux-low.c (linux_wait_1): Fix pc advance condition.
9419	* mem-break.c (reinsert_breakpoint_inserted_here): New function.
9420	* mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
9421
94222015-11-30  Antoine Tremblay  <antoine.tremblay@ericsson.com>
9423
9424	* linux-arm-low.c (arm_is_thumb_mode): New function.
9425	(arm_breakpoint_at): Use arm_is_thumb_mode.
9426	(arm_breakpoint_kind_from_current_state): New function.
9427	(struct linux_target_ops) <breakpoint_kind_from_current_state>:
9428	Initialize.
9429	* linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
9430	(linux_breakpoint_kind_from_current_state): New function.
9431	(struct target_ops <breakpoint_kind_from_current_state>: Initialize.
9432	* linux-low.h (struct linux_target_ops)
9433	<breakpoint_kind_from_current_state>: New field.
9434	* target.h (struct target_ops): Likewise.
9435	(target_breakpoint_kind_from_current_state): New macro.
9436
94372015-11-30  Pedro Alves  <palves@redhat.com>
9438
9439	* linux-low.c (linux_resume): Wake up the event loop before
9440	returning.
9441
94422015-11-30  Pedro Alves  <palves@redhat.com>
9443
9444	* mem-break.c (check_gdb_bp_preconditions): Remove current_thread
9445	check.
9446	(set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
9447	to -1.
9448	* target.c (struct thread_search): New structure.
9449	(thread_search_callback): New function.
9450	(prev_general_thread): New global.
9451	(prepare_to_access_memory, done_accessing_memory): New functions.
9452	* target.h (prepare_to_access_memory, done_accessing_memory):
9453	Replace macros with function declarations.
9454
94552015-11-30  Pedro Alves  <palves@redhat.com>
9456
9457	PR 14618
9458	* linux-low.c (linux_wait_1): If the last resumed thread is gone,
9459	report TARGET_WAITKIND_NO_RESUMED.
9460	* remote-utils.c (prepare_resume_reply): Handle
9461	TARGET_WAITKIND_NO_RESUMED.
9462	* server.c (report_no_resumed): New global.
9463	(handle_query) <qSupported>: Handle "no-resumed+".  Report
9464	"no-resumed+" support.
9465	(resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
9466	return error if the client doesn't support no-resumed events.
9467	(push_stop_notification): New function.
9468	(handle_target_event): Use it.  Report TARGET_WAITKIND_NO_RESUMED
9469	events if the client supports them.
9470
94712015-11-30  Pedro Alves  <palves@redhat.com>
9472
9473	* linux-low.c (thread_still_has_status_pending_p): Don't check
9474	vCont;t here.
9475	(lwp_resumed): New function.
9476	(status_pending_p_callback): Return early if the LWP is not
9477	supposed to be resumed.
9478
94792015-11-30  Pedro Alves  <palves@redhat.com>
9480
9481	* linux-low.c (handle_extended_wait): Assert that the LWP's
9482	waitstatus is TARGET_WAITKIND_IGNORE.  If GDB wants to hear about
9483	thread create events, leave the new child's status pending.
9484	(linux_low_filter_event): If GDB wants to hear about thread exit
9485	events, leave the LWP marked dead and don't delete it.
9486	(linux_wait_for_event_filtered): Don't check for thread exit.
9487	(filter_exit_event): New function.
9488	(linux_wait_1): Use it, when returning an exit event.
9489	(linux_resume_one_lwp_throw): Assert that the LWP's
9490	waitstatus is TARGET_WAITKIND_IGNORE.
9491	* remote-utils.c (prepare_resume_reply): Handle
9492	TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
9493	* server.c (report_thread_events): New global.
9494	(handle_general_set): Handle QThreadEvents.
9495	(handle_query) <qSupported>: Handle and report QThreadEvents+;
9496	(handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
9497	TARGET_WAITKIND_THREAD_EXITED.
9498	* server.h (report_thread_events): Declare.
9499
95002015-11-30  Pedro Alves  <palves@redhat.com>
9501
9502	* linux-low.c (resume_stopped_resumed_lwps): Don't check whether
9503	the thread's last_resume_kind was resume_stop.
9504
95052015-11-30  Pedro Alves  <palves@redhat.com>
9506
9507	* linux-low.c (linux_attach): In non-stop mode, wait for one stop
9508	before returning.
9509
95102015-11-30  Pedro Alves  <palves@redhat.com>
9511
9512	* server.c (handle_v_requests): Handle vCtrlC.
9513
95142015-11-30  Pedro Alves  <palves@redhat.com>
9515
9516	* gdbthread.h (find_any_thread_of_pid): Declare.
9517	* inferiors.c (thread_of_pid, find_any_thread_of_pid): New
9518	functions.
9519	* server.c (handle_query): If current_thread is NULL, look for
9520	another thread of the selected process.
9521
95222015-11-26  Daniel Colascione  <dancol@dancol.org>
9523	    Simon Marchi  <simon.marchi@ericsson.com>
9524
9525	* linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
9526	* server.c (handle_qxfer_threads_worker): Refactor to include thread
9527	name in reply.
9528	* target.h (struct target_ops) <thread_name>: New field.
9529	(target_thread_name): New macro.
9530
95312015-11-23  Joel Brobecker  <brobecker@adacore.com>
9532
9533	* regcache.h (regcache_invalidate_pid): Add declaration.
9534	* regcache.c (regcache_invalidate_pid): New function, extracted
9535	from regcache_invalidate.
9536	(regcache_invalidate): Reimplement using regcache_invalidate_pid.
9537	Add trivial documentation comment.
9538	* lynx-low.c: Use regcache_invalidate_pid instead of
9539	regcache_invalidate.
9540
95412015-11-23  Joel Brobecker  <brobecker@adacore.com>
9542
9543	* configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
9544	and Elf64_auxv_t if the target is Android.
9545
95462015-11-22  Doug Evans  <xdje42@gmail.com>
9547
9548	* target.h: #include <sys/types.h>.
9549
95502015-11-19  Pedro Alves  <palves@redhat.com>
9551
9552	* linux-low.c (linux_process_qsupported): Change prototype.
9553	Adjust.
9554	* linux-low.h (struct linux_target_ops) <process_qsupported>:
9555	Change prototype.
9556	* linux-x86-low.c (x86_linux_process_qsupported): Change prototype
9557	and adjust to loop over all features.
9558	* server.c (handle_query) <qSupported>: Adjust to call
9559	target_process_qsupported once, passing it a vector of unprocessed
9560	features.
9561	* target.h (struct target_ops) <process_qsupported>: Change
9562	prototype.
9563	(target_process_qsupported): Adjust.
9564
95652015-11-19  Pedro Alves  <palves@redhat.com>
9566
9567	* configure.ac (ERROR_ON_WARNING): Don't check whether in C++
9568	mode.
9569	* configure: Regenerate.
9570
95712015-11-19  Pedro Alves  <palves@redhat.com>
9572
9573	* configure: Regenerate.
9574
95752015-11-19  Yao Qi  <yao.qi@linaro.org>
9576
9577	* linux-aarch64-low.c (emit_data_processing_reg): Change opcode
9578	type to uint32_t.
9579
95802015-11-19  Yao Qi  <yao.qi@linaro.org>
9581
9582	* linux-aarch64-low.c (enum aarch64_operand_type): New.
9583	(struct aarch64_operand): Move enum out.
9584
95852015-11-19  Yao Qi  <yao.qi@linaro.org>
9586
9587	* linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
9588	struct user_fpsimd_state *.
9589	(aarch64_store_fpregset): Likewise.
9590
95912015-11-19  Yao Qi  <yao.qi@linaro.org>
9592
9593	* linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
9594	struct user_pt_regs *.
9595	(aarch64_store_gregset): Likewise.
9596
95972015-11-18  Pedro Alves  <palves@redhat.com>
9598
9599	* Makefile.in (all_object_files): Add $IPA_OBJS.
9600
96012015-11-17  Pedro Alves  <palves@redhat.com>
9602
9603	* win32-low.c (win32_resume): Use gdb_signal_from_host,
9604	GDB_SIGNAL_0 and gdb_signal_to_string.
9605
96062015-11-17  Pedro Alves  <palves@redhat.com>
9607
9608	* win32-low.c (handle_output_debug_string): Remove parameter.
9609	(win32_kill): Remove our_status local and adjust call to
9610	handle_output_debug_string.
9611	(get_child_debug_event): Adjust call to
9612	handle_output_debug_string.
9613
96142015-11-03  Simon Marchi  <simon.marchi@polymtl.ca>
9615
9616	* linux-mips-low.c (mips_fill_gregset): Add cast.
9617	(mips_store_gregset): Likewise.
9618	(mips_fill_fpregset): Likewise.
9619	(mips_store_fpregset): Likewise.
9620
96212015-11-03  Simon Marchi  <simon.marchi@polymtl.ca>
9622
9623	* linux-mips-low.c (mips_add_watchpoint): Rename private to
9624	priv.
9625
96262015-11-03  Simon Marchi  <simon.marchi@polymtl.ca>
9627
9628	* linux-mips-low.c (mips_linux_new_thread): Change type of
9629	watch_type to enum target_hw_bp_type.
9630
96312015-11-03  Simon Marchi  <simon.marchi@polymtl.ca>
9632
9633		* linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
9634		Change return type to arm_hwbp_type.
9635
96362015-11-03  Simon Marchi  <simon.marchi@polymtl.ca>
9637
9638	* linux-aarch32-low.c (arm_fill_gregset): Add cast.
9639	(arm_store_gregset): Likewise.
9640	* linux-arm-low.c (arm_get_hwcap): Likewise.
9641	(arm_read_description): Likewise.
9642
96432015-11-03  Simon Marchi  <simon.marchi@polymtl.ca>
9644
9645	* linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
9646
96472015-11-03  Simon Marchi  <simon.marchi@polymtl.ca>
9648
9649	* linux-ppc-low.c (ppc_get_hwcap): Add cast.
9650	(ppc_fill_vsxregset): Likewise.
9651	(ppc_store_vsxregset): Likewise.
9652	(ppc_fill_vrregset): Likewise.
9653	(ppc_store_vrregset): Likewise.
9654	(ppc_fill_evrregset): Likewise.
9655	(ppc_store_evrregset): Likewise.
9656
96572015-11-03  Simon Marchi  <simon.marchi@polymtl.ca>
9658
9659	* linux-ppc-low.c (ppc_usrregs_info): Remove
9660	forward-declaration.
9661	(ppc_arch_setup): Move lower in file.
9662
96632015-10-30  Simon Marchi  <simon.marchi@ericsson.com>
9664
9665	* proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
9666	(ps_pdwrite): Likewise.
9667
96682015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
9669
9670	* linux-arm-low.c (arm_new_thread): Move pointer dereference
9671	to after assert checks.
9672
96732015-10-29  Simon Marchi  <simon.marchi@ericsson.com>
9674
9675	* proc-service.c (ps_pdread): Add/adjust casts.
9676	(ps_pdwrite): Add/adjust casts.
9677
96782015-10-29  Simon Marchi  <simon.marchi@polymtl.ca>
9679
9680	* server.c (handle_search_memory_1): Cast return value of
9681	memmem.
9682
96832015-10-29  Simon Marchi  <simon.marchi@polymtl.ca>
9684
9685	* server.c (write_qxfer_response): Change type of data to
9686	gdb_byte *.
9687
96882015-10-29  Pedro Alves  <palves@redhat.com>
9689
9690	* mem-break.c (Z_packet_to_bkpt_type): Add cast.
9691
96922015-10-29  Pedro Alves  <palves@redhat.com>
9693
9694	* tracepoint.c (clear_installed_tracepoints): Add casts.
9695
96962015-10-29  Pedro Alves  <palves@redhat.com>
9697
9698	* server.c (handle_v_cont, process_serial_event): Add enum
9699	gdb_signal casts to signal parsing code.
9700
97012015-10-29  Pedro Alves  <palves@redhat.com>
9702
9703	* linux-low.h (NULL_REGSET): Define.
9704	* linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9705	* linux-arm-low.c (arm_regsets): Likewise.
9706	* linux-crisv32-low.c (cris_regsets): Likewise.
9707	* linux-m68k-low.c (m68k_regsets): Likewise.
9708	* linux-mips-low.c (mips_regsets): Likewise.
9709	* linux-nios2-low.c (nios2_regsets): Likewise.
9710	* linux-ppc-low.c (ppc_regsets): Likewise.
9711	* linux-s390-low.c (s390_regsets): Likewise.
9712	* linux-sh-low.c (sh_regsets): Likewise.
9713	* linux-sparc-low.c (sparc_regsets): Likewise.
9714	* linux-tic6x-low.c (tic6x_regsets): Likewise.
9715	* linux-tile-low.c (tile_regsets): Likewise.
9716	* linux-x86-low.c (x86_regsets): Likewise.
9717	* linux-xtensa-low.c (xtensa_regsets): Likewise.
9718
97192015-10-29  Pedro Alves  <palves@redhat.com>
9720
9721	* linux-low.h (NULL_REGSET): Define.
9722	* linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9723	* linux-arm-low.c (arm_regsets): Likewise.
9724	* linux-crisv32-low.c (cris_regsets): Likewise.
9725	* linux-m68k-low.c (m68k_regsets): Likewise.
9726	* linux-mips-low.c (mips_regsets): Likewise.
9727	* linux-nios2-low.c (nios2_regsets): Likewise.
9728	* linux-ppc-low.c (ppc_regsets): Likewise.
9729	* linux-s390-low.c (s390_regsets): Likewise.
9730	* linux-sh-low.c (sh_regsets): Likewise.
9731	* linux-sparc-low.c (sparc_regsets): Likewise.
9732	* linux-tic6x-low.c (tic6x_regsets): Likewise.
9733	* linux-tile-low.c (tile_regsets): Likewise.
9734	* linux-x86-low.c (x86_regsets): Likewise.
9735	* linux-xtensa-low.c (xtensa_regsets): Likewise.
9736
97372015-10-26  Doug Evans  <dje@google.com>
9738
9739	* linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
9740
97412015-10-26  Doug Evans  <dje@google.com>
9742
9743	* linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
9744
97452015-10-26  Doug Evans  <dje@google.com>
9746
9747	* thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
9748	for debug_printf.
9749	(attach_thread, find_new_threads_callback): Ditto.
9750
97512015-10-23  Antoine Tremblay  <antoine.tremblay@ericsson.com>
9752
9753	* mem-break.h (set_breakpoint_data): Remove.
9754
97552015-10-23  Antoine Tremblay  <antoine.tremblay@ericsson.com>
9756
9757	* nto-low.c (nto_sw_breakpoint_from_kind): New function.
9758	(struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9759	(initialize_low): Remove set_breakpoint_data call.
9760	* spu-low.c (spu_sw_breakpoint_from_kind): New function.
9761	(struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
9762	(initialize_low): Remove set_breakpoint_data call.
9763	* win32-low.c (win32_sw_breakpoint_from_kind): New function.
9764	(struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9765	(initialize_low): Remove set_breakpoint_data call.
9766
97672015-10-23  Antoine Tremblay  <antoine.tremblay@ericsson.com>
9768
9769	* linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
9770	* mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
9771	* target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
9772	* target.h (target_breakpoint_kind_from_pc): New macro.
9773
97742015-10-22  Antoine Tremblay  <antoine.tremblay@ericsson.com>
9775
9776	* linux-low.c (default_breakpoint_kind_from_pc): New function.
9777	(linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
9778	the default breakpoint kind.
9779
97802015-10-21  Antoine Tremblay  <antoine.tremblay@ericsson.com>
9781
9782	* linux-arm-low.c (arm_supports_z_point_type): Add software
9783	breakpoint support.
9784
97852015-10-21  Antoine Tremblay  <antoine.tremblay@ericsson.com>
9786
9787	* linux-arm-low.c: Refactor breakpoint definitions.
9788	(arm_breakpoint_at): Adjust for arm_abi_breakpoint.
9789	(arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
9790
97912015-10-21  Antoine Tremblay  <antoine.tremblay@ericsson.com>
9792
9793	* Makefile.in: Add arm.c/o.
9794	* configure.srv: Likewise.
9795	* linux-arm-low.c (arm_breakpoint_kinds): New enum.
9796	(arm_breakpoint_kind_from_pc): New function.
9797	(arm_sw_breakpoint_from_kind): Return proper kind.
9798	(struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
9799
98002015-10-21  Antoine Tremblay  <antoine.tremblay@ericsson.com>
9801
9802	* linux-low.c (initialize_low): Ajdust for breakpoint global variables
9803	removal.
9804	* mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
9805	(struct raw_breakpoint) <size>: Remove.
9806	(struct raw_breakpoint) <kind>: Add.
9807	(bp_size): New function.
9808	(bp_opcode): Likewise.
9809	(find_raw_breakpoint_at): Adjust for kind.
9810	(insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
9811	(remove_memory_breakpoint): Adjust for kind call bp_size.
9812	(set_raw_breakpoint_at): Adjust for kind.
9813	(set_breakpoint): Likewise.
9814	(set_breakpoint_at): Call breakpoint_kind_from_pc.
9815	(delete_raw_breakpoint): Adjust for kind.
9816	(delete_breakpoint): Likewise.
9817	(find_gdb_breakpoint): Likewise.
9818	(set_gdb_breakpoint_1): Likewise.
9819	(set_gdb_breakpoint): Likewise.
9820	(delete_gdb_breakpoint_1): Likewise.
9821	(delete_gdb_breakpoint): Likewise.
9822	(uninsert_raw_breakpoint): Likewise.
9823	(reinsert_raw_breakpoint): Likewise.
9824	(set_breakpoint_data): Remove.
9825	(validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
9826	(check_mem_read): Adjust for kind call bp_size.
9827	(check_mem_write): Adjust for kind call bp_size,bp_opcode.
9828	(clone_one_breakpoint): Adjust for kind.
9829	* mem-break.h (set_gdb_breakpoint): Likewise.
9830	(delete_gdb_breakpoint): Likewise.
9831	* server.c (process_serial_event): Likewise.
9832
98332015-10-21  Antoine Tremblay  <antoine.tremblay@ericsson.com>
9834
9835	* linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
9836	(struct linux_target_ops) <breakpoint>: Remove.
9837	(struct linux_target_ops) <breakpoint_len>: Remove.
9838	(struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9839	(struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9840	* linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
9841	(arm_sw_breakpoint_from_kind): New function.
9842	* linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
9843	(struct linux_target_ops) <breakpoint>: Remove.
9844	(struct linux_target_ops) <breakpoint_len>: Remove.
9845	(struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9846	(struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9847	* linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
9848	(struct linux_target_ops) <breakpoint>: Remove.
9849	(struct linux_target_ops) <breakpoint_len>: Remove.
9850	(struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9851	(struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9852	* linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
9853	(struct linux_target_ops) <breakpoint>: Remove.
9854	(struct linux_target_ops) <breakpoint_len>: Remove.
9855	(struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9856	(struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9857	* linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
9858	and sw_breakpoint_from_kind to increment the pc.
9859	(linux_breakpoint_kind_from_pc): New function.
9860	(linux_sw_breakpoint_from_kind): New function.
9861	(struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
9862	(initialize_low): Call breakpoint_kind_from_pc and
9863	sw_breakpoint_from_kind to replace breakpoint_data/len.
9864	* linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
9865	New field.
9866	(struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
9867	* linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
9868	(struct linux_target_ops) <breakpoint>: Remove.
9869	(struct linux_target_ops) <breakpoint_len>: Remove.
9870	(struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9871	(struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9872	* linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
9873	(struct linux_target_ops) <breakpoint>: Remove.
9874	(struct linux_target_ops) <breakpoint_len>: Remove.
9875	(struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9876	(struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9877	* linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
9878	(struct linux_target_ops) <breakpoint>: Remove.
9879	(struct linux_target_ops) <breakpoint_len>: Remove.
9880	(struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9881	(struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9882	* linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
9883	(struct linux_target_ops) <breakpoint>: Remove.
9884	(struct linux_target_ops) <breakpoint_len>: Remove.
9885	(struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9886	(struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9887	* linux-ppc-low.c (ppc_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-s390-low.c (s390_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	* linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
9898	(struct linux_target_ops) <breakpoint>: Remove.
9899	(struct linux_target_ops) <breakpoint_len>: Remove.
9900	(struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9901	(struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9902	* linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
9903	(struct linux_target_ops) <breakpoint>: Remove.
9904	(struct linux_target_ops) <breakpoint_len>: Remove.
9905	(struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9906	(struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9907	* linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
9908	(struct linux_target_ops) <breakpoint>: Remove.
9909	(struct linux_target_ops) <breakpoint_len>: Remove.
9910	(struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9911	(struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9912	* linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
9913	* linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
9914	(struct linux_target_ops) <breakpoint>: Remove.
9915	(struct linux_target_ops) <breakpoint_len>: Remove.
9916	(struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9917	(struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9918	* linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
9919	(struct linux_target_ops) <breakpoint>: Remove.
9920	(struct linux_target_ops) <breakpoint_len>: Remove.
9921	(struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9922	(struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9923
99242015-10-21  Antoine Tremblay  <antoine.tremblay@ericsson.com>
9925
9926	* linux-cris-low.c (cris_get_pc): Remove void arg.
9927
99282015-10-16  Aleksandar Ristovski  <aristovski@qnx.com>
9929
9930	* gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
9931	variable name.
9932
99332015-10-16  Aleksandar Ristovski  <aristovski@qnx.com>
9934
9935	* inferiors.c (thread_pid_matches_callback): New function.
9936	(find_thread_process): New function.
9937	(remove_thread): Reset current_thread.
9938	(remove_process): Assert threads have been removed first.
9939
99402015-10-15  Yao Qi  <yao.qi@linaro.org>
9941
9942	* linux-aarch64-low.c (aarch64_insert_point): Set len to 2
9943	if it is 3.
9944	(aarch64_remove_point): Likewise.
9945	* regcache.c (regcache_register_size): New function.
9946
99472015-10-12  Yao Qi  <yao.qi@linaro.org>
9948
9949	* linux-aarch64-low.c: Update all callers as emit_load_store
9950	is renamed to aarch64_emit_load_store.
9951
99522015-10-12  Yao Qi  <yao.qi@linaro.org>
9953
9954	* linux-aarch64-low.c: Update all callers of function renaming
9955	from emit_insn to aarch64_emit_insn.
9956
99572015-10-12  Yao Qi  <yao.qi@linaro.org>
9958
9959	* linux-aarch64-low.c (enum aarch64_opcodes): Move to
9960	arch/aarch64-insn.h.
9961	(struct aarch64_memory_operand): Likewise.
9962	(ENCODE): Likewise.
9963	(emit_insn): Move to arch/aarch64-insn.c.
9964	(emit_b, emit_bcond, emit_cb, emit_tb): Remove.
9965	(emit_load_store): Move to arch/aarch64-insn.c.
9966	(emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
9967	(can_encode_int32): Remove.
9968
99692015-10-12  Yao Qi  <yao.qi@linaro.org>
9970
9971	* linux-aarch64-low.c (extract_signed_bitfield): Remove.
9972	(aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
9973	(aarch64_relocate_instruction): Likewise.
9974	(struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
9975	(struct aarch64_insn_visitor): Likewise.
9976
99772015-10-12  Yao Qi  <yao.qi@linaro.org>
9978
9979	* linux-aarch64-low.c (struct aarch64_insn_data): New.
9980	(struct aarch64_insn_visitor): New.
9981	(struct aarch64_insn_relocation_data): New.
9982	(aarch64_ftrace_insn_reloc_b): New function.
9983	(aarch64_ftrace_insn_reloc_b_cond): Likewise.
9984	(aarch64_ftrace_insn_reloc_cb): Likewise.
9985	(aarch64_ftrace_insn_reloc_tb): Likewise.
9986	(aarch64_ftrace_insn_reloc_adr): Likewise.
9987	(aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
9988	(aarch64_ftrace_insn_reloc_others): Likewise.
9989	(visitor): New.
9990	(aarch64_relocate_instruction): Use visitor.
9991
99922015-10-12  Yao Qi  <yao.qi@linaro.org>
9993
9994	* linux-aarch64-low.c (aarch64_relocate_instruction): Return
9995	int.  Add argument buf.
9996	(aarch64_install_fast_tracepoint_jump_pad): Pass buf to
9997	aarch64_relocate_instruction.
9998
99992015-10-12  Yao Qi  <yao.qi@linaro.org>
10000
10001	* linux-aarch64-low.c (aarch64_relocate_instruction): Add
10002	argument insn.  Remove local variable insn.  Don't call
10003	target_read_uint32.
10004	(aarch64_install_fast_tracepoint_jump_pad): Call
10005	target_read_uint32.
10006
100072015-09-30  Yao Qi  <yao.qi@linaro.org>
10008
10009	* linux-aarch64-low.c (emit_movk): Shorten a long line.
10010	(emit_load_store_pair): Likewise.
10011
100122015-09-25  Simon Marchi  <simon.marchi@ericsson.com>
10013
10014	* dll.c (match_dll): Add cast(s).
10015	(unloaded_dll): Likewise.
10016	* linux-low.c (second_thread_of_pid_p): Likewise.
10017	(delete_lwp_callback): Likewise.
10018	(count_events_callback): Likewise.
10019	(select_event_lwp_callback): Likewise.
10020	(linux_set_resume_request): Likewise.
10021	* server.c (accumulate_file_name_length): Likewise.
10022	(emit_dll_description): Likewise.
10023	(handle_qxfer_threads_worker): Likewise.
10024	(visit_actioned_threads): Likewise.
10025	* thread-db.c (any_thread_of): Likewise.
10026	* tracepoint.c (same_process_p): Likewise.
10027	(match_blocktype): Likewise.
10028	(build_traceframe_info_xml): Likewise.
10029
100302015-09-25  Simon Marchi  <simon.marchi@ericsson.com>
10031
10032	* ax.c (gdb_parse_agent_expr): Add cast to allocation result
10033	assignment.
10034	(gdb_unparse_agent_expr): Likewise.
10035	* hostio.c (require_data): Likewise.
10036	(handle_pread): Likewise.
10037	* linux-low.c (disable_regset): Likewise.
10038	(fetch_register): Likewise.
10039	(store_register): Likewise.
10040	(get_dynamic): Likewise.
10041	(linux_qxfer_libraries_svr4): Likewise.
10042	* mem-break.c (delete_fast_tracepoint_jump): Likewise.
10043	(set_fast_tracepoint_jump): Likewise.
10044	(uninsert_fast_tracepoint_jumps_at): Likewise.
10045	(reinsert_fast_tracepoint_jumps_at): Likewise.
10046	(validate_inserted_breakpoint): Likewise.
10047	(clone_agent_expr): Likewise.
10048	* regcache.c (init_register_cache): Likewise.
10049	* remote-utils.c (putpkt_binary_1): Likewise.
10050	(decode_M_packet): Likewise.
10051	(decode_X_packet): Likewise.
10052	(look_up_one_symbol): Likewise.
10053	(relocate_instruction): Likewise.
10054	(monitor_output): Likewise.
10055	* server.c (handle_search_memory): Likewise.
10056	(handle_qxfer_exec_file): Likewise.
10057	(handle_qxfer_libraries): Likewise.
10058	(handle_qxfer): Likewise.
10059	(handle_query): Likewise.
10060	(handle_v_cont): Likewise.
10061	(handle_v_run): Likewise.
10062	(captured_main): Likewise.
10063	* target.c (write_inferior_memory): Likewise.
10064	* thread-db.c (try_thread_db_load_from_dir): Likewise.
10065	* tracepoint.c (init_trace_buffer): Likewise.
10066	(add_tracepoint_action): Likewise.
10067	(add_traceframe): Likewise.
10068	(add_traceframe_block): Likewise.
10069	(cmd_qtdpsrc): Likewise.
10070	(cmd_qtdv): Likewise.
10071	(cmd_qtstatus): Likewise.
10072	(response_source): Likewise.
10073	(response_tsv): Likewise.
10074	(cmd_qtnotes): Likewise.
10075	(gdb_collect): Likewise.
10076	(initialize_tracepoint): Likewise.
10077
100782015-09-21  Pierre Langlois  <pierre.langlois@arm.com>
10079
10080	* linux-aarch64-low-.c: Include ax.h and tracepoint.h.
10081	(enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
10082	<EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
10083	<NOP>: New.
10084	(enum aarch64_condition_codes): New enum.
10085	(w0): New static global.
10086	(fp): Likewise.
10087	(lr): Likewise.
10088	(struct aarch64_memory_operand) <type>: New
10089	MEMORY_OPERAND_POSTINDEX type.
10090	(postindex_memory_operand): New helper function.
10091	(emit_ret): New function.
10092	(emit_load_store_pair): New function, factored out of emit_stp
10093	with support for MEMORY_OPERAND_POSTINDEX.
10094	(emit_stp): Rewrite using emit_load_store_pair.
10095	(emit_ldp): New function.
10096	(emit_load_store): Likewise.
10097	(emit_ldr): Mention post-index instruction in comment.
10098	(emit_ldrh): New function.
10099	(emit_ldrb): New function.
10100	(emit_ldrsw): Mention post-index instruction in comment.
10101	(emit_str): Likewise.
10102	(emit_subs): New function.
10103	(emit_cmp): Likewise.
10104	(emit_and): Likewise.
10105	(emit_orr): Likewise.
10106	(emit_orn): Likewise.
10107	(emit_eor): Likewise.
10108	(emit_mvn): Likewise.
10109	(emit_lslv): Likewise.
10110	(emit_lsrv): Likewise.
10111	(emit_asrv): Likewise.
10112	(emit_mul): Likewise.
10113	(emit_sbfm): Likewise.
10114	(emit_sbfx): Likewise.
10115	(emit_ubfm): Likewise.
10116	(emit_ubfx): Likewise.
10117	(emit_csinc): Likewise.
10118	(emit_cset): Likewise.
10119	(emit_nop): Likewise.
10120	(emit_ops_insns): New helper function.
10121	(emit_pop): Likewise.
10122	(emit_push): Likewise.
10123	(aarch64_emit_prologue): New function.
10124	(aarch64_emit_epilogue): Likewise.
10125	(aarch64_emit_add): Likewise.
10126	(aarch64_emit_sub): Likewise.
10127	(aarch64_emit_mul): Likewise.
10128	(aarch64_emit_lsh): Likewise.
10129	(aarch64_emit_rsh_signed): Likewise.
10130	(aarch64_emit_rsh_unsigned): Likewise.
10131	(aarch64_emit_ext): Likewise.
10132	(aarch64_emit_log_not): Likewise.
10133	(aarch64_emit_bit_and): Likewise.
10134	(aarch64_emit_bit_or): Likewise.
10135	(aarch64_emit_bit_xor): Likewise.
10136	(aarch64_emit_bit_not): Likewise.
10137	(aarch64_emit_equal): Likewise.
10138	(aarch64_emit_less_signed): Likewise.
10139	(aarch64_emit_less_unsigned): Likewise.
10140	(aarch64_emit_ref): Likewise.
10141	(aarch64_emit_if_goto): Likewise.
10142	(aarch64_emit_goto): Likewise.
10143	(aarch64_write_goto_address): Likewise.
10144	(aarch64_emit_const): Likewise.
10145	(aarch64_emit_call): Likewise.
10146	(aarch64_emit_reg): Likewise.
10147	(aarch64_emit_pop): Likewise.
10148	(aarch64_emit_stack_flush): Likewise.
10149	(aarch64_emit_zero_ext): Likewise.
10150	(aarch64_emit_swap): Likewise.
10151	(aarch64_emit_stack_adjust): Likewise.
10152	(aarch64_emit_int_call_1): Likewise.
10153	(aarch64_emit_void_call_2): Likewise.
10154	(aarch64_emit_eq_goto): Likewise.
10155	(aarch64_emit_ne_goto): Likewise.
10156	(aarch64_emit_lt_goto): Likewise.
10157	(aarch64_emit_le_goto): Likewise.
10158	(aarch64_emit_gt_goto): Likewise.
10159	(aarch64_emit_ge_got): Likewise.
10160	(aarch64_emit_ops_impl): New static global variable.
10161	(aarch64_emit_ops): New target function, return
10162	&aarch64_emit_ops_impl.
10163	(struct linux_target_ops): Install it.
10164
101652015-09-21  Pierre Langlois  <pierre.langlois@arm.com>
10166
10167	* Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
10168	* configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
10169	aarch64-ipa.o.
10170	* linux-aarch64-ipa.c: New file.
10171	* linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
10172	and endian.h.
10173	(aarch64_get_thread_area): New target method.
10174	(extract_signed_bitfield): New helper function.
10175	(aarch64_decode_ldr_literal): New function.
10176	(enum aarch64_opcodes): New enum.
10177	(struct aarch64_register): New struct.
10178	(struct aarch64_operand): New struct.
10179	(x0): New static global.
10180	(x1): Likewise.
10181	(x2): Likewise.
10182	(x3): Likewise.
10183	(x4): Likewise.
10184	(w2): Likewise.
10185	(ip0): Likewise.
10186	(sp): Likewise.
10187	(xzr): Likewise.
10188	(aarch64_register): New helper function.
10189	(register_operand): Likewise.
10190	(immediate_operand): Likewise.
10191	(struct aarch64_memory_operand): New struct.
10192	(offset_memory_operand): New helper function.
10193	(preindex_memory_operand): Likewise.
10194	(enum aarch64_system_control_registers): New enum.
10195	(ENCODE): New macro.
10196	(emit_insn): New helper function.
10197	(emit_b): New function.
10198	(emit_bcond): Likewise.
10199	(emit_cb): Likewise.
10200	(emit_tb): Likewise.
10201	(emit_blr): Likewise.
10202	(emit_stp): Likewise.
10203	(emit_ldp_q_offset): Likewise.
10204	(emit_stp_q_offset): Likewise.
10205	(emit_load_store): Likewise.
10206	(emit_ldr): Likewise.
10207	(emit_ldrsw): Likewise.
10208	(emit_str): Likewise.
10209	(emit_ldaxr): Likewise.
10210	(emit_stxr): Likewise.
10211	(emit_stlr): Likewise.
10212	(emit_data_processing_reg): Likewise.
10213	(emit_data_processing): Likewise.
10214	(emit_add): Likewise.
10215	(emit_sub): Likewise.
10216	(emit_mov): Likewise.
10217	(emit_movk): Likewise.
10218	(emit_mov_addr): Likewise.
10219	(emit_mrs): Likewise.
10220	(emit_msr): Likewise.
10221	(emit_sevl): Likewise.
10222	(emit_wfe): Likewise.
10223	(append_insns): Likewise.
10224	(can_encode_int32_in): New helper function.
10225	(aarch64_relocate_instruction): New function.
10226	(aarch64_install_fast_tracepoint_jump_pad): Likewise.
10227	(aarch64_get_min_fast_tracepoint_insn_len): Likewise.
10228	(struct linux_target_ops): Install aarch64_get_thread_area,
10229	aarch64_install_fast_tracepoint_jump_pad and
10230	aarch64_get_min_fast_tracepoint_insn_len.
10231
102322015-09-21  Pierre Langlois  <pierre.langlois@arm.com>
10233
10234	* Makefile.in (aarch64-insn.o): New rule.
10235	* configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
10236
102372015-09-21  Yao Qi  <yao.qi@linaro.org>
10238
10239	* ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
10240
102412015-09-21  Yao Qi  <yao.qi@linaro.org>
10242
10243	* tracepoint.c (max_jump_pad_size): Remove.
10244
102452015-09-18  Yao Qi  <yao.qi@linaro.org>
10246
10247	* linux-aarch64-low.c: Don't include sys/uio.h.
10248	(ps_get_thread_area): Call aarch64_ps_get_thread_area.
10249
102502015-09-16  Wei-cheng Wang  <cole945@gmail.com>
10251
10252	* tracepoint.c (eval_result_type): Change prototype.
10253	(condition_true_at_tracepoint): Fix argument to compiled_cond.
10254
102552015-09-15  Pedro Alves  <palves@redhat.com>
10256
10257	* remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
10258	Check whether to report exec events instead of checking whether
10259	multiprocess is enabled.
10260
102612015-09-15  Pedro Alves  <palves@redhat.com>
10262
10263	PR remote/18965
10264	* remote-utils.c (prepare_resume_reply): Merge
10265	TARGET_WAITKIND_VFORK_DONE switch case with the
10266	TARGET_WAITKIND_FORKED case.
10267
102682015-09-15  Yao Qi  <yao.qi@linaro.org>
10269
10270	* server.c (handle_query): Check string comparison using
10271	"else if" instead of "if".
10272
102732015-09-15  Yao Qi  <yao.qi@linaro.org>
10274
10275	* server.c (vCont_supported): New global variable.
10276	(handle_query): Set vCont_supported to 1 if "vContSupported+"
10277	matches.  Append ";vContSupported+" to own_buf.
10278	(handle_v_requests): Append ";s;S" to own_buf if target supports
10279	hardware single step or vCont_supported is false.
10280	(capture_main): Set vCont_supported to zero.
10281
102822015-09-15  Yao Qi  <yao.qi@linaro.org>
10283
10284	* linux-low.c (linux_supports_conditional_breakpoints): Rename
10285	it to ...
10286	(linux_supports_hardware_single_step): ... New function.
10287	(linux_target_ops): Update.
10288	* lynx-low.c (lynx_target_ops): Set field
10289	supports_hardware_single_step to target_can_do_hardware_single_step.
10290	* nto-low.c (nto_target_ops): Likewise.
10291	* spu-low.c (spu_target_ops): Likewise.
10292	* win32-low.c (win32_target_ops): Likewise.
10293	* target.c (target_can_do_hardware_single_step): New function.
10294	* target.h (struct target_ops) <supports_conditional_breakpoints>:
10295	Remove.  <supports_hardware_single_step>: New field.
10296	(target_supports_conditional_breakpoints): Remove.
10297	(target_supports_hardware_single_step): New macro.
10298	(target_can_do_hardware_single_step): Declare.
10299	* server.c (handle_query): Use target_supports_hardware_single_step
10300	instead of target_supports_conditional_breakpoints.
10301
103022015-09-15  Yao Qi  <yao.qi@linaro.org>
10303
10304	* linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
10305	function.
10306	(struct linux_target_ops the_low_target): Install
10307	aarch64_linux_siginfo_fixup.
10308
103092015-09-11  Don Breazeal  <donb@codesourcery.com>
10310	    Luis Machado  <lgustavo@codesourcery.com>
10311
10312	* linux-low.c (linux_mourn): Static declaration.
10313	(linux_arch_setup): Move in front of
10314	handle_extended_wait.
10315	(linux_arch_setup_thread): New function.
10316	(handle_extended_wait): Handle exec events.  Call
10317	linux_arch_setup_thread.  Make event_lwp argument a
10318	pointer-to-a-pointer.
10319	(check_zombie_leaders): Do not check stopped threads.
10320	(linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
10321	(linux_low_filter_event): Add lwp and thread for exec'ing
10322	non-leader thread if leader thread has been deleted.
10323	Refactor code into linux_arch_setup_thread and call it.
10324	Pass child lwp pointer by reference to handle_extended_wait.
10325	(linux_wait_for_event_filtered): Update comment.
10326	(linux_wait_1): Prevent clobbering exec event status.
10327	(linux_supports_exec_events): New function.
10328	(linux_target_ops) <supports_exec_events>: Initialize new member.
10329	* lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
10330	new member.
10331	* remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
10332	* server.c (report_exec_events): New global variable.
10333	(handle_query): Handle qSupported query for exec-events feature.
10334	(captured_main): Initialize report_exec_events.
10335	* server.h (report_exec_events): Declare new global variable.
10336	* target.h (struct target_ops) <supports_exec_events>: New
10337	member.
10338	(target_supports_exec_events): New macro.
10339	* win32-low.c (win32_target_ops) <supports_exec_events>:
10340	Initialize new member.
10341
103422015-09-09  Markus Metzger  <markus.t.metzger@intel.com>
10343
10344	* linux-low.c (linux_low_enable_btrace): Remove.
10345	(linux_target_ops): Replace linux_low_enable_btrace with
10346	linux_enable_btrace.
10347
103482015-09-03  Yao Qi  <yao.qi@linaro.org>
10349
10350	* linux-aarch64-low.c (aarch64_insert_point): Call
10351	aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
10352	returns true.
10353
103542015-08-27  Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10355
10356	* linux-low.c (check_stopped_by_breakpoint): Use
10357	GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
10358
103592015-08-27  Pedro Alves  <palves@redhat.com>
10360
10361	* proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
10362
103632015-08-26  Simon Marchi  <simon.marchi@ericsson.com>
10364
10365	* ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
10366	the XNEW-family equivalent.
10367	(compile_bytecodes): Likewise.
10368	* dll.c (loaded_dll): Likewise.
10369	* event-loop.c (append_callback_event): Likewise.
10370	(create_file_handler): Likewise.
10371	(create_file_event): Likewise.
10372	* hostio.c (handle_open): Likewise.
10373	* inferiors.c (add_thread): Likewise.
10374	(add_process): Likewise.
10375	* linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
10376	* linux-arm-low.c (arm_new_process): Likewise.
10377	(arm_new_thread): Likewise.
10378	* linux-low.c (add_to_pid_list): Likewise.
10379	(linux_add_process): Likewise.
10380	(handle_extended_wait): Likewise.
10381	(add_lwp): Likewise.
10382	(enqueue_one_deferred_signal): Likewise.
10383	(enqueue_pending_signal): Likewise.
10384	(linux_resume_one_lwp_throw): Likewise.
10385	(linux_resume_one_thread): Likewise.
10386	(linux_read_memory): Likewise.
10387	(linux_write_memory): Likewise.
10388	* linux-mips-low.c (mips_linux_new_process): Likewise.
10389	(mips_linux_new_thread): Likewise.
10390	(mips_add_watchpoint): Likewise.
10391	* linux-x86-low.c (initialize_low_arch): Likewise.
10392	* lynx-low.c (lynx_add_process): Likewise.
10393	* mem-break.c (set_raw_breakpoint_at): Likewise.
10394	(set_breakpoint): Likewise.
10395	(add_condition_to_breakpoint): Likewise.
10396	(add_commands_to_breakpoint): Likewise.
10397	(clone_agent_expr): Likewise.
10398	(clone_one_breakpoint): Likewise.
10399	* regcache.c (new_register_cache): Likewise.
10400	* remote-utils.c (look_up_one_symbol): Likewise.
10401	* server.c (queue_stop_reply): Likewise.
10402	(start_inferior): Likewise.
10403	(queue_stop_reply_callback): Likewise.
10404	(handle_target_event): Likewise.
10405	* spu-low.c (fetch_ppc_memory): Likewise.
10406	(store_ppc_memory): Likewise.
10407	* target.c (set_target_ops): Likewise.
10408	* thread-db.c (thread_db_load_search): Likewise.
10409	(try_thread_db_load_1): Likewise.
10410	* tracepoint.c (add_tracepoint): Likewise.
10411	(add_tracepoint_action): Likewise.
10412	(create_trace_state_variable): Likewise.
10413	(cmd_qtdpsrc): Likewise.
10414	(cmd_qtro): Likewise.
10415	(add_while_stepping_state): Likewise.
10416	* win32-low.c (child_add_thread): Likewise.
10417	(get_image_name): Likewise.
10418
104192015-08-25  Yao Qi  <yao.qi@linaro.org>
10420
10421	* linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
10422
104232015-08-25  Yao Qi  <yao.qi@linaro.org>
10424
10425	* Makefile.in (aarch64-linux.o): New rule.
10426	* configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
10427	srv_tgtobj.
10428	* linux-aarch64-low.c: Include nat/aarch64-linux.h.
10429	(aarch64_init_debug_reg_state): Make it extern.
10430	(aarch64_linux_prepare_to_resume): Remove.
10431
104322015-08-25  Yao Qi  <yao.qi@linaro.org>
10433
10434	* linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
10435	lwp_arch_private_info and ptid_of_lwp.
10436
104372015-08-25  Yao Qi  <yao.qi@linaro.org>
10438
10439	* linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
10440	Find proc_info by find_process_pid.  All callers updated.
10441
104422015-08-25  Yao Qi  <yao.qi@linaro.org>
10443
10444	* linux-aarch64-low.c (struct arch64_dr_update_callback_param):
10445	Remove.
10446	(debug_reg_change_callback): Remove.
10447	(aarch64_notify_debug_reg_change): Remove.
10448
104492015-08-25  Yao Qi  <yao.qi@linaro.org>
10450
10451	* linux-aarch64-low.c (aarch64_notify_debug_reg_change):
10452	Call current_lwp_ptid.
10453
104542015-08-25  Yao Qi  <yao.qi@linaro.org>
10455
10456	* linux-aarch64-low.c (debug_reg_change_callback): Use
10457	debug_printf.
10458
104592015-08-25  Yao Qi  <yao.qi@linaro.org>
10460
10461	* linux-aarch64-low.c (debug_reg_change_callback): Use phex.
10462
104632015-08-25  Yao Qi  <yao.qi@linaro.org>
10464
10465	* linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
10466
104672015-08-25  Yao Qi  <yao.qi@linaro.org>
10468
10469	* linux-aarch64-low.c (debug_reg_change_callback): Re-indent
10470	the code.
10471
104722015-08-25  Yao Qi  <yao.qi@linaro.org>
10473
10474	* linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
10475	Remove.
10476	(debug_reg_change_callback): Remove argument entry and add argument
10477	lwp.  Remove local variable thread.  Don't print thread id in the
10478	debugging output.  Don't check whether pid of thread equals to pid.
10479	(aarch64_notify_debug_reg_change): Don't set param.pid.  Call
10480	iterate_over_lwps instead find_inferior.
10481
104822015-08-24  Pedro Alves  <palves@redhat.com>
10483
10484	* inferiors.c (get_first_process): New function.
10485	* inferiors.h (get_first_process): New declaration.
10486	* remote-utils.c (read_ptid): Default to the first process in the
10487	list, instead of to the current thread's process.
10488
104892015-08-24  Pedro Alves  <palves@redhat.com>
10490
10491	* debug.c: Include gdb_sys_time.h instead of sys/time.h.
10492	* event-loop.c: Likewise.
10493	* remote-utils.c: Likewise.
10494	* tracepoint.c: Likewise.
10495
104962015-08-24  Pedro Alves  <palves@redhat.com>
10497
10498	* spu-low.c (spu_request_interrupt): Use lwpid_of instead of
10499	ptid_get_lwp.
10500
105012015-08-21  Pedro Alves  <palves@redhat.com>
10502
10503	* ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
10504	instead of literal 1.
10505
105062015-08-21  Pedro Alves  <palves@redhat.com>
10507
10508	* tdesc.c (default_description): Explicitly zero-initialize.
10509
105102015-08-21  Pedro Alves  <palves@redhat.com>
10511
10512	PR gdb/18749
10513	* inferiors.c (remove_thread): Discard any pending stop reply for
10514	this thread.
10515	* server.c (remove_all_on_match_pid): Rename to ...
10516	(remove_all_on_match_ptid): ... this.  Work with a filter ptid
10517	instead of a pid.
10518	(discard_queued_stop_replies): Change parameter to a ptid.  Now
10519	extern.
10520	(handle_v_kill, kill_inferior_callback, captured_main)
10521	(process_serial_event): Adjust.
10522	* server.h (discard_queued_stop_replies): Declare.
10523
105242015-08-21  Pedro Alves  <palves@redhat.com>
10525
10526	* linux-low.c (wait_for_sigstop): Always switch to no thread
10527	selected if the previously current thread dies.
10528	* lynx-low.c (lynx_request_interrupt): Use the first thread's
10529	process instead of the current thread's.
10530	* remote-utils.c (input_interrupt): Don't check if there's no
10531	current thread.
10532	* server.c (gdb_read_memory, gdb_write_memory): If setting the
10533	current thread to the general thread fails, error out.
10534	(handle_qxfer_auxv, handle_qxfer_libraries)
10535	(handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
10536	(handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
10537	(handle_query): Check if there's a thread selected instead of
10538	checking whether there's any thread in the thread list.
10539	(handle_qxfer_threads, handle_qxfer_btrace)
10540	(handle_qxfer_btrace_conf): Don't error out early if there's no
10541	thread in the thread list.
10542	(handle_v_cont, myresume): Don't set the current thread to the
10543	continue thread.
10544	(process_serial_event) <Hg handling>: Also set thread_id if the
10545	previous general thread is still alive.
10546	(process_serial_event) <g/G handling>: If setting the current
10547	thread to the general thread fails, error out.
10548	* spu-low.c (spu_resume, spu_request_interrupt): Use the first
10549	thread's lwp instead of the current thread's.
10550	* target.c (set_desired_thread): If the desired thread was not
10551	found, leave the current thread pointing to NULL.  Return an int
10552	(boolean) indicating success.
10553	* target.h (set_desired_thread): Change return type to int.
10554
105552015-08-20  Max Filippov  <jcmvbkbc@gmail.com>
10556
10557	* configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
10558	* linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
10559	#includes.
10560	(ps_get_thread_area): New function.
10561
105622015-08-19  Gary Benson  <gbenson@redhat.com>
10563
10564	* hostio.c (handle_pread): Do not attempt to read more data
10565	than hostio_reply_with_data can fit in a packet.
10566
105672015-08-18  Joel Brobecker  <brobecker@adacore.com>
10568
10569	* linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
10570
105712015-08-14  Matthew Fortune  <matthew.fortune@imgtec.com>
10572
10573	* linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
10574
105752015-08-06  Pedro Alves  <palves@redhat.com>
10576
10577	* tracepoint.c (expr_eval_result): Now an int.
10578
105792015-08-06  Pedro Alves  <palves@redhat.com>
10580
10581	* gdbthread.h (struct regcache): Forward declare.
10582	(struct thread_info) <regcache_data>: Now a struct regcache
10583	pointer.
10584	* inferiors.c (inferior_regcache_data)
10585	(set_inferior_regcache_data): Now work with struct regcache
10586	pointers.
10587	* inferiors.h (struct regcache): Forward declare.
10588	(inferior_regcache_data, set_inferior_regcache_data): Now work
10589	with struct regcache pointers.
10590	* regcache.c (get_thread_regcache, regcache_invalidate_thread)
10591	(free_register_cache_thread): Remove struct regcache pointer
10592	casts.
10593
105942015-08-06  Pedro Alves  <palves@redhat.com>
10595
10596	* server.c (captured_main): On error, print the exception message
10597	to stderr, and if run_once is set, throw a quit.
10598
105992015-08-06  Pedro Alves  <palves@redhat.com>
10600
10601	* linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
10602	the current thread.
10603
106042015-08-06  Pedro Alves  <palves@redhat.com>
10605
10606	* linux-low.c (linux_write_memory): Rewrite debug output to avoid
10607	reading beyond the passed in buffer length.
10608
106092015-08-06  Pierre Langlois  <pierre.langlois@arm.com>
10610
10611	* tracepoint.c (symbol_list) <required>: Remove.
10612
106132015-08-06  Pedro Alves  <palves@redhat.com>
10614
10615	* linux-low.c (handle_extended_wait): Set the fork child's suspend
10616	count if stopping and suspending threads.
10617	(check_stopped_by_breakpoint): If stopped by trace, set the LWP's
10618	stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
10619	(linux_detach): Complete an ongoing step-over.
10620	(lwp_suspended_inc, lwp_suspended_decr): New functions.  Use
10621	throughout.
10622	(resume_stopped_resumed_lwps): Don't resume a suspended thread.
10623	(linux_wait_1): If passing a signal to the inferior after
10624	finishing a step-over, unsuspend and re-resume all lwps.  If we
10625	see a single-step event but the thread should be continuing, don't
10626	pass the trap to gdb.
10627	(stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
10628	internal_error instead of gdb_assert.
10629	(enqueue_pending_signal): New function.
10630	(check_ptrace_stopped_lwp_gone): Add debug output.
10631	(start_step_over): Use internal_error instead of gdb_assert.
10632	(complete_ongoing_step_over): New function.
10633	(linux_resume_one_thread): Don't resume a suspended thread.
10634	(proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
10635	it stepping.
10636
106372015-08-06  Pedro Alves  <palves@redhat.com>
10638
10639	* linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
10640	(linux_thread_alive): Use lwp_is_marked_dead.
10641	(extended_event_reported): Delete.
10642	(linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
10643	instead of extended_event_reported.
10644	(mark_lwp_dead): Don't set the 'dead' flag.  Store the waitstatus
10645	as well.
10646	(lwp_is_marked_dead): New function.
10647	(lwp_running): Use lwp_is_marked_dead.
10648	* linux-low.h: Delete 'dead' field, and update 'waitstatus's
10649	comment.
10650
106512015-08-06  Pedro Alves  <palves@redhat.com>
10652
10653	* linux-low.c (linux_wait_1): Move fork event output out of the
10654	!report_to_gdb check.  Pass event_child->waitstatus to
10655	target_waitstatus_to_string instead of ourstatus.
10656
106572015-08-04  Yao Qi  <yao.qi@linaro.org>
10658
10659	* linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
10660	if current_thread is 32 bit.
10661
106622015-08-04  Yao Qi  <yao.qi@linaro.org>
10663
10664	* linux-aarch64-low.c (aarch64_supports_z_point_type): Return
10665	0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
10666	* server.c (extended_protocol): Remove "static".
10667	* server.h (extended_protocol): Declare it.
10668
106692015-08-04  Yao Qi  <yao.qi@linaro.org>
10670
10671	* linux-aarch64-low.c (aarch64_get_pc): Get PC register on
10672	both aarch64 and aarch32.
10673	(aarch64_set_pc): Likewise.
10674
106752015-08-04  Yao Qi  <yao.qi@linaro.org>
10676
10677	* configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
10678	to srv_regobj and append arm-core.xml arm-vfpv3.xml and
10679	arm-with-neon.xml to srv_xmlfiles.
10680	* linux-aarch64-low.c: Include linux-aarch32-low.h.
10681	(is_64bit_tdesc): New function.
10682	(aarch64_linux_read_description): New function.
10683	(aarch64_arch_setup): Call aarch64_linux_read_description.
10684	(regs_info): Rename to regs_info_aarch64.
10685	(aarch64_regs_info): Return right regs_info.
10686	(initialize_low_arch): Call initialize_low_arch_aarch32.
10687
106882015-08-04  Yao Qi  <yao.qi@linaro.org>
10689
10690	* configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
10691	* linux-aarch32-low.c: New file.
10692	* linux-aarch32-low.h: New file.
10693	* linux-arm-low.c (arm_fill_gregset): Move it to
10694	linux-aarch32-low.c.
10695	(arm_store_gregset): Likewise.
10696	(arm_fill_vfpregset): Call arm_fill_vfpregset_num
10697	(arm_store_vfpregset): Call arm_store_vfpregset_num.
10698	(arm_arch_setup): Check if PTRACE_GETREGSET works.
10699	(regs_info): Rename to regs_info_arm.
10700	(arm_regs_info): Return regs_info_aarch32 if
10701	have_ptrace_getregset is 1 and target description is
10702	arm_with_neon or arm_with_vfpv3.
10703	(initialize_low_arch): Don't call init_registers_arm_with_neon.
10704	Call initialize_low_arch_aarch32 instead.
10705
107062015-08-04  Yao Qi  <yao.qi@linaro.org>
10707
10708	* linux-x86-low.c (have_ptrace_getregset): Move it to ...
10709	* linux-low.c: ... here.
10710	* linux-low.h (have_ptrace_getregset): Declare it.
10711
107122015-08-04  Pedro Alves  <palves@redhat.com>
10713
10714	* thread-db.c (struct thread_db): Use new typedefs.
10715	(try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
10716	CHK calls.
10717	(disable_thread_event_reporting): Cast result of dlsym to
10718	destination function pointer type.
10719	(thread_db_mourn): Use td_ta_delete_ftype.
10720
107212015-08-03  Sandra Loosemore  <sandra@codesourcery.com>
10722
10723	* linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
10724	arch variant.
10725	(CDX_BREAKPOINT): Define for R2.
10726	(nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
10727	(the_low_target): Add comments.
10728
107292015-07-30  Yao Qi  <yao.qi@linaro.org>
10730
10731	* linux-arm-low.c (arm_hwcap): Remove it.
10732	(arm_read_description): New local variable arm_hwcap.  Don't
10733	set arm_hwcap to zero.
10734
107352015-07-30  Yao Qi  <yao.qi@linaro.org>
10736
10737	* linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
10738	Use regcache->tdesc instead.
10739	(arm_store_wmmxregset): Likewise.
10740	(arm_fill_vfpregset): Likewise.
10741	(arm_store_vfpregset): Likewise.
10742
107432015-07-30  Yao Qi  <yao.qi@linaro.org>
10744
10745	* linux-arm-low.c: Include arch/arm.h.
10746	(arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
10747	(arm_store_gregset): Likewise.
10748
107492015-07-29  Simon Marchi  <simon.marchi@ericsson.com>
10750
10751	* linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
10752	ptrace's 4th parameter.
10753
107542015-07-27  Yao Qi  <yao.qi@linaro.org>
10755
10756	* configure.srv (case aarch64*-*-linux*): Don't set
10757	srv_linux_usrregs.
10758
107592015-07-24  Pedro Alves  <palves@redhat.c: Likewise.om>
10760
10761	* linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
10762	sys/ptrace.h.
10763	* linux-arm-low.c: Likewise.
10764	* linux-cris-low.c: Likewise.
10765	* linux-crisv32-low.c: Likewise.
10766	* linux-low.c: Likewise.
10767	* linux-m68k-low.c: Likewise.
10768	* linux-mips-low.c: Likewise.
10769	* linux-nios2-low.c: Likewise.
10770	* linux-s390-low.c: Likewise.
10771	* linux-sparc-low.c: Likewise.
10772	* linux-tic6x-low.c: Likewise.
10773	* linux-tile-low.c: Likewise.
10774	* linux-x86-low.c: Likewise.
10775
107762015-07-24  Pedro Alves  <palves@redhat.com>
10777
10778	* config.in: Regenerate.
10779	* configure: Regenerate.
10780
107812015-07-24  Pedro Alves  <palves@redhat.com>
10782
10783	* acinclude.m4: Include ../ptrace.m4.
10784	* configure.ac: Call GDB_AC_PTRACE.
10785	* config.in, configure: Regenerate.
10786
107872015-07-24  Yao Qi  <yao.qi@linaro.org>
10788
10789	* linux-low.c (linux_create_inferior): Remove setting to
10790	proc->priv->new_inferior.
10791	(linux_attach): Likewise.
10792	(linux_low_filter_event): Likewise.
10793	* linux-low.h (struct process_info_private) <new_inferior>: Remove.
10794
107952015-07-24  Yao Qi  <yao.qi@linaro.org>
10796
10797	* linux-low.c (linux_arch_setup): New function.
10798	(linux_low_filter_event): If proc->tdesc is NULL and
10799	proc->attached is true, call the_low_target.arch_setup.
10800	Otherwise, keep status pending, and return.
10801	(linux_resume_one_lwp_throw): Don't call get_pc if
10802	thread->while_stepping isn't NULL.  Don't call
10803	get_thread_regcache if proc->tdesc is NULL.
10804	(need_step_over_p): Return 0 if proc->tdesc is NULL.
10805	(linux_target_ops): Install arch_setup.
10806	* server.c (start_inferior): Call the_target->arch_setup.
10807	* target.h (struct target_ops) <arch_setup>: New field.
10808	(target_arch_setup): New marco.
10809	* lynx-low.c (lynx_target_ops): Update.
10810	* nto-low.c (nto_target_ops): Update.
10811	* spu-low.c (spu_target_ops): Update.
10812	* win32-low.c (win32_target_ops): Update.
10813
108142015-07-24  Yao Qi  <yao.qi@linaro.org>
10815
10816	* linux-low.c (linux_add_process): Don't set
10817	proc->priv->new_inferior.
10818	(linux_create_inferior): Set proc->priv->new_inferior to 1.
10819	(linux_attach): Likewise.
10820
108212015-07-24  Yao Qi  <yao.qi@linaro.org>
10822
10823	* server.c (start_inferior): Code refactor.
10824
108252015-07-24  Yao Qi  <yao.qi@linaro.org>
10826
10827	* server.c (process_serial_event): Set general_thread.
10828
108292015-07-21  Yao Qi  <yao.qi@linaro.org>
10830
10831	* linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
10832	aarch64_linux_get_debug_reg_capacity.
10833
108342015-07-17  Yao Qi  <yao.qi@linaro.org>
10835
10836	* Makefile.in (aarch64-linux-hw-point.o): New rule.
10837	* configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
10838	* linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
10839	(AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
10840	(AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
10841	(AARCH64_HWP_ALIGNMENT): Likewise.
10842	(AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
10843	(AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
10844	(aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
10845	(AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
10846	(DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
10847	(DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
10848	(struct aarch64_debug_reg_state): Likewise.
10849	(struct arch_lwp_info):	Likewise.
10850	(aarch64_align_watchpoint): Likewise.
10851	(DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
10852	(aarch64_watchpoint_length): Likewise.
10853	(aarch64_point_encode_ctrl_reg): Likewise
10854	(aarch64_point_is_aligned): Likewise.
10855	(aarch64_align_watchpoint): Likewise.
10856	(aarch64_linux_set_debug_regs):
10857	(aarch64_dr_state_insert_one_point): Likewise.
10858	(aarch64_dr_state_remove_one_point): Likewise.
10859	(aarch64_handle_breakpoint): Likewise.
10860	(aarch64_handle_aligned_watchpoint): Likewise.
10861	(aarch64_handle_unaligned_watchpoint): Likewise.
10862	(aarch64_handle_watchpoint): Likewise.
10863
108642015-07-17  Yao Qi  <yao.qi@linaro.org>
10865
10866	* linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
10867	and don't aarch64_get_debug_reg_state.  All callers update.
10868	(aarch64_handle_aligned_watchpoint): Likewise.
10869	(aarch64_handle_unaligned_watchpoint): Likewise.
10870	(aarch64_handle_watchpoint): Likewise.
10871	(aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
10872	(aarch64_remove_point): Likewise.
10873
108742015-07-17  Yao Qi  <yao.qi@linaro.org>
10875
10876	* linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
10877	debug_printf.
10878	(aarch64_handle_unaligned_watchpoint): Likewise.
10879
108802015-07-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
10881
10882	Revert the previous 3 commits:
10883	Move gdb_regex* to common/
10884	Move linux_find_memory_regions_full & co.
10885	gdbserver build-id attribute generator
10886
108872015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
10888	    Jan Kratochvil  <jan.kratochvil@redhat.com>
10889
10890	gdbserver build-id attribute generator.
10891	* linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
10892	(ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
10893	(ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
10894	(find_phdr): New.
10895	(get_dynamic): Use find_pdhr to traverse program headers.
10896	(struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
10897	(compare_mapping_entry_range, struct find_memory_region_callback_data)
10898	(read_build_id, find_memory_region_callback, lrfind_mapping_entry)
10899	(get_hex_build_id): New.
10900	(linux_qxfer_libraries_svr4): Add optional build-id attribute
10901	to reply XML document.
10902
109032015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
10904	    Jan Kratochvil  <jan.kratochvil@redhat.com>
10905
10906	* target.c: Include target/target-utils.h and fcntl.h.
10907	(target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
10908	(target_fileio_read_stralloc): New functions.
10909
109102015-07-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
10911
10912	* Makefile.in (OBS): Add gdb_regex.o.
10913	(gdb_regex.o): New.
10914	* config.in: Rebuilt.
10915	* configure: Rebuilt.
10916
109172015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
10918	    Jan Kratochvil  <jan.kratochvil@redhat.com>
10919
10920	Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
10921	* Makefile.in (OBS): Add target-utils.o.
10922	(linux-maps.o, target-utils.o): New.
10923	* configure.srv (srv_linux_obj): Add linux-maps.o.
10924
109252015-07-15  Pierre Langlois  <pierre.langlois@arm.com>
10926
10927	* linux-aarch64-low.c (aarch64_supports_range_stepping): New
10928	function, return 1.
10929	(the_low_target): Install it.
10930
109312015-07-14  Pedro Alves  <palves@redhat.com>
10932
10933	* linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
10934	Instead, ignore ECHILD, and throw an error for other errnos.
10935
109362015-07-10  Pedro Alves  <palves@redhat.com>
10937
10938	* event-loop.c (struct callback_event) <data>: Change type to
10939	gdb_client_data instance instead of gdb_client_data pointer.
10940	(append_callback_event): Adjust.
10941
109422015-07-10  Pierre Langlois  <pierre.langlois@arm.com>
10943
10944	* linux-aarch64-low.c: Add comments for each linux_target_ops
10945	method.  Remove comments already covered in target_ops and
10946	linux_target_ops definitions.
10947	(the_low_target): Add comments for each unimplemented method.
10948
109492015-07-09  Yao Qi  <yao.qi@linaro.org>
10950
10951	* linux-aarch64-low.c (aarch64_regmap): Remove.
10952	(aarch64_usrregs_info): Remove.
10953	(regs_info): Set field usrregs to NULL.
10954
109552015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
10956
10957	* linux-low.c: Include "rsp-low.h"
10958	(linux_low_encode_pt_config, linux_low_encode_raw): New.
10959	(linux_low_read_btrace): Support BTRACE_FORMAT_PT.
10960	(linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
10961	(handle_btrace_enable_pt): New.
10962	(handle_btrace_general_set): Support "pt".
10963	(handle_btrace_conf_general_set): Support "pt:size".
10964
109652015-06-29  Pierre Langlois  <pierre.langlois@arm.com>
10966
10967	* linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
10968	Z_PACKET_SW_BP.
10969
109702015-06-29  Pierre Langlois  <pierre.langlois@arm.com>
10971
10972	* linux-aarch64-low.c: Remove comment about endianness.
10973	(aarch64_breakpoint): Change type to gdb_byte[].  Set to "brk #0".
10974	(aarch64_breakpoint_at): Change type of insn to gdb_byte[].  Use
10975	memcmp.
10976
109772015-06-24  Gary Benson  <gbenson@redhat.com>
10978
10979	* linux-i386-ipa.c (stdint.h): Do not include.
10980	* lynx-i386-low.c (stdint.h): Likewise.
10981	* lynx-ppc-low.c (stdint.h): Likewise.
10982	* mem-break.c (stdint.h): Likewise.
10983	* thread-db.c (stdint.h): Likewise.
10984	* tracepoint.c (stdint.h): Likewise.
10985	* win32-low.c (stdint.h): Likewise.
10986
109872015-06-18  Simon Marchi  <simon.marchi@ericsson.com>
10988
10989	* server.c (write_qxfer_response): Update call to
10990	remote_escape_output.
10991
109922015-06-15  Aleksandar Ristovski  <aristovski@qnx.com
10993	    Jan Kratochvil  <jan.kratochvil@redhat.com>
10994
10995	Merge multiple hex conversions.
10996	* gdbreplay.c (tohex): Rename to 'fromhex'.
10997	(logchar): Use fromhex.
10998
109992015-06-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
11000
11001	* server.c (handle_qxfer_libraries): Set `version' attribute for
11002	<library-list>.
11003
110042015-06-10  Gary Benson  <gbenson@redhat.com>
11005
11006	* target.h (struct target_ops) <multifs_open>: New field.
11007	<multifs_unlink>: Likewise.
11008	<multifs_readlink>: Likewise.
11009	* linux-low.c (nat/linux-namespaces.h): New include.
11010	(linux_target_ops): Initialize the_target->multifs_open,
11011	the_target->multifs_unlink and the_target->multifs_readlink.
11012	* hostio.h (hostio_handle_new_gdb_connection): New declaration.
11013	* hostio.c (hostio_fs_pid): New static variable.
11014	(hostio_handle_new_gdb_connection): New function.
11015	(handle_setfs): Likewise.
11016	(handle_open): Use the_target->multifs_open as appropriate.
11017	(handle_unlink): Use the_target->multifs_unlink as appropriate.
11018	(handle_readlink): Use the_target->multifs_readlink as
11019	appropriate.
11020	(handle_vFile): Handle vFile:setfs packets.
11021	* server.c (handle_query): Call hostio_handle_new_gdb_connection
11022	after target_handle_new_gdb_connection.
11023
110242015-06-10  Gary Benson  <gbenson@redhat.com>
11025
11026	* configure.ac (AC_CHECK_FUNCS): Add setns.
11027	* config.in: Regenerate.
11028	* configure: Likewise.
11029	* Makefile.in (SFILES): Add nat/linux-namespaces.c.
11030	(linux-namespaces.o): New rule.
11031	* configure.srv (srv_linux_obj): Add linux-namespaces.o.
11032
110332015-06-09  Gary Benson <gbenson@redhat.com>
11034
11035	* hostio.c (handle_open): Process mode argument with
11036	fileio_to_host_mode.
11037
110382015-06-01  Yao Qi  <yao.qi@linaro.org>
11039
11040	* linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
11041	* linux-x86-low.c: Likewise.
11042
110432015-05-28  Don Breazeal  <donb@codesourcery.com>
11044
11045	* linux-low.c (handle_extended_wait): Initialize
11046	thread_info.last_resume_kind for new fork children.
11047
110482015-05-15  Pedro Alves  <palves@redhat.com>
11049
11050	* target.h (target_handle_new_gdb_connection): Rewrite using if
11051	wrapped in do/while.
11052
110532015-05-14  Joel Brobecker  <brobecker@adacore.com>
11054
11055	* configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
11056	* configure, config.in: Regenerate.
11057	* gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
11058	Declare typedef.
11059
110602015-05-12  Don Breazeal  <donb@codesourcery.com>
11061
11062	* linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
11063	PTRACE_EVENT_VFORK_DONE.
11064	(linux_low_ptrace_options, extended_event_reported): Add vfork
11065	events.
11066	* remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
11067	and "vforkdone" for RSP 'T' Stop Reply Packet.
11068	* server.h (report_vfork_events): Declare
11069	global variable.
11070
110712015-05-12  Don Breazeal  <donb@codesourcery.com>
11072
11073	* linux-aarch64-low.c (aarch64_linux_new_fork): New function.
11074	(the_low_target) <new_fork>: Initialize new member.
11075	* linux-arm-low.c (arm_new_fork): New function.
11076	(the_low_target) <new_fork>: Initialize new member.
11077	* linux-low.c (handle_extended_wait): Call new target function
11078	new_fork.
11079	* linux-low.h (struct linux_target_ops) <new_fork>: New member.
11080	* linux-mips-low.c (mips_add_watchpoint): New function
11081	extracted from mips_insert_point.
11082	(the_low_target) <new_fork>: Initialize new member.
11083	(mips_linux_new_fork): New function.
11084	(mips_insert_point): Call mips_add_watchpoint.
11085	* linux-x86-low.c (x86_linux_new_fork): New function.
11086	(the_low_target) <new_fork>: Initialize new member.
11087
110882015-05-12  Don Breazeal  <donb@codesourcery.com>
11089
11090	* linux-low.c (handle_extended_wait): Implement return value,
11091	rename argument 'event_child' to 'event_lwp', handle
11092	PTRACE_EVENT_FORK, call internal_error for unrecognized event.
11093	(linux_low_ptrace_options): New function.
11094	(linux_low_filter_event): Call linux_low_ptrace_options,
11095	use different argument fo linux_enable_event_reporting,
11096	use return value from handle_extended_wait.
11097	(extended_event_reported): New function.
11098	(linux_wait_1): Call extended_event_reported and set
11099	status to report fork events.
11100	(linux_write_memory): Add pid to debug message.
11101	(reset_lwp_ptrace_options_callback): New function.
11102	(linux_handle_new_gdb_connection): New function.
11103	(linux_target_ops): Initialize new structure member.
11104	* linux-low.h (struct lwp_info) <waitstatus>: New member.
11105	* lynx-low.c: Initialize new structure member.
11106	* remote-utils.c (prepare_resume_reply): Implement stop reason
11107	"fork" for "T" stop message.
11108	* server.c (handle_query): Call handle_new_gdb_connection.
11109	* server.h (report_fork_events): Declare global flag.
11110	* target.h (struct target_ops) <handle_new_gdb_connection>:
11111	New member.
11112	(target_handle_new_gdb_connection): New macro.
11113	* win32-low.c: Initialize new structure member.
11114
111152015-05-12  Don Breazeal  <donb@codesourcery.com>
11116
11117	* mem-break.c (APPEND_TO_LIST): Define macro.
11118	(clone_agent_expr): New function.
11119	(clone_one_breakpoint): New function.
11120	(clone_all_breakpoints): New function.
11121	* mem-break.h: Declare new functions.
11122
111232015-05-12  Don Breazeal  <donb@codesourcery.com>
11124
11125	* linux-low.c (linux_supports_fork_events): New function.
11126	(linux_supports_vfork_events): New function.
11127	(linux_target_ops): Initialize new structure members.
11128	(initialize_low): Call linux_check_ptrace_features.
11129	* lynx-low.c (lynx_target_ops): Initialize new structure
11130	members.
11131	* server.c (report_fork_events, report_vfork_events):
11132	New global flags.
11133	(handle_query): Add new features to qSupported packet and
11134	response.
11135	(captured_main): Initialize new global variables.
11136	* target.h (struct target_ops) <supports_fork_events>:
11137	New member.
11138	<supports_vfork_events>: New member.
11139	(target_supports_fork_events): New macro.
11140	(target_supports_vfork_events): New macro.
11141	* win32-low.c (win32_target_ops): Initialize new structure
11142	members.
11143
111442015-05-12  Gary Benson <gbenson@redhat.com>
11145
11146	* server.c (handle_qxfer_exec_file): Use current process
11147	if annex is empty.
11148
111492015-05-08  Sandra Loosemore  <sandra@codesourcery.com>
11150
11151	* linux-nios2-low.c: Include elf/common.h.  Adjust comments.
11152	Remove HAVE_PTRACE_GETREGS conditionals.
11153	(nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
11154	instead of PTRACE_GETREGS and PTRACE_SETREGS.
11155
111562015-05-08  Yao Qi  <yao.qi@linaro.org>
11157
11158	* linux-low.c (linux_supports_conditional_breakpoints): New
11159	function.
11160	(linux_target_ops): Install new target method.
11161	* lynx-low.c (lynx_target_ops): Install NULL hook for
11162	supports_conditional_breakpoints.
11163	* nto-low.c (nto_target_ops): Likewise.
11164	* spu-low.c (spu_target_ops): Likewise.
11165	* win32-low.c (win32_target_ops): Likewise.
11166	* server.c (handle_query): Check
11167	target_supports_conditional_breakpoints.
11168	* target.h (struct target_ops) <supports_conditional_breakpoints>:
11169	New field.
11170	(target_supports_conditional_breakpoints): New macro.
11171
111722015-05-06  Pedro Alves  <palves@redhat.com>
11173
11174	PR server/18081
11175	* server.c (start_inferior): If the process exits, mourn it.
11176
111772015-04-21  Gary Benson <gbenson@redhat.com>
11178
11179	* hostio.c (fileio_open_flags_to_host): Factored out to
11180	fileio_to_host_openflags in common/fileio.c.  Single use
11181	updated.
11182
111832015-04-17  Max Filippov  <jcmvbkbc@gmail.com>
11184
11185	* linux-xtensa-low.c (xtensa_fill_gregset)
11186	(xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
11187	XCHAL_HAVE_LOOP.
11188
111892015-04-17  Max Filippov  <jcmvbkbc@gmail.com>
11190
11191	* linux-xtensa-low.c (xtensa_usrregs_info): Remove.
11192	(regs_info): Replace usrregs pointer with NULL.
11193
111942015-04-17  Gary Benson  <gbenson@redhat.com>
11195
11196	* target.h (struct target_ops) <pid_to_exec_file>: New field.
11197	* linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
11198	* server.c (handle_qxfer_exec_file): New function.
11199	(qxfer_packets): Add exec-file entry.
11200	(handle_query): Report qXfer:exec-file:read as supported packet.
11201
112022015-04-14  Romain Naour <romain.naour@openwide.fr>  (tiny change)
11203
11204	* linux-low.c (linux_read_offsets): Remove get_thread_lwp.
11205
112062015-04-09  Gary Benson <gbenson@redhat.com>
11207
11208	* hostio-errno.c (errno_to_fileio_error): Remove function.
11209	Update caller to use remote_fileio_to_fio_error.
11210
112112015-04-09  Yao Qi  <yao.qi@linaro.org>
11212
11213	* linux-low.c (linux_insert_point): Call
11214	insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
11215	(linux_remove_point): Call remove_memory_breakpoint if type is
11216	raw_bkpt_type_sw.
11217	* linux-x86-low.c (x86_insert_point): Don't call
11218	insert_memory_breakpoint.
11219	(x86_remove_point): Don't call remove_memory_breakpoint.
11220
112212015-04-01  Pedro Alves  <palves@redhat.com>
11222	    Cleber Rosa  <crosa@redhat.com>
11223
11224	* server.c (gdbserver_usage): Reorganize and extend the usage
11225	message.
11226
112272015-03-24  Pedro Alves  <palves@redhat.com>
11228
11229	* linux-low.c (check_stopped_by_breakpoint): Tweak debug log
11230	output.  Also dump TRAP_TRACE.
11231	(linux_low_filter_event): In debug output, distinguish a
11232	resume_stop SIGSTOP from a delayed SIGSTOP.
11233
112342015-03-24  Gary Benson  <gbenson@redhat.com>
11235
11236	* linux-x86-low.c (x86_linux_new_thread): Moved to
11237	nat/x86-linux.c.
11238	(x86_linux_prepare_to_resume): Likewise.
11239
112402015-03-24  Gary Benson  <gbenson@redhat.com>
11241
11242	* Makefile.in (x86-linux-dregs.o): New rule.
11243	* configure.srv: Add x86-linux-dregs.o to relevant targets.
11244	* linux-x86-low.c: Include nat/x86-linux-dregs.h.
11245	(u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
11246	(x86_linux_dr_get): Likewise.
11247	(x86_linux_dr_set): Likewise.
11248	(update_debug_registers_callback): Likewise.
11249	(x86_linux_dr_set_addr): Likewise.
11250	(x86_linux_dr_get_addr): Likewise.
11251	(x86_linux_dr_set_control): Likewise.
11252	(x86_linux_dr_get_control): Likewise.
11253	(x86_linux_dr_get_status): Likewise.
11254	(x86_linux_update_debug_registers): Likewise.
11255
112562015-03-24  Gary Benson  <gbenson@redhat.com>
11257
11258	* linux-x86-low.c (x86_linux_update_debug_registers):
11259	New function, factored out from...
11260	(x86_linux_prepare_to_resume): ...this.
11261
112622015-03-24  Gary Benson  <gbenson@redhat.com>
11263
11264	* linux-x86-low.c (x86_linux_dr_get): Update comments.
11265	(x86_linux_dr_set): Likewise.
11266	(update_debug_registers_callback): Likewise.
11267	(x86_linux_dr_set_addr): Likewise.
11268	(x86_linux_dr_get_addr): Likewise.
11269	(x86_linux_dr_set_control): Likewise.
11270	(x86_linux_dr_get_control): Likewise.
11271	(x86_linux_dr_get_status): Likewise.
11272	(x86_linux_prepare_to_resume): Likewise.
11273
112742015-03-24  Gary Benson  <gbenson@redhat.com>
11275
11276	* linux-x86-low.c (x86_linux_dr_get): Add assertion.
11277	Use perror_with_name.  Pass string through gettext.
11278	(x86_linux_dr_set): Likewise.
11279
112802015-03-24  Gary Benson  <gbenson@redhat.com>
11281
11282	* linux-x86-low.c (x86_dr_low_set_addr): Rename to...
11283	(x86_linux_dr_set_addr): ...this.
11284	(x86_dr_low_get_addr): Rename to...
11285	(x86_linux_dr_get_addr): ...this.
11286	(x86_dr_low_set_control): Rename to...
11287	(x86_linux_dr_set_control): ...this.
11288	(x86_dr_low_get_control): Rename to...
11289	(x86_linux_dr_get_control): ...this.
11290	(x86_dr_low_get_status): Rename to...
11291	(x86_linux_dr_get_status): ...this.
11292	(x86_dr_low): Update with new function names.
11293
112942015-03-24  Gary Benson  <gbenson@redhat.com>
11295
11296	* Makefile.in (x86-linux.o): New rule.
11297	* configure.srv: Add x86-linux.o to relevant targets.
11298	* linux-low.c (lwp_set_arch_private_info): New function.
11299	(lwp_arch_private_info): Likewise.
11300	* linux-x86-low.c: Include nat/x86-linux.h.
11301	(arch_lwp_info): Removed structure.
11302	(update_debug_registers_callback):
11303	Use lwp_set_debug_registers_changed.
11304	(x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
11305	and lwp_set_debug_registers_changed.
11306	(x86_linux_new_thread): Use lwp_set_debug_registers_changed.
11307
113082015-03-24  Gary Benson  <gbenson@redhat.com>
11309
11310	* linux-low.h (linux_target_ops) <new_thread>: Changed signature.
11311	* linux-arm-low.c (arm_new_thread): Likewise.
11312	* linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
11313	* linux-mips-low.c (mips_linux_new_thread): Likewise.
11314	* linux-x86-low.c (x86_linux_new_thread): Likewise.
11315	* linux-low.c (add_lwp): Update the_low_target.new_thread call.
11316
113172015-03-24  Gary Benson  <gbenson@redhat.com>
11318
11319	* linux-low.c (ptid_of_lwp): New function.
11320	(lwp_is_stopped): Likewise.
11321	(lwp_stop_reason): Likewise.
11322	* linux-x86-low.c (update_debug_registers_callback):
11323	Use lwp_is_stopped.
11324	(x86_linux_prepare_to_resume): Use ptid_of_lwp and
11325	lwp_stop_reason.
11326
113272015-03-24  Gary Benson  <gbenson@redhat.com>
11328
11329	* linux-low.h (linux_stop_lwp): Remove declaration.
11330
113312015-03-24  Gary Benson  <gbenson@redhat.com>
11332
11333	* linux-low.h: Include nat/linux-nat.h.
11334	* linux-low.c (iterate_over_lwps_args): New structure.
11335	(iterate_over_lwps_filter): New function.
11336	(iterate_over_lwps): Likewise.
11337	* linux-x86-low.c (update_debug_registers_callback):
11338	Update signature to what iterate_over_lwps expects.
11339	Remove PID check that iterate_over_lwps now performs.
11340	(x86_dr_low_set_addr): Use iterate_over_lwps.
11341	(x86_dr_low_set_control): Likewise.
11342
113432015-03-24  Gary Benson  <gbenson@redhat.com>
11344
11345	* linux-x86-low.c (x86_debug_reg_state): New function.
11346	(x86_linux_prepare_to_resume): Use the above.
11347
113482015-03-24  Gary Benson  <gbenson@redhat.com>
11349
11350	* linux-low.c (current_lwp_ptid): New function.
11351	* linux-x86-low.c: Include nat/linux-nat.h.
11352	(x86_dr_low_get_addr): Use current_lwp_ptid.
11353	(x86_dr_low_get_control): Likewise.
11354	(x86_dr_low_get_status): Likewise.
11355
113562015-03-20  Pedro Alves  <palves@redhat.com>
11357
11358	* tracepoint.c (cmd_qtstatus): Make "str" const.
11359
113602015-03-20  Pedro Alves  <palves@redhat.com>
11361
11362	* server.c (handle_general_set): Make "req_str" const.
11363
113642015-03-19  Pedro Alves  <palves@redhat.com>
11365
11366	* linux-low.c (linux_resume_one_lwp): Rename to ...
11367	(linux_resume_one_lwp_throw): ... this.  Don't handle ESRCH here,
11368	instead call perror_with_name.
11369	(check_ptrace_stopped_lwp_gone): New function.
11370	(linux_resume_one_lwp): Reimplement as wrapper around
11371	linux_resume_one_lwp_throw that swallows errors if the LWP is
11372	gone.
11373
113742015-03-19  Pedro Alves  <palves@redhat.com>
11375
11376	* linux-low.c (count_events_callback, select_event_lwp_callback):
11377	No longer check whether the thread has resume_stop as last resume
11378	kind.
11379
113802015-03-19 Pedro Alves  <palves@redhat.com>
11381
11382	* linux-low.c (count_events_callback, select_event_lwp_callback):
11383	Use the lwp's status_pending_p field, not the thread's.
11384
113852015-03-19  Pedro Alves  <palves@redhat.com>
11386
11387	* linux-low.c (select_event_lwp_callback): Update comments to
11388	no longer mention SIGTRAP.
11389
113902015-03-18  Gary Benson  <gbenson@redhat.com>
11391
11392	* server.c (handle_query): Do not report vFile:fstat as supported.
11393
113942015-03-11  Gary Benson  <gbenson@redhat.com>
11395
11396	* hostio.c (sys/types.h): New include.
11397	(sys/stat.h): Likewise.
11398	(common-remote-fileio.h): Likewise.
11399	(handle_fstat): New function.
11400	(handle_vFile): Handle vFile:fstat packets.
11401
114022015-03-11  Gary Benson  <gbenson@redhat.com>
11403
11404	* configure.ac (AC_CHECK_MEMBERS): Add checks for
11405	struct stat.st_blocks and struct stat.st_blksize.
11406	* configure: Regenerate.
11407	* config.in: Likewise.
11408	* Makefile.in (SFILES): Add common/common-remote-fileio.c.
11409	(OBS): Add common-remote-fileio.o.
11410	(common-remote-fileio.o): New rule.
11411
114122015-03-09  Pedro Alves  <palves@redhat.com>
11413
11414	* tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
11415	'struct sockaddr' pointer in 'accept' call.
11416
114172015-03-09  Pedro Alves  <palves@redhat.com>
11418
11419	Revert:
11420	2015-03-07  Pedro Alves  <palves@redhat.com>
11421	* gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11422	or <winsock2.h> here.  Instead include "gdb_socket.h".
11423	(remote_open): Use union gdb_sockaddr_u.
11424	* remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11425	or <winsock2.h> here.  Instead include "gdb_socket.h".
11426	(handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11427	* tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11428	or <sys/un.h>.
11429	(init_named_socket, gdb_agent_helper_thread): Use union
11430	gdb_sockaddr_u.
11431
114322015-03-07  Pedro Alves  <palves@redhat.com>
11433
11434	* configure.ac (build_warnings): Move
11435	-Wdeclaration-after-statement to the C-specific set.
11436	* configure: Regenerate.
11437
114382015-03-07  Pedro Alves  <palves@redhat.com>
11439
11440	* gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11441	or <winsock2.h> here.  Instead include "gdb_socket.h".
11442	(remote_open): Use union gdb_sockaddr_u.
11443	* remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11444	or <winsock2.h> here.  Instead include "gdb_socket.h".
11445	(handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11446	* tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11447	or <sys/un.h>.
11448	(init_named_socket, gdb_agent_helper_thread): Use union
11449	gdb_sockaddr_u.
11450
114512015-03-07  Pedro Alves  <palves@redhat.com>
11452
11453	Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
11454	instead.
11455
114562015-03-06  Yao Qi  <yao.qi@linaro.org>
11457
11458	* linux-aarch64-low.c (aarch64_insert_point): Use
11459	show_debug_regs as a boolean.
11460	(aarch64_remove_point): Likewise.
11461
114622015-03-05  Pedro Alves  <palves@redhat.com>
11463
11464	* lynx-low.c (lynx_target_ops): Install NULL hooks for
11465	stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
11466	stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
11467	* nto-low.c (nto_target_ops): Likewise.
11468	* spu-low.c (spu_target_ops): Likewise.
11469	* win32-low.c (win32_target_ops): Likewise.
11470
114712015-03-04  Pedro Alves  <palves@redhat.com>
11472
11473	* linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
11474	Decide whether a breakpoint triggered based on the SIGTRAP's
11475	siginfo.si_code.
11476	(thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
11477	breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
11478	(linux_low_filter_event): Check for breakpoints before checking
11479	watchpoints.
11480	(linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
11481	siginfo.si_code.
11482	(linux_stopped_by_sw_breakpoint)
11483	(linux_supports_stopped_by_sw_breakpoint)
11484	(linux_stopped_by_hw_breakpoint)
11485	(linux_supports_stopped_by_hw_breakpoint): New functions.
11486	(linux_target_ops): Install new target methods.
11487
114882015-03-04  Pedro Alves  <palves@redhat.com>
11489
11490	* remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
11491	* server.c (swbreak_feature, hwbreak_feature): New globals.
11492	(handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
11493	(captured_main): Clear swbreak_feature and hwbreak_feature.
11494	* server.h (swbreak_feature, hwbreak_feature): Declare.
11495	* target.h (struct target_ops) <stopped_by_sw_breakpoint,
11496	supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
11497	supports_stopped_by_hw_breakpoint>: New fields.
11498	(target_supports_stopped_by_sw_breakpoint)
11499	(target_stopped_by_sw_breakpoint)
11500	(target_supports_stopped_by_hw_breakpoint)
11501	(target_stopped_by_hw_breakpoint): Declare.
11502
115032015-03-04  Pedro Alves  <palves@redhat.com>
11504
11505	enum lwp_stop_reason -> enum target_stop_reason
11506	* linux-low.c (check_stopped_by_breakpoint): Adjust.
11507	(thread_still_has_status_pending_p, check_stopped_by_watchpoint)
11508	(linux_wait_1, stuck_in_jump_pad_callback)
11509	(move_out_of_jump_pad_callback, linux_resume_one_lwp)
11510	(linux_stopped_by_watchpoint):
11511	* linux-low.h (enum lwp_stop_reason): Delete.
11512	(struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
11513	* linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11514
115152015-03-04  Yao Qi  <yao.qi@linaro.org>
11516
11517	* Makefile.in (SFILES): Add linux-aarch64-low.c.
11518
115192015-03-03  Gary Benson  <gbenson@redhat.com>
11520
11521	* hostio.c (handle_vFile): Fix prefix lengths.
11522
115232015-03-03  Markus Metzger  <markus.t.metzger@intel.com>
11524
11525	* linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
11526	ptr_bits.
11527
115282015-03-02  Andreas Arnez  <arnez@linux.vnet.ibm.com>
11529
11530	* Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
11531	(s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
11532	(clean): Add "rm -f" for above C files.
11533	* configure.srv (srv_regobj): Add s390-vx-linux64.o,
11534	s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
11535	(srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
11536	s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
11537	* linux-s390-low.c (HWCAP_S390_VX): New macro.
11538	(init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
11539	(init_registers_s390x_vx_linux64)
11540	(init_registers_s390x_tevx_linux64)
11541	(tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
11542	(tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
11543	declarations.
11544	(s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
11545	(s390_store_vxrs_high): New functions.
11546	(s390_regsets): Add entries for NT_S390_VXRS_LOW and
11547	NT_S390_VXRS_HIGH.
11548	(s390_arch_setup): Add logic for selecting one of the new target
11549	descriptions.  Activate the new vector regsets if applicable.
11550	(initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
11551	init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
11552	and init_registers_s390x_tevx_linux64.
11553
115542015-03-01  Pedro Alves  <palves@redhat.com>
11555
11556	* linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
11557	parameter.
11558
115592015-02-27  Pedro Alves  <palves@redhat.com>
11560
11561	* linux-x86-low.c (u_debugreg_offset): New function.
11562	(x86_linux_dr_get, x86_linux_dr_set): Use it.
11563
115642015-02-27  Pedro Alves  <palves@redhat.com>
11565
11566	* gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
11567	[!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
11568	[!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
11569	ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
11570	(ps_lsetfpregs, ps_getpid)
11571	(ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
11572	(ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
11573	(ps_lsetxregs, ps_plog): Declare.
11574
115752015-02-27  Pedro Alves  <palves@redhat.com>
11576
11577	* linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
11578	IP_AGENT_EXPORT_FUNC.
11579	* linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
11580	IP_AGENT_EXPORT_FUNC.
11581	* tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
11582	(IP_AGENT_EXPORT): Delete.
11583	(gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11584	(gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11585	(gdb_trampoline_buffer_error, collecting, gdb_collect)
11586	(stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
11587	(trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
11588	(error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
11589	(trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
11590	(traceframe_read_count, traceframe_write_count)
11591	(traceframes_created, trace_state_variables, get_raw_reg)
11592	(get_trace_state_variable_value, set_trace_state_variable_value)
11593	(ust_loaded, helper_thread_id, cmd_buf): Use
11594	IPA_SYM_EXPORTED_NAME.
11595	(stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
11596	(tracepoints) Use IP_AGENT_EXPORT_VAR.
11597	(stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
11598	IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11599	(last_tracepoint): Move into !IN_PROCESS_AGENT block.
11600	(error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
11601	EXTERN_C_PUSH/EXTERN_C_POP.
11602	(trace_state_variables): Use IP_AGENT_EXPORT_VAR.
11603	(trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
11604	wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11605	(trace_buffer_ctrl, trace_buffer_ctrl_curr)
11606	(traceframe_write_count, traceframe_read_count)
11607	(traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
11608	(about_to_request_buffer_space, get_trace_state_variable_value)
11609	(set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
11610	(collecting): Use IP_AGENT_EXPORT_VAR and wrap in
11611	EXTERN_C_PUSH/EXTERN_C_POP.
11612	(gdb_collect): Use IP_AGENT_EXPORT_FUNC.
11613	(ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
11614	(helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
11615	and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11616	(gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11617	(gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11618	(gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
11619	* tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
11620	Define.
11621	(IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
11622	(IP_AGENT_EXPORT_VAR_DECL): Define.
11623	(tracing): Declare.
11624	(gdb_agent_get_raw_reg): Declare.
11625
116262015-02-27  Tom Tromey  <tromey@redhat.com>
11627	    Pedro Alves  <palves@redhat.com>
11628
11629	Rename symbols whose names are reserved C++ keywords throughout.
11630
116312015-02-27  Pedro Alves  <palves@redhat.com>
11632
11633	* Makefile.in (COMPILER): New, get it from autoconf.
11634	(CXX): Get from autoconf instead.
11635	(COMPILE.pre): Use COMPILER.
11636	(CC-LD): Rename to ...
11637	(CC_LD): ... this.  Use COMPILER.
11638	(gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
11639	(CXX_FOR_TARGET): Default to g++ instead of gcc.
11640	* acinclude.m4: Include build-with-cxx.m4.
11641	* configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
11642	Disable -Werror by default if building in C++ mode.
11643	(build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
11644	-Wno-narrowing in C++ mode. Run supported-warning-flags tests with
11645	the C++ compiler.  Save/restore CXXFLAGS too.
11646	* configure: Regenerate.
11647
116482015-02-27  Pedro Alves  <palves@redhat.com>
11649
11650	* acinclude.m4: Include libiberty.m4.
11651	* configure.ac: Call libiberty_INIT.
11652	* config.in, configure: Regenerate.
11653
116542015-02-26  Pedro Alves  <palves@redhat.com>
11655
11656	* linux-low.c (linux_wait_1): When incrementing the PC past a
11657	program breakpoint always use the_low_target.breakpoint_len as
11658	increment, rather than the maximum between that and
11659	the_low_target.decr_pc_after_break.
11660
116612015-02-23  Pedro Alves  <palves@redhat.com>
11662
11663	* linux-low.c (check_stopped_by_breakpoint): Don't check if the
11664	thread was doing a step-over; always adjust the PC if
11665	we stepped over a permanent breakpoint.
11666	(linux_wait_1): If we stepped over breakpoint that was on top of a
11667	permanent breakpoint, manually advance the PC past it.
11668
116692015-02-23  Pedro Alves  <palves@redhat.com>
11670
11671	* linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
11672	modes.
11673	(x86_fill_gregset, x86_store_gregset): Use it when handling
11674	$orig_eax.
11675
116762015-02-20  Pedro Alves  <palves@redhat.com>
11677
11678	* thread-db.c: Include "nat/linux-procfs.h".
11679	(thread_db_init): Skip listing new threads if the kernel supports
11680	PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
11681
116822015-02-20  Pedro Alves  <palves@redhat.com>
11683
11684	* linux-low.c (status_pending_p_callback): Use ptid_match.
11685
116862015-02-19  Antoine Tremblay  <antoine.tremblay@ericsson.com>
11687
11688	PR breakpoints/16812
11689	* linux-low.c (wstatus_maybe_breakpoint): Remove.
11690	(linux_low_filter_event): Update wstatus_maybe_breakpoint name.
11691	(linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
11692
116932015-02-10  Antoine Tremblay <antoine.tremblay@ericsson.com>
11694
11695	PR breakpoints/15956
11696	* tracepoint.c (cmd_qtinit): Add check for current_thread.
11697
116982015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11699
11700	* linux-low.c (linux_low_btrace_conf): Print size.
11701	* server.c (handle_btrace_conf_general_set): New.
11702	(hanle_general_set): Call handle_btrace_conf_general_set.
11703	(handle_query): Report Qbtrace-conf:bts:size as supported.
11704
117052015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11706
11707	* linux-low.c (linux_low_enable_btrace): Update parameters.
11708	(linux_low_btrace_conf): New.
11709	(linux_target_ops)<to_btrace_conf>: Initialize.
11710	* server.c (current_btrace_conf): New.
11711	(handle_btrace_enable): Rename to ...
11712	(handle_btrace_enable_bts): ... this.  Pass &current_btrace_conf
11713	to target_enable_btrace.  Update comment.  Update users.
11714	(handle_qxfer_btrace_conf): New.
11715	(qxfer_packets): Add btrace-conf entry.
11716	(handle_query): Report qXfer:btrace-conf:read as supported packet.
11717	* target.h (target_ops)<enable_btrace>: Update parameters and comment.
11718	(target_ops)<read_btrace_conf>: New.
11719	(target_enable_btrace): Update parameters.
11720	(target_read_btrace_conf): New.
11721
117222015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11723
11724	* server.c (handle_btrace_general_set): Remove call to
11725	target_supports_btrace.
11726	(supported_btrace_packets): New.
11727	(handle_query): Call supported_btrace_packets.
11728	* target.h: include btrace-common.h.
11729	(btrace_target_info): Removed.
11730	(supports_btrace, target_supports_btrace): Update parameters.
11731
117322015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11733
11734	* Makefile.in (SFILES): Add common/btrace-common.c.
11735	(OBS): Add common/btrace-common.o.
11736	(btrace-common.o): Add build rules.
11737	* linux-low: Include btrace-common.h.
11738	(linux_low_read_btrace): Use struct btrace_data.  Call
11739	btrace_data_init and btrace_data_fini.
11740
117412015-02-06  Pedro Alves  <palves@redhat.com>
11742
11743	* thread-db.c (find_new_threads_callback): Add debug output.
11744
117452015-02-04  Pedro Alves  <palves@redhat.com>
11746
11747	* linux-low.c (handle_extended_wait): Don't resume LWPs here.
11748	(resume_stopped_resumed_lwps): New function.
11749	(linux_wait_for_event_filtered): Use it.
11750
117512015-01-15  Sergio Durigan Junior  <sergiodj@redhat.com>
11752
11753	* Makefile.in (SFILES): Add linux-personality.c.
11754	(linux-personality.o): New rule.
11755	* configure.srv (srv_linux_obj): Add linux-personality.o to the
11756	list of objects to be built.
11757	* linux-low.c: Include nat/linux-personality.h.
11758	(linux_create_inferior): Remove code to disable address space
11759	randomization (moved to ../nat/linux-personality.c).  Create
11760	cleanup to disable address space randomization.
11761
117622015-01-15  Sergio Durigan Junior  <sergiodj@redhat.com>
11763
11764	* Makefile.in (posix-strerror.o): New rule.
11765	(mingw-strerror.o): Likewise.
11766	* configure: Regenerated.
11767	* configure.ac: Source file ../common/common.host.  Initialize new
11768	variable srv_host_obs.  Add srv_host_obs to GDBSERVER_DEPFILES.
11769
117702015-01-14  Yao Qi  <yao@codesourcery.com>
11771
11772	* Makefile.in (SFILES): Add nat/ppc-linux.c.
11773	(ppc-linux.o): New rule.
11774	* configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
11775	* configure.ac: AC_CHECK_FUNCS(getauxval).
11776	* config.in: Re-generated.
11777	* configure: Re-generated.
11778	* linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
11779	ppc64_64bit_inferior_p
11780
117812015-01-14  Yao Qi  <yao@codesourcery.com>
11782
11783	* linux-ppc-low.c: Include "nat/ppc-linux.h".
11784	 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
11785	(PPC_FEATURE_HAS_ALTIVEC,  PPC_FEATURE_HAS_SPE): Likewise.
11786	(PT_ORIG_R3, PT_TRAP): Likewise.
11787	(PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
11788	(PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
11789	(PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
11790
117912015-01-10  Joel Brobecker  <brobecker@adacore.com>
11792
11793	* i387-fp.c (i387_cache_to_xsave): In look over
11794	num_avx512_zmmh_high_registers, replace use of struct i387_xsave
11795	zmmh_low_space field by use of zmmh_high_space.
11796
117972015-01-09  Pedro Alves  <palves@redhat.com>
11798
11799	* linux-low.c (step_over_bkpt): Move higher up in the file.
11800	(handle_extended_wait): Don't store the stop_pc here.
11801	(get_stop_pc): Adjust comments and rename to ...
11802	(check_stopped_by_breakpoint): ... this.  Record whether the LWP
11803	stopped for a software breakpoint or hardware breakpoint.
11804	(thread_still_has_status_pending_p): New function.
11805	(status_pending_p_callback): Use
11806	thread_still_has_status_pending_p.  If the event is no longer
11807	interesting, resume the LWP.
11808	(handle_tracepoints): Add assert.
11809	(maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
11810	(wstatus_maybe_breakpoint): New function.
11811	(cancel_breakpoint): Delete function.
11812	(check_stopped_by_watchpoint): New function, factored out from
11813	linux_low_filter_event.
11814	(lp_status_maybe_breakpoint): Delete function.
11815	(linux_low_filter_event): Remove filter_ptid argument.
11816	Leave thread group exits pending here.	Store the LWP's stop PC.
11817	Always leave events pending.
11818	(linux_wait_for_event_filtered): Pull all events out of the
11819	kernel, and leave them all pending.
11820	(count_events_callback, select_event_lwp_callback): Consider all
11821	events.
11822	(cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
11823	(select_event_lwp): Only give preference to the stepping LWP in
11824	all-stop mode.	Adjust comments.
11825	(ignore_event): New function.
11826	(linux_wait_1): Delete 'retry' label.  Use ignore_event.  Remove
11827	references to cancel_breakpoints.  Adjust to renames.  Also give
11828	equal priority to all LWPs that have had events in non-stop mode.
11829	If reporting a software breakpoint event, unadjust the LWP's PC.
11830	(linux_wait): If linux_wait_1 returned an ignored event, retry.
11831	(stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
11832	Adjust.
11833	(linux_resume_one_lwp): Store the LWP's PC.  Adjust.
11834	(resume_status_pending_p): Use thread_still_has_status_pending_p.
11835	(linux_stopped_by_watchpoint): Adjust.
11836	(linux_target_ops): Remove reference to linux_cancel_breakpoints.
11837	* linux-low.h (enum lwp_stop_reason): New.
11838	(struct lwp_info) <stop_pc>: Adjust comment.
11839	<stopped_by_watchpoint>: Delete field.
11840	<stop_reason>: New field.
11841	* linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11842	* mem-break.c (software_breakpoint_inserted_here)
11843	(hardware_breakpoint_inserted_here): New function.
11844	* mem-break.h (software_breakpoint_inserted_here)
11845	(hardware_breakpoint_inserted_here): Declare.
11846	* target.h (struct target_ops) <cancel_breakpoints>: Remove field.
11847	(cancel_breakpoints): Delete.
11848	* tracepoint.c (clear_installed_tracepoints, stop_tracing)
11849	(upload_fast_traceframes): Remove references to
11850	cancel_breakpoints.
11851
118522015-01-09  Pedro Alves  <palves@redhat.com>
11853
11854	* thread-db.c (find_new_threads_callback): Ignore thread if the
11855	kernel thread ID is -1.
11856
118572015-01-09  Pedro Alves  <palves@redhat.com>
11858
11859	* linux-low.c (linux_attach_fail_reason_string): Move to
11860	nat/linux-ptrace.c, and rename.
11861	(linux_attach_lwp): Update comment.
11862	(attach_proc_task_lwp_callback): New function.
11863	(linux_attach): Adjust to rename and use
11864	linux_proc_attach_tgid_threads.
11865	(linux_attach_fail_reason_string): Delete declaration.
11866
118672015-01-01  Joel Brobecker  <brobecker@adacore.com>
11868
11869	* gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
11870	* server.c (gdbserver_version): Likewise.
11871
118722014-12-29  Sergio Durigan Junior  <sergiodj@redhat.com>
11873
11874	* remote-utils.c: Include ctype.h.
11875	(input_interrupt): Explicitly handle the case when the char
11876	received is the NUL byte.  Improve the printing of non-ASCII
11877	characters.
11878
118792014-12-16  Joel Brobecker  <brobecker@adacore.com>
11880
11881	* linux-low.c (linux_low_filter_event): Update call to
11882	linux_enable_event_reporting following the addition of
11883	a new parameter to that function.
11884
118852014-12-16  Catalin Udma  <catalin.udma@freescale.com>
11886
11887	PR server/17457
11888	* linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
11889	(AARCH64_FPCR_REGNO): Likewise.
11890	(AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
11891	(aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
11892	(aarch64_store_fpregset): Likewise.
11893
118942014-12-15  Joel Brobecker  <brobecker@adacore.com>
11895
11896	* lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
11897	Remove FIXME comment about assumption about N.
11898
118992014-12-13  Joel Brobecker  <brobecker@adacore.com>
11900
11901	* configure.ac: If large-file support is disabled in GDBserver,
11902	pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
11903	* configure: Regenerate.
11904
119052014-12-12  Andreas Arnez  <arnez@linux.vnet.ibm.com>
11906
11907	* linux-low.c (regsets_fetch_inferior_registers): Suppress the
11908	warning upon ENODATA from ptrace.
11909	* linux-s390-low.c (s390_store_tdb): New.
11910	(s390_regsets): Add regset for NT_S390_TDB.
11911
119122014-12-12  Andreas Arnez  <arnez@linux.vnet.ibm.com>
11913
11914	* linux-low.c (regsets_store_inferior_registers): Skip regsets
11915	without a fill_function.
11916	* linux-s390-low.c (s390_fill_last_break): Remove.
11917	(s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
11918	(s390_arch_setup): Use regset's size instead of fill_function for
11919	loop end condition.
11920
119212014-12-12  Andreas Arnez  <arnez@linux.vnet.ibm.com>
11922
11923	* linux-low.c (regsets_fetch_inferior_registers): Do not invoke
11924	the regset's store function when ptrace returned an error.
11925	* regcache.c (get_thread_regcache): Invalidate register cache
11926	before fetching inferior's registers.
11927
119282014-12-12  Andreas Arnez  <arnez@linux.vnet.ibm.com>
11929
11930	* linux-low.c (regsets_fetch_inferior_registers): Rephrase
11931	while-loop as for-loop.
11932	(regsets_store_inferior_registers): Likewise.
11933
119342014-11-28  Yao Qi  <yao@codesourcery.com>
11935
11936	* configure.ac(AC_CHECK_FUNCS): Remove readlink.
11937	* config.in, configure: Re-generate.
11938	* hostio.c (handle_unlink): Remove code checking HAVE_READLINK
11939	is defined.
11940
119412014-11-21  Yao Qi  <yao@codesourcery.com>
11942
11943	* configure.ac: Don't invoke AC_FUNC_ALLOCA.
11944	(AC_CHECK_HEADERS): Remove malloc.h.
11945	* configure: Re-generated.
11946	* config.in: Re-generated.
11947	* server.h: Don't include alloca.h and malloc.h.
11948	* gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
11949	Don't include malloc.h.
11950
119512014-11-17  Joel Brobecker  <brobecker@adacore.com>
11952
11953	* lynx-low.c (lynx_write_memory): Put lynx_read_memory and
11954	corresponding ERRNO check in same block.
11955
119562014-11-12  Pedro Alves  <palves@redhat.com>
11957
11958	* server.c (cont_thread): Update comment.
11959	(start_inferior, attach_inferior): No longer clear cont_thread.
11960	(handle_v_cont): No longer set cont_thread.
11961	(captured_main): Clear cont_thread each time a GDB connects.
11962
119632014-11-12  Pedro Alves  <palves@redhat.com>
11964
11965	* linux-low.c (linux_wait_1): Don't force a wait for the Hc
11966	thread, and don't resume all threads if the Hc thread has exited.
11967
119682014-11-12  Pedro Alves  <palves@redhat.com>
11969
11970	* linux-low.c (linux_request_interrupt): Always send a SIGINT to
11971	the process group instead of to a specific LWP.
11972
119732014-10-15  Pedro Alves  <palves@redhat.com>
11974
11975	PR server/17487
11976	* win32-arm-low.c (arm_set_thread_context): Remove current_event
11977	parameter.
11978	(arm_set_thread_context): Delete.
11979	(the_low_target): Adjust.
11980	* win32-i386-low.c (debug_registers_changed)
11981	(debug_registers_used): Delete.
11982	(update_debug_registers_callback): New function.
11983	(x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
11984	needing to update their debug registers.
11985	(win32_get_current_dr): New function.
11986	(x86_dr_low_get_addr, x86_dr_low_get_control)
11987	(x86_dr_low_get_status): Fetch the debug register from the thread
11988	record's context.
11989	(i386_initial_stuff): Adjust.
11990	(i386_get_thread_context): Remove current_event parameter.  Don't
11991	clear debug_registers_changed nor copy DR values to
11992	debug_reg_state.
11993	(i386_set_thread_context): Delete.
11994	(i386_prepare_to_resume): New function.
11995	(i386_thread_added): Mark the thread as needing to update irs
11996	debug registers.
11997	(the_low_target): Remove i386_set_thread_context and install
11998	i386_prepare_to_resume.
11999	* win32-low.c (win32_get_thread_context): Adjust.
12000	(win32_set_thread_context): Use SetThreadContext
12001	directly.
12002	(win32_prepare_to_resume): New function.
12003	(win32_require_context): New function, factored out from ...
12004	(thread_rec): ... this.
12005	(continue_one_thread): Call win32_prepare_to_resume on each thread
12006	we're about to continue.
12007	(win32_resume): Call win32_prepare_to_resume on the event thread.
12008	* win32-low.h (struct win32_thread_info)
12009	<debug_registers_changed>: New field.
12010	(struct win32_target_ops): Change prototype of set_thread_context,
12011	delete set_thread_context and add prepare_to_resume.
12012	(win32_require_context): New declaration.
12013
120142014-10-08  Gary Benson  <gbenson@redhat.com>
12015
12016	* server.h: Do not include common-exceptions.h.
12017
120182014-10-08  Gary Benson  <gbenson@redhat.com>
12019
12020	* server.h: Do not include cleanups.h.
12021
120222014-09-30  James Hogan  <james.hogan@imgtec.com>
12023
12024	* Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
12025	mips64-dsp-linux.c.
12026
120272014-09-23  Yao Qi  <yao@codesourcery.com>
12028
12029	* linux-low.c (lp_status_maybe_breakpoint): New function.
12030	(linux_low_filter_event): Call lp_status_maybe_breakpoint.
12031	(count_events_callback): Likewise.
12032	(select_event_lwp_callback): Likewise.
12033	(cancel_breakpoints_callback): Likewise.
12034
120352014-09-19  Don Breazeal  <donb@codesourcery.com>
12036
12037	* linux-low.c (handle_extended_wait): Call
12038	linux_ptrace_get_extended_event.
12039	(get_stop_pc, get_detach_signal, linux_low_filter_event): Call
12040	linux_is_extended_waitstatus.
12041
120422014-09-16  Joel Brobecker  <brobecker@adacore.com>
12043
12044	* Makefile.in (CPPFLAGS): Define.
12045	(INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
12046	(IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
12047
120482014-09-16  Gary Benson  <gbenson@redhat.com>
12049
12050	* inferiors.h (current_inferior): Renamed as...
12051	(current_thread): New variable.  All uses updated.
12052	* linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
12053	(maybe_move_out_of_jump_pad): Likewise.
12054	(cancel_breakpoint): Likewise.
12055	(linux_low_filter_event): Likewise.
12056	(wait_for_sigstop): Likewise.
12057	(linux_resume_one_lwp): Likewise.
12058	(need_step_over_p): Likewise.
12059	(start_step_over): Likewise.
12060	(linux_stabilize_threads): Renamed save_inferior as saved_thread.
12061	* linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
12062	* proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
12063	and save_inferior as saved_thread.
12064	* regcache.c (get_thread_regcache): Renamed saved_inferior as
12065	saved_thread.
12066	(regcache_invalidate_thread): Likewise.
12067	* remote-utils.c (prepare_resume_reply): Likewise.
12068	* thread-db.c (thread_db_get_tls_address): Likewise.
12069	(disable_thread_event_reporting): Likewise.
12070	(remove_thread_event_breakpoints): Likewise.
12071	* tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
12072	as saved_thread.
12073	* target.h (set_desired_inferior): Renamed as...
12074	(set_desired_thread): New declaration.  All uses updated.
12075	* server.c (myresume): Updated comment to reference thread instead
12076	of inferior.
12077	(handle_serial_event): Likewise.
12078	(handle_target_event): Likewise.
12079
120802014-09-12  Tom Tromey  <tromey@redhat.com>
12081	    Gary Benson  <gbenson@redhat.com>
12082
12083	* regcache.h: Include common-regcache.h.
12084	(regcache_read_pc): Don't declare.
12085	* regcache.c (get_thread_regcache_for_ptid): New function.
12086
120872014-09-11  Tom Tromey  <tromey@redhat.com>
12088	    Gary Benson  <gbenson@redhat.com>
12089
12090	* symbol.c: New file.
12091	* Makefile.in (SFILES): Add symbol.c.
12092	(OBS): Add symbol.o.
12093
120942014-09-11  Gary Benson  <gbenson@redhat.com>
12095
12096	* target.c (target_stop_ptid, target_continue_ptid): New
12097	functions.
12098
120992014-09-11  Tom Tromey  <tromey@redhat.com>
12100	    Gary Benson  <gbenson@redhat.com>
12101
12102	* target.h: Include target/target.h.
12103	* target.c (target_read_memory, target_read_uint32)
12104	(target_write_memory): New functions.
12105
121062014-09-11  Gary Benson  <gbenson@redhat.com>
12107
12108	* server.h (debug_hw_points): Don't declare.
12109	* server.c (debug_hw_points): Don't define.  Replace all uses
12110	with show_debug_regs.
12111	* linux-aarch64-low.c (debug_hw_points): Don't define.  Replace
12112	all uses with show_debug_regs.
12113
121142014-09-08  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
12115
12116	* linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
12117	endianness into account.
12118	(ppc_supply_ptrace_register): Likewise.
12119
121202014-09-03  James Hogan  <james.hogan@imgtec.com>
12121
12122	* linux-mips-low.c (mips_read_description): Reset errno to 0 prior
12123	to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
12124
121252014-09-03  Gary Benson  <gbenson@redhat.com>
12126
12127	* linux-x86-low.c (x86_linux_prepare_to_resume): Use
12128	ALL_DEBUG_ADDRESS_REGISTERS.
12129
121302014-09-02  Gary Benson  <gbenson@redhat.com>
12131
12132	* i386-low.h: Renamed as...
12133	* x86-low.h: New file.  All type, function and variable name
12134	prefixes changed from "i386_" to "x86_".  All references updated.
12135	* i386-low.c: Renamed as...
12136	* x86-low.c: New file.  All type, function and variable name
12137	prefixes changed from "i386_" to "x86_".  All references updated.
12138
121392014-09-02  Gary Benson  <gbenson@redhat.com>
12140
12141	* linux-x86-low.c (x86_linux_new_process): Use XCNEW.
12142	(x86_linux_new_thread): Likewise.
12143
121442014-08-29  Gary Benson  <gbenson@redhat.com>
12145
12146	* server.h (setjmp.h): Do not include.
12147	(toplevel): Do not declare.
12148	(common-exceptions.h): Include.
12149	(cleanups.h): Likewise.
12150	* server.c (toplevel): Do not define.
12151	(exit_code): New static global.
12152	(detach_or_kill_for_exit_cleanup): New function.
12153	(main): New function.  Original main renamed to...
12154	(captured_main): New function.
12155	* utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
12156
121572014-08-29  Gary Benson  <gbenson@redhat.com>
12158
12159	* Makefile.in (SFILES): Add common/common-exceptions.c.
12160	(OBS): Add common-exceptions.o.
12161	(common-exceptions.o): New rule.
12162	* utils.c (prepare_to_throw_exception): New function.
12163
121642014-08-29  Gary Benson  <gbenson@redhat.com>
12165
12166	* config.in: Regenerate.
12167	* configure: Likewise.
12168
121692014-08-29  Gary Benson  <gbenson@redhat.com>
12170
12171	* Makefile.in (SFILES): Add common/cleanups.c.
12172	(OBS): cleanups.o.
12173	(cleanups.o): New rule.
12174
121752014-08-29  Gary Benson  <gbenson@redhat.com>
12176
12177	* utils.c (internal_vwarning): New function.
12178
121792014-08-28  Gary Benson  <gbenson@redhat.com>
12180
12181	* utils.h (fatal): Remove declaration.
12182	* utils.c (fatal): Remove function.
12183
121842014-08-28  Gary Benson  <gbenson@redhat.com>
12185
12186	* tracepoint.c (gdb_agent_init): Replace fatal with
12187	perror_with_name.
12188	(initialize_tracepoint): Likewise.
12189
121902014-08-28  Gary Benson  <gbenson@redhat.com>
12191
12192	* remote-utils.c (remote_prepare): Replace fatal with error.
12193
121942014-08-28  Gary Benson  <gbenson@redhat.com>
12195
12196	* linux-low.c (linux_async): Replace fatal with warning.
12197	Tidy up and return.
12198	(linux_start_non_stop): Return -1 if linux_async failed.
12199
122002014-08-28  Gary Benson  <gbenson@redhat.com>
12201
12202	* linux-x86-low.c (i386_dr_low_set_addr): Replace check with
12203	gdb_assert.
12204	(i386_dr_low_get_addr): Remove vague comment.
12205	* win32-i386-low.c (i386_dr_low_set_addr): Replace check with
12206	gdb_assert.
12207
122082014-08-28  Gary Benson  <gbenson@redhat.com>
12209
12210	* inferiors.c (get_thread_process): Replace check with gdb_assert.
12211	* linux-low.c (linux_wait_for_event_filtered): Replace fatal with
12212	internal_error.
12213	(linux_resume_one_lwp): Likewise.
12214	* linux-x86-low.c (x86_siginfo_fixup): Replace checks with
12215	gdb_assert.
12216	* mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
12217	with internal_error.
12218	* regcache.c (get_thread_regcache): Replace check with gdb_assert.
12219	(init_register_cache): Replace fatal with gdb_assert_not_reached.
12220	(find_register_by_name): Replace fatal with internal_error.
12221	(find_regno): Likewise.
12222	* tdesc.c (init_target_desc): Replace check with gdb_assert.
12223	* thread-db.c (thread_db_create_event): Likewise.
12224	(thread_db_load_search): Likewise.
12225	(try_thread_db_load_1): Likewise.
12226	* tracepoint.c (get_jump_space_head): Replace fatal with
12227	internal_error.
12228	(claim_trampoline_space): Likewise.
12229	(have_fast_tracepoint_trampoline_buffer): Likewise.
12230	(cmd_qtstart): Likewise.
12231	(stop_tracing): Likewise.
12232	(fast_tracepoint_collecting): Likewise.
12233	(target_malloc): Likewise.
12234	(download_tracepoint): Likewise.
12235	(download_trace_state_variables): Replace check with gdb_assert.
12236	(upload_fast_traceframes): Replace fatal with internal_error.
12237
122382014-08-19  Tom Tromey  <tromey@redhat.com>
12239	    Gary Benson  <gbenson@redhat.com>
12240
12241	* Makefile.in (SFILES): Add common/common-debug.c.
12242	(OBS): Add common-debug.o.
12243	(common-debug.o): New rule.
12244	* debug.h (debug_printf): Don't declare.
12245	* debug.c (debug_printf): Renamed and rewritten as...
12246	(debug_vprintf): New function.
12247
122482014-08-19  Gary Benson  <gbenson@redhat.com>
12249
12250	* utils.h: Do not include print-utils.h.
12251
122522014-08-19  Tom Tromey  <tromey@redhat.com>
12253	    Gary Benson  <gbenson@redhat.com>
12254
12255	* server.h: Add static assertion.
12256	(gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
12257
122582014-08-19  Tom Tromey  <tromey@redhat.com>
12259	    Gary Benson  <gbenson@redhat.com>
12260
12261	* Makefile.in (SFILES): Add common/errors.c.
12262	(OBS): Add errors.o.
12263	(IPA_OBS): Add errors-ipa.o.
12264	(errors.o): New rule.
12265	(errors-ipa.o): Likewise.
12266	* utils.h (perror_with_name, error, warning): Don't declare.
12267	* utils.c (warning): Renamed and rewritten as...
12268	(vwarning): New function.
12269	(error): Renamed and rewritten as...
12270	(verror): New function.
12271	(internal_error): Renamed and rewritten as...
12272	(internal_verror): New function.
12273
122742014-08-07  Gary Benson  <gbenson@redhat.com>
12275
12276	* configure.ac (AC_CHECK_HEADERS): Remove errno.h.
12277	* configure: Regenerate.
12278	* config.in: Likewise.
12279	* server.h: Do not include errno.h.
12280	* event-loop.c: Likewise.
12281	* hostio-errno.c: Likewise.
12282	* linux-low.c: Likewise.
12283	* remote-utils.c: Likewise.
12284	* spu-low.c: Likewise.
12285	* utils.c: Likewise.
12286	* gdbreplay.c: Unconditionally include errno.h.
12287
122882014-08-07  Gary Benson  <gbenson@redhat.com>
12289
12290	* server.h: Do not include string.h.
12291	* event-loop.c: Likewise.
12292	* linux-low.c: Likewise.
12293	* regcache.c: Likewise.
12294	* remote-utils.c: Likewise.
12295	* spu-low.c: Likewise.
12296	* utils.c: Likewise.
12297
122982014-08-07  Gary Benson  <gbenson@redhat.com>
12299
12300	* server.h: Do not include gdb_assert.h.
12301
123022014-08-07  Gary Benson  <gbenson@redhat.com>
12303
12304	* server.h: Do not include common-utils.h.
12305
123062014-08-07  Gary Benson  <gbenson@redhat.com>
12307
12308	* server.h: Do not include ptid.h.
12309	* notif.h: Likewise.
12310
123112014-08-07  Gary Benson  <gbenson@redhat.com>
12312
12313	* server.h: Do not include gdb_locale.h.
12314
123152014-08-07  Gary Benson  <gbenson@redhat.com>
12316
12317	* server.h: Do not include gdb/signals.h.
12318	* win32-low.c: Likewise.
12319
123202014-08-07  Gary Benson  <gbenson@redhat.com>
12321
12322	* server.h: Do not include pathmax.h.
12323
123242014-08-07  Gary Benson  <gbenson@redhat.com>
12325
12326	* server.h: Do not include libiberty.h.
12327	* linux-bfin-low.c: Likewise.
12328
123292014-08-07  Gary Benson  <gbenson@redhat.com>
12330
12331	* server.h: Do not include ansidecl.h.
12332
123332014-08-07  Gary Benson  <gbenson@redhat.com>
12334
12335	* linux-x86-low.c: Do not include stddef.h.
12336	* lynx-ppc-low.c: Likewise.
12337	* tracepoint.c: Likewise.
12338
123392014-08-07  Gary Benson  <gbenson@redhat.com>
12340
12341	* server.h: Do not include stdarg.h.
12342	* nto-low.c: Likewise.
12343
123442014-08-07  Gary Benson  <gbenson@redhat.com>
12345
12346	* server.h: Do not include stdlib.h.
12347	* inferiors.c: Likewise.
12348	* linux-low.c: Likewise.
12349	* regcache.c: Likewise.
12350	* spu-low.c: Likewise.
12351	* tracepoint.c: Likewise.
12352	* utils.c: Likewise.
12353
123542014-08-07  Gary Benson  <gbenson@redhat.com>
12355
12356	* server.h: Do not include stdio.h.
12357	* linux-low.c: Likewise.
12358	* remote-utils.c: Likewise.
12359	* spu-low.c: Likewise.
12360	* utils.c: Likewise.
12361	* wincecompat.c: Likewise.
12362
123632014-08-06  Gary Benson  <gbenson@redhat.com>
12364
12365	* regcache.c (init_register_cache): Move conditionals inside if.
12366
123672014-08-06  Gary Benson  <gbenson@redhat.com>
12368
12369	* linux-low.c (linux_supports_non_stop): Use target_is_async_p.
12370
123712014-07-31  Gary Benson  <gbenson@redhat.com>
12372
12373	* ax.h: Do not include server.h.
12374	* gdbthread.h: Likewise.
12375	* lynx-low.h: Likewise.
12376	* notif.h: Likewise.
12377
123782014-07-30  Gary Benson  <gbenson@redhat.com>
12379
12380	* server.h: Include common-defs.h.
12381	Do not include config.h or build-gnulib-gdbserver/config.h.
12382
123832014-07-30  Gary Benson  <gbenson@redhat.com>
12384
12385	* hostio-errno.c: Move server.h to top of includes list.
12386	* inferiors.c: Likewise.
12387	* linux-x86-low.c: Likewise.
12388	* notif.c: Include server.h.
12389
123902014-07-24  Tom Tromey  <tromey@redhat.com>
12391	    Gary Benson  <gbenson@redhat.com>
12392
12393	* server.h (CORE_ADDR): Now unsigned.
12394
123952014-07-16  Pedro Alves  <palves@redhat.com>
12396
12397	* linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
12398
123992014-07-15  Pedro Alves  <palves@redhat.com>
12400
12401	* linux-low.c (linux_kill_one_lwp): Save errno and work with saved
12402	copy.
12403
124042014-07-11  Pedro Alves  <palves@redhat.com>
12405
12406	* linux-low.c (kill_wait_lwp): New function, based on
12407	kill_one_lwp_callback, but use my_waitpid directly.
12408	(kill_one_lwp_callback, linux_kill): Use it.
12409
124102014-06-23  Pedro Alves  <palves@redhat.com>
12411
12412	* linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
12413	before setting DR0..DR3.
12414
124152014-06-20  Gary Benson  <gbenson@redhat.com>
12416
12417	* configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
12418	* configure: Regenerated.
12419	* config.in: Likewise.
12420
124212014-06-20  Gary Benson  <gbenson@redhat.com>
12422
12423	* Makefile.in (SFILES): Update locations for files moved
12424	from common to nat.
12425	(object file files): Reordered.
12426
124272014-06-20  Gary Benson  <gbenson@redhat.com>
12428
12429	* i386-low.h (i386_dr_low_can_set_addr): Removed.
12430	(i386_dr_low_set_addr): Likewise.
12431	(i386_dr_low_get_addr): Likewise.
12432	(i386_dr_low_can_set_control): Likewise.
12433	(i386_dr_low_set_control): Likewise.
12434	(i386_dr_low_get_control): Likewise.
12435	(i386_dr_low_get_status): Likewise.
12436	(i386_get_debug_register_length): Likewise.
12437	* linux-x86-low.c (i386_dr_low_set_addr):
12438	Changed signature.  Made static.
12439	(i386_dr_low_get_addr): Likewise.
12440	(i386_dr_low_set_control): Likewise.
12441	(i386_dr_low_get_control): Likewise.
12442	(i386_dr_low_get_status): Likewise.
12443	(i386_dr_low): New global variable.
12444	* win32-i386-low.c (i386_dr_low_set_addr):
12445	Changed signature.  Made static.
12446	(i386_dr_low_get_addr): Likewise.
12447	(i386_dr_low_set_control): Likewise.
12448	(i386_dr_low_get_control): Likewise.
12449	(i386_dr_low_get_status): Likewise.
12450	(i386_dr_low): New global variable.
12451
124522014-06-20  Marcus Shawcroft  <marcus.shawcroft@arm.com>
12453
12454	* configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
12455	* Makefile.in (AR, AR_FLAGS): Define.
12456	* configure: Regenerate.
12457
124582014-06-19  Gary Benson  <gbenson@redhat.com>
12459
12460	* Makefile.in (i386-dregs.o): New rule.
12461	* configure.srv: Add i386-dregs.o to all targets using i386-low.o.
12462	* i386-low.c (target.h): Remove include.
12463	(TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
12464	(DR_CONTROL_SHIFT): Likewise.
12465	(DR_CONTROL_SIZE): Likewise.
12466	(DR_RW_EXECUTE): Likewise.
12467	(DR_RW_WRITE): Likewise.
12468	(DR_RW_READ): Likewise.
12469	(DR_RW_IORW): Likewise.
12470	(DR_LEN_1): Likewise.
12471	(DR_LEN_2): Likewise.
12472	(DR_LEN_4): Likewise.
12473	(DR_LEN_8): Likewise.
12474	(DR_LOCAL_ENABLE_SHIFT): Likewise.
12475	(DR_GLOBAL_ENABLE_SHIFT): Likewise.
12476	(DR_ENABLE_SIZE): Likewise.
12477	(DR_LOCAL_SLOWDOWN): Likewise.
12478	(DR_GLOBAL_SLOWDOWN): Likewise.
12479	(DR_CONTROL_RESERVED): Likewise.
12480	(I386_DR_CONTROL_MASK): Likewise.
12481	(I386_DR_VACANT): Likewise.
12482	(I386_DR_LOCAL_ENABLE): Likewise.
12483	(I386_DR_GLOBAL_ENABLE): Likewise.
12484	(I386_DR_DISABLE): Likewise.
12485	(I386_DR_SET_RW_LEN): Likewise.
12486	(I386_DR_GET_RW_LEN): Likewise.
12487	(I386_DR_WATCH_HIT): Likewise.
12488	(i386_wp_op_t): Likewise.
12489	(i386_show_dr): Likewise.
12490	(i386_length_and_rw_bits): Likewise.
12491	(i386_insert_aligned_watchpoint): Likewise.
12492	(i386_remove_aligned_watchpoint): Likewise.
12493	(i386_handle_nonaligned_watchpoint): Likewise.
12494	i386_update_inferior_debug_regs(): Likewise.
12495	(i386_dr_insert_watchpoint): Likewise.
12496	(i386_dr_remove_watchpoint): Likewise.
12497	(i386_dr_region_ok_for_watchpoint): Likewise.
12498	(i386_dr_stopped_data_address): Likewise.
12499	(i386_dr_stopped_by_watchpoint): Likewise.
12500
125012014-06-19  Gary Benson  <gbenson@redhat.com>
12502
12503	* i386-low.c (i386_dr_show): Renamed to
12504	i386_show_dr and made static.  All uses updated.
12505	(i386_dr_length_and_rw_bits): Renamed to
12506	i386_length_and_rw_bits and made static.
12507	All uses updated.
12508	(i386_dr_insert_aligned_watchpoint): Renamed to
12509	i386_insert_aligned_watchpoint and made static.
12510	All uses updated.
12511	(i386_dr_remove_aligned_watchpoint): Renamed to
12512	i386_remove_aligned_watchpoint and made static.
12513	All uses updated.
12514	(i386_dr_update_inferior_debug_regs): Renamed to
12515	i386_update_inferior_debug_regs and made static.
12516	All uses updated.
12517
125182014-06-18  Gary Benson  <gbenson@redhat.com>
12519
12520	* i386-low.h (i386_dr_low_can_set_addr): New macro.
12521	(i386_dr_low_can_set_control): Likewise.
12522	(i386_get_debug_register_length): Likewise.
12523	* i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
12524	(i386_dr_low_can_set_control): Likewise.
12525	(i386_get_debug_register_length): Likewise.
12526
125272014-06-17  Gary Benson  <gbenson@redhat.com>
12528
12529	* i386-low.h (i386-dregs.h): New include.
12530	(DR_FIRSTADDR): Now in i386-dregs.h.
12531	(DR_LASTADDR): Likewise.
12532	(DR_NADDR): Likewise.
12533	(DR_STATUS): Likewise.
12534	(DR_CONTROL): Likewise.
12535	(i386_debug_reg_state): Likewise.
12536	(i386_dr_insert_watchpoint): Likewise.
12537	(i386_dr_remove_watchpoint): Likewise.
12538	(i386_dr_region_ok_for_watchpoint): Likewise.
12539	(i386_dr_stopped_data_address): Likewise.
12540	(i386_dr_stopped_by_watchpoint): Likewise.
12541	* i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
12542
125432014-06-18  Gary Benson  <gbenson@redhat.com>
12544
12545	* i386-low.h (i386_low_insert_watchpoint): Renamed to
12546	i386_dr_insert_watchpoint.
12547	(i386_low_remove_watchpoint): Renamed to
12548	i386_dr_remove_watchpoint.
12549	(i386_low_region_ok_for_watchpoint): Renamed to
12550	i386_dr_region_ok_for_watchpoint.
12551	(i386_low_stopped_data_address): Renamed to
12552	i386_dr_stopped_data_address.
12553	(i386_low_stopped_by_watchpoint): Renamed to
12554	i386_dr_stopped_by_watchpoint.
12555	* i386-low.c (i386_show_dr): Renamed to
12556	i386_dr_show and made nonstatic.  All uses updated.
12557	(i386_length_and_rw_bits): Renamed to
12558	i386_dr_length_and_rw_bits and made nonstatic.
12559	All uses updated.
12560	(i386_insert_aligned_watchpoint): Renamed to
12561	i386_dr_insert_aligned_watchpoint and made nonstatic.
12562	All uses updated.
12563	(i386_remove_aligned_watchpoint): Renamed to
12564	i386_dr_remove_aligned_watchpoint and made nonstatic.
12565	All uses updated.
12566	(i386_update_inferior_debug_regs): Renamed to
12567	i386_dr_update_inferior_debug_regs and made nonstatic.
12568	All uses updated.
12569	(i386_low_insert_watchpoint): Renamed to
12570	i386_dr_insert_watchpoint.  All uses updated.
12571	(i386_low_remove_watchpoint): Renamed to
12572	i386_dr_remove_watchpoint.  All uses updated.
12573	(i386_low_region_ok_for_watchpoint): Renamed to
12574	i386_dr_region_ok_for_watchpoint.  All uses updated.
12575	(i386_low_stopped_data_address): Renamed to
12576	i386_dr_stopped_data_address.  All uses updated.
12577	(i386_low_stopped_by_watchpoint): Renamed to
12578	i386_dr_stopped_by_watchpoint.  All uses updated.
12579
125802014-06-18  Gary Benson  <gbenson@redhat.com>
12581
12582	* i386-low.c (i386_dr_low_can_set_addr): New macro.
12583	(i386_dr_low_can_set_control): Likewise.
12584	(i386_insert_aligned_watchpoint): New check.
12585
125862014-06-18  Gary Benson  <gbenson@redhat.com>
12587
12588	* i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
12589	Renamed to state.
12590
125912014-06-18  Gary Benson  <gbenson@redhat.com>
12592
12593	* i386-low.c (i386_length_and_rw_bits): Use internal_error
12594	instead of fatal and error.
12595	(i386_handle_nonaligned_watchpoint): Likewise.
12596
125972014-06-18  Gary Benson  <gbenson@redhat.com>
12598
12599	* i386-low.c (i386_get_debug_register_length): New macro.
12600	(TARGET_HAS_DR_LEN_8): Remove conditional.  Use above macro.
12601	(i386_show_dr): Use debug_printf instead of fprintf.  Use
12602	phex to format values.
12603
126042014-06-18  Gary Benson  <gbenson@redhat.com>
12605
12606	* i386-low.h: Comment changes.
12607	* i386-low.c: Likewise.
12608
126092014-06-18  Gary Benson  <gbenson@redhat.com>
12610
12611	* i386-low.c: Whitespace changes.
12612
126132014-06-12  Tom Tromey  <tromey@redhat.com>
12614
12615	* utils.c (freeargv): Remove.
12616
126172014-06-12  Tom Tromey  <tromey@redhat.com>
12618
12619	* debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
12620	* server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
12621	(parse_debug_format_options): Likewise.
12622	(gdbserver_usage): Likewise.
12623	* Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
12624	(SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
12625	(gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
12626	against libiberty.
12627	($(LIBGNU)): Depend on libiberty.
12628	(all-lib): Recurse into all subdirs.
12629	(install-only): Invoke "install" target in subdirs.
12630	(vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
12631	targets.
12632	* configure: Rebuild.
12633	* configure.ac: Add ACX_CONFIGURE_DIR for libiberty.  Don't check
12634	for vasprintf, vsnprintf, or gettimeofday.
12635	* configure.srv: Don't add safe-ctype.o or lbasename.o to
12636	srv_tgtobj.
12637
126382014-06-05  Joel Brobecker  <brobecker@adacore.com>
12639
12640	* development.sh: Delete.
12641	* Makefile.in (config.status): Adjust dependency on development.sh.
12642	* configure.ac: Adjust development.sh source call.
12643	* configure: Regenerate.
12644
126452014-06-02  Pedro Alves  <palves@redhat.com>
12646
12647	* ax.c (gdb_free_agent_expr): New function.
12648	* ax.h (gdb_free_agent_expr): New declaration.
12649	* mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
12650	list.
12651	(clear_breakpoint_conditions, clear_breakpoint_commands): Make
12652	static.
12653	(clear_breakpoint_conditions_and_commands): New function.
12654	* mem-break.h (clear_breakpoint_conditions): Delete declaration.
12655	(clear_breakpoint_conditions_and_commands): New declaration.
12656
126572014-05-23  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12658
12659	* linux-aarch64-low.c (asm/ptrace.h): Include.
12660
126612014-05-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
12662
12663	Fix TLS access for -static -pthread.
12664	* gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
12665	(thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
12666	(thread_db_load_search, try_thread_db_load_1): Initialize it.
12667
126682014-05-20  Pedro Alves  <palves@redhat.com>
12669
12670	* linux-aarch64-low.c (aarch64_insert_point)
12671	(aarch64_remove_point): No longer check whether the type is
12672	supported here.  Adjust to new interface.
12673	(the_low_target): Install aarch64_supports_z_point_type as
12674	supports_z_point_type method.
12675	* linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
12676	(arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
12677	instead of a Z packet char.  Adjust.
12678	(arm_supports_z_point_type): New function.
12679	(arm_insert_point, arm_remove_point): Adjust to new interface.
12680	(the_low_target): Install arm_supports_z_point_type.
12681	* linux-crisv32-low.c (cris_supports_z_point_type): New function.
12682	(cris_insert_point, cris_remove_point): Adjust to new interface.
12683	Don't check whether the type is supported here.
12684	(the_low_target): Install cris_supports_z_point_type.
12685	* linux-low.c (linux_supports_z_point_type): New function.
12686	(linux_insert_point, linux_remove_point): Adjust to new interface.
12687	* linux-low.h (struct linux_target_ops) <insert_point,
12688	remove_point>: Take an enum raw_bkpt_type instead of a char.  Add
12689	raw_breakpoint pointer parameter.
12690	<supports_z_point_type>: New method.
12691	* linux-mips-low.c (mips_supports_z_point_type): New function.
12692	(mips_insert_point, mips_remove_point): Adjust to new interface.
12693	Use mips_supports_z_point_type.
12694	(the_low_target): Install mips_supports_z_point_type.
12695	* linux-ppc-low.c (the_low_target): Install NULL as
12696	supports_z_point_type method.
12697	* linux-s390-low.c (the_low_target): Install NULL as
12698	supports_z_point_type method.
12699	* linux-sparc-low.c (the_low_target): Install NULL as
12700	supports_z_point_type method.
12701	* linux-x86-low.c (x86_supports_z_point_type): New function.
12702	(x86_insert_point): Adjust to new insert_point interface.  Use
12703	insert_memory_breakpoint.  Adjust to new
12704	i386_low_insert_watchpoint interface.
12705	(x86_remove_point): Adjust to remove_point interface.  Use
12706	remove_memory_breakpoint.  Adjust to new
12707	i386_low_remove_watchpoint interface.
12708	(the_low_target): Install x86_supports_z_point_type.
12709	* lynx-low.c (lynx_target_ops): Install NULL as
12710	supports_z_point_type callback.
12711	* nto-low.c (nto_supports_z_point_type): New.
12712	(nto_insert_point, nto_remove_point): Adjust to new interface.
12713	(nto_target_ops): Install nto_supports_z_point_type.
12714	* mem-break.c: Adjust intro comment.
12715	(struct raw_breakpoint) <raw_type, size>: New fields.
12716	<inserted>: Update comment.
12717	<shlib_disabled>: Delete field.
12718	(enum bkpt_type) <gdb_breakpoint>: Delete value.
12719	<gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
12720	gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
12721	(raw_bkpt_type_to_target_hw_bp_type): New function.
12722	(find_enabled_raw_code_breakpoint_at): New function.
12723	(find_raw_breakpoint_at): New type and size parameters.  Use them.
12724	(insert_memory_breakpoint): New function, based off
12725	set_raw_breakpoint_at.
12726	(remove_memory_breakpoint): New function.
12727	(set_raw_breakpoint_at): Reimplement.
12728	(set_breakpoint): New, based on set_breakpoint_at.
12729	(set_breakpoint_at): Reimplement.
12730	(delete_raw_breakpoint): Go through the_target->remove_point
12731	instead of assuming memory breakpoints.
12732	(find_gdb_breakpoint_at): Delete.
12733	(Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
12734	(find_gdb_breakpoint): New function.
12735	(set_gdb_breakpoint_at): Delete.
12736	(z_type_supported): New function.
12737	(set_gdb_breakpoint_1): New function, loosely based off
12738	set_gdb_breakpoint_at.
12739	(check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
12740	(delete_gdb_breakpoint_at): Delete.
12741	(delete_gdb_breakpoint_1): New function, loosely based off
12742	delete_gdb_breakpoint_at.
12743	(delete_gdb_breakpoint): New function.
12744	(clear_gdb_breakpoint_conditions): Rename to ...
12745	(clear_breakpoint_conditions): ... this.  Don't handle a NULL
12746	breakpoint.
12747	(add_condition_to_breakpoint): Make static.
12748	(add_breakpoint_condition): Take a struct breakpoint pointer
12749	instead of an address.  Adjust.
12750	(gdb_condition_true_at_breakpoint): Rename to ...
12751	(gdb_condition_true_at_breakpoint_z_type): ... this, and add
12752	z_type parameter.
12753	(gdb_condition_true_at_breakpoint): Reimplement.
12754	(add_breakpoint_commands): Take a struct breakpoint pointer
12755	instead of an address.  Adjust.
12756	(gdb_no_commands_at_breakpoint): Rename to ...
12757	(gdb_no_commands_at_breakpoint_z_type): ... this.  Add z_type
12758	parameter.  Return true if no breakpoint was found.  Change debug
12759	output.
12760	(gdb_no_commands_at_breakpoint): Reimplement.
12761	(run_breakpoint_commands): Rename to ...
12762	(run_breakpoint_commands_z_type): ... this.  Add z_type parameter,
12763	and change return type to boolean.
12764	(run_breakpoint_commands): New function.
12765	(gdb_breakpoint_here): Also check for Z1 breakpoints.
12766	(uninsert_raw_breakpoint): Don't try to reinsert a disabled
12767	breakpoint.  Go through the_target->remove_point instead of
12768	assuming memory breakpoint.
12769	(uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
12770	software and hardware breakpoints.
12771	(reinsert_raw_breakpoint): Go through the_target->insert_point
12772	instead of assuming memory breakpoint.
12773	(reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
12774	software and hardware breakpoints.
12775	(check_breakpoints, breakpoint_here, breakpoint_inserted_here):
12776	Check both software and hardware breakpoints.
12777	(validate_inserted_breakpoint): Assert the breakpoint is a
12778	software breakpoint.  Set the inserted flag to -1 instead of
12779	setting shlib_disabled.
12780	(delete_disabled_breakpoints): Adjust.
12781	(validate_breakpoints): Only validate software breakpoints.
12782	Adjust to inserted flag change.
12783	(check_mem_read, check_mem_write): Skip breakpoint types other
12784	than software breakpoints.  Adjust to inserted flag change.
12785	* mem-break.h (enum raw_bkpt_type): New enum.
12786	(raw_breakpoint, struct process_info): Forward declare.
12787	(Z_packet_to_target_hw_bp_type): Delete declaration.
12788	(raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
12789	(set_gdb_breakpoint, delete_gdb_breakpoint)
12790	(clear_breakpoint_conditions): New declarations.
12791	(set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
12792	(breakpoint_inserted_here): Update comment.
12793	(add_breakpoint_condition, add_breakpoint_commands): Replace
12794	address parameter with a breakpoint pointer parameter.
12795	(gdb_breakpoint_here): Update comment.
12796	(delete_gdb_breakpoint_at): Delete.
12797	(insert_memory_breakpoint, remove_memory_breakpoint): Declare.
12798	* server.c (process_point_options): Take a struct breakpoint
12799	pointer instead of an address.  Adjust.
12800	(process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
12801	delete_gdb_breakpoint.
12802	* spu-low.c (spu_target_ops): Install NULL as
12803	supports_z_point_type method.
12804	* target.h: Include mem-break.h.
12805	(struct target_ops) <prepare_to_access_memory>: Update comment.
12806	<supports_z_point_type>: New field.
12807	<insert_point, remove_point>: Take an enum raw_bkpt_type argument
12808	instead of a char.  Also take a raw breakpoint pointer.
12809	* win32-arm-low.c (the_low_target): Install NULL as
12810	supports_z_point_type.
12811	* win32-i386-low.c (i386_supports_z_point_type): New function.
12812	(i386_insert_point, i386_remove_point): Adjust to new interface.
12813	(the_low_target): Install i386_supports_z_point_type.
12814	* win32-low.c (win32_supports_z_point_type): New function.
12815	(win32_insert_point, win32_remove_point): Adjust to new interface.
12816	(win32_target_ops): Install win32_supports_z_point_type.
12817	* win32-low.h (struct win32_target_ops):
12818	<supports_z_point_type>: New method.
12819	<insert_point, remove_point>: Take an enum raw_bkpt_type argument
12820	instead of a char.  Also take a raw breakpoint pointer.
12821
128222014-05-20  Pedro Alves  <palves@redhat.com>
12823
12824	* mem-break.h: Include break-common.h.
12825	(Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12826	(Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
12827	(Z_packet_to_target_hw_bp_type): New declaration.
12828	* mem-break.c (Z_packet_to_target_hw_bp_type): New function.
12829	* i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
12830	(Z_PACKET_ACCESS_WP): Delete macros.
12831	(Z_packet_to_hw_type): Delete function.
12832	* i386-low.h: Don't include break-common.h here.
12833	(Z_packet_to_hw_type): Delete declaration.
12834	* linux-x86-low.c (x86_insert_point, x86_insert_point): Call
12835	Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12836	* win32-i386-low.c (i386_insert_point, i386_remove_point): Call
12837	Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12838	* linux-aarch64-low.c: Don't include break-common.h here.
12839	(Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12840	(Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
12841	(Z_packet_to_target_hw_bp_type): Delete function.
12842	* linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
12843	function.
12844	(mips_insert_point, mips_remove_point): Use
12845	Z_packet_to_target_hw_bp_type.
12846
128472014-05-20  Pedro Alves  <palves@redhat.com>
12848
12849	* linux-aarch64-low.c: Include break-common.h.
12850	(enum target_point_type): Delete.
12851	(Z_packet_to_point_type): Rename to ...
12852	(Z_packet_to_target_hw_bp_type): ... this, and return a
12853	target_hw_bp_type instead.
12854	(aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
12855	instead of an enum target_point_type.
12856	(aarch64_point_encode_ctrl_reg): Likewise.  Compute type mask from
12857	breakpoint type.
12858	(aarch64_dr_state_insert_one_point)
12859	(aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
12860	(aarch64_handle_aligned_watchpoint)
12861	(aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
12862	Take an enum target_hw_bp_type instead of an enum
12863	target_point_type.
12864	(aarch64_supports_z_point_type): New function.
12865	(aarch64_insert_point, aarch64_remove_point): Use it.  Adjust to
12866	use Z_packet_to_target_hw_bp_type.
12867
128682014-05-20  Joel Brobecker  <brobecker@adacore.com>
12869
12870	* configure.ac: Only use -Werror by default when DEVELOPMENT
12871	is true.
12872	* configure: Regenerate.
12873
128742014-05-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
12875
12876	Fix gdbserver qGetTLSAddr for x86_64 -m32.
12877	* linux-x86-low.c (X86_64_USER_REGS): New.
12878	(x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
12879
128802014-04-28  Yao Qi  <yao@codesourcery.com>
12881
12882	* Makefile.in (i386-avx512.c): Fix the typo of generated file
12883	name.
12884
128852014-04-25  Pedro Alves  <palves@redhat.com>
12886
12887	PR server/16255
12888	* linux-low.c (linux_attach_fail_reason_string): New function.
12889	(linux_attach_lwp): Delete.
12890	(linux_attach_lwp_1): Rename to ...
12891	(linux_attach_lwp): ... this.  Take a ptid instead of a pid as
12892	argument.  Remove "initial" parameter.  Return int instead of
12893	void.  Don't error or warn here.
12894	(linux_attach): Adjust to call linux_attach_lwp.  Call error on
12895	failure to attach to the tgid.  Call warning when failing to
12896	attach to an lwp.
12897	* linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
12898	argument.  Remove "initial" parameter.  Return int instead of
12899	void.  Don't error or warn here.
12900	(linux_attach_fail_reason_string): New declaration.
12901	* thread-db.c (attach_thread): Adjust to linux_attach_lwp's
12902	interface change.  Use linux_attach_fail_reason_string.
12903
129042014-04-24  Michael Sturm  <michael.sturm@mintel.com>
12905	    Walfred Tedeschi  <walfred.tedeschi@intel.com>
12906
12907	* Makefile.in: Added rules to handle new files
12908	i386-avx512.c i386-avx512-linux.c amd64-avx512.c
12909	amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
12910	* configure.srv (srv_i386_regobj): Add i386-avx512.o.
12911	(srv_i386_linux_regobj): Add i386-avx512-linux.o.
12912	(srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
12913	(srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
12914	x32-avx512-linux.o.
12915	(srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
12916	(srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
12917	(srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
12918	i386/x32-avx512.xml.
12919	(srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
12920	(srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
12921	i386/x32-avx512-linux.xml.
12922	* i387-fp.c (num_avx512_k_registers): New constant for number
12923	of K registers.
12924	(num_avx512_zmmh_low_registers): New constant for number of
12925	lower ZMM registers (0-15).
12926	(num_avx512_zmmh_high_registers): New constant for number of
12927	higher ZMM registers (16-31).
12928	(num_avx512_ymmh_registers): New contant for number of higher
12929	YMM registers (ymm16-31 added by avx521 on x86_64).
12930	(num_avx512_xmm_registers): New constant for number of higher
12931	XMM registers (xmm16-31 added by AVX512 on x86_64).
12932	(struct i387_xsave): Add space for AVX512 registers.
12933	(i387_cache_to_xsave): Change raw buffer size to 64 characters.
12934	Add code to handle AVX512 registers.
12935	(i387_xsave_to_cache): Add code to handle AVX512 registers.
12936	* linux-x86-low.c (init_registers_amd64_avx512_linux): New
12937	prototypei from generated file.
12938	(tdesc_amd64_avx512_linux): Likewise.
12939	(init_registers_x32_avx512_linux): Likewise.
12940	(tdesc_x32_avx512_linux): Likewise.
12941	(init_registers_i386_avx512_linux): Likewise.
12942	(tdesc_i386_avx512_linux): Likewise.
12943	(x86_64_regmap): Add AVX512 registers.
12944	(x86_linux_read_description): Add code to handle AVX512 XSTATE
12945	mask.
12946	(initialize_low_arch): Add code to initialize AVX512 registers.
12947
129482014-04-23  Pedro Alves  <palves@redhat.com>
12949
12950	* mem-break.c (find_gdb_breakpoint_at): Make static.
12951	* mem-break.h (find_gdb_breakpoint_at): Delete declaration.
12952
129532014-04-23  Pedro Alves  <palves@redhat.com>
12954
12955	* i386-low.c: Don't include break-common.h here.
12956	(i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12957	prototype to take target_hw_bp_type as argument instead of a Z
12958	packet char.
12959	* i386-low.h: Include break-common.h here.
12960	(Z_packet_to_hw_type): Declare.
12961	(i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12962	prototypes.
12963	* linux-x86-low.c (x86_insert_point): Convert the packet number to
12964	a target_hw_bp_type before calling i386_low_insert_watchpoint.
12965	(x86_remove_point): Convert the packet number to a
12966	target_hw_bp_type before calling i386_low_remove_watchpoint.
12967	* win32-i386-low.c (i386_insert_point): Convert the packet number
12968	to a target_hw_bp_type before calling i386_low_insert_watchpoint.
12969	(i386_remove_point): Convert the packet number to a
12970	target_hw_bp_type before calling i386_low_remove_watchpoint.
12971
129722014-04-23  Pedro Alves  <palves@redhat.com>
12973
12974	* utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
12975
129762014-04-10  Pedro Alves  <palves@redhat.com>
12977
12978	* mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
12979	Check if the condition or command is NULL before checking if the
12980	breakpoint is known.  On success, return true.
12981	* mem-break.h (add_breakpoint_condition): Document return.
12982	(add_breakpoint_commands): Add describing comment.
12983	* server.c (skip_to_semicolon): New function.
12984	(process_point_options): Use it.
12985
129862014-04-09  Pedro Alves  <palves@redhat.com>
12987
12988	* linux-low.c (linux_read_loadmap): Pass current_inferior directly
12989	to lwpid_of.
12990
129912014-02-27  Pedro Alves  <palves@redhat.com>
12992
12993	PR 12702
12994	* inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
12995	macros.
12996	* linux-low.c (delete_lwp, handle_extended_wait): Add debug
12997	output.
12998	(last_thread_of_process_p): Take a PID argument instead of a
12999	thread pointer.
13000	(linux_wait_for_lwp): Delete.
13001	(num_lwps, check_zombie_leaders, not_stopped_callback): New
13002	functions.
13003	(linux_low_filter_event): New function, party factored out from
13004	linux_wait_for_event.
13005	(linux_wait_for_event): Rename to ...
13006	(linux_wait_for_event_filtered): ... this.  Add new filter ptid
13007	argument.  Partly rewrite.  Always use waitpid(-1, WNOHANG) and
13008	sigsuspend.  Check for zombie leaders.
13009	(linux_wait_for_event): Reimplement as wrapper around
13010	linux_wait_for_event_filtered.
13011	(linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED.  Assume that if
13012	a normal or signal exit is seen, it's the whole process exiting.
13013	(wait_for_sigstop): No longer a for_each_inferior callback.
13014	Rewrite on top of linux_wait_for_event_filtered.
13015	(stop_all_lwps): Call wait_for_sigstop directly.
13016	* server.c (resume, handle_target_event): Handle
13017	TARGET_WAITKIND_NO_RESUMED.
13018
130192014-02-26  Joel Brobecker  <brobecker@adacore.com>
13020
13021	* win32-low.c (psapi_get_dll_name,
13022	* win32_CreateToolhelp32Snapshot): Delete.
13023	(win32_CreateToolhelp32Snapshot, win32_Module32First)
13024	(win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
13025	Delete.
13026	(handle_load_dll): Add function description.
13027	Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
13028
130292014-02-26  Joel Brobecker  <brobecker@adacore.com>
13030
13031	* win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
13032	Add comment.
13033	(win32_add_all_dlls): Remove 0x1000 offset applied to DLL
13034	base address when calling win32_add_one_solib.
13035	(handle_load_dll): Delete local variable load_addr.
13036	Remove 0x1000 offset applied to DLL base address when calling
13037	win32_add_one_solib.
13038	(handle_unload_dll): Add comment.
13039
130402014-02-26  Joel Brobecker  <brobecker@adacore.com>
13041
13042	* win32-low.c (win32_add_all_dlls): Renames
13043	win32_ensure_ntdll_loaded.  Rewrite function documentation.
13044	Adjust implementation to always load all DLLs.
13045	Add 0x1000 offset to DLL base address when calling
13046	win32_add_one_solib.
13047	(child_initialization_done): New static global.
13048	(do_initial_child_stuff): Set child_initialization_done to
13049	zero during child initialization, and 1 after.  Replace call
13050	to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
13051	Add comment.
13052	(match_dll_by_basename, dll_is_loaded_by_basename): Delete.
13053	(handle_unload_dll): Add function documentation.
13054	(get_child_debug_event): Ignore load and unload DLL events
13055	during child initialization.
13056
130572014-02-20  Doug Evans  <dje@google.com>
13058
13059	Remove global all_lwps.
13060	* inferiors.h (ptid_of): Move here from linux-low.h.
13061	(pid_of, lwpid_of): Ditto.
13062	* linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
13063	parameter is a struct thread_info * now.
13064	(aarch64_notify_debug_reg_change): Fetch pid from current_inferior
13065	directly.  Pass &all_threads to find_inferior instead of &all_lwps.
13066	(aarch64_stopped_data_address): Fetch lwpid from current_inferior
13067	directly.
13068	(aarch64_linux_prepare_to_resume): Fetch ptid from thread.
13069	(aarch64_arch_setup): Fetch lwpid from current_inferior directly.
13070	* linux-arm-low.c (update_registers_callback): Update, "entry"
13071	parameter is a struct thread_info * now.
13072	Fetch lwpid from current_inferior directly.
13073	(arm_insert_point): Pass &all_threads to find_inferior instead of
13074	&all_lwps.
13075	(arm_remove_point): Ditto.
13076	(arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
13077	(arm_prepare_to_resume): Fetch pid from thread.
13078	(arm_read_description): Fetch lwpid from current_inferior directly.
13079	* linux-low.c (all_lwps): Delete.
13080	(delete_lwp): Delete call to remove_inferior.
13081	(handle_extended_wait): Fetch lwpid from thread.
13082	(add_lwp): Don't set lwp->entry.id.  Remove call to
13083	add_inferior_to_list.
13084	(linux_attach_lwp_1): Fetch pid from current_inferior directly.
13085	(linux_kill_one_lwp): Fetch ptid,lwpid from thread.
13086	(kill_one_lwp_callback): Ditto.
13087	(linux_kill): Don't dereference NULL pointer.
13088	Fetch ptid,lwpid from thread.
13089	(get_detach_signal): Fetch ptid from thread.
13090	(linux_detach_one_lwp): Fetch ptid,lwpid from thread.
13091	Simplify call to regcache_invalidate_thread.
13092	(delete_lwp_callback): Update, "entry" parameter is a
13093	struct thread_info * now.  Fetch pid from thread.
13094	(linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
13095	(status_pending_p_callback): Update, "entry" parameter is a
13096	struct thread_info * now.  Fetch ptid from thread.
13097	(find_lwp_pid): Update, "entry" parameter is a
13098	struct thread_info * now.
13099	(linux_wait_for_lwp): Fetch pid from thread.
13100	(linux_fast_tracepoint_collecting): Fetch lwpid from thread.
13101	(maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
13102	(enqueue_one_deferred_signal): Fetch lwpid from thread.
13103	(dequeue_one_deferred_signal): Ditto.
13104	(cancel_breakpoint): Fetch ptid from current_inferior.
13105	(linux_wait_for_event): Pass &all_threads to find_inferior,
13106	not &all_lwps.  Fetch ptid, lwpid from thread.
13107	(count_events_callback): Update, "entry" parameter is a
13108	struct thread_info * now.
13109	(select_singlestep_lwp_callback): Ditto.
13110	(select_event_lwp_callback): Ditto.
13111	(cancel_breakpoints_callback): Ditto.
13112	(linux_cancel_breakpoints): Pass &all_threads to find_inferior,
13113	not &all_lwps.
13114	(select_event_lwp): Ditto.  Fetch ptid from event_thread.
13115	(unsuspend_one_lwp): Update, "entry" parameter is a
13116	struct thread_info * now.
13117	(unsuspend_all_lwps): Pass &all_threads to find_inferior,
13118	not &all_lwps.
13119	(linux_stabilize_threads): Ditto.  And for for_each_inferior.
13120	Fetch lwpid from thread, not lwp.
13121	(linux_wait_1): Fetch ptid, lwpid from current_inferior.
13122	Pass &all_threads to find_inferior, not &all_lwps.
13123	(send_sigstop): Fetch lwpid from thread, not lwp.
13124	(send_sigstop_callback): Update, "entry" parameter is a
13125	struct thread_info * now.
13126	(suspend_and_send_sigstop_callback): Ditto.
13127	(wait_for_sigstop): Ditto.  Fetch ptid, lwpid from thread, lwp.
13128	(stuck_in_jump_pad_callback): Update, "entry" parameter is a
13129	struct thread_info * now.
13130	(move_out_of_jump_pad_callback): Ditto.  Fetch ptid, lwpid
13131	from thread, lwp.
13132	(lwp_running): Update, "entry" parameter is a
13133	struct thread_info * now.
13134	(stop_all_lwps): Fetch ptid from thread.
13135	Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
13136	(linux_resume_one_lwp): Fetch lwpid from thread.
13137	(linux_set_resume_request): Update, "entry" parameter is a
13138	struct thread_info * now.  Fetch pid, lwpid from thread.
13139	(resume_status_pending_p): Update, "entry" parameter is a
13140	struct thread_info * now.
13141	(need_step_over_p): Ditto.  Fetch lwpid from thread.
13142	(start_step_over): Fetch lwpid from thread.
13143	(linux_resume_one_thread): Update, "entry" parameter is a
13144	struct thread_info * now.  Fetch lwpid from thread.
13145	(linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
13146	(proceed_one_lwp): Update, "entry" parameter is a
13147	struct thread_info * now.  Fetch lwpid from thread.
13148	(unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
13149	struct thread_info * now.
13150	(proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
13151	(unstop_all_lwps): Ditto.  Fetch lwpid from thread.
13152	(regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
13153	directly.
13154	(regsets_store_inferior_registers): Ditto.
13155	(fetch_register, store_register): Ditto.
13156	(linux_read_memory, linux_write_memory): Ditto.
13157	(linux_request_interrupt): Ditto.
13158	(linux_read_auxv): Ditto.
13159	(linux_xfer_siginfo): Ditto.
13160	(linux_qxfer_spu): Ditto.
13161	(linux_qxfer_libraries_svr4): Ditto.
13162	* linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
13163	moved to inferiors.h.
13164	(get_lwp): Delete.
13165	(get_thread_lwp): Update.
13166	(struct lwp_info): Delete member "entry".  Simplify comment for
13167	member "thread".
13168	(all_lwps): Delete.
13169	* linux-mips-low.c (mips_read_description): Fetch lwpid from
13170	current_inferior directly.
13171	(update_watch_registers_callback): Update, "entry" parameter is a
13172	struct thread_info * now.  Fetch pid from thread.
13173	(mips_linux_prepare_to_resume): Fetch ptid from thread.
13174	(mips_insert_point): Fetch lwpid from current_inferior.
13175	Pass &all_threads to find_inferior, not &all_lwps.
13176	(mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
13177	(mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
13178	directly.
13179	(mips_stopped_data_address): Ditto.
13180	* linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
13181	directly.
13182	* linux-tile-low.c (tile_arch_setup): Ditto.
13183	* linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
13184	(update_debug_registers_callback): Update, "entry" parameter is a
13185	struct thread_info * now.  Fetch pid from thread.
13186	(i386_dr_low_set_addr): Fetch pid from current_inferior directly.
13187	Pass &all_threads to find_inferior, not &all_lwps.
13188	(i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
13189	(i386_dr_low_set_control): Fetch pid from current_inferior directly.
13190	Pass &all_threads to find_inferior, not &all_lwps.
13191	(i386_dr_low_get_control): Fetch ptid from current_inferior directly.
13192	(i386_dr_low_get_status): Ditto.
13193	(x86_linux_prepare_to_resume): Fetch ptid from thread.
13194	(x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
13195	(x86_linux_read_description): Ditto.
13196	* proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
13197
131982014-02-20  Doug Evans  <dje@google.com>
13199
13200	* inferiors.c (get_first_inferior): Fix buglet.
13201
132022014-02-19  Doug Evans  <dje@google.com>
13203
13204	* gdbthread.h (add_thread): Change result type to struct thread_info *.
13205	* inferiors.c (add_thread): Change result type to struct thread_info *.
13206	All callers updated.
13207	(add_lwp): Call add_thread here instead of in callers.
13208	All callers updated.
13209	* linux-low.h (get_lwp_thread): Rewrite.
13210	(struct lwp_info): New member "thread".
13211
132122014-02-19  Doug Evans  <dje@google.com>
13213
13214	* linux-low.c (add_lwp): Change result to struct lwp_info *.
13215	All callers updated.
13216
132172014-02-19  Doug Evans  <dje@google.com>
13218
13219	* inferiors.c (add_thread): Fix whitespace.
13220
132212014-02-19  Doug Evans  <dje@google.com>
13222
13223	* dll.c (clear_dlls): Replace accessing list implemention details
13224	with API function.
13225	* gdbthread.h (get_first_thread): Declare.
13226	* inferiors.c (for_each_inferior_with_data): New function.
13227	(get_first_thread): New function.
13228	(find_thread_ptid): Simplify.
13229	(get_first_inferior): New function.
13230	(clear_list): Delete.
13231	(one_inferior_p): New function.
13232	(clear_inferior_list): New function.
13233	(clear_inferiors): Update.
13234	* inferiors.h (for_each_inferior_with_data): Declare.
13235	(clear_inferior_list): Declare.
13236	(one_inferior_p): Declare.
13237	(get_first_inferior): Declare.
13238	* linux-low.c (linux_wait_for_event): Replace accessing list
13239	implemention details with API function.
13240	* server.c (target_running): Ditto.
13241	(accumulate_file_name_length): New function.
13242	(emit_dll_description): New function.
13243	(handle_qxfer_libraries): Replace accessing list implemention
13244	details with API function.
13245	(handle_qxfer_threads_worker): New function.
13246	(handle_qxfer_threads_proper): Replace accessing list implemention
13247	details with API function.
13248	(handle_query): Ditto.
13249	(visit_actioned_threads_callback_ftype): New typedef.
13250	(visit_actioned_threads_data): New struct.
13251	(visit_actioned_threads): Rewrite to be find_inferior callback.
13252	(resume): Call find_inferior.
13253	(handle_status): Replace accessing list implemention
13254	details with API function.
13255	(process_serial_event): Replace accessing list implemention details
13256	with API function.
13257	* target.c (set_desired_inferior): Replace accessing list implemention
13258	details with API function.
13259	* tracepoint.c (same_process_p): New function.
13260	(gdb_agent_about_to_close): Replace accessing list implemention
13261	details with API function.
13262	* win32-low.c (child_delete_thread): Replace accessing list
13263	implemention details with API function.
13264	(match_dll_by_basename): New function.
13265	(dll_is_loaded_by_basename): New function.
13266	(win32_ensure_ntdll_loaded): Replace accessing list implemention
13267	details call to dll_is_loaded_by_basename.
13268
132692014-02-19  Doug Evans  <dje@google.com>
13270
13271	* dll.h (struct dll_info): Add comment.
13272	* gdbthread.h (struct thread_info): Add comment.
13273	(current_ptid): Simplify.
13274	* inferiors.c (add_process): Update.
13275	(remove_process): Update.
13276	* inferiors.h (struct process_info): Rename member "head" to "entry".
13277	* linux-low.c (delete_lwp): Update.
13278	(add_lwp): Update.
13279	(last_thread_of_process_p): Update.
13280	(kill_one_lwp_callback, linux_kill): Update.
13281	(status_pending_p_callback): Update.
13282	(wait_for_sigstop): Update.  Simplify read of ptid.
13283	(start_step_over): Update.
13284	* linux-low.h (ptid_of, pid_of, lwpid_of): Update.
13285	(get_lwp_thread): Update.
13286	(struct lwp_info): Rename member "head" to "entry".
13287	* regcache.h (inferior_list_entry): Delete.
13288	* server.c (kill_inferior_callback): Update.
13289	(detach_or_kill_inferior_callback): Update.
13290	(print_started_pid): Update.
13291	(print_attached_pid): Update.
13292	(process_serial_event): Simplify read of ptid.
13293	* thread-db.c (thread_db_create_event): Update.
13294	(thread_db_get_tls_address): Update.
13295	* win32-low.c (current_inferior_ptid): Simplify.
13296
132972014-02-19  Tom Tromey  <tromey@redhat.com>
13298
13299	* target.h (struct target_ops) <supports_btrace>: Add target_ops
13300	argument.
13301	(target_supports_btrace): Update.
13302
133032014-02-14  Yao Qi  <yao@codesourcery.com>
13304
13305	* Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
13306	(rsp-low-ipa.o): New target.
13307
133082014-02-12  Tom Tromey  <tromey@redhat.com>
13309
13310	* ax.c (gdb_parse_agent_expr): Use hex2bin, not
13311	convert_ascii_to_int.
13312	* regcache.c (registers_to_string): Likewise.
13313	* remote-utils.c (decode_M_packet): Likewise.
13314	* server.c (process_serial_event): Likewise.
13315
133162014-02-12  Tom Tromey  <tromey@redhat.com>
13317
13318	* server.c (handle_query, handle_v_run): Use hex2bin, not
13319	unhexify.
13320	* tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
13321
133222014-02-12  Tom Tromey  <tromey@redhat.com>
13323
13324	* ax.c (gdb_unparse_agent_expr): Use bin2hex, not
13325	convert_int_to_ascii.
13326	* regcache.c (registers_to_string, collect_register_as_string):
13327	Likewise.
13328	* remote-utils.c (look_up_one_symbol, relocate_instruction):
13329	Likewise.
13330	* server.c (process_serial_event): Likewise.
13331	* tracepoint.c (cmd_qtstatus, response_source, response_tsv)
13332	(cmd_qtbuffer, cstr_to_hexstr): Likewise.
13333
133342014-02-12  Tom Tromey  <tromey@redhat.com>
13335
13336	* remote-utils.c (look_up_one_symbol, monitor_output): Use
13337	bin2hex, not hexify.
13338	* tracepoint.c (cmd_qtstatus): Likewise.
13339
133402014-02-12  Tom Tromey  <tromey@redhat.com>
13341
13342	* remote-utils.c (monitor_output): Pass explicit length to
13343	hexify.
13344
133452014-02-12  Tom Tromey  <tromey@redhat.com>
13346
13347	* tracepoint.c: Include rsp-low.h.
13348	* server.c: Include rsp-low.h.
13349	* remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
13350	(unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
13351	declare.
13352	* remote-utils.c: Include rsp-low.h.
13353	(fromhex, hexchars, ishex, unhexify, tohex, hexify)
13354	(remote_escape_output, remote_unescape_input, unpack_varlen_hex)
13355	(convert_int_to_ascii, convert_ascii_to_int): Move to
13356	common/rsp-low.c.
13357	* regcache.c: Include rsp-low.h.
13358	* ax.c: Include rsp-low.h.
13359	* Makefile.in (SFILES): Add common/rsp-low.c.
13360	(OBS): Add rsp-low.o.
13361	(rsp-low.o): New target.
13362
133632014-02-12  Tom Tromey  <tromey@redhat.com>
13364
13365	* utils.h (pulongest, plongest, phex_nz): Don't declare.
13366	Include print-utils.h.
13367	* utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13368	(plongest, thirty_two, phex_nz): Remove.
13369	* Makefile.in (SFILES): Add common/print-utils.c.
13370	(OBS): Add print-utils.o.
13371	(print-utils-ipa.o): New target.
13372	(print-utils.o): New target.
13373	(IPA_OBJS): Add print-utils-ipa.o.
13374
133752014-02-06  Tom Tromey  <tromey@redhat.com>
13376
13377	* Makefile.in (SFILES): Fix indentation.
13378
133792014-02-05  Doug Evans  <dje@google.com>
13380
13381	* linux-low.c (linux_wait_for_event): Improve comment.
13382	(linux_wait_1): Keep current_inferior in sync with event_child.
13383
133842014-01-22  Doug Evans  <dje@google.com>
13385
13386	* gdbthread.h (gdb_id_to_thread): Delete, unused.
13387
133882014-01-22  Doug Evans  <dje@google.com>
13389
13390	* configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
13391	* configure: Regenerate.
13392	* config.in: Regenerate.
13393	* Makefile.in (SFILES): Add debug.c.
13394	(OBS): Add debug.o.
13395	* debug.c: New file.
13396	* debug.h: New file.
13397	* linux-aarch64-low.c (*): Update all debugging printfs to use
13398	debug_printf instead of fprintf.
13399	* linux-arm-low.c (*): Ditto.
13400	* linux-cris-low.c (*): Ditto.
13401	* linux-crisv32-low.c (*): Ditto.
13402	* linux-m32r-low.c (*): Ditto.
13403	* linux-sparc-low.c (*): Ditto.
13404	* linux-x86.c (*): Ditto.
13405	* linux-low.c (*): Ditto.
13406	(linux_wait_1): Add calls to debug_enter, debug_exit.
13407	(linux_wait): Remove redundant debugging printf.
13408	(stop_all_lwps): Add calls to debug_enter, debug_exit.
13409	(linux_resume, unstop_all_lwps): Ditto.
13410	* mem-break.c (*): Update all debugging printfs to use
13411	debug_printf instead of fprintf.
13412	* remote-utils.c (*): Ditto.
13413	* thread-db.c (*): Ditto.
13414	* server.c #include <ctype.h>, "gdb_vecs.h".
13415	(debug_threads): Moved to debug.c.
13416	(*): Update all debugging printfs to use debug_printf instead of
13417	fprintf.
13418	(start_inferior): Replace call to fflush with call to debug_flush.
13419	(monitor_show_help): Mention set debug-format.
13420	(parse_debug_format_options): New function.
13421	(handle_monitor_command): Handle "monitor set debug-format".
13422	(gdbserver_usage): Mention --debug-format.
13423	(main): Parse --debug-format.
13424	* server.h (debug_threads): Declaration moved to debug.h.
13425	#include "debug.h".
13426	* tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
13427	trace_debug_1 that uses debug_printf.
13428	(tracepoint_look_up_symbols): Update all debugging printfs to use
13429	debug_printf instead of fprintf.
13430
134312014-01-20  Baruch Siach  <baruch@tkos.co.il>
13432
13433	* linux-xtensa-low.c: Include asm/ptrace.h instead of
13434	sys/ptrace.h.
13435
134362014-01-17  Pedro Alves  <palves@redhat.com>
13437
13438	PR build/16445
13439	* linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
13440	defined after including gdb_proc_service.h.
13441
134422014-01-16  Doug Evans  <dje@google.com>
13443
13444	* dll.c (UNSPECIFIED_CORE_ADDR): New macro.
13445	(match_dll): Use it.
13446
134472014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13448
13449	* target.h (target_ops) <read_btrace>: Change parameters and
13450	return type to allow error reporting.
13451	* server.c (handle_qxfer_btrace): Support delta reads.  Pass
13452	trace reading errors on.
13453	* linux-low.c (linux_low_read_btrace): Pass trace reading
13454	errors on.
13455	(linux_low_disable_btrace): New.
13456
134572014-01-15  Doug Evans  <dje@google.com>
13458
13459	* inferiors.c (thread_id_to_gdb_id): Delete.
13460	* inferiors.h (thread_id_to_gdb_id): Delete.
13461
134622014-01-13  Eli Zaretskii  <eliz@gnu.org>
13463
13464	* Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
13465	"-I$(srcdir)/../".  Fixes MinGW compilation errors with old GCC
13466	versions.
13467
134682014-01-08  Pedro Alves  <palves@redhat.com>
13469
13470	* server.c (handle_status): Don't discard previous queued stop
13471	replies or thread's pending status here.
13472	(main) <disconnection>: Do it here instead.
13473
134742014-01-08  Pedro Alves  <palves@redhat.com>
13475
13476	* gdbthread.h (struct thread_info) <status_pending_p>: New field.
13477	* server.c (visit_actioned_threads, handle_pending_status): New
13478	function.
13479	(handle_v_cont): Factor out parts to ...
13480	(resume): ... this new function.  If in all-stop, and a thread
13481	being resumed has a pending status, report it without actually
13482	resuming.
13483	(myresume): Adjust to use the new 'resume' function.
13484	(clear_pending_status_callback, set_pending_status_callback)
13485	(find_status_pending_thread_callback): New functions.
13486	(handle_status): Handle the case of multiple threads having
13487	interesting statuses to report.  Report threads' real last signal
13488	instead of always reporting GDB_SIGNAL_TRAP.  Look for a thread
13489	with an interesting thread to report the status for, instead of
13490	always reporting the status of the first thread.
13491
134922014-01-01  Joel Brobecker  <brobecker@adacore.com>
13493
13494	* gdbserver.c (gdbserver_version): Set copyright year to 2014.
13495	* gdbreplay.c (gdbreplay_version): Likewise.
13496
134972013-12-18  Yufeng Zhang  <yufeng.zhang@arm.com>
13498
13499	* linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
13500	iov.iov_len with the real length in use.
13501
135022013-12-13  Joel Brobecker  <brobecker@adacore.com>
13503
13504	* Makefile.in (safe-ctype.o, lbasename.o): New rules.
13505	* configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
13506	for all targets that use win32-low.c.
13507	* win32-low.c (win32_ensure_ntdll_loaded): New function.
13508	(do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
13509
135102013-12-13  Pedro Alves  <palves@redhat.com>
13511
13512	* target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
13513	if equal to TARGET_WAITKIND_LOADED.
13514	* win32-low.c (cached_status): New static global.
13515	(win32_wait): Add declaration.
13516	(do_initial_child_stuff): Flush all initial pending debug events
13517	up to the initial breakpoint.
13518	(win32_wait): If CACHED_STATUS was set, return that instead
13519	of doing a real wait.  Remove the code resuming the execution
13520	of the inferior after receiving a TARGET_WAITKIND_LOADED event
13521	during the initial phase.  Also remove the code changing
13522	OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
13523	TARGET_WAITKIND_STOPPED.
13524
135252013-12-11  Yao Qi  <yao@codesourcery.com>
13526
13527	* notif.c (handle_notif_ack): Return 0 if no notification
13528	matches.
13529
135302013-11-20  Doug Evans  <dje@google.com>
13531
13532	* linux-low.c (linux_set_resume_request): Fix comment.
13533
135342013-11-20  Doug Evans  <dje@google.com>
13535
13536	* linux-low.c (resume_status_pending_p): Tweak comment.
13537
135382013-11-20  Walfred Tedeschi  <walfred.tedeschi@intel.com>
13539
13540	* Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
13541	amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
13542	* configure.srv (srv_i386_regobj): Add i386-mpx.o.
13543	(srv_i386_linux_regobj): Add i386-mpx-linux.o.
13544	(srv_amd64_regobj): Add amd64-mpx.o.
13545	(srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
13546	(srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
13547	(srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
13548	* i387-fp.c (num_pl_bnd_register) Added constant.
13549	(num_pl_bnd_cfg_registers) Added constant.
13550	(struct i387_xsave) Added reserved area and MPX fields.
13551	(i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
13552	* linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
13553	function.
13554	(tdesc_i386_mpx_linux): Add MPX amd64 target.
13555	(init_registers_amd64_mpx_linux): Declare new function.
13556	(tdesc_amd64_mpx_linux): Add MPX amd64 target.
13557	(x86_64_regmap): Add MPX registers.
13558	(x86_linux_read_description): Add MPX case.
13559	(initialize_low_arch): Initialize MPX targets.
13560
135612013-11-18  Tom Tromey  <tromey@redhat.com>
13562
13563	* configure: Rebuild.
13564	* configure.ac: Don't check for stdlib.h.
13565	* gdbreplay.c: Unconditionally include stdlib.h.
13566
135672013-11-18  Tom Tromey  <tromey@redhat.com>
13568
13569	* config.in: Rebuild.
13570	* configure: Rebuild.
13571	* configure.ac: Don't use AC_HEADER_DIRENT.
13572
135732013-11-18  Tom Tromey  <tromey@redhat.com>
13574
13575	* server.h: Don't check HAVE_STRING_H.
13576	* gdbreplay.c: Don't check HAVE_STRING_H.
13577	* configure: Rebuild.
13578
135792013-11-18  Tom Tromey  <tromey@redhat.com>
13580
13581	* Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
13582	LIBGNU.
13583
135842013-11-08  Tom Tromey  <tromey@redhat.com>
13585
13586	* configure, config.in: Rebuild.
13587	* configure.ac: Remove unused configury.
13588
135892013-11-08  Tom Tromey  <tromey@redhat.com>
13590
13591	* acinclude.m4: Include common.m4, codeset.m4.
13592	* configure, config.in: Rebuild.
13593	* configure.ac: Use GDB_AC_COMMON.
13594
135952013-11-06  Andreas Arnez  <arnez@linux.vnet.ibm.com>
13596
13597	* linux-s390-low.c (HWCAP_S390_TE): New define.
13598	(s390_arch_setup): Consider the TE field in the HWCAP for
13599	determining 'have_regset_tdb'.
13600
136012013-10-16  Sergio Durigan Junior  <sergiodj@redhat.com>
13602
13603	PR gdb/16014
13604	* tracepoint.c (download_tracepoint_1): Remove unnecessary double
13605	call to sizeof.
13606
136072013-10-02  Pedro Alves  <palves@redhat.com>
13608
13609	* server.c (process_serial_event): Don't output "GDBserver
13610	exiting" if GDB is connected through stdio.
13611	* target.c (mywait): Likewise, be silent if GDB is connected
13612	through stdio.
13613
136142013-10-01  Joel Brobecker  <brobecker@adacore.com>
13615
13616	* lynx-low.c (lynx_add_threads_after_attach): New function.
13617	(lynx_attach): Remove call to add_thread.  Add call to
13618	lynx_add_threads_after_attach instead.
13619
136202013-09-28  Mike Frysinger  <vapier@gentoo.org>
13621
13622	* configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
13623	* config.in, configure: Regenerated.
13624
136252013-09-18  Yao Qi  <yao@codesourcery.com>
13626
13627	PR server/15959
13628	* server.c (start_inferior): Clear 'resume_info'.
13629
136302013-09-16  Jiong Wang  <jiwang@tilera.com>
13631
13632	* linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
13633	for each register.
13634
136352013-09-16  Jiong Wang  <jiwang@tilera.com>
13636
13637	* configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
13638	linux-tile-low.o to srv_tgtobj.
13639
136402013-09-16  Will Newton  <will.newton@linaro.org>
13641
13642	* linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
13643	out regs.
13644
136452013-09-06  Pedro Alves  <palves@redhat.com>
13646
13647	* Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
13648	(signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
13649	(linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
13650	(server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
13651	(gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
13652	(mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
13653
136542013-09-06  Pedro Alves  <palves@redhat.com>
13655
13656	* Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
13657	explicit header dependencies and use $COMPILE/$POSTCOMPILE.
13658
136592013-09-06  Pedro Alves  <palves@redhat.com>
13660
13661	* linux-amd64-ipa.c: Include tracepoint.h.
13662	* linux-i386-ipa.c: Include tracepoint.h.
13663
136642013-09-06  Ricard Wanderlof  <ricardw@axis.com>
13665
13666	* linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
13667	(ps_get_thread_area): New function.
13668
136692013-09-06  Ricard Wanderlof  <ricardw@axis.com>
13670
13671	* linux-crisv32-low.c (elf_gregset_t): Delete typedef.
13672	(initialize_low_arch): Call init_registers_crisv32 rather than
13673	init_register_crisv32.
13674
136752013-09-05  Pedro Alves  <palves@redhat.com>
13676
13677	* server.h (handle_vFile, hostio_last_error_from_errno): Move
13678	to ...
13679	* hostio.h: ... this new file.
13680	* hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
13681	win32-low.c: Include hostio.h.
13682
136832013-09-05  Pedro Alves  <palves@redhat.com>
13684
13685	* server.h (gdb_client_data, handler_func, callback_handler_func)
13686	(delete_file_handler, add_file_handler, append_callback_event)
13687	(delete_callback_event, start_event_loop, initialize_event_loop):
13688	Move to event-loop.h and include it.
13689	* event-loop.h: New file.
13690
136912013-09-05  Pedro Alves  <palves@redhat.com>
13692
13693	* dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
13694	* server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
13695	(loaded_dll, unloaded_dll): Move to ...
13696	* dll.h: ... this new file.
13697	* inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
13698
136992013-09-05  Pedro Alves  <palves@redhat.com>
13700
13701	* server.h (current_process, get_thread_process, all_processes)
13702	(add_inferior_to_list, for_each_inferior, current_inferior)
13703	(remove_inferior, add_process, remove_process, find_process_pid)
13704	(have_started_inferiors_p, have_attached_inferiors_p)
13705	(thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
13706	(clear_inferiors, find_inferior, find_inferior_id)
13707	(inferior_target_data, set_inferior_target_data)
13708	(inferior_regcache_data, set_inferior_regcache_data): Move to
13709	inferiors.h, and include it.
13710	* inferiors.h: New file.
13711
137122013-09-05  Pedro Alves  <palves@redhat.com>
13713
13714	* server.h (struct emit_ops, current_insn_ptr, emit_error):
13715	Move ...
13716	* ax.h: ... here.
13717
137182013-09-05  Pedro Alves  <palves@redhat.com>
13719
13720	* ax.c, linux-low.c, linux-x86-low.c, server.c: Include
13721	tracepoint.h.
13722	* server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
13723	(disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
13724	(handle_tracepoint_general_set, handle_tracepoint_query)
13725	(tracepoint_finished_step, tracepoint_was_hit)
13726	(release_while_stepping_state_list, current_traceframe)
13727	(in_readonly_region, traceframe_read_mem)
13728	(fetch_traceframe_registers, traceframe_read_sdata)
13729	(traceframe_read_info, struct fast_tpoint_collect_status)
13730	(fast_tracepoint_collecting, force_unlock_trace_buffer)
13731	(handle_tracepoit_bkpts, initialize_low_tracepoint)
13732	(supply_fast_tracepoint_registers)
13733	(supply_static_tracepoint_registers, set_trampoline_buffer_space)
13734	(ipa_tdesc, claim_trampoline_space)
13735	(have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
13736	(agent_mem_read, agent_get_trace_state_variable_value)
13737	(agent_set_trace_state_variable_value, agent_tsv_read)
13738	(agent_mem_read_string, get_raw_reg_func_addr)
13739	(get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
13740	* tracepoint.h: ... this new file.
13741
137422013-09-05  Pedro Alves  <palves@redhat.com>
13743
13744	* server.h (perror_with_name, error, fatal, warning, paddress)
13745	(pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
13746	include it.
13747	* utils.h: New file.
13748
137492013-09-05  Pedro Alves  <palves@redhat.com>
13750
13751	* server.h (remote_debug, noack_mode, transport_is_reliable)
13752	(gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
13753	(read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
13754	(getpkt, remote_prepare, remote_open, remote_close, write_ok)
13755	(write_enn, initialize_async_io, enable_async_io)
13756	(disable_async_io, check_remote_input_interrupt_request)
13757	(convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
13758	(dead_thread_notify, prepare_resume_reply)
13759	(decode_address_to_semicolon, decode_address, decode_m_packet)
13760	(decode_M_packet, decode_X_packet, decode_xfer_write)
13761	(decode_search_memory_packet, unhexify, hexify)
13762	(remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
13763	(look_up_one_symbol, relocate_instruction)
13764	(monitor_output): Move to remote-utils.h, and include it.
13765	* remote-utils.h: New file.
13766
137672013-09-05  Pedro Alves  <palves@redhat.com>
13768
13769	* server.h (_): Delete.
13770
137712013-09-02  Pedro Alves  <palves@redhat.com>
13772
13773	* tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
13774	(init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
13775	allocated.
13776	(trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
13777
137782013-09-02  Pierre Muller  <muller@sourceware.org>
13779
13780	* win32-low.c (child_xfer_memory): Check if ReadProcessMemory
13781	or WriteProcessMemory complete successfully and handle
13782	ERROR_PARTIAL_COPY error.
13783
137842013-09-02  Pedro Alves  <palves@redhat.com>
13785
13786	* server.c (gdb_read_memory): Return -1 on traceframe memory read
13787	error instead of EIO.
13788
137892013-08-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
13790
13791	PR server/15604
13792	* linux-low.c: Include filestuff.h.
13793	(linux_create_inferior) <pid == 0>: Call close_most_fds.
13794	* lynx-low.c: Include filestuff.h.
13795	(lynx_create_inferior) <pid == 0>: Call close_most_fds.
13796	* server.c: Include filestuff.h.
13797	(main): Call notice_open_fds.
13798	* spu-low.c: Include filestuff.h.
13799	(spu_create_inferior) <pid == 0>: Call close_most_fds.
13800
138012013-08-22  Luis Machado  <lgustavo@codesourcery.com>
13802
13803	* Makefile.in: Explain why ../target and ../nat are not
13804	listed as include file search paths.
13805	(linux-waitpid.o): New object file rule.
13806	* configure.srv (srv_native_linux_obj): New variable.
13807	Replace all occurrences of linux native object files with
13808	$srv_native_linux_obj.
13809	* linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
13810	(HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
13811	(linux_enable_event_reporting): Remove declaration.
13812	(my_waitpid): Moved to common/linux-waitpid.c.
13813	(linux_wait_for_event): Pass ptid when calling
13814	linux_enable_event_reporting.
13815	(linux_supports_tracefork_flag): Remove.
13816	(linux_enable_event_reporting): Likewise.
13817	(linux_tracefork_grandchild): Remove.
13818	(STACK_SIZE): Moved to common/linux-ptrace.c.
13819	(linux_tracefork_child): Remove.
13820	(linux_test_for_tracefork): Remove.
13821	(linux_look_up_symbols): Call linux_supports_traceclone.
13822	(initialize_low): Remove call to linux_test_for_tracefork.
13823	* linux-low.h (PTRACE_TYPE_ARG3): Move to
13824	common/linux-ptrace.h.
13825	(PTRACE_TYPE_ARG4): Likewise.
13826	Include linux-ptrace.h.
13827
138282013-08-21  Pedro Alves  <palves@redhat.com>
13829
13830	* config.in: Renegerate.
13831
138322013-08-19  Luis Machado  <lgustavo@codesourcery.com>
13833
13834	* Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
13835	(SFILES): Remove $(srcdir)/common/target-common.c and
13836	add $(srcdir)/target/waitstatus.c.
13837	(OBS): Remove target-common.o and add waitstatus.o.
13838	(server_h): Remove $(srcdir)/../common/target-common.h and
13839	add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
13840	and $(srcdir)/../target/waitstatus.h.
13841	(target-common.o): Remove.
13842	(waitstatus.o): New target object file.
13843	* target.h: Do not include target-common.h and
13844	include target/resume.h, target/wait.h and
13845	target/waitstatus.h.
13846
138472013-08-13  Luis Machado  <lgustavo@codesourcery.com>
13848
13849	* linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13850	to PTRACE_TYPE_ARG3.
13851	* linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13852	to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
13853	PTRACE_TYPE_ARG4.
13854	* linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
13855	(PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
13856
138572013-07-27  Jie Zhang  <jie@codesourcery.com>
13858	    Daniel Jacobowitz  <dan@codesourcery.com>
13859	    Yao Qi  <yao@codesourcery.com>
13860
13861	* Makefile.in (SFILES): Add common/mips-linux-watch.c.
13862	(mips-linux-watch.o): New rule.
13863	(mips_linux_watch_h): New variable.
13864	* configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
13865	srv_tgtobj.
13866	* linux-mips-low.c: Include mips-linux-watch.h.
13867	(struct arch_process_info, struct arch_lwp_info): New.
13868	(update_watch_registers_callback): New function.
13869	(mips_linux_new_process, mips_linux_new_thread) New functions.
13870	(mips_linux_prepare_to_resume, mips_insert_point): New
13871	functions.
13872	(mips_remove_point, mips_stopped_by_watchpoint): New
13873	functions.
13874	(rsp_bp_type_to_target_hw_bp_type): New function.
13875	(mips_stopped_data_address): New function.
13876	(the_low_target): Add watchpoint support functions.
13877
138782013-07-27  Yao Qi  <yao@codesourcery.com>
13879
13880	* i386-low.c: Include break-common.h.
13881	(enum target_hw_bp_type): Remove.
13882
138832013-07-24  Luis Machado  <lgustavo@codesourcery.com>
13884
13885	* Makefile.in (SFILES): /common/target-common.c.
13886	(OBS): Add target-common.o.
13887	(server_h): Add $(srcdir)/../common/target-common.h.
13888	(target-common.o): New target.
13889	* server.c (queue_stop_reply_callback): Free
13890	status string after use.
13891	* target.c (target_waitstatus_to_string): Remove.
13892	* target.h: Include target-common.h.
13893	(resume_kind): Likewise.
13894	(target_waitkind): Likewise.
13895	(target_waitstatus): Likewise.
13896	(TARGET_WNOHANG): Likewise.
13897
138982013-07-04  Yao Qi  <yao@codesourcery.com>
13899
13900	* Makefile.in (host_alias): Use @host_noncanonical@.
13901	(target_alias): Use @target_noncanonical@.
13902	* configure.ac: Use ACX_NONCANONICAL_TARGET and
13903	ACX_NONCANONICAL_HOST.
13904	* configure: Regenerated.
13905
13906	Revert:
13907	2013-06-28  Mircea Gherzan  <mircea.gherzan@intel.com>
13908
13909	* configure.ac (version_host, version_target): Set and AC_SUBST them.
13910	* configure: Rebuild.
13911	* Makefile.in (version_host, version_target): Get from configure.
13912	(version.c): Use $(version_host) and $(version_target).
13913
139142013-07-03  Pedro Alves  <palves@redhat.com>
13915
13916	* Makefile.in (config.status): Depend on development.sh.
13917	* acinclude.m4: Include libmcheck.m4.
13918	* configure: Regenerate.
13919
139202013-07-02  Mircea Gherzan  <mircea.gherzan@intel.com>
13921
13922	* win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
13923	attribute inside the parentheses.
13924	(winapi_DebugSetProcessKillOnExit): Ditto.
13925	(winapi_DebugBreakProcess): Ditto.
13926	(winapi_GenerateConsoleCtrlEvent): Ditto.
13927
139282013-07-02  Mircea Gherzan  <mircea.gherzan@intel.com>
13929
13930	* notif.h (notif_event): Add a dummy member to avoid compiler
13931	errors.
13932
139332013-07-01  Pedro Alves  <palves@redhat.com>
13934
13935	* hostio.c (HOSTIO_PATH_MAX): Define.
13936	(require_filename, handle_open, handle_unlink, handle_readlink):
13937	Use it.
13938
139392013-07-01  Pedro Alves  <palves@redhat.com>
13940
13941	* server.h: Include "pathmax.h".
13942	* linux-low.c: Don't include sys/param.h.
13943	(linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
13944	MAXPATHLEN.
13945	* win32-low.c: Don't include sys/param.h.
13946	(win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
13947
139482013-07-01  Pedro Alves  <palves@redhat.com>
13949
13950	* event-loop.c: Don't check HAVE_UNISTD_H before including
13951	<unistd.h>.
13952	* gdbreplay.c: Likewise.
13953	* remote-utils.c: Likewise.
13954	* server.c: Likewise.
13955	* configure.ac: Don't check for unistd.h.
13956	* configure: Regenerate.
13957
139582013-06-28  Tom Tromey  <tromey@redhat.com>
13959
13960	* Makefile.in (version.c): Use version.in, not
13961	common/version.in.
13962
139632013-06-28  Mircea Gherzan  <mircea.gherzan@intel.com>
13964
13965	* configure.ac (version_host, version_target): Set and AC_SUBST them.
13966	* configure: Rebuild.
13967	* Makefile.in (version_host, version_target): Get from configure.
13968	(version.c): Use $(version_host) and $(version_target).
13969
139702013-06-10  Dmitry Kozlov <ddk@codesourcery.com>
13971
13972	Fix trace-status to output user name without trailing colon.
13973	* tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
13974
139752013-06-10  Dmitry Kozlov <ddk@codesourcery.com>
13976
13977	Fix trace-status to output proper start-time and stop-time.
13978	* tracepoint.c (cmd_qtstatus): Modify trace-status output to
13979	output start time and stop time in hex as gdb expects.
13980
139812013-06-26  Pedro Alves  <pedro@codesourcery.com>
13982
13983	* tracepoint.c (build_traceframe_info_xml): Output trace state
13984	variables present in the trace buffer.
13985
139862013-06-24  Tom Tromey  <tromey@redhat.com>
13987
13988	* Makefile.in (version.c): Use bfd/version.h, common/version.in,
13989	create-version.sh.
13990	(version.o): Remove.
13991	* gdbreplay.c: Include version.h.
13992	(version, host_name): Don't declare.
13993	* server.h: Include version.h.
13994	(version, host_name): Don't declare.
13995
139962013-06-12  Pedro Alves  <palves@redhat.com>
13997
13998	* linux-x86-low.c (linux_is_elf64): Delete global.
13999	(x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
14000	with local linux_pid_exe_is_elf_64_file use.
14001
140022013-06-11  Pedro Alves  <palves@redhat.com>
14003
14004	* linux-low.c (regset_disabled, disable_regset): New functions.
14005	(regsets_fetch_inferior_registers)
14006	(regsets_store_inferior_registers): Use them.
14007	(initialize_regsets_info); Don't allocate the disabled_regsets
14008	array here.
14009	* linux-low.h (struct regsets_info) <disabled_regsets>: Extend
14010	comment.
14011
140122013-06-11  Pedro Alves  <palves@redhat.com>
14013
14014	* linux-low.c (initialize_regsets_info): Use xcalloc instead of
14015	xmalloc.
14016
140172013-06-11  Pedro Alves  <palves@redhat.com>
14018
14019	* linux-x86-low.c (initialize_low_arch): Call
14020	init_registers_x32_avx_linux.
14021
140222013-06-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
14023
14024	Fix compatibility with Android Bionic.
14025	* linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
14026	it is not empty.
14027
140282013-06-07  Pedro Alves  <palves@redhat.com>
14029
14030	PR server/14823
14031	* Makefile.in (OBS): Add tdesc.o.
14032	(IPA_OBJS): Add tdesc-ipa.o.
14033	(tdesc-ipa.o): New rule.
14034	* ax.c (gdb_eval_agent_expr): Adjust register_size call to new
14035	interface.
14036	* linux-low.c (new_inferior): Delete.
14037	(disabled_regsets, num_regsets): Delete.
14038	(linux_add_process): Adjust to set the new per-process
14039	new_inferior flag.
14040	(linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
14041	(linux_wait_for_lwp): Adjust.  Only call arch_setup if the event
14042	was a stop.  When calling arch_setup, switch the current inferior
14043	to the thread that got an event.
14044	(linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
14045	(regsets_fetch_inferior_registers)
14046	(regsets_store_inferior_registers): New regsets_info parameter.
14047	Adjust to use it.
14048	(linux_register_in_regsets): New regs_info parameter.  Adjust to
14049	use it.
14050	(register_addr, fetch_register, store_register): New usrregs_info
14051	parameter.  Adjust to use it.
14052	(usr_fetch_inferior_registers, usr_store_inferior_registers): New
14053	parameter regs_info.  Adjust to use it.
14054	(linux_fetch_registers): Get the current inferior's regs_info, and
14055	adjust to use it.
14056	(linux_store_registers): Ditto.
14057	[HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
14058	(initialize_low): Don't initialize the target_regsets here.  Call
14059	initialize_low_arch.
14060	* linux-low.h (target_regsets): Delete declaration.
14061	(struct regsets_info): New.
14062	(struct usrregs_info): New.
14063	(struct regs_info): New.
14064	(struct process_info_private) <new_inferior>: New field.
14065	(struct linux_target_ops): Delete the num_regs, regmap, and
14066	regset_bitmap fields.  New field regs_info.
14067	[HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
14068	* i387-fp.c (num_xmm_registers): Delete.
14069	(i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
14070	calls to new interface.
14071	(i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
14072	(i387_xsave_to_cache): Adjust find_regno calls to new interface.
14073	Infer the number of xmm registers from the regcache's target
14074	description.
14075	* i387-fp.h (num_xmm_registers): Delete.
14076	* inferiors.c (add_thread): Don't install the thread's regcache
14077	here.
14078	* proc-service.c (gregset_info): Fetch the current inferior's
14079	regs_info.  Adjust to use it.
14080	* regcache.c: Include tdesc.h.
14081	(register_bytes, reg_defs, num_registers)
14082	(gdbserver_expedite_regs): Delete.
14083	(get_thread_regcache): If the thread doesn't have a regcache yet,
14084	create one, instead of aborting gdbserver.
14085	(regcache_invalidate_one): Rename to ...
14086	(regcache_invalidate_thread): ... this.
14087	(regcache_invalidate_one): New.
14088	(regcache_invalidate): Only invalidate registers of the current
14089	process.
14090	(init_register_cache): Add target_desc parameter, and use it.
14091	(new_register_cache): Ditto.  Assert the target description has a
14092	non zero registers_size.
14093	(regcache_cpy): Add assertions.  Adjust.
14094	(realloc_register_cache, set_register_cache): Delete.
14095	(registers_to_string, registers_from_string): Adjust.
14096	(find_register_by_name, find_regno, find_register_by_number)
14097	(register_cache_size): Add target_desc parameter, and use it.
14098	(free_register_cache_thread, free_register_cache_thread_one)
14099	(regcache_release, register_cache_size): New.
14100	(register_size): Add target_desc parameter, and use it.
14101	(register_data, supply_register, supply_register_zeroed)
14102	(supply_regblock, supply_register_by_name, collect_register)
14103	(collect_register_as_string, collect_register_by_name): Adjust.
14104	* regcache.h (struct target_desc): Forward declare.
14105	(struct regcache) <tdesc>: New field.
14106	(init_register_cache, new_register_cache): Add target_desc
14107	parameter.
14108	(regcache_invalidate_thread): Declare.
14109	(regcache_invalidate_one): Delete declaration.
14110	(regcache_release): Declare.
14111	(find_register_by_number, register_cache_size, register_size)
14112	(find_regno): Add target_desc parameter.
14113	(gdbserver_expedite_regs, gdbserver_xmltarget): Delete
14114	declarations.
14115	* remote-utils.c: Include tdesc.h.
14116	(outreg, prepare_resume_reply): Adjust.
14117	* server.c: Include tdesc.h.
14118	(gdbserver_xmltarget): Delete declaration.
14119	(get_features_xml, process_serial_event): Adjust.
14120	* server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
14121	declare.
14122	(struct process_info) <tdesc>: New field.
14123	(ipa_tdesc): Declare.
14124	* tdesc.c: New file.
14125	* tdesc.h: New file.
14126	* tracepoint.c: Include tdesc.h.
14127	[IN_PROCESS_AGENT] (ipa_tdesc): Define.
14128	(get_context_regcache): Adjust to pass ipa_tdesc down.
14129	(do_action_at_tracepoint): Adjust to get the register cache size
14130	from the context regcache's description.
14131	(traceframe_walk_blocks): Adjust to get the register cache size
14132	from the current trace frame's description.
14133	(traceframe_get_pc): Adjust to get current trace frame's
14134	description and pass it down.
14135	(gdb_collect): Adjust to get the register cache size from the
14136	IPA's description.
14137	* linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
14138	(gdbserver_xmltarget): Delete.
14139	(initialize_low_tracepoint): Set the ipa's target description.
14140	* linux-i386-ipa.c (tdesc_i386_linux): Declare.
14141	(initialize_low_tracepoint): Set the ipa's target description.
14142	* linux-x86-low.c: Include tdesc.h.
14143	[__x86_64__] (is_64bit_tdesc): New.
14144	(ps_get_thread_area, x86_get_thread_area): Use it.
14145	(i386_cannot_store_register): Rename to ...
14146	(x86_cannot_store_register): ... this.  Use is_64bit_tdesc.
14147	(i386_cannot_fetch_register): Rename to ...
14148	(x86_cannot_fetch_register): ... this.  Use is_64bit_tdesc.
14149	(x86_fill_gregset, x86_store_gregset): Adjust register_size calls
14150	to new interface.
14151	(target_regsets): Rename to ...
14152	(x86_regsets): ... this.
14153	(x86_get_pc, x86_set_pc): Adjust register_size calls to new
14154	interface.
14155	(x86_siginfo_fixup): Use is_64bit_tdesc.
14156	[__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
14157	(tdesc_x32_avx_linux, tdesc_x32_linux)
14158	(tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
14159	Declare.
14160	(x86_linux_update_xmltarget): Delete.
14161	(I386_LINUX_XSAVE_XCR0_OFFSET): Define.
14162	(have_ptrace_getfpxregs, have_ptrace_getregset): New.
14163	(AMD64_LINUX_USER64_CS): New.
14164	(x86_linux_read_description): New, based on
14165	x86_linux_update_xmltarget.
14166	(same_process_callback): New.
14167	(x86_arch_setup_process_callback): New.
14168	(x86_linux_update_xmltarget): New.
14169	(x86_regsets_info): New.
14170	(amd64_linux_regs_info): New.
14171	(i386_linux_usrregs_info): New.
14172	(i386_linux_regs_info): New.
14173	(x86_linux_regs_info): New.
14174	(x86_arch_setup): Reimplement.
14175	(x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
14176	(x86_emit_ops): Ditto.
14177	(the_low_target): Adjust.  Install x86_linux_regs_info,
14178	x86_cannot_fetch_register, and x86_cannot_store_register.
14179	(initialize_low_arch): New.
14180	* linux-ia64-low.c (tdesc_ia64): Declare.
14181	(ia64_fetch_register): Adjust.
14182	(ia64_usrregs_info, regs_info): New globals.
14183	(ia64_regs_info): New function.
14184	(the_low_target): Adjust.
14185	(initialize_low_arch): New function.
14186	* linux-sparc-low.c (tdesc_sparc64): Declare.
14187	(sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
14188	Adjust.
14189	(sparc_arch_setup): New function.
14190	(sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
14191	(the_low_target): Adjust.
14192	(initialize_low_arch): New function.
14193	* linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
14194	(tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
14195	(tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
14196	(tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
14197	(tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
14198	(tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
14199	(tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
14200	(tdesc_powerpc_isa205_vsx64l): Declare.
14201	(ppc_cannot_store_register, ppc_collect_ptrace_register)
14202	(ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
14203	(ppc_set_pc, ppc_get_hwcap): Adjust.
14204	(ppc_usrregs_info): Forward declare.
14205	(!__powerpc64__) ppc_regmap_adjusted: New global.
14206	(ppc_arch_setup): Adjust to the current process'es target
14207	description.
14208	(ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
14209	(ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
14210	(ppc_store_evrregset): Adjust.
14211	(target_regsets): Rename to ...
14212	(ppc_regsets): ... this, and make static.
14213	(ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
14214	(ppc_regs_info): New function.
14215	(the_low_target): Adjust.
14216	(initialize_low_arch): New function.
14217	* linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
14218	(tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
14219	(tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
14220	(tdesc_s390x_linux64v2): Declare.
14221	(s390_collect_ptrace_register, s390_supply_ptrace_register)
14222	(s390_fill_gregset, s390_store_last_break): Adjust.
14223	(target_regsets): Rename to ...
14224	(s390_regsets): ... this, and make static.
14225	(s390_get_pc, s390_set_pc): Adjust.
14226	(s390_get_hwcap): New target_desc parameter, and use it.
14227	[__s390x__] (have_hwcap_s390_high_gprs): New global.
14228	(s390_arch_setup): Adjust to set the current process'es target
14229	description.  Don't adjust the regmap.
14230	(s390_usrregs_info, s390_regsets_info, regs_info): New globals.
14231	[__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
14232	(regs_info_3264): New globals.
14233	(s390_regs_info): New function.
14234	(the_low_target): Adjust.
14235	(initialize_low_arch): New function.
14236	* linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
14237	(tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
14238	[__mips64] (init_registers_mips_linux)
14239	(init_registers_mips_dsp_linux): Delete defines.
14240	[__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
14241	(have_dsp): New global.
14242	(mips_read_description): New, based on mips_arch_setup.
14243	(mips_arch_setup): Reimplement.
14244	(get_usrregs_info): New function.
14245	(mips_cannot_fetch_register, mips_cannot_store_register)
14246	(mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
14247	(mips_fill_fpregset, mips_store_fpregset): Adjust.
14248	(target_regsets): Rename to ...
14249	(mips_regsets): ... this, and make static.
14250	(mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
14251	(dsp_regs_info, regs_info): New globals.
14252	(mips_regs_info): New function.
14253	(the_low_target): Adjust.
14254	(initialize_low_arch): New function.
14255	* linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
14256	(tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
14257	Declare.
14258	(arm_fill_vfpregset, arm_store_vfpregset): Adjust.
14259	(arm_read_description): New, with bits factored from
14260	arm_arch_setup.
14261	(arm_arch_setup): Reimplement.
14262	(target_regsets): Rename to ...
14263	(arm_regsets): ... this, and make static.
14264	(arm_regsets_info, arm_usrregs_info, regs_info): New globals.
14265	(arm_regs_info): New function.
14266	(the_low_target): Adjust.
14267	(initialize_low_arch): New function.
14268	* linux-m68k-low.c (tdesc_m68k): Declare.
14269	(target_regsets): Rename to ...
14270	(m68k_regsets): ... this, and make static.
14271	(m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
14272	(m68k_regs_info): New function.
14273	(m68k_arch_setup): New function.
14274	(the_low_target): Adjust.
14275	(initialize_low_arch): New function.
14276	* linux-sh-low.c (tdesc_sharch): Declare.
14277	(target_regsets): Rename to ...
14278	(sh_regsets): ... this, and make static.
14279	(sh_regsets_info, sh_usrregs_info, regs_info): New globals.
14280	(sh_regs_info, sh_arch_setup): New functions.
14281	(the_low_target): Adjust.
14282	(initialize_low_arch): New function.
14283	* linux-bfin-low.c (tdesc_bfin): Declare.
14284	(bfin_arch_setup): New function.
14285	(bfin_usrregs_info, regs_info): New globals.
14286	(bfin_regs_info): New function.
14287	(the_low_target): Adjust.
14288	(initialize_low_arch): New function.
14289	* linux-cris-low.c (tdesc_cris): Declare.
14290	(cris_arch_setup): New function.
14291	(cris_usrregs_info, regs_info): New globals.
14292	(cris_regs_info): New function.
14293	(the_low_target): Adjust.
14294	(initialize_low_arch): New function.
14295	* linux-cris-low.c (tdesc_crisv32): Declare.
14296	(cris_arch_setup): New function.
14297	(cris_regsets_info, cris_usrregs_info, regs_info): New globals.
14298	(cris_regs_info): New function.
14299	(the_low_target): Adjust.
14300	(initialize_low_arch): New function.
14301	* linux-m32r-low.c (tdesc_m32r): Declare.
14302	(m32r_arch_setup): New function.
14303	(m32r_usrregs_info, regs_info): New globals.
14304	(m32r_regs_info): Adjust.
14305	(initialize_low_arch): New function.
14306	* linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
14307	(tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
14308	(tic6x_usrregs_info): Forward declare.
14309	(tic6x_read_description): New function, based on ...
14310	(tic6x_arch_setup): ... this.  Reimplement.
14311	(target_regsets): Rename to ...
14312	(tic6x_regsets): ... this, and make static.
14313	(tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
14314	(tic6x_regs_info): New function.
14315	(the_low_target): Adjust.
14316	(initialize_low_arch): New function.
14317	* linux-xtensa-low.c (tdesc_xtensa): Declare.
14318	(xtensa_fill_gregset, xtensa_store_gregset): Adjust.
14319	(target_regsets): Rename to ...
14320	(xtensa_regsets): ... this, and make static.
14321	(xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
14322	globals.
14323	(xtensa_arch_setup, xtensa_regs_info): New functions.
14324	(the_low_target): Adjust.
14325	(initialize_low_arch): New function.
14326	* linux-nios2-low.c (tdesc_nios2_linux): Declare.
14327	(nios2_arch_setup): Set the current process'es tdesc.
14328	(target_regsets): Rename to ...
14329	(nios2_regsets): ... this.
14330	(nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
14331	(nios2_regs_info): New function.
14332	(the_low_target): Adjust.
14333	(initialize_low_arch): New function.
14334	* linux-aarch64-low.c (tdesc_aarch64): Declare.
14335	(aarch64_arch_setup): Set the current process'es tdesc.
14336	(target_regsets): Rename to ...
14337	(aarch64_regsets): ... this.
14338	(aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
14339	(aarch64_regs_info): New function.
14340	(the_low_target): Adjust.
14341	(initialize_low_arch): New function.
14342	* linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
14343	globals.
14344	(target_regsets): Rename to ...
14345	(tile_regsets): ... this.
14346	(tile_regsets_info, tile_usrregs_info, regs_info): New globals.
14347	(tile_regs_info): New function.
14348	(tile_arch_setup): Set the current process'es tdesc.
14349	(the_low_target): Adjust.
14350	(initialize_low_arch): New function.
14351	* spu-low.c (tdesc_spu): Declare.
14352	(spu_create_inferior, spu_attach): Set the new process'es tdesc.
14353	* win32-arm-low.c (tdesc_arm): Declare.
14354	(arm_arch_setup): New function.
14355	(the_low_target): Install arm_arch_setup instead of
14356	init_registers_arm.
14357	* win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
14358	(init_windows_x86): Rename to ...
14359	(i386_arch_setup): ... this.  Set `win32_tdesc'.
14360	(the_low_target): Adjust.
14361	* win32-low.c (win32_tdesc): New global.
14362	(child_add_thread): Don't create the thread cache here.
14363	(do_initial_child_stuff): Set the new process'es tdesc.
14364	* win32-low.h (struct target_desc): Forward declare.
14365	(win32_tdesc): Declare.
14366	* lynx-i386-low.c (tdesc_i386): Declare global.
14367	(lynx_i386_arch_setup): Set `lynx_tdesc'.
14368	* lynx-low.c (lynx_tdesc): New global.
14369	(lynx_add_process): Set the new process'es tdesc.
14370	* lynx-low.h (struct target_desc): Forward declare.
14371	(lynx_tdesc): Declare global.
14372	* lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
14373	(lynx_ppc_arch_setup): Set `lynx_tdesc'.
14374	* nto-low.c (nto_tdesc): New global.
14375	(do_attach): Set the new process'es tdesc.
14376	* nto-low.h (struct target_desc): Forward declare.
14377	(nto_tdesc): Declare.
14378	* nto-x86-low.c (tdesc_i386): Declare.
14379	(nto_x86_arch_setup): Set `nto_tdesc'.
14380
143812013-06-04  Gary Benson  <gbenson@redhat.com>
14382
14383	* server.c (handle_query): Add "augmented-libraries-svr4-read+"
14384	to qSupported response when appropriate.
14385	(handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
14386	with nonzero-length annex.
14387	* linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
14388	arguments supplied in annex.
14389
143902013-05-31  Doug Evans  <dje@google.com>
14391
14392	PR server/15594
14393	* linux-x86-low.c (ps_get_thread_area): Properly extend address to
14394	64 bits in 64-cross-32 environment.
14395
143962013-05-28  Pedro Alves  <palves@redhat.com>
14397
14398	* Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
14399	(aarch64-without-fpu.c): Delete rule.
14400	* configure.srv (aarch64*-*-linux*): Remove references to
14401	aarch64-without-fpu.o and aarch64-without-fpu.xml.
14402	* linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
14403	declaration.
14404
144052013-05-24  Pedro Alves  <palves@redhat.com>
14406
14407	* server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
14408	instead of strchr/decode_address.  Error if the range isn't split
14409	with a ','.  Don't assume there's be a ':' in the action.
14410
144112013-05-23  Yao Qi  <yao@codesourcery.com>
14412	    Pedro Alves  <palves@redhat.com>
14413
14414	* linux-low.c (lwp_in_step_range): New function.
14415	(linux_wait_1): If the thread was range stepping and stopped
14416	outside the stepping range, report the stop to GDB.  Otherwise,
14417	continue stepping.  Add range stepping debug output.
14418	(linux_set_resume_request): Copy the step range from the resume
14419	request to the lwp.
14420	(linux_supports_range_stepping): New.
14421	(linux_target_ops) <supports_range_stepping>: Set to
14422	linux_supports_range_stepping.
14423	* linux-low.h (struct linux_target_ops)
14424	<supports_range_stepping>: New field.
14425	(struct lwp_info) <step_range_start, step_range_end>: New fields.
14426	* linux-x86-low.c (x86_supports_range_stepping): New.
14427	(the_low_target) <supports_range_stepping>: Set to
14428	x86_supports_range_stepping.
14429	* server.c (handle_v_cont): Handle 'r' action.
14430	(handle_v_requests): Append ";r" if the target supports range
14431	stepping.
14432	* target.h (struct thread_resume) <step_range_start,
14433	step_range_end>: New fields.
14434	(struct target_ops) <supports_range_stepping>:
14435	New field.
14436	(target_supports_range_stepping): New macro.
14437
144382013-05-17  Joel Brobecker  <brobecker@adacore.com>
14439
14440	* lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
14441	confusion in comment.
14442
144432013-05-17  Joel Brobecker  <brobecker@adacore.com>
14444
14445	* lynx-low.c (struct process_info_private): New type.
14446	(lynx_add_process): New function.
14447	(lynx_create_inferior, lynx_attach): Replace calls to
14448	add_process by calls to lynx_add_process.
14449	(lynx_resume): If PTID is null, then try using
14450	current_process()->private->last_wait_event_ptid.
14451	Add comments.
14452	(lynx_clear_inferiors): Delete.  The contents of that function
14453	has been inlined in lynx_mourn;
14454	(lynx_wait_1): Save the ptid in the process's private data.
14455	(lynx_mourn): Free the process' private data.  Replace call
14456	to lynx_clear_inferiors by call to clear_inferiors.
14457
144582013-05-17  Yao Qi  <yao@codesourcery.com>
14459
14460	* i386-low.c (i386_length_and_rw_bits): Move the comment to
14461	the right place.
14462
144632013-05-16  Luis Machado  <lgustavo@codesourcery.com>
14464
14465	* linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
14466	PT_DATA_ADDR and PT_TEXT_END_ADDR.  Update comments.
14467	(linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
14468	PT_TEXT_END_ADDR guards.  Update comments.
14469	(linux_target_op) <read_offsets>: Conditionally define to
14470	linux_read_offsets if the target is UCLIBC and if it defines
14471	PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
14472
144732013-05-06  Sandra Loosemore  <sandra@codesourcery.com>
14474	    Andrew Jenner  <andrew@codesourcery.com>
14475
14476	* Makefile.in (SFILES): Add linux-nios2-low.c.
14477	(clean): Add action to delete nios2-linux.c.
14478	(nios2-linux.c): New rule.
14479	* configure.srv: Add nios2*-*-linux*.
14480	* linux-nios2-low.c: New.
14481
144822013-05-03  Hafiz Abid Qadeer  <abidh@codesourcery.com>
14483
14484	* tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
14485
144862013-04-25  Hui Zhu  <hui@codesourcery.com>
14487
14488	PR gdb/15186
14489	* ax.c (ax_printf): Add fflush.
14490
144912013-04-22  Tom Tromey  <tromey@redhat.com>
14492
14493	* Makefile.in (SFILES): Add filestuff.c.
14494	(OBS): Add filestuff.o.
14495	(filestuff.o): New target.
14496	* config.in, configure: Rebuild.
14497	* configure.ac: Check for fdwalk, pipe2.
14498
144992013-04-17  Pedro Alves  <palves@redhat.com>
14500
14501	* configure.ac (USE_THREAD_DB): Delete variable.
14502	(if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
14503	Don't AC_SUBST USE_THREAD_DB.
14504	* Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
14505	* config.in, configure: Regenerate.
14506
145072013-04-16  Pedro Alves  <palves@redhat.com>
14508
14509	* linux-low.h (struct lwp_info) <thread_known>: Move under
14510	the USE_THREAD_DB #ifdef.
14511
145122013-04-16  Pedro Alves  <palves@redhat.com>
14513
14514	* Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
14515	(linux-low.o): Delete rule.
14516	* linux-low.h: Always include "gdb_thread_db.h" instead of
14517	conditionally including thread_db.h.
14518	(struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
14519	HAVE_THREAD_DB_H.
14520
145212013-04-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
14522
14523	* Makefile.in (install-only): Fix make install regression.
14524
145252013-04-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
14526
14527	Convert man pages to texinfo, new gdbinit.5 texinfo page.
14528	* Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
14529	installation.
14530	* gdbserver.1: Remove.
14531
145322013-03-22  Pedro Alves  <palves@redhat.com>
14533
14534	* linux-low.c (handle_extended_wait): Don't call
14535	linux_enable_event_reporting.
14536
145372013-03-15  Tony Theodore  <tonyt@logyst.com>
14538
14539	PR build/9098:
14540	* Makefile.in (SHELL): Use @SHELL@.
14541
145422013-03-14  Sergio Durigan Junior  <sergiodj@redhat.com>
14543
14544	* tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
14545	compiler warning.
14546
145472013-03-13  Joel Brobecker  <brobecker@adacore.com>
14548
14549	* linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
14550	Remove extraneous NULL element.
14551
145522013-03-13  Yao Qi  <yao@codesourcery.com>
14553
14554	* tracepoint.c (traceframe_read_tsv): Look for the last matched
14555	'V' block in trace frame.
14556
145572013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
14558
14559	* target.h (struct target_ops): Add btrace ops.
14560	(target_supports_btrace): New macro.
14561	(target_enable_btrace): New macro.
14562	(target_disable_btrace): New macro.
14563	(target_read_btrace): New macro.
14564	* gdbthread.h (struct thread_info): Add btrace field.
14565	* server.c: Include btrace-common.h.
14566	(handle_btrace_general_set): New function.
14567	(handle_btrace_enable): New function.
14568	(handle_btrace_disable): New function.
14569	(handle_general_set): Call handle_btrace_general_set.
14570	(handle_qxfer_btrace): New function.
14571	(struct qxfer qxfer_packets[]): Add btrace entry.
14572	* inferiors.c (remove_thread): Disable btrace.
14573	* linux-low: Include linux-btrace.h.
14574	(linux_low_enable_btrace): New function.
14575	(linux_low_read_btrace): New function.
14576	(linux_target_ops): Add btrace ops.
14577	* configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
14578	Add srv_linux_btrace=yes.
14579	(x86_64-*-linux*): Add linux-btrace.o.
14580	Add srv_linux_btrace=yes.
14581	* configure.ac: Define HAVE_LINUX_BTRACE.
14582	* config.in: Regenerated.
14583	* configure: Regenerated.
14584
145852013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
14586
14587	* server.c (handle_qxfer): Preserve error message if -3 is
14588	returned.
14589	(qxfer): Document the -3 return value.
14590
145912013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
14592
14593	* Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
14594	(linux_btrace_h): New variable.
14595	(linux-btrace.o): New rule.
14596
145972013-03-08  Stan Shebs  <stan@codesourcery.com>
14598	    Hafiz Abid Qadeer  <abidh@codesourcery.com>
14599
14600	* tracepoint.c (trace_buffer_size): New global.
14601	(DEFAULT_TRACE_BUFFER_SIZE): New define.
14602	(init_trace_buffer): Change to one-argument function. Allocate
14603	trace buffer memory.
14604	(handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
14605	handle QTBuffer:size packet.
14606	(cmd_bigqtbuffer_size): New function.
14607	(initialize_tracepoint): Call init_trace_buffer with
14608	DEFAULT_TRACE_BUFFER_SIZE.
14609	* server.c (handle_query): Add QTBuffer:size in the
14610	supported packets.
14611
146122013-03-07  Yao Qi  <yao@codesourcery.com>
14613
14614	* tracepoint.c (cur_action, cur_step_action): Make them unsigned.
14615	(cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
14616	of -1.
14617	(cmd_qtsp): Adjust condition.  Do post increment.
14618	Set cur_action and cur_step_action back to 0.
14619
146202013-03-07  Jeremy Bennett  <jeremy.bennett@embecosm.com>
14621
14622	PR server/15236
14623	* linux-low.c (linux_write_memory): Return early success if LEN is
14624	zero.
14625
146262013-03-05  Corinna Vinschen  <vinschen@redhat.de>
14627
14628	* configure.srv: Add x86_64-*-cygwin* as target.
14629
146302013-02-28  Tom Tromey  <tromey@redhat.com>
14631
14632	* configure.ac: Invoke AC_SYS_LARGEFILE.
14633	* configure, config.in: Rebuild.
14634
146352013-02-28  Corinna Vinschen  <vinschen@redhat.com>
14636
14637	* win32-low.c: Throughout, fix format strings and casts of
14638	printf-like functions to avoid type related warnings on all
14639	platforms.
14640	(get_child_debug_event): Print dwDebugEventCode as hex since
14641	that's how it's usually documented.
14642
146432013-02-28  Yao Qi  <yao@codesourcery.com>
14644
14645	* tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
14646	pulongest.
14647
146482013-02-27  Jiong Wang  <jiwang@tilera.com>
14649
14650	* Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
14651	(reg-tilegx32.c): New rule.
14652	* configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
14653	* linux-tile-low.c (tile_arch_setup): New function.  Invoke
14654	different register info initializer according to elf class.
14655	(init_registers_tilgx32): New function.  The tilegx32 register info
14656	initializer.
14657	(tile_fill_gregset): Use "uint_reg_t" to represent register size.
14658	(tile_store_gregset): Likewise.
14659
146602013-02-27  Yao Qi  <yao@codesourcery.com>
14661
14662	* server.c (process_point_options): Print debug message when
14663	debug_threads is true.
14664
146652013-02-26  Yao Qi  <yao@codesourcery.com>
14666
14667	* tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
14668
146692013-02-19  Pedro Alves  <palves@redhat.com>
14670	    Kai Tietz <ktietz@redhat.com>
14671
14672	PR gdb/15161
14673
14674	* server.c (handle_query) <CRC check>: Use unpack_varlen_hex
14675	instead of strtoul to extract address from packet.
14676	(process_serial_event) <'z'>: Likewise.
14677
146782013-02-18  Yao Qi  <yao@codesourcery.com>
14679
14680	* linux-bfin-low.c (the_low_target): Use NULL instead of 0.
14681
146822013-02-14  Pedro Alves  <palves@redhat.com>
14683
14684	Plug memory leak.
14685
14686	* tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
14687	TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
14688
146892013-02-14  Pedro Alves  <palves@redhat.com>
14690
14691	* tracepoint.c (cmd_qtdpsrc): Use savestring.
14692
146932013-02-14  Pedro Alves  <palves@redhat.com>
14694
14695	* tracepoint.c (save_string): Delete.
14696	(add_tracepoint_action): Use savestring instead of save_string.
14697
146982013-02-12  Pedro Alves  <palves@redhat.com>
14699
14700	* linux-xtensa-low.c: Ditto.
14701	* xtensa-xtregs.c: Ditto.
14702
147032013-02-12  Sanimir Agovic  <sanimir.agovic@intel.com>
14704
14705	* thread-db.c (thread_db_get_tls_address): NULL pointer check
14706	thread_db.
14707
147082013-02-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
14709
14710	* linux-aarch64-low.c (aarch64_arch_setup): Clamp
14711	aarch64_num_wp_regs and aarch64_num_bp_regs to
14712	AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
14713
147142013-02-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
14715
14716	* linux-aarch64-low.c (ps_get_thread_area): Replace
14717	PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
14718
147192013-02-04  Jim MacArthur  <jim.macarthur@arm.com>
14720	    Marcus Shawcroft  <marcus.shawcroft@arm.com>
14721	    Nigel Stephens  <nigel.stephens@arm.com>
14722	    Yufeng Zhang  <yufeng.zhang@arm.com>
14723
14724	* Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
14725	(aarch64.c, aarch64-without-fpu.c): New targets.
14726	* configure.srv (aarch64*-*-linux*): New.
14727	* linux-aarch64-low.c: New file.
14728
147292013-02-04  Marcus Shawcroft  <marcus.shawcroft@arm.com>
14730
14731	* linux-low.c (handle_extended_wait, linux_create_inferior)
14732	(linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
14733	(dequeue_one_deferred_signal, linux_resume_one_thread)
14734	(fetch_register, linux_write_memory, linux_enable_event_reporting)
14735	(linux_tracefork_grandchild, linux_test_for_tracefork)
14736	(linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
14737	PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
14738	where the argument is 0.
14739
147402013-01-25  Yao Qi  <yao@codesourcery.com>
14741
14742	* event-loop.c: Include "queue.h".
14743	(gdb_event_p): New typedef.
14744	(struct gdb_event) <next_event>: Remove.
14745	(event_queue): Change to QUEUE(gdb_event_p).
14746	(async_queue_event): Remove.
14747	(gdb_event_xfree): New.
14748	(initialize_event_loop): New.
14749	(process_event): Use API from QUEUE.
14750	(wait_for_event): Likewise.
14751	* server.c (main): Call initialize_event_loop.
14752	* server.h (initialize_event_loop): Declare.
14753
147542013-01-18  Yao Qi  <yao@codesourcery.com>
14755
14756	* ax.h (struct eval_agent_expr_context): New.
14757	(gdb_eval_agent_expr): Update declaration.
14758	* ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
14759	TFRAME.  Add new argument CTX.
14760	* server.h (struct eval_agent_expr_context): Declare.
14761	(agent_mem_read, agent_tsv_read): Update declaration.
14762	(agent_mem_read_string): Likewise.
14763	* tracepoint.c (eval_tracepoint_agent_expr): Remove.
14764	(add_traceframe_block): Add new argument TPOINT.
14765	Increase TPOINT->traceframe_usage.
14766	(do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
14767	eval_tracepoint_agent_expr.
14768	(condition_true_at_tracepoint): Likewise.
14769	(agent_mem_read): Remove argument TFRAME.  Add argument CTX.
14770	(agent_mem_read_string, agent_tsv_read): Likewise.
14771
147722013-01-16  Yao Qi  <yao@codesourcery.com>
14773
14774	* linux-low.c (linux_resume_one_lwp): Don't check
14775	'lwp->bp_reinsert != 0'.
14776
147772013-01-07  Joel Brobecker  <brobecker@adacore.com>
14778	    Pedro Alves  <palves@redhat.com>
14779
14780	* lynx-low.c (ptrace_request_to_str): Define a temporary
14781	macro and use it to simplify this function's implementation.
14782
147832013-01-07  Joel Brobecker  <brobecker@adacore.com>
14784
14785	* lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
14786	sets errno.
14787
147882013-01-07  Joel Brobecker  <brobecker@adacore.com>
14789
14790	* configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
14791
147922013-01-07  Joel Brobecker  <brobecker@adacore.com>
14793
14794	* configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
14795
147962013-01-07  Joel Brobecker  <brobecker@adacore.com>
14797
14798	* lynx-low.c (lynx_resume): Use the resume_info parameter
14799	to determine the ptid for the lynx_ptrace call, unless
14800	it is equal to minus_one_ptid, in which case we use the
14801	ptid of the current_inferior.
14802	(lynx_wait_1): After having received a thread create/exit
14803	event, resume the inferior's execution using the signaling
14804	thread's ptid, rather than the old ptid.
14805
148062013-01-07  Joel Brobecker  <brobecker@adacore.com>
14807
14808	* lynx-low.c (lynx_resume): Delete variable ret.
14809
148102013-01-01  Joel Brobecker  <brobecker@adacore.com>
14811
14812	* gdbreplay.c (gdbreplay_version): Update copyright year.
14813	* server.c (gdbserver_version): Likewise.
14814
148152012-12-17  Joel Brobecker  <brobecker@adacore.com>
14816
14817	* lynx-low.c (lynx_wait_1): Add debug trace before adding
14818	new thread.
14819
148202012-12-17  Joel Brobecker  <brobecker@adacore.com>
14821
14822	* lynx-low.c (ptrace_request_to_str): Add handling for
14823	PTRACE_GETTRACESIG.
14824
148252012-12-17  Joel Brobecker  <brobecker@adacore.com>
14826
14827	* lynx-low.c (lynx_attach): Delete variable new_process.
14828
148292012-12-17  Joel Brobecker  <brobecker@adacore.com>
14830
14831	* lynx-low.c (lynx_create_inferior): Delete variable
14832	new_process.
14833
148342012-12-17  Joel Brobecker  <brobecker@adacore.com>
14835
14836	* lynx-low.c (ptrace_request_to_str): Do not handle
14837	PTRACE_GETTHREADLIST if this macro does not exist.
14838
148392012-12-15  Yao Qi  <yao@codesourcery.com>
14840
14841	* Makefile.in (OBS): Add notif.o.
14842	* notif.c, notif.h: New.
14843	* server.c: Include "notif.h".
14844	(struct vstop_notif) <next>: Remove.
14845	<base>: New field.
14846	(queue_stop_reply): Update.
14847	(push_event, send_next_stop_reply): Remove.
14848	(discard_queued_stop_replies): Update.
14849	(notif_stop): New variable.
14850	(handle_v_stopped): Remove.
14851	(handle_v_requests): Don't call handle_v_stopped.  Call
14852	handle_ack_notif instead.
14853	(queue_stop_reply_callback): Call notif_event_enque instead
14854	of queue_stop_reply.
14855	(handle_status): Don't call send_next_stop_reply, call
14856	notif_write_event instead.
14857	(kill_inferior_callback): Likewise.
14858	(detach_or_kill_inferior_callback): Likewise.
14859	(main): Call initialize_notif.
14860	(process_serial_event): Call QUEUE_is_empty.
14861	(handle_target_event): Call notif_push instead of push event.
14862	* server.h (push_event): Remove declaration.
14863
148642012-12-10  Tom Tromey  <tromey@redhat.com>
14865
14866	* Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
14867	(COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
14868	macros.
14869	(.c.o): Rewrite.
14870	(ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
14871	(common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
14872	(i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
14873	(amd64-linux-ipa.o, ax.o): Rewrite.
14874	(event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
14875	(proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
14876	(thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
14877	(signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
14878	(gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
14879	(format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
14880	(i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
14881	(linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
14882	(linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
14883	(linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
14884	(linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
14885	(linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
14886	(nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
14887	(win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
14888	(arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
14889	(reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
14890	(i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
14891	(reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
14892	(mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
14893	(powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
14894	(powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
14895	(powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
14896	(powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
14897	(powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
14898	(powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
14899	(s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
14900	(s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
14901	(s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
14902	(tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
14903	(amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
14904	(x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
14905	(reg-tilegx.o): Remove.
14906	(all_object_files): New macro.
14907	Include .deps files.
14908	* aclocal.m4, configure: Rebuild.
14909	* acinclude.m4: Include depstand.m4, lead-dot.m4.
14910	* configure.ac: Invoke ZW_CREATE_DEPDIR,
14911	ZW_PROG_COMPILER_DEPENDENCIES.  Compute GMAKE condition.
14912
149132012-12-05  Tom Tromey  <tromey@redhat.com>
14914
14915	PR gdb/14917:
14916	* server.h (current_insn_ptr, emit_error): Declare 'extern'.
14917
149182012-11-28  Markus Metzger  <markus.t.metzger@intel.com>
14919
14920	* configure.ac: Check for linux/perf_event.h.
14921	* config.in: Regenerated.
14922	* configure: Regenerated.
14923
149242012-11-26  Maxime Villard  <rustyBSD@gmx.fr>
14925
14926	* hostio.c (handle_readlink): Decrease buffer size
14927	parameter passed to readlink by one byte.
14928
149292012-11-26  Yao Qi  <yao@codesourcery.com>
14930
14931	* configure.ac (build_warnings): Append '-Wempty-body'.
14932	* configure: Regenerated.
14933	* linux-low.c (linux_create_inferior): Use braces for empty 'if'
14934	body.
14935
149362012-11-15  Pierre Muller  <muller@sourceware.org>
14937
14938	* configure.ac (AC_CHECK_HEADERS): Add wait.h header.
14939	* config.in: Regenerate.
14940	* configure: Regenerate.
14941	* linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
14942	Use "gdb_wait.h" header instead of <sys/wait.h> header.
14943	* lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14944	* remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
14945	header.
14946	* server.c: Remove HAVE_WAIT_H conditional.  Use "gdb_wait.h" header
14947	instead of <sys/wait.h> header.
14948	* spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14949
149502012-11-13 Markus Metzger  <markus.t.metzger@intel.com>
14951
14952	* Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
14953	(various make rules): Remove -DGDBSERVER
14954
149552012-11-09  Yao Qi  <yao@codesourcery.com>
14956
14957	* spu-low.c (current_ptid): Move it to ..
14958	* gdbthread.h: ... here.  New.
14959	* remote-utils.c (read_ptid): Use macro 'current_ptid'.
14960	* server.c (myresume, process_serial_event): Likewise.
14961	* thread-db.c (thread_db_find_new_threads): Likewise.
14962	* tracepoint.c (run_inferior_command): Likewise.
14963
149642012-10-01  Andrew Burgess  <aburgess@broadcom.com>
14965
14966	* server.c (handle_search_memory_1): Include access length in
14967	warning message.
14968
149692012-09-05  Michael Brandt  <michael.brandt@axis.com>
14970
14971	* linux-crisv32-low.c: Fix compile errors.
14972
149732012-09-04  Yao Qi  <yao@codesourcery.com>
14974
14975	* tracepoint.c (cmd_qtsv): Adjust debug message.
14976	Don't check CUR_TPOINT.
14977
149782012-08-28  Yao Qi  <yao@codesourcery.com>
14979
14980	* ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
14981	* server.h: Include 'libiberty.h' and 'ansidecl.h'.
14982	(ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
14983	Remove declarations of xmalloc, xreallloc, xstrdup and
14984	freeargv.
14985	* Makefile.in (libiberty_h): New.
14986	(server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
14987	(linux-bfin-low.o): Append dependency 'libiberty.h'.
14988
149892012-08-23  Yao Qi  <yao@codesourcery.com>
14990
14991	* server.h: Remove declaration of 'xsnprintf'.
14992
149932012-08-22  Keith Seitz  <keiths@redhat.com>
14994
14995	* server.h: Include build-gnulib-gbserver/config.h.
14996	* gdbreplay.c: Likewise.
14997
149982012-08-08  Doug Evans  <dje@google.com>
14999
15000	* Makefile.in (SFILES): Add gdb_vecs.c.
15001	(OBS): Add gdb_vecs.o.
15002	(gdb_vecs_h, host_defs_h): New variables.
15003	(thread-db.o): Add $(gdb_vecs_h) dependency.
15004	(gdb_vecs.o): New rule.
15005	* thread-db.c: #include "gdb_vecs.h".
15006	(thread_db_load_search): Use a vector to iterate over path elements.
15007	Handle text appearing after "$pdir".
15008
15009	* configure.ac: Add check for strstr.
15010	* config.in: Regenerate.
15011	* configure: Regenerate.
15012
150132012-08-02  Ulrich Weigand  <ulrich.weigand@linaro.org>
15014
15015	* hostio.c (handle_pread): If pread fails, fall back to attempting
15016	lseek/read.
15017	(handle_pwrite): Likewise for pwrite.
15018
150192012-08-01  Ulrich Weigand  <ulrich.weigand@linaro.org>
15020
15021	* linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
15022	between unsupported TYPE and unimplementable ADDR/LEN combination.
15023	(arm_insert_point): Act on new return value.
15024
150252012-07-31  Pedro Alves  <palves@redhat.com>
15026
15027	* server.c (process_point_options): Only skip tokens if we find
15028	one that is unrecognized.  Don't treat 'X' specially while
15029	skipping unrecognized tokens.
15030
150312012-07-30  Ulrich Weigand  <ulrich.weigand@linaro.org>
15032
15033	* linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
15034	to 4-byte-align HW breakpoint addresses for Thumb.
15035
150362012-07-27  Yao Qi  <yao@codesourcery.com>
15037
15038	PR remote/14161.
15039
15040	* server.h: Declare gdb_agent_about_to_close.
15041	* target.c (kill_inferior): Include "agent.h".
15042	New.  Send command 'kill'.
15043	* target.h (kill_inferior): Removed macro.
15044	* tracepoint.c (gdb_agent_about_to_close): New.
15045	(gdb_agent_helper_thread): Handle command 'close'.
15046	Wait endlessly until the inferior stops.
15047	Install gdb_agent_remove_socket to atexit hook.
15048	(agent_socket_name): New static variable.
15049	(gdb_agent_socket_init): Replace local variable 'name' with
15050	'agent_socket_name'.
15051	(gdb_agent_remove_socket): New.
15052
150532012-07-27  Yao Qi  <yao@codesourcery.com>
15054
15055	* server.c (process_point_options): Stop at 'X' when parsing.
15056
150572012-07-19  Michael Eager  <eager@eagercon.com>
15058
15059	* i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
15060	to hw_execute.
15061	* linux-x86-low.c (x86_insert_point, x86_remove_point):
15062	Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
15063	hardware breakpoint.
15064
150652012-07-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
15066
15067	* gdbserver/linux-low.c (initialize_low): Call
15068	linux_ptrace_init_warnings.
15069
150702012-07-02  Doug Evans  <dje@google.com>
15071
15072	* mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
15073	pointer to int.
15074
150752012-07-02  Stan Shebs  <stan@codesourcery.com>
15076
15077	* Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
15078	(ax.o): Add it to build rule.
15079	(ax-ipa.o): Ditto.
15080	(OBS): Add format.o.
15081	(IPA_OBS): Add format.o.
15082	* server.c (handle_query): Claim support for breakpoint commands.
15083	(process_point_options): Add command case.
15084	(process_serial_event): Leave running if there are printfs in
15085	effect.
15086	* mem-break.h (any_persistent_commands): Declare.
15087	(add_breakpoint_commands): Declare.
15088	(gdb_no_commands_at_breakpoint): Declare.
15089	(run_breakpoint_commands): Declare.
15090	* mem-break.c (struct point_command_list): New struct.
15091	(struct breakpoint): New field command_list.
15092	(any_persistent_commands): New function.
15093	(add_commands_to_breakpoint): New function.
15094	(add_breakpoint_commands): New function.
15095	(gdb_no_commands_at_breakpoint): New function.
15096	(run_breakpoint_commands): New function.
15097	* linux-low.c (linux_wait_1): Test for and run breakpoint commands
15098	locally.
15099	* ax.c: Include format.h.
15100	(ax_printf): New function.
15101	(gdb_eval_agent_expr): Add printf opcode.
15102
151032012-06-13  Yao Qi  <yao@codesourcery.com>
15104
15105	* server.c (start_inferior): Remove duplicated writes to fields
15106	'last_resume_kind' and 'last_status' of 'current_inferior'.
15107
151082012-06-12  Yao Qi  <yao@codesourcery.com>
15109	    Pedro Alves  <palves@redhat.com>
15110
15111	* linux-low.c (linux_set_resume_request): Simplify predicate.  Add
15112	comment.
15113	* server.c (handle_v_cont): Extend comment.
15114
151152012-06-11  Yao Qi  <yao@codesourcery.com>
15116
15117	* linux-low.c (linux_attach): Add 'static'.
15118
151192012-06-06  Yao Qi  <yao@codesourcery.com>
15120
15121	* ax.c (gdb_eval_agent_expr): Print `top' in hex.
15122
151232012-06-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
15124
15125	Fix gcc -flto compilation warning.
15126	* server.c (main): Make variable multi_mode and attach volatile.
15127
151282012-05-30  Thiago Jung Bauermann  <thiago.bauermann@linaro.org>
15129
15130	* linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
15131	if the platform doesn't know about it.
15132
151332012-05-30  Jeff Kenton  <jkenton@tilera.com>
15134
15135	* Makefile.in (SFILES): Add linux-tile-low.c.
15136	(linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
15137	* configure.srv: Handle tilegx-*-linux*.
15138	* linux-tile-low.c: New file.
15139
151402012-05-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
15141
15142	* linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
15143
151442012-05-24  Pedro Alves  <palves@redhat.com>
15145
15146	PR gdb/7205
15147
15148	Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
15149
151502012-05-24  Pedro Alves  <palves@redhat.com>
15151
15152	PR gdb/7205
15153
15154	Replace target_signal with gdb_signal throughout.
15155
151562012-05-22  Maciej W. Rozycki  <macro@codesourcery.com>
15157
15158	* linux-low.c (linux_store_registers): Avoid the copying sequence
15159	when no data has been retrieved by ptrace.
15160
151612012-05-22  Will Deacon  <will.deacon@arm.com>
15162
15163	* linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
15164	Include asm/ptrace.h.
15165	(PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
15166	already defined.
15167
151682012-05-21  Maciej W. Rozycki  <macro@codesourcery.com>
15169
15170	* linux-low.c (linux_store_registers): Don't re-retrieve data
15171	with ptrace that has already been obtained from /proc.  Always
15172	copy any data retrieved with ptrace to the buffer supplied.
15173
151742012-05-11  Yao Qi  <yao@codesourcery.com>
15175	    Pedro Alves  <palves@redhat.com>
15176
15177	* linux-low.c (enum stopping_threads_kind): New.
15178	(stopping_threads): Change type to `enum stopping_threads_kind'.
15179	(handle_extended_wait): If stopping and suspending threads, leave
15180	the new_lwp suspended too.
15181	(linux_wait_for_event): Adjust.
15182	(stop_all_lwps): Set `stopping_threads' to
15183	STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
15184	whether we're suspending threads or just stopping them.  Assert no
15185	recursion happens.
15186
151872012-04-29  Yao Qi  <yao@codesourcery.com>
15188
15189	* server.h: Move some code to ...
15190	* gdbthread.h: ... here.  New.
15191	* Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
15192	(remote-utils.o, server.o, target.o tracepoint.o): Likewise.
15193	(nto-low.o, win32-low.o): Likewise.
15194	* inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
15195	* regcache.c, remote-utils.c, server.c: Likewise.
15196	* target.c, tracepoint.c, win32-low.c: Likewise.
15197
151982012-04-24  Thiago Jung Bauermann  <thiago.bauermann@linaro.org>
15199
15200	* linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
15201	(PTRACE_ARG4_TYPE): Likewise.
15202	(PTRACE_XFER_TYPE): Likewise.
15203	* linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
15204	ptrace to PTRACE_ARG3_TYPE.
15205	* linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
15206	(PTRACE_ARG4_TYPE): Likewise.
15207	(PTRACE_XFER_TYPE): Likewise.
15208	(linux_detach_one_lwp): Cast fourth argument of
15209	ptrace to long then PTRACE_ARG4_TYPE.
15210	(regsets_fetch_inferior_registers): Cast third argument of
15211	ptrace to long then PTRACE_ARG3_TYPE.
15212	(regsets_store_inferior_registers): Likewise.
15213
152142012-04-20  Pedro Alves  <palves@redhat.com>
15215
15216	* configure: Regenerate.
15217
152182012-04-19  Pedro Alves  <palves@redhat.com>
15219
15220	* Makefile.in (GNULIB_BUILDDIR): New.
15221	(LIBGNU, INCGNU, GNULIB_H): Adjust.
15222	(SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
15223	(all, install-only, uninstall, clean-info, all-lib, clean): No
15224	longer pass GNULIB_FLAGS_TO_PASS.  Use subdir_do.
15225	(maintainer-clean realclean distclean): Use subdir_do.
15226	(subdir_do): New.
15227	(gnulib/import/Makefile): Adjust.  Replace gnulib/import with
15228	$(GNULIB_BUILDDIR).  Don't pass argument to config.status.
15229	* acinclude.m4: Include acx_configure_dir.m4.
15230	* configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
15231	calls.	Call AC_PROG_RANLIB.  Configure gnulib using
15232	ACX_CONFIGURE_DIR.
15233	(GNULIB): New.
15234	(GNULIB_STDINT_H): Adjust.
15235	(AC_OUTPUT): Don't output gnulib/Makefile anymore.
15236	* gdbreplay.c: Include build-gnulib/config.h.
15237	* server.h: Likewise.
15238	* aclocal.m4: Regenerate.
15239	* config.in: Regenerate.
15240	* configure: Regenerate.
15241
152422012-04-19  Pedro Alves  <palves@redhat.com>
15243
15244	* Makefile.in (LIBGNU, INCGNU): Adjust.
15245	(GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
15246	(all, install-only, uninstall, clean-info, all-lib, clean)
15247	(maintainer-clean, Makefile, gnulib/Makefile): Adjust.
15248	* configure.ac: Adjust AC_OUTPUT output.
15249	* aclocal.m4: Regenerate.
15250	* configure: Regenerate.
15251
152522012-04-19  Pedro Alves  <palves@redhat.com>
15253
15254	* Makefile.in (generated_files): New.
15255	(server_h): Remove the explicit dependency on config.h, and depend
15256	on $generated_files.
15257
152582012-04-19  Pedro Alves  <palves@redhat.com>
15259
15260	* Makefile.in (INCGNU): Add -Ignulib.
15261
152622012-04-19  Pedro Alves  <palves@redhat.com>
15263
15264	* Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
15265	(INCGNU): ... this, and spell out -I here.
15266	(GNULIB_LIB): Rename to ...
15267	(LIBGNU): ... this.
15268	(INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
15269
152702012-04-19  Pedro Alves  <palves@redhat.com>
15271
15272	* config.in: Regenerate.
15273
152742012-04-19  Pedro Alves  <palves@redhat.com>
15275
15276	* configure.ac: Remove AC_CHECK_DECLS check for memmem.
15277	* server.h (memmem): Remove declaration.
15278	* config.in: Regenerate.
15279	* configure: Regenerate.
15280
152812012-04-19  Yao Qi  <yao@codesourcery.com>
15282
15283	* Makefile.in (SFILES): Add common/vec.c.
15284	(OBS): Add vec.o.
15285	(vec.o): New rule.
15286
152872012-04-19  Yao Qi  <yao@codesourcery.com>
15288
15289	* remote-utils.c (prepare_resume_reply): Replace with macro
15290	target_core_of_thread.
15291	* server.c (handle_qxfer_threads_proper): Likewise.
15292	* target.h (traget_core_of_thread): New macro.
15293
152942012-04-18  Pedro Alves  <palves@redhat.com>
15295
15296	* aclocal.m4: Regenerate.
15297	* configure: Regenerate.
15298
152992012-04-16  Yao Qi  <yao@codesourcery.com>
15300
15301	* tracepoint.c (cmd_qtstart): Download tracepoints even when they are
15302	duplicated on address.
15303
153042012-04-16  Yao Qi  <yao@codesourcery.com>
15305
15306	* tracepoint.c (COPY_FIELD_TO_BUF): New macro.
15307	(struct tracepoint_action_ops) <send>: New field.
15308	(m_tracepoint_action_send, r_tracepoint_action_send): New.
15309	(agent_expr_send, x_tracepoint_action_send): New.
15310	(l_tracepoint_action_send): New.
15311	(cmd_qtdp): Download and install tracepoint
15312	according to `use_agent'.
15313	(run_inferior_command): Add one more parameter `len'.
15314	Update callers.
15315	(tracepoint_send_agent): New.
15316	(cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
15317
153182012-04-16  Yao Qi  <yao@codesourcery.com>
15319
15320	* tracepoint.c (download_tracepoints): Moved to ...
15321	(cmd_qtstart): ... here.
15322
153232012-04-14  Yao Qi  <yao@codesourcery.com>
15324
15325	* tracepoint.c: Include inttypes.h.
15326	(struct collect_memory_action): Use sized types.
15327	(struct tracepoint): Likewise.
15328	(cmd_qtdp, stop_tracing): Update print specifiers.
15329	(cmd_qtp, response_tracepoint): Likewise.
15330	(collect_data_at_tracepoint): Likewise.
15331	(collect_data_at_step): Likewise.
15332
153332012-04-14  Yao Qi  <yao@codesourcery.com>
15334
15335	Import gnulib module inttypes.
15336	* aclocal.m4, config.in, configure: Regenerated.
15337
153382012-04-14  Yao Qi  <yao@codesourcery.com>
15339
15340	* Makefile.in (maintainer-clean, realclean, distclean): Remove
15341	Makefile and config.status at last.
15342
153432012-04-13  Yao Qi  <yao@codesourcery.com>
15344
15345	* tracepoint.c: Include stdint.h unconditionally.
15346
153472012-04-13  Thiago Jung Bauermann  <thiago.bauermann@linaro.org>
15348
15349	* acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
15350	on BFD_HAVE_SYS_PROCFS_TYPE.
15351	* configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
15352	* configure: Regenerate.
15353	* config.in: Likewise.
15354
153552012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
15356
15357	* Makefile.in (clean): Also remove x32.c x32-linux.c
15358	x32-avx.c x32-avx-linux.c.
15359	(x32.o): New target.
15360	(x32.c): Likewise.
15361	(x32-linux.o): Likewise.
15362	(x32-linux.c): Likewise.
15363	(x32-avx.o): Likewise.
15364	(x32-avx.c): Likewise.
15365	(x32-avx-linux.o): Likewise.
15366	(x32-avx-linux.c): Likewise.
15367
15368	* configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
15369	(srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
15370	(srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
15371	(srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
15372	(srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
15373	i386/x32-avx-linux.xml.
15374
15375	* linux-x86-low.c (init_registers_x32_linux): New prototype.
15376	(init_registers_x32_avx_linux): Likwise.
15377	(x86_linux_update_xmltarget): Call init_registers_x32_linux
15378	or init_registers_x32_avx_linux if linux_is_elf64 is false.
15379
153802012-04-13  Pedro Alves  <palves@redhat.com>
15381
15382	* Makefile.in (GNULIB_FLAGS_TO_PASS): New.
15383	(FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
15384	(all, uninstall, clean-info, all-lib, clean, maintainer-clean)
15385	(realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
15386	the sub-make.
15387
153882012-04-12  H.J. Lu  <hongjiu.lu@intel.com>
15389
15390	* linux-x86-low.c (compat_x32_clock_t): New.
15391	(compat_x32_siginfo_t): Likewise.
15392	(compat_x32_siginfo_from_siginfo): Likewise.
15393	(siginfo_from_compat_x32_siginfo): Likewise.
15394	(linux_is_elf64): Likewise.
15395	(x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
15396	and siginfo_from_compat_x32_siginfo for x32.
15397	(x86_arch_setup): Set linux_is_elf64.
15398
153992012-04-12  H.J. Lu  <hongjiu.lu@intel.com>
15400
15401	PR gdb/13969
15402	* linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
15403	e_machine field.
15404	(linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
15405	* linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
15406	* linux-x86-low.c (x86_arch_setup): Check if GDBserver is
15407	compatible with process.
15408
154092012-04-12  Yao Qi  <yao@codesourcery.com>
15410
15411	* Makefile.in: Define abs_top_srcdir and abs_srcdir.
15412	(INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
15413	(install-only, install-info, clean): Handle sub dir gnulib.
15414	(all-lib, am--refresh): New targets.
15415	(memmem.o): Remove target.
15416	* configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
15417	Invoke gl_EARLY.  Invoke AC_CHECK_PROGS for make.
15418	(AC_REPLACE_FUNCS): Remove memmem.
15419	Invoke gl_INIT and AM_INIT_AUTOMAKE.
15420	(AC_OUTPUT): Generate Makefile in gnulib/.
15421	* aclocal.m4, config.in, configure: Regenerated.
15422
154232012-04-10  Maciej W. Rozycki  <macro@codesourcery.com>
15424
15425	* linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
15426
154272012-04-05  Pedro Alves  <palves@redhat.com>
15428
15429	-Werror=strict-aliasing
15430
15431	* spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
15432	pointer.
15433
154342012-04-04  Pedro Alves  <palves@redhat.com>
15435
15436	* linux-sparc-low.c (sparc_fill_gregset_to_stack)
15437	(sparc_store_gregset_from_stack, sparc_store_gregset)
15438	(sparc_breakpoint_at): Fix formatting.
15439
154402012-03-30  Thiago Jung Bauermann  <thiago.bauermann@linaro.org>
15441
15442	* configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
15443	are available.
15444	* linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
15445	[HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
15446	* config.in: Regenerate.
15447	* configure: Likewise.
15448
154492012-03-29  Pedro Alves  <palves@redhat.com>
15450
15451	* linux-low.c (regsets_store_inferior_registers) [__sparc__]:
15452	Correct ptrace arguments.
15453
154542012-03-28  Pedro Alves  <palves@redhat.com>
15455
15456	* linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
15457	(IA64_GR0_REGNUM, IA64_FR0_REGNUM)
15458	(IA64_FR1_REGNUM): New defines.
15459	(ia64_fetch_register): New.
15460	(the_low_target): Install it.
15461	* linux-low.h (struct linux_target_ops) <fetch_register>: New
15462	field.
15463	* linux-low.c (linux_fetch_registers): Try the
15464	the_low_target.fetch_register hook first.
15465
15466	* linux-arm-low.c (the_low_target): Adjust.
15467	* linux-bfin-low.c (the_low_target): Adjust.
15468	* linux-cris-low.c (the_low_target): Adjust.
15469	* linux-crisv32-low.c (the_low_target): Adjust.
15470	* linux-m32r-low.c (the_low_target): Adjust.
15471	* linux-m68k-low.c (the_low_target): Adjust.
15472	* linux-mips-low.c (the_low_target): Adjust.
15473	* linux-ppc-low.c (the_low_target): Adjust.
15474	* linux-s390-low.c (the_low_target): Adjust.
15475	* linux-sh-low.c (the_low_target): Adjust.
15476	* linux-sparc-low.c (the_low_target): Adjust.
15477	* linux-tic6x-low.c (the_low_target): Adjust.
15478	* linux-x86-low.c (the_low_target): Adjust.
15479	* linux-xtensa-low.c (the_low_target): Adjust.
15480
154812012-03-26  Pedro Alves  <palves@redhat.com>
15482
15483	* server.c (handle_qxfer_libraries): Don't bail early if
15484	the_target->qxfer_libraries_svr4 is not NULL.
15485
154862012-03-26  Pedro Alves  <palves@redhat.com>
15487
15488	* linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
15489
154902012-03-23  Pedro Alves  <palves@redhat.com>
15491
15492	* linux-low.c (linux_qxfer_libraries_svr4): Terminate the
15493	"library-list-svr4" element's start tag when the the DSO list is
15494	empty.
15495
154962012-03-23  Pedro Alves  <palves@redhat.com>
15497
15498	* linux-low.c (read_one_ptr): Read the inferior's pointer through
15499	a variable whose type size is the same as the inferior's pointer
15500	size.
15501
155022012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
15503
15504	* linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
15505	struct siginfo.
15506	* linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
15507	* linux-x86-low.c (x86_siginfo_fixup): Likewise.
15508	* linux-low.h: Include <signal.h>.
15509	(struct siginfo): Remove forward declaration.
15510	(struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
15511	struct siginfo.
15512
155132012-03-21  Mike Frysinger  <vapier@gentoo.org>
15514
15515	* .gitignore: Ignore more files.
15516
155172012-03-19  Pedro Alves  <palves@redhat.com>
15518	    Jan Kratochvil  <jan.kratochvil@redhat.com>
15519
15520	* server.c (cont_thread, general_thread): Add describing comments.
15521	(start_inferior): Clear `cont_thread'.
15522	(handle_v_cont): Don't set `cont_thread' if resuming all threads
15523	of a process.
15524
155252012-03-15  Yao Qi  <yao@codesourcery.com>
15526
15527	* tracepoint.c (install_tracepoint): Move duplicated tracepoint
15528	handling to ...
15529	(cmd_qtdp): ... here.
15530
155312012-03-15  Yao Qi  <yao@codesourcery.com>
15532
15533	* tracepoint.c (struct tracepoint_action_ops): New.
15534	(struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
15535	(m_tracepoint_action_download): New.
15536	(r_tracepoint_action_download): New.
15537	(x_tracepoint_action_download): New.
15538	(l_tracepoint_action_download): New.
15539	(add_tracepoint_action): Install `action->ops' according type.
15540	(download_tracepoint_1): Move code `download' function pointer
15541	of various tracepoint_action_ops.
15542
155432012-03-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
15544
15545	* linux-low.c (linux_attach_lwp_1): New variable buffer.  Call
15546	linux_ptrace_attach_warnings.
15547
155482012-03-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
15549
15550	* Makefile.in (linux-ptrace.o): New.
15551	* configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
15552	(cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
15553	(m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
15554	(s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
15555	(x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
15556	of these targets.
15557	* linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
15558
155592012-03-08  Yao Qi  <yao@codesourcery.com>
15560	    Pedro Alves  <palves@redhat.com>
15561
15562	Fix PR server/13392.
15563	* linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
15564	offset of JMP insn.
15565	* tracepoint.c (remove_tracepoint): New.
15566	(cmd_qtdp): Call remove_tracepoint when failed to install.
15567
155682012-03-07  Pedro Alves  <palves@redhat.com>
15569
15570	* linux-low.c (get_detach_signal): New.
15571	(linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
15572	Pass on pending signals to PTRACE_DETACH.  Check the result of the
15573	ptrace call.
15574	* server.c (program_signals, program_signals_p): New.
15575	(handle_general_set): Handle QProgramSignals.
15576	* server.h (program_signals, program_signals_p): Declare.
15577
155782012-03-05  Pedro Alves  <palves@redhat.com>
15579	    Jan Kratochvil  <jan.kratochvil@redhat.com>
15580
15581	* linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
15582	New comment why.
15583
155842012-03-03  Yao Qi  <yao@codesourcery.com>
15585
15586	* tracepoint.c (tracepoint_look_up_symbols): Update call to
15587	agent_look_up_symbols.
15588
155892012-03-03  Yao Qi  <yao@codesourcery.com>
15590
15591	* Makefile.in (linux-low.o): Keep dependence on agent.h.
15592	(linux-x86-low.o): Likewise.
15593	* server.h: Remove in_process_agent_loaded.
15594	* tracepoint.c (in_process_agent_loaded): Removed.  Moved it
15595	common/agent.c.
15596	Update callers.
15597
155982012-03-03  Yao Qi  <yao@codesourcery.com>
15599
15600	* tracepoint.c (gdb_agent_capability): New global.
15601	(in_process_agent_loaded_ust): Renamed to
15602	`in_process_agent_supports_ust'.
15603	Update callers.
15604	(in_process_agent_supports_ust): Call agent_capability_check.
15605	(clear_installed_tracepoints): Assert that agent supports
15606	agent.
15607
156082012-03-03  Yao Qi  <yao@codesourcery.com>
15609
15610	* linux-low.c (linux_supports_agent): New.
15611	(linux_target_ops): Initialize field `supports_agent' with
15612	linux_supports_agent.
15613	* target.h (struct target_ops) <supports_agent>: New.
15614	(target_supports_agent): New macro.
15615	* server.c (handle_general_set): Handle packet 'QAgent'.
15616	(handle_query): Send `QAgent+'.
15617	* Makefile.in (server.o): Depends on agent.h.
15618
156192012-03-03  Yao Qi  <yao@codesourcery.com>
15620
15621	* Makefile.in (OBS): Add agent.o.
15622	Add new rule for agent.o.
15623	Track dependence of tracepoint.c on agent.h.
15624	* tracepoint.c (run_inferior_command_1):
15625	(run_inferior_command): Call agent_run_command.
15626	(gdb_ust_connect_sync_socket): Deleted.  Move it to
15627	common/agent.c.
15628	(resume_thread, stop_thread): Likewise.
15629	(gdb_ust_socket_init): Renamed to ...
15630	(gdb_agent_socket_init): ... New.
15631	(gdb_ust_thread): Renamed to ...
15632	(gdb_agent_helper_thread): ... New.
15633	(gdb_ust_init): Move some code to ...
15634	(gdb_agent_init): ... here.  New.
15635	[HAVE_UST]: Call gdb_ust_init.
15636	(initialize_tracepoint_ftlib):  Call gdb_agent_init.
15637	* configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
15638	* config.in, configure: Regenerated.
15639
156402012-03-02  Pedro Alves  <palves@redhat.com>
15641
15642	* inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
15643	* linux-low.c (struct simple_pid_list): New.
15644	(stopped_pids): New a struct simple_pid_list pointer.
15645	(add_to_pid_list, pull_pid_from_list): New.
15646	(handle_extended_wait): Don't assume the first signal new children
15647	report is SIGSTOP.  Adjust call to pull_pid_from_list.
15648	(linux_wait_for_lwp): Adjust.
15649
156502012-03-02  Yao Qi  <yao@codesourcery.com>
15651
15652	* tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
15653	debug log.
15654
156552012-03-02  Yao Qi  <yao@codesourcery.com>
15656
15657	* tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
15658	`stop_pc' and `tpoint'.  Update caller.
15659
156602012-03-01  Maciej W. Rozycki  <macro@codesourcery.com>
15661
15662	* linux-low.h (linux_target_ops): Add regset_bitmap member.
15663	* linux-low.c (use_linux_regsets): New macro.
15664	[!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
15665	[!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
15666	(linux_register_in_regsets): New function.
15667	(usr_fetch_inferior_registers): Skip registers covered by
15668	regsets.
15669	(usr_store_inferior_registers): Likewise.
15670	(usr_fetch_inferior_registers): New macro.
15671	(usr_store_inferior_registers): Likewise.
15672	(linux_fetch_registers): Handle mixed regset/non-regset targets.
15673	(linux_store_registers): Likewise.
15674	* linux-mips-low.c (init_registers_mips_dsp_linux): New
15675	prototype.
15676	(init_registers_mips64_dsp_linux): Likewise.
15677	(init_registers_mips_linux): New macro.
15678	(init_registers_mips_dsp_linux): Likewise.
15679	(mips_dsp_num_regs): Likewise.
15680	(DSP_BASE, DSP_CONTROL): New fallback macros.
15681	(mips_base_regs): New macro.
15682	(mips_regmap): Use it.  Fix the size.
15683	(mips_dsp_regmap): New variable.
15684	(mips_dsp_regset_bitmap): Likewise.
15685	(mips_arch_setup): New function.
15686	(mips_cannot_fetch_register): Use the_low_target.regmap rather
15687	than mips_regmap.
15688	(mips_cannot_store_register): Likewise.
15689	(the_low_target): Update .arch_setup, .num_regs and .regmap
15690	initializers.  Add .regset_bitmap initializer.
15691	* linux-arm-low.c (the_low_target): Add .regset_bitmap
15692	initializer.
15693	* linux-bfin-low.c (the_low_target): Likewise.
15694	* linux-cris-low.c (the_low_target): Likewise.
15695	* linux-crisv32-low.c (the_low_target): Likewise.
15696	* linux-ia64-low.c (the_low_target): Likewise.
15697	* linux-m32r-low.c (the_low_target): Likewise.
15698	* linux-m68k-low.c (the_low_target): Likewise.
15699	* linux-ppc-low.c (the_low_target): Likewise.
15700	* linux-s390-low.c (the_low_target): Likewise.
15701	* linux-sh-low.c (the_low_target): Likewise.
15702	* linux-sparc-low.c (the_low_target): Likewise.
15703	* linux-tic6x-low.c (the_low_target): Likewise.
15704	* linux-x86-low.c (the_low_target): Likewise.
15705	* linux-xtensa-low.c (the_low_target): Likewise.
15706	* configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
15707	mips64-dsp-linux.o to srv_regobj.  Add mips-dsp-linux.xml,
15708	mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
15709	srv_xmlfiles.
15710	* Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
15711	(mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
15712
157132012-02-29  Yao Qi  <yao@codesourcery.com>
15714	    Pedro Alves  <palves@redhat.com>
15715
15716	* linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
15717	`step_over_finished' is true.
15718
157192012-02-27  Pedro Alves  <palves@redhat.com>
15720
15721	* linux-low.c (pid_is_stopped): Delete, moved to common/.
15722	(linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
15723
157242012-02-27  Pedro Alves  <palves@redhat.com>
15725
15726	PR server/9684
15727	* linux-low.c (pid_is_stopped): New.
15728	(linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
15729
157302012-02-25  Luis Machado  <lgustavo@codesourcery.com>
15731
15732	* mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
15733	of conditions.
15734
157352012-02-24  Maciej W. Rozycki  <macro@codesourcery.com>
15736
15737	* linux-mips-low.c (mips_regmap): Correct the index of $f9.
15738
157392012-02-24  Luis Machado  <lgustavo@codesourcery>
15740
15741	* server.c (handle_query): Advertise support for target-side
15742	breakpoint condition evaluation.
15743	(process_point_options): New function.
15744	(process_serial_event): When inserting a breakpoint, check for
15745	a target-side condition that should be evaluated.
15746
15747	* mem-break.c: Include regcache.h and ax.h.
15748	(point_cond_list_t): New data structure.
15749	(breakpoint) <cond_list>: New field.
15750	(find_gdb_breakpoint_at): Make non-static.
15751	(delete_gdb_breakpoint_at): Clear any target-side
15752	conditions.
15753	(clear_gdb_breakpoint_conditions): New function.
15754	(add_condition_to_breakpoint): Likewise.
15755	(add_breakpoint_condition): Likewise.
15756	(gdb_condition_true_at_breakpoint): Likewise.
15757	(gdb_breakpoint_here): Return result directly instead
15758	of going through a local variable.
15759
15760	* mem-break.h (find_gdb_breakpoint_at): New prototype.
15761	(clear_gdb_breakpoint_conditions): Likewise.
15762	(add_breakpoint_condition): Likewise.
15763	(gdb_condition_true_at_breakpoint): Likewise.
15764
15765	* linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
15766	(need_step_over_p): Take target-side breakpoint condition into
15767	consideration.
15768
157692012-02-24  Luis Machado  <lgustavo@codesourcery>
15770
15771	* server.h: Include tracepoint.h.
15772	(agent_mem_read, agent_get_trace_state_variable_value,
15773	agent_set_trace_state_variable_value,
15774	agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
15775	get_set_tsv_func_addr): New prototypes.
15776
15777	* ax.h: New include file.
15778	* ax.c: New source file.
15779
15780	* tracepoint.c: Include ax.h.
15781	(gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
15782	agent_expr, eval_result_type): Move to ax.h.
15783	(parse_agent_expr): Rename to ...
15784	(gdb_parse_agent_expr): ... this, make it non-static and move
15785	to ax.h.
15786	(unparse_agent_expr) Rename to ...
15787	(gdb_unparse_agent_expr): ... this, make it non-static and move
15788	to ax.h.
15789	(eval_agent_expr): Rename to ...
15790	(eval_tracepoint_agent_expr): ... this.
15791	(agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
15792	forward declarations.
15793	(add_tracepoint_action): Call gdb_parse_agent_expr (...).
15794	(agent_get_trace_state_variable_value): New function.
15795	(agent_set_trace_state_variable_value): New function.
15796	(cmd_qtdp): Call gdb_parse_agent_expr (...).
15797	(response_tracepoint): Call gdb_unparse_agent_expr (...).
15798	(do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
15799	(condition_true_at_tracepoint): Likewise.
15800	(parse_agent_expr): Rename to ...
15801	(gdb_parse_agent_expr): ... this and move to ax.c.
15802	(unparse_agent_expr): Rename to ...
15803	(gdb_unparse_agent_expr): ... this and move to ax.c.
15804	(gdb_agent_op_name): Move to ax.c.
15805	(eval_agent_expr): Rename to ...
15806	(gdb_eval_agent_expr): ... this, use regcache passed as parameter
15807	and move to ax.c.
15808	(eval_tracepoint_agent_expr): New function.
15809	(agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
15810	non-static.
15811	(current_insn_ptr, emit_error, struct bytecode_address): Move to
15812	ax.c.
15813	(emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
15814	emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
15815	emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
15816	emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
15817	emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
15818	emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
15819	emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
15820	emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
15821	(get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
15822	(compile_bytecodes): Remove forward declaration.
15823	(is_goto_target): Move to ax.c.
15824	(compile_bytecodes): Move to ax.c and call
15825	agent_get_trace_state_variable_value (...) and
15826	agent_set_trace_state_variable_value (...).
15827
15828	* Makefile.in: Update ax.c and IPA dependencies.
15829
158302012-02-24  Pedro Alves  <palves@redhat.com>
15831
15832	* tracepoint.c (cmd_bigqtbuffer): Rename as ...
15833	(cmd_bigqtbuffer_circular): ... this.  Only handle
15834	'QTBuffer:circular:'.
15835	(handle_tracepoint_general_set): Adjust.
15836
158372012-02-16  Yao Qi  <yao@codesourcery.com>
15838
15839	* inferiors.c: Move code to ...
15840	* dll.c: .... here.  New.
15841	* server.h: Declare clear_dlls.
15842	* Makefile.in (SFILES): Add dll.c.
15843	(OBS): Add dll.o
15844	(dll.o): New rule.
15845
158462012-02-11  Yao Qi  <yao@codesourcery.com>
15847
15848	* server.c: (handle_monitor_command): Add a new parameter
15849	`own_buf'.
15850	(handle_query): Update caller.
15851
158522012-02-09  Joel Brobecker  <brobecker@adacore.com>
15853
15854	* configure.ac: Add readlink to AC_CHECK_FUNCS list.
15855	* configure, config.in: Regenerate.
15856	* hostio.c: Provide an alternate implementation if HAVE_READLINK
15857	is not defined.
15858
158592012-02-02  Pedro Alves  <palves@redhat.com>
15860
15861	Try SIGKILL first, then PTRACE_KILL.
15862	* linux-low.c (linux_kill_one_lwp): New.
15863	(linux_kill_one_lwp): Rename to ...
15864	(kill_one_lwp_callback): ... this.  Use the new
15865	linux_kill_one_lwp.
15866
158672012-02-02  Pedro Alves  <palves@redhat.com>
15868
15869	* tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
15870	inferior.
15871
158722012-01-27  Pedro Alves  <palves@redhat.com>
15873
15874	* linux-low.c (linux_child_pid_to_exec_file): Delete.
15875	(elf_64_file_p): Make static.
15876	(linux_pid_exe_is_elf_64_file): New.
15877	* linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
15878	Delete declarations.
15879	(linux_pid_exe_is_elf_64_file): Declare.
15880	* linux-x86-low.c (x86_arch_setup): Use
15881	linux_pid_exe_is_elf_64_file.
15882
158832012-01-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
15884
15885	* linux-low.c (linux_wait_for_event_1): Rename to ...
15886	(linux_wait_for_event): ... here and merge it with former
15887	linux_wait_for_event - new variable wait_ptid, use it.
15888	(linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
15889
158902012-01-23  Pedro Alves  <palves@redhat.com>
15891
15892	* server.c (main): Avoid yet another case of infinite loop while
15893	detaching/killing after a longjmp.
15894
158952012-01-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
15896
15897	Code cleanup.
15898	* linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
15899
159002012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
15901
15902	* hostio.c (handle_readlink): New function.
15903	(handle_vFile): Call it to handle "vFile:readlink" packets.
15904
159052012-01-20  Pedro Alves  <palves@redhat.com>
15906	    Ulrich Weigand  <ulrich.weigand@linaro.org>
15907
15908	* server.c (handle_v_requests): Only support vAttach and vRun to
15909	start multiple processes when in extended protocol mode.
15910
159112012-01-17  Pedro Alves  <palves@redhat.com>
15912
15913	* tracepoint.c (initialize_tracepoint): Use mmap instead of
15914	memalign plus mprotect to allocate the scratch buffer.
15915
159162012-01-13  Pedro Alves  <palves@redhat.com>
15917
15918	* server.c (attach_inferior): Clear `cont_thread'.
15919
159202012-01-13  Pedro Alves  <palves@redhat.com>
15921
15922	* server.c (main): Avoid infinite loop while detaching/killing
15923	after a longjmp.
15924
159252012-01-09  Doug Evans  <dje@google.com>
15926
15927	* server.c (start_inferior): Set last_ptid in --wrapper case.
15928
159292012-01-06  Yao Qi  <yao@codesourcery.com>
15930
15931	* tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
15932	defined.
15933	[IN_PROCESS_AGENT] (debug_agent): New global variable.
15934
159352012-01-04  Yao Qi  <yao@codesourcery.com>
15936
15937	* tracepoint.c (cmd_qtdp): Print debug message
15938	for static tracepoint.
15939
159402012-01-04  Yao Qi  <yao@codesourcery.com>
15941
15942	* tracepoint.c (trace_vdebug): Differentiate debug message
15943	between gdbserver and IPA.
15944
159452012-01-03  Yao Qi  <yao@codesourcery.com>
15946
15947	* tracepoint.c (tracepoint_was_hit): Don't collect for
15948	static tracepoint.
15949
159502012-01-02  Joel Brobecker  <brobecker@adacore.com>
15951
15952	* terminal.h: Reformat copyright header.
15953
159542012-01-02  Joel Brobecker  <brobecker@adacore.com>
15955
15956	* server.c (gdbserver_version): Update copyright year.
15957	* gdbreplay.c (gdbreplay_version): Likewise.
15958
159592011-12-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
15960
15961	* linux-low.c (linux_create_inferior): Put empty if clause for write.
15962
15963	Revert:
15964	2011-12-18  Hui Zhu  <teawater@gmail.com>
15965	* linux-low.c (linux_create_inferior): Save return value to ret.
15966
159672011-12-18  Hui Zhu  <teawater@gmail.com>
15968
15969	* linux-low.c (linux_create_inferior): Save return value to ret.
15970
159712011-12-16  Doug Evans  <dje@google.com>
15972
15973	* linux-low.c (linux_create_inferior): If stdio connection,
15974	redirect stdin from /dev/null, stdout to stderr.
15975	* remote-utils.c (remote_is_stdio): New static global.
15976	(remote_connection_is_stdio): New function.
15977	(remote_prepare): Handle stdio connection.
15978	(remote_open): Ditto.
15979	(remote_close): Don't close stdin for stdio connections.
15980	(read_prim,write_prim): New functions.  Replace all calls to
15981	read/write to these.
15982	* server.c (main): Watch for "-" argument.  Move call to
15983	remote_prepare before start_inferior.
15984	* server.h (STDIO_CONNECTION_NAME): New macro.
15985	(remote_connection_is_stdio): Declare.
15986
15987	* remote-utils.c (prepare_resume_reply): Remove extraneous \n
15988	in debugging output.
15989
159902011-12-15  Yao Qi  <yao@codesourcery.com>
15991
15992	* tracepoint.c: Include sys/syscall.h.
15993	(gdb_ust_thread): Remove preprocessor conditional.
15994
159952011-12-14  Pedro Alves  <pedro@codesourcery.com>
15996
15997	* linux-low.c (linux_detach_one_lwp): Call
15998	the_low_target.prepare_to_resume before detaching.
15999
160002011-12-14  Yao Qi  <yao@codesourcery.com>
16001
16002	* tracepoint.c (gdb_ust_thread): Don't ignore return value
16003	of write.
16004
160052011-12-14  Yao Qi  <yao@codesourcery.com>
16006
16007	* i386-low.c (i386_low_stopped_data_address): Initialize local
16008	variable `control'.
16009
160102011-12-13  Pedro Alves  <pedro@codesourcery.com>
16011
16012	PR remote/13492
16013
16014	* i386-low.c (i386_low_stopped_data_address): Avoid fetching
16015	DR_CONTROL unless necessary.  Extend comments.
16016	* linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
16017	DR0-3 if not used.  If any watchpoint was set, clear DR_STATUS.
16018
160192011-12-13  Yao Qi  <yao@codesourcery.com>
16020
16021	* tracepoint.c (trace_buffer_alloc): Replace magic numbers with
16022	macros.
16023	(upload_fast_traceframes, upload_fast_traceframes): Likewise.
16024
160252011-12-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
16026
16027	* linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
16028	Print new debug message for such case.
16029
160302011-12-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
16031
16032	Fix overlapping memcpy.
16033	* mem-break.c (set_raw_breakpoint_at): New variable buf.  Use it for
16034	the read_inferior_memory transfer.
16035	(delete_fast_tracepoint_jump): New variable buf.  Use it for the
16036	write_inferior_memory transfer.
16037	(set_fast_tracepoint_jump): New variable buf.  Use it for the
16038	read_inferior_memory and write_inferior_memory transfers.
16039	(uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
16040	(delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
16041	Use it for the write_inferior_memory transfer.
16042	(check_mem_read, check_mem_write): New gdb_asserts for overlapping
16043	buffers.
16044
160452011-12-06  Maciej W. Rozycki  <macro@codesourcery.com>
16046
16047	* linux-low.c (fetch_register, store_register): Make code
16048	consistent, fix formatting.
16049
160502011-12-06  Maciej W. Rozycki  <macro@codesourcery.com>
16051
16052	* linux-low.c (usr_store_inferior_registers): Factor out code
16053	to handle individual registers into...
16054	(store_register): ... this new function.
16055
160562011-12-06  Ulrich Weigand  <uweigand@de.ibm.com>
16057
16058	* Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
16059	(s390-linux32v2.o, s390-linux32v2.c): Likewise.
16060	(s390-linux64v1.o, s390-linux64v1.c): Likewise.
16061	(s390-linux64v2.o, s390-linux64v2.c): Likewise.
16062	(s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
16063	(s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
16064	* configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
16065	(srv_xmlfiles): Add new XML files.
16066
16067	* linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
16068	and <sys/uio.h>.
16069	(PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
16070	(init_registers_s390_linux32v1): Add prototype.
16071	(init_registers_s390_linux32v2): Likewise.
16072	(init_registers_s390_linux64v1): Likewise.
16073	(init_registers_s390_linux64v2): Likewise.
16074	(init_registers_s390x_linux64v1): Likewise.
16075	(init_registers_s390x_linux64v2): Likewise.
16076	(s390_num_regs): Increment to 52.
16077	(s390_regmap): Add orig_r2 register.
16078	(s390_num_regs_3264): Increment to 68.
16079	(s390_regmap_3264): Add orig_r2 register.
16080	(s390_collect_ptrace_register): Handle orig_r2 register.
16081	(s390_supply_ptrace_register): Likewise.
16082	(s390_fill_last_break): New function.
16083	(s390_store_last_break): Likewise.
16084	(s390_fill_system_call): New function.
16085	(s390_store_system_call): Likewise.
16086	(target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
16087	register sets.
16088	(s390_check_regset): New function.
16089	(s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
16090	NT_S390_SYSTEM_CALL regsets and use appropriate description.
16091	Update target_regsets for available register sets.
16092
160932011-12-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
16094	    Jan Kratochvil  <jan.kratochvil@redhat.com>
16095
16096	* linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
16097	(read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
16098	New.
16099	(struct linux_target_ops): Install linux_qxfer_libraries_svr4.
16100	* linux-low.h (struct process_info_private): New member r_debug.
16101	* server.c (handle_qxfer_libraries): Call
16102	the_target->qxfer_libraries_svr4.
16103	(handle_qxfer_libraries_svr4): New function.
16104	(qxfer_packets): New entry "libraries-svr4".
16105	(handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
16106	* target.h (struct target_ops): New member qxfer_libraries_svr4.
16107	* remote.c (remote_xfer_partial): Call add_packet_config_cmd for
16108	PACKET_qXfer_libraries_svr4.
16109
161102011-11-30  Ulrich Weigand  <uweigand@de.ibm.com>
16111
16112	* linux-s390-low.c (s390_collect_ptrace_register): Fully convert
16113	PSW address/mask between 8-byte and 16-byte formats.
16114	(s390_supply_ptrace_register): Likewise.
16115	(s390_get_pc, s390_set_pc): 4-byte PSW address always includes
16116	basic addressing mode bit.
16117
161182011-11-24  Stan Shebs  <stan@codesourcery.com>
16119
16120	* tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
16121
161222011-11-17  Stan Shebs  <stan@codesourcery.com>
16123
16124	* tracepoint.c (struct tracepoint): New field traceframe_usage.
16125	(tracing_start_time): New global.
16126	(tracing_stop_time): New global.
16127	(tracing_user_name): New global.
16128	(tracing_notes): New global.
16129	(tracing_stop_note): New global.
16130	(cmd_qtstart): Set traceframe_usage, start_time.
16131	(stop_tracing): Set stop_time.
16132	(cmd_qtstatus): Report additional status.
16133	(cmd_qtp): New function.
16134	(handle_tracepoint_query): Call it.
16135	(cmd_qtnotes): New function.
16136	(handle_tracepoint_general_set): Call it.
16137	(get_timestamp): Rename from tsv_get_timestamp.
16138
161392011-11-14  Stan Shebs  <stan@codesourcery.com>
16140	    Kwok Cheung Yeung  <kcy@codesourcery.com>
16141
16142	* linux-x86-low.c (small_jump_insn): New.
16143	(i386_install_fast_tracepoint_jump_pad): Add arguments for
16144	trampoline and error message, build a trampoline and issue a small
16145	jump instruction to it.
16146	(x86_install_fast_tracepoint_jump_pad): Add arguments for
16147	trampoline and error message.
16148	(x86_get_min_fast_tracepoint_insn_len): New.
16149	(the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
16150	* linux-low.h (struct linux_target_ops): Add arguments to
16151	install_fast_tracepoint_jump_pad operation, add new operation.
16152	* linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
16153	arguments.
16154	(linux_get_min_fast_tracepoint_insn_len): New function.
16155	(linux_target_op): Add new operation.
16156	* tracepoint.c (gdb_trampoline_buffer): New IPA variable.
16157	(gdb_trampoline_buffer_end): Ditto.
16158	(gdb_trampoline_buffer_error): Ditto.
16159	(struct ipa_sym_addresses): Add fields for new IPA variables.
16160	(symbol_list): Add entries for new IPA variables.
16161	(struct tracepoint): Add fields to hold the address range of the
16162	trampoline used by the tracepoint.
16163	(trampoline_buffer_head): New static variable.
16164	(trampoline_buffer_tail): Ditto.
16165	(claim_trampoline_space): New function.
16166	(have_fast_tracepoint_trampoline_buffer): New function.
16167	(clone_fast_tracepoint): Fill in trampoline fields of tracepoint
16168	structure.
16169	(install_fast_tracepoint): Ditto, also add error buffer argument.
16170	(cmd_qtminftpilen): New function.
16171	(handle_tracepoint_query): Add response to qTMinFTPILen packet.
16172	(fast_tracepoint_from_trampoline_address): New function.
16173	(fast_tracepoint_collecting): Handle trampoline as part of jump
16174	pad space.
16175	(set_trampoline_buffer_space): New function.
16176	(initialize_tracepoint): Initialize new IPA variables.
16177	* target.h (struct target_ops): Add arguments to
16178	install_fast_tracepoint_jump_pad operation, add new
16179	get_min_fast_tracepoint_insn_len operation.
16180	(target_get_min_fast_tracepoint_insn_len): New.
16181	(install_fast_tracepoint_jump_pad): Add arguments.
16182	* server.h (IPA_BUFSIZ): Define.
16183	* linux-i386-ipa.c: Include extra header files.
16184	(initialize_fast_tracepoint_trampoline_buffer): New function.
16185	(initialize_low_tracepoint): Call it.
16186	* server.h (set_trampoline_buffer_space): Declare.
16187	(claim_trampoline_space): Ditto.
16188	(have_fast_tracepoint_trampoline_buffer): Ditto.
16189
161902011-11-14  Yao Qi  <yao@codesourcery.com>
16191
16192	* server.c (handle_query): Handle InstallInTrace for qSupported.
16193	* tracepoint.c (add_tracepoint): Sort list.
16194	(install_tracepoint, download_tracepoint): New.
16195	(cmd_qtdp): Call them to install and download tracepoints.
16196	(sort_tracepoints): Removed.
16197	(cmd_qtstart): Update.
16198
161992011-11-14  Yao Qi  <yao@codesourcery.com>
16200
16201	* mem-break.c (inc_ref_fast_tracepoint_jump): New.
16202	* mem-break.h: Declare.
16203	* tracepoint.c (cmd_qtstart): Move some code to ...
16204	(clone_fast_tracepoint, install_fast_tracepoint): ... here.
16205	New.
16206	(download_tracepoints): Move some code to ...
16207	(download_tracepoint_1): ... here.  New.
16208
162092011-11-08  Yao Qi  <yao@codesourcery.com>
16210
16211	* remote-utils.c (relocate_instruction): A comment fix.
16212
162132011-11-07  Joel Brobecker  <brobecker@adacore.com>
16214
16215	* win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
16216	(i386_dr_low_get_control, i386_dr_low_get_status): Use
16217	dr_status_mirror and dr_control_mirror from debug_reg_state.
16218	(i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
16219	(i386_initial_stuff): Remove use of deleted globals.
16220	(i386_get_thread_context, i386_set_thread_context,
16221	i386_thread_added): Use dr_status_mirror and dr_control_mirror
16222	from debug_reg_state.
16223
162242011-11-05  Yao Qi  <yao@codesourcery.com>
16225
16226	* tracepoint.c (gdb_collect): Loop over tracepoints of same
16227	address as TPOINT's.
16228
162292011-11-02  Stan Shebs  <stan@codesourcery.com>
16230
16231	* tracepoint.c (agent_mem_read_string): New function.
16232	(eval_agent_expr): Call it for tracenz.
16233	* server.c (handle_query): Report support for tracenz.
16234
162352011-11-02  Yao Qi  <yao@codesourcery.com>
16236
16237	* tracepoint.c (cmd_qtstart): Remove unused local variables.
16238
162392011-11-02  Yao Qi  <yao@codesourcery.com>
16240
16241	* target.h: Fix a typo in comment.
16242
162432011-10-31  Pedro Alves  <pedro@codesourcery.com>
16244
16245	* mem-break.c (check_mem_write): Add `myaddr' parameter.  Don't
16246	clobber the breakpoints' shadows with fast tracepoint jumps.
16247	* mem-break.h (check_mem_write): Add `myaddr' parameter.
16248	* target.c (write_inferior_memory): Also pass MYADDR down to
16249	check_mem_write.
16250
162512011-10-07  Ulrich Weigand  <ulrich.weigand@linaro.org>
16252
16253	* configure.ac: Check support for personality routine.
16254	* configure: Regenerate.
16255	* config.in: Likewise.
16256	* linux-low.c: Include <sys/personality.h>.
16257	Define ADDR_NO_RANDOMIZE if necessary.
16258	(linux_create_inferior): Disable address space randomization when
16259	forking inferior, if requested.
16260	(linux_supports_disable_randomization): New function.
16261	(linux_target_ops): Install it.
16262	* server.h (disable_randomization): Declare.
16263	* server.c (disable_randomization): New global variable.
16264	(handle_general_set): Handle QDisableRandomization.
16265	(handle_query): Likewise for qSupported.
16266	(main): Support --disable-randomization and --no-disable-randomization
16267	command line arguments.
16268	* target.h (struct target_ops): Add supports_disable_randomization.
16269	(target_supports_disable_randomization): New macro.
16270
162712011-09-29  Mike Frysinger  <vapier@gentoo.org>
16272
16273	* linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
16274	ifdef check.
16275	[PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
16276	[!PT_GETDSBT] (target_loadmap): New definition.
16277	(LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
16278	(linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
16279	LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
16280	and PT_GETDSBT to LINUX_LOADMAP.
16281	[!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
16282	(linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
16283
162842011-09-21  Ulrich Weigand  <ulrich.weigand@linaro.org>
16285
16286	* linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
16287	(arm_linux_hwbp_cap): New static variable.
16288	(arm_linux_get_hwbp_cap): Replace by ...
16289	(arm_linux_init_hwbp_cap): ... this new function.
16290	(arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
16291	(arm_linux_get_hw_watchpoint_count): Likewise.
16292	(arm_linux_get_hw_watchpoint_max_length): Likewise.
16293	(arm_arch_setup): Call arm_linux_init_hwbp_cap.
16294	(arm_prepare_to_resume): Use perror_with_name instead of error.
16295
162962011-09-21  Ulrich Weigand  <ulrich.weigand@linaro.org>
16297
16298	* linux-arm-low.c: Include <signal.h>.
16299	(PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
16300	(struct arm_linux_hwbp_cap): New data type.
16301	(arm_hwbp_type, arm_hwbp_control_t): New typedefs.
16302	(struct arm_linux_hw_breakpoint): New data type.
16303	(MAX_BPTS, MAX_WPTS): Define.
16304	(struct arch_process_info, struct arch_lwp_info): New data types.
16305	(arm_linux_get_hwbp_cap): New function.
16306	(arm_linux_get_hw_breakpoint_count): Likewise.
16307	(arm_linux_get_hw_watchpoint_count): Likewise.
16308	(arm_linux_get_hw_watchpoint_max_length): Likewise.
16309	(arm_hwbp_control_initialize): Likewise.
16310	(arm_hwbp_control_is_enabled): Likewise.
16311	(arm_hwbp_control_is_initialized): Likewise.
16312	(arm_hwbp_control_disable): Likewise.
16313	(arm_linux_hw_breakpoint_equal): Likewise.
16314	(arm_linux_hw_point_initialize): Likewise.
16315	(struct update_registers_data): New data structure.
16316	(update_registers_callback: New function.
16317	(arm_insert_point): Likewise.
16318	(arm_remove_point): Likewise.
16319	(arm_stopped_by_watchpoint): Likewise.
16320	(arm_stopped_data_address): Likewise.
16321	(arm_new_process): Likewise.
16322	(arm_new_thread): Likewise.
16323	(arm_prepare_to_resume): Likewise.
16324	(the_low_target): Register arm_insert_point, arm_remove_point,
16325	arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
16326	arm_new_thread, and arm_prepare_to_resume.
16327
163282011-09-15  Stan Shebs  <stan@codesourcery.com>
16329
16330	* server.h (struct emit_ops): Add compare-goto fields.
16331	* tracepoint.c (gdb_agent_op_sizes): New table.
16332	(emit_eq_goto): New function.
16333	(emit_ne_goto): New function.
16334	(emit_lt_goto): New function.
16335	(emit_le_goto): New function.
16336	(emit_gt_goto): New function.
16337	(emit_ge_goto): New function.
16338	(is_goto_target): New function.
16339	(compile_bytecodes): Recognize special cases of compare-goto
16340	combinations and call specialized emitters for them.
16341	* linux-x86-low.c (amd64_emit_eq_goto): New function.
16342	(amd64_emit_ne_goto): New function.
16343	(amd64_emit_lt_goto): New function.
16344	(amd64_emit_le_goto): New function.
16345	(amd64_emit_gt_goto): New function.
16346	(amd64_emit_ge_goto): New function.
16347	(amd64_emit_ops): Add the new functions.
16348	(i386_emit_eq_goto): New function.
16349	(i386_emit_ne_goto): New function.
16350	(i386_emit_lt_goto): New function.
16351	(i386_emit_le_goto): New function.
16352	(i386_emit_gt_goto): New function.
16353	(i386_emit_ge_goto): New function.
16354	(i386_emit_ops): Add the new functions.
16355
163562011-09-08  Stan Shebs  <stan@codesourcery.com>
16357
16358	* linux-x86-low.c (i386_emit_prologue): Save %ebx.
16359	(i386_emit_epilogue): Restore %ebx.
16360
163612011-08-31  Jie Zhang  <jzhang918@gmail.com>
16362
16363	* server.c (step_thread): Remove definition.
16364	(process_serial_event): Don't handle Hs.
16365	* server.h (step_thread): Remove declaration.
16366	* target.c (set_desired_inferior): Remove use of step_thread.
16367
163682011-08-24  Luis Machado  <lgustavo@codesourcery.com>
16369
16370	* linux-low.c: Include linux-procfs.h.
16371	(linux_attach_lwp_1): Update comments.
16372	(linux_attach): Scan for existing threads when attaching to a
16373	process that is the tgid.
16374	* Makefile.in: Update dependencies.
16375
163762011-08-24  Luis Machado  <lgustavo@codesourcery.com>
16377
16378	* configure.srv: Add linux-procfs.o dependencies.
16379
163802011-08-14  Yao Qi  <yao@codesourcery.com>
16381
16382	* target.h (struct target_ops): Fix indent.
16383	* win32-low.c (win32_target_ops): Fix comment.
16384
163852011-08-14  Andrew Jenner  <andrew@codesourcery.com>
16386	    Yao Qi  <yao@codesourcery.com>
16387
16388	* Makefile.in (clean): Remove tic6x-*.c files.
16389	(linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
16390	(tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
16391	(tic6x-c64xp-linux.c): Likewise.
16392	* configure.srv: Add support for tic6x-*-uclinux.
16393	* linux-tic6x-low.c: New.
16394	* linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
16395
163962011-08-14  Andrew Stubbs <ams@codesourcery.com>
16397	    Yao Qi  <yao@codesourcery.com>
16398
16399	* target.h (struct target_ops): Add read_loadmap.
16400	* linux-low.c (struct target_loadseg): New type.
16401	(struct target_loadmap): New type.
16402	(linux_read_loadmap): New function.
16403	(linux_target_ops): Add linux_read_loadmap.
16404	* server.c (handle_query): Support qXfer:fdpic:read packet.
16405	* win32-low.c (win32_target_ops): Initialize field `read_loadmap'
16406	to NULL.
16407
164082011-08-05  Eli Zaretskii  <eliz@gnu.org>
16409
16410	* win32-low.c: Include <stdint.h>.
16411
164122011-07-22  Pedro Alves  <pedro@codesourcery.com>
16413
16414	* i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
16415	to the inferior here.
16416	(i386_remove_aligned_watchpoint): Ditto.
16417	(i386_handle_nonaligned_watchpoint): Return immediate on fail to
16418	fit part of the watchpoint in the debug registers.
16419	(i386_update_inferior_debug_regs): New.
16420	(i386_low_insert_watchpoint): Work on a local mirror of the debug
16421	registers, and only update the inferior on success.
16422	(i386_low_remove_watchpoint): Ditto.
16423
164242011-07-22  Kwok Cheung Yeung  <kcy@codesourcery.com>
16425
16426	* linux-low.c (compare_ints, unique, list_threads, show_process,
16427	linux_core_of_thread): Delete.
16428	(linux_target_ops): Change linux_core_of_thread to
16429	linux_common_core_of_thread.
16430	(linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
16431	* utils.c (malloc_failure): Change type of argument.
16432	(xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
16433	* Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
16434	common/linux-osdata.c, common/ptid.c and common/buffer.c.
16435	(OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
16436	(IPA_OBJS): Add common-utils-ipa.o.
16437	(ptid_h, linux_osdata_h): New macros.
16438	(server_h): Add common/common-utils.h, common/xml-utils.h,
16439	common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
16440	common/ptid.h.
16441	(common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
16442	ptid.o, buffer.o): New rules.
16443	(linux-low.o): Add common/linux-osdata.h as a dependency.
16444	* configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
16445	* configure.ac: Add AC_HEADER_DIRENT check.
16446	* config.in: Regenerate.
16447	* configure: Regenerate.
16448	* remote-utils.c (xml_escape_text): Delete.
16449	(buffer_grow, buffer_free, buffer_init, buffer_finish,
16450	buffer_xml_printf): Move to common/buffer.c.
16451	* server.c (main): Remove call to initialize_inferiors.
16452	* server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
16453	ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
16454	ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
16455	internal_error, gdb_assert, gdb_assert_fail): Delete.
16456	(struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
16457	buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
16458	common/buffer.h.
16459	* inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
16460	ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
16461	initialize_inferiors): Delete.
16462
164632011-07-20  Pedro Alves  <pedro@codesourcery.com>
16464
16465	* tracepoint.c (tracepoint_look_up_symbols): Return upon the first
16466	symbol error.
16467
164682011-05-31  Pedro Alves  <pedro@codesourcery.com>
16469
16470	* linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
16471	assertion.
16472	* win32-i386-low.c (i386_dr_low_get_addr): Ditto.
16473
164742011-05-26  Yao Qi  <yao@codesourcery.com>
16475
16476	* Makefile.in (thread-db.o): Track dependence to
16477	common/gdb_thread_db.h.
16478	* thread-db.c: include gdb_thread_db.h from right place.
16479
164802011-05-16  Adrian Cornish  <gnu@bluedreamer.com>
16481
16482	* linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
16483	__FILE__ and __LINE__ to internal_error.
16484
164852011-05-13  Doug Evans  <dje@google.com>
16486
16487	* thread-db.c (try_thread_db_load_from_sdir): New function.
16488	(try_thread_db_load_from_dir): New function.
16489	(thread_db_load_search): Handle $sdir, ignore $pdir.
16490	Remove trying of system directories if search of
16491	libthread-db-search-path fails,	that is now done via $sdir.
16492
164932011-05-12  Kwok Cheung Yeung  <kcy@codesourcery.com>
16494
16495	* server.c (handle_query): Add EnableDisableTracepoints to the list
16496	of supported features.
16497	* tracepoint.c (clear_installed_tracepoints): Uninstall disabled
16498	tracepoints.
16499	(cmd_qtenable_disable): New.
16500	(cmd_qtstart): Install tracepoints even if disabled.
16501	(handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
16502	receiving a QTEnable or QTDisable packet.
16503	(gdb_collect): Skip data collection if fast tracepoint is disabled.
16504	(ust_marker_to_static_tracepoint): Do not ignore disabled static
16505	tracepoints.
16506	(gdb_probe): Skip data collection if static tracepoint is disabled.
16507
165082011-05-10  Doug Evans  <dje@google.com>
16509
16510	* thread-db.c (thread_db_handle_monitor_command): Handle elided path.
16511
165122011-05-04  Doug Evans  <dje@google.com>
16513
16514	* linux-low.c (linux_join): Skip process lookup.
16515	* spu-low.c (spu_join): Ditto.
16516	* server.c (join_inferiors_callback): Delete.
16517	(process_serial_event): For 'D' packet (detach) call join_inferior
16518	directly.
16519
165202011-05-04  Joseph Myers  <joseph@codesourcery.com>
16521
16522	* README: Don't mention xscale*-*-linux*.
16523	* configure.srv (xscale*-*-linux*): Don't handle target.
16524
165252011-04-27  Nathan Froyd  <froydnj@codesourcery.com>
16526
16527	* linux-x86-low.c (amd64_emit_const): Call memcpy instead of
16528	casting pointers.
16529	(amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
16530	(i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
16531	(i386_emit_void_call_2): Likewise.
16532
165332011-04-26  Yao Qi  <yao@codesourcery.com>
16534
16535	* linux-low.c: Move common macros to linux-ptrace.h.
16536	Include linux-ptrace.h.
16537	* Makefile.in (linux_ptrace_h): New.
16538	(linux-low.o): Depends on linux-ptrace.h.
16539
165402011-04-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
16541
16542	* remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
16543	RUN_ONCE.  Comment for the LISTEN_DESC delete_file_handler call.
16544	(remote_prepare): New function with most of the TCP code from ...
16545	(remote_open): ... here.  Detect PORT here unconditionally.  Move also
16546	setting transport_is_reliable.
16547	* server.c (run_once): New variable.
16548	(gdbserver_usage): Document it.
16549	(main): Set run_once for `--once'.  Call remote_prepare.  Exit after
16550	the first run if RUN_ONCE.
16551	* server.h (run_once, remote_prepare): New declarations.
16552
165532011-04-19  Tom Tromey  <tromey@redhat.com>
16554
16555	* win32-low.c (handle_load_dll): Remove duplicate "the".
16556
165572011-04-07  Pierre Muller  <muller@ics.u-strasbg.fr>
16558
16559	Remove support for old Cygwin 1.5 versions.
16560	* win32-low.c (win32_create_inferior): Use new cygwin_path_list
16561	function to avoid warning.
16562	(win32_add_one_solib): Use cygwin_conv_path function to avoid
16563	warning.
16564
165652011-03-18  Pierre Muller  <muller@ics.u-strasbg.fr>
16566
16567	* gdbserver/server.h (Macro _): Define it if not available.
16568
165692011-03-14  Michael Snyder  <msnyder@vmware.com>
16570
16571	* hostio.c (handle_close): Remove unnecessary null test.
16572
165732011-03-10  Joel Brobecker  <brobecker@adacore.com>
16574
16575	* Makefile.in (maintainer-clean realclean distclean): Remove
16576	"make ...  subdir_do" command.
16577
165782011-03-10  Michael Snyder  <msnyder@vmware.com>
16579
16580	* tracepoint.c (tracepoint_finish_step): Fix loop variable.
16581
16582	* server.c (handle_v_run): Free alloced buffer on early return.
16583
165842011-03-09  Yao Qi  <yao@codesourcery.com>
16585
16586	Revert:
16587	2011-03-04  Yao Qi  <yao@codesourcery.com>
16588
16589	* Makefile.in: Remove GNU make feature --directory.
16590
16591	2011-03-05  Yao Qi  <yao@codesourcery.com>
16592
16593	* Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16594	(subdir_do): New make target.  Copied from gdb/Makefile.
16595	(maintainer-clean, realclean, distclean, clean): Call corresponding
16596	make targets in common/Makefile.
16597
16598	2011-02-11  Yao Qi  <yao@codesourcery.com>
16599
16600	* configure.ac: Call AC_PROG_RANLIB.
16601	* Makefile.in: Remove signals.o from OBS.  Link libcommon.a.
16602	* configure: Regenerate.
16603
166042011-03-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
16605
16606	* remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
16607
166082011-03-06  Yao Qi  <yao@codesourcery.com>
16609
16610	* Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
16611
166122011-03-05  Yao Qi  <yao@codesourcery.com>
16613
16614	* Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16615	(subdir_do): New make target.  Copied from gdb/Makefile.
16616	(maintainer-clean, realclean, distclean, clean): Call corresponding
16617	make targets in common/Makefile.
16618
166192011-03-04  Yao Qi  <yao@codesourcery.com>
16620
16621	* Makefile.in: Remove GNU make feature --directory.
16622
166232011-03-04  Michael Snyder  <msnyder@vmware.com>
16624
16625	* server.c (queue_stop_reply): Call xmalloc not malloc.
16626
166272011-03-02  Michael Snyder  <msnyder@vmware.com>
16628
16629	* linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
16630
166312011-02-28  Michael Snyder  <msnyder@vmware.com>
16632
16633	* tracepoint.c (cmd_qtv): Discard unused value 'packet'.
16634	(cmd_qtframe): Ditto.
16635	(cmd_qtbuffer): Ditto.
16636	(cmd_bigqtbuffer): Ditto.
16637
16638	* utils.c (decimal2str): Initialize 'width' to nine, then
16639	don't mess with it.
16640
166412011-02-28  Ulrich Weigand  <uweigand@de.ibm.com>
16642
16643	* hostio.c (require_data): Free *data, not data.
16644
166452011-02-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
16646
16647	* hostio.c (require_data): Use free, not xfree.
16648
166492011-02-27  Michael Snyder  <msnyder@vmware.com>
16650
16651	* server.c (handle_query): Discard unused value.
16652
16653	* hostio.c (require_data): Free malloc memory before returning
16654	error.
16655
166562011-02-26  Michael Snyder  <msnyder@vmware.com>
16657
16658	* linux-low.c (list_threads): Call closedir for dirent.
16659
166602011-02-27  Michael Snyder  <msnyder@vmware.com>
16661
16662	* i386-low.c (i386-length_and_rw_bits): Comment the fact that
16663	a case statement falls through.
16664
16665	* linux-low.c (linux_xfer_siginfo): Fix fencepost error.
16666
16667	* linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
16668	in comparison.
16669
166702011-02-26  Michael Snyder  <msnyder@vmware.com>
16671
16672	* utils.c (decimal2str): Eliminate dead code and dead param.
16673	(pulongest): Drop dead param from call to decimal2str.
16674	(plongest): Ditto.
16675
166762011-02-24  Joel Brobecker  <brobecker@adacore.com>
16677
16678	Revert the following patch (not approved yet):
16679	2011-02-21  Hui Zhu  <teawater@gmail.com>
16680	* tracepoint.c (tp_printf): New function.
16681	(eval_agent_expr): Handle gdb_agent_op_printf.
16682
166832011-02-21  Hui Zhu  <teawater@gmail.com>
16684
16685	* tracepoint.c (tp_printf): New function.
16686	(eval_agent_expr): Handle gdb_agent_op_printf.
16687
166882011-02-18  Tom Tromey  <tromey@redhat.com>
16689
16690	* Makefile.in (tracepoint-ipa.o): Depend on ax.def.
16691	(tracepoint.o): Likewise.
16692	* tracepoint.c (enum gdb_agent_op): Use ax.def.
16693	(gdb_agent_op_names): Likewise.
16694
166952011-02-18  Tom Tromey  <tromey@redhat.com>
16696
16697	* tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
16698	gdb_agent_op_rot>: New constants.
16699	(gdb_agent_op_names): Add pick and roll.
16700	(eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
16701	cases.
16702
167032011-02-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
16704
16705	* aclocal.m4: Regenerated with aclocal-1.11.1.
16706
167072011-02-14  Pedro Alves  <pedro@codesourcery.com>
16708
16709	* server.c (handle_qxfer_traceframe_info): New.
16710	(qxfer_packets): Register "traceframe-info".
16711	(handle_query): Report support for qXfer:traceframe-info:read+.
16712	* tracepoint.c (match_blocktype): New.
16713	(traceframe_find_block_type): Rename to ...
16714	(traceframe_walk_blocks): ... this.  Add callback filter argument,
16715	and use it.
16716	(traceframe_find_block_type): New, reimplemented on top of
16717	traceframe_walk_blocks.
16718	(build_traceframe_info_xml): New.
16719	(traceframe_read_info): New.
16720	* server.h (traceframe_read_info): Declare.
16721
167222011-02-11  Yao Qi  <yao@codesourcery.com>
16723
16724	* configure.ac: Call AC_PROG_RANLIB.
16725	* Makefile.in: Remove signals.o from OBS.  Link libcommon.a.
16726	* configure: Regenerate.
16727
167282011-02-07  Pedro Alves  <pedro@codesourcery.com>
16729
16730	* server.c (gdb_read_memory): Change return semantics to allow
16731	partial transfers.
16732	(handle_search_memory_1): Adjust.
16733	(process_serial_event) <'m' packet>: Handle partial transfers.
16734	* tracepoint.c (traceframe_read_mem): Handle partial transfers.
16735
167362011-01-28  Pedro Alves  <pedro@codesourcery.com>
16737
16738	* regcache.c (init_register_cache): Initialize
16739	regcache->register_status.
16740	(free_register_cache): Release regcache->register_status.
16741	(regcache_cpy): Copy register_status.
16742	(registers_to_string): Print 'x's for unavailable registers.
16743	(supply_register): Mark the register's status valid or
16744	unavailable, depending on whether a buffer was passed in or not.
16745	(supply_register_zeroed): New.
16746	(supply_regblock): Mark the registers' status valid or
16747	unavailable, depending on whether a buffer was passed in or not.
16748	* regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
16749	(struct regcache): New `register_status' field.
16750	(supply_register_zeroed): Declare.
16751	* i387-fp.c (i387_xsave_to_cache): Zero out registers using
16752	supply_register_zeroed, rather than passing a NULL buffer to
16753	supply_register.
16754	* tracepoint.c (fetch_traceframe_registers): Update comment.
16755
167562011-01-28  Pedro Alves  <pedro@codesourcery.com>
16757
16758	* i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
16759	buffer explicit.
16760
167612011-01-25  Pedro Alves  <pedro@codesourcery.com>
16762
16763	* server.h (decode_xfer_write): Change prototype.
16764	* remote-utils.c (decode_xfer_write): Remove `annex' parameter,
16765	and don't extract the annex here.
16766	* server.c (decode_xfer_read): Remove `annex' parameter,
16767	and don't extract the annex here.
16768	(decode_xfer): New.
16769	(struct qxfer): New.
16770	(handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
16771	(handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
16772	(handle_qxfer_statictrace): New functions, abstracted out from
16773	handle_query, and made to use the struct qxfer interface.
16774	(handle_threads_qxfer_proper): Rename to ...
16775	(handle_qxfer_threads_proper): ... this.
16776	(handle_threads_qxfer): Rename to ...
16777	(handle_qxfer_threads): ... this.  Adjust.
16778	(qxfer_packets): New array.
16779	(handle_qxfer): New function.
16780	(handle_query): Use handle_qxfer.
16781
167822011-01-05  Michael Snyder  <msnyder@msnyder-server.eng.vmware.com>
16783
16784	* gdbreplay.c: Shorten lines of >= 80 columns.
16785	* linux-low.c: Ditto.
16786	* linux-ppc-low.c: Ditto.
16787	* linux-s390-low.c: Ditto.
16788	* linux-sparc-low.c: Ditto.
16789	* linux-x86-low.c: Ditto.
16790	* linux-xtensa-low.c: Ditto.
16791	* mem-break.c: Ditto.
16792	* nto-low.c: Ditto.
16793	* regcache.h: Ditto.
16794	* remote-utils.c: Ditto.
16795	* server.c: Ditto.
16796	* server.h: Ditto.
16797	* thread-db.c: Ditto.
16798	* tracepoint.c: Ditto.
16799	* utils.c: Ditto.
16800	* win32-low.h: Ditto.
16801
168022011-01-05  Joel Brobecker  <brobecker@adacore.com>
16803
16804	* gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
16805	update.
16806
168072011-01-01  Joel Brobecker  <brobecker@adacore.com>
16808
16809	* server.c (gdbserver_version): Update copyright year in version
16810	output.
16811	* gdbreplay.c (gdbreplay_version): Ditto.
16812
168132010-12-29  Jie Zhang  <jie.zhang@analog.com>
16814
16815	* configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
16816	* linux-bfin-low.c: New file.
16817	* linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
16818	PT_DATA_ADDR for BFIN targets.
16819	* Makefile.in (SFILES): Add linux-bfin-low.c.
16820	(clean): Remove reg-bfin.c.
16821	(linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
16822	* README: Mention supported Blackfin targets.
16823
168242010-12-23  Mike Frysinger  <vapier@gentoo.org>
16825
16826	* .gitignore: New file.
16827
168282010-11-16  Mike Frysinger  <vapier@gentoo.org>
16829
16830	* linux-low.c (linux_tracefork_child): Add char* cast to arg.
16831
168322010-10-22  Jie Zhang  <jie@codesourcery.com>
16833
16834	* Makefile.in: Add FLAGS_TO_PASS variable.
16835	(install): Remove dependency of install-only and recursively
16836	invoke make for install-only.
16837
168382010-10-04  Doug Evans  <dje@google.com>
16839
16840	* Makefile.in (uninstall): Use $(DESTDIR).
16841
168422010-09-24  Pedro Alves  <pedro@codesourcery.com>
16843
16844	PR gdb/11842
16845
16846	* linux-x86-low.c (compat_siginfo_from_siginfo)
16847	(siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
16848	si_code is < 0.  Check for si_code == SI_TIMER before checking for
16849	si_code < 0.
16850
168512010-09-13  Joel Brobecker  <brobecker@adacore.com>
16852
16853	* lynx-i386-low.c: New file.
16854	* configure.srv: Add handling of i[34567]86-*-lynxos* targets.
16855
168562010-09-13  Joel Brobecker  <brobecker@adacore.com>
16857
16858	* lynx-low.c (ptrace_request_to_str): Remove handling for
16859	request values that have been removed in LynxOS 5.x.
16860
168612010-09-13  Joel Brobecker  <brobecker@adacore.com>
16862
16863	* lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
16864	<ptrace.h>
16865
168662010-09-09  Nathan Sidwell  <nathan@codesourcery.com>
16867
16868	* configure.ac: Add --enable-inprocess-agent option.
16869	* configure: Rebuilt.
16870
168712010-09-06  Yao Qi  <yao@codesourcery.com>
16872
16873	* linux-low.c (linux_kill): Remove unused variable.
16874	(linux_stabilize_threads): Likewise.
16875	* server.c (start_inferior): Likewise.
16876	(queue_stop_reply_callback): Likewise.
16877	* tracepoint.c (do_action_at_tracepoint): Likewise.
16878
168792010-09-06  Yao Qi  <yao@codesourcery.com>
16880
16881	* linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
16882	on return.
16883
168842010-09-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
16885
16886	* target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
16887
168882010-09-06  Pedro Alves  <pedro@codesourcery.com>
16889
16890	* Makefile.in (install-only): Replace $IPA_DEPFILES with
16891	"$(IPA_DEPFILES)".
16892
168932010-09-01  Joel Brobecker  <brobecker@adacore.com>
16894
16895	* gdbserver/lynx-low.c, gdbserver/lynx-low.h,
16896	gdbserver/lynx-ppc-low.c: New files.
16897	* Makefile.in (lynx_low_h): New variable.
16898	(lynx-low.o, lynx-ppc-low.o): New rules.
16899	* configure.ac: On LynxOS, link with -lnetinet.
16900	* configure.srv: Add handling of powerpc-*-lynxos* targets.
16901	* configure: regenerate.
16902
169032010-09-01  Joel Brobecker  <brobecker@adacore.com>
16904
16905	* Makefile.in (vasprintf.o, vsnprintf.o): New rules.
16906	* configure.ac: Add check for vasprintf and vsnprintf.
16907	* configure, config.in: Regenerate.
16908	* server.h (vasprintf, vsnprintf): Add conditional declarations.
16909
169102010-09-01  Joel Brobecker  <brobecker@adacore.com>
16911
16912	* gdbreplay.c: Move include of alloca.h up, next to include of
16913	malloc.h.
16914	* server.h: Add include of malloc.h.
16915	* mem-break.c: Remove include of malloc.h.
16916	* server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
16917
169182010-09-01  Joel Brobecker  <brobecker@adacore.com>
16919
16920	* Makefile.in (memmem.o): Build with -Wno-error.
16921
169222010-09-01  Joel Brobecker  <brobecker@adacore.com>
16923
16924	* utils.c (xsnprintf): Make non-static.
16925	* server.h: Add xsnprintf declaration.
16926	* linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
16927	replace calls to snprintf by calls to xsnprintf throughout.
16928
169292010-09-01  Joel Brobecker  <brobecker@adacore.com>
16930
16931	* configure.ac: Add configure check for alloca.
16932	* configure, config.in: Regenerate.
16933	* server.h: Include alloca.h if it exists.
16934	* gdbreplay.c: Include alloca.h if it exists.
16935
169362010-08-28  Pedro Alves  <pedro@codesourcery.com>
16937
16938	* linux-low.c (__SIGRTMIN): Define if not already defined.
16939	(linux_create_inferior): Check for __ANDROID__ rather than
16940	__SIGRTMIN.
16941	(enqueue_one_deferred_signal): Don't requeue non-RT signals that
16942	are already deferred.
16943	(linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
16944	(linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
16945	stopped and already has a pending signal to report.
16946	(proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
16947	a pending signal to report or is moving out of a jump pad.
16948	(linux_init_signals): Check for __ANDROID__ rather than
16949	__SIGRTMIN.
16950
169512010-08-28  Pedro Alves  <pedro@codesourcery.com>
16952
16953	* linux-low.c (linux_stabilize_threads): Wrap debug output in a
16954	debug_threads check.  Avoid a linear search when not doing debug
16955	output.
16956
169572010-08-27  Pedro Alves  <pedro@codesourcery.com>
16958
16959	* event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
16960	(struct gdb_event) <fd>: Change type to gdb_fildes_t.
16961	(struct file_handler) <fd>: Change type to gdb_fildes_t.
16962	(process_event): Change local fd's type to gdb_fildes_t.
16963	(create_file_handler): Adjust prototype.
16964	(delete_file_handler): Adjust prototype.
16965	(handle_file_event): Adjust prototype.  Use pfildes.
16966	(create_file_event): Adjsut prototype.
16967	* remote-utils.c (remote_desc, listen_desc): Change type to
16968	gdb_fildes_t.
16969	* server.h: New gdb_fildes_t typedef.
16970	[USE_WIN32API]: Include winsock2.h.
16971	(delete_file_handler, add_file_handler): Adjust prototypes.
16972	(pfildes): Declare.
16973	* utils.c (pfildes): New.
16974
169752010-08-27  Pedro Alves  <pedro@codesourcery.com>
16976
16977	* configure.ac (build_warnings): Add -Wno-char-subscripts.
16978	* configure: Regenerate.
16979
169802010-08-27  Pedro Alves  <pedro@codesourcery.com>
16981
16982	* linux-low.c (linux_unprepare_to_access_memory): Rename to ...
16983	(linux_done_accessing_memory): ... this.
16984	(linux_target_ops): Adjust.
16985	* linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
16986	* nto-low.c (nto_target_ops): Adjust comment.
16987	* server.c (gdb_read_memory, gdb_write_memory): Adjust.
16988	* spu-low.c (spu_target_ops): Adjust comment.
16989	* target.h (target_ops): Rename unprepare_to_access_memory field
16990	to done_accessing_memory.
16991	(unprepare_to_access_memory): Rename to ...
16992	(done_accessing_memory): ... this.
16993
169942010-08-26  Pedro Alves  <pedro@codesourcery.com>
16995
16996	* linux-low.c (linux_prepare_to_access_memory): New.
16997	(linux_unprepare_to_access_memory): New.
16998	(linux_target_ops): Install them.
16999	* server.c (read_memory): Rename to ...
17000	(gdb_read_memory): ... this.  Use
17001	prepare_to_access_memory/prepare_to_access_memory.
17002	(write_memory): Rename to ...
17003	(gdb_write_memory): ... this.  Use
17004	prepare_to_access_memory/prepare_to_access_memory.
17005	(handle_search_memory_1): Adjust.
17006	(process_serial_event): Adjust.
17007	* target.h (struct target_ops): New fields
17008	prepare_to_access_memory and unprepare_to_access_memory.
17009	(prepare_to_access_memory, unprepare_to_access_memory): New.
17010	* linux-x86-low.c (x86_insert_point, x86_remove_point): Use
17011	prepare_to_access_memory/prepare_to_access_memory.
17012	* nto-low.c (nto_target_ops): Adjust.
17013	* spu-low.c (spu_target_ops): Adjust.
17014	* win32-low.c (win32_target_ops): Adjust.
17015
170162010-08-26  Pedro Alves  <pedro@codesourcery.com>
17017
17018	* Makefile.in (WARN_CFLAGS): Get it from configure.
17019	(WERROR_CFLAGS): New.
17020	(INTERNAL_CFLAGS): Add WERROR_CFLAGS.
17021	* configure.ac: Introduce --enable-werror, which adds -Werror to
17022	the compiler command line.  Enabled by default.  Disable with
17023	--disable-werror.  Add -Wdeclaration-after-statement
17024	Wpointer-arith and -Wformat-nonliteral to warning flags.
17025	* configure: Regenerate.
17026
170272010-08-26  Pedro Alves  <pedro@codesourcery.com>
17028
17029	* mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
17030
170312010-08-26  Pedro Alves  <pedro@codesourcery.com>
17032
17033	* gdbreplay.c (remote_error): New.
17034	(gdbchar): New.
17035	(expect): Use gdbchar.  Check for error reading from GDB.
17036	Clarify sync error output.
17037	(play): Check for errors writing to GDB.
17038	* linux-low.c (sigchld_handler): Really ignore `write' errors.
17039	* remote-utils.c (getpkt): Check for errors writing to the remote
17040	descriptor.
17041
170422010-08-25  Pedro Alves  <pedro@codesourcery.com>
17043
17044	* linux-low.c (linux_wait_1): Move non-debugging code out of
17045	`debug_threads' control.
17046
170472010-08-25  Pedro Alves  <pedro@codesourcery.com>
17048
17049	* linux-low.c (linux_wait_1): Don't set last_status here.
17050	* server.c (push_event, queue_stop_reply_callback): Assert we're
17051	not pushing a TARGET_WAITKIND_IGNORE event.
17052	(start_inferior, start_inferior, attach_inferior, handle_v_cont)
17053	(myresume, handle_target_event): Set the thread's last_resume_kind
17054	and last_status from the target returned status.
17055
170562010-08-25  Pedro Alves  <pedro@codesourcery.com>
17057
17058	PR threads/10729
17059
17060	* linux-x86-low.c (update_debug_registers_callback): New.
17061	(i386_dr_low_set_addr): Use it.
17062	(i386_dr_low_get_addr): New.
17063	(i386_dr_low_set_control): Use update_debug_registers_callback.
17064	(i386_dr_low_get_control): New.
17065	(i386_dr_low_get_status): Adjust.
17066	* linux-low.c (linux_stop_lwp): New.
17067	* linux-low.h (linux_stop_lwp): Declare.
17068
17069	* i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
17070	argument instead of a i386_debug_reg_state.
17071	(I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
17072	a i386_debug_reg_state.
17073	(i386_insert_aligned_watchpoint): Adjust.
17074	(i386_remove_aligned_watchpoint): Adjust.
17075	(i386_low_stopped_data_address): Read the debug registers from the
17076	inferior instead of from the mirrors.
17077	* i386-low.h (struct i386_debug_reg_state): Extend comment.
17078	(i386_dr_low_get_addr): Declare.
17079	(i386_dr_low_get_control): Declare.
17080	(i386_dr_low_get_status): Change prototype.
17081
17082	* win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
17083	(i386_dr_low_get_addr): New.
17084	(i386_dr_low_get_control): New.
17085	(i386_dr_low_get_status): Adjust prototype.  Return
17086	dr_status_mirror.
17087	(i386_initial_stuff): Clear dr_status_mirror and
17088	dr_control_mirror.
17089	(i386_get_thread_context): Adjust.
17090	(i386_set_thread_context): Adjust.
17091	(i386_thread_added): Adjust.
17092
170932010-08-24  Pedro Alves  <pedro@codesourcery.com>
17094
17095	* linux-low.h (linux_thread_area): Delete declaration.
17096
170972010-08-11  Thomas Schwinge  <thomas@codesourcery.com>
17098
17099	* linux-low.c (linux_wait_1): Correctly return the ptid of the child
17100	after its termination.
17101
171022010-08-09  Pedro Alves  <pedro@codesourcery.com>
17103
17104	* linux-low.c (gdb_wants_lwp_stopped): Delete.
17105	(gdb_wants_all_stopped): Delete.
17106	(linux_wait_1): Don't call them.
17107	* server.c (handle_v_cont): Tag all threads as want-stopped.
17108	(gdb_wants_thread_stopped): Fix comments.  Tag the thread that
17109	stopped as "client-wants-stopped".
17110
171112010-07-31  Pedro Alves  <pedro@codesourcery.com>
17112
17113	* Makefile.in (signals_h): New.
17114	(server_h): Depend on it.
17115	(server.o): Don't depend on $(signals_def).
17116	(signals.o): Depend on $(signals_def).
17117
171182010-07-31  Jan Kratochvil  <jan.kratochvil@redhat.com>
17119
17120	* Makefile.in (signals_def): New.
17121	(server_h): Append include/gdb/signals.h and signals_def.
17122	(server.o): Append signals_def.
17123
171242010-07-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
17125
17126	* server.c (handle_target_event): Use target_signal_to_host for
17127	resume_info.sig initialization.
17128	* target.h (struct thread_resume) <sig>: New comment.
17129
171302010-07-20  Ozkan Sezer  <sezeroz@gmail.com>
17131
17132	* server.c (handle_query): strcpy() the returned string from paddress()
17133	instead of sprintf().
17134	* utils.c (paddress): Return phex_nz().
17135
171362010-07-07  Joel Brobecker  <brobecker@adacore.com>
17137
17138	* server.c (handle_v_cont): Call mourn_inferior if process
17139	just exited.
17140	(myresume): Likewise.
17141
171422010-07-01  Pedro Alves  <pedro@codesourcery.com>
17143
17144	Static tracepoints, and integration with UST.
17145
17146	* configure.ac: Handle --with-ust.  substitute ustlibs and ustinc.
17147	* mem-break.c (uninsert_all_breakpoints)
17148	(reinsert_all_breakpoints): New.
17149	* mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
17150	* tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
17151	(gdb_agent_ust_loaded, helper_thread_id)
17152	(gdb_agent_helper_thread_id): New macros.
17153	(struct ipa_sym_addresses): Add addr_ust_loaded,
17154	addr_helper_thread_id, addr_cmd_buf.
17155	(symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
17156	(in_process_agent_loaded_ust): New.
17157	(write_e_ust_not_loaded): New.
17158	(maybe_write_ipa_ust_not_loaded): New.
17159	(struct collect_static_trace_data_action): New.
17160	(enum tracepoint_type) <static_tracepoint>: New.
17161	(struct tracepoint) <handle>: Mention static tracepoints.
17162	(struct static_tracepoint_ctx): New.
17163	(CMD_BUF_SIZE): New.
17164	(add_tracepoint_action): Handle static tracepoint actions.
17165	(unprobe_marker_at): New.
17166	(clear_installed_tracepoints): Handle static tracepoints.
17167	(cmd_qtdp): Handle static tracepoints.
17168	(probe_marker_at): New.
17169	(cmd_qtstart): Handle static tracepoints.
17170	(response_tracepoint): Handle static tracepoints.
17171	(cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
17172	(handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
17173	(get_context_regcache): Handle static tracepoints.
17174	(do_action_at_tracepoint): Handle static tracepoint actions.
17175	(traceframe_find_block_type): Handle static trace data blocks.
17176	(traceframe_read_sdata): New.
17177	(download_tracepoints): Download static tracepoint actions.
17178	[HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
17179	(GDB_PROBE_NAME): New.
17180	(ust_ops): New.
17181	(GET_UST_SYM): New.
17182	(USTF): New.
17183	(dlsym_ust): New.
17184	(ust_marker_to_static_tracepoint): New.
17185	(gdb_probe): New.
17186	(collect_ust_data_at_tracepoint): New.
17187	(gdb_ust_probe): New.
17188	(UNIX_PATH_MAX, SOCK_DIR): New.
17189	(gdb_ust_connect_sync_socket): New.
17190	(resume_thread, stop_thread): New.
17191	(run_inferior_command): New.
17192	(init_named_socket): New.
17193	(gdb_ust_socket_init): New.
17194	(cstr_to_hexstr): New.
17195	(next_st): New.
17196	(first_marker, next_marker): New.
17197	(response_ust_marker): New.
17198	(cmd_qtfstm, cmd_qtsstm): New.
17199	(unprobe_marker_at, probe_marker_at): New.
17200	(cmd_qtstmat, gdb_ust_thread): New.
17201	(gdb_ust_init): New.
17202	(initialize_tracepoint_ftlib): Call gdb_ust_init.
17203	* linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
17204	(ST_REGENTRY): New.
17205	(x86_64_st_collect_regmap): New.
17206	(X86_64_NUM_ST_COLLECT_GREGS): New.
17207	(AMD64_RIP_REGNUM): New.
17208	(supply_static_tracepoint_registers): New.
17209	* linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
17210	(ST_REGENTRY): New.
17211	(i386_st_collect_regmap): New.
17212	(i386_NUM_ST_COLLECT_GREGS): New.
17213	(supply_static_tracepoint_registers): New.
17214	* server.c (handle_query): Handle qXfer:statictrace:read.
17215	<qSupported>: Report support for StaticTracepoints, and
17216	qXfer:statictrace:read features.
17217	* server.h (traceframe_read_sdata)
17218	(supply_static_tracepoint_registers): Declare.
17219	* remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
17220	(unpack_varlen_hex): Include in IPA build.
17221	* Makefile.in (ustlibs, ustinc): New.
17222	(IPA_OBJS): Add remote-utils-ipa.o.
17223	($(IPA_LIB)): Link -ldl and -lpthread.
17224	(UST_CFLAGS): New.
17225	(IPAGENT_CFLAGS): Add UST_CFLAGS.
17226	* config.in, configure: Regenerate.
17227
172282010-06-20  Ian Lance Taylor  <iant@google.com>
17229	    Pedro Alves  <pedro@codesourcery.com>
17230
17231	* linux-x86-low.c (always_true): Delete.
17232	(EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
17233	trying to fool the compiler with always_true.
17234
172352010-06-20  Pedro Alves  <pedro@codesourcery.com>
17236
17237	* tracepoint.c (condition_true_at_tracepoint): Don't run compiled
17238	conditions in gdbserver.
17239
172402010-06-19  Ulrich Weigand  <uweigand@de.ibm.com>
17241
17242	* spu-low.c (spu_read_memory): Wrap around local store limit.
17243	(spu_write_memory): Likewise.
17244
172452010-06-15  Pedro Alves  <pedro@codesourcery.com>
17246
17247	* linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
17248	(i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
17249	LONGEST uses.
17250	* server.h (struct emit_ops): Replace int64_t uses with LONGEST
17251	uses.
17252	* tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
17253	uses with LONGEST uses.
17254
172552010-06-14  Stan Shebs  <stan@codesourcery.com>
17256	    Pedro Alves  <pedro@codesourcery.com>
17257
17258	Bytecode compiler.
17259
17260	* linux-x86-low.c: Include limits.h.
17261	(add_insns): New.
17262	(always_true): New.
17263	(EMIT_ASM): New.
17264	(EMIT_ASM32): New.
17265	(amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
17266	(amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
17267	(amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
17268	(amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
17269	(amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
17270	(amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
17271	(amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
17272	(amd64_emit_const, amd64_emit_call, amd64_emit_reg)
17273	(amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
17274	(amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
17275	(amd64_emit_void_call_2): New.
17276	(amd64_emit_ops): New.
17277	(i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
17278	(i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
17279	(i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
17280	(i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
17281	(i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
17282	(i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
17283	(i386_emit_goto, i386_write_goto_address, i386_emit_const)
17284	(i386_emit_call, i386_emit_reg, i386_emit_pop)
17285	(i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
17286	(i386_emit_stack_adjust, i386_emit_int_call_1)
17287	(i386_emit_void_call_2): New.
17288	(i386_emit_ops): New.
17289	(x86_emit_ops): New.
17290	(the_low_target): Install x86_emit_ops.
17291	* server.h (struct emit_ops): New.
17292	(get_raw_reg_func_addr): Declare.
17293	(current_insn_ptr, emit_error): Declare.
17294	* tracepoint.c (get_raw_reg, get_trace_state_variable_value)
17295	(set_trace_state_variable_value): New defines.
17296	(struct ipa_sym_addresses): New fields addr_get_raw_reg,
17297	addr_get_trace_state_variable_value and
17298	addr_set_trace_state_variable_value.
17299	(symbol_list): New fields for get_raw_reg,
17300	get_trace_state_variable_value and set_trace_state_variable_value.
17301	(condfn): New typedef.
17302	(struct tracepoint): New field `compiled_cond'.
17303	(do_action_at_tracepoint): Clear compiled_cond.
17304	(get_trace_state_variable_value, set_trace_state_variable_value):
17305	Export in the IPA.
17306	(condition_true_at_tracepoint): If there's a compiled condition,
17307	run that.
17308	(current_insn_ptr, emit_error): New globals.
17309	(struct bytecode_address): New.
17310	(get_raw_reg_func_addr): New.
17311	(emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
17312	(emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
17313	(emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
17314	(emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
17315	(emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
17316	(emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
17317	(emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
17318	(compile_tracepoint_condition, compile_bytecodes): New.
17319	* target.h (emit_ops): Forward declare.
17320	(struct target_ops): New field emit_ops.
17321	(target_emit_ops): New.
17322	* linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
17323	* linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
17324	* linux-low.c (linux_emit_ops): New.
17325	(linux_target_ops): Install it.
17326	* linux-low.h (struct linux_target_ops): New field emit_ops.
17327
173282010-06-14  Ulrich Weigand  <uweigand@de.ibm.com>
17329
17330	* linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
17331	* linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
17332
173332010-06-01  Pedro Alves  <pedro@codesourcery.com>
17334	    Stan Shebs  <stan@codesourcery.com>
17335
17336	* Makefile.in (IPA_DEPFILES, extra_libraries): New.
17337	(all): Depend on $(extra_libraries).
17338	(install-only): Install the IPA.
17339	(IPA_OBJS, IPA_LIB): New.
17340	(clean): Remove the IPA lib.
17341	(IPAGENT_CFLAGS): New.
17342	(tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
17343	(regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
17344	(linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
17345	* linux-amd64-ipa.c, linux-i386-ipa.c: New files.
17346	* configure.ac: Check for atomic builtins support in the compiler.
17347	(IPA_DEPFILES, extra_libraries): Define.
17348	* configure.srv (ipa_obj): Add description.
17349	(ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
17350	(i[34567]86-*-linux*): Set ipa_obj.
17351	(x86_64-*-linux*): Set ipa_obj.
17352	* linux-low.c (stabilizing_threads): New.
17353	(supports_fast_tracepoints): New.
17354	(linux_detach): Stabilize threads before detaching.
17355	(handle_tracepoints): Handle internal tracing breakpoints.  Assert
17356	the lwp is either not stabilizing, or is moving out of a jump pad.
17357	(linux_fast_tracepoint_collecting): New.
17358	(maybe_move_out_of_jump_pad): New.
17359	(enqueue_one_deferred_signal): New.
17360	(dequeue_one_deferred_signal): New.
17361	(linux_wait_for_event_1): If moving out of a jump pad, defer
17362	pending signals to later.
17363	(linux_stabilize_threads): New.
17364	(linux_wait_1): Check if threads need moving out of jump pads, and
17365	do it if so.
17366	(stuck_in_jump_pad_callback): New.
17367	(move_out_of_jump_pad_callback): New.
17368	(lwp_running): New.
17369	(linux_resume_one_lwp): Handle moving out of jump pads.
17370	(linux_set_resume_request): Dequeue deferred signals.
17371	(need_step_over_p): Also step over fast tracepoint jumps.
17372	(start_step_over): Also uninsert fast tracepoint jumps.
17373	(finish_step_over): Also reinsert fast tracepoint jumps.
17374	(linux_install_fast_tracepoint_jump): New.
17375	(linux_target_ops): Install linux_stabilize_threads and
17376	linux_install_fast_tracepoint_jump_pad.
17377	* linux-low.h (linux_target_ops) <get_thread_area,
17378	install_fast_tracepoint_jump_pad>: New fields.
17379	(struct lwp_info) <collecting_fast_tracepoint,
17380	pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
17381	(linux_get_thread_area): Declare.
17382	* linux-x86-low.c (jump_insn): New.
17383	(x86_get_thread_area): New.
17384	(append_insns): New.
17385	(push_opcode): New.
17386	(amd64_install_fast_tracepoint_jump_pad): New.
17387	(i386_install_fast_tracepoint_jump_pad): New.
17388	(x86_install_fast_tracepoint_jump_pad): New.
17389	(the_low_target): Install x86_get_thread_area and
17390	x86_install_fast_tracepoint_jump_pad.
17391	* mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
17392	(struct fast_tracepoint_jump): New.
17393	(fast_tracepoint_jump_insn): New.
17394	(fast_tracepoint_jump_shadow): New.
17395	(find_fast_tracepoint_jump_at): New.
17396	(fast_tracepoint_jump_here): New.
17397	(delete_fast_tracepoint_jump): New.
17398	(set_fast_tracepoint_jump): New.
17399	(uninsert_fast_tracepoint_jumps_at): New.
17400	(reinsert_fast_tracepoint_jumps_at): New.
17401	(set_breakpoint_at): Use write_inferior_memory.
17402	(uninsert_raw_breakpoint): Use write_inferior_memory.
17403	(check_mem_read): Mask out fast tracepoint jumps.
17404	(check_mem_write): Mask out fast tracepoint jumps.
17405	* mem-break.h (struct fast_tracepoint_jump): Forward declare.
17406	(set_fast_tracepoint_jump): Declare.
17407	(delete_fast_tracepoint_jump)
17408	(fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
17409	(reinsert_fast_tracepoint_jumps_at): Declare.
17410	* regcache.c: Don't compile many functions when building the
17411	in-process agent library.
17412	(init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
17413	the register buffer in the heap.
17414	(free_register_cache): If the register buffer isn't owned by the
17415	regcache, don't free it.
17416	(set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
17417	pre-existing register caches.
17418	* remote-utils.c (convert_int_to_ascii): Constify `from' parameter
17419	type.
17420	(convert_ascii_to_int): : Constify `from' parameter type.
17421	(decode_M_packet, decode_X_packet): Replace the `to' parameter by
17422	a `to_p' pointer to pointer parameter.  If TO_P is NULL, malloc
17423	the needed buffer in-place.
17424	(relocate_instruction): New.
17425	* server.c (handle_query) <qSymbols>: If the target supports
17426	tracepoints, give it a chance of looking up symbols.  Report
17427	support for fast tracepoints.
17428	(handle_status): Stabilize threads.
17429	(process_serial_event): Adjust.
17430	* server.h (struct fast_tracepoint_jump): Forward declare.
17431	(struct process_info) <fast_tracepoint_jumps>: New field.
17432	(convert_ascii_to_int, convert_int_to_ascii): Adjust.
17433	(decode_X_packet, decode_M_packet): Adjust.
17434	(relocate_instruction): Declare.
17435	(in_process_agent_loaded): Declare.
17436	(tracepoint_look_up_symbols): Declare.
17437	(struct fast_tpoint_collect_status): Declare.
17438	(fast_tracepoint_collecting): Declare.
17439	(force_unlock_trace_buffer): Declare.
17440	(handle_tracepoint_bkpts): Declare.
17441	(initialize_low_tracepoint)
17442	(supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
17443	* target.h (struct target_ops) <stabilize_threads,
17444	install_fast_tracepoint_jump_pad>: New fields.
17445	(stabilize_threads, install_fast_tracepoint_jump_pad): New.
17446	* tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
17447	[HAVE_STDINT_H]: Include stdint.h.
17448	(trace_debug_1): Rename to ...
17449	(trace_vdebug): ... this.
17450	(trace_debug): Rename to ...
17451	(trace_debug_1): ... this.  Add `level' parameter.
17452	(trace_debug): New.
17453	(ATTR_USED, ATTR_NOINLINE): New.
17454	(IP_AGENT_EXPORT): New.
17455	(gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
17456	(collecting, gdb_collect, stop_tracing, flush_trace_buffer)
17457	(about_to_request_buffer_space, trace_buffer_is_full)
17458	(stopping_tracepoint, expr_eval_result, error_tracepoint)
17459	(tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
17460	(trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
17461	(traceframe_write_count, traceframes_created)
17462	(trace_state_variables)
17463	New renaming defines.
17464	(struct ipa_sym_addresses): New.
17465	(STRINGIZE_1, STRINGIZE, IPA_SYM): New.
17466	(symbol_list): New.
17467	(ipa_sym_addrs): New.
17468	(all_tracepoint_symbols_looked_up): New.
17469	(in_process_agent_loaded): New.
17470	(write_e_ipa_not_loaded): New.
17471	(maybe_write_ipa_not_loaded): New.
17472	(tracepoint_look_up_symbols): New.
17473	(debug_threads) [IN_PROCESS_AGENT]: New.
17474	(read_inferior_memory) [IN_PROCESS_AGENT]: New.
17475	(UNKNOWN_SIDE_EFFECTS): New.
17476	(stop_tracing): New.
17477	(flush_trace_buffer): New.
17478	(stop_tracing_bkpt): New.
17479	(flush_trace_buffer_bkpt): New.
17480	(read_inferior_integer): New.
17481	(read_inferior_uinteger): New.
17482	(read_inferior_data_pointer): New.
17483	(write_inferior_data_pointer): New.
17484	(write_inferior_integer): New.
17485	(write_inferior_uinteger): New.
17486	(struct collect_static_trace_data_action): Delete.
17487	(enum tracepoint_type): New.
17488	(struct tracepoint) <type>: New field `type'.
17489	<actions_str, step_actions, step_actions_str>: Only include in
17490	GDBserver.
17491	<orig_size, obj_addr_on_target, adjusted_insn_addr>
17492	<adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
17493	(tracepoints): Use IP_AGENT_EXPORT.
17494	(last_tracepoint): Don't include in the IPA.
17495	(stopping_tracepoint): Use IP_AGENT_EXPORT.
17496	(trace_buffer_is_full): Use IP_AGENT_EXPORT.
17497	(alloced_trace_state_variables): New.
17498	(trace_state_variables): Use IP_AGENT_EXPORT.
17499	(traceframe_t): Delete unused variable.
17500	(circular_trace_buffer): Don't include in the IPA.
17501	(trace_buffer_start): Delete.
17502	(struct trace_buffer_control): New.
17503	(trace_buffer_free): Delete.
17504	(struct ipa_trace_buffer_control): New.
17505	(GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
17506	(GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
17507	New.
17508	(trace_buffer_ctrl): New.
17509	(TRACE_BUFFER_CTRL_CURR): New.
17510	(trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
17511	Reimplement as macros.
17512	(trace_buffer_wrap): Delete.
17513	(traceframe_write_count, traceframe_read_count)
17514	(traceframes_created, tracing): Use IP_AGENT_EXPORT.
17515	(struct tracepoint_hit_ctx) <type>: New field.
17516	(struct fast_tracepoint_ctx): New.
17517	(memory_barrier): New.
17518	(cmpxchg): New.
17519	(record_tracepoint_error): Update atomically in the IPA.
17520	(clear_inferior_trace_buffer): New.
17521	(about_to_request_buffer_space): New.
17522	(trace_buffer_alloc): Handle GDBserver and inferior simulatenous
17523	updating the same buffer.
17524	(add_tracepoint): Default the tracepoint's type to trap
17525	tracepoint, and orig_size to -1.
17526	(get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
17527	internal variables.
17528	(create_trace_state_variable): New parameter `gdb'.  Handle it.
17529	(clear_installed_tracepoints): Clear fast tracepoint jumps.
17530	(cmd_qtdp): Handle fast tracepoints.
17531	(cmd_qtdv): Adjust.
17532	(max_jump_pad_size): New.
17533	(gdb_jump_pad_head): New.
17534	(get_jump_space_head): New.
17535	(claim_jump_space): New.
17536	(sort_tracepoints): New.
17537	(MAX_JUMP_SIZE): New.
17538	(cmd_qtstart): Handle fast tracepoints.  Sync tracepoints with the
17539	IPA.
17540	(stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
17541	support.  Upload fast traceframes, and delete internal IPA
17542	breakpoints.
17543	(stop_tracing_handler): New.
17544	(flush_trace_buffer_handler): New.
17545	(cmd_qtstop): Upload fast tracepoints.
17546	(response_tracepoint): Handle fast tracepoints.
17547	(tracepoint_finished_step): Upload fast traceframes.  Set the
17548	tracepoint hit context's tracepoint type.
17549	(handle_tracepoint_bkpts): New.
17550	(tracepoint_was_hit): Set the tracepoint hit context's tracepoint
17551	type.  Add comment about fast tracepoints.
17552	(collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
17553	non-existing action_str field.
17554	(get_context_regcache): Handle fast tracepoints.
17555	(do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
17556	to the regcache.
17557	(fast_tracepoint_from_jump_pad_address): New.
17558	(fast_tracepoint_from_ipa_tpoint_address): New.
17559	(collecting_t): New.
17560	(force_unlock_trace_buffer): New.
17561	(fast_tracepoint_collecting): New.
17562	(collecting): New.
17563	(gdb_collect): New.
17564	(write_inferior_data_ptr): New.
17565	(target_tp_heap): New.
17566	(target_malloc): New.
17567	(download_agent_expr): New.
17568	(UALIGN): New.
17569	(download_tracepoints): New.
17570	(download_trace_state_variables): New.
17571	(upload_fast_traceframes): New.
17572	(IPA_FIRST_TRACEFRAME): New.
17573	(IPA_NEXT_TRACEFRAME_1): New.
17574	(IPA_NEXT_TRACEFRAME): New.
17575	[IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
17576	[IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
17577	(gdb_jump_pad_buffer_end): New.
17578	[IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
17579	(initialize_tracepoint): Adjust.
17580	[IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
17581	buffer.  Initialize the low module.
17582	* utils.c (PREFIX, TOOLNAME): New.
17583	(malloc_failure): Use PREFIX.
17584	(error): In the IPA, an error causes an exit.
17585	(fatal, warning): Use PREFIX.
17586	(internal_error): Use TOOLNAME.
17587	(NUMCELLS): Increase to 10.
17588	* configure, config.in: Regenerate.
17589
175902010-06-01  Pedro Alves  <pedro@codesourcery.com>
17591
17592	* server.c (handle_query) <qSupported>: Do two passes over the
17593	qSupported string to avoid nesting strtok.
17594
175952010-05-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
17596
17597	* Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
17598	(CDEPS): New.
17599	* configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping.  Test also
17600	-Wl,--dynamic-list.
17601	* configure: Regenerate.
17602	* proc-service.list: New.
17603
176042010-05-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
17605
17606	* linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
17607	New comment.
17608
176092010-05-26  Ozkan Sezer  <sezeroz@gmail.com>
17610
17611	* gdbreplay.c (remote_open): Check error return from socket() call by
17612	its equality to -1 not by it being negative.
17613	* remote-utils.c (remote_open): Likewise.
17614
176152010-05-23  Pedro Alves  <pedro@codesourcery.com>
17616
17617	* config.h: Regenerate.
17618
176192010-05-19  Maxim Kuvyrkov  <maxim@codesourcery.com>
17620
17621	* linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
17622	doesn't provide PTRACE_GET_THREAD_AREA.
17623
176242010-05-19  Maxim Kuvyrkov  <maxim@codesourcery.com>
17625
17626	* linux-m68k-low.c: Include <asm/ptrace.h>
17627	(ps_get_thread_area): Implement.
17628
176292010-05-03  Doug Evans  <dje@google.com>
17630
17631	* event-loop.c (struct callback_event): New struct.
17632	(callback_list): New global.
17633	(append_callback_event, delete_callback_event): New functions.
17634	(process_callback): New function.
17635	(start_event_loop): Call it.
17636	* remote-utils.c (NOT_SCHEDULED): Define.
17637	(readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
17638	moved out of readchar.
17639	(readchar): Rewrite.  Call reschedule before returning.
17640	(reset_readchar): New function.
17641	(remote_close): Call it.
17642	(process_remaining, reschedule): New functions.
17643	* server.h (callback_handler_func): New typedef.
17644	(append_callback_event, delete_callback_event): Declare.
17645
176462010-05-03  Pedro Alves  <pedro@codesourcery.com>
17647
17648	* proc-service.c (ps_pglobal_lookup): Use
17649	thread_db_look_up_one_symbol.
17650	* remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
17651	parameter.  Use it instead of all_symbols_looked_up.
17652	* server.h (struct process_info) <all_symbols_looked_up>: Delete
17653	field.
17654	(all_symbols_looked_up): Don't declare.
17655	(look_up_one_symbol): Add new `may_ask_gdb' parameter.
17656	* thread-db.c (struct thread_db) <all_symbols_looked_up>: New
17657	field.
17658	(thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
17659	Set all_symbols_looked_up here.
17660	(thread_db_look_up_one_symbol): New.
17661	(thread_db_get_tls_address): Adjust.
17662	(thread_db_load_search, try_thread_db_load_1): Always allocate the
17663	thread_db object on the heap, and tentatively set it in the
17664	process structure.
17665	(thread_db_init): Don't set all_symbols_looked_up here.
17666	* linux-low.h (thread_db_look_up_one_symbol): Declare.
17667
176682010-05-03  Pedro Alves  <pedro@codesourcery.com>
17669
17670	* linux-low.c (linux_kill, linux_detach): Adjust.
17671	(status_pending_p_callback): Remove redundant statement.  Check
17672	for !TARGET_WAITIKIND_IGNORE, instead of
17673	TARGET_WAITKIND_STOPPED.
17674	(handle_tracepoints): Make sure LWP is locked.  Adjust.
17675	(linux_wait_for_event_1): Adjust.
17676	(linux_cancel_breakpoints): New.
17677	(unsuspend_one_lwp): New.
17678	(unsuspend_all_lwps): New.
17679	(linux_wait_1): If finishing a step-over, unsuspend all lwps.
17680	(send_sigstop_callback): Change return type to int, add new
17681	`except' parameter and handle it.
17682	(suspend_and_send_sigstop_callback): New.
17683	(stop_all_lwps): Add new `suspend' and `expect' parameters, and
17684	pass them down.  If SUSPEND, also increment the lwp's suspend
17685	count.
17686	(linux_resume_one_lwp): Add notice about resuming a suspended LWP.
17687	(need_step_over_p): Don't consider suspended LWPs.
17688	(start_step_over): Adjust.
17689	(proceed_one_lwp): Change return type to int, add new `except'
17690	parameter and handle it.
17691	(unsuspend_and_proceed_one_lwp): New.
17692	(proceed_all_lwps): Use find_inferior instead of
17693	for_each_inferior.
17694	(unstop_all_lwps): Add `unsuspend' parameter.  If UNSUSPEND, them
17695	also decrement the suspend count of LWPs.  Pass `except' down,
17696	instead of hacking its suspend count.
17697	(linux_pause_all): Add `freeze' parameter.  Adjust.
17698	(linux_unpause_all): New.
17699	(linux_target_ops): Install linux_unpause_all.
17700	* server.c (handle_status): Adjust.
17701	* target.h (struct target_ops): New fields `unpause_all' and
17702	`cancel_breakpoints'.  Add new parameter to `pause_all'.
17703	(pause_all): Add new `freeze' parameter.
17704	(unpause_all): New.
17705	(cancel_breakpoints): New.
17706	* tracepoint.c (clear_installed_tracepoints): Pause threads, and
17707	cancel breakpoints.
17708	(cmd_qtstart): Pause threads.
17709	(stop_tracing): Pause threads, and cancel breakpoints.
17710	* win32-low.c (win32_target_ops): Adjust.
17711
177122010-05-03  Pedro Alves  <pedro@codesourcery.com>
17713
17714	* linux-low.c (linux_wait_for_event_1): Move passing the signal to
17715	the inferior right away from here...
17716	(linux_wait_1): ... to here, and adjust to check the thread's
17717	last_resume_kind instead of the lwp's step or stop_expected flags.
17718
177192010-05-02  Pedro Alves  <pedro@codesourcery.com>
17720
17721	* README: Use consistent `GDB' and `GDBserver' spellings.
17722
177232010-05-02  Pedro Alves  <pedro@codesourcery.com>
17724
17725	* linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
17726	(linux_kill): Stop all lwps here.  Don't delete the main lwp here.
17727	(linux_detach_one_lwp): Assume the lwp is stopped.
17728	(any_thread_of): Delete.
17729	(linux_detach): Stop all lwps here.  Don't blindly delete all
17730	breakpoints.
17731	(delete_lwp_callback): New.
17732	(linux_mourn): Delete all lwps of the process that is gone.
17733	(linux_wait_1): Don't delete the last lwp of the process here.
17734	* mem-break.h (mark_breakpoints_out): Declare.
17735	* mem-break.c (mark_breakpoints_out): New.
17736	(free_all_breakpoints): Use it.
17737	* server.c (handle_target_event): If the process is gone, mark
17738	breakpoints out.
17739	* thread-db.c (struct thread_db) <create_bp>: New field.
17740	(thread_db_enable_reporting): Fix prototype.  Store a thread event
17741	breakpoint reference in the thread_db struct.
17742	(thread_db_load_search): Clear the thread_db object.
17743	(try_thread_db_load_1): Ditto.
17744	(switch_to_process): New.
17745	(disable_thread_event_reporting): Use it.
17746	(remove_thread_event_breakpoints): New.
17747	(thread_db_detach, thread_db_mourn): Use it.
17748
177492010-05-01  Pedro Alves  <pedro@codesourcery.com>
17750
17751	* linux-low.c (linux_enable_event_reporting): New.
17752	(linux_wait_for_event_1, handle_extended_wait): Use it.
17753
177542010-04-30  Pedro Alves  <pedro@codesourcery.com>
17755
17756	* linux-low.c (linux_kill_one_lwp, linux_kill)
17757	(linux_detach_one_lwp): Adjust to send_sigstop interface change.
17758	(send_sigstop): Take an lwp_info as parameter instead.  Queue a
17759	SIGSTOP even if the LWP is stopped.
17760	(send_sigstop_callback): New.
17761	(stop_all_lwps): Use send_sigstop_callback instead.
17762	(linux_resume_one_thread): Adjust.
17763	(proceed_one_lwp): Still proceed an LWP that the client has
17764	requested to stop, if we haven't reported it as stopped yet.  Make
17765	sure that LWPs the client want stopped, have a pending SIGSTOP.
17766
177672010-04-26  Doug Evans  <dje@google.com>
17768
17769	* server.c (handle_general_set): Make static.
17770
17771	* remote-utils.c (putpkt_binary_1): Call readchar instead of read.
17772	Print received char after testing for error/eof instead of before.
17773	(input_interrupt): Tweak comment.
17774
177752010-04-23  Doug Evans  <dje@google.com>
17776
17777	* server.c (start_inferior): Print inferior argv if --debug.
17778
177792010-04-21  Aleksandar Ristovski  <aristovski@qnx.com>
17780
17781	* Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
17782	* nto-x86-low.c: Include server.h
17783
177842010-04-20  Pierre Muller  <muller@ics.u-strasbg.fr>
17785
17786	* win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
17787	be consistent with other sources of this directory.
17788	(init_registers_amd64): Correct name of source file of this function
17789	in the comment.
17790
177912010-04-19  Pierre Muller  <muller@ics.u-strasbg.fr>
17792
17793	* configure.srv (x86_64-*-mingw*): New configuration for Windows
17794	64-bit executables.
17795
177962010-04-19  Pierre Muller  <muller@ics.u-strasbg.fr>
17797
17798	* win32-i386-low.c: Add 64-bit support.
17799	(CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
17800	(init_registers_amd64): Declare.
17801	(mappings): Add 64-bit version of array.
17802	(init_windows_x86): New function.
17803	(the_low_target): Change init_arch field to init_windows_x86.
17804
178052010-04-19  Pierre Muller  <muller@ics.u-strasbg.fr>
17806
17807	* win32-low.c: Adapt to support also 64-bit architecture.
17808	(child_xfer_memory): Use uintptr_t type for local variable `addr'.
17809	(get_image_name): Use SIZE_T type for local variable `done'.
17810	(psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
17811	(toolhelp_get_dll_name): Idem.
17812	(handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
17813	Use uintptr_t typecast to avoid warning.
17814	(handle_unload_dll): Use uintptr_t typecast to avoid warning.
17815	(handle_exception): Use phex_nz to avoid warning.
17816	(win32_wait): Remove unused local variable `process'.
17817
178182010-04-19  Pierre Muller  <muller@ics.u-strasbg.fr>
17819
17820	* configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
17821	`amd64-avx.o'.
17822
178232010-04-17  Pierre Muller  <muller@ics.u-strasbg.fr>
17824
17825	* configure.ac: Use `ws2_32' library for srv_mingw.
17826	* configure: Regenerate.
17827	* gdbreplay.c: Include winsock2.h instead of winsock.h.
17828	* remote-utils.c: Likewise.
17829
178302010-04-17  H.J. Lu  <hongjiu.lu@intel.com>
17831
17832	* linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
17833	if __x86_64__ is defined.
17834
178352010-04-16  Pierre Muller  <muller@ics.u-strasbg.fr>
17836
17837	* configure: Regenerate.
17838
178392010-04-16  Pierre Muller  <muller@ics.u-strasbg.fr>
17840
17841	* server.c (handle_query): Handle 'qGetTIBAddr' query.
17842	* target.h (target_ops): New get_tib_address field.
17843	* win32-low.h (win32_thread_info): Add thread_local_base field.
17844	* win32-low.c (child_add_thread): Add tlb argument.
17845	Set thread_local_base field to TLB.
17846	(get_child_debug_event): Adapt to child_add_thread change.
17847	(win32_get_tib_address): New function.
17848	(win32_target_ops): Set get_tib_address field to
17849	win32_get_tib_address.
17850	* linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
17851
178522010-04-12  Pedro Alves  <pedro@codesourcery.com>
17853
17854	* linux-low.c (linux_mourn): Also remove the process.
17855	* server.c (handle_target_event): Don't remove the process here.
17856	* nto-low.c (nto_mourn): New.
17857	(nto_target_ops): Install it.
17858	* spu-low.c (spu_mourn): New.
17859	(spu_target_ops): Install it.
17860	* win32-low.c (win32_mourn): New.
17861	(win32_target_ops): Install it.
17862
178632010-04-12  Pedro Alves  <pedro@codesourcery.com>
17864
17865	* server.h (buffer_xml_printf): Remove redundant `;'.
17866
178672010-04-12  Pedro Alves  <pedro@codesourcery.com>
17868
17869	* regcache.c (set_register_cache): Invalidate regcaches before
17870	changing the register cache layout.
17871	(regcache_invalidate_one): Allow a NULL regcache.
17872	* linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
17873	regcaches before changing the register cache layout or the target
17874	regsets.
17875
178762010-04-12  H.J. Lu  <hongjiu.lu@intel.com>
17877
17878	* linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
17879	variable warning on Linux/x86-64.
17880
178812010-04-11  Pedro Alves  <pedro@codesourcery.com>
17882
17883	GDBserver disconnected tracing support.
17884
17885	* linux-low.c (linux_remove_process): Delete.
17886	(add_lwp): Don't set last_resume_kind here.
17887	(linux_kill): Use `mourn'.
17888	(linux_detach): Use `thread_db_detach', and `mourn'.
17889	(linux_mourn): New.
17890	(linux_attach_lwp_1): Adjust comment.
17891	(linux_attach): last_resume_kind moved the thread_info; adjust.
17892	(status_pending_p_callback): Adjust.
17893	(linux_wait_for_event_1): Adjust.
17894	(count_events_callback, select_singlestep_lwp_callback)
17895	(select_event_lwp_callback, cancel_breakpoints_callback)
17896	(db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
17897	(proceed_one_lwp): Adjust.
17898	(linux_async): Add debug output.
17899	(linux_thread_stopped): New.
17900	(linux_pause_all): New.
17901	(linux_target_ops): Install linux_mourn, linux_thread_stopped and
17902	linux_pause_all.
17903	* linux-low.h (struct lwp_info): Delete last_resume_kind field.
17904	(thread_db_free): Delete declaration.
17905	(thread_db_detach, thread_db_mourn): Declare.
17906	* thread-db.c (thread_db_init): Use thread_db_mourn.
17907	(thread_db_free): Delete, split in two.
17908	(disable_thread_event_reporting): New.
17909	(thread_db_detach): New.
17910	(thread_db_mourn): New.
17911
17912	* server.h (struct thread_info) <last_resume_kind>: New field.
17913	<attached>: Add comment.
17914	<gdb_detached>: New field.
17915	(handler_func): Change return type to int.
17916	(handle_serial_event, handle_target_event): Ditto.
17917	(gdb_connected): Declare.
17918	(tracing): Delete.
17919	(disconnected_tracing): Declare.
17920	(stop_tracing): Declare.
17921
17922	* server.c (handle_query) <qSupported>: Report support for
17923	disconnected tracing.
17924	(queue_stop_reply_callback): Account for running threads.
17925	(gdb_wants_thread_stopped): New.
17926	(gdb_wants_all_threads_stopped): New.
17927	(gdb_reattached_process): New.
17928	(handle_status): Clear the `gdb_detached' flag of all processes.
17929	In all-stop, stop all threads.
17930	(main): Be sure to leave tfind mode.  Handle disconnected tracing.
17931	(process_serial_event): If the remote connection breaks, or if an
17932	exit was forced with "monitor exit", force an event loop exit.
17933	Handle disconnected tracing on detach.
17934	(handle_serial_event): Adjust.
17935	(handle_target_event): If GDB isn't connected, forward events back
17936	to the inferior, unless the last process exited, in which case,
17937	exit gdbserver.  Adjust interface.
17938
17939	* remote-utils.c (remote_open): Don't block in accept.  Instead
17940	register an event loop source on the listen socket file
17941	descriptor.  Refactor bits into ...
17942	(listen_desc): ... this new global.
17943	(gdb_connected): ... this new function.
17944	(enable_async_notification): ... this new function.
17945	(handle_accept_event): ... this new function.
17946	(remote_close): Clear remote_desc.
17947
17948	* inferiors.c (add_thread): Set the new thread's last_resume_kind.
17949
17950	* target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
17951	New fields.
17952	(mourn_inferior): Define.
17953	(target_process_qsupported): Avoid the dangling else problem.
17954	(thread_stopped): Define.
17955	(pause_all): Define.
17956	(target_waitstatus_to_string): Declare.
17957	* target.c (target_waitstatus_to_string): New.
17958
17959	* tracepoint.c (tracing): Make extern.
17960	(disconnected_tracing): New.
17961	(stop_tracing): Make extern.  Handle tracing stops due to GDB
17962	disconnecting.
17963	(cmd_qtdisconnected): New.
17964	(cmd_qtstatus): Report disconnected tracing status in trace reply.
17965	(handle_tracepoint_general_set): Handle QTDisconnected.
17966
17967	* event-loop.c (event_handler_func): Change return type to int.
17968	(process_event): Bail out if the event handler wants the event
17969	loop to stop.
17970	(handle_file_event): Ditto.
17971	(start_event_loop): Bail out if the event handler wants the event
17972	loop to stop.
17973
17974	* nto-low.c (nto_target_ops): Adjust.
17975	* spu-low.c (spu_wait): Don't remove the process here.
17976	(spu_target_ops): Adjust.
17977	* win32-low.c (win32_wait): Don't remove the process here.
17978	(win32_target_ops): Adjust.
17979
179802010-04-11  Pedro Alves  <pedro@codesourcery.com>
17981
17982	* regcache.c (realloc_register_cache): Invalidate inferior's
17983	regcache before recreating it.
17984
179852010-04-09  Pedro Alves  <pedro@codesourcery.com>
17986
17987	* tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
17988
179892010-04-09  Stan Shebs  <stan@codesourcery.com>
17990	    Pedro Alves  <pedro@codesourcery.com>
17991
17992	* server.h (LONGEST): New.
17993	(struct thread_info) <while_stepping>: New field.
17994	(unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
17995	Declare.
17996	(initialize_tracepoint, handle_tracepoint_general_set)
17997	(handle_tracepoint_query, tracepoint_finished_step)
17998	(tracepoint_was_hit, release_while_stepping_state_list):
17999	(current_traceframe): Declare.
18000	* server.c (handle_general_set): Handle tracepoint packets.
18001	(read_memory): New.
18002	(write_memory): New.
18003	(handle_search_memory_1): Use read_memory.
18004	(handle_query): Report support for conditional tracepoints, trace
18005	state variables, and tracepoint sources.  Handle tracepoint
18006	queries.
18007	(main): Initialize the tracepoints module.
18008	(process_serial_event): Handle traceframe reads/writes.
18009
18010	* linux-low.c (handle_tracepoints): New.
18011	(linux_wait_1): Call it.
18012	(linux_resume_one_lwp): Handle while-stepping.
18013	(linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
18014	(linux_target_ops): Install them.
18015	* linux-low.h (struct linux_target_ops) <supports_tracepoints>:
18016	New field.
18017	* linux-x86-low.c (x86_supports_tracepoints): New.
18018	(the_low_target). Install it.
18019
18020	* mem-break.h (delete_breakpoint): Declare.
18021	* mem-break.c (delete_breakpoint): Make external.
18022
18023	* target.h (struct target_ops): Add `supports_tracepoints',
18024	`read_pc', and `write_pc' fields.
18025	(target_supports_tracepoints): Define.
18026	* utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
18027	(phex_nz): New.
18028
18029	* regcache.h (struct regcache) <registers_owned>: New field.
18030	(init_register_cache, regcache_cpy): Declare.
18031	(regcache_read_pc, regcache_write_pc): Declare.
18032	(register_cache_size): Declare.
18033	(supply_regblock): Declare.
18034	* regcache.c (init_register_cache): New.
18035	(new_register_cache): Use it.
18036	(regcache_cpy): New.
18037	(register_cache_size): New.
18038	(supply_regblock): New.
18039	(regcache_read_pc, regcache_write_pc): New.
18040
18041	* tracepoint.c: New.
18042
18043	* Makefile.in (OBS): Add tracepoint.o.
18044	(tracepoint.o): New rule.
18045
180462010-04-08  H.J. Lu  <hongjiu.lu@intel.com>
18047
18048	* Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
18049	(i386-mmx.o): New.
18050	(i386-mmx.c): Likewise.
18051	(i386-mmx-linux.o): Likewise.
18052	(i386-mmx-linux.c): Likewise.
18053
18054	* configure.srv (srv_i386_regobj): Add i386-mmx.o.
18055	(srv_i386_linux_regobj): Add i386-mmx-linux.o.
18056	(srv_i386_xmlfiles): Add i386/i386-mmx.xml.
18057	(srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
18058
18059	* linux-x86-low.c (init_registers_i386_mmx_linux): New.
18060	(x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
18061	and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
18062
180632010-04-07  H.J. Lu  <hongjiu.lu@intel.com>
18064
18065	* Makefile.in (clean): Updated.
18066	(i386-avx.o): New.
18067	(i386-avx.c): Likewise.
18068	(i386-avx-linux.o): Likewise.
18069	(i386-avx-linux.c): Likewise.
18070	(amd64-avx.o): Likewise.
18071	(amd64-avx.c): Likewise.
18072	(amd64-avx-linux.o): Likewise.
18073	(amd64-avx-linux.c): Likewise.
18074
18075	* configure.srv (srv_i386_regobj): Add i386-avx.o.
18076	(srv_i386_linux_regobj): Add i386-avx-linux.o.
18077	(srv_amd64_regobj): Add amd64-avx.o.
18078	(srv_amd64_linux_regobj): Add amd64-avx-linux.o.
18079	(srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
18080	(srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
18081	(srv_i386_xmlfiles): Add i386/i386-avx.xml.
18082	(srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
18083	(srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
18084	(srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
18085
18086	* i387-fp.c: Include "i386-xstate.h".
18087	(i387_xsave): New.
18088	(i387_cache_to_xsave): Likewise.
18089	(i387_xsave_to_cache): Likewise.
18090	(x86_xcr0): Likewise.
18091
18092	* i387-fp.h (i387_cache_to_xsave): Likewise.
18093	(i387_xsave_to_cache): Likewise.
18094	(x86_xcr0): Likewise.
18095
18096	* linux-arm-low.c (target_regsets): Initialize nt_type to 0.
18097	* linux-crisv32-low.c (target_regsets): Likewise.
18098	* linux-m68k-low.c (target_regsets): Likewise.
18099	* linux-mips-low.c (target_regsets): Likewise.
18100	* linux-ppc-low.c (target_regsets): Likewise.
18101	* linux-s390-low.c (target_regsets): Likewise.
18102	* linux-sh-low.c (target_regsets): Likewise.
18103	* linux-sparc-low.c (target_regsets): Likewise.
18104	* linux-xtensa-low.c (target_regsets): Likewise.
18105
18106	* linux-low.c: Include <sys/uio.h>.
18107	(regsets_fetch_inferior_registers): Support nt_type.
18108	(regsets_store_inferior_registers): Likewise.
18109	(linux_process_qsupported): New.
18110	(linux_target_ops): Add linux_process_qsupported.
18111
18112	* linux-low.h (regset_info): Add nt_type.
18113	(linux_target_ops): Add process_qsupported.
18114
18115	* linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
18116	and <sys/uio.h>.
18117	(init_registers_i386_avx_linux): New.
18118	(init_registers_amd64_avx_linux): Likewise.
18119	(xmltarget_i386_linux_no_xml): Likewise.
18120	(xmltarget_amd64_linux_no_xml): Likewise.
18121	(PTRACE_GETREGSET): Likewise.
18122	(PTRACE_SETREGSET): Likewise.
18123	(x86_fill_xstateregset): Likewise.
18124	(x86_store_xstateregset): Likewise.
18125	(use_xml): Likewise.
18126	(x86_linux_update_xmltarget): Likewise.
18127	(x86_linux_process_qsupported): Likewise.
18128	(target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
18129	(x86_arch_setup): Don't call init_registers_amd64_linux nor
18130	init_registers_i386_linux here.  Call
18131	x86_linux_update_xmltarget.
18132	(the_low_target): Add x86_linux_process_qsupported.
18133
18134	* server.c (handle_query): Call target_process_qsupported.
18135
18136	* target.h (target_ops): Add process_qsupported.
18137	(target_process_qsupported): New.
18138
181392010-04-03  Pedro Alves  <pedro@codesourcery.com>
18140
18141	* inferiors.c (add_thread): Set last_status kind to
18142	TARGET_WAITKIND_IGNORE.
18143	* linux-low.c (cancel_breakpoint): Remove unnecessary regcache
18144	fetch.  Use ptid_of.  Avoid unnecessary get_lwp_thread calls.
18145	(linux_wait_1): Move `thread' local definition to block that uses
18146	it.  Don't NULL initialize `event_child'.
18147	(linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
18148	Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
18149	* linux-x86-low.c (x86_breakpoint_at): Read raw memory.
18150
181512010-04-01  Pedro Alves  <pedro@codesourcery.com>
18152
18153	* linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
18154	an extended waitstatus, or by a watchpoint.
18155	(cancel_breakpoints_callback): Don't cancel a breakpoint if the
18156	thread was stepping or has been stopped by a watchpoint.
18157
181582010-04-01  Pedro Alves  <pedro@codesourcery.com>
18159
18160	* mem-break.c (struct raw_breakpoint): New field shlib_disabled.
18161	(set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
18162	of another, then delete the previous, and validate all
18163	breakpoints.
18164	(validate_inserted_breakpoint): New.
18165	(delete_disabled_breakpoints): New.
18166	(validate_breakpoints): New.
18167	(check_mem_read): Validate breakpoints before trusting their
18168	shadow.  Delete disabled breakpoints.
18169	(check_mem_write): Validate breakpoints before trusting they
18170	should be inserted.  Delete disabled breakpoints.
18171	* mem-break.h (validate_breakpoints):
18172	* server.c (handle_query): Validate breakpoints when we see a
18173	qSymbol query.
18174
181752010-04-01  Pedro Alves  <pedro@codesourcery.com>
18176
18177	* linux-low.c (linux_wait_1): Avoid setting need_step_over is
18178	there's a GDB breakpoint at stop_pc.  Always report a trap to GDB
18179	if we could tell there's a GDB breakpoint at stop_pc.
18180	(need_step_over_p): Don't do a step over if we find a GDB
18181	breakpoint at the resume PC.
18182
18183	* mem-break.c (struct raw_breakpoint): New.
18184	(enum bkpt_type): New type `gdb_breakpoint'.
18185	(struct breakpoint): Delete the `PC', `old_data' and `inserted'
18186	fields.  New field `raw'.
18187	(find_raw_breakpoint_at): New.
18188	(set_raw_breakpoint_at): Handle refcounting.  Create a raw
18189	breakpoint instead.
18190	(set_breakpoint_at): Adjust.
18191	(delete_raw_breakpoint): New.
18192	(release_breakpoint): New.
18193	(delete_breakpoint): Rename to...
18194	(delete_breakpoint_1): ... this.  Add proc parameter.  Use
18195	release_breakpoint.  Return ENOENT.
18196	(delete_breakpoint): Reimplement.
18197	(find_breakpoint_at): Delete.
18198	(find_gdb_breakpoint_at): New.
18199	(delete_breakpoint_at): Delete.
18200	(set_gdb_breakpoint_at): New.
18201	(delete_gdb_breakpoint_at): New.
18202	(gdb_breakpoint_here): New.
18203	(set_reinsert_breakpoint): Use release_breakpoint.
18204	(uninsert_breakpoint): Rename to ...
18205	(uninsert_raw_breakpoint): ... this.
18206	(uninsert_breakpoints_at): Adjust to handle raw breakpoints.
18207	(reinsert_raw_breakpoint): Change parameter type to
18208	raw_breakpoint.
18209	(reinsert_breakpoints_at): Adjust to handle raw breakpoints
18210	instead.
18211	(check_breakpoints): Adjust.  Use release_breakpoint.
18212	(breakpoint_here): Rewrite using find_raw_breakpoint_at.
18213	(breakpoint_inserted_here): Ditto.
18214	(check_mem_read): Adjust to iterate over raw breakpoints instead.
18215	Don't trust the breakpoint's shadow if it is not inserted.
18216	(check_mem_write): Adjust to iterate over raw breakpoints instead.
18217	(delete_all_breakpoints): Adjust.
18218	(free_all_breakpoints): Mark all breakpoints as uninserted, and
18219	use delete_breakpoint_1.
18220
18221	* mem-break.h (breakpoints_supported): Delete declaration.
18222	(set_gdb_breakpoint_at): Declare.
18223	(gdb_breakpoint_here): Declare.
18224	(delete_breakpoint_at): Delete.
18225	(delete_gdb_breakpoint_at): Declare.
18226
18227	* server.h (struct raw_breakpoint): Forward declare.
18228	(struct process_info): New field `raw_breakpoints'.
18229
18230	* linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
18231	breakpoints.
18232
182332010-03-24  Pedro Alves  <pedro@codesourcery.com>
18234
18235	* linux-low.c (status_pending_p_callback): Fix comment.
18236	(linux_wait_for_event_1): Move most of the internal breakpoint
18237	handling from here...
18238	(linux_wait_1): ... to here.
18239	(count_events_callback): New.
18240	(select_singlestep_lwp_callback): New.
18241	(select_event_lwp_callback): New.
18242	(cancel_breakpoints_callback): New.
18243	(select_event_lwp): New.
18244	(linux_wait_1): Simplify internal breakpoint handling.  Give equal
18245	priority to all LWPs that have had events that should be reported
18246	to the client.  Cancel breakpoints when about to reporting the
18247	event to the client, not while stopping lwps.  No longer cancel
18248	finished single-steps here.
18249	(cancel_finished_single_step): Delete.
18250	(cancel_finished_single_steps): Delete.
18251
182522010-03-24  Pedro Alves  <pedro@codesourcery.com>
18253
18254	* mem-break.c (enum bkpt_type): New.
18255	(struct breakpoint): New field `type'.
18256	(set_breakpoint_at): Change return type to struct breakpoint
18257	pointer.  Set type to `other_breakpoint' by default.
18258	(delete_breakpoint): Rewrite, supporting more than one breakpoint
18259	in the breakpoint list.
18260	(delete_reinsert_breakpoints): Only delete reinsert breakpoints.
18261	(reinsert_breakpoint): Rename to ...
18262	(reinsert_raw_breakpoint): ... this.
18263	(reinsert_breakpoints_at): Adjust.
18264	* mem-break.h (struct breakpoint): Declare.
18265	(set_breakpoint_at): Change return type to struct breakpoint
18266	pointer.
18267
182682010-03-24  Pedro Alves  <pedro@codesourcery.com>
18269
18270	* server.c (handle_query): Assign, not compare.
18271
182722010-03-24  Pedro Alves  <pedro@codesourcery.com>
18273
18274	Teach linux gdbserver to step-over-breakpoints.
18275
18276	* linux-low.c (can_hardware_single_step): New.
18277	(supports_breakpoints): New.
18278	(handle_extended_wait): If stopping threads, read the stop pc of
18279	the new cloned LWP.
18280	(get_pc): New.
18281	(get_stop_pc): Add `lwp' parameter.  Handle it.  Bail out if the
18282	low target doesn't support retrieving the PC.
18283	(add_lwp): Set last_resume_kind to resume_continue.
18284	(linux_attach_lwp_1): Adjust comments.  Always set stop_expected.
18285	(linux_attach): Don't clear stop_expected.  Set the lwp's
18286	last_resume_kind to resume_stop.
18287	(linux_detach_one_lwp): Don't check for removed breakpoints.
18288	(check_removed_breakpoint): Delete.
18289	(status_pending_p): Rename to ...
18290	(status_pending_p_callback): ... this.  Don't check for removed
18291	breakpoints.  Don't consider threads that are stopped from GDB's
18292	perspective.
18293	(linux_wait_for_lwp): Always read the stop_pc here.
18294	(cancel_breakpoint): New.
18295	(step_over_bkpt): New global.
18296	(linux_wait_for_event_1): Implement stepping over breakpoints.
18297	(gdb_wants_lwp_stopped): New.
18298	(gdb_wants_all_stopped): New.
18299	(linux_wait_1): Tag threads as gdb-wants-stopped.  Cancel finished
18300	single-step traps here.  Store the thread's last reported target
18301	wait status.
18302	(send_sigstop): Don't clear stop_expected.  Always set it,
18303	instead.
18304	(mark_lwp_dead): Remove reference to pending_is_breakpoint.
18305	(cancel_finished_single_step): New.
18306	(cancel_finished_single_steps): New.
18307	(wait_for_sigstop): Don't cancel finished single-step traps here.
18308	(linux_resume_one_lwp): Don't check for removed breakpoints.
18309	Don't set `step' on non-hardware step archs.
18310	(linux_set_resume_request): Ignore resume_stop requests if already
18311	stopping or stopped.  Set the lwp's last_resume_kind.
18312	(resume_status_pending_p): Don't check for removed breakpoints.
18313	(need_step_over_p): New.
18314	(start_step_over): New.
18315	(finish_step_over): New.
18316	(linux_resume_one_thread): Always queue a sigstop for resume_stop
18317	requests.  Clear the thread's last reported target waitstatus.
18318	Don't use the `suspended' flag.  Don't consider pending breakpoints.
18319	(linux_resume): Start a step-over if necessary.
18320	(proceed_one_lwp): New.
18321	(proceed_all_lwps): New.
18322	(unstop_all_lwps): New.
18323	* linux-low.h (struct lwp_info): Rewrite comment for the
18324	`suspended' flag.  Add the `stop_pc' field.  Delete the
18325	`pending_stop_pc' field.  Tweak the `stepping' flag's comment.
18326	Add `'last_resume_kind' and `need_step_over' fields.
18327	* inferiors.c (struct thread_info): Delete, moved elsewhere.
18328	* mem-break.c (struct breakpoint): Delete `reinserting' flag.
18329	Delete `breakpoint_to_reinsert' field.  New flag `inserted'.
18330	(set_raw_breakpoint_at): New.
18331	(set_breakpoint_at): Rewrite to use it.
18332	(reinsert_breakpoint_handler): Delete.
18333	(set_reinsert_breakpoint): New.
18334	(reinsert_breakpoint_by_bp): Delete.
18335	(delete_reinsert_breakpoints): New.
18336	(uninsert_breakpoint): Rewrite.
18337	(uninsert_breakpoints_at): New.
18338	(reinsert_breakpoint): Rewrite.
18339	(reinsert_breakpoints_at): New.
18340	(check_breakpoints): Rewrite.
18341	(breakpoint_here): New.
18342	(breakpoint_inserted_here): New.
18343	(check_mem_read): Adjust.
18344	* mem-break.h (breakpoints_supported, breakpoint_here)
18345	(breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
18346	(reinsert_breakpoint_by_bp): Delete declaration.
18347	(delete_reinsert_breakpoints): Declare.
18348	(reinsert_breakpoint): Delete declaration.
18349	(reinsert_breakpoints_at): Declare.
18350	(uninsert_breakpoint): Delete declaration.
18351	(uninsert_breakpoints_at): Declare.
18352	(check_breakpoints): Adjust prototype.
18353	* server.h: Adjust include order.
18354	(struct thread_info): Declare here.  Add a `last_status' field.
18355
183562010-03-23  Michael Snyder  <msnyder@vmware.com>
18357
18358	* server.c (crc32): New function.
18359	(handle_query): Add handling for 'qCRC:' request.
18360
183612010-03-23  Pedro Alves  <pedro@codesourcery.com>
18362
18363	* linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
18364	lwp had been stopped by a watchpoint.
18365
183662010-03-16  Pedro Alves  <pedro@codesourcery.com>
18367
18368	* server.h (internal_error): Declare.
18369	(gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
18370	* utils.c (internal_error): New function.
18371
183722010-03-15  Andreas Schwab  <schwab@redhat.com>
18373
18374	* configure.srv: Fix typo setting srv_regobj.
18375
183762010-03-15  Pedro Alves  <pedro@codesourcery.com>
18377
18378	* linux-low.c (fetch_register): Avoid passing a non string literal
18379	format to `error'.
18380	(usr_store_inferior_registers): Ditto.
18381
183822010-03-14  Pedro Alves  <pedro@codesourcery.com>
18383
18384	* linux-low.c (linux_write_memory): Bail out early if peeking
18385	memory failed.
18386
183872010-03-14  Pedro Alves  <pedro@codesourcery.com>
18388
18389	* linux-low.h (struct lwp_info): New fields
18390	`stopped_by_watchpoint' and `stopped_data_address'.
18391	* linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
18392	here, and cache them in the lwp object.
18393	(wait_for_sigstop): Check stopped_by_watchpoint lwp field
18394	directly.
18395	(linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
18396	field.
18397	(linux_stopped_by_watchpoint): Rewrite.
18398	(linux_stopped_data_address): Rewrite.
18399
184002010-03-06  Simo Melenius  <simo.melenius@iki.fi>
18401
18402	* linux-low.c (linux_wait_for_lwp): Fetch the regcache after
18403	switching the current inferior, not before.
18404
184052010-03-01  H.J. Lu  <hongjiu.lu@intel.com>
18406
18407	* Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
18408	reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
18409	i386-linux.c and amd64-linux.c.
18410	(reg-i386.o): Removed.
18411	(reg-i386.c): Likewise.
18412	(reg-i386-linux.o): Likewise.
18413	(reg-i386-linux.c): Likewise.
18414	(reg-x86-64.o): Likewise.
18415	(reg-x86-64.c): Likewise.
18416	(reg-x86-64-linux.o): Likewise.
18417	(reg-x86-64-linux.c): Likewise.
18418	(i386.o): New.
18419	(i386.c): Likewise.
18420	(i386-linux.o): Likewise.
18421	(i386-linux.c): Likewise.
18422	(amd64.o): Likewise.
18423	(amd64.c): Likewise.
18424	(amd64-linux.o): Likewise.
18425	(amd64-linux.c): Likewise.
18426
18427	* configure.srv (srv_i386_regobj): New.
18428	(srv_i386_linux_regobj): Likewise.
18429	(srv_amd64_regobj): Likewise.
18430	(srv_amd64_linux_regobj): Likewise.
18431	(srv_i386_32bit_xmlfiles): Likewise.
18432	(srv_i386_64bit_xmlfiles): Likewise.
18433	(srv_i386_xmlfiles): Likewise.
18434	(srv_amd64_xmlfiles): Likewise.
18435	(srv_i386_linux_xmlfiles): Likewise.
18436	(srv_amd64_linux_xmlfiles): Likewise.
18437	(i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj.  Set
18438	srv_xmlfiles to $srv_i386_xmlfiles.
18439	(i[34567]86-*-mingw32ce*): Likewise.
18440	(i[34567]86-*-mingw*): Likewise.
18441	(i[34567]86-*-nto*): Likewise.
18442	(i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
18443	and $srv_amd64_linux_regobj.  Set srv_xmlfiles to
18444	$srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
18445	(x86_64-*-linux*): Likewise.
18446
18447	* linux-x86-low.c (init_registers_x86_64_linux): Removed.
18448	(init_registers_amd64_linux): New.
18449	(x86_arch_setup): Replace init_registers_x86_64_linux with
18450	init_registers_amd64_linux.
18451
184522010-02-23  Maxim Kuvyrkov  <maxim@codesourcery.com>
18453
18454	* configure.ac: Check for libdl.  If it is not available link against
18455	static libthread_db.
18456	* configure: Regenerate.
18457
184582010-02-22  Pedro Alves  <pedro@codesourcery.com>
18459
18460	PR9605
18461
18462	* i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
18463	handing a read watchpoint.
18464	(i386_low_insert_watchpoint): Read watchpoints aren't supported.
18465
184662010-02-12  Doug Evans  <dje@google.com>
18467
18468	* linux-low.c (linux_supports_tracefork_flag): Document.
18469	(linux_look_up_symbols): Add comment.
18470
184712010-02-03  H.J. Lu  <hongjiu.lu@intel.com>
18472
18473	* regcache.c (supply_register): Clear regcache if buf is NULL.
18474
184752010-02-02  Nicolas Roche  <roche@sourceware.org>
18476	    Joel Brobecker  <brobecker@adacore.com>
18477
18478	* inferiors.c (find_inferior): Add function documentation.
18479	(unloaded_dll): Handle the case where the unloaded dll has not
18480	been previously registered in the dll list.
18481
184822010-02-01  Daniel Jacobowitz  <dan@codesourcery.com>
18483
18484	* linux-arm-low.c (thumb_breakpoint_len): Delete.
18485	(thumb2_breakpoint): New.
18486	(arm_breakpoint_at): Check for Thumb-2 breakpoints.
18487
184882010-01-29  Daniel Jacobowitz  <dan@codesourcery.com>
18489
18490	* linux-low.c (get_stop_pc): Check for SIGTRAP.
18491	(linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
18492	breakpoints.
18493
184942010-01-21  Pedro Alves  <pedro@codesourcery.com>
18495
18496	* linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
18497
184982010-01-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
18499
18500	* linux-s390-low.c (s390_collect_ptrace_register)
18501	(s390_supply_ptrace_register): Adjust it for the new regcache parameter.
18502
185032010-01-21  Doug Evans  <dje@google.com>
18504
18505	* linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
18506	(PTRACE_ARG4_TYPE): New macro.
18507	(handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
18508	(linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
18509	(fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
18510	(usr_store_inferior_registers): Ditto.
18511	(linux_read_memory, linux_write_memory): Ditto.
18512	(linux_test_for_tracefork): Ditto.
18513
18514	* linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
18515	Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
18516
185172010-01-21  Pedro Alves  <pedro@codesourcery.com>
18518
18519	* proc-service.c (ps_lgetregs): Don't refetch registers from the
18520	target.
18521
185222010-01-21  Pedro Alves  <pedro@codesourcery.com>
18523
18524	* spu-low.c (spu_fetch_registers, spu_store_registers): Change
18525	prototype to take a regcache.  Adjust.
18526
185272010-01-20  Pedro Alves  <pedro@codesourcery.com>
18528
18529	* regcache.h (struct thread_info): Forward declare.
18530	(struct regcache): New.
18531	(new_register_cache): Adjust prototype.
18532	(get_thread_regcache): Declare.
18533	(free_register_cache): Adjust prototype.
18534	(registers_to_string, registers_from_string): Ditto.
18535	(supply_register, supply_register_by_name, collect_register)
18536	(collect_register_as_string, collect_register_by_name): Ditto.
18537	* regcache.c (struct inferior_regcache_data): Delete.
18538	(get_regcache): Rename to ...
18539	(get_thread_regcache): ... this.  Adjust.  Switch inferior before
18540	fetching registers.
18541	(regcache_invalidate_one): Adjust.
18542	(regcache_invalidate): Fix prototype.
18543	(new_register_cache): Return the new register cache.
18544	(free_register_cache): Change prototype.
18545	(realloc_register_cache): Adjust.
18546	(registers_to_string): Change prototype to take a regcache.  Adjust.
18547	(registers_from_string): Ditto.
18548	(register_data): Ditto.
18549	(supply_register): Ditto.
18550	(supply_register_by_name): Ditto.
18551	(collect_register): Ditto.
18552	(collect_register_as_string): Ditto.
18553	(collect_register_by_name): Ditto.
18554	* server.c (process_serial_event): Adjust.
18555	* linux-low.h (regset_fill_func, regset_store_func): Change
18556	prototype.
18557	(get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
18558	Change prototype.
18559	* linux-low.c (get_stop_pc): Adjust.
18560	(check_removed_breakpoint): Adjust.
18561	(linux_wait_for_event): Adjust.
18562	(linux_resume_one_lwp): Adjust.
18563	(fetch_register): Add regcache parameter.  Adjust.
18564	(usr_store_inferior_registers): Ditto.
18565	(regsets_fetch_inferior_registers): Ditto.
18566	(regsets_store_inferior_registers): Ditto.
18567	(linux_fetch_registers, linux_store_registers): Ditto.
18568	* i387-fp.c (i387_cache_to_fsave): Change prototype to take a
18569	regcache.  Adjust.
18570	(i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
18571	Ditto.
18572	* i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
18573	prototype to take a regcache.
18574	(i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
18575	* remote-utils.c (convert_ascii_to_int, outreg)
18576	(prepare_resume_reply): Change prototype to take a regcache.
18577	Adjust.
18578	* target.h (struct target_ops) <fetch_registers, store_registers>:
18579	Change prototype to take a regcache.
18580	(fetch_inferior_registers, store_inferior_registers): Change
18581	prototype to take a regcache.  Adjust.
18582	* proc-service.c (ps_lgetregs): Adjust.
18583	* linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
18584	(x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
18585	(x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
18586	take a regcache.  Adjust.
18587	* linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
18588	(arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
18589	(arm_store_vfpregset, arm_get_pc, arm_set_pc):
18590	(arm_breakpoint_at): Change prototype to take a regcache.  Adjust.
18591	* linux-cris-low.c (cris_get_pc, cris_set_pc)
18592	(cris_cannot_fetch_register):
18593	(cris_breakpoint_at): Change prototype to take a regcache.
18594	Adjust.
18595	* linux-crisv32-low.c (cris_get_pc, cris_set_pc,
18596	cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
18597	to take a regcache.  Adjust.
18598	(cris_breakpoint_at, cris_insert_point, cris_remove_point):
18599	Adjust.
18600	* linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
18601	take a regcache.  Adjust.
18602	* linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
18603	(m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
18604	(m68k_set_pc): Change prototype to take a regcache.  Adjust.
18605	* linux-mips-low.c (mips_get_pc):
18606	(mips_set_pc): Change prototype to take a regcache.  Adjust.
18607	(mips_reinsert_addr): Adjust.
18608	(mips_collect_register): Change prototype to take a regcache.
18609	Adjust.
18610	(mips_supply_register):
18611	(mips_collect_register_32bit, mips_supply_register_32bit)
18612	(mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
18613	(mips_store_fpregset): Ditto.
18614	* linux-ppc-low.c (ppc_supply_ptrace_register)
18615	(ppc_supply_ptrace_register): Ditto.
18616	(parse_spufs_run): Adjust.
18617	(ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
18618	(ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
18619	(ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
18620	take a regcache.  Adjust.
18621	* linux-s390-low.c (s390_collect_ptrace_register)
18622	(s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
18623	(s390_set_pc): Change prototype to take a regcache.  Adjust.
18624	(s390_arch_setup): Adjust.
18625	* linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
18626	(sh_fill_gregset): Change prototype to take a regcache.  Adjust.
18627	* linux-sparc-low.c (sparc_fill_gregset_to_stack)
18628	(sparc_fill_gregset, sparc_store_gregset_from_stack)
18629	(sparc_store_gregset, sparc_get_pc): Change prototype to take a
18630	regcache.  Adjust.
18631	(sparc_breakpoint_at): Adjust.
18632	* linux-xtensa-low.c (xtensa_fill_gregset):
18633	(xtensa_store_gregset):
18634	(xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
18635	(xtensa_set_pc): Change prototype to take a regcache.  Adjust.
18636	* nto-low.c (nto_fetch_registers, nto_store_registers): Change
18637	prototype to take a regcache.  Adjust.
18638	* win32-arm-low.c (arm_fetch_inferior_register)
18639	(arm_store_inferior_register): Change prototype to take a
18640	regcache.  Adjust.
18641	* win32-i386-low.c (i386_fetch_inferior_register)
18642	(i386_store_inferior_register): Change prototype to take a
18643	regcache.  Adjust.
18644	* win32-low.c (child_fetch_inferior_registers)
18645	(child_store_inferior_registers): Change prototype to take a
18646	regcache.  Adjust.
18647	(win32_wait): Adjust.
18648	(win32_fetch_inferior_registers): Change prototype to take a
18649	regcache.  Adjust.
18650	(win32_store_inferior_registers): Adjust.
18651	* win32-low.h (struct win32_target_ops) <fetch_inferior_register,
18652	store_inferior_register>: Change prototype to take a regcache.
18653
186542010-01-20  Doug Evans  <dje@google.com>
18655
18656	* linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
18657	#ifdef.
18658	(linux_wait_for_event1, linux_init_signals): Ditto.
18659	(W_STOPCODE): Provide definition if missing.
18660
186612010-01-13  Vladimir Prus  <vladimir@codesourcery.com>
18662
18663	* linux-low.c (linux_core_of_thread): New.
18664	(compare_ints, show_process, list_threads): New.
18665	(linux_qxfer_osdata): Report threads and cores.
18666	(linux_target_op): Register linux_core_of_thread.
18667	* remote-utils.c (prepare_resume_reply): Report the core.
18668	(buffer_xml_printf): Support %d specifier.
18669	* server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
18670	New.
18671	(handle_query): Handle qXfer:threads.  Announce availability
18672	thereof.
18673	* target.h (struct target_ops): New field core_of_thread.
18674
186752010-01-04  Ulrich Weigand  <uweigand@de.ibm.com>
18676
18677	* Makefile.in (clean): Remove new generated files.
18678	(reg-s390.o, reg-s390.c): Remove rules.
18679	(reg-s390x.o, reg-s390x.c): Likewise.
18680	(s390-linux32.o, s390-linux32.c): Add rules.
18681	(s390-linux64.o, s390-linux64.c): Likewise.
18682	(s390x-linux64.o, s390x-linux64.c): Likewise.
18683	* configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
18684	* linux-s390-low.c: Include <elf.h>.
18685	(HWCAP_S390_HIGH_GPRS): Define if undefined.
18686	(init_registers_s390): Remove prototype.
18687	(init_registers_s390x): Likewise.
18688	(init_registers_s390_linux32): Add prototype.
18689	(init_registers_s390_linux64): Likewise.
18690	(init_registers_s390x_linux64): Likewise.
18691	(s390_num_regs_3264): New define.
18692	(s390_regmap_3264): New global variable.
18693	(s390_cannot_fetch_register): Remove obsolete check.
18694	(s390_cannot_store_register): Likewise.
18695	(s390_collect_ptrace_register): Handle upper/lower register halves.
18696	(s390_supply_ptrace_register): Likewise.
18697	(s390_fill_gregset): Update to register number changes.
18698	(s390_get_hwcap): New routine.
18699	(s390_arch_setup): Detect 32-bit process running on 64-bit system.
18700	Install appropriate regmap and register set.
18701
187022010-01-01  Joel Brobecker  <brobecker@adacore.com>
18703
18704	* server.c (gdbserver_version): Update copyright year to 2010.
18705	* gdbreplay.c (gdbreplay_version): Likewise.
18706
187072009-12-28  Doug Evans  <dje@google.com>
18708
18709	* linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
18710	elf/external.h.  Include <elf.h> instead but only if necessary.
18711
187122009-12-28  Pedro Alves  <pedro@codesourcery.com>
18713
18714	* linux-low.c (linux_remove_process): Remove `detaching'
18715	parameter.  Don't release/detach from thread_db here.
18716	(linux_kill): Release/detach from thread_db here, ...
18717	(linux_detach): ... and here, before actually detaching.
18718	(linux_wait_1): ... and here, when a process exits.
18719	* thread-db.c (any_thread_of): New.
18720	(thread_db_free): Switch the current inferior to a thread of the
18721	passed in process.
18722
187232009-12-21  Doug Evans  <dje@google.com>
18724
18725	* linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
18726
18727	* linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
18728	Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
18729	warning ifndef __NR_tkill.  Move setting of errno there too.
18730	Delete unnecessary resetting of errno after syscall.
18731	Minor comment changes to match gdb/linux-nat.c:kill_lwp.
18732
18733	* configure.ac: Check for dladdr.
18734	* config.in: Regenerate.
18735	* configure: Regenerate.
18736	* thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
18737	(try_thread_db_load): Update.
18738
18739	* linux-low.c (my_waitpid): Delete unnecessary prototype.
18740
187412009-12-18  Doug Evans  <dje@google.com>
18742
18743	* event-loop.c: Include unistd.h if it exists.
18744
18745	* linux-low.c (my_waitpid): Move definition away from being in
18746	between linux_tracefork_child/linux_test_for_tracefork.
18747
18748	* gdb_proc_service.h (psaddr_t): Fix type.
18749	* thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
18750	signature to match glibc.
18751
187522009-12-16  Doug Evans  <dje@google.com>
18753
18754	* linux-low.c (linux_read_memory): Fix argument to read.
18755
187562009-11-26  Pedro Alves  <pedro@codesourcery.com>
18757
18758	* win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
18759	events, don't leave current_inferior pointing at null.
18760
187612009-11-26  Pedro Alves  <pedro@codesourcery.com>
18762
18763	* win32-low.c (LOG): Delete.
18764	(OUTMSG): Output to stderr.
18765	(OUTMSG2): Conditionalize on `debug_threads' variable, instead of
18766	on compile time LOG macro.
18767	(win32_wait): Fix debug output.
18768
187692009-11-26  Pedro Alves  <pedro@codesourcery.com>
18770
18771	* win32-low.c (win32_add_one_solib): If the dll name is
18772	"ntdll.dll", prepend the system directory to the dll path.
18773
187742009-11-17  Daniel Jacobowitz  <dan@codesourcery.com>
18775
18776	* m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
18777
187782009-11-17  Nathan Sidwell  <nathan@codesourcery.com>
18779	    Vladimir Prus  <vladimir@codesourcery.com>
18780
18781	* Makefile.in (reg-cf.o, reg-cf.c): New targets.
18782	* configure.ac: Check for __mcoldfire__ and set
18783	gdb_cv_m68k_is_coldfire.
18784	* configure.srv: Use gdb_cv_m68k_is_coldfire to select between
18785	reg-cf.o and reg-m68k.o.
18786	* configure: Regenerated.
18787
187882009-11-16  Pedro Alves  <pedro@codesourcery.com>
18789
18790	* linux-low.c (linux_remove_process): Add `detaching' parameter.
18791	Pass it to thread_db_free.
18792	(linux_kill, linux_detach, linux_wait_1): Adjust to pass the
18793	proper `detaching' argument to linux_remove_process.
18794	* linux-low.h (thread_db_free): Add `detaching' parameter.
18795	* thread-db.c (thread_db_init): Pass false as `detaching' argument
18796	to thread_db_free.
18797	(thread_db_free): Add `detaching' parameter.  Only
18798	call td_ta_clear_event if detaching from process.
18799
188002009-11-12  Maxim Kuvyrkov  <maxim@codesourcery.com>
18801
18802	* thread-db.c (thread_db_free): Fix typo.
18803
188042009-11-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
18805
18806	PR gdb/10838
18807	* thread-db.c (thread_db_free): Call td_ta_clear_event.
18808
188092009-11-03  Nathan Sidwell  <nathan@codesourcery.com>
18810
18811	* configure.ac (i[34567]86-*): Check if we're targetting x86-64
18812	with an i686 compiler.
18813	* configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
18814	needed.
18815	* configure: Rebuilt.
18816
188172009-10-29  Sandra Loosemore  <sandra@codesourcery.com>
18818
18819	PR gdb/10783
18820
18821	* server.c (handle_search_memory_1): Correct read_addr initialization
18822	in loop for searching subsequent chunks.
18823
188242009-10-29  Paul Pluzhnikov  <ppluzhnikov@google.com>
18825
18826	* configure.ac: New --with-libthread-db option.
18827	* thread-db.c: Allow direct dependence on libthread_db.
18828	(thread_db_free): Adjust.
18829	* config.in: Regenerate.
18830	* configure: Likewise.
18831
188322009-10-28  Paul Pluzhnikov  <ppluzhnikov@google.com>
18833
18834	PR gdb/10757
18835	* thread-db.c (attach_thread): New function.
18836	(maybe_attach_thread): Return success/failure.
18837	(find_new_threads_callback): Adjust.
18838	(thread_db_find_new_threads): Loop until no new threads.
18839
188402009-10-13  Pedro Alves  <pedro@codesourcery.com>
18841
18842	* proc-service.c (ps_lgetregs): Formatting.
18843
188442009-10-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
18845
18846	* acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
18847	* configure.ac: Adjust.
18848	* linux-low.h (struct process_info_private): Move members to struct
18849	thread_db.
18850	(thread_db_free, thread_db_handle_monitor_command): New prototype.
18851	* linux-low.c (linux_remove_process): Adjust.
18852	(linux_wait_for_event_1, linux_look_up_symbols): Likewise.
18853	* server.c (handle_query): Move code ...
18854	(handle_monitor_command): ... here. New function.
18855	* target.h (struct target_ops): New member.
18856	* thread-db.c (struct thread_db): New.
18857	(libthread_db_search_path): New variable.
18858	(thread_db_create_event, thread_db_enable_reporting)
18859	(find_one_thread, maybe_attach_thread, find_new_threads_callback)
18860	(thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
18861	(try_thread_db_load_1, dladdr_to_soname): New functions.
18862	(try_thread_db_load, thread_db_load_search): New functions.
18863	(thread_db_init): Search for libthread_db.
18864	(thread_db_free): New function.
18865	(thread_db_handle_monitor_command): Likewise.
18866	* config.in: Regenerate.
18867	* configure: Regenerate.
18868
188692009-09-27  Ulrich Weigand  <uweigand@de.ibm.com>
18870
18871	* spu-low.c (spu_kill): Wait for inferior to terminate.
18872	Call clear_inferiors.
18873	(spu_detach): Call clear_inferiors.
18874
188752009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18876
18877	* aclocal.m4: Regenerate.
18878	* config.in: Likewise.
18879	* configure: Likewise.
18880
188812009-07-31  Ulrich Weigand  <uweigand@de.ibm.com>
18882
18883	* linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
18884	(parse_spufs_run): New function.
18885	(ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
18886	(ppc_breakpoint_at): Handle SPU breakpoints.
18887
188882009-07-31  Ulrich Weigand  <uweigand@de.ibm.com>
18889
18890	* linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
18891	(SPUFS_MAGIC): Define.
18892	(spu_enumerate_spu_ids): New function.
18893	(linux_qxfer_spu): New function.
18894	(linux_target_ops): Install linux_qxfer_spu.
18895
188962009-07-31  Ulrich Weigand  <uweigand@de.ibm.com>
18897
18898	* configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
18899	and powerpc-cell64l.o to srv_regobj.  Add rs6000/powerpc-cell32l.xml
18900	and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
18901	* Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
18902	(powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
18903	(clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
18904	* linux-ppc-low.c (PPC_FEATURE_CELL): Define.
18905	(init_registers_powerpc_cell32l): Add prototype.
18906	(init_registers_powerpc_cell64l): Likewise.
18907	(ppc_arch_setup): Detect Cell/B.E. architecture.
18908
189092009-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18910
18911	* Makefile.in (datarootdir): New variable.
18912
189132009-07-28  Daniel Jacobowitz  <dan@codesourcery.com>
18914
18915	* linux-low.c (linux_write_memory): Update debugging output.
18916	* Makefile.in (clean): Add new descriptions.
18917	(arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
18918	(arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
18919	* configure.srv: Add new files for arm*-*-linux*.
18920	* linux-arm-low.c: Add new declarations.
18921	(PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
18922	(arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
18923	(HWCAP_VFPv3D16): New.
18924	(arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
18925	instead of __IWMMXT__.
18926	(arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
18927	(arm_arch_setup): New.
18928	(target_regsets): Remove #ifdef.  Add VFP regset.
18929	(the_low_target): Use arm_arch_setup.
18930
189312009-07-28  Daniel Jacobowitz  <dan@codesourcery.com>
18932
18933	* linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
18934	the main thread again.
18935
189362009-07-06  Aleksandar Ristovski  <aristovski@qnx.com>
18937
18938	Adding Neutrino gdbserver.
18939	* configure: Regenerated.
18940	* configure.ac: Add case for srv_qnx and set LIBS accordingly.
18941	* configure.srv (i[34567]86-*-nto*): New target.
18942	* nto-low.c, nto-low.h, nto-x86-low.c: New files.
18943	* remote-utils.c [__QNX__]: Include sys/iomgr.h
18944	(nto_comctrl) [__QNX__]: New function.
18945	(enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
18946
189472009-07-05  Danny Backx  <dannybackx@users.sourceforge.net>
18948
18949	* configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
18950	srv_tgtobj.
18951
189522009-07-04  Danny Backx  <dannybackx@users.sourceforge.net>
18953	    Pedro Alves  <pedro@codesourcery.com>
18954
18955	* win32-i386-low.c (i386_get_thread_context): Handle systems that
18956	don't support CONTEXT_EXTENDED_REGISTERS.
18957	(i386_win32_breakpoint, i386_win32_breakpoint_len): New.
18958	(the_low_target): Install them.
18959	* win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
18960	failing with ERROR_PIPE_NOT_CONNECTED.
18961
189622009-06-30  Doug Evans  <dje@google.com>
18963	    Pierre Muller  <muller@ics.u-strasbg.fr>
18964
18965	Add h/w watchpoint support to x86-linux, win32-i386.
18966	* Makefile.in (SFILES): Add i386-low.c
18967	(i386_low_h): Define.
18968	(i386-low.o): Add dependencies.
18969	(linux-x86-low.o): Add i386-low.h dependency.
18970	(win32-i386-low.o): Ditto.
18971	* i386-low.c: New file.
18972	* i386-low.h: New file.
18973	* configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
18974	(i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
18975	* linux-low.c (linux_add_process): Initialize arch_private.
18976	(linux_remove_process): Free arch_private.
18977	(add_lwp): Initialize arch_private.
18978	(delete_lwp): Free arch_private.
18979	(linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
18980	provided.
18981	* linux-low.h (process_info_private): New member arch_private.
18982	(lwp_info): New member arch_private.
18983	(linux_target_ops): New members new_process, new_thread,
18984	prepare_to_resume.
18985	(ptid_of): New macro.
18986	* linux-x86-low.c: Include stddef.h, i386-low.h.
18987	(arch_process_info): New struct.
18988	(arch_lwp_info): New struct.
18989	(x86_linux_dr_get, x86_linux_dr_set): New functions.
18990	(i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18991	(i386_dr_low_get_status): New function.
18992	(x86_insert_point, x86_remove_point): New functions.
18993	(x86_stopped_by_watchpoint): New function.
18994	(x86_stopped_data_address): New function.
18995	(x86_linux_new_process, x86_linux_new_thread): New functions.
18996	(x86_linux_prepare_to_resume): New function.
18997	(the_low_target): Add entries for insert_point, remove_point,
18998	stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
18999	prepare_to_resume.
19000	* server.c (debug_hw_points): New global.
19001	(monitor_show_help): Document set debug-hw-points.
19002	(handle_query): Process "set debug-hw-points".
19003	* server.h (debug_hw_points): Declare.
19004	(paddress): Declare.
19005	* utils.c (NUMCELLS, CELLSIZE): New macros.
19006	(get_sell, xsnprintf, paddress): New functions.
19007	* win32-arm-low.c (the_low_target): Add entries for insert_point,
19008	remove_point, stopped_by_watchpoint, stopped_data_address.
19009	* win32-i386-low.c: Include i386-low.h.
19010	(debug_reg_state): Replaces dr.
19011	(i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
19012	(i386_dr_low_get_status): New function.
19013	(i386_insert_point, i386_remove_point): New functions.
19014	(i386_stopped_by_watchpoint): New function.
19015	(i386_stopped_data_address): New function.
19016	(i386_initial_stuff): Update.
19017	(get_thread_context,set_thread_context,i386_thread_added): Update.
19018	(the_low_target): Add entries for insert_point,
19019	remove_point, stopped_by_watchpoint, stopped_data_address.
19020	* win32-low.c (win32_insert_watchpoint): New function.
19021	(win32_remove_watchpoint): New function.
19022	(win32_stopped_by_watchpoint): New function.
19023	(win32_stopped_data_address): New function.
19024	(win32_target_ops): Add entries for insert_watchpoint,
19025	remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
19026	* win32-low.h (win32_target_ops): New members insert_point,
19027	remove_point, stopped_by_watchpoint, stopped_data_address.
19028
190292009-06-25  Pedro Alves  <pedro@codesourcery.com>
19030
19031	* server.c (process_serial_event): Re-return unsupported, not
19032	error, if the type isn't recognized.  Re-allow supporting only
19033	insert or remove packets.  Also call require_running for
19034	breakpoints.  Add missing break statement to default case.  Tidy.
19035	* target.h (struct target_ops): Rename insert_watchpoint to
19036	insert_point, and remove_watchpoint to remove_point.
19037
19038	* linux-low.h (struct linux_target_ops): Likewise.
19039	* linux-low.c (linux_insert_watchpoint): Rename to ...
19040	(linux_insert_point): ... this.  Adjust.
19041	(linux_remove_watchpoint): Rename to ...
19042	(linux_remove_point): ... this.  Adjust.
19043	(linux_target_ops): Adjust.
19044	* linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
19045	(cris_insert_point): ... this.
19046	(cris_remove_watchpoint): Rename to ...
19047	(cris_remove_point): ... this.
19048	(the_low_target): Adjust.
19049
190502009-06-24  Pierre Muller  <muller@ics.u-strasbg.fr>
19051
19052	* server.c (handle_v_kill): Pass signal_pid to
19053	kill_inferior if multi_process is zero.
19054
190552009-06-23  Aleksandar Ristovski  <aristovski@qnx.com>
19056
19057	* server.c (process_serial_event): Add support for Z0 and Z1 packet.
19058	* target.h (target_ops): Comment for *_watchpoint to make it clear
19059	the functions can get types '0' and '1'.
19060
190612009-06-22  Aleksandar Ristovski  <aristovski@qnx.com>
19062
19063	* linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
19064	* proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
19065	* regcache.c (get_regcache): Likewise.
19066	* spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
19067	* win32-low.c (child_fetch_inferior_registers): Remove check for
19068	regno 0.
19069
190702009-06-19  Aleksandar Ristovski  <aristovski@qnx.com>
19071	    Pedro Alves <pedro@codesourcery.com>
19072
19073	* target.h (struct target_ops) <supports_multi_process>: New
19074	callback.
19075	(target_supports_multi_process): New.
19076	* server.c (handle_query): Even if GDB reports support, only
19077	enable multi-process if the target also supports it.  Report
19078	multi-process support only if the target backend supports it.
19079	* linux-low.c (linux_supports_multi_process): New function.
19080	(linux_target_ops): Install it as target_supports_multi_process
19081	callback.
19082
190832009-05-24  Doug Evans  <dje@google.com>
19084
19085	Global renaming of find_thread_pid to find_thread_ptid.
19086	* server.h (find_thread_ptid): Renamed from find_thread_pid.
19087	* inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
19088	All callers updated.
19089
19090	* linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
19091	to resume the newly created thread, don't call ptrace (PTRACE_CONT)
19092	directly.
19093
19094	* linux-low.c (get_stop_pc): Print pc if debug_threads.
19095	(check_removed_breakpoint, linux_wait_for_lwp): Ditto.
19096	(linux_resume_one_lwp): Ditto.
19097
190982009-05-23  Doug Evans  <dje@google.com>
19099
19100	* linux-low.c (linux_resume_one_lwp): Change type of first arg
19101	from struct inferior_list_entry * to struct lwp_info *.
19102	All callers updated.
19103
191042009-05-13  Doug Evans  <dje@google.com>
19105
19106	* linux-x86-low.c: Don't include assert.h.
19107	(x86_siginfo_fixup): Use fatal, not assert.
19108	(x86_arch_setup): Fix comment.
19109
191102009-05-12  Doug Evans  <dje@google.com>
19111
19112	Biarch support for i386/amd64 gdbserver.
19113	* Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
19114	Add linux-x86-low.c.
19115	(linux-i386-low.o, linux-x86-64-low.o): Delete.
19116	(linux-x86-low.o): Add.
19117	* linux-x86-64-low.c: Delete.
19118	* linux-i386-low.c: Delete.
19119	* linux-x86-low.c: New file.
19120	* configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
19121	linux-x86-low.o.
19122	(x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
19123	linux-x86-low.o.
19124	(x86_64-linux srv_regobj): Add reg-i386-linux.o.
19125	* linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
19126	(linux_child_pid_to_exec_file): New function.
19127	(elf_64_header_p, elf_64_file_p): New functions.
19128	(siginfo_fixup): New function.
19129	(linux_xfer_siginfo): New local inf_siginfo.  Call siginfo_fixup to
19130	give target a chance to convert layout.
19131	* linux-low.h (linux_target_ops): New member siginfo_fixup.
19132	(linux_child_pid_to_exec_file, elf_64_file_p): Declare.
19133
191342009-05-07  Doug Evans  <dje@google.com>
19135
19136	* linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
19137	(regsets_store_inferior_registers): Ditto.
19138
191392009-05-06  Pedro Alves  <pedro@codesourcery.com>
19140
19141	PR server/10048
19142
19143	* linux-low.c (must_set_ptrace_flags): Delete.
19144	(linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
19145	of the global.
19146	(linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here.  Set
19147	`lwp->must_set_ptrace_flags' instead.
19148	(linux_wait_for_event_1): Set ptrace options here.
19149	(linux_wait_1): ... not here.
19150
191512009-04-30  Doug Evans  <dje@google.com>
19152
19153	* inferiors.c (started_inferior_callback): New function.
19154	(attached_inferior_callback): New function.
19155	(have_started_inferiors_p, have_attached_inferiors_p): New functions.
19156	* server.c (print_started_pid, print_attached_pid): New functions.
19157	(detach_or_kill_for_exit): New function.
19158	(main): Call it instead of for_each_inferior (kill_inferior_callback).
19159	* server.h (have_started_inferiors_p): Declare.
19160	(have_attached_inferiors_p): Declare.
19161
19162	* inferiors.c (remove_process): Fix memory leak, free process.
19163	* linux-low.c (linux_remove_process): New function.
19164	(linux_kill): Call it instead of remove_process.
19165	(linux_detach, linux_wait_1): Ditto.
19166
191672009-04-19  Danny Backx  <dannybackx@users.sourceforge.net>
19168
19169	* configure.srv: Add x86 Windows CE target.
19170
191712009-04-03  Ulrich Weigand  <uweigand@de.ibm.com>
19172
19173	* inferiors.c (get_thread_process): Make global.
19174	* server.h (get_thread_process): Add prototype.
19175	* thread-db.c (find_one_thread): Use get_thread_process
19176	instead of current_process.
19177	(thread_db_get_tls_address): Do not crash if called when
19178	thread layer is not yet initialized.
19179
191802009-04-03  Ulrich Weigand  <uweigand@de.ibm.com>
19181
19182	* remote-utils.c (prepare_resume_reply): Null-terminate packet.
19183	* spu-low.c (current_tid): Rename to ...
19184	(current_ptid): ... this.
19185	(fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
19186	spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
19187	ptid_get_lwp (current_ptid) instead of current_tid.
19188	(spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
19189	instead of current_tid.  Use find_process_pid to verify pid
19190	argument is valid.  Pass proper argument to remove_process.
19191	(spu_thread_alive): Compare current_ptid instead of current_tid.
19192	(spu_resume): Likewise.
19193
191942009-04-02  Pedro Alves  <pedro@codesourcery.com>
19195
19196	* linux-low.c (usr_store_inferior_registers): Declare local `pid'
19197	variable.
19198
191992009-04-01  Pedro Alves  <pedro@codesourcery.com>
19200
19201	Implement the multiprocess extensions, and add linux multiprocess
19202	support.
19203
19204	* server.h (ULONGEST): Declare.
19205	(struct ptid, ptid_t): New.
19206	(minus_one_ptid, null_ptid): Declare.
19207	(ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19208	(ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
19209	(struct inferior_list_entry): Change `id' type from unsigned from
19210	to ptid_t.
19211	(struct sym_cache, struct breakpoint, struct
19212	process_info_private): Forward declare.
19213	(struct process_info): Declare.
19214	(current_process): Declare.
19215	(all_processes): Declare.
19216	(initialize_inferiors): Declare.
19217	(add_thread): Adjust to use ptid_t.
19218	(thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
19219	(add_process, remove_process, find_thread_pid): Declare.
19220	(find_inferior_id): Adjust to use ptid_t.
19221	(cont_thread, general_thread, step_thread): Change type to ptid_t.
19222	(multi_process): Declare.
19223	(push_event): Adjust to use ptid_t.
19224	(read_ptid, write_ptid): Declare.
19225	(prepare_resume_reply): Adjust to use ptid_t.
19226	(clear_symbol_cache): Declare.
19227	* inferiors.c (all_processes): New.
19228	(null_ptid, minus_one_ptid): New.
19229	(ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19230	(ptid_get_tid, ptid_equal, ptid_is_pid): New.
19231	(add_thread): Change unsigned long to ptid.  Remove gdb_id
19232	parameter.  Adjust.
19233	(thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
19234	(gdb_id_to_thread): Rename to ...
19235	(find_thread_pid): ... this.  Change unsigned long to ptid.
19236	(gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
19237	(loaded_dll, pull_pid_from_list): Adjust.
19238	(add_process, remove_process, find_process_pid)
19239	(get_thread_process, current_process, initialize_inferiors): New.
19240	* target.h (struct thread_resume) <thread>: Change type to ptid_t.
19241	(struct target_waitstatus) <related_pid>: Ditto.
19242	(struct target_ops) <kill, detach>: Add `pid' argument.  Change
19243	return type to int.
19244	(struct target_ops) <join>: Add `pid' argument.
19245	(struct target_ops) <thread_alive>: Change pid's type to ptid_t.
19246	(struct target_ops) <wait>: Add `ptid' field.  Change return type
19247	to ptid.
19248	(kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
19249	(mywait): Add `ptid' argument.  Change return type to ptid_t.
19250	(target_pid_to_str): Declare.
19251	* target.c (set_desired_inferior): Adjust to use ptids.
19252	(mywait): Add new `ptid' argument.  Adjust.
19253	(target_pid_to_str): New.
19254	* mem-break.h (free_all_breakpoints): Declare.
19255	* mem-break.c (breakpoints): Delelete.
19256	(set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
19257	(check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
19258	to use per-process breakpoint list.
19259	(free_all_breakpoints): New.
19260	* remote-utils.c (struct sym_cache) <name>: Drop `const'.
19261	(symbol_cache, all_symbols_looked_up): Delete.
19262	(hexchars): New.
19263	(ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
19264	read_ptid): New.
19265	(prepare_resume_reply): Change ptid argument's type from unsigned
19266	long to ptid_t.  Adjust.  Implement W;process and X;process.
19267	(free_sym_cache, clear_symbol_cache): New.
19268	(look_up_one_symbol): Adjust to per-process symbol cache.  *
19269	* server.c (cont_thread, general_thread, step_thread): Change type
19270	to ptid_t.
19271	(attached): Delete.
19272	(multi_process): New.
19273	(last_ptid): Change type to ptid_t.
19274	(struct vstop_notif) <ptid>: Change type to ptid_t.
19275	(queue_stop_reply, push_event): Change `ptid' argument's type to
19276	ptid_t.
19277	(discard_queued_stop_replies): Add `pid' argument.
19278	(start_inferior): Adjust to use ptids.  Adjust to mywait interface
19279	changes.  Don't reference the `attached' global.
19280	(attach_inferior): Adjust to mywait interface changes.
19281	(handle_query): Adjust to use ptids.  Parse GDB's qSupported
19282	features.  Handle and report "multiprocess+".  Handle
19283	"qAttached:PID".
19284	(handle_v_cont): Adjust to use ptids.  Adjust to mywait interface
19285	changes.
19286	(handle_v_kill): New.
19287	(handle_v_stopped): Adjust to use target_pid_to_str.
19288	(handle_v_requests): Allow multiple attaches and runs when
19289	multiprocess extensions are in effect.  Handle "vKill".
19290	(myresume): Adjust to use ptids.
19291	(queue_stop_reply_callback): Add `arg' parameter.  Handle it.
19292	(handle_status): Adjust to discard_queued_stop_replies interface
19293	change.
19294	(first_thread_of, kill_inferior_callback)
19295	(detach_or_kill_inferior_callback, join_inferiors_callback): New.
19296	(main): Call initialize_inferiors.  Adjust to use ptids, killing
19297	and detaching from all inferiors.  Handle multiprocess packet
19298	variants.
19299	* linux-low.h: Include gdb_proc_service.h.
19300	(struct process_info_private): New.
19301	(struct linux_target_ops) <pid_of>: Use ptid_get_pid.
19302	<lwpid_of>: Use ptid_get_lwp.
19303	(get_lwp_thread): Adjust.
19304	(struct lwp_info): Add `dead' member.
19305	(find_lwp_pid): Declare.
19306	* linux-low.c (thread_db_active): Delete.
19307	(new_inferior): Adjust comment.
19308	(inferior_pid): Delete.
19309	(linux_add_process): New.
19310	(handle_extended_wait): Adjust.
19311	(add_lwp): Change unsigned long to ptid.
19312	(linux_create_inferior): Add process to processes table.  Adjust
19313	to use ptids.  Don't set new_inferior here.
19314	(linux_attach_lwp): Rename to ...
19315	(linux_attach_lwp_1): ... this.  Add `initial' argument.  Handle
19316	it.  Adjust to use ptids.
19317	(linux_attach_lwp): New.
19318	(linux_attach): Add process to processes table.  Don't set
19319	new_inferior here.
19320	(struct counter): New.
19321	(second_thread_of_pid_p, last_thread_of_process_p): New.
19322	(linux_kill_one_lwp): Add `args' parameter.  Handle it.  Adjust to
19323	multiple processes.
19324	(linux_kill): Add `pid' argument.  Handle it.  Adjust to multiple
19325	processes.  Remove process from process table.
19326	(linux_detach_one_lwp): Add `args' parameter.  Handle it.  Adjust
19327	to multiple processes.
19328	(any_thread_of): New.
19329	(linux_detach): Add `pid' argument, and handle it.  Remove process
19330	from processes table.
19331	(linux_join): Add `pid' argument.  Handle it.
19332	(linux_thread_alive): Change unsighed long argument to ptid_t.
19333	Consider dead lwps as not being alive.
19334	(status_pending_p): Rename `dummy' argument to `arg'.  Filter out
19335	threads we're not interested in.
19336	(same_lwp, find_lwp_pid): New.
19337	(linux_wait_for_lwp): Change `pid' argument's type from int to
19338	ptid_t.  Adjust.
19339	(linux_wait_for_event): Rename to ...
19340	(linux_wait_for_event_1): ... this.  Change `pid' argument's type
19341	from int to ptid_t.  Adjust.
19342	(linux_wait_for_event): New.
19343	(linux_wait_1): Add `ptid' argument.  Change return type to
19344	ptid_t.  Adjust.  Use last_thread_of_process_p.  Remove processes
19345	that exit from the process table.
19346	(linux_wait): Add `ptid' argument.  Change return type to ptid_t.
19347	Adjust.
19348	(mark_lwp_dead): New.
19349	(wait_for_sigstop): Adjust to use ptids.  If a process exits while
19350	stopping all threads, mark its main lwp as dead.
19351	(linux_set_resume_request, linux_resume_one_thread): Adjust to use
19352	ptids.
19353	(fetch_register, usr_store_inferior_registers)
19354	(regsets_fetch_inferior_registers)
19355	(regsets_store_inferior_registers, linux_read_memory)
19356	(linux_write_memory): Inline `inferior_pid'.
19357	(linux_look_up_symbols): Adjust to use per-process
19358	`thread_db_active'.
19359	(linux_request_interrupt): Adjust to use ptids.
19360	(linux_read_auxv): Inline `inferior_pid'.
19361	(initialize_low): Don't reference thread_db_active.
19362	* gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
19363	* proc-service.c (ps_lgetregs): Use find_lwp_pid.
19364	(ps_getpid): Return the pid of the current inferior.
19365	* thread-db.c (proc_handle, thread_agent): Delete.
19366	(thread_db_create_event, thread_db_enable_reporting): Adjust to
19367	per-process data.
19368	(find_one_thread): Change argument type to ptid_t.  Adjust to
19369	per-process data.
19370	(maybe_attach_thread): Adjust to per-process data and ptids.
19371	(thread_db_find_new_threads): Ditto.
19372	(thread_db_init): Ditto.
19373	* spu-low.c (spu_create_inferior, spu_attach): Add process to
19374	processes table.  Adjust to use ptids.
19375	(spu_kill, spu_detach): Adjust interface.  Remove process from
19376	processes table.
19377	(spu_join, spu_thread_alive): Adjust interface.
19378	(spu_wait): Adjust interface.  Remove process from processes
19379	table.  Adjust to use ptids.
19380	* win32-low.c (current_inferior_tid): Delete.
19381	(current_inferior_ptid): New.
19382	(debug_event_ptid): New.
19383	(thread_rec): Take a ptid.  Adjust.
19384	(child_add_thread): Add `pid' argument.  Adjust to use ptids.
19385	(child_delete_thread): Ditto.
19386	(do_initial_child_stuff): Add `attached' argument.  Add process to
19387	processes table.
19388	(child_fetch_inferior_registers, child_store_inferior_registers):
19389	Adjust.
19390	(win32_create_inferior): Pass 0 to do_initial_child_stuff.
19391	(win32_attach): Pass 1 to do_initial_child_stuff.
19392	(win32_kill): Adjust interface.  Remove process from processes
19393	table.
19394	(win32_detach): Ditto.
19395	(win32_join): Adjust interface.
19396	(win32_thread_alive): Take a ptid.
19397	(win32_resume): Adjust to use ptids.
19398	(get_child_debug_event): Ditto.
19399	(win32_wait): Adjust interface.  Remove exiting process from
19400	processes table.
19401
194022009-04-01  Pedro Alves  <pedro@codesourcery.com>
19403
19404	Non-stop mode support.
19405
19406	* server.h (non_stop): Declare.
19407	(gdb_client_data, handler_func): Declare.
19408	(delete_file_handler, add_file_handler, start_event_loop):
19409	Declare.
19410	(handle_serial_event, handle_target_event, push_event)
19411	(putpkt_notif): Declare.
19412	* target.h (enum resume_kind): New.
19413	(struct thread_resume): Replace `step' field by `kind' field.
19414	(TARGET_WNOHANG): Define.
19415	(struct target_ops) <wait>: Add `options' argument.
19416	<supports_non_stop, async, start_non_stop>: New fields.
19417	(target_supports_non_stop, target_async): New.
19418	(start_non_stop): Declare.
19419	(mywait): Add `options' argument.
19420	* target.c (mywait): Add `options' argument.  Print child exit
19421	notifications here.
19422	(start_non_stop): New.
19423	* server.c (non_stop, own_buf, mem_buf): New globals.
19424	(struct vstop_notif): New.
19425	(notif_queue): New global.
19426	(queue_stop_reply, push_event, discard_queued_stop_replies)
19427	(send_next_stop_reply): New.
19428	(start_inferior): Adjust to use resume_kind.  Adjust to mywait
19429	interface changes.
19430	(attach_inferior): In non-stop mode, don't wait for the target
19431	here.
19432	(handle_general_set): Handle QNonStop.
19433	(handle_query): When handling qC, return the current general
19434	thread, instead of the first thread of the list.
19435	(handle_query): If the backend supports non-stop mode, include
19436	QNonStop+ in the qSupported query response.
19437	(handle_v_cont): Adjust to use resume_kind.  Handle resume_stop
19438	and non-stop mode.
19439	(handle_v_attach, handle_v_run): Handle non-stop mode.
19440	(handle_v_stopped): New.
19441	(handle_v_requests): Report support for vCont;t.  Handle vStopped.
19442	(myresume): Adjust to use resume_kind.  Handle non-stop.
19443	(queue_stop_reply_callback): New.
19444	(handle_status): Handle non-stop mode.
19445	(main): Clear non_stop flag on reconnection.  Use the event-loop.
19446	Refactor serial protocol handling from here ...
19447	(process_serial_event): ... to this new function.  When GDB
19448	selects any thread, select one here.  In non-stop mode, wait until
19449	GDB acks all pending events before exiting.
19450	(handle_serial_event, handle_target_event): New.
19451	* remote-utils.c (remote_open): Install remote_desc in the event
19452	loop.
19453	(remote_close): Remove remote_desc from the event loop.
19454	(putpkt_binary): Rename to...
19455	(putpkt_binary_1): ... this.  Add `is_notic' argument.  Handle it.
19456	(putpkt_binary): New as wrapper around putpkt_binary_1.
19457	(putpkt_notif): New.
19458	(prepare_resume_reply): In non-stop mode, don't change the
19459	general_thread.
19460	* event-loop.c: New.
19461	* Makefile.in (OBJ): Add event-loop.o.
19462	(event-loop.o): New rule.
19463
19464	* linux-low.h (pid_of): Moved here.
19465	(lwpid_of): New.
19466	(get_lwp_thread): Use lwpid_of.
19467	(struct lwp_info): Delete `lwpid' field.  Add `suspended' field.
19468	* linux-low.c (pid_of): Delete.
19469	(inferior_pid): Use lwpid_of.
19470	(linux_event_pipe): New.
19471	(target_is_async_p): New.
19472	(delete_lwp): New.
19473	(handle_extended_wait): Use lwpid_of.
19474	(add_lwp): Don't set lwpid field.
19475	(linux_attach_lwp): Adjust debug output.  Use lwpid_of.
19476	(linux_kill_one_lwp): If killing a running lwp, stop it first.
19477	Use lwpid_of.  Adjust to linux_wait_for_event interface changes.
19478	(linux_detach_one_lwp): If detaching from a running lwp, stop it
19479	first.  Adjust to linux_wait_for_event interface changes.  Use
19480	lwpid_of.
19481	(linux_detach): Don't delete the main lwp here.
19482	(linux_join): Use my_waitpid.  Avoid signal_pid.  Use lwpid_of.
19483	(status_pending_p): Don't consider explicitly suspended lwps.
19484	(linux_wait_for_lwp): Take an integer pid instead of a lwp_info
19485	pointer.  Add OPTIONS argument.  Change return type to int.  Use
19486	my_waitpid instead of sleeping.  Handle WNOHANG.  Use lwpid_of.
19487	(linux_wait_for_event): Take an integer pid instead of a lwp_info
19488	pointer.  Add status pointer argument.  Return a pid instead of a
19489	status.  Use lwpid_of.  Adjust to linux_wait_for_lwp interface
19490	changes.  In non-stop mode, don't switch to a random thread.
19491	(linux_wait): Rename to...
19492	(linux_wait_1): ... this.  Add target_options argument, and handle
19493	it.  Adjust to use resume_kind.  Use lwpid_of.  In non-stop mode,
19494	don't handle the continue thread.  Handle TARGET_WNOHANG.  Merge
19495	clean exit and signal exit code.  Don't stop all threads in
19496	non-stop mode.  In all-stop mode, only stop all threads when
19497	reporting a stop to GDB.  Handle explicit thread stop requests.
19498	(async_file_flush, async_file_mark): New.
19499	(linux_wait): New.
19500	(send_sigstop): Use lwpid_of.
19501	(wait_for_sigstop): Use lwpid_of.  Adjust to linux_wait_for_event
19502	interface changes.  In non-stop mode, don't switch to a random
19503	thread.
19504	(linux_resume_one_lwp): Use lwpid_of.
19505	(linux_continue_one_thread, linux_queue_one_thread): Merge into ...
19506	(linux_resume_one_thread): ... this.  Handle resume_stop.  In
19507	non-stop mode, don't look for pending flag in all threads.
19508	(resume_status_pending_p): Don't consider explicitly suspended
19509	threads.
19510	(my_waitpid): Reimplement.  Emulate __WALL.
19511	(linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19512	Use lwpid_of.
19513	(sigchld_handler, linux_supports_non_stop, linux_async)
19514	(linux_start_non_stop): New.
19515	(linux_target_ops): Register linux_supports_non_stop, linux_async
19516	and linux_start_non_stop.
19517	(initialize_low): Install SIGCHLD handler.
19518	* thread-db.c (thread_db_create_event, find_one_thread)
19519	(thread_db_get_tls_address): Use lwpid_of.
19520	* win32-low.c (win32_detach): Adjust to use resume_kind.
19521	(win32_wait): Add `options' argument.
19522	* spu-low.c (spu_resume): Adjust to use resume_kind.
19523	(spu_wait): Add `options' argument.
19524
195252009-04-01  Pedro Alves  <pedro@codesourcery.com>
19526
19527	Decouple target code from remote protocol.
19528
19529	* target.h (enum target_waitkind): New.
19530	(struct target_waitstatus): New.
19531	(struct target_ops) <wait>: Return an unsigned long.  Take a
19532	target_waitstatus pointer instead of a char pointer.
19533	(mywait): Likewise.
19534	* target.c (mywait): Change prototype to return an unsigned long.
19535	Take a target_waitstatus pointer instead of a char pointer.  Adjust.
19536	* server.h (thread_from_wait, old_thread_from_wait): Delete
19537	declarations.
19538	(prepare_resume_reply): Change prototype to take a
19539	target_waitstatus.
19540	* server.c (thread_from_wait, old_thread_from_wait): Delete.
19541	(last_status, last_ptid): New.
19542	(start_inferior): Remove "statusptr" argument.  Adjust.  Return a
19543	pid instead of a signal.
19544	(attach_inferior): Remove "status" and "signal" parameters.
19545	Adjust.
19546	(handle_query): For qGetTLSAddr, parse the thread id with strtol,
19547	not as an address.
19548	(handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
19549	(handle_v_requests, myresume): Remove "status" and "signal"
19550	parameters.  Adjust.
19551	(handle_status): New.
19552	(main): Delete local `status'.  Adjust.
19553	* remote-utils.c: Include target.h.
19554	(prepare_resume_reply): Change prototype to take a
19555	target_waitstatus.  Adjust.
19556
19557	* linux-low.c (linux_wait): Adjust to new target_ops->wait
19558	interface.
19559	* spu-low.c (spu_wait): Adjust.
19560	* win32-low.c (enum target_waitkind, struct target_waitstatus):
19561	Delete.
19562	(win32_wait): Adjust.
19563
195642009-04-01  Pedro Alves  <pedro@codesourcery.com>
19565
19566	* target.h (struct thread_resume): Delete leave_stopped member.
19567	(struct target_ops): Add a `n' argument to the `resume' callback.
19568	* server.c (start_inferior): Adjust.
19569	(handle_v_cont, myresume): Adjust.
19570	* linux-low.c (check_removed_breakpoint): Adjust to resume
19571	interface change, and to removed leave_stopped field.
19572	(resume_ptr): Delete.
19573	(struct thread_resume_array): New.
19574	(linux_set_resume_request): Add new `arg' parameter.  Adjust to
19575	resume interface change.
19576	(linux_continue_one_thread, linux_queue_one_thread)
19577	(resume_status_pending_p): Check if the resume field is NULL
19578	instead of checking the leave_stopped member.
19579	(linux_resume): Adjust to the target resume interface change.
19580	* spu-low.c (spu_resume): Adjust to the target resume interface
19581	change.
19582	* win32-low.c (win32_detach, win32_resume): Ditto.
19583
195842009-04-01  Pedro Alves  <pedro@codesourcery.com>
19585
19586	* linux-low.c (linux_wait_for_event): Don't clear the `stepping'
19587	flag.
19588	(wait_for_sigstop): Don't leave a finished single-step SIGTRAP
19589	pending.
19590	(linux_continue_one_thread): Only preserve the stepping flag if
19591	there's a pending breakpoint.
19592
195932009-03-31  Pedro Alves  <pedro@codesourcery.com>
19594
19595	* server.c (main): After the inferior having exited, call
19596	remote_close before exiting gdbserver.
19597
195982009-03-25  Thiago Jung Bauermann  <bauerman@br.ibm.com>
19599
19600	Fix size of FPSCR in Power 7 processors.
19601	* linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
19602	(PPC_FEATURE_HAS_DFP): New #define.
19603	(ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
19604	size of the FPSCR.
19605
196062009-03-23  Pedro Alves  <pedro@codesourcery.com>
19607
19608	* server.c (handle_query) Whitespace and formatting.
19609
196102009-03-22  Pedro Alves  <pedro@codesourcery.com>
19611
19612	* i387-fp.c, linux-arm-low.c, linux-cris-low.c,
19613	linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
19614	linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
19615	linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
19616	regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
19617	thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
19618	Makefile.in, configure.ac: Fix whitespace throughout.
19619	* configure: Regenerate.
19620
196212009-03-22  Pedro Alves  <pedro@codesourcery.com>
19622
19623	* inferiors.c (find_inferior): Make it safe for the callback
19624	function to delete the currently iterated inferior.
19625
196262009-03-22  Pedro Alves  <pedro@codesourcery.com>
19627
19628	* Makefile.in (linuw_low_h): Move higher.
19629	(thread-db.o): Depend on $(linux_low_h).
19630
196312009-03-17  Pedro Alves  <pedro@codesourcery.com>
19632
19633	Rename "process" to "lwp" throughout.
19634
19635	* linux-low.c (all_processes): Rename to...
19636	(all_lwps): ... this.
19637	(inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
19638	(add_process): Rename to ...
19639	(add_lwp): ... this.  Adjust.
19640	(linux_create_inferior): Adjust.
19641	(linux_attach_lwp): Adjust.
19642	(linux_attach): Adjust.
19643	(linux_kill_one_process): Rename to ...
19644	(linux_kill_one_lwp): ... this.  Adjust.
19645	(linux_kill): Adjust.
19646	(linux_detach_one_process): Rename to ...
19647	(linux_detach_one_lwp): ... this.  Adjust.
19648	(linux_detach): Adjust.
19649	(check_removed_breakpoint): Adjust.
19650	(status_pending_p): Adjust.
19651	(linux_wait_for_process): Rename to ...
19652	(linux_wait_for_lwp): ... this.  Adjust.
19653	(linux_wait_for_event): Adjust.
19654	(send_sigstop): Adjust.
19655	(wait_for_sigstop): Adjust.
19656	(stop_all_processes): Rename to ...
19657	(stop_all_lwps): ... this.
19658	(linux_resume_one_process): Rename to ...
19659	(linux_resume_one_lwp): ... this.  Adjust.
19660	(linux_set_resume_request, linux_continue_one_thread)
19661	(linux_queue_one_thread, resume_status_pending_p)
19662	(usr_store_inferior_registers, regsets_store_inferior_registers)
19663	(linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19664	Adjust.
19665	* linux-low.h (get_process): Rename to ...
19666	(get_lwp): ... this.  Adjust.
19667	(get_thread_process): Rename to ...
19668	(get_thread_lwp): ... this.  Adjust.
19669	(get_process_thread): Rename to ...
19670	(get_lwp_thread): ... this.  Adjust.
19671	(struct process_info): Rename to ...
19672	(struct lwp_info): ... this.
19673	(all_processes): Rename to ...
19674	(all_lwps): ... this.
19675	* proc-service.c (ps_lgetregs): Adjust.
19676	* thread-db.c (thread_db_create_event, find_one_thread)
19677	(maybe_attach_thread, thread_db_get_tls_address): Adjust.
19678
196792009-03-14  Pedro Alves  <pedro@codesourcery.com>
19680
19681	* server.c (handle_query): Handle "qAttached".
19682
196832009-03-13  Nathan Sidwell  <nathan@codesourcery.com>
19684
19685	* Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
19686	GPLv3, update license URL.
19687
196882009-03-01  Doug Evans  <dje@google.com>
19689
19690	* Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
19691	(server_h): Add gdb_signals.h.
19692	(signals.o): Update.
19693	* server.h (target_signal_from_host,target_signal_to_host_p)
19694	(target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
19695
196962009-02-14  Pierre Muller  <muller@ics.u-strasbg.fr>
19697
19698	* remote-utils.c (getpkt): Also generate remote-debug
19699	information if noack_mode is set.
19700
197012009-02-06  Pedro Alves  <pedro@codesourcery.com>
19702
19703	* server.c (handle_query): Report qXfer:siginfo:read and
19704	qXfer:siginfo:write as supported and handle them.
19705	* target.h (struct target_ops) <qxfer_siginfo>: New field.
19706	* linux-low.c (linux_xfer_siginfo): New.
19707	(linux_target_ops): Set it.
19708
197092009-01-26  Pedro Alves  <pedro@codesourcery.com>
19710
19711	* server.c (gdbserver_usage): Mention --remote-debug.
19712	(main): Accept '--remote-debug' switch.
19713
197142009-01-18  Doug Evans  <dje@google.com>
19715
19716	* regcache.c (new_register_cache): No need to check result of xcalloc.
19717	* server.c (handle_search_memory): Back out calls to xmalloc,
19718	result is checked and error is returned to user upon failure.
19719	(handle_query): Ditto.  Add more checks for result of malloc.
19720	(handle_v_cont): Check result of malloc, report error back to
19721	user upon failure.
19722	(handle_v_run): Ditto.  Call freeargv.
19723	* server.h (freeargv): Declare.
19724	* utils.c (freeargv): New fn.
19725
197262009-01-15  Doug Evans  <dje@google.com>
19727
19728	* gdbreplay.c (perror_with_name): Make arg const char *.
19729	* server.h (target_signal_to_name): Make return type const char *.
19730	* thread-db.c (thread_db_err_str): Make return type const char *.
19731	* utils.c (perror_with_name): Make arg const char *.
19732
197332009-01-14  Pedro Alves  <pedro@codesourcery.com>
19734
19735	* win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
19736	when handling a EXIT_PROCESS_DEBUG_EVENT.
19737
197382009-01-06  Joel Brobecker  <brobecker@adacore.com>
19739
19740	* gdbreplay.c (gdbreplay_version): Update copyright year.
19741	* server.c (gdbserver_version): Likewise.
19742
197432009-01-05  Doug Evans  <dje@google.com>
19744
19745	* linux-low.c (linux_attach_lwp): Add some comments/fixmes.
19746	(handle_extended_wait): Improve comment.
19747
197482008-12-13  Doug Evans  <dje@google.com>
19749
19750	* utils.c (xmalloc,xcalloc,xstrdup): New fns.
19751	* server.h (ATTR_MALLOC): New macro.
19752	(xmalloc,xcalloc,xstrdup): Declare.
19753	* hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
19754	* inferiors.c: Ditto.
19755	* linux-low.c: Ditto.
19756	* mem-break.c: Ditto.
19757	* regcache.c: Ditto.
19758	* remote-utils.c: Ditto.
19759	* server.c: Ditto.
19760	* target.c: Ditto.
19761	* win32-low.c: Ditto.
19762
197632008-12-12  Doug Evans  <dje@google.com>
19764
19765	* linux-low.c (linux_wait_for_process): Don't clobber current_inferior
19766	in debugging printf.
19767
19768	* linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
19769
197702008-12-09  Doug Evans  <dje@google.com>
19771
19772	* linux-low.h (struct process_info): Delete member tid, unused.
19773	* thread-db.c (find_one_thread): Update.
19774	(maybe_attach_thread): Update.
19775
197762008-12-02  Pedro Alves  <pedro@codesourcery.com>
19777
19778	* target.h (struct target_ops): Add qxfer_osdata member.
19779	* linux-low.c: Include ctype.h and pwd.h and sys/types.h
19780	and dirent.h.
19781	(linux_qxfer_osdata): New functions.
19782	(linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
19783	callback.
19784	* server.c (handle_query): Handle "qXfer:osdata:read:".
19785	* remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
19786	(buffer_xml_printf): New functions.
19787	* server.h (struct buffer): New.
19788	(buffer_grow_str, buffer_grow_str0): New macros.
19789	(buffer_grow, buffer_free, buffer_init, buffer_finish)
19790	(buffer_xml_printf): Declare.
19791
197922008-11-24  Doug Evans  <dje@google.com>
19793
19794	* Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
19795
197962008-11-24  Daniel Jacobowitz  <dan@codesourcery.com>
19797
19798	* server.c (handle_v_run): Always use the supplied argument list.
19799
198002008-11-19  Bob Wilson  <bob.wilson@acm.org>
19801
19802	* xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
19803	(xtensa_regmap_table): Add entry for scompare1.
19804
198052008-11-18  Thiago Jung Bauermann  <bauerman@br.ibm.com>
19806
19807	* Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
19808	powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
19809	powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
19810	powerpc-isa205-64l.o, powerpc-isa205-64l.c,
19811	powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
19812	powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
19813	* configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
19814	XML target descriptions.
19815	* linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
19816	when inferior is running on an ISA 2.05 or later processor.  Add
19817	special case to return offset for full 64-bit slot of FPSCR when
19818	in 32-bits.
19819
198202008-11-14  Daniel Gutson  <dgutson@codesourcery.com>
19821
19822	* Makefile.in (SFILES, clean): Added sparc64 files.
19823	(reg-sparc64.o, reg-sparc64.c): New.
19824	* configure.srv (sparc*-*-linux*): New configuration.
19825	* linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
19826	syscall arguments for SPARC.
19827	(regsets_store_inferior_registers): Likewise.
19828	* linux-sparc-low.c: New file.
19829
198302008-10-21  Doug Evans  <dje@google.com>
19831
19832	* Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
19833	(READLINE_DIR,READLINE_DEP): Delete.
19834	(INTERNAL_CFLAGS): Update.
19835	(LINTFLAGS): Update.
19836
198372008-10-10  Pedro Alves  <pedro@codesourcery.com>
19838
19839	* server.c (handle_v_run): If GDB didn't specify an argv, use the
19840	whole argv from the last run, not just argv[0].
19841
198422008-09-08  Pedro Alves  <pedro@codesourcery.com>
19843
19844	* regcache.c (new_register_cache): Return NULL if the register
19845	cache size isn't known yet.
19846	(free_register_cache): Avoid dereferencing a NULL regcache.
19847
198482008-09-04  Daniel Jacobowitz  <dan@codesourcery.com>
19849
19850	* configure.srv: Merge MIPS and MIPS64.
19851
198522008-08-24  Maciej W. Rozycki  <macro@linux-mips.org>
19853
19854	* Makefile.in (uninstall): Apply $(EXEEXT) too.
19855
198562008-08-18  Luis Machado  <luisgpm@br.ibm.com>
19857
19858	* Makefile.in: Add required vsx dependencies.
19859
19860	* linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
19861	Declare init_registers_powerpc_vsx32l.
19862	Declare init_registers_powerpc_vsx64l.
19863	Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
19864	(ppc_arch_setup): Check for VSX in hwcap.
19865	(ppc_fill_vsxregset): New function.
19866	(ppc_store_vsxregset): New function.
19867	Add new VSX entry in regset_info target_regsets.
19868
19869	* configure.srv: Add new VSX dependencies.
19870
198712008-08-12  Pedro Alves  <pedro@codesourcery.com>
19872
19873	* remote-utils.c (noack_mode, transport_is_reliable): New globals.
19874	(remote_open): Set or clear transport_is_reliable.
19875	(putpkt_binary): Don't expect acks in noack mode.
19876	(getpkt): Don't send ack/nac in noack mode.
19877	* server.c (handle_general_set): Handle QStartNoAckMode.
19878	(handle_query): If connected by tcp pass QStartNoAckMode+ in
19879	qSupported.
19880	(main): Reset noack_mode on every connection.
19881	* server.h (noack_mode): Declare.
19882
198832008-08-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19884
19885	* Makefile.in (GDBREPLAY_OBS): New variable.
19886	(gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
19887
198882008-08-05  Ulrich Weigand  <uweigand@de.ibm.com>
19889	    Daniel Jacobowitz  <dan@codesourcery.com>
19890
19891	* linux-low.c (linux_resume_one_process): Ignore ESRCH.
19892	(usr_store_inferior_registers): Likewise.
19893	(regsets_store_inferior_registers): Likewise.
19894
198952008-07-31  Rolf Jansen  <rj@surtec.com>
19896	    Pedro Alves  <pedro@codesourcery.com>
19897
19898	* configure.ac: Check for memmem declaration.
19899	* server.c [HAVE_MALLOC_H]: Include malloc.h.
19900	(disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
19901	(disable_packet_qfThreadInfo): Unconditionally compile.
19902	* server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
19903	* configure, config.in: Regenerate.
19904
199052008-07-28  Doug Kwan  <dougkwan@google.com>
19906
19907	* linux-low.c (sys/dir.h, sys/user.h): Remove includes.
19908	(linux_write_memory): Remove declaration of errno.
19909
199102008-07-12  Ulrich Weigand  <uweigand@de.ibm.com>
19911
19912	* linux-low.c (handle_extended_wait): Do not use "status"
19913	variable uninitialized.
19914
199152008-07-07  Pedro Alves  <pedro@codesourcery.com>
19916
19917	* server.c (handle_v_attach): Inhibit reporting dll changes.
19918
199192008-06-27  Pedro Alves  <pedro@codesourcery.com>
19920
19921	* remote-utils.c (prepare_resume_reply): If requested, don't
19922	output "thread:TID" in the T stop reply.
19923
19924	* server.c (disable_packet_vCont, disable_packet_Tthread)
19925	(disable_packet_qC, disable_packet_qfThreadInfo): New globals.
19926	(handle_query): If requested, disable support for qC, qfThreadInfo
19927	and qsThreadInfo.
19928	(handle_v_requests): If requested, disable support for vCont.
19929	(gdbserver_show_disableable): New.
19930	(main): Handle --disable-packet and --disable-packet=LIST.
19931
19932	* server.h (disable_packet_vCont, disable_packet_Tthread)
19933	(disable_packet_qC, disable_packet_qfThreadInfo): Declare.
19934
199352008-06-20  Carlos O'Donell  <carlos@codesourcery.com>
19936
19937	* server.c (gdbserver_usage): Mention --version.
19938
199392008-06-06  Daniel Jacobowitz  <dan@codesourcery.com>
19940
19941	* Makefile.in (gdbreplay.o): New rule.
19942
199432008-06-06  Joseph Myers  <joseph@codesourcery.com>
19944
19945	* gdbreplay.c (gdbreplay_version): Say gdbreplay in version
19946	message, not gdbserver.
19947
199482008-06-05  Vladimir Prus  <vladimir@codesourcery.com>
19949	    Nathan Sidwell  <nathan@codesourcery.com>
19950	    Joseph Myers  <joseph@codesourcery.com>
19951
19952	* acinclude.m4: Include ../../config/acx.m4.
19953	* configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
19954	* configure, config.in: Regenerate.
19955	* Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
19956	* server.c (gdbserver_version): Print PKGVERSION.
19957	(gdbsrever_usage): Add stream parameter.  Print REPORT_BUGS_TO.
19958	(main): Adjust gdbserver_usage calls.
19959	* gdbreplay.c (version, host_name): Add declarations.
19960	(gdbreplay_version, gdbreplay_usage): New.
19961	(main): Accept --version and --help options.
19962
199632008-06-04  Daniel Jacobowitz  <dan@codesourcery.com>
19964
19965	* linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
19966	(arm_breakpoint_at): Handle Thumb.
19967	(the_low_target): Add comment.
19968
199692008-05-29  Ulrich Weigand  <uweigand@de.ibm.com>
19970
19971	* linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
19972
199732008-05-09  Doug Evans  <dje@google.com>
19974
19975	* server.h (decode_search_memory_packet): Declare.
19976	* remote-utils.c (decode_search_memory_packet): New fn.
19977	* server.c (handle_search_memory_1): New fn.
19978	(handle_search_memory): New fn.
19979	(handle_query): Process qSearch:memory packets.
19980
199812008-05-08  Ulrich Weigand  <uweigand@de.ibm.com>
19982
19983	* regcache.c (registers_length): Remove.
19984	(set_register_cache): Verify that PBUFSIZ is large enough to hold a
19985	full register packet.
19986	* regcache.h (registers_length): Remove prototype.
19987	* server.h (PBUFSIZ): Define to 16384.
19988
199892008-05-03  Ulrich Weigand  <uweigand@de.ibm.com>
19990
19991	* configure.srv (powerpc*-*-linux*): Set srv_regobj to
19992	powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
19993	powerpc-64l.o, and powerpc-altivec64l.o.
19994	Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
19995	rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
19996	rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
19997	rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
19998	rs6000/power-linux.xml, and rs6000/power64-linux.xml
19999	to srv_xmlfiles.
20000
20001	* Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
20002	(powerpc-32l.o, powerpc-32l.c): ... these new rules.
20003	(powerpc-32.o, powerpc-32.c): Remove, replace by ...
20004	(powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
20005	(powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
20006	(powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
20007	(reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
20008	(powerpc-64l.o, powerpc-64l.c): ... these new rules.
20009	(powerpc-64.o, powerpc-64.c): Remove, replace by ...
20010	(powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
20011	(clean): Update.
20012
20013	* linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
20014	(init_registers_powerpc_32l): ... this new prototype.
20015	(init_registers_powerpc_32): Remove, replace by ...
20016	(init_registers_powerpc_altivec32l): ... this new prototype.
20017	(init_registers_powerpc_e500): Remove, replace by ...
20018	(init_registers_powerpc_e500l): ... this new prototype.
20019	(init_registers_ppc64): Remove, replace by ...
20020	(init_registers_powerpc_64l): ... this new prototype.
20021	(init_registers_powerpc_64): Remove, replace by ...
20022	(init_registers_powerpc_altivec64l): ... this new prototype.
20023	(ppc_num_regs): Set to 73.
20024	(PT_ORIG_R3, PT_TRAP): Define if necessary.
20025	(ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
20026	(ppc_cannot_store_register): Handle orig_r3 and trap.
20027	(ppc_arch_setup): Update init_registers_... calls.
20028	(ppc_fill_gregset): Handle orig_r3 and trap.
20029
20030	* inferiors.c (clear_inferiors): Reset current_inferior.
20031
200322008-04-23  Paolo Bonzini  <bonzini@gnu.org>
20033
20034	* acinclude.m4: Add override.m4.
20035	* configure: Regenerate.
20036
200372008-04-21  Ulrich Weigand  <uweigand@de.ibm.com>
20038
20039	* linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
20040	initial call to init_register_ppc64.
20041
200422008-04-21  Ulrich Weigand  <uweigand@de.ibm.com>
20043
20044	* configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
20045	single powerpc*-*-linux* case.
20046	(s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
20047
200482008-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
20049
20050	* configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
20051	srv_regobj.  Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
20052	from reg_xmlfiles.
20053	* linux-ppc-low.c: Include <elf.h>.
20054	(PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
20055	(ppc_hwcap): New global variable.
20056	(ppc_regmap): Remove __SPE__ #ifdef sections.
20057	(ppc_regmap_e500): New global variable.
20058	(ppc_cannot_store_register): Update __SPE__ special case.
20059	(ppc_get_hwcap): New function.
20060	(ppc_arch_setup): Use it to determine whether inferior supports
20061	AltiVec or SPE registers.  Set the_low_target.regmap if appropriate.
20062	(ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
20063	Do not access registers if target does not support AltiVec.
20064	(ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
20065	Do not access registers if target does not support SPE.
20066	(target_regsets): Unconditionally include AltiVec and SPE regsets.
20067
200682008-04-17  Daniel Jacobowitz  <dan@codesourcery.com>
20069
20070	* linux-low.c (disabled_regsets, num_regsets): New.
20071	(use_regsets_p): Delete.
20072	(linux_wait_for_process): Clear disabled_regsets.
20073	(regsets_fetch_inferior_registers): Check and set it.
20074	(regsets_store_inferior_registers): Likewise.
20075	(linux_fetch_registers, linux_store_registers): Do not use
20076	use_regsets_p.
20077	(initialize_low): Allocate disabled_regsets.
20078
200792008-04-14  Daniel Jacobowitz  <dan@codesourcery.com>
20080
20081	* Makefile.in (LIBOBJS): New.
20082	(OBS): Use LIBOBJS.
20083	(memmem.o): New rule.
20084	* configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
20085	* configure: Regenerated.
20086
200872008-04-04  Ulrich Weigand  <uweigand@de.ibm.com>
20088
20089	* server.c (handle_query): Never return "unsupported" for
20090	qXfer:features:read queries.
20091
200922008-03-27  Ulrich Weigand  <uweigand@de.ibm.com>
20093
20094	* server.c (get_features_xml): Fix inverted condition.
20095	(handle_query): Always support qXfer:feature:read.
20096
200972008-03-10  Daniel Jacobowitz  <dan@codesourcery.com>
20098
20099	* server.c (wrapper_argv): New.
20100	(start_inferior): Handle wrapper_argv.  If set, expect an extra
20101	trap.
20102	(gdbserver_usage): Document --wrapper.
20103	(main): Parse --wrapper.
20104
201052008-02-28  Ulrich Weigand  <uweigand@de.ibm.com>
20106
20107	* configure.srv [powerpc64-*-linux*]: Add all files mentioned for
20108	powerpc-*-linux* to srv_regobj and reg_xmlfiles.
20109	* linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
20110	(ppc_set_pc): Likewise.
20111	(ppc_arch_setup): New function.
20112	(ppc_fill_gregset): Call ppc_collect_ptrace_register instead
20113	of collect_register.
20114	(the_low_target): Use ppc_arch_setup as arch_setup initializer.
20115
201162008-02-28  Ulrich Weigand  <uweigand@de.ibm.com>
20117
20118	* configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
20119	instead of linux-ppc64-low.o.
20120	* linux-ppc64-low.c: Remove file.
20121	* Makefile.in (SFILES): Remove linux-ppc64-low.c.
20122	(linux-ppc64-low.o): Remove rule.
20123
20124	* linux-ppc-low.c (init_registers_ppc64): Add prototype.
20125	(init_registers_powerpc_64): Likewise.
20126	(ppc_regmap): Conditionally define depending on __powerpc64__.
20127	(ppc_cannot_store_register): Do not special-case "fpscr" when
20128	compiled on __powerpc64__.
20129	(ppc_collect_ptrace_register): New function.
20130	(ppc_supply_ptrace_register): New function.
20131	(ppc_breakpoint): Change type to "unsigned int".
20132	(ppc_breakpoint_at): Change type of "insn" to "unsigned int".
20133	(the_low_target): Conditionally provide initializers for the
20134	arch_setup member depending on __powerpc64__.  Install
20135	collect_ptrace_register and supply_ptrace_register members.
20136
201372008-02-28  Ulrich Weigand  <uweigand@de.ibm.com>
20138
20139	* regcache.h (gdbserver_xmltarget): Add extern declaration.
20140	* server.c (gdbserver_xmltarget): Define.
20141	(get_features_xml): Use it to replace "target.xml" and arch_string.
20142
20143	* configure.srv: Remove srv_xmltarget.  Add XML files that were
20144	mentioned there to srv_xmlfiles instead.  Remove conditional tests
20145	on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
20146	srv_xmlfiles and srv_regobj to include all possible choices.
20147	* configure.ac (srv_xmltarget): Remove.
20148	(srv_xmlfiles): Do not add "target.xml".
20149	(gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
20150	checks for supplementary target information.
20151	* configure: Regenerate.
20152	* Makefile.in (XML_TARGET): Remove.
20153	(target.xml): Remove rule.
20154	(clean): Do not clean up target.xml.
20155	(.PRECIOUS): Do not mention target.xml.
20156
20157	* target.h (struct target_ops): Remove arch_string member.
20158	* linux-low.c (linux_arch_string): Remove.
20159	(linux_target_ops): Remove arch_string initializer.
20160	* linux-low.h (struct linux_target_ops): Remove arch_string member.
20161	* linux-i386-low.c (the_low_target): Remove arch_string initializer.
20162	* linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
20163	* spu-low.c (spu_arch_string): Remove.
20164	(spu_target_ops): Remove arch_string initializer.
20165	* win32-low.c (win32_arch_string): Remove.
20166	(win32_target_ops): Remove arch_string initializer.
20167	* win32-low.h (struct win32_target_ops): Remove arch_string member.
20168	* win32-arm-low.c (the_low_target): Remove arch_string initializer.
20169	* win32-i368-low.c (the_low_target): Remove arch_string initializer.
20170
201712008-02-27  Ulrich Weigand  <uweigand@de.ibm.com>
20172
20173	* linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
20174	by collect_ptrace_register and supply_ptrace_register hooks.
20175	* linux-low.c (fetch_register): Use supply_ptrace_register callback
20176	instead of checking for the_low_target.left_pad_xfer.
20177	(usr_store_inferior_registers): Use collect_ptrace_register callback
20178	instead of checking for the_low_target.left_pad_xfer.
20179
20180	* linux-s390-low.c (s390_collect_ptrace_register): New function.
20181	(s390_supply_ptrace_register): Likewise.
20182	(s390_fill_gregset): Call s390_collect_ptrace_register.
20183	(the_low_target): Update.
20184
20185	* linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
20186	(ppc_supply_ptrace_register): Likewise.
20187	(the_low_target): Update.
20188
20189	* linux-i386-low.c (the_low_target): Update.
20190	* linux-x86-64-low.c (the_low_target): Update.
20191
201922008-02-27  Ulrich Weigand  <uweigand@de.ibm.com>
20193
20194	* configure.srv [s390x-*-linux*]: Set srv_regobj to include both
20195	reg-s390.o and reg-s390x.o.
20196
20197	* linux-low.c (new_inferior): New global variable.
20198	(linux_create_inferior, linux_attach): Set it.
20199	(linux_wait_for_process): Call the_low_target.arch_setup after the
20200	target has stopped for the first time.
20201	(initialize_low): Do not call the_low_target.arch_setup.
20202
20203	* linux-s390-low.c (s390_get_pc): Support bi-arch operation.
20204	(s390_set_pc): Likewise.
20205	(s390_arch_setup): New function.
20206	(the_low_target): Use s390_arch_setup as arch_setup routine.
20207
20208	* regcache.c (realloc_register_cache): New function.
20209	(set_register_cache): Call it for each existing regcache.
20210
202112008-02-27  Ulrich Weigand  <uweigand@de.ibm.com>
20212
20213	* server.h (init_registers): Remove prototype.
20214
20215	* linux-low.h (struct linux_target_ops): Add arch_setup field.
20216	* linux-low.c (initialize_low): Call the_low_target.arch_setup ()
20217	instead of init_registers ().
20218	* linux-arm-low.c (init_registers_arm): Add prototype.
20219	(init_registers_arm_with_iwmmxt): Likewise.
20220	(the_low_target): Add initializer for arch_setup field.
20221	* linux-cris-low.c (init_registers_cris): Add prototype.
20222	(the_low_target): Add initializer for arch_setup field.
20223	* linux-crisv32-low.c (init_registers_crisv32): Add prototype.
20224	(the_low_target): Add initializer for arch_setup field.
20225	* linux-i386-low.c (init_registers_i386_linux): Add prototype.
20226	(the_low_target): Add initializer for arch_setup field.
20227	* linux-ia64-low.c (init_registers_ia64): Add prototype.
20228	(the_low_target): Add initializer for arch_setup field.
20229	* linux-m32r-low.c (init_registers_m32r): Add prototype.
20230	(the_low_target): Add initializer for arch_setup field.
20231	* linux-m68k-low.c (init_registers_m68k): Add prototype.
20232	(the_low_target): Add initializer for arch_setup field.
20233	* linux-mips-low.c (init_registers_mips_linux): Add prototype.
20234	(init_registers_mips64_linux): Likewise.
20235	(the_low_target): Add initializer for arch_setup field.
20236	* linux-ppc-low.c (init_registers_ppc): Add prototype.
20237	(init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
20238	(the_low_target): Add initializer for arch_setup field.
20239	* linux-ppc64-low.c (init_registers_ppc64): Add prototype.
20240	(init_registers_powerpc_64): Likewise.
20241	(the_low_target): Add initializer for arch_setup field.
20242	* linux-s390-low.c (init_registers_s390): Add prototype.
20243	(init_registers_s390x): Likewise.
20244	(the_low_target): Add initializer for arch_setup field.
20245	* linux-sh-low.c (init_registers_sh): Add prototype.
20246	(the_low_target): Add initializer for arch_setup field.
20247	* linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
20248	(the_low_target): Add initializer for arch_setup field.
20249	* linux-xtensa-low.c (init_registers_xtensa): Add prototype.
20250	(the_low_target): Add initializer for arch_setup field.
20251
20252	* win32-low.h (struct win32_target_ops): Add arch_setup field.
20253	* win32-low.c (initialize_low): Call the_low_target.arch_setup ()
20254	instead of init_registers ().
20255	* win32-arm-low.c (init_registers_arm): Add prototype.
20256	(the_low_target): Add initializer for arch_setup field.
20257	* win32-i386-low.c (init_registers_i386): Add prototype.
20258	(the_low_target): Add initializer for arch_setup field.
20259
20260	* spu-low.c (init_registers_spu): Add prototype.
20261	(initialize_low): Call initialie_registers_spu () instead of
20262	initialize_registers ().
20263
202642008-02-19  Pedro Alves  <pedro@codesourcery.com>
20265
20266	* server.c (handle_v_requests): When handling the vRun and vAttach
20267	packets, if already debugging a process, don't kill it.  Return an
20268	error instead.
20269
202702008-02-17  Daniel Jacobowitz  <dan@codesourcery.com>
20271
20272	* server.c (handle_query): Correct length check.
20273
202742008-02-14  Pedro Alves  <pedro_alves@portugalmail.pt>
20275
20276	* win32-low.c (do_initial_child_stuff): Add process handle
20277	parameter.  Set current_process_handle and current_process_id from the
20278	parameters. Clear globals.
20279	(win32_create_inferior): Don't set current_process_handle and
20280	current_process_id here.  Instead pass them on the call to
20281	do_initial_child_stuff.
20282	(win32_attach): Likewise.
20283	(win32_clear_inferiors): New.
20284	(win32_kill): Don't close the current process handle or the
20285	current thread handle here.  Instead call win32_clear_inferiors.
20286	(win32_detach): Don't open a new handle to the process.  Call
20287	win32_clear_inferiors.
20288	(win32_join): Don't rely on current_process_handle; open a new
20289	handle using the process id.
20290	(win32_wait): Call win32_clear_inferiors when the inferior process
20291	has exited.
20292
202932008-02-14  Daniel Jacobowitz  <dan@codesourcery.com>
20294
20295	* server.c (monitor_show_help): Add "exit".
20296
202972008-02-11  Maxim Grigoriev  <maxim2405@gmail.com>
20298
20299	* Makefile.in (SFILES): Add linux-xtensa-low.c.
20300	(clean): Add reg-xtensa.c.
20301	(linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
20302	* configure.srv (xtensa*-*-linux*) New target.
20303	* linux-xtensa-low.c: New.
20304	* xtensa-xtregs.c: New.
20305
203062008-02-01  Pedro Alves  <pedro_alves@portugalmail.pt>
20307
20308	* hostio.c: Don't include errno.h.
20309	(errno_to_fileio_errno): Move to hostio-errno.
20310	* hostio.c: (hostio_error): Remove the error parameter.  Defer the
20311	error number outputting to the target->hostio_last_error callback.
20312	(hostio_packet_error): Use FILEIO_EINVAL directly.
20313	(handle_open, handle_pread, hostio_error, handle_unlink): Update
20314	calls to hostio_error.
20315	* hostio-errno.c: New.
20316	* server.h (hostio_last_error_from_errno): Declare.
20317	* target.h (target_ops): Add hostio_last_error member.
20318	* linux-low.c (linux_target_op): Register hostio_last_error_from_errno
20319	as hostio_last_error handler.
20320	* spu-low.c (spu_target_ops): Likewise.
20321	* win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
20322	(wince_hostio_last_error): New functions.
20323	(win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
20324	as hostio_last_error handler.
20325	(win32_target_ops) [!_WIN32_WCE]: Register
20326	hostio_last_error_from_errno as hostio_last_error handler.
20327	* Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
20328	(hostio-errno.o): New rule.
20329	* configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
20330	* configure.srv (srv_hostio_err_objs): New variable.  Default to
20331	hostio-errno.o.
20332	(arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
20333	* configure: Regenerate.
20334
203352008-01-29  Daniel Jacobowitz  <dan@codesourcery.com>
20336
20337	* linux-low.c (linux_attach_lwp): Do not _exit after errors.
20338	(linux_kill, linux_detach): Clean up the process list.
20339	* remote-utils.c (remote_open): Improve port number parsing.
20340	(putpkt_binary, input_interrupt): Only send interrupts if the target
20341	is running.
20342	* server.c (extended_protocol): Make static.
20343	(attached): Define earlier.
20344	(exit_requested, response_needed, program_argv): New variables.
20345	(target_running): New.
20346	(start_inferior): Clear attached here.
20347	(attach_inferior): Set attached here.
20348	(require_running): Define.
20349	(handle_query): Use require_running and target_running.  Implement
20350	"monitor exit".
20351	(handle_v_attach, handle_v_run): New.
20352	(handle_v_requests): Use require_running.  Handle vAttach and vRun.
20353	(gdbserver_usage): Update.
20354	(main): Redo argument parsing.  Handle --debug and --multi.  Handle
20355	--attach along with other options or after the port.  Save
20356	program_argv.  Support no initial program.  Resynchronize
20357	communication with GDB after an error.  Handle "monitor exit".
20358	Use require_running and target_running.  Always allow the extended
20359	protocol.  Do not error out for Hc0 or Hc-1.  Do not automatically
20360	restart in extended mode.
20361	* README: Refer to the GDB manual.  Update --attach usage.
20362
203632007-12-20  Andreas Schwab  <schwab@suse.de>
20364
20365	* linux-low.c (STACK_SIZE): Define.
20366	(linux_tracefork_child): Use it.  Use __clone2 on ia64.
20367	(linux_test_for_tracefork): Likewise.
20368
203692007-12-18  Daniel Jacobowitz  <dan@codesourcery.com>
20370
20371	* linux-low.c (linux_wait_for_event): Update messages.  Do not
20372	reinsert auto-delete breakpoints.
20373	* mem-break.c (struct breakpoint): Change return type of handler to
20374	int.
20375	(set_breakpoint_at): Update handler type.
20376	(reinsert_breakpoint_handler): Return 1 instead of calling
20377	delete_breakpoint.
20378	(reinsert_breakpoint_by_bp): Check for the original breakpoint before
20379	setting a new one.
20380	(check_breakpoints): Delete auto-delete breakpoints and return 2.
20381	* mem-break.h (set_breakpoint_at): Update handler type.
20382	* thread-db.c (thread_db_create_event, thread_db_create_event): Update.
20383	* win32-low.c (auto_delete_breakpoint): New.
20384	(get_child_debug_event): Use it.
20385
203862007-12-16  Daniel Jacobowitz  <dan@codesourcery.com>
20387
20388	* configure.ac: Check for pread and pwrite.
20389	* hostio.c (handle_pread): Fall back to lseek and read.
20390	(handle_pwrite): Fall back to lseek and write.
20391	* config.in, configure: Regenerated.
20392
203932007-12-07  Daniel Jacobowitz  <dan@codesourcery.com>
20394
20395	* server.c (myresume): Add own_buf argument.
20396	(main): Update calls.
20397
203982007-12-06  Daniel Jacobowitz  <dan@codesourcery.com>
20399
20400	* linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
20401	* remote-utils.c (remote_open): Do not call disable_async_io.
20402	(block_async_io): Delete.
20403	(unblock_async_io): Make static.
20404	(initialize_async_io): New.
20405	* server.c (handle_v_cont): Handle async I/O here.
20406	(myresume): Likewise.  Move other common resume tasks here...
20407	(main): ... from here.  Call initialize_async_io.  Disable async
20408	I/O before the main loop.
20409	* server.h (initialize_async_io): Declare.
20410	(block_async_io, unblock_async_io): Delete prototypes.
20411	* spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
20412
204132007-12-06  Mick Davis  <mickd@goanna.iinet.net.au>
20414
20415	* remote-utils.c (readchar): Allow binary data in received messages.
20416
204172007-12-03  Pedro Alves  <pedro_alves@portugalmail.pt>
20418
20419	* win32-low.c (attaching): New global.
20420	(win32_create_inferior): Clear the `attaching' global.
20421	(win32_attach): Set the `attaching' global.
20422	(get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
20423	attaching.  Only set a breakpoint at the entry point if not
20424	attaching.
20425
204262007-12-03  Pedro Alves  <pedro_alves@portugalmail.pt>
20427
20428	* server.c (main): Don't report dll events on the initial
20429	connection on attaches.
20430
204312007-12-03  Pedro Alves  <pedro_alves@portugalmail.pt>
20432
20433	* server.c (main): Relax numerical bases supported for the pid of
20434	the --attach command line argument.
20435
204362007-12-03  Pedro Alves  <pedro_alves@portugalmail.pt>
20437
20438	* win32-low.c (win32_attach): Call OpenProcess before
20439	DebugActiveProcess, not after.  Add last error output to error
20440	call.
20441
204422007-12-03  Pedro Alves  <pedro_alves@portugalmail.pt>
20443
20444	* win32-low.c (win32_get_thread_context)
20445	(win32_set_thread_context): New functions.
20446	(thread_rec): Use win32_get_thread_context.
20447	(continue_one_thread, win32_resume): Use win32_set_thread_context.
20448	* win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
20449	field.
20450
204512007-12-03  Leo Zayas
20452	    Pedro Alves  <pedro_alves@portugalmail.pt>
20453
20454	* win32-low.c (soft_interrupt_requested, faked_breakpoint): New
20455	global variables.
20456	(child_add_thread): Minor cleanup.
20457	(child_continue): Resume artificially suspended threads before
20458	calling ContinueDebugEvent.
20459	(suspend_one_thread): New.
20460	(fake_breakpoint_event): New.
20461	(get_child_debug_event): Change return type to int.  Check here if
20462	gdb sent an interrupt request.  If a soft interrupt was requested,
20463	fake a breakpoint event.  Return 0 if there is no event to handle,
20464	and 1 otherwise.
20465	(win32_wait): Don't check here if gdb sent an interrupt request.
20466	Ensure there is a valid event to handle.
20467	(win32_request_interrupt): Add soft interruption method as last
20468	resort.
20469
204702007-12-03  Leo Zayas
20471	    Pedro Alves  <pedro_alves@portugalmail.pt>
20472
20473	* win32-low.h (win32_thread_info): Add descriptions to the
20474	structure members.  Replace `suspend_count' counter by a
20475	`suspended' flag.
20476	* win32-low.c (thread_rec): Update condition of when to get the
20477	context from the inferior.  Rely on ContextFlags being set if it
20478	has already been retrieved.  Only suspend the inferior thread if
20479	we haven't already.  Warn if that fails.
20480	(continue_one_thread): s/suspend_count/suspended/.  Only call
20481	ResumeThread once.  Warn if that fails.
20482
204832007-12-02  Pedro Alves  <pedro_alves@portugalmail.pt>
20484
20485	* win32-low.c (win32_wait): Don't read from the inferior when it
20486	has already exited.
20487
204882007-12-02  Pedro Alves  <pedro_alves@portugalmail.pt>
20489
20490	* Makefile.in (win32_low_h): New variable.
20491	(win32-low.o): Add dependency on $(win32_low_h).
20492	(win32-arm-low.o, win32-i386-low.o): New rules.
20493
204942007-11-30  Daniel Jacobowitz  <dan@codesourcery.com>
20495
20496	* hostio.c: Correct copyright year.
20497
204982007-11-30  Daniel Jacobowitz  <dan@codesourcery.com>
20499
20500	* Makefile.in (OBS): Add hostio.o.
20501	(hostio.o): New rule.
20502	* server.h (handle_vFile): Declare.
20503	* hostio.c: New file.
20504	* server.c (handle_v_requests): Take packet_len and new_packet_len
20505	for binary packets.  Call handle_vFile.
20506	(main): Update call to handle_v_requests.
20507
205082007-11-05  Daniel Jacobowitz  <dan@codesourcery.com>
20509
20510	* linux-low.c: Include <sched.h>.
20511
205122007-11-01  Daniel Jacobowitz  <dan@codesourcery.com>
20513
20514	* linux-low.c (linux_tracefork_grandchild): New.
20515	(linux_tracefork_child): Use clone.
20516	(linux_test_for_tracefork): Use clone; allocate and free a stack.
20517
205182007-10-31  Joel Brobecker  <brobecker@adacore.com>
20519
20520	* Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
20521
205222007-10-24  Daniel Jacobowitz  <dan@codesourcery.com>
20523
20524	* linux-low.c (handle_extended_wait): Handle unexpected signals.
20525
205262007-10-23  Daniel Jacobowitz  <dan@codesourcery.com>
20527
20528	* inferiors.c (change_inferior_id): Delete.
20529	(add_pid_to_list, pull_pid_from_list): New.
20530	* linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
20531	(PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
20532	(PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
20533	(PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
20534	(PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
20535	(PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
20536	(stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
20537	(using_threads): Always set to 1.
20538	(handle_extended_wait): New.
20539	(add_process): Do not set TID.
20540	(linux_create_inferior): Set must_set_ptrace_flags.
20541	(linux_attach_lwp): Remove TID argument.  Do not check using_threads.
20542	Use PTRACE_SETOPTIONS.  Call new_thread_notify.  Update all callers.
20543	(linux_thread_alive): Rename TID argument to LWPID.
20544	(linux_wait_for_process): Handle unknown processes.  Do not use TID.
20545	(linux_wait_for_event): Do not use TID or check using_threads.  Update
20546	call to dead_thread_notify.  Call handle_extended_wait.
20547	(linux_create_inferior): Use PTRACE_SETOPTIONS.
20548	(send_sigstop): Delete sigstop_sent.
20549	(wait_for_sigstop): Avoid TID.
20550	(linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
20551	(linux_test_for_tracefork): New.
20552	(linux_lookup_signals): Use thread_db_active and
20553	linux_supports_tracefork_flag.
20554	(initialize_low): Use thread_db_active and linux_test_for_tracefork.
20555	* linux-low.h (get_process_thread): Avoid TID.
20556	(struct process_ifo): Move thread_known and tid to the end.  Remove
20557	sigstop_sent.
20558	(linux_attach_lwp, thread_db_init): Update prototypes.
20559	* server.h (change_inferior_id): Delete prototype.
20560	(add_pid_to_list, pull_pid_from_list): New prototypes.
20561	* thread-db.c (thread_db_use_events): New.
20562	(find_first_thread): Rename to...
20563	(find_one_thread): ...this.  Update callers and messages.  Do not
20564	call fatal.  Check thread_db_use_events.  Do not call
20565	change_inferior_id or new_thread_notify.
20566	(maybe_attach_thread): Update.  Do not call new_thread_notify.
20567	(thread_db_init): Set thread_db_use_events.  Check use_events.
20568	* utils.c (fatal, warning): Correct message prefix.
20569
205702007-10-15  Daniel Jacobowitz  <dan@codesourcery.com>
20571
20572	* Makefile.in (clean): Remove new files.
20573	(powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
20574	(powerpc-64.o, powerpc-64.c): New rules.
20575	* configure.srv: Use alternate register sets for powerpc64-*-linux*
20576	with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
20577	with SPE.
20578	* linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
20579	SPE targets.
20580	(ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
20581	(PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
20582	(ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
20583	(struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
20584	(target_regsets): Add AltiVec and SPE register sets.
20585	* configure.ac: Check for AltiVec and SPE.
20586	* linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
20587	(ppc_fill_vrregset, ppc_store_vrregset): New.
20588	(target_regsets): Add AltiVec register set.
20589	* configure: Regenerated.
20590
205912007-09-19  Daniel Jacobowitz  <dan@codesourcery.com>
20592
20593	* linux-low.c (O_LARGEFILE): Define.
20594	(linux_read_memory): Use /proc/PID/mem.
20595	* configure.ac: Use AC_GNU_SOURCE.  Check for pread64.
20596	* configure, config.in: Regenerated.
20597
205982007-09-04  Daniel Jacobowitz  <dan@codesourcery.com>
20599
20600	* linux-low.c (linux_wait_for_event): Do not pass signals while
20601	single-stepping.
20602
206032007-09-03  Pedro Alves  <pedro_alves@portugalmail.pt>
20604
20605	* win32-low.c (create_process): New.
20606	(win32_create_inferior): Use create_process instead of
20607	CreateProcess.  If create_process failed retry appending an ".exe"
20608	suffix.  Store the GetLastError result immediatelly after
20609	create_process calls and use it on the call to error.
20610
206112007-09-03  Pedro Alves  <pedro_alves@portugalmail.pt>
20612
20613	* win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
20614
206152007-08-23  Joel Brobecker  <brobecker@adacore.com>
20616
20617	* configure.ac: Switch license to GPLv3.
20618
206192007-08-01  Michael Snyder  <msnyder@access-company.com>
20620
20621	* remote-utils.c (putpkt_binary): Memory leak, free buf2.
20622
206232007-07-31  Pedro Alves  <pedro_alves@portugalmail.pt>
20624
20625	* win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
20626	typedef.
20627	(win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
20628	(load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL.  Get
20629	CloseToolhelp32Snapshot.
20630	(toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
20631	CloseToolhelp32Snapshot.
20632
206332007-07-27  Michael Snyder  <michael.snyder@access-company.com>
20634
20635	* server.c (main): Check for inferior exit before main loop.
20636
206372007-07-18  Pedro Alves  <pedro_alves@portugalmail.pt>
20638
20639	* remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
20640	instead of on tmp_desc.
20641
206422007-07-17  Pedro Alves  <pedro_alves@portugalmail.pt>
20643	    Daniel Jacobowitz  <dan@codesourcery.com>
20644
20645	* inferiors.c (all_dlls, dlls_changed, get_dll): New.
20646	(add_thread): Minor cleanups.
20647	(clear_inferiors): Move lower in the file.  Clear the DLL
20648	list.
20649	(free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
20650	* remote-utils.c (prepare_resume_reply): Check dlls_changed.
20651	(xml_escape_text): New.
20652	* server.c (handle_query): Handle qXfer:libraries:read.  Report it
20653	for qSupported.
20654	(handle_v_cont): Report errors.
20655	(gdbserver_version): Update.
20656	(main): Correct size of own_buf.  Do not report initial DLL events.
20657	* server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
20658	(unloaded_dll, xml_escape_text): New.
20659	* win32-low.c (enum target_waitkind): Update comments.
20660	(win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
20661	(winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
20662	(win32_EnumProcessModules, win32_GetModuleInformation)
20663	(win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
20664	(winapi_CreateToolhelp32Snapshot, winapi_Module32First)
20665	(winapi_Module32Next, win32_CreateToolhelp32Snapshot)
20666	(win32_Module32First, win32_Module32Next, load_toolhelp)
20667	(toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
20668	(get_child_debug_event): Handle DLL events.
20669	(win32_wait): Likewise.
20670
206712007-07-12  Daniel Jacobowitz  <dan@codesourcery.com>
20672
20673	* configure.srv: Set srv_linux_regsets for sh*-*-linux*.
20674	* linux-sh-low.c (sh_fill_gregset, target_regsets): New.
20675
206762007-07-08  Pedro Alves  <pedro_alves@portugalmail.pt>
20677
20678	* win32-low.c (handle_output_debug_string): Ignore event if not
20679	waiting.
20680
206812007-07-08  Pedro Alves  <pedro_alves@portugalmail.pt>
20682
20683	* win32-arm-low.c (arm_wince_breakpoint): Fix typo.
20684
206852007-07-03  Daniel Jacobowitz  <dan@codesourcery.com>
20686
20687	* remote-utils.c (look_up_one_symbol): Handle 'm' packets.
20688
206892007-07-02  Daniel Jacobowitz  <dan@codesourcery.com>
20690
20691	* inferiors.c (change_inferior_id): Add comment.
20692	* linux-low.c (check_removed_breakpoint): Add an early
20693	prototype.  Improve debug output.
20694	(linux_attach): Doc update.
20695	(linux_detach_one_process, linux_detach): Clean up before releasing
20696	each process.
20697	(send_sigstop, wait_for_sigstop): Improve comments and debug output.
20698	* linux-low.h (struct process_info): Doc improvement.
20699	* mem-break.c (delete_all_breakpoints): New.
20700	* mem-break.h (delete_all_breakpoints): New prototype.
20701	* thread-db.c (find_first_thread): New.
20702	(thread_db_create_event): Call it instead of
20703	thread_db_find_new_threads.  Clean up unused variables.
20704	(maybe_attach_thread): Remove first thread handling.
20705	(thread_db_find_new_threads): Use find_first_thread.
20706	(thread_db_get_tls_address): Likewise.
20707
207082007-06-27  Daniel Jacobowitz  <dan@codesourcery.com>
20709
20710	* thread-db.c (thread_db_find_new_threads): Add prototype.
20711	(thread_db_create_event): Check for the main thread before adding
20712	a new thread.
20713	(maybe_attach_thread): Only enable event reporting if TID == 0.
20714	(thread_db_get_tls_address): Check for new threads.
20715
207162007-06-20  Daniel Jacobowitz  <dan@codesourcery.com>
20717
20718	* linux-low.c (linux_create_inferior): Try execv before execvp.
20719	* spu-low.c (spu_create_inferior): Likewise.
20720
207212007-06-13  Mike Frysinger  <vapier@gentoo.org>
20722
20723	* linux-low.c (linux_create_inferior): Change execv to execvp.
20724	* spu-low.c (spu_create_inferior): Likewies.
20725
207262007-06-13  Daniel Jacobowitz  <dan@codesourcery.com>
20727
20728	* Makefile.in (clean): Clean new files instead of deleted ones.
20729	(reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
20730	(mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
20731	rules.
20732	* configure.srv: Specify XML files and new regformats for MIPS and
20733	MIPS64 GNU/Linux.
20734	* linux-mips-low.c (mips_num_regs): Set to only used registers.
20735	(mips_regmap): Do not fetch $0.  Remove unused registers.  Add
20736	an entry for the restart register.
20737	(mips_cannot_fetch_register, mips_cannot_store_register)
20738	(mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
20739	register names to match the XML descriptions.
20740	(mips_fill_gregset, mips_store_gregset): Likewise.  Handle the
20741	restart register instead of $0.
20742
207432007-06-12  Ulrich Weigand  <uweigand@de.ibm.com>
20744	    Markus Deuling  <deuling@de.ibm.com>
20745
20746	* remote-utils.c (decode_xfer_write): New function.
20747	* server.h (decode_xfer_write): Add prototype.
20748	* server.c (handle_query): Add PACKET_LEN argument.  Support
20749	qXfer:spu:read and qXfer:spu:write packets.
20750	(main): Pass packet_len to handle_query.
20751	* spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
20752	* target.h (target_ops): Add qxfer_spu.
20753
207542007-06-12  Ulrich Weigand  <uweigand@de.ibm.com>
20755
20756	* spu-low.c (spu_proc_xfer_spu): Do not return failure when
20757	accessing non-seekable spufs files.
20758
207592007-05-16  Markus Deuling  <deuling@de.ibm.com>
20760
20761	* server.c (handle_query): Add reply for qC packet.
20762
207632007-05-10  Pedro Alves  <pedro_alves@portugalmail.pt>
20764	    Leo Zayas  <lerele@champenstudios@com>
20765
20766	* server.h (check_remote_input_interrupt_request): New function.
20767	* remote_utils.c (INVALID_DESCRIPTOR): New define.
20768	(remote_desc): Initialize with INVALID_DESCRIPTOR.
20769	(input_interrupt): Expose on USE_WIN32API too.  Fix whitespace.
20770	(check_remote_input_interrupt_request): New function.
20771	* server.h (check_remote_input_interrupt_request): Declare.
20772	* win32-low.c (winapi_DebugBreakProcess,
20773	winapi_GenerateConsoleCtrlEvent): New typedefs.
20774	(get_child_debug_event): Lower Win32 debug event polling from 1 sec
20775	to 250 ms.
20776	(win32_wait): Check for remote interrupt request
20777	with check_remote_input_interrupt_request.
20778	(win32_request_interrupt): New function.
20779	(win32_target_op): Set request_interrupt to win32_request_interrupt.
20780
207812007-05-10  Pedro Alves  <pedro_alves@portugalmail.pt>
20782
20783	* win32-low.c (debug_registers_changed,
20784	debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
20785	CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
20786	CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
20787	(thread_rec): Get context using the low target.
20788	(child_add_thread): Call thread_added on the low target,
20789	which does the same thing.
20790	(regptr): Delete.
20791	(do_initial_child_stuff): Remove debug registers references.
20792	Set context using the low target.  Resume threads after
20793	setting the contexts.
20794	(child_continue): Remove dead variable.  Remove debug
20795	registers references.
20796	(child_fetch_inferior_registers): Go through the low target.
20797	(do_child_store_inferior_registers): Remove.
20798	(child_store_inferior_registers): Go through the low target.
20799	(win32_resume): Remove debug registers references.
20800	Set context using the low target.
20801	(handle_exception): Change return type to void.  Don't record
20802	context here.  Set status to TARGET_WAITKIND_SPURIOUS on a
20803	first chance exception.
20804	(get_child_debug_event): Change return type to void.  Remove
20805	goto loop.  Always return after waiting for debug event.
20806	(win32_wait): Convert to switch statement.  Handle spurious
20807	events.
20808
20809	* win32-i386-low.c (debug_registers_changed,
20810	debug_registers_used): New.
20811	(initial_stuff): Rename to ...
20812	(i386_initial_stuff): ... this.  Clear debug registers
20813	state variables.
20814	(store_debug_registers): Delete.
20815	(i386_get_thread_context): New.
20816	(load_debug_registers): Delete.
20817	(i386_set_thread_context): New.
20818	(i386_thread_added): New.
20819	(single_step): Rename to ...
20820	(i386_single_step): ... this.
20821	(do_fetch_inferior_registers): Rename to ...
20822	(i386_fetch_inferior_register): ... this.
20823	(i386_store_inferior_register): New.
20824	(the_low_target): Adapt to new interface.
20825
20826	* win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
20827	(arm_get_thread_context): New.
20828	(arm_set_thread_context): New.
20829	(regptr): New.
20830	(do_fetch_inferior_registers): Rename to ...
20831	(arm_fetch_inferior_register): ... this.
20832	(arm_store_inferior_register): New.
20833	(arm_wince_breakpoint): Reimplement as unsigned long.
20834	(arm_wince_breakpoint_len): Define.
20835	(the_low_target): Adapt to new interface.
20836
20837	* win32-low.h (target_ops): Remove regmap, store_debug_registers and
20838	load_debug_registers.  Add get_thread_context, set_thread_context,
20839	thread_added and store_inferior_register.  Rename
20840	fetch_inferior_registers to fetch_inferior_register.
20841	(regptr): Remove declaration.
20842
208432007-05-10  Pedro Alves  <pedro_alves@portugalmail.pt>
20844
20845	* linux-low.c (linux_detach): Change return type to int.  Return 0.
20846	* spu-low.c (spu_detach): Likewise.
20847
208482007-05-10  Pedro Alves  <pedro_alves@portugalmail.pt>
20849
20850	* target.h (target_ops): Change return type of detach to int.
20851	Add join.
20852	(join_inferior): New.
20853	* server.c (main): Don't skip detach support on mingw32.
20854	If the inferior doesn't support detaching return error.
20855	Call join_inferior instead of using waitpid.
20856	* linux-low.c (linux_join): New.
20857	(linux_target_op): Add linux_join.
20858	* spu-low.c (spu_join): New.
20859	(spu_target_ops): Add spu_join.
20860	* win32-low.c (win32_detach): Adapt to new interface.
20861	Reopen current_process_handle before detaching.  Issue a child
20862	resume before detaching.
20863	(win32_join): New.
20864	(win32_target_op): Add win32_join.
20865
208662007-05-10  Pedro Alves  <pedro_alves@portugalmail.pt>
20867
20868	* win32-low.c (win32-attach): Fix return value.
20869	* target.h (target_ops): Describe ATTACH return values.
20870
208712007-05-10  Pedro Alves  <pedro_alves@portugalmail.pt>
20872
20873	* win32-low.c (GETPROCADDRESS): Define.
20874	(winapi_DebugActiveProcessStop): Add WINAPI.  typedef as pointer.
20875	(winapi_DebugSetProcessKillOnExit): Likewise.
20876	(win32_create_inferior): Force usage of ansi CreateProcessA.
20877	(win32_attach): Use GETPROCADDRESS.
20878	(win32_detach): Likewise.
20879
208802007-05-10  Pedro Alves  <pedro_alves@portugalmail.pt>
20881
20882	* win32-low.c (win32_wait): Don't use WSTOPSIG.
20883
208842007-03-30  Pedro Alves  <pedro_alves@portugalmail.pt>
20885
20886	* win32-low.c: Commit leftover changes from 2007-03-29.
20887
208882007-03-30  Daniel Jacobowitz  <dan@codesourcery.com>
20889
20890	* i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
20891	fields short instead of int.  Add explicit padding.
20892	(i387_cache_to_fsave): Remove unnecessary casts.
20893	(i387_fsave_to_cache): Doc fix.
20894	(i387_cache_to_fxsave): Remove unnecessary casts and masking.
20895
208962007-03-30  Daniel Jacobowitz  <dan@codesourcery.com>
20897
20898	* i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
20899	(i387_fxsave_to_cache): Check fp->ftag while building ftag value.
20900
209012007-03-29  Pedro Alves  <pedro_alves@portugalmail.pt>
20902
20903	* configure.srv (arm*-*-mingw32ce*): Move near the other
20904	arm targets.
20905
209062007-03-29  Pedro Alves  <pedro_alves@portugalmail.pt>
20907
20908	* configure.ac: Add errno checking.
20909	(AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
20910	sys/file.h and malloc.h.
20911	(AC_CHECK_DECLS): Add perror.
20912	(srv_mingwce): Handle.
20913	* configure.srv (i[34567]86-*-cygwin*): Add
20914	win32-i386-low.o to srv_tgtobj.
20915	(i[34567]86-*-mingw*): Likewise.
20916	(arm*-*-mingw32ce*): Add case.
20917	* gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20918	HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
20919	[__MINGW32CE__] (strerror): New function.
20920	[__MINGW32CE__] (errno): Define to GetLastError.
20921	[__MINGW32CE__] (COUNTOF): New macro.
20922	(remote_open): Remove extra close call.
20923	* mem-break.c (delete_breakpoint_at): New function.
20924	* mem-break.h (delete_breakpoint_at): Declare.
20925	* remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20926	HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
20927	[USE_WIN32API] (read, write): Add char* casts.
20928	* server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
20929	* server.h: Include wincecompat.h on Windows CE.
20930	[HAVE_ERRNO_H]: Check.
20931	(perror): Declare if not declared.
20932	* utils.c: Add stdlib.h, errno.h and malloc.h includes.
20933	(perror_with_name): Remove errno declaration.
20934	* wincecompat.h: New.
20935	* wincecompat.c: New.
20936	* win32-low.h: New.
20937	* win32-arm-low.c: New.
20938	* win32-i386-low.c: New.
20939	(win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
20940	(OUTMSG2): Make it safe.
20941	(_T): New macro.
20942	(COUNTOF): New macro.
20943	(NUM_REGS): Get it from the low target.
20944	(CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
20945	CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
20946	(thread_rec): Let low target handle debug registers.
20947	(child_add_thread): Likewise.
20948	(child_init_thread_list): Likewise.
20949	(continue_one_thread): Likewise.
20950	(regptr): New.
20951	(do_child_fetch_inferior_registers): Move to ...
20952	* win32-i386-low.c: ... here, and rename to ...
20953	(do_fetch_inferior_registers): ... this.
20954	* win32-low.c (child_fetch_inferior_registers):
20955	Go through the low target.
20956	(do_child_store_inferior_registers): Use regptr.
20957	(strwinerror): New function.
20958	(win32_create_inferior): Handle Windows CE.
20959	Use strwinerror instead of strerror on Windows error
20960	codes.  Add program to the error output.
20961	Don't close the main thread handle on Windows CE.
20962	(win32_attach): Use coredll.dll on Windows CE.
20963	(win32_kill): Close current process and current
20964	thread handles.
20965	(win32_detach): Use coredll.dll on Windows CE.
20966	(win32_resume): Let low target handle debug registers, and
20967	step request.
20968	(handle_exception): Add/Remove initial breakpoint.  Avoid
20969	non-existant WSTOPSIG on Windows CE.
20970	(win32_read_inferior_memory): Cast to remove warning.
20971	(win32_arch_string): Go through the low target.
20972	(initialize_low): Call set_breakpoint_data with the low
20973	target's breakpoint.
20974	* win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
20975	FOP_REGNUM, mappings): Move to ...
20976	* win32-i386-low.c: ... here.
20977	* win32-low.c (win32_thread_info): Move to ...
20978	* win32-low.h: ... here.
20979	* Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
20980	win32-arm-low.c and wincecompat.c.
20981	(all:): Add $EXEEXT.
20982	(install-only:): Likewise.
20983	(gdbserver:): Likewise.
20984	(gdbreplay:): Likewise.
20985	* config.in: Regenerate.
20986	* configure: Regenerate.
20987
209882007-03-28  Pedro Alves  <pedro_alves@portugalmail.pt>
20989
20990	* win32-low.c: Rename typedef thread_info to
20991	win32_thread_info throughout.
20992
209932007-03-28  Pedro Alves  <pedro_alves@portugalmail.pt>
20994
20995	* win32-i386-low.c: Rename to ...
20996	* win32-low.c: ... this.
20997	* configure.srv: Replace win32-i386-low.o with win32-low.o.
20998	* Makefile.in: Likewise.
20999
210002007-03-27  Pedro Alves  <pedro_alves@portugalmail.pt>
21001
21002	* remote-utils.c (monitor_output): Constify msg parameter.
21003	* server.h (monitor_output): Likewise.
21004	* win32-i386-low.c (handle_output_debug_string): New.
21005	(win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
21006	handle_output_debug_string.
21007	(get_child_debug_event): Likewise.
21008
210092007-03-27  Mat Hostetter  <mat@lcs.mit.edu>
21010
21011	* server.c (main): Correct strtoul check.
21012
210132007-03-27  Jon Ringle  <jon@ringle.org>
21014
21015	* linux-low.c: Check __ARCH_HAS_MMU__ also.
21016
210172007-03-27  Brooks Moses  <brooks.moses@codesourcery.com>
21018
21019	* Makefile.in: Add dummy "pdf" and "install-pdf" targets.
21020
210212007-02-27  Daniel Jacobowitz  <dan@codesourcery.com>
21022
21023	* terminal.h: Check HAVE_SGTTY_H.
21024
210252007-02-27  Mat Hostetter  <mat@lcs.mit.edu>
21026
21027	* remote-utils.c (remote_open): Print out the assigned port number.
21028
210292007-02-26  Daniel Jacobowitz  <dan@codesourcery.com>
21030
21031	* remote-utils.c (monitor_output): New function.
21032	* server.c (debug_threads): Define here.
21033	(monitor_show_help): New function.
21034	(handle_query): Handle qRcmd.
21035	(main): Do not handle 'd' packet.
21036	* server.h (debug_threads, remote_debug, monitor_output): Declare.
21037	* linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
21038	of debug_threads.
21039
210402007-02-25  Pedro Alves  <pedro_alves@portugalmail.pt>
21041
21042	* Makefile.in (EXEEXT): New.
21043	(clean): Use $(EXEEXT).
21044
210452007-02-25  Pedro Alves  <pedro_alves@portugalmail.pt>
21046
21047	* target.h (target_ops): Rename send_signal to request_interrupt,
21048	and remove enum target_signal parameter.
21049	* linux-low.c (linux_request_interrupt): Rename from
21050	linux_send_signal, and always send SIGINT.
21051	* spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
21052	and always send SIGINT.
21053	* remote-utils.c (putpkt_binary): Call request_interrupt, instead
21054	of send_signal.
21055	(input_interrupt): Likewise.
21056
210572007-02-25  Pedro Alves  <pedro_alves@portugalmail.pt>
21058
21059	* server.c (get_features_xml): Check if target implemented
21060	arch_string.
21061	* win32-i386-low.c (win32_arch_string): New.
21062	(win32_target_ops): Add win32_arch_string as arch_string member.
21063
210642007-02-22  Markus Deuling  <deuling@de.ibm.com>
21065
21066	* spu-low.c (spu_arch_string): New.
21067	(spu_target_ops): Add spu_arch_string.
21068
210692007-02-16  Daniel Jacobowitz  <dan@codesourcery.com>
21070
21071	* remote-utils.c: Remove HAVE_TERMINAL_H check.
21072	* configure.ac: Do not check for terminal.h.
21073	* configure, config.in: Regenerated.
21074
210752007-02-08  Daniel Jacobowitz  <dan@codesourcery.com>
21076
21077	* Makefile.in (OBS): Add $(XML_BUILTIN).
21078	(XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
21079	(clean): Update.
21080	(target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
21081	(arm-with-iwmmxt.c): New.
21082	* config.in, configure: Regenerate.
21083	* configure.ac: Check for iWMMXt.  Handle srv_xmltarget,
21084	srv_xmlbuiltin, and srv_xmlfiles.  Define USE_XML.
21085	* configure.srv: Mention srv_xmltarget and srv_xmlfiles.
21086	(arm*-*-linux*): Add iWMMXt and regset support.
21087	* linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
21088	(arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
21089	(arm_store_wmmxregset, target_regsets): New.
21090	* server.c (get_features_xml): Take annex argument.  Check builtin
21091	XML documents.
21092	(handle_query): Handle multiple annexes.
21093
210942007-01-29  Daniel Jacobowitz  <dan@codesourcery.com>
21095
21096	* remote-utils.c [USE_WIN32API] (read, write): Define.
21097	(putpkt_binary, input_interrupt, readchar, getpkt): Use read and
21098	write.
21099
211002007-01-09  Daniel Jacobowitz  <dan@codesourcery.com>
21101
21102	* linux-i386-low.c (the_low_target): Set arch_string.
21103	* linux-x86-64-low.c (the_low_target): Likewise.
21104	* linux-low.c (linux_arch_string): New.
21105	(linux_target_ops): Add it.
21106	* linux-low.h (struct linux_target_ops): Add arch_string.
21107	* server.c (write_qxfer_response): Use const void * for DATA.
21108	(get_features_xml): New.
21109	(handle_query): Handle qXfer:features:read.  Report it for qSupported.
21110	* target.h (struct target_ops): Add arch_string method.
21111
211122007-01-03  Denis Pilat  <denis.pilat@st.com>
21113	    Daniel Jacobowitz  <dan@codesourcery.com>
21114
21115	* linux-low.c (linux_kill): Handle being called with no threads.
21116	* win32-i386-low.c (win32_kill): Likewise.
21117	(get_child_debug_event): Clear current_process_handle.
21118
211192006-12-30  Denis PILAT  <denis.pilat@st.com>
21120	    Daniel Jacobowitz  <dan@codesourcery.com>
21121
21122	* remote-utils.c (remote_open): Check the type of specified
21123	serial port devices before opening them.
21124	* server.c (main): Kill the inferior if an error occurs during
21125	the first remote_open.
21126
211272006-12-05  Markus Deuling  <deuling@de.ibm.com>
21128
21129	* README: Update supported targets.
21130
211312006-11-28  Daniel Jacobowitz  <dan@codesourcery.com>
21132
21133	* Makefile.in (clean): Remove reg-mips64.c.
21134	(reg-mips64.c, reg-mips64.o): New rules.
21135	* configure.srv: Handle mips64.  Include regset support for mips.
21136	* linux-mips-low.c (union mips_register): New.
21137	(mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
21138	(mips_breakpoint, mips_breakpoint_at): Use int.
21139	(mips_collect_register, mips_supply_register)
21140	(mips_collect_register_32bit, mips_supply_register_32bit)
21141	(mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
21142	(mips_store_fpregset, target_regsets): New.
21143	* thread-db.c (thread_db_get_tls_address): Use uintptr_t.
21144
211452006-11-22  Ulrich Weigand  <uweigand@de.ibm.com>
21146
21147	* configure.srv: Add target "spu*-*-*".
21148	* Makefile.in (clean): Remove reg-spu.c.
21149	(reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
21150	* spu-low.c: New file.
21151
211522006-11-16  Daniel Jacobowitz  <dan@codesourcery.com>
21153
21154	* configure.ac: Correct td_thr_tls_get_addr test.
21155	* configure: Regenerated.
21156
211572006-11-16  Daniel Jacobowitz  <dan@codesourcery.com>
21158
21159	* linux-low.c (linux_wait_for_event): Reformat.  Use the
21160	pass_signals array.
21161	* remote-utils.c (decode_address_to_semicolon): New.
21162	* server.c (pass_signals, handle_general_set): New.
21163	(handle_query): Mention QPassSignals for qSupported.
21164	(main): Call handle_general_set.
21165	* server.h (pass_signals, decode_address_to_semicolon): New.
21166
211672006-11-06  Daniel Jacobowitz  <dan@codesourcery.com>
21168
21169	* server.c (handle_query): Correct error handling for read_auxv.
21170
211712005-10-19  Ulrich Weigand  <uweigand@de.ibm.com>
21172
21173	* configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
21174	and srv_linux_thread_db to yes.
21175	* linux-s390-low.c (s390_fill_gregset): New function.
21176	(target_regsets): Define data structure.
21177
211782006-10-17  Daniel Jacobowitz  <dan@codesourcery.com>
21179
21180	* acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
21181	* configure.ac: Use it.  Define HAVE_TD_THR_TLS_GET_ADDR.
21182	* config.in, configure: Regenerated.
21183	* inferiors.c (gdb_id_to_thread): New function.
21184	(gdb_id_to_thread_id): Use it.
21185	* linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
21186	* linux-low.h (struct process_info): Add th member.
21187	(thread_db_get_tls_address): New prototype.
21188	* remote-utils.c (decode_address): Make non-static.
21189	* server.c (handle_query): Handle qGetTLSAddr.
21190	* server.h (gdb_id_to_thread, decode_address): New prototypes.
21191	* target.h (struct target_ops): Add get_tls_address.
21192	* thread-db.c (maybe_attach_thread): Save the thread handle.
21193	(thread_db_get_tls_address): New.
21194
211952006-09-28  Daniel Jacobowitz  <dan@codesourcery.com>
21196
21197	* linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
21198	(linux_resume_one_process): Take a siginfo_t *.  Update all
21199	callers.  Queue it if necessary.  Use PTRACE_SETSIGINFO.
21200	(struct pending_signals): Add a siginfo_t.
21201	(linux_wait_for_process): Always set last_status.
21202	(linux_wait_for_event): Use PTRACE_GETSIGINFO.
21203	(linux_queue_one_thread): Use PTRACE_GETSIGINFO.
21204	* linux-low.h (struct process_info): Add last_status.
21205
212062006-09-21  Daniel Jacobowitz  <dan@codesourcery.com>
21207
21208	* remote-utils.c (try_rle): New function.
21209	(putpkt_binary): Use it.
21210
212112006-08-19  Daniel Jacobowitz  <dan@codesourcery.com>
21212
21213	* Makefile.in (clean): Clean reg-x86-64-linux.c.
21214	(reg-x86-64-linux.o, reg-x86-64-linux.c): New.
21215	* configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
21216	* linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
21217	(x86_64_fill_gregset, x86_64_store_gregset): Skip floating
21218	point registers.
21219
212202006-08-08  Richard Sandiford  <richard@codesourcery.com>
21221
21222	* server.c (terminal_fd): New variable.
21223	(old_foreground_pgrp): Likewise.
21224	(restore_old_foreground_pgrp): New function.
21225	(start_inferior): Record the terminal file descriptor in terminal_fd
21226	and its original foreground group in old_foreground_pgrp.  Register
21227	restore_old_foreground_pgrp with atexit().
21228
212292006-07-26  Daniel Jacobowitz  <dan@codesourcery.com>
21230
21231	* server.c (handle_query): Correct qPart to qXfer.
21232
212332006-07-22  Daniel Jacobowitz  <dan@codesourcery.com>
21234
21235	* configure.ac: Check for more headers which are missing on
21236	Windows.  Automatically supply -lwsock32 and USE_WIN32API.
21237	* configure.srv: Add Cygwin and mingw32.
21238	* remote-utils.c: Don't include headers unconditionally which
21239	are missing on mingw32.  Include <winsock.h> for mingw32.
21240	(remote_open): Adjust for mingw32 support.  Flush
21241	standard error after writing to it.
21242	(remote_close, putpkt_binary, input_interrupt, block_async_io)
21243	(unblock_async_io, enable_async_io, disable_async_io)
21244	(readchar, getpkt): Update for Winsock support.
21245	(prepare_resume_reply): Expect a protocol signal number.
21246	* server.c: Disable <sys/wait.h> on mingw32.
21247	(start_inferior): Adjust for mingw32 support.  Flush
21248	standard error after writing to it.
21249	(attach_inferior): Likewise.  Use protocol signal
21250	numbers.
21251	(main): Skip 'D' packet on mingw32.  Use protocol signal numbers
21252	and names.
21253	* win32-i386-low.c: New file.
21254	* Makefile.in (XM_CLIBS): Set.
21255	(gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
21256	(win32-i386-low.o): New dependency rule.
21257	* linux-low.c (linux_wait): Use target signal numbers.
21258	* target.h (struct target_ops): Doc fix.
21259	* server.h (target_signal_to_name): New prototype.
21260	* gdbreplay.c: Don't include headers unconditionally which
21261	are missing on mingw32.  Include <winsock.h> for mingw32.
21262	(remote_close, remote_open): Adjust for Winsock support.
21263	* configure, config.in: Regenerated.
21264
212652006-07-12  Daniel Jacobowitz  <dan@codesourcery.com>
21266
21267	* server.c (decode_xfer_read, write_qxfer_response): New.
21268	(handle_query): Take a packet length argument.  Handle
21269	qXfer:auxv:read instead of qPart:auxv:read.  Mention it in
21270	the qSupported response.
21271	(main): Update call to handle_query.
21272
212732006-06-22  Daniel Jacobowitz  <dan@codesourcery.com>
21274
21275	* remote-utils.c (remote_escape_output, remote_unescape_input): New.
21276	(putpkt_binary): Renamed from putpkt and adjusted for binary
21277	data.
21278	(putpkt): New wrapper for putpkt_binary.
21279	(readchar): Don't mask off the high bit.
21280	(decode_X_packet): New function.
21281	* server.c (main): Call putpkt_binary if a handler sets the packet
21282	length.  Save the length of the incoming packet.  Handle 'X'.
21283	* server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
21284
212852006-06-21  Daniel Jacobowitz  <dan@codesourcery.com>
21286
21287	* server.c (handle_query): Handle qSupported.
21288
212892006-05-30  Daniel Jacobowitz  <dan@codesourcery.com>
21290
21291	* remote-utils.c (all_symbols_looked_up): New variable.
21292	(look_up_one_symbol): Check it.
21293	* server.h (look_up_one_symbol): New declaration.
21294	* thread-db.c (thread_db_init): Set all_symbols_looked_up.
21295
212962006-05-30  Daniel Jacobowitz  <dan@codesourcery.com>
21297
21298	* Makefile.in (linux-arm-low.o): Update dependencies.
21299	* linux-arm-low.c: Include "gdb_proc_service.h".
21300	(PTRACE_GET_THREAD_AREA): Define.
21301	(ps_get_thread_area): New function.
21302
213032006-05-09  Nathan Sidwell  <nathan@codesourcery.com>
21304
21305	* configure.srv (m68k*-*-uclinux*): New target.
21306	* linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
21307	(linux_resume_one_process): Remove extraneous cast.
21308	(linux_read_offsets): New.
21309	(linux_target_op): Add linux_read_offsets on mmuless systems.
21310	* server.c (handle_query): Add qOffsets logic.
21311	* target.h (struct target_ops): Add read_offsets.
21312
213132006-03-15  Daniel Jacobowitz  <dan@codesourcery.com>
21314
21315	* linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
21316	(PTRACE_GET_THREAD_AREA): Define.
21317	(ps_get_thread_area): New function.
21318	* Makefile.in (linux-i386-low.o, linux-mips-low.o)
21319	(linux-x86-64-low.o): Update.
21320
213212006-03-15  Daniel Jacobowitz  <dan@codesourcery.com>
21322
21323	* configure.ac: Remove checks for prfpregset_t.
21324	* gdb_proc_service.h: New file.
21325	* linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
21326	new "gdb_proc_service.h".
21327	* proc-service.c: Likewise.
21328	(ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
21329	(ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
21330	* Makefile.in (gdb_proc_service_h): Updated.
21331	* configure, config.in: Regenerated.
21332
213332006-03-03  Daniel Jacobowitz  <dan@codesourcery.com>
21334
21335	* remote-utils.c (prepare_resume_reply): Move declaration
21336	of gdb_id_from_wait to the top of the block.
21337
213382006-02-15  Daniel Jacobowitz  <dan@codesourcery.com>
21339
21340	* linux-low.c (regsets_store_inferior_registers): Read the regset
21341	from the target before filling it.
21342
213432006-02-08  Daniel Jacobowitz  <dan@codesourcery.com>
21344
21345	* server.c (attach_inferior): Return SIGTRAP for a successful
21346	attach.
21347
213482006-02-01  Daniel Jacobowitz  <dan@codesourcery.com>
21349
21350	* Makefile.in (OBS): Add version.o.
21351	(STAGESTUFF): Delete.
21352	(version.o): Add dependencies.
21353	(version.c): Replace rule.
21354	(clean): Remove version.c.
21355	* server.c (gdbserver_version): New.
21356	(gdbserver_usage): Use printf.
21357	(main): Handle --version and --help.
21358	* server.h (version, host_name): Add declarations.
21359
213602005-12-23  Eli Zaretskii  <eliz@gnu.org>
21361
21362	* linux-arm-low.c:
21363	* linux-arm-low.c:
21364	* inferiors.c:
21365	* i387-fp.h:
21366	* i387-fp.c:
21367	* gdbreplay.c:
21368	* regcache.c:
21369	* proc-service.c:
21370	* mem-break.h:
21371	* mem-break.c:
21372	* linux-x86-64-low.c:
21373	* linux-sh-low.c:
21374	* linux-s390-low.c:
21375	* linux-ppc64-low.c:
21376	* linux-ppc-low.c:
21377	* linux-mips-low.c:
21378	* linux-m68k-low.c:
21379	* linux-m32r-low.c:
21380	* linux-low.h:
21381	* linux-low.c:
21382	* linux-ia64-low.c:
21383	* linux-i386-low.c:
21384	* linux-crisv32-low.c:
21385	* thread-db.c:
21386	* terminal.h:
21387	* target.h:
21388	* target.c:
21389	* server.h:
21390	* server.c:
21391	* remote-utils.c:
21392	* regcache.h:
21393	* utils.c:
21394	* Makefile.in:
21395	* configure.ac:
21396	* gdbserver.1: Add (C) after Copyright.  Update the FSF
21397	address.
21398
213992005-11-13  Daniel Jacobowitz  <dan@codesourcery.com>
21400
21401	* linux-arm-low.c (arm_eabi_breakpoint): New variable.
21402	(arm_breakpoint_at): Recognize both breakpoints.
21403	(the_low_target): Use the correct breakpoint instruction.
21404
214052005-11-02  Daniel Jacobowitz  <dan@codesourcery.com>
21406
21407	* configure.srv (x86_64-*-linux*): Turn on thread_db support.
21408	* linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
21409	(x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
21410	(the_low_target): Update.
21411
214122005-10-25  Andreas Schwab  <schwab@suse.de>
21413
21414	* server.c (main): Allocate mem_buf with PBUFSIZ bytes.
21415
21416	* linux-ia64-low.c (ia64_regmap): Remove NAT registers.
21417	(ia64_num_regs): Reduce to 462.
21418
214192005-09-17  Daniel Jacobowitz  <dan@codesourcery.com>
21420
21421	* acinclude.m4: Correct quoting.
21422	* aclocal.m4: Regenerated.
21423
21424	Suggested by SZOKOVACS Robert <szo@ies.hu>:
21425	* thread-db.c (thread_db_err_str): Handle TD_VERSION.
21426	(thread_db_init): Call thread_db_err_str.
21427	* configure.ac: Check for TD_VERSION.
21428	* config.in, configure: Regenerated.
21429
214302005-07-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21431
21432	* server.h (error, fatal, warning): Add ATTR_FORMAT.
21433
214342005-07-13  Daniel Jacobowitz  <dan@codesourcery.com>
21435
21436	* configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
21437	is not available.  Define HAVE_PTRACE_GETREGS if it is.
21438	* config.in, configure: Regenerated.
21439	* configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
21440	* linux-i386-low.c, linux-m68k-low.c: Update to use
21441	HAVE_PTRACE_GETREGS.
21442	* linux-low.c (regsets_fetch_inferior_registers)
21443	(regsets_store_inferior_registers): Only return 0 if we processed
21444	GENERAL_REGS.
21445	* linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
21446	* linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
21447
214482005-07-13  Daniel Jacobowitz  <dan@codesourcery.com>
21449
21450	* inferiors.c (struct thread_info): Add gdb_id.
21451	(add_thread): Add gdb_id argument.
21452	(thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
21453	* linux-low.c (linux_create_inferior, linux_attach_lwp): Update
21454	calls to add_thread.
21455	* remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
21456	* server.c (handle_query): Use thread_to_gdb_id.
21457	(handle_v_cont, main): Use gdb_id_to_thread_id.
21458	* server.h (add_thread): Update prototype.
21459	(thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
21460	prototypes.
21461
214622005-07-13  Daniel Jacobowitz  <dan@codesourcery.com>
21463
21464	* linux-low.c (fetch_register, usr_store_inferior_registers): Handle
21465	left-padded registers.
21466	* linux-low.h (struct linux_target_ops): Add left_pad_xfer.
21467	* linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
21468
214692005-07-01  Steve Ellcey  <sje@cup.hp.com>
21470
21471	* configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
21472	* configure: Regenerate.
21473	* config.in: Regenerate.
21474	* server.h (NEED_DECLARATION_STRERROR):
21475	Replace with !HAVE_DECL_STRERROR.
21476
214772005-06-16  Daniel Jacobowitz  <dan@codesourcery.com>
21478
21479	* linux-low.c (linux_wait, linux_send_signal): Don't test
21480	an unsigned long variable for > 0 if it could be MAX_ULONG.
21481	* server.c (myresume): Likewise.
21482	* target.c (set_desired_inferior): Likewise.
21483
214842005-06-13  Mark Kettenis  <kettenis@gnu.org>
21485
21486	* configure.ac: Simplify and improve check for socklen_t.
21487	* configure, config.in: Regenerate.
21488
214892005-06-12  Daniel Jacobowitz  <dan@codesourcery.com>
21490
21491	* acconfig.h: Remove.
21492	* configure.ac: Add a test for socklen_t.  Use three-argument
21493	AC_DEFINE throughout.
21494	* config.in: Regenerated using autoheader 2.59.
21495	* configure: Regenerated.
21496
21497	* gdbreplay.c (socklen_t): Provide a default.
21498	(remote_open): Use socklen_t.
21499	* remote-utils.c (socklen_t): Provide a default.
21500	(remote_open): Use socklen_t.
21501	(convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
21502	unsigned char.
21503
21504	* i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
21505	char for buffers.
21506	* linux-low.c (linux_read_memory, linux_write_memory)
21507	(linux_read_auxv): Likewise.
21508	* mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
21509	(check_mem_write): Likewise.
21510	* mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
21511	Likewise.
21512	* regcache.c (struct inferior_rgcache_data, registers_to_string)
21513	(registers_from_string, register_data): Likewise.
21514	* server.c (handle_query, main): Likewise.
21515	* server.h (convert_ascii_to_int, convert_int_to_ascii)
21516	(decode_M_packet): Likewise.
21517	* target.c (read_inferior_memory, write_inferior_memory): Likewise.
21518	* target.h (struct target_ops): Update read_memory, write_memory,
21519	and read_auxv.
21520	(read_inferior_memory, write_inferior_memory): Update.
21521	* linux-low.h (struct linux_target_ops): Change type of breakpoint
21522	to unsigned char *.
21523	* linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
21524	linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
21525	linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
21526	linux-s390-low.c, linux-sh-low.c: Update for changes in
21527	read_inferior_memory and the_low_target->breakpoint.
21528
215292005-05-28  Daniel Jacobowitz  <dan@codesourcery.com>
21530
21531	* Makefile.in (SFILES): Add linux-ppc64-low.c.
21532	(linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
21533	* configure.srv: Add powerpc64-*-linux*.
21534	* linux-ppc64-low.c: New file.
21535
215362005-05-23  Orjan Friberg  <orjanf@axis.com>
21537
21538	* linux-cris-low.c: New file with support for CRIS.
21539	* linux-crisv32-low.c: Ditto for CRISv32.
21540	* Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
21541	(clean): Add reg-cris.c and reg-crisv32.c.
21542	Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
21543	reg-crisv32.o, and reg-crisv32.c to make rules.
21544	* configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
21545	recognized targets.
21546
215472005-05-16  Ulrich Weigand  <uweigand@de.ibm.com>
21548
21549	* linux-low.c (fetch_register): Ensure buffer size is a multiple
21550	of sizeof (PTRACE_XFER_TYPE).
21551	(usr_store_inferior_registers): Likewise.  Zero out excess bytes.
21552
215532005-05-12  Orjan Friberg  <orjanf@axis.com>
21554
21555	* target.h (struct target_ops): Add insert_watchpoint,
21556	remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
21557	pointers for hardware watchpoint support.
21558	* linux-low.h (struct linux_target_ops): Ditto.
21559	* linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
21560	(linux_stopped_by_watchpoint, linux_stopped_data_address): New.  Add
21561	to linux_target_ops.
21562	* remote-utils.c (prepare_resume_reply): Add watchpoint information to
21563	reply packet.
21564	* server.c (main): Recognize 'Z' and 'z' packets.
21565
215662005-05-10  Ulrich Weigand  <uweigand@de.ibm.com>
21567
21568	* linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
21569	(s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
21570	(the_low_target): Add new members.
21571
215722005-05-04  Daniel Jacobowitz  <dan@codesourcery.com>
21573
21574	* proc-service.c (ps_lgetregs): Search all_processes instead of
21575	all_threads.
21576
215772005-05-04  Daniel Jacobowitz  <dan@codesourcery.com>
21578
21579	* server.c (start_inferior): Change return type to int.
21580	(attach_inferior): Change sigptr to int *.
21581	(handle_v_cont, handle_v_requests): Change signal to int *.
21582	(main): Change signal to int.
21583
215842005-04-15  Kei Sakamoto  <sakamoto.kei@renesas.com>
21585
21586	* Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
21587	* configure.srv: Add m32r*-*-linux*.
21588	* linux-m32r-low.c: New file.
21589
215902005-03-04  Daniel Jacobowitz  <dan@codesourcery.com>
21591
21592	* Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
21593
215942005-03-03  Daniel Jacobowitz  <dan@codesourcery.com>
21595
21596	* inferiors.c (change_inferior_id, add_thread, find_inferior_id):
21597	Take unsigned long arguments for PIDs.
21598	* linux-low.c (add_process, linux_attach_lwp, linux_attach)
21599	(linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
21600	(wait_for_sigstop, linux_resume_one_process)
21601	(regsets_fetch_inferior_registers, linux_send_signal)
21602	(linux_read_auxv): Likewise.  Update the types of variables holding
21603	PIDs.  Update format string specifiers.
21604	* linux-low.h (struct process_info, linux_attach_lwp): Likewise.
21605	* remote-utils.c (prepare_resume_reply): Likewise.
21606	* server.c (cont_thread, general_thread, step_thread)
21607	(thread_from_wait, old_thread_from_wait, signal_pid): Change type to
21608	unsigned long.
21609	(handle_query): Update format specifiers.
21610	(handle_v_cont, main): Use strtoul for thread IDs.
21611	* server.h (struct inferior_list_entry): Use unsigned long for ID.
21612	(add_thread, find_inferior_id, change_inferior_id, cont_thread)
21613	(general_thread, step_thread, thread_from_wait)
21614	(old_thread_from_wait): Update.
21615	* target.h (struct thread_resume): Use unsigned long for THREAD.
21616	(struct target_ops): Use unsigned long for arguments to attach and
21617	thread_alive.
21618
216192005-02-24  Daniel Jacobowitz  <dan@codesourcery.com>
21620
21621	* acinclude.m4: Include bfd/bfd.m4 directly.
21622	* configure.ac: Use AC_ARG_PROGRAM.  Suggested by Aron Griffis
21623	<agriffis@toolchain.org>.
21624	* aclocal.m4, configure: Regenerated.
21625
216262005-01-07  Andrew Cagney  <cagney@gnu.org>
21627
21628	* configure.ac: Rename configure.in, require autoconf 2.59.
21629	* configure: Re-generate.
21630
216312004-12-08  Daniel Jacobowitz  <dan@debian.org>
21632
21633	* acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area.  Reset
21634	LIBS when finished.
21635	* aclocal.m4: Regenerated.
21636	* configure: Regenerated.
21637
216382004-11-21  Andreas Schwab  <schwab@suse.de>
21639
21640	* linux-m68k-low.c (m68k_num_gregs): Define.
21641	(m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
21642	(m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
21643	(m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
21644	(m68k_breakpoint_at): New.  Add to the_low_target.
21645
21646	* configure.srv (m68*-*-linux*): Set srv_linux_regsets and
21647	srv_linux_thread_db to yes.
21648
216492004-10-20  Joel Brobecker  <brobecker@gnat.com>
21650
21651	* linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
21652	(ARCH_SET_FS): Likewise.
21653	(ARCH_GET_FS): Likewise.
21654	(ARCH_GET_GS): Likewise.
21655
216562004-10-16  Daniel Jacobowitz  <dan@debian.org>
21657
21658	* linux-i386-low.c (ps_get_thread_area): New.
21659	* linux-x86-64-low.c (ps_get_thread_area): New.
21660	* linux-low.c: Include <sys/syscall.h>.
21661	(linux_kill_one_process): Don't kill the first thread here.
21662	(linux_kill): Kill the first thread here.
21663	(kill_lwp): New function.
21664	(send_sigstop, linux_send_signal): Use it.
21665	* proc-service.c: Clean up #ifdefs.
21666	(fpregset_info): Delete.
21667	(ps_lgetregs): Update and enable implementation.
21668	(ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
21669	implementations.
21670	* remote-utils.c (struct sym_cache, symbol_cache): New.
21671	(input_interrupt): Print a clearer message.
21672	(async_io_enabled): New variable.
21673	(enable_async_io, disable_async_io): Use it.  Update comments.
21674	(look_up_one_symbol): Use the symbol cache.
21675	* thread-db.c (thread_db_look_up_symbols): New function.
21676	(thread_db_init): Update comments.  Call thread_db_look_up_symbols.
21677
216782004-10-16  Daniel Jacobowitz  <dan@debian.org>
21679
21680	* configure.in: Test for -rdynamic.
21681	* configure: Regenerated.
21682	* Makefile (INTERNAL_LDFLAGS): New.
21683	(gdbserver, gdbreplay): Use it.
21684
216852004-09-02  Andrew Cagney  <cagney@gnu.org>
21686
21687	* Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
21688
216892004-03-23  Daniel Jacobowitz  <drow@mvista.com>
21690
21691	* linux-low.c (linux_wait): Clear all_processes list also.
21692
216932004-03-12  Daniel Jacobowitz  <drow@mvista.com>
21694
21695	* linux-low.c: Include <errno.h>.  Remove extern declaration of
21696	errno.
21697
216982004-03-12  Daniel Jacobowitz  <drow@mvista.com>
21699
21700	* gdbreplay.c, server.h, utils.c: Update copyright years.
21701
217022004-03-04  Nathan J. Williams  <nathanw@wasabisystems.com>
21703
21704	* server.c (main): Print child status or termination signal from
21705	variable 'signal', not 'sig'.
21706
217072004-03-04  Nathan J. Williams  <nathanw@wasabisystems.com>
21708
21709	* linux-low.c (linux_read_memory): Change return type to
21710	int.  Check for and return error from ptrace().
21711	* target.c (read_inferior_memory): Change return type to int.  Pass
21712	back return status from the_target->read_memory().
21713	* target.h (struct target_ops): Adapt *read_memory() prototype.
21714	Update comment.
21715	(read_inferior_memory): Adapt prototype.
21716	* server.c (main): Return an error packet if
21717	read_inferior_memory() returns an error.
21718
217192004-03-04  Daniel Jacobowitz  <drow@mvista.com>
21720
21721	* Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
21722	Unify with other clean targets.
21723
217242004-02-29  Daniel Jacobowitz  <drow@mvista.com>
21725
21726	* server.c (handle_v_cont): Call set_desired_inferior.
21727
217282004-02-29  Daniel Jacobowitz  <drow@mvista.com>
21729
21730	* remote-utils.c (prepare_resume_reply): Always supply "thread:".
21731
217322004-02-29  Daniel Jacobowitz  <drow@mvista.com>
21733
21734	* linux-low.c (linux_wait): Unblock async I/O.
21735	(linux_resume): Block and enable async I/O.
21736	* remote-utils.c (block_async_io, unblock_async_io): New functions.
21737	* server.h (block_async_io, unblock_async_io): Add prototypes.
21738
217392004-02-29  Daniel Jacobowitz  <drow@mvista.com>
21740
21741	* remote-utils.c (remote_open): Print a status notice after
21742	opening a TCP port.
21743	* server.c (attach_inferior): Print a status notice after
21744	attaching.
21745
217462004-02-29  Daniel Jacobowitz  <drow@mvista.com>
21747
21748	* linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
21749
217502004-02-26  Daniel Jacobowitz  <drow@mvista.com>
21751
21752	* remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
21753	error packet.
21754	* server.c, target.h: Update copyright years.
21755
217562004-02-25  Roland McGrath  <roland@redhat.com>
21757
21758	* target.h (struct target_ops): New member `read_auxv'.
21759	* server.c (handle_query): Handle qPart:auxv:read: query using that.
21760	* linux-low.c (linux_read_auxv): New function.
21761	(linux_target_ops): Initialize `read_auxv' member to that.
21762
217632004-02-17  Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21764
21765	Committed by Jim Blandy  <jimb@redhat.com>.
21766
21767	* linux-s390-low.c (s390_num_regs): Update.
21768	(s390_regmap): Remove control registers.  Use __s390x__ predefine
21769	instead of GPR_SIZE to distiguish s390 and s390x targets.
21770
217712004-01-31  Daniel Jacobowitz  <drow@mvista.com>
21772
21773	* linux-low.c: Update copyright year.
21774	(check_removed_breakpoint): Clear pending_is_breakpoint.
21775	(linux_set_resume_request, linux_queue_one_thread)
21776	(resume_status_pending_p): New functions.
21777	(linux_continue_one_thread): Use process->resume.
21778	(linux_resume): Only resume threads if there are no pending events.
21779	* linux-low.h (struct process_info): Add resume request
21780	pointer.
21781
217822004-01-30  Daniel Jacobowitz  <drow@mvista.com>
21783
21784	* regcache.c (new_register_cache): Clear the allocated register
21785	buffer.  Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
21786
217872003-10-13  Daniel Jacobowitz  <drow@mvista.com>
21788
21789	* linux-low.c (linux_resume): Take a struct thread_resume *
21790	argument.
21791	(linux_wait): Update call.
21792	(resume_ptr): New static variable.
21793	(linux_continue_one_thread): Renamed from
21794	linux_continue_one_process.  Use resume_ptr.
21795	(linux_resume): Use linux_continue_one_thread.
21796	* server.c (handle_v_cont, handle_v_requests): New functions.
21797	(myresume): New function.
21798	(main): Handle 'v' case.
21799	* target.h (struct thread_resume): New type.
21800	(struct target_ops): Change argument of "resume" to struct
21801	thread_resume *.
21802	(myresume): Delete macro.
21803
218042003-08-08  H.J. Lu  <hongjiu.lu@intel.com>
21805
21806	* Makefile.in (install-only): Create dest dir. Support DESTDIR.
21807	(uninstall): Support DESTDIR.
21808
21809Mon Jul 21 20:09:34 UTC 2003  Brendan Conoboy  <blc@redhat.com>
21810
21811	* configure.srv: Add xscale*linux copy of arm*linux entry.
21812
218132003-07-24  Daniel Jacobowitz  <drow@mvista.com>
21814
21815	* linux-arm-low.c (arm_reinsert_addr): New function.
21816	(the_low_target): Add arm_reinsert_addr.
21817
218182003-07-08  Mark Kettenis  <kettenis@gnu.org>
21819
21820	* mem-break.c: Remove whitespace at end of file.
21821
218222003-06-28  Daniel Jacobowitz  <drow@mvista.com>
21823
21824	* configure.in: Check whether we need to prototype strerror.
21825	* server.h: Optionally prototype strerror.
21826	* gdbreplay.c (perror_with_name): Use strerror.
21827	* linux-low.c (linux_attach_lwp): Use strerror.
21828	* utils.c (perror_with_name): Use strerror.
21829	* config.in, configure: Regenerated.
21830
218312003-06-28  Daniel Jacobowitz  <drow@mvista.com>
21832
21833	* linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
21834	SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
21835
218362003-06-20  Daniel Jacobowitz  <drow@mvista.com>
21837
21838	* Makefile.in (SFILES): Update.
21839	* low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
21840	low-sun3.c: Remove files.
21841
218422003-06-17  Daniel Jacobowitz  <drow@mvista.com>
21843
21844	* linux-low.c: Move comment to linux_thread_alive where it belonged.
21845	(linux_detach_one_process, linux_detach): New functions.
21846	(linux_target_ops): Add linux_detach.
21847	* server.c (main): Handle 'D' packet.
21848	* target.h (struct target_ops): Add "detach" member.
21849	(detach_inferior): Define.
21850
218512003-06-13  Mark Kettenis  <kettenis@gnu.org>
21852
21853	From Kelley Cook  <kelleycook@wideopenwest.com>:
21854	* configure.srv: Accept i[34567]86 variants.
21855
218562003-06-05  Daniel Jacobowitz  <drow@mvista.com>
21857
21858	* linux-low.c (linux_wait_for_event): Correct comment typos.
21859	(linux_resume_one_process): Call check_removed_breakpoint.
21860	(linux_send_signal): New function.
21861	(linux_target_ops): Add linux_send_signal.
21862	* remote-utils.c (putpkt, input_interrupt): Use send_signal instead
21863	of kill.
21864	* target.h (struct target_ops): Add send_signal.
21865
218662003-05-29  Jim Blandy  <jimb@redhat.com>
21867
21868	* linux-low.c (usr_store_inferior_registers): Transfer buf in
21869	PTRACE_XFER_TYPE-sized chunks, not int-sized chunks.  Otherwise,
21870	if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
21871	away part of the register's value.
21872
218732003-03-26  Daniel Jacobowitz  <drow@mvista.com>
21874
21875	* linux-low.c (linux_create_inferior): Use __SIGRTMIN.
21876	(linux_wait_for_event, linux_init_signals): Likewise.
21877
218782003-03-17  Daniel Jacobowitz  <drow@mvista.com>
21879
21880	* configure.in: Check for stdlib.h.
21881	* configure: Regenerated.
21882	* config.in: Regenerated.
21883
218842003-01-04  Andreas Schwab  <schwab@suse.de>
21885
21886	* linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
21887
218882003-01-02  Andrew Cagney  <ac131313@redhat.com>
21889
21890	* Makefile.in: Remove obsolete code.
21891
218922002-11-20  Daniel Jacobowitz  <drow@mvista.com>
21893
21894	* linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
21895	defined(PT_FPR0_HI).
21896
218972002-11-17  Stuart Hughes  <seh@zee2.com>
21898
21899	* linux-arm-low.c (arm_num_regs): Increase.
21900	(arm_regmap): Include status register.
21901
219022002-11-17  Daniel Jacobowitz  <drow@mvista.com>
21903
21904	* linux-low.c (register_addr): Remove incorrect -1 check.
21905
219062002-08-29  Daniel Jacobowitz  <drow@mvista.com>
21907
21908	* linux-low.c (linux_create_inferior): Call setpgid.  Return
21909	the new PID.
21910	(unstopped_p, linux_signal_pid): Remove.
21911	(linux_target_ops): Remove linux_signal_pid.
21912	* remote-utils.c (putpkt, input_interrupt): Use signal_pid
21913	global instead of target method.
21914	* target.h (struct target_ops): Remove signal_pid.  Update comment
21915	for create_inferior.
21916	* server.c (signal_pid): New variable.
21917	(create_inferior): Set signal_pid.  Block SIGTTOU and SIGTTIN in
21918	gdbserver.  Set the child to be the foreground process group.
21919	(attach_inferior): Set signal_pid.
21920
219212002-08-23  Daniel Jacobowitz  <drow@mvista.com>
21922
21923	* ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
21924
219252002-08-20  Jim Blandy  <jimb@redhat.com>
21926
21927	* Makefile.in (LDFLAGS): Allow the configure script to establish a
21928	default for this.
21929
219302002-08-01  Andrew Cagney  <cagney@redhat.com>
21931
21932	* Makefile.in: Make chill references obsolete.
21933
219342002-07-24  Kevin Buettner  <kevinb@redhat.com>
21935
21936	* configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
21937	* configure: Regenerate.
21938	* config.in: Regenerate.
21939
219402002-07-09  David O'Brien  <obrien@FreeBSD.org>
21941
21942	* gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
21943	(perror_with_name, remote_close, remote_open, expect, play): Static.
21944
219452002-07-04  Michal Ludvig  <mludvig@suse.cz>
21946
21947	* linux-x86-64-low.c (x86_64_regmap): Make it an array of
21948	byte offsets instead of an array of indexes.
21949	(x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
21950
219512002-06-13  Daniel Jacobowitz  <drow@mvista.com>
21952
21953	* regcache.c: Add comment.
21954
219552002-06-11  Daniel Jacobowitz  <drow@mvista.com>
21956
21957	* thread-db.c: New file.
21958	* proc-service.c: New file.
21959	* acinclude.m4: New file.
21960	* Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
21961	proc-service.o, and thread-db.o.
21962	(linux-low.o): Add USE_THREAD_DB.
21963	* acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
21964	HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
21965	* aclocal.m4: Regenerated.
21966	* config.in: Regenerated.
21967	* configure: Regenerated.
21968	* configure.in: Check for proc_service.h, sys/procfs.h,
21969	thread_db.h, and linux/elf.h headrs.
21970	Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
21971	PRFPREGSET_T_BROKEN.  Introduce srv_thread_depfiles and USE_THREAD_DB.
21972	Check for -lthread_db and thread support.
21973	* configure.srv: Enable thread_db support for ARM, i386, MIPS,
21974	PowerPC, and SuperH.
21975	* i387-fp.c: Constify arguments.
21976	* i387-fp.h: Likewise.
21977	* inferiors.c: (struct thread_info): Renamed from
21978	`struct inferior_info'.  Remove PID member.  Use generic inferior
21979	list header.  All uses updated.
21980	(inferiors, signal_pid): Removed.
21981	(all_threads): New variable.
21982	(get_thread): Define.
21983	(add_inferior_to_list): New function.
21984	(for_each_inferior): New function.
21985	(change_inferior_id): New function.
21986	(add_inferior): Removed.
21987	(remove_inferior): New function.
21988	(add_thread): New function.
21989	(free_one_thread): New function.
21990	(remove_thread): New function.
21991	(clear_inferiors): Use for_each_inferior and free_one_thread.
21992	(find_inferior): New function.
21993	(find_inferior_id): New function.
21994	(inferior_target_data): Update argument type.
21995	(set_inferior_target_data): Likewise.
21996	(inferior_regcache_data): Likewise.
21997	(set_inferior_regcache_data): Likewise.
21998	* linux-low.c (linux_bp_reinsert): Remove.
21999	(all_processes, stopping_threads, using_thrads)
22000	(struct pending_signals, debug_threads, pid_of): New.
22001	(inferior_pid): Replace with macro.
22002	(struct inferior_linux_data): Remove.
22003	(get_stop_pc, add_process): New functions.
22004	(linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
22005	Use add_process and add_thread.
22006	(linux_attach_lwp): New function, based on old linux_attach.  Use
22007	add_process and add_thread.  Set stop_expected for new threads.
22008	(linux_attach): New function.
22009	(linux_kill_one_process): New function.
22010	(linux_kill): Kill all LWPs.
22011	(linux_thread_alive): Use find_inferior_id.
22012	(check_removed_breakpoints, status_pending_p): New functions.
22013	(linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
22014	Update.  Use WNOHANG.  Wait for cloned processes also.  Update process
22015	struct for the found process.
22016	(linux_wait_for_event): New function.
22017	(linux_wait): Use it.  Support LWPs.
22018	(send_sigstop, wait_for_sigstop, stop_all_processes)
22019	(linux_resume_one_process, linux_continue_one_process): New functions.
22020	(linux_resume): Support LWPs.
22021	(REGISTER_RAW_SIZE): Remove.
22022	(fetch_register): Use register_size instead.  Call supply_register.
22023	(usr_store_inferior_registers): Likewise.  Call collect_register.
22024	Fix recursive case.
22025	(regsets_fetch_inferior_registers): Improve error message.
22026	(regsets_store_inferior_registers): Add debugging.
22027	(linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
22028	(unstopped_p, linux_signal_pid): New functions.
22029	(linux_target_ops): Add linux_signal_pid.
22030	(linux_init_signals): New function.
22031	(initialize_low): Call it.  Initialize using_threads.
22032	* regcache.c (inferior_regcache_data): Add valid
22033	flag.
22034	(get_regcache): Fetch registers lazily.  Add fetch argument
22035	and update all callers.
22036	(regcache_invalidate_one, regcache_invalidate): New
22037	functions.
22038	(new_register_cache): Renamed from create_register_cache.
22039	Return the new regcache.
22040	(free_register_cache): Change argument to a void *.
22041	(registers_to_string, registers_from_string): Call get_regcache
22042	with fetch flag set.
22043	(register_data): Make static.  Pass fetch flag to get_regcache.
22044	(supply_register): Call get_regcache with fetch flag clear.
22045	(collect_register): Call get_regcache with fetch flag set.
22046	(collect_register_as_string): New function.
22047	* regcache.h: Update.
22048	* remote-utils.c (putpkt): Flush after debug output and use
22049	stderr.
22050	Handle input interrupts while waiting for an ACK.
22051	(input_interrupt): Use signal_pid method.
22052	(getpkt): Flush after debug output and use stderr.
22053	(outreg): Use collect_register_as_string.
22054	(new_thread_notify, dead_thread_notify): New functions.
22055	(prepare_resume_reply): Check using_threads.  Set thread_from_wait
22056	and general_thread.
22057	(look_up_one_symbol): Flush after debug output.
22058	* server.c (step_thread, server_waiting): New variables.
22059	(start_inferior): Don't use signal_pid.  Update call to mywait.
22060	(attach_inferior): Update call to mywait.
22061	(handle_query): Handle qfThreadInfo and qsThreadInfo.
22062	(main): Don't fetch/store registers explicitly.  Use
22063	set_desired_inferior.  Support proposed ``Hs'' packet.  Update
22064	calls to mywait.
22065	* server.h: Update.
22066	(struct inferior_list, struct_inferior_list_entry): New.
22067	* target.c (set_desired_inferior): New.
22068	(write_inferior_memory): Constify.
22069	(mywait): New function.
22070	* target.h: Update.
22071	(struct target_ops): New signal_pid method.
22072	(mywait): Removed macro, added prototype.
22073
22074	* linux-low.h (regset_func): Removed.
22075	(regset_fill_func, regset_store_func): New.
22076	(enum regset_type): New.
22077	(struct regset_info): Add type field.  Use new operation types.
22078	(struct linux_target_ops): stop_pc renamed to get_pc.
22079	Add decr_pc_after_break and breakpoint_at.
22080	(get_process, get_thread_proess, get_process_thread)
22081	(strut process_info, all_processes, linux_attach_lwp)
22082	(thread_db_init): New.
22083
22084	* linux-arm-low.c (arm_get_pc, arm_set_pc,
22085	arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
22086	(the_low_target): Add new members.
22087	* linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
22088	(i386_store_fpxregset): Constify.
22089	(target_regsets): Add new kind identifier.
22090	(i386_get_pc): Renamed from i386_stop_pc.  Simplify.
22091	(i386_set_pc): Add debugging.
22092	(i386_breakpoint_at): New function.
22093	(the_low_target): Add new members.
22094	* linux-mips-low.c (mips_get_pc, mips_set_pc)
22095	(mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
22096	(mips_breakpoint_at): New.
22097	(the_low_target): Add new members.
22098	* linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
22099	(ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
22100	(the_low_target): Add new members.
22101	* linux-sh-low.c (sh_get_pc, sh_set_pc)
22102	(sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
22103	(the_low_target): Add new members.
22104	* linux-x86-64-low.c (target_regsets): Add new kind
22105	identifier.
22106
221072002-05-15  Daniel Jacobowitz  <drow@mvista.com>
22108
22109	From Martin Pool <mbp@samba.org>:
22110	* server.c (gdbserver_usage): New function.
22111	(main): Call it.
22112
221132002-05-14  Daniel Jacobowitz  <drow@mvista.com>
22114
22115	* mem-break.c (reinsert_breakpoint_by_bp): Correct typo
22116	stop_at -> stop_pc.
22117
221182002-05-04  Andrew Cagney  <ac131313@redhat.com>
22119
22120	* Makefile.in: Remove obsolete code.
22121
221222002-04-24  Michal Ludvig  <mludvig@suse.cz>
22123
22124	* linux-low.c (regsets_fetch_inferior_registers),
22125	(regsets_store_inferior_registers): Removed cast to int from
22126	ptrace() calls.
22127	* regcache.h: Added declaration of struct inferior_info.
22128
221292002-04-20  Daniel Jacobowitz  <drow@mvista.com>
22130
22131	* inferiors.c (struct inferior_info): Add regcache_data.
22132	(add_inferior): Call create_register_cache.
22133	(clear_inferiors): Call free_register_cache.
22134	(inferior_regcache_data, set_inferior_regcache_data): New functions.
22135	* regcache.c (struct inferior_regcache_data): New.
22136	(registers): Remove.
22137	(get_regcache): New function.
22138	(create_register_cache, free_register_cache): New functions.
22139	(set_register_cache): Don't initialize the register cache here.
22140	(registers_to_string, registers_from_string, register_data): Call
22141	get_regcache.
22142	* regcache.h: Add prototypes.
22143	* server.h: Likewise.
22144
221452002-04-20  Daniel Jacobowitz  <drow@mvista.com>
22146
22147	* mem-break.c: New file.
22148	* mem-break.h: New file.
22149	* Makefile.in: Add mem-break.o rule; update server.h
22150	dependencies.
22151	* inferiors.c (struct inferior_info): Add target_data
22152	member.
22153	(clear_inferiors): Free target_data member if set.
22154	(inferior_target_data, set_inferior_target_data): New functions.
22155	* linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
22156	(i386_stop_pc, i386_set_pc): New.  Add to the_low_target.
22157	* linux-low.c (linux_bp_reinsert): New variable.
22158	(struct inferior_linux_data): New.
22159	(linux_create_inferior): Use set_inferior_target_data.
22160	(linux_attach): Likewise.  Call add_inferior.
22161	(linux_wait_for_one_inferior): New function.
22162	(linux_wait): Call it.
22163	(linux_write_memory): Add const.
22164	(initialize_low): Call set_breakpoint_data.
22165	* linux-low.h (struct linux_target_ops): Add breakpoint
22166	handling members.
22167	* server.c (attach_inferior): Remove extra add_inferior
22168	call.
22169	* server.h: Include mem-break.h.  Update inferior.c
22170	prototypes.
22171	* target.c (read_inferior_memory)
22172	(write_inferior_memory): New functions.
22173	* target.h (read_inferior_memory)
22174	(write_inferior_memory): Change macros to prototypes.
22175	(struct target_ops): Update comments.  Add const to write_memory
22176	definition.
22177
221782002-04-11  Daniel Jacobowitz  <drow@mvista.com>
22179
22180	* linux-low.c (usr_store_inferior_registers): Support
22181	registers which are allowed to fail to store.
22182	* linux-low.h (linux_target_ops): Likewise.
22183	* linux-ppc-low.c (ppc_regmap): Support FPSCR.
22184	(ppc_cannot_store_register): FPSCR may not be storable.
22185
221862002-04-09  Daniel Jacobowitz  <drow@mvista.com>
22187
22188	* server.h: Include <string.h> if HAVE_STRING_H.
22189	* ChangeLog: Correct paths in last ChangeLog entry.
22190
221912002-04-09  Daniel Jacobowitz  <drow@mvista.com>
22192
22193	* linux-low.h: Remove obsolete prototypes.
22194	(struct linux_target_ops): New.
22195	(extern the_low_target): New.
22196	* linux-low.c (num_regs, regmap): Remove declarations.
22197	(register_addr): Use the_low_target explicitly.
22198	(fetch_register): Likewise.
22199	(usr_fetch_inferior_registers): Likewise.
22200	(usr_store_inferior_registers): Likewise.
22201	* linux-arm-low.c (num_regs): Remove.
22202	(arm_num_regs): Define.
22203	(arm_regmap): Renamed from regmap, made static.
22204	(arm_cannot_fetch_register): Renamed from cannot_fetch_register,
22205	made static.
22206	(arm_cannot_store_register): Renamed from cannot_store_register,
22207	made static.
22208	(the_low_target): New.
22209	* linux-i386-low.c (num_regs): Remove.
22210	(i386_num_regs): Define.
22211	(i386_regmap): Renamed from regmap, made static.
22212	(i386_cannot_fetch_register): Renamed from cannot_fetch_register,
22213	made static.
22214	(i386_cannot_store_register): Renamed from cannot_store_register,
22215	made static.
22216	(the_low_target): New.
22217	* linux-ia64-low.c (num_regs): Remove.
22218	(ia64_num_regs): Define.
22219	(ia64_regmap): Renamed from regmap, made static.
22220	(ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
22221	made static.
22222	(ia64_cannot_store_register): Renamed from cannot_store_register,
22223	made static.
22224	(the_low_target): New.
22225	* linux-m68k-low.c (num_regs): Remove.
22226	(m68k_num_regs): Define.
22227	(m68k_regmap): Renamed from regmap, made static.
22228	(m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
22229	made static.
22230	(m68k_cannot_store_register): Renamed from cannot_store_register,
22231	made static.
22232	(the_low_target): New.
22233	* linux-mips-low.c (num_regs): Remove.
22234	(mips_num_regs): Define.
22235	(mips_regmap): Renamed from regmap, made static.
22236	(mips_cannot_fetch_register): Renamed from cannot_fetch_register,
22237	made static.
22238	(mips_cannot_store_register): Renamed from cannot_store_register,
22239	made static.
22240	(the_low_target): New.
22241	* linux-ppc-low.c (num_regs): Remove.
22242	(ppc_num_regs): Define.
22243	(ppc_regmap): Renamed from regmap, made static.
22244	(ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
22245	made static.
22246	(ppc_cannot_store_register): Renamed from cannot_store_register,
22247	made static.
22248	(the_low_target): New.
22249	* linux-s390-low.c (num_regs): Remove.
22250	(s390_num_regs): Define.
22251	(s390_regmap): Renamed from regmap, made static.
22252	(s390_cannot_fetch_register): Renamed from cannot_fetch_register,
22253	made static.
22254	(s390_cannot_store_register): Renamed from cannot_store_register,
22255	made static.
22256	(the_low_target): New.
22257	* linux-sh-low.c (num_regs): Remove.
22258	(sh_num_regs): Define.
22259	(sh_regmap): Renamed from regmap, made static.
22260	(sh_cannot_fetch_register): Renamed from cannot_fetch_register,
22261	made static.
22262	(sh_cannot_store_register): Renamed from cannot_store_register,
22263	made static.
22264	(the_low_target): New.
22265	* linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
22266	(the_low_target): New.
22267
222682002-04-09  Daniel Jacobowitz  <drow@mvista.com>
22269
22270	* Makefile.in: Add stamp-h target.
22271	* configure.in: Create stamp-h.
22272	* configure: Regenerated.
22273
222742002-04-09  Daniel Jacobowitz  <drow@mvista.com>
22275
22276	* inferiors.c: New file.
22277	* target.c: New file.
22278	* target.h: New file.
22279	* Makefile.in:  Add target.o and inferiors.o.  Update
22280	dependencies.
22281	* linux-low.c (inferior_pid): New static variable,
22282	moved from server.c.
22283	(linux_create_inferior): Renamed from create_inferior.
22284	Call add_inferior.  Return 0 on success instead of a PID.
22285	(linux_attach): Renamed from myattach.
22286	(linux_kill): Renamed from kill_inferior.  Call clear_inferiors ().
22287	(linux_thread_alive): Renamed from mythread_alive.
22288	(linux_wait): Renamed from mywait.  Call clear_inferiors () if the
22289	child dies.
22290	(linux_resume): Renamed from myresume.  Add missing ``return 0''.
22291	(regsets_store_inferior_registers): Correct error message.
22292	Add missing ``return 0''.
22293	(linux_fetch_registers): Renamed from fetch_inferior_registers.
22294	(linux_store_registers): Renamed from store_inferior_registers.
22295	(linux_read_memory): Renamed from read_inferior_memory.
22296	(linux_write_memory): Renamed from write_inferior_memory.
22297	(linux_target_ops): New structure.
22298	(initialize_low): Call set_target_ops ().
22299	* remote-utils.c (unhexify): New function.
22300	(hexify): New function.
22301	(input_interrupt): Send signals to ``signal_pid''.
22302	* server.c (inferior_pid): Remove.
22303	(start_inferior): Update create_inferior call.
22304	(attach_inferior): Call add_inferior.
22305	(handle_query): New function.
22306	(main): Call handle_query for `q' packets.
22307	* server.h: Include "target.h".  Remove obsolete prototypes.
22308	Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
22309
223102002-04-09  Daniel Jacobowitz  <drow@mvista.com>
22311
22312	* Makefile.in: Add WARN_CFLAGS.  Update configury
22313	dependencies.
22314	* configure.in: Check for <string.h>
22315	* configure: Regenerate.
22316	* config.in: Regenerate.
22317	* gdbreplay.c: Include needed system headers.
22318	(remote_open): Remove strchr prototype.
22319	* linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
22320	* regcache.c (supply_register): Change buf argument to const void *.
22321	(supply_register_by_name): Likewise.
22322	(collect_register): Change buf argument to void *.
22323	(collect_register_by_name): Likewise.
22324	* regcache.h: Add missing prototypes.
22325	* remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
22326	* server.c (handle_query): New function.
22327	(attached): New static variable, moved out of main.
22328	(main): Quiet longjmp clobber warnings.
22329	* server.h: Add ATTR_NORETURN and ATTR_FORMAT.  Update prototypes.
22330	* utils.c (error): Remove NORETURN.
22331	(fatal): Likewise.
22332