Merge branch 'master' into merge-job
[deliverable/binutils-gdb.git] / gdb / gdbserver / ChangeLog
1 2019-12-19 Christian Biesinger <cbiesinger@google.com>
2
3 * configure: Regenerate.
4 * configure.ac: Quote variable arguments of test.
5
6 2019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
7
8 * Makefile.in: Fix build with GNU Make 3.81
9
10 2019-12-16 Tom Tromey <tromey@adacore.com>
11
12 * server.c (get_exec_file): Constify result.
13
14 2019-12-10 Christian Biesinger <cbiesinger@google.com>
15
16 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
17 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
18 * config.in: Regenerate.
19 * configure: Regenerate.
20 * configure.ac: Don't check for strerror.
21 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
22 Call safe_strerror instead of strerror.
23 * server.h (strerror): Remove this now-unnecessary declaration.
24 * tracepoint.c (init_named_socket): Call safe_strerror instead of
25 strerror.
26 (gdb_agent_helper_thread): Likewise.
27 * utils.c (perror_with_name): Likewise.
28
29 2019-11-26 Tom Tromey <tom@tromey.com>
30
31 * configure, config.in: Rebuild.
32
33 2019-11-26 Tom Tromey <tom@tromey.com>
34
35 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
36 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
37 gdb_sigmask.
38 * configure, config.in: Rebuild.
39
40 2019-11-26 Tom Tromey <tom@tromey.com>
41
42 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
43 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
44 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
45 * acinclude.m4: Include ax_pthread.m4.
46 * config.in, configure: Rebuild.
47
48 2019-11-26 Christian Biesinger <cbiesinger@google.com>
49
50 * debug.c (debug_set_output): Call safe_strerror instead of
51 strerror.
52 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
53 (linux_kill_one_lwp): Likewise.
54 (linux_detach_one_lwp): Likewise.
55 (linux_wait_for_event_filtered): Likewise.
56 (store_register): Likewise.
57 * lynx-low.c (lynx_attach): Likewise.
58 * mem-break.c (insert_memory_breakpoint): Likewise.
59 (remove_memory_breakpoint): Likewise.
60 (delete_fast_tracepoint_jump): Likewise.
61 (set_fast_tracepoint_jump): Likewise.
62 (uninsert_fast_tracepoint_jumps_at): Likewise.
63 (reinsert_fast_tracepoint_jumps_at): Likewise.
64 * nto-low.c (nto_xfer_memory): Likewise.
65 (nto_resume): Likewise.
66
67 2019-11-20 Luis Machado <luis.machado@linaro.org>
68
69 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
70 instead of register count.
71 * tdesc.c (tdesc_contains_feature): New function.
72 * tdesc.h (tdesc_contains_feature): New prototype.
73
74 2019-11-15 Christian Biesinger <cbiesinger@google.com>
75
76 * Makefile.in: Add safe-strerror.c.
77 * configure: Regenerate.
78 * configure.ac: Don't source common.host.
79
80 2019-11-15 Christian Biesinger <cbiesinger@google.com>
81
82 * config.in: Regenerate.
83 * configure: Regenerate.
84
85 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
86
87 * ax.c (ax_printf): Handle size_t_arg.
88
89 2019-11-06 Christian Biesinger <cbiesinger@google.com>
90
91 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
92 * mi/mi-main.c (output_cores): Likewise.
93 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
94 (linux_xfer_osdata_modules): Likewise.
95 * remote.c (register_remote_support_xml): Likewise.
96 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
97 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
98
99 2019-11-01 Christian Biesinger <cbiesinger@google.com>
100
101 * configure: Regenerate.
102 * configure.ac: Remove check for strerror_r.
103
104 2019-10-31 Christian Biesinger <cbiesinger@google.com>
105
106 * config.in: Regenerate.
107 * configure: Regenerate.
108 * configure.ac: Also check for strerror_r.
109
110 2019-10-31 Christian Biesinger <cbiesinger@google.com>
111
112 * ax.h (debug_agent): Remove duplicate declaration.
113
114 2019-10-26 Tom de Vries <tdevries@suse.de>
115
116 * linux-aarch64-low.c: Fix typos in comments.
117 * linux-arm-low.c: Same.
118 * linux-low.c: Same.
119 * linux-ppc-low.c: Same.
120 * proc-service.c: Same.
121 * regcache.h: Same.
122 * server.c: Same.
123 * tracepoint.c: Same.
124 * win32-low.c: Same.
125
126 2019-10-25 Tom Tromey <tromey@adacore.com>
127
128 * utils.c (xstrdup): Remove.
129
130 2019-10-23 Tom Tromey <tom@tromey.com>
131
132 * configure, config.in: Rebuild.
133
134 2019-10-23 Tom Tromey <tom@tromey.com>
135
136 * configure: Rebuild.
137 * acinclude.m4: Use m4_include, not sinclude.
138
139 2019-10-17 Tom Tromey <tromey@adacore.com>
140
141 * configure: Rebuild.
142 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
143 in AC_CONFIG_FILES invocation.
144 * Makefile.in (stamp-h, Makefile): Use new-style config.status
145 invocation.
146
147 2019-10-16 Christian Biesinger <cbiesinger@google.com>
148
149 * server.c: Include xml-builtin.h.
150 (get_xml_features): Don't declare xml_builtins here.
151
152 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
153
154 * Makefile.in: Remove references to vec-ipa.o.
155
156 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
157
158 * Makefile.in: Remove references to vec.c.
159
160 2019-10-02 Christian Biesinger <cbiesinger@google.com>
161
162 * server.c (server_waiting): Change to bool.
163 (extended_protocol): Likewise.
164 (response_needed): Likewise.
165 (exit_requested): Likewise.
166 (run_once): Likewise.
167 (report_no_resumed): Likewise.
168 (non_stop): Likewise.
169 (disable_packet_vCont): Likewise.
170 (disable_packet_Tthread): Likewise.
171 (disable_packet_qC): Likewise.
172 (disable_packet_qfThreadInfo): Likewise.
173 (handle_general_set): Update.
174 (handle_detach): Update.
175 (handle_monitor_command): Update.
176 (handle_query): Update.
177 (captured_main): Update.
178 (process_serial_event): Update.
179 * server.h (server_waiting): Change to bool.
180 (disable_packet_vCont): Likewise.
181 (disable_packet_Tthread): Likewise.
182 (disable_packet_qC): Likewise.
183 (disable_packet_qfThreadInfo): Likewise.
184 (run_once): Likewise.
185 (non_stop): Likewise.
186 * target.c (target_stop_and_wait): Update.
187
188 2019-10-02 Tom Tromey <tromey@adacore.com>
189
190 * Makefile.in (SFILES): Add common-inferior.c.
191 (OBS): Add common-inferior.o.
192 * server.c (startup_with_shell): Don't define.
193
194 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
195
196 * linux-low.c (linux_low_read_btrace): Update for change to
197 std::vector.
198
199 2019-09-20 Christian Biesinger <cbiesinger@google.com>
200
201 * debug.c (debug_threads): Remove comment in favor of the header.
202 * debug.h (using_threads): Add declaration.
203 (debug_threads): Add comment.
204 * linux-aarch64-low.c: Include debug.h and remove declaration of
205 debug_threads.
206 * nto-low.c: Likewise.
207 * remote-utils.c: Likewise.
208 * thread-db.c: Likewise.
209
210 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
211
212 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
213 and powerpc-cell64l-ipa.o.
214 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
215 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
216 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
217 (spu*-*-*): Remove.
218
219 * spu-low.c: Remove file.
220
221 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
222 (parse_spufs_run): Remove.
223 (ppc_get_pc): Remove Cell/B.E. support.
224 (ppc_set_pc): Likewise.
225 (ppc_breakpoint_at): Likewise.
226 (ppc_arch_setup): Likewise.
227 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
228 tdesc_powerpc_cell32l.
229 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
230 or init_registers_powerpc_cell32l.
231 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
232 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
233 or init_registers_powerpc_cell32l.
234 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
235 (init_registers_powerpc_cell32l): Remove prototype.
236 (init_registers_powerpc_cell64l): Likewise.
237
238 * target.h (struct target_ops): Remove qxfer_spu member.
239 * server.c (handle_qxfer_spu): Remove.
240 (qxfer_packets): Remove entry for "spu".
241 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
242 * linux-low.c (SPUFS_MAGIC): Remove.
243 (spu_enumerate_spu_ids): Remove.
244 (linux_qxfer_spu): Remove.
245 (linux_target_ops): Remove qxfer_spu member.
246 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
247 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
248 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
249
250 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
251
252 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
253 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
254 * config.in: Regenerate.
255 * configure: Regenerate.
256
257 2019-08-15 Tom Tromey <tromey@adacore.com>
258
259 * target.c (target_write_memory): Use gdb::byte_vector.
260
261 2019-08-15 Tom Tromey <tromey@adacore.com>
262
263 * tracepoint.c (write_inferior_data_pointer)
264 (write_inferior_integer, write_inferior_int8)
265 (write_inferior_uinteger, m_tracepoint_action_download)
266 (r_tracepoint_action_download, x_tracepoint_action_download)
267 (l_tracepoint_action_download, clear_inferior_trace_buffer)
268 (download_agent_expr, download_tracepoint_1)
269 (download_trace_state_variables, upload_fast_traceframes): Update.
270 * server.c (gdb_write_memory): Update.
271 * remote-utils.c (relocate_instruction): Update.
272 * proc-service.c (ps_pdwrite): Update.
273 * mem-break.c (remove_memory_breakpoint)
274 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
275 (uninsert_fast_tracepoint_jumps_at)
276 (reinsert_fast_tracepoint_jumps_at): Update.
277 * linux-x86-low.c (append_insns)
278 (i386_install_fast_tracepoint_jump_pad)
279 (amd64_write_goto_address, i386_write_goto_address): Update.
280 * linux-s390-low.c (append_insns, s390_write_goto_address):
281 Update.
282 * linux-ppc-low.c (ppc_relocate_instruction)
283 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
284 (ppc_write_goto_address): Update.
285 * linux-aarch64-low.c (append_insns): Update.
286 * target.h (struct target_ops): Update.
287 (write_inferior_memory): Don't declare.
288 * target.c (target_write_memory): Rename from
289 write_inferior_memory. Remove old target_write_memory.
290
291 2019-08-15 Tom Tromey <tromey@adacore.com>
292
293 * target.c (write_inferior_memory): Use std::vector.
294
295 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
296
297 PR build/24886
298 * configure.ac: Drop enable-libmcheck support.
299 * configure, config.in: Rebuild.
300 * acinclude.m4: Don't include it.
301
302 2019-07-19 Alan Hayward <alan.hayward@arm.com>
303
304 * configure.srv: Remove Arm xml files.
305
306 2019-07-19 Alan Hayward <alan.hayward@arm.com>
307
308 * configure.srv: Add new files. Remove xml generated files.
309 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
310 registers.
311 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
312 * linux-aarch32-tdesc.c: New file.
313 * linux-aarch32-tdesc.h: New file.
314 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
315 * linux-arm-low.c (init_registers_arm, tdesc_arm)
316 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
317 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
318 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
319 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
320 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
321 (arm_read_description): Call arm_linux_read_description.
322 (initialize_low_arch): Don't init registers.
323 * linux-arm-tdesc.c: New file.
324 * linux-arm-tdesc.h: New file.
325
326 2019-07-10 Alan Hayward <alan.hayward@arm.com>
327
328 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
329 Move counter inside for.
330 (arm_read_description): Check ptrace earlier.
331 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
332
333 2019-07-09 Tom Tromey <tom@tromey.com>
334
335 * configure: Rebuild.
336 * configure.ac: Change common to gdbsupport.
337 * acinclude.m4: Change common to gdbsupport.
338 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
339 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
340 common to gdbsupport.
341 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
342 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
343 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
344 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
345 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
346 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
347 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
348 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
349 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
350 common to gdbsupport.
351
352 2019-07-04 Alan Hayward <alan.hayward@arm.com>
353
354 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
355 defines.
356 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
357
358 2019-07-04 Alan Hayward <alan.hayward@arm.com>
359
360 * configure.srv: Remove legacy xml.
361 * linux-aarch64-low.c (initialize_low_arch): Remove
362 initialize_low_tdesc call.
363 * linux-aarch64-tdesc-selftest.c: Remove file.
364 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
365 * linux-x86-low.c (initialize_low_arch): Remove
366 initialize_low_tdesc call.
367 * linux-x86-tdesc-selftest.c: Remove file.
368 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
369
370 2019-06-20 Tom de Vries <tdevries@suse.de>
371
372 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
373 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
374
375 2019-06-19 Tom de Vries <tdevries@suse.de>
376
377 * debug.h (debug_write): Change return type to ssize_t.
378 * debug.c (debug_write): Same.
379
380 2019-06-14 Tom Tromey <tom@tromey.com>
381
382 * configure.ac: Use new path to gnulib.
383 * configure: Rebuild.
384 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
385 to gnulib.
386
387 2019-06-11 Tom Tromey <tom@tromey.com>
388
389 * Makefile.in (SFILES): Add alloc.c.
390 (OBS): Add alloc.o.
391 (IPA_OBJS): Add alloc-ipa.o.
392 (alloc-ipa.o): New target.
393 (%.o: ../%.c): New pattern rule.
394
395 2019-06-10 Tom Tromey <tromey@adacore.com>
396
397 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
398 end warning with a newline.
399 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
400 newline.
401 * thread-db.c (attach_thread): Don't end warning with a newline.
402 (thread_db_notice_clone): Likewise.
403 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
404 newline.
405 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
406 end warning with a newline.
407
408 2019-06-04 Pedro Alves <palves@redhat.com>
409
410 * server.c (captured_main): Use make_unique_xstrdup.
411
412 2019-06-02 Tom Tromey <tom@tromey.com>
413
414 * gdbreplay.c (fromhex): Remove.
415 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
416
417 2019-05-29 Tom Tromey <tromey@adacore.com>
418
419 * configure: Rebuild.
420
421 2019-05-06 Kevin Buettner <kevinb@redhat.com>
422
423 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
424 sign extension code on 32-bit builds.
425
426 2019-05-03 Eli Zaretskii <eliz@gnu.org>
427
428 * remote-utils.c:
429 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
430
431 2019-04-19 Tom Tromey <tom@tromey.com>
432
433 * server.c (struct vstop_notif): Derive from notif_event.
434 <base>: Remove.
435 (queue_stop_reply): Update.
436 (remove_all_on_match_ptid): Change type. Rewrite.
437 (discard_queued_stop_replies): Rewrite.
438 (in_queued_stop_replies_ptid): Change type.
439 (in_queued_stop_replies): Rewrite.
440 (notif_stop): Update.
441 (queue_stop_reply_callback): Update.
442 (captured_main): Don't call initialize_notif.
443 (push_stop_notification): Update.
444 * notif.c (notif_write_event, handle_notif_ack)
445 (notif_event_enque, notif_push): Update.
446 (notif_event_xfree, initialize_notif): Remove.
447 * notif.h (struct notif_event): Include <list>, not
448 "common/queue.h".
449 (struct notif_server) <queue>: Now a std::list.
450 (notif_event_p): Remove typedef.
451 (initialize_notif): Don't declare.
452 (struct notif_event): Add virtual destructor.
453
454 2019-04-17 Alan Hayward <alan.hayward@arm.com>
455
456 * ax.c (ax_vdebug): Call debug_printf.
457 * debug.c (debug_write): New function.
458 * debug.h (debug_write): New declaration.
459 * linux-low.c (sigchld_handler): Call debug_write.
460
461 2019-04-17 Alan Hayward <alan.hayward@arm.com>
462
463 * debug.c (debug_set_output): New function.
464 (debug_vprintf): Send output to debug_file.
465 (debug_flush): Likewise.
466 * debug.h (debug_set_output): New declaration.
467 * server.c (handle_monitor_command): Add debug-file option.
468 (captured_main): Likewise.
469
470 2019-04-17 Alan Hayward <alan.hayward@arm.com>
471
472 * debug.c (remote_debug): Add definition.
473 * debug.h (remote_debug): Add declaration.
474 * hostio.c (remote_debug): Remove declaration.
475 * remote-utils.c (struct ui_file): Likewise.
476 (remote_debug): Likewise.
477 * remote-utils.h (remote_debug): Likewise,
478 * server.c (remote_debug): Remove definition.
479
480 2019-04-10 Kevin Buettner <kevinb@redhat.com>
481
482 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
483 when using a 64-bit gdbserver.
484
485 2019-04-09 Tom Tromey <tromey@adacore.com>
486
487 * linux-low.c (select_event_lwp): Use find_thread_in_random.
488
489 2019-04-08 Tom Tromey <tom@tromey.com>
490
491 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
492 throw.
493 (linux_resume_one_lwp): Likewise.
494
495 2019-04-08 Tom Tromey <tom@tromey.com>
496
497 * gdbreplay.c: Update.
498 * linux-low.c: Update.
499 * server.c: Update.
500
501 2019-04-08 Tom Tromey <tom@tromey.com>
502
503 * server.c: Use C++ exception handling.
504 * linux-low.c: Use C++ exception handling.
505 * gdbreplay.c: Use C++ exception handling.
506
507 2019-04-08 Tom Tromey <tom@tromey.com>
508
509 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
510 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
511 (captured_main, main): Update.
512 * gdbreplay.c (main): Update.
513
514 2019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
515
516 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
517 value in argument pointer, return 1 if the entry is found and 0
518 otherwise. Move comment.
519 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
520 * linux-low.h (linux_get_auxv): Declare.
521 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
522
523 2019-04-05 Tom Tromey <tromey@adacore.com>
524
525 * server.c (gdbserver_usage): Use upper-case for metasyntactic
526 variables.
527
528 2019-03-28 Alan Hayward <alan.hayward@arm.com>
529
530 * linux-low.c (AT_HWCAP2): Add define if not already included.
531
532 2019-03-26 Alan Hayward <alan.hayward@arm.com>
533
534 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
535 (aarch64_arch_setup): Call linux_get_hwcap.
536 * linux-arm-low.c (arm_get_hwcap): Remove function.
537 (arm_read_description): Call linux_get_hwcap.
538 * linux-low.c (linux_get_auxv): New function.
539 (linux_get_hwcap): Likewise.
540 (linux_get_hwcap2): Likewise.
541 * linux-low.h (linux_get_hwcap): New declaration.
542 (linux_get_hwcap2): Likewise.
543 * linux-ppc-low.c (ppc_get_auxv): Remove function.
544 (ppc_arch_setup): Call linux_get_hwcap.
545 * linux-s390-low.c (s390_get_hwcap): Remove function.
546 (s390_arch_setup): Call linux_get_hwcap.
547
548 2019-03-22 Alan Hayward <alan.hayward@arm.com>
549 Jiong Wang <jiong.wang@arm.com>
550
551 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
552 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
553 to fail.
554 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
555
556 2019-03-22 Alan Hayward <alan.hayward@arm.com>
557 Jiong Wang <jiong.wang@arm.com>
558
559 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
560 (aarch64_get_hwcap): New function.
561 (aarch64_arch_setup): Read APIA hwcap.
562
563 2019-03-22 Alan Hayward <alan.hayward@arm.com>
564 Jiong Wang <jiong.wang@arm.com>
565
566 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
567 (initialize_low_tracepoint): Likewise.
568 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
569 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
570 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
571 (aarch64_linux_read_description): Likewise.
572 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
573
574 2019-03-12 John Baldwin <jhb@FreeBSD.org>
575
576 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
577 i386_create_target_description for 'segments' parameter.
578 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
579 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
580 * win32-i386-low.c (i386_arch_setup): Likewise.
581
582 2019-03-12 Tom Tromey <tromey@adacore.com>
583
584 * linux-low.c (iterate_over_lwps): Update.
585
586 2019-03-06 Tom Tromey <tom@tromey.com>
587
588 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
589 (captured_main): Use SCOPE_EXIT.
590
591 2019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
592
593 * configure.srv: Use '$enable_unittest' instead of '$development'
594 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
595 case.
596
597 2019-02-27 Tom Tromey <tromey@adacore.com>
598
599 * gdbreplay.c (logchar): Handle \r\n.
600
601 2019-02-07 Alan Hayward <alan.hayward@arm.com>
602
603 * linux-low.c (linux_attach): Add process before lwp.
604 * server.c (attach_inferior): Check if already attached.
605
606 2019-02-07 Tom Tromey <tom@tromey.com>
607
608 * x86-tdesc.h: Rename include guard.
609 * x86-low.h: Add include guard.
610 * wincecompat.h: Rename include guard.
611 * win32-low.h: Add include guard.
612 * utils.h: Rename include guard.
613 * tracepoint.h: Rename include guard.
614 * tdesc.h: Rename include guard.
615 * target.h: Rename include guard.
616 * server.h: Rename include guard.
617 * remote-utils.h: Rename include guard.
618 * regcache.h: Rename include guard.
619 * nto-low.h: Rename include guard.
620 * notif.h: Add include guard.
621 * mem-break.h: Rename include guard.
622 * lynx-low.h: Add include guard.
623 * linux-x86-tdesc.h: Add include guard.
624 * linux-s390-tdesc.h: Add include guard.
625 * linux-ppc-tdesc-init.h: Add include guard.
626 * linux-low.h: Add include guard.
627 * linux-aarch64-tdesc.h: Add include guard.
628 * linux-aarch32-low.h: Add include guard.
629 * inferiors.h: Rename include guard.
630 * i387-fp.h: Rename include guard.
631 * hostio.h: Rename include guard.
632 * gdbthread.h: Rename include guard.
633 * gdb_proc_service.h: Rename include guard.
634 * event-loop.h: Rename include guard.
635 * dll.h: Rename include guard.
636 * debug.h: Rename include guard.
637 * ax.h: Rename include guard.
638
639 2018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
640
641 PR gdb/23985
642 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
643 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
644
645 2019-01-25 Tom Tromey <tom@tromey.com>
646
647 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
648
649 2019-01-25 Tom Tromey <tom@tromey.com>
650
651 * win32-low.c: Fix common/ includes.
652 * win32-i386-low.c: Fix common/ includes.
653 * tracepoint.c: Fix common/ includes.
654 * thread-db.c: Fix common/ includes.
655 * target.h: Fix common/ includes.
656 * symbol.c: Fix common/ includes.
657 * spu-low.c: Fix common/ includes.
658 * server.h: Fix common/ includes.
659 * server.c: Fix common/ includes.
660 * remote-utils.c: Fix common/ includes.
661 * regcache.h: Fix common/ includes.
662 * regcache.c: Fix common/ includes.
663 * nto-x86-low.c: Fix common/ includes.
664 * notif.h: Fix common/ includes.
665 * mem-break.h: Fix common/ includes.
666 * lynx-low.c: Fix common/ includes.
667 * lynx-i386-low.c: Fix common/ includes.
668 * linux-x86-tdesc-selftest.c: Fix common/ includes.
669 * linux-x86-low.c: Fix common/ includes.
670 * linux-low.c: Fix common/ includes.
671 * inferiors.h: Fix common/ includes.
672 * i387-fp.c: Fix common/ includes.
673 * hostio.c: Fix common/ includes.
674 * hostio-errno.c: Fix common/ includes.
675 * gdbthread.h: Fix common/ includes.
676 * gdbreplay.c: Fix common/ includes.
677 * fork-child.c: Fix common/ includes.
678 * event-loop.c: Fix common/ includes.
679 * ax.c:
680 (enum gdb_agent_op): Fix common/ includes.
681
682 2019-01-21 Tom Tromey <tom@tromey.com>
683
684 * tracepoint.c: Fix includes.
685 * remote-utils.c: Fix includes.
686 * linux-x86-low.c: Fix includes.
687
688 2019-01-01 Joel Brobecker <brobecker@adacore.com>
689
690 * gdbreplay.c (gdbreplay_version): Update copyright year in
691 version message.
692 * server.c (gdbserver_version): Likewise.
693
694 2018-12-05 Alan Hayward <alan.hayward@arm.com>
695
696 * linux-low.c (add_lwp): Switch ordering.
697
698 2018-11-29 Tom Tromey <tom@tromey.com>
699
700 * win32-low.c (win32_join): Take pid, not process.
701 * target.h (struct target_ops) <join>: Change argument type.
702 (join_inferior): Change argument name.
703 * spu-low.c (spu_join): Take pid, not process.
704 * server.c (handle_detach): Preserve pid before destroying
705 process.
706 * lynx-low.c (lynx_join): Take pid, not process.
707 * linux-low.c (linux_join): Take pid, not process.
708
709 2018-11-23 Alan Hayward <alan.hayward@arm.com>
710
711 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
712 (aarch64_cannot_fetch_register): Likewise.
713 (struct linux_target_ops): Update references.
714
715 2018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
716
717 * linux-ppc-low.c: Include nat/linux-ptrace.h.
718
719 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
720
721 * configure.srv (ipa_ppc_linux_regobj): Add
722 powerpc-isa207-htm-vsx32l-ipa.o and
723 powerpc-isa207-htm-vsx64l-ipa.o.
724 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
725 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
726 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
727 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
728 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
729 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
730 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
731 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
732 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
733 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
734 (init_registers_powerpc_isa207_htm_vsx32l)
735 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
736 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
737 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
738 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
739 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
740 (ppc_store_tm_ctarregset): New functions.
741 (ppc_regsets): Add entries for HTM regsets.
742 (ppc_arch_setup): Set htm in features struct when needed. Set
743 sizes for the HTM regsets.
744 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
745 (initialize_low_arch): Call
746 init_registers_powerpc_isa207_htm_vsx32l and
747 init_registers_powerpc_isa207_htm_vsx64l.
748 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
749 PPC_TDESC_ISA207_HTM_VSX.
750 (initialize_low_tracepoint): Call
751 init_registers_powerpc_isa207_htm_vsx32l and
752 init_registers_powerpc_isa207_htm_vsx64l.
753
754 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
755
756 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
757 rs6000/power-linux-pmu.xml to srv_xmlfiles.
758 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
759 (ppc_store_pmuregset): New functions.
760 (ppc_regsets): Add entries for ebb and pmu regsets.
761 (ppc_arch_setup): Set isa207 in features struct if the ebb and
762 pmu regsets are available. Set sizes for these regsets.
763
764 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
765
766 * configure.srv (ipa_ppc_linux_regobj): Add
767 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
768 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
769 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
770 rs6000/powerpc-isa207-vsx32l.xml, and
771 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
772 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
773 <PPC_TDESC_ISA207_VSX>: New enum value.
774 (init_registers_powerpc_isa207_vsx32l): Declare.
775 (init_registers_powerpc_isa207_vsx64l): Declare.
776 * linux-ppc-low.c (ppc_fill_tarregset): New function.
777 (ppc_store_tarregset): New function.
778 (ppc_regsets): Add entry for the TAR regset.
779 (ppc_arch_setup): Set isa207 in features struct when needed. Set
780 size for the TAR regsets.
781 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
782 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
783 and init_registers_powerpc_isa207_vsx64l.
784 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
785 (initialize_low_tracepoint): Call
786 init_registers_powerpc_isa207_vsx32l and
787 init_registers_powerpc_isa207_vsx64l.
788
789 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
790 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
791
792 * configure.srv (ipa_ppc_linux_regobj): Add
793 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
794 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
795 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
796 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
797 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
798 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
799 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
800 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
801 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
802 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
803 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
804 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
805 (ppc_hwcap): Add comment.
806 (ppc_hwcap2): New global.
807 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
808 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
809 (ppc_regsets): Add entries for the DSCR and PPR regsets.
810 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
811 when needed. Set sizes for the the DSCR and PPR regsets.
812 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
813 (initialize_low_arch): Call
814 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
815 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
816 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
817 PPC_TDESC_ISA205_PPR_DSCR_VSX.
818 (initialize_low_tracepoint): Call
819 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
820 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
821
822 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
823
824 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
825
826 2018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
827 Simon Marchi <simark@simark.ca>
828
829 * acinclude.m4: Include "../selftest.m4".
830 * configure: Regenerate.
831 * configure.ac: Use "GDB_AC_SELFTEST".
832 * configure.srv: Use "$enable_unittests" instead of
833 "$development" when checking whether unit tests have been
834 enabled.
835 * server.c (captured_main): Update message informing that
836 selftests have been disabled.
837
838 2018-10-04 Tom Tromey <tom@tromey.com>
839
840 * configure: Rebuild.
841
842 2018-10-04 Tom Tromey <tom@tromey.com>
843
844 * server.c (handle_status): Rename inner "thread".
845 (process_serial_event): Declare "res" in 'm' case.
846 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
847 (iterate_over_lwps): Rename inner "thread".
848 (linux_qxfer_libraries_svr4): Rename inner "len".
849 * gdbthread.h (find_thread_in_random): Rename inner "thread".
850
851 2018-10-01 Gary Benson <gbenson@redhat.com>
852
853 * gdb_proc_service.h: Moved common code to
854 common/gdb_proc_service.h.
855
856 2018-10-01 Gary Benson <gbenson@redhat.com>
857
858 * gdb_proc_service.h: Synchronize comments and whitespace with
859 GDB's version of this file.
860
861 2018-09-25 Tom Tromey <tom@tromey.com>
862
863 * configure: Rebuild.
864 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
865
866 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
867
868 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
869 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
870 ($(IPA_LIB)): Sort IPA_OBJS.
871
872 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
873
874 * Makefile.in: Remove references to $(ADD_DEPS).
875
876 2018-09-16 Tom Tromey <tom@tromey.com>
877
878 * remote-utils.c (remote_open): Use GNU style for metasyntactic
879 variables.
880 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
881 variables.
882
883 2018-09-05 Tom Tromey <tom@tromey.com>
884
885 * configure: Rebuild.
886
887 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
888
889 PR build/23399
890 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
891
892 2018-08-27 Tom Tromey <tom@tromey.com>
893
894 PR build/23087:
895 * configure: Rebuild.
896
897 2018-08-27 Tom Tromey <tom@tromey.com>
898
899 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
900 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
901 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
902 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
903 (s390x_emit_stack_adjust): Add casts to unsigned char.
904
905 2018-08-22 Simon Marchi <simon.marchi@ericsson.com>
906
907 PR gdb/23374
908 PR gdb/23375
909 * server.h (struct client_state) <disable_randomization>:
910 Initialize to 1.
911
912 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
913
914 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
915 variable.
916 (mips_supply_ptrace_register): Likewise.
917
918 2018-07-22 Tom Tromey <tom@tromey.com>
919
920 * configure: Rebuild.
921
922 2018-07-22 Tom Tromey <tom@tromey.com>
923
924 * win32-low.c (win32_create_inferior): Remove unused variables.
925 * gdbreplay.c (remote_open): Remove unused variable.
926 * remote-utils.c (remote_prepare): Remove unused variable.
927 * x86-tdesc.h (X86_TDESC_H): Define.
928 (amd64_expedite_regs): Define conditionally.
929 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
930 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
931 * remote-utils.c (readchar): Remove unused variable.
932
933 2018-07-13 Pedro Alves <palves@redhat.com>
934
935 * linux-low.c (linux_kill): Change parameter to process_info
936 pointer instead of pid. Adjust.
937 * lynx-low.c (lynx_kill): Likewise.
938 * nto-low.c (nto_kill): Likewise.
939 * spu-low.c (spu_kill): Likewise.
940 * win32-low.c (win32_kill): Likewise.
941 * server.c (handle_v_kill, kill_inferior_callback)
942 (detach_or_kill_for_exit): Adjust.
943 * target.c (kill_inferior): Change parameter to process_info
944 pointer instead of pid. Adjust.
945 * target.h (struct target_ops) <kill>: Change parameter to
946 process_info pointer instead of pid. Adjust all implementations
947 and callers.
948 (kill_inferior): Likewise.
949
950 2018-07-13 Pedro Alves <palves@redhat.com>
951
952 * linux-low.c (linux_detach, linux_join): Change parameter to
953 process_info pointer instead of pid. Adjust.
954 * lynx-low.c (lynx_detach, lynx_join): Likewise.
955 * nto-low.c (nto_detach): Likewise.
956 * spu-low.c (spu_detach, spu_join): Likewise.
957 * win32-low.c (win32_detach, win32_join): Likewise.
958 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
959 * target.h (struct target_ops) <detach, join>: Change parameter to
960 process_info pointer instead of pid. Adjust all implementations
961 and callers.
962 (detach_inferior, join_inferior): Rename 'pid' parameter to
963 'proc'.
964
965 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
966 Jan Kratochvil <jan.kratochvil@redhat.com>
967 Paul Fertser <fercerpav@gmail.com>
968 Tsutomu Seki <sekiriki@gmail.com>
969
970 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
971 (OBS): Add 'common/netstuff.o'.
972 (GDBREPLAY_OBS): Likewise.
973 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
974 (remote_open): Implement support for IPv6
975 connections.
976 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
977 and 'wspiapi.h'.
978 (handle_accept_event): Accept connections from IPv6 sources.
979 (remote_prepare): Handle IPv6-style hostnames; implement
980 support for IPv6 connections.
981 (remote_open): Implement support for printing connections from
982 IPv6 sources.
983
984 2018-07-11 Pedro Alves <palves@redhat.com>
985
986 PR gdb/23377
987 * mem-break.c (any_persistent_commands): Add process_info
988 parameter and use it instead of relying on the current process.
989 Change return type to bool.
990 * mem-break.h (any_persistent_commands): Add process_info
991 parameter and change return type to bool.
992 * server.c (handle_detach): Remove require_running_or_return call.
993 Look up the process_info for the process we're about to detach.
994 If not found, return back error to GDB. Adjust
995 any_persistent_commands call to pass down a process pointer.
996
997 2018-07-11 Pedro Alves <palves@redhat.com>
998
999 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
1000 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
1001 instead of collect_register_by_name.
1002 * regcache.c (regcache_raw_get_unsigned_by_name): New.
1003 * regcache.h (regcache_raw_get_unsigned_by_name): New.
1004
1005 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
1006 Pedro Alves <palves@redhat.com>
1007
1008 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
1009
1010 2018-07-03 Tom Tromey <tom@tromey.com>
1011
1012 * linux-low.c: Update.
1013 * lynx-low.c: Update.
1014 * mem-break.c: Update.
1015 * nto-low.c: Update.
1016 * remote-utils.c: Update.
1017 * server.c: Update.
1018 * spu-low.c: Update.
1019 * target.c: Update.
1020 * win32-low.c: Update.
1021
1022 2018-07-03 Tom Tromey <tom@tromey.com>
1023
1024 * server.c: Update.
1025
1026 2018-07-03 Tom Tromey <tom@tromey.com>
1027
1028 * linux-low.c: Update.
1029
1030 2018-07-03 Tom Tromey <tom@tromey.com>
1031
1032 * target.c: Update.
1033
1034 2018-07-03 Tom Tromey <tom@tromey.com>
1035
1036 * linux-low.c: Update.
1037 * linux-mips-low.c: Update.
1038 * lynx-low.c: Update.
1039 * nto-low.c: Update.
1040 * remote-utils.c: Update.
1041 * server.c: Update.
1042 * spu-low.c: Update.
1043 * target.c: Update.
1044 * thread-db.c: Update.
1045
1046 2018-07-03 Tom Tromey <tom@tromey.com>
1047
1048 * linux-low.c: Update.
1049 * linux-mips-low.c: Update.
1050 * lynx-low.c: Update.
1051 * mem-break.c: Update.
1052 * nto-low.c: Update.
1053 * remote-utils.c: Update.
1054 * server.c: Update.
1055 * spu-low.c: Update.
1056 * target.c: Update.
1057 * tracepoint.c: Update.
1058
1059 2018-07-03 Tom Tromey <tom@tromey.com>
1060
1061 * linux-low.c: Update.
1062 * linux-ppc-low.c: Update.
1063 * linux-x86-low.c: Update.
1064 * proc-service.c: Update.
1065 * server.c: Update.
1066 * spu-low.c: Update.
1067 * thread-db.c: Update.
1068 * win32-low.c: Update.
1069
1070 2018-07-03 Tom Tromey <tom@tromey.com>
1071
1072 * linux-low.c: Update.
1073 * lynx-low.c: Update.
1074 * nto-low.c: Update.
1075 * remote-utils.c: Update.
1076 * spu-low.c: Update.
1077 * thread-db.c: Update.
1078 * win32-low.c: Update.
1079
1080 2018-06-29 Joel Brobecker <brobecker@adacore.com>
1081
1082 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
1083 parameter in call to 'amd64_create_target_description'.
1084
1085 2018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1086
1087 * x86-tdesc.h: Remove executable permission flag.
1088
1089 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
1090
1091 * configure.ac: Remove AC_PREREQ, add missing quoting.
1092 * configure: Re-generate.
1093 * config.in: Re-generate.
1094 * aclocal.m4: Re-generate.
1095
1096 2018-06-18 Simon Marchi <simon.marchi@ericsson.com>
1097
1098 * tracepoint.h (current_traceframe): Remove declaration.
1099
1100 2018-06-18 Alan Hayward <alan.hayward@arm.com>
1101
1102 * linux-aarch64-low.c (is_sve_tdesc): New function.
1103 (aarch64_sve_regs_copy_to_regcache): Likewise.
1104 (aarch64_sve_regs_copy_from_regcache): Likewise.
1105 (aarch64_regs_info): Add SVE checks.
1106 (initialize_low_arch): Initialize SVE.
1107
1108 2018-06-18 Alan Hayward <alan.hayward@arm.com>
1109
1110 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
1111
1112 2018-06-11 Alan Hayward <alan.hayward@arm.com>
1113
1114 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
1115 (initialize_low_tracepoint): Likewise
1116 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
1117 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
1118 param.
1119 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
1120 checks.
1121 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
1122
1123 2018-06-11 Alan Hayward <alan.hayward@arm.com>
1124
1125 * server.h (PBUFSIZ): Increase size
1126
1127 2018-06-11 Alan Hayward <alan.hayward@arm.com>
1128
1129 * regcache.c (regcache::raw_compare): New function.
1130 * regcache.h (regcache::raw_compare): New declaration.
1131
1132 2018-06-11 Alan Hayward <alan.hayward@arm.com>
1133
1134 * regcache.c (new_register_cache): Use new.
1135 (free_register_cache): Use delete.
1136 (register_data): Use const.
1137 (supply_register): Move body inside regcache.
1138 (regcache::raw_supply): New override function.
1139 (collect_register): Move body inside regcache.
1140 (regcache::raw_collect): New override function.
1141 (regcache::get_register_status): New override function.
1142 * regcache.h (struct regcache): Inherit from reg_buffer_common.
1143
1144 2018-06-09 Tom Tromey <tom@tromey.com>
1145
1146 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
1147 declare queue.
1148 (event_queue): Use std::queue.
1149 (gdb_event_xfree): Remove.
1150 (initialize_event_loop, process_event, wait_for_event): Update.
1151
1152 2018-06-08 Stan Cox <scox@redhat.com>
1153
1154 * win32-low.c (win32_create_inferior): last_ptid and last_status
1155 moved to client_state.
1156
1157 2018-06-08 Pedro Alves <palves@redhat.com>
1158
1159 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
1160 common/common-exceptions.o, common/common-utils.o,
1161 common/errors.o, common/print-utils.o and utils.o.
1162 * gdbreplay.c: Include "common-defs.h" instead of the two
1163 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
1164 string.h or alloca.h.
1165 (perror_with_name): Delete.
1166 (remote_open): Use xstrdup instead of strdup.
1167 (main): Rename to ...
1168 (captured_main): ... this.
1169 (main): New.
1170
1171 2018-06-08 Tom Tromey <tom@tromey.com>
1172
1173 * linux-low.c (linux_low_read_btrace): Update.
1174
1175 2018-06-04 Stan Cox <scox@redhat.com>
1176
1177 * server.h (struct client_state): New.
1178 * server.c (cont_thread, general_thread, multi_process)
1179 (report_fork_events, report_vfork_events, report_exec_events)
1180 (report_thread_events, swbreak_feature, hwbreak_feature)
1181 (vCont_supported, disable_randomization, pass_signals)
1182 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
1183 Moved to client_state.
1184 * remote-utils.c (remote_debug, noack_mode)
1185 (transport_is_reliable): Moved to client_state.
1186 * tracepoint.c (current_traceframe): Moved to client_state.
1187
1188 Update all callers.
1189 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
1190 linux-low.c, remote-utils.h, target.c: Use client_state.
1191
1192 2018-05-31 Alan Hayward <alan.hayward@arm.com>
1193
1194 * configure.srv: Add new c/h file.
1195
1196 2018-05-31 Alan Hayward <alan.hayward@arm.com>
1197
1198 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
1199 null VQ.
1200
1201 2018-05-25 Maciej W. Rozycki <macro@mips.com>
1202
1203 * gdb.arch/mips-fpregset-core.exp: New test.
1204 * gdb.arch/mips-fpregset-core.c: New test source.
1205
1206 2018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
1207
1208 PR server/23198
1209 * hostio.c (require_int): Do not report overflow for integers
1210 between 0xfffffff and 0x7fffffff.
1211
1212 2018-05-22 Maciej W. Rozycki <macro@mips.com>
1213
1214 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
1215 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
1216 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
1217 functions.
1218 (the_low_target): Wire them.
1219
1220 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
1221
1222 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
1223 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
1224 mode. Call collect_register_by_name with vscr using
1225 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
1226 (ppc_store_vrregset): Add and set vscr_offset variable as in
1227 ppc_fill_vrregset. Call supply_register_by_name with vscr using
1228 vscr_offset.
1229
1230 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
1231
1232 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
1233 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
1234 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
1235
1236 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
1237
1238 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
1239 (ppc_store_vsxregset): Likewise.
1240 (ppc_fill_vrregset): Likewise.
1241 (ppc_store_vrregset): Likewise.
1242 (ppc_fill_evrregset): Likewise.
1243 (ppc_store_evrregset): Likewise.
1244 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
1245 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
1246 needed.
1247
1248 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
1249
1250 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
1251 wordsize of the inferior. Call ppc_linux_target_wordsize.
1252
1253 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
1254
1255 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
1256 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
1257 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
1258 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
1259 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
1260 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
1261 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
1262 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
1263 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
1264 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
1265 (tdesc_powerpc_e500l): Remove.
1266 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
1267 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
1268 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
1269 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
1270 linux-ppc-tdesc.h.
1271 (ppc_arch_setup): Remove target description matching code. Fill a
1272 ppc_linux_features struct and call ppc_linux_match_description
1273 with it.
1274
1275 2018-05-22 Maciej W. Rozycki <macro@mips.com>
1276
1277 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
1278 width of the requested register exceeds the width of the
1279 `ptrace' data type.
1280 (mips_cannot_store_register): Likewise.
1281
1282 2018-05-21 Maciej W. Rozycki <macro@mips.com>
1283
1284 * linux-mips-low.c (mips_fetch_register): New function. Update
1285 preceding comment.
1286 (mips_store_gregset): Supply 0 rather than $restart for $zero.
1287 (the_low_target): Wire `mips_fetch_register'.
1288
1289 2018-05-10 Joel Brobecker <brobecker@adacore.com>
1290
1291 * lynx-i386-low.c (LYNXOS_178): New macro.
1292 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
1293 the layout on LynxOS-178.
1294 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
1295 handle floating point registers that are not supported by
1296 LynxOS-178.
1297
1298 2018-05-10 Tom Tromey <tom@tromey.com>
1299
1300 * configure: Rebuild.
1301
1302 2018-05-10 Joel Brobecker <brobecker@adacore.com>
1303
1304 PR server/23158:
1305 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
1306 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
1307 Use it to set the expedite_regs field in the given tdesc.
1308 * x86-tdesc.h: New file.
1309 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
1310 Adjust following the addition of the new expedite_regs parameter
1311 to init_target_desc.
1312 * linux-tic6x-low.c (tic6x_read_description): Likewise.
1313 * linux-x86-tdesc.c: #include "x86-tdesc.h".
1314 (i386_linux_read_description, amd64_linux_read_description):
1315 Adjust following the addition of the new expedite_regs parameter
1316 to init_target_desc.
1317 * lynx-i386-low.c: #include "x86-tdesc.h".
1318 (lynx_i386_arch_setup): Adjust following the addition of the new
1319 expedite_regs parameter to init_target_desc.
1320 * nto-x86-low.c: #include "x86-tdesc.h".
1321 (nto_x86_arch_setup): Adjust following the addition of the new
1322 expedite_regs parameter to init_target_desc.
1323 * win32-i386-low.c: #include "x86-tdesc.h".
1324 (i386_arch_setup): Adjust following the addition of the new
1325 expedite_regs parameter to init_target_desc.
1326
1327 2018-05-10 Joel Brobecker <brobecker@adacore.com>
1328
1329 PR server/23158:
1330 * win32-low.c (win32_create_inferior): Add call to my_wait
1331 setting last_status global.
1332
1333 2018-05-10 Joel Brobecker <brobecker@adacore.com>
1334
1335 PR server/23158:
1336 * win32-low.c (create_process): Only call gdb_tilde_expand if
1337 inferior_cwd is not NULL.
1338
1339 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
1340
1341 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
1342 registers to the cache if their values have changed.
1343 (i387_xsave_to_cache): Provide default values for x87 control
1344 registers when these features are available, but disabled.
1345 * regcache.c (supply_register_by_name_zeroed): New function.
1346 * regcache.h (supply_register_by_name_zeroed): Declare new
1347 function.
1348
1349 2018-05-07 Tom Tromey <tom@tromey.com>
1350
1351 * configure: Rebuild.
1352
1353 2018-05-04 Tom Tromey <tom@tromey.com>
1354
1355 * configure: Rebuild.
1356
1357 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1358 Pedro Alves <palves@redhat.com>
1359
1360 * linux-aarch64-low.c (aarch64_stopped_data_address):
1361 Likewise.
1362
1363 2018-04-27 Tom Tromey <tom@tromey.com>
1364
1365 * configure: Rebuild.
1366
1367 2018-04-23 Tom Tromey <tom@tromey.com>
1368
1369 * configure: Rebuild.
1370
1371 2018-04-19 Simon Marchi <simon.marchi@ericsson.com>
1372
1373 * Makefile.in (depcomp): Add "..".
1374 (all_deps_files): New and use it.
1375
1376 2018-04-18 Alan Hayward <alan.hayward@arm.com>
1377
1378 * configure.srv (aarch64*-*-linux*): Don't include xml.
1379 (i[34567]86-*-cygwin*): Likewise.
1380 (i[34567]86-*-linux*): Likewise.
1381 (i[34567]86-*-lynxos*): Likewise.
1382 (i[34567]86-*-mingw32ce*): Likewise.
1383 (i[34567]86-*-mingw*): Likewise.
1384 (i[34567]86-*-nto*): Likewise.
1385 (tic6x-*-uclinux): Likewise.
1386 (x86_64-*-linux*): Likewise.
1387 (x86_64-*-mingw*): Likewise.
1388 (x86_64-*-cygwin*): Likewise.
1389
1390 2018-04-18 Alan Hayward <alan.hayward@arm.com>
1391
1392 * tdesc.c: Remove xml parameter.
1393
1394 2018-04-18 Alan Hayward <alan.hayward@arm.com>
1395
1396 * server.c (get_features_xml): Remove cast.
1397 * tdesc.c (void target_desc::accept): Fill in function.
1398 (tdesc_get_features_xml): Remove old xml creation.
1399 (print_xml_feature::visit_pre): Add xml vistor.
1400 * tdesc.h (struct target_desc): Make xmltarget mutable.
1401 (tdesc_get_features_xml): Remove declaration.
1402
1403 2018-04-18 Alan Hayward <alan.hayward@arm.com>
1404
1405 * tdesc.c (tdesc_architecture_name): Add new function.
1406 (tdesc_osabi_name): Likewise.
1407 (tdesc_get_features_xml): Use new functions.
1408
1409 2018-04-18 Alan Hayward <alan.hayward@arm.com>
1410
1411 * tdesc.c (tdesc_create_flags): Remove.
1412 (tdesc_add_flag): Likewise.
1413 (tdesc_named_type): Likewise.
1414 (tdesc_create_union): Likewise.
1415 (tdesc_create_struct): Likewise.
1416 (tdesc_create_vector): Likewise.
1417 (tdesc_add_bitfield): Likewise.
1418 (tdesc_add_field): Likewise.
1419 (tdesc_set_struct_size): Likewise.
1420
1421 2018-04-18 Alan Hayward <alan.hayward@arm.com>
1422
1423 * tdesc.c (~target_desc): Remove implictly deleted items.
1424 (init_target_desc): Iterate all features.
1425 (tdesc_get_features_xml): Use vector.
1426 (tdesc_create_feature): Create feature.
1427 * tdesc.h (tdesc_feature) Remove
1428 (target_desc): Add features.
1429
1430 2018-04-18 Alan Hayward <alan.hayward@arm.com>
1431
1432 * Makefile.in: Add common/tdesc.c
1433 * tdesc.c (init_target_desc): init all reg_defs from register
1434 vector.
1435 (tdesc_create_reg): Create tdesc_reg.
1436 * tdesc.h (tdesc_feature): Add register vector.
1437
1438 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
1439
1440 * tdesc.h (struct target_desc) <features>: Change type to
1441 std::vector<std::string>.
1442 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
1443 changes.
1444 (tdesc_get_features_xml): Likewise.
1445 (tdesc_create_feature): Likewise.
1446
1447 2018-03-26 Alan Hayward <alan.hayward@arm.com>
1448
1449 * regcache.c (find_register_by_number): Return a ref.
1450 (find_regno): Use references.
1451 (register_size): Likewise.
1452 (register_data): Likewise.
1453 * tdesc.c (target_desc::~target_desc): Remove free calls.
1454 (target_desc::operator==): Use std::vector compare.
1455 (init_target_desc): Use reference.
1456 (tdesc_create_reg): Use reg constructors.
1457 * tdesc.h (struct target_desc): Replace pointer with object.
1458
1459 2018-03-23 Alan Hayward <alan.hayward@arm.com>
1460
1461 * regcache.c (find_register_by_number): Make static.
1462 (find_regno): Use find_register_by_number
1463 * regcache.h (struct reg): Remove declaration.
1464
1465 2018-03-23 Alan Hayward <alan.hayward@arm.com>
1466
1467 * tdesc.c (target_desc::~target_desc): Move to here.
1468 (target_desc::operator==): Likewise.
1469 * tdesc.h (target_desc::~target_desc): Move from here.
1470 (target_desc::operator==): Likewise.
1471
1472 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
1473
1474 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
1475
1476 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1477
1478 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
1479 S390_TDESC_GS.
1480 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
1481 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
1482 and init_registers_s390_gs_linux64.
1483
1484 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1485
1486 * linux-s390-low.c (s390_fill_gs): Remove function.
1487 (s390_fill_gsbc): Remove function.
1488 (s390_regsets): Set fill functions for the guarded storage regsets
1489 to NULL.
1490
1491 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1492
1493 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
1494 the word size. Add comment.
1495 (s390_get_wordsize): New function.
1496 (s390_arch_setup): No longer select a temporary tdesc to fetch the
1497 pswm with it. Instead, use s390_get_wordsize to determine the
1498 word size first and derive the correct tdesc from that directly.
1499
1500 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
1501
1502 * Makefile.in: Include silent-rules.mk.
1503 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
1504 (COMPILE): Add ECHO_CXX.
1505 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
1506 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
1507 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
1508 (version-generated.c): Add ECHO_GEN.
1509 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
1510 (IPAGENT_COMPILE): Add ECHO_CXX.
1511 (%-generated.c): Add ECHO_REGDAT.
1512
1513 2018-03-14 Tom Tromey <tom@tromey.com>
1514
1515 PR cli/14977:
1516 * ax.c (ax_printf): Special case for NULL.
1517
1518 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
1519
1520 * linux-low.c (linux_qxfer_libraries_svr4): Use
1521 xml_escape_text_append.
1522
1523 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
1524
1525 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
1526
1527 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
1528
1529 * server.c (handle_general_set): Remove unnecessary xstrdup.
1530
1531 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
1532
1533 * server.c (parse_debug_format_options): Adjust to
1534 delim_string_to_char_ptr_vec changes.
1535 * thread-db.c (thread_db_load_search): Adjust to
1536 dirnames_to_char_ptr_vec changes.
1537
1538 2018-03-01 Markus Metzger <markus.t.metzger@intel.com>
1539
1540 * target.h (target_enable_btrace, target_disable_btrace)
1541 (target_read_btrace, target_read_btrace_conf): Turn macro into
1542 inline function. Throw error if target method is not defined.
1543 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
1544 check for btrace target method. Be prepared to handle exceptions
1545 from btrace target methods.
1546
1547 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
1548
1549 * server.c (captured_main): Change order of error message printed
1550 when the current working directory cannot be found.
1551
1552 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
1553
1554 * server.c: Include "filenames.h" and "pathstuff.h".
1555 (program_name): Delete variable.
1556 (program_path): New anonymous class.
1557 (get_exec_wrapper): Use "program_path" instead of
1558 "program_name".
1559 (handle_v_run): Likewise.
1560 (captured_main): Likewise.
1561 (process_serial_event): Likewise.
1562
1563 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
1564
1565 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
1566 (OBJS): Add "pathstuff.o".
1567 * server.c (current_directory): New global variable.
1568 (captured_main): Initialize "current_directory".
1569
1570 2018-02-26 Alan Hayward <alan.hayward@arm.com>
1571
1572 * tdesc.c: Use common/tdesc.h.
1573 * tdesc.h: Likewise.
1574
1575 2018-02-20 Alan Hayward <alan.hayward@arm.com>
1576 Simon Marchi <simon.marchi@ericsson.com>
1577
1578 * Makefile.in: Switch order of make rules.
1579
1580 2018-02-19 Alan Hayward <alan.hayward@arm.com>
1581
1582 * Makefile.in: Add common directory in build.
1583 * configure.ac: Add common reference.
1584 * configure: Regenerate.
1585
1586 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
1587
1588 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
1589 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
1590 * spu-low.c (spu_target_ops): Likewise.
1591 * win32-low.c (win32_target_ops): Likewise.
1592 * server.c (supported_btrace_packets): Report packets unconditionally.
1593 * target.h (target_ops) <supports_btrace>: Remove.
1594 (target_supports_btrace): Remove.
1595
1596 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
1597
1598 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
1599 (handle_btrace_disable): Change return type to void. Use exceptions
1600 to report errors.
1601 (handle_btrace_general_set): Catch exception and copy message to
1602 return message.
1603
1604 2018-02-08 Tom Tromey <tom@tromey.com>
1605
1606 * linux-low.c (install_software_single_step_breakpoints): Use
1607 make_scoped_restore.
1608 * inferiors.c (make_cleanup_restore_current_thread): Remove.
1609 (do_restore_current_thread_cleanup): Remove.
1610 * gdbthread.h (make_cleanup_restore_current_thread): Don't
1611 declare.
1612
1613 2018-02-08 Tom Tromey <tom@tromey.com>
1614
1615 * mem-break.c (set_raw_breakpoint_at): Use
1616 gdb::unique_xmalloc_ptr.
1617
1618 2018-01-30 Pedro Alves <palves@redhat.com>
1619
1620 PR gdb/13211
1621 * target.c (target_terminal::terminal_state): Rename to ...
1622 (target_terminal::m_terminal_state): ... this.
1623
1624 2018-01-19 James Clarke <jrtc27@jrtc27.com>
1625
1626 * linux-low.c (handle_extended_wait): Surround call to
1627 thread_db_notice_clone with #ifdef USE_THREAD_DB.
1628
1629 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
1630
1631 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
1632 linux_ptrace_attach_fail_reason_string now returning an
1633 std::string.
1634 (linux_attach): Likewise.
1635 * thread-db.c (attach_thread): Likewise.
1636
1637 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
1638
1639 PR gdb/21559
1640 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
1641 checking for fs_base/gs_base fields in struct user_regs_struct.
1642 * configure: Regenerate.
1643
1644 2018-01-16 Yao Qi <yao.qi@linaro.org>
1645
1646 PR gdb/18749
1647 * linux-low.c (fetch_register): Call supply_register instead of
1648 error.
1649
1650 2018-01-08 Yao Qi <yao.qi@linaro.org>
1651 Simon Marchi <simon.marchi@ericsson.com>
1652
1653 * Makefile.in (OBS): Remove selftest.o.
1654 * configure.ac: Set srv_selftest_objs if $development is true.
1655 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
1656 * configure: Re-generated.
1657 * server.c (captured_main): Wrap variable selftest_filter with
1658 GDB_SELF_TEST.
1659
1660 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
1661
1662 * server.c (parse_debug_format_options): Return std::string.
1663 (handle_monitor_command, captured_main): Adjust.
1664
1665 2018-01-05 Pedro Alves <palves@redhat.com>
1666
1667 PR gdb/18653
1668 * server.c (captured_main): Pass quiet=false to
1669 save_original_signals_state.
1670
1671 2018-01-01 Joel Brobecker <brobecker@adacore.com>
1672
1673 * gdbreplay.c (gdbreplay_version): Update copyright year in
1674 version message.
1675 * server.c (gdbserver_version): Likewise.
1676
1677 2017-12-08 Tom Tromey <tom@tromey.com>
1678
1679 * ax.c (ax_printf): Update.
1680
1681 2017-12-07 Yao Qi <yao.qi@linaro.org>
1682
1683 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
1684 aarch64_linux_read_description.
1685 * linux-amd64-ipa.c (idx2mask): New array.
1686 (get_ipa_tdesc): Move idx2mask out.
1687 (initialize_low_tracepoint): Initialize target descriptions.
1688 * linux-i386-ipa.c (idx2mask): New array.
1689 (get_ipa_tdesc): Move idx2mask out.
1690 (initialize_low_tracepoint): Initialize target descriptions.
1691
1692 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
1693
1694 * tdesc.c (struct tdesc_type): Change return type.
1695 (tdesc_add_flag): Change parameter type.
1696 (tdesc_add_bitfield): Likewise.
1697 (tdesc_add_field): Likewise.
1698 (tdesc_set_struct_size): Likewise.
1699
1700 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
1701
1702 * regcache.c (registers_to_string): Remove unused variable.
1703
1704 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
1705
1706 * inferiors.c (for_each_inferior_with_data): Remove.
1707 * inferiors.h (for_each_inferior_with_data): Remove.
1708 * server.c (handle_qxfer_threads_worker): Change parameter type.
1709 (handle_qxfer_threads_proper): Use for_each_thread.
1710
1711 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
1712
1713 * inferiors.c (for_each_inferior): Remove.
1714 (clear_inferiors): Use for_each_thread.
1715 * inferiors.h (for_each_inferior): Remove.
1716 * linux-low.c (linux_wait_for_event_filtered): Use
1717 for_each_thread.
1718 (linux_stabilize_threads): Likewise.
1719 * regcache.c (regcache_release): Likewise.
1720 * server.c (gdb_wants_all_threads_stopped): Likewise.
1721 (clear_pending_status_callback): Remove.
1722 (handle_status): Use for_each_thread.
1723 (captured_main): Likewise.
1724 * win32-low.c (child_init_thread_list): Likewise.
1725 (win32_clear_inferiors): Likewise.
1726 (fake_breakpoint_event): Likewise.
1727
1728 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
1729
1730 * inferiors.h (find_inferior): Remove.
1731 * inferiors.c (find_inferior): Remove.
1732
1733 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
1734
1735 * linux-low.c (resume_status_pending_p): Update comment.
1736 (need_step_over_p): Update comment.
1737
1738 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
1739
1740 * linux-low.c (proceed_one_lwp): Return void, change parameter
1741 type.
1742 (unsuspend_and_proceed_one_lwp): Likewise.
1743 (proceed_all_lwps): Use for_each_thread.
1744 (unstop_all_lwps): Likewise.
1745
1746 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
1747
1748 * linux-low.c (linux_resume_one_thread): Return void, take
1749 parameter directly.
1750 (linux_resume): Use for_each_thread.
1751
1752 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
1753
1754 * linux-low.c (send_sigstop_callback): Return void, change
1755 parameter type. Rename to...
1756 (send_sigstop): ... this.
1757 (suspend_and_send_sigstop_callback): Return void, change parameter
1758 type. Rename to...
1759 (suspend_and_send_sigstop): ... this.
1760 (stop_all_lwps): Use for_each_thread.
1761
1762 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
1763
1764 * linux-low.c (lwp_running): Return bool, remove unused
1765 argument.
1766 (linux_stabilize_threads): Use find_thread.
1767
1768 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
1769
1770 * linux-low.c (select_singlestep_lwp_callback): Remove.
1771 (count_events_callback): Remove.
1772 (select_event_lwp_callback): Remove.
1773 (select_event_lwp): Use find_thread/for_each_thread.
1774
1775 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
1776
1777 * linux-low.c (not_stopped_callback): Return bool, take filter
1778 argument directly.
1779 (linux_wait_for_event_filtered): Use find_thread.
1780 (linux_wait_1): Likewise.
1781
1782 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
1783
1784 * linux-low.c (same_lwp): Remove.
1785 (find_lwp_pid): Use find_thread.
1786
1787 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
1788
1789 * linux-low.c (delete_lwp_callback): Remove.
1790 (linux_mourn): Use for_each_thread.
1791
1792 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
1793
1794 * linux-low.c (linux_detach_lwp_callback): Return void, remove
1795 args parameter, don't check for pid.
1796 (linux_detach): Use for_each_thread.
1797
1798 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
1799
1800 * linux-low.c (struct counter): Remove.
1801 (second_thread_of_pid_p): Remove.
1802 (last_thread_of_process_p): Use find_thread.
1803
1804 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
1805
1806 * inferiors.c (find_inferior_in_random): Remove.
1807 * inferiors.h (find_inferior_in_random): Remove.
1808 * linux-low.c (status_pending_p_callback): Return bool, accept
1809 parameter ptid directly.
1810 (linux_wait_for_event_filtered): Use find_thread_in_random.
1811 (linux_wait_1): Likewise.
1812
1813 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
1814
1815 * inferiors.c (find_inferior_id): Remove.
1816 (find_thread_ptid): Move implemention from find_inferior_id to
1817 here.
1818 * inferiors.h (find_inferior_id): Remove.
1819 * server.c (handle_status): Use find_thread_ptid.
1820 (process_serial_event): Likewise.
1821 * thread-db.c (find_one_thread): Likewise.
1822 (thread_db_thread_handle): Likewise.
1823 * win32-low.c (thread_rec): Likewise.
1824 (child_delete_thread): Likewise.
1825 (win32_thread_alive): Likewise.
1826 (get_child_debug_event): Likewise.
1827
1828 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
1829
1830 * linux-mips-low.c (update_watch_registers_callback): Return
1831 void, remove pid_p parameter, don't check for pid.
1832 (mips_insert_point, mips_remove_point): Use for_each_thread.
1833
1834 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
1835
1836 * lynx.low (lynx_delete_thread_callback): Remove.
1837 (lynx_mourn): Use for_each_thread.
1838
1839 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
1840
1841 * regcache.c (regcache_invalidate_one): Remove.
1842 (regcache_invalidate_pid): use for_each_thread.
1843
1844 2017-11-26 Tom Tromey <tom@tromey.com>
1845
1846 * linux-low.c (linux_create_inferior): Update.
1847
1848 2017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
1849
1850 * spu-low.c (spu_create_inferior): Fix typo in argument name.
1851
1852 2017-11-24 Alan Hayward <alan.hayward@arm.com>
1853
1854 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
1855 * linux-aarch64-low.c (initialize_low_arch): Call init func.
1856 * linux-aarch64-tdesc-selftest.c: New file.
1857 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
1858
1859 2017-11-24 Alan Hayward <alan.hayward@arm.com>
1860
1861 * configure.srv: Add new file.
1862 * linux-aarch64-low.c (initialize_low_arch): Call init func.
1863 * linux-aarch64-tdesc-selftest.c: New file.
1864 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
1865
1866 2017-11-24 Alan Hayward <alan.hayward@arm.com>
1867
1868 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
1869 * linux-aarch64-low.c (initialize_low_arch): Remove init.
1870 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
1871
1872 2017-11-24 Alan Hayward <alan.hayward@arm.com>
1873
1874 * configure.srv: Add new files.
1875 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
1876 aarch64_linux_read_description.
1877 * linux-aarch64-low.c (aarch64_linux_read_description):
1878 Merge with aarch64_arch_setup.
1879 (aarch64_arch_setup): Call aarch64_linux_read_description.
1880 * linux-aarch64-tdesc.c: New file.
1881 * linux-aarch64-tdesc.h: New file.
1882
1883 2017-11-24 Yao Qi <yao.qi@linaro.org>
1884
1885 * configure.srv: Set $srv_regobj for tic6x-linux.
1886 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
1887 (tic6x_read_description): Move some code to tic6x_arch_setup.
1888 (tic6x_tdesc_test): New function.
1889 (initialize_low_arch): Call selftests::register_test.
1890
1891 2017-11-22 Yao Qi <yao.qi@linaro.org>
1892
1893 * remote-utils.c (prepare_resume_reply): Use memcpy.
1894
1895 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
1896
1897 * linux-low.c (kill_one_lwp_callback): Return void, take
1898 argument directly, don't filter on pid.
1899 (linux_kill): Use for_each_thread.
1900
1901 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
1902
1903 * linux-low.c (need_step_over_p): Return bool, remove dummy
1904 argument.
1905 (linux_resume, proceed_all_lwps): Use find_thread.
1906
1907 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
1908
1909 * linux-low.c (resume_status_pending_p): Return bool, remove
1910 flag_p argument.
1911 (linux_resume): Use find_thread.
1912
1913 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
1914
1915 * linux-low.c (struct thread_resume_array): Remove.
1916 (linux_set_resume_request): Return void, take arguments
1917 directly.
1918 (linux_resume): Use for_each_thread.
1919
1920 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
1921
1922 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
1923 return bool, remove data argument.
1924 (linux_stabilize_threads): Use find_thread.
1925
1926 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
1927
1928 * linux-low.c (unsuspend_one_lwp): Remove.
1929 (unsuspend_all_lwps): Use for_each_thread, inline code from
1930 unsuspend_one_lwp.
1931
1932 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
1933
1934 * gdbthread.h (find_thread): Add overload with ptid_t filter.
1935 * linux-low.c (struct iterate_over_lwps_args): Remove.
1936 (iterate_over_lwps_filter): Remove.
1937 (iterate_over_lwps): Use find_thread.
1938
1939 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
1940
1941 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
1942 (linux_handle_new_gdb_connection): Use for_each_thread, inline
1943 code from reset_lwp_ptrace_options_callback.
1944
1945 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
1946
1947 * linux-arm-low.c (struct update_registers_data): Remove.
1948 (update_registers_callback): Return void, take arguments
1949 directly, don't check thread's pid.
1950 (arm_insert_point, arm_remove_point): Use for_each_thread.
1951
1952 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
1953
1954 * win32-low.c (continue_one_thread): Return void, take argument
1955 directly.
1956 (child_continue): Use for_each_thread.
1957
1958 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
1959
1960 * win32-i386-low.c (update_debug_registers_callback): Rename
1961 to ...
1962 (update_debug_registers): ... this, return void, remove pid_p arg.
1963 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
1964
1965 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
1966
1967 * inferiors.h (struct process_info): Add constructor, initialize
1968 fields..
1969 <syscalls_to_catch>: Change type to std::vector<int>.
1970 * inferiors.c (add_process): Allocate process_info with new.
1971 (remove_process): Free process_info with delete.
1972 * linux-low.c (handle_extended_wait): Adjust.
1973 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
1974 * server.c (handle_general_set): Adjust.
1975
1976 2017-11-16 Pedro Alves <palves@redhat.com>
1977
1978 * remote-utils.c (remote_close): Block SIGIO signals instead of
1979 uninstalling the SIGIO handler.
1980
1981 2017-11-16 Alan Hayward <alan.hayward@arm.com>
1982
1983 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
1984
1985 2017-11-16 Yao Qi <yao.qi@linaro.org>
1986
1987 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
1988 (tic6x_store_gregset): Likewise.
1989 (tic6x_usrregs_info): Move it up.
1990
1991 2017-11-15 Alan Hayward <alan.hayward@arm.com>
1992
1993 * Makefile.in: Update arch rules.
1994 * configure.srv: Explicitly mark arch/ files.
1995
1996 2017-11-13 Andreas Schwab <schwab@suse.de>
1997
1998 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
1999 function.
2000 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
2001
2002 2017-11-06 Pedro Alves <palves@redhat.com>
2003
2004 * config.in, configure: Regenerate.
2005
2006 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
2007
2008 * target.c (struct thread_search): Remove.
2009 (thread_search_callback): Remove.
2010 (prepare_to_access_memory): Use for_each_thread instead of
2011 find_inferior. Inline code from thread_search_callback.
2012
2013 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
2014
2015 * server.c (struct visit_actioned_threads_data): Remove.
2016 (visit_actioned_threads): Change prototype to take arguments
2017 directly.
2018 (resume): Use find_thread instead of find_inferior.
2019
2020 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
2021
2022 * server.c (queue_stop_reply_callback): Change prototype, return
2023 void.
2024 (find_status_pending_thread_callback): Remove.
2025 (handle_status): Replace find_inferior with find_thread and
2026 for_each_thread.
2027
2028 2017-10-25 Alan Hayward <alan.hayward@arm.com>
2029
2030 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
2031 with REGNO.
2032 (aarch64_store_gregset): Likewise.
2033 (aarch64_fill_fpregset): Likewise.
2034 (aarch64_store_fpregset): Likewise.
2035
2036 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
2037
2038 * gdbthread.h (find_thread, for_each_thread): New functions.
2039 * inferiors.c (thread_of_pid): Remove.
2040 (find_any_thread_of_pid): Use find_thread.
2041 * linux-low.c (num_lwps): Use for_each_thread.
2042
2043 2017-10-17 Yao Qi <yao.qi@linaro.org>
2044
2045 * Makefile.in: Remove one rule.
2046 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
2047
2048 2017-10-17 Yao Qi <yao.qi@linaro.org>
2049
2050 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
2051 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
2052
2053 2017-10-17 Yao Qi <yao.qi@linaro.org>
2054
2055 * configure.srv: Rename arm.o with arch/arm.o.
2056
2057 2017-10-17 Yao Qi <yao.qi@linaro.org>
2058
2059 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
2060 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
2061 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
2062 (arch-i386.o, arch-amd64.o): Remove rules.
2063 (arch/%.o): New rule.
2064 Update POSTCOMPILE and COMPILE.pre.
2065 * configure.ac: Invoke AC_CONFIG_COMMANDS.
2066 * configure: Re-generated.
2067 * configure.srv: Replace arch-i386.o with arch/i386.o.
2068 Replace arch-amd64.o with arch/amd64.o.
2069
2070 2017-10-16 Yao Qi <yao.qi@linaro.org>
2071
2072 * configure: Regenerated.
2073
2074 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
2075
2076 * inferiors.h: (struct inferior_list): Remove.
2077 (struct inferior_list_entry); Remove.
2078 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
2079 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
2080 get_first_inferior): Remove.
2081 (for_each_inferior, for_each_inferior_with_data, find_inferior,
2082 find_inferior_id, find_inferior_in_random): Change signature.
2083 * inferiors.c (all_threads): Change type to
2084 std::list<thread_info *>.
2085 (get_thread): Remove macro.
2086 (find_inferior, find_inferior_id): Change signature, implement
2087 using find_thread.
2088 (find_inferior_in_random): Change signature, implement using
2089 find_thread_in_random.
2090 (for_each_inferior, for_each_inferior_with_data): Change
2091 signature, implement using for_each_thread.
2092 (add_inferior_to_list, remove_inferior): Remove.
2093 (add_thread, get_first_thread, thread_of_pid,
2094 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
2095 (get_first_inferior, one_inferior_p, clear_inferior_list):
2096 Remove.
2097 (clear_inferiors, get_thread_process): Update.
2098 * gdbthread.h: Include <list>.
2099 (struct thread_info) <entry>: Remove field.
2100 <id>: New field.
2101 (all_threads): Change type to std::list<thread_info *>.
2102 (get_first_inferior): Add doc.
2103 (find_thread, for_each_thread, find_thread_in_random): New
2104 functions.
2105 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
2106 * linux-arm-low.c (update_registers_callback): Update.
2107 * linux-low.c (second_thread_of_pid_p): Update.
2108 (kill_one_lwp_callback, linux_detach_lwp_callback,
2109 delete_lwp_callback, status_pending_p_callback, same_lwp,
2110 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
2111 iterate_over_lwps, not_stopped_callback,
2112 resume_stopped_resumed_lwps, count_events_callback,
2113 select_singlestep_lwp_callback, select_event_lwp_callback,
2114 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
2115 suspend_and_send_sigstop_callback, wait_for_sigstop,
2116 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
2117 lwp_running, linux_set_resume_request, resume_status_pending_p,
2118 need_step_over_p, start_step_over, linux_resume_one_thread,
2119 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
2120 reset_lwp_ptrace_options_callback): Update.
2121 * linux-mips-low.c (update_watch_registers_callback): Update.
2122 * regcache.c (regcache_invalidate_one, regcache_invalidate):
2123 Update.
2124 (free_register_cache_thread_one): Remove.
2125 (regcache_release): Update.
2126 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
2127 handle_qxfer_threads_worker): Update.
2128 (handle_query): Update, use list iterator.
2129 (visit_actioned_threads, handle_pending_status,
2130 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
2131 clear_pending_status_callback, set_pending_status_callback,
2132 find_status_pending_thread_callback, handle_status,
2133 process_serial_event): Update.
2134 * target.c (thread_search_callback): Update.
2135 * thread-db.c (thread_db_get_tls_address): Update.
2136 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
2137 Update.
2138 * win32-i386-low.c (update_debug_registers_callback): Update.
2139 * win32-low.c (delete_thread_info, child_delete_thread,
2140 continue_one_thread, suspend_one_thread,
2141 get_child_debug_event): Adjust.
2142
2143 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
2144
2145 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
2146 * inferiors.h: Include <list>.
2147 (struct process_info) <entry>: Remove field.
2148 <pid>: New field.
2149 (pid_of): Change macro to function.
2150 (ptid_of, lwpid_of): Remove macro.
2151 (all_processes): Change type to std::list<process_info *>.
2152 (ALL_PROCESSES): Remove macro.
2153 (for_each_process, find_process): New function.
2154 * inferiors.c (all_processes): Change type to
2155 std::list<process_info *>.
2156 (find_thread_process): Adjust.
2157 (add_process): Likewise.
2158 (remove_process): Likewise.
2159 (find_process_pid): Likewise.
2160 (get_first_process): Likewise.
2161 (started_inferior_callback): Remove.
2162 (have_started_inferiors_p): Adjust.
2163 (attached_inferior_callback): Remove.
2164 (have_attached_inferiors_p): Adjust.
2165 * linux-low.c (check_zombie_leaders): Likewise.
2166 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
2167 (x86_linux_update_xmltarget): Adjust.
2168 * server.c (handle_query): Likewise.
2169 (gdb_reattached_process): Remove.
2170 (handle_status): Adjust.
2171 (kill_inferior_callback): Likewise.
2172 (detach_or_kill_inferior): Remove.
2173 (print_started_pid): Likewise.
2174 (print_attached_pid): Likewise.
2175 (detach_or_kill_for_exit): Update.
2176 (process_serial_event): Likewise.
2177 * linux-arm-low.c (arm_new_fork): Likewise.
2178
2179 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
2180
2181 * dll.h: Include <list>.
2182 (struct dll_info): Add constructor.
2183 <entry>: Remove field.
2184 (all_dlls): Change type to std::list<dll_info>.
2185 * dll.c: Include <algorithm>.
2186 (get_dll): Remove macro.
2187 (all_dlls): Change type to std::list<dll_info *>.
2188 (free_one_dll): Remove.
2189 (match_dll): Likewise.
2190 (loaded_dll): Adjust.
2191 (unloaded_dll): Adjust to all_dlls type change, use
2192 std::find_if. Inline code from match_dll.
2193 (clear_dlls): Adjust to all_dlls type change.
2194 * server.c (emit_dll_description): Remove.
2195 (handle_qxfer_libraries): Adjust to all_dlls type change,
2196 integrate emit_dll_description's functionality.
2197
2198 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
2199
2200 * linux-low.h (struct linux_target_ops) <delete_process>: New
2201 field.
2202 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
2203 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
2204 (struct linux_target_ops): Add delete_process callback.
2205 * linux-arm-low.c (arm_delete_process): New.
2206 (struct linux_target_ops): Add delete_process callback.
2207 * linux-bfin-low.c (struct linux_target_ops): Likewise.
2208 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
2209 * linux-m32r-low.c (struct linux_target_ops): Likewise.
2210 * linux-mips-low.c (mips_linux_delete_process): New.
2211 (struct linux_target_ops): Add delete_process callback.
2212 * linux-ppc-low.c (struct linux_target_ops): Likewise.
2213 * linux-s390-low.c (struct linux_target_ops): Likewise.
2214 * linux-sh-low.c (struct linux_target_ops): Likewise.
2215 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
2216 * linux-tile-low.c (struct linux_target_ops): Likewise.
2217 * linux-x86-low.c (x86_linux_delete_process): New.
2218 (struct linux_target_ops): Add delete_process callback.
2219 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
2220
2221 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
2222
2223 * linux-aarch64-low.c (the_low_target): Add thread delete
2224 callback.
2225 * linux-arm-low.c (arm_delete_thread): New function.
2226 (the_low_target): Add thread delete callback.
2227 * linux-bfin-low.c (the_low_target): Likewise.
2228 * linux-crisv32-low.c (the_low_target): Likewise.
2229 * linux-low.c (delete_lwp): Invoke delete_thread callback if
2230 set.
2231 * linux-low.h (struct linux_target_ops) <delete_thread>: New
2232 field.
2233 * linux-m32r-low.c (the_low_target): Add thread delete callback.
2234 * linux-mips-low.c (mips_linux_delete_thread): New function.
2235 (the_low_target): Add thread delete callback.
2236 * linux-ppc-low.c (the_low_target): Likewise.
2237 * linux-s390-low.c (the_low_target): Likewise.
2238 * linux-sh-low.c (the_low_target): Likewise.
2239 * linux-tic6x-low.c (the_low_target): Likewise.
2240 * linux-tile-low.c (the_low_target): Likewise.
2241 * linux-x86-low.c (the_low_target): Likewise.
2242 * linux-xtensa-low.c (the_low_target): Likewise.
2243
2244 2017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
2245
2246 * win32-low.c: Include "common-inferior.h".
2247
2248 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
2249
2250 * inferiors.c (set_inferior_cwd): New function.
2251 * server.c (handle_general_set): Handle QSetWorkingDir packet.
2252 (handle_query): Inform that QSetWorkingDir is supported.
2253 * win32-low.c (create_process): Pass the inferior's cwd to
2254 CreateProcess.
2255
2256 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
2257
2258 * inferiors.c (current_inferior_cwd): New global variable.
2259 (get_inferior_cwd): New function.
2260 * inferiors.h (struct process_info) <cwd>: New field.
2261
2262 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
2263
2264 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
2265 (OBS): Add gdb_tilde_expand.o.
2266
2267 2017-10-02 Simon Marchi <simon.marchi@ericsson.com>
2268
2269 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
2270 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
2271
2272 2017-09-29 Pedro Alves <palves@redhat.com>
2273
2274 * ax.c (gdb_parse_agent_expr): Constify.
2275 * ax.h (gdb_parse_agent_expr): Constify.
2276 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
2277 Constify.
2278 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
2279 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
2280 * remote-utils.h (read_ptid): Constify.
2281 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
2282 (process_point_options, process_serial_event): Constify.
2283 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
2284 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
2285 (cmd_qtbuffer): Constify.
2286
2287 2017-09-29 Pedro Alves <palves@redhat.com>
2288
2289 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
2290 fails.
2291
2292 2017-09-29 Pedro Alves <palves@redhat.com>
2293
2294 * linux-low.c (handle_extended_wait): Pass parent thread instead
2295 of process to thread_db_notice_clone.
2296 * linux-low.h (thread_db_notice_clone): Replace parent process
2297 parameter with parent thread parameter.
2298 * thread-db.c (find_one_thread): Add comment.
2299 (thread_db_notice_clone): Replace parent process parameter with
2300 parent thread parameter. Temporarily switch to the parent thread.
2301
2302 2017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
2303
2304 * gdbthread.h: Include "common-gdbthread.h".
2305 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
2306 "if" when validating the ptid.
2307 * remote-utils.c: Include "gdbthread.h".
2308 (prepare_resume_reply): Use "switch_to_thread".
2309 * target.c (done_accessing_memory): Likewise.
2310
2311 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
2312
2313 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
2314 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
2315 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
2316 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
2317 s390x-gs-linux64-ipa.o to ipa_obj.
2318 * linux-s390-low.c (HWCAP_S390_GS): New define.
2319 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
2320 New functions.
2321 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
2322 (s390_arch_setup): Check for guarded-storage support and choose
2323 appropriate tdesc.
2324 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
2325 init_registers_s390x_gs_linux64.
2326 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
2327 enum value.
2328 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
2329 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
2330
2331 2017-09-22 Simon Marchi <simon.marchi@ericsson.com>
2332
2333 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
2334
2335 2017-09-21 Kevin Buettner <kevinb@redhat.com>
2336
2337 * linux-low.h (struct lwp_info): Add new field, thread_handle.
2338 (thread_db_thread_handle): Declare.
2339 * linux-low.c (linux_target_ops): Initialize thread_handle.
2340 * server.c (handle_qxfer_threads_worker): Add support for
2341 "handle" attribute.
2342 * target.h (struct target_ops): Add new function pointer,
2343 thread_handle.
2344 (target_thread_handle): Define.
2345 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
2346 field in lwp.
2347 (thread_db_thread_handle): New function.
2348
2349 2017-09-21 Kevin Buettner <kevinb@redhat.com>
2350
2351 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
2352 * linux-low.h (thread_db_notice_clone): Declare.
2353 * thread-db.c (thread_db_notice_clone): New function.
2354
2355 2017-09-21 Pedro Alves <palves@redhat.com>
2356
2357 * server.c (gdb_read_memory, handle_status, process_serial_event)
2358 (handle_serial_event, handle_target_event): Adjust to
2359 set_desired_thread prototype change.
2360 * target.c (set_desired_thread): Remove 'use_general' parameter
2361 and adjust.
2362 * target.h (set_desired_thread): Remove 'use_general' parameter.
2363
2364 2017-09-20 Tom Tromey <tom@tromey.com>
2365
2366 * target.c (target_terminal::terminal_state): Define.
2367 (target_terminal::init): Rename from target_terminal_init.
2368 (target_terminal::inferior): Rename from
2369 target_terminal_inferior.
2370 (target_terminal::ours): Rename from target_terminal_ours.
2371 (target_terminal::ours_for_output, target_terminal::info): New.
2372
2373 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
2374
2375 * server.c (accumulate_file_name_length): Remove.
2376 (emit_dll_description): Adjust to std::string change.
2377 (handle_qxfer_libraries): Use std::string to hold document.
2378
2379 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
2380
2381 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
2382 return type of xml_escape_text.
2383 * server.c (emit_dll_description): Likewise.
2384
2385 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
2386
2387 * server.c (captured_main): Accept argument for --selftest.
2388 Update run_tests call.
2389 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
2390 when registering selftests.
2391
2392 2017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2393
2394 * regcache.c (get_thread_regcache): Update code to use "std::vector"
2395 instead of "VEC" for "target_desc.reg_defs".
2396 (regcache_cpy): Likewise.
2397 (registers_to_string): Likewise.
2398 (registers_from_string): Likewise.
2399 (find_regno): Likewise.
2400 (supply_regblock): Likewise.
2401 (regcache_raw_read_unsigned): Likewise.
2402 * tdesc.c (init_target_desc): Likewise.
2403 (tdesc_create_reg): Likewise.
2404 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
2405 (struct target_desc) <reg_defs>: Convert to "std::vector".
2406 (target_desc): Do not initialize "reg_defs".
2407 (~target_desc): Update code to use "std::vector" instead of "VEC"
2408 for "target_desc.reg_defs".
2409 (operator==): Likewise.
2410
2411 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
2412
2413 * inferiors.h (thread_to_gdb_id): Remove.
2414 * inferiors.c (thread_to_gdb_id): Remove.
2415 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
2416 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
2417 lynx_store_registers, lynx_read_memory, lynx_write_memory):
2418 Likewise.
2419 * nto-low.c (nto_fetch_registers, nto_store_registers,
2420 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
2421
2422 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
2423
2424 * inferiors.h (gdb_id_to_thread_id): Remove.
2425 * inferiors.c (gdb_id_to_thread_id): Remove.
2426 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
2427 removal. Move pid declaration closer to where it's used.
2428
2429 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
2430
2431 * server.c (handle_detach): New function.
2432 (process_serial_event): Move code out, call handle_detach.
2433
2434 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
2435
2436 * server.c (require_running): Rename to ...
2437 (require_running_or_return): ... this ...
2438 (require_running_or_break): ... and this.
2439 (handle_query, process_serial_event): Adjust.
2440
2441 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
2442
2443 * linux-low.c (linux_set_resume_request): Remove unused
2444 variables.
2445
2446 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
2447
2448 * server.c (first_thread_of): Remove.
2449 (process_serial_event): Replace usage of first_thread_of with
2450 find_any_thread_of_pid.
2451 * tracepoint.c (same_process_p): Remove.
2452 (gdb_agent_about_to_close): Replace usage of same_process_p with
2453 find_any_thread_of_pid.
2454 * linux-x86-low.c (same_process_callback): Remove.
2455 (x86_arch_setup_process_callback): Replace usage of
2456 same_process_callback with find_any_thread_of_pid.
2457 * thread-db.c (any_thread_of): Remove.
2458 (switch_to_process): Replace usage of any_thread_of with
2459 find_any_thread_of_pid.
2460 * inferiors.c (thread_pid_matches_callback): Remove.
2461 (find_thread_process): Adjust to use find_any_thread_of_pid.
2462
2463 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
2464
2465 * regcache.c (get_thread_regcache): Guard calls to "memset"
2466 with "!VEC_empty".
2467
2468 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
2469
2470 * linux-low.c (handle_extended_wait): Use
2471 "allocate_target_description" instead of "XNEW".
2472 * linux-x86-low.c (initialize_low_arch): Likewise.
2473
2474 2017-09-05 Yao Qi <yao.qi@linaro.org>
2475
2476 * configure.srv (srv_i386_regobj): Remove.
2477 (srv_amd64_regobj): Remove.
2478 (srv_regobj): Set it to "" for x86 non-linux targets.
2479 * linux-x86-tdesc.c (i386_linux_read_description):
2480 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
2481 (init_registers_i386): Remove the declaration.
2482 (tdesc_i386): Remove the declaration.
2483 (lynx_i386_arch_setup): Call i386_create_target_description.
2484 * nto-x86-low.c: Likewise.
2485 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
2486 [!__x86_64__]: include arch/i386.h.
2487 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
2488
2489 2017-09-05 Yao Qi <yao.qi@linaro.org>
2490
2491 * configure.srv (srv_amd64_linux_xmlfiles): Remove
2492 i386/amd64-XXX-linux from it.
2493
2494 2017-09-05 Yao Qi <yao.qi@linaro.org>
2495
2496 * configure.srv: Empty srv_amd64_linux_regobj if $development is
2497 false.
2498 (ipa_amd64_linux_regobj): Remove.
2499 (ipa_x32_linux_regobj): Remove.
2500
2501 2017-09-05 Yao Qi <yao.qi@linaro.org>
2502
2503 * Makefile.in (arch-amd64.o): New rule.
2504 * configure.srv: Append arch-amd64.o.
2505 * linux-amd64-ipa.c: Include common/x86-xstate.h.
2506 (get_ipa_tdesc): Call amd64_linux_read_description.
2507 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
2508 and init_registers_amd64_XXX.
2509 * linux-x86-low.c (x86_linux_read_description): Call
2510 amd64_linux_read_description.
2511 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
2512 (initialize_low_arch): Don't call init_registers_x32_XXX and
2513 init_registers_amd64_XXX.
2514 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
2515 and tdesc_amd64_XXX.
2516 [__x86_64__] (amd64_tdesc_test): New function.
2517 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
2518 and init_registers_amd64_XXX.
2519 * linux-x86-tdesc.c: Include arch/amd64.h.
2520 (xcr0_to_tdesc_idx): New function.
2521 (i386_linux_read_description): New function.
2522 (amd64_get_ipa_tdesc_idx): New function.
2523 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
2524 (amd64_get_ipa_tdesc): Declare.
2525
2526 2017-09-05 Yao Qi <yao.qi@linaro.org>
2527
2528 * configure.srv (srv_i386_linux_xmlfiles): Remove
2529 i386/i386-XXX-linux.xml from it.
2530
2531 2017-09-05 Yao Qi <yao.qi@linaro.org>
2532
2533 * configure.srv: Set srv_i386_linux_regobj empty if $development
2534 is false.
2535 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
2536 initialize_low_tdesc.
2537 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
2538 with #if initialize_low_tdesc.
2539 * linux-x86-tdesc-selftest.c: New file.
2540 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
2541
2542 2017-09-05 Yao Qi <yao.qi@linaro.org>
2543
2544 * Makefile.in (arch-i386.o): New rule.
2545 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
2546 (x86_64-*-linux*): Likewise.
2547 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
2548 include arch/i386.h.
2549 (i386_linux_read_description): Remove code and call
2550 i386_create_target_description.
2551 * tdesc.c (allocate_target_description): New function.
2552 * tdesc.h (set_tdesc_architecture): Remove declaration.
2553 (set_tdesc_osabi): Likewise.
2554
2555 2017-09-05 Yao Qi <yao.qi@linaro.org>
2556
2557 * linux-x86-tdesc.c: Don't include <inttypes.h>.
2558 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
2559 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
2560 .xmltarget.
2561 * server.c (get_features_xml): Call tdesc_get_features_xml.
2562 * tdesc.c (set_tdesc_architecture): New function.
2563 (set_tdesc_osabi): New function.
2564 (tdesc_get_features_xml): New function.
2565 (tdesc_create_feature): Add an argument.
2566 * tdesc.h (struct target_desc) <features>: New field.
2567 <arch, osabi>: New field.
2568 (~target_desc): xfree features, arch, and osabi.
2569 (target_desc::oerator==): Don't compare .xmltarget.
2570 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
2571 (set_tdesc_osabi): Likewise.
2572 (tdesc_get_features_xml): Likewise.
2573
2574 2017-09-05 Yao Qi <yao.qi@linaro.org>
2575
2576 * linux-x86-tdesc.c: Include selftest.h.
2577 (i386_tdesc_test): New function.
2578 (initialize_low_tdesc): Call selftests::register_test.
2579 * tdesc.h: Include regdef.h.
2580 (target_desc): Override operator == and !=.
2581
2582 2017-09-05 Yao Qi <yao.qi@linaro.org>
2583
2584 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
2585 (ipa_obj): Likewise.
2586 * linux-i386-ipa.c: Include common/x86-xstate.h
2587 (get_ipa_tdesc): Call i386_linux_read_description.
2588 (initialize_low_tracepoint): Don't call init_registers_XXX
2589 functions, call initialize_low_tdesc instead.
2590 * linux-x86-low.c (x86_linux_read_description): Call
2591 i386_linux_read_description.
2592 (initialize_low_arch): Don't call init_registers_i386_XXX
2593 functions, call initialize_low_tdesc.
2594 * linux-x86-tdesc.c: New file.
2595 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
2596 (i386_get_ipa_tdesc_idx): Declare.
2597 (i386_get_ipa_tdesc): Declare.
2598 (initialize_low_tdesc): Declare.
2599
2600 2017-09-05 Yao Qi <yao.qi@linaro.org>
2601
2602 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
2603 instead of 0.
2604
2605 2017-09-05 Yao Qi <yao.qi@linaro.org>
2606
2607 * Makefile.in (IPA_OBJS): Add vec-ipa.o
2608 * regcache.c (get_thread_regcache): Use VEC_length.
2609 (init_register_cache): Likewise.
2610 (regcache_cpy): Likewise.
2611 (registers_to_string): Iterate reg_defs via VEC_iterate.
2612 (find_regno): Likewise.
2613 (find_register_by_number): Use VEC_index.
2614 (register_size): Call find_register_by_number.
2615 (register_data): Call find_register_by_number.
2616 (supply_regblock): Use VEC_length.
2617 (regcache_raw_read_unsigned): Likewise.
2618 * tdesc.c (init_target_desc): Iterate reg_defs via
2619 VEC_iterate.
2620 (default_description): Update initializer.
2621 (copy_target_description): Don't update field num_registers.
2622 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
2623 <num_registers>: Remove.
2624
2625 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
2626
2627 * Makefile.in (.SECONDARY): Define target.
2628
2629 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
2630
2631 * linux-low.c (linux_wait_1): Adjust.
2632 * server.c (queue_stop_reply_callback): Adjust.
2633
2634 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
2635
2636 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
2637 QEnvironmentUnset and QEnvironmentReset packets.
2638 (handle_query): Inform remote that QEnvironmentHexEncoded,
2639 QEnvironmentUnset and QEnvironmentReset are supported.
2640
2641 2017-08-25 Simon Marchi <simon.marchi@ericsson.com>
2642
2643 * inferiors.h (inferior_target_data): Rename to ...
2644 (thread_target_data): ... this.
2645 (inferior_regcache_data): Rename to ...
2646 (thread_regcache_data): ... this.
2647 (set_inferior_regcache_data): Rename to ...
2648 (set_thread_regcache_data): ... this.
2649 * inferiors.c (inferior_target_data): Rename to ...
2650 (thread_target_data): ... this.
2651 (inferior_regcache_data): Rename to ...
2652 (thread_regcache_data): ... this.
2653 (set_inferior_regcache_data): Rename to ...
2654 (set_thread_regcache_data): ... this.
2655 (free_one_thread): Update.
2656 * linux-low.h (get_thread_lwp): Update.
2657 * regcache.c (get_thread_regcache): Update.
2658 (regcache_invalidate_thread): Update.
2659 (free_register_cache_thread): Update.
2660 * win32-i386-low.c (update_debug_registers_callback): Update.
2661 (win32_get_current_dr): Update.
2662 * win32-low.c (thread_rec): Update.
2663 (delete_thread_info): Update.
2664 (continue_one_thread): Update.
2665 (suspend_one_thread): Update.
2666
2667 2017-08-24 Simon Marchi <simon.marchi@ericsson.com>
2668
2669 * inferiors.c (set_inferior_target_data): Remove.
2670 * inferiors.h (set_inferior_target_data): Remove.
2671
2672 2017-08-18 Yao Qi <yao.qi@linaro.org>
2673
2674 * Makefile.in (OBS): Add selftest.o.
2675 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
2676 * configure, config.in: Re-generated.
2677 * server.c: Include common/sefltest.h.
2678 (captured_main): Handle option --selftest.
2679
2680 2017-08-09 Yao Qi <yao.qi@linaro.org>
2681
2682 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
2683 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
2684 i386-avx-mpx.o and i386-mmx.o.
2685 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
2686 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
2687 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
2688 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
2689 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
2690 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
2691 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
2692 i386/amd64-avx-mpx.xml.
2693
2694 2017-08-09 Yao Qi <yao.qi@linaro.org>
2695
2696 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
2697 and x32-avx-avx512.o.
2698 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
2699 i386/x32-avx-avx512.xml.
2700
2701 2017-07-26 Simon Marchi <simon.marchi@ericsson.com>
2702
2703 * tracepoint.h (enum class fast_tpoint_collect_result): New
2704 enumeration.
2705 (fast_tracepoint_collecting): Change return type to
2706 fast_tpoint_collect_result.
2707 * tracepoint.c (fast_tracepoint_collecting): Likewise.
2708 * linux-low.h: Include tracepoint.h.
2709 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
2710 fast_tpoint_collect_result.
2711 * linux-low.c (handle_tracepoints): Adjust.
2712 (linux_fast_tracepoint_collecting): Change return type to
2713 fast_tpoint_collect_result.
2714 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
2715 linux_wait_1, stuck_in_jump_pad_callback,
2716 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
2717 proceed_one_lwp): Adjust to type change.
2718
2719 2017-07-10 Yao Qi <yao.qi@linaro.org>
2720
2721 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
2722
2723 2017-06-29 Yao Qi <yao.qi@linaro.org>
2724
2725 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
2726 Remove.
2727 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
2728
2729 2017-06-20 Simon Marchi <simon.marchi@ericsson.com>
2730
2731 * Makefile.in (IPA_OBJS): Sort and format one item per line.
2732
2733 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
2734
2735 * linux-low.c (linux_create_inferior): Adjust code to access the
2736 environment information via 'gdb_environ' class.
2737 * lynx-low.c (lynx_create_inferior): Likewise.
2738 * server.c (our_environ): Make it an instance of 'gdb_environ'.
2739 (get_environ): Return a pointer to 'our_environ'.
2740 (captured_main): Initialize 'our_environ'.
2741 * server.h (get_environ): Adjust prototype.
2742 * spu-low.c (spu_create_inferior): Adjust code to access the
2743 environment information via 'gdb_environ' class.
2744
2745 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
2746
2747 * linux-low.c (linux_read_memory, linux_write_memory): Remove
2748 usage of "register" keyword.
2749
2750 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
2751
2752 * configure: Re-generate.
2753
2754 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
2755
2756 * configure: Re-generate.
2757
2758 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
2759
2760 * Makefile.in (COMPILE.pre): Add "-x c++".
2761
2762 2017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
2763
2764 * fork-child.c: Conditionally include <signal.h>.
2765
2766 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
2767
2768 * server.c (handle_general_set): Handle new packet
2769 "QStartupWithShell".
2770 (handle_query): Add "QStartupWithShell" to the list of supported
2771 packets.
2772 (gdbserver_usage): Add help text explaining the
2773 new "--startup-with-shell" and "--no-startup-with-shell" CLI
2774 options.
2775 (captured_main): Recognize and act upon the presence of the new
2776 CLI options.
2777
2778 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
2779 Pedro Alves <palves@redhat.com>
2780
2781 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
2782 * configure: Regenerate.
2783 * configure.srv (srv_linux_obj): Add "fork-child.o" and
2784 "fork-inferior.o".
2785 (i[34567]86-*-lynxos*): Likewise.
2786 (spu*-*-*): Likewise.
2787 * fork-child.c: New file.
2788 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
2789 and "environ.h".
2790 (linux_ptrace_fun): New function.
2791 (linux_create_inferior): Adjust function prototype to reflect
2792 change on "target.h". Adjust function code to use
2793 "fork_inferior".
2794 (linux_request_interrupt): Delete "signal_pid".
2795 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
2796 (lynx_ptrace_fun): New function.
2797 (lynx_create_inferior): Adjust function prototype to reflect
2798 change on "target.h". Adjust function code to use
2799 "fork_inferior".
2800 * nto-low.c (nto_create_inferior): Adjust function prototype and
2801 code to reflect change on "target.h". Update comments.
2802 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
2803 "common-terminal.h" and "environ.h".
2804 (terminal_fd): Moved to fork-child.c.
2805 (old_foreground_pgrp): Likewise.
2806 (restore_old_foreground_pgrp): Likewise.
2807 (last_status): Make it global.
2808 (last_ptid): Likewise.
2809 (our_environ): New variable.
2810 (startup_with_shell): Likewise.
2811 (program_name): Likewise.
2812 (program_argv): Rename to...
2813 (program_args): ...this.
2814 (wrapper_argv): New variable.
2815 (start_inferior): Delete function.
2816 (get_exec_wrapper): New function.
2817 (get_exec_file): Likewise.
2818 (get_environ): Likewise.
2819 (prefork_hook): Likewise.
2820 (post_fork_inferior): Likewise.
2821 (postfork_hook): Likewise.
2822 (postfork_child_hook): Likewise.
2823 (handle_v_run): Update code to deal with arguments coming from the
2824 remote host. Update calls from "start_inferior" to
2825 "create_inferior".
2826 (captured_main): Likewise. Initialize environment variable. Call
2827 "have_job_control".
2828 * server.h (post_fork_inferior): New prototype.
2829 (get_environ): Likewise.
2830 (last_status): Declare.
2831 (last_ptid): Likewise.
2832 (signal_pid): Likewise.
2833 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
2834 (spu_ptrace_fun): New function.
2835 (spu_create_inferior): Adjust function prototype to reflect change
2836 on "target.h". Adjust function code to use "fork_inferior".
2837 * target.c (target_terminal_init): New function.
2838 (target_terminal_inferior): Likewise.
2839 (target_terminal_ours): Likewise.
2840 * target.h: Include <vector>.
2841 (struct target_ops) <create_inferior>: Update prototype.
2842 (create_inferior): Update macro.
2843 * utils.c (gdb_flush_out_err): New function.
2844 * win32-low.c (win32_create_inferior): Adjust function prototype
2845 and code to reflect change on "target.h".
2846
2847 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
2848
2849 * inferiors.c (switch_to_thread): New function.
2850
2851 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
2852
2853 * Makefile.in (SFILE): Add "common/job-control.c".
2854 (OBS): Add "job-control.o".
2855
2856 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
2857
2858 * Makefile: Remove "@host_makefile_frag@".
2859
2860 2017-05-05 Pedro Alves <palves@redhat.com>
2861
2862 * configure: Regenerate.
2863
2864 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
2865
2866 * configure: Regenerate.
2867
2868 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
2869
2870 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
2871 software_single_step change of return type to
2872 std::vector<CORE_ADDR>.
2873 * linux-low.c (install_software_single_step_breakpoints):
2874 Likewise.
2875 * linux-low.h (install_software_single_step_breakpoints):
2876 Likewise.
2877
2878 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
2879
2880 * remote-utils.c: Include "gdb_termios.h" instead of
2881 "terminal.h".
2882 * terminal.h: Delete file.
2883
2884 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
2885
2886 * server.c: Include <vector>.
2887 <program_argv, wrapper_argv>: Convert to std::vector.
2888 (start_inferior): Rewrite function to use C++.
2889 (handle_v_run): Likewise. Update code that calculates the argv
2890 based on the vRun packet; use C++.
2891 (captured_main): Likewise.
2892
2893 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
2894
2895 * server.c (handle_v_cont): Initialize thread_resume::thread
2896 with null_ptid.
2897
2898 2017-04-05 Pedro Alves <palves@redhat.com>
2899
2900 * configure: Regenerate.
2901
2902 2017-04-05 Pedro Alves <palves@redhat.com>
2903
2904 * gdbreplay.c (sync_error): Constify.
2905 * linux-x86-low.c (push_opcode): Constify.
2906
2907 2017-04-05 Pedro Alves <palves@redhat.com>
2908
2909 * win32-low.c (get_child_debug_event)
2910 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
2911 Report TARGET_WAITKIND_SPURIOUS instead.
2912
2913 2017-04-05 Pedro Alves <palves@redhat.com>
2914
2915 * remote-utils.c (remote_prepare, remote_open): Constify.
2916 * remote-utils.h (remote_prepare, remote_open): Constify.
2917 * server.c (captured_main): Constify 'port' handling.
2918
2919 2017-04-04 Simon Marchi <simon.marchi@ericsson.com>
2920
2921 * Makefile.in (clean): Clear .deps.
2922
2923 2017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
2924
2925 * .gitignore: Remove generated files, replace with wildcard.
2926 * (clean): Replace removal of generated files with wildcard.
2927 (version.c): Replace with...
2928 (version-generated.c): ...this.
2929 (xml-builtin.c): Replace with...
2930 (xml-builtin-generated.c): ...this.
2931 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
2932 (%.c: *regformats*): Replace with...
2933 (%-generated.c: *regformats*): ...this.
2934
2935 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
2936
2937 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
2938 (xtensa_fill_gregset): Call collect_register_by_name for
2939 threadptr register.
2940 (xtensa_store_gregset): Call supply_register_by_name for
2941 threadptr register.
2942
2943 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
2944
2945 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
2946 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
2947 (xtensa_store_gregset): Call supply_register for all registers in
2948 a0_regnum..a0_regnum + C0_NREGS range.
2949
2950 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
2951
2952 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
2953 (ax-ipa.o: ax.c): Remove.
2954 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
2955 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
2956 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
2957 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
2958 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
2959
2960 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
2961
2962 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
2963 (print-utils-ipa.o: ../common/print-utils.c): Remove.
2964 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
2965 (errors-ipa.o: ../common/errors.c): Remove.
2966 (format-ipa.o: ../common/format.c): Remove.
2967 (common-utils-ipa.o: ../common/common-utils.c): Remove.
2968
2969 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
2970
2971 * Makefile.in (%-ipa.o: %.c): New rule.
2972 (tracepoint-ipa.o: tracepoint.c): Remove.
2973 (utils-ipa.o: utils.c): Remove.
2974 (remote-utils-ipa.o: remote-utils.c): Remove.
2975 (regcache-ipa.o: regcache.c): Remove.
2976 (i386-linux-ipa.o: i386-linux.c): Remove.
2977 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
2978 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
2979 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
2980 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
2981 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
2982 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
2983 (amd64-linux-ipa.o: amd64-linux.c): Remove.
2984 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
2985 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
2986 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
2987 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
2988 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
2989 (aarch64-ipa.o: aarch64.c): Remove.
2990 (s390-linux32-ipa.o: s390-linux32.c): Remove.
2991 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
2992 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
2993 (s390-linux64-ipa.o: s390-linux64.c): Remove.
2994 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
2995 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
2996 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
2997 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
2998 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
2999 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
3000 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
3001 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
3002 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
3003 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
3004 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
3005 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
3006 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
3007 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
3008 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
3009 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
3010 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
3011 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
3012 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
3013 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
3014 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
3015 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
3016 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
3017 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
3018 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
3019 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
3020 (tdesc-ipa.o: tdesc.c): Remove.
3021 (x32-linux-ipa.o: x32-linux.c): Remove.
3022 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
3023 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
3024
3025 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
3026
3027 * Makefile.in (%.o: ../arch/%.c): New rule.
3028 (arm.o: ../arch/arm.c): Remove.
3029 (arm-linux.o: ../arch/arm-linux.c): Remove.
3030 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
3031 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
3032
3033 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
3034
3035 * Makefile.in (%.o: ../nat/%.c): New rule.
3036 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
3037 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
3038 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
3039 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
3040 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
3041 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
3042 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
3043 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
3044 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
3045 (linux-personality.o: ../nat/linux-personality.c): Remove.
3046 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
3047 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
3048 (x86-linux.o: ../nat/x86-linux.c): Remove.
3049 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
3050 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
3051
3052 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
3053
3054 * Makefile.in (%.o: ../common/%.c): New rule.
3055 (signals.o: ../common/signals.c): Remove.
3056 (print-utils.o: ../common/print-utils.c): Remove.
3057 (rsp-low.o: ../common/rsp-low.c): Remove.
3058 (common-utils.o: ../common/common-utils.c): Remove.
3059 (posix-strerror.o: ../common/posix-strerror.c): Remove.
3060 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
3061 (vec.o: ../common/vec.c): Remove.
3062 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
3063 (xml-utils.o: ../common/xml-utils.c): Remove.
3064 (ptid.o: ../common/ptid.c): Remove.
3065 (buffer.o: ../common/buffer.c): Remove.
3066 (format.o: ../common/format.c): Remove.
3067 (filestuff.o: ../common/filestuff.c): Remove.
3068 (agent.o: ../common/agent.c): Remove.
3069 (errors.o: ../common/errors.c): Remove.
3070 (environ.o: ../common/environ.c): Remove.
3071 (common-debug.o: ../common/common-debug.c): Remove.
3072 (cleanups.o: ../common/cleanups.c): Remove.
3073 (common-exceptions.o: ../common/common-exceptions.c): Remove.
3074 (fileio.o: ../common/fileio.c): Remove.
3075 (common-regcache.o: ../common/common-regcache.c): Remove.
3076 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
3077 (new-op.o: ../common/new-op.c): Remove.
3078 (btrace-common.o: ../common/btrace-common.c): Remove.
3079
3080 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
3081
3082 * Makefile.in (%.o: ../target/%.c): New rule.
3083 (waitstatus.o: ../target/waitstatus.c): Remove.
3084
3085 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
3086
3087 * Makefile.in
3088 (%.c: ../regformats/%.dat,
3089 (%.c: ../regformats/arm/%.dat,
3090 (%.c: ../regformats/i386/%.dat,
3091 (%.c: ../regformats/rs6000/%.dat): New rules.
3092 (aarch64.c): Remove.
3093 (reg-arm.c): Remove.
3094 (arm-with-iwmmxt.c): Remove.
3095 (arm-with-vfpv2.c): Remove.
3096 (arm-with-vfpv3.c): Remove.
3097 (arm-with-neon.c): Remove.
3098 (reg-bfin.c): Remove.
3099 (reg-cris.c): Remove.
3100 (reg-crisv32.c): Remove.
3101 (i386.c): Remove.
3102 (i386-linux.c): Remove.
3103 (i386-avx.c): Remove.
3104 (i386-avx-linux.c): Remove.
3105 (i386-avx-avx512.c): Remove.
3106 (i386-avx-avx512-linux.c): Remove.
3107 (i386-mpx.c): Remove.
3108 (i386-mpx-linux.c): Remove.
3109 (i386-avx-mpx-avx512-pku.c): Remove.
3110 (i386-avx-mpx-avx512-pku-linux.c): Remove.
3111 (i386-avx-mpx.c): Remove.
3112 (i386-avx-mpx-linux.c): Remove.
3113 (i386-mmx.c): Remove.
3114 (i386-mmx-linux.c): Remove.
3115 (reg-ia64.c): Remove.
3116 (reg-m32r.c): Remove.
3117 (reg-m68k.c): Remove.
3118 (reg-cf.c): Remove.
3119 (mips-linux.c): Remove.
3120 (mips-dsp-linux.c): Remove.
3121 (mips64-linux.c): Remove.
3122 (mips64-dsp-linux.c): Remove.
3123 (nios2-linux.c): Remove.
3124 (powerpc-32.c): Remove.
3125 (powerpc-32l.c): Remove.
3126 (powerpc-altivec32l.c): Remove.
3127 (powerpc-cell32l.c): Remove.
3128 (powerpc-vsx32l.c): Remove.
3129 (powerpc-isa205-32l.c): Remove.
3130 (powerpc-isa205-altivec32l.c): Remove.
3131 (powerpc-isa205-vsx32l.c): Remove.
3132 (powerpc-e500l.c): Remove.
3133 (powerpc-64l.c): Remove.
3134 (powerpc-altivec64l.c): Remove.
3135 (powerpc-cell64l.c): Remove.
3136 (powerpc-vsx64l.c): Remove.
3137 (powerpc-isa205-64l.c): Remove.
3138 (powerpc-isa205-altivec64l.c): Remove.
3139 (powerpc-isa205-vsx64l.c): Remove.
3140 (s390-linux32.c): Remove.
3141 (s390-linux32v1.c): Remove.
3142 (s390-linux32v2.c): Remove.
3143 (s390-linux64.c): Remove.
3144 (s390-linux64v1.c): Remove.
3145 (s390-linux64v2.c): Remove.
3146 (s390-te-linux64.c): Remove.
3147 (s390-vx-linux64.c): Remove.
3148 (s390-tevx-linux64.c): Remove.
3149 (s390x-linux64.c): Remove.
3150 (s390x-linux64v1.c): Remove.
3151 (s390x-linux64v2.c): Remove.
3152 (s390x-te-linux64.c): Remove.
3153 (s390x-vx-linux64.c): Remove.
3154 (s390x-tevx-linux64.c): Remove.
3155 (tic6x-c64xp-linux.c): Remove.
3156 (tic6x-c64x-linux.c): Remove.
3157 (tic6x-c62x-linux.c): Remove.
3158 (reg-sh.c): Remove.
3159 (reg-sparc64.c): Remove.
3160 (reg-spu.c): Remove.
3161 (amd64.c): Remove.
3162 (amd64-linux.c): Remove.
3163 (amd64-avx.c): Remove.
3164 (amd64-avx-linux.c): Remove.
3165 (amd64-avx-avx512.c): Remove.
3166 (amd64-avx-avx512-linux.c): Remove.
3167 (amd64-mpx.c): Remove.
3168 (amd64-mpx-linux.c): Remove.
3169 (amd64-avx-mpx-avx512-pku.c): Remove.
3170 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
3171 (amd64-avx-mpx.c): Remove.
3172 (amd64-avx-mpx-linux.c): Remove.
3173 (x32.c): Remove.
3174 (x32-linux.c): Remove.
3175 (x32-avx.c): Remove.
3176 (x32-avx-linux.c): Remove.
3177 (x32-avx-avx512.c): Remove.
3178 (x32-avx-avx512-linux.c): Remove.
3179 (reg-xtensa.c): Remove.
3180 (reg-tilegx.c): Remove.
3181 (reg-tilegx32.c): Remove.
3182
3183 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
3184
3185 * Makefile.in (SFILES): Add "common/environ.c".
3186 (OBJS): Add "common/environ.h".
3187
3188 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
3189
3190 * configure.ac: Check if the fs_base and gs_base members of
3191 `struct user_regs_struct' exist.
3192 * config.in: Regenerated.
3193 * configure: Likewise.
3194
3195 2017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
3196
3197 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
3198 target_read_memory.
3199 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
3200 (get_next_pcs_syscall_next_pc): Likewise.
3201
3202 2016-12-23 Luis Machado <lgustavo@codesourcery.com>
3203
3204 * win32-i386-low.c: Fix incorrect reference to a couple source files.
3205 * nto-x86-low.c: Likewise.
3206
3207 2016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
3208
3209 * Makefile.in: Include disable-implicit-rules.mk.
3210
3211 2016-11-23 Pedro Alves <palves@redhat.com>
3212
3213 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
3214 (debug_vprintf): Use std::chrono::steady_clock instead of
3215 gettimeofday. Use '.' instead of ':'.
3216 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
3217 (get_timestamp): Use std::chrono::steady_clock instead of
3218 gettimeofday.
3219
3220 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
3221
3222 * Makefile.in: Fix whitespace formatting.
3223
3224 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
3225
3226 * Makefile.in (SFILES, OBS): Flatten list and order
3227 alphabetically.
3228
3229 2016-11-23 Pedro Alves <palves@redhat.com>
3230
3231 * event-loop.c (handle_file_event): Use warning.
3232 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
3233 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
3234 Use warning.
3235
3236 2016-11-23 Pedro Alves <palves@redhat.com>
3237
3238 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
3239 output.
3240 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
3241 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
3242 debug_printf and debug_flush for debug output.
3243 * server.c (handle_general_set): Likewise.
3244 * thread-db.c (try_thread_db_load): Use debug_printf for debug
3245 output.
3246
3247 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
3248
3249 * Makefile.in (.c.o): Replace rule with ...
3250 (%.o: %.c): ... this one.
3251
3252 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
3253
3254 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
3255 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
3256 make.
3257 * configure.ac: Remove checks for the make program.
3258 * configure: Re-generate.
3259
3260 2016-10-28 Pedro Alves <palves@redhat.com>
3261
3262 * Makefile.in (CXX_DIALECT): Get from configure.
3263 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
3264 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
3265 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
3266 * config.in: Regenerate.
3267 * configure: Regenerate.
3268
3269 2016-10-27 Yao Qi <yao.qi@linaro.org>
3270
3271 * linux-low.c (linux_supports_range_stepping): Return true if
3272 can_software_single_step return true.
3273
3274 2016-10-27 Yao Qi <yao.qi@linaro.org>
3275
3276 * inferiors.c (find_inferior_in_random): New function.
3277 * inferiors.h (find_inferior_in_random): Declare.
3278 * linux-low.c (linux_wait_for_event_filtered): Call
3279 find_inferior_in_random instead of find_inferior.
3280
3281 2016-10-27 Yao Qi <yao.qi@linaro.org>
3282
3283 * linux-low.c (linux_wait_1): If single-step breakpoints are
3284 inserted, remove them.
3285
3286 2016-10-26 Pedro Alves <palves@redhat.com>
3287
3288 * linux-low.c (handle_extended_wait): Link parent/child fork
3289 threads.
3290 (linux_wait_1): Unlink them.
3291 (linux_set_resume_request): Ignore resume requests for
3292 already-resumed and unhandled fork child threads.
3293 * linux-low.h (struct lwp_info) <fork_relative>: New field.
3294 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
3295 New functions.
3296 (handle_v_requests) <vCont>: Don't call require_running.
3297 * server.h (in_queued_stop_replies): New declaration.
3298
3299 2016-10-24 Yao Qi <yao.qi@linaro.org>
3300
3301 PR server/20733
3302 * linux-aarch64-low.c (append_insns): Cast the return value to
3303 'uint32_t *'.
3304
3305 2016-10-10 Yao Qi <yao.qi@linaro.org>
3306
3307 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
3308
3309 2016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
3310
3311 * target.c (target_supports_multi_process): New function, moved
3312 from...
3313 * target.h (target_supports_multi_process): ... here. Remove
3314 macro.
3315
3316 2016-10-05 Tom Tromey <tom@tromey.com>
3317
3318 PR remote/20655:
3319 * tracepoint.c (handle_tracepoint_bkpts): Check
3320 ipa_error_tracepoint, not ipa_stopping_tracepoint.
3321
3322 2016-10-05 Yao Qi <yao.qi@linaro.org>
3323
3324 * configure.srv: Update the path of arm-*.xml files.
3325
3326 2016-10-05 Terry Guo <terry.guo@arm.com>
3327 Yao Qi <yao.qi@linaro.org>
3328
3329 * Makefile.in: Adjust the path of rules.
3330 * configure.srv: Update the path of xml files.
3331 * regformats/arm-with-iwmmxt.dat: Regenerated.
3332 * regformats/arm-with-neon.dat: Likewise.
3333 * regformats/arm-with-vfpv2.dat: Likewise.
3334 * regformats/arm-with-vfpv3.dat Likewise.
3335
3336 2016-09-30 Yao Qi <yao.qi@linaro.org>
3337
3338 PR gdbserver/20627
3339 * target.c (target_stop_and_wait): Don't call
3340 target_continue_no_signal, use resume_stop instead.
3341
3342 2016-09-26 Yao Qi <yao.qi@linaro.org>
3343
3344 * linux-low.c (linux_wait_1): Call debug_exit.
3345
3346 2016-09-23 Pedro Alves <palves@redhat.com>
3347
3348 * Makefile.in (SFILES): Add common/new-op.c.
3349 (OBS): Add common/new-op.o.
3350 (new-op.o): New rule.
3351
3352 2016-09-21 Simon Marchi <simon.marchi@ericsson.com>
3353
3354 * .gitinore: Ignore more files.
3355
3356 2016-09-21 Yao Qi <yao.qi@linaro.org>
3357
3358 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
3359 23.
3360
3361 2016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
3362
3363 * server.c (start_inferior): Call target_mourn_inferior instead of
3364 mourn_inferior; pass ptid_t argument to it.
3365 (resume): Likewise.
3366 (handle_target_event): Likewise.
3367 * target.c (target_mourn_inferior): New function.
3368 * target.h (mourn_inferior): Delete macro.
3369
3370 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
3371
3372 * linux-low.c (lwp_is_stepping): New function.
3373
3374 2016-09-06 Carl Love <cel@us.ibm.com>
3375
3376 * server.c (start_inferior): Fixed comment, requested comment change
3377 didn't get updated correctly. Removed reference to ptrace () call as
3378 it is only true on Linux systems.
3379
3380 2016-09-06 Carl Love <cel@us.ibm.com>
3381
3382 * server.c (start_inferior): Do not call
3383 function target_post_create_inferior () if the
3384 inferior process has already exited.
3385
3386 2016-09-05 Pedro Alves <palves@redhat.com>
3387
3388 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
3389 (COMPILE.pre, CC_LD): Use CXX directly.
3390 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
3391 * acinclude.m4: Don't include build-with-cxx.m4.
3392 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
3393 * configure: Regenerate.
3394
3395 2016-09-02 Akash Trehan <akash.trehan123@gmail.com>
3396
3397 PR gdb/19495
3398 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
3399 call writing data to own_buf.
3400
3401 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
3402
3403 * target.c (mywait): Call target_wait instead of
3404 the_target->wait.
3405 (target_wait): New function.
3406
3407 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
3408
3409 * server.c (start_inferior): New variable 'ptid'. Replace calls
3410 to the_target->resume by target_continue{,_no_signal}, depending
3411 on the case.
3412 * target.c (target_stop_and_wait): Call target_continue_no_signal
3413 instead of the_target->resume.
3414 (target_continue): New function.
3415
3416 2016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
3417
3418 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
3419
3420 2016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3421
3422 PR server/20491
3423 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
3424 ps_prochandle.
3425 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
3426 * linux-arm-low.c (ps_get_thread_area): Likewise.
3427 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
3428 * linux-m68k-low.c (ps_get_thread_area): Likewise.
3429 * linux-mips-low.c (ps_get_thread_area): Likewise.
3430 * linux-nios2-low.c (ps_get_thread_area): Likewise.
3431 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
3432 * linux-x86-low.c (ps_get_thread_area): Likewise.
3433 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
3434
3435 2016-08-19 Pedro Alves <palves@redhat.com>
3436
3437 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
3438
3439 2016-08-19 Pedro Alves <palves@redhat.com>
3440
3441 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
3442 comment. Use memcpy instead of casting through unsigned long.
3443
3444 2016-08-19 Pedro Alves <palves@redhat.com>
3445
3446 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
3447 allocating around 0x80000000.
3448
3449 2016-08-19 Pedro Alves <palves@redhat.com>
3450
3451 PR gdb/20415
3452 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
3453 (x32-avx512-linux-ipa.o): New rules.
3454 * configure.ac (x86_64-*-linux*): New x32 check.
3455 * configure.srv (ipa_x32_linux_regobj): New.
3456 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
3457 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
3458 descriptions.
3459 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
3460 descriptions.
3461 * configure: Regenerate.
3462
3463 2016-08-09 Pedro Alves <palves@redhat.com>
3464
3465 PR gdb/18653
3466 * Makefile.in (OBS): Add signals-state-save-restore.o.
3467 (signals-state-save-restore.o): New rule.
3468 * config.in: Regenerate.
3469 * configure: Regenerate.
3470 * linux-low.c: Include "signals-state-save-restore.h".
3471 (linux_create_inferior): Call
3472 restore_original_signals_state.
3473 * server.c: Include "dispositions-save-restore.h".
3474 (captured_main): Call save_original_signals_state.
3475
3476 2016-08-05 Pedro Alves <palves@redhat.com>
3477
3478 * configure: Regenerate.
3479
3480 2016-08-04 Yao Qi <yao.qi@linaro.org>
3481
3482 * linux-low.c (regsets_fetch_inferior_registers): Check
3483 errno is ESRCH or not.
3484
3485 2016-08-02 Yao Qi <yao.qi@linaro.org>
3486
3487 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
3488 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
3489 (thread_db_load_search): Update.
3490 (try_thread_db_load_1): Don't look for td_ta_event_addr,
3491 td_ta_set_event and td_ta_event_getmsg.
3492
3493 2016-07-26 Pedro Alves <palves@redhat.com>
3494
3495 PR server/20414
3496 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
3497 of unsigned long for 64-bit registers and use uint32_t instead of
3498 unsigned int for 32-bit registers.
3499
3500 2016-07-26 Pedro Alves <palves@redhat.com>
3501
3502 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
3503 to 'ptrace'.
3504
3505 2016-07-21 Tom Tromey <tom@tromey.com>
3506
3507 * configure: Rebuild.
3508
3509 2016-07-21 Yao Qi <yao.qi@linaro.org>
3510
3511 * mem-break.c (find_gdb_breakpoint): Cast bp to
3512 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
3513
3514 2016-07-21 Yao Qi <yao.qi@linaro.org>
3515
3516 * server.c (handle_v_requests): Support s and S actions
3517 if target_supports_software_single_step return true.
3518
3519 2016-07-21 Yao Qi <yao.qi@linaro.org>
3520
3521 * linux-low.c (resume_stopped_resumed_lwps): If resume request
3522 is resume_step, call maybe_hw_step.
3523 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
3524 and unstop them.
3525 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
3526 breakpoints or not.
3527 (proceed_one_lwp): If resume request is resume_step, install
3528 reinsert breakpoints and call maybe_hw_step.
3529
3530 2016-07-21 Yao Qi <yao.qi@linaro.org>
3531
3532 * linux-low.c (proceed_one_lwp): Declare.
3533 (linux_resume_one_thread): Remove local variable 'step'.
3534 Lift code enqueue signal. Call proceed_one_lwp instead of
3535 linux_resume_one_lwp.
3536
3537 2016-07-21 Yao Qi <yao.qi@linaro.org>
3538
3539 * linux-low.c (linux_resume_one_thread): Call
3540 enqueue_pending_signal.
3541
3542 2016-07-21 Yao Qi <yao.qi@linaro.org>
3543
3544 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
3545 * inferiors.c (do_restore_current_thread_cleanup): New function.
3546 (make_cleanup_restore_current_thread): Likewise.
3547 * linux-low.c (install_software_single_step_breakpoints): Call
3548 make_cleanup_restore_current_thread. Switch current_thread to
3549 thread.
3550
3551 2016-07-21 Yao Qi <yao.qi@linaro.org>
3552
3553 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
3554 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
3555 (clone_one_breakpoint): Likewise.
3556 (delete_reinsert_breakpoints): Change parameter to thread.
3557 Callers updated.
3558 (has_reinsert_breakpoints): Likewise.
3559 (uninsert_reinsert_breakpoints): Likewise.
3560 (reinsert_reinsert_breakpoints): Likewise.
3561 * mem-break.h (set_reinsert_breakpoint): Update declaration.
3562 (delete_reinsert_breakpoints): Likewise.
3563 (reinsert_reinsert_breakpoints): Likewise.
3564 (uninsert_reinsert_breakpoints): Likewise.
3565 (has_reinsert_breakpoints): Likewise.
3566
3567 2016-07-21 Yao Qi <yao.qi@linaro.org>
3568
3569 * inferiors.c (get_thread_process): Make parameter const.
3570 * inferiors.h (get_thread_process): Update declaration.
3571 * mem-break.c (clone_all_breakpoints): Remove all parameters.
3572 Add new parameters child_thread and parent_thread. Callers
3573 updated.
3574 * mem-break.h (clone_all_breakpoints): Update declaration.
3575
3576 2016-07-21 Yao Qi <yao.qi@linaro.org>
3577
3578 * mem-break.c (struct breakpoint) <cond_list>: Remove.
3579 <command_list, handler>: Remove.
3580 (struct gdb_breakpoint): New.
3581 (struct other_breakpoint): New.
3582 (struct reinsert_breakpoint): New.
3583 (is_gdb_breakpoint): New function.
3584 (any_persistent_commands): Update command_list if
3585 is_gdb_breakpoint returns true.
3586 (set_breakpoint): Create breakpoints according to their types.
3587 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
3588 (set_gdb_breakpoint_1): Likewise.
3589 (set_gdb_breakpoint): Likewise.
3590 (clear_breakpoint_conditions): Change parameter type to
3591 'struct gdb_breakpoint *'.
3592 (clear_breakpoint_commands): Likewise.
3593 (clear_breakpoint_conditions_and_commands): Likewise.
3594 (add_condition_to_breakpoint): Likewise.
3595 (add_breakpoint_condition): Likewise.
3596 (add_commands_to_breakpoint): Likewise.
3597 (check_breakpoints): Check other_breakpoint.
3598 (clone_one_breakpoint): Clone breakpopint according to its type.
3599 * mem-break.h (struct gdb_breakpoint): Declare.
3600 (set_gdb_breakpoint): Update declaration.
3601 (clear_breakpoint_conditions_and_commands): Likewise.
3602 (add_breakpoint_condition): Likewise.
3603 (add_breakpoint_commands): Likewise.
3604 * server.c (process_point_options): Change parameter type to
3605 'struct gdb_breakpoint *'.
3606
3607 2016-07-21 Yao Qi <yao.qi@linaro.org>
3608
3609 * mem-break.c (set_breakpoint_at): Rename it to ...
3610 (set_breakpoint_type_at): ... it.
3611 (set_breakpoint_at): Call set_breakpoint_type_at.
3612 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
3613 * mem-break.h (set_breakpoint_at): Update comments.
3614
3615 2016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
3616
3617 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
3618 to buf parameter.
3619 (nios2_store_gregset): Likewise.
3620
3621 2016-07-01 Pedro Alves <palves@redhat.com>
3622 Antoine Tremblay <antoine.tremblay@ericsson.com>
3623
3624 * linux-low.c: Change interface to take the target lwp_info
3625 pointer directly and return void. Handle detaching from a zombie
3626 thread.
3627 (linux_detach_lwp_callback): New function.
3628 (linux_detach): Detach from the leader thread after detaching from
3629 the clone threads.
3630
3631 2016-06-28 Yao Qi <yao.qi@linaro.org>
3632
3633 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
3634 for variable new_offset.
3635 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
3636 (aarch64_ftrace_insn_reloc_cb): Likewise.
3637 (aarch64_ftrace_insn_reloc_tb): Likewise.
3638 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
3639 PRIx64 instead of PRIx32.
3640
3641 2016-06-28 Yao Qi <yao.qi@linaro.org>
3642
3643 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
3644 (the_low_target): Install arm_get_syscall_trapinfo.
3645
3646 2016-06-28 Yao Qi <yao.qi@linaro.org>
3647
3648 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
3649 function.
3650 (the_low_target): Install aarch64_get_syscall_trapinfo.
3651
3652 2016-06-28 Yao Qi <yao.qi@linaro.org>
3653
3654 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
3655 Callers updated.
3656 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
3657 Remove parameter sysno.
3658 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
3659 sysret.
3660
3661 2016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3662
3663 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
3664 (s390_emit_ne_goto): Likewise.
3665 (s390_emit_lt_goto): Likewise.
3666 (s390_emit_le_goto): Likewise.
3667 (s390_emit_gt_goto): Likewise.
3668 (s390_emit_ge_goto): Likewise.
3669 (s390x_emit_eq_goto): Likewise.
3670 (s390x_emit_ne_goto): Likewise.
3671 (s390x_emit_lt_goto): Likewise.
3672 (s390x_emit_le_goto): Likewise.
3673 (s390x_emit_gt_goto): Likewise.
3674 (s390x_emit_ge_goto): Likewise.
3675 (s390_emit_ops_impl): Mark variable static.
3676 (s390x_emit_ops): Likewise.
3677
3678 2016-06-17 Yao Qi <yao.qi@linaro.org>
3679
3680 * linux-low.c (handle_extended_wait): Call
3681 uninsert_reinsert_breakpoints for the parent process. Remove
3682 reinsert breakpoints from the child process. Reinsert them to
3683 the parent process when vfork is done.
3684 * mem-break.c (uninsert_reinsert_breakpoints): New function.
3685 (reinsert_reinsert_breakpoints): New function.
3686 * mem-break.h (uninsert_reinsert_breakpoints): Declare
3687 (reinsert_reinsert_breakpoints): Declare.
3688
3689 2016-06-17 Yao Qi <yao.qi@linaro.org>
3690
3691 * linux-low.c (handle_extended_wait): If the parent is doing
3692 step-over, remove the reinsert breakpoints from the forked child.
3693
3694 2016-06-17 Yao Qi <yao.qi@linaro.org>
3695
3696 * linux-low.c (unsuspend_all_lwps): Declare.
3697 (linux_low_filter_event): If thread exited, call finish_step_over.
3698 If step-over is finished, unsuspend other threads.
3699
3700 2016-06-17 Yao Qi <yao.qi@linaro.org>
3701
3702 * linux-low.c (linux_resume_one_lwp_throw): Assert
3703 has_reinsert_breakpoints returns false.
3704 * mem-break.c (delete_disabled_breakpoints): Assert
3705 bp type isn't reinsert_breakpoint.
3706
3707 2016-06-17 Yao Qi <yao.qi@linaro.org>
3708
3709 * linux-low.c (maybe_hw_step): New function.
3710 (linux_resume_one_lwp_throw): Call maybe_hw_step.
3711 (finish_step_over): Switch current_thread to lwp temporarily,
3712 and assert has_reinsert_breakpoints returns true.
3713 (proceed_one_lwp): Call maybe_hw_step.
3714 * mem-break.c (has_reinsert_breakpoints): New function.
3715 * mem-break.h (has_reinsert_breakpoints): Declare.
3716
3717 2016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
3718
3719 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
3720
3721 2016-05-17 Yao Qi <yao.qi@linaro.org>
3722
3723 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
3724 instead of find_inferior.
3725
3726 2016-05-05 Yao Qi <yao.qi@linaro.org>
3727
3728 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
3729 Initialize res to zero.
3730
3731 2016-05-05 Yao Qi <yao.qi@linaro.org>
3732
3733 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
3734 to uint32_t.
3735
3736 2016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3737
3738 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
3739 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
3740 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
3741
3742 2016-04-28 Par Olsson <par.olsson@windriver.com>
3743 Simon Marchi <simon.marchi@ericsson.com>
3744
3745 * tracepoint.c (write_inferior_int8): New function.
3746 (cmd_qtenable_disable): Write enable flag using
3747 write_inferior_int8.
3748
3749 2016-04-25 Yao Qi <yao.qi@linaro.org>
3750
3751 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
3752 (need_step_over_p): Return zero if the LWP has pending signals
3753 can be delivered on software single step target.
3754
3755 2016-04-25 Yao Qi <yao.qi@linaro.org>
3756
3757 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
3758 return instead of error.
3759
3760 2016-04-22 Yao Qi <yao.qi@linaro.org>
3761
3762 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
3763 to 23.
3764
3765 2016-04-22 Yao Qi <yao.qi@linaro.org>
3766
3767 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
3768 signal when stepping over breakpoint with software single
3769 step.
3770
3771 2016-04-21 Pedro Alves <palves@redhat.com>
3772
3773 * linux-s390-low.c (s390_collect_ptrace_register)
3774 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
3775 add casts.
3776 (s390_check_regset): Use void * instead of gdb_byte *.
3777
3778 2016-04-20 Pedro Alves <palves@redhat.com>
3779
3780 * configure: Renegerate.
3781
3782 2016-04-20 Yao Qi <yao.qi@linaro.org>
3783
3784 * linux-aarch32-low.c: Include "arch/arm-linux.h".
3785 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
3786 number 16.
3787 (arm_store_gregset): Likewise.
3788
3789 2016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
3790
3791 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
3792 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
3793 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
3794 (amd64-avx-mpx-linux.c): New rules.
3795 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
3796 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
3797 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
3798 (srv_amd64_regobj): Add amd64-avx-mpx.o.
3799 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
3800 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
3801 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
3802 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
3803 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
3804 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
3805 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
3806 * linux-x86-low.c (x86_linux_read_description): Add case for
3807 X86_XSTATE_AVX_MPX_MASK.
3808 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
3809 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
3810 init_registers_i386_avx_mpx_linux.
3811 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
3812 (initialize_low_tracepoint): Call
3813 init_registers_i386_avx_mpx_linux.
3814 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
3815 (initialize_low_tracepoint): Call
3816 init_registers_amd64_avx_mpx_linux.
3817 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
3818 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
3819 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
3820 declarations.
3821
3822 2016-04-18 Pedro Alves <palves@redhat.com>
3823
3824 * configure: Regenerate.
3825
3826 2016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
3827
3828 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
3829 (aarch64_emit_sub): Likewise.
3830
3831 2016-04-12 Pedro Alves <palves@redhat.com>
3832
3833 * utils.c (prepare_to_throw_exception): Delete.
3834
3835 2016-04-05 Simon Marchi <simon.marchi@ericsson.com>
3836
3837 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
3838
3839 2016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
3840
3841 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
3842
3843 2016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
3844
3845 * linux-aarch64-ipa.c: Add <elf.h> include.
3846 * linux-ppc-ipa.c: Add <elf.h> include.
3847 * linux-s390-ipa.c: Add <elf.h> include.
3848
3849 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
3850
3851 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
3852 (get_raw_reg_ptr): Likewise.
3853 (get_trace_state_variable_value_ptr): Likewise.
3854 (set_trace_state_variable_value_ptr): Likewise.
3855 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
3856 char *.
3857
3858 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
3859 Marcin Kościelnicki <koriakin@0x04.net>
3860
3861 PR/17221
3862 * linux-ppc-low.c (emit_insns): New function.
3863 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
3864 (ppc_emit_prologue): New function.
3865 (ppc_emit_epilogue): New function.
3866 (ppc_emit_add): New function.
3867 (ppc_emit_sub): New function.
3868 (ppc_emit_mul): New function.
3869 (ppc_emit_lsh): New function.
3870 (ppc_emit_rsh_signed): New function.
3871 (ppc_emit_rsh_unsigned): New function.
3872 (ppc_emit_ext): New function.
3873 (ppc_emit_zero_ext): New function.
3874 (ppc_emit_log_not): New function.
3875 (ppc_emit_bit_and): New function.
3876 (ppc_emit_bit_or): New function.
3877 (ppc_emit_bit_xor): New function.
3878 (ppc_emit_bit_not): New function.
3879 (ppc_emit_equal): New function.
3880 (ppc_emit_less_signed): New function.
3881 (ppc_emit_less_unsigned): New function.
3882 (ppc_emit_ref): New function.
3883 (ppc_emit_const): New function.
3884 (ppc_emit_reg): New function.
3885 (ppc_emit_pop): New function.
3886 (ppc_emit_stack_flush): New function.
3887 (ppc_emit_swap): New function.
3888 (ppc_emit_stack_adjust): New function.
3889 (ppc_emit_call): New function.
3890 (ppc_emit_int_call_1): New function.
3891 (ppc_emit_void_call_2): New function.
3892 (ppc_emit_if_goto): New function.
3893 (ppc_emit_goto): New function.
3894 (ppc_emit_eq_goto): New function.
3895 (ppc_emit_ne_goto): New function.
3896 (ppc_emit_lt_goto): New function.
3897 (ppc_emit_le_goto): New function.
3898 (ppc_emit_gt_goto): New function.
3899 (ppc_emit_ge_goto): New function.
3900 (ppc_write_goto_address): New function.
3901 (ppc_emit_ops_impl): New static variable.
3902 (ppc64v1_emit_prologue): New function.
3903 (ppc64v2_emit_prologue): New function.
3904 (ppc64_emit_epilogue): New function.
3905 (ppc64_emit_add): New function.
3906 (ppc64_emit_sub): New function.
3907 (ppc64_emit_mul): New function.
3908 (ppc64_emit_lsh): New function.
3909 (ppc64_emit_rsh_signed): New function.
3910 (ppc64_emit_rsh_unsigned): New function.
3911 (ppc64_emit_ext): New function.
3912 (ppc64_emit_zero_ext): New function.
3913 (ppc64_emit_log_not): New function.
3914 (ppc64_emit_bit_and): New function.
3915 (ppc64_emit_bit_or): New function.
3916 (ppc64_emit_bit_xor): New function.
3917 (ppc64_emit_bit_not): New function.
3918 (ppc64_emit_equal): New function.
3919 (ppc64_emit_less_signed): New function.
3920 (ppc64_emit_less_unsigned): New function.
3921 (ppc64_emit_ref): New function.
3922 (ppc64_emit_const): New function.
3923 (ppc64v1_emit_reg): New function.
3924 (ppc64v2_emit_reg): New function.
3925 (ppc64_emit_pop): New function.
3926 (ppc64_emit_stack_flush): New function.
3927 (ppc64_emit_swap): New function.
3928 (ppc64v1_emit_call): New function.
3929 (ppc64v2_emit_call): New function.
3930 (ppc64v1_emit_int_call_1): New function.
3931 (ppc64v2_emit_int_call_1): New function.
3932 (ppc64v1_emit_void_call_2): New function.
3933 (ppc64v2_emit_void_call_2): New function.
3934 (ppc64_emit_if_goto): New function.
3935 (ppc64_emit_eq_goto): New function.
3936 (ppc64_emit_ne_goto): New function.
3937 (ppc64_emit_lt_goto): New function.
3938 (ppc64_emit_le_goto): New function.
3939 (ppc64_emit_gt_goto): New function.
3940 (ppc64_emit_ge_goto): New function.
3941 (ppc64v1_emit_ops_impl): New static variable.
3942 (ppc64v2_emit_ops_impl): New static variable.
3943 (ppc_emit_ops): New function.
3944 (linux_low_target): Wire in ppc_emit_ops.
3945
3946 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
3947 Marcin Kościelnicki <koriakin@0x04.net>
3948
3949 PR/17221
3950 * Makefile.in: Add powerpc-*-ipa.o
3951 * configure.srv: Add ipa_obj for powerpc*-linux.
3952 * linux-ppc-ipa.c: New file.
3953 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
3954 includes.
3955 (PPC_FIELD): New macro.
3956 (PPC_SEXT): New macro.
3957 (PPC_OP6): New macro.
3958 (PPC_BO): New macro.
3959 (PPC_LI): New macro.
3960 (PPC_BD): New macro.
3961 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
3962 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
3963 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
3964 (ppc_get_thread_area): New function.
3965 (is_elfv2_inferior): New function.
3966 (gen_ds_form): New function.
3967 (GEN_STD): New macro.
3968 (GEN_STDU): New macro.
3969 (GEN_LD): New macro.
3970 (GEN_LDU): New macro.
3971 (gen_d_form): New function.
3972 (GEN_ADDI): New macro.
3973 (GEN_ADDIS): New macro.
3974 (GEN_LI): New macro.
3975 (GEN_LIS): New macro.
3976 (GEN_ORI): New macro.
3977 (GEN_ORIS): New macro.
3978 (GEN_LWZ): New macro.
3979 (GEN_STW): New macro.
3980 (GEN_STWU): New macro.
3981 (gen_xfx_form): New function.
3982 (GEN_MFSPR): New macro.
3983 (GEN_MTSPR): New macro.
3984 (GEN_MFCR): New macro.
3985 (GEN_MTCR): New macro.
3986 (GEN_SYNC): New macro.
3987 (GEN_LWSYNC): New macro.
3988 (gen_x_form): New function.
3989 (GEN_OR): New macro.
3990 (GEN_MR): New macro.
3991 (GEN_LWARX): New macro.
3992 (GEN_STWCX): New macro.
3993 (GEN_CMPW): New macro.
3994 (gen_md_form): New function.
3995 (GEN_RLDICL): New macro.
3996 (GEN_RLDICR): New macro.
3997 (gen_i_form): New function.
3998 (GEN_B): New macro.
3999 (GEN_BL): New macro.
4000 (gen_b_form): New function.
4001 (GEN_BNE): New macro.
4002 (GEN_LOAD): New macro.
4003 (GEN_STORE): New macro.
4004 (gen_limm): New function.
4005 (gen_atomic_xchg): New function.
4006 (gen_call): New function.
4007 (ppc_relocate_instruction): New function.
4008 (ppc_install_fast_tracepoint_jump_pad): New function.
4009 (ppc_get_min_fast_tracepoint_insn_len): New function.
4010 (ppc_get_ipa_tdesc_idx): New function.
4011 (the_low_target): Wire in the new functions.
4012 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
4013 tdescs.
4014 * linux-ppc-tdesc.h: New file.
4015
4016 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
4017
4018 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
4019 (alloc_jump_pad_buffer): New function.
4020 * linux-amd64-ipa.c: Add <sys/mman.h> include.
4021 (alloc_jump_pad_buffer): New function.
4022 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
4023 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
4024 (alloc_jump_pad_buffer): New function.
4025 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
4026 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
4027 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
4028 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
4029
4030 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
4031
4032 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
4033 * linux-amd64-ipa.c: Likewise.
4034 * linux-i386-ipa.c: Likewise.
4035 * linux-s390-ipa.c: Likewise.
4036 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
4037 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
4038 set_trace_state_variable_value_ptr.
4039 (struct ipa_sym_addresses): Likewise.
4040 (symbol_list): Likewise.
4041 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
4042 accessing gdb_collect directly.
4043 (gdb_collect_ptr_type): New typedef.
4044 (get_raw_reg_ptr_type): New typedef.
4045 (get_trace_state_variable_value_ptr_type): New typedef.
4046 (set_trace_state_variable_value_ptr_type): New typedef.
4047 (gdb_collect_ptr): New global.
4048 (get_raw_reg_ptr): New global.
4049 (get_trace_state_variable_value_ptr): New global.
4050 (set_trace_state_variable_value_ptr): New global.
4051 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
4052 accessing get_raw_reg directly.
4053 (get_get_tsv_func_addr): Likewise for
4054 get_trace_state_variable_value_ptr.
4055 (get_set_tsv_func_addr): Likewise for
4056 set_trace_state_variable_value_ptr.
4057 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
4058
4059 2016-03-30 Simon Marchi <simon.marchi@ericsson.com>
4060
4061 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
4062
4063 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
4064
4065 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
4066 packets.
4067 (relocate_instruction): Remove own_buf.
4068 * server.c (own_buf): Make global.
4069 (handle_v_requests): Make global.
4070 * server.h (own_buf): New declaration.
4071 (handle_v_requests): New prototype.
4072
4073 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
4074
4075 PR 18377
4076 * linux-s390-low.c (add_insns): New function.
4077 (s390_emit_prologue): New function.
4078 (s390_emit_epilogue): New function.
4079 (s390_emit_add): New function.
4080 (s390_emit_sub): New function.
4081 (s390_emit_mul): New function.
4082 (s390_emit_lsh): New function.
4083 (s390_emit_rsh_signed): New function.
4084 (s390_emit_rsh_unsigned): New function.
4085 (s390_emit_ext): New function.
4086 (s390_emit_log_not): New function.
4087 (s390_emit_bit_and): New function.
4088 (s390_emit_bit_or): New function.
4089 (s390_emit_bit_xor): New function.
4090 (s390_emit_bit_not): New function.
4091 (s390_emit_equal): New function.
4092 (s390_emit_less_signed): New function.
4093 (s390_emit_less_unsigned): New function.
4094 (s390_emit_ref): New function.
4095 (s390_emit_if_goto): New function.
4096 (s390_emit_goto): New function.
4097 (s390_write_goto_address): New function.
4098 (s390_emit_litpool): New function.
4099 (s390_emit_const): New function.
4100 (s390_emit_call): New function.
4101 (s390_emit_reg): New function.
4102 (s390_emit_pop): New function.
4103 (s390_emit_stack_flush): New function.
4104 (s390_emit_zero_ext): New function.
4105 (s390_emit_swap): New function.
4106 (s390_emit_stack_adjust): New function.
4107 (s390_emit_set_r2): New function.
4108 (s390_emit_int_call_1): New function.
4109 (s390_emit_void_call_2): New function.
4110 (s390_emit_eq_goto): New function.
4111 (s390_emit_ne_goto): New function.
4112 (s390_emit_lt_goto): New function.
4113 (s390_emit_le_goto): New function.
4114 (s390_emit_gt_goto): New function.
4115 (s390_emit_ge_goto): New function.
4116 (s390x_emit_prologue): New function.
4117 (s390x_emit_epilogue): New function.
4118 (s390x_emit_add): New function.
4119 (s390x_emit_sub): New function.
4120 (s390x_emit_mul): New function.
4121 (s390x_emit_lsh): New function.
4122 (s390x_emit_rsh_signed): New function.
4123 (s390x_emit_rsh_unsigned): New function.
4124 (s390x_emit_ext): New function.
4125 (s390x_emit_log_not): New function.
4126 (s390x_emit_bit_and): New function.
4127 (s390x_emit_bit_or): New function.
4128 (s390x_emit_bit_xor): New function.
4129 (s390x_emit_bit_not): New function.
4130 (s390x_emit_equal): New function.
4131 (s390x_emit_less_signed): New function.
4132 (s390x_emit_less_unsigned): New function.
4133 (s390x_emit_ref): New function.
4134 (s390x_emit_if_goto): New function.
4135 (s390x_emit_const): New function.
4136 (s390x_emit_call): New function.
4137 (s390x_emit_reg): New function.
4138 (s390x_emit_pop): New function.
4139 (s390x_emit_stack_flush): New function.
4140 (s390x_emit_zero_ext): New function.
4141 (s390x_emit_swap): New function.
4142 (s390x_emit_stack_adjust): New function.
4143 (s390x_emit_int_call_1): New function.
4144 (s390x_emit_void_call_2): New function.
4145 (s390x_emit_eq_goto): New function.
4146 (s390x_emit_ne_goto): New function.
4147 (s390x_emit_lt_goto): New function.
4148 (s390x_emit_le_goto): New function.
4149 (s390x_emit_gt_goto): New function.
4150 (s390x_emit_ge_goto): New function.
4151 (s390_emit_ops): New function.
4152 (struct linux_target_ops): Fill in emit_ops hook.
4153
4154 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
4155
4156 PR 18377
4157 * Makefile.in: Add s390 IPA files.
4158 * configure.srv: Build IPA for s390.
4159 * linux-s390-ipa.c: New file.
4160 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
4161 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
4162 (tdesc_s390_linux32): Likewise.
4163 (init_registers_s390_linux32v1): Likewise.
4164 (tdesc_s390_linux32v1): Likewise.
4165 (init_registers_s390_linux32v2): Likewise.
4166 (tdesc_s390_linux32v2): Likewise.
4167 (init_registers_s390_linux64): Likewise.
4168 (tdesc_s390_linux64): Likewise.
4169 (init_registers_s390_linux64v1): Likewise.
4170 (tdesc_s390_linux64v1): Likewise.
4171 (init_registers_s390_linux64v2): Likewise.
4172 (tdesc_s390_linux64v2): Likewise.
4173 (init_registers_s390_te_linux64): Likewise.
4174 (tdesc_s390_te_linux64): Likewise.
4175 (init_registers_s390_vx_linux64): Likewise.
4176 (tdesc_s390_vx_linux64): Likewise.
4177 (init_registers_s390_tevx_linux64): Likewise.
4178 (tdesc_s390_tevx_linux64): Likewise.
4179 (init_registers_s390x_linux64): Likewise.
4180 (tdesc_s390x_linux64): Likewise.
4181 (init_registers_s390x_linux64v1): Likewise.
4182 (tdesc_s390x_linux64v1): Likewise.
4183 (init_registers_s390x_linux64v2): Likewise.
4184 (tdesc_s390x_linux64v2): Likewise.
4185 (init_registers_s390x_te_linux64): Likewise.
4186 (tdesc_s390x_te_linux64): Likewise.
4187 (init_registers_s390x_vx_linux64): Likewise.
4188 (tdesc_s390x_vx_linux64): Likewise.
4189 (init_registers_s390x_tevx_linux64): Likewise.
4190 (tdesc_s390x_tevx_linux64): Likewise.
4191 (have_hwcap_s390_vx): New static variable.
4192 (s390_arch_setup): Fill have_hwcap_s390_vx.
4193 (s390_get_thread_area): New function.
4194 (s390_ft_entry_gpr_esa): New const.
4195 (s390_ft_entry_gpr_zarch): New const.
4196 (s390_ft_entry_misc): New const.
4197 (s390_ft_entry_fr): New const.
4198 (s390_ft_entry_vr): New const.
4199 (s390_ft_main_31): New const.
4200 (s390_ft_main_64): New const.
4201 (s390_ft_exit_fr): New const.
4202 (s390_ft_exit_vr): New const.
4203 (s390_ft_exit_misc): New const.
4204 (s390_ft_exit_gpr_esa): New const.
4205 (s390_ft_exit_gpr_zarch): New const.
4206 (append_insns): New function.
4207 (s390_relocate_instruction): New function.
4208 (s390_install_fast_tracepoint_jump_pad): New function.
4209 (s390_get_min_fast_tracepoint_insn_len): New function.
4210 (s390_get_ipa_tdesc_idx): New function.
4211 (struct linux_target_ops): Wire in the above functions.
4212 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
4213 * linux-s390-tdesc.h: New file.
4214
4215 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
4216
4217 * linux-s390-low.c (s390_supports_tracepoints): New function.
4218 (struct linux_target_ops): Fill supports_tracepoints hook.
4219
4220 2016-03-18 Yao Qi <yao.qi@linaro.org>
4221
4222 * linux-low.c (lwp_signal_can_be_delivered): New function.
4223 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
4224
4225 2016-03-18 Yao Qi <yao.qi@linaro.org>
4226
4227 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
4228 0 if signal is enqueued. Remove 'signal' from one debugging
4229 message. Move one debugging message to some lines below.
4230 Remove code setting 'signal' to 0.
4231
4232 2016-03-18 Yao Qi <yao.qi@linaro.org>
4233
4234 * linux-low.c (linux_low_filter_event): Remove redundant
4235 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
4236
4237 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
4238
4239 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
4240 (struct linux_target_ops): Wire in the above.
4241
4242 2016-03-03 Yao Qi <yao.qi@linaro.org>
4243
4244 * linux-low.c: Update comments to start_step_over.
4245
4246 2016-03-03 Yao Qi <yao.qi@linaro.org>
4247
4248 PR server/19736
4249 * linux-low.c (handle_extended_wait): Set child suspended
4250 if event_lwp->bp_reinsert isn't zero.
4251
4252 2016-03-02 Yao Qi <yao.qi@linaro.org>
4253
4254 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
4255 enqueue_pending_signal.
4256
4257 2016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
4258
4259 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
4260 is actually loaded.
4261
4262 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
4263
4264 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
4265 (s390_regmap_3264) [!__s390x__]: New global.
4266 (s390_collect_ptrace_register): Skip map entries containing -1.
4267 (s390_supply_ptrace_register): Ditto.
4268 (s390_fill_gprs_high): New function.
4269 (s390_store_gprs_high): New function.
4270 (s390_regsets): Add NT_S390_HIGH_GPRS.
4271 (s390_get_hwcap): Enable on 31-bit.
4272 (have_hwcap_s390_high_gprs): Enable on 31-bit.
4273 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
4274 Detect NT_S390_HIGH_GPRS.
4275 (s390_usrregs_info_3264): Enable on 31-bit.
4276 (s390_regs_info): Enable regs_info_3264 on 31-bit.
4277 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
4278
4279 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
4280
4281 PR gdb/13808
4282 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
4283 * configure.srv: Ditto.
4284 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
4285 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
4286 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
4287 (init_registers_amd64_linux): Remove prototype.
4288 (tdesc_amd64_linux): Remove declaration.
4289 (get_ipa_tdesc): New function.
4290 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
4291 initialize remaining tdescs.
4292 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
4293 (init_registers_i386_linux): Remove prototype.
4294 (tdesc_i386_linux): Remove declaration.
4295 (get_ipa_tdesc): New function.
4296 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
4297 initialize remaining tdescs.
4298 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
4299 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
4300 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
4301 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
4302 (x86_get_ipa_tdesc_idx): New function.
4303 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
4304 * linux-x86-tdesc.h: New file.
4305 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
4306 (target_get_ipa_tdesc_idx): New macro.
4307 * tracepoint.c (ipa_tdesc_idx): New macro.
4308 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
4309 (symbol_list): Add ipa_tdesc_idx.
4310 (cmd_qtstart): Write ipa_tdesc_idx in the target.
4311 (ipa_tdesc): Remove.
4312 (ipa_tdesc_idx): New variable.
4313 (get_context_regcache): Use get_ipa_tdesc.
4314 (gdb_collect): Ditto.
4315 (gdb_probe): Ditto.
4316 * tracepoint.h (get_ipa_tdesc): New prototype.
4317 (ipa_tdesc): Remove.
4318
4319 2016-02-24 Pedro Alves <palves@redhat.com>
4320
4321 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
4322 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
4323 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
4324 Factor out common code between the USE_SIGTRAP_SIGINFO and
4325 !USE_SIGTRAP_SIGINFO blocks.
4326 (linux_low_filter_event): Call save_stop_reason instead of
4327 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
4328 Update comments.
4329 (linux_wait_1): Update comments.
4330
4331 2016-02-24 Wei-cheng Wang <cole945@gmail.com>
4332
4333 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
4334 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
4335 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
4336 ppc_insert_point, ppc_remove_point.
4337
4338 2016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
4339
4340 * linux-s390-low.c (s390_supports_z_point_type): New function.
4341 (struct linux_target_ops): Wire s390_supports_z_point_type in.
4342
4343 2016-02-16 Yao Qi <yao.qi@linaro.org>
4344
4345 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
4346 PC. Get pc from regcache_read_pc.
4347
4348 2016-02-12 Yao Qi <yao.qi@linaro.org>
4349
4350 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
4351 or linux_get_pc_32bit.
4352 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
4353
4354 2016-02-12 Yao Qi <yao.qi@linaro.org>
4355
4356 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
4357 arm_linux_get_next_pcs_fixup.
4358
4359 2016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
4360
4361 * tracepoint.c (x_tracepoint_action_download): Change
4362 write_inferior_data_ptr to write_inferior_data_pointer.
4363 (cmd_qtstart): Likewise.
4364 (write_inferior_data_ptr): Remove.
4365 (download_agent_expr): Change write_inferior_data_ptr to
4366 write_inferior_data_pointer.
4367 (download_tracepoint_1): Likewise.
4368 (download_tracepoint): Likewise.
4369 (download_trace_state_variables): Likewise.
4370
4371 2016-02-11 Wei-cheng Wang <cole945@gmail.com>
4372 Marcin Kościelnicki <koriakin@0x04.net>
4373
4374 * tracepoint.c (struct tracepoint_action_ops): Remove.
4375 (struct tracepoint_action): Remove ops.
4376 (m_tracepoint_action_download, r_tracepoint_action_download)
4377 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
4378 size and offset accordingly.
4379 (m_tracepoint_action_ops, r_tracepoint_action_ops)
4380 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
4381 (tracepoint_action_send, tracepoint_action_download): New functions.
4382 Helpers for trace action handlers.
4383 (add_tracepoint_action): Remove setup actions ops.
4384 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
4385
4386 2016-02-10 Yao Qi <yao.qi@linaro.org>
4387
4388 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
4389
4390 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
4391
4392 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
4393 to AC_OUTPUT.
4394 * configure: Regenerate.
4395
4396 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
4397
4398 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
4399 void * to gdb_byte *.
4400 * linux-low.c (siginfo_fixup): Likewise.
4401 (linux_xfer_siginfo): Likewise.
4402 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
4403 Likewise.
4404 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
4405
4406 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
4407
4408 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
4409 to srv_tgtobj.
4410 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
4411 to srv_tgtobj.
4412 * linux-x86-low.c [__x86_64__]: Include
4413 "nat/amd64-linux-siginfo.h".
4414 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
4415 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
4416 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
4417 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
4418 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
4419 (cpt_si_fd, si_timerid, si_overrun): Move from
4420 nat/amd64-linux-siginfo.c.
4421 * Makefile.in (amd64-linux-siginfo.o:): New rule.
4422
4423 2016-01-28 Simon Marchi <simon.marchi@ericsson.com>
4424
4425 * server.c (skip_to_semicolon): Remove.
4426 (process_point_options): Use strchrnul instead of
4427 skip_to_semicolon.
4428
4429 2016-01-26 Yao Qi <yao.qi@linaro.org>
4430
4431 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
4432 * linux-low.c (install_software_single_step_breakpoints): Don't
4433 call regcache_read_pc.
4434 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
4435 argument pc.
4436
4437 2016-01-26 Yao Qi <yao.qi@linaro.org>
4438
4439 * linux-low.c (install_software_single_step_breakpoints): Call
4440 regcache_read_pc instead of get_pc.
4441
4442 2016-01-26 Yao Qi <yao.qi@linaro.org>
4443
4444 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
4445 (unblock_async_io): Rename to ...
4446 (block_unblock_async_io): ... it. New function.
4447 (enable_async_io): Don't install SIGIO handler. Unblock it
4448 instead.
4449 (disable_async_io): Don't ignore SIGIO. Block it instead.
4450 (initialize_async_io): Install SIGIO handler. Don't call
4451 unblock_async_io.
4452
4453 2016-01-26 Yao Qi <yao.qi@linaro.org>
4454
4455 * remote-utils.c (getpkt): If the buffer isn't empty, and the
4456 first character is '\003', call *the_target->request_interrupt.
4457
4458 2016-01-25 Yao Qi <yao.qi@linaro.org>
4459
4460 * remote-utils.c (new_thread_notify): Remove.
4461 (dead_thread_notify): Likewise.
4462 * remote-utils.h (new_thread_notify): Remove declaration.
4463 (dead_thread_notify): Likewise.
4464
4465 2016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
4466
4467 * gdb.trace/pending.exp: Fix expected message on continue.
4468
4469 2016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
4470
4471 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
4472 it works properly on big-endian machines where sizeof (CORE_ADDR)
4473 != sizeof (void *).
4474
4475 2016-01-21 Pedro Alves <palves@redhat.com>
4476
4477 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
4478 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
4479 * configure: Regenerate.
4480
4481 2016-01-21 Yao Qi <yao.qi@linaro.org>
4482
4483 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
4484 is_thumb and set it according to CPSR saved on the stack.
4485 (get_next_pcs_syscall_next_pc): Pass is_thumb to
4486 arm_sigreturn_next_pc.
4487
4488 2016-01-18 Yao Qi <yao.qi@linaro.org>
4489
4490 * linux-low.c (linux_set_pc_64bit): New function.
4491 (linux_get_pc_64bit): New function.
4492 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
4493 Declare.
4494 * linux-sparc-low.c (debug_threads): Remove declaration.
4495 (sparc_get_pc): Remove.
4496 (the_low_target): Use linux_get_pc_64bit instead of
4497 sparc_get_pc.
4498 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
4499 (the_low_target): Use linux_get_pc_64bit and
4500 linux_set_pc_64bit.
4501
4502 2016-01-18 Yao Qi <yao.qi@linaro.org>
4503
4504 * linux-arm-low.c (debug_threads): Remove declaration.
4505 (arm_get_pc, arm_set_pc): Remove.
4506 (the_low_target): Use linux_get_pc_32bit and
4507 linux_set_pc_32bit.
4508 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
4509 (the_low_target): Use linux_get_pc_32bit and
4510 linux_set_pc_32bit.
4511 * linux-cris-low.c (debug_threads): Remove declaration.
4512 (cris_get_pc, cris_set_pc,): Remove.
4513 (the_low_target): Use linux_get_pc_32bit and
4514 linux_set_pc_32bit.
4515 * linux-crisv32-low.c (debug_threads): Remove declaration.
4516 (cris_get_pc, cris_set_pc): Remove.
4517 (the_low_target): Use linux_get_pc_32bit and
4518 linux_set_pc_32bit.
4519 * linux-low.c: Include inttypes.h.
4520 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
4521 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
4522 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
4523 (the_low_target): Use linux_get_pc_32bit and
4524 linux_set_pc_32bit.
4525 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
4526 (the_low_target): Use linux_get_pc_32bit and
4527 linux_set_pc_32bit.
4528 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
4529 (the_low_target): Use linux_get_pc_32bit and
4530 linux_set_pc_32bit.
4531 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
4532 (the_low_target): Use linux_get_pc_32bit and
4533 linux_set_pc_32bit.
4534 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
4535 (the_low_target): Use linux_get_pc_32bit and
4536 linux_set_pc_32bit.
4537
4538 2016-01-18 Gary Benson <gbenson@redhat.com>
4539
4540 * configure.ac (AC_FUNC_FORK): New check.
4541 * config.in: Regenerate.
4542 * configure: Likewise.
4543
4544 2016-01-14 Yao Qi <yao.qi@linaro.org>
4545
4546 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
4547 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
4548 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
4549 arm_get_next_pcs_ctor.
4550
4551 2016-01-12 Josh Stone <jistone@redhat.com>
4552 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4553
4554 * inferiors.h: Include "gdb_vecs.h".
4555 (struct process_info): Add syscalls_to_catch.
4556 * inferiors.c (remove_process): Free syscalls_to_catch.
4557 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
4558 syscall_return stops.
4559 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
4560 * server.c (handle_general_set): Handle QCatchSyscalls.
4561 (handle_query): Report support for QCatchSyscalls.
4562 * target.h (struct target_ops): Add supports_catch_syscall.
4563 (target_supports_catch_syscall): New macro.
4564 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
4565 (struct lwp_info): Add syscall_state.
4566 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
4567 Maintain syscall_state and syscalls_to_catch across exec.
4568 (get_syscall_trapinfo): New function, proxy to the_low_target.
4569 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
4570 (linux_low_filter_event): Toggle syscall_state entry/return for
4571 syscall traps, and set it ignored for all others.
4572 (gdb_catching_syscalls_p): New function.
4573 (gdb_catch_this_syscall_p): New function.
4574 (linux_wait_1): Handle SYSCALL_SIGTRAP.
4575 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
4576 (linux_supports_catch_syscall): New function.
4577 (linux_target_ops): Install it.
4578 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
4579 (the_low_target): Install it.
4580
4581 2016-01-12 Mike Frysinger <vapier@gentoo.org>
4582
4583 * acinclude.m4: Include new ../warning.m4 file.
4584 * configure: Regenerated.
4585 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
4586
4587 2016-01-12 Mike Frysinger <vapier@gentoo.org>
4588
4589 * ax.c (is_goto_target): Mark static.
4590 * linux-low.c (register_addr): Likewise.
4591 (linux_fetch_registers, linux_store_registers): Likewise.
4592 * mem-break.c (any_persistent_commands): Fix old prototype.
4593 (add_commands_to_breakpoint): Mark static.
4594 * regcache.c (find_register_by_name): Delete unused func.
4595 * remote-utils.c (hex_or_minus_one): Mark static.
4596 * server.c (monitor_show_help): Mark static.
4597 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
4598 handle_v_requests): Likewise.
4599
4600 2016-01-12 Pedro Alves <palves@redhat.com>
4601
4602 Remove use of the registered trademark symbol throughout.
4603
4604 2016-01-08 Yao Qi <yao.qi@linaro.org>
4605
4606 * remote-utils.c (getpkt): If c is '\003', call target hook
4607 request_interrupt.
4608
4609 2016-01-06 Yao Qi <yao.qi@linaro.org>
4610
4611 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
4612 linux-aarch32-low.c.
4613 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
4614 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
4615 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
4616 (thumb2_breakpoint): Declare.
4617 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
4618 linux-aarch32-low.h.
4619 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
4620 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
4621 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
4622
4623 2016-01-01 Joel Brobecker <brobecker@adacore.com>
4624
4625 * gdbreplay.c (gdbreplay_version): Change copyright year in
4626 version message.
4627 * server.c (gdbserver_version): Likewise.
4628
4629 2015-12-28 Patrick Palka <patrick@parcs.ath.cx>
4630
4631 * server.c (crc32_table): Delete.
4632 (crc32): Use libiberty's xcrc32 function.
4633
4634 2015-12-22 Joel Brobecker <brobecker@adacore.com>
4635
4636 * lynx-low.c (lynx_delete_thread_callback): New function.
4637 (lynx_mourn): Properly delete our process and all of its
4638 threads. Remove call to clear_inferiors.
4639
4640 2015-12-22 Joel Brobecker <brobecker@adacore.com>
4641
4642 * target.c (thread_search_callback): Add check that
4643 the thread_stopped target callback is not NULL before
4644 calling it.
4645
4646 2015-12-21 Yao Qi <yao.qi@linaro.org>
4647
4648 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
4649 arm breakpoint.
4650
4651 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
4652
4653 * server.c (handle_query): Call target_supports_software_single_step.
4654
4655 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
4656
4657 * linux-low.c (single_step): New function.
4658 (linux_resume_one_lwp_throw): Call single_step.
4659 (start_step_over): Likewise.
4660
4661 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
4662
4663 * Makefile.in (SFILES): Append arch/arm-linux.c,
4664 arch/arm-get-next-pcs.c.
4665 (arm-linux.o): New rule.
4666 (arm-get-next-pcs.o): New rule.
4667 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
4668 arm-linux.o.
4669 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
4670 to linux-aarch32-low.c.
4671 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
4672 (arm_breakpoint_len, thumb_breakpoint): Likewise.
4673 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
4674 (thumb2_breakpoint_len): Likewise.
4675 (arm_is_thumb_mode): Make non-static.
4676 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
4677 from linux-aarch32-low.c.
4678 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
4679 (arm_breakpoint_len, thumb_breakpoint): Likewise.
4680 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
4681 (thumb2_breakpoint_len): Likewise.
4682 (arm_is_thumb_mode): New declaration.
4683 * linux-arm-low.c: Include arch/arm-linux.h
4684 aarch/arm-get-next-pcs.h, sys/syscall.h.
4685 (get_next_pcs_ops): New struct.
4686 (get_next_pcs_addr_bits_remove): New function.
4687 (get_next_pcs_is_thumb): New function.
4688 (get_next_pcs_read_memory_unsigned_integer): Likewise.
4689 (arm_sigreturn_next_pc): Likewise.
4690 (get_next_pcs_syscall_next_pc): Likewise.
4691 (arm_gdbserver_get_next_pcs): Likewise.
4692 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
4693 Initialize.
4694 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
4695 * server.h: Include gdb_vecs.h.
4696
4697 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
4698
4699 * Makefile.in (SFILES): Append common/common-regcache.c.
4700 (OBS): Append common-regcache.o.
4701 (common-regcache.o): New rule.
4702 * regcache.c (init_register_cache): Initialize cache to
4703 REG_UNAVAILABLE.
4704 (regcache_raw_read_unsigned): New function.
4705 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
4706 register_status enum.
4707
4708 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
4709
4710 * linux-aarch64-low.c (the_low_targets): Rename
4711 breakpoint_reinsert_addr to get_next_pcs.
4712 * linux-arm-low.c (the_low_targets): Likewise.
4713 * linux-bfin-low.c (the_low_targets): Likewise.
4714 * linux-cris-low.c (the_low_targets): Likewise.
4715 * linux-crisv32-low.c (the_low_targets): Likewise.
4716 * linux-low.c (can_software_single_step): Likewise.
4717 (install_software_single_step_breakpoints): New function.
4718 (start_step_over): Use install_software_single_step_breakpoints.
4719 * linux-low.h: New CORE_ADDR vector.
4720 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
4721 get_next_pcs.
4722 * linux-mips-low.c (the_low_targets): Likewise.
4723 * linux-nios2-low.c (the_low_targets): Likewise.
4724 * linux-sparc-low.c (the_low_targets): Likewise.
4725
4726 2015-12-17 Pedro Alves <palves@redhat.com>
4727
4728 * linux-low.c (linux_kill_one_lwp): Remove references to
4729 LinuxThreads.
4730 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
4731 to 'kill'.
4732 (linux_init_signals): Delete.
4733 (initialize_low): Adjust.
4734 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
4735
4736 2015-12-16 Pedro Alves <palves@redhat.com>
4737
4738 * configure.ac (compiler warning flags): When testing a
4739 -Wno-foo option, check whether -Wfoo works instead.
4740 * configure: Regenerate.
4741
4742 2015-12-11 Don Breazeal <donb@codesourcery.com>
4743
4744 * server.c (process_serial_event): Don't exit from gdbserver
4745 in remote mode if there are still active inferiors.
4746
4747 2015-12-11 Yao Qi <yao.qi@linaro.org>
4748
4749 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
4750 arm_breakpoint_at if the process is 32-bit.
4751
4752 2015-12-11 Yao Qi <yao.qi@linaro.org>
4753
4754 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
4755 arm breakpoint.
4756
4757 2015-12-07 Yao Qi <yao.qi@linaro.org>
4758
4759 * configure.srv: Append arm.o to srv_tgtobj for
4760 aarch64*-*-linux* target.
4761 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
4762 from linux-arm-low.c.
4763 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
4764 (arm_breakpoint_len, thumb_breakpoint): Likewise.
4765 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
4766 (thumb2_breakpoint_len): Likewise.
4767 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
4768 (arm_breakpoint_kinds): Likewise.
4769 (arm_breakpoint_kind_from_pc): Likewise.
4770 (arm_sw_breakpoint_from_kind): Likewise.
4771 (arm_breakpoint_kind_from_current_state): Likewise.
4772 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
4773 (arm_sw_breakpoint_from_kind): Declare.
4774 (arm_breakpoint_kind_from_current_state): Declare.
4775 (arm_breakpoint_at): Declare.
4776 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
4777 arm_sw_breakpoint_from_kind if process is 32-bit.
4778 (aarch64_breakpoint_kind_from_pc): New function.
4779 (aarch64_breakpoint_kind_from_current_state): New function.
4780 (the_low_target): Initialize fields breakpoint_kind_from_pc
4781 and breakpoint_kind_from_current_state.
4782 * linux-arm-low.c (arm_breakpoint_kinds): Move to
4783 linux-aarch32-low.c.
4784 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
4785 (arm_breakpoint, arm_breakpoint_len): Likewise.
4786 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
4787 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
4788 (arm_is_thumb_mode): Likewise.
4789 (arm_breakpoint_at): Likewise.
4790 (arm_breakpoint_kind_from_pc): Likewise.
4791 (arm_sw_breakpoint_from_kind): Likewise.
4792 (arm_breakpoint_kind_from_current_state): Likewise.
4793
4794 Revert:
4795 2015-08-04 Yao Qi <yao.qi@linaro.org>
4796
4797 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
4798 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
4799 * server.c (extended_protocol): Remove "static".
4800 * server.h (extended_protocol): Declare it.
4801
4802 2015-12-04 Josh Stone <jistone@redhat.com>
4803
4804 * target.h (struct target_ops) <arch_setup>: Rename to ...
4805 (struct target_ops) <post_create_inferior>: ... this.
4806 (target_arch_setup): Rename to ...
4807 (target_post_create_inferior): ... this, calling post_create_inferior.
4808 * server.c (start_inferior): Update target_arch_setup calls to
4809 target_post_create_inferior.
4810 * linux-low.c (linux_low_ptrace_options): Forward declare.
4811 (linux_arch_setup): Update its comment for general use.
4812 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
4813 (struct linux_target_ops): Use linux_post_create_inferior.
4814 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
4815 to post_create_inferior.
4816 * nto-low.c (struct nto_target_ops): Likewise.
4817 * spu-low.c (struct spu_target_ops): Likewise.
4818 * win32-low.c (struct win32_target_ops): Likewise.
4819
4820 2015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
4821
4822 * linux-arm-low.c: Remove duplicate arch/arm.h include.
4823
4824 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
4825
4826 * linux-arm-low.c (arm_reinsert_addr): Remove function.
4827 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
4828 * linux-cris-low.c (cris_reinsert_addr> Remove function.
4829 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
4830 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
4831 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
4832 * linux-mips-low.c (mips_reinsert_addr): Remove function.
4833 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
4834 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
4835 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
4836 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
4837 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
4838
4839 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
4840
4841 * linux-low.c (linux_look_up_symbols): Don't call
4842 linux_supports_traceclone.
4843 * linux-low.h (thread_db_init): Remove use_events argument.
4844 * thread-db.c (thread_db_use_event): Remove global variable.
4845 (struct thread_db) <td_thr_event_enable_p>: Remove field.
4846 (struct thread_db) <td_create_bp>: Remove field.
4847 (thread_db_create_event): Remove function.
4848 (thread_db_enable_reporting): Likewise.
4849 (find_one_thread): Don't check for thread_db_use_events.
4850 (attach_thread): Likewise.
4851 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
4852 (try_thread_db_load_1): Don't check for thread_db_use_events.
4853 (thread_db_init): Remove use_events argument and thread events
4854 handling.
4855 (remove_thread_event_breakpoints): Remove function.
4856 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
4857
4858 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
4859
4860 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
4861 New function.
4862 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
4863 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
4864 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
4865 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
4866 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
4867 Initialize.
4868 * linux-crisv32-low.c (cris_supports_hardware_single_step):
4869 New function.
4870 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
4871 * linux-low.c (can_hardware_single_step): Use
4872 supports_hardware_single_step.
4873 (can_software_single_step): New function.
4874 (start_step_over): Call can_software_single_step.
4875 (linux_supports_hardware_single_step): New function.
4876 (struct target_ops) <supports_software_single_step>: Initialize.
4877 * linux-low.h (struct linux_target_ops)
4878 <supports_hardware_single_step>: Initialize.
4879 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
4880 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
4881 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
4882 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
4883 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
4884 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
4885 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
4886 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
4887 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
4888 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
4889 Initialize.
4890 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
4891 (struct linux_target_ops) <tile_supports_hardware_single_step>:
4892 Initialize.
4893 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
4894 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
4895 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
4896 New function.
4897 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
4898 * target.h (struct target_ops): <supports_software_single_step>:
4899 New field.
4900 (target_supports_software_single_step): New macro.
4901
4902 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
4903
4904 * linux-low.c (linux_wait_1): Fix pc advance condition.
4905 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
4906 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
4907
4908 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
4909
4910 * linux-arm-low.c (arm_is_thumb_mode): New function.
4911 (arm_breakpoint_at): Use arm_is_thumb_mode.
4912 (arm_breakpoint_kind_from_current_state): New function.
4913 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
4914 Initialize.
4915 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
4916 (linux_breakpoint_kind_from_current_state): New function.
4917 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
4918 * linux-low.h (struct linux_target_ops)
4919 <breakpoint_kind_from_current_state>: New field.
4920 * target.h (struct target_ops): Likewise.
4921 (target_breakpoint_kind_from_current_state): New macro.
4922
4923 2015-11-30 Pedro Alves <palves@redhat.com>
4924
4925 * linux-low.c (linux_resume): Wake up the event loop before
4926 returning.
4927
4928 2015-11-30 Pedro Alves <palves@redhat.com>
4929
4930 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
4931 check.
4932 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
4933 to -1.
4934 * target.c (struct thread_search): New structure.
4935 (thread_search_callback): New function.
4936 (prev_general_thread): New global.
4937 (prepare_to_access_memory, done_accessing_memory): New functions.
4938 * target.h (prepare_to_access_memory, done_accessing_memory):
4939 Replace macros with function declarations.
4940
4941 2015-11-30 Pedro Alves <palves@redhat.com>
4942
4943 PR 14618
4944 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
4945 report TARGET_WAITKIND_NO_RESUMED.
4946 * remote-utils.c (prepare_resume_reply): Handle
4947 TARGET_WAITKIND_NO_RESUMED.
4948 * server.c (report_no_resumed): New global.
4949 (handle_query) <qSupported>: Handle "no-resumed+". Report
4950 "no-resumed+" support.
4951 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
4952 return error if the client doesn't support no-resumed events.
4953 (push_stop_notification): New function.
4954 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
4955 events if the client supports them.
4956
4957 2015-11-30 Pedro Alves <palves@redhat.com>
4958
4959 * linux-low.c (thread_still_has_status_pending_p): Don't check
4960 vCont;t here.
4961 (lwp_resumed): New function.
4962 (status_pending_p_callback): Return early if the LWP is not
4963 supposed to be resumed.
4964
4965 2015-11-30 Pedro Alves <palves@redhat.com>
4966
4967 * linux-low.c (handle_extended_wait): Assert that the LWP's
4968 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
4969 thread create events, leave the new child's status pending.
4970 (linux_low_filter_event): If GDB wants to hear about thread exit
4971 events, leave the LWP marked dead and don't delete it.
4972 (linux_wait_for_event_filtered): Don't check for thread exit.
4973 (filter_exit_event): New function.
4974 (linux_wait_1): Use it, when returning an exit event.
4975 (linux_resume_one_lwp_throw): Assert that the LWP's
4976 waitstatus is TARGET_WAITKIND_IGNORE.
4977 * remote-utils.c (prepare_resume_reply): Handle
4978 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
4979 * server.c (report_thread_events): New global.
4980 (handle_general_set): Handle QThreadEvents.
4981 (handle_query) <qSupported>: Handle and report QThreadEvents+;
4982 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
4983 TARGET_WAITKIND_THREAD_EXITED.
4984 * server.h (report_thread_events): Declare.
4985
4986 2015-11-30 Pedro Alves <palves@redhat.com>
4987
4988 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
4989 the thread's last_resume_kind was resume_stop.
4990
4991 2015-11-30 Pedro Alves <palves@redhat.com>
4992
4993 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
4994 before returning.
4995
4996 2015-11-30 Pedro Alves <palves@redhat.com>
4997
4998 * server.c (handle_v_requests): Handle vCtrlC.
4999
5000 2015-11-30 Pedro Alves <palves@redhat.com>
5001
5002 * gdbthread.h (find_any_thread_of_pid): Declare.
5003 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
5004 functions.
5005 * server.c (handle_query): If current_thread is NULL, look for
5006 another thread of the selected process.
5007
5008 2015-11-26 Daniel Colascione <dancol@dancol.org>
5009 Simon Marchi <simon.marchi@ericsson.com>
5010
5011 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
5012 * server.c (handle_qxfer_threads_worker): Refactor to include thread
5013 name in reply.
5014 * target.h (struct target_ops) <thread_name>: New field.
5015 (target_thread_name): New macro.
5016
5017 2015-11-23 Joel Brobecker <brobecker@adacore.com>
5018
5019 * regcache.h (regcache_invalidate_pid): Add declaration.
5020 * regcache.c (regcache_invalidate_pid): New function, extracted
5021 from regcache_invalidate.
5022 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
5023 Add trivial documentation comment.
5024 * lynx-low.c: Use regcache_invalidate_pid instead of
5025 regcache_invalidate.
5026
5027 2015-11-23 Joel Brobecker <brobecker@adacore.com>
5028
5029 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
5030 and Elf64_auxv_t if the target is Android.
5031
5032 2015-11-22 Doug Evans <xdje42@gmail.com>
5033
5034 * target.h: #include <sys/types.h>.
5035
5036 2015-11-19 Pedro Alves <palves@redhat.com>
5037
5038 * linux-low.c (linux_process_qsupported): Change prototype.
5039 Adjust.
5040 * linux-low.h (struct linux_target_ops) <process_qsupported>:
5041 Change prototype.
5042 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
5043 and adjust to loop over all features.
5044 * server.c (handle_query) <qSupported>: Adjust to call
5045 target_process_qsupported once, passing it a vector of unprocessed
5046 features.
5047 * target.h (struct target_ops) <process_qsupported>: Change
5048 prototype.
5049 (target_process_qsupported): Adjust.
5050
5051 2015-11-19 Pedro Alves <palves@redhat.com>
5052
5053 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
5054 mode.
5055 * configure: Regenerate.
5056
5057 2015-11-19 Pedro Alves <palves@redhat.com>
5058
5059 * configure: Regenerate.
5060
5061 2015-11-19 Yao Qi <yao.qi@linaro.org>
5062
5063 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
5064 type to uint32_t.
5065
5066 2015-11-19 Yao Qi <yao.qi@linaro.org>
5067
5068 * linux-aarch64-low.c (enum aarch64_operand_type): New.
5069 (struct aarch64_operand): Move enum out.
5070
5071 2015-11-19 Yao Qi <yao.qi@linaro.org>
5072
5073 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
5074 struct user_fpsimd_state *.
5075 (aarch64_store_fpregset): Likewise.
5076
5077 2015-11-19 Yao Qi <yao.qi@linaro.org>
5078
5079 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
5080 struct user_pt_regs *.
5081 (aarch64_store_gregset): Likewise.
5082
5083 2015-11-18 Pedro Alves <palves@redhat.com>
5084
5085 * Makefile.in (all_object_files): Add $IPA_OBJS.
5086
5087 2015-11-17 Pedro Alves <palves@redhat.com>
5088
5089 * win32-low.c (win32_resume): Use gdb_signal_from_host,
5090 GDB_SIGNAL_0 and gdb_signal_to_string.
5091
5092 2015-11-17 Pedro Alves <palves@redhat.com>
5093
5094 * win32-low.c (handle_output_debug_string): Remove parameter.
5095 (win32_kill): Remove our_status local and adjust call to
5096 handle_output_debug_string.
5097 (get_child_debug_event): Adjust call to
5098 handle_output_debug_string.
5099
5100 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
5101
5102 * linux-mips-low.c (mips_fill_gregset): Add cast.
5103 (mips_store_gregset): Likewise.
5104 (mips_fill_fpregset): Likewise.
5105 (mips_store_fpregset): Likewise.
5106
5107 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
5108
5109 * linux-mips-low.c (mips_add_watchpoint): Rename private to
5110 priv.
5111
5112 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
5113
5114 * linux-mips-low.c (mips_linux_new_thread): Change type of
5115 watch_type to enum target_hw_bp_type.
5116
5117 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
5118
5119 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
5120 Change return type to arm_hwbp_type.
5121
5122 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
5123
5124 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
5125 (arm_store_gregset): Likewise.
5126 * linux-arm-low.c (arm_get_hwcap): Likewise.
5127 (arm_read_description): Likewise.
5128
5129 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
5130
5131 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
5132
5133 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
5134
5135 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
5136 (ppc_fill_vsxregset): Likewise.
5137 (ppc_store_vsxregset): Likewise.
5138 (ppc_fill_vrregset): Likewise.
5139 (ppc_store_vrregset): Likewise.
5140 (ppc_fill_evrregset): Likewise.
5141 (ppc_store_evrregset): Likewise.
5142
5143 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
5144
5145 * linux-ppc-low.c (ppc_usrregs_info): Remove
5146 forward-declaration.
5147 (ppc_arch_setup): Move lower in file.
5148
5149 2015-10-30 Simon Marchi <simon.marchi@ericsson.com>
5150
5151 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
5152 (ps_pdwrite): Likewise.
5153
5154 2015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
5155
5156 * linux-arm-low.c (arm_new_thread): Move pointer dereference
5157 to after assert checks.
5158
5159 2015-10-29 Simon Marchi <simon.marchi@ericsson.com>
5160
5161 * proc-service.c (ps_pdread): Add/adjust casts.
5162 (ps_pdwrite): Add/adjust casts.
5163
5164 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
5165
5166 * server.c (handle_search_memory_1): Cast return value of
5167 memmem.
5168
5169 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
5170
5171 * server.c (write_qxfer_response): Change type of data to
5172 gdb_byte *.
5173
5174 2015-10-29 Pedro Alves <palves@redhat.com>
5175
5176 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
5177
5178 2015-10-29 Pedro Alves <palves@redhat.com>
5179
5180 * tracepoint.c (clear_installed_tracepoints): Add casts.
5181
5182 2015-10-29 Pedro Alves <palves@redhat.com>
5183
5184 * server.c (handle_v_cont, process_serial_event): Add enum
5185 gdb_signal casts to signal parsing code.
5186
5187 2015-10-29 Pedro Alves <palves@redhat.com>
5188
5189 * linux-low.h (NULL_REGSET): Define.
5190 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
5191 * linux-arm-low.c (arm_regsets): Likewise.
5192 * linux-crisv32-low.c (cris_regsets): Likewise.
5193 * linux-m68k-low.c (m68k_regsets): Likewise.
5194 * linux-mips-low.c (mips_regsets): Likewise.
5195 * linux-nios2-low.c (nios2_regsets): Likewise.
5196 * linux-ppc-low.c (ppc_regsets): Likewise.
5197 * linux-s390-low.c (s390_regsets): Likewise.
5198 * linux-sh-low.c (sh_regsets): Likewise.
5199 * linux-sparc-low.c (sparc_regsets): Likewise.
5200 * linux-tic6x-low.c (tic6x_regsets): Likewise.
5201 * linux-tile-low.c (tile_regsets): Likewise.
5202 * linux-x86-low.c (x86_regsets): Likewise.
5203 * linux-xtensa-low.c (xtensa_regsets): Likewise.
5204
5205 2015-10-29 Pedro Alves <palves@redhat.com>
5206
5207 * linux-low.h (NULL_REGSET): Define.
5208 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
5209 * linux-arm-low.c (arm_regsets): Likewise.
5210 * linux-crisv32-low.c (cris_regsets): Likewise.
5211 * linux-m68k-low.c (m68k_regsets): Likewise.
5212 * linux-mips-low.c (mips_regsets): Likewise.
5213 * linux-nios2-low.c (nios2_regsets): Likewise.
5214 * linux-ppc-low.c (ppc_regsets): Likewise.
5215 * linux-s390-low.c (s390_regsets): Likewise.
5216 * linux-sh-low.c (sh_regsets): Likewise.
5217 * linux-sparc-low.c (sparc_regsets): Likewise.
5218 * linux-tic6x-low.c (tic6x_regsets): Likewise.
5219 * linux-tile-low.c (tile_regsets): Likewise.
5220 * linux-x86-low.c (x86_regsets): Likewise.
5221 * linux-xtensa-low.c (xtensa_regsets): Likewise.
5222
5223 2015-10-26 Doug Evans <dje@google.com>
5224
5225 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
5226
5227 2015-10-26 Doug Evans <dje@google.com>
5228
5229 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
5230
5231 2015-10-26 Doug Evans <dje@google.com>
5232
5233 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
5234 for debug_printf.
5235 (attach_thread, find_new_threads_callback): Ditto.
5236
5237 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
5238
5239 * mem-break.h (set_breakpoint_data): Remove.
5240
5241 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
5242
5243 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
5244 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
5245 (initialize_low): Remove set_breakpoint_data call.
5246 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
5247 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
5248 (initialize_low): Remove set_breakpoint_data call.
5249 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
5250 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
5251 (initialize_low): Remove set_breakpoint_data call.
5252
5253 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
5254
5255 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
5256 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
5257 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
5258 * target.h (target_breakpoint_kind_from_pc): New macro.
5259
5260 2015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
5261
5262 * linux-low.c (default_breakpoint_kind_from_pc): New function.
5263 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
5264 the default breakpoint kind.
5265
5266 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
5267
5268 * linux-arm-low.c (arm_supports_z_point_type): Add software
5269 breakpoint support.
5270
5271 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
5272
5273 * linux-arm-low.c: Refactor breakpoint definitions.
5274 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
5275 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
5276
5277 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
5278
5279 * Makefile.in: Add arm.c/o.
5280 * configure.srv: Likewise.
5281 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
5282 (arm_breakpoint_kind_from_pc): New function.
5283 (arm_sw_breakpoint_from_kind): Return proper kind.
5284 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
5285
5286 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
5287
5288 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
5289 removal.
5290 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
5291 (struct raw_breakpoint) <size>: Remove.
5292 (struct raw_breakpoint) <kind>: Add.
5293 (bp_size): New function.
5294 (bp_opcode): Likewise.
5295 (find_raw_breakpoint_at): Adjust for kind.
5296 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
5297 (remove_memory_breakpoint): Adjust for kind call bp_size.
5298 (set_raw_breakpoint_at): Adjust for kind.
5299 (set_breakpoint): Likewise.
5300 (set_breakpoint_at): Call breakpoint_kind_from_pc.
5301 (delete_raw_breakpoint): Adjust for kind.
5302 (delete_breakpoint): Likewise.
5303 (find_gdb_breakpoint): Likewise.
5304 (set_gdb_breakpoint_1): Likewise.
5305 (set_gdb_breakpoint): Likewise.
5306 (delete_gdb_breakpoint_1): Likewise.
5307 (delete_gdb_breakpoint): Likewise.
5308 (uninsert_raw_breakpoint): Likewise.
5309 (reinsert_raw_breakpoint): Likewise.
5310 (set_breakpoint_data): Remove.
5311 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
5312 (check_mem_read): Adjust for kind call bp_size.
5313 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
5314 (clone_one_breakpoint): Adjust for kind.
5315 * mem-break.h (set_gdb_breakpoint): Likewise.
5316 (delete_gdb_breakpoint): Likewise.
5317 * server.c (process_serial_event): Likewise.
5318
5319 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
5320
5321 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
5322 (struct linux_target_ops) <breakpoint>: Remove.
5323 (struct linux_target_ops) <breakpoint_len>: Remove.
5324 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
5325 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
5326 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
5327 (arm_sw_breakpoint_from_kind): New function.
5328 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
5329 (struct linux_target_ops) <breakpoint>: Remove.
5330 (struct linux_target_ops) <breakpoint_len>: Remove.
5331 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
5332 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
5333 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
5334 (struct linux_target_ops) <breakpoint>: Remove.
5335 (struct linux_target_ops) <breakpoint_len>: Remove.
5336 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
5337 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
5338 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
5339 (struct linux_target_ops) <breakpoint>: Remove.
5340 (struct linux_target_ops) <breakpoint_len>: Remove.
5341 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
5342 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
5343 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
5344 and sw_breakpoint_from_kind to increment the pc.
5345 (linux_breakpoint_kind_from_pc): New function.
5346 (linux_sw_breakpoint_from_kind): New function.
5347 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
5348 (initialize_low): Call breakpoint_kind_from_pc and
5349 sw_breakpoint_from_kind to replace breakpoint_data/len.
5350 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
5351 New field.
5352 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
5353 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
5354 (struct linux_target_ops) <breakpoint>: Remove.
5355 (struct linux_target_ops) <breakpoint_len>: Remove.
5356 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
5357 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
5358 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
5359 (struct linux_target_ops) <breakpoint>: Remove.
5360 (struct linux_target_ops) <breakpoint_len>: Remove.
5361 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
5362 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
5363 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
5364 (struct linux_target_ops) <breakpoint>: Remove.
5365 (struct linux_target_ops) <breakpoint_len>: Remove.
5366 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
5367 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
5368 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
5369 (struct linux_target_ops) <breakpoint>: Remove.
5370 (struct linux_target_ops) <breakpoint_len>: Remove.
5371 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
5372 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
5373 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
5374 (struct linux_target_ops) <breakpoint>: Remove.
5375 (struct linux_target_ops) <breakpoint_len>: Remove.
5376 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
5377 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
5378 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
5379 (struct linux_target_ops) <breakpoint>: Remove.
5380 (struct linux_target_ops) <breakpoint_len>: Remove.
5381 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
5382 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
5383 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
5384 (struct linux_target_ops) <breakpoint>: Remove.
5385 (struct linux_target_ops) <breakpoint_len>: Remove.
5386 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
5387 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
5388 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
5389 (struct linux_target_ops) <breakpoint>: Remove.
5390 (struct linux_target_ops) <breakpoint_len>: Remove.
5391 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
5392 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
5393 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
5394 (struct linux_target_ops) <breakpoint>: Remove.
5395 (struct linux_target_ops) <breakpoint_len>: Remove.
5396 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
5397 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
5398 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
5399 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
5400 (struct linux_target_ops) <breakpoint>: Remove.
5401 (struct linux_target_ops) <breakpoint_len>: Remove.
5402 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
5403 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
5404 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
5405 (struct linux_target_ops) <breakpoint>: Remove.
5406 (struct linux_target_ops) <breakpoint_len>: Remove.
5407 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
5408 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
5409
5410 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
5411
5412 * linux-cris-low.c (cris_get_pc): Remove void arg.
5413
5414 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
5415
5416 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
5417 variable name.
5418
5419 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
5420
5421 * inferiors.c (thread_pid_matches_callback): New function.
5422 (find_thread_process): New function.
5423 (remove_thread): Reset current_thread.
5424 (remove_process): Assert threads have been removed first.
5425
5426 2015-10-15 Yao Qi <yao.qi@linaro.org>
5427
5428 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
5429 if it is 3.
5430 (aarch64_remove_point): Likewise.
5431 * regcache.c (regcache_register_size): New function.
5432
5433 2015-10-12 Yao Qi <yao.qi@linaro.org>
5434
5435 * linux-aarch64-low.c: Update all callers as emit_load_store
5436 is renamed to aarch64_emit_load_store.
5437
5438 2015-10-12 Yao Qi <yao.qi@linaro.org>
5439
5440 * linux-aarch64-low.c: Update all callers of function renaming
5441 from emit_insn to aarch64_emit_insn.
5442
5443 2015-10-12 Yao Qi <yao.qi@linaro.org>
5444
5445 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
5446 arch/aarch64-insn.h.
5447 (struct aarch64_memory_operand): Likewise.
5448 (ENCODE): Likewise.
5449 (emit_insn): Move to arch/aarch64-insn.c.
5450 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
5451 (emit_load_store): Move to arch/aarch64-insn.c.
5452 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
5453 (can_encode_int32): Remove.
5454
5455 2015-10-12 Yao Qi <yao.qi@linaro.org>
5456
5457 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
5458 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
5459 (aarch64_relocate_instruction): Likewise.
5460 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
5461 (struct aarch64_insn_visitor): Likewise.
5462
5463 2015-10-12 Yao Qi <yao.qi@linaro.org>
5464
5465 * linux-aarch64-low.c (struct aarch64_insn_data): New.
5466 (struct aarch64_insn_visitor): New.
5467 (struct aarch64_insn_relocation_data): New.
5468 (aarch64_ftrace_insn_reloc_b): New function.
5469 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
5470 (aarch64_ftrace_insn_reloc_cb): Likewise.
5471 (aarch64_ftrace_insn_reloc_tb): Likewise.
5472 (aarch64_ftrace_insn_reloc_adr): Likewise.
5473 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
5474 (aarch64_ftrace_insn_reloc_others): Likewise.
5475 (visitor): New.
5476 (aarch64_relocate_instruction): Use visitor.
5477
5478 2015-10-12 Yao Qi <yao.qi@linaro.org>
5479
5480 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
5481 int. Add argument buf.
5482 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
5483 aarch64_relocate_instruction.
5484
5485 2015-10-12 Yao Qi <yao.qi@linaro.org>
5486
5487 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
5488 argument insn. Remove local variable insn. Don't call
5489 target_read_uint32.
5490 (aarch64_install_fast_tracepoint_jump_pad): Call
5491 target_read_uint32.
5492
5493 2015-09-30 Yao Qi <yao.qi@linaro.org>
5494
5495 * linux-aarch64-low.c (emit_movk): Shorten a long line.
5496 (emit_load_store_pair): Likewise.
5497
5498 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
5499
5500 * dll.c (match_dll): Add cast(s).
5501 (unloaded_dll): Likewise.
5502 * linux-low.c (second_thread_of_pid_p): Likewise.
5503 (delete_lwp_callback): Likewise.
5504 (count_events_callback): Likewise.
5505 (select_event_lwp_callback): Likewise.
5506 (linux_set_resume_request): Likewise.
5507 * server.c (accumulate_file_name_length): Likewise.
5508 (emit_dll_description): Likewise.
5509 (handle_qxfer_threads_worker): Likewise.
5510 (visit_actioned_threads): Likewise.
5511 * thread-db.c (any_thread_of): Likewise.
5512 * tracepoint.c (same_process_p): Likewise.
5513 (match_blocktype): Likewise.
5514 (build_traceframe_info_xml): Likewise.
5515
5516 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
5517
5518 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
5519 assignment.
5520 (gdb_unparse_agent_expr): Likewise.
5521 * hostio.c (require_data): Likewise.
5522 (handle_pread): Likewise.
5523 * linux-low.c (disable_regset): Likewise.
5524 (fetch_register): Likewise.
5525 (store_register): Likewise.
5526 (get_dynamic): Likewise.
5527 (linux_qxfer_libraries_svr4): Likewise.
5528 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
5529 (set_fast_tracepoint_jump): Likewise.
5530 (uninsert_fast_tracepoint_jumps_at): Likewise.
5531 (reinsert_fast_tracepoint_jumps_at): Likewise.
5532 (validate_inserted_breakpoint): Likewise.
5533 (clone_agent_expr): Likewise.
5534 * regcache.c (init_register_cache): Likewise.
5535 * remote-utils.c (putpkt_binary_1): Likewise.
5536 (decode_M_packet): Likewise.
5537 (decode_X_packet): Likewise.
5538 (look_up_one_symbol): Likewise.
5539 (relocate_instruction): Likewise.
5540 (monitor_output): Likewise.
5541 * server.c (handle_search_memory): Likewise.
5542 (handle_qxfer_exec_file): Likewise.
5543 (handle_qxfer_libraries): Likewise.
5544 (handle_qxfer): Likewise.
5545 (handle_query): Likewise.
5546 (handle_v_cont): Likewise.
5547 (handle_v_run): Likewise.
5548 (captured_main): Likewise.
5549 * target.c (write_inferior_memory): Likewise.
5550 * thread-db.c (try_thread_db_load_from_dir): Likewise.
5551 * tracepoint.c (init_trace_buffer): Likewise.
5552 (add_tracepoint_action): Likewise.
5553 (add_traceframe): Likewise.
5554 (add_traceframe_block): Likewise.
5555 (cmd_qtdpsrc): Likewise.
5556 (cmd_qtdv): Likewise.
5557 (cmd_qtstatus): Likewise.
5558 (response_source): Likewise.
5559 (response_tsv): Likewise.
5560 (cmd_qtnotes): Likewise.
5561 (gdb_collect): Likewise.
5562 (initialize_tracepoint): Likewise.
5563
5564 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
5565
5566 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
5567 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
5568 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
5569 <NOP>: New.
5570 (enum aarch64_condition_codes): New enum.
5571 (w0): New static global.
5572 (fp): Likewise.
5573 (lr): Likewise.
5574 (struct aarch64_memory_operand) <type>: New
5575 MEMORY_OPERAND_POSTINDEX type.
5576 (postindex_memory_operand): New helper function.
5577 (emit_ret): New function.
5578 (emit_load_store_pair): New function, factored out of emit_stp
5579 with support for MEMORY_OPERAND_POSTINDEX.
5580 (emit_stp): Rewrite using emit_load_store_pair.
5581 (emit_ldp): New function.
5582 (emit_load_store): Likewise.
5583 (emit_ldr): Mention post-index instruction in comment.
5584 (emit_ldrh): New function.
5585 (emit_ldrb): New function.
5586 (emit_ldrsw): Mention post-index instruction in comment.
5587 (emit_str): Likewise.
5588 (emit_subs): New function.
5589 (emit_cmp): Likewise.
5590 (emit_and): Likewise.
5591 (emit_orr): Likewise.
5592 (emit_orn): Likewise.
5593 (emit_eor): Likewise.
5594 (emit_mvn): Likewise.
5595 (emit_lslv): Likewise.
5596 (emit_lsrv): Likewise.
5597 (emit_asrv): Likewise.
5598 (emit_mul): Likewise.
5599 (emit_sbfm): Likewise.
5600 (emit_sbfx): Likewise.
5601 (emit_ubfm): Likewise.
5602 (emit_ubfx): Likewise.
5603 (emit_csinc): Likewise.
5604 (emit_cset): Likewise.
5605 (emit_nop): Likewise.
5606 (emit_ops_insns): New helper function.
5607 (emit_pop): Likewise.
5608 (emit_push): Likewise.
5609 (aarch64_emit_prologue): New function.
5610 (aarch64_emit_epilogue): Likewise.
5611 (aarch64_emit_add): Likewise.
5612 (aarch64_emit_sub): Likewise.
5613 (aarch64_emit_mul): Likewise.
5614 (aarch64_emit_lsh): Likewise.
5615 (aarch64_emit_rsh_signed): Likewise.
5616 (aarch64_emit_rsh_unsigned): Likewise.
5617 (aarch64_emit_ext): Likewise.
5618 (aarch64_emit_log_not): Likewise.
5619 (aarch64_emit_bit_and): Likewise.
5620 (aarch64_emit_bit_or): Likewise.
5621 (aarch64_emit_bit_xor): Likewise.
5622 (aarch64_emit_bit_not): Likewise.
5623 (aarch64_emit_equal): Likewise.
5624 (aarch64_emit_less_signed): Likewise.
5625 (aarch64_emit_less_unsigned): Likewise.
5626 (aarch64_emit_ref): Likewise.
5627 (aarch64_emit_if_goto): Likewise.
5628 (aarch64_emit_goto): Likewise.
5629 (aarch64_write_goto_address): Likewise.
5630 (aarch64_emit_const): Likewise.
5631 (aarch64_emit_call): Likewise.
5632 (aarch64_emit_reg): Likewise.
5633 (aarch64_emit_pop): Likewise.
5634 (aarch64_emit_stack_flush): Likewise.
5635 (aarch64_emit_zero_ext): Likewise.
5636 (aarch64_emit_swap): Likewise.
5637 (aarch64_emit_stack_adjust): Likewise.
5638 (aarch64_emit_int_call_1): Likewise.
5639 (aarch64_emit_void_call_2): Likewise.
5640 (aarch64_emit_eq_goto): Likewise.
5641 (aarch64_emit_ne_goto): Likewise.
5642 (aarch64_emit_lt_goto): Likewise.
5643 (aarch64_emit_le_goto): Likewise.
5644 (aarch64_emit_gt_goto): Likewise.
5645 (aarch64_emit_ge_got): Likewise.
5646 (aarch64_emit_ops_impl): New static global variable.
5647 (aarch64_emit_ops): New target function, return
5648 &aarch64_emit_ops_impl.
5649 (struct linux_target_ops): Install it.
5650
5651 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
5652
5653 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
5654 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
5655 aarch64-ipa.o.
5656 * linux-aarch64-ipa.c: New file.
5657 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
5658 and endian.h.
5659 (aarch64_get_thread_area): New target method.
5660 (extract_signed_bitfield): New helper function.
5661 (aarch64_decode_ldr_literal): New function.
5662 (enum aarch64_opcodes): New enum.
5663 (struct aarch64_register): New struct.
5664 (struct aarch64_operand): New struct.
5665 (x0): New static global.
5666 (x1): Likewise.
5667 (x2): Likewise.
5668 (x3): Likewise.
5669 (x4): Likewise.
5670 (w2): Likewise.
5671 (ip0): Likewise.
5672 (sp): Likewise.
5673 (xzr): Likewise.
5674 (aarch64_register): New helper function.
5675 (register_operand): Likewise.
5676 (immediate_operand): Likewise.
5677 (struct aarch64_memory_operand): New struct.
5678 (offset_memory_operand): New helper function.
5679 (preindex_memory_operand): Likewise.
5680 (enum aarch64_system_control_registers): New enum.
5681 (ENCODE): New macro.
5682 (emit_insn): New helper function.
5683 (emit_b): New function.
5684 (emit_bcond): Likewise.
5685 (emit_cb): Likewise.
5686 (emit_tb): Likewise.
5687 (emit_blr): Likewise.
5688 (emit_stp): Likewise.
5689 (emit_ldp_q_offset): Likewise.
5690 (emit_stp_q_offset): Likewise.
5691 (emit_load_store): Likewise.
5692 (emit_ldr): Likewise.
5693 (emit_ldrsw): Likewise.
5694 (emit_str): Likewise.
5695 (emit_ldaxr): Likewise.
5696 (emit_stxr): Likewise.
5697 (emit_stlr): Likewise.
5698 (emit_data_processing_reg): Likewise.
5699 (emit_data_processing): Likewise.
5700 (emit_add): Likewise.
5701 (emit_sub): Likewise.
5702 (emit_mov): Likewise.
5703 (emit_movk): Likewise.
5704 (emit_mov_addr): Likewise.
5705 (emit_mrs): Likewise.
5706 (emit_msr): Likewise.
5707 (emit_sevl): Likewise.
5708 (emit_wfe): Likewise.
5709 (append_insns): Likewise.
5710 (can_encode_int32_in): New helper function.
5711 (aarch64_relocate_instruction): New function.
5712 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
5713 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
5714 (struct linux_target_ops): Install aarch64_get_thread_area,
5715 aarch64_install_fast_tracepoint_jump_pad and
5716 aarch64_get_min_fast_tracepoint_insn_len.
5717
5718 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
5719
5720 * Makefile.in (aarch64-insn.o): New rule.
5721 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
5722
5723 2015-09-21 Yao Qi <yao.qi@linaro.org>
5724
5725 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
5726
5727 2015-09-21 Yao Qi <yao.qi@linaro.org>
5728
5729 * tracepoint.c (max_jump_pad_size): Remove.
5730
5731 2015-09-18 Yao Qi <yao.qi@linaro.org>
5732
5733 * linux-aarch64-low.c: Don't include sys/uio.h.
5734 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
5735
5736 2015-09-16 Wei-cheng Wang <cole945@gmail.com>
5737
5738 * tracepoint.c (eval_result_type): Change prototype.
5739 (condition_true_at_tracepoint): Fix argument to compiled_cond.
5740
5741 2015-09-15 Pedro Alves <palves@redhat.com>
5742
5743 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
5744 Check whether to report exec events instead of checking whether
5745 multiprocess is enabled.
5746
5747 2015-09-15 Pedro Alves <palves@redhat.com>
5748
5749 PR remote/18965
5750 * remote-utils.c (prepare_resume_reply): Merge
5751 TARGET_WAITKIND_VFORK_DONE switch case with the
5752 TARGET_WAITKIND_FORKED case.
5753
5754 2015-09-15 Yao Qi <yao.qi@linaro.org>
5755
5756 * server.c (handle_query): Check string comparison using
5757 "else if" instead of "if".
5758
5759 2015-09-15 Yao Qi <yao.qi@linaro.org>
5760
5761 * server.c (vCont_supported): New global variable.
5762 (handle_query): Set vCont_supported to 1 if "vContSupported+"
5763 matches. Append ";vContSupported+" to own_buf.
5764 (handle_v_requests): Append ";s;S" to own_buf if target supports
5765 hardware single step or vCont_supported is false.
5766 (capture_main): Set vCont_supported to zero.
5767
5768 2015-09-15 Yao Qi <yao.qi@linaro.org>
5769
5770 * linux-low.c (linux_supports_conditional_breakpoints): Rename
5771 it to ...
5772 (linux_supports_hardware_single_step): ... New function.
5773 (linux_target_ops): Update.
5774 * lynx-low.c (lynx_target_ops): Set field
5775 supports_hardware_single_step to target_can_do_hardware_single_step.
5776 * nto-low.c (nto_target_ops): Likewise.
5777 * spu-low.c (spu_target_ops): Likewise.
5778 * win32-low.c (win32_target_ops): Likewise.
5779 * target.c (target_can_do_hardware_single_step): New function.
5780 * target.h (struct target_ops) <supports_conditional_breakpoints>:
5781 Remove. <supports_hardware_single_step>: New field.
5782 (target_supports_conditional_breakpoints): Remove.
5783 (target_supports_hardware_single_step): New macro.
5784 (target_can_do_hardware_single_step): Declare.
5785 * server.c (handle_query): Use target_supports_hardware_single_step
5786 instead of target_supports_conditional_breakpoints.
5787
5788 2015-09-15 Yao Qi <yao.qi@linaro.org>
5789
5790 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
5791 function.
5792 (struct linux_target_ops the_low_target): Install
5793 aarch64_linux_siginfo_fixup.
5794
5795 2015-09-11 Don Breazeal <donb@codesourcery.com>
5796 Luis Machado <lgustavo@codesourcery.com>
5797
5798 * linux-low.c (linux_mourn): Static declaration.
5799 (linux_arch_setup): Move in front of
5800 handle_extended_wait.
5801 (linux_arch_setup_thread): New function.
5802 (handle_extended_wait): Handle exec events. Call
5803 linux_arch_setup_thread. Make event_lwp argument a
5804 pointer-to-a-pointer.
5805 (check_zombie_leaders): Do not check stopped threads.
5806 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
5807 (linux_low_filter_event): Add lwp and thread for exec'ing
5808 non-leader thread if leader thread has been deleted.
5809 Refactor code into linux_arch_setup_thread and call it.
5810 Pass child lwp pointer by reference to handle_extended_wait.
5811 (linux_wait_for_event_filtered): Update comment.
5812 (linux_wait_1): Prevent clobbering exec event status.
5813 (linux_supports_exec_events): New function.
5814 (linux_target_ops) <supports_exec_events>: Initialize new member.
5815 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
5816 new member.
5817 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
5818 * server.c (report_exec_events): New global variable.
5819 (handle_query): Handle qSupported query for exec-events feature.
5820 (captured_main): Initialize report_exec_events.
5821 * server.h (report_exec_events): Declare new global variable.
5822 * target.h (struct target_ops) <supports_exec_events>: New
5823 member.
5824 (target_supports_exec_events): New macro.
5825 * win32-low.c (win32_target_ops) <supports_exec_events>:
5826 Initialize new member.
5827
5828 2015-09-09 Markus Metzger <markus.t.metzger@intel.com>
5829
5830 * linux-low.c (linux_low_enable_btrace): Remove.
5831 (linux_target_ops): Replace linux_low_enable_btrace with
5832 linux_enable_btrace.
5833
5834 2015-09-03 Yao Qi <yao.qi@linaro.org>
5835
5836 * linux-aarch64-low.c (aarch64_insert_point): Call
5837 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
5838 returns true.
5839
5840 2015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5841
5842 * linux-low.c (check_stopped_by_breakpoint): Use
5843 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
5844
5845 2015-08-27 Pedro Alves <palves@redhat.com>
5846
5847 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
5848
5849 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
5850
5851 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
5852 the XNEW-family equivalent.
5853 (compile_bytecodes): Likewise.
5854 * dll.c (loaded_dll): Likewise.
5855 * event-loop.c (append_callback_event): Likewise.
5856 (create_file_handler): Likewise.
5857 (create_file_event): Likewise.
5858 * hostio.c (handle_open): Likewise.
5859 * inferiors.c (add_thread): Likewise.
5860 (add_process): Likewise.
5861 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
5862 * linux-arm-low.c (arm_new_process): Likewise.
5863 (arm_new_thread): Likewise.
5864 * linux-low.c (add_to_pid_list): Likewise.
5865 (linux_add_process): Likewise.
5866 (handle_extended_wait): Likewise.
5867 (add_lwp): Likewise.
5868 (enqueue_one_deferred_signal): Likewise.
5869 (enqueue_pending_signal): Likewise.
5870 (linux_resume_one_lwp_throw): Likewise.
5871 (linux_resume_one_thread): Likewise.
5872 (linux_read_memory): Likewise.
5873 (linux_write_memory): Likewise.
5874 * linux-mips-low.c (mips_linux_new_process): Likewise.
5875 (mips_linux_new_thread): Likewise.
5876 (mips_add_watchpoint): Likewise.
5877 * linux-x86-low.c (initialize_low_arch): Likewise.
5878 * lynx-low.c (lynx_add_process): Likewise.
5879 * mem-break.c (set_raw_breakpoint_at): Likewise.
5880 (set_breakpoint): Likewise.
5881 (add_condition_to_breakpoint): Likewise.
5882 (add_commands_to_breakpoint): Likewise.
5883 (clone_agent_expr): Likewise.
5884 (clone_one_breakpoint): Likewise.
5885 * regcache.c (new_register_cache): Likewise.
5886 * remote-utils.c (look_up_one_symbol): Likewise.
5887 * server.c (queue_stop_reply): Likewise.
5888 (start_inferior): Likewise.
5889 (queue_stop_reply_callback): Likewise.
5890 (handle_target_event): Likewise.
5891 * spu-low.c (fetch_ppc_memory): Likewise.
5892 (store_ppc_memory): Likewise.
5893 * target.c (set_target_ops): Likewise.
5894 * thread-db.c (thread_db_load_search): Likewise.
5895 (try_thread_db_load_1): Likewise.
5896 * tracepoint.c (add_tracepoint): Likewise.
5897 (add_tracepoint_action): Likewise.
5898 (create_trace_state_variable): Likewise.
5899 (cmd_qtdpsrc): Likewise.
5900 (cmd_qtro): Likewise.
5901 (add_while_stepping_state): Likewise.
5902 * win32-low.c (child_add_thread): Likewise.
5903 (get_image_name): Likewise.
5904
5905 2015-08-25 Yao Qi <yao.qi@linaro.org>
5906
5907 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
5908
5909 2015-08-25 Yao Qi <yao.qi@linaro.org>
5910
5911 * Makefile.in (aarch64-linux.o): New rule.
5912 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
5913 srv_tgtobj.
5914 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
5915 (aarch64_init_debug_reg_state): Make it extern.
5916 (aarch64_linux_prepare_to_resume): Remove.
5917
5918 2015-08-25 Yao Qi <yao.qi@linaro.org>
5919
5920 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
5921 lwp_arch_private_info and ptid_of_lwp.
5922
5923 2015-08-25 Yao Qi <yao.qi@linaro.org>
5924
5925 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
5926 Find proc_info by find_process_pid. All callers updated.
5927
5928 2015-08-25 Yao Qi <yao.qi@linaro.org>
5929
5930 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
5931 Remove.
5932 (debug_reg_change_callback): Remove.
5933 (aarch64_notify_debug_reg_change): Remove.
5934
5935 2015-08-25 Yao Qi <yao.qi@linaro.org>
5936
5937 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
5938 Call current_lwp_ptid.
5939
5940 2015-08-25 Yao Qi <yao.qi@linaro.org>
5941
5942 * linux-aarch64-low.c (debug_reg_change_callback): Use
5943 debug_printf.
5944
5945 2015-08-25 Yao Qi <yao.qi@linaro.org>
5946
5947 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
5948
5949 2015-08-25 Yao Qi <yao.qi@linaro.org>
5950
5951 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
5952
5953 2015-08-25 Yao Qi <yao.qi@linaro.org>
5954
5955 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
5956 the code.
5957
5958 2015-08-25 Yao Qi <yao.qi@linaro.org>
5959
5960 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
5961 Remove.
5962 (debug_reg_change_callback): Remove argument entry and add argument
5963 lwp. Remove local variable thread. Don't print thread id in the
5964 debugging output. Don't check whether pid of thread equals to pid.
5965 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
5966 iterate_over_lwps instead find_inferior.
5967
5968 2015-08-24 Pedro Alves <palves@redhat.com>
5969
5970 * inferiors.c (get_first_process): New function.
5971 * inferiors.h (get_first_process): New declaration.
5972 * remote-utils.c (read_ptid): Default to the first process in the
5973 list, instead of to the current thread's process.
5974
5975 2015-08-24 Pedro Alves <palves@redhat.com>
5976
5977 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
5978 * event-loop.c: Likewise.
5979 * remote-utils.c: Likewise.
5980 * tracepoint.c: Likewise.
5981
5982 2015-08-24 Pedro Alves <palves@redhat.com>
5983
5984 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
5985 ptid_get_lwp.
5986
5987 2015-08-21 Pedro Alves <palves@redhat.com>
5988
5989 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
5990 instead of literal 1.
5991
5992 2015-08-21 Pedro Alves <palves@redhat.com>
5993
5994 * tdesc.c (default_description): Explicitly zero-initialize.
5995
5996 2015-08-21 Pedro Alves <palves@redhat.com>
5997
5998 PR gdb/18749
5999 * inferiors.c (remove_thread): Discard any pending stop reply for
6000 this thread.
6001 * server.c (remove_all_on_match_pid): Rename to ...
6002 (remove_all_on_match_ptid): ... this. Work with a filter ptid
6003 instead of a pid.
6004 (discard_queued_stop_replies): Change parameter to a ptid. Now
6005 extern.
6006 (handle_v_kill, kill_inferior_callback, captured_main)
6007 (process_serial_event): Adjust.
6008 * server.h (discard_queued_stop_replies): Declare.
6009
6010 2015-08-21 Pedro Alves <palves@redhat.com>
6011
6012 * linux-low.c (wait_for_sigstop): Always switch to no thread
6013 selected if the previously current thread dies.
6014 * lynx-low.c (lynx_request_interrupt): Use the first thread's
6015 process instead of the current thread's.
6016 * remote-utils.c (input_interrupt): Don't check if there's no
6017 current thread.
6018 * server.c (gdb_read_memory, gdb_write_memory): If setting the
6019 current thread to the general thread fails, error out.
6020 (handle_qxfer_auxv, handle_qxfer_libraries)
6021 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
6022 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
6023 (handle_query): Check if there's a thread selected instead of
6024 checking whether there's any thread in the thread list.
6025 (handle_qxfer_threads, handle_qxfer_btrace)
6026 (handle_qxfer_btrace_conf): Don't error out early if there's no
6027 thread in the thread list.
6028 (handle_v_cont, myresume): Don't set the current thread to the
6029 continue thread.
6030 (process_serial_event) <Hg handling>: Also set thread_id if the
6031 previous general thread is still alive.
6032 (process_serial_event) <g/G handling>: If setting the current
6033 thread to the general thread fails, error out.
6034 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
6035 thread's lwp instead of the current thread's.
6036 * target.c (set_desired_thread): If the desired thread was not
6037 found, leave the current thread pointing to NULL. Return an int
6038 (boolean) indicating success.
6039 * target.h (set_desired_thread): Change return type to int.
6040
6041 2015-08-20 Max Filippov <jcmvbkbc@gmail.com>
6042
6043 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
6044 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
6045 #includes.
6046 (ps_get_thread_area): New function.
6047
6048 2015-08-19 Gary Benson <gbenson@redhat.com>
6049
6050 * hostio.c (handle_pread): Do not attempt to read more data
6051 than hostio_reply_with_data can fit in a packet.
6052
6053 2015-08-18 Joel Brobecker <brobecker@adacore.com>
6054
6055 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
6056
6057 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
6058
6059 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
6060
6061 2015-08-06 Pedro Alves <palves@redhat.com>
6062
6063 * tracepoint.c (expr_eval_result): Now an int.
6064
6065 2015-08-06 Pedro Alves <palves@redhat.com>
6066
6067 * gdbthread.h (struct regcache): Forward declare.
6068 (struct thread_info) <regcache_data>: Now a struct regcache
6069 pointer.
6070 * inferiors.c (inferior_regcache_data)
6071 (set_inferior_regcache_data): Now work with struct regcache
6072 pointers.
6073 * inferiors.h (struct regcache): Forward declare.
6074 (inferior_regcache_data, set_inferior_regcache_data): Now work
6075 with struct regcache pointers.
6076 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
6077 (free_register_cache_thread): Remove struct regcache pointer
6078 casts.
6079
6080 2015-08-06 Pedro Alves <palves@redhat.com>
6081
6082 * server.c (captured_main): On error, print the exception message
6083 to stderr, and if run_once is set, throw a quit.
6084
6085 2015-08-06 Pedro Alves <palves@redhat.com>
6086
6087 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
6088 the current thread.
6089
6090 2015-08-06 Pedro Alves <palves@redhat.com>
6091
6092 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
6093 reading beyond the passed in buffer length.
6094
6095 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
6096
6097 * tracepoint.c (symbol_list) <required>: Remove.
6098
6099 2015-08-06 Pedro Alves <palves@redhat.com>
6100
6101 * linux-low.c (handle_extended_wait): Set the fork child's suspend
6102 count if stopping and suspending threads.
6103 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
6104 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
6105 (linux_detach): Complete an ongoing step-over.
6106 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
6107 throughout.
6108 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
6109 (linux_wait_1): If passing a signal to the inferior after
6110 finishing a step-over, unsuspend and re-resume all lwps. If we
6111 see a single-step event but the thread should be continuing, don't
6112 pass the trap to gdb.
6113 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
6114 internal_error instead of gdb_assert.
6115 (enqueue_pending_signal): New function.
6116 (check_ptrace_stopped_lwp_gone): Add debug output.
6117 (start_step_over): Use internal_error instead of gdb_assert.
6118 (complete_ongoing_step_over): New function.
6119 (linux_resume_one_thread): Don't resume a suspended thread.
6120 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
6121 it stepping.
6122
6123 2015-08-06 Pedro Alves <palves@redhat.com>
6124
6125 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
6126 (linux_thread_alive): Use lwp_is_marked_dead.
6127 (extended_event_reported): Delete.
6128 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
6129 instead of extended_event_reported.
6130 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
6131 as well.
6132 (lwp_is_marked_dead): New function.
6133 (lwp_running): Use lwp_is_marked_dead.
6134 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
6135 comment.
6136
6137 2015-08-06 Pedro Alves <palves@redhat.com>
6138
6139 * linux-low.c (linux_wait_1): Move fork event output out of the
6140 !report_to_gdb check. Pass event_child->waitstatus to
6141 target_waitstatus_to_string instead of ourstatus.
6142
6143 2015-08-04 Yao Qi <yao.qi@linaro.org>
6144
6145 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
6146 if current_thread is 32 bit.
6147
6148 2015-08-04 Yao Qi <yao.qi@linaro.org>
6149
6150 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
6151 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
6152 * server.c (extended_protocol): Remove "static".
6153 * server.h (extended_protocol): Declare it.
6154
6155 2015-08-04 Yao Qi <yao.qi@linaro.org>
6156
6157 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
6158 both aarch64 and aarch32.
6159 (aarch64_set_pc): Likewise.
6160
6161 2015-08-04 Yao Qi <yao.qi@linaro.org>
6162
6163 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
6164 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
6165 arm-with-neon.xml to srv_xmlfiles.
6166 * linux-aarch64-low.c: Include linux-aarch32-low.h.
6167 (is_64bit_tdesc): New function.
6168 (aarch64_linux_read_description): New function.
6169 (aarch64_arch_setup): Call aarch64_linux_read_description.
6170 (regs_info): Rename to regs_info_aarch64.
6171 (aarch64_regs_info): Return right regs_info.
6172 (initialize_low_arch): Call initialize_low_arch_aarch32.
6173
6174 2015-08-04 Yao Qi <yao.qi@linaro.org>
6175
6176 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
6177 * linux-aarch32-low.c: New file.
6178 * linux-aarch32-low.h: New file.
6179 * linux-arm-low.c (arm_fill_gregset): Move it to
6180 linux-aarch32-low.c.
6181 (arm_store_gregset): Likewise.
6182 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
6183 (arm_store_vfpregset): Call arm_store_vfpregset_num.
6184 (arm_arch_setup): Check if PTRACE_GETREGSET works.
6185 (regs_info): Rename to regs_info_arm.
6186 (arm_regs_info): Return regs_info_aarch32 if
6187 have_ptrace_getregset is 1 and target description is
6188 arm_with_neon or arm_with_vfpv3.
6189 (initialize_low_arch): Don't call init_registers_arm_with_neon.
6190 Call initialize_low_arch_aarch32 instead.
6191
6192 2015-08-04 Yao Qi <yao.qi@linaro.org>
6193
6194 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
6195 * linux-low.c: ... here.
6196 * linux-low.h (have_ptrace_getregset): Declare it.
6197
6198 2015-08-04 Pedro Alves <palves@redhat.com>
6199
6200 * thread-db.c (struct thread_db): Use new typedefs.
6201 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
6202 CHK calls.
6203 (disable_thread_event_reporting): Cast result of dlsym to
6204 destination function pointer type.
6205 (thread_db_mourn): Use td_ta_delete_ftype.
6206
6207 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
6208
6209 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
6210 arch variant.
6211 (CDX_BREAKPOINT): Define for R2.
6212 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
6213 (the_low_target): Add comments.
6214
6215 2015-07-30 Yao Qi <yao.qi@linaro.org>
6216
6217 * linux-arm-low.c (arm_hwcap): Remove it.
6218 (arm_read_description): New local variable arm_hwcap. Don't
6219 set arm_hwcap to zero.
6220
6221 2015-07-30 Yao Qi <yao.qi@linaro.org>
6222
6223 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
6224 Use regcache->tdesc instead.
6225 (arm_store_wmmxregset): Likewise.
6226 (arm_fill_vfpregset): Likewise.
6227 (arm_store_vfpregset): Likewise.
6228
6229 2015-07-30 Yao Qi <yao.qi@linaro.org>
6230
6231 * linux-arm-low.c: Include arch/arm.h.
6232 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
6233 (arm_store_gregset): Likewise.
6234
6235 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
6236
6237 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
6238 ptrace's 4th parameter.
6239
6240 2015-07-27 Yao Qi <yao.qi@linaro.org>
6241
6242 * configure.srv (case aarch64*-*-linux*): Don't set
6243 srv_linux_usrregs.
6244
6245 2015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
6246
6247 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
6248 sys/ptrace.h.
6249 * linux-arm-low.c: Likewise.
6250 * linux-cris-low.c: Likewise.
6251 * linux-crisv32-low.c: Likewise.
6252 * linux-low.c: Likewise.
6253 * linux-m68k-low.c: Likewise.
6254 * linux-mips-low.c: Likewise.
6255 * linux-nios2-low.c: Likewise.
6256 * linux-s390-low.c: Likewise.
6257 * linux-sparc-low.c: Likewise.
6258 * linux-tic6x-low.c: Likewise.
6259 * linux-tile-low.c: Likewise.
6260 * linux-x86-low.c: Likewise.
6261
6262 2015-07-24 Pedro Alves <palves@redhat.com>
6263
6264 * config.in: Regenerate.
6265 * configure: Regenerate.
6266
6267 2015-07-24 Pedro Alves <palves@redhat.com>
6268
6269 * acinclude.m4: Include ../ptrace.m4.
6270 * configure.ac: Call GDB_AC_PTRACE.
6271 * config.in, configure: Regenerate.
6272
6273 2015-07-24 Yao Qi <yao.qi@linaro.org>
6274
6275 * linux-low.c (linux_create_inferior): Remove setting to
6276 proc->priv->new_inferior.
6277 (linux_attach): Likewise.
6278 (linux_low_filter_event): Likewise.
6279 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
6280
6281 2015-07-24 Yao Qi <yao.qi@linaro.org>
6282
6283 * linux-low.c (linux_arch_setup): New function.
6284 (linux_low_filter_event): If proc->tdesc is NULL and
6285 proc->attached is true, call the_low_target.arch_setup.
6286 Otherwise, keep status pending, and return.
6287 (linux_resume_one_lwp_throw): Don't call get_pc if
6288 thread->while_stepping isn't NULL. Don't call
6289 get_thread_regcache if proc->tdesc is NULL.
6290 (need_step_over_p): Return 0 if proc->tdesc is NULL.
6291 (linux_target_ops): Install arch_setup.
6292 * server.c (start_inferior): Call the_target->arch_setup.
6293 * target.h (struct target_ops) <arch_setup>: New field.
6294 (target_arch_setup): New marco.
6295 * lynx-low.c (lynx_target_ops): Update.
6296 * nto-low.c (nto_target_ops): Update.
6297 * spu-low.c (spu_target_ops): Update.
6298 * win32-low.c (win32_target_ops): Update.
6299
6300 2015-07-24 Yao Qi <yao.qi@linaro.org>
6301
6302 * linux-low.c (linux_add_process): Don't set
6303 proc->priv->new_inferior.
6304 (linux_create_inferior): Set proc->priv->new_inferior to 1.
6305 (linux_attach): Likewise.
6306
6307 2015-07-24 Yao Qi <yao.qi@linaro.org>
6308
6309 * server.c (start_inferior): Code refactor.
6310
6311 2015-07-24 Yao Qi <yao.qi@linaro.org>
6312
6313 * server.c (process_serial_event): Set general_thread.
6314
6315 2015-07-21 Yao Qi <yao.qi@linaro.org>
6316
6317 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
6318 aarch64_linux_get_debug_reg_capacity.
6319
6320 2015-07-17 Yao Qi <yao.qi@linaro.org>
6321
6322 * Makefile.in (aarch64-linux-hw-point.o): New rule.
6323 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
6324 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
6325 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
6326 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
6327 (AARCH64_HWP_ALIGNMENT): Likewise.
6328 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
6329 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
6330 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
6331 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
6332 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
6333 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
6334 (struct aarch64_debug_reg_state): Likewise.
6335 (struct arch_lwp_info): Likewise.
6336 (aarch64_align_watchpoint): Likewise.
6337 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
6338 (aarch64_watchpoint_length): Likewise.
6339 (aarch64_point_encode_ctrl_reg): Likewise
6340 (aarch64_point_is_aligned): Likewise.
6341 (aarch64_align_watchpoint): Likewise.
6342 (aarch64_linux_set_debug_regs):
6343 (aarch64_dr_state_insert_one_point): Likewise.
6344 (aarch64_dr_state_remove_one_point): Likewise.
6345 (aarch64_handle_breakpoint): Likewise.
6346 (aarch64_handle_aligned_watchpoint): Likewise.
6347 (aarch64_handle_unaligned_watchpoint): Likewise.
6348 (aarch64_handle_watchpoint): Likewise.
6349
6350 2015-07-17 Yao Qi <yao.qi@linaro.org>
6351
6352 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
6353 and don't aarch64_get_debug_reg_state. All callers update.
6354 (aarch64_handle_aligned_watchpoint): Likewise.
6355 (aarch64_handle_unaligned_watchpoint): Likewise.
6356 (aarch64_handle_watchpoint): Likewise.
6357 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
6358 (aarch64_remove_point): Likewise.
6359
6360 2015-07-17 Yao Qi <yao.qi@linaro.org>
6361
6362 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
6363 debug_printf.
6364 (aarch64_handle_unaligned_watchpoint): Likewise.
6365
6366 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6367
6368 Revert the previous 3 commits:
6369 Move gdb_regex* to common/
6370 Move linux_find_memory_regions_full & co.
6371 gdbserver build-id attribute generator
6372
6373 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6374 Jan Kratochvil <jan.kratochvil@redhat.com>
6375
6376 gdbserver build-id attribute generator.
6377 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
6378 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
6379 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
6380 (find_phdr): New.
6381 (get_dynamic): Use find_pdhr to traverse program headers.
6382 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
6383 (compare_mapping_entry_range, struct find_memory_region_callback_data)
6384 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
6385 (get_hex_build_id): New.
6386 (linux_qxfer_libraries_svr4): Add optional build-id attribute
6387 to reply XML document.
6388
6389 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6390 Jan Kratochvil <jan.kratochvil@redhat.com>
6391
6392 * target.c: Include target/target-utils.h and fcntl.h.
6393 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
6394 (target_fileio_read_stralloc): New functions.
6395
6396 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6397
6398 * Makefile.in (OBS): Add gdb_regex.o.
6399 (gdb_regex.o): New.
6400 * config.in: Rebuilt.
6401 * configure: Rebuilt.
6402
6403 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6404 Jan Kratochvil <jan.kratochvil@redhat.com>
6405
6406 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
6407 * Makefile.in (OBS): Add target-utils.o.
6408 (linux-maps.o, target-utils.o): New.
6409 * configure.srv (srv_linux_obj): Add linux-maps.o.
6410
6411 2015-07-15 Pierre Langlois <pierre.langlois@arm.com>
6412
6413 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
6414 function, return 1.
6415 (the_low_target): Install it.
6416
6417 2015-07-14 Pedro Alves <palves@redhat.com>
6418
6419 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
6420 Instead, ignore ECHILD, and throw an error for other errnos.
6421
6422 2015-07-10 Pedro Alves <palves@redhat.com>
6423
6424 * event-loop.c (struct callback_event) <data>: Change type to
6425 gdb_client_data instance instead of gdb_client_data pointer.
6426 (append_callback_event): Adjust.
6427
6428 2015-07-10 Pierre Langlois <pierre.langlois@arm.com>
6429
6430 * linux-aarch64-low.c: Add comments for each linux_target_ops
6431 method. Remove comments already covered in target_ops and
6432 linux_target_ops definitions.
6433 (the_low_target): Add comments for each unimplemented method.
6434
6435 2015-07-09 Yao Qi <yao.qi@linaro.org>
6436
6437 * linux-aarch64-low.c (aarch64_regmap): Remove.
6438 (aarch64_usrregs_info): Remove.
6439 (regs_info): Set field usrregs to NULL.
6440
6441 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6442
6443 * linux-low.c: Include "rsp-low.h"
6444 (linux_low_encode_pt_config, linux_low_encode_raw): New.
6445 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
6446 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
6447 (handle_btrace_enable_pt): New.
6448 (handle_btrace_general_set): Support "pt".
6449 (handle_btrace_conf_general_set): Support "pt:size".
6450
6451 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
6452
6453 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
6454 Z_PACKET_SW_BP.
6455
6456 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
6457
6458 * linux-aarch64-low.c: Remove comment about endianness.
6459 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
6460 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
6461 memcmp.
6462
6463 2015-06-24 Gary Benson <gbenson@redhat.com>
6464
6465 * linux-i386-ipa.c (stdint.h): Do not include.
6466 * lynx-i386-low.c (stdint.h): Likewise.
6467 * lynx-ppc-low.c (stdint.h): Likewise.
6468 * mem-break.c (stdint.h): Likewise.
6469 * thread-db.c (stdint.h): Likewise.
6470 * tracepoint.c (stdint.h): Likewise.
6471 * win32-low.c (stdint.h): Likewise.
6472
6473 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
6474
6475 * server.c (write_qxfer_response): Update call to
6476 remote_escape_output.
6477
6478 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
6479 Jan Kratochvil <jan.kratochvil@redhat.com>
6480
6481 Merge multiple hex conversions.
6482 * gdbreplay.c (tohex): Rename to 'fromhex'.
6483 (logchar): Use fromhex.
6484
6485 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
6486
6487 * server.c (handle_qxfer_libraries): Set `version' attribute for
6488 <library-list>.
6489
6490 2015-06-10 Gary Benson <gbenson@redhat.com>
6491
6492 * target.h (struct target_ops) <multifs_open>: New field.
6493 <multifs_unlink>: Likewise.
6494 <multifs_readlink>: Likewise.
6495 * linux-low.c (nat/linux-namespaces.h): New include.
6496 (linux_target_ops): Initialize the_target->multifs_open,
6497 the_target->multifs_unlink and the_target->multifs_readlink.
6498 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
6499 * hostio.c (hostio_fs_pid): New static variable.
6500 (hostio_handle_new_gdb_connection): New function.
6501 (handle_setfs): Likewise.
6502 (handle_open): Use the_target->multifs_open as appropriate.
6503 (handle_unlink): Use the_target->multifs_unlink as appropriate.
6504 (handle_readlink): Use the_target->multifs_readlink as
6505 appropriate.
6506 (handle_vFile): Handle vFile:setfs packets.
6507 * server.c (handle_query): Call hostio_handle_new_gdb_connection
6508 after target_handle_new_gdb_connection.
6509
6510 2015-06-10 Gary Benson <gbenson@redhat.com>
6511
6512 * configure.ac (AC_CHECK_FUNCS): Add setns.
6513 * config.in: Regenerate.
6514 * configure: Likewise.
6515 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
6516 (linux-namespaces.o): New rule.
6517 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
6518
6519 2015-06-09 Gary Benson <gbenson@redhat.com>
6520
6521 * hostio.c (handle_open): Process mode argument with
6522 fileio_to_host_mode.
6523
6524 2015-06-01 Yao Qi <yao.qi@linaro.org>
6525
6526 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
6527 * linux-x86-low.c: Likewise.
6528
6529 2015-05-28 Don Breazeal <donb@codesourcery.com>
6530
6531 * linux-low.c (handle_extended_wait): Initialize
6532 thread_info.last_resume_kind for new fork children.
6533
6534 2015-05-15 Pedro Alves <palves@redhat.com>
6535
6536 * target.h (target_handle_new_gdb_connection): Rewrite using if
6537 wrapped in do/while.
6538
6539 2015-05-14 Joel Brobecker <brobecker@adacore.com>
6540
6541 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
6542 * configure, config.in: Regenerate.
6543 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
6544 Declare typedef.
6545
6546 2015-05-12 Don Breazeal <donb@codesourcery.com>
6547
6548 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
6549 PTRACE_EVENT_VFORK_DONE.
6550 (linux_low_ptrace_options, extended_event_reported): Add vfork
6551 events.
6552 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
6553 and "vforkdone" for RSP 'T' Stop Reply Packet.
6554 * server.h (report_vfork_events): Declare
6555 global variable.
6556
6557 2015-05-12 Don Breazeal <donb@codesourcery.com>
6558
6559 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
6560 (the_low_target) <new_fork>: Initialize new member.
6561 * linux-arm-low.c (arm_new_fork): New function.
6562 (the_low_target) <new_fork>: Initialize new member.
6563 * linux-low.c (handle_extended_wait): Call new target function
6564 new_fork.
6565 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
6566 * linux-mips-low.c (mips_add_watchpoint): New function
6567 extracted from mips_insert_point.
6568 (the_low_target) <new_fork>: Initialize new member.
6569 (mips_linux_new_fork): New function.
6570 (mips_insert_point): Call mips_add_watchpoint.
6571 * linux-x86-low.c (x86_linux_new_fork): New function.
6572 (the_low_target) <new_fork>: Initialize new member.
6573
6574 2015-05-12 Don Breazeal <donb@codesourcery.com>
6575
6576 * linux-low.c (handle_extended_wait): Implement return value,
6577 rename argument 'event_child' to 'event_lwp', handle
6578 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
6579 (linux_low_ptrace_options): New function.
6580 (linux_low_filter_event): Call linux_low_ptrace_options,
6581 use different argument fo linux_enable_event_reporting,
6582 use return value from handle_extended_wait.
6583 (extended_event_reported): New function.
6584 (linux_wait_1): Call extended_event_reported and set
6585 status to report fork events.
6586 (linux_write_memory): Add pid to debug message.
6587 (reset_lwp_ptrace_options_callback): New function.
6588 (linux_handle_new_gdb_connection): New function.
6589 (linux_target_ops): Initialize new structure member.
6590 * linux-low.h (struct lwp_info) <waitstatus>: New member.
6591 * lynx-low.c: Initialize new structure member.
6592 * remote-utils.c (prepare_resume_reply): Implement stop reason
6593 "fork" for "T" stop message.
6594 * server.c (handle_query): Call handle_new_gdb_connection.
6595 * server.h (report_fork_events): Declare global flag.
6596 * target.h (struct target_ops) <handle_new_gdb_connection>:
6597 New member.
6598 (target_handle_new_gdb_connection): New macro.
6599 * win32-low.c: Initialize new structure member.
6600
6601 2015-05-12 Don Breazeal <donb@codesourcery.com>
6602
6603 * mem-break.c (APPEND_TO_LIST): Define macro.
6604 (clone_agent_expr): New function.
6605 (clone_one_breakpoint): New function.
6606 (clone_all_breakpoints): New function.
6607 * mem-break.h: Declare new functions.
6608
6609 2015-05-12 Don Breazeal <donb@codesourcery.com>
6610
6611 * linux-low.c (linux_supports_fork_events): New function.
6612 (linux_supports_vfork_events): New function.
6613 (linux_target_ops): Initialize new structure members.
6614 (initialize_low): Call linux_check_ptrace_features.
6615 * lynx-low.c (lynx_target_ops): Initialize new structure
6616 members.
6617 * server.c (report_fork_events, report_vfork_events):
6618 New global flags.
6619 (handle_query): Add new features to qSupported packet and
6620 response.
6621 (captured_main): Initialize new global variables.
6622 * target.h (struct target_ops) <supports_fork_events>:
6623 New member.
6624 <supports_vfork_events>: New member.
6625 (target_supports_fork_events): New macro.
6626 (target_supports_vfork_events): New macro.
6627 * win32-low.c (win32_target_ops): Initialize new structure
6628 members.
6629
6630 2015-05-12 Gary Benson <gbenson@redhat.com>
6631
6632 * server.c (handle_qxfer_exec_file): Use current process
6633 if annex is empty.
6634
6635 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
6636
6637 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
6638 Remove HAVE_PTRACE_GETREGS conditionals.
6639 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
6640 instead of PTRACE_GETREGS and PTRACE_SETREGS.
6641
6642 2015-05-08 Yao Qi <yao.qi@linaro.org>
6643
6644 * linux-low.c (linux_supports_conditional_breakpoints): New
6645 function.
6646 (linux_target_ops): Install new target method.
6647 * lynx-low.c (lynx_target_ops): Install NULL hook for
6648 supports_conditional_breakpoints.
6649 * nto-low.c (nto_target_ops): Likewise.
6650 * spu-low.c (spu_target_ops): Likewise.
6651 * win32-low.c (win32_target_ops): Likewise.
6652 * server.c (handle_query): Check
6653 target_supports_conditional_breakpoints.
6654 * target.h (struct target_ops) <supports_conditional_breakpoints>:
6655 New field.
6656 (target_supports_conditional_breakpoints): New macro.
6657
6658 2015-05-06 Pedro Alves <palves@redhat.com>
6659
6660 PR server/18081
6661 * server.c (start_inferior): If the process exits, mourn it.
6662
6663 2015-04-21 Gary Benson <gbenson@redhat.com>
6664
6665 * hostio.c (fileio_open_flags_to_host): Factored out to
6666 fileio_to_host_openflags in common/fileio.c. Single use
6667 updated.
6668
6669 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
6670
6671 * linux-xtensa-low.c (xtensa_fill_gregset)
6672 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
6673 XCHAL_HAVE_LOOP.
6674
6675 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
6676
6677 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
6678 (regs_info): Replace usrregs pointer with NULL.
6679
6680 2015-04-17 Gary Benson <gbenson@redhat.com>
6681
6682 * target.h (struct target_ops) <pid_to_exec_file>: New field.
6683 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
6684 * server.c (handle_qxfer_exec_file): New function.
6685 (qxfer_packets): Add exec-file entry.
6686 (handle_query): Report qXfer:exec-file:read as supported packet.
6687
6688 2015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
6689
6690 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
6691
6692 2015-04-09 Gary Benson <gbenson@redhat.com>
6693
6694 * hostio-errno.c (errno_to_fileio_error): Remove function.
6695 Update caller to use remote_fileio_to_fio_error.
6696
6697 2015-04-09 Yao Qi <yao.qi@linaro.org>
6698
6699 * linux-low.c (linux_insert_point): Call
6700 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
6701 (linux_remove_point): Call remove_memory_breakpoint if type is
6702 raw_bkpt_type_sw.
6703 * linux-x86-low.c (x86_insert_point): Don't call
6704 insert_memory_breakpoint.
6705 (x86_remove_point): Don't call remove_memory_breakpoint.
6706
6707 2015-04-01 Pedro Alves <palves@redhat.com>
6708 Cleber Rosa <crosa@redhat.com>
6709
6710 * server.c (gdbserver_usage): Reorganize and extend the usage
6711 message.
6712
6713 2015-03-24 Pedro Alves <palves@redhat.com>
6714
6715 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
6716 output. Also dump TRAP_TRACE.
6717 (linux_low_filter_event): In debug output, distinguish a
6718 resume_stop SIGSTOP from a delayed SIGSTOP.
6719
6720 2015-03-24 Gary Benson <gbenson@redhat.com>
6721
6722 * linux-x86-low.c (x86_linux_new_thread): Moved to
6723 nat/x86-linux.c.
6724 (x86_linux_prepare_to_resume): Likewise.
6725
6726 2015-03-24 Gary Benson <gbenson@redhat.com>
6727
6728 * Makefile.in (x86-linux-dregs.o): New rule.
6729 * configure.srv: Add x86-linux-dregs.o to relevant targets.
6730 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
6731 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
6732 (x86_linux_dr_get): Likewise.
6733 (x86_linux_dr_set): Likewise.
6734 (update_debug_registers_callback): Likewise.
6735 (x86_linux_dr_set_addr): Likewise.
6736 (x86_linux_dr_get_addr): Likewise.
6737 (x86_linux_dr_set_control): Likewise.
6738 (x86_linux_dr_get_control): Likewise.
6739 (x86_linux_dr_get_status): Likewise.
6740 (x86_linux_update_debug_registers): Likewise.
6741
6742 2015-03-24 Gary Benson <gbenson@redhat.com>
6743
6744 * linux-x86-low.c (x86_linux_update_debug_registers):
6745 New function, factored out from...
6746 (x86_linux_prepare_to_resume): ...this.
6747
6748 2015-03-24 Gary Benson <gbenson@redhat.com>
6749
6750 * linux-x86-low.c (x86_linux_dr_get): Update comments.
6751 (x86_linux_dr_set): Likewise.
6752 (update_debug_registers_callback): Likewise.
6753 (x86_linux_dr_set_addr): Likewise.
6754 (x86_linux_dr_get_addr): Likewise.
6755 (x86_linux_dr_set_control): Likewise.
6756 (x86_linux_dr_get_control): Likewise.
6757 (x86_linux_dr_get_status): Likewise.
6758 (x86_linux_prepare_to_resume): Likewise.
6759
6760 2015-03-24 Gary Benson <gbenson@redhat.com>
6761
6762 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
6763 Use perror_with_name. Pass string through gettext.
6764 (x86_linux_dr_set): Likewise.
6765
6766 2015-03-24 Gary Benson <gbenson@redhat.com>
6767
6768 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
6769 (x86_linux_dr_set_addr): ...this.
6770 (x86_dr_low_get_addr): Rename to...
6771 (x86_linux_dr_get_addr): ...this.
6772 (x86_dr_low_set_control): Rename to...
6773 (x86_linux_dr_set_control): ...this.
6774 (x86_dr_low_get_control): Rename to...
6775 (x86_linux_dr_get_control): ...this.
6776 (x86_dr_low_get_status): Rename to...
6777 (x86_linux_dr_get_status): ...this.
6778 (x86_dr_low): Update with new function names.
6779
6780 2015-03-24 Gary Benson <gbenson@redhat.com>
6781
6782 * Makefile.in (x86-linux.o): New rule.
6783 * configure.srv: Add x86-linux.o to relevant targets.
6784 * linux-low.c (lwp_set_arch_private_info): New function.
6785 (lwp_arch_private_info): Likewise.
6786 * linux-x86-low.c: Include nat/x86-linux.h.
6787 (arch_lwp_info): Removed structure.
6788 (update_debug_registers_callback):
6789 Use lwp_set_debug_registers_changed.
6790 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
6791 and lwp_set_debug_registers_changed.
6792 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
6793
6794 2015-03-24 Gary Benson <gbenson@redhat.com>
6795
6796 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
6797 * linux-arm-low.c (arm_new_thread): Likewise.
6798 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
6799 * linux-mips-low.c (mips_linux_new_thread): Likewise.
6800 * linux-x86-low.c (x86_linux_new_thread): Likewise.
6801 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
6802
6803 2015-03-24 Gary Benson <gbenson@redhat.com>
6804
6805 * linux-low.c (ptid_of_lwp): New function.
6806 (lwp_is_stopped): Likewise.
6807 (lwp_stop_reason): Likewise.
6808 * linux-x86-low.c (update_debug_registers_callback):
6809 Use lwp_is_stopped.
6810 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
6811 lwp_stop_reason.
6812
6813 2015-03-24 Gary Benson <gbenson@redhat.com>
6814
6815 * linux-low.h (linux_stop_lwp): Remove declaration.
6816
6817 2015-03-24 Gary Benson <gbenson@redhat.com>
6818
6819 * linux-low.h: Include nat/linux-nat.h.
6820 * linux-low.c (iterate_over_lwps_args): New structure.
6821 (iterate_over_lwps_filter): New function.
6822 (iterate_over_lwps): Likewise.
6823 * linux-x86-low.c (update_debug_registers_callback):
6824 Update signature to what iterate_over_lwps expects.
6825 Remove PID check that iterate_over_lwps now performs.
6826 (x86_dr_low_set_addr): Use iterate_over_lwps.
6827 (x86_dr_low_set_control): Likewise.
6828
6829 2015-03-24 Gary Benson <gbenson@redhat.com>
6830
6831 * linux-x86-low.c (x86_debug_reg_state): New function.
6832 (x86_linux_prepare_to_resume): Use the above.
6833
6834 2015-03-24 Gary Benson <gbenson@redhat.com>
6835
6836 * linux-low.c (current_lwp_ptid): New function.
6837 * linux-x86-low.c: Include nat/linux-nat.h.
6838 (x86_dr_low_get_addr): Use current_lwp_ptid.
6839 (x86_dr_low_get_control): Likewise.
6840 (x86_dr_low_get_status): Likewise.
6841
6842 2015-03-20 Pedro Alves <palves@redhat.com>
6843
6844 * tracepoint.c (cmd_qtstatus): Make "str" const.
6845
6846 2015-03-20 Pedro Alves <palves@redhat.com>
6847
6848 * server.c (handle_general_set): Make "req_str" const.
6849
6850 2015-03-19 Pedro Alves <palves@redhat.com>
6851
6852 * linux-low.c (linux_resume_one_lwp): Rename to ...
6853 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
6854 instead call perror_with_name.
6855 (check_ptrace_stopped_lwp_gone): New function.
6856 (linux_resume_one_lwp): Reimplement as wrapper around
6857 linux_resume_one_lwp_throw that swallows errors if the LWP is
6858 gone.
6859
6860 2015-03-19 Pedro Alves <palves@redhat.com>
6861
6862 * linux-low.c (count_events_callback, select_event_lwp_callback):
6863 No longer check whether the thread has resume_stop as last resume
6864 kind.
6865
6866 2015-03-19 Pedro Alves <palves@redhat.com>
6867
6868 * linux-low.c (count_events_callback, select_event_lwp_callback):
6869 Use the lwp's status_pending_p field, not the thread's.
6870
6871 2015-03-19 Pedro Alves <palves@redhat.com>
6872
6873 * linux-low.c (select_event_lwp_callback): Update comments to
6874 no longer mention SIGTRAP.
6875
6876 2015-03-18 Gary Benson <gbenson@redhat.com>
6877
6878 * server.c (handle_query): Do not report vFile:fstat as supported.
6879
6880 2015-03-11 Gary Benson <gbenson@redhat.com>
6881
6882 * hostio.c (sys/types.h): New include.
6883 (sys/stat.h): Likewise.
6884 (common-remote-fileio.h): Likewise.
6885 (handle_fstat): New function.
6886 (handle_vFile): Handle vFile:fstat packets.
6887
6888 2015-03-11 Gary Benson <gbenson@redhat.com>
6889
6890 * configure.ac (AC_CHECK_MEMBERS): Add checks for
6891 struct stat.st_blocks and struct stat.st_blksize.
6892 * configure: Regenerate.
6893 * config.in: Likewise.
6894 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
6895 (OBS): Add common-remote-fileio.o.
6896 (common-remote-fileio.o): New rule.
6897
6898 2015-03-09 Pedro Alves <palves@redhat.com>
6899
6900 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
6901 'struct sockaddr' pointer in 'accept' call.
6902
6903 2015-03-09 Pedro Alves <palves@redhat.com>
6904
6905 Revert:
6906 2015-03-07 Pedro Alves <palves@redhat.com>
6907 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
6908 or <winsock2.h> here. Instead include "gdb_socket.h".
6909 (remote_open): Use union gdb_sockaddr_u.
6910 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
6911 or <winsock2.h> here. Instead include "gdb_socket.h".
6912 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
6913 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
6914 or <sys/un.h>.
6915 (init_named_socket, gdb_agent_helper_thread): Use union
6916 gdb_sockaddr_u.
6917
6918 2015-03-07 Pedro Alves <palves@redhat.com>
6919
6920 * configure.ac (build_warnings): Move
6921 -Wdeclaration-after-statement to the C-specific set.
6922 * configure: Regenerate.
6923
6924 2015-03-07 Pedro Alves <palves@redhat.com>
6925
6926 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
6927 or <winsock2.h> here. Instead include "gdb_socket.h".
6928 (remote_open): Use union gdb_sockaddr_u.
6929 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
6930 or <winsock2.h> here. Instead include "gdb_socket.h".
6931 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
6932 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
6933 or <sys/un.h>.
6934 (init_named_socket, gdb_agent_helper_thread): Use union
6935 gdb_sockaddr_u.
6936
6937 2015-03-07 Pedro Alves <palves@redhat.com>
6938
6939 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
6940 instead.
6941
6942 2015-03-06 Yao Qi <yao.qi@linaro.org>
6943
6944 * linux-aarch64-low.c (aarch64_insert_point): Use
6945 show_debug_regs as a boolean.
6946 (aarch64_remove_point): Likewise.
6947
6948 2015-03-05 Pedro Alves <palves@redhat.com>
6949
6950 * lynx-low.c (lynx_target_ops): Install NULL hooks for
6951 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
6952 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
6953 * nto-low.c (nto_target_ops): Likewise.
6954 * spu-low.c (spu_target_ops): Likewise.
6955 * win32-low.c (win32_target_ops): Likewise.
6956
6957 2015-03-04 Pedro Alves <palves@redhat.com>
6958
6959 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
6960 Decide whether a breakpoint triggered based on the SIGTRAP's
6961 siginfo.si_code.
6962 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
6963 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
6964 (linux_low_filter_event): Check for breakpoints before checking
6965 watchpoints.
6966 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
6967 siginfo.si_code.
6968 (linux_stopped_by_sw_breakpoint)
6969 (linux_supports_stopped_by_sw_breakpoint)
6970 (linux_stopped_by_hw_breakpoint)
6971 (linux_supports_stopped_by_hw_breakpoint): New functions.
6972 (linux_target_ops): Install new target methods.
6973
6974 2015-03-04 Pedro Alves <palves@redhat.com>
6975
6976 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
6977 * server.c (swbreak_feature, hwbreak_feature): New globals.
6978 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
6979 (captured_main): Clear swbreak_feature and hwbreak_feature.
6980 * server.h (swbreak_feature, hwbreak_feature): Declare.
6981 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
6982 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
6983 supports_stopped_by_hw_breakpoint>: New fields.
6984 (target_supports_stopped_by_sw_breakpoint)
6985 (target_stopped_by_sw_breakpoint)
6986 (target_supports_stopped_by_hw_breakpoint)
6987 (target_stopped_by_hw_breakpoint): Declare.
6988
6989 2015-03-04 Pedro Alves <palves@redhat.com>
6990
6991 enum lwp_stop_reason -> enum target_stop_reason
6992 * linux-low.c (check_stopped_by_breakpoint): Adjust.
6993 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
6994 (linux_wait_1, stuck_in_jump_pad_callback)
6995 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
6996 (linux_stopped_by_watchpoint):
6997 * linux-low.h (enum lwp_stop_reason): Delete.
6998 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
6999 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
7000
7001 2015-03-04 Yao Qi <yao.qi@linaro.org>
7002
7003 * Makefile.in (SFILES): Add linux-aarch64-low.c.
7004
7005 2015-03-03 Gary Benson <gbenson@redhat.com>
7006
7007 * hostio.c (handle_vFile): Fix prefix lengths.
7008
7009 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
7010
7011 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
7012 ptr_bits.
7013
7014 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
7015
7016 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
7017 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
7018 (clean): Add "rm -f" for above C files.
7019 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
7020 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
7021 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
7022 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
7023 * linux-s390-low.c (HWCAP_S390_VX): New macro.
7024 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
7025 (init_registers_s390x_vx_linux64)
7026 (init_registers_s390x_tevx_linux64)
7027 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
7028 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
7029 declarations.
7030 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
7031 (s390_store_vxrs_high): New functions.
7032 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
7033 NT_S390_VXRS_HIGH.
7034 (s390_arch_setup): Add logic for selecting one of the new target
7035 descriptions. Activate the new vector regsets if applicable.
7036 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
7037 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
7038 and init_registers_s390x_tevx_linux64.
7039
7040 2015-03-01 Pedro Alves <palves@redhat.com>
7041
7042 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
7043 parameter.
7044
7045 2015-02-27 Pedro Alves <palves@redhat.com>
7046
7047 * linux-x86-low.c (u_debugreg_offset): New function.
7048 (x86_linux_dr_get, x86_linux_dr_set): Use it.
7049
7050 2015-02-27 Pedro Alves <palves@redhat.com>
7051
7052 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
7053 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
7054 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
7055 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
7056 (ps_lsetfpregs, ps_getpid)
7057 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
7058 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
7059 (ps_lsetxregs, ps_plog): Declare.
7060
7061 2015-02-27 Pedro Alves <palves@redhat.com>
7062
7063 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
7064 IP_AGENT_EXPORT_FUNC.
7065 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
7066 IP_AGENT_EXPORT_FUNC.
7067 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
7068 (IP_AGENT_EXPORT): Delete.
7069 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
7070 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
7071 (gdb_trampoline_buffer_error, collecting, gdb_collect)
7072 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
7073 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
7074 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
7075 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
7076 (traceframe_read_count, traceframe_write_count)
7077 (traceframes_created, trace_state_variables, get_raw_reg)
7078 (get_trace_state_variable_value, set_trace_state_variable_value)
7079 (ust_loaded, helper_thread_id, cmd_buf): Use
7080 IPA_SYM_EXPORTED_NAME.
7081 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
7082 (tracepoints) Use IP_AGENT_EXPORT_VAR.
7083 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
7084 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
7085 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
7086 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
7087 EXTERN_C_PUSH/EXTERN_C_POP.
7088 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
7089 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
7090 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
7091 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
7092 (traceframe_write_count, traceframe_read_count)
7093 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
7094 (about_to_request_buffer_space, get_trace_state_variable_value)
7095 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
7096 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
7097 EXTERN_C_PUSH/EXTERN_C_POP.
7098 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
7099 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
7100 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
7101 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
7102 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
7103 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
7104 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
7105 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
7106 Define.
7107 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
7108 (IP_AGENT_EXPORT_VAR_DECL): Define.
7109 (tracing): Declare.
7110 (gdb_agent_get_raw_reg): Declare.
7111
7112 2015-02-27 Tom Tromey <tromey@redhat.com>
7113 Pedro Alves <palves@redhat.com>
7114
7115 Rename symbols whose names are reserved C++ keywords throughout.
7116
7117 2015-02-27 Pedro Alves <palves@redhat.com>
7118
7119 * Makefile.in (COMPILER): New, get it from autoconf.
7120 (CXX): Get from autoconf instead.
7121 (COMPILE.pre): Use COMPILER.
7122 (CC-LD): Rename to ...
7123 (CC_LD): ... this. Use COMPILER.
7124 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
7125 (CXX_FOR_TARGET): Default to g++ instead of gcc.
7126 * acinclude.m4: Include build-with-cxx.m4.
7127 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
7128 Disable -Werror by default if building in C++ mode.
7129 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
7130 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
7131 the C++ compiler. Save/restore CXXFLAGS too.
7132 * configure: Regenerate.
7133
7134 2015-02-27 Pedro Alves <palves@redhat.com>
7135
7136 * acinclude.m4: Include libiberty.m4.
7137 * configure.ac: Call libiberty_INIT.
7138 * config.in, configure: Regenerate.
7139
7140 2015-02-26 Pedro Alves <palves@redhat.com>
7141
7142 * linux-low.c (linux_wait_1): When incrementing the PC past a
7143 program breakpoint always use the_low_target.breakpoint_len as
7144 increment, rather than the maximum between that and
7145 the_low_target.decr_pc_after_break.
7146
7147 2015-02-23 Pedro Alves <palves@redhat.com>
7148
7149 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
7150 thread was doing a step-over; always adjust the PC if
7151 we stepped over a permanent breakpoint.
7152 (linux_wait_1): If we stepped over breakpoint that was on top of a
7153 permanent breakpoint, manually advance the PC past it.
7154
7155 2015-02-23 Pedro Alves <palves@redhat.com>
7156
7157 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
7158 modes.
7159 (x86_fill_gregset, x86_store_gregset): Use it when handling
7160 $orig_eax.
7161
7162 2015-02-20 Pedro Alves <palves@redhat.com>
7163
7164 * thread-db.c: Include "nat/linux-procfs.h".
7165 (thread_db_init): Skip listing new threads if the kernel supports
7166 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
7167
7168 2015-02-20 Pedro Alves <palves@redhat.com>
7169
7170 * linux-low.c (status_pending_p_callback): Use ptid_match.
7171
7172 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
7173
7174 PR breakpoints/16812
7175 * linux-low.c (wstatus_maybe_breakpoint): Remove.
7176 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
7177 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
7178
7179 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
7180
7181 PR breakpoints/15956
7182 * tracepoint.c (cmd_qtinit): Add check for current_thread.
7183
7184 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
7185
7186 * linux-low.c (linux_low_btrace_conf): Print size.
7187 * server.c (handle_btrace_conf_general_set): New.
7188 (hanle_general_set): Call handle_btrace_conf_general_set.
7189 (handle_query): Report Qbtrace-conf:bts:size as supported.
7190
7191 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
7192
7193 * linux-low.c (linux_low_enable_btrace): Update parameters.
7194 (linux_low_btrace_conf): New.
7195 (linux_target_ops)<to_btrace_conf>: Initialize.
7196 * server.c (current_btrace_conf): New.
7197 (handle_btrace_enable): Rename to ...
7198 (handle_btrace_enable_bts): ... this. Pass &current_btrace_conf
7199 to target_enable_btrace. Update comment. Update users.
7200 (handle_qxfer_btrace_conf): New.
7201 (qxfer_packets): Add btrace-conf entry.
7202 (handle_query): Report qXfer:btrace-conf:read as supported packet.
7203 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
7204 (target_ops)<read_btrace_conf>: New.
7205 (target_enable_btrace): Update parameters.
7206 (target_read_btrace_conf): New.
7207
7208 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
7209
7210 * server.c (handle_btrace_general_set): Remove call to
7211 target_supports_btrace.
7212 (supported_btrace_packets): New.
7213 (handle_query): Call supported_btrace_packets.
7214 * target.h: include btrace-common.h.
7215 (btrace_target_info): Removed.
7216 (supports_btrace, target_supports_btrace): Update parameters.
7217
7218 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
7219
7220 * Makefile.in (SFILES): Add common/btrace-common.c.
7221 (OBS): Add common/btrace-common.o.
7222 (btrace-common.o): Add build rules.
7223 * linux-low: Include btrace-common.h.
7224 (linux_low_read_btrace): Use struct btrace_data. Call
7225 btrace_data_init and btrace_data_fini.
7226
7227 2015-02-06 Pedro Alves <palves@redhat.com>
7228
7229 * thread-db.c (find_new_threads_callback): Add debug output.
7230
7231 2015-02-04 Pedro Alves <palves@redhat.com>
7232
7233 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
7234 (resume_stopped_resumed_lwps): New function.
7235 (linux_wait_for_event_filtered): Use it.
7236
7237 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
7238
7239 * Makefile.in (SFILES): Add linux-personality.c.
7240 (linux-personality.o): New rule.
7241 * configure.srv (srv_linux_obj): Add linux-personality.o to the
7242 list of objects to be built.
7243 * linux-low.c: Include nat/linux-personality.h.
7244 (linux_create_inferior): Remove code to disable address space
7245 randomization (moved to ../nat/linux-personality.c). Create
7246 cleanup to disable address space randomization.
7247
7248 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
7249
7250 * Makefile.in (posix-strerror.o): New rule.
7251 (mingw-strerror.o): Likewise.
7252 * configure: Regenerated.
7253 * configure.ac: Source file ../common/common.host. Initialize new
7254 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
7255
7256 2015-01-14 Yao Qi <yao@codesourcery.com>
7257
7258 * Makefile.in (SFILES): Add nat/ppc-linux.c.
7259 (ppc-linux.o): New rule.
7260 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
7261 * configure.ac: AC_CHECK_FUNCS(getauxval).
7262 * config.in: Re-generated.
7263 * configure: Re-generated.
7264 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
7265 ppc64_64bit_inferior_p
7266
7267 2015-01-14 Yao Qi <yao@codesourcery.com>
7268
7269 * linux-ppc-low.c: Include "nat/ppc-linux.h".
7270 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
7271 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
7272 (PT_ORIG_R3, PT_TRAP): Likewise.
7273 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
7274 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
7275 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
7276
7277 2015-01-10 Joel Brobecker <brobecker@adacore.com>
7278
7279 * i387-fp.c (i387_cache_to_xsave): In look over
7280 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
7281 zmmh_low_space field by use of zmmh_high_space.
7282
7283 2015-01-09 Pedro Alves <palves@redhat.com>
7284
7285 * linux-low.c (step_over_bkpt): Move higher up in the file.
7286 (handle_extended_wait): Don't store the stop_pc here.
7287 (get_stop_pc): Adjust comments and rename to ...
7288 (check_stopped_by_breakpoint): ... this. Record whether the LWP
7289 stopped for a software breakpoint or hardware breakpoint.
7290 (thread_still_has_status_pending_p): New function.
7291 (status_pending_p_callback): Use
7292 thread_still_has_status_pending_p. If the event is no longer
7293 interesting, resume the LWP.
7294 (handle_tracepoints): Add assert.
7295 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
7296 (wstatus_maybe_breakpoint): New function.
7297 (cancel_breakpoint): Delete function.
7298 (check_stopped_by_watchpoint): New function, factored out from
7299 linux_low_filter_event.
7300 (lp_status_maybe_breakpoint): Delete function.
7301 (linux_low_filter_event): Remove filter_ptid argument.
7302 Leave thread group exits pending here. Store the LWP's stop PC.
7303 Always leave events pending.
7304 (linux_wait_for_event_filtered): Pull all events out of the
7305 kernel, and leave them all pending.
7306 (count_events_callback, select_event_lwp_callback): Consider all
7307 events.
7308 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
7309 (select_event_lwp): Only give preference to the stepping LWP in
7310 all-stop mode. Adjust comments.
7311 (ignore_event): New function.
7312 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
7313 references to cancel_breakpoints. Adjust to renames. Also give
7314 equal priority to all LWPs that have had events in non-stop mode.
7315 If reporting a software breakpoint event, unadjust the LWP's PC.
7316 (linux_wait): If linux_wait_1 returned an ignored event, retry.
7317 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
7318 Adjust.
7319 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
7320 (resume_status_pending_p): Use thread_still_has_status_pending_p.
7321 (linux_stopped_by_watchpoint): Adjust.
7322 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
7323 * linux-low.h (enum lwp_stop_reason): New.
7324 (struct lwp_info) <stop_pc>: Adjust comment.
7325 <stopped_by_watchpoint>: Delete field.
7326 <stop_reason>: New field.
7327 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
7328 * mem-break.c (software_breakpoint_inserted_here)
7329 (hardware_breakpoint_inserted_here): New function.
7330 * mem-break.h (software_breakpoint_inserted_here)
7331 (hardware_breakpoint_inserted_here): Declare.
7332 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
7333 (cancel_breakpoints): Delete.
7334 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
7335 (upload_fast_traceframes): Remove references to
7336 cancel_breakpoints.
7337
7338 2015-01-09 Pedro Alves <palves@redhat.com>
7339
7340 * thread-db.c (find_new_threads_callback): Ignore thread if the
7341 kernel thread ID is -1.
7342
7343 2015-01-09 Pedro Alves <palves@redhat.com>
7344
7345 * linux-low.c (linux_attach_fail_reason_string): Move to
7346 nat/linux-ptrace.c, and rename.
7347 (linux_attach_lwp): Update comment.
7348 (attach_proc_task_lwp_callback): New function.
7349 (linux_attach): Adjust to rename and use
7350 linux_proc_attach_tgid_threads.
7351 (linux_attach_fail_reason_string): Delete declaration.
7352
7353 2015-01-01 Joel Brobecker <brobecker@adacore.com>
7354
7355 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
7356 * server.c (gdbserver_version): Likewise.
7357
7358 2014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
7359
7360 * remote-utils.c: Include ctype.h.
7361 (input_interrupt): Explicitly handle the case when the char
7362 received is the NUL byte. Improve the printing of non-ASCII
7363 characters.
7364
7365 2014-12-16 Joel Brobecker <brobecker@adacore.com>
7366
7367 * linux-low.c (linux_low_filter_event): Update call to
7368 linux_enable_event_reporting following the addition of
7369 a new parameter to that function.
7370
7371 2014-12-16 Catalin Udma <catalin.udma@freescale.com>
7372
7373 PR server/17457
7374 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
7375 (AARCH64_FPCR_REGNO): Likewise.
7376 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
7377 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
7378 (aarch64_store_fpregset): Likewise.
7379
7380 2014-12-15 Joel Brobecker <brobecker@adacore.com>
7381
7382 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
7383 Remove FIXME comment about assumption about N.
7384
7385 2014-12-13 Joel Brobecker <brobecker@adacore.com>
7386
7387 * configure.ac: If large-file support is disabled in GDBserver,
7388 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
7389 * configure: Regenerate.
7390
7391 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
7392
7393 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
7394 warning upon ENODATA from ptrace.
7395 * linux-s390-low.c (s390_store_tdb): New.
7396 (s390_regsets): Add regset for NT_S390_TDB.
7397
7398 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
7399
7400 * linux-low.c (regsets_store_inferior_registers): Skip regsets
7401 without a fill_function.
7402 * linux-s390-low.c (s390_fill_last_break): Remove.
7403 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
7404 (s390_arch_setup): Use regset's size instead of fill_function for
7405 loop end condition.
7406
7407 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
7408
7409 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
7410 the regset's store function when ptrace returned an error.
7411 * regcache.c (get_thread_regcache): Invalidate register cache
7412 before fetching inferior's registers.
7413
7414 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
7415
7416 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
7417 while-loop as for-loop.
7418 (regsets_store_inferior_registers): Likewise.
7419
7420 2014-11-28 Yao Qi <yao@codesourcery.com>
7421
7422 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
7423 * config.in, configure: Re-generate.
7424 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
7425 is defined.
7426
7427 2014-11-21 Yao Qi <yao@codesourcery.com>
7428
7429 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
7430 (AC_CHECK_HEADERS): Remove malloc.h.
7431 * configure: Re-generated.
7432 * config.in: Re-generated.
7433 * server.h: Don't include alloca.h and malloc.h.
7434 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
7435 Don't include malloc.h.
7436
7437 2014-11-17 Joel Brobecker <brobecker@adacore.com>
7438
7439 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
7440 corresponding ERRNO check in same block.
7441
7442 2014-11-12 Pedro Alves <palves@redhat.com>
7443
7444 * server.c (cont_thread): Update comment.
7445 (start_inferior, attach_inferior): No longer clear cont_thread.
7446 (handle_v_cont): No longer set cont_thread.
7447 (captured_main): Clear cont_thread each time a GDB connects.
7448
7449 2014-11-12 Pedro Alves <palves@redhat.com>
7450
7451 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
7452 thread, and don't resume all threads if the Hc thread has exited.
7453
7454 2014-11-12 Pedro Alves <palves@redhat.com>
7455
7456 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
7457 the process group instead of to a specific LWP.
7458
7459 2014-10-15 Pedro Alves <palves@redhat.com>
7460
7461 PR server/17487
7462 * win32-arm-low.c (arm_set_thread_context): Remove current_event
7463 parameter.
7464 (arm_set_thread_context): Delete.
7465 (the_low_target): Adjust.
7466 * win32-i386-low.c (debug_registers_changed)
7467 (debug_registers_used): Delete.
7468 (update_debug_registers_callback): New function.
7469 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
7470 needing to update their debug registers.
7471 (win32_get_current_dr): New function.
7472 (x86_dr_low_get_addr, x86_dr_low_get_control)
7473 (x86_dr_low_get_status): Fetch the debug register from the thread
7474 record's context.
7475 (i386_initial_stuff): Adjust.
7476 (i386_get_thread_context): Remove current_event parameter. Don't
7477 clear debug_registers_changed nor copy DR values to
7478 debug_reg_state.
7479 (i386_set_thread_context): Delete.
7480 (i386_prepare_to_resume): New function.
7481 (i386_thread_added): Mark the thread as needing to update irs
7482 debug registers.
7483 (the_low_target): Remove i386_set_thread_context and install
7484 i386_prepare_to_resume.
7485 * win32-low.c (win32_get_thread_context): Adjust.
7486 (win32_set_thread_context): Use SetThreadContext
7487 directly.
7488 (win32_prepare_to_resume): New function.
7489 (win32_require_context): New function, factored out from ...
7490 (thread_rec): ... this.
7491 (continue_one_thread): Call win32_prepare_to_resume on each thread
7492 we're about to continue.
7493 (win32_resume): Call win32_prepare_to_resume on the event thread.
7494 * win32-low.h (struct win32_thread_info)
7495 <debug_registers_changed>: New field.
7496 (struct win32_target_ops): Change prototype of set_thread_context,
7497 delete set_thread_context and add prepare_to_resume.
7498 (win32_require_context): New declaration.
7499
7500 2014-10-08 Gary Benson <gbenson@redhat.com>
7501
7502 * server.h: Do not include common-exceptions.h.
7503
7504 2014-10-08 Gary Benson <gbenson@redhat.com>
7505
7506 * server.h: Do not include cleanups.h.
7507
7508 2014-09-30 James Hogan <james.hogan@imgtec.com>
7509
7510 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
7511 mips64-dsp-linux.c.
7512
7513 2014-09-23 Yao Qi <yao@codesourcery.com>
7514
7515 * linux-low.c (lp_status_maybe_breakpoint): New function.
7516 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
7517 (count_events_callback): Likewise.
7518 (select_event_lwp_callback): Likewise.
7519 (cancel_breakpoints_callback): Likewise.
7520
7521 2014-09-19 Don Breazeal <donb@codesourcery.com>
7522
7523 * linux-low.c (handle_extended_wait): Call
7524 linux_ptrace_get_extended_event.
7525 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
7526 linux_is_extended_waitstatus.
7527
7528 2014-09-16 Joel Brobecker <brobecker@adacore.com>
7529
7530 * Makefile.in (CPPFLAGS): Define.
7531 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
7532 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
7533
7534 2014-09-16 Gary Benson <gbenson@redhat.com>
7535
7536 * inferiors.h (current_inferior): Renamed as...
7537 (current_thread): New variable. All uses updated.
7538 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
7539 (maybe_move_out_of_jump_pad): Likewise.
7540 (cancel_breakpoint): Likewise.
7541 (linux_low_filter_event): Likewise.
7542 (wait_for_sigstop): Likewise.
7543 (linux_resume_one_lwp): Likewise.
7544 (need_step_over_p): Likewise.
7545 (start_step_over): Likewise.
7546 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
7547 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
7548 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
7549 and save_inferior as saved_thread.
7550 * regcache.c (get_thread_regcache): Renamed saved_inferior as
7551 saved_thread.
7552 (regcache_invalidate_thread): Likewise.
7553 * remote-utils.c (prepare_resume_reply): Likewise.
7554 * thread-db.c (thread_db_get_tls_address): Likewise.
7555 (disable_thread_event_reporting): Likewise.
7556 (remove_thread_event_breakpoints): Likewise.
7557 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
7558 as saved_thread.
7559 * target.h (set_desired_inferior): Renamed as...
7560 (set_desired_thread): New declaration. All uses updated.
7561 * server.c (myresume): Updated comment to reference thread instead
7562 of inferior.
7563 (handle_serial_event): Likewise.
7564 (handle_target_event): Likewise.
7565
7566 2014-09-12 Tom Tromey <tromey@redhat.com>
7567 Gary Benson <gbenson@redhat.com>
7568
7569 * regcache.h: Include common-regcache.h.
7570 (regcache_read_pc): Don't declare.
7571 * regcache.c (get_thread_regcache_for_ptid): New function.
7572
7573 2014-09-11 Tom Tromey <tromey@redhat.com>
7574 Gary Benson <gbenson@redhat.com>
7575
7576 * symbol.c: New file.
7577 * Makefile.in (SFILES): Add symbol.c.
7578 (OBS): Add symbol.o.
7579
7580 2014-09-11 Gary Benson <gbenson@redhat.com>
7581
7582 * target.c (target_stop_ptid, target_continue_ptid): New
7583 functions.
7584
7585 2014-09-11 Tom Tromey <tromey@redhat.com>
7586 Gary Benson <gbenson@redhat.com>
7587
7588 * target.h: Include target/target.h.
7589 * target.c (target_read_memory, target_read_uint32)
7590 (target_write_memory): New functions.
7591
7592 2014-09-11 Gary Benson <gbenson@redhat.com>
7593
7594 * server.h (debug_hw_points): Don't declare.
7595 * server.c (debug_hw_points): Don't define. Replace all uses
7596 with show_debug_regs.
7597 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
7598 all uses with show_debug_regs.
7599
7600 2014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
7601
7602 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
7603 endianness into account.
7604 (ppc_supply_ptrace_register): Likewise.
7605
7606 2014-09-03 James Hogan <james.hogan@imgtec.com>
7607
7608 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
7609 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
7610
7611 2014-09-03 Gary Benson <gbenson@redhat.com>
7612
7613 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
7614 ALL_DEBUG_ADDRESS_REGISTERS.
7615
7616 2014-09-02 Gary Benson <gbenson@redhat.com>
7617
7618 * i386-low.h: Renamed as...
7619 * x86-low.h: New file. All type, function and variable name
7620 prefixes changed from "i386_" to "x86_". All references updated.
7621 * i386-low.c: Renamed as...
7622 * x86-low.c: New file. All type, function and variable name
7623 prefixes changed from "i386_" to "x86_". All references updated.
7624
7625 2014-09-02 Gary Benson <gbenson@redhat.com>
7626
7627 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
7628 (x86_linux_new_thread): Likewise.
7629
7630 2014-08-29 Gary Benson <gbenson@redhat.com>
7631
7632 * server.h (setjmp.h): Do not include.
7633 (toplevel): Do not declare.
7634 (common-exceptions.h): Include.
7635 (cleanups.h): Likewise.
7636 * server.c (toplevel): Do not define.
7637 (exit_code): New static global.
7638 (detach_or_kill_for_exit_cleanup): New function.
7639 (main): New function. Original main renamed to...
7640 (captured_main): New function.
7641 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
7642
7643 2014-08-29 Gary Benson <gbenson@redhat.com>
7644
7645 * Makefile.in (SFILES): Add common/common-exceptions.c.
7646 (OBS): Add common-exceptions.o.
7647 (common-exceptions.o): New rule.
7648 * utils.c (prepare_to_throw_exception): New function.
7649
7650 2014-08-29 Gary Benson <gbenson@redhat.com>
7651
7652 * config.in: Regenerate.
7653 * configure: Likewise.
7654
7655 2014-08-29 Gary Benson <gbenson@redhat.com>
7656
7657 * Makefile.in (SFILES): Add common/cleanups.c.
7658 (OBS): cleanups.o.
7659 (cleanups.o): New rule.
7660
7661 2014-08-29 Gary Benson <gbenson@redhat.com>
7662
7663 * utils.c (internal_vwarning): New function.
7664
7665 2014-08-28 Gary Benson <gbenson@redhat.com>
7666
7667 * utils.h (fatal): Remove declaration.
7668 * utils.c (fatal): Remove function.
7669
7670 2014-08-28 Gary Benson <gbenson@redhat.com>
7671
7672 * tracepoint.c (gdb_agent_init): Replace fatal with
7673 perror_with_name.
7674 (initialize_tracepoint): Likewise.
7675
7676 2014-08-28 Gary Benson <gbenson@redhat.com>
7677
7678 * remote-utils.c (remote_prepare): Replace fatal with error.
7679
7680 2014-08-28 Gary Benson <gbenson@redhat.com>
7681
7682 * linux-low.c (linux_async): Replace fatal with warning.
7683 Tidy up and return.
7684 (linux_start_non_stop): Return -1 if linux_async failed.
7685
7686 2014-08-28 Gary Benson <gbenson@redhat.com>
7687
7688 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
7689 gdb_assert.
7690 (i386_dr_low_get_addr): Remove vague comment.
7691 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
7692 gdb_assert.
7693
7694 2014-08-28 Gary Benson <gbenson@redhat.com>
7695
7696 * inferiors.c (get_thread_process): Replace check with gdb_assert.
7697 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
7698 internal_error.
7699 (linux_resume_one_lwp): Likewise.
7700 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
7701 gdb_assert.
7702 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
7703 with internal_error.
7704 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
7705 (init_register_cache): Replace fatal with gdb_assert_not_reached.
7706 (find_register_by_name): Replace fatal with internal_error.
7707 (find_regno): Likewise.
7708 * tdesc.c (init_target_desc): Replace check with gdb_assert.
7709 * thread-db.c (thread_db_create_event): Likewise.
7710 (thread_db_load_search): Likewise.
7711 (try_thread_db_load_1): Likewise.
7712 * tracepoint.c (get_jump_space_head): Replace fatal with
7713 internal_error.
7714 (claim_trampoline_space): Likewise.
7715 (have_fast_tracepoint_trampoline_buffer): Likewise.
7716 (cmd_qtstart): Likewise.
7717 (stop_tracing): Likewise.
7718 (fast_tracepoint_collecting): Likewise.
7719 (target_malloc): Likewise.
7720 (download_tracepoint): Likewise.
7721 (download_trace_state_variables): Replace check with gdb_assert.
7722 (upload_fast_traceframes): Replace fatal with internal_error.
7723
7724 2014-08-19 Tom Tromey <tromey@redhat.com>
7725 Gary Benson <gbenson@redhat.com>
7726
7727 * Makefile.in (SFILES): Add common/common-debug.c.
7728 (OBS): Add common-debug.o.
7729 (common-debug.o): New rule.
7730 * debug.h (debug_printf): Don't declare.
7731 * debug.c (debug_printf): Renamed and rewritten as...
7732 (debug_vprintf): New function.
7733
7734 2014-08-19 Gary Benson <gbenson@redhat.com>
7735
7736 * utils.h: Do not include print-utils.h.
7737
7738 2014-08-19 Tom Tromey <tromey@redhat.com>
7739 Gary Benson <gbenson@redhat.com>
7740
7741 * server.h: Add static assertion.
7742 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
7743
7744 2014-08-19 Tom Tromey <tromey@redhat.com>
7745 Gary Benson <gbenson@redhat.com>
7746
7747 * Makefile.in (SFILES): Add common/errors.c.
7748 (OBS): Add errors.o.
7749 (IPA_OBS): Add errors-ipa.o.
7750 (errors.o): New rule.
7751 (errors-ipa.o): Likewise.
7752 * utils.h (perror_with_name, error, warning): Don't declare.
7753 * utils.c (warning): Renamed and rewritten as...
7754 (vwarning): New function.
7755 (error): Renamed and rewritten as...
7756 (verror): New function.
7757 (internal_error): Renamed and rewritten as...
7758 (internal_verror): New function.
7759
7760 2014-08-07 Gary Benson <gbenson@redhat.com>
7761
7762 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
7763 * configure: Regenerate.
7764 * config.in: Likewise.
7765 * server.h: Do not include errno.h.
7766 * event-loop.c: Likewise.
7767 * hostio-errno.c: Likewise.
7768 * linux-low.c: Likewise.
7769 * remote-utils.c: Likewise.
7770 * spu-low.c: Likewise.
7771 * utils.c: Likewise.
7772 * gdbreplay.c: Unconditionally include errno.h.
7773
7774 2014-08-07 Gary Benson <gbenson@redhat.com>
7775
7776 * server.h: Do not include string.h.
7777 * event-loop.c: Likewise.
7778 * linux-low.c: Likewise.
7779 * regcache.c: Likewise.
7780 * remote-utils.c: Likewise.
7781 * spu-low.c: Likewise.
7782 * utils.c: Likewise.
7783
7784 2014-08-07 Gary Benson <gbenson@redhat.com>
7785
7786 * server.h: Do not include gdb_assert.h.
7787
7788 2014-08-07 Gary Benson <gbenson@redhat.com>
7789
7790 * server.h: Do not include common-utils.h.
7791
7792 2014-08-07 Gary Benson <gbenson@redhat.com>
7793
7794 * server.h: Do not include ptid.h.
7795 * notif.h: Likewise.
7796
7797 2014-08-07 Gary Benson <gbenson@redhat.com>
7798
7799 * server.h: Do not include gdb_locale.h.
7800
7801 2014-08-07 Gary Benson <gbenson@redhat.com>
7802
7803 * server.h: Do not include gdb/signals.h.
7804 * win32-low.c: Likewise.
7805
7806 2014-08-07 Gary Benson <gbenson@redhat.com>
7807
7808 * server.h: Do not include pathmax.h.
7809
7810 2014-08-07 Gary Benson <gbenson@redhat.com>
7811
7812 * server.h: Do not include libiberty.h.
7813 * linux-bfin-low.c: Likewise.
7814
7815 2014-08-07 Gary Benson <gbenson@redhat.com>
7816
7817 * server.h: Do not include ansidecl.h.
7818
7819 2014-08-07 Gary Benson <gbenson@redhat.com>
7820
7821 * linux-x86-low.c: Do not include stddef.h.
7822 * lynx-ppc-low.c: Likewise.
7823 * tracepoint.c: Likewise.
7824
7825 2014-08-07 Gary Benson <gbenson@redhat.com>
7826
7827 * server.h: Do not include stdarg.h.
7828 * nto-low.c: Likewise.
7829
7830 2014-08-07 Gary Benson <gbenson@redhat.com>
7831
7832 * server.h: Do not include stdlib.h.
7833 * inferiors.c: Likewise.
7834 * linux-low.c: Likewise.
7835 * regcache.c: Likewise.
7836 * spu-low.c: Likewise.
7837 * tracepoint.c: Likewise.
7838 * utils.c: Likewise.
7839
7840 2014-08-07 Gary Benson <gbenson@redhat.com>
7841
7842 * server.h: Do not include stdio.h.
7843 * linux-low.c: Likewise.
7844 * remote-utils.c: Likewise.
7845 * spu-low.c: Likewise.
7846 * utils.c: Likewise.
7847 * wincecompat.c: Likewise.
7848
7849 2014-08-06 Gary Benson <gbenson@redhat.com>
7850
7851 * regcache.c (init_register_cache): Move conditionals inside if.
7852
7853 2014-08-06 Gary Benson <gbenson@redhat.com>
7854
7855 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
7856
7857 2014-07-31 Gary Benson <gbenson@redhat.com>
7858
7859 * ax.h: Do not include server.h.
7860 * gdbthread.h: Likewise.
7861 * lynx-low.h: Likewise.
7862 * notif.h: Likewise.
7863
7864 2014-07-30 Gary Benson <gbenson@redhat.com>
7865
7866 * server.h: Include common-defs.h.
7867 Do not include config.h or build-gnulib-gdbserver/config.h.
7868
7869 2014-07-30 Gary Benson <gbenson@redhat.com>
7870
7871 * hostio-errno.c: Move server.h to top of includes list.
7872 * inferiors.c: Likewise.
7873 * linux-x86-low.c: Likewise.
7874 * notif.c: Include server.h.
7875
7876 2014-07-24 Tom Tromey <tromey@redhat.com>
7877 Gary Benson <gbenson@redhat.com>
7878
7879 * server.h (CORE_ADDR): Now unsigned.
7880
7881 2014-07-16 Pedro Alves <palves@redhat.com>
7882
7883 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
7884
7885 2014-07-15 Pedro Alves <palves@redhat.com>
7886
7887 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
7888 copy.
7889
7890 2014-07-11 Pedro Alves <palves@redhat.com>
7891
7892 * linux-low.c (kill_wait_lwp): New function, based on
7893 kill_one_lwp_callback, but use my_waitpid directly.
7894 (kill_one_lwp_callback, linux_kill): Use it.
7895
7896 2014-06-23 Pedro Alves <palves@redhat.com>
7897
7898 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
7899 before setting DR0..DR3.
7900
7901 2014-06-20 Gary Benson <gbenson@redhat.com>
7902
7903 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
7904 * configure: Regenerated.
7905 * config.in: Likewise.
7906
7907 2014-06-20 Gary Benson <gbenson@redhat.com>
7908
7909 * Makefile.in (SFILES): Update locations for files moved
7910 from common to nat.
7911 (object file files): Reordered.
7912
7913 2014-06-20 Gary Benson <gbenson@redhat.com>
7914
7915 * i386-low.h (i386_dr_low_can_set_addr): Removed.
7916 (i386_dr_low_set_addr): Likewise.
7917 (i386_dr_low_get_addr): Likewise.
7918 (i386_dr_low_can_set_control): Likewise.
7919 (i386_dr_low_set_control): Likewise.
7920 (i386_dr_low_get_control): Likewise.
7921 (i386_dr_low_get_status): Likewise.
7922 (i386_get_debug_register_length): Likewise.
7923 * linux-x86-low.c (i386_dr_low_set_addr):
7924 Changed signature. Made static.
7925 (i386_dr_low_get_addr): Likewise.
7926 (i386_dr_low_set_control): Likewise.
7927 (i386_dr_low_get_control): Likewise.
7928 (i386_dr_low_get_status): Likewise.
7929 (i386_dr_low): New global variable.
7930 * win32-i386-low.c (i386_dr_low_set_addr):
7931 Changed signature. Made static.
7932 (i386_dr_low_get_addr): Likewise.
7933 (i386_dr_low_set_control): Likewise.
7934 (i386_dr_low_get_control): Likewise.
7935 (i386_dr_low_get_status): Likewise.
7936 (i386_dr_low): New global variable.
7937
7938 2014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
7939
7940 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
7941 * Makefile.in (AR, AR_FLAGS): Define.
7942 * configure: Regenerate.
7943
7944 2014-06-19 Gary Benson <gbenson@redhat.com>
7945
7946 * Makefile.in (i386-dregs.o): New rule.
7947 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
7948 * i386-low.c (target.h): Remove include.
7949 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
7950 (DR_CONTROL_SHIFT): Likewise.
7951 (DR_CONTROL_SIZE): Likewise.
7952 (DR_RW_EXECUTE): Likewise.
7953 (DR_RW_WRITE): Likewise.
7954 (DR_RW_READ): Likewise.
7955 (DR_RW_IORW): Likewise.
7956 (DR_LEN_1): Likewise.
7957 (DR_LEN_2): Likewise.
7958 (DR_LEN_4): Likewise.
7959 (DR_LEN_8): Likewise.
7960 (DR_LOCAL_ENABLE_SHIFT): Likewise.
7961 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
7962 (DR_ENABLE_SIZE): Likewise.
7963 (DR_LOCAL_SLOWDOWN): Likewise.
7964 (DR_GLOBAL_SLOWDOWN): Likewise.
7965 (DR_CONTROL_RESERVED): Likewise.
7966 (I386_DR_CONTROL_MASK): Likewise.
7967 (I386_DR_VACANT): Likewise.
7968 (I386_DR_LOCAL_ENABLE): Likewise.
7969 (I386_DR_GLOBAL_ENABLE): Likewise.
7970 (I386_DR_DISABLE): Likewise.
7971 (I386_DR_SET_RW_LEN): Likewise.
7972 (I386_DR_GET_RW_LEN): Likewise.
7973 (I386_DR_WATCH_HIT): Likewise.
7974 (i386_wp_op_t): Likewise.
7975 (i386_show_dr): Likewise.
7976 (i386_length_and_rw_bits): Likewise.
7977 (i386_insert_aligned_watchpoint): Likewise.
7978 (i386_remove_aligned_watchpoint): Likewise.
7979 (i386_handle_nonaligned_watchpoint): Likewise.
7980 i386_update_inferior_debug_regs(): Likewise.
7981 (i386_dr_insert_watchpoint): Likewise.
7982 (i386_dr_remove_watchpoint): Likewise.
7983 (i386_dr_region_ok_for_watchpoint): Likewise.
7984 (i386_dr_stopped_data_address): Likewise.
7985 (i386_dr_stopped_by_watchpoint): Likewise.
7986
7987 2014-06-19 Gary Benson <gbenson@redhat.com>
7988
7989 * i386-low.c (i386_dr_show): Renamed to
7990 i386_show_dr and made static. All uses updated.
7991 (i386_dr_length_and_rw_bits): Renamed to
7992 i386_length_and_rw_bits and made static.
7993 All uses updated.
7994 (i386_dr_insert_aligned_watchpoint): Renamed to
7995 i386_insert_aligned_watchpoint and made static.
7996 All uses updated.
7997 (i386_dr_remove_aligned_watchpoint): Renamed to
7998 i386_remove_aligned_watchpoint and made static.
7999 All uses updated.
8000 (i386_dr_update_inferior_debug_regs): Renamed to
8001 i386_update_inferior_debug_regs and made static.
8002 All uses updated.
8003
8004 2014-06-18 Gary Benson <gbenson@redhat.com>
8005
8006 * i386-low.h (i386_dr_low_can_set_addr): New macro.
8007 (i386_dr_low_can_set_control): Likewise.
8008 (i386_get_debug_register_length): Likewise.
8009 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
8010 (i386_dr_low_can_set_control): Likewise.
8011 (i386_get_debug_register_length): Likewise.
8012
8013 2014-06-17 Gary Benson <gbenson@redhat.com>
8014
8015 * i386-low.h (i386-dregs.h): New include.
8016 (DR_FIRSTADDR): Now in i386-dregs.h.
8017 (DR_LASTADDR): Likewise.
8018 (DR_NADDR): Likewise.
8019 (DR_STATUS): Likewise.
8020 (DR_CONTROL): Likewise.
8021 (i386_debug_reg_state): Likewise.
8022 (i386_dr_insert_watchpoint): Likewise.
8023 (i386_dr_remove_watchpoint): Likewise.
8024 (i386_dr_region_ok_for_watchpoint): Likewise.
8025 (i386_dr_stopped_data_address): Likewise.
8026 (i386_dr_stopped_by_watchpoint): Likewise.
8027 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
8028
8029 2014-06-18 Gary Benson <gbenson@redhat.com>
8030
8031 * i386-low.h (i386_low_insert_watchpoint): Renamed to
8032 i386_dr_insert_watchpoint.
8033 (i386_low_remove_watchpoint): Renamed to
8034 i386_dr_remove_watchpoint.
8035 (i386_low_region_ok_for_watchpoint): Renamed to
8036 i386_dr_region_ok_for_watchpoint.
8037 (i386_low_stopped_data_address): Renamed to
8038 i386_dr_stopped_data_address.
8039 (i386_low_stopped_by_watchpoint): Renamed to
8040 i386_dr_stopped_by_watchpoint.
8041 * i386-low.c (i386_show_dr): Renamed to
8042 i386_dr_show and made nonstatic. All uses updated.
8043 (i386_length_and_rw_bits): Renamed to
8044 i386_dr_length_and_rw_bits and made nonstatic.
8045 All uses updated.
8046 (i386_insert_aligned_watchpoint): Renamed to
8047 i386_dr_insert_aligned_watchpoint and made nonstatic.
8048 All uses updated.
8049 (i386_remove_aligned_watchpoint): Renamed to
8050 i386_dr_remove_aligned_watchpoint and made nonstatic.
8051 All uses updated.
8052 (i386_update_inferior_debug_regs): Renamed to
8053 i386_dr_update_inferior_debug_regs and made nonstatic.
8054 All uses updated.
8055 (i386_low_insert_watchpoint): Renamed to
8056 i386_dr_insert_watchpoint. All uses updated.
8057 (i386_low_remove_watchpoint): Renamed to
8058 i386_dr_remove_watchpoint. All uses updated.
8059 (i386_low_region_ok_for_watchpoint): Renamed to
8060 i386_dr_region_ok_for_watchpoint. All uses updated.
8061 (i386_low_stopped_data_address): Renamed to
8062 i386_dr_stopped_data_address. All uses updated.
8063 (i386_low_stopped_by_watchpoint): Renamed to
8064 i386_dr_stopped_by_watchpoint. All uses updated.
8065
8066 2014-06-18 Gary Benson <gbenson@redhat.com>
8067
8068 * i386-low.c (i386_dr_low_can_set_addr): New macro.
8069 (i386_dr_low_can_set_control): Likewise.
8070 (i386_insert_aligned_watchpoint): New check.
8071
8072 2014-06-18 Gary Benson <gbenson@redhat.com>
8073
8074 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
8075 Renamed to state.
8076
8077 2014-06-18 Gary Benson <gbenson@redhat.com>
8078
8079 * i386-low.c (i386_length_and_rw_bits): Use internal_error
8080 instead of fatal and error.
8081 (i386_handle_nonaligned_watchpoint): Likewise.
8082
8083 2014-06-18 Gary Benson <gbenson@redhat.com>
8084
8085 * i386-low.c (i386_get_debug_register_length): New macro.
8086 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
8087 (i386_show_dr): Use debug_printf instead of fprintf. Use
8088 phex to format values.
8089
8090 2014-06-18 Gary Benson <gbenson@redhat.com>
8091
8092 * i386-low.h: Comment changes.
8093 * i386-low.c: Likewise.
8094
8095 2014-06-18 Gary Benson <gbenson@redhat.com>
8096
8097 * i386-low.c: Whitespace changes.
8098
8099 2014-06-12 Tom Tromey <tromey@redhat.com>
8100
8101 * utils.c (freeargv): Remove.
8102
8103 2014-06-12 Tom Tromey <tromey@redhat.com>
8104
8105 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
8106 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
8107 (parse_debug_format_options): Likewise.
8108 (gdbserver_usage): Likewise.
8109 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
8110 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
8111 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
8112 against libiberty.
8113 ($(LIBGNU)): Depend on libiberty.
8114 (all-lib): Recurse into all subdirs.
8115 (install-only): Invoke "install" target in subdirs.
8116 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
8117 targets.
8118 * configure: Rebuild.
8119 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
8120 for vasprintf, vsnprintf, or gettimeofday.
8121 * configure.srv: Don't add safe-ctype.o or lbasename.o to
8122 srv_tgtobj.
8123
8124 2014-06-05 Joel Brobecker <brobecker@adacore.com>
8125
8126 * development.sh: Delete.
8127 * Makefile.in (config.status): Adjust dependency on development.sh.
8128 * configure.ac: Adjust development.sh source call.
8129 * configure: Regenerate.
8130
8131 2014-06-02 Pedro Alves <palves@redhat.com>
8132
8133 * ax.c (gdb_free_agent_expr): New function.
8134 * ax.h (gdb_free_agent_expr): New declaration.
8135 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
8136 list.
8137 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
8138 static.
8139 (clear_breakpoint_conditions_and_commands): New function.
8140 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
8141 (clear_breakpoint_conditions_and_commands): New declaration.
8142
8143 2014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8144
8145 * linux-aarch64-low.c (asm/ptrace.h): Include.
8146
8147 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8148
8149 Fix TLS access for -static -pthread.
8150 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
8151 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
8152 (thread_db_load_search, try_thread_db_load_1): Initialize it.
8153
8154 2014-05-20 Pedro Alves <palves@redhat.com>
8155
8156 * linux-aarch64-low.c (aarch64_insert_point)
8157 (aarch64_remove_point): No longer check whether the type is
8158 supported here. Adjust to new interface.
8159 (the_low_target): Install aarch64_supports_z_point_type as
8160 supports_z_point_type method.
8161 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
8162 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
8163 instead of a Z packet char. Adjust.
8164 (arm_supports_z_point_type): New function.
8165 (arm_insert_point, arm_remove_point): Adjust to new interface.
8166 (the_low_target): Install arm_supports_z_point_type.
8167 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
8168 (cris_insert_point, cris_remove_point): Adjust to new interface.
8169 Don't check whether the type is supported here.
8170 (the_low_target): Install cris_supports_z_point_type.
8171 * linux-low.c (linux_supports_z_point_type): New function.
8172 (linux_insert_point, linux_remove_point): Adjust to new interface.
8173 * linux-low.h (struct linux_target_ops) <insert_point,
8174 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
8175 raw_breakpoint pointer parameter.
8176 <supports_z_point_type>: New method.
8177 * linux-mips-low.c (mips_supports_z_point_type): New function.
8178 (mips_insert_point, mips_remove_point): Adjust to new interface.
8179 Use mips_supports_z_point_type.
8180 (the_low_target): Install mips_supports_z_point_type.
8181 * linux-ppc-low.c (the_low_target): Install NULL as
8182 supports_z_point_type method.
8183 * linux-s390-low.c (the_low_target): Install NULL as
8184 supports_z_point_type method.
8185 * linux-sparc-low.c (the_low_target): Install NULL as
8186 supports_z_point_type method.
8187 * linux-x86-low.c (x86_supports_z_point_type): New function.
8188 (x86_insert_point): Adjust to new insert_point interface. Use
8189 insert_memory_breakpoint. Adjust to new
8190 i386_low_insert_watchpoint interface.
8191 (x86_remove_point): Adjust to remove_point interface. Use
8192 remove_memory_breakpoint. Adjust to new
8193 i386_low_remove_watchpoint interface.
8194 (the_low_target): Install x86_supports_z_point_type.
8195 * lynx-low.c (lynx_target_ops): Install NULL as
8196 supports_z_point_type callback.
8197 * nto-low.c (nto_supports_z_point_type): New.
8198 (nto_insert_point, nto_remove_point): Adjust to new interface.
8199 (nto_target_ops): Install nto_supports_z_point_type.
8200 * mem-break.c: Adjust intro comment.
8201 (struct raw_breakpoint) <raw_type, size>: New fields.
8202 <inserted>: Update comment.
8203 <shlib_disabled>: Delete field.
8204 (enum bkpt_type) <gdb_breakpoint>: Delete value.
8205 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
8206 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
8207 (raw_bkpt_type_to_target_hw_bp_type): New function.
8208 (find_enabled_raw_code_breakpoint_at): New function.
8209 (find_raw_breakpoint_at): New type and size parameters. Use them.
8210 (insert_memory_breakpoint): New function, based off
8211 set_raw_breakpoint_at.
8212 (remove_memory_breakpoint): New function.
8213 (set_raw_breakpoint_at): Reimplement.
8214 (set_breakpoint): New, based on set_breakpoint_at.
8215 (set_breakpoint_at): Reimplement.
8216 (delete_raw_breakpoint): Go through the_target->remove_point
8217 instead of assuming memory breakpoints.
8218 (find_gdb_breakpoint_at): Delete.
8219 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
8220 (find_gdb_breakpoint): New function.
8221 (set_gdb_breakpoint_at): Delete.
8222 (z_type_supported): New function.
8223 (set_gdb_breakpoint_1): New function, loosely based off
8224 set_gdb_breakpoint_at.
8225 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
8226 (delete_gdb_breakpoint_at): Delete.
8227 (delete_gdb_breakpoint_1): New function, loosely based off
8228 delete_gdb_breakpoint_at.
8229 (delete_gdb_breakpoint): New function.
8230 (clear_gdb_breakpoint_conditions): Rename to ...
8231 (clear_breakpoint_conditions): ... this. Don't handle a NULL
8232 breakpoint.
8233 (add_condition_to_breakpoint): Make static.
8234 (add_breakpoint_condition): Take a struct breakpoint pointer
8235 instead of an address. Adjust.
8236 (gdb_condition_true_at_breakpoint): Rename to ...
8237 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
8238 z_type parameter.
8239 (gdb_condition_true_at_breakpoint): Reimplement.
8240 (add_breakpoint_commands): Take a struct breakpoint pointer
8241 instead of an address. Adjust.
8242 (gdb_no_commands_at_breakpoint): Rename to ...
8243 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
8244 parameter. Return true if no breakpoint was found. Change debug
8245 output.
8246 (gdb_no_commands_at_breakpoint): Reimplement.
8247 (run_breakpoint_commands): Rename to ...
8248 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
8249 and change return type to boolean.
8250 (run_breakpoint_commands): New function.
8251 (gdb_breakpoint_here): Also check for Z1 breakpoints.
8252 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
8253 breakpoint. Go through the_target->remove_point instead of
8254 assuming memory breakpoint.
8255 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
8256 software and hardware breakpoints.
8257 (reinsert_raw_breakpoint): Go through the_target->insert_point
8258 instead of assuming memory breakpoint.
8259 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
8260 software and hardware breakpoints.
8261 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
8262 Check both software and hardware breakpoints.
8263 (validate_inserted_breakpoint): Assert the breakpoint is a
8264 software breakpoint. Set the inserted flag to -1 instead of
8265 setting shlib_disabled.
8266 (delete_disabled_breakpoints): Adjust.
8267 (validate_breakpoints): Only validate software breakpoints.
8268 Adjust to inserted flag change.
8269 (check_mem_read, check_mem_write): Skip breakpoint types other
8270 than software breakpoints. Adjust to inserted flag change.
8271 * mem-break.h (enum raw_bkpt_type): New enum.
8272 (raw_breakpoint, struct process_info): Forward declare.
8273 (Z_packet_to_target_hw_bp_type): Delete declaration.
8274 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
8275 (set_gdb_breakpoint, delete_gdb_breakpoint)
8276 (clear_breakpoint_conditions): New declarations.
8277 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
8278 (breakpoint_inserted_here): Update comment.
8279 (add_breakpoint_condition, add_breakpoint_commands): Replace
8280 address parameter with a breakpoint pointer parameter.
8281 (gdb_breakpoint_here): Update comment.
8282 (delete_gdb_breakpoint_at): Delete.
8283 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
8284 * server.c (process_point_options): Take a struct breakpoint
8285 pointer instead of an address. Adjust.
8286 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
8287 delete_gdb_breakpoint.
8288 * spu-low.c (spu_target_ops): Install NULL as
8289 supports_z_point_type method.
8290 * target.h: Include mem-break.h.
8291 (struct target_ops) <prepare_to_access_memory>: Update comment.
8292 <supports_z_point_type>: New field.
8293 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
8294 instead of a char. Also take a raw breakpoint pointer.
8295 * win32-arm-low.c (the_low_target): Install NULL as
8296 supports_z_point_type.
8297 * win32-i386-low.c (i386_supports_z_point_type): New function.
8298 (i386_insert_point, i386_remove_point): Adjust to new interface.
8299 (the_low_target): Install i386_supports_z_point_type.
8300 * win32-low.c (win32_supports_z_point_type): New function.
8301 (win32_insert_point, win32_remove_point): Adjust to new interface.
8302 (win32_target_ops): Install win32_supports_z_point_type.
8303 * win32-low.h (struct win32_target_ops):
8304 <supports_z_point_type>: New method.
8305 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
8306 instead of a char. Also take a raw breakpoint pointer.
8307
8308 2014-05-20 Pedro Alves <palves@redhat.com>
8309
8310 * mem-break.h: Include break-common.h.
8311 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
8312 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
8313 (Z_packet_to_target_hw_bp_type): New declaration.
8314 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
8315 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
8316 (Z_PACKET_ACCESS_WP): Delete macros.
8317 (Z_packet_to_hw_type): Delete function.
8318 * i386-low.h: Don't include break-common.h here.
8319 (Z_packet_to_hw_type): Delete declaration.
8320 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
8321 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
8322 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
8323 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
8324 * linux-aarch64-low.c: Don't include break-common.h here.
8325 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
8326 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
8327 (Z_packet_to_target_hw_bp_type): Delete function.
8328 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
8329 function.
8330 (mips_insert_point, mips_remove_point): Use
8331 Z_packet_to_target_hw_bp_type.
8332
8333 2014-05-20 Pedro Alves <palves@redhat.com>
8334
8335 * linux-aarch64-low.c: Include break-common.h.
8336 (enum target_point_type): Delete.
8337 (Z_packet_to_point_type): Rename to ...
8338 (Z_packet_to_target_hw_bp_type): ... this, and return a
8339 target_hw_bp_type instead.
8340 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
8341 instead of an enum target_point_type.
8342 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
8343 breakpoint type.
8344 (aarch64_dr_state_insert_one_point)
8345 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
8346 (aarch64_handle_aligned_watchpoint)
8347 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
8348 Take an enum target_hw_bp_type instead of an enum
8349 target_point_type.
8350 (aarch64_supports_z_point_type): New function.
8351 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
8352 use Z_packet_to_target_hw_bp_type.
8353
8354 2014-05-20 Joel Brobecker <brobecker@adacore.com>
8355
8356 * configure.ac: Only use -Werror by default when DEVELOPMENT
8357 is true.
8358 * configure: Regenerate.
8359
8360 2014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8361
8362 Fix gdbserver qGetTLSAddr for x86_64 -m32.
8363 * linux-x86-low.c (X86_64_USER_REGS): New.
8364 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
8365
8366 2014-04-28 Yao Qi <yao@codesourcery.com>
8367
8368 * Makefile.in (i386-avx512.c): Fix the typo of generated file
8369 name.
8370
8371 2014-04-25 Pedro Alves <palves@redhat.com>
8372
8373 PR server/16255
8374 * linux-low.c (linux_attach_fail_reason_string): New function.
8375 (linux_attach_lwp): Delete.
8376 (linux_attach_lwp_1): Rename to ...
8377 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
8378 argument. Remove "initial" parameter. Return int instead of
8379 void. Don't error or warn here.
8380 (linux_attach): Adjust to call linux_attach_lwp. Call error on
8381 failure to attach to the tgid. Call warning when failing to
8382 attach to an lwp.
8383 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
8384 argument. Remove "initial" parameter. Return int instead of
8385 void. Don't error or warn here.
8386 (linux_attach_fail_reason_string): New declaration.
8387 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
8388 interface change. Use linux_attach_fail_reason_string.
8389
8390 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
8391 Walfred Tedeschi <walfred.tedeschi@intel.com>
8392
8393 * Makefile.in: Added rules to handle new files
8394 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
8395 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
8396 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
8397 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
8398 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
8399 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
8400 x32-avx512-linux.o.
8401 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
8402 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
8403 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
8404 i386/x32-avx512.xml.
8405 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
8406 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
8407 i386/x32-avx512-linux.xml.
8408 * i387-fp.c (num_avx512_k_registers): New constant for number
8409 of K registers.
8410 (num_avx512_zmmh_low_registers): New constant for number of
8411 lower ZMM registers (0-15).
8412 (num_avx512_zmmh_high_registers): New constant for number of
8413 higher ZMM registers (16-31).
8414 (num_avx512_ymmh_registers): New contant for number of higher
8415 YMM registers (ymm16-31 added by avx521 on x86_64).
8416 (num_avx512_xmm_registers): New constant for number of higher
8417 XMM registers (xmm16-31 added by AVX512 on x86_64).
8418 (struct i387_xsave): Add space for AVX512 registers.
8419 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
8420 Add code to handle AVX512 registers.
8421 (i387_xsave_to_cache): Add code to handle AVX512 registers.
8422 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
8423 prototypei from generated file.
8424 (tdesc_amd64_avx512_linux): Likewise.
8425 (init_registers_x32_avx512_linux): Likewise.
8426 (tdesc_x32_avx512_linux): Likewise.
8427 (init_registers_i386_avx512_linux): Likewise.
8428 (tdesc_i386_avx512_linux): Likewise.
8429 (x86_64_regmap): Add AVX512 registers.
8430 (x86_linux_read_description): Add code to handle AVX512 XSTATE
8431 mask.
8432 (initialize_low_arch): Add code to initialize AVX512 registers.
8433
8434 2014-04-23 Pedro Alves <palves@redhat.com>
8435
8436 * mem-break.c (find_gdb_breakpoint_at): Make static.
8437 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
8438
8439 2014-04-23 Pedro Alves <palves@redhat.com>
8440
8441 * i386-low.c: Don't include break-common.h here.
8442 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
8443 prototype to take target_hw_bp_type as argument instead of a Z
8444 packet char.
8445 * i386-low.h: Include break-common.h here.
8446 (Z_packet_to_hw_type): Declare.
8447 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
8448 prototypes.
8449 * linux-x86-low.c (x86_insert_point): Convert the packet number to
8450 a target_hw_bp_type before calling i386_low_insert_watchpoint.
8451 (x86_remove_point): Convert the packet number to a
8452 target_hw_bp_type before calling i386_low_remove_watchpoint.
8453 * win32-i386-low.c (i386_insert_point): Convert the packet number
8454 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
8455 (i386_remove_point): Convert the packet number to a
8456 target_hw_bp_type before calling i386_low_remove_watchpoint.
8457
8458 2014-04-23 Pedro Alves <palves@redhat.com>
8459
8460 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
8461
8462 2014-04-10 Pedro Alves <palves@redhat.com>
8463
8464 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
8465 Check if the condition or command is NULL before checking if the
8466 breakpoint is known. On success, return true.
8467 * mem-break.h (add_breakpoint_condition): Document return.
8468 (add_breakpoint_commands): Add describing comment.
8469 * server.c (skip_to_semicolon): New function.
8470 (process_point_options): Use it.
8471
8472 2014-04-09 Pedro Alves <palves@redhat.com>
8473
8474 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
8475 to lwpid_of.
8476
8477 2014-02-27 Pedro Alves <palves@redhat.com>
8478
8479 PR 12702
8480 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
8481 macros.
8482 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
8483 output.
8484 (last_thread_of_process_p): Take a PID argument instead of a
8485 thread pointer.
8486 (linux_wait_for_lwp): Delete.
8487 (num_lwps, check_zombie_leaders, not_stopped_callback): New
8488 functions.
8489 (linux_low_filter_event): New function, party factored out from
8490 linux_wait_for_event.
8491 (linux_wait_for_event): Rename to ...
8492 (linux_wait_for_event_filtered): ... this. Add new filter ptid
8493 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
8494 sigsuspend. Check for zombie leaders.
8495 (linux_wait_for_event): Reimplement as wrapper around
8496 linux_wait_for_event_filtered.
8497 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
8498 a normal or signal exit is seen, it's the whole process exiting.
8499 (wait_for_sigstop): No longer a for_each_inferior callback.
8500 Rewrite on top of linux_wait_for_event_filtered.
8501 (stop_all_lwps): Call wait_for_sigstop directly.
8502 * server.c (resume, handle_target_event): Handle
8503 TARGET_WAITKIND_NO_RESUMED.
8504
8505 2014-02-26 Joel Brobecker <brobecker@adacore.com>
8506
8507 * win32-low.c (psapi_get_dll_name,
8508 * win32_CreateToolhelp32Snapshot): Delete.
8509 (win32_CreateToolhelp32Snapshot, win32_Module32First)
8510 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
8511 Delete.
8512 (handle_load_dll): Add function description.
8513 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
8514
8515 2014-02-26 Joel Brobecker <brobecker@adacore.com>
8516
8517 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
8518 Add comment.
8519 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
8520 base address when calling win32_add_one_solib.
8521 (handle_load_dll): Delete local variable load_addr.
8522 Remove 0x1000 offset applied to DLL base address when calling
8523 win32_add_one_solib.
8524 (handle_unload_dll): Add comment.
8525
8526 2014-02-26 Joel Brobecker <brobecker@adacore.com>
8527
8528 * win32-low.c (win32_add_all_dlls): Renames
8529 win32_ensure_ntdll_loaded. Rewrite function documentation.
8530 Adjust implementation to always load all DLLs.
8531 Add 0x1000 offset to DLL base address when calling
8532 win32_add_one_solib.
8533 (child_initialization_done): New static global.
8534 (do_initial_child_stuff): Set child_initialization_done to
8535 zero during child initialization, and 1 after. Replace call
8536 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
8537 Add comment.
8538 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
8539 (handle_unload_dll): Add function documentation.
8540 (get_child_debug_event): Ignore load and unload DLL events
8541 during child initialization.
8542
8543 2014-02-20 Doug Evans <dje@google.com>
8544
8545 Remove global all_lwps.
8546 * inferiors.h (ptid_of): Move here from linux-low.h.
8547 (pid_of, lwpid_of): Ditto.
8548 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
8549 parameter is a struct thread_info * now.
8550 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
8551 directly. Pass &all_threads to find_inferior instead of &all_lwps.
8552 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
8553 directly.
8554 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
8555 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
8556 * linux-arm-low.c (update_registers_callback): Update, "entry"
8557 parameter is a struct thread_info * now.
8558 Fetch lwpid from current_inferior directly.
8559 (arm_insert_point): Pass &all_threads to find_inferior instead of
8560 &all_lwps.
8561 (arm_remove_point): Ditto.
8562 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
8563 (arm_prepare_to_resume): Fetch pid from thread.
8564 (arm_read_description): Fetch lwpid from current_inferior directly.
8565 * linux-low.c (all_lwps): Delete.
8566 (delete_lwp): Delete call to remove_inferior.
8567 (handle_extended_wait): Fetch lwpid from thread.
8568 (add_lwp): Don't set lwp->entry.id. Remove call to
8569 add_inferior_to_list.
8570 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
8571 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
8572 (kill_one_lwp_callback): Ditto.
8573 (linux_kill): Don't dereference NULL pointer.
8574 Fetch ptid,lwpid from thread.
8575 (get_detach_signal): Fetch ptid from thread.
8576 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
8577 Simplify call to regcache_invalidate_thread.
8578 (delete_lwp_callback): Update, "entry" parameter is a
8579 struct thread_info * now. Fetch pid from thread.
8580 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
8581 (status_pending_p_callback): Update, "entry" parameter is a
8582 struct thread_info * now. Fetch ptid from thread.
8583 (find_lwp_pid): Update, "entry" parameter is a
8584 struct thread_info * now.
8585 (linux_wait_for_lwp): Fetch pid from thread.
8586 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
8587 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
8588 (enqueue_one_deferred_signal): Fetch lwpid from thread.
8589 (dequeue_one_deferred_signal): Ditto.
8590 (cancel_breakpoint): Fetch ptid from current_inferior.
8591 (linux_wait_for_event): Pass &all_threads to find_inferior,
8592 not &all_lwps. Fetch ptid, lwpid from thread.
8593 (count_events_callback): Update, "entry" parameter is a
8594 struct thread_info * now.
8595 (select_singlestep_lwp_callback): Ditto.
8596 (select_event_lwp_callback): Ditto.
8597 (cancel_breakpoints_callback): Ditto.
8598 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
8599 not &all_lwps.
8600 (select_event_lwp): Ditto. Fetch ptid from event_thread.
8601 (unsuspend_one_lwp): Update, "entry" parameter is a
8602 struct thread_info * now.
8603 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
8604 not &all_lwps.
8605 (linux_stabilize_threads): Ditto. And for for_each_inferior.
8606 Fetch lwpid from thread, not lwp.
8607 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
8608 Pass &all_threads to find_inferior, not &all_lwps.
8609 (send_sigstop): Fetch lwpid from thread, not lwp.
8610 (send_sigstop_callback): Update, "entry" parameter is a
8611 struct thread_info * now.
8612 (suspend_and_send_sigstop_callback): Ditto.
8613 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
8614 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
8615 struct thread_info * now.
8616 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
8617 from thread, lwp.
8618 (lwp_running): Update, "entry" parameter is a
8619 struct thread_info * now.
8620 (stop_all_lwps): Fetch ptid from thread.
8621 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
8622 (linux_resume_one_lwp): Fetch lwpid from thread.
8623 (linux_set_resume_request): Update, "entry" parameter is a
8624 struct thread_info * now. Fetch pid, lwpid from thread.
8625 (resume_status_pending_p): Update, "entry" parameter is a
8626 struct thread_info * now.
8627 (need_step_over_p): Ditto. Fetch lwpid from thread.
8628 (start_step_over): Fetch lwpid from thread.
8629 (linux_resume_one_thread): Update, "entry" parameter is a
8630 struct thread_info * now. Fetch lwpid from thread.
8631 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
8632 (proceed_one_lwp): Update, "entry" parameter is a
8633 struct thread_info * now. Fetch lwpid from thread.
8634 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
8635 struct thread_info * now.
8636 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
8637 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
8638 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
8639 directly.
8640 (regsets_store_inferior_registers): Ditto.
8641 (fetch_register, store_register): Ditto.
8642 (linux_read_memory, linux_write_memory): Ditto.
8643 (linux_request_interrupt): Ditto.
8644 (linux_read_auxv): Ditto.
8645 (linux_xfer_siginfo): Ditto.
8646 (linux_qxfer_spu): Ditto.
8647 (linux_qxfer_libraries_svr4): Ditto.
8648 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
8649 moved to inferiors.h.
8650 (get_lwp): Delete.
8651 (get_thread_lwp): Update.
8652 (struct lwp_info): Delete member "entry". Simplify comment for
8653 member "thread".
8654 (all_lwps): Delete.
8655 * linux-mips-low.c (mips_read_description): Fetch lwpid from
8656 current_inferior directly.
8657 (update_watch_registers_callback): Update, "entry" parameter is a
8658 struct thread_info * now. Fetch pid from thread.
8659 (mips_linux_prepare_to_resume): Fetch ptid from thread.
8660 (mips_insert_point): Fetch lwpid from current_inferior.
8661 Pass &all_threads to find_inferior, not &all_lwps.
8662 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
8663 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
8664 directly.
8665 (mips_stopped_data_address): Ditto.
8666 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
8667 directly.
8668 * linux-tile-low.c (tile_arch_setup): Ditto.
8669 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
8670 (update_debug_registers_callback): Update, "entry" parameter is a
8671 struct thread_info * now. Fetch pid from thread.
8672 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
8673 Pass &all_threads to find_inferior, not &all_lwps.
8674 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
8675 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
8676 Pass &all_threads to find_inferior, not &all_lwps.
8677 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
8678 (i386_dr_low_get_status): Ditto.
8679 (x86_linux_prepare_to_resume): Fetch ptid from thread.
8680 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
8681 (x86_linux_read_description): Ditto.
8682 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
8683
8684 2014-02-20 Doug Evans <dje@google.com>
8685
8686 * inferiors.c (get_first_inferior): Fix buglet.
8687
8688 2014-02-19 Doug Evans <dje@google.com>
8689
8690 * gdbthread.h (add_thread): Change result type to struct thread_info *.
8691 * inferiors.c (add_thread): Change result type to struct thread_info *.
8692 All callers updated.
8693 (add_lwp): Call add_thread here instead of in callers.
8694 All callers updated.
8695 * linux-low.h (get_lwp_thread): Rewrite.
8696 (struct lwp_info): New member "thread".
8697
8698 2014-02-19 Doug Evans <dje@google.com>
8699
8700 * linux-low.c (add_lwp): Change result to struct lwp_info *.
8701 All callers updated.
8702
8703 2014-02-19 Doug Evans <dje@google.com>
8704
8705 * inferiors.c (add_thread): Fix whitespace.
8706
8707 2014-02-19 Doug Evans <dje@google.com>
8708
8709 * dll.c (clear_dlls): Replace accessing list implemention details
8710 with API function.
8711 * gdbthread.h (get_first_thread): Declare.
8712 * inferiors.c (for_each_inferior_with_data): New function.
8713 (get_first_thread): New function.
8714 (find_thread_ptid): Simplify.
8715 (get_first_inferior): New function.
8716 (clear_list): Delete.
8717 (one_inferior_p): New function.
8718 (clear_inferior_list): New function.
8719 (clear_inferiors): Update.
8720 * inferiors.h (for_each_inferior_with_data): Declare.
8721 (clear_inferior_list): Declare.
8722 (one_inferior_p): Declare.
8723 (get_first_inferior): Declare.
8724 * linux-low.c (linux_wait_for_event): Replace accessing list
8725 implemention details with API function.
8726 * server.c (target_running): Ditto.
8727 (accumulate_file_name_length): New function.
8728 (emit_dll_description): New function.
8729 (handle_qxfer_libraries): Replace accessing list implemention
8730 details with API function.
8731 (handle_qxfer_threads_worker): New function.
8732 (handle_qxfer_threads_proper): Replace accessing list implemention
8733 details with API function.
8734 (handle_query): Ditto.
8735 (visit_actioned_threads_callback_ftype): New typedef.
8736 (visit_actioned_threads_data): New struct.
8737 (visit_actioned_threads): Rewrite to be find_inferior callback.
8738 (resume): Call find_inferior.
8739 (handle_status): Replace accessing list implemention
8740 details with API function.
8741 (process_serial_event): Replace accessing list implemention details
8742 with API function.
8743 * target.c (set_desired_inferior): Replace accessing list implemention
8744 details with API function.
8745 * tracepoint.c (same_process_p): New function.
8746 (gdb_agent_about_to_close): Replace accessing list implemention
8747 details with API function.
8748 * win32-low.c (child_delete_thread): Replace accessing list
8749 implemention details with API function.
8750 (match_dll_by_basename): New function.
8751 (dll_is_loaded_by_basename): New function.
8752 (win32_ensure_ntdll_loaded): Replace accessing list implemention
8753 details call to dll_is_loaded_by_basename.
8754
8755 2014-02-19 Doug Evans <dje@google.com>
8756
8757 * dll.h (struct dll_info): Add comment.
8758 * gdbthread.h (struct thread_info): Add comment.
8759 (current_ptid): Simplify.
8760 * inferiors.c (add_process): Update.
8761 (remove_process): Update.
8762 * inferiors.h (struct process_info): Rename member "head" to "entry".
8763 * linux-low.c (delete_lwp): Update.
8764 (add_lwp): Update.
8765 (last_thread_of_process_p): Update.
8766 (kill_one_lwp_callback, linux_kill): Update.
8767 (status_pending_p_callback): Update.
8768 (wait_for_sigstop): Update. Simplify read of ptid.
8769 (start_step_over): Update.
8770 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
8771 (get_lwp_thread): Update.
8772 (struct lwp_info): Rename member "head" to "entry".
8773 * regcache.h (inferior_list_entry): Delete.
8774 * server.c (kill_inferior_callback): Update.
8775 (detach_or_kill_inferior_callback): Update.
8776 (print_started_pid): Update.
8777 (print_attached_pid): Update.
8778 (process_serial_event): Simplify read of ptid.
8779 * thread-db.c (thread_db_create_event): Update.
8780 (thread_db_get_tls_address): Update.
8781 * win32-low.c (current_inferior_ptid): Simplify.
8782
8783 2014-02-19 Tom Tromey <tromey@redhat.com>
8784
8785 * target.h (struct target_ops) <supports_btrace>: Add target_ops
8786 argument.
8787 (target_supports_btrace): Update.
8788
8789 2014-02-14 Yao Qi <yao@codesourcery.com>
8790
8791 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
8792 (rsp-low-ipa.o): New target.
8793
8794 2014-02-12 Tom Tromey <tromey@redhat.com>
8795
8796 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
8797 convert_ascii_to_int.
8798 * regcache.c (registers_to_string): Likewise.
8799 * remote-utils.c (decode_M_packet): Likewise.
8800 * server.c (process_serial_event): Likewise.
8801
8802 2014-02-12 Tom Tromey <tromey@redhat.com>
8803
8804 * server.c (handle_query, handle_v_run): Use hex2bin, not
8805 unhexify.
8806 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
8807
8808 2014-02-12 Tom Tromey <tromey@redhat.com>
8809
8810 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
8811 convert_int_to_ascii.
8812 * regcache.c (registers_to_string, collect_register_as_string):
8813 Likewise.
8814 * remote-utils.c (look_up_one_symbol, relocate_instruction):
8815 Likewise.
8816 * server.c (process_serial_event): Likewise.
8817 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
8818 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
8819
8820 2014-02-12 Tom Tromey <tromey@redhat.com>
8821
8822 * remote-utils.c (look_up_one_symbol, monitor_output): Use
8823 bin2hex, not hexify.
8824 * tracepoint.c (cmd_qtstatus): Likewise.
8825
8826 2014-02-12 Tom Tromey <tromey@redhat.com>
8827
8828 * remote-utils.c (monitor_output): Pass explicit length to
8829 hexify.
8830
8831 2014-02-12 Tom Tromey <tromey@redhat.com>
8832
8833 * tracepoint.c: Include rsp-low.h.
8834 * server.c: Include rsp-low.h.
8835 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
8836 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
8837 declare.
8838 * remote-utils.c: Include rsp-low.h.
8839 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
8840 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
8841 (convert_int_to_ascii, convert_ascii_to_int): Move to
8842 common/rsp-low.c.
8843 * regcache.c: Include rsp-low.h.
8844 * ax.c: Include rsp-low.h.
8845 * Makefile.in (SFILES): Add common/rsp-low.c.
8846 (OBS): Add rsp-low.o.
8847 (rsp-low.o): New target.
8848
8849 2014-02-12 Tom Tromey <tromey@redhat.com>
8850
8851 * utils.h (pulongest, plongest, phex_nz): Don't declare.
8852 Include print-utils.h.
8853 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
8854 (plongest, thirty_two, phex_nz): Remove.
8855 * Makefile.in (SFILES): Add common/print-utils.c.
8856 (OBS): Add print-utils.o.
8857 (print-utils-ipa.o): New target.
8858 (print-utils.o): New target.
8859 (IPA_OBJS): Add print-utils-ipa.o.
8860
8861 2014-02-06 Tom Tromey <tromey@redhat.com>
8862
8863 * Makefile.in (SFILES): Fix indentation.
8864
8865 2014-02-05 Doug Evans <dje@google.com>
8866
8867 * linux-low.c (linux_wait_for_event): Improve comment.
8868 (linux_wait_1): Keep current_inferior in sync with event_child.
8869
8870 2014-01-22 Doug Evans <dje@google.com>
8871
8872 * gdbthread.h (gdb_id_to_thread): Delete, unused.
8873
8874 2014-01-22 Doug Evans <dje@google.com>
8875
8876 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
8877 * configure: Regenerate.
8878 * config.in: Regenerate.
8879 * Makefile.in (SFILES): Add debug.c.
8880 (OBS): Add debug.o.
8881 * debug.c: New file.
8882 * debug.h: New file.
8883 * linux-aarch64-low.c (*): Update all debugging printfs to use
8884 debug_printf instead of fprintf.
8885 * linux-arm-low.c (*): Ditto.
8886 * linux-cris-low.c (*): Ditto.
8887 * linux-crisv32-low.c (*): Ditto.
8888 * linux-m32r-low.c (*): Ditto.
8889 * linux-sparc-low.c (*): Ditto.
8890 * linux-x86.c (*): Ditto.
8891 * linux-low.c (*): Ditto.
8892 (linux_wait_1): Add calls to debug_enter, debug_exit.
8893 (linux_wait): Remove redundant debugging printf.
8894 (stop_all_lwps): Add calls to debug_enter, debug_exit.
8895 (linux_resume, unstop_all_lwps): Ditto.
8896 * mem-break.c (*): Update all debugging printfs to use
8897 debug_printf instead of fprintf.
8898 * remote-utils.c (*): Ditto.
8899 * thread-db.c (*): Ditto.
8900 * server.c #include <ctype.h>, "gdb_vecs.h".
8901 (debug_threads): Moved to debug.c.
8902 (*): Update all debugging printfs to use debug_printf instead of
8903 fprintf.
8904 (start_inferior): Replace call to fflush with call to debug_flush.
8905 (monitor_show_help): Mention set debug-format.
8906 (parse_debug_format_options): New function.
8907 (handle_monitor_command): Handle "monitor set debug-format".
8908 (gdbserver_usage): Mention --debug-format.
8909 (main): Parse --debug-format.
8910 * server.h (debug_threads): Declaration moved to debug.h.
8911 #include "debug.h".
8912 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
8913 trace_debug_1 that uses debug_printf.
8914 (tracepoint_look_up_symbols): Update all debugging printfs to use
8915 debug_printf instead of fprintf.
8916
8917 2014-01-20 Baruch Siach <baruch@tkos.co.il>
8918
8919 * linux-xtensa-low.c: Include asm/ptrace.h instead of
8920 sys/ptrace.h.
8921
8922 2014-01-17 Pedro Alves <palves@redhat.com>
8923
8924 PR build/16445
8925 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
8926 defined after including gdb_proc_service.h.
8927
8928 2014-01-16 Doug Evans <dje@google.com>
8929
8930 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
8931 (match_dll): Use it.
8932
8933 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8934
8935 * target.h (target_ops) <read_btrace>: Change parameters and
8936 return type to allow error reporting.
8937 * server.c (handle_qxfer_btrace): Support delta reads. Pass
8938 trace reading errors on.
8939 * linux-low.c (linux_low_read_btrace): Pass trace reading
8940 errors on.
8941 (linux_low_disable_btrace): New.
8942
8943 2014-01-15 Doug Evans <dje@google.com>
8944
8945 * inferiors.c (thread_id_to_gdb_id): Delete.
8946 * inferiors.h (thread_id_to_gdb_id): Delete.
8947
8948 2014-01-13 Eli Zaretskii <eliz@gnu.org>
8949
8950 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
8951 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
8952 versions.
8953
8954 2014-01-08 Pedro Alves <palves@redhat.com>
8955
8956 * server.c (handle_status): Don't discard previous queued stop
8957 replies or thread's pending status here.
8958 (main) <disconnection>: Do it here instead.
8959
8960 2014-01-08 Pedro Alves <palves@redhat.com>
8961
8962 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
8963 * server.c (visit_actioned_threads, handle_pending_status): New
8964 function.
8965 (handle_v_cont): Factor out parts to ...
8966 (resume): ... this new function. If in all-stop, and a thread
8967 being resumed has a pending status, report it without actually
8968 resuming.
8969 (myresume): Adjust to use the new 'resume' function.
8970 (clear_pending_status_callback, set_pending_status_callback)
8971 (find_status_pending_thread_callback): New functions.
8972 (handle_status): Handle the case of multiple threads having
8973 interesting statuses to report. Report threads' real last signal
8974 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
8975 with an interesting thread to report the status for, instead of
8976 always reporting the status of the first thread.
8977
8978 2014-01-01 Joel Brobecker <brobecker@adacore.com>
8979
8980 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
8981 * gdbreplay.c (gdbreplay_version): Likewise.
8982
8983 2013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
8984
8985 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
8986 iov.iov_len with the real length in use.
8987
8988 2013-12-13 Joel Brobecker <brobecker@adacore.com>
8989
8990 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
8991 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
8992 for all targets that use win32-low.c.
8993 * win32-low.c (win32_ensure_ntdll_loaded): New function.
8994 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
8995
8996 2013-12-13 Pedro Alves <palves@redhat.com>
8997
8998 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
8999 if equal to TARGET_WAITKIND_LOADED.
9000 * win32-low.c (cached_status): New static global.
9001 (win32_wait): Add declaration.
9002 (do_initial_child_stuff): Flush all initial pending debug events
9003 up to the initial breakpoint.
9004 (win32_wait): If CACHED_STATUS was set, return that instead
9005 of doing a real wait. Remove the code resuming the execution
9006 of the inferior after receiving a TARGET_WAITKIND_LOADED event
9007 during the initial phase. Also remove the code changing
9008 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
9009 TARGET_WAITKIND_STOPPED.
9010
9011 2013-12-11 Yao Qi <yao@codesourcery.com>
9012
9013 * notif.c (handle_notif_ack): Return 0 if no notification
9014 matches.
9015
9016 2013-11-20 Doug Evans <dje@google.com>
9017
9018 * linux-low.c (linux_set_resume_request): Fix comment.
9019
9020 2013-11-20 Doug Evans <dje@google.com>
9021
9022 * linux-low.c (resume_status_pending_p): Tweak comment.
9023
9024 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
9025
9026 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
9027 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
9028 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
9029 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
9030 (srv_amd64_regobj): Add amd64-mpx.o.
9031 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
9032 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
9033 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
9034 * i387-fp.c (num_pl_bnd_register) Added constant.
9035 (num_pl_bnd_cfg_registers) Added constant.
9036 (struct i387_xsave) Added reserved area and MPX fields.
9037 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
9038 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
9039 function.
9040 (tdesc_i386_mpx_linux): Add MPX amd64 target.
9041 (init_registers_amd64_mpx_linux): Declare new function.
9042 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
9043 (x86_64_regmap): Add MPX registers.
9044 (x86_linux_read_description): Add MPX case.
9045 (initialize_low_arch): Initialize MPX targets.
9046
9047 2013-11-18 Tom Tromey <tromey@redhat.com>
9048
9049 * configure: Rebuild.
9050 * configure.ac: Don't check for stdlib.h.
9051 * gdbreplay.c: Unconditionally include stdlib.h.
9052
9053 2013-11-18 Tom Tromey <tromey@redhat.com>
9054
9055 * config.in: Rebuild.
9056 * configure: Rebuild.
9057 * configure.ac: Don't use AC_HEADER_DIRENT.
9058
9059 2013-11-18 Tom Tromey <tromey@redhat.com>
9060
9061 * server.h: Don't check HAVE_STRING_H.
9062 * gdbreplay.c: Don't check HAVE_STRING_H.
9063 * configure: Rebuild.
9064
9065 2013-11-18 Tom Tromey <tromey@redhat.com>
9066
9067 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
9068 LIBGNU.
9069
9070 2013-11-08 Tom Tromey <tromey@redhat.com>
9071
9072 * configure, config.in: Rebuild.
9073 * configure.ac: Remove unused configury.
9074
9075 2013-11-08 Tom Tromey <tromey@redhat.com>
9076
9077 * acinclude.m4: Include common.m4, codeset.m4.
9078 * configure, config.in: Rebuild.
9079 * configure.ac: Use GDB_AC_COMMON.
9080
9081 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
9082
9083 * linux-s390-low.c (HWCAP_S390_TE): New define.
9084 (s390_arch_setup): Consider the TE field in the HWCAP for
9085 determining 'have_regset_tdb'.
9086
9087 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
9088
9089 PR gdb/16014
9090 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
9091 call to sizeof.
9092
9093 2013-10-02 Pedro Alves <palves@redhat.com>
9094
9095 * server.c (process_serial_event): Don't output "GDBserver
9096 exiting" if GDB is connected through stdio.
9097 * target.c (mywait): Likewise, be silent if GDB is connected
9098 through stdio.
9099
9100 2013-10-01 Joel Brobecker <brobecker@adacore.com>
9101
9102 * lynx-low.c (lynx_add_threads_after_attach): New function.
9103 (lynx_attach): Remove call to add_thread. Add call to
9104 lynx_add_threads_after_attach instead.
9105
9106 2013-09-28 Mike Frysinger <vapier@gentoo.org>
9107
9108 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
9109 * config.in, configure: Regenerated.
9110
9111 2013-09-18 Yao Qi <yao@codesourcery.com>
9112
9113 PR server/15959
9114 * server.c (start_inferior): Clear 'resume_info'.
9115
9116 2013-09-16 Jiong Wang <jiwang@tilera.com>
9117
9118 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
9119 for each register.
9120
9121 2013-09-16 Jiong Wang <jiwang@tilera.com>
9122
9123 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
9124 linux-tile-low.o to srv_tgtobj.
9125
9126 2013-09-16 Will Newton <will.newton@linaro.org>
9127
9128 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
9129 out regs.
9130
9131 2013-09-06 Pedro Alves <palves@redhat.com>
9132
9133 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
9134 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
9135 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
9136 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
9137 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
9138 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
9139
9140 2013-09-06 Pedro Alves <palves@redhat.com>
9141
9142 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
9143 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
9144
9145 2013-09-06 Pedro Alves <palves@redhat.com>
9146
9147 * linux-amd64-ipa.c: Include tracepoint.h.
9148 * linux-i386-ipa.c: Include tracepoint.h.
9149
9150 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
9151
9152 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
9153 (ps_get_thread_area): New function.
9154
9155 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
9156
9157 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
9158 (initialize_low_arch): Call init_registers_crisv32 rather than
9159 init_register_crisv32.
9160
9161 2013-09-05 Pedro Alves <palves@redhat.com>
9162
9163 * server.h (handle_vFile, hostio_last_error_from_errno): Move
9164 to ...
9165 * hostio.h: ... this new file.
9166 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
9167 win32-low.c: Include hostio.h.
9168
9169 2013-09-05 Pedro Alves <palves@redhat.com>
9170
9171 * server.h (gdb_client_data, handler_func, callback_handler_func)
9172 (delete_file_handler, add_file_handler, append_callback_event)
9173 (delete_callback_event, start_event_loop, initialize_event_loop):
9174 Move to event-loop.h and include it.
9175 * event-loop.h: New file.
9176
9177 2013-09-05 Pedro Alves <palves@redhat.com>
9178
9179 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
9180 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
9181 (loaded_dll, unloaded_dll): Move to ...
9182 * dll.h: ... this new file.
9183 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
9184
9185 2013-09-05 Pedro Alves <palves@redhat.com>
9186
9187 * server.h (current_process, get_thread_process, all_processes)
9188 (add_inferior_to_list, for_each_inferior, current_inferior)
9189 (remove_inferior, add_process, remove_process, find_process_pid)
9190 (have_started_inferiors_p, have_attached_inferiors_p)
9191 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
9192 (clear_inferiors, find_inferior, find_inferior_id)
9193 (inferior_target_data, set_inferior_target_data)
9194 (inferior_regcache_data, set_inferior_regcache_data): Move to
9195 inferiors.h, and include it.
9196 * inferiors.h: New file.
9197
9198 2013-09-05 Pedro Alves <palves@redhat.com>
9199
9200 * server.h (struct emit_ops, current_insn_ptr, emit_error):
9201 Move ...
9202 * ax.h: ... here.
9203
9204 2013-09-05 Pedro Alves <palves@redhat.com>
9205
9206 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
9207 tracepoint.h.
9208 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
9209 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
9210 (handle_tracepoint_general_set, handle_tracepoint_query)
9211 (tracepoint_finished_step, tracepoint_was_hit)
9212 (release_while_stepping_state_list, current_traceframe)
9213 (in_readonly_region, traceframe_read_mem)
9214 (fetch_traceframe_registers, traceframe_read_sdata)
9215 (traceframe_read_info, struct fast_tpoint_collect_status)
9216 (fast_tracepoint_collecting, force_unlock_trace_buffer)
9217 (handle_tracepoit_bkpts, initialize_low_tracepoint)
9218 (supply_fast_tracepoint_registers)
9219 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
9220 (ipa_tdesc, claim_trampoline_space)
9221 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
9222 (agent_mem_read, agent_get_trace_state_variable_value)
9223 (agent_set_trace_state_variable_value, agent_tsv_read)
9224 (agent_mem_read_string, get_raw_reg_func_addr)
9225 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
9226 * tracepoint.h: ... this new file.
9227
9228 2013-09-05 Pedro Alves <palves@redhat.com>
9229
9230 * server.h (perror_with_name, error, fatal, warning, paddress)
9231 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
9232 include it.
9233 * utils.h: New file.
9234
9235 2013-09-05 Pedro Alves <palves@redhat.com>
9236
9237 * server.h (remote_debug, noack_mode, transport_is_reliable)
9238 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
9239 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
9240 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
9241 (write_enn, initialize_async_io, enable_async_io)
9242 (disable_async_io, check_remote_input_interrupt_request)
9243 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
9244 (dead_thread_notify, prepare_resume_reply)
9245 (decode_address_to_semicolon, decode_address, decode_m_packet)
9246 (decode_M_packet, decode_X_packet, decode_xfer_write)
9247 (decode_search_memory_packet, unhexify, hexify)
9248 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
9249 (look_up_one_symbol, relocate_instruction)
9250 (monitor_output): Move to remote-utils.h, and include it.
9251 * remote-utils.h: New file.
9252
9253 2013-09-05 Pedro Alves <palves@redhat.com>
9254
9255 * server.h (_): Delete.
9256
9257 2013-09-02 Pedro Alves <palves@redhat.com>
9258
9259 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
9260 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
9261 allocated.
9262 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
9263
9264 2013-09-02 Pierre Muller <muller@sourceware.org>
9265
9266 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
9267 or WriteProcessMemory complete successfully and handle
9268 ERROR_PARTIAL_COPY error.
9269
9270 2013-09-02 Pedro Alves <palves@redhat.com>
9271
9272 * server.c (gdb_read_memory): Return -1 on traceframe memory read
9273 error instead of EIO.
9274
9275 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9276
9277 PR server/15604
9278 * linux-low.c: Include filestuff.h.
9279 (linux_create_inferior) <pid == 0>: Call close_most_fds.
9280 * lynx-low.c: Include filestuff.h.
9281 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
9282 * server.c: Include filestuff.h.
9283 (main): Call notice_open_fds.
9284 * spu-low.c: Include filestuff.h.
9285 (spu_create_inferior) <pid == 0>: Call close_most_fds.
9286
9287 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
9288
9289 * Makefile.in: Explain why ../target and ../nat are not
9290 listed as include file search paths.
9291 (linux-waitpid.o): New object file rule.
9292 * configure.srv (srv_native_linux_obj): New variable.
9293 Replace all occurrences of linux native object files with
9294 $srv_native_linux_obj.
9295 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
9296 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
9297 (linux_enable_event_reporting): Remove declaration.
9298 (my_waitpid): Moved to common/linux-waitpid.c.
9299 (linux_wait_for_event): Pass ptid when calling
9300 linux_enable_event_reporting.
9301 (linux_supports_tracefork_flag): Remove.
9302 (linux_enable_event_reporting): Likewise.
9303 (linux_tracefork_grandchild): Remove.
9304 (STACK_SIZE): Moved to common/linux-ptrace.c.
9305 (linux_tracefork_child): Remove.
9306 (linux_test_for_tracefork): Remove.
9307 (linux_look_up_symbols): Call linux_supports_traceclone.
9308 (initialize_low): Remove call to linux_test_for_tracefork.
9309 * linux-low.h (PTRACE_TYPE_ARG3): Move to
9310 common/linux-ptrace.h.
9311 (PTRACE_TYPE_ARG4): Likewise.
9312 Include linux-ptrace.h.
9313
9314 2013-08-21 Pedro Alves <palves@redhat.com>
9315
9316 * config.in: Renegerate.
9317
9318 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
9319
9320 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
9321 (SFILES): Remove $(srcdir)/common/target-common.c and
9322 add $(srcdir)/target/waitstatus.c.
9323 (OBS): Remove target-common.o and add waitstatus.o.
9324 (server_h): Remove $(srcdir)/../common/target-common.h and
9325 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
9326 and $(srcdir)/../target/waitstatus.h.
9327 (target-common.o): Remove.
9328 (waitstatus.o): New target object file.
9329 * target.h: Do not include target-common.h and
9330 include target/resume.h, target/wait.h and
9331 target/waitstatus.h.
9332
9333 2013-08-13 Luis Machado <lgustavo@codesourcery.com>
9334
9335 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
9336 to PTRACE_TYPE_ARG3.
9337 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
9338 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
9339 PTRACE_TYPE_ARG4.
9340 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
9341 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
9342
9343 2013-07-27 Jie Zhang <jie@codesourcery.com>
9344 Daniel Jacobowitz <dan@codesourcery.com>
9345 Yao Qi <yao@codesourcery.com>
9346
9347 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
9348 (mips-linux-watch.o): New rule.
9349 (mips_linux_watch_h): New variable.
9350 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
9351 srv_tgtobj.
9352 * linux-mips-low.c: Include mips-linux-watch.h.
9353 (struct arch_process_info, struct arch_lwp_info): New.
9354 (update_watch_registers_callback): New function.
9355 (mips_linux_new_process, mips_linux_new_thread) New functions.
9356 (mips_linux_prepare_to_resume, mips_insert_point): New
9357 functions.
9358 (mips_remove_point, mips_stopped_by_watchpoint): New
9359 functions.
9360 (rsp_bp_type_to_target_hw_bp_type): New function.
9361 (mips_stopped_data_address): New function.
9362 (the_low_target): Add watchpoint support functions.
9363
9364 2013-07-27 Yao Qi <yao@codesourcery.com>
9365
9366 * i386-low.c: Include break-common.h.
9367 (enum target_hw_bp_type): Remove.
9368
9369 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
9370
9371 * Makefile.in (SFILES): /common/target-common.c.
9372 (OBS): Add target-common.o.
9373 (server_h): Add $(srcdir)/../common/target-common.h.
9374 (target-common.o): New target.
9375 * server.c (queue_stop_reply_callback): Free
9376 status string after use.
9377 * target.c (target_waitstatus_to_string): Remove.
9378 * target.h: Include target-common.h.
9379 (resume_kind): Likewise.
9380 (target_waitkind): Likewise.
9381 (target_waitstatus): Likewise.
9382 (TARGET_WNOHANG): Likewise.
9383
9384 2013-07-04 Yao Qi <yao@codesourcery.com>
9385
9386 * Makefile.in (host_alias): Use @host_noncanonical@.
9387 (target_alias): Use @target_noncanonical@.
9388 * configure.ac: Use ACX_NONCANONICAL_TARGET and
9389 ACX_NONCANONICAL_HOST.
9390 * configure: Regenerated.
9391
9392 Revert:
9393 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
9394
9395 * configure.ac (version_host, version_target): Set and AC_SUBST them.
9396 * configure: Rebuild.
9397 * Makefile.in (version_host, version_target): Get from configure.
9398 (version.c): Use $(version_host) and $(version_target).
9399
9400 2013-07-03 Pedro Alves <palves@redhat.com>
9401
9402 * Makefile.in (config.status): Depend on development.sh.
9403 * acinclude.m4: Include libmcheck.m4.
9404 * configure: Regenerate.
9405
9406 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
9407
9408 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
9409 attribute inside the parentheses.
9410 (winapi_DebugSetProcessKillOnExit): Ditto.
9411 (winapi_DebugBreakProcess): Ditto.
9412 (winapi_GenerateConsoleCtrlEvent): Ditto.
9413
9414 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
9415
9416 * notif.h (notif_event): Add a dummy member to avoid compiler
9417 errors.
9418
9419 2013-07-01 Pedro Alves <palves@redhat.com>
9420
9421 * hostio.c (HOSTIO_PATH_MAX): Define.
9422 (require_filename, handle_open, handle_unlink, handle_readlink):
9423 Use it.
9424
9425 2013-07-01 Pedro Alves <palves@redhat.com>
9426
9427 * server.h: Include "pathmax.h".
9428 * linux-low.c: Don't include sys/param.h.
9429 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
9430 MAXPATHLEN.
9431 * win32-low.c: Don't include sys/param.h.
9432 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
9433
9434 2013-07-01 Pedro Alves <palves@redhat.com>
9435
9436 * event-loop.c: Don't check HAVE_UNISTD_H before including
9437 <unistd.h>.
9438 * gdbreplay.c: Likewise.
9439 * remote-utils.c: Likewise.
9440 * server.c: Likewise.
9441 * configure.ac: Don't check for unistd.h.
9442 * configure: Regenerate.
9443
9444 2013-06-28 Tom Tromey <tromey@redhat.com>
9445
9446 * Makefile.in (version.c): Use version.in, not
9447 common/version.in.
9448
9449 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
9450
9451 * configure.ac (version_host, version_target): Set and AC_SUBST them.
9452 * configure: Rebuild.
9453 * Makefile.in (version_host, version_target): Get from configure.
9454 (version.c): Use $(version_host) and $(version_target).
9455
9456 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
9457
9458 Fix trace-status to output user name without trailing colon.
9459 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
9460
9461 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
9462
9463 Fix trace-status to output proper start-time and stop-time.
9464 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
9465 output start time and stop time in hex as gdb expects.
9466
9467 2013-06-26 Pedro Alves <pedro@codesourcery.com>
9468
9469 * tracepoint.c (build_traceframe_info_xml): Output trace state
9470 variables present in the trace buffer.
9471
9472 2013-06-24 Tom Tromey <tromey@redhat.com>
9473
9474 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
9475 create-version.sh.
9476 (version.o): Remove.
9477 * gdbreplay.c: Include version.h.
9478 (version, host_name): Don't declare.
9479 * server.h: Include version.h.
9480 (version, host_name): Don't declare.
9481
9482 2013-06-12 Pedro Alves <palves@redhat.com>
9483
9484 * linux-x86-low.c (linux_is_elf64): Delete global.
9485 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
9486 with local linux_pid_exe_is_elf_64_file use.
9487
9488 2013-06-11 Pedro Alves <palves@redhat.com>
9489
9490 * linux-low.c (regset_disabled, disable_regset): New functions.
9491 (regsets_fetch_inferior_registers)
9492 (regsets_store_inferior_registers): Use them.
9493 (initialize_regsets_info); Don't allocate the disabled_regsets
9494 array here.
9495 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
9496 comment.
9497
9498 2013-06-11 Pedro Alves <palves@redhat.com>
9499
9500 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
9501 xmalloc.
9502
9503 2013-06-11 Pedro Alves <palves@redhat.com>
9504
9505 * linux-x86-low.c (initialize_low_arch): Call
9506 init_registers_x32_avx_linux.
9507
9508 2013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9509
9510 Fix compatibility with Android Bionic.
9511 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
9512 it is not empty.
9513
9514 2013-06-07 Pedro Alves <palves@redhat.com>
9515
9516 PR server/14823
9517 * Makefile.in (OBS): Add tdesc.o.
9518 (IPA_OBJS): Add tdesc-ipa.o.
9519 (tdesc-ipa.o): New rule.
9520 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
9521 interface.
9522 * linux-low.c (new_inferior): Delete.
9523 (disabled_regsets, num_regsets): Delete.
9524 (linux_add_process): Adjust to set the new per-process
9525 new_inferior flag.
9526 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
9527 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
9528 was a stop. When calling arch_setup, switch the current inferior
9529 to the thread that got an event.
9530 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
9531 (regsets_fetch_inferior_registers)
9532 (regsets_store_inferior_registers): New regsets_info parameter.
9533 Adjust to use it.
9534 (linux_register_in_regsets): New regs_info parameter. Adjust to
9535 use it.
9536 (register_addr, fetch_register, store_register): New usrregs_info
9537 parameter. Adjust to use it.
9538 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
9539 parameter regs_info. Adjust to use it.
9540 (linux_fetch_registers): Get the current inferior's regs_info, and
9541 adjust to use it.
9542 (linux_store_registers): Ditto.
9543 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
9544 (initialize_low): Don't initialize the target_regsets here. Call
9545 initialize_low_arch.
9546 * linux-low.h (target_regsets): Delete declaration.
9547 (struct regsets_info): New.
9548 (struct usrregs_info): New.
9549 (struct regs_info): New.
9550 (struct process_info_private) <new_inferior>: New field.
9551 (struct linux_target_ops): Delete the num_regs, regmap, and
9552 regset_bitmap fields. New field regs_info.
9553 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
9554 * i387-fp.c (num_xmm_registers): Delete.
9555 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
9556 calls to new interface.
9557 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
9558 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
9559 Infer the number of xmm registers from the regcache's target
9560 description.
9561 * i387-fp.h (num_xmm_registers): Delete.
9562 * inferiors.c (add_thread): Don't install the thread's regcache
9563 here.
9564 * proc-service.c (gregset_info): Fetch the current inferior's
9565 regs_info. Adjust to use it.
9566 * regcache.c: Include tdesc.h.
9567 (register_bytes, reg_defs, num_registers)
9568 (gdbserver_expedite_regs): Delete.
9569 (get_thread_regcache): If the thread doesn't have a regcache yet,
9570 create one, instead of aborting gdbserver.
9571 (regcache_invalidate_one): Rename to ...
9572 (regcache_invalidate_thread): ... this.
9573 (regcache_invalidate_one): New.
9574 (regcache_invalidate): Only invalidate registers of the current
9575 process.
9576 (init_register_cache): Add target_desc parameter, and use it.
9577 (new_register_cache): Ditto. Assert the target description has a
9578 non zero registers_size.
9579 (regcache_cpy): Add assertions. Adjust.
9580 (realloc_register_cache, set_register_cache): Delete.
9581 (registers_to_string, registers_from_string): Adjust.
9582 (find_register_by_name, find_regno, find_register_by_number)
9583 (register_cache_size): Add target_desc parameter, and use it.
9584 (free_register_cache_thread, free_register_cache_thread_one)
9585 (regcache_release, register_cache_size): New.
9586 (register_size): Add target_desc parameter, and use it.
9587 (register_data, supply_register, supply_register_zeroed)
9588 (supply_regblock, supply_register_by_name, collect_register)
9589 (collect_register_as_string, collect_register_by_name): Adjust.
9590 * regcache.h (struct target_desc): Forward declare.
9591 (struct regcache) <tdesc>: New field.
9592 (init_register_cache, new_register_cache): Add target_desc
9593 parameter.
9594 (regcache_invalidate_thread): Declare.
9595 (regcache_invalidate_one): Delete declaration.
9596 (regcache_release): Declare.
9597 (find_register_by_number, register_cache_size, register_size)
9598 (find_regno): Add target_desc parameter.
9599 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
9600 declarations.
9601 * remote-utils.c: Include tdesc.h.
9602 (outreg, prepare_resume_reply): Adjust.
9603 * server.c: Include tdesc.h.
9604 (gdbserver_xmltarget): Delete declaration.
9605 (get_features_xml, process_serial_event): Adjust.
9606 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
9607 declare.
9608 (struct process_info) <tdesc>: New field.
9609 (ipa_tdesc): Declare.
9610 * tdesc.c: New file.
9611 * tdesc.h: New file.
9612 * tracepoint.c: Include tdesc.h.
9613 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
9614 (get_context_regcache): Adjust to pass ipa_tdesc down.
9615 (do_action_at_tracepoint): Adjust to get the register cache size
9616 from the context regcache's description.
9617 (traceframe_walk_blocks): Adjust to get the register cache size
9618 from the current trace frame's description.
9619 (traceframe_get_pc): Adjust to get current trace frame's
9620 description and pass it down.
9621 (gdb_collect): Adjust to get the register cache size from the
9622 IPA's description.
9623 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
9624 (gdbserver_xmltarget): Delete.
9625 (initialize_low_tracepoint): Set the ipa's target description.
9626 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
9627 (initialize_low_tracepoint): Set the ipa's target description.
9628 * linux-x86-low.c: Include tdesc.h.
9629 [__x86_64__] (is_64bit_tdesc): New.
9630 (ps_get_thread_area, x86_get_thread_area): Use it.
9631 (i386_cannot_store_register): Rename to ...
9632 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
9633 (i386_cannot_fetch_register): Rename to ...
9634 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
9635 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
9636 to new interface.
9637 (target_regsets): Rename to ...
9638 (x86_regsets): ... this.
9639 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
9640 interface.
9641 (x86_siginfo_fixup): Use is_64bit_tdesc.
9642 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
9643 (tdesc_x32_avx_linux, tdesc_x32_linux)
9644 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
9645 Declare.
9646 (x86_linux_update_xmltarget): Delete.
9647 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
9648 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
9649 (AMD64_LINUX_USER64_CS): New.
9650 (x86_linux_read_description): New, based on
9651 x86_linux_update_xmltarget.
9652 (same_process_callback): New.
9653 (x86_arch_setup_process_callback): New.
9654 (x86_linux_update_xmltarget): New.
9655 (x86_regsets_info): New.
9656 (amd64_linux_regs_info): New.
9657 (i386_linux_usrregs_info): New.
9658 (i386_linux_regs_info): New.
9659 (x86_linux_regs_info): New.
9660 (x86_arch_setup): Reimplement.
9661 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
9662 (x86_emit_ops): Ditto.
9663 (the_low_target): Adjust. Install x86_linux_regs_info,
9664 x86_cannot_fetch_register, and x86_cannot_store_register.
9665 (initialize_low_arch): New.
9666 * linux-ia64-low.c (tdesc_ia64): Declare.
9667 (ia64_fetch_register): Adjust.
9668 (ia64_usrregs_info, regs_info): New globals.
9669 (ia64_regs_info): New function.
9670 (the_low_target): Adjust.
9671 (initialize_low_arch): New function.
9672 * linux-sparc-low.c (tdesc_sparc64): Declare.
9673 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
9674 Adjust.
9675 (sparc_arch_setup): New function.
9676 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
9677 (the_low_target): Adjust.
9678 (initialize_low_arch): New function.
9679 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
9680 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
9681 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
9682 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
9683 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
9684 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
9685 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
9686 (tdesc_powerpc_isa205_vsx64l): Declare.
9687 (ppc_cannot_store_register, ppc_collect_ptrace_register)
9688 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
9689 (ppc_set_pc, ppc_get_hwcap): Adjust.
9690 (ppc_usrregs_info): Forward declare.
9691 (!__powerpc64__) ppc_regmap_adjusted: New global.
9692 (ppc_arch_setup): Adjust to the current process'es target
9693 description.
9694 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
9695 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
9696 (ppc_store_evrregset): Adjust.
9697 (target_regsets): Rename to ...
9698 (ppc_regsets): ... this, and make static.
9699 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
9700 (ppc_regs_info): New function.
9701 (the_low_target): Adjust.
9702 (initialize_low_arch): New function.
9703 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
9704 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
9705 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
9706 (tdesc_s390x_linux64v2): Declare.
9707 (s390_collect_ptrace_register, s390_supply_ptrace_register)
9708 (s390_fill_gregset, s390_store_last_break): Adjust.
9709 (target_regsets): Rename to ...
9710 (s390_regsets): ... this, and make static.
9711 (s390_get_pc, s390_set_pc): Adjust.
9712 (s390_get_hwcap): New target_desc parameter, and use it.
9713 [__s390x__] (have_hwcap_s390_high_gprs): New global.
9714 (s390_arch_setup): Adjust to set the current process'es target
9715 description. Don't adjust the regmap.
9716 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
9717 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
9718 (regs_info_3264): New globals.
9719 (s390_regs_info): New function.
9720 (the_low_target): Adjust.
9721 (initialize_low_arch): New function.
9722 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
9723 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
9724 [__mips64] (init_registers_mips_linux)
9725 (init_registers_mips_dsp_linux): Delete defines.
9726 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
9727 (have_dsp): New global.
9728 (mips_read_description): New, based on mips_arch_setup.
9729 (mips_arch_setup): Reimplement.
9730 (get_usrregs_info): New function.
9731 (mips_cannot_fetch_register, mips_cannot_store_register)
9732 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
9733 (mips_fill_fpregset, mips_store_fpregset): Adjust.
9734 (target_regsets): Rename to ...
9735 (mips_regsets): ... this, and make static.
9736 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
9737 (dsp_regs_info, regs_info): New globals.
9738 (mips_regs_info): New function.
9739 (the_low_target): Adjust.
9740 (initialize_low_arch): New function.
9741 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
9742 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
9743 Declare.
9744 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
9745 (arm_read_description): New, with bits factored from
9746 arm_arch_setup.
9747 (arm_arch_setup): Reimplement.
9748 (target_regsets): Rename to ...
9749 (arm_regsets): ... this, and make static.
9750 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
9751 (arm_regs_info): New function.
9752 (the_low_target): Adjust.
9753 (initialize_low_arch): New function.
9754 * linux-m68k-low.c (tdesc_m68k): Declare.
9755 (target_regsets): Rename to ...
9756 (m68k_regsets): ... this, and make static.
9757 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
9758 (m68k_regs_info): New function.
9759 (m68k_arch_setup): New function.
9760 (the_low_target): Adjust.
9761 (initialize_low_arch): New function.
9762 * linux-sh-low.c (tdesc_sharch): Declare.
9763 (target_regsets): Rename to ...
9764 (sh_regsets): ... this, and make static.
9765 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
9766 (sh_regs_info, sh_arch_setup): New functions.
9767 (the_low_target): Adjust.
9768 (initialize_low_arch): New function.
9769 * linux-bfin-low.c (tdesc_bfin): Declare.
9770 (bfin_arch_setup): New function.
9771 (bfin_usrregs_info, regs_info): New globals.
9772 (bfin_regs_info): New function.
9773 (the_low_target): Adjust.
9774 (initialize_low_arch): New function.
9775 * linux-cris-low.c (tdesc_cris): Declare.
9776 (cris_arch_setup): New function.
9777 (cris_usrregs_info, regs_info): New globals.
9778 (cris_regs_info): New function.
9779 (the_low_target): Adjust.
9780 (initialize_low_arch): New function.
9781 * linux-cris-low.c (tdesc_crisv32): Declare.
9782 (cris_arch_setup): New function.
9783 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
9784 (cris_regs_info): New function.
9785 (the_low_target): Adjust.
9786 (initialize_low_arch): New function.
9787 * linux-m32r-low.c (tdesc_m32r): Declare.
9788 (m32r_arch_setup): New function.
9789 (m32r_usrregs_info, regs_info): New globals.
9790 (m32r_regs_info): Adjust.
9791 (initialize_low_arch): New function.
9792 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
9793 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
9794 (tic6x_usrregs_info): Forward declare.
9795 (tic6x_read_description): New function, based on ...
9796 (tic6x_arch_setup): ... this. Reimplement.
9797 (target_regsets): Rename to ...
9798 (tic6x_regsets): ... this, and make static.
9799 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
9800 (tic6x_regs_info): New function.
9801 (the_low_target): Adjust.
9802 (initialize_low_arch): New function.
9803 * linux-xtensa-low.c (tdesc_xtensa): Declare.
9804 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
9805 (target_regsets): Rename to ...
9806 (xtensa_regsets): ... this, and make static.
9807 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
9808 globals.
9809 (xtensa_arch_setup, xtensa_regs_info): New functions.
9810 (the_low_target): Adjust.
9811 (initialize_low_arch): New function.
9812 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
9813 (nios2_arch_setup): Set the current process'es tdesc.
9814 (target_regsets): Rename to ...
9815 (nios2_regsets): ... this.
9816 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
9817 (nios2_regs_info): New function.
9818 (the_low_target): Adjust.
9819 (initialize_low_arch): New function.
9820 * linux-aarch64-low.c (tdesc_aarch64): Declare.
9821 (aarch64_arch_setup): Set the current process'es tdesc.
9822 (target_regsets): Rename to ...
9823 (aarch64_regsets): ... this.
9824 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
9825 (aarch64_regs_info): New function.
9826 (the_low_target): Adjust.
9827 (initialize_low_arch): New function.
9828 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
9829 globals.
9830 (target_regsets): Rename to ...
9831 (tile_regsets): ... this.
9832 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
9833 (tile_regs_info): New function.
9834 (tile_arch_setup): Set the current process'es tdesc.
9835 (the_low_target): Adjust.
9836 (initialize_low_arch): New function.
9837 * spu-low.c (tdesc_spu): Declare.
9838 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
9839 * win32-arm-low.c (tdesc_arm): Declare.
9840 (arm_arch_setup): New function.
9841 (the_low_target): Install arm_arch_setup instead of
9842 init_registers_arm.
9843 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
9844 (init_windows_x86): Rename to ...
9845 (i386_arch_setup): ... this. Set `win32_tdesc'.
9846 (the_low_target): Adjust.
9847 * win32-low.c (win32_tdesc): New global.
9848 (child_add_thread): Don't create the thread cache here.
9849 (do_initial_child_stuff): Set the new process'es tdesc.
9850 * win32-low.h (struct target_desc): Forward declare.
9851 (win32_tdesc): Declare.
9852 * lynx-i386-low.c (tdesc_i386): Declare global.
9853 (lynx_i386_arch_setup): Set `lynx_tdesc'.
9854 * lynx-low.c (lynx_tdesc): New global.
9855 (lynx_add_process): Set the new process'es tdesc.
9856 * lynx-low.h (struct target_desc): Forward declare.
9857 (lynx_tdesc): Declare global.
9858 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
9859 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
9860 * nto-low.c (nto_tdesc): New global.
9861 (do_attach): Set the new process'es tdesc.
9862 * nto-low.h (struct target_desc): Forward declare.
9863 (nto_tdesc): Declare.
9864 * nto-x86-low.c (tdesc_i386): Declare.
9865 (nto_x86_arch_setup): Set `nto_tdesc'.
9866
9867 2013-06-04 Gary Benson <gbenson@redhat.com>
9868
9869 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
9870 to qSupported response when appropriate.
9871 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
9872 with nonzero-length annex.
9873 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
9874 arguments supplied in annex.
9875
9876 2013-05-31 Doug Evans <dje@google.com>
9877
9878 PR server/15594
9879 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
9880 64 bits in 64-cross-32 environment.
9881
9882 2013-05-28 Pedro Alves <palves@redhat.com>
9883
9884 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
9885 (aarch64-without-fpu.c): Delete rule.
9886 * configure.srv (aarch64*-*-linux*): Remove references to
9887 aarch64-without-fpu.o and aarch64-without-fpu.xml.
9888 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
9889 declaration.
9890
9891 2013-05-24 Pedro Alves <palves@redhat.com>
9892
9893 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
9894 instead of strchr/decode_address. Error if the range isn't split
9895 with a ','. Don't assume there's be a ':' in the action.
9896
9897 2013-05-23 Yao Qi <yao@codesourcery.com>
9898 Pedro Alves <palves@redhat.com>
9899
9900 * linux-low.c (lwp_in_step_range): New function.
9901 (linux_wait_1): If the thread was range stepping and stopped
9902 outside the stepping range, report the stop to GDB. Otherwise,
9903 continue stepping. Add range stepping debug output.
9904 (linux_set_resume_request): Copy the step range from the resume
9905 request to the lwp.
9906 (linux_supports_range_stepping): New.
9907 (linux_target_ops) <supports_range_stepping>: Set to
9908 linux_supports_range_stepping.
9909 * linux-low.h (struct linux_target_ops)
9910 <supports_range_stepping>: New field.
9911 (struct lwp_info) <step_range_start, step_range_end>: New fields.
9912 * linux-x86-low.c (x86_supports_range_stepping): New.
9913 (the_low_target) <supports_range_stepping>: Set to
9914 x86_supports_range_stepping.
9915 * server.c (handle_v_cont): Handle 'r' action.
9916 (handle_v_requests): Append ";r" if the target supports range
9917 stepping.
9918 * target.h (struct thread_resume) <step_range_start,
9919 step_range_end>: New fields.
9920 (struct target_ops) <supports_range_stepping>:
9921 New field.
9922 (target_supports_range_stepping): New macro.
9923
9924 2013-05-17 Joel Brobecker <brobecker@adacore.com>
9925
9926 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
9927 confusion in comment.
9928
9929 2013-05-17 Joel Brobecker <brobecker@adacore.com>
9930
9931 * lynx-low.c (struct process_info_private): New type.
9932 (lynx_add_process): New function.
9933 (lynx_create_inferior, lynx_attach): Replace calls to
9934 add_process by calls to lynx_add_process.
9935 (lynx_resume): If PTID is null, then try using
9936 current_process()->private->last_wait_event_ptid.
9937 Add comments.
9938 (lynx_clear_inferiors): Delete. The contents of that function
9939 has been inlined in lynx_mourn;
9940 (lynx_wait_1): Save the ptid in the process's private data.
9941 (lynx_mourn): Free the process' private data. Replace call
9942 to lynx_clear_inferiors by call to clear_inferiors.
9943
9944 2013-05-17 Yao Qi <yao@codesourcery.com>
9945
9946 * i386-low.c (i386_length_and_rw_bits): Move the comment to
9947 the right place.
9948
9949 2013-05-16 Luis Machado <lgustavo@codesourcery.com>
9950
9951 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
9952 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
9953 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
9954 PT_TEXT_END_ADDR guards. Update comments.
9955 (linux_target_op) <read_offsets>: Conditionally define to
9956 linux_read_offsets if the target is UCLIBC and if it defines
9957 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
9958
9959 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
9960 Andrew Jenner <andrew@codesourcery.com>
9961
9962 * Makefile.in (SFILES): Add linux-nios2-low.c.
9963 (clean): Add action to delete nios2-linux.c.
9964 (nios2-linux.c): New rule.
9965 * configure.srv: Add nios2*-*-linux*.
9966 * linux-nios2-low.c: New.
9967
9968 2013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
9969
9970 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
9971
9972 2013-04-25 Hui Zhu <hui@codesourcery.com>
9973
9974 PR gdb/15186
9975 * ax.c (ax_printf): Add fflush.
9976
9977 2013-04-22 Tom Tromey <tromey@redhat.com>
9978
9979 * Makefile.in (SFILES): Add filestuff.c.
9980 (OBS): Add filestuff.o.
9981 (filestuff.o): New target.
9982 * config.in, configure: Rebuild.
9983 * configure.ac: Check for fdwalk, pipe2.
9984
9985 2013-04-17 Pedro Alves <palves@redhat.com>
9986
9987 * configure.ac (USE_THREAD_DB): Delete variable.
9988 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
9989 Don't AC_SUBST USE_THREAD_DB.
9990 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
9991 * config.in, configure: Regenerate.
9992
9993 2013-04-16 Pedro Alves <palves@redhat.com>
9994
9995 * linux-low.h (struct lwp_info) <thread_known>: Move under
9996 the USE_THREAD_DB #ifdef.
9997
9998 2013-04-16 Pedro Alves <palves@redhat.com>
9999
10000 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
10001 (linux-low.o): Delete rule.
10002 * linux-low.h: Always include "gdb_thread_db.h" instead of
10003 conditionally including thread_db.h.
10004 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
10005 HAVE_THREAD_DB_H.
10006
10007 2013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
10008
10009 * Makefile.in (install-only): Fix make install regression.
10010
10011 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
10012
10013 Convert man pages to texinfo, new gdbinit.5 texinfo page.
10014 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
10015 installation.
10016 * gdbserver.1: Remove.
10017
10018 2013-03-22 Pedro Alves <palves@redhat.com>
10019
10020 * linux-low.c (handle_extended_wait): Don't call
10021 linux_enable_event_reporting.
10022
10023 2013-03-15 Tony Theodore <tonyt@logyst.com>
10024
10025 PR build/9098:
10026 * Makefile.in (SHELL): Use @SHELL@.
10027
10028 2013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
10029
10030 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
10031 compiler warning.
10032
10033 2013-03-13 Joel Brobecker <brobecker@adacore.com>
10034
10035 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
10036 Remove extraneous NULL element.
10037
10038 2013-03-13 Yao Qi <yao@codesourcery.com>
10039
10040 * tracepoint.c (traceframe_read_tsv): Look for the last matched
10041 'V' block in trace frame.
10042
10043 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10044
10045 * target.h (struct target_ops): Add btrace ops.
10046 (target_supports_btrace): New macro.
10047 (target_enable_btrace): New macro.
10048 (target_disable_btrace): New macro.
10049 (target_read_btrace): New macro.
10050 * gdbthread.h (struct thread_info): Add btrace field.
10051 * server.c: Include btrace-common.h.
10052 (handle_btrace_general_set): New function.
10053 (handle_btrace_enable): New function.
10054 (handle_btrace_disable): New function.
10055 (handle_general_set): Call handle_btrace_general_set.
10056 (handle_qxfer_btrace): New function.
10057 (struct qxfer qxfer_packets[]): Add btrace entry.
10058 * inferiors.c (remove_thread): Disable btrace.
10059 * linux-low: Include linux-btrace.h.
10060 (linux_low_enable_btrace): New function.
10061 (linux_low_read_btrace): New function.
10062 (linux_target_ops): Add btrace ops.
10063 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
10064 Add srv_linux_btrace=yes.
10065 (x86_64-*-linux*): Add linux-btrace.o.
10066 Add srv_linux_btrace=yes.
10067 * configure.ac: Define HAVE_LINUX_BTRACE.
10068 * config.in: Regenerated.
10069 * configure: Regenerated.
10070
10071 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10072
10073 * server.c (handle_qxfer): Preserve error message if -3 is
10074 returned.
10075 (qxfer): Document the -3 return value.
10076
10077 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10078
10079 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
10080 (linux_btrace_h): New variable.
10081 (linux-btrace.o): New rule.
10082
10083 2013-03-08 Stan Shebs <stan@codesourcery.com>
10084 Hafiz Abid Qadeer <abidh@codesourcery.com>
10085
10086 * tracepoint.c (trace_buffer_size): New global.
10087 (DEFAULT_TRACE_BUFFER_SIZE): New define.
10088 (init_trace_buffer): Change to one-argument function. Allocate
10089 trace buffer memory.
10090 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
10091 handle QTBuffer:size packet.
10092 (cmd_bigqtbuffer_size): New function.
10093 (initialize_tracepoint): Call init_trace_buffer with
10094 DEFAULT_TRACE_BUFFER_SIZE.
10095 * server.c (handle_query): Add QTBuffer:size in the
10096 supported packets.
10097
10098 2013-03-07 Yao Qi <yao@codesourcery.com>
10099
10100 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
10101 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
10102 of -1.
10103 (cmd_qtsp): Adjust condition. Do post increment.
10104 Set cur_action and cur_step_action back to 0.
10105
10106 2013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
10107
10108 PR server/15236
10109 * linux-low.c (linux_write_memory): Return early success if LEN is
10110 zero.
10111
10112 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
10113
10114 * configure.srv: Add x86_64-*-cygwin* as target.
10115
10116 2013-02-28 Tom Tromey <tromey@redhat.com>
10117
10118 * configure.ac: Invoke AC_SYS_LARGEFILE.
10119 * configure, config.in: Rebuild.
10120
10121 2013-02-28 Corinna Vinschen <vinschen@redhat.com>
10122
10123 * win32-low.c: Throughout, fix format strings and casts of
10124 printf-like functions to avoid type related warnings on all
10125 platforms.
10126 (get_child_debug_event): Print dwDebugEventCode as hex since
10127 that's how it's usually documented.
10128
10129 2013-02-28 Yao Qi <yao@codesourcery.com>
10130
10131 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
10132 pulongest.
10133
10134 2013-02-27 Jiong Wang <jiwang@tilera.com>
10135
10136 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
10137 (reg-tilegx32.c): New rule.
10138 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
10139 * linux-tile-low.c (tile_arch_setup): New function. Invoke
10140 different register info initializer according to elf class.
10141 (init_registers_tilgx32): New function. The tilegx32 register info
10142 initializer.
10143 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
10144 (tile_store_gregset): Likewise.
10145
10146 2013-02-27 Yao Qi <yao@codesourcery.com>
10147
10148 * server.c (process_point_options): Print debug message when
10149 debug_threads is true.
10150
10151 2013-02-26 Yao Qi <yao@codesourcery.com>
10152
10153 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
10154
10155 2013-02-19 Pedro Alves <palves@redhat.com>
10156 Kai Tietz <ktietz@redhat.com>
10157
10158 PR gdb/15161
10159
10160 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
10161 instead of strtoul to extract address from packet.
10162 (process_serial_event) <'z'>: Likewise.
10163
10164 2013-02-18 Yao Qi <yao@codesourcery.com>
10165
10166 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
10167
10168 2013-02-14 Pedro Alves <palves@redhat.com>
10169
10170 Plug memory leak.
10171
10172 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
10173 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
10174
10175 2013-02-14 Pedro Alves <palves@redhat.com>
10176
10177 * tracepoint.c (cmd_qtdpsrc): Use savestring.
10178
10179 2013-02-14 Pedro Alves <palves@redhat.com>
10180
10181 * tracepoint.c (save_string): Delete.
10182 (add_tracepoint_action): Use savestring instead of save_string.
10183
10184 2013-02-12 Pedro Alves <palves@redhat.com>
10185
10186 * linux-xtensa-low.c: Ditto.
10187 * xtensa-xtregs.c: Ditto.
10188
10189 2013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10190
10191 * thread-db.c (thread_db_get_tls_address): NULL pointer check
10192 thread_db.
10193
10194 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
10195
10196 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
10197 aarch64_num_wp_regs and aarch64_num_bp_regs to
10198 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
10199
10200 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
10201
10202 * linux-aarch64-low.c (ps_get_thread_area): Replace
10203 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
10204
10205 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10206 Marcus Shawcroft <marcus.shawcroft@arm.com>
10207 Nigel Stephens <nigel.stephens@arm.com>
10208 Yufeng Zhang <yufeng.zhang@arm.com>
10209
10210 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
10211 (aarch64.c, aarch64-without-fpu.c): New targets.
10212 * configure.srv (aarch64*-*-linux*): New.
10213 * linux-aarch64-low.c: New file.
10214
10215 2013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
10216
10217 * linux-low.c (handle_extended_wait, linux_create_inferior)
10218 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
10219 (dequeue_one_deferred_signal, linux_resume_one_thread)
10220 (fetch_register, linux_write_memory, linux_enable_event_reporting)
10221 (linux_tracefork_grandchild, linux_test_for_tracefork)
10222 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
10223 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
10224 where the argument is 0.
10225
10226 2013-01-25 Yao Qi <yao@codesourcery.com>
10227
10228 * event-loop.c: Include "queue.h".
10229 (gdb_event_p): New typedef.
10230 (struct gdb_event) <next_event>: Remove.
10231 (event_queue): Change to QUEUE(gdb_event_p).
10232 (async_queue_event): Remove.
10233 (gdb_event_xfree): New.
10234 (initialize_event_loop): New.
10235 (process_event): Use API from QUEUE.
10236 (wait_for_event): Likewise.
10237 * server.c (main): Call initialize_event_loop.
10238 * server.h (initialize_event_loop): Declare.
10239
10240 2013-01-18 Yao Qi <yao@codesourcery.com>
10241
10242 * ax.h (struct eval_agent_expr_context): New.
10243 (gdb_eval_agent_expr): Update declaration.
10244 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
10245 TFRAME. Add new argument CTX.
10246 * server.h (struct eval_agent_expr_context): Declare.
10247 (agent_mem_read, agent_tsv_read): Update declaration.
10248 (agent_mem_read_string): Likewise.
10249 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
10250 (add_traceframe_block): Add new argument TPOINT.
10251 Increase TPOINT->traceframe_usage.
10252 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
10253 eval_tracepoint_agent_expr.
10254 (condition_true_at_tracepoint): Likewise.
10255 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
10256 (agent_mem_read_string, agent_tsv_read): Likewise.
10257
10258 2013-01-16 Yao Qi <yao@codesourcery.com>
10259
10260 * linux-low.c (linux_resume_one_lwp): Don't check
10261 'lwp->bp_reinsert != 0'.
10262
10263 2013-01-07 Joel Brobecker <brobecker@adacore.com>
10264 Pedro Alves <palves@redhat.com>
10265
10266 * lynx-low.c (ptrace_request_to_str): Define a temporary
10267 macro and use it to simplify this function's implementation.
10268
10269 2013-01-07 Joel Brobecker <brobecker@adacore.com>
10270
10271 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
10272 sets errno.
10273
10274 2013-01-07 Joel Brobecker <brobecker@adacore.com>
10275
10276 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
10277
10278 2013-01-07 Joel Brobecker <brobecker@adacore.com>
10279
10280 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
10281
10282 2013-01-07 Joel Brobecker <brobecker@adacore.com>
10283
10284 * lynx-low.c (lynx_resume): Use the resume_info parameter
10285 to determine the ptid for the lynx_ptrace call, unless
10286 it is equal to minus_one_ptid, in which case we use the
10287 ptid of the current_inferior.
10288 (lynx_wait_1): After having received a thread create/exit
10289 event, resume the inferior's execution using the signaling
10290 thread's ptid, rather than the old ptid.
10291
10292 2013-01-07 Joel Brobecker <brobecker@adacore.com>
10293
10294 * lynx-low.c (lynx_resume): Delete variable ret.
10295
10296 2013-01-01 Joel Brobecker <brobecker@adacore.com>
10297
10298 * gdbreplay.c (gdbreplay_version): Update copyright year.
10299 * server.c (gdbserver_version): Likewise.
10300
10301 2012-12-17 Joel Brobecker <brobecker@adacore.com>
10302
10303 * lynx-low.c (lynx_wait_1): Add debug trace before adding
10304 new thread.
10305
10306 2012-12-17 Joel Brobecker <brobecker@adacore.com>
10307
10308 * lynx-low.c (ptrace_request_to_str): Add handling for
10309 PTRACE_GETTRACESIG.
10310
10311 2012-12-17 Joel Brobecker <brobecker@adacore.com>
10312
10313 * lynx-low.c (lynx_attach): Delete variable new_process.
10314
10315 2012-12-17 Joel Brobecker <brobecker@adacore.com>
10316
10317 * lynx-low.c (lynx_create_inferior): Delete variable
10318 new_process.
10319
10320 2012-12-17 Joel Brobecker <brobecker@adacore.com>
10321
10322 * lynx-low.c (ptrace_request_to_str): Do not handle
10323 PTRACE_GETTHREADLIST if this macro does not exist.
10324
10325 2012-12-15 Yao Qi <yao@codesourcery.com>
10326
10327 * Makefile.in (OBS): Add notif.o.
10328 * notif.c, notif.h: New.
10329 * server.c: Include "notif.h".
10330 (struct vstop_notif) <next>: Remove.
10331 <base>: New field.
10332 (queue_stop_reply): Update.
10333 (push_event, send_next_stop_reply): Remove.
10334 (discard_queued_stop_replies): Update.
10335 (notif_stop): New variable.
10336 (handle_v_stopped): Remove.
10337 (handle_v_requests): Don't call handle_v_stopped. Call
10338 handle_ack_notif instead.
10339 (queue_stop_reply_callback): Call notif_event_enque instead
10340 of queue_stop_reply.
10341 (handle_status): Don't call send_next_stop_reply, call
10342 notif_write_event instead.
10343 (kill_inferior_callback): Likewise.
10344 (detach_or_kill_inferior_callback): Likewise.
10345 (main): Call initialize_notif.
10346 (process_serial_event): Call QUEUE_is_empty.
10347 (handle_target_event): Call notif_push instead of push event.
10348 * server.h (push_event): Remove declaration.
10349
10350 2012-12-10 Tom Tromey <tromey@redhat.com>
10351
10352 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
10353 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
10354 macros.
10355 (.c.o): Rewrite.
10356 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
10357 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
10358 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
10359 (amd64-linux-ipa.o, ax.o): Rewrite.
10360 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
10361 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
10362 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
10363 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
10364 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
10365 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
10366 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
10367 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
10368 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
10369 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
10370 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
10371 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
10372 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
10373 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
10374 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
10375 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
10376 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
10377 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
10378 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
10379 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
10380 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
10381 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
10382 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
10383 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
10384 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
10385 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
10386 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
10387 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
10388 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
10389 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
10390 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
10391 (reg-tilegx.o): Remove.
10392 (all_object_files): New macro.
10393 Include .deps files.
10394 * aclocal.m4, configure: Rebuild.
10395 * acinclude.m4: Include depstand.m4, lead-dot.m4.
10396 * configure.ac: Invoke ZW_CREATE_DEPDIR,
10397 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
10398
10399 2012-12-05 Tom Tromey <tromey@redhat.com>
10400
10401 PR gdb/14917:
10402 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
10403
10404 2012-11-28 Markus Metzger <markus.t.metzger@intel.com>
10405
10406 * configure.ac: Check for linux/perf_event.h.
10407 * config.in: Regenerated.
10408 * configure: Regenerated.
10409
10410 2012-11-26 Maxime Villard <rustyBSD@gmx.fr>
10411
10412 * hostio.c (handle_readlink): Decrease buffer size
10413 parameter passed to readlink by one byte.
10414
10415 2012-11-26 Yao Qi <yao@codesourcery.com>
10416
10417 * configure.ac (build_warnings): Append '-Wempty-body'.
10418 * configure: Regenerated.
10419 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
10420 body.
10421
10422 2012-11-15 Pierre Muller <muller@sourceware.org>
10423
10424 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
10425 * config.in: Regenerate.
10426 * configure: Regenerate.
10427 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
10428 Use "gdb_wait.h" header instead of <sys/wait.h> header.
10429 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
10430 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
10431 header.
10432 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
10433 instead of <sys/wait.h> header.
10434 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
10435
10436 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
10437
10438 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
10439 (various make rules): Remove -DGDBSERVER
10440
10441 2012-11-09 Yao Qi <yao@codesourcery.com>
10442
10443 * spu-low.c (current_ptid): Move it to ..
10444 * gdbthread.h: ... here. New.
10445 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
10446 * server.c (myresume, process_serial_event): Likewise.
10447 * thread-db.c (thread_db_find_new_threads): Likewise.
10448 * tracepoint.c (run_inferior_command): Likewise.
10449
10450 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
10451
10452 * server.c (handle_search_memory_1): Include access length in
10453 warning message.
10454
10455 2012-09-05 Michael Brandt <michael.brandt@axis.com>
10456
10457 * linux-crisv32-low.c: Fix compile errors.
10458
10459 2012-09-04 Yao Qi <yao@codesourcery.com>
10460
10461 * tracepoint.c (cmd_qtsv): Adjust debug message.
10462 Don't check CUR_TPOINT.
10463
10464 2012-08-28 Yao Qi <yao@codesourcery.com>
10465
10466 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
10467 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
10468 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
10469 Remove declarations of xmalloc, xreallloc, xstrdup and
10470 freeargv.
10471 * Makefile.in (libiberty_h): New.
10472 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
10473 (linux-bfin-low.o): Append dependency 'libiberty.h'.
10474
10475 2012-08-23 Yao Qi <yao@codesourcery.com>
10476
10477 * server.h: Remove declaration of 'xsnprintf'.
10478
10479 2012-08-22 Keith Seitz <keiths@redhat.com>
10480
10481 * server.h: Include build-gnulib-gbserver/config.h.
10482 * gdbreplay.c: Likewise.
10483
10484 2012-08-08 Doug Evans <dje@google.com>
10485
10486 * Makefile.in (SFILES): Add gdb_vecs.c.
10487 (OBS): Add gdb_vecs.o.
10488 (gdb_vecs_h, host_defs_h): New variables.
10489 (thread-db.o): Add $(gdb_vecs_h) dependency.
10490 (gdb_vecs.o): New rule.
10491 * thread-db.c: #include "gdb_vecs.h".
10492 (thread_db_load_search): Use a vector to iterate over path elements.
10493 Handle text appearing after "$pdir".
10494
10495 * configure.ac: Add check for strstr.
10496 * config.in: Regenerate.
10497 * configure: Regenerate.
10498
10499 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10500
10501 * hostio.c (handle_pread): If pread fails, fall back to attempting
10502 lseek/read.
10503 (handle_pwrite): Likewise for pwrite.
10504
10505 2012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
10506
10507 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
10508 between unsupported TYPE and unimplementable ADDR/LEN combination.
10509 (arm_insert_point): Act on new return value.
10510
10511 2012-07-31 Pedro Alves <palves@redhat.com>
10512
10513 * server.c (process_point_options): Only skip tokens if we find
10514 one that is unrecognized. Don't treat 'X' specially while
10515 skipping unrecognized tokens.
10516
10517 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
10518
10519 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
10520 to 4-byte-align HW breakpoint addresses for Thumb.
10521
10522 2012-07-27 Yao Qi <yao@codesourcery.com>
10523
10524 PR remote/14161.
10525
10526 * server.h: Declare gdb_agent_about_to_close.
10527 * target.c (kill_inferior): Include "agent.h".
10528 New. Send command 'kill'.
10529 * target.h (kill_inferior): Removed macro.
10530 * tracepoint.c (gdb_agent_about_to_close): New.
10531 (gdb_agent_helper_thread): Handle command 'close'.
10532 Wait endlessly until the inferior stops.
10533 Install gdb_agent_remove_socket to atexit hook.
10534 (agent_socket_name): New static variable.
10535 (gdb_agent_socket_init): Replace local variable 'name' with
10536 'agent_socket_name'.
10537 (gdb_agent_remove_socket): New.
10538
10539 2012-07-27 Yao Qi <yao@codesourcery.com>
10540
10541 * server.c (process_point_options): Stop at 'X' when parsing.
10542
10543 2012-07-19 Michael Eager <eager@eagercon.com>
10544
10545 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
10546 to hw_execute.
10547 * linux-x86-low.c (x86_insert_point, x86_remove_point):
10548 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
10549 hardware breakpoint.
10550
10551 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
10552
10553 * gdbserver/linux-low.c (initialize_low): Call
10554 linux_ptrace_init_warnings.
10555
10556 2012-07-02 Doug Evans <dje@google.com>
10557
10558 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
10559 pointer to int.
10560
10561 2012-07-02 Stan Shebs <stan@codesourcery.com>
10562
10563 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
10564 (ax.o): Add it to build rule.
10565 (ax-ipa.o): Ditto.
10566 (OBS): Add format.o.
10567 (IPA_OBS): Add format.o.
10568 * server.c (handle_query): Claim support for breakpoint commands.
10569 (process_point_options): Add command case.
10570 (process_serial_event): Leave running if there are printfs in
10571 effect.
10572 * mem-break.h (any_persistent_commands): Declare.
10573 (add_breakpoint_commands): Declare.
10574 (gdb_no_commands_at_breakpoint): Declare.
10575 (run_breakpoint_commands): Declare.
10576 * mem-break.c (struct point_command_list): New struct.
10577 (struct breakpoint): New field command_list.
10578 (any_persistent_commands): New function.
10579 (add_commands_to_breakpoint): New function.
10580 (add_breakpoint_commands): New function.
10581 (gdb_no_commands_at_breakpoint): New function.
10582 (run_breakpoint_commands): New function.
10583 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
10584 locally.
10585 * ax.c: Include format.h.
10586 (ax_printf): New function.
10587 (gdb_eval_agent_expr): Add printf opcode.
10588
10589 2012-06-13 Yao Qi <yao@codesourcery.com>
10590
10591 * server.c (start_inferior): Remove duplicated writes to fields
10592 'last_resume_kind' and 'last_status' of 'current_inferior'.
10593
10594 2012-06-12 Yao Qi <yao@codesourcery.com>
10595 Pedro Alves <palves@redhat.com>
10596
10597 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
10598 comment.
10599 * server.c (handle_v_cont): Extend comment.
10600
10601 2012-06-11 Yao Qi <yao@codesourcery.com>
10602
10603 * linux-low.c (linux_attach): Add 'static'.
10604
10605 2012-06-06 Yao Qi <yao@codesourcery.com>
10606
10607 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
10608
10609 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10610
10611 Fix gcc -flto compilation warning.
10612 * server.c (main): Make variable multi_mode and attach volatile.
10613
10614 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
10615
10616 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
10617 if the platform doesn't know about it.
10618
10619 2012-05-30 Jeff Kenton <jkenton@tilera.com>
10620
10621 * Makefile.in (SFILES): Add linux-tile-low.c.
10622 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
10623 * configure.srv: Handle tilegx-*-linux*.
10624 * linux-tile-low.c: New file.
10625
10626 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
10627
10628 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
10629
10630 2012-05-24 Pedro Alves <palves@redhat.com>
10631
10632 PR gdb/7205
10633
10634 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
10635
10636 2012-05-24 Pedro Alves <palves@redhat.com>
10637
10638 PR gdb/7205
10639
10640 Replace target_signal with gdb_signal throughout.
10641
10642 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
10643
10644 * linux-low.c (linux_store_registers): Avoid the copying sequence
10645 when no data has been retrieved by ptrace.
10646
10647 2012-05-22 Will Deacon <will.deacon@arm.com>
10648
10649 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
10650 Include asm/ptrace.h.
10651 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
10652 already defined.
10653
10654 2012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
10655
10656 * linux-low.c (linux_store_registers): Don't re-retrieve data
10657 with ptrace that has already been obtained from /proc. Always
10658 copy any data retrieved with ptrace to the buffer supplied.
10659
10660 2012-05-11 Yao Qi <yao@codesourcery.com>
10661 Pedro Alves <palves@redhat.com>
10662
10663 * linux-low.c (enum stopping_threads_kind): New.
10664 (stopping_threads): Change type to `enum stopping_threads_kind'.
10665 (handle_extended_wait): If stopping and suspending threads, leave
10666 the new_lwp suspended too.
10667 (linux_wait_for_event): Adjust.
10668 (stop_all_lwps): Set `stopping_threads' to
10669 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
10670 whether we're suspending threads or just stopping them. Assert no
10671 recursion happens.
10672
10673 2012-04-29 Yao Qi <yao@codesourcery.com>
10674
10675 * server.h: Move some code to ...
10676 * gdbthread.h: ... here. New.
10677 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
10678 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
10679 (nto-low.o, win32-low.o): Likewise.
10680 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
10681 * regcache.c, remote-utils.c, server.c: Likewise.
10682 * target.c, tracepoint.c, win32-low.c: Likewise.
10683
10684 2012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
10685
10686 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
10687 (PTRACE_ARG4_TYPE): Likewise.
10688 (PTRACE_XFER_TYPE): Likewise.
10689 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
10690 ptrace to PTRACE_ARG3_TYPE.
10691 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
10692 (PTRACE_ARG4_TYPE): Likewise.
10693 (PTRACE_XFER_TYPE): Likewise.
10694 (linux_detach_one_lwp): Cast fourth argument of
10695 ptrace to long then PTRACE_ARG4_TYPE.
10696 (regsets_fetch_inferior_registers): Cast third argument of
10697 ptrace to long then PTRACE_ARG3_TYPE.
10698 (regsets_store_inferior_registers): Likewise.
10699
10700 2012-04-20 Pedro Alves <palves@redhat.com>
10701
10702 * configure: Regenerate.
10703
10704 2012-04-19 Pedro Alves <palves@redhat.com>
10705
10706 * Makefile.in (GNULIB_BUILDDIR): New.
10707 (LIBGNU, INCGNU, GNULIB_H): Adjust.
10708 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
10709 (all, install-only, uninstall, clean-info, all-lib, clean): No
10710 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
10711 (maintainer-clean realclean distclean): Use subdir_do.
10712 (subdir_do): New.
10713 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
10714 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
10715 * acinclude.m4: Include acx_configure_dir.m4.
10716 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
10717 calls. Call AC_PROG_RANLIB. Configure gnulib using
10718 ACX_CONFIGURE_DIR.
10719 (GNULIB): New.
10720 (GNULIB_STDINT_H): Adjust.
10721 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
10722 * gdbreplay.c: Include build-gnulib/config.h.
10723 * server.h: Likewise.
10724 * aclocal.m4: Regenerate.
10725 * config.in: Regenerate.
10726 * configure: Regenerate.
10727
10728 2012-04-19 Pedro Alves <palves@redhat.com>
10729
10730 * Makefile.in (LIBGNU, INCGNU): Adjust.
10731 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
10732 (all, install-only, uninstall, clean-info, all-lib, clean)
10733 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
10734 * configure.ac: Adjust AC_OUTPUT output.
10735 * aclocal.m4: Regenerate.
10736 * configure: Regenerate.
10737
10738 2012-04-19 Pedro Alves <palves@redhat.com>
10739
10740 * Makefile.in (generated_files): New.
10741 (server_h): Remove the explicit dependency on config.h, and depend
10742 on $generated_files.
10743
10744 2012-04-19 Pedro Alves <palves@redhat.com>
10745
10746 * Makefile.in (INCGNU): Add -Ignulib.
10747
10748 2012-04-19 Pedro Alves <palves@redhat.com>
10749
10750 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
10751 (INCGNU): ... this, and spell out -I here.
10752 (GNULIB_LIB): Rename to ...
10753 (LIBGNU): ... this.
10754 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
10755
10756 2012-04-19 Pedro Alves <palves@redhat.com>
10757
10758 * config.in: Regenerate.
10759
10760 2012-04-19 Pedro Alves <palves@redhat.com>
10761
10762 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
10763 * server.h (memmem): Remove declaration.
10764 * config.in: Regenerate.
10765 * configure: Regenerate.
10766
10767 2012-04-19 Yao Qi <yao@codesourcery.com>
10768
10769 * Makefile.in (SFILES): Add common/vec.c.
10770 (OBS): Add vec.o.
10771 (vec.o): New rule.
10772
10773 2012-04-19 Yao Qi <yao@codesourcery.com>
10774
10775 * remote-utils.c (prepare_resume_reply): Replace with macro
10776 target_core_of_thread.
10777 * server.c (handle_qxfer_threads_proper): Likewise.
10778 * target.h (traget_core_of_thread): New macro.
10779
10780 2012-04-18 Pedro Alves <palves@redhat.com>
10781
10782 * aclocal.m4: Regenerate.
10783 * configure: Regenerate.
10784
10785 2012-04-16 Yao Qi <yao@codesourcery.com>
10786
10787 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
10788 duplicated on address.
10789
10790 2012-04-16 Yao Qi <yao@codesourcery.com>
10791
10792 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
10793 (struct tracepoint_action_ops) <send>: New field.
10794 (m_tracepoint_action_send, r_tracepoint_action_send): New.
10795 (agent_expr_send, x_tracepoint_action_send): New.
10796 (l_tracepoint_action_send): New.
10797 (cmd_qtdp): Download and install tracepoint
10798 according to `use_agent'.
10799 (run_inferior_command): Add one more parameter `len'.
10800 Update callers.
10801 (tracepoint_send_agent): New.
10802 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
10803
10804 2012-04-16 Yao Qi <yao@codesourcery.com>
10805
10806 * tracepoint.c (download_tracepoints): Moved to ...
10807 (cmd_qtstart): ... here.
10808
10809 2012-04-14 Yao Qi <yao@codesourcery.com>
10810
10811 * tracepoint.c: Include inttypes.h.
10812 (struct collect_memory_action): Use sized types.
10813 (struct tracepoint): Likewise.
10814 (cmd_qtdp, stop_tracing): Update print specifiers.
10815 (cmd_qtp, response_tracepoint): Likewise.
10816 (collect_data_at_tracepoint): Likewise.
10817 (collect_data_at_step): Likewise.
10818
10819 2012-04-14 Yao Qi <yao@codesourcery.com>
10820
10821 Import gnulib module inttypes.
10822 * aclocal.m4, config.in, configure: Regenerated.
10823
10824 2012-04-14 Yao Qi <yao@codesourcery.com>
10825
10826 * Makefile.in (maintainer-clean, realclean, distclean): Remove
10827 Makefile and config.status at last.
10828
10829 2012-04-13 Yao Qi <yao@codesourcery.com>
10830
10831 * tracepoint.c: Include stdint.h unconditionally.
10832
10833 2012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
10834
10835 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
10836 on BFD_HAVE_SYS_PROCFS_TYPE.
10837 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
10838 * configure: Regenerate.
10839 * config.in: Likewise.
10840
10841 2012-04-13 H.J. Lu <hongjiu.lu@intel.com>
10842
10843 * Makefile.in (clean): Also remove x32.c x32-linux.c
10844 x32-avx.c x32-avx-linux.c.
10845 (x32.o): New target.
10846 (x32.c): Likewise.
10847 (x32-linux.o): Likewise.
10848 (x32-linux.c): Likewise.
10849 (x32-avx.o): Likewise.
10850 (x32-avx.c): Likewise.
10851 (x32-avx-linux.o): Likewise.
10852 (x32-avx-linux.c): Likewise.
10853
10854 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
10855 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
10856 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
10857 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
10858 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
10859 i386/x32-avx-linux.xml.
10860
10861 * linux-x86-low.c (init_registers_x32_linux): New prototype.
10862 (init_registers_x32_avx_linux): Likwise.
10863 (x86_linux_update_xmltarget): Call init_registers_x32_linux
10864 or init_registers_x32_avx_linux if linux_is_elf64 is false.
10865
10866 2012-04-13 Pedro Alves <palves@redhat.com>
10867
10868 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
10869 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
10870 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
10871 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
10872 the sub-make.
10873
10874 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
10875
10876 * linux-x86-low.c (compat_x32_clock_t): New.
10877 (compat_x32_siginfo_t): Likewise.
10878 (compat_x32_siginfo_from_siginfo): Likewise.
10879 (siginfo_from_compat_x32_siginfo): Likewise.
10880 (linux_is_elf64): Likewise.
10881 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
10882 and siginfo_from_compat_x32_siginfo for x32.
10883 (x86_arch_setup): Set linux_is_elf64.
10884
10885 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
10886
10887 PR gdb/13969
10888 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
10889 e_machine field.
10890 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
10891 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
10892 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
10893 compatible with process.
10894
10895 2012-04-12 Yao Qi <yao@codesourcery.com>
10896
10897 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
10898 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
10899 (install-only, install-info, clean): Handle sub dir gnulib.
10900 (all-lib, am--refresh): New targets.
10901 (memmem.o): Remove target.
10902 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
10903 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
10904 (AC_REPLACE_FUNCS): Remove memmem.
10905 Invoke gl_INIT and AM_INIT_AUTOMAKE.
10906 (AC_OUTPUT): Generate Makefile in gnulib/.
10907 * aclocal.m4, config.in, configure: Regenerated.
10908
10909 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
10910
10911 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
10912
10913 2012-04-05 Pedro Alves <palves@redhat.com>
10914
10915 -Werror=strict-aliasing
10916
10917 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
10918 pointer.
10919
10920 2012-04-04 Pedro Alves <palves@redhat.com>
10921
10922 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
10923 (sparc_store_gregset_from_stack, sparc_store_gregset)
10924 (sparc_breakpoint_at): Fix formatting.
10925
10926 2012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
10927
10928 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
10929 are available.
10930 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
10931 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
10932 * config.in: Regenerate.
10933 * configure: Likewise.
10934
10935 2012-03-29 Pedro Alves <palves@redhat.com>
10936
10937 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
10938 Correct ptrace arguments.
10939
10940 2012-03-28 Pedro Alves <palves@redhat.com>
10941
10942 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
10943 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
10944 (IA64_FR1_REGNUM): New defines.
10945 (ia64_fetch_register): New.
10946 (the_low_target): Install it.
10947 * linux-low.h (struct linux_target_ops) <fetch_register>: New
10948 field.
10949 * linux-low.c (linux_fetch_registers): Try the
10950 the_low_target.fetch_register hook first.
10951
10952 * linux-arm-low.c (the_low_target): Adjust.
10953 * linux-bfin-low.c (the_low_target): Adjust.
10954 * linux-cris-low.c (the_low_target): Adjust.
10955 * linux-crisv32-low.c (the_low_target): Adjust.
10956 * linux-m32r-low.c (the_low_target): Adjust.
10957 * linux-m68k-low.c (the_low_target): Adjust.
10958 * linux-mips-low.c (the_low_target): Adjust.
10959 * linux-ppc-low.c (the_low_target): Adjust.
10960 * linux-s390-low.c (the_low_target): Adjust.
10961 * linux-sh-low.c (the_low_target): Adjust.
10962 * linux-sparc-low.c (the_low_target): Adjust.
10963 * linux-tic6x-low.c (the_low_target): Adjust.
10964 * linux-x86-low.c (the_low_target): Adjust.
10965 * linux-xtensa-low.c (the_low_target): Adjust.
10966
10967 2012-03-26 Pedro Alves <palves@redhat.com>
10968
10969 * server.c (handle_qxfer_libraries): Don't bail early if
10970 the_target->qxfer_libraries_svr4 is not NULL.
10971
10972 2012-03-26 Pedro Alves <palves@redhat.com>
10973
10974 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
10975
10976 2012-03-23 Pedro Alves <palves@redhat.com>
10977
10978 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
10979 "library-list-svr4" element's start tag when the the DSO list is
10980 empty.
10981
10982 2012-03-23 Pedro Alves <palves@redhat.com>
10983
10984 * linux-low.c (read_one_ptr): Read the inferior's pointer through
10985 a variable whose type size is the same as the inferior's pointer
10986 size.
10987
10988 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
10989
10990 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
10991 struct siginfo.
10992 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
10993 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
10994 * linux-low.h: Include <signal.h>.
10995 (struct siginfo): Remove forward declaration.
10996 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
10997 struct siginfo.
10998
10999 2012-03-21 Mike Frysinger <vapier@gentoo.org>
11000
11001 * .gitignore: Ignore more files.
11002
11003 2012-03-19 Pedro Alves <palves@redhat.com>
11004 Jan Kratochvil <jan.kratochvil@redhat.com>
11005
11006 * server.c (cont_thread, general_thread): Add describing comments.
11007 (start_inferior): Clear `cont_thread'.
11008 (handle_v_cont): Don't set `cont_thread' if resuming all threads
11009 of a process.
11010
11011 2012-03-15 Yao Qi <yao@codesourcery.com>
11012
11013 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
11014 handling to ...
11015 (cmd_qtdp): ... here.
11016
11017 2012-03-15 Yao Qi <yao@codesourcery.com>
11018
11019 * tracepoint.c (struct tracepoint_action_ops): New.
11020 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
11021 (m_tracepoint_action_download): New.
11022 (r_tracepoint_action_download): New.
11023 (x_tracepoint_action_download): New.
11024 (l_tracepoint_action_download): New.
11025 (add_tracepoint_action): Install `action->ops' according type.
11026 (download_tracepoint_1): Move code `download' function pointer
11027 of various tracepoint_action_ops.
11028
11029 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11030
11031 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
11032 linux_ptrace_attach_warnings.
11033
11034 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11035
11036 * Makefile.in (linux-ptrace.o): New.
11037 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
11038 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
11039 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
11040 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
11041 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
11042 of these targets.
11043 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
11044
11045 2012-03-08 Yao Qi <yao@codesourcery.com>
11046 Pedro Alves <palves@redhat.com>
11047
11048 Fix PR server/13392.
11049 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
11050 offset of JMP insn.
11051 * tracepoint.c (remove_tracepoint): New.
11052 (cmd_qtdp): Call remove_tracepoint when failed to install.
11053
11054 2012-03-07 Pedro Alves <palves@redhat.com>
11055
11056 * linux-low.c (get_detach_signal): New.
11057 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
11058 Pass on pending signals to PTRACE_DETACH. Check the result of the
11059 ptrace call.
11060 * server.c (program_signals, program_signals_p): New.
11061 (handle_general_set): Handle QProgramSignals.
11062 * server.h (program_signals, program_signals_p): Declare.
11063
11064 2012-03-05 Pedro Alves <palves@redhat.com>
11065 Jan Kratochvil <jan.kratochvil@redhat.com>
11066
11067 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
11068 New comment why.
11069
11070 2012-03-03 Yao Qi <yao@codesourcery.com>
11071
11072 * tracepoint.c (tracepoint_look_up_symbols): Update call to
11073 agent_look_up_symbols.
11074
11075 2012-03-03 Yao Qi <yao@codesourcery.com>
11076
11077 * Makefile.in (linux-low.o): Keep dependence on agent.h.
11078 (linux-x86-low.o): Likewise.
11079 * server.h: Remove in_process_agent_loaded.
11080 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
11081 common/agent.c.
11082 Update callers.
11083
11084 2012-03-03 Yao Qi <yao@codesourcery.com>
11085
11086 * tracepoint.c (gdb_agent_capability): New global.
11087 (in_process_agent_loaded_ust): Renamed to
11088 `in_process_agent_supports_ust'.
11089 Update callers.
11090 (in_process_agent_supports_ust): Call agent_capability_check.
11091 (clear_installed_tracepoints): Assert that agent supports
11092 agent.
11093
11094 2012-03-03 Yao Qi <yao@codesourcery.com>
11095
11096 * linux-low.c (linux_supports_agent): New.
11097 (linux_target_ops): Initialize field `supports_agent' with
11098 linux_supports_agent.
11099 * target.h (struct target_ops) <supports_agent>: New.
11100 (target_supports_agent): New macro.
11101 * server.c (handle_general_set): Handle packet 'QAgent'.
11102 (handle_query): Send `QAgent+'.
11103 * Makefile.in (server.o): Depends on agent.h.
11104
11105 2012-03-03 Yao Qi <yao@codesourcery.com>
11106
11107 * Makefile.in (OBS): Add agent.o.
11108 Add new rule for agent.o.
11109 Track dependence of tracepoint.c on agent.h.
11110 * tracepoint.c (run_inferior_command_1):
11111 (run_inferior_command): Call agent_run_command.
11112 (gdb_ust_connect_sync_socket): Deleted. Move it to
11113 common/agent.c.
11114 (resume_thread, stop_thread): Likewise.
11115 (gdb_ust_socket_init): Renamed to ...
11116 (gdb_agent_socket_init): ... New.
11117 (gdb_ust_thread): Renamed to ...
11118 (gdb_agent_helper_thread): ... New.
11119 (gdb_ust_init): Move some code to ...
11120 (gdb_agent_init): ... here. New.
11121 [HAVE_UST]: Call gdb_ust_init.
11122 (initialize_tracepoint_ftlib): Call gdb_agent_init.
11123 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
11124 * config.in, configure: Regenerated.
11125
11126 2012-03-02 Pedro Alves <palves@redhat.com>
11127
11128 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
11129 * linux-low.c (struct simple_pid_list): New.
11130 (stopped_pids): New a struct simple_pid_list pointer.
11131 (add_to_pid_list, pull_pid_from_list): New.
11132 (handle_extended_wait): Don't assume the first signal new children
11133 report is SIGSTOP. Adjust call to pull_pid_from_list.
11134 (linux_wait_for_lwp): Adjust.
11135
11136 2012-03-02 Yao Qi <yao@codesourcery.com>
11137
11138 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
11139 debug log.
11140
11141 2012-03-02 Yao Qi <yao@codesourcery.com>
11142
11143 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
11144 `stop_pc' and `tpoint'. Update caller.
11145
11146 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
11147
11148 * linux-low.h (linux_target_ops): Add regset_bitmap member.
11149 * linux-low.c (use_linux_regsets): New macro.
11150 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
11151 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
11152 (linux_register_in_regsets): New function.
11153 (usr_fetch_inferior_registers): Skip registers covered by
11154 regsets.
11155 (usr_store_inferior_registers): Likewise.
11156 (usr_fetch_inferior_registers): New macro.
11157 (usr_store_inferior_registers): Likewise.
11158 (linux_fetch_registers): Handle mixed regset/non-regset targets.
11159 (linux_store_registers): Likewise.
11160 * linux-mips-low.c (init_registers_mips_dsp_linux): New
11161 prototype.
11162 (init_registers_mips64_dsp_linux): Likewise.
11163 (init_registers_mips_linux): New macro.
11164 (init_registers_mips_dsp_linux): Likewise.
11165 (mips_dsp_num_regs): Likewise.
11166 (DSP_BASE, DSP_CONTROL): New fallback macros.
11167 (mips_base_regs): New macro.
11168 (mips_regmap): Use it. Fix the size.
11169 (mips_dsp_regmap): New variable.
11170 (mips_dsp_regset_bitmap): Likewise.
11171 (mips_arch_setup): New function.
11172 (mips_cannot_fetch_register): Use the_low_target.regmap rather
11173 than mips_regmap.
11174 (mips_cannot_store_register): Likewise.
11175 (the_low_target): Update .arch_setup, .num_regs and .regmap
11176 initializers. Add .regset_bitmap initializer.
11177 * linux-arm-low.c (the_low_target): Add .regset_bitmap
11178 initializer.
11179 * linux-bfin-low.c (the_low_target): Likewise.
11180 * linux-cris-low.c (the_low_target): Likewise.
11181 * linux-crisv32-low.c (the_low_target): Likewise.
11182 * linux-ia64-low.c (the_low_target): Likewise.
11183 * linux-m32r-low.c (the_low_target): Likewise.
11184 * linux-m68k-low.c (the_low_target): Likewise.
11185 * linux-ppc-low.c (the_low_target): Likewise.
11186 * linux-s390-low.c (the_low_target): Likewise.
11187 * linux-sh-low.c (the_low_target): Likewise.
11188 * linux-sparc-low.c (the_low_target): Likewise.
11189 * linux-tic6x-low.c (the_low_target): Likewise.
11190 * linux-x86-low.c (the_low_target): Likewise.
11191 * linux-xtensa-low.c (the_low_target): Likewise.
11192 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
11193 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
11194 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
11195 srv_xmlfiles.
11196 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
11197 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
11198
11199 2012-02-29 Yao Qi <yao@codesourcery.com>
11200 Pedro Alves <palves@redhat.com>
11201
11202 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
11203 `step_over_finished' is true.
11204
11205 2012-02-27 Pedro Alves <palves@redhat.com>
11206
11207 * linux-low.c (pid_is_stopped): Delete, moved to common/.
11208 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
11209
11210 2012-02-27 Pedro Alves <palves@redhat.com>
11211
11212 PR server/9684
11213 * linux-low.c (pid_is_stopped): New.
11214 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
11215
11216 2012-02-25 Luis Machado <lgustavo@codesourcery.com>
11217
11218 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
11219 of conditions.
11220
11221 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
11222
11223 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
11224
11225 2012-02-24 Luis Machado <lgustavo@codesourcery>
11226
11227 * server.c (handle_query): Advertise support for target-side
11228 breakpoint condition evaluation.
11229 (process_point_options): New function.
11230 (process_serial_event): When inserting a breakpoint, check for
11231 a target-side condition that should be evaluated.
11232
11233 * mem-break.c: Include regcache.h and ax.h.
11234 (point_cond_list_t): New data structure.
11235 (breakpoint) <cond_list>: New field.
11236 (find_gdb_breakpoint_at): Make non-static.
11237 (delete_gdb_breakpoint_at): Clear any target-side
11238 conditions.
11239 (clear_gdb_breakpoint_conditions): New function.
11240 (add_condition_to_breakpoint): Likewise.
11241 (add_breakpoint_condition): Likewise.
11242 (gdb_condition_true_at_breakpoint): Likewise.
11243 (gdb_breakpoint_here): Return result directly instead
11244 of going through a local variable.
11245
11246 * mem-break.h (find_gdb_breakpoint_at): New prototype.
11247 (clear_gdb_breakpoint_conditions): Likewise.
11248 (add_breakpoint_condition): Likewise.
11249 (gdb_condition_true_at_breakpoint): Likewise.
11250
11251 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
11252 (need_step_over_p): Take target-side breakpoint condition into
11253 consideration.
11254
11255 2012-02-24 Luis Machado <lgustavo@codesourcery>
11256
11257 * server.h: Include tracepoint.h.
11258 (agent_mem_read, agent_get_trace_state_variable_value,
11259 agent_set_trace_state_variable_value,
11260 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
11261 get_set_tsv_func_addr): New prototypes.
11262
11263 * ax.h: New include file.
11264 * ax.c: New source file.
11265
11266 * tracepoint.c: Include ax.h.
11267 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
11268 agent_expr, eval_result_type): Move to ax.h.
11269 (parse_agent_expr): Rename to ...
11270 (gdb_parse_agent_expr): ... this, make it non-static and move
11271 to ax.h.
11272 (unparse_agent_expr) Rename to ...
11273 (gdb_unparse_agent_expr): ... this, make it non-static and move
11274 to ax.h.
11275 (eval_agent_expr): Rename to ...
11276 (eval_tracepoint_agent_expr): ... this.
11277 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
11278 forward declarations.
11279 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
11280 (agent_get_trace_state_variable_value): New function.
11281 (agent_set_trace_state_variable_value): New function.
11282 (cmd_qtdp): Call gdb_parse_agent_expr (...).
11283 (response_tracepoint): Call gdb_unparse_agent_expr (...).
11284 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
11285 (condition_true_at_tracepoint): Likewise.
11286 (parse_agent_expr): Rename to ...
11287 (gdb_parse_agent_expr): ... this and move to ax.c.
11288 (unparse_agent_expr): Rename to ...
11289 (gdb_unparse_agent_expr): ... this and move to ax.c.
11290 (gdb_agent_op_name): Move to ax.c.
11291 (eval_agent_expr): Rename to ...
11292 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
11293 and move to ax.c.
11294 (eval_tracepoint_agent_expr): New function.
11295 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
11296 non-static.
11297 (current_insn_ptr, emit_error, struct bytecode_address): Move to
11298 ax.c.
11299 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
11300 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
11301 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
11302 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
11303 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
11304 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
11305 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
11306 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
11307 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
11308 (compile_bytecodes): Remove forward declaration.
11309 (is_goto_target): Move to ax.c.
11310 (compile_bytecodes): Move to ax.c and call
11311 agent_get_trace_state_variable_value (...) and
11312 agent_set_trace_state_variable_value (...).
11313
11314 * Makefile.in: Update ax.c and IPA dependencies.
11315
11316 2012-02-24 Pedro Alves <palves@redhat.com>
11317
11318 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
11319 (cmd_bigqtbuffer_circular): ... this. Only handle
11320 'QTBuffer:circular:'.
11321 (handle_tracepoint_general_set): Adjust.
11322
11323 2012-02-16 Yao Qi <yao@codesourcery.com>
11324
11325 * inferiors.c: Move code to ...
11326 * dll.c: .... here. New.
11327 * server.h: Declare clear_dlls.
11328 * Makefile.in (SFILES): Add dll.c.
11329 (OBS): Add dll.o
11330 (dll.o): New rule.
11331
11332 2012-02-11 Yao Qi <yao@codesourcery.com>
11333
11334 * server.c: (handle_monitor_command): Add a new parameter
11335 `own_buf'.
11336 (handle_query): Update caller.
11337
11338 2012-02-09 Joel Brobecker <brobecker@adacore.com>
11339
11340 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
11341 * configure, config.in: Regenerate.
11342 * hostio.c: Provide an alternate implementation if HAVE_READLINK
11343 is not defined.
11344
11345 2012-02-02 Pedro Alves <palves@redhat.com>
11346
11347 Try SIGKILL first, then PTRACE_KILL.
11348 * linux-low.c (linux_kill_one_lwp): New.
11349 (linux_kill_one_lwp): Rename to ...
11350 (kill_one_lwp_callback): ... this. Use the new
11351 linux_kill_one_lwp.
11352
11353 2012-02-02 Pedro Alves <palves@redhat.com>
11354
11355 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
11356 inferior.
11357
11358 2012-01-27 Pedro Alves <palves@redhat.com>
11359
11360 * linux-low.c (linux_child_pid_to_exec_file): Delete.
11361 (elf_64_file_p): Make static.
11362 (linux_pid_exe_is_elf_64_file): New.
11363 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
11364 Delete declarations.
11365 (linux_pid_exe_is_elf_64_file): Declare.
11366 * linux-x86-low.c (x86_arch_setup): Use
11367 linux_pid_exe_is_elf_64_file.
11368
11369 2012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
11370
11371 * linux-low.c (linux_wait_for_event_1): Rename to ...
11372 (linux_wait_for_event): ... here and merge it with former
11373 linux_wait_for_event - new variable wait_ptid, use it.
11374 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
11375
11376 2012-01-23 Pedro Alves <palves@redhat.com>
11377
11378 * server.c (main): Avoid yet another case of infinite loop while
11379 detaching/killing after a longjmp.
11380
11381 2012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
11382
11383 Code cleanup.
11384 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
11385
11386 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11387
11388 * hostio.c (handle_readlink): New function.
11389 (handle_vFile): Call it to handle "vFile:readlink" packets.
11390
11391 2012-01-20 Pedro Alves <palves@redhat.com>
11392 Ulrich Weigand <ulrich.weigand@linaro.org>
11393
11394 * server.c (handle_v_requests): Only support vAttach and vRun to
11395 start multiple processes when in extended protocol mode.
11396
11397 2012-01-17 Pedro Alves <palves@redhat.com>
11398
11399 * tracepoint.c (initialize_tracepoint): Use mmap instead of
11400 memalign plus mprotect to allocate the scratch buffer.
11401
11402 2012-01-13 Pedro Alves <palves@redhat.com>
11403
11404 * server.c (attach_inferior): Clear `cont_thread'.
11405
11406 2012-01-13 Pedro Alves <palves@redhat.com>
11407
11408 * server.c (main): Avoid infinite loop while detaching/killing
11409 after a longjmp.
11410
11411 2012-01-09 Doug Evans <dje@google.com>
11412
11413 * server.c (start_inferior): Set last_ptid in --wrapper case.
11414
11415 2012-01-06 Yao Qi <yao@codesourcery.com>
11416
11417 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
11418 defined.
11419 [IN_PROCESS_AGENT] (debug_agent): New global variable.
11420
11421 2012-01-04 Yao Qi <yao@codesourcery.com>
11422
11423 * tracepoint.c (cmd_qtdp): Print debug message
11424 for static tracepoint.
11425
11426 2012-01-04 Yao Qi <yao@codesourcery.com>
11427
11428 * tracepoint.c (trace_vdebug): Differentiate debug message
11429 between gdbserver and IPA.
11430
11431 2012-01-03 Yao Qi <yao@codesourcery.com>
11432
11433 * tracepoint.c (tracepoint_was_hit): Don't collect for
11434 static tracepoint.
11435
11436 2012-01-02 Joel Brobecker <brobecker@adacore.com>
11437
11438 * terminal.h: Reformat copyright header.
11439
11440 2012-01-02 Joel Brobecker <brobecker@adacore.com>
11441
11442 * server.c (gdbserver_version): Update copyright year.
11443 * gdbreplay.c (gdbreplay_version): Likewise.
11444
11445 2011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
11446
11447 * linux-low.c (linux_create_inferior): Put empty if clause for write.
11448
11449 Revert:
11450 2011-12-18 Hui Zhu <teawater@gmail.com>
11451 * linux-low.c (linux_create_inferior): Save return value to ret.
11452
11453 2011-12-18 Hui Zhu <teawater@gmail.com>
11454
11455 * linux-low.c (linux_create_inferior): Save return value to ret.
11456
11457 2011-12-16 Doug Evans <dje@google.com>
11458
11459 * linux-low.c (linux_create_inferior): If stdio connection,
11460 redirect stdin from /dev/null, stdout to stderr.
11461 * remote-utils.c (remote_is_stdio): New static global.
11462 (remote_connection_is_stdio): New function.
11463 (remote_prepare): Handle stdio connection.
11464 (remote_open): Ditto.
11465 (remote_close): Don't close stdin for stdio connections.
11466 (read_prim,write_prim): New functions. Replace all calls to
11467 read/write to these.
11468 * server.c (main): Watch for "-" argument. Move call to
11469 remote_prepare before start_inferior.
11470 * server.h (STDIO_CONNECTION_NAME): New macro.
11471 (remote_connection_is_stdio): Declare.
11472
11473 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
11474 in debugging output.
11475
11476 2011-12-15 Yao Qi <yao@codesourcery.com>
11477
11478 * tracepoint.c: Include sys/syscall.h.
11479 (gdb_ust_thread): Remove preprocessor conditional.
11480
11481 2011-12-14 Pedro Alves <pedro@codesourcery.com>
11482
11483 * linux-low.c (linux_detach_one_lwp): Call
11484 the_low_target.prepare_to_resume before detaching.
11485
11486 2011-12-14 Yao Qi <yao@codesourcery.com>
11487
11488 * tracepoint.c (gdb_ust_thread): Don't ignore return value
11489 of write.
11490
11491 2011-12-14 Yao Qi <yao@codesourcery.com>
11492
11493 * i386-low.c (i386_low_stopped_data_address): Initialize local
11494 variable `control'.
11495
11496 2011-12-13 Pedro Alves <pedro@codesourcery.com>
11497
11498 PR remote/13492
11499
11500 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
11501 DR_CONTROL unless necessary. Extend comments.
11502 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
11503 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
11504
11505 2011-12-13 Yao Qi <yao@codesourcery.com>
11506
11507 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
11508 macros.
11509 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
11510
11511 2011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
11512
11513 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
11514 Print new debug message for such case.
11515
11516 2011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
11517
11518 Fix overlapping memcpy.
11519 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
11520 the read_inferior_memory transfer.
11521 (delete_fast_tracepoint_jump): New variable buf. Use it for the
11522 write_inferior_memory transfer.
11523 (set_fast_tracepoint_jump): New variable buf. Use it for the
11524 read_inferior_memory and write_inferior_memory transfers.
11525 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
11526 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
11527 Use it for the write_inferior_memory transfer.
11528 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
11529 buffers.
11530
11531 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
11532
11533 * linux-low.c (fetch_register, store_register): Make code
11534 consistent, fix formatting.
11535
11536 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
11537
11538 * linux-low.c (usr_store_inferior_registers): Factor out code
11539 to handle individual registers into...
11540 (store_register): ... this new function.
11541
11542 2011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
11543
11544 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
11545 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
11546 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
11547 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
11548 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
11549 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
11550 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
11551 (srv_xmlfiles): Add new XML files.
11552
11553 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
11554 and <sys/uio.h>.
11555 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
11556 (init_registers_s390_linux32v1): Add prototype.
11557 (init_registers_s390_linux32v2): Likewise.
11558 (init_registers_s390_linux64v1): Likewise.
11559 (init_registers_s390_linux64v2): Likewise.
11560 (init_registers_s390x_linux64v1): Likewise.
11561 (init_registers_s390x_linux64v2): Likewise.
11562 (s390_num_regs): Increment to 52.
11563 (s390_regmap): Add orig_r2 register.
11564 (s390_num_regs_3264): Increment to 68.
11565 (s390_regmap_3264): Add orig_r2 register.
11566 (s390_collect_ptrace_register): Handle orig_r2 register.
11567 (s390_supply_ptrace_register): Likewise.
11568 (s390_fill_last_break): New function.
11569 (s390_store_last_break): Likewise.
11570 (s390_fill_system_call): New function.
11571 (s390_store_system_call): Likewise.
11572 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
11573 register sets.
11574 (s390_check_regset): New function.
11575 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
11576 NT_S390_SYSTEM_CALL regsets and use appropriate description.
11577 Update target_regsets for available register sets.
11578
11579 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
11580 Jan Kratochvil <jan.kratochvil@redhat.com>
11581
11582 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
11583 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
11584 New.
11585 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
11586 * linux-low.h (struct process_info_private): New member r_debug.
11587 * server.c (handle_qxfer_libraries): Call
11588 the_target->qxfer_libraries_svr4.
11589 (handle_qxfer_libraries_svr4): New function.
11590 (qxfer_packets): New entry "libraries-svr4".
11591 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
11592 * target.h (struct target_ops): New member qxfer_libraries_svr4.
11593 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
11594 PACKET_qXfer_libraries_svr4.
11595
11596 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
11597
11598 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
11599 PSW address/mask between 8-byte and 16-byte formats.
11600 (s390_supply_ptrace_register): Likewise.
11601 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
11602 basic addressing mode bit.
11603
11604 2011-11-24 Stan Shebs <stan@codesourcery.com>
11605
11606 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
11607
11608 2011-11-17 Stan Shebs <stan@codesourcery.com>
11609
11610 * tracepoint.c (struct tracepoint): New field traceframe_usage.
11611 (tracing_start_time): New global.
11612 (tracing_stop_time): New global.
11613 (tracing_user_name): New global.
11614 (tracing_notes): New global.
11615 (tracing_stop_note): New global.
11616 (cmd_qtstart): Set traceframe_usage, start_time.
11617 (stop_tracing): Set stop_time.
11618 (cmd_qtstatus): Report additional status.
11619 (cmd_qtp): New function.
11620 (handle_tracepoint_query): Call it.
11621 (cmd_qtnotes): New function.
11622 (handle_tracepoint_general_set): Call it.
11623 (get_timestamp): Rename from tsv_get_timestamp.
11624
11625 2011-11-14 Stan Shebs <stan@codesourcery.com>
11626 Kwok Cheung Yeung <kcy@codesourcery.com>
11627
11628 * linux-x86-low.c (small_jump_insn): New.
11629 (i386_install_fast_tracepoint_jump_pad): Add arguments for
11630 trampoline and error message, build a trampoline and issue a small
11631 jump instruction to it.
11632 (x86_install_fast_tracepoint_jump_pad): Add arguments for
11633 trampoline and error message.
11634 (x86_get_min_fast_tracepoint_insn_len): New.
11635 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
11636 * linux-low.h (struct linux_target_ops): Add arguments to
11637 install_fast_tracepoint_jump_pad operation, add new operation.
11638 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
11639 arguments.
11640 (linux_get_min_fast_tracepoint_insn_len): New function.
11641 (linux_target_op): Add new operation.
11642 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
11643 (gdb_trampoline_buffer_end): Ditto.
11644 (gdb_trampoline_buffer_error): Ditto.
11645 (struct ipa_sym_addresses): Add fields for new IPA variables.
11646 (symbol_list): Add entries for new IPA variables.
11647 (struct tracepoint): Add fields to hold the address range of the
11648 trampoline used by the tracepoint.
11649 (trampoline_buffer_head): New static variable.
11650 (trampoline_buffer_tail): Ditto.
11651 (claim_trampoline_space): New function.
11652 (have_fast_tracepoint_trampoline_buffer): New function.
11653 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
11654 structure.
11655 (install_fast_tracepoint): Ditto, also add error buffer argument.
11656 (cmd_qtminftpilen): New function.
11657 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
11658 (fast_tracepoint_from_trampoline_address): New function.
11659 (fast_tracepoint_collecting): Handle trampoline as part of jump
11660 pad space.
11661 (set_trampoline_buffer_space): New function.
11662 (initialize_tracepoint): Initialize new IPA variables.
11663 * target.h (struct target_ops): Add arguments to
11664 install_fast_tracepoint_jump_pad operation, add new
11665 get_min_fast_tracepoint_insn_len operation.
11666 (target_get_min_fast_tracepoint_insn_len): New.
11667 (install_fast_tracepoint_jump_pad): Add arguments.
11668 * server.h (IPA_BUFSIZ): Define.
11669 * linux-i386-ipa.c: Include extra header files.
11670 (initialize_fast_tracepoint_trampoline_buffer): New function.
11671 (initialize_low_tracepoint): Call it.
11672 * server.h (set_trampoline_buffer_space): Declare.
11673 (claim_trampoline_space): Ditto.
11674 (have_fast_tracepoint_trampoline_buffer): Ditto.
11675
11676 2011-11-14 Yao Qi <yao@codesourcery.com>
11677
11678 * server.c (handle_query): Handle InstallInTrace for qSupported.
11679 * tracepoint.c (add_tracepoint): Sort list.
11680 (install_tracepoint, download_tracepoint): New.
11681 (cmd_qtdp): Call them to install and download tracepoints.
11682 (sort_tracepoints): Removed.
11683 (cmd_qtstart): Update.
11684
11685 2011-11-14 Yao Qi <yao@codesourcery.com>
11686
11687 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
11688 * mem-break.h: Declare.
11689 * tracepoint.c (cmd_qtstart): Move some code to ...
11690 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
11691 New.
11692 (download_tracepoints): Move some code to ...
11693 (download_tracepoint_1): ... here. New.
11694
11695 2011-11-08 Yao Qi <yao@codesourcery.com>
11696
11697 * remote-utils.c (relocate_instruction): A comment fix.
11698
11699 2011-11-07 Joel Brobecker <brobecker@adacore.com>
11700
11701 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
11702 (i386_dr_low_get_control, i386_dr_low_get_status): Use
11703 dr_status_mirror and dr_control_mirror from debug_reg_state.
11704 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
11705 (i386_initial_stuff): Remove use of deleted globals.
11706 (i386_get_thread_context, i386_set_thread_context,
11707 i386_thread_added): Use dr_status_mirror and dr_control_mirror
11708 from debug_reg_state.
11709
11710 2011-11-05 Yao Qi <yao@codesourcery.com>
11711
11712 * tracepoint.c (gdb_collect): Loop over tracepoints of same
11713 address as TPOINT's.
11714
11715 2011-11-02 Stan Shebs <stan@codesourcery.com>
11716
11717 * tracepoint.c (agent_mem_read_string): New function.
11718 (eval_agent_expr): Call it for tracenz.
11719 * server.c (handle_query): Report support for tracenz.
11720
11721 2011-11-02 Yao Qi <yao@codesourcery.com>
11722
11723 * tracepoint.c (cmd_qtstart): Remove unused local variables.
11724
11725 2011-11-02 Yao Qi <yao@codesourcery.com>
11726
11727 * target.h: Fix a typo in comment.
11728
11729 2011-10-31 Pedro Alves <pedro@codesourcery.com>
11730
11731 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
11732 clobber the breakpoints' shadows with fast tracepoint jumps.
11733 * mem-break.h (check_mem_write): Add `myaddr' parameter.
11734 * target.c (write_inferior_memory): Also pass MYADDR down to
11735 check_mem_write.
11736
11737 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
11738
11739 * configure.ac: Check support for personality routine.
11740 * configure: Regenerate.
11741 * config.in: Likewise.
11742 * linux-low.c: Include <sys/personality.h>.
11743 Define ADDR_NO_RANDOMIZE if necessary.
11744 (linux_create_inferior): Disable address space randomization when
11745 forking inferior, if requested.
11746 (linux_supports_disable_randomization): New function.
11747 (linux_target_ops): Install it.
11748 * server.h (disable_randomization): Declare.
11749 * server.c (disable_randomization): New global variable.
11750 (handle_general_set): Handle QDisableRandomization.
11751 (handle_query): Likewise for qSupported.
11752 (main): Support --disable-randomization and --no-disable-randomization
11753 command line arguments.
11754 * target.h (struct target_ops): Add supports_disable_randomization.
11755 (target_supports_disable_randomization): New macro.
11756
11757 2011-09-29 Mike Frysinger <vapier@gentoo.org>
11758
11759 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
11760 ifdef check.
11761 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
11762 [!PT_GETDSBT] (target_loadmap): New definition.
11763 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
11764 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
11765 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
11766 and PT_GETDSBT to LINUX_LOADMAP.
11767 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
11768 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
11769
11770 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
11771
11772 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
11773 (arm_linux_hwbp_cap): New static variable.
11774 (arm_linux_get_hwbp_cap): Replace by ...
11775 (arm_linux_init_hwbp_cap): ... this new function.
11776 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
11777 (arm_linux_get_hw_watchpoint_count): Likewise.
11778 (arm_linux_get_hw_watchpoint_max_length): Likewise.
11779 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
11780 (arm_prepare_to_resume): Use perror_with_name instead of error.
11781
11782 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
11783
11784 * linux-arm-low.c: Include <signal.h>.
11785 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
11786 (struct arm_linux_hwbp_cap): New data type.
11787 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
11788 (struct arm_linux_hw_breakpoint): New data type.
11789 (MAX_BPTS, MAX_WPTS): Define.
11790 (struct arch_process_info, struct arch_lwp_info): New data types.
11791 (arm_linux_get_hwbp_cap): New function.
11792 (arm_linux_get_hw_breakpoint_count): Likewise.
11793 (arm_linux_get_hw_watchpoint_count): Likewise.
11794 (arm_linux_get_hw_watchpoint_max_length): Likewise.
11795 (arm_hwbp_control_initialize): Likewise.
11796 (arm_hwbp_control_is_enabled): Likewise.
11797 (arm_hwbp_control_is_initialized): Likewise.
11798 (arm_hwbp_control_disable): Likewise.
11799 (arm_linux_hw_breakpoint_equal): Likewise.
11800 (arm_linux_hw_point_initialize): Likewise.
11801 (struct update_registers_data): New data structure.
11802 (update_registers_callback: New function.
11803 (arm_insert_point): Likewise.
11804 (arm_remove_point): Likewise.
11805 (arm_stopped_by_watchpoint): Likewise.
11806 (arm_stopped_data_address): Likewise.
11807 (arm_new_process): Likewise.
11808 (arm_new_thread): Likewise.
11809 (arm_prepare_to_resume): Likewise.
11810 (the_low_target): Register arm_insert_point, arm_remove_point,
11811 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
11812 arm_new_thread, and arm_prepare_to_resume.
11813
11814 2011-09-15 Stan Shebs <stan@codesourcery.com>
11815
11816 * server.h (struct emit_ops): Add compare-goto fields.
11817 * tracepoint.c (gdb_agent_op_sizes): New table.
11818 (emit_eq_goto): New function.
11819 (emit_ne_goto): New function.
11820 (emit_lt_goto): New function.
11821 (emit_le_goto): New function.
11822 (emit_gt_goto): New function.
11823 (emit_ge_goto): New function.
11824 (is_goto_target): New function.
11825 (compile_bytecodes): Recognize special cases of compare-goto
11826 combinations and call specialized emitters for them.
11827 * linux-x86-low.c (amd64_emit_eq_goto): New function.
11828 (amd64_emit_ne_goto): New function.
11829 (amd64_emit_lt_goto): New function.
11830 (amd64_emit_le_goto): New function.
11831 (amd64_emit_gt_goto): New function.
11832 (amd64_emit_ge_goto): New function.
11833 (amd64_emit_ops): Add the new functions.
11834 (i386_emit_eq_goto): New function.
11835 (i386_emit_ne_goto): New function.
11836 (i386_emit_lt_goto): New function.
11837 (i386_emit_le_goto): New function.
11838 (i386_emit_gt_goto): New function.
11839 (i386_emit_ge_goto): New function.
11840 (i386_emit_ops): Add the new functions.
11841
11842 2011-09-08 Stan Shebs <stan@codesourcery.com>
11843
11844 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
11845 (i386_emit_epilogue): Restore %ebx.
11846
11847 2011-08-31 Jie Zhang <jzhang918@gmail.com>
11848
11849 * server.c (step_thread): Remove definition.
11850 (process_serial_event): Don't handle Hs.
11851 * server.h (step_thread): Remove declaration.
11852 * target.c (set_desired_inferior): Remove use of step_thread.
11853
11854 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
11855
11856 * linux-low.c: Include linux-procfs.h.
11857 (linux_attach_lwp_1): Update comments.
11858 (linux_attach): Scan for existing threads when attaching to a
11859 process that is the tgid.
11860 * Makefile.in: Update dependencies.
11861
11862 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
11863
11864 * configure.srv: Add linux-procfs.o dependencies.
11865
11866 2011-08-14 Yao Qi <yao@codesourcery.com>
11867
11868 * target.h (struct target_ops): Fix indent.
11869 * win32-low.c (win32_target_ops): Fix comment.
11870
11871 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
11872 Yao Qi <yao@codesourcery.com>
11873
11874 * Makefile.in (clean): Remove tic6x-*.c files.
11875 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
11876 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
11877 (tic6x-c64xp-linux.c): Likewise.
11878 * configure.srv: Add support for tic6x-*-uclinux.
11879 * linux-tic6x-low.c: New.
11880 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
11881
11882 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
11883 Yao Qi <yao@codesourcery.com>
11884
11885 * target.h (struct target_ops): Add read_loadmap.
11886 * linux-low.c (struct target_loadseg): New type.
11887 (struct target_loadmap): New type.
11888 (linux_read_loadmap): New function.
11889 (linux_target_ops): Add linux_read_loadmap.
11890 * server.c (handle_query): Support qXfer:fdpic:read packet.
11891 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
11892 to NULL.
11893
11894 2011-08-05 Eli Zaretskii <eliz@gnu.org>
11895
11896 * win32-low.c: Include <stdint.h>.
11897
11898 2011-07-22 Pedro Alves <pedro@codesourcery.com>
11899
11900 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
11901 to the inferior here.
11902 (i386_remove_aligned_watchpoint): Ditto.
11903 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
11904 fit part of the watchpoint in the debug registers.
11905 (i386_update_inferior_debug_regs): New.
11906 (i386_low_insert_watchpoint): Work on a local mirror of the debug
11907 registers, and only update the inferior on success.
11908 (i386_low_remove_watchpoint): Ditto.
11909
11910 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
11911
11912 * linux-low.c (compare_ints, unique, list_threads, show_process,
11913 linux_core_of_thread): Delete.
11914 (linux_target_ops): Change linux_core_of_thread to
11915 linux_common_core_of_thread.
11916 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
11917 * utils.c (malloc_failure): Change type of argument.
11918 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
11919 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
11920 common/linux-osdata.c, common/ptid.c and common/buffer.c.
11921 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
11922 (IPA_OBJS): Add common-utils-ipa.o.
11923 (ptid_h, linux_osdata_h): New macros.
11924 (server_h): Add common/common-utils.h, common/xml-utils.h,
11925 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
11926 common/ptid.h.
11927 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
11928 ptid.o, buffer.o): New rules.
11929 (linux-low.o): Add common/linux-osdata.h as a dependency.
11930 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
11931 * configure.ac: Add AC_HEADER_DIRENT check.
11932 * config.in: Regenerate.
11933 * configure: Regenerate.
11934 * remote-utils.c (xml_escape_text): Delete.
11935 (buffer_grow, buffer_free, buffer_init, buffer_finish,
11936 buffer_xml_printf): Move to common/buffer.c.
11937 * server.c (main): Remove call to initialize_inferiors.
11938 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
11939 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
11940 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
11941 internal_error, gdb_assert, gdb_assert_fail): Delete.
11942 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
11943 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
11944 common/buffer.h.
11945 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
11946 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
11947 initialize_inferiors): Delete.
11948
11949 2011-07-20 Pedro Alves <pedro@codesourcery.com>
11950
11951 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
11952 symbol error.
11953
11954 2011-05-31 Pedro Alves <pedro@codesourcery.com>
11955
11956 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
11957 assertion.
11958 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
11959
11960 2011-05-26 Yao Qi <yao@codesourcery.com>
11961
11962 * Makefile.in (thread-db.o): Track dependence to
11963 common/gdb_thread_db.h.
11964 * thread-db.c: include gdb_thread_db.h from right place.
11965
11966 2011-05-16 Adrian Cornish <gnu@bluedreamer.com>
11967
11968 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
11969 __FILE__ and __LINE__ to internal_error.
11970
11971 2011-05-13 Doug Evans <dje@google.com>
11972
11973 * thread-db.c (try_thread_db_load_from_sdir): New function.
11974 (try_thread_db_load_from_dir): New function.
11975 (thread_db_load_search): Handle $sdir, ignore $pdir.
11976 Remove trying of system directories if search of
11977 libthread-db-search-path fails, that is now done via $sdir.
11978
11979 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
11980
11981 * server.c (handle_query): Add EnableDisableTracepoints to the list
11982 of supported features.
11983 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
11984 tracepoints.
11985 (cmd_qtenable_disable): New.
11986 (cmd_qtstart): Install tracepoints even if disabled.
11987 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
11988 receiving a QTEnable or QTDisable packet.
11989 (gdb_collect): Skip data collection if fast tracepoint is disabled.
11990 (ust_marker_to_static_tracepoint): Do not ignore disabled static
11991 tracepoints.
11992 (gdb_probe): Skip data collection if static tracepoint is disabled.
11993
11994 2011-05-10 Doug Evans <dje@google.com>
11995
11996 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
11997
11998 2011-05-04 Doug Evans <dje@google.com>
11999
12000 * linux-low.c (linux_join): Skip process lookup.
12001 * spu-low.c (spu_join): Ditto.
12002 * server.c (join_inferiors_callback): Delete.
12003 (process_serial_event): For 'D' packet (detach) call join_inferior
12004 directly.
12005
12006 2011-05-04 Joseph Myers <joseph@codesourcery.com>
12007
12008 * README: Don't mention xscale*-*-linux*.
12009 * configure.srv (xscale*-*-linux*): Don't handle target.
12010
12011 2011-04-27 Nathan Froyd <froydnj@codesourcery.com>
12012
12013 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
12014 casting pointers.
12015 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
12016 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
12017 (i386_emit_void_call_2): Likewise.
12018
12019 2011-04-26 Yao Qi <yao@codesourcery.com>
12020
12021 * linux-low.c: Move common macros to linux-ptrace.h.
12022 Include linux-ptrace.h.
12023 * Makefile.in (linux_ptrace_h): New.
12024 (linux-low.o): Depends on linux-ptrace.h.
12025
12026 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
12027
12028 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
12029 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
12030 (remote_prepare): New function with most of the TCP code from ...
12031 (remote_open): ... here. Detect PORT here unconditionally. Move also
12032 setting transport_is_reliable.
12033 * server.c (run_once): New variable.
12034 (gdbserver_usage): Document it.
12035 (main): Set run_once for `--once'. Call remote_prepare. Exit after
12036 the first run if RUN_ONCE.
12037 * server.h (run_once, remote_prepare): New declarations.
12038
12039 2011-04-19 Tom Tromey <tromey@redhat.com>
12040
12041 * win32-low.c (handle_load_dll): Remove duplicate "the".
12042
12043 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
12044
12045 Remove support for old Cygwin 1.5 versions.
12046 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
12047 function to avoid warning.
12048 (win32_add_one_solib): Use cygwin_conv_path function to avoid
12049 warning.
12050
12051 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
12052
12053 * gdbserver/server.h (Macro _): Define it if not available.
12054
12055 2011-03-14 Michael Snyder <msnyder@vmware.com>
12056
12057 * hostio.c (handle_close): Remove unnecessary null test.
12058
12059 2011-03-10 Joel Brobecker <brobecker@adacore.com>
12060
12061 * Makefile.in (maintainer-clean realclean distclean): Remove
12062 "make ... subdir_do" command.
12063
12064 2011-03-10 Michael Snyder <msnyder@vmware.com>
12065
12066 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
12067
12068 * server.c (handle_v_run): Free alloced buffer on early return.
12069
12070 2011-03-09 Yao Qi <yao@codesourcery.com>
12071
12072 Revert:
12073 2011-03-04 Yao Qi <yao@codesourcery.com>
12074
12075 * Makefile.in: Remove GNU make feature --directory.
12076
12077 2011-03-05 Yao Qi <yao@codesourcery.com>
12078
12079 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
12080 (subdir_do): New make target. Copied from gdb/Makefile.
12081 (maintainer-clean, realclean, distclean, clean): Call corresponding
12082 make targets in common/Makefile.
12083
12084 2011-02-11 Yao Qi <yao@codesourcery.com>
12085
12086 * configure.ac: Call AC_PROG_RANLIB.
12087 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
12088 * configure: Regenerate.
12089
12090 2011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
12091
12092 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
12093
12094 2011-03-06 Yao Qi <yao@codesourcery.com>
12095
12096 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
12097
12098 2011-03-05 Yao Qi <yao@codesourcery.com>
12099
12100 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
12101 (subdir_do): New make target. Copied from gdb/Makefile.
12102 (maintainer-clean, realclean, distclean, clean): Call corresponding
12103 make targets in common/Makefile.
12104
12105 2011-03-04 Yao Qi <yao@codesourcery.com>
12106
12107 * Makefile.in: Remove GNU make feature --directory.
12108
12109 2011-03-04 Michael Snyder <msnyder@vmware.com>
12110
12111 * server.c (queue_stop_reply): Call xmalloc not malloc.
12112
12113 2011-03-02 Michael Snyder <msnyder@vmware.com>
12114
12115 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
12116
12117 2011-02-28 Michael Snyder <msnyder@vmware.com>
12118
12119 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
12120 (cmd_qtframe): Ditto.
12121 (cmd_qtbuffer): Ditto.
12122 (cmd_bigqtbuffer): Ditto.
12123
12124 * utils.c (decimal2str): Initialize 'width' to nine, then
12125 don't mess with it.
12126
12127 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
12128
12129 * hostio.c (require_data): Free *data, not data.
12130
12131 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
12132
12133 * hostio.c (require_data): Use free, not xfree.
12134
12135 2011-02-27 Michael Snyder <msnyder@vmware.com>
12136
12137 * server.c (handle_query): Discard unused value.
12138
12139 * hostio.c (require_data): Free malloc memory before returning
12140 error.
12141
12142 2011-02-26 Michael Snyder <msnyder@vmware.com>
12143
12144 * linux-low.c (list_threads): Call closedir for dirent.
12145
12146 2011-02-27 Michael Snyder <msnyder@vmware.com>
12147
12148 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
12149 a case statement falls through.
12150
12151 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
12152
12153 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
12154 in comparison.
12155
12156 2011-02-26 Michael Snyder <msnyder@vmware.com>
12157
12158 * utils.c (decimal2str): Eliminate dead code and dead param.
12159 (pulongest): Drop dead param from call to decimal2str.
12160 (plongest): Ditto.
12161
12162 2011-02-24 Joel Brobecker <brobecker@adacore.com>
12163
12164 Revert the following patch (not approved yet):
12165 2011-02-21 Hui Zhu <teawater@gmail.com>
12166 * tracepoint.c (tp_printf): New function.
12167 (eval_agent_expr): Handle gdb_agent_op_printf.
12168
12169 2011-02-21 Hui Zhu <teawater@gmail.com>
12170
12171 * tracepoint.c (tp_printf): New function.
12172 (eval_agent_expr): Handle gdb_agent_op_printf.
12173
12174 2011-02-18 Tom Tromey <tromey@redhat.com>
12175
12176 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
12177 (tracepoint.o): Likewise.
12178 * tracepoint.c (enum gdb_agent_op): Use ax.def.
12179 (gdb_agent_op_names): Likewise.
12180
12181 2011-02-18 Tom Tromey <tromey@redhat.com>
12182
12183 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
12184 gdb_agent_op_rot>: New constants.
12185 (gdb_agent_op_names): Add pick and roll.
12186 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
12187 cases.
12188
12189 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
12190
12191 * aclocal.m4: Regenerated with aclocal-1.11.1.
12192
12193 2011-02-14 Pedro Alves <pedro@codesourcery.com>
12194
12195 * server.c (handle_qxfer_traceframe_info): New.
12196 (qxfer_packets): Register "traceframe-info".
12197 (handle_query): Report support for qXfer:traceframe-info:read+.
12198 * tracepoint.c (match_blocktype): New.
12199 (traceframe_find_block_type): Rename to ...
12200 (traceframe_walk_blocks): ... this. Add callback filter argument,
12201 and use it.
12202 (traceframe_find_block_type): New, reimplemented on top of
12203 traceframe_walk_blocks.
12204 (build_traceframe_info_xml): New.
12205 (traceframe_read_info): New.
12206 * server.h (traceframe_read_info): Declare.
12207
12208 2011-02-11 Yao Qi <yao@codesourcery.com>
12209
12210 * configure.ac: Call AC_PROG_RANLIB.
12211 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
12212 * configure: Regenerate.
12213
12214 2011-02-07 Pedro Alves <pedro@codesourcery.com>
12215
12216 * server.c (gdb_read_memory): Change return semantics to allow
12217 partial transfers.
12218 (handle_search_memory_1): Adjust.
12219 (process_serial_event) <'m' packet>: Handle partial transfers.
12220 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
12221
12222 2011-01-28 Pedro Alves <pedro@codesourcery.com>
12223
12224 * regcache.c (init_register_cache): Initialize
12225 regcache->register_status.
12226 (free_register_cache): Release regcache->register_status.
12227 (regcache_cpy): Copy register_status.
12228 (registers_to_string): Print 'x's for unavailable registers.
12229 (supply_register): Mark the register's status valid or
12230 unavailable, depending on whether a buffer was passed in or not.
12231 (supply_register_zeroed): New.
12232 (supply_regblock): Mark the registers' status valid or
12233 unavailable, depending on whether a buffer was passed in or not.
12234 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
12235 (struct regcache): New `register_status' field.
12236 (supply_register_zeroed): Declare.
12237 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
12238 supply_register_zeroed, rather than passing a NULL buffer to
12239 supply_register.
12240 * tracepoint.c (fetch_traceframe_registers): Update comment.
12241
12242 2011-01-28 Pedro Alves <pedro@codesourcery.com>
12243
12244 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
12245 buffer explicit.
12246
12247 2011-01-25 Pedro Alves <pedro@codesourcery.com>
12248
12249 * server.h (decode_xfer_write): Change prototype.
12250 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
12251 and don't extract the annex here.
12252 * server.c (decode_xfer_read): Remove `annex' parameter,
12253 and don't extract the annex here.
12254 (decode_xfer): New.
12255 (struct qxfer): New.
12256 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
12257 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
12258 (handle_qxfer_statictrace): New functions, abstracted out from
12259 handle_query, and made to use the struct qxfer interface.
12260 (handle_threads_qxfer_proper): Rename to ...
12261 (handle_qxfer_threads_proper): ... this.
12262 (handle_threads_qxfer): Rename to ...
12263 (handle_qxfer_threads): ... this. Adjust.
12264 (qxfer_packets): New array.
12265 (handle_qxfer): New function.
12266 (handle_query): Use handle_qxfer.
12267
12268 2011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
12269
12270 * gdbreplay.c: Shorten lines of >= 80 columns.
12271 * linux-low.c: Ditto.
12272 * linux-ppc-low.c: Ditto.
12273 * linux-s390-low.c: Ditto.
12274 * linux-sparc-low.c: Ditto.
12275 * linux-x86-low.c: Ditto.
12276 * linux-xtensa-low.c: Ditto.
12277 * mem-break.c: Ditto.
12278 * nto-low.c: Ditto.
12279 * regcache.h: Ditto.
12280 * remote-utils.c: Ditto.
12281 * server.c: Ditto.
12282 * server.h: Ditto.
12283 * thread-db.c: Ditto.
12284 * tracepoint.c: Ditto.
12285 * utils.c: Ditto.
12286 * win32-low.h: Ditto.
12287
12288 2011-01-05 Joel Brobecker <brobecker@adacore.com>
12289
12290 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
12291 update.
12292
12293 2011-01-01 Joel Brobecker <brobecker@adacore.com>
12294
12295 * server.c (gdbserver_version): Update copyright year in version
12296 output.
12297 * gdbreplay.c (gdbreplay_version): Ditto.
12298
12299 2010-12-29 Jie Zhang <jie.zhang@analog.com>
12300
12301 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
12302 * linux-bfin-low.c: New file.
12303 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
12304 PT_DATA_ADDR for BFIN targets.
12305 * Makefile.in (SFILES): Add linux-bfin-low.c.
12306 (clean): Remove reg-bfin.c.
12307 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
12308 * README: Mention supported Blackfin targets.
12309
12310 2010-12-23 Mike Frysinger <vapier@gentoo.org>
12311
12312 * .gitignore: New file.
12313
12314 2010-11-16 Mike Frysinger <vapier@gentoo.org>
12315
12316 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
12317
12318 2010-10-22 Jie Zhang <jie@codesourcery.com>
12319
12320 * Makefile.in: Add FLAGS_TO_PASS variable.
12321 (install): Remove dependency of install-only and recursively
12322 invoke make for install-only.
12323
12324 2010-10-04 Doug Evans <dje@google.com>
12325
12326 * Makefile.in (uninstall): Use $(DESTDIR).
12327
12328 2010-09-24 Pedro Alves <pedro@codesourcery.com>
12329
12330 PR gdb/11842
12331
12332 * linux-x86-low.c (compat_siginfo_from_siginfo)
12333 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
12334 si_code is < 0. Check for si_code == SI_TIMER before checking for
12335 si_code < 0.
12336
12337 2010-09-13 Joel Brobecker <brobecker@adacore.com>
12338
12339 * lynx-i386-low.c: New file.
12340 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
12341
12342 2010-09-13 Joel Brobecker <brobecker@adacore.com>
12343
12344 * lynx-low.c (ptrace_request_to_str): Remove handling for
12345 request values that have been removed in LynxOS 5.x.
12346
12347 2010-09-13 Joel Brobecker <brobecker@adacore.com>
12348
12349 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
12350 <ptrace.h>
12351
12352 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
12353
12354 * configure.ac: Add --enable-inprocess-agent option.
12355 * configure: Rebuilt.
12356
12357 2010-09-06 Yao Qi <yao@codesourcery.com>
12358
12359 * linux-low.c (linux_kill): Remove unused variable.
12360 (linux_stabilize_threads): Likewise.
12361 * server.c (start_inferior): Likewise.
12362 (queue_stop_reply_callback): Likewise.
12363 * tracepoint.c (do_action_at_tracepoint): Likewise.
12364
12365 2010-09-06 Yao Qi <yao@codesourcery.com>
12366
12367 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
12368 on return.
12369
12370 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
12371
12372 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
12373
12374 2010-09-06 Pedro Alves <pedro@codesourcery.com>
12375
12376 * Makefile.in (install-only): Replace $IPA_DEPFILES with
12377 "$(IPA_DEPFILES)".
12378
12379 2010-09-01 Joel Brobecker <brobecker@adacore.com>
12380
12381 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
12382 gdbserver/lynx-ppc-low.c: New files.
12383 * Makefile.in (lynx_low_h): New variable.
12384 (lynx-low.o, lynx-ppc-low.o): New rules.
12385 * configure.ac: On LynxOS, link with -lnetinet.
12386 * configure.srv: Add handling of powerpc-*-lynxos* targets.
12387 * configure: regenerate.
12388
12389 2010-09-01 Joel Brobecker <brobecker@adacore.com>
12390
12391 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
12392 * configure.ac: Add check for vasprintf and vsnprintf.
12393 * configure, config.in: Regenerate.
12394 * server.h (vasprintf, vsnprintf): Add conditional declarations.
12395
12396 2010-09-01 Joel Brobecker <brobecker@adacore.com>
12397
12398 * gdbreplay.c: Move include of alloca.h up, next to include of
12399 malloc.h.
12400 * server.h: Add include of malloc.h.
12401 * mem-break.c: Remove include of malloc.h.
12402 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
12403
12404 2010-09-01 Joel Brobecker <brobecker@adacore.com>
12405
12406 * Makefile.in (memmem.o): Build with -Wno-error.
12407
12408 2010-09-01 Joel Brobecker <brobecker@adacore.com>
12409
12410 * utils.c (xsnprintf): Make non-static.
12411 * server.h: Add xsnprintf declaration.
12412 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
12413 replace calls to snprintf by calls to xsnprintf throughout.
12414
12415 2010-09-01 Joel Brobecker <brobecker@adacore.com>
12416
12417 * configure.ac: Add configure check for alloca.
12418 * configure, config.in: Regenerate.
12419 * server.h: Include alloca.h if it exists.
12420 * gdbreplay.c: Include alloca.h if it exists.
12421
12422 2010-08-28 Pedro Alves <pedro@codesourcery.com>
12423
12424 * linux-low.c (__SIGRTMIN): Define if not already defined.
12425 (linux_create_inferior): Check for __ANDROID__ rather than
12426 __SIGRTMIN.
12427 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
12428 are already deferred.
12429 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
12430 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
12431 stopped and already has a pending signal to report.
12432 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
12433 a pending signal to report or is moving out of a jump pad.
12434 (linux_init_signals): Check for __ANDROID__ rather than
12435 __SIGRTMIN.
12436
12437 2010-08-28 Pedro Alves <pedro@codesourcery.com>
12438
12439 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
12440 debug_threads check. Avoid a linear search when not doing debug
12441 output.
12442
12443 2010-08-27 Pedro Alves <pedro@codesourcery.com>
12444
12445 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
12446 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
12447 (struct file_handler) <fd>: Change type to gdb_fildes_t.
12448 (process_event): Change local fd's type to gdb_fildes_t.
12449 (create_file_handler): Adjust prototype.
12450 (delete_file_handler): Adjust prototype.
12451 (handle_file_event): Adjust prototype. Use pfildes.
12452 (create_file_event): Adjsut prototype.
12453 * remote-utils.c (remote_desc, listen_desc): Change type to
12454 gdb_fildes_t.
12455 * server.h: New gdb_fildes_t typedef.
12456 [USE_WIN32API]: Include winsock2.h.
12457 (delete_file_handler, add_file_handler): Adjust prototypes.
12458 (pfildes): Declare.
12459 * utils.c (pfildes): New.
12460
12461 2010-08-27 Pedro Alves <pedro@codesourcery.com>
12462
12463 * configure.ac (build_warnings): Add -Wno-char-subscripts.
12464 * configure: Regenerate.
12465
12466 2010-08-27 Pedro Alves <pedro@codesourcery.com>
12467
12468 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
12469 (linux_done_accessing_memory): ... this.
12470 (linux_target_ops): Adjust.
12471 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
12472 * nto-low.c (nto_target_ops): Adjust comment.
12473 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
12474 * spu-low.c (spu_target_ops): Adjust comment.
12475 * target.h (target_ops): Rename unprepare_to_access_memory field
12476 to done_accessing_memory.
12477 (unprepare_to_access_memory): Rename to ...
12478 (done_accessing_memory): ... this.
12479
12480 2010-08-26 Pedro Alves <pedro@codesourcery.com>
12481
12482 * linux-low.c (linux_prepare_to_access_memory): New.
12483 (linux_unprepare_to_access_memory): New.
12484 (linux_target_ops): Install them.
12485 * server.c (read_memory): Rename to ...
12486 (gdb_read_memory): ... this. Use
12487 prepare_to_access_memory/prepare_to_access_memory.
12488 (write_memory): Rename to ...
12489 (gdb_write_memory): ... this. Use
12490 prepare_to_access_memory/prepare_to_access_memory.
12491 (handle_search_memory_1): Adjust.
12492 (process_serial_event): Adjust.
12493 * target.h (struct target_ops): New fields
12494 prepare_to_access_memory and unprepare_to_access_memory.
12495 (prepare_to_access_memory, unprepare_to_access_memory): New.
12496 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
12497 prepare_to_access_memory/prepare_to_access_memory.
12498 * nto-low.c (nto_target_ops): Adjust.
12499 * spu-low.c (spu_target_ops): Adjust.
12500 * win32-low.c (win32_target_ops): Adjust.
12501
12502 2010-08-26 Pedro Alves <pedro@codesourcery.com>
12503
12504 * Makefile.in (WARN_CFLAGS): Get it from configure.
12505 (WERROR_CFLAGS): New.
12506 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
12507 * configure.ac: Introduce --enable-werror, which adds -Werror to
12508 the compiler command line. Enabled by default. Disable with
12509 --disable-werror. Add -Wdeclaration-after-statement
12510 Wpointer-arith and -Wformat-nonliteral to warning flags.
12511 * configure: Regenerate.
12512
12513 2010-08-26 Pedro Alves <pedro@codesourcery.com>
12514
12515 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
12516
12517 2010-08-26 Pedro Alves <pedro@codesourcery.com>
12518
12519 * gdbreplay.c (remote_error): New.
12520 (gdbchar): New.
12521 (expect): Use gdbchar. Check for error reading from GDB.
12522 Clarify sync error output.
12523 (play): Check for errors writing to GDB.
12524 * linux-low.c (sigchld_handler): Really ignore `write' errors.
12525 * remote-utils.c (getpkt): Check for errors writing to the remote
12526 descriptor.
12527
12528 2010-08-25 Pedro Alves <pedro@codesourcery.com>
12529
12530 * linux-low.c (linux_wait_1): Move non-debugging code out of
12531 `debug_threads' control.
12532
12533 2010-08-25 Pedro Alves <pedro@codesourcery.com>
12534
12535 * linux-low.c (linux_wait_1): Don't set last_status here.
12536 * server.c (push_event, queue_stop_reply_callback): Assert we're
12537 not pushing a TARGET_WAITKIND_IGNORE event.
12538 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
12539 (myresume, handle_target_event): Set the thread's last_resume_kind
12540 and last_status from the target returned status.
12541
12542 2010-08-25 Pedro Alves <pedro@codesourcery.com>
12543
12544 PR threads/10729
12545
12546 * linux-x86-low.c (update_debug_registers_callback): New.
12547 (i386_dr_low_set_addr): Use it.
12548 (i386_dr_low_get_addr): New.
12549 (i386_dr_low_set_control): Use update_debug_registers_callback.
12550 (i386_dr_low_get_control): New.
12551 (i386_dr_low_get_status): Adjust.
12552 * linux-low.c (linux_stop_lwp): New.
12553 * linux-low.h (linux_stop_lwp): Declare.
12554
12555 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
12556 argument instead of a i386_debug_reg_state.
12557 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
12558 a i386_debug_reg_state.
12559 (i386_insert_aligned_watchpoint): Adjust.
12560 (i386_remove_aligned_watchpoint): Adjust.
12561 (i386_low_stopped_data_address): Read the debug registers from the
12562 inferior instead of from the mirrors.
12563 * i386-low.h (struct i386_debug_reg_state): Extend comment.
12564 (i386_dr_low_get_addr): Declare.
12565 (i386_dr_low_get_control): Declare.
12566 (i386_dr_low_get_status): Change prototype.
12567
12568 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
12569 (i386_dr_low_get_addr): New.
12570 (i386_dr_low_get_control): New.
12571 (i386_dr_low_get_status): Adjust prototype. Return
12572 dr_status_mirror.
12573 (i386_initial_stuff): Clear dr_status_mirror and
12574 dr_control_mirror.
12575 (i386_get_thread_context): Adjust.
12576 (i386_set_thread_context): Adjust.
12577 (i386_thread_added): Adjust.
12578
12579 2010-08-24 Pedro Alves <pedro@codesourcery.com>
12580
12581 * linux-low.h (linux_thread_area): Delete declaration.
12582
12583 2010-08-11 Thomas Schwinge <thomas@codesourcery.com>
12584
12585 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
12586 after its termination.
12587
12588 2010-08-09 Pedro Alves <pedro@codesourcery.com>
12589
12590 * linux-low.c (gdb_wants_lwp_stopped): Delete.
12591 (gdb_wants_all_stopped): Delete.
12592 (linux_wait_1): Don't call them.
12593 * server.c (handle_v_cont): Tag all threads as want-stopped.
12594 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
12595 stopped as "client-wants-stopped".
12596
12597 2010-07-31 Pedro Alves <pedro@codesourcery.com>
12598
12599 * Makefile.in (signals_h): New.
12600 (server_h): Depend on it.
12601 (server.o): Don't depend on $(signals_def).
12602 (signals.o): Depend on $(signals_def).
12603
12604 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
12605
12606 * Makefile.in (signals_def): New.
12607 (server_h): Append include/gdb/signals.h and signals_def.
12608 (server.o): Append signals_def.
12609
12610 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
12611
12612 * server.c (handle_target_event): Use target_signal_to_host for
12613 resume_info.sig initialization.
12614 * target.h (struct thread_resume) <sig>: New comment.
12615
12616 2010-07-20 Ozkan Sezer <sezeroz@gmail.com>
12617
12618 * server.c (handle_query): strcpy() the returned string from paddress()
12619 instead of sprintf().
12620 * utils.c (paddress): Return phex_nz().
12621
12622 2010-07-07 Joel Brobecker <brobecker@adacore.com>
12623
12624 * server.c (handle_v_cont): Call mourn_inferior if process
12625 just exited.
12626 (myresume): Likewise.
12627
12628 2010-07-01 Pedro Alves <pedro@codesourcery.com>
12629
12630 Static tracepoints, and integration with UST.
12631
12632 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
12633 * mem-break.c (uninsert_all_breakpoints)
12634 (reinsert_all_breakpoints): New.
12635 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
12636 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
12637 (gdb_agent_ust_loaded, helper_thread_id)
12638 (gdb_agent_helper_thread_id): New macros.
12639 (struct ipa_sym_addresses): Add addr_ust_loaded,
12640 addr_helper_thread_id, addr_cmd_buf.
12641 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
12642 (in_process_agent_loaded_ust): New.
12643 (write_e_ust_not_loaded): New.
12644 (maybe_write_ipa_ust_not_loaded): New.
12645 (struct collect_static_trace_data_action): New.
12646 (enum tracepoint_type) <static_tracepoint>: New.
12647 (struct tracepoint) <handle>: Mention static tracepoints.
12648 (struct static_tracepoint_ctx): New.
12649 (CMD_BUF_SIZE): New.
12650 (add_tracepoint_action): Handle static tracepoint actions.
12651 (unprobe_marker_at): New.
12652 (clear_installed_tracepoints): Handle static tracepoints.
12653 (cmd_qtdp): Handle static tracepoints.
12654 (probe_marker_at): New.
12655 (cmd_qtstart): Handle static tracepoints.
12656 (response_tracepoint): Handle static tracepoints.
12657 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
12658 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
12659 (get_context_regcache): Handle static tracepoints.
12660 (do_action_at_tracepoint): Handle static tracepoint actions.
12661 (traceframe_find_block_type): Handle static trace data blocks.
12662 (traceframe_read_sdata): New.
12663 (download_tracepoints): Download static tracepoint actions.
12664 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
12665 (GDB_PROBE_NAME): New.
12666 (ust_ops): New.
12667 (GET_UST_SYM): New.
12668 (USTF): New.
12669 (dlsym_ust): New.
12670 (ust_marker_to_static_tracepoint): New.
12671 (gdb_probe): New.
12672 (collect_ust_data_at_tracepoint): New.
12673 (gdb_ust_probe): New.
12674 (UNIX_PATH_MAX, SOCK_DIR): New.
12675 (gdb_ust_connect_sync_socket): New.
12676 (resume_thread, stop_thread): New.
12677 (run_inferior_command): New.
12678 (init_named_socket): New.
12679 (gdb_ust_socket_init): New.
12680 (cstr_to_hexstr): New.
12681 (next_st): New.
12682 (first_marker, next_marker): New.
12683 (response_ust_marker): New.
12684 (cmd_qtfstm, cmd_qtsstm): New.
12685 (unprobe_marker_at, probe_marker_at): New.
12686 (cmd_qtstmat, gdb_ust_thread): New.
12687 (gdb_ust_init): New.
12688 (initialize_tracepoint_ftlib): Call gdb_ust_init.
12689 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
12690 (ST_REGENTRY): New.
12691 (x86_64_st_collect_regmap): New.
12692 (X86_64_NUM_ST_COLLECT_GREGS): New.
12693 (AMD64_RIP_REGNUM): New.
12694 (supply_static_tracepoint_registers): New.
12695 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
12696 (ST_REGENTRY): New.
12697 (i386_st_collect_regmap): New.
12698 (i386_NUM_ST_COLLECT_GREGS): New.
12699 (supply_static_tracepoint_registers): New.
12700 * server.c (handle_query): Handle qXfer:statictrace:read.
12701 <qSupported>: Report support for StaticTracepoints, and
12702 qXfer:statictrace:read features.
12703 * server.h (traceframe_read_sdata)
12704 (supply_static_tracepoint_registers): Declare.
12705 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
12706 (unpack_varlen_hex): Include in IPA build.
12707 * Makefile.in (ustlibs, ustinc): New.
12708 (IPA_OBJS): Add remote-utils-ipa.o.
12709 ($(IPA_LIB)): Link -ldl and -lpthread.
12710 (UST_CFLAGS): New.
12711 (IPAGENT_CFLAGS): Add UST_CFLAGS.
12712 * config.in, configure: Regenerate.
12713
12714 2010-06-20 Ian Lance Taylor <iant@google.com>
12715 Pedro Alves <pedro@codesourcery.com>
12716
12717 * linux-x86-low.c (always_true): Delete.
12718 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
12719 trying to fool the compiler with always_true.
12720
12721 2010-06-20 Pedro Alves <pedro@codesourcery.com>
12722
12723 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
12724 conditions in gdbserver.
12725
12726 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
12727
12728 * spu-low.c (spu_read_memory): Wrap around local store limit.
12729 (spu_write_memory): Likewise.
12730
12731 2010-06-15 Pedro Alves <pedro@codesourcery.com>
12732
12733 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
12734 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
12735 LONGEST uses.
12736 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
12737 uses.
12738 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
12739 uses with LONGEST uses.
12740
12741 2010-06-14 Stan Shebs <stan@codesourcery.com>
12742 Pedro Alves <pedro@codesourcery.com>
12743
12744 Bytecode compiler.
12745
12746 * linux-x86-low.c: Include limits.h.
12747 (add_insns): New.
12748 (always_true): New.
12749 (EMIT_ASM): New.
12750 (EMIT_ASM32): New.
12751 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
12752 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
12753 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
12754 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
12755 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
12756 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
12757 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
12758 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
12759 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
12760 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
12761 (amd64_emit_void_call_2): New.
12762 (amd64_emit_ops): New.
12763 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
12764 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
12765 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
12766 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
12767 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
12768 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
12769 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
12770 (i386_emit_call, i386_emit_reg, i386_emit_pop)
12771 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
12772 (i386_emit_stack_adjust, i386_emit_int_call_1)
12773 (i386_emit_void_call_2): New.
12774 (i386_emit_ops): New.
12775 (x86_emit_ops): New.
12776 (the_low_target): Install x86_emit_ops.
12777 * server.h (struct emit_ops): New.
12778 (get_raw_reg_func_addr): Declare.
12779 (current_insn_ptr, emit_error): Declare.
12780 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
12781 (set_trace_state_variable_value): New defines.
12782 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
12783 addr_get_trace_state_variable_value and
12784 addr_set_trace_state_variable_value.
12785 (symbol_list): New fields for get_raw_reg,
12786 get_trace_state_variable_value and set_trace_state_variable_value.
12787 (condfn): New typedef.
12788 (struct tracepoint): New field `compiled_cond'.
12789 (do_action_at_tracepoint): Clear compiled_cond.
12790 (get_trace_state_variable_value, set_trace_state_variable_value):
12791 Export in the IPA.
12792 (condition_true_at_tracepoint): If there's a compiled condition,
12793 run that.
12794 (current_insn_ptr, emit_error): New globals.
12795 (struct bytecode_address): New.
12796 (get_raw_reg_func_addr): New.
12797 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
12798 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
12799 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
12800 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
12801 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
12802 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
12803 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
12804 (compile_tracepoint_condition, compile_bytecodes): New.
12805 * target.h (emit_ops): Forward declare.
12806 (struct target_ops): New field emit_ops.
12807 (target_emit_ops): New.
12808 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
12809 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
12810 * linux-low.c (linux_emit_ops): New.
12811 (linux_target_ops): Install it.
12812 * linux-low.h (struct linux_target_ops): New field emit_ops.
12813
12814 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
12815
12816 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
12817 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
12818
12819 2010-06-01 Pedro Alves <pedro@codesourcery.com>
12820 Stan Shebs <stan@codesourcery.com>
12821
12822 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
12823 (all): Depend on $(extra_libraries).
12824 (install-only): Install the IPA.
12825 (IPA_OBJS, IPA_LIB): New.
12826 (clean): Remove the IPA lib.
12827 (IPAGENT_CFLAGS): New.
12828 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
12829 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
12830 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
12831 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
12832 * configure.ac: Check for atomic builtins support in the compiler.
12833 (IPA_DEPFILES, extra_libraries): Define.
12834 * configure.srv (ipa_obj): Add description.
12835 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
12836 (i[34567]86-*-linux*): Set ipa_obj.
12837 (x86_64-*-linux*): Set ipa_obj.
12838 * linux-low.c (stabilizing_threads): New.
12839 (supports_fast_tracepoints): New.
12840 (linux_detach): Stabilize threads before detaching.
12841 (handle_tracepoints): Handle internal tracing breakpoints. Assert
12842 the lwp is either not stabilizing, or is moving out of a jump pad.
12843 (linux_fast_tracepoint_collecting): New.
12844 (maybe_move_out_of_jump_pad): New.
12845 (enqueue_one_deferred_signal): New.
12846 (dequeue_one_deferred_signal): New.
12847 (linux_wait_for_event_1): If moving out of a jump pad, defer
12848 pending signals to later.
12849 (linux_stabilize_threads): New.
12850 (linux_wait_1): Check if threads need moving out of jump pads, and
12851 do it if so.
12852 (stuck_in_jump_pad_callback): New.
12853 (move_out_of_jump_pad_callback): New.
12854 (lwp_running): New.
12855 (linux_resume_one_lwp): Handle moving out of jump pads.
12856 (linux_set_resume_request): Dequeue deferred signals.
12857 (need_step_over_p): Also step over fast tracepoint jumps.
12858 (start_step_over): Also uninsert fast tracepoint jumps.
12859 (finish_step_over): Also reinsert fast tracepoint jumps.
12860 (linux_install_fast_tracepoint_jump): New.
12861 (linux_target_ops): Install linux_stabilize_threads and
12862 linux_install_fast_tracepoint_jump_pad.
12863 * linux-low.h (linux_target_ops) <get_thread_area,
12864 install_fast_tracepoint_jump_pad>: New fields.
12865 (struct lwp_info) <collecting_fast_tracepoint,
12866 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
12867 (linux_get_thread_area): Declare.
12868 * linux-x86-low.c (jump_insn): New.
12869 (x86_get_thread_area): New.
12870 (append_insns): New.
12871 (push_opcode): New.
12872 (amd64_install_fast_tracepoint_jump_pad): New.
12873 (i386_install_fast_tracepoint_jump_pad): New.
12874 (x86_install_fast_tracepoint_jump_pad): New.
12875 (the_low_target): Install x86_get_thread_area and
12876 x86_install_fast_tracepoint_jump_pad.
12877 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
12878 (struct fast_tracepoint_jump): New.
12879 (fast_tracepoint_jump_insn): New.
12880 (fast_tracepoint_jump_shadow): New.
12881 (find_fast_tracepoint_jump_at): New.
12882 (fast_tracepoint_jump_here): New.
12883 (delete_fast_tracepoint_jump): New.
12884 (set_fast_tracepoint_jump): New.
12885 (uninsert_fast_tracepoint_jumps_at): New.
12886 (reinsert_fast_tracepoint_jumps_at): New.
12887 (set_breakpoint_at): Use write_inferior_memory.
12888 (uninsert_raw_breakpoint): Use write_inferior_memory.
12889 (check_mem_read): Mask out fast tracepoint jumps.
12890 (check_mem_write): Mask out fast tracepoint jumps.
12891 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
12892 (set_fast_tracepoint_jump): Declare.
12893 (delete_fast_tracepoint_jump)
12894 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
12895 (reinsert_fast_tracepoint_jumps_at): Declare.
12896 * regcache.c: Don't compile many functions when building the
12897 in-process agent library.
12898 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
12899 the register buffer in the heap.
12900 (free_register_cache): If the register buffer isn't owned by the
12901 regcache, don't free it.
12902 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
12903 pre-existing register caches.
12904 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
12905 type.
12906 (convert_ascii_to_int): : Constify `from' parameter type.
12907 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
12908 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
12909 the needed buffer in-place.
12910 (relocate_instruction): New.
12911 * server.c (handle_query) <qSymbols>: If the target supports
12912 tracepoints, give it a chance of looking up symbols. Report
12913 support for fast tracepoints.
12914 (handle_status): Stabilize threads.
12915 (process_serial_event): Adjust.
12916 * server.h (struct fast_tracepoint_jump): Forward declare.
12917 (struct process_info) <fast_tracepoint_jumps>: New field.
12918 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
12919 (decode_X_packet, decode_M_packet): Adjust.
12920 (relocate_instruction): Declare.
12921 (in_process_agent_loaded): Declare.
12922 (tracepoint_look_up_symbols): Declare.
12923 (struct fast_tpoint_collect_status): Declare.
12924 (fast_tracepoint_collecting): Declare.
12925 (force_unlock_trace_buffer): Declare.
12926 (handle_tracepoint_bkpts): Declare.
12927 (initialize_low_tracepoint)
12928 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
12929 * target.h (struct target_ops) <stabilize_threads,
12930 install_fast_tracepoint_jump_pad>: New fields.
12931 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
12932 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
12933 [HAVE_STDINT_H]: Include stdint.h.
12934 (trace_debug_1): Rename to ...
12935 (trace_vdebug): ... this.
12936 (trace_debug): Rename to ...
12937 (trace_debug_1): ... this. Add `level' parameter.
12938 (trace_debug): New.
12939 (ATTR_USED, ATTR_NOINLINE): New.
12940 (IP_AGENT_EXPORT): New.
12941 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
12942 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
12943 (about_to_request_buffer_space, trace_buffer_is_full)
12944 (stopping_tracepoint, expr_eval_result, error_tracepoint)
12945 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
12946 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
12947 (traceframe_write_count, traceframes_created)
12948 (trace_state_variables)
12949 New renaming defines.
12950 (struct ipa_sym_addresses): New.
12951 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
12952 (symbol_list): New.
12953 (ipa_sym_addrs): New.
12954 (all_tracepoint_symbols_looked_up): New.
12955 (in_process_agent_loaded): New.
12956 (write_e_ipa_not_loaded): New.
12957 (maybe_write_ipa_not_loaded): New.
12958 (tracepoint_look_up_symbols): New.
12959 (debug_threads) [IN_PROCESS_AGENT]: New.
12960 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
12961 (UNKNOWN_SIDE_EFFECTS): New.
12962 (stop_tracing): New.
12963 (flush_trace_buffer): New.
12964 (stop_tracing_bkpt): New.
12965 (flush_trace_buffer_bkpt): New.
12966 (read_inferior_integer): New.
12967 (read_inferior_uinteger): New.
12968 (read_inferior_data_pointer): New.
12969 (write_inferior_data_pointer): New.
12970 (write_inferior_integer): New.
12971 (write_inferior_uinteger): New.
12972 (struct collect_static_trace_data_action): Delete.
12973 (enum tracepoint_type): New.
12974 (struct tracepoint) <type>: New field `type'.
12975 <actions_str, step_actions, step_actions_str>: Only include in
12976 GDBserver.
12977 <orig_size, obj_addr_on_target, adjusted_insn_addr>
12978 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
12979 (tracepoints): Use IP_AGENT_EXPORT.
12980 (last_tracepoint): Don't include in the IPA.
12981 (stopping_tracepoint): Use IP_AGENT_EXPORT.
12982 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
12983 (alloced_trace_state_variables): New.
12984 (trace_state_variables): Use IP_AGENT_EXPORT.
12985 (traceframe_t): Delete unused variable.
12986 (circular_trace_buffer): Don't include in the IPA.
12987 (trace_buffer_start): Delete.
12988 (struct trace_buffer_control): New.
12989 (trace_buffer_free): Delete.
12990 (struct ipa_trace_buffer_control): New.
12991 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
12992 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
12993 New.
12994 (trace_buffer_ctrl): New.
12995 (TRACE_BUFFER_CTRL_CURR): New.
12996 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
12997 Reimplement as macros.
12998 (trace_buffer_wrap): Delete.
12999 (traceframe_write_count, traceframe_read_count)
13000 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
13001 (struct tracepoint_hit_ctx) <type>: New field.
13002 (struct fast_tracepoint_ctx): New.
13003 (memory_barrier): New.
13004 (cmpxchg): New.
13005 (record_tracepoint_error): Update atomically in the IPA.
13006 (clear_inferior_trace_buffer): New.
13007 (about_to_request_buffer_space): New.
13008 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
13009 updating the same buffer.
13010 (add_tracepoint): Default the tracepoint's type to trap
13011 tracepoint, and orig_size to -1.
13012 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
13013 internal variables.
13014 (create_trace_state_variable): New parameter `gdb'. Handle it.
13015 (clear_installed_tracepoints): Clear fast tracepoint jumps.
13016 (cmd_qtdp): Handle fast tracepoints.
13017 (cmd_qtdv): Adjust.
13018 (max_jump_pad_size): New.
13019 (gdb_jump_pad_head): New.
13020 (get_jump_space_head): New.
13021 (claim_jump_space): New.
13022 (sort_tracepoints): New.
13023 (MAX_JUMP_SIZE): New.
13024 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
13025 IPA.
13026 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
13027 support. Upload fast traceframes, and delete internal IPA
13028 breakpoints.
13029 (stop_tracing_handler): New.
13030 (flush_trace_buffer_handler): New.
13031 (cmd_qtstop): Upload fast tracepoints.
13032 (response_tracepoint): Handle fast tracepoints.
13033 (tracepoint_finished_step): Upload fast traceframes. Set the
13034 tracepoint hit context's tracepoint type.
13035 (handle_tracepoint_bkpts): New.
13036 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
13037 type. Add comment about fast tracepoints.
13038 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
13039 non-existing action_str field.
13040 (get_context_regcache): Handle fast tracepoints.
13041 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
13042 to the regcache.
13043 (fast_tracepoint_from_jump_pad_address): New.
13044 (fast_tracepoint_from_ipa_tpoint_address): New.
13045 (collecting_t): New.
13046 (force_unlock_trace_buffer): New.
13047 (fast_tracepoint_collecting): New.
13048 (collecting): New.
13049 (gdb_collect): New.
13050 (write_inferior_data_ptr): New.
13051 (target_tp_heap): New.
13052 (target_malloc): New.
13053 (download_agent_expr): New.
13054 (UALIGN): New.
13055 (download_tracepoints): New.
13056 (download_trace_state_variables): New.
13057 (upload_fast_traceframes): New.
13058 (IPA_FIRST_TRACEFRAME): New.
13059 (IPA_NEXT_TRACEFRAME_1): New.
13060 (IPA_NEXT_TRACEFRAME): New.
13061 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
13062 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
13063 (gdb_jump_pad_buffer_end): New.
13064 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
13065 (initialize_tracepoint): Adjust.
13066 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
13067 buffer. Initialize the low module.
13068 * utils.c (PREFIX, TOOLNAME): New.
13069 (malloc_failure): Use PREFIX.
13070 (error): In the IPA, an error causes an exit.
13071 (fatal, warning): Use PREFIX.
13072 (internal_error): Use TOOLNAME.
13073 (NUMCELLS): Increase to 10.
13074 * configure, config.in: Regenerate.
13075
13076 2010-06-01 Pedro Alves <pedro@codesourcery.com>
13077
13078 * server.c (handle_query) <qSupported>: Do two passes over the
13079 qSupported string to avoid nesting strtok.
13080
13081 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
13082
13083 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
13084 (CDEPS): New.
13085 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
13086 -Wl,--dynamic-list.
13087 * configure: Regenerate.
13088 * proc-service.list: New.
13089
13090 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
13091
13092 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
13093 New comment.
13094
13095 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
13096
13097 * gdbreplay.c (remote_open): Check error return from socket() call by
13098 its equality to -1 not by it being negative.
13099 * remote-utils.c (remote_open): Likewise.
13100
13101 2010-05-23 Pedro Alves <pedro@codesourcery.com>
13102
13103 * config.h: Regenerate.
13104
13105 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
13106
13107 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
13108 doesn't provide PTRACE_GET_THREAD_AREA.
13109
13110 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
13111
13112 * linux-m68k-low.c: Include <asm/ptrace.h>
13113 (ps_get_thread_area): Implement.
13114
13115 2010-05-03 Doug Evans <dje@google.com>
13116
13117 * event-loop.c (struct callback_event): New struct.
13118 (callback_list): New global.
13119 (append_callback_event, delete_callback_event): New functions.
13120 (process_callback): New function.
13121 (start_event_loop): Call it.
13122 * remote-utils.c (NOT_SCHEDULED): Define.
13123 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
13124 moved out of readchar.
13125 (readchar): Rewrite. Call reschedule before returning.
13126 (reset_readchar): New function.
13127 (remote_close): Call it.
13128 (process_remaining, reschedule): New functions.
13129 * server.h (callback_handler_func): New typedef.
13130 (append_callback_event, delete_callback_event): Declare.
13131
13132 2010-05-03 Pedro Alves <pedro@codesourcery.com>
13133
13134 * proc-service.c (ps_pglobal_lookup): Use
13135 thread_db_look_up_one_symbol.
13136 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
13137 parameter. Use it instead of all_symbols_looked_up.
13138 * server.h (struct process_info) <all_symbols_looked_up>: Delete
13139 field.
13140 (all_symbols_looked_up): Don't declare.
13141 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
13142 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
13143 field.
13144 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
13145 Set all_symbols_looked_up here.
13146 (thread_db_look_up_one_symbol): New.
13147 (thread_db_get_tls_address): Adjust.
13148 (thread_db_load_search, try_thread_db_load_1): Always allocate the
13149 thread_db object on the heap, and tentatively set it in the
13150 process structure.
13151 (thread_db_init): Don't set all_symbols_looked_up here.
13152 * linux-low.h (thread_db_look_up_one_symbol): Declare.
13153
13154 2010-05-03 Pedro Alves <pedro@codesourcery.com>
13155
13156 * linux-low.c (linux_kill, linux_detach): Adjust.
13157 (status_pending_p_callback): Remove redundant statement. Check
13158 for !TARGET_WAITIKIND_IGNORE, instead of
13159 TARGET_WAITKIND_STOPPED.
13160 (handle_tracepoints): Make sure LWP is locked. Adjust.
13161 (linux_wait_for_event_1): Adjust.
13162 (linux_cancel_breakpoints): New.
13163 (unsuspend_one_lwp): New.
13164 (unsuspend_all_lwps): New.
13165 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
13166 (send_sigstop_callback): Change return type to int, add new
13167 `except' parameter and handle it.
13168 (suspend_and_send_sigstop_callback): New.
13169 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
13170 pass them down. If SUSPEND, also increment the lwp's suspend
13171 count.
13172 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
13173 (need_step_over_p): Don't consider suspended LWPs.
13174 (start_step_over): Adjust.
13175 (proceed_one_lwp): Change return type to int, add new `except'
13176 parameter and handle it.
13177 (unsuspend_and_proceed_one_lwp): New.
13178 (proceed_all_lwps): Use find_inferior instead of
13179 for_each_inferior.
13180 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
13181 also decrement the suspend count of LWPs. Pass `except' down,
13182 instead of hacking its suspend count.
13183 (linux_pause_all): Add `freeze' parameter. Adjust.
13184 (linux_unpause_all): New.
13185 (linux_target_ops): Install linux_unpause_all.
13186 * server.c (handle_status): Adjust.
13187 * target.h (struct target_ops): New fields `unpause_all' and
13188 `cancel_breakpoints'. Add new parameter to `pause_all'.
13189 (pause_all): Add new `freeze' parameter.
13190 (unpause_all): New.
13191 (cancel_breakpoints): New.
13192 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
13193 cancel breakpoints.
13194 (cmd_qtstart): Pause threads.
13195 (stop_tracing): Pause threads, and cancel breakpoints.
13196 * win32-low.c (win32_target_ops): Adjust.
13197
13198 2010-05-03 Pedro Alves <pedro@codesourcery.com>
13199
13200 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
13201 the inferior right away from here...
13202 (linux_wait_1): ... to here, and adjust to check the thread's
13203 last_resume_kind instead of the lwp's step or stop_expected flags.
13204
13205 2010-05-02 Pedro Alves <pedro@codesourcery.com>
13206
13207 * README: Use consistent `GDB' and `GDBserver' spellings.
13208
13209 2010-05-02 Pedro Alves <pedro@codesourcery.com>
13210
13211 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
13212 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
13213 (linux_detach_one_lwp): Assume the lwp is stopped.
13214 (any_thread_of): Delete.
13215 (linux_detach): Stop all lwps here. Don't blindly delete all
13216 breakpoints.
13217 (delete_lwp_callback): New.
13218 (linux_mourn): Delete all lwps of the process that is gone.
13219 (linux_wait_1): Don't delete the last lwp of the process here.
13220 * mem-break.h (mark_breakpoints_out): Declare.
13221 * mem-break.c (mark_breakpoints_out): New.
13222 (free_all_breakpoints): Use it.
13223 * server.c (handle_target_event): If the process is gone, mark
13224 breakpoints out.
13225 * thread-db.c (struct thread_db) <create_bp>: New field.
13226 (thread_db_enable_reporting): Fix prototype. Store a thread event
13227 breakpoint reference in the thread_db struct.
13228 (thread_db_load_search): Clear the thread_db object.
13229 (try_thread_db_load_1): Ditto.
13230 (switch_to_process): New.
13231 (disable_thread_event_reporting): Use it.
13232 (remove_thread_event_breakpoints): New.
13233 (thread_db_detach, thread_db_mourn): Use it.
13234
13235 2010-05-01 Pedro Alves <pedro@codesourcery.com>
13236
13237 * linux-low.c (linux_enable_event_reporting): New.
13238 (linux_wait_for_event_1, handle_extended_wait): Use it.
13239
13240 2010-04-30 Pedro Alves <pedro@codesourcery.com>
13241
13242 * linux-low.c (linux_kill_one_lwp, linux_kill)
13243 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
13244 (send_sigstop): Take an lwp_info as parameter instead. Queue a
13245 SIGSTOP even if the LWP is stopped.
13246 (send_sigstop_callback): New.
13247 (stop_all_lwps): Use send_sigstop_callback instead.
13248 (linux_resume_one_thread): Adjust.
13249 (proceed_one_lwp): Still proceed an LWP that the client has
13250 requested to stop, if we haven't reported it as stopped yet. Make
13251 sure that LWPs the client want stopped, have a pending SIGSTOP.
13252
13253 2010-04-26 Doug Evans <dje@google.com>
13254
13255 * server.c (handle_general_set): Make static.
13256
13257 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
13258 Print received char after testing for error/eof instead of before.
13259 (input_interrupt): Tweak comment.
13260
13261 2010-04-23 Doug Evans <dje@google.com>
13262
13263 * server.c (start_inferior): Print inferior argv if --debug.
13264
13265 2010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
13266
13267 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
13268 * nto-x86-low.c: Include server.h
13269
13270 2010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
13271
13272 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
13273 be consistent with other sources of this directory.
13274 (init_registers_amd64): Correct name of source file of this function
13275 in the comment.
13276
13277 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
13278
13279 * configure.srv (x86_64-*-mingw*): New configuration for Windows
13280 64-bit executables.
13281
13282 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
13283
13284 * win32-i386-low.c: Add 64-bit support.
13285 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
13286 (init_registers_amd64): Declare.
13287 (mappings): Add 64-bit version of array.
13288 (init_windows_x86): New function.
13289 (the_low_target): Change init_arch field to init_windows_x86.
13290
13291 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
13292
13293 * win32-low.c: Adapt to support also 64-bit architecture.
13294 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
13295 (get_image_name): Use SIZE_T type for local variable `done'.
13296 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
13297 (toolhelp_get_dll_name): Idem.
13298 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
13299 Use uintptr_t typecast to avoid warning.
13300 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
13301 (handle_exception): Use phex_nz to avoid warning.
13302 (win32_wait): Remove unused local variable `process'.
13303
13304 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
13305
13306 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
13307 `amd64-avx.o'.
13308
13309 2010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
13310
13311 * configure.ac: Use `ws2_32' library for srv_mingw.
13312 * configure: Regenerate.
13313 * gdbreplay.c: Include winsock2.h instead of winsock.h.
13314 * remote-utils.c: Likewise.
13315
13316 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
13317
13318 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
13319 if __x86_64__ is defined.
13320
13321 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
13322
13323 * configure: Regenerate.
13324
13325 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
13326
13327 * server.c (handle_query): Handle 'qGetTIBAddr' query.
13328 * target.h (target_ops): New get_tib_address field.
13329 * win32-low.h (win32_thread_info): Add thread_local_base field.
13330 * win32-low.c (child_add_thread): Add tlb argument.
13331 Set thread_local_base field to TLB.
13332 (get_child_debug_event): Adapt to child_add_thread change.
13333 (win32_get_tib_address): New function.
13334 (win32_target_ops): Set get_tib_address field to
13335 win32_get_tib_address.
13336 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
13337
13338 2010-04-12 Pedro Alves <pedro@codesourcery.com>
13339
13340 * linux-low.c (linux_mourn): Also remove the process.
13341 * server.c (handle_target_event): Don't remove the process here.
13342 * nto-low.c (nto_mourn): New.
13343 (nto_target_ops): Install it.
13344 * spu-low.c (spu_mourn): New.
13345 (spu_target_ops): Install it.
13346 * win32-low.c (win32_mourn): New.
13347 (win32_target_ops): Install it.
13348
13349 2010-04-12 Pedro Alves <pedro@codesourcery.com>
13350
13351 * server.h (buffer_xml_printf): Remove redundant `;'.
13352
13353 2010-04-12 Pedro Alves <pedro@codesourcery.com>
13354
13355 * regcache.c (set_register_cache): Invalidate regcaches before
13356 changing the register cache layout.
13357 (regcache_invalidate_one): Allow a NULL regcache.
13358 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
13359 regcaches before changing the register cache layout or the target
13360 regsets.
13361
13362 2010-04-12 H.J. Lu <hongjiu.lu@intel.com>
13363
13364 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
13365 variable warning on Linux/x86-64.
13366
13367 2010-04-11 Pedro Alves <pedro@codesourcery.com>
13368
13369 GDBserver disconnected tracing support.
13370
13371 * linux-low.c (linux_remove_process): Delete.
13372 (add_lwp): Don't set last_resume_kind here.
13373 (linux_kill): Use `mourn'.
13374 (linux_detach): Use `thread_db_detach', and `mourn'.
13375 (linux_mourn): New.
13376 (linux_attach_lwp_1): Adjust comment.
13377 (linux_attach): last_resume_kind moved the thread_info; adjust.
13378 (status_pending_p_callback): Adjust.
13379 (linux_wait_for_event_1): Adjust.
13380 (count_events_callback, select_singlestep_lwp_callback)
13381 (select_event_lwp_callback, cancel_breakpoints_callback)
13382 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
13383 (proceed_one_lwp): Adjust.
13384 (linux_async): Add debug output.
13385 (linux_thread_stopped): New.
13386 (linux_pause_all): New.
13387 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
13388 linux_pause_all.
13389 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
13390 (thread_db_free): Delete declaration.
13391 (thread_db_detach, thread_db_mourn): Declare.
13392 * thread-db.c (thread_db_init): Use thread_db_mourn.
13393 (thread_db_free): Delete, split in two.
13394 (disable_thread_event_reporting): New.
13395 (thread_db_detach): New.
13396 (thread_db_mourn): New.
13397
13398 * server.h (struct thread_info) <last_resume_kind>: New field.
13399 <attached>: Add comment.
13400 <gdb_detached>: New field.
13401 (handler_func): Change return type to int.
13402 (handle_serial_event, handle_target_event): Ditto.
13403 (gdb_connected): Declare.
13404 (tracing): Delete.
13405 (disconnected_tracing): Declare.
13406 (stop_tracing): Declare.
13407
13408 * server.c (handle_query) <qSupported>: Report support for
13409 disconnected tracing.
13410 (queue_stop_reply_callback): Account for running threads.
13411 (gdb_wants_thread_stopped): New.
13412 (gdb_wants_all_threads_stopped): New.
13413 (gdb_reattached_process): New.
13414 (handle_status): Clear the `gdb_detached' flag of all processes.
13415 In all-stop, stop all threads.
13416 (main): Be sure to leave tfind mode. Handle disconnected tracing.
13417 (process_serial_event): If the remote connection breaks, or if an
13418 exit was forced with "monitor exit", force an event loop exit.
13419 Handle disconnected tracing on detach.
13420 (handle_serial_event): Adjust.
13421 (handle_target_event): If GDB isn't connected, forward events back
13422 to the inferior, unless the last process exited, in which case,
13423 exit gdbserver. Adjust interface.
13424
13425 * remote-utils.c (remote_open): Don't block in accept. Instead
13426 register an event loop source on the listen socket file
13427 descriptor. Refactor bits into ...
13428 (listen_desc): ... this new global.
13429 (gdb_connected): ... this new function.
13430 (enable_async_notification): ... this new function.
13431 (handle_accept_event): ... this new function.
13432 (remote_close): Clear remote_desc.
13433
13434 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
13435
13436 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
13437 New fields.
13438 (mourn_inferior): Define.
13439 (target_process_qsupported): Avoid the dangling else problem.
13440 (thread_stopped): Define.
13441 (pause_all): Define.
13442 (target_waitstatus_to_string): Declare.
13443 * target.c (target_waitstatus_to_string): New.
13444
13445 * tracepoint.c (tracing): Make extern.
13446 (disconnected_tracing): New.
13447 (stop_tracing): Make extern. Handle tracing stops due to GDB
13448 disconnecting.
13449 (cmd_qtdisconnected): New.
13450 (cmd_qtstatus): Report disconnected tracing status in trace reply.
13451 (handle_tracepoint_general_set): Handle QTDisconnected.
13452
13453 * event-loop.c (event_handler_func): Change return type to int.
13454 (process_event): Bail out if the event handler wants the event
13455 loop to stop.
13456 (handle_file_event): Ditto.
13457 (start_event_loop): Bail out if the event handler wants the event
13458 loop to stop.
13459
13460 * nto-low.c (nto_target_ops): Adjust.
13461 * spu-low.c (spu_wait): Don't remove the process here.
13462 (spu_target_ops): Adjust.
13463 * win32-low.c (win32_wait): Don't remove the process here.
13464 (win32_target_ops): Adjust.
13465
13466 2010-04-11 Pedro Alves <pedro@codesourcery.com>
13467
13468 * regcache.c (realloc_register_cache): Invalidate inferior's
13469 regcache before recreating it.
13470
13471 2010-04-09 Pedro Alves <pedro@codesourcery.com>
13472
13473 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
13474
13475 2010-04-09 Stan Shebs <stan@codesourcery.com>
13476 Pedro Alves <pedro@codesourcery.com>
13477
13478 * server.h (LONGEST): New.
13479 (struct thread_info) <while_stepping>: New field.
13480 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
13481 Declare.
13482 (initialize_tracepoint, handle_tracepoint_general_set)
13483 (handle_tracepoint_query, tracepoint_finished_step)
13484 (tracepoint_was_hit, release_while_stepping_state_list):
13485 (current_traceframe): Declare.
13486 * server.c (handle_general_set): Handle tracepoint packets.
13487 (read_memory): New.
13488 (write_memory): New.
13489 (handle_search_memory_1): Use read_memory.
13490 (handle_query): Report support for conditional tracepoints, trace
13491 state variables, and tracepoint sources. Handle tracepoint
13492 queries.
13493 (main): Initialize the tracepoints module.
13494 (process_serial_event): Handle traceframe reads/writes.
13495
13496 * linux-low.c (handle_tracepoints): New.
13497 (linux_wait_1): Call it.
13498 (linux_resume_one_lwp): Handle while-stepping.
13499 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
13500 (linux_target_ops): Install them.
13501 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
13502 New field.
13503 * linux-x86-low.c (x86_supports_tracepoints): New.
13504 (the_low_target). Install it.
13505
13506 * mem-break.h (delete_breakpoint): Declare.
13507 * mem-break.c (delete_breakpoint): Make external.
13508
13509 * target.h (struct target_ops): Add `supports_tracepoints',
13510 `read_pc', and `write_pc' fields.
13511 (target_supports_tracepoints): Define.
13512 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
13513 (phex_nz): New.
13514
13515 * regcache.h (struct regcache) <registers_owned>: New field.
13516 (init_register_cache, regcache_cpy): Declare.
13517 (regcache_read_pc, regcache_write_pc): Declare.
13518 (register_cache_size): Declare.
13519 (supply_regblock): Declare.
13520 * regcache.c (init_register_cache): New.
13521 (new_register_cache): Use it.
13522 (regcache_cpy): New.
13523 (register_cache_size): New.
13524 (supply_regblock): New.
13525 (regcache_read_pc, regcache_write_pc): New.
13526
13527 * tracepoint.c: New.
13528
13529 * Makefile.in (OBS): Add tracepoint.o.
13530 (tracepoint.o): New rule.
13531
13532 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
13533
13534 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
13535 (i386-mmx.o): New.
13536 (i386-mmx.c): Likewise.
13537 (i386-mmx-linux.o): Likewise.
13538 (i386-mmx-linux.c): Likewise.
13539
13540 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
13541 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
13542 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
13543 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
13544
13545 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
13546 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
13547 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
13548
13549 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
13550
13551 * Makefile.in (clean): Updated.
13552 (i386-avx.o): New.
13553 (i386-avx.c): Likewise.
13554 (i386-avx-linux.o): Likewise.
13555 (i386-avx-linux.c): Likewise.
13556 (amd64-avx.o): Likewise.
13557 (amd64-avx.c): Likewise.
13558 (amd64-avx-linux.o): Likewise.
13559 (amd64-avx-linux.c): Likewise.
13560
13561 * configure.srv (srv_i386_regobj): Add i386-avx.o.
13562 (srv_i386_linux_regobj): Add i386-avx-linux.o.
13563 (srv_amd64_regobj): Add amd64-avx.o.
13564 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
13565 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
13566 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
13567 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
13568 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
13569 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
13570 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
13571
13572 * i387-fp.c: Include "i386-xstate.h".
13573 (i387_xsave): New.
13574 (i387_cache_to_xsave): Likewise.
13575 (i387_xsave_to_cache): Likewise.
13576 (x86_xcr0): Likewise.
13577
13578 * i387-fp.h (i387_cache_to_xsave): Likewise.
13579 (i387_xsave_to_cache): Likewise.
13580 (x86_xcr0): Likewise.
13581
13582 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
13583 * linux-crisv32-low.c (target_regsets): Likewise.
13584 * linux-m68k-low.c (target_regsets): Likewise.
13585 * linux-mips-low.c (target_regsets): Likewise.
13586 * linux-ppc-low.c (target_regsets): Likewise.
13587 * linux-s390-low.c (target_regsets): Likewise.
13588 * linux-sh-low.c (target_regsets): Likewise.
13589 * linux-sparc-low.c (target_regsets): Likewise.
13590 * linux-xtensa-low.c (target_regsets): Likewise.
13591
13592 * linux-low.c: Include <sys/uio.h>.
13593 (regsets_fetch_inferior_registers): Support nt_type.
13594 (regsets_store_inferior_registers): Likewise.
13595 (linux_process_qsupported): New.
13596 (linux_target_ops): Add linux_process_qsupported.
13597
13598 * linux-low.h (regset_info): Add nt_type.
13599 (linux_target_ops): Add process_qsupported.
13600
13601 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
13602 and <sys/uio.h>.
13603 (init_registers_i386_avx_linux): New.
13604 (init_registers_amd64_avx_linux): Likewise.
13605 (xmltarget_i386_linux_no_xml): Likewise.
13606 (xmltarget_amd64_linux_no_xml): Likewise.
13607 (PTRACE_GETREGSET): Likewise.
13608 (PTRACE_SETREGSET): Likewise.
13609 (x86_fill_xstateregset): Likewise.
13610 (x86_store_xstateregset): Likewise.
13611 (use_xml): Likewise.
13612 (x86_linux_update_xmltarget): Likewise.
13613 (x86_linux_process_qsupported): Likewise.
13614 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
13615 (x86_arch_setup): Don't call init_registers_amd64_linux nor
13616 init_registers_i386_linux here. Call
13617 x86_linux_update_xmltarget.
13618 (the_low_target): Add x86_linux_process_qsupported.
13619
13620 * server.c (handle_query): Call target_process_qsupported.
13621
13622 * target.h (target_ops): Add process_qsupported.
13623 (target_process_qsupported): New.
13624
13625 2010-04-03 Pedro Alves <pedro@codesourcery.com>
13626
13627 * inferiors.c (add_thread): Set last_status kind to
13628 TARGET_WAITKIND_IGNORE.
13629 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
13630 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
13631 (linux_wait_1): Move `thread' local definition to block that uses
13632 it. Don't NULL initialize `event_child'.
13633 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
13634 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
13635 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
13636
13637 2010-04-01 Pedro Alves <pedro@codesourcery.com>
13638
13639 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
13640 an extended waitstatus, or by a watchpoint.
13641 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
13642 thread was stepping or has been stopped by a watchpoint.
13643
13644 2010-04-01 Pedro Alves <pedro@codesourcery.com>
13645
13646 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
13647 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
13648 of another, then delete the previous, and validate all
13649 breakpoints.
13650 (validate_inserted_breakpoint): New.
13651 (delete_disabled_breakpoints): New.
13652 (validate_breakpoints): New.
13653 (check_mem_read): Validate breakpoints before trusting their
13654 shadow. Delete disabled breakpoints.
13655 (check_mem_write): Validate breakpoints before trusting they
13656 should be inserted. Delete disabled breakpoints.
13657 * mem-break.h (validate_breakpoints):
13658 * server.c (handle_query): Validate breakpoints when we see a
13659 qSymbol query.
13660
13661 2010-04-01 Pedro Alves <pedro@codesourcery.com>
13662
13663 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
13664 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
13665 if we could tell there's a GDB breakpoint at stop_pc.
13666 (need_step_over_p): Don't do a step over if we find a GDB
13667 breakpoint at the resume PC.
13668
13669 * mem-break.c (struct raw_breakpoint): New.
13670 (enum bkpt_type): New type `gdb_breakpoint'.
13671 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
13672 fields. New field `raw'.
13673 (find_raw_breakpoint_at): New.
13674 (set_raw_breakpoint_at): Handle refcounting. Create a raw
13675 breakpoint instead.
13676 (set_breakpoint_at): Adjust.
13677 (delete_raw_breakpoint): New.
13678 (release_breakpoint): New.
13679 (delete_breakpoint): Rename to...
13680 (delete_breakpoint_1): ... this. Add proc parameter. Use
13681 release_breakpoint. Return ENOENT.
13682 (delete_breakpoint): Reimplement.
13683 (find_breakpoint_at): Delete.
13684 (find_gdb_breakpoint_at): New.
13685 (delete_breakpoint_at): Delete.
13686 (set_gdb_breakpoint_at): New.
13687 (delete_gdb_breakpoint_at): New.
13688 (gdb_breakpoint_here): New.
13689 (set_reinsert_breakpoint): Use release_breakpoint.
13690 (uninsert_breakpoint): Rename to ...
13691 (uninsert_raw_breakpoint): ... this.
13692 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
13693 (reinsert_raw_breakpoint): Change parameter type to
13694 raw_breakpoint.
13695 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
13696 instead.
13697 (check_breakpoints): Adjust. Use release_breakpoint.
13698 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
13699 (breakpoint_inserted_here): Ditto.
13700 (check_mem_read): Adjust to iterate over raw breakpoints instead.
13701 Don't trust the breakpoint's shadow if it is not inserted.
13702 (check_mem_write): Adjust to iterate over raw breakpoints instead.
13703 (delete_all_breakpoints): Adjust.
13704 (free_all_breakpoints): Mark all breakpoints as uninserted, and
13705 use delete_breakpoint_1.
13706
13707 * mem-break.h (breakpoints_supported): Delete declaration.
13708 (set_gdb_breakpoint_at): Declare.
13709 (gdb_breakpoint_here): Declare.
13710 (delete_breakpoint_at): Delete.
13711 (delete_gdb_breakpoint_at): Declare.
13712
13713 * server.h (struct raw_breakpoint): Forward declare.
13714 (struct process_info): New field `raw_breakpoints'.
13715
13716 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
13717 breakpoints.
13718
13719 2010-03-24 Pedro Alves <pedro@codesourcery.com>
13720
13721 * linux-low.c (status_pending_p_callback): Fix comment.
13722 (linux_wait_for_event_1): Move most of the internal breakpoint
13723 handling from here...
13724 (linux_wait_1): ... to here.
13725 (count_events_callback): New.
13726 (select_singlestep_lwp_callback): New.
13727 (select_event_lwp_callback): New.
13728 (cancel_breakpoints_callback): New.
13729 (select_event_lwp): New.
13730 (linux_wait_1): Simplify internal breakpoint handling. Give equal
13731 priority to all LWPs that have had events that should be reported
13732 to the client. Cancel breakpoints when about to reporting the
13733 event to the client, not while stopping lwps. No longer cancel
13734 finished single-steps here.
13735 (cancel_finished_single_step): Delete.
13736 (cancel_finished_single_steps): Delete.
13737
13738 2010-03-24 Pedro Alves <pedro@codesourcery.com>
13739
13740 * mem-break.c (enum bkpt_type): New.
13741 (struct breakpoint): New field `type'.
13742 (set_breakpoint_at): Change return type to struct breakpoint
13743 pointer. Set type to `other_breakpoint' by default.
13744 (delete_breakpoint): Rewrite, supporting more than one breakpoint
13745 in the breakpoint list.
13746 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
13747 (reinsert_breakpoint): Rename to ...
13748 (reinsert_raw_breakpoint): ... this.
13749 (reinsert_breakpoints_at): Adjust.
13750 * mem-break.h (struct breakpoint): Declare.
13751 (set_breakpoint_at): Change return type to struct breakpoint
13752 pointer.
13753
13754 2010-03-24 Pedro Alves <pedro@codesourcery.com>
13755
13756 * server.c (handle_query): Assign, not compare.
13757
13758 2010-03-24 Pedro Alves <pedro@codesourcery.com>
13759
13760 Teach linux gdbserver to step-over-breakpoints.
13761
13762 * linux-low.c (can_hardware_single_step): New.
13763 (supports_breakpoints): New.
13764 (handle_extended_wait): If stopping threads, read the stop pc of
13765 the new cloned LWP.
13766 (get_pc): New.
13767 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
13768 low target doesn't support retrieving the PC.
13769 (add_lwp): Set last_resume_kind to resume_continue.
13770 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
13771 (linux_attach): Don't clear stop_expected. Set the lwp's
13772 last_resume_kind to resume_stop.
13773 (linux_detach_one_lwp): Don't check for removed breakpoints.
13774 (check_removed_breakpoint): Delete.
13775 (status_pending_p): Rename to ...
13776 (status_pending_p_callback): ... this. Don't check for removed
13777 breakpoints. Don't consider threads that are stopped from GDB's
13778 perspective.
13779 (linux_wait_for_lwp): Always read the stop_pc here.
13780 (cancel_breakpoint): New.
13781 (step_over_bkpt): New global.
13782 (linux_wait_for_event_1): Implement stepping over breakpoints.
13783 (gdb_wants_lwp_stopped): New.
13784 (gdb_wants_all_stopped): New.
13785 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
13786 single-step traps here. Store the thread's last reported target
13787 wait status.
13788 (send_sigstop): Don't clear stop_expected. Always set it,
13789 instead.
13790 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
13791 (cancel_finished_single_step): New.
13792 (cancel_finished_single_steps): New.
13793 (wait_for_sigstop): Don't cancel finished single-step traps here.
13794 (linux_resume_one_lwp): Don't check for removed breakpoints.
13795 Don't set `step' on non-hardware step archs.
13796 (linux_set_resume_request): Ignore resume_stop requests if already
13797 stopping or stopped. Set the lwp's last_resume_kind.
13798 (resume_status_pending_p): Don't check for removed breakpoints.
13799 (need_step_over_p): New.
13800 (start_step_over): New.
13801 (finish_step_over): New.
13802 (linux_resume_one_thread): Always queue a sigstop for resume_stop
13803 requests. Clear the thread's last reported target waitstatus.
13804 Don't use the `suspended' flag. Don't consider pending breakpoints.
13805 (linux_resume): Start a step-over if necessary.
13806 (proceed_one_lwp): New.
13807 (proceed_all_lwps): New.
13808 (unstop_all_lwps): New.
13809 * linux-low.h (struct lwp_info): Rewrite comment for the
13810 `suspended' flag. Add the `stop_pc' field. Delete the
13811 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
13812 Add `'last_resume_kind' and `need_step_over' fields.
13813 * inferiors.c (struct thread_info): Delete, moved elsewhere.
13814 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
13815 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
13816 (set_raw_breakpoint_at): New.
13817 (set_breakpoint_at): Rewrite to use it.
13818 (reinsert_breakpoint_handler): Delete.
13819 (set_reinsert_breakpoint): New.
13820 (reinsert_breakpoint_by_bp): Delete.
13821 (delete_reinsert_breakpoints): New.
13822 (uninsert_breakpoint): Rewrite.
13823 (uninsert_breakpoints_at): New.
13824 (reinsert_breakpoint): Rewrite.
13825 (reinsert_breakpoints_at): New.
13826 (check_breakpoints): Rewrite.
13827 (breakpoint_here): New.
13828 (breakpoint_inserted_here): New.
13829 (check_mem_read): Adjust.
13830 * mem-break.h (breakpoints_supported, breakpoint_here)
13831 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
13832 (reinsert_breakpoint_by_bp): Delete declaration.
13833 (delete_reinsert_breakpoints): Declare.
13834 (reinsert_breakpoint): Delete declaration.
13835 (reinsert_breakpoints_at): Declare.
13836 (uninsert_breakpoint): Delete declaration.
13837 (uninsert_breakpoints_at): Declare.
13838 (check_breakpoints): Adjust prototype.
13839 * server.h: Adjust include order.
13840 (struct thread_info): Declare here. Add a `last_status' field.
13841
13842 2010-03-23 Michael Snyder <msnyder@vmware.com>
13843
13844 * server.c (crc32): New function.
13845 (handle_query): Add handling for 'qCRC:' request.
13846
13847 2010-03-23 Pedro Alves <pedro@codesourcery.com>
13848
13849 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
13850 lwp had been stopped by a watchpoint.
13851
13852 2010-03-16 Pedro Alves <pedro@codesourcery.com>
13853
13854 * server.h (internal_error): Declare.
13855 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
13856 * utils.c (internal_error): New function.
13857
13858 2010-03-15 Andreas Schwab <schwab@redhat.com>
13859
13860 * configure.srv: Fix typo setting srv_regobj.
13861
13862 2010-03-15 Pedro Alves <pedro@codesourcery.com>
13863
13864 * linux-low.c (fetch_register): Avoid passing a non string literal
13865 format to `error'.
13866 (usr_store_inferior_registers): Ditto.
13867
13868 2010-03-14 Pedro Alves <pedro@codesourcery.com>
13869
13870 * linux-low.c (linux_write_memory): Bail out early if peeking
13871 memory failed.
13872
13873 2010-03-14 Pedro Alves <pedro@codesourcery.com>
13874
13875 * linux-low.h (struct lwp_info): New fields
13876 `stopped_by_watchpoint' and `stopped_data_address'.
13877 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
13878 here, and cache them in the lwp object.
13879 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
13880 directly.
13881 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
13882 field.
13883 (linux_stopped_by_watchpoint): Rewrite.
13884 (linux_stopped_data_address): Rewrite.
13885
13886 2010-03-06 Simo Melenius <simo.melenius@iki.fi>
13887
13888 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
13889 switching the current inferior, not before.
13890
13891 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
13892
13893 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
13894 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
13895 i386-linux.c and amd64-linux.c.
13896 (reg-i386.o): Removed.
13897 (reg-i386.c): Likewise.
13898 (reg-i386-linux.o): Likewise.
13899 (reg-i386-linux.c): Likewise.
13900 (reg-x86-64.o): Likewise.
13901 (reg-x86-64.c): Likewise.
13902 (reg-x86-64-linux.o): Likewise.
13903 (reg-x86-64-linux.c): Likewise.
13904 (i386.o): New.
13905 (i386.c): Likewise.
13906 (i386-linux.o): Likewise.
13907 (i386-linux.c): Likewise.
13908 (amd64.o): Likewise.
13909 (amd64.c): Likewise.
13910 (amd64-linux.o): Likewise.
13911 (amd64-linux.c): Likewise.
13912
13913 * configure.srv (srv_i386_regobj): New.
13914 (srv_i386_linux_regobj): Likewise.
13915 (srv_amd64_regobj): Likewise.
13916 (srv_amd64_linux_regobj): Likewise.
13917 (srv_i386_32bit_xmlfiles): Likewise.
13918 (srv_i386_64bit_xmlfiles): Likewise.
13919 (srv_i386_xmlfiles): Likewise.
13920 (srv_amd64_xmlfiles): Likewise.
13921 (srv_i386_linux_xmlfiles): Likewise.
13922 (srv_amd64_linux_xmlfiles): Likewise.
13923 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
13924 srv_xmlfiles to $srv_i386_xmlfiles.
13925 (i[34567]86-*-mingw32ce*): Likewise.
13926 (i[34567]86-*-mingw*): Likewise.
13927 (i[34567]86-*-nto*): Likewise.
13928 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
13929 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
13930 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
13931 (x86_64-*-linux*): Likewise.
13932
13933 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
13934 (init_registers_amd64_linux): New.
13935 (x86_arch_setup): Replace init_registers_x86_64_linux with
13936 init_registers_amd64_linux.
13937
13938 2010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
13939
13940 * configure.ac: Check for libdl. If it is not available link against
13941 static libthread_db.
13942 * configure: Regenerate.
13943
13944 2010-02-22 Pedro Alves <pedro@codesourcery.com>
13945
13946 PR9605
13947
13948 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
13949 handing a read watchpoint.
13950 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
13951
13952 2010-02-12 Doug Evans <dje@google.com>
13953
13954 * linux-low.c (linux_supports_tracefork_flag): Document.
13955 (linux_look_up_symbols): Add comment.
13956
13957 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
13958
13959 * regcache.c (supply_register): Clear regcache if buf is NULL.
13960
13961 2010-02-02 Nicolas Roche <roche@sourceware.org>
13962 Joel Brobecker <brobecker@adacore.com>
13963
13964 * inferiors.c (find_inferior): Add function documentation.
13965 (unloaded_dll): Handle the case where the unloaded dll has not
13966 been previously registered in the dll list.
13967
13968 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
13969
13970 * linux-arm-low.c (thumb_breakpoint_len): Delete.
13971 (thumb2_breakpoint): New.
13972 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
13973
13974 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
13975
13976 * linux-low.c (get_stop_pc): Check for SIGTRAP.
13977 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
13978 breakpoints.
13979
13980 2010-01-21 Pedro Alves <pedro@codesourcery.com>
13981
13982 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
13983
13984 2010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
13985
13986 * linux-s390-low.c (s390_collect_ptrace_register)
13987 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
13988
13989 2010-01-21 Doug Evans <dje@google.com>
13990
13991 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
13992 (PTRACE_ARG4_TYPE): New macro.
13993 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
13994 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
13995 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
13996 (usr_store_inferior_registers): Ditto.
13997 (linux_read_memory, linux_write_memory): Ditto.
13998 (linux_test_for_tracefork): Ditto.
13999
14000 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
14001 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
14002
14003 2010-01-21 Pedro Alves <pedro@codesourcery.com>
14004
14005 * proc-service.c (ps_lgetregs): Don't refetch registers from the
14006 target.
14007
14008 2010-01-21 Pedro Alves <pedro@codesourcery.com>
14009
14010 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
14011 prototype to take a regcache. Adjust.
14012
14013 2010-01-20 Pedro Alves <pedro@codesourcery.com>
14014
14015 * regcache.h (struct thread_info): Forward declare.
14016 (struct regcache): New.
14017 (new_register_cache): Adjust prototype.
14018 (get_thread_regcache): Declare.
14019 (free_register_cache): Adjust prototype.
14020 (registers_to_string, registers_from_string): Ditto.
14021 (supply_register, supply_register_by_name, collect_register)
14022 (collect_register_as_string, collect_register_by_name): Ditto.
14023 * regcache.c (struct inferior_regcache_data): Delete.
14024 (get_regcache): Rename to ...
14025 (get_thread_regcache): ... this. Adjust. Switch inferior before
14026 fetching registers.
14027 (regcache_invalidate_one): Adjust.
14028 (regcache_invalidate): Fix prototype.
14029 (new_register_cache): Return the new register cache.
14030 (free_register_cache): Change prototype.
14031 (realloc_register_cache): Adjust.
14032 (registers_to_string): Change prototype to take a regcache. Adjust.
14033 (registers_from_string): Ditto.
14034 (register_data): Ditto.
14035 (supply_register): Ditto.
14036 (supply_register_by_name): Ditto.
14037 (collect_register): Ditto.
14038 (collect_register_as_string): Ditto.
14039 (collect_register_by_name): Ditto.
14040 * server.c (process_serial_event): Adjust.
14041 * linux-low.h (regset_fill_func, regset_store_func): Change
14042 prototype.
14043 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
14044 Change prototype.
14045 * linux-low.c (get_stop_pc): Adjust.
14046 (check_removed_breakpoint): Adjust.
14047 (linux_wait_for_event): Adjust.
14048 (linux_resume_one_lwp): Adjust.
14049 (fetch_register): Add regcache parameter. Adjust.
14050 (usr_store_inferior_registers): Ditto.
14051 (regsets_fetch_inferior_registers): Ditto.
14052 (regsets_store_inferior_registers): Ditto.
14053 (linux_fetch_registers, linux_store_registers): Ditto.
14054 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
14055 regcache. Adjust.
14056 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
14057 Ditto.
14058 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
14059 prototype to take a regcache.
14060 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
14061 * remote-utils.c (convert_ascii_to_int, outreg)
14062 (prepare_resume_reply): Change prototype to take a regcache.
14063 Adjust.
14064 * target.h (struct target_ops) <fetch_registers, store_registers>:
14065 Change prototype to take a regcache.
14066 (fetch_inferior_registers, store_inferior_registers): Change
14067 prototype to take a regcache. Adjust.
14068 * proc-service.c (ps_lgetregs): Adjust.
14069 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
14070 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
14071 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
14072 take a regcache. Adjust.
14073 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
14074 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
14075 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
14076 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
14077 * linux-cris-low.c (cris_get_pc, cris_set_pc)
14078 (cris_cannot_fetch_register):
14079 (cris_breakpoint_at): Change prototype to take a regcache.
14080 Adjust.
14081 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
14082 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
14083 to take a regcache. Adjust.
14084 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
14085 Adjust.
14086 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
14087 take a regcache. Adjust.
14088 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
14089 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
14090 (m68k_set_pc): Change prototype to take a regcache. Adjust.
14091 * linux-mips-low.c (mips_get_pc):
14092 (mips_set_pc): Change prototype to take a regcache. Adjust.
14093 (mips_reinsert_addr): Adjust.
14094 (mips_collect_register): Change prototype to take a regcache.
14095 Adjust.
14096 (mips_supply_register):
14097 (mips_collect_register_32bit, mips_supply_register_32bit)
14098 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
14099 (mips_store_fpregset): Ditto.
14100 * linux-ppc-low.c (ppc_supply_ptrace_register)
14101 (ppc_supply_ptrace_register): Ditto.
14102 (parse_spufs_run): Adjust.
14103 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
14104 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
14105 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
14106 take a regcache. Adjust.
14107 * linux-s390-low.c (s390_collect_ptrace_register)
14108 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
14109 (s390_set_pc): Change prototype to take a regcache. Adjust.
14110 (s390_arch_setup): Adjust.
14111 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
14112 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
14113 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
14114 (sparc_fill_gregset, sparc_store_gregset_from_stack)
14115 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
14116 regcache. Adjust.
14117 (sparc_breakpoint_at): Adjust.
14118 * linux-xtensa-low.c (xtensa_fill_gregset):
14119 (xtensa_store_gregset):
14120 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
14121 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
14122 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
14123 prototype to take a regcache. Adjust.
14124 * win32-arm-low.c (arm_fetch_inferior_register)
14125 (arm_store_inferior_register): Change prototype to take a
14126 regcache. Adjust.
14127 * win32-i386-low.c (i386_fetch_inferior_register)
14128 (i386_store_inferior_register): Change prototype to take a
14129 regcache. Adjust.
14130 * win32-low.c (child_fetch_inferior_registers)
14131 (child_store_inferior_registers): Change prototype to take a
14132 regcache. Adjust.
14133 (win32_wait): Adjust.
14134 (win32_fetch_inferior_registers): Change prototype to take a
14135 regcache. Adjust.
14136 (win32_store_inferior_registers): Adjust.
14137 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
14138 store_inferior_register>: Change prototype to take a regcache.
14139
14140 2010-01-20 Doug Evans <dje@google.com>
14141
14142 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
14143 #ifdef.
14144 (linux_wait_for_event1, linux_init_signals): Ditto.
14145 (W_STOPCODE): Provide definition if missing.
14146
14147 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
14148
14149 * linux-low.c (linux_core_of_thread): New.
14150 (compare_ints, show_process, list_threads): New.
14151 (linux_qxfer_osdata): Report threads and cores.
14152 (linux_target_op): Register linux_core_of_thread.
14153 * remote-utils.c (prepare_resume_reply): Report the core.
14154 (buffer_xml_printf): Support %d specifier.
14155 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
14156 New.
14157 (handle_query): Handle qXfer:threads. Announce availability
14158 thereof.
14159 * target.h (struct target_ops): New field core_of_thread.
14160
14161 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
14162
14163 * Makefile.in (clean): Remove new generated files.
14164 (reg-s390.o, reg-s390.c): Remove rules.
14165 (reg-s390x.o, reg-s390x.c): Likewise.
14166 (s390-linux32.o, s390-linux32.c): Add rules.
14167 (s390-linux64.o, s390-linux64.c): Likewise.
14168 (s390x-linux64.o, s390x-linux64.c): Likewise.
14169 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
14170 * linux-s390-low.c: Include <elf.h>.
14171 (HWCAP_S390_HIGH_GPRS): Define if undefined.
14172 (init_registers_s390): Remove prototype.
14173 (init_registers_s390x): Likewise.
14174 (init_registers_s390_linux32): Add prototype.
14175 (init_registers_s390_linux64): Likewise.
14176 (init_registers_s390x_linux64): Likewise.
14177 (s390_num_regs_3264): New define.
14178 (s390_regmap_3264): New global variable.
14179 (s390_cannot_fetch_register): Remove obsolete check.
14180 (s390_cannot_store_register): Likewise.
14181 (s390_collect_ptrace_register): Handle upper/lower register halves.
14182 (s390_supply_ptrace_register): Likewise.
14183 (s390_fill_gregset): Update to register number changes.
14184 (s390_get_hwcap): New routine.
14185 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
14186 Install appropriate regmap and register set.
14187
14188 2010-01-01 Joel Brobecker <brobecker@adacore.com>
14189
14190 * server.c (gdbserver_version): Update copyright year to 2010.
14191 * gdbreplay.c (gdbreplay_version): Likewise.
14192
14193 2009-12-28 Doug Evans <dje@google.com>
14194
14195 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
14196 elf/external.h. Include <elf.h> instead but only if necessary.
14197
14198 2009-12-28 Pedro Alves <pedro@codesourcery.com>
14199
14200 * linux-low.c (linux_remove_process): Remove `detaching'
14201 parameter. Don't release/detach from thread_db here.
14202 (linux_kill): Release/detach from thread_db here, ...
14203 (linux_detach): ... and here, before actually detaching.
14204 (linux_wait_1): ... and here, when a process exits.
14205 * thread-db.c (any_thread_of): New.
14206 (thread_db_free): Switch the current inferior to a thread of the
14207 passed in process.
14208
14209 2009-12-21 Doug Evans <dje@google.com>
14210
14211 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
14212
14213 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
14214 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
14215 warning ifndef __NR_tkill. Move setting of errno there too.
14216 Delete unnecessary resetting of errno after syscall.
14217 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
14218
14219 * configure.ac: Check for dladdr.
14220 * config.in: Regenerate.
14221 * configure: Regenerate.
14222 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
14223 (try_thread_db_load): Update.
14224
14225 * linux-low.c (my_waitpid): Delete unnecessary prototype.
14226
14227 2009-12-18 Doug Evans <dje@google.com>
14228
14229 * event-loop.c: Include unistd.h if it exists.
14230
14231 * linux-low.c (my_waitpid): Move definition away from being in
14232 between linux_tracefork_child/linux_test_for_tracefork.
14233
14234 * gdb_proc_service.h (psaddr_t): Fix type.
14235 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
14236 signature to match glibc.
14237
14238 2009-12-16 Doug Evans <dje@google.com>
14239
14240 * linux-low.c (linux_read_memory): Fix argument to read.
14241
14242 2009-11-26 Pedro Alves <pedro@codesourcery.com>
14243
14244 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
14245 events, don't leave current_inferior pointing at null.
14246
14247 2009-11-26 Pedro Alves <pedro@codesourcery.com>
14248
14249 * win32-low.c (LOG): Delete.
14250 (OUTMSG): Output to stderr.
14251 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
14252 on compile time LOG macro.
14253 (win32_wait): Fix debug output.
14254
14255 2009-11-26 Pedro Alves <pedro@codesourcery.com>
14256
14257 * win32-low.c (win32_add_one_solib): If the dll name is
14258 "ntdll.dll", prepend the system directory to the dll path.
14259
14260 2009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
14261
14262 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
14263
14264 2009-11-17 Nathan Sidwell <nathan@codesourcery.com>
14265 Vladimir Prus <vladimir@codesourcery.com>
14266
14267 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
14268 * configure.ac: Check for __mcoldfire__ and set
14269 gdb_cv_m68k_is_coldfire.
14270 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
14271 reg-cf.o and reg-m68k.o.
14272 * configure: Regenerated.
14273
14274 2009-11-16 Pedro Alves <pedro@codesourcery.com>
14275
14276 * linux-low.c (linux_remove_process): Add `detaching' parameter.
14277 Pass it to thread_db_free.
14278 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
14279 proper `detaching' argument to linux_remove_process.
14280 * linux-low.h (thread_db_free): Add `detaching' parameter.
14281 * thread-db.c (thread_db_init): Pass false as `detaching' argument
14282 to thread_db_free.
14283 (thread_db_free): Add `detaching' parameter. Only
14284 call td_ta_clear_event if detaching from process.
14285
14286 2009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
14287
14288 * thread-db.c (thread_db_free): Fix typo.
14289
14290 2009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
14291
14292 PR gdb/10838
14293 * thread-db.c (thread_db_free): Call td_ta_clear_event.
14294
14295 2009-11-03 Nathan Sidwell <nathan@codesourcery.com>
14296
14297 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
14298 with an i686 compiler.
14299 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
14300 needed.
14301 * configure: Rebuilt.
14302
14303 2009-10-29 Sandra Loosemore <sandra@codesourcery.com>
14304
14305 PR gdb/10783
14306
14307 * server.c (handle_search_memory_1): Correct read_addr initialization
14308 in loop for searching subsequent chunks.
14309
14310 2009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
14311
14312 * configure.ac: New --with-libthread-db option.
14313 * thread-db.c: Allow direct dependence on libthread_db.
14314 (thread_db_free): Adjust.
14315 * config.in: Regenerate.
14316 * configure: Likewise.
14317
14318 2009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
14319
14320 PR gdb/10757
14321 * thread-db.c (attach_thread): New function.
14322 (maybe_attach_thread): Return success/failure.
14323 (find_new_threads_callback): Adjust.
14324 (thread_db_find_new_threads): Loop until no new threads.
14325
14326 2009-10-13 Pedro Alves <pedro@codesourcery.com>
14327
14328 * proc-service.c (ps_lgetregs): Formatting.
14329
14330 2009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
14331
14332 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
14333 * configure.ac: Adjust.
14334 * linux-low.h (struct process_info_private): Move members to struct
14335 thread_db.
14336 (thread_db_free, thread_db_handle_monitor_command): New prototype.
14337 * linux-low.c (linux_remove_process): Adjust.
14338 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
14339 * server.c (handle_query): Move code ...
14340 (handle_monitor_command): ... here. New function.
14341 * target.h (struct target_ops): New member.
14342 * thread-db.c (struct thread_db): New.
14343 (libthread_db_search_path): New variable.
14344 (thread_db_create_event, thread_db_enable_reporting)
14345 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
14346 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
14347 (try_thread_db_load_1, dladdr_to_soname): New functions.
14348 (try_thread_db_load, thread_db_load_search): New functions.
14349 (thread_db_init): Search for libthread_db.
14350 (thread_db_free): New function.
14351 (thread_db_handle_monitor_command): Likewise.
14352 * config.in: Regenerate.
14353 * configure: Regenerate.
14354
14355 2009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
14356
14357 * spu-low.c (spu_kill): Wait for inferior to terminate.
14358 Call clear_inferiors.
14359 (spu_detach): Call clear_inferiors.
14360
14361 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14362
14363 * aclocal.m4: Regenerate.
14364 * config.in: Likewise.
14365 * configure: Likewise.
14366
14367 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
14368
14369 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
14370 (parse_spufs_run): New function.
14371 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
14372 (ppc_breakpoint_at): Handle SPU breakpoints.
14373
14374 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
14375
14376 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
14377 (SPUFS_MAGIC): Define.
14378 (spu_enumerate_spu_ids): New function.
14379 (linux_qxfer_spu): New function.
14380 (linux_target_ops): Install linux_qxfer_spu.
14381
14382 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
14383
14384 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
14385 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
14386 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
14387 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
14388 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
14389 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
14390 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
14391 (init_registers_powerpc_cell32l): Add prototype.
14392 (init_registers_powerpc_cell64l): Likewise.
14393 (ppc_arch_setup): Detect Cell/B.E. architecture.
14394
14395 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14396
14397 * Makefile.in (datarootdir): New variable.
14398
14399 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
14400
14401 * linux-low.c (linux_write_memory): Update debugging output.
14402 * Makefile.in (clean): Add new descriptions.
14403 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
14404 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
14405 * configure.srv: Add new files for arm*-*-linux*.
14406 * linux-arm-low.c: Add new declarations.
14407 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
14408 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
14409 (HWCAP_VFPv3D16): New.
14410 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
14411 instead of __IWMMXT__.
14412 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
14413 (arm_arch_setup): New.
14414 (target_regsets): Remove #ifdef. Add VFP regset.
14415 (the_low_target): Use arm_arch_setup.
14416
14417 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
14418
14419 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
14420 the main thread again.
14421
14422 2009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
14423
14424 Adding Neutrino gdbserver.
14425 * configure: Regenerated.
14426 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
14427 * configure.srv (i[34567]86-*-nto*): New target.
14428 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
14429 * remote-utils.c [__QNX__]: Include sys/iomgr.h
14430 (nto_comctrl) [__QNX__]: New function.
14431 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
14432
14433 2009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
14434
14435 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
14436 srv_tgtobj.
14437
14438 2009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
14439 Pedro Alves <pedro@codesourcery.com>
14440
14441 * win32-i386-low.c (i386_get_thread_context): Handle systems that
14442 don't support CONTEXT_EXTENDED_REGISTERS.
14443 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
14444 (the_low_target): Install them.
14445 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
14446 failing with ERROR_PIPE_NOT_CONNECTED.
14447
14448 2009-06-30 Doug Evans <dje@google.com>
14449 Pierre Muller <muller@ics.u-strasbg.fr>
14450
14451 Add h/w watchpoint support to x86-linux, win32-i386.
14452 * Makefile.in (SFILES): Add i386-low.c
14453 (i386_low_h): Define.
14454 (i386-low.o): Add dependencies.
14455 (linux-x86-low.o): Add i386-low.h dependency.
14456 (win32-i386-low.o): Ditto.
14457 * i386-low.c: New file.
14458 * i386-low.h: New file.
14459 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
14460 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
14461 * linux-low.c (linux_add_process): Initialize arch_private.
14462 (linux_remove_process): Free arch_private.
14463 (add_lwp): Initialize arch_private.
14464 (delete_lwp): Free arch_private.
14465 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
14466 provided.
14467 * linux-low.h (process_info_private): New member arch_private.
14468 (lwp_info): New member arch_private.
14469 (linux_target_ops): New members new_process, new_thread,
14470 prepare_to_resume.
14471 (ptid_of): New macro.
14472 * linux-x86-low.c: Include stddef.h, i386-low.h.
14473 (arch_process_info): New struct.
14474 (arch_lwp_info): New struct.
14475 (x86_linux_dr_get, x86_linux_dr_set): New functions.
14476 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
14477 (i386_dr_low_get_status): New function.
14478 (x86_insert_point, x86_remove_point): New functions.
14479 (x86_stopped_by_watchpoint): New function.
14480 (x86_stopped_data_address): New function.
14481 (x86_linux_new_process, x86_linux_new_thread): New functions.
14482 (x86_linux_prepare_to_resume): New function.
14483 (the_low_target): Add entries for insert_point, remove_point,
14484 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
14485 prepare_to_resume.
14486 * server.c (debug_hw_points): New global.
14487 (monitor_show_help): Document set debug-hw-points.
14488 (handle_query): Process "set debug-hw-points".
14489 * server.h (debug_hw_points): Declare.
14490 (paddress): Declare.
14491 * utils.c (NUMCELLS, CELLSIZE): New macros.
14492 (get_sell, xsnprintf, paddress): New functions.
14493 * win32-arm-low.c (the_low_target): Add entries for insert_point,
14494 remove_point, stopped_by_watchpoint, stopped_data_address.
14495 * win32-i386-low.c: Include i386-low.h.
14496 (debug_reg_state): Replaces dr.
14497 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
14498 (i386_dr_low_get_status): New function.
14499 (i386_insert_point, i386_remove_point): New functions.
14500 (i386_stopped_by_watchpoint): New function.
14501 (i386_stopped_data_address): New function.
14502 (i386_initial_stuff): Update.
14503 (get_thread_context,set_thread_context,i386_thread_added): Update.
14504 (the_low_target): Add entries for insert_point,
14505 remove_point, stopped_by_watchpoint, stopped_data_address.
14506 * win32-low.c (win32_insert_watchpoint): New function.
14507 (win32_remove_watchpoint): New function.
14508 (win32_stopped_by_watchpoint): New function.
14509 (win32_stopped_data_address): New function.
14510 (win32_target_ops): Add entries for insert_watchpoint,
14511 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
14512 * win32-low.h (win32_target_ops): New members insert_point,
14513 remove_point, stopped_by_watchpoint, stopped_data_address.
14514
14515 2009-06-25 Pedro Alves <pedro@codesourcery.com>
14516
14517 * server.c (process_serial_event): Re-return unsupported, not
14518 error, if the type isn't recognized. Re-allow supporting only
14519 insert or remove packets. Also call require_running for
14520 breakpoints. Add missing break statement to default case. Tidy.
14521 * target.h (struct target_ops): Rename insert_watchpoint to
14522 insert_point, and remove_watchpoint to remove_point.
14523
14524 * linux-low.h (struct linux_target_ops): Likewise.
14525 * linux-low.c (linux_insert_watchpoint): Rename to ...
14526 (linux_insert_point): ... this. Adjust.
14527 (linux_remove_watchpoint): Rename to ...
14528 (linux_remove_point): ... this. Adjust.
14529 (linux_target_ops): Adjust.
14530 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
14531 (cris_insert_point): ... this.
14532 (cris_remove_watchpoint): Rename to ...
14533 (cris_remove_point): ... this.
14534 (the_low_target): Adjust.
14535
14536 2009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
14537
14538 * server.c (handle_v_kill): Pass signal_pid to
14539 kill_inferior if multi_process is zero.
14540
14541 2009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
14542
14543 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
14544 * target.h (target_ops): Comment for *_watchpoint to make it clear
14545 the functions can get types '0' and '1'.
14546
14547 2009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
14548
14549 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
14550 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
14551 * regcache.c (get_regcache): Likewise.
14552 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
14553 * win32-low.c (child_fetch_inferior_registers): Remove check for
14554 regno 0.
14555
14556 2009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
14557 Pedro Alves <pedro@codesourcery.com>
14558
14559 * target.h (struct target_ops) <supports_multi_process>: New
14560 callback.
14561 (target_supports_multi_process): New.
14562 * server.c (handle_query): Even if GDB reports support, only
14563 enable multi-process if the target also supports it. Report
14564 multi-process support only if the target backend supports it.
14565 * linux-low.c (linux_supports_multi_process): New function.
14566 (linux_target_ops): Install it as target_supports_multi_process
14567 callback.
14568
14569 2009-05-24 Doug Evans <dje@google.com>
14570
14571 Global renaming of find_thread_pid to find_thread_ptid.
14572 * server.h (find_thread_ptid): Renamed from find_thread_pid.
14573 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
14574 All callers updated.
14575
14576 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
14577 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
14578 directly.
14579
14580 * linux-low.c (get_stop_pc): Print pc if debug_threads.
14581 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
14582 (linux_resume_one_lwp): Ditto.
14583
14584 2009-05-23 Doug Evans <dje@google.com>
14585
14586 * linux-low.c (linux_resume_one_lwp): Change type of first arg
14587 from struct inferior_list_entry * to struct lwp_info *.
14588 All callers updated.
14589
14590 2009-05-13 Doug Evans <dje@google.com>
14591
14592 * linux-x86-low.c: Don't include assert.h.
14593 (x86_siginfo_fixup): Use fatal, not assert.
14594 (x86_arch_setup): Fix comment.
14595
14596 2009-05-12 Doug Evans <dje@google.com>
14597
14598 Biarch support for i386/amd64 gdbserver.
14599 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
14600 Add linux-x86-low.c.
14601 (linux-i386-low.o, linux-x86-64-low.o): Delete.
14602 (linux-x86-low.o): Add.
14603 * linux-x86-64-low.c: Delete.
14604 * linux-i386-low.c: Delete.
14605 * linux-x86-low.c: New file.
14606 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
14607 linux-x86-low.o.
14608 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
14609 linux-x86-low.o.
14610 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
14611 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
14612 (linux_child_pid_to_exec_file): New function.
14613 (elf_64_header_p, elf_64_file_p): New functions.
14614 (siginfo_fixup): New function.
14615 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
14616 give target a chance to convert layout.
14617 * linux-low.h (linux_target_ops): New member siginfo_fixup.
14618 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
14619
14620 2009-05-07 Doug Evans <dje@google.com>
14621
14622 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
14623 (regsets_store_inferior_registers): Ditto.
14624
14625 2009-05-06 Pedro Alves <pedro@codesourcery.com>
14626
14627 PR server/10048
14628
14629 * linux-low.c (must_set_ptrace_flags): Delete.
14630 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
14631 of the global.
14632 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
14633 `lwp->must_set_ptrace_flags' instead.
14634 (linux_wait_for_event_1): Set ptrace options here.
14635 (linux_wait_1): ... not here.
14636
14637 2009-04-30 Doug Evans <dje@google.com>
14638
14639 * inferiors.c (started_inferior_callback): New function.
14640 (attached_inferior_callback): New function.
14641 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
14642 * server.c (print_started_pid, print_attached_pid): New functions.
14643 (detach_or_kill_for_exit): New function.
14644 (main): Call it instead of for_each_inferior (kill_inferior_callback).
14645 * server.h (have_started_inferiors_p): Declare.
14646 (have_attached_inferiors_p): Declare.
14647
14648 * inferiors.c (remove_process): Fix memory leak, free process.
14649 * linux-low.c (linux_remove_process): New function.
14650 (linux_kill): Call it instead of remove_process.
14651 (linux_detach, linux_wait_1): Ditto.
14652
14653 2009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
14654
14655 * configure.srv: Add x86 Windows CE target.
14656
14657 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
14658
14659 * inferiors.c (get_thread_process): Make global.
14660 * server.h (get_thread_process): Add prototype.
14661 * thread-db.c (find_one_thread): Use get_thread_process
14662 instead of current_process.
14663 (thread_db_get_tls_address): Do not crash if called when
14664 thread layer is not yet initialized.
14665
14666 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
14667
14668 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
14669 * spu-low.c (current_tid): Rename to ...
14670 (current_ptid): ... this.
14671 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
14672 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
14673 ptid_get_lwp (current_ptid) instead of current_tid.
14674 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
14675 instead of current_tid. Use find_process_pid to verify pid
14676 argument is valid. Pass proper argument to remove_process.
14677 (spu_thread_alive): Compare current_ptid instead of current_tid.
14678 (spu_resume): Likewise.
14679
14680 2009-04-02 Pedro Alves <pedro@codesourcery.com>
14681
14682 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
14683 variable.
14684
14685 2009-04-01 Pedro Alves <pedro@codesourcery.com>
14686
14687 Implement the multiprocess extensions, and add linux multiprocess
14688 support.
14689
14690 * server.h (ULONGEST): Declare.
14691 (struct ptid, ptid_t): New.
14692 (minus_one_ptid, null_ptid): Declare.
14693 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
14694 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
14695 (struct inferior_list_entry): Change `id' type from unsigned from
14696 to ptid_t.
14697 (struct sym_cache, struct breakpoint, struct
14698 process_info_private): Forward declare.
14699 (struct process_info): Declare.
14700 (current_process): Declare.
14701 (all_processes): Declare.
14702 (initialize_inferiors): Declare.
14703 (add_thread): Adjust to use ptid_t.
14704 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
14705 (add_process, remove_process, find_thread_pid): Declare.
14706 (find_inferior_id): Adjust to use ptid_t.
14707 (cont_thread, general_thread, step_thread): Change type to ptid_t.
14708 (multi_process): Declare.
14709 (push_event): Adjust to use ptid_t.
14710 (read_ptid, write_ptid): Declare.
14711 (prepare_resume_reply): Adjust to use ptid_t.
14712 (clear_symbol_cache): Declare.
14713 * inferiors.c (all_processes): New.
14714 (null_ptid, minus_one_ptid): New.
14715 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
14716 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
14717 (add_thread): Change unsigned long to ptid. Remove gdb_id
14718 parameter. Adjust.
14719 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
14720 (gdb_id_to_thread): Rename to ...
14721 (find_thread_pid): ... this. Change unsigned long to ptid.
14722 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
14723 (loaded_dll, pull_pid_from_list): Adjust.
14724 (add_process, remove_process, find_process_pid)
14725 (get_thread_process, current_process, initialize_inferiors): New.
14726 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
14727 (struct target_waitstatus) <related_pid>: Ditto.
14728 (struct target_ops) <kill, detach>: Add `pid' argument. Change
14729 return type to int.
14730 (struct target_ops) <join>: Add `pid' argument.
14731 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
14732 (struct target_ops) <wait>: Add `ptid' field. Change return type
14733 to ptid.
14734 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
14735 (mywait): Add `ptid' argument. Change return type to ptid_t.
14736 (target_pid_to_str): Declare.
14737 * target.c (set_desired_inferior): Adjust to use ptids.
14738 (mywait): Add new `ptid' argument. Adjust.
14739 (target_pid_to_str): New.
14740 * mem-break.h (free_all_breakpoints): Declare.
14741 * mem-break.c (breakpoints): Delelete.
14742 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
14743 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
14744 to use per-process breakpoint list.
14745 (free_all_breakpoints): New.
14746 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
14747 (symbol_cache, all_symbols_looked_up): Delete.
14748 (hexchars): New.
14749 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
14750 read_ptid): New.
14751 (prepare_resume_reply): Change ptid argument's type from unsigned
14752 long to ptid_t. Adjust. Implement W;process and X;process.
14753 (free_sym_cache, clear_symbol_cache): New.
14754 (look_up_one_symbol): Adjust to per-process symbol cache. *
14755 * server.c (cont_thread, general_thread, step_thread): Change type
14756 to ptid_t.
14757 (attached): Delete.
14758 (multi_process): New.
14759 (last_ptid): Change type to ptid_t.
14760 (struct vstop_notif) <ptid>: Change type to ptid_t.
14761 (queue_stop_reply, push_event): Change `ptid' argument's type to
14762 ptid_t.
14763 (discard_queued_stop_replies): Add `pid' argument.
14764 (start_inferior): Adjust to use ptids. Adjust to mywait interface
14765 changes. Don't reference the `attached' global.
14766 (attach_inferior): Adjust to mywait interface changes.
14767 (handle_query): Adjust to use ptids. Parse GDB's qSupported
14768 features. Handle and report "multiprocess+". Handle
14769 "qAttached:PID".
14770 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
14771 changes.
14772 (handle_v_kill): New.
14773 (handle_v_stopped): Adjust to use target_pid_to_str.
14774 (handle_v_requests): Allow multiple attaches and runs when
14775 multiprocess extensions are in effect. Handle "vKill".
14776 (myresume): Adjust to use ptids.
14777 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
14778 (handle_status): Adjust to discard_queued_stop_replies interface
14779 change.
14780 (first_thread_of, kill_inferior_callback)
14781 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
14782 (main): Call initialize_inferiors. Adjust to use ptids, killing
14783 and detaching from all inferiors. Handle multiprocess packet
14784 variants.
14785 * linux-low.h: Include gdb_proc_service.h.
14786 (struct process_info_private): New.
14787 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
14788 <lwpid_of>: Use ptid_get_lwp.
14789 (get_lwp_thread): Adjust.
14790 (struct lwp_info): Add `dead' member.
14791 (find_lwp_pid): Declare.
14792 * linux-low.c (thread_db_active): Delete.
14793 (new_inferior): Adjust comment.
14794 (inferior_pid): Delete.
14795 (linux_add_process): New.
14796 (handle_extended_wait): Adjust.
14797 (add_lwp): Change unsigned long to ptid.
14798 (linux_create_inferior): Add process to processes table. Adjust
14799 to use ptids. Don't set new_inferior here.
14800 (linux_attach_lwp): Rename to ...
14801 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
14802 it. Adjust to use ptids.
14803 (linux_attach_lwp): New.
14804 (linux_attach): Add process to processes table. Don't set
14805 new_inferior here.
14806 (struct counter): New.
14807 (second_thread_of_pid_p, last_thread_of_process_p): New.
14808 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
14809 multiple processes.
14810 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
14811 processes. Remove process from process table.
14812 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
14813 to multiple processes.
14814 (any_thread_of): New.
14815 (linux_detach): Add `pid' argument, and handle it. Remove process
14816 from processes table.
14817 (linux_join): Add `pid' argument. Handle it.
14818 (linux_thread_alive): Change unsighed long argument to ptid_t.
14819 Consider dead lwps as not being alive.
14820 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
14821 threads we're not interested in.
14822 (same_lwp, find_lwp_pid): New.
14823 (linux_wait_for_lwp): Change `pid' argument's type from int to
14824 ptid_t. Adjust.
14825 (linux_wait_for_event): Rename to ...
14826 (linux_wait_for_event_1): ... this. Change `pid' argument's type
14827 from int to ptid_t. Adjust.
14828 (linux_wait_for_event): New.
14829 (linux_wait_1): Add `ptid' argument. Change return type to
14830 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
14831 that exit from the process table.
14832 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
14833 Adjust.
14834 (mark_lwp_dead): New.
14835 (wait_for_sigstop): Adjust to use ptids. If a process exits while
14836 stopping all threads, mark its main lwp as dead.
14837 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
14838 ptids.
14839 (fetch_register, usr_store_inferior_registers)
14840 (regsets_fetch_inferior_registers)
14841 (regsets_store_inferior_registers, linux_read_memory)
14842 (linux_write_memory): Inline `inferior_pid'.
14843 (linux_look_up_symbols): Adjust to use per-process
14844 `thread_db_active'.
14845 (linux_request_interrupt): Adjust to use ptids.
14846 (linux_read_auxv): Inline `inferior_pid'.
14847 (initialize_low): Don't reference thread_db_active.
14848 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
14849 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
14850 (ps_getpid): Return the pid of the current inferior.
14851 * thread-db.c (proc_handle, thread_agent): Delete.
14852 (thread_db_create_event, thread_db_enable_reporting): Adjust to
14853 per-process data.
14854 (find_one_thread): Change argument type to ptid_t. Adjust to
14855 per-process data.
14856 (maybe_attach_thread): Adjust to per-process data and ptids.
14857 (thread_db_find_new_threads): Ditto.
14858 (thread_db_init): Ditto.
14859 * spu-low.c (spu_create_inferior, spu_attach): Add process to
14860 processes table. Adjust to use ptids.
14861 (spu_kill, spu_detach): Adjust interface. Remove process from
14862 processes table.
14863 (spu_join, spu_thread_alive): Adjust interface.
14864 (spu_wait): Adjust interface. Remove process from processes
14865 table. Adjust to use ptids.
14866 * win32-low.c (current_inferior_tid): Delete.
14867 (current_inferior_ptid): New.
14868 (debug_event_ptid): New.
14869 (thread_rec): Take a ptid. Adjust.
14870 (child_add_thread): Add `pid' argument. Adjust to use ptids.
14871 (child_delete_thread): Ditto.
14872 (do_initial_child_stuff): Add `attached' argument. Add process to
14873 processes table.
14874 (child_fetch_inferior_registers, child_store_inferior_registers):
14875 Adjust.
14876 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
14877 (win32_attach): Pass 1 to do_initial_child_stuff.
14878 (win32_kill): Adjust interface. Remove process from processes
14879 table.
14880 (win32_detach): Ditto.
14881 (win32_join): Adjust interface.
14882 (win32_thread_alive): Take a ptid.
14883 (win32_resume): Adjust to use ptids.
14884 (get_child_debug_event): Ditto.
14885 (win32_wait): Adjust interface. Remove exiting process from
14886 processes table.
14887
14888 2009-04-01 Pedro Alves <pedro@codesourcery.com>
14889
14890 Non-stop mode support.
14891
14892 * server.h (non_stop): Declare.
14893 (gdb_client_data, handler_func): Declare.
14894 (delete_file_handler, add_file_handler, start_event_loop):
14895 Declare.
14896 (handle_serial_event, handle_target_event, push_event)
14897 (putpkt_notif): Declare.
14898 * target.h (enum resume_kind): New.
14899 (struct thread_resume): Replace `step' field by `kind' field.
14900 (TARGET_WNOHANG): Define.
14901 (struct target_ops) <wait>: Add `options' argument.
14902 <supports_non_stop, async, start_non_stop>: New fields.
14903 (target_supports_non_stop, target_async): New.
14904 (start_non_stop): Declare.
14905 (mywait): Add `options' argument.
14906 * target.c (mywait): Add `options' argument. Print child exit
14907 notifications here.
14908 (start_non_stop): New.
14909 * server.c (non_stop, own_buf, mem_buf): New globals.
14910 (struct vstop_notif): New.
14911 (notif_queue): New global.
14912 (queue_stop_reply, push_event, discard_queued_stop_replies)
14913 (send_next_stop_reply): New.
14914 (start_inferior): Adjust to use resume_kind. Adjust to mywait
14915 interface changes.
14916 (attach_inferior): In non-stop mode, don't wait for the target
14917 here.
14918 (handle_general_set): Handle QNonStop.
14919 (handle_query): When handling qC, return the current general
14920 thread, instead of the first thread of the list.
14921 (handle_query): If the backend supports non-stop mode, include
14922 QNonStop+ in the qSupported query response.
14923 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
14924 and non-stop mode.
14925 (handle_v_attach, handle_v_run): Handle non-stop mode.
14926 (handle_v_stopped): New.
14927 (handle_v_requests): Report support for vCont;t. Handle vStopped.
14928 (myresume): Adjust to use resume_kind. Handle non-stop.
14929 (queue_stop_reply_callback): New.
14930 (handle_status): Handle non-stop mode.
14931 (main): Clear non_stop flag on reconnection. Use the event-loop.
14932 Refactor serial protocol handling from here ...
14933 (process_serial_event): ... to this new function. When GDB
14934 selects any thread, select one here. In non-stop mode, wait until
14935 GDB acks all pending events before exiting.
14936 (handle_serial_event, handle_target_event): New.
14937 * remote-utils.c (remote_open): Install remote_desc in the event
14938 loop.
14939 (remote_close): Remove remote_desc from the event loop.
14940 (putpkt_binary): Rename to...
14941 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
14942 (putpkt_binary): New as wrapper around putpkt_binary_1.
14943 (putpkt_notif): New.
14944 (prepare_resume_reply): In non-stop mode, don't change the
14945 general_thread.
14946 * event-loop.c: New.
14947 * Makefile.in (OBJ): Add event-loop.o.
14948 (event-loop.o): New rule.
14949
14950 * linux-low.h (pid_of): Moved here.
14951 (lwpid_of): New.
14952 (get_lwp_thread): Use lwpid_of.
14953 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
14954 * linux-low.c (pid_of): Delete.
14955 (inferior_pid): Use lwpid_of.
14956 (linux_event_pipe): New.
14957 (target_is_async_p): New.
14958 (delete_lwp): New.
14959 (handle_extended_wait): Use lwpid_of.
14960 (add_lwp): Don't set lwpid field.
14961 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
14962 (linux_kill_one_lwp): If killing a running lwp, stop it first.
14963 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
14964 (linux_detach_one_lwp): If detaching from a running lwp, stop it
14965 first. Adjust to linux_wait_for_event interface changes. Use
14966 lwpid_of.
14967 (linux_detach): Don't delete the main lwp here.
14968 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
14969 (status_pending_p): Don't consider explicitly suspended lwps.
14970 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
14971 pointer. Add OPTIONS argument. Change return type to int. Use
14972 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
14973 (linux_wait_for_event): Take an integer pid instead of a lwp_info
14974 pointer. Add status pointer argument. Return a pid instead of a
14975 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
14976 changes. In non-stop mode, don't switch to a random thread.
14977 (linux_wait): Rename to...
14978 (linux_wait_1): ... this. Add target_options argument, and handle
14979 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
14980 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
14981 clean exit and signal exit code. Don't stop all threads in
14982 non-stop mode. In all-stop mode, only stop all threads when
14983 reporting a stop to GDB. Handle explicit thread stop requests.
14984 (async_file_flush, async_file_mark): New.
14985 (linux_wait): New.
14986 (send_sigstop): Use lwpid_of.
14987 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
14988 interface changes. In non-stop mode, don't switch to a random
14989 thread.
14990 (linux_resume_one_lwp): Use lwpid_of.
14991 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
14992 (linux_resume_one_thread): ... this. Handle resume_stop. In
14993 non-stop mode, don't look for pending flag in all threads.
14994 (resume_status_pending_p): Don't consider explicitly suspended
14995 threads.
14996 (my_waitpid): Reimplement. Emulate __WALL.
14997 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
14998 Use lwpid_of.
14999 (sigchld_handler, linux_supports_non_stop, linux_async)
15000 (linux_start_non_stop): New.
15001 (linux_target_ops): Register linux_supports_non_stop, linux_async
15002 and linux_start_non_stop.
15003 (initialize_low): Install SIGCHLD handler.
15004 * thread-db.c (thread_db_create_event, find_one_thread)
15005 (thread_db_get_tls_address): Use lwpid_of.
15006 * win32-low.c (win32_detach): Adjust to use resume_kind.
15007 (win32_wait): Add `options' argument.
15008 * spu-low.c (spu_resume): Adjust to use resume_kind.
15009 (spu_wait): Add `options' argument.
15010
15011 2009-04-01 Pedro Alves <pedro@codesourcery.com>
15012
15013 Decouple target code from remote protocol.
15014
15015 * target.h (enum target_waitkind): New.
15016 (struct target_waitstatus): New.
15017 (struct target_ops) <wait>: Return an unsigned long. Take a
15018 target_waitstatus pointer instead of a char pointer.
15019 (mywait): Likewise.
15020 * target.c (mywait): Change prototype to return an unsigned long.
15021 Take a target_waitstatus pointer instead of a char pointer. Adjust.
15022 * server.h (thread_from_wait, old_thread_from_wait): Delete
15023 declarations.
15024 (prepare_resume_reply): Change prototype to take a
15025 target_waitstatus.
15026 * server.c (thread_from_wait, old_thread_from_wait): Delete.
15027 (last_status, last_ptid): New.
15028 (start_inferior): Remove "statusptr" argument. Adjust. Return a
15029 pid instead of a signal.
15030 (attach_inferior): Remove "status" and "signal" parameters.
15031 Adjust.
15032 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
15033 not as an address.
15034 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
15035 (handle_v_requests, myresume): Remove "status" and "signal"
15036 parameters. Adjust.
15037 (handle_status): New.
15038 (main): Delete local `status'. Adjust.
15039 * remote-utils.c: Include target.h.
15040 (prepare_resume_reply): Change prototype to take a
15041 target_waitstatus. Adjust.
15042
15043 * linux-low.c (linux_wait): Adjust to new target_ops->wait
15044 interface.
15045 * spu-low.c (spu_wait): Adjust.
15046 * win32-low.c (enum target_waitkind, struct target_waitstatus):
15047 Delete.
15048 (win32_wait): Adjust.
15049
15050 2009-04-01 Pedro Alves <pedro@codesourcery.com>
15051
15052 * target.h (struct thread_resume): Delete leave_stopped member.
15053 (struct target_ops): Add a `n' argument to the `resume' callback.
15054 * server.c (start_inferior): Adjust.
15055 (handle_v_cont, myresume): Adjust.
15056 * linux-low.c (check_removed_breakpoint): Adjust to resume
15057 interface change, and to removed leave_stopped field.
15058 (resume_ptr): Delete.
15059 (struct thread_resume_array): New.
15060 (linux_set_resume_request): Add new `arg' parameter. Adjust to
15061 resume interface change.
15062 (linux_continue_one_thread, linux_queue_one_thread)
15063 (resume_status_pending_p): Check if the resume field is NULL
15064 instead of checking the leave_stopped member.
15065 (linux_resume): Adjust to the target resume interface change.
15066 * spu-low.c (spu_resume): Adjust to the target resume interface
15067 change.
15068 * win32-low.c (win32_detach, win32_resume): Ditto.
15069
15070 2009-04-01 Pedro Alves <pedro@codesourcery.com>
15071
15072 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
15073 flag.
15074 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
15075 pending.
15076 (linux_continue_one_thread): Only preserve the stepping flag if
15077 there's a pending breakpoint.
15078
15079 2009-03-31 Pedro Alves <pedro@codesourcery.com>
15080
15081 * server.c (main): After the inferior having exited, call
15082 remote_close before exiting gdbserver.
15083
15084 2009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
15085
15086 Fix size of FPSCR in Power 7 processors.
15087 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
15088 (PPC_FEATURE_HAS_DFP): New #define.
15089 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
15090 size of the FPSCR.
15091
15092 2009-03-23 Pedro Alves <pedro@codesourcery.com>
15093
15094 * server.c (handle_query) Whitespace and formatting.
15095
15096 2009-03-22 Pedro Alves <pedro@codesourcery.com>
15097
15098 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
15099 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
15100 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
15101 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
15102 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
15103 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
15104 Makefile.in, configure.ac: Fix whitespace throughout.
15105 * configure: Regenerate.
15106
15107 2009-03-22 Pedro Alves <pedro@codesourcery.com>
15108
15109 * inferiors.c (find_inferior): Make it safe for the callback
15110 function to delete the currently iterated inferior.
15111
15112 2009-03-22 Pedro Alves <pedro@codesourcery.com>
15113
15114 * Makefile.in (linuw_low_h): Move higher.
15115 (thread-db.o): Depend on $(linux_low_h).
15116
15117 2009-03-17 Pedro Alves <pedro@codesourcery.com>
15118
15119 Rename "process" to "lwp" throughout.
15120
15121 * linux-low.c (all_processes): Rename to...
15122 (all_lwps): ... this.
15123 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
15124 (add_process): Rename to ...
15125 (add_lwp): ... this. Adjust.
15126 (linux_create_inferior): Adjust.
15127 (linux_attach_lwp): Adjust.
15128 (linux_attach): Adjust.
15129 (linux_kill_one_process): Rename to ...
15130 (linux_kill_one_lwp): ... this. Adjust.
15131 (linux_kill): Adjust.
15132 (linux_detach_one_process): Rename to ...
15133 (linux_detach_one_lwp): ... this. Adjust.
15134 (linux_detach): Adjust.
15135 (check_removed_breakpoint): Adjust.
15136 (status_pending_p): Adjust.
15137 (linux_wait_for_process): Rename to ...
15138 (linux_wait_for_lwp): ... this. Adjust.
15139 (linux_wait_for_event): Adjust.
15140 (send_sigstop): Adjust.
15141 (wait_for_sigstop): Adjust.
15142 (stop_all_processes): Rename to ...
15143 (stop_all_lwps): ... this.
15144 (linux_resume_one_process): Rename to ...
15145 (linux_resume_one_lwp): ... this. Adjust.
15146 (linux_set_resume_request, linux_continue_one_thread)
15147 (linux_queue_one_thread, resume_status_pending_p)
15148 (usr_store_inferior_registers, regsets_store_inferior_registers)
15149 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
15150 Adjust.
15151 * linux-low.h (get_process): Rename to ...
15152 (get_lwp): ... this. Adjust.
15153 (get_thread_process): Rename to ...
15154 (get_thread_lwp): ... this. Adjust.
15155 (get_process_thread): Rename to ...
15156 (get_lwp_thread): ... this. Adjust.
15157 (struct process_info): Rename to ...
15158 (struct lwp_info): ... this.
15159 (all_processes): Rename to ...
15160 (all_lwps): ... this.
15161 * proc-service.c (ps_lgetregs): Adjust.
15162 * thread-db.c (thread_db_create_event, find_one_thread)
15163 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
15164
15165 2009-03-14 Pedro Alves <pedro@codesourcery.com>
15166
15167 * server.c (handle_query): Handle "qAttached".
15168
15169 2009-03-13 Nathan Sidwell <nathan@codesourcery.com>
15170
15171 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
15172 GPLv3, update license URL.
15173
15174 2009-03-01 Doug Evans <dje@google.com>
15175
15176 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
15177 (server_h): Add gdb_signals.h.
15178 (signals.o): Update.
15179 * server.h (target_signal_from_host,target_signal_to_host_p)
15180 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
15181
15182 2009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
15183
15184 * remote-utils.c (getpkt): Also generate remote-debug
15185 information if noack_mode is set.
15186
15187 2009-02-06 Pedro Alves <pedro@codesourcery.com>
15188
15189 * server.c (handle_query): Report qXfer:siginfo:read and
15190 qXfer:siginfo:write as supported and handle them.
15191 * target.h (struct target_ops) <qxfer_siginfo>: New field.
15192 * linux-low.c (linux_xfer_siginfo): New.
15193 (linux_target_ops): Set it.
15194
15195 2009-01-26 Pedro Alves <pedro@codesourcery.com>
15196
15197 * server.c (gdbserver_usage): Mention --remote-debug.
15198 (main): Accept '--remote-debug' switch.
15199
15200 2009-01-18 Doug Evans <dje@google.com>
15201
15202 * regcache.c (new_register_cache): No need to check result of xcalloc.
15203 * server.c (handle_search_memory): Back out calls to xmalloc,
15204 result is checked and error is returned to user upon failure.
15205 (handle_query): Ditto. Add more checks for result of malloc.
15206 (handle_v_cont): Check result of malloc, report error back to
15207 user upon failure.
15208 (handle_v_run): Ditto. Call freeargv.
15209 * server.h (freeargv): Declare.
15210 * utils.c (freeargv): New fn.
15211
15212 2009-01-15 Doug Evans <dje@google.com>
15213
15214 * gdbreplay.c (perror_with_name): Make arg const char *.
15215 * server.h (target_signal_to_name): Make return type const char *.
15216 * thread-db.c (thread_db_err_str): Make return type const char *.
15217 * utils.c (perror_with_name): Make arg const char *.
15218
15219 2009-01-14 Pedro Alves <pedro@codesourcery.com>
15220
15221 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
15222 when handling a EXIT_PROCESS_DEBUG_EVENT.
15223
15224 2009-01-06 Joel Brobecker <brobecker@adacore.com>
15225
15226 * gdbreplay.c (gdbreplay_version): Update copyright year.
15227 * server.c (gdbserver_version): Likewise.
15228
15229 2009-01-05 Doug Evans <dje@google.com>
15230
15231 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
15232 (handle_extended_wait): Improve comment.
15233
15234 2008-12-13 Doug Evans <dje@google.com>
15235
15236 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
15237 * server.h (ATTR_MALLOC): New macro.
15238 (xmalloc,xcalloc,xstrdup): Declare.
15239 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
15240 * inferiors.c: Ditto.
15241 * linux-low.c: Ditto.
15242 * mem-break.c: Ditto.
15243 * regcache.c: Ditto.
15244 * remote-utils.c: Ditto.
15245 * server.c: Ditto.
15246 * target.c: Ditto.
15247 * win32-low.c: Ditto.
15248
15249 2008-12-12 Doug Evans <dje@google.com>
15250
15251 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
15252 in debugging printf.
15253
15254 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
15255
15256 2008-12-09 Doug Evans <dje@google.com>
15257
15258 * linux-low.h (struct process_info): Delete member tid, unused.
15259 * thread-db.c (find_one_thread): Update.
15260 (maybe_attach_thread): Update.
15261
15262 2008-12-02 Pedro Alves <pedro@codesourcery.com>
15263
15264 * target.h (struct target_ops): Add qxfer_osdata member.
15265 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
15266 and dirent.h.
15267 (linux_qxfer_osdata): New functions.
15268 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
15269 callback.
15270 * server.c (handle_query): Handle "qXfer:osdata:read:".
15271 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
15272 (buffer_xml_printf): New functions.
15273 * server.h (struct buffer): New.
15274 (buffer_grow_str, buffer_grow_str0): New macros.
15275 (buffer_grow, buffer_free, buffer_init, buffer_finish)
15276 (buffer_xml_printf): Declare.
15277
15278 2008-11-24 Doug Evans <dje@google.com>
15279
15280 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
15281
15282 2008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
15283
15284 * server.c (handle_v_run): Always use the supplied argument list.
15285
15286 2008-11-19 Bob Wilson <bob.wilson@acm.org>
15287
15288 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
15289 (xtensa_regmap_table): Add entry for scompare1.
15290
15291 2008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
15292
15293 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
15294 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
15295 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
15296 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
15297 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
15298 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
15299 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
15300 XML target descriptions.
15301 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
15302 when inferior is running on an ISA 2.05 or later processor. Add
15303 special case to return offset for full 64-bit slot of FPSCR when
15304 in 32-bits.
15305
15306 2008-11-14 Daniel Gutson <dgutson@codesourcery.com>
15307
15308 * Makefile.in (SFILES, clean): Added sparc64 files.
15309 (reg-sparc64.o, reg-sparc64.c): New.
15310 * configure.srv (sparc*-*-linux*): New configuration.
15311 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
15312 syscall arguments for SPARC.
15313 (regsets_store_inferior_registers): Likewise.
15314 * linux-sparc-low.c: New file.
15315
15316 2008-10-21 Doug Evans <dje@google.com>
15317
15318 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
15319 (READLINE_DIR,READLINE_DEP): Delete.
15320 (INTERNAL_CFLAGS): Update.
15321 (LINTFLAGS): Update.
15322
15323 2008-10-10 Pedro Alves <pedro@codesourcery.com>
15324
15325 * server.c (handle_v_run): If GDB didn't specify an argv, use the
15326 whole argv from the last run, not just argv[0].
15327
15328 2008-09-08 Pedro Alves <pedro@codesourcery.com>
15329
15330 * regcache.c (new_register_cache): Return NULL if the register
15331 cache size isn't known yet.
15332 (free_register_cache): Avoid dereferencing a NULL regcache.
15333
15334 2008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
15335
15336 * configure.srv: Merge MIPS and MIPS64.
15337
15338 2008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
15339
15340 * Makefile.in (uninstall): Apply $(EXEEXT) too.
15341
15342 2008-08-18 Luis Machado <luisgpm@br.ibm.com>
15343
15344 * Makefile.in: Add required vsx dependencies.
15345
15346 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
15347 Declare init_registers_powerpc_vsx32l.
15348 Declare init_registers_powerpc_vsx64l.
15349 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
15350 (ppc_arch_setup): Check for VSX in hwcap.
15351 (ppc_fill_vsxregset): New function.
15352 (ppc_store_vsxregset): New function.
15353 Add new VSX entry in regset_info target_regsets.
15354
15355 * configure.srv: Add new VSX dependencies.
15356
15357 2008-08-12 Pedro Alves <pedro@codesourcery.com>
15358
15359 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
15360 (remote_open): Set or clear transport_is_reliable.
15361 (putpkt_binary): Don't expect acks in noack mode.
15362 (getpkt): Don't send ack/nac in noack mode.
15363 * server.c (handle_general_set): Handle QStartNoAckMode.
15364 (handle_query): If connected by tcp pass QStartNoAckMode+ in
15365 qSupported.
15366 (main): Reset noack_mode on every connection.
15367 * server.h (noack_mode): Declare.
15368
15369 2008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15370
15371 * Makefile.in (GDBREPLAY_OBS): New variable.
15372 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
15373
15374 2008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
15375 Daniel Jacobowitz <dan@codesourcery.com>
15376
15377 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
15378 (usr_store_inferior_registers): Likewise.
15379 (regsets_store_inferior_registers): Likewise.
15380
15381 2008-07-31 Rolf Jansen <rj@surtec.com>
15382 Pedro Alves <pedro@codesourcery.com>
15383
15384 * configure.ac: Check for memmem declaration.
15385 * server.c [HAVE_MALLOC_H]: Include malloc.h.
15386 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
15387 (disable_packet_qfThreadInfo): Unconditionally compile.
15388 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
15389 * configure, config.in: Regenerate.
15390
15391 2008-07-28 Doug Kwan <dougkwan@google.com>
15392
15393 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
15394 (linux_write_memory): Remove declaration of errno.
15395
15396 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
15397
15398 * linux-low.c (handle_extended_wait): Do not use "status"
15399 variable uninitialized.
15400
15401 2008-07-07 Pedro Alves <pedro@codesourcery.com>
15402
15403 * server.c (handle_v_attach): Inhibit reporting dll changes.
15404
15405 2008-06-27 Pedro Alves <pedro@codesourcery.com>
15406
15407 * remote-utils.c (prepare_resume_reply): If requested, don't
15408 output "thread:TID" in the T stop reply.
15409
15410 * server.c (disable_packet_vCont, disable_packet_Tthread)
15411 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
15412 (handle_query): If requested, disable support for qC, qfThreadInfo
15413 and qsThreadInfo.
15414 (handle_v_requests): If requested, disable support for vCont.
15415 (gdbserver_show_disableable): New.
15416 (main): Handle --disable-packet and --disable-packet=LIST.
15417
15418 * server.h (disable_packet_vCont, disable_packet_Tthread)
15419 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
15420
15421 2008-06-20 Carlos O'Donell <carlos@codesourcery.com>
15422
15423 * server.c (gdbserver_usage): Mention --version.
15424
15425 2008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
15426
15427 * Makefile.in (gdbreplay.o): New rule.
15428
15429 2008-06-06 Joseph Myers <joseph@codesourcery.com>
15430
15431 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
15432 message, not gdbserver.
15433
15434 2008-06-05 Vladimir Prus <vladimir@codesourcery.com>
15435 Nathan Sidwell <nathan@codesourcery.com>
15436 Joseph Myers <joseph@codesourcery.com>
15437
15438 * acinclude.m4: Include ../../config/acx.m4.
15439 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
15440 * configure, config.in: Regenerate.
15441 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
15442 * server.c (gdbserver_version): Print PKGVERSION.
15443 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
15444 (main): Adjust gdbserver_usage calls.
15445 * gdbreplay.c (version, host_name): Add declarations.
15446 (gdbreplay_version, gdbreplay_usage): New.
15447 (main): Accept --version and --help options.
15448
15449 2008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
15450
15451 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
15452 (arm_breakpoint_at): Handle Thumb.
15453 (the_low_target): Add comment.
15454
15455 2008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
15456
15457 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
15458
15459 2008-05-09 Doug Evans <dje@google.com>
15460
15461 * server.h (decode_search_memory_packet): Declare.
15462 * remote-utils.c (decode_search_memory_packet): New fn.
15463 * server.c (handle_search_memory_1): New fn.
15464 (handle_search_memory): New fn.
15465 (handle_query): Process qSearch:memory packets.
15466
15467 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
15468
15469 * regcache.c (registers_length): Remove.
15470 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
15471 full register packet.
15472 * regcache.h (registers_length): Remove prototype.
15473 * server.h (PBUFSIZ): Define to 16384.
15474
15475 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
15476
15477 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
15478 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
15479 powerpc-64l.o, and powerpc-altivec64l.o.
15480 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
15481 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
15482 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
15483 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
15484 rs6000/power-linux.xml, and rs6000/power64-linux.xml
15485 to srv_xmlfiles.
15486
15487 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
15488 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
15489 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
15490 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
15491 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
15492 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
15493 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
15494 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
15495 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
15496 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
15497 (clean): Update.
15498
15499 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
15500 (init_registers_powerpc_32l): ... this new prototype.
15501 (init_registers_powerpc_32): Remove, replace by ...
15502 (init_registers_powerpc_altivec32l): ... this new prototype.
15503 (init_registers_powerpc_e500): Remove, replace by ...
15504 (init_registers_powerpc_e500l): ... this new prototype.
15505 (init_registers_ppc64): Remove, replace by ...
15506 (init_registers_powerpc_64l): ... this new prototype.
15507 (init_registers_powerpc_64): Remove, replace by ...
15508 (init_registers_powerpc_altivec64l): ... this new prototype.
15509 (ppc_num_regs): Set to 73.
15510 (PT_ORIG_R3, PT_TRAP): Define if necessary.
15511 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
15512 (ppc_cannot_store_register): Handle orig_r3 and trap.
15513 (ppc_arch_setup): Update init_registers_... calls.
15514 (ppc_fill_gregset): Handle orig_r3 and trap.
15515
15516 * inferiors.c (clear_inferiors): Reset current_inferior.
15517
15518 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
15519
15520 * acinclude.m4: Add override.m4.
15521 * configure: Regenerate.
15522
15523 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
15524
15525 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
15526 initial call to init_register_ppc64.
15527
15528 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
15529
15530 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
15531 single powerpc*-*-linux* case.
15532 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
15533
15534 2008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
15535
15536 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
15537 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
15538 from reg_xmlfiles.
15539 * linux-ppc-low.c: Include <elf.h>.
15540 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
15541 (ppc_hwcap): New global variable.
15542 (ppc_regmap): Remove __SPE__ #ifdef sections.
15543 (ppc_regmap_e500): New global variable.
15544 (ppc_cannot_store_register): Update __SPE__ special case.
15545 (ppc_get_hwcap): New function.
15546 (ppc_arch_setup): Use it to determine whether inferior supports
15547 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
15548 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
15549 Do not access registers if target does not support AltiVec.
15550 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
15551 Do not access registers if target does not support SPE.
15552 (target_regsets): Unconditionally include AltiVec and SPE regsets.
15553
15554 2008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
15555
15556 * linux-low.c (disabled_regsets, num_regsets): New.
15557 (use_regsets_p): Delete.
15558 (linux_wait_for_process): Clear disabled_regsets.
15559 (regsets_fetch_inferior_registers): Check and set it.
15560 (regsets_store_inferior_registers): Likewise.
15561 (linux_fetch_registers, linux_store_registers): Do not use
15562 use_regsets_p.
15563 (initialize_low): Allocate disabled_regsets.
15564
15565 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
15566
15567 * Makefile.in (LIBOBJS): New.
15568 (OBS): Use LIBOBJS.
15569 (memmem.o): New rule.
15570 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
15571 * configure: Regenerated.
15572
15573 2008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
15574
15575 * server.c (handle_query): Never return "unsupported" for
15576 qXfer:features:read queries.
15577
15578 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
15579
15580 * server.c (get_features_xml): Fix inverted condition.
15581 (handle_query): Always support qXfer:feature:read.
15582
15583 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
15584
15585 * server.c (wrapper_argv): New.
15586 (start_inferior): Handle wrapper_argv. If set, expect an extra
15587 trap.
15588 (gdbserver_usage): Document --wrapper.
15589 (main): Parse --wrapper.
15590
15591 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
15592
15593 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
15594 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
15595 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
15596 (ppc_set_pc): Likewise.
15597 (ppc_arch_setup): New function.
15598 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
15599 of collect_register.
15600 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
15601
15602 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
15603
15604 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
15605 instead of linux-ppc64-low.o.
15606 * linux-ppc64-low.c: Remove file.
15607 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
15608 (linux-ppc64-low.o): Remove rule.
15609
15610 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
15611 (init_registers_powerpc_64): Likewise.
15612 (ppc_regmap): Conditionally define depending on __powerpc64__.
15613 (ppc_cannot_store_register): Do not special-case "fpscr" when
15614 compiled on __powerpc64__.
15615 (ppc_collect_ptrace_register): New function.
15616 (ppc_supply_ptrace_register): New function.
15617 (ppc_breakpoint): Change type to "unsigned int".
15618 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
15619 (the_low_target): Conditionally provide initializers for the
15620 arch_setup member depending on __powerpc64__. Install
15621 collect_ptrace_register and supply_ptrace_register members.
15622
15623 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
15624
15625 * regcache.h (gdbserver_xmltarget): Add extern declaration.
15626 * server.c (gdbserver_xmltarget): Define.
15627 (get_features_xml): Use it to replace "target.xml" and arch_string.
15628
15629 * configure.srv: Remove srv_xmltarget. Add XML files that were
15630 mentioned there to srv_xmlfiles instead. Remove conditional tests
15631 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
15632 srv_xmlfiles and srv_regobj to include all possible choices.
15633 * configure.ac (srv_xmltarget): Remove.
15634 (srv_xmlfiles): Do not add "target.xml".
15635 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
15636 checks for supplementary target information.
15637 * configure: Regenerate.
15638 * Makefile.in (XML_TARGET): Remove.
15639 (target.xml): Remove rule.
15640 (clean): Do not clean up target.xml.
15641 (.PRECIOUS): Do not mention target.xml.
15642
15643 * target.h (struct target_ops): Remove arch_string member.
15644 * linux-low.c (linux_arch_string): Remove.
15645 (linux_target_ops): Remove arch_string initializer.
15646 * linux-low.h (struct linux_target_ops): Remove arch_string member.
15647 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
15648 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
15649 * spu-low.c (spu_arch_string): Remove.
15650 (spu_target_ops): Remove arch_string initializer.
15651 * win32-low.c (win32_arch_string): Remove.
15652 (win32_target_ops): Remove arch_string initializer.
15653 * win32-low.h (struct win32_target_ops): Remove arch_string member.
15654 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
15655 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
15656
15657 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
15658
15659 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
15660 by collect_ptrace_register and supply_ptrace_register hooks.
15661 * linux-low.c (fetch_register): Use supply_ptrace_register callback
15662 instead of checking for the_low_target.left_pad_xfer.
15663 (usr_store_inferior_registers): Use collect_ptrace_register callback
15664 instead of checking for the_low_target.left_pad_xfer.
15665
15666 * linux-s390-low.c (s390_collect_ptrace_register): New function.
15667 (s390_supply_ptrace_register): Likewise.
15668 (s390_fill_gregset): Call s390_collect_ptrace_register.
15669 (the_low_target): Update.
15670
15671 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
15672 (ppc_supply_ptrace_register): Likewise.
15673 (the_low_target): Update.
15674
15675 * linux-i386-low.c (the_low_target): Update.
15676 * linux-x86-64-low.c (the_low_target): Update.
15677
15678 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
15679
15680 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
15681 reg-s390.o and reg-s390x.o.
15682
15683 * linux-low.c (new_inferior): New global variable.
15684 (linux_create_inferior, linux_attach): Set it.
15685 (linux_wait_for_process): Call the_low_target.arch_setup after the
15686 target has stopped for the first time.
15687 (initialize_low): Do not call the_low_target.arch_setup.
15688
15689 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
15690 (s390_set_pc): Likewise.
15691 (s390_arch_setup): New function.
15692 (the_low_target): Use s390_arch_setup as arch_setup routine.
15693
15694 * regcache.c (realloc_register_cache): New function.
15695 (set_register_cache): Call it for each existing regcache.
15696
15697 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
15698
15699 * server.h (init_registers): Remove prototype.
15700
15701 * linux-low.h (struct linux_target_ops): Add arch_setup field.
15702 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
15703 instead of init_registers ().
15704 * linux-arm-low.c (init_registers_arm): Add prototype.
15705 (init_registers_arm_with_iwmmxt): Likewise.
15706 (the_low_target): Add initializer for arch_setup field.
15707 * linux-cris-low.c (init_registers_cris): Add prototype.
15708 (the_low_target): Add initializer for arch_setup field.
15709 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
15710 (the_low_target): Add initializer for arch_setup field.
15711 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
15712 (the_low_target): Add initializer for arch_setup field.
15713 * linux-ia64-low.c (init_registers_ia64): Add prototype.
15714 (the_low_target): Add initializer for arch_setup field.
15715 * linux-m32r-low.c (init_registers_m32r): Add prototype.
15716 (the_low_target): Add initializer for arch_setup field.
15717 * linux-m68k-low.c (init_registers_m68k): Add prototype.
15718 (the_low_target): Add initializer for arch_setup field.
15719 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
15720 (init_registers_mips64_linux): Likewise.
15721 (the_low_target): Add initializer for arch_setup field.
15722 * linux-ppc-low.c (init_registers_ppc): Add prototype.
15723 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
15724 (the_low_target): Add initializer for arch_setup field.
15725 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
15726 (init_registers_powerpc_64): Likewise.
15727 (the_low_target): Add initializer for arch_setup field.
15728 * linux-s390-low.c (init_registers_s390): Add prototype.
15729 (init_registers_s390x): Likewise.
15730 (the_low_target): Add initializer for arch_setup field.
15731 * linux-sh-low.c (init_registers_sh): Add prototype.
15732 (the_low_target): Add initializer for arch_setup field.
15733 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
15734 (the_low_target): Add initializer for arch_setup field.
15735 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
15736 (the_low_target): Add initializer for arch_setup field.
15737
15738 * win32-low.h (struct win32_target_ops): Add arch_setup field.
15739 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
15740 instead of init_registers ().
15741 * win32-arm-low.c (init_registers_arm): Add prototype.
15742 (the_low_target): Add initializer for arch_setup field.
15743 * win32-i386-low.c (init_registers_i386): Add prototype.
15744 (the_low_target): Add initializer for arch_setup field.
15745
15746 * spu-low.c (init_registers_spu): Add prototype.
15747 (initialize_low): Call initialie_registers_spu () instead of
15748 initialize_registers ().
15749
15750 2008-02-19 Pedro Alves <pedro@codesourcery.com>
15751
15752 * server.c (handle_v_requests): When handling the vRun and vAttach
15753 packets, if already debugging a process, don't kill it. Return an
15754 error instead.
15755
15756 2008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
15757
15758 * server.c (handle_query): Correct length check.
15759
15760 2008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
15761
15762 * win32-low.c (do_initial_child_stuff): Add process handle
15763 parameter. Set current_process_handle and current_process_id from the
15764 parameters. Clear globals.
15765 (win32_create_inferior): Don't set current_process_handle and
15766 current_process_id here. Instead pass them on the call to
15767 do_initial_child_stuff.
15768 (win32_attach): Likewise.
15769 (win32_clear_inferiors): New.
15770 (win32_kill): Don't close the current process handle or the
15771 current thread handle here. Instead call win32_clear_inferiors.
15772 (win32_detach): Don't open a new handle to the process. Call
15773 win32_clear_inferiors.
15774 (win32_join): Don't rely on current_process_handle; open a new
15775 handle using the process id.
15776 (win32_wait): Call win32_clear_inferiors when the inferior process
15777 has exited.
15778
15779 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
15780
15781 * server.c (monitor_show_help): Add "exit".
15782
15783 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
15784
15785 * Makefile.in (SFILES): Add linux-xtensa-low.c.
15786 (clean): Add reg-xtensa.c.
15787 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
15788 * configure.srv (xtensa*-*-linux*) New target.
15789 * linux-xtensa-low.c: New.
15790 * xtensa-xtregs.c: New.
15791
15792 2008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
15793
15794 * hostio.c: Don't include errno.h.
15795 (errno_to_fileio_errno): Move to hostio-errno.
15796 * hostio.c: (hostio_error): Remove the error parameter. Defer the
15797 error number outputting to the target->hostio_last_error callback.
15798 (hostio_packet_error): Use FILEIO_EINVAL directly.
15799 (handle_open, handle_pread, hostio_error, handle_unlink): Update
15800 calls to hostio_error.
15801 * hostio-errno.c: New.
15802 * server.h (hostio_last_error_from_errno): Declare.
15803 * target.h (target_ops): Add hostio_last_error member.
15804 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
15805 as hostio_last_error handler.
15806 * spu-low.c (spu_target_ops): Likewise.
15807 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
15808 (wince_hostio_last_error): New functions.
15809 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
15810 as hostio_last_error handler.
15811 (win32_target_ops) [!_WIN32_WCE]: Register
15812 hostio_last_error_from_errno as hostio_last_error handler.
15813 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
15814 (hostio-errno.o): New rule.
15815 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
15816 * configure.srv (srv_hostio_err_objs): New variable. Default to
15817 hostio-errno.o.
15818 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
15819 * configure: Regenerate.
15820
15821 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
15822
15823 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
15824 (linux_kill, linux_detach): Clean up the process list.
15825 * remote-utils.c (remote_open): Improve port number parsing.
15826 (putpkt_binary, input_interrupt): Only send interrupts if the target
15827 is running.
15828 * server.c (extended_protocol): Make static.
15829 (attached): Define earlier.
15830 (exit_requested, response_needed, program_argv): New variables.
15831 (target_running): New.
15832 (start_inferior): Clear attached here.
15833 (attach_inferior): Set attached here.
15834 (require_running): Define.
15835 (handle_query): Use require_running and target_running. Implement
15836 "monitor exit".
15837 (handle_v_attach, handle_v_run): New.
15838 (handle_v_requests): Use require_running. Handle vAttach and vRun.
15839 (gdbserver_usage): Update.
15840 (main): Redo argument parsing. Handle --debug and --multi. Handle
15841 --attach along with other options or after the port. Save
15842 program_argv. Support no initial program. Resynchronize
15843 communication with GDB after an error. Handle "monitor exit".
15844 Use require_running and target_running. Always allow the extended
15845 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
15846 restart in extended mode.
15847 * README: Refer to the GDB manual. Update --attach usage.
15848
15849 2007-12-20 Andreas Schwab <schwab@suse.de>
15850
15851 * linux-low.c (STACK_SIZE): Define.
15852 (linux_tracefork_child): Use it. Use __clone2 on ia64.
15853 (linux_test_for_tracefork): Likewise.
15854
15855 2007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
15856
15857 * linux-low.c (linux_wait_for_event): Update messages. Do not
15858 reinsert auto-delete breakpoints.
15859 * mem-break.c (struct breakpoint): Change return type of handler to
15860 int.
15861 (set_breakpoint_at): Update handler type.
15862 (reinsert_breakpoint_handler): Return 1 instead of calling
15863 delete_breakpoint.
15864 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
15865 setting a new one.
15866 (check_breakpoints): Delete auto-delete breakpoints and return 2.
15867 * mem-break.h (set_breakpoint_at): Update handler type.
15868 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
15869 * win32-low.c (auto_delete_breakpoint): New.
15870 (get_child_debug_event): Use it.
15871
15872 2007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
15873
15874 * configure.ac: Check for pread and pwrite.
15875 * hostio.c (handle_pread): Fall back to lseek and read.
15876 (handle_pwrite): Fall back to lseek and write.
15877 * config.in, configure: Regenerated.
15878
15879 2007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
15880
15881 * server.c (myresume): Add own_buf argument.
15882 (main): Update calls.
15883
15884 2007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
15885
15886 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
15887 * remote-utils.c (remote_open): Do not call disable_async_io.
15888 (block_async_io): Delete.
15889 (unblock_async_io): Make static.
15890 (initialize_async_io): New.
15891 * server.c (handle_v_cont): Handle async I/O here.
15892 (myresume): Likewise. Move other common resume tasks here...
15893 (main): ... from here. Call initialize_async_io. Disable async
15894 I/O before the main loop.
15895 * server.h (initialize_async_io): Declare.
15896 (block_async_io, unblock_async_io): Delete prototypes.
15897 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
15898
15899 2007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
15900
15901 * remote-utils.c (readchar): Allow binary data in received messages.
15902
15903 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
15904
15905 * win32-low.c (attaching): New global.
15906 (win32_create_inferior): Clear the `attaching' global.
15907 (win32_attach): Set the `attaching' global.
15908 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
15909 attaching. Only set a breakpoint at the entry point if not
15910 attaching.
15911
15912 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
15913
15914 * server.c (main): Don't report dll events on the initial
15915 connection on attaches.
15916
15917 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
15918
15919 * server.c (main): Relax numerical bases supported for the pid of
15920 the --attach command line argument.
15921
15922 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
15923
15924 * win32-low.c (win32_attach): Call OpenProcess before
15925 DebugActiveProcess, not after. Add last error output to error
15926 call.
15927
15928 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
15929
15930 * win32-low.c (win32_get_thread_context)
15931 (win32_set_thread_context): New functions.
15932 (thread_rec): Use win32_get_thread_context.
15933 (continue_one_thread, win32_resume): Use win32_set_thread_context.
15934 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
15935 field.
15936
15937 2007-12-03 Leo Zayas
15938 Pedro Alves <pedro_alves@portugalmail.pt>
15939
15940 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
15941 global variables.
15942 (child_add_thread): Minor cleanup.
15943 (child_continue): Resume artificially suspended threads before
15944 calling ContinueDebugEvent.
15945 (suspend_one_thread): New.
15946 (fake_breakpoint_event): New.
15947 (get_child_debug_event): Change return type to int. Check here if
15948 gdb sent an interrupt request. If a soft interrupt was requested,
15949 fake a breakpoint event. Return 0 if there is no event to handle,
15950 and 1 otherwise.
15951 (win32_wait): Don't check here if gdb sent an interrupt request.
15952 Ensure there is a valid event to handle.
15953 (win32_request_interrupt): Add soft interruption method as last
15954 resort.
15955
15956 2007-12-03 Leo Zayas
15957 Pedro Alves <pedro_alves@portugalmail.pt>
15958
15959 * win32-low.h (win32_thread_info): Add descriptions to the
15960 structure members. Replace `suspend_count' counter by a
15961 `suspended' flag.
15962 * win32-low.c (thread_rec): Update condition of when to get the
15963 context from the inferior. Rely on ContextFlags being set if it
15964 has already been retrieved. Only suspend the inferior thread if
15965 we haven't already. Warn if that fails.
15966 (continue_one_thread): s/suspend_count/suspended/. Only call
15967 ResumeThread once. Warn if that fails.
15968
15969 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
15970
15971 * win32-low.c (win32_wait): Don't read from the inferior when it
15972 has already exited.
15973
15974 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
15975
15976 * Makefile.in (win32_low_h): New variable.
15977 (win32-low.o): Add dependency on $(win32_low_h).
15978 (win32-arm-low.o, win32-i386-low.o): New rules.
15979
15980 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
15981
15982 * hostio.c: Correct copyright year.
15983
15984 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
15985
15986 * Makefile.in (OBS): Add hostio.o.
15987 (hostio.o): New rule.
15988 * server.h (handle_vFile): Declare.
15989 * hostio.c: New file.
15990 * server.c (handle_v_requests): Take packet_len and new_packet_len
15991 for binary packets. Call handle_vFile.
15992 (main): Update call to handle_v_requests.
15993
15994 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
15995
15996 * linux-low.c: Include <sched.h>.
15997
15998 2007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
15999
16000 * linux-low.c (linux_tracefork_grandchild): New.
16001 (linux_tracefork_child): Use clone.
16002 (linux_test_for_tracefork): Use clone; allocate and free a stack.
16003
16004 2007-10-31 Joel Brobecker <brobecker@adacore.com>
16005
16006 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
16007
16008 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
16009
16010 * linux-low.c (handle_extended_wait): Handle unexpected signals.
16011
16012 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
16013
16014 * inferiors.c (change_inferior_id): Delete.
16015 (add_pid_to_list, pull_pid_from_list): New.
16016 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
16017 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
16018 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
16019 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
16020 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
16021 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
16022 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
16023 (using_threads): Always set to 1.
16024 (handle_extended_wait): New.
16025 (add_process): Do not set TID.
16026 (linux_create_inferior): Set must_set_ptrace_flags.
16027 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
16028 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
16029 (linux_thread_alive): Rename TID argument to LWPID.
16030 (linux_wait_for_process): Handle unknown processes. Do not use TID.
16031 (linux_wait_for_event): Do not use TID or check using_threads. Update
16032 call to dead_thread_notify. Call handle_extended_wait.
16033 (linux_create_inferior): Use PTRACE_SETOPTIONS.
16034 (send_sigstop): Delete sigstop_sent.
16035 (wait_for_sigstop): Avoid TID.
16036 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
16037 (linux_test_for_tracefork): New.
16038 (linux_lookup_signals): Use thread_db_active and
16039 linux_supports_tracefork_flag.
16040 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
16041 * linux-low.h (get_process_thread): Avoid TID.
16042 (struct process_ifo): Move thread_known and tid to the end. Remove
16043 sigstop_sent.
16044 (linux_attach_lwp, thread_db_init): Update prototypes.
16045 * server.h (change_inferior_id): Delete prototype.
16046 (add_pid_to_list, pull_pid_from_list): New prototypes.
16047 * thread-db.c (thread_db_use_events): New.
16048 (find_first_thread): Rename to...
16049 (find_one_thread): ...this. Update callers and messages. Do not
16050 call fatal. Check thread_db_use_events. Do not call
16051 change_inferior_id or new_thread_notify.
16052 (maybe_attach_thread): Update. Do not call new_thread_notify.
16053 (thread_db_init): Set thread_db_use_events. Check use_events.
16054 * utils.c (fatal, warning): Correct message prefix.
16055
16056 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
16057
16058 * Makefile.in (clean): Remove new files.
16059 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
16060 (powerpc-64.o, powerpc-64.c): New rules.
16061 * configure.srv: Use alternate register sets for powerpc64-*-linux*
16062 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
16063 with SPE.
16064 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
16065 SPE targets.
16066 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
16067 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
16068 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
16069 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
16070 (target_regsets): Add AltiVec and SPE register sets.
16071 * configure.ac: Check for AltiVec and SPE.
16072 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
16073 (ppc_fill_vrregset, ppc_store_vrregset): New.
16074 (target_regsets): Add AltiVec register set.
16075 * configure: Regenerated.
16076
16077 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
16078
16079 * linux-low.c (O_LARGEFILE): Define.
16080 (linux_read_memory): Use /proc/PID/mem.
16081 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
16082 * configure, config.in: Regenerated.
16083
16084 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
16085
16086 * linux-low.c (linux_wait_for_event): Do not pass signals while
16087 single-stepping.
16088
16089 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
16090
16091 * win32-low.c (create_process): New.
16092 (win32_create_inferior): Use create_process instead of
16093 CreateProcess. If create_process failed retry appending an ".exe"
16094 suffix. Store the GetLastError result immediatelly after
16095 create_process calls and use it on the call to error.
16096
16097 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
16098
16099 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
16100
16101 2007-08-23 Joel Brobecker <brobecker@adacore.com>
16102
16103 * configure.ac: Switch license to GPLv3.
16104
16105 2007-08-01 Michael Snyder <msnyder@access-company.com>
16106
16107 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
16108
16109 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
16110
16111 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
16112 typedef.
16113 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
16114 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
16115 CloseToolhelp32Snapshot.
16116 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
16117 CloseToolhelp32Snapshot.
16118
16119 2007-07-27 Michael Snyder <michael.snyder@access-company.com>
16120
16121 * server.c (main): Check for inferior exit before main loop.
16122
16123 2007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
16124
16125 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
16126 instead of on tmp_desc.
16127
16128 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
16129 Daniel Jacobowitz <dan@codesourcery.com>
16130
16131 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
16132 (add_thread): Minor cleanups.
16133 (clear_inferiors): Move lower in the file. Clear the DLL
16134 list.
16135 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
16136 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
16137 (xml_escape_text): New.
16138 * server.c (handle_query): Handle qXfer:libraries:read. Report it
16139 for qSupported.
16140 (handle_v_cont): Report errors.
16141 (gdbserver_version): Update.
16142 (main): Correct size of own_buf. Do not report initial DLL events.
16143 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
16144 (unloaded_dll, xml_escape_text): New.
16145 * win32-low.c (enum target_waitkind): Update comments.
16146 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
16147 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
16148 (win32_EnumProcessModules, win32_GetModuleInformation)
16149 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
16150 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
16151 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
16152 (win32_Module32First, win32_Module32Next, load_toolhelp)
16153 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
16154 (get_child_debug_event): Handle DLL events.
16155 (win32_wait): Likewise.
16156
16157 2007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
16158
16159 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
16160 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
16161
16162 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
16163
16164 * win32-low.c (handle_output_debug_string): Ignore event if not
16165 waiting.
16166
16167 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
16168
16169 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
16170
16171 2007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
16172
16173 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
16174
16175 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
16176
16177 * inferiors.c (change_inferior_id): Add comment.
16178 * linux-low.c (check_removed_breakpoint): Add an early
16179 prototype. Improve debug output.
16180 (linux_attach): Doc update.
16181 (linux_detach_one_process, linux_detach): Clean up before releasing
16182 each process.
16183 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
16184 * linux-low.h (struct process_info): Doc improvement.
16185 * mem-break.c (delete_all_breakpoints): New.
16186 * mem-break.h (delete_all_breakpoints): New prototype.
16187 * thread-db.c (find_first_thread): New.
16188 (thread_db_create_event): Call it instead of
16189 thread_db_find_new_threads. Clean up unused variables.
16190 (maybe_attach_thread): Remove first thread handling.
16191 (thread_db_find_new_threads): Use find_first_thread.
16192 (thread_db_get_tls_address): Likewise.
16193
16194 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
16195
16196 * thread-db.c (thread_db_find_new_threads): Add prototype.
16197 (thread_db_create_event): Check for the main thread before adding
16198 a new thread.
16199 (maybe_attach_thread): Only enable event reporting if TID == 0.
16200 (thread_db_get_tls_address): Check for new threads.
16201
16202 2007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
16203
16204 * linux-low.c (linux_create_inferior): Try execv before execvp.
16205 * spu-low.c (spu_create_inferior): Likewise.
16206
16207 2007-06-13 Mike Frysinger <vapier@gentoo.org>
16208
16209 * linux-low.c (linux_create_inferior): Change execv to execvp.
16210 * spu-low.c (spu_create_inferior): Likewies.
16211
16212 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
16213
16214 * Makefile.in (clean): Clean new files instead of deleted ones.
16215 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
16216 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
16217 rules.
16218 * configure.srv: Specify XML files and new regformats for MIPS and
16219 MIPS64 GNU/Linux.
16220 * linux-mips-low.c (mips_num_regs): Set to only used registers.
16221 (mips_regmap): Do not fetch $0. Remove unused registers. Add
16222 an entry for the restart register.
16223 (mips_cannot_fetch_register, mips_cannot_store_register)
16224 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
16225 register names to match the XML descriptions.
16226 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
16227 restart register instead of $0.
16228
16229 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
16230 Markus Deuling <deuling@de.ibm.com>
16231
16232 * remote-utils.c (decode_xfer_write): New function.
16233 * server.h (decode_xfer_write): Add prototype.
16234 * server.c (handle_query): Add PACKET_LEN argument. Support
16235 qXfer:spu:read and qXfer:spu:write packets.
16236 (main): Pass packet_len to handle_query.
16237 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
16238 * target.h (target_ops): Add qxfer_spu.
16239
16240 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
16241
16242 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
16243 accessing non-seekable spufs files.
16244
16245 2007-05-16 Markus Deuling <deuling@de.ibm.com>
16246
16247 * server.c (handle_query): Add reply for qC packet.
16248
16249 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
16250 Leo Zayas <lerele@champenstudios@com>
16251
16252 * server.h (check_remote_input_interrupt_request): New function.
16253 * remote_utils.c (INVALID_DESCRIPTOR): New define.
16254 (remote_desc): Initialize with INVALID_DESCRIPTOR.
16255 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
16256 (check_remote_input_interrupt_request): New function.
16257 * server.h (check_remote_input_interrupt_request): Declare.
16258 * win32-low.c (winapi_DebugBreakProcess,
16259 winapi_GenerateConsoleCtrlEvent): New typedefs.
16260 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
16261 to 250 ms.
16262 (win32_wait): Check for remote interrupt request
16263 with check_remote_input_interrupt_request.
16264 (win32_request_interrupt): New function.
16265 (win32_target_op): Set request_interrupt to win32_request_interrupt.
16266
16267 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
16268
16269 * win32-low.c (debug_registers_changed,
16270 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
16271 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
16272 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
16273 (thread_rec): Get context using the low target.
16274 (child_add_thread): Call thread_added on the low target,
16275 which does the same thing.
16276 (regptr): Delete.
16277 (do_initial_child_stuff): Remove debug registers references.
16278 Set context using the low target. Resume threads after
16279 setting the contexts.
16280 (child_continue): Remove dead variable. Remove debug
16281 registers references.
16282 (child_fetch_inferior_registers): Go through the low target.
16283 (do_child_store_inferior_registers): Remove.
16284 (child_store_inferior_registers): Go through the low target.
16285 (win32_resume): Remove debug registers references.
16286 Set context using the low target.
16287 (handle_exception): Change return type to void. Don't record
16288 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
16289 first chance exception.
16290 (get_child_debug_event): Change return type to void. Remove
16291 goto loop. Always return after waiting for debug event.
16292 (win32_wait): Convert to switch statement. Handle spurious
16293 events.
16294
16295 * win32-i386-low.c (debug_registers_changed,
16296 debug_registers_used): New.
16297 (initial_stuff): Rename to ...
16298 (i386_initial_stuff): ... this. Clear debug registers
16299 state variables.
16300 (store_debug_registers): Delete.
16301 (i386_get_thread_context): New.
16302 (load_debug_registers): Delete.
16303 (i386_set_thread_context): New.
16304 (i386_thread_added): New.
16305 (single_step): Rename to ...
16306 (i386_single_step): ... this.
16307 (do_fetch_inferior_registers): Rename to ...
16308 (i386_fetch_inferior_register): ... this.
16309 (i386_store_inferior_register): New.
16310 (the_low_target): Adapt to new interface.
16311
16312 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
16313 (arm_get_thread_context): New.
16314 (arm_set_thread_context): New.
16315 (regptr): New.
16316 (do_fetch_inferior_registers): Rename to ...
16317 (arm_fetch_inferior_register): ... this.
16318 (arm_store_inferior_register): New.
16319 (arm_wince_breakpoint): Reimplement as unsigned long.
16320 (arm_wince_breakpoint_len): Define.
16321 (the_low_target): Adapt to new interface.
16322
16323 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
16324 load_debug_registers. Add get_thread_context, set_thread_context,
16325 thread_added and store_inferior_register. Rename
16326 fetch_inferior_registers to fetch_inferior_register.
16327 (regptr): Remove declaration.
16328
16329 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
16330
16331 * linux-low.c (linux_detach): Change return type to int. Return 0.
16332 * spu-low.c (spu_detach): Likewise.
16333
16334 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
16335
16336 * target.h (target_ops): Change return type of detach to int.
16337 Add join.
16338 (join_inferior): New.
16339 * server.c (main): Don't skip detach support on mingw32.
16340 If the inferior doesn't support detaching return error.
16341 Call join_inferior instead of using waitpid.
16342 * linux-low.c (linux_join): New.
16343 (linux_target_op): Add linux_join.
16344 * spu-low.c (spu_join): New.
16345 (spu_target_ops): Add spu_join.
16346 * win32-low.c (win32_detach): Adapt to new interface.
16347 Reopen current_process_handle before detaching. Issue a child
16348 resume before detaching.
16349 (win32_join): New.
16350 (win32_target_op): Add win32_join.
16351
16352 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
16353
16354 * win32-low.c (win32-attach): Fix return value.
16355 * target.h (target_ops): Describe ATTACH return values.
16356
16357 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
16358
16359 * win32-low.c (GETPROCADDRESS): Define.
16360 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
16361 (winapi_DebugSetProcessKillOnExit): Likewise.
16362 (win32_create_inferior): Force usage of ansi CreateProcessA.
16363 (win32_attach): Use GETPROCADDRESS.
16364 (win32_detach): Likewise.
16365
16366 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
16367
16368 * win32-low.c (win32_wait): Don't use WSTOPSIG.
16369
16370 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
16371
16372 * win32-low.c: Commit leftover changes from 2007-03-29.
16373
16374 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
16375
16376 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
16377 fields short instead of int. Add explicit padding.
16378 (i387_cache_to_fsave): Remove unnecessary casts.
16379 (i387_fsave_to_cache): Doc fix.
16380 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
16381
16382 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
16383
16384 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
16385 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
16386
16387 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
16388
16389 * configure.srv (arm*-*-mingw32ce*): Move near the other
16390 arm targets.
16391
16392 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
16393
16394 * configure.ac: Add errno checking.
16395 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
16396 sys/file.h and malloc.h.
16397 (AC_CHECK_DECLS): Add perror.
16398 (srv_mingwce): Handle.
16399 * configure.srv (i[34567]86-*-cygwin*): Add
16400 win32-i386-low.o to srv_tgtobj.
16401 (i[34567]86-*-mingw*): Likewise.
16402 (arm*-*-mingw32ce*): Add case.
16403 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
16404 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
16405 [__MINGW32CE__] (strerror): New function.
16406 [__MINGW32CE__] (errno): Define to GetLastError.
16407 [__MINGW32CE__] (COUNTOF): New macro.
16408 (remote_open): Remove extra close call.
16409 * mem-break.c (delete_breakpoint_at): New function.
16410 * mem-break.h (delete_breakpoint_at): Declare.
16411 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
16412 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
16413 [USE_WIN32API] (read, write): Add char* casts.
16414 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
16415 * server.h: Include wincecompat.h on Windows CE.
16416 [HAVE_ERRNO_H]: Check.
16417 (perror): Declare if not declared.
16418 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
16419 (perror_with_name): Remove errno declaration.
16420 * wincecompat.h: New.
16421 * wincecompat.c: New.
16422 * win32-low.h: New.
16423 * win32-arm-low.c: New.
16424 * win32-i386-low.c: New.
16425 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
16426 (OUTMSG2): Make it safe.
16427 (_T): New macro.
16428 (COUNTOF): New macro.
16429 (NUM_REGS): Get it from the low target.
16430 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
16431 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
16432 (thread_rec): Let low target handle debug registers.
16433 (child_add_thread): Likewise.
16434 (child_init_thread_list): Likewise.
16435 (continue_one_thread): Likewise.
16436 (regptr): New.
16437 (do_child_fetch_inferior_registers): Move to ...
16438 * win32-i386-low.c: ... here, and rename to ...
16439 (do_fetch_inferior_registers): ... this.
16440 * win32-low.c (child_fetch_inferior_registers):
16441 Go through the low target.
16442 (do_child_store_inferior_registers): Use regptr.
16443 (strwinerror): New function.
16444 (win32_create_inferior): Handle Windows CE.
16445 Use strwinerror instead of strerror on Windows error
16446 codes. Add program to the error output.
16447 Don't close the main thread handle on Windows CE.
16448 (win32_attach): Use coredll.dll on Windows CE.
16449 (win32_kill): Close current process and current
16450 thread handles.
16451 (win32_detach): Use coredll.dll on Windows CE.
16452 (win32_resume): Let low target handle debug registers, and
16453 step request.
16454 (handle_exception): Add/Remove initial breakpoint. Avoid
16455 non-existant WSTOPSIG on Windows CE.
16456 (win32_read_inferior_memory): Cast to remove warning.
16457 (win32_arch_string): Go through the low target.
16458 (initialize_low): Call set_breakpoint_data with the low
16459 target's breakpoint.
16460 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
16461 FOP_REGNUM, mappings): Move to ...
16462 * win32-i386-low.c: ... here.
16463 * win32-low.c (win32_thread_info): Move to ...
16464 * win32-low.h: ... here.
16465 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
16466 win32-arm-low.c and wincecompat.c.
16467 (all:): Add $EXEEXT.
16468 (install-only:): Likewise.
16469 (gdbserver:): Likewise.
16470 (gdbreplay:): Likewise.
16471 * config.in: Regenerate.
16472 * configure: Regenerate.
16473
16474 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
16475
16476 * win32-low.c: Rename typedef thread_info to
16477 win32_thread_info throughout.
16478
16479 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
16480
16481 * win32-i386-low.c: Rename to ...
16482 * win32-low.c: ... this.
16483 * configure.srv: Replace win32-i386-low.o with win32-low.o.
16484 * Makefile.in: Likewise.
16485
16486 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
16487
16488 * remote-utils.c (monitor_output): Constify msg parameter.
16489 * server.h (monitor_output): Likewise.
16490 * win32-i386-low.c (handle_output_debug_string): New.
16491 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
16492 handle_output_debug_string.
16493 (get_child_debug_event): Likewise.
16494
16495 2007-03-27 Mat Hostetter <mat@lcs.mit.edu>
16496
16497 * server.c (main): Correct strtoul check.
16498
16499 2007-03-27 Jon Ringle <jon@ringle.org>
16500
16501 * linux-low.c: Check __ARCH_HAS_MMU__ also.
16502
16503 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
16504
16505 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
16506
16507 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
16508
16509 * terminal.h: Check HAVE_SGTTY_H.
16510
16511 2007-02-27 Mat Hostetter <mat@lcs.mit.edu>
16512
16513 * remote-utils.c (remote_open): Print out the assigned port number.
16514
16515 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
16516
16517 * remote-utils.c (monitor_output): New function.
16518 * server.c (debug_threads): Define here.
16519 (monitor_show_help): New function.
16520 (handle_query): Handle qRcmd.
16521 (main): Do not handle 'd' packet.
16522 * server.h (debug_threads, remote_debug, monitor_output): Declare.
16523 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
16524 of debug_threads.
16525
16526 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
16527
16528 * Makefile.in (EXEEXT): New.
16529 (clean): Use $(EXEEXT).
16530
16531 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
16532
16533 * target.h (target_ops): Rename send_signal to request_interrupt,
16534 and remove enum target_signal parameter.
16535 * linux-low.c (linux_request_interrupt): Rename from
16536 linux_send_signal, and always send SIGINT.
16537 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
16538 and always send SIGINT.
16539 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
16540 of send_signal.
16541 (input_interrupt): Likewise.
16542
16543 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
16544
16545 * server.c (get_features_xml): Check if target implemented
16546 arch_string.
16547 * win32-i386-low.c (win32_arch_string): New.
16548 (win32_target_ops): Add win32_arch_string as arch_string member.
16549
16550 2007-02-22 Markus Deuling <deuling@de.ibm.com>
16551
16552 * spu-low.c (spu_arch_string): New.
16553 (spu_target_ops): Add spu_arch_string.
16554
16555 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
16556
16557 * remote-utils.c: Remove HAVE_TERMINAL_H check.
16558 * configure.ac: Do not check for terminal.h.
16559 * configure, config.in: Regenerated.
16560
16561 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
16562
16563 * Makefile.in (OBS): Add $(XML_BUILTIN).
16564 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
16565 (clean): Update.
16566 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
16567 (arm-with-iwmmxt.c): New.
16568 * config.in, configure: Regenerate.
16569 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
16570 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
16571 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
16572 (arm*-*-linux*): Add iWMMXt and regset support.
16573 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
16574 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
16575 (arm_store_wmmxregset, target_regsets): New.
16576 * server.c (get_features_xml): Take annex argument. Check builtin
16577 XML documents.
16578 (handle_query): Handle multiple annexes.
16579
16580 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
16581
16582 * remote-utils.c [USE_WIN32API] (read, write): Define.
16583 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
16584 write.
16585
16586 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
16587
16588 * linux-i386-low.c (the_low_target): Set arch_string.
16589 * linux-x86-64-low.c (the_low_target): Likewise.
16590 * linux-low.c (linux_arch_string): New.
16591 (linux_target_ops): Add it.
16592 * linux-low.h (struct linux_target_ops): Add arch_string.
16593 * server.c (write_qxfer_response): Use const void * for DATA.
16594 (get_features_xml): New.
16595 (handle_query): Handle qXfer:features:read. Report it for qSupported.
16596 * target.h (struct target_ops): Add arch_string method.
16597
16598 2007-01-03 Denis Pilat <denis.pilat@st.com>
16599 Daniel Jacobowitz <dan@codesourcery.com>
16600
16601 * linux-low.c (linux_kill): Handle being called with no threads.
16602 * win32-i386-low.c (win32_kill): Likewise.
16603 (get_child_debug_event): Clear current_process_handle.
16604
16605 2006-12-30 Denis PILAT <denis.pilat@st.com>
16606 Daniel Jacobowitz <dan@codesourcery.com>
16607
16608 * remote-utils.c (remote_open): Check the type of specified
16609 serial port devices before opening them.
16610 * server.c (main): Kill the inferior if an error occurs during
16611 the first remote_open.
16612
16613 2006-12-05 Markus Deuling <deuling@de.ibm.com>
16614
16615 * README: Update supported targets.
16616
16617 2006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
16618
16619 * Makefile.in (clean): Remove reg-mips64.c.
16620 (reg-mips64.c, reg-mips64.o): New rules.
16621 * configure.srv: Handle mips64. Include regset support for mips.
16622 * linux-mips-low.c (union mips_register): New.
16623 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
16624 (mips_breakpoint, mips_breakpoint_at): Use int.
16625 (mips_collect_register, mips_supply_register)
16626 (mips_collect_register_32bit, mips_supply_register_32bit)
16627 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
16628 (mips_store_fpregset, target_regsets): New.
16629 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
16630
16631 2006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
16632
16633 * configure.srv: Add target "spu*-*-*".
16634 * Makefile.in (clean): Remove reg-spu.c.
16635 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
16636 * spu-low.c: New file.
16637
16638 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
16639
16640 * configure.ac: Correct td_thr_tls_get_addr test.
16641 * configure: Regenerated.
16642
16643 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
16644
16645 * linux-low.c (linux_wait_for_event): Reformat. Use the
16646 pass_signals array.
16647 * remote-utils.c (decode_address_to_semicolon): New.
16648 * server.c (pass_signals, handle_general_set): New.
16649 (handle_query): Mention QPassSignals for qSupported.
16650 (main): Call handle_general_set.
16651 * server.h (pass_signals, decode_address_to_semicolon): New.
16652
16653 2006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
16654
16655 * server.c (handle_query): Correct error handling for read_auxv.
16656
16657 2005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
16658
16659 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
16660 and srv_linux_thread_db to yes.
16661 * linux-s390-low.c (s390_fill_gregset): New function.
16662 (target_regsets): Define data structure.
16663
16664 2006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
16665
16666 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
16667 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
16668 * config.in, configure: Regenerated.
16669 * inferiors.c (gdb_id_to_thread): New function.
16670 (gdb_id_to_thread_id): Use it.
16671 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
16672 * linux-low.h (struct process_info): Add th member.
16673 (thread_db_get_tls_address): New prototype.
16674 * remote-utils.c (decode_address): Make non-static.
16675 * server.c (handle_query): Handle qGetTLSAddr.
16676 * server.h (gdb_id_to_thread, decode_address): New prototypes.
16677 * target.h (struct target_ops): Add get_tls_address.
16678 * thread-db.c (maybe_attach_thread): Save the thread handle.
16679 (thread_db_get_tls_address): New.
16680
16681 2006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
16682
16683 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
16684 (linux_resume_one_process): Take a siginfo_t *. Update all
16685 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
16686 (struct pending_signals): Add a siginfo_t.
16687 (linux_wait_for_process): Always set last_status.
16688 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
16689 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
16690 * linux-low.h (struct process_info): Add last_status.
16691
16692 2006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
16693
16694 * remote-utils.c (try_rle): New function.
16695 (putpkt_binary): Use it.
16696
16697 2006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
16698
16699 * Makefile.in (clean): Clean reg-x86-64-linux.c.
16700 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
16701 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
16702 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
16703 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
16704 point registers.
16705
16706 2006-08-08 Richard Sandiford <richard@codesourcery.com>
16707
16708 * server.c (terminal_fd): New variable.
16709 (old_foreground_pgrp): Likewise.
16710 (restore_old_foreground_pgrp): New function.
16711 (start_inferior): Record the terminal file descriptor in terminal_fd
16712 and its original foreground group in old_foreground_pgrp. Register
16713 restore_old_foreground_pgrp with atexit().
16714
16715 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
16716
16717 * server.c (handle_query): Correct qPart to qXfer.
16718
16719 2006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
16720
16721 * configure.ac: Check for more headers which are missing on
16722 Windows. Automatically supply -lwsock32 and USE_WIN32API.
16723 * configure.srv: Add Cygwin and mingw32.
16724 * remote-utils.c: Don't include headers unconditionally which
16725 are missing on mingw32. Include <winsock.h> for mingw32.
16726 (remote_open): Adjust for mingw32 support. Flush
16727 standard error after writing to it.
16728 (remote_close, putpkt_binary, input_interrupt, block_async_io)
16729 (unblock_async_io, enable_async_io, disable_async_io)
16730 (readchar, getpkt): Update for Winsock support.
16731 (prepare_resume_reply): Expect a protocol signal number.
16732 * server.c: Disable <sys/wait.h> on mingw32.
16733 (start_inferior): Adjust for mingw32 support. Flush
16734 standard error after writing to it.
16735 (attach_inferior): Likewise. Use protocol signal
16736 numbers.
16737 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
16738 and names.
16739 * win32-i386-low.c: New file.
16740 * Makefile.in (XM_CLIBS): Set.
16741 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
16742 (win32-i386-low.o): New dependency rule.
16743 * linux-low.c (linux_wait): Use target signal numbers.
16744 * target.h (struct target_ops): Doc fix.
16745 * server.h (target_signal_to_name): New prototype.
16746 * gdbreplay.c: Don't include headers unconditionally which
16747 are missing on mingw32. Include <winsock.h> for mingw32.
16748 (remote_close, remote_open): Adjust for Winsock support.
16749 * configure, config.in: Regenerated.
16750
16751 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
16752
16753 * server.c (decode_xfer_read, write_qxfer_response): New.
16754 (handle_query): Take a packet length argument. Handle
16755 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
16756 the qSupported response.
16757 (main): Update call to handle_query.
16758
16759 2006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
16760
16761 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
16762 (putpkt_binary): Renamed from putpkt and adjusted for binary
16763 data.
16764 (putpkt): New wrapper for putpkt_binary.
16765 (readchar): Don't mask off the high bit.
16766 (decode_X_packet): New function.
16767 * server.c (main): Call putpkt_binary if a handler sets the packet
16768 length. Save the length of the incoming packet. Handle 'X'.
16769 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
16770
16771 2006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
16772
16773 * server.c (handle_query): Handle qSupported.
16774
16775 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
16776
16777 * remote-utils.c (all_symbols_looked_up): New variable.
16778 (look_up_one_symbol): Check it.
16779 * server.h (look_up_one_symbol): New declaration.
16780 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
16781
16782 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
16783
16784 * Makefile.in (linux-arm-low.o): Update dependencies.
16785 * linux-arm-low.c: Include "gdb_proc_service.h".
16786 (PTRACE_GET_THREAD_AREA): Define.
16787 (ps_get_thread_area): New function.
16788
16789 2006-05-09 Nathan Sidwell <nathan@codesourcery.com>
16790
16791 * configure.srv (m68k*-*-uclinux*): New target.
16792 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
16793 (linux_resume_one_process): Remove extraneous cast.
16794 (linux_read_offsets): New.
16795 (linux_target_op): Add linux_read_offsets on mmuless systems.
16796 * server.c (handle_query): Add qOffsets logic.
16797 * target.h (struct target_ops): Add read_offsets.
16798
16799 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
16800
16801 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
16802 (PTRACE_GET_THREAD_AREA): Define.
16803 (ps_get_thread_area): New function.
16804 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
16805 (linux-x86-64-low.o): Update.
16806
16807 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
16808
16809 * configure.ac: Remove checks for prfpregset_t.
16810 * gdb_proc_service.h: New file.
16811 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
16812 new "gdb_proc_service.h".
16813 * proc-service.c: Likewise.
16814 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
16815 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
16816 * Makefile.in (gdb_proc_service_h): Updated.
16817 * configure, config.in: Regenerated.
16818
16819 2006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
16820
16821 * remote-utils.c (prepare_resume_reply): Move declaration
16822 of gdb_id_from_wait to the top of the block.
16823
16824 2006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
16825
16826 * linux-low.c (regsets_store_inferior_registers): Read the regset
16827 from the target before filling it.
16828
16829 2006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
16830
16831 * server.c (attach_inferior): Return SIGTRAP for a successful
16832 attach.
16833
16834 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
16835
16836 * Makefile.in (OBS): Add version.o.
16837 (STAGESTUFF): Delete.
16838 (version.o): Add dependencies.
16839 (version.c): Replace rule.
16840 (clean): Remove version.c.
16841 * server.c (gdbserver_version): New.
16842 (gdbserver_usage): Use printf.
16843 (main): Handle --version and --help.
16844 * server.h (version, host_name): Add declarations.
16845
16846 2005-12-23 Eli Zaretskii <eliz@gnu.org>
16847
16848 * linux-arm-low.c:
16849 * linux-arm-low.c:
16850 * inferiors.c:
16851 * i387-fp.h:
16852 * i387-fp.c:
16853 * gdbreplay.c:
16854 * regcache.c:
16855 * proc-service.c:
16856 * mem-break.h:
16857 * mem-break.c:
16858 * linux-x86-64-low.c:
16859 * linux-sh-low.c:
16860 * linux-s390-low.c:
16861 * linux-ppc64-low.c:
16862 * linux-ppc-low.c:
16863 * linux-mips-low.c:
16864 * linux-m68k-low.c:
16865 * linux-m32r-low.c:
16866 * linux-low.h:
16867 * linux-low.c:
16868 * linux-ia64-low.c:
16869 * linux-i386-low.c:
16870 * linux-crisv32-low.c:
16871 * thread-db.c:
16872 * terminal.h:
16873 * target.h:
16874 * target.c:
16875 * server.h:
16876 * server.c:
16877 * remote-utils.c:
16878 * regcache.h:
16879 * utils.c:
16880 * Makefile.in:
16881 * configure.ac:
16882 * gdbserver.1: Add (C) after Copyright. Update the FSF
16883 address.
16884
16885 2005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
16886
16887 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
16888 (arm_breakpoint_at): Recognize both breakpoints.
16889 (the_low_target): Use the correct breakpoint instruction.
16890
16891 2005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
16892
16893 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
16894 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
16895 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
16896 (the_low_target): Update.
16897
16898 2005-10-25 Andreas Schwab <schwab@suse.de>
16899
16900 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
16901
16902 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
16903 (ia64_num_regs): Reduce to 462.
16904
16905 2005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
16906
16907 * acinclude.m4: Correct quoting.
16908 * aclocal.m4: Regenerated.
16909
16910 Suggested by SZOKOVACS Robert <szo@ies.hu>:
16911 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
16912 (thread_db_init): Call thread_db_err_str.
16913 * configure.ac: Check for TD_VERSION.
16914 * config.in, configure: Regenerated.
16915
16916 2005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16917
16918 * server.h (error, fatal, warning): Add ATTR_FORMAT.
16919
16920 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
16921
16922 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
16923 is not available. Define HAVE_PTRACE_GETREGS if it is.
16924 * config.in, configure: Regenerated.
16925 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
16926 * linux-i386-low.c, linux-m68k-low.c: Update to use
16927 HAVE_PTRACE_GETREGS.
16928 * linux-low.c (regsets_fetch_inferior_registers)
16929 (regsets_store_inferior_registers): Only return 0 if we processed
16930 GENERAL_REGS.
16931 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
16932 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
16933
16934 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
16935
16936 * inferiors.c (struct thread_info): Add gdb_id.
16937 (add_thread): Add gdb_id argument.
16938 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
16939 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
16940 calls to add_thread.
16941 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
16942 * server.c (handle_query): Use thread_to_gdb_id.
16943 (handle_v_cont, main): Use gdb_id_to_thread_id.
16944 * server.h (add_thread): Update prototype.
16945 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
16946 prototypes.
16947
16948 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
16949
16950 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
16951 left-padded registers.
16952 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
16953 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
16954
16955 2005-07-01 Steve Ellcey <sje@cup.hp.com>
16956
16957 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
16958 * configure: Regenerate.
16959 * config.in: Regenerate.
16960 * server.h (NEED_DECLARATION_STRERROR):
16961 Replace with !HAVE_DECL_STRERROR.
16962
16963 2005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
16964
16965 * linux-low.c (linux_wait, linux_send_signal): Don't test
16966 an unsigned long variable for > 0 if it could be MAX_ULONG.
16967 * server.c (myresume): Likewise.
16968 * target.c (set_desired_inferior): Likewise.
16969
16970 2005-06-13 Mark Kettenis <kettenis@gnu.org>
16971
16972 * configure.ac: Simplify and improve check for socklen_t.
16973 * configure, config.in: Regenerate.
16974
16975 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
16976
16977 * acconfig.h: Remove.
16978 * configure.ac: Add a test for socklen_t. Use three-argument
16979 AC_DEFINE throughout.
16980 * config.in: Regenerated using autoheader 2.59.
16981 * configure: Regenerated.
16982
16983 * gdbreplay.c (socklen_t): Provide a default.
16984 (remote_open): Use socklen_t.
16985 * remote-utils.c (socklen_t): Provide a default.
16986 (remote_open): Use socklen_t.
16987 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
16988 unsigned char.
16989
16990 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
16991 char for buffers.
16992 * linux-low.c (linux_read_memory, linux_write_memory)
16993 (linux_read_auxv): Likewise.
16994 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
16995 (check_mem_write): Likewise.
16996 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
16997 Likewise.
16998 * regcache.c (struct inferior_rgcache_data, registers_to_string)
16999 (registers_from_string, register_data): Likewise.
17000 * server.c (handle_query, main): Likewise.
17001 * server.h (convert_ascii_to_int, convert_int_to_ascii)
17002 (decode_M_packet): Likewise.
17003 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
17004 * target.h (struct target_ops): Update read_memory, write_memory,
17005 and read_auxv.
17006 (read_inferior_memory, write_inferior_memory): Update.
17007 * linux-low.h (struct linux_target_ops): Change type of breakpoint
17008 to unsigned char *.
17009 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
17010 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
17011 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
17012 linux-s390-low.c, linux-sh-low.c: Update for changes in
17013 read_inferior_memory and the_low_target->breakpoint.
17014
17015 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
17016
17017 * Makefile.in (SFILES): Add linux-ppc64-low.c.
17018 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
17019 * configure.srv: Add powerpc64-*-linux*.
17020 * linux-ppc64-low.c: New file.
17021
17022 2005-05-23 Orjan Friberg <orjanf@axis.com>
17023
17024 * linux-cris-low.c: New file with support for CRIS.
17025 * linux-crisv32-low.c: Ditto for CRISv32.
17026 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
17027 (clean): Add reg-cris.c and reg-crisv32.c.
17028 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
17029 reg-crisv32.o, and reg-crisv32.c to make rules.
17030 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
17031 recognized targets.
17032
17033 2005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
17034
17035 * linux-low.c (fetch_register): Ensure buffer size is a multiple
17036 of sizeof (PTRACE_XFER_TYPE).
17037 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
17038
17039 2005-05-12 Orjan Friberg <orjanf@axis.com>
17040
17041 * target.h (struct target_ops): Add insert_watchpoint,
17042 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
17043 pointers for hardware watchpoint support.
17044 * linux-low.h (struct linux_target_ops): Ditto.
17045 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
17046 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
17047 to linux_target_ops.
17048 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
17049 reply packet.
17050 * server.c (main): Recognize 'Z' and 'z' packets.
17051
17052 2005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
17053
17054 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
17055 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
17056 (the_low_target): Add new members.
17057
17058 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
17059
17060 * proc-service.c (ps_lgetregs): Search all_processes instead of
17061 all_threads.
17062
17063 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
17064
17065 * server.c (start_inferior): Change return type to int.
17066 (attach_inferior): Change sigptr to int *.
17067 (handle_v_cont, handle_v_requests): Change signal to int *.
17068 (main): Change signal to int.
17069
17070 2005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
17071
17072 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
17073 * configure.srv: Add m32r*-*-linux*.
17074 * linux-m32r-low.c: New file.
17075
17076 2005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
17077
17078 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
17079
17080 2005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
17081
17082 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
17083 Take unsigned long arguments for PIDs.
17084 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
17085 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
17086 (wait_for_sigstop, linux_resume_one_process)
17087 (regsets_fetch_inferior_registers, linux_send_signal)
17088 (linux_read_auxv): Likewise. Update the types of variables holding
17089 PIDs. Update format string specifiers.
17090 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
17091 * remote-utils.c (prepare_resume_reply): Likewise.
17092 * server.c (cont_thread, general_thread, step_thread)
17093 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
17094 unsigned long.
17095 (handle_query): Update format specifiers.
17096 (handle_v_cont, main): Use strtoul for thread IDs.
17097 * server.h (struct inferior_list_entry): Use unsigned long for ID.
17098 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
17099 (general_thread, step_thread, thread_from_wait)
17100 (old_thread_from_wait): Update.
17101 * target.h (struct thread_resume): Use unsigned long for THREAD.
17102 (struct target_ops): Use unsigned long for arguments to attach and
17103 thread_alive.
17104
17105 2005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
17106
17107 * acinclude.m4: Include bfd/bfd.m4 directly.
17108 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
17109 <agriffis@toolchain.org>.
17110 * aclocal.m4, configure: Regenerated.
17111
17112 2005-01-07 Andrew Cagney <cagney@gnu.org>
17113
17114 * configure.ac: Rename configure.in, require autoconf 2.59.
17115 * configure: Re-generate.
17116
17117 2004-12-08 Daniel Jacobowitz <dan@debian.org>
17118
17119 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
17120 LIBS when finished.
17121 * aclocal.m4: Regenerated.
17122 * configure: Regenerated.
17123
17124 2004-11-21 Andreas Schwab <schwab@suse.de>
17125
17126 * linux-m68k-low.c (m68k_num_gregs): Define.
17127 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
17128 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
17129 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
17130 (m68k_breakpoint_at): New. Add to the_low_target.
17131
17132 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
17133 srv_linux_thread_db to yes.
17134
17135 2004-10-20 Joel Brobecker <brobecker@gnat.com>
17136
17137 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
17138 (ARCH_SET_FS): Likewise.
17139 (ARCH_GET_FS): Likewise.
17140 (ARCH_GET_GS): Likewise.
17141
17142 2004-10-16 Daniel Jacobowitz <dan@debian.org>
17143
17144 * linux-i386-low.c (ps_get_thread_area): New.
17145 * linux-x86-64-low.c (ps_get_thread_area): New.
17146 * linux-low.c: Include <sys/syscall.h>.
17147 (linux_kill_one_process): Don't kill the first thread here.
17148 (linux_kill): Kill the first thread here.
17149 (kill_lwp): New function.
17150 (send_sigstop, linux_send_signal): Use it.
17151 * proc-service.c: Clean up #ifdefs.
17152 (fpregset_info): Delete.
17153 (ps_lgetregs): Update and enable implementation.
17154 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
17155 implementations.
17156 * remote-utils.c (struct sym_cache, symbol_cache): New.
17157 (input_interrupt): Print a clearer message.
17158 (async_io_enabled): New variable.
17159 (enable_async_io, disable_async_io): Use it. Update comments.
17160 (look_up_one_symbol): Use the symbol cache.
17161 * thread-db.c (thread_db_look_up_symbols): New function.
17162 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
17163
17164 2004-10-16 Daniel Jacobowitz <dan@debian.org>
17165
17166 * configure.in: Test for -rdynamic.
17167 * configure: Regenerated.
17168 * Makefile (INTERNAL_LDFLAGS): New.
17169 (gdbserver, gdbreplay): Use it.
17170
17171 2004-09-02 Andrew Cagney <cagney@gnu.org>
17172
17173 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
17174
17175 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
17176
17177 * linux-low.c (linux_wait): Clear all_processes list also.
17178
17179 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
17180
17181 * linux-low.c: Include <errno.h>. Remove extern declaration of
17182 errno.
17183
17184 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
17185
17186 * gdbreplay.c, server.h, utils.c: Update copyright years.
17187
17188 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
17189
17190 * server.c (main): Print child status or termination signal from
17191 variable 'signal', not 'sig'.
17192
17193 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
17194
17195 * linux-low.c (linux_read_memory): Change return type to
17196 int. Check for and return error from ptrace().
17197 * target.c (read_inferior_memory): Change return type to int. Pass
17198 back return status from the_target->read_memory().
17199 * target.h (struct target_ops): Adapt *read_memory() prototype.
17200 Update comment.
17201 (read_inferior_memory): Adapt prototype.
17202 * server.c (main): Return an error packet if
17203 read_inferior_memory() returns an error.
17204
17205 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
17206
17207 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
17208 Unify with other clean targets.
17209
17210 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
17211
17212 * server.c (handle_v_cont): Call set_desired_inferior.
17213
17214 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
17215
17216 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
17217
17218 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
17219
17220 * linux-low.c (linux_wait): Unblock async I/O.
17221 (linux_resume): Block and enable async I/O.
17222 * remote-utils.c (block_async_io, unblock_async_io): New functions.
17223 * server.h (block_async_io, unblock_async_io): Add prototypes.
17224
17225 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
17226
17227 * remote-utils.c (remote_open): Print a status notice after
17228 opening a TCP port.
17229 * server.c (attach_inferior): Print a status notice after
17230 attaching.
17231
17232 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
17233
17234 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
17235
17236 2004-02-26 Daniel Jacobowitz <drow@mvista.com>
17237
17238 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
17239 error packet.
17240 * server.c, target.h: Update copyright years.
17241
17242 2004-02-25 Roland McGrath <roland@redhat.com>
17243
17244 * target.h (struct target_ops): New member `read_auxv'.
17245 * server.c (handle_query): Handle qPart:auxv:read: query using that.
17246 * linux-low.c (linux_read_auxv): New function.
17247 (linux_target_ops): Initialize `read_auxv' member to that.
17248
17249 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17250
17251 Committed by Jim Blandy <jimb@redhat.com>.
17252
17253 * linux-s390-low.c (s390_num_regs): Update.
17254 (s390_regmap): Remove control registers. Use __s390x__ predefine
17255 instead of GPR_SIZE to distiguish s390 and s390x targets.
17256
17257 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
17258
17259 * linux-low.c: Update copyright year.
17260 (check_removed_breakpoint): Clear pending_is_breakpoint.
17261 (linux_set_resume_request, linux_queue_one_thread)
17262 (resume_status_pending_p): New functions.
17263 (linux_continue_one_thread): Use process->resume.
17264 (linux_resume): Only resume threads if there are no pending events.
17265 * linux-low.h (struct process_info): Add resume request
17266 pointer.
17267
17268 2004-01-30 Daniel Jacobowitz <drow@mvista.com>
17269
17270 * regcache.c (new_register_cache): Clear the allocated register
17271 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
17272
17273 2003-10-13 Daniel Jacobowitz <drow@mvista.com>
17274
17275 * linux-low.c (linux_resume): Take a struct thread_resume *
17276 argument.
17277 (linux_wait): Update call.
17278 (resume_ptr): New static variable.
17279 (linux_continue_one_thread): Renamed from
17280 linux_continue_one_process. Use resume_ptr.
17281 (linux_resume): Use linux_continue_one_thread.
17282 * server.c (handle_v_cont, handle_v_requests): New functions.
17283 (myresume): New function.
17284 (main): Handle 'v' case.
17285 * target.h (struct thread_resume): New type.
17286 (struct target_ops): Change argument of "resume" to struct
17287 thread_resume *.
17288 (myresume): Delete macro.
17289
17290 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
17291
17292 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
17293 (uninstall): Support DESTDIR.
17294
17295 Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
17296
17297 * configure.srv: Add xscale*linux copy of arm*linux entry.
17298
17299 2003-07-24 Daniel Jacobowitz <drow@mvista.com>
17300
17301 * linux-arm-low.c (arm_reinsert_addr): New function.
17302 (the_low_target): Add arm_reinsert_addr.
17303
17304 2003-07-08 Mark Kettenis <kettenis@gnu.org>
17305
17306 * mem-break.c: Remove whitespace at end of file.
17307
17308 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
17309
17310 * configure.in: Check whether we need to prototype strerror.
17311 * server.h: Optionally prototype strerror.
17312 * gdbreplay.c (perror_with_name): Use strerror.
17313 * linux-low.c (linux_attach_lwp): Use strerror.
17314 * utils.c (perror_with_name): Use strerror.
17315 * config.in, configure: Regenerated.
17316
17317 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
17318
17319 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
17320 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
17321
17322 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
17323
17324 * Makefile.in (SFILES): Update.
17325 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
17326 low-sun3.c: Remove files.
17327
17328 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
17329
17330 * linux-low.c: Move comment to linux_thread_alive where it belonged.
17331 (linux_detach_one_process, linux_detach): New functions.
17332 (linux_target_ops): Add linux_detach.
17333 * server.c (main): Handle 'D' packet.
17334 * target.h (struct target_ops): Add "detach" member.
17335 (detach_inferior): Define.
17336
17337 2003-06-13 Mark Kettenis <kettenis@gnu.org>
17338
17339 From Kelley Cook <kelleycook@wideopenwest.com>:
17340 * configure.srv: Accept i[34567]86 variants.
17341
17342 2003-06-05 Daniel Jacobowitz <drow@mvista.com>
17343
17344 * linux-low.c (linux_wait_for_event): Correct comment typos.
17345 (linux_resume_one_process): Call check_removed_breakpoint.
17346 (linux_send_signal): New function.
17347 (linux_target_ops): Add linux_send_signal.
17348 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
17349 of kill.
17350 * target.h (struct target_ops): Add send_signal.
17351
17352 2003-05-29 Jim Blandy <jimb@redhat.com>
17353
17354 * linux-low.c (usr_store_inferior_registers): Transfer buf in
17355 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
17356 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
17357 away part of the register's value.
17358
17359 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
17360
17361 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
17362 (linux_wait_for_event, linux_init_signals): Likewise.
17363
17364 2003-03-17 Daniel Jacobowitz <drow@mvista.com>
17365
17366 * configure.in: Check for stdlib.h.
17367 * configure: Regenerated.
17368 * config.in: Regenerated.
17369
17370 2003-01-04 Andreas Schwab <schwab@suse.de>
17371
17372 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
17373
17374 2003-01-02 Andrew Cagney <ac131313@redhat.com>
17375
17376 * Makefile.in: Remove obsolete code.
17377
17378 2002-11-20 Daniel Jacobowitz <drow@mvista.com>
17379
17380 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
17381 defined(PT_FPR0_HI).
17382
17383 2002-11-17 Stuart Hughes <seh@zee2.com>
17384
17385 * linux-arm-low.c (arm_num_regs): Increase.
17386 (arm_regmap): Include status register.
17387
17388 2002-11-17 Daniel Jacobowitz <drow@mvista.com>
17389
17390 * linux-low.c (register_addr): Remove incorrect -1 check.
17391
17392 2002-08-29 Daniel Jacobowitz <drow@mvista.com>
17393
17394 * linux-low.c (linux_create_inferior): Call setpgid. Return
17395 the new PID.
17396 (unstopped_p, linux_signal_pid): Remove.
17397 (linux_target_ops): Remove linux_signal_pid.
17398 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
17399 global instead of target method.
17400 * target.h (struct target_ops): Remove signal_pid. Update comment
17401 for create_inferior.
17402 * server.c (signal_pid): New variable.
17403 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
17404 gdbserver. Set the child to be the foreground process group.
17405 (attach_inferior): Set signal_pid.
17406
17407 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
17408
17409 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
17410
17411 2002-08-20 Jim Blandy <jimb@redhat.com>
17412
17413 * Makefile.in (LDFLAGS): Allow the configure script to establish a
17414 default for this.
17415
17416 2002-08-01 Andrew Cagney <cagney@redhat.com>
17417
17418 * Makefile.in: Make chill references obsolete.
17419
17420 2002-07-24 Kevin Buettner <kevinb@redhat.com>
17421
17422 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
17423 * configure: Regenerate.
17424 * config.in: Regenerate.
17425
17426 2002-07-09 David O'Brien <obrien@FreeBSD.org>
17427
17428 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
17429 (perror_with_name, remote_close, remote_open, expect, play): Static.
17430
17431 2002-07-04 Michal Ludvig <mludvig@suse.cz>
17432
17433 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
17434 byte offsets instead of an array of indexes.
17435 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
17436
17437 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
17438
17439 * regcache.c: Add comment.
17440
17441 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
17442
17443 * thread-db.c: New file.
17444 * proc-service.c: New file.
17445 * acinclude.m4: New file.
17446 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
17447 proc-service.o, and thread-db.o.
17448 (linux-low.o): Add USE_THREAD_DB.
17449 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
17450 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
17451 * aclocal.m4: Regenerated.
17452 * config.in: Regenerated.
17453 * configure: Regenerated.
17454 * configure.in: Check for proc_service.h, sys/procfs.h,
17455 thread_db.h, and linux/elf.h headrs.
17456 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
17457 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
17458 Check for -lthread_db and thread support.
17459 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
17460 PowerPC, and SuperH.
17461 * i387-fp.c: Constify arguments.
17462 * i387-fp.h: Likewise.
17463 * inferiors.c: (struct thread_info): Renamed from
17464 `struct inferior_info'. Remove PID member. Use generic inferior
17465 list header. All uses updated.
17466 (inferiors, signal_pid): Removed.
17467 (all_threads): New variable.
17468 (get_thread): Define.
17469 (add_inferior_to_list): New function.
17470 (for_each_inferior): New function.
17471 (change_inferior_id): New function.
17472 (add_inferior): Removed.
17473 (remove_inferior): New function.
17474 (add_thread): New function.
17475 (free_one_thread): New function.
17476 (remove_thread): New function.
17477 (clear_inferiors): Use for_each_inferior and free_one_thread.
17478 (find_inferior): New function.
17479 (find_inferior_id): New function.
17480 (inferior_target_data): Update argument type.
17481 (set_inferior_target_data): Likewise.
17482 (inferior_regcache_data): Likewise.
17483 (set_inferior_regcache_data): Likewise.
17484 * linux-low.c (linux_bp_reinsert): Remove.
17485 (all_processes, stopping_threads, using_thrads)
17486 (struct pending_signals, debug_threads, pid_of): New.
17487 (inferior_pid): Replace with macro.
17488 (struct inferior_linux_data): Remove.
17489 (get_stop_pc, add_process): New functions.
17490 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
17491 Use add_process and add_thread.
17492 (linux_attach_lwp): New function, based on old linux_attach. Use
17493 add_process and add_thread. Set stop_expected for new threads.
17494 (linux_attach): New function.
17495 (linux_kill_one_process): New function.
17496 (linux_kill): Kill all LWPs.
17497 (linux_thread_alive): Use find_inferior_id.
17498 (check_removed_breakpoints, status_pending_p): New functions.
17499 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
17500 Update. Use WNOHANG. Wait for cloned processes also. Update process
17501 struct for the found process.
17502 (linux_wait_for_event): New function.
17503 (linux_wait): Use it. Support LWPs.
17504 (send_sigstop, wait_for_sigstop, stop_all_processes)
17505 (linux_resume_one_process, linux_continue_one_process): New functions.
17506 (linux_resume): Support LWPs.
17507 (REGISTER_RAW_SIZE): Remove.
17508 (fetch_register): Use register_size instead. Call supply_register.
17509 (usr_store_inferior_registers): Likewise. Call collect_register.
17510 Fix recursive case.
17511 (regsets_fetch_inferior_registers): Improve error message.
17512 (regsets_store_inferior_registers): Add debugging.
17513 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
17514 (unstopped_p, linux_signal_pid): New functions.
17515 (linux_target_ops): Add linux_signal_pid.
17516 (linux_init_signals): New function.
17517 (initialize_low): Call it. Initialize using_threads.
17518 * regcache.c (inferior_regcache_data): Add valid
17519 flag.
17520 (get_regcache): Fetch registers lazily. Add fetch argument
17521 and update all callers.
17522 (regcache_invalidate_one, regcache_invalidate): New
17523 functions.
17524 (new_register_cache): Renamed from create_register_cache.
17525 Return the new regcache.
17526 (free_register_cache): Change argument to a void *.
17527 (registers_to_string, registers_from_string): Call get_regcache
17528 with fetch flag set.
17529 (register_data): Make static. Pass fetch flag to get_regcache.
17530 (supply_register): Call get_regcache with fetch flag clear.
17531 (collect_register): Call get_regcache with fetch flag set.
17532 (collect_register_as_string): New function.
17533 * regcache.h: Update.
17534 * remote-utils.c (putpkt): Flush after debug output and use
17535 stderr.
17536 Handle input interrupts while waiting for an ACK.
17537 (input_interrupt): Use signal_pid method.
17538 (getpkt): Flush after debug output and use stderr.
17539 (outreg): Use collect_register_as_string.
17540 (new_thread_notify, dead_thread_notify): New functions.
17541 (prepare_resume_reply): Check using_threads. Set thread_from_wait
17542 and general_thread.
17543 (look_up_one_symbol): Flush after debug output.
17544 * server.c (step_thread, server_waiting): New variables.
17545 (start_inferior): Don't use signal_pid. Update call to mywait.
17546 (attach_inferior): Update call to mywait.
17547 (handle_query): Handle qfThreadInfo and qsThreadInfo.
17548 (main): Don't fetch/store registers explicitly. Use
17549 set_desired_inferior. Support proposed ``Hs'' packet. Update
17550 calls to mywait.
17551 * server.h: Update.
17552 (struct inferior_list, struct_inferior_list_entry): New.
17553 * target.c (set_desired_inferior): New.
17554 (write_inferior_memory): Constify.
17555 (mywait): New function.
17556 * target.h: Update.
17557 (struct target_ops): New signal_pid method.
17558 (mywait): Removed macro, added prototype.
17559
17560 * linux-low.h (regset_func): Removed.
17561 (regset_fill_func, regset_store_func): New.
17562 (enum regset_type): New.
17563 (struct regset_info): Add type field. Use new operation types.
17564 (struct linux_target_ops): stop_pc renamed to get_pc.
17565 Add decr_pc_after_break and breakpoint_at.
17566 (get_process, get_thread_proess, get_process_thread)
17567 (strut process_info, all_processes, linux_attach_lwp)
17568 (thread_db_init): New.
17569
17570 * linux-arm-low.c (arm_get_pc, arm_set_pc,
17571 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
17572 (the_low_target): Add new members.
17573 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
17574 (i386_store_fpxregset): Constify.
17575 (target_regsets): Add new kind identifier.
17576 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
17577 (i386_set_pc): Add debugging.
17578 (i386_breakpoint_at): New function.
17579 (the_low_target): Add new members.
17580 * linux-mips-low.c (mips_get_pc, mips_set_pc)
17581 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
17582 (mips_breakpoint_at): New.
17583 (the_low_target): Add new members.
17584 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
17585 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
17586 (the_low_target): Add new members.
17587 * linux-sh-low.c (sh_get_pc, sh_set_pc)
17588 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
17589 (the_low_target): Add new members.
17590 * linux-x86-64-low.c (target_regsets): Add new kind
17591 identifier.
17592
17593 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
17594
17595 From Martin Pool <mbp@samba.org>:
17596 * server.c (gdbserver_usage): New function.
17597 (main): Call it.
17598
17599 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
17600
17601 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
17602 stop_at -> stop_pc.
17603
17604 2002-05-04 Andrew Cagney <ac131313@redhat.com>
17605
17606 * Makefile.in: Remove obsolete code.
17607
17608 2002-04-24 Michal Ludvig <mludvig@suse.cz>
17609
17610 * linux-low.c (regsets_fetch_inferior_registers),
17611 (regsets_store_inferior_registers): Removed cast to int from
17612 ptrace() calls.
17613 * regcache.h: Added declaration of struct inferior_info.
17614
17615 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
17616
17617 * inferiors.c (struct inferior_info): Add regcache_data.
17618 (add_inferior): Call create_register_cache.
17619 (clear_inferiors): Call free_register_cache.
17620 (inferior_regcache_data, set_inferior_regcache_data): New functions.
17621 * regcache.c (struct inferior_regcache_data): New.
17622 (registers): Remove.
17623 (get_regcache): New function.
17624 (create_register_cache, free_register_cache): New functions.
17625 (set_register_cache): Don't initialize the register cache here.
17626 (registers_to_string, registers_from_string, register_data): Call
17627 get_regcache.
17628 * regcache.h: Add prototypes.
17629 * server.h: Likewise.
17630
17631 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
17632
17633 * mem-break.c: New file.
17634 * mem-break.h: New file.
17635 * Makefile.in: Add mem-break.o rule; update server.h
17636 dependencies.
17637 * inferiors.c (struct inferior_info): Add target_data
17638 member.
17639 (clear_inferiors): Free target_data member if set.
17640 (inferior_target_data, set_inferior_target_data): New functions.
17641 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
17642 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
17643 * linux-low.c (linux_bp_reinsert): New variable.
17644 (struct inferior_linux_data): New.
17645 (linux_create_inferior): Use set_inferior_target_data.
17646 (linux_attach): Likewise. Call add_inferior.
17647 (linux_wait_for_one_inferior): New function.
17648 (linux_wait): Call it.
17649 (linux_write_memory): Add const.
17650 (initialize_low): Call set_breakpoint_data.
17651 * linux-low.h (struct linux_target_ops): Add breakpoint
17652 handling members.
17653 * server.c (attach_inferior): Remove extra add_inferior
17654 call.
17655 * server.h: Include mem-break.h. Update inferior.c
17656 prototypes.
17657 * target.c (read_inferior_memory)
17658 (write_inferior_memory): New functions.
17659 * target.h (read_inferior_memory)
17660 (write_inferior_memory): Change macros to prototypes.
17661 (struct target_ops): Update comments. Add const to write_memory
17662 definition.
17663
17664 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
17665
17666 * linux-low.c (usr_store_inferior_registers): Support
17667 registers which are allowed to fail to store.
17668 * linux-low.h (linux_target_ops): Likewise.
17669 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
17670 (ppc_cannot_store_register): FPSCR may not be storable.
17671
17672 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
17673
17674 * server.h: Include <string.h> if HAVE_STRING_H.
17675 * ChangeLog: Correct paths in last ChangeLog entry.
17676
17677 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
17678
17679 * linux-low.h: Remove obsolete prototypes.
17680 (struct linux_target_ops): New.
17681 (extern the_low_target): New.
17682 * linux-low.c (num_regs, regmap): Remove declarations.
17683 (register_addr): Use the_low_target explicitly.
17684 (fetch_register): Likewise.
17685 (usr_fetch_inferior_registers): Likewise.
17686 (usr_store_inferior_registers): Likewise.
17687 * linux-arm-low.c (num_regs): Remove.
17688 (arm_num_regs): Define.
17689 (arm_regmap): Renamed from regmap, made static.
17690 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
17691 made static.
17692 (arm_cannot_store_register): Renamed from cannot_store_register,
17693 made static.
17694 (the_low_target): New.
17695 * linux-i386-low.c (num_regs): Remove.
17696 (i386_num_regs): Define.
17697 (i386_regmap): Renamed from regmap, made static.
17698 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
17699 made static.
17700 (i386_cannot_store_register): Renamed from cannot_store_register,
17701 made static.
17702 (the_low_target): New.
17703 * linux-ia64-low.c (num_regs): Remove.
17704 (ia64_num_regs): Define.
17705 (ia64_regmap): Renamed from regmap, made static.
17706 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
17707 made static.
17708 (ia64_cannot_store_register): Renamed from cannot_store_register,
17709 made static.
17710 (the_low_target): New.
17711 * linux-m68k-low.c (num_regs): Remove.
17712 (m68k_num_regs): Define.
17713 (m68k_regmap): Renamed from regmap, made static.
17714 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
17715 made static.
17716 (m68k_cannot_store_register): Renamed from cannot_store_register,
17717 made static.
17718 (the_low_target): New.
17719 * linux-mips-low.c (num_regs): Remove.
17720 (mips_num_regs): Define.
17721 (mips_regmap): Renamed from regmap, made static.
17722 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
17723 made static.
17724 (mips_cannot_store_register): Renamed from cannot_store_register,
17725 made static.
17726 (the_low_target): New.
17727 * linux-ppc-low.c (num_regs): Remove.
17728 (ppc_num_regs): Define.
17729 (ppc_regmap): Renamed from regmap, made static.
17730 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
17731 made static.
17732 (ppc_cannot_store_register): Renamed from cannot_store_register,
17733 made static.
17734 (the_low_target): New.
17735 * linux-s390-low.c (num_regs): Remove.
17736 (s390_num_regs): Define.
17737 (s390_regmap): Renamed from regmap, made static.
17738 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
17739 made static.
17740 (s390_cannot_store_register): Renamed from cannot_store_register,
17741 made static.
17742 (the_low_target): New.
17743 * linux-sh-low.c (num_regs): Remove.
17744 (sh_num_regs): Define.
17745 (sh_regmap): Renamed from regmap, made static.
17746 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
17747 made static.
17748 (sh_cannot_store_register): Renamed from cannot_store_register,
17749 made static.
17750 (the_low_target): New.
17751 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
17752 (the_low_target): New.
17753
17754 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
17755
17756 * Makefile.in: Add stamp-h target.
17757 * configure.in: Create stamp-h.
17758 * configure: Regenerated.
17759
17760 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
17761
17762 * inferiors.c: New file.
17763 * target.c: New file.
17764 * target.h: New file.
17765 * Makefile.in: Add target.o and inferiors.o. Update
17766 dependencies.
17767 * linux-low.c (inferior_pid): New static variable,
17768 moved from server.c.
17769 (linux_create_inferior): Renamed from create_inferior.
17770 Call add_inferior. Return 0 on success instead of a PID.
17771 (linux_attach): Renamed from myattach.
17772 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
17773 (linux_thread_alive): Renamed from mythread_alive.
17774 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
17775 child dies.
17776 (linux_resume): Renamed from myresume. Add missing ``return 0''.
17777 (regsets_store_inferior_registers): Correct error message.
17778 Add missing ``return 0''.
17779 (linux_fetch_registers): Renamed from fetch_inferior_registers.
17780 (linux_store_registers): Renamed from store_inferior_registers.
17781 (linux_read_memory): Renamed from read_inferior_memory.
17782 (linux_write_memory): Renamed from write_inferior_memory.
17783 (linux_target_ops): New structure.
17784 (initialize_low): Call set_target_ops ().
17785 * remote-utils.c (unhexify): New function.
17786 (hexify): New function.
17787 (input_interrupt): Send signals to ``signal_pid''.
17788 * server.c (inferior_pid): Remove.
17789 (start_inferior): Update create_inferior call.
17790 (attach_inferior): Call add_inferior.
17791 (handle_query): New function.
17792 (main): Call handle_query for `q' packets.
17793 * server.h: Include "target.h". Remove obsolete prototypes.
17794 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
17795
17796 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
17797
17798 * Makefile.in: Add WARN_CFLAGS. Update configury
17799 dependencies.
17800 * configure.in: Check for <string.h>
17801 * configure: Regenerate.
17802 * config.in: Regenerate.
17803 * gdbreplay.c: Include needed system headers.
17804 (remote_open): Remove strchr prototype.
17805 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
17806 * regcache.c (supply_register): Change buf argument to const void *.
17807 (supply_register_by_name): Likewise.
17808 (collect_register): Change buf argument to void *.
17809 (collect_register_by_name): Likewise.
17810 * regcache.h: Add missing prototypes.
17811 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
17812 * server.c (handle_query): New function.
17813 (attached): New static variable, moved out of main.
17814 (main): Quiet longjmp clobber warnings.
17815 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
17816 * utils.c (error): Remove NORETURN.
17817 (fatal): Likewise.
This page took 0.374445 seconds and 5 git commands to generate.