gdbsupport: allow passing format string to scoped_debug_start_end
[deliverable/binutils-gdb.git] / gdbserver / ChangeLog
1 2021-04-14 Tom Tromey <tromey@adacore.com>
2
3 * win32-low.cc (windows_nat::handle_load_dll): Don't check
4 _WIN32_WCE.
5
6 2021-04-13 Pedro Alves <pedro@palves.net>
7
8 * gdbreplay.c [__MINGW32CE__] (COUNTOF, errno, strerror): Remove.
9
10 2021-04-13 Tom Tromey <tromey@adacore.com>
11
12 * win32-low.cc (winapi_CreateToolhelp32Snapshot)
13 (winapi_Module32First, winapi_Module32Next): Remove typedefs.
14
15 2021-04-13 Pedro Alves <pedro@palves.net>
16
17 * Makefile.in (SFILES): Remove hostio-errno.cc.
18 * configure: Regenerate.
19 * configure.ac (GDBSERVER_DEPFILES): No longer add
20 $srv_hostio_err_objs.
21 * configure.srv (srv_hostio_err_objs): Delete.
22 * hostio-errno.cc: Delete.
23 * hostio.cc (hostio_error): Inline hostio_last_error_from_errno
24 here.
25 * hostio.h (hostio_last_error_from_errno): Delete.
26 * target.cc (process_stratum_target::hostio_last_error): Delete.
27 * target.h (class process_stratum_target) <hostio_last_error>:
28 Delete.
29
30 2021-04-12 Simon Marchi <simon.marchi@polymtl.ca>
31
32 * win32-low.cc: Remove all code guarded by _WIN32_WCE.
33 * win32-low.h: Likewise.
34
35 2021-04-12 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
36
37 * target.h (class process_stratum_target) <pid_to_exec_file>:
38 Constify the return type. Update the definition/references below.
39 * target.cc (process_stratum_target::pid_to_exec_file)
40 * linux-low.h (class linux_process_target) <pid_to_exec_file>
41 * linux-low.cc (linux_process_target::pid_to_exec_file)
42 * netbsd-low.h (class netbsd_process_target) <pid_to_exec_file>
43 * netbsd-low.cc (netbsd_process_target::pid_to_exec_file)
44 * server.cc (handle_qxfer_exec_file)
45
46 2021-04-11 Eli Zaretskii <eliz@gnu.org>
47
48 * win32-low.cc (win32_add_dll): New function, with body almost
49 identical to what win32_add_all_dlls did. Accepts one argument;
50 if that is non-NULL, returns the file name of the DLL that is
51 loaded at the base address equal to that argument, or NULL if not
52 found. If the argument is NULL, add all the DLLs loaded by the
53 inferior to the list of solibs and return NULL.
54 (win32_add_all_dlls): Now a thin wrapper around win32_add_dll.
55 (windows_nat::handle_load_dll) [!_WIN32_WCE]: If get_image_name
56 failed to glean the file name of the DLL, call win32_add_dll to
57 try harder using the lpBaseOfDll member of the load-DLL event.
58
59 2021-03-30 Luis Machado <luis.machado@linaro.org>
60
61 * server.cc (handle_general_set, handle_query): Update variable
62 to bool and fix verification logic.
63
64 2021-03-24 Luis Machado <luis.machado@linaro.org>
65
66 * Makefile.in (SFILES): Add /../gdb/nat/aarch64-mte-linux-ptrace.c.
67 * configure.srv (aarch64*-*-linux*): Add arch/aarch64-mte-linux.o and
68 nat/aarch64-mte-linux-ptrace.o.
69 * linux-aarch64-low.cc: Include nat/aarch64-mte-linux-ptrace.h.
70 (class aarch64_target) <supports_memory_tagging>
71 <fetch_memtags, store_memtags>: New method overrides.
72 (aarch64_target::supports_memory_tagging)
73 (aarch64_target::fetch_memtags)
74 (aarch64_target::store_memtags): New methods.
75
76 2021-03-24 Luis Machado <luis.machado@linaro.org>
77
78 * linux-aarch64-low.cc (aarch64_fill_mteregset): New function.
79 (aarch64_store_mteregset): New function.
80 (aarch64_regsets): Add MTE register set entry.
81 (aarch64_sve_regsets): Add MTE register set entry.
82
83 2021-03-24 Luis Machado <luis.machado@linaro.org>
84
85 * linux-aarch64-ipa.cc (get_ipa_tdesc): Update call to
86 aarch64_linux_read_description.
87 (initialize_low_tracepoint): Likewise.
88 * linux-aarch64-low.cc (aarch64_target::low_arch_setup): Take MTE flag
89 into account.
90 * linux-aarch64-tdesc.cc (tdesc_aarch64_list): Add one more dimension
91 for MTE.
92 (aarch64_linux_read_description): Add mte_p parameter and update to
93 use it.
94 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add mte_p
95 parameter.
96
97 2021-03-24 Luis Machado <luis.machado@linaro.org>
98
99 * linux-aarch64-low.cc: Include arch/aarch64-mte-linux.h.
100
101 2021-03-24 Luis Machado <luis.machado@linaro.org>
102
103 * server.cc (test_memory_tagging_functions): New function.
104 (captured_main): Register test_memory_tagging_functions.
105
106 2021-03-24 Luis Machado <luis.machado@linaro.org>
107
108 * remote-utils.cc (decode_m_packet_params): Renamed from ...
109 (decode_m_packet): ... this, which now calls decode_m_packet_params.
110 Make char * param/return const char *.
111 (decode_M_packet): Use decode_m_packet_params and make char * param
112 const char *.
113 * remote-utils.h (decode_m_packet_params): New prototype.
114 (decode_m_packet): Constify char pointers.
115 (decode_M_packet): Likewise.
116 * server.cc (create_fetch_memtags_reply)
117 (parse_store_memtags_request): New
118 functions.
119 (handle_general_set): Handle the QMemTags packet.
120 (parse_fetch_memtags_request): New function.
121 (handle_query): Handle the qMemTags packet and advertise memory
122 tagging support.
123 (captured_main): Initialize memory tagging flag.
124 * server.h (struct client_state): Initialize memory tagging flag.
125 * target.cc (process_stratum_target::supports_memory_tagging)
126 (process_stratum_target::fetch_memtags)
127 (process_stratum_target::store_memtags): New methods.
128 * target.h: Include gdbsupport/byte-vector.h.
129 (class process_stratum_target) <supports_memory_tagging>
130 <fetch_memtags, store_memtags>: New class virtual methods.
131 (target_supports_memory_tagging): Define.
132
133 2021-03-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
134
135 * inferiors.h (struct process_info) <all_dlls, dlls_changed>: New
136 fields.
137 * dll.h (loaded_dll)
138 (unloaded_dll): Declare an overloaded version that takes a proc
139 parameter.
140 * dll.cc (loaded_dll)
141 (unloaded_dll): Implement the overloaded versions.
142 (clear_dlls): Clear all process' dll lists.
143 (all_dlls, dlls_changed): Remove the global variables.
144 * remote-utils.cc (prepare_resume_reply): Update to consider a dll
145 list per proc.
146 * server.cc (handle_qxfer_libraries): Ditto.
147 (handle_v_attach): Ditto.
148 (captured_main): Ditto.
149
150 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
151
152 * linux-low.cc (linux_process_target::filter_event): Return
153 void.
154 * linux-low.h (class linux_process_target) <filter_event>:
155 Return void.
156
157 2021-02-12 Tom Tromey <tromey@adacore.com>
158
159 * gdbreplay.cc (remote_desc): Remove.
160 (remote_desc_in, remote_desc_out): New globals.
161 (remote_close): Update.
162 (remote_open): Handle "-".
163 (remote_open): Update.
164 (logchar): Log to stderr.
165 (expect, play): Update.
166
167 2021-02-12 Tom Tromey <tromey@adacore.com>
168
169 * gdbreplay.cc (remote_open): Constify.
170
171 2021-02-05 Paul E. Murphy <murphyp@linux.ibm.com>
172
173 * Makefile.in (UNDO_GNULIB_CFLAGS): Disable
174 gnulib free replacement too.
175 * common-defs.h [USE_WIN32API](read, write): Undefine
176 gnulib versions before defining these macros.
177
178 2021-02-03 Pedro Alves <pedro@palves.net>
179
180 * linux-low.cc (linux_process_target::complete_ongoing_step_over):
181 Discard step SIGTRAP, unless GDB wanted the thread to step.
182
183 2021-02-03 Pedro Alves <pedro@palves.net>
184
185 * server.cc (discard_queued_stop_replies): Don't ever discard the
186 notification at the head of the list.
187
188 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
189
190 * ax.cc (bytecode_address_table): Make static.
191 * debug.cc (debug_file): Make static.
192 * linux-low.cc (stopping_threads): Make static.
193 (step_over_bkpt): Make static.
194 * linux-x86-low.cc (amd64_emit_ops, i386_emit_ops): Make static.
195 * tracepoint.cc (stop_tracing_bkpt, flush_trace_buffer_bkpt,
196 alloced_trace_state_variables, trace_buffer_ctrl,
197 tracing_start_time, tracing_stop_time, tracing_user_name,
198 tracing_notes, tracing_stop_note): Make static.
199
200 2021-01-20 Tom de Vries <tdevries@suse.de>
201
202 * linux-x86-low.cc (collect_register_i386): New function.
203 (x86_fill_gregset): Remove memset. Use collect_register_i386.
204
205 2021-01-07 Tom de Vries <tdevries@suse.de>
206
207 * Makefile.in (LIBIBERTY_NORMAL, LIBIBERTY_NOASAN, LIBIBERTY_PIC):
208 (LIBIBERTY_FOR_SHLIB): New var.
209 (LIBIBERTY): Set using $(LIBIBERTY_NORMAL).
210 (IPA_LIB): Use LIBIBERTY_FOR_SHLIB instead of LIBIBERTY in target rule.
211
212 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
213
214 * debug.cc (debug_print_depth): New.
215
216 2021-01-01 Joel Brobecker <brobecker@adacore.com>
217
218 * server.cc (gdbserver_version): Update copyright year.
219 * gdbreplay.cc (gdbreplay_version): Likewise.
220
221 2020-12-16 Luis Machado <luis.machado@linaro.org>
222
223 * linux-aarch64-low.cc (address_significant): New function.
224 (aarch64_target::low_stopped_data_address): Handle the TBI.
225
226 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
227
228 * Makefile.in (IPA_LIB): Include libiberty library.
229
230 2020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
231
232 * server.cc (gdbserver_usage): Add missing option to usage text.
233 (gdbserver_show_disableable): Likewise.
234
235 2020-11-02 Simon Marchi <simon.marchi@efficios.com>
236
237 * ax.cc: Fix indentation.
238 * dll.cc: Fix indentation.
239 * inferiors.h: Fix indentation.
240 * linux-low.cc: Fix indentation.
241 * linux-nios2-low.cc: Fix indentation.
242 * linux-ppc-ipa.cc: Fix indentation.
243 * linux-ppc-low.cc: Fix indentation.
244 * linux-x86-low.cc: Fix indentation.
245 * linux-xtensa-low.cc: Fix indentation.
246 * regcache.cc: Fix indentation.
247 * server.cc: Fix indentation.
248 * tracepoint.cc: Fix indentation.
249
250 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
251
252 * acinclude.m4: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE +
253 AC_LANG_PROGRAM.
254 * configure: Re-generate.
255
256 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
257
258 * configure: Re-generate.
259
260 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
261
262 * configure: Re-generate.
263
264 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
265
266 * configure: Re-generate.
267
268 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
269
270 * configure: Re-generate.
271
272 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
273
274 * configure.ac: Modernize.
275 * configure: Re-generate.
276
277 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
278
279 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
280 AC_CANONICAL_SYSTEM.
281 * configure: Re-generate.
282
283 2020-10-26 Pedro Alves <pedro@palves.net>
284
285 * netbsd-low.cc (netbsd_waitpid, netbsd_process_target::kill)
286 (netbsd_qxfer_libraries_svr4): Use gdb::handle_eintr without
287 explicit type.
288
289 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
290
291 * acinclude.m4: Update ptrace.m4 path.
292
293 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
294
295 * config.in: Re-generate.
296 * configure: Re-generate.
297
298 2020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
299
300 * server.cc (handle_general_set): Don't use sprintf with
301 argument overlapping buffer.
302
303 2020-10-20 Tom Tromey <tromey@adacore.com>
304
305 PR gdb/26742:
306 * inferiors.cc (remove_thread): Clear current_thread before
307 freeing the thread.
308
309 2020-10-13 Kamil Rytarowski <n54@gmx.com>x
310
311 * netbsd-low.cc (netbsd_tdesc): Remove.
312 (netbsd_add_process): Likewise.
313 (netbsd_process_target::create_inferior): Update.
314
315 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
316
317 * linux-arc-low.cc (arc_linux_read_description): Release the
318 unique_ptr returned from arc_create_target_description.
319
320 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
321
322 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
323 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
324
325 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
326
327 * linux-low.cc (linux_process_target::handle_extended_wait):
328 Release the unique_ptr returned from allocate_target_description.
329 * linux-riscv-low.cc (riscv_target::low_arch_setup): Likewise.
330 * linux-x86-low.cc (tdesc_amd64_linux_no_xml): Change type.
331 (tdesc_i386_linux_no_xml): Change type.
332 (x86_linux_read_description): Borrow pointer from unique_ptr
333 object.
334 (x86_target::get_ipa_tdesc_idx): Likewise.
335 (initialize_low_arch): Likewise.
336 * tdesc.cc (allocate_target_description): Update return type.
337
338 2020-10-07 Tom Tromey <tromey@adacore.com>
339
340 * server.cc (handle_search_memory): Remove dead code.
341
342 2020-10-07 Tom Tromey <tromey@adacore.com>
343
344 * server.cc (handle_search_memory_1): Remove.
345 (handle_search_memory): Use simple_search_memory.
346
347 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
348
349 * Makefile.in (COMPILE): Add CXXFLAGS.
350 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
351 (gdbserver$(EXEEXT)): Add CXXFLAGS.
352 (gdbreplay$(EXEEXT)): Add CXXFLAGS.
353 ($(IPA_LIB)): Add CXXFLAGS.
354 (IPAGENT_COMPILE): Add CXXFLAGS.
355
356 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
357
358 * configure.srv: Support ARC architecture.
359 * Makefile.in: Add linux-arc-low.cc and arch/arc.o.
360 * linux-arc-low.cc: New file.
361
362 2020-10-07 Kamil Rytarowski <n54@gmx.com>
363
364 * netbsd-low.cc (get_dynamic, get_r_debug, read_one_ptr)
365 (netbsd_qxfer_libraries_svr4): Remove "target" argument and update.
366 (netbsd_process_target::qxfer_libraries_svr4): Update.
367
368 2020-10-07 Kamil Rytarowski <n54@gmx.com>
369
370 * netbsd-low.cc: Fix whitespace formatting.
371 * netbsd-amd64-low.cc: Likewise.
372
373 2020-10-07 Kamil Rytarowski <n54@gmx.com>
374
375 * netbsd-low.cc (netbsd_process_target::read_memory)
376 (netbsd_process_target::write_memory): Update.
377
378 2020-10-07 Kamil Rytarowski <n54@gmx.com>
379
380 * netbsd-aarch64-low.cc: Add.
381 * Makefile.in (SFILES): Register "netbsd-aarch64-low.c".
382 * configure.srv: Add aarch64*-*-netbsd*.
383
384 2020-10-06 Shahab Vahedi <shahab@synopsys.com>
385
386 * regcache.cc (register_data): Remove unused "fetch" argument.
387
388 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
389
390 * server.cc (handle_monitor_command): Handle "set
391 debug-event-loop".
392 (captured_main): Handle "--debug-event-loop".
393 (monitor_show_help): Mention new setting.
394 (gdbserver_usage): Mention new flag.
395
396 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
397
398 * linux-low.cc (linux_process_target::async): Pass name to
399 add_file_handler.
400 * remote-utils.cc (handle_accept_event): Likewise.
401 (remote_open): Likewise.
402
403 2020-10-01 Kamil Rytarowski <n54@gmx.com>
404
405 * netbsd-i386-low.cc: Add.
406 * Makefile.in (SFILES): Register "netbsd-i386-low.c".
407 * configure.srv: Add i[34567]86-*-netbsd*.
408
409 2020-10-01 Kamil Rytarowski <n54@gmx.com>
410
411 * netbsd-amd64-low.cc (netbsd_x86_64_arch_setup): Remove.
412 (netbsd_target_regsets): Now const.
413 (the_low_target): Remove.
414 (class netbsd_amd64_target, the_netbsd_amd64_target)
415 (the_netbsd_target): Add.
416 * netbsd-low.cc (netbsd_process_target::post_create_inferior): Call
417 low_arch_setup ().
418 (netbsd_process_target::fetch_registers)
419 (netbsd_process_target::store_registers, initialize_low): Update.
420 (the_netbsd_target): Remove.
421 * netbsd-low.h (netbsd_target_regsets, netbsd_target_ops)
422 (the_low_target, netbsd_tdesc): Remove.
423 (netbsd_process_target::get_regs_info)
424 (netbsd_process_target::low_arch_setup): Add.
425
426 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
427
428 * win32-low.cc: Remove local wow64_process variable.
429 * win32-low.h: Remove local wow64_process variable.
430
431 2020-09-18 Tom Tromey <tromey@adacore.com>
432
433 * netbsd-low.h (class netbsd_process_target) <wait>: Update.
434 * netbsd-low.cc (netbsd_waitpid, netbsd_wait)
435 (netbsd_process_target::wait): Change type of target_options.
436 * win32-low.h (class win32_process_target) <wait>: Update.
437 * win32-low.cc (win32_process_target::wait): Update.
438 * target.h (class process_stratum_target) <wait>: Update.
439 (mywait): Update.
440 * target.cc (mywait, target_wait): Change type of "options".
441 * linux-low.h (class linux_process_target) <wait, wait_1>:
442 Update.
443 * linux-low.cc (linux_process_target::wait)
444 (linux_process_target::wait_1): Update.
445
446 2020-09-15 Tom Tromey <tromey@adacore.com>
447
448 * linux-x86-low.cc (xmltarget_i386_linux_no_xml)
449 (xmltarget_amd64_linux_no_xml): Now arrays.
450
451 2020-09-14 Tom Tromey <tromey@adacore.com>
452
453 * tracepoint.cc (eval_result_names): Now const.
454 * ax.cc (gdb_agent_op_names): Now const.
455
456 2020-09-10 Kamil Rytarowski <n54@gmx.com>
457
458 * netbsd-low.cc: Add.
459 * netbsd-low.h: Likewise.
460 * netbsd-amd64-low.cc: Likewise.
461 * Makefile.in (SFILES): Register "netbsd-low.cc", "netbsd-low.h",
462 "netbsd-amd64-low.cc".
463 * configure.srv: Add x86_64-*-netbsd*.
464
465 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
466
467 * server.cc (captured_main): Accept multiple `--selftest=`
468 options. Pass all `--selftest=` arguments to run_tests.
469
470 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
471
472 * configure, config.in: Regenerate.
473
474 2020-07-26 Eli Zaretskii <eliz@gnu.org>
475
476 * configure.ac (AC_CHECK_HEADERS): Add ws2tcpip.h.
477 When checking whether socklen_t type is defined, use ws2tcpip.h if
478 it is available and sys/socket.h isn't.
479 * configure: Regenerate.
480 * config.in: Regenerate.
481
482 2020-07-22 Pedro Alves <pedro@palves.net>
483
484 * inferiors.cc (switch_to_process): New, moved here from
485 thread-db.cc, and made extern.
486 * inferiors.h (switch_to_process): Declare.
487 * server.cc: Include "gdbsupport/scoped_restore.h".
488 (handle_qxfer_threads_proper): Now returns bool. Prepare to
489 access memory around target calls.
490 (handle_qxfer_threads): Handle errors.
491 * thread-db.cc (switch_to_process): Moved to inferiors.cc.
492
493 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
494
495 * linux-low.cc (stopped_pids): Make static.
496
497 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
498
499 * tdesc.cc (allocate_target_description): Add header comment.
500 (target_desc_deleter::operator()): New function.
501 * tdesc.h (struct target_desc): Declare as final.
502
503 2020-07-13 Simon Marchi <simon.marchi@polymtl.ca>
504
505 * server.cc (handle_query): Use std::vector of
506 std::string for `qsupported` vector. Use separate
507 vector for unknowns.
508 * target.h (class process_stratum_target) <process_qsupported>:
509 Change parameters to array_view of const char *.
510 (target_process_qsupported): Remove `count` parameter.
511 * target.cc (process_stratum_target::process_qsupported): Change
512 parameters to array_view of const char *.
513 * linux-x86-low.cc (class x86_target) <process_qsupported>:
514 Likewise.
515
516 2020-06-29 Tom de Vries <tdevries@suse.de>
517
518 * ax.h: Include gdbsupport/debug_agent.h.
519
520 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
521
522 * tdesc.cc (struct tdesc_compatible_info): New struct.
523 (tdesc_compatible_info_list): New function.
524 (tdesc_compatible_info_arch_name): New function.
525
526 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
527
528 Use std::list to stop pending signal instead of manually-created
529 linked list.
530 * linux-low.h: Include <list>.
531 (struct pending_signal): Move here from linux-low.cc.
532 (struct lwp_info) <pending_signals>
533 <pending_signals_to_report>: Update the type.
534 * linux-low.cc (struct pending_signals): Remove.
535 (linux_process_target::delete_lwp)
536 (linux_process_target::add_lwp)
537 (enqueue_one_deferred_signal)
538 (dequeue_one_deferred_signal)
539 (enqueue_pending_signal)
540 (linux_process_target::resume_one_lwp_throw)
541 (linux_process_target::thread_needs_step_over)
542 (linux_process_target::resume_one_thread)
543 (linux_process_target::proceed_one_lwp): Update the use of pending
544 signal list.
545
546 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
547
548 * Makefile.in (%-generated.cc: ../gdb/regformats/arm/%.dat):
549 Remove.
550
551 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
552
553 * Makefile.in (SFILES): Remove win32-arm-low.cc, wincecompat.cc.
554 * configure.srv: Remove mingw32ce cases.
555 * server.h, win32-low.cc: Remove __MINGW32CE__-guarded code.
556 * win32-low.h (to_back_slashes): Remove.
557 * win32-arm-low.cc, wincecompat.cc, wincecompat.h: Remove.
558
559 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
560
561 * Makefile.in (SFILES): linux-tile-low.cc.
562 * configure.srv: Remove tilegx case.
563 * linux-tile-low.cc: Remove.
564
565 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
566
567 * Makefile.in (SFILES): Remove linux-m32r-low.cc.
568 * configure.srv: Remove m32r case.
569 * linux-m32r-low.cc: Remove.
570
571 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
572
573 * Makefile.in (SFILES): Remove linux-cris-low.c.
574 * configure.srv: Remove cris cases.
575 * linux-cris-low.cc, linux-crisv32-low.cc: Remove.
576
577 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
578
579 * Makefile.in (SFILES): Remove linux-bfin-low.c.
580 * configure.srv: Remove bfin case.
581 * linux-bfin-low.cc: Remove.
582 * linux-low.cc: Remove BFIN-conditional code.
583
584 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
585
586 * configure: Re-generate.
587 * configure.ac: Remove srv_qnx test.
588 * configure.srv: Remove nto case.
589 * nto-low.cc, nto-low.h, nto-x86-low.cc: Remove.
590 * remote-utils.c: Remove __QNX__-guarded code.
591
592 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
593
594 * configure: Re-generate.
595 * configure.ac: Remove srv_lynxos test.
596 * configure.srv: Remove lynxos cases.
597 * lynx-i386-low.cc, lynx-low.cc, lynx-low.h, lynx-ppc-low.c:
598 Remove.
599
600 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
601
602 * README: Fix a few outdated or incoherent things.
603
604 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
605
606 * win32-low.cc (do_initial_child_stuff): Set open_process_used.
607 (win32_clear_inferiors): Use open_process_used.
608 (get_child_debug_event): Likewise.
609
610 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
611
612 PR gdbserver/25893
613 * linux-low.cc (linux_process_target::create_inferior),
614 lynx-low.cc (lynx_process_target::create_inferior),
615 win32-low.cc (win32_process_target::create_inferior): Use
616 construct_inferior_arguments instead of stringify_argv
617 to get string representation which properly escapes
618 special characters.
619 * server.cc (handle_v_run): Just pass empty program arg
620 as such, since any further processing is now handled via
621 construct_inferior_arguments.
622
623 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
624
625 * nto-low.cc (nto_process_target::create_inferior): Pass
626 argv to spawnp function as char **.
627
628 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
629
630 * server.cc (captured_main), (handle_v_run): No longer
631 insert extra NULL element to args vector.
632
633 2020-05-23 Pedro Alves <palves@redhat.com>
634
635 * gdb-safe-ctype.h: New.
636
637 2020-05-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
638
639 * linux-ia64-low.cc (ia64_target::sw_breakpoint_from_kind):
640 Fix incorrect 'gdb_assert_no_reached' to 'gdb_assert_not_reached'.
641 (ia64_target::low_breakpoint_at): Ditto.
642
643 2020-05-15 Hannes Domani <ssbssa@yahoo.de>
644
645 * win32-i386-low.cc (i386_supports_z_point_type): Handle
646 Z_PACKET_HW_BP z_type.
647 (i386_insert_point): Handle raw_bkpt_type type.
648 (i386_remove_point): Likewise.
649
650 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
651
652 * configure.srv <x86_64-*-mingw*, x86_64-*-cygwin*> (srv_tgtobj):
653 Add arch/i386.o.
654 * win32-arm-low.cc (arm_num_regs): New function.
655 (struct win32_target_ops): Use arm_num_regs.
656 * win32-i386-low.cc (win32_get_current_dr): Adapt for WOW64
657 processes.
658 (i386_get_thread_context): Likewise.
659 (i386_prepare_to_resume): Likewise.
660 (i386_thread_added): Likewise.
661 (i386_single_step): Likewise.
662 (i386_fetch_inferior_register): Likewise.
663 (i386_store_inferior_register): Likewise.
664 (i386_arch_setup): Likewise.
665 (i386_win32_num_regs): New function.
666 (struct win32_target_ops): Use i386_win32_num_regs.
667 * win32-low.cc (win32_get_thread_context): Adapt for WOW64
668 processes.
669 (win32_require_context): Likewise.
670 (child_add_thread): Likewise.
671 (do_initial_child_stuff): Likewise.
672 (continue_one_thread): Likewise.
673 (win32_process_target::resume): Likewise.
674 (load_psapi): Likewise.
675 (win32_add_all_dlls): Likewise.
676 (maybe_adjust_pc): Likewise.
677 (win32_process_target::qxfer_siginfo): Likewise.
678 (initialize_low): Likewise.
679 * win32-low.h (struct win32_target_ops): Change num_regs to
680 callback function.
681
682 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
683
684 * configure.ac: Remove check for fs_base/gs_base in
685 user_regs_struct.
686 * configure: Re-generate.
687 * config.in: Re-generate.
688 * linux-x86-low.cc (x86_64_regmap, x86_fill_gregset,
689 x86_store_gregset): Adjust.
690
691 2020-04-22 Hannes Domani <ssbssa@yahoo.de>
692
693 * server.cc (handle_search_memory_1): Fix gdb_read_memory return value
694 comparison.
695
696 2020-04-16 Tom Tromey <tromey@adacore.com>
697
698 * win32-low.cc (windows_nat::handle_access_violation): New
699 function.
700
701 2020-04-15 Simon Marchi <simon.marchi@polymtl.ca>
702
703 * win32-low.cc (get_child_debug_event): Fix format string warning.
704
705 2020-04-13 Tom Tromey <tom@tromey.com>
706
707 * server.h (gdb_fildes_t): Remove typedef.
708 * remote-utils.c (remote_desc, list_desc): Now int.
709 (INVALID_DESCRIPTOR): Remove.
710 (gdb_connected, remote_close)
711 (check_remote_input_interrupt_request): Update.
712 * utils.h (pfildes): Don't declare.
713 * utils.c (pfildes): Remove.
714
715 2020-04-13 Tom Tromey <tom@tromey.com>
716
717 * server.h (handle_serial_event, handle_target_event): Update.
718 * server.c: Don't call initialize_event_loop.
719 (keep_processing_events): New global.
720 (handle_serial_event): Return void. Set keep_processing_events.
721 (handle_target_event): Return void.
722 (start_event_loop): Move from event-loop.c. Rewrite.
723 * remote-utils.c (handle_accept_event): Return void.
724 (reset_readchar): Use delete_timer.
725 (process_remaining): Return void.
726 (reschedule): Use create_timer.
727 * event-loop.h: Remove.
728 * event-loop.cc: Remove.
729 * Makefile.in (OBS): Use gdbsupport/event-loop.o, not event-loop.o.
730
731 2020-04-13 Tom Tromey <tom@tromey.com>
732
733 * server.c (invoke_async_signal_handlers)
734 (check_async_event_handlers, flush_streams, gdb_select): New
735 functions.
736
737 2020-04-13 Tom Tromey <tom@tromey.com>
738
739 * configure: Rebuild.
740 * config.in: Rebuild.
741
742 2020-04-08 Tom Tromey <tromey@adacore.com>
743
744 PR gdb/22992
745 * win32-low.c (child_continue): Call matching_pending_stop.
746 (get_child_debug_event): Call fetch_pending_stop. Push pending
747 stop when needed.
748
749 2020-04-08 Tom Tromey <tromey@adacore.com>
750
751 * win32-low.h (win32_process_target::stopped_by_sw_breakpoint)
752 (win32_process_target::supports_stopped_by_sw_breakpoint):
753 Declare.
754 * win32-low.c (win32_supports_z_point_type): Always handle
755 Z_PACKET_SW_BP.
756 (win32_insert_point): Call insert_memory_breakpoint when needed.
757 (win32_remove_point): Call remove_memory_breakpoint when needed.
758 (win32_process_target::stopped_by_sw_breakpoint)
759 (win32_process_target::supports_stopped_by_sw_breakpoint): New
760 methods.
761 (win32_target_ops): Update.
762 (maybe_adjust_pc): New function.
763 (win32_wait): Call maybe_adjust_pc.
764
765 2020-04-08 Tom Tromey <tromey@adacore.com>
766
767 * win32-low.h (struct win32_target_ops) <decr_pc_after_break>: New
768 field.
769 * win32-i386-low.c (the_low_target): Update.
770 * win32-arm-low.c (the_low_target): Update.
771
772 2020-04-08 Tom Tromey <tromey@adacore.com>
773
774 * win32-low.h (win32_process_target::read_pc)
775 (win32_process_target::write_pc): Declare.
776 * win32-low.c (win32_process_target::read_pc)
777 (win32_process_target::write_pc): New methods.
778 * win32-i386-low.c (i386_win32_get_pc, i386_win32_set_pc): New
779 functions.
780 (the_low_target): Update.
781 * win32-arm-low.c (arm_win32_get_pc, arm_win32_set_pc): New
782 functions.
783 (the_low_target): Update.
784
785 2020-04-08 Tom Tromey <tromey@adacore.com>
786
787 * win32-low.c (win32_kill, get_child_debug_event): Use
788 wait_for_debug_event.
789
790 2020-04-08 Tom Tromey <tromey@adacore.com>
791
792 * win32-low.c (child_continue): Call continue_last_debug_event.
793
794 2020-04-08 Tom Tromey <tromey@adacore.com>
795
796 * win32-low.c (handle_exception): Remove.
797 (windows_nat::handle_ms_vc_exception): New function.
798 (get_child_debug_event): Add "continue_status" parameter.
799 Update.
800 (win32_wait): Update.
801
802 2020-04-08 Tom Tromey <tromey@adacore.com>
803
804 * win32-low.c (windows_nat::handle_load_dll): Rename from
805 handle_load_dll. No longer static.
806 (windows_nat::handle_unload_dll): Rename from handle_unload_dll.
807 No longer static.
808
809 2020-04-08 Tom Tromey <tromey@adacore.com>
810
811 * win32-low.c (handle_output_debug_string): Add parameter. Change
812 return type.
813 (win32_kill, get_child_debug_event): Update.
814
815 2020-04-08 Tom Tromey <tromey@adacore.com>
816
817 * win32-low.c (current_process_handle, current_process_id)
818 (main_thread_id, last_sig, current_event, siginfo_er): Move to
819 nat/windows-nat.c.
820
821 2020-04-08 Tom Tromey <tromey@adacore.com>
822
823 * win32-low.c (get_image_name): Remove.
824 (handle_load_dll): Update.
825
826 2020-04-08 Tom Tromey <tromey@adacore.com>
827
828 * win32-low.c (windows_nat::thread_rec): Rename from thread_rec.
829 No longer static. Change parameters.
830 (child_add_thread, child_fetch_inferior_registers)
831 (child_store_inferior_registers, win32_resume)
832 (win32_get_tib_address): Update.
833
834 2020-04-08 Tom Tromey <tromey@adacore.com>
835
836 * win32-low.h (struct win32_target_ops): Use qualified names where
837 needed.
838 * win32-i386-low.c: Add "using namespace".
839 * win32-low.c: Add "using namespace".
840 * win32-arm-low.c: Add "using namespace".
841
842 2020-04-08 Tom Tromey <tromey@adacore.com>
843
844 * win32-low.c (delete_thread_info): Don't call CloseHandle.
845
846 2020-04-08 Tom Tromey <tromey@adacore.com>
847
848 * win32-low.c (win32_require_context, suspend_one_thread): Use
849 windows_thread_info::suspend.
850 (continue_one_thread): Use windows_thread_info::resume.
851 * configure.srv (srv_tgtobj): Add windows-nat.o when needed.
852
853 2020-04-08 Tom Tromey <tromey@adacore.com>
854
855 * win32-i386-low.c (update_debug_registers)
856 (i386_prepare_to_resume, i386_thread_added): Update.
857
858 2020-04-08 Tom Tromey <tromey@adacore.com>
859
860 * win32-low.c (child_add_thread): Use new.
861 (delete_thread_info): Use delete.
862
863 2020-04-08 Tom Tromey <tromey@adacore.com>
864
865 * win32-low.h (struct windows_thread_info): Remove.
866
867 2020-04-08 Tom Tromey <tromey@adacore.com>
868
869 * win32-low.h (struct windows_thread_info): Rename from
870 win32_thread_info. Remove typedef.
871 (struct win32_target_ops, win32_require_context): Update.
872 * win32-low.c (win32_get_thread_context)
873 (win32_set_thread_context, win32_prepare_to_resume)
874 (win32_require_context, thread_rec, child_add_thread)
875 (delete_thread_info, continue_one_thread)
876 (child_fetch_inferior_registers, child_store_inferior_registers)
877 (win32_resume, suspend_one_thread, win32_get_tib_address):
878 Update.
879 * win32-i386-low.c (update_debug_registers)
880 (win32_get_current_dr, i386_get_thread_context)
881 (i386_prepare_to_resume, i386_thread_added, i386_single_step)
882 (i386_fetch_inferior_register, i386_store_inferior_register):
883 Update.
884 * win32-arm-low.c (arm_get_thread_context)
885 (arm_fetch_inferior_register, arm_store_inferior_register):
886 Update.
887
888 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
889
890 * linux-low.h (struct linux_target_ops): Remove.
891 (the_low_target): Remove.
892 * linux-x86-low.cc (the_low_target): Remove.
893 * linux-aarch64-low.cc (the_low_target): Ditto.
894 * linux-arm-low.cc (the_low_target): Ditto.
895 * linux-bfin-low.cc (the_low_target): Ditto.
896 * linux-cris-low.cc (the_low_target): Ditto.
897 * linux-crisv32-low.cc (the_low_target): Ditto.
898 * linux-ia64-low.cc (the_low_target): Ditto.
899 * linux-m32r-low.cc (the_low_target): Ditto.
900 * linux-m68k-low.cc (the_low_target): Ditto.
901 * linux-mips-low.cc (the_low_target): Ditto.
902 * linux-nios2-low.cc (the_low_target): Ditto.
903 * linux-ppc-low.cc (the_low_target): Ditto.
904 * linux-riscv-low.cc (the_low_target): Ditto.
905 * linux-s390-low.cc (the_low_target): Ditto.
906 * linux-sh-low.cc (the_low_target): Ditto.
907 * linux-sparc-low.cc (the_low_target): Ditto.
908 * linux-tic6x-low.cc (the_low_target): Ditto.
909 * linux-tile-low.cc (the_low_target): Ditto.
910 * linux-xtensa-low.cc (the_low_target): Ditto.
911
912 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
913
914 Remove the 'get_ipa_tdesc_idx' linux target op and let a concrete
915 linux target define the op by overriding the declaration in
916 process_stratum_target.
917
918 * linux-low.h (struct linux_target_ops): Remove the op.
919 (class linux_process_target) <get_ipa_tdesc_idx>: Remove.
920 * linux-low.cc (linux_process_target::get_ipa_tdesc_idx): Remove.
921 * linux-x86-low.cc (class x86_target) <get_ipa_tdesc_idx>: Declare.
922 (x86_get_ipa_tdesc_idx): Turn into...
923 (x86_target::get_ipa_tdesc_idx): ...this.
924 (the_low_target): Remove the op field.
925 * linux-ppc-low.cc (class ppc_target) <get_ipa_tdesc_idx>: Declare.
926 (ppc_get_ipa_tdesc_idx): Turn into...
927 (ppc_target::get_ipa_tdesc_idx): ...this.
928 (the_low_target): Remove the op field.
929 * linux-s390-low.cc (class s390_target) <get_ipa_tdesc_idx>: Declare.
930 (s390_get_ipa_tdesc_idx): Turn into...
931 (s390_target::get_ipa_tdesc_idx): ...this.
932 (the_low_target): Remove the op field.
933
934 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
935
936 Turn the 'get_syscall_trapinfo' linux target op into a method
937 of process_stratum_target.
938
939 * linux-low.h (struct linux_target_ops): Remove the op.
940 (class linux_process_target) <get_syscall_trapinfo>
941 <gdb_catch_this_syscall>
942 <low_supports_catch_syscall>
943 <low_get_syscall_trapinfo>: Declare.
944 * linux-low.cc (get_syscall_trapinfo): Turn into...
945 (linux_process_target::get_syscall_trapinfo): ...this.
946 (linux_process_target::low_get_syscall_trapinfo): Define.
947 (gdb_catch_this_syscall_p): Turn into...
948 (linux_process_target::gdb_catch_this_syscall): ...this.
949 (linux_process_target::low_supports_catch_syscall): Define.
950
951 Update the callers below.
952
953 (linux_process_target::wait_1)
954 (linux_process_target::supports_catch_syscall)
955
956 * linux-x86-low.cc (class x86_target) <low_supports_catch_syscall>
957 <low_get_syscall_trapinfo>: Declare.
958 (x86_target::low_supports_catch_syscall): Define.
959 (x86_get_syscall_trapinfo): Turn into...
960 (x86_target::low_get_syscall_trapinfo): ...this.
961 (the_low_target): Remove the op field.
962 * linux-aarch64-low.cc (class aarch64_target)
963 <low_supports_catch_syscall>
964 <low_get_syscall_trapinfo>: Declare.
965 (aarch64_target::low_supports_catch_syscall): Define.
966 (aarch64_get_syscall_trapinfo): Turn into...
967 (aarch64_target::low_get_syscall_trapinfo): ...this.
968 (the_low_target): Remove the op field.
969 * linux-arm-low.cc (class arm_target) <low_supports_catch_syscall>
970 <low_get_syscall_trapinfo>: Declare.
971 (arm_target::low_supports_catch_syscall): Define.
972 (arm_get_syscall_trapinfo): Turn into...
973 (arm_target::low_get_syscall_trapinfo): ...this.
974 (the_low_target): Remove the op field.
975 * linux-ppc-low.cc (the_low_target): Remove the op field.
976 * linux-s390-low.cc (the_low_target): Remove the op field.
977
978 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
979
980 Remove the 'supports_hardware_single_step' linux target op and
981 override the process_stratum_target's op definition in
982 linux_process_target to return true.
983
984 * linux-low.h (struct linux_target_ops): Remove the op.
985 (class linux_process_target) <finish_step_over>
986 <maybe_hw_step>: Declare.
987 * linux-low.cc (can_hardware_single_step): Remove.
988 (maybe_hw_step): Turn into...
989 (linux_process_target::maybe_hw_step): ...this.
990 (finish_step_over): Turn into...
991 (linux_process_target::finish_step_over): ...this.
992 (linux_process_target::supports_hardware_single_step): Update
993 to return true.
994
995 Update the callers below.
996
997 (linux_process_target::single_step)
998 (linux_process_target::resume_one_lwp_throw)
999
1000 * linux-arm-low.cc (class arm_target)
1001 <supports_hardware_single_step>: Declare.
1002 (arm_supports_hardware_single_step): Turn into...
1003 (arm_target::supports_hardware_single_step): ...this.
1004 (the_low_target): Remove the op field.
1005 * linux-x86-low.cc (x86_supports_hardware_single_step): Remove.
1006 (the_low_target): Remove the op field.
1007 * linux-aarch64-low.cc (aarch64_supports_hardware_single_step):
1008 Remove.
1009 (the_low_target): Remove the op field.
1010 * linux-bfin-low.cc (bfin_supports_hardware_single_step): Remove.
1011 (the_low_target): Remove the op field.
1012 * linux-crisv32-low.cc (cris_supports_hardware_single_step): Remove.
1013 (the_low_target): Remove the op field.
1014 * linux-m32r-low.cc (m32r_supports_hardware_single_step): Remove.
1015 (the_low_target): Remove the op field.
1016 * linux-m68k-low.cc (m68k_supports_hardware_single_step): Remove.
1017 (the_low_target): Remove the op field.
1018 * linux-ppc-low.cc (ppc_supports_hardware_single_step): Remove.
1019 (the_low_target): Remove the op field.
1020 * linux-s390-low.cc (s390_supports_hardware_single_step): Remove.
1021 (the_low_target): Remove the op field.
1022 * linux-sh-low.cc (sh_supports_hardware_single_step): Remove.
1023 (the_low_target): Remove the op field.
1024 * linux-tic6x-low.cc (tic6x_supports_hardware_single_step): Remove.
1025 (the_low_target): Remove the op field.
1026 * linux-tile-low.cc (tile_supports_hardware_single_step): Remove.
1027 (the_low_target): Remove the op field.
1028 * linux-xtensa-low.cc (xtensa_supports_hardware_single_step):
1029 Remove.
1030 (the_low_target): Remove the op field.
1031
1032 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1033
1034 Turn the 'supports_range_stepping' linux target op into a method
1035 of linux_process_target.
1036
1037 * linux-low.h (struct linux_target_ops): Remove the op.
1038 (class linux_process_target) <low_supports_range_stepping>: Declare.
1039 * linux-low.cc (linux_process_target::low_supports_range_stepping):
1040 Define.
1041 (linux_process_target::supports_range_stepping): Update the call
1042 site.
1043 * linux-x86-low.cc (class x86_target)
1044 <low_supports_range_stepping>: Declare.
1045 (x86_supports_range_stepping): Turn into...
1046 (x86_target::low_supports_range_stepping): ...this.
1047 (the_low_target): Remove the op field.
1048 * linux-aarch64-low.cc (class aarch64_target)
1049 <low_supports_range_stepping>: Declare.
1050 (aarch64_supports_range_stepping): Turn into...
1051 (aarch64_target::low_supports_range_stepping): ...this.
1052 (the_low_target): Remove the op field.
1053 * linux-arm-low.cc (the_low_target): Remove the op field.
1054 * linux-bfin-low.cc (the_low_target): Ditto.
1055 * linux-crisv32-low.cc (the_low_target): Ditto.
1056 * linux-m32r-low.cc (the_low_target): Ditto.
1057 * linux-m68k-low.cc (the_low_target): Ditto.
1058 * linux-ppc-low.cc (the_low_target): Ditto.
1059 * linux-s390-low.cc (the_low_target): Ditto.
1060 * linux-sh-low.cc (the_low_target): Ditto.
1061 * linux-tic6x-low.cc (the_low_target): Ditto.
1062 * linux-tile-low.cc (the_low_target): Ditto.
1063 * linux-xtensa-low.cc (the_low_target): Ditto.
1064
1065 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1066
1067 Remove the 'emit_ops' linux target ops and let the concrete
1068 linux target define the op by overriding the declaration of
1069 process_stratum_target.
1070
1071 * linux-low.h (struct linux_target_ops): Remove the op.
1072 (class linux_process_target) <emit_ops>: Remove.
1073 * linux-low.cc (linux_process_target::emit_ops): Remove.
1074 * linux-x86-low.cc (class x86_target) <emit_ops>: Declare.
1075 (x86_emit_ops): Turn into...
1076 (x86_target::emit_ops): ...this.
1077 (the_low_target): Remove the op field.
1078 * linux-aarch64-low.cc (class aarch64_target) <emit_ops>: Declare.
1079 (aarch64_emit_ops): Turn into...
1080 (aarch64_target::emit_ops): ...this.
1081 (the_low_target): Remove the op field.
1082 * linux-ppc-low.cc (class ppc_target) <emit_ops>: Declare.
1083 (ppc_emit_ops): Turn into...
1084 (ppc_target::emit_ops): ...this.
1085 (the_low_target): Remove the op field.
1086 * linux-s390-low.cc (class s390_target) <emit_ops>: Declare.
1087 (s390_emit_ops): Turn into...
1088 (s390_target::emit_ops): ...this.
1089 (the_low_target): Remove the op field.
1090 * linux-arm-low.cc (the_low_target): Remove the op field.
1091 * linux-bfin-low.cc (the_low_target): Ditto.
1092 * linux-crisv32-low.cc (the_low_target): Ditto.
1093 * linux-m32r-low.cc (the_low_target): Ditto.
1094 * linux-m68k-low.cc (the_low_target): Ditto.
1095 * linux-sh-low.cc (the_low_target): Ditto.
1096 * linux-tic6x-low.cc (the_low_target): Ditto.
1097 * linux-tile-low.cc (the_low_target): Ditto.
1098 * linux-xtensa-low.cc (the_low_target): Ditto.
1099
1100 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1101
1102 Remove the 'install_fast_tracepoint_jump_pad' and
1103 'get_min_fast_tracepoint_insn_len' linux target ops to let the
1104 concrete linux target define the ops by overriding the declarations
1105 of process_stratum_target.
1106
1107 * linux-low.h (struct linux_target_ops): Remove the ops.
1108 (class linux_process_target) <supports_fast_tracepoints>
1109 <install_fast_tracepoint_jump_pad>
1110 <get_min_fast_tracepoint_insn_len>: Remove.
1111 * linux-low.cc (linux_process_target::supports_fast_tracepoints)
1112 (linux_process_target::install_fast_tracepoint_jump_pad)
1113 (linux_process_target::get_min_fast_tracepoint_insn_len): Remove.
1114 * linux-x86-low.cc (class x86_target) <supports_fast_tracepoints>
1115 <install_fast_tracepoint_jump_pad>
1116 <get_min_fast_tracepoint_insn_len>: Declare.
1117 (x86_target::supports_fast_tracepoints): Define.
1118 (x86_install_fast_tracepoint_jump_pad): Turn into...
1119 (x86_target::install_fast_tracepoint_jump_pad): ...this.
1120 (x86_get_min_fast_tracepoint_insn_len): Turn into...
1121 (x86_target::get_min_fast_tracepoint_insn_len): ...this.
1122 (the_low_target): Remove the op fields.
1123 * linux-aarch64-low.cc (class aarch64_target)
1124 <supports_fast_tracepoints>
1125 <install_fast_tracepoint_jump_pad>
1126 <get_min_fast_tracepoint_insn_len>: Declare.
1127 (aarch64_target::supports_fast_tracepoints): Define.
1128 (aarch64_install_fast_tracepoint_jump_pad): Turn into...
1129 (aarch64_target::install_fast_tracepoint_jump_pad): ...this.
1130 (aarch64_get_min_fast_tracepoint_insn_len): Turn into...
1131 (aarch64_target::get_min_fast_tracepoint_insn_len): ...this.
1132 (the_low_target): Remove the op fields.
1133 * linux-ppc-low.cc (class ppc_target) <supports_fast_tracepoints>
1134 <install_fast_tracepoint_jump_pad>
1135 <get_min_fast_tracepoint_insn_len>: Declare.
1136 (ppc_target::supports_fast_tracepoints): Define.
1137 (ppc_install_fast_tracepoint_jump_pad): Turn into...
1138 (ppc_target::install_fast_tracepoint_jump_pad): ...this.
1139 (ppc_get_min_fast_tracepoint_insn_len): Turn into...
1140 (ppc_target::get_min_fast_tracepoint_insn_len): ...this.
1141 (the_low_target): Remove the op fields.
1142 * linux-s390-low.cc (class s390_target) <supports_fast_tracepoints>
1143 <install_fast_tracepoint_jump_pad>
1144 <get_min_fast_tracepoint_insn_len>: Declare.
1145 (s390_target::supports_fast_tracepoints): Define.
1146 (s390_install_fast_tracepoint_jump_pad): Turn into...
1147 (s390_target::install_fast_tracepoint_jump_pad): ...this.
1148 (s390_get_min_fast_tracepoint_insn_len): Turn into...
1149 (s390_target::get_min_fast_tracepoint_insn_len): ...this.
1150 (the_low_target): Remove the op fields.
1151 * linux-arm-low.cc (the_low_target): Remove the op fields.
1152 * linux-bfin-low.cc (the_low_target): Ditto.
1153 * linux-crisv32-low.cc (the_low_target): Ditto.
1154 * linux-m32r-low.cc (the_low_target): Ditto.
1155 * linux-m68k-low.cc (the_low_target): Ditto.
1156 * linux-sh-low.cc (the_low_target): Ditto.
1157 * linux-tic6x-low.cc (the_low_target): Ditto.
1158 * linux-tile-low.cc (the_low_target): Ditto.
1159 * linux-xtensa-low.cc (the_low_target): Ditto.
1160
1161 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1162
1163 Turn the 'get_thread_area' linux target op into a method of
1164 process_stratum_target.
1165
1166 * linux-low.h (struct linux_target_ops): Remove the op.
1167 (class linux_process_target) <stuck_in_jump_pad>
1168 <linux_fast_tracepoint_collecting>
1169 <low_get_thread_area>: Declare.
1170 * linux-low.cc (supports_fast_tracepoints): Remove.
1171 (linux_fast_tracepoint_collecting): Turn into...
1172 (linux_process_target::linux_fast_tracepoint_collecting): ...this.
1173 (linux_process_target::low_get_thread_area): Define.
1174 (stuck_in_jump_pad_callback): Turn into...
1175 (linux_process_target::stuck_in_jump_pad): ...this.
1176
1177 Update the caller below.
1178
1179 (linux_process_target::stabilize_threads)
1180
1181 * linux-x86-low.cc (class x86_target) <low_get_thread_area>:
1182 Declare.
1183 (x86_get_thread_area): Turn into...
1184 (x86_target::low_get_thread_area): ...this.
1185 (the_low_target): Remove the op field.
1186 * linux-aarch64-low.cc (class aarch64_target) <low_get_thread_area>:
1187 Declare.
1188 (aarch64_get_thread_area): Turn into...
1189 (aarch64_target::low_get_thread_area): ...this.
1190 (the_low_target): Remove the op field.
1191 * linux-ppc-low.cc (class ppc_target) <low_get_thread_area>:
1192 Declare.
1193 (ppc_get_thread_area): Turn into...
1194 (ppc_target::low_get_thread_area): ...this.
1195 (the_low_target): Remove the op field.
1196 * linux-s390-low.cc (class s390_target) <low_get_thread_area>:
1197 Declare.
1198 (s390_get_thread_area): Turn into...
1199 (s390_target::low_get_thread_area): ...this.
1200 (the_low_target): Remove the op field.
1201 * linux-arm-low.cc (the_low_target): Remove the op field.
1202 * linux-bfin-low.cc (the_low_target): Ditto.
1203 * linux-crisv32-low.cc (the_low_target): Ditto.
1204 * linux-m32r-low.cc (the_low_target): Ditto.
1205 * linux-m68k-low.cc (the_low_target): Ditto.
1206 * linux-sh-low.cc (the_low_target): Ditto.
1207 * linux-tic6x-low.cc (the_low_target): Ditto.
1208 * linux-tile-low.cc (the_low_target): Ditto.
1209 * linux-xtensa-low.cc (the_low_target): Ditto.
1210
1211 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1212
1213 Remote the 'supports_tracepoints' linux target op and let the
1214 concrete linux target define it by overriding the op declared in
1215 process_stratum_target.
1216
1217 * linux-low.h (struct linux_target_ops): Remove the op.
1218 (class linux_process_target) <supports_tracepoints>: Remove.
1219 * linux-low.cc (linux_process_target::supports_tracepoints): Remove.
1220 * linux-x86-low.cc (class x86_target) <supports_tracepoints>:
1221 Declare.
1222 (x86_supports_tracepoints): Turn into...
1223 (x86_target::supports_tracepoints): ...this.
1224 (the_low_target): Remove the op field.
1225 * linux-aarch64-low.cc (class aarch64_target)
1226 <supports_tracepoints>: Declare.
1227 (aarch64_supports_tracepoints): Turn into...
1228 (aarch64_target::supports_tracepoints): ...this.
1229 (the_low_target): Remove the op field.
1230 * linux-ppc-low.cc (class ppc_target) <supports_tracepoints>:
1231 Declare.
1232 (ppc_supports_tracepoints): Turn into...
1233 (ppc_target::supports_tracepoints): ...this.
1234 (the_low_target): Remove the op field.
1235 * linux-s390-low.cc (class s390_target) <supports_tracepoints>:
1236 Declare.
1237 (s390_supports_tracepoints): Turn into...
1238 (s390_target::supports_tracepoints): ...this.
1239 (the_low_target): Remove the op field.
1240 * linux-arm-low.cc (the_low_target): Remove the op field.
1241 * linux-bfin-low.cc (the_low_target): Ditto.
1242 * linux-crisv32-low.cc (the_low_target): Ditto.
1243 * linux-m32r-low.cc (the_low_target): Ditto.
1244 * linux-m68k-low.cc (the_low_target): Ditto.
1245 * linux-sh-low.cc (the_low_target): Ditto.
1246 * linux-tic6x-low.cc (the_low_target): Ditto.
1247 * linux-tile-low.cc (the_low_target): Ditto.
1248 * linux-xtensa-low.cc (the_low_target): Ditto.
1249
1250 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1251
1252 Remove the 'process_qsupported' linux target op and let a concrete
1253 linux target define the op by overriding the op declaration in
1254 process_stratum_target.
1255
1256 * linux-low.h (struct linux_target_ops): Remove the op.
1257 (class linux_process_target) <process_qsupported>: Remove.
1258 * linux-low.cc (linux_process_target::process_qsupported): Remove.
1259 * linux-x86-low.cc (class x86_target) <process_qsupported>: Declare.
1260 (x86_linux_process_qsupported): Turn into...
1261 (x86_target::process_qsupported): ...this.
1262 (the_low_target): Remove the op field.
1263 * linux-aarch64-low.cc (the_low_target): Remove the op
1264 field.
1265 * linux-arm-low.cc (the_low_target): Ditto.
1266 * linux-bfin-low.cc (the_low_target): Ditto.
1267 * linux-crisv32-low.cc (the_low_target): Ditto.
1268 * linux-m32r-low.cc (the_low_target): Ditto.
1269 * linux-m68k-low.cc (the_low_target): Ditto.
1270 * linux-ppc-low.cc (the_low_target): Ditto.
1271 * linux-s390-low.cc (the_low_target): Ditto.
1272 * linux-sh-low.cc (the_low_target): Ditto.
1273 * linux-tic6x-low.cc (the_low_target): Ditto.
1274 * linux-tile-low.cc (the_low_target): Ditto.
1275 * linux-xtensa-low.cc (the_low_target): Ditto.
1276
1277 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1278
1279 Turn the 'prepare_to_resume' linux target op into a method of
1280 linux_process_target.
1281
1282 * linux-low.h (struct linux_target_ops): Remove the op.
1283 (class linux_process_target) <low_prepare_to_resume>: Declare.
1284 * linux-low.cc (linux_process_target::low_prepare_to_resume):
1285 Define.
1286
1287 Update the callers below:
1288
1289 (linux_process_target::resume_one_lwp_throw)
1290 (linux_process_target::low_prepare_to_resume)
1291
1292 * linux-x86-low.cc (class x86_target) <low_prepare_to_resume>:
1293 Declare.
1294 (x86_target::low_prepare_to_resume): Define.
1295 (the_low_target): Remove the op field.
1296 * linux-aarch64-low.cc (class aarch64_target)
1297 <low_prepare_to_resume>: Declare.
1298 (aarch64_target::low_prepare_to_resume): Define.
1299 (the_low_target): Remove the op field.
1300 * linux-arm-low.cc (class arm_target) <low_prepare_to_resume>:
1301 Declare.
1302 (arm_prepare_to_resume): Turn into...
1303 (arm_target::low_prepare_to_resume): ...this.
1304 (the_low_target): Remove the op field.
1305 * linux-mips-low.cc (class mips_target) <low_prepare_to_resume>:
1306 Declare.
1307 (mips_linux_prepare_to_resume): Turn into...
1308 (mips_target::low_prepare_to_resume): ...this.
1309 (the_low_target): Remove the op field.
1310 * linux-bfin-low.cc (the_low_target): Remove the op field.
1311 * linux-crisv32-low.cc (the_low_target): Ditto.
1312 * linux-m32r-low.cc (the_low_target): Ditto.
1313 * linux-m68k-low.cc (the_low_target): Ditto.
1314 * linux-ppc-low.cc (the_low_target): Ditto.
1315 * linux-s390-low.cc (the_low_target): Ditto.
1316 * linux-sh-low.cc (the_low_target): Ditto.
1317 * linux-tic6x-low.cc (the_low_target): Ditto.
1318 * linux-tile-low.cc (the_low_target): Ditto.
1319 * linux-xtensa-low.cc (the_low_target): Ditto.
1320
1321 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1322
1323 Turn the 'new_process', 'delete_process', 'new_thread',
1324 'delete_thread', and 'new_fork' linux target ops into methods
1325 of linux_process_target.
1326
1327 * linux-low.h (struct linux_target_ops): Remove the ops.
1328 (class linux_process_target) <add_linux_process>
1329 <add_lwp>
1330 <delete_lwp>
1331 <attach_lwp>
1332 <detach_one_lwp>
1333 <check_zombie_leaders>
1334 <filter_exit_event>
1335 <low_new_process>
1336 <low_delete_process>
1337 <low_new_thread>
1338 <low_delete_thread>
1339 <low_new_fork>: Declare.
1340 * linux-low.cc (delete_lwp): Turn into...
1341 (linux_process_target::delete_lwp): ...this.
1342 (linux_process_target::low_delete_thread): Define.
1343 (linux_add_process): Turn into...
1344 (linux_process_target::add_linux_process): ...this.
1345 (linux_process_target::low_new_process): Define.
1346 (linux_process_target::low_delete_process): Define.
1347 (linux_process_target::low_new_fork): Define.
1348 (add_lwp): Turn into...
1349 (linux_process_target::add_lwp): ...this.
1350 (linux_process_target::low_new_thread): Define.
1351 (linux_attach_lwp): Turn into...
1352 (linux_process_target::attach_lwp): ...this.
1353 (linux_detach_one_lwp): Turn into...
1354 (linux_process_target::detach_one_lwp): ...this.
1355 (linux_detach_lwp_callback): Remove and inline...
1356 (linux_process_target::detach): ...here.
1357 (check_zombie_leaders): Turn into...
1358 (linux_process_target::check_zombie_leaders): ...this.
1359 (filter_exit_event): Turn into...
1360 (linux_process_target::filter_exit_event): ...this.
1361
1362 Update the callers below.
1363
1364 (linux_process_target::handle_extended_wait)
1365 (linux_process_target::create_inferior)
1366 (attach_proc_task_lwp_callback)
1367 (linux_process_target::attach)
1368 (linux_process_target::detach)
1369 (linux_process_target::mourn)
1370 * thread-db.cc (attach_thread)
1371
1372 * linux-x86-low.cc (class x86_target) <low_new_process>
1373 <low_delete_process>
1374 <low_new_thread>
1375 <low_delete_thread>
1376 <low_new_fork>: Declare.
1377 (x86_linux_new_process): Turn into...
1378 (x86_target::low_new_process): ...this.
1379 (x86_linux_delete_process): Turn into...
1380 (x86_target::low_delete_process): ...this.
1381 (x86_target::low_new_thread): Define.
1382 (x86_target::low_delete_thread): Define.
1383 (x86_linux_new_fork): Turn into...
1384 (x86_target::low_new_fork): ...this.
1385 (the_low_target): Remove the op fields.
1386 * linux-aarch64-low.cc (class aarch64_target) <low_new_process>
1387 <low_delete_process>
1388 <low_new_thread>
1389 <low_delete_thread>
1390 <low_new_fork>: Declare.
1391 (aarch64_linux_new_process): Turn into...
1392 (aarch64_target::low_new_process): ...this.
1393 (aarch64_linux_delete_process): Turn into...
1394 (aarch64_target::low_delete_process): ...this.
1395 (aarch64_target::low_new_thread): Define.
1396 (aarch64_target::low_delete_thread): Define.
1397 (aarch64_linux_new_fork): Turn into...
1398 (aarch64_target::low_new_fork): ...this.
1399 (the_low_target): Remove the op fields.
1400 * linux-arm-low.cc (class arm_target) <low_new_process>
1401 <low_delete_process>
1402 <low_new_thread>
1403 <low_delete_thread>
1404 <low_new_fork>: Declare.
1405 (arm_new_process): Turn into...
1406 (arm_target::low_new_process): ...this.
1407 (arm_delete_process): Turn into...
1408 (arm_target::low_delete_process): ...this.
1409 (arm_new_thread): Turn into...
1410 (arm_target::low_new_thread): ...this.
1411 (arm_delete_thread): Turn into...
1412 (arm_target::low_delete_thread): ...this.
1413 (arm_new_fork): Turn into...
1414 (arm_target::low_new_fork): ...this.
1415 (the_low_target): Remove the op fields.
1416 * linux-mips-low.cc (class mips_target) <low_new_process>
1417 <low_delete_process>
1418 <low_new_thread>
1419 <low_delete_thread>
1420 <low_new_fork>: Declare.
1421 (mips_linux_new_process): Turn into...
1422 (mips_target::low_new_process): ...this.
1423 (mips_linux_delete_process): Turn into...
1424 (mips_target::low_delete_process): ...this.
1425 (mips_linux_new_thread): Turn into...
1426 (mips_target::low_new_thread): ...this.
1427 (mips_linux_delete_thread): Turn into...
1428 (mips_target::low_delete_thread): ...this.
1429 (mips_linux_new_fork): Turn into...
1430 (mips_target::low_new_fork): ...this.
1431 (the_low_target): Remove the op fields.
1432 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1433 * linux-crisv32-low.cc (the_low_target): Ditto.
1434 * linux-m32r-low.cc (the_low_target): Ditto.
1435 * linux-m68k-low.cc (the_low_target): Ditto.
1436 * linux-ppc-low.cc (the_low_target): Ditto.
1437 * linux-s390-low.cc (the_low_target): Ditto.
1438 * linux-sh-low.cc (the_low_target): Ditto.
1439 * linux-tic6x-low.cc (the_low_target): Ditto.
1440 * linux-tile-low.cc (the_low_target): Ditto.
1441 * linux-xtensa-low.cc (the_low_target): Ditto.
1442
1443 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1444
1445 Turn the 'siginfo_fixup' linux target op into a method of
1446 linux_process_target.
1447
1448 * linux-low.h (struct linux_target_ops): Remove the op.
1449 (class linux_process_target) <siginfo_fixup>
1450 <low_siginfo_fixup>: Declare.
1451 * linux-low.cc (siginfo_fixup): Turn into...
1452 (linux_process_target::siginfo_fixup): ...this.
1453 (linux_process_target::low_siginfo_fixup): Define.
1454 * linux-x86-low.cc (class x86_target) <low_siginfo_fixup>: Declare.
1455 (x86_siginfo_fixup): Turn into...
1456 (x86_target::low_siginfo_fixup): ...this.
1457 (the_low_target): Remove the op field.
1458 * linux-aarch64-low.cc (class aarch64_target):
1459 <low_siginfo_fixup>: Declare.
1460 (aarch64_linux_siginfo_fixup): Turn into...
1461 (aarch64_target::low_siginfo_fixup): ...this.
1462 (the_low_target): Remove the op field.
1463 * linux-arm-low.cc (the_low_target): Remove the op field.
1464 * linux-bfin-low.cc (the_low_target): Ditto.
1465 * linux-crisv32-low.cc (the_low_target): Ditto.
1466 * linux-m32r-low.cc (the_low_target): Ditto.
1467 * linux-m68k-low.cc (the_low_target): Ditto.
1468 * linux-mips-low.cc (the_low_target): Ditto.
1469 * linux-ppc-low.cc (the_low_target): Ditto.
1470 * linux-s390-low.cc (the_low_target): Ditto.
1471 * linux-sh-low.cc (the_low_target): Ditto.
1472 * linux-tic6x-low.cc (the_low_target): Ditto.
1473 * linux-tile-low.cc (the_low_target): Ditto.
1474 * linux-xtensa-low.cc (the_low_target): Ditto.
1475
1476 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1477
1478 Turn the 'collect_ptrace_register' and 'supply_ptrace_register'
1479 linux target ops into methods of linux_process_target.
1480
1481 * linux-low.h (struct linux_target_ops): Remove the ops.
1482 (class linux_process_target) <low_collect_ptrace_register>
1483 <low_store_ptrace_register>: Declare.
1484 * linux-low.cc (linux_process_target::low_collect_ptrace_register)
1485 (linux_process_target::low_supply_ptrace_register): Define.
1486
1487 Update the callers below.
1488
1489 (linux_process_target::fetch_register)
1490 (linux_process_target::store_register)
1491
1492 * linux-x86-low.cc (the_low_target): Remove the op fields.
1493 * linux-aarch64-low.cc (the_low_target): Ditto.
1494 * linux-arm-low.cc (the_low_target): Ditto.
1495 * linux-bfin-low.cc (the_low_target): Ditto.
1496 * linux-crisv32-low.cc (the_low_target): Ditto.
1497 * linux-m32r-low.cc (the_low_target): Ditto.
1498 * linux-m68k-low.cc (the_low_target): Ditto.
1499 * linux-sh-low.cc (the_low_target): Ditto.
1500 * linux-sparc-low.cc (the_low_target): Ditto.
1501 * linux-tic6x-low.cc (the_low_target): Ditto.
1502 * linux-tile-low.cc (the_low_target): Ditto.
1503 * linux-xtensa-low.cc (the_low_target): Ditto.
1504 * linux-mips-low.cc (class mips_target)
1505 <low_collect_ptrace_register>
1506 <low_supply_ptrace_register>: Declare.
1507 (mips_collect_ptrace_register): Turn into ...
1508 (mips_target::low_collect_ptrace_register): ...this.
1509 (mips_supply_ptrace_register): Turn into...
1510 (mips_target::low_supply_ptrace_register): ...this.
1511 (the_low_target): Remove the op fields.
1512 * linux-ppc-low.cc (class ppc_target)
1513 <low_collect_ptrace_register>
1514 <low_supply_ptrace_register>: Declare.
1515 (ppc_collect_ptrace_register): Turn into ...
1516 (ppc_target::low_collect_ptrace_register): ...this.
1517 (ppc_supply_ptrace_register): Turn into ...
1518 (ppc_target::low_supply_ptrace_register): ...this.
1519 (ppc_fill_gregset): Update for the calls to
1520 low_collect_ptrace_register.
1521 (the_low_target): Remove the op fields.
1522 * linux-s390-low.cc (class s390_target)
1523 <low_collect_ptrace_register>
1524 <low_supply_ptrace_register>: Declare.
1525 (s390_collect_ptrace_register): Turn into ...
1526 (s390_target::low_collect_ptrace_register): ...this.
1527 (s390_supply_ptrace_register): Turn into ...
1528 (s390_target::low_supply_ptrace_register): ...this.
1529 (s390_fill_gregset): Update for the calls to
1530 low_collect_ptrace_register.
1531 (the_low_target): Remove the op fields.
1532
1533 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1534
1535 Turn the 'stopped_by_watchpoint' and 'stopped_data_address' linux
1536 target ops into methods of linux_process_target.
1537
1538 * linux-low.h (struct linux_target_ops): Remove the ops.
1539 (class linux_process_target) <check_stopped_by_watchpoint>
1540 <low_stopped_by_watchpoint>
1541 <low_stopped_data_address>: Declare.
1542 * linux-low.cc (check_stopped_by_watchpoint): Turn into...
1543 (linux_process_target::check_stopped_by_watchpoint): ...this.
1544 (linux_process_target::low_stopped_by_watchpoint): Define.
1545 (linux_process_target::low_stopped_data_address): Define.
1546 * linux-x86-low.cc (class x86_target) <low_stopped_by_watchpoint>
1547 <low_stopped_data_address>: Declare.
1548 (x86_stopped_by_watchpoint): Turn into...
1549 (x86_target::low_stopped_by_watchpoint): ...this.
1550 (x86_stopped_data_address): Turn into...
1551 (x86_target::low_stopped_data_address): ...this.
1552 (the_low_target): Remove the op fields.
1553 * linux-aarch64-low.cc (class aarch64_target)
1554 <low_stopped_by_watchpoint>
1555 <low_stopped_data_address>: Declare.
1556 (aarch64_stopped_by_watchpoint): Turn into...
1557 (aarch64_target::low_stopped_by_watchpoint): ...this.
1558 (aarch64_stopped_data_address): Turn into...
1559 (aarch64_target::low_stopped_data_address): ...this.
1560 (the_low_target): Remove the op fields.
1561 * linux-arm-low.cc (class arm_target) <low_stopped_by_watchpoint>
1562 <low_stopped_data_address>: Declare.
1563 (arm_stopped_by_watchpoint): Turn into...
1564 (arm_target::low_stopped_by_watchpoint): ...this.
1565 (arm_stopped_data_address): Turn into...
1566 (arm_target::low_stopped_data_address): ...this.
1567 (the_low_target): Remove the op fields.
1568 * linux-crisv32-low.cc (class crisv32_target)
1569 <low_stopped_by_watchpoint>
1570 <low_stopped_data_address>: Declare.
1571 (cris_stopped_by_watchpoint): Turn into...
1572 (crisv32_target::low_stopped_by_watchpoint): ...this.
1573 (cris_stopped_data_address): Turn into...
1574 (crisv32_target::low_stopped_data_address): ...this.
1575 (the_low_target): Remove the op fields.
1576 * linux-mips-low.cc (class mips_target) <low_stopped_by_watchpoint>
1577 <low_stopped_data_address>: Declare.
1578 (mips_stopped_by_watchpoint): Turn into...
1579 (mips_target::low_stopped_by_watchpoint): ...this.
1580 (mips_stopped_data_address): Turn into...
1581 (mips_target::low_stopped_data_address): ...this.
1582 (the_low_target): Remove the op fields.
1583 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1584 * linux-m32r-low.cc (the_low_target): Ditto.
1585 * linux-m68k-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
1594 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1595
1596 Turn the 'insert_point' and 'remove_point' linux target ops into
1597 methods of linux_process_target.
1598
1599 * linux-low.h (struct linux_target_ops): Remove the ops.
1600 (class linux_process_target) <low_insert_point>
1601 <low_remove_point>: Declare.
1602 * linux-low.cc (linux_process_target::low_insert_point)
1603 (linux_process_target::low_remove_point): Define.
1604 (linux_process_target::insert_point)
1605 (linux_process_target::remove_point): Update for calls to
1606 low_insert_point and low_remove_point.
1607 * linux-x86-low.cc (class x86_target) <low_insert_point>
1608 <low_remove_point>: Declare.
1609 (x86_insert_point): Turn into...
1610 (x86_target::low_insert_point): ...this.
1611 (x86_remove_point): Turn into...
1612 (x86_target::low_remove_point): ...this.
1613 (the_low_target): Remove the op fields.
1614 * linux-aarch64-low.cc (class aarch64_target) <low_insert_point>
1615 <low_remove_point>: Declare.
1616 (aarch64_insert_point): Turn into...
1617 (aarch64_target::low_insert_point): ...this.
1618 (aarch64_remove_point): Turn into...
1619 (aarch64_target::low_remove_point): ...this.
1620 (the_low_target): Remove the op fields.
1621 * linux-arm-low.cc (class arm_target) <low_insert_point>
1622 <low_remove_point>: Declare.
1623 (arm_insert_point): Turn into...
1624 (arm_target::low_insert_point): ...this.
1625 (arm_remove_point): Turn into...
1626 (arm_target::low_remove_point): ...this.
1627 (the_low_target): Remove the op fields.
1628 * linux-crisv32-low.cc (class crisv32_target) <low_insert_point>
1629 <low_remove_point>: Declare.
1630 (crisv32_insert_point): Turn into...
1631 (crisv32_target::low_insert_point): ...this.
1632 (crisv32_remove_point): Turn into...
1633 (crisv32_target::low_remove_point): ...this.
1634 (the_low_target): Remove the op fields.
1635 * linux-mips-low.cc (class mips_target) <low_insert_point>
1636 <low_remove_point>: Declare.
1637 (mips_insert_point): Turn into...
1638 (mips_target::low_insert_point): ...this.
1639 (mips_remove_point): Turn into...
1640 (mips_target::low_remove_point): ...this.
1641 (the_low_target): Remove the op fields.
1642 * linux-ppc-low.cc (class ppc_target) <low_insert_point>
1643 <low_remove_point>: Declare.
1644 (ppc_insert_point): Turn into...
1645 (ppc_target::low_insert_point): ...this.
1646 (ppc_remove_point): Turn into...
1647 (ppc_target::low_remove_point): ...this.
1648 (the_low_target): Remove the op fields.
1649 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1650 * linux-m32r-low.cc (the_low_target): Ditto.
1651 * linux-m68k-low.cc (the_low_target): Ditto.
1652 * linux-s390-low.cc (the_low_target): Ditto.
1653 * linux-sh-low.cc (the_low_target): Ditto.
1654 * linux-sparc-low.cc (the_low_target): Ditto.
1655 * linux-tic6x-low.cc (the_low_target): Ditto.
1656 * linux-tile-low.cc (the_low_target): Ditto.
1657 * linux-xtensa-low.cc (the_low_target): Ditto.
1658
1659 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1660
1661 Remove the 'supports_z_point_type' linux target op and let the
1662 concrete linux target define it by overriding the op declared in
1663 process_stratum_target.
1664
1665 * linux-low.cc (linux_process_target::supports_z_point_type):
1666 Remove.
1667 * linux-low.h (struct linux_target_ops): Remove the op.
1668 (class linux_process_target) <supports_z_point_type>: Remove.
1669 * linux-x86-low.cc (class x86_target) <supports_z_point_type>:
1670 Declare.
1671 (x86_supports_z_point_type): Turn into...
1672 (x86_target::supports_z_point_type): ...this.
1673 (the_low_target): Remove the op field.
1674 * linux-aarch64-low.cc (class aarch64_target)
1675 <supports_z_point_type>: Declare.
1676 (aarch64_supports_z_point_type): Turn into...
1677 (aarch64_target::supports_z_point_type): ...this.
1678 (the_low_target): Remove the op field.
1679 * linux-arm-low.cc (class arm_target) <supports_z_point_type>:
1680 Declare.
1681 (arm_supports_z_point_type): Turn into...
1682 (arm_target::supports_z_point_type): ...this.
1683 (the_low_target): Remove the op field.
1684 * linux-crisv32-low.cc (class crisv32_target)
1685 <supports_z_point_type>: Declare.
1686 (cris_supports_z_point_type): Turn into...
1687 (crisv32_target::supports_z_point_type): ...this.
1688 (the_low_target): Remove the op field.
1689 * linux-mips-low.cc (class mips_target) <supports_z_point_type>:
1690 Declare.
1691 (mips_supports_z_point_type): Turn into...
1692 (mips_target::supports_z_point_type): ...this.
1693 (the_low_target): Remove the op field.
1694 * linux-ppc-low.cc (class ppc_target) <supports_z_point_type>:
1695 Declare.
1696 (ppc_supports_z_point_type): Turn into...
1697 (ppc_target::supports_z_point_type): ...this.
1698 (the_low_target): Remove the op field.
1699 * linux-s390-low.cc (class s390_target) <supports_z_point_type>:
1700 Declare.
1701 (s390_supports_z_point_type): Turn into...
1702 (s390_target::supports_z_point_type): ...this.
1703 (the_low_target): Remove the op field.
1704 * linux-bfin-low.cc (the_low_target): Remove the op field.
1705 * linux-m32r-low.cc (the_low_target): Ditto.
1706 * linux-m68k-low.cc (the_low_target): Ditto.
1707 * linux-sh-low.cc (the_low_target): Ditto.
1708 * linux-sparc-low.cc (the_low_target): Ditto.
1709 * linux-tic6x-low.cc (the_low_target): Ditto.
1710 * linux-tile-low.cc (the_low_target): Ditto.
1711 * linux-xtensa-low.cc (the_low_target): Ditto.
1712
1713 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1714
1715 Turn the 'breakpoint_at' linux target op into a method of
1716 linux_process_target.
1717
1718 * linux-low.h (struct linux_target_ops): Remove the op.
1719 (class linux_process_target) <low_breakpoint_at>: Declare.
1720
1721 Update the callers below:
1722
1723 * linux-low.cc (linux_process_target::save_stop_reason)
1724 (linux_process_target::thread_still_has_status_pending)
1725 (linux_process_target::wait_1)
1726
1727 * linux-x86-low.cc (class x86_target)
1728 <low_breakpoint_at>: Declare.
1729 (x86_breakpoint_at): Turn into...
1730 (x86_target::low_breakpoint_at): ...this.
1731 (the_low_target): Remove the op field.
1732 * linux-aarch64-low.cc (class aarch64_target)
1733 <low_breakpoint_at>: Declare.
1734 (aarch64_breakpoint_at): Turn into...
1735 (aarch64_target::low_breakpoint_at): ...this.
1736 (the_low_target): Remove the op field.
1737 * linux-arm-low.cc (class arm_target)
1738 <low_breakpoint_at>: Declare.
1739 (arm_target::low_breakpoint_at): Define.
1740 (the_low_target): Remove the op field.
1741 * linux-bfin-low.cc (class bfin_target)
1742 <low_breakpoint_at>: Declare.
1743 (bfin_breakpoint_at): Turn into...
1744 (bfin_target::low_breakpoint_at): ...this.
1745 (the_low_target): Remove the op field.
1746 * linux-cris-low.cc (class cris_target)
1747 <low_breakpoint_at>: Declare.
1748 (cris_breakpoint_at): Turn into...
1749 (cris_target::low_breakpoint_at): ...this.
1750 (the_low_target): Remove the op field.
1751 * linux-crisv32-low.cc (class crisv32_target)
1752 <low_breakpoint_at>: Declare.
1753 (crisv32_breakpoint_at): Turn into...
1754 (crisv32_target::low_breakpoint_at): ...this.
1755 (the_low_target): Remove the op field.
1756 * linux-ia64-low.cc (class ia64_target)
1757 <low_breakpoint_at>: Declare.
1758 (ia64_target::low_breakpoint_at): Define.
1759 * linux-m32r-low.cc (class m32r_target)
1760 <low_breakpoint_at>: Declare.
1761 (m32r_breakpoint_at): Turn into...
1762 (m32r_target::low_breakpoint_at): ...this.
1763 (the_low_target): Remove the op field.
1764 * linux-m68k-low.cc (class m68k_target)
1765 <low_breakpoint_at>: Declare.
1766 (m68k_breakpoint_at): Turn into...
1767 (m68k_target::low_breakpoint_at): ...this.
1768 (the_low_target): Remove the op field.
1769 * linux-mips-low.cc (class mips_target)
1770 <low_breakpoint_at>: Declare.
1771 (mips_breakpoint_at): Turn into...
1772 (mips_target::low_breakpoint_at): ...this.
1773 (the_low_target): Remove the op field.
1774 * linux-nios2-low.cc (class nios2_target)
1775 <low_breakpoint_at>: Declare.
1776 (nios2_breakpoint_at): Turn into...
1777 (nios2_target::low_breakpoint_at): ...this.
1778 (the_low_target): Remove the op field.
1779 * linux-ppc-low.cc (class ppc_target)
1780 <low_breakpoint_at>: Declare.
1781 (ppc_breakpoint_at): Turn into...
1782 (ppc_target::low_breakpoint_at): ...this.
1783 (the_low_target): Remove the op field.
1784 * linux-riscv-low.cc (class riscv_target)
1785 <low_breakpoint_at>: Declare.
1786 (riscv_breakpoint_at): Turn into...
1787 (riscv_target::low_breakpoint_at): ...this.
1788 (the_low_target): Remove the op field.
1789 * linux-s390-low.cc (class s390_target)
1790 <low_breakpoint_at>: Declare.
1791 (s390_breakpoint_at): Turn into...
1792 (s390_target::low_breakpoint_at): ...this.
1793 (the_low_target): Remove the op field.
1794 * linux-sh-low.cc (class sh_target)
1795 <low_breakpoint_at>: Declare.
1796 (sh_breakpoint_at): Turn into...
1797 (sh_target::low_breakpoint_at): ...this.
1798 (the_low_target): Remove the op field.
1799 * linux-sparc-low.cc (class sparc_target)
1800 <low_breakpoint_at>: Declare.
1801 (sparc_breakpoint_at): Turn into...
1802 (sparc_target::low_breakpoint_at): ...this.
1803 (the_low_target): Remove the op field.
1804 * linux-tic6x-low.cc (class tic6x_target)
1805 <low_breakpoint_at>: Declare.
1806 (tic6x_breakpoint_at): Turn into...
1807 (tic6x_target::low_breakpoint_at): ...this.
1808 (the_low_target): Remove the op field.
1809 * linux-tile-low.cc (class tile_target)
1810 <low_breakpoint_at>: Declare.
1811 (tile_breakpoint_at): Turn into...
1812 (tile_target::low_breakpoint_at): ...this.
1813 (the_low_target): Remove the op field.
1814 * linux-xtensa-low.cc (class xtensa_target)
1815 <low_breakpoint_at>: Declare.
1816 (xtensa_breakpoint_at): Turn into...
1817 (xtensa_target::low_breakpoint_at): ...this.
1818 (the_low_target): Remove the op field.
1819
1820 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1821
1822 Turn the 'decr_pc_after_break' linux_target_ops field into
1823 a method of linux_process_target.
1824
1825 * linux-low.h (struct linux_target_ops)
1826 <decr_pc_after_break>: Remove.
1827 (class linux_process_target) <low_decr_pc_after_break>: New method
1828 declaration.
1829 * linux-low.cc (linux_process_target::low_decr_pc_after_break):
1830 New method implementation.
1831
1832 Update the users below.
1833
1834 (linux_process_target::save_stop_reason)
1835 (linux_process_target::wait_1)
1836 * linux-x86-low.cc (class x86_target) <low_decr_pc_after_break>:
1837 New declaration.
1838 (x86_target::low_decr_pc_after_break): New method implementation.
1839 (the_low_target): Remove the field.
1840 * linux-bfin-low.cc (class bfin_target) <low_decr_pc_after_break>:
1841 New declaration.
1842 (bfin_target::low_decr_pc_after_break): New method implementation.
1843 (the_low_target): Remove the field.
1844 * linux-m68k-low.cc (class m68k_target) <low_decr_pc_after_break>:
1845 New declaration.
1846 (m68k_target::low_decr_pc_after_break): New method implementation.
1847 (the_low_target): Remove the field.
1848 * linux-s390-low.cc (class s390_target) <low_decr_pc_after_break>:
1849 New declaration.
1850 (s390_target::low_decr_pc_after_break): New method implementation.
1851 (the_low_target): Remove the field.
1852 * linux-aarch64-low.cc (the_low_target): Remove the field.
1853 * linux-arm-low.cc (the_low_target): Remove the field.
1854 * linux-cris-low.cc (the_low_target): Remove the field.
1855 * linux-crisv32-low.cc (the_low_target): Remove the field.
1856 * linux-m32r-low.cc (the_low_target): Remove the field.
1857 * linux-mips-low.cc (the_low_target): Remove the field.
1858 * linux-nios2-low.cc (the_low_target): Remove the field.
1859 * linux-ppc-low.cc (the_low_target): Remove the field.
1860 * linux-riscv-low.cc (the_low_target): Remove the field.
1861 * linux-sh-low.cc (the_low_target): Remove the field.
1862 * linux-sparc-low.cc (the_low_target): Remove the field.
1863 * linux-tic6x-low.cc (the_low_target): Remove the field.
1864 * linux-tile-low.cc (the_low_target): Remove the field.
1865 * linux-xtensa-low.cc (the_low_target): Remove the field.
1866
1867 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1868
1869 Remove the 'supports_software_single_step' linux target op and let
1870 the concrete linux target define it by overriding the op in
1871 process_stratum_target.
1872 Turn the 'get_next_pcs' linux target op into a method of
1873 linux_process_target.
1874
1875 * linux-low.h (struct linux_target_ops): Remove the ops.
1876 (class linux_process_target) <supports_software_single_step>:
1877 Remove.
1878 <low_get_next_pcs>: Declare.
1879 * linux-low.cc (can_software_single_step): Remove.
1880 (linux_process_target::low_get_next_pcs): Define.
1881 (linux_process_target::supports_software_single_step): Remove.
1882
1883 Update the callers below.
1884
1885 (linux_process_target::handle_extended_wait)
1886 (linux_process_target::wait_1)
1887 (linux_process_target::install_software_single_step_breakpoints)
1888 (linux_process_target::single_step)
1889 (linux_process_target::thread_needs_step_over)
1890 (linux_process_target::proceed_one_lwp)
1891 (linux_process_target::supports_range_stepping)
1892
1893 * linux-x86-low.cc (the_low_target): Remove the op field.
1894 * linux-aarch64-low.cc (the_low_target): Ditto.
1895 * linux-bfin-low.cc (the_low_target): Ditto.
1896 * linux-cris-low.cc (the_low_target): Ditto.
1897 * linux-crisv32-low.cc (the_low_target): Ditto.
1898 * linux-m32r-low.cc (the_low_target): Ditto.
1899 * linux-m68k-low.cc (the_low_target): Ditto.
1900 * linux-mips-low.cc (the_low_target): Ditto.
1901 * linux-nios2-low.cc (the_low_target): Ditto.
1902 * linux-ppc-low.cc (the_low_target): Ditto.
1903 * linux-riscv-low.cc (the_low_target): Ditto.
1904 * linux-s390-low.cc (the_low_target): Ditto.
1905 * linux-sh-low.cc (the_low_target): Ditto.
1906 * linux-sparc-low.cc (the_low_target): Ditto.
1907 * linux-tic6x-low.cc (the_low_target): Ditto.
1908 * linux-tile-low.cc (the_low_target): Ditto.
1909 * linux-xtensa-low.cc (the_low_target): Ditto.
1910 * linux-arm-low.cc (class arm_target) <low_get_next_pcs>
1911 <supports_software_single_step>: Declare.
1912 (arm_target::supports_software_single_step): Define.
1913 (arm_gdbserver_get_next_pcs): Turn into...
1914 (arm_target::low_get_next_pcs): ...this.
1915 (the_low_target): Remove the op field.
1916
1917 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1918
1919 Remove the 'sw_breakpoint_from_kind' linux target op, and let
1920 the concrete linux target define it by overriding the op
1921 in process_stratum_target.
1922
1923 * linux-low.cc (linux_process_target::sw_breakpoint_from_kind):
1924 Remove.
1925 * linux-low.h (struct linux_target_ops): Remove the op.
1926 (class linux_process_target) <sw_breakpoint_from_kind>: Remove.
1927 * linux-x86-low.cc (class x86_target) <sw_breakpoint_from_kind>:
1928 Declare.
1929 (x86_sw_breakpoint_from_kind): Turn into...
1930 (x86_target::sw_breakpoint_from_kind): ...this.
1931 (the_low_target): Remove the op field.
1932 * linux-aarch64-low.cc (class aarch64_target)
1933 <sw_breakpoint_from_kind>: Declare.
1934 (aarch64_sw_breakpoint_from_kind): Turn into...
1935 (aarch64_target::sw_breakpoint_from_kind): ...this.
1936 (the_low_target): Remove the op field.
1937 * linux-arm-low.cc (class arm_target) <sw_breakpoint_from_kind>:
1938 Declare.
1939 (arm_target::sw_breakpoint_from_kind): Define.
1940 (the_low_target): Remove the op field.
1941 * linux-bfin-low.cc (class bfin_target) <sw_breakpoint_from_kind>:
1942 Declare.
1943 (bfin_sw_breakpoint_from_kind): Turn into...
1944 (bfin_target::sw_breakpoint_from_kind): ...this.
1945 (the_low_target): Remove the op field.
1946 * linux-cris-low.cc (class cris_target) <sw_breakpoint_from_kind>:
1947 Declare.
1948 (cris_sw_breakpoint_from_kind): Turn into...
1949 (cris_target::sw_breakpoint_from_kind): ...this.
1950 (the_low_target): Remove the op field.
1951 * linux-crisv32-low.cc (class crisv32_target)
1952 <sw_breakpoint_from_kind>: Declare.
1953 (cris_sw_breakpoint_from_kind): Turn into...
1954 (crisv32_target::sw_breakpoint_from_kind): ...this.
1955 (the_low_target): Remove the op field.
1956 * linux-ia64-low.cc (class ia64_target) <sw_breakpoint_from_kind>:
1957 Declare.
1958 (ia64_target::sw_breakpoint_from_kind): Define.
1959 * linux-m32r-low.cc (class m32r_target) <sw_breakpoint_from_kind>:
1960 Declare.
1961 (m32r_sw_breakpoint_from_kind): Turn into...
1962 (m32r_target::sw_breakpoint_from_kind): ...this.
1963 (the_low_target): Remove the op field.
1964 * linux-m68k-low.cc (class m68k_target) <sw_breakpoint_from_kind>:
1965 Declare.
1966 (m68k_sw_breakpoint_from_kind): Turn into...
1967 (m68k_target::sw_breakpoint_from_kind): ...this.
1968 (the_low_target): Remove the op field.
1969 * linux-mips-low.cc (class mips_target) <sw_breakpoint_from_kind>:
1970 Declare.
1971 (mips_sw_breakpoint_from_kind): Turn into...
1972 (mips_target::sw_breakpoint_from_kind): ...this.
1973 (the_low_target): Remove the op field.
1974 * linux-nios2-low.cc (class nios2_target) <sw_breakpoint_from_kind>:
1975 Declare.
1976 (nios2_sw_breakpoint_from_kind): Turn into...
1977 (nios2_target::sw_breakpoint_from_kind): ...this.
1978 (the_low_target): Remove the op field.
1979 * linux-ppc-low.cc (class ppc_target) <sw_breakpoint_from_kind>:
1980 Declare.
1981 (ppc_sw_breakpoint_from_kind): Turn into...
1982 (ppc_target::sw_breakpoint_from_kind): ...this.
1983 (the_low_target): Remove the op field.
1984 * linux-riscv-low.cc (class riscv_target) <sw_breakpoint_from_kind>:
1985 Declare.
1986 (riscv_sw_breakpoint_from_kind): Turn into...
1987 (riscv_target::sw_breakpoint_from_kind): ...this.
1988 (the_low_target): Remove the op field.
1989 * linux-s390-low.cc (class s390_target) <sw_breakpoint_from_kind>:
1990 Declare.
1991 (s390_sw_breakpoint_from_kind): Turn into...
1992 (s390_target::sw_breakpoint_from_kind): ...this.
1993 (the_low_target): Remove the op field.
1994 * linux-sh-low.cc (class sh_target) <sw_breakpoint_from_kind>:
1995 Declare.
1996 (sh_sw_breakpoint_from_kind): Turn into...
1997 (sh_target::sw_breakpoint_from_kind): ...this.
1998 (the_low_target): Remove the op field.
1999 * linux-sparc-low.cc (class sparc_target) <sw_breakpoint_from_kind>:
2000 Declare.
2001 (sparc_sw_breakpoint_from_kind): Turn into...
2002 (sparc_target::sw_breakpoint_from_kind): ...this.
2003 (the_low_target): Remove the op field.
2004 * linux-tic6x-low.cc (class tic6x_target) <sw_breakpoint_from_kind>:
2005 Declare.
2006 (tic6x_sw_breakpoint_from_kind): Turn into...
2007 (tic6x_target::sw_breakpoint_from_kind): ...this.
2008 (the_low_target): Remove the op field.
2009 * linux-tile-low.cc (class tile_target) <sw_breakpoint_from_kind>:
2010 Declare.
2011 (tile_sw_breakpoint_from_kind): Turn into...
2012 (tile_target::sw_breakpoint_from_kind): ...this.
2013 (the_low_target): Remove the op field.
2014 * linux-xtensa-low.cc (class xtensa_target)
2015 <sw_breakpoint_from_kind>: Declare.
2016 (xtensa_sw_breakpoint_from_kind): Turn into...
2017 (xtensa_target::sw_breakpoint_from_kind): ...this.
2018 (the_low_target): Remove the op field.
2019
2020 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2021
2022 Remove the 'breakpoint_kind_from_pc' and
2023 'breakpoint_kind_from_current_state' linux target ops, and let the
2024 concrete linux target define them by overriding the ops of
2025 process_stratum_target.
2026
2027 * linux-low.cc (linux_process_target::breakpoint_kind_from_pc):
2028 Remove.
2029 (linux_process_target::breakpoint_kind_from_current_state): Remove.
2030 * linux-low.h (struct linux_target_ops): Remove ops.
2031 (class linux_process_target) <breakpoint_kind_from_pc>: Remove.
2032 <breakpoint_kind_from_current_state>: Remove.
2033 * linux-x86-low.cc (the_low_target): Remove the op fields.
2034 * linux-bfin-low.cc (the_low_target): Ditto.
2035 * linux-cris-low.cc (the_low_target): Ditto.
2036 * linux-crisv32-low.cc (the_low_target): Ditto.
2037 * linux-m32r-low.cc (the_low_target): Ditto.
2038 * linux-m68k-low.cc (the_low_target): Ditto.
2039 * linux-mips-low.cc (the_low_target): Ditto.
2040 * linux-nios2-low.cc (the_low_target): Ditto.
2041 * linux-ppc-low.cc (the_low_target): Ditto.
2042 * linux-s390-low.cc (the_low_target): Ditto.
2043 * linux-sh-low.cc (the_low_target): Ditto.
2044 * linux-sparc-low.cc (the_low_target): Ditto.
2045 * linux-tic6x-low.cc (the_low_target): Ditto.
2046 * linux-tile-low.cc (the_low_target): Ditto.
2047 * linux-xtensa-low.cc (the_low_target): Ditto.
2048 * linux-aarch64-low.cc (class aarch64_target)
2049 <breakpoint_kind_from_pc>
2050 <breakpoint_kind_from_current_state>: Declare.
2051 (aarch64_breakpoint_kind_from_pc): Turn into...
2052 (aarch64_target::breakpoint_kind_from_pc): ...this.
2053 (aarch64_breakpoint_kind_from_current_state): Turn into...
2054 (aarch64_target::breakpoint_kind_from_current_state): ...this.
2055 (the_low_target): Remove the op fields.
2056 * linux-arm-low.cc (class arm_target):
2057 <breakpoint_kind_from_pc>
2058 <breakpoint_kind_from_current_state>: Declare.
2059 (arm_target::breakpoint_kind_from_pc): Define.
2060 (arm_target::breakpoint_kind_from_current_state): Define.
2061 (the_low_target): Remove the op fields.
2062 * linux-riscv-low.cc (class riscv_target):
2063 <breakpoint_kind_from_pc>: Declare.
2064 (riscv_breakpoint_kind_from_pc): Turn into...
2065 (riscv_target::breakpoint_kind_from_pc): ...this.
2066 (the_low_target): Remove the op fields.
2067
2068 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2069
2070 Turn the 'get_pc' and 'set_pc' linux target ops into methods
2071 of linux_process_target.
2072
2073 * linux-low.h (struct linux_target_ops): Remove the ops.
2074 (class linux_process_target) <low_supports_breakpoints>
2075 <low_get_pc>
2076 <low_set_pc>: Declare.
2077 * linux-low.cc (supports_breakpoints): Turn into...
2078 (linux_process_target::low_supports_breakpoints): ...this.
2079 (linux_process_target::low_get_pc): Define.
2080 (linux_process_target::low_set_pc): Define.
2081
2082 Update the callers below.
2083
2084 (linux_process_target::get_pc)
2085 (linux_process_target::save_stop_reason)
2086 (linux_process_target::maybe_move_out_of_jump_pad)
2087 (linux_process_target::wait_1)
2088 (linux_process_target::resume_one_lwp_throw)
2089 (linux_process_target::resume)
2090 (linux_process_target::proceed_all_lwps)
2091 (linux_process_target::read_pc)
2092 (linux_process_target::write_pc)
2093
2094 * linux-x86-low.cc (class linux_process_target)
2095 <low_supports_breakpoints>
2096 <low_get_pc>
2097 <low_set_pc>: Declare.
2098 (x86_target::low_supports_breakpoints): Define.
2099 (x86_get_pc): Turn into...
2100 (x86_target::low_get_pc): ...this.
2101 (x86_set_pc): Turn into...
2102 (x86_target::low_set_pc): ...this.
2103 (the_low_target): Remove the op fields.
2104 * linux-arm-low.cc (class arm_target)
2105 <low_supports_breakpoints>
2106 <low_get_pc>
2107 <low_set_pc>: Declare.
2108 (arm_target::low_supports_breakpoints)
2109 (arm_target::low_get_pc)
2110 (arm_target::low_set_pc): Define.
2111 (the_low_target): Remove the op fields.
2112 * linux-bfin-low.cc (class bfin_target)
2113 <low_supports_breakpoints>
2114 <low_get_pc>
2115 <low_set_pc>: Declare.
2116 (bfin_target::low_supports_breakpoints)
2117 (bfin_target::low_get_pc)
2118 (bfin_target::low_set_pc): Define.
2119 (the_low_target): Remove the op fields.
2120 * linux-cris-low.cc (class cris_target)
2121 <low_supports_breakpoints>
2122 <low_get_pc>
2123 <low_set_pc>: Declare.
2124 (cris_target::low_supports_breakpoints)
2125 (cris_target::low_get_pc)
2126 (cris_target::low_set_pc): Define.
2127 (the_low_target): Remove the op fields.
2128 * linux-crisv32-low.cc (class crisv32_target)
2129 <low_supports_breakpoints>
2130 <low_get_pc>
2131 <low_set_pc>: Declare.
2132 (crisv32_target::low_supports_breakpoints)
2133 (crisv32_target::low_get_pc)
2134 (crisv32_target::low_set_pc): Define.
2135 (the_low_target): Remove the op fields.
2136 * linux-m32r-low.cc (class m32r_target)
2137 <low_supports_breakpoints>
2138 <low_get_pc>
2139 <low_set_pc>: Declare.
2140 (m32r_target::low_supports_breakpoints)
2141 (m32r_target::low_get_pc)
2142 (m32r_target::low_set_pc): Define.
2143 (the_low_target): Remove the op fields.
2144 * linux-m68k-low.cc (class m68k_target)
2145 <low_supports_breakpoints>
2146 <low_get_pc>
2147 <low_set_pc>: Declare.
2148 (m68k_target::low_supports_breakpoints)
2149 (m68k_target::low_get_pc)
2150 (m68k_target::low_set_pc): Define.
2151 (the_low_target): Remove the op fields.
2152 * linux-nios2-low.cc (class nios2_target)
2153 <low_supports_breakpoints>
2154 <low_get_pc>
2155 <low_set_pc>: Declare.
2156 (nios2_target::low_supports_breakpoints)
2157 (nios2_target::low_get_pc)
2158 (nios2_target::low_set_pc): Define.
2159 (the_low_target): Remove the op fields.
2160 * linux-sh-low.cc (class sh_target)
2161 <low_supports_breakpoints>
2162 <low_get_pc>
2163 <low_set_pc>: Declare.
2164 (sh_target::low_supports_breakpoints)
2165 (sh_target::low_get_pc)
2166 (sh_target::low_set_pc): Define.
2167 (the_low_target): Remove the op fields.
2168 * linux-xtensa-low.cc (class xtensa_target)
2169 <low_supports_breakpoints>
2170 <low_get_pc>
2171 <low_set_pc>: Declare.
2172 (xtensa_target::low_supports_breakpoints)
2173 (xtensa_target::low_get_pc)
2174 (xtensa_target::low_set_pc): Define.
2175 (the_low_target): Remove the op fields.
2176 * linux-sparc-low.cc (class sparc_target)
2177 <low_supports_breakpoints>
2178 <low_get_pc>: Declare.
2179 (sparc_target::low_supports_breakpoints)
2180 (sparc_target::low_get_pc): Define.
2181 (the_low_target): Remove the op fields.
2182 * linux-tile-low.cc (class tile_target)
2183 <low_supports_breakpoints>
2184 <low_get_pc>
2185 <low_set_pc>: Declare.
2186 (tile_target::low_supports_breakpoints)
2187 (tile_target::low_get_pc)
2188 (tile_target::low_set_pc): Define.
2189 (the_low_target): Remove the op fields.
2190 * linux-aarch64-low.cc (class aarch64_target)
2191 <low_supports_breakpoints>
2192 <low_get_pc>
2193 <low_set_pc>: Declare.
2194 (aarch64_target::low_supports_breakpoints): Define.
2195 (aarch64_get_pc): Turn into...
2196 (aarch64_target::low_get_pc): ...this.
2197 (aarch64_set_pc): Turn into...
2198 (aarch64_target::low_set_pc): ...this.
2199 (the_low_target): Remove the op fields.
2200 * linux-mips-low.cc (class mips_target)
2201 <low_supports_breakpoints>
2202 <low_get_pc>
2203 <low_set_pc>: Declare.
2204 (mips_target::low_supports_breakpoints): Define.
2205 (mips_get_pc): Turn into...
2206 (mips_target::low_get_pc): ...this.
2207 (mips_set_pc): Turn into...
2208 (mips_target::low_set_pc): ...this.
2209 (the_low_target): Remove the op fields.
2210 * linux-ppc-low.cc (class ppc_target)
2211 <low_supports_breakpoints>
2212 <low_get_pc>
2213 <low_set_pc>: Declare.
2214 (ppc_target::low_supports_breakpoints): Define.
2215 (ppc_get_pc): Turn into...
2216 (ppc_target::low_get_pc): ...this.
2217 (ppc_set_pc): Turn into...
2218 (ppc_target::low_set_pc): ...this.
2219 (the_low_target): Remove the op fields.
2220 * linux-riscv-low.cc (class riscv_target)
2221 <low_supports_breakpoints>
2222 <low_get_pc>
2223 <low_set_pc>: Declare.
2224 (riscv_target::low_supports_breakpoints): Define.
2225 (riscv_get_pc): Turn into...
2226 (riscv_target::low_get_pc): ...this.
2227 (riscv_set_pc): Turn into...
2228 (riscv_target::low_set_pc): ...this.
2229 (the_low_target): Remove the op fields.
2230 * linux-s390-low.cc (class s390_target)
2231 <low_supports_breakpoints>
2232 <low_get_pc>
2233 <low_set_pc>: Declare.
2234 (s390_target::low_supports_breakpoints): Define.
2235 (s390_get_pc): Turn into...
2236 (s390_target::low_get_pc): ...this.
2237 (s390_set_pc): Turn into...
2238 (s390_target::low_set_pc): ...this.
2239 (the_low_target): Remove the op fields.
2240 * linux-tic6x-low.cc (class tic6x_target)
2241 <low_supports_breakpoints>
2242 <low_get_pc>
2243 <low_set_pc>: Declare.
2244 (tic6x_target::low_supports_breakpoints): Define.
2245 (tic6x_get_pc): Turn into...
2246 (tic6x_target::low_get_pc): ...this.
2247 (tic6x_set_pc): Turn into...
2248 (tic6x_target::low_set_pc): ...this.
2249 (the_low_target): Remove the op fields.
2250
2251 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2252
2253 Turn some more static methods in linux-low into private methods
2254 of linux_process_target.
2255
2256 * linux-low.cc (get_pc): Turn into...
2257 (linux_process_target::get_pc): ...this.
2258 (save_stop_reason): Turn into...
2259 (linux_process_target::save_stop_reason): ...this.
2260 (thread_still_has_status_pending_p): Turn into...
2261 (linux_process_target::thread_still_has_status_pending): ...this.
2262 (status_pending_p_callback): Turn into...
2263 (linux_process_target::status_pending_p_callback): ...this.
2264 (resume_stopped_resumed_lwps): Turn into...
2265 (linux_process_target::resume_stopped_resumed_lwps): ...this.
2266 (install_software_single_step_breakpoints): Turn into...
2267 (linux_process_target::install_software_single_step_breakpoints):
2268 ...this.
2269 (single_step): Turn into...
2270 (linux_process_target::single_step): ...this.
2271 (linux_resume_one_lwp_throw): Turn into...
2272 (linux_process_target::resume_one_lwp_throw): ...this.
2273 (linux_resume_one_lwp): Turn into...
2274 (linux_process_target::resume_one_lwp): ...this.
2275 (resume_status_pending_p): Turn into...
2276 (linux_process_target::resume_status_pending): ...this.
2277 (need_step_over_p): Turn into...
2278 (linux_process_target::thread_needs_step_over): ...this.
2279 (linux_resume_one_thread): Turn into...
2280 (linux_process_target::resume_one_thread): ...this.
2281 (proceed_one_lwp): Turn into...
2282 (linux_process_target::proceed_one_lwp): ...this.
2283 (unsuspend_and_proceed_one_lwp): Turn into...
2284 (linux_process_target::unsuspend_and_proceed_one_lwp): ...this.
2285
2286 Update the calls/references to the above functions below.
2287
2288 (linux_process_target::handle_extended_wait)
2289 (linux_process_target::filter_event)
2290 (linux_process_target::wait_for_event_filtered)
2291 (linux_process_target::wait_1)
2292 (linux_process_target::move_out_of_jump_pad)
2293 (linux_process_target::start_step_over)
2294 (linux_process_target::resume)
2295 (linux_process_target::proceed_all_lwps)
2296 (regsets_store_inferior_registers)
2297 (linux_process_target::store_register)
2298
2299 * linux-low.h (class linux_process_target)
2300 <get_pc>
2301 <save_stop_reason>
2302 <thread_still_has_status_pending>
2303 <status_pending_p_callback>
2304 <resume_stopped_resumed_lwps>
2305 <install_software_single_step_breakpoints>
2306 <single_step>
2307 <resume_one_lwp_throw>
2308 <resume_one_lwp>
2309 <resume_status_pending>
2310 <thread_needs_step_over>
2311 <resume_one_thread>
2312 <proceed_one_lwp>
2313 <unsuspend_and_proceed_one_lwp>: Declare.
2314
2315 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2316
2317 Turn the 'fetch_register' linux target op into a method of
2318 linux_process_target.
2319
2320 * linux-low.h (struct linux_target_ops) <fetch_register>: Remove.
2321 (class linux_process_target) <low_fetch_register>: Declare.
2322 * linux-x86-low.cc (the_low_target)
2323 * linux-aarch64-low.cc (the_low_target)
2324 * linux-arm-low.cc (the_low_target)
2325 * linux-bfin-low.cc (the_low_target)
2326 * linux-cris-low.cc (the_low_target)
2327 * linux-crisv32-low.cc (the_low_target)
2328 * linux-m32r-low.cc (the_low_target)
2329 * linux-m68k-low.cc (the_low_target)
2330 * linux-nios2-low.cc (the_low_target)
2331 * linux-ppc-low.cc (the_low_target)
2332 * linux-s390-low.cc (the_low_target)
2333 * linux-sh-low.cc (the_low_target)
2334 * linux-sparc-low.cc (the_low_target)
2335 * linux-tic6x-low.cc (the_low_target)
2336 * linux-tile-low.cc (the_low_target)
2337 * linux-xtensa-low.cc (the_low_target): Remove the op field.
2338 * linux-ia64-low.cc (class ia64_target) <low_fetch_register>:
2339 Declare.
2340 (ia64_fetch_register): Turn into...
2341 (ia64_target::low_fetch_register): ...this.
2342 (the_low_target): Remove the op field.
2343 * linux-mips-low.cc (class mips_target) <low_fetch_register>:
2344 Declare.
2345 (mips_fetch_register): Turn into...
2346 (mips_target::low_fetch_register): ...this.
2347 (the_low_target): Remove the op field.
2348 * linux-riscv-low.cc (class riscv_target) <low_fetch_register>:
2349 Declare.
2350 (riscv_fetch_register): Turn into...
2351 (riscv_target::low_fetch_register): ...this.
2352 (the_low_target): Remove the op field.
2353
2354 Update the callers below.
2355
2356 * linux-low.cc (linux_process_target::fetch_registers)
2357 (linux_process_target::low_fetch_register)
2358
2359 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2360
2361 Turn the 'cannot_fetch_register' and 'cannot_store_register'
2362 linux target ops into methods of linux_process_target.
2363
2364 * linux-low.h (struct linux_target_ops): Remove the low target ops.
2365 (class linux_process_target) <fetch_register>
2366 <store_register>
2367 <usr_fetch_inferior_registers>
2368 <usr_store_inferior_registers>
2369 <low_cannot_fetch_register>
2370 <low_cannot_fetch_register> Declare.
2371 * linux-low.cc (fetch_register): Turn into...
2372 (linux_process_target::fetch_register): ...this.
2373 (store_register): Turn into ...
2374 (linux_process_target::store_register): ...this.
2375 (usr_fetch_inferior_registers): Turn into...
2376 (linux_process_target::usr_fetch_inferior_registers): ...this.
2377 (usr_store_inferior_registers): Turn into...
2378 (linux_process_target::usr_store_inferior_registers): ...this.
2379 * linux-x86-low.cc (class x86_target)
2380 <low_cannot_fetch_register>
2381 <low_cannot_store_register>: Declare.
2382 (x86_cannot_store_register): Turn into...
2383 (x86_target::low_cannot_store_register): ...this.
2384 (x86_cannot_fetch_register): Turn into...
2385 (x86_target::low_cannot_fetch_register): ...this.
2386 (the_low_target): Remove the target op fields.
2387 * linux-aarch64-low.cc (class aarch64_target)
2388 <low_cannot_fetch_register>
2389 <low_cannot_store_register>: Declare.
2390 (aarch64_target::low_cannot_fetch_register)
2391 (aarch64_target::low_cannot_store_register): Define.
2392 (the_low_target): Remove the op fields.
2393 * linux-arm-low.cc (class arm_target)
2394 <low_cannot_fetch_register>
2395 <low_cannot_store_register>: Declare.
2396 (arm_cannot_fetch_register): Turn into...
2397 (arm_target::low_cannot_fetch_register): ...this.
2398 (arm_cannot_store_register): Turn into...
2399 (arm_target::low_cannot_store_register): ...this.
2400 (the_low_target): Remove the op fields.
2401 * linux-bfin-low.cc (class bfin_target)
2402 <low_cannot_fetch_register>
2403 <low_cannot_store_register>: Declare.
2404 (bfin_cannot_fetch_register): Turn into...
2405 (bfin_target::low_cannot_fetch_register): ...this.
2406 (bfin_cannot_store_register): Turn into...
2407 (bfin_target::low_cannot_store_register): ...this.
2408 (the_low_target): Remove the op fields.
2409 * linux-cris-low.cc (class cris_target)
2410 <low_cannot_fetch_register>
2411 <low_cannot_store_register>: Declare.
2412 (cris_cannot_fetch_register): Turn into...
2413 (cris_target::low_cannot_fetch_register): ...this.
2414 (cris_cannot_store_register): Turn into...
2415 (cris_target::low_cannot_store_register): ...this.
2416 (the_low_target): Remove the op fields.
2417 * linux-crisv32-low.cc (class crisv32_target)
2418 <low_cannot_fetch_register>
2419 <low_cannot_store_register>: Declare.
2420 (crisv32_target::low_cannot_fetch_register)
2421 (crisv32_target::low_cannot_store_register): Define.
2422 (the_low_target): Remove the op fields.
2423 * linux-ia64-low.cc (class ia64_target)
2424 <low_cannot_fetch_register>
2425 <low_cannot_store_register>: Declare.
2426 (ia64_cannot_fetch_register): Turn into...
2427 (ia64_target::low_cannot_fetch_register): ...this.
2428 (ia64_cannot_store_register): Turn into...
2429 (ia64_target::low_cannot_store_register): ...this.
2430 (the_low_target): Remove the op fields.
2431 * linux-m32r-low.cc (class m32r_target)
2432 <low_cannot_fetch_register>
2433 <low_cannot_store_register>: Declare.
2434 (m32r_cannot_fetch_register): Turn into...
2435 (m32r_target::low_cannot_fetch_register): ...this.
2436 (m32r_cannot_store_register): Turn into...
2437 (m32r_target::low_cannot_store_register): ...this.
2438 (the_low_target): Remove the op fields.
2439 * linux-m68k-low.cc (class m68k_target)
2440 <low_cannot_fetch_register>
2441 <low_cannot_store_register>: Declare.
2442 (m68k_cannot_fetch_register): Turn into...
2443 (m68k_target::low_cannot_fetch_register): ...this.
2444 (m68k_cannot_store_register): Turn into...
2445 (m68k_target::low_cannot_store_register): ...this.
2446 (the_low_target): Remove the op fields.
2447 * linux-mips-low.cc (class mips_target)
2448 <low_cannot_fetch_register>
2449 <low_cannot_store_register>: Declare.
2450 (mips_cannot_fetch_register): Turn into...
2451 (mips_target::low_cannot_fetch_register): ...this.
2452 (mips_cannot_store_register): Turn into...
2453 (mips_target::low_cannot_store_register): ...this.
2454 (get_usrregs_info): Inline at the call sites in
2455 low_cannot_fetch_register and low_cannot_store_register,
2456 and remove.
2457 (the_low_target): Remove the op fields.
2458 * linux-nios2-low.cc (class nios2_target)
2459 <low_cannot_fetch_register>
2460 <low_cannot_store_register>: Declare.
2461 (nios2_cannot_fetch_register): Turn into...
2462 (nios2_target::low_cannot_fetch_register): ...this.
2463 (nios2_cannot_store_register): Turn into...
2464 (nios2_target::low_cannot_store_register): ...this.
2465 (the_low_target): Remove the op fields.
2466 * linux-ppc-low.cc (class ppc_target)
2467 <low_cannot_fetch_register>
2468 <low_cannot_store_register>: Declare.
2469 (ppc_cannot_fetch_register): Turn into...
2470 (ppc_target::low_cannot_fetch_register): ...this.
2471 (ppc_cannot_store_register): Turn into...
2472 (ppc_target::low_cannot_store_register): ...this.
2473 (the_low_target): Remove the op fields.
2474 * linux-riscv-low.cc (class riscv_target)
2475 <low_cannot_fetch_register>
2476 <low_cannot_store_register>: Declare.
2477 (riscv_target::low_cannot_fetch_register)
2478 (riscv_target::low_cannot_store_register): Define.
2479 (the_low_target): Remove the op fields.
2480 * linux-s390-low.cc (class s390_target)
2481 <low_cannot_fetch_register>
2482 <low_cannot_store_register>: Declare.
2483 (s390_cannot_fetch_register): Turn into...
2484 (s390_target::low_cannot_fetch_register): ...this.
2485 (s390_cannot_store_register): Turn into...
2486 (s390_target::low_cannot_store_register): ...this.
2487 (the_low_target): Remove the op fields.
2488 * linux-sh-low.cc (class sh_target)
2489 <low_cannot_fetch_register>
2490 <low_cannot_store_register>: Declare.
2491 (sh_cannot_fetch_register): Turn into...
2492 (sh_target::low_cannot_fetch_register): ...this.
2493 (sh_cannot_store_register): Turn into...
2494 (sh_target::low_cannot_store_register): ...this.
2495 (the_low_target): Remove the op fields.
2496 * linux-sparc-low.cc (class sparc_target)
2497 <low_cannot_fetch_register>
2498 <low_cannot_store_register>: Declare.
2499 (sparc_cannot_fetch_register): Turn into...
2500 (sparc_target::low_cannot_fetch_register): ...this.
2501 (sparc_cannot_store_register): Turn into...
2502 (sparc_target::low_cannot_store_register): ...this.
2503 (the_low_target): Remove the op fields.
2504 * linux-tic6x-low.cc (class tic6x_target)
2505 <low_cannot_fetch_register>
2506 <low_cannot_store_register>: Declare.
2507 (tic6x_cannot_fetch_register): Turn into...
2508 (tic6x_target::low_cannot_fetch_register): ...this.
2509 (tic6x_cannot_store_register): Turn into...
2510 (tic6x_target::low_cannot_store_register): ...this.
2511 (the_low_target): Remove the op fields.
2512 * linux-tile-low.cc (class tile_target)
2513 <low_cannot_fetch_register>
2514 <low_cannot_store_register>: Declare.
2515 (tile_cannot_fetch_register): Turn into...
2516 (tile_target::low_cannot_fetch_register): ...this.
2517 (tile_cannot_store_register): Turn into...
2518 (tile_target::low_cannot_store_register): ...this.
2519 (the_low_target): Remove the op fields.
2520 * linux-xtensa-low.cc (class xtensa_target)
2521 <low_cannot_fetch_register>
2522 <low_cannot_store_register>: Declare.
2523 (xtensa_target::low_cannot_fetch_register)
2524 (xtensa_target::low_cannot_store_register): Define.
2525 (the_low_target): Remove the op fields.
2526
2527 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2528
2529 Turn the 'regs_info' linux target op into a method of
2530 linux_process_target.
2531
2532 * linux-low.h (struct linux_target_ops) <regs_info>: Remove.
2533 (class linux_process_target) <get_regs_info>: Define.
2534
2535 Update the callers below.
2536
2537 * linux-low.cc (linux_process_target::fetch_registers)
2538 (linux_process_target::store_registers)
2539 * proc-service.cc (gregset_info)
2540
2541 * linux-x86-low.cc (class x86_target) <get_regs_info>: Declare.
2542 (x86_linux_regs_info): Turn into ...
2543 (x86_target::get_regs_info): ...this.
2544 (the_low_target): Remove the op field.
2545 * linux-aarch64-low.cc (class aarch64_target) <get_regs_info>:
2546 Declare.
2547 (aarch64_regs_info): Turn into ...
2548 (aarch64_target::get_regs_info): ...this.
2549 (the_low_target): Remove the op field.
2550 * linux-arm-low.cc (class arm_target) <get_regs_info>: Declare.
2551 (arm_regs_info): Turn into ...
2552 (arm_target::get_regs_info): ...this.
2553 (the_low_target): Remove the op field.
2554 * linux-bfin-low.cc (class bfin_target) <get_regs_info>: Declare.
2555 (bfin_regs_info): Turn into ...
2556 (bfin_target::get_regs_info): ...this.
2557 (the_low_target): Remove the op field.
2558 * linux-cris-low.cc (class cris_target) <get_regs_info>: Declare.
2559 (cris_regs_info): Turn into ...
2560 (cris_target::get_regs_info): ...this.
2561 (the_low_target): Remove the op field.
2562 * linux-crisv32-low.cc (class crisv32_target) <get_regs_info>:
2563 Declare.
2564 (crisv32_regs_info): Turn into ...
2565 (crisv32_target::get_regs_info): ...this.
2566 (the_low_target): Remove the op field.
2567 * linux-ia64-low.cc (class ia64_target) <get_regs_info>: Declare.
2568 (ia64_regs_info): Turn into ...
2569 (ia64_target::get_regs_info): ...this.
2570 (the_low_target): Remove the op field.
2571 * linux-m32r-low.cc (class m32r_target) <get_regs_info>: Declare.
2572 (m32r_regs_info): Turn into ...
2573 (m32r_target::get_regs_info): ...this.
2574 (the_low_target): Remove the op field.
2575 * linux-m68k-low.cc (class m68k_target) <get_regs_info>: Declare.
2576 (m68k_regs_info): Turn into ...
2577 (m68k_target::get_regs_info): ...this.
2578 (the_low_target): Remove the op field.
2579 * linux-mips-low.cc (class mips_target) <get_regs_info>: Declare.
2580 (mips_regs_info): Turn into ...
2581 (mips_target::get_regs_info): ...this.
2582 (the_low_target): Remove the op field.
2583 (get_usrregs_info): Update the call to the op.
2584 * linux-nios2-low.cc (class nios2_target) <get_regs_info>: Declare.
2585 (nios2_regs_info): Turn into ...
2586 (nios2_target::get_regs_info): ...this.
2587 (the_low_target): Remove the op field.
2588 * linux-ppc-low.cc (class ppc_target) <get_regs_info>: Declare.
2589 (ppc_regs_info): Turn into ...
2590 (ppc_target::get_regs_info): ...this.
2591 (the_low_target): Remove the op field.
2592 * linux-riscv-low.cc (class riscv_target) <get_regs_info>: Declare.
2593 (riscv_regs_info): Turn into ...
2594 (riscv_target::get_regs_info): ...this.
2595 (the_low_target): Remove the op field.
2596 * linux-s390-low.cc (class s390_target) <get_regs_info>: Declare.
2597 (s390_regs_info): Turn into ...
2598 (s390_target::get_regs_info): ...this.
2599 (the_low_target): Remove the op field.
2600 (s390_collect_ptrace_register)
2601 (s390_supply_ptrace_register)
2602 (s390_fill_gregset): Update the call to the op.
2603 * linux-sh-low.cc (class sh_target) <get_regs_info>: Declare.
2604 (sh_regs_info): Turn into ...
2605 (sh_target::get_regs_info): ...this.
2606 (the_low_target): Remove the op field.
2607 * linux-sparc-low.cc (class sparc_target) <get_regs_info>: Declare.
2608 (sparc_regs_info): Turn into ...
2609 (sparc_target::get_regs_info): ...this.
2610 (the_low_target): Remove the op field.
2611 * linux-tic6x-low.cc (class tic6x_target) <get_regs_info>: Declare.
2612 (tic6x_regs_info): Turn into ...
2613 (tic6x_target::get_regs_info): ...this.
2614 (the_low_target): Remove the op field.
2615 * linux-tile-low.cc (class tile_target) <get_regs_info>: Declare.
2616 (tile_regs_info): Turn into ...
2617 (tile_target::get_regs_info): ...this.
2618 (the_low_target): Remove the op field.
2619 * linux-xtensa-low.cc (class xtensa_target) <get_regs_info>:
2620 Declare.
2621 (xtensa_regs_info): Turn into ...
2622 (xtensa_target::get_regs_info): ...this.
2623 (the_low_target): Remove the op field.
2624
2625 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2626
2627 Turn the 'arch_setup' linux target op into a method of
2628 linux_process_target.
2629
2630 * linux-low.h (struct linux_target_ops) <arch_setup>: Delete.
2631 (class linux_process_target) <arch_setup_thread>
2632 <low_arch_setup>: New declarations.
2633 * linux-low.cc (linux_arch_setup): Delete.
2634 (linux_arch_setup_thread): Turn into...
2635 (linux_process_target::arch_setup_thread): ... this.
2636
2637 Update the callers below.
2638
2639 (linux_process_target::handle_extended_wait)
2640 (linux_process_target::post_create_inferior)
2641 (linux_process_target::filter_event)
2642
2643 * linux-x86-low.cc (class x86_target) <low_arch_setup>: New
2644 declaration.
2645 (x86_linux_update_xmltarget): Turn into...
2646 (x86_target::update_xmltarget): ...this.
2647 (x86_linux_process_qsupported): Update the call to
2648 x86_linux_update_xmltarget.
2649 (x86_arch_setup): Turn into ...
2650 (x86_target::low_arch_setup): ...this.
2651 (the_low_target): Remove the op field.
2652 * linux-aarch64-low.cc (class aarch64_target) <low_arch_setup>: New
2653 declaration.
2654 (aarch64_arch_setup): Turn into ...
2655 (aarch64_target::low_arch_setup): ...this.
2656 (the_low_target): Remove the op field.
2657 * linux-arm-low.cc (class arm_target) <low_arch_setup>: New
2658 declaration.
2659 (arm_arch_setup): Turn into ...
2660 (arm_target::low_arch_setup): ...this.
2661 (the_low_target): Remove the op field.
2662 * linux-bfin-low.cc (class bfin_target) <low_arch_setup>: New
2663 declaration.
2664 (bfin_arch_setup): Turn into ...
2665 (bfin_target::low_arch_setup): ...this.
2666 (the_low_target): Remove the op field.
2667 * linux-cris-low.cc (class cris_target) <low_arch_setup>: New
2668 declaration.
2669 (cris_arch_setup): Turn into ...
2670 (cris_target::low_arch_setup): ...this.
2671 (the_low_target): Remove the op field.
2672 * linux-crisv32-low.cc (class crisv32_target) <low_arch_setup>: New
2673 declaration.
2674 (crisv32_arch_setup): Turn into ...
2675 (crisv32_target::low_arch_setup): ...this.
2676 (the_low_target): Remove the op field.
2677 * linux-ia64-low.cc (class ia64_target) <low_arch_setup>: New
2678 declaration.
2679 (ia64_arch_setup): Turn into ...
2680 (ia64_target::low_arch_setup): ...this.
2681 (the_low_target): Remove the op field.
2682 * linux-m32r-low.cc (class m32r_target) <low_arch_setup>: New
2683 declaration.
2684 (m32r_arch_setup): Turn into ...
2685 (m32r_target::low_arch_setup): ...this.
2686 (the_low_target): Remove the op field.
2687 * linux-m68k-low.cc (class m68k_target) <low_arch_setup>: New
2688 declaration.
2689 (m68k_arch_setup): Turn into ...
2690 (m68k_target::low_arch_setup): ...this.
2691 (the_low_target): Remove the op field.
2692 * linux-mips-low.cc (class mips_target) <low_arch_setup>: New
2693 declaration.
2694 (mips_arch_setup): Turn into ...
2695 (mips_target::low_arch_setup): ...this.
2696 (the_low_target): Remove the op field.
2697 * linux-nios2-low.cc (class nios2_target) <low_arch_setup>: New
2698 declaration.
2699 (nios2_arch_setup): Turn into ...
2700 (nios2_target::low_arch_setup): ...this.
2701 (the_low_target): Remove the op field.
2702 * linux-ppc-low.cc (class ppc_target) <low_arch_setup>: New
2703 declaration.
2704 (ppc_arch_setup): Turn into ...
2705 (ppc_target::low_arch_setup): ...this.
2706 (the_low_target): Remove the op field.
2707 * linux-riscv-low.cc (class riscv_target) <low_arch_setup>: New
2708 declaration.
2709 (riscv_arch_setup): Turn into ...
2710 (riscv_target::low_arch_setup): ...this.
2711 (the_low_target): Remove the op field.
2712 * linux-s390-low.cc (class s390_target) <low_arch_setup>: New
2713 declaration.
2714 (s390_arch_setup): Turn into ...
2715 (s390_target::low_arch_setup): ...this.
2716 (the_low_target): Remove the op field.
2717 * linux-sh-low.cc (class sh_target) <low_arch_setup>: New
2718 declaration.
2719 (sh_arch_setup): Turn into ...
2720 (sh_target::low_arch_setup): ...this.
2721 (the_low_target): Remove the op field.
2722 * linux-sparc-low.cc (class sparc_target) <low_arch_setup>: New
2723 declaration.
2724 (sparc_arch_setup): Turn into ...
2725 (sparc_target::low_arch_setup): ...this.
2726 (the_low_target): Remove the op field.
2727 * linux-tic6x-low.cc (class tic6x_target) <low_arch_setup>: New
2728 declaration.
2729 (tic6x_arch_setup): Turn into ...
2730 (tic6x_target::low_arch_setup): ...this.
2731 (the_low_target): Remove the op field.
2732 * linux-tile-low.cc (class tile_target) <low_arch_setup>: New
2733 declaration.
2734 (tile_arch_setup): Turn into ...
2735 (tile_target::low_arch_setup): ...this.
2736 (the_low_target): Remove the op field.
2737 * linux-xtensa-low.cc (class xtensa_target) <low_arch_setup>: New
2738 declaration.
2739 (xtensa_arch_setup): Turn into ...
2740 (xtensa_target::low_arch_setup): ...this.
2741 (the_low_target): Remove the op field.
2742
2743 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2744
2745 * linux-low.h (the_linux_target): New extern declaration.
2746 * linux-low.cc (initialize_low): Use 'the_linux_target' to set
2747 'the_target'.
2748 (the_linux_target): Remove.
2749 * linux-x86-low.cc (class x86_target): New class.
2750 (the_x86_target): New static object.
2751 (the_linux_target): Define as pointer to the_x86_target.
2752 * linux-aarch64-low.cc (class aarch64_target): New class.
2753 (the_aarch64_target): New static object.
2754 (the_linux_target): Define as pointer to the_aarch64_target.
2755 * linux-arm-low.cc (class arm_target): New class.
2756 (the_arm_target): New static object.
2757 (the_linux_target): Define as pointer to the_arm_target.
2758 * linux-bfin-low.cc (class bfin_target): New class.
2759 (the_bfin_target): New static object.
2760 (the_linux_target): Define as pointer to the_bfin_target.
2761 * linux-cris-low.cc (class cris_target): New class.
2762 (the_cris_target): New static object.
2763 (the_linux_target): Define as pointer to the_cris_target.
2764 * linux-crisv32-low.cc (class crisv32_target): New class.
2765 (the_crisv32_target): New static object.
2766 (the_linux_target): Define as pointer to the_crisv32_target.
2767 * linux-ia64-low.cc (class ia64_target): New class.
2768 (the_ia64_target): New static object.
2769 (the_linux_target): Define as pointer to the_ia64_target.
2770 * linux-m32r-low.cc (class m32r_target): New class.
2771 (the_m32r_target): New static object.
2772 (the_linux_target): Define as pointer to the_m32r_target.
2773 * linux-m68k-low.cc (class m68k_target): New class.
2774 (the_m68k_target): New static object.
2775 (the_linux_target): Define as pointer to the_m68k_target.
2776 * linux-mips-low.cc (class mips_target): New class.
2777 (the_mips_target): New static object.
2778 (the_linux_target): Define as pointer to the_mips_target.
2779 * linux-nios2-low.cc (class nios2_target): New class.
2780 (the_nios2_target): New static object.
2781 (the_linux_target): Define as pointer to the_nios2_target.
2782 * linux-ppc-low.cc (class ppc_target): New class.
2783 (the_ppc_target): New static object.
2784 (the_linux_target): Define as pointer to the_ppc_target.
2785 * linux-riscv-low.cc (class riscv_target): New class.
2786 (the_riscv_target): New static object.
2787 (the_linux_target): Define as pointer to the_riscv_target.
2788 * linux-s390-low.cc (class s390_target): New class.
2789 (the_s390_target): New static object.
2790 (the_linux_target): Define as pointer to the_s390_target.
2791 * linux-sh-low.cc (class sh_target): New class.
2792 (the_sh_target): New static object.
2793 (the_linux_target): Define as pointer to the_sh_target.
2794 * linux-sparc-low.cc (class sparc_target): New class.
2795 (the_sparc_target): New static object.
2796 (the_linux_target): Define as pointer to the_sparc_target.
2797 * linux-tic6x-low.cc (class tic6x_target): New class.
2798 (the_tic6x_target): New static object.
2799 (the_linux_target): Define as pointer to the_tic6x_target.
2800 * linux-tile-low.cc (class tile_target): New class.
2801 (the_tile_target): New static object.
2802 (the_linux_target): Define as pointer to the_tile_target.
2803 * linux-xtensa-low.cc (class xtensa_target): New class.
2804 (the_xtensa_target): New static object.
2805 (the_linux_target): Define as pointer to the_xtensa_target.
2806
2807 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2808
2809 Turn some static functions in linux-low.cc into private methods of
2810 linux_process_target.
2811
2812 * linux-low.cc (handle_extended_wait): Turn into ...
2813 (linux_process_target::handle_extended_wait): ...this. Call
2814 'mourn' on 'this' object instead of 'the_target'.
2815 (maybe_move_out_of_jump_pad): Turn into...
2816 (linux_process_target::maybe_move_out_of_jump_pad): ...this.
2817 (linux_low_filter_event): Turn into...
2818 (linux_process_target::filter_event): ...this.
2819 (linux_wait_for_event_filtered): Turn into...
2820 (linux_process_target::wait_for_event_filtered): ...this.
2821 (linux_wait_for_event): Turn into...
2822 (linux_process_target::wait_for_event): ...this.
2823 (linux_wait_1): Turn into...
2824 (linux_process_target::wait_1): ...this.
2825 (wait_for_sigstop): Turn into...
2826 (linux_process_target::wait_for_sigstop): ...this.
2827 (move_out_of_jump_pad_callback): Turn into...
2828 (linux_process_target::move_out_of_jump_pad): ...this.
2829 (stop_all_lwps): Turn into...
2830 (linux_process_target::stop_all_lwps): ...this.
2831 (start_step_over): Turn into...
2832 (linux_process_target::start_step_over): ...this.
2833 (complete_ongoing_step_over): Turn into...
2834 (linux_process_target::complete_ongoing_step_over): ...this.
2835 (proceed_all_lwps): Turn into...
2836 (linux_process_target::proceed_all_lwps): ...this.
2837 (unstop_all_lwps): Turn into...
2838 (linux_process_target::unstop_all_lwps): ...this.
2839
2840 * linux-low.h (class linux_process_target)
2841 <handle_extended_wait>
2842 <maybe_move_out_of_jump_pad>
2843 filter_event>
2844 <wait_for_event_filtered>
2845 <wait_for_event>
2846 <wait_1>
2847 <wait_for_sigstop>
2848 <move_out_of_jump_pad>
2849 <stop_all_lwps>
2850 <start_step_over>
2851 <complete_ongoing_step_over>
2852 <proceed_all_lwps>
2853 <unstop_all_lwps>: Declare.
2854
2855 Update the callers below.
2856
2857 * linux-low.cc (linux_process_target::attach): Update.
2858 (linux_process_target::stabilize_threads): Ditto.
2859 (linux_process_target::wait): Ditto.
2860
2861 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2862
2863 * linux-low.h (struct linux_target_ops): Update the comment for
2864 'cannot_store_register' to return 0 or 1.
2865 * linux-ppc-low.cc (ppc_cannot_store_register): Return 1 instead
2866 of 2.
2867
2868 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
2869
2870 * config.in: Re-generate.
2871 * configure: Re-generate.
2872
2873 2020-03-17 Kamil Rytarowski <n54@gmx.com>
2874
2875 * regcache.cc (find_register_by_number): Update.
2876 * tdesc.cc (init_target_desc): Likewise.
2877 * tdesc.h (target_desc::reg_defs): Likewise.
2878
2879 2020-03-12 Tom Tromey <tom@tromey.com>
2880
2881 * configure: Rebuild.
2882 * configure.ac (GDBSERVER_DEPFILES): Remove srv_selftest_objs.
2883 (WIN32APILIBS): New subst.
2884 * Makefile.in (SFILES, OBS, TAGS, GDBREPLAY_OBS): Remove
2885 gdbsupport files.
2886 (gdbsupport/%.o): Remove target.
2887 (GDBSUPPORT_BUILDDIR, GDBSUPPORT): New variables.
2888 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Add GDBSUPPORT.
2889 (WIN32APILIBS): New variable.
2890 (gdbserver$(EXEEXT)): Add WIN32APILIBS.
2891 (gdbreplay$(EXEEXT)): Likewise.
2892
2893 2020-03-12 Tom Tromey <tom@tromey.com>
2894
2895 * config.in, configure: Rebuild.
2896 * configure.ac: Call ZW_GNU_GETTEXT_SISTER_DIR.
2897 * acinclude.m4: Include gettext-sister.m4.
2898 * Makefile.in (top_builddir, INTL, INTL_DEPS, INTL_CFLAGS): New
2899 variables.
2900 (INCLUDE_CFLAGS): Add INTL_CFLAGS.
2901 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL.
2902
2903 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2904
2905 * acinclude.m4: Update path to selftest.m4.
2906
2907 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2908
2909 * configure.ac: Don't source bfd/development.sh, move
2910 GDB_AC_COMMON higher.
2911 * configure: Re-generate.
2912
2913 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2914
2915 * configure: Re-generate.
2916
2917 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
2918
2919 * configure: Re-generate.
2920
2921 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2922
2923 * .dir-locals.el: New file.
2924
2925 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2926
2927 * .gitattributes: New file.
2928
2929 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
2930
2931 * remote-utils.cc (prepare_resume_reply): Add ability to convert T
2932 reply into an S reply.
2933 * server.cc (disable_packet_T): New global.
2934 (captured_main): Set new global when appropriate.
2935 * server.h (disable_packet_T): Declare.
2936
2937 2020-02-21 Tom Tromey <tom@tromey.com>
2938
2939 * Makefile.in (mostlyclean): New target.
2940
2941 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2942
2943 * target.h (struct process_stratum_target): Remove.
2944 (class process_target): Rename to ...
2945 (class process_stratum_target): ... this.
2946 * linux-low.h (class linux_process_target): Derive from
2947 'process_stratum_target'.
2948 * linux-low.cc (linux_target_ops): Remove.
2949 (initialize_low): Set the_target to the singleton instance of
2950 linux_process_target.
2951 * lynx-low.h (class lynx_process_target): Derive from
2952 'process_stratum_target'.
2953 * lynx-low.cc (lynx_target_ops): Remove.
2954 (initialize_low): Set the_target to the singleton instance of
2955 lynx_process_target.
2956 * nto-low.h (class nto_process_target): Derive from
2957 'process_stratum_target'.
2958 * nto-low.cc (nto_target_ops): Remove.
2959 (initialize_low): Set the_target to the singleton instance of
2960 nto_process_target.
2961 * win32-low.h (class win32_process_target): Derive from
2962 'process_stratum_target'.
2963 * win32-low.cc (win32_target_ops): Remove.
2964 (initialize_low): Set the_target to the singleton instance of
2965 win32_process_target.
2966
2967 Replace 'the_target->pt' with 'the_target' in the uses below.
2968
2969 * hostio.cc (hostio_error)
2970 (handle_setfs)
2971 (handle_open)
2972 (handle_unlink)
2973 (handle_readlink)
2974 * linux-aarch32-low.cc (arm_breakpoint_at)
2975 * linux-aarch64-low.cc (aarch64_breakpoint_at)
2976 * linux-arm-low.cc (arm_sigreturn_next_pc)
2977 (arm_get_hwcap)
2978 (arm_get_syscall_trapinfo)
2979 * linux-cris-low.cc (cris_breakpoint_at)
2980 * linux-crisv32-low.cc (cris_breakpoint_at)
2981 * linux-low.cc (handle_extended_wait)
2982 (linux_wait_1)
2983 (linux_read_memory)
2984 (linux_process_target::breakpoint_kind_from_pc)
2985 (linux_get_auxv)
2986 * linux-m32r-low.cc (m32r_breakpoint_at)
2987 * linux-mips-low.cc (mips_breakpoint_at)
2988 * linux-nios2-low.cc (nios2_breakpoint_at)
2989 * linux-ppc-low.cc (ppc_breakpoint_at)
2990 * linux-s390-low.cc (s390_get_hwcap)
2991 * linux-sh-low.cc (sh_breakpoint_at)
2992 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
2993 (sparc_store_gregset_from_stack)
2994 (sparc_breakpoint_at)
2995 * linux-tic6x-low.cc (tic6x_breakpoint_at)
2996 * linux-tile-low.cc (tile_breakpoint_at)
2997 * linux-x86-low.cc (x86_breakpoint_at)
2998 * linux-xtensa-low.cc (xtensa_breakpoint_at)
2999 * mem-break.cc (bp_size)
3000 (bp_opcode)
3001 (insert_memory_breakpoint)
3002 (set_raw_breakpoint_at)
3003 (delete_raw_breakpoint)
3004 (z_type_supported)
3005 (uninsert_raw_breakpoint)
3006 (reinsert_raw_breakpoint)
3007 (validate_inserted_breakpoint)
3008 * regcache.cc (regcache_read_pc)
3009 (regcache_write_pc)
3010 * remote-utils.cc (putpkt_binary_1)
3011 (input_interrupt)
3012 (getpkt)
3013 (prepare_resume_reply)
3014 * server.cc (handle_general_set)
3015 (handle_detach)
3016 (handle_qxfer_auxv)
3017 (handle_qxfer_exec_file)
3018 (handle_qxfer_libraries_svr4)
3019 (handle_qxfer_osdata)
3020 (handle_qxfer_siginfo)
3021 (handle_qxfer_fdpic)
3022 (handle_query)
3023 (resume)
3024 (handle_v_requests)
3025 (queue_stop_reply_callback)
3026 (captured_main)
3027 * target.cc (prepare_to_access_memory)
3028 (done_accessing_memory)
3029 (read_inferior_memory)
3030 (target_write_memory)
3031 (target_stop_and_wait)
3032 (target_wait)
3033 (target_mourn_inferior)
3034 (target_continue_no_signal)
3035 (target_continue)
3036 (target_supports_multi_process)
3037 (kill_inferior)
3038 * target.h
3039 (target_create_inferior)
3040 (target_post_create_inferior)
3041 (myattach)
3042 (target_supports_fork_events)
3043 (target_supports_vfork_events)
3044 (target_supports_exec_events)
3045 (target_handle_new_gdb_connection)
3046 (detach_inferior)
3047 (mythread_alive)
3048 (fetch_inferior_registers)
3049 (store_inferior_registers)
3050 (join_inferior)
3051 (target_supports_non_stop)
3052 (target_async)
3053 (target_process_qsupported)
3054 (target_supports_catch_syscall)
3055 (target_get_ipa_tdesc_idx)
3056 (target_supports_tracepoints)
3057 (target_supports_fast_tracepoints)
3058 (target_get_min_fast_tracepoint_insn_len)
3059 (target_thread_stopped)
3060 (target_pause_all)
3061 (target_unpause_all)
3062 (target_stabilize_threads)
3063 (target_install_fast_tracepoint_jump_pad)
3064 (target_emit_ops)
3065 (target_supports_disable_randomization)
3066 (target_supports_agent)
3067 (target_enable_btrace)
3068 (target_disable_btrace)
3069 (target_read_btrace)
3070 (target_read_btrace_conf)
3071 (target_supports_range_stepping)
3072 (target_supports_stopped_by_sw_breakpoint)
3073 (target_stopped_by_sw_breakpoint)
3074 (target_supports_stopped_by_hw_breakpoint)
3075 (target_supports_hardware_single_step)
3076 (target_stopped_by_hw_breakpoint)
3077 (target_breakpoint_kind_from_pc)
3078 (target_breakpoint_kind_from_current_state)
3079 (target_supports_software_single_step)
3080 (target_core_of_thread)
3081 (target_thread_name)
3082 (target_thread_handle)
3083 * win32-low.cc (do_initial_child_stuff)
3084
3085 Rename target op default definitions listed below.
3086
3087 * target.cc (process_target::post_create_inferior): Rename as ...
3088 (process_stratum_target::post_create_inferior): ... this.
3089 (process_target::prepare_to_access_memory): Rename as ...
3090 (process_stratum_target::prepare_to_access_memory): ... this.
3091 (process_target::done_accessing_memory): Rename as ...
3092 (process_stratum_target::done_accessing_memory): ... this.
3093 (process_target::look_up_symbols): Rename as ...
3094 (process_stratum_target::look_up_symbols): ... this.
3095 (process_target::supports_read_auxv): Rename as ...
3096 (process_stratum_target::supports_read_auxv): ... this.
3097 (process_target::read_auxv): Rename as ...
3098 (process_stratum_target::read_auxv): ... this.
3099 (process_target::supports_z_point_type): Rename as ...
3100 (process_stratum_target::supports_z_point_type): ... this.
3101 (process_target::insert_point): Rename as ...
3102 (process_stratum_target::insert_point): ... this.
3103 (process_target::remove_point): Rename as ...
3104 (process_stratum_target::remove_point): ... this.
3105 (process_target::stopped_by_sw_breakpoint): Rename as ...
3106 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
3107 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
3108 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
3109 (process_target::stopped_by_hw_breakpoint): Rename as ...
3110 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
3111 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
3112 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
3113 (process_target::supports_hardware_single_step): Rename as ...
3114 (process_stratum_target::supports_hardware_single_step): ... this.
3115 (process_target::stopped_by_watchpoint): Rename as ...
3116 (process_stratum_target::stopped_by_watchpoint): ... this.
3117 (process_target::stopped_data_address): Rename as ...
3118 (process_stratum_target::stopped_data_address): ... this.
3119 (process_target::supports_read_offsets): Rename as ...
3120 (process_stratum_target::supports_read_offsets): ... this.
3121 (process_target::read_offsets): Rename as ...
3122 (process_stratum_target::read_offsets): ... this.
3123 (process_target::supports_get_tls_address): Rename as ...
3124 (process_stratum_target::supports_get_tls_address): ... this.
3125 (process_target::get_tls_address): Rename as ...
3126 (process_stratum_target::get_tls_address): ... this.
3127 (process_target::hostio_last_error): Rename as ...
3128 (process_stratum_target::hostio_last_error): ... this.
3129 (process_target::supports_qxfer_osdata): Rename as ...
3130 (process_stratum_target::supports_qxfer_osdata): ... this.
3131 (process_target::qxfer_osdata): Rename as ...
3132 (process_stratum_target::qxfer_osdata): ... this.
3133 (process_target::supports_qxfer_siginfo): Rename as ...
3134 (process_stratum_target::supports_qxfer_siginfo): ... this.
3135 (process_target::qxfer_siginfo): Rename as ...
3136 (process_stratum_target::qxfer_siginfo): ... this.
3137 (process_target::supports_non_stop): Rename as ...
3138 (process_stratum_target::supports_non_stop): ... this.
3139 (process_target::async): Rename as ...
3140 (process_stratum_target::async): ... this.
3141 (process_target::start_non_stop): Rename as ...
3142 (process_stratum_target::start_non_stop): ... this.
3143 (process_target::supports_multi_process): Rename as ...
3144 (process_stratum_target::supports_multi_process): ... this.
3145 (process_target::supports_fork_events): Rename as ...
3146 (process_stratum_target::supports_fork_events): ... this.
3147 (process_target::supports_vfork_events): Rename as ...
3148 (process_stratum_target::supports_vfork_events): ... this.
3149 (process_target::supports_exec_events): Rename as ...
3150 (process_stratum_target::supports_exec_events): ... this.
3151 (process_target::handle_new_gdb_connection): Rename as ...
3152 (process_stratum_target::handle_new_gdb_connection): ... this.
3153 (process_target::handle_monitor_command): Rename as ...
3154 (process_stratum_target::handle_monitor_command): ... this.
3155 (process_target::core_of_thread): Rename as ...
3156 (process_stratum_target::core_of_thread): ... this.
3157 (process_target::supports_read_loadmap): Rename as ...
3158 (process_stratum_target::supports_read_loadmap): ... this.
3159 (process_target::read_loadmap): Rename as ...
3160 (process_stratum_target::read_loadmap): ... this.
3161 (process_target::process_qsupported): Rename as ...
3162 (process_stratum_target::process_qsupported): ... this.
3163 (process_target::supports_tracepoints): Rename as ...
3164 (process_stratum_target::supports_tracepoints): ... this.
3165 (process_target::read_pc): Rename as ...
3166 (process_stratum_target::read_pc): ... this.
3167 (process_target::write_pc): Rename as ...
3168 (process_stratum_target::write_pc): ... this.
3169 (process_target::supports_thread_stopped): Rename as ...
3170 (process_stratum_target::supports_thread_stopped): ... this.
3171 (process_target::thread_stopped): Rename as ...
3172 (process_stratum_target::thread_stopped): ... this.
3173 (process_target::supports_get_tib_address): Rename as ...
3174 (process_stratum_target::supports_get_tib_address): ... this.
3175 (process_target::get_tib_address): Rename as ...
3176 (process_stratum_target::get_tib_address): ... this.
3177 (process_target::pause_all): Rename as ...
3178 (process_stratum_target::pause_all): ... this.
3179 (process_target::unpause_all): Rename as ...
3180 (process_stratum_target::unpause_all): ... this.
3181 (process_target::stabilize_threads): Rename as ...
3182 (process_stratum_target::stabilize_threads): ... this.
3183 (process_target::supports_fast_tracepoints): Rename as ...
3184 (process_stratum_target::supports_fast_tracepoints): ... this.
3185 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
3186 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
3187 (process_target::emit_ops): Rename as ...
3188 (process_stratum_target::emit_ops): ... this.
3189 (process_target::supports_disable_randomization): Rename as ...
3190 (process_stratum_target::supports_disable_randomization): ... this.
3191 (process_target::supports_qxfer_libraries_svr4): Rename as ...
3192 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
3193 (process_target::qxfer_libraries_svr4): Rename as ...
3194 (process_stratum_target::qxfer_libraries_svr4): ... this.
3195 (process_target::supports_agent): Rename as ...
3196 (process_stratum_target::supports_agent): ... this.
3197 (process_target::enable_btrace): Rename as ...
3198 (process_stratum_target::enable_btrace): ... this.
3199 (process_target::disable_btrace): Rename as ...
3200 (process_stratum_target::disable_btrace): ... this.
3201 (process_target::read_btrace): Rename as ...
3202 (process_stratum_target::read_btrace): ... this.
3203 (process_target::read_btrace_conf): Rename as ...
3204 (process_stratum_target::read_btrace_conf): ... this.
3205 (process_target::supports_range_stepping): Rename as ...
3206 (process_stratum_target::supports_range_stepping): ... this.
3207 (process_target::supports_pid_to_exec_file): Rename as ...
3208 (process_stratum_target::supports_pid_to_exec_file): ... this.
3209 (process_target::pid_to_exec_file): Rename as ...
3210 (process_stratum_target::pid_to_exec_file): ... this.
3211 (process_target::supports_multifs): Rename as ...
3212 (process_stratum_target::supports_multifs): ... this.
3213 (process_target::multifs_open): Rename as ...
3214 (process_stratum_target::multifs_open): ... this.
3215 (process_target::multifs_unlink): Rename as ...
3216 (process_stratum_target::multifs_unlink): ... this.
3217 (process_target::multifs_readlink): Rename as ...
3218 (process_stratum_target::multifs_readlink): ... this.
3219 (process_target::breakpoint_kind_from_pc): Rename as ...
3220 (process_stratum_target::breakpoint_kind_from_pc): ... this.
3221 (process_target::breakpoint_kind_from_current_state): Rename as ...
3222 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
3223 (process_target::thread_name): Rename as ...
3224 (process_stratum_target::thread_name): ... this.
3225 (process_target::thread_handle): Rename as ...
3226 (process_stratum_target::thread_handle): ... this.
3227 (process_target::supports_software_single_step): Rename as ...
3228 (process_stratum_target::supports_software_single_step): ... this.
3229 (process_target::supports_catch_syscall): Rename as ...
3230 (process_stratum_target::supports_catch_syscall): ... this.
3231 (process_target::get_ipa_tdesc_idx): Rename as ...
3232 (process_stratum_target::get_ipa_tdesc_idx): ... this.
3233
3234 2020-02-20 Pedro Alves <palves@redhat.com>
3235
3236 * target.cc (set_target_ops): Simply copy the given target pointer
3237 instead of creating a copy of the pointed object.
3238
3239 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3240
3241 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
3242 of process_target.
3243
3244 * target.h (struct process_stratum_target): Remove the target op.
3245 (class process_target): Add the target op.
3246 (target_get_ipa_tdesc_idx): Update the macro.
3247 * target.cc (process_target::get_ipa_tdesc_idx): Define.
3248
3249 Update the derived classes and callers below.
3250
3251 * linux-low.cc (linux_target_ops): Update.
3252 (linux_get_ipa_tdesc_idx): Turn into ...
3253 (linux_process_target::get_ipa_tdesc_idx): ... this.
3254 * linux-low.h (class linux_process_target): Update.
3255 * lynx-low.cc (lynx_target_ops): Update.
3256 * nto-low.cc (nto_target_ops): Update.
3257 * win32-low.cc (win32_target_ops): Update.
3258
3259 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3260
3261 Turn process_stratum_target's supports_catch_syscall op into a
3262 method of process_target.
3263
3264 * target.h (struct process_stratum_target): Remove the target op.
3265 (class process_target): Add the target op.
3266 (target_supports_catch_syscall): Update the macro.
3267 * target.cc (process_target::supports_catch_syscall): Define.
3268
3269 Update the derived classes and callers below.
3270
3271 * linux-low.cc (linux_target_ops): Update.
3272 (linux_supports_catch_syscall): Turn into ...
3273 (linux_process_target::supports_catch_syscall): ... this.
3274 * linux-low.h (class linux_process_target): Update.
3275 * lynx-low.cc (lynx_target_ops): Update.
3276 * nto-low.cc (nto_target_ops): Update.
3277 * win32-low.cc (win32_target_ops): Update.
3278
3279 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3280
3281 Turn process_stratum_target's supports_software_single_step op
3282 into a method of process_target.
3283
3284 * target.h (struct process_stratum_target): Remove the target op.
3285 (class process_target): Add the target op.
3286 (target_supports_software_single_step): Update the macro.
3287 * target.cc (process_target::supports_software_single_step): Define.
3288
3289 Update the derived classes and callers below.
3290
3291 * linux-low.cc (linux_target_ops): Update.
3292 (linux_supports_software_single_step): Turn into ...
3293 (linux_process_target::supports_software_single_step): ... this.
3294 * linux-low.h (class linux_process_target): Update.
3295 * lynx-low.cc (lynx_target_ops): Update.
3296 * nto-low.cc (nto_target_ops): Update.
3297 * win32-low.cc (win32_target_ops): Update.
3298
3299 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3300
3301 Turn process_stratum_target's thread_name and thread_handle ops
3302 into methods of process_target.
3303
3304 * target.h (struct process_stratum_target): Remove the target ops.
3305 (class process_target): Add the target ops.
3306 (target_thread_name): Update the macro.
3307 (target_thread_handle): Update the macro.
3308 * target.cc (process_target::thread_name): Define.
3309 (process_target::thread_handle): Define.
3310
3311 Update the derived classes and callers below.
3312
3313 * linux-low.cc (linux_target_ops): Update.
3314 (linux_process_target::thread_name): Define.
3315 (linux_process_target::thread_handle): Define.
3316 * linux-low.h (class linux_process_target): Update.
3317 * lynx-low.cc (lynx_target_ops): Update.
3318 * nto-low.cc (nto_target_ops): Update.
3319 * win32-low.cc (win32_target_ops): Update.
3320
3321 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3322
3323 Turn process_stratum_target's breakpoint_kind_from_pc,
3324 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
3325 ops into methods of process_target.
3326
3327 * target.h (struct process_stratum_target): Remove the target op.
3328 (class process_target): Add the target op.
3329 (target_breakpoint_kind_from_pc): Update the macro.
3330 (target_breakpoint_kind_from_current_state): Update the macro.
3331 (default_breakpoint_kind_from_pc): Remove declaration.
3332 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
3333 (process_target::breakpoint_kind_from_pc): ... this.
3334 (process_target::breakpoint_kind_from_current_state): Define.
3335
3336 Update the derived classes and callers below.
3337
3338 * mem-break.cc (bp_size): Update.
3339 (bp_opcode): Update.
3340 * linux-low.cc (linux_target_ops): Update.
3341 (linux_wait_1): Update.
3342 (linux_breakpoint_kind_from_pc): Turn into ...
3343 (linux_process_target::breakpoint_kind_from_pc): ... this.
3344 (linux_sw_breakpoint_from_kind): Turn into ...
3345 (linux_process_target::sw_breakpoint_from_kind): ... this.
3346 (linux_breakpoint_kind_from_current_state): Turn into ...
3347 (linux_process_target::breakpoint_kind_from_current_state): ... this.
3348 * linux-low.h (class linux_process_target): Update.
3349 * lynx-low.cc (lynx_target_ops): Update.
3350 (lynx_process_target::sw_breakpoint_from_kind): Define.
3351 * lynx-low.h (class lynx_process_target): Update.
3352 * nto-low.cc (nto_target_ops): Update.
3353 (nto_sw_breakpoint_from_kind): Turn into ...
3354 (nto_process_target::sw_breakpoint_from_kind): ... this.
3355 * nto-low.h (class nto_process_target): Update.
3356 * win32-low.cc (win32_target_ops): Update.
3357 (win32_sw_breakpoint_from_kind): Turn into ...
3358 (win32_process_target::sw_breakpoint_from_kind): ... this.
3359 * win32-low.h (class win32_process_target): Update.
3360
3361 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3362
3363 Turn process_stratum_target's multifs_open, multifs_readlink,
3364 multifs_unlink ops into methods of process_target.
3365
3366 * target.h (struct process_stratum_target): Remove the target ops.
3367 (class process_target): Add the target ops. Also add
3368 'supports_multifs'.
3369 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
3370 "sys/stat.h".
3371 (process_target::supports_multifs): Define.
3372 (process_target::multifs_open): Define.
3373 (process_target::multifs_readlink): Define.
3374 (process_target::multifs_unlink): Define.
3375
3376 Update the derived classes and callers below.
3377
3378 * hostio.cc (handle_setfs): Update.
3379 (handle_open): Update.
3380 (handle_unlink): Update.
3381 (handle_readlink): Update.
3382 * linux-low.cc (linux_target_ops): Update.
3383 (linux_process_target::supports_multifs): Define.
3384 (linux_process_target::multifs_open): Define.
3385 (linux_process_target::multifs_readlink): Define.
3386 (linux_process_target::multifs_unlink): Define.
3387 * linux-low.h (class linux_process_target): Update.
3388 * lynx-low.cc (lynx_target_ops): Update.
3389 * nto-low.cc (nto_target_ops): Update.
3390 * win32-low.cc (win32_target_ops): Update.
3391
3392 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3393
3394 Turn process_stratum_target's pid_to_exec_file op into a method
3395 of process_target.
3396
3397 * target.h (struct process_stratum_target): Remove the target op.
3398 (class process_target): Add the target op. Also add
3399 'supports_pid_to_exec_file'.
3400 * target.cc (process_target::pid_to_exec_file): Define.
3401 (process_target::supports_pid_to_exec_file): Define.
3402
3403 Update the derived classes and callers below.
3404
3405 * server.cc (handle_qxfer_exec_file): Update.
3406 (handle_query): Update.
3407 * linux-low.cc (linux_target_ops): Update.
3408 (linux_process_target::supports_pid_to_exec_file): Define.
3409 (linux_process_target::pid_to_exec_file): Define.
3410 * linux-low.h (class linux_process_target): Update.
3411 * lynx-low.cc (lynx_target_ops): Update.
3412 * nto-low.cc (nto_target_ops): Update.
3413 * win32-low.cc (win32_target_ops): Update.
3414
3415 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3416
3417 Turn process_stratum_target's supports_range_stepping op into a
3418 method of process_target.
3419
3420 * target.h (struct process_stratum_target): Remove the target op.
3421 (class process_target): Add the target op.
3422 (target_supports_range_stepping): Update the macro.
3423 * target.cc (process_target::supports_range_stepping): Define.
3424
3425 Update the derived classes and callers below.
3426
3427 * linux-low.cc (linux_target_ops): Update.
3428 (linux_supports_range_stepping): Turn into ...
3429 (linux_process_target::supports_range_stepping): ... this.
3430 * linux-low.h (class linux_process_target): Update.
3431 * lynx-low.cc (lynx_target_ops): Update.
3432 * nto-low.cc (nto_target_ops): Update.
3433 * win32-low.cc (win32_target_ops): Update.
3434
3435 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3436
3437 Turn process_stratum_target's btrace-related ops (enable_btrace,
3438 disable_btrace, read_btrace, read_btrace_conf) into methods of
3439 process_target.
3440
3441 * target.h (struct process_stratum_target): Remove the target ops.
3442 (class process_target): Add the target ops.
3443 (target_enable_btrace): Update.
3444 (target_disable_btrace): Update.
3445 (target_read_btrace): Update.
3446 (target_read_btrace_conf): Update.
3447 * target.cc (process_target::enable_btrace): Define.
3448 (process_target::disable_btrace): Define.
3449 (process_target::read_btrace): Define.
3450 (process_target::read_btrace_conf): Define.
3451
3452 Update the derived classes and callers below.
3453
3454 * linux-low.cc (linux_target_ops): Update.
3455 (linux_process_target:enable_btrace): Define as a wrapper around
3456 linux_enable_btrace.
3457 (linux_low_disable_btrace): Turn into ...
3458 (linux_process_target::disable_btrace): ... this.
3459 (linux_low_read_btrace): Turn into ...
3460 (linux_process_target::read_btrace): ... this.
3461 (linux_low_btrace_conf): Turn into ...
3462 (linux_process_target::read_btrace_conf): ... this.
3463 * linux-low.h (class linux_process_target): Update.
3464 * lynx-low.cc (lynx_target_ops): Update.
3465 * nto-low.cc (nto_target_ops): Update.
3466 * win32-low.cc (win32_target_ops): Update.
3467
3468 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3469
3470 Turn process_stratum_target's supports_agent op into a method of
3471 process_target.
3472
3473 * target.h (struct process_stratum_target): Remove the target op.
3474 (class process_target): Add the target op.
3475 (target_supports_agent): Update the macro.
3476 * target.cc (process_target::supports_agent): Define.
3477
3478 Update the derived classes and callers below.
3479
3480 * linux-low.cc (linux_target_ops): Update.
3481 (linux_supports_agent): Turn into ...
3482 (linux_process_target::supports_agent): ... this.
3483 * linux-low.h (class linux_process_target): Update.
3484 * lynx-low.cc (lynx_target_ops): Update.
3485 * nto-low.cc (nto_target_ops): Update.
3486 * win32-low.cc (win32_target_ops): Update.
3487
3488 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3489
3490 Turn process_stratum_target's qxfer_libraries_svr4 op into a
3491 method of process_target.
3492
3493 * target.h (struct process_stratum_target): Remove the target op.
3494 (class process_target): Add the target op. Also add
3495 'supports_qxfer_libraries_svr4'.
3496 * target.cc (process_target::qxfer_libraries_svr4): Define.
3497 (process_target::supports_qxfer_libraries_svr4): Define.
3498
3499 Update the derived classes and callers below.
3500
3501 * server.cc (handle_qxfer_libraries_svr4): Update.
3502 (handle_query): Update.
3503 * linux-low.cc (linux_target_ops): Update.
3504 (linux_process_target::supports_qxfer_libraries_svr4): Define.
3505 (linux_qxfer_libraries_svr4): Turn into ...
3506 (linux_process_target::qxfer_libraries_svr4): ... this.
3507 * linux-low.h (class linux_process_target): Update.
3508 * lynx-low.cc (lynx_target_ops): Update.
3509 * nto-low.cc (nto_target_ops): Update.
3510 * win32-low.cc (win32_target_ops): Update.
3511
3512 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3513
3514 Turn process_stratum_target's supports_disable_randomization op
3515 into a method of process_target.
3516
3517 * target.h (struct process_stratum_target): Remove the target op.
3518 (class process_target): Add the target op.
3519 (target_supports_disable_randomization): Update the macro.
3520 * target.cc (process_target::supports_disable_randomization): Define.
3521
3522 Update the derived classes and callers below.
3523
3524 * linux-low.cc (linux_target_ops): Update.
3525 (linux_supports_disable_randomization): Turn into ...
3526 (linux_process_target::supports_disable_randomization): ... this.
3527 * linux-low.h (class linux_process_target): Update.
3528 * lynx-low.cc (lynx_target_ops): Update.
3529 * nto-low.cc (nto_target_ops): Update.
3530 * win32-low.cc (win32_target_ops): Update.
3531
3532 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3533
3534 Turn process_stratum_target's emit_ops op into a method of
3535 process_target.
3536
3537 * target.h (struct process_stratum_target): Remove the target op.
3538 (class process_target): Add the target op.
3539 (target_emit_ops): Update the macro.
3540 * target.cc (process_target::emit_ops): Define.
3541
3542 Update the derived classes and callers below.
3543
3544 * linux-low.cc (linux_target_ops): Update.
3545 (linux_emit_ops): Turn into ...
3546 (linux_process_target::emit_ops): ... this.
3547 * linux-low.h (class linux_process_target): Update.
3548 * lynx-low.cc (lynx_target_ops): Update.
3549 * nto-low.cc (nto_target_ops): Update.
3550 * win32-low.cc (win32_target_ops): Update.
3551
3552 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3553
3554 Turn process_stratum_target's install_fast_tracepoint_jump_pad
3555 and get_min_fast_tracepoint_insn_len ops into methods of
3556 process_target.
3557
3558 * target.h (struct process_stratum_target): Remove the target ops.
3559 (class process_target): Add the target ops. Also add
3560 'supports_fast_tracepoints'.
3561 (target_supports_fast_tracepoints): Update the macro.
3562 (target_get_min_fast_tracepoint_insn_len): Update the macro.
3563 (install_fast_tracepoint_jump_pad): Update and rename the macro
3564 to ...
3565 (target_install_fast_tracepoint_jump_pad): ... this.
3566 * target.cc (process_target::supports_fast_tracepoints): Define.
3567 (process_target::install_fast_tracepoint_jump_pad): Define.
3568 (process_target::get_min_fast_tracepoint_insn_len): Define.
3569
3570 Update the derived classes and callers below.
3571
3572 * tracepoint.cc (install_fast_tracepoint): Update.
3573 * linux-low.cc (linux_target_ops): Update.
3574 (linux_process_target::supports_fast_tracepoints): Define.
3575 (linux_install_fast_tracepoint_jump_pad): Turn into ...
3576 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
3577 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
3578 (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
3579 * linux-low.h (class linux_process_target): Update.
3580 * lynx-low.cc (lynx_target_ops): Update.
3581 * nto-low.cc (nto_target_ops): Update.
3582 * win32-low.cc (win32_target_ops): Update.
3583
3584 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3585
3586 Turn process_stratum_target's stabilize_threads op into a
3587 method of process_target.
3588
3589 * target.h (struct process_stratum_target): Remove the target op.
3590 (class process_target): Add the target op.
3591 (target_stabilize_threads): Update the macro.
3592 * target.cc (process_target::stabilize_threads): Define.
3593
3594 Update the derived classes and callers below.
3595
3596 * server.cc (handle_status): Update.
3597 * tracepoint.cc (cmd_qtdp): Update.
3598 (cmd_qtstart): Update.
3599 * linux-low.cc (linux_target_ops): Update.
3600 (linux_stabilize_threads): Turn into ...
3601 (linux_process_target::stabilize_threads): ... this.
3602 (linux_wait_1): Update.
3603 * linux-low.h (class linux_process_target): Update.
3604 * lynx-low.cc (lynx_target_ops): Update.
3605 * nto-low.cc (nto_target_ops): Update.
3606 * win32-low.cc (win32_target_ops): Update.
3607
3608 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3609
3610 Turn process_stratum_target's pause_all and unpause_all ops
3611 into methods of process_target.
3612
3613 * target.h (struct process_stratum_target): Remove the target ops.
3614 (class process_target): Add the target ops.
3615 (pause_all): Update the macro and rename to...
3616 (target_pause_all): ... this.
3617 (unpause_all): Update the macro and rename to...
3618 (target_unpause_all): ... this.
3619 * target.cc (process_target::pause_all): Define.
3620 (process_target::unpause_all): Define.
3621
3622 Update the derived classes and callers below.
3623
3624 * server.cc (handle_status): Update.
3625 * tracepoint.cc (clear_installed_tracepoints): Update.
3626 (cmd_qtdp): Update.
3627 (cmd_qtstart): Update.
3628 (stop_tracing): Update.
3629 (cmd_qtstatus): Update.
3630 (upload_fast_traceframes): Update.
3631 (run_inferior_command): Update.
3632 * linux-low.cc (linux_target_ops): Update.
3633 (linux_pause_all): Turn into ...
3634 (linux_process_target::pause_all): ... this.
3635 (linux_unpause_all): Turn into ...
3636 (linux_process_target::unpause_all): ... this.
3637 (linux_process_target::prepare_to_access_memory): Update.
3638 (linux_process_target::done_accessing_memory): Update.
3639 * linux-low.h (class linux_process_target): Update.
3640 * lynx-low.cc (lynx_target_ops): Update.
3641 * nto-low.cc (nto_target_ops): Update.
3642 * win32-low.cc (win32_target_ops): Update.
3643
3644 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3645
3646 Turn process_stratum_target's get_tib_address op into a method of
3647 process_target.
3648
3649 * target.h (struct process_stratum_target): Remove the target op.
3650 (class process_target): Add the target op. Also add
3651 'supports_get_tib_address'.
3652 * target.cc (process_target::get_tib_address): Define.
3653 (process_target::supports_get_tib_address): Define.
3654
3655 Update the derived classes and callers below.
3656
3657 * server.cc (handle_query): Update.
3658 * linux-low.cc (win32_target_ops): Update.
3659 * lynx-low.cc (lynx_target_ops): Update.
3660 * nto-low.cc (nto_target_ops): Update.
3661 * win32-low.cc (win32_target_ops): Update.
3662 (win32_process_target::supports_get_tib_address): Define.
3663 (win32_get_tib_address): Turn into ...
3664 (win32_process_target::get_tib_address): ... this.
3665 * win32-low.h (class win32_process_target): Update.
3666
3667 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3668
3669 Turn process_stratum_target's thread_stopped op into a method of
3670 process_target.
3671
3672 * target.h (struct process_stratum_target): Remove the target op.
3673 (class process_target): Add the target op. Also add
3674 'supports_thread_stopped'.
3675 (target_thread_stopped): Update the macro.
3676 * target.cc (process_target::thread_stopped): Define.
3677 (process_target::supports_thread_stopped): Define.
3678 (prepare_to_access_memory): Update.
3679
3680 Update the derived classes and callers below.
3681
3682 * server.cc (queue_stop_reply_callback): Update.
3683 * linux-low.cc (linux_target_ops): Update.
3684 (linux_process_target::supports_thread_stopped): Define.
3685 (linux_thread_stopped): Turn into ...
3686 (linux_process_target::thread_stopped): ... this.
3687 * linux-low.h (class linux_process_target): Update.
3688 * lynx-low.cc (lynx_target_ops): Update.
3689 * nto-low.cc (nto_target_ops): Update.
3690 * win32-low.cc (win32_target_ops): Update.
3691
3692 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3693
3694 Turn process_stratum_target's read_pc and write_pc ops into
3695 methods of process_target.
3696
3697 * target.h (struct process_stratum_target): Remove the target ops.
3698 (class process_target): Add the target ops.
3699 * target.cc (process_target::read_pc): Define.
3700 (process_target::write_pc): Define.
3701
3702 Update the derived classes and callers below.
3703
3704 * regcache.cc (regcache_read_pc): Update.
3705 (regcache_write_pc): Update.
3706 * linux-low.cc (linux_target_ops): Update.
3707 (linux_read_pc): Turn into ...
3708 (linux_process_target::read_pc): ... this.
3709 (linux_write_pc): Turn into ...
3710 (linux_process_target::write_pc): ... this.
3711 * linux-low.h (class linux_process_target): Update.
3712 * lynx-low.cc (lynx_target_ops): Update.
3713 * nto-low.cc (nto_target_ops): Update.
3714 * win32-low.cc (win32_target_ops): Update.
3715
3716 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3717
3718 Turn process_stratum_target's supports_tracepoints op into a
3719 method of process_target.
3720
3721 * target.h (struct process_stratum_target): Remove the target op.
3722 (class process_target): Add the target op.
3723 (target_supports_tracepoints): Update the macro.
3724 * target.cc (process_target::supports_tracepoints): Define.
3725
3726 Update the derived classes and callers below.
3727
3728 * linux-low.cc (linux_target_ops): Update.
3729 (linux_supports_tracepoints): Turn into ...
3730 (linux_process_target::supports_tracepoints): ... this.
3731 * linux-low.h (class linux_process_target): Update.
3732 * lynx-low.cc (lynx_target_ops): Update.
3733 * nto-low.cc (nto_target_ops): Update.
3734 * win32-low.cc (win32_target_ops): Update.
3735
3736 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3737
3738 Turn process_stratum_target's process_qsupported op into a method
3739 of process_target.
3740
3741 * target.h (struct process_stratum_target): Remove the target op.
3742 (class process_target): Add the target op.
3743 (target_process_qsupported): Update the macro.
3744 * target.cc (process_target::process_qsupported): Define.
3745
3746 Update the derived classes and callers below.
3747
3748 * linux-low.cc (linux_target_ops): Update.
3749 (linux_process_qsupported): Turn into ...
3750 (linux_process_target::process_qsupported): ... this.
3751 * linux-low.h (class linux_process_target): Update.
3752 * lynx-low.cc (lynx_target_ops): Update.
3753 * nto-low.cc (nto_target_ops): Update.
3754 * win32-low.cc (win32_target_ops): Update.
3755
3756 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3757
3758 Turn process_stratum_target's read_loadmap op into a method of
3759 process_target.
3760
3761 * target.h (struct process_stratum_target): Remove the target op.
3762 (class process_target): Add the target op. Also add
3763 'supports_read_loadmap'.
3764 * target.cc (process_target::read_loadmap): Define.
3765 (process_target::supports_read_loadmap): Define.
3766
3767 Update the derived classes and callers below.
3768
3769 * server.cc (handle_qxfer_fdpic): Update.
3770 (handle_query): Update.
3771 * linux-low.cc (linux_target_ops): Update.
3772 (linux_process_target::supports_read_loadmap): Define.
3773 (linux_read_loadmap): Turn into ...
3774 (linux_process_target::read_loadmap): ... this.
3775 * linux-low.h (class linux_process_target): Update.
3776 * lynx-low.cc (lynx_target_ops): Update.
3777 * nto-low.cc (nto_target_ops): Update.
3778 * win32-low.cc (win32_target_ops): Update.
3779
3780 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3781
3782 Turn process_stratum_target's core_of_thread op into a method of
3783 process_target.
3784
3785 * target.h (struct process_stratum_target): Remove the target op.
3786 (class process_target): Add the target op.
3787 (target_core_of_thread): Update the macro.
3788 * target.cc (process_target::core_of_thread): Define.
3789
3790 Update the derived classes and callers below.
3791
3792 * linux-low.cc (linux_target_ops): Update.
3793 (linux_process_target::core_of_thread): Define.
3794 * linux-low.h (class linux_process_target): Update.
3795 * lynx-low.cc (lynx_target_ops): Update.
3796 * nto-low.cc (nto_target_ops): Update.
3797 * win32-low.cc (win32_target_ops): Update.
3798
3799 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3800
3801 Turn process_stratum_target's handle_monitor_command op into a
3802 method of process_target.
3803
3804 * target.h (struct process_stratum_target): Remove the target op.
3805 (class process_target): Add the target op.
3806 (target_handle_monitor_command): Update the macro.
3807 * target.cc (process_target::handle_monitor_command): Define.
3808
3809 Update the derived classes and callers below.
3810
3811 * server.cc (handle_query): Update.
3812 * linux-low.cc (linux_target_ops): Update.
3813 (linux_process_target::handle_monitor_command): Define.
3814 * linux-low.h (class linux_process_target): Update.
3815 * lynx-low.cc (lynx_target_ops): Update.
3816 * nto-low.cc (nto_target_ops): Update.
3817 * win32-low.cc (win32_target_ops): Update.
3818
3819 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3820
3821 Turn process_stratum_target's handle_new_gdb_connection op into a
3822 method of process_target.
3823
3824 * target.h (struct process_stratum_target): Remove the target op.
3825 (class process_target): Add the target op.
3826 (target_handle_new_gdb_connection): Update the macro.
3827 * target.cc (process_target::handle_new_gdb_connection): Define.
3828
3829 Update the derived classes and callers below.
3830
3831 * linux-low.cc (linux_target_ops): Update.
3832 (linux_handle_new_gdb_connection): Turn into ...
3833 (linux_process_target::handle_new_gdb_connection): ... this.
3834 * linux-low.h (class linux_process_target): Update.
3835 * lynx-low.cc (lynx_target_ops): Update.
3836 * nto-low.cc (nto_target_ops): Update.
3837 * win32-low.cc (win32_target_ops): Update.
3838
3839 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3840
3841 Turn process_stratum_target's supports_fork_events,
3842 supports_vfork_events, and supports_exec_events ops into methods
3843 of process_target.
3844
3845 * target.h (struct process_stratum_target): Remove the target ops.
3846 (class process_target): Add the target ops.
3847 (target_supports_fork_events): Update the macro.
3848 (target_supports_vfork_events): Update the macro.
3849 (target_supports_exec_events): Update the macro.
3850 * target.cc (process_target::supports_fork_events): Define.
3851 (process_target::supports_vfork_events): Define.
3852 (process_target::supports_exec_events): Define.
3853
3854 Update the derived classes and callers below.
3855
3856 * linux-low.cc (linux_target_ops): Update.
3857 (linux_supports_fork_events): Turn into ...
3858 (linux_process_target::supports_fork_events): ... this.
3859 (linux_supports_vfork_events): Turn into ...
3860 (linux_process_target::supports_vfork_events): ... this.
3861 (linux_supports_exec_events): Turn into ...
3862 (linux_process_target::supports_exec_events): ... this.
3863 * linux-low.h (class linux_process_target): Update.
3864 * lynx-low.cc (lynx_target_ops): Update.
3865 * nto-low.cc (nto_target_ops): Update.
3866 * win32-low.cc (win32_target_ops): Update.
3867
3868 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3869
3870 Turn process_stratum_target's supports_multi_process op into a
3871 method of process_target.
3872
3873 * target.h (struct process_stratum_target): Remove the target op.
3874 (class process_target): Add the target op.
3875 * target.cc (process_target::supports_multi_process): Define.
3876 (target_supports_multi_process): Update.
3877
3878 Update the derived classes and callers below.
3879
3880 * linux-low.cc (linux_target_ops): Update.
3881 (linux_supports_multi_process): Turn into ...
3882 (linux_process_target::supports_multi_process): ... this.
3883 * linux-low.h (class linux_process_target): Update.
3884 * lynx-low.cc (lynx_target_ops): Update.
3885 * nto-low.cc (nto_target_ops): Update.
3886 * win32-low.cc (win32_target_ops): Update.
3887
3888 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3889
3890 Turn process_stratum_target's supports_non_stop, async, and
3891 start_non_stop ops into methods of process_target.
3892
3893 * target.h (struct process_stratum_target): Remove the target ops.
3894 (class process_target): Add the target ops.
3895 (target_supports_non_stop): Update the macro.
3896 (target_async): Update the macro.
3897 (start_non_stop): Remove declaration.
3898 * target.cc (process_target::supports_non_stop): Define.
3899 (process_target::async): Define.
3900 (process_target::start_non_stop): Define.
3901 (start_non_stop): Remove.
3902
3903 Update the derived classes and callers below.
3904
3905 * server.cc (handle_qxfer_siginfo): Update.
3906 (handle_query): Update.
3907 * linux-low.cc (linux_target_ops): Update.
3908 (linux_supports_non_stop): Turn into ...
3909 (linux_process_target::supports_non_stop): ... this.
3910 (linux_async): Turn into ...
3911 (linux_process_target::async): ... this.
3912 (linux_start_non_stop): Turn into ...
3913 (linux_process_target::start_non_stop): ... this.
3914 * linux-low.h (class linux_process_target): Update.
3915 * lynx-low.cc (lynx_target_ops): Update.
3916 * nto-low.cc (nto_target_ops): Update.
3917 (nto_supports_non_stop): Remove; rely on the default behavior
3918 instead.
3919 * win32-low.cc (win32_target_ops): Update.
3920
3921 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3922
3923 Turn process_stratum_target's qxfer_siginfo op into a method of
3924 process_target.
3925
3926 * target.h (struct process_stratum_target): Remove the target op.
3927 (class process_target): Add the target op. Also add
3928 'supports_qxfer_siginfo'.
3929 * target.cc (process_target::qxfer_siginfo): Define.
3930 (process_target::supports_qxfer_siginfo): Define.
3931
3932 Update the derived classes and callers below.
3933
3934 * server.cc (handle_qxfer_siginfo): Update.
3935 (handle_query): Update.
3936 * linux-low.cc (linux_target_ops): Update.
3937 (linux_process_target::supports_qxfer_siginfo): Define.
3938 (linux_xfer_siginfo): Turn into ...
3939 (linux_process_target::qxfer_siginfo): ... this.
3940 * linux-low.h (class linux_process_target): Update.
3941 * lynx-low.cc (lynx_target_ops): Update.
3942 * nto-low.cc (nto_target_ops): Update.
3943 * win32-low.cc (win32_target_ops): Update.
3944
3945 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3946
3947 Turn process_stratum_target's qxfer_osdata op into a method of
3948 process_target.
3949
3950 * target.h (struct process_stratum_target): Remove the target op.
3951 (class process_target): Add the target op. Also add
3952 'supports_qxfer_osdata'.
3953 * target.cc (process_target::qxfer_osdata): Define.
3954 (process_target::supports_qxfer_osdata): Define.
3955
3956 Update the derived classes and callers below.
3957
3958 * server.cc (handle_qxfer_osdata): Update.
3959 (handle_query): Update.
3960 * linux-low.cc (linux_target_ops): Update.
3961 (linux_process_target::supports_qxfer_osdata): Define.
3962 (linux_qxfer_osdata): Turn into ...
3963 (linux_process_target::qxfer_osdata): ... this.
3964 * linux-low.h (class linux_process_target): Update.
3965 * lynx-low.cc (lynx_target_ops): Update.
3966 * nto-low.cc (nto_target_ops): Update.
3967 * win32-low.cc (win32_target_ops): Update.
3968
3969 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3970
3971 Turn process_stratum_target's hostio_last_error op into a
3972 method of process_target.
3973
3974 * target.h (struct process_stratum_target): Remove the target op.
3975 (class process_target): Add the target op.
3976 * target.cc: Add "hostio.h" to includes.
3977 (process_target::hostio_last_error): Define.
3978
3979 Update the derived classes and callers below.
3980
3981 * hostio.cc (hostio_error): Update.
3982 * linux-low.cc: Remove "hostio.h" from includes.
3983 (linux_target_ops): Update.
3984 * lynx-low.cc (lynx_target_ops): Update.
3985 * nto-low.cc (nto_target_ops): Update.
3986 * win32-low.h (class win32_process_target): Update.
3987 * win32-low.cc (win32_target_ops): Update.
3988 (wince_hostio_last_error): Turn into ...
3989 (win32_process_target::hostio_last_error): ... this.
3990
3991 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3992
3993 Turn process_stratum_target's get_tls_address op into a method of
3994 process_target.
3995
3996 * target.h (struct process_stratum_target): Remove the target op.
3997 (class process_target): Add the target op. Also add
3998 'supports_get_tls_address'.
3999 * target.cc (process_target::get_tls_address): Define.
4000 (process_target::supports_get_tls_address): Define.
4001
4002 Update the derived classes and callers below.
4003
4004 * server.cc (handle_query): Update.
4005 * linux-low.cc (linux_target_ops): Update.
4006 (linux_process_target::supports_get_tls_address): Define.
4007 (linux_process_target::get_tls_address): Define.
4008 * linux-low.h (class linux_process_target): Update.
4009 * lynx-low.cc (lynx_target_ops): Update.
4010 * nto-low.cc (nto_target_ops): Update.
4011 * win32-low.cc (win32_target_ops): Update.
4012
4013 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4014
4015 Turn process_stratum_target's read_offsets 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. Also add
4020 'supports_read_offsets'.
4021 * target.cc (process_target::read_offsets): Define.
4022 (process_target::supports_read_offsets): Define.
4023
4024 Update the derived classes and callers below.
4025
4026 * server.cc (handle_query): Update.
4027 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
4028 (linux_target_ops): Update.
4029 (linux_process_target::supports_read_offsets): Define.
4030 (linux_read_offsets): Turn into ...
4031 (linux_process_target::read_offsets): ... this.
4032 * linux-low.h (class linux_process_target): Update.
4033 * lynx-low.cc (lynx_target_ops): Update.
4034 * nto-low.cc (nto_target_ops): Update.
4035 * win32-low.cc (win32_target_ops): Update.
4036
4037 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4038
4039 Turn process_stratum_target's stopped_by_watchpoint and
4040 stopped_data_address ops into methods of process_target.
4041
4042 * target.h (struct process_stratum_target): Remove the target ops.
4043 (class process_target): Add the target ops.
4044 * target.cc (process_target::stopped_by_watchpoint): Define.
4045 (process_target::stopped_data_address): Define.
4046
4047 Update the derived classes and callers below.
4048
4049 * remote-utils.cc (prepare_resume_reply): Update.
4050 * linux-low.cc (linux_target_ops): Update.
4051 (linux_stopped_by_watchpoint): Turn into ...
4052 (linux_process_target::stopped_by_watchpoint): ... this.
4053 (linux_stopped_data_address): Turn into ...
4054 (linux_process_target::stopped_data_address): ... this.
4055 * linux-low.h (class linux_process_target): Update.
4056 * lynx-low.cc (lynx_target_ops): Update.
4057 * nto-low.cc (nto_target_ops): Update.
4058 (nto_stopped_by_watchpoint): Turn into ...
4059 (nto_process_target::stopped_by_watchpoint): ... this.
4060 (nto_stopped_data_address): Turn into ...
4061 (nto_process_target::stopped_data_address): ... this.
4062 * nto-low.h (class nto_process_target): Update.
4063 * win32-low.cc (win32_target_ops): Update.
4064 (win32_stopped_by_watchpoint): Turn into ...
4065 (win32_process_target::stopped_by_watchpoint): ... this.
4066 (win32_stopped_data_address): Turn into ...
4067 (win32_process_target::stopped_data_address): ... this.
4068 * win32-low.h (class win32_process_target): Update.
4069
4070 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4071
4072 Turn process_stratum_target's supports_hardware_single_step op into
4073 a method of process_target.
4074
4075 * target.h (struct process_stratum_target): Remove the target op.
4076 (class process_target): Add the target op.
4077 (target_supports_hardware_single_step): Update the macro.
4078 (target_can_do_hardware_single_step): Remove declaration.
4079 * target.cc (process_target::supports_hardware_single_step): Define.
4080 (target_can_do_hardware_single_step): Remove.
4081
4082 Update the derived classes and callers below.
4083
4084 * linux-low.h (class linux_process_target): Update.
4085 * linux-low.cc (linux_target_ops): Update.
4086 (linux_supports_hardware_single_step): Turn into ...
4087 (linux_process_target::supports_hardware_single_step): ... this.
4088 * lynx-low.h (class lynx_process_target): Update.
4089 * lynx-low.cc (lynx_target_ops): Update.
4090 (lynx_process_target::supports_hardware_single_step): Define.
4091 * nto-low.h (class nto_process_target): Update.
4092 * nto-low.cc (nto_target_ops): Update.
4093 (nto_process_target::supports_hardware_single_step): Define.
4094 * win32-low.h (class win32_process_target): Update.
4095 * win32-low.cc (win32_target_ops): Update.
4096 (win32_process_target::supports_hardware_single_step): Define.
4097
4098 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4099
4100 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
4101 ops into methods of process_target.
4102
4103 * target.h (struct process_stratum_target): Remove the target ops.
4104 (class process_target): Add the target ops.
4105 (target_stopped_by_hw_breakpoint): Update the macro.
4106 (target_supports_stopped_by_hw_breakpoint): Update the macro.
4107 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
4108 (process_target::supports_stopped_by_hw_breakpoint): Define.
4109
4110 Update the derived classes and callers below.
4111
4112 * linux-low.cc (linux_target_ops): Update.
4113 (linux_stopped_by_hw_breakpoint): Turn into ...
4114 (linux_process_target::stopped_by_hw_breakpoint): ... this.
4115 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
4116 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
4117 * linux-low.h (class linux_process_target): Update.
4118 * lynx-low.cc (lynx_target_ops): Update.
4119 * nto-low.cc (nto_target_ops): Update.
4120 * win32-low.cc (win32_target_ops): Update.
4121
4122 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4123
4124 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
4125 ops into methods of process_target.
4126
4127 * target.h (struct process_stratum_target): Remove the target ops.
4128 (class process_target): Add the target ops.
4129 (target_stopped_by_sw_breakpoint): Update the macro.
4130 (target_supports_stopped_by_sw_breakpoint): Update the macro.
4131 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
4132 (process_target::supports_stopped_by_sw_breakpoint): Define.
4133
4134 Update the derived classes and callers below.
4135
4136 * linux-low.cc (linux_target_ops): Update.
4137 (linux_stopped_by_sw_breakpoint): Turn into ...
4138 (linux_process_target::stopped_by_sw_breakpoint): ... this.
4139 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
4140 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
4141 * linux-low.h (class linux_process_target): Update.
4142 * lynx-low.cc (lynx_target_ops): Update.
4143 * nto-low.cc (nto_target_ops): Update.
4144 * win32-low.cc (win32_target_ops): Update.
4145
4146 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4147
4148 Turn process_stratum_target's insert_point and remove_point ops
4149 into methods of process_target.
4150
4151 * target.h (struct process_stratum_target): Remove the target ops.
4152 (class process_target): Add the target ops.
4153 * target.cc (process_target::insert_point): Define.
4154 (process_target::remove_point): Define.
4155
4156 Update the derived classes and callers below.
4157
4158 * mem-break.cc (set_raw_breakpoint_at): Update.
4159 (delete_raw_breakpoint): Update.
4160 (uninsert_raw_breakpoint): Update.
4161 (reinsert_raw_breakpoint): Update.
4162 * linux-low.cc (linux_target_ops): Update.
4163 (linux_insert_point): Turn into ...
4164 (linux_process_target::insert_point): ... this.
4165 (linux_remove_point): Turn into ...
4166 (linux_process_target::remove_point): ... this.
4167 * linux-low.h (class linux_process_target): Update.
4168 * lynx-low.cc (lynx_target_ops): Update.
4169 * nto-low.cc (nto_target_ops): Update.
4170 (nto_insert_point): Turn into ...
4171 (nto_process_target::insert_point): ... this.
4172 (nto_remove_point): Turn into ...
4173 (nto_process_target::remove_point): ... this.
4174 * nto-low.h (class nto_process_target): Update.
4175 * win32-low.cc (win32_target_ops): Update.
4176 (win32_insert_point): Turn into ...
4177 (win32_process_target::insert_point): ... this.
4178 (win32_remove_point): Turn into ...
4179 (win32_process_target::remove_point): ... this.
4180 * win32-low.h (class win32_process_target): Update.
4181
4182 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4183
4184 Turn process_stratum_target's supports_z_point_type op into a
4185 method of process_target.
4186
4187 * target.h (struct process_stratum_target): Remove the target op.
4188 (class process_target): Add the target op.
4189 * target.cc (process_target::supports_z_point_type): Define.
4190
4191 Update the derived classes and callers below.
4192
4193 * mem-break.cc (z_type_supported): Update.
4194 * linux-low.cc (linux_target_ops): Update.
4195 (linux_supports_z_point_type): Turn into ...
4196 (linux_process_target::supports_z_point_type): ... this.
4197 * linux-low.h (class linux_process_target): Update.
4198 * lynx-low.cc (lynx_target_ops): Update.
4199 * nto-low.cc (nto_target_ops): Update.
4200 (nto_supports_z_point_type): Turn into ...
4201 (nto_process_target::supports_z_point_type): ... this.
4202 * nto-low.h (class nto_process_target): Update.
4203 * win32-low.cc (win32_target_ops): Update.
4204 (win32_supports_z_point_type): Turn into ...
4205 (win32_process_target::supports_z_point_type): ... this.
4206 * win32-low.h (class win32_process_target): Update.
4207
4208 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4209
4210 Turn process_stratum_target's read_auxv op into a method of
4211 process_target.
4212
4213 * target.h (class process_stratum_target): Remove the target op.
4214 (struct process_target): Add the target op. Also add
4215 'supports_read_auxv'.
4216 * target.cc (process_target::read_auxv): Define.
4217 (process_target::supports_read_auxv): Define.
4218
4219 Update the derived classes and callers below.
4220
4221 * server.cc (handle_qxfer_auxv): Update.
4222 (handle_query): Update.
4223 * linux-low.cc (linux_target_ops): Update.
4224 (linux_process_target::supports_read_auxv): Define.
4225 (linux_read_auxv): Turn into ...
4226 (linux_process_target::read_auxv): ... this.
4227 * linux-low.h (class linux_process_target): Update.
4228 * lynx-low.cc (lynx_target_ops): Update.
4229 * nto-low.cc (nto_target_ops): Update.
4230 (nto_process_target::supports_read_auxv): Define.
4231 (nto_read_auxv): Turn into ...
4232 (nto_process_target::read_auxv): ... this.
4233 * nto-low.h (class nto_process_target): Update.
4234 * win32-low.cc (win32_target_ops): Update.
4235
4236 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4237
4238 Turn process_stratum_target's request_interrupt op into a method of
4239 process_target.
4240
4241 * target.h (struct process_stratum_target): Remove the target op.
4242 (class process_target): Add the target op.
4243
4244 Update the derived classes and callers below.
4245
4246 * remote-utils.cc (putpkt_binary_1): Update.
4247 (input_interrupt): Update.
4248 (getpkt): Update.
4249 * server.cc (handle_v_requests): Update.
4250 * linux-low.cc (linux_target_ops): Update.
4251 (linux_request_interrupt): Turn into ...
4252 (linux_process_target::request_interrupt): ... this.
4253 * linux-low.h (class linux_process_target): Update.
4254 * lynx-low.cc (lynx_target_ops): Update.
4255 (lynx_request_interrupt): Turn into ...
4256 (lynx_process_target::request_interrupt): ... this.
4257 * lynx-low.h (class lynx_process_target): Update.
4258 * nto-low.cc (nto_target_ops): Update.
4259 (nto_request_interrupt): Turn into ...
4260 (nto_process_target::request_interrupt): ... this.
4261 * nto-low.h (class nto_process_target): Update.
4262 * win32-low.cc (win32_target_ops): Update.
4263 (win32_request_interrupt): Turn into ...
4264 (win32_process_target::request_interrupt): ... this.
4265 * win32-low.h (class win32_process_target): Update.
4266
4267 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4268
4269 Turn process_stratum_target's look_up_symbols op into a method of
4270 process_target.
4271
4272 * target.h (struct process_stratum_target): Remove the target op.
4273 (class process_target): Add the target op.
4274 * target.cc (process_target::look_up_symbols): Define.
4275
4276 Update the derived classes and callers below.
4277
4278 * server.cc (handle_query): Update.
4279 * linux-low.cc (linux_target_ops): Update.
4280 (linux_look_up_symbols): Turn into ...
4281 (linux_process_target::look_up_symbols): ... this.
4282 * linux-low.h (class linux_process_target): Update.
4283 * lynx-low.cc (lynx_target_ops): Update.
4284 * nto-low.cc (nto_target_ops): Update.
4285 * win32-low.cc (win32_target_ops): Update.
4286
4287 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4288
4289 Turn process_stratum_target's read_memory and write_memory
4290 ops into methods of process_target.
4291
4292 * target.h (struct process_stratum_target): Remove the target ops.
4293 (class process_target): Add the target ops.
4294
4295 Update the derived classes and callers below.
4296
4297 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
4298 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
4299 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
4300 (arm_get_syscall_trapinfo): Update.
4301 * linux-cris-low.cc (cris_breakpoint_at): Update.
4302 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
4303 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
4304 * linux-mips-low.cc (mips_breakpoint_at): Update.
4305 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
4306 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
4307 * linux-sh-low.cc (sh_breakpoint_at): Update.
4308 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
4309 (sparc_store_gregset_from_stack): Update.
4310 (sparc_breakpoint_at): Update.
4311 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
4312 * linux-tile-low.cc (tile_breakpoint_at): Update.
4313 * linux-x86-low.cc (x86_breakpoint_at): Update.
4314 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
4315 * mem-brea.cc (insert_memory_breakpoint): Update.
4316 (validate_inserted_breakpoint): Update.
4317 * target.cc (read_inferior_memory): Update.
4318 (target_write_memory): Update.
4319 * linux-low.cc (linux_target_ops): Update.
4320 (linux_read_memory): Make a wrapper around the read_memory target
4321 op call.
4322 (linux_process_target::read_memory): Rename from linux_read_memory.
4323 (linux_write_memory): Turn into ...
4324 (linux_process_target::write_memory): ... this.
4325 * linux-low.h (class linux_process_target): Update.
4326 * lynx-low.cc (lynx_target_ops): Update.
4327 (lynx_read_memory): Turn into ...
4328 (lynx_process_target::read_memory): ... this.
4329 (lynx_write_memory): Turn into ...
4330 (lynx_process_target::write_memory): ... this.
4331 * lynx-low.h (class lynx_process_target): Update.
4332 * nto-low.cc (nto_target_ops): Update.
4333 (nto_read_memory): Turn into ...
4334 (nto_process_target::read_memory): ... this.
4335 (nto_write_memory): Turn into ...
4336 (nto_process_target::write_memory): ... this.
4337 * nto-low.h (class nto_process_target): Update.
4338 * win32-low.cc (win32_target_ops): Update.
4339 (win32_read_inferior_memory): Turn into ...
4340 (win32_process_target::read_memory): ... this.
4341 (win32_write_inferior_memory): Turn into ...
4342 (win32_process_target::write_memory): ... this.
4343 * win32-low.h (class win32_process_target): Update.
4344
4345 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4346
4347 Turn process_stratum_target's prepare_to_access_memory and
4348 done_accessing_memory ops into methods of process_target.
4349
4350 * target.h (struct process_stratum_target): Remove the target ops.
4351 (class process_target): Add the target ops.
4352 * target.cc (process_target::prepare_to_access_memory): Define.
4353 (process_target::done_accessing_memory): Define.
4354 (prepare_to_access_memory): Update.
4355 (done_accessing_memory): Update.
4356
4357 Update the derived classes and callers below.
4358
4359 * linux-low.cc (linux_target_ops): Update.
4360 (linux_prepare_to_access_memory): Turn into ...
4361 (linux_process_target::prepare_to_access_memory): ... this.
4362 (linux_done_accessing_memory): Turn into ...
4363 (linux_process_target::done_accessing_memory): ... this.
4364 * linux-low.h (class linux_process_target): Update.
4365 * lynx-low.cc (lynx_target_ops): Update.
4366 * nto-low.cc (nto_target_ops): Update.
4367 * win32-low.cc (win32_target_ops): Update.
4368
4369 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4370
4371 Turn process_stratum_target's fetch_registers and store_registers
4372 ops into methods of process_target.
4373
4374 * target.h (struct process_stratum_target): Remove the target ops.
4375 (class process_target): Add the target ops.
4376 (fetch_inferior_registers): Update the macro.
4377 (store_inferior_registers): Update the macro.
4378
4379 Update the derived classes and callers below.
4380
4381 * linux-low.cc (linux_target_ops): Update.
4382 (linux_fetch_registers): Turn into ...
4383 (linux_process_target::fetch_registers): ... this.
4384 (linux_store_registers): Turn into ...
4385 (linux_process_target::store_registers): ... this.
4386 * linux-low.h (class linux_process_target): Update.
4387 * lynx-low.cc (lynx_target_ops): Update.
4388 (lynx_fetch_registers): Turn into ...
4389 (lynx_process_target::fetch_registers): ... this.
4390 (lynx_store_registers): Turn into ...
4391 (lynx_process_target::store_registers): ... this.
4392 * lynx-low.h (class lynx_process_target): Update.
4393 * nto-low.cc (nto_target_ops): Update.
4394 (nto_fetch_registers): Turn into ...
4395 (nto_process_target::fetch_registers): ... this.
4396 (nto_store_registers): Turn into ...
4397 (nto_process_target::store_registers): ... this.
4398 * nto-low.h (class nto_process_target): Update.
4399 * win32-low.cc (win32_target_ops): Update.
4400 (win32_fetch_inferior_registers): Turn into ...
4401 (win32_process_target::fetch_registers): ... this.
4402 (win32_store_inferior_registers): Turn into ...
4403 (win32_process_target::store_registers): ... this.
4404 * win32-low.h (class win32_process_target): Update.
4405
4406 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4407
4408 Turn process_stratum_target's wait op into a method of
4409 process_target.
4410
4411 * target.h (struct process_stratum_target): Remove the target op.
4412 (class process_target): Add the target op.
4413
4414 Update the derived classes and callers below.
4415
4416 * target.cc (target_wait): Update.
4417 * linux-low.cc (linux_target_ops): Update.
4418 (linux_wait): Turn into ...
4419 (linux_process_target::wait): ... this.
4420 * linux-low.h (class linux_process_target): Update.
4421 * lynx-low.cc (lynx_target_ops): Update.
4422 (lynx_wait): Turn into ...
4423 (lynx_process_target::wait): ... this.
4424 * lynx-low.h (class lynx_process_target): Update.
4425 * nto-low.cc (nto_target_ops): Update.
4426 (nto_wait): Turn into ...
4427 (nto_process_target::wait): ... this.
4428 * nto-low.h (class nto_process_target): Update.
4429 * win32-low.cc (win32_target_ops): Update.
4430 (win32_wait): Turn into ...
4431 (win32_process_target::wait): ... this.
4432 (do_initial_child_stuff): Update.
4433 * win32-low.h (class win32_process_target): Update.
4434
4435 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4436
4437 Turn process_stratum_target's resume op into a method of
4438 process_target.
4439
4440 * target.h (struct process_stratum_target): Remove the target op.
4441 (class process_target): Add the target op.
4442
4443 Update the derived classes and callers below.
4444
4445 * server.cc (resume): Update.
4446 * target.cc (target_stop_and_wait): Update.
4447 (target_continue_no_signal): Update.
4448 (target_continue): Update.
4449 * linux-low.cc (linux_target_ops): Update.
4450 (linux_resume): Turn into ...
4451 (linux_process_target::resume): ... this.
4452 * linux-low.h (class linux_process_target): Update.
4453 * lynx-low.cc (lynx_target_ops): Update.
4454 (lynx_resume): Turn into ...
4455 (lynx_process_target::resume): ... this.
4456 * lynx-low.h (class lynx_process_target): Update.
4457 * nto-low.cc (nto_target_ops): Update.
4458 (nto_resume): Turn into ...
4459 (nto_process_target::resume): ... this.
4460 * nto-low.h (class nto_process_target): Update.
4461 * win32-low.cc (win32_target_ops): Update.
4462 (win32_resume): Turn into ...
4463 (win32_process_target::resume): ... this.
4464 (win32_process_target::detach): Update.
4465 (do_initial_child_stuff): Update.
4466 * win32-low.h (class win32_process_target): Update.
4467
4468 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4469
4470 Turn process_stratum_target's thread_alive op into a method of
4471 process_target.
4472
4473 * target.h (struct process_stratum_target): Remove the target op.
4474 (class process_target): Add the target op.
4475 (mythread_alive): Update the macro.
4476
4477 Update the derived classes and callers below.
4478
4479 * linux-low.cc (linux_target_ops): Update.
4480 (linux_thread_alive): Turn into ...
4481 (linux_process_target::thread_alive): ... this.
4482 (wait_for_sigstop): Update.
4483 * linux-low.h (class linux_process_target): Update.
4484 * lynx-low.cc (lynx_target_ops): Update.
4485 (lynx_thread_alive): Turn into ...
4486 (lynx_process_target::thread_alive): ... this.
4487 * lynx-low.h (class lynx_process_target): Update.
4488 * nto-low.cc (nto_target_ops): Update.
4489 (nto_thread_alive): Turn into ...
4490 (nto_process_target::thread_alive): ... this.
4491 * nto-low.h (class nto_process_target): Update.
4492 * win32-low.cc (win32_target_ops): Update.
4493 (win32_thread_alive): Turn into ...
4494 (win32_process_target::thread_alive): ... this.
4495 * win32-low.h (class win32_process_target): Update.
4496
4497 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4498
4499 Turn process_stratum_target's join op into a method of
4500 process_target.
4501
4502 * target.h (struct process_stratum_target): Remove the target op.
4503 (class process_target): Add the target op.
4504 (join_inferior): Update the macro.
4505
4506 Update the derived classes and callers below.
4507
4508 * linux-low.cc (linux_target_ops): Update.
4509 (linux_join): Turn into ...
4510 (linux_process_target::join): ... this.
4511 * linux-low.h (class linux_process_target): Update.
4512 * lynx-low.cc (lynx_target_ops): Update.
4513 (lynx_join): Turn into ...
4514 (lynx_process_target::join): ... this.
4515 * lynx-low.h (class lynx_process_target): Update.
4516 * nto-low.cc (nto_target_ops): Update.
4517 (nto_process_target::join): Define.
4518 * nto-low.h (class nto_process_target): Update.
4519 * win32-low.cc (win32_target_ops): Update.
4520 (win32_join): Turn into ...
4521 (win32_process_target::join): ... this.
4522 * win32-low.h (class win32_process_target): Update.
4523
4524 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4525
4526 Turn process_stratum_target's mourn op into a method of
4527 process_target.
4528
4529 * target.h (struct process_stratum_target): Remove the target op.
4530 (class process_target): Add the target op.
4531
4532 Update the derived classes and callers below.
4533
4534 * target.cc (target_mourn_inferior): Update.
4535 * linux-low.cc (linux_target_ops): Update.
4536 (linux_mourn): Turn into ...
4537 (linux_process_target::mourn): ... this.
4538 (handle_extended_wait): Update.
4539 (linux_process_target::kill): Update.
4540 (linux_process_target::detach): Update.
4541 * linux-low.h (class linux_process_target): Update.
4542 * lynx-low.cc (lynx_target_ops): Update.
4543 (lynx_mourn): Turn into ...
4544 (lynx_process_target::mourn): ... this.
4545 * lynx-low.h (class lynx_process_target): Update.
4546 * nto-low.cc (nto_target_ops): Update.
4547 (nto_mourn): Turn into ...
4548 (nto_process_target::mourn): ... this.
4549 * nto-low.h (class nto_process_target): Update.
4550 * win32-low.cc (win32_target_ops): Update.
4551 (win32_mourn): Turn into ...
4552 (win32_process_target::mourn): ... this.
4553 * win32-low.h (class win32_process_target): Update.
4554
4555 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4556
4557 Turn process_stratum_target's detach op into a method of
4558 process_target.
4559
4560 * target.h (struct process_stratum_target): Remove the target op.
4561 (class process_target): Add the target op.
4562 (detach_inferior): Update the macro.
4563
4564 Update the derived classes and callers below.
4565
4566 * linux-low.cc (linux_target_ops): Update.
4567 (linux_detach): Turn into ...
4568 (linux_process_target::detach): ... this.
4569 * linux-low.h (class linux_process_target): Update.
4570 * lynx-low.cc (lynx_target_ops): Update.
4571 (lynx_detach): Turn into ...
4572 (lynx_process_target::detach): ... this.
4573 * lynx-low.h (class lynx_process_target): Update.
4574 * nto-low.cc (nto_target_ops): Update.
4575 (nto_detach): Turn into ...
4576 (nto_process_target::detach): ... this.
4577 * nto-low.h (class nto_process_target): Update.
4578 * win32-low.cc (win32_target_ops): Update.
4579 (win32_detach): Turn into ...
4580 (win32_process_target::detach): ... this.
4581 * win32-low.h (class win32_process_target): Update.
4582
4583 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4584
4585 Turn process_stratum_target's kill op into a method of
4586 process_target.
4587
4588 * target.h (struct process_stratum_target): Remove the target op.
4589 (class process_target): Add the target op.
4590
4591 Update the derived classes and callers below.
4592
4593 * target.cc (kill_inferior): Update.
4594 * linux-low.cc (linux_target_ops): Update.
4595 (linux_kill): Turn into ...
4596 (linux_process_target::kill): ... this.
4597 * linux-low.h (class linux_process_target): Update.
4598 * lynx-low.cc (lynx_target_ops): Update.
4599 (lynx_kill): Turn into ...
4600 (lynx_process_target::kill): ... this.
4601 * lynx-low.h (class lynx_process_target): Update.
4602 * nto-low.cc (nto_target_ops): Update.
4603 (nto_kill): Turn into ...
4604 (nto_process_target::kill): ... this.
4605 * nto-low.h (class nto_process_target): Update.
4606 * win32-low.cc (win32_target_ops): Update.
4607 (win32_kill): Turn into ...
4608 (win32_process_target::kill): ... this.
4609 * win32-low.h (class win32_process_target): Update.
4610
4611 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4612
4613 Turn process_stratum_target's attach op into a method of
4614 process_target.
4615
4616 * target.h (struct process_stratum_target): Remove the target op.
4617 (class process_target): Add the target op.
4618 (myattach): Update the macro.
4619
4620 Update the derived classes and callers below.
4621
4622 * linux-low.cc (linux_target_ops): Update.
4623 (linux_attach): Turn into ...
4624 (linux_process_target::attach): ... this.
4625 * linux-low.h (class linux_process_target): Update.
4626 * lynx-low.cc (lynx_target_ops): Update.
4627 (lynx_attach): Turn into ...
4628 (lynx_process_target::attach): ... this.
4629 * lynx-low.h (class lynx_process_target): Update.
4630 * nto-low.cc (nto_target_ops): Update.
4631 (nto_attach): Turn into ...
4632 (nto_process_target::attach): ... this.
4633 * nto-low.h (class nto_process_target): Update.
4634 * win32-low.cc (win32_target_ops): Update.
4635 (win32_attach): Turn into ...
4636 (win32_process_target::attach): ... this.
4637 * win32-low.h (class win32_process_target): Update.
4638
4639 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4640
4641 Turn process_stratum_target's post_create_inferior op into a method
4642 of process_target.
4643
4644 * target.h (struct process_stratum_target): Remove the target op.
4645 (class process_target): Add the target op.
4646 (target_post_create_inferior): Update the macro.
4647 * target.cc (process_target::post_create_inferior): Define.
4648
4649 Update the derived classes and callers below.
4650
4651 * linux-low.cc (linux_target_ops): Update.
4652 (linux_post_create_inferior): Turn into ...
4653 (linux_process_target::post_create_inferior): ... this.
4654 * linux-low.h (class linux_process_target): Update.
4655 * lynx-low.cc (lynx_target_ops): Update.
4656 * nto-low.cc (nto_target_ops): Update.
4657 * win32-low.cc (win32_target_ops): Update.
4658
4659 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4660
4661 Turn process_stratum_target's create_inferior op into a method of
4662 process_target.
4663
4664 * target.h (struct process_stratum_target): Remove the target op.
4665 (class process_target): Add the target op.
4666 (create_inferior): Rename the macro to ...
4667 (target_create_inferior): ... this.
4668
4669 Update the derived classes and callers below.
4670
4671 * server.cc (handle_v_run): Update.
4672 (captured_main): Update.
4673 (process_serial_event): Update.
4674 * linux-low.cc (linux_target_ops): Update.
4675 (linux_create_inferior): Turn into ...
4676 (linux_process_target::create_inferior): ... this.
4677 * linux-low.h (class linux_process_target): Update.
4678 * lynx-low.cc (lynx_target_ops): Update.
4679 (lynx_create_inferior): Turn into ...
4680 (lynx_process_target::create_inferior): ... this.
4681 * lynx-low.h (class lynx_process_target): Update.
4682 * nto-low.cc (nto_target_ops): Update.
4683 (nto_create_inferior): Turn into ...
4684 (nto_process_target::create_inferior): ... this.
4685 * nto-low.h (class nto_process_target): Update.
4686 * win32-low.cc (win32_target_ops): Update.
4687 (win32_create_inferior): Turn into ...
4688 (win32_process_target::create_inferior): ... this.
4689 * win32-low.h (class win32_process_target): Update.
4690
4691 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4692
4693 * target.h (class process_target): New class definition.
4694 (struct process_stratum_target) <pt>: New field with type
4695 'process_target*'.
4696 * linux-low.h (class linux_process_target): Define as a derived
4697 class of 'process_target'.
4698 * linux-low.cc (linux_target_ops): Add a linux_process_target*
4699 as the 'pt' field.
4700 * lynx-low.h (class lynx_process_target): Define as a derived
4701 class of 'process_target'.
4702 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
4703 as the 'pt' field.
4704 * nto-low.h (class nto_process_target): Define as a derived
4705 class of 'process_target'.
4706 * nto-low.cc (nto_target_ops): Add an nto_process_target*
4707 as the 'pt' field.
4708 * win32-low.h (class win32_process_target): Define as a derived
4709 class of 'process_target'.
4710 * win32-low.cc (win32_target_ops): Add a win32_process_target*
4711 as the 'pt' field.
4712
4713 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
4714
4715 * configure: Regenerate.
4716
4717 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
4718 Andrew Burgess <andrew.burgess@embecosm.com>
4719
4720 * linux-riscv-low.cc: New file.
4721 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
4722 and nat/riscv-linux-tdesc.c.
4723 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
4724 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
4725 Define.
4726
4727 2020-02-14 Tom Tromey <tom@tromey.com>
4728
4729 * acinclude.m4: Don't include acx_configure_dir.m4.
4730 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
4731 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
4732 (all, install-only, uninstall, clean-info, clean)
4733 (maintainer-clean): Don't recurse.
4734 (subdir_do, all-lib): Remove.
4735 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
4736 (GNULIB_H): Remove.
4737 (generated_files): Update.
4738 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
4739 * configure: Rebuild.
4740 * configure.ac: Don't configure gnulib or libiberty.
4741 (GNULIB): Update.
4742
4743 2020-02-14 Eli Zaretskii <eliz@gnu.org>
4744
4745 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
4746 preparing the command line for CreateProcess.
4747 (win32_create_inferior): Reflect the program name in debugging
4748 output that shows the process and its command line.
4749
4750 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
4751
4752 * Makefile.in: Rename source files from .c to .cc.
4753 * %.c: Rename to %.cc.
4754 * configure.ac: Rename server.c to server.cc.
4755 * configure: Re-generate.
4756
4757 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
4758
4759 * Makefile.in: Rename gdbsupport source files from .c to .cc.
4760
4761 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
4762
4763 * win32-low.c (win32_create_inferior): Set signal_pid.
4764
4765 2020-02-12 Maciej W. Rozycki <macro@wdc.com>
4766 Pedro Alves <palves@redhat.com>
4767
4768 Skip building gdbserver in a cross-configuration.
4769 * configure.srv: Set $gdbserver_host depending on whether $target
4770 is $host. Use $gdbserver_host instead of $host.
4771
4772 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4773
4774 * configure: Re-generate.
4775
4776 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4777
4778 * configure: Re-generate.
4779
4780 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4781
4782 * acinclude.m4: Update warning.m4 path.
4783
4784 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
4785
4786 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
4787 (handle_exception): Set siginfo_er.
4788 (win32_xfer_siginfo): New function.
4789
4790 2020-02-07 Tom Tromey <tom@tromey.com>
4791 Pedro Alves <palves@redhat.com>
4792
4793 * README: Update build documentation.
4794 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
4795 host, not target.
4796 * configure.ac: Update paths.
4797 * configure: Rebuild.
4798 * acinclude.m4: Update paths.
4799 * Makefile.in: Update include paths.
4800 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
4801 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
4802 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
4803 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
4804 (%-generated.c): Update paths.
4805 * Move entire directory from ../gdb/gdbserver.
4806
4807 2020-01-29 Maciej W. Rozycki <macro@wdc.com>
4808
4809 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
4810
4811 2020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4812
4813 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
4814 assignment instead of srv_linux_obj.
4815
4816 2020-01-28 Hannes Domani <ssbssa@yahoo.de>
4817
4818 * server.c (handle_qxfer_libraries): Write segment-address with
4819 paddress.
4820
4821 2020-01-24 Hannes Domani <ssbssa@yahoo.de>
4822
4823 * Makefile.in (install-strip): New target.
4824 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
4825 * aclocal.m4: Regenerate.
4826 * configure: Regenerate.
4827 * configure.ac: Add AM_PROG_INSTALL_STRIP.
4828
4829 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
4830
4831 * Makefile.in (SFILES): Adjust paths to point to real files.
4832 (OBS): Move waitstatus.o to target/waitstatus.o.
4833 (TAGS): Transform paths appropriately.
4834 (%.o): Rename to...
4835 (nat/%.o): ... this pattern rule.
4836 (%.o): Rename to...
4837 (target/%.o): ... this pattern rule.
4838 * configure.srv: Adjust paths throughout to include nat/ prefix
4839 with the revant files.
4840 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
4841 * configure: Regenerate.
4842
4843 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
4844
4845 * Makefile.in (TAGS): Remove config files from the recipe.
4846
4847 2020-01-14 Tom Tromey <tom@tromey.com>
4848
4849 * configure: Rebuild.
4850 * configure.ac: Remove any checks that were added to common.m4.
4851 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
4852 lib-link.m4.
4853
4854 2020-01-14 Tom Tromey <tom@tromey.com>
4855
4856 * server.h: Include config.h.
4857 * gdbreplay.c: Include config.h.
4858 * configure: Rebuild.
4859 * configure.ac: Don't source common.host.
4860 * acinclude.m4: Update path.
4861 * Makefile.in (INCSUPPORT): New variable.
4862 (INCLUDE_CFLAGS): Add INCSUPPORT.
4863 (SFILES): Update paths.
4864 (version-generated.c): Update path to create-version.sh.
4865 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
4866
4867 2020-01-14 Tom Tromey <tom@tromey.com>
4868
4869 * configure.ac (LIBS): Use WIN32APILIBS.
4870 (USE_WIN32API): Don't define.
4871 * configure: Rebuild.
4872
4873 2020-01-14 Tom Tromey <tom@tromey.com>
4874
4875 * configure: Rebuild.
4876
4877 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4878
4879 * Makefile.in (%-generated.c): Remove rule for files from
4880 regformats/i386.
4881
4882 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4883
4884 * configure: Re-generate.
4885
4886 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4887
4888 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
4889 Define to static.
4890 * tracepoint.c (stop_tracing, flush_trace_buffer,
4891 about_to_request_buffer_space, get_trace_state_variable_value,
4892 set_trace_state_variable_value, gdb_collect): Add declaration.
4893
4894 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4895
4896 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
4897 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
4898 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
4899 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
4900 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
4901 static.
4902
4903 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4904
4905 * inferiors.c: Include gdbsupport/common-inferior.h.
4906
4907 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4908
4909 * hostio-errno.c: Include hostio.h.
4910
4911 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4912
4913 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
4914 prerequisite.
4915
4916 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4917
4918 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
4919 * linux-arm-tdesc.h: Include arch/arm.h.
4920
4921 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4922
4923 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
4924
4925 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4926
4927 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
4928 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
4929
4930 2020-01-10 Pedro Alves <palves@redhat.com>
4931
4932 * fork-child.c (post_fork_inferior): Pass target down to
4933 startup_inferior.
4934 * inferiors.c (switch_to_thread): Add process_stratum_target
4935 parameter.
4936 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
4937 * nto-low.c (nto_target_ops): Now a process_stratum_target.
4938 * linux-low.c (linux_target_ops): Now a process_stratum_target.
4939 * remote-utils.c (prepare_resume_reply): Pass the target to
4940 switch_to_thread.
4941 * target.c (the_target): Now a process_stratum_target.
4942 (done_accessing_memory): Pass the target to switch_to_thread.
4943 (set_target_ops): Ajust to use process_stratum_target.
4944 * target.h (struct target_ops): Rename to ...
4945 (struct process_stratum_target): ... this.
4946 (the_target, set_target_ops): Adjust.
4947 (prepare_to_access_memory): Adjust comment.
4948 * win32-low.c (child_xfer_memory): Adjust to use
4949 process_stratum_target.
4950 (win32_target_ops): Now a process_stratum_target.
4951
4952 2020-01-06 Eli Zaretskii <eliz@gnu.org>
4953 Pedro Alves <palves@redhat.com>
4954
4955 * win32-low.c (get_child_debug_event): Extract the fatal exception
4956 from the exit status and convert to the equivalent Posix signal
4957 number.
4958 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
4959 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
4960
4961 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
4962
4963 * Makefile.in: Use INSTALL_PROGRAM_ENV.
4964
4965 2020-01-01 Joel Brobecker <brobecker@adacore.com>
4966
4967 * server.c (gdbserver_version): Change copyright year to 2020.
4968 * gdbreplay.c (gdbreplay_version): Likewise.
4969
4970 2019-12-19 Christian Biesinger <cbiesinger@google.com>
4971
4972 * configure: Regenerate.
4973 * configure.ac: Quote variable arguments of test.
4974
4975 2019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
4976
4977 * Makefile.in: Fix build with GNU Make 3.81
4978
4979 2019-12-16 Tom Tromey <tromey@adacore.com>
4980
4981 * server.c (get_exec_file): Constify result.
4982
4983 2019-12-10 Christian Biesinger <cbiesinger@google.com>
4984
4985 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
4986 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
4987 * config.in: Regenerate.
4988 * configure: Regenerate.
4989 * configure.ac: Don't check for strerror.
4990 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
4991 Call safe_strerror instead of strerror.
4992 * server.h (strerror): Remove this now-unnecessary declaration.
4993 * tracepoint.c (init_named_socket): Call safe_strerror instead of
4994 strerror.
4995 (gdb_agent_helper_thread): Likewise.
4996 * utils.c (perror_with_name): Likewise.
4997
4998 2019-11-26 Tom Tromey <tom@tromey.com>
4999
5000 * configure, config.in: Rebuild.
5001
5002 2019-11-26 Tom Tromey <tom@tromey.com>
5003
5004 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
5005 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
5006 gdb_sigmask.
5007 * configure, config.in: Rebuild.
5008
5009 2019-11-26 Tom Tromey <tom@tromey.com>
5010
5011 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
5012 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
5013 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
5014 * acinclude.m4: Include ax_pthread.m4.
5015 * config.in, configure: Rebuild.
5016
5017 2019-11-26 Christian Biesinger <cbiesinger@google.com>
5018
5019 * debug.c (debug_set_output): Call safe_strerror instead of
5020 strerror.
5021 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
5022 (linux_kill_one_lwp): Likewise.
5023 (linux_detach_one_lwp): Likewise.
5024 (linux_wait_for_event_filtered): Likewise.
5025 (store_register): Likewise.
5026 * lynx-low.c (lynx_attach): Likewise.
5027 * mem-break.c (insert_memory_breakpoint): Likewise.
5028 (remove_memory_breakpoint): Likewise.
5029 (delete_fast_tracepoint_jump): Likewise.
5030 (set_fast_tracepoint_jump): Likewise.
5031 (uninsert_fast_tracepoint_jumps_at): Likewise.
5032 (reinsert_fast_tracepoint_jumps_at): Likewise.
5033 * nto-low.c (nto_xfer_memory): Likewise.
5034 (nto_resume): Likewise.
5035
5036 2019-11-20 Luis Machado <luis.machado@linaro.org>
5037
5038 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
5039 instead of register count.
5040 * tdesc.c (tdesc_contains_feature): New function.
5041 * tdesc.h (tdesc_contains_feature): New prototype.
5042
5043 2019-11-15 Christian Biesinger <cbiesinger@google.com>
5044
5045 * Makefile.in: Add safe-strerror.c.
5046 * configure: Regenerate.
5047 * configure.ac: Don't source common.host.
5048
5049 2019-11-15 Christian Biesinger <cbiesinger@google.com>
5050
5051 * config.in: Regenerate.
5052 * configure: Regenerate.
5053
5054 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
5055
5056 * ax.c (ax_printf): Handle size_t_arg.
5057
5058 2019-11-06 Christian Biesinger <cbiesinger@google.com>
5059
5060 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
5061 * mi/mi-main.c (output_cores): Likewise.
5062 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
5063 (linux_xfer_osdata_modules): Likewise.
5064 * remote.c (register_remote_support_xml): Likewise.
5065 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
5066 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
5067
5068 2019-11-01 Christian Biesinger <cbiesinger@google.com>
5069
5070 * configure: Regenerate.
5071 * configure.ac: Remove check for strerror_r.
5072
5073 2019-10-31 Christian Biesinger <cbiesinger@google.com>
5074
5075 * config.in: Regenerate.
5076 * configure: Regenerate.
5077 * configure.ac: Also check for strerror_r.
5078
5079 2019-10-31 Christian Biesinger <cbiesinger@google.com>
5080
5081 * ax.h (debug_agent): Remove duplicate declaration.
5082
5083 2019-10-26 Tom de Vries <tdevries@suse.de>
5084
5085 * linux-aarch64-low.c: Fix typos in comments.
5086 * linux-arm-low.c: Same.
5087 * linux-low.c: Same.
5088 * linux-ppc-low.c: Same.
5089 * proc-service.c: Same.
5090 * regcache.h: Same.
5091 * server.c: Same.
5092 * tracepoint.c: Same.
5093 * win32-low.c: Same.
5094
5095 2019-10-25 Tom Tromey <tromey@adacore.com>
5096
5097 * utils.c (xstrdup): Remove.
5098
5099 2019-10-23 Tom Tromey <tom@tromey.com>
5100
5101 * configure, config.in: Rebuild.
5102
5103 2019-10-23 Tom Tromey <tom@tromey.com>
5104
5105 * configure: Rebuild.
5106 * acinclude.m4: Use m4_include, not sinclude.
5107
5108 2019-10-17 Tom Tromey <tromey@adacore.com>
5109
5110 * configure: Rebuild.
5111 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
5112 in AC_CONFIG_FILES invocation.
5113 * Makefile.in (stamp-h, Makefile): Use new-style config.status
5114 invocation.
5115
5116 2019-10-16 Christian Biesinger <cbiesinger@google.com>
5117
5118 * server.c: Include xml-builtin.h.
5119 (get_xml_features): Don't declare xml_builtins here.
5120
5121 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
5122
5123 * Makefile.in: Remove references to vec-ipa.o.
5124
5125 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
5126
5127 * Makefile.in: Remove references to vec.c.
5128
5129 2019-10-02 Christian Biesinger <cbiesinger@google.com>
5130
5131 * server.c (server_waiting): Change to bool.
5132 (extended_protocol): Likewise.
5133 (response_needed): Likewise.
5134 (exit_requested): Likewise.
5135 (run_once): Likewise.
5136 (report_no_resumed): Likewise.
5137 (non_stop): Likewise.
5138 (disable_packet_vCont): Likewise.
5139 (disable_packet_Tthread): Likewise.
5140 (disable_packet_qC): Likewise.
5141 (disable_packet_qfThreadInfo): Likewise.
5142 (handle_general_set): Update.
5143 (handle_detach): Update.
5144 (handle_monitor_command): Update.
5145 (handle_query): Update.
5146 (captured_main): Update.
5147 (process_serial_event): Update.
5148 * server.h (server_waiting): Change to bool.
5149 (disable_packet_vCont): Likewise.
5150 (disable_packet_Tthread): Likewise.
5151 (disable_packet_qC): Likewise.
5152 (disable_packet_qfThreadInfo): Likewise.
5153 (run_once): Likewise.
5154 (non_stop): Likewise.
5155 * target.c (target_stop_and_wait): Update.
5156
5157 2019-10-02 Tom Tromey <tromey@adacore.com>
5158
5159 * Makefile.in (SFILES): Add common-inferior.c.
5160 (OBS): Add common-inferior.o.
5161 * server.c (startup_with_shell): Don't define.
5162
5163 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
5164
5165 * linux-low.c (linux_low_read_btrace): Update for change to
5166 std::vector.
5167
5168 2019-09-20 Christian Biesinger <cbiesinger@google.com>
5169
5170 * debug.c (debug_threads): Remove comment in favor of the header.
5171 * debug.h (using_threads): Add declaration.
5172 (debug_threads): Add comment.
5173 * linux-aarch64-low.c: Include debug.h and remove declaration of
5174 debug_threads.
5175 * nto-low.c: Likewise.
5176 * remote-utils.c: Likewise.
5177 * thread-db.c: Likewise.
5178
5179 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
5180
5181 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
5182 and powerpc-cell64l-ipa.o.
5183 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
5184 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
5185 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
5186 (spu*-*-*): Remove.
5187
5188 * spu-low.c: Remove file.
5189
5190 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
5191 (parse_spufs_run): Remove.
5192 (ppc_get_pc): Remove Cell/B.E. support.
5193 (ppc_set_pc): Likewise.
5194 (ppc_breakpoint_at): Likewise.
5195 (ppc_arch_setup): Likewise.
5196 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
5197 tdesc_powerpc_cell32l.
5198 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
5199 or init_registers_powerpc_cell32l.
5200 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
5201 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
5202 or init_registers_powerpc_cell32l.
5203 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
5204 (init_registers_powerpc_cell32l): Remove prototype.
5205 (init_registers_powerpc_cell64l): Likewise.
5206
5207 * target.h (struct target_ops): Remove qxfer_spu member.
5208 * server.c (handle_qxfer_spu): Remove.
5209 (qxfer_packets): Remove entry for "spu".
5210 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
5211 * linux-low.c (SPUFS_MAGIC): Remove.
5212 (spu_enumerate_spu_ids): Remove.
5213 (linux_qxfer_spu): Remove.
5214 (linux_target_ops): Remove qxfer_spu member.
5215 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
5216 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
5217 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
5218
5219 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
5220
5221 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
5222 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
5223 * config.in: Regenerate.
5224 * configure: Regenerate.
5225
5226 2019-08-15 Tom Tromey <tromey@adacore.com>
5227
5228 * target.c (target_write_memory): Use gdb::byte_vector.
5229
5230 2019-08-15 Tom Tromey <tromey@adacore.com>
5231
5232 * tracepoint.c (write_inferior_data_pointer)
5233 (write_inferior_integer, write_inferior_int8)
5234 (write_inferior_uinteger, m_tracepoint_action_download)
5235 (r_tracepoint_action_download, x_tracepoint_action_download)
5236 (l_tracepoint_action_download, clear_inferior_trace_buffer)
5237 (download_agent_expr, download_tracepoint_1)
5238 (download_trace_state_variables, upload_fast_traceframes): Update.
5239 * server.c (gdb_write_memory): Update.
5240 * remote-utils.c (relocate_instruction): Update.
5241 * proc-service.c (ps_pdwrite): Update.
5242 * mem-break.c (remove_memory_breakpoint)
5243 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
5244 (uninsert_fast_tracepoint_jumps_at)
5245 (reinsert_fast_tracepoint_jumps_at): Update.
5246 * linux-x86-low.c (append_insns)
5247 (i386_install_fast_tracepoint_jump_pad)
5248 (amd64_write_goto_address, i386_write_goto_address): Update.
5249 * linux-s390-low.c (append_insns, s390_write_goto_address):
5250 Update.
5251 * linux-ppc-low.c (ppc_relocate_instruction)
5252 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
5253 (ppc_write_goto_address): Update.
5254 * linux-aarch64-low.c (append_insns): Update.
5255 * target.h (struct target_ops): Update.
5256 (write_inferior_memory): Don't declare.
5257 * target.c (target_write_memory): Rename from
5258 write_inferior_memory. Remove old target_write_memory.
5259
5260 2019-08-15 Tom Tromey <tromey@adacore.com>
5261
5262 * target.c (write_inferior_memory): Use std::vector.
5263
5264 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
5265
5266 PR build/24886
5267 * configure.ac: Drop enable-libmcheck support.
5268 * configure, config.in: Rebuild.
5269 * acinclude.m4: Don't include it.
5270
5271 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5272
5273 * configure.srv: Remove Arm xml files.
5274
5275 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5276
5277 * configure.srv: Add new files. Remove xml generated files.
5278 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
5279 registers.
5280 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
5281 * linux-aarch32-tdesc.c: New file.
5282 * linux-aarch32-tdesc.h: New file.
5283 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
5284 * linux-arm-low.c (init_registers_arm, tdesc_arm)
5285 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
5286 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
5287 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
5288 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
5289 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
5290 (arm_read_description): Call arm_linux_read_description.
5291 (initialize_low_arch): Don't init registers.
5292 * linux-arm-tdesc.c: New file.
5293 * linux-arm-tdesc.h: New file.
5294
5295 2019-07-10 Alan Hayward <alan.hayward@arm.com>
5296
5297 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
5298 Move counter inside for.
5299 (arm_read_description): Check ptrace earlier.
5300 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
5301
5302 2019-07-09 Tom Tromey <tom@tromey.com>
5303
5304 * configure: Rebuild.
5305 * configure.ac: Change common to gdbsupport.
5306 * acinclude.m4: Change common to gdbsupport.
5307 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
5308 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
5309 common to gdbsupport.
5310 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
5311 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
5312 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
5313 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
5314 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
5315 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
5316 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
5317 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
5318 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
5319 common to gdbsupport.
5320
5321 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5322
5323 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
5324 defines.
5325 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
5326
5327 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5328
5329 * configure.srv: Remove legacy xml.
5330 * linux-aarch64-low.c (initialize_low_arch): Remove
5331 initialize_low_tdesc call.
5332 * linux-aarch64-tdesc-selftest.c: Remove file.
5333 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
5334 * linux-x86-low.c (initialize_low_arch): Remove
5335 initialize_low_tdesc call.
5336 * linux-x86-tdesc-selftest.c: Remove file.
5337 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
5338
5339 2019-06-20 Tom de Vries <tdevries@suse.de>
5340
5341 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
5342 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
5343
5344 2019-06-19 Tom de Vries <tdevries@suse.de>
5345
5346 * debug.h (debug_write): Change return type to ssize_t.
5347 * debug.c (debug_write): Same.
5348
5349 2019-06-14 Tom Tromey <tom@tromey.com>
5350
5351 * configure.ac: Use new path to gnulib.
5352 * configure: Rebuild.
5353 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
5354 to gnulib.
5355
5356 2019-06-11 Tom Tromey <tom@tromey.com>
5357
5358 * Makefile.in (SFILES): Add alloc.c.
5359 (OBS): Add alloc.o.
5360 (IPA_OBJS): Add alloc-ipa.o.
5361 (alloc-ipa.o): New target.
5362 (%.o: ../%.c): New pattern rule.
5363
5364 2019-06-10 Tom Tromey <tromey@adacore.com>
5365
5366 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
5367 end warning with a newline.
5368 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
5369 newline.
5370 * thread-db.c (attach_thread): Don't end warning with a newline.
5371 (thread_db_notice_clone): Likewise.
5372 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
5373 newline.
5374 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
5375 end warning with a newline.
5376
5377 2019-06-04 Pedro Alves <palves@redhat.com>
5378
5379 * server.c (captured_main): Use make_unique_xstrdup.
5380
5381 2019-06-02 Tom Tromey <tom@tromey.com>
5382
5383 * gdbreplay.c (fromhex): Remove.
5384 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
5385
5386 2019-05-29 Tom Tromey <tromey@adacore.com>
5387
5388 * configure: Rebuild.
5389
5390 2019-05-06 Kevin Buettner <kevinb@redhat.com>
5391
5392 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
5393 sign extension code on 32-bit builds.
5394
5395 2019-05-03 Eli Zaretskii <eliz@gnu.org>
5396
5397 * remote-utils.c:
5398 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
5399
5400 2019-04-19 Tom Tromey <tom@tromey.com>
5401
5402 * server.c (struct vstop_notif): Derive from notif_event.
5403 <base>: Remove.
5404 (queue_stop_reply): Update.
5405 (remove_all_on_match_ptid): Change type. Rewrite.
5406 (discard_queued_stop_replies): Rewrite.
5407 (in_queued_stop_replies_ptid): Change type.
5408 (in_queued_stop_replies): Rewrite.
5409 (notif_stop): Update.
5410 (queue_stop_reply_callback): Update.
5411 (captured_main): Don't call initialize_notif.
5412 (push_stop_notification): Update.
5413 * notif.c (notif_write_event, handle_notif_ack)
5414 (notif_event_enque, notif_push): Update.
5415 (notif_event_xfree, initialize_notif): Remove.
5416 * notif.h (struct notif_event): Include <list>, not
5417 "common/queue.h".
5418 (struct notif_server) <queue>: Now a std::list.
5419 (notif_event_p): Remove typedef.
5420 (initialize_notif): Don't declare.
5421 (struct notif_event): Add virtual destructor.
5422
5423 2019-04-17 Alan Hayward <alan.hayward@arm.com>
5424
5425 * ax.c (ax_vdebug): Call debug_printf.
5426 * debug.c (debug_write): New function.
5427 * debug.h (debug_write): New declaration.
5428 * linux-low.c (sigchld_handler): Call debug_write.
5429
5430 2019-04-17 Alan Hayward <alan.hayward@arm.com>
5431
5432 * debug.c (debug_set_output): New function.
5433 (debug_vprintf): Send output to debug_file.
5434 (debug_flush): Likewise.
5435 * debug.h (debug_set_output): New declaration.
5436 * server.c (handle_monitor_command): Add debug-file option.
5437 (captured_main): Likewise.
5438
5439 2019-04-17 Alan Hayward <alan.hayward@arm.com>
5440
5441 * debug.c (remote_debug): Add definition.
5442 * debug.h (remote_debug): Add declaration.
5443 * hostio.c (remote_debug): Remove declaration.
5444 * remote-utils.c (struct ui_file): Likewise.
5445 (remote_debug): Likewise.
5446 * remote-utils.h (remote_debug): Likewise,
5447 * server.c (remote_debug): Remove definition.
5448
5449 2019-04-10 Kevin Buettner <kevinb@redhat.com>
5450
5451 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
5452 when using a 64-bit gdbserver.
5453
5454 2019-04-09 Tom Tromey <tromey@adacore.com>
5455
5456 * linux-low.c (select_event_lwp): Use find_thread_in_random.
5457
5458 2019-04-08 Tom Tromey <tom@tromey.com>
5459
5460 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
5461 throw.
5462 (linux_resume_one_lwp): Likewise.
5463
5464 2019-04-08 Tom Tromey <tom@tromey.com>
5465
5466 * gdbreplay.c: Update.
5467 * linux-low.c: Update.
5468 * server.c: Update.
5469
5470 2019-04-08 Tom Tromey <tom@tromey.com>
5471
5472 * server.c: Use C++ exception handling.
5473 * linux-low.c: Use C++ exception handling.
5474 * gdbreplay.c: Use C++ exception handling.
5475
5476 2019-04-08 Tom Tromey <tom@tromey.com>
5477
5478 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
5479 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
5480 (captured_main, main): Update.
5481 * gdbreplay.c (main): Update.
5482
5483 2019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5484
5485 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
5486 value in argument pointer, return 1 if the entry is found and 0
5487 otherwise. Move comment.
5488 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
5489 * linux-low.h (linux_get_auxv): Declare.
5490 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
5491
5492 2019-04-05 Tom Tromey <tromey@adacore.com>
5493
5494 * server.c (gdbserver_usage): Use upper-case for metasyntactic
5495 variables.
5496
5497 2019-03-28 Alan Hayward <alan.hayward@arm.com>
5498
5499 * linux-low.c (AT_HWCAP2): Add define if not already included.
5500
5501 2019-03-26 Alan Hayward <alan.hayward@arm.com>
5502
5503 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
5504 (aarch64_arch_setup): Call linux_get_hwcap.
5505 * linux-arm-low.c (arm_get_hwcap): Remove function.
5506 (arm_read_description): Call linux_get_hwcap.
5507 * linux-low.c (linux_get_auxv): New function.
5508 (linux_get_hwcap): Likewise.
5509 (linux_get_hwcap2): Likewise.
5510 * linux-low.h (linux_get_hwcap): New declaration.
5511 (linux_get_hwcap2): Likewise.
5512 * linux-ppc-low.c (ppc_get_auxv): Remove function.
5513 (ppc_arch_setup): Call linux_get_hwcap.
5514 * linux-s390-low.c (s390_get_hwcap): Remove function.
5515 (s390_arch_setup): Call linux_get_hwcap.
5516
5517 2019-03-22 Alan Hayward <alan.hayward@arm.com>
5518 Jiong Wang <jiong.wang@arm.com>
5519
5520 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
5521 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
5522 to fail.
5523 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
5524
5525 2019-03-22 Alan Hayward <alan.hayward@arm.com>
5526 Jiong Wang <jiong.wang@arm.com>
5527
5528 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
5529 (aarch64_get_hwcap): New function.
5530 (aarch64_arch_setup): Read APIA hwcap.
5531
5532 2019-03-22 Alan Hayward <alan.hayward@arm.com>
5533 Jiong Wang <jiong.wang@arm.com>
5534
5535 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
5536 (initialize_low_tracepoint): Likewise.
5537 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
5538 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
5539 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
5540 (aarch64_linux_read_description): Likewise.
5541 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
5542
5543 2019-03-12 John Baldwin <jhb@FreeBSD.org>
5544
5545 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
5546 i386_create_target_description for 'segments' parameter.
5547 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
5548 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
5549 * win32-i386-low.c (i386_arch_setup): Likewise.
5550
5551 2019-03-12 Tom Tromey <tromey@adacore.com>
5552
5553 * linux-low.c (iterate_over_lwps): Update.
5554
5555 2019-03-06 Tom Tromey <tom@tromey.com>
5556
5557 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
5558 (captured_main): Use SCOPE_EXIT.
5559
5560 2019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
5561
5562 * configure.srv: Use '$enable_unittest' instead of '$development'
5563 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
5564 case.
5565
5566 2019-02-27 Tom Tromey <tromey@adacore.com>
5567
5568 * gdbreplay.c (logchar): Handle \r\n.
5569
5570 2019-02-07 Alan Hayward <alan.hayward@arm.com>
5571
5572 * linux-low.c (linux_attach): Add process before lwp.
5573 * server.c (attach_inferior): Check if already attached.
5574
5575 2019-02-07 Tom Tromey <tom@tromey.com>
5576
5577 * x86-tdesc.h: Rename include guard.
5578 * x86-low.h: Add include guard.
5579 * wincecompat.h: Rename include guard.
5580 * win32-low.h: Add include guard.
5581 * utils.h: Rename include guard.
5582 * tracepoint.h: Rename include guard.
5583 * tdesc.h: Rename include guard.
5584 * target.h: Rename include guard.
5585 * server.h: Rename include guard.
5586 * remote-utils.h: Rename include guard.
5587 * regcache.h: Rename include guard.
5588 * nto-low.h: Rename include guard.
5589 * notif.h: Add include guard.
5590 * mem-break.h: Rename include guard.
5591 * lynx-low.h: Add include guard.
5592 * linux-x86-tdesc.h: Add include guard.
5593 * linux-s390-tdesc.h: Add include guard.
5594 * linux-ppc-tdesc-init.h: Add include guard.
5595 * linux-low.h: Add include guard.
5596 * linux-aarch64-tdesc.h: Add include guard.
5597 * linux-aarch32-low.h: Add include guard.
5598 * inferiors.h: Rename include guard.
5599 * i387-fp.h: Rename include guard.
5600 * hostio.h: Rename include guard.
5601 * gdbthread.h: Rename include guard.
5602 * gdb_proc_service.h: Rename include guard.
5603 * event-loop.h: Rename include guard.
5604 * dll.h: Rename include guard.
5605 * debug.h: Rename include guard.
5606 * ax.h: Rename include guard.
5607
5608 2018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
5609
5610 PR gdb/23985
5611 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
5612 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
5613
5614 2019-01-25 Tom Tromey <tom@tromey.com>
5615
5616 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
5617
5618 2019-01-25 Tom Tromey <tom@tromey.com>
5619
5620 * win32-low.c: Fix common/ includes.
5621 * win32-i386-low.c: Fix common/ includes.
5622 * tracepoint.c: Fix common/ includes.
5623 * thread-db.c: Fix common/ includes.
5624 * target.h: Fix common/ includes.
5625 * symbol.c: Fix common/ includes.
5626 * spu-low.c: Fix common/ includes.
5627 * server.h: Fix common/ includes.
5628 * server.c: Fix common/ includes.
5629 * remote-utils.c: Fix common/ includes.
5630 * regcache.h: Fix common/ includes.
5631 * regcache.c: Fix common/ includes.
5632 * nto-x86-low.c: Fix common/ includes.
5633 * notif.h: Fix common/ includes.
5634 * mem-break.h: Fix common/ includes.
5635 * lynx-low.c: Fix common/ includes.
5636 * lynx-i386-low.c: Fix common/ includes.
5637 * linux-x86-tdesc-selftest.c: Fix common/ includes.
5638 * linux-x86-low.c: Fix common/ includes.
5639 * linux-low.c: Fix common/ includes.
5640 * inferiors.h: Fix common/ includes.
5641 * i387-fp.c: Fix common/ includes.
5642 * hostio.c: Fix common/ includes.
5643 * hostio-errno.c: Fix common/ includes.
5644 * gdbthread.h: Fix common/ includes.
5645 * gdbreplay.c: Fix common/ includes.
5646 * fork-child.c: Fix common/ includes.
5647 * event-loop.c: Fix common/ includes.
5648 * ax.c:
5649 (enum gdb_agent_op): Fix common/ includes.
5650
5651 2019-01-21 Tom Tromey <tom@tromey.com>
5652
5653 * tracepoint.c: Fix includes.
5654 * remote-utils.c: Fix includes.
5655 * linux-x86-low.c: Fix includes.
5656
5657 2019-01-01 Joel Brobecker <brobecker@adacore.com>
5658
5659 * gdbreplay.c (gdbreplay_version): Update copyright year in
5660 version message.
5661 * server.c (gdbserver_version): Likewise.
5662
5663 2018-12-05 Alan Hayward <alan.hayward@arm.com>
5664
5665 * linux-low.c (add_lwp): Switch ordering.
5666
5667 2018-11-29 Tom Tromey <tom@tromey.com>
5668
5669 * win32-low.c (win32_join): Take pid, not process.
5670 * target.h (struct target_ops) <join>: Change argument type.
5671 (join_inferior): Change argument name.
5672 * spu-low.c (spu_join): Take pid, not process.
5673 * server.c (handle_detach): Preserve pid before destroying
5674 process.
5675 * lynx-low.c (lynx_join): Take pid, not process.
5676 * linux-low.c (linux_join): Take pid, not process.
5677
5678 2018-11-23 Alan Hayward <alan.hayward@arm.com>
5679
5680 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
5681 (aarch64_cannot_fetch_register): Likewise.
5682 (struct linux_target_ops): Update references.
5683
5684 2018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5685
5686 * linux-ppc-low.c: Include nat/linux-ptrace.h.
5687
5688 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5689
5690 * configure.srv (ipa_ppc_linux_regobj): Add
5691 powerpc-isa207-htm-vsx32l-ipa.o and
5692 powerpc-isa207-htm-vsx64l-ipa.o.
5693 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
5694 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
5695 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
5696 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
5697 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
5698 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
5699 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
5700 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
5701 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5702 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
5703 (init_registers_powerpc_isa207_htm_vsx32l)
5704 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
5705 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
5706 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
5707 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
5708 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
5709 (ppc_store_tm_ctarregset): New functions.
5710 (ppc_regsets): Add entries for HTM regsets.
5711 (ppc_arch_setup): Set htm in features struct when needed. Set
5712 sizes for the HTM regsets.
5713 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
5714 (initialize_low_arch): Call
5715 init_registers_powerpc_isa207_htm_vsx32l and
5716 init_registers_powerpc_isa207_htm_vsx64l.
5717 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5718 PPC_TDESC_ISA207_HTM_VSX.
5719 (initialize_low_tracepoint): Call
5720 init_registers_powerpc_isa207_htm_vsx32l and
5721 init_registers_powerpc_isa207_htm_vsx64l.
5722
5723 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5724
5725 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
5726 rs6000/power-linux-pmu.xml to srv_xmlfiles.
5727 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
5728 (ppc_store_pmuregset): New functions.
5729 (ppc_regsets): Add entries for ebb and pmu regsets.
5730 (ppc_arch_setup): Set isa207 in features struct if the ebb and
5731 pmu regsets are available. Set sizes for these regsets.
5732
5733 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5734
5735 * configure.srv (ipa_ppc_linux_regobj): Add
5736 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
5737 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
5738 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
5739 rs6000/powerpc-isa207-vsx32l.xml, and
5740 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
5741 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5742 <PPC_TDESC_ISA207_VSX>: New enum value.
5743 (init_registers_powerpc_isa207_vsx32l): Declare.
5744 (init_registers_powerpc_isa207_vsx64l): Declare.
5745 * linux-ppc-low.c (ppc_fill_tarregset): New function.
5746 (ppc_store_tarregset): New function.
5747 (ppc_regsets): Add entry for the TAR regset.
5748 (ppc_arch_setup): Set isa207 in features struct when needed. Set
5749 size for the TAR regsets.
5750 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
5751 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
5752 and init_registers_powerpc_isa207_vsx64l.
5753 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
5754 (initialize_low_tracepoint): Call
5755 init_registers_powerpc_isa207_vsx32l and
5756 init_registers_powerpc_isa207_vsx64l.
5757
5758 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5759 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5760
5761 * configure.srv (ipa_ppc_linux_regobj): Add
5762 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
5763 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
5764 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
5765 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
5766 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
5767 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
5768 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
5769 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5770 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
5771 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
5772 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
5773 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
5774 (ppc_hwcap): Add comment.
5775 (ppc_hwcap2): New global.
5776 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
5777 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
5778 (ppc_regsets): Add entries for the DSCR and PPR regsets.
5779 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
5780 when needed. Set sizes for the the DSCR and PPR regsets.
5781 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
5782 (initialize_low_arch): Call
5783 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5784 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5785 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5786 PPC_TDESC_ISA205_PPR_DSCR_VSX.
5787 (initialize_low_tracepoint): Call
5788 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5789 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5790
5791 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5792
5793 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
5794
5795 2018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
5796 Simon Marchi <simark@simark.ca>
5797
5798 * acinclude.m4: Include "../selftest.m4".
5799 * configure: Regenerate.
5800 * configure.ac: Use "GDB_AC_SELFTEST".
5801 * configure.srv: Use "$enable_unittests" instead of
5802 "$development" when checking whether unit tests have been
5803 enabled.
5804 * server.c (captured_main): Update message informing that
5805 selftests have been disabled.
5806
5807 2018-10-04 Tom Tromey <tom@tromey.com>
5808
5809 * configure: Rebuild.
5810
5811 2018-10-04 Tom Tromey <tom@tromey.com>
5812
5813 * server.c (handle_status): Rename inner "thread".
5814 (process_serial_event): Declare "res" in 'm' case.
5815 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
5816 (iterate_over_lwps): Rename inner "thread".
5817 (linux_qxfer_libraries_svr4): Rename inner "len".
5818 * gdbthread.h (find_thread_in_random): Rename inner "thread".
5819
5820 2018-10-01 Gary Benson <gbenson@redhat.com>
5821
5822 * gdb_proc_service.h: Moved common code to
5823 common/gdb_proc_service.h.
5824
5825 2018-10-01 Gary Benson <gbenson@redhat.com>
5826
5827 * gdb_proc_service.h: Synchronize comments and whitespace with
5828 GDB's version of this file.
5829
5830 2018-09-25 Tom Tromey <tom@tromey.com>
5831
5832 * configure: Rebuild.
5833 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
5834
5835 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5836
5837 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
5838 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
5839 ($(IPA_LIB)): Sort IPA_OBJS.
5840
5841 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5842
5843 * Makefile.in: Remove references to $(ADD_DEPS).
5844
5845 2018-09-16 Tom Tromey <tom@tromey.com>
5846
5847 * remote-utils.c (remote_open): Use GNU style for metasyntactic
5848 variables.
5849 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
5850 variables.
5851
5852 2018-09-05 Tom Tromey <tom@tromey.com>
5853
5854 * configure: Rebuild.
5855
5856 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
5857
5858 PR build/23399
5859 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
5860
5861 2018-08-27 Tom Tromey <tom@tromey.com>
5862
5863 PR build/23087:
5864 * configure: Rebuild.
5865
5866 2018-08-27 Tom Tromey <tom@tromey.com>
5867
5868 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
5869 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
5870 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
5871 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
5872 (s390x_emit_stack_adjust): Add casts to unsigned char.
5873
5874 2018-08-22 Simon Marchi <simon.marchi@ericsson.com>
5875
5876 PR gdb/23374
5877 PR gdb/23375
5878 * server.h (struct client_state) <disable_randomization>:
5879 Initialize to 1.
5880
5881 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5882
5883 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
5884 variable.
5885 (mips_supply_ptrace_register): Likewise.
5886
5887 2018-07-22 Tom Tromey <tom@tromey.com>
5888
5889 * configure: Rebuild.
5890
5891 2018-07-22 Tom Tromey <tom@tromey.com>
5892
5893 * win32-low.c (win32_create_inferior): Remove unused variables.
5894 * gdbreplay.c (remote_open): Remove unused variable.
5895 * remote-utils.c (remote_prepare): Remove unused variable.
5896 * x86-tdesc.h (X86_TDESC_H): Define.
5897 (amd64_expedite_regs): Define conditionally.
5898 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
5899 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
5900 * remote-utils.c (readchar): Remove unused variable.
5901
5902 2018-07-13 Pedro Alves <palves@redhat.com>
5903
5904 * linux-low.c (linux_kill): Change parameter to process_info
5905 pointer instead of pid. Adjust.
5906 * lynx-low.c (lynx_kill): Likewise.
5907 * nto-low.c (nto_kill): Likewise.
5908 * spu-low.c (spu_kill): Likewise.
5909 * win32-low.c (win32_kill): Likewise.
5910 * server.c (handle_v_kill, kill_inferior_callback)
5911 (detach_or_kill_for_exit): Adjust.
5912 * target.c (kill_inferior): Change parameter to process_info
5913 pointer instead of pid. Adjust.
5914 * target.h (struct target_ops) <kill>: Change parameter to
5915 process_info pointer instead of pid. Adjust all implementations
5916 and callers.
5917 (kill_inferior): Likewise.
5918
5919 2018-07-13 Pedro Alves <palves@redhat.com>
5920
5921 * linux-low.c (linux_detach, linux_join): Change parameter to
5922 process_info pointer instead of pid. Adjust.
5923 * lynx-low.c (lynx_detach, lynx_join): Likewise.
5924 * nto-low.c (nto_detach): Likewise.
5925 * spu-low.c (spu_detach, spu_join): Likewise.
5926 * win32-low.c (win32_detach, win32_join): Likewise.
5927 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
5928 * target.h (struct target_ops) <detach, join>: Change parameter to
5929 process_info pointer instead of pid. Adjust all implementations
5930 and callers.
5931 (detach_inferior, join_inferior): Rename 'pid' parameter to
5932 'proc'.
5933
5934 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
5935 Jan Kratochvil <jan.kratochvil@redhat.com>
5936 Paul Fertser <fercerpav@gmail.com>
5937 Tsutomu Seki <sekiriki@gmail.com>
5938
5939 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
5940 (OBS): Add 'common/netstuff.o'.
5941 (GDBREPLAY_OBS): Likewise.
5942 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
5943 (remote_open): Implement support for IPv6
5944 connections.
5945 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
5946 and 'wspiapi.h'.
5947 (handle_accept_event): Accept connections from IPv6 sources.
5948 (remote_prepare): Handle IPv6-style hostnames; implement
5949 support for IPv6 connections.
5950 (remote_open): Implement support for printing connections from
5951 IPv6 sources.
5952
5953 2018-07-11 Pedro Alves <palves@redhat.com>
5954
5955 PR gdb/23377
5956 * mem-break.c (any_persistent_commands): Add process_info
5957 parameter and use it instead of relying on the current process.
5958 Change return type to bool.
5959 * mem-break.h (any_persistent_commands): Add process_info
5960 parameter and change return type to bool.
5961 * server.c (handle_detach): Remove require_running_or_return call.
5962 Look up the process_info for the process we're about to detach.
5963 If not found, return back error to GDB. Adjust
5964 any_persistent_commands call to pass down a process pointer.
5965
5966 2018-07-11 Pedro Alves <palves@redhat.com>
5967
5968 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
5969 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
5970 instead of collect_register_by_name.
5971 * regcache.c (regcache_raw_get_unsigned_by_name): New.
5972 * regcache.h (regcache_raw_get_unsigned_by_name): New.
5973
5974 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
5975 Pedro Alves <palves@redhat.com>
5976
5977 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
5978
5979 2018-07-03 Tom Tromey <tom@tromey.com>
5980
5981 * linux-low.c: Update.
5982 * lynx-low.c: Update.
5983 * mem-break.c: Update.
5984 * nto-low.c: Update.
5985 * remote-utils.c: Update.
5986 * server.c: Update.
5987 * spu-low.c: Update.
5988 * target.c: Update.
5989 * win32-low.c: Update.
5990
5991 2018-07-03 Tom Tromey <tom@tromey.com>
5992
5993 * server.c: Update.
5994
5995 2018-07-03 Tom Tromey <tom@tromey.com>
5996
5997 * linux-low.c: Update.
5998
5999 2018-07-03 Tom Tromey <tom@tromey.com>
6000
6001 * target.c: Update.
6002
6003 2018-07-03 Tom Tromey <tom@tromey.com>
6004
6005 * linux-low.c: Update.
6006 * linux-mips-low.c: Update.
6007 * lynx-low.c: Update.
6008 * nto-low.c: Update.
6009 * remote-utils.c: Update.
6010 * server.c: Update.
6011 * spu-low.c: Update.
6012 * target.c: Update.
6013 * thread-db.c: Update.
6014
6015 2018-07-03 Tom Tromey <tom@tromey.com>
6016
6017 * linux-low.c: Update.
6018 * linux-mips-low.c: Update.
6019 * lynx-low.c: Update.
6020 * mem-break.c: Update.
6021 * nto-low.c: Update.
6022 * remote-utils.c: Update.
6023 * server.c: Update.
6024 * spu-low.c: Update.
6025 * target.c: Update.
6026 * tracepoint.c: Update.
6027
6028 2018-07-03 Tom Tromey <tom@tromey.com>
6029
6030 * linux-low.c: Update.
6031 * linux-ppc-low.c: Update.
6032 * linux-x86-low.c: Update.
6033 * proc-service.c: Update.
6034 * server.c: Update.
6035 * spu-low.c: Update.
6036 * thread-db.c: Update.
6037 * win32-low.c: Update.
6038
6039 2018-07-03 Tom Tromey <tom@tromey.com>
6040
6041 * linux-low.c: Update.
6042 * lynx-low.c: Update.
6043 * nto-low.c: Update.
6044 * remote-utils.c: Update.
6045 * spu-low.c: Update.
6046 * thread-db.c: Update.
6047 * win32-low.c: Update.
6048
6049 2018-06-29 Joel Brobecker <brobecker@adacore.com>
6050
6051 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
6052 parameter in call to 'amd64_create_target_description'.
6053
6054 2018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6055
6056 * x86-tdesc.h: Remove executable permission flag.
6057
6058 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
6059
6060 * configure.ac: Remove AC_PREREQ, add missing quoting.
6061 * configure: Re-generate.
6062 * config.in: Re-generate.
6063 * aclocal.m4: Re-generate.
6064
6065 2018-06-18 Simon Marchi <simon.marchi@ericsson.com>
6066
6067 * tracepoint.h (current_traceframe): Remove declaration.
6068
6069 2018-06-18 Alan Hayward <alan.hayward@arm.com>
6070
6071 * linux-aarch64-low.c (is_sve_tdesc): New function.
6072 (aarch64_sve_regs_copy_to_regcache): Likewise.
6073 (aarch64_sve_regs_copy_from_regcache): Likewise.
6074 (aarch64_regs_info): Add SVE checks.
6075 (initialize_low_arch): Initialize SVE.
6076
6077 2018-06-18 Alan Hayward <alan.hayward@arm.com>
6078
6079 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
6080
6081 2018-06-11 Alan Hayward <alan.hayward@arm.com>
6082
6083 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
6084 (initialize_low_tracepoint): Likewise
6085 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
6086 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
6087 param.
6088 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
6089 checks.
6090 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
6091
6092 2018-06-11 Alan Hayward <alan.hayward@arm.com>
6093
6094 * server.h (PBUFSIZ): Increase size
6095
6096 2018-06-11 Alan Hayward <alan.hayward@arm.com>
6097
6098 * regcache.c (regcache::raw_compare): New function.
6099 * regcache.h (regcache::raw_compare): New declaration.
6100
6101 2018-06-11 Alan Hayward <alan.hayward@arm.com>
6102
6103 * regcache.c (new_register_cache): Use new.
6104 (free_register_cache): Use delete.
6105 (register_data): Use const.
6106 (supply_register): Move body inside regcache.
6107 (regcache::raw_supply): New override function.
6108 (collect_register): Move body inside regcache.
6109 (regcache::raw_collect): New override function.
6110 (regcache::get_register_status): New override function.
6111 * regcache.h (struct regcache): Inherit from reg_buffer_common.
6112
6113 2018-06-09 Tom Tromey <tom@tromey.com>
6114
6115 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
6116 declare queue.
6117 (event_queue): Use std::queue.
6118 (gdb_event_xfree): Remove.
6119 (initialize_event_loop, process_event, wait_for_event): Update.
6120
6121 2018-06-08 Stan Cox <scox@redhat.com>
6122
6123 * win32-low.c (win32_create_inferior): last_ptid and last_status
6124 moved to client_state.
6125
6126 2018-06-08 Pedro Alves <palves@redhat.com>
6127
6128 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
6129 common/common-exceptions.o, common/common-utils.o,
6130 common/errors.o, common/print-utils.o and utils.o.
6131 * gdbreplay.c: Include "common-defs.h" instead of the two
6132 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
6133 string.h or alloca.h.
6134 (perror_with_name): Delete.
6135 (remote_open): Use xstrdup instead of strdup.
6136 (main): Rename to ...
6137 (captured_main): ... this.
6138 (main): New.
6139
6140 2018-06-08 Tom Tromey <tom@tromey.com>
6141
6142 * linux-low.c (linux_low_read_btrace): Update.
6143
6144 2018-06-04 Stan Cox <scox@redhat.com>
6145
6146 * server.h (struct client_state): New.
6147 * server.c (cont_thread, general_thread, multi_process)
6148 (report_fork_events, report_vfork_events, report_exec_events)
6149 (report_thread_events, swbreak_feature, hwbreak_feature)
6150 (vCont_supported, disable_randomization, pass_signals)
6151 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
6152 Moved to client_state.
6153 * remote-utils.c (remote_debug, noack_mode)
6154 (transport_is_reliable): Moved to client_state.
6155 * tracepoint.c (current_traceframe): Moved to client_state.
6156
6157 Update all callers.
6158 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
6159 linux-low.c, remote-utils.h, target.c: Use client_state.
6160
6161 2018-05-31 Alan Hayward <alan.hayward@arm.com>
6162
6163 * configure.srv: Add new c/h file.
6164
6165 2018-05-31 Alan Hayward <alan.hayward@arm.com>
6166
6167 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
6168 null VQ.
6169
6170 2018-05-25 Maciej W. Rozycki <macro@mips.com>
6171
6172 * gdb.arch/mips-fpregset-core.exp: New test.
6173 * gdb.arch/mips-fpregset-core.c: New test source.
6174
6175 2018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
6176
6177 PR server/23198
6178 * hostio.c (require_int): Do not report overflow for integers
6179 between 0xfffffff and 0x7fffffff.
6180
6181 2018-05-22 Maciej W. Rozycki <macro@mips.com>
6182
6183 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
6184 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
6185 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
6186 functions.
6187 (the_low_target): Wire them.
6188
6189 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6190
6191 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
6192 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
6193 mode. Call collect_register_by_name with vscr using
6194 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
6195 (ppc_store_vrregset): Add and set vscr_offset variable as in
6196 ppc_fill_vrregset. Call supply_register_by_name with vscr using
6197 vscr_offset.
6198
6199 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6200
6201 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
6202 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
6203 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
6204
6205 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6206
6207 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
6208 (ppc_store_vsxregset): Likewise.
6209 (ppc_fill_vrregset): Likewise.
6210 (ppc_store_vrregset): Likewise.
6211 (ppc_fill_evrregset): Likewise.
6212 (ppc_store_evrregset): Likewise.
6213 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
6214 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
6215 needed.
6216
6217 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6218
6219 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
6220 wordsize of the inferior. Call ppc_linux_target_wordsize.
6221
6222 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6223
6224 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
6225 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
6226 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
6227 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
6228 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
6229 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
6230 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
6231 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
6232 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
6233 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
6234 (tdesc_powerpc_e500l): Remove.
6235 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
6236 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
6237 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
6238 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
6239 linux-ppc-tdesc.h.
6240 (ppc_arch_setup): Remove target description matching code. Fill a
6241 ppc_linux_features struct and call ppc_linux_match_description
6242 with it.
6243
6244 2018-05-22 Maciej W. Rozycki <macro@mips.com>
6245
6246 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
6247 width of the requested register exceeds the width of the
6248 `ptrace' data type.
6249 (mips_cannot_store_register): Likewise.
6250
6251 2018-05-21 Maciej W. Rozycki <macro@mips.com>
6252
6253 * linux-mips-low.c (mips_fetch_register): New function. Update
6254 preceding comment.
6255 (mips_store_gregset): Supply 0 rather than $restart for $zero.
6256 (the_low_target): Wire `mips_fetch_register'.
6257
6258 2018-05-10 Joel Brobecker <brobecker@adacore.com>
6259
6260 * lynx-i386-low.c (LYNXOS_178): New macro.
6261 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
6262 the layout on LynxOS-178.
6263 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
6264 handle floating point registers that are not supported by
6265 LynxOS-178.
6266
6267 2018-05-10 Tom Tromey <tom@tromey.com>
6268
6269 * configure: Rebuild.
6270
6271 2018-05-10 Joel Brobecker <brobecker@adacore.com>
6272
6273 PR server/23158:
6274 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
6275 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
6276 Use it to set the expedite_regs field in the given tdesc.
6277 * x86-tdesc.h: New file.
6278 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
6279 Adjust following the addition of the new expedite_regs parameter
6280 to init_target_desc.
6281 * linux-tic6x-low.c (tic6x_read_description): Likewise.
6282 * linux-x86-tdesc.c: #include "x86-tdesc.h".
6283 (i386_linux_read_description, amd64_linux_read_description):
6284 Adjust following the addition of the new expedite_regs parameter
6285 to init_target_desc.
6286 * lynx-i386-low.c: #include "x86-tdesc.h".
6287 (lynx_i386_arch_setup): Adjust following the addition of the new
6288 expedite_regs parameter to init_target_desc.
6289 * nto-x86-low.c: #include "x86-tdesc.h".
6290 (nto_x86_arch_setup): Adjust following the addition of the new
6291 expedite_regs parameter to init_target_desc.
6292 * win32-i386-low.c: #include "x86-tdesc.h".
6293 (i386_arch_setup): Adjust following the addition of the new
6294 expedite_regs parameter to init_target_desc.
6295
6296 2018-05-10 Joel Brobecker <brobecker@adacore.com>
6297
6298 PR server/23158:
6299 * win32-low.c (win32_create_inferior): Add call to my_wait
6300 setting last_status global.
6301
6302 2018-05-10 Joel Brobecker <brobecker@adacore.com>
6303
6304 PR server/23158:
6305 * win32-low.c (create_process): Only call gdb_tilde_expand if
6306 inferior_cwd is not NULL.
6307
6308 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
6309
6310 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
6311 registers to the cache if their values have changed.
6312 (i387_xsave_to_cache): Provide default values for x87 control
6313 registers when these features are available, but disabled.
6314 * regcache.c (supply_register_by_name_zeroed): New function.
6315 * regcache.h (supply_register_by_name_zeroed): Declare new
6316 function.
6317
6318 2018-05-07 Tom Tromey <tom@tromey.com>
6319
6320 * configure: Rebuild.
6321
6322 2018-05-04 Tom Tromey <tom@tromey.com>
6323
6324 * configure: Rebuild.
6325
6326 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6327 Pedro Alves <palves@redhat.com>
6328
6329 * linux-aarch64-low.c (aarch64_stopped_data_address):
6330 Likewise.
6331
6332 2018-04-27 Tom Tromey <tom@tromey.com>
6333
6334 * configure: Rebuild.
6335
6336 2018-04-23 Tom Tromey <tom@tromey.com>
6337
6338 * configure: Rebuild.
6339
6340 2018-04-19 Simon Marchi <simon.marchi@ericsson.com>
6341
6342 * Makefile.in (depcomp): Add "..".
6343 (all_deps_files): New and use it.
6344
6345 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6346
6347 * configure.srv (aarch64*-*-linux*): Don't include xml.
6348 (i[34567]86-*-cygwin*): Likewise.
6349 (i[34567]86-*-linux*): Likewise.
6350 (i[34567]86-*-lynxos*): Likewise.
6351 (i[34567]86-*-mingw32ce*): Likewise.
6352 (i[34567]86-*-mingw*): Likewise.
6353 (i[34567]86-*-nto*): Likewise.
6354 (tic6x-*-uclinux): Likewise.
6355 (x86_64-*-linux*): Likewise.
6356 (x86_64-*-mingw*): Likewise.
6357 (x86_64-*-cygwin*): Likewise.
6358
6359 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6360
6361 * tdesc.c: Remove xml parameter.
6362
6363 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6364
6365 * server.c (get_features_xml): Remove cast.
6366 * tdesc.c (void target_desc::accept): Fill in function.
6367 (tdesc_get_features_xml): Remove old xml creation.
6368 (print_xml_feature::visit_pre): Add xml vistor.
6369 * tdesc.h (struct target_desc): Make xmltarget mutable.
6370 (tdesc_get_features_xml): Remove declaration.
6371
6372 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6373
6374 * tdesc.c (tdesc_architecture_name): Add new function.
6375 (tdesc_osabi_name): Likewise.
6376 (tdesc_get_features_xml): Use new functions.
6377
6378 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6379
6380 * tdesc.c (tdesc_create_flags): Remove.
6381 (tdesc_add_flag): Likewise.
6382 (tdesc_named_type): Likewise.
6383 (tdesc_create_union): Likewise.
6384 (tdesc_create_struct): Likewise.
6385 (tdesc_create_vector): Likewise.
6386 (tdesc_add_bitfield): Likewise.
6387 (tdesc_add_field): Likewise.
6388 (tdesc_set_struct_size): Likewise.
6389
6390 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6391
6392 * tdesc.c (~target_desc): Remove implictly deleted items.
6393 (init_target_desc): Iterate all features.
6394 (tdesc_get_features_xml): Use vector.
6395 (tdesc_create_feature): Create feature.
6396 * tdesc.h (tdesc_feature) Remove
6397 (target_desc): Add features.
6398
6399 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6400
6401 * Makefile.in: Add common/tdesc.c
6402 * tdesc.c (init_target_desc): init all reg_defs from register
6403 vector.
6404 (tdesc_create_reg): Create tdesc_reg.
6405 * tdesc.h (tdesc_feature): Add register vector.
6406
6407 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
6408
6409 * tdesc.h (struct target_desc) <features>: Change type to
6410 std::vector<std::string>.
6411 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
6412 changes.
6413 (tdesc_get_features_xml): Likewise.
6414 (tdesc_create_feature): Likewise.
6415
6416 2018-03-26 Alan Hayward <alan.hayward@arm.com>
6417
6418 * regcache.c (find_register_by_number): Return a ref.
6419 (find_regno): Use references.
6420 (register_size): Likewise.
6421 (register_data): Likewise.
6422 * tdesc.c (target_desc::~target_desc): Remove free calls.
6423 (target_desc::operator==): Use std::vector compare.
6424 (init_target_desc): Use reference.
6425 (tdesc_create_reg): Use reg constructors.
6426 * tdesc.h (struct target_desc): Replace pointer with object.
6427
6428 2018-03-23 Alan Hayward <alan.hayward@arm.com>
6429
6430 * regcache.c (find_register_by_number): Make static.
6431 (find_regno): Use find_register_by_number
6432 * regcache.h (struct reg): Remove declaration.
6433
6434 2018-03-23 Alan Hayward <alan.hayward@arm.com>
6435
6436 * tdesc.c (target_desc::~target_desc): Move to here.
6437 (target_desc::operator==): Likewise.
6438 * tdesc.h (target_desc::~target_desc): Move from here.
6439 (target_desc::operator==): Likewise.
6440
6441 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
6442
6443 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
6444
6445 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6446
6447 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
6448 S390_TDESC_GS.
6449 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
6450 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
6451 and init_registers_s390_gs_linux64.
6452
6453 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6454
6455 * linux-s390-low.c (s390_fill_gs): Remove function.
6456 (s390_fill_gsbc): Remove function.
6457 (s390_regsets): Set fill functions for the guarded storage regsets
6458 to NULL.
6459
6460 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6461
6462 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
6463 the word size. Add comment.
6464 (s390_get_wordsize): New function.
6465 (s390_arch_setup): No longer select a temporary tdesc to fetch the
6466 pswm with it. Instead, use s390_get_wordsize to determine the
6467 word size first and derive the correct tdesc from that directly.
6468
6469 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
6470
6471 * Makefile.in: Include silent-rules.mk.
6472 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
6473 (COMPILE): Add ECHO_CXX.
6474 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
6475 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
6476 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
6477 (version-generated.c): Add ECHO_GEN.
6478 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
6479 (IPAGENT_COMPILE): Add ECHO_CXX.
6480 (%-generated.c): Add ECHO_REGDAT.
6481
6482 2018-03-14 Tom Tromey <tom@tromey.com>
6483
6484 PR cli/14977:
6485 * ax.c (ax_printf): Special case for NULL.
6486
6487 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
6488
6489 * linux-low.c (linux_qxfer_libraries_svr4): Use
6490 xml_escape_text_append.
6491
6492 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
6493
6494 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
6495
6496 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
6497
6498 * server.c (handle_general_set): Remove unnecessary xstrdup.
6499
6500 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
6501
6502 * server.c (parse_debug_format_options): Adjust to
6503 delim_string_to_char_ptr_vec changes.
6504 * thread-db.c (thread_db_load_search): Adjust to
6505 dirnames_to_char_ptr_vec changes.
6506
6507 2018-03-01 Markus Metzger <markus.t.metzger@intel.com>
6508
6509 * target.h (target_enable_btrace, target_disable_btrace)
6510 (target_read_btrace, target_read_btrace_conf): Turn macro into
6511 inline function. Throw error if target method is not defined.
6512 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
6513 check for btrace target method. Be prepared to handle exceptions
6514 from btrace target methods.
6515
6516 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6517
6518 * server.c (captured_main): Change order of error message printed
6519 when the current working directory cannot be found.
6520
6521 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6522
6523 * server.c: Include "filenames.h" and "pathstuff.h".
6524 (program_name): Delete variable.
6525 (program_path): New anonymous class.
6526 (get_exec_wrapper): Use "program_path" instead of
6527 "program_name".
6528 (handle_v_run): Likewise.
6529 (captured_main): Likewise.
6530 (process_serial_event): Likewise.
6531
6532 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6533
6534 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
6535 (OBJS): Add "pathstuff.o".
6536 * server.c (current_directory): New global variable.
6537 (captured_main): Initialize "current_directory".
6538
6539 2018-02-26 Alan Hayward <alan.hayward@arm.com>
6540
6541 * tdesc.c: Use common/tdesc.h.
6542 * tdesc.h: Likewise.
6543
6544 2018-02-20 Alan Hayward <alan.hayward@arm.com>
6545 Simon Marchi <simon.marchi@ericsson.com>
6546
6547 * Makefile.in: Switch order of make rules.
6548
6549 2018-02-19 Alan Hayward <alan.hayward@arm.com>
6550
6551 * Makefile.in: Add common directory in build.
6552 * configure.ac: Add common reference.
6553 * configure: Regenerate.
6554
6555 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6556
6557 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
6558 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
6559 * spu-low.c (spu_target_ops): Likewise.
6560 * win32-low.c (win32_target_ops): Likewise.
6561 * server.c (supported_btrace_packets): Report packets unconditionally.
6562 * target.h (target_ops) <supports_btrace>: Remove.
6563 (target_supports_btrace): Remove.
6564
6565 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6566
6567 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
6568 (handle_btrace_disable): Change return type to void. Use exceptions
6569 to report errors.
6570 (handle_btrace_general_set): Catch exception and copy message to
6571 return message.
6572
6573 2018-02-08 Tom Tromey <tom@tromey.com>
6574
6575 * linux-low.c (install_software_single_step_breakpoints): Use
6576 make_scoped_restore.
6577 * inferiors.c (make_cleanup_restore_current_thread): Remove.
6578 (do_restore_current_thread_cleanup): Remove.
6579 * gdbthread.h (make_cleanup_restore_current_thread): Don't
6580 declare.
6581
6582 2018-02-08 Tom Tromey <tom@tromey.com>
6583
6584 * mem-break.c (set_raw_breakpoint_at): Use
6585 gdb::unique_xmalloc_ptr.
6586
6587 2018-01-30 Pedro Alves <palves@redhat.com>
6588
6589 PR gdb/13211
6590 * target.c (target_terminal::terminal_state): Rename to ...
6591 (target_terminal::m_terminal_state): ... this.
6592
6593 2018-01-19 James Clarke <jrtc27@jrtc27.com>
6594
6595 * linux-low.c (handle_extended_wait): Surround call to
6596 thread_db_notice_clone with #ifdef USE_THREAD_DB.
6597
6598 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
6599
6600 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
6601 linux_ptrace_attach_fail_reason_string now returning an
6602 std::string.
6603 (linux_attach): Likewise.
6604 * thread-db.c (attach_thread): Likewise.
6605
6606 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
6607
6608 PR gdb/21559
6609 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
6610 checking for fs_base/gs_base fields in struct user_regs_struct.
6611 * configure: Regenerate.
6612
6613 2018-01-16 Yao Qi <yao.qi@linaro.org>
6614
6615 PR gdb/18749
6616 * linux-low.c (fetch_register): Call supply_register instead of
6617 error.
6618
6619 2018-01-08 Yao Qi <yao.qi@linaro.org>
6620 Simon Marchi <simon.marchi@ericsson.com>
6621
6622 * Makefile.in (OBS): Remove selftest.o.
6623 * configure.ac: Set srv_selftest_objs if $development is true.
6624 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
6625 * configure: Re-generated.
6626 * server.c (captured_main): Wrap variable selftest_filter with
6627 GDB_SELF_TEST.
6628
6629 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
6630
6631 * server.c (parse_debug_format_options): Return std::string.
6632 (handle_monitor_command, captured_main): Adjust.
6633
6634 2018-01-05 Pedro Alves <palves@redhat.com>
6635
6636 PR gdb/18653
6637 * server.c (captured_main): Pass quiet=false to
6638 save_original_signals_state.
6639
6640 2018-01-01 Joel Brobecker <brobecker@adacore.com>
6641
6642 * gdbreplay.c (gdbreplay_version): Update copyright year in
6643 version message.
6644 * server.c (gdbserver_version): Likewise.
6645
6646 2017-12-08 Tom Tromey <tom@tromey.com>
6647
6648 * ax.c (ax_printf): Update.
6649
6650 2017-12-07 Yao Qi <yao.qi@linaro.org>
6651
6652 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
6653 aarch64_linux_read_description.
6654 * linux-amd64-ipa.c (idx2mask): New array.
6655 (get_ipa_tdesc): Move idx2mask out.
6656 (initialize_low_tracepoint): Initialize target descriptions.
6657 * linux-i386-ipa.c (idx2mask): New array.
6658 (get_ipa_tdesc): Move idx2mask out.
6659 (initialize_low_tracepoint): Initialize target descriptions.
6660
6661 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
6662
6663 * tdesc.c (struct tdesc_type): Change return type.
6664 (tdesc_add_flag): Change parameter type.
6665 (tdesc_add_bitfield): Likewise.
6666 (tdesc_add_field): Likewise.
6667 (tdesc_set_struct_size): Likewise.
6668
6669 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
6670
6671 * regcache.c (registers_to_string): Remove unused variable.
6672
6673 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6674
6675 * inferiors.c (for_each_inferior_with_data): Remove.
6676 * inferiors.h (for_each_inferior_with_data): Remove.
6677 * server.c (handle_qxfer_threads_worker): Change parameter type.
6678 (handle_qxfer_threads_proper): Use for_each_thread.
6679
6680 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6681
6682 * inferiors.c (for_each_inferior): Remove.
6683 (clear_inferiors): Use for_each_thread.
6684 * inferiors.h (for_each_inferior): Remove.
6685 * linux-low.c (linux_wait_for_event_filtered): Use
6686 for_each_thread.
6687 (linux_stabilize_threads): Likewise.
6688 * regcache.c (regcache_release): Likewise.
6689 * server.c (gdb_wants_all_threads_stopped): Likewise.
6690 (clear_pending_status_callback): Remove.
6691 (handle_status): Use for_each_thread.
6692 (captured_main): Likewise.
6693 * win32-low.c (child_init_thread_list): Likewise.
6694 (win32_clear_inferiors): Likewise.
6695 (fake_breakpoint_event): Likewise.
6696
6697 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6698
6699 * inferiors.h (find_inferior): Remove.
6700 * inferiors.c (find_inferior): Remove.
6701
6702 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6703
6704 * linux-low.c (resume_status_pending_p): Update comment.
6705 (need_step_over_p): Update comment.
6706
6707 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6708
6709 * linux-low.c (proceed_one_lwp): Return void, change parameter
6710 type.
6711 (unsuspend_and_proceed_one_lwp): Likewise.
6712 (proceed_all_lwps): Use for_each_thread.
6713 (unstop_all_lwps): Likewise.
6714
6715 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6716
6717 * linux-low.c (linux_resume_one_thread): Return void, take
6718 parameter directly.
6719 (linux_resume): Use for_each_thread.
6720
6721 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6722
6723 * linux-low.c (send_sigstop_callback): Return void, change
6724 parameter type. Rename to...
6725 (send_sigstop): ... this.
6726 (suspend_and_send_sigstop_callback): Return void, change parameter
6727 type. Rename to...
6728 (suspend_and_send_sigstop): ... this.
6729 (stop_all_lwps): Use for_each_thread.
6730
6731 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6732
6733 * linux-low.c (lwp_running): Return bool, remove unused
6734 argument.
6735 (linux_stabilize_threads): Use find_thread.
6736
6737 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6738
6739 * linux-low.c (select_singlestep_lwp_callback): Remove.
6740 (count_events_callback): Remove.
6741 (select_event_lwp_callback): Remove.
6742 (select_event_lwp): Use find_thread/for_each_thread.
6743
6744 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6745
6746 * linux-low.c (not_stopped_callback): Return bool, take filter
6747 argument directly.
6748 (linux_wait_for_event_filtered): Use find_thread.
6749 (linux_wait_1): Likewise.
6750
6751 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6752
6753 * linux-low.c (same_lwp): Remove.
6754 (find_lwp_pid): Use find_thread.
6755
6756 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6757
6758 * linux-low.c (delete_lwp_callback): Remove.
6759 (linux_mourn): Use for_each_thread.
6760
6761 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6762
6763 * linux-low.c (linux_detach_lwp_callback): Return void, remove
6764 args parameter, don't check for pid.
6765 (linux_detach): Use for_each_thread.
6766
6767 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6768
6769 * linux-low.c (struct counter): Remove.
6770 (second_thread_of_pid_p): Remove.
6771 (last_thread_of_process_p): Use find_thread.
6772
6773 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6774
6775 * inferiors.c (find_inferior_in_random): Remove.
6776 * inferiors.h (find_inferior_in_random): Remove.
6777 * linux-low.c (status_pending_p_callback): Return bool, accept
6778 parameter ptid directly.
6779 (linux_wait_for_event_filtered): Use find_thread_in_random.
6780 (linux_wait_1): Likewise.
6781
6782 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6783
6784 * inferiors.c (find_inferior_id): Remove.
6785 (find_thread_ptid): Move implemention from find_inferior_id to
6786 here.
6787 * inferiors.h (find_inferior_id): Remove.
6788 * server.c (handle_status): Use find_thread_ptid.
6789 (process_serial_event): Likewise.
6790 * thread-db.c (find_one_thread): Likewise.
6791 (thread_db_thread_handle): Likewise.
6792 * win32-low.c (thread_rec): Likewise.
6793 (child_delete_thread): Likewise.
6794 (win32_thread_alive): Likewise.
6795 (get_child_debug_event): Likewise.
6796
6797 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6798
6799 * linux-mips-low.c (update_watch_registers_callback): Return
6800 void, remove pid_p parameter, don't check for pid.
6801 (mips_insert_point, mips_remove_point): Use for_each_thread.
6802
6803 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6804
6805 * lynx.low (lynx_delete_thread_callback): Remove.
6806 (lynx_mourn): Use for_each_thread.
6807
6808 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6809
6810 * regcache.c (regcache_invalidate_one): Remove.
6811 (regcache_invalidate_pid): use for_each_thread.
6812
6813 2017-11-26 Tom Tromey <tom@tromey.com>
6814
6815 * linux-low.c (linux_create_inferior): Update.
6816
6817 2017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
6818
6819 * spu-low.c (spu_create_inferior): Fix typo in argument name.
6820
6821 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6822
6823 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
6824 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6825 * linux-aarch64-tdesc-selftest.c: New file.
6826 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6827
6828 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6829
6830 * configure.srv: Add new file.
6831 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6832 * linux-aarch64-tdesc-selftest.c: New file.
6833 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6834
6835 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6836
6837 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
6838 * linux-aarch64-low.c (initialize_low_arch): Remove init.
6839 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
6840
6841 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6842
6843 * configure.srv: Add new files.
6844 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
6845 aarch64_linux_read_description.
6846 * linux-aarch64-low.c (aarch64_linux_read_description):
6847 Merge with aarch64_arch_setup.
6848 (aarch64_arch_setup): Call aarch64_linux_read_description.
6849 * linux-aarch64-tdesc.c: New file.
6850 * linux-aarch64-tdesc.h: New file.
6851
6852 2017-11-24 Yao Qi <yao.qi@linaro.org>
6853
6854 * configure.srv: Set $srv_regobj for tic6x-linux.
6855 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
6856 (tic6x_read_description): Move some code to tic6x_arch_setup.
6857 (tic6x_tdesc_test): New function.
6858 (initialize_low_arch): Call selftests::register_test.
6859
6860 2017-11-22 Yao Qi <yao.qi@linaro.org>
6861
6862 * remote-utils.c (prepare_resume_reply): Use memcpy.
6863
6864 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6865
6866 * linux-low.c (kill_one_lwp_callback): Return void, take
6867 argument directly, don't filter on pid.
6868 (linux_kill): Use for_each_thread.
6869
6870 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6871
6872 * linux-low.c (need_step_over_p): Return bool, remove dummy
6873 argument.
6874 (linux_resume, proceed_all_lwps): Use find_thread.
6875
6876 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6877
6878 * linux-low.c (resume_status_pending_p): Return bool, remove
6879 flag_p argument.
6880 (linux_resume): Use find_thread.
6881
6882 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6883
6884 * linux-low.c (struct thread_resume_array): Remove.
6885 (linux_set_resume_request): Return void, take arguments
6886 directly.
6887 (linux_resume): Use for_each_thread.
6888
6889 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6890
6891 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
6892 return bool, remove data argument.
6893 (linux_stabilize_threads): Use find_thread.
6894
6895 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6896
6897 * linux-low.c (unsuspend_one_lwp): Remove.
6898 (unsuspend_all_lwps): Use for_each_thread, inline code from
6899 unsuspend_one_lwp.
6900
6901 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6902
6903 * gdbthread.h (find_thread): Add overload with ptid_t filter.
6904 * linux-low.c (struct iterate_over_lwps_args): Remove.
6905 (iterate_over_lwps_filter): Remove.
6906 (iterate_over_lwps): Use find_thread.
6907
6908 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6909
6910 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
6911 (linux_handle_new_gdb_connection): Use for_each_thread, inline
6912 code from reset_lwp_ptrace_options_callback.
6913
6914 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6915
6916 * linux-arm-low.c (struct update_registers_data): Remove.
6917 (update_registers_callback): Return void, take arguments
6918 directly, don't check thread's pid.
6919 (arm_insert_point, arm_remove_point): Use for_each_thread.
6920
6921 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6922
6923 * win32-low.c (continue_one_thread): Return void, take argument
6924 directly.
6925 (child_continue): Use for_each_thread.
6926
6927 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6928
6929 * win32-i386-low.c (update_debug_registers_callback): Rename
6930 to ...
6931 (update_debug_registers): ... this, return void, remove pid_p arg.
6932 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
6933
6934 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
6935
6936 * inferiors.h (struct process_info): Add constructor, initialize
6937 fields..
6938 <syscalls_to_catch>: Change type to std::vector<int>.
6939 * inferiors.c (add_process): Allocate process_info with new.
6940 (remove_process): Free process_info with delete.
6941 * linux-low.c (handle_extended_wait): Adjust.
6942 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
6943 * server.c (handle_general_set): Adjust.
6944
6945 2017-11-16 Pedro Alves <palves@redhat.com>
6946
6947 * remote-utils.c (remote_close): Block SIGIO signals instead of
6948 uninstalling the SIGIO handler.
6949
6950 2017-11-16 Alan Hayward <alan.hayward@arm.com>
6951
6952 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
6953
6954 2017-11-16 Yao Qi <yao.qi@linaro.org>
6955
6956 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
6957 (tic6x_store_gregset): Likewise.
6958 (tic6x_usrregs_info): Move it up.
6959
6960 2017-11-15 Alan Hayward <alan.hayward@arm.com>
6961
6962 * Makefile.in: Update arch rules.
6963 * configure.srv: Explicitly mark arch/ files.
6964
6965 2017-11-13 Andreas Schwab <schwab@suse.de>
6966
6967 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
6968 function.
6969 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6970
6971 2017-11-06 Pedro Alves <palves@redhat.com>
6972
6973 * config.in, configure: Regenerate.
6974
6975 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6976
6977 * target.c (struct thread_search): Remove.
6978 (thread_search_callback): Remove.
6979 (prepare_to_access_memory): Use for_each_thread instead of
6980 find_inferior. Inline code from thread_search_callback.
6981
6982 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6983
6984 * server.c (struct visit_actioned_threads_data): Remove.
6985 (visit_actioned_threads): Change prototype to take arguments
6986 directly.
6987 (resume): Use find_thread instead of find_inferior.
6988
6989 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6990
6991 * server.c (queue_stop_reply_callback): Change prototype, return
6992 void.
6993 (find_status_pending_thread_callback): Remove.
6994 (handle_status): Replace find_inferior with find_thread and
6995 for_each_thread.
6996
6997 2017-10-25 Alan Hayward <alan.hayward@arm.com>
6998
6999 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
7000 with REGNO.
7001 (aarch64_store_gregset): Likewise.
7002 (aarch64_fill_fpregset): Likewise.
7003 (aarch64_store_fpregset): Likewise.
7004
7005 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
7006
7007 * gdbthread.h (find_thread, for_each_thread): New functions.
7008 * inferiors.c (thread_of_pid): Remove.
7009 (find_any_thread_of_pid): Use find_thread.
7010 * linux-low.c (num_lwps): Use for_each_thread.
7011
7012 2017-10-17 Yao Qi <yao.qi@linaro.org>
7013
7014 * Makefile.in: Remove one rule.
7015 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
7016
7017 2017-10-17 Yao Qi <yao.qi@linaro.org>
7018
7019 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
7020 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
7021
7022 2017-10-17 Yao Qi <yao.qi@linaro.org>
7023
7024 * configure.srv: Rename arm.o with arch/arm.o.
7025
7026 2017-10-17 Yao Qi <yao.qi@linaro.org>
7027
7028 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
7029 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
7030 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
7031 (arch-i386.o, arch-amd64.o): Remove rules.
7032 (arch/%.o): New rule.
7033 Update POSTCOMPILE and COMPILE.pre.
7034 * configure.ac: Invoke AC_CONFIG_COMMANDS.
7035 * configure: Re-generated.
7036 * configure.srv: Replace arch-i386.o with arch/i386.o.
7037 Replace arch-amd64.o with arch/amd64.o.
7038
7039 2017-10-16 Yao Qi <yao.qi@linaro.org>
7040
7041 * configure: Regenerated.
7042
7043 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
7044
7045 * inferiors.h: (struct inferior_list): Remove.
7046 (struct inferior_list_entry); Remove.
7047 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
7048 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
7049 get_first_inferior): Remove.
7050 (for_each_inferior, for_each_inferior_with_data, find_inferior,
7051 find_inferior_id, find_inferior_in_random): Change signature.
7052 * inferiors.c (all_threads): Change type to
7053 std::list<thread_info *>.
7054 (get_thread): Remove macro.
7055 (find_inferior, find_inferior_id): Change signature, implement
7056 using find_thread.
7057 (find_inferior_in_random): Change signature, implement using
7058 find_thread_in_random.
7059 (for_each_inferior, for_each_inferior_with_data): Change
7060 signature, implement using for_each_thread.
7061 (add_inferior_to_list, remove_inferior): Remove.
7062 (add_thread, get_first_thread, thread_of_pid,
7063 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
7064 (get_first_inferior, one_inferior_p, clear_inferior_list):
7065 Remove.
7066 (clear_inferiors, get_thread_process): Update.
7067 * gdbthread.h: Include <list>.
7068 (struct thread_info) <entry>: Remove field.
7069 <id>: New field.
7070 (all_threads): Change type to std::list<thread_info *>.
7071 (get_first_inferior): Add doc.
7072 (find_thread, for_each_thread, find_thread_in_random): New
7073 functions.
7074 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
7075 * linux-arm-low.c (update_registers_callback): Update.
7076 * linux-low.c (second_thread_of_pid_p): Update.
7077 (kill_one_lwp_callback, linux_detach_lwp_callback,
7078 delete_lwp_callback, status_pending_p_callback, same_lwp,
7079 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
7080 iterate_over_lwps, not_stopped_callback,
7081 resume_stopped_resumed_lwps, count_events_callback,
7082 select_singlestep_lwp_callback, select_event_lwp_callback,
7083 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
7084 suspend_and_send_sigstop_callback, wait_for_sigstop,
7085 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
7086 lwp_running, linux_set_resume_request, resume_status_pending_p,
7087 need_step_over_p, start_step_over, linux_resume_one_thread,
7088 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
7089 reset_lwp_ptrace_options_callback): Update.
7090 * linux-mips-low.c (update_watch_registers_callback): Update.
7091 * regcache.c (regcache_invalidate_one, regcache_invalidate):
7092 Update.
7093 (free_register_cache_thread_one): Remove.
7094 (regcache_release): Update.
7095 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
7096 handle_qxfer_threads_worker): Update.
7097 (handle_query): Update, use list iterator.
7098 (visit_actioned_threads, handle_pending_status,
7099 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
7100 clear_pending_status_callback, set_pending_status_callback,
7101 find_status_pending_thread_callback, handle_status,
7102 process_serial_event): Update.
7103 * target.c (thread_search_callback): Update.
7104 * thread-db.c (thread_db_get_tls_address): Update.
7105 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
7106 Update.
7107 * win32-i386-low.c (update_debug_registers_callback): Update.
7108 * win32-low.c (delete_thread_info, child_delete_thread,
7109 continue_one_thread, suspend_one_thread,
7110 get_child_debug_event): Adjust.
7111
7112 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
7113
7114 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
7115 * inferiors.h: Include <list>.
7116 (struct process_info) <entry>: Remove field.
7117 <pid>: New field.
7118 (pid_of): Change macro to function.
7119 (ptid_of, lwpid_of): Remove macro.
7120 (all_processes): Change type to std::list<process_info *>.
7121 (ALL_PROCESSES): Remove macro.
7122 (for_each_process, find_process): New function.
7123 * inferiors.c (all_processes): Change type to
7124 std::list<process_info *>.
7125 (find_thread_process): Adjust.
7126 (add_process): Likewise.
7127 (remove_process): Likewise.
7128 (find_process_pid): Likewise.
7129 (get_first_process): Likewise.
7130 (started_inferior_callback): Remove.
7131 (have_started_inferiors_p): Adjust.
7132 (attached_inferior_callback): Remove.
7133 (have_attached_inferiors_p): Adjust.
7134 * linux-low.c (check_zombie_leaders): Likewise.
7135 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
7136 (x86_linux_update_xmltarget): Adjust.
7137 * server.c (handle_query): Likewise.
7138 (gdb_reattached_process): Remove.
7139 (handle_status): Adjust.
7140 (kill_inferior_callback): Likewise.
7141 (detach_or_kill_inferior): Remove.
7142 (print_started_pid): Likewise.
7143 (print_attached_pid): Likewise.
7144 (detach_or_kill_for_exit): Update.
7145 (process_serial_event): Likewise.
7146 * linux-arm-low.c (arm_new_fork): Likewise.
7147
7148 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
7149
7150 * dll.h: Include <list>.
7151 (struct dll_info): Add constructor.
7152 <entry>: Remove field.
7153 (all_dlls): Change type to std::list<dll_info>.
7154 * dll.c: Include <algorithm>.
7155 (get_dll): Remove macro.
7156 (all_dlls): Change type to std::list<dll_info *>.
7157 (free_one_dll): Remove.
7158 (match_dll): Likewise.
7159 (loaded_dll): Adjust.
7160 (unloaded_dll): Adjust to all_dlls type change, use
7161 std::find_if. Inline code from match_dll.
7162 (clear_dlls): Adjust to all_dlls type change.
7163 * server.c (emit_dll_description): Remove.
7164 (handle_qxfer_libraries): Adjust to all_dlls type change,
7165 integrate emit_dll_description's functionality.
7166
7167 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
7168
7169 * linux-low.h (struct linux_target_ops) <delete_process>: New
7170 field.
7171 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
7172 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
7173 (struct linux_target_ops): Add delete_process callback.
7174 * linux-arm-low.c (arm_delete_process): New.
7175 (struct linux_target_ops): Add delete_process callback.
7176 * linux-bfin-low.c (struct linux_target_ops): Likewise.
7177 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
7178 * linux-m32r-low.c (struct linux_target_ops): Likewise.
7179 * linux-mips-low.c (mips_linux_delete_process): New.
7180 (struct linux_target_ops): Add delete_process callback.
7181 * linux-ppc-low.c (struct linux_target_ops): Likewise.
7182 * linux-s390-low.c (struct linux_target_ops): Likewise.
7183 * linux-sh-low.c (struct linux_target_ops): Likewise.
7184 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
7185 * linux-tile-low.c (struct linux_target_ops): Likewise.
7186 * linux-x86-low.c (x86_linux_delete_process): New.
7187 (struct linux_target_ops): Add delete_process callback.
7188 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
7189
7190 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
7191
7192 * linux-aarch64-low.c (the_low_target): Add thread delete
7193 callback.
7194 * linux-arm-low.c (arm_delete_thread): New function.
7195 (the_low_target): Add thread delete callback.
7196 * linux-bfin-low.c (the_low_target): Likewise.
7197 * linux-crisv32-low.c (the_low_target): Likewise.
7198 * linux-low.c (delete_lwp): Invoke delete_thread callback if
7199 set.
7200 * linux-low.h (struct linux_target_ops) <delete_thread>: New
7201 field.
7202 * linux-m32r-low.c (the_low_target): Add thread delete callback.
7203 * linux-mips-low.c (mips_linux_delete_thread): New function.
7204 (the_low_target): Add thread delete callback.
7205 * linux-ppc-low.c (the_low_target): Likewise.
7206 * linux-s390-low.c (the_low_target): Likewise.
7207 * linux-sh-low.c (the_low_target): Likewise.
7208 * linux-tic6x-low.c (the_low_target): Likewise.
7209 * linux-tile-low.c (the_low_target): Likewise.
7210 * linux-x86-low.c (the_low_target): Likewise.
7211 * linux-xtensa-low.c (the_low_target): Likewise.
7212
7213 2017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
7214
7215 * win32-low.c: Include "common-inferior.h".
7216
7217 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
7218
7219 * inferiors.c (set_inferior_cwd): New function.
7220 * server.c (handle_general_set): Handle QSetWorkingDir packet.
7221 (handle_query): Inform that QSetWorkingDir is supported.
7222 * win32-low.c (create_process): Pass the inferior's cwd to
7223 CreateProcess.
7224
7225 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
7226
7227 * inferiors.c (current_inferior_cwd): New global variable.
7228 (get_inferior_cwd): New function.
7229 * inferiors.h (struct process_info) <cwd>: New field.
7230
7231 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
7232
7233 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
7234 (OBS): Add gdb_tilde_expand.o.
7235
7236 2017-10-02 Simon Marchi <simon.marchi@ericsson.com>
7237
7238 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
7239 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
7240
7241 2017-09-29 Pedro Alves <palves@redhat.com>
7242
7243 * ax.c (gdb_parse_agent_expr): Constify.
7244 * ax.h (gdb_parse_agent_expr): Constify.
7245 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
7246 Constify.
7247 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
7248 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
7249 * remote-utils.h (read_ptid): Constify.
7250 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
7251 (process_point_options, process_serial_event): Constify.
7252 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
7253 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
7254 (cmd_qtbuffer): Constify.
7255
7256 2017-09-29 Pedro Alves <palves@redhat.com>
7257
7258 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
7259 fails.
7260
7261 2017-09-29 Pedro Alves <palves@redhat.com>
7262
7263 * linux-low.c (handle_extended_wait): Pass parent thread instead
7264 of process to thread_db_notice_clone.
7265 * linux-low.h (thread_db_notice_clone): Replace parent process
7266 parameter with parent thread parameter.
7267 * thread-db.c (find_one_thread): Add comment.
7268 (thread_db_notice_clone): Replace parent process parameter with
7269 parent thread parameter. Temporarily switch to the parent thread.
7270
7271 2017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
7272
7273 * gdbthread.h: Include "common-gdbthread.h".
7274 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
7275 "if" when validating the ptid.
7276 * remote-utils.c: Include "gdbthread.h".
7277 (prepare_resume_reply): Use "switch_to_thread".
7278 * target.c (done_accessing_memory): Likewise.
7279
7280 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
7281
7282 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
7283 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
7284 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
7285 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
7286 s390x-gs-linux64-ipa.o to ipa_obj.
7287 * linux-s390-low.c (HWCAP_S390_GS): New define.
7288 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
7289 New functions.
7290 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
7291 (s390_arch_setup): Check for guarded-storage support and choose
7292 appropriate tdesc.
7293 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
7294 init_registers_s390x_gs_linux64.
7295 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
7296 enum value.
7297 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
7298 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
7299
7300 2017-09-22 Simon Marchi <simon.marchi@ericsson.com>
7301
7302 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
7303
7304 2017-09-21 Kevin Buettner <kevinb@redhat.com>
7305
7306 * linux-low.h (struct lwp_info): Add new field, thread_handle.
7307 (thread_db_thread_handle): Declare.
7308 * linux-low.c (linux_target_ops): Initialize thread_handle.
7309 * server.c (handle_qxfer_threads_worker): Add support for
7310 "handle" attribute.
7311 * target.h (struct target_ops): Add new function pointer,
7312 thread_handle.
7313 (target_thread_handle): Define.
7314 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
7315 field in lwp.
7316 (thread_db_thread_handle): New function.
7317
7318 2017-09-21 Kevin Buettner <kevinb@redhat.com>
7319
7320 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
7321 * linux-low.h (thread_db_notice_clone): Declare.
7322 * thread-db.c (thread_db_notice_clone): New function.
7323
7324 2017-09-21 Pedro Alves <palves@redhat.com>
7325
7326 * server.c (gdb_read_memory, handle_status, process_serial_event)
7327 (handle_serial_event, handle_target_event): Adjust to
7328 set_desired_thread prototype change.
7329 * target.c (set_desired_thread): Remove 'use_general' parameter
7330 and adjust.
7331 * target.h (set_desired_thread): Remove 'use_general' parameter.
7332
7333 2017-09-20 Tom Tromey <tom@tromey.com>
7334
7335 * target.c (target_terminal::terminal_state): Define.
7336 (target_terminal::init): Rename from target_terminal_init.
7337 (target_terminal::inferior): Rename from
7338 target_terminal_inferior.
7339 (target_terminal::ours): Rename from target_terminal_ours.
7340 (target_terminal::ours_for_output, target_terminal::info): New.
7341
7342 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7343
7344 * server.c (accumulate_file_name_length): Remove.
7345 (emit_dll_description): Adjust to std::string change.
7346 (handle_qxfer_libraries): Use std::string to hold document.
7347
7348 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7349
7350 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
7351 return type of xml_escape_text.
7352 * server.c (emit_dll_description): Likewise.
7353
7354 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7355
7356 * server.c (captured_main): Accept argument for --selftest.
7357 Update run_tests call.
7358 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
7359 when registering selftests.
7360
7361 2017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
7362
7363 * regcache.c (get_thread_regcache): Update code to use "std::vector"
7364 instead of "VEC" for "target_desc.reg_defs".
7365 (regcache_cpy): Likewise.
7366 (registers_to_string): Likewise.
7367 (registers_from_string): Likewise.
7368 (find_regno): Likewise.
7369 (supply_regblock): Likewise.
7370 (regcache_raw_read_unsigned): Likewise.
7371 * tdesc.c (init_target_desc): Likewise.
7372 (tdesc_create_reg): Likewise.
7373 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
7374 (struct target_desc) <reg_defs>: Convert to "std::vector".
7375 (target_desc): Do not initialize "reg_defs".
7376 (~target_desc): Update code to use "std::vector" instead of "VEC"
7377 for "target_desc.reg_defs".
7378 (operator==): Likewise.
7379
7380 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7381
7382 * inferiors.h (thread_to_gdb_id): Remove.
7383 * inferiors.c (thread_to_gdb_id): Remove.
7384 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
7385 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
7386 lynx_store_registers, lynx_read_memory, lynx_write_memory):
7387 Likewise.
7388 * nto-low.c (nto_fetch_registers, nto_store_registers,
7389 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
7390
7391 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7392
7393 * inferiors.h (gdb_id_to_thread_id): Remove.
7394 * inferiors.c (gdb_id_to_thread_id): Remove.
7395 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
7396 removal. Move pid declaration closer to where it's used.
7397
7398 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7399
7400 * server.c (handle_detach): New function.
7401 (process_serial_event): Move code out, call handle_detach.
7402
7403 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7404
7405 * server.c (require_running): Rename to ...
7406 (require_running_or_return): ... this ...
7407 (require_running_or_break): ... and this.
7408 (handle_query, process_serial_event): Adjust.
7409
7410 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7411
7412 * linux-low.c (linux_set_resume_request): Remove unused
7413 variables.
7414
7415 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7416
7417 * server.c (first_thread_of): Remove.
7418 (process_serial_event): Replace usage of first_thread_of with
7419 find_any_thread_of_pid.
7420 * tracepoint.c (same_process_p): Remove.
7421 (gdb_agent_about_to_close): Replace usage of same_process_p with
7422 find_any_thread_of_pid.
7423 * linux-x86-low.c (same_process_callback): Remove.
7424 (x86_arch_setup_process_callback): Replace usage of
7425 same_process_callback with find_any_thread_of_pid.
7426 * thread-db.c (any_thread_of): Remove.
7427 (switch_to_process): Replace usage of any_thread_of with
7428 find_any_thread_of_pid.
7429 * inferiors.c (thread_pid_matches_callback): Remove.
7430 (find_thread_process): Adjust to use find_any_thread_of_pid.
7431
7432 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
7433
7434 * regcache.c (get_thread_regcache): Guard calls to "memset"
7435 with "!VEC_empty".
7436
7437 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
7438
7439 * linux-low.c (handle_extended_wait): Use
7440 "allocate_target_description" instead of "XNEW".
7441 * linux-x86-low.c (initialize_low_arch): Likewise.
7442
7443 2017-09-05 Yao Qi <yao.qi@linaro.org>
7444
7445 * configure.srv (srv_i386_regobj): Remove.
7446 (srv_amd64_regobj): Remove.
7447 (srv_regobj): Set it to "" for x86 non-linux targets.
7448 * linux-x86-tdesc.c (i386_linux_read_description):
7449 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
7450 (init_registers_i386): Remove the declaration.
7451 (tdesc_i386): Remove the declaration.
7452 (lynx_i386_arch_setup): Call i386_create_target_description.
7453 * nto-x86-low.c: Likewise.
7454 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
7455 [!__x86_64__]: include arch/i386.h.
7456 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
7457
7458 2017-09-05 Yao Qi <yao.qi@linaro.org>
7459
7460 * configure.srv (srv_amd64_linux_xmlfiles): Remove
7461 i386/amd64-XXX-linux from it.
7462
7463 2017-09-05 Yao Qi <yao.qi@linaro.org>
7464
7465 * configure.srv: Empty srv_amd64_linux_regobj if $development is
7466 false.
7467 (ipa_amd64_linux_regobj): Remove.
7468 (ipa_x32_linux_regobj): Remove.
7469
7470 2017-09-05 Yao Qi <yao.qi@linaro.org>
7471
7472 * Makefile.in (arch-amd64.o): New rule.
7473 * configure.srv: Append arch-amd64.o.
7474 * linux-amd64-ipa.c: Include common/x86-xstate.h.
7475 (get_ipa_tdesc): Call amd64_linux_read_description.
7476 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
7477 and init_registers_amd64_XXX.
7478 * linux-x86-low.c (x86_linux_read_description): Call
7479 amd64_linux_read_description.
7480 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
7481 (initialize_low_arch): Don't call init_registers_x32_XXX and
7482 init_registers_amd64_XXX.
7483 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
7484 and tdesc_amd64_XXX.
7485 [__x86_64__] (amd64_tdesc_test): New function.
7486 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
7487 and init_registers_amd64_XXX.
7488 * linux-x86-tdesc.c: Include arch/amd64.h.
7489 (xcr0_to_tdesc_idx): New function.
7490 (i386_linux_read_description): New function.
7491 (amd64_get_ipa_tdesc_idx): New function.
7492 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
7493 (amd64_get_ipa_tdesc): Declare.
7494
7495 2017-09-05 Yao Qi <yao.qi@linaro.org>
7496
7497 * configure.srv (srv_i386_linux_xmlfiles): Remove
7498 i386/i386-XXX-linux.xml from it.
7499
7500 2017-09-05 Yao Qi <yao.qi@linaro.org>
7501
7502 * configure.srv: Set srv_i386_linux_regobj empty if $development
7503 is false.
7504 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
7505 initialize_low_tdesc.
7506 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
7507 with #if initialize_low_tdesc.
7508 * linux-x86-tdesc-selftest.c: New file.
7509 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
7510
7511 2017-09-05 Yao Qi <yao.qi@linaro.org>
7512
7513 * Makefile.in (arch-i386.o): New rule.
7514 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
7515 (x86_64-*-linux*): Likewise.
7516 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
7517 include arch/i386.h.
7518 (i386_linux_read_description): Remove code and call
7519 i386_create_target_description.
7520 * tdesc.c (allocate_target_description): New function.
7521 * tdesc.h (set_tdesc_architecture): Remove declaration.
7522 (set_tdesc_osabi): Likewise.
7523
7524 2017-09-05 Yao Qi <yao.qi@linaro.org>
7525
7526 * linux-x86-tdesc.c: Don't include <inttypes.h>.
7527 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
7528 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
7529 .xmltarget.
7530 * server.c (get_features_xml): Call tdesc_get_features_xml.
7531 * tdesc.c (set_tdesc_architecture): New function.
7532 (set_tdesc_osabi): New function.
7533 (tdesc_get_features_xml): New function.
7534 (tdesc_create_feature): Add an argument.
7535 * tdesc.h (struct target_desc) <features>: New field.
7536 <arch, osabi>: New field.
7537 (~target_desc): xfree features, arch, and osabi.
7538 (target_desc::oerator==): Don't compare .xmltarget.
7539 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
7540 (set_tdesc_osabi): Likewise.
7541 (tdesc_get_features_xml): Likewise.
7542
7543 2017-09-05 Yao Qi <yao.qi@linaro.org>
7544
7545 * linux-x86-tdesc.c: Include selftest.h.
7546 (i386_tdesc_test): New function.
7547 (initialize_low_tdesc): Call selftests::register_test.
7548 * tdesc.h: Include regdef.h.
7549 (target_desc): Override operator == and !=.
7550
7551 2017-09-05 Yao Qi <yao.qi@linaro.org>
7552
7553 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
7554 (ipa_obj): Likewise.
7555 * linux-i386-ipa.c: Include common/x86-xstate.h
7556 (get_ipa_tdesc): Call i386_linux_read_description.
7557 (initialize_low_tracepoint): Don't call init_registers_XXX
7558 functions, call initialize_low_tdesc instead.
7559 * linux-x86-low.c (x86_linux_read_description): Call
7560 i386_linux_read_description.
7561 (initialize_low_arch): Don't call init_registers_i386_XXX
7562 functions, call initialize_low_tdesc.
7563 * linux-x86-tdesc.c: New file.
7564 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
7565 (i386_get_ipa_tdesc_idx): Declare.
7566 (i386_get_ipa_tdesc): Declare.
7567 (initialize_low_tdesc): Declare.
7568
7569 2017-09-05 Yao Qi <yao.qi@linaro.org>
7570
7571 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
7572 instead of 0.
7573
7574 2017-09-05 Yao Qi <yao.qi@linaro.org>
7575
7576 * Makefile.in (IPA_OBJS): Add vec-ipa.o
7577 * regcache.c (get_thread_regcache): Use VEC_length.
7578 (init_register_cache): Likewise.
7579 (regcache_cpy): Likewise.
7580 (registers_to_string): Iterate reg_defs via VEC_iterate.
7581 (find_regno): Likewise.
7582 (find_register_by_number): Use VEC_index.
7583 (register_size): Call find_register_by_number.
7584 (register_data): Call find_register_by_number.
7585 (supply_regblock): Use VEC_length.
7586 (regcache_raw_read_unsigned): Likewise.
7587 * tdesc.c (init_target_desc): Iterate reg_defs via
7588 VEC_iterate.
7589 (default_description): Update initializer.
7590 (copy_target_description): Don't update field num_registers.
7591 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
7592 <num_registers>: Remove.
7593
7594 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
7595
7596 * Makefile.in (.SECONDARY): Define target.
7597
7598 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
7599
7600 * linux-low.c (linux_wait_1): Adjust.
7601 * server.c (queue_stop_reply_callback): Adjust.
7602
7603 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
7604
7605 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
7606 QEnvironmentUnset and QEnvironmentReset packets.
7607 (handle_query): Inform remote that QEnvironmentHexEncoded,
7608 QEnvironmentUnset and QEnvironmentReset are supported.
7609
7610 2017-08-25 Simon Marchi <simon.marchi@ericsson.com>
7611
7612 * inferiors.h (inferior_target_data): Rename to ...
7613 (thread_target_data): ... this.
7614 (inferior_regcache_data): Rename to ...
7615 (thread_regcache_data): ... this.
7616 (set_inferior_regcache_data): Rename to ...
7617 (set_thread_regcache_data): ... this.
7618 * inferiors.c (inferior_target_data): Rename to ...
7619 (thread_target_data): ... this.
7620 (inferior_regcache_data): Rename to ...
7621 (thread_regcache_data): ... this.
7622 (set_inferior_regcache_data): Rename to ...
7623 (set_thread_regcache_data): ... this.
7624 (free_one_thread): Update.
7625 * linux-low.h (get_thread_lwp): Update.
7626 * regcache.c (get_thread_regcache): Update.
7627 (regcache_invalidate_thread): Update.
7628 (free_register_cache_thread): Update.
7629 * win32-i386-low.c (update_debug_registers_callback): Update.
7630 (win32_get_current_dr): Update.
7631 * win32-low.c (thread_rec): Update.
7632 (delete_thread_info): Update.
7633 (continue_one_thread): Update.
7634 (suspend_one_thread): Update.
7635
7636 2017-08-24 Simon Marchi <simon.marchi@ericsson.com>
7637
7638 * inferiors.c (set_inferior_target_data): Remove.
7639 * inferiors.h (set_inferior_target_data): Remove.
7640
7641 2017-08-18 Yao Qi <yao.qi@linaro.org>
7642
7643 * Makefile.in (OBS): Add selftest.o.
7644 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
7645 * configure, config.in: Re-generated.
7646 * server.c: Include common/sefltest.h.
7647 (captured_main): Handle option --selftest.
7648
7649 2017-08-09 Yao Qi <yao.qi@linaro.org>
7650
7651 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
7652 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
7653 i386-avx-mpx.o and i386-mmx.o.
7654 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
7655 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
7656 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
7657 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
7658 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
7659 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
7660 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
7661 i386/amd64-avx-mpx.xml.
7662
7663 2017-08-09 Yao Qi <yao.qi@linaro.org>
7664
7665 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
7666 and x32-avx-avx512.o.
7667 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
7668 i386/x32-avx-avx512.xml.
7669
7670 2017-07-26 Simon Marchi <simon.marchi@ericsson.com>
7671
7672 * tracepoint.h (enum class fast_tpoint_collect_result): New
7673 enumeration.
7674 (fast_tracepoint_collecting): Change return type to
7675 fast_tpoint_collect_result.
7676 * tracepoint.c (fast_tracepoint_collecting): Likewise.
7677 * linux-low.h: Include tracepoint.h.
7678 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
7679 fast_tpoint_collect_result.
7680 * linux-low.c (handle_tracepoints): Adjust.
7681 (linux_fast_tracepoint_collecting): Change return type to
7682 fast_tpoint_collect_result.
7683 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
7684 linux_wait_1, stuck_in_jump_pad_callback,
7685 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
7686 proceed_one_lwp): Adjust to type change.
7687
7688 2017-07-10 Yao Qi <yao.qi@linaro.org>
7689
7690 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
7691
7692 2017-06-29 Yao Qi <yao.qi@linaro.org>
7693
7694 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
7695 Remove.
7696 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
7697
7698 2017-06-20 Simon Marchi <simon.marchi@ericsson.com>
7699
7700 * Makefile.in (IPA_OBJS): Sort and format one item per line.
7701
7702 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
7703
7704 * linux-low.c (linux_create_inferior): Adjust code to access the
7705 environment information via 'gdb_environ' class.
7706 * lynx-low.c (lynx_create_inferior): Likewise.
7707 * server.c (our_environ): Make it an instance of 'gdb_environ'.
7708 (get_environ): Return a pointer to 'our_environ'.
7709 (captured_main): Initialize 'our_environ'.
7710 * server.h (get_environ): Adjust prototype.
7711 * spu-low.c (spu_create_inferior): Adjust code to access the
7712 environment information via 'gdb_environ' class.
7713
7714 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7715
7716 * linux-low.c (linux_read_memory, linux_write_memory): Remove
7717 usage of "register" keyword.
7718
7719 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7720
7721 * configure: Re-generate.
7722
7723 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7724
7725 * configure: Re-generate.
7726
7727 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7728
7729 * Makefile.in (COMPILE.pre): Add "-x c++".
7730
7731 2017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
7732
7733 * fork-child.c: Conditionally include <signal.h>.
7734
7735 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7736
7737 * server.c (handle_general_set): Handle new packet
7738 "QStartupWithShell".
7739 (handle_query): Add "QStartupWithShell" to the list of supported
7740 packets.
7741 (gdbserver_usage): Add help text explaining the
7742 new "--startup-with-shell" and "--no-startup-with-shell" CLI
7743 options.
7744 (captured_main): Recognize and act upon the presence of the new
7745 CLI options.
7746
7747 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7748 Pedro Alves <palves@redhat.com>
7749
7750 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
7751 * configure: Regenerate.
7752 * configure.srv (srv_linux_obj): Add "fork-child.o" and
7753 "fork-inferior.o".
7754 (i[34567]86-*-lynxos*): Likewise.
7755 (spu*-*-*): Likewise.
7756 * fork-child.c: New file.
7757 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
7758 and "environ.h".
7759 (linux_ptrace_fun): New function.
7760 (linux_create_inferior): Adjust function prototype to reflect
7761 change on "target.h". Adjust function code to use
7762 "fork_inferior".
7763 (linux_request_interrupt): Delete "signal_pid".
7764 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7765 (lynx_ptrace_fun): New function.
7766 (lynx_create_inferior): Adjust function prototype to reflect
7767 change on "target.h". Adjust function code to use
7768 "fork_inferior".
7769 * nto-low.c (nto_create_inferior): Adjust function prototype and
7770 code to reflect change on "target.h". Update comments.
7771 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
7772 "common-terminal.h" and "environ.h".
7773 (terminal_fd): Moved to fork-child.c.
7774 (old_foreground_pgrp): Likewise.
7775 (restore_old_foreground_pgrp): Likewise.
7776 (last_status): Make it global.
7777 (last_ptid): Likewise.
7778 (our_environ): New variable.
7779 (startup_with_shell): Likewise.
7780 (program_name): Likewise.
7781 (program_argv): Rename to...
7782 (program_args): ...this.
7783 (wrapper_argv): New variable.
7784 (start_inferior): Delete function.
7785 (get_exec_wrapper): New function.
7786 (get_exec_file): Likewise.
7787 (get_environ): Likewise.
7788 (prefork_hook): Likewise.
7789 (post_fork_inferior): Likewise.
7790 (postfork_hook): Likewise.
7791 (postfork_child_hook): Likewise.
7792 (handle_v_run): Update code to deal with arguments coming from the
7793 remote host. Update calls from "start_inferior" to
7794 "create_inferior".
7795 (captured_main): Likewise. Initialize environment variable. Call
7796 "have_job_control".
7797 * server.h (post_fork_inferior): New prototype.
7798 (get_environ): Likewise.
7799 (last_status): Declare.
7800 (last_ptid): Likewise.
7801 (signal_pid): Likewise.
7802 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7803 (spu_ptrace_fun): New function.
7804 (spu_create_inferior): Adjust function prototype to reflect change
7805 on "target.h". Adjust function code to use "fork_inferior".
7806 * target.c (target_terminal_init): New function.
7807 (target_terminal_inferior): Likewise.
7808 (target_terminal_ours): Likewise.
7809 * target.h: Include <vector>.
7810 (struct target_ops) <create_inferior>: Update prototype.
7811 (create_inferior): Update macro.
7812 * utils.c (gdb_flush_out_err): New function.
7813 * win32-low.c (win32_create_inferior): Adjust function prototype
7814 and code to reflect change on "target.h".
7815
7816 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7817
7818 * inferiors.c (switch_to_thread): New function.
7819
7820 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7821
7822 * Makefile.in (SFILE): Add "common/job-control.c".
7823 (OBS): Add "job-control.o".
7824
7825 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
7826
7827 * Makefile: Remove "@host_makefile_frag@".
7828
7829 2017-05-05 Pedro Alves <palves@redhat.com>
7830
7831 * configure: Regenerate.
7832
7833 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7834
7835 * configure: Regenerate.
7836
7837 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7838
7839 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
7840 software_single_step change of return type to
7841 std::vector<CORE_ADDR>.
7842 * linux-low.c (install_software_single_step_breakpoints):
7843 Likewise.
7844 * linux-low.h (install_software_single_step_breakpoints):
7845 Likewise.
7846
7847 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7848
7849 * remote-utils.c: Include "gdb_termios.h" instead of
7850 "terminal.h".
7851 * terminal.h: Delete file.
7852
7853 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7854
7855 * server.c: Include <vector>.
7856 <program_argv, wrapper_argv>: Convert to std::vector.
7857 (start_inferior): Rewrite function to use C++.
7858 (handle_v_run): Likewise. Update code that calculates the argv
7859 based on the vRun packet; use C++.
7860 (captured_main): Likewise.
7861
7862 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
7863
7864 * server.c (handle_v_cont): Initialize thread_resume::thread
7865 with null_ptid.
7866
7867 2017-04-05 Pedro Alves <palves@redhat.com>
7868
7869 * configure: Regenerate.
7870
7871 2017-04-05 Pedro Alves <palves@redhat.com>
7872
7873 * gdbreplay.c (sync_error): Constify.
7874 * linux-x86-low.c (push_opcode): Constify.
7875
7876 2017-04-05 Pedro Alves <palves@redhat.com>
7877
7878 * win32-low.c (get_child_debug_event)
7879 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
7880 Report TARGET_WAITKIND_SPURIOUS instead.
7881
7882 2017-04-05 Pedro Alves <palves@redhat.com>
7883
7884 * remote-utils.c (remote_prepare, remote_open): Constify.
7885 * remote-utils.h (remote_prepare, remote_open): Constify.
7886 * server.c (captured_main): Constify 'port' handling.
7887
7888 2017-04-04 Simon Marchi <simon.marchi@ericsson.com>
7889
7890 * Makefile.in (clean): Clear .deps.
7891
7892 2017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
7893
7894 * .gitignore: Remove generated files, replace with wildcard.
7895 * (clean): Replace removal of generated files with wildcard.
7896 (version.c): Replace with...
7897 (version-generated.c): ...this.
7898 (xml-builtin.c): Replace with...
7899 (xml-builtin-generated.c): ...this.
7900 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
7901 (%.c: *regformats*): Replace with...
7902 (%-generated.c: *regformats*): ...this.
7903
7904 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7905
7906 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
7907 (xtensa_fill_gregset): Call collect_register_by_name for
7908 threadptr register.
7909 (xtensa_store_gregset): Call supply_register_by_name for
7910 threadptr register.
7911
7912 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7913
7914 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
7915 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
7916 (xtensa_store_gregset): Call supply_register for all registers in
7917 a0_regnum..a0_regnum + C0_NREGS range.
7918
7919 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7920
7921 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
7922 (ax-ipa.o: ax.c): Remove.
7923 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
7924 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
7925 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
7926 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
7927 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
7928
7929 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7930
7931 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
7932 (print-utils-ipa.o: ../common/print-utils.c): Remove.
7933 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
7934 (errors-ipa.o: ../common/errors.c): Remove.
7935 (format-ipa.o: ../common/format.c): Remove.
7936 (common-utils-ipa.o: ../common/common-utils.c): Remove.
7937
7938 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7939
7940 * Makefile.in (%-ipa.o: %.c): New rule.
7941 (tracepoint-ipa.o: tracepoint.c): Remove.
7942 (utils-ipa.o: utils.c): Remove.
7943 (remote-utils-ipa.o: remote-utils.c): Remove.
7944 (regcache-ipa.o: regcache.c): Remove.
7945 (i386-linux-ipa.o: i386-linux.c): Remove.
7946 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
7947 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
7948 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
7949 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
7950 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
7951 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
7952 (amd64-linux-ipa.o: amd64-linux.c): Remove.
7953 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
7954 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
7955 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
7956 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
7957 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
7958 (aarch64-ipa.o: aarch64.c): Remove.
7959 (s390-linux32-ipa.o: s390-linux32.c): Remove.
7960 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
7961 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
7962 (s390-linux64-ipa.o: s390-linux64.c): Remove.
7963 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
7964 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
7965 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
7966 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
7967 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
7968 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
7969 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
7970 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
7971 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
7972 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
7973 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
7974 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
7975 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
7976 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
7977 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
7978 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
7979 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
7980 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
7981 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
7982 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
7983 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
7984 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
7985 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
7986 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
7987 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
7988 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
7989 (tdesc-ipa.o: tdesc.c): Remove.
7990 (x32-linux-ipa.o: x32-linux.c): Remove.
7991 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
7992 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
7993
7994 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7995
7996 * Makefile.in (%.o: ../arch/%.c): New rule.
7997 (arm.o: ../arch/arm.c): Remove.
7998 (arm-linux.o: ../arch/arm-linux.c): Remove.
7999 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
8000 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
8001
8002 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8003
8004 * Makefile.in (%.o: ../nat/%.c): New rule.
8005 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
8006 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
8007 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
8008 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
8009 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
8010 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
8011 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
8012 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
8013 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
8014 (linux-personality.o: ../nat/linux-personality.c): Remove.
8015 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
8016 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
8017 (x86-linux.o: ../nat/x86-linux.c): Remove.
8018 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
8019 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
8020
8021 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8022
8023 * Makefile.in (%.o: ../common/%.c): New rule.
8024 (signals.o: ../common/signals.c): Remove.
8025 (print-utils.o: ../common/print-utils.c): Remove.
8026 (rsp-low.o: ../common/rsp-low.c): Remove.
8027 (common-utils.o: ../common/common-utils.c): Remove.
8028 (posix-strerror.o: ../common/posix-strerror.c): Remove.
8029 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
8030 (vec.o: ../common/vec.c): Remove.
8031 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
8032 (xml-utils.o: ../common/xml-utils.c): Remove.
8033 (ptid.o: ../common/ptid.c): Remove.
8034 (buffer.o: ../common/buffer.c): Remove.
8035 (format.o: ../common/format.c): Remove.
8036 (filestuff.o: ../common/filestuff.c): Remove.
8037 (agent.o: ../common/agent.c): Remove.
8038 (errors.o: ../common/errors.c): Remove.
8039 (environ.o: ../common/environ.c): Remove.
8040 (common-debug.o: ../common/common-debug.c): Remove.
8041 (cleanups.o: ../common/cleanups.c): Remove.
8042 (common-exceptions.o: ../common/common-exceptions.c): Remove.
8043 (fileio.o: ../common/fileio.c): Remove.
8044 (common-regcache.o: ../common/common-regcache.c): Remove.
8045 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
8046 (new-op.o: ../common/new-op.c): Remove.
8047 (btrace-common.o: ../common/btrace-common.c): Remove.
8048
8049 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8050
8051 * Makefile.in (%.o: ../target/%.c): New rule.
8052 (waitstatus.o: ../target/waitstatus.c): Remove.
8053
8054 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8055
8056 * Makefile.in
8057 (%.c: ../regformats/%.dat,
8058 (%.c: ../regformats/arm/%.dat,
8059 (%.c: ../regformats/i386/%.dat,
8060 (%.c: ../regformats/rs6000/%.dat): New rules.
8061 (aarch64.c): Remove.
8062 (reg-arm.c): Remove.
8063 (arm-with-iwmmxt.c): Remove.
8064 (arm-with-vfpv2.c): Remove.
8065 (arm-with-vfpv3.c): Remove.
8066 (arm-with-neon.c): Remove.
8067 (reg-bfin.c): Remove.
8068 (reg-cris.c): Remove.
8069 (reg-crisv32.c): Remove.
8070 (i386.c): Remove.
8071 (i386-linux.c): Remove.
8072 (i386-avx.c): Remove.
8073 (i386-avx-linux.c): Remove.
8074 (i386-avx-avx512.c): Remove.
8075 (i386-avx-avx512-linux.c): Remove.
8076 (i386-mpx.c): Remove.
8077 (i386-mpx-linux.c): Remove.
8078 (i386-avx-mpx-avx512-pku.c): Remove.
8079 (i386-avx-mpx-avx512-pku-linux.c): Remove.
8080 (i386-avx-mpx.c): Remove.
8081 (i386-avx-mpx-linux.c): Remove.
8082 (i386-mmx.c): Remove.
8083 (i386-mmx-linux.c): Remove.
8084 (reg-ia64.c): Remove.
8085 (reg-m32r.c): Remove.
8086 (reg-m68k.c): Remove.
8087 (reg-cf.c): Remove.
8088 (mips-linux.c): Remove.
8089 (mips-dsp-linux.c): Remove.
8090 (mips64-linux.c): Remove.
8091 (mips64-dsp-linux.c): Remove.
8092 (nios2-linux.c): Remove.
8093 (powerpc-32.c): Remove.
8094 (powerpc-32l.c): Remove.
8095 (powerpc-altivec32l.c): Remove.
8096 (powerpc-cell32l.c): Remove.
8097 (powerpc-vsx32l.c): Remove.
8098 (powerpc-isa205-32l.c): Remove.
8099 (powerpc-isa205-altivec32l.c): Remove.
8100 (powerpc-isa205-vsx32l.c): Remove.
8101 (powerpc-e500l.c): Remove.
8102 (powerpc-64l.c): Remove.
8103 (powerpc-altivec64l.c): Remove.
8104 (powerpc-cell64l.c): Remove.
8105 (powerpc-vsx64l.c): Remove.
8106 (powerpc-isa205-64l.c): Remove.
8107 (powerpc-isa205-altivec64l.c): Remove.
8108 (powerpc-isa205-vsx64l.c): Remove.
8109 (s390-linux32.c): Remove.
8110 (s390-linux32v1.c): Remove.
8111 (s390-linux32v2.c): Remove.
8112 (s390-linux64.c): Remove.
8113 (s390-linux64v1.c): Remove.
8114 (s390-linux64v2.c): Remove.
8115 (s390-te-linux64.c): Remove.
8116 (s390-vx-linux64.c): Remove.
8117 (s390-tevx-linux64.c): Remove.
8118 (s390x-linux64.c): Remove.
8119 (s390x-linux64v1.c): Remove.
8120 (s390x-linux64v2.c): Remove.
8121 (s390x-te-linux64.c): Remove.
8122 (s390x-vx-linux64.c): Remove.
8123 (s390x-tevx-linux64.c): Remove.
8124 (tic6x-c64xp-linux.c): Remove.
8125 (tic6x-c64x-linux.c): Remove.
8126 (tic6x-c62x-linux.c): Remove.
8127 (reg-sh.c): Remove.
8128 (reg-sparc64.c): Remove.
8129 (reg-spu.c): Remove.
8130 (amd64.c): Remove.
8131 (amd64-linux.c): Remove.
8132 (amd64-avx.c): Remove.
8133 (amd64-avx-linux.c): Remove.
8134 (amd64-avx-avx512.c): Remove.
8135 (amd64-avx-avx512-linux.c): Remove.
8136 (amd64-mpx.c): Remove.
8137 (amd64-mpx-linux.c): Remove.
8138 (amd64-avx-mpx-avx512-pku.c): Remove.
8139 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
8140 (amd64-avx-mpx.c): Remove.
8141 (amd64-avx-mpx-linux.c): Remove.
8142 (x32.c): Remove.
8143 (x32-linux.c): Remove.
8144 (x32-avx.c): Remove.
8145 (x32-avx-linux.c): Remove.
8146 (x32-avx-avx512.c): Remove.
8147 (x32-avx-avx512-linux.c): Remove.
8148 (reg-xtensa.c): Remove.
8149 (reg-tilegx.c): Remove.
8150 (reg-tilegx32.c): Remove.
8151
8152 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
8153
8154 * Makefile.in (SFILES): Add "common/environ.c".
8155 (OBJS): Add "common/environ.h".
8156
8157 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
8158
8159 * configure.ac: Check if the fs_base and gs_base members of
8160 `struct user_regs_struct' exist.
8161 * config.in: Regenerated.
8162 * configure: Likewise.
8163
8164 2017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
8165
8166 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
8167 target_read_memory.
8168 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
8169 (get_next_pcs_syscall_next_pc): Likewise.
8170
8171 2016-12-23 Luis Machado <lgustavo@codesourcery.com>
8172
8173 * win32-i386-low.c: Fix incorrect reference to a couple source files.
8174 * nto-x86-low.c: Likewise.
8175
8176 2016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
8177
8178 * Makefile.in: Include disable-implicit-rules.mk.
8179
8180 2016-11-23 Pedro Alves <palves@redhat.com>
8181
8182 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
8183 (debug_vprintf): Use std::chrono::steady_clock instead of
8184 gettimeofday. Use '.' instead of ':'.
8185 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
8186 (get_timestamp): Use std::chrono::steady_clock instead of
8187 gettimeofday.
8188
8189 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
8190
8191 * Makefile.in: Fix whitespace formatting.
8192
8193 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
8194
8195 * Makefile.in (SFILES, OBS): Flatten list and order
8196 alphabetically.
8197
8198 2016-11-23 Pedro Alves <palves@redhat.com>
8199
8200 * event-loop.c (handle_file_event): Use warning.
8201 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
8202 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
8203 Use warning.
8204
8205 2016-11-23 Pedro Alves <palves@redhat.com>
8206
8207 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
8208 output.
8209 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
8210 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
8211 debug_printf and debug_flush for debug output.
8212 * server.c (handle_general_set): Likewise.
8213 * thread-db.c (try_thread_db_load): Use debug_printf for debug
8214 output.
8215
8216 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
8217
8218 * Makefile.in (.c.o): Replace rule with ...
8219 (%.o: %.c): ... this one.
8220
8221 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
8222
8223 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
8224 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
8225 make.
8226 * configure.ac: Remove checks for the make program.
8227 * configure: Re-generate.
8228
8229 2016-10-28 Pedro Alves <palves@redhat.com>
8230
8231 * Makefile.in (CXX_DIALECT): Get from configure.
8232 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
8233 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
8234 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
8235 * config.in: Regenerate.
8236 * configure: Regenerate.
8237
8238 2016-10-27 Yao Qi <yao.qi@linaro.org>
8239
8240 * linux-low.c (linux_supports_range_stepping): Return true if
8241 can_software_single_step return true.
8242
8243 2016-10-27 Yao Qi <yao.qi@linaro.org>
8244
8245 * inferiors.c (find_inferior_in_random): New function.
8246 * inferiors.h (find_inferior_in_random): Declare.
8247 * linux-low.c (linux_wait_for_event_filtered): Call
8248 find_inferior_in_random instead of find_inferior.
8249
8250 2016-10-27 Yao Qi <yao.qi@linaro.org>
8251
8252 * linux-low.c (linux_wait_1): If single-step breakpoints are
8253 inserted, remove them.
8254
8255 2016-10-26 Pedro Alves <palves@redhat.com>
8256
8257 * linux-low.c (handle_extended_wait): Link parent/child fork
8258 threads.
8259 (linux_wait_1): Unlink them.
8260 (linux_set_resume_request): Ignore resume requests for
8261 already-resumed and unhandled fork child threads.
8262 * linux-low.h (struct lwp_info) <fork_relative>: New field.
8263 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
8264 New functions.
8265 (handle_v_requests) <vCont>: Don't call require_running.
8266 * server.h (in_queued_stop_replies): New declaration.
8267
8268 2016-10-24 Yao Qi <yao.qi@linaro.org>
8269
8270 PR server/20733
8271 * linux-aarch64-low.c (append_insns): Cast the return value to
8272 'uint32_t *'.
8273
8274 2016-10-10 Yao Qi <yao.qi@linaro.org>
8275
8276 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
8277
8278 2016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
8279
8280 * target.c (target_supports_multi_process): New function, moved
8281 from...
8282 * target.h (target_supports_multi_process): ... here. Remove
8283 macro.
8284
8285 2016-10-05 Tom Tromey <tom@tromey.com>
8286
8287 PR remote/20655:
8288 * tracepoint.c (handle_tracepoint_bkpts): Check
8289 ipa_error_tracepoint, not ipa_stopping_tracepoint.
8290
8291 2016-10-05 Yao Qi <yao.qi@linaro.org>
8292
8293 * configure.srv: Update the path of arm-*.xml files.
8294
8295 2016-10-05 Terry Guo <terry.guo@arm.com>
8296 Yao Qi <yao.qi@linaro.org>
8297
8298 * Makefile.in: Adjust the path of rules.
8299 * configure.srv: Update the path of xml files.
8300 * regformats/arm-with-iwmmxt.dat: Regenerated.
8301 * regformats/arm-with-neon.dat: Likewise.
8302 * regformats/arm-with-vfpv2.dat: Likewise.
8303 * regformats/arm-with-vfpv3.dat Likewise.
8304
8305 2016-09-30 Yao Qi <yao.qi@linaro.org>
8306
8307 PR gdbserver/20627
8308 * target.c (target_stop_and_wait): Don't call
8309 target_continue_no_signal, use resume_stop instead.
8310
8311 2016-09-26 Yao Qi <yao.qi@linaro.org>
8312
8313 * linux-low.c (linux_wait_1): Call debug_exit.
8314
8315 2016-09-23 Pedro Alves <palves@redhat.com>
8316
8317 * Makefile.in (SFILES): Add common/new-op.c.
8318 (OBS): Add common/new-op.o.
8319 (new-op.o): New rule.
8320
8321 2016-09-21 Simon Marchi <simon.marchi@ericsson.com>
8322
8323 * .gitinore: Ignore more files.
8324
8325 2016-09-21 Yao Qi <yao.qi@linaro.org>
8326
8327 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
8328 23.
8329
8330 2016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
8331
8332 * server.c (start_inferior): Call target_mourn_inferior instead of
8333 mourn_inferior; pass ptid_t argument to it.
8334 (resume): Likewise.
8335 (handle_target_event): Likewise.
8336 * target.c (target_mourn_inferior): New function.
8337 * target.h (mourn_inferior): Delete macro.
8338
8339 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
8340
8341 * linux-low.c (lwp_is_stepping): New function.
8342
8343 2016-09-06 Carl Love <cel@us.ibm.com>
8344
8345 * server.c (start_inferior): Fixed comment, requested comment change
8346 didn't get updated correctly. Removed reference to ptrace () call as
8347 it is only true on Linux systems.
8348
8349 2016-09-06 Carl Love <cel@us.ibm.com>
8350
8351 * server.c (start_inferior): Do not call
8352 function target_post_create_inferior () if the
8353 inferior process has already exited.
8354
8355 2016-09-05 Pedro Alves <palves@redhat.com>
8356
8357 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
8358 (COMPILE.pre, CC_LD): Use CXX directly.
8359 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
8360 * acinclude.m4: Don't include build-with-cxx.m4.
8361 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
8362 * configure: Regenerate.
8363
8364 2016-09-02 Akash Trehan <akash.trehan123@gmail.com>
8365
8366 PR gdb/19495
8367 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
8368 call writing data to own_buf.
8369
8370 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
8371
8372 * target.c (mywait): Call target_wait instead of
8373 the_target->wait.
8374 (target_wait): New function.
8375
8376 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
8377
8378 * server.c (start_inferior): New variable 'ptid'. Replace calls
8379 to the_target->resume by target_continue{,_no_signal}, depending
8380 on the case.
8381 * target.c (target_stop_and_wait): Call target_continue_no_signal
8382 instead of the_target->resume.
8383 (target_continue): New function.
8384
8385 2016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
8386
8387 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
8388
8389 2016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8390
8391 PR server/20491
8392 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
8393 ps_prochandle.
8394 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
8395 * linux-arm-low.c (ps_get_thread_area): Likewise.
8396 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
8397 * linux-m68k-low.c (ps_get_thread_area): Likewise.
8398 * linux-mips-low.c (ps_get_thread_area): Likewise.
8399 * linux-nios2-low.c (ps_get_thread_area): Likewise.
8400 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
8401 * linux-x86-low.c (ps_get_thread_area): Likewise.
8402 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
8403
8404 2016-08-19 Pedro Alves <palves@redhat.com>
8405
8406 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
8407
8408 2016-08-19 Pedro Alves <palves@redhat.com>
8409
8410 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
8411 comment. Use memcpy instead of casting through unsigned long.
8412
8413 2016-08-19 Pedro Alves <palves@redhat.com>
8414
8415 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
8416 allocating around 0x80000000.
8417
8418 2016-08-19 Pedro Alves <palves@redhat.com>
8419
8420 PR gdb/20415
8421 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
8422 (x32-avx512-linux-ipa.o): New rules.
8423 * configure.ac (x86_64-*-linux*): New x32 check.
8424 * configure.srv (ipa_x32_linux_regobj): New.
8425 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
8426 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
8427 descriptions.
8428 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
8429 descriptions.
8430 * configure: Regenerate.
8431
8432 2016-08-09 Pedro Alves <palves@redhat.com>
8433
8434 PR gdb/18653
8435 * Makefile.in (OBS): Add signals-state-save-restore.o.
8436 (signals-state-save-restore.o): New rule.
8437 * config.in: Regenerate.
8438 * configure: Regenerate.
8439 * linux-low.c: Include "signals-state-save-restore.h".
8440 (linux_create_inferior): Call
8441 restore_original_signals_state.
8442 * server.c: Include "dispositions-save-restore.h".
8443 (captured_main): Call save_original_signals_state.
8444
8445 2016-08-05 Pedro Alves <palves@redhat.com>
8446
8447 * configure: Regenerate.
8448
8449 2016-08-04 Yao Qi <yao.qi@linaro.org>
8450
8451 * linux-low.c (regsets_fetch_inferior_registers): Check
8452 errno is ESRCH or not.
8453
8454 2016-08-02 Yao Qi <yao.qi@linaro.org>
8455
8456 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
8457 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
8458 (thread_db_load_search): Update.
8459 (try_thread_db_load_1): Don't look for td_ta_event_addr,
8460 td_ta_set_event and td_ta_event_getmsg.
8461
8462 2016-07-26 Pedro Alves <palves@redhat.com>
8463
8464 PR server/20414
8465 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
8466 of unsigned long for 64-bit registers and use uint32_t instead of
8467 unsigned int for 32-bit registers.
8468
8469 2016-07-26 Pedro Alves <palves@redhat.com>
8470
8471 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
8472 to 'ptrace'.
8473
8474 2016-07-21 Tom Tromey <tom@tromey.com>
8475
8476 * configure: Rebuild.
8477
8478 2016-07-21 Yao Qi <yao.qi@linaro.org>
8479
8480 * mem-break.c (find_gdb_breakpoint): Cast bp to
8481 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
8482
8483 2016-07-21 Yao Qi <yao.qi@linaro.org>
8484
8485 * server.c (handle_v_requests): Support s and S actions
8486 if target_supports_software_single_step return true.
8487
8488 2016-07-21 Yao Qi <yao.qi@linaro.org>
8489
8490 * linux-low.c (resume_stopped_resumed_lwps): If resume request
8491 is resume_step, call maybe_hw_step.
8492 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
8493 and unstop them.
8494 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
8495 breakpoints or not.
8496 (proceed_one_lwp): If resume request is resume_step, install
8497 reinsert breakpoints and call maybe_hw_step.
8498
8499 2016-07-21 Yao Qi <yao.qi@linaro.org>
8500
8501 * linux-low.c (proceed_one_lwp): Declare.
8502 (linux_resume_one_thread): Remove local variable 'step'.
8503 Lift code enqueue signal. Call proceed_one_lwp instead of
8504 linux_resume_one_lwp.
8505
8506 2016-07-21 Yao Qi <yao.qi@linaro.org>
8507
8508 * linux-low.c (linux_resume_one_thread): Call
8509 enqueue_pending_signal.
8510
8511 2016-07-21 Yao Qi <yao.qi@linaro.org>
8512
8513 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
8514 * inferiors.c (do_restore_current_thread_cleanup): New function.
8515 (make_cleanup_restore_current_thread): Likewise.
8516 * linux-low.c (install_software_single_step_breakpoints): Call
8517 make_cleanup_restore_current_thread. Switch current_thread to
8518 thread.
8519
8520 2016-07-21 Yao Qi <yao.qi@linaro.org>
8521
8522 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
8523 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
8524 (clone_one_breakpoint): Likewise.
8525 (delete_reinsert_breakpoints): Change parameter to thread.
8526 Callers updated.
8527 (has_reinsert_breakpoints): Likewise.
8528 (uninsert_reinsert_breakpoints): Likewise.
8529 (reinsert_reinsert_breakpoints): Likewise.
8530 * mem-break.h (set_reinsert_breakpoint): Update declaration.
8531 (delete_reinsert_breakpoints): Likewise.
8532 (reinsert_reinsert_breakpoints): Likewise.
8533 (uninsert_reinsert_breakpoints): Likewise.
8534 (has_reinsert_breakpoints): Likewise.
8535
8536 2016-07-21 Yao Qi <yao.qi@linaro.org>
8537
8538 * inferiors.c (get_thread_process): Make parameter const.
8539 * inferiors.h (get_thread_process): Update declaration.
8540 * mem-break.c (clone_all_breakpoints): Remove all parameters.
8541 Add new parameters child_thread and parent_thread. Callers
8542 updated.
8543 * mem-break.h (clone_all_breakpoints): Update declaration.
8544
8545 2016-07-21 Yao Qi <yao.qi@linaro.org>
8546
8547 * mem-break.c (struct breakpoint) <cond_list>: Remove.
8548 <command_list, handler>: Remove.
8549 (struct gdb_breakpoint): New.
8550 (struct other_breakpoint): New.
8551 (struct reinsert_breakpoint): New.
8552 (is_gdb_breakpoint): New function.
8553 (any_persistent_commands): Update command_list if
8554 is_gdb_breakpoint returns true.
8555 (set_breakpoint): Create breakpoints according to their types.
8556 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
8557 (set_gdb_breakpoint_1): Likewise.
8558 (set_gdb_breakpoint): Likewise.
8559 (clear_breakpoint_conditions): Change parameter type to
8560 'struct gdb_breakpoint *'.
8561 (clear_breakpoint_commands): Likewise.
8562 (clear_breakpoint_conditions_and_commands): Likewise.
8563 (add_condition_to_breakpoint): Likewise.
8564 (add_breakpoint_condition): Likewise.
8565 (add_commands_to_breakpoint): Likewise.
8566 (check_breakpoints): Check other_breakpoint.
8567 (clone_one_breakpoint): Clone breakpopint according to its type.
8568 * mem-break.h (struct gdb_breakpoint): Declare.
8569 (set_gdb_breakpoint): Update declaration.
8570 (clear_breakpoint_conditions_and_commands): Likewise.
8571 (add_breakpoint_condition): Likewise.
8572 (add_breakpoint_commands): Likewise.
8573 * server.c (process_point_options): Change parameter type to
8574 'struct gdb_breakpoint *'.
8575
8576 2016-07-21 Yao Qi <yao.qi@linaro.org>
8577
8578 * mem-break.c (set_breakpoint_at): Rename it to ...
8579 (set_breakpoint_type_at): ... it.
8580 (set_breakpoint_at): Call set_breakpoint_type_at.
8581 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
8582 * mem-break.h (set_breakpoint_at): Update comments.
8583
8584 2016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
8585
8586 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
8587 to buf parameter.
8588 (nios2_store_gregset): Likewise.
8589
8590 2016-07-01 Pedro Alves <palves@redhat.com>
8591 Antoine Tremblay <antoine.tremblay@ericsson.com>
8592
8593 * linux-low.c: Change interface to take the target lwp_info
8594 pointer directly and return void. Handle detaching from a zombie
8595 thread.
8596 (linux_detach_lwp_callback): New function.
8597 (linux_detach): Detach from the leader thread after detaching from
8598 the clone threads.
8599
8600 2016-06-28 Yao Qi <yao.qi@linaro.org>
8601
8602 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
8603 for variable new_offset.
8604 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
8605 (aarch64_ftrace_insn_reloc_cb): Likewise.
8606 (aarch64_ftrace_insn_reloc_tb): Likewise.
8607 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
8608 PRIx64 instead of PRIx32.
8609
8610 2016-06-28 Yao Qi <yao.qi@linaro.org>
8611
8612 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
8613 (the_low_target): Install arm_get_syscall_trapinfo.
8614
8615 2016-06-28 Yao Qi <yao.qi@linaro.org>
8616
8617 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
8618 function.
8619 (the_low_target): Install aarch64_get_syscall_trapinfo.
8620
8621 2016-06-28 Yao Qi <yao.qi@linaro.org>
8622
8623 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
8624 Callers updated.
8625 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
8626 Remove parameter sysno.
8627 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
8628 sysret.
8629
8630 2016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8631
8632 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
8633 (s390_emit_ne_goto): Likewise.
8634 (s390_emit_lt_goto): Likewise.
8635 (s390_emit_le_goto): Likewise.
8636 (s390_emit_gt_goto): Likewise.
8637 (s390_emit_ge_goto): Likewise.
8638 (s390x_emit_eq_goto): Likewise.
8639 (s390x_emit_ne_goto): Likewise.
8640 (s390x_emit_lt_goto): Likewise.
8641 (s390x_emit_le_goto): Likewise.
8642 (s390x_emit_gt_goto): Likewise.
8643 (s390x_emit_ge_goto): Likewise.
8644 (s390_emit_ops_impl): Mark variable static.
8645 (s390x_emit_ops): Likewise.
8646
8647 2016-06-17 Yao Qi <yao.qi@linaro.org>
8648
8649 * linux-low.c (handle_extended_wait): Call
8650 uninsert_reinsert_breakpoints for the parent process. Remove
8651 reinsert breakpoints from the child process. Reinsert them to
8652 the parent process when vfork is done.
8653 * mem-break.c (uninsert_reinsert_breakpoints): New function.
8654 (reinsert_reinsert_breakpoints): New function.
8655 * mem-break.h (uninsert_reinsert_breakpoints): Declare
8656 (reinsert_reinsert_breakpoints): Declare.
8657
8658 2016-06-17 Yao Qi <yao.qi@linaro.org>
8659
8660 * linux-low.c (handle_extended_wait): If the parent is doing
8661 step-over, remove the reinsert breakpoints from the forked child.
8662
8663 2016-06-17 Yao Qi <yao.qi@linaro.org>
8664
8665 * linux-low.c (unsuspend_all_lwps): Declare.
8666 (linux_low_filter_event): If thread exited, call finish_step_over.
8667 If step-over is finished, unsuspend other threads.
8668
8669 2016-06-17 Yao Qi <yao.qi@linaro.org>
8670
8671 * linux-low.c (linux_resume_one_lwp_throw): Assert
8672 has_reinsert_breakpoints returns false.
8673 * mem-break.c (delete_disabled_breakpoints): Assert
8674 bp type isn't reinsert_breakpoint.
8675
8676 2016-06-17 Yao Qi <yao.qi@linaro.org>
8677
8678 * linux-low.c (maybe_hw_step): New function.
8679 (linux_resume_one_lwp_throw): Call maybe_hw_step.
8680 (finish_step_over): Switch current_thread to lwp temporarily,
8681 and assert has_reinsert_breakpoints returns true.
8682 (proceed_one_lwp): Call maybe_hw_step.
8683 * mem-break.c (has_reinsert_breakpoints): New function.
8684 * mem-break.h (has_reinsert_breakpoints): Declare.
8685
8686 2016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
8687
8688 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
8689
8690 2016-05-17 Yao Qi <yao.qi@linaro.org>
8691
8692 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
8693 instead of find_inferior.
8694
8695 2016-05-05 Yao Qi <yao.qi@linaro.org>
8696
8697 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
8698 Initialize res to zero.
8699
8700 2016-05-05 Yao Qi <yao.qi@linaro.org>
8701
8702 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
8703 to uint32_t.
8704
8705 2016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8706
8707 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
8708 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
8709 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
8710
8711 2016-04-28 Par Olsson <par.olsson@windriver.com>
8712 Simon Marchi <simon.marchi@ericsson.com>
8713
8714 * tracepoint.c (write_inferior_int8): New function.
8715 (cmd_qtenable_disable): Write enable flag using
8716 write_inferior_int8.
8717
8718 2016-04-25 Yao Qi <yao.qi@linaro.org>
8719
8720 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
8721 (need_step_over_p): Return zero if the LWP has pending signals
8722 can be delivered on software single step target.
8723
8724 2016-04-25 Yao Qi <yao.qi@linaro.org>
8725
8726 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
8727 return instead of error.
8728
8729 2016-04-22 Yao Qi <yao.qi@linaro.org>
8730
8731 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
8732 to 23.
8733
8734 2016-04-22 Yao Qi <yao.qi@linaro.org>
8735
8736 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
8737 signal when stepping over breakpoint with software single
8738 step.
8739
8740 2016-04-21 Pedro Alves <palves@redhat.com>
8741
8742 * linux-s390-low.c (s390_collect_ptrace_register)
8743 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
8744 add casts.
8745 (s390_check_regset): Use void * instead of gdb_byte *.
8746
8747 2016-04-20 Pedro Alves <palves@redhat.com>
8748
8749 * configure: Renegerate.
8750
8751 2016-04-20 Yao Qi <yao.qi@linaro.org>
8752
8753 * linux-aarch32-low.c: Include "arch/arm-linux.h".
8754 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
8755 number 16.
8756 (arm_store_gregset): Likewise.
8757
8758 2016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
8759
8760 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
8761 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
8762 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
8763 (amd64-avx-mpx-linux.c): New rules.
8764 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
8765 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
8766 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
8767 (srv_amd64_regobj): Add amd64-avx-mpx.o.
8768 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
8769 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
8770 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
8771 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
8772 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
8773 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
8774 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
8775 * linux-x86-low.c (x86_linux_read_description): Add case for
8776 X86_XSTATE_AVX_MPX_MASK.
8777 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
8778 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
8779 init_registers_i386_avx_mpx_linux.
8780 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8781 (initialize_low_tracepoint): Call
8782 init_registers_i386_avx_mpx_linux.
8783 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8784 (initialize_low_tracepoint): Call
8785 init_registers_amd64_avx_mpx_linux.
8786 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
8787 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
8788 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
8789 declarations.
8790
8791 2016-04-18 Pedro Alves <palves@redhat.com>
8792
8793 * configure: Regenerate.
8794
8795 2016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
8796
8797 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
8798 (aarch64_emit_sub): Likewise.
8799
8800 2016-04-12 Pedro Alves <palves@redhat.com>
8801
8802 * utils.c (prepare_to_throw_exception): Delete.
8803
8804 2016-04-05 Simon Marchi <simon.marchi@ericsson.com>
8805
8806 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
8807
8808 2016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
8809
8810 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
8811
8812 2016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
8813
8814 * linux-aarch64-ipa.c: Add <elf.h> include.
8815 * linux-ppc-ipa.c: Add <elf.h> include.
8816 * linux-s390-ipa.c: Add <elf.h> include.
8817
8818 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8819
8820 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
8821 (get_raw_reg_ptr): Likewise.
8822 (get_trace_state_variable_value_ptr): Likewise.
8823 (set_trace_state_variable_value_ptr): Likewise.
8824 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
8825 char *.
8826
8827 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
8828 Marcin Kościelnicki <koriakin@0x04.net>
8829
8830 PR/17221
8831 * linux-ppc-low.c (emit_insns): New function.
8832 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
8833 (ppc_emit_prologue): New function.
8834 (ppc_emit_epilogue): New function.
8835 (ppc_emit_add): New function.
8836 (ppc_emit_sub): New function.
8837 (ppc_emit_mul): New function.
8838 (ppc_emit_lsh): New function.
8839 (ppc_emit_rsh_signed): New function.
8840 (ppc_emit_rsh_unsigned): New function.
8841 (ppc_emit_ext): New function.
8842 (ppc_emit_zero_ext): New function.
8843 (ppc_emit_log_not): New function.
8844 (ppc_emit_bit_and): New function.
8845 (ppc_emit_bit_or): New function.
8846 (ppc_emit_bit_xor): New function.
8847 (ppc_emit_bit_not): New function.
8848 (ppc_emit_equal): New function.
8849 (ppc_emit_less_signed): New function.
8850 (ppc_emit_less_unsigned): New function.
8851 (ppc_emit_ref): New function.
8852 (ppc_emit_const): New function.
8853 (ppc_emit_reg): New function.
8854 (ppc_emit_pop): New function.
8855 (ppc_emit_stack_flush): New function.
8856 (ppc_emit_swap): New function.
8857 (ppc_emit_stack_adjust): New function.
8858 (ppc_emit_call): New function.
8859 (ppc_emit_int_call_1): New function.
8860 (ppc_emit_void_call_2): New function.
8861 (ppc_emit_if_goto): New function.
8862 (ppc_emit_goto): New function.
8863 (ppc_emit_eq_goto): New function.
8864 (ppc_emit_ne_goto): New function.
8865 (ppc_emit_lt_goto): New function.
8866 (ppc_emit_le_goto): New function.
8867 (ppc_emit_gt_goto): New function.
8868 (ppc_emit_ge_goto): New function.
8869 (ppc_write_goto_address): New function.
8870 (ppc_emit_ops_impl): New static variable.
8871 (ppc64v1_emit_prologue): New function.
8872 (ppc64v2_emit_prologue): New function.
8873 (ppc64_emit_epilogue): New function.
8874 (ppc64_emit_add): New function.
8875 (ppc64_emit_sub): New function.
8876 (ppc64_emit_mul): New function.
8877 (ppc64_emit_lsh): New function.
8878 (ppc64_emit_rsh_signed): New function.
8879 (ppc64_emit_rsh_unsigned): New function.
8880 (ppc64_emit_ext): New function.
8881 (ppc64_emit_zero_ext): New function.
8882 (ppc64_emit_log_not): New function.
8883 (ppc64_emit_bit_and): New function.
8884 (ppc64_emit_bit_or): New function.
8885 (ppc64_emit_bit_xor): New function.
8886 (ppc64_emit_bit_not): New function.
8887 (ppc64_emit_equal): New function.
8888 (ppc64_emit_less_signed): New function.
8889 (ppc64_emit_less_unsigned): New function.
8890 (ppc64_emit_ref): New function.
8891 (ppc64_emit_const): New function.
8892 (ppc64v1_emit_reg): New function.
8893 (ppc64v2_emit_reg): New function.
8894 (ppc64_emit_pop): New function.
8895 (ppc64_emit_stack_flush): New function.
8896 (ppc64_emit_swap): New function.
8897 (ppc64v1_emit_call): New function.
8898 (ppc64v2_emit_call): New function.
8899 (ppc64v1_emit_int_call_1): New function.
8900 (ppc64v2_emit_int_call_1): New function.
8901 (ppc64v1_emit_void_call_2): New function.
8902 (ppc64v2_emit_void_call_2): New function.
8903 (ppc64_emit_if_goto): New function.
8904 (ppc64_emit_eq_goto): New function.
8905 (ppc64_emit_ne_goto): New function.
8906 (ppc64_emit_lt_goto): New function.
8907 (ppc64_emit_le_goto): New function.
8908 (ppc64_emit_gt_goto): New function.
8909 (ppc64_emit_ge_goto): New function.
8910 (ppc64v1_emit_ops_impl): New static variable.
8911 (ppc64v2_emit_ops_impl): New static variable.
8912 (ppc_emit_ops): New function.
8913 (linux_low_target): Wire in ppc_emit_ops.
8914
8915 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
8916 Marcin Kościelnicki <koriakin@0x04.net>
8917
8918 PR/17221
8919 * Makefile.in: Add powerpc-*-ipa.o
8920 * configure.srv: Add ipa_obj for powerpc*-linux.
8921 * linux-ppc-ipa.c: New file.
8922 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
8923 includes.
8924 (PPC_FIELD): New macro.
8925 (PPC_SEXT): New macro.
8926 (PPC_OP6): New macro.
8927 (PPC_BO): New macro.
8928 (PPC_LI): New macro.
8929 (PPC_BD): New macro.
8930 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
8931 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
8932 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
8933 (ppc_get_thread_area): New function.
8934 (is_elfv2_inferior): New function.
8935 (gen_ds_form): New function.
8936 (GEN_STD): New macro.
8937 (GEN_STDU): New macro.
8938 (GEN_LD): New macro.
8939 (GEN_LDU): New macro.
8940 (gen_d_form): New function.
8941 (GEN_ADDI): New macro.
8942 (GEN_ADDIS): New macro.
8943 (GEN_LI): New macro.
8944 (GEN_LIS): New macro.
8945 (GEN_ORI): New macro.
8946 (GEN_ORIS): New macro.
8947 (GEN_LWZ): New macro.
8948 (GEN_STW): New macro.
8949 (GEN_STWU): New macro.
8950 (gen_xfx_form): New function.
8951 (GEN_MFSPR): New macro.
8952 (GEN_MTSPR): New macro.
8953 (GEN_MFCR): New macro.
8954 (GEN_MTCR): New macro.
8955 (GEN_SYNC): New macro.
8956 (GEN_LWSYNC): New macro.
8957 (gen_x_form): New function.
8958 (GEN_OR): New macro.
8959 (GEN_MR): New macro.
8960 (GEN_LWARX): New macro.
8961 (GEN_STWCX): New macro.
8962 (GEN_CMPW): New macro.
8963 (gen_md_form): New function.
8964 (GEN_RLDICL): New macro.
8965 (GEN_RLDICR): New macro.
8966 (gen_i_form): New function.
8967 (GEN_B): New macro.
8968 (GEN_BL): New macro.
8969 (gen_b_form): New function.
8970 (GEN_BNE): New macro.
8971 (GEN_LOAD): New macro.
8972 (GEN_STORE): New macro.
8973 (gen_limm): New function.
8974 (gen_atomic_xchg): New function.
8975 (gen_call): New function.
8976 (ppc_relocate_instruction): New function.
8977 (ppc_install_fast_tracepoint_jump_pad): New function.
8978 (ppc_get_min_fast_tracepoint_insn_len): New function.
8979 (ppc_get_ipa_tdesc_idx): New function.
8980 (the_low_target): Wire in the new functions.
8981 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
8982 tdescs.
8983 * linux-ppc-tdesc.h: New file.
8984
8985 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8986
8987 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8988 (alloc_jump_pad_buffer): New function.
8989 * linux-amd64-ipa.c: Add <sys/mman.h> include.
8990 (alloc_jump_pad_buffer): New function.
8991 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
8992 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8993 (alloc_jump_pad_buffer): New function.
8994 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
8995 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
8996 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
8997 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
8998
8999 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
9000
9001 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
9002 * linux-amd64-ipa.c: Likewise.
9003 * linux-i386-ipa.c: Likewise.
9004 * linux-s390-ipa.c: Likewise.
9005 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
9006 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
9007 set_trace_state_variable_value_ptr.
9008 (struct ipa_sym_addresses): Likewise.
9009 (symbol_list): Likewise.
9010 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
9011 accessing gdb_collect directly.
9012 (gdb_collect_ptr_type): New typedef.
9013 (get_raw_reg_ptr_type): New typedef.
9014 (get_trace_state_variable_value_ptr_type): New typedef.
9015 (set_trace_state_variable_value_ptr_type): New typedef.
9016 (gdb_collect_ptr): New global.
9017 (get_raw_reg_ptr): New global.
9018 (get_trace_state_variable_value_ptr): New global.
9019 (set_trace_state_variable_value_ptr): New global.
9020 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
9021 accessing get_raw_reg directly.
9022 (get_get_tsv_func_addr): Likewise for
9023 get_trace_state_variable_value_ptr.
9024 (get_set_tsv_func_addr): Likewise for
9025 set_trace_state_variable_value_ptr.
9026 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
9027
9028 2016-03-30 Simon Marchi <simon.marchi@ericsson.com>
9029
9030 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
9031
9032 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
9033
9034 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
9035 packets.
9036 (relocate_instruction): Remove own_buf.
9037 * server.c (own_buf): Make global.
9038 (handle_v_requests): Make global.
9039 * server.h (own_buf): New declaration.
9040 (handle_v_requests): New prototype.
9041
9042 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
9043
9044 PR 18377
9045 * linux-s390-low.c (add_insns): New function.
9046 (s390_emit_prologue): New function.
9047 (s390_emit_epilogue): New function.
9048 (s390_emit_add): New function.
9049 (s390_emit_sub): New function.
9050 (s390_emit_mul): New function.
9051 (s390_emit_lsh): New function.
9052 (s390_emit_rsh_signed): New function.
9053 (s390_emit_rsh_unsigned): New function.
9054 (s390_emit_ext): New function.
9055 (s390_emit_log_not): New function.
9056 (s390_emit_bit_and): New function.
9057 (s390_emit_bit_or): New function.
9058 (s390_emit_bit_xor): New function.
9059 (s390_emit_bit_not): New function.
9060 (s390_emit_equal): New function.
9061 (s390_emit_less_signed): New function.
9062 (s390_emit_less_unsigned): New function.
9063 (s390_emit_ref): New function.
9064 (s390_emit_if_goto): New function.
9065 (s390_emit_goto): New function.
9066 (s390_write_goto_address): New function.
9067 (s390_emit_litpool): New function.
9068 (s390_emit_const): New function.
9069 (s390_emit_call): New function.
9070 (s390_emit_reg): New function.
9071 (s390_emit_pop): New function.
9072 (s390_emit_stack_flush): New function.
9073 (s390_emit_zero_ext): New function.
9074 (s390_emit_swap): New function.
9075 (s390_emit_stack_adjust): New function.
9076 (s390_emit_set_r2): New function.
9077 (s390_emit_int_call_1): New function.
9078 (s390_emit_void_call_2): New function.
9079 (s390_emit_eq_goto): New function.
9080 (s390_emit_ne_goto): New function.
9081 (s390_emit_lt_goto): New function.
9082 (s390_emit_le_goto): New function.
9083 (s390_emit_gt_goto): New function.
9084 (s390_emit_ge_goto): New function.
9085 (s390x_emit_prologue): New function.
9086 (s390x_emit_epilogue): New function.
9087 (s390x_emit_add): New function.
9088 (s390x_emit_sub): New function.
9089 (s390x_emit_mul): New function.
9090 (s390x_emit_lsh): New function.
9091 (s390x_emit_rsh_signed): New function.
9092 (s390x_emit_rsh_unsigned): New function.
9093 (s390x_emit_ext): New function.
9094 (s390x_emit_log_not): New function.
9095 (s390x_emit_bit_and): New function.
9096 (s390x_emit_bit_or): New function.
9097 (s390x_emit_bit_xor): New function.
9098 (s390x_emit_bit_not): New function.
9099 (s390x_emit_equal): New function.
9100 (s390x_emit_less_signed): New function.
9101 (s390x_emit_less_unsigned): New function.
9102 (s390x_emit_ref): New function.
9103 (s390x_emit_if_goto): New function.
9104 (s390x_emit_const): New function.
9105 (s390x_emit_call): New function.
9106 (s390x_emit_reg): New function.
9107 (s390x_emit_pop): New function.
9108 (s390x_emit_stack_flush): New function.
9109 (s390x_emit_zero_ext): New function.
9110 (s390x_emit_swap): New function.
9111 (s390x_emit_stack_adjust): New function.
9112 (s390x_emit_int_call_1): New function.
9113 (s390x_emit_void_call_2): New function.
9114 (s390x_emit_eq_goto): New function.
9115 (s390x_emit_ne_goto): New function.
9116 (s390x_emit_lt_goto): New function.
9117 (s390x_emit_le_goto): New function.
9118 (s390x_emit_gt_goto): New function.
9119 (s390x_emit_ge_goto): New function.
9120 (s390_emit_ops): New function.
9121 (struct linux_target_ops): Fill in emit_ops hook.
9122
9123 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
9124
9125 PR 18377
9126 * Makefile.in: Add s390 IPA files.
9127 * configure.srv: Build IPA for s390.
9128 * linux-s390-ipa.c: New file.
9129 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
9130 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
9131 (tdesc_s390_linux32): Likewise.
9132 (init_registers_s390_linux32v1): Likewise.
9133 (tdesc_s390_linux32v1): Likewise.
9134 (init_registers_s390_linux32v2): Likewise.
9135 (tdesc_s390_linux32v2): Likewise.
9136 (init_registers_s390_linux64): Likewise.
9137 (tdesc_s390_linux64): Likewise.
9138 (init_registers_s390_linux64v1): Likewise.
9139 (tdesc_s390_linux64v1): Likewise.
9140 (init_registers_s390_linux64v2): Likewise.
9141 (tdesc_s390_linux64v2): Likewise.
9142 (init_registers_s390_te_linux64): Likewise.
9143 (tdesc_s390_te_linux64): Likewise.
9144 (init_registers_s390_vx_linux64): Likewise.
9145 (tdesc_s390_vx_linux64): Likewise.
9146 (init_registers_s390_tevx_linux64): Likewise.
9147 (tdesc_s390_tevx_linux64): Likewise.
9148 (init_registers_s390x_linux64): Likewise.
9149 (tdesc_s390x_linux64): Likewise.
9150 (init_registers_s390x_linux64v1): Likewise.
9151 (tdesc_s390x_linux64v1): Likewise.
9152 (init_registers_s390x_linux64v2): Likewise.
9153 (tdesc_s390x_linux64v2): Likewise.
9154 (init_registers_s390x_te_linux64): Likewise.
9155 (tdesc_s390x_te_linux64): Likewise.
9156 (init_registers_s390x_vx_linux64): Likewise.
9157 (tdesc_s390x_vx_linux64): Likewise.
9158 (init_registers_s390x_tevx_linux64): Likewise.
9159 (tdesc_s390x_tevx_linux64): Likewise.
9160 (have_hwcap_s390_vx): New static variable.
9161 (s390_arch_setup): Fill have_hwcap_s390_vx.
9162 (s390_get_thread_area): New function.
9163 (s390_ft_entry_gpr_esa): New const.
9164 (s390_ft_entry_gpr_zarch): New const.
9165 (s390_ft_entry_misc): New const.
9166 (s390_ft_entry_fr): New const.
9167 (s390_ft_entry_vr): New const.
9168 (s390_ft_main_31): New const.
9169 (s390_ft_main_64): New const.
9170 (s390_ft_exit_fr): New const.
9171 (s390_ft_exit_vr): New const.
9172 (s390_ft_exit_misc): New const.
9173 (s390_ft_exit_gpr_esa): New const.
9174 (s390_ft_exit_gpr_zarch): New const.
9175 (append_insns): New function.
9176 (s390_relocate_instruction): New function.
9177 (s390_install_fast_tracepoint_jump_pad): New function.
9178 (s390_get_min_fast_tracepoint_insn_len): New function.
9179 (s390_get_ipa_tdesc_idx): New function.
9180 (struct linux_target_ops): Wire in the above functions.
9181 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
9182 * linux-s390-tdesc.h: New file.
9183
9184 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
9185
9186 * linux-s390-low.c (s390_supports_tracepoints): New function.
9187 (struct linux_target_ops): Fill supports_tracepoints hook.
9188
9189 2016-03-18 Yao Qi <yao.qi@linaro.org>
9190
9191 * linux-low.c (lwp_signal_can_be_delivered): New function.
9192 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
9193
9194 2016-03-18 Yao Qi <yao.qi@linaro.org>
9195
9196 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
9197 0 if signal is enqueued. Remove 'signal' from one debugging
9198 message. Move one debugging message to some lines below.
9199 Remove code setting 'signal' to 0.
9200
9201 2016-03-18 Yao Qi <yao.qi@linaro.org>
9202
9203 * linux-low.c (linux_low_filter_event): Remove redundant
9204 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
9205
9206 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
9207
9208 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
9209 (struct linux_target_ops): Wire in the above.
9210
9211 2016-03-03 Yao Qi <yao.qi@linaro.org>
9212
9213 * linux-low.c: Update comments to start_step_over.
9214
9215 2016-03-03 Yao Qi <yao.qi@linaro.org>
9216
9217 PR server/19736
9218 * linux-low.c (handle_extended_wait): Set child suspended
9219 if event_lwp->bp_reinsert isn't zero.
9220
9221 2016-03-02 Yao Qi <yao.qi@linaro.org>
9222
9223 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
9224 enqueue_pending_signal.
9225
9226 2016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
9227
9228 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
9229 is actually loaded.
9230
9231 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
9232
9233 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
9234 (s390_regmap_3264) [!__s390x__]: New global.
9235 (s390_collect_ptrace_register): Skip map entries containing -1.
9236 (s390_supply_ptrace_register): Ditto.
9237 (s390_fill_gprs_high): New function.
9238 (s390_store_gprs_high): New function.
9239 (s390_regsets): Add NT_S390_HIGH_GPRS.
9240 (s390_get_hwcap): Enable on 31-bit.
9241 (have_hwcap_s390_high_gprs): Enable on 31-bit.
9242 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
9243 Detect NT_S390_HIGH_GPRS.
9244 (s390_usrregs_info_3264): Enable on 31-bit.
9245 (s390_regs_info): Enable regs_info_3264 on 31-bit.
9246 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
9247
9248 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
9249
9250 PR gdb/13808
9251 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
9252 * configure.srv: Ditto.
9253 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
9254 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
9255 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
9256 (init_registers_amd64_linux): Remove prototype.
9257 (tdesc_amd64_linux): Remove declaration.
9258 (get_ipa_tdesc): New function.
9259 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
9260 initialize remaining tdescs.
9261 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
9262 (init_registers_i386_linux): Remove prototype.
9263 (tdesc_i386_linux): Remove declaration.
9264 (get_ipa_tdesc): New function.
9265 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
9266 initialize remaining tdescs.
9267 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
9268 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
9269 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
9270 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
9271 (x86_get_ipa_tdesc_idx): New function.
9272 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
9273 * linux-x86-tdesc.h: New file.
9274 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
9275 (target_get_ipa_tdesc_idx): New macro.
9276 * tracepoint.c (ipa_tdesc_idx): New macro.
9277 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
9278 (symbol_list): Add ipa_tdesc_idx.
9279 (cmd_qtstart): Write ipa_tdesc_idx in the target.
9280 (ipa_tdesc): Remove.
9281 (ipa_tdesc_idx): New variable.
9282 (get_context_regcache): Use get_ipa_tdesc.
9283 (gdb_collect): Ditto.
9284 (gdb_probe): Ditto.
9285 * tracepoint.h (get_ipa_tdesc): New prototype.
9286 (ipa_tdesc): Remove.
9287
9288 2016-02-24 Pedro Alves <palves@redhat.com>
9289
9290 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
9291 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
9292 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
9293 Factor out common code between the USE_SIGTRAP_SIGINFO and
9294 !USE_SIGTRAP_SIGINFO blocks.
9295 (linux_low_filter_event): Call save_stop_reason instead of
9296 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
9297 Update comments.
9298 (linux_wait_1): Update comments.
9299
9300 2016-02-24 Wei-cheng Wang <cole945@gmail.com>
9301
9302 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
9303 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
9304 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
9305 ppc_insert_point, ppc_remove_point.
9306
9307 2016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
9308
9309 * linux-s390-low.c (s390_supports_z_point_type): New function.
9310 (struct linux_target_ops): Wire s390_supports_z_point_type in.
9311
9312 2016-02-16 Yao Qi <yao.qi@linaro.org>
9313
9314 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
9315 PC. Get pc from regcache_read_pc.
9316
9317 2016-02-12 Yao Qi <yao.qi@linaro.org>
9318
9319 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
9320 or linux_get_pc_32bit.
9321 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
9322
9323 2016-02-12 Yao Qi <yao.qi@linaro.org>
9324
9325 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
9326 arm_linux_get_next_pcs_fixup.
9327
9328 2016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
9329
9330 * tracepoint.c (x_tracepoint_action_download): Change
9331 write_inferior_data_ptr to write_inferior_data_pointer.
9332 (cmd_qtstart): Likewise.
9333 (write_inferior_data_ptr): Remove.
9334 (download_agent_expr): Change write_inferior_data_ptr to
9335 write_inferior_data_pointer.
9336 (download_tracepoint_1): Likewise.
9337 (download_tracepoint): Likewise.
9338 (download_trace_state_variables): Likewise.
9339
9340 2016-02-11 Wei-cheng Wang <cole945@gmail.com>
9341 Marcin Kościelnicki <koriakin@0x04.net>
9342
9343 * tracepoint.c (struct tracepoint_action_ops): Remove.
9344 (struct tracepoint_action): Remove ops.
9345 (m_tracepoint_action_download, r_tracepoint_action_download)
9346 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
9347 size and offset accordingly.
9348 (m_tracepoint_action_ops, r_tracepoint_action_ops)
9349 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
9350 (tracepoint_action_send, tracepoint_action_download): New functions.
9351 Helpers for trace action handlers.
9352 (add_tracepoint_action): Remove setup actions ops.
9353 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
9354
9355 2016-02-10 Yao Qi <yao.qi@linaro.org>
9356
9357 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
9358
9359 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
9360
9361 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
9362 to AC_OUTPUT.
9363 * configure: Regenerate.
9364
9365 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
9366
9367 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
9368 void * to gdb_byte *.
9369 * linux-low.c (siginfo_fixup): Likewise.
9370 (linux_xfer_siginfo): Likewise.
9371 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
9372 Likewise.
9373 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
9374
9375 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
9376
9377 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
9378 to srv_tgtobj.
9379 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
9380 to srv_tgtobj.
9381 * linux-x86-low.c [__x86_64__]: Include
9382 "nat/amd64-linux-siginfo.h".
9383 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
9384 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
9385 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
9386 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
9387 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
9388 (cpt_si_fd, si_timerid, si_overrun): Move from
9389 nat/amd64-linux-siginfo.c.
9390 * Makefile.in (amd64-linux-siginfo.o:): New rule.
9391
9392 2016-01-28 Simon Marchi <simon.marchi@ericsson.com>
9393
9394 * server.c (skip_to_semicolon): Remove.
9395 (process_point_options): Use strchrnul instead of
9396 skip_to_semicolon.
9397
9398 2016-01-26 Yao Qi <yao.qi@linaro.org>
9399
9400 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
9401 * linux-low.c (install_software_single_step_breakpoints): Don't
9402 call regcache_read_pc.
9403 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
9404 argument pc.
9405
9406 2016-01-26 Yao Qi <yao.qi@linaro.org>
9407
9408 * linux-low.c (install_software_single_step_breakpoints): Call
9409 regcache_read_pc instead of get_pc.
9410
9411 2016-01-26 Yao Qi <yao.qi@linaro.org>
9412
9413 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
9414 (unblock_async_io): Rename to ...
9415 (block_unblock_async_io): ... it. New function.
9416 (enable_async_io): Don't install SIGIO handler. Unblock it
9417 instead.
9418 (disable_async_io): Don't ignore SIGIO. Block it instead.
9419 (initialize_async_io): Install SIGIO handler. Don't call
9420 unblock_async_io.
9421
9422 2016-01-26 Yao Qi <yao.qi@linaro.org>
9423
9424 * remote-utils.c (getpkt): If the buffer isn't empty, and the
9425 first character is '\003', call *the_target->request_interrupt.
9426
9427 2016-01-25 Yao Qi <yao.qi@linaro.org>
9428
9429 * remote-utils.c (new_thread_notify): Remove.
9430 (dead_thread_notify): Likewise.
9431 * remote-utils.h (new_thread_notify): Remove declaration.
9432 (dead_thread_notify): Likewise.
9433
9434 2016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
9435
9436 * gdb.trace/pending.exp: Fix expected message on continue.
9437
9438 2016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
9439
9440 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
9441 it works properly on big-endian machines where sizeof (CORE_ADDR)
9442 != sizeof (void *).
9443
9444 2016-01-21 Pedro Alves <palves@redhat.com>
9445
9446 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
9447 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
9448 * configure: Regenerate.
9449
9450 2016-01-21 Yao Qi <yao.qi@linaro.org>
9451
9452 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
9453 is_thumb and set it according to CPSR saved on the stack.
9454 (get_next_pcs_syscall_next_pc): Pass is_thumb to
9455 arm_sigreturn_next_pc.
9456
9457 2016-01-18 Yao Qi <yao.qi@linaro.org>
9458
9459 * linux-low.c (linux_set_pc_64bit): New function.
9460 (linux_get_pc_64bit): New function.
9461 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
9462 Declare.
9463 * linux-sparc-low.c (debug_threads): Remove declaration.
9464 (sparc_get_pc): Remove.
9465 (the_low_target): Use linux_get_pc_64bit instead of
9466 sparc_get_pc.
9467 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
9468 (the_low_target): Use linux_get_pc_64bit and
9469 linux_set_pc_64bit.
9470
9471 2016-01-18 Yao Qi <yao.qi@linaro.org>
9472
9473 * linux-arm-low.c (debug_threads): Remove declaration.
9474 (arm_get_pc, arm_set_pc): Remove.
9475 (the_low_target): Use linux_get_pc_32bit and
9476 linux_set_pc_32bit.
9477 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
9478 (the_low_target): Use linux_get_pc_32bit and
9479 linux_set_pc_32bit.
9480 * linux-cris-low.c (debug_threads): Remove declaration.
9481 (cris_get_pc, cris_set_pc,): Remove.
9482 (the_low_target): Use linux_get_pc_32bit and
9483 linux_set_pc_32bit.
9484 * linux-crisv32-low.c (debug_threads): Remove declaration.
9485 (cris_get_pc, cris_set_pc): Remove.
9486 (the_low_target): Use linux_get_pc_32bit and
9487 linux_set_pc_32bit.
9488 * linux-low.c: Include inttypes.h.
9489 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
9490 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
9491 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
9492 (the_low_target): Use linux_get_pc_32bit and
9493 linux_set_pc_32bit.
9494 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
9495 (the_low_target): Use linux_get_pc_32bit and
9496 linux_set_pc_32bit.
9497 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
9498 (the_low_target): Use linux_get_pc_32bit and
9499 linux_set_pc_32bit.
9500 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
9501 (the_low_target): Use linux_get_pc_32bit and
9502 linux_set_pc_32bit.
9503 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
9504 (the_low_target): Use linux_get_pc_32bit and
9505 linux_set_pc_32bit.
9506
9507 2016-01-18 Gary Benson <gbenson@redhat.com>
9508
9509 * configure.ac (AC_FUNC_FORK): New check.
9510 * config.in: Regenerate.
9511 * configure: Likewise.
9512
9513 2016-01-14 Yao Qi <yao.qi@linaro.org>
9514
9515 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
9516 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
9517 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
9518 arm_get_next_pcs_ctor.
9519
9520 2016-01-12 Josh Stone <jistone@redhat.com>
9521 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9522
9523 * inferiors.h: Include "gdb_vecs.h".
9524 (struct process_info): Add syscalls_to_catch.
9525 * inferiors.c (remove_process): Free syscalls_to_catch.
9526 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
9527 syscall_return stops.
9528 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
9529 * server.c (handle_general_set): Handle QCatchSyscalls.
9530 (handle_query): Report support for QCatchSyscalls.
9531 * target.h (struct target_ops): Add supports_catch_syscall.
9532 (target_supports_catch_syscall): New macro.
9533 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
9534 (struct lwp_info): Add syscall_state.
9535 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
9536 Maintain syscall_state and syscalls_to_catch across exec.
9537 (get_syscall_trapinfo): New function, proxy to the_low_target.
9538 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
9539 (linux_low_filter_event): Toggle syscall_state entry/return for
9540 syscall traps, and set it ignored for all others.
9541 (gdb_catching_syscalls_p): New function.
9542 (gdb_catch_this_syscall_p): New function.
9543 (linux_wait_1): Handle SYSCALL_SIGTRAP.
9544 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
9545 (linux_supports_catch_syscall): New function.
9546 (linux_target_ops): Install it.
9547 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
9548 (the_low_target): Install it.
9549
9550 2016-01-12 Mike Frysinger <vapier@gentoo.org>
9551
9552 * acinclude.m4: Include new ../warning.m4 file.
9553 * configure: Regenerated.
9554 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
9555
9556 2016-01-12 Mike Frysinger <vapier@gentoo.org>
9557
9558 * ax.c (is_goto_target): Mark static.
9559 * linux-low.c (register_addr): Likewise.
9560 (linux_fetch_registers, linux_store_registers): Likewise.
9561 * mem-break.c (any_persistent_commands): Fix old prototype.
9562 (add_commands_to_breakpoint): Mark static.
9563 * regcache.c (find_register_by_name): Delete unused func.
9564 * remote-utils.c (hex_or_minus_one): Mark static.
9565 * server.c (monitor_show_help): Mark static.
9566 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
9567 handle_v_requests): Likewise.
9568
9569 2016-01-12 Pedro Alves <palves@redhat.com>
9570
9571 Remove use of the registered trademark symbol throughout.
9572
9573 2016-01-08 Yao Qi <yao.qi@linaro.org>
9574
9575 * remote-utils.c (getpkt): If c is '\003', call target hook
9576 request_interrupt.
9577
9578 2016-01-06 Yao Qi <yao.qi@linaro.org>
9579
9580 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
9581 linux-aarch32-low.c.
9582 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9583 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
9584 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9585 (thumb2_breakpoint): Declare.
9586 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
9587 linux-aarch32-low.h.
9588 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9589 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
9590 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9591
9592 2016-01-01 Joel Brobecker <brobecker@adacore.com>
9593
9594 * gdbreplay.c (gdbreplay_version): Change copyright year in
9595 version message.
9596 * server.c (gdbserver_version): Likewise.
9597
9598 2015-12-28 Patrick Palka <patrick@parcs.ath.cx>
9599
9600 * server.c (crc32_table): Delete.
9601 (crc32): Use libiberty's xcrc32 function.
9602
9603 2015-12-22 Joel Brobecker <brobecker@adacore.com>
9604
9605 * lynx-low.c (lynx_delete_thread_callback): New function.
9606 (lynx_mourn): Properly delete our process and all of its
9607 threads. Remove call to clear_inferiors.
9608
9609 2015-12-22 Joel Brobecker <brobecker@adacore.com>
9610
9611 * target.c (thread_search_callback): Add check that
9612 the thread_stopped target callback is not NULL before
9613 calling it.
9614
9615 2015-12-21 Yao Qi <yao.qi@linaro.org>
9616
9617 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
9618 arm breakpoint.
9619
9620 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9621
9622 * server.c (handle_query): Call target_supports_software_single_step.
9623
9624 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9625
9626 * linux-low.c (single_step): New function.
9627 (linux_resume_one_lwp_throw): Call single_step.
9628 (start_step_over): Likewise.
9629
9630 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9631
9632 * Makefile.in (SFILES): Append arch/arm-linux.c,
9633 arch/arm-get-next-pcs.c.
9634 (arm-linux.o): New rule.
9635 (arm-get-next-pcs.o): New rule.
9636 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
9637 arm-linux.o.
9638 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
9639 to linux-aarch32-low.c.
9640 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9641 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9642 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9643 (thumb2_breakpoint_len): Likewise.
9644 (arm_is_thumb_mode): Make non-static.
9645 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
9646 from linux-aarch32-low.c.
9647 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9648 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9649 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9650 (thumb2_breakpoint_len): Likewise.
9651 (arm_is_thumb_mode): New declaration.
9652 * linux-arm-low.c: Include arch/arm-linux.h
9653 aarch/arm-get-next-pcs.h, sys/syscall.h.
9654 (get_next_pcs_ops): New struct.
9655 (get_next_pcs_addr_bits_remove): New function.
9656 (get_next_pcs_is_thumb): New function.
9657 (get_next_pcs_read_memory_unsigned_integer): Likewise.
9658 (arm_sigreturn_next_pc): Likewise.
9659 (get_next_pcs_syscall_next_pc): Likewise.
9660 (arm_gdbserver_get_next_pcs): Likewise.
9661 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
9662 Initialize.
9663 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
9664 * server.h: Include gdb_vecs.h.
9665
9666 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9667
9668 * Makefile.in (SFILES): Append common/common-regcache.c.
9669 (OBS): Append common-regcache.o.
9670 (common-regcache.o): New rule.
9671 * regcache.c (init_register_cache): Initialize cache to
9672 REG_UNAVAILABLE.
9673 (regcache_raw_read_unsigned): New function.
9674 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
9675 register_status enum.
9676
9677 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9678
9679 * linux-aarch64-low.c (the_low_targets): Rename
9680 breakpoint_reinsert_addr to get_next_pcs.
9681 * linux-arm-low.c (the_low_targets): Likewise.
9682 * linux-bfin-low.c (the_low_targets): Likewise.
9683 * linux-cris-low.c (the_low_targets): Likewise.
9684 * linux-crisv32-low.c (the_low_targets): Likewise.
9685 * linux-low.c (can_software_single_step): Likewise.
9686 (install_software_single_step_breakpoints): New function.
9687 (start_step_over): Use install_software_single_step_breakpoints.
9688 * linux-low.h: New CORE_ADDR vector.
9689 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
9690 get_next_pcs.
9691 * linux-mips-low.c (the_low_targets): Likewise.
9692 * linux-nios2-low.c (the_low_targets): Likewise.
9693 * linux-sparc-low.c (the_low_targets): Likewise.
9694
9695 2015-12-17 Pedro Alves <palves@redhat.com>
9696
9697 * linux-low.c (linux_kill_one_lwp): Remove references to
9698 LinuxThreads.
9699 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
9700 to 'kill'.
9701 (linux_init_signals): Delete.
9702 (initialize_low): Adjust.
9703 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
9704
9705 2015-12-16 Pedro Alves <palves@redhat.com>
9706
9707 * configure.ac (compiler warning flags): When testing a
9708 -Wno-foo option, check whether -Wfoo works instead.
9709 * configure: Regenerate.
9710
9711 2015-12-11 Don Breazeal <donb@codesourcery.com>
9712
9713 * server.c (process_serial_event): Don't exit from gdbserver
9714 in remote mode if there are still active inferiors.
9715
9716 2015-12-11 Yao Qi <yao.qi@linaro.org>
9717
9718 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
9719 arm_breakpoint_at if the process is 32-bit.
9720
9721 2015-12-11 Yao Qi <yao.qi@linaro.org>
9722
9723 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
9724 arm breakpoint.
9725
9726 2015-12-07 Yao Qi <yao.qi@linaro.org>
9727
9728 * configure.srv: Append arm.o to srv_tgtobj for
9729 aarch64*-*-linux* target.
9730 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
9731 from linux-arm-low.c.
9732 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9733 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9734 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9735 (thumb2_breakpoint_len): Likewise.
9736 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
9737 (arm_breakpoint_kinds): Likewise.
9738 (arm_breakpoint_kind_from_pc): Likewise.
9739 (arm_sw_breakpoint_from_kind): Likewise.
9740 (arm_breakpoint_kind_from_current_state): Likewise.
9741 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
9742 (arm_sw_breakpoint_from_kind): Declare.
9743 (arm_breakpoint_kind_from_current_state): Declare.
9744 (arm_breakpoint_at): Declare.
9745 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
9746 arm_sw_breakpoint_from_kind if process is 32-bit.
9747 (aarch64_breakpoint_kind_from_pc): New function.
9748 (aarch64_breakpoint_kind_from_current_state): New function.
9749 (the_low_target): Initialize fields breakpoint_kind_from_pc
9750 and breakpoint_kind_from_current_state.
9751 * linux-arm-low.c (arm_breakpoint_kinds): Move to
9752 linux-aarch32-low.c.
9753 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
9754 (arm_breakpoint, arm_breakpoint_len): Likewise.
9755 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
9756 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9757 (arm_is_thumb_mode): Likewise.
9758 (arm_breakpoint_at): Likewise.
9759 (arm_breakpoint_kind_from_pc): Likewise.
9760 (arm_sw_breakpoint_from_kind): Likewise.
9761 (arm_breakpoint_kind_from_current_state): Likewise.
9762
9763 Revert:
9764 2015-08-04 Yao Qi <yao.qi@linaro.org>
9765
9766 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
9767 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
9768 * server.c (extended_protocol): Remove "static".
9769 * server.h (extended_protocol): Declare it.
9770
9771 2015-12-04 Josh Stone <jistone@redhat.com>
9772
9773 * target.h (struct target_ops) <arch_setup>: Rename to ...
9774 (struct target_ops) <post_create_inferior>: ... this.
9775 (target_arch_setup): Rename to ...
9776 (target_post_create_inferior): ... this, calling post_create_inferior.
9777 * server.c (start_inferior): Update target_arch_setup calls to
9778 target_post_create_inferior.
9779 * linux-low.c (linux_low_ptrace_options): Forward declare.
9780 (linux_arch_setup): Update its comment for general use.
9781 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
9782 (struct linux_target_ops): Use linux_post_create_inferior.
9783 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
9784 to post_create_inferior.
9785 * nto-low.c (struct nto_target_ops): Likewise.
9786 * spu-low.c (struct spu_target_ops): Likewise.
9787 * win32-low.c (struct win32_target_ops): Likewise.
9788
9789 2015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
9790
9791 * linux-arm-low.c: Remove duplicate arch/arm.h include.
9792
9793 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9794
9795 * linux-arm-low.c (arm_reinsert_addr): Remove function.
9796 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
9797 * linux-cris-low.c (cris_reinsert_addr> Remove function.
9798 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9799 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
9800 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9801 * linux-mips-low.c (mips_reinsert_addr): Remove function.
9802 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9803 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
9804 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9805 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
9806 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9807
9808 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9809
9810 * linux-low.c (linux_look_up_symbols): Don't call
9811 linux_supports_traceclone.
9812 * linux-low.h (thread_db_init): Remove use_events argument.
9813 * thread-db.c (thread_db_use_event): Remove global variable.
9814 (struct thread_db) <td_thr_event_enable_p>: Remove field.
9815 (struct thread_db) <td_create_bp>: Remove field.
9816 (thread_db_create_event): Remove function.
9817 (thread_db_enable_reporting): Likewise.
9818 (find_one_thread): Don't check for thread_db_use_events.
9819 (attach_thread): Likewise.
9820 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
9821 (try_thread_db_load_1): Don't check for thread_db_use_events.
9822 (thread_db_init): Remove use_events argument and thread events
9823 handling.
9824 (remove_thread_event_breakpoints): Remove function.
9825 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
9826
9827 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9828
9829 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
9830 New function.
9831 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9832 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
9833 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9834 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
9835 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
9836 Initialize.
9837 * linux-crisv32-low.c (cris_supports_hardware_single_step):
9838 New function.
9839 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9840 * linux-low.c (can_hardware_single_step): Use
9841 supports_hardware_single_step.
9842 (can_software_single_step): New function.
9843 (start_step_over): Call can_software_single_step.
9844 (linux_supports_hardware_single_step): New function.
9845 (struct target_ops) <supports_software_single_step>: Initialize.
9846 * linux-low.h (struct linux_target_ops)
9847 <supports_hardware_single_step>: Initialize.
9848 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
9849 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9850 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
9851 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
9852 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
9853 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9854 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
9855 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9856 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
9857 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
9858 Initialize.
9859 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
9860 (struct linux_target_ops) <tile_supports_hardware_single_step>:
9861 Initialize.
9862 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
9863 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9864 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
9865 New function.
9866 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9867 * target.h (struct target_ops): <supports_software_single_step>:
9868 New field.
9869 (target_supports_software_single_step): New macro.
9870
9871 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9872
9873 * linux-low.c (linux_wait_1): Fix pc advance condition.
9874 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
9875 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
9876
9877 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9878
9879 * linux-arm-low.c (arm_is_thumb_mode): New function.
9880 (arm_breakpoint_at): Use arm_is_thumb_mode.
9881 (arm_breakpoint_kind_from_current_state): New function.
9882 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
9883 Initialize.
9884 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
9885 (linux_breakpoint_kind_from_current_state): New function.
9886 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
9887 * linux-low.h (struct linux_target_ops)
9888 <breakpoint_kind_from_current_state>: New field.
9889 * target.h (struct target_ops): Likewise.
9890 (target_breakpoint_kind_from_current_state): New macro.
9891
9892 2015-11-30 Pedro Alves <palves@redhat.com>
9893
9894 * linux-low.c (linux_resume): Wake up the event loop before
9895 returning.
9896
9897 2015-11-30 Pedro Alves <palves@redhat.com>
9898
9899 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
9900 check.
9901 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
9902 to -1.
9903 * target.c (struct thread_search): New structure.
9904 (thread_search_callback): New function.
9905 (prev_general_thread): New global.
9906 (prepare_to_access_memory, done_accessing_memory): New functions.
9907 * target.h (prepare_to_access_memory, done_accessing_memory):
9908 Replace macros with function declarations.
9909
9910 2015-11-30 Pedro Alves <palves@redhat.com>
9911
9912 PR 14618
9913 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
9914 report TARGET_WAITKIND_NO_RESUMED.
9915 * remote-utils.c (prepare_resume_reply): Handle
9916 TARGET_WAITKIND_NO_RESUMED.
9917 * server.c (report_no_resumed): New global.
9918 (handle_query) <qSupported>: Handle "no-resumed+". Report
9919 "no-resumed+" support.
9920 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
9921 return error if the client doesn't support no-resumed events.
9922 (push_stop_notification): New function.
9923 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
9924 events if the client supports them.
9925
9926 2015-11-30 Pedro Alves <palves@redhat.com>
9927
9928 * linux-low.c (thread_still_has_status_pending_p): Don't check
9929 vCont;t here.
9930 (lwp_resumed): New function.
9931 (status_pending_p_callback): Return early if the LWP is not
9932 supposed to be resumed.
9933
9934 2015-11-30 Pedro Alves <palves@redhat.com>
9935
9936 * linux-low.c (handle_extended_wait): Assert that the LWP's
9937 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
9938 thread create events, leave the new child's status pending.
9939 (linux_low_filter_event): If GDB wants to hear about thread exit
9940 events, leave the LWP marked dead and don't delete it.
9941 (linux_wait_for_event_filtered): Don't check for thread exit.
9942 (filter_exit_event): New function.
9943 (linux_wait_1): Use it, when returning an exit event.
9944 (linux_resume_one_lwp_throw): Assert that the LWP's
9945 waitstatus is TARGET_WAITKIND_IGNORE.
9946 * remote-utils.c (prepare_resume_reply): Handle
9947 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
9948 * server.c (report_thread_events): New global.
9949 (handle_general_set): Handle QThreadEvents.
9950 (handle_query) <qSupported>: Handle and report QThreadEvents+;
9951 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
9952 TARGET_WAITKIND_THREAD_EXITED.
9953 * server.h (report_thread_events): Declare.
9954
9955 2015-11-30 Pedro Alves <palves@redhat.com>
9956
9957 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
9958 the thread's last_resume_kind was resume_stop.
9959
9960 2015-11-30 Pedro Alves <palves@redhat.com>
9961
9962 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
9963 before returning.
9964
9965 2015-11-30 Pedro Alves <palves@redhat.com>
9966
9967 * server.c (handle_v_requests): Handle vCtrlC.
9968
9969 2015-11-30 Pedro Alves <palves@redhat.com>
9970
9971 * gdbthread.h (find_any_thread_of_pid): Declare.
9972 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
9973 functions.
9974 * server.c (handle_query): If current_thread is NULL, look for
9975 another thread of the selected process.
9976
9977 2015-11-26 Daniel Colascione <dancol@dancol.org>
9978 Simon Marchi <simon.marchi@ericsson.com>
9979
9980 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
9981 * server.c (handle_qxfer_threads_worker): Refactor to include thread
9982 name in reply.
9983 * target.h (struct target_ops) <thread_name>: New field.
9984 (target_thread_name): New macro.
9985
9986 2015-11-23 Joel Brobecker <brobecker@adacore.com>
9987
9988 * regcache.h (regcache_invalidate_pid): Add declaration.
9989 * regcache.c (regcache_invalidate_pid): New function, extracted
9990 from regcache_invalidate.
9991 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
9992 Add trivial documentation comment.
9993 * lynx-low.c: Use regcache_invalidate_pid instead of
9994 regcache_invalidate.
9995
9996 2015-11-23 Joel Brobecker <brobecker@adacore.com>
9997
9998 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
9999 and Elf64_auxv_t if the target is Android.
10000
10001 2015-11-22 Doug Evans <xdje42@gmail.com>
10002
10003 * target.h: #include <sys/types.h>.
10004
10005 2015-11-19 Pedro Alves <palves@redhat.com>
10006
10007 * linux-low.c (linux_process_qsupported): Change prototype.
10008 Adjust.
10009 * linux-low.h (struct linux_target_ops) <process_qsupported>:
10010 Change prototype.
10011 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
10012 and adjust to loop over all features.
10013 * server.c (handle_query) <qSupported>: Adjust to call
10014 target_process_qsupported once, passing it a vector of unprocessed
10015 features.
10016 * target.h (struct target_ops) <process_qsupported>: Change
10017 prototype.
10018 (target_process_qsupported): Adjust.
10019
10020 2015-11-19 Pedro Alves <palves@redhat.com>
10021
10022 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
10023 mode.
10024 * configure: Regenerate.
10025
10026 2015-11-19 Pedro Alves <palves@redhat.com>
10027
10028 * configure: Regenerate.
10029
10030 2015-11-19 Yao Qi <yao.qi@linaro.org>
10031
10032 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
10033 type to uint32_t.
10034
10035 2015-11-19 Yao Qi <yao.qi@linaro.org>
10036
10037 * linux-aarch64-low.c (enum aarch64_operand_type): New.
10038 (struct aarch64_operand): Move enum out.
10039
10040 2015-11-19 Yao Qi <yao.qi@linaro.org>
10041
10042 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
10043 struct user_fpsimd_state *.
10044 (aarch64_store_fpregset): Likewise.
10045
10046 2015-11-19 Yao Qi <yao.qi@linaro.org>
10047
10048 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
10049 struct user_pt_regs *.
10050 (aarch64_store_gregset): Likewise.
10051
10052 2015-11-18 Pedro Alves <palves@redhat.com>
10053
10054 * Makefile.in (all_object_files): Add $IPA_OBJS.
10055
10056 2015-11-17 Pedro Alves <palves@redhat.com>
10057
10058 * win32-low.c (win32_resume): Use gdb_signal_from_host,
10059 GDB_SIGNAL_0 and gdb_signal_to_string.
10060
10061 2015-11-17 Pedro Alves <palves@redhat.com>
10062
10063 * win32-low.c (handle_output_debug_string): Remove parameter.
10064 (win32_kill): Remove our_status local and adjust call to
10065 handle_output_debug_string.
10066 (get_child_debug_event): Adjust call to
10067 handle_output_debug_string.
10068
10069 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10070
10071 * linux-mips-low.c (mips_fill_gregset): Add cast.
10072 (mips_store_gregset): Likewise.
10073 (mips_fill_fpregset): Likewise.
10074 (mips_store_fpregset): Likewise.
10075
10076 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10077
10078 * linux-mips-low.c (mips_add_watchpoint): Rename private to
10079 priv.
10080
10081 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10082
10083 * linux-mips-low.c (mips_linux_new_thread): Change type of
10084 watch_type to enum target_hw_bp_type.
10085
10086 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10087
10088 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
10089 Change return type to arm_hwbp_type.
10090
10091 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10092
10093 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
10094 (arm_store_gregset): Likewise.
10095 * linux-arm-low.c (arm_get_hwcap): Likewise.
10096 (arm_read_description): Likewise.
10097
10098 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10099
10100 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
10101
10102 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10103
10104 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
10105 (ppc_fill_vsxregset): Likewise.
10106 (ppc_store_vsxregset): Likewise.
10107 (ppc_fill_vrregset): Likewise.
10108 (ppc_store_vrregset): Likewise.
10109 (ppc_fill_evrregset): Likewise.
10110 (ppc_store_evrregset): Likewise.
10111
10112 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10113
10114 * linux-ppc-low.c (ppc_usrregs_info): Remove
10115 forward-declaration.
10116 (ppc_arch_setup): Move lower in file.
10117
10118 2015-10-30 Simon Marchi <simon.marchi@ericsson.com>
10119
10120 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
10121 (ps_pdwrite): Likewise.
10122
10123 2015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
10124
10125 * linux-arm-low.c (arm_new_thread): Move pointer dereference
10126 to after assert checks.
10127
10128 2015-10-29 Simon Marchi <simon.marchi@ericsson.com>
10129
10130 * proc-service.c (ps_pdread): Add/adjust casts.
10131 (ps_pdwrite): Add/adjust casts.
10132
10133 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
10134
10135 * server.c (handle_search_memory_1): Cast return value of
10136 memmem.
10137
10138 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
10139
10140 * server.c (write_qxfer_response): Change type of data to
10141 gdb_byte *.
10142
10143 2015-10-29 Pedro Alves <palves@redhat.com>
10144
10145 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
10146
10147 2015-10-29 Pedro Alves <palves@redhat.com>
10148
10149 * tracepoint.c (clear_installed_tracepoints): Add casts.
10150
10151 2015-10-29 Pedro Alves <palves@redhat.com>
10152
10153 * server.c (handle_v_cont, process_serial_event): Add enum
10154 gdb_signal casts to signal parsing code.
10155
10156 2015-10-29 Pedro Alves <palves@redhat.com>
10157
10158 * linux-low.h (NULL_REGSET): Define.
10159 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
10160 * linux-arm-low.c (arm_regsets): Likewise.
10161 * linux-crisv32-low.c (cris_regsets): Likewise.
10162 * linux-m68k-low.c (m68k_regsets): Likewise.
10163 * linux-mips-low.c (mips_regsets): Likewise.
10164 * linux-nios2-low.c (nios2_regsets): Likewise.
10165 * linux-ppc-low.c (ppc_regsets): Likewise.
10166 * linux-s390-low.c (s390_regsets): Likewise.
10167 * linux-sh-low.c (sh_regsets): Likewise.
10168 * linux-sparc-low.c (sparc_regsets): Likewise.
10169 * linux-tic6x-low.c (tic6x_regsets): Likewise.
10170 * linux-tile-low.c (tile_regsets): Likewise.
10171 * linux-x86-low.c (x86_regsets): Likewise.
10172 * linux-xtensa-low.c (xtensa_regsets): Likewise.
10173
10174 2015-10-29 Pedro Alves <palves@redhat.com>
10175
10176 * linux-low.h (NULL_REGSET): Define.
10177 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
10178 * linux-arm-low.c (arm_regsets): Likewise.
10179 * linux-crisv32-low.c (cris_regsets): Likewise.
10180 * linux-m68k-low.c (m68k_regsets): Likewise.
10181 * linux-mips-low.c (mips_regsets): Likewise.
10182 * linux-nios2-low.c (nios2_regsets): Likewise.
10183 * linux-ppc-low.c (ppc_regsets): Likewise.
10184 * linux-s390-low.c (s390_regsets): Likewise.
10185 * linux-sh-low.c (sh_regsets): Likewise.
10186 * linux-sparc-low.c (sparc_regsets): Likewise.
10187 * linux-tic6x-low.c (tic6x_regsets): Likewise.
10188 * linux-tile-low.c (tile_regsets): Likewise.
10189 * linux-x86-low.c (x86_regsets): Likewise.
10190 * linux-xtensa-low.c (xtensa_regsets): Likewise.
10191
10192 2015-10-26 Doug Evans <dje@google.com>
10193
10194 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
10195
10196 2015-10-26 Doug Evans <dje@google.com>
10197
10198 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
10199
10200 2015-10-26 Doug Evans <dje@google.com>
10201
10202 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
10203 for debug_printf.
10204 (attach_thread, find_new_threads_callback): Ditto.
10205
10206 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
10207
10208 * mem-break.h (set_breakpoint_data): Remove.
10209
10210 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
10211
10212 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
10213 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
10214 (initialize_low): Remove set_breakpoint_data call.
10215 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
10216 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
10217 (initialize_low): Remove set_breakpoint_data call.
10218 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
10219 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
10220 (initialize_low): Remove set_breakpoint_data call.
10221
10222 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
10223
10224 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
10225 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
10226 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
10227 * target.h (target_breakpoint_kind_from_pc): New macro.
10228
10229 2015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
10230
10231 * linux-low.c (default_breakpoint_kind_from_pc): New function.
10232 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
10233 the default breakpoint kind.
10234
10235 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10236
10237 * linux-arm-low.c (arm_supports_z_point_type): Add software
10238 breakpoint support.
10239
10240 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10241
10242 * linux-arm-low.c: Refactor breakpoint definitions.
10243 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
10244 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
10245
10246 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10247
10248 * Makefile.in: Add arm.c/o.
10249 * configure.srv: Likewise.
10250 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
10251 (arm_breakpoint_kind_from_pc): New function.
10252 (arm_sw_breakpoint_from_kind): Return proper kind.
10253 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
10254
10255 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10256
10257 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
10258 removal.
10259 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
10260 (struct raw_breakpoint) <size>: Remove.
10261 (struct raw_breakpoint) <kind>: Add.
10262 (bp_size): New function.
10263 (bp_opcode): Likewise.
10264 (find_raw_breakpoint_at): Adjust for kind.
10265 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
10266 (remove_memory_breakpoint): Adjust for kind call bp_size.
10267 (set_raw_breakpoint_at): Adjust for kind.
10268 (set_breakpoint): Likewise.
10269 (set_breakpoint_at): Call breakpoint_kind_from_pc.
10270 (delete_raw_breakpoint): Adjust for kind.
10271 (delete_breakpoint): Likewise.
10272 (find_gdb_breakpoint): Likewise.
10273 (set_gdb_breakpoint_1): Likewise.
10274 (set_gdb_breakpoint): Likewise.
10275 (delete_gdb_breakpoint_1): Likewise.
10276 (delete_gdb_breakpoint): Likewise.
10277 (uninsert_raw_breakpoint): Likewise.
10278 (reinsert_raw_breakpoint): Likewise.
10279 (set_breakpoint_data): Remove.
10280 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
10281 (check_mem_read): Adjust for kind call bp_size.
10282 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
10283 (clone_one_breakpoint): Adjust for kind.
10284 * mem-break.h (set_gdb_breakpoint): Likewise.
10285 (delete_gdb_breakpoint): Likewise.
10286 * server.c (process_serial_event): Likewise.
10287
10288 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10289
10290 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
10291 (struct linux_target_ops) <breakpoint>: Remove.
10292 (struct linux_target_ops) <breakpoint_len>: Remove.
10293 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10294 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10295 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
10296 (arm_sw_breakpoint_from_kind): New function.
10297 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
10298 (struct linux_target_ops) <breakpoint>: Remove.
10299 (struct linux_target_ops) <breakpoint_len>: Remove.
10300 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10301 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10302 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
10303 (struct linux_target_ops) <breakpoint>: Remove.
10304 (struct linux_target_ops) <breakpoint_len>: Remove.
10305 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10306 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10307 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
10308 (struct linux_target_ops) <breakpoint>: Remove.
10309 (struct linux_target_ops) <breakpoint_len>: Remove.
10310 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10311 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10312 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
10313 and sw_breakpoint_from_kind to increment the pc.
10314 (linux_breakpoint_kind_from_pc): New function.
10315 (linux_sw_breakpoint_from_kind): New function.
10316 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
10317 (initialize_low): Call breakpoint_kind_from_pc and
10318 sw_breakpoint_from_kind to replace breakpoint_data/len.
10319 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
10320 New field.
10321 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
10322 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
10323 (struct linux_target_ops) <breakpoint>: Remove.
10324 (struct linux_target_ops) <breakpoint_len>: Remove.
10325 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10326 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10327 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
10328 (struct linux_target_ops) <breakpoint>: Remove.
10329 (struct linux_target_ops) <breakpoint_len>: Remove.
10330 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10331 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10332 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
10333 (struct linux_target_ops) <breakpoint>: Remove.
10334 (struct linux_target_ops) <breakpoint_len>: Remove.
10335 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10336 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10337 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
10338 (struct linux_target_ops) <breakpoint>: Remove.
10339 (struct linux_target_ops) <breakpoint_len>: Remove.
10340 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10341 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10342 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
10343 (struct linux_target_ops) <breakpoint>: Remove.
10344 (struct linux_target_ops) <breakpoint_len>: Remove.
10345 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10346 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10347 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
10348 (struct linux_target_ops) <breakpoint>: Remove.
10349 (struct linux_target_ops) <breakpoint_len>: Remove.
10350 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10351 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10352 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
10353 (struct linux_target_ops) <breakpoint>: Remove.
10354 (struct linux_target_ops) <breakpoint_len>: Remove.
10355 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10356 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10357 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
10358 (struct linux_target_ops) <breakpoint>: Remove.
10359 (struct linux_target_ops) <breakpoint_len>: Remove.
10360 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10361 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10362 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
10363 (struct linux_target_ops) <breakpoint>: Remove.
10364 (struct linux_target_ops) <breakpoint_len>: Remove.
10365 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10366 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10367 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
10368 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
10369 (struct linux_target_ops) <breakpoint>: Remove.
10370 (struct linux_target_ops) <breakpoint_len>: Remove.
10371 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10372 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10373 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
10374 (struct linux_target_ops) <breakpoint>: Remove.
10375 (struct linux_target_ops) <breakpoint_len>: Remove.
10376 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10377 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10378
10379 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10380
10381 * linux-cris-low.c (cris_get_pc): Remove void arg.
10382
10383 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
10384
10385 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
10386 variable name.
10387
10388 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
10389
10390 * inferiors.c (thread_pid_matches_callback): New function.
10391 (find_thread_process): New function.
10392 (remove_thread): Reset current_thread.
10393 (remove_process): Assert threads have been removed first.
10394
10395 2015-10-15 Yao Qi <yao.qi@linaro.org>
10396
10397 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
10398 if it is 3.
10399 (aarch64_remove_point): Likewise.
10400 * regcache.c (regcache_register_size): New function.
10401
10402 2015-10-12 Yao Qi <yao.qi@linaro.org>
10403
10404 * linux-aarch64-low.c: Update all callers as emit_load_store
10405 is renamed to aarch64_emit_load_store.
10406
10407 2015-10-12 Yao Qi <yao.qi@linaro.org>
10408
10409 * linux-aarch64-low.c: Update all callers of function renaming
10410 from emit_insn to aarch64_emit_insn.
10411
10412 2015-10-12 Yao Qi <yao.qi@linaro.org>
10413
10414 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
10415 arch/aarch64-insn.h.
10416 (struct aarch64_memory_operand): Likewise.
10417 (ENCODE): Likewise.
10418 (emit_insn): Move to arch/aarch64-insn.c.
10419 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
10420 (emit_load_store): Move to arch/aarch64-insn.c.
10421 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
10422 (can_encode_int32): Remove.
10423
10424 2015-10-12 Yao Qi <yao.qi@linaro.org>
10425
10426 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
10427 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
10428 (aarch64_relocate_instruction): Likewise.
10429 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
10430 (struct aarch64_insn_visitor): Likewise.
10431
10432 2015-10-12 Yao Qi <yao.qi@linaro.org>
10433
10434 * linux-aarch64-low.c (struct aarch64_insn_data): New.
10435 (struct aarch64_insn_visitor): New.
10436 (struct aarch64_insn_relocation_data): New.
10437 (aarch64_ftrace_insn_reloc_b): New function.
10438 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
10439 (aarch64_ftrace_insn_reloc_cb): Likewise.
10440 (aarch64_ftrace_insn_reloc_tb): Likewise.
10441 (aarch64_ftrace_insn_reloc_adr): Likewise.
10442 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
10443 (aarch64_ftrace_insn_reloc_others): Likewise.
10444 (visitor): New.
10445 (aarch64_relocate_instruction): Use visitor.
10446
10447 2015-10-12 Yao Qi <yao.qi@linaro.org>
10448
10449 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
10450 int. Add argument buf.
10451 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
10452 aarch64_relocate_instruction.
10453
10454 2015-10-12 Yao Qi <yao.qi@linaro.org>
10455
10456 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
10457 argument insn. Remove local variable insn. Don't call
10458 target_read_uint32.
10459 (aarch64_install_fast_tracepoint_jump_pad): Call
10460 target_read_uint32.
10461
10462 2015-09-30 Yao Qi <yao.qi@linaro.org>
10463
10464 * linux-aarch64-low.c (emit_movk): Shorten a long line.
10465 (emit_load_store_pair): Likewise.
10466
10467 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
10468
10469 * dll.c (match_dll): Add cast(s).
10470 (unloaded_dll): Likewise.
10471 * linux-low.c (second_thread_of_pid_p): Likewise.
10472 (delete_lwp_callback): Likewise.
10473 (count_events_callback): Likewise.
10474 (select_event_lwp_callback): Likewise.
10475 (linux_set_resume_request): Likewise.
10476 * server.c (accumulate_file_name_length): Likewise.
10477 (emit_dll_description): Likewise.
10478 (handle_qxfer_threads_worker): Likewise.
10479 (visit_actioned_threads): Likewise.
10480 * thread-db.c (any_thread_of): Likewise.
10481 * tracepoint.c (same_process_p): Likewise.
10482 (match_blocktype): Likewise.
10483 (build_traceframe_info_xml): Likewise.
10484
10485 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
10486
10487 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
10488 assignment.
10489 (gdb_unparse_agent_expr): Likewise.
10490 * hostio.c (require_data): Likewise.
10491 (handle_pread): Likewise.
10492 * linux-low.c (disable_regset): Likewise.
10493 (fetch_register): Likewise.
10494 (store_register): Likewise.
10495 (get_dynamic): Likewise.
10496 (linux_qxfer_libraries_svr4): Likewise.
10497 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
10498 (set_fast_tracepoint_jump): Likewise.
10499 (uninsert_fast_tracepoint_jumps_at): Likewise.
10500 (reinsert_fast_tracepoint_jumps_at): Likewise.
10501 (validate_inserted_breakpoint): Likewise.
10502 (clone_agent_expr): Likewise.
10503 * regcache.c (init_register_cache): Likewise.
10504 * remote-utils.c (putpkt_binary_1): Likewise.
10505 (decode_M_packet): Likewise.
10506 (decode_X_packet): Likewise.
10507 (look_up_one_symbol): Likewise.
10508 (relocate_instruction): Likewise.
10509 (monitor_output): Likewise.
10510 * server.c (handle_search_memory): Likewise.
10511 (handle_qxfer_exec_file): Likewise.
10512 (handle_qxfer_libraries): Likewise.
10513 (handle_qxfer): Likewise.
10514 (handle_query): Likewise.
10515 (handle_v_cont): Likewise.
10516 (handle_v_run): Likewise.
10517 (captured_main): Likewise.
10518 * target.c (write_inferior_memory): Likewise.
10519 * thread-db.c (try_thread_db_load_from_dir): Likewise.
10520 * tracepoint.c (init_trace_buffer): Likewise.
10521 (add_tracepoint_action): Likewise.
10522 (add_traceframe): Likewise.
10523 (add_traceframe_block): Likewise.
10524 (cmd_qtdpsrc): Likewise.
10525 (cmd_qtdv): Likewise.
10526 (cmd_qtstatus): Likewise.
10527 (response_source): Likewise.
10528 (response_tsv): Likewise.
10529 (cmd_qtnotes): Likewise.
10530 (gdb_collect): Likewise.
10531 (initialize_tracepoint): Likewise.
10532
10533 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10534
10535 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
10536 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
10537 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
10538 <NOP>: New.
10539 (enum aarch64_condition_codes): New enum.
10540 (w0): New static global.
10541 (fp): Likewise.
10542 (lr): Likewise.
10543 (struct aarch64_memory_operand) <type>: New
10544 MEMORY_OPERAND_POSTINDEX type.
10545 (postindex_memory_operand): New helper function.
10546 (emit_ret): New function.
10547 (emit_load_store_pair): New function, factored out of emit_stp
10548 with support for MEMORY_OPERAND_POSTINDEX.
10549 (emit_stp): Rewrite using emit_load_store_pair.
10550 (emit_ldp): New function.
10551 (emit_load_store): Likewise.
10552 (emit_ldr): Mention post-index instruction in comment.
10553 (emit_ldrh): New function.
10554 (emit_ldrb): New function.
10555 (emit_ldrsw): Mention post-index instruction in comment.
10556 (emit_str): Likewise.
10557 (emit_subs): New function.
10558 (emit_cmp): Likewise.
10559 (emit_and): Likewise.
10560 (emit_orr): Likewise.
10561 (emit_orn): Likewise.
10562 (emit_eor): Likewise.
10563 (emit_mvn): Likewise.
10564 (emit_lslv): Likewise.
10565 (emit_lsrv): Likewise.
10566 (emit_asrv): Likewise.
10567 (emit_mul): Likewise.
10568 (emit_sbfm): Likewise.
10569 (emit_sbfx): Likewise.
10570 (emit_ubfm): Likewise.
10571 (emit_ubfx): Likewise.
10572 (emit_csinc): Likewise.
10573 (emit_cset): Likewise.
10574 (emit_nop): Likewise.
10575 (emit_ops_insns): New helper function.
10576 (emit_pop): Likewise.
10577 (emit_push): Likewise.
10578 (aarch64_emit_prologue): New function.
10579 (aarch64_emit_epilogue): Likewise.
10580 (aarch64_emit_add): Likewise.
10581 (aarch64_emit_sub): Likewise.
10582 (aarch64_emit_mul): Likewise.
10583 (aarch64_emit_lsh): Likewise.
10584 (aarch64_emit_rsh_signed): Likewise.
10585 (aarch64_emit_rsh_unsigned): Likewise.
10586 (aarch64_emit_ext): Likewise.
10587 (aarch64_emit_log_not): Likewise.
10588 (aarch64_emit_bit_and): Likewise.
10589 (aarch64_emit_bit_or): Likewise.
10590 (aarch64_emit_bit_xor): Likewise.
10591 (aarch64_emit_bit_not): Likewise.
10592 (aarch64_emit_equal): Likewise.
10593 (aarch64_emit_less_signed): Likewise.
10594 (aarch64_emit_less_unsigned): Likewise.
10595 (aarch64_emit_ref): Likewise.
10596 (aarch64_emit_if_goto): Likewise.
10597 (aarch64_emit_goto): Likewise.
10598 (aarch64_write_goto_address): Likewise.
10599 (aarch64_emit_const): Likewise.
10600 (aarch64_emit_call): Likewise.
10601 (aarch64_emit_reg): Likewise.
10602 (aarch64_emit_pop): Likewise.
10603 (aarch64_emit_stack_flush): Likewise.
10604 (aarch64_emit_zero_ext): Likewise.
10605 (aarch64_emit_swap): Likewise.
10606 (aarch64_emit_stack_adjust): Likewise.
10607 (aarch64_emit_int_call_1): Likewise.
10608 (aarch64_emit_void_call_2): Likewise.
10609 (aarch64_emit_eq_goto): Likewise.
10610 (aarch64_emit_ne_goto): Likewise.
10611 (aarch64_emit_lt_goto): Likewise.
10612 (aarch64_emit_le_goto): Likewise.
10613 (aarch64_emit_gt_goto): Likewise.
10614 (aarch64_emit_ge_got): Likewise.
10615 (aarch64_emit_ops_impl): New static global variable.
10616 (aarch64_emit_ops): New target function, return
10617 &aarch64_emit_ops_impl.
10618 (struct linux_target_ops): Install it.
10619
10620 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10621
10622 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
10623 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
10624 aarch64-ipa.o.
10625 * linux-aarch64-ipa.c: New file.
10626 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
10627 and endian.h.
10628 (aarch64_get_thread_area): New target method.
10629 (extract_signed_bitfield): New helper function.
10630 (aarch64_decode_ldr_literal): New function.
10631 (enum aarch64_opcodes): New enum.
10632 (struct aarch64_register): New struct.
10633 (struct aarch64_operand): New struct.
10634 (x0): New static global.
10635 (x1): Likewise.
10636 (x2): Likewise.
10637 (x3): Likewise.
10638 (x4): Likewise.
10639 (w2): Likewise.
10640 (ip0): Likewise.
10641 (sp): Likewise.
10642 (xzr): Likewise.
10643 (aarch64_register): New helper function.
10644 (register_operand): Likewise.
10645 (immediate_operand): Likewise.
10646 (struct aarch64_memory_operand): New struct.
10647 (offset_memory_operand): New helper function.
10648 (preindex_memory_operand): Likewise.
10649 (enum aarch64_system_control_registers): New enum.
10650 (ENCODE): New macro.
10651 (emit_insn): New helper function.
10652 (emit_b): New function.
10653 (emit_bcond): Likewise.
10654 (emit_cb): Likewise.
10655 (emit_tb): Likewise.
10656 (emit_blr): Likewise.
10657 (emit_stp): Likewise.
10658 (emit_ldp_q_offset): Likewise.
10659 (emit_stp_q_offset): Likewise.
10660 (emit_load_store): Likewise.
10661 (emit_ldr): Likewise.
10662 (emit_ldrsw): Likewise.
10663 (emit_str): Likewise.
10664 (emit_ldaxr): Likewise.
10665 (emit_stxr): Likewise.
10666 (emit_stlr): Likewise.
10667 (emit_data_processing_reg): Likewise.
10668 (emit_data_processing): Likewise.
10669 (emit_add): Likewise.
10670 (emit_sub): Likewise.
10671 (emit_mov): Likewise.
10672 (emit_movk): Likewise.
10673 (emit_mov_addr): Likewise.
10674 (emit_mrs): Likewise.
10675 (emit_msr): Likewise.
10676 (emit_sevl): Likewise.
10677 (emit_wfe): Likewise.
10678 (append_insns): Likewise.
10679 (can_encode_int32_in): New helper function.
10680 (aarch64_relocate_instruction): New function.
10681 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
10682 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
10683 (struct linux_target_ops): Install aarch64_get_thread_area,
10684 aarch64_install_fast_tracepoint_jump_pad and
10685 aarch64_get_min_fast_tracepoint_insn_len.
10686
10687 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10688
10689 * Makefile.in (aarch64-insn.o): New rule.
10690 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
10691
10692 2015-09-21 Yao Qi <yao.qi@linaro.org>
10693
10694 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
10695
10696 2015-09-21 Yao Qi <yao.qi@linaro.org>
10697
10698 * tracepoint.c (max_jump_pad_size): Remove.
10699
10700 2015-09-18 Yao Qi <yao.qi@linaro.org>
10701
10702 * linux-aarch64-low.c: Don't include sys/uio.h.
10703 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
10704
10705 2015-09-16 Wei-cheng Wang <cole945@gmail.com>
10706
10707 * tracepoint.c (eval_result_type): Change prototype.
10708 (condition_true_at_tracepoint): Fix argument to compiled_cond.
10709
10710 2015-09-15 Pedro Alves <palves@redhat.com>
10711
10712 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
10713 Check whether to report exec events instead of checking whether
10714 multiprocess is enabled.
10715
10716 2015-09-15 Pedro Alves <palves@redhat.com>
10717
10718 PR remote/18965
10719 * remote-utils.c (prepare_resume_reply): Merge
10720 TARGET_WAITKIND_VFORK_DONE switch case with the
10721 TARGET_WAITKIND_FORKED case.
10722
10723 2015-09-15 Yao Qi <yao.qi@linaro.org>
10724
10725 * server.c (handle_query): Check string comparison using
10726 "else if" instead of "if".
10727
10728 2015-09-15 Yao Qi <yao.qi@linaro.org>
10729
10730 * server.c (vCont_supported): New global variable.
10731 (handle_query): Set vCont_supported to 1 if "vContSupported+"
10732 matches. Append ";vContSupported+" to own_buf.
10733 (handle_v_requests): Append ";s;S" to own_buf if target supports
10734 hardware single step or vCont_supported is false.
10735 (capture_main): Set vCont_supported to zero.
10736
10737 2015-09-15 Yao Qi <yao.qi@linaro.org>
10738
10739 * linux-low.c (linux_supports_conditional_breakpoints): Rename
10740 it to ...
10741 (linux_supports_hardware_single_step): ... New function.
10742 (linux_target_ops): Update.
10743 * lynx-low.c (lynx_target_ops): Set field
10744 supports_hardware_single_step to target_can_do_hardware_single_step.
10745 * nto-low.c (nto_target_ops): Likewise.
10746 * spu-low.c (spu_target_ops): Likewise.
10747 * win32-low.c (win32_target_ops): Likewise.
10748 * target.c (target_can_do_hardware_single_step): New function.
10749 * target.h (struct target_ops) <supports_conditional_breakpoints>:
10750 Remove. <supports_hardware_single_step>: New field.
10751 (target_supports_conditional_breakpoints): Remove.
10752 (target_supports_hardware_single_step): New macro.
10753 (target_can_do_hardware_single_step): Declare.
10754 * server.c (handle_query): Use target_supports_hardware_single_step
10755 instead of target_supports_conditional_breakpoints.
10756
10757 2015-09-15 Yao Qi <yao.qi@linaro.org>
10758
10759 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
10760 function.
10761 (struct linux_target_ops the_low_target): Install
10762 aarch64_linux_siginfo_fixup.
10763
10764 2015-09-11 Don Breazeal <donb@codesourcery.com>
10765 Luis Machado <lgustavo@codesourcery.com>
10766
10767 * linux-low.c (linux_mourn): Static declaration.
10768 (linux_arch_setup): Move in front of
10769 handle_extended_wait.
10770 (linux_arch_setup_thread): New function.
10771 (handle_extended_wait): Handle exec events. Call
10772 linux_arch_setup_thread. Make event_lwp argument a
10773 pointer-to-a-pointer.
10774 (check_zombie_leaders): Do not check stopped threads.
10775 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
10776 (linux_low_filter_event): Add lwp and thread for exec'ing
10777 non-leader thread if leader thread has been deleted.
10778 Refactor code into linux_arch_setup_thread and call it.
10779 Pass child lwp pointer by reference to handle_extended_wait.
10780 (linux_wait_for_event_filtered): Update comment.
10781 (linux_wait_1): Prevent clobbering exec event status.
10782 (linux_supports_exec_events): New function.
10783 (linux_target_ops) <supports_exec_events>: Initialize new member.
10784 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
10785 new member.
10786 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
10787 * server.c (report_exec_events): New global variable.
10788 (handle_query): Handle qSupported query for exec-events feature.
10789 (captured_main): Initialize report_exec_events.
10790 * server.h (report_exec_events): Declare new global variable.
10791 * target.h (struct target_ops) <supports_exec_events>: New
10792 member.
10793 (target_supports_exec_events): New macro.
10794 * win32-low.c (win32_target_ops) <supports_exec_events>:
10795 Initialize new member.
10796
10797 2015-09-09 Markus Metzger <markus.t.metzger@intel.com>
10798
10799 * linux-low.c (linux_low_enable_btrace): Remove.
10800 (linux_target_ops): Replace linux_low_enable_btrace with
10801 linux_enable_btrace.
10802
10803 2015-09-03 Yao Qi <yao.qi@linaro.org>
10804
10805 * linux-aarch64-low.c (aarch64_insert_point): Call
10806 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
10807 returns true.
10808
10809 2015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10810
10811 * linux-low.c (check_stopped_by_breakpoint): Use
10812 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
10813
10814 2015-08-27 Pedro Alves <palves@redhat.com>
10815
10816 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
10817
10818 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
10819
10820 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
10821 the XNEW-family equivalent.
10822 (compile_bytecodes): Likewise.
10823 * dll.c (loaded_dll): Likewise.
10824 * event-loop.c (append_callback_event): Likewise.
10825 (create_file_handler): Likewise.
10826 (create_file_event): Likewise.
10827 * hostio.c (handle_open): Likewise.
10828 * inferiors.c (add_thread): Likewise.
10829 (add_process): Likewise.
10830 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
10831 * linux-arm-low.c (arm_new_process): Likewise.
10832 (arm_new_thread): Likewise.
10833 * linux-low.c (add_to_pid_list): Likewise.
10834 (linux_add_process): Likewise.
10835 (handle_extended_wait): Likewise.
10836 (add_lwp): Likewise.
10837 (enqueue_one_deferred_signal): Likewise.
10838 (enqueue_pending_signal): Likewise.
10839 (linux_resume_one_lwp_throw): Likewise.
10840 (linux_resume_one_thread): Likewise.
10841 (linux_read_memory): Likewise.
10842 (linux_write_memory): Likewise.
10843 * linux-mips-low.c (mips_linux_new_process): Likewise.
10844 (mips_linux_new_thread): Likewise.
10845 (mips_add_watchpoint): Likewise.
10846 * linux-x86-low.c (initialize_low_arch): Likewise.
10847 * lynx-low.c (lynx_add_process): Likewise.
10848 * mem-break.c (set_raw_breakpoint_at): Likewise.
10849 (set_breakpoint): Likewise.
10850 (add_condition_to_breakpoint): Likewise.
10851 (add_commands_to_breakpoint): Likewise.
10852 (clone_agent_expr): Likewise.
10853 (clone_one_breakpoint): Likewise.
10854 * regcache.c (new_register_cache): Likewise.
10855 * remote-utils.c (look_up_one_symbol): Likewise.
10856 * server.c (queue_stop_reply): Likewise.
10857 (start_inferior): Likewise.
10858 (queue_stop_reply_callback): Likewise.
10859 (handle_target_event): Likewise.
10860 * spu-low.c (fetch_ppc_memory): Likewise.
10861 (store_ppc_memory): Likewise.
10862 * target.c (set_target_ops): Likewise.
10863 * thread-db.c (thread_db_load_search): Likewise.
10864 (try_thread_db_load_1): Likewise.
10865 * tracepoint.c (add_tracepoint): Likewise.
10866 (add_tracepoint_action): Likewise.
10867 (create_trace_state_variable): Likewise.
10868 (cmd_qtdpsrc): Likewise.
10869 (cmd_qtro): Likewise.
10870 (add_while_stepping_state): Likewise.
10871 * win32-low.c (child_add_thread): Likewise.
10872 (get_image_name): Likewise.
10873
10874 2015-08-25 Yao Qi <yao.qi@linaro.org>
10875
10876 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
10877
10878 2015-08-25 Yao Qi <yao.qi@linaro.org>
10879
10880 * Makefile.in (aarch64-linux.o): New rule.
10881 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
10882 srv_tgtobj.
10883 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
10884 (aarch64_init_debug_reg_state): Make it extern.
10885 (aarch64_linux_prepare_to_resume): Remove.
10886
10887 2015-08-25 Yao Qi <yao.qi@linaro.org>
10888
10889 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
10890 lwp_arch_private_info and ptid_of_lwp.
10891
10892 2015-08-25 Yao Qi <yao.qi@linaro.org>
10893
10894 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
10895 Find proc_info by find_process_pid. All callers updated.
10896
10897 2015-08-25 Yao Qi <yao.qi@linaro.org>
10898
10899 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
10900 Remove.
10901 (debug_reg_change_callback): Remove.
10902 (aarch64_notify_debug_reg_change): Remove.
10903
10904 2015-08-25 Yao Qi <yao.qi@linaro.org>
10905
10906 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
10907 Call current_lwp_ptid.
10908
10909 2015-08-25 Yao Qi <yao.qi@linaro.org>
10910
10911 * linux-aarch64-low.c (debug_reg_change_callback): Use
10912 debug_printf.
10913
10914 2015-08-25 Yao Qi <yao.qi@linaro.org>
10915
10916 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
10917
10918 2015-08-25 Yao Qi <yao.qi@linaro.org>
10919
10920 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
10921
10922 2015-08-25 Yao Qi <yao.qi@linaro.org>
10923
10924 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
10925 the code.
10926
10927 2015-08-25 Yao Qi <yao.qi@linaro.org>
10928
10929 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
10930 Remove.
10931 (debug_reg_change_callback): Remove argument entry and add argument
10932 lwp. Remove local variable thread. Don't print thread id in the
10933 debugging output. Don't check whether pid of thread equals to pid.
10934 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
10935 iterate_over_lwps instead find_inferior.
10936
10937 2015-08-24 Pedro Alves <palves@redhat.com>
10938
10939 * inferiors.c (get_first_process): New function.
10940 * inferiors.h (get_first_process): New declaration.
10941 * remote-utils.c (read_ptid): Default to the first process in the
10942 list, instead of to the current thread's process.
10943
10944 2015-08-24 Pedro Alves <palves@redhat.com>
10945
10946 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
10947 * event-loop.c: Likewise.
10948 * remote-utils.c: Likewise.
10949 * tracepoint.c: Likewise.
10950
10951 2015-08-24 Pedro Alves <palves@redhat.com>
10952
10953 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
10954 ptid_get_lwp.
10955
10956 2015-08-21 Pedro Alves <palves@redhat.com>
10957
10958 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
10959 instead of literal 1.
10960
10961 2015-08-21 Pedro Alves <palves@redhat.com>
10962
10963 * tdesc.c (default_description): Explicitly zero-initialize.
10964
10965 2015-08-21 Pedro Alves <palves@redhat.com>
10966
10967 PR gdb/18749
10968 * inferiors.c (remove_thread): Discard any pending stop reply for
10969 this thread.
10970 * server.c (remove_all_on_match_pid): Rename to ...
10971 (remove_all_on_match_ptid): ... this. Work with a filter ptid
10972 instead of a pid.
10973 (discard_queued_stop_replies): Change parameter to a ptid. Now
10974 extern.
10975 (handle_v_kill, kill_inferior_callback, captured_main)
10976 (process_serial_event): Adjust.
10977 * server.h (discard_queued_stop_replies): Declare.
10978
10979 2015-08-21 Pedro Alves <palves@redhat.com>
10980
10981 * linux-low.c (wait_for_sigstop): Always switch to no thread
10982 selected if the previously current thread dies.
10983 * lynx-low.c (lynx_request_interrupt): Use the first thread's
10984 process instead of the current thread's.
10985 * remote-utils.c (input_interrupt): Don't check if there's no
10986 current thread.
10987 * server.c (gdb_read_memory, gdb_write_memory): If setting the
10988 current thread to the general thread fails, error out.
10989 (handle_qxfer_auxv, handle_qxfer_libraries)
10990 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
10991 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
10992 (handle_query): Check if there's a thread selected instead of
10993 checking whether there's any thread in the thread list.
10994 (handle_qxfer_threads, handle_qxfer_btrace)
10995 (handle_qxfer_btrace_conf): Don't error out early if there's no
10996 thread in the thread list.
10997 (handle_v_cont, myresume): Don't set the current thread to the
10998 continue thread.
10999 (process_serial_event) <Hg handling>: Also set thread_id if the
11000 previous general thread is still alive.
11001 (process_serial_event) <g/G handling>: If setting the current
11002 thread to the general thread fails, error out.
11003 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
11004 thread's lwp instead of the current thread's.
11005 * target.c (set_desired_thread): If the desired thread was not
11006 found, leave the current thread pointing to NULL. Return an int
11007 (boolean) indicating success.
11008 * target.h (set_desired_thread): Change return type to int.
11009
11010 2015-08-20 Max Filippov <jcmvbkbc@gmail.com>
11011
11012 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
11013 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
11014 #includes.
11015 (ps_get_thread_area): New function.
11016
11017 2015-08-19 Gary Benson <gbenson@redhat.com>
11018
11019 * hostio.c (handle_pread): Do not attempt to read more data
11020 than hostio_reply_with_data can fit in a packet.
11021
11022 2015-08-18 Joel Brobecker <brobecker@adacore.com>
11023
11024 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
11025
11026 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
11027
11028 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
11029
11030 2015-08-06 Pedro Alves <palves@redhat.com>
11031
11032 * tracepoint.c (expr_eval_result): Now an int.
11033
11034 2015-08-06 Pedro Alves <palves@redhat.com>
11035
11036 * gdbthread.h (struct regcache): Forward declare.
11037 (struct thread_info) <regcache_data>: Now a struct regcache
11038 pointer.
11039 * inferiors.c (inferior_regcache_data)
11040 (set_inferior_regcache_data): Now work with struct regcache
11041 pointers.
11042 * inferiors.h (struct regcache): Forward declare.
11043 (inferior_regcache_data, set_inferior_regcache_data): Now work
11044 with struct regcache pointers.
11045 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
11046 (free_register_cache_thread): Remove struct regcache pointer
11047 casts.
11048
11049 2015-08-06 Pedro Alves <palves@redhat.com>
11050
11051 * server.c (captured_main): On error, print the exception message
11052 to stderr, and if run_once is set, throw a quit.
11053
11054 2015-08-06 Pedro Alves <palves@redhat.com>
11055
11056 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
11057 the current thread.
11058
11059 2015-08-06 Pedro Alves <palves@redhat.com>
11060
11061 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
11062 reading beyond the passed in buffer length.
11063
11064 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
11065
11066 * tracepoint.c (symbol_list) <required>: Remove.
11067
11068 2015-08-06 Pedro Alves <palves@redhat.com>
11069
11070 * linux-low.c (handle_extended_wait): Set the fork child's suspend
11071 count if stopping and suspending threads.
11072 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
11073 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
11074 (linux_detach): Complete an ongoing step-over.
11075 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
11076 throughout.
11077 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
11078 (linux_wait_1): If passing a signal to the inferior after
11079 finishing a step-over, unsuspend and re-resume all lwps. If we
11080 see a single-step event but the thread should be continuing, don't
11081 pass the trap to gdb.
11082 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
11083 internal_error instead of gdb_assert.
11084 (enqueue_pending_signal): New function.
11085 (check_ptrace_stopped_lwp_gone): Add debug output.
11086 (start_step_over): Use internal_error instead of gdb_assert.
11087 (complete_ongoing_step_over): New function.
11088 (linux_resume_one_thread): Don't resume a suspended thread.
11089 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
11090 it stepping.
11091
11092 2015-08-06 Pedro Alves <palves@redhat.com>
11093
11094 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
11095 (linux_thread_alive): Use lwp_is_marked_dead.
11096 (extended_event_reported): Delete.
11097 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
11098 instead of extended_event_reported.
11099 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
11100 as well.
11101 (lwp_is_marked_dead): New function.
11102 (lwp_running): Use lwp_is_marked_dead.
11103 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
11104 comment.
11105
11106 2015-08-06 Pedro Alves <palves@redhat.com>
11107
11108 * linux-low.c (linux_wait_1): Move fork event output out of the
11109 !report_to_gdb check. Pass event_child->waitstatus to
11110 target_waitstatus_to_string instead of ourstatus.
11111
11112 2015-08-04 Yao Qi <yao.qi@linaro.org>
11113
11114 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
11115 if current_thread is 32 bit.
11116
11117 2015-08-04 Yao Qi <yao.qi@linaro.org>
11118
11119 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
11120 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
11121 * server.c (extended_protocol): Remove "static".
11122 * server.h (extended_protocol): Declare it.
11123
11124 2015-08-04 Yao Qi <yao.qi@linaro.org>
11125
11126 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
11127 both aarch64 and aarch32.
11128 (aarch64_set_pc): Likewise.
11129
11130 2015-08-04 Yao Qi <yao.qi@linaro.org>
11131
11132 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
11133 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
11134 arm-with-neon.xml to srv_xmlfiles.
11135 * linux-aarch64-low.c: Include linux-aarch32-low.h.
11136 (is_64bit_tdesc): New function.
11137 (aarch64_linux_read_description): New function.
11138 (aarch64_arch_setup): Call aarch64_linux_read_description.
11139 (regs_info): Rename to regs_info_aarch64.
11140 (aarch64_regs_info): Return right regs_info.
11141 (initialize_low_arch): Call initialize_low_arch_aarch32.
11142
11143 2015-08-04 Yao Qi <yao.qi@linaro.org>
11144
11145 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
11146 * linux-aarch32-low.c: New file.
11147 * linux-aarch32-low.h: New file.
11148 * linux-arm-low.c (arm_fill_gregset): Move it to
11149 linux-aarch32-low.c.
11150 (arm_store_gregset): Likewise.
11151 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
11152 (arm_store_vfpregset): Call arm_store_vfpregset_num.
11153 (arm_arch_setup): Check if PTRACE_GETREGSET works.
11154 (regs_info): Rename to regs_info_arm.
11155 (arm_regs_info): Return regs_info_aarch32 if
11156 have_ptrace_getregset is 1 and target description is
11157 arm_with_neon or arm_with_vfpv3.
11158 (initialize_low_arch): Don't call init_registers_arm_with_neon.
11159 Call initialize_low_arch_aarch32 instead.
11160
11161 2015-08-04 Yao Qi <yao.qi@linaro.org>
11162
11163 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
11164 * linux-low.c: ... here.
11165 * linux-low.h (have_ptrace_getregset): Declare it.
11166
11167 2015-08-04 Pedro Alves <palves@redhat.com>
11168
11169 * thread-db.c (struct thread_db): Use new typedefs.
11170 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
11171 CHK calls.
11172 (disable_thread_event_reporting): Cast result of dlsym to
11173 destination function pointer type.
11174 (thread_db_mourn): Use td_ta_delete_ftype.
11175
11176 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
11177
11178 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
11179 arch variant.
11180 (CDX_BREAKPOINT): Define for R2.
11181 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
11182 (the_low_target): Add comments.
11183
11184 2015-07-30 Yao Qi <yao.qi@linaro.org>
11185
11186 * linux-arm-low.c (arm_hwcap): Remove it.
11187 (arm_read_description): New local variable arm_hwcap. Don't
11188 set arm_hwcap to zero.
11189
11190 2015-07-30 Yao Qi <yao.qi@linaro.org>
11191
11192 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
11193 Use regcache->tdesc instead.
11194 (arm_store_wmmxregset): Likewise.
11195 (arm_fill_vfpregset): Likewise.
11196 (arm_store_vfpregset): Likewise.
11197
11198 2015-07-30 Yao Qi <yao.qi@linaro.org>
11199
11200 * linux-arm-low.c: Include arch/arm.h.
11201 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
11202 (arm_store_gregset): Likewise.
11203
11204 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
11205
11206 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
11207 ptrace's 4th parameter.
11208
11209 2015-07-27 Yao Qi <yao.qi@linaro.org>
11210
11211 * configure.srv (case aarch64*-*-linux*): Don't set
11212 srv_linux_usrregs.
11213
11214 2015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
11215
11216 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
11217 sys/ptrace.h.
11218 * linux-arm-low.c: Likewise.
11219 * linux-cris-low.c: Likewise.
11220 * linux-crisv32-low.c: Likewise.
11221 * linux-low.c: Likewise.
11222 * linux-m68k-low.c: Likewise.
11223 * linux-mips-low.c: Likewise.
11224 * linux-nios2-low.c: Likewise.
11225 * linux-s390-low.c: Likewise.
11226 * linux-sparc-low.c: Likewise.
11227 * linux-tic6x-low.c: Likewise.
11228 * linux-tile-low.c: Likewise.
11229 * linux-x86-low.c: Likewise.
11230
11231 2015-07-24 Pedro Alves <palves@redhat.com>
11232
11233 * config.in: Regenerate.
11234 * configure: Regenerate.
11235
11236 2015-07-24 Pedro Alves <palves@redhat.com>
11237
11238 * acinclude.m4: Include ../ptrace.m4.
11239 * configure.ac: Call GDB_AC_PTRACE.
11240 * config.in, configure: Regenerate.
11241
11242 2015-07-24 Yao Qi <yao.qi@linaro.org>
11243
11244 * linux-low.c (linux_create_inferior): Remove setting to
11245 proc->priv->new_inferior.
11246 (linux_attach): Likewise.
11247 (linux_low_filter_event): Likewise.
11248 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
11249
11250 2015-07-24 Yao Qi <yao.qi@linaro.org>
11251
11252 * linux-low.c (linux_arch_setup): New function.
11253 (linux_low_filter_event): If proc->tdesc is NULL and
11254 proc->attached is true, call the_low_target.arch_setup.
11255 Otherwise, keep status pending, and return.
11256 (linux_resume_one_lwp_throw): Don't call get_pc if
11257 thread->while_stepping isn't NULL. Don't call
11258 get_thread_regcache if proc->tdesc is NULL.
11259 (need_step_over_p): Return 0 if proc->tdesc is NULL.
11260 (linux_target_ops): Install arch_setup.
11261 * server.c (start_inferior): Call the_target->arch_setup.
11262 * target.h (struct target_ops) <arch_setup>: New field.
11263 (target_arch_setup): New marco.
11264 * lynx-low.c (lynx_target_ops): Update.
11265 * nto-low.c (nto_target_ops): Update.
11266 * spu-low.c (spu_target_ops): Update.
11267 * win32-low.c (win32_target_ops): Update.
11268
11269 2015-07-24 Yao Qi <yao.qi@linaro.org>
11270
11271 * linux-low.c (linux_add_process): Don't set
11272 proc->priv->new_inferior.
11273 (linux_create_inferior): Set proc->priv->new_inferior to 1.
11274 (linux_attach): Likewise.
11275
11276 2015-07-24 Yao Qi <yao.qi@linaro.org>
11277
11278 * server.c (start_inferior): Code refactor.
11279
11280 2015-07-24 Yao Qi <yao.qi@linaro.org>
11281
11282 * server.c (process_serial_event): Set general_thread.
11283
11284 2015-07-21 Yao Qi <yao.qi@linaro.org>
11285
11286 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
11287 aarch64_linux_get_debug_reg_capacity.
11288
11289 2015-07-17 Yao Qi <yao.qi@linaro.org>
11290
11291 * Makefile.in (aarch64-linux-hw-point.o): New rule.
11292 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
11293 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
11294 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
11295 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
11296 (AARCH64_HWP_ALIGNMENT): Likewise.
11297 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
11298 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
11299 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
11300 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
11301 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
11302 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
11303 (struct aarch64_debug_reg_state): Likewise.
11304 (struct arch_lwp_info): Likewise.
11305 (aarch64_align_watchpoint): Likewise.
11306 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
11307 (aarch64_watchpoint_length): Likewise.
11308 (aarch64_point_encode_ctrl_reg): Likewise
11309 (aarch64_point_is_aligned): Likewise.
11310 (aarch64_align_watchpoint): Likewise.
11311 (aarch64_linux_set_debug_regs):
11312 (aarch64_dr_state_insert_one_point): Likewise.
11313 (aarch64_dr_state_remove_one_point): Likewise.
11314 (aarch64_handle_breakpoint): Likewise.
11315 (aarch64_handle_aligned_watchpoint): Likewise.
11316 (aarch64_handle_unaligned_watchpoint): Likewise.
11317 (aarch64_handle_watchpoint): Likewise.
11318
11319 2015-07-17 Yao Qi <yao.qi@linaro.org>
11320
11321 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
11322 and don't aarch64_get_debug_reg_state. All callers update.
11323 (aarch64_handle_aligned_watchpoint): Likewise.
11324 (aarch64_handle_unaligned_watchpoint): Likewise.
11325 (aarch64_handle_watchpoint): Likewise.
11326 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
11327 (aarch64_remove_point): Likewise.
11328
11329 2015-07-17 Yao Qi <yao.qi@linaro.org>
11330
11331 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
11332 debug_printf.
11333 (aarch64_handle_unaligned_watchpoint): Likewise.
11334
11335 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11336
11337 Revert the previous 3 commits:
11338 Move gdb_regex* to common/
11339 Move linux_find_memory_regions_full & co.
11340 gdbserver build-id attribute generator
11341
11342 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
11343 Jan Kratochvil <jan.kratochvil@redhat.com>
11344
11345 gdbserver build-id attribute generator.
11346 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
11347 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
11348 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
11349 (find_phdr): New.
11350 (get_dynamic): Use find_pdhr to traverse program headers.
11351 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
11352 (compare_mapping_entry_range, struct find_memory_region_callback_data)
11353 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
11354 (get_hex_build_id): New.
11355 (linux_qxfer_libraries_svr4): Add optional build-id attribute
11356 to reply XML document.
11357
11358 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
11359 Jan Kratochvil <jan.kratochvil@redhat.com>
11360
11361 * target.c: Include target/target-utils.h and fcntl.h.
11362 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
11363 (target_fileio_read_stralloc): New functions.
11364
11365 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11366
11367 * Makefile.in (OBS): Add gdb_regex.o.
11368 (gdb_regex.o): New.
11369 * config.in: Rebuilt.
11370 * configure: Rebuilt.
11371
11372 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
11373 Jan Kratochvil <jan.kratochvil@redhat.com>
11374
11375 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
11376 * Makefile.in (OBS): Add target-utils.o.
11377 (linux-maps.o, target-utils.o): New.
11378 * configure.srv (srv_linux_obj): Add linux-maps.o.
11379
11380 2015-07-15 Pierre Langlois <pierre.langlois@arm.com>
11381
11382 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
11383 function, return 1.
11384 (the_low_target): Install it.
11385
11386 2015-07-14 Pedro Alves <palves@redhat.com>
11387
11388 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
11389 Instead, ignore ECHILD, and throw an error for other errnos.
11390
11391 2015-07-10 Pedro Alves <palves@redhat.com>
11392
11393 * event-loop.c (struct callback_event) <data>: Change type to
11394 gdb_client_data instance instead of gdb_client_data pointer.
11395 (append_callback_event): Adjust.
11396
11397 2015-07-10 Pierre Langlois <pierre.langlois@arm.com>
11398
11399 * linux-aarch64-low.c: Add comments for each linux_target_ops
11400 method. Remove comments already covered in target_ops and
11401 linux_target_ops definitions.
11402 (the_low_target): Add comments for each unimplemented method.
11403
11404 2015-07-09 Yao Qi <yao.qi@linaro.org>
11405
11406 * linux-aarch64-low.c (aarch64_regmap): Remove.
11407 (aarch64_usrregs_info): Remove.
11408 (regs_info): Set field usrregs to NULL.
11409
11410 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
11411
11412 * linux-low.c: Include "rsp-low.h"
11413 (linux_low_encode_pt_config, linux_low_encode_raw): New.
11414 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
11415 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
11416 (handle_btrace_enable_pt): New.
11417 (handle_btrace_general_set): Support "pt".
11418 (handle_btrace_conf_general_set): Support "pt:size".
11419
11420 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
11421
11422 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
11423 Z_PACKET_SW_BP.
11424
11425 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
11426
11427 * linux-aarch64-low.c: Remove comment about endianness.
11428 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
11429 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
11430 memcmp.
11431
11432 2015-06-24 Gary Benson <gbenson@redhat.com>
11433
11434 * linux-i386-ipa.c (stdint.h): Do not include.
11435 * lynx-i386-low.c (stdint.h): Likewise.
11436 * lynx-ppc-low.c (stdint.h): Likewise.
11437 * mem-break.c (stdint.h): Likewise.
11438 * thread-db.c (stdint.h): Likewise.
11439 * tracepoint.c (stdint.h): Likewise.
11440 * win32-low.c (stdint.h): Likewise.
11441
11442 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
11443
11444 * server.c (write_qxfer_response): Update call to
11445 remote_escape_output.
11446
11447 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
11448 Jan Kratochvil <jan.kratochvil@redhat.com>
11449
11450 Merge multiple hex conversions.
11451 * gdbreplay.c (tohex): Rename to 'fromhex'.
11452 (logchar): Use fromhex.
11453
11454 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11455
11456 * server.c (handle_qxfer_libraries): Set `version' attribute for
11457 <library-list>.
11458
11459 2015-06-10 Gary Benson <gbenson@redhat.com>
11460
11461 * target.h (struct target_ops) <multifs_open>: New field.
11462 <multifs_unlink>: Likewise.
11463 <multifs_readlink>: Likewise.
11464 * linux-low.c (nat/linux-namespaces.h): New include.
11465 (linux_target_ops): Initialize the_target->multifs_open,
11466 the_target->multifs_unlink and the_target->multifs_readlink.
11467 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
11468 * hostio.c (hostio_fs_pid): New static variable.
11469 (hostio_handle_new_gdb_connection): New function.
11470 (handle_setfs): Likewise.
11471 (handle_open): Use the_target->multifs_open as appropriate.
11472 (handle_unlink): Use the_target->multifs_unlink as appropriate.
11473 (handle_readlink): Use the_target->multifs_readlink as
11474 appropriate.
11475 (handle_vFile): Handle vFile:setfs packets.
11476 * server.c (handle_query): Call hostio_handle_new_gdb_connection
11477 after target_handle_new_gdb_connection.
11478
11479 2015-06-10 Gary Benson <gbenson@redhat.com>
11480
11481 * configure.ac (AC_CHECK_FUNCS): Add setns.
11482 * config.in: Regenerate.
11483 * configure: Likewise.
11484 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
11485 (linux-namespaces.o): New rule.
11486 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
11487
11488 2015-06-09 Gary Benson <gbenson@redhat.com>
11489
11490 * hostio.c (handle_open): Process mode argument with
11491 fileio_to_host_mode.
11492
11493 2015-06-01 Yao Qi <yao.qi@linaro.org>
11494
11495 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
11496 * linux-x86-low.c: Likewise.
11497
11498 2015-05-28 Don Breazeal <donb@codesourcery.com>
11499
11500 * linux-low.c (handle_extended_wait): Initialize
11501 thread_info.last_resume_kind for new fork children.
11502
11503 2015-05-15 Pedro Alves <palves@redhat.com>
11504
11505 * target.h (target_handle_new_gdb_connection): Rewrite using if
11506 wrapped in do/while.
11507
11508 2015-05-14 Joel Brobecker <brobecker@adacore.com>
11509
11510 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
11511 * configure, config.in: Regenerate.
11512 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
11513 Declare typedef.
11514
11515 2015-05-12 Don Breazeal <donb@codesourcery.com>
11516
11517 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
11518 PTRACE_EVENT_VFORK_DONE.
11519 (linux_low_ptrace_options, extended_event_reported): Add vfork
11520 events.
11521 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
11522 and "vforkdone" for RSP 'T' Stop Reply Packet.
11523 * server.h (report_vfork_events): Declare
11524 global variable.
11525
11526 2015-05-12 Don Breazeal <donb@codesourcery.com>
11527
11528 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
11529 (the_low_target) <new_fork>: Initialize new member.
11530 * linux-arm-low.c (arm_new_fork): New function.
11531 (the_low_target) <new_fork>: Initialize new member.
11532 * linux-low.c (handle_extended_wait): Call new target function
11533 new_fork.
11534 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
11535 * linux-mips-low.c (mips_add_watchpoint): New function
11536 extracted from mips_insert_point.
11537 (the_low_target) <new_fork>: Initialize new member.
11538 (mips_linux_new_fork): New function.
11539 (mips_insert_point): Call mips_add_watchpoint.
11540 * linux-x86-low.c (x86_linux_new_fork): New function.
11541 (the_low_target) <new_fork>: Initialize new member.
11542
11543 2015-05-12 Don Breazeal <donb@codesourcery.com>
11544
11545 * linux-low.c (handle_extended_wait): Implement return value,
11546 rename argument 'event_child' to 'event_lwp', handle
11547 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
11548 (linux_low_ptrace_options): New function.
11549 (linux_low_filter_event): Call linux_low_ptrace_options,
11550 use different argument fo linux_enable_event_reporting,
11551 use return value from handle_extended_wait.
11552 (extended_event_reported): New function.
11553 (linux_wait_1): Call extended_event_reported and set
11554 status to report fork events.
11555 (linux_write_memory): Add pid to debug message.
11556 (reset_lwp_ptrace_options_callback): New function.
11557 (linux_handle_new_gdb_connection): New function.
11558 (linux_target_ops): Initialize new structure member.
11559 * linux-low.h (struct lwp_info) <waitstatus>: New member.
11560 * lynx-low.c: Initialize new structure member.
11561 * remote-utils.c (prepare_resume_reply): Implement stop reason
11562 "fork" for "T" stop message.
11563 * server.c (handle_query): Call handle_new_gdb_connection.
11564 * server.h (report_fork_events): Declare global flag.
11565 * target.h (struct target_ops) <handle_new_gdb_connection>:
11566 New member.
11567 (target_handle_new_gdb_connection): New macro.
11568 * win32-low.c: Initialize new structure member.
11569
11570 2015-05-12 Don Breazeal <donb@codesourcery.com>
11571
11572 * mem-break.c (APPEND_TO_LIST): Define macro.
11573 (clone_agent_expr): New function.
11574 (clone_one_breakpoint): New function.
11575 (clone_all_breakpoints): New function.
11576 * mem-break.h: Declare new functions.
11577
11578 2015-05-12 Don Breazeal <donb@codesourcery.com>
11579
11580 * linux-low.c (linux_supports_fork_events): New function.
11581 (linux_supports_vfork_events): New function.
11582 (linux_target_ops): Initialize new structure members.
11583 (initialize_low): Call linux_check_ptrace_features.
11584 * lynx-low.c (lynx_target_ops): Initialize new structure
11585 members.
11586 * server.c (report_fork_events, report_vfork_events):
11587 New global flags.
11588 (handle_query): Add new features to qSupported packet and
11589 response.
11590 (captured_main): Initialize new global variables.
11591 * target.h (struct target_ops) <supports_fork_events>:
11592 New member.
11593 <supports_vfork_events>: New member.
11594 (target_supports_fork_events): New macro.
11595 (target_supports_vfork_events): New macro.
11596 * win32-low.c (win32_target_ops): Initialize new structure
11597 members.
11598
11599 2015-05-12 Gary Benson <gbenson@redhat.com>
11600
11601 * server.c (handle_qxfer_exec_file): Use current process
11602 if annex is empty.
11603
11604 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
11605
11606 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
11607 Remove HAVE_PTRACE_GETREGS conditionals.
11608 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
11609 instead of PTRACE_GETREGS and PTRACE_SETREGS.
11610
11611 2015-05-08 Yao Qi <yao.qi@linaro.org>
11612
11613 * linux-low.c (linux_supports_conditional_breakpoints): New
11614 function.
11615 (linux_target_ops): Install new target method.
11616 * lynx-low.c (lynx_target_ops): Install NULL hook for
11617 supports_conditional_breakpoints.
11618 * nto-low.c (nto_target_ops): Likewise.
11619 * spu-low.c (spu_target_ops): Likewise.
11620 * win32-low.c (win32_target_ops): Likewise.
11621 * server.c (handle_query): Check
11622 target_supports_conditional_breakpoints.
11623 * target.h (struct target_ops) <supports_conditional_breakpoints>:
11624 New field.
11625 (target_supports_conditional_breakpoints): New macro.
11626
11627 2015-05-06 Pedro Alves <palves@redhat.com>
11628
11629 PR server/18081
11630 * server.c (start_inferior): If the process exits, mourn it.
11631
11632 2015-04-21 Gary Benson <gbenson@redhat.com>
11633
11634 * hostio.c (fileio_open_flags_to_host): Factored out to
11635 fileio_to_host_openflags in common/fileio.c. Single use
11636 updated.
11637
11638 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11639
11640 * linux-xtensa-low.c (xtensa_fill_gregset)
11641 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
11642 XCHAL_HAVE_LOOP.
11643
11644 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11645
11646 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
11647 (regs_info): Replace usrregs pointer with NULL.
11648
11649 2015-04-17 Gary Benson <gbenson@redhat.com>
11650
11651 * target.h (struct target_ops) <pid_to_exec_file>: New field.
11652 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
11653 * server.c (handle_qxfer_exec_file): New function.
11654 (qxfer_packets): Add exec-file entry.
11655 (handle_query): Report qXfer:exec-file:read as supported packet.
11656
11657 2015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
11658
11659 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
11660
11661 2015-04-09 Gary Benson <gbenson@redhat.com>
11662
11663 * hostio-errno.c (errno_to_fileio_error): Remove function.
11664 Update caller to use remote_fileio_to_fio_error.
11665
11666 2015-04-09 Yao Qi <yao.qi@linaro.org>
11667
11668 * linux-low.c (linux_insert_point): Call
11669 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
11670 (linux_remove_point): Call remove_memory_breakpoint if type is
11671 raw_bkpt_type_sw.
11672 * linux-x86-low.c (x86_insert_point): Don't call
11673 insert_memory_breakpoint.
11674 (x86_remove_point): Don't call remove_memory_breakpoint.
11675
11676 2015-04-01 Pedro Alves <palves@redhat.com>
11677 Cleber Rosa <crosa@redhat.com>
11678
11679 * server.c (gdbserver_usage): Reorganize and extend the usage
11680 message.
11681
11682 2015-03-24 Pedro Alves <palves@redhat.com>
11683
11684 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
11685 output. Also dump TRAP_TRACE.
11686 (linux_low_filter_event): In debug output, distinguish a
11687 resume_stop SIGSTOP from a delayed SIGSTOP.
11688
11689 2015-03-24 Gary Benson <gbenson@redhat.com>
11690
11691 * linux-x86-low.c (x86_linux_new_thread): Moved to
11692 nat/x86-linux.c.
11693 (x86_linux_prepare_to_resume): Likewise.
11694
11695 2015-03-24 Gary Benson <gbenson@redhat.com>
11696
11697 * Makefile.in (x86-linux-dregs.o): New rule.
11698 * configure.srv: Add x86-linux-dregs.o to relevant targets.
11699 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
11700 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
11701 (x86_linux_dr_get): Likewise.
11702 (x86_linux_dr_set): Likewise.
11703 (update_debug_registers_callback): Likewise.
11704 (x86_linux_dr_set_addr): Likewise.
11705 (x86_linux_dr_get_addr): Likewise.
11706 (x86_linux_dr_set_control): Likewise.
11707 (x86_linux_dr_get_control): Likewise.
11708 (x86_linux_dr_get_status): Likewise.
11709 (x86_linux_update_debug_registers): Likewise.
11710
11711 2015-03-24 Gary Benson <gbenson@redhat.com>
11712
11713 * linux-x86-low.c (x86_linux_update_debug_registers):
11714 New function, factored out from...
11715 (x86_linux_prepare_to_resume): ...this.
11716
11717 2015-03-24 Gary Benson <gbenson@redhat.com>
11718
11719 * linux-x86-low.c (x86_linux_dr_get): Update comments.
11720 (x86_linux_dr_set): Likewise.
11721 (update_debug_registers_callback): Likewise.
11722 (x86_linux_dr_set_addr): Likewise.
11723 (x86_linux_dr_get_addr): Likewise.
11724 (x86_linux_dr_set_control): Likewise.
11725 (x86_linux_dr_get_control): Likewise.
11726 (x86_linux_dr_get_status): Likewise.
11727 (x86_linux_prepare_to_resume): Likewise.
11728
11729 2015-03-24 Gary Benson <gbenson@redhat.com>
11730
11731 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
11732 Use perror_with_name. Pass string through gettext.
11733 (x86_linux_dr_set): Likewise.
11734
11735 2015-03-24 Gary Benson <gbenson@redhat.com>
11736
11737 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
11738 (x86_linux_dr_set_addr): ...this.
11739 (x86_dr_low_get_addr): Rename to...
11740 (x86_linux_dr_get_addr): ...this.
11741 (x86_dr_low_set_control): Rename to...
11742 (x86_linux_dr_set_control): ...this.
11743 (x86_dr_low_get_control): Rename to...
11744 (x86_linux_dr_get_control): ...this.
11745 (x86_dr_low_get_status): Rename to...
11746 (x86_linux_dr_get_status): ...this.
11747 (x86_dr_low): Update with new function names.
11748
11749 2015-03-24 Gary Benson <gbenson@redhat.com>
11750
11751 * Makefile.in (x86-linux.o): New rule.
11752 * configure.srv: Add x86-linux.o to relevant targets.
11753 * linux-low.c (lwp_set_arch_private_info): New function.
11754 (lwp_arch_private_info): Likewise.
11755 * linux-x86-low.c: Include nat/x86-linux.h.
11756 (arch_lwp_info): Removed structure.
11757 (update_debug_registers_callback):
11758 Use lwp_set_debug_registers_changed.
11759 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
11760 and lwp_set_debug_registers_changed.
11761 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
11762
11763 2015-03-24 Gary Benson <gbenson@redhat.com>
11764
11765 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
11766 * linux-arm-low.c (arm_new_thread): Likewise.
11767 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
11768 * linux-mips-low.c (mips_linux_new_thread): Likewise.
11769 * linux-x86-low.c (x86_linux_new_thread): Likewise.
11770 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
11771
11772 2015-03-24 Gary Benson <gbenson@redhat.com>
11773
11774 * linux-low.c (ptid_of_lwp): New function.
11775 (lwp_is_stopped): Likewise.
11776 (lwp_stop_reason): Likewise.
11777 * linux-x86-low.c (update_debug_registers_callback):
11778 Use lwp_is_stopped.
11779 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
11780 lwp_stop_reason.
11781
11782 2015-03-24 Gary Benson <gbenson@redhat.com>
11783
11784 * linux-low.h (linux_stop_lwp): Remove declaration.
11785
11786 2015-03-24 Gary Benson <gbenson@redhat.com>
11787
11788 * linux-low.h: Include nat/linux-nat.h.
11789 * linux-low.c (iterate_over_lwps_args): New structure.
11790 (iterate_over_lwps_filter): New function.
11791 (iterate_over_lwps): Likewise.
11792 * linux-x86-low.c (update_debug_registers_callback):
11793 Update signature to what iterate_over_lwps expects.
11794 Remove PID check that iterate_over_lwps now performs.
11795 (x86_dr_low_set_addr): Use iterate_over_lwps.
11796 (x86_dr_low_set_control): Likewise.
11797
11798 2015-03-24 Gary Benson <gbenson@redhat.com>
11799
11800 * linux-x86-low.c (x86_debug_reg_state): New function.
11801 (x86_linux_prepare_to_resume): Use the above.
11802
11803 2015-03-24 Gary Benson <gbenson@redhat.com>
11804
11805 * linux-low.c (current_lwp_ptid): New function.
11806 * linux-x86-low.c: Include nat/linux-nat.h.
11807 (x86_dr_low_get_addr): Use current_lwp_ptid.
11808 (x86_dr_low_get_control): Likewise.
11809 (x86_dr_low_get_status): Likewise.
11810
11811 2015-03-20 Pedro Alves <palves@redhat.com>
11812
11813 * tracepoint.c (cmd_qtstatus): Make "str" const.
11814
11815 2015-03-20 Pedro Alves <palves@redhat.com>
11816
11817 * server.c (handle_general_set): Make "req_str" const.
11818
11819 2015-03-19 Pedro Alves <palves@redhat.com>
11820
11821 * linux-low.c (linux_resume_one_lwp): Rename to ...
11822 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
11823 instead call perror_with_name.
11824 (check_ptrace_stopped_lwp_gone): New function.
11825 (linux_resume_one_lwp): Reimplement as wrapper around
11826 linux_resume_one_lwp_throw that swallows errors if the LWP is
11827 gone.
11828
11829 2015-03-19 Pedro Alves <palves@redhat.com>
11830
11831 * linux-low.c (count_events_callback, select_event_lwp_callback):
11832 No longer check whether the thread has resume_stop as last resume
11833 kind.
11834
11835 2015-03-19 Pedro Alves <palves@redhat.com>
11836
11837 * linux-low.c (count_events_callback, select_event_lwp_callback):
11838 Use the lwp's status_pending_p field, not the thread's.
11839
11840 2015-03-19 Pedro Alves <palves@redhat.com>
11841
11842 * linux-low.c (select_event_lwp_callback): Update comments to
11843 no longer mention SIGTRAP.
11844
11845 2015-03-18 Gary Benson <gbenson@redhat.com>
11846
11847 * server.c (handle_query): Do not report vFile:fstat as supported.
11848
11849 2015-03-11 Gary Benson <gbenson@redhat.com>
11850
11851 * hostio.c (sys/types.h): New include.
11852 (sys/stat.h): Likewise.
11853 (common-remote-fileio.h): Likewise.
11854 (handle_fstat): New function.
11855 (handle_vFile): Handle vFile:fstat packets.
11856
11857 2015-03-11 Gary Benson <gbenson@redhat.com>
11858
11859 * configure.ac (AC_CHECK_MEMBERS): Add checks for
11860 struct stat.st_blocks and struct stat.st_blksize.
11861 * configure: Regenerate.
11862 * config.in: Likewise.
11863 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
11864 (OBS): Add common-remote-fileio.o.
11865 (common-remote-fileio.o): New rule.
11866
11867 2015-03-09 Pedro Alves <palves@redhat.com>
11868
11869 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
11870 'struct sockaddr' pointer in 'accept' call.
11871
11872 2015-03-09 Pedro Alves <palves@redhat.com>
11873
11874 Revert:
11875 2015-03-07 Pedro Alves <palves@redhat.com>
11876 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11877 or <winsock2.h> here. Instead include "gdb_socket.h".
11878 (remote_open): Use union gdb_sockaddr_u.
11879 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11880 or <winsock2.h> here. Instead include "gdb_socket.h".
11881 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11882 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11883 or <sys/un.h>.
11884 (init_named_socket, gdb_agent_helper_thread): Use union
11885 gdb_sockaddr_u.
11886
11887 2015-03-07 Pedro Alves <palves@redhat.com>
11888
11889 * configure.ac (build_warnings): Move
11890 -Wdeclaration-after-statement to the C-specific set.
11891 * configure: Regenerate.
11892
11893 2015-03-07 Pedro Alves <palves@redhat.com>
11894
11895 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11896 or <winsock2.h> here. Instead include "gdb_socket.h".
11897 (remote_open): Use union gdb_sockaddr_u.
11898 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11899 or <winsock2.h> here. Instead include "gdb_socket.h".
11900 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11901 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11902 or <sys/un.h>.
11903 (init_named_socket, gdb_agent_helper_thread): Use union
11904 gdb_sockaddr_u.
11905
11906 2015-03-07 Pedro Alves <palves@redhat.com>
11907
11908 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
11909 instead.
11910
11911 2015-03-06 Yao Qi <yao.qi@linaro.org>
11912
11913 * linux-aarch64-low.c (aarch64_insert_point): Use
11914 show_debug_regs as a boolean.
11915 (aarch64_remove_point): Likewise.
11916
11917 2015-03-05 Pedro Alves <palves@redhat.com>
11918
11919 * lynx-low.c (lynx_target_ops): Install NULL hooks for
11920 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
11921 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
11922 * nto-low.c (nto_target_ops): Likewise.
11923 * spu-low.c (spu_target_ops): Likewise.
11924 * win32-low.c (win32_target_ops): Likewise.
11925
11926 2015-03-04 Pedro Alves <palves@redhat.com>
11927
11928 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
11929 Decide whether a breakpoint triggered based on the SIGTRAP's
11930 siginfo.si_code.
11931 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
11932 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
11933 (linux_low_filter_event): Check for breakpoints before checking
11934 watchpoints.
11935 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
11936 siginfo.si_code.
11937 (linux_stopped_by_sw_breakpoint)
11938 (linux_supports_stopped_by_sw_breakpoint)
11939 (linux_stopped_by_hw_breakpoint)
11940 (linux_supports_stopped_by_hw_breakpoint): New functions.
11941 (linux_target_ops): Install new target methods.
11942
11943 2015-03-04 Pedro Alves <palves@redhat.com>
11944
11945 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
11946 * server.c (swbreak_feature, hwbreak_feature): New globals.
11947 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
11948 (captured_main): Clear swbreak_feature and hwbreak_feature.
11949 * server.h (swbreak_feature, hwbreak_feature): Declare.
11950 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
11951 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
11952 supports_stopped_by_hw_breakpoint>: New fields.
11953 (target_supports_stopped_by_sw_breakpoint)
11954 (target_stopped_by_sw_breakpoint)
11955 (target_supports_stopped_by_hw_breakpoint)
11956 (target_stopped_by_hw_breakpoint): Declare.
11957
11958 2015-03-04 Pedro Alves <palves@redhat.com>
11959
11960 enum lwp_stop_reason -> enum target_stop_reason
11961 * linux-low.c (check_stopped_by_breakpoint): Adjust.
11962 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
11963 (linux_wait_1, stuck_in_jump_pad_callback)
11964 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
11965 (linux_stopped_by_watchpoint):
11966 * linux-low.h (enum lwp_stop_reason): Delete.
11967 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
11968 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11969
11970 2015-03-04 Yao Qi <yao.qi@linaro.org>
11971
11972 * Makefile.in (SFILES): Add linux-aarch64-low.c.
11973
11974 2015-03-03 Gary Benson <gbenson@redhat.com>
11975
11976 * hostio.c (handle_vFile): Fix prefix lengths.
11977
11978 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
11979
11980 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
11981 ptr_bits.
11982
11983 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
11984
11985 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
11986 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
11987 (clean): Add "rm -f" for above C files.
11988 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
11989 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
11990 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
11991 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
11992 * linux-s390-low.c (HWCAP_S390_VX): New macro.
11993 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
11994 (init_registers_s390x_vx_linux64)
11995 (init_registers_s390x_tevx_linux64)
11996 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
11997 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
11998 declarations.
11999 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
12000 (s390_store_vxrs_high): New functions.
12001 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
12002 NT_S390_VXRS_HIGH.
12003 (s390_arch_setup): Add logic for selecting one of the new target
12004 descriptions. Activate the new vector regsets if applicable.
12005 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
12006 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
12007 and init_registers_s390x_tevx_linux64.
12008
12009 2015-03-01 Pedro Alves <palves@redhat.com>
12010
12011 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
12012 parameter.
12013
12014 2015-02-27 Pedro Alves <palves@redhat.com>
12015
12016 * linux-x86-low.c (u_debugreg_offset): New function.
12017 (x86_linux_dr_get, x86_linux_dr_set): Use it.
12018
12019 2015-02-27 Pedro Alves <palves@redhat.com>
12020
12021 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
12022 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
12023 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
12024 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
12025 (ps_lsetfpregs, ps_getpid)
12026 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
12027 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
12028 (ps_lsetxregs, ps_plog): Declare.
12029
12030 2015-02-27 Pedro Alves <palves@redhat.com>
12031
12032 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
12033 IP_AGENT_EXPORT_FUNC.
12034 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
12035 IP_AGENT_EXPORT_FUNC.
12036 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
12037 (IP_AGENT_EXPORT): Delete.
12038 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
12039 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
12040 (gdb_trampoline_buffer_error, collecting, gdb_collect)
12041 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
12042 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
12043 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
12044 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
12045 (traceframe_read_count, traceframe_write_count)
12046 (traceframes_created, trace_state_variables, get_raw_reg)
12047 (get_trace_state_variable_value, set_trace_state_variable_value)
12048 (ust_loaded, helper_thread_id, cmd_buf): Use
12049 IPA_SYM_EXPORTED_NAME.
12050 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
12051 (tracepoints) Use IP_AGENT_EXPORT_VAR.
12052 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
12053 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
12054 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
12055 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
12056 EXTERN_C_PUSH/EXTERN_C_POP.
12057 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
12058 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
12059 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
12060 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
12061 (traceframe_write_count, traceframe_read_count)
12062 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
12063 (about_to_request_buffer_space, get_trace_state_variable_value)
12064 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
12065 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
12066 EXTERN_C_PUSH/EXTERN_C_POP.
12067 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
12068 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
12069 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
12070 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
12071 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
12072 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
12073 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
12074 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
12075 Define.
12076 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
12077 (IP_AGENT_EXPORT_VAR_DECL): Define.
12078 (tracing): Declare.
12079 (gdb_agent_get_raw_reg): Declare.
12080
12081 2015-02-27 Tom Tromey <tromey@redhat.com>
12082 Pedro Alves <palves@redhat.com>
12083
12084 Rename symbols whose names are reserved C++ keywords throughout.
12085
12086 2015-02-27 Pedro Alves <palves@redhat.com>
12087
12088 * Makefile.in (COMPILER): New, get it from autoconf.
12089 (CXX): Get from autoconf instead.
12090 (COMPILE.pre): Use COMPILER.
12091 (CC-LD): Rename to ...
12092 (CC_LD): ... this. Use COMPILER.
12093 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
12094 (CXX_FOR_TARGET): Default to g++ instead of gcc.
12095 * acinclude.m4: Include build-with-cxx.m4.
12096 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
12097 Disable -Werror by default if building in C++ mode.
12098 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
12099 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
12100 the C++ compiler. Save/restore CXXFLAGS too.
12101 * configure: Regenerate.
12102
12103 2015-02-27 Pedro Alves <palves@redhat.com>
12104
12105 * acinclude.m4: Include libiberty.m4.
12106 * configure.ac: Call libiberty_INIT.
12107 * config.in, configure: Regenerate.
12108
12109 2015-02-26 Pedro Alves <palves@redhat.com>
12110
12111 * linux-low.c (linux_wait_1): When incrementing the PC past a
12112 program breakpoint always use the_low_target.breakpoint_len as
12113 increment, rather than the maximum between that and
12114 the_low_target.decr_pc_after_break.
12115
12116 2015-02-23 Pedro Alves <palves@redhat.com>
12117
12118 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
12119 thread was doing a step-over; always adjust the PC if
12120 we stepped over a permanent breakpoint.
12121 (linux_wait_1): If we stepped over breakpoint that was on top of a
12122 permanent breakpoint, manually advance the PC past it.
12123
12124 2015-02-23 Pedro Alves <palves@redhat.com>
12125
12126 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
12127 modes.
12128 (x86_fill_gregset, x86_store_gregset): Use it when handling
12129 $orig_eax.
12130
12131 2015-02-20 Pedro Alves <palves@redhat.com>
12132
12133 * thread-db.c: Include "nat/linux-procfs.h".
12134 (thread_db_init): Skip listing new threads if the kernel supports
12135 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
12136
12137 2015-02-20 Pedro Alves <palves@redhat.com>
12138
12139 * linux-low.c (status_pending_p_callback): Use ptid_match.
12140
12141 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
12142
12143 PR breakpoints/16812
12144 * linux-low.c (wstatus_maybe_breakpoint): Remove.
12145 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
12146 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
12147
12148 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
12149
12150 PR breakpoints/15956
12151 * tracepoint.c (cmd_qtinit): Add check for current_thread.
12152
12153 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12154
12155 * linux-low.c (linux_low_btrace_conf): Print size.
12156 * server.c (handle_btrace_conf_general_set): New.
12157 (hanle_general_set): Call handle_btrace_conf_general_set.
12158 (handle_query): Report Qbtrace-conf:bts:size as supported.
12159
12160 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12161
12162 * linux-low.c (linux_low_enable_btrace): Update parameters.
12163 (linux_low_btrace_conf): New.
12164 (linux_target_ops)<to_btrace_conf>: Initialize.
12165 * server.c (current_btrace_conf): New.
12166 (handle_btrace_enable): Rename to ...
12167 (handle_btrace_enable_bts): ... this. Pass &current_btrace_conf
12168 to target_enable_btrace. Update comment. Update users.
12169 (handle_qxfer_btrace_conf): New.
12170 (qxfer_packets): Add btrace-conf entry.
12171 (handle_query): Report qXfer:btrace-conf:read as supported packet.
12172 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
12173 (target_ops)<read_btrace_conf>: New.
12174 (target_enable_btrace): Update parameters.
12175 (target_read_btrace_conf): New.
12176
12177 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12178
12179 * server.c (handle_btrace_general_set): Remove call to
12180 target_supports_btrace.
12181 (supported_btrace_packets): New.
12182 (handle_query): Call supported_btrace_packets.
12183 * target.h: include btrace-common.h.
12184 (btrace_target_info): Removed.
12185 (supports_btrace, target_supports_btrace): Update parameters.
12186
12187 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12188
12189 * Makefile.in (SFILES): Add common/btrace-common.c.
12190 (OBS): Add common/btrace-common.o.
12191 (btrace-common.o): Add build rules.
12192 * linux-low: Include btrace-common.h.
12193 (linux_low_read_btrace): Use struct btrace_data. Call
12194 btrace_data_init and btrace_data_fini.
12195
12196 2015-02-06 Pedro Alves <palves@redhat.com>
12197
12198 * thread-db.c (find_new_threads_callback): Add debug output.
12199
12200 2015-02-04 Pedro Alves <palves@redhat.com>
12201
12202 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
12203 (resume_stopped_resumed_lwps): New function.
12204 (linux_wait_for_event_filtered): Use it.
12205
12206 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
12207
12208 * Makefile.in (SFILES): Add linux-personality.c.
12209 (linux-personality.o): New rule.
12210 * configure.srv (srv_linux_obj): Add linux-personality.o to the
12211 list of objects to be built.
12212 * linux-low.c: Include nat/linux-personality.h.
12213 (linux_create_inferior): Remove code to disable address space
12214 randomization (moved to ../nat/linux-personality.c). Create
12215 cleanup to disable address space randomization.
12216
12217 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
12218
12219 * Makefile.in (posix-strerror.o): New rule.
12220 (mingw-strerror.o): Likewise.
12221 * configure: Regenerated.
12222 * configure.ac: Source file ../common/common.host. Initialize new
12223 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
12224
12225 2015-01-14 Yao Qi <yao@codesourcery.com>
12226
12227 * Makefile.in (SFILES): Add nat/ppc-linux.c.
12228 (ppc-linux.o): New rule.
12229 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
12230 * configure.ac: AC_CHECK_FUNCS(getauxval).
12231 * config.in: Re-generated.
12232 * configure: Re-generated.
12233 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
12234 ppc64_64bit_inferior_p
12235
12236 2015-01-14 Yao Qi <yao@codesourcery.com>
12237
12238 * linux-ppc-low.c: Include "nat/ppc-linux.h".
12239 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
12240 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
12241 (PT_ORIG_R3, PT_TRAP): Likewise.
12242 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
12243 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
12244 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
12245
12246 2015-01-10 Joel Brobecker <brobecker@adacore.com>
12247
12248 * i387-fp.c (i387_cache_to_xsave): In look over
12249 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
12250 zmmh_low_space field by use of zmmh_high_space.
12251
12252 2015-01-09 Pedro Alves <palves@redhat.com>
12253
12254 * linux-low.c (step_over_bkpt): Move higher up in the file.
12255 (handle_extended_wait): Don't store the stop_pc here.
12256 (get_stop_pc): Adjust comments and rename to ...
12257 (check_stopped_by_breakpoint): ... this. Record whether the LWP
12258 stopped for a software breakpoint or hardware breakpoint.
12259 (thread_still_has_status_pending_p): New function.
12260 (status_pending_p_callback): Use
12261 thread_still_has_status_pending_p. If the event is no longer
12262 interesting, resume the LWP.
12263 (handle_tracepoints): Add assert.
12264 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
12265 (wstatus_maybe_breakpoint): New function.
12266 (cancel_breakpoint): Delete function.
12267 (check_stopped_by_watchpoint): New function, factored out from
12268 linux_low_filter_event.
12269 (lp_status_maybe_breakpoint): Delete function.
12270 (linux_low_filter_event): Remove filter_ptid argument.
12271 Leave thread group exits pending here. Store the LWP's stop PC.
12272 Always leave events pending.
12273 (linux_wait_for_event_filtered): Pull all events out of the
12274 kernel, and leave them all pending.
12275 (count_events_callback, select_event_lwp_callback): Consider all
12276 events.
12277 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
12278 (select_event_lwp): Only give preference to the stepping LWP in
12279 all-stop mode. Adjust comments.
12280 (ignore_event): New function.
12281 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
12282 references to cancel_breakpoints. Adjust to renames. Also give
12283 equal priority to all LWPs that have had events in non-stop mode.
12284 If reporting a software breakpoint event, unadjust the LWP's PC.
12285 (linux_wait): If linux_wait_1 returned an ignored event, retry.
12286 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
12287 Adjust.
12288 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
12289 (resume_status_pending_p): Use thread_still_has_status_pending_p.
12290 (linux_stopped_by_watchpoint): Adjust.
12291 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
12292 * linux-low.h (enum lwp_stop_reason): New.
12293 (struct lwp_info) <stop_pc>: Adjust comment.
12294 <stopped_by_watchpoint>: Delete field.
12295 <stop_reason>: New field.
12296 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
12297 * mem-break.c (software_breakpoint_inserted_here)
12298 (hardware_breakpoint_inserted_here): New function.
12299 * mem-break.h (software_breakpoint_inserted_here)
12300 (hardware_breakpoint_inserted_here): Declare.
12301 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
12302 (cancel_breakpoints): Delete.
12303 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
12304 (upload_fast_traceframes): Remove references to
12305 cancel_breakpoints.
12306
12307 2015-01-09 Pedro Alves <palves@redhat.com>
12308
12309 * thread-db.c (find_new_threads_callback): Ignore thread if the
12310 kernel thread ID is -1.
12311
12312 2015-01-09 Pedro Alves <palves@redhat.com>
12313
12314 * linux-low.c (linux_attach_fail_reason_string): Move to
12315 nat/linux-ptrace.c, and rename.
12316 (linux_attach_lwp): Update comment.
12317 (attach_proc_task_lwp_callback): New function.
12318 (linux_attach): Adjust to rename and use
12319 linux_proc_attach_tgid_threads.
12320 (linux_attach_fail_reason_string): Delete declaration.
12321
12322 2015-01-01 Joel Brobecker <brobecker@adacore.com>
12323
12324 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
12325 * server.c (gdbserver_version): Likewise.
12326
12327 2014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
12328
12329 * remote-utils.c: Include ctype.h.
12330 (input_interrupt): Explicitly handle the case when the char
12331 received is the NUL byte. Improve the printing of non-ASCII
12332 characters.
12333
12334 2014-12-16 Joel Brobecker <brobecker@adacore.com>
12335
12336 * linux-low.c (linux_low_filter_event): Update call to
12337 linux_enable_event_reporting following the addition of
12338 a new parameter to that function.
12339
12340 2014-12-16 Catalin Udma <catalin.udma@freescale.com>
12341
12342 PR server/17457
12343 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
12344 (AARCH64_FPCR_REGNO): Likewise.
12345 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
12346 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
12347 (aarch64_store_fpregset): Likewise.
12348
12349 2014-12-15 Joel Brobecker <brobecker@adacore.com>
12350
12351 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
12352 Remove FIXME comment about assumption about N.
12353
12354 2014-12-13 Joel Brobecker <brobecker@adacore.com>
12355
12356 * configure.ac: If large-file support is disabled in GDBserver,
12357 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
12358 * configure: Regenerate.
12359
12360 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12361
12362 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
12363 warning upon ENODATA from ptrace.
12364 * linux-s390-low.c (s390_store_tdb): New.
12365 (s390_regsets): Add regset for NT_S390_TDB.
12366
12367 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12368
12369 * linux-low.c (regsets_store_inferior_registers): Skip regsets
12370 without a fill_function.
12371 * linux-s390-low.c (s390_fill_last_break): Remove.
12372 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
12373 (s390_arch_setup): Use regset's size instead of fill_function for
12374 loop end condition.
12375
12376 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12377
12378 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
12379 the regset's store function when ptrace returned an error.
12380 * regcache.c (get_thread_regcache): Invalidate register cache
12381 before fetching inferior's registers.
12382
12383 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12384
12385 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
12386 while-loop as for-loop.
12387 (regsets_store_inferior_registers): Likewise.
12388
12389 2014-11-28 Yao Qi <yao@codesourcery.com>
12390
12391 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
12392 * config.in, configure: Re-generate.
12393 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
12394 is defined.
12395
12396 2014-11-21 Yao Qi <yao@codesourcery.com>
12397
12398 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
12399 (AC_CHECK_HEADERS): Remove malloc.h.
12400 * configure: Re-generated.
12401 * config.in: Re-generated.
12402 * server.h: Don't include alloca.h and malloc.h.
12403 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
12404 Don't include malloc.h.
12405
12406 2014-11-17 Joel Brobecker <brobecker@adacore.com>
12407
12408 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
12409 corresponding ERRNO check in same block.
12410
12411 2014-11-12 Pedro Alves <palves@redhat.com>
12412
12413 * server.c (cont_thread): Update comment.
12414 (start_inferior, attach_inferior): No longer clear cont_thread.
12415 (handle_v_cont): No longer set cont_thread.
12416 (captured_main): Clear cont_thread each time a GDB connects.
12417
12418 2014-11-12 Pedro Alves <palves@redhat.com>
12419
12420 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
12421 thread, and don't resume all threads if the Hc thread has exited.
12422
12423 2014-11-12 Pedro Alves <palves@redhat.com>
12424
12425 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
12426 the process group instead of to a specific LWP.
12427
12428 2014-10-15 Pedro Alves <palves@redhat.com>
12429
12430 PR server/17487
12431 * win32-arm-low.c (arm_set_thread_context): Remove current_event
12432 parameter.
12433 (arm_set_thread_context): Delete.
12434 (the_low_target): Adjust.
12435 * win32-i386-low.c (debug_registers_changed)
12436 (debug_registers_used): Delete.
12437 (update_debug_registers_callback): New function.
12438 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
12439 needing to update their debug registers.
12440 (win32_get_current_dr): New function.
12441 (x86_dr_low_get_addr, x86_dr_low_get_control)
12442 (x86_dr_low_get_status): Fetch the debug register from the thread
12443 record's context.
12444 (i386_initial_stuff): Adjust.
12445 (i386_get_thread_context): Remove current_event parameter. Don't
12446 clear debug_registers_changed nor copy DR values to
12447 debug_reg_state.
12448 (i386_set_thread_context): Delete.
12449 (i386_prepare_to_resume): New function.
12450 (i386_thread_added): Mark the thread as needing to update irs
12451 debug registers.
12452 (the_low_target): Remove i386_set_thread_context and install
12453 i386_prepare_to_resume.
12454 * win32-low.c (win32_get_thread_context): Adjust.
12455 (win32_set_thread_context): Use SetThreadContext
12456 directly.
12457 (win32_prepare_to_resume): New function.
12458 (win32_require_context): New function, factored out from ...
12459 (thread_rec): ... this.
12460 (continue_one_thread): Call win32_prepare_to_resume on each thread
12461 we're about to continue.
12462 (win32_resume): Call win32_prepare_to_resume on the event thread.
12463 * win32-low.h (struct win32_thread_info)
12464 <debug_registers_changed>: New field.
12465 (struct win32_target_ops): Change prototype of set_thread_context,
12466 delete set_thread_context and add prepare_to_resume.
12467 (win32_require_context): New declaration.
12468
12469 2014-10-08 Gary Benson <gbenson@redhat.com>
12470
12471 * server.h: Do not include common-exceptions.h.
12472
12473 2014-10-08 Gary Benson <gbenson@redhat.com>
12474
12475 * server.h: Do not include cleanups.h.
12476
12477 2014-09-30 James Hogan <james.hogan@imgtec.com>
12478
12479 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
12480 mips64-dsp-linux.c.
12481
12482 2014-09-23 Yao Qi <yao@codesourcery.com>
12483
12484 * linux-low.c (lp_status_maybe_breakpoint): New function.
12485 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
12486 (count_events_callback): Likewise.
12487 (select_event_lwp_callback): Likewise.
12488 (cancel_breakpoints_callback): Likewise.
12489
12490 2014-09-19 Don Breazeal <donb@codesourcery.com>
12491
12492 * linux-low.c (handle_extended_wait): Call
12493 linux_ptrace_get_extended_event.
12494 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
12495 linux_is_extended_waitstatus.
12496
12497 2014-09-16 Joel Brobecker <brobecker@adacore.com>
12498
12499 * Makefile.in (CPPFLAGS): Define.
12500 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
12501 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
12502
12503 2014-09-16 Gary Benson <gbenson@redhat.com>
12504
12505 * inferiors.h (current_inferior): Renamed as...
12506 (current_thread): New variable. All uses updated.
12507 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
12508 (maybe_move_out_of_jump_pad): Likewise.
12509 (cancel_breakpoint): Likewise.
12510 (linux_low_filter_event): Likewise.
12511 (wait_for_sigstop): Likewise.
12512 (linux_resume_one_lwp): Likewise.
12513 (need_step_over_p): Likewise.
12514 (start_step_over): Likewise.
12515 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
12516 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
12517 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
12518 and save_inferior as saved_thread.
12519 * regcache.c (get_thread_regcache): Renamed saved_inferior as
12520 saved_thread.
12521 (regcache_invalidate_thread): Likewise.
12522 * remote-utils.c (prepare_resume_reply): Likewise.
12523 * thread-db.c (thread_db_get_tls_address): Likewise.
12524 (disable_thread_event_reporting): Likewise.
12525 (remove_thread_event_breakpoints): Likewise.
12526 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
12527 as saved_thread.
12528 * target.h (set_desired_inferior): Renamed as...
12529 (set_desired_thread): New declaration. All uses updated.
12530 * server.c (myresume): Updated comment to reference thread instead
12531 of inferior.
12532 (handle_serial_event): Likewise.
12533 (handle_target_event): Likewise.
12534
12535 2014-09-12 Tom Tromey <tromey@redhat.com>
12536 Gary Benson <gbenson@redhat.com>
12537
12538 * regcache.h: Include common-regcache.h.
12539 (regcache_read_pc): Don't declare.
12540 * regcache.c (get_thread_regcache_for_ptid): New function.
12541
12542 2014-09-11 Tom Tromey <tromey@redhat.com>
12543 Gary Benson <gbenson@redhat.com>
12544
12545 * symbol.c: New file.
12546 * Makefile.in (SFILES): Add symbol.c.
12547 (OBS): Add symbol.o.
12548
12549 2014-09-11 Gary Benson <gbenson@redhat.com>
12550
12551 * target.c (target_stop_ptid, target_continue_ptid): New
12552 functions.
12553
12554 2014-09-11 Tom Tromey <tromey@redhat.com>
12555 Gary Benson <gbenson@redhat.com>
12556
12557 * target.h: Include target/target.h.
12558 * target.c (target_read_memory, target_read_uint32)
12559 (target_write_memory): New functions.
12560
12561 2014-09-11 Gary Benson <gbenson@redhat.com>
12562
12563 * server.h (debug_hw_points): Don't declare.
12564 * server.c (debug_hw_points): Don't define. Replace all uses
12565 with show_debug_regs.
12566 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
12567 all uses with show_debug_regs.
12568
12569 2014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12570
12571 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
12572 endianness into account.
12573 (ppc_supply_ptrace_register): Likewise.
12574
12575 2014-09-03 James Hogan <james.hogan@imgtec.com>
12576
12577 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
12578 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
12579
12580 2014-09-03 Gary Benson <gbenson@redhat.com>
12581
12582 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
12583 ALL_DEBUG_ADDRESS_REGISTERS.
12584
12585 2014-09-02 Gary Benson <gbenson@redhat.com>
12586
12587 * i386-low.h: Renamed as...
12588 * x86-low.h: New file. All type, function and variable name
12589 prefixes changed from "i386_" to "x86_". All references updated.
12590 * i386-low.c: Renamed as...
12591 * x86-low.c: New file. All type, function and variable name
12592 prefixes changed from "i386_" to "x86_". All references updated.
12593
12594 2014-09-02 Gary Benson <gbenson@redhat.com>
12595
12596 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
12597 (x86_linux_new_thread): Likewise.
12598
12599 2014-08-29 Gary Benson <gbenson@redhat.com>
12600
12601 * server.h (setjmp.h): Do not include.
12602 (toplevel): Do not declare.
12603 (common-exceptions.h): Include.
12604 (cleanups.h): Likewise.
12605 * server.c (toplevel): Do not define.
12606 (exit_code): New static global.
12607 (detach_or_kill_for_exit_cleanup): New function.
12608 (main): New function. Original main renamed to...
12609 (captured_main): New function.
12610 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
12611
12612 2014-08-29 Gary Benson <gbenson@redhat.com>
12613
12614 * Makefile.in (SFILES): Add common/common-exceptions.c.
12615 (OBS): Add common-exceptions.o.
12616 (common-exceptions.o): New rule.
12617 * utils.c (prepare_to_throw_exception): New function.
12618
12619 2014-08-29 Gary Benson <gbenson@redhat.com>
12620
12621 * config.in: Regenerate.
12622 * configure: Likewise.
12623
12624 2014-08-29 Gary Benson <gbenson@redhat.com>
12625
12626 * Makefile.in (SFILES): Add common/cleanups.c.
12627 (OBS): cleanups.o.
12628 (cleanups.o): New rule.
12629
12630 2014-08-29 Gary Benson <gbenson@redhat.com>
12631
12632 * utils.c (internal_vwarning): New function.
12633
12634 2014-08-28 Gary Benson <gbenson@redhat.com>
12635
12636 * utils.h (fatal): Remove declaration.
12637 * utils.c (fatal): Remove function.
12638
12639 2014-08-28 Gary Benson <gbenson@redhat.com>
12640
12641 * tracepoint.c (gdb_agent_init): Replace fatal with
12642 perror_with_name.
12643 (initialize_tracepoint): Likewise.
12644
12645 2014-08-28 Gary Benson <gbenson@redhat.com>
12646
12647 * remote-utils.c (remote_prepare): Replace fatal with error.
12648
12649 2014-08-28 Gary Benson <gbenson@redhat.com>
12650
12651 * linux-low.c (linux_async): Replace fatal with warning.
12652 Tidy up and return.
12653 (linux_start_non_stop): Return -1 if linux_async failed.
12654
12655 2014-08-28 Gary Benson <gbenson@redhat.com>
12656
12657 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
12658 gdb_assert.
12659 (i386_dr_low_get_addr): Remove vague comment.
12660 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
12661 gdb_assert.
12662
12663 2014-08-28 Gary Benson <gbenson@redhat.com>
12664
12665 * inferiors.c (get_thread_process): Replace check with gdb_assert.
12666 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
12667 internal_error.
12668 (linux_resume_one_lwp): Likewise.
12669 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
12670 gdb_assert.
12671 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
12672 with internal_error.
12673 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
12674 (init_register_cache): Replace fatal with gdb_assert_not_reached.
12675 (find_register_by_name): Replace fatal with internal_error.
12676 (find_regno): Likewise.
12677 * tdesc.c (init_target_desc): Replace check with gdb_assert.
12678 * thread-db.c (thread_db_create_event): Likewise.
12679 (thread_db_load_search): Likewise.
12680 (try_thread_db_load_1): Likewise.
12681 * tracepoint.c (get_jump_space_head): Replace fatal with
12682 internal_error.
12683 (claim_trampoline_space): Likewise.
12684 (have_fast_tracepoint_trampoline_buffer): Likewise.
12685 (cmd_qtstart): Likewise.
12686 (stop_tracing): Likewise.
12687 (fast_tracepoint_collecting): Likewise.
12688 (target_malloc): Likewise.
12689 (download_tracepoint): Likewise.
12690 (download_trace_state_variables): Replace check with gdb_assert.
12691 (upload_fast_traceframes): Replace fatal with internal_error.
12692
12693 2014-08-19 Tom Tromey <tromey@redhat.com>
12694 Gary Benson <gbenson@redhat.com>
12695
12696 * Makefile.in (SFILES): Add common/common-debug.c.
12697 (OBS): Add common-debug.o.
12698 (common-debug.o): New rule.
12699 * debug.h (debug_printf): Don't declare.
12700 * debug.c (debug_printf): Renamed and rewritten as...
12701 (debug_vprintf): New function.
12702
12703 2014-08-19 Gary Benson <gbenson@redhat.com>
12704
12705 * utils.h: Do not include print-utils.h.
12706
12707 2014-08-19 Tom Tromey <tromey@redhat.com>
12708 Gary Benson <gbenson@redhat.com>
12709
12710 * server.h: Add static assertion.
12711 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
12712
12713 2014-08-19 Tom Tromey <tromey@redhat.com>
12714 Gary Benson <gbenson@redhat.com>
12715
12716 * Makefile.in (SFILES): Add common/errors.c.
12717 (OBS): Add errors.o.
12718 (IPA_OBS): Add errors-ipa.o.
12719 (errors.o): New rule.
12720 (errors-ipa.o): Likewise.
12721 * utils.h (perror_with_name, error, warning): Don't declare.
12722 * utils.c (warning): Renamed and rewritten as...
12723 (vwarning): New function.
12724 (error): Renamed and rewritten as...
12725 (verror): New function.
12726 (internal_error): Renamed and rewritten as...
12727 (internal_verror): New function.
12728
12729 2014-08-07 Gary Benson <gbenson@redhat.com>
12730
12731 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
12732 * configure: Regenerate.
12733 * config.in: Likewise.
12734 * server.h: Do not include errno.h.
12735 * event-loop.c: Likewise.
12736 * hostio-errno.c: Likewise.
12737 * linux-low.c: Likewise.
12738 * remote-utils.c: Likewise.
12739 * spu-low.c: Likewise.
12740 * utils.c: Likewise.
12741 * gdbreplay.c: Unconditionally include errno.h.
12742
12743 2014-08-07 Gary Benson <gbenson@redhat.com>
12744
12745 * server.h: Do not include string.h.
12746 * event-loop.c: Likewise.
12747 * linux-low.c: Likewise.
12748 * regcache.c: Likewise.
12749 * remote-utils.c: Likewise.
12750 * spu-low.c: Likewise.
12751 * utils.c: Likewise.
12752
12753 2014-08-07 Gary Benson <gbenson@redhat.com>
12754
12755 * server.h: Do not include gdb_assert.h.
12756
12757 2014-08-07 Gary Benson <gbenson@redhat.com>
12758
12759 * server.h: Do not include common-utils.h.
12760
12761 2014-08-07 Gary Benson <gbenson@redhat.com>
12762
12763 * server.h: Do not include ptid.h.
12764 * notif.h: Likewise.
12765
12766 2014-08-07 Gary Benson <gbenson@redhat.com>
12767
12768 * server.h: Do not include gdb_locale.h.
12769
12770 2014-08-07 Gary Benson <gbenson@redhat.com>
12771
12772 * server.h: Do not include gdb/signals.h.
12773 * win32-low.c: Likewise.
12774
12775 2014-08-07 Gary Benson <gbenson@redhat.com>
12776
12777 * server.h: Do not include pathmax.h.
12778
12779 2014-08-07 Gary Benson <gbenson@redhat.com>
12780
12781 * server.h: Do not include libiberty.h.
12782 * linux-bfin-low.c: Likewise.
12783
12784 2014-08-07 Gary Benson <gbenson@redhat.com>
12785
12786 * server.h: Do not include ansidecl.h.
12787
12788 2014-08-07 Gary Benson <gbenson@redhat.com>
12789
12790 * linux-x86-low.c: Do not include stddef.h.
12791 * lynx-ppc-low.c: Likewise.
12792 * tracepoint.c: Likewise.
12793
12794 2014-08-07 Gary Benson <gbenson@redhat.com>
12795
12796 * server.h: Do not include stdarg.h.
12797 * nto-low.c: Likewise.
12798
12799 2014-08-07 Gary Benson <gbenson@redhat.com>
12800
12801 * server.h: Do not include stdlib.h.
12802 * inferiors.c: Likewise.
12803 * linux-low.c: Likewise.
12804 * regcache.c: Likewise.
12805 * spu-low.c: Likewise.
12806 * tracepoint.c: Likewise.
12807 * utils.c: Likewise.
12808
12809 2014-08-07 Gary Benson <gbenson@redhat.com>
12810
12811 * server.h: Do not include stdio.h.
12812 * linux-low.c: Likewise.
12813 * remote-utils.c: Likewise.
12814 * spu-low.c: Likewise.
12815 * utils.c: Likewise.
12816 * wincecompat.c: Likewise.
12817
12818 2014-08-06 Gary Benson <gbenson@redhat.com>
12819
12820 * regcache.c (init_register_cache): Move conditionals inside if.
12821
12822 2014-08-06 Gary Benson <gbenson@redhat.com>
12823
12824 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
12825
12826 2014-07-31 Gary Benson <gbenson@redhat.com>
12827
12828 * ax.h: Do not include server.h.
12829 * gdbthread.h: Likewise.
12830 * lynx-low.h: Likewise.
12831 * notif.h: Likewise.
12832
12833 2014-07-30 Gary Benson <gbenson@redhat.com>
12834
12835 * server.h: Include common-defs.h.
12836 Do not include config.h or build-gnulib-gdbserver/config.h.
12837
12838 2014-07-30 Gary Benson <gbenson@redhat.com>
12839
12840 * hostio-errno.c: Move server.h to top of includes list.
12841 * inferiors.c: Likewise.
12842 * linux-x86-low.c: Likewise.
12843 * notif.c: Include server.h.
12844
12845 2014-07-24 Tom Tromey <tromey@redhat.com>
12846 Gary Benson <gbenson@redhat.com>
12847
12848 * server.h (CORE_ADDR): Now unsigned.
12849
12850 2014-07-16 Pedro Alves <palves@redhat.com>
12851
12852 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
12853
12854 2014-07-15 Pedro Alves <palves@redhat.com>
12855
12856 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
12857 copy.
12858
12859 2014-07-11 Pedro Alves <palves@redhat.com>
12860
12861 * linux-low.c (kill_wait_lwp): New function, based on
12862 kill_one_lwp_callback, but use my_waitpid directly.
12863 (kill_one_lwp_callback, linux_kill): Use it.
12864
12865 2014-06-23 Pedro Alves <palves@redhat.com>
12866
12867 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
12868 before setting DR0..DR3.
12869
12870 2014-06-20 Gary Benson <gbenson@redhat.com>
12871
12872 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
12873 * configure: Regenerated.
12874 * config.in: Likewise.
12875
12876 2014-06-20 Gary Benson <gbenson@redhat.com>
12877
12878 * Makefile.in (SFILES): Update locations for files moved
12879 from common to nat.
12880 (object file files): Reordered.
12881
12882 2014-06-20 Gary Benson <gbenson@redhat.com>
12883
12884 * i386-low.h (i386_dr_low_can_set_addr): Removed.
12885 (i386_dr_low_set_addr): Likewise.
12886 (i386_dr_low_get_addr): Likewise.
12887 (i386_dr_low_can_set_control): Likewise.
12888 (i386_dr_low_set_control): Likewise.
12889 (i386_dr_low_get_control): Likewise.
12890 (i386_dr_low_get_status): Likewise.
12891 (i386_get_debug_register_length): Likewise.
12892 * linux-x86-low.c (i386_dr_low_set_addr):
12893 Changed signature. Made static.
12894 (i386_dr_low_get_addr): Likewise.
12895 (i386_dr_low_set_control): Likewise.
12896 (i386_dr_low_get_control): Likewise.
12897 (i386_dr_low_get_status): Likewise.
12898 (i386_dr_low): New global variable.
12899 * win32-i386-low.c (i386_dr_low_set_addr):
12900 Changed signature. Made static.
12901 (i386_dr_low_get_addr): Likewise.
12902 (i386_dr_low_set_control): Likewise.
12903 (i386_dr_low_get_control): Likewise.
12904 (i386_dr_low_get_status): Likewise.
12905 (i386_dr_low): New global variable.
12906
12907 2014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
12908
12909 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
12910 * Makefile.in (AR, AR_FLAGS): Define.
12911 * configure: Regenerate.
12912
12913 2014-06-19 Gary Benson <gbenson@redhat.com>
12914
12915 * Makefile.in (i386-dregs.o): New rule.
12916 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
12917 * i386-low.c (target.h): Remove include.
12918 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
12919 (DR_CONTROL_SHIFT): Likewise.
12920 (DR_CONTROL_SIZE): Likewise.
12921 (DR_RW_EXECUTE): Likewise.
12922 (DR_RW_WRITE): Likewise.
12923 (DR_RW_READ): Likewise.
12924 (DR_RW_IORW): Likewise.
12925 (DR_LEN_1): Likewise.
12926 (DR_LEN_2): Likewise.
12927 (DR_LEN_4): Likewise.
12928 (DR_LEN_8): Likewise.
12929 (DR_LOCAL_ENABLE_SHIFT): Likewise.
12930 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
12931 (DR_ENABLE_SIZE): Likewise.
12932 (DR_LOCAL_SLOWDOWN): Likewise.
12933 (DR_GLOBAL_SLOWDOWN): Likewise.
12934 (DR_CONTROL_RESERVED): Likewise.
12935 (I386_DR_CONTROL_MASK): Likewise.
12936 (I386_DR_VACANT): Likewise.
12937 (I386_DR_LOCAL_ENABLE): Likewise.
12938 (I386_DR_GLOBAL_ENABLE): Likewise.
12939 (I386_DR_DISABLE): Likewise.
12940 (I386_DR_SET_RW_LEN): Likewise.
12941 (I386_DR_GET_RW_LEN): Likewise.
12942 (I386_DR_WATCH_HIT): Likewise.
12943 (i386_wp_op_t): Likewise.
12944 (i386_show_dr): Likewise.
12945 (i386_length_and_rw_bits): Likewise.
12946 (i386_insert_aligned_watchpoint): Likewise.
12947 (i386_remove_aligned_watchpoint): Likewise.
12948 (i386_handle_nonaligned_watchpoint): Likewise.
12949 i386_update_inferior_debug_regs(): Likewise.
12950 (i386_dr_insert_watchpoint): Likewise.
12951 (i386_dr_remove_watchpoint): Likewise.
12952 (i386_dr_region_ok_for_watchpoint): Likewise.
12953 (i386_dr_stopped_data_address): Likewise.
12954 (i386_dr_stopped_by_watchpoint): Likewise.
12955
12956 2014-06-19 Gary Benson <gbenson@redhat.com>
12957
12958 * i386-low.c (i386_dr_show): Renamed to
12959 i386_show_dr and made static. All uses updated.
12960 (i386_dr_length_and_rw_bits): Renamed to
12961 i386_length_and_rw_bits and made static.
12962 All uses updated.
12963 (i386_dr_insert_aligned_watchpoint): Renamed to
12964 i386_insert_aligned_watchpoint and made static.
12965 All uses updated.
12966 (i386_dr_remove_aligned_watchpoint): Renamed to
12967 i386_remove_aligned_watchpoint and made static.
12968 All uses updated.
12969 (i386_dr_update_inferior_debug_regs): Renamed to
12970 i386_update_inferior_debug_regs and made static.
12971 All uses updated.
12972
12973 2014-06-18 Gary Benson <gbenson@redhat.com>
12974
12975 * i386-low.h (i386_dr_low_can_set_addr): New macro.
12976 (i386_dr_low_can_set_control): Likewise.
12977 (i386_get_debug_register_length): Likewise.
12978 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
12979 (i386_dr_low_can_set_control): Likewise.
12980 (i386_get_debug_register_length): Likewise.
12981
12982 2014-06-17 Gary Benson <gbenson@redhat.com>
12983
12984 * i386-low.h (i386-dregs.h): New include.
12985 (DR_FIRSTADDR): Now in i386-dregs.h.
12986 (DR_LASTADDR): Likewise.
12987 (DR_NADDR): Likewise.
12988 (DR_STATUS): Likewise.
12989 (DR_CONTROL): Likewise.
12990 (i386_debug_reg_state): Likewise.
12991 (i386_dr_insert_watchpoint): Likewise.
12992 (i386_dr_remove_watchpoint): Likewise.
12993 (i386_dr_region_ok_for_watchpoint): Likewise.
12994 (i386_dr_stopped_data_address): Likewise.
12995 (i386_dr_stopped_by_watchpoint): Likewise.
12996 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
12997
12998 2014-06-18 Gary Benson <gbenson@redhat.com>
12999
13000 * i386-low.h (i386_low_insert_watchpoint): Renamed to
13001 i386_dr_insert_watchpoint.
13002 (i386_low_remove_watchpoint): Renamed to
13003 i386_dr_remove_watchpoint.
13004 (i386_low_region_ok_for_watchpoint): Renamed to
13005 i386_dr_region_ok_for_watchpoint.
13006 (i386_low_stopped_data_address): Renamed to
13007 i386_dr_stopped_data_address.
13008 (i386_low_stopped_by_watchpoint): Renamed to
13009 i386_dr_stopped_by_watchpoint.
13010 * i386-low.c (i386_show_dr): Renamed to
13011 i386_dr_show and made nonstatic. All uses updated.
13012 (i386_length_and_rw_bits): Renamed to
13013 i386_dr_length_and_rw_bits and made nonstatic.
13014 All uses updated.
13015 (i386_insert_aligned_watchpoint): Renamed to
13016 i386_dr_insert_aligned_watchpoint and made nonstatic.
13017 All uses updated.
13018 (i386_remove_aligned_watchpoint): Renamed to
13019 i386_dr_remove_aligned_watchpoint and made nonstatic.
13020 All uses updated.
13021 (i386_update_inferior_debug_regs): Renamed to
13022 i386_dr_update_inferior_debug_regs and made nonstatic.
13023 All uses updated.
13024 (i386_low_insert_watchpoint): Renamed to
13025 i386_dr_insert_watchpoint. All uses updated.
13026 (i386_low_remove_watchpoint): Renamed to
13027 i386_dr_remove_watchpoint. All uses updated.
13028 (i386_low_region_ok_for_watchpoint): Renamed to
13029 i386_dr_region_ok_for_watchpoint. All uses updated.
13030 (i386_low_stopped_data_address): Renamed to
13031 i386_dr_stopped_data_address. All uses updated.
13032 (i386_low_stopped_by_watchpoint): Renamed to
13033 i386_dr_stopped_by_watchpoint. All uses updated.
13034
13035 2014-06-18 Gary Benson <gbenson@redhat.com>
13036
13037 * i386-low.c (i386_dr_low_can_set_addr): New macro.
13038 (i386_dr_low_can_set_control): Likewise.
13039 (i386_insert_aligned_watchpoint): New check.
13040
13041 2014-06-18 Gary Benson <gbenson@redhat.com>
13042
13043 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
13044 Renamed to state.
13045
13046 2014-06-18 Gary Benson <gbenson@redhat.com>
13047
13048 * i386-low.c (i386_length_and_rw_bits): Use internal_error
13049 instead of fatal and error.
13050 (i386_handle_nonaligned_watchpoint): Likewise.
13051
13052 2014-06-18 Gary Benson <gbenson@redhat.com>
13053
13054 * i386-low.c (i386_get_debug_register_length): New macro.
13055 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
13056 (i386_show_dr): Use debug_printf instead of fprintf. Use
13057 phex to format values.
13058
13059 2014-06-18 Gary Benson <gbenson@redhat.com>
13060
13061 * i386-low.h: Comment changes.
13062 * i386-low.c: Likewise.
13063
13064 2014-06-18 Gary Benson <gbenson@redhat.com>
13065
13066 * i386-low.c: Whitespace changes.
13067
13068 2014-06-12 Tom Tromey <tromey@redhat.com>
13069
13070 * utils.c (freeargv): Remove.
13071
13072 2014-06-12 Tom Tromey <tromey@redhat.com>
13073
13074 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
13075 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
13076 (parse_debug_format_options): Likewise.
13077 (gdbserver_usage): Likewise.
13078 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
13079 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
13080 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
13081 against libiberty.
13082 ($(LIBGNU)): Depend on libiberty.
13083 (all-lib): Recurse into all subdirs.
13084 (install-only): Invoke "install" target in subdirs.
13085 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
13086 targets.
13087 * configure: Rebuild.
13088 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
13089 for vasprintf, vsnprintf, or gettimeofday.
13090 * configure.srv: Don't add safe-ctype.o or lbasename.o to
13091 srv_tgtobj.
13092
13093 2014-06-05 Joel Brobecker <brobecker@adacore.com>
13094
13095 * development.sh: Delete.
13096 * Makefile.in (config.status): Adjust dependency on development.sh.
13097 * configure.ac: Adjust development.sh source call.
13098 * configure: Regenerate.
13099
13100 2014-06-02 Pedro Alves <palves@redhat.com>
13101
13102 * ax.c (gdb_free_agent_expr): New function.
13103 * ax.h (gdb_free_agent_expr): New declaration.
13104 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
13105 list.
13106 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
13107 static.
13108 (clear_breakpoint_conditions_and_commands): New function.
13109 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
13110 (clear_breakpoint_conditions_and_commands): New declaration.
13111
13112 2014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13113
13114 * linux-aarch64-low.c (asm/ptrace.h): Include.
13115
13116 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
13117
13118 Fix TLS access for -static -pthread.
13119 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
13120 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
13121 (thread_db_load_search, try_thread_db_load_1): Initialize it.
13122
13123 2014-05-20 Pedro Alves <palves@redhat.com>
13124
13125 * linux-aarch64-low.c (aarch64_insert_point)
13126 (aarch64_remove_point): No longer check whether the type is
13127 supported here. Adjust to new interface.
13128 (the_low_target): Install aarch64_supports_z_point_type as
13129 supports_z_point_type method.
13130 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
13131 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
13132 instead of a Z packet char. Adjust.
13133 (arm_supports_z_point_type): New function.
13134 (arm_insert_point, arm_remove_point): Adjust to new interface.
13135 (the_low_target): Install arm_supports_z_point_type.
13136 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
13137 (cris_insert_point, cris_remove_point): Adjust to new interface.
13138 Don't check whether the type is supported here.
13139 (the_low_target): Install cris_supports_z_point_type.
13140 * linux-low.c (linux_supports_z_point_type): New function.
13141 (linux_insert_point, linux_remove_point): Adjust to new interface.
13142 * linux-low.h (struct linux_target_ops) <insert_point,
13143 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
13144 raw_breakpoint pointer parameter.
13145 <supports_z_point_type>: New method.
13146 * linux-mips-low.c (mips_supports_z_point_type): New function.
13147 (mips_insert_point, mips_remove_point): Adjust to new interface.
13148 Use mips_supports_z_point_type.
13149 (the_low_target): Install mips_supports_z_point_type.
13150 * linux-ppc-low.c (the_low_target): Install NULL as
13151 supports_z_point_type method.
13152 * linux-s390-low.c (the_low_target): Install NULL as
13153 supports_z_point_type method.
13154 * linux-sparc-low.c (the_low_target): Install NULL as
13155 supports_z_point_type method.
13156 * linux-x86-low.c (x86_supports_z_point_type): New function.
13157 (x86_insert_point): Adjust to new insert_point interface. Use
13158 insert_memory_breakpoint. Adjust to new
13159 i386_low_insert_watchpoint interface.
13160 (x86_remove_point): Adjust to remove_point interface. Use
13161 remove_memory_breakpoint. Adjust to new
13162 i386_low_remove_watchpoint interface.
13163 (the_low_target): Install x86_supports_z_point_type.
13164 * lynx-low.c (lynx_target_ops): Install NULL as
13165 supports_z_point_type callback.
13166 * nto-low.c (nto_supports_z_point_type): New.
13167 (nto_insert_point, nto_remove_point): Adjust to new interface.
13168 (nto_target_ops): Install nto_supports_z_point_type.
13169 * mem-break.c: Adjust intro comment.
13170 (struct raw_breakpoint) <raw_type, size>: New fields.
13171 <inserted>: Update comment.
13172 <shlib_disabled>: Delete field.
13173 (enum bkpt_type) <gdb_breakpoint>: Delete value.
13174 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
13175 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
13176 (raw_bkpt_type_to_target_hw_bp_type): New function.
13177 (find_enabled_raw_code_breakpoint_at): New function.
13178 (find_raw_breakpoint_at): New type and size parameters. Use them.
13179 (insert_memory_breakpoint): New function, based off
13180 set_raw_breakpoint_at.
13181 (remove_memory_breakpoint): New function.
13182 (set_raw_breakpoint_at): Reimplement.
13183 (set_breakpoint): New, based on set_breakpoint_at.
13184 (set_breakpoint_at): Reimplement.
13185 (delete_raw_breakpoint): Go through the_target->remove_point
13186 instead of assuming memory breakpoints.
13187 (find_gdb_breakpoint_at): Delete.
13188 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
13189 (find_gdb_breakpoint): New function.
13190 (set_gdb_breakpoint_at): Delete.
13191 (z_type_supported): New function.
13192 (set_gdb_breakpoint_1): New function, loosely based off
13193 set_gdb_breakpoint_at.
13194 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
13195 (delete_gdb_breakpoint_at): Delete.
13196 (delete_gdb_breakpoint_1): New function, loosely based off
13197 delete_gdb_breakpoint_at.
13198 (delete_gdb_breakpoint): New function.
13199 (clear_gdb_breakpoint_conditions): Rename to ...
13200 (clear_breakpoint_conditions): ... this. Don't handle a NULL
13201 breakpoint.
13202 (add_condition_to_breakpoint): Make static.
13203 (add_breakpoint_condition): Take a struct breakpoint pointer
13204 instead of an address. Adjust.
13205 (gdb_condition_true_at_breakpoint): Rename to ...
13206 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
13207 z_type parameter.
13208 (gdb_condition_true_at_breakpoint): Reimplement.
13209 (add_breakpoint_commands): Take a struct breakpoint pointer
13210 instead of an address. Adjust.
13211 (gdb_no_commands_at_breakpoint): Rename to ...
13212 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
13213 parameter. Return true if no breakpoint was found. Change debug
13214 output.
13215 (gdb_no_commands_at_breakpoint): Reimplement.
13216 (run_breakpoint_commands): Rename to ...
13217 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
13218 and change return type to boolean.
13219 (run_breakpoint_commands): New function.
13220 (gdb_breakpoint_here): Also check for Z1 breakpoints.
13221 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
13222 breakpoint. Go through the_target->remove_point instead of
13223 assuming memory breakpoint.
13224 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
13225 software and hardware breakpoints.
13226 (reinsert_raw_breakpoint): Go through the_target->insert_point
13227 instead of assuming memory breakpoint.
13228 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
13229 software and hardware breakpoints.
13230 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
13231 Check both software and hardware breakpoints.
13232 (validate_inserted_breakpoint): Assert the breakpoint is a
13233 software breakpoint. Set the inserted flag to -1 instead of
13234 setting shlib_disabled.
13235 (delete_disabled_breakpoints): Adjust.
13236 (validate_breakpoints): Only validate software breakpoints.
13237 Adjust to inserted flag change.
13238 (check_mem_read, check_mem_write): Skip breakpoint types other
13239 than software breakpoints. Adjust to inserted flag change.
13240 * mem-break.h (enum raw_bkpt_type): New enum.
13241 (raw_breakpoint, struct process_info): Forward declare.
13242 (Z_packet_to_target_hw_bp_type): Delete declaration.
13243 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
13244 (set_gdb_breakpoint, delete_gdb_breakpoint)
13245 (clear_breakpoint_conditions): New declarations.
13246 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
13247 (breakpoint_inserted_here): Update comment.
13248 (add_breakpoint_condition, add_breakpoint_commands): Replace
13249 address parameter with a breakpoint pointer parameter.
13250 (gdb_breakpoint_here): Update comment.
13251 (delete_gdb_breakpoint_at): Delete.
13252 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
13253 * server.c (process_point_options): Take a struct breakpoint
13254 pointer instead of an address. Adjust.
13255 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
13256 delete_gdb_breakpoint.
13257 * spu-low.c (spu_target_ops): Install NULL as
13258 supports_z_point_type method.
13259 * target.h: Include mem-break.h.
13260 (struct target_ops) <prepare_to_access_memory>: Update comment.
13261 <supports_z_point_type>: New field.
13262 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
13263 instead of a char. Also take a raw breakpoint pointer.
13264 * win32-arm-low.c (the_low_target): Install NULL as
13265 supports_z_point_type.
13266 * win32-i386-low.c (i386_supports_z_point_type): New function.
13267 (i386_insert_point, i386_remove_point): Adjust to new interface.
13268 (the_low_target): Install i386_supports_z_point_type.
13269 * win32-low.c (win32_supports_z_point_type): New function.
13270 (win32_insert_point, win32_remove_point): Adjust to new interface.
13271 (win32_target_ops): Install win32_supports_z_point_type.
13272 * win32-low.h (struct win32_target_ops):
13273 <supports_z_point_type>: New method.
13274 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
13275 instead of a char. Also take a raw breakpoint pointer.
13276
13277 2014-05-20 Pedro Alves <palves@redhat.com>
13278
13279 * mem-break.h: Include break-common.h.
13280 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
13281 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
13282 (Z_packet_to_target_hw_bp_type): New declaration.
13283 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
13284 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
13285 (Z_PACKET_ACCESS_WP): Delete macros.
13286 (Z_packet_to_hw_type): Delete function.
13287 * i386-low.h: Don't include break-common.h here.
13288 (Z_packet_to_hw_type): Delete declaration.
13289 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
13290 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
13291 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
13292 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
13293 * linux-aarch64-low.c: Don't include break-common.h here.
13294 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
13295 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
13296 (Z_packet_to_target_hw_bp_type): Delete function.
13297 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
13298 function.
13299 (mips_insert_point, mips_remove_point): Use
13300 Z_packet_to_target_hw_bp_type.
13301
13302 2014-05-20 Pedro Alves <palves@redhat.com>
13303
13304 * linux-aarch64-low.c: Include break-common.h.
13305 (enum target_point_type): Delete.
13306 (Z_packet_to_point_type): Rename to ...
13307 (Z_packet_to_target_hw_bp_type): ... this, and return a
13308 target_hw_bp_type instead.
13309 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
13310 instead of an enum target_point_type.
13311 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
13312 breakpoint type.
13313 (aarch64_dr_state_insert_one_point)
13314 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
13315 (aarch64_handle_aligned_watchpoint)
13316 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
13317 Take an enum target_hw_bp_type instead of an enum
13318 target_point_type.
13319 (aarch64_supports_z_point_type): New function.
13320 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
13321 use Z_packet_to_target_hw_bp_type.
13322
13323 2014-05-20 Joel Brobecker <brobecker@adacore.com>
13324
13325 * configure.ac: Only use -Werror by default when DEVELOPMENT
13326 is true.
13327 * configure: Regenerate.
13328
13329 2014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
13330
13331 Fix gdbserver qGetTLSAddr for x86_64 -m32.
13332 * linux-x86-low.c (X86_64_USER_REGS): New.
13333 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
13334
13335 2014-04-28 Yao Qi <yao@codesourcery.com>
13336
13337 * Makefile.in (i386-avx512.c): Fix the typo of generated file
13338 name.
13339
13340 2014-04-25 Pedro Alves <palves@redhat.com>
13341
13342 PR server/16255
13343 * linux-low.c (linux_attach_fail_reason_string): New function.
13344 (linux_attach_lwp): Delete.
13345 (linux_attach_lwp_1): Rename to ...
13346 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
13347 argument. Remove "initial" parameter. Return int instead of
13348 void. Don't error or warn here.
13349 (linux_attach): Adjust to call linux_attach_lwp. Call error on
13350 failure to attach to the tgid. Call warning when failing to
13351 attach to an lwp.
13352 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
13353 argument. Remove "initial" parameter. Return int instead of
13354 void. Don't error or warn here.
13355 (linux_attach_fail_reason_string): New declaration.
13356 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
13357 interface change. Use linux_attach_fail_reason_string.
13358
13359 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
13360 Walfred Tedeschi <walfred.tedeschi@intel.com>
13361
13362 * Makefile.in: Added rules to handle new files
13363 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
13364 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
13365 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
13366 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
13367 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
13368 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
13369 x32-avx512-linux.o.
13370 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
13371 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
13372 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
13373 i386/x32-avx512.xml.
13374 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
13375 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
13376 i386/x32-avx512-linux.xml.
13377 * i387-fp.c (num_avx512_k_registers): New constant for number
13378 of K registers.
13379 (num_avx512_zmmh_low_registers): New constant for number of
13380 lower ZMM registers (0-15).
13381 (num_avx512_zmmh_high_registers): New constant for number of
13382 higher ZMM registers (16-31).
13383 (num_avx512_ymmh_registers): New contant for number of higher
13384 YMM registers (ymm16-31 added by avx521 on x86_64).
13385 (num_avx512_xmm_registers): New constant for number of higher
13386 XMM registers (xmm16-31 added by AVX512 on x86_64).
13387 (struct i387_xsave): Add space for AVX512 registers.
13388 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
13389 Add code to handle AVX512 registers.
13390 (i387_xsave_to_cache): Add code to handle AVX512 registers.
13391 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
13392 prototypei from generated file.
13393 (tdesc_amd64_avx512_linux): Likewise.
13394 (init_registers_x32_avx512_linux): Likewise.
13395 (tdesc_x32_avx512_linux): Likewise.
13396 (init_registers_i386_avx512_linux): Likewise.
13397 (tdesc_i386_avx512_linux): Likewise.
13398 (x86_64_regmap): Add AVX512 registers.
13399 (x86_linux_read_description): Add code to handle AVX512 XSTATE
13400 mask.
13401 (initialize_low_arch): Add code to initialize AVX512 registers.
13402
13403 2014-04-23 Pedro Alves <palves@redhat.com>
13404
13405 * mem-break.c (find_gdb_breakpoint_at): Make static.
13406 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
13407
13408 2014-04-23 Pedro Alves <palves@redhat.com>
13409
13410 * i386-low.c: Don't include break-common.h here.
13411 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
13412 prototype to take target_hw_bp_type as argument instead of a Z
13413 packet char.
13414 * i386-low.h: Include break-common.h here.
13415 (Z_packet_to_hw_type): Declare.
13416 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
13417 prototypes.
13418 * linux-x86-low.c (x86_insert_point): Convert the packet number to
13419 a target_hw_bp_type before calling i386_low_insert_watchpoint.
13420 (x86_remove_point): Convert the packet number to a
13421 target_hw_bp_type before calling i386_low_remove_watchpoint.
13422 * win32-i386-low.c (i386_insert_point): Convert the packet number
13423 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
13424 (i386_remove_point): Convert the packet number to a
13425 target_hw_bp_type before calling i386_low_remove_watchpoint.
13426
13427 2014-04-23 Pedro Alves <palves@redhat.com>
13428
13429 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
13430
13431 2014-04-10 Pedro Alves <palves@redhat.com>
13432
13433 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
13434 Check if the condition or command is NULL before checking if the
13435 breakpoint is known. On success, return true.
13436 * mem-break.h (add_breakpoint_condition): Document return.
13437 (add_breakpoint_commands): Add describing comment.
13438 * server.c (skip_to_semicolon): New function.
13439 (process_point_options): Use it.
13440
13441 2014-04-09 Pedro Alves <palves@redhat.com>
13442
13443 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
13444 to lwpid_of.
13445
13446 2014-02-27 Pedro Alves <palves@redhat.com>
13447
13448 PR 12702
13449 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
13450 macros.
13451 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
13452 output.
13453 (last_thread_of_process_p): Take a PID argument instead of a
13454 thread pointer.
13455 (linux_wait_for_lwp): Delete.
13456 (num_lwps, check_zombie_leaders, not_stopped_callback): New
13457 functions.
13458 (linux_low_filter_event): New function, party factored out from
13459 linux_wait_for_event.
13460 (linux_wait_for_event): Rename to ...
13461 (linux_wait_for_event_filtered): ... this. Add new filter ptid
13462 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
13463 sigsuspend. Check for zombie leaders.
13464 (linux_wait_for_event): Reimplement as wrapper around
13465 linux_wait_for_event_filtered.
13466 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
13467 a normal or signal exit is seen, it's the whole process exiting.
13468 (wait_for_sigstop): No longer a for_each_inferior callback.
13469 Rewrite on top of linux_wait_for_event_filtered.
13470 (stop_all_lwps): Call wait_for_sigstop directly.
13471 * server.c (resume, handle_target_event): Handle
13472 TARGET_WAITKIND_NO_RESUMED.
13473
13474 2014-02-26 Joel Brobecker <brobecker@adacore.com>
13475
13476 * win32-low.c (psapi_get_dll_name,
13477 * win32_CreateToolhelp32Snapshot): Delete.
13478 (win32_CreateToolhelp32Snapshot, win32_Module32First)
13479 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
13480 Delete.
13481 (handle_load_dll): Add function description.
13482 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
13483
13484 2014-02-26 Joel Brobecker <brobecker@adacore.com>
13485
13486 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
13487 Add comment.
13488 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
13489 base address when calling win32_add_one_solib.
13490 (handle_load_dll): Delete local variable load_addr.
13491 Remove 0x1000 offset applied to DLL base address when calling
13492 win32_add_one_solib.
13493 (handle_unload_dll): Add comment.
13494
13495 2014-02-26 Joel Brobecker <brobecker@adacore.com>
13496
13497 * win32-low.c (win32_add_all_dlls): Renames
13498 win32_ensure_ntdll_loaded. Rewrite function documentation.
13499 Adjust implementation to always load all DLLs.
13500 Add 0x1000 offset to DLL base address when calling
13501 win32_add_one_solib.
13502 (child_initialization_done): New static global.
13503 (do_initial_child_stuff): Set child_initialization_done to
13504 zero during child initialization, and 1 after. Replace call
13505 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
13506 Add comment.
13507 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
13508 (handle_unload_dll): Add function documentation.
13509 (get_child_debug_event): Ignore load and unload DLL events
13510 during child initialization.
13511
13512 2014-02-20 Doug Evans <dje@google.com>
13513
13514 Remove global all_lwps.
13515 * inferiors.h (ptid_of): Move here from linux-low.h.
13516 (pid_of, lwpid_of): Ditto.
13517 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
13518 parameter is a struct thread_info * now.
13519 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
13520 directly. Pass &all_threads to find_inferior instead of &all_lwps.
13521 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
13522 directly.
13523 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
13524 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
13525 * linux-arm-low.c (update_registers_callback): Update, "entry"
13526 parameter is a struct thread_info * now.
13527 Fetch lwpid from current_inferior directly.
13528 (arm_insert_point): Pass &all_threads to find_inferior instead of
13529 &all_lwps.
13530 (arm_remove_point): Ditto.
13531 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
13532 (arm_prepare_to_resume): Fetch pid from thread.
13533 (arm_read_description): Fetch lwpid from current_inferior directly.
13534 * linux-low.c (all_lwps): Delete.
13535 (delete_lwp): Delete call to remove_inferior.
13536 (handle_extended_wait): Fetch lwpid from thread.
13537 (add_lwp): Don't set lwp->entry.id. Remove call to
13538 add_inferior_to_list.
13539 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
13540 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
13541 (kill_one_lwp_callback): Ditto.
13542 (linux_kill): Don't dereference NULL pointer.
13543 Fetch ptid,lwpid from thread.
13544 (get_detach_signal): Fetch ptid from thread.
13545 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
13546 Simplify call to regcache_invalidate_thread.
13547 (delete_lwp_callback): Update, "entry" parameter is a
13548 struct thread_info * now. Fetch pid from thread.
13549 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
13550 (status_pending_p_callback): Update, "entry" parameter is a
13551 struct thread_info * now. Fetch ptid from thread.
13552 (find_lwp_pid): Update, "entry" parameter is a
13553 struct thread_info * now.
13554 (linux_wait_for_lwp): Fetch pid from thread.
13555 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
13556 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
13557 (enqueue_one_deferred_signal): Fetch lwpid from thread.
13558 (dequeue_one_deferred_signal): Ditto.
13559 (cancel_breakpoint): Fetch ptid from current_inferior.
13560 (linux_wait_for_event): Pass &all_threads to find_inferior,
13561 not &all_lwps. Fetch ptid, lwpid from thread.
13562 (count_events_callback): Update, "entry" parameter is a
13563 struct thread_info * now.
13564 (select_singlestep_lwp_callback): Ditto.
13565 (select_event_lwp_callback): Ditto.
13566 (cancel_breakpoints_callback): Ditto.
13567 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
13568 not &all_lwps.
13569 (select_event_lwp): Ditto. Fetch ptid from event_thread.
13570 (unsuspend_one_lwp): Update, "entry" parameter is a
13571 struct thread_info * now.
13572 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
13573 not &all_lwps.
13574 (linux_stabilize_threads): Ditto. And for for_each_inferior.
13575 Fetch lwpid from thread, not lwp.
13576 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
13577 Pass &all_threads to find_inferior, not &all_lwps.
13578 (send_sigstop): Fetch lwpid from thread, not lwp.
13579 (send_sigstop_callback): Update, "entry" parameter is a
13580 struct thread_info * now.
13581 (suspend_and_send_sigstop_callback): Ditto.
13582 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
13583 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
13584 struct thread_info * now.
13585 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
13586 from thread, lwp.
13587 (lwp_running): Update, "entry" parameter is a
13588 struct thread_info * now.
13589 (stop_all_lwps): Fetch ptid from thread.
13590 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
13591 (linux_resume_one_lwp): Fetch lwpid from thread.
13592 (linux_set_resume_request): Update, "entry" parameter is a
13593 struct thread_info * now. Fetch pid, lwpid from thread.
13594 (resume_status_pending_p): Update, "entry" parameter is a
13595 struct thread_info * now.
13596 (need_step_over_p): Ditto. Fetch lwpid from thread.
13597 (start_step_over): Fetch lwpid from thread.
13598 (linux_resume_one_thread): Update, "entry" parameter is a
13599 struct thread_info * now. Fetch lwpid from thread.
13600 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
13601 (proceed_one_lwp): Update, "entry" parameter is a
13602 struct thread_info * now. Fetch lwpid from thread.
13603 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
13604 struct thread_info * now.
13605 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
13606 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
13607 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
13608 directly.
13609 (regsets_store_inferior_registers): Ditto.
13610 (fetch_register, store_register): Ditto.
13611 (linux_read_memory, linux_write_memory): Ditto.
13612 (linux_request_interrupt): Ditto.
13613 (linux_read_auxv): Ditto.
13614 (linux_xfer_siginfo): Ditto.
13615 (linux_qxfer_spu): Ditto.
13616 (linux_qxfer_libraries_svr4): Ditto.
13617 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
13618 moved to inferiors.h.
13619 (get_lwp): Delete.
13620 (get_thread_lwp): Update.
13621 (struct lwp_info): Delete member "entry". Simplify comment for
13622 member "thread".
13623 (all_lwps): Delete.
13624 * linux-mips-low.c (mips_read_description): Fetch lwpid from
13625 current_inferior directly.
13626 (update_watch_registers_callback): Update, "entry" parameter is a
13627 struct thread_info * now. Fetch pid from thread.
13628 (mips_linux_prepare_to_resume): Fetch ptid from thread.
13629 (mips_insert_point): Fetch lwpid from current_inferior.
13630 Pass &all_threads to find_inferior, not &all_lwps.
13631 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
13632 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
13633 directly.
13634 (mips_stopped_data_address): Ditto.
13635 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
13636 directly.
13637 * linux-tile-low.c (tile_arch_setup): Ditto.
13638 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
13639 (update_debug_registers_callback): Update, "entry" parameter is a
13640 struct thread_info * now. Fetch pid from thread.
13641 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
13642 Pass &all_threads to find_inferior, not &all_lwps.
13643 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
13644 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
13645 Pass &all_threads to find_inferior, not &all_lwps.
13646 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
13647 (i386_dr_low_get_status): Ditto.
13648 (x86_linux_prepare_to_resume): Fetch ptid from thread.
13649 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
13650 (x86_linux_read_description): Ditto.
13651 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
13652
13653 2014-02-20 Doug Evans <dje@google.com>
13654
13655 * inferiors.c (get_first_inferior): Fix buglet.
13656
13657 2014-02-19 Doug Evans <dje@google.com>
13658
13659 * gdbthread.h (add_thread): Change result type to struct thread_info *.
13660 * inferiors.c (add_thread): Change result type to struct thread_info *.
13661 All callers updated.
13662 (add_lwp): Call add_thread here instead of in callers.
13663 All callers updated.
13664 * linux-low.h (get_lwp_thread): Rewrite.
13665 (struct lwp_info): New member "thread".
13666
13667 2014-02-19 Doug Evans <dje@google.com>
13668
13669 * linux-low.c (add_lwp): Change result to struct lwp_info *.
13670 All callers updated.
13671
13672 2014-02-19 Doug Evans <dje@google.com>
13673
13674 * inferiors.c (add_thread): Fix whitespace.
13675
13676 2014-02-19 Doug Evans <dje@google.com>
13677
13678 * dll.c (clear_dlls): Replace accessing list implemention details
13679 with API function.
13680 * gdbthread.h (get_first_thread): Declare.
13681 * inferiors.c (for_each_inferior_with_data): New function.
13682 (get_first_thread): New function.
13683 (find_thread_ptid): Simplify.
13684 (get_first_inferior): New function.
13685 (clear_list): Delete.
13686 (one_inferior_p): New function.
13687 (clear_inferior_list): New function.
13688 (clear_inferiors): Update.
13689 * inferiors.h (for_each_inferior_with_data): Declare.
13690 (clear_inferior_list): Declare.
13691 (one_inferior_p): Declare.
13692 (get_first_inferior): Declare.
13693 * linux-low.c (linux_wait_for_event): Replace accessing list
13694 implemention details with API function.
13695 * server.c (target_running): Ditto.
13696 (accumulate_file_name_length): New function.
13697 (emit_dll_description): New function.
13698 (handle_qxfer_libraries): Replace accessing list implemention
13699 details with API function.
13700 (handle_qxfer_threads_worker): New function.
13701 (handle_qxfer_threads_proper): Replace accessing list implemention
13702 details with API function.
13703 (handle_query): Ditto.
13704 (visit_actioned_threads_callback_ftype): New typedef.
13705 (visit_actioned_threads_data): New struct.
13706 (visit_actioned_threads): Rewrite to be find_inferior callback.
13707 (resume): Call find_inferior.
13708 (handle_status): Replace accessing list implemention
13709 details with API function.
13710 (process_serial_event): Replace accessing list implemention details
13711 with API function.
13712 * target.c (set_desired_inferior): Replace accessing list implemention
13713 details with API function.
13714 * tracepoint.c (same_process_p): New function.
13715 (gdb_agent_about_to_close): Replace accessing list implemention
13716 details with API function.
13717 * win32-low.c (child_delete_thread): Replace accessing list
13718 implemention details with API function.
13719 (match_dll_by_basename): New function.
13720 (dll_is_loaded_by_basename): New function.
13721 (win32_ensure_ntdll_loaded): Replace accessing list implemention
13722 details call to dll_is_loaded_by_basename.
13723
13724 2014-02-19 Doug Evans <dje@google.com>
13725
13726 * dll.h (struct dll_info): Add comment.
13727 * gdbthread.h (struct thread_info): Add comment.
13728 (current_ptid): Simplify.
13729 * inferiors.c (add_process): Update.
13730 (remove_process): Update.
13731 * inferiors.h (struct process_info): Rename member "head" to "entry".
13732 * linux-low.c (delete_lwp): Update.
13733 (add_lwp): Update.
13734 (last_thread_of_process_p): Update.
13735 (kill_one_lwp_callback, linux_kill): Update.
13736 (status_pending_p_callback): Update.
13737 (wait_for_sigstop): Update. Simplify read of ptid.
13738 (start_step_over): Update.
13739 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
13740 (get_lwp_thread): Update.
13741 (struct lwp_info): Rename member "head" to "entry".
13742 * regcache.h (inferior_list_entry): Delete.
13743 * server.c (kill_inferior_callback): Update.
13744 (detach_or_kill_inferior_callback): Update.
13745 (print_started_pid): Update.
13746 (print_attached_pid): Update.
13747 (process_serial_event): Simplify read of ptid.
13748 * thread-db.c (thread_db_create_event): Update.
13749 (thread_db_get_tls_address): Update.
13750 * win32-low.c (current_inferior_ptid): Simplify.
13751
13752 2014-02-19 Tom Tromey <tromey@redhat.com>
13753
13754 * target.h (struct target_ops) <supports_btrace>: Add target_ops
13755 argument.
13756 (target_supports_btrace): Update.
13757
13758 2014-02-14 Yao Qi <yao@codesourcery.com>
13759
13760 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
13761 (rsp-low-ipa.o): New target.
13762
13763 2014-02-12 Tom Tromey <tromey@redhat.com>
13764
13765 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
13766 convert_ascii_to_int.
13767 * regcache.c (registers_to_string): Likewise.
13768 * remote-utils.c (decode_M_packet): Likewise.
13769 * server.c (process_serial_event): Likewise.
13770
13771 2014-02-12 Tom Tromey <tromey@redhat.com>
13772
13773 * server.c (handle_query, handle_v_run): Use hex2bin, not
13774 unhexify.
13775 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
13776
13777 2014-02-12 Tom Tromey <tromey@redhat.com>
13778
13779 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
13780 convert_int_to_ascii.
13781 * regcache.c (registers_to_string, collect_register_as_string):
13782 Likewise.
13783 * remote-utils.c (look_up_one_symbol, relocate_instruction):
13784 Likewise.
13785 * server.c (process_serial_event): Likewise.
13786 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
13787 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
13788
13789 2014-02-12 Tom Tromey <tromey@redhat.com>
13790
13791 * remote-utils.c (look_up_one_symbol, monitor_output): Use
13792 bin2hex, not hexify.
13793 * tracepoint.c (cmd_qtstatus): Likewise.
13794
13795 2014-02-12 Tom Tromey <tromey@redhat.com>
13796
13797 * remote-utils.c (monitor_output): Pass explicit length to
13798 hexify.
13799
13800 2014-02-12 Tom Tromey <tromey@redhat.com>
13801
13802 * tracepoint.c: Include rsp-low.h.
13803 * server.c: Include rsp-low.h.
13804 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
13805 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
13806 declare.
13807 * remote-utils.c: Include rsp-low.h.
13808 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
13809 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
13810 (convert_int_to_ascii, convert_ascii_to_int): Move to
13811 common/rsp-low.c.
13812 * regcache.c: Include rsp-low.h.
13813 * ax.c: Include rsp-low.h.
13814 * Makefile.in (SFILES): Add common/rsp-low.c.
13815 (OBS): Add rsp-low.o.
13816 (rsp-low.o): New target.
13817
13818 2014-02-12 Tom Tromey <tromey@redhat.com>
13819
13820 * utils.h (pulongest, plongest, phex_nz): Don't declare.
13821 Include print-utils.h.
13822 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13823 (plongest, thirty_two, phex_nz): Remove.
13824 * Makefile.in (SFILES): Add common/print-utils.c.
13825 (OBS): Add print-utils.o.
13826 (print-utils-ipa.o): New target.
13827 (print-utils.o): New target.
13828 (IPA_OBJS): Add print-utils-ipa.o.
13829
13830 2014-02-06 Tom Tromey <tromey@redhat.com>
13831
13832 * Makefile.in (SFILES): Fix indentation.
13833
13834 2014-02-05 Doug Evans <dje@google.com>
13835
13836 * linux-low.c (linux_wait_for_event): Improve comment.
13837 (linux_wait_1): Keep current_inferior in sync with event_child.
13838
13839 2014-01-22 Doug Evans <dje@google.com>
13840
13841 * gdbthread.h (gdb_id_to_thread): Delete, unused.
13842
13843 2014-01-22 Doug Evans <dje@google.com>
13844
13845 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
13846 * configure: Regenerate.
13847 * config.in: Regenerate.
13848 * Makefile.in (SFILES): Add debug.c.
13849 (OBS): Add debug.o.
13850 * debug.c: New file.
13851 * debug.h: New file.
13852 * linux-aarch64-low.c (*): Update all debugging printfs to use
13853 debug_printf instead of fprintf.
13854 * linux-arm-low.c (*): Ditto.
13855 * linux-cris-low.c (*): Ditto.
13856 * linux-crisv32-low.c (*): Ditto.
13857 * linux-m32r-low.c (*): Ditto.
13858 * linux-sparc-low.c (*): Ditto.
13859 * linux-x86.c (*): Ditto.
13860 * linux-low.c (*): Ditto.
13861 (linux_wait_1): Add calls to debug_enter, debug_exit.
13862 (linux_wait): Remove redundant debugging printf.
13863 (stop_all_lwps): Add calls to debug_enter, debug_exit.
13864 (linux_resume, unstop_all_lwps): Ditto.
13865 * mem-break.c (*): Update all debugging printfs to use
13866 debug_printf instead of fprintf.
13867 * remote-utils.c (*): Ditto.
13868 * thread-db.c (*): Ditto.
13869 * server.c #include <ctype.h>, "gdb_vecs.h".
13870 (debug_threads): Moved to debug.c.
13871 (*): Update all debugging printfs to use debug_printf instead of
13872 fprintf.
13873 (start_inferior): Replace call to fflush with call to debug_flush.
13874 (monitor_show_help): Mention set debug-format.
13875 (parse_debug_format_options): New function.
13876 (handle_monitor_command): Handle "monitor set debug-format".
13877 (gdbserver_usage): Mention --debug-format.
13878 (main): Parse --debug-format.
13879 * server.h (debug_threads): Declaration moved to debug.h.
13880 #include "debug.h".
13881 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
13882 trace_debug_1 that uses debug_printf.
13883 (tracepoint_look_up_symbols): Update all debugging printfs to use
13884 debug_printf instead of fprintf.
13885
13886 2014-01-20 Baruch Siach <baruch@tkos.co.il>
13887
13888 * linux-xtensa-low.c: Include asm/ptrace.h instead of
13889 sys/ptrace.h.
13890
13891 2014-01-17 Pedro Alves <palves@redhat.com>
13892
13893 PR build/16445
13894 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
13895 defined after including gdb_proc_service.h.
13896
13897 2014-01-16 Doug Evans <dje@google.com>
13898
13899 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
13900 (match_dll): Use it.
13901
13902 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13903
13904 * target.h (target_ops) <read_btrace>: Change parameters and
13905 return type to allow error reporting.
13906 * server.c (handle_qxfer_btrace): Support delta reads. Pass
13907 trace reading errors on.
13908 * linux-low.c (linux_low_read_btrace): Pass trace reading
13909 errors on.
13910 (linux_low_disable_btrace): New.
13911
13912 2014-01-15 Doug Evans <dje@google.com>
13913
13914 * inferiors.c (thread_id_to_gdb_id): Delete.
13915 * inferiors.h (thread_id_to_gdb_id): Delete.
13916
13917 2014-01-13 Eli Zaretskii <eliz@gnu.org>
13918
13919 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
13920 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
13921 versions.
13922
13923 2014-01-08 Pedro Alves <palves@redhat.com>
13924
13925 * server.c (handle_status): Don't discard previous queued stop
13926 replies or thread's pending status here.
13927 (main) <disconnection>: Do it here instead.
13928
13929 2014-01-08 Pedro Alves <palves@redhat.com>
13930
13931 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
13932 * server.c (visit_actioned_threads, handle_pending_status): New
13933 function.
13934 (handle_v_cont): Factor out parts to ...
13935 (resume): ... this new function. If in all-stop, and a thread
13936 being resumed has a pending status, report it without actually
13937 resuming.
13938 (myresume): Adjust to use the new 'resume' function.
13939 (clear_pending_status_callback, set_pending_status_callback)
13940 (find_status_pending_thread_callback): New functions.
13941 (handle_status): Handle the case of multiple threads having
13942 interesting statuses to report. Report threads' real last signal
13943 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
13944 with an interesting thread to report the status for, instead of
13945 always reporting the status of the first thread.
13946
13947 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13948
13949 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
13950 * gdbreplay.c (gdbreplay_version): Likewise.
13951
13952 2013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
13953
13954 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
13955 iov.iov_len with the real length in use.
13956
13957 2013-12-13 Joel Brobecker <brobecker@adacore.com>
13958
13959 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
13960 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
13961 for all targets that use win32-low.c.
13962 * win32-low.c (win32_ensure_ntdll_loaded): New function.
13963 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
13964
13965 2013-12-13 Pedro Alves <palves@redhat.com>
13966
13967 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
13968 if equal to TARGET_WAITKIND_LOADED.
13969 * win32-low.c (cached_status): New static global.
13970 (win32_wait): Add declaration.
13971 (do_initial_child_stuff): Flush all initial pending debug events
13972 up to the initial breakpoint.
13973 (win32_wait): If CACHED_STATUS was set, return that instead
13974 of doing a real wait. Remove the code resuming the execution
13975 of the inferior after receiving a TARGET_WAITKIND_LOADED event
13976 during the initial phase. Also remove the code changing
13977 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
13978 TARGET_WAITKIND_STOPPED.
13979
13980 2013-12-11 Yao Qi <yao@codesourcery.com>
13981
13982 * notif.c (handle_notif_ack): Return 0 if no notification
13983 matches.
13984
13985 2013-11-20 Doug Evans <dje@google.com>
13986
13987 * linux-low.c (linux_set_resume_request): Fix comment.
13988
13989 2013-11-20 Doug Evans <dje@google.com>
13990
13991 * linux-low.c (resume_status_pending_p): Tweak comment.
13992
13993 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
13994
13995 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
13996 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
13997 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
13998 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
13999 (srv_amd64_regobj): Add amd64-mpx.o.
14000 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
14001 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
14002 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
14003 * i387-fp.c (num_pl_bnd_register) Added constant.
14004 (num_pl_bnd_cfg_registers) Added constant.
14005 (struct i387_xsave) Added reserved area and MPX fields.
14006 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
14007 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
14008 function.
14009 (tdesc_i386_mpx_linux): Add MPX amd64 target.
14010 (init_registers_amd64_mpx_linux): Declare new function.
14011 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
14012 (x86_64_regmap): Add MPX registers.
14013 (x86_linux_read_description): Add MPX case.
14014 (initialize_low_arch): Initialize MPX targets.
14015
14016 2013-11-18 Tom Tromey <tromey@redhat.com>
14017
14018 * configure: Rebuild.
14019 * configure.ac: Don't check for stdlib.h.
14020 * gdbreplay.c: Unconditionally include stdlib.h.
14021
14022 2013-11-18 Tom Tromey <tromey@redhat.com>
14023
14024 * config.in: Rebuild.
14025 * configure: Rebuild.
14026 * configure.ac: Don't use AC_HEADER_DIRENT.
14027
14028 2013-11-18 Tom Tromey <tromey@redhat.com>
14029
14030 * server.h: Don't check HAVE_STRING_H.
14031 * gdbreplay.c: Don't check HAVE_STRING_H.
14032 * configure: Rebuild.
14033
14034 2013-11-18 Tom Tromey <tromey@redhat.com>
14035
14036 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
14037 LIBGNU.
14038
14039 2013-11-08 Tom Tromey <tromey@redhat.com>
14040
14041 * configure, config.in: Rebuild.
14042 * configure.ac: Remove unused configury.
14043
14044 2013-11-08 Tom Tromey <tromey@redhat.com>
14045
14046 * acinclude.m4: Include common.m4, codeset.m4.
14047 * configure, config.in: Rebuild.
14048 * configure.ac: Use GDB_AC_COMMON.
14049
14050 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
14051
14052 * linux-s390-low.c (HWCAP_S390_TE): New define.
14053 (s390_arch_setup): Consider the TE field in the HWCAP for
14054 determining 'have_regset_tdb'.
14055
14056 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
14057
14058 PR gdb/16014
14059 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
14060 call to sizeof.
14061
14062 2013-10-02 Pedro Alves <palves@redhat.com>
14063
14064 * server.c (process_serial_event): Don't output "GDBserver
14065 exiting" if GDB is connected through stdio.
14066 * target.c (mywait): Likewise, be silent if GDB is connected
14067 through stdio.
14068
14069 2013-10-01 Joel Brobecker <brobecker@adacore.com>
14070
14071 * lynx-low.c (lynx_add_threads_after_attach): New function.
14072 (lynx_attach): Remove call to add_thread. Add call to
14073 lynx_add_threads_after_attach instead.
14074
14075 2013-09-28 Mike Frysinger <vapier@gentoo.org>
14076
14077 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
14078 * config.in, configure: Regenerated.
14079
14080 2013-09-18 Yao Qi <yao@codesourcery.com>
14081
14082 PR server/15959
14083 * server.c (start_inferior): Clear 'resume_info'.
14084
14085 2013-09-16 Jiong Wang <jiwang@tilera.com>
14086
14087 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
14088 for each register.
14089
14090 2013-09-16 Jiong Wang <jiwang@tilera.com>
14091
14092 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
14093 linux-tile-low.o to srv_tgtobj.
14094
14095 2013-09-16 Will Newton <will.newton@linaro.org>
14096
14097 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
14098 out regs.
14099
14100 2013-09-06 Pedro Alves <palves@redhat.com>
14101
14102 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
14103 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
14104 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
14105 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
14106 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
14107 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
14108
14109 2013-09-06 Pedro Alves <palves@redhat.com>
14110
14111 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
14112 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
14113
14114 2013-09-06 Pedro Alves <palves@redhat.com>
14115
14116 * linux-amd64-ipa.c: Include tracepoint.h.
14117 * linux-i386-ipa.c: Include tracepoint.h.
14118
14119 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
14120
14121 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
14122 (ps_get_thread_area): New function.
14123
14124 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
14125
14126 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
14127 (initialize_low_arch): Call init_registers_crisv32 rather than
14128 init_register_crisv32.
14129
14130 2013-09-05 Pedro Alves <palves@redhat.com>
14131
14132 * server.h (handle_vFile, hostio_last_error_from_errno): Move
14133 to ...
14134 * hostio.h: ... this new file.
14135 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
14136 win32-low.c: Include hostio.h.
14137
14138 2013-09-05 Pedro Alves <palves@redhat.com>
14139
14140 * server.h (gdb_client_data, handler_func, callback_handler_func)
14141 (delete_file_handler, add_file_handler, append_callback_event)
14142 (delete_callback_event, start_event_loop, initialize_event_loop):
14143 Move to event-loop.h and include it.
14144 * event-loop.h: New file.
14145
14146 2013-09-05 Pedro Alves <palves@redhat.com>
14147
14148 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
14149 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
14150 (loaded_dll, unloaded_dll): Move to ...
14151 * dll.h: ... this new file.
14152 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
14153
14154 2013-09-05 Pedro Alves <palves@redhat.com>
14155
14156 * server.h (current_process, get_thread_process, all_processes)
14157 (add_inferior_to_list, for_each_inferior, current_inferior)
14158 (remove_inferior, add_process, remove_process, find_process_pid)
14159 (have_started_inferiors_p, have_attached_inferiors_p)
14160 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
14161 (clear_inferiors, find_inferior, find_inferior_id)
14162 (inferior_target_data, set_inferior_target_data)
14163 (inferior_regcache_data, set_inferior_regcache_data): Move to
14164 inferiors.h, and include it.
14165 * inferiors.h: New file.
14166
14167 2013-09-05 Pedro Alves <palves@redhat.com>
14168
14169 * server.h (struct emit_ops, current_insn_ptr, emit_error):
14170 Move ...
14171 * ax.h: ... here.
14172
14173 2013-09-05 Pedro Alves <palves@redhat.com>
14174
14175 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
14176 tracepoint.h.
14177 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
14178 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
14179 (handle_tracepoint_general_set, handle_tracepoint_query)
14180 (tracepoint_finished_step, tracepoint_was_hit)
14181 (release_while_stepping_state_list, current_traceframe)
14182 (in_readonly_region, traceframe_read_mem)
14183 (fetch_traceframe_registers, traceframe_read_sdata)
14184 (traceframe_read_info, struct fast_tpoint_collect_status)
14185 (fast_tracepoint_collecting, force_unlock_trace_buffer)
14186 (handle_tracepoit_bkpts, initialize_low_tracepoint)
14187 (supply_fast_tracepoint_registers)
14188 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
14189 (ipa_tdesc, claim_trampoline_space)
14190 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
14191 (agent_mem_read, agent_get_trace_state_variable_value)
14192 (agent_set_trace_state_variable_value, agent_tsv_read)
14193 (agent_mem_read_string, get_raw_reg_func_addr)
14194 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
14195 * tracepoint.h: ... this new file.
14196
14197 2013-09-05 Pedro Alves <palves@redhat.com>
14198
14199 * server.h (perror_with_name, error, fatal, warning, paddress)
14200 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
14201 include it.
14202 * utils.h: New file.
14203
14204 2013-09-05 Pedro Alves <palves@redhat.com>
14205
14206 * server.h (remote_debug, noack_mode, transport_is_reliable)
14207 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
14208 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
14209 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
14210 (write_enn, initialize_async_io, enable_async_io)
14211 (disable_async_io, check_remote_input_interrupt_request)
14212 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
14213 (dead_thread_notify, prepare_resume_reply)
14214 (decode_address_to_semicolon, decode_address, decode_m_packet)
14215 (decode_M_packet, decode_X_packet, decode_xfer_write)
14216 (decode_search_memory_packet, unhexify, hexify)
14217 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
14218 (look_up_one_symbol, relocate_instruction)
14219 (monitor_output): Move to remote-utils.h, and include it.
14220 * remote-utils.h: New file.
14221
14222 2013-09-05 Pedro Alves <palves@redhat.com>
14223
14224 * server.h (_): Delete.
14225
14226 2013-09-02 Pedro Alves <palves@redhat.com>
14227
14228 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
14229 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
14230 allocated.
14231 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
14232
14233 2013-09-02 Pierre Muller <muller@sourceware.org>
14234
14235 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
14236 or WriteProcessMemory complete successfully and handle
14237 ERROR_PARTIAL_COPY error.
14238
14239 2013-09-02 Pedro Alves <palves@redhat.com>
14240
14241 * server.c (gdb_read_memory): Return -1 on traceframe memory read
14242 error instead of EIO.
14243
14244 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
14245
14246 PR server/15604
14247 * linux-low.c: Include filestuff.h.
14248 (linux_create_inferior) <pid == 0>: Call close_most_fds.
14249 * lynx-low.c: Include filestuff.h.
14250 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
14251 * server.c: Include filestuff.h.
14252 (main): Call notice_open_fds.
14253 * spu-low.c: Include filestuff.h.
14254 (spu_create_inferior) <pid == 0>: Call close_most_fds.
14255
14256 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
14257
14258 * Makefile.in: Explain why ../target and ../nat are not
14259 listed as include file search paths.
14260 (linux-waitpid.o): New object file rule.
14261 * configure.srv (srv_native_linux_obj): New variable.
14262 Replace all occurrences of linux native object files with
14263 $srv_native_linux_obj.
14264 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
14265 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
14266 (linux_enable_event_reporting): Remove declaration.
14267 (my_waitpid): Moved to common/linux-waitpid.c.
14268 (linux_wait_for_event): Pass ptid when calling
14269 linux_enable_event_reporting.
14270 (linux_supports_tracefork_flag): Remove.
14271 (linux_enable_event_reporting): Likewise.
14272 (linux_tracefork_grandchild): Remove.
14273 (STACK_SIZE): Moved to common/linux-ptrace.c.
14274 (linux_tracefork_child): Remove.
14275 (linux_test_for_tracefork): Remove.
14276 (linux_look_up_symbols): Call linux_supports_traceclone.
14277 (initialize_low): Remove call to linux_test_for_tracefork.
14278 * linux-low.h (PTRACE_TYPE_ARG3): Move to
14279 common/linux-ptrace.h.
14280 (PTRACE_TYPE_ARG4): Likewise.
14281 Include linux-ptrace.h.
14282
14283 2013-08-21 Pedro Alves <palves@redhat.com>
14284
14285 * config.in: Renegerate.
14286
14287 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
14288
14289 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
14290 (SFILES): Remove $(srcdir)/common/target-common.c and
14291 add $(srcdir)/target/waitstatus.c.
14292 (OBS): Remove target-common.o and add waitstatus.o.
14293 (server_h): Remove $(srcdir)/../common/target-common.h and
14294 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
14295 and $(srcdir)/../target/waitstatus.h.
14296 (target-common.o): Remove.
14297 (waitstatus.o): New target object file.
14298 * target.h: Do not include target-common.h and
14299 include target/resume.h, target/wait.h and
14300 target/waitstatus.h.
14301
14302 2013-08-13 Luis Machado <lgustavo@codesourcery.com>
14303
14304 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
14305 to PTRACE_TYPE_ARG3.
14306 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
14307 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
14308 PTRACE_TYPE_ARG4.
14309 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
14310 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
14311
14312 2013-07-27 Jie Zhang <jie@codesourcery.com>
14313 Daniel Jacobowitz <dan@codesourcery.com>
14314 Yao Qi <yao@codesourcery.com>
14315
14316 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
14317 (mips-linux-watch.o): New rule.
14318 (mips_linux_watch_h): New variable.
14319 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
14320 srv_tgtobj.
14321 * linux-mips-low.c: Include mips-linux-watch.h.
14322 (struct arch_process_info, struct arch_lwp_info): New.
14323 (update_watch_registers_callback): New function.
14324 (mips_linux_new_process, mips_linux_new_thread) New functions.
14325 (mips_linux_prepare_to_resume, mips_insert_point): New
14326 functions.
14327 (mips_remove_point, mips_stopped_by_watchpoint): New
14328 functions.
14329 (rsp_bp_type_to_target_hw_bp_type): New function.
14330 (mips_stopped_data_address): New function.
14331 (the_low_target): Add watchpoint support functions.
14332
14333 2013-07-27 Yao Qi <yao@codesourcery.com>
14334
14335 * i386-low.c: Include break-common.h.
14336 (enum target_hw_bp_type): Remove.
14337
14338 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
14339
14340 * Makefile.in (SFILES): /common/target-common.c.
14341 (OBS): Add target-common.o.
14342 (server_h): Add $(srcdir)/../common/target-common.h.
14343 (target-common.o): New target.
14344 * server.c (queue_stop_reply_callback): Free
14345 status string after use.
14346 * target.c (target_waitstatus_to_string): Remove.
14347 * target.h: Include target-common.h.
14348 (resume_kind): Likewise.
14349 (target_waitkind): Likewise.
14350 (target_waitstatus): Likewise.
14351 (TARGET_WNOHANG): Likewise.
14352
14353 2013-07-04 Yao Qi <yao@codesourcery.com>
14354
14355 * Makefile.in (host_alias): Use @host_noncanonical@.
14356 (target_alias): Use @target_noncanonical@.
14357 * configure.ac: Use ACX_NONCANONICAL_TARGET and
14358 ACX_NONCANONICAL_HOST.
14359 * configure: Regenerated.
14360
14361 Revert:
14362 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
14363
14364 * configure.ac (version_host, version_target): Set and AC_SUBST them.
14365 * configure: Rebuild.
14366 * Makefile.in (version_host, version_target): Get from configure.
14367 (version.c): Use $(version_host) and $(version_target).
14368
14369 2013-07-03 Pedro Alves <palves@redhat.com>
14370
14371 * Makefile.in (config.status): Depend on development.sh.
14372 * acinclude.m4: Include libmcheck.m4.
14373 * configure: Regenerate.
14374
14375 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
14376
14377 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
14378 attribute inside the parentheses.
14379 (winapi_DebugSetProcessKillOnExit): Ditto.
14380 (winapi_DebugBreakProcess): Ditto.
14381 (winapi_GenerateConsoleCtrlEvent): Ditto.
14382
14383 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
14384
14385 * notif.h (notif_event): Add a dummy member to avoid compiler
14386 errors.
14387
14388 2013-07-01 Pedro Alves <palves@redhat.com>
14389
14390 * hostio.c (HOSTIO_PATH_MAX): Define.
14391 (require_filename, handle_open, handle_unlink, handle_readlink):
14392 Use it.
14393
14394 2013-07-01 Pedro Alves <palves@redhat.com>
14395
14396 * server.h: Include "pathmax.h".
14397 * linux-low.c: Don't include sys/param.h.
14398 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
14399 MAXPATHLEN.
14400 * win32-low.c: Don't include sys/param.h.
14401 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
14402
14403 2013-07-01 Pedro Alves <palves@redhat.com>
14404
14405 * event-loop.c: Don't check HAVE_UNISTD_H before including
14406 <unistd.h>.
14407 * gdbreplay.c: Likewise.
14408 * remote-utils.c: Likewise.
14409 * server.c: Likewise.
14410 * configure.ac: Don't check for unistd.h.
14411 * configure: Regenerate.
14412
14413 2013-06-28 Tom Tromey <tromey@redhat.com>
14414
14415 * Makefile.in (version.c): Use version.in, not
14416 common/version.in.
14417
14418 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
14419
14420 * configure.ac (version_host, version_target): Set and AC_SUBST them.
14421 * configure: Rebuild.
14422 * Makefile.in (version_host, version_target): Get from configure.
14423 (version.c): Use $(version_host) and $(version_target).
14424
14425 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
14426
14427 Fix trace-status to output user name without trailing colon.
14428 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
14429
14430 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
14431
14432 Fix trace-status to output proper start-time and stop-time.
14433 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
14434 output start time and stop time in hex as gdb expects.
14435
14436 2013-06-26 Pedro Alves <pedro@codesourcery.com>
14437
14438 * tracepoint.c (build_traceframe_info_xml): Output trace state
14439 variables present in the trace buffer.
14440
14441 2013-06-24 Tom Tromey <tromey@redhat.com>
14442
14443 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
14444 create-version.sh.
14445 (version.o): Remove.
14446 * gdbreplay.c: Include version.h.
14447 (version, host_name): Don't declare.
14448 * server.h: Include version.h.
14449 (version, host_name): Don't declare.
14450
14451 2013-06-12 Pedro Alves <palves@redhat.com>
14452
14453 * linux-x86-low.c (linux_is_elf64): Delete global.
14454 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
14455 with local linux_pid_exe_is_elf_64_file use.
14456
14457 2013-06-11 Pedro Alves <palves@redhat.com>
14458
14459 * linux-low.c (regset_disabled, disable_regset): New functions.
14460 (regsets_fetch_inferior_registers)
14461 (regsets_store_inferior_registers): Use them.
14462 (initialize_regsets_info); Don't allocate the disabled_regsets
14463 array here.
14464 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
14465 comment.
14466
14467 2013-06-11 Pedro Alves <palves@redhat.com>
14468
14469 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
14470 xmalloc.
14471
14472 2013-06-11 Pedro Alves <palves@redhat.com>
14473
14474 * linux-x86-low.c (initialize_low_arch): Call
14475 init_registers_x32_avx_linux.
14476
14477 2013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
14478
14479 Fix compatibility with Android Bionic.
14480 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
14481 it is not empty.
14482
14483 2013-06-07 Pedro Alves <palves@redhat.com>
14484
14485 PR server/14823
14486 * Makefile.in (OBS): Add tdesc.o.
14487 (IPA_OBJS): Add tdesc-ipa.o.
14488 (tdesc-ipa.o): New rule.
14489 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
14490 interface.
14491 * linux-low.c (new_inferior): Delete.
14492 (disabled_regsets, num_regsets): Delete.
14493 (linux_add_process): Adjust to set the new per-process
14494 new_inferior flag.
14495 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
14496 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
14497 was a stop. When calling arch_setup, switch the current inferior
14498 to the thread that got an event.
14499 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
14500 (regsets_fetch_inferior_registers)
14501 (regsets_store_inferior_registers): New regsets_info parameter.
14502 Adjust to use it.
14503 (linux_register_in_regsets): New regs_info parameter. Adjust to
14504 use it.
14505 (register_addr, fetch_register, store_register): New usrregs_info
14506 parameter. Adjust to use it.
14507 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
14508 parameter regs_info. Adjust to use it.
14509 (linux_fetch_registers): Get the current inferior's regs_info, and
14510 adjust to use it.
14511 (linux_store_registers): Ditto.
14512 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
14513 (initialize_low): Don't initialize the target_regsets here. Call
14514 initialize_low_arch.
14515 * linux-low.h (target_regsets): Delete declaration.
14516 (struct regsets_info): New.
14517 (struct usrregs_info): New.
14518 (struct regs_info): New.
14519 (struct process_info_private) <new_inferior>: New field.
14520 (struct linux_target_ops): Delete the num_regs, regmap, and
14521 regset_bitmap fields. New field regs_info.
14522 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
14523 * i387-fp.c (num_xmm_registers): Delete.
14524 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
14525 calls to new interface.
14526 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
14527 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
14528 Infer the number of xmm registers from the regcache's target
14529 description.
14530 * i387-fp.h (num_xmm_registers): Delete.
14531 * inferiors.c (add_thread): Don't install the thread's regcache
14532 here.
14533 * proc-service.c (gregset_info): Fetch the current inferior's
14534 regs_info. Adjust to use it.
14535 * regcache.c: Include tdesc.h.
14536 (register_bytes, reg_defs, num_registers)
14537 (gdbserver_expedite_regs): Delete.
14538 (get_thread_regcache): If the thread doesn't have a regcache yet,
14539 create one, instead of aborting gdbserver.
14540 (regcache_invalidate_one): Rename to ...
14541 (regcache_invalidate_thread): ... this.
14542 (regcache_invalidate_one): New.
14543 (regcache_invalidate): Only invalidate registers of the current
14544 process.
14545 (init_register_cache): Add target_desc parameter, and use it.
14546 (new_register_cache): Ditto. Assert the target description has a
14547 non zero registers_size.
14548 (regcache_cpy): Add assertions. Adjust.
14549 (realloc_register_cache, set_register_cache): Delete.
14550 (registers_to_string, registers_from_string): Adjust.
14551 (find_register_by_name, find_regno, find_register_by_number)
14552 (register_cache_size): Add target_desc parameter, and use it.
14553 (free_register_cache_thread, free_register_cache_thread_one)
14554 (regcache_release, register_cache_size): New.
14555 (register_size): Add target_desc parameter, and use it.
14556 (register_data, supply_register, supply_register_zeroed)
14557 (supply_regblock, supply_register_by_name, collect_register)
14558 (collect_register_as_string, collect_register_by_name): Adjust.
14559 * regcache.h (struct target_desc): Forward declare.
14560 (struct regcache) <tdesc>: New field.
14561 (init_register_cache, new_register_cache): Add target_desc
14562 parameter.
14563 (regcache_invalidate_thread): Declare.
14564 (regcache_invalidate_one): Delete declaration.
14565 (regcache_release): Declare.
14566 (find_register_by_number, register_cache_size, register_size)
14567 (find_regno): Add target_desc parameter.
14568 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
14569 declarations.
14570 * remote-utils.c: Include tdesc.h.
14571 (outreg, prepare_resume_reply): Adjust.
14572 * server.c: Include tdesc.h.
14573 (gdbserver_xmltarget): Delete declaration.
14574 (get_features_xml, process_serial_event): Adjust.
14575 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
14576 declare.
14577 (struct process_info) <tdesc>: New field.
14578 (ipa_tdesc): Declare.
14579 * tdesc.c: New file.
14580 * tdesc.h: New file.
14581 * tracepoint.c: Include tdesc.h.
14582 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
14583 (get_context_regcache): Adjust to pass ipa_tdesc down.
14584 (do_action_at_tracepoint): Adjust to get the register cache size
14585 from the context regcache's description.
14586 (traceframe_walk_blocks): Adjust to get the register cache size
14587 from the current trace frame's description.
14588 (traceframe_get_pc): Adjust to get current trace frame's
14589 description and pass it down.
14590 (gdb_collect): Adjust to get the register cache size from the
14591 IPA's description.
14592 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
14593 (gdbserver_xmltarget): Delete.
14594 (initialize_low_tracepoint): Set the ipa's target description.
14595 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
14596 (initialize_low_tracepoint): Set the ipa's target description.
14597 * linux-x86-low.c: Include tdesc.h.
14598 [__x86_64__] (is_64bit_tdesc): New.
14599 (ps_get_thread_area, x86_get_thread_area): Use it.
14600 (i386_cannot_store_register): Rename to ...
14601 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
14602 (i386_cannot_fetch_register): Rename to ...
14603 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
14604 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
14605 to new interface.
14606 (target_regsets): Rename to ...
14607 (x86_regsets): ... this.
14608 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
14609 interface.
14610 (x86_siginfo_fixup): Use is_64bit_tdesc.
14611 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
14612 (tdesc_x32_avx_linux, tdesc_x32_linux)
14613 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
14614 Declare.
14615 (x86_linux_update_xmltarget): Delete.
14616 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
14617 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
14618 (AMD64_LINUX_USER64_CS): New.
14619 (x86_linux_read_description): New, based on
14620 x86_linux_update_xmltarget.
14621 (same_process_callback): New.
14622 (x86_arch_setup_process_callback): New.
14623 (x86_linux_update_xmltarget): New.
14624 (x86_regsets_info): New.
14625 (amd64_linux_regs_info): New.
14626 (i386_linux_usrregs_info): New.
14627 (i386_linux_regs_info): New.
14628 (x86_linux_regs_info): New.
14629 (x86_arch_setup): Reimplement.
14630 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
14631 (x86_emit_ops): Ditto.
14632 (the_low_target): Adjust. Install x86_linux_regs_info,
14633 x86_cannot_fetch_register, and x86_cannot_store_register.
14634 (initialize_low_arch): New.
14635 * linux-ia64-low.c (tdesc_ia64): Declare.
14636 (ia64_fetch_register): Adjust.
14637 (ia64_usrregs_info, regs_info): New globals.
14638 (ia64_regs_info): New function.
14639 (the_low_target): Adjust.
14640 (initialize_low_arch): New function.
14641 * linux-sparc-low.c (tdesc_sparc64): Declare.
14642 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
14643 Adjust.
14644 (sparc_arch_setup): New function.
14645 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
14646 (the_low_target): Adjust.
14647 (initialize_low_arch): New function.
14648 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
14649 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
14650 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
14651 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
14652 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
14653 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
14654 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
14655 (tdesc_powerpc_isa205_vsx64l): Declare.
14656 (ppc_cannot_store_register, ppc_collect_ptrace_register)
14657 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
14658 (ppc_set_pc, ppc_get_hwcap): Adjust.
14659 (ppc_usrregs_info): Forward declare.
14660 (!__powerpc64__) ppc_regmap_adjusted: New global.
14661 (ppc_arch_setup): Adjust to the current process'es target
14662 description.
14663 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
14664 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
14665 (ppc_store_evrregset): Adjust.
14666 (target_regsets): Rename to ...
14667 (ppc_regsets): ... this, and make static.
14668 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
14669 (ppc_regs_info): New function.
14670 (the_low_target): Adjust.
14671 (initialize_low_arch): New function.
14672 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
14673 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
14674 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
14675 (tdesc_s390x_linux64v2): Declare.
14676 (s390_collect_ptrace_register, s390_supply_ptrace_register)
14677 (s390_fill_gregset, s390_store_last_break): Adjust.
14678 (target_regsets): Rename to ...
14679 (s390_regsets): ... this, and make static.
14680 (s390_get_pc, s390_set_pc): Adjust.
14681 (s390_get_hwcap): New target_desc parameter, and use it.
14682 [__s390x__] (have_hwcap_s390_high_gprs): New global.
14683 (s390_arch_setup): Adjust to set the current process'es target
14684 description. Don't adjust the regmap.
14685 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
14686 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
14687 (regs_info_3264): New globals.
14688 (s390_regs_info): New function.
14689 (the_low_target): Adjust.
14690 (initialize_low_arch): New function.
14691 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
14692 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
14693 [__mips64] (init_registers_mips_linux)
14694 (init_registers_mips_dsp_linux): Delete defines.
14695 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
14696 (have_dsp): New global.
14697 (mips_read_description): New, based on mips_arch_setup.
14698 (mips_arch_setup): Reimplement.
14699 (get_usrregs_info): New function.
14700 (mips_cannot_fetch_register, mips_cannot_store_register)
14701 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
14702 (mips_fill_fpregset, mips_store_fpregset): Adjust.
14703 (target_regsets): Rename to ...
14704 (mips_regsets): ... this, and make static.
14705 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
14706 (dsp_regs_info, regs_info): New globals.
14707 (mips_regs_info): New function.
14708 (the_low_target): Adjust.
14709 (initialize_low_arch): New function.
14710 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
14711 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
14712 Declare.
14713 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
14714 (arm_read_description): New, with bits factored from
14715 arm_arch_setup.
14716 (arm_arch_setup): Reimplement.
14717 (target_regsets): Rename to ...
14718 (arm_regsets): ... this, and make static.
14719 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
14720 (arm_regs_info): New function.
14721 (the_low_target): Adjust.
14722 (initialize_low_arch): New function.
14723 * linux-m68k-low.c (tdesc_m68k): Declare.
14724 (target_regsets): Rename to ...
14725 (m68k_regsets): ... this, and make static.
14726 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
14727 (m68k_regs_info): New function.
14728 (m68k_arch_setup): New function.
14729 (the_low_target): Adjust.
14730 (initialize_low_arch): New function.
14731 * linux-sh-low.c (tdesc_sharch): Declare.
14732 (target_regsets): Rename to ...
14733 (sh_regsets): ... this, and make static.
14734 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
14735 (sh_regs_info, sh_arch_setup): New functions.
14736 (the_low_target): Adjust.
14737 (initialize_low_arch): New function.
14738 * linux-bfin-low.c (tdesc_bfin): Declare.
14739 (bfin_arch_setup): New function.
14740 (bfin_usrregs_info, regs_info): New globals.
14741 (bfin_regs_info): New function.
14742 (the_low_target): Adjust.
14743 (initialize_low_arch): New function.
14744 * linux-cris-low.c (tdesc_cris): Declare.
14745 (cris_arch_setup): New function.
14746 (cris_usrregs_info, regs_info): New globals.
14747 (cris_regs_info): New function.
14748 (the_low_target): Adjust.
14749 (initialize_low_arch): New function.
14750 * linux-cris-low.c (tdesc_crisv32): Declare.
14751 (cris_arch_setup): New function.
14752 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
14753 (cris_regs_info): New function.
14754 (the_low_target): Adjust.
14755 (initialize_low_arch): New function.
14756 * linux-m32r-low.c (tdesc_m32r): Declare.
14757 (m32r_arch_setup): New function.
14758 (m32r_usrregs_info, regs_info): New globals.
14759 (m32r_regs_info): Adjust.
14760 (initialize_low_arch): New function.
14761 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
14762 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
14763 (tic6x_usrregs_info): Forward declare.
14764 (tic6x_read_description): New function, based on ...
14765 (tic6x_arch_setup): ... this. Reimplement.
14766 (target_regsets): Rename to ...
14767 (tic6x_regsets): ... this, and make static.
14768 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
14769 (tic6x_regs_info): New function.
14770 (the_low_target): Adjust.
14771 (initialize_low_arch): New function.
14772 * linux-xtensa-low.c (tdesc_xtensa): Declare.
14773 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
14774 (target_regsets): Rename to ...
14775 (xtensa_regsets): ... this, and make static.
14776 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
14777 globals.
14778 (xtensa_arch_setup, xtensa_regs_info): New functions.
14779 (the_low_target): Adjust.
14780 (initialize_low_arch): New function.
14781 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
14782 (nios2_arch_setup): Set the current process'es tdesc.
14783 (target_regsets): Rename to ...
14784 (nios2_regsets): ... this.
14785 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
14786 (nios2_regs_info): New function.
14787 (the_low_target): Adjust.
14788 (initialize_low_arch): New function.
14789 * linux-aarch64-low.c (tdesc_aarch64): Declare.
14790 (aarch64_arch_setup): Set the current process'es tdesc.
14791 (target_regsets): Rename to ...
14792 (aarch64_regsets): ... this.
14793 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
14794 (aarch64_regs_info): New function.
14795 (the_low_target): Adjust.
14796 (initialize_low_arch): New function.
14797 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
14798 globals.
14799 (target_regsets): Rename to ...
14800 (tile_regsets): ... this.
14801 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
14802 (tile_regs_info): New function.
14803 (tile_arch_setup): Set the current process'es tdesc.
14804 (the_low_target): Adjust.
14805 (initialize_low_arch): New function.
14806 * spu-low.c (tdesc_spu): Declare.
14807 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
14808 * win32-arm-low.c (tdesc_arm): Declare.
14809 (arm_arch_setup): New function.
14810 (the_low_target): Install arm_arch_setup instead of
14811 init_registers_arm.
14812 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
14813 (init_windows_x86): Rename to ...
14814 (i386_arch_setup): ... this. Set `win32_tdesc'.
14815 (the_low_target): Adjust.
14816 * win32-low.c (win32_tdesc): New global.
14817 (child_add_thread): Don't create the thread cache here.
14818 (do_initial_child_stuff): Set the new process'es tdesc.
14819 * win32-low.h (struct target_desc): Forward declare.
14820 (win32_tdesc): Declare.
14821 * lynx-i386-low.c (tdesc_i386): Declare global.
14822 (lynx_i386_arch_setup): Set `lynx_tdesc'.
14823 * lynx-low.c (lynx_tdesc): New global.
14824 (lynx_add_process): Set the new process'es tdesc.
14825 * lynx-low.h (struct target_desc): Forward declare.
14826 (lynx_tdesc): Declare global.
14827 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
14828 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
14829 * nto-low.c (nto_tdesc): New global.
14830 (do_attach): Set the new process'es tdesc.
14831 * nto-low.h (struct target_desc): Forward declare.
14832 (nto_tdesc): Declare.
14833 * nto-x86-low.c (tdesc_i386): Declare.
14834 (nto_x86_arch_setup): Set `nto_tdesc'.
14835
14836 2013-06-04 Gary Benson <gbenson@redhat.com>
14837
14838 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
14839 to qSupported response when appropriate.
14840 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
14841 with nonzero-length annex.
14842 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
14843 arguments supplied in annex.
14844
14845 2013-05-31 Doug Evans <dje@google.com>
14846
14847 PR server/15594
14848 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
14849 64 bits in 64-cross-32 environment.
14850
14851 2013-05-28 Pedro Alves <palves@redhat.com>
14852
14853 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
14854 (aarch64-without-fpu.c): Delete rule.
14855 * configure.srv (aarch64*-*-linux*): Remove references to
14856 aarch64-without-fpu.o and aarch64-without-fpu.xml.
14857 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
14858 declaration.
14859
14860 2013-05-24 Pedro Alves <palves@redhat.com>
14861
14862 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
14863 instead of strchr/decode_address. Error if the range isn't split
14864 with a ','. Don't assume there's be a ':' in the action.
14865
14866 2013-05-23 Yao Qi <yao@codesourcery.com>
14867 Pedro Alves <palves@redhat.com>
14868
14869 * linux-low.c (lwp_in_step_range): New function.
14870 (linux_wait_1): If the thread was range stepping and stopped
14871 outside the stepping range, report the stop to GDB. Otherwise,
14872 continue stepping. Add range stepping debug output.
14873 (linux_set_resume_request): Copy the step range from the resume
14874 request to the lwp.
14875 (linux_supports_range_stepping): New.
14876 (linux_target_ops) <supports_range_stepping>: Set to
14877 linux_supports_range_stepping.
14878 * linux-low.h (struct linux_target_ops)
14879 <supports_range_stepping>: New field.
14880 (struct lwp_info) <step_range_start, step_range_end>: New fields.
14881 * linux-x86-low.c (x86_supports_range_stepping): New.
14882 (the_low_target) <supports_range_stepping>: Set to
14883 x86_supports_range_stepping.
14884 * server.c (handle_v_cont): Handle 'r' action.
14885 (handle_v_requests): Append ";r" if the target supports range
14886 stepping.
14887 * target.h (struct thread_resume) <step_range_start,
14888 step_range_end>: New fields.
14889 (struct target_ops) <supports_range_stepping>:
14890 New field.
14891 (target_supports_range_stepping): New macro.
14892
14893 2013-05-17 Joel Brobecker <brobecker@adacore.com>
14894
14895 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
14896 confusion in comment.
14897
14898 2013-05-17 Joel Brobecker <brobecker@adacore.com>
14899
14900 * lynx-low.c (struct process_info_private): New type.
14901 (lynx_add_process): New function.
14902 (lynx_create_inferior, lynx_attach): Replace calls to
14903 add_process by calls to lynx_add_process.
14904 (lynx_resume): If PTID is null, then try using
14905 current_process()->private->last_wait_event_ptid.
14906 Add comments.
14907 (lynx_clear_inferiors): Delete. The contents of that function
14908 has been inlined in lynx_mourn;
14909 (lynx_wait_1): Save the ptid in the process's private data.
14910 (lynx_mourn): Free the process' private data. Replace call
14911 to lynx_clear_inferiors by call to clear_inferiors.
14912
14913 2013-05-17 Yao Qi <yao@codesourcery.com>
14914
14915 * i386-low.c (i386_length_and_rw_bits): Move the comment to
14916 the right place.
14917
14918 2013-05-16 Luis Machado <lgustavo@codesourcery.com>
14919
14920 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
14921 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
14922 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
14923 PT_TEXT_END_ADDR guards. Update comments.
14924 (linux_target_op) <read_offsets>: Conditionally define to
14925 linux_read_offsets if the target is UCLIBC and if it defines
14926 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
14927
14928 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
14929 Andrew Jenner <andrew@codesourcery.com>
14930
14931 * Makefile.in (SFILES): Add linux-nios2-low.c.
14932 (clean): Add action to delete nios2-linux.c.
14933 (nios2-linux.c): New rule.
14934 * configure.srv: Add nios2*-*-linux*.
14935 * linux-nios2-low.c: New.
14936
14937 2013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
14938
14939 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
14940
14941 2013-04-25 Hui Zhu <hui@codesourcery.com>
14942
14943 PR gdb/15186
14944 * ax.c (ax_printf): Add fflush.
14945
14946 2013-04-22 Tom Tromey <tromey@redhat.com>
14947
14948 * Makefile.in (SFILES): Add filestuff.c.
14949 (OBS): Add filestuff.o.
14950 (filestuff.o): New target.
14951 * config.in, configure: Rebuild.
14952 * configure.ac: Check for fdwalk, pipe2.
14953
14954 2013-04-17 Pedro Alves <palves@redhat.com>
14955
14956 * configure.ac (USE_THREAD_DB): Delete variable.
14957 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
14958 Don't AC_SUBST USE_THREAD_DB.
14959 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
14960 * config.in, configure: Regenerate.
14961
14962 2013-04-16 Pedro Alves <palves@redhat.com>
14963
14964 * linux-low.h (struct lwp_info) <thread_known>: Move under
14965 the USE_THREAD_DB #ifdef.
14966
14967 2013-04-16 Pedro Alves <palves@redhat.com>
14968
14969 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
14970 (linux-low.o): Delete rule.
14971 * linux-low.h: Always include "gdb_thread_db.h" instead of
14972 conditionally including thread_db.h.
14973 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
14974 HAVE_THREAD_DB_H.
14975
14976 2013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14977
14978 * Makefile.in (install-only): Fix make install regression.
14979
14980 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
14981
14982 Convert man pages to texinfo, new gdbinit.5 texinfo page.
14983 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
14984 installation.
14985 * gdbserver.1: Remove.
14986
14987 2013-03-22 Pedro Alves <palves@redhat.com>
14988
14989 * linux-low.c (handle_extended_wait): Don't call
14990 linux_enable_event_reporting.
14991
14992 2013-03-15 Tony Theodore <tonyt@logyst.com>
14993
14994 PR build/9098:
14995 * Makefile.in (SHELL): Use @SHELL@.
14996
14997 2013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
14998
14999 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
15000 compiler warning.
15001
15002 2013-03-13 Joel Brobecker <brobecker@adacore.com>
15003
15004 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
15005 Remove extraneous NULL element.
15006
15007 2013-03-13 Yao Qi <yao@codesourcery.com>
15008
15009 * tracepoint.c (traceframe_read_tsv): Look for the last matched
15010 'V' block in trace frame.
15011
15012 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
15013
15014 * target.h (struct target_ops): Add btrace ops.
15015 (target_supports_btrace): New macro.
15016 (target_enable_btrace): New macro.
15017 (target_disable_btrace): New macro.
15018 (target_read_btrace): New macro.
15019 * gdbthread.h (struct thread_info): Add btrace field.
15020 * server.c: Include btrace-common.h.
15021 (handle_btrace_general_set): New function.
15022 (handle_btrace_enable): New function.
15023 (handle_btrace_disable): New function.
15024 (handle_general_set): Call handle_btrace_general_set.
15025 (handle_qxfer_btrace): New function.
15026 (struct qxfer qxfer_packets[]): Add btrace entry.
15027 * inferiors.c (remove_thread): Disable btrace.
15028 * linux-low: Include linux-btrace.h.
15029 (linux_low_enable_btrace): New function.
15030 (linux_low_read_btrace): New function.
15031 (linux_target_ops): Add btrace ops.
15032 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
15033 Add srv_linux_btrace=yes.
15034 (x86_64-*-linux*): Add linux-btrace.o.
15035 Add srv_linux_btrace=yes.
15036 * configure.ac: Define HAVE_LINUX_BTRACE.
15037 * config.in: Regenerated.
15038 * configure: Regenerated.
15039
15040 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
15041
15042 * server.c (handle_qxfer): Preserve error message if -3 is
15043 returned.
15044 (qxfer): Document the -3 return value.
15045
15046 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
15047
15048 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
15049 (linux_btrace_h): New variable.
15050 (linux-btrace.o): New rule.
15051
15052 2013-03-08 Stan Shebs <stan@codesourcery.com>
15053 Hafiz Abid Qadeer <abidh@codesourcery.com>
15054
15055 * tracepoint.c (trace_buffer_size): New global.
15056 (DEFAULT_TRACE_BUFFER_SIZE): New define.
15057 (init_trace_buffer): Change to one-argument function. Allocate
15058 trace buffer memory.
15059 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
15060 handle QTBuffer:size packet.
15061 (cmd_bigqtbuffer_size): New function.
15062 (initialize_tracepoint): Call init_trace_buffer with
15063 DEFAULT_TRACE_BUFFER_SIZE.
15064 * server.c (handle_query): Add QTBuffer:size in the
15065 supported packets.
15066
15067 2013-03-07 Yao Qi <yao@codesourcery.com>
15068
15069 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
15070 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
15071 of -1.
15072 (cmd_qtsp): Adjust condition. Do post increment.
15073 Set cur_action and cur_step_action back to 0.
15074
15075 2013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
15076
15077 PR server/15236
15078 * linux-low.c (linux_write_memory): Return early success if LEN is
15079 zero.
15080
15081 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
15082
15083 * configure.srv: Add x86_64-*-cygwin* as target.
15084
15085 2013-02-28 Tom Tromey <tromey@redhat.com>
15086
15087 * configure.ac: Invoke AC_SYS_LARGEFILE.
15088 * configure, config.in: Rebuild.
15089
15090 2013-02-28 Corinna Vinschen <vinschen@redhat.com>
15091
15092 * win32-low.c: Throughout, fix format strings and casts of
15093 printf-like functions to avoid type related warnings on all
15094 platforms.
15095 (get_child_debug_event): Print dwDebugEventCode as hex since
15096 that's how it's usually documented.
15097
15098 2013-02-28 Yao Qi <yao@codesourcery.com>
15099
15100 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
15101 pulongest.
15102
15103 2013-02-27 Jiong Wang <jiwang@tilera.com>
15104
15105 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
15106 (reg-tilegx32.c): New rule.
15107 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
15108 * linux-tile-low.c (tile_arch_setup): New function. Invoke
15109 different register info initializer according to elf class.
15110 (init_registers_tilgx32): New function. The tilegx32 register info
15111 initializer.
15112 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
15113 (tile_store_gregset): Likewise.
15114
15115 2013-02-27 Yao Qi <yao@codesourcery.com>
15116
15117 * server.c (process_point_options): Print debug message when
15118 debug_threads is true.
15119
15120 2013-02-26 Yao Qi <yao@codesourcery.com>
15121
15122 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
15123
15124 2013-02-19 Pedro Alves <palves@redhat.com>
15125 Kai Tietz <ktietz@redhat.com>
15126
15127 PR gdb/15161
15128
15129 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
15130 instead of strtoul to extract address from packet.
15131 (process_serial_event) <'z'>: Likewise.
15132
15133 2013-02-18 Yao Qi <yao@codesourcery.com>
15134
15135 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
15136
15137 2013-02-14 Pedro Alves <palves@redhat.com>
15138
15139 Plug memory leak.
15140
15141 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
15142 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
15143
15144 2013-02-14 Pedro Alves <palves@redhat.com>
15145
15146 * tracepoint.c (cmd_qtdpsrc): Use savestring.
15147
15148 2013-02-14 Pedro Alves <palves@redhat.com>
15149
15150 * tracepoint.c (save_string): Delete.
15151 (add_tracepoint_action): Use savestring instead of save_string.
15152
15153 2013-02-12 Pedro Alves <palves@redhat.com>
15154
15155 * linux-xtensa-low.c: Ditto.
15156 * xtensa-xtregs.c: Ditto.
15157
15158 2013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
15159
15160 * thread-db.c (thread_db_get_tls_address): NULL pointer check
15161 thread_db.
15162
15163 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
15164
15165 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
15166 aarch64_num_wp_regs and aarch64_num_bp_regs to
15167 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
15168
15169 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
15170
15171 * linux-aarch64-low.c (ps_get_thread_area): Replace
15172 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
15173
15174 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
15175 Marcus Shawcroft <marcus.shawcroft@arm.com>
15176 Nigel Stephens <nigel.stephens@arm.com>
15177 Yufeng Zhang <yufeng.zhang@arm.com>
15178
15179 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
15180 (aarch64.c, aarch64-without-fpu.c): New targets.
15181 * configure.srv (aarch64*-*-linux*): New.
15182 * linux-aarch64-low.c: New file.
15183
15184 2013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
15185
15186 * linux-low.c (handle_extended_wait, linux_create_inferior)
15187 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
15188 (dequeue_one_deferred_signal, linux_resume_one_thread)
15189 (fetch_register, linux_write_memory, linux_enable_event_reporting)
15190 (linux_tracefork_grandchild, linux_test_for_tracefork)
15191 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
15192 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
15193 where the argument is 0.
15194
15195 2013-01-25 Yao Qi <yao@codesourcery.com>
15196
15197 * event-loop.c: Include "queue.h".
15198 (gdb_event_p): New typedef.
15199 (struct gdb_event) <next_event>: Remove.
15200 (event_queue): Change to QUEUE(gdb_event_p).
15201 (async_queue_event): Remove.
15202 (gdb_event_xfree): New.
15203 (initialize_event_loop): New.
15204 (process_event): Use API from QUEUE.
15205 (wait_for_event): Likewise.
15206 * server.c (main): Call initialize_event_loop.
15207 * server.h (initialize_event_loop): Declare.
15208
15209 2013-01-18 Yao Qi <yao@codesourcery.com>
15210
15211 * ax.h (struct eval_agent_expr_context): New.
15212 (gdb_eval_agent_expr): Update declaration.
15213 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
15214 TFRAME. Add new argument CTX.
15215 * server.h (struct eval_agent_expr_context): Declare.
15216 (agent_mem_read, agent_tsv_read): Update declaration.
15217 (agent_mem_read_string): Likewise.
15218 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
15219 (add_traceframe_block): Add new argument TPOINT.
15220 Increase TPOINT->traceframe_usage.
15221 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
15222 eval_tracepoint_agent_expr.
15223 (condition_true_at_tracepoint): Likewise.
15224 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
15225 (agent_mem_read_string, agent_tsv_read): Likewise.
15226
15227 2013-01-16 Yao Qi <yao@codesourcery.com>
15228
15229 * linux-low.c (linux_resume_one_lwp): Don't check
15230 'lwp->bp_reinsert != 0'.
15231
15232 2013-01-07 Joel Brobecker <brobecker@adacore.com>
15233 Pedro Alves <palves@redhat.com>
15234
15235 * lynx-low.c (ptrace_request_to_str): Define a temporary
15236 macro and use it to simplify this function's implementation.
15237
15238 2013-01-07 Joel Brobecker <brobecker@adacore.com>
15239
15240 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
15241 sets errno.
15242
15243 2013-01-07 Joel Brobecker <brobecker@adacore.com>
15244
15245 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
15246
15247 2013-01-07 Joel Brobecker <brobecker@adacore.com>
15248
15249 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
15250
15251 2013-01-07 Joel Brobecker <brobecker@adacore.com>
15252
15253 * lynx-low.c (lynx_resume): Use the resume_info parameter
15254 to determine the ptid for the lynx_ptrace call, unless
15255 it is equal to minus_one_ptid, in which case we use the
15256 ptid of the current_inferior.
15257 (lynx_wait_1): After having received a thread create/exit
15258 event, resume the inferior's execution using the signaling
15259 thread's ptid, rather than the old ptid.
15260
15261 2013-01-07 Joel Brobecker <brobecker@adacore.com>
15262
15263 * lynx-low.c (lynx_resume): Delete variable ret.
15264
15265 2013-01-01 Joel Brobecker <brobecker@adacore.com>
15266
15267 * gdbreplay.c (gdbreplay_version): Update copyright year.
15268 * server.c (gdbserver_version): Likewise.
15269
15270 2012-12-17 Joel Brobecker <brobecker@adacore.com>
15271
15272 * lynx-low.c (lynx_wait_1): Add debug trace before adding
15273 new thread.
15274
15275 2012-12-17 Joel Brobecker <brobecker@adacore.com>
15276
15277 * lynx-low.c (ptrace_request_to_str): Add handling for
15278 PTRACE_GETTRACESIG.
15279
15280 2012-12-17 Joel Brobecker <brobecker@adacore.com>
15281
15282 * lynx-low.c (lynx_attach): Delete variable new_process.
15283
15284 2012-12-17 Joel Brobecker <brobecker@adacore.com>
15285
15286 * lynx-low.c (lynx_create_inferior): Delete variable
15287 new_process.
15288
15289 2012-12-17 Joel Brobecker <brobecker@adacore.com>
15290
15291 * lynx-low.c (ptrace_request_to_str): Do not handle
15292 PTRACE_GETTHREADLIST if this macro does not exist.
15293
15294 2012-12-15 Yao Qi <yao@codesourcery.com>
15295
15296 * Makefile.in (OBS): Add notif.o.
15297 * notif.c, notif.h: New.
15298 * server.c: Include "notif.h".
15299 (struct vstop_notif) <next>: Remove.
15300 <base>: New field.
15301 (queue_stop_reply): Update.
15302 (push_event, send_next_stop_reply): Remove.
15303 (discard_queued_stop_replies): Update.
15304 (notif_stop): New variable.
15305 (handle_v_stopped): Remove.
15306 (handle_v_requests): Don't call handle_v_stopped. Call
15307 handle_ack_notif instead.
15308 (queue_stop_reply_callback): Call notif_event_enque instead
15309 of queue_stop_reply.
15310 (handle_status): Don't call send_next_stop_reply, call
15311 notif_write_event instead.
15312 (kill_inferior_callback): Likewise.
15313 (detach_or_kill_inferior_callback): Likewise.
15314 (main): Call initialize_notif.
15315 (process_serial_event): Call QUEUE_is_empty.
15316 (handle_target_event): Call notif_push instead of push event.
15317 * server.h (push_event): Remove declaration.
15318
15319 2012-12-10 Tom Tromey <tromey@redhat.com>
15320
15321 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
15322 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
15323 macros.
15324 (.c.o): Rewrite.
15325 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
15326 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
15327 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
15328 (amd64-linux-ipa.o, ax.o): Rewrite.
15329 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
15330 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
15331 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
15332 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
15333 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
15334 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
15335 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
15336 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
15337 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
15338 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
15339 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
15340 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
15341 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
15342 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
15343 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
15344 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
15345 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
15346 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
15347 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
15348 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
15349 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
15350 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
15351 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
15352 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
15353 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
15354 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
15355 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
15356 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
15357 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
15358 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
15359 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
15360 (reg-tilegx.o): Remove.
15361 (all_object_files): New macro.
15362 Include .deps files.
15363 * aclocal.m4, configure: Rebuild.
15364 * acinclude.m4: Include depstand.m4, lead-dot.m4.
15365 * configure.ac: Invoke ZW_CREATE_DEPDIR,
15366 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
15367
15368 2012-12-05 Tom Tromey <tromey@redhat.com>
15369
15370 PR gdb/14917:
15371 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
15372
15373 2012-11-28 Markus Metzger <markus.t.metzger@intel.com>
15374
15375 * configure.ac: Check for linux/perf_event.h.
15376 * config.in: Regenerated.
15377 * configure: Regenerated.
15378
15379 2012-11-26 Maxime Villard <rustyBSD@gmx.fr>
15380
15381 * hostio.c (handle_readlink): Decrease buffer size
15382 parameter passed to readlink by one byte.
15383
15384 2012-11-26 Yao Qi <yao@codesourcery.com>
15385
15386 * configure.ac (build_warnings): Append '-Wempty-body'.
15387 * configure: Regenerated.
15388 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
15389 body.
15390
15391 2012-11-15 Pierre Muller <muller@sourceware.org>
15392
15393 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
15394 * config.in: Regenerate.
15395 * configure: Regenerate.
15396 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
15397 Use "gdb_wait.h" header instead of <sys/wait.h> header.
15398 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
15399 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
15400 header.
15401 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
15402 instead of <sys/wait.h> header.
15403 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
15404
15405 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
15406
15407 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
15408 (various make rules): Remove -DGDBSERVER
15409
15410 2012-11-09 Yao Qi <yao@codesourcery.com>
15411
15412 * spu-low.c (current_ptid): Move it to ..
15413 * gdbthread.h: ... here. New.
15414 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
15415 * server.c (myresume, process_serial_event): Likewise.
15416 * thread-db.c (thread_db_find_new_threads): Likewise.
15417 * tracepoint.c (run_inferior_command): Likewise.
15418
15419 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
15420
15421 * server.c (handle_search_memory_1): Include access length in
15422 warning message.
15423
15424 2012-09-05 Michael Brandt <michael.brandt@axis.com>
15425
15426 * linux-crisv32-low.c: Fix compile errors.
15427
15428 2012-09-04 Yao Qi <yao@codesourcery.com>
15429
15430 * tracepoint.c (cmd_qtsv): Adjust debug message.
15431 Don't check CUR_TPOINT.
15432
15433 2012-08-28 Yao Qi <yao@codesourcery.com>
15434
15435 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
15436 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
15437 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
15438 Remove declarations of xmalloc, xreallloc, xstrdup and
15439 freeargv.
15440 * Makefile.in (libiberty_h): New.
15441 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
15442 (linux-bfin-low.o): Append dependency 'libiberty.h'.
15443
15444 2012-08-23 Yao Qi <yao@codesourcery.com>
15445
15446 * server.h: Remove declaration of 'xsnprintf'.
15447
15448 2012-08-22 Keith Seitz <keiths@redhat.com>
15449
15450 * server.h: Include build-gnulib-gbserver/config.h.
15451 * gdbreplay.c: Likewise.
15452
15453 2012-08-08 Doug Evans <dje@google.com>
15454
15455 * Makefile.in (SFILES): Add gdb_vecs.c.
15456 (OBS): Add gdb_vecs.o.
15457 (gdb_vecs_h, host_defs_h): New variables.
15458 (thread-db.o): Add $(gdb_vecs_h) dependency.
15459 (gdb_vecs.o): New rule.
15460 * thread-db.c: #include "gdb_vecs.h".
15461 (thread_db_load_search): Use a vector to iterate over path elements.
15462 Handle text appearing after "$pdir".
15463
15464 * configure.ac: Add check for strstr.
15465 * config.in: Regenerate.
15466 * configure: Regenerate.
15467
15468 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
15469
15470 * hostio.c (handle_pread): If pread fails, fall back to attempting
15471 lseek/read.
15472 (handle_pwrite): Likewise for pwrite.
15473
15474 2012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
15475
15476 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
15477 between unsupported TYPE and unimplementable ADDR/LEN combination.
15478 (arm_insert_point): Act on new return value.
15479
15480 2012-07-31 Pedro Alves <palves@redhat.com>
15481
15482 * server.c (process_point_options): Only skip tokens if we find
15483 one that is unrecognized. Don't treat 'X' specially while
15484 skipping unrecognized tokens.
15485
15486 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
15487
15488 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
15489 to 4-byte-align HW breakpoint addresses for Thumb.
15490
15491 2012-07-27 Yao Qi <yao@codesourcery.com>
15492
15493 PR remote/14161.
15494
15495 * server.h: Declare gdb_agent_about_to_close.
15496 * target.c (kill_inferior): Include "agent.h".
15497 New. Send command 'kill'.
15498 * target.h (kill_inferior): Removed macro.
15499 * tracepoint.c (gdb_agent_about_to_close): New.
15500 (gdb_agent_helper_thread): Handle command 'close'.
15501 Wait endlessly until the inferior stops.
15502 Install gdb_agent_remove_socket to atexit hook.
15503 (agent_socket_name): New static variable.
15504 (gdb_agent_socket_init): Replace local variable 'name' with
15505 'agent_socket_name'.
15506 (gdb_agent_remove_socket): New.
15507
15508 2012-07-27 Yao Qi <yao@codesourcery.com>
15509
15510 * server.c (process_point_options): Stop at 'X' when parsing.
15511
15512 2012-07-19 Michael Eager <eager@eagercon.com>
15513
15514 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
15515 to hw_execute.
15516 * linux-x86-low.c (x86_insert_point, x86_remove_point):
15517 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
15518 hardware breakpoint.
15519
15520 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
15521
15522 * gdbserver/linux-low.c (initialize_low): Call
15523 linux_ptrace_init_warnings.
15524
15525 2012-07-02 Doug Evans <dje@google.com>
15526
15527 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
15528 pointer to int.
15529
15530 2012-07-02 Stan Shebs <stan@codesourcery.com>
15531
15532 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
15533 (ax.o): Add it to build rule.
15534 (ax-ipa.o): Ditto.
15535 (OBS): Add format.o.
15536 (IPA_OBS): Add format.o.
15537 * server.c (handle_query): Claim support for breakpoint commands.
15538 (process_point_options): Add command case.
15539 (process_serial_event): Leave running if there are printfs in
15540 effect.
15541 * mem-break.h (any_persistent_commands): Declare.
15542 (add_breakpoint_commands): Declare.
15543 (gdb_no_commands_at_breakpoint): Declare.
15544 (run_breakpoint_commands): Declare.
15545 * mem-break.c (struct point_command_list): New struct.
15546 (struct breakpoint): New field command_list.
15547 (any_persistent_commands): New function.
15548 (add_commands_to_breakpoint): New function.
15549 (add_breakpoint_commands): New function.
15550 (gdb_no_commands_at_breakpoint): New function.
15551 (run_breakpoint_commands): New function.
15552 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
15553 locally.
15554 * ax.c: Include format.h.
15555 (ax_printf): New function.
15556 (gdb_eval_agent_expr): Add printf opcode.
15557
15558 2012-06-13 Yao Qi <yao@codesourcery.com>
15559
15560 * server.c (start_inferior): Remove duplicated writes to fields
15561 'last_resume_kind' and 'last_status' of 'current_inferior'.
15562
15563 2012-06-12 Yao Qi <yao@codesourcery.com>
15564 Pedro Alves <palves@redhat.com>
15565
15566 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
15567 comment.
15568 * server.c (handle_v_cont): Extend comment.
15569
15570 2012-06-11 Yao Qi <yao@codesourcery.com>
15571
15572 * linux-low.c (linux_attach): Add 'static'.
15573
15574 2012-06-06 Yao Qi <yao@codesourcery.com>
15575
15576 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
15577
15578 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
15579
15580 Fix gcc -flto compilation warning.
15581 * server.c (main): Make variable multi_mode and attach volatile.
15582
15583 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15584
15585 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
15586 if the platform doesn't know about it.
15587
15588 2012-05-30 Jeff Kenton <jkenton@tilera.com>
15589
15590 * Makefile.in (SFILES): Add linux-tile-low.c.
15591 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
15592 * configure.srv: Handle tilegx-*-linux*.
15593 * linux-tile-low.c: New file.
15594
15595 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
15596
15597 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
15598
15599 2012-05-24 Pedro Alves <palves@redhat.com>
15600
15601 PR gdb/7205
15602
15603 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
15604
15605 2012-05-24 Pedro Alves <palves@redhat.com>
15606
15607 PR gdb/7205
15608
15609 Replace target_signal with gdb_signal throughout.
15610
15611 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
15612
15613 * linux-low.c (linux_store_registers): Avoid the copying sequence
15614 when no data has been retrieved by ptrace.
15615
15616 2012-05-22 Will Deacon <will.deacon@arm.com>
15617
15618 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
15619 Include asm/ptrace.h.
15620 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
15621 already defined.
15622
15623 2012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
15624
15625 * linux-low.c (linux_store_registers): Don't re-retrieve data
15626 with ptrace that has already been obtained from /proc. Always
15627 copy any data retrieved with ptrace to the buffer supplied.
15628
15629 2012-05-11 Yao Qi <yao@codesourcery.com>
15630 Pedro Alves <palves@redhat.com>
15631
15632 * linux-low.c (enum stopping_threads_kind): New.
15633 (stopping_threads): Change type to `enum stopping_threads_kind'.
15634 (handle_extended_wait): If stopping and suspending threads, leave
15635 the new_lwp suspended too.
15636 (linux_wait_for_event): Adjust.
15637 (stop_all_lwps): Set `stopping_threads' to
15638 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
15639 whether we're suspending threads or just stopping them. Assert no
15640 recursion happens.
15641
15642 2012-04-29 Yao Qi <yao@codesourcery.com>
15643
15644 * server.h: Move some code to ...
15645 * gdbthread.h: ... here. New.
15646 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
15647 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
15648 (nto-low.o, win32-low.o): Likewise.
15649 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
15650 * regcache.c, remote-utils.c, server.c: Likewise.
15651 * target.c, tracepoint.c, win32-low.c: Likewise.
15652
15653 2012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15654
15655 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
15656 (PTRACE_ARG4_TYPE): Likewise.
15657 (PTRACE_XFER_TYPE): Likewise.
15658 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
15659 ptrace to PTRACE_ARG3_TYPE.
15660 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
15661 (PTRACE_ARG4_TYPE): Likewise.
15662 (PTRACE_XFER_TYPE): Likewise.
15663 (linux_detach_one_lwp): Cast fourth argument of
15664 ptrace to long then PTRACE_ARG4_TYPE.
15665 (regsets_fetch_inferior_registers): Cast third argument of
15666 ptrace to long then PTRACE_ARG3_TYPE.
15667 (regsets_store_inferior_registers): Likewise.
15668
15669 2012-04-20 Pedro Alves <palves@redhat.com>
15670
15671 * configure: Regenerate.
15672
15673 2012-04-19 Pedro Alves <palves@redhat.com>
15674
15675 * Makefile.in (GNULIB_BUILDDIR): New.
15676 (LIBGNU, INCGNU, GNULIB_H): Adjust.
15677 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
15678 (all, install-only, uninstall, clean-info, all-lib, clean): No
15679 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
15680 (maintainer-clean realclean distclean): Use subdir_do.
15681 (subdir_do): New.
15682 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
15683 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
15684 * acinclude.m4: Include acx_configure_dir.m4.
15685 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
15686 calls. Call AC_PROG_RANLIB. Configure gnulib using
15687 ACX_CONFIGURE_DIR.
15688 (GNULIB): New.
15689 (GNULIB_STDINT_H): Adjust.
15690 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
15691 * gdbreplay.c: Include build-gnulib/config.h.
15692 * server.h: Likewise.
15693 * aclocal.m4: Regenerate.
15694 * config.in: Regenerate.
15695 * configure: Regenerate.
15696
15697 2012-04-19 Pedro Alves <palves@redhat.com>
15698
15699 * Makefile.in (LIBGNU, INCGNU): Adjust.
15700 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
15701 (all, install-only, uninstall, clean-info, all-lib, clean)
15702 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
15703 * configure.ac: Adjust AC_OUTPUT output.
15704 * aclocal.m4: Regenerate.
15705 * configure: Regenerate.
15706
15707 2012-04-19 Pedro Alves <palves@redhat.com>
15708
15709 * Makefile.in (generated_files): New.
15710 (server_h): Remove the explicit dependency on config.h, and depend
15711 on $generated_files.
15712
15713 2012-04-19 Pedro Alves <palves@redhat.com>
15714
15715 * Makefile.in (INCGNU): Add -Ignulib.
15716
15717 2012-04-19 Pedro Alves <palves@redhat.com>
15718
15719 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
15720 (INCGNU): ... this, and spell out -I here.
15721 (GNULIB_LIB): Rename to ...
15722 (LIBGNU): ... this.
15723 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
15724
15725 2012-04-19 Pedro Alves <palves@redhat.com>
15726
15727 * config.in: Regenerate.
15728
15729 2012-04-19 Pedro Alves <palves@redhat.com>
15730
15731 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
15732 * server.h (memmem): Remove declaration.
15733 * config.in: Regenerate.
15734 * configure: Regenerate.
15735
15736 2012-04-19 Yao Qi <yao@codesourcery.com>
15737
15738 * Makefile.in (SFILES): Add common/vec.c.
15739 (OBS): Add vec.o.
15740 (vec.o): New rule.
15741
15742 2012-04-19 Yao Qi <yao@codesourcery.com>
15743
15744 * remote-utils.c (prepare_resume_reply): Replace with macro
15745 target_core_of_thread.
15746 * server.c (handle_qxfer_threads_proper): Likewise.
15747 * target.h (traget_core_of_thread): New macro.
15748
15749 2012-04-18 Pedro Alves <palves@redhat.com>
15750
15751 * aclocal.m4: Regenerate.
15752 * configure: Regenerate.
15753
15754 2012-04-16 Yao Qi <yao@codesourcery.com>
15755
15756 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
15757 duplicated on address.
15758
15759 2012-04-16 Yao Qi <yao@codesourcery.com>
15760
15761 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
15762 (struct tracepoint_action_ops) <send>: New field.
15763 (m_tracepoint_action_send, r_tracepoint_action_send): New.
15764 (agent_expr_send, x_tracepoint_action_send): New.
15765 (l_tracepoint_action_send): New.
15766 (cmd_qtdp): Download and install tracepoint
15767 according to `use_agent'.
15768 (run_inferior_command): Add one more parameter `len'.
15769 Update callers.
15770 (tracepoint_send_agent): New.
15771 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
15772
15773 2012-04-16 Yao Qi <yao@codesourcery.com>
15774
15775 * tracepoint.c (download_tracepoints): Moved to ...
15776 (cmd_qtstart): ... here.
15777
15778 2012-04-14 Yao Qi <yao@codesourcery.com>
15779
15780 * tracepoint.c: Include inttypes.h.
15781 (struct collect_memory_action): Use sized types.
15782 (struct tracepoint): Likewise.
15783 (cmd_qtdp, stop_tracing): Update print specifiers.
15784 (cmd_qtp, response_tracepoint): Likewise.
15785 (collect_data_at_tracepoint): Likewise.
15786 (collect_data_at_step): Likewise.
15787
15788 2012-04-14 Yao Qi <yao@codesourcery.com>
15789
15790 Import gnulib module inttypes.
15791 * aclocal.m4, config.in, configure: Regenerated.
15792
15793 2012-04-14 Yao Qi <yao@codesourcery.com>
15794
15795 * Makefile.in (maintainer-clean, realclean, distclean): Remove
15796 Makefile and config.status at last.
15797
15798 2012-04-13 Yao Qi <yao@codesourcery.com>
15799
15800 * tracepoint.c: Include stdint.h unconditionally.
15801
15802 2012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15803
15804 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
15805 on BFD_HAVE_SYS_PROCFS_TYPE.
15806 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
15807 * configure: Regenerate.
15808 * config.in: Likewise.
15809
15810 2012-04-13 H.J. Lu <hongjiu.lu@intel.com>
15811
15812 * Makefile.in (clean): Also remove x32.c x32-linux.c
15813 x32-avx.c x32-avx-linux.c.
15814 (x32.o): New target.
15815 (x32.c): Likewise.
15816 (x32-linux.o): Likewise.
15817 (x32-linux.c): Likewise.
15818 (x32-avx.o): Likewise.
15819 (x32-avx.c): Likewise.
15820 (x32-avx-linux.o): Likewise.
15821 (x32-avx-linux.c): Likewise.
15822
15823 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
15824 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
15825 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
15826 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
15827 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
15828 i386/x32-avx-linux.xml.
15829
15830 * linux-x86-low.c (init_registers_x32_linux): New prototype.
15831 (init_registers_x32_avx_linux): Likwise.
15832 (x86_linux_update_xmltarget): Call init_registers_x32_linux
15833 or init_registers_x32_avx_linux if linux_is_elf64 is false.
15834
15835 2012-04-13 Pedro Alves <palves@redhat.com>
15836
15837 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
15838 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
15839 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
15840 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
15841 the sub-make.
15842
15843 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15844
15845 * linux-x86-low.c (compat_x32_clock_t): New.
15846 (compat_x32_siginfo_t): Likewise.
15847 (compat_x32_siginfo_from_siginfo): Likewise.
15848 (siginfo_from_compat_x32_siginfo): Likewise.
15849 (linux_is_elf64): Likewise.
15850 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
15851 and siginfo_from_compat_x32_siginfo for x32.
15852 (x86_arch_setup): Set linux_is_elf64.
15853
15854 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15855
15856 PR gdb/13969
15857 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
15858 e_machine field.
15859 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
15860 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
15861 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
15862 compatible with process.
15863
15864 2012-04-12 Yao Qi <yao@codesourcery.com>
15865
15866 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
15867 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
15868 (install-only, install-info, clean): Handle sub dir gnulib.
15869 (all-lib, am--refresh): New targets.
15870 (memmem.o): Remove target.
15871 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
15872 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
15873 (AC_REPLACE_FUNCS): Remove memmem.
15874 Invoke gl_INIT and AM_INIT_AUTOMAKE.
15875 (AC_OUTPUT): Generate Makefile in gnulib/.
15876 * aclocal.m4, config.in, configure: Regenerated.
15877
15878 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
15879
15880 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
15881
15882 2012-04-05 Pedro Alves <palves@redhat.com>
15883
15884 -Werror=strict-aliasing
15885
15886 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
15887 pointer.
15888
15889 2012-04-04 Pedro Alves <palves@redhat.com>
15890
15891 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
15892 (sparc_store_gregset_from_stack, sparc_store_gregset)
15893 (sparc_breakpoint_at): Fix formatting.
15894
15895 2012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15896
15897 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
15898 are available.
15899 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
15900 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
15901 * config.in: Regenerate.
15902 * configure: Likewise.
15903
15904 2012-03-29 Pedro Alves <palves@redhat.com>
15905
15906 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
15907 Correct ptrace arguments.
15908
15909 2012-03-28 Pedro Alves <palves@redhat.com>
15910
15911 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
15912 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
15913 (IA64_FR1_REGNUM): New defines.
15914 (ia64_fetch_register): New.
15915 (the_low_target): Install it.
15916 * linux-low.h (struct linux_target_ops) <fetch_register>: New
15917 field.
15918 * linux-low.c (linux_fetch_registers): Try the
15919 the_low_target.fetch_register hook first.
15920
15921 * linux-arm-low.c (the_low_target): Adjust.
15922 * linux-bfin-low.c (the_low_target): Adjust.
15923 * linux-cris-low.c (the_low_target): Adjust.
15924 * linux-crisv32-low.c (the_low_target): Adjust.
15925 * linux-m32r-low.c (the_low_target): Adjust.
15926 * linux-m68k-low.c (the_low_target): Adjust.
15927 * linux-mips-low.c (the_low_target): Adjust.
15928 * linux-ppc-low.c (the_low_target): Adjust.
15929 * linux-s390-low.c (the_low_target): Adjust.
15930 * linux-sh-low.c (the_low_target): Adjust.
15931 * linux-sparc-low.c (the_low_target): Adjust.
15932 * linux-tic6x-low.c (the_low_target): Adjust.
15933 * linux-x86-low.c (the_low_target): Adjust.
15934 * linux-xtensa-low.c (the_low_target): Adjust.
15935
15936 2012-03-26 Pedro Alves <palves@redhat.com>
15937
15938 * server.c (handle_qxfer_libraries): Don't bail early if
15939 the_target->qxfer_libraries_svr4 is not NULL.
15940
15941 2012-03-26 Pedro Alves <palves@redhat.com>
15942
15943 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
15944
15945 2012-03-23 Pedro Alves <palves@redhat.com>
15946
15947 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
15948 "library-list-svr4" element's start tag when the the DSO list is
15949 empty.
15950
15951 2012-03-23 Pedro Alves <palves@redhat.com>
15952
15953 * linux-low.c (read_one_ptr): Read the inferior's pointer through
15954 a variable whose type size is the same as the inferior's pointer
15955 size.
15956
15957 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
15958
15959 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
15960 struct siginfo.
15961 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
15962 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
15963 * linux-low.h: Include <signal.h>.
15964 (struct siginfo): Remove forward declaration.
15965 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
15966 struct siginfo.
15967
15968 2012-03-21 Mike Frysinger <vapier@gentoo.org>
15969
15970 * .gitignore: Ignore more files.
15971
15972 2012-03-19 Pedro Alves <palves@redhat.com>
15973 Jan Kratochvil <jan.kratochvil@redhat.com>
15974
15975 * server.c (cont_thread, general_thread): Add describing comments.
15976 (start_inferior): Clear `cont_thread'.
15977 (handle_v_cont): Don't set `cont_thread' if resuming all threads
15978 of a process.
15979
15980 2012-03-15 Yao Qi <yao@codesourcery.com>
15981
15982 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
15983 handling to ...
15984 (cmd_qtdp): ... here.
15985
15986 2012-03-15 Yao Qi <yao@codesourcery.com>
15987
15988 * tracepoint.c (struct tracepoint_action_ops): New.
15989 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
15990 (m_tracepoint_action_download): New.
15991 (r_tracepoint_action_download): New.
15992 (x_tracepoint_action_download): New.
15993 (l_tracepoint_action_download): New.
15994 (add_tracepoint_action): Install `action->ops' according type.
15995 (download_tracepoint_1): Move code `download' function pointer
15996 of various tracepoint_action_ops.
15997
15998 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15999
16000 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
16001 linux_ptrace_attach_warnings.
16002
16003 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
16004
16005 * Makefile.in (linux-ptrace.o): New.
16006 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
16007 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
16008 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
16009 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
16010 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
16011 of these targets.
16012 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
16013
16014 2012-03-08 Yao Qi <yao@codesourcery.com>
16015 Pedro Alves <palves@redhat.com>
16016
16017 Fix PR server/13392.
16018 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
16019 offset of JMP insn.
16020 * tracepoint.c (remove_tracepoint): New.
16021 (cmd_qtdp): Call remove_tracepoint when failed to install.
16022
16023 2012-03-07 Pedro Alves <palves@redhat.com>
16024
16025 * linux-low.c (get_detach_signal): New.
16026 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
16027 Pass on pending signals to PTRACE_DETACH. Check the result of the
16028 ptrace call.
16029 * server.c (program_signals, program_signals_p): New.
16030 (handle_general_set): Handle QProgramSignals.
16031 * server.h (program_signals, program_signals_p): Declare.
16032
16033 2012-03-05 Pedro Alves <palves@redhat.com>
16034 Jan Kratochvil <jan.kratochvil@redhat.com>
16035
16036 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
16037 New comment why.
16038
16039 2012-03-03 Yao Qi <yao@codesourcery.com>
16040
16041 * tracepoint.c (tracepoint_look_up_symbols): Update call to
16042 agent_look_up_symbols.
16043
16044 2012-03-03 Yao Qi <yao@codesourcery.com>
16045
16046 * Makefile.in (linux-low.o): Keep dependence on agent.h.
16047 (linux-x86-low.o): Likewise.
16048 * server.h: Remove in_process_agent_loaded.
16049 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
16050 common/agent.c.
16051 Update callers.
16052
16053 2012-03-03 Yao Qi <yao@codesourcery.com>
16054
16055 * tracepoint.c (gdb_agent_capability): New global.
16056 (in_process_agent_loaded_ust): Renamed to
16057 `in_process_agent_supports_ust'.
16058 Update callers.
16059 (in_process_agent_supports_ust): Call agent_capability_check.
16060 (clear_installed_tracepoints): Assert that agent supports
16061 agent.
16062
16063 2012-03-03 Yao Qi <yao@codesourcery.com>
16064
16065 * linux-low.c (linux_supports_agent): New.
16066 (linux_target_ops): Initialize field `supports_agent' with
16067 linux_supports_agent.
16068 * target.h (struct target_ops) <supports_agent>: New.
16069 (target_supports_agent): New macro.
16070 * server.c (handle_general_set): Handle packet 'QAgent'.
16071 (handle_query): Send `QAgent+'.
16072 * Makefile.in (server.o): Depends on agent.h.
16073
16074 2012-03-03 Yao Qi <yao@codesourcery.com>
16075
16076 * Makefile.in (OBS): Add agent.o.
16077 Add new rule for agent.o.
16078 Track dependence of tracepoint.c on agent.h.
16079 * tracepoint.c (run_inferior_command_1):
16080 (run_inferior_command): Call agent_run_command.
16081 (gdb_ust_connect_sync_socket): Deleted. Move it to
16082 common/agent.c.
16083 (resume_thread, stop_thread): Likewise.
16084 (gdb_ust_socket_init): Renamed to ...
16085 (gdb_agent_socket_init): ... New.
16086 (gdb_ust_thread): Renamed to ...
16087 (gdb_agent_helper_thread): ... New.
16088 (gdb_ust_init): Move some code to ...
16089 (gdb_agent_init): ... here. New.
16090 [HAVE_UST]: Call gdb_ust_init.
16091 (initialize_tracepoint_ftlib): Call gdb_agent_init.
16092 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
16093 * config.in, configure: Regenerated.
16094
16095 2012-03-02 Pedro Alves <palves@redhat.com>
16096
16097 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
16098 * linux-low.c (struct simple_pid_list): New.
16099 (stopped_pids): New a struct simple_pid_list pointer.
16100 (add_to_pid_list, pull_pid_from_list): New.
16101 (handle_extended_wait): Don't assume the first signal new children
16102 report is SIGSTOP. Adjust call to pull_pid_from_list.
16103 (linux_wait_for_lwp): Adjust.
16104
16105 2012-03-02 Yao Qi <yao@codesourcery.com>
16106
16107 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
16108 debug log.
16109
16110 2012-03-02 Yao Qi <yao@codesourcery.com>
16111
16112 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
16113 `stop_pc' and `tpoint'. Update caller.
16114
16115 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
16116
16117 * linux-low.h (linux_target_ops): Add regset_bitmap member.
16118 * linux-low.c (use_linux_regsets): New macro.
16119 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
16120 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
16121 (linux_register_in_regsets): New function.
16122 (usr_fetch_inferior_registers): Skip registers covered by
16123 regsets.
16124 (usr_store_inferior_registers): Likewise.
16125 (usr_fetch_inferior_registers): New macro.
16126 (usr_store_inferior_registers): Likewise.
16127 (linux_fetch_registers): Handle mixed regset/non-regset targets.
16128 (linux_store_registers): Likewise.
16129 * linux-mips-low.c (init_registers_mips_dsp_linux): New
16130 prototype.
16131 (init_registers_mips64_dsp_linux): Likewise.
16132 (init_registers_mips_linux): New macro.
16133 (init_registers_mips_dsp_linux): Likewise.
16134 (mips_dsp_num_regs): Likewise.
16135 (DSP_BASE, DSP_CONTROL): New fallback macros.
16136 (mips_base_regs): New macro.
16137 (mips_regmap): Use it. Fix the size.
16138 (mips_dsp_regmap): New variable.
16139 (mips_dsp_regset_bitmap): Likewise.
16140 (mips_arch_setup): New function.
16141 (mips_cannot_fetch_register): Use the_low_target.regmap rather
16142 than mips_regmap.
16143 (mips_cannot_store_register): Likewise.
16144 (the_low_target): Update .arch_setup, .num_regs and .regmap
16145 initializers. Add .regset_bitmap initializer.
16146 * linux-arm-low.c (the_low_target): Add .regset_bitmap
16147 initializer.
16148 * linux-bfin-low.c (the_low_target): Likewise.
16149 * linux-cris-low.c (the_low_target): Likewise.
16150 * linux-crisv32-low.c (the_low_target): Likewise.
16151 * linux-ia64-low.c (the_low_target): Likewise.
16152 * linux-m32r-low.c (the_low_target): Likewise.
16153 * linux-m68k-low.c (the_low_target): Likewise.
16154 * linux-ppc-low.c (the_low_target): Likewise.
16155 * linux-s390-low.c (the_low_target): Likewise.
16156 * linux-sh-low.c (the_low_target): Likewise.
16157 * linux-sparc-low.c (the_low_target): Likewise.
16158 * linux-tic6x-low.c (the_low_target): Likewise.
16159 * linux-x86-low.c (the_low_target): Likewise.
16160 * linux-xtensa-low.c (the_low_target): Likewise.
16161 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
16162 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
16163 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
16164 srv_xmlfiles.
16165 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
16166 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
16167
16168 2012-02-29 Yao Qi <yao@codesourcery.com>
16169 Pedro Alves <palves@redhat.com>
16170
16171 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
16172 `step_over_finished' is true.
16173
16174 2012-02-27 Pedro Alves <palves@redhat.com>
16175
16176 * linux-low.c (pid_is_stopped): Delete, moved to common/.
16177 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
16178
16179 2012-02-27 Pedro Alves <palves@redhat.com>
16180
16181 PR server/9684
16182 * linux-low.c (pid_is_stopped): New.
16183 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
16184
16185 2012-02-25 Luis Machado <lgustavo@codesourcery.com>
16186
16187 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
16188 of conditions.
16189
16190 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
16191
16192 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
16193
16194 2012-02-24 Luis Machado <lgustavo@codesourcery>
16195
16196 * server.c (handle_query): Advertise support for target-side
16197 breakpoint condition evaluation.
16198 (process_point_options): New function.
16199 (process_serial_event): When inserting a breakpoint, check for
16200 a target-side condition that should be evaluated.
16201
16202 * mem-break.c: Include regcache.h and ax.h.
16203 (point_cond_list_t): New data structure.
16204 (breakpoint) <cond_list>: New field.
16205 (find_gdb_breakpoint_at): Make non-static.
16206 (delete_gdb_breakpoint_at): Clear any target-side
16207 conditions.
16208 (clear_gdb_breakpoint_conditions): New function.
16209 (add_condition_to_breakpoint): Likewise.
16210 (add_breakpoint_condition): Likewise.
16211 (gdb_condition_true_at_breakpoint): Likewise.
16212 (gdb_breakpoint_here): Return result directly instead
16213 of going through a local variable.
16214
16215 * mem-break.h (find_gdb_breakpoint_at): New prototype.
16216 (clear_gdb_breakpoint_conditions): Likewise.
16217 (add_breakpoint_condition): Likewise.
16218 (gdb_condition_true_at_breakpoint): Likewise.
16219
16220 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
16221 (need_step_over_p): Take target-side breakpoint condition into
16222 consideration.
16223
16224 2012-02-24 Luis Machado <lgustavo@codesourcery>
16225
16226 * server.h: Include tracepoint.h.
16227 (agent_mem_read, agent_get_trace_state_variable_value,
16228 agent_set_trace_state_variable_value,
16229 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
16230 get_set_tsv_func_addr): New prototypes.
16231
16232 * ax.h: New include file.
16233 * ax.c: New source file.
16234
16235 * tracepoint.c: Include ax.h.
16236 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
16237 agent_expr, eval_result_type): Move to ax.h.
16238 (parse_agent_expr): Rename to ...
16239 (gdb_parse_agent_expr): ... this, make it non-static and move
16240 to ax.h.
16241 (unparse_agent_expr) Rename to ...
16242 (gdb_unparse_agent_expr): ... this, make it non-static and move
16243 to ax.h.
16244 (eval_agent_expr): Rename to ...
16245 (eval_tracepoint_agent_expr): ... this.
16246 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
16247 forward declarations.
16248 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
16249 (agent_get_trace_state_variable_value): New function.
16250 (agent_set_trace_state_variable_value): New function.
16251 (cmd_qtdp): Call gdb_parse_agent_expr (...).
16252 (response_tracepoint): Call gdb_unparse_agent_expr (...).
16253 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
16254 (condition_true_at_tracepoint): Likewise.
16255 (parse_agent_expr): Rename to ...
16256 (gdb_parse_agent_expr): ... this and move to ax.c.
16257 (unparse_agent_expr): Rename to ...
16258 (gdb_unparse_agent_expr): ... this and move to ax.c.
16259 (gdb_agent_op_name): Move to ax.c.
16260 (eval_agent_expr): Rename to ...
16261 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
16262 and move to ax.c.
16263 (eval_tracepoint_agent_expr): New function.
16264 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
16265 non-static.
16266 (current_insn_ptr, emit_error, struct bytecode_address): Move to
16267 ax.c.
16268 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
16269 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
16270 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
16271 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
16272 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
16273 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
16274 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
16275 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
16276 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
16277 (compile_bytecodes): Remove forward declaration.
16278 (is_goto_target): Move to ax.c.
16279 (compile_bytecodes): Move to ax.c and call
16280 agent_get_trace_state_variable_value (...) and
16281 agent_set_trace_state_variable_value (...).
16282
16283 * Makefile.in: Update ax.c and IPA dependencies.
16284
16285 2012-02-24 Pedro Alves <palves@redhat.com>
16286
16287 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
16288 (cmd_bigqtbuffer_circular): ... this. Only handle
16289 'QTBuffer:circular:'.
16290 (handle_tracepoint_general_set): Adjust.
16291
16292 2012-02-16 Yao Qi <yao@codesourcery.com>
16293
16294 * inferiors.c: Move code to ...
16295 * dll.c: .... here. New.
16296 * server.h: Declare clear_dlls.
16297 * Makefile.in (SFILES): Add dll.c.
16298 (OBS): Add dll.o
16299 (dll.o): New rule.
16300
16301 2012-02-11 Yao Qi <yao@codesourcery.com>
16302
16303 * server.c: (handle_monitor_command): Add a new parameter
16304 `own_buf'.
16305 (handle_query): Update caller.
16306
16307 2012-02-09 Joel Brobecker <brobecker@adacore.com>
16308
16309 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
16310 * configure, config.in: Regenerate.
16311 * hostio.c: Provide an alternate implementation if HAVE_READLINK
16312 is not defined.
16313
16314 2012-02-02 Pedro Alves <palves@redhat.com>
16315
16316 Try SIGKILL first, then PTRACE_KILL.
16317 * linux-low.c (linux_kill_one_lwp): New.
16318 (linux_kill_one_lwp): Rename to ...
16319 (kill_one_lwp_callback): ... this. Use the new
16320 linux_kill_one_lwp.
16321
16322 2012-02-02 Pedro Alves <palves@redhat.com>
16323
16324 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
16325 inferior.
16326
16327 2012-01-27 Pedro Alves <palves@redhat.com>
16328
16329 * linux-low.c (linux_child_pid_to_exec_file): Delete.
16330 (elf_64_file_p): Make static.
16331 (linux_pid_exe_is_elf_64_file): New.
16332 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
16333 Delete declarations.
16334 (linux_pid_exe_is_elf_64_file): Declare.
16335 * linux-x86-low.c (x86_arch_setup): Use
16336 linux_pid_exe_is_elf_64_file.
16337
16338 2012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
16339
16340 * linux-low.c (linux_wait_for_event_1): Rename to ...
16341 (linux_wait_for_event): ... here and merge it with former
16342 linux_wait_for_event - new variable wait_ptid, use it.
16343 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
16344
16345 2012-01-23 Pedro Alves <palves@redhat.com>
16346
16347 * server.c (main): Avoid yet another case of infinite loop while
16348 detaching/killing after a longjmp.
16349
16350 2012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16351
16352 Code cleanup.
16353 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
16354
16355 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
16356
16357 * hostio.c (handle_readlink): New function.
16358 (handle_vFile): Call it to handle "vFile:readlink" packets.
16359
16360 2012-01-20 Pedro Alves <palves@redhat.com>
16361 Ulrich Weigand <ulrich.weigand@linaro.org>
16362
16363 * server.c (handle_v_requests): Only support vAttach and vRun to
16364 start multiple processes when in extended protocol mode.
16365
16366 2012-01-17 Pedro Alves <palves@redhat.com>
16367
16368 * tracepoint.c (initialize_tracepoint): Use mmap instead of
16369 memalign plus mprotect to allocate the scratch buffer.
16370
16371 2012-01-13 Pedro Alves <palves@redhat.com>
16372
16373 * server.c (attach_inferior): Clear `cont_thread'.
16374
16375 2012-01-13 Pedro Alves <palves@redhat.com>
16376
16377 * server.c (main): Avoid infinite loop while detaching/killing
16378 after a longjmp.
16379
16380 2012-01-09 Doug Evans <dje@google.com>
16381
16382 * server.c (start_inferior): Set last_ptid in --wrapper case.
16383
16384 2012-01-06 Yao Qi <yao@codesourcery.com>
16385
16386 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
16387 defined.
16388 [IN_PROCESS_AGENT] (debug_agent): New global variable.
16389
16390 2012-01-04 Yao Qi <yao@codesourcery.com>
16391
16392 * tracepoint.c (cmd_qtdp): Print debug message
16393 for static tracepoint.
16394
16395 2012-01-04 Yao Qi <yao@codesourcery.com>
16396
16397 * tracepoint.c (trace_vdebug): Differentiate debug message
16398 between gdbserver and IPA.
16399
16400 2012-01-03 Yao Qi <yao@codesourcery.com>
16401
16402 * tracepoint.c (tracepoint_was_hit): Don't collect for
16403 static tracepoint.
16404
16405 2012-01-02 Joel Brobecker <brobecker@adacore.com>
16406
16407 * terminal.h: Reformat copyright header.
16408
16409 2012-01-02 Joel Brobecker <brobecker@adacore.com>
16410
16411 * server.c (gdbserver_version): Update copyright year.
16412 * gdbreplay.c (gdbreplay_version): Likewise.
16413
16414 2011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
16415
16416 * linux-low.c (linux_create_inferior): Put empty if clause for write.
16417
16418 Revert:
16419 2011-12-18 Hui Zhu <teawater@gmail.com>
16420 * linux-low.c (linux_create_inferior): Save return value to ret.
16421
16422 2011-12-18 Hui Zhu <teawater@gmail.com>
16423
16424 * linux-low.c (linux_create_inferior): Save return value to ret.
16425
16426 2011-12-16 Doug Evans <dje@google.com>
16427
16428 * linux-low.c (linux_create_inferior): If stdio connection,
16429 redirect stdin from /dev/null, stdout to stderr.
16430 * remote-utils.c (remote_is_stdio): New static global.
16431 (remote_connection_is_stdio): New function.
16432 (remote_prepare): Handle stdio connection.
16433 (remote_open): Ditto.
16434 (remote_close): Don't close stdin for stdio connections.
16435 (read_prim,write_prim): New functions. Replace all calls to
16436 read/write to these.
16437 * server.c (main): Watch for "-" argument. Move call to
16438 remote_prepare before start_inferior.
16439 * server.h (STDIO_CONNECTION_NAME): New macro.
16440 (remote_connection_is_stdio): Declare.
16441
16442 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
16443 in debugging output.
16444
16445 2011-12-15 Yao Qi <yao@codesourcery.com>
16446
16447 * tracepoint.c: Include sys/syscall.h.
16448 (gdb_ust_thread): Remove preprocessor conditional.
16449
16450 2011-12-14 Pedro Alves <pedro@codesourcery.com>
16451
16452 * linux-low.c (linux_detach_one_lwp): Call
16453 the_low_target.prepare_to_resume before detaching.
16454
16455 2011-12-14 Yao Qi <yao@codesourcery.com>
16456
16457 * tracepoint.c (gdb_ust_thread): Don't ignore return value
16458 of write.
16459
16460 2011-12-14 Yao Qi <yao@codesourcery.com>
16461
16462 * i386-low.c (i386_low_stopped_data_address): Initialize local
16463 variable `control'.
16464
16465 2011-12-13 Pedro Alves <pedro@codesourcery.com>
16466
16467 PR remote/13492
16468
16469 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
16470 DR_CONTROL unless necessary. Extend comments.
16471 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
16472 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
16473
16474 2011-12-13 Yao Qi <yao@codesourcery.com>
16475
16476 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
16477 macros.
16478 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
16479
16480 2011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
16481
16482 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
16483 Print new debug message for such case.
16484
16485 2011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
16486
16487 Fix overlapping memcpy.
16488 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
16489 the read_inferior_memory transfer.
16490 (delete_fast_tracepoint_jump): New variable buf. Use it for the
16491 write_inferior_memory transfer.
16492 (set_fast_tracepoint_jump): New variable buf. Use it for the
16493 read_inferior_memory and write_inferior_memory transfers.
16494 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
16495 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
16496 Use it for the write_inferior_memory transfer.
16497 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
16498 buffers.
16499
16500 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
16501
16502 * linux-low.c (fetch_register, store_register): Make code
16503 consistent, fix formatting.
16504
16505 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
16506
16507 * linux-low.c (usr_store_inferior_registers): Factor out code
16508 to handle individual registers into...
16509 (store_register): ... this new function.
16510
16511 2011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
16512
16513 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
16514 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
16515 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
16516 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
16517 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
16518 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
16519 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
16520 (srv_xmlfiles): Add new XML files.
16521
16522 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
16523 and <sys/uio.h>.
16524 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
16525 (init_registers_s390_linux32v1): Add prototype.
16526 (init_registers_s390_linux32v2): Likewise.
16527 (init_registers_s390_linux64v1): Likewise.
16528 (init_registers_s390_linux64v2): Likewise.
16529 (init_registers_s390x_linux64v1): Likewise.
16530 (init_registers_s390x_linux64v2): Likewise.
16531 (s390_num_regs): Increment to 52.
16532 (s390_regmap): Add orig_r2 register.
16533 (s390_num_regs_3264): Increment to 68.
16534 (s390_regmap_3264): Add orig_r2 register.
16535 (s390_collect_ptrace_register): Handle orig_r2 register.
16536 (s390_supply_ptrace_register): Likewise.
16537 (s390_fill_last_break): New function.
16538 (s390_store_last_break): Likewise.
16539 (s390_fill_system_call): New function.
16540 (s390_store_system_call): Likewise.
16541 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
16542 register sets.
16543 (s390_check_regset): New function.
16544 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
16545 NT_S390_SYSTEM_CALL regsets and use appropriate description.
16546 Update target_regsets for available register sets.
16547
16548 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
16549 Jan Kratochvil <jan.kratochvil@redhat.com>
16550
16551 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
16552 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
16553 New.
16554 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
16555 * linux-low.h (struct process_info_private): New member r_debug.
16556 * server.c (handle_qxfer_libraries): Call
16557 the_target->qxfer_libraries_svr4.
16558 (handle_qxfer_libraries_svr4): New function.
16559 (qxfer_packets): New entry "libraries-svr4".
16560 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
16561 * target.h (struct target_ops): New member qxfer_libraries_svr4.
16562 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
16563 PACKET_qXfer_libraries_svr4.
16564
16565 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
16566
16567 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
16568 PSW address/mask between 8-byte and 16-byte formats.
16569 (s390_supply_ptrace_register): Likewise.
16570 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
16571 basic addressing mode bit.
16572
16573 2011-11-24 Stan Shebs <stan@codesourcery.com>
16574
16575 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
16576
16577 2011-11-17 Stan Shebs <stan@codesourcery.com>
16578
16579 * tracepoint.c (struct tracepoint): New field traceframe_usage.
16580 (tracing_start_time): New global.
16581 (tracing_stop_time): New global.
16582 (tracing_user_name): New global.
16583 (tracing_notes): New global.
16584 (tracing_stop_note): New global.
16585 (cmd_qtstart): Set traceframe_usage, start_time.
16586 (stop_tracing): Set stop_time.
16587 (cmd_qtstatus): Report additional status.
16588 (cmd_qtp): New function.
16589 (handle_tracepoint_query): Call it.
16590 (cmd_qtnotes): New function.
16591 (handle_tracepoint_general_set): Call it.
16592 (get_timestamp): Rename from tsv_get_timestamp.
16593
16594 2011-11-14 Stan Shebs <stan@codesourcery.com>
16595 Kwok Cheung Yeung <kcy@codesourcery.com>
16596
16597 * linux-x86-low.c (small_jump_insn): New.
16598 (i386_install_fast_tracepoint_jump_pad): Add arguments for
16599 trampoline and error message, build a trampoline and issue a small
16600 jump instruction to it.
16601 (x86_install_fast_tracepoint_jump_pad): Add arguments for
16602 trampoline and error message.
16603 (x86_get_min_fast_tracepoint_insn_len): New.
16604 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
16605 * linux-low.h (struct linux_target_ops): Add arguments to
16606 install_fast_tracepoint_jump_pad operation, add new operation.
16607 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
16608 arguments.
16609 (linux_get_min_fast_tracepoint_insn_len): New function.
16610 (linux_target_op): Add new operation.
16611 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
16612 (gdb_trampoline_buffer_end): Ditto.
16613 (gdb_trampoline_buffer_error): Ditto.
16614 (struct ipa_sym_addresses): Add fields for new IPA variables.
16615 (symbol_list): Add entries for new IPA variables.
16616 (struct tracepoint): Add fields to hold the address range of the
16617 trampoline used by the tracepoint.
16618 (trampoline_buffer_head): New static variable.
16619 (trampoline_buffer_tail): Ditto.
16620 (claim_trampoline_space): New function.
16621 (have_fast_tracepoint_trampoline_buffer): New function.
16622 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
16623 structure.
16624 (install_fast_tracepoint): Ditto, also add error buffer argument.
16625 (cmd_qtminftpilen): New function.
16626 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
16627 (fast_tracepoint_from_trampoline_address): New function.
16628 (fast_tracepoint_collecting): Handle trampoline as part of jump
16629 pad space.
16630 (set_trampoline_buffer_space): New function.
16631 (initialize_tracepoint): Initialize new IPA variables.
16632 * target.h (struct target_ops): Add arguments to
16633 install_fast_tracepoint_jump_pad operation, add new
16634 get_min_fast_tracepoint_insn_len operation.
16635 (target_get_min_fast_tracepoint_insn_len): New.
16636 (install_fast_tracepoint_jump_pad): Add arguments.
16637 * server.h (IPA_BUFSIZ): Define.
16638 * linux-i386-ipa.c: Include extra header files.
16639 (initialize_fast_tracepoint_trampoline_buffer): New function.
16640 (initialize_low_tracepoint): Call it.
16641 * server.h (set_trampoline_buffer_space): Declare.
16642 (claim_trampoline_space): Ditto.
16643 (have_fast_tracepoint_trampoline_buffer): Ditto.
16644
16645 2011-11-14 Yao Qi <yao@codesourcery.com>
16646
16647 * server.c (handle_query): Handle InstallInTrace for qSupported.
16648 * tracepoint.c (add_tracepoint): Sort list.
16649 (install_tracepoint, download_tracepoint): New.
16650 (cmd_qtdp): Call them to install and download tracepoints.
16651 (sort_tracepoints): Removed.
16652 (cmd_qtstart): Update.
16653
16654 2011-11-14 Yao Qi <yao@codesourcery.com>
16655
16656 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
16657 * mem-break.h: Declare.
16658 * tracepoint.c (cmd_qtstart): Move some code to ...
16659 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
16660 New.
16661 (download_tracepoints): Move some code to ...
16662 (download_tracepoint_1): ... here. New.
16663
16664 2011-11-08 Yao Qi <yao@codesourcery.com>
16665
16666 * remote-utils.c (relocate_instruction): A comment fix.
16667
16668 2011-11-07 Joel Brobecker <brobecker@adacore.com>
16669
16670 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
16671 (i386_dr_low_get_control, i386_dr_low_get_status): Use
16672 dr_status_mirror and dr_control_mirror from debug_reg_state.
16673 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
16674 (i386_initial_stuff): Remove use of deleted globals.
16675 (i386_get_thread_context, i386_set_thread_context,
16676 i386_thread_added): Use dr_status_mirror and dr_control_mirror
16677 from debug_reg_state.
16678
16679 2011-11-05 Yao Qi <yao@codesourcery.com>
16680
16681 * tracepoint.c (gdb_collect): Loop over tracepoints of same
16682 address as TPOINT's.
16683
16684 2011-11-02 Stan Shebs <stan@codesourcery.com>
16685
16686 * tracepoint.c (agent_mem_read_string): New function.
16687 (eval_agent_expr): Call it for tracenz.
16688 * server.c (handle_query): Report support for tracenz.
16689
16690 2011-11-02 Yao Qi <yao@codesourcery.com>
16691
16692 * tracepoint.c (cmd_qtstart): Remove unused local variables.
16693
16694 2011-11-02 Yao Qi <yao@codesourcery.com>
16695
16696 * target.h: Fix a typo in comment.
16697
16698 2011-10-31 Pedro Alves <pedro@codesourcery.com>
16699
16700 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
16701 clobber the breakpoints' shadows with fast tracepoint jumps.
16702 * mem-break.h (check_mem_write): Add `myaddr' parameter.
16703 * target.c (write_inferior_memory): Also pass MYADDR down to
16704 check_mem_write.
16705
16706 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
16707
16708 * configure.ac: Check support for personality routine.
16709 * configure: Regenerate.
16710 * config.in: Likewise.
16711 * linux-low.c: Include <sys/personality.h>.
16712 Define ADDR_NO_RANDOMIZE if necessary.
16713 (linux_create_inferior): Disable address space randomization when
16714 forking inferior, if requested.
16715 (linux_supports_disable_randomization): New function.
16716 (linux_target_ops): Install it.
16717 * server.h (disable_randomization): Declare.
16718 * server.c (disable_randomization): New global variable.
16719 (handle_general_set): Handle QDisableRandomization.
16720 (handle_query): Likewise for qSupported.
16721 (main): Support --disable-randomization and --no-disable-randomization
16722 command line arguments.
16723 * target.h (struct target_ops): Add supports_disable_randomization.
16724 (target_supports_disable_randomization): New macro.
16725
16726 2011-09-29 Mike Frysinger <vapier@gentoo.org>
16727
16728 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
16729 ifdef check.
16730 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
16731 [!PT_GETDSBT] (target_loadmap): New definition.
16732 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
16733 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
16734 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
16735 and PT_GETDSBT to LINUX_LOADMAP.
16736 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
16737 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
16738
16739 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
16740
16741 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
16742 (arm_linux_hwbp_cap): New static variable.
16743 (arm_linux_get_hwbp_cap): Replace by ...
16744 (arm_linux_init_hwbp_cap): ... this new function.
16745 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
16746 (arm_linux_get_hw_watchpoint_count): Likewise.
16747 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16748 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
16749 (arm_prepare_to_resume): Use perror_with_name instead of error.
16750
16751 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
16752
16753 * linux-arm-low.c: Include <signal.h>.
16754 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
16755 (struct arm_linux_hwbp_cap): New data type.
16756 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
16757 (struct arm_linux_hw_breakpoint): New data type.
16758 (MAX_BPTS, MAX_WPTS): Define.
16759 (struct arch_process_info, struct arch_lwp_info): New data types.
16760 (arm_linux_get_hwbp_cap): New function.
16761 (arm_linux_get_hw_breakpoint_count): Likewise.
16762 (arm_linux_get_hw_watchpoint_count): Likewise.
16763 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16764 (arm_hwbp_control_initialize): Likewise.
16765 (arm_hwbp_control_is_enabled): Likewise.
16766 (arm_hwbp_control_is_initialized): Likewise.
16767 (arm_hwbp_control_disable): Likewise.
16768 (arm_linux_hw_breakpoint_equal): Likewise.
16769 (arm_linux_hw_point_initialize): Likewise.
16770 (struct update_registers_data): New data structure.
16771 (update_registers_callback: New function.
16772 (arm_insert_point): Likewise.
16773 (arm_remove_point): Likewise.
16774 (arm_stopped_by_watchpoint): Likewise.
16775 (arm_stopped_data_address): Likewise.
16776 (arm_new_process): Likewise.
16777 (arm_new_thread): Likewise.
16778 (arm_prepare_to_resume): Likewise.
16779 (the_low_target): Register arm_insert_point, arm_remove_point,
16780 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
16781 arm_new_thread, and arm_prepare_to_resume.
16782
16783 2011-09-15 Stan Shebs <stan@codesourcery.com>
16784
16785 * server.h (struct emit_ops): Add compare-goto fields.
16786 * tracepoint.c (gdb_agent_op_sizes): New table.
16787 (emit_eq_goto): New function.
16788 (emit_ne_goto): New function.
16789 (emit_lt_goto): New function.
16790 (emit_le_goto): New function.
16791 (emit_gt_goto): New function.
16792 (emit_ge_goto): New function.
16793 (is_goto_target): New function.
16794 (compile_bytecodes): Recognize special cases of compare-goto
16795 combinations and call specialized emitters for them.
16796 * linux-x86-low.c (amd64_emit_eq_goto): New function.
16797 (amd64_emit_ne_goto): New function.
16798 (amd64_emit_lt_goto): New function.
16799 (amd64_emit_le_goto): New function.
16800 (amd64_emit_gt_goto): New function.
16801 (amd64_emit_ge_goto): New function.
16802 (amd64_emit_ops): Add the new functions.
16803 (i386_emit_eq_goto): New function.
16804 (i386_emit_ne_goto): New function.
16805 (i386_emit_lt_goto): New function.
16806 (i386_emit_le_goto): New function.
16807 (i386_emit_gt_goto): New function.
16808 (i386_emit_ge_goto): New function.
16809 (i386_emit_ops): Add the new functions.
16810
16811 2011-09-08 Stan Shebs <stan@codesourcery.com>
16812
16813 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
16814 (i386_emit_epilogue): Restore %ebx.
16815
16816 2011-08-31 Jie Zhang <jzhang918@gmail.com>
16817
16818 * server.c (step_thread): Remove definition.
16819 (process_serial_event): Don't handle Hs.
16820 * server.h (step_thread): Remove declaration.
16821 * target.c (set_desired_inferior): Remove use of step_thread.
16822
16823 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
16824
16825 * linux-low.c: Include linux-procfs.h.
16826 (linux_attach_lwp_1): Update comments.
16827 (linux_attach): Scan for existing threads when attaching to a
16828 process that is the tgid.
16829 * Makefile.in: Update dependencies.
16830
16831 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
16832
16833 * configure.srv: Add linux-procfs.o dependencies.
16834
16835 2011-08-14 Yao Qi <yao@codesourcery.com>
16836
16837 * target.h (struct target_ops): Fix indent.
16838 * win32-low.c (win32_target_ops): Fix comment.
16839
16840 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
16841 Yao Qi <yao@codesourcery.com>
16842
16843 * Makefile.in (clean): Remove tic6x-*.c files.
16844 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
16845 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
16846 (tic6x-c64xp-linux.c): Likewise.
16847 * configure.srv: Add support for tic6x-*-uclinux.
16848 * linux-tic6x-low.c: New.
16849 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
16850
16851 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
16852 Yao Qi <yao@codesourcery.com>
16853
16854 * target.h (struct target_ops): Add read_loadmap.
16855 * linux-low.c (struct target_loadseg): New type.
16856 (struct target_loadmap): New type.
16857 (linux_read_loadmap): New function.
16858 (linux_target_ops): Add linux_read_loadmap.
16859 * server.c (handle_query): Support qXfer:fdpic:read packet.
16860 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
16861 to NULL.
16862
16863 2011-08-05 Eli Zaretskii <eliz@gnu.org>
16864
16865 * win32-low.c: Include <stdint.h>.
16866
16867 2011-07-22 Pedro Alves <pedro@codesourcery.com>
16868
16869 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
16870 to the inferior here.
16871 (i386_remove_aligned_watchpoint): Ditto.
16872 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
16873 fit part of the watchpoint in the debug registers.
16874 (i386_update_inferior_debug_regs): New.
16875 (i386_low_insert_watchpoint): Work on a local mirror of the debug
16876 registers, and only update the inferior on success.
16877 (i386_low_remove_watchpoint): Ditto.
16878
16879 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
16880
16881 * linux-low.c (compare_ints, unique, list_threads, show_process,
16882 linux_core_of_thread): Delete.
16883 (linux_target_ops): Change linux_core_of_thread to
16884 linux_common_core_of_thread.
16885 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
16886 * utils.c (malloc_failure): Change type of argument.
16887 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
16888 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
16889 common/linux-osdata.c, common/ptid.c and common/buffer.c.
16890 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
16891 (IPA_OBJS): Add common-utils-ipa.o.
16892 (ptid_h, linux_osdata_h): New macros.
16893 (server_h): Add common/common-utils.h, common/xml-utils.h,
16894 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
16895 common/ptid.h.
16896 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
16897 ptid.o, buffer.o): New rules.
16898 (linux-low.o): Add common/linux-osdata.h as a dependency.
16899 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
16900 * configure.ac: Add AC_HEADER_DIRENT check.
16901 * config.in: Regenerate.
16902 * configure: Regenerate.
16903 * remote-utils.c (xml_escape_text): Delete.
16904 (buffer_grow, buffer_free, buffer_init, buffer_finish,
16905 buffer_xml_printf): Move to common/buffer.c.
16906 * server.c (main): Remove call to initialize_inferiors.
16907 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
16908 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
16909 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
16910 internal_error, gdb_assert, gdb_assert_fail): Delete.
16911 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
16912 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
16913 common/buffer.h.
16914 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
16915 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
16916 initialize_inferiors): Delete.
16917
16918 2011-07-20 Pedro Alves <pedro@codesourcery.com>
16919
16920 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
16921 symbol error.
16922
16923 2011-05-31 Pedro Alves <pedro@codesourcery.com>
16924
16925 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
16926 assertion.
16927 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
16928
16929 2011-05-26 Yao Qi <yao@codesourcery.com>
16930
16931 * Makefile.in (thread-db.o): Track dependence to
16932 common/gdb_thread_db.h.
16933 * thread-db.c: include gdb_thread_db.h from right place.
16934
16935 2011-05-16 Adrian Cornish <gnu@bluedreamer.com>
16936
16937 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
16938 __FILE__ and __LINE__ to internal_error.
16939
16940 2011-05-13 Doug Evans <dje@google.com>
16941
16942 * thread-db.c (try_thread_db_load_from_sdir): New function.
16943 (try_thread_db_load_from_dir): New function.
16944 (thread_db_load_search): Handle $sdir, ignore $pdir.
16945 Remove trying of system directories if search of
16946 libthread-db-search-path fails, that is now done via $sdir.
16947
16948 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
16949
16950 * server.c (handle_query): Add EnableDisableTracepoints to the list
16951 of supported features.
16952 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
16953 tracepoints.
16954 (cmd_qtenable_disable): New.
16955 (cmd_qtstart): Install tracepoints even if disabled.
16956 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
16957 receiving a QTEnable or QTDisable packet.
16958 (gdb_collect): Skip data collection if fast tracepoint is disabled.
16959 (ust_marker_to_static_tracepoint): Do not ignore disabled static
16960 tracepoints.
16961 (gdb_probe): Skip data collection if static tracepoint is disabled.
16962
16963 2011-05-10 Doug Evans <dje@google.com>
16964
16965 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
16966
16967 2011-05-04 Doug Evans <dje@google.com>
16968
16969 * linux-low.c (linux_join): Skip process lookup.
16970 * spu-low.c (spu_join): Ditto.
16971 * server.c (join_inferiors_callback): Delete.
16972 (process_serial_event): For 'D' packet (detach) call join_inferior
16973 directly.
16974
16975 2011-05-04 Joseph Myers <joseph@codesourcery.com>
16976
16977 * README: Don't mention xscale*-*-linux*.
16978 * configure.srv (xscale*-*-linux*): Don't handle target.
16979
16980 2011-04-27 Nathan Froyd <froydnj@codesourcery.com>
16981
16982 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
16983 casting pointers.
16984 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
16985 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
16986 (i386_emit_void_call_2): Likewise.
16987
16988 2011-04-26 Yao Qi <yao@codesourcery.com>
16989
16990 * linux-low.c: Move common macros to linux-ptrace.h.
16991 Include linux-ptrace.h.
16992 * Makefile.in (linux_ptrace_h): New.
16993 (linux-low.o): Depends on linux-ptrace.h.
16994
16995 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
16996
16997 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
16998 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
16999 (remote_prepare): New function with most of the TCP code from ...
17000 (remote_open): ... here. Detect PORT here unconditionally. Move also
17001 setting transport_is_reliable.
17002 * server.c (run_once): New variable.
17003 (gdbserver_usage): Document it.
17004 (main): Set run_once for `--once'. Call remote_prepare. Exit after
17005 the first run if RUN_ONCE.
17006 * server.h (run_once, remote_prepare): New declarations.
17007
17008 2011-04-19 Tom Tromey <tromey@redhat.com>
17009
17010 * win32-low.c (handle_load_dll): Remove duplicate "the".
17011
17012 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
17013
17014 Remove support for old Cygwin 1.5 versions.
17015 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
17016 function to avoid warning.
17017 (win32_add_one_solib): Use cygwin_conv_path function to avoid
17018 warning.
17019
17020 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
17021
17022 * gdbserver/server.h (Macro _): Define it if not available.
17023
17024 2011-03-14 Michael Snyder <msnyder@vmware.com>
17025
17026 * hostio.c (handle_close): Remove unnecessary null test.
17027
17028 2011-03-10 Joel Brobecker <brobecker@adacore.com>
17029
17030 * Makefile.in (maintainer-clean realclean distclean): Remove
17031 "make ... subdir_do" command.
17032
17033 2011-03-10 Michael Snyder <msnyder@vmware.com>
17034
17035 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
17036
17037 * server.c (handle_v_run): Free alloced buffer on early return.
17038
17039 2011-03-09 Yao Qi <yao@codesourcery.com>
17040
17041 Revert:
17042 2011-03-04 Yao Qi <yao@codesourcery.com>
17043
17044 * Makefile.in: Remove GNU make feature --directory.
17045
17046 2011-03-05 Yao Qi <yao@codesourcery.com>
17047
17048 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
17049 (subdir_do): New make target. Copied from gdb/Makefile.
17050 (maintainer-clean, realclean, distclean, clean): Call corresponding
17051 make targets in common/Makefile.
17052
17053 2011-02-11 Yao Qi <yao@codesourcery.com>
17054
17055 * configure.ac: Call AC_PROG_RANLIB.
17056 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
17057 * configure: Regenerate.
17058
17059 2011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
17060
17061 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
17062
17063 2011-03-06 Yao Qi <yao@codesourcery.com>
17064
17065 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
17066
17067 2011-03-05 Yao Qi <yao@codesourcery.com>
17068
17069 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
17070 (subdir_do): New make target. Copied from gdb/Makefile.
17071 (maintainer-clean, realclean, distclean, clean): Call corresponding
17072 make targets in common/Makefile.
17073
17074 2011-03-04 Yao Qi <yao@codesourcery.com>
17075
17076 * Makefile.in: Remove GNU make feature --directory.
17077
17078 2011-03-04 Michael Snyder <msnyder@vmware.com>
17079
17080 * server.c (queue_stop_reply): Call xmalloc not malloc.
17081
17082 2011-03-02 Michael Snyder <msnyder@vmware.com>
17083
17084 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
17085
17086 2011-02-28 Michael Snyder <msnyder@vmware.com>
17087
17088 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
17089 (cmd_qtframe): Ditto.
17090 (cmd_qtbuffer): Ditto.
17091 (cmd_bigqtbuffer): Ditto.
17092
17093 * utils.c (decimal2str): Initialize 'width' to nine, then
17094 don't mess with it.
17095
17096 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
17097
17098 * hostio.c (require_data): Free *data, not data.
17099
17100 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17101
17102 * hostio.c (require_data): Use free, not xfree.
17103
17104 2011-02-27 Michael Snyder <msnyder@vmware.com>
17105
17106 * server.c (handle_query): Discard unused value.
17107
17108 * hostio.c (require_data): Free malloc memory before returning
17109 error.
17110
17111 2011-02-26 Michael Snyder <msnyder@vmware.com>
17112
17113 * linux-low.c (list_threads): Call closedir for dirent.
17114
17115 2011-02-27 Michael Snyder <msnyder@vmware.com>
17116
17117 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
17118 a case statement falls through.
17119
17120 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
17121
17122 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
17123 in comparison.
17124
17125 2011-02-26 Michael Snyder <msnyder@vmware.com>
17126
17127 * utils.c (decimal2str): Eliminate dead code and dead param.
17128 (pulongest): Drop dead param from call to decimal2str.
17129 (plongest): Ditto.
17130
17131 2011-02-24 Joel Brobecker <brobecker@adacore.com>
17132
17133 Revert the following patch (not approved yet):
17134 2011-02-21 Hui Zhu <teawater@gmail.com>
17135 * tracepoint.c (tp_printf): New function.
17136 (eval_agent_expr): Handle gdb_agent_op_printf.
17137
17138 2011-02-21 Hui Zhu <teawater@gmail.com>
17139
17140 * tracepoint.c (tp_printf): New function.
17141 (eval_agent_expr): Handle gdb_agent_op_printf.
17142
17143 2011-02-18 Tom Tromey <tromey@redhat.com>
17144
17145 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
17146 (tracepoint.o): Likewise.
17147 * tracepoint.c (enum gdb_agent_op): Use ax.def.
17148 (gdb_agent_op_names): Likewise.
17149
17150 2011-02-18 Tom Tromey <tromey@redhat.com>
17151
17152 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
17153 gdb_agent_op_rot>: New constants.
17154 (gdb_agent_op_names): Add pick and roll.
17155 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
17156 cases.
17157
17158 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
17159
17160 * aclocal.m4: Regenerated with aclocal-1.11.1.
17161
17162 2011-02-14 Pedro Alves <pedro@codesourcery.com>
17163
17164 * server.c (handle_qxfer_traceframe_info): New.
17165 (qxfer_packets): Register "traceframe-info".
17166 (handle_query): Report support for qXfer:traceframe-info:read+.
17167 * tracepoint.c (match_blocktype): New.
17168 (traceframe_find_block_type): Rename to ...
17169 (traceframe_walk_blocks): ... this. Add callback filter argument,
17170 and use it.
17171 (traceframe_find_block_type): New, reimplemented on top of
17172 traceframe_walk_blocks.
17173 (build_traceframe_info_xml): New.
17174 (traceframe_read_info): New.
17175 * server.h (traceframe_read_info): Declare.
17176
17177 2011-02-11 Yao Qi <yao@codesourcery.com>
17178
17179 * configure.ac: Call AC_PROG_RANLIB.
17180 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
17181 * configure: Regenerate.
17182
17183 2011-02-07 Pedro Alves <pedro@codesourcery.com>
17184
17185 * server.c (gdb_read_memory): Change return semantics to allow
17186 partial transfers.
17187 (handle_search_memory_1): Adjust.
17188 (process_serial_event) <'m' packet>: Handle partial transfers.
17189 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
17190
17191 2011-01-28 Pedro Alves <pedro@codesourcery.com>
17192
17193 * regcache.c (init_register_cache): Initialize
17194 regcache->register_status.
17195 (free_register_cache): Release regcache->register_status.
17196 (regcache_cpy): Copy register_status.
17197 (registers_to_string): Print 'x's for unavailable registers.
17198 (supply_register): Mark the register's status valid or
17199 unavailable, depending on whether a buffer was passed in or not.
17200 (supply_register_zeroed): New.
17201 (supply_regblock): Mark the registers' status valid or
17202 unavailable, depending on whether a buffer was passed in or not.
17203 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
17204 (struct regcache): New `register_status' field.
17205 (supply_register_zeroed): Declare.
17206 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
17207 supply_register_zeroed, rather than passing a NULL buffer to
17208 supply_register.
17209 * tracepoint.c (fetch_traceframe_registers): Update comment.
17210
17211 2011-01-28 Pedro Alves <pedro@codesourcery.com>
17212
17213 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
17214 buffer explicit.
17215
17216 2011-01-25 Pedro Alves <pedro@codesourcery.com>
17217
17218 * server.h (decode_xfer_write): Change prototype.
17219 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
17220 and don't extract the annex here.
17221 * server.c (decode_xfer_read): Remove `annex' parameter,
17222 and don't extract the annex here.
17223 (decode_xfer): New.
17224 (struct qxfer): New.
17225 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
17226 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
17227 (handle_qxfer_statictrace): New functions, abstracted out from
17228 handle_query, and made to use the struct qxfer interface.
17229 (handle_threads_qxfer_proper): Rename to ...
17230 (handle_qxfer_threads_proper): ... this.
17231 (handle_threads_qxfer): Rename to ...
17232 (handle_qxfer_threads): ... this. Adjust.
17233 (qxfer_packets): New array.
17234 (handle_qxfer): New function.
17235 (handle_query): Use handle_qxfer.
17236
17237 2011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
17238
17239 * gdbreplay.c: Shorten lines of >= 80 columns.
17240 * linux-low.c: Ditto.
17241 * linux-ppc-low.c: Ditto.
17242 * linux-s390-low.c: Ditto.
17243 * linux-sparc-low.c: Ditto.
17244 * linux-x86-low.c: Ditto.
17245 * linux-xtensa-low.c: Ditto.
17246 * mem-break.c: Ditto.
17247 * nto-low.c: Ditto.
17248 * regcache.h: Ditto.
17249 * remote-utils.c: Ditto.
17250 * server.c: Ditto.
17251 * server.h: Ditto.
17252 * thread-db.c: Ditto.
17253 * tracepoint.c: Ditto.
17254 * utils.c: Ditto.
17255 * win32-low.h: Ditto.
17256
17257 2011-01-05 Joel Brobecker <brobecker@adacore.com>
17258
17259 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
17260 update.
17261
17262 2011-01-01 Joel Brobecker <brobecker@adacore.com>
17263
17264 * server.c (gdbserver_version): Update copyright year in version
17265 output.
17266 * gdbreplay.c (gdbreplay_version): Ditto.
17267
17268 2010-12-29 Jie Zhang <jie.zhang@analog.com>
17269
17270 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
17271 * linux-bfin-low.c: New file.
17272 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
17273 PT_DATA_ADDR for BFIN targets.
17274 * Makefile.in (SFILES): Add linux-bfin-low.c.
17275 (clean): Remove reg-bfin.c.
17276 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
17277 * README: Mention supported Blackfin targets.
17278
17279 2010-12-23 Mike Frysinger <vapier@gentoo.org>
17280
17281 * .gitignore: New file.
17282
17283 2010-11-16 Mike Frysinger <vapier@gentoo.org>
17284
17285 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
17286
17287 2010-10-22 Jie Zhang <jie@codesourcery.com>
17288
17289 * Makefile.in: Add FLAGS_TO_PASS variable.
17290 (install): Remove dependency of install-only and recursively
17291 invoke make for install-only.
17292
17293 2010-10-04 Doug Evans <dje@google.com>
17294
17295 * Makefile.in (uninstall): Use $(DESTDIR).
17296
17297 2010-09-24 Pedro Alves <pedro@codesourcery.com>
17298
17299 PR gdb/11842
17300
17301 * linux-x86-low.c (compat_siginfo_from_siginfo)
17302 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
17303 si_code is < 0. Check for si_code == SI_TIMER before checking for
17304 si_code < 0.
17305
17306 2010-09-13 Joel Brobecker <brobecker@adacore.com>
17307
17308 * lynx-i386-low.c: New file.
17309 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
17310
17311 2010-09-13 Joel Brobecker <brobecker@adacore.com>
17312
17313 * lynx-low.c (ptrace_request_to_str): Remove handling for
17314 request values that have been removed in LynxOS 5.x.
17315
17316 2010-09-13 Joel Brobecker <brobecker@adacore.com>
17317
17318 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
17319 <ptrace.h>
17320
17321 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
17322
17323 * configure.ac: Add --enable-inprocess-agent option.
17324 * configure: Rebuilt.
17325
17326 2010-09-06 Yao Qi <yao@codesourcery.com>
17327
17328 * linux-low.c (linux_kill): Remove unused variable.
17329 (linux_stabilize_threads): Likewise.
17330 * server.c (start_inferior): Likewise.
17331 (queue_stop_reply_callback): Likewise.
17332 * tracepoint.c (do_action_at_tracepoint): Likewise.
17333
17334 2010-09-06 Yao Qi <yao@codesourcery.com>
17335
17336 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
17337 on return.
17338
17339 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
17340
17341 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
17342
17343 2010-09-06 Pedro Alves <pedro@codesourcery.com>
17344
17345 * Makefile.in (install-only): Replace $IPA_DEPFILES with
17346 "$(IPA_DEPFILES)".
17347
17348 2010-09-01 Joel Brobecker <brobecker@adacore.com>
17349
17350 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
17351 gdbserver/lynx-ppc-low.c: New files.
17352 * Makefile.in (lynx_low_h): New variable.
17353 (lynx-low.o, lynx-ppc-low.o): New rules.
17354 * configure.ac: On LynxOS, link with -lnetinet.
17355 * configure.srv: Add handling of powerpc-*-lynxos* targets.
17356 * configure: regenerate.
17357
17358 2010-09-01 Joel Brobecker <brobecker@adacore.com>
17359
17360 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
17361 * configure.ac: Add check for vasprintf and vsnprintf.
17362 * configure, config.in: Regenerate.
17363 * server.h (vasprintf, vsnprintf): Add conditional declarations.
17364
17365 2010-09-01 Joel Brobecker <brobecker@adacore.com>
17366
17367 * gdbreplay.c: Move include of alloca.h up, next to include of
17368 malloc.h.
17369 * server.h: Add include of malloc.h.
17370 * mem-break.c: Remove include of malloc.h.
17371 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
17372
17373 2010-09-01 Joel Brobecker <brobecker@adacore.com>
17374
17375 * Makefile.in (memmem.o): Build with -Wno-error.
17376
17377 2010-09-01 Joel Brobecker <brobecker@adacore.com>
17378
17379 * utils.c (xsnprintf): Make non-static.
17380 * server.h: Add xsnprintf declaration.
17381 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
17382 replace calls to snprintf by calls to xsnprintf throughout.
17383
17384 2010-09-01 Joel Brobecker <brobecker@adacore.com>
17385
17386 * configure.ac: Add configure check for alloca.
17387 * configure, config.in: Regenerate.
17388 * server.h: Include alloca.h if it exists.
17389 * gdbreplay.c: Include alloca.h if it exists.
17390
17391 2010-08-28 Pedro Alves <pedro@codesourcery.com>
17392
17393 * linux-low.c (__SIGRTMIN): Define if not already defined.
17394 (linux_create_inferior): Check for __ANDROID__ rather than
17395 __SIGRTMIN.
17396 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
17397 are already deferred.
17398 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
17399 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
17400 stopped and already has a pending signal to report.
17401 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
17402 a pending signal to report or is moving out of a jump pad.
17403 (linux_init_signals): Check for __ANDROID__ rather than
17404 __SIGRTMIN.
17405
17406 2010-08-28 Pedro Alves <pedro@codesourcery.com>
17407
17408 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
17409 debug_threads check. Avoid a linear search when not doing debug
17410 output.
17411
17412 2010-08-27 Pedro Alves <pedro@codesourcery.com>
17413
17414 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
17415 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
17416 (struct file_handler) <fd>: Change type to gdb_fildes_t.
17417 (process_event): Change local fd's type to gdb_fildes_t.
17418 (create_file_handler): Adjust prototype.
17419 (delete_file_handler): Adjust prototype.
17420 (handle_file_event): Adjust prototype. Use pfildes.
17421 (create_file_event): Adjsut prototype.
17422 * remote-utils.c (remote_desc, listen_desc): Change type to
17423 gdb_fildes_t.
17424 * server.h: New gdb_fildes_t typedef.
17425 [USE_WIN32API]: Include winsock2.h.
17426 (delete_file_handler, add_file_handler): Adjust prototypes.
17427 (pfildes): Declare.
17428 * utils.c (pfildes): New.
17429
17430 2010-08-27 Pedro Alves <pedro@codesourcery.com>
17431
17432 * configure.ac (build_warnings): Add -Wno-char-subscripts.
17433 * configure: Regenerate.
17434
17435 2010-08-27 Pedro Alves <pedro@codesourcery.com>
17436
17437 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
17438 (linux_done_accessing_memory): ... this.
17439 (linux_target_ops): Adjust.
17440 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
17441 * nto-low.c (nto_target_ops): Adjust comment.
17442 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
17443 * spu-low.c (spu_target_ops): Adjust comment.
17444 * target.h (target_ops): Rename unprepare_to_access_memory field
17445 to done_accessing_memory.
17446 (unprepare_to_access_memory): Rename to ...
17447 (done_accessing_memory): ... this.
17448
17449 2010-08-26 Pedro Alves <pedro@codesourcery.com>
17450
17451 * linux-low.c (linux_prepare_to_access_memory): New.
17452 (linux_unprepare_to_access_memory): New.
17453 (linux_target_ops): Install them.
17454 * server.c (read_memory): Rename to ...
17455 (gdb_read_memory): ... this. Use
17456 prepare_to_access_memory/prepare_to_access_memory.
17457 (write_memory): Rename to ...
17458 (gdb_write_memory): ... this. Use
17459 prepare_to_access_memory/prepare_to_access_memory.
17460 (handle_search_memory_1): Adjust.
17461 (process_serial_event): Adjust.
17462 * target.h (struct target_ops): New fields
17463 prepare_to_access_memory and unprepare_to_access_memory.
17464 (prepare_to_access_memory, unprepare_to_access_memory): New.
17465 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
17466 prepare_to_access_memory/prepare_to_access_memory.
17467 * nto-low.c (nto_target_ops): Adjust.
17468 * spu-low.c (spu_target_ops): Adjust.
17469 * win32-low.c (win32_target_ops): Adjust.
17470
17471 2010-08-26 Pedro Alves <pedro@codesourcery.com>
17472
17473 * Makefile.in (WARN_CFLAGS): Get it from configure.
17474 (WERROR_CFLAGS): New.
17475 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
17476 * configure.ac: Introduce --enable-werror, which adds -Werror to
17477 the compiler command line. Enabled by default. Disable with
17478 --disable-werror. Add -Wdeclaration-after-statement
17479 Wpointer-arith and -Wformat-nonliteral to warning flags.
17480 * configure: Regenerate.
17481
17482 2010-08-26 Pedro Alves <pedro@codesourcery.com>
17483
17484 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
17485
17486 2010-08-26 Pedro Alves <pedro@codesourcery.com>
17487
17488 * gdbreplay.c (remote_error): New.
17489 (gdbchar): New.
17490 (expect): Use gdbchar. Check for error reading from GDB.
17491 Clarify sync error output.
17492 (play): Check for errors writing to GDB.
17493 * linux-low.c (sigchld_handler): Really ignore `write' errors.
17494 * remote-utils.c (getpkt): Check for errors writing to the remote
17495 descriptor.
17496
17497 2010-08-25 Pedro Alves <pedro@codesourcery.com>
17498
17499 * linux-low.c (linux_wait_1): Move non-debugging code out of
17500 `debug_threads' control.
17501
17502 2010-08-25 Pedro Alves <pedro@codesourcery.com>
17503
17504 * linux-low.c (linux_wait_1): Don't set last_status here.
17505 * server.c (push_event, queue_stop_reply_callback): Assert we're
17506 not pushing a TARGET_WAITKIND_IGNORE event.
17507 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
17508 (myresume, handle_target_event): Set the thread's last_resume_kind
17509 and last_status from the target returned status.
17510
17511 2010-08-25 Pedro Alves <pedro@codesourcery.com>
17512
17513 PR threads/10729
17514
17515 * linux-x86-low.c (update_debug_registers_callback): New.
17516 (i386_dr_low_set_addr): Use it.
17517 (i386_dr_low_get_addr): New.
17518 (i386_dr_low_set_control): Use update_debug_registers_callback.
17519 (i386_dr_low_get_control): New.
17520 (i386_dr_low_get_status): Adjust.
17521 * linux-low.c (linux_stop_lwp): New.
17522 * linux-low.h (linux_stop_lwp): Declare.
17523
17524 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
17525 argument instead of a i386_debug_reg_state.
17526 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
17527 a i386_debug_reg_state.
17528 (i386_insert_aligned_watchpoint): Adjust.
17529 (i386_remove_aligned_watchpoint): Adjust.
17530 (i386_low_stopped_data_address): Read the debug registers from the
17531 inferior instead of from the mirrors.
17532 * i386-low.h (struct i386_debug_reg_state): Extend comment.
17533 (i386_dr_low_get_addr): Declare.
17534 (i386_dr_low_get_control): Declare.
17535 (i386_dr_low_get_status): Change prototype.
17536
17537 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
17538 (i386_dr_low_get_addr): New.
17539 (i386_dr_low_get_control): New.
17540 (i386_dr_low_get_status): Adjust prototype. Return
17541 dr_status_mirror.
17542 (i386_initial_stuff): Clear dr_status_mirror and
17543 dr_control_mirror.
17544 (i386_get_thread_context): Adjust.
17545 (i386_set_thread_context): Adjust.
17546 (i386_thread_added): Adjust.
17547
17548 2010-08-24 Pedro Alves <pedro@codesourcery.com>
17549
17550 * linux-low.h (linux_thread_area): Delete declaration.
17551
17552 2010-08-11 Thomas Schwinge <thomas@codesourcery.com>
17553
17554 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
17555 after its termination.
17556
17557 2010-08-09 Pedro Alves <pedro@codesourcery.com>
17558
17559 * linux-low.c (gdb_wants_lwp_stopped): Delete.
17560 (gdb_wants_all_stopped): Delete.
17561 (linux_wait_1): Don't call them.
17562 * server.c (handle_v_cont): Tag all threads as want-stopped.
17563 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
17564 stopped as "client-wants-stopped".
17565
17566 2010-07-31 Pedro Alves <pedro@codesourcery.com>
17567
17568 * Makefile.in (signals_h): New.
17569 (server_h): Depend on it.
17570 (server.o): Don't depend on $(signals_def).
17571 (signals.o): Depend on $(signals_def).
17572
17573 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
17574
17575 * Makefile.in (signals_def): New.
17576 (server_h): Append include/gdb/signals.h and signals_def.
17577 (server.o): Append signals_def.
17578
17579 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
17580
17581 * server.c (handle_target_event): Use target_signal_to_host for
17582 resume_info.sig initialization.
17583 * target.h (struct thread_resume) <sig>: New comment.
17584
17585 2010-07-20 Ozkan Sezer <sezeroz@gmail.com>
17586
17587 * server.c (handle_query): strcpy() the returned string from paddress()
17588 instead of sprintf().
17589 * utils.c (paddress): Return phex_nz().
17590
17591 2010-07-07 Joel Brobecker <brobecker@adacore.com>
17592
17593 * server.c (handle_v_cont): Call mourn_inferior if process
17594 just exited.
17595 (myresume): Likewise.
17596
17597 2010-07-01 Pedro Alves <pedro@codesourcery.com>
17598
17599 Static tracepoints, and integration with UST.
17600
17601 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
17602 * mem-break.c (uninsert_all_breakpoints)
17603 (reinsert_all_breakpoints): New.
17604 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
17605 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
17606 (gdb_agent_ust_loaded, helper_thread_id)
17607 (gdb_agent_helper_thread_id): New macros.
17608 (struct ipa_sym_addresses): Add addr_ust_loaded,
17609 addr_helper_thread_id, addr_cmd_buf.
17610 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
17611 (in_process_agent_loaded_ust): New.
17612 (write_e_ust_not_loaded): New.
17613 (maybe_write_ipa_ust_not_loaded): New.
17614 (struct collect_static_trace_data_action): New.
17615 (enum tracepoint_type) <static_tracepoint>: New.
17616 (struct tracepoint) <handle>: Mention static tracepoints.
17617 (struct static_tracepoint_ctx): New.
17618 (CMD_BUF_SIZE): New.
17619 (add_tracepoint_action): Handle static tracepoint actions.
17620 (unprobe_marker_at): New.
17621 (clear_installed_tracepoints): Handle static tracepoints.
17622 (cmd_qtdp): Handle static tracepoints.
17623 (probe_marker_at): New.
17624 (cmd_qtstart): Handle static tracepoints.
17625 (response_tracepoint): Handle static tracepoints.
17626 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
17627 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
17628 (get_context_regcache): Handle static tracepoints.
17629 (do_action_at_tracepoint): Handle static tracepoint actions.
17630 (traceframe_find_block_type): Handle static trace data blocks.
17631 (traceframe_read_sdata): New.
17632 (download_tracepoints): Download static tracepoint actions.
17633 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
17634 (GDB_PROBE_NAME): New.
17635 (ust_ops): New.
17636 (GET_UST_SYM): New.
17637 (USTF): New.
17638 (dlsym_ust): New.
17639 (ust_marker_to_static_tracepoint): New.
17640 (gdb_probe): New.
17641 (collect_ust_data_at_tracepoint): New.
17642 (gdb_ust_probe): New.
17643 (UNIX_PATH_MAX, SOCK_DIR): New.
17644 (gdb_ust_connect_sync_socket): New.
17645 (resume_thread, stop_thread): New.
17646 (run_inferior_command): New.
17647 (init_named_socket): New.
17648 (gdb_ust_socket_init): New.
17649 (cstr_to_hexstr): New.
17650 (next_st): New.
17651 (first_marker, next_marker): New.
17652 (response_ust_marker): New.
17653 (cmd_qtfstm, cmd_qtsstm): New.
17654 (unprobe_marker_at, probe_marker_at): New.
17655 (cmd_qtstmat, gdb_ust_thread): New.
17656 (gdb_ust_init): New.
17657 (initialize_tracepoint_ftlib): Call gdb_ust_init.
17658 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
17659 (ST_REGENTRY): New.
17660 (x86_64_st_collect_regmap): New.
17661 (X86_64_NUM_ST_COLLECT_GREGS): New.
17662 (AMD64_RIP_REGNUM): New.
17663 (supply_static_tracepoint_registers): New.
17664 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
17665 (ST_REGENTRY): New.
17666 (i386_st_collect_regmap): New.
17667 (i386_NUM_ST_COLLECT_GREGS): New.
17668 (supply_static_tracepoint_registers): New.
17669 * server.c (handle_query): Handle qXfer:statictrace:read.
17670 <qSupported>: Report support for StaticTracepoints, and
17671 qXfer:statictrace:read features.
17672 * server.h (traceframe_read_sdata)
17673 (supply_static_tracepoint_registers): Declare.
17674 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
17675 (unpack_varlen_hex): Include in IPA build.
17676 * Makefile.in (ustlibs, ustinc): New.
17677 (IPA_OBJS): Add remote-utils-ipa.o.
17678 ($(IPA_LIB)): Link -ldl and -lpthread.
17679 (UST_CFLAGS): New.
17680 (IPAGENT_CFLAGS): Add UST_CFLAGS.
17681 * config.in, configure: Regenerate.
17682
17683 2010-06-20 Ian Lance Taylor <iant@google.com>
17684 Pedro Alves <pedro@codesourcery.com>
17685
17686 * linux-x86-low.c (always_true): Delete.
17687 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
17688 trying to fool the compiler with always_true.
17689
17690 2010-06-20 Pedro Alves <pedro@codesourcery.com>
17691
17692 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
17693 conditions in gdbserver.
17694
17695 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
17696
17697 * spu-low.c (spu_read_memory): Wrap around local store limit.
17698 (spu_write_memory): Likewise.
17699
17700 2010-06-15 Pedro Alves <pedro@codesourcery.com>
17701
17702 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
17703 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
17704 LONGEST uses.
17705 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
17706 uses.
17707 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
17708 uses with LONGEST uses.
17709
17710 2010-06-14 Stan Shebs <stan@codesourcery.com>
17711 Pedro Alves <pedro@codesourcery.com>
17712
17713 Bytecode compiler.
17714
17715 * linux-x86-low.c: Include limits.h.
17716 (add_insns): New.
17717 (always_true): New.
17718 (EMIT_ASM): New.
17719 (EMIT_ASM32): New.
17720 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
17721 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
17722 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
17723 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
17724 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
17725 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
17726 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
17727 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
17728 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
17729 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
17730 (amd64_emit_void_call_2): New.
17731 (amd64_emit_ops): New.
17732 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
17733 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
17734 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
17735 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
17736 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
17737 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
17738 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
17739 (i386_emit_call, i386_emit_reg, i386_emit_pop)
17740 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
17741 (i386_emit_stack_adjust, i386_emit_int_call_1)
17742 (i386_emit_void_call_2): New.
17743 (i386_emit_ops): New.
17744 (x86_emit_ops): New.
17745 (the_low_target): Install x86_emit_ops.
17746 * server.h (struct emit_ops): New.
17747 (get_raw_reg_func_addr): Declare.
17748 (current_insn_ptr, emit_error): Declare.
17749 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
17750 (set_trace_state_variable_value): New defines.
17751 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
17752 addr_get_trace_state_variable_value and
17753 addr_set_trace_state_variable_value.
17754 (symbol_list): New fields for get_raw_reg,
17755 get_trace_state_variable_value and set_trace_state_variable_value.
17756 (condfn): New typedef.
17757 (struct tracepoint): New field `compiled_cond'.
17758 (do_action_at_tracepoint): Clear compiled_cond.
17759 (get_trace_state_variable_value, set_trace_state_variable_value):
17760 Export in the IPA.
17761 (condition_true_at_tracepoint): If there's a compiled condition,
17762 run that.
17763 (current_insn_ptr, emit_error): New globals.
17764 (struct bytecode_address): New.
17765 (get_raw_reg_func_addr): New.
17766 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
17767 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
17768 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
17769 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
17770 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
17771 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
17772 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
17773 (compile_tracepoint_condition, compile_bytecodes): New.
17774 * target.h (emit_ops): Forward declare.
17775 (struct target_ops): New field emit_ops.
17776 (target_emit_ops): New.
17777 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
17778 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
17779 * linux-low.c (linux_emit_ops): New.
17780 (linux_target_ops): Install it.
17781 * linux-low.h (struct linux_target_ops): New field emit_ops.
17782
17783 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
17784
17785 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
17786 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
17787
17788 2010-06-01 Pedro Alves <pedro@codesourcery.com>
17789 Stan Shebs <stan@codesourcery.com>
17790
17791 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
17792 (all): Depend on $(extra_libraries).
17793 (install-only): Install the IPA.
17794 (IPA_OBJS, IPA_LIB): New.
17795 (clean): Remove the IPA lib.
17796 (IPAGENT_CFLAGS): New.
17797 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
17798 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
17799 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
17800 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
17801 * configure.ac: Check for atomic builtins support in the compiler.
17802 (IPA_DEPFILES, extra_libraries): Define.
17803 * configure.srv (ipa_obj): Add description.
17804 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
17805 (i[34567]86-*-linux*): Set ipa_obj.
17806 (x86_64-*-linux*): Set ipa_obj.
17807 * linux-low.c (stabilizing_threads): New.
17808 (supports_fast_tracepoints): New.
17809 (linux_detach): Stabilize threads before detaching.
17810 (handle_tracepoints): Handle internal tracing breakpoints. Assert
17811 the lwp is either not stabilizing, or is moving out of a jump pad.
17812 (linux_fast_tracepoint_collecting): New.
17813 (maybe_move_out_of_jump_pad): New.
17814 (enqueue_one_deferred_signal): New.
17815 (dequeue_one_deferred_signal): New.
17816 (linux_wait_for_event_1): If moving out of a jump pad, defer
17817 pending signals to later.
17818 (linux_stabilize_threads): New.
17819 (linux_wait_1): Check if threads need moving out of jump pads, and
17820 do it if so.
17821 (stuck_in_jump_pad_callback): New.
17822 (move_out_of_jump_pad_callback): New.
17823 (lwp_running): New.
17824 (linux_resume_one_lwp): Handle moving out of jump pads.
17825 (linux_set_resume_request): Dequeue deferred signals.
17826 (need_step_over_p): Also step over fast tracepoint jumps.
17827 (start_step_over): Also uninsert fast tracepoint jumps.
17828 (finish_step_over): Also reinsert fast tracepoint jumps.
17829 (linux_install_fast_tracepoint_jump): New.
17830 (linux_target_ops): Install linux_stabilize_threads and
17831 linux_install_fast_tracepoint_jump_pad.
17832 * linux-low.h (linux_target_ops) <get_thread_area,
17833 install_fast_tracepoint_jump_pad>: New fields.
17834 (struct lwp_info) <collecting_fast_tracepoint,
17835 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
17836 (linux_get_thread_area): Declare.
17837 * linux-x86-low.c (jump_insn): New.
17838 (x86_get_thread_area): New.
17839 (append_insns): New.
17840 (push_opcode): New.
17841 (amd64_install_fast_tracepoint_jump_pad): New.
17842 (i386_install_fast_tracepoint_jump_pad): New.
17843 (x86_install_fast_tracepoint_jump_pad): New.
17844 (the_low_target): Install x86_get_thread_area and
17845 x86_install_fast_tracepoint_jump_pad.
17846 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
17847 (struct fast_tracepoint_jump): New.
17848 (fast_tracepoint_jump_insn): New.
17849 (fast_tracepoint_jump_shadow): New.
17850 (find_fast_tracepoint_jump_at): New.
17851 (fast_tracepoint_jump_here): New.
17852 (delete_fast_tracepoint_jump): New.
17853 (set_fast_tracepoint_jump): New.
17854 (uninsert_fast_tracepoint_jumps_at): New.
17855 (reinsert_fast_tracepoint_jumps_at): New.
17856 (set_breakpoint_at): Use write_inferior_memory.
17857 (uninsert_raw_breakpoint): Use write_inferior_memory.
17858 (check_mem_read): Mask out fast tracepoint jumps.
17859 (check_mem_write): Mask out fast tracepoint jumps.
17860 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
17861 (set_fast_tracepoint_jump): Declare.
17862 (delete_fast_tracepoint_jump)
17863 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
17864 (reinsert_fast_tracepoint_jumps_at): Declare.
17865 * regcache.c: Don't compile many functions when building the
17866 in-process agent library.
17867 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
17868 the register buffer in the heap.
17869 (free_register_cache): If the register buffer isn't owned by the
17870 regcache, don't free it.
17871 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
17872 pre-existing register caches.
17873 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
17874 type.
17875 (convert_ascii_to_int): : Constify `from' parameter type.
17876 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
17877 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
17878 the needed buffer in-place.
17879 (relocate_instruction): New.
17880 * server.c (handle_query) <qSymbols>: If the target supports
17881 tracepoints, give it a chance of looking up symbols. Report
17882 support for fast tracepoints.
17883 (handle_status): Stabilize threads.
17884 (process_serial_event): Adjust.
17885 * server.h (struct fast_tracepoint_jump): Forward declare.
17886 (struct process_info) <fast_tracepoint_jumps>: New field.
17887 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
17888 (decode_X_packet, decode_M_packet): Adjust.
17889 (relocate_instruction): Declare.
17890 (in_process_agent_loaded): Declare.
17891 (tracepoint_look_up_symbols): Declare.
17892 (struct fast_tpoint_collect_status): Declare.
17893 (fast_tracepoint_collecting): Declare.
17894 (force_unlock_trace_buffer): Declare.
17895 (handle_tracepoint_bkpts): Declare.
17896 (initialize_low_tracepoint)
17897 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
17898 * target.h (struct target_ops) <stabilize_threads,
17899 install_fast_tracepoint_jump_pad>: New fields.
17900 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
17901 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
17902 [HAVE_STDINT_H]: Include stdint.h.
17903 (trace_debug_1): Rename to ...
17904 (trace_vdebug): ... this.
17905 (trace_debug): Rename to ...
17906 (trace_debug_1): ... this. Add `level' parameter.
17907 (trace_debug): New.
17908 (ATTR_USED, ATTR_NOINLINE): New.
17909 (IP_AGENT_EXPORT): New.
17910 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
17911 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
17912 (about_to_request_buffer_space, trace_buffer_is_full)
17913 (stopping_tracepoint, expr_eval_result, error_tracepoint)
17914 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
17915 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
17916 (traceframe_write_count, traceframes_created)
17917 (trace_state_variables)
17918 New renaming defines.
17919 (struct ipa_sym_addresses): New.
17920 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
17921 (symbol_list): New.
17922 (ipa_sym_addrs): New.
17923 (all_tracepoint_symbols_looked_up): New.
17924 (in_process_agent_loaded): New.
17925 (write_e_ipa_not_loaded): New.
17926 (maybe_write_ipa_not_loaded): New.
17927 (tracepoint_look_up_symbols): New.
17928 (debug_threads) [IN_PROCESS_AGENT]: New.
17929 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
17930 (UNKNOWN_SIDE_EFFECTS): New.
17931 (stop_tracing): New.
17932 (flush_trace_buffer): New.
17933 (stop_tracing_bkpt): New.
17934 (flush_trace_buffer_bkpt): New.
17935 (read_inferior_integer): New.
17936 (read_inferior_uinteger): New.
17937 (read_inferior_data_pointer): New.
17938 (write_inferior_data_pointer): New.
17939 (write_inferior_integer): New.
17940 (write_inferior_uinteger): New.
17941 (struct collect_static_trace_data_action): Delete.
17942 (enum tracepoint_type): New.
17943 (struct tracepoint) <type>: New field `type'.
17944 <actions_str, step_actions, step_actions_str>: Only include in
17945 GDBserver.
17946 <orig_size, obj_addr_on_target, adjusted_insn_addr>
17947 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
17948 (tracepoints): Use IP_AGENT_EXPORT.
17949 (last_tracepoint): Don't include in the IPA.
17950 (stopping_tracepoint): Use IP_AGENT_EXPORT.
17951 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
17952 (alloced_trace_state_variables): New.
17953 (trace_state_variables): Use IP_AGENT_EXPORT.
17954 (traceframe_t): Delete unused variable.
17955 (circular_trace_buffer): Don't include in the IPA.
17956 (trace_buffer_start): Delete.
17957 (struct trace_buffer_control): New.
17958 (trace_buffer_free): Delete.
17959 (struct ipa_trace_buffer_control): New.
17960 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
17961 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
17962 New.
17963 (trace_buffer_ctrl): New.
17964 (TRACE_BUFFER_CTRL_CURR): New.
17965 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
17966 Reimplement as macros.
17967 (trace_buffer_wrap): Delete.
17968 (traceframe_write_count, traceframe_read_count)
17969 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
17970 (struct tracepoint_hit_ctx) <type>: New field.
17971 (struct fast_tracepoint_ctx): New.
17972 (memory_barrier): New.
17973 (cmpxchg): New.
17974 (record_tracepoint_error): Update atomically in the IPA.
17975 (clear_inferior_trace_buffer): New.
17976 (about_to_request_buffer_space): New.
17977 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
17978 updating the same buffer.
17979 (add_tracepoint): Default the tracepoint's type to trap
17980 tracepoint, and orig_size to -1.
17981 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
17982 internal variables.
17983 (create_trace_state_variable): New parameter `gdb'. Handle it.
17984 (clear_installed_tracepoints): Clear fast tracepoint jumps.
17985 (cmd_qtdp): Handle fast tracepoints.
17986 (cmd_qtdv): Adjust.
17987 (max_jump_pad_size): New.
17988 (gdb_jump_pad_head): New.
17989 (get_jump_space_head): New.
17990 (claim_jump_space): New.
17991 (sort_tracepoints): New.
17992 (MAX_JUMP_SIZE): New.
17993 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
17994 IPA.
17995 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
17996 support. Upload fast traceframes, and delete internal IPA
17997 breakpoints.
17998 (stop_tracing_handler): New.
17999 (flush_trace_buffer_handler): New.
18000 (cmd_qtstop): Upload fast tracepoints.
18001 (response_tracepoint): Handle fast tracepoints.
18002 (tracepoint_finished_step): Upload fast traceframes. Set the
18003 tracepoint hit context's tracepoint type.
18004 (handle_tracepoint_bkpts): New.
18005 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
18006 type. Add comment about fast tracepoints.
18007 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
18008 non-existing action_str field.
18009 (get_context_regcache): Handle fast tracepoints.
18010 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
18011 to the regcache.
18012 (fast_tracepoint_from_jump_pad_address): New.
18013 (fast_tracepoint_from_ipa_tpoint_address): New.
18014 (collecting_t): New.
18015 (force_unlock_trace_buffer): New.
18016 (fast_tracepoint_collecting): New.
18017 (collecting): New.
18018 (gdb_collect): New.
18019 (write_inferior_data_ptr): New.
18020 (target_tp_heap): New.
18021 (target_malloc): New.
18022 (download_agent_expr): New.
18023 (UALIGN): New.
18024 (download_tracepoints): New.
18025 (download_trace_state_variables): New.
18026 (upload_fast_traceframes): New.
18027 (IPA_FIRST_TRACEFRAME): New.
18028 (IPA_NEXT_TRACEFRAME_1): New.
18029 (IPA_NEXT_TRACEFRAME): New.
18030 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
18031 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
18032 (gdb_jump_pad_buffer_end): New.
18033 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
18034 (initialize_tracepoint): Adjust.
18035 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
18036 buffer. Initialize the low module.
18037 * utils.c (PREFIX, TOOLNAME): New.
18038 (malloc_failure): Use PREFIX.
18039 (error): In the IPA, an error causes an exit.
18040 (fatal, warning): Use PREFIX.
18041 (internal_error): Use TOOLNAME.
18042 (NUMCELLS): Increase to 10.
18043 * configure, config.in: Regenerate.
18044
18045 2010-06-01 Pedro Alves <pedro@codesourcery.com>
18046
18047 * server.c (handle_query) <qSupported>: Do two passes over the
18048 qSupported string to avoid nesting strtok.
18049
18050 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
18051
18052 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
18053 (CDEPS): New.
18054 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
18055 -Wl,--dynamic-list.
18056 * configure: Regenerate.
18057 * proc-service.list: New.
18058
18059 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
18060
18061 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
18062 New comment.
18063
18064 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
18065
18066 * gdbreplay.c (remote_open): Check error return from socket() call by
18067 its equality to -1 not by it being negative.
18068 * remote-utils.c (remote_open): Likewise.
18069
18070 2010-05-23 Pedro Alves <pedro@codesourcery.com>
18071
18072 * config.h: Regenerate.
18073
18074 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
18075
18076 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
18077 doesn't provide PTRACE_GET_THREAD_AREA.
18078
18079 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
18080
18081 * linux-m68k-low.c: Include <asm/ptrace.h>
18082 (ps_get_thread_area): Implement.
18083
18084 2010-05-03 Doug Evans <dje@google.com>
18085
18086 * event-loop.c (struct callback_event): New struct.
18087 (callback_list): New global.
18088 (append_callback_event, delete_callback_event): New functions.
18089 (process_callback): New function.
18090 (start_event_loop): Call it.
18091 * remote-utils.c (NOT_SCHEDULED): Define.
18092 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
18093 moved out of readchar.
18094 (readchar): Rewrite. Call reschedule before returning.
18095 (reset_readchar): New function.
18096 (remote_close): Call it.
18097 (process_remaining, reschedule): New functions.
18098 * server.h (callback_handler_func): New typedef.
18099 (append_callback_event, delete_callback_event): Declare.
18100
18101 2010-05-03 Pedro Alves <pedro@codesourcery.com>
18102
18103 * proc-service.c (ps_pglobal_lookup): Use
18104 thread_db_look_up_one_symbol.
18105 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
18106 parameter. Use it instead of all_symbols_looked_up.
18107 * server.h (struct process_info) <all_symbols_looked_up>: Delete
18108 field.
18109 (all_symbols_looked_up): Don't declare.
18110 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
18111 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
18112 field.
18113 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
18114 Set all_symbols_looked_up here.
18115 (thread_db_look_up_one_symbol): New.
18116 (thread_db_get_tls_address): Adjust.
18117 (thread_db_load_search, try_thread_db_load_1): Always allocate the
18118 thread_db object on the heap, and tentatively set it in the
18119 process structure.
18120 (thread_db_init): Don't set all_symbols_looked_up here.
18121 * linux-low.h (thread_db_look_up_one_symbol): Declare.
18122
18123 2010-05-03 Pedro Alves <pedro@codesourcery.com>
18124
18125 * linux-low.c (linux_kill, linux_detach): Adjust.
18126 (status_pending_p_callback): Remove redundant statement. Check
18127 for !TARGET_WAITIKIND_IGNORE, instead of
18128 TARGET_WAITKIND_STOPPED.
18129 (handle_tracepoints): Make sure LWP is locked. Adjust.
18130 (linux_wait_for_event_1): Adjust.
18131 (linux_cancel_breakpoints): New.
18132 (unsuspend_one_lwp): New.
18133 (unsuspend_all_lwps): New.
18134 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
18135 (send_sigstop_callback): Change return type to int, add new
18136 `except' parameter and handle it.
18137 (suspend_and_send_sigstop_callback): New.
18138 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
18139 pass them down. If SUSPEND, also increment the lwp's suspend
18140 count.
18141 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
18142 (need_step_over_p): Don't consider suspended LWPs.
18143 (start_step_over): Adjust.
18144 (proceed_one_lwp): Change return type to int, add new `except'
18145 parameter and handle it.
18146 (unsuspend_and_proceed_one_lwp): New.
18147 (proceed_all_lwps): Use find_inferior instead of
18148 for_each_inferior.
18149 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
18150 also decrement the suspend count of LWPs. Pass `except' down,
18151 instead of hacking its suspend count.
18152 (linux_pause_all): Add `freeze' parameter. Adjust.
18153 (linux_unpause_all): New.
18154 (linux_target_ops): Install linux_unpause_all.
18155 * server.c (handle_status): Adjust.
18156 * target.h (struct target_ops): New fields `unpause_all' and
18157 `cancel_breakpoints'. Add new parameter to `pause_all'.
18158 (pause_all): Add new `freeze' parameter.
18159 (unpause_all): New.
18160 (cancel_breakpoints): New.
18161 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
18162 cancel breakpoints.
18163 (cmd_qtstart): Pause threads.
18164 (stop_tracing): Pause threads, and cancel breakpoints.
18165 * win32-low.c (win32_target_ops): Adjust.
18166
18167 2010-05-03 Pedro Alves <pedro@codesourcery.com>
18168
18169 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
18170 the inferior right away from here...
18171 (linux_wait_1): ... to here, and adjust to check the thread's
18172 last_resume_kind instead of the lwp's step or stop_expected flags.
18173
18174 2010-05-02 Pedro Alves <pedro@codesourcery.com>
18175
18176 * README: Use consistent `GDB' and `GDBserver' spellings.
18177
18178 2010-05-02 Pedro Alves <pedro@codesourcery.com>
18179
18180 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
18181 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
18182 (linux_detach_one_lwp): Assume the lwp is stopped.
18183 (any_thread_of): Delete.
18184 (linux_detach): Stop all lwps here. Don't blindly delete all
18185 breakpoints.
18186 (delete_lwp_callback): New.
18187 (linux_mourn): Delete all lwps of the process that is gone.
18188 (linux_wait_1): Don't delete the last lwp of the process here.
18189 * mem-break.h (mark_breakpoints_out): Declare.
18190 * mem-break.c (mark_breakpoints_out): New.
18191 (free_all_breakpoints): Use it.
18192 * server.c (handle_target_event): If the process is gone, mark
18193 breakpoints out.
18194 * thread-db.c (struct thread_db) <create_bp>: New field.
18195 (thread_db_enable_reporting): Fix prototype. Store a thread event
18196 breakpoint reference in the thread_db struct.
18197 (thread_db_load_search): Clear the thread_db object.
18198 (try_thread_db_load_1): Ditto.
18199 (switch_to_process): New.
18200 (disable_thread_event_reporting): Use it.
18201 (remove_thread_event_breakpoints): New.
18202 (thread_db_detach, thread_db_mourn): Use it.
18203
18204 2010-05-01 Pedro Alves <pedro@codesourcery.com>
18205
18206 * linux-low.c (linux_enable_event_reporting): New.
18207 (linux_wait_for_event_1, handle_extended_wait): Use it.
18208
18209 2010-04-30 Pedro Alves <pedro@codesourcery.com>
18210
18211 * linux-low.c (linux_kill_one_lwp, linux_kill)
18212 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
18213 (send_sigstop): Take an lwp_info as parameter instead. Queue a
18214 SIGSTOP even if the LWP is stopped.
18215 (send_sigstop_callback): New.
18216 (stop_all_lwps): Use send_sigstop_callback instead.
18217 (linux_resume_one_thread): Adjust.
18218 (proceed_one_lwp): Still proceed an LWP that the client has
18219 requested to stop, if we haven't reported it as stopped yet. Make
18220 sure that LWPs the client want stopped, have a pending SIGSTOP.
18221
18222 2010-04-26 Doug Evans <dje@google.com>
18223
18224 * server.c (handle_general_set): Make static.
18225
18226 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
18227 Print received char after testing for error/eof instead of before.
18228 (input_interrupt): Tweak comment.
18229
18230 2010-04-23 Doug Evans <dje@google.com>
18231
18232 * server.c (start_inferior): Print inferior argv if --debug.
18233
18234 2010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
18235
18236 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
18237 * nto-x86-low.c: Include server.h
18238
18239 2010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
18240
18241 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
18242 be consistent with other sources of this directory.
18243 (init_registers_amd64): Correct name of source file of this function
18244 in the comment.
18245
18246 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
18247
18248 * configure.srv (x86_64-*-mingw*): New configuration for Windows
18249 64-bit executables.
18250
18251 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
18252
18253 * win32-i386-low.c: Add 64-bit support.
18254 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
18255 (init_registers_amd64): Declare.
18256 (mappings): Add 64-bit version of array.
18257 (init_windows_x86): New function.
18258 (the_low_target): Change init_arch field to init_windows_x86.
18259
18260 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
18261
18262 * win32-low.c: Adapt to support also 64-bit architecture.
18263 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
18264 (get_image_name): Use SIZE_T type for local variable `done'.
18265 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
18266 (toolhelp_get_dll_name): Idem.
18267 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
18268 Use uintptr_t typecast to avoid warning.
18269 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
18270 (handle_exception): Use phex_nz to avoid warning.
18271 (win32_wait): Remove unused local variable `process'.
18272
18273 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
18274
18275 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
18276 `amd64-avx.o'.
18277
18278 2010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
18279
18280 * configure.ac: Use `ws2_32' library for srv_mingw.
18281 * configure: Regenerate.
18282 * gdbreplay.c: Include winsock2.h instead of winsock.h.
18283 * remote-utils.c: Likewise.
18284
18285 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
18286
18287 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
18288 if __x86_64__ is defined.
18289
18290 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
18291
18292 * configure: Regenerate.
18293
18294 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
18295
18296 * server.c (handle_query): Handle 'qGetTIBAddr' query.
18297 * target.h (target_ops): New get_tib_address field.
18298 * win32-low.h (win32_thread_info): Add thread_local_base field.
18299 * win32-low.c (child_add_thread): Add tlb argument.
18300 Set thread_local_base field to TLB.
18301 (get_child_debug_event): Adapt to child_add_thread change.
18302 (win32_get_tib_address): New function.
18303 (win32_target_ops): Set get_tib_address field to
18304 win32_get_tib_address.
18305 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
18306
18307 2010-04-12 Pedro Alves <pedro@codesourcery.com>
18308
18309 * linux-low.c (linux_mourn): Also remove the process.
18310 * server.c (handle_target_event): Don't remove the process here.
18311 * nto-low.c (nto_mourn): New.
18312 (nto_target_ops): Install it.
18313 * spu-low.c (spu_mourn): New.
18314 (spu_target_ops): Install it.
18315 * win32-low.c (win32_mourn): New.
18316 (win32_target_ops): Install it.
18317
18318 2010-04-12 Pedro Alves <pedro@codesourcery.com>
18319
18320 * server.h (buffer_xml_printf): Remove redundant `;'.
18321
18322 2010-04-12 Pedro Alves <pedro@codesourcery.com>
18323
18324 * regcache.c (set_register_cache): Invalidate regcaches before
18325 changing the register cache layout.
18326 (regcache_invalidate_one): Allow a NULL regcache.
18327 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
18328 regcaches before changing the register cache layout or the target
18329 regsets.
18330
18331 2010-04-12 H.J. Lu <hongjiu.lu@intel.com>
18332
18333 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
18334 variable warning on Linux/x86-64.
18335
18336 2010-04-11 Pedro Alves <pedro@codesourcery.com>
18337
18338 GDBserver disconnected tracing support.
18339
18340 * linux-low.c (linux_remove_process): Delete.
18341 (add_lwp): Don't set last_resume_kind here.
18342 (linux_kill): Use `mourn'.
18343 (linux_detach): Use `thread_db_detach', and `mourn'.
18344 (linux_mourn): New.
18345 (linux_attach_lwp_1): Adjust comment.
18346 (linux_attach): last_resume_kind moved the thread_info; adjust.
18347 (status_pending_p_callback): Adjust.
18348 (linux_wait_for_event_1): Adjust.
18349 (count_events_callback, select_singlestep_lwp_callback)
18350 (select_event_lwp_callback, cancel_breakpoints_callback)
18351 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
18352 (proceed_one_lwp): Adjust.
18353 (linux_async): Add debug output.
18354 (linux_thread_stopped): New.
18355 (linux_pause_all): New.
18356 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
18357 linux_pause_all.
18358 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
18359 (thread_db_free): Delete declaration.
18360 (thread_db_detach, thread_db_mourn): Declare.
18361 * thread-db.c (thread_db_init): Use thread_db_mourn.
18362 (thread_db_free): Delete, split in two.
18363 (disable_thread_event_reporting): New.
18364 (thread_db_detach): New.
18365 (thread_db_mourn): New.
18366
18367 * server.h (struct thread_info) <last_resume_kind>: New field.
18368 <attached>: Add comment.
18369 <gdb_detached>: New field.
18370 (handler_func): Change return type to int.
18371 (handle_serial_event, handle_target_event): Ditto.
18372 (gdb_connected): Declare.
18373 (tracing): Delete.
18374 (disconnected_tracing): Declare.
18375 (stop_tracing): Declare.
18376
18377 * server.c (handle_query) <qSupported>: Report support for
18378 disconnected tracing.
18379 (queue_stop_reply_callback): Account for running threads.
18380 (gdb_wants_thread_stopped): New.
18381 (gdb_wants_all_threads_stopped): New.
18382 (gdb_reattached_process): New.
18383 (handle_status): Clear the `gdb_detached' flag of all processes.
18384 In all-stop, stop all threads.
18385 (main): Be sure to leave tfind mode. Handle disconnected tracing.
18386 (process_serial_event): If the remote connection breaks, or if an
18387 exit was forced with "monitor exit", force an event loop exit.
18388 Handle disconnected tracing on detach.
18389 (handle_serial_event): Adjust.
18390 (handle_target_event): If GDB isn't connected, forward events back
18391 to the inferior, unless the last process exited, in which case,
18392 exit gdbserver. Adjust interface.
18393
18394 * remote-utils.c (remote_open): Don't block in accept. Instead
18395 register an event loop source on the listen socket file
18396 descriptor. Refactor bits into ...
18397 (listen_desc): ... this new global.
18398 (gdb_connected): ... this new function.
18399 (enable_async_notification): ... this new function.
18400 (handle_accept_event): ... this new function.
18401 (remote_close): Clear remote_desc.
18402
18403 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
18404
18405 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
18406 New fields.
18407 (mourn_inferior): Define.
18408 (target_process_qsupported): Avoid the dangling else problem.
18409 (thread_stopped): Define.
18410 (pause_all): Define.
18411 (target_waitstatus_to_string): Declare.
18412 * target.c (target_waitstatus_to_string): New.
18413
18414 * tracepoint.c (tracing): Make extern.
18415 (disconnected_tracing): New.
18416 (stop_tracing): Make extern. Handle tracing stops due to GDB
18417 disconnecting.
18418 (cmd_qtdisconnected): New.
18419 (cmd_qtstatus): Report disconnected tracing status in trace reply.
18420 (handle_tracepoint_general_set): Handle QTDisconnected.
18421
18422 * event-loop.c (event_handler_func): Change return type to int.
18423 (process_event): Bail out if the event handler wants the event
18424 loop to stop.
18425 (handle_file_event): Ditto.
18426 (start_event_loop): Bail out if the event handler wants the event
18427 loop to stop.
18428
18429 * nto-low.c (nto_target_ops): Adjust.
18430 * spu-low.c (spu_wait): Don't remove the process here.
18431 (spu_target_ops): Adjust.
18432 * win32-low.c (win32_wait): Don't remove the process here.
18433 (win32_target_ops): Adjust.
18434
18435 2010-04-11 Pedro Alves <pedro@codesourcery.com>
18436
18437 * regcache.c (realloc_register_cache): Invalidate inferior's
18438 regcache before recreating it.
18439
18440 2010-04-09 Pedro Alves <pedro@codesourcery.com>
18441
18442 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
18443
18444 2010-04-09 Stan Shebs <stan@codesourcery.com>
18445 Pedro Alves <pedro@codesourcery.com>
18446
18447 * server.h (LONGEST): New.
18448 (struct thread_info) <while_stepping>: New field.
18449 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
18450 Declare.
18451 (initialize_tracepoint, handle_tracepoint_general_set)
18452 (handle_tracepoint_query, tracepoint_finished_step)
18453 (tracepoint_was_hit, release_while_stepping_state_list):
18454 (current_traceframe): Declare.
18455 * server.c (handle_general_set): Handle tracepoint packets.
18456 (read_memory): New.
18457 (write_memory): New.
18458 (handle_search_memory_1): Use read_memory.
18459 (handle_query): Report support for conditional tracepoints, trace
18460 state variables, and tracepoint sources. Handle tracepoint
18461 queries.
18462 (main): Initialize the tracepoints module.
18463 (process_serial_event): Handle traceframe reads/writes.
18464
18465 * linux-low.c (handle_tracepoints): New.
18466 (linux_wait_1): Call it.
18467 (linux_resume_one_lwp): Handle while-stepping.
18468 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
18469 (linux_target_ops): Install them.
18470 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
18471 New field.
18472 * linux-x86-low.c (x86_supports_tracepoints): New.
18473 (the_low_target). Install it.
18474
18475 * mem-break.h (delete_breakpoint): Declare.
18476 * mem-break.c (delete_breakpoint): Make external.
18477
18478 * target.h (struct target_ops): Add `supports_tracepoints',
18479 `read_pc', and `write_pc' fields.
18480 (target_supports_tracepoints): Define.
18481 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
18482 (phex_nz): New.
18483
18484 * regcache.h (struct regcache) <registers_owned>: New field.
18485 (init_register_cache, regcache_cpy): Declare.
18486 (regcache_read_pc, regcache_write_pc): Declare.
18487 (register_cache_size): Declare.
18488 (supply_regblock): Declare.
18489 * regcache.c (init_register_cache): New.
18490 (new_register_cache): Use it.
18491 (regcache_cpy): New.
18492 (register_cache_size): New.
18493 (supply_regblock): New.
18494 (regcache_read_pc, regcache_write_pc): New.
18495
18496 * tracepoint.c: New.
18497
18498 * Makefile.in (OBS): Add tracepoint.o.
18499 (tracepoint.o): New rule.
18500
18501 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
18502
18503 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
18504 (i386-mmx.o): New.
18505 (i386-mmx.c): Likewise.
18506 (i386-mmx-linux.o): Likewise.
18507 (i386-mmx-linux.c): Likewise.
18508
18509 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
18510 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
18511 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
18512 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
18513
18514 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
18515 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
18516 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
18517
18518 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
18519
18520 * Makefile.in (clean): Updated.
18521 (i386-avx.o): New.
18522 (i386-avx.c): Likewise.
18523 (i386-avx-linux.o): Likewise.
18524 (i386-avx-linux.c): Likewise.
18525 (amd64-avx.o): Likewise.
18526 (amd64-avx.c): Likewise.
18527 (amd64-avx-linux.o): Likewise.
18528 (amd64-avx-linux.c): Likewise.
18529
18530 * configure.srv (srv_i386_regobj): Add i386-avx.o.
18531 (srv_i386_linux_regobj): Add i386-avx-linux.o.
18532 (srv_amd64_regobj): Add amd64-avx.o.
18533 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
18534 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
18535 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
18536 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
18537 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
18538 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
18539 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
18540
18541 * i387-fp.c: Include "i386-xstate.h".
18542 (i387_xsave): New.
18543 (i387_cache_to_xsave): Likewise.
18544 (i387_xsave_to_cache): Likewise.
18545 (x86_xcr0): Likewise.
18546
18547 * i387-fp.h (i387_cache_to_xsave): Likewise.
18548 (i387_xsave_to_cache): Likewise.
18549 (x86_xcr0): Likewise.
18550
18551 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
18552 * linux-crisv32-low.c (target_regsets): Likewise.
18553 * linux-m68k-low.c (target_regsets): Likewise.
18554 * linux-mips-low.c (target_regsets): Likewise.
18555 * linux-ppc-low.c (target_regsets): Likewise.
18556 * linux-s390-low.c (target_regsets): Likewise.
18557 * linux-sh-low.c (target_regsets): Likewise.
18558 * linux-sparc-low.c (target_regsets): Likewise.
18559 * linux-xtensa-low.c (target_regsets): Likewise.
18560
18561 * linux-low.c: Include <sys/uio.h>.
18562 (regsets_fetch_inferior_registers): Support nt_type.
18563 (regsets_store_inferior_registers): Likewise.
18564 (linux_process_qsupported): New.
18565 (linux_target_ops): Add linux_process_qsupported.
18566
18567 * linux-low.h (regset_info): Add nt_type.
18568 (linux_target_ops): Add process_qsupported.
18569
18570 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
18571 and <sys/uio.h>.
18572 (init_registers_i386_avx_linux): New.
18573 (init_registers_amd64_avx_linux): Likewise.
18574 (xmltarget_i386_linux_no_xml): Likewise.
18575 (xmltarget_amd64_linux_no_xml): Likewise.
18576 (PTRACE_GETREGSET): Likewise.
18577 (PTRACE_SETREGSET): Likewise.
18578 (x86_fill_xstateregset): Likewise.
18579 (x86_store_xstateregset): Likewise.
18580 (use_xml): Likewise.
18581 (x86_linux_update_xmltarget): Likewise.
18582 (x86_linux_process_qsupported): Likewise.
18583 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
18584 (x86_arch_setup): Don't call init_registers_amd64_linux nor
18585 init_registers_i386_linux here. Call
18586 x86_linux_update_xmltarget.
18587 (the_low_target): Add x86_linux_process_qsupported.
18588
18589 * server.c (handle_query): Call target_process_qsupported.
18590
18591 * target.h (target_ops): Add process_qsupported.
18592 (target_process_qsupported): New.
18593
18594 2010-04-03 Pedro Alves <pedro@codesourcery.com>
18595
18596 * inferiors.c (add_thread): Set last_status kind to
18597 TARGET_WAITKIND_IGNORE.
18598 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
18599 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
18600 (linux_wait_1): Move `thread' local definition to block that uses
18601 it. Don't NULL initialize `event_child'.
18602 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
18603 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
18604 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
18605
18606 2010-04-01 Pedro Alves <pedro@codesourcery.com>
18607
18608 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
18609 an extended waitstatus, or by a watchpoint.
18610 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
18611 thread was stepping or has been stopped by a watchpoint.
18612
18613 2010-04-01 Pedro Alves <pedro@codesourcery.com>
18614
18615 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
18616 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
18617 of another, then delete the previous, and validate all
18618 breakpoints.
18619 (validate_inserted_breakpoint): New.
18620 (delete_disabled_breakpoints): New.
18621 (validate_breakpoints): New.
18622 (check_mem_read): Validate breakpoints before trusting their
18623 shadow. Delete disabled breakpoints.
18624 (check_mem_write): Validate breakpoints before trusting they
18625 should be inserted. Delete disabled breakpoints.
18626 * mem-break.h (validate_breakpoints):
18627 * server.c (handle_query): Validate breakpoints when we see a
18628 qSymbol query.
18629
18630 2010-04-01 Pedro Alves <pedro@codesourcery.com>
18631
18632 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
18633 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
18634 if we could tell there's a GDB breakpoint at stop_pc.
18635 (need_step_over_p): Don't do a step over if we find a GDB
18636 breakpoint at the resume PC.
18637
18638 * mem-break.c (struct raw_breakpoint): New.
18639 (enum bkpt_type): New type `gdb_breakpoint'.
18640 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
18641 fields. New field `raw'.
18642 (find_raw_breakpoint_at): New.
18643 (set_raw_breakpoint_at): Handle refcounting. Create a raw
18644 breakpoint instead.
18645 (set_breakpoint_at): Adjust.
18646 (delete_raw_breakpoint): New.
18647 (release_breakpoint): New.
18648 (delete_breakpoint): Rename to...
18649 (delete_breakpoint_1): ... this. Add proc parameter. Use
18650 release_breakpoint. Return ENOENT.
18651 (delete_breakpoint): Reimplement.
18652 (find_breakpoint_at): Delete.
18653 (find_gdb_breakpoint_at): New.
18654 (delete_breakpoint_at): Delete.
18655 (set_gdb_breakpoint_at): New.
18656 (delete_gdb_breakpoint_at): New.
18657 (gdb_breakpoint_here): New.
18658 (set_reinsert_breakpoint): Use release_breakpoint.
18659 (uninsert_breakpoint): Rename to ...
18660 (uninsert_raw_breakpoint): ... this.
18661 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
18662 (reinsert_raw_breakpoint): Change parameter type to
18663 raw_breakpoint.
18664 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
18665 instead.
18666 (check_breakpoints): Adjust. Use release_breakpoint.
18667 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
18668 (breakpoint_inserted_here): Ditto.
18669 (check_mem_read): Adjust to iterate over raw breakpoints instead.
18670 Don't trust the breakpoint's shadow if it is not inserted.
18671 (check_mem_write): Adjust to iterate over raw breakpoints instead.
18672 (delete_all_breakpoints): Adjust.
18673 (free_all_breakpoints): Mark all breakpoints as uninserted, and
18674 use delete_breakpoint_1.
18675
18676 * mem-break.h (breakpoints_supported): Delete declaration.
18677 (set_gdb_breakpoint_at): Declare.
18678 (gdb_breakpoint_here): Declare.
18679 (delete_breakpoint_at): Delete.
18680 (delete_gdb_breakpoint_at): Declare.
18681
18682 * server.h (struct raw_breakpoint): Forward declare.
18683 (struct process_info): New field `raw_breakpoints'.
18684
18685 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
18686 breakpoints.
18687
18688 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18689
18690 * linux-low.c (status_pending_p_callback): Fix comment.
18691 (linux_wait_for_event_1): Move most of the internal breakpoint
18692 handling from here...
18693 (linux_wait_1): ... to here.
18694 (count_events_callback): New.
18695 (select_singlestep_lwp_callback): New.
18696 (select_event_lwp_callback): New.
18697 (cancel_breakpoints_callback): New.
18698 (select_event_lwp): New.
18699 (linux_wait_1): Simplify internal breakpoint handling. Give equal
18700 priority to all LWPs that have had events that should be reported
18701 to the client. Cancel breakpoints when about to reporting the
18702 event to the client, not while stopping lwps. No longer cancel
18703 finished single-steps here.
18704 (cancel_finished_single_step): Delete.
18705 (cancel_finished_single_steps): Delete.
18706
18707 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18708
18709 * mem-break.c (enum bkpt_type): New.
18710 (struct breakpoint): New field `type'.
18711 (set_breakpoint_at): Change return type to struct breakpoint
18712 pointer. Set type to `other_breakpoint' by default.
18713 (delete_breakpoint): Rewrite, supporting more than one breakpoint
18714 in the breakpoint list.
18715 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
18716 (reinsert_breakpoint): Rename to ...
18717 (reinsert_raw_breakpoint): ... this.
18718 (reinsert_breakpoints_at): Adjust.
18719 * mem-break.h (struct breakpoint): Declare.
18720 (set_breakpoint_at): Change return type to struct breakpoint
18721 pointer.
18722
18723 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18724
18725 * server.c (handle_query): Assign, not compare.
18726
18727 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18728
18729 Teach linux gdbserver to step-over-breakpoints.
18730
18731 * linux-low.c (can_hardware_single_step): New.
18732 (supports_breakpoints): New.
18733 (handle_extended_wait): If stopping threads, read the stop pc of
18734 the new cloned LWP.
18735 (get_pc): New.
18736 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
18737 low target doesn't support retrieving the PC.
18738 (add_lwp): Set last_resume_kind to resume_continue.
18739 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
18740 (linux_attach): Don't clear stop_expected. Set the lwp's
18741 last_resume_kind to resume_stop.
18742 (linux_detach_one_lwp): Don't check for removed breakpoints.
18743 (check_removed_breakpoint): Delete.
18744 (status_pending_p): Rename to ...
18745 (status_pending_p_callback): ... this. Don't check for removed
18746 breakpoints. Don't consider threads that are stopped from GDB's
18747 perspective.
18748 (linux_wait_for_lwp): Always read the stop_pc here.
18749 (cancel_breakpoint): New.
18750 (step_over_bkpt): New global.
18751 (linux_wait_for_event_1): Implement stepping over breakpoints.
18752 (gdb_wants_lwp_stopped): New.
18753 (gdb_wants_all_stopped): New.
18754 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
18755 single-step traps here. Store the thread's last reported target
18756 wait status.
18757 (send_sigstop): Don't clear stop_expected. Always set it,
18758 instead.
18759 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
18760 (cancel_finished_single_step): New.
18761 (cancel_finished_single_steps): New.
18762 (wait_for_sigstop): Don't cancel finished single-step traps here.
18763 (linux_resume_one_lwp): Don't check for removed breakpoints.
18764 Don't set `step' on non-hardware step archs.
18765 (linux_set_resume_request): Ignore resume_stop requests if already
18766 stopping or stopped. Set the lwp's last_resume_kind.
18767 (resume_status_pending_p): Don't check for removed breakpoints.
18768 (need_step_over_p): New.
18769 (start_step_over): New.
18770 (finish_step_over): New.
18771 (linux_resume_one_thread): Always queue a sigstop for resume_stop
18772 requests. Clear the thread's last reported target waitstatus.
18773 Don't use the `suspended' flag. Don't consider pending breakpoints.
18774 (linux_resume): Start a step-over if necessary.
18775 (proceed_one_lwp): New.
18776 (proceed_all_lwps): New.
18777 (unstop_all_lwps): New.
18778 * linux-low.h (struct lwp_info): Rewrite comment for the
18779 `suspended' flag. Add the `stop_pc' field. Delete the
18780 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
18781 Add `'last_resume_kind' and `need_step_over' fields.
18782 * inferiors.c (struct thread_info): Delete, moved elsewhere.
18783 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
18784 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
18785 (set_raw_breakpoint_at): New.
18786 (set_breakpoint_at): Rewrite to use it.
18787 (reinsert_breakpoint_handler): Delete.
18788 (set_reinsert_breakpoint): New.
18789 (reinsert_breakpoint_by_bp): Delete.
18790 (delete_reinsert_breakpoints): New.
18791 (uninsert_breakpoint): Rewrite.
18792 (uninsert_breakpoints_at): New.
18793 (reinsert_breakpoint): Rewrite.
18794 (reinsert_breakpoints_at): New.
18795 (check_breakpoints): Rewrite.
18796 (breakpoint_here): New.
18797 (breakpoint_inserted_here): New.
18798 (check_mem_read): Adjust.
18799 * mem-break.h (breakpoints_supported, breakpoint_here)
18800 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
18801 (reinsert_breakpoint_by_bp): Delete declaration.
18802 (delete_reinsert_breakpoints): Declare.
18803 (reinsert_breakpoint): Delete declaration.
18804 (reinsert_breakpoints_at): Declare.
18805 (uninsert_breakpoint): Delete declaration.
18806 (uninsert_breakpoints_at): Declare.
18807 (check_breakpoints): Adjust prototype.
18808 * server.h: Adjust include order.
18809 (struct thread_info): Declare here. Add a `last_status' field.
18810
18811 2010-03-23 Michael Snyder <msnyder@vmware.com>
18812
18813 * server.c (crc32): New function.
18814 (handle_query): Add handling for 'qCRC:' request.
18815
18816 2010-03-23 Pedro Alves <pedro@codesourcery.com>
18817
18818 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
18819 lwp had been stopped by a watchpoint.
18820
18821 2010-03-16 Pedro Alves <pedro@codesourcery.com>
18822
18823 * server.h (internal_error): Declare.
18824 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
18825 * utils.c (internal_error): New function.
18826
18827 2010-03-15 Andreas Schwab <schwab@redhat.com>
18828
18829 * configure.srv: Fix typo setting srv_regobj.
18830
18831 2010-03-15 Pedro Alves <pedro@codesourcery.com>
18832
18833 * linux-low.c (fetch_register): Avoid passing a non string literal
18834 format to `error'.
18835 (usr_store_inferior_registers): Ditto.
18836
18837 2010-03-14 Pedro Alves <pedro@codesourcery.com>
18838
18839 * linux-low.c (linux_write_memory): Bail out early if peeking
18840 memory failed.
18841
18842 2010-03-14 Pedro Alves <pedro@codesourcery.com>
18843
18844 * linux-low.h (struct lwp_info): New fields
18845 `stopped_by_watchpoint' and `stopped_data_address'.
18846 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
18847 here, and cache them in the lwp object.
18848 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
18849 directly.
18850 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
18851 field.
18852 (linux_stopped_by_watchpoint): Rewrite.
18853 (linux_stopped_data_address): Rewrite.
18854
18855 2010-03-06 Simo Melenius <simo.melenius@iki.fi>
18856
18857 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
18858 switching the current inferior, not before.
18859
18860 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
18861
18862 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
18863 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
18864 i386-linux.c and amd64-linux.c.
18865 (reg-i386.o): Removed.
18866 (reg-i386.c): Likewise.
18867 (reg-i386-linux.o): Likewise.
18868 (reg-i386-linux.c): Likewise.
18869 (reg-x86-64.o): Likewise.
18870 (reg-x86-64.c): Likewise.
18871 (reg-x86-64-linux.o): Likewise.
18872 (reg-x86-64-linux.c): Likewise.
18873 (i386.o): New.
18874 (i386.c): Likewise.
18875 (i386-linux.o): Likewise.
18876 (i386-linux.c): Likewise.
18877 (amd64.o): Likewise.
18878 (amd64.c): Likewise.
18879 (amd64-linux.o): Likewise.
18880 (amd64-linux.c): Likewise.
18881
18882 * configure.srv (srv_i386_regobj): New.
18883 (srv_i386_linux_regobj): Likewise.
18884 (srv_amd64_regobj): Likewise.
18885 (srv_amd64_linux_regobj): Likewise.
18886 (srv_i386_32bit_xmlfiles): Likewise.
18887 (srv_i386_64bit_xmlfiles): Likewise.
18888 (srv_i386_xmlfiles): Likewise.
18889 (srv_amd64_xmlfiles): Likewise.
18890 (srv_i386_linux_xmlfiles): Likewise.
18891 (srv_amd64_linux_xmlfiles): Likewise.
18892 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
18893 srv_xmlfiles to $srv_i386_xmlfiles.
18894 (i[34567]86-*-mingw32ce*): Likewise.
18895 (i[34567]86-*-mingw*): Likewise.
18896 (i[34567]86-*-nto*): Likewise.
18897 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
18898 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
18899 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
18900 (x86_64-*-linux*): Likewise.
18901
18902 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
18903 (init_registers_amd64_linux): New.
18904 (x86_arch_setup): Replace init_registers_x86_64_linux with
18905 init_registers_amd64_linux.
18906
18907 2010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
18908
18909 * configure.ac: Check for libdl. If it is not available link against
18910 static libthread_db.
18911 * configure: Regenerate.
18912
18913 2010-02-22 Pedro Alves <pedro@codesourcery.com>
18914
18915 PR9605
18916
18917 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
18918 handing a read watchpoint.
18919 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
18920
18921 2010-02-12 Doug Evans <dje@google.com>
18922
18923 * linux-low.c (linux_supports_tracefork_flag): Document.
18924 (linux_look_up_symbols): Add comment.
18925
18926 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
18927
18928 * regcache.c (supply_register): Clear regcache if buf is NULL.
18929
18930 2010-02-02 Nicolas Roche <roche@sourceware.org>
18931 Joel Brobecker <brobecker@adacore.com>
18932
18933 * inferiors.c (find_inferior): Add function documentation.
18934 (unloaded_dll): Handle the case where the unloaded dll has not
18935 been previously registered in the dll list.
18936
18937 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
18938
18939 * linux-arm-low.c (thumb_breakpoint_len): Delete.
18940 (thumb2_breakpoint): New.
18941 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
18942
18943 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
18944
18945 * linux-low.c (get_stop_pc): Check for SIGTRAP.
18946 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
18947 breakpoints.
18948
18949 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18950
18951 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
18952
18953 2010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
18954
18955 * linux-s390-low.c (s390_collect_ptrace_register)
18956 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
18957
18958 2010-01-21 Doug Evans <dje@google.com>
18959
18960 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
18961 (PTRACE_ARG4_TYPE): New macro.
18962 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
18963 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
18964 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
18965 (usr_store_inferior_registers): Ditto.
18966 (linux_read_memory, linux_write_memory): Ditto.
18967 (linux_test_for_tracefork): Ditto.
18968
18969 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
18970 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
18971
18972 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18973
18974 * proc-service.c (ps_lgetregs): Don't refetch registers from the
18975 target.
18976
18977 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18978
18979 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
18980 prototype to take a regcache. Adjust.
18981
18982 2010-01-20 Pedro Alves <pedro@codesourcery.com>
18983
18984 * regcache.h (struct thread_info): Forward declare.
18985 (struct regcache): New.
18986 (new_register_cache): Adjust prototype.
18987 (get_thread_regcache): Declare.
18988 (free_register_cache): Adjust prototype.
18989 (registers_to_string, registers_from_string): Ditto.
18990 (supply_register, supply_register_by_name, collect_register)
18991 (collect_register_as_string, collect_register_by_name): Ditto.
18992 * regcache.c (struct inferior_regcache_data): Delete.
18993 (get_regcache): Rename to ...
18994 (get_thread_regcache): ... this. Adjust. Switch inferior before
18995 fetching registers.
18996 (regcache_invalidate_one): Adjust.
18997 (regcache_invalidate): Fix prototype.
18998 (new_register_cache): Return the new register cache.
18999 (free_register_cache): Change prototype.
19000 (realloc_register_cache): Adjust.
19001 (registers_to_string): Change prototype to take a regcache. Adjust.
19002 (registers_from_string): Ditto.
19003 (register_data): Ditto.
19004 (supply_register): Ditto.
19005 (supply_register_by_name): Ditto.
19006 (collect_register): Ditto.
19007 (collect_register_as_string): Ditto.
19008 (collect_register_by_name): Ditto.
19009 * server.c (process_serial_event): Adjust.
19010 * linux-low.h (regset_fill_func, regset_store_func): Change
19011 prototype.
19012 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
19013 Change prototype.
19014 * linux-low.c (get_stop_pc): Adjust.
19015 (check_removed_breakpoint): Adjust.
19016 (linux_wait_for_event): Adjust.
19017 (linux_resume_one_lwp): Adjust.
19018 (fetch_register): Add regcache parameter. Adjust.
19019 (usr_store_inferior_registers): Ditto.
19020 (regsets_fetch_inferior_registers): Ditto.
19021 (regsets_store_inferior_registers): Ditto.
19022 (linux_fetch_registers, linux_store_registers): Ditto.
19023 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
19024 regcache. Adjust.
19025 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
19026 Ditto.
19027 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
19028 prototype to take a regcache.
19029 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
19030 * remote-utils.c (convert_ascii_to_int, outreg)
19031 (prepare_resume_reply): Change prototype to take a regcache.
19032 Adjust.
19033 * target.h (struct target_ops) <fetch_registers, store_registers>:
19034 Change prototype to take a regcache.
19035 (fetch_inferior_registers, store_inferior_registers): Change
19036 prototype to take a regcache. Adjust.
19037 * proc-service.c (ps_lgetregs): Adjust.
19038 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
19039 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
19040 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
19041 take a regcache. Adjust.
19042 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
19043 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
19044 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
19045 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
19046 * linux-cris-low.c (cris_get_pc, cris_set_pc)
19047 (cris_cannot_fetch_register):
19048 (cris_breakpoint_at): Change prototype to take a regcache.
19049 Adjust.
19050 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
19051 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
19052 to take a regcache. Adjust.
19053 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
19054 Adjust.
19055 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
19056 take a regcache. Adjust.
19057 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
19058 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
19059 (m68k_set_pc): Change prototype to take a regcache. Adjust.
19060 * linux-mips-low.c (mips_get_pc):
19061 (mips_set_pc): Change prototype to take a regcache. Adjust.
19062 (mips_reinsert_addr): Adjust.
19063 (mips_collect_register): Change prototype to take a regcache.
19064 Adjust.
19065 (mips_supply_register):
19066 (mips_collect_register_32bit, mips_supply_register_32bit)
19067 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
19068 (mips_store_fpregset): Ditto.
19069 * linux-ppc-low.c (ppc_supply_ptrace_register)
19070 (ppc_supply_ptrace_register): Ditto.
19071 (parse_spufs_run): Adjust.
19072 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
19073 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
19074 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
19075 take a regcache. Adjust.
19076 * linux-s390-low.c (s390_collect_ptrace_register)
19077 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
19078 (s390_set_pc): Change prototype to take a regcache. Adjust.
19079 (s390_arch_setup): Adjust.
19080 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
19081 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
19082 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
19083 (sparc_fill_gregset, sparc_store_gregset_from_stack)
19084 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
19085 regcache. Adjust.
19086 (sparc_breakpoint_at): Adjust.
19087 * linux-xtensa-low.c (xtensa_fill_gregset):
19088 (xtensa_store_gregset):
19089 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
19090 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
19091 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
19092 prototype to take a regcache. Adjust.
19093 * win32-arm-low.c (arm_fetch_inferior_register)
19094 (arm_store_inferior_register): Change prototype to take a
19095 regcache. Adjust.
19096 * win32-i386-low.c (i386_fetch_inferior_register)
19097 (i386_store_inferior_register): Change prototype to take a
19098 regcache. Adjust.
19099 * win32-low.c (child_fetch_inferior_registers)
19100 (child_store_inferior_registers): Change prototype to take a
19101 regcache. Adjust.
19102 (win32_wait): Adjust.
19103 (win32_fetch_inferior_registers): Change prototype to take a
19104 regcache. Adjust.
19105 (win32_store_inferior_registers): Adjust.
19106 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
19107 store_inferior_register>: Change prototype to take a regcache.
19108
19109 2010-01-20 Doug Evans <dje@google.com>
19110
19111 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
19112 #ifdef.
19113 (linux_wait_for_event1, linux_init_signals): Ditto.
19114 (W_STOPCODE): Provide definition if missing.
19115
19116 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
19117
19118 * linux-low.c (linux_core_of_thread): New.
19119 (compare_ints, show_process, list_threads): New.
19120 (linux_qxfer_osdata): Report threads and cores.
19121 (linux_target_op): Register linux_core_of_thread.
19122 * remote-utils.c (prepare_resume_reply): Report the core.
19123 (buffer_xml_printf): Support %d specifier.
19124 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
19125 New.
19126 (handle_query): Handle qXfer:threads. Announce availability
19127 thereof.
19128 * target.h (struct target_ops): New field core_of_thread.
19129
19130 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
19131
19132 * Makefile.in (clean): Remove new generated files.
19133 (reg-s390.o, reg-s390.c): Remove rules.
19134 (reg-s390x.o, reg-s390x.c): Likewise.
19135 (s390-linux32.o, s390-linux32.c): Add rules.
19136 (s390-linux64.o, s390-linux64.c): Likewise.
19137 (s390x-linux64.o, s390x-linux64.c): Likewise.
19138 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
19139 * linux-s390-low.c: Include <elf.h>.
19140 (HWCAP_S390_HIGH_GPRS): Define if undefined.
19141 (init_registers_s390): Remove prototype.
19142 (init_registers_s390x): Likewise.
19143 (init_registers_s390_linux32): Add prototype.
19144 (init_registers_s390_linux64): Likewise.
19145 (init_registers_s390x_linux64): Likewise.
19146 (s390_num_regs_3264): New define.
19147 (s390_regmap_3264): New global variable.
19148 (s390_cannot_fetch_register): Remove obsolete check.
19149 (s390_cannot_store_register): Likewise.
19150 (s390_collect_ptrace_register): Handle upper/lower register halves.
19151 (s390_supply_ptrace_register): Likewise.
19152 (s390_fill_gregset): Update to register number changes.
19153 (s390_get_hwcap): New routine.
19154 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
19155 Install appropriate regmap and register set.
19156
19157 2010-01-01 Joel Brobecker <brobecker@adacore.com>
19158
19159 * server.c (gdbserver_version): Update copyright year to 2010.
19160 * gdbreplay.c (gdbreplay_version): Likewise.
19161
19162 2009-12-28 Doug Evans <dje@google.com>
19163
19164 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
19165 elf/external.h. Include <elf.h> instead but only if necessary.
19166
19167 2009-12-28 Pedro Alves <pedro@codesourcery.com>
19168
19169 * linux-low.c (linux_remove_process): Remove `detaching'
19170 parameter. Don't release/detach from thread_db here.
19171 (linux_kill): Release/detach from thread_db here, ...
19172 (linux_detach): ... and here, before actually detaching.
19173 (linux_wait_1): ... and here, when a process exits.
19174 * thread-db.c (any_thread_of): New.
19175 (thread_db_free): Switch the current inferior to a thread of the
19176 passed in process.
19177
19178 2009-12-21 Doug Evans <dje@google.com>
19179
19180 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
19181
19182 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
19183 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
19184 warning ifndef __NR_tkill. Move setting of errno there too.
19185 Delete unnecessary resetting of errno after syscall.
19186 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
19187
19188 * configure.ac: Check for dladdr.
19189 * config.in: Regenerate.
19190 * configure: Regenerate.
19191 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
19192 (try_thread_db_load): Update.
19193
19194 * linux-low.c (my_waitpid): Delete unnecessary prototype.
19195
19196 2009-12-18 Doug Evans <dje@google.com>
19197
19198 * event-loop.c: Include unistd.h if it exists.
19199
19200 * linux-low.c (my_waitpid): Move definition away from being in
19201 between linux_tracefork_child/linux_test_for_tracefork.
19202
19203 * gdb_proc_service.h (psaddr_t): Fix type.
19204 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
19205 signature to match glibc.
19206
19207 2009-12-16 Doug Evans <dje@google.com>
19208
19209 * linux-low.c (linux_read_memory): Fix argument to read.
19210
19211 2009-11-26 Pedro Alves <pedro@codesourcery.com>
19212
19213 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
19214 events, don't leave current_inferior pointing at null.
19215
19216 2009-11-26 Pedro Alves <pedro@codesourcery.com>
19217
19218 * win32-low.c (LOG): Delete.
19219 (OUTMSG): Output to stderr.
19220 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
19221 on compile time LOG macro.
19222 (win32_wait): Fix debug output.
19223
19224 2009-11-26 Pedro Alves <pedro@codesourcery.com>
19225
19226 * win32-low.c (win32_add_one_solib): If the dll name is
19227 "ntdll.dll", prepend the system directory to the dll path.
19228
19229 2009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
19230
19231 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
19232
19233 2009-11-17 Nathan Sidwell <nathan@codesourcery.com>
19234 Vladimir Prus <vladimir@codesourcery.com>
19235
19236 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
19237 * configure.ac: Check for __mcoldfire__ and set
19238 gdb_cv_m68k_is_coldfire.
19239 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
19240 reg-cf.o and reg-m68k.o.
19241 * configure: Regenerated.
19242
19243 2009-11-16 Pedro Alves <pedro@codesourcery.com>
19244
19245 * linux-low.c (linux_remove_process): Add `detaching' parameter.
19246 Pass it to thread_db_free.
19247 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
19248 proper `detaching' argument to linux_remove_process.
19249 * linux-low.h (thread_db_free): Add `detaching' parameter.
19250 * thread-db.c (thread_db_init): Pass false as `detaching' argument
19251 to thread_db_free.
19252 (thread_db_free): Add `detaching' parameter. Only
19253 call td_ta_clear_event if detaching from process.
19254
19255 2009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
19256
19257 * thread-db.c (thread_db_free): Fix typo.
19258
19259 2009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
19260
19261 PR gdb/10838
19262 * thread-db.c (thread_db_free): Call td_ta_clear_event.
19263
19264 2009-11-03 Nathan Sidwell <nathan@codesourcery.com>
19265
19266 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
19267 with an i686 compiler.
19268 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
19269 needed.
19270 * configure: Rebuilt.
19271
19272 2009-10-29 Sandra Loosemore <sandra@codesourcery.com>
19273
19274 PR gdb/10783
19275
19276 * server.c (handle_search_memory_1): Correct read_addr initialization
19277 in loop for searching subsequent chunks.
19278
19279 2009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
19280
19281 * configure.ac: New --with-libthread-db option.
19282 * thread-db.c: Allow direct dependence on libthread_db.
19283 (thread_db_free): Adjust.
19284 * config.in: Regenerate.
19285 * configure: Likewise.
19286
19287 2009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
19288
19289 PR gdb/10757
19290 * thread-db.c (attach_thread): New function.
19291 (maybe_attach_thread): Return success/failure.
19292 (find_new_threads_callback): Adjust.
19293 (thread_db_find_new_threads): Loop until no new threads.
19294
19295 2009-10-13 Pedro Alves <pedro@codesourcery.com>
19296
19297 * proc-service.c (ps_lgetregs): Formatting.
19298
19299 2009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
19300
19301 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
19302 * configure.ac: Adjust.
19303 * linux-low.h (struct process_info_private): Move members to struct
19304 thread_db.
19305 (thread_db_free, thread_db_handle_monitor_command): New prototype.
19306 * linux-low.c (linux_remove_process): Adjust.
19307 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
19308 * server.c (handle_query): Move code ...
19309 (handle_monitor_command): ... here. New function.
19310 * target.h (struct target_ops): New member.
19311 * thread-db.c (struct thread_db): New.
19312 (libthread_db_search_path): New variable.
19313 (thread_db_create_event, thread_db_enable_reporting)
19314 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
19315 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
19316 (try_thread_db_load_1, dladdr_to_soname): New functions.
19317 (try_thread_db_load, thread_db_load_search): New functions.
19318 (thread_db_init): Search for libthread_db.
19319 (thread_db_free): New function.
19320 (thread_db_handle_monitor_command): Likewise.
19321 * config.in: Regenerate.
19322 * configure: Regenerate.
19323
19324 2009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
19325
19326 * spu-low.c (spu_kill): Wait for inferior to terminate.
19327 Call clear_inferiors.
19328 (spu_detach): Call clear_inferiors.
19329
19330 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19331
19332 * aclocal.m4: Regenerate.
19333 * config.in: Likewise.
19334 * configure: Likewise.
19335
19336 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
19337
19338 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
19339 (parse_spufs_run): New function.
19340 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
19341 (ppc_breakpoint_at): Handle SPU breakpoints.
19342
19343 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
19344
19345 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
19346 (SPUFS_MAGIC): Define.
19347 (spu_enumerate_spu_ids): New function.
19348 (linux_qxfer_spu): New function.
19349 (linux_target_ops): Install linux_qxfer_spu.
19350
19351 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
19352
19353 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
19354 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
19355 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
19356 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
19357 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
19358 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
19359 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
19360 (init_registers_powerpc_cell32l): Add prototype.
19361 (init_registers_powerpc_cell64l): Likewise.
19362 (ppc_arch_setup): Detect Cell/B.E. architecture.
19363
19364 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19365
19366 * Makefile.in (datarootdir): New variable.
19367
19368 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
19369
19370 * linux-low.c (linux_write_memory): Update debugging output.
19371 * Makefile.in (clean): Add new descriptions.
19372 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
19373 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
19374 * configure.srv: Add new files for arm*-*-linux*.
19375 * linux-arm-low.c: Add new declarations.
19376 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
19377 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
19378 (HWCAP_VFPv3D16): New.
19379 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
19380 instead of __IWMMXT__.
19381 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
19382 (arm_arch_setup): New.
19383 (target_regsets): Remove #ifdef. Add VFP regset.
19384 (the_low_target): Use arm_arch_setup.
19385
19386 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
19387
19388 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
19389 the main thread again.
19390
19391 2009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
19392
19393 Adding Neutrino gdbserver.
19394 * configure: Regenerated.
19395 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
19396 * configure.srv (i[34567]86-*-nto*): New target.
19397 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
19398 * remote-utils.c [__QNX__]: Include sys/iomgr.h
19399 (nto_comctrl) [__QNX__]: New function.
19400 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
19401
19402 2009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
19403
19404 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
19405 srv_tgtobj.
19406
19407 2009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
19408 Pedro Alves <pedro@codesourcery.com>
19409
19410 * win32-i386-low.c (i386_get_thread_context): Handle systems that
19411 don't support CONTEXT_EXTENDED_REGISTERS.
19412 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
19413 (the_low_target): Install them.
19414 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
19415 failing with ERROR_PIPE_NOT_CONNECTED.
19416
19417 2009-06-30 Doug Evans <dje@google.com>
19418 Pierre Muller <muller@ics.u-strasbg.fr>
19419
19420 Add h/w watchpoint support to x86-linux, win32-i386.
19421 * Makefile.in (SFILES): Add i386-low.c
19422 (i386_low_h): Define.
19423 (i386-low.o): Add dependencies.
19424 (linux-x86-low.o): Add i386-low.h dependency.
19425 (win32-i386-low.o): Ditto.
19426 * i386-low.c: New file.
19427 * i386-low.h: New file.
19428 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
19429 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
19430 * linux-low.c (linux_add_process): Initialize arch_private.
19431 (linux_remove_process): Free arch_private.
19432 (add_lwp): Initialize arch_private.
19433 (delete_lwp): Free arch_private.
19434 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
19435 provided.
19436 * linux-low.h (process_info_private): New member arch_private.
19437 (lwp_info): New member arch_private.
19438 (linux_target_ops): New members new_process, new_thread,
19439 prepare_to_resume.
19440 (ptid_of): New macro.
19441 * linux-x86-low.c: Include stddef.h, i386-low.h.
19442 (arch_process_info): New struct.
19443 (arch_lwp_info): New struct.
19444 (x86_linux_dr_get, x86_linux_dr_set): New functions.
19445 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
19446 (i386_dr_low_get_status): New function.
19447 (x86_insert_point, x86_remove_point): New functions.
19448 (x86_stopped_by_watchpoint): New function.
19449 (x86_stopped_data_address): New function.
19450 (x86_linux_new_process, x86_linux_new_thread): New functions.
19451 (x86_linux_prepare_to_resume): New function.
19452 (the_low_target): Add entries for insert_point, remove_point,
19453 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
19454 prepare_to_resume.
19455 * server.c (debug_hw_points): New global.
19456 (monitor_show_help): Document set debug-hw-points.
19457 (handle_query): Process "set debug-hw-points".
19458 * server.h (debug_hw_points): Declare.
19459 (paddress): Declare.
19460 * utils.c (NUMCELLS, CELLSIZE): New macros.
19461 (get_sell, xsnprintf, paddress): New functions.
19462 * win32-arm-low.c (the_low_target): Add entries for insert_point,
19463 remove_point, stopped_by_watchpoint, stopped_data_address.
19464 * win32-i386-low.c: Include i386-low.h.
19465 (debug_reg_state): Replaces dr.
19466 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
19467 (i386_dr_low_get_status): New function.
19468 (i386_insert_point, i386_remove_point): New functions.
19469 (i386_stopped_by_watchpoint): New function.
19470 (i386_stopped_data_address): New function.
19471 (i386_initial_stuff): Update.
19472 (get_thread_context,set_thread_context,i386_thread_added): Update.
19473 (the_low_target): Add entries for insert_point,
19474 remove_point, stopped_by_watchpoint, stopped_data_address.
19475 * win32-low.c (win32_insert_watchpoint): New function.
19476 (win32_remove_watchpoint): New function.
19477 (win32_stopped_by_watchpoint): New function.
19478 (win32_stopped_data_address): New function.
19479 (win32_target_ops): Add entries for insert_watchpoint,
19480 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
19481 * win32-low.h (win32_target_ops): New members insert_point,
19482 remove_point, stopped_by_watchpoint, stopped_data_address.
19483
19484 2009-06-25 Pedro Alves <pedro@codesourcery.com>
19485
19486 * server.c (process_serial_event): Re-return unsupported, not
19487 error, if the type isn't recognized. Re-allow supporting only
19488 insert or remove packets. Also call require_running for
19489 breakpoints. Add missing break statement to default case. Tidy.
19490 * target.h (struct target_ops): Rename insert_watchpoint to
19491 insert_point, and remove_watchpoint to remove_point.
19492
19493 * linux-low.h (struct linux_target_ops): Likewise.
19494 * linux-low.c (linux_insert_watchpoint): Rename to ...
19495 (linux_insert_point): ... this. Adjust.
19496 (linux_remove_watchpoint): Rename to ...
19497 (linux_remove_point): ... this. Adjust.
19498 (linux_target_ops): Adjust.
19499 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
19500 (cris_insert_point): ... this.
19501 (cris_remove_watchpoint): Rename to ...
19502 (cris_remove_point): ... this.
19503 (the_low_target): Adjust.
19504
19505 2009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
19506
19507 * server.c (handle_v_kill): Pass signal_pid to
19508 kill_inferior if multi_process is zero.
19509
19510 2009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
19511
19512 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
19513 * target.h (target_ops): Comment for *_watchpoint to make it clear
19514 the functions can get types '0' and '1'.
19515
19516 2009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
19517
19518 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
19519 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
19520 * regcache.c (get_regcache): Likewise.
19521 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
19522 * win32-low.c (child_fetch_inferior_registers): Remove check for
19523 regno 0.
19524
19525 2009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
19526 Pedro Alves <pedro@codesourcery.com>
19527
19528 * target.h (struct target_ops) <supports_multi_process>: New
19529 callback.
19530 (target_supports_multi_process): New.
19531 * server.c (handle_query): Even if GDB reports support, only
19532 enable multi-process if the target also supports it. Report
19533 multi-process support only if the target backend supports it.
19534 * linux-low.c (linux_supports_multi_process): New function.
19535 (linux_target_ops): Install it as target_supports_multi_process
19536 callback.
19537
19538 2009-05-24 Doug Evans <dje@google.com>
19539
19540 Global renaming of find_thread_pid to find_thread_ptid.
19541 * server.h (find_thread_ptid): Renamed from find_thread_pid.
19542 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
19543 All callers updated.
19544
19545 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
19546 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
19547 directly.
19548
19549 * linux-low.c (get_stop_pc): Print pc if debug_threads.
19550 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
19551 (linux_resume_one_lwp): Ditto.
19552
19553 2009-05-23 Doug Evans <dje@google.com>
19554
19555 * linux-low.c (linux_resume_one_lwp): Change type of first arg
19556 from struct inferior_list_entry * to struct lwp_info *.
19557 All callers updated.
19558
19559 2009-05-13 Doug Evans <dje@google.com>
19560
19561 * linux-x86-low.c: Don't include assert.h.
19562 (x86_siginfo_fixup): Use fatal, not assert.
19563 (x86_arch_setup): Fix comment.
19564
19565 2009-05-12 Doug Evans <dje@google.com>
19566
19567 Biarch support for i386/amd64 gdbserver.
19568 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
19569 Add linux-x86-low.c.
19570 (linux-i386-low.o, linux-x86-64-low.o): Delete.
19571 (linux-x86-low.o): Add.
19572 * linux-x86-64-low.c: Delete.
19573 * linux-i386-low.c: Delete.
19574 * linux-x86-low.c: New file.
19575 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
19576 linux-x86-low.o.
19577 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
19578 linux-x86-low.o.
19579 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
19580 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
19581 (linux_child_pid_to_exec_file): New function.
19582 (elf_64_header_p, elf_64_file_p): New functions.
19583 (siginfo_fixup): New function.
19584 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
19585 give target a chance to convert layout.
19586 * linux-low.h (linux_target_ops): New member siginfo_fixup.
19587 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
19588
19589 2009-05-07 Doug Evans <dje@google.com>
19590
19591 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
19592 (regsets_store_inferior_registers): Ditto.
19593
19594 2009-05-06 Pedro Alves <pedro@codesourcery.com>
19595
19596 PR server/10048
19597
19598 * linux-low.c (must_set_ptrace_flags): Delete.
19599 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
19600 of the global.
19601 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
19602 `lwp->must_set_ptrace_flags' instead.
19603 (linux_wait_for_event_1): Set ptrace options here.
19604 (linux_wait_1): ... not here.
19605
19606 2009-04-30 Doug Evans <dje@google.com>
19607
19608 * inferiors.c (started_inferior_callback): New function.
19609 (attached_inferior_callback): New function.
19610 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
19611 * server.c (print_started_pid, print_attached_pid): New functions.
19612 (detach_or_kill_for_exit): New function.
19613 (main): Call it instead of for_each_inferior (kill_inferior_callback).
19614 * server.h (have_started_inferiors_p): Declare.
19615 (have_attached_inferiors_p): Declare.
19616
19617 * inferiors.c (remove_process): Fix memory leak, free process.
19618 * linux-low.c (linux_remove_process): New function.
19619 (linux_kill): Call it instead of remove_process.
19620 (linux_detach, linux_wait_1): Ditto.
19621
19622 2009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
19623
19624 * configure.srv: Add x86 Windows CE target.
19625
19626 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19627
19628 * inferiors.c (get_thread_process): Make global.
19629 * server.h (get_thread_process): Add prototype.
19630 * thread-db.c (find_one_thread): Use get_thread_process
19631 instead of current_process.
19632 (thread_db_get_tls_address): Do not crash if called when
19633 thread layer is not yet initialized.
19634
19635 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19636
19637 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
19638 * spu-low.c (current_tid): Rename to ...
19639 (current_ptid): ... this.
19640 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
19641 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
19642 ptid_get_lwp (current_ptid) instead of current_tid.
19643 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
19644 instead of current_tid. Use find_process_pid to verify pid
19645 argument is valid. Pass proper argument to remove_process.
19646 (spu_thread_alive): Compare current_ptid instead of current_tid.
19647 (spu_resume): Likewise.
19648
19649 2009-04-02 Pedro Alves <pedro@codesourcery.com>
19650
19651 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
19652 variable.
19653
19654 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19655
19656 Implement the multiprocess extensions, and add linux multiprocess
19657 support.
19658
19659 * server.h (ULONGEST): Declare.
19660 (struct ptid, ptid_t): New.
19661 (minus_one_ptid, null_ptid): Declare.
19662 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19663 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
19664 (struct inferior_list_entry): Change `id' type from unsigned from
19665 to ptid_t.
19666 (struct sym_cache, struct breakpoint, struct
19667 process_info_private): Forward declare.
19668 (struct process_info): Declare.
19669 (current_process): Declare.
19670 (all_processes): Declare.
19671 (initialize_inferiors): Declare.
19672 (add_thread): Adjust to use ptid_t.
19673 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
19674 (add_process, remove_process, find_thread_pid): Declare.
19675 (find_inferior_id): Adjust to use ptid_t.
19676 (cont_thread, general_thread, step_thread): Change type to ptid_t.
19677 (multi_process): Declare.
19678 (push_event): Adjust to use ptid_t.
19679 (read_ptid, write_ptid): Declare.
19680 (prepare_resume_reply): Adjust to use ptid_t.
19681 (clear_symbol_cache): Declare.
19682 * inferiors.c (all_processes): New.
19683 (null_ptid, minus_one_ptid): New.
19684 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19685 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
19686 (add_thread): Change unsigned long to ptid. Remove gdb_id
19687 parameter. Adjust.
19688 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
19689 (gdb_id_to_thread): Rename to ...
19690 (find_thread_pid): ... this. Change unsigned long to ptid.
19691 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
19692 (loaded_dll, pull_pid_from_list): Adjust.
19693 (add_process, remove_process, find_process_pid)
19694 (get_thread_process, current_process, initialize_inferiors): New.
19695 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
19696 (struct target_waitstatus) <related_pid>: Ditto.
19697 (struct target_ops) <kill, detach>: Add `pid' argument. Change
19698 return type to int.
19699 (struct target_ops) <join>: Add `pid' argument.
19700 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
19701 (struct target_ops) <wait>: Add `ptid' field. Change return type
19702 to ptid.
19703 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
19704 (mywait): Add `ptid' argument. Change return type to ptid_t.
19705 (target_pid_to_str): Declare.
19706 * target.c (set_desired_inferior): Adjust to use ptids.
19707 (mywait): Add new `ptid' argument. Adjust.
19708 (target_pid_to_str): New.
19709 * mem-break.h (free_all_breakpoints): Declare.
19710 * mem-break.c (breakpoints): Delelete.
19711 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
19712 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
19713 to use per-process breakpoint list.
19714 (free_all_breakpoints): New.
19715 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
19716 (symbol_cache, all_symbols_looked_up): Delete.
19717 (hexchars): New.
19718 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
19719 read_ptid): New.
19720 (prepare_resume_reply): Change ptid argument's type from unsigned
19721 long to ptid_t. Adjust. Implement W;process and X;process.
19722 (free_sym_cache, clear_symbol_cache): New.
19723 (look_up_one_symbol): Adjust to per-process symbol cache. *
19724 * server.c (cont_thread, general_thread, step_thread): Change type
19725 to ptid_t.
19726 (attached): Delete.
19727 (multi_process): New.
19728 (last_ptid): Change type to ptid_t.
19729 (struct vstop_notif) <ptid>: Change type to ptid_t.
19730 (queue_stop_reply, push_event): Change `ptid' argument's type to
19731 ptid_t.
19732 (discard_queued_stop_replies): Add `pid' argument.
19733 (start_inferior): Adjust to use ptids. Adjust to mywait interface
19734 changes. Don't reference the `attached' global.
19735 (attach_inferior): Adjust to mywait interface changes.
19736 (handle_query): Adjust to use ptids. Parse GDB's qSupported
19737 features. Handle and report "multiprocess+". Handle
19738 "qAttached:PID".
19739 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
19740 changes.
19741 (handle_v_kill): New.
19742 (handle_v_stopped): Adjust to use target_pid_to_str.
19743 (handle_v_requests): Allow multiple attaches and runs when
19744 multiprocess extensions are in effect. Handle "vKill".
19745 (myresume): Adjust to use ptids.
19746 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
19747 (handle_status): Adjust to discard_queued_stop_replies interface
19748 change.
19749 (first_thread_of, kill_inferior_callback)
19750 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
19751 (main): Call initialize_inferiors. Adjust to use ptids, killing
19752 and detaching from all inferiors. Handle multiprocess packet
19753 variants.
19754 * linux-low.h: Include gdb_proc_service.h.
19755 (struct process_info_private): New.
19756 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
19757 <lwpid_of>: Use ptid_get_lwp.
19758 (get_lwp_thread): Adjust.
19759 (struct lwp_info): Add `dead' member.
19760 (find_lwp_pid): Declare.
19761 * linux-low.c (thread_db_active): Delete.
19762 (new_inferior): Adjust comment.
19763 (inferior_pid): Delete.
19764 (linux_add_process): New.
19765 (handle_extended_wait): Adjust.
19766 (add_lwp): Change unsigned long to ptid.
19767 (linux_create_inferior): Add process to processes table. Adjust
19768 to use ptids. Don't set new_inferior here.
19769 (linux_attach_lwp): Rename to ...
19770 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
19771 it. Adjust to use ptids.
19772 (linux_attach_lwp): New.
19773 (linux_attach): Add process to processes table. Don't set
19774 new_inferior here.
19775 (struct counter): New.
19776 (second_thread_of_pid_p, last_thread_of_process_p): New.
19777 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
19778 multiple processes.
19779 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
19780 processes. Remove process from process table.
19781 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
19782 to multiple processes.
19783 (any_thread_of): New.
19784 (linux_detach): Add `pid' argument, and handle it. Remove process
19785 from processes table.
19786 (linux_join): Add `pid' argument. Handle it.
19787 (linux_thread_alive): Change unsighed long argument to ptid_t.
19788 Consider dead lwps as not being alive.
19789 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
19790 threads we're not interested in.
19791 (same_lwp, find_lwp_pid): New.
19792 (linux_wait_for_lwp): Change `pid' argument's type from int to
19793 ptid_t. Adjust.
19794 (linux_wait_for_event): Rename to ...
19795 (linux_wait_for_event_1): ... this. Change `pid' argument's type
19796 from int to ptid_t. Adjust.
19797 (linux_wait_for_event): New.
19798 (linux_wait_1): Add `ptid' argument. Change return type to
19799 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
19800 that exit from the process table.
19801 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
19802 Adjust.
19803 (mark_lwp_dead): New.
19804 (wait_for_sigstop): Adjust to use ptids. If a process exits while
19805 stopping all threads, mark its main lwp as dead.
19806 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
19807 ptids.
19808 (fetch_register, usr_store_inferior_registers)
19809 (regsets_fetch_inferior_registers)
19810 (regsets_store_inferior_registers, linux_read_memory)
19811 (linux_write_memory): Inline `inferior_pid'.
19812 (linux_look_up_symbols): Adjust to use per-process
19813 `thread_db_active'.
19814 (linux_request_interrupt): Adjust to use ptids.
19815 (linux_read_auxv): Inline `inferior_pid'.
19816 (initialize_low): Don't reference thread_db_active.
19817 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
19818 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
19819 (ps_getpid): Return the pid of the current inferior.
19820 * thread-db.c (proc_handle, thread_agent): Delete.
19821 (thread_db_create_event, thread_db_enable_reporting): Adjust to
19822 per-process data.
19823 (find_one_thread): Change argument type to ptid_t. Adjust to
19824 per-process data.
19825 (maybe_attach_thread): Adjust to per-process data and ptids.
19826 (thread_db_find_new_threads): Ditto.
19827 (thread_db_init): Ditto.
19828 * spu-low.c (spu_create_inferior, spu_attach): Add process to
19829 processes table. Adjust to use ptids.
19830 (spu_kill, spu_detach): Adjust interface. Remove process from
19831 processes table.
19832 (spu_join, spu_thread_alive): Adjust interface.
19833 (spu_wait): Adjust interface. Remove process from processes
19834 table. Adjust to use ptids.
19835 * win32-low.c (current_inferior_tid): Delete.
19836 (current_inferior_ptid): New.
19837 (debug_event_ptid): New.
19838 (thread_rec): Take a ptid. Adjust.
19839 (child_add_thread): Add `pid' argument. Adjust to use ptids.
19840 (child_delete_thread): Ditto.
19841 (do_initial_child_stuff): Add `attached' argument. Add process to
19842 processes table.
19843 (child_fetch_inferior_registers, child_store_inferior_registers):
19844 Adjust.
19845 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
19846 (win32_attach): Pass 1 to do_initial_child_stuff.
19847 (win32_kill): Adjust interface. Remove process from processes
19848 table.
19849 (win32_detach): Ditto.
19850 (win32_join): Adjust interface.
19851 (win32_thread_alive): Take a ptid.
19852 (win32_resume): Adjust to use ptids.
19853 (get_child_debug_event): Ditto.
19854 (win32_wait): Adjust interface. Remove exiting process from
19855 processes table.
19856
19857 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19858
19859 Non-stop mode support.
19860
19861 * server.h (non_stop): Declare.
19862 (gdb_client_data, handler_func): Declare.
19863 (delete_file_handler, add_file_handler, start_event_loop):
19864 Declare.
19865 (handle_serial_event, handle_target_event, push_event)
19866 (putpkt_notif): Declare.
19867 * target.h (enum resume_kind): New.
19868 (struct thread_resume): Replace `step' field by `kind' field.
19869 (TARGET_WNOHANG): Define.
19870 (struct target_ops) <wait>: Add `options' argument.
19871 <supports_non_stop, async, start_non_stop>: New fields.
19872 (target_supports_non_stop, target_async): New.
19873 (start_non_stop): Declare.
19874 (mywait): Add `options' argument.
19875 * target.c (mywait): Add `options' argument. Print child exit
19876 notifications here.
19877 (start_non_stop): New.
19878 * server.c (non_stop, own_buf, mem_buf): New globals.
19879 (struct vstop_notif): New.
19880 (notif_queue): New global.
19881 (queue_stop_reply, push_event, discard_queued_stop_replies)
19882 (send_next_stop_reply): New.
19883 (start_inferior): Adjust to use resume_kind. Adjust to mywait
19884 interface changes.
19885 (attach_inferior): In non-stop mode, don't wait for the target
19886 here.
19887 (handle_general_set): Handle QNonStop.
19888 (handle_query): When handling qC, return the current general
19889 thread, instead of the first thread of the list.
19890 (handle_query): If the backend supports non-stop mode, include
19891 QNonStop+ in the qSupported query response.
19892 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
19893 and non-stop mode.
19894 (handle_v_attach, handle_v_run): Handle non-stop mode.
19895 (handle_v_stopped): New.
19896 (handle_v_requests): Report support for vCont;t. Handle vStopped.
19897 (myresume): Adjust to use resume_kind. Handle non-stop.
19898 (queue_stop_reply_callback): New.
19899 (handle_status): Handle non-stop mode.
19900 (main): Clear non_stop flag on reconnection. Use the event-loop.
19901 Refactor serial protocol handling from here ...
19902 (process_serial_event): ... to this new function. When GDB
19903 selects any thread, select one here. In non-stop mode, wait until
19904 GDB acks all pending events before exiting.
19905 (handle_serial_event, handle_target_event): New.
19906 * remote-utils.c (remote_open): Install remote_desc in the event
19907 loop.
19908 (remote_close): Remove remote_desc from the event loop.
19909 (putpkt_binary): Rename to...
19910 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
19911 (putpkt_binary): New as wrapper around putpkt_binary_1.
19912 (putpkt_notif): New.
19913 (prepare_resume_reply): In non-stop mode, don't change the
19914 general_thread.
19915 * event-loop.c: New.
19916 * Makefile.in (OBJ): Add event-loop.o.
19917 (event-loop.o): New rule.
19918
19919 * linux-low.h (pid_of): Moved here.
19920 (lwpid_of): New.
19921 (get_lwp_thread): Use lwpid_of.
19922 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
19923 * linux-low.c (pid_of): Delete.
19924 (inferior_pid): Use lwpid_of.
19925 (linux_event_pipe): New.
19926 (target_is_async_p): New.
19927 (delete_lwp): New.
19928 (handle_extended_wait): Use lwpid_of.
19929 (add_lwp): Don't set lwpid field.
19930 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
19931 (linux_kill_one_lwp): If killing a running lwp, stop it first.
19932 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
19933 (linux_detach_one_lwp): If detaching from a running lwp, stop it
19934 first. Adjust to linux_wait_for_event interface changes. Use
19935 lwpid_of.
19936 (linux_detach): Don't delete the main lwp here.
19937 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
19938 (status_pending_p): Don't consider explicitly suspended lwps.
19939 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
19940 pointer. Add OPTIONS argument. Change return type to int. Use
19941 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
19942 (linux_wait_for_event): Take an integer pid instead of a lwp_info
19943 pointer. Add status pointer argument. Return a pid instead of a
19944 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
19945 changes. In non-stop mode, don't switch to a random thread.
19946 (linux_wait): Rename to...
19947 (linux_wait_1): ... this. Add target_options argument, and handle
19948 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
19949 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
19950 clean exit and signal exit code. Don't stop all threads in
19951 non-stop mode. In all-stop mode, only stop all threads when
19952 reporting a stop to GDB. Handle explicit thread stop requests.
19953 (async_file_flush, async_file_mark): New.
19954 (linux_wait): New.
19955 (send_sigstop): Use lwpid_of.
19956 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
19957 interface changes. In non-stop mode, don't switch to a random
19958 thread.
19959 (linux_resume_one_lwp): Use lwpid_of.
19960 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
19961 (linux_resume_one_thread): ... this. Handle resume_stop. In
19962 non-stop mode, don't look for pending flag in all threads.
19963 (resume_status_pending_p): Don't consider explicitly suspended
19964 threads.
19965 (my_waitpid): Reimplement. Emulate __WALL.
19966 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19967 Use lwpid_of.
19968 (sigchld_handler, linux_supports_non_stop, linux_async)
19969 (linux_start_non_stop): New.
19970 (linux_target_ops): Register linux_supports_non_stop, linux_async
19971 and linux_start_non_stop.
19972 (initialize_low): Install SIGCHLD handler.
19973 * thread-db.c (thread_db_create_event, find_one_thread)
19974 (thread_db_get_tls_address): Use lwpid_of.
19975 * win32-low.c (win32_detach): Adjust to use resume_kind.
19976 (win32_wait): Add `options' argument.
19977 * spu-low.c (spu_resume): Adjust to use resume_kind.
19978 (spu_wait): Add `options' argument.
19979
19980 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19981
19982 Decouple target code from remote protocol.
19983
19984 * target.h (enum target_waitkind): New.
19985 (struct target_waitstatus): New.
19986 (struct target_ops) <wait>: Return an unsigned long. Take a
19987 target_waitstatus pointer instead of a char pointer.
19988 (mywait): Likewise.
19989 * target.c (mywait): Change prototype to return an unsigned long.
19990 Take a target_waitstatus pointer instead of a char pointer. Adjust.
19991 * server.h (thread_from_wait, old_thread_from_wait): Delete
19992 declarations.
19993 (prepare_resume_reply): Change prototype to take a
19994 target_waitstatus.
19995 * server.c (thread_from_wait, old_thread_from_wait): Delete.
19996 (last_status, last_ptid): New.
19997 (start_inferior): Remove "statusptr" argument. Adjust. Return a
19998 pid instead of a signal.
19999 (attach_inferior): Remove "status" and "signal" parameters.
20000 Adjust.
20001 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
20002 not as an address.
20003 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
20004 (handle_v_requests, myresume): Remove "status" and "signal"
20005 parameters. Adjust.
20006 (handle_status): New.
20007 (main): Delete local `status'. Adjust.
20008 * remote-utils.c: Include target.h.
20009 (prepare_resume_reply): Change prototype to take a
20010 target_waitstatus. Adjust.
20011
20012 * linux-low.c (linux_wait): Adjust to new target_ops->wait
20013 interface.
20014 * spu-low.c (spu_wait): Adjust.
20015 * win32-low.c (enum target_waitkind, struct target_waitstatus):
20016 Delete.
20017 (win32_wait): Adjust.
20018
20019 2009-04-01 Pedro Alves <pedro@codesourcery.com>
20020
20021 * target.h (struct thread_resume): Delete leave_stopped member.
20022 (struct target_ops): Add a `n' argument to the `resume' callback.
20023 * server.c (start_inferior): Adjust.
20024 (handle_v_cont, myresume): Adjust.
20025 * linux-low.c (check_removed_breakpoint): Adjust to resume
20026 interface change, and to removed leave_stopped field.
20027 (resume_ptr): Delete.
20028 (struct thread_resume_array): New.
20029 (linux_set_resume_request): Add new `arg' parameter. Adjust to
20030 resume interface change.
20031 (linux_continue_one_thread, linux_queue_one_thread)
20032 (resume_status_pending_p): Check if the resume field is NULL
20033 instead of checking the leave_stopped member.
20034 (linux_resume): Adjust to the target resume interface change.
20035 * spu-low.c (spu_resume): Adjust to the target resume interface
20036 change.
20037 * win32-low.c (win32_detach, win32_resume): Ditto.
20038
20039 2009-04-01 Pedro Alves <pedro@codesourcery.com>
20040
20041 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
20042 flag.
20043 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
20044 pending.
20045 (linux_continue_one_thread): Only preserve the stepping flag if
20046 there's a pending breakpoint.
20047
20048 2009-03-31 Pedro Alves <pedro@codesourcery.com>
20049
20050 * server.c (main): After the inferior having exited, call
20051 remote_close before exiting gdbserver.
20052
20053 2009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
20054
20055 Fix size of FPSCR in Power 7 processors.
20056 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
20057 (PPC_FEATURE_HAS_DFP): New #define.
20058 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
20059 size of the FPSCR.
20060
20061 2009-03-23 Pedro Alves <pedro@codesourcery.com>
20062
20063 * server.c (handle_query) Whitespace and formatting.
20064
20065 2009-03-22 Pedro Alves <pedro@codesourcery.com>
20066
20067 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
20068 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
20069 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
20070 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
20071 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
20072 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
20073 Makefile.in, configure.ac: Fix whitespace throughout.
20074 * configure: Regenerate.
20075
20076 2009-03-22 Pedro Alves <pedro@codesourcery.com>
20077
20078 * inferiors.c (find_inferior): Make it safe for the callback
20079 function to delete the currently iterated inferior.
20080
20081 2009-03-22 Pedro Alves <pedro@codesourcery.com>
20082
20083 * Makefile.in (linuw_low_h): Move higher.
20084 (thread-db.o): Depend on $(linux_low_h).
20085
20086 2009-03-17 Pedro Alves <pedro@codesourcery.com>
20087
20088 Rename "process" to "lwp" throughout.
20089
20090 * linux-low.c (all_processes): Rename to...
20091 (all_lwps): ... this.
20092 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
20093 (add_process): Rename to ...
20094 (add_lwp): ... this. Adjust.
20095 (linux_create_inferior): Adjust.
20096 (linux_attach_lwp): Adjust.
20097 (linux_attach): Adjust.
20098 (linux_kill_one_process): Rename to ...
20099 (linux_kill_one_lwp): ... this. Adjust.
20100 (linux_kill): Adjust.
20101 (linux_detach_one_process): Rename to ...
20102 (linux_detach_one_lwp): ... this. Adjust.
20103 (linux_detach): Adjust.
20104 (check_removed_breakpoint): Adjust.
20105 (status_pending_p): Adjust.
20106 (linux_wait_for_process): Rename to ...
20107 (linux_wait_for_lwp): ... this. Adjust.
20108 (linux_wait_for_event): Adjust.
20109 (send_sigstop): Adjust.
20110 (wait_for_sigstop): Adjust.
20111 (stop_all_processes): Rename to ...
20112 (stop_all_lwps): ... this.
20113 (linux_resume_one_process): Rename to ...
20114 (linux_resume_one_lwp): ... this. Adjust.
20115 (linux_set_resume_request, linux_continue_one_thread)
20116 (linux_queue_one_thread, resume_status_pending_p)
20117 (usr_store_inferior_registers, regsets_store_inferior_registers)
20118 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
20119 Adjust.
20120 * linux-low.h (get_process): Rename to ...
20121 (get_lwp): ... this. Adjust.
20122 (get_thread_process): Rename to ...
20123 (get_thread_lwp): ... this. Adjust.
20124 (get_process_thread): Rename to ...
20125 (get_lwp_thread): ... this. Adjust.
20126 (struct process_info): Rename to ...
20127 (struct lwp_info): ... this.
20128 (all_processes): Rename to ...
20129 (all_lwps): ... this.
20130 * proc-service.c (ps_lgetregs): Adjust.
20131 * thread-db.c (thread_db_create_event, find_one_thread)
20132 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
20133
20134 2009-03-14 Pedro Alves <pedro@codesourcery.com>
20135
20136 * server.c (handle_query): Handle "qAttached".
20137
20138 2009-03-13 Nathan Sidwell <nathan@codesourcery.com>
20139
20140 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
20141 GPLv3, update license URL.
20142
20143 2009-03-01 Doug Evans <dje@google.com>
20144
20145 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
20146 (server_h): Add gdb_signals.h.
20147 (signals.o): Update.
20148 * server.h (target_signal_from_host,target_signal_to_host_p)
20149 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
20150
20151 2009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
20152
20153 * remote-utils.c (getpkt): Also generate remote-debug
20154 information if noack_mode is set.
20155
20156 2009-02-06 Pedro Alves <pedro@codesourcery.com>
20157
20158 * server.c (handle_query): Report qXfer:siginfo:read and
20159 qXfer:siginfo:write as supported and handle them.
20160 * target.h (struct target_ops) <qxfer_siginfo>: New field.
20161 * linux-low.c (linux_xfer_siginfo): New.
20162 (linux_target_ops): Set it.
20163
20164 2009-01-26 Pedro Alves <pedro@codesourcery.com>
20165
20166 * server.c (gdbserver_usage): Mention --remote-debug.
20167 (main): Accept '--remote-debug' switch.
20168
20169 2009-01-18 Doug Evans <dje@google.com>
20170
20171 * regcache.c (new_register_cache): No need to check result of xcalloc.
20172 * server.c (handle_search_memory): Back out calls to xmalloc,
20173 result is checked and error is returned to user upon failure.
20174 (handle_query): Ditto. Add more checks for result of malloc.
20175 (handle_v_cont): Check result of malloc, report error back to
20176 user upon failure.
20177 (handle_v_run): Ditto. Call freeargv.
20178 * server.h (freeargv): Declare.
20179 * utils.c (freeargv): New fn.
20180
20181 2009-01-15 Doug Evans <dje@google.com>
20182
20183 * gdbreplay.c (perror_with_name): Make arg const char *.
20184 * server.h (target_signal_to_name): Make return type const char *.
20185 * thread-db.c (thread_db_err_str): Make return type const char *.
20186 * utils.c (perror_with_name): Make arg const char *.
20187
20188 2009-01-14 Pedro Alves <pedro@codesourcery.com>
20189
20190 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
20191 when handling a EXIT_PROCESS_DEBUG_EVENT.
20192
20193 2009-01-06 Joel Brobecker <brobecker@adacore.com>
20194
20195 * gdbreplay.c (gdbreplay_version): Update copyright year.
20196 * server.c (gdbserver_version): Likewise.
20197
20198 2009-01-05 Doug Evans <dje@google.com>
20199
20200 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
20201 (handle_extended_wait): Improve comment.
20202
20203 2008-12-13 Doug Evans <dje@google.com>
20204
20205 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
20206 * server.h (ATTR_MALLOC): New macro.
20207 (xmalloc,xcalloc,xstrdup): Declare.
20208 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
20209 * inferiors.c: Ditto.
20210 * linux-low.c: Ditto.
20211 * mem-break.c: Ditto.
20212 * regcache.c: Ditto.
20213 * remote-utils.c: Ditto.
20214 * server.c: Ditto.
20215 * target.c: Ditto.
20216 * win32-low.c: Ditto.
20217
20218 2008-12-12 Doug Evans <dje@google.com>
20219
20220 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
20221 in debugging printf.
20222
20223 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
20224
20225 2008-12-09 Doug Evans <dje@google.com>
20226
20227 * linux-low.h (struct process_info): Delete member tid, unused.
20228 * thread-db.c (find_one_thread): Update.
20229 (maybe_attach_thread): Update.
20230
20231 2008-12-02 Pedro Alves <pedro@codesourcery.com>
20232
20233 * target.h (struct target_ops): Add qxfer_osdata member.
20234 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
20235 and dirent.h.
20236 (linux_qxfer_osdata): New functions.
20237 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
20238 callback.
20239 * server.c (handle_query): Handle "qXfer:osdata:read:".
20240 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
20241 (buffer_xml_printf): New functions.
20242 * server.h (struct buffer): New.
20243 (buffer_grow_str, buffer_grow_str0): New macros.
20244 (buffer_grow, buffer_free, buffer_init, buffer_finish)
20245 (buffer_xml_printf): Declare.
20246
20247 2008-11-24 Doug Evans <dje@google.com>
20248
20249 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
20250
20251 2008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
20252
20253 * server.c (handle_v_run): Always use the supplied argument list.
20254
20255 2008-11-19 Bob Wilson <bob.wilson@acm.org>
20256
20257 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
20258 (xtensa_regmap_table): Add entry for scompare1.
20259
20260 2008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
20261
20262 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
20263 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
20264 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
20265 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
20266 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
20267 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
20268 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
20269 XML target descriptions.
20270 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
20271 when inferior is running on an ISA 2.05 or later processor. Add
20272 special case to return offset for full 64-bit slot of FPSCR when
20273 in 32-bits.
20274
20275 2008-11-14 Daniel Gutson <dgutson@codesourcery.com>
20276
20277 * Makefile.in (SFILES, clean): Added sparc64 files.
20278 (reg-sparc64.o, reg-sparc64.c): New.
20279 * configure.srv (sparc*-*-linux*): New configuration.
20280 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
20281 syscall arguments for SPARC.
20282 (regsets_store_inferior_registers): Likewise.
20283 * linux-sparc-low.c: New file.
20284
20285 2008-10-21 Doug Evans <dje@google.com>
20286
20287 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
20288 (READLINE_DIR,READLINE_DEP): Delete.
20289 (INTERNAL_CFLAGS): Update.
20290 (LINTFLAGS): Update.
20291
20292 2008-10-10 Pedro Alves <pedro@codesourcery.com>
20293
20294 * server.c (handle_v_run): If GDB didn't specify an argv, use the
20295 whole argv from the last run, not just argv[0].
20296
20297 2008-09-08 Pedro Alves <pedro@codesourcery.com>
20298
20299 * regcache.c (new_register_cache): Return NULL if the register
20300 cache size isn't known yet.
20301 (free_register_cache): Avoid dereferencing a NULL regcache.
20302
20303 2008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
20304
20305 * configure.srv: Merge MIPS and MIPS64.
20306
20307 2008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
20308
20309 * Makefile.in (uninstall): Apply $(EXEEXT) too.
20310
20311 2008-08-18 Luis Machado <luisgpm@br.ibm.com>
20312
20313 * Makefile.in: Add required vsx dependencies.
20314
20315 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
20316 Declare init_registers_powerpc_vsx32l.
20317 Declare init_registers_powerpc_vsx64l.
20318 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
20319 (ppc_arch_setup): Check for VSX in hwcap.
20320 (ppc_fill_vsxregset): New function.
20321 (ppc_store_vsxregset): New function.
20322 Add new VSX entry in regset_info target_regsets.
20323
20324 * configure.srv: Add new VSX dependencies.
20325
20326 2008-08-12 Pedro Alves <pedro@codesourcery.com>
20327
20328 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
20329 (remote_open): Set or clear transport_is_reliable.
20330 (putpkt_binary): Don't expect acks in noack mode.
20331 (getpkt): Don't send ack/nac in noack mode.
20332 * server.c (handle_general_set): Handle QStartNoAckMode.
20333 (handle_query): If connected by tcp pass QStartNoAckMode+ in
20334 qSupported.
20335 (main): Reset noack_mode on every connection.
20336 * server.h (noack_mode): Declare.
20337
20338 2008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20339
20340 * Makefile.in (GDBREPLAY_OBS): New variable.
20341 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
20342
20343 2008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
20344 Daniel Jacobowitz <dan@codesourcery.com>
20345
20346 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
20347 (usr_store_inferior_registers): Likewise.
20348 (regsets_store_inferior_registers): Likewise.
20349
20350 2008-07-31 Rolf Jansen <rj@surtec.com>
20351 Pedro Alves <pedro@codesourcery.com>
20352
20353 * configure.ac: Check for memmem declaration.
20354 * server.c [HAVE_MALLOC_H]: Include malloc.h.
20355 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
20356 (disable_packet_qfThreadInfo): Unconditionally compile.
20357 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
20358 * configure, config.in: Regenerate.
20359
20360 2008-07-28 Doug Kwan <dougkwan@google.com>
20361
20362 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
20363 (linux_write_memory): Remove declaration of errno.
20364
20365 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
20366
20367 * linux-low.c (handle_extended_wait): Do not use "status"
20368 variable uninitialized.
20369
20370 2008-07-07 Pedro Alves <pedro@codesourcery.com>
20371
20372 * server.c (handle_v_attach): Inhibit reporting dll changes.
20373
20374 2008-06-27 Pedro Alves <pedro@codesourcery.com>
20375
20376 * remote-utils.c (prepare_resume_reply): If requested, don't
20377 output "thread:TID" in the T stop reply.
20378
20379 * server.c (disable_packet_vCont, disable_packet_Tthread)
20380 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
20381 (handle_query): If requested, disable support for qC, qfThreadInfo
20382 and qsThreadInfo.
20383 (handle_v_requests): If requested, disable support for vCont.
20384 (gdbserver_show_disableable): New.
20385 (main): Handle --disable-packet and --disable-packet=LIST.
20386
20387 * server.h (disable_packet_vCont, disable_packet_Tthread)
20388 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
20389
20390 2008-06-20 Carlos O'Donell <carlos@codesourcery.com>
20391
20392 * server.c (gdbserver_usage): Mention --version.
20393
20394 2008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
20395
20396 * Makefile.in (gdbreplay.o): New rule.
20397
20398 2008-06-06 Joseph Myers <joseph@codesourcery.com>
20399
20400 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
20401 message, not gdbserver.
20402
20403 2008-06-05 Vladimir Prus <vladimir@codesourcery.com>
20404 Nathan Sidwell <nathan@codesourcery.com>
20405 Joseph Myers <joseph@codesourcery.com>
20406
20407 * acinclude.m4: Include ../../config/acx.m4.
20408 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
20409 * configure, config.in: Regenerate.
20410 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
20411 * server.c (gdbserver_version): Print PKGVERSION.
20412 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
20413 (main): Adjust gdbserver_usage calls.
20414 * gdbreplay.c (version, host_name): Add declarations.
20415 (gdbreplay_version, gdbreplay_usage): New.
20416 (main): Accept --version and --help options.
20417
20418 2008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
20419
20420 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
20421 (arm_breakpoint_at): Handle Thumb.
20422 (the_low_target): Add comment.
20423
20424 2008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
20425
20426 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
20427
20428 2008-05-09 Doug Evans <dje@google.com>
20429
20430 * server.h (decode_search_memory_packet): Declare.
20431 * remote-utils.c (decode_search_memory_packet): New fn.
20432 * server.c (handle_search_memory_1): New fn.
20433 (handle_search_memory): New fn.
20434 (handle_query): Process qSearch:memory packets.
20435
20436 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
20437
20438 * regcache.c (registers_length): Remove.
20439 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
20440 full register packet.
20441 * regcache.h (registers_length): Remove prototype.
20442 * server.h (PBUFSIZ): Define to 16384.
20443
20444 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
20445
20446 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
20447 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
20448 powerpc-64l.o, and powerpc-altivec64l.o.
20449 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
20450 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
20451 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
20452 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
20453 rs6000/power-linux.xml, and rs6000/power64-linux.xml
20454 to srv_xmlfiles.
20455
20456 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
20457 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
20458 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
20459 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
20460 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
20461 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
20462 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
20463 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
20464 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
20465 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
20466 (clean): Update.
20467
20468 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
20469 (init_registers_powerpc_32l): ... this new prototype.
20470 (init_registers_powerpc_32): Remove, replace by ...
20471 (init_registers_powerpc_altivec32l): ... this new prototype.
20472 (init_registers_powerpc_e500): Remove, replace by ...
20473 (init_registers_powerpc_e500l): ... this new prototype.
20474 (init_registers_ppc64): Remove, replace by ...
20475 (init_registers_powerpc_64l): ... this new prototype.
20476 (init_registers_powerpc_64): Remove, replace by ...
20477 (init_registers_powerpc_altivec64l): ... this new prototype.
20478 (ppc_num_regs): Set to 73.
20479 (PT_ORIG_R3, PT_TRAP): Define if necessary.
20480 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
20481 (ppc_cannot_store_register): Handle orig_r3 and trap.
20482 (ppc_arch_setup): Update init_registers_... calls.
20483 (ppc_fill_gregset): Handle orig_r3 and trap.
20484
20485 * inferiors.c (clear_inferiors): Reset current_inferior.
20486
20487 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
20488
20489 * acinclude.m4: Add override.m4.
20490 * configure: Regenerate.
20491
20492 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
20493
20494 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
20495 initial call to init_register_ppc64.
20496
20497 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
20498
20499 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
20500 single powerpc*-*-linux* case.
20501 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
20502
20503 2008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
20504
20505 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
20506 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
20507 from reg_xmlfiles.
20508 * linux-ppc-low.c: Include <elf.h>.
20509 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
20510 (ppc_hwcap): New global variable.
20511 (ppc_regmap): Remove __SPE__ #ifdef sections.
20512 (ppc_regmap_e500): New global variable.
20513 (ppc_cannot_store_register): Update __SPE__ special case.
20514 (ppc_get_hwcap): New function.
20515 (ppc_arch_setup): Use it to determine whether inferior supports
20516 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
20517 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
20518 Do not access registers if target does not support AltiVec.
20519 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
20520 Do not access registers if target does not support SPE.
20521 (target_regsets): Unconditionally include AltiVec and SPE regsets.
20522
20523 2008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
20524
20525 * linux-low.c (disabled_regsets, num_regsets): New.
20526 (use_regsets_p): Delete.
20527 (linux_wait_for_process): Clear disabled_regsets.
20528 (regsets_fetch_inferior_registers): Check and set it.
20529 (regsets_store_inferior_registers): Likewise.
20530 (linux_fetch_registers, linux_store_registers): Do not use
20531 use_regsets_p.
20532 (initialize_low): Allocate disabled_regsets.
20533
20534 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
20535
20536 * Makefile.in (LIBOBJS): New.
20537 (OBS): Use LIBOBJS.
20538 (memmem.o): New rule.
20539 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
20540 * configure: Regenerated.
20541
20542 2008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
20543
20544 * server.c (handle_query): Never return "unsupported" for
20545 qXfer:features:read queries.
20546
20547 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
20548
20549 * server.c (get_features_xml): Fix inverted condition.
20550 (handle_query): Always support qXfer:feature:read.
20551
20552 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
20553
20554 * server.c (wrapper_argv): New.
20555 (start_inferior): Handle wrapper_argv. If set, expect an extra
20556 trap.
20557 (gdbserver_usage): Document --wrapper.
20558 (main): Parse --wrapper.
20559
20560 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20561
20562 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
20563 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
20564 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
20565 (ppc_set_pc): Likewise.
20566 (ppc_arch_setup): New function.
20567 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
20568 of collect_register.
20569 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
20570
20571 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20572
20573 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
20574 instead of linux-ppc64-low.o.
20575 * linux-ppc64-low.c: Remove file.
20576 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
20577 (linux-ppc64-low.o): Remove rule.
20578
20579 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
20580 (init_registers_powerpc_64): Likewise.
20581 (ppc_regmap): Conditionally define depending on __powerpc64__.
20582 (ppc_cannot_store_register): Do not special-case "fpscr" when
20583 compiled on __powerpc64__.
20584 (ppc_collect_ptrace_register): New function.
20585 (ppc_supply_ptrace_register): New function.
20586 (ppc_breakpoint): Change type to "unsigned int".
20587 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
20588 (the_low_target): Conditionally provide initializers for the
20589 arch_setup member depending on __powerpc64__. Install
20590 collect_ptrace_register and supply_ptrace_register members.
20591
20592 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20593
20594 * regcache.h (gdbserver_xmltarget): Add extern declaration.
20595 * server.c (gdbserver_xmltarget): Define.
20596 (get_features_xml): Use it to replace "target.xml" and arch_string.
20597
20598 * configure.srv: Remove srv_xmltarget. Add XML files that were
20599 mentioned there to srv_xmlfiles instead. Remove conditional tests
20600 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
20601 srv_xmlfiles and srv_regobj to include all possible choices.
20602 * configure.ac (srv_xmltarget): Remove.
20603 (srv_xmlfiles): Do not add "target.xml".
20604 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
20605 checks for supplementary target information.
20606 * configure: Regenerate.
20607 * Makefile.in (XML_TARGET): Remove.
20608 (target.xml): Remove rule.
20609 (clean): Do not clean up target.xml.
20610 (.PRECIOUS): Do not mention target.xml.
20611
20612 * target.h (struct target_ops): Remove arch_string member.
20613 * linux-low.c (linux_arch_string): Remove.
20614 (linux_target_ops): Remove arch_string initializer.
20615 * linux-low.h (struct linux_target_ops): Remove arch_string member.
20616 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
20617 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
20618 * spu-low.c (spu_arch_string): Remove.
20619 (spu_target_ops): Remove arch_string initializer.
20620 * win32-low.c (win32_arch_string): Remove.
20621 (win32_target_ops): Remove arch_string initializer.
20622 * win32-low.h (struct win32_target_ops): Remove arch_string member.
20623 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
20624 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
20625
20626 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20627
20628 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
20629 by collect_ptrace_register and supply_ptrace_register hooks.
20630 * linux-low.c (fetch_register): Use supply_ptrace_register callback
20631 instead of checking for the_low_target.left_pad_xfer.
20632 (usr_store_inferior_registers): Use collect_ptrace_register callback
20633 instead of checking for the_low_target.left_pad_xfer.
20634
20635 * linux-s390-low.c (s390_collect_ptrace_register): New function.
20636 (s390_supply_ptrace_register): Likewise.
20637 (s390_fill_gregset): Call s390_collect_ptrace_register.
20638 (the_low_target): Update.
20639
20640 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
20641 (ppc_supply_ptrace_register): Likewise.
20642 (the_low_target): Update.
20643
20644 * linux-i386-low.c (the_low_target): Update.
20645 * linux-x86-64-low.c (the_low_target): Update.
20646
20647 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20648
20649 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
20650 reg-s390.o and reg-s390x.o.
20651
20652 * linux-low.c (new_inferior): New global variable.
20653 (linux_create_inferior, linux_attach): Set it.
20654 (linux_wait_for_process): Call the_low_target.arch_setup after the
20655 target has stopped for the first time.
20656 (initialize_low): Do not call the_low_target.arch_setup.
20657
20658 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
20659 (s390_set_pc): Likewise.
20660 (s390_arch_setup): New function.
20661 (the_low_target): Use s390_arch_setup as arch_setup routine.
20662
20663 * regcache.c (realloc_register_cache): New function.
20664 (set_register_cache): Call it for each existing regcache.
20665
20666 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20667
20668 * server.h (init_registers): Remove prototype.
20669
20670 * linux-low.h (struct linux_target_ops): Add arch_setup field.
20671 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
20672 instead of init_registers ().
20673 * linux-arm-low.c (init_registers_arm): Add prototype.
20674 (init_registers_arm_with_iwmmxt): Likewise.
20675 (the_low_target): Add initializer for arch_setup field.
20676 * linux-cris-low.c (init_registers_cris): Add prototype.
20677 (the_low_target): Add initializer for arch_setup field.
20678 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
20679 (the_low_target): Add initializer for arch_setup field.
20680 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
20681 (the_low_target): Add initializer for arch_setup field.
20682 * linux-ia64-low.c (init_registers_ia64): Add prototype.
20683 (the_low_target): Add initializer for arch_setup field.
20684 * linux-m32r-low.c (init_registers_m32r): Add prototype.
20685 (the_low_target): Add initializer for arch_setup field.
20686 * linux-m68k-low.c (init_registers_m68k): Add prototype.
20687 (the_low_target): Add initializer for arch_setup field.
20688 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
20689 (init_registers_mips64_linux): Likewise.
20690 (the_low_target): Add initializer for arch_setup field.
20691 * linux-ppc-low.c (init_registers_ppc): Add prototype.
20692 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
20693 (the_low_target): Add initializer for arch_setup field.
20694 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
20695 (init_registers_powerpc_64): Likewise.
20696 (the_low_target): Add initializer for arch_setup field.
20697 * linux-s390-low.c (init_registers_s390): Add prototype.
20698 (init_registers_s390x): Likewise.
20699 (the_low_target): Add initializer for arch_setup field.
20700 * linux-sh-low.c (init_registers_sh): Add prototype.
20701 (the_low_target): Add initializer for arch_setup field.
20702 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
20703 (the_low_target): Add initializer for arch_setup field.
20704 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
20705 (the_low_target): Add initializer for arch_setup field.
20706
20707 * win32-low.h (struct win32_target_ops): Add arch_setup field.
20708 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
20709 instead of init_registers ().
20710 * win32-arm-low.c (init_registers_arm): Add prototype.
20711 (the_low_target): Add initializer for arch_setup field.
20712 * win32-i386-low.c (init_registers_i386): Add prototype.
20713 (the_low_target): Add initializer for arch_setup field.
20714
20715 * spu-low.c (init_registers_spu): Add prototype.
20716 (initialize_low): Call initialie_registers_spu () instead of
20717 initialize_registers ().
20718
20719 2008-02-19 Pedro Alves <pedro@codesourcery.com>
20720
20721 * server.c (handle_v_requests): When handling the vRun and vAttach
20722 packets, if already debugging a process, don't kill it. Return an
20723 error instead.
20724
20725 2008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
20726
20727 * server.c (handle_query): Correct length check.
20728
20729 2008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
20730
20731 * win32-low.c (do_initial_child_stuff): Add process handle
20732 parameter. Set current_process_handle and current_process_id from the
20733 parameters. Clear globals.
20734 (win32_create_inferior): Don't set current_process_handle and
20735 current_process_id here. Instead pass them on the call to
20736 do_initial_child_stuff.
20737 (win32_attach): Likewise.
20738 (win32_clear_inferiors): New.
20739 (win32_kill): Don't close the current process handle or the
20740 current thread handle here. Instead call win32_clear_inferiors.
20741 (win32_detach): Don't open a new handle to the process. Call
20742 win32_clear_inferiors.
20743 (win32_join): Don't rely on current_process_handle; open a new
20744 handle using the process id.
20745 (win32_wait): Call win32_clear_inferiors when the inferior process
20746 has exited.
20747
20748 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
20749
20750 * server.c (monitor_show_help): Add "exit".
20751
20752 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
20753
20754 * Makefile.in (SFILES): Add linux-xtensa-low.c.
20755 (clean): Add reg-xtensa.c.
20756 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
20757 * configure.srv (xtensa*-*-linux*) New target.
20758 * linux-xtensa-low.c: New.
20759 * xtensa-xtregs.c: New.
20760
20761 2008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
20762
20763 * hostio.c: Don't include errno.h.
20764 (errno_to_fileio_errno): Move to hostio-errno.
20765 * hostio.c: (hostio_error): Remove the error parameter. Defer the
20766 error number outputting to the target->hostio_last_error callback.
20767 (hostio_packet_error): Use FILEIO_EINVAL directly.
20768 (handle_open, handle_pread, hostio_error, handle_unlink): Update
20769 calls to hostio_error.
20770 * hostio-errno.c: New.
20771 * server.h (hostio_last_error_from_errno): Declare.
20772 * target.h (target_ops): Add hostio_last_error member.
20773 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
20774 as hostio_last_error handler.
20775 * spu-low.c (spu_target_ops): Likewise.
20776 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
20777 (wince_hostio_last_error): New functions.
20778 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
20779 as hostio_last_error handler.
20780 (win32_target_ops) [!_WIN32_WCE]: Register
20781 hostio_last_error_from_errno as hostio_last_error handler.
20782 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
20783 (hostio-errno.o): New rule.
20784 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
20785 * configure.srv (srv_hostio_err_objs): New variable. Default to
20786 hostio-errno.o.
20787 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
20788 * configure: Regenerate.
20789
20790 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20791
20792 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
20793 (linux_kill, linux_detach): Clean up the process list.
20794 * remote-utils.c (remote_open): Improve port number parsing.
20795 (putpkt_binary, input_interrupt): Only send interrupts if the target
20796 is running.
20797 * server.c (extended_protocol): Make static.
20798 (attached): Define earlier.
20799 (exit_requested, response_needed, program_argv): New variables.
20800 (target_running): New.
20801 (start_inferior): Clear attached here.
20802 (attach_inferior): Set attached here.
20803 (require_running): Define.
20804 (handle_query): Use require_running and target_running. Implement
20805 "monitor exit".
20806 (handle_v_attach, handle_v_run): New.
20807 (handle_v_requests): Use require_running. Handle vAttach and vRun.
20808 (gdbserver_usage): Update.
20809 (main): Redo argument parsing. Handle --debug and --multi. Handle
20810 --attach along with other options or after the port. Save
20811 program_argv. Support no initial program. Resynchronize
20812 communication with GDB after an error. Handle "monitor exit".
20813 Use require_running and target_running. Always allow the extended
20814 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
20815 restart in extended mode.
20816 * README: Refer to the GDB manual. Update --attach usage.
20817
20818 2007-12-20 Andreas Schwab <schwab@suse.de>
20819
20820 * linux-low.c (STACK_SIZE): Define.
20821 (linux_tracefork_child): Use it. Use __clone2 on ia64.
20822 (linux_test_for_tracefork): Likewise.
20823
20824 2007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
20825
20826 * linux-low.c (linux_wait_for_event): Update messages. Do not
20827 reinsert auto-delete breakpoints.
20828 * mem-break.c (struct breakpoint): Change return type of handler to
20829 int.
20830 (set_breakpoint_at): Update handler type.
20831 (reinsert_breakpoint_handler): Return 1 instead of calling
20832 delete_breakpoint.
20833 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
20834 setting a new one.
20835 (check_breakpoints): Delete auto-delete breakpoints and return 2.
20836 * mem-break.h (set_breakpoint_at): Update handler type.
20837 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
20838 * win32-low.c (auto_delete_breakpoint): New.
20839 (get_child_debug_event): Use it.
20840
20841 2007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
20842
20843 * configure.ac: Check for pread and pwrite.
20844 * hostio.c (handle_pread): Fall back to lseek and read.
20845 (handle_pwrite): Fall back to lseek and write.
20846 * config.in, configure: Regenerated.
20847
20848 2007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
20849
20850 * server.c (myresume): Add own_buf argument.
20851 (main): Update calls.
20852
20853 2007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
20854
20855 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
20856 * remote-utils.c (remote_open): Do not call disable_async_io.
20857 (block_async_io): Delete.
20858 (unblock_async_io): Make static.
20859 (initialize_async_io): New.
20860 * server.c (handle_v_cont): Handle async I/O here.
20861 (myresume): Likewise. Move other common resume tasks here...
20862 (main): ... from here. Call initialize_async_io. Disable async
20863 I/O before the main loop.
20864 * server.h (initialize_async_io): Declare.
20865 (block_async_io, unblock_async_io): Delete prototypes.
20866 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
20867
20868 2007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
20869
20870 * remote-utils.c (readchar): Allow binary data in received messages.
20871
20872 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20873
20874 * win32-low.c (attaching): New global.
20875 (win32_create_inferior): Clear the `attaching' global.
20876 (win32_attach): Set the `attaching' global.
20877 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
20878 attaching. Only set a breakpoint at the entry point if not
20879 attaching.
20880
20881 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20882
20883 * server.c (main): Don't report dll events on the initial
20884 connection on attaches.
20885
20886 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20887
20888 * server.c (main): Relax numerical bases supported for the pid of
20889 the --attach command line argument.
20890
20891 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20892
20893 * win32-low.c (win32_attach): Call OpenProcess before
20894 DebugActiveProcess, not after. Add last error output to error
20895 call.
20896
20897 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20898
20899 * win32-low.c (win32_get_thread_context)
20900 (win32_set_thread_context): New functions.
20901 (thread_rec): Use win32_get_thread_context.
20902 (continue_one_thread, win32_resume): Use win32_set_thread_context.
20903 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
20904 field.
20905
20906 2007-12-03 Leo Zayas
20907 Pedro Alves <pedro_alves@portugalmail.pt>
20908
20909 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
20910 global variables.
20911 (child_add_thread): Minor cleanup.
20912 (child_continue): Resume artificially suspended threads before
20913 calling ContinueDebugEvent.
20914 (suspend_one_thread): New.
20915 (fake_breakpoint_event): New.
20916 (get_child_debug_event): Change return type to int. Check here if
20917 gdb sent an interrupt request. If a soft interrupt was requested,
20918 fake a breakpoint event. Return 0 if there is no event to handle,
20919 and 1 otherwise.
20920 (win32_wait): Don't check here if gdb sent an interrupt request.
20921 Ensure there is a valid event to handle.
20922 (win32_request_interrupt): Add soft interruption method as last
20923 resort.
20924
20925 2007-12-03 Leo Zayas
20926 Pedro Alves <pedro_alves@portugalmail.pt>
20927
20928 * win32-low.h (win32_thread_info): Add descriptions to the
20929 structure members. Replace `suspend_count' counter by a
20930 `suspended' flag.
20931 * win32-low.c (thread_rec): Update condition of when to get the
20932 context from the inferior. Rely on ContextFlags being set if it
20933 has already been retrieved. Only suspend the inferior thread if
20934 we haven't already. Warn if that fails.
20935 (continue_one_thread): s/suspend_count/suspended/. Only call
20936 ResumeThread once. Warn if that fails.
20937
20938 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20939
20940 * win32-low.c (win32_wait): Don't read from the inferior when it
20941 has already exited.
20942
20943 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20944
20945 * Makefile.in (win32_low_h): New variable.
20946 (win32-low.o): Add dependency on $(win32_low_h).
20947 (win32-arm-low.o, win32-i386-low.o): New rules.
20948
20949 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20950
20951 * hostio.c: Correct copyright year.
20952
20953 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20954
20955 * Makefile.in (OBS): Add hostio.o.
20956 (hostio.o): New rule.
20957 * server.h (handle_vFile): Declare.
20958 * hostio.c: New file.
20959 * server.c (handle_v_requests): Take packet_len and new_packet_len
20960 for binary packets. Call handle_vFile.
20961 (main): Update call to handle_v_requests.
20962
20963 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
20964
20965 * linux-low.c: Include <sched.h>.
20966
20967 2007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
20968
20969 * linux-low.c (linux_tracefork_grandchild): New.
20970 (linux_tracefork_child): Use clone.
20971 (linux_test_for_tracefork): Use clone; allocate and free a stack.
20972
20973 2007-10-31 Joel Brobecker <brobecker@adacore.com>
20974
20975 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
20976
20977 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
20978
20979 * linux-low.c (handle_extended_wait): Handle unexpected signals.
20980
20981 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
20982
20983 * inferiors.c (change_inferior_id): Delete.
20984 (add_pid_to_list, pull_pid_from_list): New.
20985 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
20986 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
20987 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
20988 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
20989 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
20990 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
20991 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
20992 (using_threads): Always set to 1.
20993 (handle_extended_wait): New.
20994 (add_process): Do not set TID.
20995 (linux_create_inferior): Set must_set_ptrace_flags.
20996 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
20997 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
20998 (linux_thread_alive): Rename TID argument to LWPID.
20999 (linux_wait_for_process): Handle unknown processes. Do not use TID.
21000 (linux_wait_for_event): Do not use TID or check using_threads. Update
21001 call to dead_thread_notify. Call handle_extended_wait.
21002 (linux_create_inferior): Use PTRACE_SETOPTIONS.
21003 (send_sigstop): Delete sigstop_sent.
21004 (wait_for_sigstop): Avoid TID.
21005 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
21006 (linux_test_for_tracefork): New.
21007 (linux_lookup_signals): Use thread_db_active and
21008 linux_supports_tracefork_flag.
21009 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
21010 * linux-low.h (get_process_thread): Avoid TID.
21011 (struct process_ifo): Move thread_known and tid to the end. Remove
21012 sigstop_sent.
21013 (linux_attach_lwp, thread_db_init): Update prototypes.
21014 * server.h (change_inferior_id): Delete prototype.
21015 (add_pid_to_list, pull_pid_from_list): New prototypes.
21016 * thread-db.c (thread_db_use_events): New.
21017 (find_first_thread): Rename to...
21018 (find_one_thread): ...this. Update callers and messages. Do not
21019 call fatal. Check thread_db_use_events. Do not call
21020 change_inferior_id or new_thread_notify.
21021 (maybe_attach_thread): Update. Do not call new_thread_notify.
21022 (thread_db_init): Set thread_db_use_events. Check use_events.
21023 * utils.c (fatal, warning): Correct message prefix.
21024
21025 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
21026
21027 * Makefile.in (clean): Remove new files.
21028 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
21029 (powerpc-64.o, powerpc-64.c): New rules.
21030 * configure.srv: Use alternate register sets for powerpc64-*-linux*
21031 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
21032 with SPE.
21033 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
21034 SPE targets.
21035 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
21036 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
21037 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
21038 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
21039 (target_regsets): Add AltiVec and SPE register sets.
21040 * configure.ac: Check for AltiVec and SPE.
21041 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
21042 (ppc_fill_vrregset, ppc_store_vrregset): New.
21043 (target_regsets): Add AltiVec register set.
21044 * configure: Regenerated.
21045
21046 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
21047
21048 * linux-low.c (O_LARGEFILE): Define.
21049 (linux_read_memory): Use /proc/PID/mem.
21050 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
21051 * configure, config.in: Regenerated.
21052
21053 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
21054
21055 * linux-low.c (linux_wait_for_event): Do not pass signals while
21056 single-stepping.
21057
21058 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
21059
21060 * win32-low.c (create_process): New.
21061 (win32_create_inferior): Use create_process instead of
21062 CreateProcess. If create_process failed retry appending an ".exe"
21063 suffix. Store the GetLastError result immediatelly after
21064 create_process calls and use it on the call to error.
21065
21066 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
21067
21068 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
21069
21070 2007-08-23 Joel Brobecker <brobecker@adacore.com>
21071
21072 * configure.ac: Switch license to GPLv3.
21073
21074 2007-08-01 Michael Snyder <msnyder@access-company.com>
21075
21076 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
21077
21078 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
21079
21080 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
21081 typedef.
21082 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
21083 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
21084 CloseToolhelp32Snapshot.
21085 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
21086 CloseToolhelp32Snapshot.
21087
21088 2007-07-27 Michael Snyder <michael.snyder@access-company.com>
21089
21090 * server.c (main): Check for inferior exit before main loop.
21091
21092 2007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
21093
21094 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
21095 instead of on tmp_desc.
21096
21097 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
21098 Daniel Jacobowitz <dan@codesourcery.com>
21099
21100 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
21101 (add_thread): Minor cleanups.
21102 (clear_inferiors): Move lower in the file. Clear the DLL
21103 list.
21104 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
21105 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
21106 (xml_escape_text): New.
21107 * server.c (handle_query): Handle qXfer:libraries:read. Report it
21108 for qSupported.
21109 (handle_v_cont): Report errors.
21110 (gdbserver_version): Update.
21111 (main): Correct size of own_buf. Do not report initial DLL events.
21112 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
21113 (unloaded_dll, xml_escape_text): New.
21114 * win32-low.c (enum target_waitkind): Update comments.
21115 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
21116 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
21117 (win32_EnumProcessModules, win32_GetModuleInformation)
21118 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
21119 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
21120 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
21121 (win32_Module32First, win32_Module32Next, load_toolhelp)
21122 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
21123 (get_child_debug_event): Handle DLL events.
21124 (win32_wait): Likewise.
21125
21126 2007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
21127
21128 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
21129 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
21130
21131 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
21132
21133 * win32-low.c (handle_output_debug_string): Ignore event if not
21134 waiting.
21135
21136 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
21137
21138 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
21139
21140 2007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
21141
21142 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
21143
21144 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
21145
21146 * inferiors.c (change_inferior_id): Add comment.
21147 * linux-low.c (check_removed_breakpoint): Add an early
21148 prototype. Improve debug output.
21149 (linux_attach): Doc update.
21150 (linux_detach_one_process, linux_detach): Clean up before releasing
21151 each process.
21152 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
21153 * linux-low.h (struct process_info): Doc improvement.
21154 * mem-break.c (delete_all_breakpoints): New.
21155 * mem-break.h (delete_all_breakpoints): New prototype.
21156 * thread-db.c (find_first_thread): New.
21157 (thread_db_create_event): Call it instead of
21158 thread_db_find_new_threads. Clean up unused variables.
21159 (maybe_attach_thread): Remove first thread handling.
21160 (thread_db_find_new_threads): Use find_first_thread.
21161 (thread_db_get_tls_address): Likewise.
21162
21163 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
21164
21165 * thread-db.c (thread_db_find_new_threads): Add prototype.
21166 (thread_db_create_event): Check for the main thread before adding
21167 a new thread.
21168 (maybe_attach_thread): Only enable event reporting if TID == 0.
21169 (thread_db_get_tls_address): Check for new threads.
21170
21171 2007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
21172
21173 * linux-low.c (linux_create_inferior): Try execv before execvp.
21174 * spu-low.c (spu_create_inferior): Likewise.
21175
21176 2007-06-13 Mike Frysinger <vapier@gentoo.org>
21177
21178 * linux-low.c (linux_create_inferior): Change execv to execvp.
21179 * spu-low.c (spu_create_inferior): Likewies.
21180
21181 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
21182
21183 * Makefile.in (clean): Clean new files instead of deleted ones.
21184 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
21185 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
21186 rules.
21187 * configure.srv: Specify XML files and new regformats for MIPS and
21188 MIPS64 GNU/Linux.
21189 * linux-mips-low.c (mips_num_regs): Set to only used registers.
21190 (mips_regmap): Do not fetch $0. Remove unused registers. Add
21191 an entry for the restart register.
21192 (mips_cannot_fetch_register, mips_cannot_store_register)
21193 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
21194 register names to match the XML descriptions.
21195 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
21196 restart register instead of $0.
21197
21198 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
21199 Markus Deuling <deuling@de.ibm.com>
21200
21201 * remote-utils.c (decode_xfer_write): New function.
21202 * server.h (decode_xfer_write): Add prototype.
21203 * server.c (handle_query): Add PACKET_LEN argument. Support
21204 qXfer:spu:read and qXfer:spu:write packets.
21205 (main): Pass packet_len to handle_query.
21206 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
21207 * target.h (target_ops): Add qxfer_spu.
21208
21209 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
21210
21211 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
21212 accessing non-seekable spufs files.
21213
21214 2007-05-16 Markus Deuling <deuling@de.ibm.com>
21215
21216 * server.c (handle_query): Add reply for qC packet.
21217
21218 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21219 Leo Zayas <lerele@champenstudios@com>
21220
21221 * server.h (check_remote_input_interrupt_request): New function.
21222 * remote_utils.c (INVALID_DESCRIPTOR): New define.
21223 (remote_desc): Initialize with INVALID_DESCRIPTOR.
21224 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
21225 (check_remote_input_interrupt_request): New function.
21226 * server.h (check_remote_input_interrupt_request): Declare.
21227 * win32-low.c (winapi_DebugBreakProcess,
21228 winapi_GenerateConsoleCtrlEvent): New typedefs.
21229 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
21230 to 250 ms.
21231 (win32_wait): Check for remote interrupt request
21232 with check_remote_input_interrupt_request.
21233 (win32_request_interrupt): New function.
21234 (win32_target_op): Set request_interrupt to win32_request_interrupt.
21235
21236 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21237
21238 * win32-low.c (debug_registers_changed,
21239 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
21240 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
21241 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
21242 (thread_rec): Get context using the low target.
21243 (child_add_thread): Call thread_added on the low target,
21244 which does the same thing.
21245 (regptr): Delete.
21246 (do_initial_child_stuff): Remove debug registers references.
21247 Set context using the low target. Resume threads after
21248 setting the contexts.
21249 (child_continue): Remove dead variable. Remove debug
21250 registers references.
21251 (child_fetch_inferior_registers): Go through the low target.
21252 (do_child_store_inferior_registers): Remove.
21253 (child_store_inferior_registers): Go through the low target.
21254 (win32_resume): Remove debug registers references.
21255 Set context using the low target.
21256 (handle_exception): Change return type to void. Don't record
21257 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
21258 first chance exception.
21259 (get_child_debug_event): Change return type to void. Remove
21260 goto loop. Always return after waiting for debug event.
21261 (win32_wait): Convert to switch statement. Handle spurious
21262 events.
21263
21264 * win32-i386-low.c (debug_registers_changed,
21265 debug_registers_used): New.
21266 (initial_stuff): Rename to ...
21267 (i386_initial_stuff): ... this. Clear debug registers
21268 state variables.
21269 (store_debug_registers): Delete.
21270 (i386_get_thread_context): New.
21271 (load_debug_registers): Delete.
21272 (i386_set_thread_context): New.
21273 (i386_thread_added): New.
21274 (single_step): Rename to ...
21275 (i386_single_step): ... this.
21276 (do_fetch_inferior_registers): Rename to ...
21277 (i386_fetch_inferior_register): ... this.
21278 (i386_store_inferior_register): New.
21279 (the_low_target): Adapt to new interface.
21280
21281 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
21282 (arm_get_thread_context): New.
21283 (arm_set_thread_context): New.
21284 (regptr): New.
21285 (do_fetch_inferior_registers): Rename to ...
21286 (arm_fetch_inferior_register): ... this.
21287 (arm_store_inferior_register): New.
21288 (arm_wince_breakpoint): Reimplement as unsigned long.
21289 (arm_wince_breakpoint_len): Define.
21290 (the_low_target): Adapt to new interface.
21291
21292 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
21293 load_debug_registers. Add get_thread_context, set_thread_context,
21294 thread_added and store_inferior_register. Rename
21295 fetch_inferior_registers to fetch_inferior_register.
21296 (regptr): Remove declaration.
21297
21298 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21299
21300 * linux-low.c (linux_detach): Change return type to int. Return 0.
21301 * spu-low.c (spu_detach): Likewise.
21302
21303 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21304
21305 * target.h (target_ops): Change return type of detach to int.
21306 Add join.
21307 (join_inferior): New.
21308 * server.c (main): Don't skip detach support on mingw32.
21309 If the inferior doesn't support detaching return error.
21310 Call join_inferior instead of using waitpid.
21311 * linux-low.c (linux_join): New.
21312 (linux_target_op): Add linux_join.
21313 * spu-low.c (spu_join): New.
21314 (spu_target_ops): Add spu_join.
21315 * win32-low.c (win32_detach): Adapt to new interface.
21316 Reopen current_process_handle before detaching. Issue a child
21317 resume before detaching.
21318 (win32_join): New.
21319 (win32_target_op): Add win32_join.
21320
21321 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21322
21323 * win32-low.c (win32-attach): Fix return value.
21324 * target.h (target_ops): Describe ATTACH return values.
21325
21326 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21327
21328 * win32-low.c (GETPROCADDRESS): Define.
21329 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
21330 (winapi_DebugSetProcessKillOnExit): Likewise.
21331 (win32_create_inferior): Force usage of ansi CreateProcessA.
21332 (win32_attach): Use GETPROCADDRESS.
21333 (win32_detach): Likewise.
21334
21335 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21336
21337 * win32-low.c (win32_wait): Don't use WSTOPSIG.
21338
21339 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
21340
21341 * win32-low.c: Commit leftover changes from 2007-03-29.
21342
21343 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
21344
21345 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
21346 fields short instead of int. Add explicit padding.
21347 (i387_cache_to_fsave): Remove unnecessary casts.
21348 (i387_fsave_to_cache): Doc fix.
21349 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
21350
21351 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
21352
21353 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
21354 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
21355
21356 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
21357
21358 * configure.srv (arm*-*-mingw32ce*): Move near the other
21359 arm targets.
21360
21361 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
21362
21363 * configure.ac: Add errno checking.
21364 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
21365 sys/file.h and malloc.h.
21366 (AC_CHECK_DECLS): Add perror.
21367 (srv_mingwce): Handle.
21368 * configure.srv (i[34567]86-*-cygwin*): Add
21369 win32-i386-low.o to srv_tgtobj.
21370 (i[34567]86-*-mingw*): Likewise.
21371 (arm*-*-mingw32ce*): Add case.
21372 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
21373 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
21374 [__MINGW32CE__] (strerror): New function.
21375 [__MINGW32CE__] (errno): Define to GetLastError.
21376 [__MINGW32CE__] (COUNTOF): New macro.
21377 (remote_open): Remove extra close call.
21378 * mem-break.c (delete_breakpoint_at): New function.
21379 * mem-break.h (delete_breakpoint_at): Declare.
21380 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
21381 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
21382 [USE_WIN32API] (read, write): Add char* casts.
21383 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
21384 * server.h: Include wincecompat.h on Windows CE.
21385 [HAVE_ERRNO_H]: Check.
21386 (perror): Declare if not declared.
21387 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
21388 (perror_with_name): Remove errno declaration.
21389 * wincecompat.h: New.
21390 * wincecompat.c: New.
21391 * win32-low.h: New.
21392 * win32-arm-low.c: New.
21393 * win32-i386-low.c: New.
21394 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
21395 (OUTMSG2): Make it safe.
21396 (_T): New macro.
21397 (COUNTOF): New macro.
21398 (NUM_REGS): Get it from the low target.
21399 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
21400 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
21401 (thread_rec): Let low target handle debug registers.
21402 (child_add_thread): Likewise.
21403 (child_init_thread_list): Likewise.
21404 (continue_one_thread): Likewise.
21405 (regptr): New.
21406 (do_child_fetch_inferior_registers): Move to ...
21407 * win32-i386-low.c: ... here, and rename to ...
21408 (do_fetch_inferior_registers): ... this.
21409 * win32-low.c (child_fetch_inferior_registers):
21410 Go through the low target.
21411 (do_child_store_inferior_registers): Use regptr.
21412 (strwinerror): New function.
21413 (win32_create_inferior): Handle Windows CE.
21414 Use strwinerror instead of strerror on Windows error
21415 codes. Add program to the error output.
21416 Don't close the main thread handle on Windows CE.
21417 (win32_attach): Use coredll.dll on Windows CE.
21418 (win32_kill): Close current process and current
21419 thread handles.
21420 (win32_detach): Use coredll.dll on Windows CE.
21421 (win32_resume): Let low target handle debug registers, and
21422 step request.
21423 (handle_exception): Add/Remove initial breakpoint. Avoid
21424 non-existant WSTOPSIG on Windows CE.
21425 (win32_read_inferior_memory): Cast to remove warning.
21426 (win32_arch_string): Go through the low target.
21427 (initialize_low): Call set_breakpoint_data with the low
21428 target's breakpoint.
21429 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
21430 FOP_REGNUM, mappings): Move to ...
21431 * win32-i386-low.c: ... here.
21432 * win32-low.c (win32_thread_info): Move to ...
21433 * win32-low.h: ... here.
21434 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
21435 win32-arm-low.c and wincecompat.c.
21436 (all:): Add $EXEEXT.
21437 (install-only:): Likewise.
21438 (gdbserver:): Likewise.
21439 (gdbreplay:): Likewise.
21440 * config.in: Regenerate.
21441 * configure: Regenerate.
21442
21443 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
21444
21445 * win32-low.c: Rename typedef thread_info to
21446 win32_thread_info throughout.
21447
21448 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
21449
21450 * win32-i386-low.c: Rename to ...
21451 * win32-low.c: ... this.
21452 * configure.srv: Replace win32-i386-low.o with win32-low.o.
21453 * Makefile.in: Likewise.
21454
21455 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
21456
21457 * remote-utils.c (monitor_output): Constify msg parameter.
21458 * server.h (monitor_output): Likewise.
21459 * win32-i386-low.c (handle_output_debug_string): New.
21460 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
21461 handle_output_debug_string.
21462 (get_child_debug_event): Likewise.
21463
21464 2007-03-27 Mat Hostetter <mat@lcs.mit.edu>
21465
21466 * server.c (main): Correct strtoul check.
21467
21468 2007-03-27 Jon Ringle <jon@ringle.org>
21469
21470 * linux-low.c: Check __ARCH_HAS_MMU__ also.
21471
21472 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
21473
21474 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
21475
21476 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
21477
21478 * terminal.h: Check HAVE_SGTTY_H.
21479
21480 2007-02-27 Mat Hostetter <mat@lcs.mit.edu>
21481
21482 * remote-utils.c (remote_open): Print out the assigned port number.
21483
21484 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
21485
21486 * remote-utils.c (monitor_output): New function.
21487 * server.c (debug_threads): Define here.
21488 (monitor_show_help): New function.
21489 (handle_query): Handle qRcmd.
21490 (main): Do not handle 'd' packet.
21491 * server.h (debug_threads, remote_debug, monitor_output): Declare.
21492 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
21493 of debug_threads.
21494
21495 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21496
21497 * Makefile.in (EXEEXT): New.
21498 (clean): Use $(EXEEXT).
21499
21500 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21501
21502 * target.h (target_ops): Rename send_signal to request_interrupt,
21503 and remove enum target_signal parameter.
21504 * linux-low.c (linux_request_interrupt): Rename from
21505 linux_send_signal, and always send SIGINT.
21506 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
21507 and always send SIGINT.
21508 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
21509 of send_signal.
21510 (input_interrupt): Likewise.
21511
21512 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21513
21514 * server.c (get_features_xml): Check if target implemented
21515 arch_string.
21516 * win32-i386-low.c (win32_arch_string): New.
21517 (win32_target_ops): Add win32_arch_string as arch_string member.
21518
21519 2007-02-22 Markus Deuling <deuling@de.ibm.com>
21520
21521 * spu-low.c (spu_arch_string): New.
21522 (spu_target_ops): Add spu_arch_string.
21523
21524 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
21525
21526 * remote-utils.c: Remove HAVE_TERMINAL_H check.
21527 * configure.ac: Do not check for terminal.h.
21528 * configure, config.in: Regenerated.
21529
21530 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21531
21532 * Makefile.in (OBS): Add $(XML_BUILTIN).
21533 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
21534 (clean): Update.
21535 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
21536 (arm-with-iwmmxt.c): New.
21537 * config.in, configure: Regenerate.
21538 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
21539 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
21540 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
21541 (arm*-*-linux*): Add iWMMXt and regset support.
21542 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
21543 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
21544 (arm_store_wmmxregset, target_regsets): New.
21545 * server.c (get_features_xml): Take annex argument. Check builtin
21546 XML documents.
21547 (handle_query): Handle multiple annexes.
21548
21549 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
21550
21551 * remote-utils.c [USE_WIN32API] (read, write): Define.
21552 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
21553 write.
21554
21555 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
21556
21557 * linux-i386-low.c (the_low_target): Set arch_string.
21558 * linux-x86-64-low.c (the_low_target): Likewise.
21559 * linux-low.c (linux_arch_string): New.
21560 (linux_target_ops): Add it.
21561 * linux-low.h (struct linux_target_ops): Add arch_string.
21562 * server.c (write_qxfer_response): Use const void * for DATA.
21563 (get_features_xml): New.
21564 (handle_query): Handle qXfer:features:read. Report it for qSupported.
21565 * target.h (struct target_ops): Add arch_string method.
21566
21567 2007-01-03 Denis Pilat <denis.pilat@st.com>
21568 Daniel Jacobowitz <dan@codesourcery.com>
21569
21570 * linux-low.c (linux_kill): Handle being called with no threads.
21571 * win32-i386-low.c (win32_kill): Likewise.
21572 (get_child_debug_event): Clear current_process_handle.
21573
21574 2006-12-30 Denis PILAT <denis.pilat@st.com>
21575 Daniel Jacobowitz <dan@codesourcery.com>
21576
21577 * remote-utils.c (remote_open): Check the type of specified
21578 serial port devices before opening them.
21579 * server.c (main): Kill the inferior if an error occurs during
21580 the first remote_open.
21581
21582 2006-12-05 Markus Deuling <deuling@de.ibm.com>
21583
21584 * README: Update supported targets.
21585
21586 2006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
21587
21588 * Makefile.in (clean): Remove reg-mips64.c.
21589 (reg-mips64.c, reg-mips64.o): New rules.
21590 * configure.srv: Handle mips64. Include regset support for mips.
21591 * linux-mips-low.c (union mips_register): New.
21592 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
21593 (mips_breakpoint, mips_breakpoint_at): Use int.
21594 (mips_collect_register, mips_supply_register)
21595 (mips_collect_register_32bit, mips_supply_register_32bit)
21596 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
21597 (mips_store_fpregset, target_regsets): New.
21598 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
21599
21600 2006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
21601
21602 * configure.srv: Add target "spu*-*-*".
21603 * Makefile.in (clean): Remove reg-spu.c.
21604 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
21605 * spu-low.c: New file.
21606
21607 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21608
21609 * configure.ac: Correct td_thr_tls_get_addr test.
21610 * configure: Regenerated.
21611
21612 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21613
21614 * linux-low.c (linux_wait_for_event): Reformat. Use the
21615 pass_signals array.
21616 * remote-utils.c (decode_address_to_semicolon): New.
21617 * server.c (pass_signals, handle_general_set): New.
21618 (handle_query): Mention QPassSignals for qSupported.
21619 (main): Call handle_general_set.
21620 * server.h (pass_signals, decode_address_to_semicolon): New.
21621
21622 2006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
21623
21624 * server.c (handle_query): Correct error handling for read_auxv.
21625
21626 2005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
21627
21628 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
21629 and srv_linux_thread_db to yes.
21630 * linux-s390-low.c (s390_fill_gregset): New function.
21631 (target_regsets): Define data structure.
21632
21633 2006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
21634
21635 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
21636 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
21637 * config.in, configure: Regenerated.
21638 * inferiors.c (gdb_id_to_thread): New function.
21639 (gdb_id_to_thread_id): Use it.
21640 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
21641 * linux-low.h (struct process_info): Add th member.
21642 (thread_db_get_tls_address): New prototype.
21643 * remote-utils.c (decode_address): Make non-static.
21644 * server.c (handle_query): Handle qGetTLSAddr.
21645 * server.h (gdb_id_to_thread, decode_address): New prototypes.
21646 * target.h (struct target_ops): Add get_tls_address.
21647 * thread-db.c (maybe_attach_thread): Save the thread handle.
21648 (thread_db_get_tls_address): New.
21649
21650 2006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
21651
21652 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
21653 (linux_resume_one_process): Take a siginfo_t *. Update all
21654 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
21655 (struct pending_signals): Add a siginfo_t.
21656 (linux_wait_for_process): Always set last_status.
21657 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
21658 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
21659 * linux-low.h (struct process_info): Add last_status.
21660
21661 2006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
21662
21663 * remote-utils.c (try_rle): New function.
21664 (putpkt_binary): Use it.
21665
21666 2006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
21667
21668 * Makefile.in (clean): Clean reg-x86-64-linux.c.
21669 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
21670 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
21671 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
21672 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
21673 point registers.
21674
21675 2006-08-08 Richard Sandiford <richard@codesourcery.com>
21676
21677 * server.c (terminal_fd): New variable.
21678 (old_foreground_pgrp): Likewise.
21679 (restore_old_foreground_pgrp): New function.
21680 (start_inferior): Record the terminal file descriptor in terminal_fd
21681 and its original foreground group in old_foreground_pgrp. Register
21682 restore_old_foreground_pgrp with atexit().
21683
21684 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
21685
21686 * server.c (handle_query): Correct qPart to qXfer.
21687
21688 2006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
21689
21690 * configure.ac: Check for more headers which are missing on
21691 Windows. Automatically supply -lwsock32 and USE_WIN32API.
21692 * configure.srv: Add Cygwin and mingw32.
21693 * remote-utils.c: Don't include headers unconditionally which
21694 are missing on mingw32. Include <winsock.h> for mingw32.
21695 (remote_open): Adjust for mingw32 support. Flush
21696 standard error after writing to it.
21697 (remote_close, putpkt_binary, input_interrupt, block_async_io)
21698 (unblock_async_io, enable_async_io, disable_async_io)
21699 (readchar, getpkt): Update for Winsock support.
21700 (prepare_resume_reply): Expect a protocol signal number.
21701 * server.c: Disable <sys/wait.h> on mingw32.
21702 (start_inferior): Adjust for mingw32 support. Flush
21703 standard error after writing to it.
21704 (attach_inferior): Likewise. Use protocol signal
21705 numbers.
21706 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
21707 and names.
21708 * win32-i386-low.c: New file.
21709 * Makefile.in (XM_CLIBS): Set.
21710 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
21711 (win32-i386-low.o): New dependency rule.
21712 * linux-low.c (linux_wait): Use target signal numbers.
21713 * target.h (struct target_ops): Doc fix.
21714 * server.h (target_signal_to_name): New prototype.
21715 * gdbreplay.c: Don't include headers unconditionally which
21716 are missing on mingw32. Include <winsock.h> for mingw32.
21717 (remote_close, remote_open): Adjust for Winsock support.
21718 * configure, config.in: Regenerated.
21719
21720 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
21721
21722 * server.c (decode_xfer_read, write_qxfer_response): New.
21723 (handle_query): Take a packet length argument. Handle
21724 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
21725 the qSupported response.
21726 (main): Update call to handle_query.
21727
21728 2006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
21729
21730 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
21731 (putpkt_binary): Renamed from putpkt and adjusted for binary
21732 data.
21733 (putpkt): New wrapper for putpkt_binary.
21734 (readchar): Don't mask off the high bit.
21735 (decode_X_packet): New function.
21736 * server.c (main): Call putpkt_binary if a handler sets the packet
21737 length. Save the length of the incoming packet. Handle 'X'.
21738 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
21739
21740 2006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
21741
21742 * server.c (handle_query): Handle qSupported.
21743
21744 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21745
21746 * remote-utils.c (all_symbols_looked_up): New variable.
21747 (look_up_one_symbol): Check it.
21748 * server.h (look_up_one_symbol): New declaration.
21749 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
21750
21751 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21752
21753 * Makefile.in (linux-arm-low.o): Update dependencies.
21754 * linux-arm-low.c: Include "gdb_proc_service.h".
21755 (PTRACE_GET_THREAD_AREA): Define.
21756 (ps_get_thread_area): New function.
21757
21758 2006-05-09 Nathan Sidwell <nathan@codesourcery.com>
21759
21760 * configure.srv (m68k*-*-uclinux*): New target.
21761 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
21762 (linux_resume_one_process): Remove extraneous cast.
21763 (linux_read_offsets): New.
21764 (linux_target_op): Add linux_read_offsets on mmuless systems.
21765 * server.c (handle_query): Add qOffsets logic.
21766 * target.h (struct target_ops): Add read_offsets.
21767
21768 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21769
21770 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
21771 (PTRACE_GET_THREAD_AREA): Define.
21772 (ps_get_thread_area): New function.
21773 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
21774 (linux-x86-64-low.o): Update.
21775
21776 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21777
21778 * configure.ac: Remove checks for prfpregset_t.
21779 * gdb_proc_service.h: New file.
21780 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
21781 new "gdb_proc_service.h".
21782 * proc-service.c: Likewise.
21783 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
21784 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
21785 * Makefile.in (gdb_proc_service_h): Updated.
21786 * configure, config.in: Regenerated.
21787
21788 2006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21789
21790 * remote-utils.c (prepare_resume_reply): Move declaration
21791 of gdb_id_from_wait to the top of the block.
21792
21793 2006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
21794
21795 * linux-low.c (regsets_store_inferior_registers): Read the regset
21796 from the target before filling it.
21797
21798 2006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21799
21800 * server.c (attach_inferior): Return SIGTRAP for a successful
21801 attach.
21802
21803 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
21804
21805 * Makefile.in (OBS): Add version.o.
21806 (STAGESTUFF): Delete.
21807 (version.o): Add dependencies.
21808 (version.c): Replace rule.
21809 (clean): Remove version.c.
21810 * server.c (gdbserver_version): New.
21811 (gdbserver_usage): Use printf.
21812 (main): Handle --version and --help.
21813 * server.h (version, host_name): Add declarations.
21814
21815 2005-12-23 Eli Zaretskii <eliz@gnu.org>
21816
21817 * linux-arm-low.c:
21818 * linux-arm-low.c:
21819 * inferiors.c:
21820 * i387-fp.h:
21821 * i387-fp.c:
21822 * gdbreplay.c:
21823 * regcache.c:
21824 * proc-service.c:
21825 * mem-break.h:
21826 * mem-break.c:
21827 * linux-x86-64-low.c:
21828 * linux-sh-low.c:
21829 * linux-s390-low.c:
21830 * linux-ppc64-low.c:
21831 * linux-ppc-low.c:
21832 * linux-mips-low.c:
21833 * linux-m68k-low.c:
21834 * linux-m32r-low.c:
21835 * linux-low.h:
21836 * linux-low.c:
21837 * linux-ia64-low.c:
21838 * linux-i386-low.c:
21839 * linux-crisv32-low.c:
21840 * thread-db.c:
21841 * terminal.h:
21842 * target.h:
21843 * target.c:
21844 * server.h:
21845 * server.c:
21846 * remote-utils.c:
21847 * regcache.h:
21848 * utils.c:
21849 * Makefile.in:
21850 * configure.ac:
21851 * gdbserver.1: Add (C) after Copyright. Update the FSF
21852 address.
21853
21854 2005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
21855
21856 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
21857 (arm_breakpoint_at): Recognize both breakpoints.
21858 (the_low_target): Use the correct breakpoint instruction.
21859
21860 2005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
21861
21862 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
21863 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
21864 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
21865 (the_low_target): Update.
21866
21867 2005-10-25 Andreas Schwab <schwab@suse.de>
21868
21869 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
21870
21871 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
21872 (ia64_num_regs): Reduce to 462.
21873
21874 2005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
21875
21876 * acinclude.m4: Correct quoting.
21877 * aclocal.m4: Regenerated.
21878
21879 Suggested by SZOKOVACS Robert <szo@ies.hu>:
21880 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
21881 (thread_db_init): Call thread_db_err_str.
21882 * configure.ac: Check for TD_VERSION.
21883 * config.in, configure: Regenerated.
21884
21885 2005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21886
21887 * server.h (error, fatal, warning): Add ATTR_FORMAT.
21888
21889 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21890
21891 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
21892 is not available. Define HAVE_PTRACE_GETREGS if it is.
21893 * config.in, configure: Regenerated.
21894 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
21895 * linux-i386-low.c, linux-m68k-low.c: Update to use
21896 HAVE_PTRACE_GETREGS.
21897 * linux-low.c (regsets_fetch_inferior_registers)
21898 (regsets_store_inferior_registers): Only return 0 if we processed
21899 GENERAL_REGS.
21900 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
21901 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
21902
21903 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21904
21905 * inferiors.c (struct thread_info): Add gdb_id.
21906 (add_thread): Add gdb_id argument.
21907 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
21908 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
21909 calls to add_thread.
21910 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
21911 * server.c (handle_query): Use thread_to_gdb_id.
21912 (handle_v_cont, main): Use gdb_id_to_thread_id.
21913 * server.h (add_thread): Update prototype.
21914 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
21915 prototypes.
21916
21917 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21918
21919 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
21920 left-padded registers.
21921 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
21922 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
21923
21924 2005-07-01 Steve Ellcey <sje@cup.hp.com>
21925
21926 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
21927 * configure: Regenerate.
21928 * config.in: Regenerate.
21929 * server.h (NEED_DECLARATION_STRERROR):
21930 Replace with !HAVE_DECL_STRERROR.
21931
21932 2005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
21933
21934 * linux-low.c (linux_wait, linux_send_signal): Don't test
21935 an unsigned long variable for > 0 if it could be MAX_ULONG.
21936 * server.c (myresume): Likewise.
21937 * target.c (set_desired_inferior): Likewise.
21938
21939 2005-06-13 Mark Kettenis <kettenis@gnu.org>
21940
21941 * configure.ac: Simplify and improve check for socklen_t.
21942 * configure, config.in: Regenerate.
21943
21944 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
21945
21946 * acconfig.h: Remove.
21947 * configure.ac: Add a test for socklen_t. Use three-argument
21948 AC_DEFINE throughout.
21949 * config.in: Regenerated using autoheader 2.59.
21950 * configure: Regenerated.
21951
21952 * gdbreplay.c (socklen_t): Provide a default.
21953 (remote_open): Use socklen_t.
21954 * remote-utils.c (socklen_t): Provide a default.
21955 (remote_open): Use socklen_t.
21956 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
21957 unsigned char.
21958
21959 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
21960 char for buffers.
21961 * linux-low.c (linux_read_memory, linux_write_memory)
21962 (linux_read_auxv): Likewise.
21963 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
21964 (check_mem_write): Likewise.
21965 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
21966 Likewise.
21967 * regcache.c (struct inferior_rgcache_data, registers_to_string)
21968 (registers_from_string, register_data): Likewise.
21969 * server.c (handle_query, main): Likewise.
21970 * server.h (convert_ascii_to_int, convert_int_to_ascii)
21971 (decode_M_packet): Likewise.
21972 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
21973 * target.h (struct target_ops): Update read_memory, write_memory,
21974 and read_auxv.
21975 (read_inferior_memory, write_inferior_memory): Update.
21976 * linux-low.h (struct linux_target_ops): Change type of breakpoint
21977 to unsigned char *.
21978 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
21979 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
21980 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
21981 linux-s390-low.c, linux-sh-low.c: Update for changes in
21982 read_inferior_memory and the_low_target->breakpoint.
21983
21984 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
21985
21986 * Makefile.in (SFILES): Add linux-ppc64-low.c.
21987 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
21988 * configure.srv: Add powerpc64-*-linux*.
21989 * linux-ppc64-low.c: New file.
21990
21991 2005-05-23 Orjan Friberg <orjanf@axis.com>
21992
21993 * linux-cris-low.c: New file with support for CRIS.
21994 * linux-crisv32-low.c: Ditto for CRISv32.
21995 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
21996 (clean): Add reg-cris.c and reg-crisv32.c.
21997 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
21998 reg-crisv32.o, and reg-crisv32.c to make rules.
21999 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
22000 recognized targets.
22001
22002 2005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
22003
22004 * linux-low.c (fetch_register): Ensure buffer size is a multiple
22005 of sizeof (PTRACE_XFER_TYPE).
22006 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
22007
22008 2005-05-12 Orjan Friberg <orjanf@axis.com>
22009
22010 * target.h (struct target_ops): Add insert_watchpoint,
22011 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
22012 pointers for hardware watchpoint support.
22013 * linux-low.h (struct linux_target_ops): Ditto.
22014 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
22015 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
22016 to linux_target_ops.
22017 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
22018 reply packet.
22019 * server.c (main): Recognize 'Z' and 'z' packets.
22020
22021 2005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
22022
22023 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
22024 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
22025 (the_low_target): Add new members.
22026
22027 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
22028
22029 * proc-service.c (ps_lgetregs): Search all_processes instead of
22030 all_threads.
22031
22032 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
22033
22034 * server.c (start_inferior): Change return type to int.
22035 (attach_inferior): Change sigptr to int *.
22036 (handle_v_cont, handle_v_requests): Change signal to int *.
22037 (main): Change signal to int.
22038
22039 2005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
22040
22041 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
22042 * configure.srv: Add m32r*-*-linux*.
22043 * linux-m32r-low.c: New file.
22044
22045 2005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
22046
22047 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
22048
22049 2005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
22050
22051 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
22052 Take unsigned long arguments for PIDs.
22053 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
22054 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
22055 (wait_for_sigstop, linux_resume_one_process)
22056 (regsets_fetch_inferior_registers, linux_send_signal)
22057 (linux_read_auxv): Likewise. Update the types of variables holding
22058 PIDs. Update format string specifiers.
22059 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
22060 * remote-utils.c (prepare_resume_reply): Likewise.
22061 * server.c (cont_thread, general_thread, step_thread)
22062 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
22063 unsigned long.
22064 (handle_query): Update format specifiers.
22065 (handle_v_cont, main): Use strtoul for thread IDs.
22066 * server.h (struct inferior_list_entry): Use unsigned long for ID.
22067 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
22068 (general_thread, step_thread, thread_from_wait)
22069 (old_thread_from_wait): Update.
22070 * target.h (struct thread_resume): Use unsigned long for THREAD.
22071 (struct target_ops): Use unsigned long for arguments to attach and
22072 thread_alive.
22073
22074 2005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
22075
22076 * acinclude.m4: Include bfd/bfd.m4 directly.
22077 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
22078 <agriffis@toolchain.org>.
22079 * aclocal.m4, configure: Regenerated.
22080
22081 2005-01-07 Andrew Cagney <cagney@gnu.org>
22082
22083 * configure.ac: Rename configure.in, require autoconf 2.59.
22084 * configure: Re-generate.
22085
22086 2004-12-08 Daniel Jacobowitz <dan@debian.org>
22087
22088 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
22089 LIBS when finished.
22090 * aclocal.m4: Regenerated.
22091 * configure: Regenerated.
22092
22093 2004-11-21 Andreas Schwab <schwab@suse.de>
22094
22095 * linux-m68k-low.c (m68k_num_gregs): Define.
22096 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
22097 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
22098 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
22099 (m68k_breakpoint_at): New. Add to the_low_target.
22100
22101 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
22102 srv_linux_thread_db to yes.
22103
22104 2004-10-20 Joel Brobecker <brobecker@gnat.com>
22105
22106 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
22107 (ARCH_SET_FS): Likewise.
22108 (ARCH_GET_FS): Likewise.
22109 (ARCH_GET_GS): Likewise.
22110
22111 2004-10-16 Daniel Jacobowitz <dan@debian.org>
22112
22113 * linux-i386-low.c (ps_get_thread_area): New.
22114 * linux-x86-64-low.c (ps_get_thread_area): New.
22115 * linux-low.c: Include <sys/syscall.h>.
22116 (linux_kill_one_process): Don't kill the first thread here.
22117 (linux_kill): Kill the first thread here.
22118 (kill_lwp): New function.
22119 (send_sigstop, linux_send_signal): Use it.
22120 * proc-service.c: Clean up #ifdefs.
22121 (fpregset_info): Delete.
22122 (ps_lgetregs): Update and enable implementation.
22123 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
22124 implementations.
22125 * remote-utils.c (struct sym_cache, symbol_cache): New.
22126 (input_interrupt): Print a clearer message.
22127 (async_io_enabled): New variable.
22128 (enable_async_io, disable_async_io): Use it. Update comments.
22129 (look_up_one_symbol): Use the symbol cache.
22130 * thread-db.c (thread_db_look_up_symbols): New function.
22131 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
22132
22133 2004-10-16 Daniel Jacobowitz <dan@debian.org>
22134
22135 * configure.in: Test for -rdynamic.
22136 * configure: Regenerated.
22137 * Makefile (INTERNAL_LDFLAGS): New.
22138 (gdbserver, gdbreplay): Use it.
22139
22140 2004-09-02 Andrew Cagney <cagney@gnu.org>
22141
22142 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
22143
22144 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
22145
22146 * linux-low.c (linux_wait): Clear all_processes list also.
22147
22148 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
22149
22150 * linux-low.c: Include <errno.h>. Remove extern declaration of
22151 errno.
22152
22153 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
22154
22155 * gdbreplay.c, server.h, utils.c: Update copyright years.
22156
22157 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
22158
22159 * server.c (main): Print child status or termination signal from
22160 variable 'signal', not 'sig'.
22161
22162 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
22163
22164 * linux-low.c (linux_read_memory): Change return type to
22165 int. Check for and return error from ptrace().
22166 * target.c (read_inferior_memory): Change return type to int. Pass
22167 back return status from the_target->read_memory().
22168 * target.h (struct target_ops): Adapt *read_memory() prototype.
22169 Update comment.
22170 (read_inferior_memory): Adapt prototype.
22171 * server.c (main): Return an error packet if
22172 read_inferior_memory() returns an error.
22173
22174 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
22175
22176 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
22177 Unify with other clean targets.
22178
22179 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
22180
22181 * server.c (handle_v_cont): Call set_desired_inferior.
22182
22183 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
22184
22185 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
22186
22187 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
22188
22189 * linux-low.c (linux_wait): Unblock async I/O.
22190 (linux_resume): Block and enable async I/O.
22191 * remote-utils.c (block_async_io, unblock_async_io): New functions.
22192 * server.h (block_async_io, unblock_async_io): Add prototypes.
22193
22194 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
22195
22196 * remote-utils.c (remote_open): Print a status notice after
22197 opening a TCP port.
22198 * server.c (attach_inferior): Print a status notice after
22199 attaching.
22200
22201 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
22202
22203 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
22204
22205 2004-02-26 Daniel Jacobowitz <drow@mvista.com>
22206
22207 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
22208 error packet.
22209 * server.c, target.h: Update copyright years.
22210
22211 2004-02-25 Roland McGrath <roland@redhat.com>
22212
22213 * target.h (struct target_ops): New member `read_auxv'.
22214 * server.c (handle_query): Handle qPart:auxv:read: query using that.
22215 * linux-low.c (linux_read_auxv): New function.
22216 (linux_target_ops): Initialize `read_auxv' member to that.
22217
22218 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22219
22220 Committed by Jim Blandy <jimb@redhat.com>.
22221
22222 * linux-s390-low.c (s390_num_regs): Update.
22223 (s390_regmap): Remove control registers. Use __s390x__ predefine
22224 instead of GPR_SIZE to distiguish s390 and s390x targets.
22225
22226 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
22227
22228 * linux-low.c: Update copyright year.
22229 (check_removed_breakpoint): Clear pending_is_breakpoint.
22230 (linux_set_resume_request, linux_queue_one_thread)
22231 (resume_status_pending_p): New functions.
22232 (linux_continue_one_thread): Use process->resume.
22233 (linux_resume): Only resume threads if there are no pending events.
22234 * linux-low.h (struct process_info): Add resume request
22235 pointer.
22236
22237 2004-01-30 Daniel Jacobowitz <drow@mvista.com>
22238
22239 * regcache.c (new_register_cache): Clear the allocated register
22240 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
22241
22242 2003-10-13 Daniel Jacobowitz <drow@mvista.com>
22243
22244 * linux-low.c (linux_resume): Take a struct thread_resume *
22245 argument.
22246 (linux_wait): Update call.
22247 (resume_ptr): New static variable.
22248 (linux_continue_one_thread): Renamed from
22249 linux_continue_one_process. Use resume_ptr.
22250 (linux_resume): Use linux_continue_one_thread.
22251 * server.c (handle_v_cont, handle_v_requests): New functions.
22252 (myresume): New function.
22253 (main): Handle 'v' case.
22254 * target.h (struct thread_resume): New type.
22255 (struct target_ops): Change argument of "resume" to struct
22256 thread_resume *.
22257 (myresume): Delete macro.
22258
22259 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
22260
22261 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
22262 (uninstall): Support DESTDIR.
22263
22264 Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
22265
22266 * configure.srv: Add xscale*linux copy of arm*linux entry.
22267
22268 2003-07-24 Daniel Jacobowitz <drow@mvista.com>
22269
22270 * linux-arm-low.c (arm_reinsert_addr): New function.
22271 (the_low_target): Add arm_reinsert_addr.
22272
22273 2003-07-08 Mark Kettenis <kettenis@gnu.org>
22274
22275 * mem-break.c: Remove whitespace at end of file.
22276
22277 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
22278
22279 * configure.in: Check whether we need to prototype strerror.
22280 * server.h: Optionally prototype strerror.
22281 * gdbreplay.c (perror_with_name): Use strerror.
22282 * linux-low.c (linux_attach_lwp): Use strerror.
22283 * utils.c (perror_with_name): Use strerror.
22284 * config.in, configure: Regenerated.
22285
22286 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
22287
22288 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
22289 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
22290
22291 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
22292
22293 * Makefile.in (SFILES): Update.
22294 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
22295 low-sun3.c: Remove files.
22296
22297 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
22298
22299 * linux-low.c: Move comment to linux_thread_alive where it belonged.
22300 (linux_detach_one_process, linux_detach): New functions.
22301 (linux_target_ops): Add linux_detach.
22302 * server.c (main): Handle 'D' packet.
22303 * target.h (struct target_ops): Add "detach" member.
22304 (detach_inferior): Define.
22305
22306 2003-06-13 Mark Kettenis <kettenis@gnu.org>
22307
22308 From Kelley Cook <kelleycook@wideopenwest.com>:
22309 * configure.srv: Accept i[34567]86 variants.
22310
22311 2003-06-05 Daniel Jacobowitz <drow@mvista.com>
22312
22313 * linux-low.c (linux_wait_for_event): Correct comment typos.
22314 (linux_resume_one_process): Call check_removed_breakpoint.
22315 (linux_send_signal): New function.
22316 (linux_target_ops): Add linux_send_signal.
22317 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
22318 of kill.
22319 * target.h (struct target_ops): Add send_signal.
22320
22321 2003-05-29 Jim Blandy <jimb@redhat.com>
22322
22323 * linux-low.c (usr_store_inferior_registers): Transfer buf in
22324 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
22325 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
22326 away part of the register's value.
22327
22328 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
22329
22330 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
22331 (linux_wait_for_event, linux_init_signals): Likewise.
22332
22333 2003-03-17 Daniel Jacobowitz <drow@mvista.com>
22334
22335 * configure.in: Check for stdlib.h.
22336 * configure: Regenerated.
22337 * config.in: Regenerated.
22338
22339 2003-01-04 Andreas Schwab <schwab@suse.de>
22340
22341 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
22342
22343 2003-01-02 Andrew Cagney <ac131313@redhat.com>
22344
22345 * Makefile.in: Remove obsolete code.
22346
22347 2002-11-20 Daniel Jacobowitz <drow@mvista.com>
22348
22349 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
22350 defined(PT_FPR0_HI).
22351
22352 2002-11-17 Stuart Hughes <seh@zee2.com>
22353
22354 * linux-arm-low.c (arm_num_regs): Increase.
22355 (arm_regmap): Include status register.
22356
22357 2002-11-17 Daniel Jacobowitz <drow@mvista.com>
22358
22359 * linux-low.c (register_addr): Remove incorrect -1 check.
22360
22361 2002-08-29 Daniel Jacobowitz <drow@mvista.com>
22362
22363 * linux-low.c (linux_create_inferior): Call setpgid. Return
22364 the new PID.
22365 (unstopped_p, linux_signal_pid): Remove.
22366 (linux_target_ops): Remove linux_signal_pid.
22367 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
22368 global instead of target method.
22369 * target.h (struct target_ops): Remove signal_pid. Update comment
22370 for create_inferior.
22371 * server.c (signal_pid): New variable.
22372 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
22373 gdbserver. Set the child to be the foreground process group.
22374 (attach_inferior): Set signal_pid.
22375
22376 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
22377
22378 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
22379
22380 2002-08-20 Jim Blandy <jimb@redhat.com>
22381
22382 * Makefile.in (LDFLAGS): Allow the configure script to establish a
22383 default for this.
22384
22385 2002-08-01 Andrew Cagney <cagney@redhat.com>
22386
22387 * Makefile.in: Make chill references obsolete.
22388
22389 2002-07-24 Kevin Buettner <kevinb@redhat.com>
22390
22391 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
22392 * configure: Regenerate.
22393 * config.in: Regenerate.
22394
22395 2002-07-09 David O'Brien <obrien@FreeBSD.org>
22396
22397 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
22398 (perror_with_name, remote_close, remote_open, expect, play): Static.
22399
22400 2002-07-04 Michal Ludvig <mludvig@suse.cz>
22401
22402 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
22403 byte offsets instead of an array of indexes.
22404 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
22405
22406 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
22407
22408 * regcache.c: Add comment.
22409
22410 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
22411
22412 * thread-db.c: New file.
22413 * proc-service.c: New file.
22414 * acinclude.m4: New file.
22415 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
22416 proc-service.o, and thread-db.o.
22417 (linux-low.o): Add USE_THREAD_DB.
22418 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
22419 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
22420 * aclocal.m4: Regenerated.
22421 * config.in: Regenerated.
22422 * configure: Regenerated.
22423 * configure.in: Check for proc_service.h, sys/procfs.h,
22424 thread_db.h, and linux/elf.h headrs.
22425 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
22426 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
22427 Check for -lthread_db and thread support.
22428 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
22429 PowerPC, and SuperH.
22430 * i387-fp.c: Constify arguments.
22431 * i387-fp.h: Likewise.
22432 * inferiors.c: (struct thread_info): Renamed from
22433 `struct inferior_info'. Remove PID member. Use generic inferior
22434 list header. All uses updated.
22435 (inferiors, signal_pid): Removed.
22436 (all_threads): New variable.
22437 (get_thread): Define.
22438 (add_inferior_to_list): New function.
22439 (for_each_inferior): New function.
22440 (change_inferior_id): New function.
22441 (add_inferior): Removed.
22442 (remove_inferior): New function.
22443 (add_thread): New function.
22444 (free_one_thread): New function.
22445 (remove_thread): New function.
22446 (clear_inferiors): Use for_each_inferior and free_one_thread.
22447 (find_inferior): New function.
22448 (find_inferior_id): New function.
22449 (inferior_target_data): Update argument type.
22450 (set_inferior_target_data): Likewise.
22451 (inferior_regcache_data): Likewise.
22452 (set_inferior_regcache_data): Likewise.
22453 * linux-low.c (linux_bp_reinsert): Remove.
22454 (all_processes, stopping_threads, using_thrads)
22455 (struct pending_signals, debug_threads, pid_of): New.
22456 (inferior_pid): Replace with macro.
22457 (struct inferior_linux_data): Remove.
22458 (get_stop_pc, add_process): New functions.
22459 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
22460 Use add_process and add_thread.
22461 (linux_attach_lwp): New function, based on old linux_attach. Use
22462 add_process and add_thread. Set stop_expected for new threads.
22463 (linux_attach): New function.
22464 (linux_kill_one_process): New function.
22465 (linux_kill): Kill all LWPs.
22466 (linux_thread_alive): Use find_inferior_id.
22467 (check_removed_breakpoints, status_pending_p): New functions.
22468 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
22469 Update. Use WNOHANG. Wait for cloned processes also. Update process
22470 struct for the found process.
22471 (linux_wait_for_event): New function.
22472 (linux_wait): Use it. Support LWPs.
22473 (send_sigstop, wait_for_sigstop, stop_all_processes)
22474 (linux_resume_one_process, linux_continue_one_process): New functions.
22475 (linux_resume): Support LWPs.
22476 (REGISTER_RAW_SIZE): Remove.
22477 (fetch_register): Use register_size instead. Call supply_register.
22478 (usr_store_inferior_registers): Likewise. Call collect_register.
22479 Fix recursive case.
22480 (regsets_fetch_inferior_registers): Improve error message.
22481 (regsets_store_inferior_registers): Add debugging.
22482 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
22483 (unstopped_p, linux_signal_pid): New functions.
22484 (linux_target_ops): Add linux_signal_pid.
22485 (linux_init_signals): New function.
22486 (initialize_low): Call it. Initialize using_threads.
22487 * regcache.c (inferior_regcache_data): Add valid
22488 flag.
22489 (get_regcache): Fetch registers lazily. Add fetch argument
22490 and update all callers.
22491 (regcache_invalidate_one, regcache_invalidate): New
22492 functions.
22493 (new_register_cache): Renamed from create_register_cache.
22494 Return the new regcache.
22495 (free_register_cache): Change argument to a void *.
22496 (registers_to_string, registers_from_string): Call get_regcache
22497 with fetch flag set.
22498 (register_data): Make static. Pass fetch flag to get_regcache.
22499 (supply_register): Call get_regcache with fetch flag clear.
22500 (collect_register): Call get_regcache with fetch flag set.
22501 (collect_register_as_string): New function.
22502 * regcache.h: Update.
22503 * remote-utils.c (putpkt): Flush after debug output and use
22504 stderr.
22505 Handle input interrupts while waiting for an ACK.
22506 (input_interrupt): Use signal_pid method.
22507 (getpkt): Flush after debug output and use stderr.
22508 (outreg): Use collect_register_as_string.
22509 (new_thread_notify, dead_thread_notify): New functions.
22510 (prepare_resume_reply): Check using_threads. Set thread_from_wait
22511 and general_thread.
22512 (look_up_one_symbol): Flush after debug output.
22513 * server.c (step_thread, server_waiting): New variables.
22514 (start_inferior): Don't use signal_pid. Update call to mywait.
22515 (attach_inferior): Update call to mywait.
22516 (handle_query): Handle qfThreadInfo and qsThreadInfo.
22517 (main): Don't fetch/store registers explicitly. Use
22518 set_desired_inferior. Support proposed ``Hs'' packet. Update
22519 calls to mywait.
22520 * server.h: Update.
22521 (struct inferior_list, struct_inferior_list_entry): New.
22522 * target.c (set_desired_inferior): New.
22523 (write_inferior_memory): Constify.
22524 (mywait): New function.
22525 * target.h: Update.
22526 (struct target_ops): New signal_pid method.
22527 (mywait): Removed macro, added prototype.
22528
22529 * linux-low.h (regset_func): Removed.
22530 (regset_fill_func, regset_store_func): New.
22531 (enum regset_type): New.
22532 (struct regset_info): Add type field. Use new operation types.
22533 (struct linux_target_ops): stop_pc renamed to get_pc.
22534 Add decr_pc_after_break and breakpoint_at.
22535 (get_process, get_thread_proess, get_process_thread)
22536 (strut process_info, all_processes, linux_attach_lwp)
22537 (thread_db_init): New.
22538
22539 * linux-arm-low.c (arm_get_pc, arm_set_pc,
22540 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
22541 (the_low_target): Add new members.
22542 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
22543 (i386_store_fpxregset): Constify.
22544 (target_regsets): Add new kind identifier.
22545 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
22546 (i386_set_pc): Add debugging.
22547 (i386_breakpoint_at): New function.
22548 (the_low_target): Add new members.
22549 * linux-mips-low.c (mips_get_pc, mips_set_pc)
22550 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
22551 (mips_breakpoint_at): New.
22552 (the_low_target): Add new members.
22553 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
22554 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
22555 (the_low_target): Add new members.
22556 * linux-sh-low.c (sh_get_pc, sh_set_pc)
22557 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
22558 (the_low_target): Add new members.
22559 * linux-x86-64-low.c (target_regsets): Add new kind
22560 identifier.
22561
22562 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
22563
22564 From Martin Pool <mbp@samba.org>:
22565 * server.c (gdbserver_usage): New function.
22566 (main): Call it.
22567
22568 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
22569
22570 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
22571 stop_at -> stop_pc.
22572
22573 2002-05-04 Andrew Cagney <ac131313@redhat.com>
22574
22575 * Makefile.in: Remove obsolete code.
22576
22577 2002-04-24 Michal Ludvig <mludvig@suse.cz>
22578
22579 * linux-low.c (regsets_fetch_inferior_registers),
22580 (regsets_store_inferior_registers): Removed cast to int from
22581 ptrace() calls.
22582 * regcache.h: Added declaration of struct inferior_info.
22583
22584 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
22585
22586 * inferiors.c (struct inferior_info): Add regcache_data.
22587 (add_inferior): Call create_register_cache.
22588 (clear_inferiors): Call free_register_cache.
22589 (inferior_regcache_data, set_inferior_regcache_data): New functions.
22590 * regcache.c (struct inferior_regcache_data): New.
22591 (registers): Remove.
22592 (get_regcache): New function.
22593 (create_register_cache, free_register_cache): New functions.
22594 (set_register_cache): Don't initialize the register cache here.
22595 (registers_to_string, registers_from_string, register_data): Call
22596 get_regcache.
22597 * regcache.h: Add prototypes.
22598 * server.h: Likewise.
22599
22600 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
22601
22602 * mem-break.c: New file.
22603 * mem-break.h: New file.
22604 * Makefile.in: Add mem-break.o rule; update server.h
22605 dependencies.
22606 * inferiors.c (struct inferior_info): Add target_data
22607 member.
22608 (clear_inferiors): Free target_data member if set.
22609 (inferior_target_data, set_inferior_target_data): New functions.
22610 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
22611 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
22612 * linux-low.c (linux_bp_reinsert): New variable.
22613 (struct inferior_linux_data): New.
22614 (linux_create_inferior): Use set_inferior_target_data.
22615 (linux_attach): Likewise. Call add_inferior.
22616 (linux_wait_for_one_inferior): New function.
22617 (linux_wait): Call it.
22618 (linux_write_memory): Add const.
22619 (initialize_low): Call set_breakpoint_data.
22620 * linux-low.h (struct linux_target_ops): Add breakpoint
22621 handling members.
22622 * server.c (attach_inferior): Remove extra add_inferior
22623 call.
22624 * server.h: Include mem-break.h. Update inferior.c
22625 prototypes.
22626 * target.c (read_inferior_memory)
22627 (write_inferior_memory): New functions.
22628 * target.h (read_inferior_memory)
22629 (write_inferior_memory): Change macros to prototypes.
22630 (struct target_ops): Update comments. Add const to write_memory
22631 definition.
22632
22633 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
22634
22635 * linux-low.c (usr_store_inferior_registers): Support
22636 registers which are allowed to fail to store.
22637 * linux-low.h (linux_target_ops): Likewise.
22638 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
22639 (ppc_cannot_store_register): FPSCR may not be storable.
22640
22641 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22642
22643 * server.h: Include <string.h> if HAVE_STRING_H.
22644 * ChangeLog: Correct paths in last ChangeLog entry.
22645
22646 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22647
22648 * linux-low.h: Remove obsolete prototypes.
22649 (struct linux_target_ops): New.
22650 (extern the_low_target): New.
22651 * linux-low.c (num_regs, regmap): Remove declarations.
22652 (register_addr): Use the_low_target explicitly.
22653 (fetch_register): Likewise.
22654 (usr_fetch_inferior_registers): Likewise.
22655 (usr_store_inferior_registers): Likewise.
22656 * linux-arm-low.c (num_regs): Remove.
22657 (arm_num_regs): Define.
22658 (arm_regmap): Renamed from regmap, made static.
22659 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
22660 made static.
22661 (arm_cannot_store_register): Renamed from cannot_store_register,
22662 made static.
22663 (the_low_target): New.
22664 * linux-i386-low.c (num_regs): Remove.
22665 (i386_num_regs): Define.
22666 (i386_regmap): Renamed from regmap, made static.
22667 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
22668 made static.
22669 (i386_cannot_store_register): Renamed from cannot_store_register,
22670 made static.
22671 (the_low_target): New.
22672 * linux-ia64-low.c (num_regs): Remove.
22673 (ia64_num_regs): Define.
22674 (ia64_regmap): Renamed from regmap, made static.
22675 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
22676 made static.
22677 (ia64_cannot_store_register): Renamed from cannot_store_register,
22678 made static.
22679 (the_low_target): New.
22680 * linux-m68k-low.c (num_regs): Remove.
22681 (m68k_num_regs): Define.
22682 (m68k_regmap): Renamed from regmap, made static.
22683 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
22684 made static.
22685 (m68k_cannot_store_register): Renamed from cannot_store_register,
22686 made static.
22687 (the_low_target): New.
22688 * linux-mips-low.c (num_regs): Remove.
22689 (mips_num_regs): Define.
22690 (mips_regmap): Renamed from regmap, made static.
22691 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
22692 made static.
22693 (mips_cannot_store_register): Renamed from cannot_store_register,
22694 made static.
22695 (the_low_target): New.
22696 * linux-ppc-low.c (num_regs): Remove.
22697 (ppc_num_regs): Define.
22698 (ppc_regmap): Renamed from regmap, made static.
22699 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
22700 made static.
22701 (ppc_cannot_store_register): Renamed from cannot_store_register,
22702 made static.
22703 (the_low_target): New.
22704 * linux-s390-low.c (num_regs): Remove.
22705 (s390_num_regs): Define.
22706 (s390_regmap): Renamed from regmap, made static.
22707 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
22708 made static.
22709 (s390_cannot_store_register): Renamed from cannot_store_register,
22710 made static.
22711 (the_low_target): New.
22712 * linux-sh-low.c (num_regs): Remove.
22713 (sh_num_regs): Define.
22714 (sh_regmap): Renamed from regmap, made static.
22715 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
22716 made static.
22717 (sh_cannot_store_register): Renamed from cannot_store_register,
22718 made static.
22719 (the_low_target): New.
22720 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
22721 (the_low_target): New.
22722
22723 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22724
22725 * Makefile.in: Add stamp-h target.
22726 * configure.in: Create stamp-h.
22727 * configure: Regenerated.
22728
22729 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22730
22731 * inferiors.c: New file.
22732 * target.c: New file.
22733 * target.h: New file.
22734 * Makefile.in: Add target.o and inferiors.o. Update
22735 dependencies.
22736 * linux-low.c (inferior_pid): New static variable,
22737 moved from server.c.
22738 (linux_create_inferior): Renamed from create_inferior.
22739 Call add_inferior. Return 0 on success instead of a PID.
22740 (linux_attach): Renamed from myattach.
22741 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
22742 (linux_thread_alive): Renamed from mythread_alive.
22743 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
22744 child dies.
22745 (linux_resume): Renamed from myresume. Add missing ``return 0''.
22746 (regsets_store_inferior_registers): Correct error message.
22747 Add missing ``return 0''.
22748 (linux_fetch_registers): Renamed from fetch_inferior_registers.
22749 (linux_store_registers): Renamed from store_inferior_registers.
22750 (linux_read_memory): Renamed from read_inferior_memory.
22751 (linux_write_memory): Renamed from write_inferior_memory.
22752 (linux_target_ops): New structure.
22753 (initialize_low): Call set_target_ops ().
22754 * remote-utils.c (unhexify): New function.
22755 (hexify): New function.
22756 (input_interrupt): Send signals to ``signal_pid''.
22757 * server.c (inferior_pid): Remove.
22758 (start_inferior): Update create_inferior call.
22759 (attach_inferior): Call add_inferior.
22760 (handle_query): New function.
22761 (main): Call handle_query for `q' packets.
22762 * server.h: Include "target.h". Remove obsolete prototypes.
22763 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
22764
22765 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22766
22767 * Makefile.in: Add WARN_CFLAGS. Update configury
22768 dependencies.
22769 * configure.in: Check for <string.h>
22770 * configure: Regenerate.
22771 * config.in: Regenerate.
22772 * gdbreplay.c: Include needed system headers.
22773 (remote_open): Remove strchr prototype.
22774 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
22775 * regcache.c (supply_register): Change buf argument to const void *.
22776 (supply_register_by_name): Likewise.
22777 (collect_register): Change buf argument to void *.
22778 (collect_register_by_name): Likewise.
22779 * regcache.h: Add missing prototypes.
22780 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
22781 * server.c (handle_query): New function.
22782 (attached): New static variable, moved out of main.
22783 (main): Quiet longjmp clobber warnings.
22784 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
22785 * utils.c (error): Remove NORETURN.
22786 (fatal): Likewise.
This page took 0.524579 seconds and 4 git commands to generate.