Add stdio support to gdbreplay
[deliverable/binutils-gdb.git] / gdbserver / ChangeLog
1 2021-02-12 Tom Tromey <tromey@adacore.com>
2
3 * gdbreplay.cc (remote_desc): Remove.
4 (remote_desc_in, remote_desc_out): New globals.
5 (remote_close): Update.
6 (remote_open): Handle "-".
7 (remote_open): Update.
8 (logchar): Log to stderr.
9 (expect, play): Update.
10
11 2021-02-12 Tom Tromey <tromey@adacore.com>
12
13 * gdbreplay.cc (remote_open): Constify.
14
15 2021-02-05 Paul E. Murphy <murphyp@linux.ibm.com>
16
17 * Makefile.in (UNDO_GNULIB_CFLAGS): Disable
18 gnulib free replacement too.
19 * common-defs.h [USE_WIN32API](read, write): Undefine
20 gnulib versions before defining these macros.
21
22 2021-02-03 Pedro Alves <pedro@palves.net>
23
24 * linux-low.cc (linux_process_target::complete_ongoing_step_over):
25 Discard step SIGTRAP, unless GDB wanted the thread to step.
26
27 2021-02-03 Pedro Alves <pedro@palves.net>
28
29 * server.cc (discard_queued_stop_replies): Don't ever discard the
30 notification at the head of the list.
31
32 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
33
34 * ax.cc (bytecode_address_table): Make static.
35 * debug.cc (debug_file): Make static.
36 * linux-low.cc (stopping_threads): Make static.
37 (step_over_bkpt): Make static.
38 * linux-x86-low.cc (amd64_emit_ops, i386_emit_ops): Make static.
39 * tracepoint.cc (stop_tracing_bkpt, flush_trace_buffer_bkpt,
40 alloced_trace_state_variables, trace_buffer_ctrl,
41 tracing_start_time, tracing_stop_time, tracing_user_name,
42 tracing_notes, tracing_stop_note): Make static.
43
44 2021-01-20 Tom de Vries <tdevries@suse.de>
45
46 * linux-x86-low.cc (collect_register_i386): New function.
47 (x86_fill_gregset): Remove memset. Use collect_register_i386.
48
49 2021-01-07 Tom de Vries <tdevries@suse.de>
50
51 * Makefile.in (LIBIBERTY_NORMAL, LIBIBERTY_NOASAN, LIBIBERTY_PIC):
52 (LIBIBERTY_FOR_SHLIB): New var.
53 (LIBIBERTY): Set using $(LIBIBERTY_NORMAL).
54 (IPA_LIB): Use LIBIBERTY_FOR_SHLIB instead of LIBIBERTY in target rule.
55
56 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
57
58 * debug.cc (debug_print_depth): New.
59
60 2021-01-01 Joel Brobecker <brobecker@adacore.com>
61
62 * server.cc (gdbserver_version): Update copyright year.
63 * gdbreplay.cc (gdbreplay_version): Likewise.
64
65 2020-12-16 Luis Machado <luis.machado@linaro.org>
66
67 * linux-aarch64-low.cc (address_significant): New function.
68 (aarch64_target::low_stopped_data_address): Handle the TBI.
69
70 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
71
72 * Makefile.in (IPA_LIB): Include libiberty library.
73
74 2020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
75
76 * server.cc (gdbserver_usage): Add missing option to usage text.
77 (gdbserver_show_disableable): Likewise.
78
79 2020-11-02 Simon Marchi <simon.marchi@efficios.com>
80
81 * ax.cc: Fix indentation.
82 * dll.cc: Fix indentation.
83 * inferiors.h: Fix indentation.
84 * linux-low.cc: Fix indentation.
85 * linux-nios2-low.cc: Fix indentation.
86 * linux-ppc-ipa.cc: Fix indentation.
87 * linux-ppc-low.cc: Fix indentation.
88 * linux-x86-low.cc: Fix indentation.
89 * linux-xtensa-low.cc: Fix indentation.
90 * regcache.cc: Fix indentation.
91 * server.cc: Fix indentation.
92 * tracepoint.cc: Fix indentation.
93
94 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
95
96 * acinclude.m4: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE +
97 AC_LANG_PROGRAM.
98 * configure: Re-generate.
99
100 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
101
102 * configure: Re-generate.
103
104 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
105
106 * configure: Re-generate.
107
108 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
109
110 * configure: Re-generate.
111
112 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
113
114 * configure: Re-generate.
115
116 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
117
118 * configure.ac: Modernize.
119 * configure: Re-generate.
120
121 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
122
123 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
124 AC_CANONICAL_SYSTEM.
125 * configure: Re-generate.
126
127 2020-10-26 Pedro Alves <pedro@palves.net>
128
129 * netbsd-low.cc (netbsd_waitpid, netbsd_process_target::kill)
130 (netbsd_qxfer_libraries_svr4): Use gdb::handle_eintr without
131 explicit type.
132
133 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
134
135 * acinclude.m4: Update ptrace.m4 path.
136
137 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
138
139 * config.in: Re-generate.
140 * configure: Re-generate.
141
142 2020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
143
144 * server.cc (handle_general_set): Don't use sprintf with
145 argument overlapping buffer.
146
147 2020-10-20 Tom Tromey <tromey@adacore.com>
148
149 PR gdb/26742:
150 * inferiors.cc (remove_thread): Clear current_thread before
151 freeing the thread.
152
153 2020-10-13 Kamil Rytarowski <n54@gmx.com>x
154
155 * netbsd-low.cc (netbsd_tdesc): Remove.
156 (netbsd_add_process): Likewise.
157 (netbsd_process_target::create_inferior): Update.
158
159 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
160
161 * linux-arc-low.cc (arc_linux_read_description): Release the
162 unique_ptr returned from arc_create_target_description.
163
164 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
165
166 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
167 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
168
169 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
170
171 * linux-low.cc (linux_process_target::handle_extended_wait):
172 Release the unique_ptr returned from allocate_target_description.
173 * linux-riscv-low.cc (riscv_target::low_arch_setup): Likewise.
174 * linux-x86-low.cc (tdesc_amd64_linux_no_xml): Change type.
175 (tdesc_i386_linux_no_xml): Change type.
176 (x86_linux_read_description): Borrow pointer from unique_ptr
177 object.
178 (x86_target::get_ipa_tdesc_idx): Likewise.
179 (initialize_low_arch): Likewise.
180 * tdesc.cc (allocate_target_description): Update return type.
181
182 2020-10-07 Tom Tromey <tromey@adacore.com>
183
184 * server.cc (handle_search_memory): Remove dead code.
185
186 2020-10-07 Tom Tromey <tromey@adacore.com>
187
188 * server.cc (handle_search_memory_1): Remove.
189 (handle_search_memory): Use simple_search_memory.
190
191 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
192
193 * Makefile.in (COMPILE): Add CXXFLAGS.
194 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
195 (gdbserver$(EXEEXT)): Add CXXFLAGS.
196 (gdbreplay$(EXEEXT)): Add CXXFLAGS.
197 ($(IPA_LIB)): Add CXXFLAGS.
198 (IPAGENT_COMPILE): Add CXXFLAGS.
199
200 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
201
202 * configure.srv: Support ARC architecture.
203 * Makefile.in: Add linux-arc-low.cc and arch/arc.o.
204 * linux-arc-low.cc: New file.
205
206 2020-10-07 Kamil Rytarowski <n54@gmx.com>
207
208 * netbsd-low.cc (get_dynamic, get_r_debug, read_one_ptr)
209 (netbsd_qxfer_libraries_svr4): Remove "target" argument and update.
210 (netbsd_process_target::qxfer_libraries_svr4): Update.
211
212 2020-10-07 Kamil Rytarowski <n54@gmx.com>
213
214 * netbsd-low.cc: Fix whitespace formatting.
215 * netbsd-amd64-low.cc: Likewise.
216
217 2020-10-07 Kamil Rytarowski <n54@gmx.com>
218
219 * netbsd-low.cc (netbsd_process_target::read_memory)
220 (netbsd_process_target::write_memory): Update.
221
222 2020-10-07 Kamil Rytarowski <n54@gmx.com>
223
224 * netbsd-aarch64-low.cc: Add.
225 * Makefile.in (SFILES): Register "netbsd-aarch64-low.c".
226 * configure.srv: Add aarch64*-*-netbsd*.
227
228 2020-10-06 Shahab Vahedi <shahab@synopsys.com>
229
230 * regcache.cc (register_data): Remove unused "fetch" argument.
231
232 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
233
234 * server.cc (handle_monitor_command): Handle "set
235 debug-event-loop".
236 (captured_main): Handle "--debug-event-loop".
237 (monitor_show_help): Mention new setting.
238 (gdbserver_usage): Mention new flag.
239
240 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
241
242 * linux-low.cc (linux_process_target::async): Pass name to
243 add_file_handler.
244 * remote-utils.cc (handle_accept_event): Likewise.
245 (remote_open): Likewise.
246
247 2020-10-01 Kamil Rytarowski <n54@gmx.com>
248
249 * netbsd-i386-low.cc: Add.
250 * Makefile.in (SFILES): Register "netbsd-i386-low.c".
251 * configure.srv: Add i[34567]86-*-netbsd*.
252
253 2020-10-01 Kamil Rytarowski <n54@gmx.com>
254
255 * netbsd-amd64-low.cc (netbsd_x86_64_arch_setup): Remove.
256 (netbsd_target_regsets): Now const.
257 (the_low_target): Remove.
258 (class netbsd_amd64_target, the_netbsd_amd64_target)
259 (the_netbsd_target): Add.
260 * netbsd-low.cc (netbsd_process_target::post_create_inferior): Call
261 low_arch_setup ().
262 (netbsd_process_target::fetch_registers)
263 (netbsd_process_target::store_registers, initialize_low): Update.
264 (the_netbsd_target): Remove.
265 * netbsd-low.h (netbsd_target_regsets, netbsd_target_ops)
266 (the_low_target, netbsd_tdesc): Remove.
267 (netbsd_process_target::get_regs_info)
268 (netbsd_process_target::low_arch_setup): Add.
269
270 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
271
272 * win32-low.cc: Remove local wow64_process variable.
273 * win32-low.h: Remove local wow64_process variable.
274
275 2020-09-18 Tom Tromey <tromey@adacore.com>
276
277 * netbsd-low.h (class netbsd_process_target) <wait>: Update.
278 * netbsd-low.cc (netbsd_waitpid, netbsd_wait)
279 (netbsd_process_target::wait): Change type of target_options.
280 * win32-low.h (class win32_process_target) <wait>: Update.
281 * win32-low.cc (win32_process_target::wait): Update.
282 * target.h (class process_stratum_target) <wait>: Update.
283 (mywait): Update.
284 * target.cc (mywait, target_wait): Change type of "options".
285 * linux-low.h (class linux_process_target) <wait, wait_1>:
286 Update.
287 * linux-low.cc (linux_process_target::wait)
288 (linux_process_target::wait_1): Update.
289
290 2020-09-15 Tom Tromey <tromey@adacore.com>
291
292 * linux-x86-low.cc (xmltarget_i386_linux_no_xml)
293 (xmltarget_amd64_linux_no_xml): Now arrays.
294
295 2020-09-14 Tom Tromey <tromey@adacore.com>
296
297 * tracepoint.cc (eval_result_names): Now const.
298 * ax.cc (gdb_agent_op_names): Now const.
299
300 2020-09-10 Kamil Rytarowski <n54@gmx.com>
301
302 * netbsd-low.cc: Add.
303 * netbsd-low.h: Likewise.
304 * netbsd-amd64-low.cc: Likewise.
305 * Makefile.in (SFILES): Register "netbsd-low.cc", "netbsd-low.h",
306 "netbsd-amd64-low.cc".
307 * configure.srv: Add x86_64-*-netbsd*.
308
309 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
310
311 * server.cc (captured_main): Accept multiple `--selftest=`
312 options. Pass all `--selftest=` arguments to run_tests.
313
314 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
315
316 * configure, config.in: Regenerate.
317
318 2020-07-26 Eli Zaretskii <eliz@gnu.org>
319
320 * configure.ac (AC_CHECK_HEADERS): Add ws2tcpip.h.
321 When checking whether socklen_t type is defined, use ws2tcpip.h if
322 it is available and sys/socket.h isn't.
323 * configure: Regenerate.
324 * config.in: Regenerate.
325
326 2020-07-22 Pedro Alves <pedro@palves.net>
327
328 * inferiors.cc (switch_to_process): New, moved here from
329 thread-db.cc, and made extern.
330 * inferiors.h (switch_to_process): Declare.
331 * server.cc: Include "gdbsupport/scoped_restore.h".
332 (handle_qxfer_threads_proper): Now returns bool. Prepare to
333 access memory around target calls.
334 (handle_qxfer_threads): Handle errors.
335 * thread-db.cc (switch_to_process): Moved to inferiors.cc.
336
337 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
338
339 * linux-low.cc (stopped_pids): Make static.
340
341 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
342
343 * tdesc.cc (allocate_target_description): Add header comment.
344 (target_desc_deleter::operator()): New function.
345 * tdesc.h (struct target_desc): Declare as final.
346
347 2020-07-13 Simon Marchi <simon.marchi@polymtl.ca>
348
349 * server.cc (handle_query): Use std::vector of
350 std::string for `qsupported` vector. Use separate
351 vector for unknowns.
352 * target.h (class process_stratum_target) <process_qsupported>:
353 Change parameters to array_view of const char *.
354 (target_process_qsupported): Remove `count` parameter.
355 * target.cc (process_stratum_target::process_qsupported): Change
356 parameters to array_view of const char *.
357 * linux-x86-low.cc (class x86_target) <process_qsupported>:
358 Likewise.
359
360 2020-06-29 Tom de Vries <tdevries@suse.de>
361
362 * ax.h: Include gdbsupport/debug_agent.h.
363
364 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
365
366 * tdesc.cc (struct tdesc_compatible_info): New struct.
367 (tdesc_compatible_info_list): New function.
368 (tdesc_compatible_info_arch_name): New function.
369
370 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
371
372 Use std::list to stop pending signal instead of manually-created
373 linked list.
374 * linux-low.h: Include <list>.
375 (struct pending_signal): Move here from linux-low.cc.
376 (struct lwp_info) <pending_signals>
377 <pending_signals_to_report>: Update the type.
378 * linux-low.cc (struct pending_signals): Remove.
379 (linux_process_target::delete_lwp)
380 (linux_process_target::add_lwp)
381 (enqueue_one_deferred_signal)
382 (dequeue_one_deferred_signal)
383 (enqueue_pending_signal)
384 (linux_process_target::resume_one_lwp_throw)
385 (linux_process_target::thread_needs_step_over)
386 (linux_process_target::resume_one_thread)
387 (linux_process_target::proceed_one_lwp): Update the use of pending
388 signal list.
389
390 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
391
392 * Makefile.in (%-generated.cc: ../gdb/regformats/arm/%.dat):
393 Remove.
394
395 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
396
397 * Makefile.in (SFILES): Remove win32-arm-low.cc, wincecompat.cc.
398 * configure.srv: Remove mingw32ce cases.
399 * server.h, win32-low.cc: Remove __MINGW32CE__-guarded code.
400 * win32-low.h (to_back_slashes): Remove.
401 * win32-arm-low.cc, wincecompat.cc, wincecompat.h: Remove.
402
403 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
404
405 * Makefile.in (SFILES): linux-tile-low.cc.
406 * configure.srv: Remove tilegx case.
407 * linux-tile-low.cc: Remove.
408
409 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
410
411 * Makefile.in (SFILES): Remove linux-m32r-low.cc.
412 * configure.srv: Remove m32r case.
413 * linux-m32r-low.cc: Remove.
414
415 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
416
417 * Makefile.in (SFILES): Remove linux-cris-low.c.
418 * configure.srv: Remove cris cases.
419 * linux-cris-low.cc, linux-crisv32-low.cc: Remove.
420
421 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
422
423 * Makefile.in (SFILES): Remove linux-bfin-low.c.
424 * configure.srv: Remove bfin case.
425 * linux-bfin-low.cc: Remove.
426 * linux-low.cc: Remove BFIN-conditional code.
427
428 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
429
430 * configure: Re-generate.
431 * configure.ac: Remove srv_qnx test.
432 * configure.srv: Remove nto case.
433 * nto-low.cc, nto-low.h, nto-x86-low.cc: Remove.
434 * remote-utils.c: Remove __QNX__-guarded code.
435
436 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
437
438 * configure: Re-generate.
439 * configure.ac: Remove srv_lynxos test.
440 * configure.srv: Remove lynxos cases.
441 * lynx-i386-low.cc, lynx-low.cc, lynx-low.h, lynx-ppc-low.c:
442 Remove.
443
444 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
445
446 * README: Fix a few outdated or incoherent things.
447
448 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
449
450 * win32-low.cc (do_initial_child_stuff): Set open_process_used.
451 (win32_clear_inferiors): Use open_process_used.
452 (get_child_debug_event): Likewise.
453
454 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
455
456 PR gdbserver/25893
457 * linux-low.cc (linux_process_target::create_inferior),
458 lynx-low.cc (lynx_process_target::create_inferior),
459 win32-low.cc (win32_process_target::create_inferior): Use
460 construct_inferior_arguments instead of stringify_argv
461 to get string representation which properly escapes
462 special characters.
463 * server.cc (handle_v_run): Just pass empty program arg
464 as such, since any further processing is now handled via
465 construct_inferior_arguments.
466
467 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
468
469 * nto-low.cc (nto_process_target::create_inferior): Pass
470 argv to spawnp function as char **.
471
472 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
473
474 * server.cc (captured_main), (handle_v_run): No longer
475 insert extra NULL element to args vector.
476
477 2020-05-23 Pedro Alves <palves@redhat.com>
478
479 * gdb-safe-ctype.h: New.
480
481 2020-05-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
482
483 * linux-ia64-low.cc (ia64_target::sw_breakpoint_from_kind):
484 Fix incorrect 'gdb_assert_no_reached' to 'gdb_assert_not_reached'.
485 (ia64_target::low_breakpoint_at): Ditto.
486
487 2020-05-15 Hannes Domani <ssbssa@yahoo.de>
488
489 * win32-i386-low.cc (i386_supports_z_point_type): Handle
490 Z_PACKET_HW_BP z_type.
491 (i386_insert_point): Handle raw_bkpt_type type.
492 (i386_remove_point): Likewise.
493
494 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
495
496 * configure.srv <x86_64-*-mingw*, x86_64-*-cygwin*> (srv_tgtobj):
497 Add arch/i386.o.
498 * win32-arm-low.cc (arm_num_regs): New function.
499 (struct win32_target_ops): Use arm_num_regs.
500 * win32-i386-low.cc (win32_get_current_dr): Adapt for WOW64
501 processes.
502 (i386_get_thread_context): Likewise.
503 (i386_prepare_to_resume): Likewise.
504 (i386_thread_added): Likewise.
505 (i386_single_step): Likewise.
506 (i386_fetch_inferior_register): Likewise.
507 (i386_store_inferior_register): Likewise.
508 (i386_arch_setup): Likewise.
509 (i386_win32_num_regs): New function.
510 (struct win32_target_ops): Use i386_win32_num_regs.
511 * win32-low.cc (win32_get_thread_context): Adapt for WOW64
512 processes.
513 (win32_require_context): Likewise.
514 (child_add_thread): Likewise.
515 (do_initial_child_stuff): Likewise.
516 (continue_one_thread): Likewise.
517 (win32_process_target::resume): Likewise.
518 (load_psapi): Likewise.
519 (win32_add_all_dlls): Likewise.
520 (maybe_adjust_pc): Likewise.
521 (win32_process_target::qxfer_siginfo): Likewise.
522 (initialize_low): Likewise.
523 * win32-low.h (struct win32_target_ops): Change num_regs to
524 callback function.
525
526 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
527
528 * configure.ac: Remove check for fs_base/gs_base in
529 user_regs_struct.
530 * configure: Re-generate.
531 * config.in: Re-generate.
532 * linux-x86-low.cc (x86_64_regmap, x86_fill_gregset,
533 x86_store_gregset): Adjust.
534
535 2020-04-22 Hannes Domani <ssbssa@yahoo.de>
536
537 * server.cc (handle_search_memory_1): Fix gdb_read_memory return value
538 comparison.
539
540 2020-04-16 Tom Tromey <tromey@adacore.com>
541
542 * win32-low.cc (windows_nat::handle_access_violation): New
543 function.
544
545 2020-04-15 Simon Marchi <simon.marchi@polymtl.ca>
546
547 * win32-low.cc (get_child_debug_event): Fix format string warning.
548
549 2020-04-13 Tom Tromey <tom@tromey.com>
550
551 * server.h (gdb_fildes_t): Remove typedef.
552 * remote-utils.c (remote_desc, list_desc): Now int.
553 (INVALID_DESCRIPTOR): Remove.
554 (gdb_connected, remote_close)
555 (check_remote_input_interrupt_request): Update.
556 * utils.h (pfildes): Don't declare.
557 * utils.c (pfildes): Remove.
558
559 2020-04-13 Tom Tromey <tom@tromey.com>
560
561 * server.h (handle_serial_event, handle_target_event): Update.
562 * server.c: Don't call initialize_event_loop.
563 (keep_processing_events): New global.
564 (handle_serial_event): Return void. Set keep_processing_events.
565 (handle_target_event): Return void.
566 (start_event_loop): Move from event-loop.c. Rewrite.
567 * remote-utils.c (handle_accept_event): Return void.
568 (reset_readchar): Use delete_timer.
569 (process_remaining): Return void.
570 (reschedule): Use create_timer.
571 * event-loop.h: Remove.
572 * event-loop.cc: Remove.
573 * Makefile.in (OBS): Use gdbsupport/event-loop.o, not event-loop.o.
574
575 2020-04-13 Tom Tromey <tom@tromey.com>
576
577 * server.c (invoke_async_signal_handlers)
578 (check_async_event_handlers, flush_streams, gdb_select): New
579 functions.
580
581 2020-04-13 Tom Tromey <tom@tromey.com>
582
583 * configure: Rebuild.
584 * config.in: Rebuild.
585
586 2020-04-08 Tom Tromey <tromey@adacore.com>
587
588 PR gdb/22992
589 * win32-low.c (child_continue): Call matching_pending_stop.
590 (get_child_debug_event): Call fetch_pending_stop. Push pending
591 stop when needed.
592
593 2020-04-08 Tom Tromey <tromey@adacore.com>
594
595 * win32-low.h (win32_process_target::stopped_by_sw_breakpoint)
596 (win32_process_target::supports_stopped_by_sw_breakpoint):
597 Declare.
598 * win32-low.c (win32_supports_z_point_type): Always handle
599 Z_PACKET_SW_BP.
600 (win32_insert_point): Call insert_memory_breakpoint when needed.
601 (win32_remove_point): Call remove_memory_breakpoint when needed.
602 (win32_process_target::stopped_by_sw_breakpoint)
603 (win32_process_target::supports_stopped_by_sw_breakpoint): New
604 methods.
605 (win32_target_ops): Update.
606 (maybe_adjust_pc): New function.
607 (win32_wait): Call maybe_adjust_pc.
608
609 2020-04-08 Tom Tromey <tromey@adacore.com>
610
611 * win32-low.h (struct win32_target_ops) <decr_pc_after_break>: New
612 field.
613 * win32-i386-low.c (the_low_target): Update.
614 * win32-arm-low.c (the_low_target): Update.
615
616 2020-04-08 Tom Tromey <tromey@adacore.com>
617
618 * win32-low.h (win32_process_target::read_pc)
619 (win32_process_target::write_pc): Declare.
620 * win32-low.c (win32_process_target::read_pc)
621 (win32_process_target::write_pc): New methods.
622 * win32-i386-low.c (i386_win32_get_pc, i386_win32_set_pc): New
623 functions.
624 (the_low_target): Update.
625 * win32-arm-low.c (arm_win32_get_pc, arm_win32_set_pc): New
626 functions.
627 (the_low_target): Update.
628
629 2020-04-08 Tom Tromey <tromey@adacore.com>
630
631 * win32-low.c (win32_kill, get_child_debug_event): Use
632 wait_for_debug_event.
633
634 2020-04-08 Tom Tromey <tromey@adacore.com>
635
636 * win32-low.c (child_continue): Call continue_last_debug_event.
637
638 2020-04-08 Tom Tromey <tromey@adacore.com>
639
640 * win32-low.c (handle_exception): Remove.
641 (windows_nat::handle_ms_vc_exception): New function.
642 (get_child_debug_event): Add "continue_status" parameter.
643 Update.
644 (win32_wait): Update.
645
646 2020-04-08 Tom Tromey <tromey@adacore.com>
647
648 * win32-low.c (windows_nat::handle_load_dll): Rename from
649 handle_load_dll. No longer static.
650 (windows_nat::handle_unload_dll): Rename from handle_unload_dll.
651 No longer static.
652
653 2020-04-08 Tom Tromey <tromey@adacore.com>
654
655 * win32-low.c (handle_output_debug_string): Add parameter. Change
656 return type.
657 (win32_kill, get_child_debug_event): Update.
658
659 2020-04-08 Tom Tromey <tromey@adacore.com>
660
661 * win32-low.c (current_process_handle, current_process_id)
662 (main_thread_id, last_sig, current_event, siginfo_er): Move to
663 nat/windows-nat.c.
664
665 2020-04-08 Tom Tromey <tromey@adacore.com>
666
667 * win32-low.c (get_image_name): Remove.
668 (handle_load_dll): Update.
669
670 2020-04-08 Tom Tromey <tromey@adacore.com>
671
672 * win32-low.c (windows_nat::thread_rec): Rename from thread_rec.
673 No longer static. Change parameters.
674 (child_add_thread, child_fetch_inferior_registers)
675 (child_store_inferior_registers, win32_resume)
676 (win32_get_tib_address): Update.
677
678 2020-04-08 Tom Tromey <tromey@adacore.com>
679
680 * win32-low.h (struct win32_target_ops): Use qualified names where
681 needed.
682 * win32-i386-low.c: Add "using namespace".
683 * win32-low.c: Add "using namespace".
684 * win32-arm-low.c: Add "using namespace".
685
686 2020-04-08 Tom Tromey <tromey@adacore.com>
687
688 * win32-low.c (delete_thread_info): Don't call CloseHandle.
689
690 2020-04-08 Tom Tromey <tromey@adacore.com>
691
692 * win32-low.c (win32_require_context, suspend_one_thread): Use
693 windows_thread_info::suspend.
694 (continue_one_thread): Use windows_thread_info::resume.
695 * configure.srv (srv_tgtobj): Add windows-nat.o when needed.
696
697 2020-04-08 Tom Tromey <tromey@adacore.com>
698
699 * win32-i386-low.c (update_debug_registers)
700 (i386_prepare_to_resume, i386_thread_added): Update.
701
702 2020-04-08 Tom Tromey <tromey@adacore.com>
703
704 * win32-low.c (child_add_thread): Use new.
705 (delete_thread_info): Use delete.
706
707 2020-04-08 Tom Tromey <tromey@adacore.com>
708
709 * win32-low.h (struct windows_thread_info): Remove.
710
711 2020-04-08 Tom Tromey <tromey@adacore.com>
712
713 * win32-low.h (struct windows_thread_info): Rename from
714 win32_thread_info. Remove typedef.
715 (struct win32_target_ops, win32_require_context): Update.
716 * win32-low.c (win32_get_thread_context)
717 (win32_set_thread_context, win32_prepare_to_resume)
718 (win32_require_context, thread_rec, child_add_thread)
719 (delete_thread_info, continue_one_thread)
720 (child_fetch_inferior_registers, child_store_inferior_registers)
721 (win32_resume, suspend_one_thread, win32_get_tib_address):
722 Update.
723 * win32-i386-low.c (update_debug_registers)
724 (win32_get_current_dr, i386_get_thread_context)
725 (i386_prepare_to_resume, i386_thread_added, i386_single_step)
726 (i386_fetch_inferior_register, i386_store_inferior_register):
727 Update.
728 * win32-arm-low.c (arm_get_thread_context)
729 (arm_fetch_inferior_register, arm_store_inferior_register):
730 Update.
731
732 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
733
734 * linux-low.h (struct linux_target_ops): Remove.
735 (the_low_target): Remove.
736 * linux-x86-low.cc (the_low_target): Remove.
737 * linux-aarch64-low.cc (the_low_target): Ditto.
738 * linux-arm-low.cc (the_low_target): Ditto.
739 * linux-bfin-low.cc (the_low_target): Ditto.
740 * linux-cris-low.cc (the_low_target): Ditto.
741 * linux-crisv32-low.cc (the_low_target): Ditto.
742 * linux-ia64-low.cc (the_low_target): Ditto.
743 * linux-m32r-low.cc (the_low_target): Ditto.
744 * linux-m68k-low.cc (the_low_target): Ditto.
745 * linux-mips-low.cc (the_low_target): Ditto.
746 * linux-nios2-low.cc (the_low_target): Ditto.
747 * linux-ppc-low.cc (the_low_target): Ditto.
748 * linux-riscv-low.cc (the_low_target): Ditto.
749 * linux-s390-low.cc (the_low_target): Ditto.
750 * linux-sh-low.cc (the_low_target): Ditto.
751 * linux-sparc-low.cc (the_low_target): Ditto.
752 * linux-tic6x-low.cc (the_low_target): Ditto.
753 * linux-tile-low.cc (the_low_target): Ditto.
754 * linux-xtensa-low.cc (the_low_target): Ditto.
755
756 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
757
758 Remove the 'get_ipa_tdesc_idx' linux target op and let a concrete
759 linux target define the op by overriding the declaration in
760 process_stratum_target.
761
762 * linux-low.h (struct linux_target_ops): Remove the op.
763 (class linux_process_target) <get_ipa_tdesc_idx>: Remove.
764 * linux-low.cc (linux_process_target::get_ipa_tdesc_idx): Remove.
765 * linux-x86-low.cc (class x86_target) <get_ipa_tdesc_idx>: Declare.
766 (x86_get_ipa_tdesc_idx): Turn into...
767 (x86_target::get_ipa_tdesc_idx): ...this.
768 (the_low_target): Remove the op field.
769 * linux-ppc-low.cc (class ppc_target) <get_ipa_tdesc_idx>: Declare.
770 (ppc_get_ipa_tdesc_idx): Turn into...
771 (ppc_target::get_ipa_tdesc_idx): ...this.
772 (the_low_target): Remove the op field.
773 * linux-s390-low.cc (class s390_target) <get_ipa_tdesc_idx>: Declare.
774 (s390_get_ipa_tdesc_idx): Turn into...
775 (s390_target::get_ipa_tdesc_idx): ...this.
776 (the_low_target): Remove the op field.
777
778 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
779
780 Turn the 'get_syscall_trapinfo' linux target op into a method
781 of process_stratum_target.
782
783 * linux-low.h (struct linux_target_ops): Remove the op.
784 (class linux_process_target) <get_syscall_trapinfo>
785 <gdb_catch_this_syscall>
786 <low_supports_catch_syscall>
787 <low_get_syscall_trapinfo>: Declare.
788 * linux-low.cc (get_syscall_trapinfo): Turn into...
789 (linux_process_target::get_syscall_trapinfo): ...this.
790 (linux_process_target::low_get_syscall_trapinfo): Define.
791 (gdb_catch_this_syscall_p): Turn into...
792 (linux_process_target::gdb_catch_this_syscall): ...this.
793 (linux_process_target::low_supports_catch_syscall): Define.
794
795 Update the callers below.
796
797 (linux_process_target::wait_1)
798 (linux_process_target::supports_catch_syscall)
799
800 * linux-x86-low.cc (class x86_target) <low_supports_catch_syscall>
801 <low_get_syscall_trapinfo>: Declare.
802 (x86_target::low_supports_catch_syscall): Define.
803 (x86_get_syscall_trapinfo): Turn into...
804 (x86_target::low_get_syscall_trapinfo): ...this.
805 (the_low_target): Remove the op field.
806 * linux-aarch64-low.cc (class aarch64_target)
807 <low_supports_catch_syscall>
808 <low_get_syscall_trapinfo>: Declare.
809 (aarch64_target::low_supports_catch_syscall): Define.
810 (aarch64_get_syscall_trapinfo): Turn into...
811 (aarch64_target::low_get_syscall_trapinfo): ...this.
812 (the_low_target): Remove the op field.
813 * linux-arm-low.cc (class arm_target) <low_supports_catch_syscall>
814 <low_get_syscall_trapinfo>: Declare.
815 (arm_target::low_supports_catch_syscall): Define.
816 (arm_get_syscall_trapinfo): Turn into...
817 (arm_target::low_get_syscall_trapinfo): ...this.
818 (the_low_target): Remove the op field.
819 * linux-ppc-low.cc (the_low_target): Remove the op field.
820 * linux-s390-low.cc (the_low_target): Remove the op field.
821
822 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
823
824 Remove the 'supports_hardware_single_step' linux target op and
825 override the process_stratum_target's op definition in
826 linux_process_target to return true.
827
828 * linux-low.h (struct linux_target_ops): Remove the op.
829 (class linux_process_target) <finish_step_over>
830 <maybe_hw_step>: Declare.
831 * linux-low.cc (can_hardware_single_step): Remove.
832 (maybe_hw_step): Turn into...
833 (linux_process_target::maybe_hw_step): ...this.
834 (finish_step_over): Turn into...
835 (linux_process_target::finish_step_over): ...this.
836 (linux_process_target::supports_hardware_single_step): Update
837 to return true.
838
839 Update the callers below.
840
841 (linux_process_target::single_step)
842 (linux_process_target::resume_one_lwp_throw)
843
844 * linux-arm-low.cc (class arm_target)
845 <supports_hardware_single_step>: Declare.
846 (arm_supports_hardware_single_step): Turn into...
847 (arm_target::supports_hardware_single_step): ...this.
848 (the_low_target): Remove the op field.
849 * linux-x86-low.cc (x86_supports_hardware_single_step): Remove.
850 (the_low_target): Remove the op field.
851 * linux-aarch64-low.cc (aarch64_supports_hardware_single_step):
852 Remove.
853 (the_low_target): Remove the op field.
854 * linux-bfin-low.cc (bfin_supports_hardware_single_step): Remove.
855 (the_low_target): Remove the op field.
856 * linux-crisv32-low.cc (cris_supports_hardware_single_step): Remove.
857 (the_low_target): Remove the op field.
858 * linux-m32r-low.cc (m32r_supports_hardware_single_step): Remove.
859 (the_low_target): Remove the op field.
860 * linux-m68k-low.cc (m68k_supports_hardware_single_step): Remove.
861 (the_low_target): Remove the op field.
862 * linux-ppc-low.cc (ppc_supports_hardware_single_step): Remove.
863 (the_low_target): Remove the op field.
864 * linux-s390-low.cc (s390_supports_hardware_single_step): Remove.
865 (the_low_target): Remove the op field.
866 * linux-sh-low.cc (sh_supports_hardware_single_step): Remove.
867 (the_low_target): Remove the op field.
868 * linux-tic6x-low.cc (tic6x_supports_hardware_single_step): Remove.
869 (the_low_target): Remove the op field.
870 * linux-tile-low.cc (tile_supports_hardware_single_step): Remove.
871 (the_low_target): Remove the op field.
872 * linux-xtensa-low.cc (xtensa_supports_hardware_single_step):
873 Remove.
874 (the_low_target): Remove the op field.
875
876 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
877
878 Turn the 'supports_range_stepping' linux target op into a method
879 of linux_process_target.
880
881 * linux-low.h (struct linux_target_ops): Remove the op.
882 (class linux_process_target) <low_supports_range_stepping>: Declare.
883 * linux-low.cc (linux_process_target::low_supports_range_stepping):
884 Define.
885 (linux_process_target::supports_range_stepping): Update the call
886 site.
887 * linux-x86-low.cc (class x86_target)
888 <low_supports_range_stepping>: Declare.
889 (x86_supports_range_stepping): Turn into...
890 (x86_target::low_supports_range_stepping): ...this.
891 (the_low_target): Remove the op field.
892 * linux-aarch64-low.cc (class aarch64_target)
893 <low_supports_range_stepping>: Declare.
894 (aarch64_supports_range_stepping): Turn into...
895 (aarch64_target::low_supports_range_stepping): ...this.
896 (the_low_target): Remove the op field.
897 * linux-arm-low.cc (the_low_target): Remove the op field.
898 * linux-bfin-low.cc (the_low_target): Ditto.
899 * linux-crisv32-low.cc (the_low_target): Ditto.
900 * linux-m32r-low.cc (the_low_target): Ditto.
901 * linux-m68k-low.cc (the_low_target): Ditto.
902 * linux-ppc-low.cc (the_low_target): Ditto.
903 * linux-s390-low.cc (the_low_target): Ditto.
904 * linux-sh-low.cc (the_low_target): Ditto.
905 * linux-tic6x-low.cc (the_low_target): Ditto.
906 * linux-tile-low.cc (the_low_target): Ditto.
907 * linux-xtensa-low.cc (the_low_target): Ditto.
908
909 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
910
911 Remove the 'emit_ops' linux target ops and let the concrete
912 linux target define the op by overriding the declaration of
913 process_stratum_target.
914
915 * linux-low.h (struct linux_target_ops): Remove the op.
916 (class linux_process_target) <emit_ops>: Remove.
917 * linux-low.cc (linux_process_target::emit_ops): Remove.
918 * linux-x86-low.cc (class x86_target) <emit_ops>: Declare.
919 (x86_emit_ops): Turn into...
920 (x86_target::emit_ops): ...this.
921 (the_low_target): Remove the op field.
922 * linux-aarch64-low.cc (class aarch64_target) <emit_ops>: Declare.
923 (aarch64_emit_ops): Turn into...
924 (aarch64_target::emit_ops): ...this.
925 (the_low_target): Remove the op field.
926 * linux-ppc-low.cc (class ppc_target) <emit_ops>: Declare.
927 (ppc_emit_ops): Turn into...
928 (ppc_target::emit_ops): ...this.
929 (the_low_target): Remove the op field.
930 * linux-s390-low.cc (class s390_target) <emit_ops>: Declare.
931 (s390_emit_ops): Turn into...
932 (s390_target::emit_ops): ...this.
933 (the_low_target): Remove the op field.
934 * linux-arm-low.cc (the_low_target): Remove the op field.
935 * linux-bfin-low.cc (the_low_target): Ditto.
936 * linux-crisv32-low.cc (the_low_target): Ditto.
937 * linux-m32r-low.cc (the_low_target): Ditto.
938 * linux-m68k-low.cc (the_low_target): Ditto.
939 * linux-sh-low.cc (the_low_target): Ditto.
940 * linux-tic6x-low.cc (the_low_target): Ditto.
941 * linux-tile-low.cc (the_low_target): Ditto.
942 * linux-xtensa-low.cc (the_low_target): Ditto.
943
944 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
945
946 Remove the 'install_fast_tracepoint_jump_pad' and
947 'get_min_fast_tracepoint_insn_len' linux target ops to let the
948 concrete linux target define the ops by overriding the declarations
949 of process_stratum_target.
950
951 * linux-low.h (struct linux_target_ops): Remove the ops.
952 (class linux_process_target) <supports_fast_tracepoints>
953 <install_fast_tracepoint_jump_pad>
954 <get_min_fast_tracepoint_insn_len>: Remove.
955 * linux-low.cc (linux_process_target::supports_fast_tracepoints)
956 (linux_process_target::install_fast_tracepoint_jump_pad)
957 (linux_process_target::get_min_fast_tracepoint_insn_len): Remove.
958 * linux-x86-low.cc (class x86_target) <supports_fast_tracepoints>
959 <install_fast_tracepoint_jump_pad>
960 <get_min_fast_tracepoint_insn_len>: Declare.
961 (x86_target::supports_fast_tracepoints): Define.
962 (x86_install_fast_tracepoint_jump_pad): Turn into...
963 (x86_target::install_fast_tracepoint_jump_pad): ...this.
964 (x86_get_min_fast_tracepoint_insn_len): Turn into...
965 (x86_target::get_min_fast_tracepoint_insn_len): ...this.
966 (the_low_target): Remove the op fields.
967 * linux-aarch64-low.cc (class aarch64_target)
968 <supports_fast_tracepoints>
969 <install_fast_tracepoint_jump_pad>
970 <get_min_fast_tracepoint_insn_len>: Declare.
971 (aarch64_target::supports_fast_tracepoints): Define.
972 (aarch64_install_fast_tracepoint_jump_pad): Turn into...
973 (aarch64_target::install_fast_tracepoint_jump_pad): ...this.
974 (aarch64_get_min_fast_tracepoint_insn_len): Turn into...
975 (aarch64_target::get_min_fast_tracepoint_insn_len): ...this.
976 (the_low_target): Remove the op fields.
977 * linux-ppc-low.cc (class ppc_target) <supports_fast_tracepoints>
978 <install_fast_tracepoint_jump_pad>
979 <get_min_fast_tracepoint_insn_len>: Declare.
980 (ppc_target::supports_fast_tracepoints): Define.
981 (ppc_install_fast_tracepoint_jump_pad): Turn into...
982 (ppc_target::install_fast_tracepoint_jump_pad): ...this.
983 (ppc_get_min_fast_tracepoint_insn_len): Turn into...
984 (ppc_target::get_min_fast_tracepoint_insn_len): ...this.
985 (the_low_target): Remove the op fields.
986 * linux-s390-low.cc (class s390_target) <supports_fast_tracepoints>
987 <install_fast_tracepoint_jump_pad>
988 <get_min_fast_tracepoint_insn_len>: Declare.
989 (s390_target::supports_fast_tracepoints): Define.
990 (s390_install_fast_tracepoint_jump_pad): Turn into...
991 (s390_target::install_fast_tracepoint_jump_pad): ...this.
992 (s390_get_min_fast_tracepoint_insn_len): Turn into...
993 (s390_target::get_min_fast_tracepoint_insn_len): ...this.
994 (the_low_target): Remove the op fields.
995 * linux-arm-low.cc (the_low_target): Remove the op fields.
996 * linux-bfin-low.cc (the_low_target): Ditto.
997 * linux-crisv32-low.cc (the_low_target): Ditto.
998 * linux-m32r-low.cc (the_low_target): Ditto.
999 * linux-m68k-low.cc (the_low_target): Ditto.
1000 * linux-sh-low.cc (the_low_target): Ditto.
1001 * linux-tic6x-low.cc (the_low_target): Ditto.
1002 * linux-tile-low.cc (the_low_target): Ditto.
1003 * linux-xtensa-low.cc (the_low_target): Ditto.
1004
1005 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1006
1007 Turn the 'get_thread_area' linux target op into a method of
1008 process_stratum_target.
1009
1010 * linux-low.h (struct linux_target_ops): Remove the op.
1011 (class linux_process_target) <stuck_in_jump_pad>
1012 <linux_fast_tracepoint_collecting>
1013 <low_get_thread_area>: Declare.
1014 * linux-low.cc (supports_fast_tracepoints): Remove.
1015 (linux_fast_tracepoint_collecting): Turn into...
1016 (linux_process_target::linux_fast_tracepoint_collecting): ...this.
1017 (linux_process_target::low_get_thread_area): Define.
1018 (stuck_in_jump_pad_callback): Turn into...
1019 (linux_process_target::stuck_in_jump_pad): ...this.
1020
1021 Update the caller below.
1022
1023 (linux_process_target::stabilize_threads)
1024
1025 * linux-x86-low.cc (class x86_target) <low_get_thread_area>:
1026 Declare.
1027 (x86_get_thread_area): Turn into...
1028 (x86_target::low_get_thread_area): ...this.
1029 (the_low_target): Remove the op field.
1030 * linux-aarch64-low.cc (class aarch64_target) <low_get_thread_area>:
1031 Declare.
1032 (aarch64_get_thread_area): Turn into...
1033 (aarch64_target::low_get_thread_area): ...this.
1034 (the_low_target): Remove the op field.
1035 * linux-ppc-low.cc (class ppc_target) <low_get_thread_area>:
1036 Declare.
1037 (ppc_get_thread_area): Turn into...
1038 (ppc_target::low_get_thread_area): ...this.
1039 (the_low_target): Remove the op field.
1040 * linux-s390-low.cc (class s390_target) <low_get_thread_area>:
1041 Declare.
1042 (s390_get_thread_area): Turn into...
1043 (s390_target::low_get_thread_area): ...this.
1044 (the_low_target): Remove the op field.
1045 * linux-arm-low.cc (the_low_target): Remove the op field.
1046 * linux-bfin-low.cc (the_low_target): Ditto.
1047 * linux-crisv32-low.cc (the_low_target): Ditto.
1048 * linux-m32r-low.cc (the_low_target): Ditto.
1049 * linux-m68k-low.cc (the_low_target): Ditto.
1050 * linux-sh-low.cc (the_low_target): Ditto.
1051 * linux-tic6x-low.cc (the_low_target): Ditto.
1052 * linux-tile-low.cc (the_low_target): Ditto.
1053 * linux-xtensa-low.cc (the_low_target): Ditto.
1054
1055 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1056
1057 Remote the 'supports_tracepoints' linux target op and let the
1058 concrete linux target define it by overriding the op declared in
1059 process_stratum_target.
1060
1061 * linux-low.h (struct linux_target_ops): Remove the op.
1062 (class linux_process_target) <supports_tracepoints>: Remove.
1063 * linux-low.cc (linux_process_target::supports_tracepoints): Remove.
1064 * linux-x86-low.cc (class x86_target) <supports_tracepoints>:
1065 Declare.
1066 (x86_supports_tracepoints): Turn into...
1067 (x86_target::supports_tracepoints): ...this.
1068 (the_low_target): Remove the op field.
1069 * linux-aarch64-low.cc (class aarch64_target)
1070 <supports_tracepoints>: Declare.
1071 (aarch64_supports_tracepoints): Turn into...
1072 (aarch64_target::supports_tracepoints): ...this.
1073 (the_low_target): Remove the op field.
1074 * linux-ppc-low.cc (class ppc_target) <supports_tracepoints>:
1075 Declare.
1076 (ppc_supports_tracepoints): Turn into...
1077 (ppc_target::supports_tracepoints): ...this.
1078 (the_low_target): Remove the op field.
1079 * linux-s390-low.cc (class s390_target) <supports_tracepoints>:
1080 Declare.
1081 (s390_supports_tracepoints): Turn into...
1082 (s390_target::supports_tracepoints): ...this.
1083 (the_low_target): Remove the op field.
1084 * linux-arm-low.cc (the_low_target): Remove the op field.
1085 * linux-bfin-low.cc (the_low_target): Ditto.
1086 * linux-crisv32-low.cc (the_low_target): Ditto.
1087 * linux-m32r-low.cc (the_low_target): Ditto.
1088 * linux-m68k-low.cc (the_low_target): Ditto.
1089 * linux-sh-low.cc (the_low_target): Ditto.
1090 * linux-tic6x-low.cc (the_low_target): Ditto.
1091 * linux-tile-low.cc (the_low_target): Ditto.
1092 * linux-xtensa-low.cc (the_low_target): Ditto.
1093
1094 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1095
1096 Remove the 'process_qsupported' linux target op and let a concrete
1097 linux target define the op by overriding the op declaration in
1098 process_stratum_target.
1099
1100 * linux-low.h (struct linux_target_ops): Remove the op.
1101 (class linux_process_target) <process_qsupported>: Remove.
1102 * linux-low.cc (linux_process_target::process_qsupported): Remove.
1103 * linux-x86-low.cc (class x86_target) <process_qsupported>: Declare.
1104 (x86_linux_process_qsupported): Turn into...
1105 (x86_target::process_qsupported): ...this.
1106 (the_low_target): Remove the op field.
1107 * linux-aarch64-low.cc (the_low_target): Remove the op
1108 field.
1109 * linux-arm-low.cc (the_low_target): Ditto.
1110 * linux-bfin-low.cc (the_low_target): Ditto.
1111 * linux-crisv32-low.cc (the_low_target): Ditto.
1112 * linux-m32r-low.cc (the_low_target): Ditto.
1113 * linux-m68k-low.cc (the_low_target): Ditto.
1114 * linux-ppc-low.cc (the_low_target): Ditto.
1115 * linux-s390-low.cc (the_low_target): Ditto.
1116 * linux-sh-low.cc (the_low_target): Ditto.
1117 * linux-tic6x-low.cc (the_low_target): Ditto.
1118 * linux-tile-low.cc (the_low_target): Ditto.
1119 * linux-xtensa-low.cc (the_low_target): Ditto.
1120
1121 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1122
1123 Turn the 'prepare_to_resume' linux target op into a method of
1124 linux_process_target.
1125
1126 * linux-low.h (struct linux_target_ops): Remove the op.
1127 (class linux_process_target) <low_prepare_to_resume>: Declare.
1128 * linux-low.cc (linux_process_target::low_prepare_to_resume):
1129 Define.
1130
1131 Update the callers below:
1132
1133 (linux_process_target::resume_one_lwp_throw)
1134 (linux_process_target::low_prepare_to_resume)
1135
1136 * linux-x86-low.cc (class x86_target) <low_prepare_to_resume>:
1137 Declare.
1138 (x86_target::low_prepare_to_resume): Define.
1139 (the_low_target): Remove the op field.
1140 * linux-aarch64-low.cc (class aarch64_target)
1141 <low_prepare_to_resume>: Declare.
1142 (aarch64_target::low_prepare_to_resume): Define.
1143 (the_low_target): Remove the op field.
1144 * linux-arm-low.cc (class arm_target) <low_prepare_to_resume>:
1145 Declare.
1146 (arm_prepare_to_resume): Turn into...
1147 (arm_target::low_prepare_to_resume): ...this.
1148 (the_low_target): Remove the op field.
1149 * linux-mips-low.cc (class mips_target) <low_prepare_to_resume>:
1150 Declare.
1151 (mips_linux_prepare_to_resume): Turn into...
1152 (mips_target::low_prepare_to_resume): ...this.
1153 (the_low_target): Remove the op field.
1154 * linux-bfin-low.cc (the_low_target): Remove the op field.
1155 * linux-crisv32-low.cc (the_low_target): Ditto.
1156 * linux-m32r-low.cc (the_low_target): Ditto.
1157 * linux-m68k-low.cc (the_low_target): Ditto.
1158 * linux-ppc-low.cc (the_low_target): Ditto.
1159 * linux-s390-low.cc (the_low_target): Ditto.
1160 * linux-sh-low.cc (the_low_target): Ditto.
1161 * linux-tic6x-low.cc (the_low_target): Ditto.
1162 * linux-tile-low.cc (the_low_target): Ditto.
1163 * linux-xtensa-low.cc (the_low_target): Ditto.
1164
1165 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1166
1167 Turn the 'new_process', 'delete_process', 'new_thread',
1168 'delete_thread', and 'new_fork' linux target ops into methods
1169 of linux_process_target.
1170
1171 * linux-low.h (struct linux_target_ops): Remove the ops.
1172 (class linux_process_target) <add_linux_process>
1173 <add_lwp>
1174 <delete_lwp>
1175 <attach_lwp>
1176 <detach_one_lwp>
1177 <check_zombie_leaders>
1178 <filter_exit_event>
1179 <low_new_process>
1180 <low_delete_process>
1181 <low_new_thread>
1182 <low_delete_thread>
1183 <low_new_fork>: Declare.
1184 * linux-low.cc (delete_lwp): Turn into...
1185 (linux_process_target::delete_lwp): ...this.
1186 (linux_process_target::low_delete_thread): Define.
1187 (linux_add_process): Turn into...
1188 (linux_process_target::add_linux_process): ...this.
1189 (linux_process_target::low_new_process): Define.
1190 (linux_process_target::low_delete_process): Define.
1191 (linux_process_target::low_new_fork): Define.
1192 (add_lwp): Turn into...
1193 (linux_process_target::add_lwp): ...this.
1194 (linux_process_target::low_new_thread): Define.
1195 (linux_attach_lwp): Turn into...
1196 (linux_process_target::attach_lwp): ...this.
1197 (linux_detach_one_lwp): Turn into...
1198 (linux_process_target::detach_one_lwp): ...this.
1199 (linux_detach_lwp_callback): Remove and inline...
1200 (linux_process_target::detach): ...here.
1201 (check_zombie_leaders): Turn into...
1202 (linux_process_target::check_zombie_leaders): ...this.
1203 (filter_exit_event): Turn into...
1204 (linux_process_target::filter_exit_event): ...this.
1205
1206 Update the callers below.
1207
1208 (linux_process_target::handle_extended_wait)
1209 (linux_process_target::create_inferior)
1210 (attach_proc_task_lwp_callback)
1211 (linux_process_target::attach)
1212 (linux_process_target::detach)
1213 (linux_process_target::mourn)
1214 * thread-db.cc (attach_thread)
1215
1216 * linux-x86-low.cc (class x86_target) <low_new_process>
1217 <low_delete_process>
1218 <low_new_thread>
1219 <low_delete_thread>
1220 <low_new_fork>: Declare.
1221 (x86_linux_new_process): Turn into...
1222 (x86_target::low_new_process): ...this.
1223 (x86_linux_delete_process): Turn into...
1224 (x86_target::low_delete_process): ...this.
1225 (x86_target::low_new_thread): Define.
1226 (x86_target::low_delete_thread): Define.
1227 (x86_linux_new_fork): Turn into...
1228 (x86_target::low_new_fork): ...this.
1229 (the_low_target): Remove the op fields.
1230 * linux-aarch64-low.cc (class aarch64_target) <low_new_process>
1231 <low_delete_process>
1232 <low_new_thread>
1233 <low_delete_thread>
1234 <low_new_fork>: Declare.
1235 (aarch64_linux_new_process): Turn into...
1236 (aarch64_target::low_new_process): ...this.
1237 (aarch64_linux_delete_process): Turn into...
1238 (aarch64_target::low_delete_process): ...this.
1239 (aarch64_target::low_new_thread): Define.
1240 (aarch64_target::low_delete_thread): Define.
1241 (aarch64_linux_new_fork): Turn into...
1242 (aarch64_target::low_new_fork): ...this.
1243 (the_low_target): Remove the op fields.
1244 * linux-arm-low.cc (class arm_target) <low_new_process>
1245 <low_delete_process>
1246 <low_new_thread>
1247 <low_delete_thread>
1248 <low_new_fork>: Declare.
1249 (arm_new_process): Turn into...
1250 (arm_target::low_new_process): ...this.
1251 (arm_delete_process): Turn into...
1252 (arm_target::low_delete_process): ...this.
1253 (arm_new_thread): Turn into...
1254 (arm_target::low_new_thread): ...this.
1255 (arm_delete_thread): Turn into...
1256 (arm_target::low_delete_thread): ...this.
1257 (arm_new_fork): Turn into...
1258 (arm_target::low_new_fork): ...this.
1259 (the_low_target): Remove the op fields.
1260 * linux-mips-low.cc (class mips_target) <low_new_process>
1261 <low_delete_process>
1262 <low_new_thread>
1263 <low_delete_thread>
1264 <low_new_fork>: Declare.
1265 (mips_linux_new_process): Turn into...
1266 (mips_target::low_new_process): ...this.
1267 (mips_linux_delete_process): Turn into...
1268 (mips_target::low_delete_process): ...this.
1269 (mips_linux_new_thread): Turn into...
1270 (mips_target::low_new_thread): ...this.
1271 (mips_linux_delete_thread): Turn into...
1272 (mips_target::low_delete_thread): ...this.
1273 (mips_linux_new_fork): Turn into...
1274 (mips_target::low_new_fork): ...this.
1275 (the_low_target): Remove the op fields.
1276 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1277 * linux-crisv32-low.cc (the_low_target): Ditto.
1278 * linux-m32r-low.cc (the_low_target): Ditto.
1279 * linux-m68k-low.cc (the_low_target): Ditto.
1280 * linux-ppc-low.cc (the_low_target): Ditto.
1281 * linux-s390-low.cc (the_low_target): Ditto.
1282 * linux-sh-low.cc (the_low_target): Ditto.
1283 * linux-tic6x-low.cc (the_low_target): Ditto.
1284 * linux-tile-low.cc (the_low_target): Ditto.
1285 * linux-xtensa-low.cc (the_low_target): Ditto.
1286
1287 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1288
1289 Turn the 'siginfo_fixup' linux target op into a method of
1290 linux_process_target.
1291
1292 * linux-low.h (struct linux_target_ops): Remove the op.
1293 (class linux_process_target) <siginfo_fixup>
1294 <low_siginfo_fixup>: Declare.
1295 * linux-low.cc (siginfo_fixup): Turn into...
1296 (linux_process_target::siginfo_fixup): ...this.
1297 (linux_process_target::low_siginfo_fixup): Define.
1298 * linux-x86-low.cc (class x86_target) <low_siginfo_fixup>: Declare.
1299 (x86_siginfo_fixup): Turn into...
1300 (x86_target::low_siginfo_fixup): ...this.
1301 (the_low_target): Remove the op field.
1302 * linux-aarch64-low.cc (class aarch64_target):
1303 <low_siginfo_fixup>: Declare.
1304 (aarch64_linux_siginfo_fixup): Turn into...
1305 (aarch64_target::low_siginfo_fixup): ...this.
1306 (the_low_target): Remove the op field.
1307 * linux-arm-low.cc (the_low_target): Remove the op field.
1308 * linux-bfin-low.cc (the_low_target): Ditto.
1309 * linux-crisv32-low.cc (the_low_target): Ditto.
1310 * linux-m32r-low.cc (the_low_target): Ditto.
1311 * linux-m68k-low.cc (the_low_target): Ditto.
1312 * linux-mips-low.cc (the_low_target): Ditto.
1313 * linux-ppc-low.cc (the_low_target): Ditto.
1314 * linux-s390-low.cc (the_low_target): Ditto.
1315 * linux-sh-low.cc (the_low_target): Ditto.
1316 * linux-tic6x-low.cc (the_low_target): Ditto.
1317 * linux-tile-low.cc (the_low_target): Ditto.
1318 * linux-xtensa-low.cc (the_low_target): Ditto.
1319
1320 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1321
1322 Turn the 'collect_ptrace_register' and 'supply_ptrace_register'
1323 linux target ops into methods of linux_process_target.
1324
1325 * linux-low.h (struct linux_target_ops): Remove the ops.
1326 (class linux_process_target) <low_collect_ptrace_register>
1327 <low_store_ptrace_register>: Declare.
1328 * linux-low.cc (linux_process_target::low_collect_ptrace_register)
1329 (linux_process_target::low_supply_ptrace_register): Define.
1330
1331 Update the callers below.
1332
1333 (linux_process_target::fetch_register)
1334 (linux_process_target::store_register)
1335
1336 * linux-x86-low.cc (the_low_target): Remove the op fields.
1337 * linux-aarch64-low.cc (the_low_target): Ditto.
1338 * linux-arm-low.cc (the_low_target): Ditto.
1339 * linux-bfin-low.cc (the_low_target): Ditto.
1340 * linux-crisv32-low.cc (the_low_target): Ditto.
1341 * linux-m32r-low.cc (the_low_target): Ditto.
1342 * linux-m68k-low.cc (the_low_target): Ditto.
1343 * linux-sh-low.cc (the_low_target): Ditto.
1344 * linux-sparc-low.cc (the_low_target): Ditto.
1345 * linux-tic6x-low.cc (the_low_target): Ditto.
1346 * linux-tile-low.cc (the_low_target): Ditto.
1347 * linux-xtensa-low.cc (the_low_target): Ditto.
1348 * linux-mips-low.cc (class mips_target)
1349 <low_collect_ptrace_register>
1350 <low_supply_ptrace_register>: Declare.
1351 (mips_collect_ptrace_register): Turn into ...
1352 (mips_target::low_collect_ptrace_register): ...this.
1353 (mips_supply_ptrace_register): Turn into...
1354 (mips_target::low_supply_ptrace_register): ...this.
1355 (the_low_target): Remove the op fields.
1356 * linux-ppc-low.cc (class ppc_target)
1357 <low_collect_ptrace_register>
1358 <low_supply_ptrace_register>: Declare.
1359 (ppc_collect_ptrace_register): Turn into ...
1360 (ppc_target::low_collect_ptrace_register): ...this.
1361 (ppc_supply_ptrace_register): Turn into ...
1362 (ppc_target::low_supply_ptrace_register): ...this.
1363 (ppc_fill_gregset): Update for the calls to
1364 low_collect_ptrace_register.
1365 (the_low_target): Remove the op fields.
1366 * linux-s390-low.cc (class s390_target)
1367 <low_collect_ptrace_register>
1368 <low_supply_ptrace_register>: Declare.
1369 (s390_collect_ptrace_register): Turn into ...
1370 (s390_target::low_collect_ptrace_register): ...this.
1371 (s390_supply_ptrace_register): Turn into ...
1372 (s390_target::low_supply_ptrace_register): ...this.
1373 (s390_fill_gregset): Update for the calls to
1374 low_collect_ptrace_register.
1375 (the_low_target): Remove the op fields.
1376
1377 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1378
1379 Turn the 'stopped_by_watchpoint' and 'stopped_data_address' linux
1380 target ops into methods of linux_process_target.
1381
1382 * linux-low.h (struct linux_target_ops): Remove the ops.
1383 (class linux_process_target) <check_stopped_by_watchpoint>
1384 <low_stopped_by_watchpoint>
1385 <low_stopped_data_address>: Declare.
1386 * linux-low.cc (check_stopped_by_watchpoint): Turn into...
1387 (linux_process_target::check_stopped_by_watchpoint): ...this.
1388 (linux_process_target::low_stopped_by_watchpoint): Define.
1389 (linux_process_target::low_stopped_data_address): Define.
1390 * linux-x86-low.cc (class x86_target) <low_stopped_by_watchpoint>
1391 <low_stopped_data_address>: Declare.
1392 (x86_stopped_by_watchpoint): Turn into...
1393 (x86_target::low_stopped_by_watchpoint): ...this.
1394 (x86_stopped_data_address): Turn into...
1395 (x86_target::low_stopped_data_address): ...this.
1396 (the_low_target): Remove the op fields.
1397 * linux-aarch64-low.cc (class aarch64_target)
1398 <low_stopped_by_watchpoint>
1399 <low_stopped_data_address>: Declare.
1400 (aarch64_stopped_by_watchpoint): Turn into...
1401 (aarch64_target::low_stopped_by_watchpoint): ...this.
1402 (aarch64_stopped_data_address): Turn into...
1403 (aarch64_target::low_stopped_data_address): ...this.
1404 (the_low_target): Remove the op fields.
1405 * linux-arm-low.cc (class arm_target) <low_stopped_by_watchpoint>
1406 <low_stopped_data_address>: Declare.
1407 (arm_stopped_by_watchpoint): Turn into...
1408 (arm_target::low_stopped_by_watchpoint): ...this.
1409 (arm_stopped_data_address): Turn into...
1410 (arm_target::low_stopped_data_address): ...this.
1411 (the_low_target): Remove the op fields.
1412 * linux-crisv32-low.cc (class crisv32_target)
1413 <low_stopped_by_watchpoint>
1414 <low_stopped_data_address>: Declare.
1415 (cris_stopped_by_watchpoint): Turn into...
1416 (crisv32_target::low_stopped_by_watchpoint): ...this.
1417 (cris_stopped_data_address): Turn into...
1418 (crisv32_target::low_stopped_data_address): ...this.
1419 (the_low_target): Remove the op fields.
1420 * linux-mips-low.cc (class mips_target) <low_stopped_by_watchpoint>
1421 <low_stopped_data_address>: Declare.
1422 (mips_stopped_by_watchpoint): Turn into...
1423 (mips_target::low_stopped_by_watchpoint): ...this.
1424 (mips_stopped_data_address): Turn into...
1425 (mips_target::low_stopped_data_address): ...this.
1426 (the_low_target): Remove the op fields.
1427 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1428 * linux-m32r-low.cc (the_low_target): Ditto.
1429 * linux-m68k-low.cc (the_low_target): Ditto.
1430 * linux-ppc-low.cc (the_low_target): Ditto.
1431 * linux-s390-low.cc (the_low_target): Ditto.
1432 * linux-sh-low.cc (the_low_target): Ditto.
1433 * linux-sparc-low.cc (the_low_target): Ditto.
1434 * linux-tic6x-low.cc (the_low_target): Ditto.
1435 * linux-tile-low.cc (the_low_target): Ditto.
1436 * linux-xtensa-low.cc (the_low_target): Ditto.
1437
1438 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1439
1440 Turn the 'insert_point' and 'remove_point' linux target ops into
1441 methods of linux_process_target.
1442
1443 * linux-low.h (struct linux_target_ops): Remove the ops.
1444 (class linux_process_target) <low_insert_point>
1445 <low_remove_point>: Declare.
1446 * linux-low.cc (linux_process_target::low_insert_point)
1447 (linux_process_target::low_remove_point): Define.
1448 (linux_process_target::insert_point)
1449 (linux_process_target::remove_point): Update for calls to
1450 low_insert_point and low_remove_point.
1451 * linux-x86-low.cc (class x86_target) <low_insert_point>
1452 <low_remove_point>: Declare.
1453 (x86_insert_point): Turn into...
1454 (x86_target::low_insert_point): ...this.
1455 (x86_remove_point): Turn into...
1456 (x86_target::low_remove_point): ...this.
1457 (the_low_target): Remove the op fields.
1458 * linux-aarch64-low.cc (class aarch64_target) <low_insert_point>
1459 <low_remove_point>: Declare.
1460 (aarch64_insert_point): Turn into...
1461 (aarch64_target::low_insert_point): ...this.
1462 (aarch64_remove_point): Turn into...
1463 (aarch64_target::low_remove_point): ...this.
1464 (the_low_target): Remove the op fields.
1465 * linux-arm-low.cc (class arm_target) <low_insert_point>
1466 <low_remove_point>: Declare.
1467 (arm_insert_point): Turn into...
1468 (arm_target::low_insert_point): ...this.
1469 (arm_remove_point): Turn into...
1470 (arm_target::low_remove_point): ...this.
1471 (the_low_target): Remove the op fields.
1472 * linux-crisv32-low.cc (class crisv32_target) <low_insert_point>
1473 <low_remove_point>: Declare.
1474 (crisv32_insert_point): Turn into...
1475 (crisv32_target::low_insert_point): ...this.
1476 (crisv32_remove_point): Turn into...
1477 (crisv32_target::low_remove_point): ...this.
1478 (the_low_target): Remove the op fields.
1479 * linux-mips-low.cc (class mips_target) <low_insert_point>
1480 <low_remove_point>: Declare.
1481 (mips_insert_point): Turn into...
1482 (mips_target::low_insert_point): ...this.
1483 (mips_remove_point): Turn into...
1484 (mips_target::low_remove_point): ...this.
1485 (the_low_target): Remove the op fields.
1486 * linux-ppc-low.cc (class ppc_target) <low_insert_point>
1487 <low_remove_point>: Declare.
1488 (ppc_insert_point): Turn into...
1489 (ppc_target::low_insert_point): ...this.
1490 (ppc_remove_point): Turn into...
1491 (ppc_target::low_remove_point): ...this.
1492 (the_low_target): Remove the op fields.
1493 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1494 * linux-m32r-low.cc (the_low_target): Ditto.
1495 * linux-m68k-low.cc (the_low_target): Ditto.
1496 * linux-s390-low.cc (the_low_target): Ditto.
1497 * linux-sh-low.cc (the_low_target): Ditto.
1498 * linux-sparc-low.cc (the_low_target): Ditto.
1499 * linux-tic6x-low.cc (the_low_target): Ditto.
1500 * linux-tile-low.cc (the_low_target): Ditto.
1501 * linux-xtensa-low.cc (the_low_target): Ditto.
1502
1503 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1504
1505 Remove the 'supports_z_point_type' linux target op and let the
1506 concrete linux target define it by overriding the op declared in
1507 process_stratum_target.
1508
1509 * linux-low.cc (linux_process_target::supports_z_point_type):
1510 Remove.
1511 * linux-low.h (struct linux_target_ops): Remove the op.
1512 (class linux_process_target) <supports_z_point_type>: Remove.
1513 * linux-x86-low.cc (class x86_target) <supports_z_point_type>:
1514 Declare.
1515 (x86_supports_z_point_type): Turn into...
1516 (x86_target::supports_z_point_type): ...this.
1517 (the_low_target): Remove the op field.
1518 * linux-aarch64-low.cc (class aarch64_target)
1519 <supports_z_point_type>: Declare.
1520 (aarch64_supports_z_point_type): Turn into...
1521 (aarch64_target::supports_z_point_type): ...this.
1522 (the_low_target): Remove the op field.
1523 * linux-arm-low.cc (class arm_target) <supports_z_point_type>:
1524 Declare.
1525 (arm_supports_z_point_type): Turn into...
1526 (arm_target::supports_z_point_type): ...this.
1527 (the_low_target): Remove the op field.
1528 * linux-crisv32-low.cc (class crisv32_target)
1529 <supports_z_point_type>: Declare.
1530 (cris_supports_z_point_type): Turn into...
1531 (crisv32_target::supports_z_point_type): ...this.
1532 (the_low_target): Remove the op field.
1533 * linux-mips-low.cc (class mips_target) <supports_z_point_type>:
1534 Declare.
1535 (mips_supports_z_point_type): Turn into...
1536 (mips_target::supports_z_point_type): ...this.
1537 (the_low_target): Remove the op field.
1538 * linux-ppc-low.cc (class ppc_target) <supports_z_point_type>:
1539 Declare.
1540 (ppc_supports_z_point_type): Turn into...
1541 (ppc_target::supports_z_point_type): ...this.
1542 (the_low_target): Remove the op field.
1543 * linux-s390-low.cc (class s390_target) <supports_z_point_type>:
1544 Declare.
1545 (s390_supports_z_point_type): Turn into...
1546 (s390_target::supports_z_point_type): ...this.
1547 (the_low_target): Remove the op field.
1548 * linux-bfin-low.cc (the_low_target): Remove the op field.
1549 * linux-m32r-low.cc (the_low_target): Ditto.
1550 * linux-m68k-low.cc (the_low_target): Ditto.
1551 * linux-sh-low.cc (the_low_target): Ditto.
1552 * linux-sparc-low.cc (the_low_target): Ditto.
1553 * linux-tic6x-low.cc (the_low_target): Ditto.
1554 * linux-tile-low.cc (the_low_target): Ditto.
1555 * linux-xtensa-low.cc (the_low_target): Ditto.
1556
1557 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1558
1559 Turn the 'breakpoint_at' linux target op into a method of
1560 linux_process_target.
1561
1562 * linux-low.h (struct linux_target_ops): Remove the op.
1563 (class linux_process_target) <low_breakpoint_at>: Declare.
1564
1565 Update the callers below:
1566
1567 * linux-low.cc (linux_process_target::save_stop_reason)
1568 (linux_process_target::thread_still_has_status_pending)
1569 (linux_process_target::wait_1)
1570
1571 * linux-x86-low.cc (class x86_target)
1572 <low_breakpoint_at>: Declare.
1573 (x86_breakpoint_at): Turn into...
1574 (x86_target::low_breakpoint_at): ...this.
1575 (the_low_target): Remove the op field.
1576 * linux-aarch64-low.cc (class aarch64_target)
1577 <low_breakpoint_at>: Declare.
1578 (aarch64_breakpoint_at): Turn into...
1579 (aarch64_target::low_breakpoint_at): ...this.
1580 (the_low_target): Remove the op field.
1581 * linux-arm-low.cc (class arm_target)
1582 <low_breakpoint_at>: Declare.
1583 (arm_target::low_breakpoint_at): Define.
1584 (the_low_target): Remove the op field.
1585 * linux-bfin-low.cc (class bfin_target)
1586 <low_breakpoint_at>: Declare.
1587 (bfin_breakpoint_at): Turn into...
1588 (bfin_target::low_breakpoint_at): ...this.
1589 (the_low_target): Remove the op field.
1590 * linux-cris-low.cc (class cris_target)
1591 <low_breakpoint_at>: Declare.
1592 (cris_breakpoint_at): Turn into...
1593 (cris_target::low_breakpoint_at): ...this.
1594 (the_low_target): Remove the op field.
1595 * linux-crisv32-low.cc (class crisv32_target)
1596 <low_breakpoint_at>: Declare.
1597 (crisv32_breakpoint_at): Turn into...
1598 (crisv32_target::low_breakpoint_at): ...this.
1599 (the_low_target): Remove the op field.
1600 * linux-ia64-low.cc (class ia64_target)
1601 <low_breakpoint_at>: Declare.
1602 (ia64_target::low_breakpoint_at): Define.
1603 * linux-m32r-low.cc (class m32r_target)
1604 <low_breakpoint_at>: Declare.
1605 (m32r_breakpoint_at): Turn into...
1606 (m32r_target::low_breakpoint_at): ...this.
1607 (the_low_target): Remove the op field.
1608 * linux-m68k-low.cc (class m68k_target)
1609 <low_breakpoint_at>: Declare.
1610 (m68k_breakpoint_at): Turn into...
1611 (m68k_target::low_breakpoint_at): ...this.
1612 (the_low_target): Remove the op field.
1613 * linux-mips-low.cc (class mips_target)
1614 <low_breakpoint_at>: Declare.
1615 (mips_breakpoint_at): Turn into...
1616 (mips_target::low_breakpoint_at): ...this.
1617 (the_low_target): Remove the op field.
1618 * linux-nios2-low.cc (class nios2_target)
1619 <low_breakpoint_at>: Declare.
1620 (nios2_breakpoint_at): Turn into...
1621 (nios2_target::low_breakpoint_at): ...this.
1622 (the_low_target): Remove the op field.
1623 * linux-ppc-low.cc (class ppc_target)
1624 <low_breakpoint_at>: Declare.
1625 (ppc_breakpoint_at): Turn into...
1626 (ppc_target::low_breakpoint_at): ...this.
1627 (the_low_target): Remove the op field.
1628 * linux-riscv-low.cc (class riscv_target)
1629 <low_breakpoint_at>: Declare.
1630 (riscv_breakpoint_at): Turn into...
1631 (riscv_target::low_breakpoint_at): ...this.
1632 (the_low_target): Remove the op field.
1633 * linux-s390-low.cc (class s390_target)
1634 <low_breakpoint_at>: Declare.
1635 (s390_breakpoint_at): Turn into...
1636 (s390_target::low_breakpoint_at): ...this.
1637 (the_low_target): Remove the op field.
1638 * linux-sh-low.cc (class sh_target)
1639 <low_breakpoint_at>: Declare.
1640 (sh_breakpoint_at): Turn into...
1641 (sh_target::low_breakpoint_at): ...this.
1642 (the_low_target): Remove the op field.
1643 * linux-sparc-low.cc (class sparc_target)
1644 <low_breakpoint_at>: Declare.
1645 (sparc_breakpoint_at): Turn into...
1646 (sparc_target::low_breakpoint_at): ...this.
1647 (the_low_target): Remove the op field.
1648 * linux-tic6x-low.cc (class tic6x_target)
1649 <low_breakpoint_at>: Declare.
1650 (tic6x_breakpoint_at): Turn into...
1651 (tic6x_target::low_breakpoint_at): ...this.
1652 (the_low_target): Remove the op field.
1653 * linux-tile-low.cc (class tile_target)
1654 <low_breakpoint_at>: Declare.
1655 (tile_breakpoint_at): Turn into...
1656 (tile_target::low_breakpoint_at): ...this.
1657 (the_low_target): Remove the op field.
1658 * linux-xtensa-low.cc (class xtensa_target)
1659 <low_breakpoint_at>: Declare.
1660 (xtensa_breakpoint_at): Turn into...
1661 (xtensa_target::low_breakpoint_at): ...this.
1662 (the_low_target): Remove the op field.
1663
1664 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1665
1666 Turn the 'decr_pc_after_break' linux_target_ops field into
1667 a method of linux_process_target.
1668
1669 * linux-low.h (struct linux_target_ops)
1670 <decr_pc_after_break>: Remove.
1671 (class linux_process_target) <low_decr_pc_after_break>: New method
1672 declaration.
1673 * linux-low.cc (linux_process_target::low_decr_pc_after_break):
1674 New method implementation.
1675
1676 Update the users below.
1677
1678 (linux_process_target::save_stop_reason)
1679 (linux_process_target::wait_1)
1680 * linux-x86-low.cc (class x86_target) <low_decr_pc_after_break>:
1681 New declaration.
1682 (x86_target::low_decr_pc_after_break): New method implementation.
1683 (the_low_target): Remove the field.
1684 * linux-bfin-low.cc (class bfin_target) <low_decr_pc_after_break>:
1685 New declaration.
1686 (bfin_target::low_decr_pc_after_break): New method implementation.
1687 (the_low_target): Remove the field.
1688 * linux-m68k-low.cc (class m68k_target) <low_decr_pc_after_break>:
1689 New declaration.
1690 (m68k_target::low_decr_pc_after_break): New method implementation.
1691 (the_low_target): Remove the field.
1692 * linux-s390-low.cc (class s390_target) <low_decr_pc_after_break>:
1693 New declaration.
1694 (s390_target::low_decr_pc_after_break): New method implementation.
1695 (the_low_target): Remove the field.
1696 * linux-aarch64-low.cc (the_low_target): Remove the field.
1697 * linux-arm-low.cc (the_low_target): Remove the field.
1698 * linux-cris-low.cc (the_low_target): Remove the field.
1699 * linux-crisv32-low.cc (the_low_target): Remove the field.
1700 * linux-m32r-low.cc (the_low_target): Remove the field.
1701 * linux-mips-low.cc (the_low_target): Remove the field.
1702 * linux-nios2-low.cc (the_low_target): Remove the field.
1703 * linux-ppc-low.cc (the_low_target): Remove the field.
1704 * linux-riscv-low.cc (the_low_target): Remove the field.
1705 * linux-sh-low.cc (the_low_target): Remove the field.
1706 * linux-sparc-low.cc (the_low_target): Remove the field.
1707 * linux-tic6x-low.cc (the_low_target): Remove the field.
1708 * linux-tile-low.cc (the_low_target): Remove the field.
1709 * linux-xtensa-low.cc (the_low_target): Remove the field.
1710
1711 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1712
1713 Remove the 'supports_software_single_step' linux target op and let
1714 the concrete linux target define it by overriding the op in
1715 process_stratum_target.
1716 Turn the 'get_next_pcs' linux target op into a method of
1717 linux_process_target.
1718
1719 * linux-low.h (struct linux_target_ops): Remove the ops.
1720 (class linux_process_target) <supports_software_single_step>:
1721 Remove.
1722 <low_get_next_pcs>: Declare.
1723 * linux-low.cc (can_software_single_step): Remove.
1724 (linux_process_target::low_get_next_pcs): Define.
1725 (linux_process_target::supports_software_single_step): Remove.
1726
1727 Update the callers below.
1728
1729 (linux_process_target::handle_extended_wait)
1730 (linux_process_target::wait_1)
1731 (linux_process_target::install_software_single_step_breakpoints)
1732 (linux_process_target::single_step)
1733 (linux_process_target::thread_needs_step_over)
1734 (linux_process_target::proceed_one_lwp)
1735 (linux_process_target::supports_range_stepping)
1736
1737 * linux-x86-low.cc (the_low_target): Remove the op field.
1738 * linux-aarch64-low.cc (the_low_target): Ditto.
1739 * linux-bfin-low.cc (the_low_target): Ditto.
1740 * linux-cris-low.cc (the_low_target): Ditto.
1741 * linux-crisv32-low.cc (the_low_target): Ditto.
1742 * linux-m32r-low.cc (the_low_target): Ditto.
1743 * linux-m68k-low.cc (the_low_target): Ditto.
1744 * linux-mips-low.cc (the_low_target): Ditto.
1745 * linux-nios2-low.cc (the_low_target): Ditto.
1746 * linux-ppc-low.cc (the_low_target): Ditto.
1747 * linux-riscv-low.cc (the_low_target): Ditto.
1748 * linux-s390-low.cc (the_low_target): Ditto.
1749 * linux-sh-low.cc (the_low_target): Ditto.
1750 * linux-sparc-low.cc (the_low_target): Ditto.
1751 * linux-tic6x-low.cc (the_low_target): Ditto.
1752 * linux-tile-low.cc (the_low_target): Ditto.
1753 * linux-xtensa-low.cc (the_low_target): Ditto.
1754 * linux-arm-low.cc (class arm_target) <low_get_next_pcs>
1755 <supports_software_single_step>: Declare.
1756 (arm_target::supports_software_single_step): Define.
1757 (arm_gdbserver_get_next_pcs): Turn into...
1758 (arm_target::low_get_next_pcs): ...this.
1759 (the_low_target): Remove the op field.
1760
1761 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1762
1763 Remove the 'sw_breakpoint_from_kind' linux target op, and let
1764 the concrete linux target define it by overriding the op
1765 in process_stratum_target.
1766
1767 * linux-low.cc (linux_process_target::sw_breakpoint_from_kind):
1768 Remove.
1769 * linux-low.h (struct linux_target_ops): Remove the op.
1770 (class linux_process_target) <sw_breakpoint_from_kind>: Remove.
1771 * linux-x86-low.cc (class x86_target) <sw_breakpoint_from_kind>:
1772 Declare.
1773 (x86_sw_breakpoint_from_kind): Turn into...
1774 (x86_target::sw_breakpoint_from_kind): ...this.
1775 (the_low_target): Remove the op field.
1776 * linux-aarch64-low.cc (class aarch64_target)
1777 <sw_breakpoint_from_kind>: Declare.
1778 (aarch64_sw_breakpoint_from_kind): Turn into...
1779 (aarch64_target::sw_breakpoint_from_kind): ...this.
1780 (the_low_target): Remove the op field.
1781 * linux-arm-low.cc (class arm_target) <sw_breakpoint_from_kind>:
1782 Declare.
1783 (arm_target::sw_breakpoint_from_kind): Define.
1784 (the_low_target): Remove the op field.
1785 * linux-bfin-low.cc (class bfin_target) <sw_breakpoint_from_kind>:
1786 Declare.
1787 (bfin_sw_breakpoint_from_kind): Turn into...
1788 (bfin_target::sw_breakpoint_from_kind): ...this.
1789 (the_low_target): Remove the op field.
1790 * linux-cris-low.cc (class cris_target) <sw_breakpoint_from_kind>:
1791 Declare.
1792 (cris_sw_breakpoint_from_kind): Turn into...
1793 (cris_target::sw_breakpoint_from_kind): ...this.
1794 (the_low_target): Remove the op field.
1795 * linux-crisv32-low.cc (class crisv32_target)
1796 <sw_breakpoint_from_kind>: Declare.
1797 (cris_sw_breakpoint_from_kind): Turn into...
1798 (crisv32_target::sw_breakpoint_from_kind): ...this.
1799 (the_low_target): Remove the op field.
1800 * linux-ia64-low.cc (class ia64_target) <sw_breakpoint_from_kind>:
1801 Declare.
1802 (ia64_target::sw_breakpoint_from_kind): Define.
1803 * linux-m32r-low.cc (class m32r_target) <sw_breakpoint_from_kind>:
1804 Declare.
1805 (m32r_sw_breakpoint_from_kind): Turn into...
1806 (m32r_target::sw_breakpoint_from_kind): ...this.
1807 (the_low_target): Remove the op field.
1808 * linux-m68k-low.cc (class m68k_target) <sw_breakpoint_from_kind>:
1809 Declare.
1810 (m68k_sw_breakpoint_from_kind): Turn into...
1811 (m68k_target::sw_breakpoint_from_kind): ...this.
1812 (the_low_target): Remove the op field.
1813 * linux-mips-low.cc (class mips_target) <sw_breakpoint_from_kind>:
1814 Declare.
1815 (mips_sw_breakpoint_from_kind): Turn into...
1816 (mips_target::sw_breakpoint_from_kind): ...this.
1817 (the_low_target): Remove the op field.
1818 * linux-nios2-low.cc (class nios2_target) <sw_breakpoint_from_kind>:
1819 Declare.
1820 (nios2_sw_breakpoint_from_kind): Turn into...
1821 (nios2_target::sw_breakpoint_from_kind): ...this.
1822 (the_low_target): Remove the op field.
1823 * linux-ppc-low.cc (class ppc_target) <sw_breakpoint_from_kind>:
1824 Declare.
1825 (ppc_sw_breakpoint_from_kind): Turn into...
1826 (ppc_target::sw_breakpoint_from_kind): ...this.
1827 (the_low_target): Remove the op field.
1828 * linux-riscv-low.cc (class riscv_target) <sw_breakpoint_from_kind>:
1829 Declare.
1830 (riscv_sw_breakpoint_from_kind): Turn into...
1831 (riscv_target::sw_breakpoint_from_kind): ...this.
1832 (the_low_target): Remove the op field.
1833 * linux-s390-low.cc (class s390_target) <sw_breakpoint_from_kind>:
1834 Declare.
1835 (s390_sw_breakpoint_from_kind): Turn into...
1836 (s390_target::sw_breakpoint_from_kind): ...this.
1837 (the_low_target): Remove the op field.
1838 * linux-sh-low.cc (class sh_target) <sw_breakpoint_from_kind>:
1839 Declare.
1840 (sh_sw_breakpoint_from_kind): Turn into...
1841 (sh_target::sw_breakpoint_from_kind): ...this.
1842 (the_low_target): Remove the op field.
1843 * linux-sparc-low.cc (class sparc_target) <sw_breakpoint_from_kind>:
1844 Declare.
1845 (sparc_sw_breakpoint_from_kind): Turn into...
1846 (sparc_target::sw_breakpoint_from_kind): ...this.
1847 (the_low_target): Remove the op field.
1848 * linux-tic6x-low.cc (class tic6x_target) <sw_breakpoint_from_kind>:
1849 Declare.
1850 (tic6x_sw_breakpoint_from_kind): Turn into...
1851 (tic6x_target::sw_breakpoint_from_kind): ...this.
1852 (the_low_target): Remove the op field.
1853 * linux-tile-low.cc (class tile_target) <sw_breakpoint_from_kind>:
1854 Declare.
1855 (tile_sw_breakpoint_from_kind): Turn into...
1856 (tile_target::sw_breakpoint_from_kind): ...this.
1857 (the_low_target): Remove the op field.
1858 * linux-xtensa-low.cc (class xtensa_target)
1859 <sw_breakpoint_from_kind>: Declare.
1860 (xtensa_sw_breakpoint_from_kind): Turn into...
1861 (xtensa_target::sw_breakpoint_from_kind): ...this.
1862 (the_low_target): Remove the op field.
1863
1864 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1865
1866 Remove the 'breakpoint_kind_from_pc' and
1867 'breakpoint_kind_from_current_state' linux target ops, and let the
1868 concrete linux target define them by overriding the ops of
1869 process_stratum_target.
1870
1871 * linux-low.cc (linux_process_target::breakpoint_kind_from_pc):
1872 Remove.
1873 (linux_process_target::breakpoint_kind_from_current_state): Remove.
1874 * linux-low.h (struct linux_target_ops): Remove ops.
1875 (class linux_process_target) <breakpoint_kind_from_pc>: Remove.
1876 <breakpoint_kind_from_current_state>: Remove.
1877 * linux-x86-low.cc (the_low_target): Remove the op fields.
1878 * linux-bfin-low.cc (the_low_target): Ditto.
1879 * linux-cris-low.cc (the_low_target): Ditto.
1880 * linux-crisv32-low.cc (the_low_target): Ditto.
1881 * linux-m32r-low.cc (the_low_target): Ditto.
1882 * linux-m68k-low.cc (the_low_target): Ditto.
1883 * linux-mips-low.cc (the_low_target): Ditto.
1884 * linux-nios2-low.cc (the_low_target): Ditto.
1885 * linux-ppc-low.cc (the_low_target): Ditto.
1886 * linux-s390-low.cc (the_low_target): Ditto.
1887 * linux-sh-low.cc (the_low_target): Ditto.
1888 * linux-sparc-low.cc (the_low_target): Ditto.
1889 * linux-tic6x-low.cc (the_low_target): Ditto.
1890 * linux-tile-low.cc (the_low_target): Ditto.
1891 * linux-xtensa-low.cc (the_low_target): Ditto.
1892 * linux-aarch64-low.cc (class aarch64_target)
1893 <breakpoint_kind_from_pc>
1894 <breakpoint_kind_from_current_state>: Declare.
1895 (aarch64_breakpoint_kind_from_pc): Turn into...
1896 (aarch64_target::breakpoint_kind_from_pc): ...this.
1897 (aarch64_breakpoint_kind_from_current_state): Turn into...
1898 (aarch64_target::breakpoint_kind_from_current_state): ...this.
1899 (the_low_target): Remove the op fields.
1900 * linux-arm-low.cc (class arm_target):
1901 <breakpoint_kind_from_pc>
1902 <breakpoint_kind_from_current_state>: Declare.
1903 (arm_target::breakpoint_kind_from_pc): Define.
1904 (arm_target::breakpoint_kind_from_current_state): Define.
1905 (the_low_target): Remove the op fields.
1906 * linux-riscv-low.cc (class riscv_target):
1907 <breakpoint_kind_from_pc>: Declare.
1908 (riscv_breakpoint_kind_from_pc): Turn into...
1909 (riscv_target::breakpoint_kind_from_pc): ...this.
1910 (the_low_target): Remove the op fields.
1911
1912 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1913
1914 Turn the 'get_pc' and 'set_pc' linux target ops into methods
1915 of linux_process_target.
1916
1917 * linux-low.h (struct linux_target_ops): Remove the ops.
1918 (class linux_process_target) <low_supports_breakpoints>
1919 <low_get_pc>
1920 <low_set_pc>: Declare.
1921 * linux-low.cc (supports_breakpoints): Turn into...
1922 (linux_process_target::low_supports_breakpoints): ...this.
1923 (linux_process_target::low_get_pc): Define.
1924 (linux_process_target::low_set_pc): Define.
1925
1926 Update the callers below.
1927
1928 (linux_process_target::get_pc)
1929 (linux_process_target::save_stop_reason)
1930 (linux_process_target::maybe_move_out_of_jump_pad)
1931 (linux_process_target::wait_1)
1932 (linux_process_target::resume_one_lwp_throw)
1933 (linux_process_target::resume)
1934 (linux_process_target::proceed_all_lwps)
1935 (linux_process_target::read_pc)
1936 (linux_process_target::write_pc)
1937
1938 * linux-x86-low.cc (class linux_process_target)
1939 <low_supports_breakpoints>
1940 <low_get_pc>
1941 <low_set_pc>: Declare.
1942 (x86_target::low_supports_breakpoints): Define.
1943 (x86_get_pc): Turn into...
1944 (x86_target::low_get_pc): ...this.
1945 (x86_set_pc): Turn into...
1946 (x86_target::low_set_pc): ...this.
1947 (the_low_target): Remove the op fields.
1948 * linux-arm-low.cc (class arm_target)
1949 <low_supports_breakpoints>
1950 <low_get_pc>
1951 <low_set_pc>: Declare.
1952 (arm_target::low_supports_breakpoints)
1953 (arm_target::low_get_pc)
1954 (arm_target::low_set_pc): Define.
1955 (the_low_target): Remove the op fields.
1956 * linux-bfin-low.cc (class bfin_target)
1957 <low_supports_breakpoints>
1958 <low_get_pc>
1959 <low_set_pc>: Declare.
1960 (bfin_target::low_supports_breakpoints)
1961 (bfin_target::low_get_pc)
1962 (bfin_target::low_set_pc): Define.
1963 (the_low_target): Remove the op fields.
1964 * linux-cris-low.cc (class cris_target)
1965 <low_supports_breakpoints>
1966 <low_get_pc>
1967 <low_set_pc>: Declare.
1968 (cris_target::low_supports_breakpoints)
1969 (cris_target::low_get_pc)
1970 (cris_target::low_set_pc): Define.
1971 (the_low_target): Remove the op fields.
1972 * linux-crisv32-low.cc (class crisv32_target)
1973 <low_supports_breakpoints>
1974 <low_get_pc>
1975 <low_set_pc>: Declare.
1976 (crisv32_target::low_supports_breakpoints)
1977 (crisv32_target::low_get_pc)
1978 (crisv32_target::low_set_pc): Define.
1979 (the_low_target): Remove the op fields.
1980 * linux-m32r-low.cc (class m32r_target)
1981 <low_supports_breakpoints>
1982 <low_get_pc>
1983 <low_set_pc>: Declare.
1984 (m32r_target::low_supports_breakpoints)
1985 (m32r_target::low_get_pc)
1986 (m32r_target::low_set_pc): Define.
1987 (the_low_target): Remove the op fields.
1988 * linux-m68k-low.cc (class m68k_target)
1989 <low_supports_breakpoints>
1990 <low_get_pc>
1991 <low_set_pc>: Declare.
1992 (m68k_target::low_supports_breakpoints)
1993 (m68k_target::low_get_pc)
1994 (m68k_target::low_set_pc): Define.
1995 (the_low_target): Remove the op fields.
1996 * linux-nios2-low.cc (class nios2_target)
1997 <low_supports_breakpoints>
1998 <low_get_pc>
1999 <low_set_pc>: Declare.
2000 (nios2_target::low_supports_breakpoints)
2001 (nios2_target::low_get_pc)
2002 (nios2_target::low_set_pc): Define.
2003 (the_low_target): Remove the op fields.
2004 * linux-sh-low.cc (class sh_target)
2005 <low_supports_breakpoints>
2006 <low_get_pc>
2007 <low_set_pc>: Declare.
2008 (sh_target::low_supports_breakpoints)
2009 (sh_target::low_get_pc)
2010 (sh_target::low_set_pc): Define.
2011 (the_low_target): Remove the op fields.
2012 * linux-xtensa-low.cc (class xtensa_target)
2013 <low_supports_breakpoints>
2014 <low_get_pc>
2015 <low_set_pc>: Declare.
2016 (xtensa_target::low_supports_breakpoints)
2017 (xtensa_target::low_get_pc)
2018 (xtensa_target::low_set_pc): Define.
2019 (the_low_target): Remove the op fields.
2020 * linux-sparc-low.cc (class sparc_target)
2021 <low_supports_breakpoints>
2022 <low_get_pc>: Declare.
2023 (sparc_target::low_supports_breakpoints)
2024 (sparc_target::low_get_pc): Define.
2025 (the_low_target): Remove the op fields.
2026 * linux-tile-low.cc (class tile_target)
2027 <low_supports_breakpoints>
2028 <low_get_pc>
2029 <low_set_pc>: Declare.
2030 (tile_target::low_supports_breakpoints)
2031 (tile_target::low_get_pc)
2032 (tile_target::low_set_pc): Define.
2033 (the_low_target): Remove the op fields.
2034 * linux-aarch64-low.cc (class aarch64_target)
2035 <low_supports_breakpoints>
2036 <low_get_pc>
2037 <low_set_pc>: Declare.
2038 (aarch64_target::low_supports_breakpoints): Define.
2039 (aarch64_get_pc): Turn into...
2040 (aarch64_target::low_get_pc): ...this.
2041 (aarch64_set_pc): Turn into...
2042 (aarch64_target::low_set_pc): ...this.
2043 (the_low_target): Remove the op fields.
2044 * linux-mips-low.cc (class mips_target)
2045 <low_supports_breakpoints>
2046 <low_get_pc>
2047 <low_set_pc>: Declare.
2048 (mips_target::low_supports_breakpoints): Define.
2049 (mips_get_pc): Turn into...
2050 (mips_target::low_get_pc): ...this.
2051 (mips_set_pc): Turn into...
2052 (mips_target::low_set_pc): ...this.
2053 (the_low_target): Remove the op fields.
2054 * linux-ppc-low.cc (class ppc_target)
2055 <low_supports_breakpoints>
2056 <low_get_pc>
2057 <low_set_pc>: Declare.
2058 (ppc_target::low_supports_breakpoints): Define.
2059 (ppc_get_pc): Turn into...
2060 (ppc_target::low_get_pc): ...this.
2061 (ppc_set_pc): Turn into...
2062 (ppc_target::low_set_pc): ...this.
2063 (the_low_target): Remove the op fields.
2064 * linux-riscv-low.cc (class riscv_target)
2065 <low_supports_breakpoints>
2066 <low_get_pc>
2067 <low_set_pc>: Declare.
2068 (riscv_target::low_supports_breakpoints): Define.
2069 (riscv_get_pc): Turn into...
2070 (riscv_target::low_get_pc): ...this.
2071 (riscv_set_pc): Turn into...
2072 (riscv_target::low_set_pc): ...this.
2073 (the_low_target): Remove the op fields.
2074 * linux-s390-low.cc (class s390_target)
2075 <low_supports_breakpoints>
2076 <low_get_pc>
2077 <low_set_pc>: Declare.
2078 (s390_target::low_supports_breakpoints): Define.
2079 (s390_get_pc): Turn into...
2080 (s390_target::low_get_pc): ...this.
2081 (s390_set_pc): Turn into...
2082 (s390_target::low_set_pc): ...this.
2083 (the_low_target): Remove the op fields.
2084 * linux-tic6x-low.cc (class tic6x_target)
2085 <low_supports_breakpoints>
2086 <low_get_pc>
2087 <low_set_pc>: Declare.
2088 (tic6x_target::low_supports_breakpoints): Define.
2089 (tic6x_get_pc): Turn into...
2090 (tic6x_target::low_get_pc): ...this.
2091 (tic6x_set_pc): Turn into...
2092 (tic6x_target::low_set_pc): ...this.
2093 (the_low_target): Remove the op fields.
2094
2095 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2096
2097 Turn some more static methods in linux-low into private methods
2098 of linux_process_target.
2099
2100 * linux-low.cc (get_pc): Turn into...
2101 (linux_process_target::get_pc): ...this.
2102 (save_stop_reason): Turn into...
2103 (linux_process_target::save_stop_reason): ...this.
2104 (thread_still_has_status_pending_p): Turn into...
2105 (linux_process_target::thread_still_has_status_pending): ...this.
2106 (status_pending_p_callback): Turn into...
2107 (linux_process_target::status_pending_p_callback): ...this.
2108 (resume_stopped_resumed_lwps): Turn into...
2109 (linux_process_target::resume_stopped_resumed_lwps): ...this.
2110 (install_software_single_step_breakpoints): Turn into...
2111 (linux_process_target::install_software_single_step_breakpoints):
2112 ...this.
2113 (single_step): Turn into...
2114 (linux_process_target::single_step): ...this.
2115 (linux_resume_one_lwp_throw): Turn into...
2116 (linux_process_target::resume_one_lwp_throw): ...this.
2117 (linux_resume_one_lwp): Turn into...
2118 (linux_process_target::resume_one_lwp): ...this.
2119 (resume_status_pending_p): Turn into...
2120 (linux_process_target::resume_status_pending): ...this.
2121 (need_step_over_p): Turn into...
2122 (linux_process_target::thread_needs_step_over): ...this.
2123 (linux_resume_one_thread): Turn into...
2124 (linux_process_target::resume_one_thread): ...this.
2125 (proceed_one_lwp): Turn into...
2126 (linux_process_target::proceed_one_lwp): ...this.
2127 (unsuspend_and_proceed_one_lwp): Turn into...
2128 (linux_process_target::unsuspend_and_proceed_one_lwp): ...this.
2129
2130 Update the calls/references to the above functions below.
2131
2132 (linux_process_target::handle_extended_wait)
2133 (linux_process_target::filter_event)
2134 (linux_process_target::wait_for_event_filtered)
2135 (linux_process_target::wait_1)
2136 (linux_process_target::move_out_of_jump_pad)
2137 (linux_process_target::start_step_over)
2138 (linux_process_target::resume)
2139 (linux_process_target::proceed_all_lwps)
2140 (regsets_store_inferior_registers)
2141 (linux_process_target::store_register)
2142
2143 * linux-low.h (class linux_process_target)
2144 <get_pc>
2145 <save_stop_reason>
2146 <thread_still_has_status_pending>
2147 <status_pending_p_callback>
2148 <resume_stopped_resumed_lwps>
2149 <install_software_single_step_breakpoints>
2150 <single_step>
2151 <resume_one_lwp_throw>
2152 <resume_one_lwp>
2153 <resume_status_pending>
2154 <thread_needs_step_over>
2155 <resume_one_thread>
2156 <proceed_one_lwp>
2157 <unsuspend_and_proceed_one_lwp>: Declare.
2158
2159 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2160
2161 Turn the 'fetch_register' linux target op into a method of
2162 linux_process_target.
2163
2164 * linux-low.h (struct linux_target_ops) <fetch_register>: Remove.
2165 (class linux_process_target) <low_fetch_register>: Declare.
2166 * linux-x86-low.cc (the_low_target)
2167 * linux-aarch64-low.cc (the_low_target)
2168 * linux-arm-low.cc (the_low_target)
2169 * linux-bfin-low.cc (the_low_target)
2170 * linux-cris-low.cc (the_low_target)
2171 * linux-crisv32-low.cc (the_low_target)
2172 * linux-m32r-low.cc (the_low_target)
2173 * linux-m68k-low.cc (the_low_target)
2174 * linux-nios2-low.cc (the_low_target)
2175 * linux-ppc-low.cc (the_low_target)
2176 * linux-s390-low.cc (the_low_target)
2177 * linux-sh-low.cc (the_low_target)
2178 * linux-sparc-low.cc (the_low_target)
2179 * linux-tic6x-low.cc (the_low_target)
2180 * linux-tile-low.cc (the_low_target)
2181 * linux-xtensa-low.cc (the_low_target): Remove the op field.
2182 * linux-ia64-low.cc (class ia64_target) <low_fetch_register>:
2183 Declare.
2184 (ia64_fetch_register): Turn into...
2185 (ia64_target::low_fetch_register): ...this.
2186 (the_low_target): Remove the op field.
2187 * linux-mips-low.cc (class mips_target) <low_fetch_register>:
2188 Declare.
2189 (mips_fetch_register): Turn into...
2190 (mips_target::low_fetch_register): ...this.
2191 (the_low_target): Remove the op field.
2192 * linux-riscv-low.cc (class riscv_target) <low_fetch_register>:
2193 Declare.
2194 (riscv_fetch_register): Turn into...
2195 (riscv_target::low_fetch_register): ...this.
2196 (the_low_target): Remove the op field.
2197
2198 Update the callers below.
2199
2200 * linux-low.cc (linux_process_target::fetch_registers)
2201 (linux_process_target::low_fetch_register)
2202
2203 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2204
2205 Turn the 'cannot_fetch_register' and 'cannot_store_register'
2206 linux target ops into methods of linux_process_target.
2207
2208 * linux-low.h (struct linux_target_ops): Remove the low target ops.
2209 (class linux_process_target) <fetch_register>
2210 <store_register>
2211 <usr_fetch_inferior_registers>
2212 <usr_store_inferior_registers>
2213 <low_cannot_fetch_register>
2214 <low_cannot_fetch_register> Declare.
2215 * linux-low.cc (fetch_register): Turn into...
2216 (linux_process_target::fetch_register): ...this.
2217 (store_register): Turn into ...
2218 (linux_process_target::store_register): ...this.
2219 (usr_fetch_inferior_registers): Turn into...
2220 (linux_process_target::usr_fetch_inferior_registers): ...this.
2221 (usr_store_inferior_registers): Turn into...
2222 (linux_process_target::usr_store_inferior_registers): ...this.
2223 * linux-x86-low.cc (class x86_target)
2224 <low_cannot_fetch_register>
2225 <low_cannot_store_register>: Declare.
2226 (x86_cannot_store_register): Turn into...
2227 (x86_target::low_cannot_store_register): ...this.
2228 (x86_cannot_fetch_register): Turn into...
2229 (x86_target::low_cannot_fetch_register): ...this.
2230 (the_low_target): Remove the target op fields.
2231 * linux-aarch64-low.cc (class aarch64_target)
2232 <low_cannot_fetch_register>
2233 <low_cannot_store_register>: Declare.
2234 (aarch64_target::low_cannot_fetch_register)
2235 (aarch64_target::low_cannot_store_register): Define.
2236 (the_low_target): Remove the op fields.
2237 * linux-arm-low.cc (class arm_target)
2238 <low_cannot_fetch_register>
2239 <low_cannot_store_register>: Declare.
2240 (arm_cannot_fetch_register): Turn into...
2241 (arm_target::low_cannot_fetch_register): ...this.
2242 (arm_cannot_store_register): Turn into...
2243 (arm_target::low_cannot_store_register): ...this.
2244 (the_low_target): Remove the op fields.
2245 * linux-bfin-low.cc (class bfin_target)
2246 <low_cannot_fetch_register>
2247 <low_cannot_store_register>: Declare.
2248 (bfin_cannot_fetch_register): Turn into...
2249 (bfin_target::low_cannot_fetch_register): ...this.
2250 (bfin_cannot_store_register): Turn into...
2251 (bfin_target::low_cannot_store_register): ...this.
2252 (the_low_target): Remove the op fields.
2253 * linux-cris-low.cc (class cris_target)
2254 <low_cannot_fetch_register>
2255 <low_cannot_store_register>: Declare.
2256 (cris_cannot_fetch_register): Turn into...
2257 (cris_target::low_cannot_fetch_register): ...this.
2258 (cris_cannot_store_register): Turn into...
2259 (cris_target::low_cannot_store_register): ...this.
2260 (the_low_target): Remove the op fields.
2261 * linux-crisv32-low.cc (class crisv32_target)
2262 <low_cannot_fetch_register>
2263 <low_cannot_store_register>: Declare.
2264 (crisv32_target::low_cannot_fetch_register)
2265 (crisv32_target::low_cannot_store_register): Define.
2266 (the_low_target): Remove the op fields.
2267 * linux-ia64-low.cc (class ia64_target)
2268 <low_cannot_fetch_register>
2269 <low_cannot_store_register>: Declare.
2270 (ia64_cannot_fetch_register): Turn into...
2271 (ia64_target::low_cannot_fetch_register): ...this.
2272 (ia64_cannot_store_register): Turn into...
2273 (ia64_target::low_cannot_store_register): ...this.
2274 (the_low_target): Remove the op fields.
2275 * linux-m32r-low.cc (class m32r_target)
2276 <low_cannot_fetch_register>
2277 <low_cannot_store_register>: Declare.
2278 (m32r_cannot_fetch_register): Turn into...
2279 (m32r_target::low_cannot_fetch_register): ...this.
2280 (m32r_cannot_store_register): Turn into...
2281 (m32r_target::low_cannot_store_register): ...this.
2282 (the_low_target): Remove the op fields.
2283 * linux-m68k-low.cc (class m68k_target)
2284 <low_cannot_fetch_register>
2285 <low_cannot_store_register>: Declare.
2286 (m68k_cannot_fetch_register): Turn into...
2287 (m68k_target::low_cannot_fetch_register): ...this.
2288 (m68k_cannot_store_register): Turn into...
2289 (m68k_target::low_cannot_store_register): ...this.
2290 (the_low_target): Remove the op fields.
2291 * linux-mips-low.cc (class mips_target)
2292 <low_cannot_fetch_register>
2293 <low_cannot_store_register>: Declare.
2294 (mips_cannot_fetch_register): Turn into...
2295 (mips_target::low_cannot_fetch_register): ...this.
2296 (mips_cannot_store_register): Turn into...
2297 (mips_target::low_cannot_store_register): ...this.
2298 (get_usrregs_info): Inline at the call sites in
2299 low_cannot_fetch_register and low_cannot_store_register,
2300 and remove.
2301 (the_low_target): Remove the op fields.
2302 * linux-nios2-low.cc (class nios2_target)
2303 <low_cannot_fetch_register>
2304 <low_cannot_store_register>: Declare.
2305 (nios2_cannot_fetch_register): Turn into...
2306 (nios2_target::low_cannot_fetch_register): ...this.
2307 (nios2_cannot_store_register): Turn into...
2308 (nios2_target::low_cannot_store_register): ...this.
2309 (the_low_target): Remove the op fields.
2310 * linux-ppc-low.cc (class ppc_target)
2311 <low_cannot_fetch_register>
2312 <low_cannot_store_register>: Declare.
2313 (ppc_cannot_fetch_register): Turn into...
2314 (ppc_target::low_cannot_fetch_register): ...this.
2315 (ppc_cannot_store_register): Turn into...
2316 (ppc_target::low_cannot_store_register): ...this.
2317 (the_low_target): Remove the op fields.
2318 * linux-riscv-low.cc (class riscv_target)
2319 <low_cannot_fetch_register>
2320 <low_cannot_store_register>: Declare.
2321 (riscv_target::low_cannot_fetch_register)
2322 (riscv_target::low_cannot_store_register): Define.
2323 (the_low_target): Remove the op fields.
2324 * linux-s390-low.cc (class s390_target)
2325 <low_cannot_fetch_register>
2326 <low_cannot_store_register>: Declare.
2327 (s390_cannot_fetch_register): Turn into...
2328 (s390_target::low_cannot_fetch_register): ...this.
2329 (s390_cannot_store_register): Turn into...
2330 (s390_target::low_cannot_store_register): ...this.
2331 (the_low_target): Remove the op fields.
2332 * linux-sh-low.cc (class sh_target)
2333 <low_cannot_fetch_register>
2334 <low_cannot_store_register>: Declare.
2335 (sh_cannot_fetch_register): Turn into...
2336 (sh_target::low_cannot_fetch_register): ...this.
2337 (sh_cannot_store_register): Turn into...
2338 (sh_target::low_cannot_store_register): ...this.
2339 (the_low_target): Remove the op fields.
2340 * linux-sparc-low.cc (class sparc_target)
2341 <low_cannot_fetch_register>
2342 <low_cannot_store_register>: Declare.
2343 (sparc_cannot_fetch_register): Turn into...
2344 (sparc_target::low_cannot_fetch_register): ...this.
2345 (sparc_cannot_store_register): Turn into...
2346 (sparc_target::low_cannot_store_register): ...this.
2347 (the_low_target): Remove the op fields.
2348 * linux-tic6x-low.cc (class tic6x_target)
2349 <low_cannot_fetch_register>
2350 <low_cannot_store_register>: Declare.
2351 (tic6x_cannot_fetch_register): Turn into...
2352 (tic6x_target::low_cannot_fetch_register): ...this.
2353 (tic6x_cannot_store_register): Turn into...
2354 (tic6x_target::low_cannot_store_register): ...this.
2355 (the_low_target): Remove the op fields.
2356 * linux-tile-low.cc (class tile_target)
2357 <low_cannot_fetch_register>
2358 <low_cannot_store_register>: Declare.
2359 (tile_cannot_fetch_register): Turn into...
2360 (tile_target::low_cannot_fetch_register): ...this.
2361 (tile_cannot_store_register): Turn into...
2362 (tile_target::low_cannot_store_register): ...this.
2363 (the_low_target): Remove the op fields.
2364 * linux-xtensa-low.cc (class xtensa_target)
2365 <low_cannot_fetch_register>
2366 <low_cannot_store_register>: Declare.
2367 (xtensa_target::low_cannot_fetch_register)
2368 (xtensa_target::low_cannot_store_register): Define.
2369 (the_low_target): Remove the op fields.
2370
2371 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2372
2373 Turn the 'regs_info' linux target op into a method of
2374 linux_process_target.
2375
2376 * linux-low.h (struct linux_target_ops) <regs_info>: Remove.
2377 (class linux_process_target) <get_regs_info>: Define.
2378
2379 Update the callers below.
2380
2381 * linux-low.cc (linux_process_target::fetch_registers)
2382 (linux_process_target::store_registers)
2383 * proc-service.cc (gregset_info)
2384
2385 * linux-x86-low.cc (class x86_target) <get_regs_info>: Declare.
2386 (x86_linux_regs_info): Turn into ...
2387 (x86_target::get_regs_info): ...this.
2388 (the_low_target): Remove the op field.
2389 * linux-aarch64-low.cc (class aarch64_target) <get_regs_info>:
2390 Declare.
2391 (aarch64_regs_info): Turn into ...
2392 (aarch64_target::get_regs_info): ...this.
2393 (the_low_target): Remove the op field.
2394 * linux-arm-low.cc (class arm_target) <get_regs_info>: Declare.
2395 (arm_regs_info): Turn into ...
2396 (arm_target::get_regs_info): ...this.
2397 (the_low_target): Remove the op field.
2398 * linux-bfin-low.cc (class bfin_target) <get_regs_info>: Declare.
2399 (bfin_regs_info): Turn into ...
2400 (bfin_target::get_regs_info): ...this.
2401 (the_low_target): Remove the op field.
2402 * linux-cris-low.cc (class cris_target) <get_regs_info>: Declare.
2403 (cris_regs_info): Turn into ...
2404 (cris_target::get_regs_info): ...this.
2405 (the_low_target): Remove the op field.
2406 * linux-crisv32-low.cc (class crisv32_target) <get_regs_info>:
2407 Declare.
2408 (crisv32_regs_info): Turn into ...
2409 (crisv32_target::get_regs_info): ...this.
2410 (the_low_target): Remove the op field.
2411 * linux-ia64-low.cc (class ia64_target) <get_regs_info>: Declare.
2412 (ia64_regs_info): Turn into ...
2413 (ia64_target::get_regs_info): ...this.
2414 (the_low_target): Remove the op field.
2415 * linux-m32r-low.cc (class m32r_target) <get_regs_info>: Declare.
2416 (m32r_regs_info): Turn into ...
2417 (m32r_target::get_regs_info): ...this.
2418 (the_low_target): Remove the op field.
2419 * linux-m68k-low.cc (class m68k_target) <get_regs_info>: Declare.
2420 (m68k_regs_info): Turn into ...
2421 (m68k_target::get_regs_info): ...this.
2422 (the_low_target): Remove the op field.
2423 * linux-mips-low.cc (class mips_target) <get_regs_info>: Declare.
2424 (mips_regs_info): Turn into ...
2425 (mips_target::get_regs_info): ...this.
2426 (the_low_target): Remove the op field.
2427 (get_usrregs_info): Update the call to the op.
2428 * linux-nios2-low.cc (class nios2_target) <get_regs_info>: Declare.
2429 (nios2_regs_info): Turn into ...
2430 (nios2_target::get_regs_info): ...this.
2431 (the_low_target): Remove the op field.
2432 * linux-ppc-low.cc (class ppc_target) <get_regs_info>: Declare.
2433 (ppc_regs_info): Turn into ...
2434 (ppc_target::get_regs_info): ...this.
2435 (the_low_target): Remove the op field.
2436 * linux-riscv-low.cc (class riscv_target) <get_regs_info>: Declare.
2437 (riscv_regs_info): Turn into ...
2438 (riscv_target::get_regs_info): ...this.
2439 (the_low_target): Remove the op field.
2440 * linux-s390-low.cc (class s390_target) <get_regs_info>: Declare.
2441 (s390_regs_info): Turn into ...
2442 (s390_target::get_regs_info): ...this.
2443 (the_low_target): Remove the op field.
2444 (s390_collect_ptrace_register)
2445 (s390_supply_ptrace_register)
2446 (s390_fill_gregset): Update the call to the op.
2447 * linux-sh-low.cc (class sh_target) <get_regs_info>: Declare.
2448 (sh_regs_info): Turn into ...
2449 (sh_target::get_regs_info): ...this.
2450 (the_low_target): Remove the op field.
2451 * linux-sparc-low.cc (class sparc_target) <get_regs_info>: Declare.
2452 (sparc_regs_info): Turn into ...
2453 (sparc_target::get_regs_info): ...this.
2454 (the_low_target): Remove the op field.
2455 * linux-tic6x-low.cc (class tic6x_target) <get_regs_info>: Declare.
2456 (tic6x_regs_info): Turn into ...
2457 (tic6x_target::get_regs_info): ...this.
2458 (the_low_target): Remove the op field.
2459 * linux-tile-low.cc (class tile_target) <get_regs_info>: Declare.
2460 (tile_regs_info): Turn into ...
2461 (tile_target::get_regs_info): ...this.
2462 (the_low_target): Remove the op field.
2463 * linux-xtensa-low.cc (class xtensa_target) <get_regs_info>:
2464 Declare.
2465 (xtensa_regs_info): Turn into ...
2466 (xtensa_target::get_regs_info): ...this.
2467 (the_low_target): Remove the op field.
2468
2469 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2470
2471 Turn the 'arch_setup' linux target op into a method of
2472 linux_process_target.
2473
2474 * linux-low.h (struct linux_target_ops) <arch_setup>: Delete.
2475 (class linux_process_target) <arch_setup_thread>
2476 <low_arch_setup>: New declarations.
2477 * linux-low.cc (linux_arch_setup): Delete.
2478 (linux_arch_setup_thread): Turn into...
2479 (linux_process_target::arch_setup_thread): ... this.
2480
2481 Update the callers below.
2482
2483 (linux_process_target::handle_extended_wait)
2484 (linux_process_target::post_create_inferior)
2485 (linux_process_target::filter_event)
2486
2487 * linux-x86-low.cc (class x86_target) <low_arch_setup>: New
2488 declaration.
2489 (x86_linux_update_xmltarget): Turn into...
2490 (x86_target::update_xmltarget): ...this.
2491 (x86_linux_process_qsupported): Update the call to
2492 x86_linux_update_xmltarget.
2493 (x86_arch_setup): Turn into ...
2494 (x86_target::low_arch_setup): ...this.
2495 (the_low_target): Remove the op field.
2496 * linux-aarch64-low.cc (class aarch64_target) <low_arch_setup>: New
2497 declaration.
2498 (aarch64_arch_setup): Turn into ...
2499 (aarch64_target::low_arch_setup): ...this.
2500 (the_low_target): Remove the op field.
2501 * linux-arm-low.cc (class arm_target) <low_arch_setup>: New
2502 declaration.
2503 (arm_arch_setup): Turn into ...
2504 (arm_target::low_arch_setup): ...this.
2505 (the_low_target): Remove the op field.
2506 * linux-bfin-low.cc (class bfin_target) <low_arch_setup>: New
2507 declaration.
2508 (bfin_arch_setup): Turn into ...
2509 (bfin_target::low_arch_setup): ...this.
2510 (the_low_target): Remove the op field.
2511 * linux-cris-low.cc (class cris_target) <low_arch_setup>: New
2512 declaration.
2513 (cris_arch_setup): Turn into ...
2514 (cris_target::low_arch_setup): ...this.
2515 (the_low_target): Remove the op field.
2516 * linux-crisv32-low.cc (class crisv32_target) <low_arch_setup>: New
2517 declaration.
2518 (crisv32_arch_setup): Turn into ...
2519 (crisv32_target::low_arch_setup): ...this.
2520 (the_low_target): Remove the op field.
2521 * linux-ia64-low.cc (class ia64_target) <low_arch_setup>: New
2522 declaration.
2523 (ia64_arch_setup): Turn into ...
2524 (ia64_target::low_arch_setup): ...this.
2525 (the_low_target): Remove the op field.
2526 * linux-m32r-low.cc (class m32r_target) <low_arch_setup>: New
2527 declaration.
2528 (m32r_arch_setup): Turn into ...
2529 (m32r_target::low_arch_setup): ...this.
2530 (the_low_target): Remove the op field.
2531 * linux-m68k-low.cc (class m68k_target) <low_arch_setup>: New
2532 declaration.
2533 (m68k_arch_setup): Turn into ...
2534 (m68k_target::low_arch_setup): ...this.
2535 (the_low_target): Remove the op field.
2536 * linux-mips-low.cc (class mips_target) <low_arch_setup>: New
2537 declaration.
2538 (mips_arch_setup): Turn into ...
2539 (mips_target::low_arch_setup): ...this.
2540 (the_low_target): Remove the op field.
2541 * linux-nios2-low.cc (class nios2_target) <low_arch_setup>: New
2542 declaration.
2543 (nios2_arch_setup): Turn into ...
2544 (nios2_target::low_arch_setup): ...this.
2545 (the_low_target): Remove the op field.
2546 * linux-ppc-low.cc (class ppc_target) <low_arch_setup>: New
2547 declaration.
2548 (ppc_arch_setup): Turn into ...
2549 (ppc_target::low_arch_setup): ...this.
2550 (the_low_target): Remove the op field.
2551 * linux-riscv-low.cc (class riscv_target) <low_arch_setup>: New
2552 declaration.
2553 (riscv_arch_setup): Turn into ...
2554 (riscv_target::low_arch_setup): ...this.
2555 (the_low_target): Remove the op field.
2556 * linux-s390-low.cc (class s390_target) <low_arch_setup>: New
2557 declaration.
2558 (s390_arch_setup): Turn into ...
2559 (s390_target::low_arch_setup): ...this.
2560 (the_low_target): Remove the op field.
2561 * linux-sh-low.cc (class sh_target) <low_arch_setup>: New
2562 declaration.
2563 (sh_arch_setup): Turn into ...
2564 (sh_target::low_arch_setup): ...this.
2565 (the_low_target): Remove the op field.
2566 * linux-sparc-low.cc (class sparc_target) <low_arch_setup>: New
2567 declaration.
2568 (sparc_arch_setup): Turn into ...
2569 (sparc_target::low_arch_setup): ...this.
2570 (the_low_target): Remove the op field.
2571 * linux-tic6x-low.cc (class tic6x_target) <low_arch_setup>: New
2572 declaration.
2573 (tic6x_arch_setup): Turn into ...
2574 (tic6x_target::low_arch_setup): ...this.
2575 (the_low_target): Remove the op field.
2576 * linux-tile-low.cc (class tile_target) <low_arch_setup>: New
2577 declaration.
2578 (tile_arch_setup): Turn into ...
2579 (tile_target::low_arch_setup): ...this.
2580 (the_low_target): Remove the op field.
2581 * linux-xtensa-low.cc (class xtensa_target) <low_arch_setup>: New
2582 declaration.
2583 (xtensa_arch_setup): Turn into ...
2584 (xtensa_target::low_arch_setup): ...this.
2585 (the_low_target): Remove the op field.
2586
2587 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2588
2589 * linux-low.h (the_linux_target): New extern declaration.
2590 * linux-low.cc (initialize_low): Use 'the_linux_target' to set
2591 'the_target'.
2592 (the_linux_target): Remove.
2593 * linux-x86-low.cc (class x86_target): New class.
2594 (the_x86_target): New static object.
2595 (the_linux_target): Define as pointer to the_x86_target.
2596 * linux-aarch64-low.cc (class aarch64_target): New class.
2597 (the_aarch64_target): New static object.
2598 (the_linux_target): Define as pointer to the_aarch64_target.
2599 * linux-arm-low.cc (class arm_target): New class.
2600 (the_arm_target): New static object.
2601 (the_linux_target): Define as pointer to the_arm_target.
2602 * linux-bfin-low.cc (class bfin_target): New class.
2603 (the_bfin_target): New static object.
2604 (the_linux_target): Define as pointer to the_bfin_target.
2605 * linux-cris-low.cc (class cris_target): New class.
2606 (the_cris_target): New static object.
2607 (the_linux_target): Define as pointer to the_cris_target.
2608 * linux-crisv32-low.cc (class crisv32_target): New class.
2609 (the_crisv32_target): New static object.
2610 (the_linux_target): Define as pointer to the_crisv32_target.
2611 * linux-ia64-low.cc (class ia64_target): New class.
2612 (the_ia64_target): New static object.
2613 (the_linux_target): Define as pointer to the_ia64_target.
2614 * linux-m32r-low.cc (class m32r_target): New class.
2615 (the_m32r_target): New static object.
2616 (the_linux_target): Define as pointer to the_m32r_target.
2617 * linux-m68k-low.cc (class m68k_target): New class.
2618 (the_m68k_target): New static object.
2619 (the_linux_target): Define as pointer to the_m68k_target.
2620 * linux-mips-low.cc (class mips_target): New class.
2621 (the_mips_target): New static object.
2622 (the_linux_target): Define as pointer to the_mips_target.
2623 * linux-nios2-low.cc (class nios2_target): New class.
2624 (the_nios2_target): New static object.
2625 (the_linux_target): Define as pointer to the_nios2_target.
2626 * linux-ppc-low.cc (class ppc_target): New class.
2627 (the_ppc_target): New static object.
2628 (the_linux_target): Define as pointer to the_ppc_target.
2629 * linux-riscv-low.cc (class riscv_target): New class.
2630 (the_riscv_target): New static object.
2631 (the_linux_target): Define as pointer to the_riscv_target.
2632 * linux-s390-low.cc (class s390_target): New class.
2633 (the_s390_target): New static object.
2634 (the_linux_target): Define as pointer to the_s390_target.
2635 * linux-sh-low.cc (class sh_target): New class.
2636 (the_sh_target): New static object.
2637 (the_linux_target): Define as pointer to the_sh_target.
2638 * linux-sparc-low.cc (class sparc_target): New class.
2639 (the_sparc_target): New static object.
2640 (the_linux_target): Define as pointer to the_sparc_target.
2641 * linux-tic6x-low.cc (class tic6x_target): New class.
2642 (the_tic6x_target): New static object.
2643 (the_linux_target): Define as pointer to the_tic6x_target.
2644 * linux-tile-low.cc (class tile_target): New class.
2645 (the_tile_target): New static object.
2646 (the_linux_target): Define as pointer to the_tile_target.
2647 * linux-xtensa-low.cc (class xtensa_target): New class.
2648 (the_xtensa_target): New static object.
2649 (the_linux_target): Define as pointer to the_xtensa_target.
2650
2651 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2652
2653 Turn some static functions in linux-low.cc into private methods of
2654 linux_process_target.
2655
2656 * linux-low.cc (handle_extended_wait): Turn into ...
2657 (linux_process_target::handle_extended_wait): ...this. Call
2658 'mourn' on 'this' object instead of 'the_target'.
2659 (maybe_move_out_of_jump_pad): Turn into...
2660 (linux_process_target::maybe_move_out_of_jump_pad): ...this.
2661 (linux_low_filter_event): Turn into...
2662 (linux_process_target::filter_event): ...this.
2663 (linux_wait_for_event_filtered): Turn into...
2664 (linux_process_target::wait_for_event_filtered): ...this.
2665 (linux_wait_for_event): Turn into...
2666 (linux_process_target::wait_for_event): ...this.
2667 (linux_wait_1): Turn into...
2668 (linux_process_target::wait_1): ...this.
2669 (wait_for_sigstop): Turn into...
2670 (linux_process_target::wait_for_sigstop): ...this.
2671 (move_out_of_jump_pad_callback): Turn into...
2672 (linux_process_target::move_out_of_jump_pad): ...this.
2673 (stop_all_lwps): Turn into...
2674 (linux_process_target::stop_all_lwps): ...this.
2675 (start_step_over): Turn into...
2676 (linux_process_target::start_step_over): ...this.
2677 (complete_ongoing_step_over): Turn into...
2678 (linux_process_target::complete_ongoing_step_over): ...this.
2679 (proceed_all_lwps): Turn into...
2680 (linux_process_target::proceed_all_lwps): ...this.
2681 (unstop_all_lwps): Turn into...
2682 (linux_process_target::unstop_all_lwps): ...this.
2683
2684 * linux-low.h (class linux_process_target)
2685 <handle_extended_wait>
2686 <maybe_move_out_of_jump_pad>
2687 filter_event>
2688 <wait_for_event_filtered>
2689 <wait_for_event>
2690 <wait_1>
2691 <wait_for_sigstop>
2692 <move_out_of_jump_pad>
2693 <stop_all_lwps>
2694 <start_step_over>
2695 <complete_ongoing_step_over>
2696 <proceed_all_lwps>
2697 <unstop_all_lwps>: Declare.
2698
2699 Update the callers below.
2700
2701 * linux-low.cc (linux_process_target::attach): Update.
2702 (linux_process_target::stabilize_threads): Ditto.
2703 (linux_process_target::wait): Ditto.
2704
2705 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2706
2707 * linux-low.h (struct linux_target_ops): Update the comment for
2708 'cannot_store_register' to return 0 or 1.
2709 * linux-ppc-low.cc (ppc_cannot_store_register): Return 1 instead
2710 of 2.
2711
2712 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
2713
2714 * config.in: Re-generate.
2715 * configure: Re-generate.
2716
2717 2020-03-17 Kamil Rytarowski <n54@gmx.com>
2718
2719 * regcache.cc (find_register_by_number): Update.
2720 * tdesc.cc (init_target_desc): Likewise.
2721 * tdesc.h (target_desc::reg_defs): Likewise.
2722
2723 2020-03-12 Tom Tromey <tom@tromey.com>
2724
2725 * configure: Rebuild.
2726 * configure.ac (GDBSERVER_DEPFILES): Remove srv_selftest_objs.
2727 (WIN32APILIBS): New subst.
2728 * Makefile.in (SFILES, OBS, TAGS, GDBREPLAY_OBS): Remove
2729 gdbsupport files.
2730 (gdbsupport/%.o): Remove target.
2731 (GDBSUPPORT_BUILDDIR, GDBSUPPORT): New variables.
2732 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Add GDBSUPPORT.
2733 (WIN32APILIBS): New variable.
2734 (gdbserver$(EXEEXT)): Add WIN32APILIBS.
2735 (gdbreplay$(EXEEXT)): Likewise.
2736
2737 2020-03-12 Tom Tromey <tom@tromey.com>
2738
2739 * config.in, configure: Rebuild.
2740 * configure.ac: Call ZW_GNU_GETTEXT_SISTER_DIR.
2741 * acinclude.m4: Include gettext-sister.m4.
2742 * Makefile.in (top_builddir, INTL, INTL_DEPS, INTL_CFLAGS): New
2743 variables.
2744 (INCLUDE_CFLAGS): Add INTL_CFLAGS.
2745 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL.
2746
2747 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2748
2749 * acinclude.m4: Update path to selftest.m4.
2750
2751 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2752
2753 * configure.ac: Don't source bfd/development.sh, move
2754 GDB_AC_COMMON higher.
2755 * configure: Re-generate.
2756
2757 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2758
2759 * configure: Re-generate.
2760
2761 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
2762
2763 * configure: Re-generate.
2764
2765 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2766
2767 * .dir-locals.el: New file.
2768
2769 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2770
2771 * .gitattributes: New file.
2772
2773 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
2774
2775 * remote-utils.cc (prepare_resume_reply): Add ability to convert T
2776 reply into an S reply.
2777 * server.cc (disable_packet_T): New global.
2778 (captured_main): Set new global when appropriate.
2779 * server.h (disable_packet_T): Declare.
2780
2781 2020-02-21 Tom Tromey <tom@tromey.com>
2782
2783 * Makefile.in (mostlyclean): New target.
2784
2785 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2786
2787 * target.h (struct process_stratum_target): Remove.
2788 (class process_target): Rename to ...
2789 (class process_stratum_target): ... this.
2790 * linux-low.h (class linux_process_target): Derive from
2791 'process_stratum_target'.
2792 * linux-low.cc (linux_target_ops): Remove.
2793 (initialize_low): Set the_target to the singleton instance of
2794 linux_process_target.
2795 * lynx-low.h (class lynx_process_target): Derive from
2796 'process_stratum_target'.
2797 * lynx-low.cc (lynx_target_ops): Remove.
2798 (initialize_low): Set the_target to the singleton instance of
2799 lynx_process_target.
2800 * nto-low.h (class nto_process_target): Derive from
2801 'process_stratum_target'.
2802 * nto-low.cc (nto_target_ops): Remove.
2803 (initialize_low): Set the_target to the singleton instance of
2804 nto_process_target.
2805 * win32-low.h (class win32_process_target): Derive from
2806 'process_stratum_target'.
2807 * win32-low.cc (win32_target_ops): Remove.
2808 (initialize_low): Set the_target to the singleton instance of
2809 win32_process_target.
2810
2811 Replace 'the_target->pt' with 'the_target' in the uses below.
2812
2813 * hostio.cc (hostio_error)
2814 (handle_setfs)
2815 (handle_open)
2816 (handle_unlink)
2817 (handle_readlink)
2818 * linux-aarch32-low.cc (arm_breakpoint_at)
2819 * linux-aarch64-low.cc (aarch64_breakpoint_at)
2820 * linux-arm-low.cc (arm_sigreturn_next_pc)
2821 (arm_get_hwcap)
2822 (arm_get_syscall_trapinfo)
2823 * linux-cris-low.cc (cris_breakpoint_at)
2824 * linux-crisv32-low.cc (cris_breakpoint_at)
2825 * linux-low.cc (handle_extended_wait)
2826 (linux_wait_1)
2827 (linux_read_memory)
2828 (linux_process_target::breakpoint_kind_from_pc)
2829 (linux_get_auxv)
2830 * linux-m32r-low.cc (m32r_breakpoint_at)
2831 * linux-mips-low.cc (mips_breakpoint_at)
2832 * linux-nios2-low.cc (nios2_breakpoint_at)
2833 * linux-ppc-low.cc (ppc_breakpoint_at)
2834 * linux-s390-low.cc (s390_get_hwcap)
2835 * linux-sh-low.cc (sh_breakpoint_at)
2836 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
2837 (sparc_store_gregset_from_stack)
2838 (sparc_breakpoint_at)
2839 * linux-tic6x-low.cc (tic6x_breakpoint_at)
2840 * linux-tile-low.cc (tile_breakpoint_at)
2841 * linux-x86-low.cc (x86_breakpoint_at)
2842 * linux-xtensa-low.cc (xtensa_breakpoint_at)
2843 * mem-break.cc (bp_size)
2844 (bp_opcode)
2845 (insert_memory_breakpoint)
2846 (set_raw_breakpoint_at)
2847 (delete_raw_breakpoint)
2848 (z_type_supported)
2849 (uninsert_raw_breakpoint)
2850 (reinsert_raw_breakpoint)
2851 (validate_inserted_breakpoint)
2852 * regcache.cc (regcache_read_pc)
2853 (regcache_write_pc)
2854 * remote-utils.cc (putpkt_binary_1)
2855 (input_interrupt)
2856 (getpkt)
2857 (prepare_resume_reply)
2858 * server.cc (handle_general_set)
2859 (handle_detach)
2860 (handle_qxfer_auxv)
2861 (handle_qxfer_exec_file)
2862 (handle_qxfer_libraries_svr4)
2863 (handle_qxfer_osdata)
2864 (handle_qxfer_siginfo)
2865 (handle_qxfer_fdpic)
2866 (handle_query)
2867 (resume)
2868 (handle_v_requests)
2869 (queue_stop_reply_callback)
2870 (captured_main)
2871 * target.cc (prepare_to_access_memory)
2872 (done_accessing_memory)
2873 (read_inferior_memory)
2874 (target_write_memory)
2875 (target_stop_and_wait)
2876 (target_wait)
2877 (target_mourn_inferior)
2878 (target_continue_no_signal)
2879 (target_continue)
2880 (target_supports_multi_process)
2881 (kill_inferior)
2882 * target.h
2883 (target_create_inferior)
2884 (target_post_create_inferior)
2885 (myattach)
2886 (target_supports_fork_events)
2887 (target_supports_vfork_events)
2888 (target_supports_exec_events)
2889 (target_handle_new_gdb_connection)
2890 (detach_inferior)
2891 (mythread_alive)
2892 (fetch_inferior_registers)
2893 (store_inferior_registers)
2894 (join_inferior)
2895 (target_supports_non_stop)
2896 (target_async)
2897 (target_process_qsupported)
2898 (target_supports_catch_syscall)
2899 (target_get_ipa_tdesc_idx)
2900 (target_supports_tracepoints)
2901 (target_supports_fast_tracepoints)
2902 (target_get_min_fast_tracepoint_insn_len)
2903 (target_thread_stopped)
2904 (target_pause_all)
2905 (target_unpause_all)
2906 (target_stabilize_threads)
2907 (target_install_fast_tracepoint_jump_pad)
2908 (target_emit_ops)
2909 (target_supports_disable_randomization)
2910 (target_supports_agent)
2911 (target_enable_btrace)
2912 (target_disable_btrace)
2913 (target_read_btrace)
2914 (target_read_btrace_conf)
2915 (target_supports_range_stepping)
2916 (target_supports_stopped_by_sw_breakpoint)
2917 (target_stopped_by_sw_breakpoint)
2918 (target_supports_stopped_by_hw_breakpoint)
2919 (target_supports_hardware_single_step)
2920 (target_stopped_by_hw_breakpoint)
2921 (target_breakpoint_kind_from_pc)
2922 (target_breakpoint_kind_from_current_state)
2923 (target_supports_software_single_step)
2924 (target_core_of_thread)
2925 (target_thread_name)
2926 (target_thread_handle)
2927 * win32-low.cc (do_initial_child_stuff)
2928
2929 Rename target op default definitions listed below.
2930
2931 * target.cc (process_target::post_create_inferior): Rename as ...
2932 (process_stratum_target::post_create_inferior): ... this.
2933 (process_target::prepare_to_access_memory): Rename as ...
2934 (process_stratum_target::prepare_to_access_memory): ... this.
2935 (process_target::done_accessing_memory): Rename as ...
2936 (process_stratum_target::done_accessing_memory): ... this.
2937 (process_target::look_up_symbols): Rename as ...
2938 (process_stratum_target::look_up_symbols): ... this.
2939 (process_target::supports_read_auxv): Rename as ...
2940 (process_stratum_target::supports_read_auxv): ... this.
2941 (process_target::read_auxv): Rename as ...
2942 (process_stratum_target::read_auxv): ... this.
2943 (process_target::supports_z_point_type): Rename as ...
2944 (process_stratum_target::supports_z_point_type): ... this.
2945 (process_target::insert_point): Rename as ...
2946 (process_stratum_target::insert_point): ... this.
2947 (process_target::remove_point): Rename as ...
2948 (process_stratum_target::remove_point): ... this.
2949 (process_target::stopped_by_sw_breakpoint): Rename as ...
2950 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
2951 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
2952 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
2953 (process_target::stopped_by_hw_breakpoint): Rename as ...
2954 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
2955 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
2956 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
2957 (process_target::supports_hardware_single_step): Rename as ...
2958 (process_stratum_target::supports_hardware_single_step): ... this.
2959 (process_target::stopped_by_watchpoint): Rename as ...
2960 (process_stratum_target::stopped_by_watchpoint): ... this.
2961 (process_target::stopped_data_address): Rename as ...
2962 (process_stratum_target::stopped_data_address): ... this.
2963 (process_target::supports_read_offsets): Rename as ...
2964 (process_stratum_target::supports_read_offsets): ... this.
2965 (process_target::read_offsets): Rename as ...
2966 (process_stratum_target::read_offsets): ... this.
2967 (process_target::supports_get_tls_address): Rename as ...
2968 (process_stratum_target::supports_get_tls_address): ... this.
2969 (process_target::get_tls_address): Rename as ...
2970 (process_stratum_target::get_tls_address): ... this.
2971 (process_target::hostio_last_error): Rename as ...
2972 (process_stratum_target::hostio_last_error): ... this.
2973 (process_target::supports_qxfer_osdata): Rename as ...
2974 (process_stratum_target::supports_qxfer_osdata): ... this.
2975 (process_target::qxfer_osdata): Rename as ...
2976 (process_stratum_target::qxfer_osdata): ... this.
2977 (process_target::supports_qxfer_siginfo): Rename as ...
2978 (process_stratum_target::supports_qxfer_siginfo): ... this.
2979 (process_target::qxfer_siginfo): Rename as ...
2980 (process_stratum_target::qxfer_siginfo): ... this.
2981 (process_target::supports_non_stop): Rename as ...
2982 (process_stratum_target::supports_non_stop): ... this.
2983 (process_target::async): Rename as ...
2984 (process_stratum_target::async): ... this.
2985 (process_target::start_non_stop): Rename as ...
2986 (process_stratum_target::start_non_stop): ... this.
2987 (process_target::supports_multi_process): Rename as ...
2988 (process_stratum_target::supports_multi_process): ... this.
2989 (process_target::supports_fork_events): Rename as ...
2990 (process_stratum_target::supports_fork_events): ... this.
2991 (process_target::supports_vfork_events): Rename as ...
2992 (process_stratum_target::supports_vfork_events): ... this.
2993 (process_target::supports_exec_events): Rename as ...
2994 (process_stratum_target::supports_exec_events): ... this.
2995 (process_target::handle_new_gdb_connection): Rename as ...
2996 (process_stratum_target::handle_new_gdb_connection): ... this.
2997 (process_target::handle_monitor_command): Rename as ...
2998 (process_stratum_target::handle_monitor_command): ... this.
2999 (process_target::core_of_thread): Rename as ...
3000 (process_stratum_target::core_of_thread): ... this.
3001 (process_target::supports_read_loadmap): Rename as ...
3002 (process_stratum_target::supports_read_loadmap): ... this.
3003 (process_target::read_loadmap): Rename as ...
3004 (process_stratum_target::read_loadmap): ... this.
3005 (process_target::process_qsupported): Rename as ...
3006 (process_stratum_target::process_qsupported): ... this.
3007 (process_target::supports_tracepoints): Rename as ...
3008 (process_stratum_target::supports_tracepoints): ... this.
3009 (process_target::read_pc): Rename as ...
3010 (process_stratum_target::read_pc): ... this.
3011 (process_target::write_pc): Rename as ...
3012 (process_stratum_target::write_pc): ... this.
3013 (process_target::supports_thread_stopped): Rename as ...
3014 (process_stratum_target::supports_thread_stopped): ... this.
3015 (process_target::thread_stopped): Rename as ...
3016 (process_stratum_target::thread_stopped): ... this.
3017 (process_target::supports_get_tib_address): Rename as ...
3018 (process_stratum_target::supports_get_tib_address): ... this.
3019 (process_target::get_tib_address): Rename as ...
3020 (process_stratum_target::get_tib_address): ... this.
3021 (process_target::pause_all): Rename as ...
3022 (process_stratum_target::pause_all): ... this.
3023 (process_target::unpause_all): Rename as ...
3024 (process_stratum_target::unpause_all): ... this.
3025 (process_target::stabilize_threads): Rename as ...
3026 (process_stratum_target::stabilize_threads): ... this.
3027 (process_target::supports_fast_tracepoints): Rename as ...
3028 (process_stratum_target::supports_fast_tracepoints): ... this.
3029 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
3030 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
3031 (process_target::emit_ops): Rename as ...
3032 (process_stratum_target::emit_ops): ... this.
3033 (process_target::supports_disable_randomization): Rename as ...
3034 (process_stratum_target::supports_disable_randomization): ... this.
3035 (process_target::supports_qxfer_libraries_svr4): Rename as ...
3036 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
3037 (process_target::qxfer_libraries_svr4): Rename as ...
3038 (process_stratum_target::qxfer_libraries_svr4): ... this.
3039 (process_target::supports_agent): Rename as ...
3040 (process_stratum_target::supports_agent): ... this.
3041 (process_target::enable_btrace): Rename as ...
3042 (process_stratum_target::enable_btrace): ... this.
3043 (process_target::disable_btrace): Rename as ...
3044 (process_stratum_target::disable_btrace): ... this.
3045 (process_target::read_btrace): Rename as ...
3046 (process_stratum_target::read_btrace): ... this.
3047 (process_target::read_btrace_conf): Rename as ...
3048 (process_stratum_target::read_btrace_conf): ... this.
3049 (process_target::supports_range_stepping): Rename as ...
3050 (process_stratum_target::supports_range_stepping): ... this.
3051 (process_target::supports_pid_to_exec_file): Rename as ...
3052 (process_stratum_target::supports_pid_to_exec_file): ... this.
3053 (process_target::pid_to_exec_file): Rename as ...
3054 (process_stratum_target::pid_to_exec_file): ... this.
3055 (process_target::supports_multifs): Rename as ...
3056 (process_stratum_target::supports_multifs): ... this.
3057 (process_target::multifs_open): Rename as ...
3058 (process_stratum_target::multifs_open): ... this.
3059 (process_target::multifs_unlink): Rename as ...
3060 (process_stratum_target::multifs_unlink): ... this.
3061 (process_target::multifs_readlink): Rename as ...
3062 (process_stratum_target::multifs_readlink): ... this.
3063 (process_target::breakpoint_kind_from_pc): Rename as ...
3064 (process_stratum_target::breakpoint_kind_from_pc): ... this.
3065 (process_target::breakpoint_kind_from_current_state): Rename as ...
3066 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
3067 (process_target::thread_name): Rename as ...
3068 (process_stratum_target::thread_name): ... this.
3069 (process_target::thread_handle): Rename as ...
3070 (process_stratum_target::thread_handle): ... this.
3071 (process_target::supports_software_single_step): Rename as ...
3072 (process_stratum_target::supports_software_single_step): ... this.
3073 (process_target::supports_catch_syscall): Rename as ...
3074 (process_stratum_target::supports_catch_syscall): ... this.
3075 (process_target::get_ipa_tdesc_idx): Rename as ...
3076 (process_stratum_target::get_ipa_tdesc_idx): ... this.
3077
3078 2020-02-20 Pedro Alves <palves@redhat.com>
3079
3080 * target.cc (set_target_ops): Simply copy the given target pointer
3081 instead of creating a copy of the pointed object.
3082
3083 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3084
3085 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
3086 of process_target.
3087
3088 * target.h (struct process_stratum_target): Remove the target op.
3089 (class process_target): Add the target op.
3090 (target_get_ipa_tdesc_idx): Update the macro.
3091 * target.cc (process_target::get_ipa_tdesc_idx): Define.
3092
3093 Update the derived classes and callers below.
3094
3095 * linux-low.cc (linux_target_ops): Update.
3096 (linux_get_ipa_tdesc_idx): Turn into ...
3097 (linux_process_target::get_ipa_tdesc_idx): ... this.
3098 * linux-low.h (class linux_process_target): Update.
3099 * lynx-low.cc (lynx_target_ops): Update.
3100 * nto-low.cc (nto_target_ops): Update.
3101 * win32-low.cc (win32_target_ops): Update.
3102
3103 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3104
3105 Turn process_stratum_target's supports_catch_syscall op into a
3106 method of process_target.
3107
3108 * target.h (struct process_stratum_target): Remove the target op.
3109 (class process_target): Add the target op.
3110 (target_supports_catch_syscall): Update the macro.
3111 * target.cc (process_target::supports_catch_syscall): Define.
3112
3113 Update the derived classes and callers below.
3114
3115 * linux-low.cc (linux_target_ops): Update.
3116 (linux_supports_catch_syscall): Turn into ...
3117 (linux_process_target::supports_catch_syscall): ... this.
3118 * linux-low.h (class linux_process_target): Update.
3119 * lynx-low.cc (lynx_target_ops): Update.
3120 * nto-low.cc (nto_target_ops): Update.
3121 * win32-low.cc (win32_target_ops): Update.
3122
3123 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3124
3125 Turn process_stratum_target's supports_software_single_step op
3126 into a method of process_target.
3127
3128 * target.h (struct process_stratum_target): Remove the target op.
3129 (class process_target): Add the target op.
3130 (target_supports_software_single_step): Update the macro.
3131 * target.cc (process_target::supports_software_single_step): Define.
3132
3133 Update the derived classes and callers below.
3134
3135 * linux-low.cc (linux_target_ops): Update.
3136 (linux_supports_software_single_step): Turn into ...
3137 (linux_process_target::supports_software_single_step): ... this.
3138 * linux-low.h (class linux_process_target): Update.
3139 * lynx-low.cc (lynx_target_ops): Update.
3140 * nto-low.cc (nto_target_ops): Update.
3141 * win32-low.cc (win32_target_ops): Update.
3142
3143 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3144
3145 Turn process_stratum_target's thread_name and thread_handle ops
3146 into methods of process_target.
3147
3148 * target.h (struct process_stratum_target): Remove the target ops.
3149 (class process_target): Add the target ops.
3150 (target_thread_name): Update the macro.
3151 (target_thread_handle): Update the macro.
3152 * target.cc (process_target::thread_name): Define.
3153 (process_target::thread_handle): Define.
3154
3155 Update the derived classes and callers below.
3156
3157 * linux-low.cc (linux_target_ops): Update.
3158 (linux_process_target::thread_name): Define.
3159 (linux_process_target::thread_handle): Define.
3160 * linux-low.h (class linux_process_target): Update.
3161 * lynx-low.cc (lynx_target_ops): Update.
3162 * nto-low.cc (nto_target_ops): Update.
3163 * win32-low.cc (win32_target_ops): Update.
3164
3165 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3166
3167 Turn process_stratum_target's breakpoint_kind_from_pc,
3168 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
3169 ops into methods of process_target.
3170
3171 * target.h (struct process_stratum_target): Remove the target op.
3172 (class process_target): Add the target op.
3173 (target_breakpoint_kind_from_pc): Update the macro.
3174 (target_breakpoint_kind_from_current_state): Update the macro.
3175 (default_breakpoint_kind_from_pc): Remove declaration.
3176 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
3177 (process_target::breakpoint_kind_from_pc): ... this.
3178 (process_target::breakpoint_kind_from_current_state): Define.
3179
3180 Update the derived classes and callers below.
3181
3182 * mem-break.cc (bp_size): Update.
3183 (bp_opcode): Update.
3184 * linux-low.cc (linux_target_ops): Update.
3185 (linux_wait_1): Update.
3186 (linux_breakpoint_kind_from_pc): Turn into ...
3187 (linux_process_target::breakpoint_kind_from_pc): ... this.
3188 (linux_sw_breakpoint_from_kind): Turn into ...
3189 (linux_process_target::sw_breakpoint_from_kind): ... this.
3190 (linux_breakpoint_kind_from_current_state): Turn into ...
3191 (linux_process_target::breakpoint_kind_from_current_state): ... this.
3192 * linux-low.h (class linux_process_target): Update.
3193 * lynx-low.cc (lynx_target_ops): Update.
3194 (lynx_process_target::sw_breakpoint_from_kind): Define.
3195 * lynx-low.h (class lynx_process_target): Update.
3196 * nto-low.cc (nto_target_ops): Update.
3197 (nto_sw_breakpoint_from_kind): Turn into ...
3198 (nto_process_target::sw_breakpoint_from_kind): ... this.
3199 * nto-low.h (class nto_process_target): Update.
3200 * win32-low.cc (win32_target_ops): Update.
3201 (win32_sw_breakpoint_from_kind): Turn into ...
3202 (win32_process_target::sw_breakpoint_from_kind): ... this.
3203 * win32-low.h (class win32_process_target): Update.
3204
3205 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3206
3207 Turn process_stratum_target's multifs_open, multifs_readlink,
3208 multifs_unlink ops into methods of process_target.
3209
3210 * target.h (struct process_stratum_target): Remove the target ops.
3211 (class process_target): Add the target ops. Also add
3212 'supports_multifs'.
3213 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
3214 "sys/stat.h".
3215 (process_target::supports_multifs): Define.
3216 (process_target::multifs_open): Define.
3217 (process_target::multifs_readlink): Define.
3218 (process_target::multifs_unlink): Define.
3219
3220 Update the derived classes and callers below.
3221
3222 * hostio.cc (handle_setfs): Update.
3223 (handle_open): Update.
3224 (handle_unlink): Update.
3225 (handle_readlink): Update.
3226 * linux-low.cc (linux_target_ops): Update.
3227 (linux_process_target::supports_multifs): Define.
3228 (linux_process_target::multifs_open): Define.
3229 (linux_process_target::multifs_readlink): Define.
3230 (linux_process_target::multifs_unlink): Define.
3231 * linux-low.h (class linux_process_target): Update.
3232 * lynx-low.cc (lynx_target_ops): Update.
3233 * nto-low.cc (nto_target_ops): Update.
3234 * win32-low.cc (win32_target_ops): Update.
3235
3236 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3237
3238 Turn process_stratum_target's pid_to_exec_file op into a method
3239 of process_target.
3240
3241 * target.h (struct process_stratum_target): Remove the target op.
3242 (class process_target): Add the target op. Also add
3243 'supports_pid_to_exec_file'.
3244 * target.cc (process_target::pid_to_exec_file): Define.
3245 (process_target::supports_pid_to_exec_file): Define.
3246
3247 Update the derived classes and callers below.
3248
3249 * server.cc (handle_qxfer_exec_file): Update.
3250 (handle_query): Update.
3251 * linux-low.cc (linux_target_ops): Update.
3252 (linux_process_target::supports_pid_to_exec_file): Define.
3253 (linux_process_target::pid_to_exec_file): Define.
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_range_stepping 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_range_stepping): Update the macro.
3267 * target.cc (process_target::supports_range_stepping): Define.
3268
3269 Update the derived classes and callers below.
3270
3271 * linux-low.cc (linux_target_ops): Update.
3272 (linux_supports_range_stepping): Turn into ...
3273 (linux_process_target::supports_range_stepping): ... 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 btrace-related ops (enable_btrace,
3282 disable_btrace, read_btrace, read_btrace_conf) into methods of
3283 process_target.
3284
3285 * target.h (struct process_stratum_target): Remove the target ops.
3286 (class process_target): Add the target ops.
3287 (target_enable_btrace): Update.
3288 (target_disable_btrace): Update.
3289 (target_read_btrace): Update.
3290 (target_read_btrace_conf): Update.
3291 * target.cc (process_target::enable_btrace): Define.
3292 (process_target::disable_btrace): Define.
3293 (process_target::read_btrace): Define.
3294 (process_target::read_btrace_conf): Define.
3295
3296 Update the derived classes and callers below.
3297
3298 * linux-low.cc (linux_target_ops): Update.
3299 (linux_process_target:enable_btrace): Define as a wrapper around
3300 linux_enable_btrace.
3301 (linux_low_disable_btrace): Turn into ...
3302 (linux_process_target::disable_btrace): ... this.
3303 (linux_low_read_btrace): Turn into ...
3304 (linux_process_target::read_btrace): ... this.
3305 (linux_low_btrace_conf): Turn into ...
3306 (linux_process_target::read_btrace_conf): ... this.
3307 * linux-low.h (class linux_process_target): Update.
3308 * lynx-low.cc (lynx_target_ops): Update.
3309 * nto-low.cc (nto_target_ops): Update.
3310 * win32-low.cc (win32_target_ops): Update.
3311
3312 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3313
3314 Turn process_stratum_target's supports_agent op into a method of
3315 process_target.
3316
3317 * target.h (struct process_stratum_target): Remove the target op.
3318 (class process_target): Add the target op.
3319 (target_supports_agent): Update the macro.
3320 * target.cc (process_target::supports_agent): Define.
3321
3322 Update the derived classes and callers below.
3323
3324 * linux-low.cc (linux_target_ops): Update.
3325 (linux_supports_agent): Turn into ...
3326 (linux_process_target::supports_agent): ... this.
3327 * linux-low.h (class linux_process_target): Update.
3328 * lynx-low.cc (lynx_target_ops): Update.
3329 * nto-low.cc (nto_target_ops): Update.
3330 * win32-low.cc (win32_target_ops): Update.
3331
3332 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3333
3334 Turn process_stratum_target's qxfer_libraries_svr4 op into a
3335 method of process_target.
3336
3337 * target.h (struct process_stratum_target): Remove the target op.
3338 (class process_target): Add the target op. Also add
3339 'supports_qxfer_libraries_svr4'.
3340 * target.cc (process_target::qxfer_libraries_svr4): Define.
3341 (process_target::supports_qxfer_libraries_svr4): Define.
3342
3343 Update the derived classes and callers below.
3344
3345 * server.cc (handle_qxfer_libraries_svr4): Update.
3346 (handle_query): Update.
3347 * linux-low.cc (linux_target_ops): Update.
3348 (linux_process_target::supports_qxfer_libraries_svr4): Define.
3349 (linux_qxfer_libraries_svr4): Turn into ...
3350 (linux_process_target::qxfer_libraries_svr4): ... this.
3351 * linux-low.h (class linux_process_target): Update.
3352 * lynx-low.cc (lynx_target_ops): Update.
3353 * nto-low.cc (nto_target_ops): Update.
3354 * win32-low.cc (win32_target_ops): Update.
3355
3356 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3357
3358 Turn process_stratum_target's supports_disable_randomization op
3359 into a method of process_target.
3360
3361 * target.h (struct process_stratum_target): Remove the target op.
3362 (class process_target): Add the target op.
3363 (target_supports_disable_randomization): Update the macro.
3364 * target.cc (process_target::supports_disable_randomization): Define.
3365
3366 Update the derived classes and callers below.
3367
3368 * linux-low.cc (linux_target_ops): Update.
3369 (linux_supports_disable_randomization): Turn into ...
3370 (linux_process_target::supports_disable_randomization): ... this.
3371 * linux-low.h (class linux_process_target): Update.
3372 * lynx-low.cc (lynx_target_ops): Update.
3373 * nto-low.cc (nto_target_ops): Update.
3374 * win32-low.cc (win32_target_ops): Update.
3375
3376 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3377
3378 Turn process_stratum_target's emit_ops op into a method of
3379 process_target.
3380
3381 * target.h (struct process_stratum_target): Remove the target op.
3382 (class process_target): Add the target op.
3383 (target_emit_ops): Update the macro.
3384 * target.cc (process_target::emit_ops): Define.
3385
3386 Update the derived classes and callers below.
3387
3388 * linux-low.cc (linux_target_ops): Update.
3389 (linux_emit_ops): Turn into ...
3390 (linux_process_target::emit_ops): ... this.
3391 * linux-low.h (class linux_process_target): Update.
3392 * lynx-low.cc (lynx_target_ops): Update.
3393 * nto-low.cc (nto_target_ops): Update.
3394 * win32-low.cc (win32_target_ops): Update.
3395
3396 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3397
3398 Turn process_stratum_target's install_fast_tracepoint_jump_pad
3399 and get_min_fast_tracepoint_insn_len ops into methods of
3400 process_target.
3401
3402 * target.h (struct process_stratum_target): Remove the target ops.
3403 (class process_target): Add the target ops. Also add
3404 'supports_fast_tracepoints'.
3405 (target_supports_fast_tracepoints): Update the macro.
3406 (target_get_min_fast_tracepoint_insn_len): Update the macro.
3407 (install_fast_tracepoint_jump_pad): Update and rename the macro
3408 to ...
3409 (target_install_fast_tracepoint_jump_pad): ... this.
3410 * target.cc (process_target::supports_fast_tracepoints): Define.
3411 (process_target::install_fast_tracepoint_jump_pad): Define.
3412 (process_target::get_min_fast_tracepoint_insn_len): Define.
3413
3414 Update the derived classes and callers below.
3415
3416 * tracepoint.cc (install_fast_tracepoint): Update.
3417 * linux-low.cc (linux_target_ops): Update.
3418 (linux_process_target::supports_fast_tracepoints): Define.
3419 (linux_install_fast_tracepoint_jump_pad): Turn into ...
3420 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
3421 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
3422 (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
3423 * linux-low.h (class linux_process_target): Update.
3424 * lynx-low.cc (lynx_target_ops): Update.
3425 * nto-low.cc (nto_target_ops): Update.
3426 * win32-low.cc (win32_target_ops): Update.
3427
3428 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3429
3430 Turn process_stratum_target's stabilize_threads op into a
3431 method of process_target.
3432
3433 * target.h (struct process_stratum_target): Remove the target op.
3434 (class process_target): Add the target op.
3435 (target_stabilize_threads): Update the macro.
3436 * target.cc (process_target::stabilize_threads): Define.
3437
3438 Update the derived classes and callers below.
3439
3440 * server.cc (handle_status): Update.
3441 * tracepoint.cc (cmd_qtdp): Update.
3442 (cmd_qtstart): Update.
3443 * linux-low.cc (linux_target_ops): Update.
3444 (linux_stabilize_threads): Turn into ...
3445 (linux_process_target::stabilize_threads): ... this.
3446 (linux_wait_1): Update.
3447 * linux-low.h (class linux_process_target): Update.
3448 * lynx-low.cc (lynx_target_ops): Update.
3449 * nto-low.cc (nto_target_ops): Update.
3450 * win32-low.cc (win32_target_ops): Update.
3451
3452 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3453
3454 Turn process_stratum_target's pause_all and unpause_all ops
3455 into methods of process_target.
3456
3457 * target.h (struct process_stratum_target): Remove the target ops.
3458 (class process_target): Add the target ops.
3459 (pause_all): Update the macro and rename to...
3460 (target_pause_all): ... this.
3461 (unpause_all): Update the macro and rename to...
3462 (target_unpause_all): ... this.
3463 * target.cc (process_target::pause_all): Define.
3464 (process_target::unpause_all): Define.
3465
3466 Update the derived classes and callers below.
3467
3468 * server.cc (handle_status): Update.
3469 * tracepoint.cc (clear_installed_tracepoints): Update.
3470 (cmd_qtdp): Update.
3471 (cmd_qtstart): Update.
3472 (stop_tracing): Update.
3473 (cmd_qtstatus): Update.
3474 (upload_fast_traceframes): Update.
3475 (run_inferior_command): Update.
3476 * linux-low.cc (linux_target_ops): Update.
3477 (linux_pause_all): Turn into ...
3478 (linux_process_target::pause_all): ... this.
3479 (linux_unpause_all): Turn into ...
3480 (linux_process_target::unpause_all): ... this.
3481 (linux_process_target::prepare_to_access_memory): Update.
3482 (linux_process_target::done_accessing_memory): Update.
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 get_tib_address op into a method of
3491 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_get_tib_address'.
3496 * target.cc (process_target::get_tib_address): Define.
3497 (process_target::supports_get_tib_address): Define.
3498
3499 Update the derived classes and callers below.
3500
3501 * server.cc (handle_query): Update.
3502 * linux-low.cc (win32_target_ops): Update.
3503 * lynx-low.cc (lynx_target_ops): Update.
3504 * nto-low.cc (nto_target_ops): Update.
3505 * win32-low.cc (win32_target_ops): Update.
3506 (win32_process_target::supports_get_tib_address): Define.
3507 (win32_get_tib_address): Turn into ...
3508 (win32_process_target::get_tib_address): ... this.
3509 * win32-low.h (class win32_process_target): Update.
3510
3511 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3512
3513 Turn process_stratum_target's thread_stopped op into a method of
3514 process_target.
3515
3516 * target.h (struct process_stratum_target): Remove the target op.
3517 (class process_target): Add the target op. Also add
3518 'supports_thread_stopped'.
3519 (target_thread_stopped): Update the macro.
3520 * target.cc (process_target::thread_stopped): Define.
3521 (process_target::supports_thread_stopped): Define.
3522 (prepare_to_access_memory): Update.
3523
3524 Update the derived classes and callers below.
3525
3526 * server.cc (queue_stop_reply_callback): Update.
3527 * linux-low.cc (linux_target_ops): Update.
3528 (linux_process_target::supports_thread_stopped): Define.
3529 (linux_thread_stopped): Turn into ...
3530 (linux_process_target::thread_stopped): ... this.
3531 * linux-low.h (class linux_process_target): Update.
3532 * lynx-low.cc (lynx_target_ops): Update.
3533 * nto-low.cc (nto_target_ops): Update.
3534 * win32-low.cc (win32_target_ops): Update.
3535
3536 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3537
3538 Turn process_stratum_target's read_pc and write_pc ops into
3539 methods of process_target.
3540
3541 * target.h (struct process_stratum_target): Remove the target ops.
3542 (class process_target): Add the target ops.
3543 * target.cc (process_target::read_pc): Define.
3544 (process_target::write_pc): Define.
3545
3546 Update the derived classes and callers below.
3547
3548 * regcache.cc (regcache_read_pc): Update.
3549 (regcache_write_pc): Update.
3550 * linux-low.cc (linux_target_ops): Update.
3551 (linux_read_pc): Turn into ...
3552 (linux_process_target::read_pc): ... this.
3553 (linux_write_pc): Turn into ...
3554 (linux_process_target::write_pc): ... this.
3555 * linux-low.h (class linux_process_target): Update.
3556 * lynx-low.cc (lynx_target_ops): Update.
3557 * nto-low.cc (nto_target_ops): Update.
3558 * win32-low.cc (win32_target_ops): Update.
3559
3560 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3561
3562 Turn process_stratum_target's supports_tracepoints op into a
3563 method of process_target.
3564
3565 * target.h (struct process_stratum_target): Remove the target op.
3566 (class process_target): Add the target op.
3567 (target_supports_tracepoints): Update the macro.
3568 * target.cc (process_target::supports_tracepoints): Define.
3569
3570 Update the derived classes and callers below.
3571
3572 * linux-low.cc (linux_target_ops): Update.
3573 (linux_supports_tracepoints): Turn into ...
3574 (linux_process_target::supports_tracepoints): ... this.
3575 * linux-low.h (class linux_process_target): Update.
3576 * lynx-low.cc (lynx_target_ops): Update.
3577 * nto-low.cc (nto_target_ops): Update.
3578 * win32-low.cc (win32_target_ops): Update.
3579
3580 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3581
3582 Turn process_stratum_target's process_qsupported op into a method
3583 of process_target.
3584
3585 * target.h (struct process_stratum_target): Remove the target op.
3586 (class process_target): Add the target op.
3587 (target_process_qsupported): Update the macro.
3588 * target.cc (process_target::process_qsupported): Define.
3589
3590 Update the derived classes and callers below.
3591
3592 * linux-low.cc (linux_target_ops): Update.
3593 (linux_process_qsupported): Turn into ...
3594 (linux_process_target::process_qsupported): ... this.
3595 * linux-low.h (class linux_process_target): Update.
3596 * lynx-low.cc (lynx_target_ops): Update.
3597 * nto-low.cc (nto_target_ops): Update.
3598 * win32-low.cc (win32_target_ops): Update.
3599
3600 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3601
3602 Turn process_stratum_target's read_loadmap op into a method of
3603 process_target.
3604
3605 * target.h (struct process_stratum_target): Remove the target op.
3606 (class process_target): Add the target op. Also add
3607 'supports_read_loadmap'.
3608 * target.cc (process_target::read_loadmap): Define.
3609 (process_target::supports_read_loadmap): Define.
3610
3611 Update the derived classes and callers below.
3612
3613 * server.cc (handle_qxfer_fdpic): Update.
3614 (handle_query): Update.
3615 * linux-low.cc (linux_target_ops): Update.
3616 (linux_process_target::supports_read_loadmap): Define.
3617 (linux_read_loadmap): Turn into ...
3618 (linux_process_target::read_loadmap): ... this.
3619 * linux-low.h (class linux_process_target): Update.
3620 * lynx-low.cc (lynx_target_ops): Update.
3621 * nto-low.cc (nto_target_ops): Update.
3622 * win32-low.cc (win32_target_ops): Update.
3623
3624 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3625
3626 Turn process_stratum_target's core_of_thread op into a method of
3627 process_target.
3628
3629 * target.h (struct process_stratum_target): Remove the target op.
3630 (class process_target): Add the target op.
3631 (target_core_of_thread): Update the macro.
3632 * target.cc (process_target::core_of_thread): Define.
3633
3634 Update the derived classes and callers below.
3635
3636 * linux-low.cc (linux_target_ops): Update.
3637 (linux_process_target::core_of_thread): Define.
3638 * linux-low.h (class linux_process_target): Update.
3639 * lynx-low.cc (lynx_target_ops): Update.
3640 * nto-low.cc (nto_target_ops): Update.
3641 * win32-low.cc (win32_target_ops): Update.
3642
3643 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3644
3645 Turn process_stratum_target's handle_monitor_command op into a
3646 method of process_target.
3647
3648 * target.h (struct process_stratum_target): Remove the target op.
3649 (class process_target): Add the target op.
3650 (target_handle_monitor_command): Update the macro.
3651 * target.cc (process_target::handle_monitor_command): Define.
3652
3653 Update the derived classes and callers below.
3654
3655 * server.cc (handle_query): Update.
3656 * linux-low.cc (linux_target_ops): Update.
3657 (linux_process_target::handle_monitor_command): Define.
3658 * linux-low.h (class linux_process_target): 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
3663 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3664
3665 Turn process_stratum_target's handle_new_gdb_connection op into a
3666 method of process_target.
3667
3668 * target.h (struct process_stratum_target): Remove the target op.
3669 (class process_target): Add the target op.
3670 (target_handle_new_gdb_connection): Update the macro.
3671 * target.cc (process_target::handle_new_gdb_connection): Define.
3672
3673 Update the derived classes and callers below.
3674
3675 * linux-low.cc (linux_target_ops): Update.
3676 (linux_handle_new_gdb_connection): Turn into ...
3677 (linux_process_target::handle_new_gdb_connection): ... this.
3678 * linux-low.h (class linux_process_target): Update.
3679 * lynx-low.cc (lynx_target_ops): Update.
3680 * nto-low.cc (nto_target_ops): Update.
3681 * win32-low.cc (win32_target_ops): Update.
3682
3683 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3684
3685 Turn process_stratum_target's supports_fork_events,
3686 supports_vfork_events, and supports_exec_events ops into methods
3687 of process_target.
3688
3689 * target.h (struct process_stratum_target): Remove the target ops.
3690 (class process_target): Add the target ops.
3691 (target_supports_fork_events): Update the macro.
3692 (target_supports_vfork_events): Update the macro.
3693 (target_supports_exec_events): Update the macro.
3694 * target.cc (process_target::supports_fork_events): Define.
3695 (process_target::supports_vfork_events): Define.
3696 (process_target::supports_exec_events): Define.
3697
3698 Update the derived classes and callers below.
3699
3700 * linux-low.cc (linux_target_ops): Update.
3701 (linux_supports_fork_events): Turn into ...
3702 (linux_process_target::supports_fork_events): ... this.
3703 (linux_supports_vfork_events): Turn into ...
3704 (linux_process_target::supports_vfork_events): ... this.
3705 (linux_supports_exec_events): Turn into ...
3706 (linux_process_target::supports_exec_events): ... this.
3707 * linux-low.h (class linux_process_target): Update.
3708 * lynx-low.cc (lynx_target_ops): Update.
3709 * nto-low.cc (nto_target_ops): Update.
3710 * win32-low.cc (win32_target_ops): Update.
3711
3712 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3713
3714 Turn process_stratum_target's supports_multi_process op into a
3715 method of process_target.
3716
3717 * target.h (struct process_stratum_target): Remove the target op.
3718 (class process_target): Add the target op.
3719 * target.cc (process_target::supports_multi_process): Define.
3720 (target_supports_multi_process): Update.
3721
3722 Update the derived classes and callers below.
3723
3724 * linux-low.cc (linux_target_ops): Update.
3725 (linux_supports_multi_process): Turn into ...
3726 (linux_process_target::supports_multi_process): ... this.
3727 * linux-low.h (class linux_process_target): Update.
3728 * lynx-low.cc (lynx_target_ops): Update.
3729 * nto-low.cc (nto_target_ops): Update.
3730 * win32-low.cc (win32_target_ops): Update.
3731
3732 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3733
3734 Turn process_stratum_target's supports_non_stop, async, and
3735 start_non_stop ops into methods of process_target.
3736
3737 * target.h (struct process_stratum_target): Remove the target ops.
3738 (class process_target): Add the target ops.
3739 (target_supports_non_stop): Update the macro.
3740 (target_async): Update the macro.
3741 (start_non_stop): Remove declaration.
3742 * target.cc (process_target::supports_non_stop): Define.
3743 (process_target::async): Define.
3744 (process_target::start_non_stop): Define.
3745 (start_non_stop): Remove.
3746
3747 Update the derived classes and callers below.
3748
3749 * server.cc (handle_qxfer_siginfo): Update.
3750 (handle_query): Update.
3751 * linux-low.cc (linux_target_ops): Update.
3752 (linux_supports_non_stop): Turn into ...
3753 (linux_process_target::supports_non_stop): ... this.
3754 (linux_async): Turn into ...
3755 (linux_process_target::async): ... this.
3756 (linux_start_non_stop): Turn into ...
3757 (linux_process_target::start_non_stop): ... this.
3758 * linux-low.h (class linux_process_target): Update.
3759 * lynx-low.cc (lynx_target_ops): Update.
3760 * nto-low.cc (nto_target_ops): Update.
3761 (nto_supports_non_stop): Remove; rely on the default behavior
3762 instead.
3763 * win32-low.cc (win32_target_ops): Update.
3764
3765 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3766
3767 Turn process_stratum_target's qxfer_siginfo op into a method of
3768 process_target.
3769
3770 * target.h (struct process_stratum_target): Remove the target op.
3771 (class process_target): Add the target op. Also add
3772 'supports_qxfer_siginfo'.
3773 * target.cc (process_target::qxfer_siginfo): Define.
3774 (process_target::supports_qxfer_siginfo): Define.
3775
3776 Update the derived classes and callers below.
3777
3778 * server.cc (handle_qxfer_siginfo): Update.
3779 (handle_query): Update.
3780 * linux-low.cc (linux_target_ops): Update.
3781 (linux_process_target::supports_qxfer_siginfo): Define.
3782 (linux_xfer_siginfo): Turn into ...
3783 (linux_process_target::qxfer_siginfo): ... this.
3784 * linux-low.h (class linux_process_target): Update.
3785 * lynx-low.cc (lynx_target_ops): Update.
3786 * nto-low.cc (nto_target_ops): Update.
3787 * win32-low.cc (win32_target_ops): Update.
3788
3789 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3790
3791 Turn process_stratum_target's qxfer_osdata op into a method of
3792 process_target.
3793
3794 * target.h (struct process_stratum_target): Remove the target op.
3795 (class process_target): Add the target op. Also add
3796 'supports_qxfer_osdata'.
3797 * target.cc (process_target::qxfer_osdata): Define.
3798 (process_target::supports_qxfer_osdata): Define.
3799
3800 Update the derived classes and callers below.
3801
3802 * server.cc (handle_qxfer_osdata): Update.
3803 (handle_query): Update.
3804 * linux-low.cc (linux_target_ops): Update.
3805 (linux_process_target::supports_qxfer_osdata): Define.
3806 (linux_qxfer_osdata): Turn into ...
3807 (linux_process_target::qxfer_osdata): ... this.
3808 * linux-low.h (class linux_process_target): Update.
3809 * lynx-low.cc (lynx_target_ops): Update.
3810 * nto-low.cc (nto_target_ops): Update.
3811 * win32-low.cc (win32_target_ops): Update.
3812
3813 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3814
3815 Turn process_stratum_target's hostio_last_error op into a
3816 method of process_target.
3817
3818 * target.h (struct process_stratum_target): Remove the target op.
3819 (class process_target): Add the target op.
3820 * target.cc: Add "hostio.h" to includes.
3821 (process_target::hostio_last_error): Define.
3822
3823 Update the derived classes and callers below.
3824
3825 * hostio.cc (hostio_error): Update.
3826 * linux-low.cc: Remove "hostio.h" from includes.
3827 (linux_target_ops): Update.
3828 * lynx-low.cc (lynx_target_ops): Update.
3829 * nto-low.cc (nto_target_ops): Update.
3830 * win32-low.h (class win32_process_target): Update.
3831 * win32-low.cc (win32_target_ops): Update.
3832 (wince_hostio_last_error): Turn into ...
3833 (win32_process_target::hostio_last_error): ... this.
3834
3835 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3836
3837 Turn process_stratum_target's get_tls_address op into a method of
3838 process_target.
3839
3840 * target.h (struct process_stratum_target): Remove the target op.
3841 (class process_target): Add the target op. Also add
3842 'supports_get_tls_address'.
3843 * target.cc (process_target::get_tls_address): Define.
3844 (process_target::supports_get_tls_address): Define.
3845
3846 Update the derived classes and callers below.
3847
3848 * server.cc (handle_query): Update.
3849 * linux-low.cc (linux_target_ops): Update.
3850 (linux_process_target::supports_get_tls_address): Define.
3851 (linux_process_target::get_tls_address): Define.
3852 * linux-low.h (class linux_process_target): Update.
3853 * lynx-low.cc (lynx_target_ops): Update.
3854 * nto-low.cc (nto_target_ops): Update.
3855 * win32-low.cc (win32_target_ops): Update.
3856
3857 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3858
3859 Turn process_stratum_target's read_offsets op into a method of
3860 process_target.
3861
3862 * target.h (struct process_stratum_target): Remove the target op.
3863 (class process_target): Add the target op. Also add
3864 'supports_read_offsets'.
3865 * target.cc (process_target::read_offsets): Define.
3866 (process_target::supports_read_offsets): Define.
3867
3868 Update the derived classes and callers below.
3869
3870 * server.cc (handle_query): Update.
3871 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
3872 (linux_target_ops): Update.
3873 (linux_process_target::supports_read_offsets): Define.
3874 (linux_read_offsets): Turn into ...
3875 (linux_process_target::read_offsets): ... this.
3876 * linux-low.h (class linux_process_target): Update.
3877 * lynx-low.cc (lynx_target_ops): Update.
3878 * nto-low.cc (nto_target_ops): Update.
3879 * win32-low.cc (win32_target_ops): Update.
3880
3881 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3882
3883 Turn process_stratum_target's stopped_by_watchpoint and
3884 stopped_data_address ops into methods of process_target.
3885
3886 * target.h (struct process_stratum_target): Remove the target ops.
3887 (class process_target): Add the target ops.
3888 * target.cc (process_target::stopped_by_watchpoint): Define.
3889 (process_target::stopped_data_address): Define.
3890
3891 Update the derived classes and callers below.
3892
3893 * remote-utils.cc (prepare_resume_reply): Update.
3894 * linux-low.cc (linux_target_ops): Update.
3895 (linux_stopped_by_watchpoint): Turn into ...
3896 (linux_process_target::stopped_by_watchpoint): ... this.
3897 (linux_stopped_data_address): Turn into ...
3898 (linux_process_target::stopped_data_address): ... this.
3899 * linux-low.h (class linux_process_target): Update.
3900 * lynx-low.cc (lynx_target_ops): Update.
3901 * nto-low.cc (nto_target_ops): Update.
3902 (nto_stopped_by_watchpoint): Turn into ...
3903 (nto_process_target::stopped_by_watchpoint): ... this.
3904 (nto_stopped_data_address): Turn into ...
3905 (nto_process_target::stopped_data_address): ... this.
3906 * nto-low.h (class nto_process_target): Update.
3907 * win32-low.cc (win32_target_ops): Update.
3908 (win32_stopped_by_watchpoint): Turn into ...
3909 (win32_process_target::stopped_by_watchpoint): ... this.
3910 (win32_stopped_data_address): Turn into ...
3911 (win32_process_target::stopped_data_address): ... this.
3912 * win32-low.h (class win32_process_target): Update.
3913
3914 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3915
3916 Turn process_stratum_target's supports_hardware_single_step op into
3917 a method of process_target.
3918
3919 * target.h (struct process_stratum_target): Remove the target op.
3920 (class process_target): Add the target op.
3921 (target_supports_hardware_single_step): Update the macro.
3922 (target_can_do_hardware_single_step): Remove declaration.
3923 * target.cc (process_target::supports_hardware_single_step): Define.
3924 (target_can_do_hardware_single_step): Remove.
3925
3926 Update the derived classes and callers below.
3927
3928 * linux-low.h (class linux_process_target): Update.
3929 * linux-low.cc (linux_target_ops): Update.
3930 (linux_supports_hardware_single_step): Turn into ...
3931 (linux_process_target::supports_hardware_single_step): ... this.
3932 * lynx-low.h (class lynx_process_target): Update.
3933 * lynx-low.cc (lynx_target_ops): Update.
3934 (lynx_process_target::supports_hardware_single_step): Define.
3935 * nto-low.h (class nto_process_target): Update.
3936 * nto-low.cc (nto_target_ops): Update.
3937 (nto_process_target::supports_hardware_single_step): Define.
3938 * win32-low.h (class win32_process_target): Update.
3939 * win32-low.cc (win32_target_ops): Update.
3940 (win32_process_target::supports_hardware_single_step): Define.
3941
3942 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3943
3944 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
3945 ops into methods of process_target.
3946
3947 * target.h (struct process_stratum_target): Remove the target ops.
3948 (class process_target): Add the target ops.
3949 (target_stopped_by_hw_breakpoint): Update the macro.
3950 (target_supports_stopped_by_hw_breakpoint): Update the macro.
3951 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
3952 (process_target::supports_stopped_by_hw_breakpoint): Define.
3953
3954 Update the derived classes and callers below.
3955
3956 * linux-low.cc (linux_target_ops): Update.
3957 (linux_stopped_by_hw_breakpoint): Turn into ...
3958 (linux_process_target::stopped_by_hw_breakpoint): ... this.
3959 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
3960 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
3961 * linux-low.h (class linux_process_target): Update.
3962 * lynx-low.cc (lynx_target_ops): Update.
3963 * nto-low.cc (nto_target_ops): Update.
3964 * win32-low.cc (win32_target_ops): Update.
3965
3966 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3967
3968 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
3969 ops into methods of process_target.
3970
3971 * target.h (struct process_stratum_target): Remove the target ops.
3972 (class process_target): Add the target ops.
3973 (target_stopped_by_sw_breakpoint): Update the macro.
3974 (target_supports_stopped_by_sw_breakpoint): Update the macro.
3975 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
3976 (process_target::supports_stopped_by_sw_breakpoint): Define.
3977
3978 Update the derived classes and callers below.
3979
3980 * linux-low.cc (linux_target_ops): Update.
3981 (linux_stopped_by_sw_breakpoint): Turn into ...
3982 (linux_process_target::stopped_by_sw_breakpoint): ... this.
3983 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
3984 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
3985 * linux-low.h (class linux_process_target): Update.
3986 * lynx-low.cc (lynx_target_ops): Update.
3987 * nto-low.cc (nto_target_ops): Update.
3988 * win32-low.cc (win32_target_ops): Update.
3989
3990 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3991
3992 Turn process_stratum_target's insert_point and remove_point ops
3993 into methods of process_target.
3994
3995 * target.h (struct process_stratum_target): Remove the target ops.
3996 (class process_target): Add the target ops.
3997 * target.cc (process_target::insert_point): Define.
3998 (process_target::remove_point): Define.
3999
4000 Update the derived classes and callers below.
4001
4002 * mem-break.cc (set_raw_breakpoint_at): Update.
4003 (delete_raw_breakpoint): Update.
4004 (uninsert_raw_breakpoint): Update.
4005 (reinsert_raw_breakpoint): Update.
4006 * linux-low.cc (linux_target_ops): Update.
4007 (linux_insert_point): Turn into ...
4008 (linux_process_target::insert_point): ... this.
4009 (linux_remove_point): Turn into ...
4010 (linux_process_target::remove_point): ... this.
4011 * linux-low.h (class linux_process_target): Update.
4012 * lynx-low.cc (lynx_target_ops): Update.
4013 * nto-low.cc (nto_target_ops): Update.
4014 (nto_insert_point): Turn into ...
4015 (nto_process_target::insert_point): ... this.
4016 (nto_remove_point): Turn into ...
4017 (nto_process_target::remove_point): ... this.
4018 * nto-low.h (class nto_process_target): Update.
4019 * win32-low.cc (win32_target_ops): Update.
4020 (win32_insert_point): Turn into ...
4021 (win32_process_target::insert_point): ... this.
4022 (win32_remove_point): Turn into ...
4023 (win32_process_target::remove_point): ... this.
4024 * win32-low.h (class win32_process_target): Update.
4025
4026 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4027
4028 Turn process_stratum_target's supports_z_point_type op into a
4029 method of process_target.
4030
4031 * target.h (struct process_stratum_target): Remove the target op.
4032 (class process_target): Add the target op.
4033 * target.cc (process_target::supports_z_point_type): Define.
4034
4035 Update the derived classes and callers below.
4036
4037 * mem-break.cc (z_type_supported): Update.
4038 * linux-low.cc (linux_target_ops): Update.
4039 (linux_supports_z_point_type): Turn into ...
4040 (linux_process_target::supports_z_point_type): ... this.
4041 * linux-low.h (class linux_process_target): Update.
4042 * lynx-low.cc (lynx_target_ops): Update.
4043 * nto-low.cc (nto_target_ops): Update.
4044 (nto_supports_z_point_type): Turn into ...
4045 (nto_process_target::supports_z_point_type): ... this.
4046 * nto-low.h (class nto_process_target): Update.
4047 * win32-low.cc (win32_target_ops): Update.
4048 (win32_supports_z_point_type): Turn into ...
4049 (win32_process_target::supports_z_point_type): ... this.
4050 * win32-low.h (class win32_process_target): Update.
4051
4052 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4053
4054 Turn process_stratum_target's read_auxv op into a method of
4055 process_target.
4056
4057 * target.h (class process_stratum_target): Remove the target op.
4058 (struct process_target): Add the target op. Also add
4059 'supports_read_auxv'.
4060 * target.cc (process_target::read_auxv): Define.
4061 (process_target::supports_read_auxv): Define.
4062
4063 Update the derived classes and callers below.
4064
4065 * server.cc (handle_qxfer_auxv): Update.
4066 (handle_query): Update.
4067 * linux-low.cc (linux_target_ops): Update.
4068 (linux_process_target::supports_read_auxv): Define.
4069 (linux_read_auxv): Turn into ...
4070 (linux_process_target::read_auxv): ... this.
4071 * linux-low.h (class linux_process_target): Update.
4072 * lynx-low.cc (lynx_target_ops): Update.
4073 * nto-low.cc (nto_target_ops): Update.
4074 (nto_process_target::supports_read_auxv): Define.
4075 (nto_read_auxv): Turn into ...
4076 (nto_process_target::read_auxv): ... this.
4077 * nto-low.h (class nto_process_target): Update.
4078 * win32-low.cc (win32_target_ops): Update.
4079
4080 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4081
4082 Turn process_stratum_target's request_interrupt op into a method of
4083 process_target.
4084
4085 * target.h (struct process_stratum_target): Remove the target op.
4086 (class process_target): Add the target op.
4087
4088 Update the derived classes and callers below.
4089
4090 * remote-utils.cc (putpkt_binary_1): Update.
4091 (input_interrupt): Update.
4092 (getpkt): Update.
4093 * server.cc (handle_v_requests): Update.
4094 * linux-low.cc (linux_target_ops): Update.
4095 (linux_request_interrupt): Turn into ...
4096 (linux_process_target::request_interrupt): ... this.
4097 * linux-low.h (class linux_process_target): Update.
4098 * lynx-low.cc (lynx_target_ops): Update.
4099 (lynx_request_interrupt): Turn into ...
4100 (lynx_process_target::request_interrupt): ... this.
4101 * lynx-low.h (class lynx_process_target): Update.
4102 * nto-low.cc (nto_target_ops): Update.
4103 (nto_request_interrupt): Turn into ...
4104 (nto_process_target::request_interrupt): ... this.
4105 * nto-low.h (class nto_process_target): Update.
4106 * win32-low.cc (win32_target_ops): Update.
4107 (win32_request_interrupt): Turn into ...
4108 (win32_process_target::request_interrupt): ... this.
4109 * win32-low.h (class win32_process_target): Update.
4110
4111 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4112
4113 Turn process_stratum_target's look_up_symbols op into a method of
4114 process_target.
4115
4116 * target.h (struct process_stratum_target): Remove the target op.
4117 (class process_target): Add the target op.
4118 * target.cc (process_target::look_up_symbols): Define.
4119
4120 Update the derived classes and callers below.
4121
4122 * server.cc (handle_query): Update.
4123 * linux-low.cc (linux_target_ops): Update.
4124 (linux_look_up_symbols): Turn into ...
4125 (linux_process_target::look_up_symbols): ... this.
4126 * linux-low.h (class linux_process_target): Update.
4127 * lynx-low.cc (lynx_target_ops): Update.
4128 * nto-low.cc (nto_target_ops): Update.
4129 * win32-low.cc (win32_target_ops): Update.
4130
4131 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4132
4133 Turn process_stratum_target's read_memory and write_memory
4134 ops into methods of process_target.
4135
4136 * target.h (struct process_stratum_target): Remove the target ops.
4137 (class process_target): Add the target ops.
4138
4139 Update the derived classes and callers below.
4140
4141 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
4142 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
4143 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
4144 (arm_get_syscall_trapinfo): Update.
4145 * linux-cris-low.cc (cris_breakpoint_at): Update.
4146 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
4147 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
4148 * linux-mips-low.cc (mips_breakpoint_at): Update.
4149 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
4150 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
4151 * linux-sh-low.cc (sh_breakpoint_at): Update.
4152 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
4153 (sparc_store_gregset_from_stack): Update.
4154 (sparc_breakpoint_at): Update.
4155 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
4156 * linux-tile-low.cc (tile_breakpoint_at): Update.
4157 * linux-x86-low.cc (x86_breakpoint_at): Update.
4158 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
4159 * mem-brea.cc (insert_memory_breakpoint): Update.
4160 (validate_inserted_breakpoint): Update.
4161 * target.cc (read_inferior_memory): Update.
4162 (target_write_memory): Update.
4163 * linux-low.cc (linux_target_ops): Update.
4164 (linux_read_memory): Make a wrapper around the read_memory target
4165 op call.
4166 (linux_process_target::read_memory): Rename from linux_read_memory.
4167 (linux_write_memory): Turn into ...
4168 (linux_process_target::write_memory): ... this.
4169 * linux-low.h (class linux_process_target): Update.
4170 * lynx-low.cc (lynx_target_ops): Update.
4171 (lynx_read_memory): Turn into ...
4172 (lynx_process_target::read_memory): ... this.
4173 (lynx_write_memory): Turn into ...
4174 (lynx_process_target::write_memory): ... this.
4175 * lynx-low.h (class lynx_process_target): Update.
4176 * nto-low.cc (nto_target_ops): Update.
4177 (nto_read_memory): Turn into ...
4178 (nto_process_target::read_memory): ... this.
4179 (nto_write_memory): Turn into ...
4180 (nto_process_target::write_memory): ... this.
4181 * nto-low.h (class nto_process_target): Update.
4182 * win32-low.cc (win32_target_ops): Update.
4183 (win32_read_inferior_memory): Turn into ...
4184 (win32_process_target::read_memory): ... this.
4185 (win32_write_inferior_memory): Turn into ...
4186 (win32_process_target::write_memory): ... this.
4187 * win32-low.h (class win32_process_target): Update.
4188
4189 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4190
4191 Turn process_stratum_target's prepare_to_access_memory and
4192 done_accessing_memory ops into methods of process_target.
4193
4194 * target.h (struct process_stratum_target): Remove the target ops.
4195 (class process_target): Add the target ops.
4196 * target.cc (process_target::prepare_to_access_memory): Define.
4197 (process_target::done_accessing_memory): Define.
4198 (prepare_to_access_memory): Update.
4199 (done_accessing_memory): Update.
4200
4201 Update the derived classes and callers below.
4202
4203 * linux-low.cc (linux_target_ops): Update.
4204 (linux_prepare_to_access_memory): Turn into ...
4205 (linux_process_target::prepare_to_access_memory): ... this.
4206 (linux_done_accessing_memory): Turn into ...
4207 (linux_process_target::done_accessing_memory): ... this.
4208 * linux-low.h (class linux_process_target): Update.
4209 * lynx-low.cc (lynx_target_ops): Update.
4210 * nto-low.cc (nto_target_ops): Update.
4211 * win32-low.cc (win32_target_ops): Update.
4212
4213 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4214
4215 Turn process_stratum_target's fetch_registers and store_registers
4216 ops into methods of process_target.
4217
4218 * target.h (struct process_stratum_target): Remove the target ops.
4219 (class process_target): Add the target ops.
4220 (fetch_inferior_registers): Update the macro.
4221 (store_inferior_registers): Update the macro.
4222
4223 Update the derived classes and callers below.
4224
4225 * linux-low.cc (linux_target_ops): Update.
4226 (linux_fetch_registers): Turn into ...
4227 (linux_process_target::fetch_registers): ... this.
4228 (linux_store_registers): Turn into ...
4229 (linux_process_target::store_registers): ... this.
4230 * linux-low.h (class linux_process_target): Update.
4231 * lynx-low.cc (lynx_target_ops): Update.
4232 (lynx_fetch_registers): Turn into ...
4233 (lynx_process_target::fetch_registers): ... this.
4234 (lynx_store_registers): Turn into ...
4235 (lynx_process_target::store_registers): ... this.
4236 * lynx-low.h (class lynx_process_target): Update.
4237 * nto-low.cc (nto_target_ops): Update.
4238 (nto_fetch_registers): Turn into ...
4239 (nto_process_target::fetch_registers): ... this.
4240 (nto_store_registers): Turn into ...
4241 (nto_process_target::store_registers): ... this.
4242 * nto-low.h (class nto_process_target): Update.
4243 * win32-low.cc (win32_target_ops): Update.
4244 (win32_fetch_inferior_registers): Turn into ...
4245 (win32_process_target::fetch_registers): ... this.
4246 (win32_store_inferior_registers): Turn into ...
4247 (win32_process_target::store_registers): ... this.
4248 * win32-low.h (class win32_process_target): Update.
4249
4250 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4251
4252 Turn process_stratum_target's wait op into a method of
4253 process_target.
4254
4255 * target.h (struct process_stratum_target): Remove the target op.
4256 (class process_target): Add the target op.
4257
4258 Update the derived classes and callers below.
4259
4260 * target.cc (target_wait): Update.
4261 * linux-low.cc (linux_target_ops): Update.
4262 (linux_wait): Turn into ...
4263 (linux_process_target::wait): ... this.
4264 * linux-low.h (class linux_process_target): Update.
4265 * lynx-low.cc (lynx_target_ops): Update.
4266 (lynx_wait): Turn into ...
4267 (lynx_process_target::wait): ... this.
4268 * lynx-low.h (class lynx_process_target): Update.
4269 * nto-low.cc (nto_target_ops): Update.
4270 (nto_wait): Turn into ...
4271 (nto_process_target::wait): ... this.
4272 * nto-low.h (class nto_process_target): Update.
4273 * win32-low.cc (win32_target_ops): Update.
4274 (win32_wait): Turn into ...
4275 (win32_process_target::wait): ... this.
4276 (do_initial_child_stuff): Update.
4277 * win32-low.h (class win32_process_target): Update.
4278
4279 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4280
4281 Turn process_stratum_target's resume op into a method of
4282 process_target.
4283
4284 * target.h (struct process_stratum_target): Remove the target op.
4285 (class process_target): Add the target op.
4286
4287 Update the derived classes and callers below.
4288
4289 * server.cc (resume): Update.
4290 * target.cc (target_stop_and_wait): Update.
4291 (target_continue_no_signal): Update.
4292 (target_continue): Update.
4293 * linux-low.cc (linux_target_ops): Update.
4294 (linux_resume): Turn into ...
4295 (linux_process_target::resume): ... this.
4296 * linux-low.h (class linux_process_target): Update.
4297 * lynx-low.cc (lynx_target_ops): Update.
4298 (lynx_resume): Turn into ...
4299 (lynx_process_target::resume): ... this.
4300 * lynx-low.h (class lynx_process_target): Update.
4301 * nto-low.cc (nto_target_ops): Update.
4302 (nto_resume): Turn into ...
4303 (nto_process_target::resume): ... this.
4304 * nto-low.h (class nto_process_target): Update.
4305 * win32-low.cc (win32_target_ops): Update.
4306 (win32_resume): Turn into ...
4307 (win32_process_target::resume): ... this.
4308 (win32_process_target::detach): Update.
4309 (do_initial_child_stuff): Update.
4310 * win32-low.h (class win32_process_target): Update.
4311
4312 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4313
4314 Turn process_stratum_target's thread_alive op into a method of
4315 process_target.
4316
4317 * target.h (struct process_stratum_target): Remove the target op.
4318 (class process_target): Add the target op.
4319 (mythread_alive): Update the macro.
4320
4321 Update the derived classes and callers below.
4322
4323 * linux-low.cc (linux_target_ops): Update.
4324 (linux_thread_alive): Turn into ...
4325 (linux_process_target::thread_alive): ... this.
4326 (wait_for_sigstop): Update.
4327 * linux-low.h (class linux_process_target): Update.
4328 * lynx-low.cc (lynx_target_ops): Update.
4329 (lynx_thread_alive): Turn into ...
4330 (lynx_process_target::thread_alive): ... this.
4331 * lynx-low.h (class lynx_process_target): Update.
4332 * nto-low.cc (nto_target_ops): Update.
4333 (nto_thread_alive): Turn into ...
4334 (nto_process_target::thread_alive): ... this.
4335 * nto-low.h (class nto_process_target): Update.
4336 * win32-low.cc (win32_target_ops): Update.
4337 (win32_thread_alive): Turn into ...
4338 (win32_process_target::thread_alive): ... this.
4339 * win32-low.h (class win32_process_target): Update.
4340
4341 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4342
4343 Turn process_stratum_target's join op into a method of
4344 process_target.
4345
4346 * target.h (struct process_stratum_target): Remove the target op.
4347 (class process_target): Add the target op.
4348 (join_inferior): Update the macro.
4349
4350 Update the derived classes and callers below.
4351
4352 * linux-low.cc (linux_target_ops): Update.
4353 (linux_join): Turn into ...
4354 (linux_process_target::join): ... this.
4355 * linux-low.h (class linux_process_target): Update.
4356 * lynx-low.cc (lynx_target_ops): Update.
4357 (lynx_join): Turn into ...
4358 (lynx_process_target::join): ... this.
4359 * lynx-low.h (class lynx_process_target): Update.
4360 * nto-low.cc (nto_target_ops): Update.
4361 (nto_process_target::join): Define.
4362 * nto-low.h (class nto_process_target): Update.
4363 * win32-low.cc (win32_target_ops): Update.
4364 (win32_join): Turn into ...
4365 (win32_process_target::join): ... this.
4366 * win32-low.h (class win32_process_target): Update.
4367
4368 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4369
4370 Turn process_stratum_target's mourn op into a method of
4371 process_target.
4372
4373 * target.h (struct process_stratum_target): Remove the target op.
4374 (class process_target): Add the target op.
4375
4376 Update the derived classes and callers below.
4377
4378 * target.cc (target_mourn_inferior): Update.
4379 * linux-low.cc (linux_target_ops): Update.
4380 (linux_mourn): Turn into ...
4381 (linux_process_target::mourn): ... this.
4382 (handle_extended_wait): Update.
4383 (linux_process_target::kill): Update.
4384 (linux_process_target::detach): Update.
4385 * linux-low.h (class linux_process_target): Update.
4386 * lynx-low.cc (lynx_target_ops): Update.
4387 (lynx_mourn): Turn into ...
4388 (lynx_process_target::mourn): ... this.
4389 * lynx-low.h (class lynx_process_target): Update.
4390 * nto-low.cc (nto_target_ops): Update.
4391 (nto_mourn): Turn into ...
4392 (nto_process_target::mourn): ... this.
4393 * nto-low.h (class nto_process_target): Update.
4394 * win32-low.cc (win32_target_ops): Update.
4395 (win32_mourn): Turn into ...
4396 (win32_process_target::mourn): ... this.
4397 * win32-low.h (class win32_process_target): Update.
4398
4399 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4400
4401 Turn process_stratum_target's detach op into a method of
4402 process_target.
4403
4404 * target.h (struct process_stratum_target): Remove the target op.
4405 (class process_target): Add the target op.
4406 (detach_inferior): Update the macro.
4407
4408 Update the derived classes and callers below.
4409
4410 * linux-low.cc (linux_target_ops): Update.
4411 (linux_detach): Turn into ...
4412 (linux_process_target::detach): ... this.
4413 * linux-low.h (class linux_process_target): Update.
4414 * lynx-low.cc (lynx_target_ops): Update.
4415 (lynx_detach): Turn into ...
4416 (lynx_process_target::detach): ... this.
4417 * lynx-low.h (class lynx_process_target): Update.
4418 * nto-low.cc (nto_target_ops): Update.
4419 (nto_detach): Turn into ...
4420 (nto_process_target::detach): ... this.
4421 * nto-low.h (class nto_process_target): Update.
4422 * win32-low.cc (win32_target_ops): Update.
4423 (win32_detach): Turn into ...
4424 (win32_process_target::detach): ... this.
4425 * win32-low.h (class win32_process_target): Update.
4426
4427 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4428
4429 Turn process_stratum_target's kill op into a method of
4430 process_target.
4431
4432 * target.h (struct process_stratum_target): Remove the target op.
4433 (class process_target): Add the target op.
4434
4435 Update the derived classes and callers below.
4436
4437 * target.cc (kill_inferior): Update.
4438 * linux-low.cc (linux_target_ops): Update.
4439 (linux_kill): Turn into ...
4440 (linux_process_target::kill): ... this.
4441 * linux-low.h (class linux_process_target): Update.
4442 * lynx-low.cc (lynx_target_ops): Update.
4443 (lynx_kill): Turn into ...
4444 (lynx_process_target::kill): ... this.
4445 * lynx-low.h (class lynx_process_target): Update.
4446 * nto-low.cc (nto_target_ops): Update.
4447 (nto_kill): Turn into ...
4448 (nto_process_target::kill): ... this.
4449 * nto-low.h (class nto_process_target): Update.
4450 * win32-low.cc (win32_target_ops): Update.
4451 (win32_kill): Turn into ...
4452 (win32_process_target::kill): ... this.
4453 * win32-low.h (class win32_process_target): Update.
4454
4455 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4456
4457 Turn process_stratum_target's attach op into a method of
4458 process_target.
4459
4460 * target.h (struct process_stratum_target): Remove the target op.
4461 (class process_target): Add the target op.
4462 (myattach): Update the macro.
4463
4464 Update the derived classes and callers below.
4465
4466 * linux-low.cc (linux_target_ops): Update.
4467 (linux_attach): Turn into ...
4468 (linux_process_target::attach): ... this.
4469 * linux-low.h (class linux_process_target): Update.
4470 * lynx-low.cc (lynx_target_ops): Update.
4471 (lynx_attach): Turn into ...
4472 (lynx_process_target::attach): ... this.
4473 * lynx-low.h (class lynx_process_target): Update.
4474 * nto-low.cc (nto_target_ops): Update.
4475 (nto_attach): Turn into ...
4476 (nto_process_target::attach): ... this.
4477 * nto-low.h (class nto_process_target): Update.
4478 * win32-low.cc (win32_target_ops): Update.
4479 (win32_attach): Turn into ...
4480 (win32_process_target::attach): ... this.
4481 * win32-low.h (class win32_process_target): Update.
4482
4483 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4484
4485 Turn process_stratum_target's post_create_inferior op into a method
4486 of process_target.
4487
4488 * target.h (struct process_stratum_target): Remove the target op.
4489 (class process_target): Add the target op.
4490 (target_post_create_inferior): Update the macro.
4491 * target.cc (process_target::post_create_inferior): Define.
4492
4493 Update the derived classes and callers below.
4494
4495 * linux-low.cc (linux_target_ops): Update.
4496 (linux_post_create_inferior): Turn into ...
4497 (linux_process_target::post_create_inferior): ... this.
4498 * linux-low.h (class linux_process_target): Update.
4499 * lynx-low.cc (lynx_target_ops): Update.
4500 * nto-low.cc (nto_target_ops): Update.
4501 * win32-low.cc (win32_target_ops): Update.
4502
4503 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4504
4505 Turn process_stratum_target's create_inferior op into a method of
4506 process_target.
4507
4508 * target.h (struct process_stratum_target): Remove the target op.
4509 (class process_target): Add the target op.
4510 (create_inferior): Rename the macro to ...
4511 (target_create_inferior): ... this.
4512
4513 Update the derived classes and callers below.
4514
4515 * server.cc (handle_v_run): Update.
4516 (captured_main): Update.
4517 (process_serial_event): Update.
4518 * linux-low.cc (linux_target_ops): Update.
4519 (linux_create_inferior): Turn into ...
4520 (linux_process_target::create_inferior): ... this.
4521 * linux-low.h (class linux_process_target): Update.
4522 * lynx-low.cc (lynx_target_ops): Update.
4523 (lynx_create_inferior): Turn into ...
4524 (lynx_process_target::create_inferior): ... this.
4525 * lynx-low.h (class lynx_process_target): Update.
4526 * nto-low.cc (nto_target_ops): Update.
4527 (nto_create_inferior): Turn into ...
4528 (nto_process_target::create_inferior): ... this.
4529 * nto-low.h (class nto_process_target): Update.
4530 * win32-low.cc (win32_target_ops): Update.
4531 (win32_create_inferior): Turn into ...
4532 (win32_process_target::create_inferior): ... this.
4533 * win32-low.h (class win32_process_target): Update.
4534
4535 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4536
4537 * target.h (class process_target): New class definition.
4538 (struct process_stratum_target) <pt>: New field with type
4539 'process_target*'.
4540 * linux-low.h (class linux_process_target): Define as a derived
4541 class of 'process_target'.
4542 * linux-low.cc (linux_target_ops): Add a linux_process_target*
4543 as the 'pt' field.
4544 * lynx-low.h (class lynx_process_target): Define as a derived
4545 class of 'process_target'.
4546 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
4547 as the 'pt' field.
4548 * nto-low.h (class nto_process_target): Define as a derived
4549 class of 'process_target'.
4550 * nto-low.cc (nto_target_ops): Add an nto_process_target*
4551 as the 'pt' field.
4552 * win32-low.h (class win32_process_target): Define as a derived
4553 class of 'process_target'.
4554 * win32-low.cc (win32_target_ops): Add a win32_process_target*
4555 as the 'pt' field.
4556
4557 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
4558
4559 * configure: Regenerate.
4560
4561 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
4562 Andrew Burgess <andrew.burgess@embecosm.com>
4563
4564 * linux-riscv-low.cc: New file.
4565 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
4566 and nat/riscv-linux-tdesc.c.
4567 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
4568 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
4569 Define.
4570
4571 2020-02-14 Tom Tromey <tom@tromey.com>
4572
4573 * acinclude.m4: Don't include acx_configure_dir.m4.
4574 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
4575 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
4576 (all, install-only, uninstall, clean-info, clean)
4577 (maintainer-clean): Don't recurse.
4578 (subdir_do, all-lib): Remove.
4579 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
4580 (GNULIB_H): Remove.
4581 (generated_files): Update.
4582 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
4583 * configure: Rebuild.
4584 * configure.ac: Don't configure gnulib or libiberty.
4585 (GNULIB): Update.
4586
4587 2020-02-14 Eli Zaretskii <eliz@gnu.org>
4588
4589 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
4590 preparing the command line for CreateProcess.
4591 (win32_create_inferior): Reflect the program name in debugging
4592 output that shows the process and its command line.
4593
4594 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
4595
4596 * Makefile.in: Rename source files from .c to .cc.
4597 * %.c: Rename to %.cc.
4598 * configure.ac: Rename server.c to server.cc.
4599 * configure: Re-generate.
4600
4601 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
4602
4603 * Makefile.in: Rename gdbsupport source files from .c to .cc.
4604
4605 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
4606
4607 * win32-low.c (win32_create_inferior): Set signal_pid.
4608
4609 2020-02-12 Maciej W. Rozycki <macro@wdc.com>
4610 Pedro Alves <palves@redhat.com>
4611
4612 Skip building gdbserver in a cross-configuration.
4613 * configure.srv: Set $gdbserver_host depending on whether $target
4614 is $host. Use $gdbserver_host instead of $host.
4615
4616 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4617
4618 * configure: Re-generate.
4619
4620 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4621
4622 * configure: Re-generate.
4623
4624 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4625
4626 * acinclude.m4: Update warning.m4 path.
4627
4628 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
4629
4630 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
4631 (handle_exception): Set siginfo_er.
4632 (win32_xfer_siginfo): New function.
4633
4634 2020-02-07 Tom Tromey <tom@tromey.com>
4635 Pedro Alves <palves@redhat.com>
4636
4637 * README: Update build documentation.
4638 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
4639 host, not target.
4640 * configure.ac: Update paths.
4641 * configure: Rebuild.
4642 * acinclude.m4: Update paths.
4643 * Makefile.in: Update include paths.
4644 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
4645 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
4646 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
4647 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
4648 (%-generated.c): Update paths.
4649 * Move entire directory from ../gdb/gdbserver.
4650
4651 2020-01-29 Maciej W. Rozycki <macro@wdc.com>
4652
4653 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
4654
4655 2020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4656
4657 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
4658 assignment instead of srv_linux_obj.
4659
4660 2020-01-28 Hannes Domani <ssbssa@yahoo.de>
4661
4662 * server.c (handle_qxfer_libraries): Write segment-address with
4663 paddress.
4664
4665 2020-01-24 Hannes Domani <ssbssa@yahoo.de>
4666
4667 * Makefile.in (install-strip): New target.
4668 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
4669 * aclocal.m4: Regenerate.
4670 * configure: Regenerate.
4671 * configure.ac: Add AM_PROG_INSTALL_STRIP.
4672
4673 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
4674
4675 * Makefile.in (SFILES): Adjust paths to point to real files.
4676 (OBS): Move waitstatus.o to target/waitstatus.o.
4677 (TAGS): Transform paths appropriately.
4678 (%.o): Rename to...
4679 (nat/%.o): ... this pattern rule.
4680 (%.o): Rename to...
4681 (target/%.o): ... this pattern rule.
4682 * configure.srv: Adjust paths throughout to include nat/ prefix
4683 with the revant files.
4684 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
4685 * configure: Regenerate.
4686
4687 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
4688
4689 * Makefile.in (TAGS): Remove config files from the recipe.
4690
4691 2020-01-14 Tom Tromey <tom@tromey.com>
4692
4693 * configure: Rebuild.
4694 * configure.ac: Remove any checks that were added to common.m4.
4695 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
4696 lib-link.m4.
4697
4698 2020-01-14 Tom Tromey <tom@tromey.com>
4699
4700 * server.h: Include config.h.
4701 * gdbreplay.c: Include config.h.
4702 * configure: Rebuild.
4703 * configure.ac: Don't source common.host.
4704 * acinclude.m4: Update path.
4705 * Makefile.in (INCSUPPORT): New variable.
4706 (INCLUDE_CFLAGS): Add INCSUPPORT.
4707 (SFILES): Update paths.
4708 (version-generated.c): Update path to create-version.sh.
4709 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
4710
4711 2020-01-14 Tom Tromey <tom@tromey.com>
4712
4713 * configure.ac (LIBS): Use WIN32APILIBS.
4714 (USE_WIN32API): Don't define.
4715 * configure: Rebuild.
4716
4717 2020-01-14 Tom Tromey <tom@tromey.com>
4718
4719 * configure: Rebuild.
4720
4721 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4722
4723 * Makefile.in (%-generated.c): Remove rule for files from
4724 regformats/i386.
4725
4726 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4727
4728 * configure: Re-generate.
4729
4730 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4731
4732 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
4733 Define to static.
4734 * tracepoint.c (stop_tracing, flush_trace_buffer,
4735 about_to_request_buffer_space, get_trace_state_variable_value,
4736 set_trace_state_variable_value, gdb_collect): Add declaration.
4737
4738 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4739
4740 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
4741 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
4742 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
4743 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
4744 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
4745 static.
4746
4747 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4748
4749 * inferiors.c: Include gdbsupport/common-inferior.h.
4750
4751 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4752
4753 * hostio-errno.c: Include hostio.h.
4754
4755 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4756
4757 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
4758 prerequisite.
4759
4760 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4761
4762 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
4763 * linux-arm-tdesc.h: Include arch/arm.h.
4764
4765 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4766
4767 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
4768
4769 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4770
4771 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
4772 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
4773
4774 2020-01-10 Pedro Alves <palves@redhat.com>
4775
4776 * fork-child.c (post_fork_inferior): Pass target down to
4777 startup_inferior.
4778 * inferiors.c (switch_to_thread): Add process_stratum_target
4779 parameter.
4780 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
4781 * nto-low.c (nto_target_ops): Now a process_stratum_target.
4782 * linux-low.c (linux_target_ops): Now a process_stratum_target.
4783 * remote-utils.c (prepare_resume_reply): Pass the target to
4784 switch_to_thread.
4785 * target.c (the_target): Now a process_stratum_target.
4786 (done_accessing_memory): Pass the target to switch_to_thread.
4787 (set_target_ops): Ajust to use process_stratum_target.
4788 * target.h (struct target_ops): Rename to ...
4789 (struct process_stratum_target): ... this.
4790 (the_target, set_target_ops): Adjust.
4791 (prepare_to_access_memory): Adjust comment.
4792 * win32-low.c (child_xfer_memory): Adjust to use
4793 process_stratum_target.
4794 (win32_target_ops): Now a process_stratum_target.
4795
4796 2020-01-06 Eli Zaretskii <eliz@gnu.org>
4797 Pedro Alves <palves@redhat.com>
4798
4799 * win32-low.c (get_child_debug_event): Extract the fatal exception
4800 from the exit status and convert to the equivalent Posix signal
4801 number.
4802 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
4803 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
4804
4805 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
4806
4807 * Makefile.in: Use INSTALL_PROGRAM_ENV.
4808
4809 2020-01-01 Joel Brobecker <brobecker@adacore.com>
4810
4811 * server.c (gdbserver_version): Change copyright year to 2020.
4812 * gdbreplay.c (gdbreplay_version): Likewise.
4813
4814 2019-12-19 Christian Biesinger <cbiesinger@google.com>
4815
4816 * configure: Regenerate.
4817 * configure.ac: Quote variable arguments of test.
4818
4819 2019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
4820
4821 * Makefile.in: Fix build with GNU Make 3.81
4822
4823 2019-12-16 Tom Tromey <tromey@adacore.com>
4824
4825 * server.c (get_exec_file): Constify result.
4826
4827 2019-12-10 Christian Biesinger <cbiesinger@google.com>
4828
4829 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
4830 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
4831 * config.in: Regenerate.
4832 * configure: Regenerate.
4833 * configure.ac: Don't check for strerror.
4834 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
4835 Call safe_strerror instead of strerror.
4836 * server.h (strerror): Remove this now-unnecessary declaration.
4837 * tracepoint.c (init_named_socket): Call safe_strerror instead of
4838 strerror.
4839 (gdb_agent_helper_thread): Likewise.
4840 * utils.c (perror_with_name): Likewise.
4841
4842 2019-11-26 Tom Tromey <tom@tromey.com>
4843
4844 * configure, config.in: Rebuild.
4845
4846 2019-11-26 Tom Tromey <tom@tromey.com>
4847
4848 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
4849 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
4850 gdb_sigmask.
4851 * configure, config.in: Rebuild.
4852
4853 2019-11-26 Tom Tromey <tom@tromey.com>
4854
4855 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
4856 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
4857 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
4858 * acinclude.m4: Include ax_pthread.m4.
4859 * config.in, configure: Rebuild.
4860
4861 2019-11-26 Christian Biesinger <cbiesinger@google.com>
4862
4863 * debug.c (debug_set_output): Call safe_strerror instead of
4864 strerror.
4865 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
4866 (linux_kill_one_lwp): Likewise.
4867 (linux_detach_one_lwp): Likewise.
4868 (linux_wait_for_event_filtered): Likewise.
4869 (store_register): Likewise.
4870 * lynx-low.c (lynx_attach): Likewise.
4871 * mem-break.c (insert_memory_breakpoint): Likewise.
4872 (remove_memory_breakpoint): Likewise.
4873 (delete_fast_tracepoint_jump): Likewise.
4874 (set_fast_tracepoint_jump): Likewise.
4875 (uninsert_fast_tracepoint_jumps_at): Likewise.
4876 (reinsert_fast_tracepoint_jumps_at): Likewise.
4877 * nto-low.c (nto_xfer_memory): Likewise.
4878 (nto_resume): Likewise.
4879
4880 2019-11-20 Luis Machado <luis.machado@linaro.org>
4881
4882 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
4883 instead of register count.
4884 * tdesc.c (tdesc_contains_feature): New function.
4885 * tdesc.h (tdesc_contains_feature): New prototype.
4886
4887 2019-11-15 Christian Biesinger <cbiesinger@google.com>
4888
4889 * Makefile.in: Add safe-strerror.c.
4890 * configure: Regenerate.
4891 * configure.ac: Don't source common.host.
4892
4893 2019-11-15 Christian Biesinger <cbiesinger@google.com>
4894
4895 * config.in: Regenerate.
4896 * configure: Regenerate.
4897
4898 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
4899
4900 * ax.c (ax_printf): Handle size_t_arg.
4901
4902 2019-11-06 Christian Biesinger <cbiesinger@google.com>
4903
4904 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
4905 * mi/mi-main.c (output_cores): Likewise.
4906 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
4907 (linux_xfer_osdata_modules): Likewise.
4908 * remote.c (register_remote_support_xml): Likewise.
4909 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
4910 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
4911
4912 2019-11-01 Christian Biesinger <cbiesinger@google.com>
4913
4914 * configure: Regenerate.
4915 * configure.ac: Remove check for strerror_r.
4916
4917 2019-10-31 Christian Biesinger <cbiesinger@google.com>
4918
4919 * config.in: Regenerate.
4920 * configure: Regenerate.
4921 * configure.ac: Also check for strerror_r.
4922
4923 2019-10-31 Christian Biesinger <cbiesinger@google.com>
4924
4925 * ax.h (debug_agent): Remove duplicate declaration.
4926
4927 2019-10-26 Tom de Vries <tdevries@suse.de>
4928
4929 * linux-aarch64-low.c: Fix typos in comments.
4930 * linux-arm-low.c: Same.
4931 * linux-low.c: Same.
4932 * linux-ppc-low.c: Same.
4933 * proc-service.c: Same.
4934 * regcache.h: Same.
4935 * server.c: Same.
4936 * tracepoint.c: Same.
4937 * win32-low.c: Same.
4938
4939 2019-10-25 Tom Tromey <tromey@adacore.com>
4940
4941 * utils.c (xstrdup): Remove.
4942
4943 2019-10-23 Tom Tromey <tom@tromey.com>
4944
4945 * configure, config.in: Rebuild.
4946
4947 2019-10-23 Tom Tromey <tom@tromey.com>
4948
4949 * configure: Rebuild.
4950 * acinclude.m4: Use m4_include, not sinclude.
4951
4952 2019-10-17 Tom Tromey <tromey@adacore.com>
4953
4954 * configure: Rebuild.
4955 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
4956 in AC_CONFIG_FILES invocation.
4957 * Makefile.in (stamp-h, Makefile): Use new-style config.status
4958 invocation.
4959
4960 2019-10-16 Christian Biesinger <cbiesinger@google.com>
4961
4962 * server.c: Include xml-builtin.h.
4963 (get_xml_features): Don't declare xml_builtins here.
4964
4965 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4966
4967 * Makefile.in: Remove references to vec-ipa.o.
4968
4969 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4970
4971 * Makefile.in: Remove references to vec.c.
4972
4973 2019-10-02 Christian Biesinger <cbiesinger@google.com>
4974
4975 * server.c (server_waiting): Change to bool.
4976 (extended_protocol): Likewise.
4977 (response_needed): Likewise.
4978 (exit_requested): Likewise.
4979 (run_once): Likewise.
4980 (report_no_resumed): Likewise.
4981 (non_stop): Likewise.
4982 (disable_packet_vCont): Likewise.
4983 (disable_packet_Tthread): Likewise.
4984 (disable_packet_qC): Likewise.
4985 (disable_packet_qfThreadInfo): Likewise.
4986 (handle_general_set): Update.
4987 (handle_detach): Update.
4988 (handle_monitor_command): Update.
4989 (handle_query): Update.
4990 (captured_main): Update.
4991 (process_serial_event): Update.
4992 * server.h (server_waiting): Change to bool.
4993 (disable_packet_vCont): Likewise.
4994 (disable_packet_Tthread): Likewise.
4995 (disable_packet_qC): Likewise.
4996 (disable_packet_qfThreadInfo): Likewise.
4997 (run_once): Likewise.
4998 (non_stop): Likewise.
4999 * target.c (target_stop_and_wait): Update.
5000
5001 2019-10-02 Tom Tromey <tromey@adacore.com>
5002
5003 * Makefile.in (SFILES): Add common-inferior.c.
5004 (OBS): Add common-inferior.o.
5005 * server.c (startup_with_shell): Don't define.
5006
5007 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
5008
5009 * linux-low.c (linux_low_read_btrace): Update for change to
5010 std::vector.
5011
5012 2019-09-20 Christian Biesinger <cbiesinger@google.com>
5013
5014 * debug.c (debug_threads): Remove comment in favor of the header.
5015 * debug.h (using_threads): Add declaration.
5016 (debug_threads): Add comment.
5017 * linux-aarch64-low.c: Include debug.h and remove declaration of
5018 debug_threads.
5019 * nto-low.c: Likewise.
5020 * remote-utils.c: Likewise.
5021 * thread-db.c: Likewise.
5022
5023 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
5024
5025 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
5026 and powerpc-cell64l-ipa.o.
5027 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
5028 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
5029 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
5030 (spu*-*-*): Remove.
5031
5032 * spu-low.c: Remove file.
5033
5034 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
5035 (parse_spufs_run): Remove.
5036 (ppc_get_pc): Remove Cell/B.E. support.
5037 (ppc_set_pc): Likewise.
5038 (ppc_breakpoint_at): Likewise.
5039 (ppc_arch_setup): Likewise.
5040 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
5041 tdesc_powerpc_cell32l.
5042 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
5043 or init_registers_powerpc_cell32l.
5044 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
5045 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
5046 or init_registers_powerpc_cell32l.
5047 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
5048 (init_registers_powerpc_cell32l): Remove prototype.
5049 (init_registers_powerpc_cell64l): Likewise.
5050
5051 * target.h (struct target_ops): Remove qxfer_spu member.
5052 * server.c (handle_qxfer_spu): Remove.
5053 (qxfer_packets): Remove entry for "spu".
5054 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
5055 * linux-low.c (SPUFS_MAGIC): Remove.
5056 (spu_enumerate_spu_ids): Remove.
5057 (linux_qxfer_spu): Remove.
5058 (linux_target_ops): Remove qxfer_spu member.
5059 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
5060 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
5061 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
5062
5063 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
5064
5065 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
5066 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
5067 * config.in: Regenerate.
5068 * configure: Regenerate.
5069
5070 2019-08-15 Tom Tromey <tromey@adacore.com>
5071
5072 * target.c (target_write_memory): Use gdb::byte_vector.
5073
5074 2019-08-15 Tom Tromey <tromey@adacore.com>
5075
5076 * tracepoint.c (write_inferior_data_pointer)
5077 (write_inferior_integer, write_inferior_int8)
5078 (write_inferior_uinteger, m_tracepoint_action_download)
5079 (r_tracepoint_action_download, x_tracepoint_action_download)
5080 (l_tracepoint_action_download, clear_inferior_trace_buffer)
5081 (download_agent_expr, download_tracepoint_1)
5082 (download_trace_state_variables, upload_fast_traceframes): Update.
5083 * server.c (gdb_write_memory): Update.
5084 * remote-utils.c (relocate_instruction): Update.
5085 * proc-service.c (ps_pdwrite): Update.
5086 * mem-break.c (remove_memory_breakpoint)
5087 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
5088 (uninsert_fast_tracepoint_jumps_at)
5089 (reinsert_fast_tracepoint_jumps_at): Update.
5090 * linux-x86-low.c (append_insns)
5091 (i386_install_fast_tracepoint_jump_pad)
5092 (amd64_write_goto_address, i386_write_goto_address): Update.
5093 * linux-s390-low.c (append_insns, s390_write_goto_address):
5094 Update.
5095 * linux-ppc-low.c (ppc_relocate_instruction)
5096 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
5097 (ppc_write_goto_address): Update.
5098 * linux-aarch64-low.c (append_insns): Update.
5099 * target.h (struct target_ops): Update.
5100 (write_inferior_memory): Don't declare.
5101 * target.c (target_write_memory): Rename from
5102 write_inferior_memory. Remove old target_write_memory.
5103
5104 2019-08-15 Tom Tromey <tromey@adacore.com>
5105
5106 * target.c (write_inferior_memory): Use std::vector.
5107
5108 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
5109
5110 PR build/24886
5111 * configure.ac: Drop enable-libmcheck support.
5112 * configure, config.in: Rebuild.
5113 * acinclude.m4: Don't include it.
5114
5115 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5116
5117 * configure.srv: Remove Arm xml files.
5118
5119 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5120
5121 * configure.srv: Add new files. Remove xml generated files.
5122 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
5123 registers.
5124 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
5125 * linux-aarch32-tdesc.c: New file.
5126 * linux-aarch32-tdesc.h: New file.
5127 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
5128 * linux-arm-low.c (init_registers_arm, tdesc_arm)
5129 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
5130 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
5131 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
5132 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
5133 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
5134 (arm_read_description): Call arm_linux_read_description.
5135 (initialize_low_arch): Don't init registers.
5136 * linux-arm-tdesc.c: New file.
5137 * linux-arm-tdesc.h: New file.
5138
5139 2019-07-10 Alan Hayward <alan.hayward@arm.com>
5140
5141 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
5142 Move counter inside for.
5143 (arm_read_description): Check ptrace earlier.
5144 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
5145
5146 2019-07-09 Tom Tromey <tom@tromey.com>
5147
5148 * configure: Rebuild.
5149 * configure.ac: Change common to gdbsupport.
5150 * acinclude.m4: Change common to gdbsupport.
5151 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
5152 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
5153 common to gdbsupport.
5154 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
5155 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
5156 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
5157 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
5158 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
5159 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
5160 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
5161 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
5162 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
5163 common to gdbsupport.
5164
5165 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5166
5167 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
5168 defines.
5169 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
5170
5171 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5172
5173 * configure.srv: Remove legacy xml.
5174 * linux-aarch64-low.c (initialize_low_arch): Remove
5175 initialize_low_tdesc call.
5176 * linux-aarch64-tdesc-selftest.c: Remove file.
5177 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
5178 * linux-x86-low.c (initialize_low_arch): Remove
5179 initialize_low_tdesc call.
5180 * linux-x86-tdesc-selftest.c: Remove file.
5181 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
5182
5183 2019-06-20 Tom de Vries <tdevries@suse.de>
5184
5185 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
5186 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
5187
5188 2019-06-19 Tom de Vries <tdevries@suse.de>
5189
5190 * debug.h (debug_write): Change return type to ssize_t.
5191 * debug.c (debug_write): Same.
5192
5193 2019-06-14 Tom Tromey <tom@tromey.com>
5194
5195 * configure.ac: Use new path to gnulib.
5196 * configure: Rebuild.
5197 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
5198 to gnulib.
5199
5200 2019-06-11 Tom Tromey <tom@tromey.com>
5201
5202 * Makefile.in (SFILES): Add alloc.c.
5203 (OBS): Add alloc.o.
5204 (IPA_OBJS): Add alloc-ipa.o.
5205 (alloc-ipa.o): New target.
5206 (%.o: ../%.c): New pattern rule.
5207
5208 2019-06-10 Tom Tromey <tromey@adacore.com>
5209
5210 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
5211 end warning with a newline.
5212 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
5213 newline.
5214 * thread-db.c (attach_thread): Don't end warning with a newline.
5215 (thread_db_notice_clone): Likewise.
5216 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
5217 newline.
5218 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
5219 end warning with a newline.
5220
5221 2019-06-04 Pedro Alves <palves@redhat.com>
5222
5223 * server.c (captured_main): Use make_unique_xstrdup.
5224
5225 2019-06-02 Tom Tromey <tom@tromey.com>
5226
5227 * gdbreplay.c (fromhex): Remove.
5228 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
5229
5230 2019-05-29 Tom Tromey <tromey@adacore.com>
5231
5232 * configure: Rebuild.
5233
5234 2019-05-06 Kevin Buettner <kevinb@redhat.com>
5235
5236 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
5237 sign extension code on 32-bit builds.
5238
5239 2019-05-03 Eli Zaretskii <eliz@gnu.org>
5240
5241 * remote-utils.c:
5242 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
5243
5244 2019-04-19 Tom Tromey <tom@tromey.com>
5245
5246 * server.c (struct vstop_notif): Derive from notif_event.
5247 <base>: Remove.
5248 (queue_stop_reply): Update.
5249 (remove_all_on_match_ptid): Change type. Rewrite.
5250 (discard_queued_stop_replies): Rewrite.
5251 (in_queued_stop_replies_ptid): Change type.
5252 (in_queued_stop_replies): Rewrite.
5253 (notif_stop): Update.
5254 (queue_stop_reply_callback): Update.
5255 (captured_main): Don't call initialize_notif.
5256 (push_stop_notification): Update.
5257 * notif.c (notif_write_event, handle_notif_ack)
5258 (notif_event_enque, notif_push): Update.
5259 (notif_event_xfree, initialize_notif): Remove.
5260 * notif.h (struct notif_event): Include <list>, not
5261 "common/queue.h".
5262 (struct notif_server) <queue>: Now a std::list.
5263 (notif_event_p): Remove typedef.
5264 (initialize_notif): Don't declare.
5265 (struct notif_event): Add virtual destructor.
5266
5267 2019-04-17 Alan Hayward <alan.hayward@arm.com>
5268
5269 * ax.c (ax_vdebug): Call debug_printf.
5270 * debug.c (debug_write): New function.
5271 * debug.h (debug_write): New declaration.
5272 * linux-low.c (sigchld_handler): Call debug_write.
5273
5274 2019-04-17 Alan Hayward <alan.hayward@arm.com>
5275
5276 * debug.c (debug_set_output): New function.
5277 (debug_vprintf): Send output to debug_file.
5278 (debug_flush): Likewise.
5279 * debug.h (debug_set_output): New declaration.
5280 * server.c (handle_monitor_command): Add debug-file option.
5281 (captured_main): Likewise.
5282
5283 2019-04-17 Alan Hayward <alan.hayward@arm.com>
5284
5285 * debug.c (remote_debug): Add definition.
5286 * debug.h (remote_debug): Add declaration.
5287 * hostio.c (remote_debug): Remove declaration.
5288 * remote-utils.c (struct ui_file): Likewise.
5289 (remote_debug): Likewise.
5290 * remote-utils.h (remote_debug): Likewise,
5291 * server.c (remote_debug): Remove definition.
5292
5293 2019-04-10 Kevin Buettner <kevinb@redhat.com>
5294
5295 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
5296 when using a 64-bit gdbserver.
5297
5298 2019-04-09 Tom Tromey <tromey@adacore.com>
5299
5300 * linux-low.c (select_event_lwp): Use find_thread_in_random.
5301
5302 2019-04-08 Tom Tromey <tom@tromey.com>
5303
5304 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
5305 throw.
5306 (linux_resume_one_lwp): Likewise.
5307
5308 2019-04-08 Tom Tromey <tom@tromey.com>
5309
5310 * gdbreplay.c: Update.
5311 * linux-low.c: Update.
5312 * server.c: Update.
5313
5314 2019-04-08 Tom Tromey <tom@tromey.com>
5315
5316 * server.c: Use C++ exception handling.
5317 * linux-low.c: Use C++ exception handling.
5318 * gdbreplay.c: Use C++ exception handling.
5319
5320 2019-04-08 Tom Tromey <tom@tromey.com>
5321
5322 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
5323 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
5324 (captured_main, main): Update.
5325 * gdbreplay.c (main): Update.
5326
5327 2019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5328
5329 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
5330 value in argument pointer, return 1 if the entry is found and 0
5331 otherwise. Move comment.
5332 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
5333 * linux-low.h (linux_get_auxv): Declare.
5334 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
5335
5336 2019-04-05 Tom Tromey <tromey@adacore.com>
5337
5338 * server.c (gdbserver_usage): Use upper-case for metasyntactic
5339 variables.
5340
5341 2019-03-28 Alan Hayward <alan.hayward@arm.com>
5342
5343 * linux-low.c (AT_HWCAP2): Add define if not already included.
5344
5345 2019-03-26 Alan Hayward <alan.hayward@arm.com>
5346
5347 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
5348 (aarch64_arch_setup): Call linux_get_hwcap.
5349 * linux-arm-low.c (arm_get_hwcap): Remove function.
5350 (arm_read_description): Call linux_get_hwcap.
5351 * linux-low.c (linux_get_auxv): New function.
5352 (linux_get_hwcap): Likewise.
5353 (linux_get_hwcap2): Likewise.
5354 * linux-low.h (linux_get_hwcap): New declaration.
5355 (linux_get_hwcap2): Likewise.
5356 * linux-ppc-low.c (ppc_get_auxv): Remove function.
5357 (ppc_arch_setup): Call linux_get_hwcap.
5358 * linux-s390-low.c (s390_get_hwcap): Remove function.
5359 (s390_arch_setup): Call linux_get_hwcap.
5360
5361 2019-03-22 Alan Hayward <alan.hayward@arm.com>
5362 Jiong Wang <jiong.wang@arm.com>
5363
5364 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
5365 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
5366 to fail.
5367 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
5368
5369 2019-03-22 Alan Hayward <alan.hayward@arm.com>
5370 Jiong Wang <jiong.wang@arm.com>
5371
5372 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
5373 (aarch64_get_hwcap): New function.
5374 (aarch64_arch_setup): Read APIA hwcap.
5375
5376 2019-03-22 Alan Hayward <alan.hayward@arm.com>
5377 Jiong Wang <jiong.wang@arm.com>
5378
5379 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
5380 (initialize_low_tracepoint): Likewise.
5381 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
5382 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
5383 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
5384 (aarch64_linux_read_description): Likewise.
5385 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
5386
5387 2019-03-12 John Baldwin <jhb@FreeBSD.org>
5388
5389 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
5390 i386_create_target_description for 'segments' parameter.
5391 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
5392 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
5393 * win32-i386-low.c (i386_arch_setup): Likewise.
5394
5395 2019-03-12 Tom Tromey <tromey@adacore.com>
5396
5397 * linux-low.c (iterate_over_lwps): Update.
5398
5399 2019-03-06 Tom Tromey <tom@tromey.com>
5400
5401 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
5402 (captured_main): Use SCOPE_EXIT.
5403
5404 2019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
5405
5406 * configure.srv: Use '$enable_unittest' instead of '$development'
5407 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
5408 case.
5409
5410 2019-02-27 Tom Tromey <tromey@adacore.com>
5411
5412 * gdbreplay.c (logchar): Handle \r\n.
5413
5414 2019-02-07 Alan Hayward <alan.hayward@arm.com>
5415
5416 * linux-low.c (linux_attach): Add process before lwp.
5417 * server.c (attach_inferior): Check if already attached.
5418
5419 2019-02-07 Tom Tromey <tom@tromey.com>
5420
5421 * x86-tdesc.h: Rename include guard.
5422 * x86-low.h: Add include guard.
5423 * wincecompat.h: Rename include guard.
5424 * win32-low.h: Add include guard.
5425 * utils.h: Rename include guard.
5426 * tracepoint.h: Rename include guard.
5427 * tdesc.h: Rename include guard.
5428 * target.h: Rename include guard.
5429 * server.h: Rename include guard.
5430 * remote-utils.h: Rename include guard.
5431 * regcache.h: Rename include guard.
5432 * nto-low.h: Rename include guard.
5433 * notif.h: Add include guard.
5434 * mem-break.h: Rename include guard.
5435 * lynx-low.h: Add include guard.
5436 * linux-x86-tdesc.h: Add include guard.
5437 * linux-s390-tdesc.h: Add include guard.
5438 * linux-ppc-tdesc-init.h: Add include guard.
5439 * linux-low.h: Add include guard.
5440 * linux-aarch64-tdesc.h: Add include guard.
5441 * linux-aarch32-low.h: Add include guard.
5442 * inferiors.h: Rename include guard.
5443 * i387-fp.h: Rename include guard.
5444 * hostio.h: Rename include guard.
5445 * gdbthread.h: Rename include guard.
5446 * gdb_proc_service.h: Rename include guard.
5447 * event-loop.h: Rename include guard.
5448 * dll.h: Rename include guard.
5449 * debug.h: Rename include guard.
5450 * ax.h: Rename include guard.
5451
5452 2018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
5453
5454 PR gdb/23985
5455 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
5456 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
5457
5458 2019-01-25 Tom Tromey <tom@tromey.com>
5459
5460 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
5461
5462 2019-01-25 Tom Tromey <tom@tromey.com>
5463
5464 * win32-low.c: Fix common/ includes.
5465 * win32-i386-low.c: Fix common/ includes.
5466 * tracepoint.c: Fix common/ includes.
5467 * thread-db.c: Fix common/ includes.
5468 * target.h: Fix common/ includes.
5469 * symbol.c: Fix common/ includes.
5470 * spu-low.c: Fix common/ includes.
5471 * server.h: Fix common/ includes.
5472 * server.c: Fix common/ includes.
5473 * remote-utils.c: Fix common/ includes.
5474 * regcache.h: Fix common/ includes.
5475 * regcache.c: Fix common/ includes.
5476 * nto-x86-low.c: Fix common/ includes.
5477 * notif.h: Fix common/ includes.
5478 * mem-break.h: Fix common/ includes.
5479 * lynx-low.c: Fix common/ includes.
5480 * lynx-i386-low.c: Fix common/ includes.
5481 * linux-x86-tdesc-selftest.c: Fix common/ includes.
5482 * linux-x86-low.c: Fix common/ includes.
5483 * linux-low.c: Fix common/ includes.
5484 * inferiors.h: Fix common/ includes.
5485 * i387-fp.c: Fix common/ includes.
5486 * hostio.c: Fix common/ includes.
5487 * hostio-errno.c: Fix common/ includes.
5488 * gdbthread.h: Fix common/ includes.
5489 * gdbreplay.c: Fix common/ includes.
5490 * fork-child.c: Fix common/ includes.
5491 * event-loop.c: Fix common/ includes.
5492 * ax.c:
5493 (enum gdb_agent_op): Fix common/ includes.
5494
5495 2019-01-21 Tom Tromey <tom@tromey.com>
5496
5497 * tracepoint.c: Fix includes.
5498 * remote-utils.c: Fix includes.
5499 * linux-x86-low.c: Fix includes.
5500
5501 2019-01-01 Joel Brobecker <brobecker@adacore.com>
5502
5503 * gdbreplay.c (gdbreplay_version): Update copyright year in
5504 version message.
5505 * server.c (gdbserver_version): Likewise.
5506
5507 2018-12-05 Alan Hayward <alan.hayward@arm.com>
5508
5509 * linux-low.c (add_lwp): Switch ordering.
5510
5511 2018-11-29 Tom Tromey <tom@tromey.com>
5512
5513 * win32-low.c (win32_join): Take pid, not process.
5514 * target.h (struct target_ops) <join>: Change argument type.
5515 (join_inferior): Change argument name.
5516 * spu-low.c (spu_join): Take pid, not process.
5517 * server.c (handle_detach): Preserve pid before destroying
5518 process.
5519 * lynx-low.c (lynx_join): Take pid, not process.
5520 * linux-low.c (linux_join): Take pid, not process.
5521
5522 2018-11-23 Alan Hayward <alan.hayward@arm.com>
5523
5524 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
5525 (aarch64_cannot_fetch_register): Likewise.
5526 (struct linux_target_ops): Update references.
5527
5528 2018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5529
5530 * linux-ppc-low.c: Include nat/linux-ptrace.h.
5531
5532 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5533
5534 * configure.srv (ipa_ppc_linux_regobj): Add
5535 powerpc-isa207-htm-vsx32l-ipa.o and
5536 powerpc-isa207-htm-vsx64l-ipa.o.
5537 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
5538 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
5539 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
5540 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
5541 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
5542 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
5543 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
5544 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
5545 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5546 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
5547 (init_registers_powerpc_isa207_htm_vsx32l)
5548 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
5549 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
5550 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
5551 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
5552 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
5553 (ppc_store_tm_ctarregset): New functions.
5554 (ppc_regsets): Add entries for HTM regsets.
5555 (ppc_arch_setup): Set htm in features struct when needed. Set
5556 sizes for the HTM regsets.
5557 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
5558 (initialize_low_arch): Call
5559 init_registers_powerpc_isa207_htm_vsx32l and
5560 init_registers_powerpc_isa207_htm_vsx64l.
5561 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5562 PPC_TDESC_ISA207_HTM_VSX.
5563 (initialize_low_tracepoint): Call
5564 init_registers_powerpc_isa207_htm_vsx32l and
5565 init_registers_powerpc_isa207_htm_vsx64l.
5566
5567 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5568
5569 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
5570 rs6000/power-linux-pmu.xml to srv_xmlfiles.
5571 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
5572 (ppc_store_pmuregset): New functions.
5573 (ppc_regsets): Add entries for ebb and pmu regsets.
5574 (ppc_arch_setup): Set isa207 in features struct if the ebb and
5575 pmu regsets are available. Set sizes for these regsets.
5576
5577 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5578
5579 * configure.srv (ipa_ppc_linux_regobj): Add
5580 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
5581 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
5582 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
5583 rs6000/powerpc-isa207-vsx32l.xml, and
5584 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
5585 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5586 <PPC_TDESC_ISA207_VSX>: New enum value.
5587 (init_registers_powerpc_isa207_vsx32l): Declare.
5588 (init_registers_powerpc_isa207_vsx64l): Declare.
5589 * linux-ppc-low.c (ppc_fill_tarregset): New function.
5590 (ppc_store_tarregset): New function.
5591 (ppc_regsets): Add entry for the TAR regset.
5592 (ppc_arch_setup): Set isa207 in features struct when needed. Set
5593 size for the TAR regsets.
5594 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
5595 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
5596 and init_registers_powerpc_isa207_vsx64l.
5597 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
5598 (initialize_low_tracepoint): Call
5599 init_registers_powerpc_isa207_vsx32l and
5600 init_registers_powerpc_isa207_vsx64l.
5601
5602 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5603 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5604
5605 * configure.srv (ipa_ppc_linux_regobj): Add
5606 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
5607 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
5608 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
5609 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
5610 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
5611 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
5612 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
5613 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5614 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
5615 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
5616 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
5617 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
5618 (ppc_hwcap): Add comment.
5619 (ppc_hwcap2): New global.
5620 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
5621 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
5622 (ppc_regsets): Add entries for the DSCR and PPR regsets.
5623 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
5624 when needed. Set sizes for the the DSCR and PPR regsets.
5625 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
5626 (initialize_low_arch): Call
5627 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5628 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5629 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5630 PPC_TDESC_ISA205_PPR_DSCR_VSX.
5631 (initialize_low_tracepoint): Call
5632 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5633 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5634
5635 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5636
5637 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
5638
5639 2018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
5640 Simon Marchi <simark@simark.ca>
5641
5642 * acinclude.m4: Include "../selftest.m4".
5643 * configure: Regenerate.
5644 * configure.ac: Use "GDB_AC_SELFTEST".
5645 * configure.srv: Use "$enable_unittests" instead of
5646 "$development" when checking whether unit tests have been
5647 enabled.
5648 * server.c (captured_main): Update message informing that
5649 selftests have been disabled.
5650
5651 2018-10-04 Tom Tromey <tom@tromey.com>
5652
5653 * configure: Rebuild.
5654
5655 2018-10-04 Tom Tromey <tom@tromey.com>
5656
5657 * server.c (handle_status): Rename inner "thread".
5658 (process_serial_event): Declare "res" in 'm' case.
5659 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
5660 (iterate_over_lwps): Rename inner "thread".
5661 (linux_qxfer_libraries_svr4): Rename inner "len".
5662 * gdbthread.h (find_thread_in_random): Rename inner "thread".
5663
5664 2018-10-01 Gary Benson <gbenson@redhat.com>
5665
5666 * gdb_proc_service.h: Moved common code to
5667 common/gdb_proc_service.h.
5668
5669 2018-10-01 Gary Benson <gbenson@redhat.com>
5670
5671 * gdb_proc_service.h: Synchronize comments and whitespace with
5672 GDB's version of this file.
5673
5674 2018-09-25 Tom Tromey <tom@tromey.com>
5675
5676 * configure: Rebuild.
5677 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
5678
5679 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5680
5681 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
5682 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
5683 ($(IPA_LIB)): Sort IPA_OBJS.
5684
5685 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5686
5687 * Makefile.in: Remove references to $(ADD_DEPS).
5688
5689 2018-09-16 Tom Tromey <tom@tromey.com>
5690
5691 * remote-utils.c (remote_open): Use GNU style for metasyntactic
5692 variables.
5693 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
5694 variables.
5695
5696 2018-09-05 Tom Tromey <tom@tromey.com>
5697
5698 * configure: Rebuild.
5699
5700 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
5701
5702 PR build/23399
5703 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
5704
5705 2018-08-27 Tom Tromey <tom@tromey.com>
5706
5707 PR build/23087:
5708 * configure: Rebuild.
5709
5710 2018-08-27 Tom Tromey <tom@tromey.com>
5711
5712 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
5713 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
5714 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
5715 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
5716 (s390x_emit_stack_adjust): Add casts to unsigned char.
5717
5718 2018-08-22 Simon Marchi <simon.marchi@ericsson.com>
5719
5720 PR gdb/23374
5721 PR gdb/23375
5722 * server.h (struct client_state) <disable_randomization>:
5723 Initialize to 1.
5724
5725 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5726
5727 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
5728 variable.
5729 (mips_supply_ptrace_register): Likewise.
5730
5731 2018-07-22 Tom Tromey <tom@tromey.com>
5732
5733 * configure: Rebuild.
5734
5735 2018-07-22 Tom Tromey <tom@tromey.com>
5736
5737 * win32-low.c (win32_create_inferior): Remove unused variables.
5738 * gdbreplay.c (remote_open): Remove unused variable.
5739 * remote-utils.c (remote_prepare): Remove unused variable.
5740 * x86-tdesc.h (X86_TDESC_H): Define.
5741 (amd64_expedite_regs): Define conditionally.
5742 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
5743 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
5744 * remote-utils.c (readchar): Remove unused variable.
5745
5746 2018-07-13 Pedro Alves <palves@redhat.com>
5747
5748 * linux-low.c (linux_kill): Change parameter to process_info
5749 pointer instead of pid. Adjust.
5750 * lynx-low.c (lynx_kill): Likewise.
5751 * nto-low.c (nto_kill): Likewise.
5752 * spu-low.c (spu_kill): Likewise.
5753 * win32-low.c (win32_kill): Likewise.
5754 * server.c (handle_v_kill, kill_inferior_callback)
5755 (detach_or_kill_for_exit): Adjust.
5756 * target.c (kill_inferior): Change parameter to process_info
5757 pointer instead of pid. Adjust.
5758 * target.h (struct target_ops) <kill>: Change parameter to
5759 process_info pointer instead of pid. Adjust all implementations
5760 and callers.
5761 (kill_inferior): Likewise.
5762
5763 2018-07-13 Pedro Alves <palves@redhat.com>
5764
5765 * linux-low.c (linux_detach, linux_join): Change parameter to
5766 process_info pointer instead of pid. Adjust.
5767 * lynx-low.c (lynx_detach, lynx_join): Likewise.
5768 * nto-low.c (nto_detach): Likewise.
5769 * spu-low.c (spu_detach, spu_join): Likewise.
5770 * win32-low.c (win32_detach, win32_join): Likewise.
5771 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
5772 * target.h (struct target_ops) <detach, join>: Change parameter to
5773 process_info pointer instead of pid. Adjust all implementations
5774 and callers.
5775 (detach_inferior, join_inferior): Rename 'pid' parameter to
5776 'proc'.
5777
5778 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
5779 Jan Kratochvil <jan.kratochvil@redhat.com>
5780 Paul Fertser <fercerpav@gmail.com>
5781 Tsutomu Seki <sekiriki@gmail.com>
5782
5783 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
5784 (OBS): Add 'common/netstuff.o'.
5785 (GDBREPLAY_OBS): Likewise.
5786 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
5787 (remote_open): Implement support for IPv6
5788 connections.
5789 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
5790 and 'wspiapi.h'.
5791 (handle_accept_event): Accept connections from IPv6 sources.
5792 (remote_prepare): Handle IPv6-style hostnames; implement
5793 support for IPv6 connections.
5794 (remote_open): Implement support for printing connections from
5795 IPv6 sources.
5796
5797 2018-07-11 Pedro Alves <palves@redhat.com>
5798
5799 PR gdb/23377
5800 * mem-break.c (any_persistent_commands): Add process_info
5801 parameter and use it instead of relying on the current process.
5802 Change return type to bool.
5803 * mem-break.h (any_persistent_commands): Add process_info
5804 parameter and change return type to bool.
5805 * server.c (handle_detach): Remove require_running_or_return call.
5806 Look up the process_info for the process we're about to detach.
5807 If not found, return back error to GDB. Adjust
5808 any_persistent_commands call to pass down a process pointer.
5809
5810 2018-07-11 Pedro Alves <palves@redhat.com>
5811
5812 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
5813 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
5814 instead of collect_register_by_name.
5815 * regcache.c (regcache_raw_get_unsigned_by_name): New.
5816 * regcache.h (regcache_raw_get_unsigned_by_name): New.
5817
5818 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
5819 Pedro Alves <palves@redhat.com>
5820
5821 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
5822
5823 2018-07-03 Tom Tromey <tom@tromey.com>
5824
5825 * linux-low.c: Update.
5826 * lynx-low.c: Update.
5827 * mem-break.c: Update.
5828 * nto-low.c: Update.
5829 * remote-utils.c: Update.
5830 * server.c: Update.
5831 * spu-low.c: Update.
5832 * target.c: Update.
5833 * win32-low.c: Update.
5834
5835 2018-07-03 Tom Tromey <tom@tromey.com>
5836
5837 * server.c: Update.
5838
5839 2018-07-03 Tom Tromey <tom@tromey.com>
5840
5841 * linux-low.c: Update.
5842
5843 2018-07-03 Tom Tromey <tom@tromey.com>
5844
5845 * target.c: Update.
5846
5847 2018-07-03 Tom Tromey <tom@tromey.com>
5848
5849 * linux-low.c: Update.
5850 * linux-mips-low.c: Update.
5851 * lynx-low.c: Update.
5852 * nto-low.c: Update.
5853 * remote-utils.c: Update.
5854 * server.c: Update.
5855 * spu-low.c: Update.
5856 * target.c: Update.
5857 * thread-db.c: Update.
5858
5859 2018-07-03 Tom Tromey <tom@tromey.com>
5860
5861 * linux-low.c: Update.
5862 * linux-mips-low.c: Update.
5863 * lynx-low.c: Update.
5864 * mem-break.c: Update.
5865 * nto-low.c: Update.
5866 * remote-utils.c: Update.
5867 * server.c: Update.
5868 * spu-low.c: Update.
5869 * target.c: Update.
5870 * tracepoint.c: Update.
5871
5872 2018-07-03 Tom Tromey <tom@tromey.com>
5873
5874 * linux-low.c: Update.
5875 * linux-ppc-low.c: Update.
5876 * linux-x86-low.c: Update.
5877 * proc-service.c: Update.
5878 * server.c: Update.
5879 * spu-low.c: Update.
5880 * thread-db.c: Update.
5881 * win32-low.c: Update.
5882
5883 2018-07-03 Tom Tromey <tom@tromey.com>
5884
5885 * linux-low.c: Update.
5886 * lynx-low.c: Update.
5887 * nto-low.c: Update.
5888 * remote-utils.c: Update.
5889 * spu-low.c: Update.
5890 * thread-db.c: Update.
5891 * win32-low.c: Update.
5892
5893 2018-06-29 Joel Brobecker <brobecker@adacore.com>
5894
5895 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
5896 parameter in call to 'amd64_create_target_description'.
5897
5898 2018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5899
5900 * x86-tdesc.h: Remove executable permission flag.
5901
5902 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5903
5904 * configure.ac: Remove AC_PREREQ, add missing quoting.
5905 * configure: Re-generate.
5906 * config.in: Re-generate.
5907 * aclocal.m4: Re-generate.
5908
5909 2018-06-18 Simon Marchi <simon.marchi@ericsson.com>
5910
5911 * tracepoint.h (current_traceframe): Remove declaration.
5912
5913 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5914
5915 * linux-aarch64-low.c (is_sve_tdesc): New function.
5916 (aarch64_sve_regs_copy_to_regcache): Likewise.
5917 (aarch64_sve_regs_copy_from_regcache): Likewise.
5918 (aarch64_regs_info): Add SVE checks.
5919 (initialize_low_arch): Initialize SVE.
5920
5921 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5922
5923 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
5924
5925 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5926
5927 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
5928 (initialize_low_tracepoint): Likewise
5929 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
5930 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
5931 param.
5932 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
5933 checks.
5934 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
5935
5936 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5937
5938 * server.h (PBUFSIZ): Increase size
5939
5940 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5941
5942 * regcache.c (regcache::raw_compare): New function.
5943 * regcache.h (regcache::raw_compare): New declaration.
5944
5945 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5946
5947 * regcache.c (new_register_cache): Use new.
5948 (free_register_cache): Use delete.
5949 (register_data): Use const.
5950 (supply_register): Move body inside regcache.
5951 (regcache::raw_supply): New override function.
5952 (collect_register): Move body inside regcache.
5953 (regcache::raw_collect): New override function.
5954 (regcache::get_register_status): New override function.
5955 * regcache.h (struct regcache): Inherit from reg_buffer_common.
5956
5957 2018-06-09 Tom Tromey <tom@tromey.com>
5958
5959 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
5960 declare queue.
5961 (event_queue): Use std::queue.
5962 (gdb_event_xfree): Remove.
5963 (initialize_event_loop, process_event, wait_for_event): Update.
5964
5965 2018-06-08 Stan Cox <scox@redhat.com>
5966
5967 * win32-low.c (win32_create_inferior): last_ptid and last_status
5968 moved to client_state.
5969
5970 2018-06-08 Pedro Alves <palves@redhat.com>
5971
5972 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
5973 common/common-exceptions.o, common/common-utils.o,
5974 common/errors.o, common/print-utils.o and utils.o.
5975 * gdbreplay.c: Include "common-defs.h" instead of the two
5976 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
5977 string.h or alloca.h.
5978 (perror_with_name): Delete.
5979 (remote_open): Use xstrdup instead of strdup.
5980 (main): Rename to ...
5981 (captured_main): ... this.
5982 (main): New.
5983
5984 2018-06-08 Tom Tromey <tom@tromey.com>
5985
5986 * linux-low.c (linux_low_read_btrace): Update.
5987
5988 2018-06-04 Stan Cox <scox@redhat.com>
5989
5990 * server.h (struct client_state): New.
5991 * server.c (cont_thread, general_thread, multi_process)
5992 (report_fork_events, report_vfork_events, report_exec_events)
5993 (report_thread_events, swbreak_feature, hwbreak_feature)
5994 (vCont_supported, disable_randomization, pass_signals)
5995 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
5996 Moved to client_state.
5997 * remote-utils.c (remote_debug, noack_mode)
5998 (transport_is_reliable): Moved to client_state.
5999 * tracepoint.c (current_traceframe): Moved to client_state.
6000
6001 Update all callers.
6002 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
6003 linux-low.c, remote-utils.h, target.c: Use client_state.
6004
6005 2018-05-31 Alan Hayward <alan.hayward@arm.com>
6006
6007 * configure.srv: Add new c/h file.
6008
6009 2018-05-31 Alan Hayward <alan.hayward@arm.com>
6010
6011 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
6012 null VQ.
6013
6014 2018-05-25 Maciej W. Rozycki <macro@mips.com>
6015
6016 * gdb.arch/mips-fpregset-core.exp: New test.
6017 * gdb.arch/mips-fpregset-core.c: New test source.
6018
6019 2018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
6020
6021 PR server/23198
6022 * hostio.c (require_int): Do not report overflow for integers
6023 between 0xfffffff and 0x7fffffff.
6024
6025 2018-05-22 Maciej W. Rozycki <macro@mips.com>
6026
6027 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
6028 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
6029 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
6030 functions.
6031 (the_low_target): Wire them.
6032
6033 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6034
6035 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
6036 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
6037 mode. Call collect_register_by_name with vscr using
6038 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
6039 (ppc_store_vrregset): Add and set vscr_offset variable as in
6040 ppc_fill_vrregset. Call supply_register_by_name with vscr using
6041 vscr_offset.
6042
6043 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6044
6045 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
6046 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
6047 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
6048
6049 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6050
6051 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
6052 (ppc_store_vsxregset): Likewise.
6053 (ppc_fill_vrregset): Likewise.
6054 (ppc_store_vrregset): Likewise.
6055 (ppc_fill_evrregset): Likewise.
6056 (ppc_store_evrregset): Likewise.
6057 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
6058 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
6059 needed.
6060
6061 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6062
6063 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
6064 wordsize of the inferior. Call ppc_linux_target_wordsize.
6065
6066 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6067
6068 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
6069 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
6070 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
6071 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
6072 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
6073 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
6074 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
6075 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
6076 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
6077 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
6078 (tdesc_powerpc_e500l): Remove.
6079 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
6080 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
6081 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
6082 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
6083 linux-ppc-tdesc.h.
6084 (ppc_arch_setup): Remove target description matching code. Fill a
6085 ppc_linux_features struct and call ppc_linux_match_description
6086 with it.
6087
6088 2018-05-22 Maciej W. Rozycki <macro@mips.com>
6089
6090 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
6091 width of the requested register exceeds the width of the
6092 `ptrace' data type.
6093 (mips_cannot_store_register): Likewise.
6094
6095 2018-05-21 Maciej W. Rozycki <macro@mips.com>
6096
6097 * linux-mips-low.c (mips_fetch_register): New function. Update
6098 preceding comment.
6099 (mips_store_gregset): Supply 0 rather than $restart for $zero.
6100 (the_low_target): Wire `mips_fetch_register'.
6101
6102 2018-05-10 Joel Brobecker <brobecker@adacore.com>
6103
6104 * lynx-i386-low.c (LYNXOS_178): New macro.
6105 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
6106 the layout on LynxOS-178.
6107 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
6108 handle floating point registers that are not supported by
6109 LynxOS-178.
6110
6111 2018-05-10 Tom Tromey <tom@tromey.com>
6112
6113 * configure: Rebuild.
6114
6115 2018-05-10 Joel Brobecker <brobecker@adacore.com>
6116
6117 PR server/23158:
6118 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
6119 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
6120 Use it to set the expedite_regs field in the given tdesc.
6121 * x86-tdesc.h: New file.
6122 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
6123 Adjust following the addition of the new expedite_regs parameter
6124 to init_target_desc.
6125 * linux-tic6x-low.c (tic6x_read_description): Likewise.
6126 * linux-x86-tdesc.c: #include "x86-tdesc.h".
6127 (i386_linux_read_description, amd64_linux_read_description):
6128 Adjust following the addition of the new expedite_regs parameter
6129 to init_target_desc.
6130 * lynx-i386-low.c: #include "x86-tdesc.h".
6131 (lynx_i386_arch_setup): Adjust following the addition of the new
6132 expedite_regs parameter to init_target_desc.
6133 * nto-x86-low.c: #include "x86-tdesc.h".
6134 (nto_x86_arch_setup): Adjust following the addition of the new
6135 expedite_regs parameter to init_target_desc.
6136 * win32-i386-low.c: #include "x86-tdesc.h".
6137 (i386_arch_setup): Adjust following the addition of the new
6138 expedite_regs parameter to init_target_desc.
6139
6140 2018-05-10 Joel Brobecker <brobecker@adacore.com>
6141
6142 PR server/23158:
6143 * win32-low.c (win32_create_inferior): Add call to my_wait
6144 setting last_status global.
6145
6146 2018-05-10 Joel Brobecker <brobecker@adacore.com>
6147
6148 PR server/23158:
6149 * win32-low.c (create_process): Only call gdb_tilde_expand if
6150 inferior_cwd is not NULL.
6151
6152 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
6153
6154 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
6155 registers to the cache if their values have changed.
6156 (i387_xsave_to_cache): Provide default values for x87 control
6157 registers when these features are available, but disabled.
6158 * regcache.c (supply_register_by_name_zeroed): New function.
6159 * regcache.h (supply_register_by_name_zeroed): Declare new
6160 function.
6161
6162 2018-05-07 Tom Tromey <tom@tromey.com>
6163
6164 * configure: Rebuild.
6165
6166 2018-05-04 Tom Tromey <tom@tromey.com>
6167
6168 * configure: Rebuild.
6169
6170 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6171 Pedro Alves <palves@redhat.com>
6172
6173 * linux-aarch64-low.c (aarch64_stopped_data_address):
6174 Likewise.
6175
6176 2018-04-27 Tom Tromey <tom@tromey.com>
6177
6178 * configure: Rebuild.
6179
6180 2018-04-23 Tom Tromey <tom@tromey.com>
6181
6182 * configure: Rebuild.
6183
6184 2018-04-19 Simon Marchi <simon.marchi@ericsson.com>
6185
6186 * Makefile.in (depcomp): Add "..".
6187 (all_deps_files): New and use it.
6188
6189 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6190
6191 * configure.srv (aarch64*-*-linux*): Don't include xml.
6192 (i[34567]86-*-cygwin*): Likewise.
6193 (i[34567]86-*-linux*): Likewise.
6194 (i[34567]86-*-lynxos*): Likewise.
6195 (i[34567]86-*-mingw32ce*): Likewise.
6196 (i[34567]86-*-mingw*): Likewise.
6197 (i[34567]86-*-nto*): Likewise.
6198 (tic6x-*-uclinux): Likewise.
6199 (x86_64-*-linux*): Likewise.
6200 (x86_64-*-mingw*): Likewise.
6201 (x86_64-*-cygwin*): Likewise.
6202
6203 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6204
6205 * tdesc.c: Remove xml parameter.
6206
6207 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6208
6209 * server.c (get_features_xml): Remove cast.
6210 * tdesc.c (void target_desc::accept): Fill in function.
6211 (tdesc_get_features_xml): Remove old xml creation.
6212 (print_xml_feature::visit_pre): Add xml vistor.
6213 * tdesc.h (struct target_desc): Make xmltarget mutable.
6214 (tdesc_get_features_xml): Remove declaration.
6215
6216 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6217
6218 * tdesc.c (tdesc_architecture_name): Add new function.
6219 (tdesc_osabi_name): Likewise.
6220 (tdesc_get_features_xml): Use new functions.
6221
6222 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6223
6224 * tdesc.c (tdesc_create_flags): Remove.
6225 (tdesc_add_flag): Likewise.
6226 (tdesc_named_type): Likewise.
6227 (tdesc_create_union): Likewise.
6228 (tdesc_create_struct): Likewise.
6229 (tdesc_create_vector): Likewise.
6230 (tdesc_add_bitfield): Likewise.
6231 (tdesc_add_field): Likewise.
6232 (tdesc_set_struct_size): Likewise.
6233
6234 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6235
6236 * tdesc.c (~target_desc): Remove implictly deleted items.
6237 (init_target_desc): Iterate all features.
6238 (tdesc_get_features_xml): Use vector.
6239 (tdesc_create_feature): Create feature.
6240 * tdesc.h (tdesc_feature) Remove
6241 (target_desc): Add features.
6242
6243 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6244
6245 * Makefile.in: Add common/tdesc.c
6246 * tdesc.c (init_target_desc): init all reg_defs from register
6247 vector.
6248 (tdesc_create_reg): Create tdesc_reg.
6249 * tdesc.h (tdesc_feature): Add register vector.
6250
6251 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
6252
6253 * tdesc.h (struct target_desc) <features>: Change type to
6254 std::vector<std::string>.
6255 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
6256 changes.
6257 (tdesc_get_features_xml): Likewise.
6258 (tdesc_create_feature): Likewise.
6259
6260 2018-03-26 Alan Hayward <alan.hayward@arm.com>
6261
6262 * regcache.c (find_register_by_number): Return a ref.
6263 (find_regno): Use references.
6264 (register_size): Likewise.
6265 (register_data): Likewise.
6266 * tdesc.c (target_desc::~target_desc): Remove free calls.
6267 (target_desc::operator==): Use std::vector compare.
6268 (init_target_desc): Use reference.
6269 (tdesc_create_reg): Use reg constructors.
6270 * tdesc.h (struct target_desc): Replace pointer with object.
6271
6272 2018-03-23 Alan Hayward <alan.hayward@arm.com>
6273
6274 * regcache.c (find_register_by_number): Make static.
6275 (find_regno): Use find_register_by_number
6276 * regcache.h (struct reg): Remove declaration.
6277
6278 2018-03-23 Alan Hayward <alan.hayward@arm.com>
6279
6280 * tdesc.c (target_desc::~target_desc): Move to here.
6281 (target_desc::operator==): Likewise.
6282 * tdesc.h (target_desc::~target_desc): Move from here.
6283 (target_desc::operator==): Likewise.
6284
6285 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
6286
6287 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
6288
6289 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6290
6291 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
6292 S390_TDESC_GS.
6293 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
6294 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
6295 and init_registers_s390_gs_linux64.
6296
6297 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6298
6299 * linux-s390-low.c (s390_fill_gs): Remove function.
6300 (s390_fill_gsbc): Remove function.
6301 (s390_regsets): Set fill functions for the guarded storage regsets
6302 to NULL.
6303
6304 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6305
6306 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
6307 the word size. Add comment.
6308 (s390_get_wordsize): New function.
6309 (s390_arch_setup): No longer select a temporary tdesc to fetch the
6310 pswm with it. Instead, use s390_get_wordsize to determine the
6311 word size first and derive the correct tdesc from that directly.
6312
6313 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
6314
6315 * Makefile.in: Include silent-rules.mk.
6316 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
6317 (COMPILE): Add ECHO_CXX.
6318 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
6319 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
6320 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
6321 (version-generated.c): Add ECHO_GEN.
6322 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
6323 (IPAGENT_COMPILE): Add ECHO_CXX.
6324 (%-generated.c): Add ECHO_REGDAT.
6325
6326 2018-03-14 Tom Tromey <tom@tromey.com>
6327
6328 PR cli/14977:
6329 * ax.c (ax_printf): Special case for NULL.
6330
6331 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
6332
6333 * linux-low.c (linux_qxfer_libraries_svr4): Use
6334 xml_escape_text_append.
6335
6336 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
6337
6338 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
6339
6340 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
6341
6342 * server.c (handle_general_set): Remove unnecessary xstrdup.
6343
6344 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
6345
6346 * server.c (parse_debug_format_options): Adjust to
6347 delim_string_to_char_ptr_vec changes.
6348 * thread-db.c (thread_db_load_search): Adjust to
6349 dirnames_to_char_ptr_vec changes.
6350
6351 2018-03-01 Markus Metzger <markus.t.metzger@intel.com>
6352
6353 * target.h (target_enable_btrace, target_disable_btrace)
6354 (target_read_btrace, target_read_btrace_conf): Turn macro into
6355 inline function. Throw error if target method is not defined.
6356 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
6357 check for btrace target method. Be prepared to handle exceptions
6358 from btrace target methods.
6359
6360 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6361
6362 * server.c (captured_main): Change order of error message printed
6363 when the current working directory cannot be found.
6364
6365 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6366
6367 * server.c: Include "filenames.h" and "pathstuff.h".
6368 (program_name): Delete variable.
6369 (program_path): New anonymous class.
6370 (get_exec_wrapper): Use "program_path" instead of
6371 "program_name".
6372 (handle_v_run): Likewise.
6373 (captured_main): Likewise.
6374 (process_serial_event): Likewise.
6375
6376 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6377
6378 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
6379 (OBJS): Add "pathstuff.o".
6380 * server.c (current_directory): New global variable.
6381 (captured_main): Initialize "current_directory".
6382
6383 2018-02-26 Alan Hayward <alan.hayward@arm.com>
6384
6385 * tdesc.c: Use common/tdesc.h.
6386 * tdesc.h: Likewise.
6387
6388 2018-02-20 Alan Hayward <alan.hayward@arm.com>
6389 Simon Marchi <simon.marchi@ericsson.com>
6390
6391 * Makefile.in: Switch order of make rules.
6392
6393 2018-02-19 Alan Hayward <alan.hayward@arm.com>
6394
6395 * Makefile.in: Add common directory in build.
6396 * configure.ac: Add common reference.
6397 * configure: Regenerate.
6398
6399 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6400
6401 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
6402 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
6403 * spu-low.c (spu_target_ops): Likewise.
6404 * win32-low.c (win32_target_ops): Likewise.
6405 * server.c (supported_btrace_packets): Report packets unconditionally.
6406 * target.h (target_ops) <supports_btrace>: Remove.
6407 (target_supports_btrace): Remove.
6408
6409 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6410
6411 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
6412 (handle_btrace_disable): Change return type to void. Use exceptions
6413 to report errors.
6414 (handle_btrace_general_set): Catch exception and copy message to
6415 return message.
6416
6417 2018-02-08 Tom Tromey <tom@tromey.com>
6418
6419 * linux-low.c (install_software_single_step_breakpoints): Use
6420 make_scoped_restore.
6421 * inferiors.c (make_cleanup_restore_current_thread): Remove.
6422 (do_restore_current_thread_cleanup): Remove.
6423 * gdbthread.h (make_cleanup_restore_current_thread): Don't
6424 declare.
6425
6426 2018-02-08 Tom Tromey <tom@tromey.com>
6427
6428 * mem-break.c (set_raw_breakpoint_at): Use
6429 gdb::unique_xmalloc_ptr.
6430
6431 2018-01-30 Pedro Alves <palves@redhat.com>
6432
6433 PR gdb/13211
6434 * target.c (target_terminal::terminal_state): Rename to ...
6435 (target_terminal::m_terminal_state): ... this.
6436
6437 2018-01-19 James Clarke <jrtc27@jrtc27.com>
6438
6439 * linux-low.c (handle_extended_wait): Surround call to
6440 thread_db_notice_clone with #ifdef USE_THREAD_DB.
6441
6442 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
6443
6444 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
6445 linux_ptrace_attach_fail_reason_string now returning an
6446 std::string.
6447 (linux_attach): Likewise.
6448 * thread-db.c (attach_thread): Likewise.
6449
6450 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
6451
6452 PR gdb/21559
6453 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
6454 checking for fs_base/gs_base fields in struct user_regs_struct.
6455 * configure: Regenerate.
6456
6457 2018-01-16 Yao Qi <yao.qi@linaro.org>
6458
6459 PR gdb/18749
6460 * linux-low.c (fetch_register): Call supply_register instead of
6461 error.
6462
6463 2018-01-08 Yao Qi <yao.qi@linaro.org>
6464 Simon Marchi <simon.marchi@ericsson.com>
6465
6466 * Makefile.in (OBS): Remove selftest.o.
6467 * configure.ac: Set srv_selftest_objs if $development is true.
6468 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
6469 * configure: Re-generated.
6470 * server.c (captured_main): Wrap variable selftest_filter with
6471 GDB_SELF_TEST.
6472
6473 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
6474
6475 * server.c (parse_debug_format_options): Return std::string.
6476 (handle_monitor_command, captured_main): Adjust.
6477
6478 2018-01-05 Pedro Alves <palves@redhat.com>
6479
6480 PR gdb/18653
6481 * server.c (captured_main): Pass quiet=false to
6482 save_original_signals_state.
6483
6484 2018-01-01 Joel Brobecker <brobecker@adacore.com>
6485
6486 * gdbreplay.c (gdbreplay_version): Update copyright year in
6487 version message.
6488 * server.c (gdbserver_version): Likewise.
6489
6490 2017-12-08 Tom Tromey <tom@tromey.com>
6491
6492 * ax.c (ax_printf): Update.
6493
6494 2017-12-07 Yao Qi <yao.qi@linaro.org>
6495
6496 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
6497 aarch64_linux_read_description.
6498 * linux-amd64-ipa.c (idx2mask): New array.
6499 (get_ipa_tdesc): Move idx2mask out.
6500 (initialize_low_tracepoint): Initialize target descriptions.
6501 * linux-i386-ipa.c (idx2mask): New array.
6502 (get_ipa_tdesc): Move idx2mask out.
6503 (initialize_low_tracepoint): Initialize target descriptions.
6504
6505 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
6506
6507 * tdesc.c (struct tdesc_type): Change return type.
6508 (tdesc_add_flag): Change parameter type.
6509 (tdesc_add_bitfield): Likewise.
6510 (tdesc_add_field): Likewise.
6511 (tdesc_set_struct_size): Likewise.
6512
6513 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
6514
6515 * regcache.c (registers_to_string): Remove unused variable.
6516
6517 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6518
6519 * inferiors.c (for_each_inferior_with_data): Remove.
6520 * inferiors.h (for_each_inferior_with_data): Remove.
6521 * server.c (handle_qxfer_threads_worker): Change parameter type.
6522 (handle_qxfer_threads_proper): Use for_each_thread.
6523
6524 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6525
6526 * inferiors.c (for_each_inferior): Remove.
6527 (clear_inferiors): Use for_each_thread.
6528 * inferiors.h (for_each_inferior): Remove.
6529 * linux-low.c (linux_wait_for_event_filtered): Use
6530 for_each_thread.
6531 (linux_stabilize_threads): Likewise.
6532 * regcache.c (regcache_release): Likewise.
6533 * server.c (gdb_wants_all_threads_stopped): Likewise.
6534 (clear_pending_status_callback): Remove.
6535 (handle_status): Use for_each_thread.
6536 (captured_main): Likewise.
6537 * win32-low.c (child_init_thread_list): Likewise.
6538 (win32_clear_inferiors): Likewise.
6539 (fake_breakpoint_event): Likewise.
6540
6541 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6542
6543 * inferiors.h (find_inferior): Remove.
6544 * inferiors.c (find_inferior): Remove.
6545
6546 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6547
6548 * linux-low.c (resume_status_pending_p): Update comment.
6549 (need_step_over_p): Update comment.
6550
6551 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6552
6553 * linux-low.c (proceed_one_lwp): Return void, change parameter
6554 type.
6555 (unsuspend_and_proceed_one_lwp): Likewise.
6556 (proceed_all_lwps): Use for_each_thread.
6557 (unstop_all_lwps): Likewise.
6558
6559 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6560
6561 * linux-low.c (linux_resume_one_thread): Return void, take
6562 parameter directly.
6563 (linux_resume): Use for_each_thread.
6564
6565 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6566
6567 * linux-low.c (send_sigstop_callback): Return void, change
6568 parameter type. Rename to...
6569 (send_sigstop): ... this.
6570 (suspend_and_send_sigstop_callback): Return void, change parameter
6571 type. Rename to...
6572 (suspend_and_send_sigstop): ... this.
6573 (stop_all_lwps): Use for_each_thread.
6574
6575 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6576
6577 * linux-low.c (lwp_running): Return bool, remove unused
6578 argument.
6579 (linux_stabilize_threads): Use find_thread.
6580
6581 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6582
6583 * linux-low.c (select_singlestep_lwp_callback): Remove.
6584 (count_events_callback): Remove.
6585 (select_event_lwp_callback): Remove.
6586 (select_event_lwp): Use find_thread/for_each_thread.
6587
6588 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6589
6590 * linux-low.c (not_stopped_callback): Return bool, take filter
6591 argument directly.
6592 (linux_wait_for_event_filtered): Use find_thread.
6593 (linux_wait_1): Likewise.
6594
6595 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6596
6597 * linux-low.c (same_lwp): Remove.
6598 (find_lwp_pid): Use find_thread.
6599
6600 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6601
6602 * linux-low.c (delete_lwp_callback): Remove.
6603 (linux_mourn): Use for_each_thread.
6604
6605 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6606
6607 * linux-low.c (linux_detach_lwp_callback): Return void, remove
6608 args parameter, don't check for pid.
6609 (linux_detach): Use for_each_thread.
6610
6611 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6612
6613 * linux-low.c (struct counter): Remove.
6614 (second_thread_of_pid_p): Remove.
6615 (last_thread_of_process_p): Use find_thread.
6616
6617 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6618
6619 * inferiors.c (find_inferior_in_random): Remove.
6620 * inferiors.h (find_inferior_in_random): Remove.
6621 * linux-low.c (status_pending_p_callback): Return bool, accept
6622 parameter ptid directly.
6623 (linux_wait_for_event_filtered): Use find_thread_in_random.
6624 (linux_wait_1): Likewise.
6625
6626 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6627
6628 * inferiors.c (find_inferior_id): Remove.
6629 (find_thread_ptid): Move implemention from find_inferior_id to
6630 here.
6631 * inferiors.h (find_inferior_id): Remove.
6632 * server.c (handle_status): Use find_thread_ptid.
6633 (process_serial_event): Likewise.
6634 * thread-db.c (find_one_thread): Likewise.
6635 (thread_db_thread_handle): Likewise.
6636 * win32-low.c (thread_rec): Likewise.
6637 (child_delete_thread): Likewise.
6638 (win32_thread_alive): Likewise.
6639 (get_child_debug_event): Likewise.
6640
6641 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6642
6643 * linux-mips-low.c (update_watch_registers_callback): Return
6644 void, remove pid_p parameter, don't check for pid.
6645 (mips_insert_point, mips_remove_point): Use for_each_thread.
6646
6647 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6648
6649 * lynx.low (lynx_delete_thread_callback): Remove.
6650 (lynx_mourn): Use for_each_thread.
6651
6652 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6653
6654 * regcache.c (regcache_invalidate_one): Remove.
6655 (regcache_invalidate_pid): use for_each_thread.
6656
6657 2017-11-26 Tom Tromey <tom@tromey.com>
6658
6659 * linux-low.c (linux_create_inferior): Update.
6660
6661 2017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
6662
6663 * spu-low.c (spu_create_inferior): Fix typo in argument name.
6664
6665 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6666
6667 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
6668 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6669 * linux-aarch64-tdesc-selftest.c: New file.
6670 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6671
6672 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6673
6674 * configure.srv: Add new file.
6675 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6676 * linux-aarch64-tdesc-selftest.c: New file.
6677 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6678
6679 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6680
6681 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
6682 * linux-aarch64-low.c (initialize_low_arch): Remove init.
6683 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
6684
6685 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6686
6687 * configure.srv: Add new files.
6688 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
6689 aarch64_linux_read_description.
6690 * linux-aarch64-low.c (aarch64_linux_read_description):
6691 Merge with aarch64_arch_setup.
6692 (aarch64_arch_setup): Call aarch64_linux_read_description.
6693 * linux-aarch64-tdesc.c: New file.
6694 * linux-aarch64-tdesc.h: New file.
6695
6696 2017-11-24 Yao Qi <yao.qi@linaro.org>
6697
6698 * configure.srv: Set $srv_regobj for tic6x-linux.
6699 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
6700 (tic6x_read_description): Move some code to tic6x_arch_setup.
6701 (tic6x_tdesc_test): New function.
6702 (initialize_low_arch): Call selftests::register_test.
6703
6704 2017-11-22 Yao Qi <yao.qi@linaro.org>
6705
6706 * remote-utils.c (prepare_resume_reply): Use memcpy.
6707
6708 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6709
6710 * linux-low.c (kill_one_lwp_callback): Return void, take
6711 argument directly, don't filter on pid.
6712 (linux_kill): Use for_each_thread.
6713
6714 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6715
6716 * linux-low.c (need_step_over_p): Return bool, remove dummy
6717 argument.
6718 (linux_resume, proceed_all_lwps): Use find_thread.
6719
6720 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6721
6722 * linux-low.c (resume_status_pending_p): Return bool, remove
6723 flag_p argument.
6724 (linux_resume): Use find_thread.
6725
6726 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6727
6728 * linux-low.c (struct thread_resume_array): Remove.
6729 (linux_set_resume_request): Return void, take arguments
6730 directly.
6731 (linux_resume): Use for_each_thread.
6732
6733 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6734
6735 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
6736 return bool, remove data argument.
6737 (linux_stabilize_threads): Use find_thread.
6738
6739 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6740
6741 * linux-low.c (unsuspend_one_lwp): Remove.
6742 (unsuspend_all_lwps): Use for_each_thread, inline code from
6743 unsuspend_one_lwp.
6744
6745 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6746
6747 * gdbthread.h (find_thread): Add overload with ptid_t filter.
6748 * linux-low.c (struct iterate_over_lwps_args): Remove.
6749 (iterate_over_lwps_filter): Remove.
6750 (iterate_over_lwps): Use find_thread.
6751
6752 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6753
6754 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
6755 (linux_handle_new_gdb_connection): Use for_each_thread, inline
6756 code from reset_lwp_ptrace_options_callback.
6757
6758 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6759
6760 * linux-arm-low.c (struct update_registers_data): Remove.
6761 (update_registers_callback): Return void, take arguments
6762 directly, don't check thread's pid.
6763 (arm_insert_point, arm_remove_point): Use for_each_thread.
6764
6765 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6766
6767 * win32-low.c (continue_one_thread): Return void, take argument
6768 directly.
6769 (child_continue): Use for_each_thread.
6770
6771 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6772
6773 * win32-i386-low.c (update_debug_registers_callback): Rename
6774 to ...
6775 (update_debug_registers): ... this, return void, remove pid_p arg.
6776 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
6777
6778 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
6779
6780 * inferiors.h (struct process_info): Add constructor, initialize
6781 fields..
6782 <syscalls_to_catch>: Change type to std::vector<int>.
6783 * inferiors.c (add_process): Allocate process_info with new.
6784 (remove_process): Free process_info with delete.
6785 * linux-low.c (handle_extended_wait): Adjust.
6786 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
6787 * server.c (handle_general_set): Adjust.
6788
6789 2017-11-16 Pedro Alves <palves@redhat.com>
6790
6791 * remote-utils.c (remote_close): Block SIGIO signals instead of
6792 uninstalling the SIGIO handler.
6793
6794 2017-11-16 Alan Hayward <alan.hayward@arm.com>
6795
6796 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
6797
6798 2017-11-16 Yao Qi <yao.qi@linaro.org>
6799
6800 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
6801 (tic6x_store_gregset): Likewise.
6802 (tic6x_usrregs_info): Move it up.
6803
6804 2017-11-15 Alan Hayward <alan.hayward@arm.com>
6805
6806 * Makefile.in: Update arch rules.
6807 * configure.srv: Explicitly mark arch/ files.
6808
6809 2017-11-13 Andreas Schwab <schwab@suse.de>
6810
6811 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
6812 function.
6813 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6814
6815 2017-11-06 Pedro Alves <palves@redhat.com>
6816
6817 * config.in, configure: Regenerate.
6818
6819 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6820
6821 * target.c (struct thread_search): Remove.
6822 (thread_search_callback): Remove.
6823 (prepare_to_access_memory): Use for_each_thread instead of
6824 find_inferior. Inline code from thread_search_callback.
6825
6826 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6827
6828 * server.c (struct visit_actioned_threads_data): Remove.
6829 (visit_actioned_threads): Change prototype to take arguments
6830 directly.
6831 (resume): Use find_thread instead of find_inferior.
6832
6833 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6834
6835 * server.c (queue_stop_reply_callback): Change prototype, return
6836 void.
6837 (find_status_pending_thread_callback): Remove.
6838 (handle_status): Replace find_inferior with find_thread and
6839 for_each_thread.
6840
6841 2017-10-25 Alan Hayward <alan.hayward@arm.com>
6842
6843 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
6844 with REGNO.
6845 (aarch64_store_gregset): Likewise.
6846 (aarch64_fill_fpregset): Likewise.
6847 (aarch64_store_fpregset): Likewise.
6848
6849 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
6850
6851 * gdbthread.h (find_thread, for_each_thread): New functions.
6852 * inferiors.c (thread_of_pid): Remove.
6853 (find_any_thread_of_pid): Use find_thread.
6854 * linux-low.c (num_lwps): Use for_each_thread.
6855
6856 2017-10-17 Yao Qi <yao.qi@linaro.org>
6857
6858 * Makefile.in: Remove one rule.
6859 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
6860
6861 2017-10-17 Yao Qi <yao.qi@linaro.org>
6862
6863 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
6864 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
6865
6866 2017-10-17 Yao Qi <yao.qi@linaro.org>
6867
6868 * configure.srv: Rename arm.o with arch/arm.o.
6869
6870 2017-10-17 Yao Qi <yao.qi@linaro.org>
6871
6872 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
6873 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
6874 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
6875 (arch-i386.o, arch-amd64.o): Remove rules.
6876 (arch/%.o): New rule.
6877 Update POSTCOMPILE and COMPILE.pre.
6878 * configure.ac: Invoke AC_CONFIG_COMMANDS.
6879 * configure: Re-generated.
6880 * configure.srv: Replace arch-i386.o with arch/i386.o.
6881 Replace arch-amd64.o with arch/amd64.o.
6882
6883 2017-10-16 Yao Qi <yao.qi@linaro.org>
6884
6885 * configure: Regenerated.
6886
6887 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6888
6889 * inferiors.h: (struct inferior_list): Remove.
6890 (struct inferior_list_entry); Remove.
6891 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
6892 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
6893 get_first_inferior): Remove.
6894 (for_each_inferior, for_each_inferior_with_data, find_inferior,
6895 find_inferior_id, find_inferior_in_random): Change signature.
6896 * inferiors.c (all_threads): Change type to
6897 std::list<thread_info *>.
6898 (get_thread): Remove macro.
6899 (find_inferior, find_inferior_id): Change signature, implement
6900 using find_thread.
6901 (find_inferior_in_random): Change signature, implement using
6902 find_thread_in_random.
6903 (for_each_inferior, for_each_inferior_with_data): Change
6904 signature, implement using for_each_thread.
6905 (add_inferior_to_list, remove_inferior): Remove.
6906 (add_thread, get_first_thread, thread_of_pid,
6907 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
6908 (get_first_inferior, one_inferior_p, clear_inferior_list):
6909 Remove.
6910 (clear_inferiors, get_thread_process): Update.
6911 * gdbthread.h: Include <list>.
6912 (struct thread_info) <entry>: Remove field.
6913 <id>: New field.
6914 (all_threads): Change type to std::list<thread_info *>.
6915 (get_first_inferior): Add doc.
6916 (find_thread, for_each_thread, find_thread_in_random): New
6917 functions.
6918 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
6919 * linux-arm-low.c (update_registers_callback): Update.
6920 * linux-low.c (second_thread_of_pid_p): Update.
6921 (kill_one_lwp_callback, linux_detach_lwp_callback,
6922 delete_lwp_callback, status_pending_p_callback, same_lwp,
6923 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
6924 iterate_over_lwps, not_stopped_callback,
6925 resume_stopped_resumed_lwps, count_events_callback,
6926 select_singlestep_lwp_callback, select_event_lwp_callback,
6927 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
6928 suspend_and_send_sigstop_callback, wait_for_sigstop,
6929 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
6930 lwp_running, linux_set_resume_request, resume_status_pending_p,
6931 need_step_over_p, start_step_over, linux_resume_one_thread,
6932 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
6933 reset_lwp_ptrace_options_callback): Update.
6934 * linux-mips-low.c (update_watch_registers_callback): Update.
6935 * regcache.c (regcache_invalidate_one, regcache_invalidate):
6936 Update.
6937 (free_register_cache_thread_one): Remove.
6938 (regcache_release): Update.
6939 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
6940 handle_qxfer_threads_worker): Update.
6941 (handle_query): Update, use list iterator.
6942 (visit_actioned_threads, handle_pending_status,
6943 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
6944 clear_pending_status_callback, set_pending_status_callback,
6945 find_status_pending_thread_callback, handle_status,
6946 process_serial_event): Update.
6947 * target.c (thread_search_callback): Update.
6948 * thread-db.c (thread_db_get_tls_address): Update.
6949 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
6950 Update.
6951 * win32-i386-low.c (update_debug_registers_callback): Update.
6952 * win32-low.c (delete_thread_info, child_delete_thread,
6953 continue_one_thread, suspend_one_thread,
6954 get_child_debug_event): Adjust.
6955
6956 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6957
6958 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
6959 * inferiors.h: Include <list>.
6960 (struct process_info) <entry>: Remove field.
6961 <pid>: New field.
6962 (pid_of): Change macro to function.
6963 (ptid_of, lwpid_of): Remove macro.
6964 (all_processes): Change type to std::list<process_info *>.
6965 (ALL_PROCESSES): Remove macro.
6966 (for_each_process, find_process): New function.
6967 * inferiors.c (all_processes): Change type to
6968 std::list<process_info *>.
6969 (find_thread_process): Adjust.
6970 (add_process): Likewise.
6971 (remove_process): Likewise.
6972 (find_process_pid): Likewise.
6973 (get_first_process): Likewise.
6974 (started_inferior_callback): Remove.
6975 (have_started_inferiors_p): Adjust.
6976 (attached_inferior_callback): Remove.
6977 (have_attached_inferiors_p): Adjust.
6978 * linux-low.c (check_zombie_leaders): Likewise.
6979 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
6980 (x86_linux_update_xmltarget): Adjust.
6981 * server.c (handle_query): Likewise.
6982 (gdb_reattached_process): Remove.
6983 (handle_status): Adjust.
6984 (kill_inferior_callback): Likewise.
6985 (detach_or_kill_inferior): Remove.
6986 (print_started_pid): Likewise.
6987 (print_attached_pid): Likewise.
6988 (detach_or_kill_for_exit): Update.
6989 (process_serial_event): Likewise.
6990 * linux-arm-low.c (arm_new_fork): Likewise.
6991
6992 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6993
6994 * dll.h: Include <list>.
6995 (struct dll_info): Add constructor.
6996 <entry>: Remove field.
6997 (all_dlls): Change type to std::list<dll_info>.
6998 * dll.c: Include <algorithm>.
6999 (get_dll): Remove macro.
7000 (all_dlls): Change type to std::list<dll_info *>.
7001 (free_one_dll): Remove.
7002 (match_dll): Likewise.
7003 (loaded_dll): Adjust.
7004 (unloaded_dll): Adjust to all_dlls type change, use
7005 std::find_if. Inline code from match_dll.
7006 (clear_dlls): Adjust to all_dlls type change.
7007 * server.c (emit_dll_description): Remove.
7008 (handle_qxfer_libraries): Adjust to all_dlls type change,
7009 integrate emit_dll_description's functionality.
7010
7011 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
7012
7013 * linux-low.h (struct linux_target_ops) <delete_process>: New
7014 field.
7015 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
7016 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
7017 (struct linux_target_ops): Add delete_process callback.
7018 * linux-arm-low.c (arm_delete_process): New.
7019 (struct linux_target_ops): Add delete_process callback.
7020 * linux-bfin-low.c (struct linux_target_ops): Likewise.
7021 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
7022 * linux-m32r-low.c (struct linux_target_ops): Likewise.
7023 * linux-mips-low.c (mips_linux_delete_process): New.
7024 (struct linux_target_ops): Add delete_process callback.
7025 * linux-ppc-low.c (struct linux_target_ops): Likewise.
7026 * linux-s390-low.c (struct linux_target_ops): Likewise.
7027 * linux-sh-low.c (struct linux_target_ops): Likewise.
7028 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
7029 * linux-tile-low.c (struct linux_target_ops): Likewise.
7030 * linux-x86-low.c (x86_linux_delete_process): New.
7031 (struct linux_target_ops): Add delete_process callback.
7032 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
7033
7034 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
7035
7036 * linux-aarch64-low.c (the_low_target): Add thread delete
7037 callback.
7038 * linux-arm-low.c (arm_delete_thread): New function.
7039 (the_low_target): Add thread delete callback.
7040 * linux-bfin-low.c (the_low_target): Likewise.
7041 * linux-crisv32-low.c (the_low_target): Likewise.
7042 * linux-low.c (delete_lwp): Invoke delete_thread callback if
7043 set.
7044 * linux-low.h (struct linux_target_ops) <delete_thread>: New
7045 field.
7046 * linux-m32r-low.c (the_low_target): Add thread delete callback.
7047 * linux-mips-low.c (mips_linux_delete_thread): New function.
7048 (the_low_target): Add thread delete callback.
7049 * linux-ppc-low.c (the_low_target): Likewise.
7050 * linux-s390-low.c (the_low_target): Likewise.
7051 * linux-sh-low.c (the_low_target): Likewise.
7052 * linux-tic6x-low.c (the_low_target): Likewise.
7053 * linux-tile-low.c (the_low_target): Likewise.
7054 * linux-x86-low.c (the_low_target): Likewise.
7055 * linux-xtensa-low.c (the_low_target): Likewise.
7056
7057 2017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
7058
7059 * win32-low.c: Include "common-inferior.h".
7060
7061 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
7062
7063 * inferiors.c (set_inferior_cwd): New function.
7064 * server.c (handle_general_set): Handle QSetWorkingDir packet.
7065 (handle_query): Inform that QSetWorkingDir is supported.
7066 * win32-low.c (create_process): Pass the inferior's cwd to
7067 CreateProcess.
7068
7069 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
7070
7071 * inferiors.c (current_inferior_cwd): New global variable.
7072 (get_inferior_cwd): New function.
7073 * inferiors.h (struct process_info) <cwd>: New field.
7074
7075 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
7076
7077 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
7078 (OBS): Add gdb_tilde_expand.o.
7079
7080 2017-10-02 Simon Marchi <simon.marchi@ericsson.com>
7081
7082 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
7083 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
7084
7085 2017-09-29 Pedro Alves <palves@redhat.com>
7086
7087 * ax.c (gdb_parse_agent_expr): Constify.
7088 * ax.h (gdb_parse_agent_expr): Constify.
7089 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
7090 Constify.
7091 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
7092 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
7093 * remote-utils.h (read_ptid): Constify.
7094 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
7095 (process_point_options, process_serial_event): Constify.
7096 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
7097 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
7098 (cmd_qtbuffer): Constify.
7099
7100 2017-09-29 Pedro Alves <palves@redhat.com>
7101
7102 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
7103 fails.
7104
7105 2017-09-29 Pedro Alves <palves@redhat.com>
7106
7107 * linux-low.c (handle_extended_wait): Pass parent thread instead
7108 of process to thread_db_notice_clone.
7109 * linux-low.h (thread_db_notice_clone): Replace parent process
7110 parameter with parent thread parameter.
7111 * thread-db.c (find_one_thread): Add comment.
7112 (thread_db_notice_clone): Replace parent process parameter with
7113 parent thread parameter. Temporarily switch to the parent thread.
7114
7115 2017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
7116
7117 * gdbthread.h: Include "common-gdbthread.h".
7118 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
7119 "if" when validating the ptid.
7120 * remote-utils.c: Include "gdbthread.h".
7121 (prepare_resume_reply): Use "switch_to_thread".
7122 * target.c (done_accessing_memory): Likewise.
7123
7124 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
7125
7126 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
7127 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
7128 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
7129 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
7130 s390x-gs-linux64-ipa.o to ipa_obj.
7131 * linux-s390-low.c (HWCAP_S390_GS): New define.
7132 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
7133 New functions.
7134 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
7135 (s390_arch_setup): Check for guarded-storage support and choose
7136 appropriate tdesc.
7137 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
7138 init_registers_s390x_gs_linux64.
7139 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
7140 enum value.
7141 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
7142 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
7143
7144 2017-09-22 Simon Marchi <simon.marchi@ericsson.com>
7145
7146 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
7147
7148 2017-09-21 Kevin Buettner <kevinb@redhat.com>
7149
7150 * linux-low.h (struct lwp_info): Add new field, thread_handle.
7151 (thread_db_thread_handle): Declare.
7152 * linux-low.c (linux_target_ops): Initialize thread_handle.
7153 * server.c (handle_qxfer_threads_worker): Add support for
7154 "handle" attribute.
7155 * target.h (struct target_ops): Add new function pointer,
7156 thread_handle.
7157 (target_thread_handle): Define.
7158 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
7159 field in lwp.
7160 (thread_db_thread_handle): New function.
7161
7162 2017-09-21 Kevin Buettner <kevinb@redhat.com>
7163
7164 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
7165 * linux-low.h (thread_db_notice_clone): Declare.
7166 * thread-db.c (thread_db_notice_clone): New function.
7167
7168 2017-09-21 Pedro Alves <palves@redhat.com>
7169
7170 * server.c (gdb_read_memory, handle_status, process_serial_event)
7171 (handle_serial_event, handle_target_event): Adjust to
7172 set_desired_thread prototype change.
7173 * target.c (set_desired_thread): Remove 'use_general' parameter
7174 and adjust.
7175 * target.h (set_desired_thread): Remove 'use_general' parameter.
7176
7177 2017-09-20 Tom Tromey <tom@tromey.com>
7178
7179 * target.c (target_terminal::terminal_state): Define.
7180 (target_terminal::init): Rename from target_terminal_init.
7181 (target_terminal::inferior): Rename from
7182 target_terminal_inferior.
7183 (target_terminal::ours): Rename from target_terminal_ours.
7184 (target_terminal::ours_for_output, target_terminal::info): New.
7185
7186 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7187
7188 * server.c (accumulate_file_name_length): Remove.
7189 (emit_dll_description): Adjust to std::string change.
7190 (handle_qxfer_libraries): Use std::string to hold document.
7191
7192 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7193
7194 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
7195 return type of xml_escape_text.
7196 * server.c (emit_dll_description): Likewise.
7197
7198 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7199
7200 * server.c (captured_main): Accept argument for --selftest.
7201 Update run_tests call.
7202 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
7203 when registering selftests.
7204
7205 2017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
7206
7207 * regcache.c (get_thread_regcache): Update code to use "std::vector"
7208 instead of "VEC" for "target_desc.reg_defs".
7209 (regcache_cpy): Likewise.
7210 (registers_to_string): Likewise.
7211 (registers_from_string): Likewise.
7212 (find_regno): Likewise.
7213 (supply_regblock): Likewise.
7214 (regcache_raw_read_unsigned): Likewise.
7215 * tdesc.c (init_target_desc): Likewise.
7216 (tdesc_create_reg): Likewise.
7217 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
7218 (struct target_desc) <reg_defs>: Convert to "std::vector".
7219 (target_desc): Do not initialize "reg_defs".
7220 (~target_desc): Update code to use "std::vector" instead of "VEC"
7221 for "target_desc.reg_defs".
7222 (operator==): Likewise.
7223
7224 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7225
7226 * inferiors.h (thread_to_gdb_id): Remove.
7227 * inferiors.c (thread_to_gdb_id): Remove.
7228 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
7229 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
7230 lynx_store_registers, lynx_read_memory, lynx_write_memory):
7231 Likewise.
7232 * nto-low.c (nto_fetch_registers, nto_store_registers,
7233 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
7234
7235 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7236
7237 * inferiors.h (gdb_id_to_thread_id): Remove.
7238 * inferiors.c (gdb_id_to_thread_id): Remove.
7239 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
7240 removal. Move pid declaration closer to where it's used.
7241
7242 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7243
7244 * server.c (handle_detach): New function.
7245 (process_serial_event): Move code out, call handle_detach.
7246
7247 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7248
7249 * server.c (require_running): Rename to ...
7250 (require_running_or_return): ... this ...
7251 (require_running_or_break): ... and this.
7252 (handle_query, process_serial_event): Adjust.
7253
7254 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7255
7256 * linux-low.c (linux_set_resume_request): Remove unused
7257 variables.
7258
7259 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7260
7261 * server.c (first_thread_of): Remove.
7262 (process_serial_event): Replace usage of first_thread_of with
7263 find_any_thread_of_pid.
7264 * tracepoint.c (same_process_p): Remove.
7265 (gdb_agent_about_to_close): Replace usage of same_process_p with
7266 find_any_thread_of_pid.
7267 * linux-x86-low.c (same_process_callback): Remove.
7268 (x86_arch_setup_process_callback): Replace usage of
7269 same_process_callback with find_any_thread_of_pid.
7270 * thread-db.c (any_thread_of): Remove.
7271 (switch_to_process): Replace usage of any_thread_of with
7272 find_any_thread_of_pid.
7273 * inferiors.c (thread_pid_matches_callback): Remove.
7274 (find_thread_process): Adjust to use find_any_thread_of_pid.
7275
7276 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
7277
7278 * regcache.c (get_thread_regcache): Guard calls to "memset"
7279 with "!VEC_empty".
7280
7281 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
7282
7283 * linux-low.c (handle_extended_wait): Use
7284 "allocate_target_description" instead of "XNEW".
7285 * linux-x86-low.c (initialize_low_arch): Likewise.
7286
7287 2017-09-05 Yao Qi <yao.qi@linaro.org>
7288
7289 * configure.srv (srv_i386_regobj): Remove.
7290 (srv_amd64_regobj): Remove.
7291 (srv_regobj): Set it to "" for x86 non-linux targets.
7292 * linux-x86-tdesc.c (i386_linux_read_description):
7293 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
7294 (init_registers_i386): Remove the declaration.
7295 (tdesc_i386): Remove the declaration.
7296 (lynx_i386_arch_setup): Call i386_create_target_description.
7297 * nto-x86-low.c: Likewise.
7298 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
7299 [!__x86_64__]: include arch/i386.h.
7300 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
7301
7302 2017-09-05 Yao Qi <yao.qi@linaro.org>
7303
7304 * configure.srv (srv_amd64_linux_xmlfiles): Remove
7305 i386/amd64-XXX-linux from it.
7306
7307 2017-09-05 Yao Qi <yao.qi@linaro.org>
7308
7309 * configure.srv: Empty srv_amd64_linux_regobj if $development is
7310 false.
7311 (ipa_amd64_linux_regobj): Remove.
7312 (ipa_x32_linux_regobj): Remove.
7313
7314 2017-09-05 Yao Qi <yao.qi@linaro.org>
7315
7316 * Makefile.in (arch-amd64.o): New rule.
7317 * configure.srv: Append arch-amd64.o.
7318 * linux-amd64-ipa.c: Include common/x86-xstate.h.
7319 (get_ipa_tdesc): Call amd64_linux_read_description.
7320 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
7321 and init_registers_amd64_XXX.
7322 * linux-x86-low.c (x86_linux_read_description): Call
7323 amd64_linux_read_description.
7324 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
7325 (initialize_low_arch): Don't call init_registers_x32_XXX and
7326 init_registers_amd64_XXX.
7327 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
7328 and tdesc_amd64_XXX.
7329 [__x86_64__] (amd64_tdesc_test): New function.
7330 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
7331 and init_registers_amd64_XXX.
7332 * linux-x86-tdesc.c: Include arch/amd64.h.
7333 (xcr0_to_tdesc_idx): New function.
7334 (i386_linux_read_description): New function.
7335 (amd64_get_ipa_tdesc_idx): New function.
7336 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
7337 (amd64_get_ipa_tdesc): Declare.
7338
7339 2017-09-05 Yao Qi <yao.qi@linaro.org>
7340
7341 * configure.srv (srv_i386_linux_xmlfiles): Remove
7342 i386/i386-XXX-linux.xml from it.
7343
7344 2017-09-05 Yao Qi <yao.qi@linaro.org>
7345
7346 * configure.srv: Set srv_i386_linux_regobj empty if $development
7347 is false.
7348 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
7349 initialize_low_tdesc.
7350 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
7351 with #if initialize_low_tdesc.
7352 * linux-x86-tdesc-selftest.c: New file.
7353 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
7354
7355 2017-09-05 Yao Qi <yao.qi@linaro.org>
7356
7357 * Makefile.in (arch-i386.o): New rule.
7358 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
7359 (x86_64-*-linux*): Likewise.
7360 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
7361 include arch/i386.h.
7362 (i386_linux_read_description): Remove code and call
7363 i386_create_target_description.
7364 * tdesc.c (allocate_target_description): New function.
7365 * tdesc.h (set_tdesc_architecture): Remove declaration.
7366 (set_tdesc_osabi): Likewise.
7367
7368 2017-09-05 Yao Qi <yao.qi@linaro.org>
7369
7370 * linux-x86-tdesc.c: Don't include <inttypes.h>.
7371 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
7372 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
7373 .xmltarget.
7374 * server.c (get_features_xml): Call tdesc_get_features_xml.
7375 * tdesc.c (set_tdesc_architecture): New function.
7376 (set_tdesc_osabi): New function.
7377 (tdesc_get_features_xml): New function.
7378 (tdesc_create_feature): Add an argument.
7379 * tdesc.h (struct target_desc) <features>: New field.
7380 <arch, osabi>: New field.
7381 (~target_desc): xfree features, arch, and osabi.
7382 (target_desc::oerator==): Don't compare .xmltarget.
7383 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
7384 (set_tdesc_osabi): Likewise.
7385 (tdesc_get_features_xml): Likewise.
7386
7387 2017-09-05 Yao Qi <yao.qi@linaro.org>
7388
7389 * linux-x86-tdesc.c: Include selftest.h.
7390 (i386_tdesc_test): New function.
7391 (initialize_low_tdesc): Call selftests::register_test.
7392 * tdesc.h: Include regdef.h.
7393 (target_desc): Override operator == and !=.
7394
7395 2017-09-05 Yao Qi <yao.qi@linaro.org>
7396
7397 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
7398 (ipa_obj): Likewise.
7399 * linux-i386-ipa.c: Include common/x86-xstate.h
7400 (get_ipa_tdesc): Call i386_linux_read_description.
7401 (initialize_low_tracepoint): Don't call init_registers_XXX
7402 functions, call initialize_low_tdesc instead.
7403 * linux-x86-low.c (x86_linux_read_description): Call
7404 i386_linux_read_description.
7405 (initialize_low_arch): Don't call init_registers_i386_XXX
7406 functions, call initialize_low_tdesc.
7407 * linux-x86-tdesc.c: New file.
7408 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
7409 (i386_get_ipa_tdesc_idx): Declare.
7410 (i386_get_ipa_tdesc): Declare.
7411 (initialize_low_tdesc): Declare.
7412
7413 2017-09-05 Yao Qi <yao.qi@linaro.org>
7414
7415 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
7416 instead of 0.
7417
7418 2017-09-05 Yao Qi <yao.qi@linaro.org>
7419
7420 * Makefile.in (IPA_OBJS): Add vec-ipa.o
7421 * regcache.c (get_thread_regcache): Use VEC_length.
7422 (init_register_cache): Likewise.
7423 (regcache_cpy): Likewise.
7424 (registers_to_string): Iterate reg_defs via VEC_iterate.
7425 (find_regno): Likewise.
7426 (find_register_by_number): Use VEC_index.
7427 (register_size): Call find_register_by_number.
7428 (register_data): Call find_register_by_number.
7429 (supply_regblock): Use VEC_length.
7430 (regcache_raw_read_unsigned): Likewise.
7431 * tdesc.c (init_target_desc): Iterate reg_defs via
7432 VEC_iterate.
7433 (default_description): Update initializer.
7434 (copy_target_description): Don't update field num_registers.
7435 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
7436 <num_registers>: Remove.
7437
7438 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
7439
7440 * Makefile.in (.SECONDARY): Define target.
7441
7442 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
7443
7444 * linux-low.c (linux_wait_1): Adjust.
7445 * server.c (queue_stop_reply_callback): Adjust.
7446
7447 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
7448
7449 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
7450 QEnvironmentUnset and QEnvironmentReset packets.
7451 (handle_query): Inform remote that QEnvironmentHexEncoded,
7452 QEnvironmentUnset and QEnvironmentReset are supported.
7453
7454 2017-08-25 Simon Marchi <simon.marchi@ericsson.com>
7455
7456 * inferiors.h (inferior_target_data): Rename to ...
7457 (thread_target_data): ... this.
7458 (inferior_regcache_data): Rename to ...
7459 (thread_regcache_data): ... this.
7460 (set_inferior_regcache_data): Rename to ...
7461 (set_thread_regcache_data): ... this.
7462 * inferiors.c (inferior_target_data): Rename to ...
7463 (thread_target_data): ... this.
7464 (inferior_regcache_data): Rename to ...
7465 (thread_regcache_data): ... this.
7466 (set_inferior_regcache_data): Rename to ...
7467 (set_thread_regcache_data): ... this.
7468 (free_one_thread): Update.
7469 * linux-low.h (get_thread_lwp): Update.
7470 * regcache.c (get_thread_regcache): Update.
7471 (regcache_invalidate_thread): Update.
7472 (free_register_cache_thread): Update.
7473 * win32-i386-low.c (update_debug_registers_callback): Update.
7474 (win32_get_current_dr): Update.
7475 * win32-low.c (thread_rec): Update.
7476 (delete_thread_info): Update.
7477 (continue_one_thread): Update.
7478 (suspend_one_thread): Update.
7479
7480 2017-08-24 Simon Marchi <simon.marchi@ericsson.com>
7481
7482 * inferiors.c (set_inferior_target_data): Remove.
7483 * inferiors.h (set_inferior_target_data): Remove.
7484
7485 2017-08-18 Yao Qi <yao.qi@linaro.org>
7486
7487 * Makefile.in (OBS): Add selftest.o.
7488 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
7489 * configure, config.in: Re-generated.
7490 * server.c: Include common/sefltest.h.
7491 (captured_main): Handle option --selftest.
7492
7493 2017-08-09 Yao Qi <yao.qi@linaro.org>
7494
7495 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
7496 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
7497 i386-avx-mpx.o and i386-mmx.o.
7498 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
7499 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
7500 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
7501 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
7502 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
7503 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
7504 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
7505 i386/amd64-avx-mpx.xml.
7506
7507 2017-08-09 Yao Qi <yao.qi@linaro.org>
7508
7509 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
7510 and x32-avx-avx512.o.
7511 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
7512 i386/x32-avx-avx512.xml.
7513
7514 2017-07-26 Simon Marchi <simon.marchi@ericsson.com>
7515
7516 * tracepoint.h (enum class fast_tpoint_collect_result): New
7517 enumeration.
7518 (fast_tracepoint_collecting): Change return type to
7519 fast_tpoint_collect_result.
7520 * tracepoint.c (fast_tracepoint_collecting): Likewise.
7521 * linux-low.h: Include tracepoint.h.
7522 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
7523 fast_tpoint_collect_result.
7524 * linux-low.c (handle_tracepoints): Adjust.
7525 (linux_fast_tracepoint_collecting): Change return type to
7526 fast_tpoint_collect_result.
7527 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
7528 linux_wait_1, stuck_in_jump_pad_callback,
7529 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
7530 proceed_one_lwp): Adjust to type change.
7531
7532 2017-07-10 Yao Qi <yao.qi@linaro.org>
7533
7534 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
7535
7536 2017-06-29 Yao Qi <yao.qi@linaro.org>
7537
7538 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
7539 Remove.
7540 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
7541
7542 2017-06-20 Simon Marchi <simon.marchi@ericsson.com>
7543
7544 * Makefile.in (IPA_OBJS): Sort and format one item per line.
7545
7546 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
7547
7548 * linux-low.c (linux_create_inferior): Adjust code to access the
7549 environment information via 'gdb_environ' class.
7550 * lynx-low.c (lynx_create_inferior): Likewise.
7551 * server.c (our_environ): Make it an instance of 'gdb_environ'.
7552 (get_environ): Return a pointer to 'our_environ'.
7553 (captured_main): Initialize 'our_environ'.
7554 * server.h (get_environ): Adjust prototype.
7555 * spu-low.c (spu_create_inferior): Adjust code to access the
7556 environment information via 'gdb_environ' class.
7557
7558 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7559
7560 * linux-low.c (linux_read_memory, linux_write_memory): Remove
7561 usage of "register" keyword.
7562
7563 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7564
7565 * configure: Re-generate.
7566
7567 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7568
7569 * configure: Re-generate.
7570
7571 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7572
7573 * Makefile.in (COMPILE.pre): Add "-x c++".
7574
7575 2017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
7576
7577 * fork-child.c: Conditionally include <signal.h>.
7578
7579 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7580
7581 * server.c (handle_general_set): Handle new packet
7582 "QStartupWithShell".
7583 (handle_query): Add "QStartupWithShell" to the list of supported
7584 packets.
7585 (gdbserver_usage): Add help text explaining the
7586 new "--startup-with-shell" and "--no-startup-with-shell" CLI
7587 options.
7588 (captured_main): Recognize and act upon the presence of the new
7589 CLI options.
7590
7591 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7592 Pedro Alves <palves@redhat.com>
7593
7594 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
7595 * configure: Regenerate.
7596 * configure.srv (srv_linux_obj): Add "fork-child.o" and
7597 "fork-inferior.o".
7598 (i[34567]86-*-lynxos*): Likewise.
7599 (spu*-*-*): Likewise.
7600 * fork-child.c: New file.
7601 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
7602 and "environ.h".
7603 (linux_ptrace_fun): New function.
7604 (linux_create_inferior): Adjust function prototype to reflect
7605 change on "target.h". Adjust function code to use
7606 "fork_inferior".
7607 (linux_request_interrupt): Delete "signal_pid".
7608 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7609 (lynx_ptrace_fun): New function.
7610 (lynx_create_inferior): Adjust function prototype to reflect
7611 change on "target.h". Adjust function code to use
7612 "fork_inferior".
7613 * nto-low.c (nto_create_inferior): Adjust function prototype and
7614 code to reflect change on "target.h". Update comments.
7615 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
7616 "common-terminal.h" and "environ.h".
7617 (terminal_fd): Moved to fork-child.c.
7618 (old_foreground_pgrp): Likewise.
7619 (restore_old_foreground_pgrp): Likewise.
7620 (last_status): Make it global.
7621 (last_ptid): Likewise.
7622 (our_environ): New variable.
7623 (startup_with_shell): Likewise.
7624 (program_name): Likewise.
7625 (program_argv): Rename to...
7626 (program_args): ...this.
7627 (wrapper_argv): New variable.
7628 (start_inferior): Delete function.
7629 (get_exec_wrapper): New function.
7630 (get_exec_file): Likewise.
7631 (get_environ): Likewise.
7632 (prefork_hook): Likewise.
7633 (post_fork_inferior): Likewise.
7634 (postfork_hook): Likewise.
7635 (postfork_child_hook): Likewise.
7636 (handle_v_run): Update code to deal with arguments coming from the
7637 remote host. Update calls from "start_inferior" to
7638 "create_inferior".
7639 (captured_main): Likewise. Initialize environment variable. Call
7640 "have_job_control".
7641 * server.h (post_fork_inferior): New prototype.
7642 (get_environ): Likewise.
7643 (last_status): Declare.
7644 (last_ptid): Likewise.
7645 (signal_pid): Likewise.
7646 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7647 (spu_ptrace_fun): New function.
7648 (spu_create_inferior): Adjust function prototype to reflect change
7649 on "target.h". Adjust function code to use "fork_inferior".
7650 * target.c (target_terminal_init): New function.
7651 (target_terminal_inferior): Likewise.
7652 (target_terminal_ours): Likewise.
7653 * target.h: Include <vector>.
7654 (struct target_ops) <create_inferior>: Update prototype.
7655 (create_inferior): Update macro.
7656 * utils.c (gdb_flush_out_err): New function.
7657 * win32-low.c (win32_create_inferior): Adjust function prototype
7658 and code to reflect change on "target.h".
7659
7660 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7661
7662 * inferiors.c (switch_to_thread): New function.
7663
7664 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7665
7666 * Makefile.in (SFILE): Add "common/job-control.c".
7667 (OBS): Add "job-control.o".
7668
7669 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
7670
7671 * Makefile: Remove "@host_makefile_frag@".
7672
7673 2017-05-05 Pedro Alves <palves@redhat.com>
7674
7675 * configure: Regenerate.
7676
7677 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7678
7679 * configure: Regenerate.
7680
7681 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7682
7683 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
7684 software_single_step change of return type to
7685 std::vector<CORE_ADDR>.
7686 * linux-low.c (install_software_single_step_breakpoints):
7687 Likewise.
7688 * linux-low.h (install_software_single_step_breakpoints):
7689 Likewise.
7690
7691 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7692
7693 * remote-utils.c: Include "gdb_termios.h" instead of
7694 "terminal.h".
7695 * terminal.h: Delete file.
7696
7697 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7698
7699 * server.c: Include <vector>.
7700 <program_argv, wrapper_argv>: Convert to std::vector.
7701 (start_inferior): Rewrite function to use C++.
7702 (handle_v_run): Likewise. Update code that calculates the argv
7703 based on the vRun packet; use C++.
7704 (captured_main): Likewise.
7705
7706 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
7707
7708 * server.c (handle_v_cont): Initialize thread_resume::thread
7709 with null_ptid.
7710
7711 2017-04-05 Pedro Alves <palves@redhat.com>
7712
7713 * configure: Regenerate.
7714
7715 2017-04-05 Pedro Alves <palves@redhat.com>
7716
7717 * gdbreplay.c (sync_error): Constify.
7718 * linux-x86-low.c (push_opcode): Constify.
7719
7720 2017-04-05 Pedro Alves <palves@redhat.com>
7721
7722 * win32-low.c (get_child_debug_event)
7723 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
7724 Report TARGET_WAITKIND_SPURIOUS instead.
7725
7726 2017-04-05 Pedro Alves <palves@redhat.com>
7727
7728 * remote-utils.c (remote_prepare, remote_open): Constify.
7729 * remote-utils.h (remote_prepare, remote_open): Constify.
7730 * server.c (captured_main): Constify 'port' handling.
7731
7732 2017-04-04 Simon Marchi <simon.marchi@ericsson.com>
7733
7734 * Makefile.in (clean): Clear .deps.
7735
7736 2017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
7737
7738 * .gitignore: Remove generated files, replace with wildcard.
7739 * (clean): Replace removal of generated files with wildcard.
7740 (version.c): Replace with...
7741 (version-generated.c): ...this.
7742 (xml-builtin.c): Replace with...
7743 (xml-builtin-generated.c): ...this.
7744 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
7745 (%.c: *regformats*): Replace with...
7746 (%-generated.c: *regformats*): ...this.
7747
7748 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7749
7750 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
7751 (xtensa_fill_gregset): Call collect_register_by_name for
7752 threadptr register.
7753 (xtensa_store_gregset): Call supply_register_by_name for
7754 threadptr register.
7755
7756 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7757
7758 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
7759 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
7760 (xtensa_store_gregset): Call supply_register for all registers in
7761 a0_regnum..a0_regnum + C0_NREGS range.
7762
7763 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7764
7765 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
7766 (ax-ipa.o: ax.c): Remove.
7767 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
7768 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
7769 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
7770 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
7771 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
7772
7773 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7774
7775 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
7776 (print-utils-ipa.o: ../common/print-utils.c): Remove.
7777 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
7778 (errors-ipa.o: ../common/errors.c): Remove.
7779 (format-ipa.o: ../common/format.c): Remove.
7780 (common-utils-ipa.o: ../common/common-utils.c): Remove.
7781
7782 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7783
7784 * Makefile.in (%-ipa.o: %.c): New rule.
7785 (tracepoint-ipa.o: tracepoint.c): Remove.
7786 (utils-ipa.o: utils.c): Remove.
7787 (remote-utils-ipa.o: remote-utils.c): Remove.
7788 (regcache-ipa.o: regcache.c): Remove.
7789 (i386-linux-ipa.o: i386-linux.c): Remove.
7790 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
7791 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
7792 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
7793 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
7794 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
7795 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
7796 (amd64-linux-ipa.o: amd64-linux.c): Remove.
7797 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
7798 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
7799 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
7800 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
7801 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
7802 (aarch64-ipa.o: aarch64.c): Remove.
7803 (s390-linux32-ipa.o: s390-linux32.c): Remove.
7804 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
7805 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
7806 (s390-linux64-ipa.o: s390-linux64.c): Remove.
7807 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
7808 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
7809 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
7810 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
7811 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
7812 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
7813 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
7814 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
7815 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
7816 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
7817 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
7818 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
7819 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
7820 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
7821 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
7822 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
7823 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
7824 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
7825 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
7826 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
7827 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
7828 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
7829 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
7830 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
7831 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
7832 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
7833 (tdesc-ipa.o: tdesc.c): Remove.
7834 (x32-linux-ipa.o: x32-linux.c): Remove.
7835 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
7836 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
7837
7838 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7839
7840 * Makefile.in (%.o: ../arch/%.c): New rule.
7841 (arm.o: ../arch/arm.c): Remove.
7842 (arm-linux.o: ../arch/arm-linux.c): Remove.
7843 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
7844 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
7845
7846 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7847
7848 * Makefile.in (%.o: ../nat/%.c): New rule.
7849 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
7850 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
7851 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
7852 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
7853 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
7854 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
7855 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
7856 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
7857 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
7858 (linux-personality.o: ../nat/linux-personality.c): Remove.
7859 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
7860 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
7861 (x86-linux.o: ../nat/x86-linux.c): Remove.
7862 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
7863 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
7864
7865 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7866
7867 * Makefile.in (%.o: ../common/%.c): New rule.
7868 (signals.o: ../common/signals.c): Remove.
7869 (print-utils.o: ../common/print-utils.c): Remove.
7870 (rsp-low.o: ../common/rsp-low.c): Remove.
7871 (common-utils.o: ../common/common-utils.c): Remove.
7872 (posix-strerror.o: ../common/posix-strerror.c): Remove.
7873 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
7874 (vec.o: ../common/vec.c): Remove.
7875 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
7876 (xml-utils.o: ../common/xml-utils.c): Remove.
7877 (ptid.o: ../common/ptid.c): Remove.
7878 (buffer.o: ../common/buffer.c): Remove.
7879 (format.o: ../common/format.c): Remove.
7880 (filestuff.o: ../common/filestuff.c): Remove.
7881 (agent.o: ../common/agent.c): Remove.
7882 (errors.o: ../common/errors.c): Remove.
7883 (environ.o: ../common/environ.c): Remove.
7884 (common-debug.o: ../common/common-debug.c): Remove.
7885 (cleanups.o: ../common/cleanups.c): Remove.
7886 (common-exceptions.o: ../common/common-exceptions.c): Remove.
7887 (fileio.o: ../common/fileio.c): Remove.
7888 (common-regcache.o: ../common/common-regcache.c): Remove.
7889 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
7890 (new-op.o: ../common/new-op.c): Remove.
7891 (btrace-common.o: ../common/btrace-common.c): Remove.
7892
7893 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7894
7895 * Makefile.in (%.o: ../target/%.c): New rule.
7896 (waitstatus.o: ../target/waitstatus.c): Remove.
7897
7898 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7899
7900 * Makefile.in
7901 (%.c: ../regformats/%.dat,
7902 (%.c: ../regformats/arm/%.dat,
7903 (%.c: ../regformats/i386/%.dat,
7904 (%.c: ../regformats/rs6000/%.dat): New rules.
7905 (aarch64.c): Remove.
7906 (reg-arm.c): Remove.
7907 (arm-with-iwmmxt.c): Remove.
7908 (arm-with-vfpv2.c): Remove.
7909 (arm-with-vfpv3.c): Remove.
7910 (arm-with-neon.c): Remove.
7911 (reg-bfin.c): Remove.
7912 (reg-cris.c): Remove.
7913 (reg-crisv32.c): Remove.
7914 (i386.c): Remove.
7915 (i386-linux.c): Remove.
7916 (i386-avx.c): Remove.
7917 (i386-avx-linux.c): Remove.
7918 (i386-avx-avx512.c): Remove.
7919 (i386-avx-avx512-linux.c): Remove.
7920 (i386-mpx.c): Remove.
7921 (i386-mpx-linux.c): Remove.
7922 (i386-avx-mpx-avx512-pku.c): Remove.
7923 (i386-avx-mpx-avx512-pku-linux.c): Remove.
7924 (i386-avx-mpx.c): Remove.
7925 (i386-avx-mpx-linux.c): Remove.
7926 (i386-mmx.c): Remove.
7927 (i386-mmx-linux.c): Remove.
7928 (reg-ia64.c): Remove.
7929 (reg-m32r.c): Remove.
7930 (reg-m68k.c): Remove.
7931 (reg-cf.c): Remove.
7932 (mips-linux.c): Remove.
7933 (mips-dsp-linux.c): Remove.
7934 (mips64-linux.c): Remove.
7935 (mips64-dsp-linux.c): Remove.
7936 (nios2-linux.c): Remove.
7937 (powerpc-32.c): Remove.
7938 (powerpc-32l.c): Remove.
7939 (powerpc-altivec32l.c): Remove.
7940 (powerpc-cell32l.c): Remove.
7941 (powerpc-vsx32l.c): Remove.
7942 (powerpc-isa205-32l.c): Remove.
7943 (powerpc-isa205-altivec32l.c): Remove.
7944 (powerpc-isa205-vsx32l.c): Remove.
7945 (powerpc-e500l.c): Remove.
7946 (powerpc-64l.c): Remove.
7947 (powerpc-altivec64l.c): Remove.
7948 (powerpc-cell64l.c): Remove.
7949 (powerpc-vsx64l.c): Remove.
7950 (powerpc-isa205-64l.c): Remove.
7951 (powerpc-isa205-altivec64l.c): Remove.
7952 (powerpc-isa205-vsx64l.c): Remove.
7953 (s390-linux32.c): Remove.
7954 (s390-linux32v1.c): Remove.
7955 (s390-linux32v2.c): Remove.
7956 (s390-linux64.c): Remove.
7957 (s390-linux64v1.c): Remove.
7958 (s390-linux64v2.c): Remove.
7959 (s390-te-linux64.c): Remove.
7960 (s390-vx-linux64.c): Remove.
7961 (s390-tevx-linux64.c): Remove.
7962 (s390x-linux64.c): Remove.
7963 (s390x-linux64v1.c): Remove.
7964 (s390x-linux64v2.c): Remove.
7965 (s390x-te-linux64.c): Remove.
7966 (s390x-vx-linux64.c): Remove.
7967 (s390x-tevx-linux64.c): Remove.
7968 (tic6x-c64xp-linux.c): Remove.
7969 (tic6x-c64x-linux.c): Remove.
7970 (tic6x-c62x-linux.c): Remove.
7971 (reg-sh.c): Remove.
7972 (reg-sparc64.c): Remove.
7973 (reg-spu.c): Remove.
7974 (amd64.c): Remove.
7975 (amd64-linux.c): Remove.
7976 (amd64-avx.c): Remove.
7977 (amd64-avx-linux.c): Remove.
7978 (amd64-avx-avx512.c): Remove.
7979 (amd64-avx-avx512-linux.c): Remove.
7980 (amd64-mpx.c): Remove.
7981 (amd64-mpx-linux.c): Remove.
7982 (amd64-avx-mpx-avx512-pku.c): Remove.
7983 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
7984 (amd64-avx-mpx.c): Remove.
7985 (amd64-avx-mpx-linux.c): Remove.
7986 (x32.c): Remove.
7987 (x32-linux.c): Remove.
7988 (x32-avx.c): Remove.
7989 (x32-avx-linux.c): Remove.
7990 (x32-avx-avx512.c): Remove.
7991 (x32-avx-avx512-linux.c): Remove.
7992 (reg-xtensa.c): Remove.
7993 (reg-tilegx.c): Remove.
7994 (reg-tilegx32.c): Remove.
7995
7996 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
7997
7998 * Makefile.in (SFILES): Add "common/environ.c".
7999 (OBJS): Add "common/environ.h".
8000
8001 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
8002
8003 * configure.ac: Check if the fs_base and gs_base members of
8004 `struct user_regs_struct' exist.
8005 * config.in: Regenerated.
8006 * configure: Likewise.
8007
8008 2017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
8009
8010 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
8011 target_read_memory.
8012 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
8013 (get_next_pcs_syscall_next_pc): Likewise.
8014
8015 2016-12-23 Luis Machado <lgustavo@codesourcery.com>
8016
8017 * win32-i386-low.c: Fix incorrect reference to a couple source files.
8018 * nto-x86-low.c: Likewise.
8019
8020 2016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
8021
8022 * Makefile.in: Include disable-implicit-rules.mk.
8023
8024 2016-11-23 Pedro Alves <palves@redhat.com>
8025
8026 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
8027 (debug_vprintf): Use std::chrono::steady_clock instead of
8028 gettimeofday. Use '.' instead of ':'.
8029 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
8030 (get_timestamp): Use std::chrono::steady_clock instead of
8031 gettimeofday.
8032
8033 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
8034
8035 * Makefile.in: Fix whitespace formatting.
8036
8037 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
8038
8039 * Makefile.in (SFILES, OBS): Flatten list and order
8040 alphabetically.
8041
8042 2016-11-23 Pedro Alves <palves@redhat.com>
8043
8044 * event-loop.c (handle_file_event): Use warning.
8045 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
8046 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
8047 Use warning.
8048
8049 2016-11-23 Pedro Alves <palves@redhat.com>
8050
8051 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
8052 output.
8053 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
8054 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
8055 debug_printf and debug_flush for debug output.
8056 * server.c (handle_general_set): Likewise.
8057 * thread-db.c (try_thread_db_load): Use debug_printf for debug
8058 output.
8059
8060 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
8061
8062 * Makefile.in (.c.o): Replace rule with ...
8063 (%.o: %.c): ... this one.
8064
8065 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
8066
8067 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
8068 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
8069 make.
8070 * configure.ac: Remove checks for the make program.
8071 * configure: Re-generate.
8072
8073 2016-10-28 Pedro Alves <palves@redhat.com>
8074
8075 * Makefile.in (CXX_DIALECT): Get from configure.
8076 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
8077 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
8078 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
8079 * config.in: Regenerate.
8080 * configure: Regenerate.
8081
8082 2016-10-27 Yao Qi <yao.qi@linaro.org>
8083
8084 * linux-low.c (linux_supports_range_stepping): Return true if
8085 can_software_single_step return true.
8086
8087 2016-10-27 Yao Qi <yao.qi@linaro.org>
8088
8089 * inferiors.c (find_inferior_in_random): New function.
8090 * inferiors.h (find_inferior_in_random): Declare.
8091 * linux-low.c (linux_wait_for_event_filtered): Call
8092 find_inferior_in_random instead of find_inferior.
8093
8094 2016-10-27 Yao Qi <yao.qi@linaro.org>
8095
8096 * linux-low.c (linux_wait_1): If single-step breakpoints are
8097 inserted, remove them.
8098
8099 2016-10-26 Pedro Alves <palves@redhat.com>
8100
8101 * linux-low.c (handle_extended_wait): Link parent/child fork
8102 threads.
8103 (linux_wait_1): Unlink them.
8104 (linux_set_resume_request): Ignore resume requests for
8105 already-resumed and unhandled fork child threads.
8106 * linux-low.h (struct lwp_info) <fork_relative>: New field.
8107 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
8108 New functions.
8109 (handle_v_requests) <vCont>: Don't call require_running.
8110 * server.h (in_queued_stop_replies): New declaration.
8111
8112 2016-10-24 Yao Qi <yao.qi@linaro.org>
8113
8114 PR server/20733
8115 * linux-aarch64-low.c (append_insns): Cast the return value to
8116 'uint32_t *'.
8117
8118 2016-10-10 Yao Qi <yao.qi@linaro.org>
8119
8120 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
8121
8122 2016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
8123
8124 * target.c (target_supports_multi_process): New function, moved
8125 from...
8126 * target.h (target_supports_multi_process): ... here. Remove
8127 macro.
8128
8129 2016-10-05 Tom Tromey <tom@tromey.com>
8130
8131 PR remote/20655:
8132 * tracepoint.c (handle_tracepoint_bkpts): Check
8133 ipa_error_tracepoint, not ipa_stopping_tracepoint.
8134
8135 2016-10-05 Yao Qi <yao.qi@linaro.org>
8136
8137 * configure.srv: Update the path of arm-*.xml files.
8138
8139 2016-10-05 Terry Guo <terry.guo@arm.com>
8140 Yao Qi <yao.qi@linaro.org>
8141
8142 * Makefile.in: Adjust the path of rules.
8143 * configure.srv: Update the path of xml files.
8144 * regformats/arm-with-iwmmxt.dat: Regenerated.
8145 * regformats/arm-with-neon.dat: Likewise.
8146 * regformats/arm-with-vfpv2.dat: Likewise.
8147 * regformats/arm-with-vfpv3.dat Likewise.
8148
8149 2016-09-30 Yao Qi <yao.qi@linaro.org>
8150
8151 PR gdbserver/20627
8152 * target.c (target_stop_and_wait): Don't call
8153 target_continue_no_signal, use resume_stop instead.
8154
8155 2016-09-26 Yao Qi <yao.qi@linaro.org>
8156
8157 * linux-low.c (linux_wait_1): Call debug_exit.
8158
8159 2016-09-23 Pedro Alves <palves@redhat.com>
8160
8161 * Makefile.in (SFILES): Add common/new-op.c.
8162 (OBS): Add common/new-op.o.
8163 (new-op.o): New rule.
8164
8165 2016-09-21 Simon Marchi <simon.marchi@ericsson.com>
8166
8167 * .gitinore: Ignore more files.
8168
8169 2016-09-21 Yao Qi <yao.qi@linaro.org>
8170
8171 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
8172 23.
8173
8174 2016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
8175
8176 * server.c (start_inferior): Call target_mourn_inferior instead of
8177 mourn_inferior; pass ptid_t argument to it.
8178 (resume): Likewise.
8179 (handle_target_event): Likewise.
8180 * target.c (target_mourn_inferior): New function.
8181 * target.h (mourn_inferior): Delete macro.
8182
8183 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
8184
8185 * linux-low.c (lwp_is_stepping): New function.
8186
8187 2016-09-06 Carl Love <cel@us.ibm.com>
8188
8189 * server.c (start_inferior): Fixed comment, requested comment change
8190 didn't get updated correctly. Removed reference to ptrace () call as
8191 it is only true on Linux systems.
8192
8193 2016-09-06 Carl Love <cel@us.ibm.com>
8194
8195 * server.c (start_inferior): Do not call
8196 function target_post_create_inferior () if the
8197 inferior process has already exited.
8198
8199 2016-09-05 Pedro Alves <palves@redhat.com>
8200
8201 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
8202 (COMPILE.pre, CC_LD): Use CXX directly.
8203 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
8204 * acinclude.m4: Don't include build-with-cxx.m4.
8205 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
8206 * configure: Regenerate.
8207
8208 2016-09-02 Akash Trehan <akash.trehan123@gmail.com>
8209
8210 PR gdb/19495
8211 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
8212 call writing data to own_buf.
8213
8214 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
8215
8216 * target.c (mywait): Call target_wait instead of
8217 the_target->wait.
8218 (target_wait): New function.
8219
8220 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
8221
8222 * server.c (start_inferior): New variable 'ptid'. Replace calls
8223 to the_target->resume by target_continue{,_no_signal}, depending
8224 on the case.
8225 * target.c (target_stop_and_wait): Call target_continue_no_signal
8226 instead of the_target->resume.
8227 (target_continue): New function.
8228
8229 2016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
8230
8231 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
8232
8233 2016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8234
8235 PR server/20491
8236 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
8237 ps_prochandle.
8238 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
8239 * linux-arm-low.c (ps_get_thread_area): Likewise.
8240 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
8241 * linux-m68k-low.c (ps_get_thread_area): Likewise.
8242 * linux-mips-low.c (ps_get_thread_area): Likewise.
8243 * linux-nios2-low.c (ps_get_thread_area): Likewise.
8244 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
8245 * linux-x86-low.c (ps_get_thread_area): Likewise.
8246 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
8247
8248 2016-08-19 Pedro Alves <palves@redhat.com>
8249
8250 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
8251
8252 2016-08-19 Pedro Alves <palves@redhat.com>
8253
8254 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
8255 comment. Use memcpy instead of casting through unsigned long.
8256
8257 2016-08-19 Pedro Alves <palves@redhat.com>
8258
8259 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
8260 allocating around 0x80000000.
8261
8262 2016-08-19 Pedro Alves <palves@redhat.com>
8263
8264 PR gdb/20415
8265 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
8266 (x32-avx512-linux-ipa.o): New rules.
8267 * configure.ac (x86_64-*-linux*): New x32 check.
8268 * configure.srv (ipa_x32_linux_regobj): New.
8269 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
8270 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
8271 descriptions.
8272 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
8273 descriptions.
8274 * configure: Regenerate.
8275
8276 2016-08-09 Pedro Alves <palves@redhat.com>
8277
8278 PR gdb/18653
8279 * Makefile.in (OBS): Add signals-state-save-restore.o.
8280 (signals-state-save-restore.o): New rule.
8281 * config.in: Regenerate.
8282 * configure: Regenerate.
8283 * linux-low.c: Include "signals-state-save-restore.h".
8284 (linux_create_inferior): Call
8285 restore_original_signals_state.
8286 * server.c: Include "dispositions-save-restore.h".
8287 (captured_main): Call save_original_signals_state.
8288
8289 2016-08-05 Pedro Alves <palves@redhat.com>
8290
8291 * configure: Regenerate.
8292
8293 2016-08-04 Yao Qi <yao.qi@linaro.org>
8294
8295 * linux-low.c (regsets_fetch_inferior_registers): Check
8296 errno is ESRCH or not.
8297
8298 2016-08-02 Yao Qi <yao.qi@linaro.org>
8299
8300 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
8301 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
8302 (thread_db_load_search): Update.
8303 (try_thread_db_load_1): Don't look for td_ta_event_addr,
8304 td_ta_set_event and td_ta_event_getmsg.
8305
8306 2016-07-26 Pedro Alves <palves@redhat.com>
8307
8308 PR server/20414
8309 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
8310 of unsigned long for 64-bit registers and use uint32_t instead of
8311 unsigned int for 32-bit registers.
8312
8313 2016-07-26 Pedro Alves <palves@redhat.com>
8314
8315 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
8316 to 'ptrace'.
8317
8318 2016-07-21 Tom Tromey <tom@tromey.com>
8319
8320 * configure: Rebuild.
8321
8322 2016-07-21 Yao Qi <yao.qi@linaro.org>
8323
8324 * mem-break.c (find_gdb_breakpoint): Cast bp to
8325 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
8326
8327 2016-07-21 Yao Qi <yao.qi@linaro.org>
8328
8329 * server.c (handle_v_requests): Support s and S actions
8330 if target_supports_software_single_step return true.
8331
8332 2016-07-21 Yao Qi <yao.qi@linaro.org>
8333
8334 * linux-low.c (resume_stopped_resumed_lwps): If resume request
8335 is resume_step, call maybe_hw_step.
8336 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
8337 and unstop them.
8338 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
8339 breakpoints or not.
8340 (proceed_one_lwp): If resume request is resume_step, install
8341 reinsert breakpoints and call maybe_hw_step.
8342
8343 2016-07-21 Yao Qi <yao.qi@linaro.org>
8344
8345 * linux-low.c (proceed_one_lwp): Declare.
8346 (linux_resume_one_thread): Remove local variable 'step'.
8347 Lift code enqueue signal. Call proceed_one_lwp instead of
8348 linux_resume_one_lwp.
8349
8350 2016-07-21 Yao Qi <yao.qi@linaro.org>
8351
8352 * linux-low.c (linux_resume_one_thread): Call
8353 enqueue_pending_signal.
8354
8355 2016-07-21 Yao Qi <yao.qi@linaro.org>
8356
8357 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
8358 * inferiors.c (do_restore_current_thread_cleanup): New function.
8359 (make_cleanup_restore_current_thread): Likewise.
8360 * linux-low.c (install_software_single_step_breakpoints): Call
8361 make_cleanup_restore_current_thread. Switch current_thread to
8362 thread.
8363
8364 2016-07-21 Yao Qi <yao.qi@linaro.org>
8365
8366 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
8367 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
8368 (clone_one_breakpoint): Likewise.
8369 (delete_reinsert_breakpoints): Change parameter to thread.
8370 Callers updated.
8371 (has_reinsert_breakpoints): Likewise.
8372 (uninsert_reinsert_breakpoints): Likewise.
8373 (reinsert_reinsert_breakpoints): Likewise.
8374 * mem-break.h (set_reinsert_breakpoint): Update declaration.
8375 (delete_reinsert_breakpoints): Likewise.
8376 (reinsert_reinsert_breakpoints): Likewise.
8377 (uninsert_reinsert_breakpoints): Likewise.
8378 (has_reinsert_breakpoints): Likewise.
8379
8380 2016-07-21 Yao Qi <yao.qi@linaro.org>
8381
8382 * inferiors.c (get_thread_process): Make parameter const.
8383 * inferiors.h (get_thread_process): Update declaration.
8384 * mem-break.c (clone_all_breakpoints): Remove all parameters.
8385 Add new parameters child_thread and parent_thread. Callers
8386 updated.
8387 * mem-break.h (clone_all_breakpoints): Update declaration.
8388
8389 2016-07-21 Yao Qi <yao.qi@linaro.org>
8390
8391 * mem-break.c (struct breakpoint) <cond_list>: Remove.
8392 <command_list, handler>: Remove.
8393 (struct gdb_breakpoint): New.
8394 (struct other_breakpoint): New.
8395 (struct reinsert_breakpoint): New.
8396 (is_gdb_breakpoint): New function.
8397 (any_persistent_commands): Update command_list if
8398 is_gdb_breakpoint returns true.
8399 (set_breakpoint): Create breakpoints according to their types.
8400 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
8401 (set_gdb_breakpoint_1): Likewise.
8402 (set_gdb_breakpoint): Likewise.
8403 (clear_breakpoint_conditions): Change parameter type to
8404 'struct gdb_breakpoint *'.
8405 (clear_breakpoint_commands): Likewise.
8406 (clear_breakpoint_conditions_and_commands): Likewise.
8407 (add_condition_to_breakpoint): Likewise.
8408 (add_breakpoint_condition): Likewise.
8409 (add_commands_to_breakpoint): Likewise.
8410 (check_breakpoints): Check other_breakpoint.
8411 (clone_one_breakpoint): Clone breakpopint according to its type.
8412 * mem-break.h (struct gdb_breakpoint): Declare.
8413 (set_gdb_breakpoint): Update declaration.
8414 (clear_breakpoint_conditions_and_commands): Likewise.
8415 (add_breakpoint_condition): Likewise.
8416 (add_breakpoint_commands): Likewise.
8417 * server.c (process_point_options): Change parameter type to
8418 'struct gdb_breakpoint *'.
8419
8420 2016-07-21 Yao Qi <yao.qi@linaro.org>
8421
8422 * mem-break.c (set_breakpoint_at): Rename it to ...
8423 (set_breakpoint_type_at): ... it.
8424 (set_breakpoint_at): Call set_breakpoint_type_at.
8425 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
8426 * mem-break.h (set_breakpoint_at): Update comments.
8427
8428 2016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
8429
8430 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
8431 to buf parameter.
8432 (nios2_store_gregset): Likewise.
8433
8434 2016-07-01 Pedro Alves <palves@redhat.com>
8435 Antoine Tremblay <antoine.tremblay@ericsson.com>
8436
8437 * linux-low.c: Change interface to take the target lwp_info
8438 pointer directly and return void. Handle detaching from a zombie
8439 thread.
8440 (linux_detach_lwp_callback): New function.
8441 (linux_detach): Detach from the leader thread after detaching from
8442 the clone threads.
8443
8444 2016-06-28 Yao Qi <yao.qi@linaro.org>
8445
8446 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
8447 for variable new_offset.
8448 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
8449 (aarch64_ftrace_insn_reloc_cb): Likewise.
8450 (aarch64_ftrace_insn_reloc_tb): Likewise.
8451 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
8452 PRIx64 instead of PRIx32.
8453
8454 2016-06-28 Yao Qi <yao.qi@linaro.org>
8455
8456 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
8457 (the_low_target): Install arm_get_syscall_trapinfo.
8458
8459 2016-06-28 Yao Qi <yao.qi@linaro.org>
8460
8461 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
8462 function.
8463 (the_low_target): Install aarch64_get_syscall_trapinfo.
8464
8465 2016-06-28 Yao Qi <yao.qi@linaro.org>
8466
8467 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
8468 Callers updated.
8469 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
8470 Remove parameter sysno.
8471 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
8472 sysret.
8473
8474 2016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8475
8476 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
8477 (s390_emit_ne_goto): Likewise.
8478 (s390_emit_lt_goto): Likewise.
8479 (s390_emit_le_goto): Likewise.
8480 (s390_emit_gt_goto): Likewise.
8481 (s390_emit_ge_goto): Likewise.
8482 (s390x_emit_eq_goto): Likewise.
8483 (s390x_emit_ne_goto): Likewise.
8484 (s390x_emit_lt_goto): Likewise.
8485 (s390x_emit_le_goto): Likewise.
8486 (s390x_emit_gt_goto): Likewise.
8487 (s390x_emit_ge_goto): Likewise.
8488 (s390_emit_ops_impl): Mark variable static.
8489 (s390x_emit_ops): Likewise.
8490
8491 2016-06-17 Yao Qi <yao.qi@linaro.org>
8492
8493 * linux-low.c (handle_extended_wait): Call
8494 uninsert_reinsert_breakpoints for the parent process. Remove
8495 reinsert breakpoints from the child process. Reinsert them to
8496 the parent process when vfork is done.
8497 * mem-break.c (uninsert_reinsert_breakpoints): New function.
8498 (reinsert_reinsert_breakpoints): New function.
8499 * mem-break.h (uninsert_reinsert_breakpoints): Declare
8500 (reinsert_reinsert_breakpoints): Declare.
8501
8502 2016-06-17 Yao Qi <yao.qi@linaro.org>
8503
8504 * linux-low.c (handle_extended_wait): If the parent is doing
8505 step-over, remove the reinsert breakpoints from the forked child.
8506
8507 2016-06-17 Yao Qi <yao.qi@linaro.org>
8508
8509 * linux-low.c (unsuspend_all_lwps): Declare.
8510 (linux_low_filter_event): If thread exited, call finish_step_over.
8511 If step-over is finished, unsuspend other threads.
8512
8513 2016-06-17 Yao Qi <yao.qi@linaro.org>
8514
8515 * linux-low.c (linux_resume_one_lwp_throw): Assert
8516 has_reinsert_breakpoints returns false.
8517 * mem-break.c (delete_disabled_breakpoints): Assert
8518 bp type isn't reinsert_breakpoint.
8519
8520 2016-06-17 Yao Qi <yao.qi@linaro.org>
8521
8522 * linux-low.c (maybe_hw_step): New function.
8523 (linux_resume_one_lwp_throw): Call maybe_hw_step.
8524 (finish_step_over): Switch current_thread to lwp temporarily,
8525 and assert has_reinsert_breakpoints returns true.
8526 (proceed_one_lwp): Call maybe_hw_step.
8527 * mem-break.c (has_reinsert_breakpoints): New function.
8528 * mem-break.h (has_reinsert_breakpoints): Declare.
8529
8530 2016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
8531
8532 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
8533
8534 2016-05-17 Yao Qi <yao.qi@linaro.org>
8535
8536 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
8537 instead of find_inferior.
8538
8539 2016-05-05 Yao Qi <yao.qi@linaro.org>
8540
8541 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
8542 Initialize res to zero.
8543
8544 2016-05-05 Yao Qi <yao.qi@linaro.org>
8545
8546 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
8547 to uint32_t.
8548
8549 2016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8550
8551 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
8552 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
8553 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
8554
8555 2016-04-28 Par Olsson <par.olsson@windriver.com>
8556 Simon Marchi <simon.marchi@ericsson.com>
8557
8558 * tracepoint.c (write_inferior_int8): New function.
8559 (cmd_qtenable_disable): Write enable flag using
8560 write_inferior_int8.
8561
8562 2016-04-25 Yao Qi <yao.qi@linaro.org>
8563
8564 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
8565 (need_step_over_p): Return zero if the LWP has pending signals
8566 can be delivered on software single step target.
8567
8568 2016-04-25 Yao Qi <yao.qi@linaro.org>
8569
8570 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
8571 return instead of error.
8572
8573 2016-04-22 Yao Qi <yao.qi@linaro.org>
8574
8575 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
8576 to 23.
8577
8578 2016-04-22 Yao Qi <yao.qi@linaro.org>
8579
8580 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
8581 signal when stepping over breakpoint with software single
8582 step.
8583
8584 2016-04-21 Pedro Alves <palves@redhat.com>
8585
8586 * linux-s390-low.c (s390_collect_ptrace_register)
8587 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
8588 add casts.
8589 (s390_check_regset): Use void * instead of gdb_byte *.
8590
8591 2016-04-20 Pedro Alves <palves@redhat.com>
8592
8593 * configure: Renegerate.
8594
8595 2016-04-20 Yao Qi <yao.qi@linaro.org>
8596
8597 * linux-aarch32-low.c: Include "arch/arm-linux.h".
8598 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
8599 number 16.
8600 (arm_store_gregset): Likewise.
8601
8602 2016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
8603
8604 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
8605 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
8606 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
8607 (amd64-avx-mpx-linux.c): New rules.
8608 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
8609 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
8610 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
8611 (srv_amd64_regobj): Add amd64-avx-mpx.o.
8612 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
8613 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
8614 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
8615 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
8616 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
8617 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
8618 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
8619 * linux-x86-low.c (x86_linux_read_description): Add case for
8620 X86_XSTATE_AVX_MPX_MASK.
8621 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
8622 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
8623 init_registers_i386_avx_mpx_linux.
8624 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8625 (initialize_low_tracepoint): Call
8626 init_registers_i386_avx_mpx_linux.
8627 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8628 (initialize_low_tracepoint): Call
8629 init_registers_amd64_avx_mpx_linux.
8630 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
8631 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
8632 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
8633 declarations.
8634
8635 2016-04-18 Pedro Alves <palves@redhat.com>
8636
8637 * configure: Regenerate.
8638
8639 2016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
8640
8641 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
8642 (aarch64_emit_sub): Likewise.
8643
8644 2016-04-12 Pedro Alves <palves@redhat.com>
8645
8646 * utils.c (prepare_to_throw_exception): Delete.
8647
8648 2016-04-05 Simon Marchi <simon.marchi@ericsson.com>
8649
8650 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
8651
8652 2016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
8653
8654 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
8655
8656 2016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
8657
8658 * linux-aarch64-ipa.c: Add <elf.h> include.
8659 * linux-ppc-ipa.c: Add <elf.h> include.
8660 * linux-s390-ipa.c: Add <elf.h> include.
8661
8662 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8663
8664 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
8665 (get_raw_reg_ptr): Likewise.
8666 (get_trace_state_variable_value_ptr): Likewise.
8667 (set_trace_state_variable_value_ptr): Likewise.
8668 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
8669 char *.
8670
8671 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
8672 Marcin Kościelnicki <koriakin@0x04.net>
8673
8674 PR/17221
8675 * linux-ppc-low.c (emit_insns): New function.
8676 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
8677 (ppc_emit_prologue): New function.
8678 (ppc_emit_epilogue): New function.
8679 (ppc_emit_add): New function.
8680 (ppc_emit_sub): New function.
8681 (ppc_emit_mul): New function.
8682 (ppc_emit_lsh): New function.
8683 (ppc_emit_rsh_signed): New function.
8684 (ppc_emit_rsh_unsigned): New function.
8685 (ppc_emit_ext): New function.
8686 (ppc_emit_zero_ext): New function.
8687 (ppc_emit_log_not): New function.
8688 (ppc_emit_bit_and): New function.
8689 (ppc_emit_bit_or): New function.
8690 (ppc_emit_bit_xor): New function.
8691 (ppc_emit_bit_not): New function.
8692 (ppc_emit_equal): New function.
8693 (ppc_emit_less_signed): New function.
8694 (ppc_emit_less_unsigned): New function.
8695 (ppc_emit_ref): New function.
8696 (ppc_emit_const): New function.
8697 (ppc_emit_reg): New function.
8698 (ppc_emit_pop): New function.
8699 (ppc_emit_stack_flush): New function.
8700 (ppc_emit_swap): New function.
8701 (ppc_emit_stack_adjust): New function.
8702 (ppc_emit_call): New function.
8703 (ppc_emit_int_call_1): New function.
8704 (ppc_emit_void_call_2): New function.
8705 (ppc_emit_if_goto): New function.
8706 (ppc_emit_goto): New function.
8707 (ppc_emit_eq_goto): New function.
8708 (ppc_emit_ne_goto): New function.
8709 (ppc_emit_lt_goto): New function.
8710 (ppc_emit_le_goto): New function.
8711 (ppc_emit_gt_goto): New function.
8712 (ppc_emit_ge_goto): New function.
8713 (ppc_write_goto_address): New function.
8714 (ppc_emit_ops_impl): New static variable.
8715 (ppc64v1_emit_prologue): New function.
8716 (ppc64v2_emit_prologue): New function.
8717 (ppc64_emit_epilogue): New function.
8718 (ppc64_emit_add): New function.
8719 (ppc64_emit_sub): New function.
8720 (ppc64_emit_mul): New function.
8721 (ppc64_emit_lsh): New function.
8722 (ppc64_emit_rsh_signed): New function.
8723 (ppc64_emit_rsh_unsigned): New function.
8724 (ppc64_emit_ext): New function.
8725 (ppc64_emit_zero_ext): New function.
8726 (ppc64_emit_log_not): New function.
8727 (ppc64_emit_bit_and): New function.
8728 (ppc64_emit_bit_or): New function.
8729 (ppc64_emit_bit_xor): New function.
8730 (ppc64_emit_bit_not): New function.
8731 (ppc64_emit_equal): New function.
8732 (ppc64_emit_less_signed): New function.
8733 (ppc64_emit_less_unsigned): New function.
8734 (ppc64_emit_ref): New function.
8735 (ppc64_emit_const): New function.
8736 (ppc64v1_emit_reg): New function.
8737 (ppc64v2_emit_reg): New function.
8738 (ppc64_emit_pop): New function.
8739 (ppc64_emit_stack_flush): New function.
8740 (ppc64_emit_swap): New function.
8741 (ppc64v1_emit_call): New function.
8742 (ppc64v2_emit_call): New function.
8743 (ppc64v1_emit_int_call_1): New function.
8744 (ppc64v2_emit_int_call_1): New function.
8745 (ppc64v1_emit_void_call_2): New function.
8746 (ppc64v2_emit_void_call_2): New function.
8747 (ppc64_emit_if_goto): New function.
8748 (ppc64_emit_eq_goto): New function.
8749 (ppc64_emit_ne_goto): New function.
8750 (ppc64_emit_lt_goto): New function.
8751 (ppc64_emit_le_goto): New function.
8752 (ppc64_emit_gt_goto): New function.
8753 (ppc64_emit_ge_goto): New function.
8754 (ppc64v1_emit_ops_impl): New static variable.
8755 (ppc64v2_emit_ops_impl): New static variable.
8756 (ppc_emit_ops): New function.
8757 (linux_low_target): Wire in ppc_emit_ops.
8758
8759 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
8760 Marcin Kościelnicki <koriakin@0x04.net>
8761
8762 PR/17221
8763 * Makefile.in: Add powerpc-*-ipa.o
8764 * configure.srv: Add ipa_obj for powerpc*-linux.
8765 * linux-ppc-ipa.c: New file.
8766 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
8767 includes.
8768 (PPC_FIELD): New macro.
8769 (PPC_SEXT): New macro.
8770 (PPC_OP6): New macro.
8771 (PPC_BO): New macro.
8772 (PPC_LI): New macro.
8773 (PPC_BD): New macro.
8774 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
8775 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
8776 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
8777 (ppc_get_thread_area): New function.
8778 (is_elfv2_inferior): New function.
8779 (gen_ds_form): New function.
8780 (GEN_STD): New macro.
8781 (GEN_STDU): New macro.
8782 (GEN_LD): New macro.
8783 (GEN_LDU): New macro.
8784 (gen_d_form): New function.
8785 (GEN_ADDI): New macro.
8786 (GEN_ADDIS): New macro.
8787 (GEN_LI): New macro.
8788 (GEN_LIS): New macro.
8789 (GEN_ORI): New macro.
8790 (GEN_ORIS): New macro.
8791 (GEN_LWZ): New macro.
8792 (GEN_STW): New macro.
8793 (GEN_STWU): New macro.
8794 (gen_xfx_form): New function.
8795 (GEN_MFSPR): New macro.
8796 (GEN_MTSPR): New macro.
8797 (GEN_MFCR): New macro.
8798 (GEN_MTCR): New macro.
8799 (GEN_SYNC): New macro.
8800 (GEN_LWSYNC): New macro.
8801 (gen_x_form): New function.
8802 (GEN_OR): New macro.
8803 (GEN_MR): New macro.
8804 (GEN_LWARX): New macro.
8805 (GEN_STWCX): New macro.
8806 (GEN_CMPW): New macro.
8807 (gen_md_form): New function.
8808 (GEN_RLDICL): New macro.
8809 (GEN_RLDICR): New macro.
8810 (gen_i_form): New function.
8811 (GEN_B): New macro.
8812 (GEN_BL): New macro.
8813 (gen_b_form): New function.
8814 (GEN_BNE): New macro.
8815 (GEN_LOAD): New macro.
8816 (GEN_STORE): New macro.
8817 (gen_limm): New function.
8818 (gen_atomic_xchg): New function.
8819 (gen_call): New function.
8820 (ppc_relocate_instruction): New function.
8821 (ppc_install_fast_tracepoint_jump_pad): New function.
8822 (ppc_get_min_fast_tracepoint_insn_len): New function.
8823 (ppc_get_ipa_tdesc_idx): New function.
8824 (the_low_target): Wire in the new functions.
8825 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
8826 tdescs.
8827 * linux-ppc-tdesc.h: New file.
8828
8829 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8830
8831 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8832 (alloc_jump_pad_buffer): New function.
8833 * linux-amd64-ipa.c: Add <sys/mman.h> include.
8834 (alloc_jump_pad_buffer): New function.
8835 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
8836 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8837 (alloc_jump_pad_buffer): New function.
8838 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
8839 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
8840 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
8841 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
8842
8843 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8844
8845 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
8846 * linux-amd64-ipa.c: Likewise.
8847 * linux-i386-ipa.c: Likewise.
8848 * linux-s390-ipa.c: Likewise.
8849 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
8850 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
8851 set_trace_state_variable_value_ptr.
8852 (struct ipa_sym_addresses): Likewise.
8853 (symbol_list): Likewise.
8854 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
8855 accessing gdb_collect directly.
8856 (gdb_collect_ptr_type): New typedef.
8857 (get_raw_reg_ptr_type): New typedef.
8858 (get_trace_state_variable_value_ptr_type): New typedef.
8859 (set_trace_state_variable_value_ptr_type): New typedef.
8860 (gdb_collect_ptr): New global.
8861 (get_raw_reg_ptr): New global.
8862 (get_trace_state_variable_value_ptr): New global.
8863 (set_trace_state_variable_value_ptr): New global.
8864 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
8865 accessing get_raw_reg directly.
8866 (get_get_tsv_func_addr): Likewise for
8867 get_trace_state_variable_value_ptr.
8868 (get_set_tsv_func_addr): Likewise for
8869 set_trace_state_variable_value_ptr.
8870 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
8871
8872 2016-03-30 Simon Marchi <simon.marchi@ericsson.com>
8873
8874 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
8875
8876 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8877
8878 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
8879 packets.
8880 (relocate_instruction): Remove own_buf.
8881 * server.c (own_buf): Make global.
8882 (handle_v_requests): Make global.
8883 * server.h (own_buf): New declaration.
8884 (handle_v_requests): New prototype.
8885
8886 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8887
8888 PR 18377
8889 * linux-s390-low.c (add_insns): New function.
8890 (s390_emit_prologue): New function.
8891 (s390_emit_epilogue): New function.
8892 (s390_emit_add): New function.
8893 (s390_emit_sub): New function.
8894 (s390_emit_mul): New function.
8895 (s390_emit_lsh): New function.
8896 (s390_emit_rsh_signed): New function.
8897 (s390_emit_rsh_unsigned): New function.
8898 (s390_emit_ext): New function.
8899 (s390_emit_log_not): New function.
8900 (s390_emit_bit_and): New function.
8901 (s390_emit_bit_or): New function.
8902 (s390_emit_bit_xor): New function.
8903 (s390_emit_bit_not): New function.
8904 (s390_emit_equal): New function.
8905 (s390_emit_less_signed): New function.
8906 (s390_emit_less_unsigned): New function.
8907 (s390_emit_ref): New function.
8908 (s390_emit_if_goto): New function.
8909 (s390_emit_goto): New function.
8910 (s390_write_goto_address): New function.
8911 (s390_emit_litpool): New function.
8912 (s390_emit_const): New function.
8913 (s390_emit_call): New function.
8914 (s390_emit_reg): New function.
8915 (s390_emit_pop): New function.
8916 (s390_emit_stack_flush): New function.
8917 (s390_emit_zero_ext): New function.
8918 (s390_emit_swap): New function.
8919 (s390_emit_stack_adjust): New function.
8920 (s390_emit_set_r2): New function.
8921 (s390_emit_int_call_1): New function.
8922 (s390_emit_void_call_2): New function.
8923 (s390_emit_eq_goto): New function.
8924 (s390_emit_ne_goto): New function.
8925 (s390_emit_lt_goto): New function.
8926 (s390_emit_le_goto): New function.
8927 (s390_emit_gt_goto): New function.
8928 (s390_emit_ge_goto): New function.
8929 (s390x_emit_prologue): New function.
8930 (s390x_emit_epilogue): New function.
8931 (s390x_emit_add): New function.
8932 (s390x_emit_sub): New function.
8933 (s390x_emit_mul): New function.
8934 (s390x_emit_lsh): New function.
8935 (s390x_emit_rsh_signed): New function.
8936 (s390x_emit_rsh_unsigned): New function.
8937 (s390x_emit_ext): New function.
8938 (s390x_emit_log_not): New function.
8939 (s390x_emit_bit_and): New function.
8940 (s390x_emit_bit_or): New function.
8941 (s390x_emit_bit_xor): New function.
8942 (s390x_emit_bit_not): New function.
8943 (s390x_emit_equal): New function.
8944 (s390x_emit_less_signed): New function.
8945 (s390x_emit_less_unsigned): New function.
8946 (s390x_emit_ref): New function.
8947 (s390x_emit_if_goto): New function.
8948 (s390x_emit_const): New function.
8949 (s390x_emit_call): New function.
8950 (s390x_emit_reg): New function.
8951 (s390x_emit_pop): New function.
8952 (s390x_emit_stack_flush): New function.
8953 (s390x_emit_zero_ext): New function.
8954 (s390x_emit_swap): New function.
8955 (s390x_emit_stack_adjust): New function.
8956 (s390x_emit_int_call_1): New function.
8957 (s390x_emit_void_call_2): New function.
8958 (s390x_emit_eq_goto): New function.
8959 (s390x_emit_ne_goto): New function.
8960 (s390x_emit_lt_goto): New function.
8961 (s390x_emit_le_goto): New function.
8962 (s390x_emit_gt_goto): New function.
8963 (s390x_emit_ge_goto): New function.
8964 (s390_emit_ops): New function.
8965 (struct linux_target_ops): Fill in emit_ops hook.
8966
8967 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8968
8969 PR 18377
8970 * Makefile.in: Add s390 IPA files.
8971 * configure.srv: Build IPA for s390.
8972 * linux-s390-ipa.c: New file.
8973 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
8974 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
8975 (tdesc_s390_linux32): Likewise.
8976 (init_registers_s390_linux32v1): Likewise.
8977 (tdesc_s390_linux32v1): Likewise.
8978 (init_registers_s390_linux32v2): Likewise.
8979 (tdesc_s390_linux32v2): Likewise.
8980 (init_registers_s390_linux64): Likewise.
8981 (tdesc_s390_linux64): Likewise.
8982 (init_registers_s390_linux64v1): Likewise.
8983 (tdesc_s390_linux64v1): Likewise.
8984 (init_registers_s390_linux64v2): Likewise.
8985 (tdesc_s390_linux64v2): Likewise.
8986 (init_registers_s390_te_linux64): Likewise.
8987 (tdesc_s390_te_linux64): Likewise.
8988 (init_registers_s390_vx_linux64): Likewise.
8989 (tdesc_s390_vx_linux64): Likewise.
8990 (init_registers_s390_tevx_linux64): Likewise.
8991 (tdesc_s390_tevx_linux64): Likewise.
8992 (init_registers_s390x_linux64): Likewise.
8993 (tdesc_s390x_linux64): Likewise.
8994 (init_registers_s390x_linux64v1): Likewise.
8995 (tdesc_s390x_linux64v1): Likewise.
8996 (init_registers_s390x_linux64v2): Likewise.
8997 (tdesc_s390x_linux64v2): Likewise.
8998 (init_registers_s390x_te_linux64): Likewise.
8999 (tdesc_s390x_te_linux64): Likewise.
9000 (init_registers_s390x_vx_linux64): Likewise.
9001 (tdesc_s390x_vx_linux64): Likewise.
9002 (init_registers_s390x_tevx_linux64): Likewise.
9003 (tdesc_s390x_tevx_linux64): Likewise.
9004 (have_hwcap_s390_vx): New static variable.
9005 (s390_arch_setup): Fill have_hwcap_s390_vx.
9006 (s390_get_thread_area): New function.
9007 (s390_ft_entry_gpr_esa): New const.
9008 (s390_ft_entry_gpr_zarch): New const.
9009 (s390_ft_entry_misc): New const.
9010 (s390_ft_entry_fr): New const.
9011 (s390_ft_entry_vr): New const.
9012 (s390_ft_main_31): New const.
9013 (s390_ft_main_64): New const.
9014 (s390_ft_exit_fr): New const.
9015 (s390_ft_exit_vr): New const.
9016 (s390_ft_exit_misc): New const.
9017 (s390_ft_exit_gpr_esa): New const.
9018 (s390_ft_exit_gpr_zarch): New const.
9019 (append_insns): New function.
9020 (s390_relocate_instruction): New function.
9021 (s390_install_fast_tracepoint_jump_pad): New function.
9022 (s390_get_min_fast_tracepoint_insn_len): New function.
9023 (s390_get_ipa_tdesc_idx): New function.
9024 (struct linux_target_ops): Wire in the above functions.
9025 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
9026 * linux-s390-tdesc.h: New file.
9027
9028 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
9029
9030 * linux-s390-low.c (s390_supports_tracepoints): New function.
9031 (struct linux_target_ops): Fill supports_tracepoints hook.
9032
9033 2016-03-18 Yao Qi <yao.qi@linaro.org>
9034
9035 * linux-low.c (lwp_signal_can_be_delivered): New function.
9036 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
9037
9038 2016-03-18 Yao Qi <yao.qi@linaro.org>
9039
9040 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
9041 0 if signal is enqueued. Remove 'signal' from one debugging
9042 message. Move one debugging message to some lines below.
9043 Remove code setting 'signal' to 0.
9044
9045 2016-03-18 Yao Qi <yao.qi@linaro.org>
9046
9047 * linux-low.c (linux_low_filter_event): Remove redundant
9048 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
9049
9050 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
9051
9052 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
9053 (struct linux_target_ops): Wire in the above.
9054
9055 2016-03-03 Yao Qi <yao.qi@linaro.org>
9056
9057 * linux-low.c: Update comments to start_step_over.
9058
9059 2016-03-03 Yao Qi <yao.qi@linaro.org>
9060
9061 PR server/19736
9062 * linux-low.c (handle_extended_wait): Set child suspended
9063 if event_lwp->bp_reinsert isn't zero.
9064
9065 2016-03-02 Yao Qi <yao.qi@linaro.org>
9066
9067 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
9068 enqueue_pending_signal.
9069
9070 2016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
9071
9072 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
9073 is actually loaded.
9074
9075 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
9076
9077 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
9078 (s390_regmap_3264) [!__s390x__]: New global.
9079 (s390_collect_ptrace_register): Skip map entries containing -1.
9080 (s390_supply_ptrace_register): Ditto.
9081 (s390_fill_gprs_high): New function.
9082 (s390_store_gprs_high): New function.
9083 (s390_regsets): Add NT_S390_HIGH_GPRS.
9084 (s390_get_hwcap): Enable on 31-bit.
9085 (have_hwcap_s390_high_gprs): Enable on 31-bit.
9086 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
9087 Detect NT_S390_HIGH_GPRS.
9088 (s390_usrregs_info_3264): Enable on 31-bit.
9089 (s390_regs_info): Enable regs_info_3264 on 31-bit.
9090 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
9091
9092 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
9093
9094 PR gdb/13808
9095 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
9096 * configure.srv: Ditto.
9097 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
9098 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
9099 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
9100 (init_registers_amd64_linux): Remove prototype.
9101 (tdesc_amd64_linux): Remove declaration.
9102 (get_ipa_tdesc): New function.
9103 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
9104 initialize remaining tdescs.
9105 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
9106 (init_registers_i386_linux): Remove prototype.
9107 (tdesc_i386_linux): Remove declaration.
9108 (get_ipa_tdesc): New function.
9109 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
9110 initialize remaining tdescs.
9111 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
9112 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
9113 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
9114 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
9115 (x86_get_ipa_tdesc_idx): New function.
9116 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
9117 * linux-x86-tdesc.h: New file.
9118 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
9119 (target_get_ipa_tdesc_idx): New macro.
9120 * tracepoint.c (ipa_tdesc_idx): New macro.
9121 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
9122 (symbol_list): Add ipa_tdesc_idx.
9123 (cmd_qtstart): Write ipa_tdesc_idx in the target.
9124 (ipa_tdesc): Remove.
9125 (ipa_tdesc_idx): New variable.
9126 (get_context_regcache): Use get_ipa_tdesc.
9127 (gdb_collect): Ditto.
9128 (gdb_probe): Ditto.
9129 * tracepoint.h (get_ipa_tdesc): New prototype.
9130 (ipa_tdesc): Remove.
9131
9132 2016-02-24 Pedro Alves <palves@redhat.com>
9133
9134 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
9135 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
9136 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
9137 Factor out common code between the USE_SIGTRAP_SIGINFO and
9138 !USE_SIGTRAP_SIGINFO blocks.
9139 (linux_low_filter_event): Call save_stop_reason instead of
9140 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
9141 Update comments.
9142 (linux_wait_1): Update comments.
9143
9144 2016-02-24 Wei-cheng Wang <cole945@gmail.com>
9145
9146 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
9147 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
9148 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
9149 ppc_insert_point, ppc_remove_point.
9150
9151 2016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
9152
9153 * linux-s390-low.c (s390_supports_z_point_type): New function.
9154 (struct linux_target_ops): Wire s390_supports_z_point_type in.
9155
9156 2016-02-16 Yao Qi <yao.qi@linaro.org>
9157
9158 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
9159 PC. Get pc from regcache_read_pc.
9160
9161 2016-02-12 Yao Qi <yao.qi@linaro.org>
9162
9163 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
9164 or linux_get_pc_32bit.
9165 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
9166
9167 2016-02-12 Yao Qi <yao.qi@linaro.org>
9168
9169 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
9170 arm_linux_get_next_pcs_fixup.
9171
9172 2016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
9173
9174 * tracepoint.c (x_tracepoint_action_download): Change
9175 write_inferior_data_ptr to write_inferior_data_pointer.
9176 (cmd_qtstart): Likewise.
9177 (write_inferior_data_ptr): Remove.
9178 (download_agent_expr): Change write_inferior_data_ptr to
9179 write_inferior_data_pointer.
9180 (download_tracepoint_1): Likewise.
9181 (download_tracepoint): Likewise.
9182 (download_trace_state_variables): Likewise.
9183
9184 2016-02-11 Wei-cheng Wang <cole945@gmail.com>
9185 Marcin Kościelnicki <koriakin@0x04.net>
9186
9187 * tracepoint.c (struct tracepoint_action_ops): Remove.
9188 (struct tracepoint_action): Remove ops.
9189 (m_tracepoint_action_download, r_tracepoint_action_download)
9190 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
9191 size and offset accordingly.
9192 (m_tracepoint_action_ops, r_tracepoint_action_ops)
9193 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
9194 (tracepoint_action_send, tracepoint_action_download): New functions.
9195 Helpers for trace action handlers.
9196 (add_tracepoint_action): Remove setup actions ops.
9197 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
9198
9199 2016-02-10 Yao Qi <yao.qi@linaro.org>
9200
9201 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
9202
9203 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
9204
9205 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
9206 to AC_OUTPUT.
9207 * configure: Regenerate.
9208
9209 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
9210
9211 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
9212 void * to gdb_byte *.
9213 * linux-low.c (siginfo_fixup): Likewise.
9214 (linux_xfer_siginfo): Likewise.
9215 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
9216 Likewise.
9217 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
9218
9219 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
9220
9221 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
9222 to srv_tgtobj.
9223 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
9224 to srv_tgtobj.
9225 * linux-x86-low.c [__x86_64__]: Include
9226 "nat/amd64-linux-siginfo.h".
9227 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
9228 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
9229 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
9230 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
9231 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
9232 (cpt_si_fd, si_timerid, si_overrun): Move from
9233 nat/amd64-linux-siginfo.c.
9234 * Makefile.in (amd64-linux-siginfo.o:): New rule.
9235
9236 2016-01-28 Simon Marchi <simon.marchi@ericsson.com>
9237
9238 * server.c (skip_to_semicolon): Remove.
9239 (process_point_options): Use strchrnul instead of
9240 skip_to_semicolon.
9241
9242 2016-01-26 Yao Qi <yao.qi@linaro.org>
9243
9244 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
9245 * linux-low.c (install_software_single_step_breakpoints): Don't
9246 call regcache_read_pc.
9247 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
9248 argument pc.
9249
9250 2016-01-26 Yao Qi <yao.qi@linaro.org>
9251
9252 * linux-low.c (install_software_single_step_breakpoints): Call
9253 regcache_read_pc instead of get_pc.
9254
9255 2016-01-26 Yao Qi <yao.qi@linaro.org>
9256
9257 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
9258 (unblock_async_io): Rename to ...
9259 (block_unblock_async_io): ... it. New function.
9260 (enable_async_io): Don't install SIGIO handler. Unblock it
9261 instead.
9262 (disable_async_io): Don't ignore SIGIO. Block it instead.
9263 (initialize_async_io): Install SIGIO handler. Don't call
9264 unblock_async_io.
9265
9266 2016-01-26 Yao Qi <yao.qi@linaro.org>
9267
9268 * remote-utils.c (getpkt): If the buffer isn't empty, and the
9269 first character is '\003', call *the_target->request_interrupt.
9270
9271 2016-01-25 Yao Qi <yao.qi@linaro.org>
9272
9273 * remote-utils.c (new_thread_notify): Remove.
9274 (dead_thread_notify): Likewise.
9275 * remote-utils.h (new_thread_notify): Remove declaration.
9276 (dead_thread_notify): Likewise.
9277
9278 2016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
9279
9280 * gdb.trace/pending.exp: Fix expected message on continue.
9281
9282 2016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
9283
9284 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
9285 it works properly on big-endian machines where sizeof (CORE_ADDR)
9286 != sizeof (void *).
9287
9288 2016-01-21 Pedro Alves <palves@redhat.com>
9289
9290 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
9291 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
9292 * configure: Regenerate.
9293
9294 2016-01-21 Yao Qi <yao.qi@linaro.org>
9295
9296 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
9297 is_thumb and set it according to CPSR saved on the stack.
9298 (get_next_pcs_syscall_next_pc): Pass is_thumb to
9299 arm_sigreturn_next_pc.
9300
9301 2016-01-18 Yao Qi <yao.qi@linaro.org>
9302
9303 * linux-low.c (linux_set_pc_64bit): New function.
9304 (linux_get_pc_64bit): New function.
9305 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
9306 Declare.
9307 * linux-sparc-low.c (debug_threads): Remove declaration.
9308 (sparc_get_pc): Remove.
9309 (the_low_target): Use linux_get_pc_64bit instead of
9310 sparc_get_pc.
9311 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
9312 (the_low_target): Use linux_get_pc_64bit and
9313 linux_set_pc_64bit.
9314
9315 2016-01-18 Yao Qi <yao.qi@linaro.org>
9316
9317 * linux-arm-low.c (debug_threads): Remove declaration.
9318 (arm_get_pc, arm_set_pc): Remove.
9319 (the_low_target): Use linux_get_pc_32bit and
9320 linux_set_pc_32bit.
9321 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
9322 (the_low_target): Use linux_get_pc_32bit and
9323 linux_set_pc_32bit.
9324 * linux-cris-low.c (debug_threads): Remove declaration.
9325 (cris_get_pc, cris_set_pc,): Remove.
9326 (the_low_target): Use linux_get_pc_32bit and
9327 linux_set_pc_32bit.
9328 * linux-crisv32-low.c (debug_threads): Remove declaration.
9329 (cris_get_pc, cris_set_pc): Remove.
9330 (the_low_target): Use linux_get_pc_32bit and
9331 linux_set_pc_32bit.
9332 * linux-low.c: Include inttypes.h.
9333 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
9334 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
9335 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
9336 (the_low_target): Use linux_get_pc_32bit and
9337 linux_set_pc_32bit.
9338 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
9339 (the_low_target): Use linux_get_pc_32bit and
9340 linux_set_pc_32bit.
9341 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
9342 (the_low_target): Use linux_get_pc_32bit and
9343 linux_set_pc_32bit.
9344 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
9345 (the_low_target): Use linux_get_pc_32bit and
9346 linux_set_pc_32bit.
9347 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
9348 (the_low_target): Use linux_get_pc_32bit and
9349 linux_set_pc_32bit.
9350
9351 2016-01-18 Gary Benson <gbenson@redhat.com>
9352
9353 * configure.ac (AC_FUNC_FORK): New check.
9354 * config.in: Regenerate.
9355 * configure: Likewise.
9356
9357 2016-01-14 Yao Qi <yao.qi@linaro.org>
9358
9359 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
9360 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
9361 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
9362 arm_get_next_pcs_ctor.
9363
9364 2016-01-12 Josh Stone <jistone@redhat.com>
9365 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9366
9367 * inferiors.h: Include "gdb_vecs.h".
9368 (struct process_info): Add syscalls_to_catch.
9369 * inferiors.c (remove_process): Free syscalls_to_catch.
9370 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
9371 syscall_return stops.
9372 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
9373 * server.c (handle_general_set): Handle QCatchSyscalls.
9374 (handle_query): Report support for QCatchSyscalls.
9375 * target.h (struct target_ops): Add supports_catch_syscall.
9376 (target_supports_catch_syscall): New macro.
9377 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
9378 (struct lwp_info): Add syscall_state.
9379 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
9380 Maintain syscall_state and syscalls_to_catch across exec.
9381 (get_syscall_trapinfo): New function, proxy to the_low_target.
9382 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
9383 (linux_low_filter_event): Toggle syscall_state entry/return for
9384 syscall traps, and set it ignored for all others.
9385 (gdb_catching_syscalls_p): New function.
9386 (gdb_catch_this_syscall_p): New function.
9387 (linux_wait_1): Handle SYSCALL_SIGTRAP.
9388 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
9389 (linux_supports_catch_syscall): New function.
9390 (linux_target_ops): Install it.
9391 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
9392 (the_low_target): Install it.
9393
9394 2016-01-12 Mike Frysinger <vapier@gentoo.org>
9395
9396 * acinclude.m4: Include new ../warning.m4 file.
9397 * configure: Regenerated.
9398 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
9399
9400 2016-01-12 Mike Frysinger <vapier@gentoo.org>
9401
9402 * ax.c (is_goto_target): Mark static.
9403 * linux-low.c (register_addr): Likewise.
9404 (linux_fetch_registers, linux_store_registers): Likewise.
9405 * mem-break.c (any_persistent_commands): Fix old prototype.
9406 (add_commands_to_breakpoint): Mark static.
9407 * regcache.c (find_register_by_name): Delete unused func.
9408 * remote-utils.c (hex_or_minus_one): Mark static.
9409 * server.c (monitor_show_help): Mark static.
9410 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
9411 handle_v_requests): Likewise.
9412
9413 2016-01-12 Pedro Alves <palves@redhat.com>
9414
9415 Remove use of the registered trademark symbol throughout.
9416
9417 2016-01-08 Yao Qi <yao.qi@linaro.org>
9418
9419 * remote-utils.c (getpkt): If c is '\003', call target hook
9420 request_interrupt.
9421
9422 2016-01-06 Yao Qi <yao.qi@linaro.org>
9423
9424 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
9425 linux-aarch32-low.c.
9426 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9427 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
9428 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9429 (thumb2_breakpoint): Declare.
9430 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
9431 linux-aarch32-low.h.
9432 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9433 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
9434 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9435
9436 2016-01-01 Joel Brobecker <brobecker@adacore.com>
9437
9438 * gdbreplay.c (gdbreplay_version): Change copyright year in
9439 version message.
9440 * server.c (gdbserver_version): Likewise.
9441
9442 2015-12-28 Patrick Palka <patrick@parcs.ath.cx>
9443
9444 * server.c (crc32_table): Delete.
9445 (crc32): Use libiberty's xcrc32 function.
9446
9447 2015-12-22 Joel Brobecker <brobecker@adacore.com>
9448
9449 * lynx-low.c (lynx_delete_thread_callback): New function.
9450 (lynx_mourn): Properly delete our process and all of its
9451 threads. Remove call to clear_inferiors.
9452
9453 2015-12-22 Joel Brobecker <brobecker@adacore.com>
9454
9455 * target.c (thread_search_callback): Add check that
9456 the thread_stopped target callback is not NULL before
9457 calling it.
9458
9459 2015-12-21 Yao Qi <yao.qi@linaro.org>
9460
9461 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
9462 arm breakpoint.
9463
9464 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9465
9466 * server.c (handle_query): Call target_supports_software_single_step.
9467
9468 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9469
9470 * linux-low.c (single_step): New function.
9471 (linux_resume_one_lwp_throw): Call single_step.
9472 (start_step_over): Likewise.
9473
9474 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9475
9476 * Makefile.in (SFILES): Append arch/arm-linux.c,
9477 arch/arm-get-next-pcs.c.
9478 (arm-linux.o): New rule.
9479 (arm-get-next-pcs.o): New rule.
9480 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
9481 arm-linux.o.
9482 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
9483 to linux-aarch32-low.c.
9484 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9485 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9486 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9487 (thumb2_breakpoint_len): Likewise.
9488 (arm_is_thumb_mode): Make non-static.
9489 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
9490 from linux-aarch32-low.c.
9491 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9492 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9493 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9494 (thumb2_breakpoint_len): Likewise.
9495 (arm_is_thumb_mode): New declaration.
9496 * linux-arm-low.c: Include arch/arm-linux.h
9497 aarch/arm-get-next-pcs.h, sys/syscall.h.
9498 (get_next_pcs_ops): New struct.
9499 (get_next_pcs_addr_bits_remove): New function.
9500 (get_next_pcs_is_thumb): New function.
9501 (get_next_pcs_read_memory_unsigned_integer): Likewise.
9502 (arm_sigreturn_next_pc): Likewise.
9503 (get_next_pcs_syscall_next_pc): Likewise.
9504 (arm_gdbserver_get_next_pcs): Likewise.
9505 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
9506 Initialize.
9507 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
9508 * server.h: Include gdb_vecs.h.
9509
9510 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9511
9512 * Makefile.in (SFILES): Append common/common-regcache.c.
9513 (OBS): Append common-regcache.o.
9514 (common-regcache.o): New rule.
9515 * regcache.c (init_register_cache): Initialize cache to
9516 REG_UNAVAILABLE.
9517 (regcache_raw_read_unsigned): New function.
9518 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
9519 register_status enum.
9520
9521 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9522
9523 * linux-aarch64-low.c (the_low_targets): Rename
9524 breakpoint_reinsert_addr to get_next_pcs.
9525 * linux-arm-low.c (the_low_targets): Likewise.
9526 * linux-bfin-low.c (the_low_targets): Likewise.
9527 * linux-cris-low.c (the_low_targets): Likewise.
9528 * linux-crisv32-low.c (the_low_targets): Likewise.
9529 * linux-low.c (can_software_single_step): Likewise.
9530 (install_software_single_step_breakpoints): New function.
9531 (start_step_over): Use install_software_single_step_breakpoints.
9532 * linux-low.h: New CORE_ADDR vector.
9533 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
9534 get_next_pcs.
9535 * linux-mips-low.c (the_low_targets): Likewise.
9536 * linux-nios2-low.c (the_low_targets): Likewise.
9537 * linux-sparc-low.c (the_low_targets): Likewise.
9538
9539 2015-12-17 Pedro Alves <palves@redhat.com>
9540
9541 * linux-low.c (linux_kill_one_lwp): Remove references to
9542 LinuxThreads.
9543 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
9544 to 'kill'.
9545 (linux_init_signals): Delete.
9546 (initialize_low): Adjust.
9547 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
9548
9549 2015-12-16 Pedro Alves <palves@redhat.com>
9550
9551 * configure.ac (compiler warning flags): When testing a
9552 -Wno-foo option, check whether -Wfoo works instead.
9553 * configure: Regenerate.
9554
9555 2015-12-11 Don Breazeal <donb@codesourcery.com>
9556
9557 * server.c (process_serial_event): Don't exit from gdbserver
9558 in remote mode if there are still active inferiors.
9559
9560 2015-12-11 Yao Qi <yao.qi@linaro.org>
9561
9562 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
9563 arm_breakpoint_at if the process is 32-bit.
9564
9565 2015-12-11 Yao Qi <yao.qi@linaro.org>
9566
9567 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
9568 arm breakpoint.
9569
9570 2015-12-07 Yao Qi <yao.qi@linaro.org>
9571
9572 * configure.srv: Append arm.o to srv_tgtobj for
9573 aarch64*-*-linux* target.
9574 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
9575 from linux-arm-low.c.
9576 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9577 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9578 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9579 (thumb2_breakpoint_len): Likewise.
9580 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
9581 (arm_breakpoint_kinds): Likewise.
9582 (arm_breakpoint_kind_from_pc): Likewise.
9583 (arm_sw_breakpoint_from_kind): Likewise.
9584 (arm_breakpoint_kind_from_current_state): Likewise.
9585 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
9586 (arm_sw_breakpoint_from_kind): Declare.
9587 (arm_breakpoint_kind_from_current_state): Declare.
9588 (arm_breakpoint_at): Declare.
9589 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
9590 arm_sw_breakpoint_from_kind if process is 32-bit.
9591 (aarch64_breakpoint_kind_from_pc): New function.
9592 (aarch64_breakpoint_kind_from_current_state): New function.
9593 (the_low_target): Initialize fields breakpoint_kind_from_pc
9594 and breakpoint_kind_from_current_state.
9595 * linux-arm-low.c (arm_breakpoint_kinds): Move to
9596 linux-aarch32-low.c.
9597 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
9598 (arm_breakpoint, arm_breakpoint_len): Likewise.
9599 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
9600 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9601 (arm_is_thumb_mode): Likewise.
9602 (arm_breakpoint_at): Likewise.
9603 (arm_breakpoint_kind_from_pc): Likewise.
9604 (arm_sw_breakpoint_from_kind): Likewise.
9605 (arm_breakpoint_kind_from_current_state): Likewise.
9606
9607 Revert:
9608 2015-08-04 Yao Qi <yao.qi@linaro.org>
9609
9610 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
9611 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
9612 * server.c (extended_protocol): Remove "static".
9613 * server.h (extended_protocol): Declare it.
9614
9615 2015-12-04 Josh Stone <jistone@redhat.com>
9616
9617 * target.h (struct target_ops) <arch_setup>: Rename to ...
9618 (struct target_ops) <post_create_inferior>: ... this.
9619 (target_arch_setup): Rename to ...
9620 (target_post_create_inferior): ... this, calling post_create_inferior.
9621 * server.c (start_inferior): Update target_arch_setup calls to
9622 target_post_create_inferior.
9623 * linux-low.c (linux_low_ptrace_options): Forward declare.
9624 (linux_arch_setup): Update its comment for general use.
9625 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
9626 (struct linux_target_ops): Use linux_post_create_inferior.
9627 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
9628 to post_create_inferior.
9629 * nto-low.c (struct nto_target_ops): Likewise.
9630 * spu-low.c (struct spu_target_ops): Likewise.
9631 * win32-low.c (struct win32_target_ops): Likewise.
9632
9633 2015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
9634
9635 * linux-arm-low.c: Remove duplicate arch/arm.h include.
9636
9637 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9638
9639 * linux-arm-low.c (arm_reinsert_addr): Remove function.
9640 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
9641 * linux-cris-low.c (cris_reinsert_addr> Remove function.
9642 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9643 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
9644 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9645 * linux-mips-low.c (mips_reinsert_addr): Remove function.
9646 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9647 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
9648 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9649 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
9650 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9651
9652 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9653
9654 * linux-low.c (linux_look_up_symbols): Don't call
9655 linux_supports_traceclone.
9656 * linux-low.h (thread_db_init): Remove use_events argument.
9657 * thread-db.c (thread_db_use_event): Remove global variable.
9658 (struct thread_db) <td_thr_event_enable_p>: Remove field.
9659 (struct thread_db) <td_create_bp>: Remove field.
9660 (thread_db_create_event): Remove function.
9661 (thread_db_enable_reporting): Likewise.
9662 (find_one_thread): Don't check for thread_db_use_events.
9663 (attach_thread): Likewise.
9664 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
9665 (try_thread_db_load_1): Don't check for thread_db_use_events.
9666 (thread_db_init): Remove use_events argument and thread events
9667 handling.
9668 (remove_thread_event_breakpoints): Remove function.
9669 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
9670
9671 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9672
9673 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
9674 New function.
9675 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9676 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
9677 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9678 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
9679 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
9680 Initialize.
9681 * linux-crisv32-low.c (cris_supports_hardware_single_step):
9682 New function.
9683 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9684 * linux-low.c (can_hardware_single_step): Use
9685 supports_hardware_single_step.
9686 (can_software_single_step): New function.
9687 (start_step_over): Call can_software_single_step.
9688 (linux_supports_hardware_single_step): New function.
9689 (struct target_ops) <supports_software_single_step>: Initialize.
9690 * linux-low.h (struct linux_target_ops)
9691 <supports_hardware_single_step>: Initialize.
9692 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
9693 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9694 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
9695 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
9696 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
9697 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9698 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
9699 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9700 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
9701 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
9702 Initialize.
9703 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
9704 (struct linux_target_ops) <tile_supports_hardware_single_step>:
9705 Initialize.
9706 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
9707 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9708 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
9709 New function.
9710 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9711 * target.h (struct target_ops): <supports_software_single_step>:
9712 New field.
9713 (target_supports_software_single_step): New macro.
9714
9715 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9716
9717 * linux-low.c (linux_wait_1): Fix pc advance condition.
9718 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
9719 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
9720
9721 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9722
9723 * linux-arm-low.c (arm_is_thumb_mode): New function.
9724 (arm_breakpoint_at): Use arm_is_thumb_mode.
9725 (arm_breakpoint_kind_from_current_state): New function.
9726 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
9727 Initialize.
9728 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
9729 (linux_breakpoint_kind_from_current_state): New function.
9730 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
9731 * linux-low.h (struct linux_target_ops)
9732 <breakpoint_kind_from_current_state>: New field.
9733 * target.h (struct target_ops): Likewise.
9734 (target_breakpoint_kind_from_current_state): New macro.
9735
9736 2015-11-30 Pedro Alves <palves@redhat.com>
9737
9738 * linux-low.c (linux_resume): Wake up the event loop before
9739 returning.
9740
9741 2015-11-30 Pedro Alves <palves@redhat.com>
9742
9743 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
9744 check.
9745 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
9746 to -1.
9747 * target.c (struct thread_search): New structure.
9748 (thread_search_callback): New function.
9749 (prev_general_thread): New global.
9750 (prepare_to_access_memory, done_accessing_memory): New functions.
9751 * target.h (prepare_to_access_memory, done_accessing_memory):
9752 Replace macros with function declarations.
9753
9754 2015-11-30 Pedro Alves <palves@redhat.com>
9755
9756 PR 14618
9757 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
9758 report TARGET_WAITKIND_NO_RESUMED.
9759 * remote-utils.c (prepare_resume_reply): Handle
9760 TARGET_WAITKIND_NO_RESUMED.
9761 * server.c (report_no_resumed): New global.
9762 (handle_query) <qSupported>: Handle "no-resumed+". Report
9763 "no-resumed+" support.
9764 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
9765 return error if the client doesn't support no-resumed events.
9766 (push_stop_notification): New function.
9767 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
9768 events if the client supports them.
9769
9770 2015-11-30 Pedro Alves <palves@redhat.com>
9771
9772 * linux-low.c (thread_still_has_status_pending_p): Don't check
9773 vCont;t here.
9774 (lwp_resumed): New function.
9775 (status_pending_p_callback): Return early if the LWP is not
9776 supposed to be resumed.
9777
9778 2015-11-30 Pedro Alves <palves@redhat.com>
9779
9780 * linux-low.c (handle_extended_wait): Assert that the LWP's
9781 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
9782 thread create events, leave the new child's status pending.
9783 (linux_low_filter_event): If GDB wants to hear about thread exit
9784 events, leave the LWP marked dead and don't delete it.
9785 (linux_wait_for_event_filtered): Don't check for thread exit.
9786 (filter_exit_event): New function.
9787 (linux_wait_1): Use it, when returning an exit event.
9788 (linux_resume_one_lwp_throw): Assert that the LWP's
9789 waitstatus is TARGET_WAITKIND_IGNORE.
9790 * remote-utils.c (prepare_resume_reply): Handle
9791 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
9792 * server.c (report_thread_events): New global.
9793 (handle_general_set): Handle QThreadEvents.
9794 (handle_query) <qSupported>: Handle and report QThreadEvents+;
9795 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
9796 TARGET_WAITKIND_THREAD_EXITED.
9797 * server.h (report_thread_events): Declare.
9798
9799 2015-11-30 Pedro Alves <palves@redhat.com>
9800
9801 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
9802 the thread's last_resume_kind was resume_stop.
9803
9804 2015-11-30 Pedro Alves <palves@redhat.com>
9805
9806 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
9807 before returning.
9808
9809 2015-11-30 Pedro Alves <palves@redhat.com>
9810
9811 * server.c (handle_v_requests): Handle vCtrlC.
9812
9813 2015-11-30 Pedro Alves <palves@redhat.com>
9814
9815 * gdbthread.h (find_any_thread_of_pid): Declare.
9816 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
9817 functions.
9818 * server.c (handle_query): If current_thread is NULL, look for
9819 another thread of the selected process.
9820
9821 2015-11-26 Daniel Colascione <dancol@dancol.org>
9822 Simon Marchi <simon.marchi@ericsson.com>
9823
9824 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
9825 * server.c (handle_qxfer_threads_worker): Refactor to include thread
9826 name in reply.
9827 * target.h (struct target_ops) <thread_name>: New field.
9828 (target_thread_name): New macro.
9829
9830 2015-11-23 Joel Brobecker <brobecker@adacore.com>
9831
9832 * regcache.h (regcache_invalidate_pid): Add declaration.
9833 * regcache.c (regcache_invalidate_pid): New function, extracted
9834 from regcache_invalidate.
9835 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
9836 Add trivial documentation comment.
9837 * lynx-low.c: Use regcache_invalidate_pid instead of
9838 regcache_invalidate.
9839
9840 2015-11-23 Joel Brobecker <brobecker@adacore.com>
9841
9842 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
9843 and Elf64_auxv_t if the target is Android.
9844
9845 2015-11-22 Doug Evans <xdje42@gmail.com>
9846
9847 * target.h: #include <sys/types.h>.
9848
9849 2015-11-19 Pedro Alves <palves@redhat.com>
9850
9851 * linux-low.c (linux_process_qsupported): Change prototype.
9852 Adjust.
9853 * linux-low.h (struct linux_target_ops) <process_qsupported>:
9854 Change prototype.
9855 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
9856 and adjust to loop over all features.
9857 * server.c (handle_query) <qSupported>: Adjust to call
9858 target_process_qsupported once, passing it a vector of unprocessed
9859 features.
9860 * target.h (struct target_ops) <process_qsupported>: Change
9861 prototype.
9862 (target_process_qsupported): Adjust.
9863
9864 2015-11-19 Pedro Alves <palves@redhat.com>
9865
9866 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
9867 mode.
9868 * configure: Regenerate.
9869
9870 2015-11-19 Pedro Alves <palves@redhat.com>
9871
9872 * configure: Regenerate.
9873
9874 2015-11-19 Yao Qi <yao.qi@linaro.org>
9875
9876 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
9877 type to uint32_t.
9878
9879 2015-11-19 Yao Qi <yao.qi@linaro.org>
9880
9881 * linux-aarch64-low.c (enum aarch64_operand_type): New.
9882 (struct aarch64_operand): Move enum out.
9883
9884 2015-11-19 Yao Qi <yao.qi@linaro.org>
9885
9886 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
9887 struct user_fpsimd_state *.
9888 (aarch64_store_fpregset): Likewise.
9889
9890 2015-11-19 Yao Qi <yao.qi@linaro.org>
9891
9892 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
9893 struct user_pt_regs *.
9894 (aarch64_store_gregset): Likewise.
9895
9896 2015-11-18 Pedro Alves <palves@redhat.com>
9897
9898 * Makefile.in (all_object_files): Add $IPA_OBJS.
9899
9900 2015-11-17 Pedro Alves <palves@redhat.com>
9901
9902 * win32-low.c (win32_resume): Use gdb_signal_from_host,
9903 GDB_SIGNAL_0 and gdb_signal_to_string.
9904
9905 2015-11-17 Pedro Alves <palves@redhat.com>
9906
9907 * win32-low.c (handle_output_debug_string): Remove parameter.
9908 (win32_kill): Remove our_status local and adjust call to
9909 handle_output_debug_string.
9910 (get_child_debug_event): Adjust call to
9911 handle_output_debug_string.
9912
9913 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9914
9915 * linux-mips-low.c (mips_fill_gregset): Add cast.
9916 (mips_store_gregset): Likewise.
9917 (mips_fill_fpregset): Likewise.
9918 (mips_store_fpregset): Likewise.
9919
9920 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9921
9922 * linux-mips-low.c (mips_add_watchpoint): Rename private to
9923 priv.
9924
9925 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9926
9927 * linux-mips-low.c (mips_linux_new_thread): Change type of
9928 watch_type to enum target_hw_bp_type.
9929
9930 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9931
9932 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
9933 Change return type to arm_hwbp_type.
9934
9935 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9936
9937 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
9938 (arm_store_gregset): Likewise.
9939 * linux-arm-low.c (arm_get_hwcap): Likewise.
9940 (arm_read_description): Likewise.
9941
9942 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9943
9944 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
9945
9946 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9947
9948 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
9949 (ppc_fill_vsxregset): Likewise.
9950 (ppc_store_vsxregset): Likewise.
9951 (ppc_fill_vrregset): Likewise.
9952 (ppc_store_vrregset): Likewise.
9953 (ppc_fill_evrregset): Likewise.
9954 (ppc_store_evrregset): Likewise.
9955
9956 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9957
9958 * linux-ppc-low.c (ppc_usrregs_info): Remove
9959 forward-declaration.
9960 (ppc_arch_setup): Move lower in file.
9961
9962 2015-10-30 Simon Marchi <simon.marchi@ericsson.com>
9963
9964 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
9965 (ps_pdwrite): Likewise.
9966
9967 2015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
9968
9969 * linux-arm-low.c (arm_new_thread): Move pointer dereference
9970 to after assert checks.
9971
9972 2015-10-29 Simon Marchi <simon.marchi@ericsson.com>
9973
9974 * proc-service.c (ps_pdread): Add/adjust casts.
9975 (ps_pdwrite): Add/adjust casts.
9976
9977 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9978
9979 * server.c (handle_search_memory_1): Cast return value of
9980 memmem.
9981
9982 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9983
9984 * server.c (write_qxfer_response): Change type of data to
9985 gdb_byte *.
9986
9987 2015-10-29 Pedro Alves <palves@redhat.com>
9988
9989 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
9990
9991 2015-10-29 Pedro Alves <palves@redhat.com>
9992
9993 * tracepoint.c (clear_installed_tracepoints): Add casts.
9994
9995 2015-10-29 Pedro Alves <palves@redhat.com>
9996
9997 * server.c (handle_v_cont, process_serial_event): Add enum
9998 gdb_signal casts to signal parsing code.
9999
10000 2015-10-29 Pedro Alves <palves@redhat.com>
10001
10002 * linux-low.h (NULL_REGSET): Define.
10003 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
10004 * linux-arm-low.c (arm_regsets): Likewise.
10005 * linux-crisv32-low.c (cris_regsets): Likewise.
10006 * linux-m68k-low.c (m68k_regsets): Likewise.
10007 * linux-mips-low.c (mips_regsets): Likewise.
10008 * linux-nios2-low.c (nios2_regsets): Likewise.
10009 * linux-ppc-low.c (ppc_regsets): Likewise.
10010 * linux-s390-low.c (s390_regsets): Likewise.
10011 * linux-sh-low.c (sh_regsets): Likewise.
10012 * linux-sparc-low.c (sparc_regsets): Likewise.
10013 * linux-tic6x-low.c (tic6x_regsets): Likewise.
10014 * linux-tile-low.c (tile_regsets): Likewise.
10015 * linux-x86-low.c (x86_regsets): Likewise.
10016 * linux-xtensa-low.c (xtensa_regsets): Likewise.
10017
10018 2015-10-29 Pedro Alves <palves@redhat.com>
10019
10020 * linux-low.h (NULL_REGSET): Define.
10021 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
10022 * linux-arm-low.c (arm_regsets): Likewise.
10023 * linux-crisv32-low.c (cris_regsets): Likewise.
10024 * linux-m68k-low.c (m68k_regsets): Likewise.
10025 * linux-mips-low.c (mips_regsets): Likewise.
10026 * linux-nios2-low.c (nios2_regsets): Likewise.
10027 * linux-ppc-low.c (ppc_regsets): Likewise.
10028 * linux-s390-low.c (s390_regsets): Likewise.
10029 * linux-sh-low.c (sh_regsets): Likewise.
10030 * linux-sparc-low.c (sparc_regsets): Likewise.
10031 * linux-tic6x-low.c (tic6x_regsets): Likewise.
10032 * linux-tile-low.c (tile_regsets): Likewise.
10033 * linux-x86-low.c (x86_regsets): Likewise.
10034 * linux-xtensa-low.c (xtensa_regsets): Likewise.
10035
10036 2015-10-26 Doug Evans <dje@google.com>
10037
10038 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
10039
10040 2015-10-26 Doug Evans <dje@google.com>
10041
10042 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
10043
10044 2015-10-26 Doug Evans <dje@google.com>
10045
10046 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
10047 for debug_printf.
10048 (attach_thread, find_new_threads_callback): Ditto.
10049
10050 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
10051
10052 * mem-break.h (set_breakpoint_data): Remove.
10053
10054 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
10055
10056 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
10057 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
10058 (initialize_low): Remove set_breakpoint_data call.
10059 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
10060 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
10061 (initialize_low): Remove set_breakpoint_data call.
10062 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
10063 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
10064 (initialize_low): Remove set_breakpoint_data call.
10065
10066 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
10067
10068 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
10069 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
10070 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
10071 * target.h (target_breakpoint_kind_from_pc): New macro.
10072
10073 2015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
10074
10075 * linux-low.c (default_breakpoint_kind_from_pc): New function.
10076 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
10077 the default breakpoint kind.
10078
10079 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10080
10081 * linux-arm-low.c (arm_supports_z_point_type): Add software
10082 breakpoint support.
10083
10084 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10085
10086 * linux-arm-low.c: Refactor breakpoint definitions.
10087 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
10088 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
10089
10090 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10091
10092 * Makefile.in: Add arm.c/o.
10093 * configure.srv: Likewise.
10094 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
10095 (arm_breakpoint_kind_from_pc): New function.
10096 (arm_sw_breakpoint_from_kind): Return proper kind.
10097 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
10098
10099 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10100
10101 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
10102 removal.
10103 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
10104 (struct raw_breakpoint) <size>: Remove.
10105 (struct raw_breakpoint) <kind>: Add.
10106 (bp_size): New function.
10107 (bp_opcode): Likewise.
10108 (find_raw_breakpoint_at): Adjust for kind.
10109 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
10110 (remove_memory_breakpoint): Adjust for kind call bp_size.
10111 (set_raw_breakpoint_at): Adjust for kind.
10112 (set_breakpoint): Likewise.
10113 (set_breakpoint_at): Call breakpoint_kind_from_pc.
10114 (delete_raw_breakpoint): Adjust for kind.
10115 (delete_breakpoint): Likewise.
10116 (find_gdb_breakpoint): Likewise.
10117 (set_gdb_breakpoint_1): Likewise.
10118 (set_gdb_breakpoint): Likewise.
10119 (delete_gdb_breakpoint_1): Likewise.
10120 (delete_gdb_breakpoint): Likewise.
10121 (uninsert_raw_breakpoint): Likewise.
10122 (reinsert_raw_breakpoint): Likewise.
10123 (set_breakpoint_data): Remove.
10124 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
10125 (check_mem_read): Adjust for kind call bp_size.
10126 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
10127 (clone_one_breakpoint): Adjust for kind.
10128 * mem-break.h (set_gdb_breakpoint): Likewise.
10129 (delete_gdb_breakpoint): Likewise.
10130 * server.c (process_serial_event): Likewise.
10131
10132 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10133
10134 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
10135 (struct linux_target_ops) <breakpoint>: Remove.
10136 (struct linux_target_ops) <breakpoint_len>: Remove.
10137 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10138 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10139 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
10140 (arm_sw_breakpoint_from_kind): New function.
10141 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
10142 (struct linux_target_ops) <breakpoint>: Remove.
10143 (struct linux_target_ops) <breakpoint_len>: Remove.
10144 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10145 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10146 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
10147 (struct linux_target_ops) <breakpoint>: Remove.
10148 (struct linux_target_ops) <breakpoint_len>: Remove.
10149 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10150 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10151 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
10152 (struct linux_target_ops) <breakpoint>: Remove.
10153 (struct linux_target_ops) <breakpoint_len>: Remove.
10154 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10155 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10156 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
10157 and sw_breakpoint_from_kind to increment the pc.
10158 (linux_breakpoint_kind_from_pc): New function.
10159 (linux_sw_breakpoint_from_kind): New function.
10160 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
10161 (initialize_low): Call breakpoint_kind_from_pc and
10162 sw_breakpoint_from_kind to replace breakpoint_data/len.
10163 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
10164 New field.
10165 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
10166 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
10167 (struct linux_target_ops) <breakpoint>: Remove.
10168 (struct linux_target_ops) <breakpoint_len>: Remove.
10169 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10170 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10171 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
10172 (struct linux_target_ops) <breakpoint>: Remove.
10173 (struct linux_target_ops) <breakpoint_len>: Remove.
10174 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10175 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10176 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
10177 (struct linux_target_ops) <breakpoint>: Remove.
10178 (struct linux_target_ops) <breakpoint_len>: Remove.
10179 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10180 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10181 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
10182 (struct linux_target_ops) <breakpoint>: Remove.
10183 (struct linux_target_ops) <breakpoint_len>: Remove.
10184 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10185 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10186 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
10187 (struct linux_target_ops) <breakpoint>: Remove.
10188 (struct linux_target_ops) <breakpoint_len>: Remove.
10189 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10190 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10191 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
10192 (struct linux_target_ops) <breakpoint>: Remove.
10193 (struct linux_target_ops) <breakpoint_len>: Remove.
10194 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10195 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10196 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
10197 (struct linux_target_ops) <breakpoint>: Remove.
10198 (struct linux_target_ops) <breakpoint_len>: Remove.
10199 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10200 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10201 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
10202 (struct linux_target_ops) <breakpoint>: Remove.
10203 (struct linux_target_ops) <breakpoint_len>: Remove.
10204 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10205 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10206 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
10207 (struct linux_target_ops) <breakpoint>: Remove.
10208 (struct linux_target_ops) <breakpoint_len>: Remove.
10209 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10210 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10211 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
10212 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
10213 (struct linux_target_ops) <breakpoint>: Remove.
10214 (struct linux_target_ops) <breakpoint_len>: Remove.
10215 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10216 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10217 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
10218 (struct linux_target_ops) <breakpoint>: Remove.
10219 (struct linux_target_ops) <breakpoint_len>: Remove.
10220 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10221 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10222
10223 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10224
10225 * linux-cris-low.c (cris_get_pc): Remove void arg.
10226
10227 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
10228
10229 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
10230 variable name.
10231
10232 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
10233
10234 * inferiors.c (thread_pid_matches_callback): New function.
10235 (find_thread_process): New function.
10236 (remove_thread): Reset current_thread.
10237 (remove_process): Assert threads have been removed first.
10238
10239 2015-10-15 Yao Qi <yao.qi@linaro.org>
10240
10241 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
10242 if it is 3.
10243 (aarch64_remove_point): Likewise.
10244 * regcache.c (regcache_register_size): New function.
10245
10246 2015-10-12 Yao Qi <yao.qi@linaro.org>
10247
10248 * linux-aarch64-low.c: Update all callers as emit_load_store
10249 is renamed to aarch64_emit_load_store.
10250
10251 2015-10-12 Yao Qi <yao.qi@linaro.org>
10252
10253 * linux-aarch64-low.c: Update all callers of function renaming
10254 from emit_insn to aarch64_emit_insn.
10255
10256 2015-10-12 Yao Qi <yao.qi@linaro.org>
10257
10258 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
10259 arch/aarch64-insn.h.
10260 (struct aarch64_memory_operand): Likewise.
10261 (ENCODE): Likewise.
10262 (emit_insn): Move to arch/aarch64-insn.c.
10263 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
10264 (emit_load_store): Move to arch/aarch64-insn.c.
10265 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
10266 (can_encode_int32): Remove.
10267
10268 2015-10-12 Yao Qi <yao.qi@linaro.org>
10269
10270 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
10271 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
10272 (aarch64_relocate_instruction): Likewise.
10273 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
10274 (struct aarch64_insn_visitor): Likewise.
10275
10276 2015-10-12 Yao Qi <yao.qi@linaro.org>
10277
10278 * linux-aarch64-low.c (struct aarch64_insn_data): New.
10279 (struct aarch64_insn_visitor): New.
10280 (struct aarch64_insn_relocation_data): New.
10281 (aarch64_ftrace_insn_reloc_b): New function.
10282 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
10283 (aarch64_ftrace_insn_reloc_cb): Likewise.
10284 (aarch64_ftrace_insn_reloc_tb): Likewise.
10285 (aarch64_ftrace_insn_reloc_adr): Likewise.
10286 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
10287 (aarch64_ftrace_insn_reloc_others): Likewise.
10288 (visitor): New.
10289 (aarch64_relocate_instruction): Use visitor.
10290
10291 2015-10-12 Yao Qi <yao.qi@linaro.org>
10292
10293 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
10294 int. Add argument buf.
10295 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
10296 aarch64_relocate_instruction.
10297
10298 2015-10-12 Yao Qi <yao.qi@linaro.org>
10299
10300 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
10301 argument insn. Remove local variable insn. Don't call
10302 target_read_uint32.
10303 (aarch64_install_fast_tracepoint_jump_pad): Call
10304 target_read_uint32.
10305
10306 2015-09-30 Yao Qi <yao.qi@linaro.org>
10307
10308 * linux-aarch64-low.c (emit_movk): Shorten a long line.
10309 (emit_load_store_pair): Likewise.
10310
10311 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
10312
10313 * dll.c (match_dll): Add cast(s).
10314 (unloaded_dll): Likewise.
10315 * linux-low.c (second_thread_of_pid_p): Likewise.
10316 (delete_lwp_callback): Likewise.
10317 (count_events_callback): Likewise.
10318 (select_event_lwp_callback): Likewise.
10319 (linux_set_resume_request): Likewise.
10320 * server.c (accumulate_file_name_length): Likewise.
10321 (emit_dll_description): Likewise.
10322 (handle_qxfer_threads_worker): Likewise.
10323 (visit_actioned_threads): Likewise.
10324 * thread-db.c (any_thread_of): Likewise.
10325 * tracepoint.c (same_process_p): Likewise.
10326 (match_blocktype): Likewise.
10327 (build_traceframe_info_xml): Likewise.
10328
10329 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
10330
10331 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
10332 assignment.
10333 (gdb_unparse_agent_expr): Likewise.
10334 * hostio.c (require_data): Likewise.
10335 (handle_pread): Likewise.
10336 * linux-low.c (disable_regset): Likewise.
10337 (fetch_register): Likewise.
10338 (store_register): Likewise.
10339 (get_dynamic): Likewise.
10340 (linux_qxfer_libraries_svr4): Likewise.
10341 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
10342 (set_fast_tracepoint_jump): Likewise.
10343 (uninsert_fast_tracepoint_jumps_at): Likewise.
10344 (reinsert_fast_tracepoint_jumps_at): Likewise.
10345 (validate_inserted_breakpoint): Likewise.
10346 (clone_agent_expr): Likewise.
10347 * regcache.c (init_register_cache): Likewise.
10348 * remote-utils.c (putpkt_binary_1): Likewise.
10349 (decode_M_packet): Likewise.
10350 (decode_X_packet): Likewise.
10351 (look_up_one_symbol): Likewise.
10352 (relocate_instruction): Likewise.
10353 (monitor_output): Likewise.
10354 * server.c (handle_search_memory): Likewise.
10355 (handle_qxfer_exec_file): Likewise.
10356 (handle_qxfer_libraries): Likewise.
10357 (handle_qxfer): Likewise.
10358 (handle_query): Likewise.
10359 (handle_v_cont): Likewise.
10360 (handle_v_run): Likewise.
10361 (captured_main): Likewise.
10362 * target.c (write_inferior_memory): Likewise.
10363 * thread-db.c (try_thread_db_load_from_dir): Likewise.
10364 * tracepoint.c (init_trace_buffer): Likewise.
10365 (add_tracepoint_action): Likewise.
10366 (add_traceframe): Likewise.
10367 (add_traceframe_block): Likewise.
10368 (cmd_qtdpsrc): Likewise.
10369 (cmd_qtdv): Likewise.
10370 (cmd_qtstatus): Likewise.
10371 (response_source): Likewise.
10372 (response_tsv): Likewise.
10373 (cmd_qtnotes): Likewise.
10374 (gdb_collect): Likewise.
10375 (initialize_tracepoint): Likewise.
10376
10377 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10378
10379 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
10380 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
10381 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
10382 <NOP>: New.
10383 (enum aarch64_condition_codes): New enum.
10384 (w0): New static global.
10385 (fp): Likewise.
10386 (lr): Likewise.
10387 (struct aarch64_memory_operand) <type>: New
10388 MEMORY_OPERAND_POSTINDEX type.
10389 (postindex_memory_operand): New helper function.
10390 (emit_ret): New function.
10391 (emit_load_store_pair): New function, factored out of emit_stp
10392 with support for MEMORY_OPERAND_POSTINDEX.
10393 (emit_stp): Rewrite using emit_load_store_pair.
10394 (emit_ldp): New function.
10395 (emit_load_store): Likewise.
10396 (emit_ldr): Mention post-index instruction in comment.
10397 (emit_ldrh): New function.
10398 (emit_ldrb): New function.
10399 (emit_ldrsw): Mention post-index instruction in comment.
10400 (emit_str): Likewise.
10401 (emit_subs): New function.
10402 (emit_cmp): Likewise.
10403 (emit_and): Likewise.
10404 (emit_orr): Likewise.
10405 (emit_orn): Likewise.
10406 (emit_eor): Likewise.
10407 (emit_mvn): Likewise.
10408 (emit_lslv): Likewise.
10409 (emit_lsrv): Likewise.
10410 (emit_asrv): Likewise.
10411 (emit_mul): Likewise.
10412 (emit_sbfm): Likewise.
10413 (emit_sbfx): Likewise.
10414 (emit_ubfm): Likewise.
10415 (emit_ubfx): Likewise.
10416 (emit_csinc): Likewise.
10417 (emit_cset): Likewise.
10418 (emit_nop): Likewise.
10419 (emit_ops_insns): New helper function.
10420 (emit_pop): Likewise.
10421 (emit_push): Likewise.
10422 (aarch64_emit_prologue): New function.
10423 (aarch64_emit_epilogue): Likewise.
10424 (aarch64_emit_add): Likewise.
10425 (aarch64_emit_sub): Likewise.
10426 (aarch64_emit_mul): Likewise.
10427 (aarch64_emit_lsh): Likewise.
10428 (aarch64_emit_rsh_signed): Likewise.
10429 (aarch64_emit_rsh_unsigned): Likewise.
10430 (aarch64_emit_ext): Likewise.
10431 (aarch64_emit_log_not): Likewise.
10432 (aarch64_emit_bit_and): Likewise.
10433 (aarch64_emit_bit_or): Likewise.
10434 (aarch64_emit_bit_xor): Likewise.
10435 (aarch64_emit_bit_not): Likewise.
10436 (aarch64_emit_equal): Likewise.
10437 (aarch64_emit_less_signed): Likewise.
10438 (aarch64_emit_less_unsigned): Likewise.
10439 (aarch64_emit_ref): Likewise.
10440 (aarch64_emit_if_goto): Likewise.
10441 (aarch64_emit_goto): Likewise.
10442 (aarch64_write_goto_address): Likewise.
10443 (aarch64_emit_const): Likewise.
10444 (aarch64_emit_call): Likewise.
10445 (aarch64_emit_reg): Likewise.
10446 (aarch64_emit_pop): Likewise.
10447 (aarch64_emit_stack_flush): Likewise.
10448 (aarch64_emit_zero_ext): Likewise.
10449 (aarch64_emit_swap): Likewise.
10450 (aarch64_emit_stack_adjust): Likewise.
10451 (aarch64_emit_int_call_1): Likewise.
10452 (aarch64_emit_void_call_2): Likewise.
10453 (aarch64_emit_eq_goto): Likewise.
10454 (aarch64_emit_ne_goto): Likewise.
10455 (aarch64_emit_lt_goto): Likewise.
10456 (aarch64_emit_le_goto): Likewise.
10457 (aarch64_emit_gt_goto): Likewise.
10458 (aarch64_emit_ge_got): Likewise.
10459 (aarch64_emit_ops_impl): New static global variable.
10460 (aarch64_emit_ops): New target function, return
10461 &aarch64_emit_ops_impl.
10462 (struct linux_target_ops): Install it.
10463
10464 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10465
10466 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
10467 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
10468 aarch64-ipa.o.
10469 * linux-aarch64-ipa.c: New file.
10470 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
10471 and endian.h.
10472 (aarch64_get_thread_area): New target method.
10473 (extract_signed_bitfield): New helper function.
10474 (aarch64_decode_ldr_literal): New function.
10475 (enum aarch64_opcodes): New enum.
10476 (struct aarch64_register): New struct.
10477 (struct aarch64_operand): New struct.
10478 (x0): New static global.
10479 (x1): Likewise.
10480 (x2): Likewise.
10481 (x3): Likewise.
10482 (x4): Likewise.
10483 (w2): Likewise.
10484 (ip0): Likewise.
10485 (sp): Likewise.
10486 (xzr): Likewise.
10487 (aarch64_register): New helper function.
10488 (register_operand): Likewise.
10489 (immediate_operand): Likewise.
10490 (struct aarch64_memory_operand): New struct.
10491 (offset_memory_operand): New helper function.
10492 (preindex_memory_operand): Likewise.
10493 (enum aarch64_system_control_registers): New enum.
10494 (ENCODE): New macro.
10495 (emit_insn): New helper function.
10496 (emit_b): New function.
10497 (emit_bcond): Likewise.
10498 (emit_cb): Likewise.
10499 (emit_tb): Likewise.
10500 (emit_blr): Likewise.
10501 (emit_stp): Likewise.
10502 (emit_ldp_q_offset): Likewise.
10503 (emit_stp_q_offset): Likewise.
10504 (emit_load_store): Likewise.
10505 (emit_ldr): Likewise.
10506 (emit_ldrsw): Likewise.
10507 (emit_str): Likewise.
10508 (emit_ldaxr): Likewise.
10509 (emit_stxr): Likewise.
10510 (emit_stlr): Likewise.
10511 (emit_data_processing_reg): Likewise.
10512 (emit_data_processing): Likewise.
10513 (emit_add): Likewise.
10514 (emit_sub): Likewise.
10515 (emit_mov): Likewise.
10516 (emit_movk): Likewise.
10517 (emit_mov_addr): Likewise.
10518 (emit_mrs): Likewise.
10519 (emit_msr): Likewise.
10520 (emit_sevl): Likewise.
10521 (emit_wfe): Likewise.
10522 (append_insns): Likewise.
10523 (can_encode_int32_in): New helper function.
10524 (aarch64_relocate_instruction): New function.
10525 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
10526 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
10527 (struct linux_target_ops): Install aarch64_get_thread_area,
10528 aarch64_install_fast_tracepoint_jump_pad and
10529 aarch64_get_min_fast_tracepoint_insn_len.
10530
10531 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10532
10533 * Makefile.in (aarch64-insn.o): New rule.
10534 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
10535
10536 2015-09-21 Yao Qi <yao.qi@linaro.org>
10537
10538 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
10539
10540 2015-09-21 Yao Qi <yao.qi@linaro.org>
10541
10542 * tracepoint.c (max_jump_pad_size): Remove.
10543
10544 2015-09-18 Yao Qi <yao.qi@linaro.org>
10545
10546 * linux-aarch64-low.c: Don't include sys/uio.h.
10547 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
10548
10549 2015-09-16 Wei-cheng Wang <cole945@gmail.com>
10550
10551 * tracepoint.c (eval_result_type): Change prototype.
10552 (condition_true_at_tracepoint): Fix argument to compiled_cond.
10553
10554 2015-09-15 Pedro Alves <palves@redhat.com>
10555
10556 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
10557 Check whether to report exec events instead of checking whether
10558 multiprocess is enabled.
10559
10560 2015-09-15 Pedro Alves <palves@redhat.com>
10561
10562 PR remote/18965
10563 * remote-utils.c (prepare_resume_reply): Merge
10564 TARGET_WAITKIND_VFORK_DONE switch case with the
10565 TARGET_WAITKIND_FORKED case.
10566
10567 2015-09-15 Yao Qi <yao.qi@linaro.org>
10568
10569 * server.c (handle_query): Check string comparison using
10570 "else if" instead of "if".
10571
10572 2015-09-15 Yao Qi <yao.qi@linaro.org>
10573
10574 * server.c (vCont_supported): New global variable.
10575 (handle_query): Set vCont_supported to 1 if "vContSupported+"
10576 matches. Append ";vContSupported+" to own_buf.
10577 (handle_v_requests): Append ";s;S" to own_buf if target supports
10578 hardware single step or vCont_supported is false.
10579 (capture_main): Set vCont_supported to zero.
10580
10581 2015-09-15 Yao Qi <yao.qi@linaro.org>
10582
10583 * linux-low.c (linux_supports_conditional_breakpoints): Rename
10584 it to ...
10585 (linux_supports_hardware_single_step): ... New function.
10586 (linux_target_ops): Update.
10587 * lynx-low.c (lynx_target_ops): Set field
10588 supports_hardware_single_step to target_can_do_hardware_single_step.
10589 * nto-low.c (nto_target_ops): Likewise.
10590 * spu-low.c (spu_target_ops): Likewise.
10591 * win32-low.c (win32_target_ops): Likewise.
10592 * target.c (target_can_do_hardware_single_step): New function.
10593 * target.h (struct target_ops) <supports_conditional_breakpoints>:
10594 Remove. <supports_hardware_single_step>: New field.
10595 (target_supports_conditional_breakpoints): Remove.
10596 (target_supports_hardware_single_step): New macro.
10597 (target_can_do_hardware_single_step): Declare.
10598 * server.c (handle_query): Use target_supports_hardware_single_step
10599 instead of target_supports_conditional_breakpoints.
10600
10601 2015-09-15 Yao Qi <yao.qi@linaro.org>
10602
10603 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
10604 function.
10605 (struct linux_target_ops the_low_target): Install
10606 aarch64_linux_siginfo_fixup.
10607
10608 2015-09-11 Don Breazeal <donb@codesourcery.com>
10609 Luis Machado <lgustavo@codesourcery.com>
10610
10611 * linux-low.c (linux_mourn): Static declaration.
10612 (linux_arch_setup): Move in front of
10613 handle_extended_wait.
10614 (linux_arch_setup_thread): New function.
10615 (handle_extended_wait): Handle exec events. Call
10616 linux_arch_setup_thread. Make event_lwp argument a
10617 pointer-to-a-pointer.
10618 (check_zombie_leaders): Do not check stopped threads.
10619 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
10620 (linux_low_filter_event): Add lwp and thread for exec'ing
10621 non-leader thread if leader thread has been deleted.
10622 Refactor code into linux_arch_setup_thread and call it.
10623 Pass child lwp pointer by reference to handle_extended_wait.
10624 (linux_wait_for_event_filtered): Update comment.
10625 (linux_wait_1): Prevent clobbering exec event status.
10626 (linux_supports_exec_events): New function.
10627 (linux_target_ops) <supports_exec_events>: Initialize new member.
10628 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
10629 new member.
10630 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
10631 * server.c (report_exec_events): New global variable.
10632 (handle_query): Handle qSupported query for exec-events feature.
10633 (captured_main): Initialize report_exec_events.
10634 * server.h (report_exec_events): Declare new global variable.
10635 * target.h (struct target_ops) <supports_exec_events>: New
10636 member.
10637 (target_supports_exec_events): New macro.
10638 * win32-low.c (win32_target_ops) <supports_exec_events>:
10639 Initialize new member.
10640
10641 2015-09-09 Markus Metzger <markus.t.metzger@intel.com>
10642
10643 * linux-low.c (linux_low_enable_btrace): Remove.
10644 (linux_target_ops): Replace linux_low_enable_btrace with
10645 linux_enable_btrace.
10646
10647 2015-09-03 Yao Qi <yao.qi@linaro.org>
10648
10649 * linux-aarch64-low.c (aarch64_insert_point): Call
10650 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
10651 returns true.
10652
10653 2015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10654
10655 * linux-low.c (check_stopped_by_breakpoint): Use
10656 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
10657
10658 2015-08-27 Pedro Alves <palves@redhat.com>
10659
10660 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
10661
10662 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
10663
10664 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
10665 the XNEW-family equivalent.
10666 (compile_bytecodes): Likewise.
10667 * dll.c (loaded_dll): Likewise.
10668 * event-loop.c (append_callback_event): Likewise.
10669 (create_file_handler): Likewise.
10670 (create_file_event): Likewise.
10671 * hostio.c (handle_open): Likewise.
10672 * inferiors.c (add_thread): Likewise.
10673 (add_process): Likewise.
10674 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
10675 * linux-arm-low.c (arm_new_process): Likewise.
10676 (arm_new_thread): Likewise.
10677 * linux-low.c (add_to_pid_list): Likewise.
10678 (linux_add_process): Likewise.
10679 (handle_extended_wait): Likewise.
10680 (add_lwp): Likewise.
10681 (enqueue_one_deferred_signal): Likewise.
10682 (enqueue_pending_signal): Likewise.
10683 (linux_resume_one_lwp_throw): Likewise.
10684 (linux_resume_one_thread): Likewise.
10685 (linux_read_memory): Likewise.
10686 (linux_write_memory): Likewise.
10687 * linux-mips-low.c (mips_linux_new_process): Likewise.
10688 (mips_linux_new_thread): Likewise.
10689 (mips_add_watchpoint): Likewise.
10690 * linux-x86-low.c (initialize_low_arch): Likewise.
10691 * lynx-low.c (lynx_add_process): Likewise.
10692 * mem-break.c (set_raw_breakpoint_at): Likewise.
10693 (set_breakpoint): Likewise.
10694 (add_condition_to_breakpoint): Likewise.
10695 (add_commands_to_breakpoint): Likewise.
10696 (clone_agent_expr): Likewise.
10697 (clone_one_breakpoint): Likewise.
10698 * regcache.c (new_register_cache): Likewise.
10699 * remote-utils.c (look_up_one_symbol): Likewise.
10700 * server.c (queue_stop_reply): Likewise.
10701 (start_inferior): Likewise.
10702 (queue_stop_reply_callback): Likewise.
10703 (handle_target_event): Likewise.
10704 * spu-low.c (fetch_ppc_memory): Likewise.
10705 (store_ppc_memory): Likewise.
10706 * target.c (set_target_ops): Likewise.
10707 * thread-db.c (thread_db_load_search): Likewise.
10708 (try_thread_db_load_1): Likewise.
10709 * tracepoint.c (add_tracepoint): Likewise.
10710 (add_tracepoint_action): Likewise.
10711 (create_trace_state_variable): Likewise.
10712 (cmd_qtdpsrc): Likewise.
10713 (cmd_qtro): Likewise.
10714 (add_while_stepping_state): Likewise.
10715 * win32-low.c (child_add_thread): Likewise.
10716 (get_image_name): Likewise.
10717
10718 2015-08-25 Yao Qi <yao.qi@linaro.org>
10719
10720 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
10721
10722 2015-08-25 Yao Qi <yao.qi@linaro.org>
10723
10724 * Makefile.in (aarch64-linux.o): New rule.
10725 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
10726 srv_tgtobj.
10727 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
10728 (aarch64_init_debug_reg_state): Make it extern.
10729 (aarch64_linux_prepare_to_resume): Remove.
10730
10731 2015-08-25 Yao Qi <yao.qi@linaro.org>
10732
10733 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
10734 lwp_arch_private_info and ptid_of_lwp.
10735
10736 2015-08-25 Yao Qi <yao.qi@linaro.org>
10737
10738 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
10739 Find proc_info by find_process_pid. All callers updated.
10740
10741 2015-08-25 Yao Qi <yao.qi@linaro.org>
10742
10743 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
10744 Remove.
10745 (debug_reg_change_callback): Remove.
10746 (aarch64_notify_debug_reg_change): Remove.
10747
10748 2015-08-25 Yao Qi <yao.qi@linaro.org>
10749
10750 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
10751 Call current_lwp_ptid.
10752
10753 2015-08-25 Yao Qi <yao.qi@linaro.org>
10754
10755 * linux-aarch64-low.c (debug_reg_change_callback): Use
10756 debug_printf.
10757
10758 2015-08-25 Yao Qi <yao.qi@linaro.org>
10759
10760 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
10761
10762 2015-08-25 Yao Qi <yao.qi@linaro.org>
10763
10764 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
10765
10766 2015-08-25 Yao Qi <yao.qi@linaro.org>
10767
10768 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
10769 the code.
10770
10771 2015-08-25 Yao Qi <yao.qi@linaro.org>
10772
10773 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
10774 Remove.
10775 (debug_reg_change_callback): Remove argument entry and add argument
10776 lwp. Remove local variable thread. Don't print thread id in the
10777 debugging output. Don't check whether pid of thread equals to pid.
10778 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
10779 iterate_over_lwps instead find_inferior.
10780
10781 2015-08-24 Pedro Alves <palves@redhat.com>
10782
10783 * inferiors.c (get_first_process): New function.
10784 * inferiors.h (get_first_process): New declaration.
10785 * remote-utils.c (read_ptid): Default to the first process in the
10786 list, instead of to the current thread's process.
10787
10788 2015-08-24 Pedro Alves <palves@redhat.com>
10789
10790 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
10791 * event-loop.c: Likewise.
10792 * remote-utils.c: Likewise.
10793 * tracepoint.c: Likewise.
10794
10795 2015-08-24 Pedro Alves <palves@redhat.com>
10796
10797 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
10798 ptid_get_lwp.
10799
10800 2015-08-21 Pedro Alves <palves@redhat.com>
10801
10802 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
10803 instead of literal 1.
10804
10805 2015-08-21 Pedro Alves <palves@redhat.com>
10806
10807 * tdesc.c (default_description): Explicitly zero-initialize.
10808
10809 2015-08-21 Pedro Alves <palves@redhat.com>
10810
10811 PR gdb/18749
10812 * inferiors.c (remove_thread): Discard any pending stop reply for
10813 this thread.
10814 * server.c (remove_all_on_match_pid): Rename to ...
10815 (remove_all_on_match_ptid): ... this. Work with a filter ptid
10816 instead of a pid.
10817 (discard_queued_stop_replies): Change parameter to a ptid. Now
10818 extern.
10819 (handle_v_kill, kill_inferior_callback, captured_main)
10820 (process_serial_event): Adjust.
10821 * server.h (discard_queued_stop_replies): Declare.
10822
10823 2015-08-21 Pedro Alves <palves@redhat.com>
10824
10825 * linux-low.c (wait_for_sigstop): Always switch to no thread
10826 selected if the previously current thread dies.
10827 * lynx-low.c (lynx_request_interrupt): Use the first thread's
10828 process instead of the current thread's.
10829 * remote-utils.c (input_interrupt): Don't check if there's no
10830 current thread.
10831 * server.c (gdb_read_memory, gdb_write_memory): If setting the
10832 current thread to the general thread fails, error out.
10833 (handle_qxfer_auxv, handle_qxfer_libraries)
10834 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
10835 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
10836 (handle_query): Check if there's a thread selected instead of
10837 checking whether there's any thread in the thread list.
10838 (handle_qxfer_threads, handle_qxfer_btrace)
10839 (handle_qxfer_btrace_conf): Don't error out early if there's no
10840 thread in the thread list.
10841 (handle_v_cont, myresume): Don't set the current thread to the
10842 continue thread.
10843 (process_serial_event) <Hg handling>: Also set thread_id if the
10844 previous general thread is still alive.
10845 (process_serial_event) <g/G handling>: If setting the current
10846 thread to the general thread fails, error out.
10847 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
10848 thread's lwp instead of the current thread's.
10849 * target.c (set_desired_thread): If the desired thread was not
10850 found, leave the current thread pointing to NULL. Return an int
10851 (boolean) indicating success.
10852 * target.h (set_desired_thread): Change return type to int.
10853
10854 2015-08-20 Max Filippov <jcmvbkbc@gmail.com>
10855
10856 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
10857 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
10858 #includes.
10859 (ps_get_thread_area): New function.
10860
10861 2015-08-19 Gary Benson <gbenson@redhat.com>
10862
10863 * hostio.c (handle_pread): Do not attempt to read more data
10864 than hostio_reply_with_data can fit in a packet.
10865
10866 2015-08-18 Joel Brobecker <brobecker@adacore.com>
10867
10868 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
10869
10870 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
10871
10872 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
10873
10874 2015-08-06 Pedro Alves <palves@redhat.com>
10875
10876 * tracepoint.c (expr_eval_result): Now an int.
10877
10878 2015-08-06 Pedro Alves <palves@redhat.com>
10879
10880 * gdbthread.h (struct regcache): Forward declare.
10881 (struct thread_info) <regcache_data>: Now a struct regcache
10882 pointer.
10883 * inferiors.c (inferior_regcache_data)
10884 (set_inferior_regcache_data): Now work with struct regcache
10885 pointers.
10886 * inferiors.h (struct regcache): Forward declare.
10887 (inferior_regcache_data, set_inferior_regcache_data): Now work
10888 with struct regcache pointers.
10889 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
10890 (free_register_cache_thread): Remove struct regcache pointer
10891 casts.
10892
10893 2015-08-06 Pedro Alves <palves@redhat.com>
10894
10895 * server.c (captured_main): On error, print the exception message
10896 to stderr, and if run_once is set, throw a quit.
10897
10898 2015-08-06 Pedro Alves <palves@redhat.com>
10899
10900 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
10901 the current thread.
10902
10903 2015-08-06 Pedro Alves <palves@redhat.com>
10904
10905 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
10906 reading beyond the passed in buffer length.
10907
10908 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
10909
10910 * tracepoint.c (symbol_list) <required>: Remove.
10911
10912 2015-08-06 Pedro Alves <palves@redhat.com>
10913
10914 * linux-low.c (handle_extended_wait): Set the fork child's suspend
10915 count if stopping and suspending threads.
10916 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
10917 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
10918 (linux_detach): Complete an ongoing step-over.
10919 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
10920 throughout.
10921 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
10922 (linux_wait_1): If passing a signal to the inferior after
10923 finishing a step-over, unsuspend and re-resume all lwps. If we
10924 see a single-step event but the thread should be continuing, don't
10925 pass the trap to gdb.
10926 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
10927 internal_error instead of gdb_assert.
10928 (enqueue_pending_signal): New function.
10929 (check_ptrace_stopped_lwp_gone): Add debug output.
10930 (start_step_over): Use internal_error instead of gdb_assert.
10931 (complete_ongoing_step_over): New function.
10932 (linux_resume_one_thread): Don't resume a suspended thread.
10933 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
10934 it stepping.
10935
10936 2015-08-06 Pedro Alves <palves@redhat.com>
10937
10938 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
10939 (linux_thread_alive): Use lwp_is_marked_dead.
10940 (extended_event_reported): Delete.
10941 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
10942 instead of extended_event_reported.
10943 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
10944 as well.
10945 (lwp_is_marked_dead): New function.
10946 (lwp_running): Use lwp_is_marked_dead.
10947 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
10948 comment.
10949
10950 2015-08-06 Pedro Alves <palves@redhat.com>
10951
10952 * linux-low.c (linux_wait_1): Move fork event output out of the
10953 !report_to_gdb check. Pass event_child->waitstatus to
10954 target_waitstatus_to_string instead of ourstatus.
10955
10956 2015-08-04 Yao Qi <yao.qi@linaro.org>
10957
10958 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
10959 if current_thread is 32 bit.
10960
10961 2015-08-04 Yao Qi <yao.qi@linaro.org>
10962
10963 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
10964 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
10965 * server.c (extended_protocol): Remove "static".
10966 * server.h (extended_protocol): Declare it.
10967
10968 2015-08-04 Yao Qi <yao.qi@linaro.org>
10969
10970 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
10971 both aarch64 and aarch32.
10972 (aarch64_set_pc): Likewise.
10973
10974 2015-08-04 Yao Qi <yao.qi@linaro.org>
10975
10976 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
10977 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
10978 arm-with-neon.xml to srv_xmlfiles.
10979 * linux-aarch64-low.c: Include linux-aarch32-low.h.
10980 (is_64bit_tdesc): New function.
10981 (aarch64_linux_read_description): New function.
10982 (aarch64_arch_setup): Call aarch64_linux_read_description.
10983 (regs_info): Rename to regs_info_aarch64.
10984 (aarch64_regs_info): Return right regs_info.
10985 (initialize_low_arch): Call initialize_low_arch_aarch32.
10986
10987 2015-08-04 Yao Qi <yao.qi@linaro.org>
10988
10989 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
10990 * linux-aarch32-low.c: New file.
10991 * linux-aarch32-low.h: New file.
10992 * linux-arm-low.c (arm_fill_gregset): Move it to
10993 linux-aarch32-low.c.
10994 (arm_store_gregset): Likewise.
10995 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
10996 (arm_store_vfpregset): Call arm_store_vfpregset_num.
10997 (arm_arch_setup): Check if PTRACE_GETREGSET works.
10998 (regs_info): Rename to regs_info_arm.
10999 (arm_regs_info): Return regs_info_aarch32 if
11000 have_ptrace_getregset is 1 and target description is
11001 arm_with_neon or arm_with_vfpv3.
11002 (initialize_low_arch): Don't call init_registers_arm_with_neon.
11003 Call initialize_low_arch_aarch32 instead.
11004
11005 2015-08-04 Yao Qi <yao.qi@linaro.org>
11006
11007 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
11008 * linux-low.c: ... here.
11009 * linux-low.h (have_ptrace_getregset): Declare it.
11010
11011 2015-08-04 Pedro Alves <palves@redhat.com>
11012
11013 * thread-db.c (struct thread_db): Use new typedefs.
11014 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
11015 CHK calls.
11016 (disable_thread_event_reporting): Cast result of dlsym to
11017 destination function pointer type.
11018 (thread_db_mourn): Use td_ta_delete_ftype.
11019
11020 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
11021
11022 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
11023 arch variant.
11024 (CDX_BREAKPOINT): Define for R2.
11025 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
11026 (the_low_target): Add comments.
11027
11028 2015-07-30 Yao Qi <yao.qi@linaro.org>
11029
11030 * linux-arm-low.c (arm_hwcap): Remove it.
11031 (arm_read_description): New local variable arm_hwcap. Don't
11032 set arm_hwcap to zero.
11033
11034 2015-07-30 Yao Qi <yao.qi@linaro.org>
11035
11036 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
11037 Use regcache->tdesc instead.
11038 (arm_store_wmmxregset): Likewise.
11039 (arm_fill_vfpregset): Likewise.
11040 (arm_store_vfpregset): Likewise.
11041
11042 2015-07-30 Yao Qi <yao.qi@linaro.org>
11043
11044 * linux-arm-low.c: Include arch/arm.h.
11045 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
11046 (arm_store_gregset): Likewise.
11047
11048 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
11049
11050 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
11051 ptrace's 4th parameter.
11052
11053 2015-07-27 Yao Qi <yao.qi@linaro.org>
11054
11055 * configure.srv (case aarch64*-*-linux*): Don't set
11056 srv_linux_usrregs.
11057
11058 2015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
11059
11060 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
11061 sys/ptrace.h.
11062 * linux-arm-low.c: Likewise.
11063 * linux-cris-low.c: Likewise.
11064 * linux-crisv32-low.c: Likewise.
11065 * linux-low.c: Likewise.
11066 * linux-m68k-low.c: Likewise.
11067 * linux-mips-low.c: Likewise.
11068 * linux-nios2-low.c: Likewise.
11069 * linux-s390-low.c: Likewise.
11070 * linux-sparc-low.c: Likewise.
11071 * linux-tic6x-low.c: Likewise.
11072 * linux-tile-low.c: Likewise.
11073 * linux-x86-low.c: Likewise.
11074
11075 2015-07-24 Pedro Alves <palves@redhat.com>
11076
11077 * config.in: Regenerate.
11078 * configure: Regenerate.
11079
11080 2015-07-24 Pedro Alves <palves@redhat.com>
11081
11082 * acinclude.m4: Include ../ptrace.m4.
11083 * configure.ac: Call GDB_AC_PTRACE.
11084 * config.in, configure: Regenerate.
11085
11086 2015-07-24 Yao Qi <yao.qi@linaro.org>
11087
11088 * linux-low.c (linux_create_inferior): Remove setting to
11089 proc->priv->new_inferior.
11090 (linux_attach): Likewise.
11091 (linux_low_filter_event): Likewise.
11092 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
11093
11094 2015-07-24 Yao Qi <yao.qi@linaro.org>
11095
11096 * linux-low.c (linux_arch_setup): New function.
11097 (linux_low_filter_event): If proc->tdesc is NULL and
11098 proc->attached is true, call the_low_target.arch_setup.
11099 Otherwise, keep status pending, and return.
11100 (linux_resume_one_lwp_throw): Don't call get_pc if
11101 thread->while_stepping isn't NULL. Don't call
11102 get_thread_regcache if proc->tdesc is NULL.
11103 (need_step_over_p): Return 0 if proc->tdesc is NULL.
11104 (linux_target_ops): Install arch_setup.
11105 * server.c (start_inferior): Call the_target->arch_setup.
11106 * target.h (struct target_ops) <arch_setup>: New field.
11107 (target_arch_setup): New marco.
11108 * lynx-low.c (lynx_target_ops): Update.
11109 * nto-low.c (nto_target_ops): Update.
11110 * spu-low.c (spu_target_ops): Update.
11111 * win32-low.c (win32_target_ops): Update.
11112
11113 2015-07-24 Yao Qi <yao.qi@linaro.org>
11114
11115 * linux-low.c (linux_add_process): Don't set
11116 proc->priv->new_inferior.
11117 (linux_create_inferior): Set proc->priv->new_inferior to 1.
11118 (linux_attach): Likewise.
11119
11120 2015-07-24 Yao Qi <yao.qi@linaro.org>
11121
11122 * server.c (start_inferior): Code refactor.
11123
11124 2015-07-24 Yao Qi <yao.qi@linaro.org>
11125
11126 * server.c (process_serial_event): Set general_thread.
11127
11128 2015-07-21 Yao Qi <yao.qi@linaro.org>
11129
11130 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
11131 aarch64_linux_get_debug_reg_capacity.
11132
11133 2015-07-17 Yao Qi <yao.qi@linaro.org>
11134
11135 * Makefile.in (aarch64-linux-hw-point.o): New rule.
11136 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
11137 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
11138 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
11139 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
11140 (AARCH64_HWP_ALIGNMENT): Likewise.
11141 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
11142 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
11143 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
11144 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
11145 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
11146 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
11147 (struct aarch64_debug_reg_state): Likewise.
11148 (struct arch_lwp_info): Likewise.
11149 (aarch64_align_watchpoint): Likewise.
11150 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
11151 (aarch64_watchpoint_length): Likewise.
11152 (aarch64_point_encode_ctrl_reg): Likewise
11153 (aarch64_point_is_aligned): Likewise.
11154 (aarch64_align_watchpoint): Likewise.
11155 (aarch64_linux_set_debug_regs):
11156 (aarch64_dr_state_insert_one_point): Likewise.
11157 (aarch64_dr_state_remove_one_point): Likewise.
11158 (aarch64_handle_breakpoint): Likewise.
11159 (aarch64_handle_aligned_watchpoint): Likewise.
11160 (aarch64_handle_unaligned_watchpoint): Likewise.
11161 (aarch64_handle_watchpoint): Likewise.
11162
11163 2015-07-17 Yao Qi <yao.qi@linaro.org>
11164
11165 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
11166 and don't aarch64_get_debug_reg_state. All callers update.
11167 (aarch64_handle_aligned_watchpoint): Likewise.
11168 (aarch64_handle_unaligned_watchpoint): Likewise.
11169 (aarch64_handle_watchpoint): Likewise.
11170 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
11171 (aarch64_remove_point): Likewise.
11172
11173 2015-07-17 Yao Qi <yao.qi@linaro.org>
11174
11175 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
11176 debug_printf.
11177 (aarch64_handle_unaligned_watchpoint): Likewise.
11178
11179 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11180
11181 Revert the previous 3 commits:
11182 Move gdb_regex* to common/
11183 Move linux_find_memory_regions_full & co.
11184 gdbserver build-id attribute generator
11185
11186 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
11187 Jan Kratochvil <jan.kratochvil@redhat.com>
11188
11189 gdbserver build-id attribute generator.
11190 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
11191 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
11192 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
11193 (find_phdr): New.
11194 (get_dynamic): Use find_pdhr to traverse program headers.
11195 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
11196 (compare_mapping_entry_range, struct find_memory_region_callback_data)
11197 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
11198 (get_hex_build_id): New.
11199 (linux_qxfer_libraries_svr4): Add optional build-id attribute
11200 to reply XML document.
11201
11202 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
11203 Jan Kratochvil <jan.kratochvil@redhat.com>
11204
11205 * target.c: Include target/target-utils.h and fcntl.h.
11206 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
11207 (target_fileio_read_stralloc): New functions.
11208
11209 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11210
11211 * Makefile.in (OBS): Add gdb_regex.o.
11212 (gdb_regex.o): New.
11213 * config.in: Rebuilt.
11214 * configure: Rebuilt.
11215
11216 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
11217 Jan Kratochvil <jan.kratochvil@redhat.com>
11218
11219 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
11220 * Makefile.in (OBS): Add target-utils.o.
11221 (linux-maps.o, target-utils.o): New.
11222 * configure.srv (srv_linux_obj): Add linux-maps.o.
11223
11224 2015-07-15 Pierre Langlois <pierre.langlois@arm.com>
11225
11226 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
11227 function, return 1.
11228 (the_low_target): Install it.
11229
11230 2015-07-14 Pedro Alves <palves@redhat.com>
11231
11232 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
11233 Instead, ignore ECHILD, and throw an error for other errnos.
11234
11235 2015-07-10 Pedro Alves <palves@redhat.com>
11236
11237 * event-loop.c (struct callback_event) <data>: Change type to
11238 gdb_client_data instance instead of gdb_client_data pointer.
11239 (append_callback_event): Adjust.
11240
11241 2015-07-10 Pierre Langlois <pierre.langlois@arm.com>
11242
11243 * linux-aarch64-low.c: Add comments for each linux_target_ops
11244 method. Remove comments already covered in target_ops and
11245 linux_target_ops definitions.
11246 (the_low_target): Add comments for each unimplemented method.
11247
11248 2015-07-09 Yao Qi <yao.qi@linaro.org>
11249
11250 * linux-aarch64-low.c (aarch64_regmap): Remove.
11251 (aarch64_usrregs_info): Remove.
11252 (regs_info): Set field usrregs to NULL.
11253
11254 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
11255
11256 * linux-low.c: Include "rsp-low.h"
11257 (linux_low_encode_pt_config, linux_low_encode_raw): New.
11258 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
11259 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
11260 (handle_btrace_enable_pt): New.
11261 (handle_btrace_general_set): Support "pt".
11262 (handle_btrace_conf_general_set): Support "pt:size".
11263
11264 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
11265
11266 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
11267 Z_PACKET_SW_BP.
11268
11269 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
11270
11271 * linux-aarch64-low.c: Remove comment about endianness.
11272 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
11273 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
11274 memcmp.
11275
11276 2015-06-24 Gary Benson <gbenson@redhat.com>
11277
11278 * linux-i386-ipa.c (stdint.h): Do not include.
11279 * lynx-i386-low.c (stdint.h): Likewise.
11280 * lynx-ppc-low.c (stdint.h): Likewise.
11281 * mem-break.c (stdint.h): Likewise.
11282 * thread-db.c (stdint.h): Likewise.
11283 * tracepoint.c (stdint.h): Likewise.
11284 * win32-low.c (stdint.h): Likewise.
11285
11286 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
11287
11288 * server.c (write_qxfer_response): Update call to
11289 remote_escape_output.
11290
11291 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
11292 Jan Kratochvil <jan.kratochvil@redhat.com>
11293
11294 Merge multiple hex conversions.
11295 * gdbreplay.c (tohex): Rename to 'fromhex'.
11296 (logchar): Use fromhex.
11297
11298 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11299
11300 * server.c (handle_qxfer_libraries): Set `version' attribute for
11301 <library-list>.
11302
11303 2015-06-10 Gary Benson <gbenson@redhat.com>
11304
11305 * target.h (struct target_ops) <multifs_open>: New field.
11306 <multifs_unlink>: Likewise.
11307 <multifs_readlink>: Likewise.
11308 * linux-low.c (nat/linux-namespaces.h): New include.
11309 (linux_target_ops): Initialize the_target->multifs_open,
11310 the_target->multifs_unlink and the_target->multifs_readlink.
11311 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
11312 * hostio.c (hostio_fs_pid): New static variable.
11313 (hostio_handle_new_gdb_connection): New function.
11314 (handle_setfs): Likewise.
11315 (handle_open): Use the_target->multifs_open as appropriate.
11316 (handle_unlink): Use the_target->multifs_unlink as appropriate.
11317 (handle_readlink): Use the_target->multifs_readlink as
11318 appropriate.
11319 (handle_vFile): Handle vFile:setfs packets.
11320 * server.c (handle_query): Call hostio_handle_new_gdb_connection
11321 after target_handle_new_gdb_connection.
11322
11323 2015-06-10 Gary Benson <gbenson@redhat.com>
11324
11325 * configure.ac (AC_CHECK_FUNCS): Add setns.
11326 * config.in: Regenerate.
11327 * configure: Likewise.
11328 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
11329 (linux-namespaces.o): New rule.
11330 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
11331
11332 2015-06-09 Gary Benson <gbenson@redhat.com>
11333
11334 * hostio.c (handle_open): Process mode argument with
11335 fileio_to_host_mode.
11336
11337 2015-06-01 Yao Qi <yao.qi@linaro.org>
11338
11339 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
11340 * linux-x86-low.c: Likewise.
11341
11342 2015-05-28 Don Breazeal <donb@codesourcery.com>
11343
11344 * linux-low.c (handle_extended_wait): Initialize
11345 thread_info.last_resume_kind for new fork children.
11346
11347 2015-05-15 Pedro Alves <palves@redhat.com>
11348
11349 * target.h (target_handle_new_gdb_connection): Rewrite using if
11350 wrapped in do/while.
11351
11352 2015-05-14 Joel Brobecker <brobecker@adacore.com>
11353
11354 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
11355 * configure, config.in: Regenerate.
11356 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
11357 Declare typedef.
11358
11359 2015-05-12 Don Breazeal <donb@codesourcery.com>
11360
11361 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
11362 PTRACE_EVENT_VFORK_DONE.
11363 (linux_low_ptrace_options, extended_event_reported): Add vfork
11364 events.
11365 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
11366 and "vforkdone" for RSP 'T' Stop Reply Packet.
11367 * server.h (report_vfork_events): Declare
11368 global variable.
11369
11370 2015-05-12 Don Breazeal <donb@codesourcery.com>
11371
11372 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
11373 (the_low_target) <new_fork>: Initialize new member.
11374 * linux-arm-low.c (arm_new_fork): New function.
11375 (the_low_target) <new_fork>: Initialize new member.
11376 * linux-low.c (handle_extended_wait): Call new target function
11377 new_fork.
11378 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
11379 * linux-mips-low.c (mips_add_watchpoint): New function
11380 extracted from mips_insert_point.
11381 (the_low_target) <new_fork>: Initialize new member.
11382 (mips_linux_new_fork): New function.
11383 (mips_insert_point): Call mips_add_watchpoint.
11384 * linux-x86-low.c (x86_linux_new_fork): New function.
11385 (the_low_target) <new_fork>: Initialize new member.
11386
11387 2015-05-12 Don Breazeal <donb@codesourcery.com>
11388
11389 * linux-low.c (handle_extended_wait): Implement return value,
11390 rename argument 'event_child' to 'event_lwp', handle
11391 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
11392 (linux_low_ptrace_options): New function.
11393 (linux_low_filter_event): Call linux_low_ptrace_options,
11394 use different argument fo linux_enable_event_reporting,
11395 use return value from handle_extended_wait.
11396 (extended_event_reported): New function.
11397 (linux_wait_1): Call extended_event_reported and set
11398 status to report fork events.
11399 (linux_write_memory): Add pid to debug message.
11400 (reset_lwp_ptrace_options_callback): New function.
11401 (linux_handle_new_gdb_connection): New function.
11402 (linux_target_ops): Initialize new structure member.
11403 * linux-low.h (struct lwp_info) <waitstatus>: New member.
11404 * lynx-low.c: Initialize new structure member.
11405 * remote-utils.c (prepare_resume_reply): Implement stop reason
11406 "fork" for "T" stop message.
11407 * server.c (handle_query): Call handle_new_gdb_connection.
11408 * server.h (report_fork_events): Declare global flag.
11409 * target.h (struct target_ops) <handle_new_gdb_connection>:
11410 New member.
11411 (target_handle_new_gdb_connection): New macro.
11412 * win32-low.c: Initialize new structure member.
11413
11414 2015-05-12 Don Breazeal <donb@codesourcery.com>
11415
11416 * mem-break.c (APPEND_TO_LIST): Define macro.
11417 (clone_agent_expr): New function.
11418 (clone_one_breakpoint): New function.
11419 (clone_all_breakpoints): New function.
11420 * mem-break.h: Declare new functions.
11421
11422 2015-05-12 Don Breazeal <donb@codesourcery.com>
11423
11424 * linux-low.c (linux_supports_fork_events): New function.
11425 (linux_supports_vfork_events): New function.
11426 (linux_target_ops): Initialize new structure members.
11427 (initialize_low): Call linux_check_ptrace_features.
11428 * lynx-low.c (lynx_target_ops): Initialize new structure
11429 members.
11430 * server.c (report_fork_events, report_vfork_events):
11431 New global flags.
11432 (handle_query): Add new features to qSupported packet and
11433 response.
11434 (captured_main): Initialize new global variables.
11435 * target.h (struct target_ops) <supports_fork_events>:
11436 New member.
11437 <supports_vfork_events>: New member.
11438 (target_supports_fork_events): New macro.
11439 (target_supports_vfork_events): New macro.
11440 * win32-low.c (win32_target_ops): Initialize new structure
11441 members.
11442
11443 2015-05-12 Gary Benson <gbenson@redhat.com>
11444
11445 * server.c (handle_qxfer_exec_file): Use current process
11446 if annex is empty.
11447
11448 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
11449
11450 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
11451 Remove HAVE_PTRACE_GETREGS conditionals.
11452 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
11453 instead of PTRACE_GETREGS and PTRACE_SETREGS.
11454
11455 2015-05-08 Yao Qi <yao.qi@linaro.org>
11456
11457 * linux-low.c (linux_supports_conditional_breakpoints): New
11458 function.
11459 (linux_target_ops): Install new target method.
11460 * lynx-low.c (lynx_target_ops): Install NULL hook for
11461 supports_conditional_breakpoints.
11462 * nto-low.c (nto_target_ops): Likewise.
11463 * spu-low.c (spu_target_ops): Likewise.
11464 * win32-low.c (win32_target_ops): Likewise.
11465 * server.c (handle_query): Check
11466 target_supports_conditional_breakpoints.
11467 * target.h (struct target_ops) <supports_conditional_breakpoints>:
11468 New field.
11469 (target_supports_conditional_breakpoints): New macro.
11470
11471 2015-05-06 Pedro Alves <palves@redhat.com>
11472
11473 PR server/18081
11474 * server.c (start_inferior): If the process exits, mourn it.
11475
11476 2015-04-21 Gary Benson <gbenson@redhat.com>
11477
11478 * hostio.c (fileio_open_flags_to_host): Factored out to
11479 fileio_to_host_openflags in common/fileio.c. Single use
11480 updated.
11481
11482 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11483
11484 * linux-xtensa-low.c (xtensa_fill_gregset)
11485 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
11486 XCHAL_HAVE_LOOP.
11487
11488 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11489
11490 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
11491 (regs_info): Replace usrregs pointer with NULL.
11492
11493 2015-04-17 Gary Benson <gbenson@redhat.com>
11494
11495 * target.h (struct target_ops) <pid_to_exec_file>: New field.
11496 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
11497 * server.c (handle_qxfer_exec_file): New function.
11498 (qxfer_packets): Add exec-file entry.
11499 (handle_query): Report qXfer:exec-file:read as supported packet.
11500
11501 2015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
11502
11503 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
11504
11505 2015-04-09 Gary Benson <gbenson@redhat.com>
11506
11507 * hostio-errno.c (errno_to_fileio_error): Remove function.
11508 Update caller to use remote_fileio_to_fio_error.
11509
11510 2015-04-09 Yao Qi <yao.qi@linaro.org>
11511
11512 * linux-low.c (linux_insert_point): Call
11513 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
11514 (linux_remove_point): Call remove_memory_breakpoint if type is
11515 raw_bkpt_type_sw.
11516 * linux-x86-low.c (x86_insert_point): Don't call
11517 insert_memory_breakpoint.
11518 (x86_remove_point): Don't call remove_memory_breakpoint.
11519
11520 2015-04-01 Pedro Alves <palves@redhat.com>
11521 Cleber Rosa <crosa@redhat.com>
11522
11523 * server.c (gdbserver_usage): Reorganize and extend the usage
11524 message.
11525
11526 2015-03-24 Pedro Alves <palves@redhat.com>
11527
11528 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
11529 output. Also dump TRAP_TRACE.
11530 (linux_low_filter_event): In debug output, distinguish a
11531 resume_stop SIGSTOP from a delayed SIGSTOP.
11532
11533 2015-03-24 Gary Benson <gbenson@redhat.com>
11534
11535 * linux-x86-low.c (x86_linux_new_thread): Moved to
11536 nat/x86-linux.c.
11537 (x86_linux_prepare_to_resume): Likewise.
11538
11539 2015-03-24 Gary Benson <gbenson@redhat.com>
11540
11541 * Makefile.in (x86-linux-dregs.o): New rule.
11542 * configure.srv: Add x86-linux-dregs.o to relevant targets.
11543 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
11544 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
11545 (x86_linux_dr_get): Likewise.
11546 (x86_linux_dr_set): Likewise.
11547 (update_debug_registers_callback): Likewise.
11548 (x86_linux_dr_set_addr): Likewise.
11549 (x86_linux_dr_get_addr): Likewise.
11550 (x86_linux_dr_set_control): Likewise.
11551 (x86_linux_dr_get_control): Likewise.
11552 (x86_linux_dr_get_status): Likewise.
11553 (x86_linux_update_debug_registers): Likewise.
11554
11555 2015-03-24 Gary Benson <gbenson@redhat.com>
11556
11557 * linux-x86-low.c (x86_linux_update_debug_registers):
11558 New function, factored out from...
11559 (x86_linux_prepare_to_resume): ...this.
11560
11561 2015-03-24 Gary Benson <gbenson@redhat.com>
11562
11563 * linux-x86-low.c (x86_linux_dr_get): Update comments.
11564 (x86_linux_dr_set): Likewise.
11565 (update_debug_registers_callback): Likewise.
11566 (x86_linux_dr_set_addr): Likewise.
11567 (x86_linux_dr_get_addr): Likewise.
11568 (x86_linux_dr_set_control): Likewise.
11569 (x86_linux_dr_get_control): Likewise.
11570 (x86_linux_dr_get_status): Likewise.
11571 (x86_linux_prepare_to_resume): Likewise.
11572
11573 2015-03-24 Gary Benson <gbenson@redhat.com>
11574
11575 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
11576 Use perror_with_name. Pass string through gettext.
11577 (x86_linux_dr_set): Likewise.
11578
11579 2015-03-24 Gary Benson <gbenson@redhat.com>
11580
11581 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
11582 (x86_linux_dr_set_addr): ...this.
11583 (x86_dr_low_get_addr): Rename to...
11584 (x86_linux_dr_get_addr): ...this.
11585 (x86_dr_low_set_control): Rename to...
11586 (x86_linux_dr_set_control): ...this.
11587 (x86_dr_low_get_control): Rename to...
11588 (x86_linux_dr_get_control): ...this.
11589 (x86_dr_low_get_status): Rename to...
11590 (x86_linux_dr_get_status): ...this.
11591 (x86_dr_low): Update with new function names.
11592
11593 2015-03-24 Gary Benson <gbenson@redhat.com>
11594
11595 * Makefile.in (x86-linux.o): New rule.
11596 * configure.srv: Add x86-linux.o to relevant targets.
11597 * linux-low.c (lwp_set_arch_private_info): New function.
11598 (lwp_arch_private_info): Likewise.
11599 * linux-x86-low.c: Include nat/x86-linux.h.
11600 (arch_lwp_info): Removed structure.
11601 (update_debug_registers_callback):
11602 Use lwp_set_debug_registers_changed.
11603 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
11604 and lwp_set_debug_registers_changed.
11605 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
11606
11607 2015-03-24 Gary Benson <gbenson@redhat.com>
11608
11609 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
11610 * linux-arm-low.c (arm_new_thread): Likewise.
11611 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
11612 * linux-mips-low.c (mips_linux_new_thread): Likewise.
11613 * linux-x86-low.c (x86_linux_new_thread): Likewise.
11614 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
11615
11616 2015-03-24 Gary Benson <gbenson@redhat.com>
11617
11618 * linux-low.c (ptid_of_lwp): New function.
11619 (lwp_is_stopped): Likewise.
11620 (lwp_stop_reason): Likewise.
11621 * linux-x86-low.c (update_debug_registers_callback):
11622 Use lwp_is_stopped.
11623 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
11624 lwp_stop_reason.
11625
11626 2015-03-24 Gary Benson <gbenson@redhat.com>
11627
11628 * linux-low.h (linux_stop_lwp): Remove declaration.
11629
11630 2015-03-24 Gary Benson <gbenson@redhat.com>
11631
11632 * linux-low.h: Include nat/linux-nat.h.
11633 * linux-low.c (iterate_over_lwps_args): New structure.
11634 (iterate_over_lwps_filter): New function.
11635 (iterate_over_lwps): Likewise.
11636 * linux-x86-low.c (update_debug_registers_callback):
11637 Update signature to what iterate_over_lwps expects.
11638 Remove PID check that iterate_over_lwps now performs.
11639 (x86_dr_low_set_addr): Use iterate_over_lwps.
11640 (x86_dr_low_set_control): Likewise.
11641
11642 2015-03-24 Gary Benson <gbenson@redhat.com>
11643
11644 * linux-x86-low.c (x86_debug_reg_state): New function.
11645 (x86_linux_prepare_to_resume): Use the above.
11646
11647 2015-03-24 Gary Benson <gbenson@redhat.com>
11648
11649 * linux-low.c (current_lwp_ptid): New function.
11650 * linux-x86-low.c: Include nat/linux-nat.h.
11651 (x86_dr_low_get_addr): Use current_lwp_ptid.
11652 (x86_dr_low_get_control): Likewise.
11653 (x86_dr_low_get_status): Likewise.
11654
11655 2015-03-20 Pedro Alves <palves@redhat.com>
11656
11657 * tracepoint.c (cmd_qtstatus): Make "str" const.
11658
11659 2015-03-20 Pedro Alves <palves@redhat.com>
11660
11661 * server.c (handle_general_set): Make "req_str" const.
11662
11663 2015-03-19 Pedro Alves <palves@redhat.com>
11664
11665 * linux-low.c (linux_resume_one_lwp): Rename to ...
11666 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
11667 instead call perror_with_name.
11668 (check_ptrace_stopped_lwp_gone): New function.
11669 (linux_resume_one_lwp): Reimplement as wrapper around
11670 linux_resume_one_lwp_throw that swallows errors if the LWP is
11671 gone.
11672
11673 2015-03-19 Pedro Alves <palves@redhat.com>
11674
11675 * linux-low.c (count_events_callback, select_event_lwp_callback):
11676 No longer check whether the thread has resume_stop as last resume
11677 kind.
11678
11679 2015-03-19 Pedro Alves <palves@redhat.com>
11680
11681 * linux-low.c (count_events_callback, select_event_lwp_callback):
11682 Use the lwp's status_pending_p field, not the thread's.
11683
11684 2015-03-19 Pedro Alves <palves@redhat.com>
11685
11686 * linux-low.c (select_event_lwp_callback): Update comments to
11687 no longer mention SIGTRAP.
11688
11689 2015-03-18 Gary Benson <gbenson@redhat.com>
11690
11691 * server.c (handle_query): Do not report vFile:fstat as supported.
11692
11693 2015-03-11 Gary Benson <gbenson@redhat.com>
11694
11695 * hostio.c (sys/types.h): New include.
11696 (sys/stat.h): Likewise.
11697 (common-remote-fileio.h): Likewise.
11698 (handle_fstat): New function.
11699 (handle_vFile): Handle vFile:fstat packets.
11700
11701 2015-03-11 Gary Benson <gbenson@redhat.com>
11702
11703 * configure.ac (AC_CHECK_MEMBERS): Add checks for
11704 struct stat.st_blocks and struct stat.st_blksize.
11705 * configure: Regenerate.
11706 * config.in: Likewise.
11707 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
11708 (OBS): Add common-remote-fileio.o.
11709 (common-remote-fileio.o): New rule.
11710
11711 2015-03-09 Pedro Alves <palves@redhat.com>
11712
11713 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
11714 'struct sockaddr' pointer in 'accept' call.
11715
11716 2015-03-09 Pedro Alves <palves@redhat.com>
11717
11718 Revert:
11719 2015-03-07 Pedro Alves <palves@redhat.com>
11720 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11721 or <winsock2.h> here. Instead include "gdb_socket.h".
11722 (remote_open): Use union gdb_sockaddr_u.
11723 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11724 or <winsock2.h> here. Instead include "gdb_socket.h".
11725 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11726 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11727 or <sys/un.h>.
11728 (init_named_socket, gdb_agent_helper_thread): Use union
11729 gdb_sockaddr_u.
11730
11731 2015-03-07 Pedro Alves <palves@redhat.com>
11732
11733 * configure.ac (build_warnings): Move
11734 -Wdeclaration-after-statement to the C-specific set.
11735 * configure: Regenerate.
11736
11737 2015-03-07 Pedro Alves <palves@redhat.com>
11738
11739 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11740 or <winsock2.h> here. Instead include "gdb_socket.h".
11741 (remote_open): Use union gdb_sockaddr_u.
11742 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11743 or <winsock2.h> here. Instead include "gdb_socket.h".
11744 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11745 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11746 or <sys/un.h>.
11747 (init_named_socket, gdb_agent_helper_thread): Use union
11748 gdb_sockaddr_u.
11749
11750 2015-03-07 Pedro Alves <palves@redhat.com>
11751
11752 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
11753 instead.
11754
11755 2015-03-06 Yao Qi <yao.qi@linaro.org>
11756
11757 * linux-aarch64-low.c (aarch64_insert_point): Use
11758 show_debug_regs as a boolean.
11759 (aarch64_remove_point): Likewise.
11760
11761 2015-03-05 Pedro Alves <palves@redhat.com>
11762
11763 * lynx-low.c (lynx_target_ops): Install NULL hooks for
11764 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
11765 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
11766 * nto-low.c (nto_target_ops): Likewise.
11767 * spu-low.c (spu_target_ops): Likewise.
11768 * win32-low.c (win32_target_ops): Likewise.
11769
11770 2015-03-04 Pedro Alves <palves@redhat.com>
11771
11772 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
11773 Decide whether a breakpoint triggered based on the SIGTRAP's
11774 siginfo.si_code.
11775 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
11776 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
11777 (linux_low_filter_event): Check for breakpoints before checking
11778 watchpoints.
11779 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
11780 siginfo.si_code.
11781 (linux_stopped_by_sw_breakpoint)
11782 (linux_supports_stopped_by_sw_breakpoint)
11783 (linux_stopped_by_hw_breakpoint)
11784 (linux_supports_stopped_by_hw_breakpoint): New functions.
11785 (linux_target_ops): Install new target methods.
11786
11787 2015-03-04 Pedro Alves <palves@redhat.com>
11788
11789 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
11790 * server.c (swbreak_feature, hwbreak_feature): New globals.
11791 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
11792 (captured_main): Clear swbreak_feature and hwbreak_feature.
11793 * server.h (swbreak_feature, hwbreak_feature): Declare.
11794 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
11795 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
11796 supports_stopped_by_hw_breakpoint>: New fields.
11797 (target_supports_stopped_by_sw_breakpoint)
11798 (target_stopped_by_sw_breakpoint)
11799 (target_supports_stopped_by_hw_breakpoint)
11800 (target_stopped_by_hw_breakpoint): Declare.
11801
11802 2015-03-04 Pedro Alves <palves@redhat.com>
11803
11804 enum lwp_stop_reason -> enum target_stop_reason
11805 * linux-low.c (check_stopped_by_breakpoint): Adjust.
11806 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
11807 (linux_wait_1, stuck_in_jump_pad_callback)
11808 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
11809 (linux_stopped_by_watchpoint):
11810 * linux-low.h (enum lwp_stop_reason): Delete.
11811 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
11812 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11813
11814 2015-03-04 Yao Qi <yao.qi@linaro.org>
11815
11816 * Makefile.in (SFILES): Add linux-aarch64-low.c.
11817
11818 2015-03-03 Gary Benson <gbenson@redhat.com>
11819
11820 * hostio.c (handle_vFile): Fix prefix lengths.
11821
11822 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
11823
11824 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
11825 ptr_bits.
11826
11827 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
11828
11829 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
11830 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
11831 (clean): Add "rm -f" for above C files.
11832 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
11833 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
11834 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
11835 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
11836 * linux-s390-low.c (HWCAP_S390_VX): New macro.
11837 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
11838 (init_registers_s390x_vx_linux64)
11839 (init_registers_s390x_tevx_linux64)
11840 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
11841 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
11842 declarations.
11843 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
11844 (s390_store_vxrs_high): New functions.
11845 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
11846 NT_S390_VXRS_HIGH.
11847 (s390_arch_setup): Add logic for selecting one of the new target
11848 descriptions. Activate the new vector regsets if applicable.
11849 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
11850 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
11851 and init_registers_s390x_tevx_linux64.
11852
11853 2015-03-01 Pedro Alves <palves@redhat.com>
11854
11855 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
11856 parameter.
11857
11858 2015-02-27 Pedro Alves <palves@redhat.com>
11859
11860 * linux-x86-low.c (u_debugreg_offset): New function.
11861 (x86_linux_dr_get, x86_linux_dr_set): Use it.
11862
11863 2015-02-27 Pedro Alves <palves@redhat.com>
11864
11865 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
11866 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
11867 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
11868 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
11869 (ps_lsetfpregs, ps_getpid)
11870 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
11871 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
11872 (ps_lsetxregs, ps_plog): Declare.
11873
11874 2015-02-27 Pedro Alves <palves@redhat.com>
11875
11876 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
11877 IP_AGENT_EXPORT_FUNC.
11878 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
11879 IP_AGENT_EXPORT_FUNC.
11880 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
11881 (IP_AGENT_EXPORT): Delete.
11882 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11883 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11884 (gdb_trampoline_buffer_error, collecting, gdb_collect)
11885 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
11886 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
11887 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
11888 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
11889 (traceframe_read_count, traceframe_write_count)
11890 (traceframes_created, trace_state_variables, get_raw_reg)
11891 (get_trace_state_variable_value, set_trace_state_variable_value)
11892 (ust_loaded, helper_thread_id, cmd_buf): Use
11893 IPA_SYM_EXPORTED_NAME.
11894 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
11895 (tracepoints) Use IP_AGENT_EXPORT_VAR.
11896 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
11897 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11898 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
11899 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
11900 EXTERN_C_PUSH/EXTERN_C_POP.
11901 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
11902 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
11903 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11904 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
11905 (traceframe_write_count, traceframe_read_count)
11906 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
11907 (about_to_request_buffer_space, get_trace_state_variable_value)
11908 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
11909 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
11910 EXTERN_C_PUSH/EXTERN_C_POP.
11911 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
11912 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
11913 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
11914 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11915 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11916 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11917 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
11918 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
11919 Define.
11920 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
11921 (IP_AGENT_EXPORT_VAR_DECL): Define.
11922 (tracing): Declare.
11923 (gdb_agent_get_raw_reg): Declare.
11924
11925 2015-02-27 Tom Tromey <tromey@redhat.com>
11926 Pedro Alves <palves@redhat.com>
11927
11928 Rename symbols whose names are reserved C++ keywords throughout.
11929
11930 2015-02-27 Pedro Alves <palves@redhat.com>
11931
11932 * Makefile.in (COMPILER): New, get it from autoconf.
11933 (CXX): Get from autoconf instead.
11934 (COMPILE.pre): Use COMPILER.
11935 (CC-LD): Rename to ...
11936 (CC_LD): ... this. Use COMPILER.
11937 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
11938 (CXX_FOR_TARGET): Default to g++ instead of gcc.
11939 * acinclude.m4: Include build-with-cxx.m4.
11940 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
11941 Disable -Werror by default if building in C++ mode.
11942 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
11943 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
11944 the C++ compiler. Save/restore CXXFLAGS too.
11945 * configure: Regenerate.
11946
11947 2015-02-27 Pedro Alves <palves@redhat.com>
11948
11949 * acinclude.m4: Include libiberty.m4.
11950 * configure.ac: Call libiberty_INIT.
11951 * config.in, configure: Regenerate.
11952
11953 2015-02-26 Pedro Alves <palves@redhat.com>
11954
11955 * linux-low.c (linux_wait_1): When incrementing the PC past a
11956 program breakpoint always use the_low_target.breakpoint_len as
11957 increment, rather than the maximum between that and
11958 the_low_target.decr_pc_after_break.
11959
11960 2015-02-23 Pedro Alves <palves@redhat.com>
11961
11962 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
11963 thread was doing a step-over; always adjust the PC if
11964 we stepped over a permanent breakpoint.
11965 (linux_wait_1): If we stepped over breakpoint that was on top of a
11966 permanent breakpoint, manually advance the PC past it.
11967
11968 2015-02-23 Pedro Alves <palves@redhat.com>
11969
11970 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
11971 modes.
11972 (x86_fill_gregset, x86_store_gregset): Use it when handling
11973 $orig_eax.
11974
11975 2015-02-20 Pedro Alves <palves@redhat.com>
11976
11977 * thread-db.c: Include "nat/linux-procfs.h".
11978 (thread_db_init): Skip listing new threads if the kernel supports
11979 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
11980
11981 2015-02-20 Pedro Alves <palves@redhat.com>
11982
11983 * linux-low.c (status_pending_p_callback): Use ptid_match.
11984
11985 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
11986
11987 PR breakpoints/16812
11988 * linux-low.c (wstatus_maybe_breakpoint): Remove.
11989 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
11990 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
11991
11992 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
11993
11994 PR breakpoints/15956
11995 * tracepoint.c (cmd_qtinit): Add check for current_thread.
11996
11997 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11998
11999 * linux-low.c (linux_low_btrace_conf): Print size.
12000 * server.c (handle_btrace_conf_general_set): New.
12001 (hanle_general_set): Call handle_btrace_conf_general_set.
12002 (handle_query): Report Qbtrace-conf:bts:size as supported.
12003
12004 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12005
12006 * linux-low.c (linux_low_enable_btrace): Update parameters.
12007 (linux_low_btrace_conf): New.
12008 (linux_target_ops)<to_btrace_conf>: Initialize.
12009 * server.c (current_btrace_conf): New.
12010 (handle_btrace_enable): Rename to ...
12011 (handle_btrace_enable_bts): ... this. Pass &current_btrace_conf
12012 to target_enable_btrace. Update comment. Update users.
12013 (handle_qxfer_btrace_conf): New.
12014 (qxfer_packets): Add btrace-conf entry.
12015 (handle_query): Report qXfer:btrace-conf:read as supported packet.
12016 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
12017 (target_ops)<read_btrace_conf>: New.
12018 (target_enable_btrace): Update parameters.
12019 (target_read_btrace_conf): New.
12020
12021 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12022
12023 * server.c (handle_btrace_general_set): Remove call to
12024 target_supports_btrace.
12025 (supported_btrace_packets): New.
12026 (handle_query): Call supported_btrace_packets.
12027 * target.h: include btrace-common.h.
12028 (btrace_target_info): Removed.
12029 (supports_btrace, target_supports_btrace): Update parameters.
12030
12031 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12032
12033 * Makefile.in (SFILES): Add common/btrace-common.c.
12034 (OBS): Add common/btrace-common.o.
12035 (btrace-common.o): Add build rules.
12036 * linux-low: Include btrace-common.h.
12037 (linux_low_read_btrace): Use struct btrace_data. Call
12038 btrace_data_init and btrace_data_fini.
12039
12040 2015-02-06 Pedro Alves <palves@redhat.com>
12041
12042 * thread-db.c (find_new_threads_callback): Add debug output.
12043
12044 2015-02-04 Pedro Alves <palves@redhat.com>
12045
12046 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
12047 (resume_stopped_resumed_lwps): New function.
12048 (linux_wait_for_event_filtered): Use it.
12049
12050 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
12051
12052 * Makefile.in (SFILES): Add linux-personality.c.
12053 (linux-personality.o): New rule.
12054 * configure.srv (srv_linux_obj): Add linux-personality.o to the
12055 list of objects to be built.
12056 * linux-low.c: Include nat/linux-personality.h.
12057 (linux_create_inferior): Remove code to disable address space
12058 randomization (moved to ../nat/linux-personality.c). Create
12059 cleanup to disable address space randomization.
12060
12061 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
12062
12063 * Makefile.in (posix-strerror.o): New rule.
12064 (mingw-strerror.o): Likewise.
12065 * configure: Regenerated.
12066 * configure.ac: Source file ../common/common.host. Initialize new
12067 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
12068
12069 2015-01-14 Yao Qi <yao@codesourcery.com>
12070
12071 * Makefile.in (SFILES): Add nat/ppc-linux.c.
12072 (ppc-linux.o): New rule.
12073 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
12074 * configure.ac: AC_CHECK_FUNCS(getauxval).
12075 * config.in: Re-generated.
12076 * configure: Re-generated.
12077 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
12078 ppc64_64bit_inferior_p
12079
12080 2015-01-14 Yao Qi <yao@codesourcery.com>
12081
12082 * linux-ppc-low.c: Include "nat/ppc-linux.h".
12083 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
12084 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
12085 (PT_ORIG_R3, PT_TRAP): Likewise.
12086 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
12087 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
12088 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
12089
12090 2015-01-10 Joel Brobecker <brobecker@adacore.com>
12091
12092 * i387-fp.c (i387_cache_to_xsave): In look over
12093 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
12094 zmmh_low_space field by use of zmmh_high_space.
12095
12096 2015-01-09 Pedro Alves <palves@redhat.com>
12097
12098 * linux-low.c (step_over_bkpt): Move higher up in the file.
12099 (handle_extended_wait): Don't store the stop_pc here.
12100 (get_stop_pc): Adjust comments and rename to ...
12101 (check_stopped_by_breakpoint): ... this. Record whether the LWP
12102 stopped for a software breakpoint or hardware breakpoint.
12103 (thread_still_has_status_pending_p): New function.
12104 (status_pending_p_callback): Use
12105 thread_still_has_status_pending_p. If the event is no longer
12106 interesting, resume the LWP.
12107 (handle_tracepoints): Add assert.
12108 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
12109 (wstatus_maybe_breakpoint): New function.
12110 (cancel_breakpoint): Delete function.
12111 (check_stopped_by_watchpoint): New function, factored out from
12112 linux_low_filter_event.
12113 (lp_status_maybe_breakpoint): Delete function.
12114 (linux_low_filter_event): Remove filter_ptid argument.
12115 Leave thread group exits pending here. Store the LWP's stop PC.
12116 Always leave events pending.
12117 (linux_wait_for_event_filtered): Pull all events out of the
12118 kernel, and leave them all pending.
12119 (count_events_callback, select_event_lwp_callback): Consider all
12120 events.
12121 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
12122 (select_event_lwp): Only give preference to the stepping LWP in
12123 all-stop mode. Adjust comments.
12124 (ignore_event): New function.
12125 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
12126 references to cancel_breakpoints. Adjust to renames. Also give
12127 equal priority to all LWPs that have had events in non-stop mode.
12128 If reporting a software breakpoint event, unadjust the LWP's PC.
12129 (linux_wait): If linux_wait_1 returned an ignored event, retry.
12130 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
12131 Adjust.
12132 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
12133 (resume_status_pending_p): Use thread_still_has_status_pending_p.
12134 (linux_stopped_by_watchpoint): Adjust.
12135 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
12136 * linux-low.h (enum lwp_stop_reason): New.
12137 (struct lwp_info) <stop_pc>: Adjust comment.
12138 <stopped_by_watchpoint>: Delete field.
12139 <stop_reason>: New field.
12140 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
12141 * mem-break.c (software_breakpoint_inserted_here)
12142 (hardware_breakpoint_inserted_here): New function.
12143 * mem-break.h (software_breakpoint_inserted_here)
12144 (hardware_breakpoint_inserted_here): Declare.
12145 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
12146 (cancel_breakpoints): Delete.
12147 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
12148 (upload_fast_traceframes): Remove references to
12149 cancel_breakpoints.
12150
12151 2015-01-09 Pedro Alves <palves@redhat.com>
12152
12153 * thread-db.c (find_new_threads_callback): Ignore thread if the
12154 kernel thread ID is -1.
12155
12156 2015-01-09 Pedro Alves <palves@redhat.com>
12157
12158 * linux-low.c (linux_attach_fail_reason_string): Move to
12159 nat/linux-ptrace.c, and rename.
12160 (linux_attach_lwp): Update comment.
12161 (attach_proc_task_lwp_callback): New function.
12162 (linux_attach): Adjust to rename and use
12163 linux_proc_attach_tgid_threads.
12164 (linux_attach_fail_reason_string): Delete declaration.
12165
12166 2015-01-01 Joel Brobecker <brobecker@adacore.com>
12167
12168 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
12169 * server.c (gdbserver_version): Likewise.
12170
12171 2014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
12172
12173 * remote-utils.c: Include ctype.h.
12174 (input_interrupt): Explicitly handle the case when the char
12175 received is the NUL byte. Improve the printing of non-ASCII
12176 characters.
12177
12178 2014-12-16 Joel Brobecker <brobecker@adacore.com>
12179
12180 * linux-low.c (linux_low_filter_event): Update call to
12181 linux_enable_event_reporting following the addition of
12182 a new parameter to that function.
12183
12184 2014-12-16 Catalin Udma <catalin.udma@freescale.com>
12185
12186 PR server/17457
12187 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
12188 (AARCH64_FPCR_REGNO): Likewise.
12189 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
12190 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
12191 (aarch64_store_fpregset): Likewise.
12192
12193 2014-12-15 Joel Brobecker <brobecker@adacore.com>
12194
12195 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
12196 Remove FIXME comment about assumption about N.
12197
12198 2014-12-13 Joel Brobecker <brobecker@adacore.com>
12199
12200 * configure.ac: If large-file support is disabled in GDBserver,
12201 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
12202 * configure: Regenerate.
12203
12204 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12205
12206 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
12207 warning upon ENODATA from ptrace.
12208 * linux-s390-low.c (s390_store_tdb): New.
12209 (s390_regsets): Add regset for NT_S390_TDB.
12210
12211 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12212
12213 * linux-low.c (regsets_store_inferior_registers): Skip regsets
12214 without a fill_function.
12215 * linux-s390-low.c (s390_fill_last_break): Remove.
12216 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
12217 (s390_arch_setup): Use regset's size instead of fill_function for
12218 loop end condition.
12219
12220 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12221
12222 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
12223 the regset's store function when ptrace returned an error.
12224 * regcache.c (get_thread_regcache): Invalidate register cache
12225 before fetching inferior's registers.
12226
12227 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12228
12229 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
12230 while-loop as for-loop.
12231 (regsets_store_inferior_registers): Likewise.
12232
12233 2014-11-28 Yao Qi <yao@codesourcery.com>
12234
12235 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
12236 * config.in, configure: Re-generate.
12237 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
12238 is defined.
12239
12240 2014-11-21 Yao Qi <yao@codesourcery.com>
12241
12242 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
12243 (AC_CHECK_HEADERS): Remove malloc.h.
12244 * configure: Re-generated.
12245 * config.in: Re-generated.
12246 * server.h: Don't include alloca.h and malloc.h.
12247 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
12248 Don't include malloc.h.
12249
12250 2014-11-17 Joel Brobecker <brobecker@adacore.com>
12251
12252 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
12253 corresponding ERRNO check in same block.
12254
12255 2014-11-12 Pedro Alves <palves@redhat.com>
12256
12257 * server.c (cont_thread): Update comment.
12258 (start_inferior, attach_inferior): No longer clear cont_thread.
12259 (handle_v_cont): No longer set cont_thread.
12260 (captured_main): Clear cont_thread each time a GDB connects.
12261
12262 2014-11-12 Pedro Alves <palves@redhat.com>
12263
12264 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
12265 thread, and don't resume all threads if the Hc thread has exited.
12266
12267 2014-11-12 Pedro Alves <palves@redhat.com>
12268
12269 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
12270 the process group instead of to a specific LWP.
12271
12272 2014-10-15 Pedro Alves <palves@redhat.com>
12273
12274 PR server/17487
12275 * win32-arm-low.c (arm_set_thread_context): Remove current_event
12276 parameter.
12277 (arm_set_thread_context): Delete.
12278 (the_low_target): Adjust.
12279 * win32-i386-low.c (debug_registers_changed)
12280 (debug_registers_used): Delete.
12281 (update_debug_registers_callback): New function.
12282 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
12283 needing to update their debug registers.
12284 (win32_get_current_dr): New function.
12285 (x86_dr_low_get_addr, x86_dr_low_get_control)
12286 (x86_dr_low_get_status): Fetch the debug register from the thread
12287 record's context.
12288 (i386_initial_stuff): Adjust.
12289 (i386_get_thread_context): Remove current_event parameter. Don't
12290 clear debug_registers_changed nor copy DR values to
12291 debug_reg_state.
12292 (i386_set_thread_context): Delete.
12293 (i386_prepare_to_resume): New function.
12294 (i386_thread_added): Mark the thread as needing to update irs
12295 debug registers.
12296 (the_low_target): Remove i386_set_thread_context and install
12297 i386_prepare_to_resume.
12298 * win32-low.c (win32_get_thread_context): Adjust.
12299 (win32_set_thread_context): Use SetThreadContext
12300 directly.
12301 (win32_prepare_to_resume): New function.
12302 (win32_require_context): New function, factored out from ...
12303 (thread_rec): ... this.
12304 (continue_one_thread): Call win32_prepare_to_resume on each thread
12305 we're about to continue.
12306 (win32_resume): Call win32_prepare_to_resume on the event thread.
12307 * win32-low.h (struct win32_thread_info)
12308 <debug_registers_changed>: New field.
12309 (struct win32_target_ops): Change prototype of set_thread_context,
12310 delete set_thread_context and add prepare_to_resume.
12311 (win32_require_context): New declaration.
12312
12313 2014-10-08 Gary Benson <gbenson@redhat.com>
12314
12315 * server.h: Do not include common-exceptions.h.
12316
12317 2014-10-08 Gary Benson <gbenson@redhat.com>
12318
12319 * server.h: Do not include cleanups.h.
12320
12321 2014-09-30 James Hogan <james.hogan@imgtec.com>
12322
12323 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
12324 mips64-dsp-linux.c.
12325
12326 2014-09-23 Yao Qi <yao@codesourcery.com>
12327
12328 * linux-low.c (lp_status_maybe_breakpoint): New function.
12329 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
12330 (count_events_callback): Likewise.
12331 (select_event_lwp_callback): Likewise.
12332 (cancel_breakpoints_callback): Likewise.
12333
12334 2014-09-19 Don Breazeal <donb@codesourcery.com>
12335
12336 * linux-low.c (handle_extended_wait): Call
12337 linux_ptrace_get_extended_event.
12338 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
12339 linux_is_extended_waitstatus.
12340
12341 2014-09-16 Joel Brobecker <brobecker@adacore.com>
12342
12343 * Makefile.in (CPPFLAGS): Define.
12344 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
12345 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
12346
12347 2014-09-16 Gary Benson <gbenson@redhat.com>
12348
12349 * inferiors.h (current_inferior): Renamed as...
12350 (current_thread): New variable. All uses updated.
12351 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
12352 (maybe_move_out_of_jump_pad): Likewise.
12353 (cancel_breakpoint): Likewise.
12354 (linux_low_filter_event): Likewise.
12355 (wait_for_sigstop): Likewise.
12356 (linux_resume_one_lwp): Likewise.
12357 (need_step_over_p): Likewise.
12358 (start_step_over): Likewise.
12359 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
12360 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
12361 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
12362 and save_inferior as saved_thread.
12363 * regcache.c (get_thread_regcache): Renamed saved_inferior as
12364 saved_thread.
12365 (regcache_invalidate_thread): Likewise.
12366 * remote-utils.c (prepare_resume_reply): Likewise.
12367 * thread-db.c (thread_db_get_tls_address): Likewise.
12368 (disable_thread_event_reporting): Likewise.
12369 (remove_thread_event_breakpoints): Likewise.
12370 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
12371 as saved_thread.
12372 * target.h (set_desired_inferior): Renamed as...
12373 (set_desired_thread): New declaration. All uses updated.
12374 * server.c (myresume): Updated comment to reference thread instead
12375 of inferior.
12376 (handle_serial_event): Likewise.
12377 (handle_target_event): Likewise.
12378
12379 2014-09-12 Tom Tromey <tromey@redhat.com>
12380 Gary Benson <gbenson@redhat.com>
12381
12382 * regcache.h: Include common-regcache.h.
12383 (regcache_read_pc): Don't declare.
12384 * regcache.c (get_thread_regcache_for_ptid): New function.
12385
12386 2014-09-11 Tom Tromey <tromey@redhat.com>
12387 Gary Benson <gbenson@redhat.com>
12388
12389 * symbol.c: New file.
12390 * Makefile.in (SFILES): Add symbol.c.
12391 (OBS): Add symbol.o.
12392
12393 2014-09-11 Gary Benson <gbenson@redhat.com>
12394
12395 * target.c (target_stop_ptid, target_continue_ptid): New
12396 functions.
12397
12398 2014-09-11 Tom Tromey <tromey@redhat.com>
12399 Gary Benson <gbenson@redhat.com>
12400
12401 * target.h: Include target/target.h.
12402 * target.c (target_read_memory, target_read_uint32)
12403 (target_write_memory): New functions.
12404
12405 2014-09-11 Gary Benson <gbenson@redhat.com>
12406
12407 * server.h (debug_hw_points): Don't declare.
12408 * server.c (debug_hw_points): Don't define. Replace all uses
12409 with show_debug_regs.
12410 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
12411 all uses with show_debug_regs.
12412
12413 2014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12414
12415 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
12416 endianness into account.
12417 (ppc_supply_ptrace_register): Likewise.
12418
12419 2014-09-03 James Hogan <james.hogan@imgtec.com>
12420
12421 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
12422 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
12423
12424 2014-09-03 Gary Benson <gbenson@redhat.com>
12425
12426 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
12427 ALL_DEBUG_ADDRESS_REGISTERS.
12428
12429 2014-09-02 Gary Benson <gbenson@redhat.com>
12430
12431 * i386-low.h: Renamed as...
12432 * x86-low.h: New file. All type, function and variable name
12433 prefixes changed from "i386_" to "x86_". All references updated.
12434 * i386-low.c: Renamed as...
12435 * x86-low.c: New file. All type, function and variable name
12436 prefixes changed from "i386_" to "x86_". All references updated.
12437
12438 2014-09-02 Gary Benson <gbenson@redhat.com>
12439
12440 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
12441 (x86_linux_new_thread): Likewise.
12442
12443 2014-08-29 Gary Benson <gbenson@redhat.com>
12444
12445 * server.h (setjmp.h): Do not include.
12446 (toplevel): Do not declare.
12447 (common-exceptions.h): Include.
12448 (cleanups.h): Likewise.
12449 * server.c (toplevel): Do not define.
12450 (exit_code): New static global.
12451 (detach_or_kill_for_exit_cleanup): New function.
12452 (main): New function. Original main renamed to...
12453 (captured_main): New function.
12454 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
12455
12456 2014-08-29 Gary Benson <gbenson@redhat.com>
12457
12458 * Makefile.in (SFILES): Add common/common-exceptions.c.
12459 (OBS): Add common-exceptions.o.
12460 (common-exceptions.o): New rule.
12461 * utils.c (prepare_to_throw_exception): New function.
12462
12463 2014-08-29 Gary Benson <gbenson@redhat.com>
12464
12465 * config.in: Regenerate.
12466 * configure: Likewise.
12467
12468 2014-08-29 Gary Benson <gbenson@redhat.com>
12469
12470 * Makefile.in (SFILES): Add common/cleanups.c.
12471 (OBS): cleanups.o.
12472 (cleanups.o): New rule.
12473
12474 2014-08-29 Gary Benson <gbenson@redhat.com>
12475
12476 * utils.c (internal_vwarning): New function.
12477
12478 2014-08-28 Gary Benson <gbenson@redhat.com>
12479
12480 * utils.h (fatal): Remove declaration.
12481 * utils.c (fatal): Remove function.
12482
12483 2014-08-28 Gary Benson <gbenson@redhat.com>
12484
12485 * tracepoint.c (gdb_agent_init): Replace fatal with
12486 perror_with_name.
12487 (initialize_tracepoint): Likewise.
12488
12489 2014-08-28 Gary Benson <gbenson@redhat.com>
12490
12491 * remote-utils.c (remote_prepare): Replace fatal with error.
12492
12493 2014-08-28 Gary Benson <gbenson@redhat.com>
12494
12495 * linux-low.c (linux_async): Replace fatal with warning.
12496 Tidy up and return.
12497 (linux_start_non_stop): Return -1 if linux_async failed.
12498
12499 2014-08-28 Gary Benson <gbenson@redhat.com>
12500
12501 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
12502 gdb_assert.
12503 (i386_dr_low_get_addr): Remove vague comment.
12504 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
12505 gdb_assert.
12506
12507 2014-08-28 Gary Benson <gbenson@redhat.com>
12508
12509 * inferiors.c (get_thread_process): Replace check with gdb_assert.
12510 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
12511 internal_error.
12512 (linux_resume_one_lwp): Likewise.
12513 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
12514 gdb_assert.
12515 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
12516 with internal_error.
12517 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
12518 (init_register_cache): Replace fatal with gdb_assert_not_reached.
12519 (find_register_by_name): Replace fatal with internal_error.
12520 (find_regno): Likewise.
12521 * tdesc.c (init_target_desc): Replace check with gdb_assert.
12522 * thread-db.c (thread_db_create_event): Likewise.
12523 (thread_db_load_search): Likewise.
12524 (try_thread_db_load_1): Likewise.
12525 * tracepoint.c (get_jump_space_head): Replace fatal with
12526 internal_error.
12527 (claim_trampoline_space): Likewise.
12528 (have_fast_tracepoint_trampoline_buffer): Likewise.
12529 (cmd_qtstart): Likewise.
12530 (stop_tracing): Likewise.
12531 (fast_tracepoint_collecting): Likewise.
12532 (target_malloc): Likewise.
12533 (download_tracepoint): Likewise.
12534 (download_trace_state_variables): Replace check with gdb_assert.
12535 (upload_fast_traceframes): Replace fatal with internal_error.
12536
12537 2014-08-19 Tom Tromey <tromey@redhat.com>
12538 Gary Benson <gbenson@redhat.com>
12539
12540 * Makefile.in (SFILES): Add common/common-debug.c.
12541 (OBS): Add common-debug.o.
12542 (common-debug.o): New rule.
12543 * debug.h (debug_printf): Don't declare.
12544 * debug.c (debug_printf): Renamed and rewritten as...
12545 (debug_vprintf): New function.
12546
12547 2014-08-19 Gary Benson <gbenson@redhat.com>
12548
12549 * utils.h: Do not include print-utils.h.
12550
12551 2014-08-19 Tom Tromey <tromey@redhat.com>
12552 Gary Benson <gbenson@redhat.com>
12553
12554 * server.h: Add static assertion.
12555 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
12556
12557 2014-08-19 Tom Tromey <tromey@redhat.com>
12558 Gary Benson <gbenson@redhat.com>
12559
12560 * Makefile.in (SFILES): Add common/errors.c.
12561 (OBS): Add errors.o.
12562 (IPA_OBS): Add errors-ipa.o.
12563 (errors.o): New rule.
12564 (errors-ipa.o): Likewise.
12565 * utils.h (perror_with_name, error, warning): Don't declare.
12566 * utils.c (warning): Renamed and rewritten as...
12567 (vwarning): New function.
12568 (error): Renamed and rewritten as...
12569 (verror): New function.
12570 (internal_error): Renamed and rewritten as...
12571 (internal_verror): New function.
12572
12573 2014-08-07 Gary Benson <gbenson@redhat.com>
12574
12575 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
12576 * configure: Regenerate.
12577 * config.in: Likewise.
12578 * server.h: Do not include errno.h.
12579 * event-loop.c: Likewise.
12580 * hostio-errno.c: Likewise.
12581 * linux-low.c: Likewise.
12582 * remote-utils.c: Likewise.
12583 * spu-low.c: Likewise.
12584 * utils.c: Likewise.
12585 * gdbreplay.c: Unconditionally include errno.h.
12586
12587 2014-08-07 Gary Benson <gbenson@redhat.com>
12588
12589 * server.h: Do not include string.h.
12590 * event-loop.c: Likewise.
12591 * linux-low.c: Likewise.
12592 * regcache.c: Likewise.
12593 * remote-utils.c: Likewise.
12594 * spu-low.c: Likewise.
12595 * utils.c: Likewise.
12596
12597 2014-08-07 Gary Benson <gbenson@redhat.com>
12598
12599 * server.h: Do not include gdb_assert.h.
12600
12601 2014-08-07 Gary Benson <gbenson@redhat.com>
12602
12603 * server.h: Do not include common-utils.h.
12604
12605 2014-08-07 Gary Benson <gbenson@redhat.com>
12606
12607 * server.h: Do not include ptid.h.
12608 * notif.h: Likewise.
12609
12610 2014-08-07 Gary Benson <gbenson@redhat.com>
12611
12612 * server.h: Do not include gdb_locale.h.
12613
12614 2014-08-07 Gary Benson <gbenson@redhat.com>
12615
12616 * server.h: Do not include gdb/signals.h.
12617 * win32-low.c: Likewise.
12618
12619 2014-08-07 Gary Benson <gbenson@redhat.com>
12620
12621 * server.h: Do not include pathmax.h.
12622
12623 2014-08-07 Gary Benson <gbenson@redhat.com>
12624
12625 * server.h: Do not include libiberty.h.
12626 * linux-bfin-low.c: Likewise.
12627
12628 2014-08-07 Gary Benson <gbenson@redhat.com>
12629
12630 * server.h: Do not include ansidecl.h.
12631
12632 2014-08-07 Gary Benson <gbenson@redhat.com>
12633
12634 * linux-x86-low.c: Do not include stddef.h.
12635 * lynx-ppc-low.c: Likewise.
12636 * tracepoint.c: Likewise.
12637
12638 2014-08-07 Gary Benson <gbenson@redhat.com>
12639
12640 * server.h: Do not include stdarg.h.
12641 * nto-low.c: Likewise.
12642
12643 2014-08-07 Gary Benson <gbenson@redhat.com>
12644
12645 * server.h: Do not include stdlib.h.
12646 * inferiors.c: Likewise.
12647 * linux-low.c: Likewise.
12648 * regcache.c: Likewise.
12649 * spu-low.c: Likewise.
12650 * tracepoint.c: Likewise.
12651 * utils.c: Likewise.
12652
12653 2014-08-07 Gary Benson <gbenson@redhat.com>
12654
12655 * server.h: Do not include stdio.h.
12656 * linux-low.c: Likewise.
12657 * remote-utils.c: Likewise.
12658 * spu-low.c: Likewise.
12659 * utils.c: Likewise.
12660 * wincecompat.c: Likewise.
12661
12662 2014-08-06 Gary Benson <gbenson@redhat.com>
12663
12664 * regcache.c (init_register_cache): Move conditionals inside if.
12665
12666 2014-08-06 Gary Benson <gbenson@redhat.com>
12667
12668 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
12669
12670 2014-07-31 Gary Benson <gbenson@redhat.com>
12671
12672 * ax.h: Do not include server.h.
12673 * gdbthread.h: Likewise.
12674 * lynx-low.h: Likewise.
12675 * notif.h: Likewise.
12676
12677 2014-07-30 Gary Benson <gbenson@redhat.com>
12678
12679 * server.h: Include common-defs.h.
12680 Do not include config.h or build-gnulib-gdbserver/config.h.
12681
12682 2014-07-30 Gary Benson <gbenson@redhat.com>
12683
12684 * hostio-errno.c: Move server.h to top of includes list.
12685 * inferiors.c: Likewise.
12686 * linux-x86-low.c: Likewise.
12687 * notif.c: Include server.h.
12688
12689 2014-07-24 Tom Tromey <tromey@redhat.com>
12690 Gary Benson <gbenson@redhat.com>
12691
12692 * server.h (CORE_ADDR): Now unsigned.
12693
12694 2014-07-16 Pedro Alves <palves@redhat.com>
12695
12696 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
12697
12698 2014-07-15 Pedro Alves <palves@redhat.com>
12699
12700 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
12701 copy.
12702
12703 2014-07-11 Pedro Alves <palves@redhat.com>
12704
12705 * linux-low.c (kill_wait_lwp): New function, based on
12706 kill_one_lwp_callback, but use my_waitpid directly.
12707 (kill_one_lwp_callback, linux_kill): Use it.
12708
12709 2014-06-23 Pedro Alves <palves@redhat.com>
12710
12711 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
12712 before setting DR0..DR3.
12713
12714 2014-06-20 Gary Benson <gbenson@redhat.com>
12715
12716 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
12717 * configure: Regenerated.
12718 * config.in: Likewise.
12719
12720 2014-06-20 Gary Benson <gbenson@redhat.com>
12721
12722 * Makefile.in (SFILES): Update locations for files moved
12723 from common to nat.
12724 (object file files): Reordered.
12725
12726 2014-06-20 Gary Benson <gbenson@redhat.com>
12727
12728 * i386-low.h (i386_dr_low_can_set_addr): Removed.
12729 (i386_dr_low_set_addr): Likewise.
12730 (i386_dr_low_get_addr): Likewise.
12731 (i386_dr_low_can_set_control): Likewise.
12732 (i386_dr_low_set_control): Likewise.
12733 (i386_dr_low_get_control): Likewise.
12734 (i386_dr_low_get_status): Likewise.
12735 (i386_get_debug_register_length): Likewise.
12736 * linux-x86-low.c (i386_dr_low_set_addr):
12737 Changed signature. Made static.
12738 (i386_dr_low_get_addr): Likewise.
12739 (i386_dr_low_set_control): Likewise.
12740 (i386_dr_low_get_control): Likewise.
12741 (i386_dr_low_get_status): Likewise.
12742 (i386_dr_low): New global variable.
12743 * win32-i386-low.c (i386_dr_low_set_addr):
12744 Changed signature. Made static.
12745 (i386_dr_low_get_addr): Likewise.
12746 (i386_dr_low_set_control): Likewise.
12747 (i386_dr_low_get_control): Likewise.
12748 (i386_dr_low_get_status): Likewise.
12749 (i386_dr_low): New global variable.
12750
12751 2014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
12752
12753 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
12754 * Makefile.in (AR, AR_FLAGS): Define.
12755 * configure: Regenerate.
12756
12757 2014-06-19 Gary Benson <gbenson@redhat.com>
12758
12759 * Makefile.in (i386-dregs.o): New rule.
12760 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
12761 * i386-low.c (target.h): Remove include.
12762 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
12763 (DR_CONTROL_SHIFT): Likewise.
12764 (DR_CONTROL_SIZE): Likewise.
12765 (DR_RW_EXECUTE): Likewise.
12766 (DR_RW_WRITE): Likewise.
12767 (DR_RW_READ): Likewise.
12768 (DR_RW_IORW): Likewise.
12769 (DR_LEN_1): Likewise.
12770 (DR_LEN_2): Likewise.
12771 (DR_LEN_4): Likewise.
12772 (DR_LEN_8): Likewise.
12773 (DR_LOCAL_ENABLE_SHIFT): Likewise.
12774 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
12775 (DR_ENABLE_SIZE): Likewise.
12776 (DR_LOCAL_SLOWDOWN): Likewise.
12777 (DR_GLOBAL_SLOWDOWN): Likewise.
12778 (DR_CONTROL_RESERVED): Likewise.
12779 (I386_DR_CONTROL_MASK): Likewise.
12780 (I386_DR_VACANT): Likewise.
12781 (I386_DR_LOCAL_ENABLE): Likewise.
12782 (I386_DR_GLOBAL_ENABLE): Likewise.
12783 (I386_DR_DISABLE): Likewise.
12784 (I386_DR_SET_RW_LEN): Likewise.
12785 (I386_DR_GET_RW_LEN): Likewise.
12786 (I386_DR_WATCH_HIT): Likewise.
12787 (i386_wp_op_t): Likewise.
12788 (i386_show_dr): Likewise.
12789 (i386_length_and_rw_bits): Likewise.
12790 (i386_insert_aligned_watchpoint): Likewise.
12791 (i386_remove_aligned_watchpoint): Likewise.
12792 (i386_handle_nonaligned_watchpoint): Likewise.
12793 i386_update_inferior_debug_regs(): Likewise.
12794 (i386_dr_insert_watchpoint): Likewise.
12795 (i386_dr_remove_watchpoint): Likewise.
12796 (i386_dr_region_ok_for_watchpoint): Likewise.
12797 (i386_dr_stopped_data_address): Likewise.
12798 (i386_dr_stopped_by_watchpoint): Likewise.
12799
12800 2014-06-19 Gary Benson <gbenson@redhat.com>
12801
12802 * i386-low.c (i386_dr_show): Renamed to
12803 i386_show_dr and made static. All uses updated.
12804 (i386_dr_length_and_rw_bits): Renamed to
12805 i386_length_and_rw_bits and made static.
12806 All uses updated.
12807 (i386_dr_insert_aligned_watchpoint): Renamed to
12808 i386_insert_aligned_watchpoint and made static.
12809 All uses updated.
12810 (i386_dr_remove_aligned_watchpoint): Renamed to
12811 i386_remove_aligned_watchpoint and made static.
12812 All uses updated.
12813 (i386_dr_update_inferior_debug_regs): Renamed to
12814 i386_update_inferior_debug_regs and made static.
12815 All uses updated.
12816
12817 2014-06-18 Gary Benson <gbenson@redhat.com>
12818
12819 * i386-low.h (i386_dr_low_can_set_addr): New macro.
12820 (i386_dr_low_can_set_control): Likewise.
12821 (i386_get_debug_register_length): Likewise.
12822 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
12823 (i386_dr_low_can_set_control): Likewise.
12824 (i386_get_debug_register_length): Likewise.
12825
12826 2014-06-17 Gary Benson <gbenson@redhat.com>
12827
12828 * i386-low.h (i386-dregs.h): New include.
12829 (DR_FIRSTADDR): Now in i386-dregs.h.
12830 (DR_LASTADDR): Likewise.
12831 (DR_NADDR): Likewise.
12832 (DR_STATUS): Likewise.
12833 (DR_CONTROL): Likewise.
12834 (i386_debug_reg_state): Likewise.
12835 (i386_dr_insert_watchpoint): Likewise.
12836 (i386_dr_remove_watchpoint): Likewise.
12837 (i386_dr_region_ok_for_watchpoint): Likewise.
12838 (i386_dr_stopped_data_address): Likewise.
12839 (i386_dr_stopped_by_watchpoint): Likewise.
12840 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
12841
12842 2014-06-18 Gary Benson <gbenson@redhat.com>
12843
12844 * i386-low.h (i386_low_insert_watchpoint): Renamed to
12845 i386_dr_insert_watchpoint.
12846 (i386_low_remove_watchpoint): Renamed to
12847 i386_dr_remove_watchpoint.
12848 (i386_low_region_ok_for_watchpoint): Renamed to
12849 i386_dr_region_ok_for_watchpoint.
12850 (i386_low_stopped_data_address): Renamed to
12851 i386_dr_stopped_data_address.
12852 (i386_low_stopped_by_watchpoint): Renamed to
12853 i386_dr_stopped_by_watchpoint.
12854 * i386-low.c (i386_show_dr): Renamed to
12855 i386_dr_show and made nonstatic. All uses updated.
12856 (i386_length_and_rw_bits): Renamed to
12857 i386_dr_length_and_rw_bits and made nonstatic.
12858 All uses updated.
12859 (i386_insert_aligned_watchpoint): Renamed to
12860 i386_dr_insert_aligned_watchpoint and made nonstatic.
12861 All uses updated.
12862 (i386_remove_aligned_watchpoint): Renamed to
12863 i386_dr_remove_aligned_watchpoint and made nonstatic.
12864 All uses updated.
12865 (i386_update_inferior_debug_regs): Renamed to
12866 i386_dr_update_inferior_debug_regs and made nonstatic.
12867 All uses updated.
12868 (i386_low_insert_watchpoint): Renamed to
12869 i386_dr_insert_watchpoint. All uses updated.
12870 (i386_low_remove_watchpoint): Renamed to
12871 i386_dr_remove_watchpoint. All uses updated.
12872 (i386_low_region_ok_for_watchpoint): Renamed to
12873 i386_dr_region_ok_for_watchpoint. All uses updated.
12874 (i386_low_stopped_data_address): Renamed to
12875 i386_dr_stopped_data_address. All uses updated.
12876 (i386_low_stopped_by_watchpoint): Renamed to
12877 i386_dr_stopped_by_watchpoint. All uses updated.
12878
12879 2014-06-18 Gary Benson <gbenson@redhat.com>
12880
12881 * i386-low.c (i386_dr_low_can_set_addr): New macro.
12882 (i386_dr_low_can_set_control): Likewise.
12883 (i386_insert_aligned_watchpoint): New check.
12884
12885 2014-06-18 Gary Benson <gbenson@redhat.com>
12886
12887 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
12888 Renamed to state.
12889
12890 2014-06-18 Gary Benson <gbenson@redhat.com>
12891
12892 * i386-low.c (i386_length_and_rw_bits): Use internal_error
12893 instead of fatal and error.
12894 (i386_handle_nonaligned_watchpoint): Likewise.
12895
12896 2014-06-18 Gary Benson <gbenson@redhat.com>
12897
12898 * i386-low.c (i386_get_debug_register_length): New macro.
12899 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
12900 (i386_show_dr): Use debug_printf instead of fprintf. Use
12901 phex to format values.
12902
12903 2014-06-18 Gary Benson <gbenson@redhat.com>
12904
12905 * i386-low.h: Comment changes.
12906 * i386-low.c: Likewise.
12907
12908 2014-06-18 Gary Benson <gbenson@redhat.com>
12909
12910 * i386-low.c: Whitespace changes.
12911
12912 2014-06-12 Tom Tromey <tromey@redhat.com>
12913
12914 * utils.c (freeargv): Remove.
12915
12916 2014-06-12 Tom Tromey <tromey@redhat.com>
12917
12918 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
12919 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
12920 (parse_debug_format_options): Likewise.
12921 (gdbserver_usage): Likewise.
12922 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
12923 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
12924 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
12925 against libiberty.
12926 ($(LIBGNU)): Depend on libiberty.
12927 (all-lib): Recurse into all subdirs.
12928 (install-only): Invoke "install" target in subdirs.
12929 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
12930 targets.
12931 * configure: Rebuild.
12932 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
12933 for vasprintf, vsnprintf, or gettimeofday.
12934 * configure.srv: Don't add safe-ctype.o or lbasename.o to
12935 srv_tgtobj.
12936
12937 2014-06-05 Joel Brobecker <brobecker@adacore.com>
12938
12939 * development.sh: Delete.
12940 * Makefile.in (config.status): Adjust dependency on development.sh.
12941 * configure.ac: Adjust development.sh source call.
12942 * configure: Regenerate.
12943
12944 2014-06-02 Pedro Alves <palves@redhat.com>
12945
12946 * ax.c (gdb_free_agent_expr): New function.
12947 * ax.h (gdb_free_agent_expr): New declaration.
12948 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
12949 list.
12950 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
12951 static.
12952 (clear_breakpoint_conditions_and_commands): New function.
12953 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
12954 (clear_breakpoint_conditions_and_commands): New declaration.
12955
12956 2014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12957
12958 * linux-aarch64-low.c (asm/ptrace.h): Include.
12959
12960 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12961
12962 Fix TLS access for -static -pthread.
12963 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
12964 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
12965 (thread_db_load_search, try_thread_db_load_1): Initialize it.
12966
12967 2014-05-20 Pedro Alves <palves@redhat.com>
12968
12969 * linux-aarch64-low.c (aarch64_insert_point)
12970 (aarch64_remove_point): No longer check whether the type is
12971 supported here. Adjust to new interface.
12972 (the_low_target): Install aarch64_supports_z_point_type as
12973 supports_z_point_type method.
12974 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
12975 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
12976 instead of a Z packet char. Adjust.
12977 (arm_supports_z_point_type): New function.
12978 (arm_insert_point, arm_remove_point): Adjust to new interface.
12979 (the_low_target): Install arm_supports_z_point_type.
12980 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
12981 (cris_insert_point, cris_remove_point): Adjust to new interface.
12982 Don't check whether the type is supported here.
12983 (the_low_target): Install cris_supports_z_point_type.
12984 * linux-low.c (linux_supports_z_point_type): New function.
12985 (linux_insert_point, linux_remove_point): Adjust to new interface.
12986 * linux-low.h (struct linux_target_ops) <insert_point,
12987 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
12988 raw_breakpoint pointer parameter.
12989 <supports_z_point_type>: New method.
12990 * linux-mips-low.c (mips_supports_z_point_type): New function.
12991 (mips_insert_point, mips_remove_point): Adjust to new interface.
12992 Use mips_supports_z_point_type.
12993 (the_low_target): Install mips_supports_z_point_type.
12994 * linux-ppc-low.c (the_low_target): Install NULL as
12995 supports_z_point_type method.
12996 * linux-s390-low.c (the_low_target): Install NULL as
12997 supports_z_point_type method.
12998 * linux-sparc-low.c (the_low_target): Install NULL as
12999 supports_z_point_type method.
13000 * linux-x86-low.c (x86_supports_z_point_type): New function.
13001 (x86_insert_point): Adjust to new insert_point interface. Use
13002 insert_memory_breakpoint. Adjust to new
13003 i386_low_insert_watchpoint interface.
13004 (x86_remove_point): Adjust to remove_point interface. Use
13005 remove_memory_breakpoint. Adjust to new
13006 i386_low_remove_watchpoint interface.
13007 (the_low_target): Install x86_supports_z_point_type.
13008 * lynx-low.c (lynx_target_ops): Install NULL as
13009 supports_z_point_type callback.
13010 * nto-low.c (nto_supports_z_point_type): New.
13011 (nto_insert_point, nto_remove_point): Adjust to new interface.
13012 (nto_target_ops): Install nto_supports_z_point_type.
13013 * mem-break.c: Adjust intro comment.
13014 (struct raw_breakpoint) <raw_type, size>: New fields.
13015 <inserted>: Update comment.
13016 <shlib_disabled>: Delete field.
13017 (enum bkpt_type) <gdb_breakpoint>: Delete value.
13018 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
13019 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
13020 (raw_bkpt_type_to_target_hw_bp_type): New function.
13021 (find_enabled_raw_code_breakpoint_at): New function.
13022 (find_raw_breakpoint_at): New type and size parameters. Use them.
13023 (insert_memory_breakpoint): New function, based off
13024 set_raw_breakpoint_at.
13025 (remove_memory_breakpoint): New function.
13026 (set_raw_breakpoint_at): Reimplement.
13027 (set_breakpoint): New, based on set_breakpoint_at.
13028 (set_breakpoint_at): Reimplement.
13029 (delete_raw_breakpoint): Go through the_target->remove_point
13030 instead of assuming memory breakpoints.
13031 (find_gdb_breakpoint_at): Delete.
13032 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
13033 (find_gdb_breakpoint): New function.
13034 (set_gdb_breakpoint_at): Delete.
13035 (z_type_supported): New function.
13036 (set_gdb_breakpoint_1): New function, loosely based off
13037 set_gdb_breakpoint_at.
13038 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
13039 (delete_gdb_breakpoint_at): Delete.
13040 (delete_gdb_breakpoint_1): New function, loosely based off
13041 delete_gdb_breakpoint_at.
13042 (delete_gdb_breakpoint): New function.
13043 (clear_gdb_breakpoint_conditions): Rename to ...
13044 (clear_breakpoint_conditions): ... this. Don't handle a NULL
13045 breakpoint.
13046 (add_condition_to_breakpoint): Make static.
13047 (add_breakpoint_condition): Take a struct breakpoint pointer
13048 instead of an address. Adjust.
13049 (gdb_condition_true_at_breakpoint): Rename to ...
13050 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
13051 z_type parameter.
13052 (gdb_condition_true_at_breakpoint): Reimplement.
13053 (add_breakpoint_commands): Take a struct breakpoint pointer
13054 instead of an address. Adjust.
13055 (gdb_no_commands_at_breakpoint): Rename to ...
13056 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
13057 parameter. Return true if no breakpoint was found. Change debug
13058 output.
13059 (gdb_no_commands_at_breakpoint): Reimplement.
13060 (run_breakpoint_commands): Rename to ...
13061 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
13062 and change return type to boolean.
13063 (run_breakpoint_commands): New function.
13064 (gdb_breakpoint_here): Also check for Z1 breakpoints.
13065 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
13066 breakpoint. Go through the_target->remove_point instead of
13067 assuming memory breakpoint.
13068 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
13069 software and hardware breakpoints.
13070 (reinsert_raw_breakpoint): Go through the_target->insert_point
13071 instead of assuming memory breakpoint.
13072 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
13073 software and hardware breakpoints.
13074 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
13075 Check both software and hardware breakpoints.
13076 (validate_inserted_breakpoint): Assert the breakpoint is a
13077 software breakpoint. Set the inserted flag to -1 instead of
13078 setting shlib_disabled.
13079 (delete_disabled_breakpoints): Adjust.
13080 (validate_breakpoints): Only validate software breakpoints.
13081 Adjust to inserted flag change.
13082 (check_mem_read, check_mem_write): Skip breakpoint types other
13083 than software breakpoints. Adjust to inserted flag change.
13084 * mem-break.h (enum raw_bkpt_type): New enum.
13085 (raw_breakpoint, struct process_info): Forward declare.
13086 (Z_packet_to_target_hw_bp_type): Delete declaration.
13087 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
13088 (set_gdb_breakpoint, delete_gdb_breakpoint)
13089 (clear_breakpoint_conditions): New declarations.
13090 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
13091 (breakpoint_inserted_here): Update comment.
13092 (add_breakpoint_condition, add_breakpoint_commands): Replace
13093 address parameter with a breakpoint pointer parameter.
13094 (gdb_breakpoint_here): Update comment.
13095 (delete_gdb_breakpoint_at): Delete.
13096 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
13097 * server.c (process_point_options): Take a struct breakpoint
13098 pointer instead of an address. Adjust.
13099 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
13100 delete_gdb_breakpoint.
13101 * spu-low.c (spu_target_ops): Install NULL as
13102 supports_z_point_type method.
13103 * target.h: Include mem-break.h.
13104 (struct target_ops) <prepare_to_access_memory>: Update comment.
13105 <supports_z_point_type>: New field.
13106 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
13107 instead of a char. Also take a raw breakpoint pointer.
13108 * win32-arm-low.c (the_low_target): Install NULL as
13109 supports_z_point_type.
13110 * win32-i386-low.c (i386_supports_z_point_type): New function.
13111 (i386_insert_point, i386_remove_point): Adjust to new interface.
13112 (the_low_target): Install i386_supports_z_point_type.
13113 * win32-low.c (win32_supports_z_point_type): New function.
13114 (win32_insert_point, win32_remove_point): Adjust to new interface.
13115 (win32_target_ops): Install win32_supports_z_point_type.
13116 * win32-low.h (struct win32_target_ops):
13117 <supports_z_point_type>: New method.
13118 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
13119 instead of a char. Also take a raw breakpoint pointer.
13120
13121 2014-05-20 Pedro Alves <palves@redhat.com>
13122
13123 * mem-break.h: Include break-common.h.
13124 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
13125 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
13126 (Z_packet_to_target_hw_bp_type): New declaration.
13127 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
13128 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
13129 (Z_PACKET_ACCESS_WP): Delete macros.
13130 (Z_packet_to_hw_type): Delete function.
13131 * i386-low.h: Don't include break-common.h here.
13132 (Z_packet_to_hw_type): Delete declaration.
13133 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
13134 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
13135 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
13136 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
13137 * linux-aarch64-low.c: Don't include break-common.h here.
13138 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
13139 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
13140 (Z_packet_to_target_hw_bp_type): Delete function.
13141 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
13142 function.
13143 (mips_insert_point, mips_remove_point): Use
13144 Z_packet_to_target_hw_bp_type.
13145
13146 2014-05-20 Pedro Alves <palves@redhat.com>
13147
13148 * linux-aarch64-low.c: Include break-common.h.
13149 (enum target_point_type): Delete.
13150 (Z_packet_to_point_type): Rename to ...
13151 (Z_packet_to_target_hw_bp_type): ... this, and return a
13152 target_hw_bp_type instead.
13153 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
13154 instead of an enum target_point_type.
13155 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
13156 breakpoint type.
13157 (aarch64_dr_state_insert_one_point)
13158 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
13159 (aarch64_handle_aligned_watchpoint)
13160 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
13161 Take an enum target_hw_bp_type instead of an enum
13162 target_point_type.
13163 (aarch64_supports_z_point_type): New function.
13164 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
13165 use Z_packet_to_target_hw_bp_type.
13166
13167 2014-05-20 Joel Brobecker <brobecker@adacore.com>
13168
13169 * configure.ac: Only use -Werror by default when DEVELOPMENT
13170 is true.
13171 * configure: Regenerate.
13172
13173 2014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
13174
13175 Fix gdbserver qGetTLSAddr for x86_64 -m32.
13176 * linux-x86-low.c (X86_64_USER_REGS): New.
13177 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
13178
13179 2014-04-28 Yao Qi <yao@codesourcery.com>
13180
13181 * Makefile.in (i386-avx512.c): Fix the typo of generated file
13182 name.
13183
13184 2014-04-25 Pedro Alves <palves@redhat.com>
13185
13186 PR server/16255
13187 * linux-low.c (linux_attach_fail_reason_string): New function.
13188 (linux_attach_lwp): Delete.
13189 (linux_attach_lwp_1): Rename to ...
13190 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
13191 argument. Remove "initial" parameter. Return int instead of
13192 void. Don't error or warn here.
13193 (linux_attach): Adjust to call linux_attach_lwp. Call error on
13194 failure to attach to the tgid. Call warning when failing to
13195 attach to an lwp.
13196 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
13197 argument. Remove "initial" parameter. Return int instead of
13198 void. Don't error or warn here.
13199 (linux_attach_fail_reason_string): New declaration.
13200 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
13201 interface change. Use linux_attach_fail_reason_string.
13202
13203 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
13204 Walfred Tedeschi <walfred.tedeschi@intel.com>
13205
13206 * Makefile.in: Added rules to handle new files
13207 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
13208 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
13209 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
13210 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
13211 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
13212 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
13213 x32-avx512-linux.o.
13214 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
13215 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
13216 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
13217 i386/x32-avx512.xml.
13218 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
13219 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
13220 i386/x32-avx512-linux.xml.
13221 * i387-fp.c (num_avx512_k_registers): New constant for number
13222 of K registers.
13223 (num_avx512_zmmh_low_registers): New constant for number of
13224 lower ZMM registers (0-15).
13225 (num_avx512_zmmh_high_registers): New constant for number of
13226 higher ZMM registers (16-31).
13227 (num_avx512_ymmh_registers): New contant for number of higher
13228 YMM registers (ymm16-31 added by avx521 on x86_64).
13229 (num_avx512_xmm_registers): New constant for number of higher
13230 XMM registers (xmm16-31 added by AVX512 on x86_64).
13231 (struct i387_xsave): Add space for AVX512 registers.
13232 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
13233 Add code to handle AVX512 registers.
13234 (i387_xsave_to_cache): Add code to handle AVX512 registers.
13235 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
13236 prototypei from generated file.
13237 (tdesc_amd64_avx512_linux): Likewise.
13238 (init_registers_x32_avx512_linux): Likewise.
13239 (tdesc_x32_avx512_linux): Likewise.
13240 (init_registers_i386_avx512_linux): Likewise.
13241 (tdesc_i386_avx512_linux): Likewise.
13242 (x86_64_regmap): Add AVX512 registers.
13243 (x86_linux_read_description): Add code to handle AVX512 XSTATE
13244 mask.
13245 (initialize_low_arch): Add code to initialize AVX512 registers.
13246
13247 2014-04-23 Pedro Alves <palves@redhat.com>
13248
13249 * mem-break.c (find_gdb_breakpoint_at): Make static.
13250 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
13251
13252 2014-04-23 Pedro Alves <palves@redhat.com>
13253
13254 * i386-low.c: Don't include break-common.h here.
13255 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
13256 prototype to take target_hw_bp_type as argument instead of a Z
13257 packet char.
13258 * i386-low.h: Include break-common.h here.
13259 (Z_packet_to_hw_type): Declare.
13260 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
13261 prototypes.
13262 * linux-x86-low.c (x86_insert_point): Convert the packet number to
13263 a target_hw_bp_type before calling i386_low_insert_watchpoint.
13264 (x86_remove_point): Convert the packet number to a
13265 target_hw_bp_type before calling i386_low_remove_watchpoint.
13266 * win32-i386-low.c (i386_insert_point): Convert the packet number
13267 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
13268 (i386_remove_point): Convert the packet number to a
13269 target_hw_bp_type before calling i386_low_remove_watchpoint.
13270
13271 2014-04-23 Pedro Alves <palves@redhat.com>
13272
13273 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
13274
13275 2014-04-10 Pedro Alves <palves@redhat.com>
13276
13277 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
13278 Check if the condition or command is NULL before checking if the
13279 breakpoint is known. On success, return true.
13280 * mem-break.h (add_breakpoint_condition): Document return.
13281 (add_breakpoint_commands): Add describing comment.
13282 * server.c (skip_to_semicolon): New function.
13283 (process_point_options): Use it.
13284
13285 2014-04-09 Pedro Alves <palves@redhat.com>
13286
13287 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
13288 to lwpid_of.
13289
13290 2014-02-27 Pedro Alves <palves@redhat.com>
13291
13292 PR 12702
13293 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
13294 macros.
13295 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
13296 output.
13297 (last_thread_of_process_p): Take a PID argument instead of a
13298 thread pointer.
13299 (linux_wait_for_lwp): Delete.
13300 (num_lwps, check_zombie_leaders, not_stopped_callback): New
13301 functions.
13302 (linux_low_filter_event): New function, party factored out from
13303 linux_wait_for_event.
13304 (linux_wait_for_event): Rename to ...
13305 (linux_wait_for_event_filtered): ... this. Add new filter ptid
13306 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
13307 sigsuspend. Check for zombie leaders.
13308 (linux_wait_for_event): Reimplement as wrapper around
13309 linux_wait_for_event_filtered.
13310 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
13311 a normal or signal exit is seen, it's the whole process exiting.
13312 (wait_for_sigstop): No longer a for_each_inferior callback.
13313 Rewrite on top of linux_wait_for_event_filtered.
13314 (stop_all_lwps): Call wait_for_sigstop directly.
13315 * server.c (resume, handle_target_event): Handle
13316 TARGET_WAITKIND_NO_RESUMED.
13317
13318 2014-02-26 Joel Brobecker <brobecker@adacore.com>
13319
13320 * win32-low.c (psapi_get_dll_name,
13321 * win32_CreateToolhelp32Snapshot): Delete.
13322 (win32_CreateToolhelp32Snapshot, win32_Module32First)
13323 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
13324 Delete.
13325 (handle_load_dll): Add function description.
13326 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
13327
13328 2014-02-26 Joel Brobecker <brobecker@adacore.com>
13329
13330 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
13331 Add comment.
13332 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
13333 base address when calling win32_add_one_solib.
13334 (handle_load_dll): Delete local variable load_addr.
13335 Remove 0x1000 offset applied to DLL base address when calling
13336 win32_add_one_solib.
13337 (handle_unload_dll): Add comment.
13338
13339 2014-02-26 Joel Brobecker <brobecker@adacore.com>
13340
13341 * win32-low.c (win32_add_all_dlls): Renames
13342 win32_ensure_ntdll_loaded. Rewrite function documentation.
13343 Adjust implementation to always load all DLLs.
13344 Add 0x1000 offset to DLL base address when calling
13345 win32_add_one_solib.
13346 (child_initialization_done): New static global.
13347 (do_initial_child_stuff): Set child_initialization_done to
13348 zero during child initialization, and 1 after. Replace call
13349 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
13350 Add comment.
13351 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
13352 (handle_unload_dll): Add function documentation.
13353 (get_child_debug_event): Ignore load and unload DLL events
13354 during child initialization.
13355
13356 2014-02-20 Doug Evans <dje@google.com>
13357
13358 Remove global all_lwps.
13359 * inferiors.h (ptid_of): Move here from linux-low.h.
13360 (pid_of, lwpid_of): Ditto.
13361 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
13362 parameter is a struct thread_info * now.
13363 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
13364 directly. Pass &all_threads to find_inferior instead of &all_lwps.
13365 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
13366 directly.
13367 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
13368 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
13369 * linux-arm-low.c (update_registers_callback): Update, "entry"
13370 parameter is a struct thread_info * now.
13371 Fetch lwpid from current_inferior directly.
13372 (arm_insert_point): Pass &all_threads to find_inferior instead of
13373 &all_lwps.
13374 (arm_remove_point): Ditto.
13375 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
13376 (arm_prepare_to_resume): Fetch pid from thread.
13377 (arm_read_description): Fetch lwpid from current_inferior directly.
13378 * linux-low.c (all_lwps): Delete.
13379 (delete_lwp): Delete call to remove_inferior.
13380 (handle_extended_wait): Fetch lwpid from thread.
13381 (add_lwp): Don't set lwp->entry.id. Remove call to
13382 add_inferior_to_list.
13383 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
13384 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
13385 (kill_one_lwp_callback): Ditto.
13386 (linux_kill): Don't dereference NULL pointer.
13387 Fetch ptid,lwpid from thread.
13388 (get_detach_signal): Fetch ptid from thread.
13389 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
13390 Simplify call to regcache_invalidate_thread.
13391 (delete_lwp_callback): Update, "entry" parameter is a
13392 struct thread_info * now. Fetch pid from thread.
13393 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
13394 (status_pending_p_callback): Update, "entry" parameter is a
13395 struct thread_info * now. Fetch ptid from thread.
13396 (find_lwp_pid): Update, "entry" parameter is a
13397 struct thread_info * now.
13398 (linux_wait_for_lwp): Fetch pid from thread.
13399 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
13400 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
13401 (enqueue_one_deferred_signal): Fetch lwpid from thread.
13402 (dequeue_one_deferred_signal): Ditto.
13403 (cancel_breakpoint): Fetch ptid from current_inferior.
13404 (linux_wait_for_event): Pass &all_threads to find_inferior,
13405 not &all_lwps. Fetch ptid, lwpid from thread.
13406 (count_events_callback): Update, "entry" parameter is a
13407 struct thread_info * now.
13408 (select_singlestep_lwp_callback): Ditto.
13409 (select_event_lwp_callback): Ditto.
13410 (cancel_breakpoints_callback): Ditto.
13411 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
13412 not &all_lwps.
13413 (select_event_lwp): Ditto. Fetch ptid from event_thread.
13414 (unsuspend_one_lwp): Update, "entry" parameter is a
13415 struct thread_info * now.
13416 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
13417 not &all_lwps.
13418 (linux_stabilize_threads): Ditto. And for for_each_inferior.
13419 Fetch lwpid from thread, not lwp.
13420 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
13421 Pass &all_threads to find_inferior, not &all_lwps.
13422 (send_sigstop): Fetch lwpid from thread, not lwp.
13423 (send_sigstop_callback): Update, "entry" parameter is a
13424 struct thread_info * now.
13425 (suspend_and_send_sigstop_callback): Ditto.
13426 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
13427 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
13428 struct thread_info * now.
13429 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
13430 from thread, lwp.
13431 (lwp_running): Update, "entry" parameter is a
13432 struct thread_info * now.
13433 (stop_all_lwps): Fetch ptid from thread.
13434 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
13435 (linux_resume_one_lwp): Fetch lwpid from thread.
13436 (linux_set_resume_request): Update, "entry" parameter is a
13437 struct thread_info * now. Fetch pid, lwpid from thread.
13438 (resume_status_pending_p): Update, "entry" parameter is a
13439 struct thread_info * now.
13440 (need_step_over_p): Ditto. Fetch lwpid from thread.
13441 (start_step_over): Fetch lwpid from thread.
13442 (linux_resume_one_thread): Update, "entry" parameter is a
13443 struct thread_info * now. Fetch lwpid from thread.
13444 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
13445 (proceed_one_lwp): Update, "entry" parameter is a
13446 struct thread_info * now. Fetch lwpid from thread.
13447 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
13448 struct thread_info * now.
13449 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
13450 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
13451 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
13452 directly.
13453 (regsets_store_inferior_registers): Ditto.
13454 (fetch_register, store_register): Ditto.
13455 (linux_read_memory, linux_write_memory): Ditto.
13456 (linux_request_interrupt): Ditto.
13457 (linux_read_auxv): Ditto.
13458 (linux_xfer_siginfo): Ditto.
13459 (linux_qxfer_spu): Ditto.
13460 (linux_qxfer_libraries_svr4): Ditto.
13461 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
13462 moved to inferiors.h.
13463 (get_lwp): Delete.
13464 (get_thread_lwp): Update.
13465 (struct lwp_info): Delete member "entry". Simplify comment for
13466 member "thread".
13467 (all_lwps): Delete.
13468 * linux-mips-low.c (mips_read_description): Fetch lwpid from
13469 current_inferior directly.
13470 (update_watch_registers_callback): Update, "entry" parameter is a
13471 struct thread_info * now. Fetch pid from thread.
13472 (mips_linux_prepare_to_resume): Fetch ptid from thread.
13473 (mips_insert_point): Fetch lwpid from current_inferior.
13474 Pass &all_threads to find_inferior, not &all_lwps.
13475 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
13476 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
13477 directly.
13478 (mips_stopped_data_address): Ditto.
13479 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
13480 directly.
13481 * linux-tile-low.c (tile_arch_setup): Ditto.
13482 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
13483 (update_debug_registers_callback): Update, "entry" parameter is a
13484 struct thread_info * now. Fetch pid from thread.
13485 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
13486 Pass &all_threads to find_inferior, not &all_lwps.
13487 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
13488 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
13489 Pass &all_threads to find_inferior, not &all_lwps.
13490 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
13491 (i386_dr_low_get_status): Ditto.
13492 (x86_linux_prepare_to_resume): Fetch ptid from thread.
13493 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
13494 (x86_linux_read_description): Ditto.
13495 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
13496
13497 2014-02-20 Doug Evans <dje@google.com>
13498
13499 * inferiors.c (get_first_inferior): Fix buglet.
13500
13501 2014-02-19 Doug Evans <dje@google.com>
13502
13503 * gdbthread.h (add_thread): Change result type to struct thread_info *.
13504 * inferiors.c (add_thread): Change result type to struct thread_info *.
13505 All callers updated.
13506 (add_lwp): Call add_thread here instead of in callers.
13507 All callers updated.
13508 * linux-low.h (get_lwp_thread): Rewrite.
13509 (struct lwp_info): New member "thread".
13510
13511 2014-02-19 Doug Evans <dje@google.com>
13512
13513 * linux-low.c (add_lwp): Change result to struct lwp_info *.
13514 All callers updated.
13515
13516 2014-02-19 Doug Evans <dje@google.com>
13517
13518 * inferiors.c (add_thread): Fix whitespace.
13519
13520 2014-02-19 Doug Evans <dje@google.com>
13521
13522 * dll.c (clear_dlls): Replace accessing list implemention details
13523 with API function.
13524 * gdbthread.h (get_first_thread): Declare.
13525 * inferiors.c (for_each_inferior_with_data): New function.
13526 (get_first_thread): New function.
13527 (find_thread_ptid): Simplify.
13528 (get_first_inferior): New function.
13529 (clear_list): Delete.
13530 (one_inferior_p): New function.
13531 (clear_inferior_list): New function.
13532 (clear_inferiors): Update.
13533 * inferiors.h (for_each_inferior_with_data): Declare.
13534 (clear_inferior_list): Declare.
13535 (one_inferior_p): Declare.
13536 (get_first_inferior): Declare.
13537 * linux-low.c (linux_wait_for_event): Replace accessing list
13538 implemention details with API function.
13539 * server.c (target_running): Ditto.
13540 (accumulate_file_name_length): New function.
13541 (emit_dll_description): New function.
13542 (handle_qxfer_libraries): Replace accessing list implemention
13543 details with API function.
13544 (handle_qxfer_threads_worker): New function.
13545 (handle_qxfer_threads_proper): Replace accessing list implemention
13546 details with API function.
13547 (handle_query): Ditto.
13548 (visit_actioned_threads_callback_ftype): New typedef.
13549 (visit_actioned_threads_data): New struct.
13550 (visit_actioned_threads): Rewrite to be find_inferior callback.
13551 (resume): Call find_inferior.
13552 (handle_status): Replace accessing list implemention
13553 details with API function.
13554 (process_serial_event): Replace accessing list implemention details
13555 with API function.
13556 * target.c (set_desired_inferior): Replace accessing list implemention
13557 details with API function.
13558 * tracepoint.c (same_process_p): New function.
13559 (gdb_agent_about_to_close): Replace accessing list implemention
13560 details with API function.
13561 * win32-low.c (child_delete_thread): Replace accessing list
13562 implemention details with API function.
13563 (match_dll_by_basename): New function.
13564 (dll_is_loaded_by_basename): New function.
13565 (win32_ensure_ntdll_loaded): Replace accessing list implemention
13566 details call to dll_is_loaded_by_basename.
13567
13568 2014-02-19 Doug Evans <dje@google.com>
13569
13570 * dll.h (struct dll_info): Add comment.
13571 * gdbthread.h (struct thread_info): Add comment.
13572 (current_ptid): Simplify.
13573 * inferiors.c (add_process): Update.
13574 (remove_process): Update.
13575 * inferiors.h (struct process_info): Rename member "head" to "entry".
13576 * linux-low.c (delete_lwp): Update.
13577 (add_lwp): Update.
13578 (last_thread_of_process_p): Update.
13579 (kill_one_lwp_callback, linux_kill): Update.
13580 (status_pending_p_callback): Update.
13581 (wait_for_sigstop): Update. Simplify read of ptid.
13582 (start_step_over): Update.
13583 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
13584 (get_lwp_thread): Update.
13585 (struct lwp_info): Rename member "head" to "entry".
13586 * regcache.h (inferior_list_entry): Delete.
13587 * server.c (kill_inferior_callback): Update.
13588 (detach_or_kill_inferior_callback): Update.
13589 (print_started_pid): Update.
13590 (print_attached_pid): Update.
13591 (process_serial_event): Simplify read of ptid.
13592 * thread-db.c (thread_db_create_event): Update.
13593 (thread_db_get_tls_address): Update.
13594 * win32-low.c (current_inferior_ptid): Simplify.
13595
13596 2014-02-19 Tom Tromey <tromey@redhat.com>
13597
13598 * target.h (struct target_ops) <supports_btrace>: Add target_ops
13599 argument.
13600 (target_supports_btrace): Update.
13601
13602 2014-02-14 Yao Qi <yao@codesourcery.com>
13603
13604 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
13605 (rsp-low-ipa.o): New target.
13606
13607 2014-02-12 Tom Tromey <tromey@redhat.com>
13608
13609 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
13610 convert_ascii_to_int.
13611 * regcache.c (registers_to_string): Likewise.
13612 * remote-utils.c (decode_M_packet): Likewise.
13613 * server.c (process_serial_event): Likewise.
13614
13615 2014-02-12 Tom Tromey <tromey@redhat.com>
13616
13617 * server.c (handle_query, handle_v_run): Use hex2bin, not
13618 unhexify.
13619 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
13620
13621 2014-02-12 Tom Tromey <tromey@redhat.com>
13622
13623 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
13624 convert_int_to_ascii.
13625 * regcache.c (registers_to_string, collect_register_as_string):
13626 Likewise.
13627 * remote-utils.c (look_up_one_symbol, relocate_instruction):
13628 Likewise.
13629 * server.c (process_serial_event): Likewise.
13630 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
13631 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
13632
13633 2014-02-12 Tom Tromey <tromey@redhat.com>
13634
13635 * remote-utils.c (look_up_one_symbol, monitor_output): Use
13636 bin2hex, not hexify.
13637 * tracepoint.c (cmd_qtstatus): Likewise.
13638
13639 2014-02-12 Tom Tromey <tromey@redhat.com>
13640
13641 * remote-utils.c (monitor_output): Pass explicit length to
13642 hexify.
13643
13644 2014-02-12 Tom Tromey <tromey@redhat.com>
13645
13646 * tracepoint.c: Include rsp-low.h.
13647 * server.c: Include rsp-low.h.
13648 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
13649 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
13650 declare.
13651 * remote-utils.c: Include rsp-low.h.
13652 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
13653 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
13654 (convert_int_to_ascii, convert_ascii_to_int): Move to
13655 common/rsp-low.c.
13656 * regcache.c: Include rsp-low.h.
13657 * ax.c: Include rsp-low.h.
13658 * Makefile.in (SFILES): Add common/rsp-low.c.
13659 (OBS): Add rsp-low.o.
13660 (rsp-low.o): New target.
13661
13662 2014-02-12 Tom Tromey <tromey@redhat.com>
13663
13664 * utils.h (pulongest, plongest, phex_nz): Don't declare.
13665 Include print-utils.h.
13666 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13667 (plongest, thirty_two, phex_nz): Remove.
13668 * Makefile.in (SFILES): Add common/print-utils.c.
13669 (OBS): Add print-utils.o.
13670 (print-utils-ipa.o): New target.
13671 (print-utils.o): New target.
13672 (IPA_OBJS): Add print-utils-ipa.o.
13673
13674 2014-02-06 Tom Tromey <tromey@redhat.com>
13675
13676 * Makefile.in (SFILES): Fix indentation.
13677
13678 2014-02-05 Doug Evans <dje@google.com>
13679
13680 * linux-low.c (linux_wait_for_event): Improve comment.
13681 (linux_wait_1): Keep current_inferior in sync with event_child.
13682
13683 2014-01-22 Doug Evans <dje@google.com>
13684
13685 * gdbthread.h (gdb_id_to_thread): Delete, unused.
13686
13687 2014-01-22 Doug Evans <dje@google.com>
13688
13689 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
13690 * configure: Regenerate.
13691 * config.in: Regenerate.
13692 * Makefile.in (SFILES): Add debug.c.
13693 (OBS): Add debug.o.
13694 * debug.c: New file.
13695 * debug.h: New file.
13696 * linux-aarch64-low.c (*): Update all debugging printfs to use
13697 debug_printf instead of fprintf.
13698 * linux-arm-low.c (*): Ditto.
13699 * linux-cris-low.c (*): Ditto.
13700 * linux-crisv32-low.c (*): Ditto.
13701 * linux-m32r-low.c (*): Ditto.
13702 * linux-sparc-low.c (*): Ditto.
13703 * linux-x86.c (*): Ditto.
13704 * linux-low.c (*): Ditto.
13705 (linux_wait_1): Add calls to debug_enter, debug_exit.
13706 (linux_wait): Remove redundant debugging printf.
13707 (stop_all_lwps): Add calls to debug_enter, debug_exit.
13708 (linux_resume, unstop_all_lwps): Ditto.
13709 * mem-break.c (*): Update all debugging printfs to use
13710 debug_printf instead of fprintf.
13711 * remote-utils.c (*): Ditto.
13712 * thread-db.c (*): Ditto.
13713 * server.c #include <ctype.h>, "gdb_vecs.h".
13714 (debug_threads): Moved to debug.c.
13715 (*): Update all debugging printfs to use debug_printf instead of
13716 fprintf.
13717 (start_inferior): Replace call to fflush with call to debug_flush.
13718 (monitor_show_help): Mention set debug-format.
13719 (parse_debug_format_options): New function.
13720 (handle_monitor_command): Handle "monitor set debug-format".
13721 (gdbserver_usage): Mention --debug-format.
13722 (main): Parse --debug-format.
13723 * server.h (debug_threads): Declaration moved to debug.h.
13724 #include "debug.h".
13725 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
13726 trace_debug_1 that uses debug_printf.
13727 (tracepoint_look_up_symbols): Update all debugging printfs to use
13728 debug_printf instead of fprintf.
13729
13730 2014-01-20 Baruch Siach <baruch@tkos.co.il>
13731
13732 * linux-xtensa-low.c: Include asm/ptrace.h instead of
13733 sys/ptrace.h.
13734
13735 2014-01-17 Pedro Alves <palves@redhat.com>
13736
13737 PR build/16445
13738 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
13739 defined after including gdb_proc_service.h.
13740
13741 2014-01-16 Doug Evans <dje@google.com>
13742
13743 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
13744 (match_dll): Use it.
13745
13746 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13747
13748 * target.h (target_ops) <read_btrace>: Change parameters and
13749 return type to allow error reporting.
13750 * server.c (handle_qxfer_btrace): Support delta reads. Pass
13751 trace reading errors on.
13752 * linux-low.c (linux_low_read_btrace): Pass trace reading
13753 errors on.
13754 (linux_low_disable_btrace): New.
13755
13756 2014-01-15 Doug Evans <dje@google.com>
13757
13758 * inferiors.c (thread_id_to_gdb_id): Delete.
13759 * inferiors.h (thread_id_to_gdb_id): Delete.
13760
13761 2014-01-13 Eli Zaretskii <eliz@gnu.org>
13762
13763 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
13764 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
13765 versions.
13766
13767 2014-01-08 Pedro Alves <palves@redhat.com>
13768
13769 * server.c (handle_status): Don't discard previous queued stop
13770 replies or thread's pending status here.
13771 (main) <disconnection>: Do it here instead.
13772
13773 2014-01-08 Pedro Alves <palves@redhat.com>
13774
13775 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
13776 * server.c (visit_actioned_threads, handle_pending_status): New
13777 function.
13778 (handle_v_cont): Factor out parts to ...
13779 (resume): ... this new function. If in all-stop, and a thread
13780 being resumed has a pending status, report it without actually
13781 resuming.
13782 (myresume): Adjust to use the new 'resume' function.
13783 (clear_pending_status_callback, set_pending_status_callback)
13784 (find_status_pending_thread_callback): New functions.
13785 (handle_status): Handle the case of multiple threads having
13786 interesting statuses to report. Report threads' real last signal
13787 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
13788 with an interesting thread to report the status for, instead of
13789 always reporting the status of the first thread.
13790
13791 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13792
13793 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
13794 * gdbreplay.c (gdbreplay_version): Likewise.
13795
13796 2013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
13797
13798 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
13799 iov.iov_len with the real length in use.
13800
13801 2013-12-13 Joel Brobecker <brobecker@adacore.com>
13802
13803 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
13804 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
13805 for all targets that use win32-low.c.
13806 * win32-low.c (win32_ensure_ntdll_loaded): New function.
13807 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
13808
13809 2013-12-13 Pedro Alves <palves@redhat.com>
13810
13811 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
13812 if equal to TARGET_WAITKIND_LOADED.
13813 * win32-low.c (cached_status): New static global.
13814 (win32_wait): Add declaration.
13815 (do_initial_child_stuff): Flush all initial pending debug events
13816 up to the initial breakpoint.
13817 (win32_wait): If CACHED_STATUS was set, return that instead
13818 of doing a real wait. Remove the code resuming the execution
13819 of the inferior after receiving a TARGET_WAITKIND_LOADED event
13820 during the initial phase. Also remove the code changing
13821 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
13822 TARGET_WAITKIND_STOPPED.
13823
13824 2013-12-11 Yao Qi <yao@codesourcery.com>
13825
13826 * notif.c (handle_notif_ack): Return 0 if no notification
13827 matches.
13828
13829 2013-11-20 Doug Evans <dje@google.com>
13830
13831 * linux-low.c (linux_set_resume_request): Fix comment.
13832
13833 2013-11-20 Doug Evans <dje@google.com>
13834
13835 * linux-low.c (resume_status_pending_p): Tweak comment.
13836
13837 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
13838
13839 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
13840 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
13841 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
13842 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
13843 (srv_amd64_regobj): Add amd64-mpx.o.
13844 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
13845 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
13846 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
13847 * i387-fp.c (num_pl_bnd_register) Added constant.
13848 (num_pl_bnd_cfg_registers) Added constant.
13849 (struct i387_xsave) Added reserved area and MPX fields.
13850 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
13851 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
13852 function.
13853 (tdesc_i386_mpx_linux): Add MPX amd64 target.
13854 (init_registers_amd64_mpx_linux): Declare new function.
13855 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
13856 (x86_64_regmap): Add MPX registers.
13857 (x86_linux_read_description): Add MPX case.
13858 (initialize_low_arch): Initialize MPX targets.
13859
13860 2013-11-18 Tom Tromey <tromey@redhat.com>
13861
13862 * configure: Rebuild.
13863 * configure.ac: Don't check for stdlib.h.
13864 * gdbreplay.c: Unconditionally include stdlib.h.
13865
13866 2013-11-18 Tom Tromey <tromey@redhat.com>
13867
13868 * config.in: Rebuild.
13869 * configure: Rebuild.
13870 * configure.ac: Don't use AC_HEADER_DIRENT.
13871
13872 2013-11-18 Tom Tromey <tromey@redhat.com>
13873
13874 * server.h: Don't check HAVE_STRING_H.
13875 * gdbreplay.c: Don't check HAVE_STRING_H.
13876 * configure: Rebuild.
13877
13878 2013-11-18 Tom Tromey <tromey@redhat.com>
13879
13880 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
13881 LIBGNU.
13882
13883 2013-11-08 Tom Tromey <tromey@redhat.com>
13884
13885 * configure, config.in: Rebuild.
13886 * configure.ac: Remove unused configury.
13887
13888 2013-11-08 Tom Tromey <tromey@redhat.com>
13889
13890 * acinclude.m4: Include common.m4, codeset.m4.
13891 * configure, config.in: Rebuild.
13892 * configure.ac: Use GDB_AC_COMMON.
13893
13894 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
13895
13896 * linux-s390-low.c (HWCAP_S390_TE): New define.
13897 (s390_arch_setup): Consider the TE field in the HWCAP for
13898 determining 'have_regset_tdb'.
13899
13900 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
13901
13902 PR gdb/16014
13903 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
13904 call to sizeof.
13905
13906 2013-10-02 Pedro Alves <palves@redhat.com>
13907
13908 * server.c (process_serial_event): Don't output "GDBserver
13909 exiting" if GDB is connected through stdio.
13910 * target.c (mywait): Likewise, be silent if GDB is connected
13911 through stdio.
13912
13913 2013-10-01 Joel Brobecker <brobecker@adacore.com>
13914
13915 * lynx-low.c (lynx_add_threads_after_attach): New function.
13916 (lynx_attach): Remove call to add_thread. Add call to
13917 lynx_add_threads_after_attach instead.
13918
13919 2013-09-28 Mike Frysinger <vapier@gentoo.org>
13920
13921 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
13922 * config.in, configure: Regenerated.
13923
13924 2013-09-18 Yao Qi <yao@codesourcery.com>
13925
13926 PR server/15959
13927 * server.c (start_inferior): Clear 'resume_info'.
13928
13929 2013-09-16 Jiong Wang <jiwang@tilera.com>
13930
13931 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
13932 for each register.
13933
13934 2013-09-16 Jiong Wang <jiwang@tilera.com>
13935
13936 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
13937 linux-tile-low.o to srv_tgtobj.
13938
13939 2013-09-16 Will Newton <will.newton@linaro.org>
13940
13941 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
13942 out regs.
13943
13944 2013-09-06 Pedro Alves <palves@redhat.com>
13945
13946 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
13947 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
13948 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
13949 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
13950 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
13951 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
13952
13953 2013-09-06 Pedro Alves <palves@redhat.com>
13954
13955 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
13956 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
13957
13958 2013-09-06 Pedro Alves <palves@redhat.com>
13959
13960 * linux-amd64-ipa.c: Include tracepoint.h.
13961 * linux-i386-ipa.c: Include tracepoint.h.
13962
13963 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
13964
13965 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
13966 (ps_get_thread_area): New function.
13967
13968 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
13969
13970 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
13971 (initialize_low_arch): Call init_registers_crisv32 rather than
13972 init_register_crisv32.
13973
13974 2013-09-05 Pedro Alves <palves@redhat.com>
13975
13976 * server.h (handle_vFile, hostio_last_error_from_errno): Move
13977 to ...
13978 * hostio.h: ... this new file.
13979 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
13980 win32-low.c: Include hostio.h.
13981
13982 2013-09-05 Pedro Alves <palves@redhat.com>
13983
13984 * server.h (gdb_client_data, handler_func, callback_handler_func)
13985 (delete_file_handler, add_file_handler, append_callback_event)
13986 (delete_callback_event, start_event_loop, initialize_event_loop):
13987 Move to event-loop.h and include it.
13988 * event-loop.h: New file.
13989
13990 2013-09-05 Pedro Alves <palves@redhat.com>
13991
13992 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
13993 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
13994 (loaded_dll, unloaded_dll): Move to ...
13995 * dll.h: ... this new file.
13996 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
13997
13998 2013-09-05 Pedro Alves <palves@redhat.com>
13999
14000 * server.h (current_process, get_thread_process, all_processes)
14001 (add_inferior_to_list, for_each_inferior, current_inferior)
14002 (remove_inferior, add_process, remove_process, find_process_pid)
14003 (have_started_inferiors_p, have_attached_inferiors_p)
14004 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
14005 (clear_inferiors, find_inferior, find_inferior_id)
14006 (inferior_target_data, set_inferior_target_data)
14007 (inferior_regcache_data, set_inferior_regcache_data): Move to
14008 inferiors.h, and include it.
14009 * inferiors.h: New file.
14010
14011 2013-09-05 Pedro Alves <palves@redhat.com>
14012
14013 * server.h (struct emit_ops, current_insn_ptr, emit_error):
14014 Move ...
14015 * ax.h: ... here.
14016
14017 2013-09-05 Pedro Alves <palves@redhat.com>
14018
14019 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
14020 tracepoint.h.
14021 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
14022 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
14023 (handle_tracepoint_general_set, handle_tracepoint_query)
14024 (tracepoint_finished_step, tracepoint_was_hit)
14025 (release_while_stepping_state_list, current_traceframe)
14026 (in_readonly_region, traceframe_read_mem)
14027 (fetch_traceframe_registers, traceframe_read_sdata)
14028 (traceframe_read_info, struct fast_tpoint_collect_status)
14029 (fast_tracepoint_collecting, force_unlock_trace_buffer)
14030 (handle_tracepoit_bkpts, initialize_low_tracepoint)
14031 (supply_fast_tracepoint_registers)
14032 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
14033 (ipa_tdesc, claim_trampoline_space)
14034 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
14035 (agent_mem_read, agent_get_trace_state_variable_value)
14036 (agent_set_trace_state_variable_value, agent_tsv_read)
14037 (agent_mem_read_string, get_raw_reg_func_addr)
14038 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
14039 * tracepoint.h: ... this new file.
14040
14041 2013-09-05 Pedro Alves <palves@redhat.com>
14042
14043 * server.h (perror_with_name, error, fatal, warning, paddress)
14044 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
14045 include it.
14046 * utils.h: New file.
14047
14048 2013-09-05 Pedro Alves <palves@redhat.com>
14049
14050 * server.h (remote_debug, noack_mode, transport_is_reliable)
14051 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
14052 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
14053 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
14054 (write_enn, initialize_async_io, enable_async_io)
14055 (disable_async_io, check_remote_input_interrupt_request)
14056 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
14057 (dead_thread_notify, prepare_resume_reply)
14058 (decode_address_to_semicolon, decode_address, decode_m_packet)
14059 (decode_M_packet, decode_X_packet, decode_xfer_write)
14060 (decode_search_memory_packet, unhexify, hexify)
14061 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
14062 (look_up_one_symbol, relocate_instruction)
14063 (monitor_output): Move to remote-utils.h, and include it.
14064 * remote-utils.h: New file.
14065
14066 2013-09-05 Pedro Alves <palves@redhat.com>
14067
14068 * server.h (_): Delete.
14069
14070 2013-09-02 Pedro Alves <palves@redhat.com>
14071
14072 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
14073 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
14074 allocated.
14075 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
14076
14077 2013-09-02 Pierre Muller <muller@sourceware.org>
14078
14079 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
14080 or WriteProcessMemory complete successfully and handle
14081 ERROR_PARTIAL_COPY error.
14082
14083 2013-09-02 Pedro Alves <palves@redhat.com>
14084
14085 * server.c (gdb_read_memory): Return -1 on traceframe memory read
14086 error instead of EIO.
14087
14088 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
14089
14090 PR server/15604
14091 * linux-low.c: Include filestuff.h.
14092 (linux_create_inferior) <pid == 0>: Call close_most_fds.
14093 * lynx-low.c: Include filestuff.h.
14094 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
14095 * server.c: Include filestuff.h.
14096 (main): Call notice_open_fds.
14097 * spu-low.c: Include filestuff.h.
14098 (spu_create_inferior) <pid == 0>: Call close_most_fds.
14099
14100 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
14101
14102 * Makefile.in: Explain why ../target and ../nat are not
14103 listed as include file search paths.
14104 (linux-waitpid.o): New object file rule.
14105 * configure.srv (srv_native_linux_obj): New variable.
14106 Replace all occurrences of linux native object files with
14107 $srv_native_linux_obj.
14108 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
14109 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
14110 (linux_enable_event_reporting): Remove declaration.
14111 (my_waitpid): Moved to common/linux-waitpid.c.
14112 (linux_wait_for_event): Pass ptid when calling
14113 linux_enable_event_reporting.
14114 (linux_supports_tracefork_flag): Remove.
14115 (linux_enable_event_reporting): Likewise.
14116 (linux_tracefork_grandchild): Remove.
14117 (STACK_SIZE): Moved to common/linux-ptrace.c.
14118 (linux_tracefork_child): Remove.
14119 (linux_test_for_tracefork): Remove.
14120 (linux_look_up_symbols): Call linux_supports_traceclone.
14121 (initialize_low): Remove call to linux_test_for_tracefork.
14122 * linux-low.h (PTRACE_TYPE_ARG3): Move to
14123 common/linux-ptrace.h.
14124 (PTRACE_TYPE_ARG4): Likewise.
14125 Include linux-ptrace.h.
14126
14127 2013-08-21 Pedro Alves <palves@redhat.com>
14128
14129 * config.in: Renegerate.
14130
14131 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
14132
14133 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
14134 (SFILES): Remove $(srcdir)/common/target-common.c and
14135 add $(srcdir)/target/waitstatus.c.
14136 (OBS): Remove target-common.o and add waitstatus.o.
14137 (server_h): Remove $(srcdir)/../common/target-common.h and
14138 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
14139 and $(srcdir)/../target/waitstatus.h.
14140 (target-common.o): Remove.
14141 (waitstatus.o): New target object file.
14142 * target.h: Do not include target-common.h and
14143 include target/resume.h, target/wait.h and
14144 target/waitstatus.h.
14145
14146 2013-08-13 Luis Machado <lgustavo@codesourcery.com>
14147
14148 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
14149 to PTRACE_TYPE_ARG3.
14150 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
14151 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
14152 PTRACE_TYPE_ARG4.
14153 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
14154 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
14155
14156 2013-07-27 Jie Zhang <jie@codesourcery.com>
14157 Daniel Jacobowitz <dan@codesourcery.com>
14158 Yao Qi <yao@codesourcery.com>
14159
14160 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
14161 (mips-linux-watch.o): New rule.
14162 (mips_linux_watch_h): New variable.
14163 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
14164 srv_tgtobj.
14165 * linux-mips-low.c: Include mips-linux-watch.h.
14166 (struct arch_process_info, struct arch_lwp_info): New.
14167 (update_watch_registers_callback): New function.
14168 (mips_linux_new_process, mips_linux_new_thread) New functions.
14169 (mips_linux_prepare_to_resume, mips_insert_point): New
14170 functions.
14171 (mips_remove_point, mips_stopped_by_watchpoint): New
14172 functions.
14173 (rsp_bp_type_to_target_hw_bp_type): New function.
14174 (mips_stopped_data_address): New function.
14175 (the_low_target): Add watchpoint support functions.
14176
14177 2013-07-27 Yao Qi <yao@codesourcery.com>
14178
14179 * i386-low.c: Include break-common.h.
14180 (enum target_hw_bp_type): Remove.
14181
14182 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
14183
14184 * Makefile.in (SFILES): /common/target-common.c.
14185 (OBS): Add target-common.o.
14186 (server_h): Add $(srcdir)/../common/target-common.h.
14187 (target-common.o): New target.
14188 * server.c (queue_stop_reply_callback): Free
14189 status string after use.
14190 * target.c (target_waitstatus_to_string): Remove.
14191 * target.h: Include target-common.h.
14192 (resume_kind): Likewise.
14193 (target_waitkind): Likewise.
14194 (target_waitstatus): Likewise.
14195 (TARGET_WNOHANG): Likewise.
14196
14197 2013-07-04 Yao Qi <yao@codesourcery.com>
14198
14199 * Makefile.in (host_alias): Use @host_noncanonical@.
14200 (target_alias): Use @target_noncanonical@.
14201 * configure.ac: Use ACX_NONCANONICAL_TARGET and
14202 ACX_NONCANONICAL_HOST.
14203 * configure: Regenerated.
14204
14205 Revert:
14206 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
14207
14208 * configure.ac (version_host, version_target): Set and AC_SUBST them.
14209 * configure: Rebuild.
14210 * Makefile.in (version_host, version_target): Get from configure.
14211 (version.c): Use $(version_host) and $(version_target).
14212
14213 2013-07-03 Pedro Alves <palves@redhat.com>
14214
14215 * Makefile.in (config.status): Depend on development.sh.
14216 * acinclude.m4: Include libmcheck.m4.
14217 * configure: Regenerate.
14218
14219 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
14220
14221 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
14222 attribute inside the parentheses.
14223 (winapi_DebugSetProcessKillOnExit): Ditto.
14224 (winapi_DebugBreakProcess): Ditto.
14225 (winapi_GenerateConsoleCtrlEvent): Ditto.
14226
14227 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
14228
14229 * notif.h (notif_event): Add a dummy member to avoid compiler
14230 errors.
14231
14232 2013-07-01 Pedro Alves <palves@redhat.com>
14233
14234 * hostio.c (HOSTIO_PATH_MAX): Define.
14235 (require_filename, handle_open, handle_unlink, handle_readlink):
14236 Use it.
14237
14238 2013-07-01 Pedro Alves <palves@redhat.com>
14239
14240 * server.h: Include "pathmax.h".
14241 * linux-low.c: Don't include sys/param.h.
14242 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
14243 MAXPATHLEN.
14244 * win32-low.c: Don't include sys/param.h.
14245 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
14246
14247 2013-07-01 Pedro Alves <palves@redhat.com>
14248
14249 * event-loop.c: Don't check HAVE_UNISTD_H before including
14250 <unistd.h>.
14251 * gdbreplay.c: Likewise.
14252 * remote-utils.c: Likewise.
14253 * server.c: Likewise.
14254 * configure.ac: Don't check for unistd.h.
14255 * configure: Regenerate.
14256
14257 2013-06-28 Tom Tromey <tromey@redhat.com>
14258
14259 * Makefile.in (version.c): Use version.in, not
14260 common/version.in.
14261
14262 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
14263
14264 * configure.ac (version_host, version_target): Set and AC_SUBST them.
14265 * configure: Rebuild.
14266 * Makefile.in (version_host, version_target): Get from configure.
14267 (version.c): Use $(version_host) and $(version_target).
14268
14269 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
14270
14271 Fix trace-status to output user name without trailing colon.
14272 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
14273
14274 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
14275
14276 Fix trace-status to output proper start-time and stop-time.
14277 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
14278 output start time and stop time in hex as gdb expects.
14279
14280 2013-06-26 Pedro Alves <pedro@codesourcery.com>
14281
14282 * tracepoint.c (build_traceframe_info_xml): Output trace state
14283 variables present in the trace buffer.
14284
14285 2013-06-24 Tom Tromey <tromey@redhat.com>
14286
14287 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
14288 create-version.sh.
14289 (version.o): Remove.
14290 * gdbreplay.c: Include version.h.
14291 (version, host_name): Don't declare.
14292 * server.h: Include version.h.
14293 (version, host_name): Don't declare.
14294
14295 2013-06-12 Pedro Alves <palves@redhat.com>
14296
14297 * linux-x86-low.c (linux_is_elf64): Delete global.
14298 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
14299 with local linux_pid_exe_is_elf_64_file use.
14300
14301 2013-06-11 Pedro Alves <palves@redhat.com>
14302
14303 * linux-low.c (regset_disabled, disable_regset): New functions.
14304 (regsets_fetch_inferior_registers)
14305 (regsets_store_inferior_registers): Use them.
14306 (initialize_regsets_info); Don't allocate the disabled_regsets
14307 array here.
14308 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
14309 comment.
14310
14311 2013-06-11 Pedro Alves <palves@redhat.com>
14312
14313 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
14314 xmalloc.
14315
14316 2013-06-11 Pedro Alves <palves@redhat.com>
14317
14318 * linux-x86-low.c (initialize_low_arch): Call
14319 init_registers_x32_avx_linux.
14320
14321 2013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
14322
14323 Fix compatibility with Android Bionic.
14324 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
14325 it is not empty.
14326
14327 2013-06-07 Pedro Alves <palves@redhat.com>
14328
14329 PR server/14823
14330 * Makefile.in (OBS): Add tdesc.o.
14331 (IPA_OBJS): Add tdesc-ipa.o.
14332 (tdesc-ipa.o): New rule.
14333 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
14334 interface.
14335 * linux-low.c (new_inferior): Delete.
14336 (disabled_regsets, num_regsets): Delete.
14337 (linux_add_process): Adjust to set the new per-process
14338 new_inferior flag.
14339 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
14340 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
14341 was a stop. When calling arch_setup, switch the current inferior
14342 to the thread that got an event.
14343 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
14344 (regsets_fetch_inferior_registers)
14345 (regsets_store_inferior_registers): New regsets_info parameter.
14346 Adjust to use it.
14347 (linux_register_in_regsets): New regs_info parameter. Adjust to
14348 use it.
14349 (register_addr, fetch_register, store_register): New usrregs_info
14350 parameter. Adjust to use it.
14351 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
14352 parameter regs_info. Adjust to use it.
14353 (linux_fetch_registers): Get the current inferior's regs_info, and
14354 adjust to use it.
14355 (linux_store_registers): Ditto.
14356 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
14357 (initialize_low): Don't initialize the target_regsets here. Call
14358 initialize_low_arch.
14359 * linux-low.h (target_regsets): Delete declaration.
14360 (struct regsets_info): New.
14361 (struct usrregs_info): New.
14362 (struct regs_info): New.
14363 (struct process_info_private) <new_inferior>: New field.
14364 (struct linux_target_ops): Delete the num_regs, regmap, and
14365 regset_bitmap fields. New field regs_info.
14366 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
14367 * i387-fp.c (num_xmm_registers): Delete.
14368 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
14369 calls to new interface.
14370 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
14371 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
14372 Infer the number of xmm registers from the regcache's target
14373 description.
14374 * i387-fp.h (num_xmm_registers): Delete.
14375 * inferiors.c (add_thread): Don't install the thread's regcache
14376 here.
14377 * proc-service.c (gregset_info): Fetch the current inferior's
14378 regs_info. Adjust to use it.
14379 * regcache.c: Include tdesc.h.
14380 (register_bytes, reg_defs, num_registers)
14381 (gdbserver_expedite_regs): Delete.
14382 (get_thread_regcache): If the thread doesn't have a regcache yet,
14383 create one, instead of aborting gdbserver.
14384 (regcache_invalidate_one): Rename to ...
14385 (regcache_invalidate_thread): ... this.
14386 (regcache_invalidate_one): New.
14387 (regcache_invalidate): Only invalidate registers of the current
14388 process.
14389 (init_register_cache): Add target_desc parameter, and use it.
14390 (new_register_cache): Ditto. Assert the target description has a
14391 non zero registers_size.
14392 (regcache_cpy): Add assertions. Adjust.
14393 (realloc_register_cache, set_register_cache): Delete.
14394 (registers_to_string, registers_from_string): Adjust.
14395 (find_register_by_name, find_regno, find_register_by_number)
14396 (register_cache_size): Add target_desc parameter, and use it.
14397 (free_register_cache_thread, free_register_cache_thread_one)
14398 (regcache_release, register_cache_size): New.
14399 (register_size): Add target_desc parameter, and use it.
14400 (register_data, supply_register, supply_register_zeroed)
14401 (supply_regblock, supply_register_by_name, collect_register)
14402 (collect_register_as_string, collect_register_by_name): Adjust.
14403 * regcache.h (struct target_desc): Forward declare.
14404 (struct regcache) <tdesc>: New field.
14405 (init_register_cache, new_register_cache): Add target_desc
14406 parameter.
14407 (regcache_invalidate_thread): Declare.
14408 (regcache_invalidate_one): Delete declaration.
14409 (regcache_release): Declare.
14410 (find_register_by_number, register_cache_size, register_size)
14411 (find_regno): Add target_desc parameter.
14412 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
14413 declarations.
14414 * remote-utils.c: Include tdesc.h.
14415 (outreg, prepare_resume_reply): Adjust.
14416 * server.c: Include tdesc.h.
14417 (gdbserver_xmltarget): Delete declaration.
14418 (get_features_xml, process_serial_event): Adjust.
14419 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
14420 declare.
14421 (struct process_info) <tdesc>: New field.
14422 (ipa_tdesc): Declare.
14423 * tdesc.c: New file.
14424 * tdesc.h: New file.
14425 * tracepoint.c: Include tdesc.h.
14426 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
14427 (get_context_regcache): Adjust to pass ipa_tdesc down.
14428 (do_action_at_tracepoint): Adjust to get the register cache size
14429 from the context regcache's description.
14430 (traceframe_walk_blocks): Adjust to get the register cache size
14431 from the current trace frame's description.
14432 (traceframe_get_pc): Adjust to get current trace frame's
14433 description and pass it down.
14434 (gdb_collect): Adjust to get the register cache size from the
14435 IPA's description.
14436 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
14437 (gdbserver_xmltarget): Delete.
14438 (initialize_low_tracepoint): Set the ipa's target description.
14439 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
14440 (initialize_low_tracepoint): Set the ipa's target description.
14441 * linux-x86-low.c: Include tdesc.h.
14442 [__x86_64__] (is_64bit_tdesc): New.
14443 (ps_get_thread_area, x86_get_thread_area): Use it.
14444 (i386_cannot_store_register): Rename to ...
14445 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
14446 (i386_cannot_fetch_register): Rename to ...
14447 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
14448 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
14449 to new interface.
14450 (target_regsets): Rename to ...
14451 (x86_regsets): ... this.
14452 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
14453 interface.
14454 (x86_siginfo_fixup): Use is_64bit_tdesc.
14455 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
14456 (tdesc_x32_avx_linux, tdesc_x32_linux)
14457 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
14458 Declare.
14459 (x86_linux_update_xmltarget): Delete.
14460 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
14461 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
14462 (AMD64_LINUX_USER64_CS): New.
14463 (x86_linux_read_description): New, based on
14464 x86_linux_update_xmltarget.
14465 (same_process_callback): New.
14466 (x86_arch_setup_process_callback): New.
14467 (x86_linux_update_xmltarget): New.
14468 (x86_regsets_info): New.
14469 (amd64_linux_regs_info): New.
14470 (i386_linux_usrregs_info): New.
14471 (i386_linux_regs_info): New.
14472 (x86_linux_regs_info): New.
14473 (x86_arch_setup): Reimplement.
14474 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
14475 (x86_emit_ops): Ditto.
14476 (the_low_target): Adjust. Install x86_linux_regs_info,
14477 x86_cannot_fetch_register, and x86_cannot_store_register.
14478 (initialize_low_arch): New.
14479 * linux-ia64-low.c (tdesc_ia64): Declare.
14480 (ia64_fetch_register): Adjust.
14481 (ia64_usrregs_info, regs_info): New globals.
14482 (ia64_regs_info): New function.
14483 (the_low_target): Adjust.
14484 (initialize_low_arch): New function.
14485 * linux-sparc-low.c (tdesc_sparc64): Declare.
14486 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
14487 Adjust.
14488 (sparc_arch_setup): New function.
14489 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
14490 (the_low_target): Adjust.
14491 (initialize_low_arch): New function.
14492 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
14493 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
14494 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
14495 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
14496 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
14497 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
14498 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
14499 (tdesc_powerpc_isa205_vsx64l): Declare.
14500 (ppc_cannot_store_register, ppc_collect_ptrace_register)
14501 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
14502 (ppc_set_pc, ppc_get_hwcap): Adjust.
14503 (ppc_usrregs_info): Forward declare.
14504 (!__powerpc64__) ppc_regmap_adjusted: New global.
14505 (ppc_arch_setup): Adjust to the current process'es target
14506 description.
14507 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
14508 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
14509 (ppc_store_evrregset): Adjust.
14510 (target_regsets): Rename to ...
14511 (ppc_regsets): ... this, and make static.
14512 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
14513 (ppc_regs_info): New function.
14514 (the_low_target): Adjust.
14515 (initialize_low_arch): New function.
14516 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
14517 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
14518 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
14519 (tdesc_s390x_linux64v2): Declare.
14520 (s390_collect_ptrace_register, s390_supply_ptrace_register)
14521 (s390_fill_gregset, s390_store_last_break): Adjust.
14522 (target_regsets): Rename to ...
14523 (s390_regsets): ... this, and make static.
14524 (s390_get_pc, s390_set_pc): Adjust.
14525 (s390_get_hwcap): New target_desc parameter, and use it.
14526 [__s390x__] (have_hwcap_s390_high_gprs): New global.
14527 (s390_arch_setup): Adjust to set the current process'es target
14528 description. Don't adjust the regmap.
14529 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
14530 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
14531 (regs_info_3264): New globals.
14532 (s390_regs_info): New function.
14533 (the_low_target): Adjust.
14534 (initialize_low_arch): New function.
14535 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
14536 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
14537 [__mips64] (init_registers_mips_linux)
14538 (init_registers_mips_dsp_linux): Delete defines.
14539 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
14540 (have_dsp): New global.
14541 (mips_read_description): New, based on mips_arch_setup.
14542 (mips_arch_setup): Reimplement.
14543 (get_usrregs_info): New function.
14544 (mips_cannot_fetch_register, mips_cannot_store_register)
14545 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
14546 (mips_fill_fpregset, mips_store_fpregset): Adjust.
14547 (target_regsets): Rename to ...
14548 (mips_regsets): ... this, and make static.
14549 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
14550 (dsp_regs_info, regs_info): New globals.
14551 (mips_regs_info): New function.
14552 (the_low_target): Adjust.
14553 (initialize_low_arch): New function.
14554 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
14555 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
14556 Declare.
14557 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
14558 (arm_read_description): New, with bits factored from
14559 arm_arch_setup.
14560 (arm_arch_setup): Reimplement.
14561 (target_regsets): Rename to ...
14562 (arm_regsets): ... this, and make static.
14563 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
14564 (arm_regs_info): New function.
14565 (the_low_target): Adjust.
14566 (initialize_low_arch): New function.
14567 * linux-m68k-low.c (tdesc_m68k): Declare.
14568 (target_regsets): Rename to ...
14569 (m68k_regsets): ... this, and make static.
14570 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
14571 (m68k_regs_info): New function.
14572 (m68k_arch_setup): New function.
14573 (the_low_target): Adjust.
14574 (initialize_low_arch): New function.
14575 * linux-sh-low.c (tdesc_sharch): Declare.
14576 (target_regsets): Rename to ...
14577 (sh_regsets): ... this, and make static.
14578 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
14579 (sh_regs_info, sh_arch_setup): New functions.
14580 (the_low_target): Adjust.
14581 (initialize_low_arch): New function.
14582 * linux-bfin-low.c (tdesc_bfin): Declare.
14583 (bfin_arch_setup): New function.
14584 (bfin_usrregs_info, regs_info): New globals.
14585 (bfin_regs_info): New function.
14586 (the_low_target): Adjust.
14587 (initialize_low_arch): New function.
14588 * linux-cris-low.c (tdesc_cris): Declare.
14589 (cris_arch_setup): New function.
14590 (cris_usrregs_info, regs_info): New globals.
14591 (cris_regs_info): New function.
14592 (the_low_target): Adjust.
14593 (initialize_low_arch): New function.
14594 * linux-cris-low.c (tdesc_crisv32): Declare.
14595 (cris_arch_setup): New function.
14596 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
14597 (cris_regs_info): New function.
14598 (the_low_target): Adjust.
14599 (initialize_low_arch): New function.
14600 * linux-m32r-low.c (tdesc_m32r): Declare.
14601 (m32r_arch_setup): New function.
14602 (m32r_usrregs_info, regs_info): New globals.
14603 (m32r_regs_info): Adjust.
14604 (initialize_low_arch): New function.
14605 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
14606 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
14607 (tic6x_usrregs_info): Forward declare.
14608 (tic6x_read_description): New function, based on ...
14609 (tic6x_arch_setup): ... this. Reimplement.
14610 (target_regsets): Rename to ...
14611 (tic6x_regsets): ... this, and make static.
14612 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
14613 (tic6x_regs_info): New function.
14614 (the_low_target): Adjust.
14615 (initialize_low_arch): New function.
14616 * linux-xtensa-low.c (tdesc_xtensa): Declare.
14617 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
14618 (target_regsets): Rename to ...
14619 (xtensa_regsets): ... this, and make static.
14620 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
14621 globals.
14622 (xtensa_arch_setup, xtensa_regs_info): New functions.
14623 (the_low_target): Adjust.
14624 (initialize_low_arch): New function.
14625 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
14626 (nios2_arch_setup): Set the current process'es tdesc.
14627 (target_regsets): Rename to ...
14628 (nios2_regsets): ... this.
14629 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
14630 (nios2_regs_info): New function.
14631 (the_low_target): Adjust.
14632 (initialize_low_arch): New function.
14633 * linux-aarch64-low.c (tdesc_aarch64): Declare.
14634 (aarch64_arch_setup): Set the current process'es tdesc.
14635 (target_regsets): Rename to ...
14636 (aarch64_regsets): ... this.
14637 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
14638 (aarch64_regs_info): New function.
14639 (the_low_target): Adjust.
14640 (initialize_low_arch): New function.
14641 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
14642 globals.
14643 (target_regsets): Rename to ...
14644 (tile_regsets): ... this.
14645 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
14646 (tile_regs_info): New function.
14647 (tile_arch_setup): Set the current process'es tdesc.
14648 (the_low_target): Adjust.
14649 (initialize_low_arch): New function.
14650 * spu-low.c (tdesc_spu): Declare.
14651 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
14652 * win32-arm-low.c (tdesc_arm): Declare.
14653 (arm_arch_setup): New function.
14654 (the_low_target): Install arm_arch_setup instead of
14655 init_registers_arm.
14656 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
14657 (init_windows_x86): Rename to ...
14658 (i386_arch_setup): ... this. Set `win32_tdesc'.
14659 (the_low_target): Adjust.
14660 * win32-low.c (win32_tdesc): New global.
14661 (child_add_thread): Don't create the thread cache here.
14662 (do_initial_child_stuff): Set the new process'es tdesc.
14663 * win32-low.h (struct target_desc): Forward declare.
14664 (win32_tdesc): Declare.
14665 * lynx-i386-low.c (tdesc_i386): Declare global.
14666 (lynx_i386_arch_setup): Set `lynx_tdesc'.
14667 * lynx-low.c (lynx_tdesc): New global.
14668 (lynx_add_process): Set the new process'es tdesc.
14669 * lynx-low.h (struct target_desc): Forward declare.
14670 (lynx_tdesc): Declare global.
14671 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
14672 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
14673 * nto-low.c (nto_tdesc): New global.
14674 (do_attach): Set the new process'es tdesc.
14675 * nto-low.h (struct target_desc): Forward declare.
14676 (nto_tdesc): Declare.
14677 * nto-x86-low.c (tdesc_i386): Declare.
14678 (nto_x86_arch_setup): Set `nto_tdesc'.
14679
14680 2013-06-04 Gary Benson <gbenson@redhat.com>
14681
14682 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
14683 to qSupported response when appropriate.
14684 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
14685 with nonzero-length annex.
14686 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
14687 arguments supplied in annex.
14688
14689 2013-05-31 Doug Evans <dje@google.com>
14690
14691 PR server/15594
14692 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
14693 64 bits in 64-cross-32 environment.
14694
14695 2013-05-28 Pedro Alves <palves@redhat.com>
14696
14697 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
14698 (aarch64-without-fpu.c): Delete rule.
14699 * configure.srv (aarch64*-*-linux*): Remove references to
14700 aarch64-without-fpu.o and aarch64-without-fpu.xml.
14701 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
14702 declaration.
14703
14704 2013-05-24 Pedro Alves <palves@redhat.com>
14705
14706 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
14707 instead of strchr/decode_address. Error if the range isn't split
14708 with a ','. Don't assume there's be a ':' in the action.
14709
14710 2013-05-23 Yao Qi <yao@codesourcery.com>
14711 Pedro Alves <palves@redhat.com>
14712
14713 * linux-low.c (lwp_in_step_range): New function.
14714 (linux_wait_1): If the thread was range stepping and stopped
14715 outside the stepping range, report the stop to GDB. Otherwise,
14716 continue stepping. Add range stepping debug output.
14717 (linux_set_resume_request): Copy the step range from the resume
14718 request to the lwp.
14719 (linux_supports_range_stepping): New.
14720 (linux_target_ops) <supports_range_stepping>: Set to
14721 linux_supports_range_stepping.
14722 * linux-low.h (struct linux_target_ops)
14723 <supports_range_stepping>: New field.
14724 (struct lwp_info) <step_range_start, step_range_end>: New fields.
14725 * linux-x86-low.c (x86_supports_range_stepping): New.
14726 (the_low_target) <supports_range_stepping>: Set to
14727 x86_supports_range_stepping.
14728 * server.c (handle_v_cont): Handle 'r' action.
14729 (handle_v_requests): Append ";r" if the target supports range
14730 stepping.
14731 * target.h (struct thread_resume) <step_range_start,
14732 step_range_end>: New fields.
14733 (struct target_ops) <supports_range_stepping>:
14734 New field.
14735 (target_supports_range_stepping): New macro.
14736
14737 2013-05-17 Joel Brobecker <brobecker@adacore.com>
14738
14739 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
14740 confusion in comment.
14741
14742 2013-05-17 Joel Brobecker <brobecker@adacore.com>
14743
14744 * lynx-low.c (struct process_info_private): New type.
14745 (lynx_add_process): New function.
14746 (lynx_create_inferior, lynx_attach): Replace calls to
14747 add_process by calls to lynx_add_process.
14748 (lynx_resume): If PTID is null, then try using
14749 current_process()->private->last_wait_event_ptid.
14750 Add comments.
14751 (lynx_clear_inferiors): Delete. The contents of that function
14752 has been inlined in lynx_mourn;
14753 (lynx_wait_1): Save the ptid in the process's private data.
14754 (lynx_mourn): Free the process' private data. Replace call
14755 to lynx_clear_inferiors by call to clear_inferiors.
14756
14757 2013-05-17 Yao Qi <yao@codesourcery.com>
14758
14759 * i386-low.c (i386_length_and_rw_bits): Move the comment to
14760 the right place.
14761
14762 2013-05-16 Luis Machado <lgustavo@codesourcery.com>
14763
14764 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
14765 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
14766 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
14767 PT_TEXT_END_ADDR guards. Update comments.
14768 (linux_target_op) <read_offsets>: Conditionally define to
14769 linux_read_offsets if the target is UCLIBC and if it defines
14770 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
14771
14772 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
14773 Andrew Jenner <andrew@codesourcery.com>
14774
14775 * Makefile.in (SFILES): Add linux-nios2-low.c.
14776 (clean): Add action to delete nios2-linux.c.
14777 (nios2-linux.c): New rule.
14778 * configure.srv: Add nios2*-*-linux*.
14779 * linux-nios2-low.c: New.
14780
14781 2013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
14782
14783 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
14784
14785 2013-04-25 Hui Zhu <hui@codesourcery.com>
14786
14787 PR gdb/15186
14788 * ax.c (ax_printf): Add fflush.
14789
14790 2013-04-22 Tom Tromey <tromey@redhat.com>
14791
14792 * Makefile.in (SFILES): Add filestuff.c.
14793 (OBS): Add filestuff.o.
14794 (filestuff.o): New target.
14795 * config.in, configure: Rebuild.
14796 * configure.ac: Check for fdwalk, pipe2.
14797
14798 2013-04-17 Pedro Alves <palves@redhat.com>
14799
14800 * configure.ac (USE_THREAD_DB): Delete variable.
14801 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
14802 Don't AC_SUBST USE_THREAD_DB.
14803 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
14804 * config.in, configure: Regenerate.
14805
14806 2013-04-16 Pedro Alves <palves@redhat.com>
14807
14808 * linux-low.h (struct lwp_info) <thread_known>: Move under
14809 the USE_THREAD_DB #ifdef.
14810
14811 2013-04-16 Pedro Alves <palves@redhat.com>
14812
14813 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
14814 (linux-low.o): Delete rule.
14815 * linux-low.h: Always include "gdb_thread_db.h" instead of
14816 conditionally including thread_db.h.
14817 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
14818 HAVE_THREAD_DB_H.
14819
14820 2013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14821
14822 * Makefile.in (install-only): Fix make install regression.
14823
14824 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
14825
14826 Convert man pages to texinfo, new gdbinit.5 texinfo page.
14827 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
14828 installation.
14829 * gdbserver.1: Remove.
14830
14831 2013-03-22 Pedro Alves <palves@redhat.com>
14832
14833 * linux-low.c (handle_extended_wait): Don't call
14834 linux_enable_event_reporting.
14835
14836 2013-03-15 Tony Theodore <tonyt@logyst.com>
14837
14838 PR build/9098:
14839 * Makefile.in (SHELL): Use @SHELL@.
14840
14841 2013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
14842
14843 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
14844 compiler warning.
14845
14846 2013-03-13 Joel Brobecker <brobecker@adacore.com>
14847
14848 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
14849 Remove extraneous NULL element.
14850
14851 2013-03-13 Yao Qi <yao@codesourcery.com>
14852
14853 * tracepoint.c (traceframe_read_tsv): Look for the last matched
14854 'V' block in trace frame.
14855
14856 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14857
14858 * target.h (struct target_ops): Add btrace ops.
14859 (target_supports_btrace): New macro.
14860 (target_enable_btrace): New macro.
14861 (target_disable_btrace): New macro.
14862 (target_read_btrace): New macro.
14863 * gdbthread.h (struct thread_info): Add btrace field.
14864 * server.c: Include btrace-common.h.
14865 (handle_btrace_general_set): New function.
14866 (handle_btrace_enable): New function.
14867 (handle_btrace_disable): New function.
14868 (handle_general_set): Call handle_btrace_general_set.
14869 (handle_qxfer_btrace): New function.
14870 (struct qxfer qxfer_packets[]): Add btrace entry.
14871 * inferiors.c (remove_thread): Disable btrace.
14872 * linux-low: Include linux-btrace.h.
14873 (linux_low_enable_btrace): New function.
14874 (linux_low_read_btrace): New function.
14875 (linux_target_ops): Add btrace ops.
14876 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
14877 Add srv_linux_btrace=yes.
14878 (x86_64-*-linux*): Add linux-btrace.o.
14879 Add srv_linux_btrace=yes.
14880 * configure.ac: Define HAVE_LINUX_BTRACE.
14881 * config.in: Regenerated.
14882 * configure: Regenerated.
14883
14884 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14885
14886 * server.c (handle_qxfer): Preserve error message if -3 is
14887 returned.
14888 (qxfer): Document the -3 return value.
14889
14890 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14891
14892 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
14893 (linux_btrace_h): New variable.
14894 (linux-btrace.o): New rule.
14895
14896 2013-03-08 Stan Shebs <stan@codesourcery.com>
14897 Hafiz Abid Qadeer <abidh@codesourcery.com>
14898
14899 * tracepoint.c (trace_buffer_size): New global.
14900 (DEFAULT_TRACE_BUFFER_SIZE): New define.
14901 (init_trace_buffer): Change to one-argument function. Allocate
14902 trace buffer memory.
14903 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
14904 handle QTBuffer:size packet.
14905 (cmd_bigqtbuffer_size): New function.
14906 (initialize_tracepoint): Call init_trace_buffer with
14907 DEFAULT_TRACE_BUFFER_SIZE.
14908 * server.c (handle_query): Add QTBuffer:size in the
14909 supported packets.
14910
14911 2013-03-07 Yao Qi <yao@codesourcery.com>
14912
14913 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
14914 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
14915 of -1.
14916 (cmd_qtsp): Adjust condition. Do post increment.
14917 Set cur_action and cur_step_action back to 0.
14918
14919 2013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
14920
14921 PR server/15236
14922 * linux-low.c (linux_write_memory): Return early success if LEN is
14923 zero.
14924
14925 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
14926
14927 * configure.srv: Add x86_64-*-cygwin* as target.
14928
14929 2013-02-28 Tom Tromey <tromey@redhat.com>
14930
14931 * configure.ac: Invoke AC_SYS_LARGEFILE.
14932 * configure, config.in: Rebuild.
14933
14934 2013-02-28 Corinna Vinschen <vinschen@redhat.com>
14935
14936 * win32-low.c: Throughout, fix format strings and casts of
14937 printf-like functions to avoid type related warnings on all
14938 platforms.
14939 (get_child_debug_event): Print dwDebugEventCode as hex since
14940 that's how it's usually documented.
14941
14942 2013-02-28 Yao Qi <yao@codesourcery.com>
14943
14944 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
14945 pulongest.
14946
14947 2013-02-27 Jiong Wang <jiwang@tilera.com>
14948
14949 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
14950 (reg-tilegx32.c): New rule.
14951 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
14952 * linux-tile-low.c (tile_arch_setup): New function. Invoke
14953 different register info initializer according to elf class.
14954 (init_registers_tilgx32): New function. The tilegx32 register info
14955 initializer.
14956 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
14957 (tile_store_gregset): Likewise.
14958
14959 2013-02-27 Yao Qi <yao@codesourcery.com>
14960
14961 * server.c (process_point_options): Print debug message when
14962 debug_threads is true.
14963
14964 2013-02-26 Yao Qi <yao@codesourcery.com>
14965
14966 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
14967
14968 2013-02-19 Pedro Alves <palves@redhat.com>
14969 Kai Tietz <ktietz@redhat.com>
14970
14971 PR gdb/15161
14972
14973 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
14974 instead of strtoul to extract address from packet.
14975 (process_serial_event) <'z'>: Likewise.
14976
14977 2013-02-18 Yao Qi <yao@codesourcery.com>
14978
14979 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
14980
14981 2013-02-14 Pedro Alves <palves@redhat.com>
14982
14983 Plug memory leak.
14984
14985 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
14986 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
14987
14988 2013-02-14 Pedro Alves <palves@redhat.com>
14989
14990 * tracepoint.c (cmd_qtdpsrc): Use savestring.
14991
14992 2013-02-14 Pedro Alves <palves@redhat.com>
14993
14994 * tracepoint.c (save_string): Delete.
14995 (add_tracepoint_action): Use savestring instead of save_string.
14996
14997 2013-02-12 Pedro Alves <palves@redhat.com>
14998
14999 * linux-xtensa-low.c: Ditto.
15000 * xtensa-xtregs.c: Ditto.
15001
15002 2013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
15003
15004 * thread-db.c (thread_db_get_tls_address): NULL pointer check
15005 thread_db.
15006
15007 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
15008
15009 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
15010 aarch64_num_wp_regs and aarch64_num_bp_regs to
15011 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
15012
15013 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
15014
15015 * linux-aarch64-low.c (ps_get_thread_area): Replace
15016 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
15017
15018 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
15019 Marcus Shawcroft <marcus.shawcroft@arm.com>
15020 Nigel Stephens <nigel.stephens@arm.com>
15021 Yufeng Zhang <yufeng.zhang@arm.com>
15022
15023 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
15024 (aarch64.c, aarch64-without-fpu.c): New targets.
15025 * configure.srv (aarch64*-*-linux*): New.
15026 * linux-aarch64-low.c: New file.
15027
15028 2013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
15029
15030 * linux-low.c (handle_extended_wait, linux_create_inferior)
15031 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
15032 (dequeue_one_deferred_signal, linux_resume_one_thread)
15033 (fetch_register, linux_write_memory, linux_enable_event_reporting)
15034 (linux_tracefork_grandchild, linux_test_for_tracefork)
15035 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
15036 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
15037 where the argument is 0.
15038
15039 2013-01-25 Yao Qi <yao@codesourcery.com>
15040
15041 * event-loop.c: Include "queue.h".
15042 (gdb_event_p): New typedef.
15043 (struct gdb_event) <next_event>: Remove.
15044 (event_queue): Change to QUEUE(gdb_event_p).
15045 (async_queue_event): Remove.
15046 (gdb_event_xfree): New.
15047 (initialize_event_loop): New.
15048 (process_event): Use API from QUEUE.
15049 (wait_for_event): Likewise.
15050 * server.c (main): Call initialize_event_loop.
15051 * server.h (initialize_event_loop): Declare.
15052
15053 2013-01-18 Yao Qi <yao@codesourcery.com>
15054
15055 * ax.h (struct eval_agent_expr_context): New.
15056 (gdb_eval_agent_expr): Update declaration.
15057 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
15058 TFRAME. Add new argument CTX.
15059 * server.h (struct eval_agent_expr_context): Declare.
15060 (agent_mem_read, agent_tsv_read): Update declaration.
15061 (agent_mem_read_string): Likewise.
15062 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
15063 (add_traceframe_block): Add new argument TPOINT.
15064 Increase TPOINT->traceframe_usage.
15065 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
15066 eval_tracepoint_agent_expr.
15067 (condition_true_at_tracepoint): Likewise.
15068 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
15069 (agent_mem_read_string, agent_tsv_read): Likewise.
15070
15071 2013-01-16 Yao Qi <yao@codesourcery.com>
15072
15073 * linux-low.c (linux_resume_one_lwp): Don't check
15074 'lwp->bp_reinsert != 0'.
15075
15076 2013-01-07 Joel Brobecker <brobecker@adacore.com>
15077 Pedro Alves <palves@redhat.com>
15078
15079 * lynx-low.c (ptrace_request_to_str): Define a temporary
15080 macro and use it to simplify this function's implementation.
15081
15082 2013-01-07 Joel Brobecker <brobecker@adacore.com>
15083
15084 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
15085 sets errno.
15086
15087 2013-01-07 Joel Brobecker <brobecker@adacore.com>
15088
15089 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
15090
15091 2013-01-07 Joel Brobecker <brobecker@adacore.com>
15092
15093 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
15094
15095 2013-01-07 Joel Brobecker <brobecker@adacore.com>
15096
15097 * lynx-low.c (lynx_resume): Use the resume_info parameter
15098 to determine the ptid for the lynx_ptrace call, unless
15099 it is equal to minus_one_ptid, in which case we use the
15100 ptid of the current_inferior.
15101 (lynx_wait_1): After having received a thread create/exit
15102 event, resume the inferior's execution using the signaling
15103 thread's ptid, rather than the old ptid.
15104
15105 2013-01-07 Joel Brobecker <brobecker@adacore.com>
15106
15107 * lynx-low.c (lynx_resume): Delete variable ret.
15108
15109 2013-01-01 Joel Brobecker <brobecker@adacore.com>
15110
15111 * gdbreplay.c (gdbreplay_version): Update copyright year.
15112 * server.c (gdbserver_version): Likewise.
15113
15114 2012-12-17 Joel Brobecker <brobecker@adacore.com>
15115
15116 * lynx-low.c (lynx_wait_1): Add debug trace before adding
15117 new thread.
15118
15119 2012-12-17 Joel Brobecker <brobecker@adacore.com>
15120
15121 * lynx-low.c (ptrace_request_to_str): Add handling for
15122 PTRACE_GETTRACESIG.
15123
15124 2012-12-17 Joel Brobecker <brobecker@adacore.com>
15125
15126 * lynx-low.c (lynx_attach): Delete variable new_process.
15127
15128 2012-12-17 Joel Brobecker <brobecker@adacore.com>
15129
15130 * lynx-low.c (lynx_create_inferior): Delete variable
15131 new_process.
15132
15133 2012-12-17 Joel Brobecker <brobecker@adacore.com>
15134
15135 * lynx-low.c (ptrace_request_to_str): Do not handle
15136 PTRACE_GETTHREADLIST if this macro does not exist.
15137
15138 2012-12-15 Yao Qi <yao@codesourcery.com>
15139
15140 * Makefile.in (OBS): Add notif.o.
15141 * notif.c, notif.h: New.
15142 * server.c: Include "notif.h".
15143 (struct vstop_notif) <next>: Remove.
15144 <base>: New field.
15145 (queue_stop_reply): Update.
15146 (push_event, send_next_stop_reply): Remove.
15147 (discard_queued_stop_replies): Update.
15148 (notif_stop): New variable.
15149 (handle_v_stopped): Remove.
15150 (handle_v_requests): Don't call handle_v_stopped. Call
15151 handle_ack_notif instead.
15152 (queue_stop_reply_callback): Call notif_event_enque instead
15153 of queue_stop_reply.
15154 (handle_status): Don't call send_next_stop_reply, call
15155 notif_write_event instead.
15156 (kill_inferior_callback): Likewise.
15157 (detach_or_kill_inferior_callback): Likewise.
15158 (main): Call initialize_notif.
15159 (process_serial_event): Call QUEUE_is_empty.
15160 (handle_target_event): Call notif_push instead of push event.
15161 * server.h (push_event): Remove declaration.
15162
15163 2012-12-10 Tom Tromey <tromey@redhat.com>
15164
15165 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
15166 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
15167 macros.
15168 (.c.o): Rewrite.
15169 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
15170 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
15171 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
15172 (amd64-linux-ipa.o, ax.o): Rewrite.
15173 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
15174 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
15175 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
15176 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
15177 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
15178 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
15179 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
15180 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
15181 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
15182 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
15183 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
15184 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
15185 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
15186 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
15187 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
15188 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
15189 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
15190 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
15191 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
15192 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
15193 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
15194 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
15195 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
15196 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
15197 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
15198 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
15199 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
15200 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
15201 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
15202 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
15203 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
15204 (reg-tilegx.o): Remove.
15205 (all_object_files): New macro.
15206 Include .deps files.
15207 * aclocal.m4, configure: Rebuild.
15208 * acinclude.m4: Include depstand.m4, lead-dot.m4.
15209 * configure.ac: Invoke ZW_CREATE_DEPDIR,
15210 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
15211
15212 2012-12-05 Tom Tromey <tromey@redhat.com>
15213
15214 PR gdb/14917:
15215 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
15216
15217 2012-11-28 Markus Metzger <markus.t.metzger@intel.com>
15218
15219 * configure.ac: Check for linux/perf_event.h.
15220 * config.in: Regenerated.
15221 * configure: Regenerated.
15222
15223 2012-11-26 Maxime Villard <rustyBSD@gmx.fr>
15224
15225 * hostio.c (handle_readlink): Decrease buffer size
15226 parameter passed to readlink by one byte.
15227
15228 2012-11-26 Yao Qi <yao@codesourcery.com>
15229
15230 * configure.ac (build_warnings): Append '-Wempty-body'.
15231 * configure: Regenerated.
15232 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
15233 body.
15234
15235 2012-11-15 Pierre Muller <muller@sourceware.org>
15236
15237 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
15238 * config.in: Regenerate.
15239 * configure: Regenerate.
15240 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
15241 Use "gdb_wait.h" header instead of <sys/wait.h> header.
15242 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
15243 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
15244 header.
15245 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
15246 instead of <sys/wait.h> header.
15247 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
15248
15249 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
15250
15251 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
15252 (various make rules): Remove -DGDBSERVER
15253
15254 2012-11-09 Yao Qi <yao@codesourcery.com>
15255
15256 * spu-low.c (current_ptid): Move it to ..
15257 * gdbthread.h: ... here. New.
15258 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
15259 * server.c (myresume, process_serial_event): Likewise.
15260 * thread-db.c (thread_db_find_new_threads): Likewise.
15261 * tracepoint.c (run_inferior_command): Likewise.
15262
15263 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
15264
15265 * server.c (handle_search_memory_1): Include access length in
15266 warning message.
15267
15268 2012-09-05 Michael Brandt <michael.brandt@axis.com>
15269
15270 * linux-crisv32-low.c: Fix compile errors.
15271
15272 2012-09-04 Yao Qi <yao@codesourcery.com>
15273
15274 * tracepoint.c (cmd_qtsv): Adjust debug message.
15275 Don't check CUR_TPOINT.
15276
15277 2012-08-28 Yao Qi <yao@codesourcery.com>
15278
15279 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
15280 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
15281 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
15282 Remove declarations of xmalloc, xreallloc, xstrdup and
15283 freeargv.
15284 * Makefile.in (libiberty_h): New.
15285 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
15286 (linux-bfin-low.o): Append dependency 'libiberty.h'.
15287
15288 2012-08-23 Yao Qi <yao@codesourcery.com>
15289
15290 * server.h: Remove declaration of 'xsnprintf'.
15291
15292 2012-08-22 Keith Seitz <keiths@redhat.com>
15293
15294 * server.h: Include build-gnulib-gbserver/config.h.
15295 * gdbreplay.c: Likewise.
15296
15297 2012-08-08 Doug Evans <dje@google.com>
15298
15299 * Makefile.in (SFILES): Add gdb_vecs.c.
15300 (OBS): Add gdb_vecs.o.
15301 (gdb_vecs_h, host_defs_h): New variables.
15302 (thread-db.o): Add $(gdb_vecs_h) dependency.
15303 (gdb_vecs.o): New rule.
15304 * thread-db.c: #include "gdb_vecs.h".
15305 (thread_db_load_search): Use a vector to iterate over path elements.
15306 Handle text appearing after "$pdir".
15307
15308 * configure.ac: Add check for strstr.
15309 * config.in: Regenerate.
15310 * configure: Regenerate.
15311
15312 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
15313
15314 * hostio.c (handle_pread): If pread fails, fall back to attempting
15315 lseek/read.
15316 (handle_pwrite): Likewise for pwrite.
15317
15318 2012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
15319
15320 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
15321 between unsupported TYPE and unimplementable ADDR/LEN combination.
15322 (arm_insert_point): Act on new return value.
15323
15324 2012-07-31 Pedro Alves <palves@redhat.com>
15325
15326 * server.c (process_point_options): Only skip tokens if we find
15327 one that is unrecognized. Don't treat 'X' specially while
15328 skipping unrecognized tokens.
15329
15330 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
15331
15332 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
15333 to 4-byte-align HW breakpoint addresses for Thumb.
15334
15335 2012-07-27 Yao Qi <yao@codesourcery.com>
15336
15337 PR remote/14161.
15338
15339 * server.h: Declare gdb_agent_about_to_close.
15340 * target.c (kill_inferior): Include "agent.h".
15341 New. Send command 'kill'.
15342 * target.h (kill_inferior): Removed macro.
15343 * tracepoint.c (gdb_agent_about_to_close): New.
15344 (gdb_agent_helper_thread): Handle command 'close'.
15345 Wait endlessly until the inferior stops.
15346 Install gdb_agent_remove_socket to atexit hook.
15347 (agent_socket_name): New static variable.
15348 (gdb_agent_socket_init): Replace local variable 'name' with
15349 'agent_socket_name'.
15350 (gdb_agent_remove_socket): New.
15351
15352 2012-07-27 Yao Qi <yao@codesourcery.com>
15353
15354 * server.c (process_point_options): Stop at 'X' when parsing.
15355
15356 2012-07-19 Michael Eager <eager@eagercon.com>
15357
15358 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
15359 to hw_execute.
15360 * linux-x86-low.c (x86_insert_point, x86_remove_point):
15361 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
15362 hardware breakpoint.
15363
15364 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
15365
15366 * gdbserver/linux-low.c (initialize_low): Call
15367 linux_ptrace_init_warnings.
15368
15369 2012-07-02 Doug Evans <dje@google.com>
15370
15371 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
15372 pointer to int.
15373
15374 2012-07-02 Stan Shebs <stan@codesourcery.com>
15375
15376 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
15377 (ax.o): Add it to build rule.
15378 (ax-ipa.o): Ditto.
15379 (OBS): Add format.o.
15380 (IPA_OBS): Add format.o.
15381 * server.c (handle_query): Claim support for breakpoint commands.
15382 (process_point_options): Add command case.
15383 (process_serial_event): Leave running if there are printfs in
15384 effect.
15385 * mem-break.h (any_persistent_commands): Declare.
15386 (add_breakpoint_commands): Declare.
15387 (gdb_no_commands_at_breakpoint): Declare.
15388 (run_breakpoint_commands): Declare.
15389 * mem-break.c (struct point_command_list): New struct.
15390 (struct breakpoint): New field command_list.
15391 (any_persistent_commands): New function.
15392 (add_commands_to_breakpoint): New function.
15393 (add_breakpoint_commands): New function.
15394 (gdb_no_commands_at_breakpoint): New function.
15395 (run_breakpoint_commands): New function.
15396 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
15397 locally.
15398 * ax.c: Include format.h.
15399 (ax_printf): New function.
15400 (gdb_eval_agent_expr): Add printf opcode.
15401
15402 2012-06-13 Yao Qi <yao@codesourcery.com>
15403
15404 * server.c (start_inferior): Remove duplicated writes to fields
15405 'last_resume_kind' and 'last_status' of 'current_inferior'.
15406
15407 2012-06-12 Yao Qi <yao@codesourcery.com>
15408 Pedro Alves <palves@redhat.com>
15409
15410 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
15411 comment.
15412 * server.c (handle_v_cont): Extend comment.
15413
15414 2012-06-11 Yao Qi <yao@codesourcery.com>
15415
15416 * linux-low.c (linux_attach): Add 'static'.
15417
15418 2012-06-06 Yao Qi <yao@codesourcery.com>
15419
15420 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
15421
15422 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
15423
15424 Fix gcc -flto compilation warning.
15425 * server.c (main): Make variable multi_mode and attach volatile.
15426
15427 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15428
15429 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
15430 if the platform doesn't know about it.
15431
15432 2012-05-30 Jeff Kenton <jkenton@tilera.com>
15433
15434 * Makefile.in (SFILES): Add linux-tile-low.c.
15435 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
15436 * configure.srv: Handle tilegx-*-linux*.
15437 * linux-tile-low.c: New file.
15438
15439 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
15440
15441 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
15442
15443 2012-05-24 Pedro Alves <palves@redhat.com>
15444
15445 PR gdb/7205
15446
15447 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
15448
15449 2012-05-24 Pedro Alves <palves@redhat.com>
15450
15451 PR gdb/7205
15452
15453 Replace target_signal with gdb_signal throughout.
15454
15455 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
15456
15457 * linux-low.c (linux_store_registers): Avoid the copying sequence
15458 when no data has been retrieved by ptrace.
15459
15460 2012-05-22 Will Deacon <will.deacon@arm.com>
15461
15462 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
15463 Include asm/ptrace.h.
15464 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
15465 already defined.
15466
15467 2012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
15468
15469 * linux-low.c (linux_store_registers): Don't re-retrieve data
15470 with ptrace that has already been obtained from /proc. Always
15471 copy any data retrieved with ptrace to the buffer supplied.
15472
15473 2012-05-11 Yao Qi <yao@codesourcery.com>
15474 Pedro Alves <palves@redhat.com>
15475
15476 * linux-low.c (enum stopping_threads_kind): New.
15477 (stopping_threads): Change type to `enum stopping_threads_kind'.
15478 (handle_extended_wait): If stopping and suspending threads, leave
15479 the new_lwp suspended too.
15480 (linux_wait_for_event): Adjust.
15481 (stop_all_lwps): Set `stopping_threads' to
15482 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
15483 whether we're suspending threads or just stopping them. Assert no
15484 recursion happens.
15485
15486 2012-04-29 Yao Qi <yao@codesourcery.com>
15487
15488 * server.h: Move some code to ...
15489 * gdbthread.h: ... here. New.
15490 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
15491 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
15492 (nto-low.o, win32-low.o): Likewise.
15493 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
15494 * regcache.c, remote-utils.c, server.c: Likewise.
15495 * target.c, tracepoint.c, win32-low.c: Likewise.
15496
15497 2012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15498
15499 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
15500 (PTRACE_ARG4_TYPE): Likewise.
15501 (PTRACE_XFER_TYPE): Likewise.
15502 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
15503 ptrace to PTRACE_ARG3_TYPE.
15504 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
15505 (PTRACE_ARG4_TYPE): Likewise.
15506 (PTRACE_XFER_TYPE): Likewise.
15507 (linux_detach_one_lwp): Cast fourth argument of
15508 ptrace to long then PTRACE_ARG4_TYPE.
15509 (regsets_fetch_inferior_registers): Cast third argument of
15510 ptrace to long then PTRACE_ARG3_TYPE.
15511 (regsets_store_inferior_registers): Likewise.
15512
15513 2012-04-20 Pedro Alves <palves@redhat.com>
15514
15515 * configure: Regenerate.
15516
15517 2012-04-19 Pedro Alves <palves@redhat.com>
15518
15519 * Makefile.in (GNULIB_BUILDDIR): New.
15520 (LIBGNU, INCGNU, GNULIB_H): Adjust.
15521 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
15522 (all, install-only, uninstall, clean-info, all-lib, clean): No
15523 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
15524 (maintainer-clean realclean distclean): Use subdir_do.
15525 (subdir_do): New.
15526 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
15527 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
15528 * acinclude.m4: Include acx_configure_dir.m4.
15529 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
15530 calls. Call AC_PROG_RANLIB. Configure gnulib using
15531 ACX_CONFIGURE_DIR.
15532 (GNULIB): New.
15533 (GNULIB_STDINT_H): Adjust.
15534 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
15535 * gdbreplay.c: Include build-gnulib/config.h.
15536 * server.h: Likewise.
15537 * aclocal.m4: Regenerate.
15538 * config.in: Regenerate.
15539 * configure: Regenerate.
15540
15541 2012-04-19 Pedro Alves <palves@redhat.com>
15542
15543 * Makefile.in (LIBGNU, INCGNU): Adjust.
15544 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
15545 (all, install-only, uninstall, clean-info, all-lib, clean)
15546 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
15547 * configure.ac: Adjust AC_OUTPUT output.
15548 * aclocal.m4: Regenerate.
15549 * configure: Regenerate.
15550
15551 2012-04-19 Pedro Alves <palves@redhat.com>
15552
15553 * Makefile.in (generated_files): New.
15554 (server_h): Remove the explicit dependency on config.h, and depend
15555 on $generated_files.
15556
15557 2012-04-19 Pedro Alves <palves@redhat.com>
15558
15559 * Makefile.in (INCGNU): Add -Ignulib.
15560
15561 2012-04-19 Pedro Alves <palves@redhat.com>
15562
15563 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
15564 (INCGNU): ... this, and spell out -I here.
15565 (GNULIB_LIB): Rename to ...
15566 (LIBGNU): ... this.
15567 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
15568
15569 2012-04-19 Pedro Alves <palves@redhat.com>
15570
15571 * config.in: Regenerate.
15572
15573 2012-04-19 Pedro Alves <palves@redhat.com>
15574
15575 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
15576 * server.h (memmem): Remove declaration.
15577 * config.in: Regenerate.
15578 * configure: Regenerate.
15579
15580 2012-04-19 Yao Qi <yao@codesourcery.com>
15581
15582 * Makefile.in (SFILES): Add common/vec.c.
15583 (OBS): Add vec.o.
15584 (vec.o): New rule.
15585
15586 2012-04-19 Yao Qi <yao@codesourcery.com>
15587
15588 * remote-utils.c (prepare_resume_reply): Replace with macro
15589 target_core_of_thread.
15590 * server.c (handle_qxfer_threads_proper): Likewise.
15591 * target.h (traget_core_of_thread): New macro.
15592
15593 2012-04-18 Pedro Alves <palves@redhat.com>
15594
15595 * aclocal.m4: Regenerate.
15596 * configure: Regenerate.
15597
15598 2012-04-16 Yao Qi <yao@codesourcery.com>
15599
15600 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
15601 duplicated on address.
15602
15603 2012-04-16 Yao Qi <yao@codesourcery.com>
15604
15605 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
15606 (struct tracepoint_action_ops) <send>: New field.
15607 (m_tracepoint_action_send, r_tracepoint_action_send): New.
15608 (agent_expr_send, x_tracepoint_action_send): New.
15609 (l_tracepoint_action_send): New.
15610 (cmd_qtdp): Download and install tracepoint
15611 according to `use_agent'.
15612 (run_inferior_command): Add one more parameter `len'.
15613 Update callers.
15614 (tracepoint_send_agent): New.
15615 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
15616
15617 2012-04-16 Yao Qi <yao@codesourcery.com>
15618
15619 * tracepoint.c (download_tracepoints): Moved to ...
15620 (cmd_qtstart): ... here.
15621
15622 2012-04-14 Yao Qi <yao@codesourcery.com>
15623
15624 * tracepoint.c: Include inttypes.h.
15625 (struct collect_memory_action): Use sized types.
15626 (struct tracepoint): Likewise.
15627 (cmd_qtdp, stop_tracing): Update print specifiers.
15628 (cmd_qtp, response_tracepoint): Likewise.
15629 (collect_data_at_tracepoint): Likewise.
15630 (collect_data_at_step): Likewise.
15631
15632 2012-04-14 Yao Qi <yao@codesourcery.com>
15633
15634 Import gnulib module inttypes.
15635 * aclocal.m4, config.in, configure: Regenerated.
15636
15637 2012-04-14 Yao Qi <yao@codesourcery.com>
15638
15639 * Makefile.in (maintainer-clean, realclean, distclean): Remove
15640 Makefile and config.status at last.
15641
15642 2012-04-13 Yao Qi <yao@codesourcery.com>
15643
15644 * tracepoint.c: Include stdint.h unconditionally.
15645
15646 2012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15647
15648 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
15649 on BFD_HAVE_SYS_PROCFS_TYPE.
15650 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
15651 * configure: Regenerate.
15652 * config.in: Likewise.
15653
15654 2012-04-13 H.J. Lu <hongjiu.lu@intel.com>
15655
15656 * Makefile.in (clean): Also remove x32.c x32-linux.c
15657 x32-avx.c x32-avx-linux.c.
15658 (x32.o): New target.
15659 (x32.c): Likewise.
15660 (x32-linux.o): Likewise.
15661 (x32-linux.c): Likewise.
15662 (x32-avx.o): Likewise.
15663 (x32-avx.c): Likewise.
15664 (x32-avx-linux.o): Likewise.
15665 (x32-avx-linux.c): Likewise.
15666
15667 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
15668 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
15669 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
15670 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
15671 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
15672 i386/x32-avx-linux.xml.
15673
15674 * linux-x86-low.c (init_registers_x32_linux): New prototype.
15675 (init_registers_x32_avx_linux): Likwise.
15676 (x86_linux_update_xmltarget): Call init_registers_x32_linux
15677 or init_registers_x32_avx_linux if linux_is_elf64 is false.
15678
15679 2012-04-13 Pedro Alves <palves@redhat.com>
15680
15681 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
15682 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
15683 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
15684 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
15685 the sub-make.
15686
15687 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15688
15689 * linux-x86-low.c (compat_x32_clock_t): New.
15690 (compat_x32_siginfo_t): Likewise.
15691 (compat_x32_siginfo_from_siginfo): Likewise.
15692 (siginfo_from_compat_x32_siginfo): Likewise.
15693 (linux_is_elf64): Likewise.
15694 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
15695 and siginfo_from_compat_x32_siginfo for x32.
15696 (x86_arch_setup): Set linux_is_elf64.
15697
15698 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15699
15700 PR gdb/13969
15701 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
15702 e_machine field.
15703 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
15704 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
15705 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
15706 compatible with process.
15707
15708 2012-04-12 Yao Qi <yao@codesourcery.com>
15709
15710 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
15711 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
15712 (install-only, install-info, clean): Handle sub dir gnulib.
15713 (all-lib, am--refresh): New targets.
15714 (memmem.o): Remove target.
15715 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
15716 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
15717 (AC_REPLACE_FUNCS): Remove memmem.
15718 Invoke gl_INIT and AM_INIT_AUTOMAKE.
15719 (AC_OUTPUT): Generate Makefile in gnulib/.
15720 * aclocal.m4, config.in, configure: Regenerated.
15721
15722 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
15723
15724 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
15725
15726 2012-04-05 Pedro Alves <palves@redhat.com>
15727
15728 -Werror=strict-aliasing
15729
15730 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
15731 pointer.
15732
15733 2012-04-04 Pedro Alves <palves@redhat.com>
15734
15735 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
15736 (sparc_store_gregset_from_stack, sparc_store_gregset)
15737 (sparc_breakpoint_at): Fix formatting.
15738
15739 2012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15740
15741 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
15742 are available.
15743 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
15744 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
15745 * config.in: Regenerate.
15746 * configure: Likewise.
15747
15748 2012-03-29 Pedro Alves <palves@redhat.com>
15749
15750 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
15751 Correct ptrace arguments.
15752
15753 2012-03-28 Pedro Alves <palves@redhat.com>
15754
15755 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
15756 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
15757 (IA64_FR1_REGNUM): New defines.
15758 (ia64_fetch_register): New.
15759 (the_low_target): Install it.
15760 * linux-low.h (struct linux_target_ops) <fetch_register>: New
15761 field.
15762 * linux-low.c (linux_fetch_registers): Try the
15763 the_low_target.fetch_register hook first.
15764
15765 * linux-arm-low.c (the_low_target): Adjust.
15766 * linux-bfin-low.c (the_low_target): Adjust.
15767 * linux-cris-low.c (the_low_target): Adjust.
15768 * linux-crisv32-low.c (the_low_target): Adjust.
15769 * linux-m32r-low.c (the_low_target): Adjust.
15770 * linux-m68k-low.c (the_low_target): Adjust.
15771 * linux-mips-low.c (the_low_target): Adjust.
15772 * linux-ppc-low.c (the_low_target): Adjust.
15773 * linux-s390-low.c (the_low_target): Adjust.
15774 * linux-sh-low.c (the_low_target): Adjust.
15775 * linux-sparc-low.c (the_low_target): Adjust.
15776 * linux-tic6x-low.c (the_low_target): Adjust.
15777 * linux-x86-low.c (the_low_target): Adjust.
15778 * linux-xtensa-low.c (the_low_target): Adjust.
15779
15780 2012-03-26 Pedro Alves <palves@redhat.com>
15781
15782 * server.c (handle_qxfer_libraries): Don't bail early if
15783 the_target->qxfer_libraries_svr4 is not NULL.
15784
15785 2012-03-26 Pedro Alves <palves@redhat.com>
15786
15787 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
15788
15789 2012-03-23 Pedro Alves <palves@redhat.com>
15790
15791 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
15792 "library-list-svr4" element's start tag when the the DSO list is
15793 empty.
15794
15795 2012-03-23 Pedro Alves <palves@redhat.com>
15796
15797 * linux-low.c (read_one_ptr): Read the inferior's pointer through
15798 a variable whose type size is the same as the inferior's pointer
15799 size.
15800
15801 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
15802
15803 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
15804 struct siginfo.
15805 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
15806 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
15807 * linux-low.h: Include <signal.h>.
15808 (struct siginfo): Remove forward declaration.
15809 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
15810 struct siginfo.
15811
15812 2012-03-21 Mike Frysinger <vapier@gentoo.org>
15813
15814 * .gitignore: Ignore more files.
15815
15816 2012-03-19 Pedro Alves <palves@redhat.com>
15817 Jan Kratochvil <jan.kratochvil@redhat.com>
15818
15819 * server.c (cont_thread, general_thread): Add describing comments.
15820 (start_inferior): Clear `cont_thread'.
15821 (handle_v_cont): Don't set `cont_thread' if resuming all threads
15822 of a process.
15823
15824 2012-03-15 Yao Qi <yao@codesourcery.com>
15825
15826 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
15827 handling to ...
15828 (cmd_qtdp): ... here.
15829
15830 2012-03-15 Yao Qi <yao@codesourcery.com>
15831
15832 * tracepoint.c (struct tracepoint_action_ops): New.
15833 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
15834 (m_tracepoint_action_download): New.
15835 (r_tracepoint_action_download): New.
15836 (x_tracepoint_action_download): New.
15837 (l_tracepoint_action_download): New.
15838 (add_tracepoint_action): Install `action->ops' according type.
15839 (download_tracepoint_1): Move code `download' function pointer
15840 of various tracepoint_action_ops.
15841
15842 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15843
15844 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
15845 linux_ptrace_attach_warnings.
15846
15847 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15848
15849 * Makefile.in (linux-ptrace.o): New.
15850 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
15851 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
15852 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
15853 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
15854 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
15855 of these targets.
15856 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
15857
15858 2012-03-08 Yao Qi <yao@codesourcery.com>
15859 Pedro Alves <palves@redhat.com>
15860
15861 Fix PR server/13392.
15862 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
15863 offset of JMP insn.
15864 * tracepoint.c (remove_tracepoint): New.
15865 (cmd_qtdp): Call remove_tracepoint when failed to install.
15866
15867 2012-03-07 Pedro Alves <palves@redhat.com>
15868
15869 * linux-low.c (get_detach_signal): New.
15870 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
15871 Pass on pending signals to PTRACE_DETACH. Check the result of the
15872 ptrace call.
15873 * server.c (program_signals, program_signals_p): New.
15874 (handle_general_set): Handle QProgramSignals.
15875 * server.h (program_signals, program_signals_p): Declare.
15876
15877 2012-03-05 Pedro Alves <palves@redhat.com>
15878 Jan Kratochvil <jan.kratochvil@redhat.com>
15879
15880 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
15881 New comment why.
15882
15883 2012-03-03 Yao Qi <yao@codesourcery.com>
15884
15885 * tracepoint.c (tracepoint_look_up_symbols): Update call to
15886 agent_look_up_symbols.
15887
15888 2012-03-03 Yao Qi <yao@codesourcery.com>
15889
15890 * Makefile.in (linux-low.o): Keep dependence on agent.h.
15891 (linux-x86-low.o): Likewise.
15892 * server.h: Remove in_process_agent_loaded.
15893 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
15894 common/agent.c.
15895 Update callers.
15896
15897 2012-03-03 Yao Qi <yao@codesourcery.com>
15898
15899 * tracepoint.c (gdb_agent_capability): New global.
15900 (in_process_agent_loaded_ust): Renamed to
15901 `in_process_agent_supports_ust'.
15902 Update callers.
15903 (in_process_agent_supports_ust): Call agent_capability_check.
15904 (clear_installed_tracepoints): Assert that agent supports
15905 agent.
15906
15907 2012-03-03 Yao Qi <yao@codesourcery.com>
15908
15909 * linux-low.c (linux_supports_agent): New.
15910 (linux_target_ops): Initialize field `supports_agent' with
15911 linux_supports_agent.
15912 * target.h (struct target_ops) <supports_agent>: New.
15913 (target_supports_agent): New macro.
15914 * server.c (handle_general_set): Handle packet 'QAgent'.
15915 (handle_query): Send `QAgent+'.
15916 * Makefile.in (server.o): Depends on agent.h.
15917
15918 2012-03-03 Yao Qi <yao@codesourcery.com>
15919
15920 * Makefile.in (OBS): Add agent.o.
15921 Add new rule for agent.o.
15922 Track dependence of tracepoint.c on agent.h.
15923 * tracepoint.c (run_inferior_command_1):
15924 (run_inferior_command): Call agent_run_command.
15925 (gdb_ust_connect_sync_socket): Deleted. Move it to
15926 common/agent.c.
15927 (resume_thread, stop_thread): Likewise.
15928 (gdb_ust_socket_init): Renamed to ...
15929 (gdb_agent_socket_init): ... New.
15930 (gdb_ust_thread): Renamed to ...
15931 (gdb_agent_helper_thread): ... New.
15932 (gdb_ust_init): Move some code to ...
15933 (gdb_agent_init): ... here. New.
15934 [HAVE_UST]: Call gdb_ust_init.
15935 (initialize_tracepoint_ftlib): Call gdb_agent_init.
15936 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
15937 * config.in, configure: Regenerated.
15938
15939 2012-03-02 Pedro Alves <palves@redhat.com>
15940
15941 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
15942 * linux-low.c (struct simple_pid_list): New.
15943 (stopped_pids): New a struct simple_pid_list pointer.
15944 (add_to_pid_list, pull_pid_from_list): New.
15945 (handle_extended_wait): Don't assume the first signal new children
15946 report is SIGSTOP. Adjust call to pull_pid_from_list.
15947 (linux_wait_for_lwp): Adjust.
15948
15949 2012-03-02 Yao Qi <yao@codesourcery.com>
15950
15951 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
15952 debug log.
15953
15954 2012-03-02 Yao Qi <yao@codesourcery.com>
15955
15956 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
15957 `stop_pc' and `tpoint'. Update caller.
15958
15959 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
15960
15961 * linux-low.h (linux_target_ops): Add regset_bitmap member.
15962 * linux-low.c (use_linux_regsets): New macro.
15963 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
15964 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
15965 (linux_register_in_regsets): New function.
15966 (usr_fetch_inferior_registers): Skip registers covered by
15967 regsets.
15968 (usr_store_inferior_registers): Likewise.
15969 (usr_fetch_inferior_registers): New macro.
15970 (usr_store_inferior_registers): Likewise.
15971 (linux_fetch_registers): Handle mixed regset/non-regset targets.
15972 (linux_store_registers): Likewise.
15973 * linux-mips-low.c (init_registers_mips_dsp_linux): New
15974 prototype.
15975 (init_registers_mips64_dsp_linux): Likewise.
15976 (init_registers_mips_linux): New macro.
15977 (init_registers_mips_dsp_linux): Likewise.
15978 (mips_dsp_num_regs): Likewise.
15979 (DSP_BASE, DSP_CONTROL): New fallback macros.
15980 (mips_base_regs): New macro.
15981 (mips_regmap): Use it. Fix the size.
15982 (mips_dsp_regmap): New variable.
15983 (mips_dsp_regset_bitmap): Likewise.
15984 (mips_arch_setup): New function.
15985 (mips_cannot_fetch_register): Use the_low_target.regmap rather
15986 than mips_regmap.
15987 (mips_cannot_store_register): Likewise.
15988 (the_low_target): Update .arch_setup, .num_regs and .regmap
15989 initializers. Add .regset_bitmap initializer.
15990 * linux-arm-low.c (the_low_target): Add .regset_bitmap
15991 initializer.
15992 * linux-bfin-low.c (the_low_target): Likewise.
15993 * linux-cris-low.c (the_low_target): Likewise.
15994 * linux-crisv32-low.c (the_low_target): Likewise.
15995 * linux-ia64-low.c (the_low_target): Likewise.
15996 * linux-m32r-low.c (the_low_target): Likewise.
15997 * linux-m68k-low.c (the_low_target): Likewise.
15998 * linux-ppc-low.c (the_low_target): Likewise.
15999 * linux-s390-low.c (the_low_target): Likewise.
16000 * linux-sh-low.c (the_low_target): Likewise.
16001 * linux-sparc-low.c (the_low_target): Likewise.
16002 * linux-tic6x-low.c (the_low_target): Likewise.
16003 * linux-x86-low.c (the_low_target): Likewise.
16004 * linux-xtensa-low.c (the_low_target): Likewise.
16005 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
16006 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
16007 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
16008 srv_xmlfiles.
16009 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
16010 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
16011
16012 2012-02-29 Yao Qi <yao@codesourcery.com>
16013 Pedro Alves <palves@redhat.com>
16014
16015 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
16016 `step_over_finished' is true.
16017
16018 2012-02-27 Pedro Alves <palves@redhat.com>
16019
16020 * linux-low.c (pid_is_stopped): Delete, moved to common/.
16021 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
16022
16023 2012-02-27 Pedro Alves <palves@redhat.com>
16024
16025 PR server/9684
16026 * linux-low.c (pid_is_stopped): New.
16027 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
16028
16029 2012-02-25 Luis Machado <lgustavo@codesourcery.com>
16030
16031 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
16032 of conditions.
16033
16034 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
16035
16036 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
16037
16038 2012-02-24 Luis Machado <lgustavo@codesourcery>
16039
16040 * server.c (handle_query): Advertise support for target-side
16041 breakpoint condition evaluation.
16042 (process_point_options): New function.
16043 (process_serial_event): When inserting a breakpoint, check for
16044 a target-side condition that should be evaluated.
16045
16046 * mem-break.c: Include regcache.h and ax.h.
16047 (point_cond_list_t): New data structure.
16048 (breakpoint) <cond_list>: New field.
16049 (find_gdb_breakpoint_at): Make non-static.
16050 (delete_gdb_breakpoint_at): Clear any target-side
16051 conditions.
16052 (clear_gdb_breakpoint_conditions): New function.
16053 (add_condition_to_breakpoint): Likewise.
16054 (add_breakpoint_condition): Likewise.
16055 (gdb_condition_true_at_breakpoint): Likewise.
16056 (gdb_breakpoint_here): Return result directly instead
16057 of going through a local variable.
16058
16059 * mem-break.h (find_gdb_breakpoint_at): New prototype.
16060 (clear_gdb_breakpoint_conditions): Likewise.
16061 (add_breakpoint_condition): Likewise.
16062 (gdb_condition_true_at_breakpoint): Likewise.
16063
16064 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
16065 (need_step_over_p): Take target-side breakpoint condition into
16066 consideration.
16067
16068 2012-02-24 Luis Machado <lgustavo@codesourcery>
16069
16070 * server.h: Include tracepoint.h.
16071 (agent_mem_read, agent_get_trace_state_variable_value,
16072 agent_set_trace_state_variable_value,
16073 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
16074 get_set_tsv_func_addr): New prototypes.
16075
16076 * ax.h: New include file.
16077 * ax.c: New source file.
16078
16079 * tracepoint.c: Include ax.h.
16080 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
16081 agent_expr, eval_result_type): Move to ax.h.
16082 (parse_agent_expr): Rename to ...
16083 (gdb_parse_agent_expr): ... this, make it non-static and move
16084 to ax.h.
16085 (unparse_agent_expr) Rename to ...
16086 (gdb_unparse_agent_expr): ... this, make it non-static and move
16087 to ax.h.
16088 (eval_agent_expr): Rename to ...
16089 (eval_tracepoint_agent_expr): ... this.
16090 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
16091 forward declarations.
16092 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
16093 (agent_get_trace_state_variable_value): New function.
16094 (agent_set_trace_state_variable_value): New function.
16095 (cmd_qtdp): Call gdb_parse_agent_expr (...).
16096 (response_tracepoint): Call gdb_unparse_agent_expr (...).
16097 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
16098 (condition_true_at_tracepoint): Likewise.
16099 (parse_agent_expr): Rename to ...
16100 (gdb_parse_agent_expr): ... this and move to ax.c.
16101 (unparse_agent_expr): Rename to ...
16102 (gdb_unparse_agent_expr): ... this and move to ax.c.
16103 (gdb_agent_op_name): Move to ax.c.
16104 (eval_agent_expr): Rename to ...
16105 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
16106 and move to ax.c.
16107 (eval_tracepoint_agent_expr): New function.
16108 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
16109 non-static.
16110 (current_insn_ptr, emit_error, struct bytecode_address): Move to
16111 ax.c.
16112 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
16113 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
16114 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
16115 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
16116 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
16117 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
16118 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
16119 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
16120 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
16121 (compile_bytecodes): Remove forward declaration.
16122 (is_goto_target): Move to ax.c.
16123 (compile_bytecodes): Move to ax.c and call
16124 agent_get_trace_state_variable_value (...) and
16125 agent_set_trace_state_variable_value (...).
16126
16127 * Makefile.in: Update ax.c and IPA dependencies.
16128
16129 2012-02-24 Pedro Alves <palves@redhat.com>
16130
16131 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
16132 (cmd_bigqtbuffer_circular): ... this. Only handle
16133 'QTBuffer:circular:'.
16134 (handle_tracepoint_general_set): Adjust.
16135
16136 2012-02-16 Yao Qi <yao@codesourcery.com>
16137
16138 * inferiors.c: Move code to ...
16139 * dll.c: .... here. New.
16140 * server.h: Declare clear_dlls.
16141 * Makefile.in (SFILES): Add dll.c.
16142 (OBS): Add dll.o
16143 (dll.o): New rule.
16144
16145 2012-02-11 Yao Qi <yao@codesourcery.com>
16146
16147 * server.c: (handle_monitor_command): Add a new parameter
16148 `own_buf'.
16149 (handle_query): Update caller.
16150
16151 2012-02-09 Joel Brobecker <brobecker@adacore.com>
16152
16153 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
16154 * configure, config.in: Regenerate.
16155 * hostio.c: Provide an alternate implementation if HAVE_READLINK
16156 is not defined.
16157
16158 2012-02-02 Pedro Alves <palves@redhat.com>
16159
16160 Try SIGKILL first, then PTRACE_KILL.
16161 * linux-low.c (linux_kill_one_lwp): New.
16162 (linux_kill_one_lwp): Rename to ...
16163 (kill_one_lwp_callback): ... this. Use the new
16164 linux_kill_one_lwp.
16165
16166 2012-02-02 Pedro Alves <palves@redhat.com>
16167
16168 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
16169 inferior.
16170
16171 2012-01-27 Pedro Alves <palves@redhat.com>
16172
16173 * linux-low.c (linux_child_pid_to_exec_file): Delete.
16174 (elf_64_file_p): Make static.
16175 (linux_pid_exe_is_elf_64_file): New.
16176 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
16177 Delete declarations.
16178 (linux_pid_exe_is_elf_64_file): Declare.
16179 * linux-x86-low.c (x86_arch_setup): Use
16180 linux_pid_exe_is_elf_64_file.
16181
16182 2012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
16183
16184 * linux-low.c (linux_wait_for_event_1): Rename to ...
16185 (linux_wait_for_event): ... here and merge it with former
16186 linux_wait_for_event - new variable wait_ptid, use it.
16187 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
16188
16189 2012-01-23 Pedro Alves <palves@redhat.com>
16190
16191 * server.c (main): Avoid yet another case of infinite loop while
16192 detaching/killing after a longjmp.
16193
16194 2012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16195
16196 Code cleanup.
16197 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
16198
16199 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
16200
16201 * hostio.c (handle_readlink): New function.
16202 (handle_vFile): Call it to handle "vFile:readlink" packets.
16203
16204 2012-01-20 Pedro Alves <palves@redhat.com>
16205 Ulrich Weigand <ulrich.weigand@linaro.org>
16206
16207 * server.c (handle_v_requests): Only support vAttach and vRun to
16208 start multiple processes when in extended protocol mode.
16209
16210 2012-01-17 Pedro Alves <palves@redhat.com>
16211
16212 * tracepoint.c (initialize_tracepoint): Use mmap instead of
16213 memalign plus mprotect to allocate the scratch buffer.
16214
16215 2012-01-13 Pedro Alves <palves@redhat.com>
16216
16217 * server.c (attach_inferior): Clear `cont_thread'.
16218
16219 2012-01-13 Pedro Alves <palves@redhat.com>
16220
16221 * server.c (main): Avoid infinite loop while detaching/killing
16222 after a longjmp.
16223
16224 2012-01-09 Doug Evans <dje@google.com>
16225
16226 * server.c (start_inferior): Set last_ptid in --wrapper case.
16227
16228 2012-01-06 Yao Qi <yao@codesourcery.com>
16229
16230 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
16231 defined.
16232 [IN_PROCESS_AGENT] (debug_agent): New global variable.
16233
16234 2012-01-04 Yao Qi <yao@codesourcery.com>
16235
16236 * tracepoint.c (cmd_qtdp): Print debug message
16237 for static tracepoint.
16238
16239 2012-01-04 Yao Qi <yao@codesourcery.com>
16240
16241 * tracepoint.c (trace_vdebug): Differentiate debug message
16242 between gdbserver and IPA.
16243
16244 2012-01-03 Yao Qi <yao@codesourcery.com>
16245
16246 * tracepoint.c (tracepoint_was_hit): Don't collect for
16247 static tracepoint.
16248
16249 2012-01-02 Joel Brobecker <brobecker@adacore.com>
16250
16251 * terminal.h: Reformat copyright header.
16252
16253 2012-01-02 Joel Brobecker <brobecker@adacore.com>
16254
16255 * server.c (gdbserver_version): Update copyright year.
16256 * gdbreplay.c (gdbreplay_version): Likewise.
16257
16258 2011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
16259
16260 * linux-low.c (linux_create_inferior): Put empty if clause for write.
16261
16262 Revert:
16263 2011-12-18 Hui Zhu <teawater@gmail.com>
16264 * linux-low.c (linux_create_inferior): Save return value to ret.
16265
16266 2011-12-18 Hui Zhu <teawater@gmail.com>
16267
16268 * linux-low.c (linux_create_inferior): Save return value to ret.
16269
16270 2011-12-16 Doug Evans <dje@google.com>
16271
16272 * linux-low.c (linux_create_inferior): If stdio connection,
16273 redirect stdin from /dev/null, stdout to stderr.
16274 * remote-utils.c (remote_is_stdio): New static global.
16275 (remote_connection_is_stdio): New function.
16276 (remote_prepare): Handle stdio connection.
16277 (remote_open): Ditto.
16278 (remote_close): Don't close stdin for stdio connections.
16279 (read_prim,write_prim): New functions. Replace all calls to
16280 read/write to these.
16281 * server.c (main): Watch for "-" argument. Move call to
16282 remote_prepare before start_inferior.
16283 * server.h (STDIO_CONNECTION_NAME): New macro.
16284 (remote_connection_is_stdio): Declare.
16285
16286 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
16287 in debugging output.
16288
16289 2011-12-15 Yao Qi <yao@codesourcery.com>
16290
16291 * tracepoint.c: Include sys/syscall.h.
16292 (gdb_ust_thread): Remove preprocessor conditional.
16293
16294 2011-12-14 Pedro Alves <pedro@codesourcery.com>
16295
16296 * linux-low.c (linux_detach_one_lwp): Call
16297 the_low_target.prepare_to_resume before detaching.
16298
16299 2011-12-14 Yao Qi <yao@codesourcery.com>
16300
16301 * tracepoint.c (gdb_ust_thread): Don't ignore return value
16302 of write.
16303
16304 2011-12-14 Yao Qi <yao@codesourcery.com>
16305
16306 * i386-low.c (i386_low_stopped_data_address): Initialize local
16307 variable `control'.
16308
16309 2011-12-13 Pedro Alves <pedro@codesourcery.com>
16310
16311 PR remote/13492
16312
16313 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
16314 DR_CONTROL unless necessary. Extend comments.
16315 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
16316 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
16317
16318 2011-12-13 Yao Qi <yao@codesourcery.com>
16319
16320 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
16321 macros.
16322 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
16323
16324 2011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
16325
16326 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
16327 Print new debug message for such case.
16328
16329 2011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
16330
16331 Fix overlapping memcpy.
16332 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
16333 the read_inferior_memory transfer.
16334 (delete_fast_tracepoint_jump): New variable buf. Use it for the
16335 write_inferior_memory transfer.
16336 (set_fast_tracepoint_jump): New variable buf. Use it for the
16337 read_inferior_memory and write_inferior_memory transfers.
16338 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
16339 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
16340 Use it for the write_inferior_memory transfer.
16341 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
16342 buffers.
16343
16344 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
16345
16346 * linux-low.c (fetch_register, store_register): Make code
16347 consistent, fix formatting.
16348
16349 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
16350
16351 * linux-low.c (usr_store_inferior_registers): Factor out code
16352 to handle individual registers into...
16353 (store_register): ... this new function.
16354
16355 2011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
16356
16357 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
16358 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
16359 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
16360 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
16361 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
16362 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
16363 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
16364 (srv_xmlfiles): Add new XML files.
16365
16366 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
16367 and <sys/uio.h>.
16368 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
16369 (init_registers_s390_linux32v1): Add prototype.
16370 (init_registers_s390_linux32v2): Likewise.
16371 (init_registers_s390_linux64v1): Likewise.
16372 (init_registers_s390_linux64v2): Likewise.
16373 (init_registers_s390x_linux64v1): Likewise.
16374 (init_registers_s390x_linux64v2): Likewise.
16375 (s390_num_regs): Increment to 52.
16376 (s390_regmap): Add orig_r2 register.
16377 (s390_num_regs_3264): Increment to 68.
16378 (s390_regmap_3264): Add orig_r2 register.
16379 (s390_collect_ptrace_register): Handle orig_r2 register.
16380 (s390_supply_ptrace_register): Likewise.
16381 (s390_fill_last_break): New function.
16382 (s390_store_last_break): Likewise.
16383 (s390_fill_system_call): New function.
16384 (s390_store_system_call): Likewise.
16385 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
16386 register sets.
16387 (s390_check_regset): New function.
16388 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
16389 NT_S390_SYSTEM_CALL regsets and use appropriate description.
16390 Update target_regsets for available register sets.
16391
16392 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
16393 Jan Kratochvil <jan.kratochvil@redhat.com>
16394
16395 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
16396 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
16397 New.
16398 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
16399 * linux-low.h (struct process_info_private): New member r_debug.
16400 * server.c (handle_qxfer_libraries): Call
16401 the_target->qxfer_libraries_svr4.
16402 (handle_qxfer_libraries_svr4): New function.
16403 (qxfer_packets): New entry "libraries-svr4".
16404 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
16405 * target.h (struct target_ops): New member qxfer_libraries_svr4.
16406 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
16407 PACKET_qXfer_libraries_svr4.
16408
16409 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
16410
16411 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
16412 PSW address/mask between 8-byte and 16-byte formats.
16413 (s390_supply_ptrace_register): Likewise.
16414 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
16415 basic addressing mode bit.
16416
16417 2011-11-24 Stan Shebs <stan@codesourcery.com>
16418
16419 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
16420
16421 2011-11-17 Stan Shebs <stan@codesourcery.com>
16422
16423 * tracepoint.c (struct tracepoint): New field traceframe_usage.
16424 (tracing_start_time): New global.
16425 (tracing_stop_time): New global.
16426 (tracing_user_name): New global.
16427 (tracing_notes): New global.
16428 (tracing_stop_note): New global.
16429 (cmd_qtstart): Set traceframe_usage, start_time.
16430 (stop_tracing): Set stop_time.
16431 (cmd_qtstatus): Report additional status.
16432 (cmd_qtp): New function.
16433 (handle_tracepoint_query): Call it.
16434 (cmd_qtnotes): New function.
16435 (handle_tracepoint_general_set): Call it.
16436 (get_timestamp): Rename from tsv_get_timestamp.
16437
16438 2011-11-14 Stan Shebs <stan@codesourcery.com>
16439 Kwok Cheung Yeung <kcy@codesourcery.com>
16440
16441 * linux-x86-low.c (small_jump_insn): New.
16442 (i386_install_fast_tracepoint_jump_pad): Add arguments for
16443 trampoline and error message, build a trampoline and issue a small
16444 jump instruction to it.
16445 (x86_install_fast_tracepoint_jump_pad): Add arguments for
16446 trampoline and error message.
16447 (x86_get_min_fast_tracepoint_insn_len): New.
16448 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
16449 * linux-low.h (struct linux_target_ops): Add arguments to
16450 install_fast_tracepoint_jump_pad operation, add new operation.
16451 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
16452 arguments.
16453 (linux_get_min_fast_tracepoint_insn_len): New function.
16454 (linux_target_op): Add new operation.
16455 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
16456 (gdb_trampoline_buffer_end): Ditto.
16457 (gdb_trampoline_buffer_error): Ditto.
16458 (struct ipa_sym_addresses): Add fields for new IPA variables.
16459 (symbol_list): Add entries for new IPA variables.
16460 (struct tracepoint): Add fields to hold the address range of the
16461 trampoline used by the tracepoint.
16462 (trampoline_buffer_head): New static variable.
16463 (trampoline_buffer_tail): Ditto.
16464 (claim_trampoline_space): New function.
16465 (have_fast_tracepoint_trampoline_buffer): New function.
16466 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
16467 structure.
16468 (install_fast_tracepoint): Ditto, also add error buffer argument.
16469 (cmd_qtminftpilen): New function.
16470 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
16471 (fast_tracepoint_from_trampoline_address): New function.
16472 (fast_tracepoint_collecting): Handle trampoline as part of jump
16473 pad space.
16474 (set_trampoline_buffer_space): New function.
16475 (initialize_tracepoint): Initialize new IPA variables.
16476 * target.h (struct target_ops): Add arguments to
16477 install_fast_tracepoint_jump_pad operation, add new
16478 get_min_fast_tracepoint_insn_len operation.
16479 (target_get_min_fast_tracepoint_insn_len): New.
16480 (install_fast_tracepoint_jump_pad): Add arguments.
16481 * server.h (IPA_BUFSIZ): Define.
16482 * linux-i386-ipa.c: Include extra header files.
16483 (initialize_fast_tracepoint_trampoline_buffer): New function.
16484 (initialize_low_tracepoint): Call it.
16485 * server.h (set_trampoline_buffer_space): Declare.
16486 (claim_trampoline_space): Ditto.
16487 (have_fast_tracepoint_trampoline_buffer): Ditto.
16488
16489 2011-11-14 Yao Qi <yao@codesourcery.com>
16490
16491 * server.c (handle_query): Handle InstallInTrace for qSupported.
16492 * tracepoint.c (add_tracepoint): Sort list.
16493 (install_tracepoint, download_tracepoint): New.
16494 (cmd_qtdp): Call them to install and download tracepoints.
16495 (sort_tracepoints): Removed.
16496 (cmd_qtstart): Update.
16497
16498 2011-11-14 Yao Qi <yao@codesourcery.com>
16499
16500 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
16501 * mem-break.h: Declare.
16502 * tracepoint.c (cmd_qtstart): Move some code to ...
16503 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
16504 New.
16505 (download_tracepoints): Move some code to ...
16506 (download_tracepoint_1): ... here. New.
16507
16508 2011-11-08 Yao Qi <yao@codesourcery.com>
16509
16510 * remote-utils.c (relocate_instruction): A comment fix.
16511
16512 2011-11-07 Joel Brobecker <brobecker@adacore.com>
16513
16514 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
16515 (i386_dr_low_get_control, i386_dr_low_get_status): Use
16516 dr_status_mirror and dr_control_mirror from debug_reg_state.
16517 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
16518 (i386_initial_stuff): Remove use of deleted globals.
16519 (i386_get_thread_context, i386_set_thread_context,
16520 i386_thread_added): Use dr_status_mirror and dr_control_mirror
16521 from debug_reg_state.
16522
16523 2011-11-05 Yao Qi <yao@codesourcery.com>
16524
16525 * tracepoint.c (gdb_collect): Loop over tracepoints of same
16526 address as TPOINT's.
16527
16528 2011-11-02 Stan Shebs <stan@codesourcery.com>
16529
16530 * tracepoint.c (agent_mem_read_string): New function.
16531 (eval_agent_expr): Call it for tracenz.
16532 * server.c (handle_query): Report support for tracenz.
16533
16534 2011-11-02 Yao Qi <yao@codesourcery.com>
16535
16536 * tracepoint.c (cmd_qtstart): Remove unused local variables.
16537
16538 2011-11-02 Yao Qi <yao@codesourcery.com>
16539
16540 * target.h: Fix a typo in comment.
16541
16542 2011-10-31 Pedro Alves <pedro@codesourcery.com>
16543
16544 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
16545 clobber the breakpoints' shadows with fast tracepoint jumps.
16546 * mem-break.h (check_mem_write): Add `myaddr' parameter.
16547 * target.c (write_inferior_memory): Also pass MYADDR down to
16548 check_mem_write.
16549
16550 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
16551
16552 * configure.ac: Check support for personality routine.
16553 * configure: Regenerate.
16554 * config.in: Likewise.
16555 * linux-low.c: Include <sys/personality.h>.
16556 Define ADDR_NO_RANDOMIZE if necessary.
16557 (linux_create_inferior): Disable address space randomization when
16558 forking inferior, if requested.
16559 (linux_supports_disable_randomization): New function.
16560 (linux_target_ops): Install it.
16561 * server.h (disable_randomization): Declare.
16562 * server.c (disable_randomization): New global variable.
16563 (handle_general_set): Handle QDisableRandomization.
16564 (handle_query): Likewise for qSupported.
16565 (main): Support --disable-randomization and --no-disable-randomization
16566 command line arguments.
16567 * target.h (struct target_ops): Add supports_disable_randomization.
16568 (target_supports_disable_randomization): New macro.
16569
16570 2011-09-29 Mike Frysinger <vapier@gentoo.org>
16571
16572 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
16573 ifdef check.
16574 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
16575 [!PT_GETDSBT] (target_loadmap): New definition.
16576 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
16577 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
16578 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
16579 and PT_GETDSBT to LINUX_LOADMAP.
16580 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
16581 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
16582
16583 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
16584
16585 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
16586 (arm_linux_hwbp_cap): New static variable.
16587 (arm_linux_get_hwbp_cap): Replace by ...
16588 (arm_linux_init_hwbp_cap): ... this new function.
16589 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
16590 (arm_linux_get_hw_watchpoint_count): Likewise.
16591 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16592 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
16593 (arm_prepare_to_resume): Use perror_with_name instead of error.
16594
16595 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
16596
16597 * linux-arm-low.c: Include <signal.h>.
16598 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
16599 (struct arm_linux_hwbp_cap): New data type.
16600 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
16601 (struct arm_linux_hw_breakpoint): New data type.
16602 (MAX_BPTS, MAX_WPTS): Define.
16603 (struct arch_process_info, struct arch_lwp_info): New data types.
16604 (arm_linux_get_hwbp_cap): New function.
16605 (arm_linux_get_hw_breakpoint_count): Likewise.
16606 (arm_linux_get_hw_watchpoint_count): Likewise.
16607 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16608 (arm_hwbp_control_initialize): Likewise.
16609 (arm_hwbp_control_is_enabled): Likewise.
16610 (arm_hwbp_control_is_initialized): Likewise.
16611 (arm_hwbp_control_disable): Likewise.
16612 (arm_linux_hw_breakpoint_equal): Likewise.
16613 (arm_linux_hw_point_initialize): Likewise.
16614 (struct update_registers_data): New data structure.
16615 (update_registers_callback: New function.
16616 (arm_insert_point): Likewise.
16617 (arm_remove_point): Likewise.
16618 (arm_stopped_by_watchpoint): Likewise.
16619 (arm_stopped_data_address): Likewise.
16620 (arm_new_process): Likewise.
16621 (arm_new_thread): Likewise.
16622 (arm_prepare_to_resume): Likewise.
16623 (the_low_target): Register arm_insert_point, arm_remove_point,
16624 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
16625 arm_new_thread, and arm_prepare_to_resume.
16626
16627 2011-09-15 Stan Shebs <stan@codesourcery.com>
16628
16629 * server.h (struct emit_ops): Add compare-goto fields.
16630 * tracepoint.c (gdb_agent_op_sizes): New table.
16631 (emit_eq_goto): New function.
16632 (emit_ne_goto): New function.
16633 (emit_lt_goto): New function.
16634 (emit_le_goto): New function.
16635 (emit_gt_goto): New function.
16636 (emit_ge_goto): New function.
16637 (is_goto_target): New function.
16638 (compile_bytecodes): Recognize special cases of compare-goto
16639 combinations and call specialized emitters for them.
16640 * linux-x86-low.c (amd64_emit_eq_goto): New function.
16641 (amd64_emit_ne_goto): New function.
16642 (amd64_emit_lt_goto): New function.
16643 (amd64_emit_le_goto): New function.
16644 (amd64_emit_gt_goto): New function.
16645 (amd64_emit_ge_goto): New function.
16646 (amd64_emit_ops): Add the new functions.
16647 (i386_emit_eq_goto): New function.
16648 (i386_emit_ne_goto): New function.
16649 (i386_emit_lt_goto): New function.
16650 (i386_emit_le_goto): New function.
16651 (i386_emit_gt_goto): New function.
16652 (i386_emit_ge_goto): New function.
16653 (i386_emit_ops): Add the new functions.
16654
16655 2011-09-08 Stan Shebs <stan@codesourcery.com>
16656
16657 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
16658 (i386_emit_epilogue): Restore %ebx.
16659
16660 2011-08-31 Jie Zhang <jzhang918@gmail.com>
16661
16662 * server.c (step_thread): Remove definition.
16663 (process_serial_event): Don't handle Hs.
16664 * server.h (step_thread): Remove declaration.
16665 * target.c (set_desired_inferior): Remove use of step_thread.
16666
16667 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
16668
16669 * linux-low.c: Include linux-procfs.h.
16670 (linux_attach_lwp_1): Update comments.
16671 (linux_attach): Scan for existing threads when attaching to a
16672 process that is the tgid.
16673 * Makefile.in: Update dependencies.
16674
16675 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
16676
16677 * configure.srv: Add linux-procfs.o dependencies.
16678
16679 2011-08-14 Yao Qi <yao@codesourcery.com>
16680
16681 * target.h (struct target_ops): Fix indent.
16682 * win32-low.c (win32_target_ops): Fix comment.
16683
16684 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
16685 Yao Qi <yao@codesourcery.com>
16686
16687 * Makefile.in (clean): Remove tic6x-*.c files.
16688 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
16689 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
16690 (tic6x-c64xp-linux.c): Likewise.
16691 * configure.srv: Add support for tic6x-*-uclinux.
16692 * linux-tic6x-low.c: New.
16693 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
16694
16695 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
16696 Yao Qi <yao@codesourcery.com>
16697
16698 * target.h (struct target_ops): Add read_loadmap.
16699 * linux-low.c (struct target_loadseg): New type.
16700 (struct target_loadmap): New type.
16701 (linux_read_loadmap): New function.
16702 (linux_target_ops): Add linux_read_loadmap.
16703 * server.c (handle_query): Support qXfer:fdpic:read packet.
16704 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
16705 to NULL.
16706
16707 2011-08-05 Eli Zaretskii <eliz@gnu.org>
16708
16709 * win32-low.c: Include <stdint.h>.
16710
16711 2011-07-22 Pedro Alves <pedro@codesourcery.com>
16712
16713 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
16714 to the inferior here.
16715 (i386_remove_aligned_watchpoint): Ditto.
16716 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
16717 fit part of the watchpoint in the debug registers.
16718 (i386_update_inferior_debug_regs): New.
16719 (i386_low_insert_watchpoint): Work on a local mirror of the debug
16720 registers, and only update the inferior on success.
16721 (i386_low_remove_watchpoint): Ditto.
16722
16723 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
16724
16725 * linux-low.c (compare_ints, unique, list_threads, show_process,
16726 linux_core_of_thread): Delete.
16727 (linux_target_ops): Change linux_core_of_thread to
16728 linux_common_core_of_thread.
16729 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
16730 * utils.c (malloc_failure): Change type of argument.
16731 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
16732 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
16733 common/linux-osdata.c, common/ptid.c and common/buffer.c.
16734 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
16735 (IPA_OBJS): Add common-utils-ipa.o.
16736 (ptid_h, linux_osdata_h): New macros.
16737 (server_h): Add common/common-utils.h, common/xml-utils.h,
16738 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
16739 common/ptid.h.
16740 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
16741 ptid.o, buffer.o): New rules.
16742 (linux-low.o): Add common/linux-osdata.h as a dependency.
16743 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
16744 * configure.ac: Add AC_HEADER_DIRENT check.
16745 * config.in: Regenerate.
16746 * configure: Regenerate.
16747 * remote-utils.c (xml_escape_text): Delete.
16748 (buffer_grow, buffer_free, buffer_init, buffer_finish,
16749 buffer_xml_printf): Move to common/buffer.c.
16750 * server.c (main): Remove call to initialize_inferiors.
16751 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
16752 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
16753 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
16754 internal_error, gdb_assert, gdb_assert_fail): Delete.
16755 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
16756 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
16757 common/buffer.h.
16758 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
16759 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
16760 initialize_inferiors): Delete.
16761
16762 2011-07-20 Pedro Alves <pedro@codesourcery.com>
16763
16764 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
16765 symbol error.
16766
16767 2011-05-31 Pedro Alves <pedro@codesourcery.com>
16768
16769 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
16770 assertion.
16771 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
16772
16773 2011-05-26 Yao Qi <yao@codesourcery.com>
16774
16775 * Makefile.in (thread-db.o): Track dependence to
16776 common/gdb_thread_db.h.
16777 * thread-db.c: include gdb_thread_db.h from right place.
16778
16779 2011-05-16 Adrian Cornish <gnu@bluedreamer.com>
16780
16781 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
16782 __FILE__ and __LINE__ to internal_error.
16783
16784 2011-05-13 Doug Evans <dje@google.com>
16785
16786 * thread-db.c (try_thread_db_load_from_sdir): New function.
16787 (try_thread_db_load_from_dir): New function.
16788 (thread_db_load_search): Handle $sdir, ignore $pdir.
16789 Remove trying of system directories if search of
16790 libthread-db-search-path fails, that is now done via $sdir.
16791
16792 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
16793
16794 * server.c (handle_query): Add EnableDisableTracepoints to the list
16795 of supported features.
16796 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
16797 tracepoints.
16798 (cmd_qtenable_disable): New.
16799 (cmd_qtstart): Install tracepoints even if disabled.
16800 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
16801 receiving a QTEnable or QTDisable packet.
16802 (gdb_collect): Skip data collection if fast tracepoint is disabled.
16803 (ust_marker_to_static_tracepoint): Do not ignore disabled static
16804 tracepoints.
16805 (gdb_probe): Skip data collection if static tracepoint is disabled.
16806
16807 2011-05-10 Doug Evans <dje@google.com>
16808
16809 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
16810
16811 2011-05-04 Doug Evans <dje@google.com>
16812
16813 * linux-low.c (linux_join): Skip process lookup.
16814 * spu-low.c (spu_join): Ditto.
16815 * server.c (join_inferiors_callback): Delete.
16816 (process_serial_event): For 'D' packet (detach) call join_inferior
16817 directly.
16818
16819 2011-05-04 Joseph Myers <joseph@codesourcery.com>
16820
16821 * README: Don't mention xscale*-*-linux*.
16822 * configure.srv (xscale*-*-linux*): Don't handle target.
16823
16824 2011-04-27 Nathan Froyd <froydnj@codesourcery.com>
16825
16826 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
16827 casting pointers.
16828 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
16829 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
16830 (i386_emit_void_call_2): Likewise.
16831
16832 2011-04-26 Yao Qi <yao@codesourcery.com>
16833
16834 * linux-low.c: Move common macros to linux-ptrace.h.
16835 Include linux-ptrace.h.
16836 * Makefile.in (linux_ptrace_h): New.
16837 (linux-low.o): Depends on linux-ptrace.h.
16838
16839 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
16840
16841 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
16842 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
16843 (remote_prepare): New function with most of the TCP code from ...
16844 (remote_open): ... here. Detect PORT here unconditionally. Move also
16845 setting transport_is_reliable.
16846 * server.c (run_once): New variable.
16847 (gdbserver_usage): Document it.
16848 (main): Set run_once for `--once'. Call remote_prepare. Exit after
16849 the first run if RUN_ONCE.
16850 * server.h (run_once, remote_prepare): New declarations.
16851
16852 2011-04-19 Tom Tromey <tromey@redhat.com>
16853
16854 * win32-low.c (handle_load_dll): Remove duplicate "the".
16855
16856 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
16857
16858 Remove support for old Cygwin 1.5 versions.
16859 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
16860 function to avoid warning.
16861 (win32_add_one_solib): Use cygwin_conv_path function to avoid
16862 warning.
16863
16864 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
16865
16866 * gdbserver/server.h (Macro _): Define it if not available.
16867
16868 2011-03-14 Michael Snyder <msnyder@vmware.com>
16869
16870 * hostio.c (handle_close): Remove unnecessary null test.
16871
16872 2011-03-10 Joel Brobecker <brobecker@adacore.com>
16873
16874 * Makefile.in (maintainer-clean realclean distclean): Remove
16875 "make ... subdir_do" command.
16876
16877 2011-03-10 Michael Snyder <msnyder@vmware.com>
16878
16879 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
16880
16881 * server.c (handle_v_run): Free alloced buffer on early return.
16882
16883 2011-03-09 Yao Qi <yao@codesourcery.com>
16884
16885 Revert:
16886 2011-03-04 Yao Qi <yao@codesourcery.com>
16887
16888 * Makefile.in: Remove GNU make feature --directory.
16889
16890 2011-03-05 Yao Qi <yao@codesourcery.com>
16891
16892 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16893 (subdir_do): New make target. Copied from gdb/Makefile.
16894 (maintainer-clean, realclean, distclean, clean): Call corresponding
16895 make targets in common/Makefile.
16896
16897 2011-02-11 Yao Qi <yao@codesourcery.com>
16898
16899 * configure.ac: Call AC_PROG_RANLIB.
16900 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16901 * configure: Regenerate.
16902
16903 2011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
16904
16905 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
16906
16907 2011-03-06 Yao Qi <yao@codesourcery.com>
16908
16909 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
16910
16911 2011-03-05 Yao Qi <yao@codesourcery.com>
16912
16913 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16914 (subdir_do): New make target. Copied from gdb/Makefile.
16915 (maintainer-clean, realclean, distclean, clean): Call corresponding
16916 make targets in common/Makefile.
16917
16918 2011-03-04 Yao Qi <yao@codesourcery.com>
16919
16920 * Makefile.in: Remove GNU make feature --directory.
16921
16922 2011-03-04 Michael Snyder <msnyder@vmware.com>
16923
16924 * server.c (queue_stop_reply): Call xmalloc not malloc.
16925
16926 2011-03-02 Michael Snyder <msnyder@vmware.com>
16927
16928 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
16929
16930 2011-02-28 Michael Snyder <msnyder@vmware.com>
16931
16932 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
16933 (cmd_qtframe): Ditto.
16934 (cmd_qtbuffer): Ditto.
16935 (cmd_bigqtbuffer): Ditto.
16936
16937 * utils.c (decimal2str): Initialize 'width' to nine, then
16938 don't mess with it.
16939
16940 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
16941
16942 * hostio.c (require_data): Free *data, not data.
16943
16944 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
16945
16946 * hostio.c (require_data): Use free, not xfree.
16947
16948 2011-02-27 Michael Snyder <msnyder@vmware.com>
16949
16950 * server.c (handle_query): Discard unused value.
16951
16952 * hostio.c (require_data): Free malloc memory before returning
16953 error.
16954
16955 2011-02-26 Michael Snyder <msnyder@vmware.com>
16956
16957 * linux-low.c (list_threads): Call closedir for dirent.
16958
16959 2011-02-27 Michael Snyder <msnyder@vmware.com>
16960
16961 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
16962 a case statement falls through.
16963
16964 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
16965
16966 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
16967 in comparison.
16968
16969 2011-02-26 Michael Snyder <msnyder@vmware.com>
16970
16971 * utils.c (decimal2str): Eliminate dead code and dead param.
16972 (pulongest): Drop dead param from call to decimal2str.
16973 (plongest): Ditto.
16974
16975 2011-02-24 Joel Brobecker <brobecker@adacore.com>
16976
16977 Revert the following patch (not approved yet):
16978 2011-02-21 Hui Zhu <teawater@gmail.com>
16979 * tracepoint.c (tp_printf): New function.
16980 (eval_agent_expr): Handle gdb_agent_op_printf.
16981
16982 2011-02-21 Hui Zhu <teawater@gmail.com>
16983
16984 * tracepoint.c (tp_printf): New function.
16985 (eval_agent_expr): Handle gdb_agent_op_printf.
16986
16987 2011-02-18 Tom Tromey <tromey@redhat.com>
16988
16989 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
16990 (tracepoint.o): Likewise.
16991 * tracepoint.c (enum gdb_agent_op): Use ax.def.
16992 (gdb_agent_op_names): Likewise.
16993
16994 2011-02-18 Tom Tromey <tromey@redhat.com>
16995
16996 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
16997 gdb_agent_op_rot>: New constants.
16998 (gdb_agent_op_names): Add pick and roll.
16999 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
17000 cases.
17001
17002 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
17003
17004 * aclocal.m4: Regenerated with aclocal-1.11.1.
17005
17006 2011-02-14 Pedro Alves <pedro@codesourcery.com>
17007
17008 * server.c (handle_qxfer_traceframe_info): New.
17009 (qxfer_packets): Register "traceframe-info".
17010 (handle_query): Report support for qXfer:traceframe-info:read+.
17011 * tracepoint.c (match_blocktype): New.
17012 (traceframe_find_block_type): Rename to ...
17013 (traceframe_walk_blocks): ... this. Add callback filter argument,
17014 and use it.
17015 (traceframe_find_block_type): New, reimplemented on top of
17016 traceframe_walk_blocks.
17017 (build_traceframe_info_xml): New.
17018 (traceframe_read_info): New.
17019 * server.h (traceframe_read_info): Declare.
17020
17021 2011-02-11 Yao Qi <yao@codesourcery.com>
17022
17023 * configure.ac: Call AC_PROG_RANLIB.
17024 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
17025 * configure: Regenerate.
17026
17027 2011-02-07 Pedro Alves <pedro@codesourcery.com>
17028
17029 * server.c (gdb_read_memory): Change return semantics to allow
17030 partial transfers.
17031 (handle_search_memory_1): Adjust.
17032 (process_serial_event) <'m' packet>: Handle partial transfers.
17033 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
17034
17035 2011-01-28 Pedro Alves <pedro@codesourcery.com>
17036
17037 * regcache.c (init_register_cache): Initialize
17038 regcache->register_status.
17039 (free_register_cache): Release regcache->register_status.
17040 (regcache_cpy): Copy register_status.
17041 (registers_to_string): Print 'x's for unavailable registers.
17042 (supply_register): Mark the register's status valid or
17043 unavailable, depending on whether a buffer was passed in or not.
17044 (supply_register_zeroed): New.
17045 (supply_regblock): Mark the registers' status valid or
17046 unavailable, depending on whether a buffer was passed in or not.
17047 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
17048 (struct regcache): New `register_status' field.
17049 (supply_register_zeroed): Declare.
17050 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
17051 supply_register_zeroed, rather than passing a NULL buffer to
17052 supply_register.
17053 * tracepoint.c (fetch_traceframe_registers): Update comment.
17054
17055 2011-01-28 Pedro Alves <pedro@codesourcery.com>
17056
17057 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
17058 buffer explicit.
17059
17060 2011-01-25 Pedro Alves <pedro@codesourcery.com>
17061
17062 * server.h (decode_xfer_write): Change prototype.
17063 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
17064 and don't extract the annex here.
17065 * server.c (decode_xfer_read): Remove `annex' parameter,
17066 and don't extract the annex here.
17067 (decode_xfer): New.
17068 (struct qxfer): New.
17069 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
17070 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
17071 (handle_qxfer_statictrace): New functions, abstracted out from
17072 handle_query, and made to use the struct qxfer interface.
17073 (handle_threads_qxfer_proper): Rename to ...
17074 (handle_qxfer_threads_proper): ... this.
17075 (handle_threads_qxfer): Rename to ...
17076 (handle_qxfer_threads): ... this. Adjust.
17077 (qxfer_packets): New array.
17078 (handle_qxfer): New function.
17079 (handle_query): Use handle_qxfer.
17080
17081 2011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
17082
17083 * gdbreplay.c: Shorten lines of >= 80 columns.
17084 * linux-low.c: Ditto.
17085 * linux-ppc-low.c: Ditto.
17086 * linux-s390-low.c: Ditto.
17087 * linux-sparc-low.c: Ditto.
17088 * linux-x86-low.c: Ditto.
17089 * linux-xtensa-low.c: Ditto.
17090 * mem-break.c: Ditto.
17091 * nto-low.c: Ditto.
17092 * regcache.h: Ditto.
17093 * remote-utils.c: Ditto.
17094 * server.c: Ditto.
17095 * server.h: Ditto.
17096 * thread-db.c: Ditto.
17097 * tracepoint.c: Ditto.
17098 * utils.c: Ditto.
17099 * win32-low.h: Ditto.
17100
17101 2011-01-05 Joel Brobecker <brobecker@adacore.com>
17102
17103 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
17104 update.
17105
17106 2011-01-01 Joel Brobecker <brobecker@adacore.com>
17107
17108 * server.c (gdbserver_version): Update copyright year in version
17109 output.
17110 * gdbreplay.c (gdbreplay_version): Ditto.
17111
17112 2010-12-29 Jie Zhang <jie.zhang@analog.com>
17113
17114 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
17115 * linux-bfin-low.c: New file.
17116 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
17117 PT_DATA_ADDR for BFIN targets.
17118 * Makefile.in (SFILES): Add linux-bfin-low.c.
17119 (clean): Remove reg-bfin.c.
17120 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
17121 * README: Mention supported Blackfin targets.
17122
17123 2010-12-23 Mike Frysinger <vapier@gentoo.org>
17124
17125 * .gitignore: New file.
17126
17127 2010-11-16 Mike Frysinger <vapier@gentoo.org>
17128
17129 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
17130
17131 2010-10-22 Jie Zhang <jie@codesourcery.com>
17132
17133 * Makefile.in: Add FLAGS_TO_PASS variable.
17134 (install): Remove dependency of install-only and recursively
17135 invoke make for install-only.
17136
17137 2010-10-04 Doug Evans <dje@google.com>
17138
17139 * Makefile.in (uninstall): Use $(DESTDIR).
17140
17141 2010-09-24 Pedro Alves <pedro@codesourcery.com>
17142
17143 PR gdb/11842
17144
17145 * linux-x86-low.c (compat_siginfo_from_siginfo)
17146 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
17147 si_code is < 0. Check for si_code == SI_TIMER before checking for
17148 si_code < 0.
17149
17150 2010-09-13 Joel Brobecker <brobecker@adacore.com>
17151
17152 * lynx-i386-low.c: New file.
17153 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
17154
17155 2010-09-13 Joel Brobecker <brobecker@adacore.com>
17156
17157 * lynx-low.c (ptrace_request_to_str): Remove handling for
17158 request values that have been removed in LynxOS 5.x.
17159
17160 2010-09-13 Joel Brobecker <brobecker@adacore.com>
17161
17162 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
17163 <ptrace.h>
17164
17165 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
17166
17167 * configure.ac: Add --enable-inprocess-agent option.
17168 * configure: Rebuilt.
17169
17170 2010-09-06 Yao Qi <yao@codesourcery.com>
17171
17172 * linux-low.c (linux_kill): Remove unused variable.
17173 (linux_stabilize_threads): Likewise.
17174 * server.c (start_inferior): Likewise.
17175 (queue_stop_reply_callback): Likewise.
17176 * tracepoint.c (do_action_at_tracepoint): Likewise.
17177
17178 2010-09-06 Yao Qi <yao@codesourcery.com>
17179
17180 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
17181 on return.
17182
17183 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
17184
17185 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
17186
17187 2010-09-06 Pedro Alves <pedro@codesourcery.com>
17188
17189 * Makefile.in (install-only): Replace $IPA_DEPFILES with
17190 "$(IPA_DEPFILES)".
17191
17192 2010-09-01 Joel Brobecker <brobecker@adacore.com>
17193
17194 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
17195 gdbserver/lynx-ppc-low.c: New files.
17196 * Makefile.in (lynx_low_h): New variable.
17197 (lynx-low.o, lynx-ppc-low.o): New rules.
17198 * configure.ac: On LynxOS, link with -lnetinet.
17199 * configure.srv: Add handling of powerpc-*-lynxos* targets.
17200 * configure: regenerate.
17201
17202 2010-09-01 Joel Brobecker <brobecker@adacore.com>
17203
17204 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
17205 * configure.ac: Add check for vasprintf and vsnprintf.
17206 * configure, config.in: Regenerate.
17207 * server.h (vasprintf, vsnprintf): Add conditional declarations.
17208
17209 2010-09-01 Joel Brobecker <brobecker@adacore.com>
17210
17211 * gdbreplay.c: Move include of alloca.h up, next to include of
17212 malloc.h.
17213 * server.h: Add include of malloc.h.
17214 * mem-break.c: Remove include of malloc.h.
17215 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
17216
17217 2010-09-01 Joel Brobecker <brobecker@adacore.com>
17218
17219 * Makefile.in (memmem.o): Build with -Wno-error.
17220
17221 2010-09-01 Joel Brobecker <brobecker@adacore.com>
17222
17223 * utils.c (xsnprintf): Make non-static.
17224 * server.h: Add xsnprintf declaration.
17225 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
17226 replace calls to snprintf by calls to xsnprintf throughout.
17227
17228 2010-09-01 Joel Brobecker <brobecker@adacore.com>
17229
17230 * configure.ac: Add configure check for alloca.
17231 * configure, config.in: Regenerate.
17232 * server.h: Include alloca.h if it exists.
17233 * gdbreplay.c: Include alloca.h if it exists.
17234
17235 2010-08-28 Pedro Alves <pedro@codesourcery.com>
17236
17237 * linux-low.c (__SIGRTMIN): Define if not already defined.
17238 (linux_create_inferior): Check for __ANDROID__ rather than
17239 __SIGRTMIN.
17240 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
17241 are already deferred.
17242 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
17243 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
17244 stopped and already has a pending signal to report.
17245 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
17246 a pending signal to report or is moving out of a jump pad.
17247 (linux_init_signals): Check for __ANDROID__ rather than
17248 __SIGRTMIN.
17249
17250 2010-08-28 Pedro Alves <pedro@codesourcery.com>
17251
17252 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
17253 debug_threads check. Avoid a linear search when not doing debug
17254 output.
17255
17256 2010-08-27 Pedro Alves <pedro@codesourcery.com>
17257
17258 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
17259 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
17260 (struct file_handler) <fd>: Change type to gdb_fildes_t.
17261 (process_event): Change local fd's type to gdb_fildes_t.
17262 (create_file_handler): Adjust prototype.
17263 (delete_file_handler): Adjust prototype.
17264 (handle_file_event): Adjust prototype. Use pfildes.
17265 (create_file_event): Adjsut prototype.
17266 * remote-utils.c (remote_desc, listen_desc): Change type to
17267 gdb_fildes_t.
17268 * server.h: New gdb_fildes_t typedef.
17269 [USE_WIN32API]: Include winsock2.h.
17270 (delete_file_handler, add_file_handler): Adjust prototypes.
17271 (pfildes): Declare.
17272 * utils.c (pfildes): New.
17273
17274 2010-08-27 Pedro Alves <pedro@codesourcery.com>
17275
17276 * configure.ac (build_warnings): Add -Wno-char-subscripts.
17277 * configure: Regenerate.
17278
17279 2010-08-27 Pedro Alves <pedro@codesourcery.com>
17280
17281 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
17282 (linux_done_accessing_memory): ... this.
17283 (linux_target_ops): Adjust.
17284 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
17285 * nto-low.c (nto_target_ops): Adjust comment.
17286 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
17287 * spu-low.c (spu_target_ops): Adjust comment.
17288 * target.h (target_ops): Rename unprepare_to_access_memory field
17289 to done_accessing_memory.
17290 (unprepare_to_access_memory): Rename to ...
17291 (done_accessing_memory): ... this.
17292
17293 2010-08-26 Pedro Alves <pedro@codesourcery.com>
17294
17295 * linux-low.c (linux_prepare_to_access_memory): New.
17296 (linux_unprepare_to_access_memory): New.
17297 (linux_target_ops): Install them.
17298 * server.c (read_memory): Rename to ...
17299 (gdb_read_memory): ... this. Use
17300 prepare_to_access_memory/prepare_to_access_memory.
17301 (write_memory): Rename to ...
17302 (gdb_write_memory): ... this. Use
17303 prepare_to_access_memory/prepare_to_access_memory.
17304 (handle_search_memory_1): Adjust.
17305 (process_serial_event): Adjust.
17306 * target.h (struct target_ops): New fields
17307 prepare_to_access_memory and unprepare_to_access_memory.
17308 (prepare_to_access_memory, unprepare_to_access_memory): New.
17309 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
17310 prepare_to_access_memory/prepare_to_access_memory.
17311 * nto-low.c (nto_target_ops): Adjust.
17312 * spu-low.c (spu_target_ops): Adjust.
17313 * win32-low.c (win32_target_ops): Adjust.
17314
17315 2010-08-26 Pedro Alves <pedro@codesourcery.com>
17316
17317 * Makefile.in (WARN_CFLAGS): Get it from configure.
17318 (WERROR_CFLAGS): New.
17319 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
17320 * configure.ac: Introduce --enable-werror, which adds -Werror to
17321 the compiler command line. Enabled by default. Disable with
17322 --disable-werror. Add -Wdeclaration-after-statement
17323 Wpointer-arith and -Wformat-nonliteral to warning flags.
17324 * configure: Regenerate.
17325
17326 2010-08-26 Pedro Alves <pedro@codesourcery.com>
17327
17328 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
17329
17330 2010-08-26 Pedro Alves <pedro@codesourcery.com>
17331
17332 * gdbreplay.c (remote_error): New.
17333 (gdbchar): New.
17334 (expect): Use gdbchar. Check for error reading from GDB.
17335 Clarify sync error output.
17336 (play): Check for errors writing to GDB.
17337 * linux-low.c (sigchld_handler): Really ignore `write' errors.
17338 * remote-utils.c (getpkt): Check for errors writing to the remote
17339 descriptor.
17340
17341 2010-08-25 Pedro Alves <pedro@codesourcery.com>
17342
17343 * linux-low.c (linux_wait_1): Move non-debugging code out of
17344 `debug_threads' control.
17345
17346 2010-08-25 Pedro Alves <pedro@codesourcery.com>
17347
17348 * linux-low.c (linux_wait_1): Don't set last_status here.
17349 * server.c (push_event, queue_stop_reply_callback): Assert we're
17350 not pushing a TARGET_WAITKIND_IGNORE event.
17351 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
17352 (myresume, handle_target_event): Set the thread's last_resume_kind
17353 and last_status from the target returned status.
17354
17355 2010-08-25 Pedro Alves <pedro@codesourcery.com>
17356
17357 PR threads/10729
17358
17359 * linux-x86-low.c (update_debug_registers_callback): New.
17360 (i386_dr_low_set_addr): Use it.
17361 (i386_dr_low_get_addr): New.
17362 (i386_dr_low_set_control): Use update_debug_registers_callback.
17363 (i386_dr_low_get_control): New.
17364 (i386_dr_low_get_status): Adjust.
17365 * linux-low.c (linux_stop_lwp): New.
17366 * linux-low.h (linux_stop_lwp): Declare.
17367
17368 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
17369 argument instead of a i386_debug_reg_state.
17370 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
17371 a i386_debug_reg_state.
17372 (i386_insert_aligned_watchpoint): Adjust.
17373 (i386_remove_aligned_watchpoint): Adjust.
17374 (i386_low_stopped_data_address): Read the debug registers from the
17375 inferior instead of from the mirrors.
17376 * i386-low.h (struct i386_debug_reg_state): Extend comment.
17377 (i386_dr_low_get_addr): Declare.
17378 (i386_dr_low_get_control): Declare.
17379 (i386_dr_low_get_status): Change prototype.
17380
17381 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
17382 (i386_dr_low_get_addr): New.
17383 (i386_dr_low_get_control): New.
17384 (i386_dr_low_get_status): Adjust prototype. Return
17385 dr_status_mirror.
17386 (i386_initial_stuff): Clear dr_status_mirror and
17387 dr_control_mirror.
17388 (i386_get_thread_context): Adjust.
17389 (i386_set_thread_context): Adjust.
17390 (i386_thread_added): Adjust.
17391
17392 2010-08-24 Pedro Alves <pedro@codesourcery.com>
17393
17394 * linux-low.h (linux_thread_area): Delete declaration.
17395
17396 2010-08-11 Thomas Schwinge <thomas@codesourcery.com>
17397
17398 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
17399 after its termination.
17400
17401 2010-08-09 Pedro Alves <pedro@codesourcery.com>
17402
17403 * linux-low.c (gdb_wants_lwp_stopped): Delete.
17404 (gdb_wants_all_stopped): Delete.
17405 (linux_wait_1): Don't call them.
17406 * server.c (handle_v_cont): Tag all threads as want-stopped.
17407 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
17408 stopped as "client-wants-stopped".
17409
17410 2010-07-31 Pedro Alves <pedro@codesourcery.com>
17411
17412 * Makefile.in (signals_h): New.
17413 (server_h): Depend on it.
17414 (server.o): Don't depend on $(signals_def).
17415 (signals.o): Depend on $(signals_def).
17416
17417 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
17418
17419 * Makefile.in (signals_def): New.
17420 (server_h): Append include/gdb/signals.h and signals_def.
17421 (server.o): Append signals_def.
17422
17423 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
17424
17425 * server.c (handle_target_event): Use target_signal_to_host for
17426 resume_info.sig initialization.
17427 * target.h (struct thread_resume) <sig>: New comment.
17428
17429 2010-07-20 Ozkan Sezer <sezeroz@gmail.com>
17430
17431 * server.c (handle_query): strcpy() the returned string from paddress()
17432 instead of sprintf().
17433 * utils.c (paddress): Return phex_nz().
17434
17435 2010-07-07 Joel Brobecker <brobecker@adacore.com>
17436
17437 * server.c (handle_v_cont): Call mourn_inferior if process
17438 just exited.
17439 (myresume): Likewise.
17440
17441 2010-07-01 Pedro Alves <pedro@codesourcery.com>
17442
17443 Static tracepoints, and integration with UST.
17444
17445 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
17446 * mem-break.c (uninsert_all_breakpoints)
17447 (reinsert_all_breakpoints): New.
17448 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
17449 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
17450 (gdb_agent_ust_loaded, helper_thread_id)
17451 (gdb_agent_helper_thread_id): New macros.
17452 (struct ipa_sym_addresses): Add addr_ust_loaded,
17453 addr_helper_thread_id, addr_cmd_buf.
17454 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
17455 (in_process_agent_loaded_ust): New.
17456 (write_e_ust_not_loaded): New.
17457 (maybe_write_ipa_ust_not_loaded): New.
17458 (struct collect_static_trace_data_action): New.
17459 (enum tracepoint_type) <static_tracepoint>: New.
17460 (struct tracepoint) <handle>: Mention static tracepoints.
17461 (struct static_tracepoint_ctx): New.
17462 (CMD_BUF_SIZE): New.
17463 (add_tracepoint_action): Handle static tracepoint actions.
17464 (unprobe_marker_at): New.
17465 (clear_installed_tracepoints): Handle static tracepoints.
17466 (cmd_qtdp): Handle static tracepoints.
17467 (probe_marker_at): New.
17468 (cmd_qtstart): Handle static tracepoints.
17469 (response_tracepoint): Handle static tracepoints.
17470 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
17471 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
17472 (get_context_regcache): Handle static tracepoints.
17473 (do_action_at_tracepoint): Handle static tracepoint actions.
17474 (traceframe_find_block_type): Handle static trace data blocks.
17475 (traceframe_read_sdata): New.
17476 (download_tracepoints): Download static tracepoint actions.
17477 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
17478 (GDB_PROBE_NAME): New.
17479 (ust_ops): New.
17480 (GET_UST_SYM): New.
17481 (USTF): New.
17482 (dlsym_ust): New.
17483 (ust_marker_to_static_tracepoint): New.
17484 (gdb_probe): New.
17485 (collect_ust_data_at_tracepoint): New.
17486 (gdb_ust_probe): New.
17487 (UNIX_PATH_MAX, SOCK_DIR): New.
17488 (gdb_ust_connect_sync_socket): New.
17489 (resume_thread, stop_thread): New.
17490 (run_inferior_command): New.
17491 (init_named_socket): New.
17492 (gdb_ust_socket_init): New.
17493 (cstr_to_hexstr): New.
17494 (next_st): New.
17495 (first_marker, next_marker): New.
17496 (response_ust_marker): New.
17497 (cmd_qtfstm, cmd_qtsstm): New.
17498 (unprobe_marker_at, probe_marker_at): New.
17499 (cmd_qtstmat, gdb_ust_thread): New.
17500 (gdb_ust_init): New.
17501 (initialize_tracepoint_ftlib): Call gdb_ust_init.
17502 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
17503 (ST_REGENTRY): New.
17504 (x86_64_st_collect_regmap): New.
17505 (X86_64_NUM_ST_COLLECT_GREGS): New.
17506 (AMD64_RIP_REGNUM): New.
17507 (supply_static_tracepoint_registers): New.
17508 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
17509 (ST_REGENTRY): New.
17510 (i386_st_collect_regmap): New.
17511 (i386_NUM_ST_COLLECT_GREGS): New.
17512 (supply_static_tracepoint_registers): New.
17513 * server.c (handle_query): Handle qXfer:statictrace:read.
17514 <qSupported>: Report support for StaticTracepoints, and
17515 qXfer:statictrace:read features.
17516 * server.h (traceframe_read_sdata)
17517 (supply_static_tracepoint_registers): Declare.
17518 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
17519 (unpack_varlen_hex): Include in IPA build.
17520 * Makefile.in (ustlibs, ustinc): New.
17521 (IPA_OBJS): Add remote-utils-ipa.o.
17522 ($(IPA_LIB)): Link -ldl and -lpthread.
17523 (UST_CFLAGS): New.
17524 (IPAGENT_CFLAGS): Add UST_CFLAGS.
17525 * config.in, configure: Regenerate.
17526
17527 2010-06-20 Ian Lance Taylor <iant@google.com>
17528 Pedro Alves <pedro@codesourcery.com>
17529
17530 * linux-x86-low.c (always_true): Delete.
17531 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
17532 trying to fool the compiler with always_true.
17533
17534 2010-06-20 Pedro Alves <pedro@codesourcery.com>
17535
17536 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
17537 conditions in gdbserver.
17538
17539 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
17540
17541 * spu-low.c (spu_read_memory): Wrap around local store limit.
17542 (spu_write_memory): Likewise.
17543
17544 2010-06-15 Pedro Alves <pedro@codesourcery.com>
17545
17546 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
17547 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
17548 LONGEST uses.
17549 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
17550 uses.
17551 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
17552 uses with LONGEST uses.
17553
17554 2010-06-14 Stan Shebs <stan@codesourcery.com>
17555 Pedro Alves <pedro@codesourcery.com>
17556
17557 Bytecode compiler.
17558
17559 * linux-x86-low.c: Include limits.h.
17560 (add_insns): New.
17561 (always_true): New.
17562 (EMIT_ASM): New.
17563 (EMIT_ASM32): New.
17564 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
17565 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
17566 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
17567 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
17568 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
17569 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
17570 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
17571 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
17572 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
17573 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
17574 (amd64_emit_void_call_2): New.
17575 (amd64_emit_ops): New.
17576 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
17577 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
17578 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
17579 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
17580 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
17581 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
17582 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
17583 (i386_emit_call, i386_emit_reg, i386_emit_pop)
17584 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
17585 (i386_emit_stack_adjust, i386_emit_int_call_1)
17586 (i386_emit_void_call_2): New.
17587 (i386_emit_ops): New.
17588 (x86_emit_ops): New.
17589 (the_low_target): Install x86_emit_ops.
17590 * server.h (struct emit_ops): New.
17591 (get_raw_reg_func_addr): Declare.
17592 (current_insn_ptr, emit_error): Declare.
17593 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
17594 (set_trace_state_variable_value): New defines.
17595 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
17596 addr_get_trace_state_variable_value and
17597 addr_set_trace_state_variable_value.
17598 (symbol_list): New fields for get_raw_reg,
17599 get_trace_state_variable_value and set_trace_state_variable_value.
17600 (condfn): New typedef.
17601 (struct tracepoint): New field `compiled_cond'.
17602 (do_action_at_tracepoint): Clear compiled_cond.
17603 (get_trace_state_variable_value, set_trace_state_variable_value):
17604 Export in the IPA.
17605 (condition_true_at_tracepoint): If there's a compiled condition,
17606 run that.
17607 (current_insn_ptr, emit_error): New globals.
17608 (struct bytecode_address): New.
17609 (get_raw_reg_func_addr): New.
17610 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
17611 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
17612 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
17613 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
17614 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
17615 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
17616 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
17617 (compile_tracepoint_condition, compile_bytecodes): New.
17618 * target.h (emit_ops): Forward declare.
17619 (struct target_ops): New field emit_ops.
17620 (target_emit_ops): New.
17621 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
17622 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
17623 * linux-low.c (linux_emit_ops): New.
17624 (linux_target_ops): Install it.
17625 * linux-low.h (struct linux_target_ops): New field emit_ops.
17626
17627 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
17628
17629 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
17630 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
17631
17632 2010-06-01 Pedro Alves <pedro@codesourcery.com>
17633 Stan Shebs <stan@codesourcery.com>
17634
17635 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
17636 (all): Depend on $(extra_libraries).
17637 (install-only): Install the IPA.
17638 (IPA_OBJS, IPA_LIB): New.
17639 (clean): Remove the IPA lib.
17640 (IPAGENT_CFLAGS): New.
17641 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
17642 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
17643 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
17644 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
17645 * configure.ac: Check for atomic builtins support in the compiler.
17646 (IPA_DEPFILES, extra_libraries): Define.
17647 * configure.srv (ipa_obj): Add description.
17648 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
17649 (i[34567]86-*-linux*): Set ipa_obj.
17650 (x86_64-*-linux*): Set ipa_obj.
17651 * linux-low.c (stabilizing_threads): New.
17652 (supports_fast_tracepoints): New.
17653 (linux_detach): Stabilize threads before detaching.
17654 (handle_tracepoints): Handle internal tracing breakpoints. Assert
17655 the lwp is either not stabilizing, or is moving out of a jump pad.
17656 (linux_fast_tracepoint_collecting): New.
17657 (maybe_move_out_of_jump_pad): New.
17658 (enqueue_one_deferred_signal): New.
17659 (dequeue_one_deferred_signal): New.
17660 (linux_wait_for_event_1): If moving out of a jump pad, defer
17661 pending signals to later.
17662 (linux_stabilize_threads): New.
17663 (linux_wait_1): Check if threads need moving out of jump pads, and
17664 do it if so.
17665 (stuck_in_jump_pad_callback): New.
17666 (move_out_of_jump_pad_callback): New.
17667 (lwp_running): New.
17668 (linux_resume_one_lwp): Handle moving out of jump pads.
17669 (linux_set_resume_request): Dequeue deferred signals.
17670 (need_step_over_p): Also step over fast tracepoint jumps.
17671 (start_step_over): Also uninsert fast tracepoint jumps.
17672 (finish_step_over): Also reinsert fast tracepoint jumps.
17673 (linux_install_fast_tracepoint_jump): New.
17674 (linux_target_ops): Install linux_stabilize_threads and
17675 linux_install_fast_tracepoint_jump_pad.
17676 * linux-low.h (linux_target_ops) <get_thread_area,
17677 install_fast_tracepoint_jump_pad>: New fields.
17678 (struct lwp_info) <collecting_fast_tracepoint,
17679 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
17680 (linux_get_thread_area): Declare.
17681 * linux-x86-low.c (jump_insn): New.
17682 (x86_get_thread_area): New.
17683 (append_insns): New.
17684 (push_opcode): New.
17685 (amd64_install_fast_tracepoint_jump_pad): New.
17686 (i386_install_fast_tracepoint_jump_pad): New.
17687 (x86_install_fast_tracepoint_jump_pad): New.
17688 (the_low_target): Install x86_get_thread_area and
17689 x86_install_fast_tracepoint_jump_pad.
17690 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
17691 (struct fast_tracepoint_jump): New.
17692 (fast_tracepoint_jump_insn): New.
17693 (fast_tracepoint_jump_shadow): New.
17694 (find_fast_tracepoint_jump_at): New.
17695 (fast_tracepoint_jump_here): New.
17696 (delete_fast_tracepoint_jump): New.
17697 (set_fast_tracepoint_jump): New.
17698 (uninsert_fast_tracepoint_jumps_at): New.
17699 (reinsert_fast_tracepoint_jumps_at): New.
17700 (set_breakpoint_at): Use write_inferior_memory.
17701 (uninsert_raw_breakpoint): Use write_inferior_memory.
17702 (check_mem_read): Mask out fast tracepoint jumps.
17703 (check_mem_write): Mask out fast tracepoint jumps.
17704 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
17705 (set_fast_tracepoint_jump): Declare.
17706 (delete_fast_tracepoint_jump)
17707 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
17708 (reinsert_fast_tracepoint_jumps_at): Declare.
17709 * regcache.c: Don't compile many functions when building the
17710 in-process agent library.
17711 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
17712 the register buffer in the heap.
17713 (free_register_cache): If the register buffer isn't owned by the
17714 regcache, don't free it.
17715 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
17716 pre-existing register caches.
17717 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
17718 type.
17719 (convert_ascii_to_int): : Constify `from' parameter type.
17720 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
17721 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
17722 the needed buffer in-place.
17723 (relocate_instruction): New.
17724 * server.c (handle_query) <qSymbols>: If the target supports
17725 tracepoints, give it a chance of looking up symbols. Report
17726 support for fast tracepoints.
17727 (handle_status): Stabilize threads.
17728 (process_serial_event): Adjust.
17729 * server.h (struct fast_tracepoint_jump): Forward declare.
17730 (struct process_info) <fast_tracepoint_jumps>: New field.
17731 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
17732 (decode_X_packet, decode_M_packet): Adjust.
17733 (relocate_instruction): Declare.
17734 (in_process_agent_loaded): Declare.
17735 (tracepoint_look_up_symbols): Declare.
17736 (struct fast_tpoint_collect_status): Declare.
17737 (fast_tracepoint_collecting): Declare.
17738 (force_unlock_trace_buffer): Declare.
17739 (handle_tracepoint_bkpts): Declare.
17740 (initialize_low_tracepoint)
17741 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
17742 * target.h (struct target_ops) <stabilize_threads,
17743 install_fast_tracepoint_jump_pad>: New fields.
17744 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
17745 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
17746 [HAVE_STDINT_H]: Include stdint.h.
17747 (trace_debug_1): Rename to ...
17748 (trace_vdebug): ... this.
17749 (trace_debug): Rename to ...
17750 (trace_debug_1): ... this. Add `level' parameter.
17751 (trace_debug): New.
17752 (ATTR_USED, ATTR_NOINLINE): New.
17753 (IP_AGENT_EXPORT): New.
17754 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
17755 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
17756 (about_to_request_buffer_space, trace_buffer_is_full)
17757 (stopping_tracepoint, expr_eval_result, error_tracepoint)
17758 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
17759 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
17760 (traceframe_write_count, traceframes_created)
17761 (trace_state_variables)
17762 New renaming defines.
17763 (struct ipa_sym_addresses): New.
17764 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
17765 (symbol_list): New.
17766 (ipa_sym_addrs): New.
17767 (all_tracepoint_symbols_looked_up): New.
17768 (in_process_agent_loaded): New.
17769 (write_e_ipa_not_loaded): New.
17770 (maybe_write_ipa_not_loaded): New.
17771 (tracepoint_look_up_symbols): New.
17772 (debug_threads) [IN_PROCESS_AGENT]: New.
17773 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
17774 (UNKNOWN_SIDE_EFFECTS): New.
17775 (stop_tracing): New.
17776 (flush_trace_buffer): New.
17777 (stop_tracing_bkpt): New.
17778 (flush_trace_buffer_bkpt): New.
17779 (read_inferior_integer): New.
17780 (read_inferior_uinteger): New.
17781 (read_inferior_data_pointer): New.
17782 (write_inferior_data_pointer): New.
17783 (write_inferior_integer): New.
17784 (write_inferior_uinteger): New.
17785 (struct collect_static_trace_data_action): Delete.
17786 (enum tracepoint_type): New.
17787 (struct tracepoint) <type>: New field `type'.
17788 <actions_str, step_actions, step_actions_str>: Only include in
17789 GDBserver.
17790 <orig_size, obj_addr_on_target, adjusted_insn_addr>
17791 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
17792 (tracepoints): Use IP_AGENT_EXPORT.
17793 (last_tracepoint): Don't include in the IPA.
17794 (stopping_tracepoint): Use IP_AGENT_EXPORT.
17795 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
17796 (alloced_trace_state_variables): New.
17797 (trace_state_variables): Use IP_AGENT_EXPORT.
17798 (traceframe_t): Delete unused variable.
17799 (circular_trace_buffer): Don't include in the IPA.
17800 (trace_buffer_start): Delete.
17801 (struct trace_buffer_control): New.
17802 (trace_buffer_free): Delete.
17803 (struct ipa_trace_buffer_control): New.
17804 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
17805 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
17806 New.
17807 (trace_buffer_ctrl): New.
17808 (TRACE_BUFFER_CTRL_CURR): New.
17809 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
17810 Reimplement as macros.
17811 (trace_buffer_wrap): Delete.
17812 (traceframe_write_count, traceframe_read_count)
17813 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
17814 (struct tracepoint_hit_ctx) <type>: New field.
17815 (struct fast_tracepoint_ctx): New.
17816 (memory_barrier): New.
17817 (cmpxchg): New.
17818 (record_tracepoint_error): Update atomically in the IPA.
17819 (clear_inferior_trace_buffer): New.
17820 (about_to_request_buffer_space): New.
17821 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
17822 updating the same buffer.
17823 (add_tracepoint): Default the tracepoint's type to trap
17824 tracepoint, and orig_size to -1.
17825 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
17826 internal variables.
17827 (create_trace_state_variable): New parameter `gdb'. Handle it.
17828 (clear_installed_tracepoints): Clear fast tracepoint jumps.
17829 (cmd_qtdp): Handle fast tracepoints.
17830 (cmd_qtdv): Adjust.
17831 (max_jump_pad_size): New.
17832 (gdb_jump_pad_head): New.
17833 (get_jump_space_head): New.
17834 (claim_jump_space): New.
17835 (sort_tracepoints): New.
17836 (MAX_JUMP_SIZE): New.
17837 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
17838 IPA.
17839 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
17840 support. Upload fast traceframes, and delete internal IPA
17841 breakpoints.
17842 (stop_tracing_handler): New.
17843 (flush_trace_buffer_handler): New.
17844 (cmd_qtstop): Upload fast tracepoints.
17845 (response_tracepoint): Handle fast tracepoints.
17846 (tracepoint_finished_step): Upload fast traceframes. Set the
17847 tracepoint hit context's tracepoint type.
17848 (handle_tracepoint_bkpts): New.
17849 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
17850 type. Add comment about fast tracepoints.
17851 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
17852 non-existing action_str field.
17853 (get_context_regcache): Handle fast tracepoints.
17854 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
17855 to the regcache.
17856 (fast_tracepoint_from_jump_pad_address): New.
17857 (fast_tracepoint_from_ipa_tpoint_address): New.
17858 (collecting_t): New.
17859 (force_unlock_trace_buffer): New.
17860 (fast_tracepoint_collecting): New.
17861 (collecting): New.
17862 (gdb_collect): New.
17863 (write_inferior_data_ptr): New.
17864 (target_tp_heap): New.
17865 (target_malloc): New.
17866 (download_agent_expr): New.
17867 (UALIGN): New.
17868 (download_tracepoints): New.
17869 (download_trace_state_variables): New.
17870 (upload_fast_traceframes): New.
17871 (IPA_FIRST_TRACEFRAME): New.
17872 (IPA_NEXT_TRACEFRAME_1): New.
17873 (IPA_NEXT_TRACEFRAME): New.
17874 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
17875 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
17876 (gdb_jump_pad_buffer_end): New.
17877 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
17878 (initialize_tracepoint): Adjust.
17879 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
17880 buffer. Initialize the low module.
17881 * utils.c (PREFIX, TOOLNAME): New.
17882 (malloc_failure): Use PREFIX.
17883 (error): In the IPA, an error causes an exit.
17884 (fatal, warning): Use PREFIX.
17885 (internal_error): Use TOOLNAME.
17886 (NUMCELLS): Increase to 10.
17887 * configure, config.in: Regenerate.
17888
17889 2010-06-01 Pedro Alves <pedro@codesourcery.com>
17890
17891 * server.c (handle_query) <qSupported>: Do two passes over the
17892 qSupported string to avoid nesting strtok.
17893
17894 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17895
17896 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
17897 (CDEPS): New.
17898 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
17899 -Wl,--dynamic-list.
17900 * configure: Regenerate.
17901 * proc-service.list: New.
17902
17903 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17904
17905 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
17906 New comment.
17907
17908 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
17909
17910 * gdbreplay.c (remote_open): Check error return from socket() call by
17911 its equality to -1 not by it being negative.
17912 * remote-utils.c (remote_open): Likewise.
17913
17914 2010-05-23 Pedro Alves <pedro@codesourcery.com>
17915
17916 * config.h: Regenerate.
17917
17918 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17919
17920 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
17921 doesn't provide PTRACE_GET_THREAD_AREA.
17922
17923 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17924
17925 * linux-m68k-low.c: Include <asm/ptrace.h>
17926 (ps_get_thread_area): Implement.
17927
17928 2010-05-03 Doug Evans <dje@google.com>
17929
17930 * event-loop.c (struct callback_event): New struct.
17931 (callback_list): New global.
17932 (append_callback_event, delete_callback_event): New functions.
17933 (process_callback): New function.
17934 (start_event_loop): Call it.
17935 * remote-utils.c (NOT_SCHEDULED): Define.
17936 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
17937 moved out of readchar.
17938 (readchar): Rewrite. Call reschedule before returning.
17939 (reset_readchar): New function.
17940 (remote_close): Call it.
17941 (process_remaining, reschedule): New functions.
17942 * server.h (callback_handler_func): New typedef.
17943 (append_callback_event, delete_callback_event): Declare.
17944
17945 2010-05-03 Pedro Alves <pedro@codesourcery.com>
17946
17947 * proc-service.c (ps_pglobal_lookup): Use
17948 thread_db_look_up_one_symbol.
17949 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
17950 parameter. Use it instead of all_symbols_looked_up.
17951 * server.h (struct process_info) <all_symbols_looked_up>: Delete
17952 field.
17953 (all_symbols_looked_up): Don't declare.
17954 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
17955 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
17956 field.
17957 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
17958 Set all_symbols_looked_up here.
17959 (thread_db_look_up_one_symbol): New.
17960 (thread_db_get_tls_address): Adjust.
17961 (thread_db_load_search, try_thread_db_load_1): Always allocate the
17962 thread_db object on the heap, and tentatively set it in the
17963 process structure.
17964 (thread_db_init): Don't set all_symbols_looked_up here.
17965 * linux-low.h (thread_db_look_up_one_symbol): Declare.
17966
17967 2010-05-03 Pedro Alves <pedro@codesourcery.com>
17968
17969 * linux-low.c (linux_kill, linux_detach): Adjust.
17970 (status_pending_p_callback): Remove redundant statement. Check
17971 for !TARGET_WAITIKIND_IGNORE, instead of
17972 TARGET_WAITKIND_STOPPED.
17973 (handle_tracepoints): Make sure LWP is locked. Adjust.
17974 (linux_wait_for_event_1): Adjust.
17975 (linux_cancel_breakpoints): New.
17976 (unsuspend_one_lwp): New.
17977 (unsuspend_all_lwps): New.
17978 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
17979 (send_sigstop_callback): Change return type to int, add new
17980 `except' parameter and handle it.
17981 (suspend_and_send_sigstop_callback): New.
17982 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
17983 pass them down. If SUSPEND, also increment the lwp's suspend
17984 count.
17985 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
17986 (need_step_over_p): Don't consider suspended LWPs.
17987 (start_step_over): Adjust.
17988 (proceed_one_lwp): Change return type to int, add new `except'
17989 parameter and handle it.
17990 (unsuspend_and_proceed_one_lwp): New.
17991 (proceed_all_lwps): Use find_inferior instead of
17992 for_each_inferior.
17993 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
17994 also decrement the suspend count of LWPs. Pass `except' down,
17995 instead of hacking its suspend count.
17996 (linux_pause_all): Add `freeze' parameter. Adjust.
17997 (linux_unpause_all): New.
17998 (linux_target_ops): Install linux_unpause_all.
17999 * server.c (handle_status): Adjust.
18000 * target.h (struct target_ops): New fields `unpause_all' and
18001 `cancel_breakpoints'. Add new parameter to `pause_all'.
18002 (pause_all): Add new `freeze' parameter.
18003 (unpause_all): New.
18004 (cancel_breakpoints): New.
18005 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
18006 cancel breakpoints.
18007 (cmd_qtstart): Pause threads.
18008 (stop_tracing): Pause threads, and cancel breakpoints.
18009 * win32-low.c (win32_target_ops): Adjust.
18010
18011 2010-05-03 Pedro Alves <pedro@codesourcery.com>
18012
18013 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
18014 the inferior right away from here...
18015 (linux_wait_1): ... to here, and adjust to check the thread's
18016 last_resume_kind instead of the lwp's step or stop_expected flags.
18017
18018 2010-05-02 Pedro Alves <pedro@codesourcery.com>
18019
18020 * README: Use consistent `GDB' and `GDBserver' spellings.
18021
18022 2010-05-02 Pedro Alves <pedro@codesourcery.com>
18023
18024 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
18025 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
18026 (linux_detach_one_lwp): Assume the lwp is stopped.
18027 (any_thread_of): Delete.
18028 (linux_detach): Stop all lwps here. Don't blindly delete all
18029 breakpoints.
18030 (delete_lwp_callback): New.
18031 (linux_mourn): Delete all lwps of the process that is gone.
18032 (linux_wait_1): Don't delete the last lwp of the process here.
18033 * mem-break.h (mark_breakpoints_out): Declare.
18034 * mem-break.c (mark_breakpoints_out): New.
18035 (free_all_breakpoints): Use it.
18036 * server.c (handle_target_event): If the process is gone, mark
18037 breakpoints out.
18038 * thread-db.c (struct thread_db) <create_bp>: New field.
18039 (thread_db_enable_reporting): Fix prototype. Store a thread event
18040 breakpoint reference in the thread_db struct.
18041 (thread_db_load_search): Clear the thread_db object.
18042 (try_thread_db_load_1): Ditto.
18043 (switch_to_process): New.
18044 (disable_thread_event_reporting): Use it.
18045 (remove_thread_event_breakpoints): New.
18046 (thread_db_detach, thread_db_mourn): Use it.
18047
18048 2010-05-01 Pedro Alves <pedro@codesourcery.com>
18049
18050 * linux-low.c (linux_enable_event_reporting): New.
18051 (linux_wait_for_event_1, handle_extended_wait): Use it.
18052
18053 2010-04-30 Pedro Alves <pedro@codesourcery.com>
18054
18055 * linux-low.c (linux_kill_one_lwp, linux_kill)
18056 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
18057 (send_sigstop): Take an lwp_info as parameter instead. Queue a
18058 SIGSTOP even if the LWP is stopped.
18059 (send_sigstop_callback): New.
18060 (stop_all_lwps): Use send_sigstop_callback instead.
18061 (linux_resume_one_thread): Adjust.
18062 (proceed_one_lwp): Still proceed an LWP that the client has
18063 requested to stop, if we haven't reported it as stopped yet. Make
18064 sure that LWPs the client want stopped, have a pending SIGSTOP.
18065
18066 2010-04-26 Doug Evans <dje@google.com>
18067
18068 * server.c (handle_general_set): Make static.
18069
18070 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
18071 Print received char after testing for error/eof instead of before.
18072 (input_interrupt): Tweak comment.
18073
18074 2010-04-23 Doug Evans <dje@google.com>
18075
18076 * server.c (start_inferior): Print inferior argv if --debug.
18077
18078 2010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
18079
18080 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
18081 * nto-x86-low.c: Include server.h
18082
18083 2010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
18084
18085 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
18086 be consistent with other sources of this directory.
18087 (init_registers_amd64): Correct name of source file of this function
18088 in the comment.
18089
18090 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
18091
18092 * configure.srv (x86_64-*-mingw*): New configuration for Windows
18093 64-bit executables.
18094
18095 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
18096
18097 * win32-i386-low.c: Add 64-bit support.
18098 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
18099 (init_registers_amd64): Declare.
18100 (mappings): Add 64-bit version of array.
18101 (init_windows_x86): New function.
18102 (the_low_target): Change init_arch field to init_windows_x86.
18103
18104 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
18105
18106 * win32-low.c: Adapt to support also 64-bit architecture.
18107 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
18108 (get_image_name): Use SIZE_T type for local variable `done'.
18109 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
18110 (toolhelp_get_dll_name): Idem.
18111 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
18112 Use uintptr_t typecast to avoid warning.
18113 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
18114 (handle_exception): Use phex_nz to avoid warning.
18115 (win32_wait): Remove unused local variable `process'.
18116
18117 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
18118
18119 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
18120 `amd64-avx.o'.
18121
18122 2010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
18123
18124 * configure.ac: Use `ws2_32' library for srv_mingw.
18125 * configure: Regenerate.
18126 * gdbreplay.c: Include winsock2.h instead of winsock.h.
18127 * remote-utils.c: Likewise.
18128
18129 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
18130
18131 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
18132 if __x86_64__ is defined.
18133
18134 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
18135
18136 * configure: Regenerate.
18137
18138 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
18139
18140 * server.c (handle_query): Handle 'qGetTIBAddr' query.
18141 * target.h (target_ops): New get_tib_address field.
18142 * win32-low.h (win32_thread_info): Add thread_local_base field.
18143 * win32-low.c (child_add_thread): Add tlb argument.
18144 Set thread_local_base field to TLB.
18145 (get_child_debug_event): Adapt to child_add_thread change.
18146 (win32_get_tib_address): New function.
18147 (win32_target_ops): Set get_tib_address field to
18148 win32_get_tib_address.
18149 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
18150
18151 2010-04-12 Pedro Alves <pedro@codesourcery.com>
18152
18153 * linux-low.c (linux_mourn): Also remove the process.
18154 * server.c (handle_target_event): Don't remove the process here.
18155 * nto-low.c (nto_mourn): New.
18156 (nto_target_ops): Install it.
18157 * spu-low.c (spu_mourn): New.
18158 (spu_target_ops): Install it.
18159 * win32-low.c (win32_mourn): New.
18160 (win32_target_ops): Install it.
18161
18162 2010-04-12 Pedro Alves <pedro@codesourcery.com>
18163
18164 * server.h (buffer_xml_printf): Remove redundant `;'.
18165
18166 2010-04-12 Pedro Alves <pedro@codesourcery.com>
18167
18168 * regcache.c (set_register_cache): Invalidate regcaches before
18169 changing the register cache layout.
18170 (regcache_invalidate_one): Allow a NULL regcache.
18171 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
18172 regcaches before changing the register cache layout or the target
18173 regsets.
18174
18175 2010-04-12 H.J. Lu <hongjiu.lu@intel.com>
18176
18177 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
18178 variable warning on Linux/x86-64.
18179
18180 2010-04-11 Pedro Alves <pedro@codesourcery.com>
18181
18182 GDBserver disconnected tracing support.
18183
18184 * linux-low.c (linux_remove_process): Delete.
18185 (add_lwp): Don't set last_resume_kind here.
18186 (linux_kill): Use `mourn'.
18187 (linux_detach): Use `thread_db_detach', and `mourn'.
18188 (linux_mourn): New.
18189 (linux_attach_lwp_1): Adjust comment.
18190 (linux_attach): last_resume_kind moved the thread_info; adjust.
18191 (status_pending_p_callback): Adjust.
18192 (linux_wait_for_event_1): Adjust.
18193 (count_events_callback, select_singlestep_lwp_callback)
18194 (select_event_lwp_callback, cancel_breakpoints_callback)
18195 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
18196 (proceed_one_lwp): Adjust.
18197 (linux_async): Add debug output.
18198 (linux_thread_stopped): New.
18199 (linux_pause_all): New.
18200 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
18201 linux_pause_all.
18202 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
18203 (thread_db_free): Delete declaration.
18204 (thread_db_detach, thread_db_mourn): Declare.
18205 * thread-db.c (thread_db_init): Use thread_db_mourn.
18206 (thread_db_free): Delete, split in two.
18207 (disable_thread_event_reporting): New.
18208 (thread_db_detach): New.
18209 (thread_db_mourn): New.
18210
18211 * server.h (struct thread_info) <last_resume_kind>: New field.
18212 <attached>: Add comment.
18213 <gdb_detached>: New field.
18214 (handler_func): Change return type to int.
18215 (handle_serial_event, handle_target_event): Ditto.
18216 (gdb_connected): Declare.
18217 (tracing): Delete.
18218 (disconnected_tracing): Declare.
18219 (stop_tracing): Declare.
18220
18221 * server.c (handle_query) <qSupported>: Report support for
18222 disconnected tracing.
18223 (queue_stop_reply_callback): Account for running threads.
18224 (gdb_wants_thread_stopped): New.
18225 (gdb_wants_all_threads_stopped): New.
18226 (gdb_reattached_process): New.
18227 (handle_status): Clear the `gdb_detached' flag of all processes.
18228 In all-stop, stop all threads.
18229 (main): Be sure to leave tfind mode. Handle disconnected tracing.
18230 (process_serial_event): If the remote connection breaks, or if an
18231 exit was forced with "monitor exit", force an event loop exit.
18232 Handle disconnected tracing on detach.
18233 (handle_serial_event): Adjust.
18234 (handle_target_event): If GDB isn't connected, forward events back
18235 to the inferior, unless the last process exited, in which case,
18236 exit gdbserver. Adjust interface.
18237
18238 * remote-utils.c (remote_open): Don't block in accept. Instead
18239 register an event loop source on the listen socket file
18240 descriptor. Refactor bits into ...
18241 (listen_desc): ... this new global.
18242 (gdb_connected): ... this new function.
18243 (enable_async_notification): ... this new function.
18244 (handle_accept_event): ... this new function.
18245 (remote_close): Clear remote_desc.
18246
18247 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
18248
18249 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
18250 New fields.
18251 (mourn_inferior): Define.
18252 (target_process_qsupported): Avoid the dangling else problem.
18253 (thread_stopped): Define.
18254 (pause_all): Define.
18255 (target_waitstatus_to_string): Declare.
18256 * target.c (target_waitstatus_to_string): New.
18257
18258 * tracepoint.c (tracing): Make extern.
18259 (disconnected_tracing): New.
18260 (stop_tracing): Make extern. Handle tracing stops due to GDB
18261 disconnecting.
18262 (cmd_qtdisconnected): New.
18263 (cmd_qtstatus): Report disconnected tracing status in trace reply.
18264 (handle_tracepoint_general_set): Handle QTDisconnected.
18265
18266 * event-loop.c (event_handler_func): Change return type to int.
18267 (process_event): Bail out if the event handler wants the event
18268 loop to stop.
18269 (handle_file_event): Ditto.
18270 (start_event_loop): Bail out if the event handler wants the event
18271 loop to stop.
18272
18273 * nto-low.c (nto_target_ops): Adjust.
18274 * spu-low.c (spu_wait): Don't remove the process here.
18275 (spu_target_ops): Adjust.
18276 * win32-low.c (win32_wait): Don't remove the process here.
18277 (win32_target_ops): Adjust.
18278
18279 2010-04-11 Pedro Alves <pedro@codesourcery.com>
18280
18281 * regcache.c (realloc_register_cache): Invalidate inferior's
18282 regcache before recreating it.
18283
18284 2010-04-09 Pedro Alves <pedro@codesourcery.com>
18285
18286 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
18287
18288 2010-04-09 Stan Shebs <stan@codesourcery.com>
18289 Pedro Alves <pedro@codesourcery.com>
18290
18291 * server.h (LONGEST): New.
18292 (struct thread_info) <while_stepping>: New field.
18293 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
18294 Declare.
18295 (initialize_tracepoint, handle_tracepoint_general_set)
18296 (handle_tracepoint_query, tracepoint_finished_step)
18297 (tracepoint_was_hit, release_while_stepping_state_list):
18298 (current_traceframe): Declare.
18299 * server.c (handle_general_set): Handle tracepoint packets.
18300 (read_memory): New.
18301 (write_memory): New.
18302 (handle_search_memory_1): Use read_memory.
18303 (handle_query): Report support for conditional tracepoints, trace
18304 state variables, and tracepoint sources. Handle tracepoint
18305 queries.
18306 (main): Initialize the tracepoints module.
18307 (process_serial_event): Handle traceframe reads/writes.
18308
18309 * linux-low.c (handle_tracepoints): New.
18310 (linux_wait_1): Call it.
18311 (linux_resume_one_lwp): Handle while-stepping.
18312 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
18313 (linux_target_ops): Install them.
18314 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
18315 New field.
18316 * linux-x86-low.c (x86_supports_tracepoints): New.
18317 (the_low_target). Install it.
18318
18319 * mem-break.h (delete_breakpoint): Declare.
18320 * mem-break.c (delete_breakpoint): Make external.
18321
18322 * target.h (struct target_ops): Add `supports_tracepoints',
18323 `read_pc', and `write_pc' fields.
18324 (target_supports_tracepoints): Define.
18325 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
18326 (phex_nz): New.
18327
18328 * regcache.h (struct regcache) <registers_owned>: New field.
18329 (init_register_cache, regcache_cpy): Declare.
18330 (regcache_read_pc, regcache_write_pc): Declare.
18331 (register_cache_size): Declare.
18332 (supply_regblock): Declare.
18333 * regcache.c (init_register_cache): New.
18334 (new_register_cache): Use it.
18335 (regcache_cpy): New.
18336 (register_cache_size): New.
18337 (supply_regblock): New.
18338 (regcache_read_pc, regcache_write_pc): New.
18339
18340 * tracepoint.c: New.
18341
18342 * Makefile.in (OBS): Add tracepoint.o.
18343 (tracepoint.o): New rule.
18344
18345 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
18346
18347 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
18348 (i386-mmx.o): New.
18349 (i386-mmx.c): Likewise.
18350 (i386-mmx-linux.o): Likewise.
18351 (i386-mmx-linux.c): Likewise.
18352
18353 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
18354 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
18355 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
18356 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
18357
18358 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
18359 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
18360 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
18361
18362 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
18363
18364 * Makefile.in (clean): Updated.
18365 (i386-avx.o): New.
18366 (i386-avx.c): Likewise.
18367 (i386-avx-linux.o): Likewise.
18368 (i386-avx-linux.c): Likewise.
18369 (amd64-avx.o): Likewise.
18370 (amd64-avx.c): Likewise.
18371 (amd64-avx-linux.o): Likewise.
18372 (amd64-avx-linux.c): Likewise.
18373
18374 * configure.srv (srv_i386_regobj): Add i386-avx.o.
18375 (srv_i386_linux_regobj): Add i386-avx-linux.o.
18376 (srv_amd64_regobj): Add amd64-avx.o.
18377 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
18378 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
18379 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
18380 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
18381 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
18382 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
18383 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
18384
18385 * i387-fp.c: Include "i386-xstate.h".
18386 (i387_xsave): New.
18387 (i387_cache_to_xsave): Likewise.
18388 (i387_xsave_to_cache): Likewise.
18389 (x86_xcr0): Likewise.
18390
18391 * i387-fp.h (i387_cache_to_xsave): Likewise.
18392 (i387_xsave_to_cache): Likewise.
18393 (x86_xcr0): Likewise.
18394
18395 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
18396 * linux-crisv32-low.c (target_regsets): Likewise.
18397 * linux-m68k-low.c (target_regsets): Likewise.
18398 * linux-mips-low.c (target_regsets): Likewise.
18399 * linux-ppc-low.c (target_regsets): Likewise.
18400 * linux-s390-low.c (target_regsets): Likewise.
18401 * linux-sh-low.c (target_regsets): Likewise.
18402 * linux-sparc-low.c (target_regsets): Likewise.
18403 * linux-xtensa-low.c (target_regsets): Likewise.
18404
18405 * linux-low.c: Include <sys/uio.h>.
18406 (regsets_fetch_inferior_registers): Support nt_type.
18407 (regsets_store_inferior_registers): Likewise.
18408 (linux_process_qsupported): New.
18409 (linux_target_ops): Add linux_process_qsupported.
18410
18411 * linux-low.h (regset_info): Add nt_type.
18412 (linux_target_ops): Add process_qsupported.
18413
18414 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
18415 and <sys/uio.h>.
18416 (init_registers_i386_avx_linux): New.
18417 (init_registers_amd64_avx_linux): Likewise.
18418 (xmltarget_i386_linux_no_xml): Likewise.
18419 (xmltarget_amd64_linux_no_xml): Likewise.
18420 (PTRACE_GETREGSET): Likewise.
18421 (PTRACE_SETREGSET): Likewise.
18422 (x86_fill_xstateregset): Likewise.
18423 (x86_store_xstateregset): Likewise.
18424 (use_xml): Likewise.
18425 (x86_linux_update_xmltarget): Likewise.
18426 (x86_linux_process_qsupported): Likewise.
18427 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
18428 (x86_arch_setup): Don't call init_registers_amd64_linux nor
18429 init_registers_i386_linux here. Call
18430 x86_linux_update_xmltarget.
18431 (the_low_target): Add x86_linux_process_qsupported.
18432
18433 * server.c (handle_query): Call target_process_qsupported.
18434
18435 * target.h (target_ops): Add process_qsupported.
18436 (target_process_qsupported): New.
18437
18438 2010-04-03 Pedro Alves <pedro@codesourcery.com>
18439
18440 * inferiors.c (add_thread): Set last_status kind to
18441 TARGET_WAITKIND_IGNORE.
18442 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
18443 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
18444 (linux_wait_1): Move `thread' local definition to block that uses
18445 it. Don't NULL initialize `event_child'.
18446 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
18447 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
18448 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
18449
18450 2010-04-01 Pedro Alves <pedro@codesourcery.com>
18451
18452 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
18453 an extended waitstatus, or by a watchpoint.
18454 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
18455 thread was stepping or has been stopped by a watchpoint.
18456
18457 2010-04-01 Pedro Alves <pedro@codesourcery.com>
18458
18459 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
18460 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
18461 of another, then delete the previous, and validate all
18462 breakpoints.
18463 (validate_inserted_breakpoint): New.
18464 (delete_disabled_breakpoints): New.
18465 (validate_breakpoints): New.
18466 (check_mem_read): Validate breakpoints before trusting their
18467 shadow. Delete disabled breakpoints.
18468 (check_mem_write): Validate breakpoints before trusting they
18469 should be inserted. Delete disabled breakpoints.
18470 * mem-break.h (validate_breakpoints):
18471 * server.c (handle_query): Validate breakpoints when we see a
18472 qSymbol query.
18473
18474 2010-04-01 Pedro Alves <pedro@codesourcery.com>
18475
18476 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
18477 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
18478 if we could tell there's a GDB breakpoint at stop_pc.
18479 (need_step_over_p): Don't do a step over if we find a GDB
18480 breakpoint at the resume PC.
18481
18482 * mem-break.c (struct raw_breakpoint): New.
18483 (enum bkpt_type): New type `gdb_breakpoint'.
18484 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
18485 fields. New field `raw'.
18486 (find_raw_breakpoint_at): New.
18487 (set_raw_breakpoint_at): Handle refcounting. Create a raw
18488 breakpoint instead.
18489 (set_breakpoint_at): Adjust.
18490 (delete_raw_breakpoint): New.
18491 (release_breakpoint): New.
18492 (delete_breakpoint): Rename to...
18493 (delete_breakpoint_1): ... this. Add proc parameter. Use
18494 release_breakpoint. Return ENOENT.
18495 (delete_breakpoint): Reimplement.
18496 (find_breakpoint_at): Delete.
18497 (find_gdb_breakpoint_at): New.
18498 (delete_breakpoint_at): Delete.
18499 (set_gdb_breakpoint_at): New.
18500 (delete_gdb_breakpoint_at): New.
18501 (gdb_breakpoint_here): New.
18502 (set_reinsert_breakpoint): Use release_breakpoint.
18503 (uninsert_breakpoint): Rename to ...
18504 (uninsert_raw_breakpoint): ... this.
18505 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
18506 (reinsert_raw_breakpoint): Change parameter type to
18507 raw_breakpoint.
18508 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
18509 instead.
18510 (check_breakpoints): Adjust. Use release_breakpoint.
18511 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
18512 (breakpoint_inserted_here): Ditto.
18513 (check_mem_read): Adjust to iterate over raw breakpoints instead.
18514 Don't trust the breakpoint's shadow if it is not inserted.
18515 (check_mem_write): Adjust to iterate over raw breakpoints instead.
18516 (delete_all_breakpoints): Adjust.
18517 (free_all_breakpoints): Mark all breakpoints as uninserted, and
18518 use delete_breakpoint_1.
18519
18520 * mem-break.h (breakpoints_supported): Delete declaration.
18521 (set_gdb_breakpoint_at): Declare.
18522 (gdb_breakpoint_here): Declare.
18523 (delete_breakpoint_at): Delete.
18524 (delete_gdb_breakpoint_at): Declare.
18525
18526 * server.h (struct raw_breakpoint): Forward declare.
18527 (struct process_info): New field `raw_breakpoints'.
18528
18529 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
18530 breakpoints.
18531
18532 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18533
18534 * linux-low.c (status_pending_p_callback): Fix comment.
18535 (linux_wait_for_event_1): Move most of the internal breakpoint
18536 handling from here...
18537 (linux_wait_1): ... to here.
18538 (count_events_callback): New.
18539 (select_singlestep_lwp_callback): New.
18540 (select_event_lwp_callback): New.
18541 (cancel_breakpoints_callback): New.
18542 (select_event_lwp): New.
18543 (linux_wait_1): Simplify internal breakpoint handling. Give equal
18544 priority to all LWPs that have had events that should be reported
18545 to the client. Cancel breakpoints when about to reporting the
18546 event to the client, not while stopping lwps. No longer cancel
18547 finished single-steps here.
18548 (cancel_finished_single_step): Delete.
18549 (cancel_finished_single_steps): Delete.
18550
18551 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18552
18553 * mem-break.c (enum bkpt_type): New.
18554 (struct breakpoint): New field `type'.
18555 (set_breakpoint_at): Change return type to struct breakpoint
18556 pointer. Set type to `other_breakpoint' by default.
18557 (delete_breakpoint): Rewrite, supporting more than one breakpoint
18558 in the breakpoint list.
18559 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
18560 (reinsert_breakpoint): Rename to ...
18561 (reinsert_raw_breakpoint): ... this.
18562 (reinsert_breakpoints_at): Adjust.
18563 * mem-break.h (struct breakpoint): Declare.
18564 (set_breakpoint_at): Change return type to struct breakpoint
18565 pointer.
18566
18567 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18568
18569 * server.c (handle_query): Assign, not compare.
18570
18571 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18572
18573 Teach linux gdbserver to step-over-breakpoints.
18574
18575 * linux-low.c (can_hardware_single_step): New.
18576 (supports_breakpoints): New.
18577 (handle_extended_wait): If stopping threads, read the stop pc of
18578 the new cloned LWP.
18579 (get_pc): New.
18580 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
18581 low target doesn't support retrieving the PC.
18582 (add_lwp): Set last_resume_kind to resume_continue.
18583 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
18584 (linux_attach): Don't clear stop_expected. Set the lwp's
18585 last_resume_kind to resume_stop.
18586 (linux_detach_one_lwp): Don't check for removed breakpoints.
18587 (check_removed_breakpoint): Delete.
18588 (status_pending_p): Rename to ...
18589 (status_pending_p_callback): ... this. Don't check for removed
18590 breakpoints. Don't consider threads that are stopped from GDB's
18591 perspective.
18592 (linux_wait_for_lwp): Always read the stop_pc here.
18593 (cancel_breakpoint): New.
18594 (step_over_bkpt): New global.
18595 (linux_wait_for_event_1): Implement stepping over breakpoints.
18596 (gdb_wants_lwp_stopped): New.
18597 (gdb_wants_all_stopped): New.
18598 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
18599 single-step traps here. Store the thread's last reported target
18600 wait status.
18601 (send_sigstop): Don't clear stop_expected. Always set it,
18602 instead.
18603 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
18604 (cancel_finished_single_step): New.
18605 (cancel_finished_single_steps): New.
18606 (wait_for_sigstop): Don't cancel finished single-step traps here.
18607 (linux_resume_one_lwp): Don't check for removed breakpoints.
18608 Don't set `step' on non-hardware step archs.
18609 (linux_set_resume_request): Ignore resume_stop requests if already
18610 stopping or stopped. Set the lwp's last_resume_kind.
18611 (resume_status_pending_p): Don't check for removed breakpoints.
18612 (need_step_over_p): New.
18613 (start_step_over): New.
18614 (finish_step_over): New.
18615 (linux_resume_one_thread): Always queue a sigstop for resume_stop
18616 requests. Clear the thread's last reported target waitstatus.
18617 Don't use the `suspended' flag. Don't consider pending breakpoints.
18618 (linux_resume): Start a step-over if necessary.
18619 (proceed_one_lwp): New.
18620 (proceed_all_lwps): New.
18621 (unstop_all_lwps): New.
18622 * linux-low.h (struct lwp_info): Rewrite comment for the
18623 `suspended' flag. Add the `stop_pc' field. Delete the
18624 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
18625 Add `'last_resume_kind' and `need_step_over' fields.
18626 * inferiors.c (struct thread_info): Delete, moved elsewhere.
18627 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
18628 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
18629 (set_raw_breakpoint_at): New.
18630 (set_breakpoint_at): Rewrite to use it.
18631 (reinsert_breakpoint_handler): Delete.
18632 (set_reinsert_breakpoint): New.
18633 (reinsert_breakpoint_by_bp): Delete.
18634 (delete_reinsert_breakpoints): New.
18635 (uninsert_breakpoint): Rewrite.
18636 (uninsert_breakpoints_at): New.
18637 (reinsert_breakpoint): Rewrite.
18638 (reinsert_breakpoints_at): New.
18639 (check_breakpoints): Rewrite.
18640 (breakpoint_here): New.
18641 (breakpoint_inserted_here): New.
18642 (check_mem_read): Adjust.
18643 * mem-break.h (breakpoints_supported, breakpoint_here)
18644 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
18645 (reinsert_breakpoint_by_bp): Delete declaration.
18646 (delete_reinsert_breakpoints): Declare.
18647 (reinsert_breakpoint): Delete declaration.
18648 (reinsert_breakpoints_at): Declare.
18649 (uninsert_breakpoint): Delete declaration.
18650 (uninsert_breakpoints_at): Declare.
18651 (check_breakpoints): Adjust prototype.
18652 * server.h: Adjust include order.
18653 (struct thread_info): Declare here. Add a `last_status' field.
18654
18655 2010-03-23 Michael Snyder <msnyder@vmware.com>
18656
18657 * server.c (crc32): New function.
18658 (handle_query): Add handling for 'qCRC:' request.
18659
18660 2010-03-23 Pedro Alves <pedro@codesourcery.com>
18661
18662 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
18663 lwp had been stopped by a watchpoint.
18664
18665 2010-03-16 Pedro Alves <pedro@codesourcery.com>
18666
18667 * server.h (internal_error): Declare.
18668 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
18669 * utils.c (internal_error): New function.
18670
18671 2010-03-15 Andreas Schwab <schwab@redhat.com>
18672
18673 * configure.srv: Fix typo setting srv_regobj.
18674
18675 2010-03-15 Pedro Alves <pedro@codesourcery.com>
18676
18677 * linux-low.c (fetch_register): Avoid passing a non string literal
18678 format to `error'.
18679 (usr_store_inferior_registers): Ditto.
18680
18681 2010-03-14 Pedro Alves <pedro@codesourcery.com>
18682
18683 * linux-low.c (linux_write_memory): Bail out early if peeking
18684 memory failed.
18685
18686 2010-03-14 Pedro Alves <pedro@codesourcery.com>
18687
18688 * linux-low.h (struct lwp_info): New fields
18689 `stopped_by_watchpoint' and `stopped_data_address'.
18690 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
18691 here, and cache them in the lwp object.
18692 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
18693 directly.
18694 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
18695 field.
18696 (linux_stopped_by_watchpoint): Rewrite.
18697 (linux_stopped_data_address): Rewrite.
18698
18699 2010-03-06 Simo Melenius <simo.melenius@iki.fi>
18700
18701 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
18702 switching the current inferior, not before.
18703
18704 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
18705
18706 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
18707 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
18708 i386-linux.c and amd64-linux.c.
18709 (reg-i386.o): Removed.
18710 (reg-i386.c): Likewise.
18711 (reg-i386-linux.o): Likewise.
18712 (reg-i386-linux.c): Likewise.
18713 (reg-x86-64.o): Likewise.
18714 (reg-x86-64.c): Likewise.
18715 (reg-x86-64-linux.o): Likewise.
18716 (reg-x86-64-linux.c): Likewise.
18717 (i386.o): New.
18718 (i386.c): Likewise.
18719 (i386-linux.o): Likewise.
18720 (i386-linux.c): Likewise.
18721 (amd64.o): Likewise.
18722 (amd64.c): Likewise.
18723 (amd64-linux.o): Likewise.
18724 (amd64-linux.c): Likewise.
18725
18726 * configure.srv (srv_i386_regobj): New.
18727 (srv_i386_linux_regobj): Likewise.
18728 (srv_amd64_regobj): Likewise.
18729 (srv_amd64_linux_regobj): Likewise.
18730 (srv_i386_32bit_xmlfiles): Likewise.
18731 (srv_i386_64bit_xmlfiles): Likewise.
18732 (srv_i386_xmlfiles): Likewise.
18733 (srv_amd64_xmlfiles): Likewise.
18734 (srv_i386_linux_xmlfiles): Likewise.
18735 (srv_amd64_linux_xmlfiles): Likewise.
18736 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
18737 srv_xmlfiles to $srv_i386_xmlfiles.
18738 (i[34567]86-*-mingw32ce*): Likewise.
18739 (i[34567]86-*-mingw*): Likewise.
18740 (i[34567]86-*-nto*): Likewise.
18741 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
18742 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
18743 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
18744 (x86_64-*-linux*): Likewise.
18745
18746 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
18747 (init_registers_amd64_linux): New.
18748 (x86_arch_setup): Replace init_registers_x86_64_linux with
18749 init_registers_amd64_linux.
18750
18751 2010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
18752
18753 * configure.ac: Check for libdl. If it is not available link against
18754 static libthread_db.
18755 * configure: Regenerate.
18756
18757 2010-02-22 Pedro Alves <pedro@codesourcery.com>
18758
18759 PR9605
18760
18761 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
18762 handing a read watchpoint.
18763 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
18764
18765 2010-02-12 Doug Evans <dje@google.com>
18766
18767 * linux-low.c (linux_supports_tracefork_flag): Document.
18768 (linux_look_up_symbols): Add comment.
18769
18770 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
18771
18772 * regcache.c (supply_register): Clear regcache if buf is NULL.
18773
18774 2010-02-02 Nicolas Roche <roche@sourceware.org>
18775 Joel Brobecker <brobecker@adacore.com>
18776
18777 * inferiors.c (find_inferior): Add function documentation.
18778 (unloaded_dll): Handle the case where the unloaded dll has not
18779 been previously registered in the dll list.
18780
18781 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
18782
18783 * linux-arm-low.c (thumb_breakpoint_len): Delete.
18784 (thumb2_breakpoint): New.
18785 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
18786
18787 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
18788
18789 * linux-low.c (get_stop_pc): Check for SIGTRAP.
18790 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
18791 breakpoints.
18792
18793 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18794
18795 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
18796
18797 2010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
18798
18799 * linux-s390-low.c (s390_collect_ptrace_register)
18800 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
18801
18802 2010-01-21 Doug Evans <dje@google.com>
18803
18804 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
18805 (PTRACE_ARG4_TYPE): New macro.
18806 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
18807 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
18808 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
18809 (usr_store_inferior_registers): Ditto.
18810 (linux_read_memory, linux_write_memory): Ditto.
18811 (linux_test_for_tracefork): Ditto.
18812
18813 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
18814 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
18815
18816 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18817
18818 * proc-service.c (ps_lgetregs): Don't refetch registers from the
18819 target.
18820
18821 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18822
18823 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
18824 prototype to take a regcache. Adjust.
18825
18826 2010-01-20 Pedro Alves <pedro@codesourcery.com>
18827
18828 * regcache.h (struct thread_info): Forward declare.
18829 (struct regcache): New.
18830 (new_register_cache): Adjust prototype.
18831 (get_thread_regcache): Declare.
18832 (free_register_cache): Adjust prototype.
18833 (registers_to_string, registers_from_string): Ditto.
18834 (supply_register, supply_register_by_name, collect_register)
18835 (collect_register_as_string, collect_register_by_name): Ditto.
18836 * regcache.c (struct inferior_regcache_data): Delete.
18837 (get_regcache): Rename to ...
18838 (get_thread_regcache): ... this. Adjust. Switch inferior before
18839 fetching registers.
18840 (regcache_invalidate_one): Adjust.
18841 (regcache_invalidate): Fix prototype.
18842 (new_register_cache): Return the new register cache.
18843 (free_register_cache): Change prototype.
18844 (realloc_register_cache): Adjust.
18845 (registers_to_string): Change prototype to take a regcache. Adjust.
18846 (registers_from_string): Ditto.
18847 (register_data): Ditto.
18848 (supply_register): Ditto.
18849 (supply_register_by_name): Ditto.
18850 (collect_register): Ditto.
18851 (collect_register_as_string): Ditto.
18852 (collect_register_by_name): Ditto.
18853 * server.c (process_serial_event): Adjust.
18854 * linux-low.h (regset_fill_func, regset_store_func): Change
18855 prototype.
18856 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
18857 Change prototype.
18858 * linux-low.c (get_stop_pc): Adjust.
18859 (check_removed_breakpoint): Adjust.
18860 (linux_wait_for_event): Adjust.
18861 (linux_resume_one_lwp): Adjust.
18862 (fetch_register): Add regcache parameter. Adjust.
18863 (usr_store_inferior_registers): Ditto.
18864 (regsets_fetch_inferior_registers): Ditto.
18865 (regsets_store_inferior_registers): Ditto.
18866 (linux_fetch_registers, linux_store_registers): Ditto.
18867 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
18868 regcache. Adjust.
18869 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
18870 Ditto.
18871 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
18872 prototype to take a regcache.
18873 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
18874 * remote-utils.c (convert_ascii_to_int, outreg)
18875 (prepare_resume_reply): Change prototype to take a regcache.
18876 Adjust.
18877 * target.h (struct target_ops) <fetch_registers, store_registers>:
18878 Change prototype to take a regcache.
18879 (fetch_inferior_registers, store_inferior_registers): Change
18880 prototype to take a regcache. Adjust.
18881 * proc-service.c (ps_lgetregs): Adjust.
18882 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
18883 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
18884 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
18885 take a regcache. Adjust.
18886 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
18887 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
18888 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
18889 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
18890 * linux-cris-low.c (cris_get_pc, cris_set_pc)
18891 (cris_cannot_fetch_register):
18892 (cris_breakpoint_at): Change prototype to take a regcache.
18893 Adjust.
18894 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
18895 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
18896 to take a regcache. Adjust.
18897 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
18898 Adjust.
18899 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
18900 take a regcache. Adjust.
18901 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
18902 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
18903 (m68k_set_pc): Change prototype to take a regcache. Adjust.
18904 * linux-mips-low.c (mips_get_pc):
18905 (mips_set_pc): Change prototype to take a regcache. Adjust.
18906 (mips_reinsert_addr): Adjust.
18907 (mips_collect_register): Change prototype to take a regcache.
18908 Adjust.
18909 (mips_supply_register):
18910 (mips_collect_register_32bit, mips_supply_register_32bit)
18911 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
18912 (mips_store_fpregset): Ditto.
18913 * linux-ppc-low.c (ppc_supply_ptrace_register)
18914 (ppc_supply_ptrace_register): Ditto.
18915 (parse_spufs_run): Adjust.
18916 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
18917 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
18918 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
18919 take a regcache. Adjust.
18920 * linux-s390-low.c (s390_collect_ptrace_register)
18921 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
18922 (s390_set_pc): Change prototype to take a regcache. Adjust.
18923 (s390_arch_setup): Adjust.
18924 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
18925 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
18926 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
18927 (sparc_fill_gregset, sparc_store_gregset_from_stack)
18928 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
18929 regcache. Adjust.
18930 (sparc_breakpoint_at): Adjust.
18931 * linux-xtensa-low.c (xtensa_fill_gregset):
18932 (xtensa_store_gregset):
18933 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
18934 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
18935 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
18936 prototype to take a regcache. Adjust.
18937 * win32-arm-low.c (arm_fetch_inferior_register)
18938 (arm_store_inferior_register): Change prototype to take a
18939 regcache. Adjust.
18940 * win32-i386-low.c (i386_fetch_inferior_register)
18941 (i386_store_inferior_register): Change prototype to take a
18942 regcache. Adjust.
18943 * win32-low.c (child_fetch_inferior_registers)
18944 (child_store_inferior_registers): Change prototype to take a
18945 regcache. Adjust.
18946 (win32_wait): Adjust.
18947 (win32_fetch_inferior_registers): Change prototype to take a
18948 regcache. Adjust.
18949 (win32_store_inferior_registers): Adjust.
18950 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
18951 store_inferior_register>: Change prototype to take a regcache.
18952
18953 2010-01-20 Doug Evans <dje@google.com>
18954
18955 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
18956 #ifdef.
18957 (linux_wait_for_event1, linux_init_signals): Ditto.
18958 (W_STOPCODE): Provide definition if missing.
18959
18960 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
18961
18962 * linux-low.c (linux_core_of_thread): New.
18963 (compare_ints, show_process, list_threads): New.
18964 (linux_qxfer_osdata): Report threads and cores.
18965 (linux_target_op): Register linux_core_of_thread.
18966 * remote-utils.c (prepare_resume_reply): Report the core.
18967 (buffer_xml_printf): Support %d specifier.
18968 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
18969 New.
18970 (handle_query): Handle qXfer:threads. Announce availability
18971 thereof.
18972 * target.h (struct target_ops): New field core_of_thread.
18973
18974 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
18975
18976 * Makefile.in (clean): Remove new generated files.
18977 (reg-s390.o, reg-s390.c): Remove rules.
18978 (reg-s390x.o, reg-s390x.c): Likewise.
18979 (s390-linux32.o, s390-linux32.c): Add rules.
18980 (s390-linux64.o, s390-linux64.c): Likewise.
18981 (s390x-linux64.o, s390x-linux64.c): Likewise.
18982 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
18983 * linux-s390-low.c: Include <elf.h>.
18984 (HWCAP_S390_HIGH_GPRS): Define if undefined.
18985 (init_registers_s390): Remove prototype.
18986 (init_registers_s390x): Likewise.
18987 (init_registers_s390_linux32): Add prototype.
18988 (init_registers_s390_linux64): Likewise.
18989 (init_registers_s390x_linux64): Likewise.
18990 (s390_num_regs_3264): New define.
18991 (s390_regmap_3264): New global variable.
18992 (s390_cannot_fetch_register): Remove obsolete check.
18993 (s390_cannot_store_register): Likewise.
18994 (s390_collect_ptrace_register): Handle upper/lower register halves.
18995 (s390_supply_ptrace_register): Likewise.
18996 (s390_fill_gregset): Update to register number changes.
18997 (s390_get_hwcap): New routine.
18998 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
18999 Install appropriate regmap and register set.
19000
19001 2010-01-01 Joel Brobecker <brobecker@adacore.com>
19002
19003 * server.c (gdbserver_version): Update copyright year to 2010.
19004 * gdbreplay.c (gdbreplay_version): Likewise.
19005
19006 2009-12-28 Doug Evans <dje@google.com>
19007
19008 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
19009 elf/external.h. Include <elf.h> instead but only if necessary.
19010
19011 2009-12-28 Pedro Alves <pedro@codesourcery.com>
19012
19013 * linux-low.c (linux_remove_process): Remove `detaching'
19014 parameter. Don't release/detach from thread_db here.
19015 (linux_kill): Release/detach from thread_db here, ...
19016 (linux_detach): ... and here, before actually detaching.
19017 (linux_wait_1): ... and here, when a process exits.
19018 * thread-db.c (any_thread_of): New.
19019 (thread_db_free): Switch the current inferior to a thread of the
19020 passed in process.
19021
19022 2009-12-21 Doug Evans <dje@google.com>
19023
19024 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
19025
19026 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
19027 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
19028 warning ifndef __NR_tkill. Move setting of errno there too.
19029 Delete unnecessary resetting of errno after syscall.
19030 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
19031
19032 * configure.ac: Check for dladdr.
19033 * config.in: Regenerate.
19034 * configure: Regenerate.
19035 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
19036 (try_thread_db_load): Update.
19037
19038 * linux-low.c (my_waitpid): Delete unnecessary prototype.
19039
19040 2009-12-18 Doug Evans <dje@google.com>
19041
19042 * event-loop.c: Include unistd.h if it exists.
19043
19044 * linux-low.c (my_waitpid): Move definition away from being in
19045 between linux_tracefork_child/linux_test_for_tracefork.
19046
19047 * gdb_proc_service.h (psaddr_t): Fix type.
19048 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
19049 signature to match glibc.
19050
19051 2009-12-16 Doug Evans <dje@google.com>
19052
19053 * linux-low.c (linux_read_memory): Fix argument to read.
19054
19055 2009-11-26 Pedro Alves <pedro@codesourcery.com>
19056
19057 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
19058 events, don't leave current_inferior pointing at null.
19059
19060 2009-11-26 Pedro Alves <pedro@codesourcery.com>
19061
19062 * win32-low.c (LOG): Delete.
19063 (OUTMSG): Output to stderr.
19064 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
19065 on compile time LOG macro.
19066 (win32_wait): Fix debug output.
19067
19068 2009-11-26 Pedro Alves <pedro@codesourcery.com>
19069
19070 * win32-low.c (win32_add_one_solib): If the dll name is
19071 "ntdll.dll", prepend the system directory to the dll path.
19072
19073 2009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
19074
19075 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
19076
19077 2009-11-17 Nathan Sidwell <nathan@codesourcery.com>
19078 Vladimir Prus <vladimir@codesourcery.com>
19079
19080 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
19081 * configure.ac: Check for __mcoldfire__ and set
19082 gdb_cv_m68k_is_coldfire.
19083 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
19084 reg-cf.o and reg-m68k.o.
19085 * configure: Regenerated.
19086
19087 2009-11-16 Pedro Alves <pedro@codesourcery.com>
19088
19089 * linux-low.c (linux_remove_process): Add `detaching' parameter.
19090 Pass it to thread_db_free.
19091 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
19092 proper `detaching' argument to linux_remove_process.
19093 * linux-low.h (thread_db_free): Add `detaching' parameter.
19094 * thread-db.c (thread_db_init): Pass false as `detaching' argument
19095 to thread_db_free.
19096 (thread_db_free): Add `detaching' parameter. Only
19097 call td_ta_clear_event if detaching from process.
19098
19099 2009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
19100
19101 * thread-db.c (thread_db_free): Fix typo.
19102
19103 2009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
19104
19105 PR gdb/10838
19106 * thread-db.c (thread_db_free): Call td_ta_clear_event.
19107
19108 2009-11-03 Nathan Sidwell <nathan@codesourcery.com>
19109
19110 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
19111 with an i686 compiler.
19112 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
19113 needed.
19114 * configure: Rebuilt.
19115
19116 2009-10-29 Sandra Loosemore <sandra@codesourcery.com>
19117
19118 PR gdb/10783
19119
19120 * server.c (handle_search_memory_1): Correct read_addr initialization
19121 in loop for searching subsequent chunks.
19122
19123 2009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
19124
19125 * configure.ac: New --with-libthread-db option.
19126 * thread-db.c: Allow direct dependence on libthread_db.
19127 (thread_db_free): Adjust.
19128 * config.in: Regenerate.
19129 * configure: Likewise.
19130
19131 2009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
19132
19133 PR gdb/10757
19134 * thread-db.c (attach_thread): New function.
19135 (maybe_attach_thread): Return success/failure.
19136 (find_new_threads_callback): Adjust.
19137 (thread_db_find_new_threads): Loop until no new threads.
19138
19139 2009-10-13 Pedro Alves <pedro@codesourcery.com>
19140
19141 * proc-service.c (ps_lgetregs): Formatting.
19142
19143 2009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
19144
19145 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
19146 * configure.ac: Adjust.
19147 * linux-low.h (struct process_info_private): Move members to struct
19148 thread_db.
19149 (thread_db_free, thread_db_handle_monitor_command): New prototype.
19150 * linux-low.c (linux_remove_process): Adjust.
19151 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
19152 * server.c (handle_query): Move code ...
19153 (handle_monitor_command): ... here. New function.
19154 * target.h (struct target_ops): New member.
19155 * thread-db.c (struct thread_db): New.
19156 (libthread_db_search_path): New variable.
19157 (thread_db_create_event, thread_db_enable_reporting)
19158 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
19159 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
19160 (try_thread_db_load_1, dladdr_to_soname): New functions.
19161 (try_thread_db_load, thread_db_load_search): New functions.
19162 (thread_db_init): Search for libthread_db.
19163 (thread_db_free): New function.
19164 (thread_db_handle_monitor_command): Likewise.
19165 * config.in: Regenerate.
19166 * configure: Regenerate.
19167
19168 2009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
19169
19170 * spu-low.c (spu_kill): Wait for inferior to terminate.
19171 Call clear_inferiors.
19172 (spu_detach): Call clear_inferiors.
19173
19174 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19175
19176 * aclocal.m4: Regenerate.
19177 * config.in: Likewise.
19178 * configure: Likewise.
19179
19180 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
19181
19182 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
19183 (parse_spufs_run): New function.
19184 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
19185 (ppc_breakpoint_at): Handle SPU breakpoints.
19186
19187 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
19188
19189 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
19190 (SPUFS_MAGIC): Define.
19191 (spu_enumerate_spu_ids): New function.
19192 (linux_qxfer_spu): New function.
19193 (linux_target_ops): Install linux_qxfer_spu.
19194
19195 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
19196
19197 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
19198 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
19199 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
19200 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
19201 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
19202 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
19203 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
19204 (init_registers_powerpc_cell32l): Add prototype.
19205 (init_registers_powerpc_cell64l): Likewise.
19206 (ppc_arch_setup): Detect Cell/B.E. architecture.
19207
19208 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19209
19210 * Makefile.in (datarootdir): New variable.
19211
19212 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
19213
19214 * linux-low.c (linux_write_memory): Update debugging output.
19215 * Makefile.in (clean): Add new descriptions.
19216 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
19217 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
19218 * configure.srv: Add new files for arm*-*-linux*.
19219 * linux-arm-low.c: Add new declarations.
19220 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
19221 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
19222 (HWCAP_VFPv3D16): New.
19223 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
19224 instead of __IWMMXT__.
19225 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
19226 (arm_arch_setup): New.
19227 (target_regsets): Remove #ifdef. Add VFP regset.
19228 (the_low_target): Use arm_arch_setup.
19229
19230 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
19231
19232 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
19233 the main thread again.
19234
19235 2009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
19236
19237 Adding Neutrino gdbserver.
19238 * configure: Regenerated.
19239 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
19240 * configure.srv (i[34567]86-*-nto*): New target.
19241 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
19242 * remote-utils.c [__QNX__]: Include sys/iomgr.h
19243 (nto_comctrl) [__QNX__]: New function.
19244 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
19245
19246 2009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
19247
19248 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
19249 srv_tgtobj.
19250
19251 2009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
19252 Pedro Alves <pedro@codesourcery.com>
19253
19254 * win32-i386-low.c (i386_get_thread_context): Handle systems that
19255 don't support CONTEXT_EXTENDED_REGISTERS.
19256 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
19257 (the_low_target): Install them.
19258 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
19259 failing with ERROR_PIPE_NOT_CONNECTED.
19260
19261 2009-06-30 Doug Evans <dje@google.com>
19262 Pierre Muller <muller@ics.u-strasbg.fr>
19263
19264 Add h/w watchpoint support to x86-linux, win32-i386.
19265 * Makefile.in (SFILES): Add i386-low.c
19266 (i386_low_h): Define.
19267 (i386-low.o): Add dependencies.
19268 (linux-x86-low.o): Add i386-low.h dependency.
19269 (win32-i386-low.o): Ditto.
19270 * i386-low.c: New file.
19271 * i386-low.h: New file.
19272 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
19273 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
19274 * linux-low.c (linux_add_process): Initialize arch_private.
19275 (linux_remove_process): Free arch_private.
19276 (add_lwp): Initialize arch_private.
19277 (delete_lwp): Free arch_private.
19278 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
19279 provided.
19280 * linux-low.h (process_info_private): New member arch_private.
19281 (lwp_info): New member arch_private.
19282 (linux_target_ops): New members new_process, new_thread,
19283 prepare_to_resume.
19284 (ptid_of): New macro.
19285 * linux-x86-low.c: Include stddef.h, i386-low.h.
19286 (arch_process_info): New struct.
19287 (arch_lwp_info): New struct.
19288 (x86_linux_dr_get, x86_linux_dr_set): New functions.
19289 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
19290 (i386_dr_low_get_status): New function.
19291 (x86_insert_point, x86_remove_point): New functions.
19292 (x86_stopped_by_watchpoint): New function.
19293 (x86_stopped_data_address): New function.
19294 (x86_linux_new_process, x86_linux_new_thread): New functions.
19295 (x86_linux_prepare_to_resume): New function.
19296 (the_low_target): Add entries for insert_point, remove_point,
19297 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
19298 prepare_to_resume.
19299 * server.c (debug_hw_points): New global.
19300 (monitor_show_help): Document set debug-hw-points.
19301 (handle_query): Process "set debug-hw-points".
19302 * server.h (debug_hw_points): Declare.
19303 (paddress): Declare.
19304 * utils.c (NUMCELLS, CELLSIZE): New macros.
19305 (get_sell, xsnprintf, paddress): New functions.
19306 * win32-arm-low.c (the_low_target): Add entries for insert_point,
19307 remove_point, stopped_by_watchpoint, stopped_data_address.
19308 * win32-i386-low.c: Include i386-low.h.
19309 (debug_reg_state): Replaces dr.
19310 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
19311 (i386_dr_low_get_status): New function.
19312 (i386_insert_point, i386_remove_point): New functions.
19313 (i386_stopped_by_watchpoint): New function.
19314 (i386_stopped_data_address): New function.
19315 (i386_initial_stuff): Update.
19316 (get_thread_context,set_thread_context,i386_thread_added): Update.
19317 (the_low_target): Add entries for insert_point,
19318 remove_point, stopped_by_watchpoint, stopped_data_address.
19319 * win32-low.c (win32_insert_watchpoint): New function.
19320 (win32_remove_watchpoint): New function.
19321 (win32_stopped_by_watchpoint): New function.
19322 (win32_stopped_data_address): New function.
19323 (win32_target_ops): Add entries for insert_watchpoint,
19324 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
19325 * win32-low.h (win32_target_ops): New members insert_point,
19326 remove_point, stopped_by_watchpoint, stopped_data_address.
19327
19328 2009-06-25 Pedro Alves <pedro@codesourcery.com>
19329
19330 * server.c (process_serial_event): Re-return unsupported, not
19331 error, if the type isn't recognized. Re-allow supporting only
19332 insert or remove packets. Also call require_running for
19333 breakpoints. Add missing break statement to default case. Tidy.
19334 * target.h (struct target_ops): Rename insert_watchpoint to
19335 insert_point, and remove_watchpoint to remove_point.
19336
19337 * linux-low.h (struct linux_target_ops): Likewise.
19338 * linux-low.c (linux_insert_watchpoint): Rename to ...
19339 (linux_insert_point): ... this. Adjust.
19340 (linux_remove_watchpoint): Rename to ...
19341 (linux_remove_point): ... this. Adjust.
19342 (linux_target_ops): Adjust.
19343 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
19344 (cris_insert_point): ... this.
19345 (cris_remove_watchpoint): Rename to ...
19346 (cris_remove_point): ... this.
19347 (the_low_target): Adjust.
19348
19349 2009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
19350
19351 * server.c (handle_v_kill): Pass signal_pid to
19352 kill_inferior if multi_process is zero.
19353
19354 2009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
19355
19356 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
19357 * target.h (target_ops): Comment for *_watchpoint to make it clear
19358 the functions can get types '0' and '1'.
19359
19360 2009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
19361
19362 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
19363 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
19364 * regcache.c (get_regcache): Likewise.
19365 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
19366 * win32-low.c (child_fetch_inferior_registers): Remove check for
19367 regno 0.
19368
19369 2009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
19370 Pedro Alves <pedro@codesourcery.com>
19371
19372 * target.h (struct target_ops) <supports_multi_process>: New
19373 callback.
19374 (target_supports_multi_process): New.
19375 * server.c (handle_query): Even if GDB reports support, only
19376 enable multi-process if the target also supports it. Report
19377 multi-process support only if the target backend supports it.
19378 * linux-low.c (linux_supports_multi_process): New function.
19379 (linux_target_ops): Install it as target_supports_multi_process
19380 callback.
19381
19382 2009-05-24 Doug Evans <dje@google.com>
19383
19384 Global renaming of find_thread_pid to find_thread_ptid.
19385 * server.h (find_thread_ptid): Renamed from find_thread_pid.
19386 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
19387 All callers updated.
19388
19389 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
19390 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
19391 directly.
19392
19393 * linux-low.c (get_stop_pc): Print pc if debug_threads.
19394 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
19395 (linux_resume_one_lwp): Ditto.
19396
19397 2009-05-23 Doug Evans <dje@google.com>
19398
19399 * linux-low.c (linux_resume_one_lwp): Change type of first arg
19400 from struct inferior_list_entry * to struct lwp_info *.
19401 All callers updated.
19402
19403 2009-05-13 Doug Evans <dje@google.com>
19404
19405 * linux-x86-low.c: Don't include assert.h.
19406 (x86_siginfo_fixup): Use fatal, not assert.
19407 (x86_arch_setup): Fix comment.
19408
19409 2009-05-12 Doug Evans <dje@google.com>
19410
19411 Biarch support for i386/amd64 gdbserver.
19412 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
19413 Add linux-x86-low.c.
19414 (linux-i386-low.o, linux-x86-64-low.o): Delete.
19415 (linux-x86-low.o): Add.
19416 * linux-x86-64-low.c: Delete.
19417 * linux-i386-low.c: Delete.
19418 * linux-x86-low.c: New file.
19419 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
19420 linux-x86-low.o.
19421 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
19422 linux-x86-low.o.
19423 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
19424 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
19425 (linux_child_pid_to_exec_file): New function.
19426 (elf_64_header_p, elf_64_file_p): New functions.
19427 (siginfo_fixup): New function.
19428 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
19429 give target a chance to convert layout.
19430 * linux-low.h (linux_target_ops): New member siginfo_fixup.
19431 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
19432
19433 2009-05-07 Doug Evans <dje@google.com>
19434
19435 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
19436 (regsets_store_inferior_registers): Ditto.
19437
19438 2009-05-06 Pedro Alves <pedro@codesourcery.com>
19439
19440 PR server/10048
19441
19442 * linux-low.c (must_set_ptrace_flags): Delete.
19443 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
19444 of the global.
19445 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
19446 `lwp->must_set_ptrace_flags' instead.
19447 (linux_wait_for_event_1): Set ptrace options here.
19448 (linux_wait_1): ... not here.
19449
19450 2009-04-30 Doug Evans <dje@google.com>
19451
19452 * inferiors.c (started_inferior_callback): New function.
19453 (attached_inferior_callback): New function.
19454 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
19455 * server.c (print_started_pid, print_attached_pid): New functions.
19456 (detach_or_kill_for_exit): New function.
19457 (main): Call it instead of for_each_inferior (kill_inferior_callback).
19458 * server.h (have_started_inferiors_p): Declare.
19459 (have_attached_inferiors_p): Declare.
19460
19461 * inferiors.c (remove_process): Fix memory leak, free process.
19462 * linux-low.c (linux_remove_process): New function.
19463 (linux_kill): Call it instead of remove_process.
19464 (linux_detach, linux_wait_1): Ditto.
19465
19466 2009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
19467
19468 * configure.srv: Add x86 Windows CE target.
19469
19470 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19471
19472 * inferiors.c (get_thread_process): Make global.
19473 * server.h (get_thread_process): Add prototype.
19474 * thread-db.c (find_one_thread): Use get_thread_process
19475 instead of current_process.
19476 (thread_db_get_tls_address): Do not crash if called when
19477 thread layer is not yet initialized.
19478
19479 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19480
19481 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
19482 * spu-low.c (current_tid): Rename to ...
19483 (current_ptid): ... this.
19484 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
19485 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
19486 ptid_get_lwp (current_ptid) instead of current_tid.
19487 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
19488 instead of current_tid. Use find_process_pid to verify pid
19489 argument is valid. Pass proper argument to remove_process.
19490 (spu_thread_alive): Compare current_ptid instead of current_tid.
19491 (spu_resume): Likewise.
19492
19493 2009-04-02 Pedro Alves <pedro@codesourcery.com>
19494
19495 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
19496 variable.
19497
19498 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19499
19500 Implement the multiprocess extensions, and add linux multiprocess
19501 support.
19502
19503 * server.h (ULONGEST): Declare.
19504 (struct ptid, ptid_t): New.
19505 (minus_one_ptid, null_ptid): Declare.
19506 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19507 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
19508 (struct inferior_list_entry): Change `id' type from unsigned from
19509 to ptid_t.
19510 (struct sym_cache, struct breakpoint, struct
19511 process_info_private): Forward declare.
19512 (struct process_info): Declare.
19513 (current_process): Declare.
19514 (all_processes): Declare.
19515 (initialize_inferiors): Declare.
19516 (add_thread): Adjust to use ptid_t.
19517 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
19518 (add_process, remove_process, find_thread_pid): Declare.
19519 (find_inferior_id): Adjust to use ptid_t.
19520 (cont_thread, general_thread, step_thread): Change type to ptid_t.
19521 (multi_process): Declare.
19522 (push_event): Adjust to use ptid_t.
19523 (read_ptid, write_ptid): Declare.
19524 (prepare_resume_reply): Adjust to use ptid_t.
19525 (clear_symbol_cache): Declare.
19526 * inferiors.c (all_processes): New.
19527 (null_ptid, minus_one_ptid): New.
19528 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19529 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
19530 (add_thread): Change unsigned long to ptid. Remove gdb_id
19531 parameter. Adjust.
19532 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
19533 (gdb_id_to_thread): Rename to ...
19534 (find_thread_pid): ... this. Change unsigned long to ptid.
19535 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
19536 (loaded_dll, pull_pid_from_list): Adjust.
19537 (add_process, remove_process, find_process_pid)
19538 (get_thread_process, current_process, initialize_inferiors): New.
19539 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
19540 (struct target_waitstatus) <related_pid>: Ditto.
19541 (struct target_ops) <kill, detach>: Add `pid' argument. Change
19542 return type to int.
19543 (struct target_ops) <join>: Add `pid' argument.
19544 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
19545 (struct target_ops) <wait>: Add `ptid' field. Change return type
19546 to ptid.
19547 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
19548 (mywait): Add `ptid' argument. Change return type to ptid_t.
19549 (target_pid_to_str): Declare.
19550 * target.c (set_desired_inferior): Adjust to use ptids.
19551 (mywait): Add new `ptid' argument. Adjust.
19552 (target_pid_to_str): New.
19553 * mem-break.h (free_all_breakpoints): Declare.
19554 * mem-break.c (breakpoints): Delelete.
19555 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
19556 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
19557 to use per-process breakpoint list.
19558 (free_all_breakpoints): New.
19559 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
19560 (symbol_cache, all_symbols_looked_up): Delete.
19561 (hexchars): New.
19562 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
19563 read_ptid): New.
19564 (prepare_resume_reply): Change ptid argument's type from unsigned
19565 long to ptid_t. Adjust. Implement W;process and X;process.
19566 (free_sym_cache, clear_symbol_cache): New.
19567 (look_up_one_symbol): Adjust to per-process symbol cache. *
19568 * server.c (cont_thread, general_thread, step_thread): Change type
19569 to ptid_t.
19570 (attached): Delete.
19571 (multi_process): New.
19572 (last_ptid): Change type to ptid_t.
19573 (struct vstop_notif) <ptid>: Change type to ptid_t.
19574 (queue_stop_reply, push_event): Change `ptid' argument's type to
19575 ptid_t.
19576 (discard_queued_stop_replies): Add `pid' argument.
19577 (start_inferior): Adjust to use ptids. Adjust to mywait interface
19578 changes. Don't reference the `attached' global.
19579 (attach_inferior): Adjust to mywait interface changes.
19580 (handle_query): Adjust to use ptids. Parse GDB's qSupported
19581 features. Handle and report "multiprocess+". Handle
19582 "qAttached:PID".
19583 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
19584 changes.
19585 (handle_v_kill): New.
19586 (handle_v_stopped): Adjust to use target_pid_to_str.
19587 (handle_v_requests): Allow multiple attaches and runs when
19588 multiprocess extensions are in effect. Handle "vKill".
19589 (myresume): Adjust to use ptids.
19590 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
19591 (handle_status): Adjust to discard_queued_stop_replies interface
19592 change.
19593 (first_thread_of, kill_inferior_callback)
19594 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
19595 (main): Call initialize_inferiors. Adjust to use ptids, killing
19596 and detaching from all inferiors. Handle multiprocess packet
19597 variants.
19598 * linux-low.h: Include gdb_proc_service.h.
19599 (struct process_info_private): New.
19600 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
19601 <lwpid_of>: Use ptid_get_lwp.
19602 (get_lwp_thread): Adjust.
19603 (struct lwp_info): Add `dead' member.
19604 (find_lwp_pid): Declare.
19605 * linux-low.c (thread_db_active): Delete.
19606 (new_inferior): Adjust comment.
19607 (inferior_pid): Delete.
19608 (linux_add_process): New.
19609 (handle_extended_wait): Adjust.
19610 (add_lwp): Change unsigned long to ptid.
19611 (linux_create_inferior): Add process to processes table. Adjust
19612 to use ptids. Don't set new_inferior here.
19613 (linux_attach_lwp): Rename to ...
19614 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
19615 it. Adjust to use ptids.
19616 (linux_attach_lwp): New.
19617 (linux_attach): Add process to processes table. Don't set
19618 new_inferior here.
19619 (struct counter): New.
19620 (second_thread_of_pid_p, last_thread_of_process_p): New.
19621 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
19622 multiple processes.
19623 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
19624 processes. Remove process from process table.
19625 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
19626 to multiple processes.
19627 (any_thread_of): New.
19628 (linux_detach): Add `pid' argument, and handle it. Remove process
19629 from processes table.
19630 (linux_join): Add `pid' argument. Handle it.
19631 (linux_thread_alive): Change unsighed long argument to ptid_t.
19632 Consider dead lwps as not being alive.
19633 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
19634 threads we're not interested in.
19635 (same_lwp, find_lwp_pid): New.
19636 (linux_wait_for_lwp): Change `pid' argument's type from int to
19637 ptid_t. Adjust.
19638 (linux_wait_for_event): Rename to ...
19639 (linux_wait_for_event_1): ... this. Change `pid' argument's type
19640 from int to ptid_t. Adjust.
19641 (linux_wait_for_event): New.
19642 (linux_wait_1): Add `ptid' argument. Change return type to
19643 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
19644 that exit from the process table.
19645 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
19646 Adjust.
19647 (mark_lwp_dead): New.
19648 (wait_for_sigstop): Adjust to use ptids. If a process exits while
19649 stopping all threads, mark its main lwp as dead.
19650 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
19651 ptids.
19652 (fetch_register, usr_store_inferior_registers)
19653 (regsets_fetch_inferior_registers)
19654 (regsets_store_inferior_registers, linux_read_memory)
19655 (linux_write_memory): Inline `inferior_pid'.
19656 (linux_look_up_symbols): Adjust to use per-process
19657 `thread_db_active'.
19658 (linux_request_interrupt): Adjust to use ptids.
19659 (linux_read_auxv): Inline `inferior_pid'.
19660 (initialize_low): Don't reference thread_db_active.
19661 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
19662 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
19663 (ps_getpid): Return the pid of the current inferior.
19664 * thread-db.c (proc_handle, thread_agent): Delete.
19665 (thread_db_create_event, thread_db_enable_reporting): Adjust to
19666 per-process data.
19667 (find_one_thread): Change argument type to ptid_t. Adjust to
19668 per-process data.
19669 (maybe_attach_thread): Adjust to per-process data and ptids.
19670 (thread_db_find_new_threads): Ditto.
19671 (thread_db_init): Ditto.
19672 * spu-low.c (spu_create_inferior, spu_attach): Add process to
19673 processes table. Adjust to use ptids.
19674 (spu_kill, spu_detach): Adjust interface. Remove process from
19675 processes table.
19676 (spu_join, spu_thread_alive): Adjust interface.
19677 (spu_wait): Adjust interface. Remove process from processes
19678 table. Adjust to use ptids.
19679 * win32-low.c (current_inferior_tid): Delete.
19680 (current_inferior_ptid): New.
19681 (debug_event_ptid): New.
19682 (thread_rec): Take a ptid. Adjust.
19683 (child_add_thread): Add `pid' argument. Adjust to use ptids.
19684 (child_delete_thread): Ditto.
19685 (do_initial_child_stuff): Add `attached' argument. Add process to
19686 processes table.
19687 (child_fetch_inferior_registers, child_store_inferior_registers):
19688 Adjust.
19689 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
19690 (win32_attach): Pass 1 to do_initial_child_stuff.
19691 (win32_kill): Adjust interface. Remove process from processes
19692 table.
19693 (win32_detach): Ditto.
19694 (win32_join): Adjust interface.
19695 (win32_thread_alive): Take a ptid.
19696 (win32_resume): Adjust to use ptids.
19697 (get_child_debug_event): Ditto.
19698 (win32_wait): Adjust interface. Remove exiting process from
19699 processes table.
19700
19701 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19702
19703 Non-stop mode support.
19704
19705 * server.h (non_stop): Declare.
19706 (gdb_client_data, handler_func): Declare.
19707 (delete_file_handler, add_file_handler, start_event_loop):
19708 Declare.
19709 (handle_serial_event, handle_target_event, push_event)
19710 (putpkt_notif): Declare.
19711 * target.h (enum resume_kind): New.
19712 (struct thread_resume): Replace `step' field by `kind' field.
19713 (TARGET_WNOHANG): Define.
19714 (struct target_ops) <wait>: Add `options' argument.
19715 <supports_non_stop, async, start_non_stop>: New fields.
19716 (target_supports_non_stop, target_async): New.
19717 (start_non_stop): Declare.
19718 (mywait): Add `options' argument.
19719 * target.c (mywait): Add `options' argument. Print child exit
19720 notifications here.
19721 (start_non_stop): New.
19722 * server.c (non_stop, own_buf, mem_buf): New globals.
19723 (struct vstop_notif): New.
19724 (notif_queue): New global.
19725 (queue_stop_reply, push_event, discard_queued_stop_replies)
19726 (send_next_stop_reply): New.
19727 (start_inferior): Adjust to use resume_kind. Adjust to mywait
19728 interface changes.
19729 (attach_inferior): In non-stop mode, don't wait for the target
19730 here.
19731 (handle_general_set): Handle QNonStop.
19732 (handle_query): When handling qC, return the current general
19733 thread, instead of the first thread of the list.
19734 (handle_query): If the backend supports non-stop mode, include
19735 QNonStop+ in the qSupported query response.
19736 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
19737 and non-stop mode.
19738 (handle_v_attach, handle_v_run): Handle non-stop mode.
19739 (handle_v_stopped): New.
19740 (handle_v_requests): Report support for vCont;t. Handle vStopped.
19741 (myresume): Adjust to use resume_kind. Handle non-stop.
19742 (queue_stop_reply_callback): New.
19743 (handle_status): Handle non-stop mode.
19744 (main): Clear non_stop flag on reconnection. Use the event-loop.
19745 Refactor serial protocol handling from here ...
19746 (process_serial_event): ... to this new function. When GDB
19747 selects any thread, select one here. In non-stop mode, wait until
19748 GDB acks all pending events before exiting.
19749 (handle_serial_event, handle_target_event): New.
19750 * remote-utils.c (remote_open): Install remote_desc in the event
19751 loop.
19752 (remote_close): Remove remote_desc from the event loop.
19753 (putpkt_binary): Rename to...
19754 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
19755 (putpkt_binary): New as wrapper around putpkt_binary_1.
19756 (putpkt_notif): New.
19757 (prepare_resume_reply): In non-stop mode, don't change the
19758 general_thread.
19759 * event-loop.c: New.
19760 * Makefile.in (OBJ): Add event-loop.o.
19761 (event-loop.o): New rule.
19762
19763 * linux-low.h (pid_of): Moved here.
19764 (lwpid_of): New.
19765 (get_lwp_thread): Use lwpid_of.
19766 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
19767 * linux-low.c (pid_of): Delete.
19768 (inferior_pid): Use lwpid_of.
19769 (linux_event_pipe): New.
19770 (target_is_async_p): New.
19771 (delete_lwp): New.
19772 (handle_extended_wait): Use lwpid_of.
19773 (add_lwp): Don't set lwpid field.
19774 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
19775 (linux_kill_one_lwp): If killing a running lwp, stop it first.
19776 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
19777 (linux_detach_one_lwp): If detaching from a running lwp, stop it
19778 first. Adjust to linux_wait_for_event interface changes. Use
19779 lwpid_of.
19780 (linux_detach): Don't delete the main lwp here.
19781 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
19782 (status_pending_p): Don't consider explicitly suspended lwps.
19783 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
19784 pointer. Add OPTIONS argument. Change return type to int. Use
19785 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
19786 (linux_wait_for_event): Take an integer pid instead of a lwp_info
19787 pointer. Add status pointer argument. Return a pid instead of a
19788 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
19789 changes. In non-stop mode, don't switch to a random thread.
19790 (linux_wait): Rename to...
19791 (linux_wait_1): ... this. Add target_options argument, and handle
19792 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
19793 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
19794 clean exit and signal exit code. Don't stop all threads in
19795 non-stop mode. In all-stop mode, only stop all threads when
19796 reporting a stop to GDB. Handle explicit thread stop requests.
19797 (async_file_flush, async_file_mark): New.
19798 (linux_wait): New.
19799 (send_sigstop): Use lwpid_of.
19800 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
19801 interface changes. In non-stop mode, don't switch to a random
19802 thread.
19803 (linux_resume_one_lwp): Use lwpid_of.
19804 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
19805 (linux_resume_one_thread): ... this. Handle resume_stop. In
19806 non-stop mode, don't look for pending flag in all threads.
19807 (resume_status_pending_p): Don't consider explicitly suspended
19808 threads.
19809 (my_waitpid): Reimplement. Emulate __WALL.
19810 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19811 Use lwpid_of.
19812 (sigchld_handler, linux_supports_non_stop, linux_async)
19813 (linux_start_non_stop): New.
19814 (linux_target_ops): Register linux_supports_non_stop, linux_async
19815 and linux_start_non_stop.
19816 (initialize_low): Install SIGCHLD handler.
19817 * thread-db.c (thread_db_create_event, find_one_thread)
19818 (thread_db_get_tls_address): Use lwpid_of.
19819 * win32-low.c (win32_detach): Adjust to use resume_kind.
19820 (win32_wait): Add `options' argument.
19821 * spu-low.c (spu_resume): Adjust to use resume_kind.
19822 (spu_wait): Add `options' argument.
19823
19824 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19825
19826 Decouple target code from remote protocol.
19827
19828 * target.h (enum target_waitkind): New.
19829 (struct target_waitstatus): New.
19830 (struct target_ops) <wait>: Return an unsigned long. Take a
19831 target_waitstatus pointer instead of a char pointer.
19832 (mywait): Likewise.
19833 * target.c (mywait): Change prototype to return an unsigned long.
19834 Take a target_waitstatus pointer instead of a char pointer. Adjust.
19835 * server.h (thread_from_wait, old_thread_from_wait): Delete
19836 declarations.
19837 (prepare_resume_reply): Change prototype to take a
19838 target_waitstatus.
19839 * server.c (thread_from_wait, old_thread_from_wait): Delete.
19840 (last_status, last_ptid): New.
19841 (start_inferior): Remove "statusptr" argument. Adjust. Return a
19842 pid instead of a signal.
19843 (attach_inferior): Remove "status" and "signal" parameters.
19844 Adjust.
19845 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
19846 not as an address.
19847 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
19848 (handle_v_requests, myresume): Remove "status" and "signal"
19849 parameters. Adjust.
19850 (handle_status): New.
19851 (main): Delete local `status'. Adjust.
19852 * remote-utils.c: Include target.h.
19853 (prepare_resume_reply): Change prototype to take a
19854 target_waitstatus. Adjust.
19855
19856 * linux-low.c (linux_wait): Adjust to new target_ops->wait
19857 interface.
19858 * spu-low.c (spu_wait): Adjust.
19859 * win32-low.c (enum target_waitkind, struct target_waitstatus):
19860 Delete.
19861 (win32_wait): Adjust.
19862
19863 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19864
19865 * target.h (struct thread_resume): Delete leave_stopped member.
19866 (struct target_ops): Add a `n' argument to the `resume' callback.
19867 * server.c (start_inferior): Adjust.
19868 (handle_v_cont, myresume): Adjust.
19869 * linux-low.c (check_removed_breakpoint): Adjust to resume
19870 interface change, and to removed leave_stopped field.
19871 (resume_ptr): Delete.
19872 (struct thread_resume_array): New.
19873 (linux_set_resume_request): Add new `arg' parameter. Adjust to
19874 resume interface change.
19875 (linux_continue_one_thread, linux_queue_one_thread)
19876 (resume_status_pending_p): Check if the resume field is NULL
19877 instead of checking the leave_stopped member.
19878 (linux_resume): Adjust to the target resume interface change.
19879 * spu-low.c (spu_resume): Adjust to the target resume interface
19880 change.
19881 * win32-low.c (win32_detach, win32_resume): Ditto.
19882
19883 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19884
19885 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
19886 flag.
19887 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
19888 pending.
19889 (linux_continue_one_thread): Only preserve the stepping flag if
19890 there's a pending breakpoint.
19891
19892 2009-03-31 Pedro Alves <pedro@codesourcery.com>
19893
19894 * server.c (main): After the inferior having exited, call
19895 remote_close before exiting gdbserver.
19896
19897 2009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
19898
19899 Fix size of FPSCR in Power 7 processors.
19900 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
19901 (PPC_FEATURE_HAS_DFP): New #define.
19902 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
19903 size of the FPSCR.
19904
19905 2009-03-23 Pedro Alves <pedro@codesourcery.com>
19906
19907 * server.c (handle_query) Whitespace and formatting.
19908
19909 2009-03-22 Pedro Alves <pedro@codesourcery.com>
19910
19911 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
19912 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
19913 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
19914 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
19915 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
19916 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
19917 Makefile.in, configure.ac: Fix whitespace throughout.
19918 * configure: Regenerate.
19919
19920 2009-03-22 Pedro Alves <pedro@codesourcery.com>
19921
19922 * inferiors.c (find_inferior): Make it safe for the callback
19923 function to delete the currently iterated inferior.
19924
19925 2009-03-22 Pedro Alves <pedro@codesourcery.com>
19926
19927 * Makefile.in (linuw_low_h): Move higher.
19928 (thread-db.o): Depend on $(linux_low_h).
19929
19930 2009-03-17 Pedro Alves <pedro@codesourcery.com>
19931
19932 Rename "process" to "lwp" throughout.
19933
19934 * linux-low.c (all_processes): Rename to...
19935 (all_lwps): ... this.
19936 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
19937 (add_process): Rename to ...
19938 (add_lwp): ... this. Adjust.
19939 (linux_create_inferior): Adjust.
19940 (linux_attach_lwp): Adjust.
19941 (linux_attach): Adjust.
19942 (linux_kill_one_process): Rename to ...
19943 (linux_kill_one_lwp): ... this. Adjust.
19944 (linux_kill): Adjust.
19945 (linux_detach_one_process): Rename to ...
19946 (linux_detach_one_lwp): ... this. Adjust.
19947 (linux_detach): Adjust.
19948 (check_removed_breakpoint): Adjust.
19949 (status_pending_p): Adjust.
19950 (linux_wait_for_process): Rename to ...
19951 (linux_wait_for_lwp): ... this. Adjust.
19952 (linux_wait_for_event): Adjust.
19953 (send_sigstop): Adjust.
19954 (wait_for_sigstop): Adjust.
19955 (stop_all_processes): Rename to ...
19956 (stop_all_lwps): ... this.
19957 (linux_resume_one_process): Rename to ...
19958 (linux_resume_one_lwp): ... this. Adjust.
19959 (linux_set_resume_request, linux_continue_one_thread)
19960 (linux_queue_one_thread, resume_status_pending_p)
19961 (usr_store_inferior_registers, regsets_store_inferior_registers)
19962 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19963 Adjust.
19964 * linux-low.h (get_process): Rename to ...
19965 (get_lwp): ... this. Adjust.
19966 (get_thread_process): Rename to ...
19967 (get_thread_lwp): ... this. Adjust.
19968 (get_process_thread): Rename to ...
19969 (get_lwp_thread): ... this. Adjust.
19970 (struct process_info): Rename to ...
19971 (struct lwp_info): ... this.
19972 (all_processes): Rename to ...
19973 (all_lwps): ... this.
19974 * proc-service.c (ps_lgetregs): Adjust.
19975 * thread-db.c (thread_db_create_event, find_one_thread)
19976 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
19977
19978 2009-03-14 Pedro Alves <pedro@codesourcery.com>
19979
19980 * server.c (handle_query): Handle "qAttached".
19981
19982 2009-03-13 Nathan Sidwell <nathan@codesourcery.com>
19983
19984 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
19985 GPLv3, update license URL.
19986
19987 2009-03-01 Doug Evans <dje@google.com>
19988
19989 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
19990 (server_h): Add gdb_signals.h.
19991 (signals.o): Update.
19992 * server.h (target_signal_from_host,target_signal_to_host_p)
19993 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
19994
19995 2009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
19996
19997 * remote-utils.c (getpkt): Also generate remote-debug
19998 information if noack_mode is set.
19999
20000 2009-02-06 Pedro Alves <pedro@codesourcery.com>
20001
20002 * server.c (handle_query): Report qXfer:siginfo:read and
20003 qXfer:siginfo:write as supported and handle them.
20004 * target.h (struct target_ops) <qxfer_siginfo>: New field.
20005 * linux-low.c (linux_xfer_siginfo): New.
20006 (linux_target_ops): Set it.
20007
20008 2009-01-26 Pedro Alves <pedro@codesourcery.com>
20009
20010 * server.c (gdbserver_usage): Mention --remote-debug.
20011 (main): Accept '--remote-debug' switch.
20012
20013 2009-01-18 Doug Evans <dje@google.com>
20014
20015 * regcache.c (new_register_cache): No need to check result of xcalloc.
20016 * server.c (handle_search_memory): Back out calls to xmalloc,
20017 result is checked and error is returned to user upon failure.
20018 (handle_query): Ditto. Add more checks for result of malloc.
20019 (handle_v_cont): Check result of malloc, report error back to
20020 user upon failure.
20021 (handle_v_run): Ditto. Call freeargv.
20022 * server.h (freeargv): Declare.
20023 * utils.c (freeargv): New fn.
20024
20025 2009-01-15 Doug Evans <dje@google.com>
20026
20027 * gdbreplay.c (perror_with_name): Make arg const char *.
20028 * server.h (target_signal_to_name): Make return type const char *.
20029 * thread-db.c (thread_db_err_str): Make return type const char *.
20030 * utils.c (perror_with_name): Make arg const char *.
20031
20032 2009-01-14 Pedro Alves <pedro@codesourcery.com>
20033
20034 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
20035 when handling a EXIT_PROCESS_DEBUG_EVENT.
20036
20037 2009-01-06 Joel Brobecker <brobecker@adacore.com>
20038
20039 * gdbreplay.c (gdbreplay_version): Update copyright year.
20040 * server.c (gdbserver_version): Likewise.
20041
20042 2009-01-05 Doug Evans <dje@google.com>
20043
20044 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
20045 (handle_extended_wait): Improve comment.
20046
20047 2008-12-13 Doug Evans <dje@google.com>
20048
20049 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
20050 * server.h (ATTR_MALLOC): New macro.
20051 (xmalloc,xcalloc,xstrdup): Declare.
20052 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
20053 * inferiors.c: Ditto.
20054 * linux-low.c: Ditto.
20055 * mem-break.c: Ditto.
20056 * regcache.c: Ditto.
20057 * remote-utils.c: Ditto.
20058 * server.c: Ditto.
20059 * target.c: Ditto.
20060 * win32-low.c: Ditto.
20061
20062 2008-12-12 Doug Evans <dje@google.com>
20063
20064 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
20065 in debugging printf.
20066
20067 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
20068
20069 2008-12-09 Doug Evans <dje@google.com>
20070
20071 * linux-low.h (struct process_info): Delete member tid, unused.
20072 * thread-db.c (find_one_thread): Update.
20073 (maybe_attach_thread): Update.
20074
20075 2008-12-02 Pedro Alves <pedro@codesourcery.com>
20076
20077 * target.h (struct target_ops): Add qxfer_osdata member.
20078 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
20079 and dirent.h.
20080 (linux_qxfer_osdata): New functions.
20081 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
20082 callback.
20083 * server.c (handle_query): Handle "qXfer:osdata:read:".
20084 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
20085 (buffer_xml_printf): New functions.
20086 * server.h (struct buffer): New.
20087 (buffer_grow_str, buffer_grow_str0): New macros.
20088 (buffer_grow, buffer_free, buffer_init, buffer_finish)
20089 (buffer_xml_printf): Declare.
20090
20091 2008-11-24 Doug Evans <dje@google.com>
20092
20093 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
20094
20095 2008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
20096
20097 * server.c (handle_v_run): Always use the supplied argument list.
20098
20099 2008-11-19 Bob Wilson <bob.wilson@acm.org>
20100
20101 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
20102 (xtensa_regmap_table): Add entry for scompare1.
20103
20104 2008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
20105
20106 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
20107 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
20108 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
20109 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
20110 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
20111 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
20112 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
20113 XML target descriptions.
20114 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
20115 when inferior is running on an ISA 2.05 or later processor. Add
20116 special case to return offset for full 64-bit slot of FPSCR when
20117 in 32-bits.
20118
20119 2008-11-14 Daniel Gutson <dgutson@codesourcery.com>
20120
20121 * Makefile.in (SFILES, clean): Added sparc64 files.
20122 (reg-sparc64.o, reg-sparc64.c): New.
20123 * configure.srv (sparc*-*-linux*): New configuration.
20124 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
20125 syscall arguments for SPARC.
20126 (regsets_store_inferior_registers): Likewise.
20127 * linux-sparc-low.c: New file.
20128
20129 2008-10-21 Doug Evans <dje@google.com>
20130
20131 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
20132 (READLINE_DIR,READLINE_DEP): Delete.
20133 (INTERNAL_CFLAGS): Update.
20134 (LINTFLAGS): Update.
20135
20136 2008-10-10 Pedro Alves <pedro@codesourcery.com>
20137
20138 * server.c (handle_v_run): If GDB didn't specify an argv, use the
20139 whole argv from the last run, not just argv[0].
20140
20141 2008-09-08 Pedro Alves <pedro@codesourcery.com>
20142
20143 * regcache.c (new_register_cache): Return NULL if the register
20144 cache size isn't known yet.
20145 (free_register_cache): Avoid dereferencing a NULL regcache.
20146
20147 2008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
20148
20149 * configure.srv: Merge MIPS and MIPS64.
20150
20151 2008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
20152
20153 * Makefile.in (uninstall): Apply $(EXEEXT) too.
20154
20155 2008-08-18 Luis Machado <luisgpm@br.ibm.com>
20156
20157 * Makefile.in: Add required vsx dependencies.
20158
20159 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
20160 Declare init_registers_powerpc_vsx32l.
20161 Declare init_registers_powerpc_vsx64l.
20162 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
20163 (ppc_arch_setup): Check for VSX in hwcap.
20164 (ppc_fill_vsxregset): New function.
20165 (ppc_store_vsxregset): New function.
20166 Add new VSX entry in regset_info target_regsets.
20167
20168 * configure.srv: Add new VSX dependencies.
20169
20170 2008-08-12 Pedro Alves <pedro@codesourcery.com>
20171
20172 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
20173 (remote_open): Set or clear transport_is_reliable.
20174 (putpkt_binary): Don't expect acks in noack mode.
20175 (getpkt): Don't send ack/nac in noack mode.
20176 * server.c (handle_general_set): Handle QStartNoAckMode.
20177 (handle_query): If connected by tcp pass QStartNoAckMode+ in
20178 qSupported.
20179 (main): Reset noack_mode on every connection.
20180 * server.h (noack_mode): Declare.
20181
20182 2008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20183
20184 * Makefile.in (GDBREPLAY_OBS): New variable.
20185 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
20186
20187 2008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
20188 Daniel Jacobowitz <dan@codesourcery.com>
20189
20190 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
20191 (usr_store_inferior_registers): Likewise.
20192 (regsets_store_inferior_registers): Likewise.
20193
20194 2008-07-31 Rolf Jansen <rj@surtec.com>
20195 Pedro Alves <pedro@codesourcery.com>
20196
20197 * configure.ac: Check for memmem declaration.
20198 * server.c [HAVE_MALLOC_H]: Include malloc.h.
20199 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
20200 (disable_packet_qfThreadInfo): Unconditionally compile.
20201 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
20202 * configure, config.in: Regenerate.
20203
20204 2008-07-28 Doug Kwan <dougkwan@google.com>
20205
20206 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
20207 (linux_write_memory): Remove declaration of errno.
20208
20209 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
20210
20211 * linux-low.c (handle_extended_wait): Do not use "status"
20212 variable uninitialized.
20213
20214 2008-07-07 Pedro Alves <pedro@codesourcery.com>
20215
20216 * server.c (handle_v_attach): Inhibit reporting dll changes.
20217
20218 2008-06-27 Pedro Alves <pedro@codesourcery.com>
20219
20220 * remote-utils.c (prepare_resume_reply): If requested, don't
20221 output "thread:TID" in the T stop reply.
20222
20223 * server.c (disable_packet_vCont, disable_packet_Tthread)
20224 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
20225 (handle_query): If requested, disable support for qC, qfThreadInfo
20226 and qsThreadInfo.
20227 (handle_v_requests): If requested, disable support for vCont.
20228 (gdbserver_show_disableable): New.
20229 (main): Handle --disable-packet and --disable-packet=LIST.
20230
20231 * server.h (disable_packet_vCont, disable_packet_Tthread)
20232 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
20233
20234 2008-06-20 Carlos O'Donell <carlos@codesourcery.com>
20235
20236 * server.c (gdbserver_usage): Mention --version.
20237
20238 2008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
20239
20240 * Makefile.in (gdbreplay.o): New rule.
20241
20242 2008-06-06 Joseph Myers <joseph@codesourcery.com>
20243
20244 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
20245 message, not gdbserver.
20246
20247 2008-06-05 Vladimir Prus <vladimir@codesourcery.com>
20248 Nathan Sidwell <nathan@codesourcery.com>
20249 Joseph Myers <joseph@codesourcery.com>
20250
20251 * acinclude.m4: Include ../../config/acx.m4.
20252 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
20253 * configure, config.in: Regenerate.
20254 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
20255 * server.c (gdbserver_version): Print PKGVERSION.
20256 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
20257 (main): Adjust gdbserver_usage calls.
20258 * gdbreplay.c (version, host_name): Add declarations.
20259 (gdbreplay_version, gdbreplay_usage): New.
20260 (main): Accept --version and --help options.
20261
20262 2008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
20263
20264 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
20265 (arm_breakpoint_at): Handle Thumb.
20266 (the_low_target): Add comment.
20267
20268 2008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
20269
20270 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
20271
20272 2008-05-09 Doug Evans <dje@google.com>
20273
20274 * server.h (decode_search_memory_packet): Declare.
20275 * remote-utils.c (decode_search_memory_packet): New fn.
20276 * server.c (handle_search_memory_1): New fn.
20277 (handle_search_memory): New fn.
20278 (handle_query): Process qSearch:memory packets.
20279
20280 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
20281
20282 * regcache.c (registers_length): Remove.
20283 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
20284 full register packet.
20285 * regcache.h (registers_length): Remove prototype.
20286 * server.h (PBUFSIZ): Define to 16384.
20287
20288 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
20289
20290 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
20291 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
20292 powerpc-64l.o, and powerpc-altivec64l.o.
20293 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
20294 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
20295 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
20296 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
20297 rs6000/power-linux.xml, and rs6000/power64-linux.xml
20298 to srv_xmlfiles.
20299
20300 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
20301 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
20302 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
20303 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
20304 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
20305 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
20306 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
20307 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
20308 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
20309 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
20310 (clean): Update.
20311
20312 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
20313 (init_registers_powerpc_32l): ... this new prototype.
20314 (init_registers_powerpc_32): Remove, replace by ...
20315 (init_registers_powerpc_altivec32l): ... this new prototype.
20316 (init_registers_powerpc_e500): Remove, replace by ...
20317 (init_registers_powerpc_e500l): ... this new prototype.
20318 (init_registers_ppc64): Remove, replace by ...
20319 (init_registers_powerpc_64l): ... this new prototype.
20320 (init_registers_powerpc_64): Remove, replace by ...
20321 (init_registers_powerpc_altivec64l): ... this new prototype.
20322 (ppc_num_regs): Set to 73.
20323 (PT_ORIG_R3, PT_TRAP): Define if necessary.
20324 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
20325 (ppc_cannot_store_register): Handle orig_r3 and trap.
20326 (ppc_arch_setup): Update init_registers_... calls.
20327 (ppc_fill_gregset): Handle orig_r3 and trap.
20328
20329 * inferiors.c (clear_inferiors): Reset current_inferior.
20330
20331 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
20332
20333 * acinclude.m4: Add override.m4.
20334 * configure: Regenerate.
20335
20336 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
20337
20338 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
20339 initial call to init_register_ppc64.
20340
20341 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
20342
20343 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
20344 single powerpc*-*-linux* case.
20345 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
20346
20347 2008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
20348
20349 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
20350 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
20351 from reg_xmlfiles.
20352 * linux-ppc-low.c: Include <elf.h>.
20353 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
20354 (ppc_hwcap): New global variable.
20355 (ppc_regmap): Remove __SPE__ #ifdef sections.
20356 (ppc_regmap_e500): New global variable.
20357 (ppc_cannot_store_register): Update __SPE__ special case.
20358 (ppc_get_hwcap): New function.
20359 (ppc_arch_setup): Use it to determine whether inferior supports
20360 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
20361 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
20362 Do not access registers if target does not support AltiVec.
20363 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
20364 Do not access registers if target does not support SPE.
20365 (target_regsets): Unconditionally include AltiVec and SPE regsets.
20366
20367 2008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
20368
20369 * linux-low.c (disabled_regsets, num_regsets): New.
20370 (use_regsets_p): Delete.
20371 (linux_wait_for_process): Clear disabled_regsets.
20372 (regsets_fetch_inferior_registers): Check and set it.
20373 (regsets_store_inferior_registers): Likewise.
20374 (linux_fetch_registers, linux_store_registers): Do not use
20375 use_regsets_p.
20376 (initialize_low): Allocate disabled_regsets.
20377
20378 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
20379
20380 * Makefile.in (LIBOBJS): New.
20381 (OBS): Use LIBOBJS.
20382 (memmem.o): New rule.
20383 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
20384 * configure: Regenerated.
20385
20386 2008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
20387
20388 * server.c (handle_query): Never return "unsupported" for
20389 qXfer:features:read queries.
20390
20391 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
20392
20393 * server.c (get_features_xml): Fix inverted condition.
20394 (handle_query): Always support qXfer:feature:read.
20395
20396 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
20397
20398 * server.c (wrapper_argv): New.
20399 (start_inferior): Handle wrapper_argv. If set, expect an extra
20400 trap.
20401 (gdbserver_usage): Document --wrapper.
20402 (main): Parse --wrapper.
20403
20404 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20405
20406 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
20407 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
20408 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
20409 (ppc_set_pc): Likewise.
20410 (ppc_arch_setup): New function.
20411 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
20412 of collect_register.
20413 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
20414
20415 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20416
20417 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
20418 instead of linux-ppc64-low.o.
20419 * linux-ppc64-low.c: Remove file.
20420 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
20421 (linux-ppc64-low.o): Remove rule.
20422
20423 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
20424 (init_registers_powerpc_64): Likewise.
20425 (ppc_regmap): Conditionally define depending on __powerpc64__.
20426 (ppc_cannot_store_register): Do not special-case "fpscr" when
20427 compiled on __powerpc64__.
20428 (ppc_collect_ptrace_register): New function.
20429 (ppc_supply_ptrace_register): New function.
20430 (ppc_breakpoint): Change type to "unsigned int".
20431 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
20432 (the_low_target): Conditionally provide initializers for the
20433 arch_setup member depending on __powerpc64__. Install
20434 collect_ptrace_register and supply_ptrace_register members.
20435
20436 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20437
20438 * regcache.h (gdbserver_xmltarget): Add extern declaration.
20439 * server.c (gdbserver_xmltarget): Define.
20440 (get_features_xml): Use it to replace "target.xml" and arch_string.
20441
20442 * configure.srv: Remove srv_xmltarget. Add XML files that were
20443 mentioned there to srv_xmlfiles instead. Remove conditional tests
20444 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
20445 srv_xmlfiles and srv_regobj to include all possible choices.
20446 * configure.ac (srv_xmltarget): Remove.
20447 (srv_xmlfiles): Do not add "target.xml".
20448 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
20449 checks for supplementary target information.
20450 * configure: Regenerate.
20451 * Makefile.in (XML_TARGET): Remove.
20452 (target.xml): Remove rule.
20453 (clean): Do not clean up target.xml.
20454 (.PRECIOUS): Do not mention target.xml.
20455
20456 * target.h (struct target_ops): Remove arch_string member.
20457 * linux-low.c (linux_arch_string): Remove.
20458 (linux_target_ops): Remove arch_string initializer.
20459 * linux-low.h (struct linux_target_ops): Remove arch_string member.
20460 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
20461 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
20462 * spu-low.c (spu_arch_string): Remove.
20463 (spu_target_ops): Remove arch_string initializer.
20464 * win32-low.c (win32_arch_string): Remove.
20465 (win32_target_ops): Remove arch_string initializer.
20466 * win32-low.h (struct win32_target_ops): Remove arch_string member.
20467 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
20468 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
20469
20470 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20471
20472 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
20473 by collect_ptrace_register and supply_ptrace_register hooks.
20474 * linux-low.c (fetch_register): Use supply_ptrace_register callback
20475 instead of checking for the_low_target.left_pad_xfer.
20476 (usr_store_inferior_registers): Use collect_ptrace_register callback
20477 instead of checking for the_low_target.left_pad_xfer.
20478
20479 * linux-s390-low.c (s390_collect_ptrace_register): New function.
20480 (s390_supply_ptrace_register): Likewise.
20481 (s390_fill_gregset): Call s390_collect_ptrace_register.
20482 (the_low_target): Update.
20483
20484 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
20485 (ppc_supply_ptrace_register): Likewise.
20486 (the_low_target): Update.
20487
20488 * linux-i386-low.c (the_low_target): Update.
20489 * linux-x86-64-low.c (the_low_target): Update.
20490
20491 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20492
20493 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
20494 reg-s390.o and reg-s390x.o.
20495
20496 * linux-low.c (new_inferior): New global variable.
20497 (linux_create_inferior, linux_attach): Set it.
20498 (linux_wait_for_process): Call the_low_target.arch_setup after the
20499 target has stopped for the first time.
20500 (initialize_low): Do not call the_low_target.arch_setup.
20501
20502 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
20503 (s390_set_pc): Likewise.
20504 (s390_arch_setup): New function.
20505 (the_low_target): Use s390_arch_setup as arch_setup routine.
20506
20507 * regcache.c (realloc_register_cache): New function.
20508 (set_register_cache): Call it for each existing regcache.
20509
20510 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20511
20512 * server.h (init_registers): Remove prototype.
20513
20514 * linux-low.h (struct linux_target_ops): Add arch_setup field.
20515 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
20516 instead of init_registers ().
20517 * linux-arm-low.c (init_registers_arm): Add prototype.
20518 (init_registers_arm_with_iwmmxt): Likewise.
20519 (the_low_target): Add initializer for arch_setup field.
20520 * linux-cris-low.c (init_registers_cris): Add prototype.
20521 (the_low_target): Add initializer for arch_setup field.
20522 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
20523 (the_low_target): Add initializer for arch_setup field.
20524 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
20525 (the_low_target): Add initializer for arch_setup field.
20526 * linux-ia64-low.c (init_registers_ia64): Add prototype.
20527 (the_low_target): Add initializer for arch_setup field.
20528 * linux-m32r-low.c (init_registers_m32r): Add prototype.
20529 (the_low_target): Add initializer for arch_setup field.
20530 * linux-m68k-low.c (init_registers_m68k): Add prototype.
20531 (the_low_target): Add initializer for arch_setup field.
20532 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
20533 (init_registers_mips64_linux): Likewise.
20534 (the_low_target): Add initializer for arch_setup field.
20535 * linux-ppc-low.c (init_registers_ppc): Add prototype.
20536 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
20537 (the_low_target): Add initializer for arch_setup field.
20538 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
20539 (init_registers_powerpc_64): Likewise.
20540 (the_low_target): Add initializer for arch_setup field.
20541 * linux-s390-low.c (init_registers_s390): Add prototype.
20542 (init_registers_s390x): Likewise.
20543 (the_low_target): Add initializer for arch_setup field.
20544 * linux-sh-low.c (init_registers_sh): Add prototype.
20545 (the_low_target): Add initializer for arch_setup field.
20546 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
20547 (the_low_target): Add initializer for arch_setup field.
20548 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
20549 (the_low_target): Add initializer for arch_setup field.
20550
20551 * win32-low.h (struct win32_target_ops): Add arch_setup field.
20552 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
20553 instead of init_registers ().
20554 * win32-arm-low.c (init_registers_arm): Add prototype.
20555 (the_low_target): Add initializer for arch_setup field.
20556 * win32-i386-low.c (init_registers_i386): Add prototype.
20557 (the_low_target): Add initializer for arch_setup field.
20558
20559 * spu-low.c (init_registers_spu): Add prototype.
20560 (initialize_low): Call initialie_registers_spu () instead of
20561 initialize_registers ().
20562
20563 2008-02-19 Pedro Alves <pedro@codesourcery.com>
20564
20565 * server.c (handle_v_requests): When handling the vRun and vAttach
20566 packets, if already debugging a process, don't kill it. Return an
20567 error instead.
20568
20569 2008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
20570
20571 * server.c (handle_query): Correct length check.
20572
20573 2008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
20574
20575 * win32-low.c (do_initial_child_stuff): Add process handle
20576 parameter. Set current_process_handle and current_process_id from the
20577 parameters. Clear globals.
20578 (win32_create_inferior): Don't set current_process_handle and
20579 current_process_id here. Instead pass them on the call to
20580 do_initial_child_stuff.
20581 (win32_attach): Likewise.
20582 (win32_clear_inferiors): New.
20583 (win32_kill): Don't close the current process handle or the
20584 current thread handle here. Instead call win32_clear_inferiors.
20585 (win32_detach): Don't open a new handle to the process. Call
20586 win32_clear_inferiors.
20587 (win32_join): Don't rely on current_process_handle; open a new
20588 handle using the process id.
20589 (win32_wait): Call win32_clear_inferiors when the inferior process
20590 has exited.
20591
20592 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
20593
20594 * server.c (monitor_show_help): Add "exit".
20595
20596 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
20597
20598 * Makefile.in (SFILES): Add linux-xtensa-low.c.
20599 (clean): Add reg-xtensa.c.
20600 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
20601 * configure.srv (xtensa*-*-linux*) New target.
20602 * linux-xtensa-low.c: New.
20603 * xtensa-xtregs.c: New.
20604
20605 2008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
20606
20607 * hostio.c: Don't include errno.h.
20608 (errno_to_fileio_errno): Move to hostio-errno.
20609 * hostio.c: (hostio_error): Remove the error parameter. Defer the
20610 error number outputting to the target->hostio_last_error callback.
20611 (hostio_packet_error): Use FILEIO_EINVAL directly.
20612 (handle_open, handle_pread, hostio_error, handle_unlink): Update
20613 calls to hostio_error.
20614 * hostio-errno.c: New.
20615 * server.h (hostio_last_error_from_errno): Declare.
20616 * target.h (target_ops): Add hostio_last_error member.
20617 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
20618 as hostio_last_error handler.
20619 * spu-low.c (spu_target_ops): Likewise.
20620 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
20621 (wince_hostio_last_error): New functions.
20622 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
20623 as hostio_last_error handler.
20624 (win32_target_ops) [!_WIN32_WCE]: Register
20625 hostio_last_error_from_errno as hostio_last_error handler.
20626 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
20627 (hostio-errno.o): New rule.
20628 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
20629 * configure.srv (srv_hostio_err_objs): New variable. Default to
20630 hostio-errno.o.
20631 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
20632 * configure: Regenerate.
20633
20634 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20635
20636 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
20637 (linux_kill, linux_detach): Clean up the process list.
20638 * remote-utils.c (remote_open): Improve port number parsing.
20639 (putpkt_binary, input_interrupt): Only send interrupts if the target
20640 is running.
20641 * server.c (extended_protocol): Make static.
20642 (attached): Define earlier.
20643 (exit_requested, response_needed, program_argv): New variables.
20644 (target_running): New.
20645 (start_inferior): Clear attached here.
20646 (attach_inferior): Set attached here.
20647 (require_running): Define.
20648 (handle_query): Use require_running and target_running. Implement
20649 "monitor exit".
20650 (handle_v_attach, handle_v_run): New.
20651 (handle_v_requests): Use require_running. Handle vAttach and vRun.
20652 (gdbserver_usage): Update.
20653 (main): Redo argument parsing. Handle --debug and --multi. Handle
20654 --attach along with other options or after the port. Save
20655 program_argv. Support no initial program. Resynchronize
20656 communication with GDB after an error. Handle "monitor exit".
20657 Use require_running and target_running. Always allow the extended
20658 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
20659 restart in extended mode.
20660 * README: Refer to the GDB manual. Update --attach usage.
20661
20662 2007-12-20 Andreas Schwab <schwab@suse.de>
20663
20664 * linux-low.c (STACK_SIZE): Define.
20665 (linux_tracefork_child): Use it. Use __clone2 on ia64.
20666 (linux_test_for_tracefork): Likewise.
20667
20668 2007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
20669
20670 * linux-low.c (linux_wait_for_event): Update messages. Do not
20671 reinsert auto-delete breakpoints.
20672 * mem-break.c (struct breakpoint): Change return type of handler to
20673 int.
20674 (set_breakpoint_at): Update handler type.
20675 (reinsert_breakpoint_handler): Return 1 instead of calling
20676 delete_breakpoint.
20677 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
20678 setting a new one.
20679 (check_breakpoints): Delete auto-delete breakpoints and return 2.
20680 * mem-break.h (set_breakpoint_at): Update handler type.
20681 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
20682 * win32-low.c (auto_delete_breakpoint): New.
20683 (get_child_debug_event): Use it.
20684
20685 2007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
20686
20687 * configure.ac: Check for pread and pwrite.
20688 * hostio.c (handle_pread): Fall back to lseek and read.
20689 (handle_pwrite): Fall back to lseek and write.
20690 * config.in, configure: Regenerated.
20691
20692 2007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
20693
20694 * server.c (myresume): Add own_buf argument.
20695 (main): Update calls.
20696
20697 2007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
20698
20699 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
20700 * remote-utils.c (remote_open): Do not call disable_async_io.
20701 (block_async_io): Delete.
20702 (unblock_async_io): Make static.
20703 (initialize_async_io): New.
20704 * server.c (handle_v_cont): Handle async I/O here.
20705 (myresume): Likewise. Move other common resume tasks here...
20706 (main): ... from here. Call initialize_async_io. Disable async
20707 I/O before the main loop.
20708 * server.h (initialize_async_io): Declare.
20709 (block_async_io, unblock_async_io): Delete prototypes.
20710 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
20711
20712 2007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
20713
20714 * remote-utils.c (readchar): Allow binary data in received messages.
20715
20716 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20717
20718 * win32-low.c (attaching): New global.
20719 (win32_create_inferior): Clear the `attaching' global.
20720 (win32_attach): Set the `attaching' global.
20721 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
20722 attaching. Only set a breakpoint at the entry point if not
20723 attaching.
20724
20725 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20726
20727 * server.c (main): Don't report dll events on the initial
20728 connection on attaches.
20729
20730 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20731
20732 * server.c (main): Relax numerical bases supported for the pid of
20733 the --attach command line argument.
20734
20735 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20736
20737 * win32-low.c (win32_attach): Call OpenProcess before
20738 DebugActiveProcess, not after. Add last error output to error
20739 call.
20740
20741 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20742
20743 * win32-low.c (win32_get_thread_context)
20744 (win32_set_thread_context): New functions.
20745 (thread_rec): Use win32_get_thread_context.
20746 (continue_one_thread, win32_resume): Use win32_set_thread_context.
20747 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
20748 field.
20749
20750 2007-12-03 Leo Zayas
20751 Pedro Alves <pedro_alves@portugalmail.pt>
20752
20753 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
20754 global variables.
20755 (child_add_thread): Minor cleanup.
20756 (child_continue): Resume artificially suspended threads before
20757 calling ContinueDebugEvent.
20758 (suspend_one_thread): New.
20759 (fake_breakpoint_event): New.
20760 (get_child_debug_event): Change return type to int. Check here if
20761 gdb sent an interrupt request. If a soft interrupt was requested,
20762 fake a breakpoint event. Return 0 if there is no event to handle,
20763 and 1 otherwise.
20764 (win32_wait): Don't check here if gdb sent an interrupt request.
20765 Ensure there is a valid event to handle.
20766 (win32_request_interrupt): Add soft interruption method as last
20767 resort.
20768
20769 2007-12-03 Leo Zayas
20770 Pedro Alves <pedro_alves@portugalmail.pt>
20771
20772 * win32-low.h (win32_thread_info): Add descriptions to the
20773 structure members. Replace `suspend_count' counter by a
20774 `suspended' flag.
20775 * win32-low.c (thread_rec): Update condition of when to get the
20776 context from the inferior. Rely on ContextFlags being set if it
20777 has already been retrieved. Only suspend the inferior thread if
20778 we haven't already. Warn if that fails.
20779 (continue_one_thread): s/suspend_count/suspended/. Only call
20780 ResumeThread once. Warn if that fails.
20781
20782 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20783
20784 * win32-low.c (win32_wait): Don't read from the inferior when it
20785 has already exited.
20786
20787 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20788
20789 * Makefile.in (win32_low_h): New variable.
20790 (win32-low.o): Add dependency on $(win32_low_h).
20791 (win32-arm-low.o, win32-i386-low.o): New rules.
20792
20793 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20794
20795 * hostio.c: Correct copyright year.
20796
20797 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20798
20799 * Makefile.in (OBS): Add hostio.o.
20800 (hostio.o): New rule.
20801 * server.h (handle_vFile): Declare.
20802 * hostio.c: New file.
20803 * server.c (handle_v_requests): Take packet_len and new_packet_len
20804 for binary packets. Call handle_vFile.
20805 (main): Update call to handle_v_requests.
20806
20807 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
20808
20809 * linux-low.c: Include <sched.h>.
20810
20811 2007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
20812
20813 * linux-low.c (linux_tracefork_grandchild): New.
20814 (linux_tracefork_child): Use clone.
20815 (linux_test_for_tracefork): Use clone; allocate and free a stack.
20816
20817 2007-10-31 Joel Brobecker <brobecker@adacore.com>
20818
20819 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
20820
20821 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
20822
20823 * linux-low.c (handle_extended_wait): Handle unexpected signals.
20824
20825 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
20826
20827 * inferiors.c (change_inferior_id): Delete.
20828 (add_pid_to_list, pull_pid_from_list): New.
20829 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
20830 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
20831 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
20832 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
20833 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
20834 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
20835 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
20836 (using_threads): Always set to 1.
20837 (handle_extended_wait): New.
20838 (add_process): Do not set TID.
20839 (linux_create_inferior): Set must_set_ptrace_flags.
20840 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
20841 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
20842 (linux_thread_alive): Rename TID argument to LWPID.
20843 (linux_wait_for_process): Handle unknown processes. Do not use TID.
20844 (linux_wait_for_event): Do not use TID or check using_threads. Update
20845 call to dead_thread_notify. Call handle_extended_wait.
20846 (linux_create_inferior): Use PTRACE_SETOPTIONS.
20847 (send_sigstop): Delete sigstop_sent.
20848 (wait_for_sigstop): Avoid TID.
20849 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
20850 (linux_test_for_tracefork): New.
20851 (linux_lookup_signals): Use thread_db_active and
20852 linux_supports_tracefork_flag.
20853 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
20854 * linux-low.h (get_process_thread): Avoid TID.
20855 (struct process_ifo): Move thread_known and tid to the end. Remove
20856 sigstop_sent.
20857 (linux_attach_lwp, thread_db_init): Update prototypes.
20858 * server.h (change_inferior_id): Delete prototype.
20859 (add_pid_to_list, pull_pid_from_list): New prototypes.
20860 * thread-db.c (thread_db_use_events): New.
20861 (find_first_thread): Rename to...
20862 (find_one_thread): ...this. Update callers and messages. Do not
20863 call fatal. Check thread_db_use_events. Do not call
20864 change_inferior_id or new_thread_notify.
20865 (maybe_attach_thread): Update. Do not call new_thread_notify.
20866 (thread_db_init): Set thread_db_use_events. Check use_events.
20867 * utils.c (fatal, warning): Correct message prefix.
20868
20869 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
20870
20871 * Makefile.in (clean): Remove new files.
20872 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
20873 (powerpc-64.o, powerpc-64.c): New rules.
20874 * configure.srv: Use alternate register sets for powerpc64-*-linux*
20875 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
20876 with SPE.
20877 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
20878 SPE targets.
20879 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
20880 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
20881 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
20882 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
20883 (target_regsets): Add AltiVec and SPE register sets.
20884 * configure.ac: Check for AltiVec and SPE.
20885 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
20886 (ppc_fill_vrregset, ppc_store_vrregset): New.
20887 (target_regsets): Add AltiVec register set.
20888 * configure: Regenerated.
20889
20890 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
20891
20892 * linux-low.c (O_LARGEFILE): Define.
20893 (linux_read_memory): Use /proc/PID/mem.
20894 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
20895 * configure, config.in: Regenerated.
20896
20897 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
20898
20899 * linux-low.c (linux_wait_for_event): Do not pass signals while
20900 single-stepping.
20901
20902 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20903
20904 * win32-low.c (create_process): New.
20905 (win32_create_inferior): Use create_process instead of
20906 CreateProcess. If create_process failed retry appending an ".exe"
20907 suffix. Store the GetLastError result immediatelly after
20908 create_process calls and use it on the call to error.
20909
20910 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20911
20912 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
20913
20914 2007-08-23 Joel Brobecker <brobecker@adacore.com>
20915
20916 * configure.ac: Switch license to GPLv3.
20917
20918 2007-08-01 Michael Snyder <msnyder@access-company.com>
20919
20920 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
20921
20922 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
20923
20924 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
20925 typedef.
20926 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
20927 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
20928 CloseToolhelp32Snapshot.
20929 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
20930 CloseToolhelp32Snapshot.
20931
20932 2007-07-27 Michael Snyder <michael.snyder@access-company.com>
20933
20934 * server.c (main): Check for inferior exit before main loop.
20935
20936 2007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
20937
20938 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
20939 instead of on tmp_desc.
20940
20941 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
20942 Daniel Jacobowitz <dan@codesourcery.com>
20943
20944 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
20945 (add_thread): Minor cleanups.
20946 (clear_inferiors): Move lower in the file. Clear the DLL
20947 list.
20948 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
20949 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
20950 (xml_escape_text): New.
20951 * server.c (handle_query): Handle qXfer:libraries:read. Report it
20952 for qSupported.
20953 (handle_v_cont): Report errors.
20954 (gdbserver_version): Update.
20955 (main): Correct size of own_buf. Do not report initial DLL events.
20956 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
20957 (unloaded_dll, xml_escape_text): New.
20958 * win32-low.c (enum target_waitkind): Update comments.
20959 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
20960 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
20961 (win32_EnumProcessModules, win32_GetModuleInformation)
20962 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
20963 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
20964 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
20965 (win32_Module32First, win32_Module32Next, load_toolhelp)
20966 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
20967 (get_child_debug_event): Handle DLL events.
20968 (win32_wait): Likewise.
20969
20970 2007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
20971
20972 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
20973 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
20974
20975 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20976
20977 * win32-low.c (handle_output_debug_string): Ignore event if not
20978 waiting.
20979
20980 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20981
20982 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
20983
20984 2007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
20985
20986 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
20987
20988 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
20989
20990 * inferiors.c (change_inferior_id): Add comment.
20991 * linux-low.c (check_removed_breakpoint): Add an early
20992 prototype. Improve debug output.
20993 (linux_attach): Doc update.
20994 (linux_detach_one_process, linux_detach): Clean up before releasing
20995 each process.
20996 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
20997 * linux-low.h (struct process_info): Doc improvement.
20998 * mem-break.c (delete_all_breakpoints): New.
20999 * mem-break.h (delete_all_breakpoints): New prototype.
21000 * thread-db.c (find_first_thread): New.
21001 (thread_db_create_event): Call it instead of
21002 thread_db_find_new_threads. Clean up unused variables.
21003 (maybe_attach_thread): Remove first thread handling.
21004 (thread_db_find_new_threads): Use find_first_thread.
21005 (thread_db_get_tls_address): Likewise.
21006
21007 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
21008
21009 * thread-db.c (thread_db_find_new_threads): Add prototype.
21010 (thread_db_create_event): Check for the main thread before adding
21011 a new thread.
21012 (maybe_attach_thread): Only enable event reporting if TID == 0.
21013 (thread_db_get_tls_address): Check for new threads.
21014
21015 2007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
21016
21017 * linux-low.c (linux_create_inferior): Try execv before execvp.
21018 * spu-low.c (spu_create_inferior): Likewise.
21019
21020 2007-06-13 Mike Frysinger <vapier@gentoo.org>
21021
21022 * linux-low.c (linux_create_inferior): Change execv to execvp.
21023 * spu-low.c (spu_create_inferior): Likewies.
21024
21025 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
21026
21027 * Makefile.in (clean): Clean new files instead of deleted ones.
21028 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
21029 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
21030 rules.
21031 * configure.srv: Specify XML files and new regformats for MIPS and
21032 MIPS64 GNU/Linux.
21033 * linux-mips-low.c (mips_num_regs): Set to only used registers.
21034 (mips_regmap): Do not fetch $0. Remove unused registers. Add
21035 an entry for the restart register.
21036 (mips_cannot_fetch_register, mips_cannot_store_register)
21037 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
21038 register names to match the XML descriptions.
21039 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
21040 restart register instead of $0.
21041
21042 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
21043 Markus Deuling <deuling@de.ibm.com>
21044
21045 * remote-utils.c (decode_xfer_write): New function.
21046 * server.h (decode_xfer_write): Add prototype.
21047 * server.c (handle_query): Add PACKET_LEN argument. Support
21048 qXfer:spu:read and qXfer:spu:write packets.
21049 (main): Pass packet_len to handle_query.
21050 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
21051 * target.h (target_ops): Add qxfer_spu.
21052
21053 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
21054
21055 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
21056 accessing non-seekable spufs files.
21057
21058 2007-05-16 Markus Deuling <deuling@de.ibm.com>
21059
21060 * server.c (handle_query): Add reply for qC packet.
21061
21062 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21063 Leo Zayas <lerele@champenstudios@com>
21064
21065 * server.h (check_remote_input_interrupt_request): New function.
21066 * remote_utils.c (INVALID_DESCRIPTOR): New define.
21067 (remote_desc): Initialize with INVALID_DESCRIPTOR.
21068 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
21069 (check_remote_input_interrupt_request): New function.
21070 * server.h (check_remote_input_interrupt_request): Declare.
21071 * win32-low.c (winapi_DebugBreakProcess,
21072 winapi_GenerateConsoleCtrlEvent): New typedefs.
21073 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
21074 to 250 ms.
21075 (win32_wait): Check for remote interrupt request
21076 with check_remote_input_interrupt_request.
21077 (win32_request_interrupt): New function.
21078 (win32_target_op): Set request_interrupt to win32_request_interrupt.
21079
21080 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21081
21082 * win32-low.c (debug_registers_changed,
21083 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
21084 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
21085 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
21086 (thread_rec): Get context using the low target.
21087 (child_add_thread): Call thread_added on the low target,
21088 which does the same thing.
21089 (regptr): Delete.
21090 (do_initial_child_stuff): Remove debug registers references.
21091 Set context using the low target. Resume threads after
21092 setting the contexts.
21093 (child_continue): Remove dead variable. Remove debug
21094 registers references.
21095 (child_fetch_inferior_registers): Go through the low target.
21096 (do_child_store_inferior_registers): Remove.
21097 (child_store_inferior_registers): Go through the low target.
21098 (win32_resume): Remove debug registers references.
21099 Set context using the low target.
21100 (handle_exception): Change return type to void. Don't record
21101 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
21102 first chance exception.
21103 (get_child_debug_event): Change return type to void. Remove
21104 goto loop. Always return after waiting for debug event.
21105 (win32_wait): Convert to switch statement. Handle spurious
21106 events.
21107
21108 * win32-i386-low.c (debug_registers_changed,
21109 debug_registers_used): New.
21110 (initial_stuff): Rename to ...
21111 (i386_initial_stuff): ... this. Clear debug registers
21112 state variables.
21113 (store_debug_registers): Delete.
21114 (i386_get_thread_context): New.
21115 (load_debug_registers): Delete.
21116 (i386_set_thread_context): New.
21117 (i386_thread_added): New.
21118 (single_step): Rename to ...
21119 (i386_single_step): ... this.
21120 (do_fetch_inferior_registers): Rename to ...
21121 (i386_fetch_inferior_register): ... this.
21122 (i386_store_inferior_register): New.
21123 (the_low_target): Adapt to new interface.
21124
21125 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
21126 (arm_get_thread_context): New.
21127 (arm_set_thread_context): New.
21128 (regptr): New.
21129 (do_fetch_inferior_registers): Rename to ...
21130 (arm_fetch_inferior_register): ... this.
21131 (arm_store_inferior_register): New.
21132 (arm_wince_breakpoint): Reimplement as unsigned long.
21133 (arm_wince_breakpoint_len): Define.
21134 (the_low_target): Adapt to new interface.
21135
21136 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
21137 load_debug_registers. Add get_thread_context, set_thread_context,
21138 thread_added and store_inferior_register. Rename
21139 fetch_inferior_registers to fetch_inferior_register.
21140 (regptr): Remove declaration.
21141
21142 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21143
21144 * linux-low.c (linux_detach): Change return type to int. Return 0.
21145 * spu-low.c (spu_detach): Likewise.
21146
21147 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21148
21149 * target.h (target_ops): Change return type of detach to int.
21150 Add join.
21151 (join_inferior): New.
21152 * server.c (main): Don't skip detach support on mingw32.
21153 If the inferior doesn't support detaching return error.
21154 Call join_inferior instead of using waitpid.
21155 * linux-low.c (linux_join): New.
21156 (linux_target_op): Add linux_join.
21157 * spu-low.c (spu_join): New.
21158 (spu_target_ops): Add spu_join.
21159 * win32-low.c (win32_detach): Adapt to new interface.
21160 Reopen current_process_handle before detaching. Issue a child
21161 resume before detaching.
21162 (win32_join): New.
21163 (win32_target_op): Add win32_join.
21164
21165 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21166
21167 * win32-low.c (win32-attach): Fix return value.
21168 * target.h (target_ops): Describe ATTACH return values.
21169
21170 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21171
21172 * win32-low.c (GETPROCADDRESS): Define.
21173 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
21174 (winapi_DebugSetProcessKillOnExit): Likewise.
21175 (win32_create_inferior): Force usage of ansi CreateProcessA.
21176 (win32_attach): Use GETPROCADDRESS.
21177 (win32_detach): Likewise.
21178
21179 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21180
21181 * win32-low.c (win32_wait): Don't use WSTOPSIG.
21182
21183 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
21184
21185 * win32-low.c: Commit leftover changes from 2007-03-29.
21186
21187 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
21188
21189 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
21190 fields short instead of int. Add explicit padding.
21191 (i387_cache_to_fsave): Remove unnecessary casts.
21192 (i387_fsave_to_cache): Doc fix.
21193 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
21194
21195 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
21196
21197 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
21198 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
21199
21200 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
21201
21202 * configure.srv (arm*-*-mingw32ce*): Move near the other
21203 arm targets.
21204
21205 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
21206
21207 * configure.ac: Add errno checking.
21208 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
21209 sys/file.h and malloc.h.
21210 (AC_CHECK_DECLS): Add perror.
21211 (srv_mingwce): Handle.
21212 * configure.srv (i[34567]86-*-cygwin*): Add
21213 win32-i386-low.o to srv_tgtobj.
21214 (i[34567]86-*-mingw*): Likewise.
21215 (arm*-*-mingw32ce*): Add case.
21216 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
21217 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
21218 [__MINGW32CE__] (strerror): New function.
21219 [__MINGW32CE__] (errno): Define to GetLastError.
21220 [__MINGW32CE__] (COUNTOF): New macro.
21221 (remote_open): Remove extra close call.
21222 * mem-break.c (delete_breakpoint_at): New function.
21223 * mem-break.h (delete_breakpoint_at): Declare.
21224 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
21225 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
21226 [USE_WIN32API] (read, write): Add char* casts.
21227 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
21228 * server.h: Include wincecompat.h on Windows CE.
21229 [HAVE_ERRNO_H]: Check.
21230 (perror): Declare if not declared.
21231 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
21232 (perror_with_name): Remove errno declaration.
21233 * wincecompat.h: New.
21234 * wincecompat.c: New.
21235 * win32-low.h: New.
21236 * win32-arm-low.c: New.
21237 * win32-i386-low.c: New.
21238 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
21239 (OUTMSG2): Make it safe.
21240 (_T): New macro.
21241 (COUNTOF): New macro.
21242 (NUM_REGS): Get it from the low target.
21243 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
21244 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
21245 (thread_rec): Let low target handle debug registers.
21246 (child_add_thread): Likewise.
21247 (child_init_thread_list): Likewise.
21248 (continue_one_thread): Likewise.
21249 (regptr): New.
21250 (do_child_fetch_inferior_registers): Move to ...
21251 * win32-i386-low.c: ... here, and rename to ...
21252 (do_fetch_inferior_registers): ... this.
21253 * win32-low.c (child_fetch_inferior_registers):
21254 Go through the low target.
21255 (do_child_store_inferior_registers): Use regptr.
21256 (strwinerror): New function.
21257 (win32_create_inferior): Handle Windows CE.
21258 Use strwinerror instead of strerror on Windows error
21259 codes. Add program to the error output.
21260 Don't close the main thread handle on Windows CE.
21261 (win32_attach): Use coredll.dll on Windows CE.
21262 (win32_kill): Close current process and current
21263 thread handles.
21264 (win32_detach): Use coredll.dll on Windows CE.
21265 (win32_resume): Let low target handle debug registers, and
21266 step request.
21267 (handle_exception): Add/Remove initial breakpoint. Avoid
21268 non-existant WSTOPSIG on Windows CE.
21269 (win32_read_inferior_memory): Cast to remove warning.
21270 (win32_arch_string): Go through the low target.
21271 (initialize_low): Call set_breakpoint_data with the low
21272 target's breakpoint.
21273 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
21274 FOP_REGNUM, mappings): Move to ...
21275 * win32-i386-low.c: ... here.
21276 * win32-low.c (win32_thread_info): Move to ...
21277 * win32-low.h: ... here.
21278 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
21279 win32-arm-low.c and wincecompat.c.
21280 (all:): Add $EXEEXT.
21281 (install-only:): Likewise.
21282 (gdbserver:): Likewise.
21283 (gdbreplay:): Likewise.
21284 * config.in: Regenerate.
21285 * configure: Regenerate.
21286
21287 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
21288
21289 * win32-low.c: Rename typedef thread_info to
21290 win32_thread_info throughout.
21291
21292 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
21293
21294 * win32-i386-low.c: Rename to ...
21295 * win32-low.c: ... this.
21296 * configure.srv: Replace win32-i386-low.o with win32-low.o.
21297 * Makefile.in: Likewise.
21298
21299 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
21300
21301 * remote-utils.c (monitor_output): Constify msg parameter.
21302 * server.h (monitor_output): Likewise.
21303 * win32-i386-low.c (handle_output_debug_string): New.
21304 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
21305 handle_output_debug_string.
21306 (get_child_debug_event): Likewise.
21307
21308 2007-03-27 Mat Hostetter <mat@lcs.mit.edu>
21309
21310 * server.c (main): Correct strtoul check.
21311
21312 2007-03-27 Jon Ringle <jon@ringle.org>
21313
21314 * linux-low.c: Check __ARCH_HAS_MMU__ also.
21315
21316 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
21317
21318 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
21319
21320 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
21321
21322 * terminal.h: Check HAVE_SGTTY_H.
21323
21324 2007-02-27 Mat Hostetter <mat@lcs.mit.edu>
21325
21326 * remote-utils.c (remote_open): Print out the assigned port number.
21327
21328 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
21329
21330 * remote-utils.c (monitor_output): New function.
21331 * server.c (debug_threads): Define here.
21332 (monitor_show_help): New function.
21333 (handle_query): Handle qRcmd.
21334 (main): Do not handle 'd' packet.
21335 * server.h (debug_threads, remote_debug, monitor_output): Declare.
21336 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
21337 of debug_threads.
21338
21339 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21340
21341 * Makefile.in (EXEEXT): New.
21342 (clean): Use $(EXEEXT).
21343
21344 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21345
21346 * target.h (target_ops): Rename send_signal to request_interrupt,
21347 and remove enum target_signal parameter.
21348 * linux-low.c (linux_request_interrupt): Rename from
21349 linux_send_signal, and always send SIGINT.
21350 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
21351 and always send SIGINT.
21352 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
21353 of send_signal.
21354 (input_interrupt): Likewise.
21355
21356 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21357
21358 * server.c (get_features_xml): Check if target implemented
21359 arch_string.
21360 * win32-i386-low.c (win32_arch_string): New.
21361 (win32_target_ops): Add win32_arch_string as arch_string member.
21362
21363 2007-02-22 Markus Deuling <deuling@de.ibm.com>
21364
21365 * spu-low.c (spu_arch_string): New.
21366 (spu_target_ops): Add spu_arch_string.
21367
21368 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
21369
21370 * remote-utils.c: Remove HAVE_TERMINAL_H check.
21371 * configure.ac: Do not check for terminal.h.
21372 * configure, config.in: Regenerated.
21373
21374 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21375
21376 * Makefile.in (OBS): Add $(XML_BUILTIN).
21377 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
21378 (clean): Update.
21379 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
21380 (arm-with-iwmmxt.c): New.
21381 * config.in, configure: Regenerate.
21382 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
21383 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
21384 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
21385 (arm*-*-linux*): Add iWMMXt and regset support.
21386 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
21387 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
21388 (arm_store_wmmxregset, target_regsets): New.
21389 * server.c (get_features_xml): Take annex argument. Check builtin
21390 XML documents.
21391 (handle_query): Handle multiple annexes.
21392
21393 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
21394
21395 * remote-utils.c [USE_WIN32API] (read, write): Define.
21396 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
21397 write.
21398
21399 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
21400
21401 * linux-i386-low.c (the_low_target): Set arch_string.
21402 * linux-x86-64-low.c (the_low_target): Likewise.
21403 * linux-low.c (linux_arch_string): New.
21404 (linux_target_ops): Add it.
21405 * linux-low.h (struct linux_target_ops): Add arch_string.
21406 * server.c (write_qxfer_response): Use const void * for DATA.
21407 (get_features_xml): New.
21408 (handle_query): Handle qXfer:features:read. Report it for qSupported.
21409 * target.h (struct target_ops): Add arch_string method.
21410
21411 2007-01-03 Denis Pilat <denis.pilat@st.com>
21412 Daniel Jacobowitz <dan@codesourcery.com>
21413
21414 * linux-low.c (linux_kill): Handle being called with no threads.
21415 * win32-i386-low.c (win32_kill): Likewise.
21416 (get_child_debug_event): Clear current_process_handle.
21417
21418 2006-12-30 Denis PILAT <denis.pilat@st.com>
21419 Daniel Jacobowitz <dan@codesourcery.com>
21420
21421 * remote-utils.c (remote_open): Check the type of specified
21422 serial port devices before opening them.
21423 * server.c (main): Kill the inferior if an error occurs during
21424 the first remote_open.
21425
21426 2006-12-05 Markus Deuling <deuling@de.ibm.com>
21427
21428 * README: Update supported targets.
21429
21430 2006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
21431
21432 * Makefile.in (clean): Remove reg-mips64.c.
21433 (reg-mips64.c, reg-mips64.o): New rules.
21434 * configure.srv: Handle mips64. Include regset support for mips.
21435 * linux-mips-low.c (union mips_register): New.
21436 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
21437 (mips_breakpoint, mips_breakpoint_at): Use int.
21438 (mips_collect_register, mips_supply_register)
21439 (mips_collect_register_32bit, mips_supply_register_32bit)
21440 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
21441 (mips_store_fpregset, target_regsets): New.
21442 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
21443
21444 2006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
21445
21446 * configure.srv: Add target "spu*-*-*".
21447 * Makefile.in (clean): Remove reg-spu.c.
21448 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
21449 * spu-low.c: New file.
21450
21451 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21452
21453 * configure.ac: Correct td_thr_tls_get_addr test.
21454 * configure: Regenerated.
21455
21456 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21457
21458 * linux-low.c (linux_wait_for_event): Reformat. Use the
21459 pass_signals array.
21460 * remote-utils.c (decode_address_to_semicolon): New.
21461 * server.c (pass_signals, handle_general_set): New.
21462 (handle_query): Mention QPassSignals for qSupported.
21463 (main): Call handle_general_set.
21464 * server.h (pass_signals, decode_address_to_semicolon): New.
21465
21466 2006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
21467
21468 * server.c (handle_query): Correct error handling for read_auxv.
21469
21470 2005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
21471
21472 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
21473 and srv_linux_thread_db to yes.
21474 * linux-s390-low.c (s390_fill_gregset): New function.
21475 (target_regsets): Define data structure.
21476
21477 2006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
21478
21479 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
21480 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
21481 * config.in, configure: Regenerated.
21482 * inferiors.c (gdb_id_to_thread): New function.
21483 (gdb_id_to_thread_id): Use it.
21484 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
21485 * linux-low.h (struct process_info): Add th member.
21486 (thread_db_get_tls_address): New prototype.
21487 * remote-utils.c (decode_address): Make non-static.
21488 * server.c (handle_query): Handle qGetTLSAddr.
21489 * server.h (gdb_id_to_thread, decode_address): New prototypes.
21490 * target.h (struct target_ops): Add get_tls_address.
21491 * thread-db.c (maybe_attach_thread): Save the thread handle.
21492 (thread_db_get_tls_address): New.
21493
21494 2006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
21495
21496 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
21497 (linux_resume_one_process): Take a siginfo_t *. Update all
21498 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
21499 (struct pending_signals): Add a siginfo_t.
21500 (linux_wait_for_process): Always set last_status.
21501 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
21502 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
21503 * linux-low.h (struct process_info): Add last_status.
21504
21505 2006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
21506
21507 * remote-utils.c (try_rle): New function.
21508 (putpkt_binary): Use it.
21509
21510 2006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
21511
21512 * Makefile.in (clean): Clean reg-x86-64-linux.c.
21513 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
21514 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
21515 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
21516 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
21517 point registers.
21518
21519 2006-08-08 Richard Sandiford <richard@codesourcery.com>
21520
21521 * server.c (terminal_fd): New variable.
21522 (old_foreground_pgrp): Likewise.
21523 (restore_old_foreground_pgrp): New function.
21524 (start_inferior): Record the terminal file descriptor in terminal_fd
21525 and its original foreground group in old_foreground_pgrp. Register
21526 restore_old_foreground_pgrp with atexit().
21527
21528 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
21529
21530 * server.c (handle_query): Correct qPart to qXfer.
21531
21532 2006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
21533
21534 * configure.ac: Check for more headers which are missing on
21535 Windows. Automatically supply -lwsock32 and USE_WIN32API.
21536 * configure.srv: Add Cygwin and mingw32.
21537 * remote-utils.c: Don't include headers unconditionally which
21538 are missing on mingw32. Include <winsock.h> for mingw32.
21539 (remote_open): Adjust for mingw32 support. Flush
21540 standard error after writing to it.
21541 (remote_close, putpkt_binary, input_interrupt, block_async_io)
21542 (unblock_async_io, enable_async_io, disable_async_io)
21543 (readchar, getpkt): Update for Winsock support.
21544 (prepare_resume_reply): Expect a protocol signal number.
21545 * server.c: Disable <sys/wait.h> on mingw32.
21546 (start_inferior): Adjust for mingw32 support. Flush
21547 standard error after writing to it.
21548 (attach_inferior): Likewise. Use protocol signal
21549 numbers.
21550 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
21551 and names.
21552 * win32-i386-low.c: New file.
21553 * Makefile.in (XM_CLIBS): Set.
21554 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
21555 (win32-i386-low.o): New dependency rule.
21556 * linux-low.c (linux_wait): Use target signal numbers.
21557 * target.h (struct target_ops): Doc fix.
21558 * server.h (target_signal_to_name): New prototype.
21559 * gdbreplay.c: Don't include headers unconditionally which
21560 are missing on mingw32. Include <winsock.h> for mingw32.
21561 (remote_close, remote_open): Adjust for Winsock support.
21562 * configure, config.in: Regenerated.
21563
21564 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
21565
21566 * server.c (decode_xfer_read, write_qxfer_response): New.
21567 (handle_query): Take a packet length argument. Handle
21568 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
21569 the qSupported response.
21570 (main): Update call to handle_query.
21571
21572 2006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
21573
21574 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
21575 (putpkt_binary): Renamed from putpkt and adjusted for binary
21576 data.
21577 (putpkt): New wrapper for putpkt_binary.
21578 (readchar): Don't mask off the high bit.
21579 (decode_X_packet): New function.
21580 * server.c (main): Call putpkt_binary if a handler sets the packet
21581 length. Save the length of the incoming packet. Handle 'X'.
21582 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
21583
21584 2006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
21585
21586 * server.c (handle_query): Handle qSupported.
21587
21588 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21589
21590 * remote-utils.c (all_symbols_looked_up): New variable.
21591 (look_up_one_symbol): Check it.
21592 * server.h (look_up_one_symbol): New declaration.
21593 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
21594
21595 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21596
21597 * Makefile.in (linux-arm-low.o): Update dependencies.
21598 * linux-arm-low.c: Include "gdb_proc_service.h".
21599 (PTRACE_GET_THREAD_AREA): Define.
21600 (ps_get_thread_area): New function.
21601
21602 2006-05-09 Nathan Sidwell <nathan@codesourcery.com>
21603
21604 * configure.srv (m68k*-*-uclinux*): New target.
21605 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
21606 (linux_resume_one_process): Remove extraneous cast.
21607 (linux_read_offsets): New.
21608 (linux_target_op): Add linux_read_offsets on mmuless systems.
21609 * server.c (handle_query): Add qOffsets logic.
21610 * target.h (struct target_ops): Add read_offsets.
21611
21612 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21613
21614 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
21615 (PTRACE_GET_THREAD_AREA): Define.
21616 (ps_get_thread_area): New function.
21617 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
21618 (linux-x86-64-low.o): Update.
21619
21620 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21621
21622 * configure.ac: Remove checks for prfpregset_t.
21623 * gdb_proc_service.h: New file.
21624 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
21625 new "gdb_proc_service.h".
21626 * proc-service.c: Likewise.
21627 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
21628 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
21629 * Makefile.in (gdb_proc_service_h): Updated.
21630 * configure, config.in: Regenerated.
21631
21632 2006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21633
21634 * remote-utils.c (prepare_resume_reply): Move declaration
21635 of gdb_id_from_wait to the top of the block.
21636
21637 2006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
21638
21639 * linux-low.c (regsets_store_inferior_registers): Read the regset
21640 from the target before filling it.
21641
21642 2006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21643
21644 * server.c (attach_inferior): Return SIGTRAP for a successful
21645 attach.
21646
21647 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
21648
21649 * Makefile.in (OBS): Add version.o.
21650 (STAGESTUFF): Delete.
21651 (version.o): Add dependencies.
21652 (version.c): Replace rule.
21653 (clean): Remove version.c.
21654 * server.c (gdbserver_version): New.
21655 (gdbserver_usage): Use printf.
21656 (main): Handle --version and --help.
21657 * server.h (version, host_name): Add declarations.
21658
21659 2005-12-23 Eli Zaretskii <eliz@gnu.org>
21660
21661 * linux-arm-low.c:
21662 * linux-arm-low.c:
21663 * inferiors.c:
21664 * i387-fp.h:
21665 * i387-fp.c:
21666 * gdbreplay.c:
21667 * regcache.c:
21668 * proc-service.c:
21669 * mem-break.h:
21670 * mem-break.c:
21671 * linux-x86-64-low.c:
21672 * linux-sh-low.c:
21673 * linux-s390-low.c:
21674 * linux-ppc64-low.c:
21675 * linux-ppc-low.c:
21676 * linux-mips-low.c:
21677 * linux-m68k-low.c:
21678 * linux-m32r-low.c:
21679 * linux-low.h:
21680 * linux-low.c:
21681 * linux-ia64-low.c:
21682 * linux-i386-low.c:
21683 * linux-crisv32-low.c:
21684 * thread-db.c:
21685 * terminal.h:
21686 * target.h:
21687 * target.c:
21688 * server.h:
21689 * server.c:
21690 * remote-utils.c:
21691 * regcache.h:
21692 * utils.c:
21693 * Makefile.in:
21694 * configure.ac:
21695 * gdbserver.1: Add (C) after Copyright. Update the FSF
21696 address.
21697
21698 2005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
21699
21700 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
21701 (arm_breakpoint_at): Recognize both breakpoints.
21702 (the_low_target): Use the correct breakpoint instruction.
21703
21704 2005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
21705
21706 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
21707 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
21708 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
21709 (the_low_target): Update.
21710
21711 2005-10-25 Andreas Schwab <schwab@suse.de>
21712
21713 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
21714
21715 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
21716 (ia64_num_regs): Reduce to 462.
21717
21718 2005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
21719
21720 * acinclude.m4: Correct quoting.
21721 * aclocal.m4: Regenerated.
21722
21723 Suggested by SZOKOVACS Robert <szo@ies.hu>:
21724 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
21725 (thread_db_init): Call thread_db_err_str.
21726 * configure.ac: Check for TD_VERSION.
21727 * config.in, configure: Regenerated.
21728
21729 2005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21730
21731 * server.h (error, fatal, warning): Add ATTR_FORMAT.
21732
21733 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21734
21735 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
21736 is not available. Define HAVE_PTRACE_GETREGS if it is.
21737 * config.in, configure: Regenerated.
21738 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
21739 * linux-i386-low.c, linux-m68k-low.c: Update to use
21740 HAVE_PTRACE_GETREGS.
21741 * linux-low.c (regsets_fetch_inferior_registers)
21742 (regsets_store_inferior_registers): Only return 0 if we processed
21743 GENERAL_REGS.
21744 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
21745 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
21746
21747 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21748
21749 * inferiors.c (struct thread_info): Add gdb_id.
21750 (add_thread): Add gdb_id argument.
21751 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
21752 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
21753 calls to add_thread.
21754 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
21755 * server.c (handle_query): Use thread_to_gdb_id.
21756 (handle_v_cont, main): Use gdb_id_to_thread_id.
21757 * server.h (add_thread): Update prototype.
21758 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
21759 prototypes.
21760
21761 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21762
21763 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
21764 left-padded registers.
21765 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
21766 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
21767
21768 2005-07-01 Steve Ellcey <sje@cup.hp.com>
21769
21770 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
21771 * configure: Regenerate.
21772 * config.in: Regenerate.
21773 * server.h (NEED_DECLARATION_STRERROR):
21774 Replace with !HAVE_DECL_STRERROR.
21775
21776 2005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
21777
21778 * linux-low.c (linux_wait, linux_send_signal): Don't test
21779 an unsigned long variable for > 0 if it could be MAX_ULONG.
21780 * server.c (myresume): Likewise.
21781 * target.c (set_desired_inferior): Likewise.
21782
21783 2005-06-13 Mark Kettenis <kettenis@gnu.org>
21784
21785 * configure.ac: Simplify and improve check for socklen_t.
21786 * configure, config.in: Regenerate.
21787
21788 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
21789
21790 * acconfig.h: Remove.
21791 * configure.ac: Add a test for socklen_t. Use three-argument
21792 AC_DEFINE throughout.
21793 * config.in: Regenerated using autoheader 2.59.
21794 * configure: Regenerated.
21795
21796 * gdbreplay.c (socklen_t): Provide a default.
21797 (remote_open): Use socklen_t.
21798 * remote-utils.c (socklen_t): Provide a default.
21799 (remote_open): Use socklen_t.
21800 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
21801 unsigned char.
21802
21803 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
21804 char for buffers.
21805 * linux-low.c (linux_read_memory, linux_write_memory)
21806 (linux_read_auxv): Likewise.
21807 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
21808 (check_mem_write): Likewise.
21809 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
21810 Likewise.
21811 * regcache.c (struct inferior_rgcache_data, registers_to_string)
21812 (registers_from_string, register_data): Likewise.
21813 * server.c (handle_query, main): Likewise.
21814 * server.h (convert_ascii_to_int, convert_int_to_ascii)
21815 (decode_M_packet): Likewise.
21816 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
21817 * target.h (struct target_ops): Update read_memory, write_memory,
21818 and read_auxv.
21819 (read_inferior_memory, write_inferior_memory): Update.
21820 * linux-low.h (struct linux_target_ops): Change type of breakpoint
21821 to unsigned char *.
21822 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
21823 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
21824 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
21825 linux-s390-low.c, linux-sh-low.c: Update for changes in
21826 read_inferior_memory and the_low_target->breakpoint.
21827
21828 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
21829
21830 * Makefile.in (SFILES): Add linux-ppc64-low.c.
21831 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
21832 * configure.srv: Add powerpc64-*-linux*.
21833 * linux-ppc64-low.c: New file.
21834
21835 2005-05-23 Orjan Friberg <orjanf@axis.com>
21836
21837 * linux-cris-low.c: New file with support for CRIS.
21838 * linux-crisv32-low.c: Ditto for CRISv32.
21839 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
21840 (clean): Add reg-cris.c and reg-crisv32.c.
21841 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
21842 reg-crisv32.o, and reg-crisv32.c to make rules.
21843 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
21844 recognized targets.
21845
21846 2005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
21847
21848 * linux-low.c (fetch_register): Ensure buffer size is a multiple
21849 of sizeof (PTRACE_XFER_TYPE).
21850 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
21851
21852 2005-05-12 Orjan Friberg <orjanf@axis.com>
21853
21854 * target.h (struct target_ops): Add insert_watchpoint,
21855 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
21856 pointers for hardware watchpoint support.
21857 * linux-low.h (struct linux_target_ops): Ditto.
21858 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
21859 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
21860 to linux_target_ops.
21861 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
21862 reply packet.
21863 * server.c (main): Recognize 'Z' and 'z' packets.
21864
21865 2005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
21866
21867 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
21868 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
21869 (the_low_target): Add new members.
21870
21871 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21872
21873 * proc-service.c (ps_lgetregs): Search all_processes instead of
21874 all_threads.
21875
21876 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21877
21878 * server.c (start_inferior): Change return type to int.
21879 (attach_inferior): Change sigptr to int *.
21880 (handle_v_cont, handle_v_requests): Change signal to int *.
21881 (main): Change signal to int.
21882
21883 2005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
21884
21885 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
21886 * configure.srv: Add m32r*-*-linux*.
21887 * linux-m32r-low.c: New file.
21888
21889 2005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
21890
21891 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
21892
21893 2005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21894
21895 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
21896 Take unsigned long arguments for PIDs.
21897 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
21898 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
21899 (wait_for_sigstop, linux_resume_one_process)
21900 (regsets_fetch_inferior_registers, linux_send_signal)
21901 (linux_read_auxv): Likewise. Update the types of variables holding
21902 PIDs. Update format string specifiers.
21903 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
21904 * remote-utils.c (prepare_resume_reply): Likewise.
21905 * server.c (cont_thread, general_thread, step_thread)
21906 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
21907 unsigned long.
21908 (handle_query): Update format specifiers.
21909 (handle_v_cont, main): Use strtoul for thread IDs.
21910 * server.h (struct inferior_list_entry): Use unsigned long for ID.
21911 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
21912 (general_thread, step_thread, thread_from_wait)
21913 (old_thread_from_wait): Update.
21914 * target.h (struct thread_resume): Use unsigned long for THREAD.
21915 (struct target_ops): Use unsigned long for arguments to attach and
21916 thread_alive.
21917
21918 2005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
21919
21920 * acinclude.m4: Include bfd/bfd.m4 directly.
21921 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
21922 <agriffis@toolchain.org>.
21923 * aclocal.m4, configure: Regenerated.
21924
21925 2005-01-07 Andrew Cagney <cagney@gnu.org>
21926
21927 * configure.ac: Rename configure.in, require autoconf 2.59.
21928 * configure: Re-generate.
21929
21930 2004-12-08 Daniel Jacobowitz <dan@debian.org>
21931
21932 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
21933 LIBS when finished.
21934 * aclocal.m4: Regenerated.
21935 * configure: Regenerated.
21936
21937 2004-11-21 Andreas Schwab <schwab@suse.de>
21938
21939 * linux-m68k-low.c (m68k_num_gregs): Define.
21940 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
21941 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
21942 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
21943 (m68k_breakpoint_at): New. Add to the_low_target.
21944
21945 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
21946 srv_linux_thread_db to yes.
21947
21948 2004-10-20 Joel Brobecker <brobecker@gnat.com>
21949
21950 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
21951 (ARCH_SET_FS): Likewise.
21952 (ARCH_GET_FS): Likewise.
21953 (ARCH_GET_GS): Likewise.
21954
21955 2004-10-16 Daniel Jacobowitz <dan@debian.org>
21956
21957 * linux-i386-low.c (ps_get_thread_area): New.
21958 * linux-x86-64-low.c (ps_get_thread_area): New.
21959 * linux-low.c: Include <sys/syscall.h>.
21960 (linux_kill_one_process): Don't kill the first thread here.
21961 (linux_kill): Kill the first thread here.
21962 (kill_lwp): New function.
21963 (send_sigstop, linux_send_signal): Use it.
21964 * proc-service.c: Clean up #ifdefs.
21965 (fpregset_info): Delete.
21966 (ps_lgetregs): Update and enable implementation.
21967 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
21968 implementations.
21969 * remote-utils.c (struct sym_cache, symbol_cache): New.
21970 (input_interrupt): Print a clearer message.
21971 (async_io_enabled): New variable.
21972 (enable_async_io, disable_async_io): Use it. Update comments.
21973 (look_up_one_symbol): Use the symbol cache.
21974 * thread-db.c (thread_db_look_up_symbols): New function.
21975 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
21976
21977 2004-10-16 Daniel Jacobowitz <dan@debian.org>
21978
21979 * configure.in: Test for -rdynamic.
21980 * configure: Regenerated.
21981 * Makefile (INTERNAL_LDFLAGS): New.
21982 (gdbserver, gdbreplay): Use it.
21983
21984 2004-09-02 Andrew Cagney <cagney@gnu.org>
21985
21986 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
21987
21988 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
21989
21990 * linux-low.c (linux_wait): Clear all_processes list also.
21991
21992 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
21993
21994 * linux-low.c: Include <errno.h>. Remove extern declaration of
21995 errno.
21996
21997 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
21998
21999 * gdbreplay.c, server.h, utils.c: Update copyright years.
22000
22001 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
22002
22003 * server.c (main): Print child status or termination signal from
22004 variable 'signal', not 'sig'.
22005
22006 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
22007
22008 * linux-low.c (linux_read_memory): Change return type to
22009 int. Check for and return error from ptrace().
22010 * target.c (read_inferior_memory): Change return type to int. Pass
22011 back return status from the_target->read_memory().
22012 * target.h (struct target_ops): Adapt *read_memory() prototype.
22013 Update comment.
22014 (read_inferior_memory): Adapt prototype.
22015 * server.c (main): Return an error packet if
22016 read_inferior_memory() returns an error.
22017
22018 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
22019
22020 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
22021 Unify with other clean targets.
22022
22023 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
22024
22025 * server.c (handle_v_cont): Call set_desired_inferior.
22026
22027 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
22028
22029 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
22030
22031 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
22032
22033 * linux-low.c (linux_wait): Unblock async I/O.
22034 (linux_resume): Block and enable async I/O.
22035 * remote-utils.c (block_async_io, unblock_async_io): New functions.
22036 * server.h (block_async_io, unblock_async_io): Add prototypes.
22037
22038 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
22039
22040 * remote-utils.c (remote_open): Print a status notice after
22041 opening a TCP port.
22042 * server.c (attach_inferior): Print a status notice after
22043 attaching.
22044
22045 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
22046
22047 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
22048
22049 2004-02-26 Daniel Jacobowitz <drow@mvista.com>
22050
22051 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
22052 error packet.
22053 * server.c, target.h: Update copyright years.
22054
22055 2004-02-25 Roland McGrath <roland@redhat.com>
22056
22057 * target.h (struct target_ops): New member `read_auxv'.
22058 * server.c (handle_query): Handle qPart:auxv:read: query using that.
22059 * linux-low.c (linux_read_auxv): New function.
22060 (linux_target_ops): Initialize `read_auxv' member to that.
22061
22062 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22063
22064 Committed by Jim Blandy <jimb@redhat.com>.
22065
22066 * linux-s390-low.c (s390_num_regs): Update.
22067 (s390_regmap): Remove control registers. Use __s390x__ predefine
22068 instead of GPR_SIZE to distiguish s390 and s390x targets.
22069
22070 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
22071
22072 * linux-low.c: Update copyright year.
22073 (check_removed_breakpoint): Clear pending_is_breakpoint.
22074 (linux_set_resume_request, linux_queue_one_thread)
22075 (resume_status_pending_p): New functions.
22076 (linux_continue_one_thread): Use process->resume.
22077 (linux_resume): Only resume threads if there are no pending events.
22078 * linux-low.h (struct process_info): Add resume request
22079 pointer.
22080
22081 2004-01-30 Daniel Jacobowitz <drow@mvista.com>
22082
22083 * regcache.c (new_register_cache): Clear the allocated register
22084 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
22085
22086 2003-10-13 Daniel Jacobowitz <drow@mvista.com>
22087
22088 * linux-low.c (linux_resume): Take a struct thread_resume *
22089 argument.
22090 (linux_wait): Update call.
22091 (resume_ptr): New static variable.
22092 (linux_continue_one_thread): Renamed from
22093 linux_continue_one_process. Use resume_ptr.
22094 (linux_resume): Use linux_continue_one_thread.
22095 * server.c (handle_v_cont, handle_v_requests): New functions.
22096 (myresume): New function.
22097 (main): Handle 'v' case.
22098 * target.h (struct thread_resume): New type.
22099 (struct target_ops): Change argument of "resume" to struct
22100 thread_resume *.
22101 (myresume): Delete macro.
22102
22103 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
22104
22105 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
22106 (uninstall): Support DESTDIR.
22107
22108 Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
22109
22110 * configure.srv: Add xscale*linux copy of arm*linux entry.
22111
22112 2003-07-24 Daniel Jacobowitz <drow@mvista.com>
22113
22114 * linux-arm-low.c (arm_reinsert_addr): New function.
22115 (the_low_target): Add arm_reinsert_addr.
22116
22117 2003-07-08 Mark Kettenis <kettenis@gnu.org>
22118
22119 * mem-break.c: Remove whitespace at end of file.
22120
22121 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
22122
22123 * configure.in: Check whether we need to prototype strerror.
22124 * server.h: Optionally prototype strerror.
22125 * gdbreplay.c (perror_with_name): Use strerror.
22126 * linux-low.c (linux_attach_lwp): Use strerror.
22127 * utils.c (perror_with_name): Use strerror.
22128 * config.in, configure: Regenerated.
22129
22130 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
22131
22132 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
22133 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
22134
22135 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
22136
22137 * Makefile.in (SFILES): Update.
22138 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
22139 low-sun3.c: Remove files.
22140
22141 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
22142
22143 * linux-low.c: Move comment to linux_thread_alive where it belonged.
22144 (linux_detach_one_process, linux_detach): New functions.
22145 (linux_target_ops): Add linux_detach.
22146 * server.c (main): Handle 'D' packet.
22147 * target.h (struct target_ops): Add "detach" member.
22148 (detach_inferior): Define.
22149
22150 2003-06-13 Mark Kettenis <kettenis@gnu.org>
22151
22152 From Kelley Cook <kelleycook@wideopenwest.com>:
22153 * configure.srv: Accept i[34567]86 variants.
22154
22155 2003-06-05 Daniel Jacobowitz <drow@mvista.com>
22156
22157 * linux-low.c (linux_wait_for_event): Correct comment typos.
22158 (linux_resume_one_process): Call check_removed_breakpoint.
22159 (linux_send_signal): New function.
22160 (linux_target_ops): Add linux_send_signal.
22161 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
22162 of kill.
22163 * target.h (struct target_ops): Add send_signal.
22164
22165 2003-05-29 Jim Blandy <jimb@redhat.com>
22166
22167 * linux-low.c (usr_store_inferior_registers): Transfer buf in
22168 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
22169 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
22170 away part of the register's value.
22171
22172 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
22173
22174 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
22175 (linux_wait_for_event, linux_init_signals): Likewise.
22176
22177 2003-03-17 Daniel Jacobowitz <drow@mvista.com>
22178
22179 * configure.in: Check for stdlib.h.
22180 * configure: Regenerated.
22181 * config.in: Regenerated.
22182
22183 2003-01-04 Andreas Schwab <schwab@suse.de>
22184
22185 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
22186
22187 2003-01-02 Andrew Cagney <ac131313@redhat.com>
22188
22189 * Makefile.in: Remove obsolete code.
22190
22191 2002-11-20 Daniel Jacobowitz <drow@mvista.com>
22192
22193 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
22194 defined(PT_FPR0_HI).
22195
22196 2002-11-17 Stuart Hughes <seh@zee2.com>
22197
22198 * linux-arm-low.c (arm_num_regs): Increase.
22199 (arm_regmap): Include status register.
22200
22201 2002-11-17 Daniel Jacobowitz <drow@mvista.com>
22202
22203 * linux-low.c (register_addr): Remove incorrect -1 check.
22204
22205 2002-08-29 Daniel Jacobowitz <drow@mvista.com>
22206
22207 * linux-low.c (linux_create_inferior): Call setpgid. Return
22208 the new PID.
22209 (unstopped_p, linux_signal_pid): Remove.
22210 (linux_target_ops): Remove linux_signal_pid.
22211 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
22212 global instead of target method.
22213 * target.h (struct target_ops): Remove signal_pid. Update comment
22214 for create_inferior.
22215 * server.c (signal_pid): New variable.
22216 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
22217 gdbserver. Set the child to be the foreground process group.
22218 (attach_inferior): Set signal_pid.
22219
22220 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
22221
22222 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
22223
22224 2002-08-20 Jim Blandy <jimb@redhat.com>
22225
22226 * Makefile.in (LDFLAGS): Allow the configure script to establish a
22227 default for this.
22228
22229 2002-08-01 Andrew Cagney <cagney@redhat.com>
22230
22231 * Makefile.in: Make chill references obsolete.
22232
22233 2002-07-24 Kevin Buettner <kevinb@redhat.com>
22234
22235 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
22236 * configure: Regenerate.
22237 * config.in: Regenerate.
22238
22239 2002-07-09 David O'Brien <obrien@FreeBSD.org>
22240
22241 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
22242 (perror_with_name, remote_close, remote_open, expect, play): Static.
22243
22244 2002-07-04 Michal Ludvig <mludvig@suse.cz>
22245
22246 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
22247 byte offsets instead of an array of indexes.
22248 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
22249
22250 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
22251
22252 * regcache.c: Add comment.
22253
22254 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
22255
22256 * thread-db.c: New file.
22257 * proc-service.c: New file.
22258 * acinclude.m4: New file.
22259 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
22260 proc-service.o, and thread-db.o.
22261 (linux-low.o): Add USE_THREAD_DB.
22262 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
22263 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
22264 * aclocal.m4: Regenerated.
22265 * config.in: Regenerated.
22266 * configure: Regenerated.
22267 * configure.in: Check for proc_service.h, sys/procfs.h,
22268 thread_db.h, and linux/elf.h headrs.
22269 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
22270 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
22271 Check for -lthread_db and thread support.
22272 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
22273 PowerPC, and SuperH.
22274 * i387-fp.c: Constify arguments.
22275 * i387-fp.h: Likewise.
22276 * inferiors.c: (struct thread_info): Renamed from
22277 `struct inferior_info'. Remove PID member. Use generic inferior
22278 list header. All uses updated.
22279 (inferiors, signal_pid): Removed.
22280 (all_threads): New variable.
22281 (get_thread): Define.
22282 (add_inferior_to_list): New function.
22283 (for_each_inferior): New function.
22284 (change_inferior_id): New function.
22285 (add_inferior): Removed.
22286 (remove_inferior): New function.
22287 (add_thread): New function.
22288 (free_one_thread): New function.
22289 (remove_thread): New function.
22290 (clear_inferiors): Use for_each_inferior and free_one_thread.
22291 (find_inferior): New function.
22292 (find_inferior_id): New function.
22293 (inferior_target_data): Update argument type.
22294 (set_inferior_target_data): Likewise.
22295 (inferior_regcache_data): Likewise.
22296 (set_inferior_regcache_data): Likewise.
22297 * linux-low.c (linux_bp_reinsert): Remove.
22298 (all_processes, stopping_threads, using_thrads)
22299 (struct pending_signals, debug_threads, pid_of): New.
22300 (inferior_pid): Replace with macro.
22301 (struct inferior_linux_data): Remove.
22302 (get_stop_pc, add_process): New functions.
22303 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
22304 Use add_process and add_thread.
22305 (linux_attach_lwp): New function, based on old linux_attach. Use
22306 add_process and add_thread. Set stop_expected for new threads.
22307 (linux_attach): New function.
22308 (linux_kill_one_process): New function.
22309 (linux_kill): Kill all LWPs.
22310 (linux_thread_alive): Use find_inferior_id.
22311 (check_removed_breakpoints, status_pending_p): New functions.
22312 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
22313 Update. Use WNOHANG. Wait for cloned processes also. Update process
22314 struct for the found process.
22315 (linux_wait_for_event): New function.
22316 (linux_wait): Use it. Support LWPs.
22317 (send_sigstop, wait_for_sigstop, stop_all_processes)
22318 (linux_resume_one_process, linux_continue_one_process): New functions.
22319 (linux_resume): Support LWPs.
22320 (REGISTER_RAW_SIZE): Remove.
22321 (fetch_register): Use register_size instead. Call supply_register.
22322 (usr_store_inferior_registers): Likewise. Call collect_register.
22323 Fix recursive case.
22324 (regsets_fetch_inferior_registers): Improve error message.
22325 (regsets_store_inferior_registers): Add debugging.
22326 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
22327 (unstopped_p, linux_signal_pid): New functions.
22328 (linux_target_ops): Add linux_signal_pid.
22329 (linux_init_signals): New function.
22330 (initialize_low): Call it. Initialize using_threads.
22331 * regcache.c (inferior_regcache_data): Add valid
22332 flag.
22333 (get_regcache): Fetch registers lazily. Add fetch argument
22334 and update all callers.
22335 (regcache_invalidate_one, regcache_invalidate): New
22336 functions.
22337 (new_register_cache): Renamed from create_register_cache.
22338 Return the new regcache.
22339 (free_register_cache): Change argument to a void *.
22340 (registers_to_string, registers_from_string): Call get_regcache
22341 with fetch flag set.
22342 (register_data): Make static. Pass fetch flag to get_regcache.
22343 (supply_register): Call get_regcache with fetch flag clear.
22344 (collect_register): Call get_regcache with fetch flag set.
22345 (collect_register_as_string): New function.
22346 * regcache.h: Update.
22347 * remote-utils.c (putpkt): Flush after debug output and use
22348 stderr.
22349 Handle input interrupts while waiting for an ACK.
22350 (input_interrupt): Use signal_pid method.
22351 (getpkt): Flush after debug output and use stderr.
22352 (outreg): Use collect_register_as_string.
22353 (new_thread_notify, dead_thread_notify): New functions.
22354 (prepare_resume_reply): Check using_threads. Set thread_from_wait
22355 and general_thread.
22356 (look_up_one_symbol): Flush after debug output.
22357 * server.c (step_thread, server_waiting): New variables.
22358 (start_inferior): Don't use signal_pid. Update call to mywait.
22359 (attach_inferior): Update call to mywait.
22360 (handle_query): Handle qfThreadInfo and qsThreadInfo.
22361 (main): Don't fetch/store registers explicitly. Use
22362 set_desired_inferior. Support proposed ``Hs'' packet. Update
22363 calls to mywait.
22364 * server.h: Update.
22365 (struct inferior_list, struct_inferior_list_entry): New.
22366 * target.c (set_desired_inferior): New.
22367 (write_inferior_memory): Constify.
22368 (mywait): New function.
22369 * target.h: Update.
22370 (struct target_ops): New signal_pid method.
22371 (mywait): Removed macro, added prototype.
22372
22373 * linux-low.h (regset_func): Removed.
22374 (regset_fill_func, regset_store_func): New.
22375 (enum regset_type): New.
22376 (struct regset_info): Add type field. Use new operation types.
22377 (struct linux_target_ops): stop_pc renamed to get_pc.
22378 Add decr_pc_after_break and breakpoint_at.
22379 (get_process, get_thread_proess, get_process_thread)
22380 (strut process_info, all_processes, linux_attach_lwp)
22381 (thread_db_init): New.
22382
22383 * linux-arm-low.c (arm_get_pc, arm_set_pc,
22384 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
22385 (the_low_target): Add new members.
22386 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
22387 (i386_store_fpxregset): Constify.
22388 (target_regsets): Add new kind identifier.
22389 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
22390 (i386_set_pc): Add debugging.
22391 (i386_breakpoint_at): New function.
22392 (the_low_target): Add new members.
22393 * linux-mips-low.c (mips_get_pc, mips_set_pc)
22394 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
22395 (mips_breakpoint_at): New.
22396 (the_low_target): Add new members.
22397 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
22398 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
22399 (the_low_target): Add new members.
22400 * linux-sh-low.c (sh_get_pc, sh_set_pc)
22401 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
22402 (the_low_target): Add new members.
22403 * linux-x86-64-low.c (target_regsets): Add new kind
22404 identifier.
22405
22406 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
22407
22408 From Martin Pool <mbp@samba.org>:
22409 * server.c (gdbserver_usage): New function.
22410 (main): Call it.
22411
22412 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
22413
22414 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
22415 stop_at -> stop_pc.
22416
22417 2002-05-04 Andrew Cagney <ac131313@redhat.com>
22418
22419 * Makefile.in: Remove obsolete code.
22420
22421 2002-04-24 Michal Ludvig <mludvig@suse.cz>
22422
22423 * linux-low.c (regsets_fetch_inferior_registers),
22424 (regsets_store_inferior_registers): Removed cast to int from
22425 ptrace() calls.
22426 * regcache.h: Added declaration of struct inferior_info.
22427
22428 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
22429
22430 * inferiors.c (struct inferior_info): Add regcache_data.
22431 (add_inferior): Call create_register_cache.
22432 (clear_inferiors): Call free_register_cache.
22433 (inferior_regcache_data, set_inferior_regcache_data): New functions.
22434 * regcache.c (struct inferior_regcache_data): New.
22435 (registers): Remove.
22436 (get_regcache): New function.
22437 (create_register_cache, free_register_cache): New functions.
22438 (set_register_cache): Don't initialize the register cache here.
22439 (registers_to_string, registers_from_string, register_data): Call
22440 get_regcache.
22441 * regcache.h: Add prototypes.
22442 * server.h: Likewise.
22443
22444 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
22445
22446 * mem-break.c: New file.
22447 * mem-break.h: New file.
22448 * Makefile.in: Add mem-break.o rule; update server.h
22449 dependencies.
22450 * inferiors.c (struct inferior_info): Add target_data
22451 member.
22452 (clear_inferiors): Free target_data member if set.
22453 (inferior_target_data, set_inferior_target_data): New functions.
22454 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
22455 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
22456 * linux-low.c (linux_bp_reinsert): New variable.
22457 (struct inferior_linux_data): New.
22458 (linux_create_inferior): Use set_inferior_target_data.
22459 (linux_attach): Likewise. Call add_inferior.
22460 (linux_wait_for_one_inferior): New function.
22461 (linux_wait): Call it.
22462 (linux_write_memory): Add const.
22463 (initialize_low): Call set_breakpoint_data.
22464 * linux-low.h (struct linux_target_ops): Add breakpoint
22465 handling members.
22466 * server.c (attach_inferior): Remove extra add_inferior
22467 call.
22468 * server.h: Include mem-break.h. Update inferior.c
22469 prototypes.
22470 * target.c (read_inferior_memory)
22471 (write_inferior_memory): New functions.
22472 * target.h (read_inferior_memory)
22473 (write_inferior_memory): Change macros to prototypes.
22474 (struct target_ops): Update comments. Add const to write_memory
22475 definition.
22476
22477 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
22478
22479 * linux-low.c (usr_store_inferior_registers): Support
22480 registers which are allowed to fail to store.
22481 * linux-low.h (linux_target_ops): Likewise.
22482 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
22483 (ppc_cannot_store_register): FPSCR may not be storable.
22484
22485 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22486
22487 * server.h: Include <string.h> if HAVE_STRING_H.
22488 * ChangeLog: Correct paths in last ChangeLog entry.
22489
22490 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22491
22492 * linux-low.h: Remove obsolete prototypes.
22493 (struct linux_target_ops): New.
22494 (extern the_low_target): New.
22495 * linux-low.c (num_regs, regmap): Remove declarations.
22496 (register_addr): Use the_low_target explicitly.
22497 (fetch_register): Likewise.
22498 (usr_fetch_inferior_registers): Likewise.
22499 (usr_store_inferior_registers): Likewise.
22500 * linux-arm-low.c (num_regs): Remove.
22501 (arm_num_regs): Define.
22502 (arm_regmap): Renamed from regmap, made static.
22503 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
22504 made static.
22505 (arm_cannot_store_register): Renamed from cannot_store_register,
22506 made static.
22507 (the_low_target): New.
22508 * linux-i386-low.c (num_regs): Remove.
22509 (i386_num_regs): Define.
22510 (i386_regmap): Renamed from regmap, made static.
22511 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
22512 made static.
22513 (i386_cannot_store_register): Renamed from cannot_store_register,
22514 made static.
22515 (the_low_target): New.
22516 * linux-ia64-low.c (num_regs): Remove.
22517 (ia64_num_regs): Define.
22518 (ia64_regmap): Renamed from regmap, made static.
22519 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
22520 made static.
22521 (ia64_cannot_store_register): Renamed from cannot_store_register,
22522 made static.
22523 (the_low_target): New.
22524 * linux-m68k-low.c (num_regs): Remove.
22525 (m68k_num_regs): Define.
22526 (m68k_regmap): Renamed from regmap, made static.
22527 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
22528 made static.
22529 (m68k_cannot_store_register): Renamed from cannot_store_register,
22530 made static.
22531 (the_low_target): New.
22532 * linux-mips-low.c (num_regs): Remove.
22533 (mips_num_regs): Define.
22534 (mips_regmap): Renamed from regmap, made static.
22535 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
22536 made static.
22537 (mips_cannot_store_register): Renamed from cannot_store_register,
22538 made static.
22539 (the_low_target): New.
22540 * linux-ppc-low.c (num_regs): Remove.
22541 (ppc_num_regs): Define.
22542 (ppc_regmap): Renamed from regmap, made static.
22543 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
22544 made static.
22545 (ppc_cannot_store_register): Renamed from cannot_store_register,
22546 made static.
22547 (the_low_target): New.
22548 * linux-s390-low.c (num_regs): Remove.
22549 (s390_num_regs): Define.
22550 (s390_regmap): Renamed from regmap, made static.
22551 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
22552 made static.
22553 (s390_cannot_store_register): Renamed from cannot_store_register,
22554 made static.
22555 (the_low_target): New.
22556 * linux-sh-low.c (num_regs): Remove.
22557 (sh_num_regs): Define.
22558 (sh_regmap): Renamed from regmap, made static.
22559 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
22560 made static.
22561 (sh_cannot_store_register): Renamed from cannot_store_register,
22562 made static.
22563 (the_low_target): New.
22564 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
22565 (the_low_target): New.
22566
22567 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22568
22569 * Makefile.in: Add stamp-h target.
22570 * configure.in: Create stamp-h.
22571 * configure: Regenerated.
22572
22573 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22574
22575 * inferiors.c: New file.
22576 * target.c: New file.
22577 * target.h: New file.
22578 * Makefile.in: Add target.o and inferiors.o. Update
22579 dependencies.
22580 * linux-low.c (inferior_pid): New static variable,
22581 moved from server.c.
22582 (linux_create_inferior): Renamed from create_inferior.
22583 Call add_inferior. Return 0 on success instead of a PID.
22584 (linux_attach): Renamed from myattach.
22585 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
22586 (linux_thread_alive): Renamed from mythread_alive.
22587 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
22588 child dies.
22589 (linux_resume): Renamed from myresume. Add missing ``return 0''.
22590 (regsets_store_inferior_registers): Correct error message.
22591 Add missing ``return 0''.
22592 (linux_fetch_registers): Renamed from fetch_inferior_registers.
22593 (linux_store_registers): Renamed from store_inferior_registers.
22594 (linux_read_memory): Renamed from read_inferior_memory.
22595 (linux_write_memory): Renamed from write_inferior_memory.
22596 (linux_target_ops): New structure.
22597 (initialize_low): Call set_target_ops ().
22598 * remote-utils.c (unhexify): New function.
22599 (hexify): New function.
22600 (input_interrupt): Send signals to ``signal_pid''.
22601 * server.c (inferior_pid): Remove.
22602 (start_inferior): Update create_inferior call.
22603 (attach_inferior): Call add_inferior.
22604 (handle_query): New function.
22605 (main): Call handle_query for `q' packets.
22606 * server.h: Include "target.h". Remove obsolete prototypes.
22607 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
22608
22609 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22610
22611 * Makefile.in: Add WARN_CFLAGS. Update configury
22612 dependencies.
22613 * configure.in: Check for <string.h>
22614 * configure: Regenerate.
22615 * config.in: Regenerate.
22616 * gdbreplay.c: Include needed system headers.
22617 (remote_open): Remove strchr prototype.
22618 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
22619 * regcache.c (supply_register): Change buf argument to const void *.
22620 (supply_register_by_name): Likewise.
22621 (collect_register): Change buf argument to void *.
22622 (collect_register_by_name): Likewise.
22623 * regcache.h: Add missing prototypes.
22624 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
22625 * server.c (handle_query): New function.
22626 (attached): New static variable, moved out of main.
22627 (main): Quiet longjmp clobber warnings.
22628 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
22629 * utils.c (error): Remove NORETURN.
22630 (fatal): Likewise.
This page took 0.53919 seconds and 5 git commands to generate.