gdbserver: turn target op 'post_create_inferior' into a method
[deliverable/binutils-gdb.git] / gdbserver / ChangeLog
1 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2
3 Turn process_stratum_target's post_create_inferior op into a method
4 of process_target.
5
6 * target.h (struct process_stratum_target): Remove the target op.
7 (class process_target): Add the target op.
8 (target_post_create_inferior): Update the macro.
9 * target.cc (process_target::post_create_inferior): Define.
10
11 Update the derived classes and callers below.
12
13 * linux-low.cc (linux_target_ops): Update.
14 (linux_post_create_inferior): Turn into ...
15 (linux_process_target::post_create_inferior): ... this.
16 * linux-low.h (class linux_process_target): Update.
17 * lynx-low.cc (lynx_target_ops): Update.
18 * nto-low.cc (nto_target_ops): Update.
19 * win32-low.cc (win32_target_ops): Update.
20
21 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
22
23 Turn process_stratum_target's create_inferior op into a method of
24 process_target.
25
26 * target.h (struct process_stratum_target): Remove the target op.
27 (class process_target): Add the target op.
28 (create_inferior): Rename the macro to ...
29 (target_create_inferior): ... this.
30
31 Update the derived classes and callers below.
32
33 * server.cc (handle_v_run): Update.
34 (captured_main): Update.
35 (process_serial_event): Update.
36 * linux-low.cc (linux_target_ops): Update.
37 (linux_create_inferior): Turn into ...
38 (linux_process_target::create_inferior): ... this.
39 * linux-low.h (class linux_process_target): Update.
40 * lynx-low.cc (lynx_target_ops): Update.
41 (lynx_create_inferior): Turn into ...
42 (lynx_process_target::create_inferior): ... this.
43 * lynx-low.h (class lynx_process_target): Update.
44 * nto-low.cc (nto_target_ops): Update.
45 (nto_create_inferior): Turn into ...
46 (nto_process_target::create_inferior): ... this.
47 * nto-low.h (class nto_process_target): Update.
48 * win32-low.cc (win32_target_ops): Update.
49 (win32_create_inferior): Turn into ...
50 (win32_process_target::create_inferior): ... this.
51 * win32-low.h (class win32_process_target): Update.
52
53 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
54
55 * target.h (class process_target): New class definition.
56 (struct process_stratum_target) <pt>: New field with type
57 'process_target*'.
58 * linux-low.h (class linux_process_target): Define as a derived
59 class of 'process_target'.
60 * linux-low.cc (linux_target_ops): Add a linux_process_target*
61 as the 'pt' field.
62 * lynx-low.h (class lynx_process_target): Define as a derived
63 class of 'process_target'.
64 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
65 as the 'pt' field.
66 * nto-low.h (class nto_process_target): Define as a derived
67 class of 'process_target'.
68 * nto-low.cc (nto_target_ops): Add an nto_process_target*
69 as the 'pt' field.
70 * win32-low.h (class win32_process_target): Define as a derived
71 class of 'process_target'.
72 * win32-low.cc (win32_target_ops): Add a win32_process_target*
73 as the 'pt' field.
74
75 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
76
77 * configure: Regenerate.
78
79 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
80 Andrew Burgess <andrew.burgess@embecosm.com>
81
82 * linux-riscv-low.cc: New file.
83 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
84 and nat/riscv-linux-tdesc.c.
85 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
86 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
87 Define.
88
89 2020-02-14 Tom Tromey <tom@tromey.com>
90
91 * acinclude.m4: Don't include acx_configure_dir.m4.
92 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
93 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
94 (all, install-only, uninstall, clean-info, clean)
95 (maintainer-clean): Don't recurse.
96 (subdir_do, all-lib): Remove.
97 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
98 (GNULIB_H): Remove.
99 (generated_files): Update.
100 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
101 * configure: Rebuild.
102 * configure.ac: Don't configure gnulib or libiberty.
103 (GNULIB): Update.
104
105 2020-02-14 Eli Zaretskii <eliz@gnu.org>
106
107 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
108 preparing the command line for CreateProcess.
109 (win32_create_inferior): Reflect the program name in debugging
110 output that shows the process and its command line.
111
112 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
113
114 * Makefile.in: Rename source files from .c to .cc.
115 * %.c: Rename to %.cc.
116 * configure.ac: Rename server.c to server.cc.
117 * configure: Re-generate.
118
119 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
120
121 * Makefile.in: Rename gdbsupport source files from .c to .cc.
122
123 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
124
125 * win32-low.c (win32_create_inferior): Set signal_pid.
126
127 2020-02-12 Maciej W. Rozycki <macro@wdc.com>
128 Pedro Alves <palves@redhat.com>
129
130 Skip building gdbserver in a cross-configuration.
131 * configure.srv: Set $gdbserver_host depending on whether $target
132 is $host. Use $gdbserver_host instead of $host.
133
134 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
135
136 * configure: Re-generate.
137
138 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
139
140 * configure: Re-generate.
141
142 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
143
144 * acinclude.m4: Update warning.m4 path.
145
146 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
147
148 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
149 (handle_exception): Set siginfo_er.
150 (win32_xfer_siginfo): New function.
151
152 2020-02-07 Tom Tromey <tom@tromey.com>
153 Pedro Alves <palves@redhat.com>
154
155 * README: Update build documentation.
156 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
157 host, not target.
158 * configure.ac: Update paths.
159 * configure: Rebuild.
160 * acinclude.m4: Update paths.
161 * Makefile.in: Update include paths.
162 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
163 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
164 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
165 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
166 (%-generated.c): Update paths.
167 * Move entire directory from ../gdb/gdbserver.
168
169 2020-01-29 Maciej W. Rozycki <macro@wdc.com>
170
171 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
172
173 2020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
174
175 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
176 assignment instead of srv_linux_obj.
177
178 2020-01-28 Hannes Domani <ssbssa@yahoo.de>
179
180 * server.c (handle_qxfer_libraries): Write segment-address with
181 paddress.
182
183 2020-01-24 Hannes Domani <ssbssa@yahoo.de>
184
185 * Makefile.in (install-strip): New target.
186 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
187 * aclocal.m4: Regenerate.
188 * configure: Regenerate.
189 * configure.ac: Add AM_PROG_INSTALL_STRIP.
190
191 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
192
193 * Makefile.in (SFILES): Adjust paths to point to real files.
194 (OBS): Move waitstatus.o to target/waitstatus.o.
195 (TAGS): Transform paths appropriately.
196 (%.o): Rename to...
197 (nat/%.o): ... this pattern rule.
198 (%.o): Rename to...
199 (target/%.o): ... this pattern rule.
200 * configure.srv: Adjust paths throughout to include nat/ prefix
201 with the revant files.
202 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
203 * configure: Regenerate.
204
205 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
206
207 * Makefile.in (TAGS): Remove config files from the recipe.
208
209 2020-01-14 Tom Tromey <tom@tromey.com>
210
211 * configure: Rebuild.
212 * configure.ac: Remove any checks that were added to common.m4.
213 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
214 lib-link.m4.
215
216 2020-01-14 Tom Tromey <tom@tromey.com>
217
218 * server.h: Include config.h.
219 * gdbreplay.c: Include config.h.
220 * configure: Rebuild.
221 * configure.ac: Don't source common.host.
222 * acinclude.m4: Update path.
223 * Makefile.in (INCSUPPORT): New variable.
224 (INCLUDE_CFLAGS): Add INCSUPPORT.
225 (SFILES): Update paths.
226 (version-generated.c): Update path to create-version.sh.
227 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
228
229 2020-01-14 Tom Tromey <tom@tromey.com>
230
231 * configure.ac (LIBS): Use WIN32APILIBS.
232 (USE_WIN32API): Don't define.
233 * configure: Rebuild.
234
235 2020-01-14 Tom Tromey <tom@tromey.com>
236
237 * configure: Rebuild.
238
239 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
240
241 * Makefile.in (%-generated.c): Remove rule for files from
242 regformats/i386.
243
244 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
245
246 * configure: Re-generate.
247
248 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
249
250 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
251 Define to static.
252 * tracepoint.c (stop_tracing, flush_trace_buffer,
253 about_to_request_buffer_space, get_trace_state_variable_value,
254 set_trace_state_variable_value, gdb_collect): Add declaration.
255
256 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
257
258 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
259 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
260 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
261 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
262 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
263 static.
264
265 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
266
267 * inferiors.c: Include gdbsupport/common-inferior.h.
268
269 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
270
271 * hostio-errno.c: Include hostio.h.
272
273 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
274
275 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
276 prerequisite.
277
278 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
279
280 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
281 * linux-arm-tdesc.h: Include arch/arm.h.
282
283 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
284
285 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
286
287 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
288
289 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
290 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
291
292 2020-01-10 Pedro Alves <palves@redhat.com>
293
294 * fork-child.c (post_fork_inferior): Pass target down to
295 startup_inferior.
296 * inferiors.c (switch_to_thread): Add process_stratum_target
297 parameter.
298 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
299 * nto-low.c (nto_target_ops): Now a process_stratum_target.
300 * linux-low.c (linux_target_ops): Now a process_stratum_target.
301 * remote-utils.c (prepare_resume_reply): Pass the target to
302 switch_to_thread.
303 * target.c (the_target): Now a process_stratum_target.
304 (done_accessing_memory): Pass the target to switch_to_thread.
305 (set_target_ops): Ajust to use process_stratum_target.
306 * target.h (struct target_ops): Rename to ...
307 (struct process_stratum_target): ... this.
308 (the_target, set_target_ops): Adjust.
309 (prepare_to_access_memory): Adjust comment.
310 * win32-low.c (child_xfer_memory): Adjust to use
311 process_stratum_target.
312 (win32_target_ops): Now a process_stratum_target.
313
314 2020-01-06 Eli Zaretskii <eliz@gnu.org>
315 Pedro Alves <palves@redhat.com>
316
317 * win32-low.c (get_child_debug_event): Extract the fatal exception
318 from the exit status and convert to the equivalent Posix signal
319 number.
320 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
321 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
322
323 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
324
325 * Makefile.in: Use INSTALL_PROGRAM_ENV.
326
327 2020-01-01 Joel Brobecker <brobecker@adacore.com>
328
329 * server.c (gdbserver_version): Change copyright year to 2020.
330 * gdbreplay.c (gdbreplay_version): Likewise.
331
332 2019-12-19 Christian Biesinger <cbiesinger@google.com>
333
334 * configure: Regenerate.
335 * configure.ac: Quote variable arguments of test.
336
337 2019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
338
339 * Makefile.in: Fix build with GNU Make 3.81
340
341 2019-12-16 Tom Tromey <tromey@adacore.com>
342
343 * server.c (get_exec_file): Constify result.
344
345 2019-12-10 Christian Biesinger <cbiesinger@google.com>
346
347 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
348 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
349 * config.in: Regenerate.
350 * configure: Regenerate.
351 * configure.ac: Don't check for strerror.
352 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
353 Call safe_strerror instead of strerror.
354 * server.h (strerror): Remove this now-unnecessary declaration.
355 * tracepoint.c (init_named_socket): Call safe_strerror instead of
356 strerror.
357 (gdb_agent_helper_thread): Likewise.
358 * utils.c (perror_with_name): Likewise.
359
360 2019-11-26 Tom Tromey <tom@tromey.com>
361
362 * configure, config.in: Rebuild.
363
364 2019-11-26 Tom Tromey <tom@tromey.com>
365
366 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
367 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
368 gdb_sigmask.
369 * configure, config.in: Rebuild.
370
371 2019-11-26 Tom Tromey <tom@tromey.com>
372
373 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
374 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
375 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
376 * acinclude.m4: Include ax_pthread.m4.
377 * config.in, configure: Rebuild.
378
379 2019-11-26 Christian Biesinger <cbiesinger@google.com>
380
381 * debug.c (debug_set_output): Call safe_strerror instead of
382 strerror.
383 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
384 (linux_kill_one_lwp): Likewise.
385 (linux_detach_one_lwp): Likewise.
386 (linux_wait_for_event_filtered): Likewise.
387 (store_register): Likewise.
388 * lynx-low.c (lynx_attach): Likewise.
389 * mem-break.c (insert_memory_breakpoint): Likewise.
390 (remove_memory_breakpoint): Likewise.
391 (delete_fast_tracepoint_jump): Likewise.
392 (set_fast_tracepoint_jump): Likewise.
393 (uninsert_fast_tracepoint_jumps_at): Likewise.
394 (reinsert_fast_tracepoint_jumps_at): Likewise.
395 * nto-low.c (nto_xfer_memory): Likewise.
396 (nto_resume): Likewise.
397
398 2019-11-20 Luis Machado <luis.machado@linaro.org>
399
400 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
401 instead of register count.
402 * tdesc.c (tdesc_contains_feature): New function.
403 * tdesc.h (tdesc_contains_feature): New prototype.
404
405 2019-11-15 Christian Biesinger <cbiesinger@google.com>
406
407 * Makefile.in: Add safe-strerror.c.
408 * configure: Regenerate.
409 * configure.ac: Don't source common.host.
410
411 2019-11-15 Christian Biesinger <cbiesinger@google.com>
412
413 * config.in: Regenerate.
414 * configure: Regenerate.
415
416 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
417
418 * ax.c (ax_printf): Handle size_t_arg.
419
420 2019-11-06 Christian Biesinger <cbiesinger@google.com>
421
422 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
423 * mi/mi-main.c (output_cores): Likewise.
424 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
425 (linux_xfer_osdata_modules): Likewise.
426 * remote.c (register_remote_support_xml): Likewise.
427 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
428 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
429
430 2019-11-01 Christian Biesinger <cbiesinger@google.com>
431
432 * configure: Regenerate.
433 * configure.ac: Remove check for strerror_r.
434
435 2019-10-31 Christian Biesinger <cbiesinger@google.com>
436
437 * config.in: Regenerate.
438 * configure: Regenerate.
439 * configure.ac: Also check for strerror_r.
440
441 2019-10-31 Christian Biesinger <cbiesinger@google.com>
442
443 * ax.h (debug_agent): Remove duplicate declaration.
444
445 2019-10-26 Tom de Vries <tdevries@suse.de>
446
447 * linux-aarch64-low.c: Fix typos in comments.
448 * linux-arm-low.c: Same.
449 * linux-low.c: Same.
450 * linux-ppc-low.c: Same.
451 * proc-service.c: Same.
452 * regcache.h: Same.
453 * server.c: Same.
454 * tracepoint.c: Same.
455 * win32-low.c: Same.
456
457 2019-10-25 Tom Tromey <tromey@adacore.com>
458
459 * utils.c (xstrdup): Remove.
460
461 2019-10-23 Tom Tromey <tom@tromey.com>
462
463 * configure, config.in: Rebuild.
464
465 2019-10-23 Tom Tromey <tom@tromey.com>
466
467 * configure: Rebuild.
468 * acinclude.m4: Use m4_include, not sinclude.
469
470 2019-10-17 Tom Tromey <tromey@adacore.com>
471
472 * configure: Rebuild.
473 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
474 in AC_CONFIG_FILES invocation.
475 * Makefile.in (stamp-h, Makefile): Use new-style config.status
476 invocation.
477
478 2019-10-16 Christian Biesinger <cbiesinger@google.com>
479
480 * server.c: Include xml-builtin.h.
481 (get_xml_features): Don't declare xml_builtins here.
482
483 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
484
485 * Makefile.in: Remove references to vec-ipa.o.
486
487 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
488
489 * Makefile.in: Remove references to vec.c.
490
491 2019-10-02 Christian Biesinger <cbiesinger@google.com>
492
493 * server.c (server_waiting): Change to bool.
494 (extended_protocol): Likewise.
495 (response_needed): Likewise.
496 (exit_requested): Likewise.
497 (run_once): Likewise.
498 (report_no_resumed): Likewise.
499 (non_stop): Likewise.
500 (disable_packet_vCont): Likewise.
501 (disable_packet_Tthread): Likewise.
502 (disable_packet_qC): Likewise.
503 (disable_packet_qfThreadInfo): Likewise.
504 (handle_general_set): Update.
505 (handle_detach): Update.
506 (handle_monitor_command): Update.
507 (handle_query): Update.
508 (captured_main): Update.
509 (process_serial_event): Update.
510 * server.h (server_waiting): Change to bool.
511 (disable_packet_vCont): Likewise.
512 (disable_packet_Tthread): Likewise.
513 (disable_packet_qC): Likewise.
514 (disable_packet_qfThreadInfo): Likewise.
515 (run_once): Likewise.
516 (non_stop): Likewise.
517 * target.c (target_stop_and_wait): Update.
518
519 2019-10-02 Tom Tromey <tromey@adacore.com>
520
521 * Makefile.in (SFILES): Add common-inferior.c.
522 (OBS): Add common-inferior.o.
523 * server.c (startup_with_shell): Don't define.
524
525 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
526
527 * linux-low.c (linux_low_read_btrace): Update for change to
528 std::vector.
529
530 2019-09-20 Christian Biesinger <cbiesinger@google.com>
531
532 * debug.c (debug_threads): Remove comment in favor of the header.
533 * debug.h (using_threads): Add declaration.
534 (debug_threads): Add comment.
535 * linux-aarch64-low.c: Include debug.h and remove declaration of
536 debug_threads.
537 * nto-low.c: Likewise.
538 * remote-utils.c: Likewise.
539 * thread-db.c: Likewise.
540
541 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
542
543 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
544 and powerpc-cell64l-ipa.o.
545 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
546 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
547 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
548 (spu*-*-*): Remove.
549
550 * spu-low.c: Remove file.
551
552 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
553 (parse_spufs_run): Remove.
554 (ppc_get_pc): Remove Cell/B.E. support.
555 (ppc_set_pc): Likewise.
556 (ppc_breakpoint_at): Likewise.
557 (ppc_arch_setup): Likewise.
558 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
559 tdesc_powerpc_cell32l.
560 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
561 or init_registers_powerpc_cell32l.
562 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
563 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
564 or init_registers_powerpc_cell32l.
565 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
566 (init_registers_powerpc_cell32l): Remove prototype.
567 (init_registers_powerpc_cell64l): Likewise.
568
569 * target.h (struct target_ops): Remove qxfer_spu member.
570 * server.c (handle_qxfer_spu): Remove.
571 (qxfer_packets): Remove entry for "spu".
572 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
573 * linux-low.c (SPUFS_MAGIC): Remove.
574 (spu_enumerate_spu_ids): Remove.
575 (linux_qxfer_spu): Remove.
576 (linux_target_ops): Remove qxfer_spu member.
577 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
578 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
579 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
580
581 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
582
583 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
584 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
585 * config.in: Regenerate.
586 * configure: Regenerate.
587
588 2019-08-15 Tom Tromey <tromey@adacore.com>
589
590 * target.c (target_write_memory): Use gdb::byte_vector.
591
592 2019-08-15 Tom Tromey <tromey@adacore.com>
593
594 * tracepoint.c (write_inferior_data_pointer)
595 (write_inferior_integer, write_inferior_int8)
596 (write_inferior_uinteger, m_tracepoint_action_download)
597 (r_tracepoint_action_download, x_tracepoint_action_download)
598 (l_tracepoint_action_download, clear_inferior_trace_buffer)
599 (download_agent_expr, download_tracepoint_1)
600 (download_trace_state_variables, upload_fast_traceframes): Update.
601 * server.c (gdb_write_memory): Update.
602 * remote-utils.c (relocate_instruction): Update.
603 * proc-service.c (ps_pdwrite): Update.
604 * mem-break.c (remove_memory_breakpoint)
605 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
606 (uninsert_fast_tracepoint_jumps_at)
607 (reinsert_fast_tracepoint_jumps_at): Update.
608 * linux-x86-low.c (append_insns)
609 (i386_install_fast_tracepoint_jump_pad)
610 (amd64_write_goto_address, i386_write_goto_address): Update.
611 * linux-s390-low.c (append_insns, s390_write_goto_address):
612 Update.
613 * linux-ppc-low.c (ppc_relocate_instruction)
614 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
615 (ppc_write_goto_address): Update.
616 * linux-aarch64-low.c (append_insns): Update.
617 * target.h (struct target_ops): Update.
618 (write_inferior_memory): Don't declare.
619 * target.c (target_write_memory): Rename from
620 write_inferior_memory. Remove old target_write_memory.
621
622 2019-08-15 Tom Tromey <tromey@adacore.com>
623
624 * target.c (write_inferior_memory): Use std::vector.
625
626 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
627
628 PR build/24886
629 * configure.ac: Drop enable-libmcheck support.
630 * configure, config.in: Rebuild.
631 * acinclude.m4: Don't include it.
632
633 2019-07-19 Alan Hayward <alan.hayward@arm.com>
634
635 * configure.srv: Remove Arm xml files.
636
637 2019-07-19 Alan Hayward <alan.hayward@arm.com>
638
639 * configure.srv: Add new files. Remove xml generated files.
640 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
641 registers.
642 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
643 * linux-aarch32-tdesc.c: New file.
644 * linux-aarch32-tdesc.h: New file.
645 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
646 * linux-arm-low.c (init_registers_arm, tdesc_arm)
647 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
648 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
649 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
650 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
651 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
652 (arm_read_description): Call arm_linux_read_description.
653 (initialize_low_arch): Don't init registers.
654 * linux-arm-tdesc.c: New file.
655 * linux-arm-tdesc.h: New file.
656
657 2019-07-10 Alan Hayward <alan.hayward@arm.com>
658
659 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
660 Move counter inside for.
661 (arm_read_description): Check ptrace earlier.
662 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
663
664 2019-07-09 Tom Tromey <tom@tromey.com>
665
666 * configure: Rebuild.
667 * configure.ac: Change common to gdbsupport.
668 * acinclude.m4: Change common to gdbsupport.
669 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
670 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
671 common to gdbsupport.
672 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
673 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
674 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
675 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
676 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
677 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
678 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
679 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
680 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
681 common to gdbsupport.
682
683 2019-07-04 Alan Hayward <alan.hayward@arm.com>
684
685 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
686 defines.
687 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
688
689 2019-07-04 Alan Hayward <alan.hayward@arm.com>
690
691 * configure.srv: Remove legacy xml.
692 * linux-aarch64-low.c (initialize_low_arch): Remove
693 initialize_low_tdesc call.
694 * linux-aarch64-tdesc-selftest.c: Remove file.
695 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
696 * linux-x86-low.c (initialize_low_arch): Remove
697 initialize_low_tdesc call.
698 * linux-x86-tdesc-selftest.c: Remove file.
699 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
700
701 2019-06-20 Tom de Vries <tdevries@suse.de>
702
703 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
704 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
705
706 2019-06-19 Tom de Vries <tdevries@suse.de>
707
708 * debug.h (debug_write): Change return type to ssize_t.
709 * debug.c (debug_write): Same.
710
711 2019-06-14 Tom Tromey <tom@tromey.com>
712
713 * configure.ac: Use new path to gnulib.
714 * configure: Rebuild.
715 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
716 to gnulib.
717
718 2019-06-11 Tom Tromey <tom@tromey.com>
719
720 * Makefile.in (SFILES): Add alloc.c.
721 (OBS): Add alloc.o.
722 (IPA_OBJS): Add alloc-ipa.o.
723 (alloc-ipa.o): New target.
724 (%.o: ../%.c): New pattern rule.
725
726 2019-06-10 Tom Tromey <tromey@adacore.com>
727
728 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
729 end warning with a newline.
730 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
731 newline.
732 * thread-db.c (attach_thread): Don't end warning with a newline.
733 (thread_db_notice_clone): Likewise.
734 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
735 newline.
736 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
737 end warning with a newline.
738
739 2019-06-04 Pedro Alves <palves@redhat.com>
740
741 * server.c (captured_main): Use make_unique_xstrdup.
742
743 2019-06-02 Tom Tromey <tom@tromey.com>
744
745 * gdbreplay.c (fromhex): Remove.
746 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
747
748 2019-05-29 Tom Tromey <tromey@adacore.com>
749
750 * configure: Rebuild.
751
752 2019-05-06 Kevin Buettner <kevinb@redhat.com>
753
754 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
755 sign extension code on 32-bit builds.
756
757 2019-05-03 Eli Zaretskii <eliz@gnu.org>
758
759 * remote-utils.c:
760 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
761
762 2019-04-19 Tom Tromey <tom@tromey.com>
763
764 * server.c (struct vstop_notif): Derive from notif_event.
765 <base>: Remove.
766 (queue_stop_reply): Update.
767 (remove_all_on_match_ptid): Change type. Rewrite.
768 (discard_queued_stop_replies): Rewrite.
769 (in_queued_stop_replies_ptid): Change type.
770 (in_queued_stop_replies): Rewrite.
771 (notif_stop): Update.
772 (queue_stop_reply_callback): Update.
773 (captured_main): Don't call initialize_notif.
774 (push_stop_notification): Update.
775 * notif.c (notif_write_event, handle_notif_ack)
776 (notif_event_enque, notif_push): Update.
777 (notif_event_xfree, initialize_notif): Remove.
778 * notif.h (struct notif_event): Include <list>, not
779 "common/queue.h".
780 (struct notif_server) <queue>: Now a std::list.
781 (notif_event_p): Remove typedef.
782 (initialize_notif): Don't declare.
783 (struct notif_event): Add virtual destructor.
784
785 2019-04-17 Alan Hayward <alan.hayward@arm.com>
786
787 * ax.c (ax_vdebug): Call debug_printf.
788 * debug.c (debug_write): New function.
789 * debug.h (debug_write): New declaration.
790 * linux-low.c (sigchld_handler): Call debug_write.
791
792 2019-04-17 Alan Hayward <alan.hayward@arm.com>
793
794 * debug.c (debug_set_output): New function.
795 (debug_vprintf): Send output to debug_file.
796 (debug_flush): Likewise.
797 * debug.h (debug_set_output): New declaration.
798 * server.c (handle_monitor_command): Add debug-file option.
799 (captured_main): Likewise.
800
801 2019-04-17 Alan Hayward <alan.hayward@arm.com>
802
803 * debug.c (remote_debug): Add definition.
804 * debug.h (remote_debug): Add declaration.
805 * hostio.c (remote_debug): Remove declaration.
806 * remote-utils.c (struct ui_file): Likewise.
807 (remote_debug): Likewise.
808 * remote-utils.h (remote_debug): Likewise,
809 * server.c (remote_debug): Remove definition.
810
811 2019-04-10 Kevin Buettner <kevinb@redhat.com>
812
813 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
814 when using a 64-bit gdbserver.
815
816 2019-04-09 Tom Tromey <tromey@adacore.com>
817
818 * linux-low.c (select_event_lwp): Use find_thread_in_random.
819
820 2019-04-08 Tom Tromey <tom@tromey.com>
821
822 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
823 throw.
824 (linux_resume_one_lwp): Likewise.
825
826 2019-04-08 Tom Tromey <tom@tromey.com>
827
828 * gdbreplay.c: Update.
829 * linux-low.c: Update.
830 * server.c: Update.
831
832 2019-04-08 Tom Tromey <tom@tromey.com>
833
834 * server.c: Use C++ exception handling.
835 * linux-low.c: Use C++ exception handling.
836 * gdbreplay.c: Use C++ exception handling.
837
838 2019-04-08 Tom Tromey <tom@tromey.com>
839
840 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
841 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
842 (captured_main, main): Update.
843 * gdbreplay.c (main): Update.
844
845 2019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
846
847 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
848 value in argument pointer, return 1 if the entry is found and 0
849 otherwise. Move comment.
850 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
851 * linux-low.h (linux_get_auxv): Declare.
852 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
853
854 2019-04-05 Tom Tromey <tromey@adacore.com>
855
856 * server.c (gdbserver_usage): Use upper-case for metasyntactic
857 variables.
858
859 2019-03-28 Alan Hayward <alan.hayward@arm.com>
860
861 * linux-low.c (AT_HWCAP2): Add define if not already included.
862
863 2019-03-26 Alan Hayward <alan.hayward@arm.com>
864
865 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
866 (aarch64_arch_setup): Call linux_get_hwcap.
867 * linux-arm-low.c (arm_get_hwcap): Remove function.
868 (arm_read_description): Call linux_get_hwcap.
869 * linux-low.c (linux_get_auxv): New function.
870 (linux_get_hwcap): Likewise.
871 (linux_get_hwcap2): Likewise.
872 * linux-low.h (linux_get_hwcap): New declaration.
873 (linux_get_hwcap2): Likewise.
874 * linux-ppc-low.c (ppc_get_auxv): Remove function.
875 (ppc_arch_setup): Call linux_get_hwcap.
876 * linux-s390-low.c (s390_get_hwcap): Remove function.
877 (s390_arch_setup): Call linux_get_hwcap.
878
879 2019-03-22 Alan Hayward <alan.hayward@arm.com>
880 Jiong Wang <jiong.wang@arm.com>
881
882 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
883 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
884 to fail.
885 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
886
887 2019-03-22 Alan Hayward <alan.hayward@arm.com>
888 Jiong Wang <jiong.wang@arm.com>
889
890 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
891 (aarch64_get_hwcap): New function.
892 (aarch64_arch_setup): Read APIA hwcap.
893
894 2019-03-22 Alan Hayward <alan.hayward@arm.com>
895 Jiong Wang <jiong.wang@arm.com>
896
897 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
898 (initialize_low_tracepoint): Likewise.
899 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
900 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
901 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
902 (aarch64_linux_read_description): Likewise.
903 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
904
905 2019-03-12 John Baldwin <jhb@FreeBSD.org>
906
907 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
908 i386_create_target_description for 'segments' parameter.
909 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
910 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
911 * win32-i386-low.c (i386_arch_setup): Likewise.
912
913 2019-03-12 Tom Tromey <tromey@adacore.com>
914
915 * linux-low.c (iterate_over_lwps): Update.
916
917 2019-03-06 Tom Tromey <tom@tromey.com>
918
919 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
920 (captured_main): Use SCOPE_EXIT.
921
922 2019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
923
924 * configure.srv: Use '$enable_unittest' instead of '$development'
925 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
926 case.
927
928 2019-02-27 Tom Tromey <tromey@adacore.com>
929
930 * gdbreplay.c (logchar): Handle \r\n.
931
932 2019-02-07 Alan Hayward <alan.hayward@arm.com>
933
934 * linux-low.c (linux_attach): Add process before lwp.
935 * server.c (attach_inferior): Check if already attached.
936
937 2019-02-07 Tom Tromey <tom@tromey.com>
938
939 * x86-tdesc.h: Rename include guard.
940 * x86-low.h: Add include guard.
941 * wincecompat.h: Rename include guard.
942 * win32-low.h: Add include guard.
943 * utils.h: Rename include guard.
944 * tracepoint.h: Rename include guard.
945 * tdesc.h: Rename include guard.
946 * target.h: Rename include guard.
947 * server.h: Rename include guard.
948 * remote-utils.h: Rename include guard.
949 * regcache.h: Rename include guard.
950 * nto-low.h: Rename include guard.
951 * notif.h: Add include guard.
952 * mem-break.h: Rename include guard.
953 * lynx-low.h: Add include guard.
954 * linux-x86-tdesc.h: Add include guard.
955 * linux-s390-tdesc.h: Add include guard.
956 * linux-ppc-tdesc-init.h: Add include guard.
957 * linux-low.h: Add include guard.
958 * linux-aarch64-tdesc.h: Add include guard.
959 * linux-aarch32-low.h: Add include guard.
960 * inferiors.h: Rename include guard.
961 * i387-fp.h: Rename include guard.
962 * hostio.h: Rename include guard.
963 * gdbthread.h: Rename include guard.
964 * gdb_proc_service.h: Rename include guard.
965 * event-loop.h: Rename include guard.
966 * dll.h: Rename include guard.
967 * debug.h: Rename include guard.
968 * ax.h: Rename include guard.
969
970 2018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
971
972 PR gdb/23985
973 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
974 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
975
976 2019-01-25 Tom Tromey <tom@tromey.com>
977
978 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
979
980 2019-01-25 Tom Tromey <tom@tromey.com>
981
982 * win32-low.c: Fix common/ includes.
983 * win32-i386-low.c: Fix common/ includes.
984 * tracepoint.c: Fix common/ includes.
985 * thread-db.c: Fix common/ includes.
986 * target.h: Fix common/ includes.
987 * symbol.c: Fix common/ includes.
988 * spu-low.c: Fix common/ includes.
989 * server.h: Fix common/ includes.
990 * server.c: Fix common/ includes.
991 * remote-utils.c: Fix common/ includes.
992 * regcache.h: Fix common/ includes.
993 * regcache.c: Fix common/ includes.
994 * nto-x86-low.c: Fix common/ includes.
995 * notif.h: Fix common/ includes.
996 * mem-break.h: Fix common/ includes.
997 * lynx-low.c: Fix common/ includes.
998 * lynx-i386-low.c: Fix common/ includes.
999 * linux-x86-tdesc-selftest.c: Fix common/ includes.
1000 * linux-x86-low.c: Fix common/ includes.
1001 * linux-low.c: Fix common/ includes.
1002 * inferiors.h: Fix common/ includes.
1003 * i387-fp.c: Fix common/ includes.
1004 * hostio.c: Fix common/ includes.
1005 * hostio-errno.c: Fix common/ includes.
1006 * gdbthread.h: Fix common/ includes.
1007 * gdbreplay.c: Fix common/ includes.
1008 * fork-child.c: Fix common/ includes.
1009 * event-loop.c: Fix common/ includes.
1010 * ax.c:
1011 (enum gdb_agent_op): Fix common/ includes.
1012
1013 2019-01-21 Tom Tromey <tom@tromey.com>
1014
1015 * tracepoint.c: Fix includes.
1016 * remote-utils.c: Fix includes.
1017 * linux-x86-low.c: Fix includes.
1018
1019 2019-01-01 Joel Brobecker <brobecker@adacore.com>
1020
1021 * gdbreplay.c (gdbreplay_version): Update copyright year in
1022 version message.
1023 * server.c (gdbserver_version): Likewise.
1024
1025 2018-12-05 Alan Hayward <alan.hayward@arm.com>
1026
1027 * linux-low.c (add_lwp): Switch ordering.
1028
1029 2018-11-29 Tom Tromey <tom@tromey.com>
1030
1031 * win32-low.c (win32_join): Take pid, not process.
1032 * target.h (struct target_ops) <join>: Change argument type.
1033 (join_inferior): Change argument name.
1034 * spu-low.c (spu_join): Take pid, not process.
1035 * server.c (handle_detach): Preserve pid before destroying
1036 process.
1037 * lynx-low.c (lynx_join): Take pid, not process.
1038 * linux-low.c (linux_join): Take pid, not process.
1039
1040 2018-11-23 Alan Hayward <alan.hayward@arm.com>
1041
1042 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
1043 (aarch64_cannot_fetch_register): Likewise.
1044 (struct linux_target_ops): Update references.
1045
1046 2018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1047
1048 * linux-ppc-low.c: Include nat/linux-ptrace.h.
1049
1050 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1051
1052 * configure.srv (ipa_ppc_linux_regobj): Add
1053 powerpc-isa207-htm-vsx32l-ipa.o and
1054 powerpc-isa207-htm-vsx64l-ipa.o.
1055 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
1056 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
1057 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
1058 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
1059 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
1060 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
1061 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
1062 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
1063 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
1064 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
1065 (init_registers_powerpc_isa207_htm_vsx32l)
1066 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
1067 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
1068 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
1069 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
1070 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
1071 (ppc_store_tm_ctarregset): New functions.
1072 (ppc_regsets): Add entries for HTM regsets.
1073 (ppc_arch_setup): Set htm in features struct when needed. Set
1074 sizes for the HTM regsets.
1075 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
1076 (initialize_low_arch): Call
1077 init_registers_powerpc_isa207_htm_vsx32l and
1078 init_registers_powerpc_isa207_htm_vsx64l.
1079 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
1080 PPC_TDESC_ISA207_HTM_VSX.
1081 (initialize_low_tracepoint): Call
1082 init_registers_powerpc_isa207_htm_vsx32l and
1083 init_registers_powerpc_isa207_htm_vsx64l.
1084
1085 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1086
1087 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
1088 rs6000/power-linux-pmu.xml to srv_xmlfiles.
1089 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
1090 (ppc_store_pmuregset): New functions.
1091 (ppc_regsets): Add entries for ebb and pmu regsets.
1092 (ppc_arch_setup): Set isa207 in features struct if the ebb and
1093 pmu regsets are available. Set sizes for these regsets.
1094
1095 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1096
1097 * configure.srv (ipa_ppc_linux_regobj): Add
1098 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
1099 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
1100 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
1101 rs6000/powerpc-isa207-vsx32l.xml, and
1102 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
1103 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
1104 <PPC_TDESC_ISA207_VSX>: New enum value.
1105 (init_registers_powerpc_isa207_vsx32l): Declare.
1106 (init_registers_powerpc_isa207_vsx64l): Declare.
1107 * linux-ppc-low.c (ppc_fill_tarregset): New function.
1108 (ppc_store_tarregset): New function.
1109 (ppc_regsets): Add entry for the TAR regset.
1110 (ppc_arch_setup): Set isa207 in features struct when needed. Set
1111 size for the TAR regsets.
1112 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
1113 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
1114 and init_registers_powerpc_isa207_vsx64l.
1115 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
1116 (initialize_low_tracepoint): Call
1117 init_registers_powerpc_isa207_vsx32l and
1118 init_registers_powerpc_isa207_vsx64l.
1119
1120 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1121 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1122
1123 * configure.srv (ipa_ppc_linux_regobj): Add
1124 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
1125 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
1126 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
1127 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
1128 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
1129 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
1130 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
1131 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
1132 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
1133 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
1134 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
1135 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
1136 (ppc_hwcap): Add comment.
1137 (ppc_hwcap2): New global.
1138 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
1139 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
1140 (ppc_regsets): Add entries for the DSCR and PPR regsets.
1141 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
1142 when needed. Set sizes for the the DSCR and PPR regsets.
1143 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
1144 (initialize_low_arch): Call
1145 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
1146 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
1147 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
1148 PPC_TDESC_ISA205_PPR_DSCR_VSX.
1149 (initialize_low_tracepoint): Call
1150 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
1151 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
1152
1153 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1154
1155 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
1156
1157 2018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
1158 Simon Marchi <simark@simark.ca>
1159
1160 * acinclude.m4: Include "../selftest.m4".
1161 * configure: Regenerate.
1162 * configure.ac: Use "GDB_AC_SELFTEST".
1163 * configure.srv: Use "$enable_unittests" instead of
1164 "$development" when checking whether unit tests have been
1165 enabled.
1166 * server.c (captured_main): Update message informing that
1167 selftests have been disabled.
1168
1169 2018-10-04 Tom Tromey <tom@tromey.com>
1170
1171 * configure: Rebuild.
1172
1173 2018-10-04 Tom Tromey <tom@tromey.com>
1174
1175 * server.c (handle_status): Rename inner "thread".
1176 (process_serial_event): Declare "res" in 'm' case.
1177 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
1178 (iterate_over_lwps): Rename inner "thread".
1179 (linux_qxfer_libraries_svr4): Rename inner "len".
1180 * gdbthread.h (find_thread_in_random): Rename inner "thread".
1181
1182 2018-10-01 Gary Benson <gbenson@redhat.com>
1183
1184 * gdb_proc_service.h: Moved common code to
1185 common/gdb_proc_service.h.
1186
1187 2018-10-01 Gary Benson <gbenson@redhat.com>
1188
1189 * gdb_proc_service.h: Synchronize comments and whitespace with
1190 GDB's version of this file.
1191
1192 2018-09-25 Tom Tromey <tom@tromey.com>
1193
1194 * configure: Rebuild.
1195 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
1196
1197 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
1198
1199 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
1200 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
1201 ($(IPA_LIB)): Sort IPA_OBJS.
1202
1203 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
1204
1205 * Makefile.in: Remove references to $(ADD_DEPS).
1206
1207 2018-09-16 Tom Tromey <tom@tromey.com>
1208
1209 * remote-utils.c (remote_open): Use GNU style for metasyntactic
1210 variables.
1211 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
1212 variables.
1213
1214 2018-09-05 Tom Tromey <tom@tromey.com>
1215
1216 * configure: Rebuild.
1217
1218 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
1219
1220 PR build/23399
1221 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
1222
1223 2018-08-27 Tom Tromey <tom@tromey.com>
1224
1225 PR build/23087:
1226 * configure: Rebuild.
1227
1228 2018-08-27 Tom Tromey <tom@tromey.com>
1229
1230 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
1231 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
1232 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
1233 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
1234 (s390x_emit_stack_adjust): Add casts to unsigned char.
1235
1236 2018-08-22 Simon Marchi <simon.marchi@ericsson.com>
1237
1238 PR gdb/23374
1239 PR gdb/23375
1240 * server.h (struct client_state) <disable_randomization>:
1241 Initialize to 1.
1242
1243 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1244
1245 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
1246 variable.
1247 (mips_supply_ptrace_register): Likewise.
1248
1249 2018-07-22 Tom Tromey <tom@tromey.com>
1250
1251 * configure: Rebuild.
1252
1253 2018-07-22 Tom Tromey <tom@tromey.com>
1254
1255 * win32-low.c (win32_create_inferior): Remove unused variables.
1256 * gdbreplay.c (remote_open): Remove unused variable.
1257 * remote-utils.c (remote_prepare): Remove unused variable.
1258 * x86-tdesc.h (X86_TDESC_H): Define.
1259 (amd64_expedite_regs): Define conditionally.
1260 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
1261 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
1262 * remote-utils.c (readchar): Remove unused variable.
1263
1264 2018-07-13 Pedro Alves <palves@redhat.com>
1265
1266 * linux-low.c (linux_kill): Change parameter to process_info
1267 pointer instead of pid. Adjust.
1268 * lynx-low.c (lynx_kill): Likewise.
1269 * nto-low.c (nto_kill): Likewise.
1270 * spu-low.c (spu_kill): Likewise.
1271 * win32-low.c (win32_kill): Likewise.
1272 * server.c (handle_v_kill, kill_inferior_callback)
1273 (detach_or_kill_for_exit): Adjust.
1274 * target.c (kill_inferior): Change parameter to process_info
1275 pointer instead of pid. Adjust.
1276 * target.h (struct target_ops) <kill>: Change parameter to
1277 process_info pointer instead of pid. Adjust all implementations
1278 and callers.
1279 (kill_inferior): Likewise.
1280
1281 2018-07-13 Pedro Alves <palves@redhat.com>
1282
1283 * linux-low.c (linux_detach, linux_join): Change parameter to
1284 process_info pointer instead of pid. Adjust.
1285 * lynx-low.c (lynx_detach, lynx_join): Likewise.
1286 * nto-low.c (nto_detach): Likewise.
1287 * spu-low.c (spu_detach, spu_join): Likewise.
1288 * win32-low.c (win32_detach, win32_join): Likewise.
1289 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
1290 * target.h (struct target_ops) <detach, join>: Change parameter to
1291 process_info pointer instead of pid. Adjust all implementations
1292 and callers.
1293 (detach_inferior, join_inferior): Rename 'pid' parameter to
1294 'proc'.
1295
1296 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
1297 Jan Kratochvil <jan.kratochvil@redhat.com>
1298 Paul Fertser <fercerpav@gmail.com>
1299 Tsutomu Seki <sekiriki@gmail.com>
1300
1301 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
1302 (OBS): Add 'common/netstuff.o'.
1303 (GDBREPLAY_OBS): Likewise.
1304 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
1305 (remote_open): Implement support for IPv6
1306 connections.
1307 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
1308 and 'wspiapi.h'.
1309 (handle_accept_event): Accept connections from IPv6 sources.
1310 (remote_prepare): Handle IPv6-style hostnames; implement
1311 support for IPv6 connections.
1312 (remote_open): Implement support for printing connections from
1313 IPv6 sources.
1314
1315 2018-07-11 Pedro Alves <palves@redhat.com>
1316
1317 PR gdb/23377
1318 * mem-break.c (any_persistent_commands): Add process_info
1319 parameter and use it instead of relying on the current process.
1320 Change return type to bool.
1321 * mem-break.h (any_persistent_commands): Add process_info
1322 parameter and change return type to bool.
1323 * server.c (handle_detach): Remove require_running_or_return call.
1324 Look up the process_info for the process we're about to detach.
1325 If not found, return back error to GDB. Adjust
1326 any_persistent_commands call to pass down a process pointer.
1327
1328 2018-07-11 Pedro Alves <palves@redhat.com>
1329
1330 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
1331 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
1332 instead of collect_register_by_name.
1333 * regcache.c (regcache_raw_get_unsigned_by_name): New.
1334 * regcache.h (regcache_raw_get_unsigned_by_name): New.
1335
1336 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
1337 Pedro Alves <palves@redhat.com>
1338
1339 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
1340
1341 2018-07-03 Tom Tromey <tom@tromey.com>
1342
1343 * linux-low.c: Update.
1344 * lynx-low.c: Update.
1345 * mem-break.c: Update.
1346 * nto-low.c: Update.
1347 * remote-utils.c: Update.
1348 * server.c: Update.
1349 * spu-low.c: Update.
1350 * target.c: Update.
1351 * win32-low.c: Update.
1352
1353 2018-07-03 Tom Tromey <tom@tromey.com>
1354
1355 * server.c: Update.
1356
1357 2018-07-03 Tom Tromey <tom@tromey.com>
1358
1359 * linux-low.c: Update.
1360
1361 2018-07-03 Tom Tromey <tom@tromey.com>
1362
1363 * target.c: Update.
1364
1365 2018-07-03 Tom Tromey <tom@tromey.com>
1366
1367 * linux-low.c: Update.
1368 * linux-mips-low.c: Update.
1369 * lynx-low.c: Update.
1370 * nto-low.c: Update.
1371 * remote-utils.c: Update.
1372 * server.c: Update.
1373 * spu-low.c: Update.
1374 * target.c: Update.
1375 * thread-db.c: Update.
1376
1377 2018-07-03 Tom Tromey <tom@tromey.com>
1378
1379 * linux-low.c: Update.
1380 * linux-mips-low.c: Update.
1381 * lynx-low.c: Update.
1382 * mem-break.c: Update.
1383 * nto-low.c: Update.
1384 * remote-utils.c: Update.
1385 * server.c: Update.
1386 * spu-low.c: Update.
1387 * target.c: Update.
1388 * tracepoint.c: Update.
1389
1390 2018-07-03 Tom Tromey <tom@tromey.com>
1391
1392 * linux-low.c: Update.
1393 * linux-ppc-low.c: Update.
1394 * linux-x86-low.c: Update.
1395 * proc-service.c: Update.
1396 * server.c: Update.
1397 * spu-low.c: Update.
1398 * thread-db.c: Update.
1399 * win32-low.c: Update.
1400
1401 2018-07-03 Tom Tromey <tom@tromey.com>
1402
1403 * linux-low.c: Update.
1404 * lynx-low.c: Update.
1405 * nto-low.c: Update.
1406 * remote-utils.c: Update.
1407 * spu-low.c: Update.
1408 * thread-db.c: Update.
1409 * win32-low.c: Update.
1410
1411 2018-06-29 Joel Brobecker <brobecker@adacore.com>
1412
1413 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
1414 parameter in call to 'amd64_create_target_description'.
1415
1416 2018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1417
1418 * x86-tdesc.h: Remove executable permission flag.
1419
1420 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
1421
1422 * configure.ac: Remove AC_PREREQ, add missing quoting.
1423 * configure: Re-generate.
1424 * config.in: Re-generate.
1425 * aclocal.m4: Re-generate.
1426
1427 2018-06-18 Simon Marchi <simon.marchi@ericsson.com>
1428
1429 * tracepoint.h (current_traceframe): Remove declaration.
1430
1431 2018-06-18 Alan Hayward <alan.hayward@arm.com>
1432
1433 * linux-aarch64-low.c (is_sve_tdesc): New function.
1434 (aarch64_sve_regs_copy_to_regcache): Likewise.
1435 (aarch64_sve_regs_copy_from_regcache): Likewise.
1436 (aarch64_regs_info): Add SVE checks.
1437 (initialize_low_arch): Initialize SVE.
1438
1439 2018-06-18 Alan Hayward <alan.hayward@arm.com>
1440
1441 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
1442
1443 2018-06-11 Alan Hayward <alan.hayward@arm.com>
1444
1445 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
1446 (initialize_low_tracepoint): Likewise
1447 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
1448 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
1449 param.
1450 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
1451 checks.
1452 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
1453
1454 2018-06-11 Alan Hayward <alan.hayward@arm.com>
1455
1456 * server.h (PBUFSIZ): Increase size
1457
1458 2018-06-11 Alan Hayward <alan.hayward@arm.com>
1459
1460 * regcache.c (regcache::raw_compare): New function.
1461 * regcache.h (regcache::raw_compare): New declaration.
1462
1463 2018-06-11 Alan Hayward <alan.hayward@arm.com>
1464
1465 * regcache.c (new_register_cache): Use new.
1466 (free_register_cache): Use delete.
1467 (register_data): Use const.
1468 (supply_register): Move body inside regcache.
1469 (regcache::raw_supply): New override function.
1470 (collect_register): Move body inside regcache.
1471 (regcache::raw_collect): New override function.
1472 (regcache::get_register_status): New override function.
1473 * regcache.h (struct regcache): Inherit from reg_buffer_common.
1474
1475 2018-06-09 Tom Tromey <tom@tromey.com>
1476
1477 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
1478 declare queue.
1479 (event_queue): Use std::queue.
1480 (gdb_event_xfree): Remove.
1481 (initialize_event_loop, process_event, wait_for_event): Update.
1482
1483 2018-06-08 Stan Cox <scox@redhat.com>
1484
1485 * win32-low.c (win32_create_inferior): last_ptid and last_status
1486 moved to client_state.
1487
1488 2018-06-08 Pedro Alves <palves@redhat.com>
1489
1490 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
1491 common/common-exceptions.o, common/common-utils.o,
1492 common/errors.o, common/print-utils.o and utils.o.
1493 * gdbreplay.c: Include "common-defs.h" instead of the two
1494 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
1495 string.h or alloca.h.
1496 (perror_with_name): Delete.
1497 (remote_open): Use xstrdup instead of strdup.
1498 (main): Rename to ...
1499 (captured_main): ... this.
1500 (main): New.
1501
1502 2018-06-08 Tom Tromey <tom@tromey.com>
1503
1504 * linux-low.c (linux_low_read_btrace): Update.
1505
1506 2018-06-04 Stan Cox <scox@redhat.com>
1507
1508 * server.h (struct client_state): New.
1509 * server.c (cont_thread, general_thread, multi_process)
1510 (report_fork_events, report_vfork_events, report_exec_events)
1511 (report_thread_events, swbreak_feature, hwbreak_feature)
1512 (vCont_supported, disable_randomization, pass_signals)
1513 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
1514 Moved to client_state.
1515 * remote-utils.c (remote_debug, noack_mode)
1516 (transport_is_reliable): Moved to client_state.
1517 * tracepoint.c (current_traceframe): Moved to client_state.
1518
1519 Update all callers.
1520 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
1521 linux-low.c, remote-utils.h, target.c: Use client_state.
1522
1523 2018-05-31 Alan Hayward <alan.hayward@arm.com>
1524
1525 * configure.srv: Add new c/h file.
1526
1527 2018-05-31 Alan Hayward <alan.hayward@arm.com>
1528
1529 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
1530 null VQ.
1531
1532 2018-05-25 Maciej W. Rozycki <macro@mips.com>
1533
1534 * gdb.arch/mips-fpregset-core.exp: New test.
1535 * gdb.arch/mips-fpregset-core.c: New test source.
1536
1537 2018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
1538
1539 PR server/23198
1540 * hostio.c (require_int): Do not report overflow for integers
1541 between 0xfffffff and 0x7fffffff.
1542
1543 2018-05-22 Maciej W. Rozycki <macro@mips.com>
1544
1545 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
1546 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
1547 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
1548 functions.
1549 (the_low_target): Wire them.
1550
1551 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
1552
1553 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
1554 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
1555 mode. Call collect_register_by_name with vscr using
1556 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
1557 (ppc_store_vrregset): Add and set vscr_offset variable as in
1558 ppc_fill_vrregset. Call supply_register_by_name with vscr using
1559 vscr_offset.
1560
1561 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
1562
1563 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
1564 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
1565 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
1566
1567 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
1568
1569 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
1570 (ppc_store_vsxregset): Likewise.
1571 (ppc_fill_vrregset): Likewise.
1572 (ppc_store_vrregset): Likewise.
1573 (ppc_fill_evrregset): Likewise.
1574 (ppc_store_evrregset): Likewise.
1575 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
1576 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
1577 needed.
1578
1579 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
1580
1581 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
1582 wordsize of the inferior. Call ppc_linux_target_wordsize.
1583
1584 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
1585
1586 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
1587 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
1588 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
1589 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
1590 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
1591 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
1592 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
1593 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
1594 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
1595 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
1596 (tdesc_powerpc_e500l): Remove.
1597 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
1598 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
1599 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
1600 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
1601 linux-ppc-tdesc.h.
1602 (ppc_arch_setup): Remove target description matching code. Fill a
1603 ppc_linux_features struct and call ppc_linux_match_description
1604 with it.
1605
1606 2018-05-22 Maciej W. Rozycki <macro@mips.com>
1607
1608 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
1609 width of the requested register exceeds the width of the
1610 `ptrace' data type.
1611 (mips_cannot_store_register): Likewise.
1612
1613 2018-05-21 Maciej W. Rozycki <macro@mips.com>
1614
1615 * linux-mips-low.c (mips_fetch_register): New function. Update
1616 preceding comment.
1617 (mips_store_gregset): Supply 0 rather than $restart for $zero.
1618 (the_low_target): Wire `mips_fetch_register'.
1619
1620 2018-05-10 Joel Brobecker <brobecker@adacore.com>
1621
1622 * lynx-i386-low.c (LYNXOS_178): New macro.
1623 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
1624 the layout on LynxOS-178.
1625 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
1626 handle floating point registers that are not supported by
1627 LynxOS-178.
1628
1629 2018-05-10 Tom Tromey <tom@tromey.com>
1630
1631 * configure: Rebuild.
1632
1633 2018-05-10 Joel Brobecker <brobecker@adacore.com>
1634
1635 PR server/23158:
1636 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
1637 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
1638 Use it to set the expedite_regs field in the given tdesc.
1639 * x86-tdesc.h: New file.
1640 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
1641 Adjust following the addition of the new expedite_regs parameter
1642 to init_target_desc.
1643 * linux-tic6x-low.c (tic6x_read_description): Likewise.
1644 * linux-x86-tdesc.c: #include "x86-tdesc.h".
1645 (i386_linux_read_description, amd64_linux_read_description):
1646 Adjust following the addition of the new expedite_regs parameter
1647 to init_target_desc.
1648 * lynx-i386-low.c: #include "x86-tdesc.h".
1649 (lynx_i386_arch_setup): Adjust following the addition of the new
1650 expedite_regs parameter to init_target_desc.
1651 * nto-x86-low.c: #include "x86-tdesc.h".
1652 (nto_x86_arch_setup): Adjust following the addition of the new
1653 expedite_regs parameter to init_target_desc.
1654 * win32-i386-low.c: #include "x86-tdesc.h".
1655 (i386_arch_setup): Adjust following the addition of the new
1656 expedite_regs parameter to init_target_desc.
1657
1658 2018-05-10 Joel Brobecker <brobecker@adacore.com>
1659
1660 PR server/23158:
1661 * win32-low.c (win32_create_inferior): Add call to my_wait
1662 setting last_status global.
1663
1664 2018-05-10 Joel Brobecker <brobecker@adacore.com>
1665
1666 PR server/23158:
1667 * win32-low.c (create_process): Only call gdb_tilde_expand if
1668 inferior_cwd is not NULL.
1669
1670 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
1671
1672 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
1673 registers to the cache if their values have changed.
1674 (i387_xsave_to_cache): Provide default values for x87 control
1675 registers when these features are available, but disabled.
1676 * regcache.c (supply_register_by_name_zeroed): New function.
1677 * regcache.h (supply_register_by_name_zeroed): Declare new
1678 function.
1679
1680 2018-05-07 Tom Tromey <tom@tromey.com>
1681
1682 * configure: Rebuild.
1683
1684 2018-05-04 Tom Tromey <tom@tromey.com>
1685
1686 * configure: Rebuild.
1687
1688 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1689 Pedro Alves <palves@redhat.com>
1690
1691 * linux-aarch64-low.c (aarch64_stopped_data_address):
1692 Likewise.
1693
1694 2018-04-27 Tom Tromey <tom@tromey.com>
1695
1696 * configure: Rebuild.
1697
1698 2018-04-23 Tom Tromey <tom@tromey.com>
1699
1700 * configure: Rebuild.
1701
1702 2018-04-19 Simon Marchi <simon.marchi@ericsson.com>
1703
1704 * Makefile.in (depcomp): Add "..".
1705 (all_deps_files): New and use it.
1706
1707 2018-04-18 Alan Hayward <alan.hayward@arm.com>
1708
1709 * configure.srv (aarch64*-*-linux*): Don't include xml.
1710 (i[34567]86-*-cygwin*): Likewise.
1711 (i[34567]86-*-linux*): Likewise.
1712 (i[34567]86-*-lynxos*): Likewise.
1713 (i[34567]86-*-mingw32ce*): Likewise.
1714 (i[34567]86-*-mingw*): Likewise.
1715 (i[34567]86-*-nto*): Likewise.
1716 (tic6x-*-uclinux): Likewise.
1717 (x86_64-*-linux*): Likewise.
1718 (x86_64-*-mingw*): Likewise.
1719 (x86_64-*-cygwin*): Likewise.
1720
1721 2018-04-18 Alan Hayward <alan.hayward@arm.com>
1722
1723 * tdesc.c: Remove xml parameter.
1724
1725 2018-04-18 Alan Hayward <alan.hayward@arm.com>
1726
1727 * server.c (get_features_xml): Remove cast.
1728 * tdesc.c (void target_desc::accept): Fill in function.
1729 (tdesc_get_features_xml): Remove old xml creation.
1730 (print_xml_feature::visit_pre): Add xml vistor.
1731 * tdesc.h (struct target_desc): Make xmltarget mutable.
1732 (tdesc_get_features_xml): Remove declaration.
1733
1734 2018-04-18 Alan Hayward <alan.hayward@arm.com>
1735
1736 * tdesc.c (tdesc_architecture_name): Add new function.
1737 (tdesc_osabi_name): Likewise.
1738 (tdesc_get_features_xml): Use new functions.
1739
1740 2018-04-18 Alan Hayward <alan.hayward@arm.com>
1741
1742 * tdesc.c (tdesc_create_flags): Remove.
1743 (tdesc_add_flag): Likewise.
1744 (tdesc_named_type): Likewise.
1745 (tdesc_create_union): Likewise.
1746 (tdesc_create_struct): Likewise.
1747 (tdesc_create_vector): Likewise.
1748 (tdesc_add_bitfield): Likewise.
1749 (tdesc_add_field): Likewise.
1750 (tdesc_set_struct_size): Likewise.
1751
1752 2018-04-18 Alan Hayward <alan.hayward@arm.com>
1753
1754 * tdesc.c (~target_desc): Remove implictly deleted items.
1755 (init_target_desc): Iterate all features.
1756 (tdesc_get_features_xml): Use vector.
1757 (tdesc_create_feature): Create feature.
1758 * tdesc.h (tdesc_feature) Remove
1759 (target_desc): Add features.
1760
1761 2018-04-18 Alan Hayward <alan.hayward@arm.com>
1762
1763 * Makefile.in: Add common/tdesc.c
1764 * tdesc.c (init_target_desc): init all reg_defs from register
1765 vector.
1766 (tdesc_create_reg): Create tdesc_reg.
1767 * tdesc.h (tdesc_feature): Add register vector.
1768
1769 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
1770
1771 * tdesc.h (struct target_desc) <features>: Change type to
1772 std::vector<std::string>.
1773 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
1774 changes.
1775 (tdesc_get_features_xml): Likewise.
1776 (tdesc_create_feature): Likewise.
1777
1778 2018-03-26 Alan Hayward <alan.hayward@arm.com>
1779
1780 * regcache.c (find_register_by_number): Return a ref.
1781 (find_regno): Use references.
1782 (register_size): Likewise.
1783 (register_data): Likewise.
1784 * tdesc.c (target_desc::~target_desc): Remove free calls.
1785 (target_desc::operator==): Use std::vector compare.
1786 (init_target_desc): Use reference.
1787 (tdesc_create_reg): Use reg constructors.
1788 * tdesc.h (struct target_desc): Replace pointer with object.
1789
1790 2018-03-23 Alan Hayward <alan.hayward@arm.com>
1791
1792 * regcache.c (find_register_by_number): Make static.
1793 (find_regno): Use find_register_by_number
1794 * regcache.h (struct reg): Remove declaration.
1795
1796 2018-03-23 Alan Hayward <alan.hayward@arm.com>
1797
1798 * tdesc.c (target_desc::~target_desc): Move to here.
1799 (target_desc::operator==): Likewise.
1800 * tdesc.h (target_desc::~target_desc): Move from here.
1801 (target_desc::operator==): Likewise.
1802
1803 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
1804
1805 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
1806
1807 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1808
1809 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
1810 S390_TDESC_GS.
1811 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
1812 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
1813 and init_registers_s390_gs_linux64.
1814
1815 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1816
1817 * linux-s390-low.c (s390_fill_gs): Remove function.
1818 (s390_fill_gsbc): Remove function.
1819 (s390_regsets): Set fill functions for the guarded storage regsets
1820 to NULL.
1821
1822 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1823
1824 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
1825 the word size. Add comment.
1826 (s390_get_wordsize): New function.
1827 (s390_arch_setup): No longer select a temporary tdesc to fetch the
1828 pswm with it. Instead, use s390_get_wordsize to determine the
1829 word size first and derive the correct tdesc from that directly.
1830
1831 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
1832
1833 * Makefile.in: Include silent-rules.mk.
1834 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
1835 (COMPILE): Add ECHO_CXX.
1836 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
1837 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
1838 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
1839 (version-generated.c): Add ECHO_GEN.
1840 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
1841 (IPAGENT_COMPILE): Add ECHO_CXX.
1842 (%-generated.c): Add ECHO_REGDAT.
1843
1844 2018-03-14 Tom Tromey <tom@tromey.com>
1845
1846 PR cli/14977:
1847 * ax.c (ax_printf): Special case for NULL.
1848
1849 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
1850
1851 * linux-low.c (linux_qxfer_libraries_svr4): Use
1852 xml_escape_text_append.
1853
1854 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
1855
1856 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
1857
1858 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
1859
1860 * server.c (handle_general_set): Remove unnecessary xstrdup.
1861
1862 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
1863
1864 * server.c (parse_debug_format_options): Adjust to
1865 delim_string_to_char_ptr_vec changes.
1866 * thread-db.c (thread_db_load_search): Adjust to
1867 dirnames_to_char_ptr_vec changes.
1868
1869 2018-03-01 Markus Metzger <markus.t.metzger@intel.com>
1870
1871 * target.h (target_enable_btrace, target_disable_btrace)
1872 (target_read_btrace, target_read_btrace_conf): Turn macro into
1873 inline function. Throw error if target method is not defined.
1874 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
1875 check for btrace target method. Be prepared to handle exceptions
1876 from btrace target methods.
1877
1878 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
1879
1880 * server.c (captured_main): Change order of error message printed
1881 when the current working directory cannot be found.
1882
1883 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
1884
1885 * server.c: Include "filenames.h" and "pathstuff.h".
1886 (program_name): Delete variable.
1887 (program_path): New anonymous class.
1888 (get_exec_wrapper): Use "program_path" instead of
1889 "program_name".
1890 (handle_v_run): Likewise.
1891 (captured_main): Likewise.
1892 (process_serial_event): Likewise.
1893
1894 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
1895
1896 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
1897 (OBJS): Add "pathstuff.o".
1898 * server.c (current_directory): New global variable.
1899 (captured_main): Initialize "current_directory".
1900
1901 2018-02-26 Alan Hayward <alan.hayward@arm.com>
1902
1903 * tdesc.c: Use common/tdesc.h.
1904 * tdesc.h: Likewise.
1905
1906 2018-02-20 Alan Hayward <alan.hayward@arm.com>
1907 Simon Marchi <simon.marchi@ericsson.com>
1908
1909 * Makefile.in: Switch order of make rules.
1910
1911 2018-02-19 Alan Hayward <alan.hayward@arm.com>
1912
1913 * Makefile.in: Add common directory in build.
1914 * configure.ac: Add common reference.
1915 * configure: Regenerate.
1916
1917 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
1918
1919 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
1920 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
1921 * spu-low.c (spu_target_ops): Likewise.
1922 * win32-low.c (win32_target_ops): Likewise.
1923 * server.c (supported_btrace_packets): Report packets unconditionally.
1924 * target.h (target_ops) <supports_btrace>: Remove.
1925 (target_supports_btrace): Remove.
1926
1927 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
1928
1929 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
1930 (handle_btrace_disable): Change return type to void. Use exceptions
1931 to report errors.
1932 (handle_btrace_general_set): Catch exception and copy message to
1933 return message.
1934
1935 2018-02-08 Tom Tromey <tom@tromey.com>
1936
1937 * linux-low.c (install_software_single_step_breakpoints): Use
1938 make_scoped_restore.
1939 * inferiors.c (make_cleanup_restore_current_thread): Remove.
1940 (do_restore_current_thread_cleanup): Remove.
1941 * gdbthread.h (make_cleanup_restore_current_thread): Don't
1942 declare.
1943
1944 2018-02-08 Tom Tromey <tom@tromey.com>
1945
1946 * mem-break.c (set_raw_breakpoint_at): Use
1947 gdb::unique_xmalloc_ptr.
1948
1949 2018-01-30 Pedro Alves <palves@redhat.com>
1950
1951 PR gdb/13211
1952 * target.c (target_terminal::terminal_state): Rename to ...
1953 (target_terminal::m_terminal_state): ... this.
1954
1955 2018-01-19 James Clarke <jrtc27@jrtc27.com>
1956
1957 * linux-low.c (handle_extended_wait): Surround call to
1958 thread_db_notice_clone with #ifdef USE_THREAD_DB.
1959
1960 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
1961
1962 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
1963 linux_ptrace_attach_fail_reason_string now returning an
1964 std::string.
1965 (linux_attach): Likewise.
1966 * thread-db.c (attach_thread): Likewise.
1967
1968 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
1969
1970 PR gdb/21559
1971 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
1972 checking for fs_base/gs_base fields in struct user_regs_struct.
1973 * configure: Regenerate.
1974
1975 2018-01-16 Yao Qi <yao.qi@linaro.org>
1976
1977 PR gdb/18749
1978 * linux-low.c (fetch_register): Call supply_register instead of
1979 error.
1980
1981 2018-01-08 Yao Qi <yao.qi@linaro.org>
1982 Simon Marchi <simon.marchi@ericsson.com>
1983
1984 * Makefile.in (OBS): Remove selftest.o.
1985 * configure.ac: Set srv_selftest_objs if $development is true.
1986 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
1987 * configure: Re-generated.
1988 * server.c (captured_main): Wrap variable selftest_filter with
1989 GDB_SELF_TEST.
1990
1991 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
1992
1993 * server.c (parse_debug_format_options): Return std::string.
1994 (handle_monitor_command, captured_main): Adjust.
1995
1996 2018-01-05 Pedro Alves <palves@redhat.com>
1997
1998 PR gdb/18653
1999 * server.c (captured_main): Pass quiet=false to
2000 save_original_signals_state.
2001
2002 2018-01-01 Joel Brobecker <brobecker@adacore.com>
2003
2004 * gdbreplay.c (gdbreplay_version): Update copyright year in
2005 version message.
2006 * server.c (gdbserver_version): Likewise.
2007
2008 2017-12-08 Tom Tromey <tom@tromey.com>
2009
2010 * ax.c (ax_printf): Update.
2011
2012 2017-12-07 Yao Qi <yao.qi@linaro.org>
2013
2014 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
2015 aarch64_linux_read_description.
2016 * linux-amd64-ipa.c (idx2mask): New array.
2017 (get_ipa_tdesc): Move idx2mask out.
2018 (initialize_low_tracepoint): Initialize target descriptions.
2019 * linux-i386-ipa.c (idx2mask): New array.
2020 (get_ipa_tdesc): Move idx2mask out.
2021 (initialize_low_tracepoint): Initialize target descriptions.
2022
2023 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
2024
2025 * tdesc.c (struct tdesc_type): Change return type.
2026 (tdesc_add_flag): Change parameter type.
2027 (tdesc_add_bitfield): Likewise.
2028 (tdesc_add_field): Likewise.
2029 (tdesc_set_struct_size): Likewise.
2030
2031 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
2032
2033 * regcache.c (registers_to_string): Remove unused variable.
2034
2035 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2036
2037 * inferiors.c (for_each_inferior_with_data): Remove.
2038 * inferiors.h (for_each_inferior_with_data): Remove.
2039 * server.c (handle_qxfer_threads_worker): Change parameter type.
2040 (handle_qxfer_threads_proper): Use for_each_thread.
2041
2042 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2043
2044 * inferiors.c (for_each_inferior): Remove.
2045 (clear_inferiors): Use for_each_thread.
2046 * inferiors.h (for_each_inferior): Remove.
2047 * linux-low.c (linux_wait_for_event_filtered): Use
2048 for_each_thread.
2049 (linux_stabilize_threads): Likewise.
2050 * regcache.c (regcache_release): Likewise.
2051 * server.c (gdb_wants_all_threads_stopped): Likewise.
2052 (clear_pending_status_callback): Remove.
2053 (handle_status): Use for_each_thread.
2054 (captured_main): Likewise.
2055 * win32-low.c (child_init_thread_list): Likewise.
2056 (win32_clear_inferiors): Likewise.
2057 (fake_breakpoint_event): Likewise.
2058
2059 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2060
2061 * inferiors.h (find_inferior): Remove.
2062 * inferiors.c (find_inferior): Remove.
2063
2064 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2065
2066 * linux-low.c (resume_status_pending_p): Update comment.
2067 (need_step_over_p): Update comment.
2068
2069 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2070
2071 * linux-low.c (proceed_one_lwp): Return void, change parameter
2072 type.
2073 (unsuspend_and_proceed_one_lwp): Likewise.
2074 (proceed_all_lwps): Use for_each_thread.
2075 (unstop_all_lwps): Likewise.
2076
2077 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2078
2079 * linux-low.c (linux_resume_one_thread): Return void, take
2080 parameter directly.
2081 (linux_resume): Use for_each_thread.
2082
2083 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2084
2085 * linux-low.c (send_sigstop_callback): Return void, change
2086 parameter type. Rename to...
2087 (send_sigstop): ... this.
2088 (suspend_and_send_sigstop_callback): Return void, change parameter
2089 type. Rename to...
2090 (suspend_and_send_sigstop): ... this.
2091 (stop_all_lwps): Use for_each_thread.
2092
2093 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2094
2095 * linux-low.c (lwp_running): Return bool, remove unused
2096 argument.
2097 (linux_stabilize_threads): Use find_thread.
2098
2099 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2100
2101 * linux-low.c (select_singlestep_lwp_callback): Remove.
2102 (count_events_callback): Remove.
2103 (select_event_lwp_callback): Remove.
2104 (select_event_lwp): Use find_thread/for_each_thread.
2105
2106 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2107
2108 * linux-low.c (not_stopped_callback): Return bool, take filter
2109 argument directly.
2110 (linux_wait_for_event_filtered): Use find_thread.
2111 (linux_wait_1): Likewise.
2112
2113 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2114
2115 * linux-low.c (same_lwp): Remove.
2116 (find_lwp_pid): Use find_thread.
2117
2118 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2119
2120 * linux-low.c (delete_lwp_callback): Remove.
2121 (linux_mourn): Use for_each_thread.
2122
2123 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2124
2125 * linux-low.c (linux_detach_lwp_callback): Return void, remove
2126 args parameter, don't check for pid.
2127 (linux_detach): Use for_each_thread.
2128
2129 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2130
2131 * linux-low.c (struct counter): Remove.
2132 (second_thread_of_pid_p): Remove.
2133 (last_thread_of_process_p): Use find_thread.
2134
2135 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2136
2137 * inferiors.c (find_inferior_in_random): Remove.
2138 * inferiors.h (find_inferior_in_random): Remove.
2139 * linux-low.c (status_pending_p_callback): Return bool, accept
2140 parameter ptid directly.
2141 (linux_wait_for_event_filtered): Use find_thread_in_random.
2142 (linux_wait_1): Likewise.
2143
2144 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2145
2146 * inferiors.c (find_inferior_id): Remove.
2147 (find_thread_ptid): Move implemention from find_inferior_id to
2148 here.
2149 * inferiors.h (find_inferior_id): Remove.
2150 * server.c (handle_status): Use find_thread_ptid.
2151 (process_serial_event): Likewise.
2152 * thread-db.c (find_one_thread): Likewise.
2153 (thread_db_thread_handle): Likewise.
2154 * win32-low.c (thread_rec): Likewise.
2155 (child_delete_thread): Likewise.
2156 (win32_thread_alive): Likewise.
2157 (get_child_debug_event): Likewise.
2158
2159 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2160
2161 * linux-mips-low.c (update_watch_registers_callback): Return
2162 void, remove pid_p parameter, don't check for pid.
2163 (mips_insert_point, mips_remove_point): Use for_each_thread.
2164
2165 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2166
2167 * lynx.low (lynx_delete_thread_callback): Remove.
2168 (lynx_mourn): Use for_each_thread.
2169
2170 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2171
2172 * regcache.c (regcache_invalidate_one): Remove.
2173 (regcache_invalidate_pid): use for_each_thread.
2174
2175 2017-11-26 Tom Tromey <tom@tromey.com>
2176
2177 * linux-low.c (linux_create_inferior): Update.
2178
2179 2017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
2180
2181 * spu-low.c (spu_create_inferior): Fix typo in argument name.
2182
2183 2017-11-24 Alan Hayward <alan.hayward@arm.com>
2184
2185 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
2186 * linux-aarch64-low.c (initialize_low_arch): Call init func.
2187 * linux-aarch64-tdesc-selftest.c: New file.
2188 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
2189
2190 2017-11-24 Alan Hayward <alan.hayward@arm.com>
2191
2192 * configure.srv: Add new file.
2193 * linux-aarch64-low.c (initialize_low_arch): Call init func.
2194 * linux-aarch64-tdesc-selftest.c: New file.
2195 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
2196
2197 2017-11-24 Alan Hayward <alan.hayward@arm.com>
2198
2199 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
2200 * linux-aarch64-low.c (initialize_low_arch): Remove init.
2201 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
2202
2203 2017-11-24 Alan Hayward <alan.hayward@arm.com>
2204
2205 * configure.srv: Add new files.
2206 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
2207 aarch64_linux_read_description.
2208 * linux-aarch64-low.c (aarch64_linux_read_description):
2209 Merge with aarch64_arch_setup.
2210 (aarch64_arch_setup): Call aarch64_linux_read_description.
2211 * linux-aarch64-tdesc.c: New file.
2212 * linux-aarch64-tdesc.h: New file.
2213
2214 2017-11-24 Yao Qi <yao.qi@linaro.org>
2215
2216 * configure.srv: Set $srv_regobj for tic6x-linux.
2217 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
2218 (tic6x_read_description): Move some code to tic6x_arch_setup.
2219 (tic6x_tdesc_test): New function.
2220 (initialize_low_arch): Call selftests::register_test.
2221
2222 2017-11-22 Yao Qi <yao.qi@linaro.org>
2223
2224 * remote-utils.c (prepare_resume_reply): Use memcpy.
2225
2226 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
2227
2228 * linux-low.c (kill_one_lwp_callback): Return void, take
2229 argument directly, don't filter on pid.
2230 (linux_kill): Use for_each_thread.
2231
2232 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
2233
2234 * linux-low.c (need_step_over_p): Return bool, remove dummy
2235 argument.
2236 (linux_resume, proceed_all_lwps): Use find_thread.
2237
2238 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
2239
2240 * linux-low.c (resume_status_pending_p): Return bool, remove
2241 flag_p argument.
2242 (linux_resume): Use find_thread.
2243
2244 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
2245
2246 * linux-low.c (struct thread_resume_array): Remove.
2247 (linux_set_resume_request): Return void, take arguments
2248 directly.
2249 (linux_resume): Use for_each_thread.
2250
2251 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
2252
2253 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
2254 return bool, remove data argument.
2255 (linux_stabilize_threads): Use find_thread.
2256
2257 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
2258
2259 * linux-low.c (unsuspend_one_lwp): Remove.
2260 (unsuspend_all_lwps): Use for_each_thread, inline code from
2261 unsuspend_one_lwp.
2262
2263 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
2264
2265 * gdbthread.h (find_thread): Add overload with ptid_t filter.
2266 * linux-low.c (struct iterate_over_lwps_args): Remove.
2267 (iterate_over_lwps_filter): Remove.
2268 (iterate_over_lwps): Use find_thread.
2269
2270 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
2271
2272 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
2273 (linux_handle_new_gdb_connection): Use for_each_thread, inline
2274 code from reset_lwp_ptrace_options_callback.
2275
2276 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
2277
2278 * linux-arm-low.c (struct update_registers_data): Remove.
2279 (update_registers_callback): Return void, take arguments
2280 directly, don't check thread's pid.
2281 (arm_insert_point, arm_remove_point): Use for_each_thread.
2282
2283 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
2284
2285 * win32-low.c (continue_one_thread): Return void, take argument
2286 directly.
2287 (child_continue): Use for_each_thread.
2288
2289 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
2290
2291 * win32-i386-low.c (update_debug_registers_callback): Rename
2292 to ...
2293 (update_debug_registers): ... this, return void, remove pid_p arg.
2294 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
2295
2296 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
2297
2298 * inferiors.h (struct process_info): Add constructor, initialize
2299 fields..
2300 <syscalls_to_catch>: Change type to std::vector<int>.
2301 * inferiors.c (add_process): Allocate process_info with new.
2302 (remove_process): Free process_info with delete.
2303 * linux-low.c (handle_extended_wait): Adjust.
2304 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
2305 * server.c (handle_general_set): Adjust.
2306
2307 2017-11-16 Pedro Alves <palves@redhat.com>
2308
2309 * remote-utils.c (remote_close): Block SIGIO signals instead of
2310 uninstalling the SIGIO handler.
2311
2312 2017-11-16 Alan Hayward <alan.hayward@arm.com>
2313
2314 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
2315
2316 2017-11-16 Yao Qi <yao.qi@linaro.org>
2317
2318 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
2319 (tic6x_store_gregset): Likewise.
2320 (tic6x_usrregs_info): Move it up.
2321
2322 2017-11-15 Alan Hayward <alan.hayward@arm.com>
2323
2324 * Makefile.in: Update arch rules.
2325 * configure.srv: Explicitly mark arch/ files.
2326
2327 2017-11-13 Andreas Schwab <schwab@suse.de>
2328
2329 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
2330 function.
2331 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
2332
2333 2017-11-06 Pedro Alves <palves@redhat.com>
2334
2335 * config.in, configure: Regenerate.
2336
2337 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
2338
2339 * target.c (struct thread_search): Remove.
2340 (thread_search_callback): Remove.
2341 (prepare_to_access_memory): Use for_each_thread instead of
2342 find_inferior. Inline code from thread_search_callback.
2343
2344 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
2345
2346 * server.c (struct visit_actioned_threads_data): Remove.
2347 (visit_actioned_threads): Change prototype to take arguments
2348 directly.
2349 (resume): Use find_thread instead of find_inferior.
2350
2351 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
2352
2353 * server.c (queue_stop_reply_callback): Change prototype, return
2354 void.
2355 (find_status_pending_thread_callback): Remove.
2356 (handle_status): Replace find_inferior with find_thread and
2357 for_each_thread.
2358
2359 2017-10-25 Alan Hayward <alan.hayward@arm.com>
2360
2361 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
2362 with REGNO.
2363 (aarch64_store_gregset): Likewise.
2364 (aarch64_fill_fpregset): Likewise.
2365 (aarch64_store_fpregset): Likewise.
2366
2367 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
2368
2369 * gdbthread.h (find_thread, for_each_thread): New functions.
2370 * inferiors.c (thread_of_pid): Remove.
2371 (find_any_thread_of_pid): Use find_thread.
2372 * linux-low.c (num_lwps): Use for_each_thread.
2373
2374 2017-10-17 Yao Qi <yao.qi@linaro.org>
2375
2376 * Makefile.in: Remove one rule.
2377 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
2378
2379 2017-10-17 Yao Qi <yao.qi@linaro.org>
2380
2381 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
2382 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
2383
2384 2017-10-17 Yao Qi <yao.qi@linaro.org>
2385
2386 * configure.srv: Rename arm.o with arch/arm.o.
2387
2388 2017-10-17 Yao Qi <yao.qi@linaro.org>
2389
2390 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
2391 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
2392 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
2393 (arch-i386.o, arch-amd64.o): Remove rules.
2394 (arch/%.o): New rule.
2395 Update POSTCOMPILE and COMPILE.pre.
2396 * configure.ac: Invoke AC_CONFIG_COMMANDS.
2397 * configure: Re-generated.
2398 * configure.srv: Replace arch-i386.o with arch/i386.o.
2399 Replace arch-amd64.o with arch/amd64.o.
2400
2401 2017-10-16 Yao Qi <yao.qi@linaro.org>
2402
2403 * configure: Regenerated.
2404
2405 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
2406
2407 * inferiors.h: (struct inferior_list): Remove.
2408 (struct inferior_list_entry); Remove.
2409 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
2410 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
2411 get_first_inferior): Remove.
2412 (for_each_inferior, for_each_inferior_with_data, find_inferior,
2413 find_inferior_id, find_inferior_in_random): Change signature.
2414 * inferiors.c (all_threads): Change type to
2415 std::list<thread_info *>.
2416 (get_thread): Remove macro.
2417 (find_inferior, find_inferior_id): Change signature, implement
2418 using find_thread.
2419 (find_inferior_in_random): Change signature, implement using
2420 find_thread_in_random.
2421 (for_each_inferior, for_each_inferior_with_data): Change
2422 signature, implement using for_each_thread.
2423 (add_inferior_to_list, remove_inferior): Remove.
2424 (add_thread, get_first_thread, thread_of_pid,
2425 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
2426 (get_first_inferior, one_inferior_p, clear_inferior_list):
2427 Remove.
2428 (clear_inferiors, get_thread_process): Update.
2429 * gdbthread.h: Include <list>.
2430 (struct thread_info) <entry>: Remove field.
2431 <id>: New field.
2432 (all_threads): Change type to std::list<thread_info *>.
2433 (get_first_inferior): Add doc.
2434 (find_thread, for_each_thread, find_thread_in_random): New
2435 functions.
2436 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
2437 * linux-arm-low.c (update_registers_callback): Update.
2438 * linux-low.c (second_thread_of_pid_p): Update.
2439 (kill_one_lwp_callback, linux_detach_lwp_callback,
2440 delete_lwp_callback, status_pending_p_callback, same_lwp,
2441 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
2442 iterate_over_lwps, not_stopped_callback,
2443 resume_stopped_resumed_lwps, count_events_callback,
2444 select_singlestep_lwp_callback, select_event_lwp_callback,
2445 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
2446 suspend_and_send_sigstop_callback, wait_for_sigstop,
2447 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
2448 lwp_running, linux_set_resume_request, resume_status_pending_p,
2449 need_step_over_p, start_step_over, linux_resume_one_thread,
2450 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
2451 reset_lwp_ptrace_options_callback): Update.
2452 * linux-mips-low.c (update_watch_registers_callback): Update.
2453 * regcache.c (regcache_invalidate_one, regcache_invalidate):
2454 Update.
2455 (free_register_cache_thread_one): Remove.
2456 (regcache_release): Update.
2457 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
2458 handle_qxfer_threads_worker): Update.
2459 (handle_query): Update, use list iterator.
2460 (visit_actioned_threads, handle_pending_status,
2461 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
2462 clear_pending_status_callback, set_pending_status_callback,
2463 find_status_pending_thread_callback, handle_status,
2464 process_serial_event): Update.
2465 * target.c (thread_search_callback): Update.
2466 * thread-db.c (thread_db_get_tls_address): Update.
2467 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
2468 Update.
2469 * win32-i386-low.c (update_debug_registers_callback): Update.
2470 * win32-low.c (delete_thread_info, child_delete_thread,
2471 continue_one_thread, suspend_one_thread,
2472 get_child_debug_event): Adjust.
2473
2474 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
2475
2476 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
2477 * inferiors.h: Include <list>.
2478 (struct process_info) <entry>: Remove field.
2479 <pid>: New field.
2480 (pid_of): Change macro to function.
2481 (ptid_of, lwpid_of): Remove macro.
2482 (all_processes): Change type to std::list<process_info *>.
2483 (ALL_PROCESSES): Remove macro.
2484 (for_each_process, find_process): New function.
2485 * inferiors.c (all_processes): Change type to
2486 std::list<process_info *>.
2487 (find_thread_process): Adjust.
2488 (add_process): Likewise.
2489 (remove_process): Likewise.
2490 (find_process_pid): Likewise.
2491 (get_first_process): Likewise.
2492 (started_inferior_callback): Remove.
2493 (have_started_inferiors_p): Adjust.
2494 (attached_inferior_callback): Remove.
2495 (have_attached_inferiors_p): Adjust.
2496 * linux-low.c (check_zombie_leaders): Likewise.
2497 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
2498 (x86_linux_update_xmltarget): Adjust.
2499 * server.c (handle_query): Likewise.
2500 (gdb_reattached_process): Remove.
2501 (handle_status): Adjust.
2502 (kill_inferior_callback): Likewise.
2503 (detach_or_kill_inferior): Remove.
2504 (print_started_pid): Likewise.
2505 (print_attached_pid): Likewise.
2506 (detach_or_kill_for_exit): Update.
2507 (process_serial_event): Likewise.
2508 * linux-arm-low.c (arm_new_fork): Likewise.
2509
2510 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
2511
2512 * dll.h: Include <list>.
2513 (struct dll_info): Add constructor.
2514 <entry>: Remove field.
2515 (all_dlls): Change type to std::list<dll_info>.
2516 * dll.c: Include <algorithm>.
2517 (get_dll): Remove macro.
2518 (all_dlls): Change type to std::list<dll_info *>.
2519 (free_one_dll): Remove.
2520 (match_dll): Likewise.
2521 (loaded_dll): Adjust.
2522 (unloaded_dll): Adjust to all_dlls type change, use
2523 std::find_if. Inline code from match_dll.
2524 (clear_dlls): Adjust to all_dlls type change.
2525 * server.c (emit_dll_description): Remove.
2526 (handle_qxfer_libraries): Adjust to all_dlls type change,
2527 integrate emit_dll_description's functionality.
2528
2529 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
2530
2531 * linux-low.h (struct linux_target_ops) <delete_process>: New
2532 field.
2533 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
2534 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
2535 (struct linux_target_ops): Add delete_process callback.
2536 * linux-arm-low.c (arm_delete_process): New.
2537 (struct linux_target_ops): Add delete_process callback.
2538 * linux-bfin-low.c (struct linux_target_ops): Likewise.
2539 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
2540 * linux-m32r-low.c (struct linux_target_ops): Likewise.
2541 * linux-mips-low.c (mips_linux_delete_process): New.
2542 (struct linux_target_ops): Add delete_process callback.
2543 * linux-ppc-low.c (struct linux_target_ops): Likewise.
2544 * linux-s390-low.c (struct linux_target_ops): Likewise.
2545 * linux-sh-low.c (struct linux_target_ops): Likewise.
2546 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
2547 * linux-tile-low.c (struct linux_target_ops): Likewise.
2548 * linux-x86-low.c (x86_linux_delete_process): New.
2549 (struct linux_target_ops): Add delete_process callback.
2550 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
2551
2552 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
2553
2554 * linux-aarch64-low.c (the_low_target): Add thread delete
2555 callback.
2556 * linux-arm-low.c (arm_delete_thread): New function.
2557 (the_low_target): Add thread delete callback.
2558 * linux-bfin-low.c (the_low_target): Likewise.
2559 * linux-crisv32-low.c (the_low_target): Likewise.
2560 * linux-low.c (delete_lwp): Invoke delete_thread callback if
2561 set.
2562 * linux-low.h (struct linux_target_ops) <delete_thread>: New
2563 field.
2564 * linux-m32r-low.c (the_low_target): Add thread delete callback.
2565 * linux-mips-low.c (mips_linux_delete_thread): New function.
2566 (the_low_target): Add thread delete callback.
2567 * linux-ppc-low.c (the_low_target): Likewise.
2568 * linux-s390-low.c (the_low_target): Likewise.
2569 * linux-sh-low.c (the_low_target): Likewise.
2570 * linux-tic6x-low.c (the_low_target): Likewise.
2571 * linux-tile-low.c (the_low_target): Likewise.
2572 * linux-x86-low.c (the_low_target): Likewise.
2573 * linux-xtensa-low.c (the_low_target): Likewise.
2574
2575 2017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
2576
2577 * win32-low.c: Include "common-inferior.h".
2578
2579 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
2580
2581 * inferiors.c (set_inferior_cwd): New function.
2582 * server.c (handle_general_set): Handle QSetWorkingDir packet.
2583 (handle_query): Inform that QSetWorkingDir is supported.
2584 * win32-low.c (create_process): Pass the inferior's cwd to
2585 CreateProcess.
2586
2587 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
2588
2589 * inferiors.c (current_inferior_cwd): New global variable.
2590 (get_inferior_cwd): New function.
2591 * inferiors.h (struct process_info) <cwd>: New field.
2592
2593 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
2594
2595 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
2596 (OBS): Add gdb_tilde_expand.o.
2597
2598 2017-10-02 Simon Marchi <simon.marchi@ericsson.com>
2599
2600 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
2601 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
2602
2603 2017-09-29 Pedro Alves <palves@redhat.com>
2604
2605 * ax.c (gdb_parse_agent_expr): Constify.
2606 * ax.h (gdb_parse_agent_expr): Constify.
2607 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
2608 Constify.
2609 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
2610 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
2611 * remote-utils.h (read_ptid): Constify.
2612 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
2613 (process_point_options, process_serial_event): Constify.
2614 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
2615 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
2616 (cmd_qtbuffer): Constify.
2617
2618 2017-09-29 Pedro Alves <palves@redhat.com>
2619
2620 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
2621 fails.
2622
2623 2017-09-29 Pedro Alves <palves@redhat.com>
2624
2625 * linux-low.c (handle_extended_wait): Pass parent thread instead
2626 of process to thread_db_notice_clone.
2627 * linux-low.h (thread_db_notice_clone): Replace parent process
2628 parameter with parent thread parameter.
2629 * thread-db.c (find_one_thread): Add comment.
2630 (thread_db_notice_clone): Replace parent process parameter with
2631 parent thread parameter. Temporarily switch to the parent thread.
2632
2633 2017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
2634
2635 * gdbthread.h: Include "common-gdbthread.h".
2636 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
2637 "if" when validating the ptid.
2638 * remote-utils.c: Include "gdbthread.h".
2639 (prepare_resume_reply): Use "switch_to_thread".
2640 * target.c (done_accessing_memory): Likewise.
2641
2642 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
2643
2644 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
2645 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
2646 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
2647 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
2648 s390x-gs-linux64-ipa.o to ipa_obj.
2649 * linux-s390-low.c (HWCAP_S390_GS): New define.
2650 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
2651 New functions.
2652 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
2653 (s390_arch_setup): Check for guarded-storage support and choose
2654 appropriate tdesc.
2655 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
2656 init_registers_s390x_gs_linux64.
2657 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
2658 enum value.
2659 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
2660 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
2661
2662 2017-09-22 Simon Marchi <simon.marchi@ericsson.com>
2663
2664 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
2665
2666 2017-09-21 Kevin Buettner <kevinb@redhat.com>
2667
2668 * linux-low.h (struct lwp_info): Add new field, thread_handle.
2669 (thread_db_thread_handle): Declare.
2670 * linux-low.c (linux_target_ops): Initialize thread_handle.
2671 * server.c (handle_qxfer_threads_worker): Add support for
2672 "handle" attribute.
2673 * target.h (struct target_ops): Add new function pointer,
2674 thread_handle.
2675 (target_thread_handle): Define.
2676 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
2677 field in lwp.
2678 (thread_db_thread_handle): New function.
2679
2680 2017-09-21 Kevin Buettner <kevinb@redhat.com>
2681
2682 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
2683 * linux-low.h (thread_db_notice_clone): Declare.
2684 * thread-db.c (thread_db_notice_clone): New function.
2685
2686 2017-09-21 Pedro Alves <palves@redhat.com>
2687
2688 * server.c (gdb_read_memory, handle_status, process_serial_event)
2689 (handle_serial_event, handle_target_event): Adjust to
2690 set_desired_thread prototype change.
2691 * target.c (set_desired_thread): Remove 'use_general' parameter
2692 and adjust.
2693 * target.h (set_desired_thread): Remove 'use_general' parameter.
2694
2695 2017-09-20 Tom Tromey <tom@tromey.com>
2696
2697 * target.c (target_terminal::terminal_state): Define.
2698 (target_terminal::init): Rename from target_terminal_init.
2699 (target_terminal::inferior): Rename from
2700 target_terminal_inferior.
2701 (target_terminal::ours): Rename from target_terminal_ours.
2702 (target_terminal::ours_for_output, target_terminal::info): New.
2703
2704 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
2705
2706 * server.c (accumulate_file_name_length): Remove.
2707 (emit_dll_description): Adjust to std::string change.
2708 (handle_qxfer_libraries): Use std::string to hold document.
2709
2710 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
2711
2712 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
2713 return type of xml_escape_text.
2714 * server.c (emit_dll_description): Likewise.
2715
2716 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
2717
2718 * server.c (captured_main): Accept argument for --selftest.
2719 Update run_tests call.
2720 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
2721 when registering selftests.
2722
2723 2017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2724
2725 * regcache.c (get_thread_regcache): Update code to use "std::vector"
2726 instead of "VEC" for "target_desc.reg_defs".
2727 (regcache_cpy): Likewise.
2728 (registers_to_string): Likewise.
2729 (registers_from_string): Likewise.
2730 (find_regno): Likewise.
2731 (supply_regblock): Likewise.
2732 (regcache_raw_read_unsigned): Likewise.
2733 * tdesc.c (init_target_desc): Likewise.
2734 (tdesc_create_reg): Likewise.
2735 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
2736 (struct target_desc) <reg_defs>: Convert to "std::vector".
2737 (target_desc): Do not initialize "reg_defs".
2738 (~target_desc): Update code to use "std::vector" instead of "VEC"
2739 for "target_desc.reg_defs".
2740 (operator==): Likewise.
2741
2742 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
2743
2744 * inferiors.h (thread_to_gdb_id): Remove.
2745 * inferiors.c (thread_to_gdb_id): Remove.
2746 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
2747 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
2748 lynx_store_registers, lynx_read_memory, lynx_write_memory):
2749 Likewise.
2750 * nto-low.c (nto_fetch_registers, nto_store_registers,
2751 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
2752
2753 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
2754
2755 * inferiors.h (gdb_id_to_thread_id): Remove.
2756 * inferiors.c (gdb_id_to_thread_id): Remove.
2757 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
2758 removal. Move pid declaration closer to where it's used.
2759
2760 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
2761
2762 * server.c (handle_detach): New function.
2763 (process_serial_event): Move code out, call handle_detach.
2764
2765 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
2766
2767 * server.c (require_running): Rename to ...
2768 (require_running_or_return): ... this ...
2769 (require_running_or_break): ... and this.
2770 (handle_query, process_serial_event): Adjust.
2771
2772 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
2773
2774 * linux-low.c (linux_set_resume_request): Remove unused
2775 variables.
2776
2777 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
2778
2779 * server.c (first_thread_of): Remove.
2780 (process_serial_event): Replace usage of first_thread_of with
2781 find_any_thread_of_pid.
2782 * tracepoint.c (same_process_p): Remove.
2783 (gdb_agent_about_to_close): Replace usage of same_process_p with
2784 find_any_thread_of_pid.
2785 * linux-x86-low.c (same_process_callback): Remove.
2786 (x86_arch_setup_process_callback): Replace usage of
2787 same_process_callback with find_any_thread_of_pid.
2788 * thread-db.c (any_thread_of): Remove.
2789 (switch_to_process): Replace usage of any_thread_of with
2790 find_any_thread_of_pid.
2791 * inferiors.c (thread_pid_matches_callback): Remove.
2792 (find_thread_process): Adjust to use find_any_thread_of_pid.
2793
2794 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
2795
2796 * regcache.c (get_thread_regcache): Guard calls to "memset"
2797 with "!VEC_empty".
2798
2799 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
2800
2801 * linux-low.c (handle_extended_wait): Use
2802 "allocate_target_description" instead of "XNEW".
2803 * linux-x86-low.c (initialize_low_arch): Likewise.
2804
2805 2017-09-05 Yao Qi <yao.qi@linaro.org>
2806
2807 * configure.srv (srv_i386_regobj): Remove.
2808 (srv_amd64_regobj): Remove.
2809 (srv_regobj): Set it to "" for x86 non-linux targets.
2810 * linux-x86-tdesc.c (i386_linux_read_description):
2811 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
2812 (init_registers_i386): Remove the declaration.
2813 (tdesc_i386): Remove the declaration.
2814 (lynx_i386_arch_setup): Call i386_create_target_description.
2815 * nto-x86-low.c: Likewise.
2816 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
2817 [!__x86_64__]: include arch/i386.h.
2818 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
2819
2820 2017-09-05 Yao Qi <yao.qi@linaro.org>
2821
2822 * configure.srv (srv_amd64_linux_xmlfiles): Remove
2823 i386/amd64-XXX-linux from it.
2824
2825 2017-09-05 Yao Qi <yao.qi@linaro.org>
2826
2827 * configure.srv: Empty srv_amd64_linux_regobj if $development is
2828 false.
2829 (ipa_amd64_linux_regobj): Remove.
2830 (ipa_x32_linux_regobj): Remove.
2831
2832 2017-09-05 Yao Qi <yao.qi@linaro.org>
2833
2834 * Makefile.in (arch-amd64.o): New rule.
2835 * configure.srv: Append arch-amd64.o.
2836 * linux-amd64-ipa.c: Include common/x86-xstate.h.
2837 (get_ipa_tdesc): Call amd64_linux_read_description.
2838 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
2839 and init_registers_amd64_XXX.
2840 * linux-x86-low.c (x86_linux_read_description): Call
2841 amd64_linux_read_description.
2842 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
2843 (initialize_low_arch): Don't call init_registers_x32_XXX and
2844 init_registers_amd64_XXX.
2845 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
2846 and tdesc_amd64_XXX.
2847 [__x86_64__] (amd64_tdesc_test): New function.
2848 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
2849 and init_registers_amd64_XXX.
2850 * linux-x86-tdesc.c: Include arch/amd64.h.
2851 (xcr0_to_tdesc_idx): New function.
2852 (i386_linux_read_description): New function.
2853 (amd64_get_ipa_tdesc_idx): New function.
2854 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
2855 (amd64_get_ipa_tdesc): Declare.
2856
2857 2017-09-05 Yao Qi <yao.qi@linaro.org>
2858
2859 * configure.srv (srv_i386_linux_xmlfiles): Remove
2860 i386/i386-XXX-linux.xml from it.
2861
2862 2017-09-05 Yao Qi <yao.qi@linaro.org>
2863
2864 * configure.srv: Set srv_i386_linux_regobj empty if $development
2865 is false.
2866 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
2867 initialize_low_tdesc.
2868 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
2869 with #if initialize_low_tdesc.
2870 * linux-x86-tdesc-selftest.c: New file.
2871 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
2872
2873 2017-09-05 Yao Qi <yao.qi@linaro.org>
2874
2875 * Makefile.in (arch-i386.o): New rule.
2876 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
2877 (x86_64-*-linux*): Likewise.
2878 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
2879 include arch/i386.h.
2880 (i386_linux_read_description): Remove code and call
2881 i386_create_target_description.
2882 * tdesc.c (allocate_target_description): New function.
2883 * tdesc.h (set_tdesc_architecture): Remove declaration.
2884 (set_tdesc_osabi): Likewise.
2885
2886 2017-09-05 Yao Qi <yao.qi@linaro.org>
2887
2888 * linux-x86-tdesc.c: Don't include <inttypes.h>.
2889 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
2890 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
2891 .xmltarget.
2892 * server.c (get_features_xml): Call tdesc_get_features_xml.
2893 * tdesc.c (set_tdesc_architecture): New function.
2894 (set_tdesc_osabi): New function.
2895 (tdesc_get_features_xml): New function.
2896 (tdesc_create_feature): Add an argument.
2897 * tdesc.h (struct target_desc) <features>: New field.
2898 <arch, osabi>: New field.
2899 (~target_desc): xfree features, arch, and osabi.
2900 (target_desc::oerator==): Don't compare .xmltarget.
2901 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
2902 (set_tdesc_osabi): Likewise.
2903 (tdesc_get_features_xml): Likewise.
2904
2905 2017-09-05 Yao Qi <yao.qi@linaro.org>
2906
2907 * linux-x86-tdesc.c: Include selftest.h.
2908 (i386_tdesc_test): New function.
2909 (initialize_low_tdesc): Call selftests::register_test.
2910 * tdesc.h: Include regdef.h.
2911 (target_desc): Override operator == and !=.
2912
2913 2017-09-05 Yao Qi <yao.qi@linaro.org>
2914
2915 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
2916 (ipa_obj): Likewise.
2917 * linux-i386-ipa.c: Include common/x86-xstate.h
2918 (get_ipa_tdesc): Call i386_linux_read_description.
2919 (initialize_low_tracepoint): Don't call init_registers_XXX
2920 functions, call initialize_low_tdesc instead.
2921 * linux-x86-low.c (x86_linux_read_description): Call
2922 i386_linux_read_description.
2923 (initialize_low_arch): Don't call init_registers_i386_XXX
2924 functions, call initialize_low_tdesc.
2925 * linux-x86-tdesc.c: New file.
2926 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
2927 (i386_get_ipa_tdesc_idx): Declare.
2928 (i386_get_ipa_tdesc): Declare.
2929 (initialize_low_tdesc): Declare.
2930
2931 2017-09-05 Yao Qi <yao.qi@linaro.org>
2932
2933 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
2934 instead of 0.
2935
2936 2017-09-05 Yao Qi <yao.qi@linaro.org>
2937
2938 * Makefile.in (IPA_OBJS): Add vec-ipa.o
2939 * regcache.c (get_thread_regcache): Use VEC_length.
2940 (init_register_cache): Likewise.
2941 (regcache_cpy): Likewise.
2942 (registers_to_string): Iterate reg_defs via VEC_iterate.
2943 (find_regno): Likewise.
2944 (find_register_by_number): Use VEC_index.
2945 (register_size): Call find_register_by_number.
2946 (register_data): Call find_register_by_number.
2947 (supply_regblock): Use VEC_length.
2948 (regcache_raw_read_unsigned): Likewise.
2949 * tdesc.c (init_target_desc): Iterate reg_defs via
2950 VEC_iterate.
2951 (default_description): Update initializer.
2952 (copy_target_description): Don't update field num_registers.
2953 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
2954 <num_registers>: Remove.
2955
2956 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
2957
2958 * Makefile.in (.SECONDARY): Define target.
2959
2960 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
2961
2962 * linux-low.c (linux_wait_1): Adjust.
2963 * server.c (queue_stop_reply_callback): Adjust.
2964
2965 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
2966
2967 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
2968 QEnvironmentUnset and QEnvironmentReset packets.
2969 (handle_query): Inform remote that QEnvironmentHexEncoded,
2970 QEnvironmentUnset and QEnvironmentReset are supported.
2971
2972 2017-08-25 Simon Marchi <simon.marchi@ericsson.com>
2973
2974 * inferiors.h (inferior_target_data): Rename to ...
2975 (thread_target_data): ... this.
2976 (inferior_regcache_data): Rename to ...
2977 (thread_regcache_data): ... this.
2978 (set_inferior_regcache_data): Rename to ...
2979 (set_thread_regcache_data): ... this.
2980 * inferiors.c (inferior_target_data): Rename to ...
2981 (thread_target_data): ... this.
2982 (inferior_regcache_data): Rename to ...
2983 (thread_regcache_data): ... this.
2984 (set_inferior_regcache_data): Rename to ...
2985 (set_thread_regcache_data): ... this.
2986 (free_one_thread): Update.
2987 * linux-low.h (get_thread_lwp): Update.
2988 * regcache.c (get_thread_regcache): Update.
2989 (regcache_invalidate_thread): Update.
2990 (free_register_cache_thread): Update.
2991 * win32-i386-low.c (update_debug_registers_callback): Update.
2992 (win32_get_current_dr): Update.
2993 * win32-low.c (thread_rec): Update.
2994 (delete_thread_info): Update.
2995 (continue_one_thread): Update.
2996 (suspend_one_thread): Update.
2997
2998 2017-08-24 Simon Marchi <simon.marchi@ericsson.com>
2999
3000 * inferiors.c (set_inferior_target_data): Remove.
3001 * inferiors.h (set_inferior_target_data): Remove.
3002
3003 2017-08-18 Yao Qi <yao.qi@linaro.org>
3004
3005 * Makefile.in (OBS): Add selftest.o.
3006 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
3007 * configure, config.in: Re-generated.
3008 * server.c: Include common/sefltest.h.
3009 (captured_main): Handle option --selftest.
3010
3011 2017-08-09 Yao Qi <yao.qi@linaro.org>
3012
3013 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
3014 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
3015 i386-avx-mpx.o and i386-mmx.o.
3016 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
3017 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
3018 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
3019 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
3020 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
3021 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
3022 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
3023 i386/amd64-avx-mpx.xml.
3024
3025 2017-08-09 Yao Qi <yao.qi@linaro.org>
3026
3027 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
3028 and x32-avx-avx512.o.
3029 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
3030 i386/x32-avx-avx512.xml.
3031
3032 2017-07-26 Simon Marchi <simon.marchi@ericsson.com>
3033
3034 * tracepoint.h (enum class fast_tpoint_collect_result): New
3035 enumeration.
3036 (fast_tracepoint_collecting): Change return type to
3037 fast_tpoint_collect_result.
3038 * tracepoint.c (fast_tracepoint_collecting): Likewise.
3039 * linux-low.h: Include tracepoint.h.
3040 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
3041 fast_tpoint_collect_result.
3042 * linux-low.c (handle_tracepoints): Adjust.
3043 (linux_fast_tracepoint_collecting): Change return type to
3044 fast_tpoint_collect_result.
3045 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
3046 linux_wait_1, stuck_in_jump_pad_callback,
3047 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
3048 proceed_one_lwp): Adjust to type change.
3049
3050 2017-07-10 Yao Qi <yao.qi@linaro.org>
3051
3052 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
3053
3054 2017-06-29 Yao Qi <yao.qi@linaro.org>
3055
3056 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
3057 Remove.
3058 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
3059
3060 2017-06-20 Simon Marchi <simon.marchi@ericsson.com>
3061
3062 * Makefile.in (IPA_OBJS): Sort and format one item per line.
3063
3064 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
3065
3066 * linux-low.c (linux_create_inferior): Adjust code to access the
3067 environment information via 'gdb_environ' class.
3068 * lynx-low.c (lynx_create_inferior): Likewise.
3069 * server.c (our_environ): Make it an instance of 'gdb_environ'.
3070 (get_environ): Return a pointer to 'our_environ'.
3071 (captured_main): Initialize 'our_environ'.
3072 * server.h (get_environ): Adjust prototype.
3073 * spu-low.c (spu_create_inferior): Adjust code to access the
3074 environment information via 'gdb_environ' class.
3075
3076 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
3077
3078 * linux-low.c (linux_read_memory, linux_write_memory): Remove
3079 usage of "register" keyword.
3080
3081 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
3082
3083 * configure: Re-generate.
3084
3085 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
3086
3087 * configure: Re-generate.
3088
3089 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
3090
3091 * Makefile.in (COMPILE.pre): Add "-x c++".
3092
3093 2017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
3094
3095 * fork-child.c: Conditionally include <signal.h>.
3096
3097 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
3098
3099 * server.c (handle_general_set): Handle new packet
3100 "QStartupWithShell".
3101 (handle_query): Add "QStartupWithShell" to the list of supported
3102 packets.
3103 (gdbserver_usage): Add help text explaining the
3104 new "--startup-with-shell" and "--no-startup-with-shell" CLI
3105 options.
3106 (captured_main): Recognize and act upon the presence of the new
3107 CLI options.
3108
3109 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
3110 Pedro Alves <palves@redhat.com>
3111
3112 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
3113 * configure: Regenerate.
3114 * configure.srv (srv_linux_obj): Add "fork-child.o" and
3115 "fork-inferior.o".
3116 (i[34567]86-*-lynxos*): Likewise.
3117 (spu*-*-*): Likewise.
3118 * fork-child.c: New file.
3119 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
3120 and "environ.h".
3121 (linux_ptrace_fun): New function.
3122 (linux_create_inferior): Adjust function prototype to reflect
3123 change on "target.h". Adjust function code to use
3124 "fork_inferior".
3125 (linux_request_interrupt): Delete "signal_pid".
3126 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
3127 (lynx_ptrace_fun): New function.
3128 (lynx_create_inferior): Adjust function prototype to reflect
3129 change on "target.h". Adjust function code to use
3130 "fork_inferior".
3131 * nto-low.c (nto_create_inferior): Adjust function prototype and
3132 code to reflect change on "target.h". Update comments.
3133 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
3134 "common-terminal.h" and "environ.h".
3135 (terminal_fd): Moved to fork-child.c.
3136 (old_foreground_pgrp): Likewise.
3137 (restore_old_foreground_pgrp): Likewise.
3138 (last_status): Make it global.
3139 (last_ptid): Likewise.
3140 (our_environ): New variable.
3141 (startup_with_shell): Likewise.
3142 (program_name): Likewise.
3143 (program_argv): Rename to...
3144 (program_args): ...this.
3145 (wrapper_argv): New variable.
3146 (start_inferior): Delete function.
3147 (get_exec_wrapper): New function.
3148 (get_exec_file): Likewise.
3149 (get_environ): Likewise.
3150 (prefork_hook): Likewise.
3151 (post_fork_inferior): Likewise.
3152 (postfork_hook): Likewise.
3153 (postfork_child_hook): Likewise.
3154 (handle_v_run): Update code to deal with arguments coming from the
3155 remote host. Update calls from "start_inferior" to
3156 "create_inferior".
3157 (captured_main): Likewise. Initialize environment variable. Call
3158 "have_job_control".
3159 * server.h (post_fork_inferior): New prototype.
3160 (get_environ): Likewise.
3161 (last_status): Declare.
3162 (last_ptid): Likewise.
3163 (signal_pid): Likewise.
3164 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
3165 (spu_ptrace_fun): New function.
3166 (spu_create_inferior): Adjust function prototype to reflect change
3167 on "target.h". Adjust function code to use "fork_inferior".
3168 * target.c (target_terminal_init): New function.
3169 (target_terminal_inferior): Likewise.
3170 (target_terminal_ours): Likewise.
3171 * target.h: Include <vector>.
3172 (struct target_ops) <create_inferior>: Update prototype.
3173 (create_inferior): Update macro.
3174 * utils.c (gdb_flush_out_err): New function.
3175 * win32-low.c (win32_create_inferior): Adjust function prototype
3176 and code to reflect change on "target.h".
3177
3178 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
3179
3180 * inferiors.c (switch_to_thread): New function.
3181
3182 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
3183
3184 * Makefile.in (SFILE): Add "common/job-control.c".
3185 (OBS): Add "job-control.o".
3186
3187 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
3188
3189 * Makefile: Remove "@host_makefile_frag@".
3190
3191 2017-05-05 Pedro Alves <palves@redhat.com>
3192
3193 * configure: Regenerate.
3194
3195 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
3196
3197 * configure: Regenerate.
3198
3199 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
3200
3201 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
3202 software_single_step change of return type to
3203 std::vector<CORE_ADDR>.
3204 * linux-low.c (install_software_single_step_breakpoints):
3205 Likewise.
3206 * linux-low.h (install_software_single_step_breakpoints):
3207 Likewise.
3208
3209 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
3210
3211 * remote-utils.c: Include "gdb_termios.h" instead of
3212 "terminal.h".
3213 * terminal.h: Delete file.
3214
3215 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
3216
3217 * server.c: Include <vector>.
3218 <program_argv, wrapper_argv>: Convert to std::vector.
3219 (start_inferior): Rewrite function to use C++.
3220 (handle_v_run): Likewise. Update code that calculates the argv
3221 based on the vRun packet; use C++.
3222 (captured_main): Likewise.
3223
3224 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
3225
3226 * server.c (handle_v_cont): Initialize thread_resume::thread
3227 with null_ptid.
3228
3229 2017-04-05 Pedro Alves <palves@redhat.com>
3230
3231 * configure: Regenerate.
3232
3233 2017-04-05 Pedro Alves <palves@redhat.com>
3234
3235 * gdbreplay.c (sync_error): Constify.
3236 * linux-x86-low.c (push_opcode): Constify.
3237
3238 2017-04-05 Pedro Alves <palves@redhat.com>
3239
3240 * win32-low.c (get_child_debug_event)
3241 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
3242 Report TARGET_WAITKIND_SPURIOUS instead.
3243
3244 2017-04-05 Pedro Alves <palves@redhat.com>
3245
3246 * remote-utils.c (remote_prepare, remote_open): Constify.
3247 * remote-utils.h (remote_prepare, remote_open): Constify.
3248 * server.c (captured_main): Constify 'port' handling.
3249
3250 2017-04-04 Simon Marchi <simon.marchi@ericsson.com>
3251
3252 * Makefile.in (clean): Clear .deps.
3253
3254 2017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
3255
3256 * .gitignore: Remove generated files, replace with wildcard.
3257 * (clean): Replace removal of generated files with wildcard.
3258 (version.c): Replace with...
3259 (version-generated.c): ...this.
3260 (xml-builtin.c): Replace with...
3261 (xml-builtin-generated.c): ...this.
3262 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
3263 (%.c: *regformats*): Replace with...
3264 (%-generated.c: *regformats*): ...this.
3265
3266 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
3267
3268 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
3269 (xtensa_fill_gregset): Call collect_register_by_name for
3270 threadptr register.
3271 (xtensa_store_gregset): Call supply_register_by_name for
3272 threadptr register.
3273
3274 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
3275
3276 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
3277 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
3278 (xtensa_store_gregset): Call supply_register for all registers in
3279 a0_regnum..a0_regnum + C0_NREGS range.
3280
3281 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
3282
3283 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
3284 (ax-ipa.o: ax.c): Remove.
3285 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
3286 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
3287 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
3288 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
3289 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
3290
3291 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
3292
3293 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
3294 (print-utils-ipa.o: ../common/print-utils.c): Remove.
3295 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
3296 (errors-ipa.o: ../common/errors.c): Remove.
3297 (format-ipa.o: ../common/format.c): Remove.
3298 (common-utils-ipa.o: ../common/common-utils.c): Remove.
3299
3300 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
3301
3302 * Makefile.in (%-ipa.o: %.c): New rule.
3303 (tracepoint-ipa.o: tracepoint.c): Remove.
3304 (utils-ipa.o: utils.c): Remove.
3305 (remote-utils-ipa.o: remote-utils.c): Remove.
3306 (regcache-ipa.o: regcache.c): Remove.
3307 (i386-linux-ipa.o: i386-linux.c): Remove.
3308 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
3309 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
3310 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
3311 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
3312 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
3313 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
3314 (amd64-linux-ipa.o: amd64-linux.c): Remove.
3315 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
3316 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
3317 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
3318 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
3319 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
3320 (aarch64-ipa.o: aarch64.c): Remove.
3321 (s390-linux32-ipa.o: s390-linux32.c): Remove.
3322 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
3323 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
3324 (s390-linux64-ipa.o: s390-linux64.c): Remove.
3325 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
3326 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
3327 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
3328 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
3329 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
3330 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
3331 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
3332 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
3333 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
3334 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
3335 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
3336 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
3337 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
3338 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
3339 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
3340 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
3341 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
3342 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
3343 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
3344 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
3345 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
3346 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
3347 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
3348 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
3349 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
3350 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
3351 (tdesc-ipa.o: tdesc.c): Remove.
3352 (x32-linux-ipa.o: x32-linux.c): Remove.
3353 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
3354 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
3355
3356 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
3357
3358 * Makefile.in (%.o: ../arch/%.c): New rule.
3359 (arm.o: ../arch/arm.c): Remove.
3360 (arm-linux.o: ../arch/arm-linux.c): Remove.
3361 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
3362 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
3363
3364 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
3365
3366 * Makefile.in (%.o: ../nat/%.c): New rule.
3367 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
3368 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
3369 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
3370 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
3371 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
3372 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
3373 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
3374 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
3375 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
3376 (linux-personality.o: ../nat/linux-personality.c): Remove.
3377 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
3378 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
3379 (x86-linux.o: ../nat/x86-linux.c): Remove.
3380 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
3381 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
3382
3383 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
3384
3385 * Makefile.in (%.o: ../common/%.c): New rule.
3386 (signals.o: ../common/signals.c): Remove.
3387 (print-utils.o: ../common/print-utils.c): Remove.
3388 (rsp-low.o: ../common/rsp-low.c): Remove.
3389 (common-utils.o: ../common/common-utils.c): Remove.
3390 (posix-strerror.o: ../common/posix-strerror.c): Remove.
3391 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
3392 (vec.o: ../common/vec.c): Remove.
3393 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
3394 (xml-utils.o: ../common/xml-utils.c): Remove.
3395 (ptid.o: ../common/ptid.c): Remove.
3396 (buffer.o: ../common/buffer.c): Remove.
3397 (format.o: ../common/format.c): Remove.
3398 (filestuff.o: ../common/filestuff.c): Remove.
3399 (agent.o: ../common/agent.c): Remove.
3400 (errors.o: ../common/errors.c): Remove.
3401 (environ.o: ../common/environ.c): Remove.
3402 (common-debug.o: ../common/common-debug.c): Remove.
3403 (cleanups.o: ../common/cleanups.c): Remove.
3404 (common-exceptions.o: ../common/common-exceptions.c): Remove.
3405 (fileio.o: ../common/fileio.c): Remove.
3406 (common-regcache.o: ../common/common-regcache.c): Remove.
3407 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
3408 (new-op.o: ../common/new-op.c): Remove.
3409 (btrace-common.o: ../common/btrace-common.c): Remove.
3410
3411 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
3412
3413 * Makefile.in (%.o: ../target/%.c): New rule.
3414 (waitstatus.o: ../target/waitstatus.c): Remove.
3415
3416 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
3417
3418 * Makefile.in
3419 (%.c: ../regformats/%.dat,
3420 (%.c: ../regformats/arm/%.dat,
3421 (%.c: ../regformats/i386/%.dat,
3422 (%.c: ../regformats/rs6000/%.dat): New rules.
3423 (aarch64.c): Remove.
3424 (reg-arm.c): Remove.
3425 (arm-with-iwmmxt.c): Remove.
3426 (arm-with-vfpv2.c): Remove.
3427 (arm-with-vfpv3.c): Remove.
3428 (arm-with-neon.c): Remove.
3429 (reg-bfin.c): Remove.
3430 (reg-cris.c): Remove.
3431 (reg-crisv32.c): Remove.
3432 (i386.c): Remove.
3433 (i386-linux.c): Remove.
3434 (i386-avx.c): Remove.
3435 (i386-avx-linux.c): Remove.
3436 (i386-avx-avx512.c): Remove.
3437 (i386-avx-avx512-linux.c): Remove.
3438 (i386-mpx.c): Remove.
3439 (i386-mpx-linux.c): Remove.
3440 (i386-avx-mpx-avx512-pku.c): Remove.
3441 (i386-avx-mpx-avx512-pku-linux.c): Remove.
3442 (i386-avx-mpx.c): Remove.
3443 (i386-avx-mpx-linux.c): Remove.
3444 (i386-mmx.c): Remove.
3445 (i386-mmx-linux.c): Remove.
3446 (reg-ia64.c): Remove.
3447 (reg-m32r.c): Remove.
3448 (reg-m68k.c): Remove.
3449 (reg-cf.c): Remove.
3450 (mips-linux.c): Remove.
3451 (mips-dsp-linux.c): Remove.
3452 (mips64-linux.c): Remove.
3453 (mips64-dsp-linux.c): Remove.
3454 (nios2-linux.c): Remove.
3455 (powerpc-32.c): Remove.
3456 (powerpc-32l.c): Remove.
3457 (powerpc-altivec32l.c): Remove.
3458 (powerpc-cell32l.c): Remove.
3459 (powerpc-vsx32l.c): Remove.
3460 (powerpc-isa205-32l.c): Remove.
3461 (powerpc-isa205-altivec32l.c): Remove.
3462 (powerpc-isa205-vsx32l.c): Remove.
3463 (powerpc-e500l.c): Remove.
3464 (powerpc-64l.c): Remove.
3465 (powerpc-altivec64l.c): Remove.
3466 (powerpc-cell64l.c): Remove.
3467 (powerpc-vsx64l.c): Remove.
3468 (powerpc-isa205-64l.c): Remove.
3469 (powerpc-isa205-altivec64l.c): Remove.
3470 (powerpc-isa205-vsx64l.c): Remove.
3471 (s390-linux32.c): Remove.
3472 (s390-linux32v1.c): Remove.
3473 (s390-linux32v2.c): Remove.
3474 (s390-linux64.c): Remove.
3475 (s390-linux64v1.c): Remove.
3476 (s390-linux64v2.c): Remove.
3477 (s390-te-linux64.c): Remove.
3478 (s390-vx-linux64.c): Remove.
3479 (s390-tevx-linux64.c): Remove.
3480 (s390x-linux64.c): Remove.
3481 (s390x-linux64v1.c): Remove.
3482 (s390x-linux64v2.c): Remove.
3483 (s390x-te-linux64.c): Remove.
3484 (s390x-vx-linux64.c): Remove.
3485 (s390x-tevx-linux64.c): Remove.
3486 (tic6x-c64xp-linux.c): Remove.
3487 (tic6x-c64x-linux.c): Remove.
3488 (tic6x-c62x-linux.c): Remove.
3489 (reg-sh.c): Remove.
3490 (reg-sparc64.c): Remove.
3491 (reg-spu.c): Remove.
3492 (amd64.c): Remove.
3493 (amd64-linux.c): Remove.
3494 (amd64-avx.c): Remove.
3495 (amd64-avx-linux.c): Remove.
3496 (amd64-avx-avx512.c): Remove.
3497 (amd64-avx-avx512-linux.c): Remove.
3498 (amd64-mpx.c): Remove.
3499 (amd64-mpx-linux.c): Remove.
3500 (amd64-avx-mpx-avx512-pku.c): Remove.
3501 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
3502 (amd64-avx-mpx.c): Remove.
3503 (amd64-avx-mpx-linux.c): Remove.
3504 (x32.c): Remove.
3505 (x32-linux.c): Remove.
3506 (x32-avx.c): Remove.
3507 (x32-avx-linux.c): Remove.
3508 (x32-avx-avx512.c): Remove.
3509 (x32-avx-avx512-linux.c): Remove.
3510 (reg-xtensa.c): Remove.
3511 (reg-tilegx.c): Remove.
3512 (reg-tilegx32.c): Remove.
3513
3514 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
3515
3516 * Makefile.in (SFILES): Add "common/environ.c".
3517 (OBJS): Add "common/environ.h".
3518
3519 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
3520
3521 * configure.ac: Check if the fs_base and gs_base members of
3522 `struct user_regs_struct' exist.
3523 * config.in: Regenerated.
3524 * configure: Likewise.
3525
3526 2017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
3527
3528 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
3529 target_read_memory.
3530 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
3531 (get_next_pcs_syscall_next_pc): Likewise.
3532
3533 2016-12-23 Luis Machado <lgustavo@codesourcery.com>
3534
3535 * win32-i386-low.c: Fix incorrect reference to a couple source files.
3536 * nto-x86-low.c: Likewise.
3537
3538 2016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
3539
3540 * Makefile.in: Include disable-implicit-rules.mk.
3541
3542 2016-11-23 Pedro Alves <palves@redhat.com>
3543
3544 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
3545 (debug_vprintf): Use std::chrono::steady_clock instead of
3546 gettimeofday. Use '.' instead of ':'.
3547 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
3548 (get_timestamp): Use std::chrono::steady_clock instead of
3549 gettimeofday.
3550
3551 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
3552
3553 * Makefile.in: Fix whitespace formatting.
3554
3555 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
3556
3557 * Makefile.in (SFILES, OBS): Flatten list and order
3558 alphabetically.
3559
3560 2016-11-23 Pedro Alves <palves@redhat.com>
3561
3562 * event-loop.c (handle_file_event): Use warning.
3563 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
3564 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
3565 Use warning.
3566
3567 2016-11-23 Pedro Alves <palves@redhat.com>
3568
3569 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
3570 output.
3571 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
3572 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
3573 debug_printf and debug_flush for debug output.
3574 * server.c (handle_general_set): Likewise.
3575 * thread-db.c (try_thread_db_load): Use debug_printf for debug
3576 output.
3577
3578 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
3579
3580 * Makefile.in (.c.o): Replace rule with ...
3581 (%.o: %.c): ... this one.
3582
3583 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
3584
3585 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
3586 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
3587 make.
3588 * configure.ac: Remove checks for the make program.
3589 * configure: Re-generate.
3590
3591 2016-10-28 Pedro Alves <palves@redhat.com>
3592
3593 * Makefile.in (CXX_DIALECT): Get from configure.
3594 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
3595 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
3596 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
3597 * config.in: Regenerate.
3598 * configure: Regenerate.
3599
3600 2016-10-27 Yao Qi <yao.qi@linaro.org>
3601
3602 * linux-low.c (linux_supports_range_stepping): Return true if
3603 can_software_single_step return true.
3604
3605 2016-10-27 Yao Qi <yao.qi@linaro.org>
3606
3607 * inferiors.c (find_inferior_in_random): New function.
3608 * inferiors.h (find_inferior_in_random): Declare.
3609 * linux-low.c (linux_wait_for_event_filtered): Call
3610 find_inferior_in_random instead of find_inferior.
3611
3612 2016-10-27 Yao Qi <yao.qi@linaro.org>
3613
3614 * linux-low.c (linux_wait_1): If single-step breakpoints are
3615 inserted, remove them.
3616
3617 2016-10-26 Pedro Alves <palves@redhat.com>
3618
3619 * linux-low.c (handle_extended_wait): Link parent/child fork
3620 threads.
3621 (linux_wait_1): Unlink them.
3622 (linux_set_resume_request): Ignore resume requests for
3623 already-resumed and unhandled fork child threads.
3624 * linux-low.h (struct lwp_info) <fork_relative>: New field.
3625 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
3626 New functions.
3627 (handle_v_requests) <vCont>: Don't call require_running.
3628 * server.h (in_queued_stop_replies): New declaration.
3629
3630 2016-10-24 Yao Qi <yao.qi@linaro.org>
3631
3632 PR server/20733
3633 * linux-aarch64-low.c (append_insns): Cast the return value to
3634 'uint32_t *'.
3635
3636 2016-10-10 Yao Qi <yao.qi@linaro.org>
3637
3638 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
3639
3640 2016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
3641
3642 * target.c (target_supports_multi_process): New function, moved
3643 from...
3644 * target.h (target_supports_multi_process): ... here. Remove
3645 macro.
3646
3647 2016-10-05 Tom Tromey <tom@tromey.com>
3648
3649 PR remote/20655:
3650 * tracepoint.c (handle_tracepoint_bkpts): Check
3651 ipa_error_tracepoint, not ipa_stopping_tracepoint.
3652
3653 2016-10-05 Yao Qi <yao.qi@linaro.org>
3654
3655 * configure.srv: Update the path of arm-*.xml files.
3656
3657 2016-10-05 Terry Guo <terry.guo@arm.com>
3658 Yao Qi <yao.qi@linaro.org>
3659
3660 * Makefile.in: Adjust the path of rules.
3661 * configure.srv: Update the path of xml files.
3662 * regformats/arm-with-iwmmxt.dat: Regenerated.
3663 * regformats/arm-with-neon.dat: Likewise.
3664 * regformats/arm-with-vfpv2.dat: Likewise.
3665 * regformats/arm-with-vfpv3.dat Likewise.
3666
3667 2016-09-30 Yao Qi <yao.qi@linaro.org>
3668
3669 PR gdbserver/20627
3670 * target.c (target_stop_and_wait): Don't call
3671 target_continue_no_signal, use resume_stop instead.
3672
3673 2016-09-26 Yao Qi <yao.qi@linaro.org>
3674
3675 * linux-low.c (linux_wait_1): Call debug_exit.
3676
3677 2016-09-23 Pedro Alves <palves@redhat.com>
3678
3679 * Makefile.in (SFILES): Add common/new-op.c.
3680 (OBS): Add common/new-op.o.
3681 (new-op.o): New rule.
3682
3683 2016-09-21 Simon Marchi <simon.marchi@ericsson.com>
3684
3685 * .gitinore: Ignore more files.
3686
3687 2016-09-21 Yao Qi <yao.qi@linaro.org>
3688
3689 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
3690 23.
3691
3692 2016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
3693
3694 * server.c (start_inferior): Call target_mourn_inferior instead of
3695 mourn_inferior; pass ptid_t argument to it.
3696 (resume): Likewise.
3697 (handle_target_event): Likewise.
3698 * target.c (target_mourn_inferior): New function.
3699 * target.h (mourn_inferior): Delete macro.
3700
3701 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
3702
3703 * linux-low.c (lwp_is_stepping): New function.
3704
3705 2016-09-06 Carl Love <cel@us.ibm.com>
3706
3707 * server.c (start_inferior): Fixed comment, requested comment change
3708 didn't get updated correctly. Removed reference to ptrace () call as
3709 it is only true on Linux systems.
3710
3711 2016-09-06 Carl Love <cel@us.ibm.com>
3712
3713 * server.c (start_inferior): Do not call
3714 function target_post_create_inferior () if the
3715 inferior process has already exited.
3716
3717 2016-09-05 Pedro Alves <palves@redhat.com>
3718
3719 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
3720 (COMPILE.pre, CC_LD): Use CXX directly.
3721 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
3722 * acinclude.m4: Don't include build-with-cxx.m4.
3723 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
3724 * configure: Regenerate.
3725
3726 2016-09-02 Akash Trehan <akash.trehan123@gmail.com>
3727
3728 PR gdb/19495
3729 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
3730 call writing data to own_buf.
3731
3732 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
3733
3734 * target.c (mywait): Call target_wait instead of
3735 the_target->wait.
3736 (target_wait): New function.
3737
3738 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
3739
3740 * server.c (start_inferior): New variable 'ptid'. Replace calls
3741 to the_target->resume by target_continue{,_no_signal}, depending
3742 on the case.
3743 * target.c (target_stop_and_wait): Call target_continue_no_signal
3744 instead of the_target->resume.
3745 (target_continue): New function.
3746
3747 2016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
3748
3749 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
3750
3751 2016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3752
3753 PR server/20491
3754 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
3755 ps_prochandle.
3756 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
3757 * linux-arm-low.c (ps_get_thread_area): Likewise.
3758 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
3759 * linux-m68k-low.c (ps_get_thread_area): Likewise.
3760 * linux-mips-low.c (ps_get_thread_area): Likewise.
3761 * linux-nios2-low.c (ps_get_thread_area): Likewise.
3762 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
3763 * linux-x86-low.c (ps_get_thread_area): Likewise.
3764 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
3765
3766 2016-08-19 Pedro Alves <palves@redhat.com>
3767
3768 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
3769
3770 2016-08-19 Pedro Alves <palves@redhat.com>
3771
3772 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
3773 comment. Use memcpy instead of casting through unsigned long.
3774
3775 2016-08-19 Pedro Alves <palves@redhat.com>
3776
3777 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
3778 allocating around 0x80000000.
3779
3780 2016-08-19 Pedro Alves <palves@redhat.com>
3781
3782 PR gdb/20415
3783 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
3784 (x32-avx512-linux-ipa.o): New rules.
3785 * configure.ac (x86_64-*-linux*): New x32 check.
3786 * configure.srv (ipa_x32_linux_regobj): New.
3787 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
3788 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
3789 descriptions.
3790 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
3791 descriptions.
3792 * configure: Regenerate.
3793
3794 2016-08-09 Pedro Alves <palves@redhat.com>
3795
3796 PR gdb/18653
3797 * Makefile.in (OBS): Add signals-state-save-restore.o.
3798 (signals-state-save-restore.o): New rule.
3799 * config.in: Regenerate.
3800 * configure: Regenerate.
3801 * linux-low.c: Include "signals-state-save-restore.h".
3802 (linux_create_inferior): Call
3803 restore_original_signals_state.
3804 * server.c: Include "dispositions-save-restore.h".
3805 (captured_main): Call save_original_signals_state.
3806
3807 2016-08-05 Pedro Alves <palves@redhat.com>
3808
3809 * configure: Regenerate.
3810
3811 2016-08-04 Yao Qi <yao.qi@linaro.org>
3812
3813 * linux-low.c (regsets_fetch_inferior_registers): Check
3814 errno is ESRCH or not.
3815
3816 2016-08-02 Yao Qi <yao.qi@linaro.org>
3817
3818 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
3819 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
3820 (thread_db_load_search): Update.
3821 (try_thread_db_load_1): Don't look for td_ta_event_addr,
3822 td_ta_set_event and td_ta_event_getmsg.
3823
3824 2016-07-26 Pedro Alves <palves@redhat.com>
3825
3826 PR server/20414
3827 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
3828 of unsigned long for 64-bit registers and use uint32_t instead of
3829 unsigned int for 32-bit registers.
3830
3831 2016-07-26 Pedro Alves <palves@redhat.com>
3832
3833 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
3834 to 'ptrace'.
3835
3836 2016-07-21 Tom Tromey <tom@tromey.com>
3837
3838 * configure: Rebuild.
3839
3840 2016-07-21 Yao Qi <yao.qi@linaro.org>
3841
3842 * mem-break.c (find_gdb_breakpoint): Cast bp to
3843 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
3844
3845 2016-07-21 Yao Qi <yao.qi@linaro.org>
3846
3847 * server.c (handle_v_requests): Support s and S actions
3848 if target_supports_software_single_step return true.
3849
3850 2016-07-21 Yao Qi <yao.qi@linaro.org>
3851
3852 * linux-low.c (resume_stopped_resumed_lwps): If resume request
3853 is resume_step, call maybe_hw_step.
3854 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
3855 and unstop them.
3856 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
3857 breakpoints or not.
3858 (proceed_one_lwp): If resume request is resume_step, install
3859 reinsert breakpoints and call maybe_hw_step.
3860
3861 2016-07-21 Yao Qi <yao.qi@linaro.org>
3862
3863 * linux-low.c (proceed_one_lwp): Declare.
3864 (linux_resume_one_thread): Remove local variable 'step'.
3865 Lift code enqueue signal. Call proceed_one_lwp instead of
3866 linux_resume_one_lwp.
3867
3868 2016-07-21 Yao Qi <yao.qi@linaro.org>
3869
3870 * linux-low.c (linux_resume_one_thread): Call
3871 enqueue_pending_signal.
3872
3873 2016-07-21 Yao Qi <yao.qi@linaro.org>
3874
3875 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
3876 * inferiors.c (do_restore_current_thread_cleanup): New function.
3877 (make_cleanup_restore_current_thread): Likewise.
3878 * linux-low.c (install_software_single_step_breakpoints): Call
3879 make_cleanup_restore_current_thread. Switch current_thread to
3880 thread.
3881
3882 2016-07-21 Yao Qi <yao.qi@linaro.org>
3883
3884 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
3885 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
3886 (clone_one_breakpoint): Likewise.
3887 (delete_reinsert_breakpoints): Change parameter to thread.
3888 Callers updated.
3889 (has_reinsert_breakpoints): Likewise.
3890 (uninsert_reinsert_breakpoints): Likewise.
3891 (reinsert_reinsert_breakpoints): Likewise.
3892 * mem-break.h (set_reinsert_breakpoint): Update declaration.
3893 (delete_reinsert_breakpoints): Likewise.
3894 (reinsert_reinsert_breakpoints): Likewise.
3895 (uninsert_reinsert_breakpoints): Likewise.
3896 (has_reinsert_breakpoints): Likewise.
3897
3898 2016-07-21 Yao Qi <yao.qi@linaro.org>
3899
3900 * inferiors.c (get_thread_process): Make parameter const.
3901 * inferiors.h (get_thread_process): Update declaration.
3902 * mem-break.c (clone_all_breakpoints): Remove all parameters.
3903 Add new parameters child_thread and parent_thread. Callers
3904 updated.
3905 * mem-break.h (clone_all_breakpoints): Update declaration.
3906
3907 2016-07-21 Yao Qi <yao.qi@linaro.org>
3908
3909 * mem-break.c (struct breakpoint) <cond_list>: Remove.
3910 <command_list, handler>: Remove.
3911 (struct gdb_breakpoint): New.
3912 (struct other_breakpoint): New.
3913 (struct reinsert_breakpoint): New.
3914 (is_gdb_breakpoint): New function.
3915 (any_persistent_commands): Update command_list if
3916 is_gdb_breakpoint returns true.
3917 (set_breakpoint): Create breakpoints according to their types.
3918 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
3919 (set_gdb_breakpoint_1): Likewise.
3920 (set_gdb_breakpoint): Likewise.
3921 (clear_breakpoint_conditions): Change parameter type to
3922 'struct gdb_breakpoint *'.
3923 (clear_breakpoint_commands): Likewise.
3924 (clear_breakpoint_conditions_and_commands): Likewise.
3925 (add_condition_to_breakpoint): Likewise.
3926 (add_breakpoint_condition): Likewise.
3927 (add_commands_to_breakpoint): Likewise.
3928 (check_breakpoints): Check other_breakpoint.
3929 (clone_one_breakpoint): Clone breakpopint according to its type.
3930 * mem-break.h (struct gdb_breakpoint): Declare.
3931 (set_gdb_breakpoint): Update declaration.
3932 (clear_breakpoint_conditions_and_commands): Likewise.
3933 (add_breakpoint_condition): Likewise.
3934 (add_breakpoint_commands): Likewise.
3935 * server.c (process_point_options): Change parameter type to
3936 'struct gdb_breakpoint *'.
3937
3938 2016-07-21 Yao Qi <yao.qi@linaro.org>
3939
3940 * mem-break.c (set_breakpoint_at): Rename it to ...
3941 (set_breakpoint_type_at): ... it.
3942 (set_breakpoint_at): Call set_breakpoint_type_at.
3943 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
3944 * mem-break.h (set_breakpoint_at): Update comments.
3945
3946 2016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
3947
3948 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
3949 to buf parameter.
3950 (nios2_store_gregset): Likewise.
3951
3952 2016-07-01 Pedro Alves <palves@redhat.com>
3953 Antoine Tremblay <antoine.tremblay@ericsson.com>
3954
3955 * linux-low.c: Change interface to take the target lwp_info
3956 pointer directly and return void. Handle detaching from a zombie
3957 thread.
3958 (linux_detach_lwp_callback): New function.
3959 (linux_detach): Detach from the leader thread after detaching from
3960 the clone threads.
3961
3962 2016-06-28 Yao Qi <yao.qi@linaro.org>
3963
3964 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
3965 for variable new_offset.
3966 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
3967 (aarch64_ftrace_insn_reloc_cb): Likewise.
3968 (aarch64_ftrace_insn_reloc_tb): Likewise.
3969 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
3970 PRIx64 instead of PRIx32.
3971
3972 2016-06-28 Yao Qi <yao.qi@linaro.org>
3973
3974 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
3975 (the_low_target): Install arm_get_syscall_trapinfo.
3976
3977 2016-06-28 Yao Qi <yao.qi@linaro.org>
3978
3979 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
3980 function.
3981 (the_low_target): Install aarch64_get_syscall_trapinfo.
3982
3983 2016-06-28 Yao Qi <yao.qi@linaro.org>
3984
3985 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
3986 Callers updated.
3987 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
3988 Remove parameter sysno.
3989 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
3990 sysret.
3991
3992 2016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3993
3994 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
3995 (s390_emit_ne_goto): Likewise.
3996 (s390_emit_lt_goto): Likewise.
3997 (s390_emit_le_goto): Likewise.
3998 (s390_emit_gt_goto): Likewise.
3999 (s390_emit_ge_goto): Likewise.
4000 (s390x_emit_eq_goto): Likewise.
4001 (s390x_emit_ne_goto): Likewise.
4002 (s390x_emit_lt_goto): Likewise.
4003 (s390x_emit_le_goto): Likewise.
4004 (s390x_emit_gt_goto): Likewise.
4005 (s390x_emit_ge_goto): Likewise.
4006 (s390_emit_ops_impl): Mark variable static.
4007 (s390x_emit_ops): Likewise.
4008
4009 2016-06-17 Yao Qi <yao.qi@linaro.org>
4010
4011 * linux-low.c (handle_extended_wait): Call
4012 uninsert_reinsert_breakpoints for the parent process. Remove
4013 reinsert breakpoints from the child process. Reinsert them to
4014 the parent process when vfork is done.
4015 * mem-break.c (uninsert_reinsert_breakpoints): New function.
4016 (reinsert_reinsert_breakpoints): New function.
4017 * mem-break.h (uninsert_reinsert_breakpoints): Declare
4018 (reinsert_reinsert_breakpoints): Declare.
4019
4020 2016-06-17 Yao Qi <yao.qi@linaro.org>
4021
4022 * linux-low.c (handle_extended_wait): If the parent is doing
4023 step-over, remove the reinsert breakpoints from the forked child.
4024
4025 2016-06-17 Yao Qi <yao.qi@linaro.org>
4026
4027 * linux-low.c (unsuspend_all_lwps): Declare.
4028 (linux_low_filter_event): If thread exited, call finish_step_over.
4029 If step-over is finished, unsuspend other threads.
4030
4031 2016-06-17 Yao Qi <yao.qi@linaro.org>
4032
4033 * linux-low.c (linux_resume_one_lwp_throw): Assert
4034 has_reinsert_breakpoints returns false.
4035 * mem-break.c (delete_disabled_breakpoints): Assert
4036 bp type isn't reinsert_breakpoint.
4037
4038 2016-06-17 Yao Qi <yao.qi@linaro.org>
4039
4040 * linux-low.c (maybe_hw_step): New function.
4041 (linux_resume_one_lwp_throw): Call maybe_hw_step.
4042 (finish_step_over): Switch current_thread to lwp temporarily,
4043 and assert has_reinsert_breakpoints returns true.
4044 (proceed_one_lwp): Call maybe_hw_step.
4045 * mem-break.c (has_reinsert_breakpoints): New function.
4046 * mem-break.h (has_reinsert_breakpoints): Declare.
4047
4048 2016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
4049
4050 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
4051
4052 2016-05-17 Yao Qi <yao.qi@linaro.org>
4053
4054 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
4055 instead of find_inferior.
4056
4057 2016-05-05 Yao Qi <yao.qi@linaro.org>
4058
4059 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
4060 Initialize res to zero.
4061
4062 2016-05-05 Yao Qi <yao.qi@linaro.org>
4063
4064 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
4065 to uint32_t.
4066
4067 2016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4068
4069 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
4070 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
4071 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
4072
4073 2016-04-28 Par Olsson <par.olsson@windriver.com>
4074 Simon Marchi <simon.marchi@ericsson.com>
4075
4076 * tracepoint.c (write_inferior_int8): New function.
4077 (cmd_qtenable_disable): Write enable flag using
4078 write_inferior_int8.
4079
4080 2016-04-25 Yao Qi <yao.qi@linaro.org>
4081
4082 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
4083 (need_step_over_p): Return zero if the LWP has pending signals
4084 can be delivered on software single step target.
4085
4086 2016-04-25 Yao Qi <yao.qi@linaro.org>
4087
4088 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
4089 return instead of error.
4090
4091 2016-04-22 Yao Qi <yao.qi@linaro.org>
4092
4093 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
4094 to 23.
4095
4096 2016-04-22 Yao Qi <yao.qi@linaro.org>
4097
4098 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
4099 signal when stepping over breakpoint with software single
4100 step.
4101
4102 2016-04-21 Pedro Alves <palves@redhat.com>
4103
4104 * linux-s390-low.c (s390_collect_ptrace_register)
4105 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
4106 add casts.
4107 (s390_check_regset): Use void * instead of gdb_byte *.
4108
4109 2016-04-20 Pedro Alves <palves@redhat.com>
4110
4111 * configure: Renegerate.
4112
4113 2016-04-20 Yao Qi <yao.qi@linaro.org>
4114
4115 * linux-aarch32-low.c: Include "arch/arm-linux.h".
4116 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
4117 number 16.
4118 (arm_store_gregset): Likewise.
4119
4120 2016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
4121
4122 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
4123 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
4124 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
4125 (amd64-avx-mpx-linux.c): New rules.
4126 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
4127 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
4128 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
4129 (srv_amd64_regobj): Add amd64-avx-mpx.o.
4130 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
4131 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
4132 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
4133 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
4134 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
4135 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
4136 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
4137 * linux-x86-low.c (x86_linux_read_description): Add case for
4138 X86_XSTATE_AVX_MPX_MASK.
4139 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
4140 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
4141 init_registers_i386_avx_mpx_linux.
4142 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
4143 (initialize_low_tracepoint): Call
4144 init_registers_i386_avx_mpx_linux.
4145 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
4146 (initialize_low_tracepoint): Call
4147 init_registers_amd64_avx_mpx_linux.
4148 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
4149 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
4150 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
4151 declarations.
4152
4153 2016-04-18 Pedro Alves <palves@redhat.com>
4154
4155 * configure: Regenerate.
4156
4157 2016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
4158
4159 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
4160 (aarch64_emit_sub): Likewise.
4161
4162 2016-04-12 Pedro Alves <palves@redhat.com>
4163
4164 * utils.c (prepare_to_throw_exception): Delete.
4165
4166 2016-04-05 Simon Marchi <simon.marchi@ericsson.com>
4167
4168 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
4169
4170 2016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
4171
4172 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
4173
4174 2016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
4175
4176 * linux-aarch64-ipa.c: Add <elf.h> include.
4177 * linux-ppc-ipa.c: Add <elf.h> include.
4178 * linux-s390-ipa.c: Add <elf.h> include.
4179
4180 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
4181
4182 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
4183 (get_raw_reg_ptr): Likewise.
4184 (get_trace_state_variable_value_ptr): Likewise.
4185 (set_trace_state_variable_value_ptr): Likewise.
4186 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
4187 char *.
4188
4189 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
4190 Marcin Kościelnicki <koriakin@0x04.net>
4191
4192 PR/17221
4193 * linux-ppc-low.c (emit_insns): New function.
4194 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
4195 (ppc_emit_prologue): New function.
4196 (ppc_emit_epilogue): New function.
4197 (ppc_emit_add): New function.
4198 (ppc_emit_sub): New function.
4199 (ppc_emit_mul): New function.
4200 (ppc_emit_lsh): New function.
4201 (ppc_emit_rsh_signed): New function.
4202 (ppc_emit_rsh_unsigned): New function.
4203 (ppc_emit_ext): New function.
4204 (ppc_emit_zero_ext): New function.
4205 (ppc_emit_log_not): New function.
4206 (ppc_emit_bit_and): New function.
4207 (ppc_emit_bit_or): New function.
4208 (ppc_emit_bit_xor): New function.
4209 (ppc_emit_bit_not): New function.
4210 (ppc_emit_equal): New function.
4211 (ppc_emit_less_signed): New function.
4212 (ppc_emit_less_unsigned): New function.
4213 (ppc_emit_ref): New function.
4214 (ppc_emit_const): New function.
4215 (ppc_emit_reg): New function.
4216 (ppc_emit_pop): New function.
4217 (ppc_emit_stack_flush): New function.
4218 (ppc_emit_swap): New function.
4219 (ppc_emit_stack_adjust): New function.
4220 (ppc_emit_call): New function.
4221 (ppc_emit_int_call_1): New function.
4222 (ppc_emit_void_call_2): New function.
4223 (ppc_emit_if_goto): New function.
4224 (ppc_emit_goto): New function.
4225 (ppc_emit_eq_goto): New function.
4226 (ppc_emit_ne_goto): New function.
4227 (ppc_emit_lt_goto): New function.
4228 (ppc_emit_le_goto): New function.
4229 (ppc_emit_gt_goto): New function.
4230 (ppc_emit_ge_goto): New function.
4231 (ppc_write_goto_address): New function.
4232 (ppc_emit_ops_impl): New static variable.
4233 (ppc64v1_emit_prologue): New function.
4234 (ppc64v2_emit_prologue): New function.
4235 (ppc64_emit_epilogue): New function.
4236 (ppc64_emit_add): New function.
4237 (ppc64_emit_sub): New function.
4238 (ppc64_emit_mul): New function.
4239 (ppc64_emit_lsh): New function.
4240 (ppc64_emit_rsh_signed): New function.
4241 (ppc64_emit_rsh_unsigned): New function.
4242 (ppc64_emit_ext): New function.
4243 (ppc64_emit_zero_ext): New function.
4244 (ppc64_emit_log_not): New function.
4245 (ppc64_emit_bit_and): New function.
4246 (ppc64_emit_bit_or): New function.
4247 (ppc64_emit_bit_xor): New function.
4248 (ppc64_emit_bit_not): New function.
4249 (ppc64_emit_equal): New function.
4250 (ppc64_emit_less_signed): New function.
4251 (ppc64_emit_less_unsigned): New function.
4252 (ppc64_emit_ref): New function.
4253 (ppc64_emit_const): New function.
4254 (ppc64v1_emit_reg): New function.
4255 (ppc64v2_emit_reg): New function.
4256 (ppc64_emit_pop): New function.
4257 (ppc64_emit_stack_flush): New function.
4258 (ppc64_emit_swap): New function.
4259 (ppc64v1_emit_call): New function.
4260 (ppc64v2_emit_call): New function.
4261 (ppc64v1_emit_int_call_1): New function.
4262 (ppc64v2_emit_int_call_1): New function.
4263 (ppc64v1_emit_void_call_2): New function.
4264 (ppc64v2_emit_void_call_2): New function.
4265 (ppc64_emit_if_goto): New function.
4266 (ppc64_emit_eq_goto): New function.
4267 (ppc64_emit_ne_goto): New function.
4268 (ppc64_emit_lt_goto): New function.
4269 (ppc64_emit_le_goto): New function.
4270 (ppc64_emit_gt_goto): New function.
4271 (ppc64_emit_ge_goto): New function.
4272 (ppc64v1_emit_ops_impl): New static variable.
4273 (ppc64v2_emit_ops_impl): New static variable.
4274 (ppc_emit_ops): New function.
4275 (linux_low_target): Wire in ppc_emit_ops.
4276
4277 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
4278 Marcin Kościelnicki <koriakin@0x04.net>
4279
4280 PR/17221
4281 * Makefile.in: Add powerpc-*-ipa.o
4282 * configure.srv: Add ipa_obj for powerpc*-linux.
4283 * linux-ppc-ipa.c: New file.
4284 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
4285 includes.
4286 (PPC_FIELD): New macro.
4287 (PPC_SEXT): New macro.
4288 (PPC_OP6): New macro.
4289 (PPC_BO): New macro.
4290 (PPC_LI): New macro.
4291 (PPC_BD): New macro.
4292 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
4293 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
4294 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
4295 (ppc_get_thread_area): New function.
4296 (is_elfv2_inferior): New function.
4297 (gen_ds_form): New function.
4298 (GEN_STD): New macro.
4299 (GEN_STDU): New macro.
4300 (GEN_LD): New macro.
4301 (GEN_LDU): New macro.
4302 (gen_d_form): New function.
4303 (GEN_ADDI): New macro.
4304 (GEN_ADDIS): New macro.
4305 (GEN_LI): New macro.
4306 (GEN_LIS): New macro.
4307 (GEN_ORI): New macro.
4308 (GEN_ORIS): New macro.
4309 (GEN_LWZ): New macro.
4310 (GEN_STW): New macro.
4311 (GEN_STWU): New macro.
4312 (gen_xfx_form): New function.
4313 (GEN_MFSPR): New macro.
4314 (GEN_MTSPR): New macro.
4315 (GEN_MFCR): New macro.
4316 (GEN_MTCR): New macro.
4317 (GEN_SYNC): New macro.
4318 (GEN_LWSYNC): New macro.
4319 (gen_x_form): New function.
4320 (GEN_OR): New macro.
4321 (GEN_MR): New macro.
4322 (GEN_LWARX): New macro.
4323 (GEN_STWCX): New macro.
4324 (GEN_CMPW): New macro.
4325 (gen_md_form): New function.
4326 (GEN_RLDICL): New macro.
4327 (GEN_RLDICR): New macro.
4328 (gen_i_form): New function.
4329 (GEN_B): New macro.
4330 (GEN_BL): New macro.
4331 (gen_b_form): New function.
4332 (GEN_BNE): New macro.
4333 (GEN_LOAD): New macro.
4334 (GEN_STORE): New macro.
4335 (gen_limm): New function.
4336 (gen_atomic_xchg): New function.
4337 (gen_call): New function.
4338 (ppc_relocate_instruction): New function.
4339 (ppc_install_fast_tracepoint_jump_pad): New function.
4340 (ppc_get_min_fast_tracepoint_insn_len): New function.
4341 (ppc_get_ipa_tdesc_idx): New function.
4342 (the_low_target): Wire in the new functions.
4343 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
4344 tdescs.
4345 * linux-ppc-tdesc.h: New file.
4346
4347 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
4348
4349 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
4350 (alloc_jump_pad_buffer): New function.
4351 * linux-amd64-ipa.c: Add <sys/mman.h> include.
4352 (alloc_jump_pad_buffer): New function.
4353 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
4354 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
4355 (alloc_jump_pad_buffer): New function.
4356 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
4357 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
4358 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
4359 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
4360
4361 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
4362
4363 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
4364 * linux-amd64-ipa.c: Likewise.
4365 * linux-i386-ipa.c: Likewise.
4366 * linux-s390-ipa.c: Likewise.
4367 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
4368 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
4369 set_trace_state_variable_value_ptr.
4370 (struct ipa_sym_addresses): Likewise.
4371 (symbol_list): Likewise.
4372 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
4373 accessing gdb_collect directly.
4374 (gdb_collect_ptr_type): New typedef.
4375 (get_raw_reg_ptr_type): New typedef.
4376 (get_trace_state_variable_value_ptr_type): New typedef.
4377 (set_trace_state_variable_value_ptr_type): New typedef.
4378 (gdb_collect_ptr): New global.
4379 (get_raw_reg_ptr): New global.
4380 (get_trace_state_variable_value_ptr): New global.
4381 (set_trace_state_variable_value_ptr): New global.
4382 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
4383 accessing get_raw_reg directly.
4384 (get_get_tsv_func_addr): Likewise for
4385 get_trace_state_variable_value_ptr.
4386 (get_set_tsv_func_addr): Likewise for
4387 set_trace_state_variable_value_ptr.
4388 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
4389
4390 2016-03-30 Simon Marchi <simon.marchi@ericsson.com>
4391
4392 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
4393
4394 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
4395
4396 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
4397 packets.
4398 (relocate_instruction): Remove own_buf.
4399 * server.c (own_buf): Make global.
4400 (handle_v_requests): Make global.
4401 * server.h (own_buf): New declaration.
4402 (handle_v_requests): New prototype.
4403
4404 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
4405
4406 PR 18377
4407 * linux-s390-low.c (add_insns): New function.
4408 (s390_emit_prologue): New function.
4409 (s390_emit_epilogue): New function.
4410 (s390_emit_add): New function.
4411 (s390_emit_sub): New function.
4412 (s390_emit_mul): New function.
4413 (s390_emit_lsh): New function.
4414 (s390_emit_rsh_signed): New function.
4415 (s390_emit_rsh_unsigned): New function.
4416 (s390_emit_ext): New function.
4417 (s390_emit_log_not): New function.
4418 (s390_emit_bit_and): New function.
4419 (s390_emit_bit_or): New function.
4420 (s390_emit_bit_xor): New function.
4421 (s390_emit_bit_not): New function.
4422 (s390_emit_equal): New function.
4423 (s390_emit_less_signed): New function.
4424 (s390_emit_less_unsigned): New function.
4425 (s390_emit_ref): New function.
4426 (s390_emit_if_goto): New function.
4427 (s390_emit_goto): New function.
4428 (s390_write_goto_address): New function.
4429 (s390_emit_litpool): New function.
4430 (s390_emit_const): New function.
4431 (s390_emit_call): New function.
4432 (s390_emit_reg): New function.
4433 (s390_emit_pop): New function.
4434 (s390_emit_stack_flush): New function.
4435 (s390_emit_zero_ext): New function.
4436 (s390_emit_swap): New function.
4437 (s390_emit_stack_adjust): New function.
4438 (s390_emit_set_r2): New function.
4439 (s390_emit_int_call_1): New function.
4440 (s390_emit_void_call_2): New function.
4441 (s390_emit_eq_goto): New function.
4442 (s390_emit_ne_goto): New function.
4443 (s390_emit_lt_goto): New function.
4444 (s390_emit_le_goto): New function.
4445 (s390_emit_gt_goto): New function.
4446 (s390_emit_ge_goto): New function.
4447 (s390x_emit_prologue): New function.
4448 (s390x_emit_epilogue): New function.
4449 (s390x_emit_add): New function.
4450 (s390x_emit_sub): New function.
4451 (s390x_emit_mul): New function.
4452 (s390x_emit_lsh): New function.
4453 (s390x_emit_rsh_signed): New function.
4454 (s390x_emit_rsh_unsigned): New function.
4455 (s390x_emit_ext): New function.
4456 (s390x_emit_log_not): New function.
4457 (s390x_emit_bit_and): New function.
4458 (s390x_emit_bit_or): New function.
4459 (s390x_emit_bit_xor): New function.
4460 (s390x_emit_bit_not): New function.
4461 (s390x_emit_equal): New function.
4462 (s390x_emit_less_signed): New function.
4463 (s390x_emit_less_unsigned): New function.
4464 (s390x_emit_ref): New function.
4465 (s390x_emit_if_goto): New function.
4466 (s390x_emit_const): New function.
4467 (s390x_emit_call): New function.
4468 (s390x_emit_reg): New function.
4469 (s390x_emit_pop): New function.
4470 (s390x_emit_stack_flush): New function.
4471 (s390x_emit_zero_ext): New function.
4472 (s390x_emit_swap): New function.
4473 (s390x_emit_stack_adjust): New function.
4474 (s390x_emit_int_call_1): New function.
4475 (s390x_emit_void_call_2): New function.
4476 (s390x_emit_eq_goto): New function.
4477 (s390x_emit_ne_goto): New function.
4478 (s390x_emit_lt_goto): New function.
4479 (s390x_emit_le_goto): New function.
4480 (s390x_emit_gt_goto): New function.
4481 (s390x_emit_ge_goto): New function.
4482 (s390_emit_ops): New function.
4483 (struct linux_target_ops): Fill in emit_ops hook.
4484
4485 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
4486
4487 PR 18377
4488 * Makefile.in: Add s390 IPA files.
4489 * configure.srv: Build IPA for s390.
4490 * linux-s390-ipa.c: New file.
4491 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
4492 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
4493 (tdesc_s390_linux32): Likewise.
4494 (init_registers_s390_linux32v1): Likewise.
4495 (tdesc_s390_linux32v1): Likewise.
4496 (init_registers_s390_linux32v2): Likewise.
4497 (tdesc_s390_linux32v2): Likewise.
4498 (init_registers_s390_linux64): Likewise.
4499 (tdesc_s390_linux64): Likewise.
4500 (init_registers_s390_linux64v1): Likewise.
4501 (tdesc_s390_linux64v1): Likewise.
4502 (init_registers_s390_linux64v2): Likewise.
4503 (tdesc_s390_linux64v2): Likewise.
4504 (init_registers_s390_te_linux64): Likewise.
4505 (tdesc_s390_te_linux64): Likewise.
4506 (init_registers_s390_vx_linux64): Likewise.
4507 (tdesc_s390_vx_linux64): Likewise.
4508 (init_registers_s390_tevx_linux64): Likewise.
4509 (tdesc_s390_tevx_linux64): Likewise.
4510 (init_registers_s390x_linux64): Likewise.
4511 (tdesc_s390x_linux64): Likewise.
4512 (init_registers_s390x_linux64v1): Likewise.
4513 (tdesc_s390x_linux64v1): Likewise.
4514 (init_registers_s390x_linux64v2): Likewise.
4515 (tdesc_s390x_linux64v2): Likewise.
4516 (init_registers_s390x_te_linux64): Likewise.
4517 (tdesc_s390x_te_linux64): Likewise.
4518 (init_registers_s390x_vx_linux64): Likewise.
4519 (tdesc_s390x_vx_linux64): Likewise.
4520 (init_registers_s390x_tevx_linux64): Likewise.
4521 (tdesc_s390x_tevx_linux64): Likewise.
4522 (have_hwcap_s390_vx): New static variable.
4523 (s390_arch_setup): Fill have_hwcap_s390_vx.
4524 (s390_get_thread_area): New function.
4525 (s390_ft_entry_gpr_esa): New const.
4526 (s390_ft_entry_gpr_zarch): New const.
4527 (s390_ft_entry_misc): New const.
4528 (s390_ft_entry_fr): New const.
4529 (s390_ft_entry_vr): New const.
4530 (s390_ft_main_31): New const.
4531 (s390_ft_main_64): New const.
4532 (s390_ft_exit_fr): New const.
4533 (s390_ft_exit_vr): New const.
4534 (s390_ft_exit_misc): New const.
4535 (s390_ft_exit_gpr_esa): New const.
4536 (s390_ft_exit_gpr_zarch): New const.
4537 (append_insns): New function.
4538 (s390_relocate_instruction): New function.
4539 (s390_install_fast_tracepoint_jump_pad): New function.
4540 (s390_get_min_fast_tracepoint_insn_len): New function.
4541 (s390_get_ipa_tdesc_idx): New function.
4542 (struct linux_target_ops): Wire in the above functions.
4543 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
4544 * linux-s390-tdesc.h: New file.
4545
4546 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
4547
4548 * linux-s390-low.c (s390_supports_tracepoints): New function.
4549 (struct linux_target_ops): Fill supports_tracepoints hook.
4550
4551 2016-03-18 Yao Qi <yao.qi@linaro.org>
4552
4553 * linux-low.c (lwp_signal_can_be_delivered): New function.
4554 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
4555
4556 2016-03-18 Yao Qi <yao.qi@linaro.org>
4557
4558 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
4559 0 if signal is enqueued. Remove 'signal' from one debugging
4560 message. Move one debugging message to some lines below.
4561 Remove code setting 'signal' to 0.
4562
4563 2016-03-18 Yao Qi <yao.qi@linaro.org>
4564
4565 * linux-low.c (linux_low_filter_event): Remove redundant
4566 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
4567
4568 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
4569
4570 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
4571 (struct linux_target_ops): Wire in the above.
4572
4573 2016-03-03 Yao Qi <yao.qi@linaro.org>
4574
4575 * linux-low.c: Update comments to start_step_over.
4576
4577 2016-03-03 Yao Qi <yao.qi@linaro.org>
4578
4579 PR server/19736
4580 * linux-low.c (handle_extended_wait): Set child suspended
4581 if event_lwp->bp_reinsert isn't zero.
4582
4583 2016-03-02 Yao Qi <yao.qi@linaro.org>
4584
4585 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
4586 enqueue_pending_signal.
4587
4588 2016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
4589
4590 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
4591 is actually loaded.
4592
4593 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
4594
4595 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
4596 (s390_regmap_3264) [!__s390x__]: New global.
4597 (s390_collect_ptrace_register): Skip map entries containing -1.
4598 (s390_supply_ptrace_register): Ditto.
4599 (s390_fill_gprs_high): New function.
4600 (s390_store_gprs_high): New function.
4601 (s390_regsets): Add NT_S390_HIGH_GPRS.
4602 (s390_get_hwcap): Enable on 31-bit.
4603 (have_hwcap_s390_high_gprs): Enable on 31-bit.
4604 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
4605 Detect NT_S390_HIGH_GPRS.
4606 (s390_usrregs_info_3264): Enable on 31-bit.
4607 (s390_regs_info): Enable regs_info_3264 on 31-bit.
4608 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
4609
4610 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
4611
4612 PR gdb/13808
4613 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
4614 * configure.srv: Ditto.
4615 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
4616 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
4617 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
4618 (init_registers_amd64_linux): Remove prototype.
4619 (tdesc_amd64_linux): Remove declaration.
4620 (get_ipa_tdesc): New function.
4621 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
4622 initialize remaining tdescs.
4623 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
4624 (init_registers_i386_linux): Remove prototype.
4625 (tdesc_i386_linux): Remove declaration.
4626 (get_ipa_tdesc): New function.
4627 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
4628 initialize remaining tdescs.
4629 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
4630 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
4631 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
4632 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
4633 (x86_get_ipa_tdesc_idx): New function.
4634 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
4635 * linux-x86-tdesc.h: New file.
4636 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
4637 (target_get_ipa_tdesc_idx): New macro.
4638 * tracepoint.c (ipa_tdesc_idx): New macro.
4639 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
4640 (symbol_list): Add ipa_tdesc_idx.
4641 (cmd_qtstart): Write ipa_tdesc_idx in the target.
4642 (ipa_tdesc): Remove.
4643 (ipa_tdesc_idx): New variable.
4644 (get_context_regcache): Use get_ipa_tdesc.
4645 (gdb_collect): Ditto.
4646 (gdb_probe): Ditto.
4647 * tracepoint.h (get_ipa_tdesc): New prototype.
4648 (ipa_tdesc): Remove.
4649
4650 2016-02-24 Pedro Alves <palves@redhat.com>
4651
4652 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
4653 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
4654 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
4655 Factor out common code between the USE_SIGTRAP_SIGINFO and
4656 !USE_SIGTRAP_SIGINFO blocks.
4657 (linux_low_filter_event): Call save_stop_reason instead of
4658 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
4659 Update comments.
4660 (linux_wait_1): Update comments.
4661
4662 2016-02-24 Wei-cheng Wang <cole945@gmail.com>
4663
4664 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
4665 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
4666 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
4667 ppc_insert_point, ppc_remove_point.
4668
4669 2016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
4670
4671 * linux-s390-low.c (s390_supports_z_point_type): New function.
4672 (struct linux_target_ops): Wire s390_supports_z_point_type in.
4673
4674 2016-02-16 Yao Qi <yao.qi@linaro.org>
4675
4676 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
4677 PC. Get pc from regcache_read_pc.
4678
4679 2016-02-12 Yao Qi <yao.qi@linaro.org>
4680
4681 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
4682 or linux_get_pc_32bit.
4683 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
4684
4685 2016-02-12 Yao Qi <yao.qi@linaro.org>
4686
4687 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
4688 arm_linux_get_next_pcs_fixup.
4689
4690 2016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
4691
4692 * tracepoint.c (x_tracepoint_action_download): Change
4693 write_inferior_data_ptr to write_inferior_data_pointer.
4694 (cmd_qtstart): Likewise.
4695 (write_inferior_data_ptr): Remove.
4696 (download_agent_expr): Change write_inferior_data_ptr to
4697 write_inferior_data_pointer.
4698 (download_tracepoint_1): Likewise.
4699 (download_tracepoint): Likewise.
4700 (download_trace_state_variables): Likewise.
4701
4702 2016-02-11 Wei-cheng Wang <cole945@gmail.com>
4703 Marcin Kościelnicki <koriakin@0x04.net>
4704
4705 * tracepoint.c (struct tracepoint_action_ops): Remove.
4706 (struct tracepoint_action): Remove ops.
4707 (m_tracepoint_action_download, r_tracepoint_action_download)
4708 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
4709 size and offset accordingly.
4710 (m_tracepoint_action_ops, r_tracepoint_action_ops)
4711 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
4712 (tracepoint_action_send, tracepoint_action_download): New functions.
4713 Helpers for trace action handlers.
4714 (add_tracepoint_action): Remove setup actions ops.
4715 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
4716
4717 2016-02-10 Yao Qi <yao.qi@linaro.org>
4718
4719 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
4720
4721 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
4722
4723 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
4724 to AC_OUTPUT.
4725 * configure: Regenerate.
4726
4727 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
4728
4729 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
4730 void * to gdb_byte *.
4731 * linux-low.c (siginfo_fixup): Likewise.
4732 (linux_xfer_siginfo): Likewise.
4733 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
4734 Likewise.
4735 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
4736
4737 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
4738
4739 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
4740 to srv_tgtobj.
4741 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
4742 to srv_tgtobj.
4743 * linux-x86-low.c [__x86_64__]: Include
4744 "nat/amd64-linux-siginfo.h".
4745 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
4746 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
4747 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
4748 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
4749 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
4750 (cpt_si_fd, si_timerid, si_overrun): Move from
4751 nat/amd64-linux-siginfo.c.
4752 * Makefile.in (amd64-linux-siginfo.o:): New rule.
4753
4754 2016-01-28 Simon Marchi <simon.marchi@ericsson.com>
4755
4756 * server.c (skip_to_semicolon): Remove.
4757 (process_point_options): Use strchrnul instead of
4758 skip_to_semicolon.
4759
4760 2016-01-26 Yao Qi <yao.qi@linaro.org>
4761
4762 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
4763 * linux-low.c (install_software_single_step_breakpoints): Don't
4764 call regcache_read_pc.
4765 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
4766 argument pc.
4767
4768 2016-01-26 Yao Qi <yao.qi@linaro.org>
4769
4770 * linux-low.c (install_software_single_step_breakpoints): Call
4771 regcache_read_pc instead of get_pc.
4772
4773 2016-01-26 Yao Qi <yao.qi@linaro.org>
4774
4775 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
4776 (unblock_async_io): Rename to ...
4777 (block_unblock_async_io): ... it. New function.
4778 (enable_async_io): Don't install SIGIO handler. Unblock it
4779 instead.
4780 (disable_async_io): Don't ignore SIGIO. Block it instead.
4781 (initialize_async_io): Install SIGIO handler. Don't call
4782 unblock_async_io.
4783
4784 2016-01-26 Yao Qi <yao.qi@linaro.org>
4785
4786 * remote-utils.c (getpkt): If the buffer isn't empty, and the
4787 first character is '\003', call *the_target->request_interrupt.
4788
4789 2016-01-25 Yao Qi <yao.qi@linaro.org>
4790
4791 * remote-utils.c (new_thread_notify): Remove.
4792 (dead_thread_notify): Likewise.
4793 * remote-utils.h (new_thread_notify): Remove declaration.
4794 (dead_thread_notify): Likewise.
4795
4796 2016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
4797
4798 * gdb.trace/pending.exp: Fix expected message on continue.
4799
4800 2016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
4801
4802 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
4803 it works properly on big-endian machines where sizeof (CORE_ADDR)
4804 != sizeof (void *).
4805
4806 2016-01-21 Pedro Alves <palves@redhat.com>
4807
4808 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
4809 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
4810 * configure: Regenerate.
4811
4812 2016-01-21 Yao Qi <yao.qi@linaro.org>
4813
4814 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
4815 is_thumb and set it according to CPSR saved on the stack.
4816 (get_next_pcs_syscall_next_pc): Pass is_thumb to
4817 arm_sigreturn_next_pc.
4818
4819 2016-01-18 Yao Qi <yao.qi@linaro.org>
4820
4821 * linux-low.c (linux_set_pc_64bit): New function.
4822 (linux_get_pc_64bit): New function.
4823 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
4824 Declare.
4825 * linux-sparc-low.c (debug_threads): Remove declaration.
4826 (sparc_get_pc): Remove.
4827 (the_low_target): Use linux_get_pc_64bit instead of
4828 sparc_get_pc.
4829 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
4830 (the_low_target): Use linux_get_pc_64bit and
4831 linux_set_pc_64bit.
4832
4833 2016-01-18 Yao Qi <yao.qi@linaro.org>
4834
4835 * linux-arm-low.c (debug_threads): Remove declaration.
4836 (arm_get_pc, arm_set_pc): Remove.
4837 (the_low_target): Use linux_get_pc_32bit and
4838 linux_set_pc_32bit.
4839 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
4840 (the_low_target): Use linux_get_pc_32bit and
4841 linux_set_pc_32bit.
4842 * linux-cris-low.c (debug_threads): Remove declaration.
4843 (cris_get_pc, cris_set_pc,): Remove.
4844 (the_low_target): Use linux_get_pc_32bit and
4845 linux_set_pc_32bit.
4846 * linux-crisv32-low.c (debug_threads): Remove declaration.
4847 (cris_get_pc, cris_set_pc): Remove.
4848 (the_low_target): Use linux_get_pc_32bit and
4849 linux_set_pc_32bit.
4850 * linux-low.c: Include inttypes.h.
4851 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
4852 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
4853 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
4854 (the_low_target): Use linux_get_pc_32bit and
4855 linux_set_pc_32bit.
4856 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
4857 (the_low_target): Use linux_get_pc_32bit and
4858 linux_set_pc_32bit.
4859 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
4860 (the_low_target): Use linux_get_pc_32bit and
4861 linux_set_pc_32bit.
4862 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
4863 (the_low_target): Use linux_get_pc_32bit and
4864 linux_set_pc_32bit.
4865 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
4866 (the_low_target): Use linux_get_pc_32bit and
4867 linux_set_pc_32bit.
4868
4869 2016-01-18 Gary Benson <gbenson@redhat.com>
4870
4871 * configure.ac (AC_FUNC_FORK): New check.
4872 * config.in: Regenerate.
4873 * configure: Likewise.
4874
4875 2016-01-14 Yao Qi <yao.qi@linaro.org>
4876
4877 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
4878 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
4879 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
4880 arm_get_next_pcs_ctor.
4881
4882 2016-01-12 Josh Stone <jistone@redhat.com>
4883 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4884
4885 * inferiors.h: Include "gdb_vecs.h".
4886 (struct process_info): Add syscalls_to_catch.
4887 * inferiors.c (remove_process): Free syscalls_to_catch.
4888 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
4889 syscall_return stops.
4890 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
4891 * server.c (handle_general_set): Handle QCatchSyscalls.
4892 (handle_query): Report support for QCatchSyscalls.
4893 * target.h (struct target_ops): Add supports_catch_syscall.
4894 (target_supports_catch_syscall): New macro.
4895 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
4896 (struct lwp_info): Add syscall_state.
4897 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
4898 Maintain syscall_state and syscalls_to_catch across exec.
4899 (get_syscall_trapinfo): New function, proxy to the_low_target.
4900 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
4901 (linux_low_filter_event): Toggle syscall_state entry/return for
4902 syscall traps, and set it ignored for all others.
4903 (gdb_catching_syscalls_p): New function.
4904 (gdb_catch_this_syscall_p): New function.
4905 (linux_wait_1): Handle SYSCALL_SIGTRAP.
4906 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
4907 (linux_supports_catch_syscall): New function.
4908 (linux_target_ops): Install it.
4909 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
4910 (the_low_target): Install it.
4911
4912 2016-01-12 Mike Frysinger <vapier@gentoo.org>
4913
4914 * acinclude.m4: Include new ../warning.m4 file.
4915 * configure: Regenerated.
4916 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
4917
4918 2016-01-12 Mike Frysinger <vapier@gentoo.org>
4919
4920 * ax.c (is_goto_target): Mark static.
4921 * linux-low.c (register_addr): Likewise.
4922 (linux_fetch_registers, linux_store_registers): Likewise.
4923 * mem-break.c (any_persistent_commands): Fix old prototype.
4924 (add_commands_to_breakpoint): Mark static.
4925 * regcache.c (find_register_by_name): Delete unused func.
4926 * remote-utils.c (hex_or_minus_one): Mark static.
4927 * server.c (monitor_show_help): Mark static.
4928 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
4929 handle_v_requests): Likewise.
4930
4931 2016-01-12 Pedro Alves <palves@redhat.com>
4932
4933 Remove use of the registered trademark symbol throughout.
4934
4935 2016-01-08 Yao Qi <yao.qi@linaro.org>
4936
4937 * remote-utils.c (getpkt): If c is '\003', call target hook
4938 request_interrupt.
4939
4940 2016-01-06 Yao Qi <yao.qi@linaro.org>
4941
4942 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
4943 linux-aarch32-low.c.
4944 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
4945 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
4946 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
4947 (thumb2_breakpoint): Declare.
4948 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
4949 linux-aarch32-low.h.
4950 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
4951 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
4952 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
4953
4954 2016-01-01 Joel Brobecker <brobecker@adacore.com>
4955
4956 * gdbreplay.c (gdbreplay_version): Change copyright year in
4957 version message.
4958 * server.c (gdbserver_version): Likewise.
4959
4960 2015-12-28 Patrick Palka <patrick@parcs.ath.cx>
4961
4962 * server.c (crc32_table): Delete.
4963 (crc32): Use libiberty's xcrc32 function.
4964
4965 2015-12-22 Joel Brobecker <brobecker@adacore.com>
4966
4967 * lynx-low.c (lynx_delete_thread_callback): New function.
4968 (lynx_mourn): Properly delete our process and all of its
4969 threads. Remove call to clear_inferiors.
4970
4971 2015-12-22 Joel Brobecker <brobecker@adacore.com>
4972
4973 * target.c (thread_search_callback): Add check that
4974 the thread_stopped target callback is not NULL before
4975 calling it.
4976
4977 2015-12-21 Yao Qi <yao.qi@linaro.org>
4978
4979 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
4980 arm breakpoint.
4981
4982 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
4983
4984 * server.c (handle_query): Call target_supports_software_single_step.
4985
4986 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
4987
4988 * linux-low.c (single_step): New function.
4989 (linux_resume_one_lwp_throw): Call single_step.
4990 (start_step_over): Likewise.
4991
4992 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
4993
4994 * Makefile.in (SFILES): Append arch/arm-linux.c,
4995 arch/arm-get-next-pcs.c.
4996 (arm-linux.o): New rule.
4997 (arm-get-next-pcs.o): New rule.
4998 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
4999 arm-linux.o.
5000 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
5001 to linux-aarch32-low.c.
5002 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
5003 (arm_breakpoint_len, thumb_breakpoint): Likewise.
5004 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
5005 (thumb2_breakpoint_len): Likewise.
5006 (arm_is_thumb_mode): Make non-static.
5007 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
5008 from linux-aarch32-low.c.
5009 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
5010 (arm_breakpoint_len, thumb_breakpoint): Likewise.
5011 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
5012 (thumb2_breakpoint_len): Likewise.
5013 (arm_is_thumb_mode): New declaration.
5014 * linux-arm-low.c: Include arch/arm-linux.h
5015 aarch/arm-get-next-pcs.h, sys/syscall.h.
5016 (get_next_pcs_ops): New struct.
5017 (get_next_pcs_addr_bits_remove): New function.
5018 (get_next_pcs_is_thumb): New function.
5019 (get_next_pcs_read_memory_unsigned_integer): Likewise.
5020 (arm_sigreturn_next_pc): Likewise.
5021 (get_next_pcs_syscall_next_pc): Likewise.
5022 (arm_gdbserver_get_next_pcs): Likewise.
5023 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
5024 Initialize.
5025 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
5026 * server.h: Include gdb_vecs.h.
5027
5028 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
5029
5030 * Makefile.in (SFILES): Append common/common-regcache.c.
5031 (OBS): Append common-regcache.o.
5032 (common-regcache.o): New rule.
5033 * regcache.c (init_register_cache): Initialize cache to
5034 REG_UNAVAILABLE.
5035 (regcache_raw_read_unsigned): New function.
5036 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
5037 register_status enum.
5038
5039 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
5040
5041 * linux-aarch64-low.c (the_low_targets): Rename
5042 breakpoint_reinsert_addr to get_next_pcs.
5043 * linux-arm-low.c (the_low_targets): Likewise.
5044 * linux-bfin-low.c (the_low_targets): Likewise.
5045 * linux-cris-low.c (the_low_targets): Likewise.
5046 * linux-crisv32-low.c (the_low_targets): Likewise.
5047 * linux-low.c (can_software_single_step): Likewise.
5048 (install_software_single_step_breakpoints): New function.
5049 (start_step_over): Use install_software_single_step_breakpoints.
5050 * linux-low.h: New CORE_ADDR vector.
5051 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
5052 get_next_pcs.
5053 * linux-mips-low.c (the_low_targets): Likewise.
5054 * linux-nios2-low.c (the_low_targets): Likewise.
5055 * linux-sparc-low.c (the_low_targets): Likewise.
5056
5057 2015-12-17 Pedro Alves <palves@redhat.com>
5058
5059 * linux-low.c (linux_kill_one_lwp): Remove references to
5060 LinuxThreads.
5061 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
5062 to 'kill'.
5063 (linux_init_signals): Delete.
5064 (initialize_low): Adjust.
5065 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
5066
5067 2015-12-16 Pedro Alves <palves@redhat.com>
5068
5069 * configure.ac (compiler warning flags): When testing a
5070 -Wno-foo option, check whether -Wfoo works instead.
5071 * configure: Regenerate.
5072
5073 2015-12-11 Don Breazeal <donb@codesourcery.com>
5074
5075 * server.c (process_serial_event): Don't exit from gdbserver
5076 in remote mode if there are still active inferiors.
5077
5078 2015-12-11 Yao Qi <yao.qi@linaro.org>
5079
5080 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
5081 arm_breakpoint_at if the process is 32-bit.
5082
5083 2015-12-11 Yao Qi <yao.qi@linaro.org>
5084
5085 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
5086 arm breakpoint.
5087
5088 2015-12-07 Yao Qi <yao.qi@linaro.org>
5089
5090 * configure.srv: Append arm.o to srv_tgtobj for
5091 aarch64*-*-linux* target.
5092 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
5093 from linux-arm-low.c.
5094 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
5095 (arm_breakpoint_len, thumb_breakpoint): Likewise.
5096 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
5097 (thumb2_breakpoint_len): Likewise.
5098 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
5099 (arm_breakpoint_kinds): Likewise.
5100 (arm_breakpoint_kind_from_pc): Likewise.
5101 (arm_sw_breakpoint_from_kind): Likewise.
5102 (arm_breakpoint_kind_from_current_state): Likewise.
5103 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
5104 (arm_sw_breakpoint_from_kind): Declare.
5105 (arm_breakpoint_kind_from_current_state): Declare.
5106 (arm_breakpoint_at): Declare.
5107 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
5108 arm_sw_breakpoint_from_kind if process is 32-bit.
5109 (aarch64_breakpoint_kind_from_pc): New function.
5110 (aarch64_breakpoint_kind_from_current_state): New function.
5111 (the_low_target): Initialize fields breakpoint_kind_from_pc
5112 and breakpoint_kind_from_current_state.
5113 * linux-arm-low.c (arm_breakpoint_kinds): Move to
5114 linux-aarch32-low.c.
5115 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
5116 (arm_breakpoint, arm_breakpoint_len): Likewise.
5117 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
5118 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
5119 (arm_is_thumb_mode): Likewise.
5120 (arm_breakpoint_at): Likewise.
5121 (arm_breakpoint_kind_from_pc): Likewise.
5122 (arm_sw_breakpoint_from_kind): Likewise.
5123 (arm_breakpoint_kind_from_current_state): Likewise.
5124
5125 Revert:
5126 2015-08-04 Yao Qi <yao.qi@linaro.org>
5127
5128 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
5129 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
5130 * server.c (extended_protocol): Remove "static".
5131 * server.h (extended_protocol): Declare it.
5132
5133 2015-12-04 Josh Stone <jistone@redhat.com>
5134
5135 * target.h (struct target_ops) <arch_setup>: Rename to ...
5136 (struct target_ops) <post_create_inferior>: ... this.
5137 (target_arch_setup): Rename to ...
5138 (target_post_create_inferior): ... this, calling post_create_inferior.
5139 * server.c (start_inferior): Update target_arch_setup calls to
5140 target_post_create_inferior.
5141 * linux-low.c (linux_low_ptrace_options): Forward declare.
5142 (linux_arch_setup): Update its comment for general use.
5143 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
5144 (struct linux_target_ops): Use linux_post_create_inferior.
5145 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
5146 to post_create_inferior.
5147 * nto-low.c (struct nto_target_ops): Likewise.
5148 * spu-low.c (struct spu_target_ops): Likewise.
5149 * win32-low.c (struct win32_target_ops): Likewise.
5150
5151 2015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
5152
5153 * linux-arm-low.c: Remove duplicate arch/arm.h include.
5154
5155 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
5156
5157 * linux-arm-low.c (arm_reinsert_addr): Remove function.
5158 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
5159 * linux-cris-low.c (cris_reinsert_addr> Remove function.
5160 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
5161 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
5162 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
5163 * linux-mips-low.c (mips_reinsert_addr): Remove function.
5164 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
5165 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
5166 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
5167 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
5168 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
5169
5170 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
5171
5172 * linux-low.c (linux_look_up_symbols): Don't call
5173 linux_supports_traceclone.
5174 * linux-low.h (thread_db_init): Remove use_events argument.
5175 * thread-db.c (thread_db_use_event): Remove global variable.
5176 (struct thread_db) <td_thr_event_enable_p>: Remove field.
5177 (struct thread_db) <td_create_bp>: Remove field.
5178 (thread_db_create_event): Remove function.
5179 (thread_db_enable_reporting): Likewise.
5180 (find_one_thread): Don't check for thread_db_use_events.
5181 (attach_thread): Likewise.
5182 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
5183 (try_thread_db_load_1): Don't check for thread_db_use_events.
5184 (thread_db_init): Remove use_events argument and thread events
5185 handling.
5186 (remove_thread_event_breakpoints): Remove function.
5187 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
5188
5189 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
5190
5191 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
5192 New function.
5193 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
5194 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
5195 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
5196 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
5197 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
5198 Initialize.
5199 * linux-crisv32-low.c (cris_supports_hardware_single_step):
5200 New function.
5201 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
5202 * linux-low.c (can_hardware_single_step): Use
5203 supports_hardware_single_step.
5204 (can_software_single_step): New function.
5205 (start_step_over): Call can_software_single_step.
5206 (linux_supports_hardware_single_step): New function.
5207 (struct target_ops) <supports_software_single_step>: Initialize.
5208 * linux-low.h (struct linux_target_ops)
5209 <supports_hardware_single_step>: Initialize.
5210 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
5211 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
5212 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
5213 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
5214 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
5215 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
5216 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
5217 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
5218 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
5219 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
5220 Initialize.
5221 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
5222 (struct linux_target_ops) <tile_supports_hardware_single_step>:
5223 Initialize.
5224 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
5225 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
5226 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
5227 New function.
5228 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
5229 * target.h (struct target_ops): <supports_software_single_step>:
5230 New field.
5231 (target_supports_software_single_step): New macro.
5232
5233 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
5234
5235 * linux-low.c (linux_wait_1): Fix pc advance condition.
5236 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
5237 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
5238
5239 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
5240
5241 * linux-arm-low.c (arm_is_thumb_mode): New function.
5242 (arm_breakpoint_at): Use arm_is_thumb_mode.
5243 (arm_breakpoint_kind_from_current_state): New function.
5244 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
5245 Initialize.
5246 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
5247 (linux_breakpoint_kind_from_current_state): New function.
5248 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
5249 * linux-low.h (struct linux_target_ops)
5250 <breakpoint_kind_from_current_state>: New field.
5251 * target.h (struct target_ops): Likewise.
5252 (target_breakpoint_kind_from_current_state): New macro.
5253
5254 2015-11-30 Pedro Alves <palves@redhat.com>
5255
5256 * linux-low.c (linux_resume): Wake up the event loop before
5257 returning.
5258
5259 2015-11-30 Pedro Alves <palves@redhat.com>
5260
5261 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
5262 check.
5263 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
5264 to -1.
5265 * target.c (struct thread_search): New structure.
5266 (thread_search_callback): New function.
5267 (prev_general_thread): New global.
5268 (prepare_to_access_memory, done_accessing_memory): New functions.
5269 * target.h (prepare_to_access_memory, done_accessing_memory):
5270 Replace macros with function declarations.
5271
5272 2015-11-30 Pedro Alves <palves@redhat.com>
5273
5274 PR 14618
5275 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
5276 report TARGET_WAITKIND_NO_RESUMED.
5277 * remote-utils.c (prepare_resume_reply): Handle
5278 TARGET_WAITKIND_NO_RESUMED.
5279 * server.c (report_no_resumed): New global.
5280 (handle_query) <qSupported>: Handle "no-resumed+". Report
5281 "no-resumed+" support.
5282 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
5283 return error if the client doesn't support no-resumed events.
5284 (push_stop_notification): New function.
5285 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
5286 events if the client supports them.
5287
5288 2015-11-30 Pedro Alves <palves@redhat.com>
5289
5290 * linux-low.c (thread_still_has_status_pending_p): Don't check
5291 vCont;t here.
5292 (lwp_resumed): New function.
5293 (status_pending_p_callback): Return early if the LWP is not
5294 supposed to be resumed.
5295
5296 2015-11-30 Pedro Alves <palves@redhat.com>
5297
5298 * linux-low.c (handle_extended_wait): Assert that the LWP's
5299 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
5300 thread create events, leave the new child's status pending.
5301 (linux_low_filter_event): If GDB wants to hear about thread exit
5302 events, leave the LWP marked dead and don't delete it.
5303 (linux_wait_for_event_filtered): Don't check for thread exit.
5304 (filter_exit_event): New function.
5305 (linux_wait_1): Use it, when returning an exit event.
5306 (linux_resume_one_lwp_throw): Assert that the LWP's
5307 waitstatus is TARGET_WAITKIND_IGNORE.
5308 * remote-utils.c (prepare_resume_reply): Handle
5309 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
5310 * server.c (report_thread_events): New global.
5311 (handle_general_set): Handle QThreadEvents.
5312 (handle_query) <qSupported>: Handle and report QThreadEvents+;
5313 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
5314 TARGET_WAITKIND_THREAD_EXITED.
5315 * server.h (report_thread_events): Declare.
5316
5317 2015-11-30 Pedro Alves <palves@redhat.com>
5318
5319 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
5320 the thread's last_resume_kind was resume_stop.
5321
5322 2015-11-30 Pedro Alves <palves@redhat.com>
5323
5324 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
5325 before returning.
5326
5327 2015-11-30 Pedro Alves <palves@redhat.com>
5328
5329 * server.c (handle_v_requests): Handle vCtrlC.
5330
5331 2015-11-30 Pedro Alves <palves@redhat.com>
5332
5333 * gdbthread.h (find_any_thread_of_pid): Declare.
5334 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
5335 functions.
5336 * server.c (handle_query): If current_thread is NULL, look for
5337 another thread of the selected process.
5338
5339 2015-11-26 Daniel Colascione <dancol@dancol.org>
5340 Simon Marchi <simon.marchi@ericsson.com>
5341
5342 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
5343 * server.c (handle_qxfer_threads_worker): Refactor to include thread
5344 name in reply.
5345 * target.h (struct target_ops) <thread_name>: New field.
5346 (target_thread_name): New macro.
5347
5348 2015-11-23 Joel Brobecker <brobecker@adacore.com>
5349
5350 * regcache.h (regcache_invalidate_pid): Add declaration.
5351 * regcache.c (regcache_invalidate_pid): New function, extracted
5352 from regcache_invalidate.
5353 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
5354 Add trivial documentation comment.
5355 * lynx-low.c: Use regcache_invalidate_pid instead of
5356 regcache_invalidate.
5357
5358 2015-11-23 Joel Brobecker <brobecker@adacore.com>
5359
5360 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
5361 and Elf64_auxv_t if the target is Android.
5362
5363 2015-11-22 Doug Evans <xdje42@gmail.com>
5364
5365 * target.h: #include <sys/types.h>.
5366
5367 2015-11-19 Pedro Alves <palves@redhat.com>
5368
5369 * linux-low.c (linux_process_qsupported): Change prototype.
5370 Adjust.
5371 * linux-low.h (struct linux_target_ops) <process_qsupported>:
5372 Change prototype.
5373 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
5374 and adjust to loop over all features.
5375 * server.c (handle_query) <qSupported>: Adjust to call
5376 target_process_qsupported once, passing it a vector of unprocessed
5377 features.
5378 * target.h (struct target_ops) <process_qsupported>: Change
5379 prototype.
5380 (target_process_qsupported): Adjust.
5381
5382 2015-11-19 Pedro Alves <palves@redhat.com>
5383
5384 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
5385 mode.
5386 * configure: Regenerate.
5387
5388 2015-11-19 Pedro Alves <palves@redhat.com>
5389
5390 * configure: Regenerate.
5391
5392 2015-11-19 Yao Qi <yao.qi@linaro.org>
5393
5394 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
5395 type to uint32_t.
5396
5397 2015-11-19 Yao Qi <yao.qi@linaro.org>
5398
5399 * linux-aarch64-low.c (enum aarch64_operand_type): New.
5400 (struct aarch64_operand): Move enum out.
5401
5402 2015-11-19 Yao Qi <yao.qi@linaro.org>
5403
5404 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
5405 struct user_fpsimd_state *.
5406 (aarch64_store_fpregset): Likewise.
5407
5408 2015-11-19 Yao Qi <yao.qi@linaro.org>
5409
5410 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
5411 struct user_pt_regs *.
5412 (aarch64_store_gregset): Likewise.
5413
5414 2015-11-18 Pedro Alves <palves@redhat.com>
5415
5416 * Makefile.in (all_object_files): Add $IPA_OBJS.
5417
5418 2015-11-17 Pedro Alves <palves@redhat.com>
5419
5420 * win32-low.c (win32_resume): Use gdb_signal_from_host,
5421 GDB_SIGNAL_0 and gdb_signal_to_string.
5422
5423 2015-11-17 Pedro Alves <palves@redhat.com>
5424
5425 * win32-low.c (handle_output_debug_string): Remove parameter.
5426 (win32_kill): Remove our_status local and adjust call to
5427 handle_output_debug_string.
5428 (get_child_debug_event): Adjust call to
5429 handle_output_debug_string.
5430
5431 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
5432
5433 * linux-mips-low.c (mips_fill_gregset): Add cast.
5434 (mips_store_gregset): Likewise.
5435 (mips_fill_fpregset): Likewise.
5436 (mips_store_fpregset): Likewise.
5437
5438 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
5439
5440 * linux-mips-low.c (mips_add_watchpoint): Rename private to
5441 priv.
5442
5443 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
5444
5445 * linux-mips-low.c (mips_linux_new_thread): Change type of
5446 watch_type to enum target_hw_bp_type.
5447
5448 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
5449
5450 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
5451 Change return type to arm_hwbp_type.
5452
5453 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
5454
5455 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
5456 (arm_store_gregset): Likewise.
5457 * linux-arm-low.c (arm_get_hwcap): Likewise.
5458 (arm_read_description): Likewise.
5459
5460 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
5461
5462 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
5463
5464 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
5465
5466 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
5467 (ppc_fill_vsxregset): Likewise.
5468 (ppc_store_vsxregset): Likewise.
5469 (ppc_fill_vrregset): Likewise.
5470 (ppc_store_vrregset): Likewise.
5471 (ppc_fill_evrregset): Likewise.
5472 (ppc_store_evrregset): Likewise.
5473
5474 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
5475
5476 * linux-ppc-low.c (ppc_usrregs_info): Remove
5477 forward-declaration.
5478 (ppc_arch_setup): Move lower in file.
5479
5480 2015-10-30 Simon Marchi <simon.marchi@ericsson.com>
5481
5482 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
5483 (ps_pdwrite): Likewise.
5484
5485 2015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
5486
5487 * linux-arm-low.c (arm_new_thread): Move pointer dereference
5488 to after assert checks.
5489
5490 2015-10-29 Simon Marchi <simon.marchi@ericsson.com>
5491
5492 * proc-service.c (ps_pdread): Add/adjust casts.
5493 (ps_pdwrite): Add/adjust casts.
5494
5495 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
5496
5497 * server.c (handle_search_memory_1): Cast return value of
5498 memmem.
5499
5500 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
5501
5502 * server.c (write_qxfer_response): Change type of data to
5503 gdb_byte *.
5504
5505 2015-10-29 Pedro Alves <palves@redhat.com>
5506
5507 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
5508
5509 2015-10-29 Pedro Alves <palves@redhat.com>
5510
5511 * tracepoint.c (clear_installed_tracepoints): Add casts.
5512
5513 2015-10-29 Pedro Alves <palves@redhat.com>
5514
5515 * server.c (handle_v_cont, process_serial_event): Add enum
5516 gdb_signal casts to signal parsing code.
5517
5518 2015-10-29 Pedro Alves <palves@redhat.com>
5519
5520 * linux-low.h (NULL_REGSET): Define.
5521 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
5522 * linux-arm-low.c (arm_regsets): Likewise.
5523 * linux-crisv32-low.c (cris_regsets): Likewise.
5524 * linux-m68k-low.c (m68k_regsets): Likewise.
5525 * linux-mips-low.c (mips_regsets): Likewise.
5526 * linux-nios2-low.c (nios2_regsets): Likewise.
5527 * linux-ppc-low.c (ppc_regsets): Likewise.
5528 * linux-s390-low.c (s390_regsets): Likewise.
5529 * linux-sh-low.c (sh_regsets): Likewise.
5530 * linux-sparc-low.c (sparc_regsets): Likewise.
5531 * linux-tic6x-low.c (tic6x_regsets): Likewise.
5532 * linux-tile-low.c (tile_regsets): Likewise.
5533 * linux-x86-low.c (x86_regsets): Likewise.
5534 * linux-xtensa-low.c (xtensa_regsets): Likewise.
5535
5536 2015-10-29 Pedro Alves <palves@redhat.com>
5537
5538 * linux-low.h (NULL_REGSET): Define.
5539 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
5540 * linux-arm-low.c (arm_regsets): Likewise.
5541 * linux-crisv32-low.c (cris_regsets): Likewise.
5542 * linux-m68k-low.c (m68k_regsets): Likewise.
5543 * linux-mips-low.c (mips_regsets): Likewise.
5544 * linux-nios2-low.c (nios2_regsets): Likewise.
5545 * linux-ppc-low.c (ppc_regsets): Likewise.
5546 * linux-s390-low.c (s390_regsets): Likewise.
5547 * linux-sh-low.c (sh_regsets): Likewise.
5548 * linux-sparc-low.c (sparc_regsets): Likewise.
5549 * linux-tic6x-low.c (tic6x_regsets): Likewise.
5550 * linux-tile-low.c (tile_regsets): Likewise.
5551 * linux-x86-low.c (x86_regsets): Likewise.
5552 * linux-xtensa-low.c (xtensa_regsets): Likewise.
5553
5554 2015-10-26 Doug Evans <dje@google.com>
5555
5556 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
5557
5558 2015-10-26 Doug Evans <dje@google.com>
5559
5560 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
5561
5562 2015-10-26 Doug Evans <dje@google.com>
5563
5564 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
5565 for debug_printf.
5566 (attach_thread, find_new_threads_callback): Ditto.
5567
5568 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
5569
5570 * mem-break.h (set_breakpoint_data): Remove.
5571
5572 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
5573
5574 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
5575 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
5576 (initialize_low): Remove set_breakpoint_data call.
5577 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
5578 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
5579 (initialize_low): Remove set_breakpoint_data call.
5580 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
5581 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
5582 (initialize_low): Remove set_breakpoint_data call.
5583
5584 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
5585
5586 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
5587 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
5588 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
5589 * target.h (target_breakpoint_kind_from_pc): New macro.
5590
5591 2015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
5592
5593 * linux-low.c (default_breakpoint_kind_from_pc): New function.
5594 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
5595 the default breakpoint kind.
5596
5597 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
5598
5599 * linux-arm-low.c (arm_supports_z_point_type): Add software
5600 breakpoint support.
5601
5602 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
5603
5604 * linux-arm-low.c: Refactor breakpoint definitions.
5605 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
5606 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
5607
5608 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
5609
5610 * Makefile.in: Add arm.c/o.
5611 * configure.srv: Likewise.
5612 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
5613 (arm_breakpoint_kind_from_pc): New function.
5614 (arm_sw_breakpoint_from_kind): Return proper kind.
5615 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
5616
5617 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
5618
5619 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
5620 removal.
5621 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
5622 (struct raw_breakpoint) <size>: Remove.
5623 (struct raw_breakpoint) <kind>: Add.
5624 (bp_size): New function.
5625 (bp_opcode): Likewise.
5626 (find_raw_breakpoint_at): Adjust for kind.
5627 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
5628 (remove_memory_breakpoint): Adjust for kind call bp_size.
5629 (set_raw_breakpoint_at): Adjust for kind.
5630 (set_breakpoint): Likewise.
5631 (set_breakpoint_at): Call breakpoint_kind_from_pc.
5632 (delete_raw_breakpoint): Adjust for kind.
5633 (delete_breakpoint): Likewise.
5634 (find_gdb_breakpoint): Likewise.
5635 (set_gdb_breakpoint_1): Likewise.
5636 (set_gdb_breakpoint): Likewise.
5637 (delete_gdb_breakpoint_1): Likewise.
5638 (delete_gdb_breakpoint): Likewise.
5639 (uninsert_raw_breakpoint): Likewise.
5640 (reinsert_raw_breakpoint): Likewise.
5641 (set_breakpoint_data): Remove.
5642 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
5643 (check_mem_read): Adjust for kind call bp_size.
5644 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
5645 (clone_one_breakpoint): Adjust for kind.
5646 * mem-break.h (set_gdb_breakpoint): Likewise.
5647 (delete_gdb_breakpoint): Likewise.
5648 * server.c (process_serial_event): Likewise.
5649
5650 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
5651
5652 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
5653 (struct linux_target_ops) <breakpoint>: Remove.
5654 (struct linux_target_ops) <breakpoint_len>: Remove.
5655 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
5656 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
5657 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
5658 (arm_sw_breakpoint_from_kind): New function.
5659 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
5660 (struct linux_target_ops) <breakpoint>: Remove.
5661 (struct linux_target_ops) <breakpoint_len>: Remove.
5662 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
5663 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
5664 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
5665 (struct linux_target_ops) <breakpoint>: Remove.
5666 (struct linux_target_ops) <breakpoint_len>: Remove.
5667 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
5668 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
5669 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
5670 (struct linux_target_ops) <breakpoint>: Remove.
5671 (struct linux_target_ops) <breakpoint_len>: Remove.
5672 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
5673 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
5674 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
5675 and sw_breakpoint_from_kind to increment the pc.
5676 (linux_breakpoint_kind_from_pc): New function.
5677 (linux_sw_breakpoint_from_kind): New function.
5678 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
5679 (initialize_low): Call breakpoint_kind_from_pc and
5680 sw_breakpoint_from_kind to replace breakpoint_data/len.
5681 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
5682 New field.
5683 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
5684 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
5685 (struct linux_target_ops) <breakpoint>: Remove.
5686 (struct linux_target_ops) <breakpoint_len>: Remove.
5687 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
5688 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
5689 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
5690 (struct linux_target_ops) <breakpoint>: Remove.
5691 (struct linux_target_ops) <breakpoint_len>: Remove.
5692 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
5693 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
5694 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
5695 (struct linux_target_ops) <breakpoint>: Remove.
5696 (struct linux_target_ops) <breakpoint_len>: Remove.
5697 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
5698 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
5699 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
5700 (struct linux_target_ops) <breakpoint>: Remove.
5701 (struct linux_target_ops) <breakpoint_len>: Remove.
5702 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
5703 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
5704 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
5705 (struct linux_target_ops) <breakpoint>: Remove.
5706 (struct linux_target_ops) <breakpoint_len>: Remove.
5707 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
5708 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
5709 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
5710 (struct linux_target_ops) <breakpoint>: Remove.
5711 (struct linux_target_ops) <breakpoint_len>: Remove.
5712 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
5713 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
5714 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
5715 (struct linux_target_ops) <breakpoint>: Remove.
5716 (struct linux_target_ops) <breakpoint_len>: Remove.
5717 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
5718 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
5719 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
5720 (struct linux_target_ops) <breakpoint>: Remove.
5721 (struct linux_target_ops) <breakpoint_len>: Remove.
5722 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
5723 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
5724 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
5725 (struct linux_target_ops) <breakpoint>: Remove.
5726 (struct linux_target_ops) <breakpoint_len>: Remove.
5727 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
5728 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
5729 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
5730 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
5731 (struct linux_target_ops) <breakpoint>: Remove.
5732 (struct linux_target_ops) <breakpoint_len>: Remove.
5733 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
5734 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
5735 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
5736 (struct linux_target_ops) <breakpoint>: Remove.
5737 (struct linux_target_ops) <breakpoint_len>: Remove.
5738 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
5739 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
5740
5741 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
5742
5743 * linux-cris-low.c (cris_get_pc): Remove void arg.
5744
5745 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
5746
5747 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
5748 variable name.
5749
5750 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
5751
5752 * inferiors.c (thread_pid_matches_callback): New function.
5753 (find_thread_process): New function.
5754 (remove_thread): Reset current_thread.
5755 (remove_process): Assert threads have been removed first.
5756
5757 2015-10-15 Yao Qi <yao.qi@linaro.org>
5758
5759 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
5760 if it is 3.
5761 (aarch64_remove_point): Likewise.
5762 * regcache.c (regcache_register_size): New function.
5763
5764 2015-10-12 Yao Qi <yao.qi@linaro.org>
5765
5766 * linux-aarch64-low.c: Update all callers as emit_load_store
5767 is renamed to aarch64_emit_load_store.
5768
5769 2015-10-12 Yao Qi <yao.qi@linaro.org>
5770
5771 * linux-aarch64-low.c: Update all callers of function renaming
5772 from emit_insn to aarch64_emit_insn.
5773
5774 2015-10-12 Yao Qi <yao.qi@linaro.org>
5775
5776 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
5777 arch/aarch64-insn.h.
5778 (struct aarch64_memory_operand): Likewise.
5779 (ENCODE): Likewise.
5780 (emit_insn): Move to arch/aarch64-insn.c.
5781 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
5782 (emit_load_store): Move to arch/aarch64-insn.c.
5783 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
5784 (can_encode_int32): Remove.
5785
5786 2015-10-12 Yao Qi <yao.qi@linaro.org>
5787
5788 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
5789 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
5790 (aarch64_relocate_instruction): Likewise.
5791 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
5792 (struct aarch64_insn_visitor): Likewise.
5793
5794 2015-10-12 Yao Qi <yao.qi@linaro.org>
5795
5796 * linux-aarch64-low.c (struct aarch64_insn_data): New.
5797 (struct aarch64_insn_visitor): New.
5798 (struct aarch64_insn_relocation_data): New.
5799 (aarch64_ftrace_insn_reloc_b): New function.
5800 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
5801 (aarch64_ftrace_insn_reloc_cb): Likewise.
5802 (aarch64_ftrace_insn_reloc_tb): Likewise.
5803 (aarch64_ftrace_insn_reloc_adr): Likewise.
5804 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
5805 (aarch64_ftrace_insn_reloc_others): Likewise.
5806 (visitor): New.
5807 (aarch64_relocate_instruction): Use visitor.
5808
5809 2015-10-12 Yao Qi <yao.qi@linaro.org>
5810
5811 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
5812 int. Add argument buf.
5813 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
5814 aarch64_relocate_instruction.
5815
5816 2015-10-12 Yao Qi <yao.qi@linaro.org>
5817
5818 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
5819 argument insn. Remove local variable insn. Don't call
5820 target_read_uint32.
5821 (aarch64_install_fast_tracepoint_jump_pad): Call
5822 target_read_uint32.
5823
5824 2015-09-30 Yao Qi <yao.qi@linaro.org>
5825
5826 * linux-aarch64-low.c (emit_movk): Shorten a long line.
5827 (emit_load_store_pair): Likewise.
5828
5829 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
5830
5831 * dll.c (match_dll): Add cast(s).
5832 (unloaded_dll): Likewise.
5833 * linux-low.c (second_thread_of_pid_p): Likewise.
5834 (delete_lwp_callback): Likewise.
5835 (count_events_callback): Likewise.
5836 (select_event_lwp_callback): Likewise.
5837 (linux_set_resume_request): Likewise.
5838 * server.c (accumulate_file_name_length): Likewise.
5839 (emit_dll_description): Likewise.
5840 (handle_qxfer_threads_worker): Likewise.
5841 (visit_actioned_threads): Likewise.
5842 * thread-db.c (any_thread_of): Likewise.
5843 * tracepoint.c (same_process_p): Likewise.
5844 (match_blocktype): Likewise.
5845 (build_traceframe_info_xml): Likewise.
5846
5847 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
5848
5849 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
5850 assignment.
5851 (gdb_unparse_agent_expr): Likewise.
5852 * hostio.c (require_data): Likewise.
5853 (handle_pread): Likewise.
5854 * linux-low.c (disable_regset): Likewise.
5855 (fetch_register): Likewise.
5856 (store_register): Likewise.
5857 (get_dynamic): Likewise.
5858 (linux_qxfer_libraries_svr4): Likewise.
5859 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
5860 (set_fast_tracepoint_jump): Likewise.
5861 (uninsert_fast_tracepoint_jumps_at): Likewise.
5862 (reinsert_fast_tracepoint_jumps_at): Likewise.
5863 (validate_inserted_breakpoint): Likewise.
5864 (clone_agent_expr): Likewise.
5865 * regcache.c (init_register_cache): Likewise.
5866 * remote-utils.c (putpkt_binary_1): Likewise.
5867 (decode_M_packet): Likewise.
5868 (decode_X_packet): Likewise.
5869 (look_up_one_symbol): Likewise.
5870 (relocate_instruction): Likewise.
5871 (monitor_output): Likewise.
5872 * server.c (handle_search_memory): Likewise.
5873 (handle_qxfer_exec_file): Likewise.
5874 (handle_qxfer_libraries): Likewise.
5875 (handle_qxfer): Likewise.
5876 (handle_query): Likewise.
5877 (handle_v_cont): Likewise.
5878 (handle_v_run): Likewise.
5879 (captured_main): Likewise.
5880 * target.c (write_inferior_memory): Likewise.
5881 * thread-db.c (try_thread_db_load_from_dir): Likewise.
5882 * tracepoint.c (init_trace_buffer): Likewise.
5883 (add_tracepoint_action): Likewise.
5884 (add_traceframe): Likewise.
5885 (add_traceframe_block): Likewise.
5886 (cmd_qtdpsrc): Likewise.
5887 (cmd_qtdv): Likewise.
5888 (cmd_qtstatus): Likewise.
5889 (response_source): Likewise.
5890 (response_tsv): Likewise.
5891 (cmd_qtnotes): Likewise.
5892 (gdb_collect): Likewise.
5893 (initialize_tracepoint): Likewise.
5894
5895 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
5896
5897 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
5898 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
5899 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
5900 <NOP>: New.
5901 (enum aarch64_condition_codes): New enum.
5902 (w0): New static global.
5903 (fp): Likewise.
5904 (lr): Likewise.
5905 (struct aarch64_memory_operand) <type>: New
5906 MEMORY_OPERAND_POSTINDEX type.
5907 (postindex_memory_operand): New helper function.
5908 (emit_ret): New function.
5909 (emit_load_store_pair): New function, factored out of emit_stp
5910 with support for MEMORY_OPERAND_POSTINDEX.
5911 (emit_stp): Rewrite using emit_load_store_pair.
5912 (emit_ldp): New function.
5913 (emit_load_store): Likewise.
5914 (emit_ldr): Mention post-index instruction in comment.
5915 (emit_ldrh): New function.
5916 (emit_ldrb): New function.
5917 (emit_ldrsw): Mention post-index instruction in comment.
5918 (emit_str): Likewise.
5919 (emit_subs): New function.
5920 (emit_cmp): Likewise.
5921 (emit_and): Likewise.
5922 (emit_orr): Likewise.
5923 (emit_orn): Likewise.
5924 (emit_eor): Likewise.
5925 (emit_mvn): Likewise.
5926 (emit_lslv): Likewise.
5927 (emit_lsrv): Likewise.
5928 (emit_asrv): Likewise.
5929 (emit_mul): Likewise.
5930 (emit_sbfm): Likewise.
5931 (emit_sbfx): Likewise.
5932 (emit_ubfm): Likewise.
5933 (emit_ubfx): Likewise.
5934 (emit_csinc): Likewise.
5935 (emit_cset): Likewise.
5936 (emit_nop): Likewise.
5937 (emit_ops_insns): New helper function.
5938 (emit_pop): Likewise.
5939 (emit_push): Likewise.
5940 (aarch64_emit_prologue): New function.
5941 (aarch64_emit_epilogue): Likewise.
5942 (aarch64_emit_add): Likewise.
5943 (aarch64_emit_sub): Likewise.
5944 (aarch64_emit_mul): Likewise.
5945 (aarch64_emit_lsh): Likewise.
5946 (aarch64_emit_rsh_signed): Likewise.
5947 (aarch64_emit_rsh_unsigned): Likewise.
5948 (aarch64_emit_ext): Likewise.
5949 (aarch64_emit_log_not): Likewise.
5950 (aarch64_emit_bit_and): Likewise.
5951 (aarch64_emit_bit_or): Likewise.
5952 (aarch64_emit_bit_xor): Likewise.
5953 (aarch64_emit_bit_not): Likewise.
5954 (aarch64_emit_equal): Likewise.
5955 (aarch64_emit_less_signed): Likewise.
5956 (aarch64_emit_less_unsigned): Likewise.
5957 (aarch64_emit_ref): Likewise.
5958 (aarch64_emit_if_goto): Likewise.
5959 (aarch64_emit_goto): Likewise.
5960 (aarch64_write_goto_address): Likewise.
5961 (aarch64_emit_const): Likewise.
5962 (aarch64_emit_call): Likewise.
5963 (aarch64_emit_reg): Likewise.
5964 (aarch64_emit_pop): Likewise.
5965 (aarch64_emit_stack_flush): Likewise.
5966 (aarch64_emit_zero_ext): Likewise.
5967 (aarch64_emit_swap): Likewise.
5968 (aarch64_emit_stack_adjust): Likewise.
5969 (aarch64_emit_int_call_1): Likewise.
5970 (aarch64_emit_void_call_2): Likewise.
5971 (aarch64_emit_eq_goto): Likewise.
5972 (aarch64_emit_ne_goto): Likewise.
5973 (aarch64_emit_lt_goto): Likewise.
5974 (aarch64_emit_le_goto): Likewise.
5975 (aarch64_emit_gt_goto): Likewise.
5976 (aarch64_emit_ge_got): Likewise.
5977 (aarch64_emit_ops_impl): New static global variable.
5978 (aarch64_emit_ops): New target function, return
5979 &aarch64_emit_ops_impl.
5980 (struct linux_target_ops): Install it.
5981
5982 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
5983
5984 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
5985 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
5986 aarch64-ipa.o.
5987 * linux-aarch64-ipa.c: New file.
5988 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
5989 and endian.h.
5990 (aarch64_get_thread_area): New target method.
5991 (extract_signed_bitfield): New helper function.
5992 (aarch64_decode_ldr_literal): New function.
5993 (enum aarch64_opcodes): New enum.
5994 (struct aarch64_register): New struct.
5995 (struct aarch64_operand): New struct.
5996 (x0): New static global.
5997 (x1): Likewise.
5998 (x2): Likewise.
5999 (x3): Likewise.
6000 (x4): Likewise.
6001 (w2): Likewise.
6002 (ip0): Likewise.
6003 (sp): Likewise.
6004 (xzr): Likewise.
6005 (aarch64_register): New helper function.
6006 (register_operand): Likewise.
6007 (immediate_operand): Likewise.
6008 (struct aarch64_memory_operand): New struct.
6009 (offset_memory_operand): New helper function.
6010 (preindex_memory_operand): Likewise.
6011 (enum aarch64_system_control_registers): New enum.
6012 (ENCODE): New macro.
6013 (emit_insn): New helper function.
6014 (emit_b): New function.
6015 (emit_bcond): Likewise.
6016 (emit_cb): Likewise.
6017 (emit_tb): Likewise.
6018 (emit_blr): Likewise.
6019 (emit_stp): Likewise.
6020 (emit_ldp_q_offset): Likewise.
6021 (emit_stp_q_offset): Likewise.
6022 (emit_load_store): Likewise.
6023 (emit_ldr): Likewise.
6024 (emit_ldrsw): Likewise.
6025 (emit_str): Likewise.
6026 (emit_ldaxr): Likewise.
6027 (emit_stxr): Likewise.
6028 (emit_stlr): Likewise.
6029 (emit_data_processing_reg): Likewise.
6030 (emit_data_processing): Likewise.
6031 (emit_add): Likewise.
6032 (emit_sub): Likewise.
6033 (emit_mov): Likewise.
6034 (emit_movk): Likewise.
6035 (emit_mov_addr): Likewise.
6036 (emit_mrs): Likewise.
6037 (emit_msr): Likewise.
6038 (emit_sevl): Likewise.
6039 (emit_wfe): Likewise.
6040 (append_insns): Likewise.
6041 (can_encode_int32_in): New helper function.
6042 (aarch64_relocate_instruction): New function.
6043 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
6044 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
6045 (struct linux_target_ops): Install aarch64_get_thread_area,
6046 aarch64_install_fast_tracepoint_jump_pad and
6047 aarch64_get_min_fast_tracepoint_insn_len.
6048
6049 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
6050
6051 * Makefile.in (aarch64-insn.o): New rule.
6052 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
6053
6054 2015-09-21 Yao Qi <yao.qi@linaro.org>
6055
6056 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
6057
6058 2015-09-21 Yao Qi <yao.qi@linaro.org>
6059
6060 * tracepoint.c (max_jump_pad_size): Remove.
6061
6062 2015-09-18 Yao Qi <yao.qi@linaro.org>
6063
6064 * linux-aarch64-low.c: Don't include sys/uio.h.
6065 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
6066
6067 2015-09-16 Wei-cheng Wang <cole945@gmail.com>
6068
6069 * tracepoint.c (eval_result_type): Change prototype.
6070 (condition_true_at_tracepoint): Fix argument to compiled_cond.
6071
6072 2015-09-15 Pedro Alves <palves@redhat.com>
6073
6074 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
6075 Check whether to report exec events instead of checking whether
6076 multiprocess is enabled.
6077
6078 2015-09-15 Pedro Alves <palves@redhat.com>
6079
6080 PR remote/18965
6081 * remote-utils.c (prepare_resume_reply): Merge
6082 TARGET_WAITKIND_VFORK_DONE switch case with the
6083 TARGET_WAITKIND_FORKED case.
6084
6085 2015-09-15 Yao Qi <yao.qi@linaro.org>
6086
6087 * server.c (handle_query): Check string comparison using
6088 "else if" instead of "if".
6089
6090 2015-09-15 Yao Qi <yao.qi@linaro.org>
6091
6092 * server.c (vCont_supported): New global variable.
6093 (handle_query): Set vCont_supported to 1 if "vContSupported+"
6094 matches. Append ";vContSupported+" to own_buf.
6095 (handle_v_requests): Append ";s;S" to own_buf if target supports
6096 hardware single step or vCont_supported is false.
6097 (capture_main): Set vCont_supported to zero.
6098
6099 2015-09-15 Yao Qi <yao.qi@linaro.org>
6100
6101 * linux-low.c (linux_supports_conditional_breakpoints): Rename
6102 it to ...
6103 (linux_supports_hardware_single_step): ... New function.
6104 (linux_target_ops): Update.
6105 * lynx-low.c (lynx_target_ops): Set field
6106 supports_hardware_single_step to target_can_do_hardware_single_step.
6107 * nto-low.c (nto_target_ops): Likewise.
6108 * spu-low.c (spu_target_ops): Likewise.
6109 * win32-low.c (win32_target_ops): Likewise.
6110 * target.c (target_can_do_hardware_single_step): New function.
6111 * target.h (struct target_ops) <supports_conditional_breakpoints>:
6112 Remove. <supports_hardware_single_step>: New field.
6113 (target_supports_conditional_breakpoints): Remove.
6114 (target_supports_hardware_single_step): New macro.
6115 (target_can_do_hardware_single_step): Declare.
6116 * server.c (handle_query): Use target_supports_hardware_single_step
6117 instead of target_supports_conditional_breakpoints.
6118
6119 2015-09-15 Yao Qi <yao.qi@linaro.org>
6120
6121 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
6122 function.
6123 (struct linux_target_ops the_low_target): Install
6124 aarch64_linux_siginfo_fixup.
6125
6126 2015-09-11 Don Breazeal <donb@codesourcery.com>
6127 Luis Machado <lgustavo@codesourcery.com>
6128
6129 * linux-low.c (linux_mourn): Static declaration.
6130 (linux_arch_setup): Move in front of
6131 handle_extended_wait.
6132 (linux_arch_setup_thread): New function.
6133 (handle_extended_wait): Handle exec events. Call
6134 linux_arch_setup_thread. Make event_lwp argument a
6135 pointer-to-a-pointer.
6136 (check_zombie_leaders): Do not check stopped threads.
6137 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
6138 (linux_low_filter_event): Add lwp and thread for exec'ing
6139 non-leader thread if leader thread has been deleted.
6140 Refactor code into linux_arch_setup_thread and call it.
6141 Pass child lwp pointer by reference to handle_extended_wait.
6142 (linux_wait_for_event_filtered): Update comment.
6143 (linux_wait_1): Prevent clobbering exec event status.
6144 (linux_supports_exec_events): New function.
6145 (linux_target_ops) <supports_exec_events>: Initialize new member.
6146 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
6147 new member.
6148 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
6149 * server.c (report_exec_events): New global variable.
6150 (handle_query): Handle qSupported query for exec-events feature.
6151 (captured_main): Initialize report_exec_events.
6152 * server.h (report_exec_events): Declare new global variable.
6153 * target.h (struct target_ops) <supports_exec_events>: New
6154 member.
6155 (target_supports_exec_events): New macro.
6156 * win32-low.c (win32_target_ops) <supports_exec_events>:
6157 Initialize new member.
6158
6159 2015-09-09 Markus Metzger <markus.t.metzger@intel.com>
6160
6161 * linux-low.c (linux_low_enable_btrace): Remove.
6162 (linux_target_ops): Replace linux_low_enable_btrace with
6163 linux_enable_btrace.
6164
6165 2015-09-03 Yao Qi <yao.qi@linaro.org>
6166
6167 * linux-aarch64-low.c (aarch64_insert_point): Call
6168 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
6169 returns true.
6170
6171 2015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6172
6173 * linux-low.c (check_stopped_by_breakpoint): Use
6174 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
6175
6176 2015-08-27 Pedro Alves <palves@redhat.com>
6177
6178 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
6179
6180 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
6181
6182 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
6183 the XNEW-family equivalent.
6184 (compile_bytecodes): Likewise.
6185 * dll.c (loaded_dll): Likewise.
6186 * event-loop.c (append_callback_event): Likewise.
6187 (create_file_handler): Likewise.
6188 (create_file_event): Likewise.
6189 * hostio.c (handle_open): Likewise.
6190 * inferiors.c (add_thread): Likewise.
6191 (add_process): Likewise.
6192 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
6193 * linux-arm-low.c (arm_new_process): Likewise.
6194 (arm_new_thread): Likewise.
6195 * linux-low.c (add_to_pid_list): Likewise.
6196 (linux_add_process): Likewise.
6197 (handle_extended_wait): Likewise.
6198 (add_lwp): Likewise.
6199 (enqueue_one_deferred_signal): Likewise.
6200 (enqueue_pending_signal): Likewise.
6201 (linux_resume_one_lwp_throw): Likewise.
6202 (linux_resume_one_thread): Likewise.
6203 (linux_read_memory): Likewise.
6204 (linux_write_memory): Likewise.
6205 * linux-mips-low.c (mips_linux_new_process): Likewise.
6206 (mips_linux_new_thread): Likewise.
6207 (mips_add_watchpoint): Likewise.
6208 * linux-x86-low.c (initialize_low_arch): Likewise.
6209 * lynx-low.c (lynx_add_process): Likewise.
6210 * mem-break.c (set_raw_breakpoint_at): Likewise.
6211 (set_breakpoint): Likewise.
6212 (add_condition_to_breakpoint): Likewise.
6213 (add_commands_to_breakpoint): Likewise.
6214 (clone_agent_expr): Likewise.
6215 (clone_one_breakpoint): Likewise.
6216 * regcache.c (new_register_cache): Likewise.
6217 * remote-utils.c (look_up_one_symbol): Likewise.
6218 * server.c (queue_stop_reply): Likewise.
6219 (start_inferior): Likewise.
6220 (queue_stop_reply_callback): Likewise.
6221 (handle_target_event): Likewise.
6222 * spu-low.c (fetch_ppc_memory): Likewise.
6223 (store_ppc_memory): Likewise.
6224 * target.c (set_target_ops): Likewise.
6225 * thread-db.c (thread_db_load_search): Likewise.
6226 (try_thread_db_load_1): Likewise.
6227 * tracepoint.c (add_tracepoint): Likewise.
6228 (add_tracepoint_action): Likewise.
6229 (create_trace_state_variable): Likewise.
6230 (cmd_qtdpsrc): Likewise.
6231 (cmd_qtro): Likewise.
6232 (add_while_stepping_state): Likewise.
6233 * win32-low.c (child_add_thread): Likewise.
6234 (get_image_name): Likewise.
6235
6236 2015-08-25 Yao Qi <yao.qi@linaro.org>
6237
6238 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
6239
6240 2015-08-25 Yao Qi <yao.qi@linaro.org>
6241
6242 * Makefile.in (aarch64-linux.o): New rule.
6243 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
6244 srv_tgtobj.
6245 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
6246 (aarch64_init_debug_reg_state): Make it extern.
6247 (aarch64_linux_prepare_to_resume): Remove.
6248
6249 2015-08-25 Yao Qi <yao.qi@linaro.org>
6250
6251 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
6252 lwp_arch_private_info and ptid_of_lwp.
6253
6254 2015-08-25 Yao Qi <yao.qi@linaro.org>
6255
6256 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
6257 Find proc_info by find_process_pid. All callers updated.
6258
6259 2015-08-25 Yao Qi <yao.qi@linaro.org>
6260
6261 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
6262 Remove.
6263 (debug_reg_change_callback): Remove.
6264 (aarch64_notify_debug_reg_change): Remove.
6265
6266 2015-08-25 Yao Qi <yao.qi@linaro.org>
6267
6268 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
6269 Call current_lwp_ptid.
6270
6271 2015-08-25 Yao Qi <yao.qi@linaro.org>
6272
6273 * linux-aarch64-low.c (debug_reg_change_callback): Use
6274 debug_printf.
6275
6276 2015-08-25 Yao Qi <yao.qi@linaro.org>
6277
6278 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
6279
6280 2015-08-25 Yao Qi <yao.qi@linaro.org>
6281
6282 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
6283
6284 2015-08-25 Yao Qi <yao.qi@linaro.org>
6285
6286 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
6287 the code.
6288
6289 2015-08-25 Yao Qi <yao.qi@linaro.org>
6290
6291 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
6292 Remove.
6293 (debug_reg_change_callback): Remove argument entry and add argument
6294 lwp. Remove local variable thread. Don't print thread id in the
6295 debugging output. Don't check whether pid of thread equals to pid.
6296 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
6297 iterate_over_lwps instead find_inferior.
6298
6299 2015-08-24 Pedro Alves <palves@redhat.com>
6300
6301 * inferiors.c (get_first_process): New function.
6302 * inferiors.h (get_first_process): New declaration.
6303 * remote-utils.c (read_ptid): Default to the first process in the
6304 list, instead of to the current thread's process.
6305
6306 2015-08-24 Pedro Alves <palves@redhat.com>
6307
6308 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
6309 * event-loop.c: Likewise.
6310 * remote-utils.c: Likewise.
6311 * tracepoint.c: Likewise.
6312
6313 2015-08-24 Pedro Alves <palves@redhat.com>
6314
6315 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
6316 ptid_get_lwp.
6317
6318 2015-08-21 Pedro Alves <palves@redhat.com>
6319
6320 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
6321 instead of literal 1.
6322
6323 2015-08-21 Pedro Alves <palves@redhat.com>
6324
6325 * tdesc.c (default_description): Explicitly zero-initialize.
6326
6327 2015-08-21 Pedro Alves <palves@redhat.com>
6328
6329 PR gdb/18749
6330 * inferiors.c (remove_thread): Discard any pending stop reply for
6331 this thread.
6332 * server.c (remove_all_on_match_pid): Rename to ...
6333 (remove_all_on_match_ptid): ... this. Work with a filter ptid
6334 instead of a pid.
6335 (discard_queued_stop_replies): Change parameter to a ptid. Now
6336 extern.
6337 (handle_v_kill, kill_inferior_callback, captured_main)
6338 (process_serial_event): Adjust.
6339 * server.h (discard_queued_stop_replies): Declare.
6340
6341 2015-08-21 Pedro Alves <palves@redhat.com>
6342
6343 * linux-low.c (wait_for_sigstop): Always switch to no thread
6344 selected if the previously current thread dies.
6345 * lynx-low.c (lynx_request_interrupt): Use the first thread's
6346 process instead of the current thread's.
6347 * remote-utils.c (input_interrupt): Don't check if there's no
6348 current thread.
6349 * server.c (gdb_read_memory, gdb_write_memory): If setting the
6350 current thread to the general thread fails, error out.
6351 (handle_qxfer_auxv, handle_qxfer_libraries)
6352 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
6353 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
6354 (handle_query): Check if there's a thread selected instead of
6355 checking whether there's any thread in the thread list.
6356 (handle_qxfer_threads, handle_qxfer_btrace)
6357 (handle_qxfer_btrace_conf): Don't error out early if there's no
6358 thread in the thread list.
6359 (handle_v_cont, myresume): Don't set the current thread to the
6360 continue thread.
6361 (process_serial_event) <Hg handling>: Also set thread_id if the
6362 previous general thread is still alive.
6363 (process_serial_event) <g/G handling>: If setting the current
6364 thread to the general thread fails, error out.
6365 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
6366 thread's lwp instead of the current thread's.
6367 * target.c (set_desired_thread): If the desired thread was not
6368 found, leave the current thread pointing to NULL. Return an int
6369 (boolean) indicating success.
6370 * target.h (set_desired_thread): Change return type to int.
6371
6372 2015-08-20 Max Filippov <jcmvbkbc@gmail.com>
6373
6374 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
6375 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
6376 #includes.
6377 (ps_get_thread_area): New function.
6378
6379 2015-08-19 Gary Benson <gbenson@redhat.com>
6380
6381 * hostio.c (handle_pread): Do not attempt to read more data
6382 than hostio_reply_with_data can fit in a packet.
6383
6384 2015-08-18 Joel Brobecker <brobecker@adacore.com>
6385
6386 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
6387
6388 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
6389
6390 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
6391
6392 2015-08-06 Pedro Alves <palves@redhat.com>
6393
6394 * tracepoint.c (expr_eval_result): Now an int.
6395
6396 2015-08-06 Pedro Alves <palves@redhat.com>
6397
6398 * gdbthread.h (struct regcache): Forward declare.
6399 (struct thread_info) <regcache_data>: Now a struct regcache
6400 pointer.
6401 * inferiors.c (inferior_regcache_data)
6402 (set_inferior_regcache_data): Now work with struct regcache
6403 pointers.
6404 * inferiors.h (struct regcache): Forward declare.
6405 (inferior_regcache_data, set_inferior_regcache_data): Now work
6406 with struct regcache pointers.
6407 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
6408 (free_register_cache_thread): Remove struct regcache pointer
6409 casts.
6410
6411 2015-08-06 Pedro Alves <palves@redhat.com>
6412
6413 * server.c (captured_main): On error, print the exception message
6414 to stderr, and if run_once is set, throw a quit.
6415
6416 2015-08-06 Pedro Alves <palves@redhat.com>
6417
6418 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
6419 the current thread.
6420
6421 2015-08-06 Pedro Alves <palves@redhat.com>
6422
6423 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
6424 reading beyond the passed in buffer length.
6425
6426 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
6427
6428 * tracepoint.c (symbol_list) <required>: Remove.
6429
6430 2015-08-06 Pedro Alves <palves@redhat.com>
6431
6432 * linux-low.c (handle_extended_wait): Set the fork child's suspend
6433 count if stopping and suspending threads.
6434 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
6435 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
6436 (linux_detach): Complete an ongoing step-over.
6437 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
6438 throughout.
6439 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
6440 (linux_wait_1): If passing a signal to the inferior after
6441 finishing a step-over, unsuspend and re-resume all lwps. If we
6442 see a single-step event but the thread should be continuing, don't
6443 pass the trap to gdb.
6444 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
6445 internal_error instead of gdb_assert.
6446 (enqueue_pending_signal): New function.
6447 (check_ptrace_stopped_lwp_gone): Add debug output.
6448 (start_step_over): Use internal_error instead of gdb_assert.
6449 (complete_ongoing_step_over): New function.
6450 (linux_resume_one_thread): Don't resume a suspended thread.
6451 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
6452 it stepping.
6453
6454 2015-08-06 Pedro Alves <palves@redhat.com>
6455
6456 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
6457 (linux_thread_alive): Use lwp_is_marked_dead.
6458 (extended_event_reported): Delete.
6459 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
6460 instead of extended_event_reported.
6461 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
6462 as well.
6463 (lwp_is_marked_dead): New function.
6464 (lwp_running): Use lwp_is_marked_dead.
6465 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
6466 comment.
6467
6468 2015-08-06 Pedro Alves <palves@redhat.com>
6469
6470 * linux-low.c (linux_wait_1): Move fork event output out of the
6471 !report_to_gdb check. Pass event_child->waitstatus to
6472 target_waitstatus_to_string instead of ourstatus.
6473
6474 2015-08-04 Yao Qi <yao.qi@linaro.org>
6475
6476 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
6477 if current_thread is 32 bit.
6478
6479 2015-08-04 Yao Qi <yao.qi@linaro.org>
6480
6481 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
6482 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
6483 * server.c (extended_protocol): Remove "static".
6484 * server.h (extended_protocol): Declare it.
6485
6486 2015-08-04 Yao Qi <yao.qi@linaro.org>
6487
6488 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
6489 both aarch64 and aarch32.
6490 (aarch64_set_pc): Likewise.
6491
6492 2015-08-04 Yao Qi <yao.qi@linaro.org>
6493
6494 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
6495 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
6496 arm-with-neon.xml to srv_xmlfiles.
6497 * linux-aarch64-low.c: Include linux-aarch32-low.h.
6498 (is_64bit_tdesc): New function.
6499 (aarch64_linux_read_description): New function.
6500 (aarch64_arch_setup): Call aarch64_linux_read_description.
6501 (regs_info): Rename to regs_info_aarch64.
6502 (aarch64_regs_info): Return right regs_info.
6503 (initialize_low_arch): Call initialize_low_arch_aarch32.
6504
6505 2015-08-04 Yao Qi <yao.qi@linaro.org>
6506
6507 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
6508 * linux-aarch32-low.c: New file.
6509 * linux-aarch32-low.h: New file.
6510 * linux-arm-low.c (arm_fill_gregset): Move it to
6511 linux-aarch32-low.c.
6512 (arm_store_gregset): Likewise.
6513 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
6514 (arm_store_vfpregset): Call arm_store_vfpregset_num.
6515 (arm_arch_setup): Check if PTRACE_GETREGSET works.
6516 (regs_info): Rename to regs_info_arm.
6517 (arm_regs_info): Return regs_info_aarch32 if
6518 have_ptrace_getregset is 1 and target description is
6519 arm_with_neon or arm_with_vfpv3.
6520 (initialize_low_arch): Don't call init_registers_arm_with_neon.
6521 Call initialize_low_arch_aarch32 instead.
6522
6523 2015-08-04 Yao Qi <yao.qi@linaro.org>
6524
6525 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
6526 * linux-low.c: ... here.
6527 * linux-low.h (have_ptrace_getregset): Declare it.
6528
6529 2015-08-04 Pedro Alves <palves@redhat.com>
6530
6531 * thread-db.c (struct thread_db): Use new typedefs.
6532 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
6533 CHK calls.
6534 (disable_thread_event_reporting): Cast result of dlsym to
6535 destination function pointer type.
6536 (thread_db_mourn): Use td_ta_delete_ftype.
6537
6538 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
6539
6540 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
6541 arch variant.
6542 (CDX_BREAKPOINT): Define for R2.
6543 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
6544 (the_low_target): Add comments.
6545
6546 2015-07-30 Yao Qi <yao.qi@linaro.org>
6547
6548 * linux-arm-low.c (arm_hwcap): Remove it.
6549 (arm_read_description): New local variable arm_hwcap. Don't
6550 set arm_hwcap to zero.
6551
6552 2015-07-30 Yao Qi <yao.qi@linaro.org>
6553
6554 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
6555 Use regcache->tdesc instead.
6556 (arm_store_wmmxregset): Likewise.
6557 (arm_fill_vfpregset): Likewise.
6558 (arm_store_vfpregset): Likewise.
6559
6560 2015-07-30 Yao Qi <yao.qi@linaro.org>
6561
6562 * linux-arm-low.c: Include arch/arm.h.
6563 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
6564 (arm_store_gregset): Likewise.
6565
6566 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
6567
6568 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
6569 ptrace's 4th parameter.
6570
6571 2015-07-27 Yao Qi <yao.qi@linaro.org>
6572
6573 * configure.srv (case aarch64*-*-linux*): Don't set
6574 srv_linux_usrregs.
6575
6576 2015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
6577
6578 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
6579 sys/ptrace.h.
6580 * linux-arm-low.c: Likewise.
6581 * linux-cris-low.c: Likewise.
6582 * linux-crisv32-low.c: Likewise.
6583 * linux-low.c: Likewise.
6584 * linux-m68k-low.c: Likewise.
6585 * linux-mips-low.c: Likewise.
6586 * linux-nios2-low.c: Likewise.
6587 * linux-s390-low.c: Likewise.
6588 * linux-sparc-low.c: Likewise.
6589 * linux-tic6x-low.c: Likewise.
6590 * linux-tile-low.c: Likewise.
6591 * linux-x86-low.c: Likewise.
6592
6593 2015-07-24 Pedro Alves <palves@redhat.com>
6594
6595 * config.in: Regenerate.
6596 * configure: Regenerate.
6597
6598 2015-07-24 Pedro Alves <palves@redhat.com>
6599
6600 * acinclude.m4: Include ../ptrace.m4.
6601 * configure.ac: Call GDB_AC_PTRACE.
6602 * config.in, configure: Regenerate.
6603
6604 2015-07-24 Yao Qi <yao.qi@linaro.org>
6605
6606 * linux-low.c (linux_create_inferior): Remove setting to
6607 proc->priv->new_inferior.
6608 (linux_attach): Likewise.
6609 (linux_low_filter_event): Likewise.
6610 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
6611
6612 2015-07-24 Yao Qi <yao.qi@linaro.org>
6613
6614 * linux-low.c (linux_arch_setup): New function.
6615 (linux_low_filter_event): If proc->tdesc is NULL and
6616 proc->attached is true, call the_low_target.arch_setup.
6617 Otherwise, keep status pending, and return.
6618 (linux_resume_one_lwp_throw): Don't call get_pc if
6619 thread->while_stepping isn't NULL. Don't call
6620 get_thread_regcache if proc->tdesc is NULL.
6621 (need_step_over_p): Return 0 if proc->tdesc is NULL.
6622 (linux_target_ops): Install arch_setup.
6623 * server.c (start_inferior): Call the_target->arch_setup.
6624 * target.h (struct target_ops) <arch_setup>: New field.
6625 (target_arch_setup): New marco.
6626 * lynx-low.c (lynx_target_ops): Update.
6627 * nto-low.c (nto_target_ops): Update.
6628 * spu-low.c (spu_target_ops): Update.
6629 * win32-low.c (win32_target_ops): Update.
6630
6631 2015-07-24 Yao Qi <yao.qi@linaro.org>
6632
6633 * linux-low.c (linux_add_process): Don't set
6634 proc->priv->new_inferior.
6635 (linux_create_inferior): Set proc->priv->new_inferior to 1.
6636 (linux_attach): Likewise.
6637
6638 2015-07-24 Yao Qi <yao.qi@linaro.org>
6639
6640 * server.c (start_inferior): Code refactor.
6641
6642 2015-07-24 Yao Qi <yao.qi@linaro.org>
6643
6644 * server.c (process_serial_event): Set general_thread.
6645
6646 2015-07-21 Yao Qi <yao.qi@linaro.org>
6647
6648 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
6649 aarch64_linux_get_debug_reg_capacity.
6650
6651 2015-07-17 Yao Qi <yao.qi@linaro.org>
6652
6653 * Makefile.in (aarch64-linux-hw-point.o): New rule.
6654 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
6655 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
6656 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
6657 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
6658 (AARCH64_HWP_ALIGNMENT): Likewise.
6659 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
6660 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
6661 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
6662 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
6663 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
6664 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
6665 (struct aarch64_debug_reg_state): Likewise.
6666 (struct arch_lwp_info): Likewise.
6667 (aarch64_align_watchpoint): Likewise.
6668 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
6669 (aarch64_watchpoint_length): Likewise.
6670 (aarch64_point_encode_ctrl_reg): Likewise
6671 (aarch64_point_is_aligned): Likewise.
6672 (aarch64_align_watchpoint): Likewise.
6673 (aarch64_linux_set_debug_regs):
6674 (aarch64_dr_state_insert_one_point): Likewise.
6675 (aarch64_dr_state_remove_one_point): Likewise.
6676 (aarch64_handle_breakpoint): Likewise.
6677 (aarch64_handle_aligned_watchpoint): Likewise.
6678 (aarch64_handle_unaligned_watchpoint): Likewise.
6679 (aarch64_handle_watchpoint): Likewise.
6680
6681 2015-07-17 Yao Qi <yao.qi@linaro.org>
6682
6683 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
6684 and don't aarch64_get_debug_reg_state. All callers update.
6685 (aarch64_handle_aligned_watchpoint): Likewise.
6686 (aarch64_handle_unaligned_watchpoint): Likewise.
6687 (aarch64_handle_watchpoint): Likewise.
6688 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
6689 (aarch64_remove_point): Likewise.
6690
6691 2015-07-17 Yao Qi <yao.qi@linaro.org>
6692
6693 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
6694 debug_printf.
6695 (aarch64_handle_unaligned_watchpoint): Likewise.
6696
6697 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6698
6699 Revert the previous 3 commits:
6700 Move gdb_regex* to common/
6701 Move linux_find_memory_regions_full & co.
6702 gdbserver build-id attribute generator
6703
6704 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6705 Jan Kratochvil <jan.kratochvil@redhat.com>
6706
6707 gdbserver build-id attribute generator.
6708 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
6709 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
6710 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
6711 (find_phdr): New.
6712 (get_dynamic): Use find_pdhr to traverse program headers.
6713 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
6714 (compare_mapping_entry_range, struct find_memory_region_callback_data)
6715 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
6716 (get_hex_build_id): New.
6717 (linux_qxfer_libraries_svr4): Add optional build-id attribute
6718 to reply XML document.
6719
6720 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6721 Jan Kratochvil <jan.kratochvil@redhat.com>
6722
6723 * target.c: Include target/target-utils.h and fcntl.h.
6724 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
6725 (target_fileio_read_stralloc): New functions.
6726
6727 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6728
6729 * Makefile.in (OBS): Add gdb_regex.o.
6730 (gdb_regex.o): New.
6731 * config.in: Rebuilt.
6732 * configure: Rebuilt.
6733
6734 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6735 Jan Kratochvil <jan.kratochvil@redhat.com>
6736
6737 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
6738 * Makefile.in (OBS): Add target-utils.o.
6739 (linux-maps.o, target-utils.o): New.
6740 * configure.srv (srv_linux_obj): Add linux-maps.o.
6741
6742 2015-07-15 Pierre Langlois <pierre.langlois@arm.com>
6743
6744 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
6745 function, return 1.
6746 (the_low_target): Install it.
6747
6748 2015-07-14 Pedro Alves <palves@redhat.com>
6749
6750 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
6751 Instead, ignore ECHILD, and throw an error for other errnos.
6752
6753 2015-07-10 Pedro Alves <palves@redhat.com>
6754
6755 * event-loop.c (struct callback_event) <data>: Change type to
6756 gdb_client_data instance instead of gdb_client_data pointer.
6757 (append_callback_event): Adjust.
6758
6759 2015-07-10 Pierre Langlois <pierre.langlois@arm.com>
6760
6761 * linux-aarch64-low.c: Add comments for each linux_target_ops
6762 method. Remove comments already covered in target_ops and
6763 linux_target_ops definitions.
6764 (the_low_target): Add comments for each unimplemented method.
6765
6766 2015-07-09 Yao Qi <yao.qi@linaro.org>
6767
6768 * linux-aarch64-low.c (aarch64_regmap): Remove.
6769 (aarch64_usrregs_info): Remove.
6770 (regs_info): Set field usrregs to NULL.
6771
6772 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6773
6774 * linux-low.c: Include "rsp-low.h"
6775 (linux_low_encode_pt_config, linux_low_encode_raw): New.
6776 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
6777 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
6778 (handle_btrace_enable_pt): New.
6779 (handle_btrace_general_set): Support "pt".
6780 (handle_btrace_conf_general_set): Support "pt:size".
6781
6782 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
6783
6784 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
6785 Z_PACKET_SW_BP.
6786
6787 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
6788
6789 * linux-aarch64-low.c: Remove comment about endianness.
6790 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
6791 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
6792 memcmp.
6793
6794 2015-06-24 Gary Benson <gbenson@redhat.com>
6795
6796 * linux-i386-ipa.c (stdint.h): Do not include.
6797 * lynx-i386-low.c (stdint.h): Likewise.
6798 * lynx-ppc-low.c (stdint.h): Likewise.
6799 * mem-break.c (stdint.h): Likewise.
6800 * thread-db.c (stdint.h): Likewise.
6801 * tracepoint.c (stdint.h): Likewise.
6802 * win32-low.c (stdint.h): Likewise.
6803
6804 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
6805
6806 * server.c (write_qxfer_response): Update call to
6807 remote_escape_output.
6808
6809 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
6810 Jan Kratochvil <jan.kratochvil@redhat.com>
6811
6812 Merge multiple hex conversions.
6813 * gdbreplay.c (tohex): Rename to 'fromhex'.
6814 (logchar): Use fromhex.
6815
6816 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
6817
6818 * server.c (handle_qxfer_libraries): Set `version' attribute for
6819 <library-list>.
6820
6821 2015-06-10 Gary Benson <gbenson@redhat.com>
6822
6823 * target.h (struct target_ops) <multifs_open>: New field.
6824 <multifs_unlink>: Likewise.
6825 <multifs_readlink>: Likewise.
6826 * linux-low.c (nat/linux-namespaces.h): New include.
6827 (linux_target_ops): Initialize the_target->multifs_open,
6828 the_target->multifs_unlink and the_target->multifs_readlink.
6829 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
6830 * hostio.c (hostio_fs_pid): New static variable.
6831 (hostio_handle_new_gdb_connection): New function.
6832 (handle_setfs): Likewise.
6833 (handle_open): Use the_target->multifs_open as appropriate.
6834 (handle_unlink): Use the_target->multifs_unlink as appropriate.
6835 (handle_readlink): Use the_target->multifs_readlink as
6836 appropriate.
6837 (handle_vFile): Handle vFile:setfs packets.
6838 * server.c (handle_query): Call hostio_handle_new_gdb_connection
6839 after target_handle_new_gdb_connection.
6840
6841 2015-06-10 Gary Benson <gbenson@redhat.com>
6842
6843 * configure.ac (AC_CHECK_FUNCS): Add setns.
6844 * config.in: Regenerate.
6845 * configure: Likewise.
6846 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
6847 (linux-namespaces.o): New rule.
6848 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
6849
6850 2015-06-09 Gary Benson <gbenson@redhat.com>
6851
6852 * hostio.c (handle_open): Process mode argument with
6853 fileio_to_host_mode.
6854
6855 2015-06-01 Yao Qi <yao.qi@linaro.org>
6856
6857 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
6858 * linux-x86-low.c: Likewise.
6859
6860 2015-05-28 Don Breazeal <donb@codesourcery.com>
6861
6862 * linux-low.c (handle_extended_wait): Initialize
6863 thread_info.last_resume_kind for new fork children.
6864
6865 2015-05-15 Pedro Alves <palves@redhat.com>
6866
6867 * target.h (target_handle_new_gdb_connection): Rewrite using if
6868 wrapped in do/while.
6869
6870 2015-05-14 Joel Brobecker <brobecker@adacore.com>
6871
6872 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
6873 * configure, config.in: Regenerate.
6874 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
6875 Declare typedef.
6876
6877 2015-05-12 Don Breazeal <donb@codesourcery.com>
6878
6879 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
6880 PTRACE_EVENT_VFORK_DONE.
6881 (linux_low_ptrace_options, extended_event_reported): Add vfork
6882 events.
6883 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
6884 and "vforkdone" for RSP 'T' Stop Reply Packet.
6885 * server.h (report_vfork_events): Declare
6886 global variable.
6887
6888 2015-05-12 Don Breazeal <donb@codesourcery.com>
6889
6890 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
6891 (the_low_target) <new_fork>: Initialize new member.
6892 * linux-arm-low.c (arm_new_fork): New function.
6893 (the_low_target) <new_fork>: Initialize new member.
6894 * linux-low.c (handle_extended_wait): Call new target function
6895 new_fork.
6896 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
6897 * linux-mips-low.c (mips_add_watchpoint): New function
6898 extracted from mips_insert_point.
6899 (the_low_target) <new_fork>: Initialize new member.
6900 (mips_linux_new_fork): New function.
6901 (mips_insert_point): Call mips_add_watchpoint.
6902 * linux-x86-low.c (x86_linux_new_fork): New function.
6903 (the_low_target) <new_fork>: Initialize new member.
6904
6905 2015-05-12 Don Breazeal <donb@codesourcery.com>
6906
6907 * linux-low.c (handle_extended_wait): Implement return value,
6908 rename argument 'event_child' to 'event_lwp', handle
6909 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
6910 (linux_low_ptrace_options): New function.
6911 (linux_low_filter_event): Call linux_low_ptrace_options,
6912 use different argument fo linux_enable_event_reporting,
6913 use return value from handle_extended_wait.
6914 (extended_event_reported): New function.
6915 (linux_wait_1): Call extended_event_reported and set
6916 status to report fork events.
6917 (linux_write_memory): Add pid to debug message.
6918 (reset_lwp_ptrace_options_callback): New function.
6919 (linux_handle_new_gdb_connection): New function.
6920 (linux_target_ops): Initialize new structure member.
6921 * linux-low.h (struct lwp_info) <waitstatus>: New member.
6922 * lynx-low.c: Initialize new structure member.
6923 * remote-utils.c (prepare_resume_reply): Implement stop reason
6924 "fork" for "T" stop message.
6925 * server.c (handle_query): Call handle_new_gdb_connection.
6926 * server.h (report_fork_events): Declare global flag.
6927 * target.h (struct target_ops) <handle_new_gdb_connection>:
6928 New member.
6929 (target_handle_new_gdb_connection): New macro.
6930 * win32-low.c: Initialize new structure member.
6931
6932 2015-05-12 Don Breazeal <donb@codesourcery.com>
6933
6934 * mem-break.c (APPEND_TO_LIST): Define macro.
6935 (clone_agent_expr): New function.
6936 (clone_one_breakpoint): New function.
6937 (clone_all_breakpoints): New function.
6938 * mem-break.h: Declare new functions.
6939
6940 2015-05-12 Don Breazeal <donb@codesourcery.com>
6941
6942 * linux-low.c (linux_supports_fork_events): New function.
6943 (linux_supports_vfork_events): New function.
6944 (linux_target_ops): Initialize new structure members.
6945 (initialize_low): Call linux_check_ptrace_features.
6946 * lynx-low.c (lynx_target_ops): Initialize new structure
6947 members.
6948 * server.c (report_fork_events, report_vfork_events):
6949 New global flags.
6950 (handle_query): Add new features to qSupported packet and
6951 response.
6952 (captured_main): Initialize new global variables.
6953 * target.h (struct target_ops) <supports_fork_events>:
6954 New member.
6955 <supports_vfork_events>: New member.
6956 (target_supports_fork_events): New macro.
6957 (target_supports_vfork_events): New macro.
6958 * win32-low.c (win32_target_ops): Initialize new structure
6959 members.
6960
6961 2015-05-12 Gary Benson <gbenson@redhat.com>
6962
6963 * server.c (handle_qxfer_exec_file): Use current process
6964 if annex is empty.
6965
6966 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
6967
6968 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
6969 Remove HAVE_PTRACE_GETREGS conditionals.
6970 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
6971 instead of PTRACE_GETREGS and PTRACE_SETREGS.
6972
6973 2015-05-08 Yao Qi <yao.qi@linaro.org>
6974
6975 * linux-low.c (linux_supports_conditional_breakpoints): New
6976 function.
6977 (linux_target_ops): Install new target method.
6978 * lynx-low.c (lynx_target_ops): Install NULL hook for
6979 supports_conditional_breakpoints.
6980 * nto-low.c (nto_target_ops): Likewise.
6981 * spu-low.c (spu_target_ops): Likewise.
6982 * win32-low.c (win32_target_ops): Likewise.
6983 * server.c (handle_query): Check
6984 target_supports_conditional_breakpoints.
6985 * target.h (struct target_ops) <supports_conditional_breakpoints>:
6986 New field.
6987 (target_supports_conditional_breakpoints): New macro.
6988
6989 2015-05-06 Pedro Alves <palves@redhat.com>
6990
6991 PR server/18081
6992 * server.c (start_inferior): If the process exits, mourn it.
6993
6994 2015-04-21 Gary Benson <gbenson@redhat.com>
6995
6996 * hostio.c (fileio_open_flags_to_host): Factored out to
6997 fileio_to_host_openflags in common/fileio.c. Single use
6998 updated.
6999
7000 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
7001
7002 * linux-xtensa-low.c (xtensa_fill_gregset)
7003 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
7004 XCHAL_HAVE_LOOP.
7005
7006 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
7007
7008 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
7009 (regs_info): Replace usrregs pointer with NULL.
7010
7011 2015-04-17 Gary Benson <gbenson@redhat.com>
7012
7013 * target.h (struct target_ops) <pid_to_exec_file>: New field.
7014 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
7015 * server.c (handle_qxfer_exec_file): New function.
7016 (qxfer_packets): Add exec-file entry.
7017 (handle_query): Report qXfer:exec-file:read as supported packet.
7018
7019 2015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
7020
7021 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
7022
7023 2015-04-09 Gary Benson <gbenson@redhat.com>
7024
7025 * hostio-errno.c (errno_to_fileio_error): Remove function.
7026 Update caller to use remote_fileio_to_fio_error.
7027
7028 2015-04-09 Yao Qi <yao.qi@linaro.org>
7029
7030 * linux-low.c (linux_insert_point): Call
7031 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
7032 (linux_remove_point): Call remove_memory_breakpoint if type is
7033 raw_bkpt_type_sw.
7034 * linux-x86-low.c (x86_insert_point): Don't call
7035 insert_memory_breakpoint.
7036 (x86_remove_point): Don't call remove_memory_breakpoint.
7037
7038 2015-04-01 Pedro Alves <palves@redhat.com>
7039 Cleber Rosa <crosa@redhat.com>
7040
7041 * server.c (gdbserver_usage): Reorganize and extend the usage
7042 message.
7043
7044 2015-03-24 Pedro Alves <palves@redhat.com>
7045
7046 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
7047 output. Also dump TRAP_TRACE.
7048 (linux_low_filter_event): In debug output, distinguish a
7049 resume_stop SIGSTOP from a delayed SIGSTOP.
7050
7051 2015-03-24 Gary Benson <gbenson@redhat.com>
7052
7053 * linux-x86-low.c (x86_linux_new_thread): Moved to
7054 nat/x86-linux.c.
7055 (x86_linux_prepare_to_resume): Likewise.
7056
7057 2015-03-24 Gary Benson <gbenson@redhat.com>
7058
7059 * Makefile.in (x86-linux-dregs.o): New rule.
7060 * configure.srv: Add x86-linux-dregs.o to relevant targets.
7061 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
7062 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
7063 (x86_linux_dr_get): Likewise.
7064 (x86_linux_dr_set): Likewise.
7065 (update_debug_registers_callback): Likewise.
7066 (x86_linux_dr_set_addr): Likewise.
7067 (x86_linux_dr_get_addr): Likewise.
7068 (x86_linux_dr_set_control): Likewise.
7069 (x86_linux_dr_get_control): Likewise.
7070 (x86_linux_dr_get_status): Likewise.
7071 (x86_linux_update_debug_registers): Likewise.
7072
7073 2015-03-24 Gary Benson <gbenson@redhat.com>
7074
7075 * linux-x86-low.c (x86_linux_update_debug_registers):
7076 New function, factored out from...
7077 (x86_linux_prepare_to_resume): ...this.
7078
7079 2015-03-24 Gary Benson <gbenson@redhat.com>
7080
7081 * linux-x86-low.c (x86_linux_dr_get): Update comments.
7082 (x86_linux_dr_set): Likewise.
7083 (update_debug_registers_callback): Likewise.
7084 (x86_linux_dr_set_addr): Likewise.
7085 (x86_linux_dr_get_addr): Likewise.
7086 (x86_linux_dr_set_control): Likewise.
7087 (x86_linux_dr_get_control): Likewise.
7088 (x86_linux_dr_get_status): Likewise.
7089 (x86_linux_prepare_to_resume): Likewise.
7090
7091 2015-03-24 Gary Benson <gbenson@redhat.com>
7092
7093 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
7094 Use perror_with_name. Pass string through gettext.
7095 (x86_linux_dr_set): Likewise.
7096
7097 2015-03-24 Gary Benson <gbenson@redhat.com>
7098
7099 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
7100 (x86_linux_dr_set_addr): ...this.
7101 (x86_dr_low_get_addr): Rename to...
7102 (x86_linux_dr_get_addr): ...this.
7103 (x86_dr_low_set_control): Rename to...
7104 (x86_linux_dr_set_control): ...this.
7105 (x86_dr_low_get_control): Rename to...
7106 (x86_linux_dr_get_control): ...this.
7107 (x86_dr_low_get_status): Rename to...
7108 (x86_linux_dr_get_status): ...this.
7109 (x86_dr_low): Update with new function names.
7110
7111 2015-03-24 Gary Benson <gbenson@redhat.com>
7112
7113 * Makefile.in (x86-linux.o): New rule.
7114 * configure.srv: Add x86-linux.o to relevant targets.
7115 * linux-low.c (lwp_set_arch_private_info): New function.
7116 (lwp_arch_private_info): Likewise.
7117 * linux-x86-low.c: Include nat/x86-linux.h.
7118 (arch_lwp_info): Removed structure.
7119 (update_debug_registers_callback):
7120 Use lwp_set_debug_registers_changed.
7121 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
7122 and lwp_set_debug_registers_changed.
7123 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
7124
7125 2015-03-24 Gary Benson <gbenson@redhat.com>
7126
7127 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
7128 * linux-arm-low.c (arm_new_thread): Likewise.
7129 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
7130 * linux-mips-low.c (mips_linux_new_thread): Likewise.
7131 * linux-x86-low.c (x86_linux_new_thread): Likewise.
7132 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
7133
7134 2015-03-24 Gary Benson <gbenson@redhat.com>
7135
7136 * linux-low.c (ptid_of_lwp): New function.
7137 (lwp_is_stopped): Likewise.
7138 (lwp_stop_reason): Likewise.
7139 * linux-x86-low.c (update_debug_registers_callback):
7140 Use lwp_is_stopped.
7141 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
7142 lwp_stop_reason.
7143
7144 2015-03-24 Gary Benson <gbenson@redhat.com>
7145
7146 * linux-low.h (linux_stop_lwp): Remove declaration.
7147
7148 2015-03-24 Gary Benson <gbenson@redhat.com>
7149
7150 * linux-low.h: Include nat/linux-nat.h.
7151 * linux-low.c (iterate_over_lwps_args): New structure.
7152 (iterate_over_lwps_filter): New function.
7153 (iterate_over_lwps): Likewise.
7154 * linux-x86-low.c (update_debug_registers_callback):
7155 Update signature to what iterate_over_lwps expects.
7156 Remove PID check that iterate_over_lwps now performs.
7157 (x86_dr_low_set_addr): Use iterate_over_lwps.
7158 (x86_dr_low_set_control): Likewise.
7159
7160 2015-03-24 Gary Benson <gbenson@redhat.com>
7161
7162 * linux-x86-low.c (x86_debug_reg_state): New function.
7163 (x86_linux_prepare_to_resume): Use the above.
7164
7165 2015-03-24 Gary Benson <gbenson@redhat.com>
7166
7167 * linux-low.c (current_lwp_ptid): New function.
7168 * linux-x86-low.c: Include nat/linux-nat.h.
7169 (x86_dr_low_get_addr): Use current_lwp_ptid.
7170 (x86_dr_low_get_control): Likewise.
7171 (x86_dr_low_get_status): Likewise.
7172
7173 2015-03-20 Pedro Alves <palves@redhat.com>
7174
7175 * tracepoint.c (cmd_qtstatus): Make "str" const.
7176
7177 2015-03-20 Pedro Alves <palves@redhat.com>
7178
7179 * server.c (handle_general_set): Make "req_str" const.
7180
7181 2015-03-19 Pedro Alves <palves@redhat.com>
7182
7183 * linux-low.c (linux_resume_one_lwp): Rename to ...
7184 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
7185 instead call perror_with_name.
7186 (check_ptrace_stopped_lwp_gone): New function.
7187 (linux_resume_one_lwp): Reimplement as wrapper around
7188 linux_resume_one_lwp_throw that swallows errors if the LWP is
7189 gone.
7190
7191 2015-03-19 Pedro Alves <palves@redhat.com>
7192
7193 * linux-low.c (count_events_callback, select_event_lwp_callback):
7194 No longer check whether the thread has resume_stop as last resume
7195 kind.
7196
7197 2015-03-19 Pedro Alves <palves@redhat.com>
7198
7199 * linux-low.c (count_events_callback, select_event_lwp_callback):
7200 Use the lwp's status_pending_p field, not the thread's.
7201
7202 2015-03-19 Pedro Alves <palves@redhat.com>
7203
7204 * linux-low.c (select_event_lwp_callback): Update comments to
7205 no longer mention SIGTRAP.
7206
7207 2015-03-18 Gary Benson <gbenson@redhat.com>
7208
7209 * server.c (handle_query): Do not report vFile:fstat as supported.
7210
7211 2015-03-11 Gary Benson <gbenson@redhat.com>
7212
7213 * hostio.c (sys/types.h): New include.
7214 (sys/stat.h): Likewise.
7215 (common-remote-fileio.h): Likewise.
7216 (handle_fstat): New function.
7217 (handle_vFile): Handle vFile:fstat packets.
7218
7219 2015-03-11 Gary Benson <gbenson@redhat.com>
7220
7221 * configure.ac (AC_CHECK_MEMBERS): Add checks for
7222 struct stat.st_blocks and struct stat.st_blksize.
7223 * configure: Regenerate.
7224 * config.in: Likewise.
7225 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
7226 (OBS): Add common-remote-fileio.o.
7227 (common-remote-fileio.o): New rule.
7228
7229 2015-03-09 Pedro Alves <palves@redhat.com>
7230
7231 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
7232 'struct sockaddr' pointer in 'accept' call.
7233
7234 2015-03-09 Pedro Alves <palves@redhat.com>
7235
7236 Revert:
7237 2015-03-07 Pedro Alves <palves@redhat.com>
7238 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
7239 or <winsock2.h> here. Instead include "gdb_socket.h".
7240 (remote_open): Use union gdb_sockaddr_u.
7241 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
7242 or <winsock2.h> here. Instead include "gdb_socket.h".
7243 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
7244 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
7245 or <sys/un.h>.
7246 (init_named_socket, gdb_agent_helper_thread): Use union
7247 gdb_sockaddr_u.
7248
7249 2015-03-07 Pedro Alves <palves@redhat.com>
7250
7251 * configure.ac (build_warnings): Move
7252 -Wdeclaration-after-statement to the C-specific set.
7253 * configure: Regenerate.
7254
7255 2015-03-07 Pedro Alves <palves@redhat.com>
7256
7257 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
7258 or <winsock2.h> here. Instead include "gdb_socket.h".
7259 (remote_open): Use union gdb_sockaddr_u.
7260 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
7261 or <winsock2.h> here. Instead include "gdb_socket.h".
7262 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
7263 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
7264 or <sys/un.h>.
7265 (init_named_socket, gdb_agent_helper_thread): Use union
7266 gdb_sockaddr_u.
7267
7268 2015-03-07 Pedro Alves <palves@redhat.com>
7269
7270 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
7271 instead.
7272
7273 2015-03-06 Yao Qi <yao.qi@linaro.org>
7274
7275 * linux-aarch64-low.c (aarch64_insert_point): Use
7276 show_debug_regs as a boolean.
7277 (aarch64_remove_point): Likewise.
7278
7279 2015-03-05 Pedro Alves <palves@redhat.com>
7280
7281 * lynx-low.c (lynx_target_ops): Install NULL hooks for
7282 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
7283 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
7284 * nto-low.c (nto_target_ops): Likewise.
7285 * spu-low.c (spu_target_ops): Likewise.
7286 * win32-low.c (win32_target_ops): Likewise.
7287
7288 2015-03-04 Pedro Alves <palves@redhat.com>
7289
7290 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
7291 Decide whether a breakpoint triggered based on the SIGTRAP's
7292 siginfo.si_code.
7293 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
7294 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
7295 (linux_low_filter_event): Check for breakpoints before checking
7296 watchpoints.
7297 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
7298 siginfo.si_code.
7299 (linux_stopped_by_sw_breakpoint)
7300 (linux_supports_stopped_by_sw_breakpoint)
7301 (linux_stopped_by_hw_breakpoint)
7302 (linux_supports_stopped_by_hw_breakpoint): New functions.
7303 (linux_target_ops): Install new target methods.
7304
7305 2015-03-04 Pedro Alves <palves@redhat.com>
7306
7307 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
7308 * server.c (swbreak_feature, hwbreak_feature): New globals.
7309 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
7310 (captured_main): Clear swbreak_feature and hwbreak_feature.
7311 * server.h (swbreak_feature, hwbreak_feature): Declare.
7312 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
7313 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
7314 supports_stopped_by_hw_breakpoint>: New fields.
7315 (target_supports_stopped_by_sw_breakpoint)
7316 (target_stopped_by_sw_breakpoint)
7317 (target_supports_stopped_by_hw_breakpoint)
7318 (target_stopped_by_hw_breakpoint): Declare.
7319
7320 2015-03-04 Pedro Alves <palves@redhat.com>
7321
7322 enum lwp_stop_reason -> enum target_stop_reason
7323 * linux-low.c (check_stopped_by_breakpoint): Adjust.
7324 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
7325 (linux_wait_1, stuck_in_jump_pad_callback)
7326 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
7327 (linux_stopped_by_watchpoint):
7328 * linux-low.h (enum lwp_stop_reason): Delete.
7329 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
7330 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
7331
7332 2015-03-04 Yao Qi <yao.qi@linaro.org>
7333
7334 * Makefile.in (SFILES): Add linux-aarch64-low.c.
7335
7336 2015-03-03 Gary Benson <gbenson@redhat.com>
7337
7338 * hostio.c (handle_vFile): Fix prefix lengths.
7339
7340 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
7341
7342 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
7343 ptr_bits.
7344
7345 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
7346
7347 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
7348 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
7349 (clean): Add "rm -f" for above C files.
7350 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
7351 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
7352 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
7353 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
7354 * linux-s390-low.c (HWCAP_S390_VX): New macro.
7355 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
7356 (init_registers_s390x_vx_linux64)
7357 (init_registers_s390x_tevx_linux64)
7358 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
7359 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
7360 declarations.
7361 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
7362 (s390_store_vxrs_high): New functions.
7363 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
7364 NT_S390_VXRS_HIGH.
7365 (s390_arch_setup): Add logic for selecting one of the new target
7366 descriptions. Activate the new vector regsets if applicable.
7367 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
7368 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
7369 and init_registers_s390x_tevx_linux64.
7370
7371 2015-03-01 Pedro Alves <palves@redhat.com>
7372
7373 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
7374 parameter.
7375
7376 2015-02-27 Pedro Alves <palves@redhat.com>
7377
7378 * linux-x86-low.c (u_debugreg_offset): New function.
7379 (x86_linux_dr_get, x86_linux_dr_set): Use it.
7380
7381 2015-02-27 Pedro Alves <palves@redhat.com>
7382
7383 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
7384 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
7385 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
7386 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
7387 (ps_lsetfpregs, ps_getpid)
7388 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
7389 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
7390 (ps_lsetxregs, ps_plog): Declare.
7391
7392 2015-02-27 Pedro Alves <palves@redhat.com>
7393
7394 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
7395 IP_AGENT_EXPORT_FUNC.
7396 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
7397 IP_AGENT_EXPORT_FUNC.
7398 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
7399 (IP_AGENT_EXPORT): Delete.
7400 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
7401 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
7402 (gdb_trampoline_buffer_error, collecting, gdb_collect)
7403 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
7404 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
7405 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
7406 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
7407 (traceframe_read_count, traceframe_write_count)
7408 (traceframes_created, trace_state_variables, get_raw_reg)
7409 (get_trace_state_variable_value, set_trace_state_variable_value)
7410 (ust_loaded, helper_thread_id, cmd_buf): Use
7411 IPA_SYM_EXPORTED_NAME.
7412 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
7413 (tracepoints) Use IP_AGENT_EXPORT_VAR.
7414 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
7415 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
7416 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
7417 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
7418 EXTERN_C_PUSH/EXTERN_C_POP.
7419 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
7420 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
7421 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
7422 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
7423 (traceframe_write_count, traceframe_read_count)
7424 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
7425 (about_to_request_buffer_space, get_trace_state_variable_value)
7426 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
7427 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
7428 EXTERN_C_PUSH/EXTERN_C_POP.
7429 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
7430 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
7431 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
7432 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
7433 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
7434 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
7435 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
7436 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
7437 Define.
7438 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
7439 (IP_AGENT_EXPORT_VAR_DECL): Define.
7440 (tracing): Declare.
7441 (gdb_agent_get_raw_reg): Declare.
7442
7443 2015-02-27 Tom Tromey <tromey@redhat.com>
7444 Pedro Alves <palves@redhat.com>
7445
7446 Rename symbols whose names are reserved C++ keywords throughout.
7447
7448 2015-02-27 Pedro Alves <palves@redhat.com>
7449
7450 * Makefile.in (COMPILER): New, get it from autoconf.
7451 (CXX): Get from autoconf instead.
7452 (COMPILE.pre): Use COMPILER.
7453 (CC-LD): Rename to ...
7454 (CC_LD): ... this. Use COMPILER.
7455 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
7456 (CXX_FOR_TARGET): Default to g++ instead of gcc.
7457 * acinclude.m4: Include build-with-cxx.m4.
7458 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
7459 Disable -Werror by default if building in C++ mode.
7460 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
7461 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
7462 the C++ compiler. Save/restore CXXFLAGS too.
7463 * configure: Regenerate.
7464
7465 2015-02-27 Pedro Alves <palves@redhat.com>
7466
7467 * acinclude.m4: Include libiberty.m4.
7468 * configure.ac: Call libiberty_INIT.
7469 * config.in, configure: Regenerate.
7470
7471 2015-02-26 Pedro Alves <palves@redhat.com>
7472
7473 * linux-low.c (linux_wait_1): When incrementing the PC past a
7474 program breakpoint always use the_low_target.breakpoint_len as
7475 increment, rather than the maximum between that and
7476 the_low_target.decr_pc_after_break.
7477
7478 2015-02-23 Pedro Alves <palves@redhat.com>
7479
7480 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
7481 thread was doing a step-over; always adjust the PC if
7482 we stepped over a permanent breakpoint.
7483 (linux_wait_1): If we stepped over breakpoint that was on top of a
7484 permanent breakpoint, manually advance the PC past it.
7485
7486 2015-02-23 Pedro Alves <palves@redhat.com>
7487
7488 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
7489 modes.
7490 (x86_fill_gregset, x86_store_gregset): Use it when handling
7491 $orig_eax.
7492
7493 2015-02-20 Pedro Alves <palves@redhat.com>
7494
7495 * thread-db.c: Include "nat/linux-procfs.h".
7496 (thread_db_init): Skip listing new threads if the kernel supports
7497 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
7498
7499 2015-02-20 Pedro Alves <palves@redhat.com>
7500
7501 * linux-low.c (status_pending_p_callback): Use ptid_match.
7502
7503 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
7504
7505 PR breakpoints/16812
7506 * linux-low.c (wstatus_maybe_breakpoint): Remove.
7507 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
7508 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
7509
7510 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
7511
7512 PR breakpoints/15956
7513 * tracepoint.c (cmd_qtinit): Add check for current_thread.
7514
7515 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
7516
7517 * linux-low.c (linux_low_btrace_conf): Print size.
7518 * server.c (handle_btrace_conf_general_set): New.
7519 (hanle_general_set): Call handle_btrace_conf_general_set.
7520 (handle_query): Report Qbtrace-conf:bts:size as supported.
7521
7522 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
7523
7524 * linux-low.c (linux_low_enable_btrace): Update parameters.
7525 (linux_low_btrace_conf): New.
7526 (linux_target_ops)<to_btrace_conf>: Initialize.
7527 * server.c (current_btrace_conf): New.
7528 (handle_btrace_enable): Rename to ...
7529 (handle_btrace_enable_bts): ... this. Pass &current_btrace_conf
7530 to target_enable_btrace. Update comment. Update users.
7531 (handle_qxfer_btrace_conf): New.
7532 (qxfer_packets): Add btrace-conf entry.
7533 (handle_query): Report qXfer:btrace-conf:read as supported packet.
7534 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
7535 (target_ops)<read_btrace_conf>: New.
7536 (target_enable_btrace): Update parameters.
7537 (target_read_btrace_conf): New.
7538
7539 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
7540
7541 * server.c (handle_btrace_general_set): Remove call to
7542 target_supports_btrace.
7543 (supported_btrace_packets): New.
7544 (handle_query): Call supported_btrace_packets.
7545 * target.h: include btrace-common.h.
7546 (btrace_target_info): Removed.
7547 (supports_btrace, target_supports_btrace): Update parameters.
7548
7549 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
7550
7551 * Makefile.in (SFILES): Add common/btrace-common.c.
7552 (OBS): Add common/btrace-common.o.
7553 (btrace-common.o): Add build rules.
7554 * linux-low: Include btrace-common.h.
7555 (linux_low_read_btrace): Use struct btrace_data. Call
7556 btrace_data_init and btrace_data_fini.
7557
7558 2015-02-06 Pedro Alves <palves@redhat.com>
7559
7560 * thread-db.c (find_new_threads_callback): Add debug output.
7561
7562 2015-02-04 Pedro Alves <palves@redhat.com>
7563
7564 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
7565 (resume_stopped_resumed_lwps): New function.
7566 (linux_wait_for_event_filtered): Use it.
7567
7568 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
7569
7570 * Makefile.in (SFILES): Add linux-personality.c.
7571 (linux-personality.o): New rule.
7572 * configure.srv (srv_linux_obj): Add linux-personality.o to the
7573 list of objects to be built.
7574 * linux-low.c: Include nat/linux-personality.h.
7575 (linux_create_inferior): Remove code to disable address space
7576 randomization (moved to ../nat/linux-personality.c). Create
7577 cleanup to disable address space randomization.
7578
7579 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
7580
7581 * Makefile.in (posix-strerror.o): New rule.
7582 (mingw-strerror.o): Likewise.
7583 * configure: Regenerated.
7584 * configure.ac: Source file ../common/common.host. Initialize new
7585 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
7586
7587 2015-01-14 Yao Qi <yao@codesourcery.com>
7588
7589 * Makefile.in (SFILES): Add nat/ppc-linux.c.
7590 (ppc-linux.o): New rule.
7591 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
7592 * configure.ac: AC_CHECK_FUNCS(getauxval).
7593 * config.in: Re-generated.
7594 * configure: Re-generated.
7595 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
7596 ppc64_64bit_inferior_p
7597
7598 2015-01-14 Yao Qi <yao@codesourcery.com>
7599
7600 * linux-ppc-low.c: Include "nat/ppc-linux.h".
7601 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
7602 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
7603 (PT_ORIG_R3, PT_TRAP): Likewise.
7604 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
7605 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
7606 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
7607
7608 2015-01-10 Joel Brobecker <brobecker@adacore.com>
7609
7610 * i387-fp.c (i387_cache_to_xsave): In look over
7611 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
7612 zmmh_low_space field by use of zmmh_high_space.
7613
7614 2015-01-09 Pedro Alves <palves@redhat.com>
7615
7616 * linux-low.c (step_over_bkpt): Move higher up in the file.
7617 (handle_extended_wait): Don't store the stop_pc here.
7618 (get_stop_pc): Adjust comments and rename to ...
7619 (check_stopped_by_breakpoint): ... this. Record whether the LWP
7620 stopped for a software breakpoint or hardware breakpoint.
7621 (thread_still_has_status_pending_p): New function.
7622 (status_pending_p_callback): Use
7623 thread_still_has_status_pending_p. If the event is no longer
7624 interesting, resume the LWP.
7625 (handle_tracepoints): Add assert.
7626 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
7627 (wstatus_maybe_breakpoint): New function.
7628 (cancel_breakpoint): Delete function.
7629 (check_stopped_by_watchpoint): New function, factored out from
7630 linux_low_filter_event.
7631 (lp_status_maybe_breakpoint): Delete function.
7632 (linux_low_filter_event): Remove filter_ptid argument.
7633 Leave thread group exits pending here. Store the LWP's stop PC.
7634 Always leave events pending.
7635 (linux_wait_for_event_filtered): Pull all events out of the
7636 kernel, and leave them all pending.
7637 (count_events_callback, select_event_lwp_callback): Consider all
7638 events.
7639 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
7640 (select_event_lwp): Only give preference to the stepping LWP in
7641 all-stop mode. Adjust comments.
7642 (ignore_event): New function.
7643 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
7644 references to cancel_breakpoints. Adjust to renames. Also give
7645 equal priority to all LWPs that have had events in non-stop mode.
7646 If reporting a software breakpoint event, unadjust the LWP's PC.
7647 (linux_wait): If linux_wait_1 returned an ignored event, retry.
7648 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
7649 Adjust.
7650 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
7651 (resume_status_pending_p): Use thread_still_has_status_pending_p.
7652 (linux_stopped_by_watchpoint): Adjust.
7653 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
7654 * linux-low.h (enum lwp_stop_reason): New.
7655 (struct lwp_info) <stop_pc>: Adjust comment.
7656 <stopped_by_watchpoint>: Delete field.
7657 <stop_reason>: New field.
7658 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
7659 * mem-break.c (software_breakpoint_inserted_here)
7660 (hardware_breakpoint_inserted_here): New function.
7661 * mem-break.h (software_breakpoint_inserted_here)
7662 (hardware_breakpoint_inserted_here): Declare.
7663 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
7664 (cancel_breakpoints): Delete.
7665 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
7666 (upload_fast_traceframes): Remove references to
7667 cancel_breakpoints.
7668
7669 2015-01-09 Pedro Alves <palves@redhat.com>
7670
7671 * thread-db.c (find_new_threads_callback): Ignore thread if the
7672 kernel thread ID is -1.
7673
7674 2015-01-09 Pedro Alves <palves@redhat.com>
7675
7676 * linux-low.c (linux_attach_fail_reason_string): Move to
7677 nat/linux-ptrace.c, and rename.
7678 (linux_attach_lwp): Update comment.
7679 (attach_proc_task_lwp_callback): New function.
7680 (linux_attach): Adjust to rename and use
7681 linux_proc_attach_tgid_threads.
7682 (linux_attach_fail_reason_string): Delete declaration.
7683
7684 2015-01-01 Joel Brobecker <brobecker@adacore.com>
7685
7686 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
7687 * server.c (gdbserver_version): Likewise.
7688
7689 2014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
7690
7691 * remote-utils.c: Include ctype.h.
7692 (input_interrupt): Explicitly handle the case when the char
7693 received is the NUL byte. Improve the printing of non-ASCII
7694 characters.
7695
7696 2014-12-16 Joel Brobecker <brobecker@adacore.com>
7697
7698 * linux-low.c (linux_low_filter_event): Update call to
7699 linux_enable_event_reporting following the addition of
7700 a new parameter to that function.
7701
7702 2014-12-16 Catalin Udma <catalin.udma@freescale.com>
7703
7704 PR server/17457
7705 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
7706 (AARCH64_FPCR_REGNO): Likewise.
7707 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
7708 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
7709 (aarch64_store_fpregset): Likewise.
7710
7711 2014-12-15 Joel Brobecker <brobecker@adacore.com>
7712
7713 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
7714 Remove FIXME comment about assumption about N.
7715
7716 2014-12-13 Joel Brobecker <brobecker@adacore.com>
7717
7718 * configure.ac: If large-file support is disabled in GDBserver,
7719 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
7720 * configure: Regenerate.
7721
7722 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
7723
7724 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
7725 warning upon ENODATA from ptrace.
7726 * linux-s390-low.c (s390_store_tdb): New.
7727 (s390_regsets): Add regset for NT_S390_TDB.
7728
7729 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
7730
7731 * linux-low.c (regsets_store_inferior_registers): Skip regsets
7732 without a fill_function.
7733 * linux-s390-low.c (s390_fill_last_break): Remove.
7734 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
7735 (s390_arch_setup): Use regset's size instead of fill_function for
7736 loop end condition.
7737
7738 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
7739
7740 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
7741 the regset's store function when ptrace returned an error.
7742 * regcache.c (get_thread_regcache): Invalidate register cache
7743 before fetching inferior's registers.
7744
7745 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
7746
7747 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
7748 while-loop as for-loop.
7749 (regsets_store_inferior_registers): Likewise.
7750
7751 2014-11-28 Yao Qi <yao@codesourcery.com>
7752
7753 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
7754 * config.in, configure: Re-generate.
7755 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
7756 is defined.
7757
7758 2014-11-21 Yao Qi <yao@codesourcery.com>
7759
7760 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
7761 (AC_CHECK_HEADERS): Remove malloc.h.
7762 * configure: Re-generated.
7763 * config.in: Re-generated.
7764 * server.h: Don't include alloca.h and malloc.h.
7765 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
7766 Don't include malloc.h.
7767
7768 2014-11-17 Joel Brobecker <brobecker@adacore.com>
7769
7770 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
7771 corresponding ERRNO check in same block.
7772
7773 2014-11-12 Pedro Alves <palves@redhat.com>
7774
7775 * server.c (cont_thread): Update comment.
7776 (start_inferior, attach_inferior): No longer clear cont_thread.
7777 (handle_v_cont): No longer set cont_thread.
7778 (captured_main): Clear cont_thread each time a GDB connects.
7779
7780 2014-11-12 Pedro Alves <palves@redhat.com>
7781
7782 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
7783 thread, and don't resume all threads if the Hc thread has exited.
7784
7785 2014-11-12 Pedro Alves <palves@redhat.com>
7786
7787 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
7788 the process group instead of to a specific LWP.
7789
7790 2014-10-15 Pedro Alves <palves@redhat.com>
7791
7792 PR server/17487
7793 * win32-arm-low.c (arm_set_thread_context): Remove current_event
7794 parameter.
7795 (arm_set_thread_context): Delete.
7796 (the_low_target): Adjust.
7797 * win32-i386-low.c (debug_registers_changed)
7798 (debug_registers_used): Delete.
7799 (update_debug_registers_callback): New function.
7800 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
7801 needing to update their debug registers.
7802 (win32_get_current_dr): New function.
7803 (x86_dr_low_get_addr, x86_dr_low_get_control)
7804 (x86_dr_low_get_status): Fetch the debug register from the thread
7805 record's context.
7806 (i386_initial_stuff): Adjust.
7807 (i386_get_thread_context): Remove current_event parameter. Don't
7808 clear debug_registers_changed nor copy DR values to
7809 debug_reg_state.
7810 (i386_set_thread_context): Delete.
7811 (i386_prepare_to_resume): New function.
7812 (i386_thread_added): Mark the thread as needing to update irs
7813 debug registers.
7814 (the_low_target): Remove i386_set_thread_context and install
7815 i386_prepare_to_resume.
7816 * win32-low.c (win32_get_thread_context): Adjust.
7817 (win32_set_thread_context): Use SetThreadContext
7818 directly.
7819 (win32_prepare_to_resume): New function.
7820 (win32_require_context): New function, factored out from ...
7821 (thread_rec): ... this.
7822 (continue_one_thread): Call win32_prepare_to_resume on each thread
7823 we're about to continue.
7824 (win32_resume): Call win32_prepare_to_resume on the event thread.
7825 * win32-low.h (struct win32_thread_info)
7826 <debug_registers_changed>: New field.
7827 (struct win32_target_ops): Change prototype of set_thread_context,
7828 delete set_thread_context and add prepare_to_resume.
7829 (win32_require_context): New declaration.
7830
7831 2014-10-08 Gary Benson <gbenson@redhat.com>
7832
7833 * server.h: Do not include common-exceptions.h.
7834
7835 2014-10-08 Gary Benson <gbenson@redhat.com>
7836
7837 * server.h: Do not include cleanups.h.
7838
7839 2014-09-30 James Hogan <james.hogan@imgtec.com>
7840
7841 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
7842 mips64-dsp-linux.c.
7843
7844 2014-09-23 Yao Qi <yao@codesourcery.com>
7845
7846 * linux-low.c (lp_status_maybe_breakpoint): New function.
7847 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
7848 (count_events_callback): Likewise.
7849 (select_event_lwp_callback): Likewise.
7850 (cancel_breakpoints_callback): Likewise.
7851
7852 2014-09-19 Don Breazeal <donb@codesourcery.com>
7853
7854 * linux-low.c (handle_extended_wait): Call
7855 linux_ptrace_get_extended_event.
7856 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
7857 linux_is_extended_waitstatus.
7858
7859 2014-09-16 Joel Brobecker <brobecker@adacore.com>
7860
7861 * Makefile.in (CPPFLAGS): Define.
7862 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
7863 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
7864
7865 2014-09-16 Gary Benson <gbenson@redhat.com>
7866
7867 * inferiors.h (current_inferior): Renamed as...
7868 (current_thread): New variable. All uses updated.
7869 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
7870 (maybe_move_out_of_jump_pad): Likewise.
7871 (cancel_breakpoint): Likewise.
7872 (linux_low_filter_event): Likewise.
7873 (wait_for_sigstop): Likewise.
7874 (linux_resume_one_lwp): Likewise.
7875 (need_step_over_p): Likewise.
7876 (start_step_over): Likewise.
7877 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
7878 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
7879 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
7880 and save_inferior as saved_thread.
7881 * regcache.c (get_thread_regcache): Renamed saved_inferior as
7882 saved_thread.
7883 (regcache_invalidate_thread): Likewise.
7884 * remote-utils.c (prepare_resume_reply): Likewise.
7885 * thread-db.c (thread_db_get_tls_address): Likewise.
7886 (disable_thread_event_reporting): Likewise.
7887 (remove_thread_event_breakpoints): Likewise.
7888 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
7889 as saved_thread.
7890 * target.h (set_desired_inferior): Renamed as...
7891 (set_desired_thread): New declaration. All uses updated.
7892 * server.c (myresume): Updated comment to reference thread instead
7893 of inferior.
7894 (handle_serial_event): Likewise.
7895 (handle_target_event): Likewise.
7896
7897 2014-09-12 Tom Tromey <tromey@redhat.com>
7898 Gary Benson <gbenson@redhat.com>
7899
7900 * regcache.h: Include common-regcache.h.
7901 (regcache_read_pc): Don't declare.
7902 * regcache.c (get_thread_regcache_for_ptid): New function.
7903
7904 2014-09-11 Tom Tromey <tromey@redhat.com>
7905 Gary Benson <gbenson@redhat.com>
7906
7907 * symbol.c: New file.
7908 * Makefile.in (SFILES): Add symbol.c.
7909 (OBS): Add symbol.o.
7910
7911 2014-09-11 Gary Benson <gbenson@redhat.com>
7912
7913 * target.c (target_stop_ptid, target_continue_ptid): New
7914 functions.
7915
7916 2014-09-11 Tom Tromey <tromey@redhat.com>
7917 Gary Benson <gbenson@redhat.com>
7918
7919 * target.h: Include target/target.h.
7920 * target.c (target_read_memory, target_read_uint32)
7921 (target_write_memory): New functions.
7922
7923 2014-09-11 Gary Benson <gbenson@redhat.com>
7924
7925 * server.h (debug_hw_points): Don't declare.
7926 * server.c (debug_hw_points): Don't define. Replace all uses
7927 with show_debug_regs.
7928 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
7929 all uses with show_debug_regs.
7930
7931 2014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
7932
7933 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
7934 endianness into account.
7935 (ppc_supply_ptrace_register): Likewise.
7936
7937 2014-09-03 James Hogan <james.hogan@imgtec.com>
7938
7939 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
7940 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
7941
7942 2014-09-03 Gary Benson <gbenson@redhat.com>
7943
7944 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
7945 ALL_DEBUG_ADDRESS_REGISTERS.
7946
7947 2014-09-02 Gary Benson <gbenson@redhat.com>
7948
7949 * i386-low.h: Renamed as...
7950 * x86-low.h: New file. All type, function and variable name
7951 prefixes changed from "i386_" to "x86_". All references updated.
7952 * i386-low.c: Renamed as...
7953 * x86-low.c: New file. All type, function and variable name
7954 prefixes changed from "i386_" to "x86_". All references updated.
7955
7956 2014-09-02 Gary Benson <gbenson@redhat.com>
7957
7958 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
7959 (x86_linux_new_thread): Likewise.
7960
7961 2014-08-29 Gary Benson <gbenson@redhat.com>
7962
7963 * server.h (setjmp.h): Do not include.
7964 (toplevel): Do not declare.
7965 (common-exceptions.h): Include.
7966 (cleanups.h): Likewise.
7967 * server.c (toplevel): Do not define.
7968 (exit_code): New static global.
7969 (detach_or_kill_for_exit_cleanup): New function.
7970 (main): New function. Original main renamed to...
7971 (captured_main): New function.
7972 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
7973
7974 2014-08-29 Gary Benson <gbenson@redhat.com>
7975
7976 * Makefile.in (SFILES): Add common/common-exceptions.c.
7977 (OBS): Add common-exceptions.o.
7978 (common-exceptions.o): New rule.
7979 * utils.c (prepare_to_throw_exception): New function.
7980
7981 2014-08-29 Gary Benson <gbenson@redhat.com>
7982
7983 * config.in: Regenerate.
7984 * configure: Likewise.
7985
7986 2014-08-29 Gary Benson <gbenson@redhat.com>
7987
7988 * Makefile.in (SFILES): Add common/cleanups.c.
7989 (OBS): cleanups.o.
7990 (cleanups.o): New rule.
7991
7992 2014-08-29 Gary Benson <gbenson@redhat.com>
7993
7994 * utils.c (internal_vwarning): New function.
7995
7996 2014-08-28 Gary Benson <gbenson@redhat.com>
7997
7998 * utils.h (fatal): Remove declaration.
7999 * utils.c (fatal): Remove function.
8000
8001 2014-08-28 Gary Benson <gbenson@redhat.com>
8002
8003 * tracepoint.c (gdb_agent_init): Replace fatal with
8004 perror_with_name.
8005 (initialize_tracepoint): Likewise.
8006
8007 2014-08-28 Gary Benson <gbenson@redhat.com>
8008
8009 * remote-utils.c (remote_prepare): Replace fatal with error.
8010
8011 2014-08-28 Gary Benson <gbenson@redhat.com>
8012
8013 * linux-low.c (linux_async): Replace fatal with warning.
8014 Tidy up and return.
8015 (linux_start_non_stop): Return -1 if linux_async failed.
8016
8017 2014-08-28 Gary Benson <gbenson@redhat.com>
8018
8019 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
8020 gdb_assert.
8021 (i386_dr_low_get_addr): Remove vague comment.
8022 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
8023 gdb_assert.
8024
8025 2014-08-28 Gary Benson <gbenson@redhat.com>
8026
8027 * inferiors.c (get_thread_process): Replace check with gdb_assert.
8028 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
8029 internal_error.
8030 (linux_resume_one_lwp): Likewise.
8031 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
8032 gdb_assert.
8033 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
8034 with internal_error.
8035 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
8036 (init_register_cache): Replace fatal with gdb_assert_not_reached.
8037 (find_register_by_name): Replace fatal with internal_error.
8038 (find_regno): Likewise.
8039 * tdesc.c (init_target_desc): Replace check with gdb_assert.
8040 * thread-db.c (thread_db_create_event): Likewise.
8041 (thread_db_load_search): Likewise.
8042 (try_thread_db_load_1): Likewise.
8043 * tracepoint.c (get_jump_space_head): Replace fatal with
8044 internal_error.
8045 (claim_trampoline_space): Likewise.
8046 (have_fast_tracepoint_trampoline_buffer): Likewise.
8047 (cmd_qtstart): Likewise.
8048 (stop_tracing): Likewise.
8049 (fast_tracepoint_collecting): Likewise.
8050 (target_malloc): Likewise.
8051 (download_tracepoint): Likewise.
8052 (download_trace_state_variables): Replace check with gdb_assert.
8053 (upload_fast_traceframes): Replace fatal with internal_error.
8054
8055 2014-08-19 Tom Tromey <tromey@redhat.com>
8056 Gary Benson <gbenson@redhat.com>
8057
8058 * Makefile.in (SFILES): Add common/common-debug.c.
8059 (OBS): Add common-debug.o.
8060 (common-debug.o): New rule.
8061 * debug.h (debug_printf): Don't declare.
8062 * debug.c (debug_printf): Renamed and rewritten as...
8063 (debug_vprintf): New function.
8064
8065 2014-08-19 Gary Benson <gbenson@redhat.com>
8066
8067 * utils.h: Do not include print-utils.h.
8068
8069 2014-08-19 Tom Tromey <tromey@redhat.com>
8070 Gary Benson <gbenson@redhat.com>
8071
8072 * server.h: Add static assertion.
8073 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
8074
8075 2014-08-19 Tom Tromey <tromey@redhat.com>
8076 Gary Benson <gbenson@redhat.com>
8077
8078 * Makefile.in (SFILES): Add common/errors.c.
8079 (OBS): Add errors.o.
8080 (IPA_OBS): Add errors-ipa.o.
8081 (errors.o): New rule.
8082 (errors-ipa.o): Likewise.
8083 * utils.h (perror_with_name, error, warning): Don't declare.
8084 * utils.c (warning): Renamed and rewritten as...
8085 (vwarning): New function.
8086 (error): Renamed and rewritten as...
8087 (verror): New function.
8088 (internal_error): Renamed and rewritten as...
8089 (internal_verror): New function.
8090
8091 2014-08-07 Gary Benson <gbenson@redhat.com>
8092
8093 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
8094 * configure: Regenerate.
8095 * config.in: Likewise.
8096 * server.h: Do not include errno.h.
8097 * event-loop.c: Likewise.
8098 * hostio-errno.c: Likewise.
8099 * linux-low.c: Likewise.
8100 * remote-utils.c: Likewise.
8101 * spu-low.c: Likewise.
8102 * utils.c: Likewise.
8103 * gdbreplay.c: Unconditionally include errno.h.
8104
8105 2014-08-07 Gary Benson <gbenson@redhat.com>
8106
8107 * server.h: Do not include string.h.
8108 * event-loop.c: Likewise.
8109 * linux-low.c: Likewise.
8110 * regcache.c: Likewise.
8111 * remote-utils.c: Likewise.
8112 * spu-low.c: Likewise.
8113 * utils.c: Likewise.
8114
8115 2014-08-07 Gary Benson <gbenson@redhat.com>
8116
8117 * server.h: Do not include gdb_assert.h.
8118
8119 2014-08-07 Gary Benson <gbenson@redhat.com>
8120
8121 * server.h: Do not include common-utils.h.
8122
8123 2014-08-07 Gary Benson <gbenson@redhat.com>
8124
8125 * server.h: Do not include ptid.h.
8126 * notif.h: Likewise.
8127
8128 2014-08-07 Gary Benson <gbenson@redhat.com>
8129
8130 * server.h: Do not include gdb_locale.h.
8131
8132 2014-08-07 Gary Benson <gbenson@redhat.com>
8133
8134 * server.h: Do not include gdb/signals.h.
8135 * win32-low.c: Likewise.
8136
8137 2014-08-07 Gary Benson <gbenson@redhat.com>
8138
8139 * server.h: Do not include pathmax.h.
8140
8141 2014-08-07 Gary Benson <gbenson@redhat.com>
8142
8143 * server.h: Do not include libiberty.h.
8144 * linux-bfin-low.c: Likewise.
8145
8146 2014-08-07 Gary Benson <gbenson@redhat.com>
8147
8148 * server.h: Do not include ansidecl.h.
8149
8150 2014-08-07 Gary Benson <gbenson@redhat.com>
8151
8152 * linux-x86-low.c: Do not include stddef.h.
8153 * lynx-ppc-low.c: Likewise.
8154 * tracepoint.c: Likewise.
8155
8156 2014-08-07 Gary Benson <gbenson@redhat.com>
8157
8158 * server.h: Do not include stdarg.h.
8159 * nto-low.c: Likewise.
8160
8161 2014-08-07 Gary Benson <gbenson@redhat.com>
8162
8163 * server.h: Do not include stdlib.h.
8164 * inferiors.c: Likewise.
8165 * linux-low.c: Likewise.
8166 * regcache.c: Likewise.
8167 * spu-low.c: Likewise.
8168 * tracepoint.c: Likewise.
8169 * utils.c: Likewise.
8170
8171 2014-08-07 Gary Benson <gbenson@redhat.com>
8172
8173 * server.h: Do not include stdio.h.
8174 * linux-low.c: Likewise.
8175 * remote-utils.c: Likewise.
8176 * spu-low.c: Likewise.
8177 * utils.c: Likewise.
8178 * wincecompat.c: Likewise.
8179
8180 2014-08-06 Gary Benson <gbenson@redhat.com>
8181
8182 * regcache.c (init_register_cache): Move conditionals inside if.
8183
8184 2014-08-06 Gary Benson <gbenson@redhat.com>
8185
8186 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
8187
8188 2014-07-31 Gary Benson <gbenson@redhat.com>
8189
8190 * ax.h: Do not include server.h.
8191 * gdbthread.h: Likewise.
8192 * lynx-low.h: Likewise.
8193 * notif.h: Likewise.
8194
8195 2014-07-30 Gary Benson <gbenson@redhat.com>
8196
8197 * server.h: Include common-defs.h.
8198 Do not include config.h or build-gnulib-gdbserver/config.h.
8199
8200 2014-07-30 Gary Benson <gbenson@redhat.com>
8201
8202 * hostio-errno.c: Move server.h to top of includes list.
8203 * inferiors.c: Likewise.
8204 * linux-x86-low.c: Likewise.
8205 * notif.c: Include server.h.
8206
8207 2014-07-24 Tom Tromey <tromey@redhat.com>
8208 Gary Benson <gbenson@redhat.com>
8209
8210 * server.h (CORE_ADDR): Now unsigned.
8211
8212 2014-07-16 Pedro Alves <palves@redhat.com>
8213
8214 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
8215
8216 2014-07-15 Pedro Alves <palves@redhat.com>
8217
8218 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
8219 copy.
8220
8221 2014-07-11 Pedro Alves <palves@redhat.com>
8222
8223 * linux-low.c (kill_wait_lwp): New function, based on
8224 kill_one_lwp_callback, but use my_waitpid directly.
8225 (kill_one_lwp_callback, linux_kill): Use it.
8226
8227 2014-06-23 Pedro Alves <palves@redhat.com>
8228
8229 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
8230 before setting DR0..DR3.
8231
8232 2014-06-20 Gary Benson <gbenson@redhat.com>
8233
8234 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
8235 * configure: Regenerated.
8236 * config.in: Likewise.
8237
8238 2014-06-20 Gary Benson <gbenson@redhat.com>
8239
8240 * Makefile.in (SFILES): Update locations for files moved
8241 from common to nat.
8242 (object file files): Reordered.
8243
8244 2014-06-20 Gary Benson <gbenson@redhat.com>
8245
8246 * i386-low.h (i386_dr_low_can_set_addr): Removed.
8247 (i386_dr_low_set_addr): Likewise.
8248 (i386_dr_low_get_addr): Likewise.
8249 (i386_dr_low_can_set_control): Likewise.
8250 (i386_dr_low_set_control): Likewise.
8251 (i386_dr_low_get_control): Likewise.
8252 (i386_dr_low_get_status): Likewise.
8253 (i386_get_debug_register_length): Likewise.
8254 * linux-x86-low.c (i386_dr_low_set_addr):
8255 Changed signature. Made static.
8256 (i386_dr_low_get_addr): Likewise.
8257 (i386_dr_low_set_control): Likewise.
8258 (i386_dr_low_get_control): Likewise.
8259 (i386_dr_low_get_status): Likewise.
8260 (i386_dr_low): New global variable.
8261 * win32-i386-low.c (i386_dr_low_set_addr):
8262 Changed signature. Made static.
8263 (i386_dr_low_get_addr): Likewise.
8264 (i386_dr_low_set_control): Likewise.
8265 (i386_dr_low_get_control): Likewise.
8266 (i386_dr_low_get_status): Likewise.
8267 (i386_dr_low): New global variable.
8268
8269 2014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
8270
8271 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
8272 * Makefile.in (AR, AR_FLAGS): Define.
8273 * configure: Regenerate.
8274
8275 2014-06-19 Gary Benson <gbenson@redhat.com>
8276
8277 * Makefile.in (i386-dregs.o): New rule.
8278 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
8279 * i386-low.c (target.h): Remove include.
8280 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
8281 (DR_CONTROL_SHIFT): Likewise.
8282 (DR_CONTROL_SIZE): Likewise.
8283 (DR_RW_EXECUTE): Likewise.
8284 (DR_RW_WRITE): Likewise.
8285 (DR_RW_READ): Likewise.
8286 (DR_RW_IORW): Likewise.
8287 (DR_LEN_1): Likewise.
8288 (DR_LEN_2): Likewise.
8289 (DR_LEN_4): Likewise.
8290 (DR_LEN_8): Likewise.
8291 (DR_LOCAL_ENABLE_SHIFT): Likewise.
8292 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
8293 (DR_ENABLE_SIZE): Likewise.
8294 (DR_LOCAL_SLOWDOWN): Likewise.
8295 (DR_GLOBAL_SLOWDOWN): Likewise.
8296 (DR_CONTROL_RESERVED): Likewise.
8297 (I386_DR_CONTROL_MASK): Likewise.
8298 (I386_DR_VACANT): Likewise.
8299 (I386_DR_LOCAL_ENABLE): Likewise.
8300 (I386_DR_GLOBAL_ENABLE): Likewise.
8301 (I386_DR_DISABLE): Likewise.
8302 (I386_DR_SET_RW_LEN): Likewise.
8303 (I386_DR_GET_RW_LEN): Likewise.
8304 (I386_DR_WATCH_HIT): Likewise.
8305 (i386_wp_op_t): Likewise.
8306 (i386_show_dr): Likewise.
8307 (i386_length_and_rw_bits): Likewise.
8308 (i386_insert_aligned_watchpoint): Likewise.
8309 (i386_remove_aligned_watchpoint): Likewise.
8310 (i386_handle_nonaligned_watchpoint): Likewise.
8311 i386_update_inferior_debug_regs(): Likewise.
8312 (i386_dr_insert_watchpoint): Likewise.
8313 (i386_dr_remove_watchpoint): Likewise.
8314 (i386_dr_region_ok_for_watchpoint): Likewise.
8315 (i386_dr_stopped_data_address): Likewise.
8316 (i386_dr_stopped_by_watchpoint): Likewise.
8317
8318 2014-06-19 Gary Benson <gbenson@redhat.com>
8319
8320 * i386-low.c (i386_dr_show): Renamed to
8321 i386_show_dr and made static. All uses updated.
8322 (i386_dr_length_and_rw_bits): Renamed to
8323 i386_length_and_rw_bits and made static.
8324 All uses updated.
8325 (i386_dr_insert_aligned_watchpoint): Renamed to
8326 i386_insert_aligned_watchpoint and made static.
8327 All uses updated.
8328 (i386_dr_remove_aligned_watchpoint): Renamed to
8329 i386_remove_aligned_watchpoint and made static.
8330 All uses updated.
8331 (i386_dr_update_inferior_debug_regs): Renamed to
8332 i386_update_inferior_debug_regs and made static.
8333 All uses updated.
8334
8335 2014-06-18 Gary Benson <gbenson@redhat.com>
8336
8337 * i386-low.h (i386_dr_low_can_set_addr): New macro.
8338 (i386_dr_low_can_set_control): Likewise.
8339 (i386_get_debug_register_length): Likewise.
8340 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
8341 (i386_dr_low_can_set_control): Likewise.
8342 (i386_get_debug_register_length): Likewise.
8343
8344 2014-06-17 Gary Benson <gbenson@redhat.com>
8345
8346 * i386-low.h (i386-dregs.h): New include.
8347 (DR_FIRSTADDR): Now in i386-dregs.h.
8348 (DR_LASTADDR): Likewise.
8349 (DR_NADDR): Likewise.
8350 (DR_STATUS): Likewise.
8351 (DR_CONTROL): Likewise.
8352 (i386_debug_reg_state): Likewise.
8353 (i386_dr_insert_watchpoint): Likewise.
8354 (i386_dr_remove_watchpoint): Likewise.
8355 (i386_dr_region_ok_for_watchpoint): Likewise.
8356 (i386_dr_stopped_data_address): Likewise.
8357 (i386_dr_stopped_by_watchpoint): Likewise.
8358 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
8359
8360 2014-06-18 Gary Benson <gbenson@redhat.com>
8361
8362 * i386-low.h (i386_low_insert_watchpoint): Renamed to
8363 i386_dr_insert_watchpoint.
8364 (i386_low_remove_watchpoint): Renamed to
8365 i386_dr_remove_watchpoint.
8366 (i386_low_region_ok_for_watchpoint): Renamed to
8367 i386_dr_region_ok_for_watchpoint.
8368 (i386_low_stopped_data_address): Renamed to
8369 i386_dr_stopped_data_address.
8370 (i386_low_stopped_by_watchpoint): Renamed to
8371 i386_dr_stopped_by_watchpoint.
8372 * i386-low.c (i386_show_dr): Renamed to
8373 i386_dr_show and made nonstatic. All uses updated.
8374 (i386_length_and_rw_bits): Renamed to
8375 i386_dr_length_and_rw_bits and made nonstatic.
8376 All uses updated.
8377 (i386_insert_aligned_watchpoint): Renamed to
8378 i386_dr_insert_aligned_watchpoint and made nonstatic.
8379 All uses updated.
8380 (i386_remove_aligned_watchpoint): Renamed to
8381 i386_dr_remove_aligned_watchpoint and made nonstatic.
8382 All uses updated.
8383 (i386_update_inferior_debug_regs): Renamed to
8384 i386_dr_update_inferior_debug_regs and made nonstatic.
8385 All uses updated.
8386 (i386_low_insert_watchpoint): Renamed to
8387 i386_dr_insert_watchpoint. All uses updated.
8388 (i386_low_remove_watchpoint): Renamed to
8389 i386_dr_remove_watchpoint. All uses updated.
8390 (i386_low_region_ok_for_watchpoint): Renamed to
8391 i386_dr_region_ok_for_watchpoint. All uses updated.
8392 (i386_low_stopped_data_address): Renamed to
8393 i386_dr_stopped_data_address. All uses updated.
8394 (i386_low_stopped_by_watchpoint): Renamed to
8395 i386_dr_stopped_by_watchpoint. All uses updated.
8396
8397 2014-06-18 Gary Benson <gbenson@redhat.com>
8398
8399 * i386-low.c (i386_dr_low_can_set_addr): New macro.
8400 (i386_dr_low_can_set_control): Likewise.
8401 (i386_insert_aligned_watchpoint): New check.
8402
8403 2014-06-18 Gary Benson <gbenson@redhat.com>
8404
8405 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
8406 Renamed to state.
8407
8408 2014-06-18 Gary Benson <gbenson@redhat.com>
8409
8410 * i386-low.c (i386_length_and_rw_bits): Use internal_error
8411 instead of fatal and error.
8412 (i386_handle_nonaligned_watchpoint): Likewise.
8413
8414 2014-06-18 Gary Benson <gbenson@redhat.com>
8415
8416 * i386-low.c (i386_get_debug_register_length): New macro.
8417 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
8418 (i386_show_dr): Use debug_printf instead of fprintf. Use
8419 phex to format values.
8420
8421 2014-06-18 Gary Benson <gbenson@redhat.com>
8422
8423 * i386-low.h: Comment changes.
8424 * i386-low.c: Likewise.
8425
8426 2014-06-18 Gary Benson <gbenson@redhat.com>
8427
8428 * i386-low.c: Whitespace changes.
8429
8430 2014-06-12 Tom Tromey <tromey@redhat.com>
8431
8432 * utils.c (freeargv): Remove.
8433
8434 2014-06-12 Tom Tromey <tromey@redhat.com>
8435
8436 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
8437 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
8438 (parse_debug_format_options): Likewise.
8439 (gdbserver_usage): Likewise.
8440 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
8441 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
8442 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
8443 against libiberty.
8444 ($(LIBGNU)): Depend on libiberty.
8445 (all-lib): Recurse into all subdirs.
8446 (install-only): Invoke "install" target in subdirs.
8447 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
8448 targets.
8449 * configure: Rebuild.
8450 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
8451 for vasprintf, vsnprintf, or gettimeofday.
8452 * configure.srv: Don't add safe-ctype.o or lbasename.o to
8453 srv_tgtobj.
8454
8455 2014-06-05 Joel Brobecker <brobecker@adacore.com>
8456
8457 * development.sh: Delete.
8458 * Makefile.in (config.status): Adjust dependency on development.sh.
8459 * configure.ac: Adjust development.sh source call.
8460 * configure: Regenerate.
8461
8462 2014-06-02 Pedro Alves <palves@redhat.com>
8463
8464 * ax.c (gdb_free_agent_expr): New function.
8465 * ax.h (gdb_free_agent_expr): New declaration.
8466 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
8467 list.
8468 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
8469 static.
8470 (clear_breakpoint_conditions_and_commands): New function.
8471 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
8472 (clear_breakpoint_conditions_and_commands): New declaration.
8473
8474 2014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8475
8476 * linux-aarch64-low.c (asm/ptrace.h): Include.
8477
8478 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8479
8480 Fix TLS access for -static -pthread.
8481 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
8482 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
8483 (thread_db_load_search, try_thread_db_load_1): Initialize it.
8484
8485 2014-05-20 Pedro Alves <palves@redhat.com>
8486
8487 * linux-aarch64-low.c (aarch64_insert_point)
8488 (aarch64_remove_point): No longer check whether the type is
8489 supported here. Adjust to new interface.
8490 (the_low_target): Install aarch64_supports_z_point_type as
8491 supports_z_point_type method.
8492 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
8493 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
8494 instead of a Z packet char. Adjust.
8495 (arm_supports_z_point_type): New function.
8496 (arm_insert_point, arm_remove_point): Adjust to new interface.
8497 (the_low_target): Install arm_supports_z_point_type.
8498 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
8499 (cris_insert_point, cris_remove_point): Adjust to new interface.
8500 Don't check whether the type is supported here.
8501 (the_low_target): Install cris_supports_z_point_type.
8502 * linux-low.c (linux_supports_z_point_type): New function.
8503 (linux_insert_point, linux_remove_point): Adjust to new interface.
8504 * linux-low.h (struct linux_target_ops) <insert_point,
8505 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
8506 raw_breakpoint pointer parameter.
8507 <supports_z_point_type>: New method.
8508 * linux-mips-low.c (mips_supports_z_point_type): New function.
8509 (mips_insert_point, mips_remove_point): Adjust to new interface.
8510 Use mips_supports_z_point_type.
8511 (the_low_target): Install mips_supports_z_point_type.
8512 * linux-ppc-low.c (the_low_target): Install NULL as
8513 supports_z_point_type method.
8514 * linux-s390-low.c (the_low_target): Install NULL as
8515 supports_z_point_type method.
8516 * linux-sparc-low.c (the_low_target): Install NULL as
8517 supports_z_point_type method.
8518 * linux-x86-low.c (x86_supports_z_point_type): New function.
8519 (x86_insert_point): Adjust to new insert_point interface. Use
8520 insert_memory_breakpoint. Adjust to new
8521 i386_low_insert_watchpoint interface.
8522 (x86_remove_point): Adjust to remove_point interface. Use
8523 remove_memory_breakpoint. Adjust to new
8524 i386_low_remove_watchpoint interface.
8525 (the_low_target): Install x86_supports_z_point_type.
8526 * lynx-low.c (lynx_target_ops): Install NULL as
8527 supports_z_point_type callback.
8528 * nto-low.c (nto_supports_z_point_type): New.
8529 (nto_insert_point, nto_remove_point): Adjust to new interface.
8530 (nto_target_ops): Install nto_supports_z_point_type.
8531 * mem-break.c: Adjust intro comment.
8532 (struct raw_breakpoint) <raw_type, size>: New fields.
8533 <inserted>: Update comment.
8534 <shlib_disabled>: Delete field.
8535 (enum bkpt_type) <gdb_breakpoint>: Delete value.
8536 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
8537 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
8538 (raw_bkpt_type_to_target_hw_bp_type): New function.
8539 (find_enabled_raw_code_breakpoint_at): New function.
8540 (find_raw_breakpoint_at): New type and size parameters. Use them.
8541 (insert_memory_breakpoint): New function, based off
8542 set_raw_breakpoint_at.
8543 (remove_memory_breakpoint): New function.
8544 (set_raw_breakpoint_at): Reimplement.
8545 (set_breakpoint): New, based on set_breakpoint_at.
8546 (set_breakpoint_at): Reimplement.
8547 (delete_raw_breakpoint): Go through the_target->remove_point
8548 instead of assuming memory breakpoints.
8549 (find_gdb_breakpoint_at): Delete.
8550 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
8551 (find_gdb_breakpoint): New function.
8552 (set_gdb_breakpoint_at): Delete.
8553 (z_type_supported): New function.
8554 (set_gdb_breakpoint_1): New function, loosely based off
8555 set_gdb_breakpoint_at.
8556 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
8557 (delete_gdb_breakpoint_at): Delete.
8558 (delete_gdb_breakpoint_1): New function, loosely based off
8559 delete_gdb_breakpoint_at.
8560 (delete_gdb_breakpoint): New function.
8561 (clear_gdb_breakpoint_conditions): Rename to ...
8562 (clear_breakpoint_conditions): ... this. Don't handle a NULL
8563 breakpoint.
8564 (add_condition_to_breakpoint): Make static.
8565 (add_breakpoint_condition): Take a struct breakpoint pointer
8566 instead of an address. Adjust.
8567 (gdb_condition_true_at_breakpoint): Rename to ...
8568 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
8569 z_type parameter.
8570 (gdb_condition_true_at_breakpoint): Reimplement.
8571 (add_breakpoint_commands): Take a struct breakpoint pointer
8572 instead of an address. Adjust.
8573 (gdb_no_commands_at_breakpoint): Rename to ...
8574 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
8575 parameter. Return true if no breakpoint was found. Change debug
8576 output.
8577 (gdb_no_commands_at_breakpoint): Reimplement.
8578 (run_breakpoint_commands): Rename to ...
8579 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
8580 and change return type to boolean.
8581 (run_breakpoint_commands): New function.
8582 (gdb_breakpoint_here): Also check for Z1 breakpoints.
8583 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
8584 breakpoint. Go through the_target->remove_point instead of
8585 assuming memory breakpoint.
8586 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
8587 software and hardware breakpoints.
8588 (reinsert_raw_breakpoint): Go through the_target->insert_point
8589 instead of assuming memory breakpoint.
8590 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
8591 software and hardware breakpoints.
8592 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
8593 Check both software and hardware breakpoints.
8594 (validate_inserted_breakpoint): Assert the breakpoint is a
8595 software breakpoint. Set the inserted flag to -1 instead of
8596 setting shlib_disabled.
8597 (delete_disabled_breakpoints): Adjust.
8598 (validate_breakpoints): Only validate software breakpoints.
8599 Adjust to inserted flag change.
8600 (check_mem_read, check_mem_write): Skip breakpoint types other
8601 than software breakpoints. Adjust to inserted flag change.
8602 * mem-break.h (enum raw_bkpt_type): New enum.
8603 (raw_breakpoint, struct process_info): Forward declare.
8604 (Z_packet_to_target_hw_bp_type): Delete declaration.
8605 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
8606 (set_gdb_breakpoint, delete_gdb_breakpoint)
8607 (clear_breakpoint_conditions): New declarations.
8608 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
8609 (breakpoint_inserted_here): Update comment.
8610 (add_breakpoint_condition, add_breakpoint_commands): Replace
8611 address parameter with a breakpoint pointer parameter.
8612 (gdb_breakpoint_here): Update comment.
8613 (delete_gdb_breakpoint_at): Delete.
8614 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
8615 * server.c (process_point_options): Take a struct breakpoint
8616 pointer instead of an address. Adjust.
8617 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
8618 delete_gdb_breakpoint.
8619 * spu-low.c (spu_target_ops): Install NULL as
8620 supports_z_point_type method.
8621 * target.h: Include mem-break.h.
8622 (struct target_ops) <prepare_to_access_memory>: Update comment.
8623 <supports_z_point_type>: New field.
8624 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
8625 instead of a char. Also take a raw breakpoint pointer.
8626 * win32-arm-low.c (the_low_target): Install NULL as
8627 supports_z_point_type.
8628 * win32-i386-low.c (i386_supports_z_point_type): New function.
8629 (i386_insert_point, i386_remove_point): Adjust to new interface.
8630 (the_low_target): Install i386_supports_z_point_type.
8631 * win32-low.c (win32_supports_z_point_type): New function.
8632 (win32_insert_point, win32_remove_point): Adjust to new interface.
8633 (win32_target_ops): Install win32_supports_z_point_type.
8634 * win32-low.h (struct win32_target_ops):
8635 <supports_z_point_type>: New method.
8636 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
8637 instead of a char. Also take a raw breakpoint pointer.
8638
8639 2014-05-20 Pedro Alves <palves@redhat.com>
8640
8641 * mem-break.h: Include break-common.h.
8642 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
8643 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
8644 (Z_packet_to_target_hw_bp_type): New declaration.
8645 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
8646 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
8647 (Z_PACKET_ACCESS_WP): Delete macros.
8648 (Z_packet_to_hw_type): Delete function.
8649 * i386-low.h: Don't include break-common.h here.
8650 (Z_packet_to_hw_type): Delete declaration.
8651 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
8652 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
8653 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
8654 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
8655 * linux-aarch64-low.c: Don't include break-common.h here.
8656 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
8657 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
8658 (Z_packet_to_target_hw_bp_type): Delete function.
8659 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
8660 function.
8661 (mips_insert_point, mips_remove_point): Use
8662 Z_packet_to_target_hw_bp_type.
8663
8664 2014-05-20 Pedro Alves <palves@redhat.com>
8665
8666 * linux-aarch64-low.c: Include break-common.h.
8667 (enum target_point_type): Delete.
8668 (Z_packet_to_point_type): Rename to ...
8669 (Z_packet_to_target_hw_bp_type): ... this, and return a
8670 target_hw_bp_type instead.
8671 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
8672 instead of an enum target_point_type.
8673 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
8674 breakpoint type.
8675 (aarch64_dr_state_insert_one_point)
8676 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
8677 (aarch64_handle_aligned_watchpoint)
8678 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
8679 Take an enum target_hw_bp_type instead of an enum
8680 target_point_type.
8681 (aarch64_supports_z_point_type): New function.
8682 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
8683 use Z_packet_to_target_hw_bp_type.
8684
8685 2014-05-20 Joel Brobecker <brobecker@adacore.com>
8686
8687 * configure.ac: Only use -Werror by default when DEVELOPMENT
8688 is true.
8689 * configure: Regenerate.
8690
8691 2014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8692
8693 Fix gdbserver qGetTLSAddr for x86_64 -m32.
8694 * linux-x86-low.c (X86_64_USER_REGS): New.
8695 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
8696
8697 2014-04-28 Yao Qi <yao@codesourcery.com>
8698
8699 * Makefile.in (i386-avx512.c): Fix the typo of generated file
8700 name.
8701
8702 2014-04-25 Pedro Alves <palves@redhat.com>
8703
8704 PR server/16255
8705 * linux-low.c (linux_attach_fail_reason_string): New function.
8706 (linux_attach_lwp): Delete.
8707 (linux_attach_lwp_1): Rename to ...
8708 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
8709 argument. Remove "initial" parameter. Return int instead of
8710 void. Don't error or warn here.
8711 (linux_attach): Adjust to call linux_attach_lwp. Call error on
8712 failure to attach to the tgid. Call warning when failing to
8713 attach to an lwp.
8714 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
8715 argument. Remove "initial" parameter. Return int instead of
8716 void. Don't error or warn here.
8717 (linux_attach_fail_reason_string): New declaration.
8718 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
8719 interface change. Use linux_attach_fail_reason_string.
8720
8721 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
8722 Walfred Tedeschi <walfred.tedeschi@intel.com>
8723
8724 * Makefile.in: Added rules to handle new files
8725 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
8726 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
8727 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
8728 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
8729 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
8730 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
8731 x32-avx512-linux.o.
8732 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
8733 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
8734 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
8735 i386/x32-avx512.xml.
8736 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
8737 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
8738 i386/x32-avx512-linux.xml.
8739 * i387-fp.c (num_avx512_k_registers): New constant for number
8740 of K registers.
8741 (num_avx512_zmmh_low_registers): New constant for number of
8742 lower ZMM registers (0-15).
8743 (num_avx512_zmmh_high_registers): New constant for number of
8744 higher ZMM registers (16-31).
8745 (num_avx512_ymmh_registers): New contant for number of higher
8746 YMM registers (ymm16-31 added by avx521 on x86_64).
8747 (num_avx512_xmm_registers): New constant for number of higher
8748 XMM registers (xmm16-31 added by AVX512 on x86_64).
8749 (struct i387_xsave): Add space for AVX512 registers.
8750 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
8751 Add code to handle AVX512 registers.
8752 (i387_xsave_to_cache): Add code to handle AVX512 registers.
8753 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
8754 prototypei from generated file.
8755 (tdesc_amd64_avx512_linux): Likewise.
8756 (init_registers_x32_avx512_linux): Likewise.
8757 (tdesc_x32_avx512_linux): Likewise.
8758 (init_registers_i386_avx512_linux): Likewise.
8759 (tdesc_i386_avx512_linux): Likewise.
8760 (x86_64_regmap): Add AVX512 registers.
8761 (x86_linux_read_description): Add code to handle AVX512 XSTATE
8762 mask.
8763 (initialize_low_arch): Add code to initialize AVX512 registers.
8764
8765 2014-04-23 Pedro Alves <palves@redhat.com>
8766
8767 * mem-break.c (find_gdb_breakpoint_at): Make static.
8768 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
8769
8770 2014-04-23 Pedro Alves <palves@redhat.com>
8771
8772 * i386-low.c: Don't include break-common.h here.
8773 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
8774 prototype to take target_hw_bp_type as argument instead of a Z
8775 packet char.
8776 * i386-low.h: Include break-common.h here.
8777 (Z_packet_to_hw_type): Declare.
8778 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
8779 prototypes.
8780 * linux-x86-low.c (x86_insert_point): Convert the packet number to
8781 a target_hw_bp_type before calling i386_low_insert_watchpoint.
8782 (x86_remove_point): Convert the packet number to a
8783 target_hw_bp_type before calling i386_low_remove_watchpoint.
8784 * win32-i386-low.c (i386_insert_point): Convert the packet number
8785 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
8786 (i386_remove_point): Convert the packet number to a
8787 target_hw_bp_type before calling i386_low_remove_watchpoint.
8788
8789 2014-04-23 Pedro Alves <palves@redhat.com>
8790
8791 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
8792
8793 2014-04-10 Pedro Alves <palves@redhat.com>
8794
8795 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
8796 Check if the condition or command is NULL before checking if the
8797 breakpoint is known. On success, return true.
8798 * mem-break.h (add_breakpoint_condition): Document return.
8799 (add_breakpoint_commands): Add describing comment.
8800 * server.c (skip_to_semicolon): New function.
8801 (process_point_options): Use it.
8802
8803 2014-04-09 Pedro Alves <palves@redhat.com>
8804
8805 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
8806 to lwpid_of.
8807
8808 2014-02-27 Pedro Alves <palves@redhat.com>
8809
8810 PR 12702
8811 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
8812 macros.
8813 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
8814 output.
8815 (last_thread_of_process_p): Take a PID argument instead of a
8816 thread pointer.
8817 (linux_wait_for_lwp): Delete.
8818 (num_lwps, check_zombie_leaders, not_stopped_callback): New
8819 functions.
8820 (linux_low_filter_event): New function, party factored out from
8821 linux_wait_for_event.
8822 (linux_wait_for_event): Rename to ...
8823 (linux_wait_for_event_filtered): ... this. Add new filter ptid
8824 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
8825 sigsuspend. Check for zombie leaders.
8826 (linux_wait_for_event): Reimplement as wrapper around
8827 linux_wait_for_event_filtered.
8828 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
8829 a normal or signal exit is seen, it's the whole process exiting.
8830 (wait_for_sigstop): No longer a for_each_inferior callback.
8831 Rewrite on top of linux_wait_for_event_filtered.
8832 (stop_all_lwps): Call wait_for_sigstop directly.
8833 * server.c (resume, handle_target_event): Handle
8834 TARGET_WAITKIND_NO_RESUMED.
8835
8836 2014-02-26 Joel Brobecker <brobecker@adacore.com>
8837
8838 * win32-low.c (psapi_get_dll_name,
8839 * win32_CreateToolhelp32Snapshot): Delete.
8840 (win32_CreateToolhelp32Snapshot, win32_Module32First)
8841 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
8842 Delete.
8843 (handle_load_dll): Add function description.
8844 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
8845
8846 2014-02-26 Joel Brobecker <brobecker@adacore.com>
8847
8848 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
8849 Add comment.
8850 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
8851 base address when calling win32_add_one_solib.
8852 (handle_load_dll): Delete local variable load_addr.
8853 Remove 0x1000 offset applied to DLL base address when calling
8854 win32_add_one_solib.
8855 (handle_unload_dll): Add comment.
8856
8857 2014-02-26 Joel Brobecker <brobecker@adacore.com>
8858
8859 * win32-low.c (win32_add_all_dlls): Renames
8860 win32_ensure_ntdll_loaded. Rewrite function documentation.
8861 Adjust implementation to always load all DLLs.
8862 Add 0x1000 offset to DLL base address when calling
8863 win32_add_one_solib.
8864 (child_initialization_done): New static global.
8865 (do_initial_child_stuff): Set child_initialization_done to
8866 zero during child initialization, and 1 after. Replace call
8867 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
8868 Add comment.
8869 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
8870 (handle_unload_dll): Add function documentation.
8871 (get_child_debug_event): Ignore load and unload DLL events
8872 during child initialization.
8873
8874 2014-02-20 Doug Evans <dje@google.com>
8875
8876 Remove global all_lwps.
8877 * inferiors.h (ptid_of): Move here from linux-low.h.
8878 (pid_of, lwpid_of): Ditto.
8879 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
8880 parameter is a struct thread_info * now.
8881 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
8882 directly. Pass &all_threads to find_inferior instead of &all_lwps.
8883 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
8884 directly.
8885 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
8886 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
8887 * linux-arm-low.c (update_registers_callback): Update, "entry"
8888 parameter is a struct thread_info * now.
8889 Fetch lwpid from current_inferior directly.
8890 (arm_insert_point): Pass &all_threads to find_inferior instead of
8891 &all_lwps.
8892 (arm_remove_point): Ditto.
8893 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
8894 (arm_prepare_to_resume): Fetch pid from thread.
8895 (arm_read_description): Fetch lwpid from current_inferior directly.
8896 * linux-low.c (all_lwps): Delete.
8897 (delete_lwp): Delete call to remove_inferior.
8898 (handle_extended_wait): Fetch lwpid from thread.
8899 (add_lwp): Don't set lwp->entry.id. Remove call to
8900 add_inferior_to_list.
8901 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
8902 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
8903 (kill_one_lwp_callback): Ditto.
8904 (linux_kill): Don't dereference NULL pointer.
8905 Fetch ptid,lwpid from thread.
8906 (get_detach_signal): Fetch ptid from thread.
8907 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
8908 Simplify call to regcache_invalidate_thread.
8909 (delete_lwp_callback): Update, "entry" parameter is a
8910 struct thread_info * now. Fetch pid from thread.
8911 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
8912 (status_pending_p_callback): Update, "entry" parameter is a
8913 struct thread_info * now. Fetch ptid from thread.
8914 (find_lwp_pid): Update, "entry" parameter is a
8915 struct thread_info * now.
8916 (linux_wait_for_lwp): Fetch pid from thread.
8917 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
8918 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
8919 (enqueue_one_deferred_signal): Fetch lwpid from thread.
8920 (dequeue_one_deferred_signal): Ditto.
8921 (cancel_breakpoint): Fetch ptid from current_inferior.
8922 (linux_wait_for_event): Pass &all_threads to find_inferior,
8923 not &all_lwps. Fetch ptid, lwpid from thread.
8924 (count_events_callback): Update, "entry" parameter is a
8925 struct thread_info * now.
8926 (select_singlestep_lwp_callback): Ditto.
8927 (select_event_lwp_callback): Ditto.
8928 (cancel_breakpoints_callback): Ditto.
8929 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
8930 not &all_lwps.
8931 (select_event_lwp): Ditto. Fetch ptid from event_thread.
8932 (unsuspend_one_lwp): Update, "entry" parameter is a
8933 struct thread_info * now.
8934 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
8935 not &all_lwps.
8936 (linux_stabilize_threads): Ditto. And for for_each_inferior.
8937 Fetch lwpid from thread, not lwp.
8938 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
8939 Pass &all_threads to find_inferior, not &all_lwps.
8940 (send_sigstop): Fetch lwpid from thread, not lwp.
8941 (send_sigstop_callback): Update, "entry" parameter is a
8942 struct thread_info * now.
8943 (suspend_and_send_sigstop_callback): Ditto.
8944 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
8945 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
8946 struct thread_info * now.
8947 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
8948 from thread, lwp.
8949 (lwp_running): Update, "entry" parameter is a
8950 struct thread_info * now.
8951 (stop_all_lwps): Fetch ptid from thread.
8952 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
8953 (linux_resume_one_lwp): Fetch lwpid from thread.
8954 (linux_set_resume_request): Update, "entry" parameter is a
8955 struct thread_info * now. Fetch pid, lwpid from thread.
8956 (resume_status_pending_p): Update, "entry" parameter is a
8957 struct thread_info * now.
8958 (need_step_over_p): Ditto. Fetch lwpid from thread.
8959 (start_step_over): Fetch lwpid from thread.
8960 (linux_resume_one_thread): Update, "entry" parameter is a
8961 struct thread_info * now. Fetch lwpid from thread.
8962 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
8963 (proceed_one_lwp): Update, "entry" parameter is a
8964 struct thread_info * now. Fetch lwpid from thread.
8965 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
8966 struct thread_info * now.
8967 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
8968 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
8969 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
8970 directly.
8971 (regsets_store_inferior_registers): Ditto.
8972 (fetch_register, store_register): Ditto.
8973 (linux_read_memory, linux_write_memory): Ditto.
8974 (linux_request_interrupt): Ditto.
8975 (linux_read_auxv): Ditto.
8976 (linux_xfer_siginfo): Ditto.
8977 (linux_qxfer_spu): Ditto.
8978 (linux_qxfer_libraries_svr4): Ditto.
8979 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
8980 moved to inferiors.h.
8981 (get_lwp): Delete.
8982 (get_thread_lwp): Update.
8983 (struct lwp_info): Delete member "entry". Simplify comment for
8984 member "thread".
8985 (all_lwps): Delete.
8986 * linux-mips-low.c (mips_read_description): Fetch lwpid from
8987 current_inferior directly.
8988 (update_watch_registers_callback): Update, "entry" parameter is a
8989 struct thread_info * now. Fetch pid from thread.
8990 (mips_linux_prepare_to_resume): Fetch ptid from thread.
8991 (mips_insert_point): Fetch lwpid from current_inferior.
8992 Pass &all_threads to find_inferior, not &all_lwps.
8993 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
8994 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
8995 directly.
8996 (mips_stopped_data_address): Ditto.
8997 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
8998 directly.
8999 * linux-tile-low.c (tile_arch_setup): Ditto.
9000 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
9001 (update_debug_registers_callback): Update, "entry" parameter is a
9002 struct thread_info * now. Fetch pid from thread.
9003 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
9004 Pass &all_threads to find_inferior, not &all_lwps.
9005 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
9006 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
9007 Pass &all_threads to find_inferior, not &all_lwps.
9008 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
9009 (i386_dr_low_get_status): Ditto.
9010 (x86_linux_prepare_to_resume): Fetch ptid from thread.
9011 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
9012 (x86_linux_read_description): Ditto.
9013 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
9014
9015 2014-02-20 Doug Evans <dje@google.com>
9016
9017 * inferiors.c (get_first_inferior): Fix buglet.
9018
9019 2014-02-19 Doug Evans <dje@google.com>
9020
9021 * gdbthread.h (add_thread): Change result type to struct thread_info *.
9022 * inferiors.c (add_thread): Change result type to struct thread_info *.
9023 All callers updated.
9024 (add_lwp): Call add_thread here instead of in callers.
9025 All callers updated.
9026 * linux-low.h (get_lwp_thread): Rewrite.
9027 (struct lwp_info): New member "thread".
9028
9029 2014-02-19 Doug Evans <dje@google.com>
9030
9031 * linux-low.c (add_lwp): Change result to struct lwp_info *.
9032 All callers updated.
9033
9034 2014-02-19 Doug Evans <dje@google.com>
9035
9036 * inferiors.c (add_thread): Fix whitespace.
9037
9038 2014-02-19 Doug Evans <dje@google.com>
9039
9040 * dll.c (clear_dlls): Replace accessing list implemention details
9041 with API function.
9042 * gdbthread.h (get_first_thread): Declare.
9043 * inferiors.c (for_each_inferior_with_data): New function.
9044 (get_first_thread): New function.
9045 (find_thread_ptid): Simplify.
9046 (get_first_inferior): New function.
9047 (clear_list): Delete.
9048 (one_inferior_p): New function.
9049 (clear_inferior_list): New function.
9050 (clear_inferiors): Update.
9051 * inferiors.h (for_each_inferior_with_data): Declare.
9052 (clear_inferior_list): Declare.
9053 (one_inferior_p): Declare.
9054 (get_first_inferior): Declare.
9055 * linux-low.c (linux_wait_for_event): Replace accessing list
9056 implemention details with API function.
9057 * server.c (target_running): Ditto.
9058 (accumulate_file_name_length): New function.
9059 (emit_dll_description): New function.
9060 (handle_qxfer_libraries): Replace accessing list implemention
9061 details with API function.
9062 (handle_qxfer_threads_worker): New function.
9063 (handle_qxfer_threads_proper): Replace accessing list implemention
9064 details with API function.
9065 (handle_query): Ditto.
9066 (visit_actioned_threads_callback_ftype): New typedef.
9067 (visit_actioned_threads_data): New struct.
9068 (visit_actioned_threads): Rewrite to be find_inferior callback.
9069 (resume): Call find_inferior.
9070 (handle_status): Replace accessing list implemention
9071 details with API function.
9072 (process_serial_event): Replace accessing list implemention details
9073 with API function.
9074 * target.c (set_desired_inferior): Replace accessing list implemention
9075 details with API function.
9076 * tracepoint.c (same_process_p): New function.
9077 (gdb_agent_about_to_close): Replace accessing list implemention
9078 details with API function.
9079 * win32-low.c (child_delete_thread): Replace accessing list
9080 implemention details with API function.
9081 (match_dll_by_basename): New function.
9082 (dll_is_loaded_by_basename): New function.
9083 (win32_ensure_ntdll_loaded): Replace accessing list implemention
9084 details call to dll_is_loaded_by_basename.
9085
9086 2014-02-19 Doug Evans <dje@google.com>
9087
9088 * dll.h (struct dll_info): Add comment.
9089 * gdbthread.h (struct thread_info): Add comment.
9090 (current_ptid): Simplify.
9091 * inferiors.c (add_process): Update.
9092 (remove_process): Update.
9093 * inferiors.h (struct process_info): Rename member "head" to "entry".
9094 * linux-low.c (delete_lwp): Update.
9095 (add_lwp): Update.
9096 (last_thread_of_process_p): Update.
9097 (kill_one_lwp_callback, linux_kill): Update.
9098 (status_pending_p_callback): Update.
9099 (wait_for_sigstop): Update. Simplify read of ptid.
9100 (start_step_over): Update.
9101 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
9102 (get_lwp_thread): Update.
9103 (struct lwp_info): Rename member "head" to "entry".
9104 * regcache.h (inferior_list_entry): Delete.
9105 * server.c (kill_inferior_callback): Update.
9106 (detach_or_kill_inferior_callback): Update.
9107 (print_started_pid): Update.
9108 (print_attached_pid): Update.
9109 (process_serial_event): Simplify read of ptid.
9110 * thread-db.c (thread_db_create_event): Update.
9111 (thread_db_get_tls_address): Update.
9112 * win32-low.c (current_inferior_ptid): Simplify.
9113
9114 2014-02-19 Tom Tromey <tromey@redhat.com>
9115
9116 * target.h (struct target_ops) <supports_btrace>: Add target_ops
9117 argument.
9118 (target_supports_btrace): Update.
9119
9120 2014-02-14 Yao Qi <yao@codesourcery.com>
9121
9122 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
9123 (rsp-low-ipa.o): New target.
9124
9125 2014-02-12 Tom Tromey <tromey@redhat.com>
9126
9127 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
9128 convert_ascii_to_int.
9129 * regcache.c (registers_to_string): Likewise.
9130 * remote-utils.c (decode_M_packet): Likewise.
9131 * server.c (process_serial_event): Likewise.
9132
9133 2014-02-12 Tom Tromey <tromey@redhat.com>
9134
9135 * server.c (handle_query, handle_v_run): Use hex2bin, not
9136 unhexify.
9137 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
9138
9139 2014-02-12 Tom Tromey <tromey@redhat.com>
9140
9141 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
9142 convert_int_to_ascii.
9143 * regcache.c (registers_to_string, collect_register_as_string):
9144 Likewise.
9145 * remote-utils.c (look_up_one_symbol, relocate_instruction):
9146 Likewise.
9147 * server.c (process_serial_event): Likewise.
9148 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
9149 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
9150
9151 2014-02-12 Tom Tromey <tromey@redhat.com>
9152
9153 * remote-utils.c (look_up_one_symbol, monitor_output): Use
9154 bin2hex, not hexify.
9155 * tracepoint.c (cmd_qtstatus): Likewise.
9156
9157 2014-02-12 Tom Tromey <tromey@redhat.com>
9158
9159 * remote-utils.c (monitor_output): Pass explicit length to
9160 hexify.
9161
9162 2014-02-12 Tom Tromey <tromey@redhat.com>
9163
9164 * tracepoint.c: Include rsp-low.h.
9165 * server.c: Include rsp-low.h.
9166 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
9167 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
9168 declare.
9169 * remote-utils.c: Include rsp-low.h.
9170 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
9171 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
9172 (convert_int_to_ascii, convert_ascii_to_int): Move to
9173 common/rsp-low.c.
9174 * regcache.c: Include rsp-low.h.
9175 * ax.c: Include rsp-low.h.
9176 * Makefile.in (SFILES): Add common/rsp-low.c.
9177 (OBS): Add rsp-low.o.
9178 (rsp-low.o): New target.
9179
9180 2014-02-12 Tom Tromey <tromey@redhat.com>
9181
9182 * utils.h (pulongest, plongest, phex_nz): Don't declare.
9183 Include print-utils.h.
9184 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
9185 (plongest, thirty_two, phex_nz): Remove.
9186 * Makefile.in (SFILES): Add common/print-utils.c.
9187 (OBS): Add print-utils.o.
9188 (print-utils-ipa.o): New target.
9189 (print-utils.o): New target.
9190 (IPA_OBJS): Add print-utils-ipa.o.
9191
9192 2014-02-06 Tom Tromey <tromey@redhat.com>
9193
9194 * Makefile.in (SFILES): Fix indentation.
9195
9196 2014-02-05 Doug Evans <dje@google.com>
9197
9198 * linux-low.c (linux_wait_for_event): Improve comment.
9199 (linux_wait_1): Keep current_inferior in sync with event_child.
9200
9201 2014-01-22 Doug Evans <dje@google.com>
9202
9203 * gdbthread.h (gdb_id_to_thread): Delete, unused.
9204
9205 2014-01-22 Doug Evans <dje@google.com>
9206
9207 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
9208 * configure: Regenerate.
9209 * config.in: Regenerate.
9210 * Makefile.in (SFILES): Add debug.c.
9211 (OBS): Add debug.o.
9212 * debug.c: New file.
9213 * debug.h: New file.
9214 * linux-aarch64-low.c (*): Update all debugging printfs to use
9215 debug_printf instead of fprintf.
9216 * linux-arm-low.c (*): Ditto.
9217 * linux-cris-low.c (*): Ditto.
9218 * linux-crisv32-low.c (*): Ditto.
9219 * linux-m32r-low.c (*): Ditto.
9220 * linux-sparc-low.c (*): Ditto.
9221 * linux-x86.c (*): Ditto.
9222 * linux-low.c (*): Ditto.
9223 (linux_wait_1): Add calls to debug_enter, debug_exit.
9224 (linux_wait): Remove redundant debugging printf.
9225 (stop_all_lwps): Add calls to debug_enter, debug_exit.
9226 (linux_resume, unstop_all_lwps): Ditto.
9227 * mem-break.c (*): Update all debugging printfs to use
9228 debug_printf instead of fprintf.
9229 * remote-utils.c (*): Ditto.
9230 * thread-db.c (*): Ditto.
9231 * server.c #include <ctype.h>, "gdb_vecs.h".
9232 (debug_threads): Moved to debug.c.
9233 (*): Update all debugging printfs to use debug_printf instead of
9234 fprintf.
9235 (start_inferior): Replace call to fflush with call to debug_flush.
9236 (monitor_show_help): Mention set debug-format.
9237 (parse_debug_format_options): New function.
9238 (handle_monitor_command): Handle "monitor set debug-format".
9239 (gdbserver_usage): Mention --debug-format.
9240 (main): Parse --debug-format.
9241 * server.h (debug_threads): Declaration moved to debug.h.
9242 #include "debug.h".
9243 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
9244 trace_debug_1 that uses debug_printf.
9245 (tracepoint_look_up_symbols): Update all debugging printfs to use
9246 debug_printf instead of fprintf.
9247
9248 2014-01-20 Baruch Siach <baruch@tkos.co.il>
9249
9250 * linux-xtensa-low.c: Include asm/ptrace.h instead of
9251 sys/ptrace.h.
9252
9253 2014-01-17 Pedro Alves <palves@redhat.com>
9254
9255 PR build/16445
9256 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
9257 defined after including gdb_proc_service.h.
9258
9259 2014-01-16 Doug Evans <dje@google.com>
9260
9261 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
9262 (match_dll): Use it.
9263
9264 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9265
9266 * target.h (target_ops) <read_btrace>: Change parameters and
9267 return type to allow error reporting.
9268 * server.c (handle_qxfer_btrace): Support delta reads. Pass
9269 trace reading errors on.
9270 * linux-low.c (linux_low_read_btrace): Pass trace reading
9271 errors on.
9272 (linux_low_disable_btrace): New.
9273
9274 2014-01-15 Doug Evans <dje@google.com>
9275
9276 * inferiors.c (thread_id_to_gdb_id): Delete.
9277 * inferiors.h (thread_id_to_gdb_id): Delete.
9278
9279 2014-01-13 Eli Zaretskii <eliz@gnu.org>
9280
9281 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
9282 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
9283 versions.
9284
9285 2014-01-08 Pedro Alves <palves@redhat.com>
9286
9287 * server.c (handle_status): Don't discard previous queued stop
9288 replies or thread's pending status here.
9289 (main) <disconnection>: Do it here instead.
9290
9291 2014-01-08 Pedro Alves <palves@redhat.com>
9292
9293 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
9294 * server.c (visit_actioned_threads, handle_pending_status): New
9295 function.
9296 (handle_v_cont): Factor out parts to ...
9297 (resume): ... this new function. If in all-stop, and a thread
9298 being resumed has a pending status, report it without actually
9299 resuming.
9300 (myresume): Adjust to use the new 'resume' function.
9301 (clear_pending_status_callback, set_pending_status_callback)
9302 (find_status_pending_thread_callback): New functions.
9303 (handle_status): Handle the case of multiple threads having
9304 interesting statuses to report. Report threads' real last signal
9305 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
9306 with an interesting thread to report the status for, instead of
9307 always reporting the status of the first thread.
9308
9309 2014-01-01 Joel Brobecker <brobecker@adacore.com>
9310
9311 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
9312 * gdbreplay.c (gdbreplay_version): Likewise.
9313
9314 2013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
9315
9316 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
9317 iov.iov_len with the real length in use.
9318
9319 2013-12-13 Joel Brobecker <brobecker@adacore.com>
9320
9321 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
9322 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
9323 for all targets that use win32-low.c.
9324 * win32-low.c (win32_ensure_ntdll_loaded): New function.
9325 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
9326
9327 2013-12-13 Pedro Alves <palves@redhat.com>
9328
9329 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
9330 if equal to TARGET_WAITKIND_LOADED.
9331 * win32-low.c (cached_status): New static global.
9332 (win32_wait): Add declaration.
9333 (do_initial_child_stuff): Flush all initial pending debug events
9334 up to the initial breakpoint.
9335 (win32_wait): If CACHED_STATUS was set, return that instead
9336 of doing a real wait. Remove the code resuming the execution
9337 of the inferior after receiving a TARGET_WAITKIND_LOADED event
9338 during the initial phase. Also remove the code changing
9339 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
9340 TARGET_WAITKIND_STOPPED.
9341
9342 2013-12-11 Yao Qi <yao@codesourcery.com>
9343
9344 * notif.c (handle_notif_ack): Return 0 if no notification
9345 matches.
9346
9347 2013-11-20 Doug Evans <dje@google.com>
9348
9349 * linux-low.c (linux_set_resume_request): Fix comment.
9350
9351 2013-11-20 Doug Evans <dje@google.com>
9352
9353 * linux-low.c (resume_status_pending_p): Tweak comment.
9354
9355 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
9356
9357 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
9358 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
9359 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
9360 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
9361 (srv_amd64_regobj): Add amd64-mpx.o.
9362 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
9363 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
9364 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
9365 * i387-fp.c (num_pl_bnd_register) Added constant.
9366 (num_pl_bnd_cfg_registers) Added constant.
9367 (struct i387_xsave) Added reserved area and MPX fields.
9368 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
9369 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
9370 function.
9371 (tdesc_i386_mpx_linux): Add MPX amd64 target.
9372 (init_registers_amd64_mpx_linux): Declare new function.
9373 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
9374 (x86_64_regmap): Add MPX registers.
9375 (x86_linux_read_description): Add MPX case.
9376 (initialize_low_arch): Initialize MPX targets.
9377
9378 2013-11-18 Tom Tromey <tromey@redhat.com>
9379
9380 * configure: Rebuild.
9381 * configure.ac: Don't check for stdlib.h.
9382 * gdbreplay.c: Unconditionally include stdlib.h.
9383
9384 2013-11-18 Tom Tromey <tromey@redhat.com>
9385
9386 * config.in: Rebuild.
9387 * configure: Rebuild.
9388 * configure.ac: Don't use AC_HEADER_DIRENT.
9389
9390 2013-11-18 Tom Tromey <tromey@redhat.com>
9391
9392 * server.h: Don't check HAVE_STRING_H.
9393 * gdbreplay.c: Don't check HAVE_STRING_H.
9394 * configure: Rebuild.
9395
9396 2013-11-18 Tom Tromey <tromey@redhat.com>
9397
9398 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
9399 LIBGNU.
9400
9401 2013-11-08 Tom Tromey <tromey@redhat.com>
9402
9403 * configure, config.in: Rebuild.
9404 * configure.ac: Remove unused configury.
9405
9406 2013-11-08 Tom Tromey <tromey@redhat.com>
9407
9408 * acinclude.m4: Include common.m4, codeset.m4.
9409 * configure, config.in: Rebuild.
9410 * configure.ac: Use GDB_AC_COMMON.
9411
9412 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
9413
9414 * linux-s390-low.c (HWCAP_S390_TE): New define.
9415 (s390_arch_setup): Consider the TE field in the HWCAP for
9416 determining 'have_regset_tdb'.
9417
9418 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
9419
9420 PR gdb/16014
9421 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
9422 call to sizeof.
9423
9424 2013-10-02 Pedro Alves <palves@redhat.com>
9425
9426 * server.c (process_serial_event): Don't output "GDBserver
9427 exiting" if GDB is connected through stdio.
9428 * target.c (mywait): Likewise, be silent if GDB is connected
9429 through stdio.
9430
9431 2013-10-01 Joel Brobecker <brobecker@adacore.com>
9432
9433 * lynx-low.c (lynx_add_threads_after_attach): New function.
9434 (lynx_attach): Remove call to add_thread. Add call to
9435 lynx_add_threads_after_attach instead.
9436
9437 2013-09-28 Mike Frysinger <vapier@gentoo.org>
9438
9439 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
9440 * config.in, configure: Regenerated.
9441
9442 2013-09-18 Yao Qi <yao@codesourcery.com>
9443
9444 PR server/15959
9445 * server.c (start_inferior): Clear 'resume_info'.
9446
9447 2013-09-16 Jiong Wang <jiwang@tilera.com>
9448
9449 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
9450 for each register.
9451
9452 2013-09-16 Jiong Wang <jiwang@tilera.com>
9453
9454 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
9455 linux-tile-low.o to srv_tgtobj.
9456
9457 2013-09-16 Will Newton <will.newton@linaro.org>
9458
9459 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
9460 out regs.
9461
9462 2013-09-06 Pedro Alves <palves@redhat.com>
9463
9464 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
9465 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
9466 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
9467 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
9468 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
9469 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
9470
9471 2013-09-06 Pedro Alves <palves@redhat.com>
9472
9473 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
9474 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
9475
9476 2013-09-06 Pedro Alves <palves@redhat.com>
9477
9478 * linux-amd64-ipa.c: Include tracepoint.h.
9479 * linux-i386-ipa.c: Include tracepoint.h.
9480
9481 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
9482
9483 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
9484 (ps_get_thread_area): New function.
9485
9486 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
9487
9488 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
9489 (initialize_low_arch): Call init_registers_crisv32 rather than
9490 init_register_crisv32.
9491
9492 2013-09-05 Pedro Alves <palves@redhat.com>
9493
9494 * server.h (handle_vFile, hostio_last_error_from_errno): Move
9495 to ...
9496 * hostio.h: ... this new file.
9497 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
9498 win32-low.c: Include hostio.h.
9499
9500 2013-09-05 Pedro Alves <palves@redhat.com>
9501
9502 * server.h (gdb_client_data, handler_func, callback_handler_func)
9503 (delete_file_handler, add_file_handler, append_callback_event)
9504 (delete_callback_event, start_event_loop, initialize_event_loop):
9505 Move to event-loop.h and include it.
9506 * event-loop.h: New file.
9507
9508 2013-09-05 Pedro Alves <palves@redhat.com>
9509
9510 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
9511 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
9512 (loaded_dll, unloaded_dll): Move to ...
9513 * dll.h: ... this new file.
9514 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
9515
9516 2013-09-05 Pedro Alves <palves@redhat.com>
9517
9518 * server.h (current_process, get_thread_process, all_processes)
9519 (add_inferior_to_list, for_each_inferior, current_inferior)
9520 (remove_inferior, add_process, remove_process, find_process_pid)
9521 (have_started_inferiors_p, have_attached_inferiors_p)
9522 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
9523 (clear_inferiors, find_inferior, find_inferior_id)
9524 (inferior_target_data, set_inferior_target_data)
9525 (inferior_regcache_data, set_inferior_regcache_data): Move to
9526 inferiors.h, and include it.
9527 * inferiors.h: New file.
9528
9529 2013-09-05 Pedro Alves <palves@redhat.com>
9530
9531 * server.h (struct emit_ops, current_insn_ptr, emit_error):
9532 Move ...
9533 * ax.h: ... here.
9534
9535 2013-09-05 Pedro Alves <palves@redhat.com>
9536
9537 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
9538 tracepoint.h.
9539 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
9540 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
9541 (handle_tracepoint_general_set, handle_tracepoint_query)
9542 (tracepoint_finished_step, tracepoint_was_hit)
9543 (release_while_stepping_state_list, current_traceframe)
9544 (in_readonly_region, traceframe_read_mem)
9545 (fetch_traceframe_registers, traceframe_read_sdata)
9546 (traceframe_read_info, struct fast_tpoint_collect_status)
9547 (fast_tracepoint_collecting, force_unlock_trace_buffer)
9548 (handle_tracepoit_bkpts, initialize_low_tracepoint)
9549 (supply_fast_tracepoint_registers)
9550 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
9551 (ipa_tdesc, claim_trampoline_space)
9552 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
9553 (agent_mem_read, agent_get_trace_state_variable_value)
9554 (agent_set_trace_state_variable_value, agent_tsv_read)
9555 (agent_mem_read_string, get_raw_reg_func_addr)
9556 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
9557 * tracepoint.h: ... this new file.
9558
9559 2013-09-05 Pedro Alves <palves@redhat.com>
9560
9561 * server.h (perror_with_name, error, fatal, warning, paddress)
9562 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
9563 include it.
9564 * utils.h: New file.
9565
9566 2013-09-05 Pedro Alves <palves@redhat.com>
9567
9568 * server.h (remote_debug, noack_mode, transport_is_reliable)
9569 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
9570 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
9571 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
9572 (write_enn, initialize_async_io, enable_async_io)
9573 (disable_async_io, check_remote_input_interrupt_request)
9574 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
9575 (dead_thread_notify, prepare_resume_reply)
9576 (decode_address_to_semicolon, decode_address, decode_m_packet)
9577 (decode_M_packet, decode_X_packet, decode_xfer_write)
9578 (decode_search_memory_packet, unhexify, hexify)
9579 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
9580 (look_up_one_symbol, relocate_instruction)
9581 (monitor_output): Move to remote-utils.h, and include it.
9582 * remote-utils.h: New file.
9583
9584 2013-09-05 Pedro Alves <palves@redhat.com>
9585
9586 * server.h (_): Delete.
9587
9588 2013-09-02 Pedro Alves <palves@redhat.com>
9589
9590 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
9591 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
9592 allocated.
9593 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
9594
9595 2013-09-02 Pierre Muller <muller@sourceware.org>
9596
9597 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
9598 or WriteProcessMemory complete successfully and handle
9599 ERROR_PARTIAL_COPY error.
9600
9601 2013-09-02 Pedro Alves <palves@redhat.com>
9602
9603 * server.c (gdb_read_memory): Return -1 on traceframe memory read
9604 error instead of EIO.
9605
9606 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9607
9608 PR server/15604
9609 * linux-low.c: Include filestuff.h.
9610 (linux_create_inferior) <pid == 0>: Call close_most_fds.
9611 * lynx-low.c: Include filestuff.h.
9612 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
9613 * server.c: Include filestuff.h.
9614 (main): Call notice_open_fds.
9615 * spu-low.c: Include filestuff.h.
9616 (spu_create_inferior) <pid == 0>: Call close_most_fds.
9617
9618 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
9619
9620 * Makefile.in: Explain why ../target and ../nat are not
9621 listed as include file search paths.
9622 (linux-waitpid.o): New object file rule.
9623 * configure.srv (srv_native_linux_obj): New variable.
9624 Replace all occurrences of linux native object files with
9625 $srv_native_linux_obj.
9626 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
9627 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
9628 (linux_enable_event_reporting): Remove declaration.
9629 (my_waitpid): Moved to common/linux-waitpid.c.
9630 (linux_wait_for_event): Pass ptid when calling
9631 linux_enable_event_reporting.
9632 (linux_supports_tracefork_flag): Remove.
9633 (linux_enable_event_reporting): Likewise.
9634 (linux_tracefork_grandchild): Remove.
9635 (STACK_SIZE): Moved to common/linux-ptrace.c.
9636 (linux_tracefork_child): Remove.
9637 (linux_test_for_tracefork): Remove.
9638 (linux_look_up_symbols): Call linux_supports_traceclone.
9639 (initialize_low): Remove call to linux_test_for_tracefork.
9640 * linux-low.h (PTRACE_TYPE_ARG3): Move to
9641 common/linux-ptrace.h.
9642 (PTRACE_TYPE_ARG4): Likewise.
9643 Include linux-ptrace.h.
9644
9645 2013-08-21 Pedro Alves <palves@redhat.com>
9646
9647 * config.in: Renegerate.
9648
9649 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
9650
9651 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
9652 (SFILES): Remove $(srcdir)/common/target-common.c and
9653 add $(srcdir)/target/waitstatus.c.
9654 (OBS): Remove target-common.o and add waitstatus.o.
9655 (server_h): Remove $(srcdir)/../common/target-common.h and
9656 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
9657 and $(srcdir)/../target/waitstatus.h.
9658 (target-common.o): Remove.
9659 (waitstatus.o): New target object file.
9660 * target.h: Do not include target-common.h and
9661 include target/resume.h, target/wait.h and
9662 target/waitstatus.h.
9663
9664 2013-08-13 Luis Machado <lgustavo@codesourcery.com>
9665
9666 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
9667 to PTRACE_TYPE_ARG3.
9668 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
9669 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
9670 PTRACE_TYPE_ARG4.
9671 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
9672 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
9673
9674 2013-07-27 Jie Zhang <jie@codesourcery.com>
9675 Daniel Jacobowitz <dan@codesourcery.com>
9676 Yao Qi <yao@codesourcery.com>
9677
9678 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
9679 (mips-linux-watch.o): New rule.
9680 (mips_linux_watch_h): New variable.
9681 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
9682 srv_tgtobj.
9683 * linux-mips-low.c: Include mips-linux-watch.h.
9684 (struct arch_process_info, struct arch_lwp_info): New.
9685 (update_watch_registers_callback): New function.
9686 (mips_linux_new_process, mips_linux_new_thread) New functions.
9687 (mips_linux_prepare_to_resume, mips_insert_point): New
9688 functions.
9689 (mips_remove_point, mips_stopped_by_watchpoint): New
9690 functions.
9691 (rsp_bp_type_to_target_hw_bp_type): New function.
9692 (mips_stopped_data_address): New function.
9693 (the_low_target): Add watchpoint support functions.
9694
9695 2013-07-27 Yao Qi <yao@codesourcery.com>
9696
9697 * i386-low.c: Include break-common.h.
9698 (enum target_hw_bp_type): Remove.
9699
9700 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
9701
9702 * Makefile.in (SFILES): /common/target-common.c.
9703 (OBS): Add target-common.o.
9704 (server_h): Add $(srcdir)/../common/target-common.h.
9705 (target-common.o): New target.
9706 * server.c (queue_stop_reply_callback): Free
9707 status string after use.
9708 * target.c (target_waitstatus_to_string): Remove.
9709 * target.h: Include target-common.h.
9710 (resume_kind): Likewise.
9711 (target_waitkind): Likewise.
9712 (target_waitstatus): Likewise.
9713 (TARGET_WNOHANG): Likewise.
9714
9715 2013-07-04 Yao Qi <yao@codesourcery.com>
9716
9717 * Makefile.in (host_alias): Use @host_noncanonical@.
9718 (target_alias): Use @target_noncanonical@.
9719 * configure.ac: Use ACX_NONCANONICAL_TARGET and
9720 ACX_NONCANONICAL_HOST.
9721 * configure: Regenerated.
9722
9723 Revert:
9724 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
9725
9726 * configure.ac (version_host, version_target): Set and AC_SUBST them.
9727 * configure: Rebuild.
9728 * Makefile.in (version_host, version_target): Get from configure.
9729 (version.c): Use $(version_host) and $(version_target).
9730
9731 2013-07-03 Pedro Alves <palves@redhat.com>
9732
9733 * Makefile.in (config.status): Depend on development.sh.
9734 * acinclude.m4: Include libmcheck.m4.
9735 * configure: Regenerate.
9736
9737 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
9738
9739 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
9740 attribute inside the parentheses.
9741 (winapi_DebugSetProcessKillOnExit): Ditto.
9742 (winapi_DebugBreakProcess): Ditto.
9743 (winapi_GenerateConsoleCtrlEvent): Ditto.
9744
9745 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
9746
9747 * notif.h (notif_event): Add a dummy member to avoid compiler
9748 errors.
9749
9750 2013-07-01 Pedro Alves <palves@redhat.com>
9751
9752 * hostio.c (HOSTIO_PATH_MAX): Define.
9753 (require_filename, handle_open, handle_unlink, handle_readlink):
9754 Use it.
9755
9756 2013-07-01 Pedro Alves <palves@redhat.com>
9757
9758 * server.h: Include "pathmax.h".
9759 * linux-low.c: Don't include sys/param.h.
9760 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
9761 MAXPATHLEN.
9762 * win32-low.c: Don't include sys/param.h.
9763 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
9764
9765 2013-07-01 Pedro Alves <palves@redhat.com>
9766
9767 * event-loop.c: Don't check HAVE_UNISTD_H before including
9768 <unistd.h>.
9769 * gdbreplay.c: Likewise.
9770 * remote-utils.c: Likewise.
9771 * server.c: Likewise.
9772 * configure.ac: Don't check for unistd.h.
9773 * configure: Regenerate.
9774
9775 2013-06-28 Tom Tromey <tromey@redhat.com>
9776
9777 * Makefile.in (version.c): Use version.in, not
9778 common/version.in.
9779
9780 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
9781
9782 * configure.ac (version_host, version_target): Set and AC_SUBST them.
9783 * configure: Rebuild.
9784 * Makefile.in (version_host, version_target): Get from configure.
9785 (version.c): Use $(version_host) and $(version_target).
9786
9787 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
9788
9789 Fix trace-status to output user name without trailing colon.
9790 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
9791
9792 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
9793
9794 Fix trace-status to output proper start-time and stop-time.
9795 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
9796 output start time and stop time in hex as gdb expects.
9797
9798 2013-06-26 Pedro Alves <pedro@codesourcery.com>
9799
9800 * tracepoint.c (build_traceframe_info_xml): Output trace state
9801 variables present in the trace buffer.
9802
9803 2013-06-24 Tom Tromey <tromey@redhat.com>
9804
9805 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
9806 create-version.sh.
9807 (version.o): Remove.
9808 * gdbreplay.c: Include version.h.
9809 (version, host_name): Don't declare.
9810 * server.h: Include version.h.
9811 (version, host_name): Don't declare.
9812
9813 2013-06-12 Pedro Alves <palves@redhat.com>
9814
9815 * linux-x86-low.c (linux_is_elf64): Delete global.
9816 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
9817 with local linux_pid_exe_is_elf_64_file use.
9818
9819 2013-06-11 Pedro Alves <palves@redhat.com>
9820
9821 * linux-low.c (regset_disabled, disable_regset): New functions.
9822 (regsets_fetch_inferior_registers)
9823 (regsets_store_inferior_registers): Use them.
9824 (initialize_regsets_info); Don't allocate the disabled_regsets
9825 array here.
9826 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
9827 comment.
9828
9829 2013-06-11 Pedro Alves <palves@redhat.com>
9830
9831 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
9832 xmalloc.
9833
9834 2013-06-11 Pedro Alves <palves@redhat.com>
9835
9836 * linux-x86-low.c (initialize_low_arch): Call
9837 init_registers_x32_avx_linux.
9838
9839 2013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9840
9841 Fix compatibility with Android Bionic.
9842 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
9843 it is not empty.
9844
9845 2013-06-07 Pedro Alves <palves@redhat.com>
9846
9847 PR server/14823
9848 * Makefile.in (OBS): Add tdesc.o.
9849 (IPA_OBJS): Add tdesc-ipa.o.
9850 (tdesc-ipa.o): New rule.
9851 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
9852 interface.
9853 * linux-low.c (new_inferior): Delete.
9854 (disabled_regsets, num_regsets): Delete.
9855 (linux_add_process): Adjust to set the new per-process
9856 new_inferior flag.
9857 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
9858 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
9859 was a stop. When calling arch_setup, switch the current inferior
9860 to the thread that got an event.
9861 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
9862 (regsets_fetch_inferior_registers)
9863 (regsets_store_inferior_registers): New regsets_info parameter.
9864 Adjust to use it.
9865 (linux_register_in_regsets): New regs_info parameter. Adjust to
9866 use it.
9867 (register_addr, fetch_register, store_register): New usrregs_info
9868 parameter. Adjust to use it.
9869 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
9870 parameter regs_info. Adjust to use it.
9871 (linux_fetch_registers): Get the current inferior's regs_info, and
9872 adjust to use it.
9873 (linux_store_registers): Ditto.
9874 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
9875 (initialize_low): Don't initialize the target_regsets here. Call
9876 initialize_low_arch.
9877 * linux-low.h (target_regsets): Delete declaration.
9878 (struct regsets_info): New.
9879 (struct usrregs_info): New.
9880 (struct regs_info): New.
9881 (struct process_info_private) <new_inferior>: New field.
9882 (struct linux_target_ops): Delete the num_regs, regmap, and
9883 regset_bitmap fields. New field regs_info.
9884 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
9885 * i387-fp.c (num_xmm_registers): Delete.
9886 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
9887 calls to new interface.
9888 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
9889 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
9890 Infer the number of xmm registers from the regcache's target
9891 description.
9892 * i387-fp.h (num_xmm_registers): Delete.
9893 * inferiors.c (add_thread): Don't install the thread's regcache
9894 here.
9895 * proc-service.c (gregset_info): Fetch the current inferior's
9896 regs_info. Adjust to use it.
9897 * regcache.c: Include tdesc.h.
9898 (register_bytes, reg_defs, num_registers)
9899 (gdbserver_expedite_regs): Delete.
9900 (get_thread_regcache): If the thread doesn't have a regcache yet,
9901 create one, instead of aborting gdbserver.
9902 (regcache_invalidate_one): Rename to ...
9903 (regcache_invalidate_thread): ... this.
9904 (regcache_invalidate_one): New.
9905 (regcache_invalidate): Only invalidate registers of the current
9906 process.
9907 (init_register_cache): Add target_desc parameter, and use it.
9908 (new_register_cache): Ditto. Assert the target description has a
9909 non zero registers_size.
9910 (regcache_cpy): Add assertions. Adjust.
9911 (realloc_register_cache, set_register_cache): Delete.
9912 (registers_to_string, registers_from_string): Adjust.
9913 (find_register_by_name, find_regno, find_register_by_number)
9914 (register_cache_size): Add target_desc parameter, and use it.
9915 (free_register_cache_thread, free_register_cache_thread_one)
9916 (regcache_release, register_cache_size): New.
9917 (register_size): Add target_desc parameter, and use it.
9918 (register_data, supply_register, supply_register_zeroed)
9919 (supply_regblock, supply_register_by_name, collect_register)
9920 (collect_register_as_string, collect_register_by_name): Adjust.
9921 * regcache.h (struct target_desc): Forward declare.
9922 (struct regcache) <tdesc>: New field.
9923 (init_register_cache, new_register_cache): Add target_desc
9924 parameter.
9925 (regcache_invalidate_thread): Declare.
9926 (regcache_invalidate_one): Delete declaration.
9927 (regcache_release): Declare.
9928 (find_register_by_number, register_cache_size, register_size)
9929 (find_regno): Add target_desc parameter.
9930 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
9931 declarations.
9932 * remote-utils.c: Include tdesc.h.
9933 (outreg, prepare_resume_reply): Adjust.
9934 * server.c: Include tdesc.h.
9935 (gdbserver_xmltarget): Delete declaration.
9936 (get_features_xml, process_serial_event): Adjust.
9937 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
9938 declare.
9939 (struct process_info) <tdesc>: New field.
9940 (ipa_tdesc): Declare.
9941 * tdesc.c: New file.
9942 * tdesc.h: New file.
9943 * tracepoint.c: Include tdesc.h.
9944 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
9945 (get_context_regcache): Adjust to pass ipa_tdesc down.
9946 (do_action_at_tracepoint): Adjust to get the register cache size
9947 from the context regcache's description.
9948 (traceframe_walk_blocks): Adjust to get the register cache size
9949 from the current trace frame's description.
9950 (traceframe_get_pc): Adjust to get current trace frame's
9951 description and pass it down.
9952 (gdb_collect): Adjust to get the register cache size from the
9953 IPA's description.
9954 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
9955 (gdbserver_xmltarget): Delete.
9956 (initialize_low_tracepoint): Set the ipa's target description.
9957 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
9958 (initialize_low_tracepoint): Set the ipa's target description.
9959 * linux-x86-low.c: Include tdesc.h.
9960 [__x86_64__] (is_64bit_tdesc): New.
9961 (ps_get_thread_area, x86_get_thread_area): Use it.
9962 (i386_cannot_store_register): Rename to ...
9963 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
9964 (i386_cannot_fetch_register): Rename to ...
9965 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
9966 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
9967 to new interface.
9968 (target_regsets): Rename to ...
9969 (x86_regsets): ... this.
9970 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
9971 interface.
9972 (x86_siginfo_fixup): Use is_64bit_tdesc.
9973 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
9974 (tdesc_x32_avx_linux, tdesc_x32_linux)
9975 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
9976 Declare.
9977 (x86_linux_update_xmltarget): Delete.
9978 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
9979 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
9980 (AMD64_LINUX_USER64_CS): New.
9981 (x86_linux_read_description): New, based on
9982 x86_linux_update_xmltarget.
9983 (same_process_callback): New.
9984 (x86_arch_setup_process_callback): New.
9985 (x86_linux_update_xmltarget): New.
9986 (x86_regsets_info): New.
9987 (amd64_linux_regs_info): New.
9988 (i386_linux_usrregs_info): New.
9989 (i386_linux_regs_info): New.
9990 (x86_linux_regs_info): New.
9991 (x86_arch_setup): Reimplement.
9992 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
9993 (x86_emit_ops): Ditto.
9994 (the_low_target): Adjust. Install x86_linux_regs_info,
9995 x86_cannot_fetch_register, and x86_cannot_store_register.
9996 (initialize_low_arch): New.
9997 * linux-ia64-low.c (tdesc_ia64): Declare.
9998 (ia64_fetch_register): Adjust.
9999 (ia64_usrregs_info, regs_info): New globals.
10000 (ia64_regs_info): New function.
10001 (the_low_target): Adjust.
10002 (initialize_low_arch): New function.
10003 * linux-sparc-low.c (tdesc_sparc64): Declare.
10004 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
10005 Adjust.
10006 (sparc_arch_setup): New function.
10007 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
10008 (the_low_target): Adjust.
10009 (initialize_low_arch): New function.
10010 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
10011 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
10012 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
10013 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
10014 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
10015 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
10016 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
10017 (tdesc_powerpc_isa205_vsx64l): Declare.
10018 (ppc_cannot_store_register, ppc_collect_ptrace_register)
10019 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
10020 (ppc_set_pc, ppc_get_hwcap): Adjust.
10021 (ppc_usrregs_info): Forward declare.
10022 (!__powerpc64__) ppc_regmap_adjusted: New global.
10023 (ppc_arch_setup): Adjust to the current process'es target
10024 description.
10025 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
10026 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
10027 (ppc_store_evrregset): Adjust.
10028 (target_regsets): Rename to ...
10029 (ppc_regsets): ... this, and make static.
10030 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
10031 (ppc_regs_info): New function.
10032 (the_low_target): Adjust.
10033 (initialize_low_arch): New function.
10034 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
10035 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
10036 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
10037 (tdesc_s390x_linux64v2): Declare.
10038 (s390_collect_ptrace_register, s390_supply_ptrace_register)
10039 (s390_fill_gregset, s390_store_last_break): Adjust.
10040 (target_regsets): Rename to ...
10041 (s390_regsets): ... this, and make static.
10042 (s390_get_pc, s390_set_pc): Adjust.
10043 (s390_get_hwcap): New target_desc parameter, and use it.
10044 [__s390x__] (have_hwcap_s390_high_gprs): New global.
10045 (s390_arch_setup): Adjust to set the current process'es target
10046 description. Don't adjust the regmap.
10047 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
10048 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
10049 (regs_info_3264): New globals.
10050 (s390_regs_info): New function.
10051 (the_low_target): Adjust.
10052 (initialize_low_arch): New function.
10053 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
10054 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
10055 [__mips64] (init_registers_mips_linux)
10056 (init_registers_mips_dsp_linux): Delete defines.
10057 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
10058 (have_dsp): New global.
10059 (mips_read_description): New, based on mips_arch_setup.
10060 (mips_arch_setup): Reimplement.
10061 (get_usrregs_info): New function.
10062 (mips_cannot_fetch_register, mips_cannot_store_register)
10063 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
10064 (mips_fill_fpregset, mips_store_fpregset): Adjust.
10065 (target_regsets): Rename to ...
10066 (mips_regsets): ... this, and make static.
10067 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
10068 (dsp_regs_info, regs_info): New globals.
10069 (mips_regs_info): New function.
10070 (the_low_target): Adjust.
10071 (initialize_low_arch): New function.
10072 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
10073 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
10074 Declare.
10075 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
10076 (arm_read_description): New, with bits factored from
10077 arm_arch_setup.
10078 (arm_arch_setup): Reimplement.
10079 (target_regsets): Rename to ...
10080 (arm_regsets): ... this, and make static.
10081 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
10082 (arm_regs_info): New function.
10083 (the_low_target): Adjust.
10084 (initialize_low_arch): New function.
10085 * linux-m68k-low.c (tdesc_m68k): Declare.
10086 (target_regsets): Rename to ...
10087 (m68k_regsets): ... this, and make static.
10088 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
10089 (m68k_regs_info): New function.
10090 (m68k_arch_setup): New function.
10091 (the_low_target): Adjust.
10092 (initialize_low_arch): New function.
10093 * linux-sh-low.c (tdesc_sharch): Declare.
10094 (target_regsets): Rename to ...
10095 (sh_regsets): ... this, and make static.
10096 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
10097 (sh_regs_info, sh_arch_setup): New functions.
10098 (the_low_target): Adjust.
10099 (initialize_low_arch): New function.
10100 * linux-bfin-low.c (tdesc_bfin): Declare.
10101 (bfin_arch_setup): New function.
10102 (bfin_usrregs_info, regs_info): New globals.
10103 (bfin_regs_info): New function.
10104 (the_low_target): Adjust.
10105 (initialize_low_arch): New function.
10106 * linux-cris-low.c (tdesc_cris): Declare.
10107 (cris_arch_setup): New function.
10108 (cris_usrregs_info, regs_info): New globals.
10109 (cris_regs_info): New function.
10110 (the_low_target): Adjust.
10111 (initialize_low_arch): New function.
10112 * linux-cris-low.c (tdesc_crisv32): Declare.
10113 (cris_arch_setup): New function.
10114 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
10115 (cris_regs_info): New function.
10116 (the_low_target): Adjust.
10117 (initialize_low_arch): New function.
10118 * linux-m32r-low.c (tdesc_m32r): Declare.
10119 (m32r_arch_setup): New function.
10120 (m32r_usrregs_info, regs_info): New globals.
10121 (m32r_regs_info): Adjust.
10122 (initialize_low_arch): New function.
10123 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
10124 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
10125 (tic6x_usrregs_info): Forward declare.
10126 (tic6x_read_description): New function, based on ...
10127 (tic6x_arch_setup): ... this. Reimplement.
10128 (target_regsets): Rename to ...
10129 (tic6x_regsets): ... this, and make static.
10130 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
10131 (tic6x_regs_info): New function.
10132 (the_low_target): Adjust.
10133 (initialize_low_arch): New function.
10134 * linux-xtensa-low.c (tdesc_xtensa): Declare.
10135 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
10136 (target_regsets): Rename to ...
10137 (xtensa_regsets): ... this, and make static.
10138 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
10139 globals.
10140 (xtensa_arch_setup, xtensa_regs_info): New functions.
10141 (the_low_target): Adjust.
10142 (initialize_low_arch): New function.
10143 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
10144 (nios2_arch_setup): Set the current process'es tdesc.
10145 (target_regsets): Rename to ...
10146 (nios2_regsets): ... this.
10147 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
10148 (nios2_regs_info): New function.
10149 (the_low_target): Adjust.
10150 (initialize_low_arch): New function.
10151 * linux-aarch64-low.c (tdesc_aarch64): Declare.
10152 (aarch64_arch_setup): Set the current process'es tdesc.
10153 (target_regsets): Rename to ...
10154 (aarch64_regsets): ... this.
10155 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
10156 (aarch64_regs_info): New function.
10157 (the_low_target): Adjust.
10158 (initialize_low_arch): New function.
10159 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
10160 globals.
10161 (target_regsets): Rename to ...
10162 (tile_regsets): ... this.
10163 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
10164 (tile_regs_info): New function.
10165 (tile_arch_setup): Set the current process'es tdesc.
10166 (the_low_target): Adjust.
10167 (initialize_low_arch): New function.
10168 * spu-low.c (tdesc_spu): Declare.
10169 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
10170 * win32-arm-low.c (tdesc_arm): Declare.
10171 (arm_arch_setup): New function.
10172 (the_low_target): Install arm_arch_setup instead of
10173 init_registers_arm.
10174 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
10175 (init_windows_x86): Rename to ...
10176 (i386_arch_setup): ... this. Set `win32_tdesc'.
10177 (the_low_target): Adjust.
10178 * win32-low.c (win32_tdesc): New global.
10179 (child_add_thread): Don't create the thread cache here.
10180 (do_initial_child_stuff): Set the new process'es tdesc.
10181 * win32-low.h (struct target_desc): Forward declare.
10182 (win32_tdesc): Declare.
10183 * lynx-i386-low.c (tdesc_i386): Declare global.
10184 (lynx_i386_arch_setup): Set `lynx_tdesc'.
10185 * lynx-low.c (lynx_tdesc): New global.
10186 (lynx_add_process): Set the new process'es tdesc.
10187 * lynx-low.h (struct target_desc): Forward declare.
10188 (lynx_tdesc): Declare global.
10189 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
10190 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
10191 * nto-low.c (nto_tdesc): New global.
10192 (do_attach): Set the new process'es tdesc.
10193 * nto-low.h (struct target_desc): Forward declare.
10194 (nto_tdesc): Declare.
10195 * nto-x86-low.c (tdesc_i386): Declare.
10196 (nto_x86_arch_setup): Set `nto_tdesc'.
10197
10198 2013-06-04 Gary Benson <gbenson@redhat.com>
10199
10200 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
10201 to qSupported response when appropriate.
10202 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
10203 with nonzero-length annex.
10204 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
10205 arguments supplied in annex.
10206
10207 2013-05-31 Doug Evans <dje@google.com>
10208
10209 PR server/15594
10210 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
10211 64 bits in 64-cross-32 environment.
10212
10213 2013-05-28 Pedro Alves <palves@redhat.com>
10214
10215 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
10216 (aarch64-without-fpu.c): Delete rule.
10217 * configure.srv (aarch64*-*-linux*): Remove references to
10218 aarch64-without-fpu.o and aarch64-without-fpu.xml.
10219 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
10220 declaration.
10221
10222 2013-05-24 Pedro Alves <palves@redhat.com>
10223
10224 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
10225 instead of strchr/decode_address. Error if the range isn't split
10226 with a ','. Don't assume there's be a ':' in the action.
10227
10228 2013-05-23 Yao Qi <yao@codesourcery.com>
10229 Pedro Alves <palves@redhat.com>
10230
10231 * linux-low.c (lwp_in_step_range): New function.
10232 (linux_wait_1): If the thread was range stepping and stopped
10233 outside the stepping range, report the stop to GDB. Otherwise,
10234 continue stepping. Add range stepping debug output.
10235 (linux_set_resume_request): Copy the step range from the resume
10236 request to the lwp.
10237 (linux_supports_range_stepping): New.
10238 (linux_target_ops) <supports_range_stepping>: Set to
10239 linux_supports_range_stepping.
10240 * linux-low.h (struct linux_target_ops)
10241 <supports_range_stepping>: New field.
10242 (struct lwp_info) <step_range_start, step_range_end>: New fields.
10243 * linux-x86-low.c (x86_supports_range_stepping): New.
10244 (the_low_target) <supports_range_stepping>: Set to
10245 x86_supports_range_stepping.
10246 * server.c (handle_v_cont): Handle 'r' action.
10247 (handle_v_requests): Append ";r" if the target supports range
10248 stepping.
10249 * target.h (struct thread_resume) <step_range_start,
10250 step_range_end>: New fields.
10251 (struct target_ops) <supports_range_stepping>:
10252 New field.
10253 (target_supports_range_stepping): New macro.
10254
10255 2013-05-17 Joel Brobecker <brobecker@adacore.com>
10256
10257 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
10258 confusion in comment.
10259
10260 2013-05-17 Joel Brobecker <brobecker@adacore.com>
10261
10262 * lynx-low.c (struct process_info_private): New type.
10263 (lynx_add_process): New function.
10264 (lynx_create_inferior, lynx_attach): Replace calls to
10265 add_process by calls to lynx_add_process.
10266 (lynx_resume): If PTID is null, then try using
10267 current_process()->private->last_wait_event_ptid.
10268 Add comments.
10269 (lynx_clear_inferiors): Delete. The contents of that function
10270 has been inlined in lynx_mourn;
10271 (lynx_wait_1): Save the ptid in the process's private data.
10272 (lynx_mourn): Free the process' private data. Replace call
10273 to lynx_clear_inferiors by call to clear_inferiors.
10274
10275 2013-05-17 Yao Qi <yao@codesourcery.com>
10276
10277 * i386-low.c (i386_length_and_rw_bits): Move the comment to
10278 the right place.
10279
10280 2013-05-16 Luis Machado <lgustavo@codesourcery.com>
10281
10282 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
10283 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
10284 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
10285 PT_TEXT_END_ADDR guards. Update comments.
10286 (linux_target_op) <read_offsets>: Conditionally define to
10287 linux_read_offsets if the target is UCLIBC and if it defines
10288 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
10289
10290 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
10291 Andrew Jenner <andrew@codesourcery.com>
10292
10293 * Makefile.in (SFILES): Add linux-nios2-low.c.
10294 (clean): Add action to delete nios2-linux.c.
10295 (nios2-linux.c): New rule.
10296 * configure.srv: Add nios2*-*-linux*.
10297 * linux-nios2-low.c: New.
10298
10299 2013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
10300
10301 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
10302
10303 2013-04-25 Hui Zhu <hui@codesourcery.com>
10304
10305 PR gdb/15186
10306 * ax.c (ax_printf): Add fflush.
10307
10308 2013-04-22 Tom Tromey <tromey@redhat.com>
10309
10310 * Makefile.in (SFILES): Add filestuff.c.
10311 (OBS): Add filestuff.o.
10312 (filestuff.o): New target.
10313 * config.in, configure: Rebuild.
10314 * configure.ac: Check for fdwalk, pipe2.
10315
10316 2013-04-17 Pedro Alves <palves@redhat.com>
10317
10318 * configure.ac (USE_THREAD_DB): Delete variable.
10319 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
10320 Don't AC_SUBST USE_THREAD_DB.
10321 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
10322 * config.in, configure: Regenerate.
10323
10324 2013-04-16 Pedro Alves <palves@redhat.com>
10325
10326 * linux-low.h (struct lwp_info) <thread_known>: Move under
10327 the USE_THREAD_DB #ifdef.
10328
10329 2013-04-16 Pedro Alves <palves@redhat.com>
10330
10331 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
10332 (linux-low.o): Delete rule.
10333 * linux-low.h: Always include "gdb_thread_db.h" instead of
10334 conditionally including thread_db.h.
10335 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
10336 HAVE_THREAD_DB_H.
10337
10338 2013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
10339
10340 * Makefile.in (install-only): Fix make install regression.
10341
10342 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
10343
10344 Convert man pages to texinfo, new gdbinit.5 texinfo page.
10345 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
10346 installation.
10347 * gdbserver.1: Remove.
10348
10349 2013-03-22 Pedro Alves <palves@redhat.com>
10350
10351 * linux-low.c (handle_extended_wait): Don't call
10352 linux_enable_event_reporting.
10353
10354 2013-03-15 Tony Theodore <tonyt@logyst.com>
10355
10356 PR build/9098:
10357 * Makefile.in (SHELL): Use @SHELL@.
10358
10359 2013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
10360
10361 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
10362 compiler warning.
10363
10364 2013-03-13 Joel Brobecker <brobecker@adacore.com>
10365
10366 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
10367 Remove extraneous NULL element.
10368
10369 2013-03-13 Yao Qi <yao@codesourcery.com>
10370
10371 * tracepoint.c (traceframe_read_tsv): Look for the last matched
10372 'V' block in trace frame.
10373
10374 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10375
10376 * target.h (struct target_ops): Add btrace ops.
10377 (target_supports_btrace): New macro.
10378 (target_enable_btrace): New macro.
10379 (target_disable_btrace): New macro.
10380 (target_read_btrace): New macro.
10381 * gdbthread.h (struct thread_info): Add btrace field.
10382 * server.c: Include btrace-common.h.
10383 (handle_btrace_general_set): New function.
10384 (handle_btrace_enable): New function.
10385 (handle_btrace_disable): New function.
10386 (handle_general_set): Call handle_btrace_general_set.
10387 (handle_qxfer_btrace): New function.
10388 (struct qxfer qxfer_packets[]): Add btrace entry.
10389 * inferiors.c (remove_thread): Disable btrace.
10390 * linux-low: Include linux-btrace.h.
10391 (linux_low_enable_btrace): New function.
10392 (linux_low_read_btrace): New function.
10393 (linux_target_ops): Add btrace ops.
10394 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
10395 Add srv_linux_btrace=yes.
10396 (x86_64-*-linux*): Add linux-btrace.o.
10397 Add srv_linux_btrace=yes.
10398 * configure.ac: Define HAVE_LINUX_BTRACE.
10399 * config.in: Regenerated.
10400 * configure: Regenerated.
10401
10402 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10403
10404 * server.c (handle_qxfer): Preserve error message if -3 is
10405 returned.
10406 (qxfer): Document the -3 return value.
10407
10408 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10409
10410 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
10411 (linux_btrace_h): New variable.
10412 (linux-btrace.o): New rule.
10413
10414 2013-03-08 Stan Shebs <stan@codesourcery.com>
10415 Hafiz Abid Qadeer <abidh@codesourcery.com>
10416
10417 * tracepoint.c (trace_buffer_size): New global.
10418 (DEFAULT_TRACE_BUFFER_SIZE): New define.
10419 (init_trace_buffer): Change to one-argument function. Allocate
10420 trace buffer memory.
10421 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
10422 handle QTBuffer:size packet.
10423 (cmd_bigqtbuffer_size): New function.
10424 (initialize_tracepoint): Call init_trace_buffer with
10425 DEFAULT_TRACE_BUFFER_SIZE.
10426 * server.c (handle_query): Add QTBuffer:size in the
10427 supported packets.
10428
10429 2013-03-07 Yao Qi <yao@codesourcery.com>
10430
10431 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
10432 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
10433 of -1.
10434 (cmd_qtsp): Adjust condition. Do post increment.
10435 Set cur_action and cur_step_action back to 0.
10436
10437 2013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
10438
10439 PR server/15236
10440 * linux-low.c (linux_write_memory): Return early success if LEN is
10441 zero.
10442
10443 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
10444
10445 * configure.srv: Add x86_64-*-cygwin* as target.
10446
10447 2013-02-28 Tom Tromey <tromey@redhat.com>
10448
10449 * configure.ac: Invoke AC_SYS_LARGEFILE.
10450 * configure, config.in: Rebuild.
10451
10452 2013-02-28 Corinna Vinschen <vinschen@redhat.com>
10453
10454 * win32-low.c: Throughout, fix format strings and casts of
10455 printf-like functions to avoid type related warnings on all
10456 platforms.
10457 (get_child_debug_event): Print dwDebugEventCode as hex since
10458 that's how it's usually documented.
10459
10460 2013-02-28 Yao Qi <yao@codesourcery.com>
10461
10462 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
10463 pulongest.
10464
10465 2013-02-27 Jiong Wang <jiwang@tilera.com>
10466
10467 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
10468 (reg-tilegx32.c): New rule.
10469 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
10470 * linux-tile-low.c (tile_arch_setup): New function. Invoke
10471 different register info initializer according to elf class.
10472 (init_registers_tilgx32): New function. The tilegx32 register info
10473 initializer.
10474 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
10475 (tile_store_gregset): Likewise.
10476
10477 2013-02-27 Yao Qi <yao@codesourcery.com>
10478
10479 * server.c (process_point_options): Print debug message when
10480 debug_threads is true.
10481
10482 2013-02-26 Yao Qi <yao@codesourcery.com>
10483
10484 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
10485
10486 2013-02-19 Pedro Alves <palves@redhat.com>
10487 Kai Tietz <ktietz@redhat.com>
10488
10489 PR gdb/15161
10490
10491 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
10492 instead of strtoul to extract address from packet.
10493 (process_serial_event) <'z'>: Likewise.
10494
10495 2013-02-18 Yao Qi <yao@codesourcery.com>
10496
10497 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
10498
10499 2013-02-14 Pedro Alves <palves@redhat.com>
10500
10501 Plug memory leak.
10502
10503 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
10504 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
10505
10506 2013-02-14 Pedro Alves <palves@redhat.com>
10507
10508 * tracepoint.c (cmd_qtdpsrc): Use savestring.
10509
10510 2013-02-14 Pedro Alves <palves@redhat.com>
10511
10512 * tracepoint.c (save_string): Delete.
10513 (add_tracepoint_action): Use savestring instead of save_string.
10514
10515 2013-02-12 Pedro Alves <palves@redhat.com>
10516
10517 * linux-xtensa-low.c: Ditto.
10518 * xtensa-xtregs.c: Ditto.
10519
10520 2013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10521
10522 * thread-db.c (thread_db_get_tls_address): NULL pointer check
10523 thread_db.
10524
10525 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
10526
10527 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
10528 aarch64_num_wp_regs and aarch64_num_bp_regs to
10529 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
10530
10531 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
10532
10533 * linux-aarch64-low.c (ps_get_thread_area): Replace
10534 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
10535
10536 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10537 Marcus Shawcroft <marcus.shawcroft@arm.com>
10538 Nigel Stephens <nigel.stephens@arm.com>
10539 Yufeng Zhang <yufeng.zhang@arm.com>
10540
10541 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
10542 (aarch64.c, aarch64-without-fpu.c): New targets.
10543 * configure.srv (aarch64*-*-linux*): New.
10544 * linux-aarch64-low.c: New file.
10545
10546 2013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
10547
10548 * linux-low.c (handle_extended_wait, linux_create_inferior)
10549 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
10550 (dequeue_one_deferred_signal, linux_resume_one_thread)
10551 (fetch_register, linux_write_memory, linux_enable_event_reporting)
10552 (linux_tracefork_grandchild, linux_test_for_tracefork)
10553 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
10554 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
10555 where the argument is 0.
10556
10557 2013-01-25 Yao Qi <yao@codesourcery.com>
10558
10559 * event-loop.c: Include "queue.h".
10560 (gdb_event_p): New typedef.
10561 (struct gdb_event) <next_event>: Remove.
10562 (event_queue): Change to QUEUE(gdb_event_p).
10563 (async_queue_event): Remove.
10564 (gdb_event_xfree): New.
10565 (initialize_event_loop): New.
10566 (process_event): Use API from QUEUE.
10567 (wait_for_event): Likewise.
10568 * server.c (main): Call initialize_event_loop.
10569 * server.h (initialize_event_loop): Declare.
10570
10571 2013-01-18 Yao Qi <yao@codesourcery.com>
10572
10573 * ax.h (struct eval_agent_expr_context): New.
10574 (gdb_eval_agent_expr): Update declaration.
10575 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
10576 TFRAME. Add new argument CTX.
10577 * server.h (struct eval_agent_expr_context): Declare.
10578 (agent_mem_read, agent_tsv_read): Update declaration.
10579 (agent_mem_read_string): Likewise.
10580 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
10581 (add_traceframe_block): Add new argument TPOINT.
10582 Increase TPOINT->traceframe_usage.
10583 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
10584 eval_tracepoint_agent_expr.
10585 (condition_true_at_tracepoint): Likewise.
10586 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
10587 (agent_mem_read_string, agent_tsv_read): Likewise.
10588
10589 2013-01-16 Yao Qi <yao@codesourcery.com>
10590
10591 * linux-low.c (linux_resume_one_lwp): Don't check
10592 'lwp->bp_reinsert != 0'.
10593
10594 2013-01-07 Joel Brobecker <brobecker@adacore.com>
10595 Pedro Alves <palves@redhat.com>
10596
10597 * lynx-low.c (ptrace_request_to_str): Define a temporary
10598 macro and use it to simplify this function's implementation.
10599
10600 2013-01-07 Joel Brobecker <brobecker@adacore.com>
10601
10602 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
10603 sets errno.
10604
10605 2013-01-07 Joel Brobecker <brobecker@adacore.com>
10606
10607 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
10608
10609 2013-01-07 Joel Brobecker <brobecker@adacore.com>
10610
10611 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
10612
10613 2013-01-07 Joel Brobecker <brobecker@adacore.com>
10614
10615 * lynx-low.c (lynx_resume): Use the resume_info parameter
10616 to determine the ptid for the lynx_ptrace call, unless
10617 it is equal to minus_one_ptid, in which case we use the
10618 ptid of the current_inferior.
10619 (lynx_wait_1): After having received a thread create/exit
10620 event, resume the inferior's execution using the signaling
10621 thread's ptid, rather than the old ptid.
10622
10623 2013-01-07 Joel Brobecker <brobecker@adacore.com>
10624
10625 * lynx-low.c (lynx_resume): Delete variable ret.
10626
10627 2013-01-01 Joel Brobecker <brobecker@adacore.com>
10628
10629 * gdbreplay.c (gdbreplay_version): Update copyright year.
10630 * server.c (gdbserver_version): Likewise.
10631
10632 2012-12-17 Joel Brobecker <brobecker@adacore.com>
10633
10634 * lynx-low.c (lynx_wait_1): Add debug trace before adding
10635 new thread.
10636
10637 2012-12-17 Joel Brobecker <brobecker@adacore.com>
10638
10639 * lynx-low.c (ptrace_request_to_str): Add handling for
10640 PTRACE_GETTRACESIG.
10641
10642 2012-12-17 Joel Brobecker <brobecker@adacore.com>
10643
10644 * lynx-low.c (lynx_attach): Delete variable new_process.
10645
10646 2012-12-17 Joel Brobecker <brobecker@adacore.com>
10647
10648 * lynx-low.c (lynx_create_inferior): Delete variable
10649 new_process.
10650
10651 2012-12-17 Joel Brobecker <brobecker@adacore.com>
10652
10653 * lynx-low.c (ptrace_request_to_str): Do not handle
10654 PTRACE_GETTHREADLIST if this macro does not exist.
10655
10656 2012-12-15 Yao Qi <yao@codesourcery.com>
10657
10658 * Makefile.in (OBS): Add notif.o.
10659 * notif.c, notif.h: New.
10660 * server.c: Include "notif.h".
10661 (struct vstop_notif) <next>: Remove.
10662 <base>: New field.
10663 (queue_stop_reply): Update.
10664 (push_event, send_next_stop_reply): Remove.
10665 (discard_queued_stop_replies): Update.
10666 (notif_stop): New variable.
10667 (handle_v_stopped): Remove.
10668 (handle_v_requests): Don't call handle_v_stopped. Call
10669 handle_ack_notif instead.
10670 (queue_stop_reply_callback): Call notif_event_enque instead
10671 of queue_stop_reply.
10672 (handle_status): Don't call send_next_stop_reply, call
10673 notif_write_event instead.
10674 (kill_inferior_callback): Likewise.
10675 (detach_or_kill_inferior_callback): Likewise.
10676 (main): Call initialize_notif.
10677 (process_serial_event): Call QUEUE_is_empty.
10678 (handle_target_event): Call notif_push instead of push event.
10679 * server.h (push_event): Remove declaration.
10680
10681 2012-12-10 Tom Tromey <tromey@redhat.com>
10682
10683 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
10684 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
10685 macros.
10686 (.c.o): Rewrite.
10687 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
10688 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
10689 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
10690 (amd64-linux-ipa.o, ax.o): Rewrite.
10691 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
10692 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
10693 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
10694 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
10695 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
10696 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
10697 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
10698 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
10699 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
10700 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
10701 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
10702 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
10703 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
10704 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
10705 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
10706 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
10707 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
10708 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
10709 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
10710 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
10711 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
10712 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
10713 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
10714 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
10715 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
10716 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
10717 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
10718 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
10719 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
10720 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
10721 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
10722 (reg-tilegx.o): Remove.
10723 (all_object_files): New macro.
10724 Include .deps files.
10725 * aclocal.m4, configure: Rebuild.
10726 * acinclude.m4: Include depstand.m4, lead-dot.m4.
10727 * configure.ac: Invoke ZW_CREATE_DEPDIR,
10728 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
10729
10730 2012-12-05 Tom Tromey <tromey@redhat.com>
10731
10732 PR gdb/14917:
10733 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
10734
10735 2012-11-28 Markus Metzger <markus.t.metzger@intel.com>
10736
10737 * configure.ac: Check for linux/perf_event.h.
10738 * config.in: Regenerated.
10739 * configure: Regenerated.
10740
10741 2012-11-26 Maxime Villard <rustyBSD@gmx.fr>
10742
10743 * hostio.c (handle_readlink): Decrease buffer size
10744 parameter passed to readlink by one byte.
10745
10746 2012-11-26 Yao Qi <yao@codesourcery.com>
10747
10748 * configure.ac (build_warnings): Append '-Wempty-body'.
10749 * configure: Regenerated.
10750 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
10751 body.
10752
10753 2012-11-15 Pierre Muller <muller@sourceware.org>
10754
10755 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
10756 * config.in: Regenerate.
10757 * configure: Regenerate.
10758 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
10759 Use "gdb_wait.h" header instead of <sys/wait.h> header.
10760 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
10761 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
10762 header.
10763 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
10764 instead of <sys/wait.h> header.
10765 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
10766
10767 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
10768
10769 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
10770 (various make rules): Remove -DGDBSERVER
10771
10772 2012-11-09 Yao Qi <yao@codesourcery.com>
10773
10774 * spu-low.c (current_ptid): Move it to ..
10775 * gdbthread.h: ... here. New.
10776 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
10777 * server.c (myresume, process_serial_event): Likewise.
10778 * thread-db.c (thread_db_find_new_threads): Likewise.
10779 * tracepoint.c (run_inferior_command): Likewise.
10780
10781 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
10782
10783 * server.c (handle_search_memory_1): Include access length in
10784 warning message.
10785
10786 2012-09-05 Michael Brandt <michael.brandt@axis.com>
10787
10788 * linux-crisv32-low.c: Fix compile errors.
10789
10790 2012-09-04 Yao Qi <yao@codesourcery.com>
10791
10792 * tracepoint.c (cmd_qtsv): Adjust debug message.
10793 Don't check CUR_TPOINT.
10794
10795 2012-08-28 Yao Qi <yao@codesourcery.com>
10796
10797 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
10798 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
10799 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
10800 Remove declarations of xmalloc, xreallloc, xstrdup and
10801 freeargv.
10802 * Makefile.in (libiberty_h): New.
10803 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
10804 (linux-bfin-low.o): Append dependency 'libiberty.h'.
10805
10806 2012-08-23 Yao Qi <yao@codesourcery.com>
10807
10808 * server.h: Remove declaration of 'xsnprintf'.
10809
10810 2012-08-22 Keith Seitz <keiths@redhat.com>
10811
10812 * server.h: Include build-gnulib-gbserver/config.h.
10813 * gdbreplay.c: Likewise.
10814
10815 2012-08-08 Doug Evans <dje@google.com>
10816
10817 * Makefile.in (SFILES): Add gdb_vecs.c.
10818 (OBS): Add gdb_vecs.o.
10819 (gdb_vecs_h, host_defs_h): New variables.
10820 (thread-db.o): Add $(gdb_vecs_h) dependency.
10821 (gdb_vecs.o): New rule.
10822 * thread-db.c: #include "gdb_vecs.h".
10823 (thread_db_load_search): Use a vector to iterate over path elements.
10824 Handle text appearing after "$pdir".
10825
10826 * configure.ac: Add check for strstr.
10827 * config.in: Regenerate.
10828 * configure: Regenerate.
10829
10830 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10831
10832 * hostio.c (handle_pread): If pread fails, fall back to attempting
10833 lseek/read.
10834 (handle_pwrite): Likewise for pwrite.
10835
10836 2012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
10837
10838 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
10839 between unsupported TYPE and unimplementable ADDR/LEN combination.
10840 (arm_insert_point): Act on new return value.
10841
10842 2012-07-31 Pedro Alves <palves@redhat.com>
10843
10844 * server.c (process_point_options): Only skip tokens if we find
10845 one that is unrecognized. Don't treat 'X' specially while
10846 skipping unrecognized tokens.
10847
10848 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
10849
10850 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
10851 to 4-byte-align HW breakpoint addresses for Thumb.
10852
10853 2012-07-27 Yao Qi <yao@codesourcery.com>
10854
10855 PR remote/14161.
10856
10857 * server.h: Declare gdb_agent_about_to_close.
10858 * target.c (kill_inferior): Include "agent.h".
10859 New. Send command 'kill'.
10860 * target.h (kill_inferior): Removed macro.
10861 * tracepoint.c (gdb_agent_about_to_close): New.
10862 (gdb_agent_helper_thread): Handle command 'close'.
10863 Wait endlessly until the inferior stops.
10864 Install gdb_agent_remove_socket to atexit hook.
10865 (agent_socket_name): New static variable.
10866 (gdb_agent_socket_init): Replace local variable 'name' with
10867 'agent_socket_name'.
10868 (gdb_agent_remove_socket): New.
10869
10870 2012-07-27 Yao Qi <yao@codesourcery.com>
10871
10872 * server.c (process_point_options): Stop at 'X' when parsing.
10873
10874 2012-07-19 Michael Eager <eager@eagercon.com>
10875
10876 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
10877 to hw_execute.
10878 * linux-x86-low.c (x86_insert_point, x86_remove_point):
10879 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
10880 hardware breakpoint.
10881
10882 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
10883
10884 * gdbserver/linux-low.c (initialize_low): Call
10885 linux_ptrace_init_warnings.
10886
10887 2012-07-02 Doug Evans <dje@google.com>
10888
10889 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
10890 pointer to int.
10891
10892 2012-07-02 Stan Shebs <stan@codesourcery.com>
10893
10894 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
10895 (ax.o): Add it to build rule.
10896 (ax-ipa.o): Ditto.
10897 (OBS): Add format.o.
10898 (IPA_OBS): Add format.o.
10899 * server.c (handle_query): Claim support for breakpoint commands.
10900 (process_point_options): Add command case.
10901 (process_serial_event): Leave running if there are printfs in
10902 effect.
10903 * mem-break.h (any_persistent_commands): Declare.
10904 (add_breakpoint_commands): Declare.
10905 (gdb_no_commands_at_breakpoint): Declare.
10906 (run_breakpoint_commands): Declare.
10907 * mem-break.c (struct point_command_list): New struct.
10908 (struct breakpoint): New field command_list.
10909 (any_persistent_commands): New function.
10910 (add_commands_to_breakpoint): New function.
10911 (add_breakpoint_commands): New function.
10912 (gdb_no_commands_at_breakpoint): New function.
10913 (run_breakpoint_commands): New function.
10914 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
10915 locally.
10916 * ax.c: Include format.h.
10917 (ax_printf): New function.
10918 (gdb_eval_agent_expr): Add printf opcode.
10919
10920 2012-06-13 Yao Qi <yao@codesourcery.com>
10921
10922 * server.c (start_inferior): Remove duplicated writes to fields
10923 'last_resume_kind' and 'last_status' of 'current_inferior'.
10924
10925 2012-06-12 Yao Qi <yao@codesourcery.com>
10926 Pedro Alves <palves@redhat.com>
10927
10928 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
10929 comment.
10930 * server.c (handle_v_cont): Extend comment.
10931
10932 2012-06-11 Yao Qi <yao@codesourcery.com>
10933
10934 * linux-low.c (linux_attach): Add 'static'.
10935
10936 2012-06-06 Yao Qi <yao@codesourcery.com>
10937
10938 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
10939
10940 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10941
10942 Fix gcc -flto compilation warning.
10943 * server.c (main): Make variable multi_mode and attach volatile.
10944
10945 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
10946
10947 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
10948 if the platform doesn't know about it.
10949
10950 2012-05-30 Jeff Kenton <jkenton@tilera.com>
10951
10952 * Makefile.in (SFILES): Add linux-tile-low.c.
10953 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
10954 * configure.srv: Handle tilegx-*-linux*.
10955 * linux-tile-low.c: New file.
10956
10957 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
10958
10959 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
10960
10961 2012-05-24 Pedro Alves <palves@redhat.com>
10962
10963 PR gdb/7205
10964
10965 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
10966
10967 2012-05-24 Pedro Alves <palves@redhat.com>
10968
10969 PR gdb/7205
10970
10971 Replace target_signal with gdb_signal throughout.
10972
10973 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
10974
10975 * linux-low.c (linux_store_registers): Avoid the copying sequence
10976 when no data has been retrieved by ptrace.
10977
10978 2012-05-22 Will Deacon <will.deacon@arm.com>
10979
10980 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
10981 Include asm/ptrace.h.
10982 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
10983 already defined.
10984
10985 2012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
10986
10987 * linux-low.c (linux_store_registers): Don't re-retrieve data
10988 with ptrace that has already been obtained from /proc. Always
10989 copy any data retrieved with ptrace to the buffer supplied.
10990
10991 2012-05-11 Yao Qi <yao@codesourcery.com>
10992 Pedro Alves <palves@redhat.com>
10993
10994 * linux-low.c (enum stopping_threads_kind): New.
10995 (stopping_threads): Change type to `enum stopping_threads_kind'.
10996 (handle_extended_wait): If stopping and suspending threads, leave
10997 the new_lwp suspended too.
10998 (linux_wait_for_event): Adjust.
10999 (stop_all_lwps): Set `stopping_threads' to
11000 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
11001 whether we're suspending threads or just stopping them. Assert no
11002 recursion happens.
11003
11004 2012-04-29 Yao Qi <yao@codesourcery.com>
11005
11006 * server.h: Move some code to ...
11007 * gdbthread.h: ... here. New.
11008 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
11009 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
11010 (nto-low.o, win32-low.o): Likewise.
11011 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
11012 * regcache.c, remote-utils.c, server.c: Likewise.
11013 * target.c, tracepoint.c, win32-low.c: Likewise.
11014
11015 2012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
11016
11017 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
11018 (PTRACE_ARG4_TYPE): Likewise.
11019 (PTRACE_XFER_TYPE): Likewise.
11020 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
11021 ptrace to PTRACE_ARG3_TYPE.
11022 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
11023 (PTRACE_ARG4_TYPE): Likewise.
11024 (PTRACE_XFER_TYPE): Likewise.
11025 (linux_detach_one_lwp): Cast fourth argument of
11026 ptrace to long then PTRACE_ARG4_TYPE.
11027 (regsets_fetch_inferior_registers): Cast third argument of
11028 ptrace to long then PTRACE_ARG3_TYPE.
11029 (regsets_store_inferior_registers): Likewise.
11030
11031 2012-04-20 Pedro Alves <palves@redhat.com>
11032
11033 * configure: Regenerate.
11034
11035 2012-04-19 Pedro Alves <palves@redhat.com>
11036
11037 * Makefile.in (GNULIB_BUILDDIR): New.
11038 (LIBGNU, INCGNU, GNULIB_H): Adjust.
11039 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
11040 (all, install-only, uninstall, clean-info, all-lib, clean): No
11041 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
11042 (maintainer-clean realclean distclean): Use subdir_do.
11043 (subdir_do): New.
11044 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
11045 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
11046 * acinclude.m4: Include acx_configure_dir.m4.
11047 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
11048 calls. Call AC_PROG_RANLIB. Configure gnulib using
11049 ACX_CONFIGURE_DIR.
11050 (GNULIB): New.
11051 (GNULIB_STDINT_H): Adjust.
11052 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
11053 * gdbreplay.c: Include build-gnulib/config.h.
11054 * server.h: Likewise.
11055 * aclocal.m4: Regenerate.
11056 * config.in: Regenerate.
11057 * configure: Regenerate.
11058
11059 2012-04-19 Pedro Alves <palves@redhat.com>
11060
11061 * Makefile.in (LIBGNU, INCGNU): Adjust.
11062 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
11063 (all, install-only, uninstall, clean-info, all-lib, clean)
11064 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
11065 * configure.ac: Adjust AC_OUTPUT output.
11066 * aclocal.m4: Regenerate.
11067 * configure: Regenerate.
11068
11069 2012-04-19 Pedro Alves <palves@redhat.com>
11070
11071 * Makefile.in (generated_files): New.
11072 (server_h): Remove the explicit dependency on config.h, and depend
11073 on $generated_files.
11074
11075 2012-04-19 Pedro Alves <palves@redhat.com>
11076
11077 * Makefile.in (INCGNU): Add -Ignulib.
11078
11079 2012-04-19 Pedro Alves <palves@redhat.com>
11080
11081 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
11082 (INCGNU): ... this, and spell out -I here.
11083 (GNULIB_LIB): Rename to ...
11084 (LIBGNU): ... this.
11085 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
11086
11087 2012-04-19 Pedro Alves <palves@redhat.com>
11088
11089 * config.in: Regenerate.
11090
11091 2012-04-19 Pedro Alves <palves@redhat.com>
11092
11093 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
11094 * server.h (memmem): Remove declaration.
11095 * config.in: Regenerate.
11096 * configure: Regenerate.
11097
11098 2012-04-19 Yao Qi <yao@codesourcery.com>
11099
11100 * Makefile.in (SFILES): Add common/vec.c.
11101 (OBS): Add vec.o.
11102 (vec.o): New rule.
11103
11104 2012-04-19 Yao Qi <yao@codesourcery.com>
11105
11106 * remote-utils.c (prepare_resume_reply): Replace with macro
11107 target_core_of_thread.
11108 * server.c (handle_qxfer_threads_proper): Likewise.
11109 * target.h (traget_core_of_thread): New macro.
11110
11111 2012-04-18 Pedro Alves <palves@redhat.com>
11112
11113 * aclocal.m4: Regenerate.
11114 * configure: Regenerate.
11115
11116 2012-04-16 Yao Qi <yao@codesourcery.com>
11117
11118 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
11119 duplicated on address.
11120
11121 2012-04-16 Yao Qi <yao@codesourcery.com>
11122
11123 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
11124 (struct tracepoint_action_ops) <send>: New field.
11125 (m_tracepoint_action_send, r_tracepoint_action_send): New.
11126 (agent_expr_send, x_tracepoint_action_send): New.
11127 (l_tracepoint_action_send): New.
11128 (cmd_qtdp): Download and install tracepoint
11129 according to `use_agent'.
11130 (run_inferior_command): Add one more parameter `len'.
11131 Update callers.
11132 (tracepoint_send_agent): New.
11133 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
11134
11135 2012-04-16 Yao Qi <yao@codesourcery.com>
11136
11137 * tracepoint.c (download_tracepoints): Moved to ...
11138 (cmd_qtstart): ... here.
11139
11140 2012-04-14 Yao Qi <yao@codesourcery.com>
11141
11142 * tracepoint.c: Include inttypes.h.
11143 (struct collect_memory_action): Use sized types.
11144 (struct tracepoint): Likewise.
11145 (cmd_qtdp, stop_tracing): Update print specifiers.
11146 (cmd_qtp, response_tracepoint): Likewise.
11147 (collect_data_at_tracepoint): Likewise.
11148 (collect_data_at_step): Likewise.
11149
11150 2012-04-14 Yao Qi <yao@codesourcery.com>
11151
11152 Import gnulib module inttypes.
11153 * aclocal.m4, config.in, configure: Regenerated.
11154
11155 2012-04-14 Yao Qi <yao@codesourcery.com>
11156
11157 * Makefile.in (maintainer-clean, realclean, distclean): Remove
11158 Makefile and config.status at last.
11159
11160 2012-04-13 Yao Qi <yao@codesourcery.com>
11161
11162 * tracepoint.c: Include stdint.h unconditionally.
11163
11164 2012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
11165
11166 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
11167 on BFD_HAVE_SYS_PROCFS_TYPE.
11168 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
11169 * configure: Regenerate.
11170 * config.in: Likewise.
11171
11172 2012-04-13 H.J. Lu <hongjiu.lu@intel.com>
11173
11174 * Makefile.in (clean): Also remove x32.c x32-linux.c
11175 x32-avx.c x32-avx-linux.c.
11176 (x32.o): New target.
11177 (x32.c): Likewise.
11178 (x32-linux.o): Likewise.
11179 (x32-linux.c): Likewise.
11180 (x32-avx.o): Likewise.
11181 (x32-avx.c): Likewise.
11182 (x32-avx-linux.o): Likewise.
11183 (x32-avx-linux.c): Likewise.
11184
11185 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
11186 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
11187 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
11188 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
11189 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
11190 i386/x32-avx-linux.xml.
11191
11192 * linux-x86-low.c (init_registers_x32_linux): New prototype.
11193 (init_registers_x32_avx_linux): Likwise.
11194 (x86_linux_update_xmltarget): Call init_registers_x32_linux
11195 or init_registers_x32_avx_linux if linux_is_elf64 is false.
11196
11197 2012-04-13 Pedro Alves <palves@redhat.com>
11198
11199 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
11200 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
11201 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
11202 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
11203 the sub-make.
11204
11205 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
11206
11207 * linux-x86-low.c (compat_x32_clock_t): New.
11208 (compat_x32_siginfo_t): Likewise.
11209 (compat_x32_siginfo_from_siginfo): Likewise.
11210 (siginfo_from_compat_x32_siginfo): Likewise.
11211 (linux_is_elf64): Likewise.
11212 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
11213 and siginfo_from_compat_x32_siginfo for x32.
11214 (x86_arch_setup): Set linux_is_elf64.
11215
11216 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
11217
11218 PR gdb/13969
11219 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
11220 e_machine field.
11221 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
11222 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
11223 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
11224 compatible with process.
11225
11226 2012-04-12 Yao Qi <yao@codesourcery.com>
11227
11228 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
11229 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
11230 (install-only, install-info, clean): Handle sub dir gnulib.
11231 (all-lib, am--refresh): New targets.
11232 (memmem.o): Remove target.
11233 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
11234 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
11235 (AC_REPLACE_FUNCS): Remove memmem.
11236 Invoke gl_INIT and AM_INIT_AUTOMAKE.
11237 (AC_OUTPUT): Generate Makefile in gnulib/.
11238 * aclocal.m4, config.in, configure: Regenerated.
11239
11240 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
11241
11242 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
11243
11244 2012-04-05 Pedro Alves <palves@redhat.com>
11245
11246 -Werror=strict-aliasing
11247
11248 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
11249 pointer.
11250
11251 2012-04-04 Pedro Alves <palves@redhat.com>
11252
11253 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
11254 (sparc_store_gregset_from_stack, sparc_store_gregset)
11255 (sparc_breakpoint_at): Fix formatting.
11256
11257 2012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
11258
11259 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
11260 are available.
11261 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
11262 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
11263 * config.in: Regenerate.
11264 * configure: Likewise.
11265
11266 2012-03-29 Pedro Alves <palves@redhat.com>
11267
11268 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
11269 Correct ptrace arguments.
11270
11271 2012-03-28 Pedro Alves <palves@redhat.com>
11272
11273 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
11274 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
11275 (IA64_FR1_REGNUM): New defines.
11276 (ia64_fetch_register): New.
11277 (the_low_target): Install it.
11278 * linux-low.h (struct linux_target_ops) <fetch_register>: New
11279 field.
11280 * linux-low.c (linux_fetch_registers): Try the
11281 the_low_target.fetch_register hook first.
11282
11283 * linux-arm-low.c (the_low_target): Adjust.
11284 * linux-bfin-low.c (the_low_target): Adjust.
11285 * linux-cris-low.c (the_low_target): Adjust.
11286 * linux-crisv32-low.c (the_low_target): Adjust.
11287 * linux-m32r-low.c (the_low_target): Adjust.
11288 * linux-m68k-low.c (the_low_target): Adjust.
11289 * linux-mips-low.c (the_low_target): Adjust.
11290 * linux-ppc-low.c (the_low_target): Adjust.
11291 * linux-s390-low.c (the_low_target): Adjust.
11292 * linux-sh-low.c (the_low_target): Adjust.
11293 * linux-sparc-low.c (the_low_target): Adjust.
11294 * linux-tic6x-low.c (the_low_target): Adjust.
11295 * linux-x86-low.c (the_low_target): Adjust.
11296 * linux-xtensa-low.c (the_low_target): Adjust.
11297
11298 2012-03-26 Pedro Alves <palves@redhat.com>
11299
11300 * server.c (handle_qxfer_libraries): Don't bail early if
11301 the_target->qxfer_libraries_svr4 is not NULL.
11302
11303 2012-03-26 Pedro Alves <palves@redhat.com>
11304
11305 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
11306
11307 2012-03-23 Pedro Alves <palves@redhat.com>
11308
11309 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
11310 "library-list-svr4" element's start tag when the the DSO list is
11311 empty.
11312
11313 2012-03-23 Pedro Alves <palves@redhat.com>
11314
11315 * linux-low.c (read_one_ptr): Read the inferior's pointer through
11316 a variable whose type size is the same as the inferior's pointer
11317 size.
11318
11319 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
11320
11321 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
11322 struct siginfo.
11323 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
11324 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
11325 * linux-low.h: Include <signal.h>.
11326 (struct siginfo): Remove forward declaration.
11327 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
11328 struct siginfo.
11329
11330 2012-03-21 Mike Frysinger <vapier@gentoo.org>
11331
11332 * .gitignore: Ignore more files.
11333
11334 2012-03-19 Pedro Alves <palves@redhat.com>
11335 Jan Kratochvil <jan.kratochvil@redhat.com>
11336
11337 * server.c (cont_thread, general_thread): Add describing comments.
11338 (start_inferior): Clear `cont_thread'.
11339 (handle_v_cont): Don't set `cont_thread' if resuming all threads
11340 of a process.
11341
11342 2012-03-15 Yao Qi <yao@codesourcery.com>
11343
11344 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
11345 handling to ...
11346 (cmd_qtdp): ... here.
11347
11348 2012-03-15 Yao Qi <yao@codesourcery.com>
11349
11350 * tracepoint.c (struct tracepoint_action_ops): New.
11351 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
11352 (m_tracepoint_action_download): New.
11353 (r_tracepoint_action_download): New.
11354 (x_tracepoint_action_download): New.
11355 (l_tracepoint_action_download): New.
11356 (add_tracepoint_action): Install `action->ops' according type.
11357 (download_tracepoint_1): Move code `download' function pointer
11358 of various tracepoint_action_ops.
11359
11360 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11361
11362 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
11363 linux_ptrace_attach_warnings.
11364
11365 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11366
11367 * Makefile.in (linux-ptrace.o): New.
11368 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
11369 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
11370 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
11371 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
11372 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
11373 of these targets.
11374 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
11375
11376 2012-03-08 Yao Qi <yao@codesourcery.com>
11377 Pedro Alves <palves@redhat.com>
11378
11379 Fix PR server/13392.
11380 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
11381 offset of JMP insn.
11382 * tracepoint.c (remove_tracepoint): New.
11383 (cmd_qtdp): Call remove_tracepoint when failed to install.
11384
11385 2012-03-07 Pedro Alves <palves@redhat.com>
11386
11387 * linux-low.c (get_detach_signal): New.
11388 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
11389 Pass on pending signals to PTRACE_DETACH. Check the result of the
11390 ptrace call.
11391 * server.c (program_signals, program_signals_p): New.
11392 (handle_general_set): Handle QProgramSignals.
11393 * server.h (program_signals, program_signals_p): Declare.
11394
11395 2012-03-05 Pedro Alves <palves@redhat.com>
11396 Jan Kratochvil <jan.kratochvil@redhat.com>
11397
11398 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
11399 New comment why.
11400
11401 2012-03-03 Yao Qi <yao@codesourcery.com>
11402
11403 * tracepoint.c (tracepoint_look_up_symbols): Update call to
11404 agent_look_up_symbols.
11405
11406 2012-03-03 Yao Qi <yao@codesourcery.com>
11407
11408 * Makefile.in (linux-low.o): Keep dependence on agent.h.
11409 (linux-x86-low.o): Likewise.
11410 * server.h: Remove in_process_agent_loaded.
11411 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
11412 common/agent.c.
11413 Update callers.
11414
11415 2012-03-03 Yao Qi <yao@codesourcery.com>
11416
11417 * tracepoint.c (gdb_agent_capability): New global.
11418 (in_process_agent_loaded_ust): Renamed to
11419 `in_process_agent_supports_ust'.
11420 Update callers.
11421 (in_process_agent_supports_ust): Call agent_capability_check.
11422 (clear_installed_tracepoints): Assert that agent supports
11423 agent.
11424
11425 2012-03-03 Yao Qi <yao@codesourcery.com>
11426
11427 * linux-low.c (linux_supports_agent): New.
11428 (linux_target_ops): Initialize field `supports_agent' with
11429 linux_supports_agent.
11430 * target.h (struct target_ops) <supports_agent>: New.
11431 (target_supports_agent): New macro.
11432 * server.c (handle_general_set): Handle packet 'QAgent'.
11433 (handle_query): Send `QAgent+'.
11434 * Makefile.in (server.o): Depends on agent.h.
11435
11436 2012-03-03 Yao Qi <yao@codesourcery.com>
11437
11438 * Makefile.in (OBS): Add agent.o.
11439 Add new rule for agent.o.
11440 Track dependence of tracepoint.c on agent.h.
11441 * tracepoint.c (run_inferior_command_1):
11442 (run_inferior_command): Call agent_run_command.
11443 (gdb_ust_connect_sync_socket): Deleted. Move it to
11444 common/agent.c.
11445 (resume_thread, stop_thread): Likewise.
11446 (gdb_ust_socket_init): Renamed to ...
11447 (gdb_agent_socket_init): ... New.
11448 (gdb_ust_thread): Renamed to ...
11449 (gdb_agent_helper_thread): ... New.
11450 (gdb_ust_init): Move some code to ...
11451 (gdb_agent_init): ... here. New.
11452 [HAVE_UST]: Call gdb_ust_init.
11453 (initialize_tracepoint_ftlib): Call gdb_agent_init.
11454 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
11455 * config.in, configure: Regenerated.
11456
11457 2012-03-02 Pedro Alves <palves@redhat.com>
11458
11459 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
11460 * linux-low.c (struct simple_pid_list): New.
11461 (stopped_pids): New a struct simple_pid_list pointer.
11462 (add_to_pid_list, pull_pid_from_list): New.
11463 (handle_extended_wait): Don't assume the first signal new children
11464 report is SIGSTOP. Adjust call to pull_pid_from_list.
11465 (linux_wait_for_lwp): Adjust.
11466
11467 2012-03-02 Yao Qi <yao@codesourcery.com>
11468
11469 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
11470 debug log.
11471
11472 2012-03-02 Yao Qi <yao@codesourcery.com>
11473
11474 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
11475 `stop_pc' and `tpoint'. Update caller.
11476
11477 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
11478
11479 * linux-low.h (linux_target_ops): Add regset_bitmap member.
11480 * linux-low.c (use_linux_regsets): New macro.
11481 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
11482 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
11483 (linux_register_in_regsets): New function.
11484 (usr_fetch_inferior_registers): Skip registers covered by
11485 regsets.
11486 (usr_store_inferior_registers): Likewise.
11487 (usr_fetch_inferior_registers): New macro.
11488 (usr_store_inferior_registers): Likewise.
11489 (linux_fetch_registers): Handle mixed regset/non-regset targets.
11490 (linux_store_registers): Likewise.
11491 * linux-mips-low.c (init_registers_mips_dsp_linux): New
11492 prototype.
11493 (init_registers_mips64_dsp_linux): Likewise.
11494 (init_registers_mips_linux): New macro.
11495 (init_registers_mips_dsp_linux): Likewise.
11496 (mips_dsp_num_regs): Likewise.
11497 (DSP_BASE, DSP_CONTROL): New fallback macros.
11498 (mips_base_regs): New macro.
11499 (mips_regmap): Use it. Fix the size.
11500 (mips_dsp_regmap): New variable.
11501 (mips_dsp_regset_bitmap): Likewise.
11502 (mips_arch_setup): New function.
11503 (mips_cannot_fetch_register): Use the_low_target.regmap rather
11504 than mips_regmap.
11505 (mips_cannot_store_register): Likewise.
11506 (the_low_target): Update .arch_setup, .num_regs and .regmap
11507 initializers. Add .regset_bitmap initializer.
11508 * linux-arm-low.c (the_low_target): Add .regset_bitmap
11509 initializer.
11510 * linux-bfin-low.c (the_low_target): Likewise.
11511 * linux-cris-low.c (the_low_target): Likewise.
11512 * linux-crisv32-low.c (the_low_target): Likewise.
11513 * linux-ia64-low.c (the_low_target): Likewise.
11514 * linux-m32r-low.c (the_low_target): Likewise.
11515 * linux-m68k-low.c (the_low_target): Likewise.
11516 * linux-ppc-low.c (the_low_target): Likewise.
11517 * linux-s390-low.c (the_low_target): Likewise.
11518 * linux-sh-low.c (the_low_target): Likewise.
11519 * linux-sparc-low.c (the_low_target): Likewise.
11520 * linux-tic6x-low.c (the_low_target): Likewise.
11521 * linux-x86-low.c (the_low_target): Likewise.
11522 * linux-xtensa-low.c (the_low_target): Likewise.
11523 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
11524 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
11525 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
11526 srv_xmlfiles.
11527 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
11528 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
11529
11530 2012-02-29 Yao Qi <yao@codesourcery.com>
11531 Pedro Alves <palves@redhat.com>
11532
11533 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
11534 `step_over_finished' is true.
11535
11536 2012-02-27 Pedro Alves <palves@redhat.com>
11537
11538 * linux-low.c (pid_is_stopped): Delete, moved to common/.
11539 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
11540
11541 2012-02-27 Pedro Alves <palves@redhat.com>
11542
11543 PR server/9684
11544 * linux-low.c (pid_is_stopped): New.
11545 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
11546
11547 2012-02-25 Luis Machado <lgustavo@codesourcery.com>
11548
11549 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
11550 of conditions.
11551
11552 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
11553
11554 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
11555
11556 2012-02-24 Luis Machado <lgustavo@codesourcery>
11557
11558 * server.c (handle_query): Advertise support for target-side
11559 breakpoint condition evaluation.
11560 (process_point_options): New function.
11561 (process_serial_event): When inserting a breakpoint, check for
11562 a target-side condition that should be evaluated.
11563
11564 * mem-break.c: Include regcache.h and ax.h.
11565 (point_cond_list_t): New data structure.
11566 (breakpoint) <cond_list>: New field.
11567 (find_gdb_breakpoint_at): Make non-static.
11568 (delete_gdb_breakpoint_at): Clear any target-side
11569 conditions.
11570 (clear_gdb_breakpoint_conditions): New function.
11571 (add_condition_to_breakpoint): Likewise.
11572 (add_breakpoint_condition): Likewise.
11573 (gdb_condition_true_at_breakpoint): Likewise.
11574 (gdb_breakpoint_here): Return result directly instead
11575 of going through a local variable.
11576
11577 * mem-break.h (find_gdb_breakpoint_at): New prototype.
11578 (clear_gdb_breakpoint_conditions): Likewise.
11579 (add_breakpoint_condition): Likewise.
11580 (gdb_condition_true_at_breakpoint): Likewise.
11581
11582 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
11583 (need_step_over_p): Take target-side breakpoint condition into
11584 consideration.
11585
11586 2012-02-24 Luis Machado <lgustavo@codesourcery>
11587
11588 * server.h: Include tracepoint.h.
11589 (agent_mem_read, agent_get_trace_state_variable_value,
11590 agent_set_trace_state_variable_value,
11591 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
11592 get_set_tsv_func_addr): New prototypes.
11593
11594 * ax.h: New include file.
11595 * ax.c: New source file.
11596
11597 * tracepoint.c: Include ax.h.
11598 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
11599 agent_expr, eval_result_type): Move to ax.h.
11600 (parse_agent_expr): Rename to ...
11601 (gdb_parse_agent_expr): ... this, make it non-static and move
11602 to ax.h.
11603 (unparse_agent_expr) Rename to ...
11604 (gdb_unparse_agent_expr): ... this, make it non-static and move
11605 to ax.h.
11606 (eval_agent_expr): Rename to ...
11607 (eval_tracepoint_agent_expr): ... this.
11608 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
11609 forward declarations.
11610 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
11611 (agent_get_trace_state_variable_value): New function.
11612 (agent_set_trace_state_variable_value): New function.
11613 (cmd_qtdp): Call gdb_parse_agent_expr (...).
11614 (response_tracepoint): Call gdb_unparse_agent_expr (...).
11615 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
11616 (condition_true_at_tracepoint): Likewise.
11617 (parse_agent_expr): Rename to ...
11618 (gdb_parse_agent_expr): ... this and move to ax.c.
11619 (unparse_agent_expr): Rename to ...
11620 (gdb_unparse_agent_expr): ... this and move to ax.c.
11621 (gdb_agent_op_name): Move to ax.c.
11622 (eval_agent_expr): Rename to ...
11623 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
11624 and move to ax.c.
11625 (eval_tracepoint_agent_expr): New function.
11626 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
11627 non-static.
11628 (current_insn_ptr, emit_error, struct bytecode_address): Move to
11629 ax.c.
11630 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
11631 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
11632 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
11633 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
11634 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
11635 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
11636 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
11637 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
11638 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
11639 (compile_bytecodes): Remove forward declaration.
11640 (is_goto_target): Move to ax.c.
11641 (compile_bytecodes): Move to ax.c and call
11642 agent_get_trace_state_variable_value (...) and
11643 agent_set_trace_state_variable_value (...).
11644
11645 * Makefile.in: Update ax.c and IPA dependencies.
11646
11647 2012-02-24 Pedro Alves <palves@redhat.com>
11648
11649 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
11650 (cmd_bigqtbuffer_circular): ... this. Only handle
11651 'QTBuffer:circular:'.
11652 (handle_tracepoint_general_set): Adjust.
11653
11654 2012-02-16 Yao Qi <yao@codesourcery.com>
11655
11656 * inferiors.c: Move code to ...
11657 * dll.c: .... here. New.
11658 * server.h: Declare clear_dlls.
11659 * Makefile.in (SFILES): Add dll.c.
11660 (OBS): Add dll.o
11661 (dll.o): New rule.
11662
11663 2012-02-11 Yao Qi <yao@codesourcery.com>
11664
11665 * server.c: (handle_monitor_command): Add a new parameter
11666 `own_buf'.
11667 (handle_query): Update caller.
11668
11669 2012-02-09 Joel Brobecker <brobecker@adacore.com>
11670
11671 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
11672 * configure, config.in: Regenerate.
11673 * hostio.c: Provide an alternate implementation if HAVE_READLINK
11674 is not defined.
11675
11676 2012-02-02 Pedro Alves <palves@redhat.com>
11677
11678 Try SIGKILL first, then PTRACE_KILL.
11679 * linux-low.c (linux_kill_one_lwp): New.
11680 (linux_kill_one_lwp): Rename to ...
11681 (kill_one_lwp_callback): ... this. Use the new
11682 linux_kill_one_lwp.
11683
11684 2012-02-02 Pedro Alves <palves@redhat.com>
11685
11686 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
11687 inferior.
11688
11689 2012-01-27 Pedro Alves <palves@redhat.com>
11690
11691 * linux-low.c (linux_child_pid_to_exec_file): Delete.
11692 (elf_64_file_p): Make static.
11693 (linux_pid_exe_is_elf_64_file): New.
11694 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
11695 Delete declarations.
11696 (linux_pid_exe_is_elf_64_file): Declare.
11697 * linux-x86-low.c (x86_arch_setup): Use
11698 linux_pid_exe_is_elf_64_file.
11699
11700 2012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
11701
11702 * linux-low.c (linux_wait_for_event_1): Rename to ...
11703 (linux_wait_for_event): ... here and merge it with former
11704 linux_wait_for_event - new variable wait_ptid, use it.
11705 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
11706
11707 2012-01-23 Pedro Alves <palves@redhat.com>
11708
11709 * server.c (main): Avoid yet another case of infinite loop while
11710 detaching/killing after a longjmp.
11711
11712 2012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
11713
11714 Code cleanup.
11715 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
11716
11717 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11718
11719 * hostio.c (handle_readlink): New function.
11720 (handle_vFile): Call it to handle "vFile:readlink" packets.
11721
11722 2012-01-20 Pedro Alves <palves@redhat.com>
11723 Ulrich Weigand <ulrich.weigand@linaro.org>
11724
11725 * server.c (handle_v_requests): Only support vAttach and vRun to
11726 start multiple processes when in extended protocol mode.
11727
11728 2012-01-17 Pedro Alves <palves@redhat.com>
11729
11730 * tracepoint.c (initialize_tracepoint): Use mmap instead of
11731 memalign plus mprotect to allocate the scratch buffer.
11732
11733 2012-01-13 Pedro Alves <palves@redhat.com>
11734
11735 * server.c (attach_inferior): Clear `cont_thread'.
11736
11737 2012-01-13 Pedro Alves <palves@redhat.com>
11738
11739 * server.c (main): Avoid infinite loop while detaching/killing
11740 after a longjmp.
11741
11742 2012-01-09 Doug Evans <dje@google.com>
11743
11744 * server.c (start_inferior): Set last_ptid in --wrapper case.
11745
11746 2012-01-06 Yao Qi <yao@codesourcery.com>
11747
11748 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
11749 defined.
11750 [IN_PROCESS_AGENT] (debug_agent): New global variable.
11751
11752 2012-01-04 Yao Qi <yao@codesourcery.com>
11753
11754 * tracepoint.c (cmd_qtdp): Print debug message
11755 for static tracepoint.
11756
11757 2012-01-04 Yao Qi <yao@codesourcery.com>
11758
11759 * tracepoint.c (trace_vdebug): Differentiate debug message
11760 between gdbserver and IPA.
11761
11762 2012-01-03 Yao Qi <yao@codesourcery.com>
11763
11764 * tracepoint.c (tracepoint_was_hit): Don't collect for
11765 static tracepoint.
11766
11767 2012-01-02 Joel Brobecker <brobecker@adacore.com>
11768
11769 * terminal.h: Reformat copyright header.
11770
11771 2012-01-02 Joel Brobecker <brobecker@adacore.com>
11772
11773 * server.c (gdbserver_version): Update copyright year.
11774 * gdbreplay.c (gdbreplay_version): Likewise.
11775
11776 2011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
11777
11778 * linux-low.c (linux_create_inferior): Put empty if clause for write.
11779
11780 Revert:
11781 2011-12-18 Hui Zhu <teawater@gmail.com>
11782 * linux-low.c (linux_create_inferior): Save return value to ret.
11783
11784 2011-12-18 Hui Zhu <teawater@gmail.com>
11785
11786 * linux-low.c (linux_create_inferior): Save return value to ret.
11787
11788 2011-12-16 Doug Evans <dje@google.com>
11789
11790 * linux-low.c (linux_create_inferior): If stdio connection,
11791 redirect stdin from /dev/null, stdout to stderr.
11792 * remote-utils.c (remote_is_stdio): New static global.
11793 (remote_connection_is_stdio): New function.
11794 (remote_prepare): Handle stdio connection.
11795 (remote_open): Ditto.
11796 (remote_close): Don't close stdin for stdio connections.
11797 (read_prim,write_prim): New functions. Replace all calls to
11798 read/write to these.
11799 * server.c (main): Watch for "-" argument. Move call to
11800 remote_prepare before start_inferior.
11801 * server.h (STDIO_CONNECTION_NAME): New macro.
11802 (remote_connection_is_stdio): Declare.
11803
11804 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
11805 in debugging output.
11806
11807 2011-12-15 Yao Qi <yao@codesourcery.com>
11808
11809 * tracepoint.c: Include sys/syscall.h.
11810 (gdb_ust_thread): Remove preprocessor conditional.
11811
11812 2011-12-14 Pedro Alves <pedro@codesourcery.com>
11813
11814 * linux-low.c (linux_detach_one_lwp): Call
11815 the_low_target.prepare_to_resume before detaching.
11816
11817 2011-12-14 Yao Qi <yao@codesourcery.com>
11818
11819 * tracepoint.c (gdb_ust_thread): Don't ignore return value
11820 of write.
11821
11822 2011-12-14 Yao Qi <yao@codesourcery.com>
11823
11824 * i386-low.c (i386_low_stopped_data_address): Initialize local
11825 variable `control'.
11826
11827 2011-12-13 Pedro Alves <pedro@codesourcery.com>
11828
11829 PR remote/13492
11830
11831 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
11832 DR_CONTROL unless necessary. Extend comments.
11833 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
11834 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
11835
11836 2011-12-13 Yao Qi <yao@codesourcery.com>
11837
11838 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
11839 macros.
11840 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
11841
11842 2011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
11843
11844 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
11845 Print new debug message for such case.
11846
11847 2011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
11848
11849 Fix overlapping memcpy.
11850 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
11851 the read_inferior_memory transfer.
11852 (delete_fast_tracepoint_jump): New variable buf. Use it for the
11853 write_inferior_memory transfer.
11854 (set_fast_tracepoint_jump): New variable buf. Use it for the
11855 read_inferior_memory and write_inferior_memory transfers.
11856 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
11857 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
11858 Use it for the write_inferior_memory transfer.
11859 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
11860 buffers.
11861
11862 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
11863
11864 * linux-low.c (fetch_register, store_register): Make code
11865 consistent, fix formatting.
11866
11867 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
11868
11869 * linux-low.c (usr_store_inferior_registers): Factor out code
11870 to handle individual registers into...
11871 (store_register): ... this new function.
11872
11873 2011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
11874
11875 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
11876 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
11877 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
11878 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
11879 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
11880 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
11881 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
11882 (srv_xmlfiles): Add new XML files.
11883
11884 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
11885 and <sys/uio.h>.
11886 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
11887 (init_registers_s390_linux32v1): Add prototype.
11888 (init_registers_s390_linux32v2): Likewise.
11889 (init_registers_s390_linux64v1): Likewise.
11890 (init_registers_s390_linux64v2): Likewise.
11891 (init_registers_s390x_linux64v1): Likewise.
11892 (init_registers_s390x_linux64v2): Likewise.
11893 (s390_num_regs): Increment to 52.
11894 (s390_regmap): Add orig_r2 register.
11895 (s390_num_regs_3264): Increment to 68.
11896 (s390_regmap_3264): Add orig_r2 register.
11897 (s390_collect_ptrace_register): Handle orig_r2 register.
11898 (s390_supply_ptrace_register): Likewise.
11899 (s390_fill_last_break): New function.
11900 (s390_store_last_break): Likewise.
11901 (s390_fill_system_call): New function.
11902 (s390_store_system_call): Likewise.
11903 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
11904 register sets.
11905 (s390_check_regset): New function.
11906 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
11907 NT_S390_SYSTEM_CALL regsets and use appropriate description.
11908 Update target_regsets for available register sets.
11909
11910 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
11911 Jan Kratochvil <jan.kratochvil@redhat.com>
11912
11913 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
11914 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
11915 New.
11916 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
11917 * linux-low.h (struct process_info_private): New member r_debug.
11918 * server.c (handle_qxfer_libraries): Call
11919 the_target->qxfer_libraries_svr4.
11920 (handle_qxfer_libraries_svr4): New function.
11921 (qxfer_packets): New entry "libraries-svr4".
11922 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
11923 * target.h (struct target_ops): New member qxfer_libraries_svr4.
11924 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
11925 PACKET_qXfer_libraries_svr4.
11926
11927 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
11928
11929 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
11930 PSW address/mask between 8-byte and 16-byte formats.
11931 (s390_supply_ptrace_register): Likewise.
11932 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
11933 basic addressing mode bit.
11934
11935 2011-11-24 Stan Shebs <stan@codesourcery.com>
11936
11937 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
11938
11939 2011-11-17 Stan Shebs <stan@codesourcery.com>
11940
11941 * tracepoint.c (struct tracepoint): New field traceframe_usage.
11942 (tracing_start_time): New global.
11943 (tracing_stop_time): New global.
11944 (tracing_user_name): New global.
11945 (tracing_notes): New global.
11946 (tracing_stop_note): New global.
11947 (cmd_qtstart): Set traceframe_usage, start_time.
11948 (stop_tracing): Set stop_time.
11949 (cmd_qtstatus): Report additional status.
11950 (cmd_qtp): New function.
11951 (handle_tracepoint_query): Call it.
11952 (cmd_qtnotes): New function.
11953 (handle_tracepoint_general_set): Call it.
11954 (get_timestamp): Rename from tsv_get_timestamp.
11955
11956 2011-11-14 Stan Shebs <stan@codesourcery.com>
11957 Kwok Cheung Yeung <kcy@codesourcery.com>
11958
11959 * linux-x86-low.c (small_jump_insn): New.
11960 (i386_install_fast_tracepoint_jump_pad): Add arguments for
11961 trampoline and error message, build a trampoline and issue a small
11962 jump instruction to it.
11963 (x86_install_fast_tracepoint_jump_pad): Add arguments for
11964 trampoline and error message.
11965 (x86_get_min_fast_tracepoint_insn_len): New.
11966 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
11967 * linux-low.h (struct linux_target_ops): Add arguments to
11968 install_fast_tracepoint_jump_pad operation, add new operation.
11969 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
11970 arguments.
11971 (linux_get_min_fast_tracepoint_insn_len): New function.
11972 (linux_target_op): Add new operation.
11973 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
11974 (gdb_trampoline_buffer_end): Ditto.
11975 (gdb_trampoline_buffer_error): Ditto.
11976 (struct ipa_sym_addresses): Add fields for new IPA variables.
11977 (symbol_list): Add entries for new IPA variables.
11978 (struct tracepoint): Add fields to hold the address range of the
11979 trampoline used by the tracepoint.
11980 (trampoline_buffer_head): New static variable.
11981 (trampoline_buffer_tail): Ditto.
11982 (claim_trampoline_space): New function.
11983 (have_fast_tracepoint_trampoline_buffer): New function.
11984 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
11985 structure.
11986 (install_fast_tracepoint): Ditto, also add error buffer argument.
11987 (cmd_qtminftpilen): New function.
11988 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
11989 (fast_tracepoint_from_trampoline_address): New function.
11990 (fast_tracepoint_collecting): Handle trampoline as part of jump
11991 pad space.
11992 (set_trampoline_buffer_space): New function.
11993 (initialize_tracepoint): Initialize new IPA variables.
11994 * target.h (struct target_ops): Add arguments to
11995 install_fast_tracepoint_jump_pad operation, add new
11996 get_min_fast_tracepoint_insn_len operation.
11997 (target_get_min_fast_tracepoint_insn_len): New.
11998 (install_fast_tracepoint_jump_pad): Add arguments.
11999 * server.h (IPA_BUFSIZ): Define.
12000 * linux-i386-ipa.c: Include extra header files.
12001 (initialize_fast_tracepoint_trampoline_buffer): New function.
12002 (initialize_low_tracepoint): Call it.
12003 * server.h (set_trampoline_buffer_space): Declare.
12004 (claim_trampoline_space): Ditto.
12005 (have_fast_tracepoint_trampoline_buffer): Ditto.
12006
12007 2011-11-14 Yao Qi <yao@codesourcery.com>
12008
12009 * server.c (handle_query): Handle InstallInTrace for qSupported.
12010 * tracepoint.c (add_tracepoint): Sort list.
12011 (install_tracepoint, download_tracepoint): New.
12012 (cmd_qtdp): Call them to install and download tracepoints.
12013 (sort_tracepoints): Removed.
12014 (cmd_qtstart): Update.
12015
12016 2011-11-14 Yao Qi <yao@codesourcery.com>
12017
12018 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
12019 * mem-break.h: Declare.
12020 * tracepoint.c (cmd_qtstart): Move some code to ...
12021 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
12022 New.
12023 (download_tracepoints): Move some code to ...
12024 (download_tracepoint_1): ... here. New.
12025
12026 2011-11-08 Yao Qi <yao@codesourcery.com>
12027
12028 * remote-utils.c (relocate_instruction): A comment fix.
12029
12030 2011-11-07 Joel Brobecker <brobecker@adacore.com>
12031
12032 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
12033 (i386_dr_low_get_control, i386_dr_low_get_status): Use
12034 dr_status_mirror and dr_control_mirror from debug_reg_state.
12035 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
12036 (i386_initial_stuff): Remove use of deleted globals.
12037 (i386_get_thread_context, i386_set_thread_context,
12038 i386_thread_added): Use dr_status_mirror and dr_control_mirror
12039 from debug_reg_state.
12040
12041 2011-11-05 Yao Qi <yao@codesourcery.com>
12042
12043 * tracepoint.c (gdb_collect): Loop over tracepoints of same
12044 address as TPOINT's.
12045
12046 2011-11-02 Stan Shebs <stan@codesourcery.com>
12047
12048 * tracepoint.c (agent_mem_read_string): New function.
12049 (eval_agent_expr): Call it for tracenz.
12050 * server.c (handle_query): Report support for tracenz.
12051
12052 2011-11-02 Yao Qi <yao@codesourcery.com>
12053
12054 * tracepoint.c (cmd_qtstart): Remove unused local variables.
12055
12056 2011-11-02 Yao Qi <yao@codesourcery.com>
12057
12058 * target.h: Fix a typo in comment.
12059
12060 2011-10-31 Pedro Alves <pedro@codesourcery.com>
12061
12062 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
12063 clobber the breakpoints' shadows with fast tracepoint jumps.
12064 * mem-break.h (check_mem_write): Add `myaddr' parameter.
12065 * target.c (write_inferior_memory): Also pass MYADDR down to
12066 check_mem_write.
12067
12068 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
12069
12070 * configure.ac: Check support for personality routine.
12071 * configure: Regenerate.
12072 * config.in: Likewise.
12073 * linux-low.c: Include <sys/personality.h>.
12074 Define ADDR_NO_RANDOMIZE if necessary.
12075 (linux_create_inferior): Disable address space randomization when
12076 forking inferior, if requested.
12077 (linux_supports_disable_randomization): New function.
12078 (linux_target_ops): Install it.
12079 * server.h (disable_randomization): Declare.
12080 * server.c (disable_randomization): New global variable.
12081 (handle_general_set): Handle QDisableRandomization.
12082 (handle_query): Likewise for qSupported.
12083 (main): Support --disable-randomization and --no-disable-randomization
12084 command line arguments.
12085 * target.h (struct target_ops): Add supports_disable_randomization.
12086 (target_supports_disable_randomization): New macro.
12087
12088 2011-09-29 Mike Frysinger <vapier@gentoo.org>
12089
12090 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
12091 ifdef check.
12092 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
12093 [!PT_GETDSBT] (target_loadmap): New definition.
12094 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
12095 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
12096 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
12097 and PT_GETDSBT to LINUX_LOADMAP.
12098 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
12099 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
12100
12101 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
12102
12103 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
12104 (arm_linux_hwbp_cap): New static variable.
12105 (arm_linux_get_hwbp_cap): Replace by ...
12106 (arm_linux_init_hwbp_cap): ... this new function.
12107 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
12108 (arm_linux_get_hw_watchpoint_count): Likewise.
12109 (arm_linux_get_hw_watchpoint_max_length): Likewise.
12110 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
12111 (arm_prepare_to_resume): Use perror_with_name instead of error.
12112
12113 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
12114
12115 * linux-arm-low.c: Include <signal.h>.
12116 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
12117 (struct arm_linux_hwbp_cap): New data type.
12118 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
12119 (struct arm_linux_hw_breakpoint): New data type.
12120 (MAX_BPTS, MAX_WPTS): Define.
12121 (struct arch_process_info, struct arch_lwp_info): New data types.
12122 (arm_linux_get_hwbp_cap): New function.
12123 (arm_linux_get_hw_breakpoint_count): Likewise.
12124 (arm_linux_get_hw_watchpoint_count): Likewise.
12125 (arm_linux_get_hw_watchpoint_max_length): Likewise.
12126 (arm_hwbp_control_initialize): Likewise.
12127 (arm_hwbp_control_is_enabled): Likewise.
12128 (arm_hwbp_control_is_initialized): Likewise.
12129 (arm_hwbp_control_disable): Likewise.
12130 (arm_linux_hw_breakpoint_equal): Likewise.
12131 (arm_linux_hw_point_initialize): Likewise.
12132 (struct update_registers_data): New data structure.
12133 (update_registers_callback: New function.
12134 (arm_insert_point): Likewise.
12135 (arm_remove_point): Likewise.
12136 (arm_stopped_by_watchpoint): Likewise.
12137 (arm_stopped_data_address): Likewise.
12138 (arm_new_process): Likewise.
12139 (arm_new_thread): Likewise.
12140 (arm_prepare_to_resume): Likewise.
12141 (the_low_target): Register arm_insert_point, arm_remove_point,
12142 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
12143 arm_new_thread, and arm_prepare_to_resume.
12144
12145 2011-09-15 Stan Shebs <stan@codesourcery.com>
12146
12147 * server.h (struct emit_ops): Add compare-goto fields.
12148 * tracepoint.c (gdb_agent_op_sizes): New table.
12149 (emit_eq_goto): New function.
12150 (emit_ne_goto): New function.
12151 (emit_lt_goto): New function.
12152 (emit_le_goto): New function.
12153 (emit_gt_goto): New function.
12154 (emit_ge_goto): New function.
12155 (is_goto_target): New function.
12156 (compile_bytecodes): Recognize special cases of compare-goto
12157 combinations and call specialized emitters for them.
12158 * linux-x86-low.c (amd64_emit_eq_goto): New function.
12159 (amd64_emit_ne_goto): New function.
12160 (amd64_emit_lt_goto): New function.
12161 (amd64_emit_le_goto): New function.
12162 (amd64_emit_gt_goto): New function.
12163 (amd64_emit_ge_goto): New function.
12164 (amd64_emit_ops): Add the new functions.
12165 (i386_emit_eq_goto): New function.
12166 (i386_emit_ne_goto): New function.
12167 (i386_emit_lt_goto): New function.
12168 (i386_emit_le_goto): New function.
12169 (i386_emit_gt_goto): New function.
12170 (i386_emit_ge_goto): New function.
12171 (i386_emit_ops): Add the new functions.
12172
12173 2011-09-08 Stan Shebs <stan@codesourcery.com>
12174
12175 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
12176 (i386_emit_epilogue): Restore %ebx.
12177
12178 2011-08-31 Jie Zhang <jzhang918@gmail.com>
12179
12180 * server.c (step_thread): Remove definition.
12181 (process_serial_event): Don't handle Hs.
12182 * server.h (step_thread): Remove declaration.
12183 * target.c (set_desired_inferior): Remove use of step_thread.
12184
12185 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
12186
12187 * linux-low.c: Include linux-procfs.h.
12188 (linux_attach_lwp_1): Update comments.
12189 (linux_attach): Scan for existing threads when attaching to a
12190 process that is the tgid.
12191 * Makefile.in: Update dependencies.
12192
12193 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
12194
12195 * configure.srv: Add linux-procfs.o dependencies.
12196
12197 2011-08-14 Yao Qi <yao@codesourcery.com>
12198
12199 * target.h (struct target_ops): Fix indent.
12200 * win32-low.c (win32_target_ops): Fix comment.
12201
12202 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
12203 Yao Qi <yao@codesourcery.com>
12204
12205 * Makefile.in (clean): Remove tic6x-*.c files.
12206 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
12207 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
12208 (tic6x-c64xp-linux.c): Likewise.
12209 * configure.srv: Add support for tic6x-*-uclinux.
12210 * linux-tic6x-low.c: New.
12211 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
12212
12213 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
12214 Yao Qi <yao@codesourcery.com>
12215
12216 * target.h (struct target_ops): Add read_loadmap.
12217 * linux-low.c (struct target_loadseg): New type.
12218 (struct target_loadmap): New type.
12219 (linux_read_loadmap): New function.
12220 (linux_target_ops): Add linux_read_loadmap.
12221 * server.c (handle_query): Support qXfer:fdpic:read packet.
12222 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
12223 to NULL.
12224
12225 2011-08-05 Eli Zaretskii <eliz@gnu.org>
12226
12227 * win32-low.c: Include <stdint.h>.
12228
12229 2011-07-22 Pedro Alves <pedro@codesourcery.com>
12230
12231 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
12232 to the inferior here.
12233 (i386_remove_aligned_watchpoint): Ditto.
12234 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
12235 fit part of the watchpoint in the debug registers.
12236 (i386_update_inferior_debug_regs): New.
12237 (i386_low_insert_watchpoint): Work on a local mirror of the debug
12238 registers, and only update the inferior on success.
12239 (i386_low_remove_watchpoint): Ditto.
12240
12241 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
12242
12243 * linux-low.c (compare_ints, unique, list_threads, show_process,
12244 linux_core_of_thread): Delete.
12245 (linux_target_ops): Change linux_core_of_thread to
12246 linux_common_core_of_thread.
12247 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
12248 * utils.c (malloc_failure): Change type of argument.
12249 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
12250 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
12251 common/linux-osdata.c, common/ptid.c and common/buffer.c.
12252 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
12253 (IPA_OBJS): Add common-utils-ipa.o.
12254 (ptid_h, linux_osdata_h): New macros.
12255 (server_h): Add common/common-utils.h, common/xml-utils.h,
12256 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
12257 common/ptid.h.
12258 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
12259 ptid.o, buffer.o): New rules.
12260 (linux-low.o): Add common/linux-osdata.h as a dependency.
12261 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
12262 * configure.ac: Add AC_HEADER_DIRENT check.
12263 * config.in: Regenerate.
12264 * configure: Regenerate.
12265 * remote-utils.c (xml_escape_text): Delete.
12266 (buffer_grow, buffer_free, buffer_init, buffer_finish,
12267 buffer_xml_printf): Move to common/buffer.c.
12268 * server.c (main): Remove call to initialize_inferiors.
12269 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
12270 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
12271 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
12272 internal_error, gdb_assert, gdb_assert_fail): Delete.
12273 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
12274 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
12275 common/buffer.h.
12276 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
12277 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
12278 initialize_inferiors): Delete.
12279
12280 2011-07-20 Pedro Alves <pedro@codesourcery.com>
12281
12282 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
12283 symbol error.
12284
12285 2011-05-31 Pedro Alves <pedro@codesourcery.com>
12286
12287 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
12288 assertion.
12289 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
12290
12291 2011-05-26 Yao Qi <yao@codesourcery.com>
12292
12293 * Makefile.in (thread-db.o): Track dependence to
12294 common/gdb_thread_db.h.
12295 * thread-db.c: include gdb_thread_db.h from right place.
12296
12297 2011-05-16 Adrian Cornish <gnu@bluedreamer.com>
12298
12299 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
12300 __FILE__ and __LINE__ to internal_error.
12301
12302 2011-05-13 Doug Evans <dje@google.com>
12303
12304 * thread-db.c (try_thread_db_load_from_sdir): New function.
12305 (try_thread_db_load_from_dir): New function.
12306 (thread_db_load_search): Handle $sdir, ignore $pdir.
12307 Remove trying of system directories if search of
12308 libthread-db-search-path fails, that is now done via $sdir.
12309
12310 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
12311
12312 * server.c (handle_query): Add EnableDisableTracepoints to the list
12313 of supported features.
12314 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
12315 tracepoints.
12316 (cmd_qtenable_disable): New.
12317 (cmd_qtstart): Install tracepoints even if disabled.
12318 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
12319 receiving a QTEnable or QTDisable packet.
12320 (gdb_collect): Skip data collection if fast tracepoint is disabled.
12321 (ust_marker_to_static_tracepoint): Do not ignore disabled static
12322 tracepoints.
12323 (gdb_probe): Skip data collection if static tracepoint is disabled.
12324
12325 2011-05-10 Doug Evans <dje@google.com>
12326
12327 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
12328
12329 2011-05-04 Doug Evans <dje@google.com>
12330
12331 * linux-low.c (linux_join): Skip process lookup.
12332 * spu-low.c (spu_join): Ditto.
12333 * server.c (join_inferiors_callback): Delete.
12334 (process_serial_event): For 'D' packet (detach) call join_inferior
12335 directly.
12336
12337 2011-05-04 Joseph Myers <joseph@codesourcery.com>
12338
12339 * README: Don't mention xscale*-*-linux*.
12340 * configure.srv (xscale*-*-linux*): Don't handle target.
12341
12342 2011-04-27 Nathan Froyd <froydnj@codesourcery.com>
12343
12344 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
12345 casting pointers.
12346 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
12347 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
12348 (i386_emit_void_call_2): Likewise.
12349
12350 2011-04-26 Yao Qi <yao@codesourcery.com>
12351
12352 * linux-low.c: Move common macros to linux-ptrace.h.
12353 Include linux-ptrace.h.
12354 * Makefile.in (linux_ptrace_h): New.
12355 (linux-low.o): Depends on linux-ptrace.h.
12356
12357 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
12358
12359 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
12360 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
12361 (remote_prepare): New function with most of the TCP code from ...
12362 (remote_open): ... here. Detect PORT here unconditionally. Move also
12363 setting transport_is_reliable.
12364 * server.c (run_once): New variable.
12365 (gdbserver_usage): Document it.
12366 (main): Set run_once for `--once'. Call remote_prepare. Exit after
12367 the first run if RUN_ONCE.
12368 * server.h (run_once, remote_prepare): New declarations.
12369
12370 2011-04-19 Tom Tromey <tromey@redhat.com>
12371
12372 * win32-low.c (handle_load_dll): Remove duplicate "the".
12373
12374 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
12375
12376 Remove support for old Cygwin 1.5 versions.
12377 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
12378 function to avoid warning.
12379 (win32_add_one_solib): Use cygwin_conv_path function to avoid
12380 warning.
12381
12382 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
12383
12384 * gdbserver/server.h (Macro _): Define it if not available.
12385
12386 2011-03-14 Michael Snyder <msnyder@vmware.com>
12387
12388 * hostio.c (handle_close): Remove unnecessary null test.
12389
12390 2011-03-10 Joel Brobecker <brobecker@adacore.com>
12391
12392 * Makefile.in (maintainer-clean realclean distclean): Remove
12393 "make ... subdir_do" command.
12394
12395 2011-03-10 Michael Snyder <msnyder@vmware.com>
12396
12397 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
12398
12399 * server.c (handle_v_run): Free alloced buffer on early return.
12400
12401 2011-03-09 Yao Qi <yao@codesourcery.com>
12402
12403 Revert:
12404 2011-03-04 Yao Qi <yao@codesourcery.com>
12405
12406 * Makefile.in: Remove GNU make feature --directory.
12407
12408 2011-03-05 Yao Qi <yao@codesourcery.com>
12409
12410 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
12411 (subdir_do): New make target. Copied from gdb/Makefile.
12412 (maintainer-clean, realclean, distclean, clean): Call corresponding
12413 make targets in common/Makefile.
12414
12415 2011-02-11 Yao Qi <yao@codesourcery.com>
12416
12417 * configure.ac: Call AC_PROG_RANLIB.
12418 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
12419 * configure: Regenerate.
12420
12421 2011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
12422
12423 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
12424
12425 2011-03-06 Yao Qi <yao@codesourcery.com>
12426
12427 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
12428
12429 2011-03-05 Yao Qi <yao@codesourcery.com>
12430
12431 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
12432 (subdir_do): New make target. Copied from gdb/Makefile.
12433 (maintainer-clean, realclean, distclean, clean): Call corresponding
12434 make targets in common/Makefile.
12435
12436 2011-03-04 Yao Qi <yao@codesourcery.com>
12437
12438 * Makefile.in: Remove GNU make feature --directory.
12439
12440 2011-03-04 Michael Snyder <msnyder@vmware.com>
12441
12442 * server.c (queue_stop_reply): Call xmalloc not malloc.
12443
12444 2011-03-02 Michael Snyder <msnyder@vmware.com>
12445
12446 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
12447
12448 2011-02-28 Michael Snyder <msnyder@vmware.com>
12449
12450 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
12451 (cmd_qtframe): Ditto.
12452 (cmd_qtbuffer): Ditto.
12453 (cmd_bigqtbuffer): Ditto.
12454
12455 * utils.c (decimal2str): Initialize 'width' to nine, then
12456 don't mess with it.
12457
12458 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
12459
12460 * hostio.c (require_data): Free *data, not data.
12461
12462 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
12463
12464 * hostio.c (require_data): Use free, not xfree.
12465
12466 2011-02-27 Michael Snyder <msnyder@vmware.com>
12467
12468 * server.c (handle_query): Discard unused value.
12469
12470 * hostio.c (require_data): Free malloc memory before returning
12471 error.
12472
12473 2011-02-26 Michael Snyder <msnyder@vmware.com>
12474
12475 * linux-low.c (list_threads): Call closedir for dirent.
12476
12477 2011-02-27 Michael Snyder <msnyder@vmware.com>
12478
12479 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
12480 a case statement falls through.
12481
12482 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
12483
12484 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
12485 in comparison.
12486
12487 2011-02-26 Michael Snyder <msnyder@vmware.com>
12488
12489 * utils.c (decimal2str): Eliminate dead code and dead param.
12490 (pulongest): Drop dead param from call to decimal2str.
12491 (plongest): Ditto.
12492
12493 2011-02-24 Joel Brobecker <brobecker@adacore.com>
12494
12495 Revert the following patch (not approved yet):
12496 2011-02-21 Hui Zhu <teawater@gmail.com>
12497 * tracepoint.c (tp_printf): New function.
12498 (eval_agent_expr): Handle gdb_agent_op_printf.
12499
12500 2011-02-21 Hui Zhu <teawater@gmail.com>
12501
12502 * tracepoint.c (tp_printf): New function.
12503 (eval_agent_expr): Handle gdb_agent_op_printf.
12504
12505 2011-02-18 Tom Tromey <tromey@redhat.com>
12506
12507 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
12508 (tracepoint.o): Likewise.
12509 * tracepoint.c (enum gdb_agent_op): Use ax.def.
12510 (gdb_agent_op_names): Likewise.
12511
12512 2011-02-18 Tom Tromey <tromey@redhat.com>
12513
12514 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
12515 gdb_agent_op_rot>: New constants.
12516 (gdb_agent_op_names): Add pick and roll.
12517 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
12518 cases.
12519
12520 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
12521
12522 * aclocal.m4: Regenerated with aclocal-1.11.1.
12523
12524 2011-02-14 Pedro Alves <pedro@codesourcery.com>
12525
12526 * server.c (handle_qxfer_traceframe_info): New.
12527 (qxfer_packets): Register "traceframe-info".
12528 (handle_query): Report support for qXfer:traceframe-info:read+.
12529 * tracepoint.c (match_blocktype): New.
12530 (traceframe_find_block_type): Rename to ...
12531 (traceframe_walk_blocks): ... this. Add callback filter argument,
12532 and use it.
12533 (traceframe_find_block_type): New, reimplemented on top of
12534 traceframe_walk_blocks.
12535 (build_traceframe_info_xml): New.
12536 (traceframe_read_info): New.
12537 * server.h (traceframe_read_info): Declare.
12538
12539 2011-02-11 Yao Qi <yao@codesourcery.com>
12540
12541 * configure.ac: Call AC_PROG_RANLIB.
12542 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
12543 * configure: Regenerate.
12544
12545 2011-02-07 Pedro Alves <pedro@codesourcery.com>
12546
12547 * server.c (gdb_read_memory): Change return semantics to allow
12548 partial transfers.
12549 (handle_search_memory_1): Adjust.
12550 (process_serial_event) <'m' packet>: Handle partial transfers.
12551 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
12552
12553 2011-01-28 Pedro Alves <pedro@codesourcery.com>
12554
12555 * regcache.c (init_register_cache): Initialize
12556 regcache->register_status.
12557 (free_register_cache): Release regcache->register_status.
12558 (regcache_cpy): Copy register_status.
12559 (registers_to_string): Print 'x's for unavailable registers.
12560 (supply_register): Mark the register's status valid or
12561 unavailable, depending on whether a buffer was passed in or not.
12562 (supply_register_zeroed): New.
12563 (supply_regblock): Mark the registers' status valid or
12564 unavailable, depending on whether a buffer was passed in or not.
12565 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
12566 (struct regcache): New `register_status' field.
12567 (supply_register_zeroed): Declare.
12568 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
12569 supply_register_zeroed, rather than passing a NULL buffer to
12570 supply_register.
12571 * tracepoint.c (fetch_traceframe_registers): Update comment.
12572
12573 2011-01-28 Pedro Alves <pedro@codesourcery.com>
12574
12575 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
12576 buffer explicit.
12577
12578 2011-01-25 Pedro Alves <pedro@codesourcery.com>
12579
12580 * server.h (decode_xfer_write): Change prototype.
12581 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
12582 and don't extract the annex here.
12583 * server.c (decode_xfer_read): Remove `annex' parameter,
12584 and don't extract the annex here.
12585 (decode_xfer): New.
12586 (struct qxfer): New.
12587 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
12588 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
12589 (handle_qxfer_statictrace): New functions, abstracted out from
12590 handle_query, and made to use the struct qxfer interface.
12591 (handle_threads_qxfer_proper): Rename to ...
12592 (handle_qxfer_threads_proper): ... this.
12593 (handle_threads_qxfer): Rename to ...
12594 (handle_qxfer_threads): ... this. Adjust.
12595 (qxfer_packets): New array.
12596 (handle_qxfer): New function.
12597 (handle_query): Use handle_qxfer.
12598
12599 2011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
12600
12601 * gdbreplay.c: Shorten lines of >= 80 columns.
12602 * linux-low.c: Ditto.
12603 * linux-ppc-low.c: Ditto.
12604 * linux-s390-low.c: Ditto.
12605 * linux-sparc-low.c: Ditto.
12606 * linux-x86-low.c: Ditto.
12607 * linux-xtensa-low.c: Ditto.
12608 * mem-break.c: Ditto.
12609 * nto-low.c: Ditto.
12610 * regcache.h: Ditto.
12611 * remote-utils.c: Ditto.
12612 * server.c: Ditto.
12613 * server.h: Ditto.
12614 * thread-db.c: Ditto.
12615 * tracepoint.c: Ditto.
12616 * utils.c: Ditto.
12617 * win32-low.h: Ditto.
12618
12619 2011-01-05 Joel Brobecker <brobecker@adacore.com>
12620
12621 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
12622 update.
12623
12624 2011-01-01 Joel Brobecker <brobecker@adacore.com>
12625
12626 * server.c (gdbserver_version): Update copyright year in version
12627 output.
12628 * gdbreplay.c (gdbreplay_version): Ditto.
12629
12630 2010-12-29 Jie Zhang <jie.zhang@analog.com>
12631
12632 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
12633 * linux-bfin-low.c: New file.
12634 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
12635 PT_DATA_ADDR for BFIN targets.
12636 * Makefile.in (SFILES): Add linux-bfin-low.c.
12637 (clean): Remove reg-bfin.c.
12638 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
12639 * README: Mention supported Blackfin targets.
12640
12641 2010-12-23 Mike Frysinger <vapier@gentoo.org>
12642
12643 * .gitignore: New file.
12644
12645 2010-11-16 Mike Frysinger <vapier@gentoo.org>
12646
12647 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
12648
12649 2010-10-22 Jie Zhang <jie@codesourcery.com>
12650
12651 * Makefile.in: Add FLAGS_TO_PASS variable.
12652 (install): Remove dependency of install-only and recursively
12653 invoke make for install-only.
12654
12655 2010-10-04 Doug Evans <dje@google.com>
12656
12657 * Makefile.in (uninstall): Use $(DESTDIR).
12658
12659 2010-09-24 Pedro Alves <pedro@codesourcery.com>
12660
12661 PR gdb/11842
12662
12663 * linux-x86-low.c (compat_siginfo_from_siginfo)
12664 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
12665 si_code is < 0. Check for si_code == SI_TIMER before checking for
12666 si_code < 0.
12667
12668 2010-09-13 Joel Brobecker <brobecker@adacore.com>
12669
12670 * lynx-i386-low.c: New file.
12671 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
12672
12673 2010-09-13 Joel Brobecker <brobecker@adacore.com>
12674
12675 * lynx-low.c (ptrace_request_to_str): Remove handling for
12676 request values that have been removed in LynxOS 5.x.
12677
12678 2010-09-13 Joel Brobecker <brobecker@adacore.com>
12679
12680 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
12681 <ptrace.h>
12682
12683 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
12684
12685 * configure.ac: Add --enable-inprocess-agent option.
12686 * configure: Rebuilt.
12687
12688 2010-09-06 Yao Qi <yao@codesourcery.com>
12689
12690 * linux-low.c (linux_kill): Remove unused variable.
12691 (linux_stabilize_threads): Likewise.
12692 * server.c (start_inferior): Likewise.
12693 (queue_stop_reply_callback): Likewise.
12694 * tracepoint.c (do_action_at_tracepoint): Likewise.
12695
12696 2010-09-06 Yao Qi <yao@codesourcery.com>
12697
12698 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
12699 on return.
12700
12701 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
12702
12703 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
12704
12705 2010-09-06 Pedro Alves <pedro@codesourcery.com>
12706
12707 * Makefile.in (install-only): Replace $IPA_DEPFILES with
12708 "$(IPA_DEPFILES)".
12709
12710 2010-09-01 Joel Brobecker <brobecker@adacore.com>
12711
12712 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
12713 gdbserver/lynx-ppc-low.c: New files.
12714 * Makefile.in (lynx_low_h): New variable.
12715 (lynx-low.o, lynx-ppc-low.o): New rules.
12716 * configure.ac: On LynxOS, link with -lnetinet.
12717 * configure.srv: Add handling of powerpc-*-lynxos* targets.
12718 * configure: regenerate.
12719
12720 2010-09-01 Joel Brobecker <brobecker@adacore.com>
12721
12722 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
12723 * configure.ac: Add check for vasprintf and vsnprintf.
12724 * configure, config.in: Regenerate.
12725 * server.h (vasprintf, vsnprintf): Add conditional declarations.
12726
12727 2010-09-01 Joel Brobecker <brobecker@adacore.com>
12728
12729 * gdbreplay.c: Move include of alloca.h up, next to include of
12730 malloc.h.
12731 * server.h: Add include of malloc.h.
12732 * mem-break.c: Remove include of malloc.h.
12733 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
12734
12735 2010-09-01 Joel Brobecker <brobecker@adacore.com>
12736
12737 * Makefile.in (memmem.o): Build with -Wno-error.
12738
12739 2010-09-01 Joel Brobecker <brobecker@adacore.com>
12740
12741 * utils.c (xsnprintf): Make non-static.
12742 * server.h: Add xsnprintf declaration.
12743 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
12744 replace calls to snprintf by calls to xsnprintf throughout.
12745
12746 2010-09-01 Joel Brobecker <brobecker@adacore.com>
12747
12748 * configure.ac: Add configure check for alloca.
12749 * configure, config.in: Regenerate.
12750 * server.h: Include alloca.h if it exists.
12751 * gdbreplay.c: Include alloca.h if it exists.
12752
12753 2010-08-28 Pedro Alves <pedro@codesourcery.com>
12754
12755 * linux-low.c (__SIGRTMIN): Define if not already defined.
12756 (linux_create_inferior): Check for __ANDROID__ rather than
12757 __SIGRTMIN.
12758 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
12759 are already deferred.
12760 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
12761 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
12762 stopped and already has a pending signal to report.
12763 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
12764 a pending signal to report or is moving out of a jump pad.
12765 (linux_init_signals): Check for __ANDROID__ rather than
12766 __SIGRTMIN.
12767
12768 2010-08-28 Pedro Alves <pedro@codesourcery.com>
12769
12770 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
12771 debug_threads check. Avoid a linear search when not doing debug
12772 output.
12773
12774 2010-08-27 Pedro Alves <pedro@codesourcery.com>
12775
12776 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
12777 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
12778 (struct file_handler) <fd>: Change type to gdb_fildes_t.
12779 (process_event): Change local fd's type to gdb_fildes_t.
12780 (create_file_handler): Adjust prototype.
12781 (delete_file_handler): Adjust prototype.
12782 (handle_file_event): Adjust prototype. Use pfildes.
12783 (create_file_event): Adjsut prototype.
12784 * remote-utils.c (remote_desc, listen_desc): Change type to
12785 gdb_fildes_t.
12786 * server.h: New gdb_fildes_t typedef.
12787 [USE_WIN32API]: Include winsock2.h.
12788 (delete_file_handler, add_file_handler): Adjust prototypes.
12789 (pfildes): Declare.
12790 * utils.c (pfildes): New.
12791
12792 2010-08-27 Pedro Alves <pedro@codesourcery.com>
12793
12794 * configure.ac (build_warnings): Add -Wno-char-subscripts.
12795 * configure: Regenerate.
12796
12797 2010-08-27 Pedro Alves <pedro@codesourcery.com>
12798
12799 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
12800 (linux_done_accessing_memory): ... this.
12801 (linux_target_ops): Adjust.
12802 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
12803 * nto-low.c (nto_target_ops): Adjust comment.
12804 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
12805 * spu-low.c (spu_target_ops): Adjust comment.
12806 * target.h (target_ops): Rename unprepare_to_access_memory field
12807 to done_accessing_memory.
12808 (unprepare_to_access_memory): Rename to ...
12809 (done_accessing_memory): ... this.
12810
12811 2010-08-26 Pedro Alves <pedro@codesourcery.com>
12812
12813 * linux-low.c (linux_prepare_to_access_memory): New.
12814 (linux_unprepare_to_access_memory): New.
12815 (linux_target_ops): Install them.
12816 * server.c (read_memory): Rename to ...
12817 (gdb_read_memory): ... this. Use
12818 prepare_to_access_memory/prepare_to_access_memory.
12819 (write_memory): Rename to ...
12820 (gdb_write_memory): ... this. Use
12821 prepare_to_access_memory/prepare_to_access_memory.
12822 (handle_search_memory_1): Adjust.
12823 (process_serial_event): Adjust.
12824 * target.h (struct target_ops): New fields
12825 prepare_to_access_memory and unprepare_to_access_memory.
12826 (prepare_to_access_memory, unprepare_to_access_memory): New.
12827 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
12828 prepare_to_access_memory/prepare_to_access_memory.
12829 * nto-low.c (nto_target_ops): Adjust.
12830 * spu-low.c (spu_target_ops): Adjust.
12831 * win32-low.c (win32_target_ops): Adjust.
12832
12833 2010-08-26 Pedro Alves <pedro@codesourcery.com>
12834
12835 * Makefile.in (WARN_CFLAGS): Get it from configure.
12836 (WERROR_CFLAGS): New.
12837 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
12838 * configure.ac: Introduce --enable-werror, which adds -Werror to
12839 the compiler command line. Enabled by default. Disable with
12840 --disable-werror. Add -Wdeclaration-after-statement
12841 Wpointer-arith and -Wformat-nonliteral to warning flags.
12842 * configure: Regenerate.
12843
12844 2010-08-26 Pedro Alves <pedro@codesourcery.com>
12845
12846 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
12847
12848 2010-08-26 Pedro Alves <pedro@codesourcery.com>
12849
12850 * gdbreplay.c (remote_error): New.
12851 (gdbchar): New.
12852 (expect): Use gdbchar. Check for error reading from GDB.
12853 Clarify sync error output.
12854 (play): Check for errors writing to GDB.
12855 * linux-low.c (sigchld_handler): Really ignore `write' errors.
12856 * remote-utils.c (getpkt): Check for errors writing to the remote
12857 descriptor.
12858
12859 2010-08-25 Pedro Alves <pedro@codesourcery.com>
12860
12861 * linux-low.c (linux_wait_1): Move non-debugging code out of
12862 `debug_threads' control.
12863
12864 2010-08-25 Pedro Alves <pedro@codesourcery.com>
12865
12866 * linux-low.c (linux_wait_1): Don't set last_status here.
12867 * server.c (push_event, queue_stop_reply_callback): Assert we're
12868 not pushing a TARGET_WAITKIND_IGNORE event.
12869 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
12870 (myresume, handle_target_event): Set the thread's last_resume_kind
12871 and last_status from the target returned status.
12872
12873 2010-08-25 Pedro Alves <pedro@codesourcery.com>
12874
12875 PR threads/10729
12876
12877 * linux-x86-low.c (update_debug_registers_callback): New.
12878 (i386_dr_low_set_addr): Use it.
12879 (i386_dr_low_get_addr): New.
12880 (i386_dr_low_set_control): Use update_debug_registers_callback.
12881 (i386_dr_low_get_control): New.
12882 (i386_dr_low_get_status): Adjust.
12883 * linux-low.c (linux_stop_lwp): New.
12884 * linux-low.h (linux_stop_lwp): Declare.
12885
12886 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
12887 argument instead of a i386_debug_reg_state.
12888 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
12889 a i386_debug_reg_state.
12890 (i386_insert_aligned_watchpoint): Adjust.
12891 (i386_remove_aligned_watchpoint): Adjust.
12892 (i386_low_stopped_data_address): Read the debug registers from the
12893 inferior instead of from the mirrors.
12894 * i386-low.h (struct i386_debug_reg_state): Extend comment.
12895 (i386_dr_low_get_addr): Declare.
12896 (i386_dr_low_get_control): Declare.
12897 (i386_dr_low_get_status): Change prototype.
12898
12899 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
12900 (i386_dr_low_get_addr): New.
12901 (i386_dr_low_get_control): New.
12902 (i386_dr_low_get_status): Adjust prototype. Return
12903 dr_status_mirror.
12904 (i386_initial_stuff): Clear dr_status_mirror and
12905 dr_control_mirror.
12906 (i386_get_thread_context): Adjust.
12907 (i386_set_thread_context): Adjust.
12908 (i386_thread_added): Adjust.
12909
12910 2010-08-24 Pedro Alves <pedro@codesourcery.com>
12911
12912 * linux-low.h (linux_thread_area): Delete declaration.
12913
12914 2010-08-11 Thomas Schwinge <thomas@codesourcery.com>
12915
12916 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
12917 after its termination.
12918
12919 2010-08-09 Pedro Alves <pedro@codesourcery.com>
12920
12921 * linux-low.c (gdb_wants_lwp_stopped): Delete.
12922 (gdb_wants_all_stopped): Delete.
12923 (linux_wait_1): Don't call them.
12924 * server.c (handle_v_cont): Tag all threads as want-stopped.
12925 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
12926 stopped as "client-wants-stopped".
12927
12928 2010-07-31 Pedro Alves <pedro@codesourcery.com>
12929
12930 * Makefile.in (signals_h): New.
12931 (server_h): Depend on it.
12932 (server.o): Don't depend on $(signals_def).
12933 (signals.o): Depend on $(signals_def).
12934
12935 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
12936
12937 * Makefile.in (signals_def): New.
12938 (server_h): Append include/gdb/signals.h and signals_def.
12939 (server.o): Append signals_def.
12940
12941 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
12942
12943 * server.c (handle_target_event): Use target_signal_to_host for
12944 resume_info.sig initialization.
12945 * target.h (struct thread_resume) <sig>: New comment.
12946
12947 2010-07-20 Ozkan Sezer <sezeroz@gmail.com>
12948
12949 * server.c (handle_query): strcpy() the returned string from paddress()
12950 instead of sprintf().
12951 * utils.c (paddress): Return phex_nz().
12952
12953 2010-07-07 Joel Brobecker <brobecker@adacore.com>
12954
12955 * server.c (handle_v_cont): Call mourn_inferior if process
12956 just exited.
12957 (myresume): Likewise.
12958
12959 2010-07-01 Pedro Alves <pedro@codesourcery.com>
12960
12961 Static tracepoints, and integration with UST.
12962
12963 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
12964 * mem-break.c (uninsert_all_breakpoints)
12965 (reinsert_all_breakpoints): New.
12966 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
12967 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
12968 (gdb_agent_ust_loaded, helper_thread_id)
12969 (gdb_agent_helper_thread_id): New macros.
12970 (struct ipa_sym_addresses): Add addr_ust_loaded,
12971 addr_helper_thread_id, addr_cmd_buf.
12972 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
12973 (in_process_agent_loaded_ust): New.
12974 (write_e_ust_not_loaded): New.
12975 (maybe_write_ipa_ust_not_loaded): New.
12976 (struct collect_static_trace_data_action): New.
12977 (enum tracepoint_type) <static_tracepoint>: New.
12978 (struct tracepoint) <handle>: Mention static tracepoints.
12979 (struct static_tracepoint_ctx): New.
12980 (CMD_BUF_SIZE): New.
12981 (add_tracepoint_action): Handle static tracepoint actions.
12982 (unprobe_marker_at): New.
12983 (clear_installed_tracepoints): Handle static tracepoints.
12984 (cmd_qtdp): Handle static tracepoints.
12985 (probe_marker_at): New.
12986 (cmd_qtstart): Handle static tracepoints.
12987 (response_tracepoint): Handle static tracepoints.
12988 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
12989 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
12990 (get_context_regcache): Handle static tracepoints.
12991 (do_action_at_tracepoint): Handle static tracepoint actions.
12992 (traceframe_find_block_type): Handle static trace data blocks.
12993 (traceframe_read_sdata): New.
12994 (download_tracepoints): Download static tracepoint actions.
12995 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
12996 (GDB_PROBE_NAME): New.
12997 (ust_ops): New.
12998 (GET_UST_SYM): New.
12999 (USTF): New.
13000 (dlsym_ust): New.
13001 (ust_marker_to_static_tracepoint): New.
13002 (gdb_probe): New.
13003 (collect_ust_data_at_tracepoint): New.
13004 (gdb_ust_probe): New.
13005 (UNIX_PATH_MAX, SOCK_DIR): New.
13006 (gdb_ust_connect_sync_socket): New.
13007 (resume_thread, stop_thread): New.
13008 (run_inferior_command): New.
13009 (init_named_socket): New.
13010 (gdb_ust_socket_init): New.
13011 (cstr_to_hexstr): New.
13012 (next_st): New.
13013 (first_marker, next_marker): New.
13014 (response_ust_marker): New.
13015 (cmd_qtfstm, cmd_qtsstm): New.
13016 (unprobe_marker_at, probe_marker_at): New.
13017 (cmd_qtstmat, gdb_ust_thread): New.
13018 (gdb_ust_init): New.
13019 (initialize_tracepoint_ftlib): Call gdb_ust_init.
13020 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
13021 (ST_REGENTRY): New.
13022 (x86_64_st_collect_regmap): New.
13023 (X86_64_NUM_ST_COLLECT_GREGS): New.
13024 (AMD64_RIP_REGNUM): New.
13025 (supply_static_tracepoint_registers): New.
13026 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
13027 (ST_REGENTRY): New.
13028 (i386_st_collect_regmap): New.
13029 (i386_NUM_ST_COLLECT_GREGS): New.
13030 (supply_static_tracepoint_registers): New.
13031 * server.c (handle_query): Handle qXfer:statictrace:read.
13032 <qSupported>: Report support for StaticTracepoints, and
13033 qXfer:statictrace:read features.
13034 * server.h (traceframe_read_sdata)
13035 (supply_static_tracepoint_registers): Declare.
13036 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
13037 (unpack_varlen_hex): Include in IPA build.
13038 * Makefile.in (ustlibs, ustinc): New.
13039 (IPA_OBJS): Add remote-utils-ipa.o.
13040 ($(IPA_LIB)): Link -ldl and -lpthread.
13041 (UST_CFLAGS): New.
13042 (IPAGENT_CFLAGS): Add UST_CFLAGS.
13043 * config.in, configure: Regenerate.
13044
13045 2010-06-20 Ian Lance Taylor <iant@google.com>
13046 Pedro Alves <pedro@codesourcery.com>
13047
13048 * linux-x86-low.c (always_true): Delete.
13049 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
13050 trying to fool the compiler with always_true.
13051
13052 2010-06-20 Pedro Alves <pedro@codesourcery.com>
13053
13054 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
13055 conditions in gdbserver.
13056
13057 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
13058
13059 * spu-low.c (spu_read_memory): Wrap around local store limit.
13060 (spu_write_memory): Likewise.
13061
13062 2010-06-15 Pedro Alves <pedro@codesourcery.com>
13063
13064 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
13065 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
13066 LONGEST uses.
13067 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
13068 uses.
13069 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
13070 uses with LONGEST uses.
13071
13072 2010-06-14 Stan Shebs <stan@codesourcery.com>
13073 Pedro Alves <pedro@codesourcery.com>
13074
13075 Bytecode compiler.
13076
13077 * linux-x86-low.c: Include limits.h.
13078 (add_insns): New.
13079 (always_true): New.
13080 (EMIT_ASM): New.
13081 (EMIT_ASM32): New.
13082 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
13083 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
13084 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
13085 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
13086 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
13087 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
13088 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
13089 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
13090 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
13091 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
13092 (amd64_emit_void_call_2): New.
13093 (amd64_emit_ops): New.
13094 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
13095 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
13096 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
13097 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
13098 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
13099 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
13100 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
13101 (i386_emit_call, i386_emit_reg, i386_emit_pop)
13102 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
13103 (i386_emit_stack_adjust, i386_emit_int_call_1)
13104 (i386_emit_void_call_2): New.
13105 (i386_emit_ops): New.
13106 (x86_emit_ops): New.
13107 (the_low_target): Install x86_emit_ops.
13108 * server.h (struct emit_ops): New.
13109 (get_raw_reg_func_addr): Declare.
13110 (current_insn_ptr, emit_error): Declare.
13111 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
13112 (set_trace_state_variable_value): New defines.
13113 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
13114 addr_get_trace_state_variable_value and
13115 addr_set_trace_state_variable_value.
13116 (symbol_list): New fields for get_raw_reg,
13117 get_trace_state_variable_value and set_trace_state_variable_value.
13118 (condfn): New typedef.
13119 (struct tracepoint): New field `compiled_cond'.
13120 (do_action_at_tracepoint): Clear compiled_cond.
13121 (get_trace_state_variable_value, set_trace_state_variable_value):
13122 Export in the IPA.
13123 (condition_true_at_tracepoint): If there's a compiled condition,
13124 run that.
13125 (current_insn_ptr, emit_error): New globals.
13126 (struct bytecode_address): New.
13127 (get_raw_reg_func_addr): New.
13128 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
13129 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
13130 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
13131 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
13132 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
13133 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
13134 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
13135 (compile_tracepoint_condition, compile_bytecodes): New.
13136 * target.h (emit_ops): Forward declare.
13137 (struct target_ops): New field emit_ops.
13138 (target_emit_ops): New.
13139 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
13140 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
13141 * linux-low.c (linux_emit_ops): New.
13142 (linux_target_ops): Install it.
13143 * linux-low.h (struct linux_target_ops): New field emit_ops.
13144
13145 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
13146
13147 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
13148 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
13149
13150 2010-06-01 Pedro Alves <pedro@codesourcery.com>
13151 Stan Shebs <stan@codesourcery.com>
13152
13153 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
13154 (all): Depend on $(extra_libraries).
13155 (install-only): Install the IPA.
13156 (IPA_OBJS, IPA_LIB): New.
13157 (clean): Remove the IPA lib.
13158 (IPAGENT_CFLAGS): New.
13159 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
13160 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
13161 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
13162 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
13163 * configure.ac: Check for atomic builtins support in the compiler.
13164 (IPA_DEPFILES, extra_libraries): Define.
13165 * configure.srv (ipa_obj): Add description.
13166 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
13167 (i[34567]86-*-linux*): Set ipa_obj.
13168 (x86_64-*-linux*): Set ipa_obj.
13169 * linux-low.c (stabilizing_threads): New.
13170 (supports_fast_tracepoints): New.
13171 (linux_detach): Stabilize threads before detaching.
13172 (handle_tracepoints): Handle internal tracing breakpoints. Assert
13173 the lwp is either not stabilizing, or is moving out of a jump pad.
13174 (linux_fast_tracepoint_collecting): New.
13175 (maybe_move_out_of_jump_pad): New.
13176 (enqueue_one_deferred_signal): New.
13177 (dequeue_one_deferred_signal): New.
13178 (linux_wait_for_event_1): If moving out of a jump pad, defer
13179 pending signals to later.
13180 (linux_stabilize_threads): New.
13181 (linux_wait_1): Check if threads need moving out of jump pads, and
13182 do it if so.
13183 (stuck_in_jump_pad_callback): New.
13184 (move_out_of_jump_pad_callback): New.
13185 (lwp_running): New.
13186 (linux_resume_one_lwp): Handle moving out of jump pads.
13187 (linux_set_resume_request): Dequeue deferred signals.
13188 (need_step_over_p): Also step over fast tracepoint jumps.
13189 (start_step_over): Also uninsert fast tracepoint jumps.
13190 (finish_step_over): Also reinsert fast tracepoint jumps.
13191 (linux_install_fast_tracepoint_jump): New.
13192 (linux_target_ops): Install linux_stabilize_threads and
13193 linux_install_fast_tracepoint_jump_pad.
13194 * linux-low.h (linux_target_ops) <get_thread_area,
13195 install_fast_tracepoint_jump_pad>: New fields.
13196 (struct lwp_info) <collecting_fast_tracepoint,
13197 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
13198 (linux_get_thread_area): Declare.
13199 * linux-x86-low.c (jump_insn): New.
13200 (x86_get_thread_area): New.
13201 (append_insns): New.
13202 (push_opcode): New.
13203 (amd64_install_fast_tracepoint_jump_pad): New.
13204 (i386_install_fast_tracepoint_jump_pad): New.
13205 (x86_install_fast_tracepoint_jump_pad): New.
13206 (the_low_target): Install x86_get_thread_area and
13207 x86_install_fast_tracepoint_jump_pad.
13208 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
13209 (struct fast_tracepoint_jump): New.
13210 (fast_tracepoint_jump_insn): New.
13211 (fast_tracepoint_jump_shadow): New.
13212 (find_fast_tracepoint_jump_at): New.
13213 (fast_tracepoint_jump_here): New.
13214 (delete_fast_tracepoint_jump): New.
13215 (set_fast_tracepoint_jump): New.
13216 (uninsert_fast_tracepoint_jumps_at): New.
13217 (reinsert_fast_tracepoint_jumps_at): New.
13218 (set_breakpoint_at): Use write_inferior_memory.
13219 (uninsert_raw_breakpoint): Use write_inferior_memory.
13220 (check_mem_read): Mask out fast tracepoint jumps.
13221 (check_mem_write): Mask out fast tracepoint jumps.
13222 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
13223 (set_fast_tracepoint_jump): Declare.
13224 (delete_fast_tracepoint_jump)
13225 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
13226 (reinsert_fast_tracepoint_jumps_at): Declare.
13227 * regcache.c: Don't compile many functions when building the
13228 in-process agent library.
13229 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
13230 the register buffer in the heap.
13231 (free_register_cache): If the register buffer isn't owned by the
13232 regcache, don't free it.
13233 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
13234 pre-existing register caches.
13235 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
13236 type.
13237 (convert_ascii_to_int): : Constify `from' parameter type.
13238 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
13239 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
13240 the needed buffer in-place.
13241 (relocate_instruction): New.
13242 * server.c (handle_query) <qSymbols>: If the target supports
13243 tracepoints, give it a chance of looking up symbols. Report
13244 support for fast tracepoints.
13245 (handle_status): Stabilize threads.
13246 (process_serial_event): Adjust.
13247 * server.h (struct fast_tracepoint_jump): Forward declare.
13248 (struct process_info) <fast_tracepoint_jumps>: New field.
13249 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
13250 (decode_X_packet, decode_M_packet): Adjust.
13251 (relocate_instruction): Declare.
13252 (in_process_agent_loaded): Declare.
13253 (tracepoint_look_up_symbols): Declare.
13254 (struct fast_tpoint_collect_status): Declare.
13255 (fast_tracepoint_collecting): Declare.
13256 (force_unlock_trace_buffer): Declare.
13257 (handle_tracepoint_bkpts): Declare.
13258 (initialize_low_tracepoint)
13259 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
13260 * target.h (struct target_ops) <stabilize_threads,
13261 install_fast_tracepoint_jump_pad>: New fields.
13262 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
13263 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
13264 [HAVE_STDINT_H]: Include stdint.h.
13265 (trace_debug_1): Rename to ...
13266 (trace_vdebug): ... this.
13267 (trace_debug): Rename to ...
13268 (trace_debug_1): ... this. Add `level' parameter.
13269 (trace_debug): New.
13270 (ATTR_USED, ATTR_NOINLINE): New.
13271 (IP_AGENT_EXPORT): New.
13272 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
13273 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
13274 (about_to_request_buffer_space, trace_buffer_is_full)
13275 (stopping_tracepoint, expr_eval_result, error_tracepoint)
13276 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
13277 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
13278 (traceframe_write_count, traceframes_created)
13279 (trace_state_variables)
13280 New renaming defines.
13281 (struct ipa_sym_addresses): New.
13282 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
13283 (symbol_list): New.
13284 (ipa_sym_addrs): New.
13285 (all_tracepoint_symbols_looked_up): New.
13286 (in_process_agent_loaded): New.
13287 (write_e_ipa_not_loaded): New.
13288 (maybe_write_ipa_not_loaded): New.
13289 (tracepoint_look_up_symbols): New.
13290 (debug_threads) [IN_PROCESS_AGENT]: New.
13291 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
13292 (UNKNOWN_SIDE_EFFECTS): New.
13293 (stop_tracing): New.
13294 (flush_trace_buffer): New.
13295 (stop_tracing_bkpt): New.
13296 (flush_trace_buffer_bkpt): New.
13297 (read_inferior_integer): New.
13298 (read_inferior_uinteger): New.
13299 (read_inferior_data_pointer): New.
13300 (write_inferior_data_pointer): New.
13301 (write_inferior_integer): New.
13302 (write_inferior_uinteger): New.
13303 (struct collect_static_trace_data_action): Delete.
13304 (enum tracepoint_type): New.
13305 (struct tracepoint) <type>: New field `type'.
13306 <actions_str, step_actions, step_actions_str>: Only include in
13307 GDBserver.
13308 <orig_size, obj_addr_on_target, adjusted_insn_addr>
13309 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
13310 (tracepoints): Use IP_AGENT_EXPORT.
13311 (last_tracepoint): Don't include in the IPA.
13312 (stopping_tracepoint): Use IP_AGENT_EXPORT.
13313 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
13314 (alloced_trace_state_variables): New.
13315 (trace_state_variables): Use IP_AGENT_EXPORT.
13316 (traceframe_t): Delete unused variable.
13317 (circular_trace_buffer): Don't include in the IPA.
13318 (trace_buffer_start): Delete.
13319 (struct trace_buffer_control): New.
13320 (trace_buffer_free): Delete.
13321 (struct ipa_trace_buffer_control): New.
13322 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
13323 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
13324 New.
13325 (trace_buffer_ctrl): New.
13326 (TRACE_BUFFER_CTRL_CURR): New.
13327 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
13328 Reimplement as macros.
13329 (trace_buffer_wrap): Delete.
13330 (traceframe_write_count, traceframe_read_count)
13331 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
13332 (struct tracepoint_hit_ctx) <type>: New field.
13333 (struct fast_tracepoint_ctx): New.
13334 (memory_barrier): New.
13335 (cmpxchg): New.
13336 (record_tracepoint_error): Update atomically in the IPA.
13337 (clear_inferior_trace_buffer): New.
13338 (about_to_request_buffer_space): New.
13339 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
13340 updating the same buffer.
13341 (add_tracepoint): Default the tracepoint's type to trap
13342 tracepoint, and orig_size to -1.
13343 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
13344 internal variables.
13345 (create_trace_state_variable): New parameter `gdb'. Handle it.
13346 (clear_installed_tracepoints): Clear fast tracepoint jumps.
13347 (cmd_qtdp): Handle fast tracepoints.
13348 (cmd_qtdv): Adjust.
13349 (max_jump_pad_size): New.
13350 (gdb_jump_pad_head): New.
13351 (get_jump_space_head): New.
13352 (claim_jump_space): New.
13353 (sort_tracepoints): New.
13354 (MAX_JUMP_SIZE): New.
13355 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
13356 IPA.
13357 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
13358 support. Upload fast traceframes, and delete internal IPA
13359 breakpoints.
13360 (stop_tracing_handler): New.
13361 (flush_trace_buffer_handler): New.
13362 (cmd_qtstop): Upload fast tracepoints.
13363 (response_tracepoint): Handle fast tracepoints.
13364 (tracepoint_finished_step): Upload fast traceframes. Set the
13365 tracepoint hit context's tracepoint type.
13366 (handle_tracepoint_bkpts): New.
13367 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
13368 type. Add comment about fast tracepoints.
13369 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
13370 non-existing action_str field.
13371 (get_context_regcache): Handle fast tracepoints.
13372 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
13373 to the regcache.
13374 (fast_tracepoint_from_jump_pad_address): New.
13375 (fast_tracepoint_from_ipa_tpoint_address): New.
13376 (collecting_t): New.
13377 (force_unlock_trace_buffer): New.
13378 (fast_tracepoint_collecting): New.
13379 (collecting): New.
13380 (gdb_collect): New.
13381 (write_inferior_data_ptr): New.
13382 (target_tp_heap): New.
13383 (target_malloc): New.
13384 (download_agent_expr): New.
13385 (UALIGN): New.
13386 (download_tracepoints): New.
13387 (download_trace_state_variables): New.
13388 (upload_fast_traceframes): New.
13389 (IPA_FIRST_TRACEFRAME): New.
13390 (IPA_NEXT_TRACEFRAME_1): New.
13391 (IPA_NEXT_TRACEFRAME): New.
13392 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
13393 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
13394 (gdb_jump_pad_buffer_end): New.
13395 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
13396 (initialize_tracepoint): Adjust.
13397 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
13398 buffer. Initialize the low module.
13399 * utils.c (PREFIX, TOOLNAME): New.
13400 (malloc_failure): Use PREFIX.
13401 (error): In the IPA, an error causes an exit.
13402 (fatal, warning): Use PREFIX.
13403 (internal_error): Use TOOLNAME.
13404 (NUMCELLS): Increase to 10.
13405 * configure, config.in: Regenerate.
13406
13407 2010-06-01 Pedro Alves <pedro@codesourcery.com>
13408
13409 * server.c (handle_query) <qSupported>: Do two passes over the
13410 qSupported string to avoid nesting strtok.
13411
13412 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
13413
13414 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
13415 (CDEPS): New.
13416 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
13417 -Wl,--dynamic-list.
13418 * configure: Regenerate.
13419 * proc-service.list: New.
13420
13421 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
13422
13423 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
13424 New comment.
13425
13426 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
13427
13428 * gdbreplay.c (remote_open): Check error return from socket() call by
13429 its equality to -1 not by it being negative.
13430 * remote-utils.c (remote_open): Likewise.
13431
13432 2010-05-23 Pedro Alves <pedro@codesourcery.com>
13433
13434 * config.h: Regenerate.
13435
13436 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
13437
13438 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
13439 doesn't provide PTRACE_GET_THREAD_AREA.
13440
13441 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
13442
13443 * linux-m68k-low.c: Include <asm/ptrace.h>
13444 (ps_get_thread_area): Implement.
13445
13446 2010-05-03 Doug Evans <dje@google.com>
13447
13448 * event-loop.c (struct callback_event): New struct.
13449 (callback_list): New global.
13450 (append_callback_event, delete_callback_event): New functions.
13451 (process_callback): New function.
13452 (start_event_loop): Call it.
13453 * remote-utils.c (NOT_SCHEDULED): Define.
13454 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
13455 moved out of readchar.
13456 (readchar): Rewrite. Call reschedule before returning.
13457 (reset_readchar): New function.
13458 (remote_close): Call it.
13459 (process_remaining, reschedule): New functions.
13460 * server.h (callback_handler_func): New typedef.
13461 (append_callback_event, delete_callback_event): Declare.
13462
13463 2010-05-03 Pedro Alves <pedro@codesourcery.com>
13464
13465 * proc-service.c (ps_pglobal_lookup): Use
13466 thread_db_look_up_one_symbol.
13467 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
13468 parameter. Use it instead of all_symbols_looked_up.
13469 * server.h (struct process_info) <all_symbols_looked_up>: Delete
13470 field.
13471 (all_symbols_looked_up): Don't declare.
13472 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
13473 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
13474 field.
13475 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
13476 Set all_symbols_looked_up here.
13477 (thread_db_look_up_one_symbol): New.
13478 (thread_db_get_tls_address): Adjust.
13479 (thread_db_load_search, try_thread_db_load_1): Always allocate the
13480 thread_db object on the heap, and tentatively set it in the
13481 process structure.
13482 (thread_db_init): Don't set all_symbols_looked_up here.
13483 * linux-low.h (thread_db_look_up_one_symbol): Declare.
13484
13485 2010-05-03 Pedro Alves <pedro@codesourcery.com>
13486
13487 * linux-low.c (linux_kill, linux_detach): Adjust.
13488 (status_pending_p_callback): Remove redundant statement. Check
13489 for !TARGET_WAITIKIND_IGNORE, instead of
13490 TARGET_WAITKIND_STOPPED.
13491 (handle_tracepoints): Make sure LWP is locked. Adjust.
13492 (linux_wait_for_event_1): Adjust.
13493 (linux_cancel_breakpoints): New.
13494 (unsuspend_one_lwp): New.
13495 (unsuspend_all_lwps): New.
13496 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
13497 (send_sigstop_callback): Change return type to int, add new
13498 `except' parameter and handle it.
13499 (suspend_and_send_sigstop_callback): New.
13500 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
13501 pass them down. If SUSPEND, also increment the lwp's suspend
13502 count.
13503 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
13504 (need_step_over_p): Don't consider suspended LWPs.
13505 (start_step_over): Adjust.
13506 (proceed_one_lwp): Change return type to int, add new `except'
13507 parameter and handle it.
13508 (unsuspend_and_proceed_one_lwp): New.
13509 (proceed_all_lwps): Use find_inferior instead of
13510 for_each_inferior.
13511 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
13512 also decrement the suspend count of LWPs. Pass `except' down,
13513 instead of hacking its suspend count.
13514 (linux_pause_all): Add `freeze' parameter. Adjust.
13515 (linux_unpause_all): New.
13516 (linux_target_ops): Install linux_unpause_all.
13517 * server.c (handle_status): Adjust.
13518 * target.h (struct target_ops): New fields `unpause_all' and
13519 `cancel_breakpoints'. Add new parameter to `pause_all'.
13520 (pause_all): Add new `freeze' parameter.
13521 (unpause_all): New.
13522 (cancel_breakpoints): New.
13523 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
13524 cancel breakpoints.
13525 (cmd_qtstart): Pause threads.
13526 (stop_tracing): Pause threads, and cancel breakpoints.
13527 * win32-low.c (win32_target_ops): Adjust.
13528
13529 2010-05-03 Pedro Alves <pedro@codesourcery.com>
13530
13531 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
13532 the inferior right away from here...
13533 (linux_wait_1): ... to here, and adjust to check the thread's
13534 last_resume_kind instead of the lwp's step or stop_expected flags.
13535
13536 2010-05-02 Pedro Alves <pedro@codesourcery.com>
13537
13538 * README: Use consistent `GDB' and `GDBserver' spellings.
13539
13540 2010-05-02 Pedro Alves <pedro@codesourcery.com>
13541
13542 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
13543 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
13544 (linux_detach_one_lwp): Assume the lwp is stopped.
13545 (any_thread_of): Delete.
13546 (linux_detach): Stop all lwps here. Don't blindly delete all
13547 breakpoints.
13548 (delete_lwp_callback): New.
13549 (linux_mourn): Delete all lwps of the process that is gone.
13550 (linux_wait_1): Don't delete the last lwp of the process here.
13551 * mem-break.h (mark_breakpoints_out): Declare.
13552 * mem-break.c (mark_breakpoints_out): New.
13553 (free_all_breakpoints): Use it.
13554 * server.c (handle_target_event): If the process is gone, mark
13555 breakpoints out.
13556 * thread-db.c (struct thread_db) <create_bp>: New field.
13557 (thread_db_enable_reporting): Fix prototype. Store a thread event
13558 breakpoint reference in the thread_db struct.
13559 (thread_db_load_search): Clear the thread_db object.
13560 (try_thread_db_load_1): Ditto.
13561 (switch_to_process): New.
13562 (disable_thread_event_reporting): Use it.
13563 (remove_thread_event_breakpoints): New.
13564 (thread_db_detach, thread_db_mourn): Use it.
13565
13566 2010-05-01 Pedro Alves <pedro@codesourcery.com>
13567
13568 * linux-low.c (linux_enable_event_reporting): New.
13569 (linux_wait_for_event_1, handle_extended_wait): Use it.
13570
13571 2010-04-30 Pedro Alves <pedro@codesourcery.com>
13572
13573 * linux-low.c (linux_kill_one_lwp, linux_kill)
13574 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
13575 (send_sigstop): Take an lwp_info as parameter instead. Queue a
13576 SIGSTOP even if the LWP is stopped.
13577 (send_sigstop_callback): New.
13578 (stop_all_lwps): Use send_sigstop_callback instead.
13579 (linux_resume_one_thread): Adjust.
13580 (proceed_one_lwp): Still proceed an LWP that the client has
13581 requested to stop, if we haven't reported it as stopped yet. Make
13582 sure that LWPs the client want stopped, have a pending SIGSTOP.
13583
13584 2010-04-26 Doug Evans <dje@google.com>
13585
13586 * server.c (handle_general_set): Make static.
13587
13588 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
13589 Print received char after testing for error/eof instead of before.
13590 (input_interrupt): Tweak comment.
13591
13592 2010-04-23 Doug Evans <dje@google.com>
13593
13594 * server.c (start_inferior): Print inferior argv if --debug.
13595
13596 2010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
13597
13598 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
13599 * nto-x86-low.c: Include server.h
13600
13601 2010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
13602
13603 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
13604 be consistent with other sources of this directory.
13605 (init_registers_amd64): Correct name of source file of this function
13606 in the comment.
13607
13608 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
13609
13610 * configure.srv (x86_64-*-mingw*): New configuration for Windows
13611 64-bit executables.
13612
13613 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
13614
13615 * win32-i386-low.c: Add 64-bit support.
13616 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
13617 (init_registers_amd64): Declare.
13618 (mappings): Add 64-bit version of array.
13619 (init_windows_x86): New function.
13620 (the_low_target): Change init_arch field to init_windows_x86.
13621
13622 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
13623
13624 * win32-low.c: Adapt to support also 64-bit architecture.
13625 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
13626 (get_image_name): Use SIZE_T type for local variable `done'.
13627 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
13628 (toolhelp_get_dll_name): Idem.
13629 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
13630 Use uintptr_t typecast to avoid warning.
13631 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
13632 (handle_exception): Use phex_nz to avoid warning.
13633 (win32_wait): Remove unused local variable `process'.
13634
13635 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
13636
13637 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
13638 `amd64-avx.o'.
13639
13640 2010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
13641
13642 * configure.ac: Use `ws2_32' library for srv_mingw.
13643 * configure: Regenerate.
13644 * gdbreplay.c: Include winsock2.h instead of winsock.h.
13645 * remote-utils.c: Likewise.
13646
13647 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
13648
13649 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
13650 if __x86_64__ is defined.
13651
13652 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
13653
13654 * configure: Regenerate.
13655
13656 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
13657
13658 * server.c (handle_query): Handle 'qGetTIBAddr' query.
13659 * target.h (target_ops): New get_tib_address field.
13660 * win32-low.h (win32_thread_info): Add thread_local_base field.
13661 * win32-low.c (child_add_thread): Add tlb argument.
13662 Set thread_local_base field to TLB.
13663 (get_child_debug_event): Adapt to child_add_thread change.
13664 (win32_get_tib_address): New function.
13665 (win32_target_ops): Set get_tib_address field to
13666 win32_get_tib_address.
13667 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
13668
13669 2010-04-12 Pedro Alves <pedro@codesourcery.com>
13670
13671 * linux-low.c (linux_mourn): Also remove the process.
13672 * server.c (handle_target_event): Don't remove the process here.
13673 * nto-low.c (nto_mourn): New.
13674 (nto_target_ops): Install it.
13675 * spu-low.c (spu_mourn): New.
13676 (spu_target_ops): Install it.
13677 * win32-low.c (win32_mourn): New.
13678 (win32_target_ops): Install it.
13679
13680 2010-04-12 Pedro Alves <pedro@codesourcery.com>
13681
13682 * server.h (buffer_xml_printf): Remove redundant `;'.
13683
13684 2010-04-12 Pedro Alves <pedro@codesourcery.com>
13685
13686 * regcache.c (set_register_cache): Invalidate regcaches before
13687 changing the register cache layout.
13688 (regcache_invalidate_one): Allow a NULL regcache.
13689 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
13690 regcaches before changing the register cache layout or the target
13691 regsets.
13692
13693 2010-04-12 H.J. Lu <hongjiu.lu@intel.com>
13694
13695 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
13696 variable warning on Linux/x86-64.
13697
13698 2010-04-11 Pedro Alves <pedro@codesourcery.com>
13699
13700 GDBserver disconnected tracing support.
13701
13702 * linux-low.c (linux_remove_process): Delete.
13703 (add_lwp): Don't set last_resume_kind here.
13704 (linux_kill): Use `mourn'.
13705 (linux_detach): Use `thread_db_detach', and `mourn'.
13706 (linux_mourn): New.
13707 (linux_attach_lwp_1): Adjust comment.
13708 (linux_attach): last_resume_kind moved the thread_info; adjust.
13709 (status_pending_p_callback): Adjust.
13710 (linux_wait_for_event_1): Adjust.
13711 (count_events_callback, select_singlestep_lwp_callback)
13712 (select_event_lwp_callback, cancel_breakpoints_callback)
13713 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
13714 (proceed_one_lwp): Adjust.
13715 (linux_async): Add debug output.
13716 (linux_thread_stopped): New.
13717 (linux_pause_all): New.
13718 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
13719 linux_pause_all.
13720 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
13721 (thread_db_free): Delete declaration.
13722 (thread_db_detach, thread_db_mourn): Declare.
13723 * thread-db.c (thread_db_init): Use thread_db_mourn.
13724 (thread_db_free): Delete, split in two.
13725 (disable_thread_event_reporting): New.
13726 (thread_db_detach): New.
13727 (thread_db_mourn): New.
13728
13729 * server.h (struct thread_info) <last_resume_kind>: New field.
13730 <attached>: Add comment.
13731 <gdb_detached>: New field.
13732 (handler_func): Change return type to int.
13733 (handle_serial_event, handle_target_event): Ditto.
13734 (gdb_connected): Declare.
13735 (tracing): Delete.
13736 (disconnected_tracing): Declare.
13737 (stop_tracing): Declare.
13738
13739 * server.c (handle_query) <qSupported>: Report support for
13740 disconnected tracing.
13741 (queue_stop_reply_callback): Account for running threads.
13742 (gdb_wants_thread_stopped): New.
13743 (gdb_wants_all_threads_stopped): New.
13744 (gdb_reattached_process): New.
13745 (handle_status): Clear the `gdb_detached' flag of all processes.
13746 In all-stop, stop all threads.
13747 (main): Be sure to leave tfind mode. Handle disconnected tracing.
13748 (process_serial_event): If the remote connection breaks, or if an
13749 exit was forced with "monitor exit", force an event loop exit.
13750 Handle disconnected tracing on detach.
13751 (handle_serial_event): Adjust.
13752 (handle_target_event): If GDB isn't connected, forward events back
13753 to the inferior, unless the last process exited, in which case,
13754 exit gdbserver. Adjust interface.
13755
13756 * remote-utils.c (remote_open): Don't block in accept. Instead
13757 register an event loop source on the listen socket file
13758 descriptor. Refactor bits into ...
13759 (listen_desc): ... this new global.
13760 (gdb_connected): ... this new function.
13761 (enable_async_notification): ... this new function.
13762 (handle_accept_event): ... this new function.
13763 (remote_close): Clear remote_desc.
13764
13765 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
13766
13767 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
13768 New fields.
13769 (mourn_inferior): Define.
13770 (target_process_qsupported): Avoid the dangling else problem.
13771 (thread_stopped): Define.
13772 (pause_all): Define.
13773 (target_waitstatus_to_string): Declare.
13774 * target.c (target_waitstatus_to_string): New.
13775
13776 * tracepoint.c (tracing): Make extern.
13777 (disconnected_tracing): New.
13778 (stop_tracing): Make extern. Handle tracing stops due to GDB
13779 disconnecting.
13780 (cmd_qtdisconnected): New.
13781 (cmd_qtstatus): Report disconnected tracing status in trace reply.
13782 (handle_tracepoint_general_set): Handle QTDisconnected.
13783
13784 * event-loop.c (event_handler_func): Change return type to int.
13785 (process_event): Bail out if the event handler wants the event
13786 loop to stop.
13787 (handle_file_event): Ditto.
13788 (start_event_loop): Bail out if the event handler wants the event
13789 loop to stop.
13790
13791 * nto-low.c (nto_target_ops): Adjust.
13792 * spu-low.c (spu_wait): Don't remove the process here.
13793 (spu_target_ops): Adjust.
13794 * win32-low.c (win32_wait): Don't remove the process here.
13795 (win32_target_ops): Adjust.
13796
13797 2010-04-11 Pedro Alves <pedro@codesourcery.com>
13798
13799 * regcache.c (realloc_register_cache): Invalidate inferior's
13800 regcache before recreating it.
13801
13802 2010-04-09 Pedro Alves <pedro@codesourcery.com>
13803
13804 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
13805
13806 2010-04-09 Stan Shebs <stan@codesourcery.com>
13807 Pedro Alves <pedro@codesourcery.com>
13808
13809 * server.h (LONGEST): New.
13810 (struct thread_info) <while_stepping>: New field.
13811 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
13812 Declare.
13813 (initialize_tracepoint, handle_tracepoint_general_set)
13814 (handle_tracepoint_query, tracepoint_finished_step)
13815 (tracepoint_was_hit, release_while_stepping_state_list):
13816 (current_traceframe): Declare.
13817 * server.c (handle_general_set): Handle tracepoint packets.
13818 (read_memory): New.
13819 (write_memory): New.
13820 (handle_search_memory_1): Use read_memory.
13821 (handle_query): Report support for conditional tracepoints, trace
13822 state variables, and tracepoint sources. Handle tracepoint
13823 queries.
13824 (main): Initialize the tracepoints module.
13825 (process_serial_event): Handle traceframe reads/writes.
13826
13827 * linux-low.c (handle_tracepoints): New.
13828 (linux_wait_1): Call it.
13829 (linux_resume_one_lwp): Handle while-stepping.
13830 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
13831 (linux_target_ops): Install them.
13832 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
13833 New field.
13834 * linux-x86-low.c (x86_supports_tracepoints): New.
13835 (the_low_target). Install it.
13836
13837 * mem-break.h (delete_breakpoint): Declare.
13838 * mem-break.c (delete_breakpoint): Make external.
13839
13840 * target.h (struct target_ops): Add `supports_tracepoints',
13841 `read_pc', and `write_pc' fields.
13842 (target_supports_tracepoints): Define.
13843 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
13844 (phex_nz): New.
13845
13846 * regcache.h (struct regcache) <registers_owned>: New field.
13847 (init_register_cache, regcache_cpy): Declare.
13848 (regcache_read_pc, regcache_write_pc): Declare.
13849 (register_cache_size): Declare.
13850 (supply_regblock): Declare.
13851 * regcache.c (init_register_cache): New.
13852 (new_register_cache): Use it.
13853 (regcache_cpy): New.
13854 (register_cache_size): New.
13855 (supply_regblock): New.
13856 (regcache_read_pc, regcache_write_pc): New.
13857
13858 * tracepoint.c: New.
13859
13860 * Makefile.in (OBS): Add tracepoint.o.
13861 (tracepoint.o): New rule.
13862
13863 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
13864
13865 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
13866 (i386-mmx.o): New.
13867 (i386-mmx.c): Likewise.
13868 (i386-mmx-linux.o): Likewise.
13869 (i386-mmx-linux.c): Likewise.
13870
13871 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
13872 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
13873 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
13874 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
13875
13876 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
13877 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
13878 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
13879
13880 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
13881
13882 * Makefile.in (clean): Updated.
13883 (i386-avx.o): New.
13884 (i386-avx.c): Likewise.
13885 (i386-avx-linux.o): Likewise.
13886 (i386-avx-linux.c): Likewise.
13887 (amd64-avx.o): Likewise.
13888 (amd64-avx.c): Likewise.
13889 (amd64-avx-linux.o): Likewise.
13890 (amd64-avx-linux.c): Likewise.
13891
13892 * configure.srv (srv_i386_regobj): Add i386-avx.o.
13893 (srv_i386_linux_regobj): Add i386-avx-linux.o.
13894 (srv_amd64_regobj): Add amd64-avx.o.
13895 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
13896 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
13897 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
13898 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
13899 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
13900 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
13901 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
13902
13903 * i387-fp.c: Include "i386-xstate.h".
13904 (i387_xsave): New.
13905 (i387_cache_to_xsave): Likewise.
13906 (i387_xsave_to_cache): Likewise.
13907 (x86_xcr0): Likewise.
13908
13909 * i387-fp.h (i387_cache_to_xsave): Likewise.
13910 (i387_xsave_to_cache): Likewise.
13911 (x86_xcr0): Likewise.
13912
13913 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
13914 * linux-crisv32-low.c (target_regsets): Likewise.
13915 * linux-m68k-low.c (target_regsets): Likewise.
13916 * linux-mips-low.c (target_regsets): Likewise.
13917 * linux-ppc-low.c (target_regsets): Likewise.
13918 * linux-s390-low.c (target_regsets): Likewise.
13919 * linux-sh-low.c (target_regsets): Likewise.
13920 * linux-sparc-low.c (target_regsets): Likewise.
13921 * linux-xtensa-low.c (target_regsets): Likewise.
13922
13923 * linux-low.c: Include <sys/uio.h>.
13924 (regsets_fetch_inferior_registers): Support nt_type.
13925 (regsets_store_inferior_registers): Likewise.
13926 (linux_process_qsupported): New.
13927 (linux_target_ops): Add linux_process_qsupported.
13928
13929 * linux-low.h (regset_info): Add nt_type.
13930 (linux_target_ops): Add process_qsupported.
13931
13932 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
13933 and <sys/uio.h>.
13934 (init_registers_i386_avx_linux): New.
13935 (init_registers_amd64_avx_linux): Likewise.
13936 (xmltarget_i386_linux_no_xml): Likewise.
13937 (xmltarget_amd64_linux_no_xml): Likewise.
13938 (PTRACE_GETREGSET): Likewise.
13939 (PTRACE_SETREGSET): Likewise.
13940 (x86_fill_xstateregset): Likewise.
13941 (x86_store_xstateregset): Likewise.
13942 (use_xml): Likewise.
13943 (x86_linux_update_xmltarget): Likewise.
13944 (x86_linux_process_qsupported): Likewise.
13945 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
13946 (x86_arch_setup): Don't call init_registers_amd64_linux nor
13947 init_registers_i386_linux here. Call
13948 x86_linux_update_xmltarget.
13949 (the_low_target): Add x86_linux_process_qsupported.
13950
13951 * server.c (handle_query): Call target_process_qsupported.
13952
13953 * target.h (target_ops): Add process_qsupported.
13954 (target_process_qsupported): New.
13955
13956 2010-04-03 Pedro Alves <pedro@codesourcery.com>
13957
13958 * inferiors.c (add_thread): Set last_status kind to
13959 TARGET_WAITKIND_IGNORE.
13960 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
13961 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
13962 (linux_wait_1): Move `thread' local definition to block that uses
13963 it. Don't NULL initialize `event_child'.
13964 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
13965 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
13966 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
13967
13968 2010-04-01 Pedro Alves <pedro@codesourcery.com>
13969
13970 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
13971 an extended waitstatus, or by a watchpoint.
13972 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
13973 thread was stepping or has been stopped by a watchpoint.
13974
13975 2010-04-01 Pedro Alves <pedro@codesourcery.com>
13976
13977 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
13978 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
13979 of another, then delete the previous, and validate all
13980 breakpoints.
13981 (validate_inserted_breakpoint): New.
13982 (delete_disabled_breakpoints): New.
13983 (validate_breakpoints): New.
13984 (check_mem_read): Validate breakpoints before trusting their
13985 shadow. Delete disabled breakpoints.
13986 (check_mem_write): Validate breakpoints before trusting they
13987 should be inserted. Delete disabled breakpoints.
13988 * mem-break.h (validate_breakpoints):
13989 * server.c (handle_query): Validate breakpoints when we see a
13990 qSymbol query.
13991
13992 2010-04-01 Pedro Alves <pedro@codesourcery.com>
13993
13994 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
13995 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
13996 if we could tell there's a GDB breakpoint at stop_pc.
13997 (need_step_over_p): Don't do a step over if we find a GDB
13998 breakpoint at the resume PC.
13999
14000 * mem-break.c (struct raw_breakpoint): New.
14001 (enum bkpt_type): New type `gdb_breakpoint'.
14002 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
14003 fields. New field `raw'.
14004 (find_raw_breakpoint_at): New.
14005 (set_raw_breakpoint_at): Handle refcounting. Create a raw
14006 breakpoint instead.
14007 (set_breakpoint_at): Adjust.
14008 (delete_raw_breakpoint): New.
14009 (release_breakpoint): New.
14010 (delete_breakpoint): Rename to...
14011 (delete_breakpoint_1): ... this. Add proc parameter. Use
14012 release_breakpoint. Return ENOENT.
14013 (delete_breakpoint): Reimplement.
14014 (find_breakpoint_at): Delete.
14015 (find_gdb_breakpoint_at): New.
14016 (delete_breakpoint_at): Delete.
14017 (set_gdb_breakpoint_at): New.
14018 (delete_gdb_breakpoint_at): New.
14019 (gdb_breakpoint_here): New.
14020 (set_reinsert_breakpoint): Use release_breakpoint.
14021 (uninsert_breakpoint): Rename to ...
14022 (uninsert_raw_breakpoint): ... this.
14023 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
14024 (reinsert_raw_breakpoint): Change parameter type to
14025 raw_breakpoint.
14026 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
14027 instead.
14028 (check_breakpoints): Adjust. Use release_breakpoint.
14029 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
14030 (breakpoint_inserted_here): Ditto.
14031 (check_mem_read): Adjust to iterate over raw breakpoints instead.
14032 Don't trust the breakpoint's shadow if it is not inserted.
14033 (check_mem_write): Adjust to iterate over raw breakpoints instead.
14034 (delete_all_breakpoints): Adjust.
14035 (free_all_breakpoints): Mark all breakpoints as uninserted, and
14036 use delete_breakpoint_1.
14037
14038 * mem-break.h (breakpoints_supported): Delete declaration.
14039 (set_gdb_breakpoint_at): Declare.
14040 (gdb_breakpoint_here): Declare.
14041 (delete_breakpoint_at): Delete.
14042 (delete_gdb_breakpoint_at): Declare.
14043
14044 * server.h (struct raw_breakpoint): Forward declare.
14045 (struct process_info): New field `raw_breakpoints'.
14046
14047 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
14048 breakpoints.
14049
14050 2010-03-24 Pedro Alves <pedro@codesourcery.com>
14051
14052 * linux-low.c (status_pending_p_callback): Fix comment.
14053 (linux_wait_for_event_1): Move most of the internal breakpoint
14054 handling from here...
14055 (linux_wait_1): ... to here.
14056 (count_events_callback): New.
14057 (select_singlestep_lwp_callback): New.
14058 (select_event_lwp_callback): New.
14059 (cancel_breakpoints_callback): New.
14060 (select_event_lwp): New.
14061 (linux_wait_1): Simplify internal breakpoint handling. Give equal
14062 priority to all LWPs that have had events that should be reported
14063 to the client. Cancel breakpoints when about to reporting the
14064 event to the client, not while stopping lwps. No longer cancel
14065 finished single-steps here.
14066 (cancel_finished_single_step): Delete.
14067 (cancel_finished_single_steps): Delete.
14068
14069 2010-03-24 Pedro Alves <pedro@codesourcery.com>
14070
14071 * mem-break.c (enum bkpt_type): New.
14072 (struct breakpoint): New field `type'.
14073 (set_breakpoint_at): Change return type to struct breakpoint
14074 pointer. Set type to `other_breakpoint' by default.
14075 (delete_breakpoint): Rewrite, supporting more than one breakpoint
14076 in the breakpoint list.
14077 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
14078 (reinsert_breakpoint): Rename to ...
14079 (reinsert_raw_breakpoint): ... this.
14080 (reinsert_breakpoints_at): Adjust.
14081 * mem-break.h (struct breakpoint): Declare.
14082 (set_breakpoint_at): Change return type to struct breakpoint
14083 pointer.
14084
14085 2010-03-24 Pedro Alves <pedro@codesourcery.com>
14086
14087 * server.c (handle_query): Assign, not compare.
14088
14089 2010-03-24 Pedro Alves <pedro@codesourcery.com>
14090
14091 Teach linux gdbserver to step-over-breakpoints.
14092
14093 * linux-low.c (can_hardware_single_step): New.
14094 (supports_breakpoints): New.
14095 (handle_extended_wait): If stopping threads, read the stop pc of
14096 the new cloned LWP.
14097 (get_pc): New.
14098 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
14099 low target doesn't support retrieving the PC.
14100 (add_lwp): Set last_resume_kind to resume_continue.
14101 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
14102 (linux_attach): Don't clear stop_expected. Set the lwp's
14103 last_resume_kind to resume_stop.
14104 (linux_detach_one_lwp): Don't check for removed breakpoints.
14105 (check_removed_breakpoint): Delete.
14106 (status_pending_p): Rename to ...
14107 (status_pending_p_callback): ... this. Don't check for removed
14108 breakpoints. Don't consider threads that are stopped from GDB's
14109 perspective.
14110 (linux_wait_for_lwp): Always read the stop_pc here.
14111 (cancel_breakpoint): New.
14112 (step_over_bkpt): New global.
14113 (linux_wait_for_event_1): Implement stepping over breakpoints.
14114 (gdb_wants_lwp_stopped): New.
14115 (gdb_wants_all_stopped): New.
14116 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
14117 single-step traps here. Store the thread's last reported target
14118 wait status.
14119 (send_sigstop): Don't clear stop_expected. Always set it,
14120 instead.
14121 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
14122 (cancel_finished_single_step): New.
14123 (cancel_finished_single_steps): New.
14124 (wait_for_sigstop): Don't cancel finished single-step traps here.
14125 (linux_resume_one_lwp): Don't check for removed breakpoints.
14126 Don't set `step' on non-hardware step archs.
14127 (linux_set_resume_request): Ignore resume_stop requests if already
14128 stopping or stopped. Set the lwp's last_resume_kind.
14129 (resume_status_pending_p): Don't check for removed breakpoints.
14130 (need_step_over_p): New.
14131 (start_step_over): New.
14132 (finish_step_over): New.
14133 (linux_resume_one_thread): Always queue a sigstop for resume_stop
14134 requests. Clear the thread's last reported target waitstatus.
14135 Don't use the `suspended' flag. Don't consider pending breakpoints.
14136 (linux_resume): Start a step-over if necessary.
14137 (proceed_one_lwp): New.
14138 (proceed_all_lwps): New.
14139 (unstop_all_lwps): New.
14140 * linux-low.h (struct lwp_info): Rewrite comment for the
14141 `suspended' flag. Add the `stop_pc' field. Delete the
14142 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
14143 Add `'last_resume_kind' and `need_step_over' fields.
14144 * inferiors.c (struct thread_info): Delete, moved elsewhere.
14145 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
14146 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
14147 (set_raw_breakpoint_at): New.
14148 (set_breakpoint_at): Rewrite to use it.
14149 (reinsert_breakpoint_handler): Delete.
14150 (set_reinsert_breakpoint): New.
14151 (reinsert_breakpoint_by_bp): Delete.
14152 (delete_reinsert_breakpoints): New.
14153 (uninsert_breakpoint): Rewrite.
14154 (uninsert_breakpoints_at): New.
14155 (reinsert_breakpoint): Rewrite.
14156 (reinsert_breakpoints_at): New.
14157 (check_breakpoints): Rewrite.
14158 (breakpoint_here): New.
14159 (breakpoint_inserted_here): New.
14160 (check_mem_read): Adjust.
14161 * mem-break.h (breakpoints_supported, breakpoint_here)
14162 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
14163 (reinsert_breakpoint_by_bp): Delete declaration.
14164 (delete_reinsert_breakpoints): Declare.
14165 (reinsert_breakpoint): Delete declaration.
14166 (reinsert_breakpoints_at): Declare.
14167 (uninsert_breakpoint): Delete declaration.
14168 (uninsert_breakpoints_at): Declare.
14169 (check_breakpoints): Adjust prototype.
14170 * server.h: Adjust include order.
14171 (struct thread_info): Declare here. Add a `last_status' field.
14172
14173 2010-03-23 Michael Snyder <msnyder@vmware.com>
14174
14175 * server.c (crc32): New function.
14176 (handle_query): Add handling for 'qCRC:' request.
14177
14178 2010-03-23 Pedro Alves <pedro@codesourcery.com>
14179
14180 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
14181 lwp had been stopped by a watchpoint.
14182
14183 2010-03-16 Pedro Alves <pedro@codesourcery.com>
14184
14185 * server.h (internal_error): Declare.
14186 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
14187 * utils.c (internal_error): New function.
14188
14189 2010-03-15 Andreas Schwab <schwab@redhat.com>
14190
14191 * configure.srv: Fix typo setting srv_regobj.
14192
14193 2010-03-15 Pedro Alves <pedro@codesourcery.com>
14194
14195 * linux-low.c (fetch_register): Avoid passing a non string literal
14196 format to `error'.
14197 (usr_store_inferior_registers): Ditto.
14198
14199 2010-03-14 Pedro Alves <pedro@codesourcery.com>
14200
14201 * linux-low.c (linux_write_memory): Bail out early if peeking
14202 memory failed.
14203
14204 2010-03-14 Pedro Alves <pedro@codesourcery.com>
14205
14206 * linux-low.h (struct lwp_info): New fields
14207 `stopped_by_watchpoint' and `stopped_data_address'.
14208 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
14209 here, and cache them in the lwp object.
14210 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
14211 directly.
14212 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
14213 field.
14214 (linux_stopped_by_watchpoint): Rewrite.
14215 (linux_stopped_data_address): Rewrite.
14216
14217 2010-03-06 Simo Melenius <simo.melenius@iki.fi>
14218
14219 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
14220 switching the current inferior, not before.
14221
14222 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
14223
14224 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
14225 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
14226 i386-linux.c and amd64-linux.c.
14227 (reg-i386.o): Removed.
14228 (reg-i386.c): Likewise.
14229 (reg-i386-linux.o): Likewise.
14230 (reg-i386-linux.c): Likewise.
14231 (reg-x86-64.o): Likewise.
14232 (reg-x86-64.c): Likewise.
14233 (reg-x86-64-linux.o): Likewise.
14234 (reg-x86-64-linux.c): Likewise.
14235 (i386.o): New.
14236 (i386.c): Likewise.
14237 (i386-linux.o): Likewise.
14238 (i386-linux.c): Likewise.
14239 (amd64.o): Likewise.
14240 (amd64.c): Likewise.
14241 (amd64-linux.o): Likewise.
14242 (amd64-linux.c): Likewise.
14243
14244 * configure.srv (srv_i386_regobj): New.
14245 (srv_i386_linux_regobj): Likewise.
14246 (srv_amd64_regobj): Likewise.
14247 (srv_amd64_linux_regobj): Likewise.
14248 (srv_i386_32bit_xmlfiles): Likewise.
14249 (srv_i386_64bit_xmlfiles): Likewise.
14250 (srv_i386_xmlfiles): Likewise.
14251 (srv_amd64_xmlfiles): Likewise.
14252 (srv_i386_linux_xmlfiles): Likewise.
14253 (srv_amd64_linux_xmlfiles): Likewise.
14254 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
14255 srv_xmlfiles to $srv_i386_xmlfiles.
14256 (i[34567]86-*-mingw32ce*): Likewise.
14257 (i[34567]86-*-mingw*): Likewise.
14258 (i[34567]86-*-nto*): Likewise.
14259 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
14260 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
14261 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
14262 (x86_64-*-linux*): Likewise.
14263
14264 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
14265 (init_registers_amd64_linux): New.
14266 (x86_arch_setup): Replace init_registers_x86_64_linux with
14267 init_registers_amd64_linux.
14268
14269 2010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
14270
14271 * configure.ac: Check for libdl. If it is not available link against
14272 static libthread_db.
14273 * configure: Regenerate.
14274
14275 2010-02-22 Pedro Alves <pedro@codesourcery.com>
14276
14277 PR9605
14278
14279 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
14280 handing a read watchpoint.
14281 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
14282
14283 2010-02-12 Doug Evans <dje@google.com>
14284
14285 * linux-low.c (linux_supports_tracefork_flag): Document.
14286 (linux_look_up_symbols): Add comment.
14287
14288 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
14289
14290 * regcache.c (supply_register): Clear regcache if buf is NULL.
14291
14292 2010-02-02 Nicolas Roche <roche@sourceware.org>
14293 Joel Brobecker <brobecker@adacore.com>
14294
14295 * inferiors.c (find_inferior): Add function documentation.
14296 (unloaded_dll): Handle the case where the unloaded dll has not
14297 been previously registered in the dll list.
14298
14299 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
14300
14301 * linux-arm-low.c (thumb_breakpoint_len): Delete.
14302 (thumb2_breakpoint): New.
14303 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
14304
14305 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
14306
14307 * linux-low.c (get_stop_pc): Check for SIGTRAP.
14308 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
14309 breakpoints.
14310
14311 2010-01-21 Pedro Alves <pedro@codesourcery.com>
14312
14313 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
14314
14315 2010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
14316
14317 * linux-s390-low.c (s390_collect_ptrace_register)
14318 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
14319
14320 2010-01-21 Doug Evans <dje@google.com>
14321
14322 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
14323 (PTRACE_ARG4_TYPE): New macro.
14324 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
14325 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
14326 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
14327 (usr_store_inferior_registers): Ditto.
14328 (linux_read_memory, linux_write_memory): Ditto.
14329 (linux_test_for_tracefork): Ditto.
14330
14331 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
14332 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
14333
14334 2010-01-21 Pedro Alves <pedro@codesourcery.com>
14335
14336 * proc-service.c (ps_lgetregs): Don't refetch registers from the
14337 target.
14338
14339 2010-01-21 Pedro Alves <pedro@codesourcery.com>
14340
14341 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
14342 prototype to take a regcache. Adjust.
14343
14344 2010-01-20 Pedro Alves <pedro@codesourcery.com>
14345
14346 * regcache.h (struct thread_info): Forward declare.
14347 (struct regcache): New.
14348 (new_register_cache): Adjust prototype.
14349 (get_thread_regcache): Declare.
14350 (free_register_cache): Adjust prototype.
14351 (registers_to_string, registers_from_string): Ditto.
14352 (supply_register, supply_register_by_name, collect_register)
14353 (collect_register_as_string, collect_register_by_name): Ditto.
14354 * regcache.c (struct inferior_regcache_data): Delete.
14355 (get_regcache): Rename to ...
14356 (get_thread_regcache): ... this. Adjust. Switch inferior before
14357 fetching registers.
14358 (regcache_invalidate_one): Adjust.
14359 (regcache_invalidate): Fix prototype.
14360 (new_register_cache): Return the new register cache.
14361 (free_register_cache): Change prototype.
14362 (realloc_register_cache): Adjust.
14363 (registers_to_string): Change prototype to take a regcache. Adjust.
14364 (registers_from_string): Ditto.
14365 (register_data): Ditto.
14366 (supply_register): Ditto.
14367 (supply_register_by_name): Ditto.
14368 (collect_register): Ditto.
14369 (collect_register_as_string): Ditto.
14370 (collect_register_by_name): Ditto.
14371 * server.c (process_serial_event): Adjust.
14372 * linux-low.h (regset_fill_func, regset_store_func): Change
14373 prototype.
14374 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
14375 Change prototype.
14376 * linux-low.c (get_stop_pc): Adjust.
14377 (check_removed_breakpoint): Adjust.
14378 (linux_wait_for_event): Adjust.
14379 (linux_resume_one_lwp): Adjust.
14380 (fetch_register): Add regcache parameter. Adjust.
14381 (usr_store_inferior_registers): Ditto.
14382 (regsets_fetch_inferior_registers): Ditto.
14383 (regsets_store_inferior_registers): Ditto.
14384 (linux_fetch_registers, linux_store_registers): Ditto.
14385 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
14386 regcache. Adjust.
14387 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
14388 Ditto.
14389 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
14390 prototype to take a regcache.
14391 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
14392 * remote-utils.c (convert_ascii_to_int, outreg)
14393 (prepare_resume_reply): Change prototype to take a regcache.
14394 Adjust.
14395 * target.h (struct target_ops) <fetch_registers, store_registers>:
14396 Change prototype to take a regcache.
14397 (fetch_inferior_registers, store_inferior_registers): Change
14398 prototype to take a regcache. Adjust.
14399 * proc-service.c (ps_lgetregs): Adjust.
14400 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
14401 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
14402 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
14403 take a regcache. Adjust.
14404 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
14405 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
14406 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
14407 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
14408 * linux-cris-low.c (cris_get_pc, cris_set_pc)
14409 (cris_cannot_fetch_register):
14410 (cris_breakpoint_at): Change prototype to take a regcache.
14411 Adjust.
14412 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
14413 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
14414 to take a regcache. Adjust.
14415 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
14416 Adjust.
14417 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
14418 take a regcache. Adjust.
14419 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
14420 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
14421 (m68k_set_pc): Change prototype to take a regcache. Adjust.
14422 * linux-mips-low.c (mips_get_pc):
14423 (mips_set_pc): Change prototype to take a regcache. Adjust.
14424 (mips_reinsert_addr): Adjust.
14425 (mips_collect_register): Change prototype to take a regcache.
14426 Adjust.
14427 (mips_supply_register):
14428 (mips_collect_register_32bit, mips_supply_register_32bit)
14429 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
14430 (mips_store_fpregset): Ditto.
14431 * linux-ppc-low.c (ppc_supply_ptrace_register)
14432 (ppc_supply_ptrace_register): Ditto.
14433 (parse_spufs_run): Adjust.
14434 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
14435 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
14436 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
14437 take a regcache. Adjust.
14438 * linux-s390-low.c (s390_collect_ptrace_register)
14439 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
14440 (s390_set_pc): Change prototype to take a regcache. Adjust.
14441 (s390_arch_setup): Adjust.
14442 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
14443 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
14444 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
14445 (sparc_fill_gregset, sparc_store_gregset_from_stack)
14446 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
14447 regcache. Adjust.
14448 (sparc_breakpoint_at): Adjust.
14449 * linux-xtensa-low.c (xtensa_fill_gregset):
14450 (xtensa_store_gregset):
14451 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
14452 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
14453 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
14454 prototype to take a regcache. Adjust.
14455 * win32-arm-low.c (arm_fetch_inferior_register)
14456 (arm_store_inferior_register): Change prototype to take a
14457 regcache. Adjust.
14458 * win32-i386-low.c (i386_fetch_inferior_register)
14459 (i386_store_inferior_register): Change prototype to take a
14460 regcache. Adjust.
14461 * win32-low.c (child_fetch_inferior_registers)
14462 (child_store_inferior_registers): Change prototype to take a
14463 regcache. Adjust.
14464 (win32_wait): Adjust.
14465 (win32_fetch_inferior_registers): Change prototype to take a
14466 regcache. Adjust.
14467 (win32_store_inferior_registers): Adjust.
14468 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
14469 store_inferior_register>: Change prototype to take a regcache.
14470
14471 2010-01-20 Doug Evans <dje@google.com>
14472
14473 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
14474 #ifdef.
14475 (linux_wait_for_event1, linux_init_signals): Ditto.
14476 (W_STOPCODE): Provide definition if missing.
14477
14478 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
14479
14480 * linux-low.c (linux_core_of_thread): New.
14481 (compare_ints, show_process, list_threads): New.
14482 (linux_qxfer_osdata): Report threads and cores.
14483 (linux_target_op): Register linux_core_of_thread.
14484 * remote-utils.c (prepare_resume_reply): Report the core.
14485 (buffer_xml_printf): Support %d specifier.
14486 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
14487 New.
14488 (handle_query): Handle qXfer:threads. Announce availability
14489 thereof.
14490 * target.h (struct target_ops): New field core_of_thread.
14491
14492 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
14493
14494 * Makefile.in (clean): Remove new generated files.
14495 (reg-s390.o, reg-s390.c): Remove rules.
14496 (reg-s390x.o, reg-s390x.c): Likewise.
14497 (s390-linux32.o, s390-linux32.c): Add rules.
14498 (s390-linux64.o, s390-linux64.c): Likewise.
14499 (s390x-linux64.o, s390x-linux64.c): Likewise.
14500 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
14501 * linux-s390-low.c: Include <elf.h>.
14502 (HWCAP_S390_HIGH_GPRS): Define if undefined.
14503 (init_registers_s390): Remove prototype.
14504 (init_registers_s390x): Likewise.
14505 (init_registers_s390_linux32): Add prototype.
14506 (init_registers_s390_linux64): Likewise.
14507 (init_registers_s390x_linux64): Likewise.
14508 (s390_num_regs_3264): New define.
14509 (s390_regmap_3264): New global variable.
14510 (s390_cannot_fetch_register): Remove obsolete check.
14511 (s390_cannot_store_register): Likewise.
14512 (s390_collect_ptrace_register): Handle upper/lower register halves.
14513 (s390_supply_ptrace_register): Likewise.
14514 (s390_fill_gregset): Update to register number changes.
14515 (s390_get_hwcap): New routine.
14516 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
14517 Install appropriate regmap and register set.
14518
14519 2010-01-01 Joel Brobecker <brobecker@adacore.com>
14520
14521 * server.c (gdbserver_version): Update copyright year to 2010.
14522 * gdbreplay.c (gdbreplay_version): Likewise.
14523
14524 2009-12-28 Doug Evans <dje@google.com>
14525
14526 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
14527 elf/external.h. Include <elf.h> instead but only if necessary.
14528
14529 2009-12-28 Pedro Alves <pedro@codesourcery.com>
14530
14531 * linux-low.c (linux_remove_process): Remove `detaching'
14532 parameter. Don't release/detach from thread_db here.
14533 (linux_kill): Release/detach from thread_db here, ...
14534 (linux_detach): ... and here, before actually detaching.
14535 (linux_wait_1): ... and here, when a process exits.
14536 * thread-db.c (any_thread_of): New.
14537 (thread_db_free): Switch the current inferior to a thread of the
14538 passed in process.
14539
14540 2009-12-21 Doug Evans <dje@google.com>
14541
14542 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
14543
14544 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
14545 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
14546 warning ifndef __NR_tkill. Move setting of errno there too.
14547 Delete unnecessary resetting of errno after syscall.
14548 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
14549
14550 * configure.ac: Check for dladdr.
14551 * config.in: Regenerate.
14552 * configure: Regenerate.
14553 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
14554 (try_thread_db_load): Update.
14555
14556 * linux-low.c (my_waitpid): Delete unnecessary prototype.
14557
14558 2009-12-18 Doug Evans <dje@google.com>
14559
14560 * event-loop.c: Include unistd.h if it exists.
14561
14562 * linux-low.c (my_waitpid): Move definition away from being in
14563 between linux_tracefork_child/linux_test_for_tracefork.
14564
14565 * gdb_proc_service.h (psaddr_t): Fix type.
14566 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
14567 signature to match glibc.
14568
14569 2009-12-16 Doug Evans <dje@google.com>
14570
14571 * linux-low.c (linux_read_memory): Fix argument to read.
14572
14573 2009-11-26 Pedro Alves <pedro@codesourcery.com>
14574
14575 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
14576 events, don't leave current_inferior pointing at null.
14577
14578 2009-11-26 Pedro Alves <pedro@codesourcery.com>
14579
14580 * win32-low.c (LOG): Delete.
14581 (OUTMSG): Output to stderr.
14582 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
14583 on compile time LOG macro.
14584 (win32_wait): Fix debug output.
14585
14586 2009-11-26 Pedro Alves <pedro@codesourcery.com>
14587
14588 * win32-low.c (win32_add_one_solib): If the dll name is
14589 "ntdll.dll", prepend the system directory to the dll path.
14590
14591 2009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
14592
14593 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
14594
14595 2009-11-17 Nathan Sidwell <nathan@codesourcery.com>
14596 Vladimir Prus <vladimir@codesourcery.com>
14597
14598 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
14599 * configure.ac: Check for __mcoldfire__ and set
14600 gdb_cv_m68k_is_coldfire.
14601 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
14602 reg-cf.o and reg-m68k.o.
14603 * configure: Regenerated.
14604
14605 2009-11-16 Pedro Alves <pedro@codesourcery.com>
14606
14607 * linux-low.c (linux_remove_process): Add `detaching' parameter.
14608 Pass it to thread_db_free.
14609 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
14610 proper `detaching' argument to linux_remove_process.
14611 * linux-low.h (thread_db_free): Add `detaching' parameter.
14612 * thread-db.c (thread_db_init): Pass false as `detaching' argument
14613 to thread_db_free.
14614 (thread_db_free): Add `detaching' parameter. Only
14615 call td_ta_clear_event if detaching from process.
14616
14617 2009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
14618
14619 * thread-db.c (thread_db_free): Fix typo.
14620
14621 2009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
14622
14623 PR gdb/10838
14624 * thread-db.c (thread_db_free): Call td_ta_clear_event.
14625
14626 2009-11-03 Nathan Sidwell <nathan@codesourcery.com>
14627
14628 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
14629 with an i686 compiler.
14630 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
14631 needed.
14632 * configure: Rebuilt.
14633
14634 2009-10-29 Sandra Loosemore <sandra@codesourcery.com>
14635
14636 PR gdb/10783
14637
14638 * server.c (handle_search_memory_1): Correct read_addr initialization
14639 in loop for searching subsequent chunks.
14640
14641 2009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
14642
14643 * configure.ac: New --with-libthread-db option.
14644 * thread-db.c: Allow direct dependence on libthread_db.
14645 (thread_db_free): Adjust.
14646 * config.in: Regenerate.
14647 * configure: Likewise.
14648
14649 2009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
14650
14651 PR gdb/10757
14652 * thread-db.c (attach_thread): New function.
14653 (maybe_attach_thread): Return success/failure.
14654 (find_new_threads_callback): Adjust.
14655 (thread_db_find_new_threads): Loop until no new threads.
14656
14657 2009-10-13 Pedro Alves <pedro@codesourcery.com>
14658
14659 * proc-service.c (ps_lgetregs): Formatting.
14660
14661 2009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
14662
14663 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
14664 * configure.ac: Adjust.
14665 * linux-low.h (struct process_info_private): Move members to struct
14666 thread_db.
14667 (thread_db_free, thread_db_handle_monitor_command): New prototype.
14668 * linux-low.c (linux_remove_process): Adjust.
14669 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
14670 * server.c (handle_query): Move code ...
14671 (handle_monitor_command): ... here. New function.
14672 * target.h (struct target_ops): New member.
14673 * thread-db.c (struct thread_db): New.
14674 (libthread_db_search_path): New variable.
14675 (thread_db_create_event, thread_db_enable_reporting)
14676 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
14677 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
14678 (try_thread_db_load_1, dladdr_to_soname): New functions.
14679 (try_thread_db_load, thread_db_load_search): New functions.
14680 (thread_db_init): Search for libthread_db.
14681 (thread_db_free): New function.
14682 (thread_db_handle_monitor_command): Likewise.
14683 * config.in: Regenerate.
14684 * configure: Regenerate.
14685
14686 2009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
14687
14688 * spu-low.c (spu_kill): Wait for inferior to terminate.
14689 Call clear_inferiors.
14690 (spu_detach): Call clear_inferiors.
14691
14692 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14693
14694 * aclocal.m4: Regenerate.
14695 * config.in: Likewise.
14696 * configure: Likewise.
14697
14698 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
14699
14700 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
14701 (parse_spufs_run): New function.
14702 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
14703 (ppc_breakpoint_at): Handle SPU breakpoints.
14704
14705 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
14706
14707 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
14708 (SPUFS_MAGIC): Define.
14709 (spu_enumerate_spu_ids): New function.
14710 (linux_qxfer_spu): New function.
14711 (linux_target_ops): Install linux_qxfer_spu.
14712
14713 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
14714
14715 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
14716 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
14717 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
14718 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
14719 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
14720 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
14721 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
14722 (init_registers_powerpc_cell32l): Add prototype.
14723 (init_registers_powerpc_cell64l): Likewise.
14724 (ppc_arch_setup): Detect Cell/B.E. architecture.
14725
14726 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14727
14728 * Makefile.in (datarootdir): New variable.
14729
14730 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
14731
14732 * linux-low.c (linux_write_memory): Update debugging output.
14733 * Makefile.in (clean): Add new descriptions.
14734 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
14735 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
14736 * configure.srv: Add new files for arm*-*-linux*.
14737 * linux-arm-low.c: Add new declarations.
14738 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
14739 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
14740 (HWCAP_VFPv3D16): New.
14741 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
14742 instead of __IWMMXT__.
14743 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
14744 (arm_arch_setup): New.
14745 (target_regsets): Remove #ifdef. Add VFP regset.
14746 (the_low_target): Use arm_arch_setup.
14747
14748 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
14749
14750 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
14751 the main thread again.
14752
14753 2009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
14754
14755 Adding Neutrino gdbserver.
14756 * configure: Regenerated.
14757 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
14758 * configure.srv (i[34567]86-*-nto*): New target.
14759 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
14760 * remote-utils.c [__QNX__]: Include sys/iomgr.h
14761 (nto_comctrl) [__QNX__]: New function.
14762 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
14763
14764 2009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
14765
14766 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
14767 srv_tgtobj.
14768
14769 2009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
14770 Pedro Alves <pedro@codesourcery.com>
14771
14772 * win32-i386-low.c (i386_get_thread_context): Handle systems that
14773 don't support CONTEXT_EXTENDED_REGISTERS.
14774 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
14775 (the_low_target): Install them.
14776 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
14777 failing with ERROR_PIPE_NOT_CONNECTED.
14778
14779 2009-06-30 Doug Evans <dje@google.com>
14780 Pierre Muller <muller@ics.u-strasbg.fr>
14781
14782 Add h/w watchpoint support to x86-linux, win32-i386.
14783 * Makefile.in (SFILES): Add i386-low.c
14784 (i386_low_h): Define.
14785 (i386-low.o): Add dependencies.
14786 (linux-x86-low.o): Add i386-low.h dependency.
14787 (win32-i386-low.o): Ditto.
14788 * i386-low.c: New file.
14789 * i386-low.h: New file.
14790 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
14791 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
14792 * linux-low.c (linux_add_process): Initialize arch_private.
14793 (linux_remove_process): Free arch_private.
14794 (add_lwp): Initialize arch_private.
14795 (delete_lwp): Free arch_private.
14796 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
14797 provided.
14798 * linux-low.h (process_info_private): New member arch_private.
14799 (lwp_info): New member arch_private.
14800 (linux_target_ops): New members new_process, new_thread,
14801 prepare_to_resume.
14802 (ptid_of): New macro.
14803 * linux-x86-low.c: Include stddef.h, i386-low.h.
14804 (arch_process_info): New struct.
14805 (arch_lwp_info): New struct.
14806 (x86_linux_dr_get, x86_linux_dr_set): New functions.
14807 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
14808 (i386_dr_low_get_status): New function.
14809 (x86_insert_point, x86_remove_point): New functions.
14810 (x86_stopped_by_watchpoint): New function.
14811 (x86_stopped_data_address): New function.
14812 (x86_linux_new_process, x86_linux_new_thread): New functions.
14813 (x86_linux_prepare_to_resume): New function.
14814 (the_low_target): Add entries for insert_point, remove_point,
14815 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
14816 prepare_to_resume.
14817 * server.c (debug_hw_points): New global.
14818 (monitor_show_help): Document set debug-hw-points.
14819 (handle_query): Process "set debug-hw-points".
14820 * server.h (debug_hw_points): Declare.
14821 (paddress): Declare.
14822 * utils.c (NUMCELLS, CELLSIZE): New macros.
14823 (get_sell, xsnprintf, paddress): New functions.
14824 * win32-arm-low.c (the_low_target): Add entries for insert_point,
14825 remove_point, stopped_by_watchpoint, stopped_data_address.
14826 * win32-i386-low.c: Include i386-low.h.
14827 (debug_reg_state): Replaces dr.
14828 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
14829 (i386_dr_low_get_status): New function.
14830 (i386_insert_point, i386_remove_point): New functions.
14831 (i386_stopped_by_watchpoint): New function.
14832 (i386_stopped_data_address): New function.
14833 (i386_initial_stuff): Update.
14834 (get_thread_context,set_thread_context,i386_thread_added): Update.
14835 (the_low_target): Add entries for insert_point,
14836 remove_point, stopped_by_watchpoint, stopped_data_address.
14837 * win32-low.c (win32_insert_watchpoint): New function.
14838 (win32_remove_watchpoint): New function.
14839 (win32_stopped_by_watchpoint): New function.
14840 (win32_stopped_data_address): New function.
14841 (win32_target_ops): Add entries for insert_watchpoint,
14842 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
14843 * win32-low.h (win32_target_ops): New members insert_point,
14844 remove_point, stopped_by_watchpoint, stopped_data_address.
14845
14846 2009-06-25 Pedro Alves <pedro@codesourcery.com>
14847
14848 * server.c (process_serial_event): Re-return unsupported, not
14849 error, if the type isn't recognized. Re-allow supporting only
14850 insert or remove packets. Also call require_running for
14851 breakpoints. Add missing break statement to default case. Tidy.
14852 * target.h (struct target_ops): Rename insert_watchpoint to
14853 insert_point, and remove_watchpoint to remove_point.
14854
14855 * linux-low.h (struct linux_target_ops): Likewise.
14856 * linux-low.c (linux_insert_watchpoint): Rename to ...
14857 (linux_insert_point): ... this. Adjust.
14858 (linux_remove_watchpoint): Rename to ...
14859 (linux_remove_point): ... this. Adjust.
14860 (linux_target_ops): Adjust.
14861 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
14862 (cris_insert_point): ... this.
14863 (cris_remove_watchpoint): Rename to ...
14864 (cris_remove_point): ... this.
14865 (the_low_target): Adjust.
14866
14867 2009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
14868
14869 * server.c (handle_v_kill): Pass signal_pid to
14870 kill_inferior if multi_process is zero.
14871
14872 2009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
14873
14874 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
14875 * target.h (target_ops): Comment for *_watchpoint to make it clear
14876 the functions can get types '0' and '1'.
14877
14878 2009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
14879
14880 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
14881 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
14882 * regcache.c (get_regcache): Likewise.
14883 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
14884 * win32-low.c (child_fetch_inferior_registers): Remove check for
14885 regno 0.
14886
14887 2009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
14888 Pedro Alves <pedro@codesourcery.com>
14889
14890 * target.h (struct target_ops) <supports_multi_process>: New
14891 callback.
14892 (target_supports_multi_process): New.
14893 * server.c (handle_query): Even if GDB reports support, only
14894 enable multi-process if the target also supports it. Report
14895 multi-process support only if the target backend supports it.
14896 * linux-low.c (linux_supports_multi_process): New function.
14897 (linux_target_ops): Install it as target_supports_multi_process
14898 callback.
14899
14900 2009-05-24 Doug Evans <dje@google.com>
14901
14902 Global renaming of find_thread_pid to find_thread_ptid.
14903 * server.h (find_thread_ptid): Renamed from find_thread_pid.
14904 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
14905 All callers updated.
14906
14907 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
14908 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
14909 directly.
14910
14911 * linux-low.c (get_stop_pc): Print pc if debug_threads.
14912 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
14913 (linux_resume_one_lwp): Ditto.
14914
14915 2009-05-23 Doug Evans <dje@google.com>
14916
14917 * linux-low.c (linux_resume_one_lwp): Change type of first arg
14918 from struct inferior_list_entry * to struct lwp_info *.
14919 All callers updated.
14920
14921 2009-05-13 Doug Evans <dje@google.com>
14922
14923 * linux-x86-low.c: Don't include assert.h.
14924 (x86_siginfo_fixup): Use fatal, not assert.
14925 (x86_arch_setup): Fix comment.
14926
14927 2009-05-12 Doug Evans <dje@google.com>
14928
14929 Biarch support for i386/amd64 gdbserver.
14930 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
14931 Add linux-x86-low.c.
14932 (linux-i386-low.o, linux-x86-64-low.o): Delete.
14933 (linux-x86-low.o): Add.
14934 * linux-x86-64-low.c: Delete.
14935 * linux-i386-low.c: Delete.
14936 * linux-x86-low.c: New file.
14937 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
14938 linux-x86-low.o.
14939 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
14940 linux-x86-low.o.
14941 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
14942 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
14943 (linux_child_pid_to_exec_file): New function.
14944 (elf_64_header_p, elf_64_file_p): New functions.
14945 (siginfo_fixup): New function.
14946 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
14947 give target a chance to convert layout.
14948 * linux-low.h (linux_target_ops): New member siginfo_fixup.
14949 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
14950
14951 2009-05-07 Doug Evans <dje@google.com>
14952
14953 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
14954 (regsets_store_inferior_registers): Ditto.
14955
14956 2009-05-06 Pedro Alves <pedro@codesourcery.com>
14957
14958 PR server/10048
14959
14960 * linux-low.c (must_set_ptrace_flags): Delete.
14961 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
14962 of the global.
14963 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
14964 `lwp->must_set_ptrace_flags' instead.
14965 (linux_wait_for_event_1): Set ptrace options here.
14966 (linux_wait_1): ... not here.
14967
14968 2009-04-30 Doug Evans <dje@google.com>
14969
14970 * inferiors.c (started_inferior_callback): New function.
14971 (attached_inferior_callback): New function.
14972 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
14973 * server.c (print_started_pid, print_attached_pid): New functions.
14974 (detach_or_kill_for_exit): New function.
14975 (main): Call it instead of for_each_inferior (kill_inferior_callback).
14976 * server.h (have_started_inferiors_p): Declare.
14977 (have_attached_inferiors_p): Declare.
14978
14979 * inferiors.c (remove_process): Fix memory leak, free process.
14980 * linux-low.c (linux_remove_process): New function.
14981 (linux_kill): Call it instead of remove_process.
14982 (linux_detach, linux_wait_1): Ditto.
14983
14984 2009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
14985
14986 * configure.srv: Add x86 Windows CE target.
14987
14988 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
14989
14990 * inferiors.c (get_thread_process): Make global.
14991 * server.h (get_thread_process): Add prototype.
14992 * thread-db.c (find_one_thread): Use get_thread_process
14993 instead of current_process.
14994 (thread_db_get_tls_address): Do not crash if called when
14995 thread layer is not yet initialized.
14996
14997 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
14998
14999 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
15000 * spu-low.c (current_tid): Rename to ...
15001 (current_ptid): ... this.
15002 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
15003 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
15004 ptid_get_lwp (current_ptid) instead of current_tid.
15005 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
15006 instead of current_tid. Use find_process_pid to verify pid
15007 argument is valid. Pass proper argument to remove_process.
15008 (spu_thread_alive): Compare current_ptid instead of current_tid.
15009 (spu_resume): Likewise.
15010
15011 2009-04-02 Pedro Alves <pedro@codesourcery.com>
15012
15013 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
15014 variable.
15015
15016 2009-04-01 Pedro Alves <pedro@codesourcery.com>
15017
15018 Implement the multiprocess extensions, and add linux multiprocess
15019 support.
15020
15021 * server.h (ULONGEST): Declare.
15022 (struct ptid, ptid_t): New.
15023 (minus_one_ptid, null_ptid): Declare.
15024 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
15025 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
15026 (struct inferior_list_entry): Change `id' type from unsigned from
15027 to ptid_t.
15028 (struct sym_cache, struct breakpoint, struct
15029 process_info_private): Forward declare.
15030 (struct process_info): Declare.
15031 (current_process): Declare.
15032 (all_processes): Declare.
15033 (initialize_inferiors): Declare.
15034 (add_thread): Adjust to use ptid_t.
15035 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
15036 (add_process, remove_process, find_thread_pid): Declare.
15037 (find_inferior_id): Adjust to use ptid_t.
15038 (cont_thread, general_thread, step_thread): Change type to ptid_t.
15039 (multi_process): Declare.
15040 (push_event): Adjust to use ptid_t.
15041 (read_ptid, write_ptid): Declare.
15042 (prepare_resume_reply): Adjust to use ptid_t.
15043 (clear_symbol_cache): Declare.
15044 * inferiors.c (all_processes): New.
15045 (null_ptid, minus_one_ptid): New.
15046 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
15047 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
15048 (add_thread): Change unsigned long to ptid. Remove gdb_id
15049 parameter. Adjust.
15050 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
15051 (gdb_id_to_thread): Rename to ...
15052 (find_thread_pid): ... this. Change unsigned long to ptid.
15053 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
15054 (loaded_dll, pull_pid_from_list): Adjust.
15055 (add_process, remove_process, find_process_pid)
15056 (get_thread_process, current_process, initialize_inferiors): New.
15057 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
15058 (struct target_waitstatus) <related_pid>: Ditto.
15059 (struct target_ops) <kill, detach>: Add `pid' argument. Change
15060 return type to int.
15061 (struct target_ops) <join>: Add `pid' argument.
15062 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
15063 (struct target_ops) <wait>: Add `ptid' field. Change return type
15064 to ptid.
15065 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
15066 (mywait): Add `ptid' argument. Change return type to ptid_t.
15067 (target_pid_to_str): Declare.
15068 * target.c (set_desired_inferior): Adjust to use ptids.
15069 (mywait): Add new `ptid' argument. Adjust.
15070 (target_pid_to_str): New.
15071 * mem-break.h (free_all_breakpoints): Declare.
15072 * mem-break.c (breakpoints): Delelete.
15073 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
15074 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
15075 to use per-process breakpoint list.
15076 (free_all_breakpoints): New.
15077 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
15078 (symbol_cache, all_symbols_looked_up): Delete.
15079 (hexchars): New.
15080 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
15081 read_ptid): New.
15082 (prepare_resume_reply): Change ptid argument's type from unsigned
15083 long to ptid_t. Adjust. Implement W;process and X;process.
15084 (free_sym_cache, clear_symbol_cache): New.
15085 (look_up_one_symbol): Adjust to per-process symbol cache. *
15086 * server.c (cont_thread, general_thread, step_thread): Change type
15087 to ptid_t.
15088 (attached): Delete.
15089 (multi_process): New.
15090 (last_ptid): Change type to ptid_t.
15091 (struct vstop_notif) <ptid>: Change type to ptid_t.
15092 (queue_stop_reply, push_event): Change `ptid' argument's type to
15093 ptid_t.
15094 (discard_queued_stop_replies): Add `pid' argument.
15095 (start_inferior): Adjust to use ptids. Adjust to mywait interface
15096 changes. Don't reference the `attached' global.
15097 (attach_inferior): Adjust to mywait interface changes.
15098 (handle_query): Adjust to use ptids. Parse GDB's qSupported
15099 features. Handle and report "multiprocess+". Handle
15100 "qAttached:PID".
15101 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
15102 changes.
15103 (handle_v_kill): New.
15104 (handle_v_stopped): Adjust to use target_pid_to_str.
15105 (handle_v_requests): Allow multiple attaches and runs when
15106 multiprocess extensions are in effect. Handle "vKill".
15107 (myresume): Adjust to use ptids.
15108 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
15109 (handle_status): Adjust to discard_queued_stop_replies interface
15110 change.
15111 (first_thread_of, kill_inferior_callback)
15112 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
15113 (main): Call initialize_inferiors. Adjust to use ptids, killing
15114 and detaching from all inferiors. Handle multiprocess packet
15115 variants.
15116 * linux-low.h: Include gdb_proc_service.h.
15117 (struct process_info_private): New.
15118 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
15119 <lwpid_of>: Use ptid_get_lwp.
15120 (get_lwp_thread): Adjust.
15121 (struct lwp_info): Add `dead' member.
15122 (find_lwp_pid): Declare.
15123 * linux-low.c (thread_db_active): Delete.
15124 (new_inferior): Adjust comment.
15125 (inferior_pid): Delete.
15126 (linux_add_process): New.
15127 (handle_extended_wait): Adjust.
15128 (add_lwp): Change unsigned long to ptid.
15129 (linux_create_inferior): Add process to processes table. Adjust
15130 to use ptids. Don't set new_inferior here.
15131 (linux_attach_lwp): Rename to ...
15132 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
15133 it. Adjust to use ptids.
15134 (linux_attach_lwp): New.
15135 (linux_attach): Add process to processes table. Don't set
15136 new_inferior here.
15137 (struct counter): New.
15138 (second_thread_of_pid_p, last_thread_of_process_p): New.
15139 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
15140 multiple processes.
15141 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
15142 processes. Remove process from process table.
15143 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
15144 to multiple processes.
15145 (any_thread_of): New.
15146 (linux_detach): Add `pid' argument, and handle it. Remove process
15147 from processes table.
15148 (linux_join): Add `pid' argument. Handle it.
15149 (linux_thread_alive): Change unsighed long argument to ptid_t.
15150 Consider dead lwps as not being alive.
15151 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
15152 threads we're not interested in.
15153 (same_lwp, find_lwp_pid): New.
15154 (linux_wait_for_lwp): Change `pid' argument's type from int to
15155 ptid_t. Adjust.
15156 (linux_wait_for_event): Rename to ...
15157 (linux_wait_for_event_1): ... this. Change `pid' argument's type
15158 from int to ptid_t. Adjust.
15159 (linux_wait_for_event): New.
15160 (linux_wait_1): Add `ptid' argument. Change return type to
15161 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
15162 that exit from the process table.
15163 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
15164 Adjust.
15165 (mark_lwp_dead): New.
15166 (wait_for_sigstop): Adjust to use ptids. If a process exits while
15167 stopping all threads, mark its main lwp as dead.
15168 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
15169 ptids.
15170 (fetch_register, usr_store_inferior_registers)
15171 (regsets_fetch_inferior_registers)
15172 (regsets_store_inferior_registers, linux_read_memory)
15173 (linux_write_memory): Inline `inferior_pid'.
15174 (linux_look_up_symbols): Adjust to use per-process
15175 `thread_db_active'.
15176 (linux_request_interrupt): Adjust to use ptids.
15177 (linux_read_auxv): Inline `inferior_pid'.
15178 (initialize_low): Don't reference thread_db_active.
15179 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
15180 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
15181 (ps_getpid): Return the pid of the current inferior.
15182 * thread-db.c (proc_handle, thread_agent): Delete.
15183 (thread_db_create_event, thread_db_enable_reporting): Adjust to
15184 per-process data.
15185 (find_one_thread): Change argument type to ptid_t. Adjust to
15186 per-process data.
15187 (maybe_attach_thread): Adjust to per-process data and ptids.
15188 (thread_db_find_new_threads): Ditto.
15189 (thread_db_init): Ditto.
15190 * spu-low.c (spu_create_inferior, spu_attach): Add process to
15191 processes table. Adjust to use ptids.
15192 (spu_kill, spu_detach): Adjust interface. Remove process from
15193 processes table.
15194 (spu_join, spu_thread_alive): Adjust interface.
15195 (spu_wait): Adjust interface. Remove process from processes
15196 table. Adjust to use ptids.
15197 * win32-low.c (current_inferior_tid): Delete.
15198 (current_inferior_ptid): New.
15199 (debug_event_ptid): New.
15200 (thread_rec): Take a ptid. Adjust.
15201 (child_add_thread): Add `pid' argument. Adjust to use ptids.
15202 (child_delete_thread): Ditto.
15203 (do_initial_child_stuff): Add `attached' argument. Add process to
15204 processes table.
15205 (child_fetch_inferior_registers, child_store_inferior_registers):
15206 Adjust.
15207 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
15208 (win32_attach): Pass 1 to do_initial_child_stuff.
15209 (win32_kill): Adjust interface. Remove process from processes
15210 table.
15211 (win32_detach): Ditto.
15212 (win32_join): Adjust interface.
15213 (win32_thread_alive): Take a ptid.
15214 (win32_resume): Adjust to use ptids.
15215 (get_child_debug_event): Ditto.
15216 (win32_wait): Adjust interface. Remove exiting process from
15217 processes table.
15218
15219 2009-04-01 Pedro Alves <pedro@codesourcery.com>
15220
15221 Non-stop mode support.
15222
15223 * server.h (non_stop): Declare.
15224 (gdb_client_data, handler_func): Declare.
15225 (delete_file_handler, add_file_handler, start_event_loop):
15226 Declare.
15227 (handle_serial_event, handle_target_event, push_event)
15228 (putpkt_notif): Declare.
15229 * target.h (enum resume_kind): New.
15230 (struct thread_resume): Replace `step' field by `kind' field.
15231 (TARGET_WNOHANG): Define.
15232 (struct target_ops) <wait>: Add `options' argument.
15233 <supports_non_stop, async, start_non_stop>: New fields.
15234 (target_supports_non_stop, target_async): New.
15235 (start_non_stop): Declare.
15236 (mywait): Add `options' argument.
15237 * target.c (mywait): Add `options' argument. Print child exit
15238 notifications here.
15239 (start_non_stop): New.
15240 * server.c (non_stop, own_buf, mem_buf): New globals.
15241 (struct vstop_notif): New.
15242 (notif_queue): New global.
15243 (queue_stop_reply, push_event, discard_queued_stop_replies)
15244 (send_next_stop_reply): New.
15245 (start_inferior): Adjust to use resume_kind. Adjust to mywait
15246 interface changes.
15247 (attach_inferior): In non-stop mode, don't wait for the target
15248 here.
15249 (handle_general_set): Handle QNonStop.
15250 (handle_query): When handling qC, return the current general
15251 thread, instead of the first thread of the list.
15252 (handle_query): If the backend supports non-stop mode, include
15253 QNonStop+ in the qSupported query response.
15254 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
15255 and non-stop mode.
15256 (handle_v_attach, handle_v_run): Handle non-stop mode.
15257 (handle_v_stopped): New.
15258 (handle_v_requests): Report support for vCont;t. Handle vStopped.
15259 (myresume): Adjust to use resume_kind. Handle non-stop.
15260 (queue_stop_reply_callback): New.
15261 (handle_status): Handle non-stop mode.
15262 (main): Clear non_stop flag on reconnection. Use the event-loop.
15263 Refactor serial protocol handling from here ...
15264 (process_serial_event): ... to this new function. When GDB
15265 selects any thread, select one here. In non-stop mode, wait until
15266 GDB acks all pending events before exiting.
15267 (handle_serial_event, handle_target_event): New.
15268 * remote-utils.c (remote_open): Install remote_desc in the event
15269 loop.
15270 (remote_close): Remove remote_desc from the event loop.
15271 (putpkt_binary): Rename to...
15272 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
15273 (putpkt_binary): New as wrapper around putpkt_binary_1.
15274 (putpkt_notif): New.
15275 (prepare_resume_reply): In non-stop mode, don't change the
15276 general_thread.
15277 * event-loop.c: New.
15278 * Makefile.in (OBJ): Add event-loop.o.
15279 (event-loop.o): New rule.
15280
15281 * linux-low.h (pid_of): Moved here.
15282 (lwpid_of): New.
15283 (get_lwp_thread): Use lwpid_of.
15284 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
15285 * linux-low.c (pid_of): Delete.
15286 (inferior_pid): Use lwpid_of.
15287 (linux_event_pipe): New.
15288 (target_is_async_p): New.
15289 (delete_lwp): New.
15290 (handle_extended_wait): Use lwpid_of.
15291 (add_lwp): Don't set lwpid field.
15292 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
15293 (linux_kill_one_lwp): If killing a running lwp, stop it first.
15294 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
15295 (linux_detach_one_lwp): If detaching from a running lwp, stop it
15296 first. Adjust to linux_wait_for_event interface changes. Use
15297 lwpid_of.
15298 (linux_detach): Don't delete the main lwp here.
15299 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
15300 (status_pending_p): Don't consider explicitly suspended lwps.
15301 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
15302 pointer. Add OPTIONS argument. Change return type to int. Use
15303 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
15304 (linux_wait_for_event): Take an integer pid instead of a lwp_info
15305 pointer. Add status pointer argument. Return a pid instead of a
15306 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
15307 changes. In non-stop mode, don't switch to a random thread.
15308 (linux_wait): Rename to...
15309 (linux_wait_1): ... this. Add target_options argument, and handle
15310 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
15311 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
15312 clean exit and signal exit code. Don't stop all threads in
15313 non-stop mode. In all-stop mode, only stop all threads when
15314 reporting a stop to GDB. Handle explicit thread stop requests.
15315 (async_file_flush, async_file_mark): New.
15316 (linux_wait): New.
15317 (send_sigstop): Use lwpid_of.
15318 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
15319 interface changes. In non-stop mode, don't switch to a random
15320 thread.
15321 (linux_resume_one_lwp): Use lwpid_of.
15322 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
15323 (linux_resume_one_thread): ... this. Handle resume_stop. In
15324 non-stop mode, don't look for pending flag in all threads.
15325 (resume_status_pending_p): Don't consider explicitly suspended
15326 threads.
15327 (my_waitpid): Reimplement. Emulate __WALL.
15328 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
15329 Use lwpid_of.
15330 (sigchld_handler, linux_supports_non_stop, linux_async)
15331 (linux_start_non_stop): New.
15332 (linux_target_ops): Register linux_supports_non_stop, linux_async
15333 and linux_start_non_stop.
15334 (initialize_low): Install SIGCHLD handler.
15335 * thread-db.c (thread_db_create_event, find_one_thread)
15336 (thread_db_get_tls_address): Use lwpid_of.
15337 * win32-low.c (win32_detach): Adjust to use resume_kind.
15338 (win32_wait): Add `options' argument.
15339 * spu-low.c (spu_resume): Adjust to use resume_kind.
15340 (spu_wait): Add `options' argument.
15341
15342 2009-04-01 Pedro Alves <pedro@codesourcery.com>
15343
15344 Decouple target code from remote protocol.
15345
15346 * target.h (enum target_waitkind): New.
15347 (struct target_waitstatus): New.
15348 (struct target_ops) <wait>: Return an unsigned long. Take a
15349 target_waitstatus pointer instead of a char pointer.
15350 (mywait): Likewise.
15351 * target.c (mywait): Change prototype to return an unsigned long.
15352 Take a target_waitstatus pointer instead of a char pointer. Adjust.
15353 * server.h (thread_from_wait, old_thread_from_wait): Delete
15354 declarations.
15355 (prepare_resume_reply): Change prototype to take a
15356 target_waitstatus.
15357 * server.c (thread_from_wait, old_thread_from_wait): Delete.
15358 (last_status, last_ptid): New.
15359 (start_inferior): Remove "statusptr" argument. Adjust. Return a
15360 pid instead of a signal.
15361 (attach_inferior): Remove "status" and "signal" parameters.
15362 Adjust.
15363 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
15364 not as an address.
15365 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
15366 (handle_v_requests, myresume): Remove "status" and "signal"
15367 parameters. Adjust.
15368 (handle_status): New.
15369 (main): Delete local `status'. Adjust.
15370 * remote-utils.c: Include target.h.
15371 (prepare_resume_reply): Change prototype to take a
15372 target_waitstatus. Adjust.
15373
15374 * linux-low.c (linux_wait): Adjust to new target_ops->wait
15375 interface.
15376 * spu-low.c (spu_wait): Adjust.
15377 * win32-low.c (enum target_waitkind, struct target_waitstatus):
15378 Delete.
15379 (win32_wait): Adjust.
15380
15381 2009-04-01 Pedro Alves <pedro@codesourcery.com>
15382
15383 * target.h (struct thread_resume): Delete leave_stopped member.
15384 (struct target_ops): Add a `n' argument to the `resume' callback.
15385 * server.c (start_inferior): Adjust.
15386 (handle_v_cont, myresume): Adjust.
15387 * linux-low.c (check_removed_breakpoint): Adjust to resume
15388 interface change, and to removed leave_stopped field.
15389 (resume_ptr): Delete.
15390 (struct thread_resume_array): New.
15391 (linux_set_resume_request): Add new `arg' parameter. Adjust to
15392 resume interface change.
15393 (linux_continue_one_thread, linux_queue_one_thread)
15394 (resume_status_pending_p): Check if the resume field is NULL
15395 instead of checking the leave_stopped member.
15396 (linux_resume): Adjust to the target resume interface change.
15397 * spu-low.c (spu_resume): Adjust to the target resume interface
15398 change.
15399 * win32-low.c (win32_detach, win32_resume): Ditto.
15400
15401 2009-04-01 Pedro Alves <pedro@codesourcery.com>
15402
15403 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
15404 flag.
15405 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
15406 pending.
15407 (linux_continue_one_thread): Only preserve the stepping flag if
15408 there's a pending breakpoint.
15409
15410 2009-03-31 Pedro Alves <pedro@codesourcery.com>
15411
15412 * server.c (main): After the inferior having exited, call
15413 remote_close before exiting gdbserver.
15414
15415 2009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
15416
15417 Fix size of FPSCR in Power 7 processors.
15418 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
15419 (PPC_FEATURE_HAS_DFP): New #define.
15420 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
15421 size of the FPSCR.
15422
15423 2009-03-23 Pedro Alves <pedro@codesourcery.com>
15424
15425 * server.c (handle_query) Whitespace and formatting.
15426
15427 2009-03-22 Pedro Alves <pedro@codesourcery.com>
15428
15429 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
15430 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
15431 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
15432 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
15433 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
15434 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
15435 Makefile.in, configure.ac: Fix whitespace throughout.
15436 * configure: Regenerate.
15437
15438 2009-03-22 Pedro Alves <pedro@codesourcery.com>
15439
15440 * inferiors.c (find_inferior): Make it safe for the callback
15441 function to delete the currently iterated inferior.
15442
15443 2009-03-22 Pedro Alves <pedro@codesourcery.com>
15444
15445 * Makefile.in (linuw_low_h): Move higher.
15446 (thread-db.o): Depend on $(linux_low_h).
15447
15448 2009-03-17 Pedro Alves <pedro@codesourcery.com>
15449
15450 Rename "process" to "lwp" throughout.
15451
15452 * linux-low.c (all_processes): Rename to...
15453 (all_lwps): ... this.
15454 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
15455 (add_process): Rename to ...
15456 (add_lwp): ... this. Adjust.
15457 (linux_create_inferior): Adjust.
15458 (linux_attach_lwp): Adjust.
15459 (linux_attach): Adjust.
15460 (linux_kill_one_process): Rename to ...
15461 (linux_kill_one_lwp): ... this. Adjust.
15462 (linux_kill): Adjust.
15463 (linux_detach_one_process): Rename to ...
15464 (linux_detach_one_lwp): ... this. Adjust.
15465 (linux_detach): Adjust.
15466 (check_removed_breakpoint): Adjust.
15467 (status_pending_p): Adjust.
15468 (linux_wait_for_process): Rename to ...
15469 (linux_wait_for_lwp): ... this. Adjust.
15470 (linux_wait_for_event): Adjust.
15471 (send_sigstop): Adjust.
15472 (wait_for_sigstop): Adjust.
15473 (stop_all_processes): Rename to ...
15474 (stop_all_lwps): ... this.
15475 (linux_resume_one_process): Rename to ...
15476 (linux_resume_one_lwp): ... this. Adjust.
15477 (linux_set_resume_request, linux_continue_one_thread)
15478 (linux_queue_one_thread, resume_status_pending_p)
15479 (usr_store_inferior_registers, regsets_store_inferior_registers)
15480 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
15481 Adjust.
15482 * linux-low.h (get_process): Rename to ...
15483 (get_lwp): ... this. Adjust.
15484 (get_thread_process): Rename to ...
15485 (get_thread_lwp): ... this. Adjust.
15486 (get_process_thread): Rename to ...
15487 (get_lwp_thread): ... this. Adjust.
15488 (struct process_info): Rename to ...
15489 (struct lwp_info): ... this.
15490 (all_processes): Rename to ...
15491 (all_lwps): ... this.
15492 * proc-service.c (ps_lgetregs): Adjust.
15493 * thread-db.c (thread_db_create_event, find_one_thread)
15494 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
15495
15496 2009-03-14 Pedro Alves <pedro@codesourcery.com>
15497
15498 * server.c (handle_query): Handle "qAttached".
15499
15500 2009-03-13 Nathan Sidwell <nathan@codesourcery.com>
15501
15502 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
15503 GPLv3, update license URL.
15504
15505 2009-03-01 Doug Evans <dje@google.com>
15506
15507 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
15508 (server_h): Add gdb_signals.h.
15509 (signals.o): Update.
15510 * server.h (target_signal_from_host,target_signal_to_host_p)
15511 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
15512
15513 2009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
15514
15515 * remote-utils.c (getpkt): Also generate remote-debug
15516 information if noack_mode is set.
15517
15518 2009-02-06 Pedro Alves <pedro@codesourcery.com>
15519
15520 * server.c (handle_query): Report qXfer:siginfo:read and
15521 qXfer:siginfo:write as supported and handle them.
15522 * target.h (struct target_ops) <qxfer_siginfo>: New field.
15523 * linux-low.c (linux_xfer_siginfo): New.
15524 (linux_target_ops): Set it.
15525
15526 2009-01-26 Pedro Alves <pedro@codesourcery.com>
15527
15528 * server.c (gdbserver_usage): Mention --remote-debug.
15529 (main): Accept '--remote-debug' switch.
15530
15531 2009-01-18 Doug Evans <dje@google.com>
15532
15533 * regcache.c (new_register_cache): No need to check result of xcalloc.
15534 * server.c (handle_search_memory): Back out calls to xmalloc,
15535 result is checked and error is returned to user upon failure.
15536 (handle_query): Ditto. Add more checks for result of malloc.
15537 (handle_v_cont): Check result of malloc, report error back to
15538 user upon failure.
15539 (handle_v_run): Ditto. Call freeargv.
15540 * server.h (freeargv): Declare.
15541 * utils.c (freeargv): New fn.
15542
15543 2009-01-15 Doug Evans <dje@google.com>
15544
15545 * gdbreplay.c (perror_with_name): Make arg const char *.
15546 * server.h (target_signal_to_name): Make return type const char *.
15547 * thread-db.c (thread_db_err_str): Make return type const char *.
15548 * utils.c (perror_with_name): Make arg const char *.
15549
15550 2009-01-14 Pedro Alves <pedro@codesourcery.com>
15551
15552 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
15553 when handling a EXIT_PROCESS_DEBUG_EVENT.
15554
15555 2009-01-06 Joel Brobecker <brobecker@adacore.com>
15556
15557 * gdbreplay.c (gdbreplay_version): Update copyright year.
15558 * server.c (gdbserver_version): Likewise.
15559
15560 2009-01-05 Doug Evans <dje@google.com>
15561
15562 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
15563 (handle_extended_wait): Improve comment.
15564
15565 2008-12-13 Doug Evans <dje@google.com>
15566
15567 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
15568 * server.h (ATTR_MALLOC): New macro.
15569 (xmalloc,xcalloc,xstrdup): Declare.
15570 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
15571 * inferiors.c: Ditto.
15572 * linux-low.c: Ditto.
15573 * mem-break.c: Ditto.
15574 * regcache.c: Ditto.
15575 * remote-utils.c: Ditto.
15576 * server.c: Ditto.
15577 * target.c: Ditto.
15578 * win32-low.c: Ditto.
15579
15580 2008-12-12 Doug Evans <dje@google.com>
15581
15582 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
15583 in debugging printf.
15584
15585 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
15586
15587 2008-12-09 Doug Evans <dje@google.com>
15588
15589 * linux-low.h (struct process_info): Delete member tid, unused.
15590 * thread-db.c (find_one_thread): Update.
15591 (maybe_attach_thread): Update.
15592
15593 2008-12-02 Pedro Alves <pedro@codesourcery.com>
15594
15595 * target.h (struct target_ops): Add qxfer_osdata member.
15596 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
15597 and dirent.h.
15598 (linux_qxfer_osdata): New functions.
15599 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
15600 callback.
15601 * server.c (handle_query): Handle "qXfer:osdata:read:".
15602 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
15603 (buffer_xml_printf): New functions.
15604 * server.h (struct buffer): New.
15605 (buffer_grow_str, buffer_grow_str0): New macros.
15606 (buffer_grow, buffer_free, buffer_init, buffer_finish)
15607 (buffer_xml_printf): Declare.
15608
15609 2008-11-24 Doug Evans <dje@google.com>
15610
15611 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
15612
15613 2008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
15614
15615 * server.c (handle_v_run): Always use the supplied argument list.
15616
15617 2008-11-19 Bob Wilson <bob.wilson@acm.org>
15618
15619 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
15620 (xtensa_regmap_table): Add entry for scompare1.
15621
15622 2008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
15623
15624 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
15625 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
15626 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
15627 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
15628 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
15629 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
15630 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
15631 XML target descriptions.
15632 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
15633 when inferior is running on an ISA 2.05 or later processor. Add
15634 special case to return offset for full 64-bit slot of FPSCR when
15635 in 32-bits.
15636
15637 2008-11-14 Daniel Gutson <dgutson@codesourcery.com>
15638
15639 * Makefile.in (SFILES, clean): Added sparc64 files.
15640 (reg-sparc64.o, reg-sparc64.c): New.
15641 * configure.srv (sparc*-*-linux*): New configuration.
15642 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
15643 syscall arguments for SPARC.
15644 (regsets_store_inferior_registers): Likewise.
15645 * linux-sparc-low.c: New file.
15646
15647 2008-10-21 Doug Evans <dje@google.com>
15648
15649 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
15650 (READLINE_DIR,READLINE_DEP): Delete.
15651 (INTERNAL_CFLAGS): Update.
15652 (LINTFLAGS): Update.
15653
15654 2008-10-10 Pedro Alves <pedro@codesourcery.com>
15655
15656 * server.c (handle_v_run): If GDB didn't specify an argv, use the
15657 whole argv from the last run, not just argv[0].
15658
15659 2008-09-08 Pedro Alves <pedro@codesourcery.com>
15660
15661 * regcache.c (new_register_cache): Return NULL if the register
15662 cache size isn't known yet.
15663 (free_register_cache): Avoid dereferencing a NULL regcache.
15664
15665 2008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
15666
15667 * configure.srv: Merge MIPS and MIPS64.
15668
15669 2008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
15670
15671 * Makefile.in (uninstall): Apply $(EXEEXT) too.
15672
15673 2008-08-18 Luis Machado <luisgpm@br.ibm.com>
15674
15675 * Makefile.in: Add required vsx dependencies.
15676
15677 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
15678 Declare init_registers_powerpc_vsx32l.
15679 Declare init_registers_powerpc_vsx64l.
15680 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
15681 (ppc_arch_setup): Check for VSX in hwcap.
15682 (ppc_fill_vsxregset): New function.
15683 (ppc_store_vsxregset): New function.
15684 Add new VSX entry in regset_info target_regsets.
15685
15686 * configure.srv: Add new VSX dependencies.
15687
15688 2008-08-12 Pedro Alves <pedro@codesourcery.com>
15689
15690 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
15691 (remote_open): Set or clear transport_is_reliable.
15692 (putpkt_binary): Don't expect acks in noack mode.
15693 (getpkt): Don't send ack/nac in noack mode.
15694 * server.c (handle_general_set): Handle QStartNoAckMode.
15695 (handle_query): If connected by tcp pass QStartNoAckMode+ in
15696 qSupported.
15697 (main): Reset noack_mode on every connection.
15698 * server.h (noack_mode): Declare.
15699
15700 2008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15701
15702 * Makefile.in (GDBREPLAY_OBS): New variable.
15703 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
15704
15705 2008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
15706 Daniel Jacobowitz <dan@codesourcery.com>
15707
15708 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
15709 (usr_store_inferior_registers): Likewise.
15710 (regsets_store_inferior_registers): Likewise.
15711
15712 2008-07-31 Rolf Jansen <rj@surtec.com>
15713 Pedro Alves <pedro@codesourcery.com>
15714
15715 * configure.ac: Check for memmem declaration.
15716 * server.c [HAVE_MALLOC_H]: Include malloc.h.
15717 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
15718 (disable_packet_qfThreadInfo): Unconditionally compile.
15719 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
15720 * configure, config.in: Regenerate.
15721
15722 2008-07-28 Doug Kwan <dougkwan@google.com>
15723
15724 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
15725 (linux_write_memory): Remove declaration of errno.
15726
15727 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
15728
15729 * linux-low.c (handle_extended_wait): Do not use "status"
15730 variable uninitialized.
15731
15732 2008-07-07 Pedro Alves <pedro@codesourcery.com>
15733
15734 * server.c (handle_v_attach): Inhibit reporting dll changes.
15735
15736 2008-06-27 Pedro Alves <pedro@codesourcery.com>
15737
15738 * remote-utils.c (prepare_resume_reply): If requested, don't
15739 output "thread:TID" in the T stop reply.
15740
15741 * server.c (disable_packet_vCont, disable_packet_Tthread)
15742 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
15743 (handle_query): If requested, disable support for qC, qfThreadInfo
15744 and qsThreadInfo.
15745 (handle_v_requests): If requested, disable support for vCont.
15746 (gdbserver_show_disableable): New.
15747 (main): Handle --disable-packet and --disable-packet=LIST.
15748
15749 * server.h (disable_packet_vCont, disable_packet_Tthread)
15750 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
15751
15752 2008-06-20 Carlos O'Donell <carlos@codesourcery.com>
15753
15754 * server.c (gdbserver_usage): Mention --version.
15755
15756 2008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
15757
15758 * Makefile.in (gdbreplay.o): New rule.
15759
15760 2008-06-06 Joseph Myers <joseph@codesourcery.com>
15761
15762 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
15763 message, not gdbserver.
15764
15765 2008-06-05 Vladimir Prus <vladimir@codesourcery.com>
15766 Nathan Sidwell <nathan@codesourcery.com>
15767 Joseph Myers <joseph@codesourcery.com>
15768
15769 * acinclude.m4: Include ../../config/acx.m4.
15770 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
15771 * configure, config.in: Regenerate.
15772 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
15773 * server.c (gdbserver_version): Print PKGVERSION.
15774 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
15775 (main): Adjust gdbserver_usage calls.
15776 * gdbreplay.c (version, host_name): Add declarations.
15777 (gdbreplay_version, gdbreplay_usage): New.
15778 (main): Accept --version and --help options.
15779
15780 2008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
15781
15782 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
15783 (arm_breakpoint_at): Handle Thumb.
15784 (the_low_target): Add comment.
15785
15786 2008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
15787
15788 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
15789
15790 2008-05-09 Doug Evans <dje@google.com>
15791
15792 * server.h (decode_search_memory_packet): Declare.
15793 * remote-utils.c (decode_search_memory_packet): New fn.
15794 * server.c (handle_search_memory_1): New fn.
15795 (handle_search_memory): New fn.
15796 (handle_query): Process qSearch:memory packets.
15797
15798 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
15799
15800 * regcache.c (registers_length): Remove.
15801 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
15802 full register packet.
15803 * regcache.h (registers_length): Remove prototype.
15804 * server.h (PBUFSIZ): Define to 16384.
15805
15806 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
15807
15808 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
15809 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
15810 powerpc-64l.o, and powerpc-altivec64l.o.
15811 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
15812 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
15813 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
15814 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
15815 rs6000/power-linux.xml, and rs6000/power64-linux.xml
15816 to srv_xmlfiles.
15817
15818 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
15819 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
15820 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
15821 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
15822 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
15823 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
15824 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
15825 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
15826 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
15827 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
15828 (clean): Update.
15829
15830 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
15831 (init_registers_powerpc_32l): ... this new prototype.
15832 (init_registers_powerpc_32): Remove, replace by ...
15833 (init_registers_powerpc_altivec32l): ... this new prototype.
15834 (init_registers_powerpc_e500): Remove, replace by ...
15835 (init_registers_powerpc_e500l): ... this new prototype.
15836 (init_registers_ppc64): Remove, replace by ...
15837 (init_registers_powerpc_64l): ... this new prototype.
15838 (init_registers_powerpc_64): Remove, replace by ...
15839 (init_registers_powerpc_altivec64l): ... this new prototype.
15840 (ppc_num_regs): Set to 73.
15841 (PT_ORIG_R3, PT_TRAP): Define if necessary.
15842 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
15843 (ppc_cannot_store_register): Handle orig_r3 and trap.
15844 (ppc_arch_setup): Update init_registers_... calls.
15845 (ppc_fill_gregset): Handle orig_r3 and trap.
15846
15847 * inferiors.c (clear_inferiors): Reset current_inferior.
15848
15849 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
15850
15851 * acinclude.m4: Add override.m4.
15852 * configure: Regenerate.
15853
15854 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
15855
15856 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
15857 initial call to init_register_ppc64.
15858
15859 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
15860
15861 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
15862 single powerpc*-*-linux* case.
15863 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
15864
15865 2008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
15866
15867 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
15868 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
15869 from reg_xmlfiles.
15870 * linux-ppc-low.c: Include <elf.h>.
15871 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
15872 (ppc_hwcap): New global variable.
15873 (ppc_regmap): Remove __SPE__ #ifdef sections.
15874 (ppc_regmap_e500): New global variable.
15875 (ppc_cannot_store_register): Update __SPE__ special case.
15876 (ppc_get_hwcap): New function.
15877 (ppc_arch_setup): Use it to determine whether inferior supports
15878 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
15879 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
15880 Do not access registers if target does not support AltiVec.
15881 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
15882 Do not access registers if target does not support SPE.
15883 (target_regsets): Unconditionally include AltiVec and SPE regsets.
15884
15885 2008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
15886
15887 * linux-low.c (disabled_regsets, num_regsets): New.
15888 (use_regsets_p): Delete.
15889 (linux_wait_for_process): Clear disabled_regsets.
15890 (regsets_fetch_inferior_registers): Check and set it.
15891 (regsets_store_inferior_registers): Likewise.
15892 (linux_fetch_registers, linux_store_registers): Do not use
15893 use_regsets_p.
15894 (initialize_low): Allocate disabled_regsets.
15895
15896 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
15897
15898 * Makefile.in (LIBOBJS): New.
15899 (OBS): Use LIBOBJS.
15900 (memmem.o): New rule.
15901 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
15902 * configure: Regenerated.
15903
15904 2008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
15905
15906 * server.c (handle_query): Never return "unsupported" for
15907 qXfer:features:read queries.
15908
15909 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
15910
15911 * server.c (get_features_xml): Fix inverted condition.
15912 (handle_query): Always support qXfer:feature:read.
15913
15914 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
15915
15916 * server.c (wrapper_argv): New.
15917 (start_inferior): Handle wrapper_argv. If set, expect an extra
15918 trap.
15919 (gdbserver_usage): Document --wrapper.
15920 (main): Parse --wrapper.
15921
15922 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
15923
15924 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
15925 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
15926 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
15927 (ppc_set_pc): Likewise.
15928 (ppc_arch_setup): New function.
15929 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
15930 of collect_register.
15931 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
15932
15933 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
15934
15935 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
15936 instead of linux-ppc64-low.o.
15937 * linux-ppc64-low.c: Remove file.
15938 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
15939 (linux-ppc64-low.o): Remove rule.
15940
15941 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
15942 (init_registers_powerpc_64): Likewise.
15943 (ppc_regmap): Conditionally define depending on __powerpc64__.
15944 (ppc_cannot_store_register): Do not special-case "fpscr" when
15945 compiled on __powerpc64__.
15946 (ppc_collect_ptrace_register): New function.
15947 (ppc_supply_ptrace_register): New function.
15948 (ppc_breakpoint): Change type to "unsigned int".
15949 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
15950 (the_low_target): Conditionally provide initializers for the
15951 arch_setup member depending on __powerpc64__. Install
15952 collect_ptrace_register and supply_ptrace_register members.
15953
15954 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
15955
15956 * regcache.h (gdbserver_xmltarget): Add extern declaration.
15957 * server.c (gdbserver_xmltarget): Define.
15958 (get_features_xml): Use it to replace "target.xml" and arch_string.
15959
15960 * configure.srv: Remove srv_xmltarget. Add XML files that were
15961 mentioned there to srv_xmlfiles instead. Remove conditional tests
15962 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
15963 srv_xmlfiles and srv_regobj to include all possible choices.
15964 * configure.ac (srv_xmltarget): Remove.
15965 (srv_xmlfiles): Do not add "target.xml".
15966 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
15967 checks for supplementary target information.
15968 * configure: Regenerate.
15969 * Makefile.in (XML_TARGET): Remove.
15970 (target.xml): Remove rule.
15971 (clean): Do not clean up target.xml.
15972 (.PRECIOUS): Do not mention target.xml.
15973
15974 * target.h (struct target_ops): Remove arch_string member.
15975 * linux-low.c (linux_arch_string): Remove.
15976 (linux_target_ops): Remove arch_string initializer.
15977 * linux-low.h (struct linux_target_ops): Remove arch_string member.
15978 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
15979 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
15980 * spu-low.c (spu_arch_string): Remove.
15981 (spu_target_ops): Remove arch_string initializer.
15982 * win32-low.c (win32_arch_string): Remove.
15983 (win32_target_ops): Remove arch_string initializer.
15984 * win32-low.h (struct win32_target_ops): Remove arch_string member.
15985 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
15986 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
15987
15988 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
15989
15990 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
15991 by collect_ptrace_register and supply_ptrace_register hooks.
15992 * linux-low.c (fetch_register): Use supply_ptrace_register callback
15993 instead of checking for the_low_target.left_pad_xfer.
15994 (usr_store_inferior_registers): Use collect_ptrace_register callback
15995 instead of checking for the_low_target.left_pad_xfer.
15996
15997 * linux-s390-low.c (s390_collect_ptrace_register): New function.
15998 (s390_supply_ptrace_register): Likewise.
15999 (s390_fill_gregset): Call s390_collect_ptrace_register.
16000 (the_low_target): Update.
16001
16002 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
16003 (ppc_supply_ptrace_register): Likewise.
16004 (the_low_target): Update.
16005
16006 * linux-i386-low.c (the_low_target): Update.
16007 * linux-x86-64-low.c (the_low_target): Update.
16008
16009 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
16010
16011 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
16012 reg-s390.o and reg-s390x.o.
16013
16014 * linux-low.c (new_inferior): New global variable.
16015 (linux_create_inferior, linux_attach): Set it.
16016 (linux_wait_for_process): Call the_low_target.arch_setup after the
16017 target has stopped for the first time.
16018 (initialize_low): Do not call the_low_target.arch_setup.
16019
16020 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
16021 (s390_set_pc): Likewise.
16022 (s390_arch_setup): New function.
16023 (the_low_target): Use s390_arch_setup as arch_setup routine.
16024
16025 * regcache.c (realloc_register_cache): New function.
16026 (set_register_cache): Call it for each existing regcache.
16027
16028 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
16029
16030 * server.h (init_registers): Remove prototype.
16031
16032 * linux-low.h (struct linux_target_ops): Add arch_setup field.
16033 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
16034 instead of init_registers ().
16035 * linux-arm-low.c (init_registers_arm): Add prototype.
16036 (init_registers_arm_with_iwmmxt): Likewise.
16037 (the_low_target): Add initializer for arch_setup field.
16038 * linux-cris-low.c (init_registers_cris): Add prototype.
16039 (the_low_target): Add initializer for arch_setup field.
16040 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
16041 (the_low_target): Add initializer for arch_setup field.
16042 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
16043 (the_low_target): Add initializer for arch_setup field.
16044 * linux-ia64-low.c (init_registers_ia64): Add prototype.
16045 (the_low_target): Add initializer for arch_setup field.
16046 * linux-m32r-low.c (init_registers_m32r): Add prototype.
16047 (the_low_target): Add initializer for arch_setup field.
16048 * linux-m68k-low.c (init_registers_m68k): Add prototype.
16049 (the_low_target): Add initializer for arch_setup field.
16050 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
16051 (init_registers_mips64_linux): Likewise.
16052 (the_low_target): Add initializer for arch_setup field.
16053 * linux-ppc-low.c (init_registers_ppc): Add prototype.
16054 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
16055 (the_low_target): Add initializer for arch_setup field.
16056 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
16057 (init_registers_powerpc_64): Likewise.
16058 (the_low_target): Add initializer for arch_setup field.
16059 * linux-s390-low.c (init_registers_s390): Add prototype.
16060 (init_registers_s390x): Likewise.
16061 (the_low_target): Add initializer for arch_setup field.
16062 * linux-sh-low.c (init_registers_sh): Add prototype.
16063 (the_low_target): Add initializer for arch_setup field.
16064 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
16065 (the_low_target): Add initializer for arch_setup field.
16066 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
16067 (the_low_target): Add initializer for arch_setup field.
16068
16069 * win32-low.h (struct win32_target_ops): Add arch_setup field.
16070 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
16071 instead of init_registers ().
16072 * win32-arm-low.c (init_registers_arm): Add prototype.
16073 (the_low_target): Add initializer for arch_setup field.
16074 * win32-i386-low.c (init_registers_i386): Add prototype.
16075 (the_low_target): Add initializer for arch_setup field.
16076
16077 * spu-low.c (init_registers_spu): Add prototype.
16078 (initialize_low): Call initialie_registers_spu () instead of
16079 initialize_registers ().
16080
16081 2008-02-19 Pedro Alves <pedro@codesourcery.com>
16082
16083 * server.c (handle_v_requests): When handling the vRun and vAttach
16084 packets, if already debugging a process, don't kill it. Return an
16085 error instead.
16086
16087 2008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
16088
16089 * server.c (handle_query): Correct length check.
16090
16091 2008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
16092
16093 * win32-low.c (do_initial_child_stuff): Add process handle
16094 parameter. Set current_process_handle and current_process_id from the
16095 parameters. Clear globals.
16096 (win32_create_inferior): Don't set current_process_handle and
16097 current_process_id here. Instead pass them on the call to
16098 do_initial_child_stuff.
16099 (win32_attach): Likewise.
16100 (win32_clear_inferiors): New.
16101 (win32_kill): Don't close the current process handle or the
16102 current thread handle here. Instead call win32_clear_inferiors.
16103 (win32_detach): Don't open a new handle to the process. Call
16104 win32_clear_inferiors.
16105 (win32_join): Don't rely on current_process_handle; open a new
16106 handle using the process id.
16107 (win32_wait): Call win32_clear_inferiors when the inferior process
16108 has exited.
16109
16110 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
16111
16112 * server.c (monitor_show_help): Add "exit".
16113
16114 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
16115
16116 * Makefile.in (SFILES): Add linux-xtensa-low.c.
16117 (clean): Add reg-xtensa.c.
16118 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
16119 * configure.srv (xtensa*-*-linux*) New target.
16120 * linux-xtensa-low.c: New.
16121 * xtensa-xtregs.c: New.
16122
16123 2008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
16124
16125 * hostio.c: Don't include errno.h.
16126 (errno_to_fileio_errno): Move to hostio-errno.
16127 * hostio.c: (hostio_error): Remove the error parameter. Defer the
16128 error number outputting to the target->hostio_last_error callback.
16129 (hostio_packet_error): Use FILEIO_EINVAL directly.
16130 (handle_open, handle_pread, hostio_error, handle_unlink): Update
16131 calls to hostio_error.
16132 * hostio-errno.c: New.
16133 * server.h (hostio_last_error_from_errno): Declare.
16134 * target.h (target_ops): Add hostio_last_error member.
16135 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
16136 as hostio_last_error handler.
16137 * spu-low.c (spu_target_ops): Likewise.
16138 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
16139 (wince_hostio_last_error): New functions.
16140 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
16141 as hostio_last_error handler.
16142 (win32_target_ops) [!_WIN32_WCE]: Register
16143 hostio_last_error_from_errno as hostio_last_error handler.
16144 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
16145 (hostio-errno.o): New rule.
16146 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
16147 * configure.srv (srv_hostio_err_objs): New variable. Default to
16148 hostio-errno.o.
16149 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
16150 * configure: Regenerate.
16151
16152 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
16153
16154 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
16155 (linux_kill, linux_detach): Clean up the process list.
16156 * remote-utils.c (remote_open): Improve port number parsing.
16157 (putpkt_binary, input_interrupt): Only send interrupts if the target
16158 is running.
16159 * server.c (extended_protocol): Make static.
16160 (attached): Define earlier.
16161 (exit_requested, response_needed, program_argv): New variables.
16162 (target_running): New.
16163 (start_inferior): Clear attached here.
16164 (attach_inferior): Set attached here.
16165 (require_running): Define.
16166 (handle_query): Use require_running and target_running. Implement
16167 "monitor exit".
16168 (handle_v_attach, handle_v_run): New.
16169 (handle_v_requests): Use require_running. Handle vAttach and vRun.
16170 (gdbserver_usage): Update.
16171 (main): Redo argument parsing. Handle --debug and --multi. Handle
16172 --attach along with other options or after the port. Save
16173 program_argv. Support no initial program. Resynchronize
16174 communication with GDB after an error. Handle "monitor exit".
16175 Use require_running and target_running. Always allow the extended
16176 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
16177 restart in extended mode.
16178 * README: Refer to the GDB manual. Update --attach usage.
16179
16180 2007-12-20 Andreas Schwab <schwab@suse.de>
16181
16182 * linux-low.c (STACK_SIZE): Define.
16183 (linux_tracefork_child): Use it. Use __clone2 on ia64.
16184 (linux_test_for_tracefork): Likewise.
16185
16186 2007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
16187
16188 * linux-low.c (linux_wait_for_event): Update messages. Do not
16189 reinsert auto-delete breakpoints.
16190 * mem-break.c (struct breakpoint): Change return type of handler to
16191 int.
16192 (set_breakpoint_at): Update handler type.
16193 (reinsert_breakpoint_handler): Return 1 instead of calling
16194 delete_breakpoint.
16195 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
16196 setting a new one.
16197 (check_breakpoints): Delete auto-delete breakpoints and return 2.
16198 * mem-break.h (set_breakpoint_at): Update handler type.
16199 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
16200 * win32-low.c (auto_delete_breakpoint): New.
16201 (get_child_debug_event): Use it.
16202
16203 2007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
16204
16205 * configure.ac: Check for pread and pwrite.
16206 * hostio.c (handle_pread): Fall back to lseek and read.
16207 (handle_pwrite): Fall back to lseek and write.
16208 * config.in, configure: Regenerated.
16209
16210 2007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
16211
16212 * server.c (myresume): Add own_buf argument.
16213 (main): Update calls.
16214
16215 2007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
16216
16217 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
16218 * remote-utils.c (remote_open): Do not call disable_async_io.
16219 (block_async_io): Delete.
16220 (unblock_async_io): Make static.
16221 (initialize_async_io): New.
16222 * server.c (handle_v_cont): Handle async I/O here.
16223 (myresume): Likewise. Move other common resume tasks here...
16224 (main): ... from here. Call initialize_async_io. Disable async
16225 I/O before the main loop.
16226 * server.h (initialize_async_io): Declare.
16227 (block_async_io, unblock_async_io): Delete prototypes.
16228 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
16229
16230 2007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
16231
16232 * remote-utils.c (readchar): Allow binary data in received messages.
16233
16234 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
16235
16236 * win32-low.c (attaching): New global.
16237 (win32_create_inferior): Clear the `attaching' global.
16238 (win32_attach): Set the `attaching' global.
16239 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
16240 attaching. Only set a breakpoint at the entry point if not
16241 attaching.
16242
16243 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
16244
16245 * server.c (main): Don't report dll events on the initial
16246 connection on attaches.
16247
16248 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
16249
16250 * server.c (main): Relax numerical bases supported for the pid of
16251 the --attach command line argument.
16252
16253 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
16254
16255 * win32-low.c (win32_attach): Call OpenProcess before
16256 DebugActiveProcess, not after. Add last error output to error
16257 call.
16258
16259 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
16260
16261 * win32-low.c (win32_get_thread_context)
16262 (win32_set_thread_context): New functions.
16263 (thread_rec): Use win32_get_thread_context.
16264 (continue_one_thread, win32_resume): Use win32_set_thread_context.
16265 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
16266 field.
16267
16268 2007-12-03 Leo Zayas
16269 Pedro Alves <pedro_alves@portugalmail.pt>
16270
16271 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
16272 global variables.
16273 (child_add_thread): Minor cleanup.
16274 (child_continue): Resume artificially suspended threads before
16275 calling ContinueDebugEvent.
16276 (suspend_one_thread): New.
16277 (fake_breakpoint_event): New.
16278 (get_child_debug_event): Change return type to int. Check here if
16279 gdb sent an interrupt request. If a soft interrupt was requested,
16280 fake a breakpoint event. Return 0 if there is no event to handle,
16281 and 1 otherwise.
16282 (win32_wait): Don't check here if gdb sent an interrupt request.
16283 Ensure there is a valid event to handle.
16284 (win32_request_interrupt): Add soft interruption method as last
16285 resort.
16286
16287 2007-12-03 Leo Zayas
16288 Pedro Alves <pedro_alves@portugalmail.pt>
16289
16290 * win32-low.h (win32_thread_info): Add descriptions to the
16291 structure members. Replace `suspend_count' counter by a
16292 `suspended' flag.
16293 * win32-low.c (thread_rec): Update condition of when to get the
16294 context from the inferior. Rely on ContextFlags being set if it
16295 has already been retrieved. Only suspend the inferior thread if
16296 we haven't already. Warn if that fails.
16297 (continue_one_thread): s/suspend_count/suspended/. Only call
16298 ResumeThread once. Warn if that fails.
16299
16300 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
16301
16302 * win32-low.c (win32_wait): Don't read from the inferior when it
16303 has already exited.
16304
16305 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
16306
16307 * Makefile.in (win32_low_h): New variable.
16308 (win32-low.o): Add dependency on $(win32_low_h).
16309 (win32-arm-low.o, win32-i386-low.o): New rules.
16310
16311 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
16312
16313 * hostio.c: Correct copyright year.
16314
16315 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
16316
16317 * Makefile.in (OBS): Add hostio.o.
16318 (hostio.o): New rule.
16319 * server.h (handle_vFile): Declare.
16320 * hostio.c: New file.
16321 * server.c (handle_v_requests): Take packet_len and new_packet_len
16322 for binary packets. Call handle_vFile.
16323 (main): Update call to handle_v_requests.
16324
16325 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
16326
16327 * linux-low.c: Include <sched.h>.
16328
16329 2007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
16330
16331 * linux-low.c (linux_tracefork_grandchild): New.
16332 (linux_tracefork_child): Use clone.
16333 (linux_test_for_tracefork): Use clone; allocate and free a stack.
16334
16335 2007-10-31 Joel Brobecker <brobecker@adacore.com>
16336
16337 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
16338
16339 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
16340
16341 * linux-low.c (handle_extended_wait): Handle unexpected signals.
16342
16343 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
16344
16345 * inferiors.c (change_inferior_id): Delete.
16346 (add_pid_to_list, pull_pid_from_list): New.
16347 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
16348 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
16349 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
16350 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
16351 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
16352 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
16353 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
16354 (using_threads): Always set to 1.
16355 (handle_extended_wait): New.
16356 (add_process): Do not set TID.
16357 (linux_create_inferior): Set must_set_ptrace_flags.
16358 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
16359 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
16360 (linux_thread_alive): Rename TID argument to LWPID.
16361 (linux_wait_for_process): Handle unknown processes. Do not use TID.
16362 (linux_wait_for_event): Do not use TID or check using_threads. Update
16363 call to dead_thread_notify. Call handle_extended_wait.
16364 (linux_create_inferior): Use PTRACE_SETOPTIONS.
16365 (send_sigstop): Delete sigstop_sent.
16366 (wait_for_sigstop): Avoid TID.
16367 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
16368 (linux_test_for_tracefork): New.
16369 (linux_lookup_signals): Use thread_db_active and
16370 linux_supports_tracefork_flag.
16371 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
16372 * linux-low.h (get_process_thread): Avoid TID.
16373 (struct process_ifo): Move thread_known and tid to the end. Remove
16374 sigstop_sent.
16375 (linux_attach_lwp, thread_db_init): Update prototypes.
16376 * server.h (change_inferior_id): Delete prototype.
16377 (add_pid_to_list, pull_pid_from_list): New prototypes.
16378 * thread-db.c (thread_db_use_events): New.
16379 (find_first_thread): Rename to...
16380 (find_one_thread): ...this. Update callers and messages. Do not
16381 call fatal. Check thread_db_use_events. Do not call
16382 change_inferior_id or new_thread_notify.
16383 (maybe_attach_thread): Update. Do not call new_thread_notify.
16384 (thread_db_init): Set thread_db_use_events. Check use_events.
16385 * utils.c (fatal, warning): Correct message prefix.
16386
16387 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
16388
16389 * Makefile.in (clean): Remove new files.
16390 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
16391 (powerpc-64.o, powerpc-64.c): New rules.
16392 * configure.srv: Use alternate register sets for powerpc64-*-linux*
16393 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
16394 with SPE.
16395 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
16396 SPE targets.
16397 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
16398 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
16399 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
16400 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
16401 (target_regsets): Add AltiVec and SPE register sets.
16402 * configure.ac: Check for AltiVec and SPE.
16403 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
16404 (ppc_fill_vrregset, ppc_store_vrregset): New.
16405 (target_regsets): Add AltiVec register set.
16406 * configure: Regenerated.
16407
16408 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
16409
16410 * linux-low.c (O_LARGEFILE): Define.
16411 (linux_read_memory): Use /proc/PID/mem.
16412 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
16413 * configure, config.in: Regenerated.
16414
16415 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
16416
16417 * linux-low.c (linux_wait_for_event): Do not pass signals while
16418 single-stepping.
16419
16420 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
16421
16422 * win32-low.c (create_process): New.
16423 (win32_create_inferior): Use create_process instead of
16424 CreateProcess. If create_process failed retry appending an ".exe"
16425 suffix. Store the GetLastError result immediatelly after
16426 create_process calls and use it on the call to error.
16427
16428 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
16429
16430 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
16431
16432 2007-08-23 Joel Brobecker <brobecker@adacore.com>
16433
16434 * configure.ac: Switch license to GPLv3.
16435
16436 2007-08-01 Michael Snyder <msnyder@access-company.com>
16437
16438 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
16439
16440 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
16441
16442 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
16443 typedef.
16444 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
16445 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
16446 CloseToolhelp32Snapshot.
16447 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
16448 CloseToolhelp32Snapshot.
16449
16450 2007-07-27 Michael Snyder <michael.snyder@access-company.com>
16451
16452 * server.c (main): Check for inferior exit before main loop.
16453
16454 2007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
16455
16456 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
16457 instead of on tmp_desc.
16458
16459 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
16460 Daniel Jacobowitz <dan@codesourcery.com>
16461
16462 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
16463 (add_thread): Minor cleanups.
16464 (clear_inferiors): Move lower in the file. Clear the DLL
16465 list.
16466 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
16467 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
16468 (xml_escape_text): New.
16469 * server.c (handle_query): Handle qXfer:libraries:read. Report it
16470 for qSupported.
16471 (handle_v_cont): Report errors.
16472 (gdbserver_version): Update.
16473 (main): Correct size of own_buf. Do not report initial DLL events.
16474 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
16475 (unloaded_dll, xml_escape_text): New.
16476 * win32-low.c (enum target_waitkind): Update comments.
16477 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
16478 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
16479 (win32_EnumProcessModules, win32_GetModuleInformation)
16480 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
16481 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
16482 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
16483 (win32_Module32First, win32_Module32Next, load_toolhelp)
16484 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
16485 (get_child_debug_event): Handle DLL events.
16486 (win32_wait): Likewise.
16487
16488 2007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
16489
16490 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
16491 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
16492
16493 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
16494
16495 * win32-low.c (handle_output_debug_string): Ignore event if not
16496 waiting.
16497
16498 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
16499
16500 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
16501
16502 2007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
16503
16504 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
16505
16506 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
16507
16508 * inferiors.c (change_inferior_id): Add comment.
16509 * linux-low.c (check_removed_breakpoint): Add an early
16510 prototype. Improve debug output.
16511 (linux_attach): Doc update.
16512 (linux_detach_one_process, linux_detach): Clean up before releasing
16513 each process.
16514 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
16515 * linux-low.h (struct process_info): Doc improvement.
16516 * mem-break.c (delete_all_breakpoints): New.
16517 * mem-break.h (delete_all_breakpoints): New prototype.
16518 * thread-db.c (find_first_thread): New.
16519 (thread_db_create_event): Call it instead of
16520 thread_db_find_new_threads. Clean up unused variables.
16521 (maybe_attach_thread): Remove first thread handling.
16522 (thread_db_find_new_threads): Use find_first_thread.
16523 (thread_db_get_tls_address): Likewise.
16524
16525 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
16526
16527 * thread-db.c (thread_db_find_new_threads): Add prototype.
16528 (thread_db_create_event): Check for the main thread before adding
16529 a new thread.
16530 (maybe_attach_thread): Only enable event reporting if TID == 0.
16531 (thread_db_get_tls_address): Check for new threads.
16532
16533 2007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
16534
16535 * linux-low.c (linux_create_inferior): Try execv before execvp.
16536 * spu-low.c (spu_create_inferior): Likewise.
16537
16538 2007-06-13 Mike Frysinger <vapier@gentoo.org>
16539
16540 * linux-low.c (linux_create_inferior): Change execv to execvp.
16541 * spu-low.c (spu_create_inferior): Likewies.
16542
16543 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
16544
16545 * Makefile.in (clean): Clean new files instead of deleted ones.
16546 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
16547 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
16548 rules.
16549 * configure.srv: Specify XML files and new regformats for MIPS and
16550 MIPS64 GNU/Linux.
16551 * linux-mips-low.c (mips_num_regs): Set to only used registers.
16552 (mips_regmap): Do not fetch $0. Remove unused registers. Add
16553 an entry for the restart register.
16554 (mips_cannot_fetch_register, mips_cannot_store_register)
16555 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
16556 register names to match the XML descriptions.
16557 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
16558 restart register instead of $0.
16559
16560 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
16561 Markus Deuling <deuling@de.ibm.com>
16562
16563 * remote-utils.c (decode_xfer_write): New function.
16564 * server.h (decode_xfer_write): Add prototype.
16565 * server.c (handle_query): Add PACKET_LEN argument. Support
16566 qXfer:spu:read and qXfer:spu:write packets.
16567 (main): Pass packet_len to handle_query.
16568 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
16569 * target.h (target_ops): Add qxfer_spu.
16570
16571 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
16572
16573 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
16574 accessing non-seekable spufs files.
16575
16576 2007-05-16 Markus Deuling <deuling@de.ibm.com>
16577
16578 * server.c (handle_query): Add reply for qC packet.
16579
16580 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
16581 Leo Zayas <lerele@champenstudios@com>
16582
16583 * server.h (check_remote_input_interrupt_request): New function.
16584 * remote_utils.c (INVALID_DESCRIPTOR): New define.
16585 (remote_desc): Initialize with INVALID_DESCRIPTOR.
16586 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
16587 (check_remote_input_interrupt_request): New function.
16588 * server.h (check_remote_input_interrupt_request): Declare.
16589 * win32-low.c (winapi_DebugBreakProcess,
16590 winapi_GenerateConsoleCtrlEvent): New typedefs.
16591 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
16592 to 250 ms.
16593 (win32_wait): Check for remote interrupt request
16594 with check_remote_input_interrupt_request.
16595 (win32_request_interrupt): New function.
16596 (win32_target_op): Set request_interrupt to win32_request_interrupt.
16597
16598 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
16599
16600 * win32-low.c (debug_registers_changed,
16601 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
16602 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
16603 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
16604 (thread_rec): Get context using the low target.
16605 (child_add_thread): Call thread_added on the low target,
16606 which does the same thing.
16607 (regptr): Delete.
16608 (do_initial_child_stuff): Remove debug registers references.
16609 Set context using the low target. Resume threads after
16610 setting the contexts.
16611 (child_continue): Remove dead variable. Remove debug
16612 registers references.
16613 (child_fetch_inferior_registers): Go through the low target.
16614 (do_child_store_inferior_registers): Remove.
16615 (child_store_inferior_registers): Go through the low target.
16616 (win32_resume): Remove debug registers references.
16617 Set context using the low target.
16618 (handle_exception): Change return type to void. Don't record
16619 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
16620 first chance exception.
16621 (get_child_debug_event): Change return type to void. Remove
16622 goto loop. Always return after waiting for debug event.
16623 (win32_wait): Convert to switch statement. Handle spurious
16624 events.
16625
16626 * win32-i386-low.c (debug_registers_changed,
16627 debug_registers_used): New.
16628 (initial_stuff): Rename to ...
16629 (i386_initial_stuff): ... this. Clear debug registers
16630 state variables.
16631 (store_debug_registers): Delete.
16632 (i386_get_thread_context): New.
16633 (load_debug_registers): Delete.
16634 (i386_set_thread_context): New.
16635 (i386_thread_added): New.
16636 (single_step): Rename to ...
16637 (i386_single_step): ... this.
16638 (do_fetch_inferior_registers): Rename to ...
16639 (i386_fetch_inferior_register): ... this.
16640 (i386_store_inferior_register): New.
16641 (the_low_target): Adapt to new interface.
16642
16643 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
16644 (arm_get_thread_context): New.
16645 (arm_set_thread_context): New.
16646 (regptr): New.
16647 (do_fetch_inferior_registers): Rename to ...
16648 (arm_fetch_inferior_register): ... this.
16649 (arm_store_inferior_register): New.
16650 (arm_wince_breakpoint): Reimplement as unsigned long.
16651 (arm_wince_breakpoint_len): Define.
16652 (the_low_target): Adapt to new interface.
16653
16654 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
16655 load_debug_registers. Add get_thread_context, set_thread_context,
16656 thread_added and store_inferior_register. Rename
16657 fetch_inferior_registers to fetch_inferior_register.
16658 (regptr): Remove declaration.
16659
16660 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
16661
16662 * linux-low.c (linux_detach): Change return type to int. Return 0.
16663 * spu-low.c (spu_detach): Likewise.
16664
16665 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
16666
16667 * target.h (target_ops): Change return type of detach to int.
16668 Add join.
16669 (join_inferior): New.
16670 * server.c (main): Don't skip detach support on mingw32.
16671 If the inferior doesn't support detaching return error.
16672 Call join_inferior instead of using waitpid.
16673 * linux-low.c (linux_join): New.
16674 (linux_target_op): Add linux_join.
16675 * spu-low.c (spu_join): New.
16676 (spu_target_ops): Add spu_join.
16677 * win32-low.c (win32_detach): Adapt to new interface.
16678 Reopen current_process_handle before detaching. Issue a child
16679 resume before detaching.
16680 (win32_join): New.
16681 (win32_target_op): Add win32_join.
16682
16683 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
16684
16685 * win32-low.c (win32-attach): Fix return value.
16686 * target.h (target_ops): Describe ATTACH return values.
16687
16688 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
16689
16690 * win32-low.c (GETPROCADDRESS): Define.
16691 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
16692 (winapi_DebugSetProcessKillOnExit): Likewise.
16693 (win32_create_inferior): Force usage of ansi CreateProcessA.
16694 (win32_attach): Use GETPROCADDRESS.
16695 (win32_detach): Likewise.
16696
16697 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
16698
16699 * win32-low.c (win32_wait): Don't use WSTOPSIG.
16700
16701 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
16702
16703 * win32-low.c: Commit leftover changes from 2007-03-29.
16704
16705 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
16706
16707 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
16708 fields short instead of int. Add explicit padding.
16709 (i387_cache_to_fsave): Remove unnecessary casts.
16710 (i387_fsave_to_cache): Doc fix.
16711 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
16712
16713 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
16714
16715 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
16716 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
16717
16718 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
16719
16720 * configure.srv (arm*-*-mingw32ce*): Move near the other
16721 arm targets.
16722
16723 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
16724
16725 * configure.ac: Add errno checking.
16726 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
16727 sys/file.h and malloc.h.
16728 (AC_CHECK_DECLS): Add perror.
16729 (srv_mingwce): Handle.
16730 * configure.srv (i[34567]86-*-cygwin*): Add
16731 win32-i386-low.o to srv_tgtobj.
16732 (i[34567]86-*-mingw*): Likewise.
16733 (arm*-*-mingw32ce*): Add case.
16734 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
16735 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
16736 [__MINGW32CE__] (strerror): New function.
16737 [__MINGW32CE__] (errno): Define to GetLastError.
16738 [__MINGW32CE__] (COUNTOF): New macro.
16739 (remote_open): Remove extra close call.
16740 * mem-break.c (delete_breakpoint_at): New function.
16741 * mem-break.h (delete_breakpoint_at): Declare.
16742 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
16743 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
16744 [USE_WIN32API] (read, write): Add char* casts.
16745 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
16746 * server.h: Include wincecompat.h on Windows CE.
16747 [HAVE_ERRNO_H]: Check.
16748 (perror): Declare if not declared.
16749 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
16750 (perror_with_name): Remove errno declaration.
16751 * wincecompat.h: New.
16752 * wincecompat.c: New.
16753 * win32-low.h: New.
16754 * win32-arm-low.c: New.
16755 * win32-i386-low.c: New.
16756 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
16757 (OUTMSG2): Make it safe.
16758 (_T): New macro.
16759 (COUNTOF): New macro.
16760 (NUM_REGS): Get it from the low target.
16761 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
16762 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
16763 (thread_rec): Let low target handle debug registers.
16764 (child_add_thread): Likewise.
16765 (child_init_thread_list): Likewise.
16766 (continue_one_thread): Likewise.
16767 (regptr): New.
16768 (do_child_fetch_inferior_registers): Move to ...
16769 * win32-i386-low.c: ... here, and rename to ...
16770 (do_fetch_inferior_registers): ... this.
16771 * win32-low.c (child_fetch_inferior_registers):
16772 Go through the low target.
16773 (do_child_store_inferior_registers): Use regptr.
16774 (strwinerror): New function.
16775 (win32_create_inferior): Handle Windows CE.
16776 Use strwinerror instead of strerror on Windows error
16777 codes. Add program to the error output.
16778 Don't close the main thread handle on Windows CE.
16779 (win32_attach): Use coredll.dll on Windows CE.
16780 (win32_kill): Close current process and current
16781 thread handles.
16782 (win32_detach): Use coredll.dll on Windows CE.
16783 (win32_resume): Let low target handle debug registers, and
16784 step request.
16785 (handle_exception): Add/Remove initial breakpoint. Avoid
16786 non-existant WSTOPSIG on Windows CE.
16787 (win32_read_inferior_memory): Cast to remove warning.
16788 (win32_arch_string): Go through the low target.
16789 (initialize_low): Call set_breakpoint_data with the low
16790 target's breakpoint.
16791 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
16792 FOP_REGNUM, mappings): Move to ...
16793 * win32-i386-low.c: ... here.
16794 * win32-low.c (win32_thread_info): Move to ...
16795 * win32-low.h: ... here.
16796 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
16797 win32-arm-low.c and wincecompat.c.
16798 (all:): Add $EXEEXT.
16799 (install-only:): Likewise.
16800 (gdbserver:): Likewise.
16801 (gdbreplay:): Likewise.
16802 * config.in: Regenerate.
16803 * configure: Regenerate.
16804
16805 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
16806
16807 * win32-low.c: Rename typedef thread_info to
16808 win32_thread_info throughout.
16809
16810 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
16811
16812 * win32-i386-low.c: Rename to ...
16813 * win32-low.c: ... this.
16814 * configure.srv: Replace win32-i386-low.o with win32-low.o.
16815 * Makefile.in: Likewise.
16816
16817 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
16818
16819 * remote-utils.c (monitor_output): Constify msg parameter.
16820 * server.h (monitor_output): Likewise.
16821 * win32-i386-low.c (handle_output_debug_string): New.
16822 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
16823 handle_output_debug_string.
16824 (get_child_debug_event): Likewise.
16825
16826 2007-03-27 Mat Hostetter <mat@lcs.mit.edu>
16827
16828 * server.c (main): Correct strtoul check.
16829
16830 2007-03-27 Jon Ringle <jon@ringle.org>
16831
16832 * linux-low.c: Check __ARCH_HAS_MMU__ also.
16833
16834 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
16835
16836 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
16837
16838 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
16839
16840 * terminal.h: Check HAVE_SGTTY_H.
16841
16842 2007-02-27 Mat Hostetter <mat@lcs.mit.edu>
16843
16844 * remote-utils.c (remote_open): Print out the assigned port number.
16845
16846 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
16847
16848 * remote-utils.c (monitor_output): New function.
16849 * server.c (debug_threads): Define here.
16850 (monitor_show_help): New function.
16851 (handle_query): Handle qRcmd.
16852 (main): Do not handle 'd' packet.
16853 * server.h (debug_threads, remote_debug, monitor_output): Declare.
16854 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
16855 of debug_threads.
16856
16857 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
16858
16859 * Makefile.in (EXEEXT): New.
16860 (clean): Use $(EXEEXT).
16861
16862 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
16863
16864 * target.h (target_ops): Rename send_signal to request_interrupt,
16865 and remove enum target_signal parameter.
16866 * linux-low.c (linux_request_interrupt): Rename from
16867 linux_send_signal, and always send SIGINT.
16868 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
16869 and always send SIGINT.
16870 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
16871 of send_signal.
16872 (input_interrupt): Likewise.
16873
16874 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
16875
16876 * server.c (get_features_xml): Check if target implemented
16877 arch_string.
16878 * win32-i386-low.c (win32_arch_string): New.
16879 (win32_target_ops): Add win32_arch_string as arch_string member.
16880
16881 2007-02-22 Markus Deuling <deuling@de.ibm.com>
16882
16883 * spu-low.c (spu_arch_string): New.
16884 (spu_target_ops): Add spu_arch_string.
16885
16886 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
16887
16888 * remote-utils.c: Remove HAVE_TERMINAL_H check.
16889 * configure.ac: Do not check for terminal.h.
16890 * configure, config.in: Regenerated.
16891
16892 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
16893
16894 * Makefile.in (OBS): Add $(XML_BUILTIN).
16895 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
16896 (clean): Update.
16897 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
16898 (arm-with-iwmmxt.c): New.
16899 * config.in, configure: Regenerate.
16900 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
16901 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
16902 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
16903 (arm*-*-linux*): Add iWMMXt and regset support.
16904 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
16905 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
16906 (arm_store_wmmxregset, target_regsets): New.
16907 * server.c (get_features_xml): Take annex argument. Check builtin
16908 XML documents.
16909 (handle_query): Handle multiple annexes.
16910
16911 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
16912
16913 * remote-utils.c [USE_WIN32API] (read, write): Define.
16914 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
16915 write.
16916
16917 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
16918
16919 * linux-i386-low.c (the_low_target): Set arch_string.
16920 * linux-x86-64-low.c (the_low_target): Likewise.
16921 * linux-low.c (linux_arch_string): New.
16922 (linux_target_ops): Add it.
16923 * linux-low.h (struct linux_target_ops): Add arch_string.
16924 * server.c (write_qxfer_response): Use const void * for DATA.
16925 (get_features_xml): New.
16926 (handle_query): Handle qXfer:features:read. Report it for qSupported.
16927 * target.h (struct target_ops): Add arch_string method.
16928
16929 2007-01-03 Denis Pilat <denis.pilat@st.com>
16930 Daniel Jacobowitz <dan@codesourcery.com>
16931
16932 * linux-low.c (linux_kill): Handle being called with no threads.
16933 * win32-i386-low.c (win32_kill): Likewise.
16934 (get_child_debug_event): Clear current_process_handle.
16935
16936 2006-12-30 Denis PILAT <denis.pilat@st.com>
16937 Daniel Jacobowitz <dan@codesourcery.com>
16938
16939 * remote-utils.c (remote_open): Check the type of specified
16940 serial port devices before opening them.
16941 * server.c (main): Kill the inferior if an error occurs during
16942 the first remote_open.
16943
16944 2006-12-05 Markus Deuling <deuling@de.ibm.com>
16945
16946 * README: Update supported targets.
16947
16948 2006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
16949
16950 * Makefile.in (clean): Remove reg-mips64.c.
16951 (reg-mips64.c, reg-mips64.o): New rules.
16952 * configure.srv: Handle mips64. Include regset support for mips.
16953 * linux-mips-low.c (union mips_register): New.
16954 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
16955 (mips_breakpoint, mips_breakpoint_at): Use int.
16956 (mips_collect_register, mips_supply_register)
16957 (mips_collect_register_32bit, mips_supply_register_32bit)
16958 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
16959 (mips_store_fpregset, target_regsets): New.
16960 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
16961
16962 2006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
16963
16964 * configure.srv: Add target "spu*-*-*".
16965 * Makefile.in (clean): Remove reg-spu.c.
16966 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
16967 * spu-low.c: New file.
16968
16969 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
16970
16971 * configure.ac: Correct td_thr_tls_get_addr test.
16972 * configure: Regenerated.
16973
16974 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
16975
16976 * linux-low.c (linux_wait_for_event): Reformat. Use the
16977 pass_signals array.
16978 * remote-utils.c (decode_address_to_semicolon): New.
16979 * server.c (pass_signals, handle_general_set): New.
16980 (handle_query): Mention QPassSignals for qSupported.
16981 (main): Call handle_general_set.
16982 * server.h (pass_signals, decode_address_to_semicolon): New.
16983
16984 2006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
16985
16986 * server.c (handle_query): Correct error handling for read_auxv.
16987
16988 2005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
16989
16990 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
16991 and srv_linux_thread_db to yes.
16992 * linux-s390-low.c (s390_fill_gregset): New function.
16993 (target_regsets): Define data structure.
16994
16995 2006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
16996
16997 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
16998 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
16999 * config.in, configure: Regenerated.
17000 * inferiors.c (gdb_id_to_thread): New function.
17001 (gdb_id_to_thread_id): Use it.
17002 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
17003 * linux-low.h (struct process_info): Add th member.
17004 (thread_db_get_tls_address): New prototype.
17005 * remote-utils.c (decode_address): Make non-static.
17006 * server.c (handle_query): Handle qGetTLSAddr.
17007 * server.h (gdb_id_to_thread, decode_address): New prototypes.
17008 * target.h (struct target_ops): Add get_tls_address.
17009 * thread-db.c (maybe_attach_thread): Save the thread handle.
17010 (thread_db_get_tls_address): New.
17011
17012 2006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
17013
17014 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
17015 (linux_resume_one_process): Take a siginfo_t *. Update all
17016 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
17017 (struct pending_signals): Add a siginfo_t.
17018 (linux_wait_for_process): Always set last_status.
17019 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
17020 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
17021 * linux-low.h (struct process_info): Add last_status.
17022
17023 2006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
17024
17025 * remote-utils.c (try_rle): New function.
17026 (putpkt_binary): Use it.
17027
17028 2006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
17029
17030 * Makefile.in (clean): Clean reg-x86-64-linux.c.
17031 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
17032 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
17033 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
17034 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
17035 point registers.
17036
17037 2006-08-08 Richard Sandiford <richard@codesourcery.com>
17038
17039 * server.c (terminal_fd): New variable.
17040 (old_foreground_pgrp): Likewise.
17041 (restore_old_foreground_pgrp): New function.
17042 (start_inferior): Record the terminal file descriptor in terminal_fd
17043 and its original foreground group in old_foreground_pgrp. Register
17044 restore_old_foreground_pgrp with atexit().
17045
17046 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
17047
17048 * server.c (handle_query): Correct qPart to qXfer.
17049
17050 2006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
17051
17052 * configure.ac: Check for more headers which are missing on
17053 Windows. Automatically supply -lwsock32 and USE_WIN32API.
17054 * configure.srv: Add Cygwin and mingw32.
17055 * remote-utils.c: Don't include headers unconditionally which
17056 are missing on mingw32. Include <winsock.h> for mingw32.
17057 (remote_open): Adjust for mingw32 support. Flush
17058 standard error after writing to it.
17059 (remote_close, putpkt_binary, input_interrupt, block_async_io)
17060 (unblock_async_io, enable_async_io, disable_async_io)
17061 (readchar, getpkt): Update for Winsock support.
17062 (prepare_resume_reply): Expect a protocol signal number.
17063 * server.c: Disable <sys/wait.h> on mingw32.
17064 (start_inferior): Adjust for mingw32 support. Flush
17065 standard error after writing to it.
17066 (attach_inferior): Likewise. Use protocol signal
17067 numbers.
17068 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
17069 and names.
17070 * win32-i386-low.c: New file.
17071 * Makefile.in (XM_CLIBS): Set.
17072 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
17073 (win32-i386-low.o): New dependency rule.
17074 * linux-low.c (linux_wait): Use target signal numbers.
17075 * target.h (struct target_ops): Doc fix.
17076 * server.h (target_signal_to_name): New prototype.
17077 * gdbreplay.c: Don't include headers unconditionally which
17078 are missing on mingw32. Include <winsock.h> for mingw32.
17079 (remote_close, remote_open): Adjust for Winsock support.
17080 * configure, config.in: Regenerated.
17081
17082 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
17083
17084 * server.c (decode_xfer_read, write_qxfer_response): New.
17085 (handle_query): Take a packet length argument. Handle
17086 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
17087 the qSupported response.
17088 (main): Update call to handle_query.
17089
17090 2006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
17091
17092 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
17093 (putpkt_binary): Renamed from putpkt and adjusted for binary
17094 data.
17095 (putpkt): New wrapper for putpkt_binary.
17096 (readchar): Don't mask off the high bit.
17097 (decode_X_packet): New function.
17098 * server.c (main): Call putpkt_binary if a handler sets the packet
17099 length. Save the length of the incoming packet. Handle 'X'.
17100 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
17101
17102 2006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
17103
17104 * server.c (handle_query): Handle qSupported.
17105
17106 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
17107
17108 * remote-utils.c (all_symbols_looked_up): New variable.
17109 (look_up_one_symbol): Check it.
17110 * server.h (look_up_one_symbol): New declaration.
17111 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
17112
17113 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
17114
17115 * Makefile.in (linux-arm-low.o): Update dependencies.
17116 * linux-arm-low.c: Include "gdb_proc_service.h".
17117 (PTRACE_GET_THREAD_AREA): Define.
17118 (ps_get_thread_area): New function.
17119
17120 2006-05-09 Nathan Sidwell <nathan@codesourcery.com>
17121
17122 * configure.srv (m68k*-*-uclinux*): New target.
17123 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
17124 (linux_resume_one_process): Remove extraneous cast.
17125 (linux_read_offsets): New.
17126 (linux_target_op): Add linux_read_offsets on mmuless systems.
17127 * server.c (handle_query): Add qOffsets logic.
17128 * target.h (struct target_ops): Add read_offsets.
17129
17130 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
17131
17132 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
17133 (PTRACE_GET_THREAD_AREA): Define.
17134 (ps_get_thread_area): New function.
17135 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
17136 (linux-x86-64-low.o): Update.
17137
17138 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
17139
17140 * configure.ac: Remove checks for prfpregset_t.
17141 * gdb_proc_service.h: New file.
17142 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
17143 new "gdb_proc_service.h".
17144 * proc-service.c: Likewise.
17145 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
17146 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
17147 * Makefile.in (gdb_proc_service_h): Updated.
17148 * configure, config.in: Regenerated.
17149
17150 2006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
17151
17152 * remote-utils.c (prepare_resume_reply): Move declaration
17153 of gdb_id_from_wait to the top of the block.
17154
17155 2006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
17156
17157 * linux-low.c (regsets_store_inferior_registers): Read the regset
17158 from the target before filling it.
17159
17160 2006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
17161
17162 * server.c (attach_inferior): Return SIGTRAP for a successful
17163 attach.
17164
17165 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
17166
17167 * Makefile.in (OBS): Add version.o.
17168 (STAGESTUFF): Delete.
17169 (version.o): Add dependencies.
17170 (version.c): Replace rule.
17171 (clean): Remove version.c.
17172 * server.c (gdbserver_version): New.
17173 (gdbserver_usage): Use printf.
17174 (main): Handle --version and --help.
17175 * server.h (version, host_name): Add declarations.
17176
17177 2005-12-23 Eli Zaretskii <eliz@gnu.org>
17178
17179 * linux-arm-low.c:
17180 * linux-arm-low.c:
17181 * inferiors.c:
17182 * i387-fp.h:
17183 * i387-fp.c:
17184 * gdbreplay.c:
17185 * regcache.c:
17186 * proc-service.c:
17187 * mem-break.h:
17188 * mem-break.c:
17189 * linux-x86-64-low.c:
17190 * linux-sh-low.c:
17191 * linux-s390-low.c:
17192 * linux-ppc64-low.c:
17193 * linux-ppc-low.c:
17194 * linux-mips-low.c:
17195 * linux-m68k-low.c:
17196 * linux-m32r-low.c:
17197 * linux-low.h:
17198 * linux-low.c:
17199 * linux-ia64-low.c:
17200 * linux-i386-low.c:
17201 * linux-crisv32-low.c:
17202 * thread-db.c:
17203 * terminal.h:
17204 * target.h:
17205 * target.c:
17206 * server.h:
17207 * server.c:
17208 * remote-utils.c:
17209 * regcache.h:
17210 * utils.c:
17211 * Makefile.in:
17212 * configure.ac:
17213 * gdbserver.1: Add (C) after Copyright. Update the FSF
17214 address.
17215
17216 2005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
17217
17218 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
17219 (arm_breakpoint_at): Recognize both breakpoints.
17220 (the_low_target): Use the correct breakpoint instruction.
17221
17222 2005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
17223
17224 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
17225 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
17226 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
17227 (the_low_target): Update.
17228
17229 2005-10-25 Andreas Schwab <schwab@suse.de>
17230
17231 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
17232
17233 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
17234 (ia64_num_regs): Reduce to 462.
17235
17236 2005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
17237
17238 * acinclude.m4: Correct quoting.
17239 * aclocal.m4: Regenerated.
17240
17241 Suggested by SZOKOVACS Robert <szo@ies.hu>:
17242 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
17243 (thread_db_init): Call thread_db_err_str.
17244 * configure.ac: Check for TD_VERSION.
17245 * config.in, configure: Regenerated.
17246
17247 2005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17248
17249 * server.h (error, fatal, warning): Add ATTR_FORMAT.
17250
17251 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
17252
17253 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
17254 is not available. Define HAVE_PTRACE_GETREGS if it is.
17255 * config.in, configure: Regenerated.
17256 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
17257 * linux-i386-low.c, linux-m68k-low.c: Update to use
17258 HAVE_PTRACE_GETREGS.
17259 * linux-low.c (regsets_fetch_inferior_registers)
17260 (regsets_store_inferior_registers): Only return 0 if we processed
17261 GENERAL_REGS.
17262 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
17263 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
17264
17265 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
17266
17267 * inferiors.c (struct thread_info): Add gdb_id.
17268 (add_thread): Add gdb_id argument.
17269 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
17270 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
17271 calls to add_thread.
17272 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
17273 * server.c (handle_query): Use thread_to_gdb_id.
17274 (handle_v_cont, main): Use gdb_id_to_thread_id.
17275 * server.h (add_thread): Update prototype.
17276 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
17277 prototypes.
17278
17279 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
17280
17281 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
17282 left-padded registers.
17283 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
17284 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
17285
17286 2005-07-01 Steve Ellcey <sje@cup.hp.com>
17287
17288 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
17289 * configure: Regenerate.
17290 * config.in: Regenerate.
17291 * server.h (NEED_DECLARATION_STRERROR):
17292 Replace with !HAVE_DECL_STRERROR.
17293
17294 2005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
17295
17296 * linux-low.c (linux_wait, linux_send_signal): Don't test
17297 an unsigned long variable for > 0 if it could be MAX_ULONG.
17298 * server.c (myresume): Likewise.
17299 * target.c (set_desired_inferior): Likewise.
17300
17301 2005-06-13 Mark Kettenis <kettenis@gnu.org>
17302
17303 * configure.ac: Simplify and improve check for socklen_t.
17304 * configure, config.in: Regenerate.
17305
17306 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
17307
17308 * acconfig.h: Remove.
17309 * configure.ac: Add a test for socklen_t. Use three-argument
17310 AC_DEFINE throughout.
17311 * config.in: Regenerated using autoheader 2.59.
17312 * configure: Regenerated.
17313
17314 * gdbreplay.c (socklen_t): Provide a default.
17315 (remote_open): Use socklen_t.
17316 * remote-utils.c (socklen_t): Provide a default.
17317 (remote_open): Use socklen_t.
17318 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
17319 unsigned char.
17320
17321 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
17322 char for buffers.
17323 * linux-low.c (linux_read_memory, linux_write_memory)
17324 (linux_read_auxv): Likewise.
17325 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
17326 (check_mem_write): Likewise.
17327 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
17328 Likewise.
17329 * regcache.c (struct inferior_rgcache_data, registers_to_string)
17330 (registers_from_string, register_data): Likewise.
17331 * server.c (handle_query, main): Likewise.
17332 * server.h (convert_ascii_to_int, convert_int_to_ascii)
17333 (decode_M_packet): Likewise.
17334 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
17335 * target.h (struct target_ops): Update read_memory, write_memory,
17336 and read_auxv.
17337 (read_inferior_memory, write_inferior_memory): Update.
17338 * linux-low.h (struct linux_target_ops): Change type of breakpoint
17339 to unsigned char *.
17340 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
17341 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
17342 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
17343 linux-s390-low.c, linux-sh-low.c: Update for changes in
17344 read_inferior_memory and the_low_target->breakpoint.
17345
17346 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
17347
17348 * Makefile.in (SFILES): Add linux-ppc64-low.c.
17349 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
17350 * configure.srv: Add powerpc64-*-linux*.
17351 * linux-ppc64-low.c: New file.
17352
17353 2005-05-23 Orjan Friberg <orjanf@axis.com>
17354
17355 * linux-cris-low.c: New file with support for CRIS.
17356 * linux-crisv32-low.c: Ditto for CRISv32.
17357 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
17358 (clean): Add reg-cris.c and reg-crisv32.c.
17359 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
17360 reg-crisv32.o, and reg-crisv32.c to make rules.
17361 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
17362 recognized targets.
17363
17364 2005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
17365
17366 * linux-low.c (fetch_register): Ensure buffer size is a multiple
17367 of sizeof (PTRACE_XFER_TYPE).
17368 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
17369
17370 2005-05-12 Orjan Friberg <orjanf@axis.com>
17371
17372 * target.h (struct target_ops): Add insert_watchpoint,
17373 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
17374 pointers for hardware watchpoint support.
17375 * linux-low.h (struct linux_target_ops): Ditto.
17376 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
17377 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
17378 to linux_target_ops.
17379 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
17380 reply packet.
17381 * server.c (main): Recognize 'Z' and 'z' packets.
17382
17383 2005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
17384
17385 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
17386 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
17387 (the_low_target): Add new members.
17388
17389 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
17390
17391 * proc-service.c (ps_lgetregs): Search all_processes instead of
17392 all_threads.
17393
17394 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
17395
17396 * server.c (start_inferior): Change return type to int.
17397 (attach_inferior): Change sigptr to int *.
17398 (handle_v_cont, handle_v_requests): Change signal to int *.
17399 (main): Change signal to int.
17400
17401 2005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
17402
17403 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
17404 * configure.srv: Add m32r*-*-linux*.
17405 * linux-m32r-low.c: New file.
17406
17407 2005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
17408
17409 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
17410
17411 2005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
17412
17413 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
17414 Take unsigned long arguments for PIDs.
17415 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
17416 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
17417 (wait_for_sigstop, linux_resume_one_process)
17418 (regsets_fetch_inferior_registers, linux_send_signal)
17419 (linux_read_auxv): Likewise. Update the types of variables holding
17420 PIDs. Update format string specifiers.
17421 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
17422 * remote-utils.c (prepare_resume_reply): Likewise.
17423 * server.c (cont_thread, general_thread, step_thread)
17424 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
17425 unsigned long.
17426 (handle_query): Update format specifiers.
17427 (handle_v_cont, main): Use strtoul for thread IDs.
17428 * server.h (struct inferior_list_entry): Use unsigned long for ID.
17429 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
17430 (general_thread, step_thread, thread_from_wait)
17431 (old_thread_from_wait): Update.
17432 * target.h (struct thread_resume): Use unsigned long for THREAD.
17433 (struct target_ops): Use unsigned long for arguments to attach and
17434 thread_alive.
17435
17436 2005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
17437
17438 * acinclude.m4: Include bfd/bfd.m4 directly.
17439 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
17440 <agriffis@toolchain.org>.
17441 * aclocal.m4, configure: Regenerated.
17442
17443 2005-01-07 Andrew Cagney <cagney@gnu.org>
17444
17445 * configure.ac: Rename configure.in, require autoconf 2.59.
17446 * configure: Re-generate.
17447
17448 2004-12-08 Daniel Jacobowitz <dan@debian.org>
17449
17450 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
17451 LIBS when finished.
17452 * aclocal.m4: Regenerated.
17453 * configure: Regenerated.
17454
17455 2004-11-21 Andreas Schwab <schwab@suse.de>
17456
17457 * linux-m68k-low.c (m68k_num_gregs): Define.
17458 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
17459 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
17460 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
17461 (m68k_breakpoint_at): New. Add to the_low_target.
17462
17463 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
17464 srv_linux_thread_db to yes.
17465
17466 2004-10-20 Joel Brobecker <brobecker@gnat.com>
17467
17468 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
17469 (ARCH_SET_FS): Likewise.
17470 (ARCH_GET_FS): Likewise.
17471 (ARCH_GET_GS): Likewise.
17472
17473 2004-10-16 Daniel Jacobowitz <dan@debian.org>
17474
17475 * linux-i386-low.c (ps_get_thread_area): New.
17476 * linux-x86-64-low.c (ps_get_thread_area): New.
17477 * linux-low.c: Include <sys/syscall.h>.
17478 (linux_kill_one_process): Don't kill the first thread here.
17479 (linux_kill): Kill the first thread here.
17480 (kill_lwp): New function.
17481 (send_sigstop, linux_send_signal): Use it.
17482 * proc-service.c: Clean up #ifdefs.
17483 (fpregset_info): Delete.
17484 (ps_lgetregs): Update and enable implementation.
17485 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
17486 implementations.
17487 * remote-utils.c (struct sym_cache, symbol_cache): New.
17488 (input_interrupt): Print a clearer message.
17489 (async_io_enabled): New variable.
17490 (enable_async_io, disable_async_io): Use it. Update comments.
17491 (look_up_one_symbol): Use the symbol cache.
17492 * thread-db.c (thread_db_look_up_symbols): New function.
17493 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
17494
17495 2004-10-16 Daniel Jacobowitz <dan@debian.org>
17496
17497 * configure.in: Test for -rdynamic.
17498 * configure: Regenerated.
17499 * Makefile (INTERNAL_LDFLAGS): New.
17500 (gdbserver, gdbreplay): Use it.
17501
17502 2004-09-02 Andrew Cagney <cagney@gnu.org>
17503
17504 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
17505
17506 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
17507
17508 * linux-low.c (linux_wait): Clear all_processes list also.
17509
17510 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
17511
17512 * linux-low.c: Include <errno.h>. Remove extern declaration of
17513 errno.
17514
17515 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
17516
17517 * gdbreplay.c, server.h, utils.c: Update copyright years.
17518
17519 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
17520
17521 * server.c (main): Print child status or termination signal from
17522 variable 'signal', not 'sig'.
17523
17524 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
17525
17526 * linux-low.c (linux_read_memory): Change return type to
17527 int. Check for and return error from ptrace().
17528 * target.c (read_inferior_memory): Change return type to int. Pass
17529 back return status from the_target->read_memory().
17530 * target.h (struct target_ops): Adapt *read_memory() prototype.
17531 Update comment.
17532 (read_inferior_memory): Adapt prototype.
17533 * server.c (main): Return an error packet if
17534 read_inferior_memory() returns an error.
17535
17536 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
17537
17538 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
17539 Unify with other clean targets.
17540
17541 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
17542
17543 * server.c (handle_v_cont): Call set_desired_inferior.
17544
17545 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
17546
17547 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
17548
17549 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
17550
17551 * linux-low.c (linux_wait): Unblock async I/O.
17552 (linux_resume): Block and enable async I/O.
17553 * remote-utils.c (block_async_io, unblock_async_io): New functions.
17554 * server.h (block_async_io, unblock_async_io): Add prototypes.
17555
17556 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
17557
17558 * remote-utils.c (remote_open): Print a status notice after
17559 opening a TCP port.
17560 * server.c (attach_inferior): Print a status notice after
17561 attaching.
17562
17563 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
17564
17565 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
17566
17567 2004-02-26 Daniel Jacobowitz <drow@mvista.com>
17568
17569 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
17570 error packet.
17571 * server.c, target.h: Update copyright years.
17572
17573 2004-02-25 Roland McGrath <roland@redhat.com>
17574
17575 * target.h (struct target_ops): New member `read_auxv'.
17576 * server.c (handle_query): Handle qPart:auxv:read: query using that.
17577 * linux-low.c (linux_read_auxv): New function.
17578 (linux_target_ops): Initialize `read_auxv' member to that.
17579
17580 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17581
17582 Committed by Jim Blandy <jimb@redhat.com>.
17583
17584 * linux-s390-low.c (s390_num_regs): Update.
17585 (s390_regmap): Remove control registers. Use __s390x__ predefine
17586 instead of GPR_SIZE to distiguish s390 and s390x targets.
17587
17588 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
17589
17590 * linux-low.c: Update copyright year.
17591 (check_removed_breakpoint): Clear pending_is_breakpoint.
17592 (linux_set_resume_request, linux_queue_one_thread)
17593 (resume_status_pending_p): New functions.
17594 (linux_continue_one_thread): Use process->resume.
17595 (linux_resume): Only resume threads if there are no pending events.
17596 * linux-low.h (struct process_info): Add resume request
17597 pointer.
17598
17599 2004-01-30 Daniel Jacobowitz <drow@mvista.com>
17600
17601 * regcache.c (new_register_cache): Clear the allocated register
17602 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
17603
17604 2003-10-13 Daniel Jacobowitz <drow@mvista.com>
17605
17606 * linux-low.c (linux_resume): Take a struct thread_resume *
17607 argument.
17608 (linux_wait): Update call.
17609 (resume_ptr): New static variable.
17610 (linux_continue_one_thread): Renamed from
17611 linux_continue_one_process. Use resume_ptr.
17612 (linux_resume): Use linux_continue_one_thread.
17613 * server.c (handle_v_cont, handle_v_requests): New functions.
17614 (myresume): New function.
17615 (main): Handle 'v' case.
17616 * target.h (struct thread_resume): New type.
17617 (struct target_ops): Change argument of "resume" to struct
17618 thread_resume *.
17619 (myresume): Delete macro.
17620
17621 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
17622
17623 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
17624 (uninstall): Support DESTDIR.
17625
17626 Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
17627
17628 * configure.srv: Add xscale*linux copy of arm*linux entry.
17629
17630 2003-07-24 Daniel Jacobowitz <drow@mvista.com>
17631
17632 * linux-arm-low.c (arm_reinsert_addr): New function.
17633 (the_low_target): Add arm_reinsert_addr.
17634
17635 2003-07-08 Mark Kettenis <kettenis@gnu.org>
17636
17637 * mem-break.c: Remove whitespace at end of file.
17638
17639 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
17640
17641 * configure.in: Check whether we need to prototype strerror.
17642 * server.h: Optionally prototype strerror.
17643 * gdbreplay.c (perror_with_name): Use strerror.
17644 * linux-low.c (linux_attach_lwp): Use strerror.
17645 * utils.c (perror_with_name): Use strerror.
17646 * config.in, configure: Regenerated.
17647
17648 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
17649
17650 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
17651 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
17652
17653 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
17654
17655 * Makefile.in (SFILES): Update.
17656 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
17657 low-sun3.c: Remove files.
17658
17659 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
17660
17661 * linux-low.c: Move comment to linux_thread_alive where it belonged.
17662 (linux_detach_one_process, linux_detach): New functions.
17663 (linux_target_ops): Add linux_detach.
17664 * server.c (main): Handle 'D' packet.
17665 * target.h (struct target_ops): Add "detach" member.
17666 (detach_inferior): Define.
17667
17668 2003-06-13 Mark Kettenis <kettenis@gnu.org>
17669
17670 From Kelley Cook <kelleycook@wideopenwest.com>:
17671 * configure.srv: Accept i[34567]86 variants.
17672
17673 2003-06-05 Daniel Jacobowitz <drow@mvista.com>
17674
17675 * linux-low.c (linux_wait_for_event): Correct comment typos.
17676 (linux_resume_one_process): Call check_removed_breakpoint.
17677 (linux_send_signal): New function.
17678 (linux_target_ops): Add linux_send_signal.
17679 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
17680 of kill.
17681 * target.h (struct target_ops): Add send_signal.
17682
17683 2003-05-29 Jim Blandy <jimb@redhat.com>
17684
17685 * linux-low.c (usr_store_inferior_registers): Transfer buf in
17686 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
17687 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
17688 away part of the register's value.
17689
17690 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
17691
17692 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
17693 (linux_wait_for_event, linux_init_signals): Likewise.
17694
17695 2003-03-17 Daniel Jacobowitz <drow@mvista.com>
17696
17697 * configure.in: Check for stdlib.h.
17698 * configure: Regenerated.
17699 * config.in: Regenerated.
17700
17701 2003-01-04 Andreas Schwab <schwab@suse.de>
17702
17703 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
17704
17705 2003-01-02 Andrew Cagney <ac131313@redhat.com>
17706
17707 * Makefile.in: Remove obsolete code.
17708
17709 2002-11-20 Daniel Jacobowitz <drow@mvista.com>
17710
17711 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
17712 defined(PT_FPR0_HI).
17713
17714 2002-11-17 Stuart Hughes <seh@zee2.com>
17715
17716 * linux-arm-low.c (arm_num_regs): Increase.
17717 (arm_regmap): Include status register.
17718
17719 2002-11-17 Daniel Jacobowitz <drow@mvista.com>
17720
17721 * linux-low.c (register_addr): Remove incorrect -1 check.
17722
17723 2002-08-29 Daniel Jacobowitz <drow@mvista.com>
17724
17725 * linux-low.c (linux_create_inferior): Call setpgid. Return
17726 the new PID.
17727 (unstopped_p, linux_signal_pid): Remove.
17728 (linux_target_ops): Remove linux_signal_pid.
17729 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
17730 global instead of target method.
17731 * target.h (struct target_ops): Remove signal_pid. Update comment
17732 for create_inferior.
17733 * server.c (signal_pid): New variable.
17734 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
17735 gdbserver. Set the child to be the foreground process group.
17736 (attach_inferior): Set signal_pid.
17737
17738 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
17739
17740 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
17741
17742 2002-08-20 Jim Blandy <jimb@redhat.com>
17743
17744 * Makefile.in (LDFLAGS): Allow the configure script to establish a
17745 default for this.
17746
17747 2002-08-01 Andrew Cagney <cagney@redhat.com>
17748
17749 * Makefile.in: Make chill references obsolete.
17750
17751 2002-07-24 Kevin Buettner <kevinb@redhat.com>
17752
17753 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
17754 * configure: Regenerate.
17755 * config.in: Regenerate.
17756
17757 2002-07-09 David O'Brien <obrien@FreeBSD.org>
17758
17759 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
17760 (perror_with_name, remote_close, remote_open, expect, play): Static.
17761
17762 2002-07-04 Michal Ludvig <mludvig@suse.cz>
17763
17764 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
17765 byte offsets instead of an array of indexes.
17766 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
17767
17768 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
17769
17770 * regcache.c: Add comment.
17771
17772 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
17773
17774 * thread-db.c: New file.
17775 * proc-service.c: New file.
17776 * acinclude.m4: New file.
17777 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
17778 proc-service.o, and thread-db.o.
17779 (linux-low.o): Add USE_THREAD_DB.
17780 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
17781 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
17782 * aclocal.m4: Regenerated.
17783 * config.in: Regenerated.
17784 * configure: Regenerated.
17785 * configure.in: Check for proc_service.h, sys/procfs.h,
17786 thread_db.h, and linux/elf.h headrs.
17787 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
17788 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
17789 Check for -lthread_db and thread support.
17790 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
17791 PowerPC, and SuperH.
17792 * i387-fp.c: Constify arguments.
17793 * i387-fp.h: Likewise.
17794 * inferiors.c: (struct thread_info): Renamed from
17795 `struct inferior_info'. Remove PID member. Use generic inferior
17796 list header. All uses updated.
17797 (inferiors, signal_pid): Removed.
17798 (all_threads): New variable.
17799 (get_thread): Define.
17800 (add_inferior_to_list): New function.
17801 (for_each_inferior): New function.
17802 (change_inferior_id): New function.
17803 (add_inferior): Removed.
17804 (remove_inferior): New function.
17805 (add_thread): New function.
17806 (free_one_thread): New function.
17807 (remove_thread): New function.
17808 (clear_inferiors): Use for_each_inferior and free_one_thread.
17809 (find_inferior): New function.
17810 (find_inferior_id): New function.
17811 (inferior_target_data): Update argument type.
17812 (set_inferior_target_data): Likewise.
17813 (inferior_regcache_data): Likewise.
17814 (set_inferior_regcache_data): Likewise.
17815 * linux-low.c (linux_bp_reinsert): Remove.
17816 (all_processes, stopping_threads, using_thrads)
17817 (struct pending_signals, debug_threads, pid_of): New.
17818 (inferior_pid): Replace with macro.
17819 (struct inferior_linux_data): Remove.
17820 (get_stop_pc, add_process): New functions.
17821 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
17822 Use add_process and add_thread.
17823 (linux_attach_lwp): New function, based on old linux_attach. Use
17824 add_process and add_thread. Set stop_expected for new threads.
17825 (linux_attach): New function.
17826 (linux_kill_one_process): New function.
17827 (linux_kill): Kill all LWPs.
17828 (linux_thread_alive): Use find_inferior_id.
17829 (check_removed_breakpoints, status_pending_p): New functions.
17830 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
17831 Update. Use WNOHANG. Wait for cloned processes also. Update process
17832 struct for the found process.
17833 (linux_wait_for_event): New function.
17834 (linux_wait): Use it. Support LWPs.
17835 (send_sigstop, wait_for_sigstop, stop_all_processes)
17836 (linux_resume_one_process, linux_continue_one_process): New functions.
17837 (linux_resume): Support LWPs.
17838 (REGISTER_RAW_SIZE): Remove.
17839 (fetch_register): Use register_size instead. Call supply_register.
17840 (usr_store_inferior_registers): Likewise. Call collect_register.
17841 Fix recursive case.
17842 (regsets_fetch_inferior_registers): Improve error message.
17843 (regsets_store_inferior_registers): Add debugging.
17844 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
17845 (unstopped_p, linux_signal_pid): New functions.
17846 (linux_target_ops): Add linux_signal_pid.
17847 (linux_init_signals): New function.
17848 (initialize_low): Call it. Initialize using_threads.
17849 * regcache.c (inferior_regcache_data): Add valid
17850 flag.
17851 (get_regcache): Fetch registers lazily. Add fetch argument
17852 and update all callers.
17853 (regcache_invalidate_one, regcache_invalidate): New
17854 functions.
17855 (new_register_cache): Renamed from create_register_cache.
17856 Return the new regcache.
17857 (free_register_cache): Change argument to a void *.
17858 (registers_to_string, registers_from_string): Call get_regcache
17859 with fetch flag set.
17860 (register_data): Make static. Pass fetch flag to get_regcache.
17861 (supply_register): Call get_regcache with fetch flag clear.
17862 (collect_register): Call get_regcache with fetch flag set.
17863 (collect_register_as_string): New function.
17864 * regcache.h: Update.
17865 * remote-utils.c (putpkt): Flush after debug output and use
17866 stderr.
17867 Handle input interrupts while waiting for an ACK.
17868 (input_interrupt): Use signal_pid method.
17869 (getpkt): Flush after debug output and use stderr.
17870 (outreg): Use collect_register_as_string.
17871 (new_thread_notify, dead_thread_notify): New functions.
17872 (prepare_resume_reply): Check using_threads. Set thread_from_wait
17873 and general_thread.
17874 (look_up_one_symbol): Flush after debug output.
17875 * server.c (step_thread, server_waiting): New variables.
17876 (start_inferior): Don't use signal_pid. Update call to mywait.
17877 (attach_inferior): Update call to mywait.
17878 (handle_query): Handle qfThreadInfo and qsThreadInfo.
17879 (main): Don't fetch/store registers explicitly. Use
17880 set_desired_inferior. Support proposed ``Hs'' packet. Update
17881 calls to mywait.
17882 * server.h: Update.
17883 (struct inferior_list, struct_inferior_list_entry): New.
17884 * target.c (set_desired_inferior): New.
17885 (write_inferior_memory): Constify.
17886 (mywait): New function.
17887 * target.h: Update.
17888 (struct target_ops): New signal_pid method.
17889 (mywait): Removed macro, added prototype.
17890
17891 * linux-low.h (regset_func): Removed.
17892 (regset_fill_func, regset_store_func): New.
17893 (enum regset_type): New.
17894 (struct regset_info): Add type field. Use new operation types.
17895 (struct linux_target_ops): stop_pc renamed to get_pc.
17896 Add decr_pc_after_break and breakpoint_at.
17897 (get_process, get_thread_proess, get_process_thread)
17898 (strut process_info, all_processes, linux_attach_lwp)
17899 (thread_db_init): New.
17900
17901 * linux-arm-low.c (arm_get_pc, arm_set_pc,
17902 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
17903 (the_low_target): Add new members.
17904 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
17905 (i386_store_fpxregset): Constify.
17906 (target_regsets): Add new kind identifier.
17907 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
17908 (i386_set_pc): Add debugging.
17909 (i386_breakpoint_at): New function.
17910 (the_low_target): Add new members.
17911 * linux-mips-low.c (mips_get_pc, mips_set_pc)
17912 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
17913 (mips_breakpoint_at): New.
17914 (the_low_target): Add new members.
17915 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
17916 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
17917 (the_low_target): Add new members.
17918 * linux-sh-low.c (sh_get_pc, sh_set_pc)
17919 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
17920 (the_low_target): Add new members.
17921 * linux-x86-64-low.c (target_regsets): Add new kind
17922 identifier.
17923
17924 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
17925
17926 From Martin Pool <mbp@samba.org>:
17927 * server.c (gdbserver_usage): New function.
17928 (main): Call it.
17929
17930 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
17931
17932 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
17933 stop_at -> stop_pc.
17934
17935 2002-05-04 Andrew Cagney <ac131313@redhat.com>
17936
17937 * Makefile.in: Remove obsolete code.
17938
17939 2002-04-24 Michal Ludvig <mludvig@suse.cz>
17940
17941 * linux-low.c (regsets_fetch_inferior_registers),
17942 (regsets_store_inferior_registers): Removed cast to int from
17943 ptrace() calls.
17944 * regcache.h: Added declaration of struct inferior_info.
17945
17946 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
17947
17948 * inferiors.c (struct inferior_info): Add regcache_data.
17949 (add_inferior): Call create_register_cache.
17950 (clear_inferiors): Call free_register_cache.
17951 (inferior_regcache_data, set_inferior_regcache_data): New functions.
17952 * regcache.c (struct inferior_regcache_data): New.
17953 (registers): Remove.
17954 (get_regcache): New function.
17955 (create_register_cache, free_register_cache): New functions.
17956 (set_register_cache): Don't initialize the register cache here.
17957 (registers_to_string, registers_from_string, register_data): Call
17958 get_regcache.
17959 * regcache.h: Add prototypes.
17960 * server.h: Likewise.
17961
17962 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
17963
17964 * mem-break.c: New file.
17965 * mem-break.h: New file.
17966 * Makefile.in: Add mem-break.o rule; update server.h
17967 dependencies.
17968 * inferiors.c (struct inferior_info): Add target_data
17969 member.
17970 (clear_inferiors): Free target_data member if set.
17971 (inferior_target_data, set_inferior_target_data): New functions.
17972 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
17973 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
17974 * linux-low.c (linux_bp_reinsert): New variable.
17975 (struct inferior_linux_data): New.
17976 (linux_create_inferior): Use set_inferior_target_data.
17977 (linux_attach): Likewise. Call add_inferior.
17978 (linux_wait_for_one_inferior): New function.
17979 (linux_wait): Call it.
17980 (linux_write_memory): Add const.
17981 (initialize_low): Call set_breakpoint_data.
17982 * linux-low.h (struct linux_target_ops): Add breakpoint
17983 handling members.
17984 * server.c (attach_inferior): Remove extra add_inferior
17985 call.
17986 * server.h: Include mem-break.h. Update inferior.c
17987 prototypes.
17988 * target.c (read_inferior_memory)
17989 (write_inferior_memory): New functions.
17990 * target.h (read_inferior_memory)
17991 (write_inferior_memory): Change macros to prototypes.
17992 (struct target_ops): Update comments. Add const to write_memory
17993 definition.
17994
17995 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
17996
17997 * linux-low.c (usr_store_inferior_registers): Support
17998 registers which are allowed to fail to store.
17999 * linux-low.h (linux_target_ops): Likewise.
18000 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
18001 (ppc_cannot_store_register): FPSCR may not be storable.
18002
18003 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
18004
18005 * server.h: Include <string.h> if HAVE_STRING_H.
18006 * ChangeLog: Correct paths in last ChangeLog entry.
18007
18008 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
18009
18010 * linux-low.h: Remove obsolete prototypes.
18011 (struct linux_target_ops): New.
18012 (extern the_low_target): New.
18013 * linux-low.c (num_regs, regmap): Remove declarations.
18014 (register_addr): Use the_low_target explicitly.
18015 (fetch_register): Likewise.
18016 (usr_fetch_inferior_registers): Likewise.
18017 (usr_store_inferior_registers): Likewise.
18018 * linux-arm-low.c (num_regs): Remove.
18019 (arm_num_regs): Define.
18020 (arm_regmap): Renamed from regmap, made static.
18021 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
18022 made static.
18023 (arm_cannot_store_register): Renamed from cannot_store_register,
18024 made static.
18025 (the_low_target): New.
18026 * linux-i386-low.c (num_regs): Remove.
18027 (i386_num_regs): Define.
18028 (i386_regmap): Renamed from regmap, made static.
18029 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
18030 made static.
18031 (i386_cannot_store_register): Renamed from cannot_store_register,
18032 made static.
18033 (the_low_target): New.
18034 * linux-ia64-low.c (num_regs): Remove.
18035 (ia64_num_regs): Define.
18036 (ia64_regmap): Renamed from regmap, made static.
18037 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
18038 made static.
18039 (ia64_cannot_store_register): Renamed from cannot_store_register,
18040 made static.
18041 (the_low_target): New.
18042 * linux-m68k-low.c (num_regs): Remove.
18043 (m68k_num_regs): Define.
18044 (m68k_regmap): Renamed from regmap, made static.
18045 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
18046 made static.
18047 (m68k_cannot_store_register): Renamed from cannot_store_register,
18048 made static.
18049 (the_low_target): New.
18050 * linux-mips-low.c (num_regs): Remove.
18051 (mips_num_regs): Define.
18052 (mips_regmap): Renamed from regmap, made static.
18053 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
18054 made static.
18055 (mips_cannot_store_register): Renamed from cannot_store_register,
18056 made static.
18057 (the_low_target): New.
18058 * linux-ppc-low.c (num_regs): Remove.
18059 (ppc_num_regs): Define.
18060 (ppc_regmap): Renamed from regmap, made static.
18061 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
18062 made static.
18063 (ppc_cannot_store_register): Renamed from cannot_store_register,
18064 made static.
18065 (the_low_target): New.
18066 * linux-s390-low.c (num_regs): Remove.
18067 (s390_num_regs): Define.
18068 (s390_regmap): Renamed from regmap, made static.
18069 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
18070 made static.
18071 (s390_cannot_store_register): Renamed from cannot_store_register,
18072 made static.
18073 (the_low_target): New.
18074 * linux-sh-low.c (num_regs): Remove.
18075 (sh_num_regs): Define.
18076 (sh_regmap): Renamed from regmap, made static.
18077 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
18078 made static.
18079 (sh_cannot_store_register): Renamed from cannot_store_register,
18080 made static.
18081 (the_low_target): New.
18082 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
18083 (the_low_target): New.
18084
18085 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
18086
18087 * Makefile.in: Add stamp-h target.
18088 * configure.in: Create stamp-h.
18089 * configure: Regenerated.
18090
18091 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
18092
18093 * inferiors.c: New file.
18094 * target.c: New file.
18095 * target.h: New file.
18096 * Makefile.in: Add target.o and inferiors.o. Update
18097 dependencies.
18098 * linux-low.c (inferior_pid): New static variable,
18099 moved from server.c.
18100 (linux_create_inferior): Renamed from create_inferior.
18101 Call add_inferior. Return 0 on success instead of a PID.
18102 (linux_attach): Renamed from myattach.
18103 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
18104 (linux_thread_alive): Renamed from mythread_alive.
18105 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
18106 child dies.
18107 (linux_resume): Renamed from myresume. Add missing ``return 0''.
18108 (regsets_store_inferior_registers): Correct error message.
18109 Add missing ``return 0''.
18110 (linux_fetch_registers): Renamed from fetch_inferior_registers.
18111 (linux_store_registers): Renamed from store_inferior_registers.
18112 (linux_read_memory): Renamed from read_inferior_memory.
18113 (linux_write_memory): Renamed from write_inferior_memory.
18114 (linux_target_ops): New structure.
18115 (initialize_low): Call set_target_ops ().
18116 * remote-utils.c (unhexify): New function.
18117 (hexify): New function.
18118 (input_interrupt): Send signals to ``signal_pid''.
18119 * server.c (inferior_pid): Remove.
18120 (start_inferior): Update create_inferior call.
18121 (attach_inferior): Call add_inferior.
18122 (handle_query): New function.
18123 (main): Call handle_query for `q' packets.
18124 * server.h: Include "target.h". Remove obsolete prototypes.
18125 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
18126
18127 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
18128
18129 * Makefile.in: Add WARN_CFLAGS. Update configury
18130 dependencies.
18131 * configure.in: Check for <string.h>
18132 * configure: Regenerate.
18133 * config.in: Regenerate.
18134 * gdbreplay.c: Include needed system headers.
18135 (remote_open): Remove strchr prototype.
18136 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
18137 * regcache.c (supply_register): Change buf argument to const void *.
18138 (supply_register_by_name): Likewise.
18139 (collect_register): Change buf argument to void *.
18140 (collect_register_by_name): Likewise.
18141 * regcache.h: Add missing prototypes.
18142 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
18143 * server.c (handle_query): New function.
18144 (attached): New static variable, moved out of main.
18145 (main): Quiet longjmp clobber warnings.
18146 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
18147 * utils.c (error): Remove NORETURN.
18148 (fatal): Likewise.
This page took 0.502289 seconds and 4 git commands to generate.