gdbserver: turn target op 'join' 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 join op into a method of
4 process_target.
5
6 * target.h (struct process_stratum_target): Remove the target op.
7 (class process_target): Add the target op.
8 (join_inferior): Update the macro.
9
10 Update the derived classes and callers below.
11
12 * linux-low.cc (linux_target_ops): Update.
13 (linux_join): Turn into ...
14 (linux_process_target::join): ... this.
15 * linux-low.h (class linux_process_target): Update.
16 * lynx-low.cc (lynx_target_ops): Update.
17 (lynx_join): Turn into ...
18 (lynx_process_target::join): ... this.
19 * lynx-low.h (class lynx_process_target): Update.
20 * nto-low.cc (nto_target_ops): Update.
21 (nto_process_target::join): Define.
22 * nto-low.h (class nto_process_target): Update.
23 * win32-low.cc (win32_target_ops): Update.
24 (win32_join): Turn into ...
25 (win32_process_target::join): ... this.
26 * win32-low.h (class win32_process_target): Update.
27
28 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
29
30 Turn process_stratum_target's mourn op into a method of
31 process_target.
32
33 * target.h (struct process_stratum_target): Remove the target op.
34 (class process_target): Add the target op.
35
36 Update the derived classes and callers below.
37
38 * target.cc (target_mourn_inferior): Update.
39 * linux-low.cc (linux_target_ops): Update.
40 (linux_mourn): Turn into ...
41 (linux_process_target::mourn): ... this.
42 (handle_extended_wait): Update.
43 (linux_process_target::kill): Update.
44 (linux_process_target::detach): Update.
45 * linux-low.h (class linux_process_target): Update.
46 * lynx-low.cc (lynx_target_ops): Update.
47 (lynx_mourn): Turn into ...
48 (lynx_process_target::mourn): ... this.
49 * lynx-low.h (class lynx_process_target): Update.
50 * nto-low.cc (nto_target_ops): Update.
51 (nto_mourn): Turn into ...
52 (nto_process_target::mourn): ... this.
53 * nto-low.h (class nto_process_target): Update.
54 * win32-low.cc (win32_target_ops): Update.
55 (win32_mourn): Turn into ...
56 (win32_process_target::mourn): ... this.
57 * win32-low.h (class win32_process_target): Update.
58
59 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
60
61 Turn process_stratum_target's detach op into a method of
62 process_target.
63
64 * target.h (struct process_stratum_target): Remove the target op.
65 (class process_target): Add the target op.
66 (detach_inferior): Update the macro.
67
68 Update the derived classes and callers below.
69
70 * linux-low.cc (linux_target_ops): Update.
71 (linux_detach): Turn into ...
72 (linux_process_target::detach): ... this.
73 * linux-low.h (class linux_process_target): Update.
74 * lynx-low.cc (lynx_target_ops): Update.
75 (lynx_detach): Turn into ...
76 (lynx_process_target::detach): ... this.
77 * lynx-low.h (class lynx_process_target): Update.
78 * nto-low.cc (nto_target_ops): Update.
79 (nto_detach): Turn into ...
80 (nto_process_target::detach): ... this.
81 * nto-low.h (class nto_process_target): Update.
82 * win32-low.cc (win32_target_ops): Update.
83 (win32_detach): Turn into ...
84 (win32_process_target::detach): ... this.
85 * win32-low.h (class win32_process_target): Update.
86
87 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
88
89 Turn process_stratum_target's kill op into a method of
90 process_target.
91
92 * target.h (struct process_stratum_target): Remove the target op.
93 (class process_target): Add the target op.
94
95 Update the derived classes and callers below.
96
97 * target.cc (kill_inferior): Update.
98 * linux-low.cc (linux_target_ops): Update.
99 (linux_kill): Turn into ...
100 (linux_process_target::kill): ... this.
101 * linux-low.h (class linux_process_target): Update.
102 * lynx-low.cc (lynx_target_ops): Update.
103 (lynx_kill): Turn into ...
104 (lynx_process_target::kill): ... this.
105 * lynx-low.h (class lynx_process_target): Update.
106 * nto-low.cc (nto_target_ops): Update.
107 (nto_kill): Turn into ...
108 (nto_process_target::kill): ... this.
109 * nto-low.h (class nto_process_target): Update.
110 * win32-low.cc (win32_target_ops): Update.
111 (win32_kill): Turn into ...
112 (win32_process_target::kill): ... this.
113 * win32-low.h (class win32_process_target): Update.
114
115 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
116
117 Turn process_stratum_target's attach op into a method of
118 process_target.
119
120 * target.h (struct process_stratum_target): Remove the target op.
121 (class process_target): Add the target op.
122 (myattach): Update the macro.
123
124 Update the derived classes and callers below.
125
126 * linux-low.cc (linux_target_ops): Update.
127 (linux_attach): Turn into ...
128 (linux_process_target::attach): ... this.
129 * linux-low.h (class linux_process_target): Update.
130 * lynx-low.cc (lynx_target_ops): Update.
131 (lynx_attach): Turn into ...
132 (lynx_process_target::attach): ... this.
133 * lynx-low.h (class lynx_process_target): Update.
134 * nto-low.cc (nto_target_ops): Update.
135 (nto_attach): Turn into ...
136 (nto_process_target::attach): ... this.
137 * nto-low.h (class nto_process_target): Update.
138 * win32-low.cc (win32_target_ops): Update.
139 (win32_attach): Turn into ...
140 (win32_process_target::attach): ... this.
141 * win32-low.h (class win32_process_target): Update.
142
143 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
144
145 Turn process_stratum_target's post_create_inferior op into a method
146 of process_target.
147
148 * target.h (struct process_stratum_target): Remove the target op.
149 (class process_target): Add the target op.
150 (target_post_create_inferior): Update the macro.
151 * target.cc (process_target::post_create_inferior): Define.
152
153 Update the derived classes and callers below.
154
155 * linux-low.cc (linux_target_ops): Update.
156 (linux_post_create_inferior): Turn into ...
157 (linux_process_target::post_create_inferior): ... this.
158 * linux-low.h (class linux_process_target): Update.
159 * lynx-low.cc (lynx_target_ops): Update.
160 * nto-low.cc (nto_target_ops): Update.
161 * win32-low.cc (win32_target_ops): Update.
162
163 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
164
165 Turn process_stratum_target's create_inferior op into a method of
166 process_target.
167
168 * target.h (struct process_stratum_target): Remove the target op.
169 (class process_target): Add the target op.
170 (create_inferior): Rename the macro to ...
171 (target_create_inferior): ... this.
172
173 Update the derived classes and callers below.
174
175 * server.cc (handle_v_run): Update.
176 (captured_main): Update.
177 (process_serial_event): Update.
178 * linux-low.cc (linux_target_ops): Update.
179 (linux_create_inferior): Turn into ...
180 (linux_process_target::create_inferior): ... this.
181 * linux-low.h (class linux_process_target): Update.
182 * lynx-low.cc (lynx_target_ops): Update.
183 (lynx_create_inferior): Turn into ...
184 (lynx_process_target::create_inferior): ... this.
185 * lynx-low.h (class lynx_process_target): Update.
186 * nto-low.cc (nto_target_ops): Update.
187 (nto_create_inferior): Turn into ...
188 (nto_process_target::create_inferior): ... this.
189 * nto-low.h (class nto_process_target): Update.
190 * win32-low.cc (win32_target_ops): Update.
191 (win32_create_inferior): Turn into ...
192 (win32_process_target::create_inferior): ... this.
193 * win32-low.h (class win32_process_target): Update.
194
195 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
196
197 * target.h (class process_target): New class definition.
198 (struct process_stratum_target) <pt>: New field with type
199 'process_target*'.
200 * linux-low.h (class linux_process_target): Define as a derived
201 class of 'process_target'.
202 * linux-low.cc (linux_target_ops): Add a linux_process_target*
203 as the 'pt' field.
204 * lynx-low.h (class lynx_process_target): Define as a derived
205 class of 'process_target'.
206 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
207 as the 'pt' field.
208 * nto-low.h (class nto_process_target): Define as a derived
209 class of 'process_target'.
210 * nto-low.cc (nto_target_ops): Add an nto_process_target*
211 as the 'pt' field.
212 * win32-low.h (class win32_process_target): Define as a derived
213 class of 'process_target'.
214 * win32-low.cc (win32_target_ops): Add a win32_process_target*
215 as the 'pt' field.
216
217 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
218
219 * configure: Regenerate.
220
221 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
222 Andrew Burgess <andrew.burgess@embecosm.com>
223
224 * linux-riscv-low.cc: New file.
225 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
226 and nat/riscv-linux-tdesc.c.
227 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
228 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
229 Define.
230
231 2020-02-14 Tom Tromey <tom@tromey.com>
232
233 * acinclude.m4: Don't include acx_configure_dir.m4.
234 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
235 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
236 (all, install-only, uninstall, clean-info, clean)
237 (maintainer-clean): Don't recurse.
238 (subdir_do, all-lib): Remove.
239 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
240 (GNULIB_H): Remove.
241 (generated_files): Update.
242 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
243 * configure: Rebuild.
244 * configure.ac: Don't configure gnulib or libiberty.
245 (GNULIB): Update.
246
247 2020-02-14 Eli Zaretskii <eliz@gnu.org>
248
249 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
250 preparing the command line for CreateProcess.
251 (win32_create_inferior): Reflect the program name in debugging
252 output that shows the process and its command line.
253
254 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
255
256 * Makefile.in: Rename source files from .c to .cc.
257 * %.c: Rename to %.cc.
258 * configure.ac: Rename server.c to server.cc.
259 * configure: Re-generate.
260
261 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
262
263 * Makefile.in: Rename gdbsupport source files from .c to .cc.
264
265 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
266
267 * win32-low.c (win32_create_inferior): Set signal_pid.
268
269 2020-02-12 Maciej W. Rozycki <macro@wdc.com>
270 Pedro Alves <palves@redhat.com>
271
272 Skip building gdbserver in a cross-configuration.
273 * configure.srv: Set $gdbserver_host depending on whether $target
274 is $host. Use $gdbserver_host instead of $host.
275
276 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
277
278 * configure: Re-generate.
279
280 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
281
282 * configure: Re-generate.
283
284 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
285
286 * acinclude.m4: Update warning.m4 path.
287
288 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
289
290 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
291 (handle_exception): Set siginfo_er.
292 (win32_xfer_siginfo): New function.
293
294 2020-02-07 Tom Tromey <tom@tromey.com>
295 Pedro Alves <palves@redhat.com>
296
297 * README: Update build documentation.
298 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
299 host, not target.
300 * configure.ac: Update paths.
301 * configure: Rebuild.
302 * acinclude.m4: Update paths.
303 * Makefile.in: Update include paths.
304 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
305 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
306 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
307 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
308 (%-generated.c): Update paths.
309 * Move entire directory from ../gdb/gdbserver.
310
311 2020-01-29 Maciej W. Rozycki <macro@wdc.com>
312
313 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
314
315 2020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
316
317 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
318 assignment instead of srv_linux_obj.
319
320 2020-01-28 Hannes Domani <ssbssa@yahoo.de>
321
322 * server.c (handle_qxfer_libraries): Write segment-address with
323 paddress.
324
325 2020-01-24 Hannes Domani <ssbssa@yahoo.de>
326
327 * Makefile.in (install-strip): New target.
328 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
329 * aclocal.m4: Regenerate.
330 * configure: Regenerate.
331 * configure.ac: Add AM_PROG_INSTALL_STRIP.
332
333 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
334
335 * Makefile.in (SFILES): Adjust paths to point to real files.
336 (OBS): Move waitstatus.o to target/waitstatus.o.
337 (TAGS): Transform paths appropriately.
338 (%.o): Rename to...
339 (nat/%.o): ... this pattern rule.
340 (%.o): Rename to...
341 (target/%.o): ... this pattern rule.
342 * configure.srv: Adjust paths throughout to include nat/ prefix
343 with the revant files.
344 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
345 * configure: Regenerate.
346
347 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
348
349 * Makefile.in (TAGS): Remove config files from the recipe.
350
351 2020-01-14 Tom Tromey <tom@tromey.com>
352
353 * configure: Rebuild.
354 * configure.ac: Remove any checks that were added to common.m4.
355 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
356 lib-link.m4.
357
358 2020-01-14 Tom Tromey <tom@tromey.com>
359
360 * server.h: Include config.h.
361 * gdbreplay.c: Include config.h.
362 * configure: Rebuild.
363 * configure.ac: Don't source common.host.
364 * acinclude.m4: Update path.
365 * Makefile.in (INCSUPPORT): New variable.
366 (INCLUDE_CFLAGS): Add INCSUPPORT.
367 (SFILES): Update paths.
368 (version-generated.c): Update path to create-version.sh.
369 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
370
371 2020-01-14 Tom Tromey <tom@tromey.com>
372
373 * configure.ac (LIBS): Use WIN32APILIBS.
374 (USE_WIN32API): Don't define.
375 * configure: Rebuild.
376
377 2020-01-14 Tom Tromey <tom@tromey.com>
378
379 * configure: Rebuild.
380
381 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
382
383 * Makefile.in (%-generated.c): Remove rule for files from
384 regformats/i386.
385
386 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
387
388 * configure: Re-generate.
389
390 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
391
392 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
393 Define to static.
394 * tracepoint.c (stop_tracing, flush_trace_buffer,
395 about_to_request_buffer_space, get_trace_state_variable_value,
396 set_trace_state_variable_value, gdb_collect): Add declaration.
397
398 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
399
400 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
401 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
402 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
403 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
404 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
405 static.
406
407 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
408
409 * inferiors.c: Include gdbsupport/common-inferior.h.
410
411 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
412
413 * hostio-errno.c: Include hostio.h.
414
415 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
416
417 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
418 prerequisite.
419
420 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
421
422 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
423 * linux-arm-tdesc.h: Include arch/arm.h.
424
425 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
426
427 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
428
429 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
430
431 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
432 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
433
434 2020-01-10 Pedro Alves <palves@redhat.com>
435
436 * fork-child.c (post_fork_inferior): Pass target down to
437 startup_inferior.
438 * inferiors.c (switch_to_thread): Add process_stratum_target
439 parameter.
440 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
441 * nto-low.c (nto_target_ops): Now a process_stratum_target.
442 * linux-low.c (linux_target_ops): Now a process_stratum_target.
443 * remote-utils.c (prepare_resume_reply): Pass the target to
444 switch_to_thread.
445 * target.c (the_target): Now a process_stratum_target.
446 (done_accessing_memory): Pass the target to switch_to_thread.
447 (set_target_ops): Ajust to use process_stratum_target.
448 * target.h (struct target_ops): Rename to ...
449 (struct process_stratum_target): ... this.
450 (the_target, set_target_ops): Adjust.
451 (prepare_to_access_memory): Adjust comment.
452 * win32-low.c (child_xfer_memory): Adjust to use
453 process_stratum_target.
454 (win32_target_ops): Now a process_stratum_target.
455
456 2020-01-06 Eli Zaretskii <eliz@gnu.org>
457 Pedro Alves <palves@redhat.com>
458
459 * win32-low.c (get_child_debug_event): Extract the fatal exception
460 from the exit status and convert to the equivalent Posix signal
461 number.
462 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
463 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
464
465 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
466
467 * Makefile.in: Use INSTALL_PROGRAM_ENV.
468
469 2020-01-01 Joel Brobecker <brobecker@adacore.com>
470
471 * server.c (gdbserver_version): Change copyright year to 2020.
472 * gdbreplay.c (gdbreplay_version): Likewise.
473
474 2019-12-19 Christian Biesinger <cbiesinger@google.com>
475
476 * configure: Regenerate.
477 * configure.ac: Quote variable arguments of test.
478
479 2019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
480
481 * Makefile.in: Fix build with GNU Make 3.81
482
483 2019-12-16 Tom Tromey <tromey@adacore.com>
484
485 * server.c (get_exec_file): Constify result.
486
487 2019-12-10 Christian Biesinger <cbiesinger@google.com>
488
489 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
490 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
491 * config.in: Regenerate.
492 * configure: Regenerate.
493 * configure.ac: Don't check for strerror.
494 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
495 Call safe_strerror instead of strerror.
496 * server.h (strerror): Remove this now-unnecessary declaration.
497 * tracepoint.c (init_named_socket): Call safe_strerror instead of
498 strerror.
499 (gdb_agent_helper_thread): Likewise.
500 * utils.c (perror_with_name): Likewise.
501
502 2019-11-26 Tom Tromey <tom@tromey.com>
503
504 * configure, config.in: Rebuild.
505
506 2019-11-26 Tom Tromey <tom@tromey.com>
507
508 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
509 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
510 gdb_sigmask.
511 * configure, config.in: Rebuild.
512
513 2019-11-26 Tom Tromey <tom@tromey.com>
514
515 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
516 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
517 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
518 * acinclude.m4: Include ax_pthread.m4.
519 * config.in, configure: Rebuild.
520
521 2019-11-26 Christian Biesinger <cbiesinger@google.com>
522
523 * debug.c (debug_set_output): Call safe_strerror instead of
524 strerror.
525 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
526 (linux_kill_one_lwp): Likewise.
527 (linux_detach_one_lwp): Likewise.
528 (linux_wait_for_event_filtered): Likewise.
529 (store_register): Likewise.
530 * lynx-low.c (lynx_attach): Likewise.
531 * mem-break.c (insert_memory_breakpoint): Likewise.
532 (remove_memory_breakpoint): Likewise.
533 (delete_fast_tracepoint_jump): Likewise.
534 (set_fast_tracepoint_jump): Likewise.
535 (uninsert_fast_tracepoint_jumps_at): Likewise.
536 (reinsert_fast_tracepoint_jumps_at): Likewise.
537 * nto-low.c (nto_xfer_memory): Likewise.
538 (nto_resume): Likewise.
539
540 2019-11-20 Luis Machado <luis.machado@linaro.org>
541
542 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
543 instead of register count.
544 * tdesc.c (tdesc_contains_feature): New function.
545 * tdesc.h (tdesc_contains_feature): New prototype.
546
547 2019-11-15 Christian Biesinger <cbiesinger@google.com>
548
549 * Makefile.in: Add safe-strerror.c.
550 * configure: Regenerate.
551 * configure.ac: Don't source common.host.
552
553 2019-11-15 Christian Biesinger <cbiesinger@google.com>
554
555 * config.in: Regenerate.
556 * configure: Regenerate.
557
558 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
559
560 * ax.c (ax_printf): Handle size_t_arg.
561
562 2019-11-06 Christian Biesinger <cbiesinger@google.com>
563
564 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
565 * mi/mi-main.c (output_cores): Likewise.
566 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
567 (linux_xfer_osdata_modules): Likewise.
568 * remote.c (register_remote_support_xml): Likewise.
569 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
570 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
571
572 2019-11-01 Christian Biesinger <cbiesinger@google.com>
573
574 * configure: Regenerate.
575 * configure.ac: Remove check for strerror_r.
576
577 2019-10-31 Christian Biesinger <cbiesinger@google.com>
578
579 * config.in: Regenerate.
580 * configure: Regenerate.
581 * configure.ac: Also check for strerror_r.
582
583 2019-10-31 Christian Biesinger <cbiesinger@google.com>
584
585 * ax.h (debug_agent): Remove duplicate declaration.
586
587 2019-10-26 Tom de Vries <tdevries@suse.de>
588
589 * linux-aarch64-low.c: Fix typos in comments.
590 * linux-arm-low.c: Same.
591 * linux-low.c: Same.
592 * linux-ppc-low.c: Same.
593 * proc-service.c: Same.
594 * regcache.h: Same.
595 * server.c: Same.
596 * tracepoint.c: Same.
597 * win32-low.c: Same.
598
599 2019-10-25 Tom Tromey <tromey@adacore.com>
600
601 * utils.c (xstrdup): Remove.
602
603 2019-10-23 Tom Tromey <tom@tromey.com>
604
605 * configure, config.in: Rebuild.
606
607 2019-10-23 Tom Tromey <tom@tromey.com>
608
609 * configure: Rebuild.
610 * acinclude.m4: Use m4_include, not sinclude.
611
612 2019-10-17 Tom Tromey <tromey@adacore.com>
613
614 * configure: Rebuild.
615 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
616 in AC_CONFIG_FILES invocation.
617 * Makefile.in (stamp-h, Makefile): Use new-style config.status
618 invocation.
619
620 2019-10-16 Christian Biesinger <cbiesinger@google.com>
621
622 * server.c: Include xml-builtin.h.
623 (get_xml_features): Don't declare xml_builtins here.
624
625 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
626
627 * Makefile.in: Remove references to vec-ipa.o.
628
629 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
630
631 * Makefile.in: Remove references to vec.c.
632
633 2019-10-02 Christian Biesinger <cbiesinger@google.com>
634
635 * server.c (server_waiting): Change to bool.
636 (extended_protocol): Likewise.
637 (response_needed): Likewise.
638 (exit_requested): Likewise.
639 (run_once): Likewise.
640 (report_no_resumed): Likewise.
641 (non_stop): Likewise.
642 (disable_packet_vCont): Likewise.
643 (disable_packet_Tthread): Likewise.
644 (disable_packet_qC): Likewise.
645 (disable_packet_qfThreadInfo): Likewise.
646 (handle_general_set): Update.
647 (handle_detach): Update.
648 (handle_monitor_command): Update.
649 (handle_query): Update.
650 (captured_main): Update.
651 (process_serial_event): Update.
652 * server.h (server_waiting): Change to bool.
653 (disable_packet_vCont): Likewise.
654 (disable_packet_Tthread): Likewise.
655 (disable_packet_qC): Likewise.
656 (disable_packet_qfThreadInfo): Likewise.
657 (run_once): Likewise.
658 (non_stop): Likewise.
659 * target.c (target_stop_and_wait): Update.
660
661 2019-10-02 Tom Tromey <tromey@adacore.com>
662
663 * Makefile.in (SFILES): Add common-inferior.c.
664 (OBS): Add common-inferior.o.
665 * server.c (startup_with_shell): Don't define.
666
667 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
668
669 * linux-low.c (linux_low_read_btrace): Update for change to
670 std::vector.
671
672 2019-09-20 Christian Biesinger <cbiesinger@google.com>
673
674 * debug.c (debug_threads): Remove comment in favor of the header.
675 * debug.h (using_threads): Add declaration.
676 (debug_threads): Add comment.
677 * linux-aarch64-low.c: Include debug.h and remove declaration of
678 debug_threads.
679 * nto-low.c: Likewise.
680 * remote-utils.c: Likewise.
681 * thread-db.c: Likewise.
682
683 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
684
685 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
686 and powerpc-cell64l-ipa.o.
687 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
688 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
689 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
690 (spu*-*-*): Remove.
691
692 * spu-low.c: Remove file.
693
694 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
695 (parse_spufs_run): Remove.
696 (ppc_get_pc): Remove Cell/B.E. support.
697 (ppc_set_pc): Likewise.
698 (ppc_breakpoint_at): Likewise.
699 (ppc_arch_setup): Likewise.
700 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
701 tdesc_powerpc_cell32l.
702 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
703 or init_registers_powerpc_cell32l.
704 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
705 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
706 or init_registers_powerpc_cell32l.
707 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
708 (init_registers_powerpc_cell32l): Remove prototype.
709 (init_registers_powerpc_cell64l): Likewise.
710
711 * target.h (struct target_ops): Remove qxfer_spu member.
712 * server.c (handle_qxfer_spu): Remove.
713 (qxfer_packets): Remove entry for "spu".
714 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
715 * linux-low.c (SPUFS_MAGIC): Remove.
716 (spu_enumerate_spu_ids): Remove.
717 (linux_qxfer_spu): Remove.
718 (linux_target_ops): Remove qxfer_spu member.
719 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
720 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
721 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
722
723 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
724
725 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
726 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
727 * config.in: Regenerate.
728 * configure: Regenerate.
729
730 2019-08-15 Tom Tromey <tromey@adacore.com>
731
732 * target.c (target_write_memory): Use gdb::byte_vector.
733
734 2019-08-15 Tom Tromey <tromey@adacore.com>
735
736 * tracepoint.c (write_inferior_data_pointer)
737 (write_inferior_integer, write_inferior_int8)
738 (write_inferior_uinteger, m_tracepoint_action_download)
739 (r_tracepoint_action_download, x_tracepoint_action_download)
740 (l_tracepoint_action_download, clear_inferior_trace_buffer)
741 (download_agent_expr, download_tracepoint_1)
742 (download_trace_state_variables, upload_fast_traceframes): Update.
743 * server.c (gdb_write_memory): Update.
744 * remote-utils.c (relocate_instruction): Update.
745 * proc-service.c (ps_pdwrite): Update.
746 * mem-break.c (remove_memory_breakpoint)
747 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
748 (uninsert_fast_tracepoint_jumps_at)
749 (reinsert_fast_tracepoint_jumps_at): Update.
750 * linux-x86-low.c (append_insns)
751 (i386_install_fast_tracepoint_jump_pad)
752 (amd64_write_goto_address, i386_write_goto_address): Update.
753 * linux-s390-low.c (append_insns, s390_write_goto_address):
754 Update.
755 * linux-ppc-low.c (ppc_relocate_instruction)
756 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
757 (ppc_write_goto_address): Update.
758 * linux-aarch64-low.c (append_insns): Update.
759 * target.h (struct target_ops): Update.
760 (write_inferior_memory): Don't declare.
761 * target.c (target_write_memory): Rename from
762 write_inferior_memory. Remove old target_write_memory.
763
764 2019-08-15 Tom Tromey <tromey@adacore.com>
765
766 * target.c (write_inferior_memory): Use std::vector.
767
768 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
769
770 PR build/24886
771 * configure.ac: Drop enable-libmcheck support.
772 * configure, config.in: Rebuild.
773 * acinclude.m4: Don't include it.
774
775 2019-07-19 Alan Hayward <alan.hayward@arm.com>
776
777 * configure.srv: Remove Arm xml files.
778
779 2019-07-19 Alan Hayward <alan.hayward@arm.com>
780
781 * configure.srv: Add new files. Remove xml generated files.
782 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
783 registers.
784 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
785 * linux-aarch32-tdesc.c: New file.
786 * linux-aarch32-tdesc.h: New file.
787 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
788 * linux-arm-low.c (init_registers_arm, tdesc_arm)
789 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
790 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
791 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
792 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
793 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
794 (arm_read_description): Call arm_linux_read_description.
795 (initialize_low_arch): Don't init registers.
796 * linux-arm-tdesc.c: New file.
797 * linux-arm-tdesc.h: New file.
798
799 2019-07-10 Alan Hayward <alan.hayward@arm.com>
800
801 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
802 Move counter inside for.
803 (arm_read_description): Check ptrace earlier.
804 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
805
806 2019-07-09 Tom Tromey <tom@tromey.com>
807
808 * configure: Rebuild.
809 * configure.ac: Change common to gdbsupport.
810 * acinclude.m4: Change common to gdbsupport.
811 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
812 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
813 common to gdbsupport.
814 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
815 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
816 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
817 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
818 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
819 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
820 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
821 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
822 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
823 common to gdbsupport.
824
825 2019-07-04 Alan Hayward <alan.hayward@arm.com>
826
827 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
828 defines.
829 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
830
831 2019-07-04 Alan Hayward <alan.hayward@arm.com>
832
833 * configure.srv: Remove legacy xml.
834 * linux-aarch64-low.c (initialize_low_arch): Remove
835 initialize_low_tdesc call.
836 * linux-aarch64-tdesc-selftest.c: Remove file.
837 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
838 * linux-x86-low.c (initialize_low_arch): Remove
839 initialize_low_tdesc call.
840 * linux-x86-tdesc-selftest.c: Remove file.
841 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
842
843 2019-06-20 Tom de Vries <tdevries@suse.de>
844
845 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
846 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
847
848 2019-06-19 Tom de Vries <tdevries@suse.de>
849
850 * debug.h (debug_write): Change return type to ssize_t.
851 * debug.c (debug_write): Same.
852
853 2019-06-14 Tom Tromey <tom@tromey.com>
854
855 * configure.ac: Use new path to gnulib.
856 * configure: Rebuild.
857 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
858 to gnulib.
859
860 2019-06-11 Tom Tromey <tom@tromey.com>
861
862 * Makefile.in (SFILES): Add alloc.c.
863 (OBS): Add alloc.o.
864 (IPA_OBJS): Add alloc-ipa.o.
865 (alloc-ipa.o): New target.
866 (%.o: ../%.c): New pattern rule.
867
868 2019-06-10 Tom Tromey <tromey@adacore.com>
869
870 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
871 end warning with a newline.
872 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
873 newline.
874 * thread-db.c (attach_thread): Don't end warning with a newline.
875 (thread_db_notice_clone): Likewise.
876 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
877 newline.
878 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
879 end warning with a newline.
880
881 2019-06-04 Pedro Alves <palves@redhat.com>
882
883 * server.c (captured_main): Use make_unique_xstrdup.
884
885 2019-06-02 Tom Tromey <tom@tromey.com>
886
887 * gdbreplay.c (fromhex): Remove.
888 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
889
890 2019-05-29 Tom Tromey <tromey@adacore.com>
891
892 * configure: Rebuild.
893
894 2019-05-06 Kevin Buettner <kevinb@redhat.com>
895
896 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
897 sign extension code on 32-bit builds.
898
899 2019-05-03 Eli Zaretskii <eliz@gnu.org>
900
901 * remote-utils.c:
902 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
903
904 2019-04-19 Tom Tromey <tom@tromey.com>
905
906 * server.c (struct vstop_notif): Derive from notif_event.
907 <base>: Remove.
908 (queue_stop_reply): Update.
909 (remove_all_on_match_ptid): Change type. Rewrite.
910 (discard_queued_stop_replies): Rewrite.
911 (in_queued_stop_replies_ptid): Change type.
912 (in_queued_stop_replies): Rewrite.
913 (notif_stop): Update.
914 (queue_stop_reply_callback): Update.
915 (captured_main): Don't call initialize_notif.
916 (push_stop_notification): Update.
917 * notif.c (notif_write_event, handle_notif_ack)
918 (notif_event_enque, notif_push): Update.
919 (notif_event_xfree, initialize_notif): Remove.
920 * notif.h (struct notif_event): Include <list>, not
921 "common/queue.h".
922 (struct notif_server) <queue>: Now a std::list.
923 (notif_event_p): Remove typedef.
924 (initialize_notif): Don't declare.
925 (struct notif_event): Add virtual destructor.
926
927 2019-04-17 Alan Hayward <alan.hayward@arm.com>
928
929 * ax.c (ax_vdebug): Call debug_printf.
930 * debug.c (debug_write): New function.
931 * debug.h (debug_write): New declaration.
932 * linux-low.c (sigchld_handler): Call debug_write.
933
934 2019-04-17 Alan Hayward <alan.hayward@arm.com>
935
936 * debug.c (debug_set_output): New function.
937 (debug_vprintf): Send output to debug_file.
938 (debug_flush): Likewise.
939 * debug.h (debug_set_output): New declaration.
940 * server.c (handle_monitor_command): Add debug-file option.
941 (captured_main): Likewise.
942
943 2019-04-17 Alan Hayward <alan.hayward@arm.com>
944
945 * debug.c (remote_debug): Add definition.
946 * debug.h (remote_debug): Add declaration.
947 * hostio.c (remote_debug): Remove declaration.
948 * remote-utils.c (struct ui_file): Likewise.
949 (remote_debug): Likewise.
950 * remote-utils.h (remote_debug): Likewise,
951 * server.c (remote_debug): Remove definition.
952
953 2019-04-10 Kevin Buettner <kevinb@redhat.com>
954
955 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
956 when using a 64-bit gdbserver.
957
958 2019-04-09 Tom Tromey <tromey@adacore.com>
959
960 * linux-low.c (select_event_lwp): Use find_thread_in_random.
961
962 2019-04-08 Tom Tromey <tom@tromey.com>
963
964 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
965 throw.
966 (linux_resume_one_lwp): Likewise.
967
968 2019-04-08 Tom Tromey <tom@tromey.com>
969
970 * gdbreplay.c: Update.
971 * linux-low.c: Update.
972 * server.c: Update.
973
974 2019-04-08 Tom Tromey <tom@tromey.com>
975
976 * server.c: Use C++ exception handling.
977 * linux-low.c: Use C++ exception handling.
978 * gdbreplay.c: Use C++ exception handling.
979
980 2019-04-08 Tom Tromey <tom@tromey.com>
981
982 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
983 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
984 (captured_main, main): Update.
985 * gdbreplay.c (main): Update.
986
987 2019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
988
989 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
990 value in argument pointer, return 1 if the entry is found and 0
991 otherwise. Move comment.
992 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
993 * linux-low.h (linux_get_auxv): Declare.
994 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
995
996 2019-04-05 Tom Tromey <tromey@adacore.com>
997
998 * server.c (gdbserver_usage): Use upper-case for metasyntactic
999 variables.
1000
1001 2019-03-28 Alan Hayward <alan.hayward@arm.com>
1002
1003 * linux-low.c (AT_HWCAP2): Add define if not already included.
1004
1005 2019-03-26 Alan Hayward <alan.hayward@arm.com>
1006
1007 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
1008 (aarch64_arch_setup): Call linux_get_hwcap.
1009 * linux-arm-low.c (arm_get_hwcap): Remove function.
1010 (arm_read_description): Call linux_get_hwcap.
1011 * linux-low.c (linux_get_auxv): New function.
1012 (linux_get_hwcap): Likewise.
1013 (linux_get_hwcap2): Likewise.
1014 * linux-low.h (linux_get_hwcap): New declaration.
1015 (linux_get_hwcap2): Likewise.
1016 * linux-ppc-low.c (ppc_get_auxv): Remove function.
1017 (ppc_arch_setup): Call linux_get_hwcap.
1018 * linux-s390-low.c (s390_get_hwcap): Remove function.
1019 (s390_arch_setup): Call linux_get_hwcap.
1020
1021 2019-03-22 Alan Hayward <alan.hayward@arm.com>
1022 Jiong Wang <jiong.wang@arm.com>
1023
1024 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
1025 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
1026 to fail.
1027 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
1028
1029 2019-03-22 Alan Hayward <alan.hayward@arm.com>
1030 Jiong Wang <jiong.wang@arm.com>
1031
1032 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
1033 (aarch64_get_hwcap): New function.
1034 (aarch64_arch_setup): Read APIA hwcap.
1035
1036 2019-03-22 Alan Hayward <alan.hayward@arm.com>
1037 Jiong Wang <jiong.wang@arm.com>
1038
1039 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
1040 (initialize_low_tracepoint): Likewise.
1041 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
1042 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
1043 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
1044 (aarch64_linux_read_description): Likewise.
1045 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
1046
1047 2019-03-12 John Baldwin <jhb@FreeBSD.org>
1048
1049 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
1050 i386_create_target_description for 'segments' parameter.
1051 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
1052 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
1053 * win32-i386-low.c (i386_arch_setup): Likewise.
1054
1055 2019-03-12 Tom Tromey <tromey@adacore.com>
1056
1057 * linux-low.c (iterate_over_lwps): Update.
1058
1059 2019-03-06 Tom Tromey <tom@tromey.com>
1060
1061 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
1062 (captured_main): Use SCOPE_EXIT.
1063
1064 2019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
1065
1066 * configure.srv: Use '$enable_unittest' instead of '$development'
1067 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
1068 case.
1069
1070 2019-02-27 Tom Tromey <tromey@adacore.com>
1071
1072 * gdbreplay.c (logchar): Handle \r\n.
1073
1074 2019-02-07 Alan Hayward <alan.hayward@arm.com>
1075
1076 * linux-low.c (linux_attach): Add process before lwp.
1077 * server.c (attach_inferior): Check if already attached.
1078
1079 2019-02-07 Tom Tromey <tom@tromey.com>
1080
1081 * x86-tdesc.h: Rename include guard.
1082 * x86-low.h: Add include guard.
1083 * wincecompat.h: Rename include guard.
1084 * win32-low.h: Add include guard.
1085 * utils.h: Rename include guard.
1086 * tracepoint.h: Rename include guard.
1087 * tdesc.h: Rename include guard.
1088 * target.h: Rename include guard.
1089 * server.h: Rename include guard.
1090 * remote-utils.h: Rename include guard.
1091 * regcache.h: Rename include guard.
1092 * nto-low.h: Rename include guard.
1093 * notif.h: Add include guard.
1094 * mem-break.h: Rename include guard.
1095 * lynx-low.h: Add include guard.
1096 * linux-x86-tdesc.h: Add include guard.
1097 * linux-s390-tdesc.h: Add include guard.
1098 * linux-ppc-tdesc-init.h: Add include guard.
1099 * linux-low.h: Add include guard.
1100 * linux-aarch64-tdesc.h: Add include guard.
1101 * linux-aarch32-low.h: Add include guard.
1102 * inferiors.h: Rename include guard.
1103 * i387-fp.h: Rename include guard.
1104 * hostio.h: Rename include guard.
1105 * gdbthread.h: Rename include guard.
1106 * gdb_proc_service.h: Rename include guard.
1107 * event-loop.h: Rename include guard.
1108 * dll.h: Rename include guard.
1109 * debug.h: Rename include guard.
1110 * ax.h: Rename include guard.
1111
1112 2018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
1113
1114 PR gdb/23985
1115 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
1116 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
1117
1118 2019-01-25 Tom Tromey <tom@tromey.com>
1119
1120 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
1121
1122 2019-01-25 Tom Tromey <tom@tromey.com>
1123
1124 * win32-low.c: Fix common/ includes.
1125 * win32-i386-low.c: Fix common/ includes.
1126 * tracepoint.c: Fix common/ includes.
1127 * thread-db.c: Fix common/ includes.
1128 * target.h: Fix common/ includes.
1129 * symbol.c: Fix common/ includes.
1130 * spu-low.c: Fix common/ includes.
1131 * server.h: Fix common/ includes.
1132 * server.c: Fix common/ includes.
1133 * remote-utils.c: Fix common/ includes.
1134 * regcache.h: Fix common/ includes.
1135 * regcache.c: Fix common/ includes.
1136 * nto-x86-low.c: Fix common/ includes.
1137 * notif.h: Fix common/ includes.
1138 * mem-break.h: Fix common/ includes.
1139 * lynx-low.c: Fix common/ includes.
1140 * lynx-i386-low.c: Fix common/ includes.
1141 * linux-x86-tdesc-selftest.c: Fix common/ includes.
1142 * linux-x86-low.c: Fix common/ includes.
1143 * linux-low.c: Fix common/ includes.
1144 * inferiors.h: Fix common/ includes.
1145 * i387-fp.c: Fix common/ includes.
1146 * hostio.c: Fix common/ includes.
1147 * hostio-errno.c: Fix common/ includes.
1148 * gdbthread.h: Fix common/ includes.
1149 * gdbreplay.c: Fix common/ includes.
1150 * fork-child.c: Fix common/ includes.
1151 * event-loop.c: Fix common/ includes.
1152 * ax.c:
1153 (enum gdb_agent_op): Fix common/ includes.
1154
1155 2019-01-21 Tom Tromey <tom@tromey.com>
1156
1157 * tracepoint.c: Fix includes.
1158 * remote-utils.c: Fix includes.
1159 * linux-x86-low.c: Fix includes.
1160
1161 2019-01-01 Joel Brobecker <brobecker@adacore.com>
1162
1163 * gdbreplay.c (gdbreplay_version): Update copyright year in
1164 version message.
1165 * server.c (gdbserver_version): Likewise.
1166
1167 2018-12-05 Alan Hayward <alan.hayward@arm.com>
1168
1169 * linux-low.c (add_lwp): Switch ordering.
1170
1171 2018-11-29 Tom Tromey <tom@tromey.com>
1172
1173 * win32-low.c (win32_join): Take pid, not process.
1174 * target.h (struct target_ops) <join>: Change argument type.
1175 (join_inferior): Change argument name.
1176 * spu-low.c (spu_join): Take pid, not process.
1177 * server.c (handle_detach): Preserve pid before destroying
1178 process.
1179 * lynx-low.c (lynx_join): Take pid, not process.
1180 * linux-low.c (linux_join): Take pid, not process.
1181
1182 2018-11-23 Alan Hayward <alan.hayward@arm.com>
1183
1184 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
1185 (aarch64_cannot_fetch_register): Likewise.
1186 (struct linux_target_ops): Update references.
1187
1188 2018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1189
1190 * linux-ppc-low.c: Include nat/linux-ptrace.h.
1191
1192 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1193
1194 * configure.srv (ipa_ppc_linux_regobj): Add
1195 powerpc-isa207-htm-vsx32l-ipa.o and
1196 powerpc-isa207-htm-vsx64l-ipa.o.
1197 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
1198 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
1199 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
1200 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
1201 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
1202 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
1203 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
1204 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
1205 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
1206 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
1207 (init_registers_powerpc_isa207_htm_vsx32l)
1208 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
1209 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
1210 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
1211 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
1212 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
1213 (ppc_store_tm_ctarregset): New functions.
1214 (ppc_regsets): Add entries for HTM regsets.
1215 (ppc_arch_setup): Set htm in features struct when needed. Set
1216 sizes for the HTM regsets.
1217 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
1218 (initialize_low_arch): Call
1219 init_registers_powerpc_isa207_htm_vsx32l and
1220 init_registers_powerpc_isa207_htm_vsx64l.
1221 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
1222 PPC_TDESC_ISA207_HTM_VSX.
1223 (initialize_low_tracepoint): Call
1224 init_registers_powerpc_isa207_htm_vsx32l and
1225 init_registers_powerpc_isa207_htm_vsx64l.
1226
1227 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1228
1229 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
1230 rs6000/power-linux-pmu.xml to srv_xmlfiles.
1231 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
1232 (ppc_store_pmuregset): New functions.
1233 (ppc_regsets): Add entries for ebb and pmu regsets.
1234 (ppc_arch_setup): Set isa207 in features struct if the ebb and
1235 pmu regsets are available. Set sizes for these regsets.
1236
1237 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1238
1239 * configure.srv (ipa_ppc_linux_regobj): Add
1240 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
1241 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
1242 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
1243 rs6000/powerpc-isa207-vsx32l.xml, and
1244 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
1245 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
1246 <PPC_TDESC_ISA207_VSX>: New enum value.
1247 (init_registers_powerpc_isa207_vsx32l): Declare.
1248 (init_registers_powerpc_isa207_vsx64l): Declare.
1249 * linux-ppc-low.c (ppc_fill_tarregset): New function.
1250 (ppc_store_tarregset): New function.
1251 (ppc_regsets): Add entry for the TAR regset.
1252 (ppc_arch_setup): Set isa207 in features struct when needed. Set
1253 size for the TAR regsets.
1254 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
1255 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
1256 and init_registers_powerpc_isa207_vsx64l.
1257 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
1258 (initialize_low_tracepoint): Call
1259 init_registers_powerpc_isa207_vsx32l and
1260 init_registers_powerpc_isa207_vsx64l.
1261
1262 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1263 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1264
1265 * configure.srv (ipa_ppc_linux_regobj): Add
1266 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
1267 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
1268 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
1269 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
1270 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
1271 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
1272 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
1273 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
1274 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
1275 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
1276 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
1277 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
1278 (ppc_hwcap): Add comment.
1279 (ppc_hwcap2): New global.
1280 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
1281 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
1282 (ppc_regsets): Add entries for the DSCR and PPR regsets.
1283 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
1284 when needed. Set sizes for the the DSCR and PPR regsets.
1285 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
1286 (initialize_low_arch): Call
1287 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
1288 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
1289 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
1290 PPC_TDESC_ISA205_PPR_DSCR_VSX.
1291 (initialize_low_tracepoint): Call
1292 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
1293 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
1294
1295 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1296
1297 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
1298
1299 2018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
1300 Simon Marchi <simark@simark.ca>
1301
1302 * acinclude.m4: Include "../selftest.m4".
1303 * configure: Regenerate.
1304 * configure.ac: Use "GDB_AC_SELFTEST".
1305 * configure.srv: Use "$enable_unittests" instead of
1306 "$development" when checking whether unit tests have been
1307 enabled.
1308 * server.c (captured_main): Update message informing that
1309 selftests have been disabled.
1310
1311 2018-10-04 Tom Tromey <tom@tromey.com>
1312
1313 * configure: Rebuild.
1314
1315 2018-10-04 Tom Tromey <tom@tromey.com>
1316
1317 * server.c (handle_status): Rename inner "thread".
1318 (process_serial_event): Declare "res" in 'm' case.
1319 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
1320 (iterate_over_lwps): Rename inner "thread".
1321 (linux_qxfer_libraries_svr4): Rename inner "len".
1322 * gdbthread.h (find_thread_in_random): Rename inner "thread".
1323
1324 2018-10-01 Gary Benson <gbenson@redhat.com>
1325
1326 * gdb_proc_service.h: Moved common code to
1327 common/gdb_proc_service.h.
1328
1329 2018-10-01 Gary Benson <gbenson@redhat.com>
1330
1331 * gdb_proc_service.h: Synchronize comments and whitespace with
1332 GDB's version of this file.
1333
1334 2018-09-25 Tom Tromey <tom@tromey.com>
1335
1336 * configure: Rebuild.
1337 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
1338
1339 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
1340
1341 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
1342 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
1343 ($(IPA_LIB)): Sort IPA_OBJS.
1344
1345 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
1346
1347 * Makefile.in: Remove references to $(ADD_DEPS).
1348
1349 2018-09-16 Tom Tromey <tom@tromey.com>
1350
1351 * remote-utils.c (remote_open): Use GNU style for metasyntactic
1352 variables.
1353 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
1354 variables.
1355
1356 2018-09-05 Tom Tromey <tom@tromey.com>
1357
1358 * configure: Rebuild.
1359
1360 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
1361
1362 PR build/23399
1363 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
1364
1365 2018-08-27 Tom Tromey <tom@tromey.com>
1366
1367 PR build/23087:
1368 * configure: Rebuild.
1369
1370 2018-08-27 Tom Tromey <tom@tromey.com>
1371
1372 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
1373 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
1374 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
1375 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
1376 (s390x_emit_stack_adjust): Add casts to unsigned char.
1377
1378 2018-08-22 Simon Marchi <simon.marchi@ericsson.com>
1379
1380 PR gdb/23374
1381 PR gdb/23375
1382 * server.h (struct client_state) <disable_randomization>:
1383 Initialize to 1.
1384
1385 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1386
1387 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
1388 variable.
1389 (mips_supply_ptrace_register): Likewise.
1390
1391 2018-07-22 Tom Tromey <tom@tromey.com>
1392
1393 * configure: Rebuild.
1394
1395 2018-07-22 Tom Tromey <tom@tromey.com>
1396
1397 * win32-low.c (win32_create_inferior): Remove unused variables.
1398 * gdbreplay.c (remote_open): Remove unused variable.
1399 * remote-utils.c (remote_prepare): Remove unused variable.
1400 * x86-tdesc.h (X86_TDESC_H): Define.
1401 (amd64_expedite_regs): Define conditionally.
1402 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
1403 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
1404 * remote-utils.c (readchar): Remove unused variable.
1405
1406 2018-07-13 Pedro Alves <palves@redhat.com>
1407
1408 * linux-low.c (linux_kill): Change parameter to process_info
1409 pointer instead of pid. Adjust.
1410 * lynx-low.c (lynx_kill): Likewise.
1411 * nto-low.c (nto_kill): Likewise.
1412 * spu-low.c (spu_kill): Likewise.
1413 * win32-low.c (win32_kill): Likewise.
1414 * server.c (handle_v_kill, kill_inferior_callback)
1415 (detach_or_kill_for_exit): Adjust.
1416 * target.c (kill_inferior): Change parameter to process_info
1417 pointer instead of pid. Adjust.
1418 * target.h (struct target_ops) <kill>: Change parameter to
1419 process_info pointer instead of pid. Adjust all implementations
1420 and callers.
1421 (kill_inferior): Likewise.
1422
1423 2018-07-13 Pedro Alves <palves@redhat.com>
1424
1425 * linux-low.c (linux_detach, linux_join): Change parameter to
1426 process_info pointer instead of pid. Adjust.
1427 * lynx-low.c (lynx_detach, lynx_join): Likewise.
1428 * nto-low.c (nto_detach): Likewise.
1429 * spu-low.c (spu_detach, spu_join): Likewise.
1430 * win32-low.c (win32_detach, win32_join): Likewise.
1431 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
1432 * target.h (struct target_ops) <detach, join>: Change parameter to
1433 process_info pointer instead of pid. Adjust all implementations
1434 and callers.
1435 (detach_inferior, join_inferior): Rename 'pid' parameter to
1436 'proc'.
1437
1438 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
1439 Jan Kratochvil <jan.kratochvil@redhat.com>
1440 Paul Fertser <fercerpav@gmail.com>
1441 Tsutomu Seki <sekiriki@gmail.com>
1442
1443 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
1444 (OBS): Add 'common/netstuff.o'.
1445 (GDBREPLAY_OBS): Likewise.
1446 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
1447 (remote_open): Implement support for IPv6
1448 connections.
1449 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
1450 and 'wspiapi.h'.
1451 (handle_accept_event): Accept connections from IPv6 sources.
1452 (remote_prepare): Handle IPv6-style hostnames; implement
1453 support for IPv6 connections.
1454 (remote_open): Implement support for printing connections from
1455 IPv6 sources.
1456
1457 2018-07-11 Pedro Alves <palves@redhat.com>
1458
1459 PR gdb/23377
1460 * mem-break.c (any_persistent_commands): Add process_info
1461 parameter and use it instead of relying on the current process.
1462 Change return type to bool.
1463 * mem-break.h (any_persistent_commands): Add process_info
1464 parameter and change return type to bool.
1465 * server.c (handle_detach): Remove require_running_or_return call.
1466 Look up the process_info for the process we're about to detach.
1467 If not found, return back error to GDB. Adjust
1468 any_persistent_commands call to pass down a process pointer.
1469
1470 2018-07-11 Pedro Alves <palves@redhat.com>
1471
1472 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
1473 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
1474 instead of collect_register_by_name.
1475 * regcache.c (regcache_raw_get_unsigned_by_name): New.
1476 * regcache.h (regcache_raw_get_unsigned_by_name): New.
1477
1478 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
1479 Pedro Alves <palves@redhat.com>
1480
1481 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
1482
1483 2018-07-03 Tom Tromey <tom@tromey.com>
1484
1485 * linux-low.c: Update.
1486 * lynx-low.c: Update.
1487 * mem-break.c: Update.
1488 * nto-low.c: Update.
1489 * remote-utils.c: Update.
1490 * server.c: Update.
1491 * spu-low.c: Update.
1492 * target.c: Update.
1493 * win32-low.c: Update.
1494
1495 2018-07-03 Tom Tromey <tom@tromey.com>
1496
1497 * server.c: Update.
1498
1499 2018-07-03 Tom Tromey <tom@tromey.com>
1500
1501 * linux-low.c: Update.
1502
1503 2018-07-03 Tom Tromey <tom@tromey.com>
1504
1505 * target.c: Update.
1506
1507 2018-07-03 Tom Tromey <tom@tromey.com>
1508
1509 * linux-low.c: Update.
1510 * linux-mips-low.c: Update.
1511 * lynx-low.c: Update.
1512 * nto-low.c: Update.
1513 * remote-utils.c: Update.
1514 * server.c: Update.
1515 * spu-low.c: Update.
1516 * target.c: Update.
1517 * thread-db.c: Update.
1518
1519 2018-07-03 Tom Tromey <tom@tromey.com>
1520
1521 * linux-low.c: Update.
1522 * linux-mips-low.c: Update.
1523 * lynx-low.c: Update.
1524 * mem-break.c: Update.
1525 * nto-low.c: Update.
1526 * remote-utils.c: Update.
1527 * server.c: Update.
1528 * spu-low.c: Update.
1529 * target.c: Update.
1530 * tracepoint.c: Update.
1531
1532 2018-07-03 Tom Tromey <tom@tromey.com>
1533
1534 * linux-low.c: Update.
1535 * linux-ppc-low.c: Update.
1536 * linux-x86-low.c: Update.
1537 * proc-service.c: Update.
1538 * server.c: Update.
1539 * spu-low.c: Update.
1540 * thread-db.c: Update.
1541 * win32-low.c: Update.
1542
1543 2018-07-03 Tom Tromey <tom@tromey.com>
1544
1545 * linux-low.c: Update.
1546 * lynx-low.c: Update.
1547 * nto-low.c: Update.
1548 * remote-utils.c: Update.
1549 * spu-low.c: Update.
1550 * thread-db.c: Update.
1551 * win32-low.c: Update.
1552
1553 2018-06-29 Joel Brobecker <brobecker@adacore.com>
1554
1555 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
1556 parameter in call to 'amd64_create_target_description'.
1557
1558 2018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1559
1560 * x86-tdesc.h: Remove executable permission flag.
1561
1562 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
1563
1564 * configure.ac: Remove AC_PREREQ, add missing quoting.
1565 * configure: Re-generate.
1566 * config.in: Re-generate.
1567 * aclocal.m4: Re-generate.
1568
1569 2018-06-18 Simon Marchi <simon.marchi@ericsson.com>
1570
1571 * tracepoint.h (current_traceframe): Remove declaration.
1572
1573 2018-06-18 Alan Hayward <alan.hayward@arm.com>
1574
1575 * linux-aarch64-low.c (is_sve_tdesc): New function.
1576 (aarch64_sve_regs_copy_to_regcache): Likewise.
1577 (aarch64_sve_regs_copy_from_regcache): Likewise.
1578 (aarch64_regs_info): Add SVE checks.
1579 (initialize_low_arch): Initialize SVE.
1580
1581 2018-06-18 Alan Hayward <alan.hayward@arm.com>
1582
1583 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
1584
1585 2018-06-11 Alan Hayward <alan.hayward@arm.com>
1586
1587 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
1588 (initialize_low_tracepoint): Likewise
1589 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
1590 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
1591 param.
1592 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
1593 checks.
1594 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
1595
1596 2018-06-11 Alan Hayward <alan.hayward@arm.com>
1597
1598 * server.h (PBUFSIZ): Increase size
1599
1600 2018-06-11 Alan Hayward <alan.hayward@arm.com>
1601
1602 * regcache.c (regcache::raw_compare): New function.
1603 * regcache.h (regcache::raw_compare): New declaration.
1604
1605 2018-06-11 Alan Hayward <alan.hayward@arm.com>
1606
1607 * regcache.c (new_register_cache): Use new.
1608 (free_register_cache): Use delete.
1609 (register_data): Use const.
1610 (supply_register): Move body inside regcache.
1611 (regcache::raw_supply): New override function.
1612 (collect_register): Move body inside regcache.
1613 (regcache::raw_collect): New override function.
1614 (regcache::get_register_status): New override function.
1615 * regcache.h (struct regcache): Inherit from reg_buffer_common.
1616
1617 2018-06-09 Tom Tromey <tom@tromey.com>
1618
1619 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
1620 declare queue.
1621 (event_queue): Use std::queue.
1622 (gdb_event_xfree): Remove.
1623 (initialize_event_loop, process_event, wait_for_event): Update.
1624
1625 2018-06-08 Stan Cox <scox@redhat.com>
1626
1627 * win32-low.c (win32_create_inferior): last_ptid and last_status
1628 moved to client_state.
1629
1630 2018-06-08 Pedro Alves <palves@redhat.com>
1631
1632 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
1633 common/common-exceptions.o, common/common-utils.o,
1634 common/errors.o, common/print-utils.o and utils.o.
1635 * gdbreplay.c: Include "common-defs.h" instead of the two
1636 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
1637 string.h or alloca.h.
1638 (perror_with_name): Delete.
1639 (remote_open): Use xstrdup instead of strdup.
1640 (main): Rename to ...
1641 (captured_main): ... this.
1642 (main): New.
1643
1644 2018-06-08 Tom Tromey <tom@tromey.com>
1645
1646 * linux-low.c (linux_low_read_btrace): Update.
1647
1648 2018-06-04 Stan Cox <scox@redhat.com>
1649
1650 * server.h (struct client_state): New.
1651 * server.c (cont_thread, general_thread, multi_process)
1652 (report_fork_events, report_vfork_events, report_exec_events)
1653 (report_thread_events, swbreak_feature, hwbreak_feature)
1654 (vCont_supported, disable_randomization, pass_signals)
1655 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
1656 Moved to client_state.
1657 * remote-utils.c (remote_debug, noack_mode)
1658 (transport_is_reliable): Moved to client_state.
1659 * tracepoint.c (current_traceframe): Moved to client_state.
1660
1661 Update all callers.
1662 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
1663 linux-low.c, remote-utils.h, target.c: Use client_state.
1664
1665 2018-05-31 Alan Hayward <alan.hayward@arm.com>
1666
1667 * configure.srv: Add new c/h file.
1668
1669 2018-05-31 Alan Hayward <alan.hayward@arm.com>
1670
1671 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
1672 null VQ.
1673
1674 2018-05-25 Maciej W. Rozycki <macro@mips.com>
1675
1676 * gdb.arch/mips-fpregset-core.exp: New test.
1677 * gdb.arch/mips-fpregset-core.c: New test source.
1678
1679 2018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
1680
1681 PR server/23198
1682 * hostio.c (require_int): Do not report overflow for integers
1683 between 0xfffffff and 0x7fffffff.
1684
1685 2018-05-22 Maciej W. Rozycki <macro@mips.com>
1686
1687 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
1688 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
1689 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
1690 functions.
1691 (the_low_target): Wire them.
1692
1693 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
1694
1695 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
1696 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
1697 mode. Call collect_register_by_name with vscr using
1698 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
1699 (ppc_store_vrregset): Add and set vscr_offset variable as in
1700 ppc_fill_vrregset. Call supply_register_by_name with vscr using
1701 vscr_offset.
1702
1703 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
1704
1705 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
1706 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
1707 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
1708
1709 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
1710
1711 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
1712 (ppc_store_vsxregset): Likewise.
1713 (ppc_fill_vrregset): Likewise.
1714 (ppc_store_vrregset): Likewise.
1715 (ppc_fill_evrregset): Likewise.
1716 (ppc_store_evrregset): Likewise.
1717 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
1718 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
1719 needed.
1720
1721 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
1722
1723 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
1724 wordsize of the inferior. Call ppc_linux_target_wordsize.
1725
1726 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
1727
1728 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
1729 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
1730 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
1731 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
1732 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
1733 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
1734 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
1735 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
1736 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
1737 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
1738 (tdesc_powerpc_e500l): Remove.
1739 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
1740 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
1741 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
1742 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
1743 linux-ppc-tdesc.h.
1744 (ppc_arch_setup): Remove target description matching code. Fill a
1745 ppc_linux_features struct and call ppc_linux_match_description
1746 with it.
1747
1748 2018-05-22 Maciej W. Rozycki <macro@mips.com>
1749
1750 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
1751 width of the requested register exceeds the width of the
1752 `ptrace' data type.
1753 (mips_cannot_store_register): Likewise.
1754
1755 2018-05-21 Maciej W. Rozycki <macro@mips.com>
1756
1757 * linux-mips-low.c (mips_fetch_register): New function. Update
1758 preceding comment.
1759 (mips_store_gregset): Supply 0 rather than $restart for $zero.
1760 (the_low_target): Wire `mips_fetch_register'.
1761
1762 2018-05-10 Joel Brobecker <brobecker@adacore.com>
1763
1764 * lynx-i386-low.c (LYNXOS_178): New macro.
1765 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
1766 the layout on LynxOS-178.
1767 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
1768 handle floating point registers that are not supported by
1769 LynxOS-178.
1770
1771 2018-05-10 Tom Tromey <tom@tromey.com>
1772
1773 * configure: Rebuild.
1774
1775 2018-05-10 Joel Brobecker <brobecker@adacore.com>
1776
1777 PR server/23158:
1778 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
1779 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
1780 Use it to set the expedite_regs field in the given tdesc.
1781 * x86-tdesc.h: New file.
1782 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
1783 Adjust following the addition of the new expedite_regs parameter
1784 to init_target_desc.
1785 * linux-tic6x-low.c (tic6x_read_description): Likewise.
1786 * linux-x86-tdesc.c: #include "x86-tdesc.h".
1787 (i386_linux_read_description, amd64_linux_read_description):
1788 Adjust following the addition of the new expedite_regs parameter
1789 to init_target_desc.
1790 * lynx-i386-low.c: #include "x86-tdesc.h".
1791 (lynx_i386_arch_setup): Adjust following the addition of the new
1792 expedite_regs parameter to init_target_desc.
1793 * nto-x86-low.c: #include "x86-tdesc.h".
1794 (nto_x86_arch_setup): Adjust following the addition of the new
1795 expedite_regs parameter to init_target_desc.
1796 * win32-i386-low.c: #include "x86-tdesc.h".
1797 (i386_arch_setup): Adjust following the addition of the new
1798 expedite_regs parameter to init_target_desc.
1799
1800 2018-05-10 Joel Brobecker <brobecker@adacore.com>
1801
1802 PR server/23158:
1803 * win32-low.c (win32_create_inferior): Add call to my_wait
1804 setting last_status global.
1805
1806 2018-05-10 Joel Brobecker <brobecker@adacore.com>
1807
1808 PR server/23158:
1809 * win32-low.c (create_process): Only call gdb_tilde_expand if
1810 inferior_cwd is not NULL.
1811
1812 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
1813
1814 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
1815 registers to the cache if their values have changed.
1816 (i387_xsave_to_cache): Provide default values for x87 control
1817 registers when these features are available, but disabled.
1818 * regcache.c (supply_register_by_name_zeroed): New function.
1819 * regcache.h (supply_register_by_name_zeroed): Declare new
1820 function.
1821
1822 2018-05-07 Tom Tromey <tom@tromey.com>
1823
1824 * configure: Rebuild.
1825
1826 2018-05-04 Tom Tromey <tom@tromey.com>
1827
1828 * configure: Rebuild.
1829
1830 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1831 Pedro Alves <palves@redhat.com>
1832
1833 * linux-aarch64-low.c (aarch64_stopped_data_address):
1834 Likewise.
1835
1836 2018-04-27 Tom Tromey <tom@tromey.com>
1837
1838 * configure: Rebuild.
1839
1840 2018-04-23 Tom Tromey <tom@tromey.com>
1841
1842 * configure: Rebuild.
1843
1844 2018-04-19 Simon Marchi <simon.marchi@ericsson.com>
1845
1846 * Makefile.in (depcomp): Add "..".
1847 (all_deps_files): New and use it.
1848
1849 2018-04-18 Alan Hayward <alan.hayward@arm.com>
1850
1851 * configure.srv (aarch64*-*-linux*): Don't include xml.
1852 (i[34567]86-*-cygwin*): Likewise.
1853 (i[34567]86-*-linux*): Likewise.
1854 (i[34567]86-*-lynxos*): Likewise.
1855 (i[34567]86-*-mingw32ce*): Likewise.
1856 (i[34567]86-*-mingw*): Likewise.
1857 (i[34567]86-*-nto*): Likewise.
1858 (tic6x-*-uclinux): Likewise.
1859 (x86_64-*-linux*): Likewise.
1860 (x86_64-*-mingw*): Likewise.
1861 (x86_64-*-cygwin*): Likewise.
1862
1863 2018-04-18 Alan Hayward <alan.hayward@arm.com>
1864
1865 * tdesc.c: Remove xml parameter.
1866
1867 2018-04-18 Alan Hayward <alan.hayward@arm.com>
1868
1869 * server.c (get_features_xml): Remove cast.
1870 * tdesc.c (void target_desc::accept): Fill in function.
1871 (tdesc_get_features_xml): Remove old xml creation.
1872 (print_xml_feature::visit_pre): Add xml vistor.
1873 * tdesc.h (struct target_desc): Make xmltarget mutable.
1874 (tdesc_get_features_xml): Remove declaration.
1875
1876 2018-04-18 Alan Hayward <alan.hayward@arm.com>
1877
1878 * tdesc.c (tdesc_architecture_name): Add new function.
1879 (tdesc_osabi_name): Likewise.
1880 (tdesc_get_features_xml): Use new functions.
1881
1882 2018-04-18 Alan Hayward <alan.hayward@arm.com>
1883
1884 * tdesc.c (tdesc_create_flags): Remove.
1885 (tdesc_add_flag): Likewise.
1886 (tdesc_named_type): Likewise.
1887 (tdesc_create_union): Likewise.
1888 (tdesc_create_struct): Likewise.
1889 (tdesc_create_vector): Likewise.
1890 (tdesc_add_bitfield): Likewise.
1891 (tdesc_add_field): Likewise.
1892 (tdesc_set_struct_size): Likewise.
1893
1894 2018-04-18 Alan Hayward <alan.hayward@arm.com>
1895
1896 * tdesc.c (~target_desc): Remove implictly deleted items.
1897 (init_target_desc): Iterate all features.
1898 (tdesc_get_features_xml): Use vector.
1899 (tdesc_create_feature): Create feature.
1900 * tdesc.h (tdesc_feature) Remove
1901 (target_desc): Add features.
1902
1903 2018-04-18 Alan Hayward <alan.hayward@arm.com>
1904
1905 * Makefile.in: Add common/tdesc.c
1906 * tdesc.c (init_target_desc): init all reg_defs from register
1907 vector.
1908 (tdesc_create_reg): Create tdesc_reg.
1909 * tdesc.h (tdesc_feature): Add register vector.
1910
1911 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
1912
1913 * tdesc.h (struct target_desc) <features>: Change type to
1914 std::vector<std::string>.
1915 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
1916 changes.
1917 (tdesc_get_features_xml): Likewise.
1918 (tdesc_create_feature): Likewise.
1919
1920 2018-03-26 Alan Hayward <alan.hayward@arm.com>
1921
1922 * regcache.c (find_register_by_number): Return a ref.
1923 (find_regno): Use references.
1924 (register_size): Likewise.
1925 (register_data): Likewise.
1926 * tdesc.c (target_desc::~target_desc): Remove free calls.
1927 (target_desc::operator==): Use std::vector compare.
1928 (init_target_desc): Use reference.
1929 (tdesc_create_reg): Use reg constructors.
1930 * tdesc.h (struct target_desc): Replace pointer with object.
1931
1932 2018-03-23 Alan Hayward <alan.hayward@arm.com>
1933
1934 * regcache.c (find_register_by_number): Make static.
1935 (find_regno): Use find_register_by_number
1936 * regcache.h (struct reg): Remove declaration.
1937
1938 2018-03-23 Alan Hayward <alan.hayward@arm.com>
1939
1940 * tdesc.c (target_desc::~target_desc): Move to here.
1941 (target_desc::operator==): Likewise.
1942 * tdesc.h (target_desc::~target_desc): Move from here.
1943 (target_desc::operator==): Likewise.
1944
1945 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
1946
1947 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
1948
1949 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1950
1951 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
1952 S390_TDESC_GS.
1953 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
1954 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
1955 and init_registers_s390_gs_linux64.
1956
1957 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1958
1959 * linux-s390-low.c (s390_fill_gs): Remove function.
1960 (s390_fill_gsbc): Remove function.
1961 (s390_regsets): Set fill functions for the guarded storage regsets
1962 to NULL.
1963
1964 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1965
1966 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
1967 the word size. Add comment.
1968 (s390_get_wordsize): New function.
1969 (s390_arch_setup): No longer select a temporary tdesc to fetch the
1970 pswm with it. Instead, use s390_get_wordsize to determine the
1971 word size first and derive the correct tdesc from that directly.
1972
1973 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
1974
1975 * Makefile.in: Include silent-rules.mk.
1976 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
1977 (COMPILE): Add ECHO_CXX.
1978 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
1979 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
1980 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
1981 (version-generated.c): Add ECHO_GEN.
1982 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
1983 (IPAGENT_COMPILE): Add ECHO_CXX.
1984 (%-generated.c): Add ECHO_REGDAT.
1985
1986 2018-03-14 Tom Tromey <tom@tromey.com>
1987
1988 PR cli/14977:
1989 * ax.c (ax_printf): Special case for NULL.
1990
1991 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
1992
1993 * linux-low.c (linux_qxfer_libraries_svr4): Use
1994 xml_escape_text_append.
1995
1996 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
1997
1998 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
1999
2000 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
2001
2002 * server.c (handle_general_set): Remove unnecessary xstrdup.
2003
2004 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
2005
2006 * server.c (parse_debug_format_options): Adjust to
2007 delim_string_to_char_ptr_vec changes.
2008 * thread-db.c (thread_db_load_search): Adjust to
2009 dirnames_to_char_ptr_vec changes.
2010
2011 2018-03-01 Markus Metzger <markus.t.metzger@intel.com>
2012
2013 * target.h (target_enable_btrace, target_disable_btrace)
2014 (target_read_btrace, target_read_btrace_conf): Turn macro into
2015 inline function. Throw error if target method is not defined.
2016 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
2017 check for btrace target method. Be prepared to handle exceptions
2018 from btrace target methods.
2019
2020 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
2021
2022 * server.c (captured_main): Change order of error message printed
2023 when the current working directory cannot be found.
2024
2025 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
2026
2027 * server.c: Include "filenames.h" and "pathstuff.h".
2028 (program_name): Delete variable.
2029 (program_path): New anonymous class.
2030 (get_exec_wrapper): Use "program_path" instead of
2031 "program_name".
2032 (handle_v_run): Likewise.
2033 (captured_main): Likewise.
2034 (process_serial_event): Likewise.
2035
2036 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
2037
2038 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
2039 (OBJS): Add "pathstuff.o".
2040 * server.c (current_directory): New global variable.
2041 (captured_main): Initialize "current_directory".
2042
2043 2018-02-26 Alan Hayward <alan.hayward@arm.com>
2044
2045 * tdesc.c: Use common/tdesc.h.
2046 * tdesc.h: Likewise.
2047
2048 2018-02-20 Alan Hayward <alan.hayward@arm.com>
2049 Simon Marchi <simon.marchi@ericsson.com>
2050
2051 * Makefile.in: Switch order of make rules.
2052
2053 2018-02-19 Alan Hayward <alan.hayward@arm.com>
2054
2055 * Makefile.in: Add common directory in build.
2056 * configure.ac: Add common reference.
2057 * configure: Regenerate.
2058
2059 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
2060
2061 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
2062 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
2063 * spu-low.c (spu_target_ops): Likewise.
2064 * win32-low.c (win32_target_ops): Likewise.
2065 * server.c (supported_btrace_packets): Report packets unconditionally.
2066 * target.h (target_ops) <supports_btrace>: Remove.
2067 (target_supports_btrace): Remove.
2068
2069 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
2070
2071 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
2072 (handle_btrace_disable): Change return type to void. Use exceptions
2073 to report errors.
2074 (handle_btrace_general_set): Catch exception and copy message to
2075 return message.
2076
2077 2018-02-08 Tom Tromey <tom@tromey.com>
2078
2079 * linux-low.c (install_software_single_step_breakpoints): Use
2080 make_scoped_restore.
2081 * inferiors.c (make_cleanup_restore_current_thread): Remove.
2082 (do_restore_current_thread_cleanup): Remove.
2083 * gdbthread.h (make_cleanup_restore_current_thread): Don't
2084 declare.
2085
2086 2018-02-08 Tom Tromey <tom@tromey.com>
2087
2088 * mem-break.c (set_raw_breakpoint_at): Use
2089 gdb::unique_xmalloc_ptr.
2090
2091 2018-01-30 Pedro Alves <palves@redhat.com>
2092
2093 PR gdb/13211
2094 * target.c (target_terminal::terminal_state): Rename to ...
2095 (target_terminal::m_terminal_state): ... this.
2096
2097 2018-01-19 James Clarke <jrtc27@jrtc27.com>
2098
2099 * linux-low.c (handle_extended_wait): Surround call to
2100 thread_db_notice_clone with #ifdef USE_THREAD_DB.
2101
2102 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
2103
2104 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
2105 linux_ptrace_attach_fail_reason_string now returning an
2106 std::string.
2107 (linux_attach): Likewise.
2108 * thread-db.c (attach_thread): Likewise.
2109
2110 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
2111
2112 PR gdb/21559
2113 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
2114 checking for fs_base/gs_base fields in struct user_regs_struct.
2115 * configure: Regenerate.
2116
2117 2018-01-16 Yao Qi <yao.qi@linaro.org>
2118
2119 PR gdb/18749
2120 * linux-low.c (fetch_register): Call supply_register instead of
2121 error.
2122
2123 2018-01-08 Yao Qi <yao.qi@linaro.org>
2124 Simon Marchi <simon.marchi@ericsson.com>
2125
2126 * Makefile.in (OBS): Remove selftest.o.
2127 * configure.ac: Set srv_selftest_objs if $development is true.
2128 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
2129 * configure: Re-generated.
2130 * server.c (captured_main): Wrap variable selftest_filter with
2131 GDB_SELF_TEST.
2132
2133 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
2134
2135 * server.c (parse_debug_format_options): Return std::string.
2136 (handle_monitor_command, captured_main): Adjust.
2137
2138 2018-01-05 Pedro Alves <palves@redhat.com>
2139
2140 PR gdb/18653
2141 * server.c (captured_main): Pass quiet=false to
2142 save_original_signals_state.
2143
2144 2018-01-01 Joel Brobecker <brobecker@adacore.com>
2145
2146 * gdbreplay.c (gdbreplay_version): Update copyright year in
2147 version message.
2148 * server.c (gdbserver_version): Likewise.
2149
2150 2017-12-08 Tom Tromey <tom@tromey.com>
2151
2152 * ax.c (ax_printf): Update.
2153
2154 2017-12-07 Yao Qi <yao.qi@linaro.org>
2155
2156 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
2157 aarch64_linux_read_description.
2158 * linux-amd64-ipa.c (idx2mask): New array.
2159 (get_ipa_tdesc): Move idx2mask out.
2160 (initialize_low_tracepoint): Initialize target descriptions.
2161 * linux-i386-ipa.c (idx2mask): New array.
2162 (get_ipa_tdesc): Move idx2mask out.
2163 (initialize_low_tracepoint): Initialize target descriptions.
2164
2165 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
2166
2167 * tdesc.c (struct tdesc_type): Change return type.
2168 (tdesc_add_flag): Change parameter type.
2169 (tdesc_add_bitfield): Likewise.
2170 (tdesc_add_field): Likewise.
2171 (tdesc_set_struct_size): Likewise.
2172
2173 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
2174
2175 * regcache.c (registers_to_string): Remove unused variable.
2176
2177 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2178
2179 * inferiors.c (for_each_inferior_with_data): Remove.
2180 * inferiors.h (for_each_inferior_with_data): Remove.
2181 * server.c (handle_qxfer_threads_worker): Change parameter type.
2182 (handle_qxfer_threads_proper): Use for_each_thread.
2183
2184 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2185
2186 * inferiors.c (for_each_inferior): Remove.
2187 (clear_inferiors): Use for_each_thread.
2188 * inferiors.h (for_each_inferior): Remove.
2189 * linux-low.c (linux_wait_for_event_filtered): Use
2190 for_each_thread.
2191 (linux_stabilize_threads): Likewise.
2192 * regcache.c (regcache_release): Likewise.
2193 * server.c (gdb_wants_all_threads_stopped): Likewise.
2194 (clear_pending_status_callback): Remove.
2195 (handle_status): Use for_each_thread.
2196 (captured_main): Likewise.
2197 * win32-low.c (child_init_thread_list): Likewise.
2198 (win32_clear_inferiors): Likewise.
2199 (fake_breakpoint_event): Likewise.
2200
2201 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2202
2203 * inferiors.h (find_inferior): Remove.
2204 * inferiors.c (find_inferior): Remove.
2205
2206 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2207
2208 * linux-low.c (resume_status_pending_p): Update comment.
2209 (need_step_over_p): Update comment.
2210
2211 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2212
2213 * linux-low.c (proceed_one_lwp): Return void, change parameter
2214 type.
2215 (unsuspend_and_proceed_one_lwp): Likewise.
2216 (proceed_all_lwps): Use for_each_thread.
2217 (unstop_all_lwps): Likewise.
2218
2219 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2220
2221 * linux-low.c (linux_resume_one_thread): Return void, take
2222 parameter directly.
2223 (linux_resume): Use for_each_thread.
2224
2225 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2226
2227 * linux-low.c (send_sigstop_callback): Return void, change
2228 parameter type. Rename to...
2229 (send_sigstop): ... this.
2230 (suspend_and_send_sigstop_callback): Return void, change parameter
2231 type. Rename to...
2232 (suspend_and_send_sigstop): ... this.
2233 (stop_all_lwps): Use for_each_thread.
2234
2235 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2236
2237 * linux-low.c (lwp_running): Return bool, remove unused
2238 argument.
2239 (linux_stabilize_threads): Use find_thread.
2240
2241 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2242
2243 * linux-low.c (select_singlestep_lwp_callback): Remove.
2244 (count_events_callback): Remove.
2245 (select_event_lwp_callback): Remove.
2246 (select_event_lwp): Use find_thread/for_each_thread.
2247
2248 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2249
2250 * linux-low.c (not_stopped_callback): Return bool, take filter
2251 argument directly.
2252 (linux_wait_for_event_filtered): Use find_thread.
2253 (linux_wait_1): Likewise.
2254
2255 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2256
2257 * linux-low.c (same_lwp): Remove.
2258 (find_lwp_pid): Use find_thread.
2259
2260 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2261
2262 * linux-low.c (delete_lwp_callback): Remove.
2263 (linux_mourn): Use for_each_thread.
2264
2265 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2266
2267 * linux-low.c (linux_detach_lwp_callback): Return void, remove
2268 args parameter, don't check for pid.
2269 (linux_detach): Use for_each_thread.
2270
2271 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2272
2273 * linux-low.c (struct counter): Remove.
2274 (second_thread_of_pid_p): Remove.
2275 (last_thread_of_process_p): Use find_thread.
2276
2277 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2278
2279 * inferiors.c (find_inferior_in_random): Remove.
2280 * inferiors.h (find_inferior_in_random): Remove.
2281 * linux-low.c (status_pending_p_callback): Return bool, accept
2282 parameter ptid directly.
2283 (linux_wait_for_event_filtered): Use find_thread_in_random.
2284 (linux_wait_1): Likewise.
2285
2286 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2287
2288 * inferiors.c (find_inferior_id): Remove.
2289 (find_thread_ptid): Move implemention from find_inferior_id to
2290 here.
2291 * inferiors.h (find_inferior_id): Remove.
2292 * server.c (handle_status): Use find_thread_ptid.
2293 (process_serial_event): Likewise.
2294 * thread-db.c (find_one_thread): Likewise.
2295 (thread_db_thread_handle): Likewise.
2296 * win32-low.c (thread_rec): Likewise.
2297 (child_delete_thread): Likewise.
2298 (win32_thread_alive): Likewise.
2299 (get_child_debug_event): Likewise.
2300
2301 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2302
2303 * linux-mips-low.c (update_watch_registers_callback): Return
2304 void, remove pid_p parameter, don't check for pid.
2305 (mips_insert_point, mips_remove_point): Use for_each_thread.
2306
2307 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2308
2309 * lynx.low (lynx_delete_thread_callback): Remove.
2310 (lynx_mourn): Use for_each_thread.
2311
2312 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2313
2314 * regcache.c (regcache_invalidate_one): Remove.
2315 (regcache_invalidate_pid): use for_each_thread.
2316
2317 2017-11-26 Tom Tromey <tom@tromey.com>
2318
2319 * linux-low.c (linux_create_inferior): Update.
2320
2321 2017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
2322
2323 * spu-low.c (spu_create_inferior): Fix typo in argument name.
2324
2325 2017-11-24 Alan Hayward <alan.hayward@arm.com>
2326
2327 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
2328 * linux-aarch64-low.c (initialize_low_arch): Call init func.
2329 * linux-aarch64-tdesc-selftest.c: New file.
2330 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
2331
2332 2017-11-24 Alan Hayward <alan.hayward@arm.com>
2333
2334 * configure.srv: Add new file.
2335 * linux-aarch64-low.c (initialize_low_arch): Call init func.
2336 * linux-aarch64-tdesc-selftest.c: New file.
2337 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
2338
2339 2017-11-24 Alan Hayward <alan.hayward@arm.com>
2340
2341 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
2342 * linux-aarch64-low.c (initialize_low_arch): Remove init.
2343 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
2344
2345 2017-11-24 Alan Hayward <alan.hayward@arm.com>
2346
2347 * configure.srv: Add new files.
2348 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
2349 aarch64_linux_read_description.
2350 * linux-aarch64-low.c (aarch64_linux_read_description):
2351 Merge with aarch64_arch_setup.
2352 (aarch64_arch_setup): Call aarch64_linux_read_description.
2353 * linux-aarch64-tdesc.c: New file.
2354 * linux-aarch64-tdesc.h: New file.
2355
2356 2017-11-24 Yao Qi <yao.qi@linaro.org>
2357
2358 * configure.srv: Set $srv_regobj for tic6x-linux.
2359 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
2360 (tic6x_read_description): Move some code to tic6x_arch_setup.
2361 (tic6x_tdesc_test): New function.
2362 (initialize_low_arch): Call selftests::register_test.
2363
2364 2017-11-22 Yao Qi <yao.qi@linaro.org>
2365
2366 * remote-utils.c (prepare_resume_reply): Use memcpy.
2367
2368 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
2369
2370 * linux-low.c (kill_one_lwp_callback): Return void, take
2371 argument directly, don't filter on pid.
2372 (linux_kill): Use for_each_thread.
2373
2374 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
2375
2376 * linux-low.c (need_step_over_p): Return bool, remove dummy
2377 argument.
2378 (linux_resume, proceed_all_lwps): Use find_thread.
2379
2380 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
2381
2382 * linux-low.c (resume_status_pending_p): Return bool, remove
2383 flag_p argument.
2384 (linux_resume): Use find_thread.
2385
2386 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
2387
2388 * linux-low.c (struct thread_resume_array): Remove.
2389 (linux_set_resume_request): Return void, take arguments
2390 directly.
2391 (linux_resume): Use for_each_thread.
2392
2393 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
2394
2395 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
2396 return bool, remove data argument.
2397 (linux_stabilize_threads): Use find_thread.
2398
2399 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
2400
2401 * linux-low.c (unsuspend_one_lwp): Remove.
2402 (unsuspend_all_lwps): Use for_each_thread, inline code from
2403 unsuspend_one_lwp.
2404
2405 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
2406
2407 * gdbthread.h (find_thread): Add overload with ptid_t filter.
2408 * linux-low.c (struct iterate_over_lwps_args): Remove.
2409 (iterate_over_lwps_filter): Remove.
2410 (iterate_over_lwps): Use find_thread.
2411
2412 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
2413
2414 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
2415 (linux_handle_new_gdb_connection): Use for_each_thread, inline
2416 code from reset_lwp_ptrace_options_callback.
2417
2418 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
2419
2420 * linux-arm-low.c (struct update_registers_data): Remove.
2421 (update_registers_callback): Return void, take arguments
2422 directly, don't check thread's pid.
2423 (arm_insert_point, arm_remove_point): Use for_each_thread.
2424
2425 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
2426
2427 * win32-low.c (continue_one_thread): Return void, take argument
2428 directly.
2429 (child_continue): Use for_each_thread.
2430
2431 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
2432
2433 * win32-i386-low.c (update_debug_registers_callback): Rename
2434 to ...
2435 (update_debug_registers): ... this, return void, remove pid_p arg.
2436 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
2437
2438 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
2439
2440 * inferiors.h (struct process_info): Add constructor, initialize
2441 fields..
2442 <syscalls_to_catch>: Change type to std::vector<int>.
2443 * inferiors.c (add_process): Allocate process_info with new.
2444 (remove_process): Free process_info with delete.
2445 * linux-low.c (handle_extended_wait): Adjust.
2446 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
2447 * server.c (handle_general_set): Adjust.
2448
2449 2017-11-16 Pedro Alves <palves@redhat.com>
2450
2451 * remote-utils.c (remote_close): Block SIGIO signals instead of
2452 uninstalling the SIGIO handler.
2453
2454 2017-11-16 Alan Hayward <alan.hayward@arm.com>
2455
2456 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
2457
2458 2017-11-16 Yao Qi <yao.qi@linaro.org>
2459
2460 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
2461 (tic6x_store_gregset): Likewise.
2462 (tic6x_usrregs_info): Move it up.
2463
2464 2017-11-15 Alan Hayward <alan.hayward@arm.com>
2465
2466 * Makefile.in: Update arch rules.
2467 * configure.srv: Explicitly mark arch/ files.
2468
2469 2017-11-13 Andreas Schwab <schwab@suse.de>
2470
2471 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
2472 function.
2473 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
2474
2475 2017-11-06 Pedro Alves <palves@redhat.com>
2476
2477 * config.in, configure: Regenerate.
2478
2479 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
2480
2481 * target.c (struct thread_search): Remove.
2482 (thread_search_callback): Remove.
2483 (prepare_to_access_memory): Use for_each_thread instead of
2484 find_inferior. Inline code from thread_search_callback.
2485
2486 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
2487
2488 * server.c (struct visit_actioned_threads_data): Remove.
2489 (visit_actioned_threads): Change prototype to take arguments
2490 directly.
2491 (resume): Use find_thread instead of find_inferior.
2492
2493 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
2494
2495 * server.c (queue_stop_reply_callback): Change prototype, return
2496 void.
2497 (find_status_pending_thread_callback): Remove.
2498 (handle_status): Replace find_inferior with find_thread and
2499 for_each_thread.
2500
2501 2017-10-25 Alan Hayward <alan.hayward@arm.com>
2502
2503 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
2504 with REGNO.
2505 (aarch64_store_gregset): Likewise.
2506 (aarch64_fill_fpregset): Likewise.
2507 (aarch64_store_fpregset): Likewise.
2508
2509 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
2510
2511 * gdbthread.h (find_thread, for_each_thread): New functions.
2512 * inferiors.c (thread_of_pid): Remove.
2513 (find_any_thread_of_pid): Use find_thread.
2514 * linux-low.c (num_lwps): Use for_each_thread.
2515
2516 2017-10-17 Yao Qi <yao.qi@linaro.org>
2517
2518 * Makefile.in: Remove one rule.
2519 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
2520
2521 2017-10-17 Yao Qi <yao.qi@linaro.org>
2522
2523 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
2524 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
2525
2526 2017-10-17 Yao Qi <yao.qi@linaro.org>
2527
2528 * configure.srv: Rename arm.o with arch/arm.o.
2529
2530 2017-10-17 Yao Qi <yao.qi@linaro.org>
2531
2532 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
2533 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
2534 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
2535 (arch-i386.o, arch-amd64.o): Remove rules.
2536 (arch/%.o): New rule.
2537 Update POSTCOMPILE and COMPILE.pre.
2538 * configure.ac: Invoke AC_CONFIG_COMMANDS.
2539 * configure: Re-generated.
2540 * configure.srv: Replace arch-i386.o with arch/i386.o.
2541 Replace arch-amd64.o with arch/amd64.o.
2542
2543 2017-10-16 Yao Qi <yao.qi@linaro.org>
2544
2545 * configure: Regenerated.
2546
2547 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
2548
2549 * inferiors.h: (struct inferior_list): Remove.
2550 (struct inferior_list_entry); Remove.
2551 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
2552 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
2553 get_first_inferior): Remove.
2554 (for_each_inferior, for_each_inferior_with_data, find_inferior,
2555 find_inferior_id, find_inferior_in_random): Change signature.
2556 * inferiors.c (all_threads): Change type to
2557 std::list<thread_info *>.
2558 (get_thread): Remove macro.
2559 (find_inferior, find_inferior_id): Change signature, implement
2560 using find_thread.
2561 (find_inferior_in_random): Change signature, implement using
2562 find_thread_in_random.
2563 (for_each_inferior, for_each_inferior_with_data): Change
2564 signature, implement using for_each_thread.
2565 (add_inferior_to_list, remove_inferior): Remove.
2566 (add_thread, get_first_thread, thread_of_pid,
2567 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
2568 (get_first_inferior, one_inferior_p, clear_inferior_list):
2569 Remove.
2570 (clear_inferiors, get_thread_process): Update.
2571 * gdbthread.h: Include <list>.
2572 (struct thread_info) <entry>: Remove field.
2573 <id>: New field.
2574 (all_threads): Change type to std::list<thread_info *>.
2575 (get_first_inferior): Add doc.
2576 (find_thread, for_each_thread, find_thread_in_random): New
2577 functions.
2578 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
2579 * linux-arm-low.c (update_registers_callback): Update.
2580 * linux-low.c (second_thread_of_pid_p): Update.
2581 (kill_one_lwp_callback, linux_detach_lwp_callback,
2582 delete_lwp_callback, status_pending_p_callback, same_lwp,
2583 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
2584 iterate_over_lwps, not_stopped_callback,
2585 resume_stopped_resumed_lwps, count_events_callback,
2586 select_singlestep_lwp_callback, select_event_lwp_callback,
2587 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
2588 suspend_and_send_sigstop_callback, wait_for_sigstop,
2589 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
2590 lwp_running, linux_set_resume_request, resume_status_pending_p,
2591 need_step_over_p, start_step_over, linux_resume_one_thread,
2592 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
2593 reset_lwp_ptrace_options_callback): Update.
2594 * linux-mips-low.c (update_watch_registers_callback): Update.
2595 * regcache.c (regcache_invalidate_one, regcache_invalidate):
2596 Update.
2597 (free_register_cache_thread_one): Remove.
2598 (regcache_release): Update.
2599 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
2600 handle_qxfer_threads_worker): Update.
2601 (handle_query): Update, use list iterator.
2602 (visit_actioned_threads, handle_pending_status,
2603 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
2604 clear_pending_status_callback, set_pending_status_callback,
2605 find_status_pending_thread_callback, handle_status,
2606 process_serial_event): Update.
2607 * target.c (thread_search_callback): Update.
2608 * thread-db.c (thread_db_get_tls_address): Update.
2609 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
2610 Update.
2611 * win32-i386-low.c (update_debug_registers_callback): Update.
2612 * win32-low.c (delete_thread_info, child_delete_thread,
2613 continue_one_thread, suspend_one_thread,
2614 get_child_debug_event): Adjust.
2615
2616 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
2617
2618 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
2619 * inferiors.h: Include <list>.
2620 (struct process_info) <entry>: Remove field.
2621 <pid>: New field.
2622 (pid_of): Change macro to function.
2623 (ptid_of, lwpid_of): Remove macro.
2624 (all_processes): Change type to std::list<process_info *>.
2625 (ALL_PROCESSES): Remove macro.
2626 (for_each_process, find_process): New function.
2627 * inferiors.c (all_processes): Change type to
2628 std::list<process_info *>.
2629 (find_thread_process): Adjust.
2630 (add_process): Likewise.
2631 (remove_process): Likewise.
2632 (find_process_pid): Likewise.
2633 (get_first_process): Likewise.
2634 (started_inferior_callback): Remove.
2635 (have_started_inferiors_p): Adjust.
2636 (attached_inferior_callback): Remove.
2637 (have_attached_inferiors_p): Adjust.
2638 * linux-low.c (check_zombie_leaders): Likewise.
2639 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
2640 (x86_linux_update_xmltarget): Adjust.
2641 * server.c (handle_query): Likewise.
2642 (gdb_reattached_process): Remove.
2643 (handle_status): Adjust.
2644 (kill_inferior_callback): Likewise.
2645 (detach_or_kill_inferior): Remove.
2646 (print_started_pid): Likewise.
2647 (print_attached_pid): Likewise.
2648 (detach_or_kill_for_exit): Update.
2649 (process_serial_event): Likewise.
2650 * linux-arm-low.c (arm_new_fork): Likewise.
2651
2652 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
2653
2654 * dll.h: Include <list>.
2655 (struct dll_info): Add constructor.
2656 <entry>: Remove field.
2657 (all_dlls): Change type to std::list<dll_info>.
2658 * dll.c: Include <algorithm>.
2659 (get_dll): Remove macro.
2660 (all_dlls): Change type to std::list<dll_info *>.
2661 (free_one_dll): Remove.
2662 (match_dll): Likewise.
2663 (loaded_dll): Adjust.
2664 (unloaded_dll): Adjust to all_dlls type change, use
2665 std::find_if. Inline code from match_dll.
2666 (clear_dlls): Adjust to all_dlls type change.
2667 * server.c (emit_dll_description): Remove.
2668 (handle_qxfer_libraries): Adjust to all_dlls type change,
2669 integrate emit_dll_description's functionality.
2670
2671 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
2672
2673 * linux-low.h (struct linux_target_ops) <delete_process>: New
2674 field.
2675 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
2676 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
2677 (struct linux_target_ops): Add delete_process callback.
2678 * linux-arm-low.c (arm_delete_process): New.
2679 (struct linux_target_ops): Add delete_process callback.
2680 * linux-bfin-low.c (struct linux_target_ops): Likewise.
2681 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
2682 * linux-m32r-low.c (struct linux_target_ops): Likewise.
2683 * linux-mips-low.c (mips_linux_delete_process): New.
2684 (struct linux_target_ops): Add delete_process callback.
2685 * linux-ppc-low.c (struct linux_target_ops): Likewise.
2686 * linux-s390-low.c (struct linux_target_ops): Likewise.
2687 * linux-sh-low.c (struct linux_target_ops): Likewise.
2688 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
2689 * linux-tile-low.c (struct linux_target_ops): Likewise.
2690 * linux-x86-low.c (x86_linux_delete_process): New.
2691 (struct linux_target_ops): Add delete_process callback.
2692 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
2693
2694 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
2695
2696 * linux-aarch64-low.c (the_low_target): Add thread delete
2697 callback.
2698 * linux-arm-low.c (arm_delete_thread): New function.
2699 (the_low_target): Add thread delete callback.
2700 * linux-bfin-low.c (the_low_target): Likewise.
2701 * linux-crisv32-low.c (the_low_target): Likewise.
2702 * linux-low.c (delete_lwp): Invoke delete_thread callback if
2703 set.
2704 * linux-low.h (struct linux_target_ops) <delete_thread>: New
2705 field.
2706 * linux-m32r-low.c (the_low_target): Add thread delete callback.
2707 * linux-mips-low.c (mips_linux_delete_thread): New function.
2708 (the_low_target): Add thread delete callback.
2709 * linux-ppc-low.c (the_low_target): Likewise.
2710 * linux-s390-low.c (the_low_target): Likewise.
2711 * linux-sh-low.c (the_low_target): Likewise.
2712 * linux-tic6x-low.c (the_low_target): Likewise.
2713 * linux-tile-low.c (the_low_target): Likewise.
2714 * linux-x86-low.c (the_low_target): Likewise.
2715 * linux-xtensa-low.c (the_low_target): Likewise.
2716
2717 2017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
2718
2719 * win32-low.c: Include "common-inferior.h".
2720
2721 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
2722
2723 * inferiors.c (set_inferior_cwd): New function.
2724 * server.c (handle_general_set): Handle QSetWorkingDir packet.
2725 (handle_query): Inform that QSetWorkingDir is supported.
2726 * win32-low.c (create_process): Pass the inferior's cwd to
2727 CreateProcess.
2728
2729 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
2730
2731 * inferiors.c (current_inferior_cwd): New global variable.
2732 (get_inferior_cwd): New function.
2733 * inferiors.h (struct process_info) <cwd>: New field.
2734
2735 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
2736
2737 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
2738 (OBS): Add gdb_tilde_expand.o.
2739
2740 2017-10-02 Simon Marchi <simon.marchi@ericsson.com>
2741
2742 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
2743 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
2744
2745 2017-09-29 Pedro Alves <palves@redhat.com>
2746
2747 * ax.c (gdb_parse_agent_expr): Constify.
2748 * ax.h (gdb_parse_agent_expr): Constify.
2749 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
2750 Constify.
2751 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
2752 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
2753 * remote-utils.h (read_ptid): Constify.
2754 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
2755 (process_point_options, process_serial_event): Constify.
2756 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
2757 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
2758 (cmd_qtbuffer): Constify.
2759
2760 2017-09-29 Pedro Alves <palves@redhat.com>
2761
2762 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
2763 fails.
2764
2765 2017-09-29 Pedro Alves <palves@redhat.com>
2766
2767 * linux-low.c (handle_extended_wait): Pass parent thread instead
2768 of process to thread_db_notice_clone.
2769 * linux-low.h (thread_db_notice_clone): Replace parent process
2770 parameter with parent thread parameter.
2771 * thread-db.c (find_one_thread): Add comment.
2772 (thread_db_notice_clone): Replace parent process parameter with
2773 parent thread parameter. Temporarily switch to the parent thread.
2774
2775 2017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
2776
2777 * gdbthread.h: Include "common-gdbthread.h".
2778 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
2779 "if" when validating the ptid.
2780 * remote-utils.c: Include "gdbthread.h".
2781 (prepare_resume_reply): Use "switch_to_thread".
2782 * target.c (done_accessing_memory): Likewise.
2783
2784 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
2785
2786 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
2787 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
2788 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
2789 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
2790 s390x-gs-linux64-ipa.o to ipa_obj.
2791 * linux-s390-low.c (HWCAP_S390_GS): New define.
2792 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
2793 New functions.
2794 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
2795 (s390_arch_setup): Check for guarded-storage support and choose
2796 appropriate tdesc.
2797 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
2798 init_registers_s390x_gs_linux64.
2799 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
2800 enum value.
2801 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
2802 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
2803
2804 2017-09-22 Simon Marchi <simon.marchi@ericsson.com>
2805
2806 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
2807
2808 2017-09-21 Kevin Buettner <kevinb@redhat.com>
2809
2810 * linux-low.h (struct lwp_info): Add new field, thread_handle.
2811 (thread_db_thread_handle): Declare.
2812 * linux-low.c (linux_target_ops): Initialize thread_handle.
2813 * server.c (handle_qxfer_threads_worker): Add support for
2814 "handle" attribute.
2815 * target.h (struct target_ops): Add new function pointer,
2816 thread_handle.
2817 (target_thread_handle): Define.
2818 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
2819 field in lwp.
2820 (thread_db_thread_handle): New function.
2821
2822 2017-09-21 Kevin Buettner <kevinb@redhat.com>
2823
2824 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
2825 * linux-low.h (thread_db_notice_clone): Declare.
2826 * thread-db.c (thread_db_notice_clone): New function.
2827
2828 2017-09-21 Pedro Alves <palves@redhat.com>
2829
2830 * server.c (gdb_read_memory, handle_status, process_serial_event)
2831 (handle_serial_event, handle_target_event): Adjust to
2832 set_desired_thread prototype change.
2833 * target.c (set_desired_thread): Remove 'use_general' parameter
2834 and adjust.
2835 * target.h (set_desired_thread): Remove 'use_general' parameter.
2836
2837 2017-09-20 Tom Tromey <tom@tromey.com>
2838
2839 * target.c (target_terminal::terminal_state): Define.
2840 (target_terminal::init): Rename from target_terminal_init.
2841 (target_terminal::inferior): Rename from
2842 target_terminal_inferior.
2843 (target_terminal::ours): Rename from target_terminal_ours.
2844 (target_terminal::ours_for_output, target_terminal::info): New.
2845
2846 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
2847
2848 * server.c (accumulate_file_name_length): Remove.
2849 (emit_dll_description): Adjust to std::string change.
2850 (handle_qxfer_libraries): Use std::string to hold document.
2851
2852 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
2853
2854 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
2855 return type of xml_escape_text.
2856 * server.c (emit_dll_description): Likewise.
2857
2858 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
2859
2860 * server.c (captured_main): Accept argument for --selftest.
2861 Update run_tests call.
2862 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
2863 when registering selftests.
2864
2865 2017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2866
2867 * regcache.c (get_thread_regcache): Update code to use "std::vector"
2868 instead of "VEC" for "target_desc.reg_defs".
2869 (regcache_cpy): Likewise.
2870 (registers_to_string): Likewise.
2871 (registers_from_string): Likewise.
2872 (find_regno): Likewise.
2873 (supply_regblock): Likewise.
2874 (regcache_raw_read_unsigned): Likewise.
2875 * tdesc.c (init_target_desc): Likewise.
2876 (tdesc_create_reg): Likewise.
2877 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
2878 (struct target_desc) <reg_defs>: Convert to "std::vector".
2879 (target_desc): Do not initialize "reg_defs".
2880 (~target_desc): Update code to use "std::vector" instead of "VEC"
2881 for "target_desc.reg_defs".
2882 (operator==): Likewise.
2883
2884 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
2885
2886 * inferiors.h (thread_to_gdb_id): Remove.
2887 * inferiors.c (thread_to_gdb_id): Remove.
2888 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
2889 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
2890 lynx_store_registers, lynx_read_memory, lynx_write_memory):
2891 Likewise.
2892 * nto-low.c (nto_fetch_registers, nto_store_registers,
2893 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
2894
2895 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
2896
2897 * inferiors.h (gdb_id_to_thread_id): Remove.
2898 * inferiors.c (gdb_id_to_thread_id): Remove.
2899 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
2900 removal. Move pid declaration closer to where it's used.
2901
2902 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
2903
2904 * server.c (handle_detach): New function.
2905 (process_serial_event): Move code out, call handle_detach.
2906
2907 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
2908
2909 * server.c (require_running): Rename to ...
2910 (require_running_or_return): ... this ...
2911 (require_running_or_break): ... and this.
2912 (handle_query, process_serial_event): Adjust.
2913
2914 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
2915
2916 * linux-low.c (linux_set_resume_request): Remove unused
2917 variables.
2918
2919 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
2920
2921 * server.c (first_thread_of): Remove.
2922 (process_serial_event): Replace usage of first_thread_of with
2923 find_any_thread_of_pid.
2924 * tracepoint.c (same_process_p): Remove.
2925 (gdb_agent_about_to_close): Replace usage of same_process_p with
2926 find_any_thread_of_pid.
2927 * linux-x86-low.c (same_process_callback): Remove.
2928 (x86_arch_setup_process_callback): Replace usage of
2929 same_process_callback with find_any_thread_of_pid.
2930 * thread-db.c (any_thread_of): Remove.
2931 (switch_to_process): Replace usage of any_thread_of with
2932 find_any_thread_of_pid.
2933 * inferiors.c (thread_pid_matches_callback): Remove.
2934 (find_thread_process): Adjust to use find_any_thread_of_pid.
2935
2936 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
2937
2938 * regcache.c (get_thread_regcache): Guard calls to "memset"
2939 with "!VEC_empty".
2940
2941 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
2942
2943 * linux-low.c (handle_extended_wait): Use
2944 "allocate_target_description" instead of "XNEW".
2945 * linux-x86-low.c (initialize_low_arch): Likewise.
2946
2947 2017-09-05 Yao Qi <yao.qi@linaro.org>
2948
2949 * configure.srv (srv_i386_regobj): Remove.
2950 (srv_amd64_regobj): Remove.
2951 (srv_regobj): Set it to "" for x86 non-linux targets.
2952 * linux-x86-tdesc.c (i386_linux_read_description):
2953 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
2954 (init_registers_i386): Remove the declaration.
2955 (tdesc_i386): Remove the declaration.
2956 (lynx_i386_arch_setup): Call i386_create_target_description.
2957 * nto-x86-low.c: Likewise.
2958 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
2959 [!__x86_64__]: include arch/i386.h.
2960 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
2961
2962 2017-09-05 Yao Qi <yao.qi@linaro.org>
2963
2964 * configure.srv (srv_amd64_linux_xmlfiles): Remove
2965 i386/amd64-XXX-linux from it.
2966
2967 2017-09-05 Yao Qi <yao.qi@linaro.org>
2968
2969 * configure.srv: Empty srv_amd64_linux_regobj if $development is
2970 false.
2971 (ipa_amd64_linux_regobj): Remove.
2972 (ipa_x32_linux_regobj): Remove.
2973
2974 2017-09-05 Yao Qi <yao.qi@linaro.org>
2975
2976 * Makefile.in (arch-amd64.o): New rule.
2977 * configure.srv: Append arch-amd64.o.
2978 * linux-amd64-ipa.c: Include common/x86-xstate.h.
2979 (get_ipa_tdesc): Call amd64_linux_read_description.
2980 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
2981 and init_registers_amd64_XXX.
2982 * linux-x86-low.c (x86_linux_read_description): Call
2983 amd64_linux_read_description.
2984 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
2985 (initialize_low_arch): Don't call init_registers_x32_XXX and
2986 init_registers_amd64_XXX.
2987 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
2988 and tdesc_amd64_XXX.
2989 [__x86_64__] (amd64_tdesc_test): New function.
2990 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
2991 and init_registers_amd64_XXX.
2992 * linux-x86-tdesc.c: Include arch/amd64.h.
2993 (xcr0_to_tdesc_idx): New function.
2994 (i386_linux_read_description): New function.
2995 (amd64_get_ipa_tdesc_idx): New function.
2996 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
2997 (amd64_get_ipa_tdesc): Declare.
2998
2999 2017-09-05 Yao Qi <yao.qi@linaro.org>
3000
3001 * configure.srv (srv_i386_linux_xmlfiles): Remove
3002 i386/i386-XXX-linux.xml from it.
3003
3004 2017-09-05 Yao Qi <yao.qi@linaro.org>
3005
3006 * configure.srv: Set srv_i386_linux_regobj empty if $development
3007 is false.
3008 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
3009 initialize_low_tdesc.
3010 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
3011 with #if initialize_low_tdesc.
3012 * linux-x86-tdesc-selftest.c: New file.
3013 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
3014
3015 2017-09-05 Yao Qi <yao.qi@linaro.org>
3016
3017 * Makefile.in (arch-i386.o): New rule.
3018 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
3019 (x86_64-*-linux*): Likewise.
3020 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
3021 include arch/i386.h.
3022 (i386_linux_read_description): Remove code and call
3023 i386_create_target_description.
3024 * tdesc.c (allocate_target_description): New function.
3025 * tdesc.h (set_tdesc_architecture): Remove declaration.
3026 (set_tdesc_osabi): Likewise.
3027
3028 2017-09-05 Yao Qi <yao.qi@linaro.org>
3029
3030 * linux-x86-tdesc.c: Don't include <inttypes.h>.
3031 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
3032 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
3033 .xmltarget.
3034 * server.c (get_features_xml): Call tdesc_get_features_xml.
3035 * tdesc.c (set_tdesc_architecture): New function.
3036 (set_tdesc_osabi): New function.
3037 (tdesc_get_features_xml): New function.
3038 (tdesc_create_feature): Add an argument.
3039 * tdesc.h (struct target_desc) <features>: New field.
3040 <arch, osabi>: New field.
3041 (~target_desc): xfree features, arch, and osabi.
3042 (target_desc::oerator==): Don't compare .xmltarget.
3043 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
3044 (set_tdesc_osabi): Likewise.
3045 (tdesc_get_features_xml): Likewise.
3046
3047 2017-09-05 Yao Qi <yao.qi@linaro.org>
3048
3049 * linux-x86-tdesc.c: Include selftest.h.
3050 (i386_tdesc_test): New function.
3051 (initialize_low_tdesc): Call selftests::register_test.
3052 * tdesc.h: Include regdef.h.
3053 (target_desc): Override operator == and !=.
3054
3055 2017-09-05 Yao Qi <yao.qi@linaro.org>
3056
3057 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
3058 (ipa_obj): Likewise.
3059 * linux-i386-ipa.c: Include common/x86-xstate.h
3060 (get_ipa_tdesc): Call i386_linux_read_description.
3061 (initialize_low_tracepoint): Don't call init_registers_XXX
3062 functions, call initialize_low_tdesc instead.
3063 * linux-x86-low.c (x86_linux_read_description): Call
3064 i386_linux_read_description.
3065 (initialize_low_arch): Don't call init_registers_i386_XXX
3066 functions, call initialize_low_tdesc.
3067 * linux-x86-tdesc.c: New file.
3068 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
3069 (i386_get_ipa_tdesc_idx): Declare.
3070 (i386_get_ipa_tdesc): Declare.
3071 (initialize_low_tdesc): Declare.
3072
3073 2017-09-05 Yao Qi <yao.qi@linaro.org>
3074
3075 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
3076 instead of 0.
3077
3078 2017-09-05 Yao Qi <yao.qi@linaro.org>
3079
3080 * Makefile.in (IPA_OBJS): Add vec-ipa.o
3081 * regcache.c (get_thread_regcache): Use VEC_length.
3082 (init_register_cache): Likewise.
3083 (regcache_cpy): Likewise.
3084 (registers_to_string): Iterate reg_defs via VEC_iterate.
3085 (find_regno): Likewise.
3086 (find_register_by_number): Use VEC_index.
3087 (register_size): Call find_register_by_number.
3088 (register_data): Call find_register_by_number.
3089 (supply_regblock): Use VEC_length.
3090 (regcache_raw_read_unsigned): Likewise.
3091 * tdesc.c (init_target_desc): Iterate reg_defs via
3092 VEC_iterate.
3093 (default_description): Update initializer.
3094 (copy_target_description): Don't update field num_registers.
3095 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
3096 <num_registers>: Remove.
3097
3098 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
3099
3100 * Makefile.in (.SECONDARY): Define target.
3101
3102 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
3103
3104 * linux-low.c (linux_wait_1): Adjust.
3105 * server.c (queue_stop_reply_callback): Adjust.
3106
3107 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
3108
3109 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
3110 QEnvironmentUnset and QEnvironmentReset packets.
3111 (handle_query): Inform remote that QEnvironmentHexEncoded,
3112 QEnvironmentUnset and QEnvironmentReset are supported.
3113
3114 2017-08-25 Simon Marchi <simon.marchi@ericsson.com>
3115
3116 * inferiors.h (inferior_target_data): Rename to ...
3117 (thread_target_data): ... this.
3118 (inferior_regcache_data): Rename to ...
3119 (thread_regcache_data): ... this.
3120 (set_inferior_regcache_data): Rename to ...
3121 (set_thread_regcache_data): ... this.
3122 * inferiors.c (inferior_target_data): Rename to ...
3123 (thread_target_data): ... this.
3124 (inferior_regcache_data): Rename to ...
3125 (thread_regcache_data): ... this.
3126 (set_inferior_regcache_data): Rename to ...
3127 (set_thread_regcache_data): ... this.
3128 (free_one_thread): Update.
3129 * linux-low.h (get_thread_lwp): Update.
3130 * regcache.c (get_thread_regcache): Update.
3131 (regcache_invalidate_thread): Update.
3132 (free_register_cache_thread): Update.
3133 * win32-i386-low.c (update_debug_registers_callback): Update.
3134 (win32_get_current_dr): Update.
3135 * win32-low.c (thread_rec): Update.
3136 (delete_thread_info): Update.
3137 (continue_one_thread): Update.
3138 (suspend_one_thread): Update.
3139
3140 2017-08-24 Simon Marchi <simon.marchi@ericsson.com>
3141
3142 * inferiors.c (set_inferior_target_data): Remove.
3143 * inferiors.h (set_inferior_target_data): Remove.
3144
3145 2017-08-18 Yao Qi <yao.qi@linaro.org>
3146
3147 * Makefile.in (OBS): Add selftest.o.
3148 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
3149 * configure, config.in: Re-generated.
3150 * server.c: Include common/sefltest.h.
3151 (captured_main): Handle option --selftest.
3152
3153 2017-08-09 Yao Qi <yao.qi@linaro.org>
3154
3155 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
3156 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
3157 i386-avx-mpx.o and i386-mmx.o.
3158 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
3159 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
3160 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
3161 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
3162 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
3163 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
3164 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
3165 i386/amd64-avx-mpx.xml.
3166
3167 2017-08-09 Yao Qi <yao.qi@linaro.org>
3168
3169 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
3170 and x32-avx-avx512.o.
3171 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
3172 i386/x32-avx-avx512.xml.
3173
3174 2017-07-26 Simon Marchi <simon.marchi@ericsson.com>
3175
3176 * tracepoint.h (enum class fast_tpoint_collect_result): New
3177 enumeration.
3178 (fast_tracepoint_collecting): Change return type to
3179 fast_tpoint_collect_result.
3180 * tracepoint.c (fast_tracepoint_collecting): Likewise.
3181 * linux-low.h: Include tracepoint.h.
3182 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
3183 fast_tpoint_collect_result.
3184 * linux-low.c (handle_tracepoints): Adjust.
3185 (linux_fast_tracepoint_collecting): Change return type to
3186 fast_tpoint_collect_result.
3187 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
3188 linux_wait_1, stuck_in_jump_pad_callback,
3189 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
3190 proceed_one_lwp): Adjust to type change.
3191
3192 2017-07-10 Yao Qi <yao.qi@linaro.org>
3193
3194 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
3195
3196 2017-06-29 Yao Qi <yao.qi@linaro.org>
3197
3198 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
3199 Remove.
3200 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
3201
3202 2017-06-20 Simon Marchi <simon.marchi@ericsson.com>
3203
3204 * Makefile.in (IPA_OBJS): Sort and format one item per line.
3205
3206 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
3207
3208 * linux-low.c (linux_create_inferior): Adjust code to access the
3209 environment information via 'gdb_environ' class.
3210 * lynx-low.c (lynx_create_inferior): Likewise.
3211 * server.c (our_environ): Make it an instance of 'gdb_environ'.
3212 (get_environ): Return a pointer to 'our_environ'.
3213 (captured_main): Initialize 'our_environ'.
3214 * server.h (get_environ): Adjust prototype.
3215 * spu-low.c (spu_create_inferior): Adjust code to access the
3216 environment information via 'gdb_environ' class.
3217
3218 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
3219
3220 * linux-low.c (linux_read_memory, linux_write_memory): Remove
3221 usage of "register" keyword.
3222
3223 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
3224
3225 * configure: Re-generate.
3226
3227 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
3228
3229 * configure: Re-generate.
3230
3231 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
3232
3233 * Makefile.in (COMPILE.pre): Add "-x c++".
3234
3235 2017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
3236
3237 * fork-child.c: Conditionally include <signal.h>.
3238
3239 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
3240
3241 * server.c (handle_general_set): Handle new packet
3242 "QStartupWithShell".
3243 (handle_query): Add "QStartupWithShell" to the list of supported
3244 packets.
3245 (gdbserver_usage): Add help text explaining the
3246 new "--startup-with-shell" and "--no-startup-with-shell" CLI
3247 options.
3248 (captured_main): Recognize and act upon the presence of the new
3249 CLI options.
3250
3251 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
3252 Pedro Alves <palves@redhat.com>
3253
3254 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
3255 * configure: Regenerate.
3256 * configure.srv (srv_linux_obj): Add "fork-child.o" and
3257 "fork-inferior.o".
3258 (i[34567]86-*-lynxos*): Likewise.
3259 (spu*-*-*): Likewise.
3260 * fork-child.c: New file.
3261 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
3262 and "environ.h".
3263 (linux_ptrace_fun): New function.
3264 (linux_create_inferior): Adjust function prototype to reflect
3265 change on "target.h". Adjust function code to use
3266 "fork_inferior".
3267 (linux_request_interrupt): Delete "signal_pid".
3268 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
3269 (lynx_ptrace_fun): New function.
3270 (lynx_create_inferior): Adjust function prototype to reflect
3271 change on "target.h". Adjust function code to use
3272 "fork_inferior".
3273 * nto-low.c (nto_create_inferior): Adjust function prototype and
3274 code to reflect change on "target.h". Update comments.
3275 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
3276 "common-terminal.h" and "environ.h".
3277 (terminal_fd): Moved to fork-child.c.
3278 (old_foreground_pgrp): Likewise.
3279 (restore_old_foreground_pgrp): Likewise.
3280 (last_status): Make it global.
3281 (last_ptid): Likewise.
3282 (our_environ): New variable.
3283 (startup_with_shell): Likewise.
3284 (program_name): Likewise.
3285 (program_argv): Rename to...
3286 (program_args): ...this.
3287 (wrapper_argv): New variable.
3288 (start_inferior): Delete function.
3289 (get_exec_wrapper): New function.
3290 (get_exec_file): Likewise.
3291 (get_environ): Likewise.
3292 (prefork_hook): Likewise.
3293 (post_fork_inferior): Likewise.
3294 (postfork_hook): Likewise.
3295 (postfork_child_hook): Likewise.
3296 (handle_v_run): Update code to deal with arguments coming from the
3297 remote host. Update calls from "start_inferior" to
3298 "create_inferior".
3299 (captured_main): Likewise. Initialize environment variable. Call
3300 "have_job_control".
3301 * server.h (post_fork_inferior): New prototype.
3302 (get_environ): Likewise.
3303 (last_status): Declare.
3304 (last_ptid): Likewise.
3305 (signal_pid): Likewise.
3306 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
3307 (spu_ptrace_fun): New function.
3308 (spu_create_inferior): Adjust function prototype to reflect change
3309 on "target.h". Adjust function code to use "fork_inferior".
3310 * target.c (target_terminal_init): New function.
3311 (target_terminal_inferior): Likewise.
3312 (target_terminal_ours): Likewise.
3313 * target.h: Include <vector>.
3314 (struct target_ops) <create_inferior>: Update prototype.
3315 (create_inferior): Update macro.
3316 * utils.c (gdb_flush_out_err): New function.
3317 * win32-low.c (win32_create_inferior): Adjust function prototype
3318 and code to reflect change on "target.h".
3319
3320 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
3321
3322 * inferiors.c (switch_to_thread): New function.
3323
3324 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
3325
3326 * Makefile.in (SFILE): Add "common/job-control.c".
3327 (OBS): Add "job-control.o".
3328
3329 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
3330
3331 * Makefile: Remove "@host_makefile_frag@".
3332
3333 2017-05-05 Pedro Alves <palves@redhat.com>
3334
3335 * configure: Regenerate.
3336
3337 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
3338
3339 * configure: Regenerate.
3340
3341 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
3342
3343 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
3344 software_single_step change of return type to
3345 std::vector<CORE_ADDR>.
3346 * linux-low.c (install_software_single_step_breakpoints):
3347 Likewise.
3348 * linux-low.h (install_software_single_step_breakpoints):
3349 Likewise.
3350
3351 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
3352
3353 * remote-utils.c: Include "gdb_termios.h" instead of
3354 "terminal.h".
3355 * terminal.h: Delete file.
3356
3357 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
3358
3359 * server.c: Include <vector>.
3360 <program_argv, wrapper_argv>: Convert to std::vector.
3361 (start_inferior): Rewrite function to use C++.
3362 (handle_v_run): Likewise. Update code that calculates the argv
3363 based on the vRun packet; use C++.
3364 (captured_main): Likewise.
3365
3366 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
3367
3368 * server.c (handle_v_cont): Initialize thread_resume::thread
3369 with null_ptid.
3370
3371 2017-04-05 Pedro Alves <palves@redhat.com>
3372
3373 * configure: Regenerate.
3374
3375 2017-04-05 Pedro Alves <palves@redhat.com>
3376
3377 * gdbreplay.c (sync_error): Constify.
3378 * linux-x86-low.c (push_opcode): Constify.
3379
3380 2017-04-05 Pedro Alves <palves@redhat.com>
3381
3382 * win32-low.c (get_child_debug_event)
3383 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
3384 Report TARGET_WAITKIND_SPURIOUS instead.
3385
3386 2017-04-05 Pedro Alves <palves@redhat.com>
3387
3388 * remote-utils.c (remote_prepare, remote_open): Constify.
3389 * remote-utils.h (remote_prepare, remote_open): Constify.
3390 * server.c (captured_main): Constify 'port' handling.
3391
3392 2017-04-04 Simon Marchi <simon.marchi@ericsson.com>
3393
3394 * Makefile.in (clean): Clear .deps.
3395
3396 2017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
3397
3398 * .gitignore: Remove generated files, replace with wildcard.
3399 * (clean): Replace removal of generated files with wildcard.
3400 (version.c): Replace with...
3401 (version-generated.c): ...this.
3402 (xml-builtin.c): Replace with...
3403 (xml-builtin-generated.c): ...this.
3404 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
3405 (%.c: *regformats*): Replace with...
3406 (%-generated.c: *regformats*): ...this.
3407
3408 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
3409
3410 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
3411 (xtensa_fill_gregset): Call collect_register_by_name for
3412 threadptr register.
3413 (xtensa_store_gregset): Call supply_register_by_name for
3414 threadptr register.
3415
3416 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
3417
3418 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
3419 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
3420 (xtensa_store_gregset): Call supply_register for all registers in
3421 a0_regnum..a0_regnum + C0_NREGS range.
3422
3423 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
3424
3425 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
3426 (ax-ipa.o: ax.c): Remove.
3427 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
3428 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
3429 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
3430 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
3431 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
3432
3433 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
3434
3435 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
3436 (print-utils-ipa.o: ../common/print-utils.c): Remove.
3437 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
3438 (errors-ipa.o: ../common/errors.c): Remove.
3439 (format-ipa.o: ../common/format.c): Remove.
3440 (common-utils-ipa.o: ../common/common-utils.c): Remove.
3441
3442 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
3443
3444 * Makefile.in (%-ipa.o: %.c): New rule.
3445 (tracepoint-ipa.o: tracepoint.c): Remove.
3446 (utils-ipa.o: utils.c): Remove.
3447 (remote-utils-ipa.o: remote-utils.c): Remove.
3448 (regcache-ipa.o: regcache.c): Remove.
3449 (i386-linux-ipa.o: i386-linux.c): Remove.
3450 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
3451 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
3452 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
3453 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
3454 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
3455 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
3456 (amd64-linux-ipa.o: amd64-linux.c): Remove.
3457 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
3458 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
3459 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
3460 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
3461 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
3462 (aarch64-ipa.o: aarch64.c): Remove.
3463 (s390-linux32-ipa.o: s390-linux32.c): Remove.
3464 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
3465 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
3466 (s390-linux64-ipa.o: s390-linux64.c): Remove.
3467 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
3468 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
3469 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
3470 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
3471 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
3472 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
3473 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
3474 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
3475 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
3476 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
3477 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
3478 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
3479 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
3480 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
3481 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
3482 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
3483 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
3484 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
3485 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
3486 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
3487 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
3488 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
3489 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
3490 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
3491 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
3492 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
3493 (tdesc-ipa.o: tdesc.c): Remove.
3494 (x32-linux-ipa.o: x32-linux.c): Remove.
3495 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
3496 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
3497
3498 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
3499
3500 * Makefile.in (%.o: ../arch/%.c): New rule.
3501 (arm.o: ../arch/arm.c): Remove.
3502 (arm-linux.o: ../arch/arm-linux.c): Remove.
3503 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
3504 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
3505
3506 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
3507
3508 * Makefile.in (%.o: ../nat/%.c): New rule.
3509 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
3510 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
3511 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
3512 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
3513 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
3514 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
3515 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
3516 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
3517 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
3518 (linux-personality.o: ../nat/linux-personality.c): Remove.
3519 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
3520 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
3521 (x86-linux.o: ../nat/x86-linux.c): Remove.
3522 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
3523 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
3524
3525 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
3526
3527 * Makefile.in (%.o: ../common/%.c): New rule.
3528 (signals.o: ../common/signals.c): Remove.
3529 (print-utils.o: ../common/print-utils.c): Remove.
3530 (rsp-low.o: ../common/rsp-low.c): Remove.
3531 (common-utils.o: ../common/common-utils.c): Remove.
3532 (posix-strerror.o: ../common/posix-strerror.c): Remove.
3533 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
3534 (vec.o: ../common/vec.c): Remove.
3535 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
3536 (xml-utils.o: ../common/xml-utils.c): Remove.
3537 (ptid.o: ../common/ptid.c): Remove.
3538 (buffer.o: ../common/buffer.c): Remove.
3539 (format.o: ../common/format.c): Remove.
3540 (filestuff.o: ../common/filestuff.c): Remove.
3541 (agent.o: ../common/agent.c): Remove.
3542 (errors.o: ../common/errors.c): Remove.
3543 (environ.o: ../common/environ.c): Remove.
3544 (common-debug.o: ../common/common-debug.c): Remove.
3545 (cleanups.o: ../common/cleanups.c): Remove.
3546 (common-exceptions.o: ../common/common-exceptions.c): Remove.
3547 (fileio.o: ../common/fileio.c): Remove.
3548 (common-regcache.o: ../common/common-regcache.c): Remove.
3549 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
3550 (new-op.o: ../common/new-op.c): Remove.
3551 (btrace-common.o: ../common/btrace-common.c): Remove.
3552
3553 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
3554
3555 * Makefile.in (%.o: ../target/%.c): New rule.
3556 (waitstatus.o: ../target/waitstatus.c): Remove.
3557
3558 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
3559
3560 * Makefile.in
3561 (%.c: ../regformats/%.dat,
3562 (%.c: ../regformats/arm/%.dat,
3563 (%.c: ../regformats/i386/%.dat,
3564 (%.c: ../regformats/rs6000/%.dat): New rules.
3565 (aarch64.c): Remove.
3566 (reg-arm.c): Remove.
3567 (arm-with-iwmmxt.c): Remove.
3568 (arm-with-vfpv2.c): Remove.
3569 (arm-with-vfpv3.c): Remove.
3570 (arm-with-neon.c): Remove.
3571 (reg-bfin.c): Remove.
3572 (reg-cris.c): Remove.
3573 (reg-crisv32.c): Remove.
3574 (i386.c): Remove.
3575 (i386-linux.c): Remove.
3576 (i386-avx.c): Remove.
3577 (i386-avx-linux.c): Remove.
3578 (i386-avx-avx512.c): Remove.
3579 (i386-avx-avx512-linux.c): Remove.
3580 (i386-mpx.c): Remove.
3581 (i386-mpx-linux.c): Remove.
3582 (i386-avx-mpx-avx512-pku.c): Remove.
3583 (i386-avx-mpx-avx512-pku-linux.c): Remove.
3584 (i386-avx-mpx.c): Remove.
3585 (i386-avx-mpx-linux.c): Remove.
3586 (i386-mmx.c): Remove.
3587 (i386-mmx-linux.c): Remove.
3588 (reg-ia64.c): Remove.
3589 (reg-m32r.c): Remove.
3590 (reg-m68k.c): Remove.
3591 (reg-cf.c): Remove.
3592 (mips-linux.c): Remove.
3593 (mips-dsp-linux.c): Remove.
3594 (mips64-linux.c): Remove.
3595 (mips64-dsp-linux.c): Remove.
3596 (nios2-linux.c): Remove.
3597 (powerpc-32.c): Remove.
3598 (powerpc-32l.c): Remove.
3599 (powerpc-altivec32l.c): Remove.
3600 (powerpc-cell32l.c): Remove.
3601 (powerpc-vsx32l.c): Remove.
3602 (powerpc-isa205-32l.c): Remove.
3603 (powerpc-isa205-altivec32l.c): Remove.
3604 (powerpc-isa205-vsx32l.c): Remove.
3605 (powerpc-e500l.c): Remove.
3606 (powerpc-64l.c): Remove.
3607 (powerpc-altivec64l.c): Remove.
3608 (powerpc-cell64l.c): Remove.
3609 (powerpc-vsx64l.c): Remove.
3610 (powerpc-isa205-64l.c): Remove.
3611 (powerpc-isa205-altivec64l.c): Remove.
3612 (powerpc-isa205-vsx64l.c): Remove.
3613 (s390-linux32.c): Remove.
3614 (s390-linux32v1.c): Remove.
3615 (s390-linux32v2.c): Remove.
3616 (s390-linux64.c): Remove.
3617 (s390-linux64v1.c): Remove.
3618 (s390-linux64v2.c): Remove.
3619 (s390-te-linux64.c): Remove.
3620 (s390-vx-linux64.c): Remove.
3621 (s390-tevx-linux64.c): Remove.
3622 (s390x-linux64.c): Remove.
3623 (s390x-linux64v1.c): Remove.
3624 (s390x-linux64v2.c): Remove.
3625 (s390x-te-linux64.c): Remove.
3626 (s390x-vx-linux64.c): Remove.
3627 (s390x-tevx-linux64.c): Remove.
3628 (tic6x-c64xp-linux.c): Remove.
3629 (tic6x-c64x-linux.c): Remove.
3630 (tic6x-c62x-linux.c): Remove.
3631 (reg-sh.c): Remove.
3632 (reg-sparc64.c): Remove.
3633 (reg-spu.c): Remove.
3634 (amd64.c): Remove.
3635 (amd64-linux.c): Remove.
3636 (amd64-avx.c): Remove.
3637 (amd64-avx-linux.c): Remove.
3638 (amd64-avx-avx512.c): Remove.
3639 (amd64-avx-avx512-linux.c): Remove.
3640 (amd64-mpx.c): Remove.
3641 (amd64-mpx-linux.c): Remove.
3642 (amd64-avx-mpx-avx512-pku.c): Remove.
3643 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
3644 (amd64-avx-mpx.c): Remove.
3645 (amd64-avx-mpx-linux.c): Remove.
3646 (x32.c): Remove.
3647 (x32-linux.c): Remove.
3648 (x32-avx.c): Remove.
3649 (x32-avx-linux.c): Remove.
3650 (x32-avx-avx512.c): Remove.
3651 (x32-avx-avx512-linux.c): Remove.
3652 (reg-xtensa.c): Remove.
3653 (reg-tilegx.c): Remove.
3654 (reg-tilegx32.c): Remove.
3655
3656 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
3657
3658 * Makefile.in (SFILES): Add "common/environ.c".
3659 (OBJS): Add "common/environ.h".
3660
3661 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
3662
3663 * configure.ac: Check if the fs_base and gs_base members of
3664 `struct user_regs_struct' exist.
3665 * config.in: Regenerated.
3666 * configure: Likewise.
3667
3668 2017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
3669
3670 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
3671 target_read_memory.
3672 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
3673 (get_next_pcs_syscall_next_pc): Likewise.
3674
3675 2016-12-23 Luis Machado <lgustavo@codesourcery.com>
3676
3677 * win32-i386-low.c: Fix incorrect reference to a couple source files.
3678 * nto-x86-low.c: Likewise.
3679
3680 2016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
3681
3682 * Makefile.in: Include disable-implicit-rules.mk.
3683
3684 2016-11-23 Pedro Alves <palves@redhat.com>
3685
3686 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
3687 (debug_vprintf): Use std::chrono::steady_clock instead of
3688 gettimeofday. Use '.' instead of ':'.
3689 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
3690 (get_timestamp): Use std::chrono::steady_clock instead of
3691 gettimeofday.
3692
3693 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
3694
3695 * Makefile.in: Fix whitespace formatting.
3696
3697 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
3698
3699 * Makefile.in (SFILES, OBS): Flatten list and order
3700 alphabetically.
3701
3702 2016-11-23 Pedro Alves <palves@redhat.com>
3703
3704 * event-loop.c (handle_file_event): Use warning.
3705 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
3706 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
3707 Use warning.
3708
3709 2016-11-23 Pedro Alves <palves@redhat.com>
3710
3711 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
3712 output.
3713 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
3714 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
3715 debug_printf and debug_flush for debug output.
3716 * server.c (handle_general_set): Likewise.
3717 * thread-db.c (try_thread_db_load): Use debug_printf for debug
3718 output.
3719
3720 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
3721
3722 * Makefile.in (.c.o): Replace rule with ...
3723 (%.o: %.c): ... this one.
3724
3725 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
3726
3727 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
3728 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
3729 make.
3730 * configure.ac: Remove checks for the make program.
3731 * configure: Re-generate.
3732
3733 2016-10-28 Pedro Alves <palves@redhat.com>
3734
3735 * Makefile.in (CXX_DIALECT): Get from configure.
3736 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
3737 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
3738 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
3739 * config.in: Regenerate.
3740 * configure: Regenerate.
3741
3742 2016-10-27 Yao Qi <yao.qi@linaro.org>
3743
3744 * linux-low.c (linux_supports_range_stepping): Return true if
3745 can_software_single_step return true.
3746
3747 2016-10-27 Yao Qi <yao.qi@linaro.org>
3748
3749 * inferiors.c (find_inferior_in_random): New function.
3750 * inferiors.h (find_inferior_in_random): Declare.
3751 * linux-low.c (linux_wait_for_event_filtered): Call
3752 find_inferior_in_random instead of find_inferior.
3753
3754 2016-10-27 Yao Qi <yao.qi@linaro.org>
3755
3756 * linux-low.c (linux_wait_1): If single-step breakpoints are
3757 inserted, remove them.
3758
3759 2016-10-26 Pedro Alves <palves@redhat.com>
3760
3761 * linux-low.c (handle_extended_wait): Link parent/child fork
3762 threads.
3763 (linux_wait_1): Unlink them.
3764 (linux_set_resume_request): Ignore resume requests for
3765 already-resumed and unhandled fork child threads.
3766 * linux-low.h (struct lwp_info) <fork_relative>: New field.
3767 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
3768 New functions.
3769 (handle_v_requests) <vCont>: Don't call require_running.
3770 * server.h (in_queued_stop_replies): New declaration.
3771
3772 2016-10-24 Yao Qi <yao.qi@linaro.org>
3773
3774 PR server/20733
3775 * linux-aarch64-low.c (append_insns): Cast the return value to
3776 'uint32_t *'.
3777
3778 2016-10-10 Yao Qi <yao.qi@linaro.org>
3779
3780 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
3781
3782 2016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
3783
3784 * target.c (target_supports_multi_process): New function, moved
3785 from...
3786 * target.h (target_supports_multi_process): ... here. Remove
3787 macro.
3788
3789 2016-10-05 Tom Tromey <tom@tromey.com>
3790
3791 PR remote/20655:
3792 * tracepoint.c (handle_tracepoint_bkpts): Check
3793 ipa_error_tracepoint, not ipa_stopping_tracepoint.
3794
3795 2016-10-05 Yao Qi <yao.qi@linaro.org>
3796
3797 * configure.srv: Update the path of arm-*.xml files.
3798
3799 2016-10-05 Terry Guo <terry.guo@arm.com>
3800 Yao Qi <yao.qi@linaro.org>
3801
3802 * Makefile.in: Adjust the path of rules.
3803 * configure.srv: Update the path of xml files.
3804 * regformats/arm-with-iwmmxt.dat: Regenerated.
3805 * regformats/arm-with-neon.dat: Likewise.
3806 * regformats/arm-with-vfpv2.dat: Likewise.
3807 * regformats/arm-with-vfpv3.dat Likewise.
3808
3809 2016-09-30 Yao Qi <yao.qi@linaro.org>
3810
3811 PR gdbserver/20627
3812 * target.c (target_stop_and_wait): Don't call
3813 target_continue_no_signal, use resume_stop instead.
3814
3815 2016-09-26 Yao Qi <yao.qi@linaro.org>
3816
3817 * linux-low.c (linux_wait_1): Call debug_exit.
3818
3819 2016-09-23 Pedro Alves <palves@redhat.com>
3820
3821 * Makefile.in (SFILES): Add common/new-op.c.
3822 (OBS): Add common/new-op.o.
3823 (new-op.o): New rule.
3824
3825 2016-09-21 Simon Marchi <simon.marchi@ericsson.com>
3826
3827 * .gitinore: Ignore more files.
3828
3829 2016-09-21 Yao Qi <yao.qi@linaro.org>
3830
3831 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
3832 23.
3833
3834 2016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
3835
3836 * server.c (start_inferior): Call target_mourn_inferior instead of
3837 mourn_inferior; pass ptid_t argument to it.
3838 (resume): Likewise.
3839 (handle_target_event): Likewise.
3840 * target.c (target_mourn_inferior): New function.
3841 * target.h (mourn_inferior): Delete macro.
3842
3843 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
3844
3845 * linux-low.c (lwp_is_stepping): New function.
3846
3847 2016-09-06 Carl Love <cel@us.ibm.com>
3848
3849 * server.c (start_inferior): Fixed comment, requested comment change
3850 didn't get updated correctly. Removed reference to ptrace () call as
3851 it is only true on Linux systems.
3852
3853 2016-09-06 Carl Love <cel@us.ibm.com>
3854
3855 * server.c (start_inferior): Do not call
3856 function target_post_create_inferior () if the
3857 inferior process has already exited.
3858
3859 2016-09-05 Pedro Alves <palves@redhat.com>
3860
3861 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
3862 (COMPILE.pre, CC_LD): Use CXX directly.
3863 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
3864 * acinclude.m4: Don't include build-with-cxx.m4.
3865 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
3866 * configure: Regenerate.
3867
3868 2016-09-02 Akash Trehan <akash.trehan123@gmail.com>
3869
3870 PR gdb/19495
3871 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
3872 call writing data to own_buf.
3873
3874 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
3875
3876 * target.c (mywait): Call target_wait instead of
3877 the_target->wait.
3878 (target_wait): New function.
3879
3880 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
3881
3882 * server.c (start_inferior): New variable 'ptid'. Replace calls
3883 to the_target->resume by target_continue{,_no_signal}, depending
3884 on the case.
3885 * target.c (target_stop_and_wait): Call target_continue_no_signal
3886 instead of the_target->resume.
3887 (target_continue): New function.
3888
3889 2016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
3890
3891 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
3892
3893 2016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3894
3895 PR server/20491
3896 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
3897 ps_prochandle.
3898 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
3899 * linux-arm-low.c (ps_get_thread_area): Likewise.
3900 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
3901 * linux-m68k-low.c (ps_get_thread_area): Likewise.
3902 * linux-mips-low.c (ps_get_thread_area): Likewise.
3903 * linux-nios2-low.c (ps_get_thread_area): Likewise.
3904 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
3905 * linux-x86-low.c (ps_get_thread_area): Likewise.
3906 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
3907
3908 2016-08-19 Pedro Alves <palves@redhat.com>
3909
3910 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
3911
3912 2016-08-19 Pedro Alves <palves@redhat.com>
3913
3914 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
3915 comment. Use memcpy instead of casting through unsigned long.
3916
3917 2016-08-19 Pedro Alves <palves@redhat.com>
3918
3919 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
3920 allocating around 0x80000000.
3921
3922 2016-08-19 Pedro Alves <palves@redhat.com>
3923
3924 PR gdb/20415
3925 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
3926 (x32-avx512-linux-ipa.o): New rules.
3927 * configure.ac (x86_64-*-linux*): New x32 check.
3928 * configure.srv (ipa_x32_linux_regobj): New.
3929 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
3930 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
3931 descriptions.
3932 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
3933 descriptions.
3934 * configure: Regenerate.
3935
3936 2016-08-09 Pedro Alves <palves@redhat.com>
3937
3938 PR gdb/18653
3939 * Makefile.in (OBS): Add signals-state-save-restore.o.
3940 (signals-state-save-restore.o): New rule.
3941 * config.in: Regenerate.
3942 * configure: Regenerate.
3943 * linux-low.c: Include "signals-state-save-restore.h".
3944 (linux_create_inferior): Call
3945 restore_original_signals_state.
3946 * server.c: Include "dispositions-save-restore.h".
3947 (captured_main): Call save_original_signals_state.
3948
3949 2016-08-05 Pedro Alves <palves@redhat.com>
3950
3951 * configure: Regenerate.
3952
3953 2016-08-04 Yao Qi <yao.qi@linaro.org>
3954
3955 * linux-low.c (regsets_fetch_inferior_registers): Check
3956 errno is ESRCH or not.
3957
3958 2016-08-02 Yao Qi <yao.qi@linaro.org>
3959
3960 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
3961 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
3962 (thread_db_load_search): Update.
3963 (try_thread_db_load_1): Don't look for td_ta_event_addr,
3964 td_ta_set_event and td_ta_event_getmsg.
3965
3966 2016-07-26 Pedro Alves <palves@redhat.com>
3967
3968 PR server/20414
3969 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
3970 of unsigned long for 64-bit registers and use uint32_t instead of
3971 unsigned int for 32-bit registers.
3972
3973 2016-07-26 Pedro Alves <palves@redhat.com>
3974
3975 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
3976 to 'ptrace'.
3977
3978 2016-07-21 Tom Tromey <tom@tromey.com>
3979
3980 * configure: Rebuild.
3981
3982 2016-07-21 Yao Qi <yao.qi@linaro.org>
3983
3984 * mem-break.c (find_gdb_breakpoint): Cast bp to
3985 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
3986
3987 2016-07-21 Yao Qi <yao.qi@linaro.org>
3988
3989 * server.c (handle_v_requests): Support s and S actions
3990 if target_supports_software_single_step return true.
3991
3992 2016-07-21 Yao Qi <yao.qi@linaro.org>
3993
3994 * linux-low.c (resume_stopped_resumed_lwps): If resume request
3995 is resume_step, call maybe_hw_step.
3996 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
3997 and unstop them.
3998 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
3999 breakpoints or not.
4000 (proceed_one_lwp): If resume request is resume_step, install
4001 reinsert breakpoints and call maybe_hw_step.
4002
4003 2016-07-21 Yao Qi <yao.qi@linaro.org>
4004
4005 * linux-low.c (proceed_one_lwp): Declare.
4006 (linux_resume_one_thread): Remove local variable 'step'.
4007 Lift code enqueue signal. Call proceed_one_lwp instead of
4008 linux_resume_one_lwp.
4009
4010 2016-07-21 Yao Qi <yao.qi@linaro.org>
4011
4012 * linux-low.c (linux_resume_one_thread): Call
4013 enqueue_pending_signal.
4014
4015 2016-07-21 Yao Qi <yao.qi@linaro.org>
4016
4017 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
4018 * inferiors.c (do_restore_current_thread_cleanup): New function.
4019 (make_cleanup_restore_current_thread): Likewise.
4020 * linux-low.c (install_software_single_step_breakpoints): Call
4021 make_cleanup_restore_current_thread. Switch current_thread to
4022 thread.
4023
4024 2016-07-21 Yao Qi <yao.qi@linaro.org>
4025
4026 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
4027 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
4028 (clone_one_breakpoint): Likewise.
4029 (delete_reinsert_breakpoints): Change parameter to thread.
4030 Callers updated.
4031 (has_reinsert_breakpoints): Likewise.
4032 (uninsert_reinsert_breakpoints): Likewise.
4033 (reinsert_reinsert_breakpoints): Likewise.
4034 * mem-break.h (set_reinsert_breakpoint): Update declaration.
4035 (delete_reinsert_breakpoints): Likewise.
4036 (reinsert_reinsert_breakpoints): Likewise.
4037 (uninsert_reinsert_breakpoints): Likewise.
4038 (has_reinsert_breakpoints): Likewise.
4039
4040 2016-07-21 Yao Qi <yao.qi@linaro.org>
4041
4042 * inferiors.c (get_thread_process): Make parameter const.
4043 * inferiors.h (get_thread_process): Update declaration.
4044 * mem-break.c (clone_all_breakpoints): Remove all parameters.
4045 Add new parameters child_thread and parent_thread. Callers
4046 updated.
4047 * mem-break.h (clone_all_breakpoints): Update declaration.
4048
4049 2016-07-21 Yao Qi <yao.qi@linaro.org>
4050
4051 * mem-break.c (struct breakpoint) <cond_list>: Remove.
4052 <command_list, handler>: Remove.
4053 (struct gdb_breakpoint): New.
4054 (struct other_breakpoint): New.
4055 (struct reinsert_breakpoint): New.
4056 (is_gdb_breakpoint): New function.
4057 (any_persistent_commands): Update command_list if
4058 is_gdb_breakpoint returns true.
4059 (set_breakpoint): Create breakpoints according to their types.
4060 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
4061 (set_gdb_breakpoint_1): Likewise.
4062 (set_gdb_breakpoint): Likewise.
4063 (clear_breakpoint_conditions): Change parameter type to
4064 'struct gdb_breakpoint *'.
4065 (clear_breakpoint_commands): Likewise.
4066 (clear_breakpoint_conditions_and_commands): Likewise.
4067 (add_condition_to_breakpoint): Likewise.
4068 (add_breakpoint_condition): Likewise.
4069 (add_commands_to_breakpoint): Likewise.
4070 (check_breakpoints): Check other_breakpoint.
4071 (clone_one_breakpoint): Clone breakpopint according to its type.
4072 * mem-break.h (struct gdb_breakpoint): Declare.
4073 (set_gdb_breakpoint): Update declaration.
4074 (clear_breakpoint_conditions_and_commands): Likewise.
4075 (add_breakpoint_condition): Likewise.
4076 (add_breakpoint_commands): Likewise.
4077 * server.c (process_point_options): Change parameter type to
4078 'struct gdb_breakpoint *'.
4079
4080 2016-07-21 Yao Qi <yao.qi@linaro.org>
4081
4082 * mem-break.c (set_breakpoint_at): Rename it to ...
4083 (set_breakpoint_type_at): ... it.
4084 (set_breakpoint_at): Call set_breakpoint_type_at.
4085 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
4086 * mem-break.h (set_breakpoint_at): Update comments.
4087
4088 2016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
4089
4090 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
4091 to buf parameter.
4092 (nios2_store_gregset): Likewise.
4093
4094 2016-07-01 Pedro Alves <palves@redhat.com>
4095 Antoine Tremblay <antoine.tremblay@ericsson.com>
4096
4097 * linux-low.c: Change interface to take the target lwp_info
4098 pointer directly and return void. Handle detaching from a zombie
4099 thread.
4100 (linux_detach_lwp_callback): New function.
4101 (linux_detach): Detach from the leader thread after detaching from
4102 the clone threads.
4103
4104 2016-06-28 Yao Qi <yao.qi@linaro.org>
4105
4106 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
4107 for variable new_offset.
4108 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
4109 (aarch64_ftrace_insn_reloc_cb): Likewise.
4110 (aarch64_ftrace_insn_reloc_tb): Likewise.
4111 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
4112 PRIx64 instead of PRIx32.
4113
4114 2016-06-28 Yao Qi <yao.qi@linaro.org>
4115
4116 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
4117 (the_low_target): Install arm_get_syscall_trapinfo.
4118
4119 2016-06-28 Yao Qi <yao.qi@linaro.org>
4120
4121 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
4122 function.
4123 (the_low_target): Install aarch64_get_syscall_trapinfo.
4124
4125 2016-06-28 Yao Qi <yao.qi@linaro.org>
4126
4127 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
4128 Callers updated.
4129 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
4130 Remove parameter sysno.
4131 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
4132 sysret.
4133
4134 2016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4135
4136 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
4137 (s390_emit_ne_goto): Likewise.
4138 (s390_emit_lt_goto): Likewise.
4139 (s390_emit_le_goto): Likewise.
4140 (s390_emit_gt_goto): Likewise.
4141 (s390_emit_ge_goto): Likewise.
4142 (s390x_emit_eq_goto): Likewise.
4143 (s390x_emit_ne_goto): Likewise.
4144 (s390x_emit_lt_goto): Likewise.
4145 (s390x_emit_le_goto): Likewise.
4146 (s390x_emit_gt_goto): Likewise.
4147 (s390x_emit_ge_goto): Likewise.
4148 (s390_emit_ops_impl): Mark variable static.
4149 (s390x_emit_ops): Likewise.
4150
4151 2016-06-17 Yao Qi <yao.qi@linaro.org>
4152
4153 * linux-low.c (handle_extended_wait): Call
4154 uninsert_reinsert_breakpoints for the parent process. Remove
4155 reinsert breakpoints from the child process. Reinsert them to
4156 the parent process when vfork is done.
4157 * mem-break.c (uninsert_reinsert_breakpoints): New function.
4158 (reinsert_reinsert_breakpoints): New function.
4159 * mem-break.h (uninsert_reinsert_breakpoints): Declare
4160 (reinsert_reinsert_breakpoints): Declare.
4161
4162 2016-06-17 Yao Qi <yao.qi@linaro.org>
4163
4164 * linux-low.c (handle_extended_wait): If the parent is doing
4165 step-over, remove the reinsert breakpoints from the forked child.
4166
4167 2016-06-17 Yao Qi <yao.qi@linaro.org>
4168
4169 * linux-low.c (unsuspend_all_lwps): Declare.
4170 (linux_low_filter_event): If thread exited, call finish_step_over.
4171 If step-over is finished, unsuspend other threads.
4172
4173 2016-06-17 Yao Qi <yao.qi@linaro.org>
4174
4175 * linux-low.c (linux_resume_one_lwp_throw): Assert
4176 has_reinsert_breakpoints returns false.
4177 * mem-break.c (delete_disabled_breakpoints): Assert
4178 bp type isn't reinsert_breakpoint.
4179
4180 2016-06-17 Yao Qi <yao.qi@linaro.org>
4181
4182 * linux-low.c (maybe_hw_step): New function.
4183 (linux_resume_one_lwp_throw): Call maybe_hw_step.
4184 (finish_step_over): Switch current_thread to lwp temporarily,
4185 and assert has_reinsert_breakpoints returns true.
4186 (proceed_one_lwp): Call maybe_hw_step.
4187 * mem-break.c (has_reinsert_breakpoints): New function.
4188 * mem-break.h (has_reinsert_breakpoints): Declare.
4189
4190 2016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
4191
4192 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
4193
4194 2016-05-17 Yao Qi <yao.qi@linaro.org>
4195
4196 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
4197 instead of find_inferior.
4198
4199 2016-05-05 Yao Qi <yao.qi@linaro.org>
4200
4201 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
4202 Initialize res to zero.
4203
4204 2016-05-05 Yao Qi <yao.qi@linaro.org>
4205
4206 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
4207 to uint32_t.
4208
4209 2016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4210
4211 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
4212 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
4213 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
4214
4215 2016-04-28 Par Olsson <par.olsson@windriver.com>
4216 Simon Marchi <simon.marchi@ericsson.com>
4217
4218 * tracepoint.c (write_inferior_int8): New function.
4219 (cmd_qtenable_disable): Write enable flag using
4220 write_inferior_int8.
4221
4222 2016-04-25 Yao Qi <yao.qi@linaro.org>
4223
4224 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
4225 (need_step_over_p): Return zero if the LWP has pending signals
4226 can be delivered on software single step target.
4227
4228 2016-04-25 Yao Qi <yao.qi@linaro.org>
4229
4230 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
4231 return instead of error.
4232
4233 2016-04-22 Yao Qi <yao.qi@linaro.org>
4234
4235 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
4236 to 23.
4237
4238 2016-04-22 Yao Qi <yao.qi@linaro.org>
4239
4240 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
4241 signal when stepping over breakpoint with software single
4242 step.
4243
4244 2016-04-21 Pedro Alves <palves@redhat.com>
4245
4246 * linux-s390-low.c (s390_collect_ptrace_register)
4247 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
4248 add casts.
4249 (s390_check_regset): Use void * instead of gdb_byte *.
4250
4251 2016-04-20 Pedro Alves <palves@redhat.com>
4252
4253 * configure: Renegerate.
4254
4255 2016-04-20 Yao Qi <yao.qi@linaro.org>
4256
4257 * linux-aarch32-low.c: Include "arch/arm-linux.h".
4258 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
4259 number 16.
4260 (arm_store_gregset): Likewise.
4261
4262 2016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
4263
4264 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
4265 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
4266 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
4267 (amd64-avx-mpx-linux.c): New rules.
4268 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
4269 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
4270 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
4271 (srv_amd64_regobj): Add amd64-avx-mpx.o.
4272 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
4273 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
4274 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
4275 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
4276 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
4277 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
4278 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
4279 * linux-x86-low.c (x86_linux_read_description): Add case for
4280 X86_XSTATE_AVX_MPX_MASK.
4281 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
4282 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
4283 init_registers_i386_avx_mpx_linux.
4284 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
4285 (initialize_low_tracepoint): Call
4286 init_registers_i386_avx_mpx_linux.
4287 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
4288 (initialize_low_tracepoint): Call
4289 init_registers_amd64_avx_mpx_linux.
4290 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
4291 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
4292 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
4293 declarations.
4294
4295 2016-04-18 Pedro Alves <palves@redhat.com>
4296
4297 * configure: Regenerate.
4298
4299 2016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
4300
4301 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
4302 (aarch64_emit_sub): Likewise.
4303
4304 2016-04-12 Pedro Alves <palves@redhat.com>
4305
4306 * utils.c (prepare_to_throw_exception): Delete.
4307
4308 2016-04-05 Simon Marchi <simon.marchi@ericsson.com>
4309
4310 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
4311
4312 2016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
4313
4314 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
4315
4316 2016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
4317
4318 * linux-aarch64-ipa.c: Add <elf.h> include.
4319 * linux-ppc-ipa.c: Add <elf.h> include.
4320 * linux-s390-ipa.c: Add <elf.h> include.
4321
4322 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
4323
4324 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
4325 (get_raw_reg_ptr): Likewise.
4326 (get_trace_state_variable_value_ptr): Likewise.
4327 (set_trace_state_variable_value_ptr): Likewise.
4328 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
4329 char *.
4330
4331 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
4332 Marcin Kościelnicki <koriakin@0x04.net>
4333
4334 PR/17221
4335 * linux-ppc-low.c (emit_insns): New function.
4336 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
4337 (ppc_emit_prologue): New function.
4338 (ppc_emit_epilogue): New function.
4339 (ppc_emit_add): New function.
4340 (ppc_emit_sub): New function.
4341 (ppc_emit_mul): New function.
4342 (ppc_emit_lsh): New function.
4343 (ppc_emit_rsh_signed): New function.
4344 (ppc_emit_rsh_unsigned): New function.
4345 (ppc_emit_ext): New function.
4346 (ppc_emit_zero_ext): New function.
4347 (ppc_emit_log_not): New function.
4348 (ppc_emit_bit_and): New function.
4349 (ppc_emit_bit_or): New function.
4350 (ppc_emit_bit_xor): New function.
4351 (ppc_emit_bit_not): New function.
4352 (ppc_emit_equal): New function.
4353 (ppc_emit_less_signed): New function.
4354 (ppc_emit_less_unsigned): New function.
4355 (ppc_emit_ref): New function.
4356 (ppc_emit_const): New function.
4357 (ppc_emit_reg): New function.
4358 (ppc_emit_pop): New function.
4359 (ppc_emit_stack_flush): New function.
4360 (ppc_emit_swap): New function.
4361 (ppc_emit_stack_adjust): New function.
4362 (ppc_emit_call): New function.
4363 (ppc_emit_int_call_1): New function.
4364 (ppc_emit_void_call_2): New function.
4365 (ppc_emit_if_goto): New function.
4366 (ppc_emit_goto): New function.
4367 (ppc_emit_eq_goto): New function.
4368 (ppc_emit_ne_goto): New function.
4369 (ppc_emit_lt_goto): New function.
4370 (ppc_emit_le_goto): New function.
4371 (ppc_emit_gt_goto): New function.
4372 (ppc_emit_ge_goto): New function.
4373 (ppc_write_goto_address): New function.
4374 (ppc_emit_ops_impl): New static variable.
4375 (ppc64v1_emit_prologue): New function.
4376 (ppc64v2_emit_prologue): New function.
4377 (ppc64_emit_epilogue): New function.
4378 (ppc64_emit_add): New function.
4379 (ppc64_emit_sub): New function.
4380 (ppc64_emit_mul): New function.
4381 (ppc64_emit_lsh): New function.
4382 (ppc64_emit_rsh_signed): New function.
4383 (ppc64_emit_rsh_unsigned): New function.
4384 (ppc64_emit_ext): New function.
4385 (ppc64_emit_zero_ext): New function.
4386 (ppc64_emit_log_not): New function.
4387 (ppc64_emit_bit_and): New function.
4388 (ppc64_emit_bit_or): New function.
4389 (ppc64_emit_bit_xor): New function.
4390 (ppc64_emit_bit_not): New function.
4391 (ppc64_emit_equal): New function.
4392 (ppc64_emit_less_signed): New function.
4393 (ppc64_emit_less_unsigned): New function.
4394 (ppc64_emit_ref): New function.
4395 (ppc64_emit_const): New function.
4396 (ppc64v1_emit_reg): New function.
4397 (ppc64v2_emit_reg): New function.
4398 (ppc64_emit_pop): New function.
4399 (ppc64_emit_stack_flush): New function.
4400 (ppc64_emit_swap): New function.
4401 (ppc64v1_emit_call): New function.
4402 (ppc64v2_emit_call): New function.
4403 (ppc64v1_emit_int_call_1): New function.
4404 (ppc64v2_emit_int_call_1): New function.
4405 (ppc64v1_emit_void_call_2): New function.
4406 (ppc64v2_emit_void_call_2): New function.
4407 (ppc64_emit_if_goto): New function.
4408 (ppc64_emit_eq_goto): New function.
4409 (ppc64_emit_ne_goto): New function.
4410 (ppc64_emit_lt_goto): New function.
4411 (ppc64_emit_le_goto): New function.
4412 (ppc64_emit_gt_goto): New function.
4413 (ppc64_emit_ge_goto): New function.
4414 (ppc64v1_emit_ops_impl): New static variable.
4415 (ppc64v2_emit_ops_impl): New static variable.
4416 (ppc_emit_ops): New function.
4417 (linux_low_target): Wire in ppc_emit_ops.
4418
4419 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
4420 Marcin Kościelnicki <koriakin@0x04.net>
4421
4422 PR/17221
4423 * Makefile.in: Add powerpc-*-ipa.o
4424 * configure.srv: Add ipa_obj for powerpc*-linux.
4425 * linux-ppc-ipa.c: New file.
4426 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
4427 includes.
4428 (PPC_FIELD): New macro.
4429 (PPC_SEXT): New macro.
4430 (PPC_OP6): New macro.
4431 (PPC_BO): New macro.
4432 (PPC_LI): New macro.
4433 (PPC_BD): New macro.
4434 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
4435 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
4436 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
4437 (ppc_get_thread_area): New function.
4438 (is_elfv2_inferior): New function.
4439 (gen_ds_form): New function.
4440 (GEN_STD): New macro.
4441 (GEN_STDU): New macro.
4442 (GEN_LD): New macro.
4443 (GEN_LDU): New macro.
4444 (gen_d_form): New function.
4445 (GEN_ADDI): New macro.
4446 (GEN_ADDIS): New macro.
4447 (GEN_LI): New macro.
4448 (GEN_LIS): New macro.
4449 (GEN_ORI): New macro.
4450 (GEN_ORIS): New macro.
4451 (GEN_LWZ): New macro.
4452 (GEN_STW): New macro.
4453 (GEN_STWU): New macro.
4454 (gen_xfx_form): New function.
4455 (GEN_MFSPR): New macro.
4456 (GEN_MTSPR): New macro.
4457 (GEN_MFCR): New macro.
4458 (GEN_MTCR): New macro.
4459 (GEN_SYNC): New macro.
4460 (GEN_LWSYNC): New macro.
4461 (gen_x_form): New function.
4462 (GEN_OR): New macro.
4463 (GEN_MR): New macro.
4464 (GEN_LWARX): New macro.
4465 (GEN_STWCX): New macro.
4466 (GEN_CMPW): New macro.
4467 (gen_md_form): New function.
4468 (GEN_RLDICL): New macro.
4469 (GEN_RLDICR): New macro.
4470 (gen_i_form): New function.
4471 (GEN_B): New macro.
4472 (GEN_BL): New macro.
4473 (gen_b_form): New function.
4474 (GEN_BNE): New macro.
4475 (GEN_LOAD): New macro.
4476 (GEN_STORE): New macro.
4477 (gen_limm): New function.
4478 (gen_atomic_xchg): New function.
4479 (gen_call): New function.
4480 (ppc_relocate_instruction): New function.
4481 (ppc_install_fast_tracepoint_jump_pad): New function.
4482 (ppc_get_min_fast_tracepoint_insn_len): New function.
4483 (ppc_get_ipa_tdesc_idx): New function.
4484 (the_low_target): Wire in the new functions.
4485 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
4486 tdescs.
4487 * linux-ppc-tdesc.h: New file.
4488
4489 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
4490
4491 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
4492 (alloc_jump_pad_buffer): New function.
4493 * linux-amd64-ipa.c: Add <sys/mman.h> include.
4494 (alloc_jump_pad_buffer): New function.
4495 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
4496 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
4497 (alloc_jump_pad_buffer): New function.
4498 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
4499 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
4500 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
4501 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
4502
4503 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
4504
4505 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
4506 * linux-amd64-ipa.c: Likewise.
4507 * linux-i386-ipa.c: Likewise.
4508 * linux-s390-ipa.c: Likewise.
4509 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
4510 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
4511 set_trace_state_variable_value_ptr.
4512 (struct ipa_sym_addresses): Likewise.
4513 (symbol_list): Likewise.
4514 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
4515 accessing gdb_collect directly.
4516 (gdb_collect_ptr_type): New typedef.
4517 (get_raw_reg_ptr_type): New typedef.
4518 (get_trace_state_variable_value_ptr_type): New typedef.
4519 (set_trace_state_variable_value_ptr_type): New typedef.
4520 (gdb_collect_ptr): New global.
4521 (get_raw_reg_ptr): New global.
4522 (get_trace_state_variable_value_ptr): New global.
4523 (set_trace_state_variable_value_ptr): New global.
4524 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
4525 accessing get_raw_reg directly.
4526 (get_get_tsv_func_addr): Likewise for
4527 get_trace_state_variable_value_ptr.
4528 (get_set_tsv_func_addr): Likewise for
4529 set_trace_state_variable_value_ptr.
4530 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
4531
4532 2016-03-30 Simon Marchi <simon.marchi@ericsson.com>
4533
4534 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
4535
4536 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
4537
4538 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
4539 packets.
4540 (relocate_instruction): Remove own_buf.
4541 * server.c (own_buf): Make global.
4542 (handle_v_requests): Make global.
4543 * server.h (own_buf): New declaration.
4544 (handle_v_requests): New prototype.
4545
4546 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
4547
4548 PR 18377
4549 * linux-s390-low.c (add_insns): New function.
4550 (s390_emit_prologue): New function.
4551 (s390_emit_epilogue): New function.
4552 (s390_emit_add): New function.
4553 (s390_emit_sub): New function.
4554 (s390_emit_mul): New function.
4555 (s390_emit_lsh): New function.
4556 (s390_emit_rsh_signed): New function.
4557 (s390_emit_rsh_unsigned): New function.
4558 (s390_emit_ext): New function.
4559 (s390_emit_log_not): New function.
4560 (s390_emit_bit_and): New function.
4561 (s390_emit_bit_or): New function.
4562 (s390_emit_bit_xor): New function.
4563 (s390_emit_bit_not): New function.
4564 (s390_emit_equal): New function.
4565 (s390_emit_less_signed): New function.
4566 (s390_emit_less_unsigned): New function.
4567 (s390_emit_ref): New function.
4568 (s390_emit_if_goto): New function.
4569 (s390_emit_goto): New function.
4570 (s390_write_goto_address): New function.
4571 (s390_emit_litpool): New function.
4572 (s390_emit_const): New function.
4573 (s390_emit_call): New function.
4574 (s390_emit_reg): New function.
4575 (s390_emit_pop): New function.
4576 (s390_emit_stack_flush): New function.
4577 (s390_emit_zero_ext): New function.
4578 (s390_emit_swap): New function.
4579 (s390_emit_stack_adjust): New function.
4580 (s390_emit_set_r2): New function.
4581 (s390_emit_int_call_1): New function.
4582 (s390_emit_void_call_2): New function.
4583 (s390_emit_eq_goto): New function.
4584 (s390_emit_ne_goto): New function.
4585 (s390_emit_lt_goto): New function.
4586 (s390_emit_le_goto): New function.
4587 (s390_emit_gt_goto): New function.
4588 (s390_emit_ge_goto): New function.
4589 (s390x_emit_prologue): New function.
4590 (s390x_emit_epilogue): New function.
4591 (s390x_emit_add): New function.
4592 (s390x_emit_sub): New function.
4593 (s390x_emit_mul): New function.
4594 (s390x_emit_lsh): New function.
4595 (s390x_emit_rsh_signed): New function.
4596 (s390x_emit_rsh_unsigned): New function.
4597 (s390x_emit_ext): New function.
4598 (s390x_emit_log_not): New function.
4599 (s390x_emit_bit_and): New function.
4600 (s390x_emit_bit_or): New function.
4601 (s390x_emit_bit_xor): New function.
4602 (s390x_emit_bit_not): New function.
4603 (s390x_emit_equal): New function.
4604 (s390x_emit_less_signed): New function.
4605 (s390x_emit_less_unsigned): New function.
4606 (s390x_emit_ref): New function.
4607 (s390x_emit_if_goto): New function.
4608 (s390x_emit_const): New function.
4609 (s390x_emit_call): New function.
4610 (s390x_emit_reg): New function.
4611 (s390x_emit_pop): New function.
4612 (s390x_emit_stack_flush): New function.
4613 (s390x_emit_zero_ext): New function.
4614 (s390x_emit_swap): New function.
4615 (s390x_emit_stack_adjust): New function.
4616 (s390x_emit_int_call_1): New function.
4617 (s390x_emit_void_call_2): New function.
4618 (s390x_emit_eq_goto): New function.
4619 (s390x_emit_ne_goto): New function.
4620 (s390x_emit_lt_goto): New function.
4621 (s390x_emit_le_goto): New function.
4622 (s390x_emit_gt_goto): New function.
4623 (s390x_emit_ge_goto): New function.
4624 (s390_emit_ops): New function.
4625 (struct linux_target_ops): Fill in emit_ops hook.
4626
4627 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
4628
4629 PR 18377
4630 * Makefile.in: Add s390 IPA files.
4631 * configure.srv: Build IPA for s390.
4632 * linux-s390-ipa.c: New file.
4633 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
4634 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
4635 (tdesc_s390_linux32): Likewise.
4636 (init_registers_s390_linux32v1): Likewise.
4637 (tdesc_s390_linux32v1): Likewise.
4638 (init_registers_s390_linux32v2): Likewise.
4639 (tdesc_s390_linux32v2): Likewise.
4640 (init_registers_s390_linux64): Likewise.
4641 (tdesc_s390_linux64): Likewise.
4642 (init_registers_s390_linux64v1): Likewise.
4643 (tdesc_s390_linux64v1): Likewise.
4644 (init_registers_s390_linux64v2): Likewise.
4645 (tdesc_s390_linux64v2): Likewise.
4646 (init_registers_s390_te_linux64): Likewise.
4647 (tdesc_s390_te_linux64): Likewise.
4648 (init_registers_s390_vx_linux64): Likewise.
4649 (tdesc_s390_vx_linux64): Likewise.
4650 (init_registers_s390_tevx_linux64): Likewise.
4651 (tdesc_s390_tevx_linux64): Likewise.
4652 (init_registers_s390x_linux64): Likewise.
4653 (tdesc_s390x_linux64): Likewise.
4654 (init_registers_s390x_linux64v1): Likewise.
4655 (tdesc_s390x_linux64v1): Likewise.
4656 (init_registers_s390x_linux64v2): Likewise.
4657 (tdesc_s390x_linux64v2): Likewise.
4658 (init_registers_s390x_te_linux64): Likewise.
4659 (tdesc_s390x_te_linux64): Likewise.
4660 (init_registers_s390x_vx_linux64): Likewise.
4661 (tdesc_s390x_vx_linux64): Likewise.
4662 (init_registers_s390x_tevx_linux64): Likewise.
4663 (tdesc_s390x_tevx_linux64): Likewise.
4664 (have_hwcap_s390_vx): New static variable.
4665 (s390_arch_setup): Fill have_hwcap_s390_vx.
4666 (s390_get_thread_area): New function.
4667 (s390_ft_entry_gpr_esa): New const.
4668 (s390_ft_entry_gpr_zarch): New const.
4669 (s390_ft_entry_misc): New const.
4670 (s390_ft_entry_fr): New const.
4671 (s390_ft_entry_vr): New const.
4672 (s390_ft_main_31): New const.
4673 (s390_ft_main_64): New const.
4674 (s390_ft_exit_fr): New const.
4675 (s390_ft_exit_vr): New const.
4676 (s390_ft_exit_misc): New const.
4677 (s390_ft_exit_gpr_esa): New const.
4678 (s390_ft_exit_gpr_zarch): New const.
4679 (append_insns): New function.
4680 (s390_relocate_instruction): New function.
4681 (s390_install_fast_tracepoint_jump_pad): New function.
4682 (s390_get_min_fast_tracepoint_insn_len): New function.
4683 (s390_get_ipa_tdesc_idx): New function.
4684 (struct linux_target_ops): Wire in the above functions.
4685 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
4686 * linux-s390-tdesc.h: New file.
4687
4688 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
4689
4690 * linux-s390-low.c (s390_supports_tracepoints): New function.
4691 (struct linux_target_ops): Fill supports_tracepoints hook.
4692
4693 2016-03-18 Yao Qi <yao.qi@linaro.org>
4694
4695 * linux-low.c (lwp_signal_can_be_delivered): New function.
4696 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
4697
4698 2016-03-18 Yao Qi <yao.qi@linaro.org>
4699
4700 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
4701 0 if signal is enqueued. Remove 'signal' from one debugging
4702 message. Move one debugging message to some lines below.
4703 Remove code setting 'signal' to 0.
4704
4705 2016-03-18 Yao Qi <yao.qi@linaro.org>
4706
4707 * linux-low.c (linux_low_filter_event): Remove redundant
4708 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
4709
4710 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
4711
4712 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
4713 (struct linux_target_ops): Wire in the above.
4714
4715 2016-03-03 Yao Qi <yao.qi@linaro.org>
4716
4717 * linux-low.c: Update comments to start_step_over.
4718
4719 2016-03-03 Yao Qi <yao.qi@linaro.org>
4720
4721 PR server/19736
4722 * linux-low.c (handle_extended_wait): Set child suspended
4723 if event_lwp->bp_reinsert isn't zero.
4724
4725 2016-03-02 Yao Qi <yao.qi@linaro.org>
4726
4727 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
4728 enqueue_pending_signal.
4729
4730 2016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
4731
4732 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
4733 is actually loaded.
4734
4735 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
4736
4737 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
4738 (s390_regmap_3264) [!__s390x__]: New global.
4739 (s390_collect_ptrace_register): Skip map entries containing -1.
4740 (s390_supply_ptrace_register): Ditto.
4741 (s390_fill_gprs_high): New function.
4742 (s390_store_gprs_high): New function.
4743 (s390_regsets): Add NT_S390_HIGH_GPRS.
4744 (s390_get_hwcap): Enable on 31-bit.
4745 (have_hwcap_s390_high_gprs): Enable on 31-bit.
4746 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
4747 Detect NT_S390_HIGH_GPRS.
4748 (s390_usrregs_info_3264): Enable on 31-bit.
4749 (s390_regs_info): Enable regs_info_3264 on 31-bit.
4750 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
4751
4752 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
4753
4754 PR gdb/13808
4755 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
4756 * configure.srv: Ditto.
4757 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
4758 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
4759 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
4760 (init_registers_amd64_linux): Remove prototype.
4761 (tdesc_amd64_linux): Remove declaration.
4762 (get_ipa_tdesc): New function.
4763 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
4764 initialize remaining tdescs.
4765 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
4766 (init_registers_i386_linux): Remove prototype.
4767 (tdesc_i386_linux): Remove declaration.
4768 (get_ipa_tdesc): New function.
4769 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
4770 initialize remaining tdescs.
4771 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
4772 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
4773 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
4774 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
4775 (x86_get_ipa_tdesc_idx): New function.
4776 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
4777 * linux-x86-tdesc.h: New file.
4778 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
4779 (target_get_ipa_tdesc_idx): New macro.
4780 * tracepoint.c (ipa_tdesc_idx): New macro.
4781 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
4782 (symbol_list): Add ipa_tdesc_idx.
4783 (cmd_qtstart): Write ipa_tdesc_idx in the target.
4784 (ipa_tdesc): Remove.
4785 (ipa_tdesc_idx): New variable.
4786 (get_context_regcache): Use get_ipa_tdesc.
4787 (gdb_collect): Ditto.
4788 (gdb_probe): Ditto.
4789 * tracepoint.h (get_ipa_tdesc): New prototype.
4790 (ipa_tdesc): Remove.
4791
4792 2016-02-24 Pedro Alves <palves@redhat.com>
4793
4794 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
4795 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
4796 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
4797 Factor out common code between the USE_SIGTRAP_SIGINFO and
4798 !USE_SIGTRAP_SIGINFO blocks.
4799 (linux_low_filter_event): Call save_stop_reason instead of
4800 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
4801 Update comments.
4802 (linux_wait_1): Update comments.
4803
4804 2016-02-24 Wei-cheng Wang <cole945@gmail.com>
4805
4806 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
4807 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
4808 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
4809 ppc_insert_point, ppc_remove_point.
4810
4811 2016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
4812
4813 * linux-s390-low.c (s390_supports_z_point_type): New function.
4814 (struct linux_target_ops): Wire s390_supports_z_point_type in.
4815
4816 2016-02-16 Yao Qi <yao.qi@linaro.org>
4817
4818 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
4819 PC. Get pc from regcache_read_pc.
4820
4821 2016-02-12 Yao Qi <yao.qi@linaro.org>
4822
4823 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
4824 or linux_get_pc_32bit.
4825 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
4826
4827 2016-02-12 Yao Qi <yao.qi@linaro.org>
4828
4829 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
4830 arm_linux_get_next_pcs_fixup.
4831
4832 2016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
4833
4834 * tracepoint.c (x_tracepoint_action_download): Change
4835 write_inferior_data_ptr to write_inferior_data_pointer.
4836 (cmd_qtstart): Likewise.
4837 (write_inferior_data_ptr): Remove.
4838 (download_agent_expr): Change write_inferior_data_ptr to
4839 write_inferior_data_pointer.
4840 (download_tracepoint_1): Likewise.
4841 (download_tracepoint): Likewise.
4842 (download_trace_state_variables): Likewise.
4843
4844 2016-02-11 Wei-cheng Wang <cole945@gmail.com>
4845 Marcin Kościelnicki <koriakin@0x04.net>
4846
4847 * tracepoint.c (struct tracepoint_action_ops): Remove.
4848 (struct tracepoint_action): Remove ops.
4849 (m_tracepoint_action_download, r_tracepoint_action_download)
4850 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
4851 size and offset accordingly.
4852 (m_tracepoint_action_ops, r_tracepoint_action_ops)
4853 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
4854 (tracepoint_action_send, tracepoint_action_download): New functions.
4855 Helpers for trace action handlers.
4856 (add_tracepoint_action): Remove setup actions ops.
4857 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
4858
4859 2016-02-10 Yao Qi <yao.qi@linaro.org>
4860
4861 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
4862
4863 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
4864
4865 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
4866 to AC_OUTPUT.
4867 * configure: Regenerate.
4868
4869 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
4870
4871 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
4872 void * to gdb_byte *.
4873 * linux-low.c (siginfo_fixup): Likewise.
4874 (linux_xfer_siginfo): Likewise.
4875 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
4876 Likewise.
4877 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
4878
4879 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
4880
4881 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
4882 to srv_tgtobj.
4883 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
4884 to srv_tgtobj.
4885 * linux-x86-low.c [__x86_64__]: Include
4886 "nat/amd64-linux-siginfo.h".
4887 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
4888 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
4889 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
4890 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
4891 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
4892 (cpt_si_fd, si_timerid, si_overrun): Move from
4893 nat/amd64-linux-siginfo.c.
4894 * Makefile.in (amd64-linux-siginfo.o:): New rule.
4895
4896 2016-01-28 Simon Marchi <simon.marchi@ericsson.com>
4897
4898 * server.c (skip_to_semicolon): Remove.
4899 (process_point_options): Use strchrnul instead of
4900 skip_to_semicolon.
4901
4902 2016-01-26 Yao Qi <yao.qi@linaro.org>
4903
4904 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
4905 * linux-low.c (install_software_single_step_breakpoints): Don't
4906 call regcache_read_pc.
4907 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
4908 argument pc.
4909
4910 2016-01-26 Yao Qi <yao.qi@linaro.org>
4911
4912 * linux-low.c (install_software_single_step_breakpoints): Call
4913 regcache_read_pc instead of get_pc.
4914
4915 2016-01-26 Yao Qi <yao.qi@linaro.org>
4916
4917 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
4918 (unblock_async_io): Rename to ...
4919 (block_unblock_async_io): ... it. New function.
4920 (enable_async_io): Don't install SIGIO handler. Unblock it
4921 instead.
4922 (disable_async_io): Don't ignore SIGIO. Block it instead.
4923 (initialize_async_io): Install SIGIO handler. Don't call
4924 unblock_async_io.
4925
4926 2016-01-26 Yao Qi <yao.qi@linaro.org>
4927
4928 * remote-utils.c (getpkt): If the buffer isn't empty, and the
4929 first character is '\003', call *the_target->request_interrupt.
4930
4931 2016-01-25 Yao Qi <yao.qi@linaro.org>
4932
4933 * remote-utils.c (new_thread_notify): Remove.
4934 (dead_thread_notify): Likewise.
4935 * remote-utils.h (new_thread_notify): Remove declaration.
4936 (dead_thread_notify): Likewise.
4937
4938 2016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
4939
4940 * gdb.trace/pending.exp: Fix expected message on continue.
4941
4942 2016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
4943
4944 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
4945 it works properly on big-endian machines where sizeof (CORE_ADDR)
4946 != sizeof (void *).
4947
4948 2016-01-21 Pedro Alves <palves@redhat.com>
4949
4950 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
4951 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
4952 * configure: Regenerate.
4953
4954 2016-01-21 Yao Qi <yao.qi@linaro.org>
4955
4956 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
4957 is_thumb and set it according to CPSR saved on the stack.
4958 (get_next_pcs_syscall_next_pc): Pass is_thumb to
4959 arm_sigreturn_next_pc.
4960
4961 2016-01-18 Yao Qi <yao.qi@linaro.org>
4962
4963 * linux-low.c (linux_set_pc_64bit): New function.
4964 (linux_get_pc_64bit): New function.
4965 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
4966 Declare.
4967 * linux-sparc-low.c (debug_threads): Remove declaration.
4968 (sparc_get_pc): Remove.
4969 (the_low_target): Use linux_get_pc_64bit instead of
4970 sparc_get_pc.
4971 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
4972 (the_low_target): Use linux_get_pc_64bit and
4973 linux_set_pc_64bit.
4974
4975 2016-01-18 Yao Qi <yao.qi@linaro.org>
4976
4977 * linux-arm-low.c (debug_threads): Remove declaration.
4978 (arm_get_pc, arm_set_pc): Remove.
4979 (the_low_target): Use linux_get_pc_32bit and
4980 linux_set_pc_32bit.
4981 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
4982 (the_low_target): Use linux_get_pc_32bit and
4983 linux_set_pc_32bit.
4984 * linux-cris-low.c (debug_threads): Remove declaration.
4985 (cris_get_pc, cris_set_pc,): Remove.
4986 (the_low_target): Use linux_get_pc_32bit and
4987 linux_set_pc_32bit.
4988 * linux-crisv32-low.c (debug_threads): Remove declaration.
4989 (cris_get_pc, cris_set_pc): Remove.
4990 (the_low_target): Use linux_get_pc_32bit and
4991 linux_set_pc_32bit.
4992 * linux-low.c: Include inttypes.h.
4993 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
4994 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
4995 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
4996 (the_low_target): Use linux_get_pc_32bit and
4997 linux_set_pc_32bit.
4998 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
4999 (the_low_target): Use linux_get_pc_32bit and
5000 linux_set_pc_32bit.
5001 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
5002 (the_low_target): Use linux_get_pc_32bit and
5003 linux_set_pc_32bit.
5004 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
5005 (the_low_target): Use linux_get_pc_32bit and
5006 linux_set_pc_32bit.
5007 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
5008 (the_low_target): Use linux_get_pc_32bit and
5009 linux_set_pc_32bit.
5010
5011 2016-01-18 Gary Benson <gbenson@redhat.com>
5012
5013 * configure.ac (AC_FUNC_FORK): New check.
5014 * config.in: Regenerate.
5015 * configure: Likewise.
5016
5017 2016-01-14 Yao Qi <yao.qi@linaro.org>
5018
5019 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
5020 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
5021 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
5022 arm_get_next_pcs_ctor.
5023
5024 2016-01-12 Josh Stone <jistone@redhat.com>
5025 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5026
5027 * inferiors.h: Include "gdb_vecs.h".
5028 (struct process_info): Add syscalls_to_catch.
5029 * inferiors.c (remove_process): Free syscalls_to_catch.
5030 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
5031 syscall_return stops.
5032 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
5033 * server.c (handle_general_set): Handle QCatchSyscalls.
5034 (handle_query): Report support for QCatchSyscalls.
5035 * target.h (struct target_ops): Add supports_catch_syscall.
5036 (target_supports_catch_syscall): New macro.
5037 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
5038 (struct lwp_info): Add syscall_state.
5039 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
5040 Maintain syscall_state and syscalls_to_catch across exec.
5041 (get_syscall_trapinfo): New function, proxy to the_low_target.
5042 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
5043 (linux_low_filter_event): Toggle syscall_state entry/return for
5044 syscall traps, and set it ignored for all others.
5045 (gdb_catching_syscalls_p): New function.
5046 (gdb_catch_this_syscall_p): New function.
5047 (linux_wait_1): Handle SYSCALL_SIGTRAP.
5048 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
5049 (linux_supports_catch_syscall): New function.
5050 (linux_target_ops): Install it.
5051 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
5052 (the_low_target): Install it.
5053
5054 2016-01-12 Mike Frysinger <vapier@gentoo.org>
5055
5056 * acinclude.m4: Include new ../warning.m4 file.
5057 * configure: Regenerated.
5058 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
5059
5060 2016-01-12 Mike Frysinger <vapier@gentoo.org>
5061
5062 * ax.c (is_goto_target): Mark static.
5063 * linux-low.c (register_addr): Likewise.
5064 (linux_fetch_registers, linux_store_registers): Likewise.
5065 * mem-break.c (any_persistent_commands): Fix old prototype.
5066 (add_commands_to_breakpoint): Mark static.
5067 * regcache.c (find_register_by_name): Delete unused func.
5068 * remote-utils.c (hex_or_minus_one): Mark static.
5069 * server.c (monitor_show_help): Mark static.
5070 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
5071 handle_v_requests): Likewise.
5072
5073 2016-01-12 Pedro Alves <palves@redhat.com>
5074
5075 Remove use of the registered trademark symbol throughout.
5076
5077 2016-01-08 Yao Qi <yao.qi@linaro.org>
5078
5079 * remote-utils.c (getpkt): If c is '\003', call target hook
5080 request_interrupt.
5081
5082 2016-01-06 Yao Qi <yao.qi@linaro.org>
5083
5084 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
5085 linux-aarch32-low.c.
5086 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
5087 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
5088 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
5089 (thumb2_breakpoint): Declare.
5090 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
5091 linux-aarch32-low.h.
5092 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
5093 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
5094 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
5095
5096 2016-01-01 Joel Brobecker <brobecker@adacore.com>
5097
5098 * gdbreplay.c (gdbreplay_version): Change copyright year in
5099 version message.
5100 * server.c (gdbserver_version): Likewise.
5101
5102 2015-12-28 Patrick Palka <patrick@parcs.ath.cx>
5103
5104 * server.c (crc32_table): Delete.
5105 (crc32): Use libiberty's xcrc32 function.
5106
5107 2015-12-22 Joel Brobecker <brobecker@adacore.com>
5108
5109 * lynx-low.c (lynx_delete_thread_callback): New function.
5110 (lynx_mourn): Properly delete our process and all of its
5111 threads. Remove call to clear_inferiors.
5112
5113 2015-12-22 Joel Brobecker <brobecker@adacore.com>
5114
5115 * target.c (thread_search_callback): Add check that
5116 the thread_stopped target callback is not NULL before
5117 calling it.
5118
5119 2015-12-21 Yao Qi <yao.qi@linaro.org>
5120
5121 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
5122 arm breakpoint.
5123
5124 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
5125
5126 * server.c (handle_query): Call target_supports_software_single_step.
5127
5128 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
5129
5130 * linux-low.c (single_step): New function.
5131 (linux_resume_one_lwp_throw): Call single_step.
5132 (start_step_over): Likewise.
5133
5134 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
5135
5136 * Makefile.in (SFILES): Append arch/arm-linux.c,
5137 arch/arm-get-next-pcs.c.
5138 (arm-linux.o): New rule.
5139 (arm-get-next-pcs.o): New rule.
5140 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
5141 arm-linux.o.
5142 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
5143 to linux-aarch32-low.c.
5144 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
5145 (arm_breakpoint_len, thumb_breakpoint): Likewise.
5146 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
5147 (thumb2_breakpoint_len): Likewise.
5148 (arm_is_thumb_mode): Make non-static.
5149 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
5150 from linux-aarch32-low.c.
5151 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
5152 (arm_breakpoint_len, thumb_breakpoint): Likewise.
5153 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
5154 (thumb2_breakpoint_len): Likewise.
5155 (arm_is_thumb_mode): New declaration.
5156 * linux-arm-low.c: Include arch/arm-linux.h
5157 aarch/arm-get-next-pcs.h, sys/syscall.h.
5158 (get_next_pcs_ops): New struct.
5159 (get_next_pcs_addr_bits_remove): New function.
5160 (get_next_pcs_is_thumb): New function.
5161 (get_next_pcs_read_memory_unsigned_integer): Likewise.
5162 (arm_sigreturn_next_pc): Likewise.
5163 (get_next_pcs_syscall_next_pc): Likewise.
5164 (arm_gdbserver_get_next_pcs): Likewise.
5165 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
5166 Initialize.
5167 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
5168 * server.h: Include gdb_vecs.h.
5169
5170 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
5171
5172 * Makefile.in (SFILES): Append common/common-regcache.c.
5173 (OBS): Append common-regcache.o.
5174 (common-regcache.o): New rule.
5175 * regcache.c (init_register_cache): Initialize cache to
5176 REG_UNAVAILABLE.
5177 (regcache_raw_read_unsigned): New function.
5178 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
5179 register_status enum.
5180
5181 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
5182
5183 * linux-aarch64-low.c (the_low_targets): Rename
5184 breakpoint_reinsert_addr to get_next_pcs.
5185 * linux-arm-low.c (the_low_targets): Likewise.
5186 * linux-bfin-low.c (the_low_targets): Likewise.
5187 * linux-cris-low.c (the_low_targets): Likewise.
5188 * linux-crisv32-low.c (the_low_targets): Likewise.
5189 * linux-low.c (can_software_single_step): Likewise.
5190 (install_software_single_step_breakpoints): New function.
5191 (start_step_over): Use install_software_single_step_breakpoints.
5192 * linux-low.h: New CORE_ADDR vector.
5193 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
5194 get_next_pcs.
5195 * linux-mips-low.c (the_low_targets): Likewise.
5196 * linux-nios2-low.c (the_low_targets): Likewise.
5197 * linux-sparc-low.c (the_low_targets): Likewise.
5198
5199 2015-12-17 Pedro Alves <palves@redhat.com>
5200
5201 * linux-low.c (linux_kill_one_lwp): Remove references to
5202 LinuxThreads.
5203 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
5204 to 'kill'.
5205 (linux_init_signals): Delete.
5206 (initialize_low): Adjust.
5207 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
5208
5209 2015-12-16 Pedro Alves <palves@redhat.com>
5210
5211 * configure.ac (compiler warning flags): When testing a
5212 -Wno-foo option, check whether -Wfoo works instead.
5213 * configure: Regenerate.
5214
5215 2015-12-11 Don Breazeal <donb@codesourcery.com>
5216
5217 * server.c (process_serial_event): Don't exit from gdbserver
5218 in remote mode if there are still active inferiors.
5219
5220 2015-12-11 Yao Qi <yao.qi@linaro.org>
5221
5222 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
5223 arm_breakpoint_at if the process is 32-bit.
5224
5225 2015-12-11 Yao Qi <yao.qi@linaro.org>
5226
5227 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
5228 arm breakpoint.
5229
5230 2015-12-07 Yao Qi <yao.qi@linaro.org>
5231
5232 * configure.srv: Append arm.o to srv_tgtobj for
5233 aarch64*-*-linux* target.
5234 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
5235 from linux-arm-low.c.
5236 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
5237 (arm_breakpoint_len, thumb_breakpoint): Likewise.
5238 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
5239 (thumb2_breakpoint_len): Likewise.
5240 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
5241 (arm_breakpoint_kinds): Likewise.
5242 (arm_breakpoint_kind_from_pc): Likewise.
5243 (arm_sw_breakpoint_from_kind): Likewise.
5244 (arm_breakpoint_kind_from_current_state): Likewise.
5245 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
5246 (arm_sw_breakpoint_from_kind): Declare.
5247 (arm_breakpoint_kind_from_current_state): Declare.
5248 (arm_breakpoint_at): Declare.
5249 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
5250 arm_sw_breakpoint_from_kind if process is 32-bit.
5251 (aarch64_breakpoint_kind_from_pc): New function.
5252 (aarch64_breakpoint_kind_from_current_state): New function.
5253 (the_low_target): Initialize fields breakpoint_kind_from_pc
5254 and breakpoint_kind_from_current_state.
5255 * linux-arm-low.c (arm_breakpoint_kinds): Move to
5256 linux-aarch32-low.c.
5257 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
5258 (arm_breakpoint, arm_breakpoint_len): Likewise.
5259 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
5260 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
5261 (arm_is_thumb_mode): Likewise.
5262 (arm_breakpoint_at): Likewise.
5263 (arm_breakpoint_kind_from_pc): Likewise.
5264 (arm_sw_breakpoint_from_kind): Likewise.
5265 (arm_breakpoint_kind_from_current_state): Likewise.
5266
5267 Revert:
5268 2015-08-04 Yao Qi <yao.qi@linaro.org>
5269
5270 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
5271 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
5272 * server.c (extended_protocol): Remove "static".
5273 * server.h (extended_protocol): Declare it.
5274
5275 2015-12-04 Josh Stone <jistone@redhat.com>
5276
5277 * target.h (struct target_ops) <arch_setup>: Rename to ...
5278 (struct target_ops) <post_create_inferior>: ... this.
5279 (target_arch_setup): Rename to ...
5280 (target_post_create_inferior): ... this, calling post_create_inferior.
5281 * server.c (start_inferior): Update target_arch_setup calls to
5282 target_post_create_inferior.
5283 * linux-low.c (linux_low_ptrace_options): Forward declare.
5284 (linux_arch_setup): Update its comment for general use.
5285 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
5286 (struct linux_target_ops): Use linux_post_create_inferior.
5287 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
5288 to post_create_inferior.
5289 * nto-low.c (struct nto_target_ops): Likewise.
5290 * spu-low.c (struct spu_target_ops): Likewise.
5291 * win32-low.c (struct win32_target_ops): Likewise.
5292
5293 2015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
5294
5295 * linux-arm-low.c: Remove duplicate arch/arm.h include.
5296
5297 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
5298
5299 * linux-arm-low.c (arm_reinsert_addr): Remove function.
5300 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
5301 * linux-cris-low.c (cris_reinsert_addr> Remove function.
5302 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
5303 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
5304 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
5305 * linux-mips-low.c (mips_reinsert_addr): Remove function.
5306 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
5307 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
5308 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
5309 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
5310 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
5311
5312 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
5313
5314 * linux-low.c (linux_look_up_symbols): Don't call
5315 linux_supports_traceclone.
5316 * linux-low.h (thread_db_init): Remove use_events argument.
5317 * thread-db.c (thread_db_use_event): Remove global variable.
5318 (struct thread_db) <td_thr_event_enable_p>: Remove field.
5319 (struct thread_db) <td_create_bp>: Remove field.
5320 (thread_db_create_event): Remove function.
5321 (thread_db_enable_reporting): Likewise.
5322 (find_one_thread): Don't check for thread_db_use_events.
5323 (attach_thread): Likewise.
5324 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
5325 (try_thread_db_load_1): Don't check for thread_db_use_events.
5326 (thread_db_init): Remove use_events argument and thread events
5327 handling.
5328 (remove_thread_event_breakpoints): Remove function.
5329 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
5330
5331 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
5332
5333 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
5334 New function.
5335 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
5336 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
5337 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
5338 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
5339 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
5340 Initialize.
5341 * linux-crisv32-low.c (cris_supports_hardware_single_step):
5342 New function.
5343 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
5344 * linux-low.c (can_hardware_single_step): Use
5345 supports_hardware_single_step.
5346 (can_software_single_step): New function.
5347 (start_step_over): Call can_software_single_step.
5348 (linux_supports_hardware_single_step): New function.
5349 (struct target_ops) <supports_software_single_step>: Initialize.
5350 * linux-low.h (struct linux_target_ops)
5351 <supports_hardware_single_step>: Initialize.
5352 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
5353 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
5354 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
5355 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
5356 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
5357 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
5358 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
5359 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
5360 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
5361 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
5362 Initialize.
5363 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
5364 (struct linux_target_ops) <tile_supports_hardware_single_step>:
5365 Initialize.
5366 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
5367 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
5368 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
5369 New function.
5370 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
5371 * target.h (struct target_ops): <supports_software_single_step>:
5372 New field.
5373 (target_supports_software_single_step): New macro.
5374
5375 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
5376
5377 * linux-low.c (linux_wait_1): Fix pc advance condition.
5378 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
5379 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
5380
5381 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
5382
5383 * linux-arm-low.c (arm_is_thumb_mode): New function.
5384 (arm_breakpoint_at): Use arm_is_thumb_mode.
5385 (arm_breakpoint_kind_from_current_state): New function.
5386 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
5387 Initialize.
5388 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
5389 (linux_breakpoint_kind_from_current_state): New function.
5390 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
5391 * linux-low.h (struct linux_target_ops)
5392 <breakpoint_kind_from_current_state>: New field.
5393 * target.h (struct target_ops): Likewise.
5394 (target_breakpoint_kind_from_current_state): New macro.
5395
5396 2015-11-30 Pedro Alves <palves@redhat.com>
5397
5398 * linux-low.c (linux_resume): Wake up the event loop before
5399 returning.
5400
5401 2015-11-30 Pedro Alves <palves@redhat.com>
5402
5403 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
5404 check.
5405 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
5406 to -1.
5407 * target.c (struct thread_search): New structure.
5408 (thread_search_callback): New function.
5409 (prev_general_thread): New global.
5410 (prepare_to_access_memory, done_accessing_memory): New functions.
5411 * target.h (prepare_to_access_memory, done_accessing_memory):
5412 Replace macros with function declarations.
5413
5414 2015-11-30 Pedro Alves <palves@redhat.com>
5415
5416 PR 14618
5417 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
5418 report TARGET_WAITKIND_NO_RESUMED.
5419 * remote-utils.c (prepare_resume_reply): Handle
5420 TARGET_WAITKIND_NO_RESUMED.
5421 * server.c (report_no_resumed): New global.
5422 (handle_query) <qSupported>: Handle "no-resumed+". Report
5423 "no-resumed+" support.
5424 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
5425 return error if the client doesn't support no-resumed events.
5426 (push_stop_notification): New function.
5427 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
5428 events if the client supports them.
5429
5430 2015-11-30 Pedro Alves <palves@redhat.com>
5431
5432 * linux-low.c (thread_still_has_status_pending_p): Don't check
5433 vCont;t here.
5434 (lwp_resumed): New function.
5435 (status_pending_p_callback): Return early if the LWP is not
5436 supposed to be resumed.
5437
5438 2015-11-30 Pedro Alves <palves@redhat.com>
5439
5440 * linux-low.c (handle_extended_wait): Assert that the LWP's
5441 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
5442 thread create events, leave the new child's status pending.
5443 (linux_low_filter_event): If GDB wants to hear about thread exit
5444 events, leave the LWP marked dead and don't delete it.
5445 (linux_wait_for_event_filtered): Don't check for thread exit.
5446 (filter_exit_event): New function.
5447 (linux_wait_1): Use it, when returning an exit event.
5448 (linux_resume_one_lwp_throw): Assert that the LWP's
5449 waitstatus is TARGET_WAITKIND_IGNORE.
5450 * remote-utils.c (prepare_resume_reply): Handle
5451 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
5452 * server.c (report_thread_events): New global.
5453 (handle_general_set): Handle QThreadEvents.
5454 (handle_query) <qSupported>: Handle and report QThreadEvents+;
5455 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
5456 TARGET_WAITKIND_THREAD_EXITED.
5457 * server.h (report_thread_events): Declare.
5458
5459 2015-11-30 Pedro Alves <palves@redhat.com>
5460
5461 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
5462 the thread's last_resume_kind was resume_stop.
5463
5464 2015-11-30 Pedro Alves <palves@redhat.com>
5465
5466 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
5467 before returning.
5468
5469 2015-11-30 Pedro Alves <palves@redhat.com>
5470
5471 * server.c (handle_v_requests): Handle vCtrlC.
5472
5473 2015-11-30 Pedro Alves <palves@redhat.com>
5474
5475 * gdbthread.h (find_any_thread_of_pid): Declare.
5476 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
5477 functions.
5478 * server.c (handle_query): If current_thread is NULL, look for
5479 another thread of the selected process.
5480
5481 2015-11-26 Daniel Colascione <dancol@dancol.org>
5482 Simon Marchi <simon.marchi@ericsson.com>
5483
5484 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
5485 * server.c (handle_qxfer_threads_worker): Refactor to include thread
5486 name in reply.
5487 * target.h (struct target_ops) <thread_name>: New field.
5488 (target_thread_name): New macro.
5489
5490 2015-11-23 Joel Brobecker <brobecker@adacore.com>
5491
5492 * regcache.h (regcache_invalidate_pid): Add declaration.
5493 * regcache.c (regcache_invalidate_pid): New function, extracted
5494 from regcache_invalidate.
5495 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
5496 Add trivial documentation comment.
5497 * lynx-low.c: Use regcache_invalidate_pid instead of
5498 regcache_invalidate.
5499
5500 2015-11-23 Joel Brobecker <brobecker@adacore.com>
5501
5502 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
5503 and Elf64_auxv_t if the target is Android.
5504
5505 2015-11-22 Doug Evans <xdje42@gmail.com>
5506
5507 * target.h: #include <sys/types.h>.
5508
5509 2015-11-19 Pedro Alves <palves@redhat.com>
5510
5511 * linux-low.c (linux_process_qsupported): Change prototype.
5512 Adjust.
5513 * linux-low.h (struct linux_target_ops) <process_qsupported>:
5514 Change prototype.
5515 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
5516 and adjust to loop over all features.
5517 * server.c (handle_query) <qSupported>: Adjust to call
5518 target_process_qsupported once, passing it a vector of unprocessed
5519 features.
5520 * target.h (struct target_ops) <process_qsupported>: Change
5521 prototype.
5522 (target_process_qsupported): Adjust.
5523
5524 2015-11-19 Pedro Alves <palves@redhat.com>
5525
5526 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
5527 mode.
5528 * configure: Regenerate.
5529
5530 2015-11-19 Pedro Alves <palves@redhat.com>
5531
5532 * configure: Regenerate.
5533
5534 2015-11-19 Yao Qi <yao.qi@linaro.org>
5535
5536 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
5537 type to uint32_t.
5538
5539 2015-11-19 Yao Qi <yao.qi@linaro.org>
5540
5541 * linux-aarch64-low.c (enum aarch64_operand_type): New.
5542 (struct aarch64_operand): Move enum out.
5543
5544 2015-11-19 Yao Qi <yao.qi@linaro.org>
5545
5546 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
5547 struct user_fpsimd_state *.
5548 (aarch64_store_fpregset): Likewise.
5549
5550 2015-11-19 Yao Qi <yao.qi@linaro.org>
5551
5552 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
5553 struct user_pt_regs *.
5554 (aarch64_store_gregset): Likewise.
5555
5556 2015-11-18 Pedro Alves <palves@redhat.com>
5557
5558 * Makefile.in (all_object_files): Add $IPA_OBJS.
5559
5560 2015-11-17 Pedro Alves <palves@redhat.com>
5561
5562 * win32-low.c (win32_resume): Use gdb_signal_from_host,
5563 GDB_SIGNAL_0 and gdb_signal_to_string.
5564
5565 2015-11-17 Pedro Alves <palves@redhat.com>
5566
5567 * win32-low.c (handle_output_debug_string): Remove parameter.
5568 (win32_kill): Remove our_status local and adjust call to
5569 handle_output_debug_string.
5570 (get_child_debug_event): Adjust call to
5571 handle_output_debug_string.
5572
5573 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
5574
5575 * linux-mips-low.c (mips_fill_gregset): Add cast.
5576 (mips_store_gregset): Likewise.
5577 (mips_fill_fpregset): Likewise.
5578 (mips_store_fpregset): Likewise.
5579
5580 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
5581
5582 * linux-mips-low.c (mips_add_watchpoint): Rename private to
5583 priv.
5584
5585 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
5586
5587 * linux-mips-low.c (mips_linux_new_thread): Change type of
5588 watch_type to enum target_hw_bp_type.
5589
5590 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
5591
5592 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
5593 Change return type to arm_hwbp_type.
5594
5595 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
5596
5597 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
5598 (arm_store_gregset): Likewise.
5599 * linux-arm-low.c (arm_get_hwcap): Likewise.
5600 (arm_read_description): Likewise.
5601
5602 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
5603
5604 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
5605
5606 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
5607
5608 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
5609 (ppc_fill_vsxregset): Likewise.
5610 (ppc_store_vsxregset): Likewise.
5611 (ppc_fill_vrregset): Likewise.
5612 (ppc_store_vrregset): Likewise.
5613 (ppc_fill_evrregset): Likewise.
5614 (ppc_store_evrregset): Likewise.
5615
5616 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
5617
5618 * linux-ppc-low.c (ppc_usrregs_info): Remove
5619 forward-declaration.
5620 (ppc_arch_setup): Move lower in file.
5621
5622 2015-10-30 Simon Marchi <simon.marchi@ericsson.com>
5623
5624 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
5625 (ps_pdwrite): Likewise.
5626
5627 2015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
5628
5629 * linux-arm-low.c (arm_new_thread): Move pointer dereference
5630 to after assert checks.
5631
5632 2015-10-29 Simon Marchi <simon.marchi@ericsson.com>
5633
5634 * proc-service.c (ps_pdread): Add/adjust casts.
5635 (ps_pdwrite): Add/adjust casts.
5636
5637 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
5638
5639 * server.c (handle_search_memory_1): Cast return value of
5640 memmem.
5641
5642 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
5643
5644 * server.c (write_qxfer_response): Change type of data to
5645 gdb_byte *.
5646
5647 2015-10-29 Pedro Alves <palves@redhat.com>
5648
5649 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
5650
5651 2015-10-29 Pedro Alves <palves@redhat.com>
5652
5653 * tracepoint.c (clear_installed_tracepoints): Add casts.
5654
5655 2015-10-29 Pedro Alves <palves@redhat.com>
5656
5657 * server.c (handle_v_cont, process_serial_event): Add enum
5658 gdb_signal casts to signal parsing code.
5659
5660 2015-10-29 Pedro Alves <palves@redhat.com>
5661
5662 * linux-low.h (NULL_REGSET): Define.
5663 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
5664 * linux-arm-low.c (arm_regsets): Likewise.
5665 * linux-crisv32-low.c (cris_regsets): Likewise.
5666 * linux-m68k-low.c (m68k_regsets): Likewise.
5667 * linux-mips-low.c (mips_regsets): Likewise.
5668 * linux-nios2-low.c (nios2_regsets): Likewise.
5669 * linux-ppc-low.c (ppc_regsets): Likewise.
5670 * linux-s390-low.c (s390_regsets): Likewise.
5671 * linux-sh-low.c (sh_regsets): Likewise.
5672 * linux-sparc-low.c (sparc_regsets): Likewise.
5673 * linux-tic6x-low.c (tic6x_regsets): Likewise.
5674 * linux-tile-low.c (tile_regsets): Likewise.
5675 * linux-x86-low.c (x86_regsets): Likewise.
5676 * linux-xtensa-low.c (xtensa_regsets): Likewise.
5677
5678 2015-10-29 Pedro Alves <palves@redhat.com>
5679
5680 * linux-low.h (NULL_REGSET): Define.
5681 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
5682 * linux-arm-low.c (arm_regsets): Likewise.
5683 * linux-crisv32-low.c (cris_regsets): Likewise.
5684 * linux-m68k-low.c (m68k_regsets): Likewise.
5685 * linux-mips-low.c (mips_regsets): Likewise.
5686 * linux-nios2-low.c (nios2_regsets): Likewise.
5687 * linux-ppc-low.c (ppc_regsets): Likewise.
5688 * linux-s390-low.c (s390_regsets): Likewise.
5689 * linux-sh-low.c (sh_regsets): Likewise.
5690 * linux-sparc-low.c (sparc_regsets): Likewise.
5691 * linux-tic6x-low.c (tic6x_regsets): Likewise.
5692 * linux-tile-low.c (tile_regsets): Likewise.
5693 * linux-x86-low.c (x86_regsets): Likewise.
5694 * linux-xtensa-low.c (xtensa_regsets): Likewise.
5695
5696 2015-10-26 Doug Evans <dje@google.com>
5697
5698 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
5699
5700 2015-10-26 Doug Evans <dje@google.com>
5701
5702 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
5703
5704 2015-10-26 Doug Evans <dje@google.com>
5705
5706 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
5707 for debug_printf.
5708 (attach_thread, find_new_threads_callback): Ditto.
5709
5710 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
5711
5712 * mem-break.h (set_breakpoint_data): Remove.
5713
5714 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
5715
5716 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
5717 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
5718 (initialize_low): Remove set_breakpoint_data call.
5719 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
5720 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
5721 (initialize_low): Remove set_breakpoint_data call.
5722 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
5723 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
5724 (initialize_low): Remove set_breakpoint_data call.
5725
5726 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
5727
5728 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
5729 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
5730 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
5731 * target.h (target_breakpoint_kind_from_pc): New macro.
5732
5733 2015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
5734
5735 * linux-low.c (default_breakpoint_kind_from_pc): New function.
5736 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
5737 the default breakpoint kind.
5738
5739 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
5740
5741 * linux-arm-low.c (arm_supports_z_point_type): Add software
5742 breakpoint support.
5743
5744 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
5745
5746 * linux-arm-low.c: Refactor breakpoint definitions.
5747 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
5748 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
5749
5750 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
5751
5752 * Makefile.in: Add arm.c/o.
5753 * configure.srv: Likewise.
5754 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
5755 (arm_breakpoint_kind_from_pc): New function.
5756 (arm_sw_breakpoint_from_kind): Return proper kind.
5757 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
5758
5759 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
5760
5761 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
5762 removal.
5763 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
5764 (struct raw_breakpoint) <size>: Remove.
5765 (struct raw_breakpoint) <kind>: Add.
5766 (bp_size): New function.
5767 (bp_opcode): Likewise.
5768 (find_raw_breakpoint_at): Adjust for kind.
5769 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
5770 (remove_memory_breakpoint): Adjust for kind call bp_size.
5771 (set_raw_breakpoint_at): Adjust for kind.
5772 (set_breakpoint): Likewise.
5773 (set_breakpoint_at): Call breakpoint_kind_from_pc.
5774 (delete_raw_breakpoint): Adjust for kind.
5775 (delete_breakpoint): Likewise.
5776 (find_gdb_breakpoint): Likewise.
5777 (set_gdb_breakpoint_1): Likewise.
5778 (set_gdb_breakpoint): Likewise.
5779 (delete_gdb_breakpoint_1): Likewise.
5780 (delete_gdb_breakpoint): Likewise.
5781 (uninsert_raw_breakpoint): Likewise.
5782 (reinsert_raw_breakpoint): Likewise.
5783 (set_breakpoint_data): Remove.
5784 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
5785 (check_mem_read): Adjust for kind call bp_size.
5786 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
5787 (clone_one_breakpoint): Adjust for kind.
5788 * mem-break.h (set_gdb_breakpoint): Likewise.
5789 (delete_gdb_breakpoint): Likewise.
5790 * server.c (process_serial_event): Likewise.
5791
5792 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
5793
5794 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
5795 (struct linux_target_ops) <breakpoint>: Remove.
5796 (struct linux_target_ops) <breakpoint_len>: Remove.
5797 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
5798 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
5799 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
5800 (arm_sw_breakpoint_from_kind): New function.
5801 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
5802 (struct linux_target_ops) <breakpoint>: Remove.
5803 (struct linux_target_ops) <breakpoint_len>: Remove.
5804 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
5805 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
5806 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
5807 (struct linux_target_ops) <breakpoint>: Remove.
5808 (struct linux_target_ops) <breakpoint_len>: Remove.
5809 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
5810 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
5811 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
5812 (struct linux_target_ops) <breakpoint>: Remove.
5813 (struct linux_target_ops) <breakpoint_len>: Remove.
5814 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
5815 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
5816 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
5817 and sw_breakpoint_from_kind to increment the pc.
5818 (linux_breakpoint_kind_from_pc): New function.
5819 (linux_sw_breakpoint_from_kind): New function.
5820 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
5821 (initialize_low): Call breakpoint_kind_from_pc and
5822 sw_breakpoint_from_kind to replace breakpoint_data/len.
5823 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
5824 New field.
5825 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
5826 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
5827 (struct linux_target_ops) <breakpoint>: Remove.
5828 (struct linux_target_ops) <breakpoint_len>: Remove.
5829 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
5830 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
5831 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
5832 (struct linux_target_ops) <breakpoint>: Remove.
5833 (struct linux_target_ops) <breakpoint_len>: Remove.
5834 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
5835 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
5836 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
5837 (struct linux_target_ops) <breakpoint>: Remove.
5838 (struct linux_target_ops) <breakpoint_len>: Remove.
5839 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
5840 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
5841 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
5842 (struct linux_target_ops) <breakpoint>: Remove.
5843 (struct linux_target_ops) <breakpoint_len>: Remove.
5844 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
5845 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
5846 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
5847 (struct linux_target_ops) <breakpoint>: Remove.
5848 (struct linux_target_ops) <breakpoint_len>: Remove.
5849 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
5850 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
5851 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
5852 (struct linux_target_ops) <breakpoint>: Remove.
5853 (struct linux_target_ops) <breakpoint_len>: Remove.
5854 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
5855 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
5856 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
5857 (struct linux_target_ops) <breakpoint>: Remove.
5858 (struct linux_target_ops) <breakpoint_len>: Remove.
5859 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
5860 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
5861 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
5862 (struct linux_target_ops) <breakpoint>: Remove.
5863 (struct linux_target_ops) <breakpoint_len>: Remove.
5864 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
5865 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
5866 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
5867 (struct linux_target_ops) <breakpoint>: Remove.
5868 (struct linux_target_ops) <breakpoint_len>: Remove.
5869 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
5870 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
5871 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
5872 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
5873 (struct linux_target_ops) <breakpoint>: Remove.
5874 (struct linux_target_ops) <breakpoint_len>: Remove.
5875 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
5876 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
5877 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
5878 (struct linux_target_ops) <breakpoint>: Remove.
5879 (struct linux_target_ops) <breakpoint_len>: Remove.
5880 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
5881 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
5882
5883 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
5884
5885 * linux-cris-low.c (cris_get_pc): Remove void arg.
5886
5887 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
5888
5889 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
5890 variable name.
5891
5892 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
5893
5894 * inferiors.c (thread_pid_matches_callback): New function.
5895 (find_thread_process): New function.
5896 (remove_thread): Reset current_thread.
5897 (remove_process): Assert threads have been removed first.
5898
5899 2015-10-15 Yao Qi <yao.qi@linaro.org>
5900
5901 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
5902 if it is 3.
5903 (aarch64_remove_point): Likewise.
5904 * regcache.c (regcache_register_size): New function.
5905
5906 2015-10-12 Yao Qi <yao.qi@linaro.org>
5907
5908 * linux-aarch64-low.c: Update all callers as emit_load_store
5909 is renamed to aarch64_emit_load_store.
5910
5911 2015-10-12 Yao Qi <yao.qi@linaro.org>
5912
5913 * linux-aarch64-low.c: Update all callers of function renaming
5914 from emit_insn to aarch64_emit_insn.
5915
5916 2015-10-12 Yao Qi <yao.qi@linaro.org>
5917
5918 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
5919 arch/aarch64-insn.h.
5920 (struct aarch64_memory_operand): Likewise.
5921 (ENCODE): Likewise.
5922 (emit_insn): Move to arch/aarch64-insn.c.
5923 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
5924 (emit_load_store): Move to arch/aarch64-insn.c.
5925 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
5926 (can_encode_int32): Remove.
5927
5928 2015-10-12 Yao Qi <yao.qi@linaro.org>
5929
5930 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
5931 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
5932 (aarch64_relocate_instruction): Likewise.
5933 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
5934 (struct aarch64_insn_visitor): Likewise.
5935
5936 2015-10-12 Yao Qi <yao.qi@linaro.org>
5937
5938 * linux-aarch64-low.c (struct aarch64_insn_data): New.
5939 (struct aarch64_insn_visitor): New.
5940 (struct aarch64_insn_relocation_data): New.
5941 (aarch64_ftrace_insn_reloc_b): New function.
5942 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
5943 (aarch64_ftrace_insn_reloc_cb): Likewise.
5944 (aarch64_ftrace_insn_reloc_tb): Likewise.
5945 (aarch64_ftrace_insn_reloc_adr): Likewise.
5946 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
5947 (aarch64_ftrace_insn_reloc_others): Likewise.
5948 (visitor): New.
5949 (aarch64_relocate_instruction): Use visitor.
5950
5951 2015-10-12 Yao Qi <yao.qi@linaro.org>
5952
5953 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
5954 int. Add argument buf.
5955 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
5956 aarch64_relocate_instruction.
5957
5958 2015-10-12 Yao Qi <yao.qi@linaro.org>
5959
5960 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
5961 argument insn. Remove local variable insn. Don't call
5962 target_read_uint32.
5963 (aarch64_install_fast_tracepoint_jump_pad): Call
5964 target_read_uint32.
5965
5966 2015-09-30 Yao Qi <yao.qi@linaro.org>
5967
5968 * linux-aarch64-low.c (emit_movk): Shorten a long line.
5969 (emit_load_store_pair): Likewise.
5970
5971 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
5972
5973 * dll.c (match_dll): Add cast(s).
5974 (unloaded_dll): Likewise.
5975 * linux-low.c (second_thread_of_pid_p): Likewise.
5976 (delete_lwp_callback): Likewise.
5977 (count_events_callback): Likewise.
5978 (select_event_lwp_callback): Likewise.
5979 (linux_set_resume_request): Likewise.
5980 * server.c (accumulate_file_name_length): Likewise.
5981 (emit_dll_description): Likewise.
5982 (handle_qxfer_threads_worker): Likewise.
5983 (visit_actioned_threads): Likewise.
5984 * thread-db.c (any_thread_of): Likewise.
5985 * tracepoint.c (same_process_p): Likewise.
5986 (match_blocktype): Likewise.
5987 (build_traceframe_info_xml): Likewise.
5988
5989 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
5990
5991 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
5992 assignment.
5993 (gdb_unparse_agent_expr): Likewise.
5994 * hostio.c (require_data): Likewise.
5995 (handle_pread): Likewise.
5996 * linux-low.c (disable_regset): Likewise.
5997 (fetch_register): Likewise.
5998 (store_register): Likewise.
5999 (get_dynamic): Likewise.
6000 (linux_qxfer_libraries_svr4): Likewise.
6001 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
6002 (set_fast_tracepoint_jump): Likewise.
6003 (uninsert_fast_tracepoint_jumps_at): Likewise.
6004 (reinsert_fast_tracepoint_jumps_at): Likewise.
6005 (validate_inserted_breakpoint): Likewise.
6006 (clone_agent_expr): Likewise.
6007 * regcache.c (init_register_cache): Likewise.
6008 * remote-utils.c (putpkt_binary_1): Likewise.
6009 (decode_M_packet): Likewise.
6010 (decode_X_packet): Likewise.
6011 (look_up_one_symbol): Likewise.
6012 (relocate_instruction): Likewise.
6013 (monitor_output): Likewise.
6014 * server.c (handle_search_memory): Likewise.
6015 (handle_qxfer_exec_file): Likewise.
6016 (handle_qxfer_libraries): Likewise.
6017 (handle_qxfer): Likewise.
6018 (handle_query): Likewise.
6019 (handle_v_cont): Likewise.
6020 (handle_v_run): Likewise.
6021 (captured_main): Likewise.
6022 * target.c (write_inferior_memory): Likewise.
6023 * thread-db.c (try_thread_db_load_from_dir): Likewise.
6024 * tracepoint.c (init_trace_buffer): Likewise.
6025 (add_tracepoint_action): Likewise.
6026 (add_traceframe): Likewise.
6027 (add_traceframe_block): Likewise.
6028 (cmd_qtdpsrc): Likewise.
6029 (cmd_qtdv): Likewise.
6030 (cmd_qtstatus): Likewise.
6031 (response_source): Likewise.
6032 (response_tsv): Likewise.
6033 (cmd_qtnotes): Likewise.
6034 (gdb_collect): Likewise.
6035 (initialize_tracepoint): Likewise.
6036
6037 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
6038
6039 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
6040 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
6041 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
6042 <NOP>: New.
6043 (enum aarch64_condition_codes): New enum.
6044 (w0): New static global.
6045 (fp): Likewise.
6046 (lr): Likewise.
6047 (struct aarch64_memory_operand) <type>: New
6048 MEMORY_OPERAND_POSTINDEX type.
6049 (postindex_memory_operand): New helper function.
6050 (emit_ret): New function.
6051 (emit_load_store_pair): New function, factored out of emit_stp
6052 with support for MEMORY_OPERAND_POSTINDEX.
6053 (emit_stp): Rewrite using emit_load_store_pair.
6054 (emit_ldp): New function.
6055 (emit_load_store): Likewise.
6056 (emit_ldr): Mention post-index instruction in comment.
6057 (emit_ldrh): New function.
6058 (emit_ldrb): New function.
6059 (emit_ldrsw): Mention post-index instruction in comment.
6060 (emit_str): Likewise.
6061 (emit_subs): New function.
6062 (emit_cmp): Likewise.
6063 (emit_and): Likewise.
6064 (emit_orr): Likewise.
6065 (emit_orn): Likewise.
6066 (emit_eor): Likewise.
6067 (emit_mvn): Likewise.
6068 (emit_lslv): Likewise.
6069 (emit_lsrv): Likewise.
6070 (emit_asrv): Likewise.
6071 (emit_mul): Likewise.
6072 (emit_sbfm): Likewise.
6073 (emit_sbfx): Likewise.
6074 (emit_ubfm): Likewise.
6075 (emit_ubfx): Likewise.
6076 (emit_csinc): Likewise.
6077 (emit_cset): Likewise.
6078 (emit_nop): Likewise.
6079 (emit_ops_insns): New helper function.
6080 (emit_pop): Likewise.
6081 (emit_push): Likewise.
6082 (aarch64_emit_prologue): New function.
6083 (aarch64_emit_epilogue): Likewise.
6084 (aarch64_emit_add): Likewise.
6085 (aarch64_emit_sub): Likewise.
6086 (aarch64_emit_mul): Likewise.
6087 (aarch64_emit_lsh): Likewise.
6088 (aarch64_emit_rsh_signed): Likewise.
6089 (aarch64_emit_rsh_unsigned): Likewise.
6090 (aarch64_emit_ext): Likewise.
6091 (aarch64_emit_log_not): Likewise.
6092 (aarch64_emit_bit_and): Likewise.
6093 (aarch64_emit_bit_or): Likewise.
6094 (aarch64_emit_bit_xor): Likewise.
6095 (aarch64_emit_bit_not): Likewise.
6096 (aarch64_emit_equal): Likewise.
6097 (aarch64_emit_less_signed): Likewise.
6098 (aarch64_emit_less_unsigned): Likewise.
6099 (aarch64_emit_ref): Likewise.
6100 (aarch64_emit_if_goto): Likewise.
6101 (aarch64_emit_goto): Likewise.
6102 (aarch64_write_goto_address): Likewise.
6103 (aarch64_emit_const): Likewise.
6104 (aarch64_emit_call): Likewise.
6105 (aarch64_emit_reg): Likewise.
6106 (aarch64_emit_pop): Likewise.
6107 (aarch64_emit_stack_flush): Likewise.
6108 (aarch64_emit_zero_ext): Likewise.
6109 (aarch64_emit_swap): Likewise.
6110 (aarch64_emit_stack_adjust): Likewise.
6111 (aarch64_emit_int_call_1): Likewise.
6112 (aarch64_emit_void_call_2): Likewise.
6113 (aarch64_emit_eq_goto): Likewise.
6114 (aarch64_emit_ne_goto): Likewise.
6115 (aarch64_emit_lt_goto): Likewise.
6116 (aarch64_emit_le_goto): Likewise.
6117 (aarch64_emit_gt_goto): Likewise.
6118 (aarch64_emit_ge_got): Likewise.
6119 (aarch64_emit_ops_impl): New static global variable.
6120 (aarch64_emit_ops): New target function, return
6121 &aarch64_emit_ops_impl.
6122 (struct linux_target_ops): Install it.
6123
6124 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
6125
6126 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
6127 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
6128 aarch64-ipa.o.
6129 * linux-aarch64-ipa.c: New file.
6130 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
6131 and endian.h.
6132 (aarch64_get_thread_area): New target method.
6133 (extract_signed_bitfield): New helper function.
6134 (aarch64_decode_ldr_literal): New function.
6135 (enum aarch64_opcodes): New enum.
6136 (struct aarch64_register): New struct.
6137 (struct aarch64_operand): New struct.
6138 (x0): New static global.
6139 (x1): Likewise.
6140 (x2): Likewise.
6141 (x3): Likewise.
6142 (x4): Likewise.
6143 (w2): Likewise.
6144 (ip0): Likewise.
6145 (sp): Likewise.
6146 (xzr): Likewise.
6147 (aarch64_register): New helper function.
6148 (register_operand): Likewise.
6149 (immediate_operand): Likewise.
6150 (struct aarch64_memory_operand): New struct.
6151 (offset_memory_operand): New helper function.
6152 (preindex_memory_operand): Likewise.
6153 (enum aarch64_system_control_registers): New enum.
6154 (ENCODE): New macro.
6155 (emit_insn): New helper function.
6156 (emit_b): New function.
6157 (emit_bcond): Likewise.
6158 (emit_cb): Likewise.
6159 (emit_tb): Likewise.
6160 (emit_blr): Likewise.
6161 (emit_stp): Likewise.
6162 (emit_ldp_q_offset): Likewise.
6163 (emit_stp_q_offset): Likewise.
6164 (emit_load_store): Likewise.
6165 (emit_ldr): Likewise.
6166 (emit_ldrsw): Likewise.
6167 (emit_str): Likewise.
6168 (emit_ldaxr): Likewise.
6169 (emit_stxr): Likewise.
6170 (emit_stlr): Likewise.
6171 (emit_data_processing_reg): Likewise.
6172 (emit_data_processing): Likewise.
6173 (emit_add): Likewise.
6174 (emit_sub): Likewise.
6175 (emit_mov): Likewise.
6176 (emit_movk): Likewise.
6177 (emit_mov_addr): Likewise.
6178 (emit_mrs): Likewise.
6179 (emit_msr): Likewise.
6180 (emit_sevl): Likewise.
6181 (emit_wfe): Likewise.
6182 (append_insns): Likewise.
6183 (can_encode_int32_in): New helper function.
6184 (aarch64_relocate_instruction): New function.
6185 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
6186 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
6187 (struct linux_target_ops): Install aarch64_get_thread_area,
6188 aarch64_install_fast_tracepoint_jump_pad and
6189 aarch64_get_min_fast_tracepoint_insn_len.
6190
6191 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
6192
6193 * Makefile.in (aarch64-insn.o): New rule.
6194 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
6195
6196 2015-09-21 Yao Qi <yao.qi@linaro.org>
6197
6198 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
6199
6200 2015-09-21 Yao Qi <yao.qi@linaro.org>
6201
6202 * tracepoint.c (max_jump_pad_size): Remove.
6203
6204 2015-09-18 Yao Qi <yao.qi@linaro.org>
6205
6206 * linux-aarch64-low.c: Don't include sys/uio.h.
6207 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
6208
6209 2015-09-16 Wei-cheng Wang <cole945@gmail.com>
6210
6211 * tracepoint.c (eval_result_type): Change prototype.
6212 (condition_true_at_tracepoint): Fix argument to compiled_cond.
6213
6214 2015-09-15 Pedro Alves <palves@redhat.com>
6215
6216 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
6217 Check whether to report exec events instead of checking whether
6218 multiprocess is enabled.
6219
6220 2015-09-15 Pedro Alves <palves@redhat.com>
6221
6222 PR remote/18965
6223 * remote-utils.c (prepare_resume_reply): Merge
6224 TARGET_WAITKIND_VFORK_DONE switch case with the
6225 TARGET_WAITKIND_FORKED case.
6226
6227 2015-09-15 Yao Qi <yao.qi@linaro.org>
6228
6229 * server.c (handle_query): Check string comparison using
6230 "else if" instead of "if".
6231
6232 2015-09-15 Yao Qi <yao.qi@linaro.org>
6233
6234 * server.c (vCont_supported): New global variable.
6235 (handle_query): Set vCont_supported to 1 if "vContSupported+"
6236 matches. Append ";vContSupported+" to own_buf.
6237 (handle_v_requests): Append ";s;S" to own_buf if target supports
6238 hardware single step or vCont_supported is false.
6239 (capture_main): Set vCont_supported to zero.
6240
6241 2015-09-15 Yao Qi <yao.qi@linaro.org>
6242
6243 * linux-low.c (linux_supports_conditional_breakpoints): Rename
6244 it to ...
6245 (linux_supports_hardware_single_step): ... New function.
6246 (linux_target_ops): Update.
6247 * lynx-low.c (lynx_target_ops): Set field
6248 supports_hardware_single_step to target_can_do_hardware_single_step.
6249 * nto-low.c (nto_target_ops): Likewise.
6250 * spu-low.c (spu_target_ops): Likewise.
6251 * win32-low.c (win32_target_ops): Likewise.
6252 * target.c (target_can_do_hardware_single_step): New function.
6253 * target.h (struct target_ops) <supports_conditional_breakpoints>:
6254 Remove. <supports_hardware_single_step>: New field.
6255 (target_supports_conditional_breakpoints): Remove.
6256 (target_supports_hardware_single_step): New macro.
6257 (target_can_do_hardware_single_step): Declare.
6258 * server.c (handle_query): Use target_supports_hardware_single_step
6259 instead of target_supports_conditional_breakpoints.
6260
6261 2015-09-15 Yao Qi <yao.qi@linaro.org>
6262
6263 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
6264 function.
6265 (struct linux_target_ops the_low_target): Install
6266 aarch64_linux_siginfo_fixup.
6267
6268 2015-09-11 Don Breazeal <donb@codesourcery.com>
6269 Luis Machado <lgustavo@codesourcery.com>
6270
6271 * linux-low.c (linux_mourn): Static declaration.
6272 (linux_arch_setup): Move in front of
6273 handle_extended_wait.
6274 (linux_arch_setup_thread): New function.
6275 (handle_extended_wait): Handle exec events. Call
6276 linux_arch_setup_thread. Make event_lwp argument a
6277 pointer-to-a-pointer.
6278 (check_zombie_leaders): Do not check stopped threads.
6279 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
6280 (linux_low_filter_event): Add lwp and thread for exec'ing
6281 non-leader thread if leader thread has been deleted.
6282 Refactor code into linux_arch_setup_thread and call it.
6283 Pass child lwp pointer by reference to handle_extended_wait.
6284 (linux_wait_for_event_filtered): Update comment.
6285 (linux_wait_1): Prevent clobbering exec event status.
6286 (linux_supports_exec_events): New function.
6287 (linux_target_ops) <supports_exec_events>: Initialize new member.
6288 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
6289 new member.
6290 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
6291 * server.c (report_exec_events): New global variable.
6292 (handle_query): Handle qSupported query for exec-events feature.
6293 (captured_main): Initialize report_exec_events.
6294 * server.h (report_exec_events): Declare new global variable.
6295 * target.h (struct target_ops) <supports_exec_events>: New
6296 member.
6297 (target_supports_exec_events): New macro.
6298 * win32-low.c (win32_target_ops) <supports_exec_events>:
6299 Initialize new member.
6300
6301 2015-09-09 Markus Metzger <markus.t.metzger@intel.com>
6302
6303 * linux-low.c (linux_low_enable_btrace): Remove.
6304 (linux_target_ops): Replace linux_low_enable_btrace with
6305 linux_enable_btrace.
6306
6307 2015-09-03 Yao Qi <yao.qi@linaro.org>
6308
6309 * linux-aarch64-low.c (aarch64_insert_point): Call
6310 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
6311 returns true.
6312
6313 2015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6314
6315 * linux-low.c (check_stopped_by_breakpoint): Use
6316 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
6317
6318 2015-08-27 Pedro Alves <palves@redhat.com>
6319
6320 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
6321
6322 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
6323
6324 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
6325 the XNEW-family equivalent.
6326 (compile_bytecodes): Likewise.
6327 * dll.c (loaded_dll): Likewise.
6328 * event-loop.c (append_callback_event): Likewise.
6329 (create_file_handler): Likewise.
6330 (create_file_event): Likewise.
6331 * hostio.c (handle_open): Likewise.
6332 * inferiors.c (add_thread): Likewise.
6333 (add_process): Likewise.
6334 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
6335 * linux-arm-low.c (arm_new_process): Likewise.
6336 (arm_new_thread): Likewise.
6337 * linux-low.c (add_to_pid_list): Likewise.
6338 (linux_add_process): Likewise.
6339 (handle_extended_wait): Likewise.
6340 (add_lwp): Likewise.
6341 (enqueue_one_deferred_signal): Likewise.
6342 (enqueue_pending_signal): Likewise.
6343 (linux_resume_one_lwp_throw): Likewise.
6344 (linux_resume_one_thread): Likewise.
6345 (linux_read_memory): Likewise.
6346 (linux_write_memory): Likewise.
6347 * linux-mips-low.c (mips_linux_new_process): Likewise.
6348 (mips_linux_new_thread): Likewise.
6349 (mips_add_watchpoint): Likewise.
6350 * linux-x86-low.c (initialize_low_arch): Likewise.
6351 * lynx-low.c (lynx_add_process): Likewise.
6352 * mem-break.c (set_raw_breakpoint_at): Likewise.
6353 (set_breakpoint): Likewise.
6354 (add_condition_to_breakpoint): Likewise.
6355 (add_commands_to_breakpoint): Likewise.
6356 (clone_agent_expr): Likewise.
6357 (clone_one_breakpoint): Likewise.
6358 * regcache.c (new_register_cache): Likewise.
6359 * remote-utils.c (look_up_one_symbol): Likewise.
6360 * server.c (queue_stop_reply): Likewise.
6361 (start_inferior): Likewise.
6362 (queue_stop_reply_callback): Likewise.
6363 (handle_target_event): Likewise.
6364 * spu-low.c (fetch_ppc_memory): Likewise.
6365 (store_ppc_memory): Likewise.
6366 * target.c (set_target_ops): Likewise.
6367 * thread-db.c (thread_db_load_search): Likewise.
6368 (try_thread_db_load_1): Likewise.
6369 * tracepoint.c (add_tracepoint): Likewise.
6370 (add_tracepoint_action): Likewise.
6371 (create_trace_state_variable): Likewise.
6372 (cmd_qtdpsrc): Likewise.
6373 (cmd_qtro): Likewise.
6374 (add_while_stepping_state): Likewise.
6375 * win32-low.c (child_add_thread): Likewise.
6376 (get_image_name): Likewise.
6377
6378 2015-08-25 Yao Qi <yao.qi@linaro.org>
6379
6380 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
6381
6382 2015-08-25 Yao Qi <yao.qi@linaro.org>
6383
6384 * Makefile.in (aarch64-linux.o): New rule.
6385 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
6386 srv_tgtobj.
6387 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
6388 (aarch64_init_debug_reg_state): Make it extern.
6389 (aarch64_linux_prepare_to_resume): Remove.
6390
6391 2015-08-25 Yao Qi <yao.qi@linaro.org>
6392
6393 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
6394 lwp_arch_private_info and ptid_of_lwp.
6395
6396 2015-08-25 Yao Qi <yao.qi@linaro.org>
6397
6398 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
6399 Find proc_info by find_process_pid. All callers updated.
6400
6401 2015-08-25 Yao Qi <yao.qi@linaro.org>
6402
6403 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
6404 Remove.
6405 (debug_reg_change_callback): Remove.
6406 (aarch64_notify_debug_reg_change): Remove.
6407
6408 2015-08-25 Yao Qi <yao.qi@linaro.org>
6409
6410 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
6411 Call current_lwp_ptid.
6412
6413 2015-08-25 Yao Qi <yao.qi@linaro.org>
6414
6415 * linux-aarch64-low.c (debug_reg_change_callback): Use
6416 debug_printf.
6417
6418 2015-08-25 Yao Qi <yao.qi@linaro.org>
6419
6420 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
6421
6422 2015-08-25 Yao Qi <yao.qi@linaro.org>
6423
6424 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
6425
6426 2015-08-25 Yao Qi <yao.qi@linaro.org>
6427
6428 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
6429 the code.
6430
6431 2015-08-25 Yao Qi <yao.qi@linaro.org>
6432
6433 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
6434 Remove.
6435 (debug_reg_change_callback): Remove argument entry and add argument
6436 lwp. Remove local variable thread. Don't print thread id in the
6437 debugging output. Don't check whether pid of thread equals to pid.
6438 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
6439 iterate_over_lwps instead find_inferior.
6440
6441 2015-08-24 Pedro Alves <palves@redhat.com>
6442
6443 * inferiors.c (get_first_process): New function.
6444 * inferiors.h (get_first_process): New declaration.
6445 * remote-utils.c (read_ptid): Default to the first process in the
6446 list, instead of to the current thread's process.
6447
6448 2015-08-24 Pedro Alves <palves@redhat.com>
6449
6450 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
6451 * event-loop.c: Likewise.
6452 * remote-utils.c: Likewise.
6453 * tracepoint.c: Likewise.
6454
6455 2015-08-24 Pedro Alves <palves@redhat.com>
6456
6457 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
6458 ptid_get_lwp.
6459
6460 2015-08-21 Pedro Alves <palves@redhat.com>
6461
6462 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
6463 instead of literal 1.
6464
6465 2015-08-21 Pedro Alves <palves@redhat.com>
6466
6467 * tdesc.c (default_description): Explicitly zero-initialize.
6468
6469 2015-08-21 Pedro Alves <palves@redhat.com>
6470
6471 PR gdb/18749
6472 * inferiors.c (remove_thread): Discard any pending stop reply for
6473 this thread.
6474 * server.c (remove_all_on_match_pid): Rename to ...
6475 (remove_all_on_match_ptid): ... this. Work with a filter ptid
6476 instead of a pid.
6477 (discard_queued_stop_replies): Change parameter to a ptid. Now
6478 extern.
6479 (handle_v_kill, kill_inferior_callback, captured_main)
6480 (process_serial_event): Adjust.
6481 * server.h (discard_queued_stop_replies): Declare.
6482
6483 2015-08-21 Pedro Alves <palves@redhat.com>
6484
6485 * linux-low.c (wait_for_sigstop): Always switch to no thread
6486 selected if the previously current thread dies.
6487 * lynx-low.c (lynx_request_interrupt): Use the first thread's
6488 process instead of the current thread's.
6489 * remote-utils.c (input_interrupt): Don't check if there's no
6490 current thread.
6491 * server.c (gdb_read_memory, gdb_write_memory): If setting the
6492 current thread to the general thread fails, error out.
6493 (handle_qxfer_auxv, handle_qxfer_libraries)
6494 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
6495 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
6496 (handle_query): Check if there's a thread selected instead of
6497 checking whether there's any thread in the thread list.
6498 (handle_qxfer_threads, handle_qxfer_btrace)
6499 (handle_qxfer_btrace_conf): Don't error out early if there's no
6500 thread in the thread list.
6501 (handle_v_cont, myresume): Don't set the current thread to the
6502 continue thread.
6503 (process_serial_event) <Hg handling>: Also set thread_id if the
6504 previous general thread is still alive.
6505 (process_serial_event) <g/G handling>: If setting the current
6506 thread to the general thread fails, error out.
6507 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
6508 thread's lwp instead of the current thread's.
6509 * target.c (set_desired_thread): If the desired thread was not
6510 found, leave the current thread pointing to NULL. Return an int
6511 (boolean) indicating success.
6512 * target.h (set_desired_thread): Change return type to int.
6513
6514 2015-08-20 Max Filippov <jcmvbkbc@gmail.com>
6515
6516 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
6517 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
6518 #includes.
6519 (ps_get_thread_area): New function.
6520
6521 2015-08-19 Gary Benson <gbenson@redhat.com>
6522
6523 * hostio.c (handle_pread): Do not attempt to read more data
6524 than hostio_reply_with_data can fit in a packet.
6525
6526 2015-08-18 Joel Brobecker <brobecker@adacore.com>
6527
6528 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
6529
6530 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
6531
6532 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
6533
6534 2015-08-06 Pedro Alves <palves@redhat.com>
6535
6536 * tracepoint.c (expr_eval_result): Now an int.
6537
6538 2015-08-06 Pedro Alves <palves@redhat.com>
6539
6540 * gdbthread.h (struct regcache): Forward declare.
6541 (struct thread_info) <regcache_data>: Now a struct regcache
6542 pointer.
6543 * inferiors.c (inferior_regcache_data)
6544 (set_inferior_regcache_data): Now work with struct regcache
6545 pointers.
6546 * inferiors.h (struct regcache): Forward declare.
6547 (inferior_regcache_data, set_inferior_regcache_data): Now work
6548 with struct regcache pointers.
6549 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
6550 (free_register_cache_thread): Remove struct regcache pointer
6551 casts.
6552
6553 2015-08-06 Pedro Alves <palves@redhat.com>
6554
6555 * server.c (captured_main): On error, print the exception message
6556 to stderr, and if run_once is set, throw a quit.
6557
6558 2015-08-06 Pedro Alves <palves@redhat.com>
6559
6560 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
6561 the current thread.
6562
6563 2015-08-06 Pedro Alves <palves@redhat.com>
6564
6565 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
6566 reading beyond the passed in buffer length.
6567
6568 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
6569
6570 * tracepoint.c (symbol_list) <required>: Remove.
6571
6572 2015-08-06 Pedro Alves <palves@redhat.com>
6573
6574 * linux-low.c (handle_extended_wait): Set the fork child's suspend
6575 count if stopping and suspending threads.
6576 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
6577 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
6578 (linux_detach): Complete an ongoing step-over.
6579 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
6580 throughout.
6581 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
6582 (linux_wait_1): If passing a signal to the inferior after
6583 finishing a step-over, unsuspend and re-resume all lwps. If we
6584 see a single-step event but the thread should be continuing, don't
6585 pass the trap to gdb.
6586 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
6587 internal_error instead of gdb_assert.
6588 (enqueue_pending_signal): New function.
6589 (check_ptrace_stopped_lwp_gone): Add debug output.
6590 (start_step_over): Use internal_error instead of gdb_assert.
6591 (complete_ongoing_step_over): New function.
6592 (linux_resume_one_thread): Don't resume a suspended thread.
6593 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
6594 it stepping.
6595
6596 2015-08-06 Pedro Alves <palves@redhat.com>
6597
6598 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
6599 (linux_thread_alive): Use lwp_is_marked_dead.
6600 (extended_event_reported): Delete.
6601 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
6602 instead of extended_event_reported.
6603 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
6604 as well.
6605 (lwp_is_marked_dead): New function.
6606 (lwp_running): Use lwp_is_marked_dead.
6607 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
6608 comment.
6609
6610 2015-08-06 Pedro Alves <palves@redhat.com>
6611
6612 * linux-low.c (linux_wait_1): Move fork event output out of the
6613 !report_to_gdb check. Pass event_child->waitstatus to
6614 target_waitstatus_to_string instead of ourstatus.
6615
6616 2015-08-04 Yao Qi <yao.qi@linaro.org>
6617
6618 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
6619 if current_thread is 32 bit.
6620
6621 2015-08-04 Yao Qi <yao.qi@linaro.org>
6622
6623 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
6624 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
6625 * server.c (extended_protocol): Remove "static".
6626 * server.h (extended_protocol): Declare it.
6627
6628 2015-08-04 Yao Qi <yao.qi@linaro.org>
6629
6630 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
6631 both aarch64 and aarch32.
6632 (aarch64_set_pc): Likewise.
6633
6634 2015-08-04 Yao Qi <yao.qi@linaro.org>
6635
6636 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
6637 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
6638 arm-with-neon.xml to srv_xmlfiles.
6639 * linux-aarch64-low.c: Include linux-aarch32-low.h.
6640 (is_64bit_tdesc): New function.
6641 (aarch64_linux_read_description): New function.
6642 (aarch64_arch_setup): Call aarch64_linux_read_description.
6643 (regs_info): Rename to regs_info_aarch64.
6644 (aarch64_regs_info): Return right regs_info.
6645 (initialize_low_arch): Call initialize_low_arch_aarch32.
6646
6647 2015-08-04 Yao Qi <yao.qi@linaro.org>
6648
6649 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
6650 * linux-aarch32-low.c: New file.
6651 * linux-aarch32-low.h: New file.
6652 * linux-arm-low.c (arm_fill_gregset): Move it to
6653 linux-aarch32-low.c.
6654 (arm_store_gregset): Likewise.
6655 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
6656 (arm_store_vfpregset): Call arm_store_vfpregset_num.
6657 (arm_arch_setup): Check if PTRACE_GETREGSET works.
6658 (regs_info): Rename to regs_info_arm.
6659 (arm_regs_info): Return regs_info_aarch32 if
6660 have_ptrace_getregset is 1 and target description is
6661 arm_with_neon or arm_with_vfpv3.
6662 (initialize_low_arch): Don't call init_registers_arm_with_neon.
6663 Call initialize_low_arch_aarch32 instead.
6664
6665 2015-08-04 Yao Qi <yao.qi@linaro.org>
6666
6667 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
6668 * linux-low.c: ... here.
6669 * linux-low.h (have_ptrace_getregset): Declare it.
6670
6671 2015-08-04 Pedro Alves <palves@redhat.com>
6672
6673 * thread-db.c (struct thread_db): Use new typedefs.
6674 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
6675 CHK calls.
6676 (disable_thread_event_reporting): Cast result of dlsym to
6677 destination function pointer type.
6678 (thread_db_mourn): Use td_ta_delete_ftype.
6679
6680 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
6681
6682 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
6683 arch variant.
6684 (CDX_BREAKPOINT): Define for R2.
6685 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
6686 (the_low_target): Add comments.
6687
6688 2015-07-30 Yao Qi <yao.qi@linaro.org>
6689
6690 * linux-arm-low.c (arm_hwcap): Remove it.
6691 (arm_read_description): New local variable arm_hwcap. Don't
6692 set arm_hwcap to zero.
6693
6694 2015-07-30 Yao Qi <yao.qi@linaro.org>
6695
6696 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
6697 Use regcache->tdesc instead.
6698 (arm_store_wmmxregset): Likewise.
6699 (arm_fill_vfpregset): Likewise.
6700 (arm_store_vfpregset): Likewise.
6701
6702 2015-07-30 Yao Qi <yao.qi@linaro.org>
6703
6704 * linux-arm-low.c: Include arch/arm.h.
6705 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
6706 (arm_store_gregset): Likewise.
6707
6708 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
6709
6710 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
6711 ptrace's 4th parameter.
6712
6713 2015-07-27 Yao Qi <yao.qi@linaro.org>
6714
6715 * configure.srv (case aarch64*-*-linux*): Don't set
6716 srv_linux_usrregs.
6717
6718 2015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
6719
6720 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
6721 sys/ptrace.h.
6722 * linux-arm-low.c: Likewise.
6723 * linux-cris-low.c: Likewise.
6724 * linux-crisv32-low.c: Likewise.
6725 * linux-low.c: Likewise.
6726 * linux-m68k-low.c: Likewise.
6727 * linux-mips-low.c: Likewise.
6728 * linux-nios2-low.c: Likewise.
6729 * linux-s390-low.c: Likewise.
6730 * linux-sparc-low.c: Likewise.
6731 * linux-tic6x-low.c: Likewise.
6732 * linux-tile-low.c: Likewise.
6733 * linux-x86-low.c: Likewise.
6734
6735 2015-07-24 Pedro Alves <palves@redhat.com>
6736
6737 * config.in: Regenerate.
6738 * configure: Regenerate.
6739
6740 2015-07-24 Pedro Alves <palves@redhat.com>
6741
6742 * acinclude.m4: Include ../ptrace.m4.
6743 * configure.ac: Call GDB_AC_PTRACE.
6744 * config.in, configure: Regenerate.
6745
6746 2015-07-24 Yao Qi <yao.qi@linaro.org>
6747
6748 * linux-low.c (linux_create_inferior): Remove setting to
6749 proc->priv->new_inferior.
6750 (linux_attach): Likewise.
6751 (linux_low_filter_event): Likewise.
6752 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
6753
6754 2015-07-24 Yao Qi <yao.qi@linaro.org>
6755
6756 * linux-low.c (linux_arch_setup): New function.
6757 (linux_low_filter_event): If proc->tdesc is NULL and
6758 proc->attached is true, call the_low_target.arch_setup.
6759 Otherwise, keep status pending, and return.
6760 (linux_resume_one_lwp_throw): Don't call get_pc if
6761 thread->while_stepping isn't NULL. Don't call
6762 get_thread_regcache if proc->tdesc is NULL.
6763 (need_step_over_p): Return 0 if proc->tdesc is NULL.
6764 (linux_target_ops): Install arch_setup.
6765 * server.c (start_inferior): Call the_target->arch_setup.
6766 * target.h (struct target_ops) <arch_setup>: New field.
6767 (target_arch_setup): New marco.
6768 * lynx-low.c (lynx_target_ops): Update.
6769 * nto-low.c (nto_target_ops): Update.
6770 * spu-low.c (spu_target_ops): Update.
6771 * win32-low.c (win32_target_ops): Update.
6772
6773 2015-07-24 Yao Qi <yao.qi@linaro.org>
6774
6775 * linux-low.c (linux_add_process): Don't set
6776 proc->priv->new_inferior.
6777 (linux_create_inferior): Set proc->priv->new_inferior to 1.
6778 (linux_attach): Likewise.
6779
6780 2015-07-24 Yao Qi <yao.qi@linaro.org>
6781
6782 * server.c (start_inferior): Code refactor.
6783
6784 2015-07-24 Yao Qi <yao.qi@linaro.org>
6785
6786 * server.c (process_serial_event): Set general_thread.
6787
6788 2015-07-21 Yao Qi <yao.qi@linaro.org>
6789
6790 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
6791 aarch64_linux_get_debug_reg_capacity.
6792
6793 2015-07-17 Yao Qi <yao.qi@linaro.org>
6794
6795 * Makefile.in (aarch64-linux-hw-point.o): New rule.
6796 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
6797 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
6798 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
6799 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
6800 (AARCH64_HWP_ALIGNMENT): Likewise.
6801 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
6802 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
6803 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
6804 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
6805 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
6806 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
6807 (struct aarch64_debug_reg_state): Likewise.
6808 (struct arch_lwp_info): Likewise.
6809 (aarch64_align_watchpoint): Likewise.
6810 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
6811 (aarch64_watchpoint_length): Likewise.
6812 (aarch64_point_encode_ctrl_reg): Likewise
6813 (aarch64_point_is_aligned): Likewise.
6814 (aarch64_align_watchpoint): Likewise.
6815 (aarch64_linux_set_debug_regs):
6816 (aarch64_dr_state_insert_one_point): Likewise.
6817 (aarch64_dr_state_remove_one_point): Likewise.
6818 (aarch64_handle_breakpoint): Likewise.
6819 (aarch64_handle_aligned_watchpoint): Likewise.
6820 (aarch64_handle_unaligned_watchpoint): Likewise.
6821 (aarch64_handle_watchpoint): Likewise.
6822
6823 2015-07-17 Yao Qi <yao.qi@linaro.org>
6824
6825 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
6826 and don't aarch64_get_debug_reg_state. All callers update.
6827 (aarch64_handle_aligned_watchpoint): Likewise.
6828 (aarch64_handle_unaligned_watchpoint): Likewise.
6829 (aarch64_handle_watchpoint): Likewise.
6830 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
6831 (aarch64_remove_point): Likewise.
6832
6833 2015-07-17 Yao Qi <yao.qi@linaro.org>
6834
6835 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
6836 debug_printf.
6837 (aarch64_handle_unaligned_watchpoint): Likewise.
6838
6839 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6840
6841 Revert the previous 3 commits:
6842 Move gdb_regex* to common/
6843 Move linux_find_memory_regions_full & co.
6844 gdbserver build-id attribute generator
6845
6846 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6847 Jan Kratochvil <jan.kratochvil@redhat.com>
6848
6849 gdbserver build-id attribute generator.
6850 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
6851 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
6852 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
6853 (find_phdr): New.
6854 (get_dynamic): Use find_pdhr to traverse program headers.
6855 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
6856 (compare_mapping_entry_range, struct find_memory_region_callback_data)
6857 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
6858 (get_hex_build_id): New.
6859 (linux_qxfer_libraries_svr4): Add optional build-id attribute
6860 to reply XML document.
6861
6862 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6863 Jan Kratochvil <jan.kratochvil@redhat.com>
6864
6865 * target.c: Include target/target-utils.h and fcntl.h.
6866 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
6867 (target_fileio_read_stralloc): New functions.
6868
6869 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6870
6871 * Makefile.in (OBS): Add gdb_regex.o.
6872 (gdb_regex.o): New.
6873 * config.in: Rebuilt.
6874 * configure: Rebuilt.
6875
6876 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6877 Jan Kratochvil <jan.kratochvil@redhat.com>
6878
6879 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
6880 * Makefile.in (OBS): Add target-utils.o.
6881 (linux-maps.o, target-utils.o): New.
6882 * configure.srv (srv_linux_obj): Add linux-maps.o.
6883
6884 2015-07-15 Pierre Langlois <pierre.langlois@arm.com>
6885
6886 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
6887 function, return 1.
6888 (the_low_target): Install it.
6889
6890 2015-07-14 Pedro Alves <palves@redhat.com>
6891
6892 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
6893 Instead, ignore ECHILD, and throw an error for other errnos.
6894
6895 2015-07-10 Pedro Alves <palves@redhat.com>
6896
6897 * event-loop.c (struct callback_event) <data>: Change type to
6898 gdb_client_data instance instead of gdb_client_data pointer.
6899 (append_callback_event): Adjust.
6900
6901 2015-07-10 Pierre Langlois <pierre.langlois@arm.com>
6902
6903 * linux-aarch64-low.c: Add comments for each linux_target_ops
6904 method. Remove comments already covered in target_ops and
6905 linux_target_ops definitions.
6906 (the_low_target): Add comments for each unimplemented method.
6907
6908 2015-07-09 Yao Qi <yao.qi@linaro.org>
6909
6910 * linux-aarch64-low.c (aarch64_regmap): Remove.
6911 (aarch64_usrregs_info): Remove.
6912 (regs_info): Set field usrregs to NULL.
6913
6914 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6915
6916 * linux-low.c: Include "rsp-low.h"
6917 (linux_low_encode_pt_config, linux_low_encode_raw): New.
6918 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
6919 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
6920 (handle_btrace_enable_pt): New.
6921 (handle_btrace_general_set): Support "pt".
6922 (handle_btrace_conf_general_set): Support "pt:size".
6923
6924 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
6925
6926 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
6927 Z_PACKET_SW_BP.
6928
6929 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
6930
6931 * linux-aarch64-low.c: Remove comment about endianness.
6932 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
6933 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
6934 memcmp.
6935
6936 2015-06-24 Gary Benson <gbenson@redhat.com>
6937
6938 * linux-i386-ipa.c (stdint.h): Do not include.
6939 * lynx-i386-low.c (stdint.h): Likewise.
6940 * lynx-ppc-low.c (stdint.h): Likewise.
6941 * mem-break.c (stdint.h): Likewise.
6942 * thread-db.c (stdint.h): Likewise.
6943 * tracepoint.c (stdint.h): Likewise.
6944 * win32-low.c (stdint.h): Likewise.
6945
6946 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
6947
6948 * server.c (write_qxfer_response): Update call to
6949 remote_escape_output.
6950
6951 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
6952 Jan Kratochvil <jan.kratochvil@redhat.com>
6953
6954 Merge multiple hex conversions.
6955 * gdbreplay.c (tohex): Rename to 'fromhex'.
6956 (logchar): Use fromhex.
6957
6958 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
6959
6960 * server.c (handle_qxfer_libraries): Set `version' attribute for
6961 <library-list>.
6962
6963 2015-06-10 Gary Benson <gbenson@redhat.com>
6964
6965 * target.h (struct target_ops) <multifs_open>: New field.
6966 <multifs_unlink>: Likewise.
6967 <multifs_readlink>: Likewise.
6968 * linux-low.c (nat/linux-namespaces.h): New include.
6969 (linux_target_ops): Initialize the_target->multifs_open,
6970 the_target->multifs_unlink and the_target->multifs_readlink.
6971 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
6972 * hostio.c (hostio_fs_pid): New static variable.
6973 (hostio_handle_new_gdb_connection): New function.
6974 (handle_setfs): Likewise.
6975 (handle_open): Use the_target->multifs_open as appropriate.
6976 (handle_unlink): Use the_target->multifs_unlink as appropriate.
6977 (handle_readlink): Use the_target->multifs_readlink as
6978 appropriate.
6979 (handle_vFile): Handle vFile:setfs packets.
6980 * server.c (handle_query): Call hostio_handle_new_gdb_connection
6981 after target_handle_new_gdb_connection.
6982
6983 2015-06-10 Gary Benson <gbenson@redhat.com>
6984
6985 * configure.ac (AC_CHECK_FUNCS): Add setns.
6986 * config.in: Regenerate.
6987 * configure: Likewise.
6988 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
6989 (linux-namespaces.o): New rule.
6990 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
6991
6992 2015-06-09 Gary Benson <gbenson@redhat.com>
6993
6994 * hostio.c (handle_open): Process mode argument with
6995 fileio_to_host_mode.
6996
6997 2015-06-01 Yao Qi <yao.qi@linaro.org>
6998
6999 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
7000 * linux-x86-low.c: Likewise.
7001
7002 2015-05-28 Don Breazeal <donb@codesourcery.com>
7003
7004 * linux-low.c (handle_extended_wait): Initialize
7005 thread_info.last_resume_kind for new fork children.
7006
7007 2015-05-15 Pedro Alves <palves@redhat.com>
7008
7009 * target.h (target_handle_new_gdb_connection): Rewrite using if
7010 wrapped in do/while.
7011
7012 2015-05-14 Joel Brobecker <brobecker@adacore.com>
7013
7014 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
7015 * configure, config.in: Regenerate.
7016 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
7017 Declare typedef.
7018
7019 2015-05-12 Don Breazeal <donb@codesourcery.com>
7020
7021 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
7022 PTRACE_EVENT_VFORK_DONE.
7023 (linux_low_ptrace_options, extended_event_reported): Add vfork
7024 events.
7025 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
7026 and "vforkdone" for RSP 'T' Stop Reply Packet.
7027 * server.h (report_vfork_events): Declare
7028 global variable.
7029
7030 2015-05-12 Don Breazeal <donb@codesourcery.com>
7031
7032 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
7033 (the_low_target) <new_fork>: Initialize new member.
7034 * linux-arm-low.c (arm_new_fork): New function.
7035 (the_low_target) <new_fork>: Initialize new member.
7036 * linux-low.c (handle_extended_wait): Call new target function
7037 new_fork.
7038 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
7039 * linux-mips-low.c (mips_add_watchpoint): New function
7040 extracted from mips_insert_point.
7041 (the_low_target) <new_fork>: Initialize new member.
7042 (mips_linux_new_fork): New function.
7043 (mips_insert_point): Call mips_add_watchpoint.
7044 * linux-x86-low.c (x86_linux_new_fork): New function.
7045 (the_low_target) <new_fork>: Initialize new member.
7046
7047 2015-05-12 Don Breazeal <donb@codesourcery.com>
7048
7049 * linux-low.c (handle_extended_wait): Implement return value,
7050 rename argument 'event_child' to 'event_lwp', handle
7051 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
7052 (linux_low_ptrace_options): New function.
7053 (linux_low_filter_event): Call linux_low_ptrace_options,
7054 use different argument fo linux_enable_event_reporting,
7055 use return value from handle_extended_wait.
7056 (extended_event_reported): New function.
7057 (linux_wait_1): Call extended_event_reported and set
7058 status to report fork events.
7059 (linux_write_memory): Add pid to debug message.
7060 (reset_lwp_ptrace_options_callback): New function.
7061 (linux_handle_new_gdb_connection): New function.
7062 (linux_target_ops): Initialize new structure member.
7063 * linux-low.h (struct lwp_info) <waitstatus>: New member.
7064 * lynx-low.c: Initialize new structure member.
7065 * remote-utils.c (prepare_resume_reply): Implement stop reason
7066 "fork" for "T" stop message.
7067 * server.c (handle_query): Call handle_new_gdb_connection.
7068 * server.h (report_fork_events): Declare global flag.
7069 * target.h (struct target_ops) <handle_new_gdb_connection>:
7070 New member.
7071 (target_handle_new_gdb_connection): New macro.
7072 * win32-low.c: Initialize new structure member.
7073
7074 2015-05-12 Don Breazeal <donb@codesourcery.com>
7075
7076 * mem-break.c (APPEND_TO_LIST): Define macro.
7077 (clone_agent_expr): New function.
7078 (clone_one_breakpoint): New function.
7079 (clone_all_breakpoints): New function.
7080 * mem-break.h: Declare new functions.
7081
7082 2015-05-12 Don Breazeal <donb@codesourcery.com>
7083
7084 * linux-low.c (linux_supports_fork_events): New function.
7085 (linux_supports_vfork_events): New function.
7086 (linux_target_ops): Initialize new structure members.
7087 (initialize_low): Call linux_check_ptrace_features.
7088 * lynx-low.c (lynx_target_ops): Initialize new structure
7089 members.
7090 * server.c (report_fork_events, report_vfork_events):
7091 New global flags.
7092 (handle_query): Add new features to qSupported packet and
7093 response.
7094 (captured_main): Initialize new global variables.
7095 * target.h (struct target_ops) <supports_fork_events>:
7096 New member.
7097 <supports_vfork_events>: New member.
7098 (target_supports_fork_events): New macro.
7099 (target_supports_vfork_events): New macro.
7100 * win32-low.c (win32_target_ops): Initialize new structure
7101 members.
7102
7103 2015-05-12 Gary Benson <gbenson@redhat.com>
7104
7105 * server.c (handle_qxfer_exec_file): Use current process
7106 if annex is empty.
7107
7108 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
7109
7110 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
7111 Remove HAVE_PTRACE_GETREGS conditionals.
7112 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
7113 instead of PTRACE_GETREGS and PTRACE_SETREGS.
7114
7115 2015-05-08 Yao Qi <yao.qi@linaro.org>
7116
7117 * linux-low.c (linux_supports_conditional_breakpoints): New
7118 function.
7119 (linux_target_ops): Install new target method.
7120 * lynx-low.c (lynx_target_ops): Install NULL hook for
7121 supports_conditional_breakpoints.
7122 * nto-low.c (nto_target_ops): Likewise.
7123 * spu-low.c (spu_target_ops): Likewise.
7124 * win32-low.c (win32_target_ops): Likewise.
7125 * server.c (handle_query): Check
7126 target_supports_conditional_breakpoints.
7127 * target.h (struct target_ops) <supports_conditional_breakpoints>:
7128 New field.
7129 (target_supports_conditional_breakpoints): New macro.
7130
7131 2015-05-06 Pedro Alves <palves@redhat.com>
7132
7133 PR server/18081
7134 * server.c (start_inferior): If the process exits, mourn it.
7135
7136 2015-04-21 Gary Benson <gbenson@redhat.com>
7137
7138 * hostio.c (fileio_open_flags_to_host): Factored out to
7139 fileio_to_host_openflags in common/fileio.c. Single use
7140 updated.
7141
7142 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
7143
7144 * linux-xtensa-low.c (xtensa_fill_gregset)
7145 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
7146 XCHAL_HAVE_LOOP.
7147
7148 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
7149
7150 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
7151 (regs_info): Replace usrregs pointer with NULL.
7152
7153 2015-04-17 Gary Benson <gbenson@redhat.com>
7154
7155 * target.h (struct target_ops) <pid_to_exec_file>: New field.
7156 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
7157 * server.c (handle_qxfer_exec_file): New function.
7158 (qxfer_packets): Add exec-file entry.
7159 (handle_query): Report qXfer:exec-file:read as supported packet.
7160
7161 2015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
7162
7163 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
7164
7165 2015-04-09 Gary Benson <gbenson@redhat.com>
7166
7167 * hostio-errno.c (errno_to_fileio_error): Remove function.
7168 Update caller to use remote_fileio_to_fio_error.
7169
7170 2015-04-09 Yao Qi <yao.qi@linaro.org>
7171
7172 * linux-low.c (linux_insert_point): Call
7173 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
7174 (linux_remove_point): Call remove_memory_breakpoint if type is
7175 raw_bkpt_type_sw.
7176 * linux-x86-low.c (x86_insert_point): Don't call
7177 insert_memory_breakpoint.
7178 (x86_remove_point): Don't call remove_memory_breakpoint.
7179
7180 2015-04-01 Pedro Alves <palves@redhat.com>
7181 Cleber Rosa <crosa@redhat.com>
7182
7183 * server.c (gdbserver_usage): Reorganize and extend the usage
7184 message.
7185
7186 2015-03-24 Pedro Alves <palves@redhat.com>
7187
7188 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
7189 output. Also dump TRAP_TRACE.
7190 (linux_low_filter_event): In debug output, distinguish a
7191 resume_stop SIGSTOP from a delayed SIGSTOP.
7192
7193 2015-03-24 Gary Benson <gbenson@redhat.com>
7194
7195 * linux-x86-low.c (x86_linux_new_thread): Moved to
7196 nat/x86-linux.c.
7197 (x86_linux_prepare_to_resume): Likewise.
7198
7199 2015-03-24 Gary Benson <gbenson@redhat.com>
7200
7201 * Makefile.in (x86-linux-dregs.o): New rule.
7202 * configure.srv: Add x86-linux-dregs.o to relevant targets.
7203 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
7204 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
7205 (x86_linux_dr_get): Likewise.
7206 (x86_linux_dr_set): Likewise.
7207 (update_debug_registers_callback): Likewise.
7208 (x86_linux_dr_set_addr): Likewise.
7209 (x86_linux_dr_get_addr): Likewise.
7210 (x86_linux_dr_set_control): Likewise.
7211 (x86_linux_dr_get_control): Likewise.
7212 (x86_linux_dr_get_status): Likewise.
7213 (x86_linux_update_debug_registers): Likewise.
7214
7215 2015-03-24 Gary Benson <gbenson@redhat.com>
7216
7217 * linux-x86-low.c (x86_linux_update_debug_registers):
7218 New function, factored out from...
7219 (x86_linux_prepare_to_resume): ...this.
7220
7221 2015-03-24 Gary Benson <gbenson@redhat.com>
7222
7223 * linux-x86-low.c (x86_linux_dr_get): Update comments.
7224 (x86_linux_dr_set): Likewise.
7225 (update_debug_registers_callback): Likewise.
7226 (x86_linux_dr_set_addr): Likewise.
7227 (x86_linux_dr_get_addr): Likewise.
7228 (x86_linux_dr_set_control): Likewise.
7229 (x86_linux_dr_get_control): Likewise.
7230 (x86_linux_dr_get_status): Likewise.
7231 (x86_linux_prepare_to_resume): Likewise.
7232
7233 2015-03-24 Gary Benson <gbenson@redhat.com>
7234
7235 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
7236 Use perror_with_name. Pass string through gettext.
7237 (x86_linux_dr_set): Likewise.
7238
7239 2015-03-24 Gary Benson <gbenson@redhat.com>
7240
7241 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
7242 (x86_linux_dr_set_addr): ...this.
7243 (x86_dr_low_get_addr): Rename to...
7244 (x86_linux_dr_get_addr): ...this.
7245 (x86_dr_low_set_control): Rename to...
7246 (x86_linux_dr_set_control): ...this.
7247 (x86_dr_low_get_control): Rename to...
7248 (x86_linux_dr_get_control): ...this.
7249 (x86_dr_low_get_status): Rename to...
7250 (x86_linux_dr_get_status): ...this.
7251 (x86_dr_low): Update with new function names.
7252
7253 2015-03-24 Gary Benson <gbenson@redhat.com>
7254
7255 * Makefile.in (x86-linux.o): New rule.
7256 * configure.srv: Add x86-linux.o to relevant targets.
7257 * linux-low.c (lwp_set_arch_private_info): New function.
7258 (lwp_arch_private_info): Likewise.
7259 * linux-x86-low.c: Include nat/x86-linux.h.
7260 (arch_lwp_info): Removed structure.
7261 (update_debug_registers_callback):
7262 Use lwp_set_debug_registers_changed.
7263 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
7264 and lwp_set_debug_registers_changed.
7265 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
7266
7267 2015-03-24 Gary Benson <gbenson@redhat.com>
7268
7269 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
7270 * linux-arm-low.c (arm_new_thread): Likewise.
7271 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
7272 * linux-mips-low.c (mips_linux_new_thread): Likewise.
7273 * linux-x86-low.c (x86_linux_new_thread): Likewise.
7274 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
7275
7276 2015-03-24 Gary Benson <gbenson@redhat.com>
7277
7278 * linux-low.c (ptid_of_lwp): New function.
7279 (lwp_is_stopped): Likewise.
7280 (lwp_stop_reason): Likewise.
7281 * linux-x86-low.c (update_debug_registers_callback):
7282 Use lwp_is_stopped.
7283 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
7284 lwp_stop_reason.
7285
7286 2015-03-24 Gary Benson <gbenson@redhat.com>
7287
7288 * linux-low.h (linux_stop_lwp): Remove declaration.
7289
7290 2015-03-24 Gary Benson <gbenson@redhat.com>
7291
7292 * linux-low.h: Include nat/linux-nat.h.
7293 * linux-low.c (iterate_over_lwps_args): New structure.
7294 (iterate_over_lwps_filter): New function.
7295 (iterate_over_lwps): Likewise.
7296 * linux-x86-low.c (update_debug_registers_callback):
7297 Update signature to what iterate_over_lwps expects.
7298 Remove PID check that iterate_over_lwps now performs.
7299 (x86_dr_low_set_addr): Use iterate_over_lwps.
7300 (x86_dr_low_set_control): Likewise.
7301
7302 2015-03-24 Gary Benson <gbenson@redhat.com>
7303
7304 * linux-x86-low.c (x86_debug_reg_state): New function.
7305 (x86_linux_prepare_to_resume): Use the above.
7306
7307 2015-03-24 Gary Benson <gbenson@redhat.com>
7308
7309 * linux-low.c (current_lwp_ptid): New function.
7310 * linux-x86-low.c: Include nat/linux-nat.h.
7311 (x86_dr_low_get_addr): Use current_lwp_ptid.
7312 (x86_dr_low_get_control): Likewise.
7313 (x86_dr_low_get_status): Likewise.
7314
7315 2015-03-20 Pedro Alves <palves@redhat.com>
7316
7317 * tracepoint.c (cmd_qtstatus): Make "str" const.
7318
7319 2015-03-20 Pedro Alves <palves@redhat.com>
7320
7321 * server.c (handle_general_set): Make "req_str" const.
7322
7323 2015-03-19 Pedro Alves <palves@redhat.com>
7324
7325 * linux-low.c (linux_resume_one_lwp): Rename to ...
7326 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
7327 instead call perror_with_name.
7328 (check_ptrace_stopped_lwp_gone): New function.
7329 (linux_resume_one_lwp): Reimplement as wrapper around
7330 linux_resume_one_lwp_throw that swallows errors if the LWP is
7331 gone.
7332
7333 2015-03-19 Pedro Alves <palves@redhat.com>
7334
7335 * linux-low.c (count_events_callback, select_event_lwp_callback):
7336 No longer check whether the thread has resume_stop as last resume
7337 kind.
7338
7339 2015-03-19 Pedro Alves <palves@redhat.com>
7340
7341 * linux-low.c (count_events_callback, select_event_lwp_callback):
7342 Use the lwp's status_pending_p field, not the thread's.
7343
7344 2015-03-19 Pedro Alves <palves@redhat.com>
7345
7346 * linux-low.c (select_event_lwp_callback): Update comments to
7347 no longer mention SIGTRAP.
7348
7349 2015-03-18 Gary Benson <gbenson@redhat.com>
7350
7351 * server.c (handle_query): Do not report vFile:fstat as supported.
7352
7353 2015-03-11 Gary Benson <gbenson@redhat.com>
7354
7355 * hostio.c (sys/types.h): New include.
7356 (sys/stat.h): Likewise.
7357 (common-remote-fileio.h): Likewise.
7358 (handle_fstat): New function.
7359 (handle_vFile): Handle vFile:fstat packets.
7360
7361 2015-03-11 Gary Benson <gbenson@redhat.com>
7362
7363 * configure.ac (AC_CHECK_MEMBERS): Add checks for
7364 struct stat.st_blocks and struct stat.st_blksize.
7365 * configure: Regenerate.
7366 * config.in: Likewise.
7367 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
7368 (OBS): Add common-remote-fileio.o.
7369 (common-remote-fileio.o): New rule.
7370
7371 2015-03-09 Pedro Alves <palves@redhat.com>
7372
7373 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
7374 'struct sockaddr' pointer in 'accept' call.
7375
7376 2015-03-09 Pedro Alves <palves@redhat.com>
7377
7378 Revert:
7379 2015-03-07 Pedro Alves <palves@redhat.com>
7380 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
7381 or <winsock2.h> here. Instead include "gdb_socket.h".
7382 (remote_open): Use union gdb_sockaddr_u.
7383 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
7384 or <winsock2.h> here. Instead include "gdb_socket.h".
7385 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
7386 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
7387 or <sys/un.h>.
7388 (init_named_socket, gdb_agent_helper_thread): Use union
7389 gdb_sockaddr_u.
7390
7391 2015-03-07 Pedro Alves <palves@redhat.com>
7392
7393 * configure.ac (build_warnings): Move
7394 -Wdeclaration-after-statement to the C-specific set.
7395 * configure: Regenerate.
7396
7397 2015-03-07 Pedro Alves <palves@redhat.com>
7398
7399 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
7400 or <winsock2.h> here. Instead include "gdb_socket.h".
7401 (remote_open): Use union gdb_sockaddr_u.
7402 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
7403 or <winsock2.h> here. Instead include "gdb_socket.h".
7404 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
7405 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
7406 or <sys/un.h>.
7407 (init_named_socket, gdb_agent_helper_thread): Use union
7408 gdb_sockaddr_u.
7409
7410 2015-03-07 Pedro Alves <palves@redhat.com>
7411
7412 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
7413 instead.
7414
7415 2015-03-06 Yao Qi <yao.qi@linaro.org>
7416
7417 * linux-aarch64-low.c (aarch64_insert_point): Use
7418 show_debug_regs as a boolean.
7419 (aarch64_remove_point): Likewise.
7420
7421 2015-03-05 Pedro Alves <palves@redhat.com>
7422
7423 * lynx-low.c (lynx_target_ops): Install NULL hooks for
7424 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
7425 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
7426 * nto-low.c (nto_target_ops): Likewise.
7427 * spu-low.c (spu_target_ops): Likewise.
7428 * win32-low.c (win32_target_ops): Likewise.
7429
7430 2015-03-04 Pedro Alves <palves@redhat.com>
7431
7432 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
7433 Decide whether a breakpoint triggered based on the SIGTRAP's
7434 siginfo.si_code.
7435 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
7436 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
7437 (linux_low_filter_event): Check for breakpoints before checking
7438 watchpoints.
7439 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
7440 siginfo.si_code.
7441 (linux_stopped_by_sw_breakpoint)
7442 (linux_supports_stopped_by_sw_breakpoint)
7443 (linux_stopped_by_hw_breakpoint)
7444 (linux_supports_stopped_by_hw_breakpoint): New functions.
7445 (linux_target_ops): Install new target methods.
7446
7447 2015-03-04 Pedro Alves <palves@redhat.com>
7448
7449 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
7450 * server.c (swbreak_feature, hwbreak_feature): New globals.
7451 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
7452 (captured_main): Clear swbreak_feature and hwbreak_feature.
7453 * server.h (swbreak_feature, hwbreak_feature): Declare.
7454 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
7455 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
7456 supports_stopped_by_hw_breakpoint>: New fields.
7457 (target_supports_stopped_by_sw_breakpoint)
7458 (target_stopped_by_sw_breakpoint)
7459 (target_supports_stopped_by_hw_breakpoint)
7460 (target_stopped_by_hw_breakpoint): Declare.
7461
7462 2015-03-04 Pedro Alves <palves@redhat.com>
7463
7464 enum lwp_stop_reason -> enum target_stop_reason
7465 * linux-low.c (check_stopped_by_breakpoint): Adjust.
7466 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
7467 (linux_wait_1, stuck_in_jump_pad_callback)
7468 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
7469 (linux_stopped_by_watchpoint):
7470 * linux-low.h (enum lwp_stop_reason): Delete.
7471 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
7472 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
7473
7474 2015-03-04 Yao Qi <yao.qi@linaro.org>
7475
7476 * Makefile.in (SFILES): Add linux-aarch64-low.c.
7477
7478 2015-03-03 Gary Benson <gbenson@redhat.com>
7479
7480 * hostio.c (handle_vFile): Fix prefix lengths.
7481
7482 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
7483
7484 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
7485 ptr_bits.
7486
7487 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
7488
7489 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
7490 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
7491 (clean): Add "rm -f" for above C files.
7492 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
7493 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
7494 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
7495 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
7496 * linux-s390-low.c (HWCAP_S390_VX): New macro.
7497 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
7498 (init_registers_s390x_vx_linux64)
7499 (init_registers_s390x_tevx_linux64)
7500 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
7501 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
7502 declarations.
7503 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
7504 (s390_store_vxrs_high): New functions.
7505 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
7506 NT_S390_VXRS_HIGH.
7507 (s390_arch_setup): Add logic for selecting one of the new target
7508 descriptions. Activate the new vector regsets if applicable.
7509 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
7510 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
7511 and init_registers_s390x_tevx_linux64.
7512
7513 2015-03-01 Pedro Alves <palves@redhat.com>
7514
7515 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
7516 parameter.
7517
7518 2015-02-27 Pedro Alves <palves@redhat.com>
7519
7520 * linux-x86-low.c (u_debugreg_offset): New function.
7521 (x86_linux_dr_get, x86_linux_dr_set): Use it.
7522
7523 2015-02-27 Pedro Alves <palves@redhat.com>
7524
7525 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
7526 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
7527 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
7528 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
7529 (ps_lsetfpregs, ps_getpid)
7530 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
7531 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
7532 (ps_lsetxregs, ps_plog): Declare.
7533
7534 2015-02-27 Pedro Alves <palves@redhat.com>
7535
7536 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
7537 IP_AGENT_EXPORT_FUNC.
7538 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
7539 IP_AGENT_EXPORT_FUNC.
7540 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
7541 (IP_AGENT_EXPORT): Delete.
7542 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
7543 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
7544 (gdb_trampoline_buffer_error, collecting, gdb_collect)
7545 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
7546 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
7547 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
7548 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
7549 (traceframe_read_count, traceframe_write_count)
7550 (traceframes_created, trace_state_variables, get_raw_reg)
7551 (get_trace_state_variable_value, set_trace_state_variable_value)
7552 (ust_loaded, helper_thread_id, cmd_buf): Use
7553 IPA_SYM_EXPORTED_NAME.
7554 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
7555 (tracepoints) Use IP_AGENT_EXPORT_VAR.
7556 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
7557 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
7558 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
7559 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
7560 EXTERN_C_PUSH/EXTERN_C_POP.
7561 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
7562 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
7563 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
7564 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
7565 (traceframe_write_count, traceframe_read_count)
7566 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
7567 (about_to_request_buffer_space, get_trace_state_variable_value)
7568 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
7569 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
7570 EXTERN_C_PUSH/EXTERN_C_POP.
7571 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
7572 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
7573 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
7574 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
7575 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
7576 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
7577 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
7578 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
7579 Define.
7580 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
7581 (IP_AGENT_EXPORT_VAR_DECL): Define.
7582 (tracing): Declare.
7583 (gdb_agent_get_raw_reg): Declare.
7584
7585 2015-02-27 Tom Tromey <tromey@redhat.com>
7586 Pedro Alves <palves@redhat.com>
7587
7588 Rename symbols whose names are reserved C++ keywords throughout.
7589
7590 2015-02-27 Pedro Alves <palves@redhat.com>
7591
7592 * Makefile.in (COMPILER): New, get it from autoconf.
7593 (CXX): Get from autoconf instead.
7594 (COMPILE.pre): Use COMPILER.
7595 (CC-LD): Rename to ...
7596 (CC_LD): ... this. Use COMPILER.
7597 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
7598 (CXX_FOR_TARGET): Default to g++ instead of gcc.
7599 * acinclude.m4: Include build-with-cxx.m4.
7600 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
7601 Disable -Werror by default if building in C++ mode.
7602 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
7603 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
7604 the C++ compiler. Save/restore CXXFLAGS too.
7605 * configure: Regenerate.
7606
7607 2015-02-27 Pedro Alves <palves@redhat.com>
7608
7609 * acinclude.m4: Include libiberty.m4.
7610 * configure.ac: Call libiberty_INIT.
7611 * config.in, configure: Regenerate.
7612
7613 2015-02-26 Pedro Alves <palves@redhat.com>
7614
7615 * linux-low.c (linux_wait_1): When incrementing the PC past a
7616 program breakpoint always use the_low_target.breakpoint_len as
7617 increment, rather than the maximum between that and
7618 the_low_target.decr_pc_after_break.
7619
7620 2015-02-23 Pedro Alves <palves@redhat.com>
7621
7622 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
7623 thread was doing a step-over; always adjust the PC if
7624 we stepped over a permanent breakpoint.
7625 (linux_wait_1): If we stepped over breakpoint that was on top of a
7626 permanent breakpoint, manually advance the PC past it.
7627
7628 2015-02-23 Pedro Alves <palves@redhat.com>
7629
7630 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
7631 modes.
7632 (x86_fill_gregset, x86_store_gregset): Use it when handling
7633 $orig_eax.
7634
7635 2015-02-20 Pedro Alves <palves@redhat.com>
7636
7637 * thread-db.c: Include "nat/linux-procfs.h".
7638 (thread_db_init): Skip listing new threads if the kernel supports
7639 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
7640
7641 2015-02-20 Pedro Alves <palves@redhat.com>
7642
7643 * linux-low.c (status_pending_p_callback): Use ptid_match.
7644
7645 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
7646
7647 PR breakpoints/16812
7648 * linux-low.c (wstatus_maybe_breakpoint): Remove.
7649 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
7650 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
7651
7652 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
7653
7654 PR breakpoints/15956
7655 * tracepoint.c (cmd_qtinit): Add check for current_thread.
7656
7657 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
7658
7659 * linux-low.c (linux_low_btrace_conf): Print size.
7660 * server.c (handle_btrace_conf_general_set): New.
7661 (hanle_general_set): Call handle_btrace_conf_general_set.
7662 (handle_query): Report Qbtrace-conf:bts:size as supported.
7663
7664 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
7665
7666 * linux-low.c (linux_low_enable_btrace): Update parameters.
7667 (linux_low_btrace_conf): New.
7668 (linux_target_ops)<to_btrace_conf>: Initialize.
7669 * server.c (current_btrace_conf): New.
7670 (handle_btrace_enable): Rename to ...
7671 (handle_btrace_enable_bts): ... this. Pass &current_btrace_conf
7672 to target_enable_btrace. Update comment. Update users.
7673 (handle_qxfer_btrace_conf): New.
7674 (qxfer_packets): Add btrace-conf entry.
7675 (handle_query): Report qXfer:btrace-conf:read as supported packet.
7676 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
7677 (target_ops)<read_btrace_conf>: New.
7678 (target_enable_btrace): Update parameters.
7679 (target_read_btrace_conf): New.
7680
7681 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
7682
7683 * server.c (handle_btrace_general_set): Remove call to
7684 target_supports_btrace.
7685 (supported_btrace_packets): New.
7686 (handle_query): Call supported_btrace_packets.
7687 * target.h: include btrace-common.h.
7688 (btrace_target_info): Removed.
7689 (supports_btrace, target_supports_btrace): Update parameters.
7690
7691 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
7692
7693 * Makefile.in (SFILES): Add common/btrace-common.c.
7694 (OBS): Add common/btrace-common.o.
7695 (btrace-common.o): Add build rules.
7696 * linux-low: Include btrace-common.h.
7697 (linux_low_read_btrace): Use struct btrace_data. Call
7698 btrace_data_init and btrace_data_fini.
7699
7700 2015-02-06 Pedro Alves <palves@redhat.com>
7701
7702 * thread-db.c (find_new_threads_callback): Add debug output.
7703
7704 2015-02-04 Pedro Alves <palves@redhat.com>
7705
7706 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
7707 (resume_stopped_resumed_lwps): New function.
7708 (linux_wait_for_event_filtered): Use it.
7709
7710 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
7711
7712 * Makefile.in (SFILES): Add linux-personality.c.
7713 (linux-personality.o): New rule.
7714 * configure.srv (srv_linux_obj): Add linux-personality.o to the
7715 list of objects to be built.
7716 * linux-low.c: Include nat/linux-personality.h.
7717 (linux_create_inferior): Remove code to disable address space
7718 randomization (moved to ../nat/linux-personality.c). Create
7719 cleanup to disable address space randomization.
7720
7721 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
7722
7723 * Makefile.in (posix-strerror.o): New rule.
7724 (mingw-strerror.o): Likewise.
7725 * configure: Regenerated.
7726 * configure.ac: Source file ../common/common.host. Initialize new
7727 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
7728
7729 2015-01-14 Yao Qi <yao@codesourcery.com>
7730
7731 * Makefile.in (SFILES): Add nat/ppc-linux.c.
7732 (ppc-linux.o): New rule.
7733 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
7734 * configure.ac: AC_CHECK_FUNCS(getauxval).
7735 * config.in: Re-generated.
7736 * configure: Re-generated.
7737 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
7738 ppc64_64bit_inferior_p
7739
7740 2015-01-14 Yao Qi <yao@codesourcery.com>
7741
7742 * linux-ppc-low.c: Include "nat/ppc-linux.h".
7743 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
7744 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
7745 (PT_ORIG_R3, PT_TRAP): Likewise.
7746 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
7747 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
7748 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
7749
7750 2015-01-10 Joel Brobecker <brobecker@adacore.com>
7751
7752 * i387-fp.c (i387_cache_to_xsave): In look over
7753 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
7754 zmmh_low_space field by use of zmmh_high_space.
7755
7756 2015-01-09 Pedro Alves <palves@redhat.com>
7757
7758 * linux-low.c (step_over_bkpt): Move higher up in the file.
7759 (handle_extended_wait): Don't store the stop_pc here.
7760 (get_stop_pc): Adjust comments and rename to ...
7761 (check_stopped_by_breakpoint): ... this. Record whether the LWP
7762 stopped for a software breakpoint or hardware breakpoint.
7763 (thread_still_has_status_pending_p): New function.
7764 (status_pending_p_callback): Use
7765 thread_still_has_status_pending_p. If the event is no longer
7766 interesting, resume the LWP.
7767 (handle_tracepoints): Add assert.
7768 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
7769 (wstatus_maybe_breakpoint): New function.
7770 (cancel_breakpoint): Delete function.
7771 (check_stopped_by_watchpoint): New function, factored out from
7772 linux_low_filter_event.
7773 (lp_status_maybe_breakpoint): Delete function.
7774 (linux_low_filter_event): Remove filter_ptid argument.
7775 Leave thread group exits pending here. Store the LWP's stop PC.
7776 Always leave events pending.
7777 (linux_wait_for_event_filtered): Pull all events out of the
7778 kernel, and leave them all pending.
7779 (count_events_callback, select_event_lwp_callback): Consider all
7780 events.
7781 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
7782 (select_event_lwp): Only give preference to the stepping LWP in
7783 all-stop mode. Adjust comments.
7784 (ignore_event): New function.
7785 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
7786 references to cancel_breakpoints. Adjust to renames. Also give
7787 equal priority to all LWPs that have had events in non-stop mode.
7788 If reporting a software breakpoint event, unadjust the LWP's PC.
7789 (linux_wait): If linux_wait_1 returned an ignored event, retry.
7790 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
7791 Adjust.
7792 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
7793 (resume_status_pending_p): Use thread_still_has_status_pending_p.
7794 (linux_stopped_by_watchpoint): Adjust.
7795 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
7796 * linux-low.h (enum lwp_stop_reason): New.
7797 (struct lwp_info) <stop_pc>: Adjust comment.
7798 <stopped_by_watchpoint>: Delete field.
7799 <stop_reason>: New field.
7800 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
7801 * mem-break.c (software_breakpoint_inserted_here)
7802 (hardware_breakpoint_inserted_here): New function.
7803 * mem-break.h (software_breakpoint_inserted_here)
7804 (hardware_breakpoint_inserted_here): Declare.
7805 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
7806 (cancel_breakpoints): Delete.
7807 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
7808 (upload_fast_traceframes): Remove references to
7809 cancel_breakpoints.
7810
7811 2015-01-09 Pedro Alves <palves@redhat.com>
7812
7813 * thread-db.c (find_new_threads_callback): Ignore thread if the
7814 kernel thread ID is -1.
7815
7816 2015-01-09 Pedro Alves <palves@redhat.com>
7817
7818 * linux-low.c (linux_attach_fail_reason_string): Move to
7819 nat/linux-ptrace.c, and rename.
7820 (linux_attach_lwp): Update comment.
7821 (attach_proc_task_lwp_callback): New function.
7822 (linux_attach): Adjust to rename and use
7823 linux_proc_attach_tgid_threads.
7824 (linux_attach_fail_reason_string): Delete declaration.
7825
7826 2015-01-01 Joel Brobecker <brobecker@adacore.com>
7827
7828 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
7829 * server.c (gdbserver_version): Likewise.
7830
7831 2014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
7832
7833 * remote-utils.c: Include ctype.h.
7834 (input_interrupt): Explicitly handle the case when the char
7835 received is the NUL byte. Improve the printing of non-ASCII
7836 characters.
7837
7838 2014-12-16 Joel Brobecker <brobecker@adacore.com>
7839
7840 * linux-low.c (linux_low_filter_event): Update call to
7841 linux_enable_event_reporting following the addition of
7842 a new parameter to that function.
7843
7844 2014-12-16 Catalin Udma <catalin.udma@freescale.com>
7845
7846 PR server/17457
7847 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
7848 (AARCH64_FPCR_REGNO): Likewise.
7849 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
7850 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
7851 (aarch64_store_fpregset): Likewise.
7852
7853 2014-12-15 Joel Brobecker <brobecker@adacore.com>
7854
7855 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
7856 Remove FIXME comment about assumption about N.
7857
7858 2014-12-13 Joel Brobecker <brobecker@adacore.com>
7859
7860 * configure.ac: If large-file support is disabled in GDBserver,
7861 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
7862 * configure: Regenerate.
7863
7864 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
7865
7866 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
7867 warning upon ENODATA from ptrace.
7868 * linux-s390-low.c (s390_store_tdb): New.
7869 (s390_regsets): Add regset for NT_S390_TDB.
7870
7871 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
7872
7873 * linux-low.c (regsets_store_inferior_registers): Skip regsets
7874 without a fill_function.
7875 * linux-s390-low.c (s390_fill_last_break): Remove.
7876 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
7877 (s390_arch_setup): Use regset's size instead of fill_function for
7878 loop end condition.
7879
7880 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
7881
7882 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
7883 the regset's store function when ptrace returned an error.
7884 * regcache.c (get_thread_regcache): Invalidate register cache
7885 before fetching inferior's registers.
7886
7887 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
7888
7889 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
7890 while-loop as for-loop.
7891 (regsets_store_inferior_registers): Likewise.
7892
7893 2014-11-28 Yao Qi <yao@codesourcery.com>
7894
7895 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
7896 * config.in, configure: Re-generate.
7897 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
7898 is defined.
7899
7900 2014-11-21 Yao Qi <yao@codesourcery.com>
7901
7902 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
7903 (AC_CHECK_HEADERS): Remove malloc.h.
7904 * configure: Re-generated.
7905 * config.in: Re-generated.
7906 * server.h: Don't include alloca.h and malloc.h.
7907 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
7908 Don't include malloc.h.
7909
7910 2014-11-17 Joel Brobecker <brobecker@adacore.com>
7911
7912 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
7913 corresponding ERRNO check in same block.
7914
7915 2014-11-12 Pedro Alves <palves@redhat.com>
7916
7917 * server.c (cont_thread): Update comment.
7918 (start_inferior, attach_inferior): No longer clear cont_thread.
7919 (handle_v_cont): No longer set cont_thread.
7920 (captured_main): Clear cont_thread each time a GDB connects.
7921
7922 2014-11-12 Pedro Alves <palves@redhat.com>
7923
7924 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
7925 thread, and don't resume all threads if the Hc thread has exited.
7926
7927 2014-11-12 Pedro Alves <palves@redhat.com>
7928
7929 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
7930 the process group instead of to a specific LWP.
7931
7932 2014-10-15 Pedro Alves <palves@redhat.com>
7933
7934 PR server/17487
7935 * win32-arm-low.c (arm_set_thread_context): Remove current_event
7936 parameter.
7937 (arm_set_thread_context): Delete.
7938 (the_low_target): Adjust.
7939 * win32-i386-low.c (debug_registers_changed)
7940 (debug_registers_used): Delete.
7941 (update_debug_registers_callback): New function.
7942 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
7943 needing to update their debug registers.
7944 (win32_get_current_dr): New function.
7945 (x86_dr_low_get_addr, x86_dr_low_get_control)
7946 (x86_dr_low_get_status): Fetch the debug register from the thread
7947 record's context.
7948 (i386_initial_stuff): Adjust.
7949 (i386_get_thread_context): Remove current_event parameter. Don't
7950 clear debug_registers_changed nor copy DR values to
7951 debug_reg_state.
7952 (i386_set_thread_context): Delete.
7953 (i386_prepare_to_resume): New function.
7954 (i386_thread_added): Mark the thread as needing to update irs
7955 debug registers.
7956 (the_low_target): Remove i386_set_thread_context and install
7957 i386_prepare_to_resume.
7958 * win32-low.c (win32_get_thread_context): Adjust.
7959 (win32_set_thread_context): Use SetThreadContext
7960 directly.
7961 (win32_prepare_to_resume): New function.
7962 (win32_require_context): New function, factored out from ...
7963 (thread_rec): ... this.
7964 (continue_one_thread): Call win32_prepare_to_resume on each thread
7965 we're about to continue.
7966 (win32_resume): Call win32_prepare_to_resume on the event thread.
7967 * win32-low.h (struct win32_thread_info)
7968 <debug_registers_changed>: New field.
7969 (struct win32_target_ops): Change prototype of set_thread_context,
7970 delete set_thread_context and add prepare_to_resume.
7971 (win32_require_context): New declaration.
7972
7973 2014-10-08 Gary Benson <gbenson@redhat.com>
7974
7975 * server.h: Do not include common-exceptions.h.
7976
7977 2014-10-08 Gary Benson <gbenson@redhat.com>
7978
7979 * server.h: Do not include cleanups.h.
7980
7981 2014-09-30 James Hogan <james.hogan@imgtec.com>
7982
7983 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
7984 mips64-dsp-linux.c.
7985
7986 2014-09-23 Yao Qi <yao@codesourcery.com>
7987
7988 * linux-low.c (lp_status_maybe_breakpoint): New function.
7989 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
7990 (count_events_callback): Likewise.
7991 (select_event_lwp_callback): Likewise.
7992 (cancel_breakpoints_callback): Likewise.
7993
7994 2014-09-19 Don Breazeal <donb@codesourcery.com>
7995
7996 * linux-low.c (handle_extended_wait): Call
7997 linux_ptrace_get_extended_event.
7998 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
7999 linux_is_extended_waitstatus.
8000
8001 2014-09-16 Joel Brobecker <brobecker@adacore.com>
8002
8003 * Makefile.in (CPPFLAGS): Define.
8004 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
8005 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
8006
8007 2014-09-16 Gary Benson <gbenson@redhat.com>
8008
8009 * inferiors.h (current_inferior): Renamed as...
8010 (current_thread): New variable. All uses updated.
8011 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
8012 (maybe_move_out_of_jump_pad): Likewise.
8013 (cancel_breakpoint): Likewise.
8014 (linux_low_filter_event): Likewise.
8015 (wait_for_sigstop): Likewise.
8016 (linux_resume_one_lwp): Likewise.
8017 (need_step_over_p): Likewise.
8018 (start_step_over): Likewise.
8019 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
8020 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
8021 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
8022 and save_inferior as saved_thread.
8023 * regcache.c (get_thread_regcache): Renamed saved_inferior as
8024 saved_thread.
8025 (regcache_invalidate_thread): Likewise.
8026 * remote-utils.c (prepare_resume_reply): Likewise.
8027 * thread-db.c (thread_db_get_tls_address): Likewise.
8028 (disable_thread_event_reporting): Likewise.
8029 (remove_thread_event_breakpoints): Likewise.
8030 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
8031 as saved_thread.
8032 * target.h (set_desired_inferior): Renamed as...
8033 (set_desired_thread): New declaration. All uses updated.
8034 * server.c (myresume): Updated comment to reference thread instead
8035 of inferior.
8036 (handle_serial_event): Likewise.
8037 (handle_target_event): Likewise.
8038
8039 2014-09-12 Tom Tromey <tromey@redhat.com>
8040 Gary Benson <gbenson@redhat.com>
8041
8042 * regcache.h: Include common-regcache.h.
8043 (regcache_read_pc): Don't declare.
8044 * regcache.c (get_thread_regcache_for_ptid): New function.
8045
8046 2014-09-11 Tom Tromey <tromey@redhat.com>
8047 Gary Benson <gbenson@redhat.com>
8048
8049 * symbol.c: New file.
8050 * Makefile.in (SFILES): Add symbol.c.
8051 (OBS): Add symbol.o.
8052
8053 2014-09-11 Gary Benson <gbenson@redhat.com>
8054
8055 * target.c (target_stop_ptid, target_continue_ptid): New
8056 functions.
8057
8058 2014-09-11 Tom Tromey <tromey@redhat.com>
8059 Gary Benson <gbenson@redhat.com>
8060
8061 * target.h: Include target/target.h.
8062 * target.c (target_read_memory, target_read_uint32)
8063 (target_write_memory): New functions.
8064
8065 2014-09-11 Gary Benson <gbenson@redhat.com>
8066
8067 * server.h (debug_hw_points): Don't declare.
8068 * server.c (debug_hw_points): Don't define. Replace all uses
8069 with show_debug_regs.
8070 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
8071 all uses with show_debug_regs.
8072
8073 2014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
8074
8075 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
8076 endianness into account.
8077 (ppc_supply_ptrace_register): Likewise.
8078
8079 2014-09-03 James Hogan <james.hogan@imgtec.com>
8080
8081 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
8082 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
8083
8084 2014-09-03 Gary Benson <gbenson@redhat.com>
8085
8086 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
8087 ALL_DEBUG_ADDRESS_REGISTERS.
8088
8089 2014-09-02 Gary Benson <gbenson@redhat.com>
8090
8091 * i386-low.h: Renamed as...
8092 * x86-low.h: New file. All type, function and variable name
8093 prefixes changed from "i386_" to "x86_". All references updated.
8094 * i386-low.c: Renamed as...
8095 * x86-low.c: New file. All type, function and variable name
8096 prefixes changed from "i386_" to "x86_". All references updated.
8097
8098 2014-09-02 Gary Benson <gbenson@redhat.com>
8099
8100 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
8101 (x86_linux_new_thread): Likewise.
8102
8103 2014-08-29 Gary Benson <gbenson@redhat.com>
8104
8105 * server.h (setjmp.h): Do not include.
8106 (toplevel): Do not declare.
8107 (common-exceptions.h): Include.
8108 (cleanups.h): Likewise.
8109 * server.c (toplevel): Do not define.
8110 (exit_code): New static global.
8111 (detach_or_kill_for_exit_cleanup): New function.
8112 (main): New function. Original main renamed to...
8113 (captured_main): New function.
8114 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
8115
8116 2014-08-29 Gary Benson <gbenson@redhat.com>
8117
8118 * Makefile.in (SFILES): Add common/common-exceptions.c.
8119 (OBS): Add common-exceptions.o.
8120 (common-exceptions.o): New rule.
8121 * utils.c (prepare_to_throw_exception): New function.
8122
8123 2014-08-29 Gary Benson <gbenson@redhat.com>
8124
8125 * config.in: Regenerate.
8126 * configure: Likewise.
8127
8128 2014-08-29 Gary Benson <gbenson@redhat.com>
8129
8130 * Makefile.in (SFILES): Add common/cleanups.c.
8131 (OBS): cleanups.o.
8132 (cleanups.o): New rule.
8133
8134 2014-08-29 Gary Benson <gbenson@redhat.com>
8135
8136 * utils.c (internal_vwarning): New function.
8137
8138 2014-08-28 Gary Benson <gbenson@redhat.com>
8139
8140 * utils.h (fatal): Remove declaration.
8141 * utils.c (fatal): Remove function.
8142
8143 2014-08-28 Gary Benson <gbenson@redhat.com>
8144
8145 * tracepoint.c (gdb_agent_init): Replace fatal with
8146 perror_with_name.
8147 (initialize_tracepoint): Likewise.
8148
8149 2014-08-28 Gary Benson <gbenson@redhat.com>
8150
8151 * remote-utils.c (remote_prepare): Replace fatal with error.
8152
8153 2014-08-28 Gary Benson <gbenson@redhat.com>
8154
8155 * linux-low.c (linux_async): Replace fatal with warning.
8156 Tidy up and return.
8157 (linux_start_non_stop): Return -1 if linux_async failed.
8158
8159 2014-08-28 Gary Benson <gbenson@redhat.com>
8160
8161 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
8162 gdb_assert.
8163 (i386_dr_low_get_addr): Remove vague comment.
8164 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
8165 gdb_assert.
8166
8167 2014-08-28 Gary Benson <gbenson@redhat.com>
8168
8169 * inferiors.c (get_thread_process): Replace check with gdb_assert.
8170 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
8171 internal_error.
8172 (linux_resume_one_lwp): Likewise.
8173 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
8174 gdb_assert.
8175 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
8176 with internal_error.
8177 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
8178 (init_register_cache): Replace fatal with gdb_assert_not_reached.
8179 (find_register_by_name): Replace fatal with internal_error.
8180 (find_regno): Likewise.
8181 * tdesc.c (init_target_desc): Replace check with gdb_assert.
8182 * thread-db.c (thread_db_create_event): Likewise.
8183 (thread_db_load_search): Likewise.
8184 (try_thread_db_load_1): Likewise.
8185 * tracepoint.c (get_jump_space_head): Replace fatal with
8186 internal_error.
8187 (claim_trampoline_space): Likewise.
8188 (have_fast_tracepoint_trampoline_buffer): Likewise.
8189 (cmd_qtstart): Likewise.
8190 (stop_tracing): Likewise.
8191 (fast_tracepoint_collecting): Likewise.
8192 (target_malloc): Likewise.
8193 (download_tracepoint): Likewise.
8194 (download_trace_state_variables): Replace check with gdb_assert.
8195 (upload_fast_traceframes): Replace fatal with internal_error.
8196
8197 2014-08-19 Tom Tromey <tromey@redhat.com>
8198 Gary Benson <gbenson@redhat.com>
8199
8200 * Makefile.in (SFILES): Add common/common-debug.c.
8201 (OBS): Add common-debug.o.
8202 (common-debug.o): New rule.
8203 * debug.h (debug_printf): Don't declare.
8204 * debug.c (debug_printf): Renamed and rewritten as...
8205 (debug_vprintf): New function.
8206
8207 2014-08-19 Gary Benson <gbenson@redhat.com>
8208
8209 * utils.h: Do not include print-utils.h.
8210
8211 2014-08-19 Tom Tromey <tromey@redhat.com>
8212 Gary Benson <gbenson@redhat.com>
8213
8214 * server.h: Add static assertion.
8215 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
8216
8217 2014-08-19 Tom Tromey <tromey@redhat.com>
8218 Gary Benson <gbenson@redhat.com>
8219
8220 * Makefile.in (SFILES): Add common/errors.c.
8221 (OBS): Add errors.o.
8222 (IPA_OBS): Add errors-ipa.o.
8223 (errors.o): New rule.
8224 (errors-ipa.o): Likewise.
8225 * utils.h (perror_with_name, error, warning): Don't declare.
8226 * utils.c (warning): Renamed and rewritten as...
8227 (vwarning): New function.
8228 (error): Renamed and rewritten as...
8229 (verror): New function.
8230 (internal_error): Renamed and rewritten as...
8231 (internal_verror): New function.
8232
8233 2014-08-07 Gary Benson <gbenson@redhat.com>
8234
8235 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
8236 * configure: Regenerate.
8237 * config.in: Likewise.
8238 * server.h: Do not include errno.h.
8239 * event-loop.c: Likewise.
8240 * hostio-errno.c: Likewise.
8241 * linux-low.c: Likewise.
8242 * remote-utils.c: Likewise.
8243 * spu-low.c: Likewise.
8244 * utils.c: Likewise.
8245 * gdbreplay.c: Unconditionally include errno.h.
8246
8247 2014-08-07 Gary Benson <gbenson@redhat.com>
8248
8249 * server.h: Do not include string.h.
8250 * event-loop.c: Likewise.
8251 * linux-low.c: Likewise.
8252 * regcache.c: Likewise.
8253 * remote-utils.c: Likewise.
8254 * spu-low.c: Likewise.
8255 * utils.c: Likewise.
8256
8257 2014-08-07 Gary Benson <gbenson@redhat.com>
8258
8259 * server.h: Do not include gdb_assert.h.
8260
8261 2014-08-07 Gary Benson <gbenson@redhat.com>
8262
8263 * server.h: Do not include common-utils.h.
8264
8265 2014-08-07 Gary Benson <gbenson@redhat.com>
8266
8267 * server.h: Do not include ptid.h.
8268 * notif.h: Likewise.
8269
8270 2014-08-07 Gary Benson <gbenson@redhat.com>
8271
8272 * server.h: Do not include gdb_locale.h.
8273
8274 2014-08-07 Gary Benson <gbenson@redhat.com>
8275
8276 * server.h: Do not include gdb/signals.h.
8277 * win32-low.c: Likewise.
8278
8279 2014-08-07 Gary Benson <gbenson@redhat.com>
8280
8281 * server.h: Do not include pathmax.h.
8282
8283 2014-08-07 Gary Benson <gbenson@redhat.com>
8284
8285 * server.h: Do not include libiberty.h.
8286 * linux-bfin-low.c: Likewise.
8287
8288 2014-08-07 Gary Benson <gbenson@redhat.com>
8289
8290 * server.h: Do not include ansidecl.h.
8291
8292 2014-08-07 Gary Benson <gbenson@redhat.com>
8293
8294 * linux-x86-low.c: Do not include stddef.h.
8295 * lynx-ppc-low.c: Likewise.
8296 * tracepoint.c: Likewise.
8297
8298 2014-08-07 Gary Benson <gbenson@redhat.com>
8299
8300 * server.h: Do not include stdarg.h.
8301 * nto-low.c: Likewise.
8302
8303 2014-08-07 Gary Benson <gbenson@redhat.com>
8304
8305 * server.h: Do not include stdlib.h.
8306 * inferiors.c: Likewise.
8307 * linux-low.c: Likewise.
8308 * regcache.c: Likewise.
8309 * spu-low.c: Likewise.
8310 * tracepoint.c: Likewise.
8311 * utils.c: Likewise.
8312
8313 2014-08-07 Gary Benson <gbenson@redhat.com>
8314
8315 * server.h: Do not include stdio.h.
8316 * linux-low.c: Likewise.
8317 * remote-utils.c: Likewise.
8318 * spu-low.c: Likewise.
8319 * utils.c: Likewise.
8320 * wincecompat.c: Likewise.
8321
8322 2014-08-06 Gary Benson <gbenson@redhat.com>
8323
8324 * regcache.c (init_register_cache): Move conditionals inside if.
8325
8326 2014-08-06 Gary Benson <gbenson@redhat.com>
8327
8328 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
8329
8330 2014-07-31 Gary Benson <gbenson@redhat.com>
8331
8332 * ax.h: Do not include server.h.
8333 * gdbthread.h: Likewise.
8334 * lynx-low.h: Likewise.
8335 * notif.h: Likewise.
8336
8337 2014-07-30 Gary Benson <gbenson@redhat.com>
8338
8339 * server.h: Include common-defs.h.
8340 Do not include config.h or build-gnulib-gdbserver/config.h.
8341
8342 2014-07-30 Gary Benson <gbenson@redhat.com>
8343
8344 * hostio-errno.c: Move server.h to top of includes list.
8345 * inferiors.c: Likewise.
8346 * linux-x86-low.c: Likewise.
8347 * notif.c: Include server.h.
8348
8349 2014-07-24 Tom Tromey <tromey@redhat.com>
8350 Gary Benson <gbenson@redhat.com>
8351
8352 * server.h (CORE_ADDR): Now unsigned.
8353
8354 2014-07-16 Pedro Alves <palves@redhat.com>
8355
8356 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
8357
8358 2014-07-15 Pedro Alves <palves@redhat.com>
8359
8360 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
8361 copy.
8362
8363 2014-07-11 Pedro Alves <palves@redhat.com>
8364
8365 * linux-low.c (kill_wait_lwp): New function, based on
8366 kill_one_lwp_callback, but use my_waitpid directly.
8367 (kill_one_lwp_callback, linux_kill): Use it.
8368
8369 2014-06-23 Pedro Alves <palves@redhat.com>
8370
8371 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
8372 before setting DR0..DR3.
8373
8374 2014-06-20 Gary Benson <gbenson@redhat.com>
8375
8376 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
8377 * configure: Regenerated.
8378 * config.in: Likewise.
8379
8380 2014-06-20 Gary Benson <gbenson@redhat.com>
8381
8382 * Makefile.in (SFILES): Update locations for files moved
8383 from common to nat.
8384 (object file files): Reordered.
8385
8386 2014-06-20 Gary Benson <gbenson@redhat.com>
8387
8388 * i386-low.h (i386_dr_low_can_set_addr): Removed.
8389 (i386_dr_low_set_addr): Likewise.
8390 (i386_dr_low_get_addr): Likewise.
8391 (i386_dr_low_can_set_control): Likewise.
8392 (i386_dr_low_set_control): Likewise.
8393 (i386_dr_low_get_control): Likewise.
8394 (i386_dr_low_get_status): Likewise.
8395 (i386_get_debug_register_length): Likewise.
8396 * linux-x86-low.c (i386_dr_low_set_addr):
8397 Changed signature. Made static.
8398 (i386_dr_low_get_addr): Likewise.
8399 (i386_dr_low_set_control): Likewise.
8400 (i386_dr_low_get_control): Likewise.
8401 (i386_dr_low_get_status): Likewise.
8402 (i386_dr_low): New global variable.
8403 * win32-i386-low.c (i386_dr_low_set_addr):
8404 Changed signature. Made static.
8405 (i386_dr_low_get_addr): Likewise.
8406 (i386_dr_low_set_control): Likewise.
8407 (i386_dr_low_get_control): Likewise.
8408 (i386_dr_low_get_status): Likewise.
8409 (i386_dr_low): New global variable.
8410
8411 2014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
8412
8413 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
8414 * Makefile.in (AR, AR_FLAGS): Define.
8415 * configure: Regenerate.
8416
8417 2014-06-19 Gary Benson <gbenson@redhat.com>
8418
8419 * Makefile.in (i386-dregs.o): New rule.
8420 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
8421 * i386-low.c (target.h): Remove include.
8422 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
8423 (DR_CONTROL_SHIFT): Likewise.
8424 (DR_CONTROL_SIZE): Likewise.
8425 (DR_RW_EXECUTE): Likewise.
8426 (DR_RW_WRITE): Likewise.
8427 (DR_RW_READ): Likewise.
8428 (DR_RW_IORW): Likewise.
8429 (DR_LEN_1): Likewise.
8430 (DR_LEN_2): Likewise.
8431 (DR_LEN_4): Likewise.
8432 (DR_LEN_8): Likewise.
8433 (DR_LOCAL_ENABLE_SHIFT): Likewise.
8434 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
8435 (DR_ENABLE_SIZE): Likewise.
8436 (DR_LOCAL_SLOWDOWN): Likewise.
8437 (DR_GLOBAL_SLOWDOWN): Likewise.
8438 (DR_CONTROL_RESERVED): Likewise.
8439 (I386_DR_CONTROL_MASK): Likewise.
8440 (I386_DR_VACANT): Likewise.
8441 (I386_DR_LOCAL_ENABLE): Likewise.
8442 (I386_DR_GLOBAL_ENABLE): Likewise.
8443 (I386_DR_DISABLE): Likewise.
8444 (I386_DR_SET_RW_LEN): Likewise.
8445 (I386_DR_GET_RW_LEN): Likewise.
8446 (I386_DR_WATCH_HIT): Likewise.
8447 (i386_wp_op_t): Likewise.
8448 (i386_show_dr): Likewise.
8449 (i386_length_and_rw_bits): Likewise.
8450 (i386_insert_aligned_watchpoint): Likewise.
8451 (i386_remove_aligned_watchpoint): Likewise.
8452 (i386_handle_nonaligned_watchpoint): Likewise.
8453 i386_update_inferior_debug_regs(): Likewise.
8454 (i386_dr_insert_watchpoint): Likewise.
8455 (i386_dr_remove_watchpoint): Likewise.
8456 (i386_dr_region_ok_for_watchpoint): Likewise.
8457 (i386_dr_stopped_data_address): Likewise.
8458 (i386_dr_stopped_by_watchpoint): Likewise.
8459
8460 2014-06-19 Gary Benson <gbenson@redhat.com>
8461
8462 * i386-low.c (i386_dr_show): Renamed to
8463 i386_show_dr and made static. All uses updated.
8464 (i386_dr_length_and_rw_bits): Renamed to
8465 i386_length_and_rw_bits and made static.
8466 All uses updated.
8467 (i386_dr_insert_aligned_watchpoint): Renamed to
8468 i386_insert_aligned_watchpoint and made static.
8469 All uses updated.
8470 (i386_dr_remove_aligned_watchpoint): Renamed to
8471 i386_remove_aligned_watchpoint and made static.
8472 All uses updated.
8473 (i386_dr_update_inferior_debug_regs): Renamed to
8474 i386_update_inferior_debug_regs and made static.
8475 All uses updated.
8476
8477 2014-06-18 Gary Benson <gbenson@redhat.com>
8478
8479 * i386-low.h (i386_dr_low_can_set_addr): New macro.
8480 (i386_dr_low_can_set_control): Likewise.
8481 (i386_get_debug_register_length): Likewise.
8482 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
8483 (i386_dr_low_can_set_control): Likewise.
8484 (i386_get_debug_register_length): Likewise.
8485
8486 2014-06-17 Gary Benson <gbenson@redhat.com>
8487
8488 * i386-low.h (i386-dregs.h): New include.
8489 (DR_FIRSTADDR): Now in i386-dregs.h.
8490 (DR_LASTADDR): Likewise.
8491 (DR_NADDR): Likewise.
8492 (DR_STATUS): Likewise.
8493 (DR_CONTROL): Likewise.
8494 (i386_debug_reg_state): Likewise.
8495 (i386_dr_insert_watchpoint): Likewise.
8496 (i386_dr_remove_watchpoint): Likewise.
8497 (i386_dr_region_ok_for_watchpoint): Likewise.
8498 (i386_dr_stopped_data_address): Likewise.
8499 (i386_dr_stopped_by_watchpoint): Likewise.
8500 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
8501
8502 2014-06-18 Gary Benson <gbenson@redhat.com>
8503
8504 * i386-low.h (i386_low_insert_watchpoint): Renamed to
8505 i386_dr_insert_watchpoint.
8506 (i386_low_remove_watchpoint): Renamed to
8507 i386_dr_remove_watchpoint.
8508 (i386_low_region_ok_for_watchpoint): Renamed to
8509 i386_dr_region_ok_for_watchpoint.
8510 (i386_low_stopped_data_address): Renamed to
8511 i386_dr_stopped_data_address.
8512 (i386_low_stopped_by_watchpoint): Renamed to
8513 i386_dr_stopped_by_watchpoint.
8514 * i386-low.c (i386_show_dr): Renamed to
8515 i386_dr_show and made nonstatic. All uses updated.
8516 (i386_length_and_rw_bits): Renamed to
8517 i386_dr_length_and_rw_bits and made nonstatic.
8518 All uses updated.
8519 (i386_insert_aligned_watchpoint): Renamed to
8520 i386_dr_insert_aligned_watchpoint and made nonstatic.
8521 All uses updated.
8522 (i386_remove_aligned_watchpoint): Renamed to
8523 i386_dr_remove_aligned_watchpoint and made nonstatic.
8524 All uses updated.
8525 (i386_update_inferior_debug_regs): Renamed to
8526 i386_dr_update_inferior_debug_regs and made nonstatic.
8527 All uses updated.
8528 (i386_low_insert_watchpoint): Renamed to
8529 i386_dr_insert_watchpoint. All uses updated.
8530 (i386_low_remove_watchpoint): Renamed to
8531 i386_dr_remove_watchpoint. All uses updated.
8532 (i386_low_region_ok_for_watchpoint): Renamed to
8533 i386_dr_region_ok_for_watchpoint. All uses updated.
8534 (i386_low_stopped_data_address): Renamed to
8535 i386_dr_stopped_data_address. All uses updated.
8536 (i386_low_stopped_by_watchpoint): Renamed to
8537 i386_dr_stopped_by_watchpoint. All uses updated.
8538
8539 2014-06-18 Gary Benson <gbenson@redhat.com>
8540
8541 * i386-low.c (i386_dr_low_can_set_addr): New macro.
8542 (i386_dr_low_can_set_control): Likewise.
8543 (i386_insert_aligned_watchpoint): New check.
8544
8545 2014-06-18 Gary Benson <gbenson@redhat.com>
8546
8547 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
8548 Renamed to state.
8549
8550 2014-06-18 Gary Benson <gbenson@redhat.com>
8551
8552 * i386-low.c (i386_length_and_rw_bits): Use internal_error
8553 instead of fatal and error.
8554 (i386_handle_nonaligned_watchpoint): Likewise.
8555
8556 2014-06-18 Gary Benson <gbenson@redhat.com>
8557
8558 * i386-low.c (i386_get_debug_register_length): New macro.
8559 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
8560 (i386_show_dr): Use debug_printf instead of fprintf. Use
8561 phex to format values.
8562
8563 2014-06-18 Gary Benson <gbenson@redhat.com>
8564
8565 * i386-low.h: Comment changes.
8566 * i386-low.c: Likewise.
8567
8568 2014-06-18 Gary Benson <gbenson@redhat.com>
8569
8570 * i386-low.c: Whitespace changes.
8571
8572 2014-06-12 Tom Tromey <tromey@redhat.com>
8573
8574 * utils.c (freeargv): Remove.
8575
8576 2014-06-12 Tom Tromey <tromey@redhat.com>
8577
8578 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
8579 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
8580 (parse_debug_format_options): Likewise.
8581 (gdbserver_usage): Likewise.
8582 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
8583 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
8584 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
8585 against libiberty.
8586 ($(LIBGNU)): Depend on libiberty.
8587 (all-lib): Recurse into all subdirs.
8588 (install-only): Invoke "install" target in subdirs.
8589 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
8590 targets.
8591 * configure: Rebuild.
8592 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
8593 for vasprintf, vsnprintf, or gettimeofday.
8594 * configure.srv: Don't add safe-ctype.o or lbasename.o to
8595 srv_tgtobj.
8596
8597 2014-06-05 Joel Brobecker <brobecker@adacore.com>
8598
8599 * development.sh: Delete.
8600 * Makefile.in (config.status): Adjust dependency on development.sh.
8601 * configure.ac: Adjust development.sh source call.
8602 * configure: Regenerate.
8603
8604 2014-06-02 Pedro Alves <palves@redhat.com>
8605
8606 * ax.c (gdb_free_agent_expr): New function.
8607 * ax.h (gdb_free_agent_expr): New declaration.
8608 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
8609 list.
8610 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
8611 static.
8612 (clear_breakpoint_conditions_and_commands): New function.
8613 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
8614 (clear_breakpoint_conditions_and_commands): New declaration.
8615
8616 2014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8617
8618 * linux-aarch64-low.c (asm/ptrace.h): Include.
8619
8620 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8621
8622 Fix TLS access for -static -pthread.
8623 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
8624 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
8625 (thread_db_load_search, try_thread_db_load_1): Initialize it.
8626
8627 2014-05-20 Pedro Alves <palves@redhat.com>
8628
8629 * linux-aarch64-low.c (aarch64_insert_point)
8630 (aarch64_remove_point): No longer check whether the type is
8631 supported here. Adjust to new interface.
8632 (the_low_target): Install aarch64_supports_z_point_type as
8633 supports_z_point_type method.
8634 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
8635 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
8636 instead of a Z packet char. Adjust.
8637 (arm_supports_z_point_type): New function.
8638 (arm_insert_point, arm_remove_point): Adjust to new interface.
8639 (the_low_target): Install arm_supports_z_point_type.
8640 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
8641 (cris_insert_point, cris_remove_point): Adjust to new interface.
8642 Don't check whether the type is supported here.
8643 (the_low_target): Install cris_supports_z_point_type.
8644 * linux-low.c (linux_supports_z_point_type): New function.
8645 (linux_insert_point, linux_remove_point): Adjust to new interface.
8646 * linux-low.h (struct linux_target_ops) <insert_point,
8647 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
8648 raw_breakpoint pointer parameter.
8649 <supports_z_point_type>: New method.
8650 * linux-mips-low.c (mips_supports_z_point_type): New function.
8651 (mips_insert_point, mips_remove_point): Adjust to new interface.
8652 Use mips_supports_z_point_type.
8653 (the_low_target): Install mips_supports_z_point_type.
8654 * linux-ppc-low.c (the_low_target): Install NULL as
8655 supports_z_point_type method.
8656 * linux-s390-low.c (the_low_target): Install NULL as
8657 supports_z_point_type method.
8658 * linux-sparc-low.c (the_low_target): Install NULL as
8659 supports_z_point_type method.
8660 * linux-x86-low.c (x86_supports_z_point_type): New function.
8661 (x86_insert_point): Adjust to new insert_point interface. Use
8662 insert_memory_breakpoint. Adjust to new
8663 i386_low_insert_watchpoint interface.
8664 (x86_remove_point): Adjust to remove_point interface. Use
8665 remove_memory_breakpoint. Adjust to new
8666 i386_low_remove_watchpoint interface.
8667 (the_low_target): Install x86_supports_z_point_type.
8668 * lynx-low.c (lynx_target_ops): Install NULL as
8669 supports_z_point_type callback.
8670 * nto-low.c (nto_supports_z_point_type): New.
8671 (nto_insert_point, nto_remove_point): Adjust to new interface.
8672 (nto_target_ops): Install nto_supports_z_point_type.
8673 * mem-break.c: Adjust intro comment.
8674 (struct raw_breakpoint) <raw_type, size>: New fields.
8675 <inserted>: Update comment.
8676 <shlib_disabled>: Delete field.
8677 (enum bkpt_type) <gdb_breakpoint>: Delete value.
8678 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
8679 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
8680 (raw_bkpt_type_to_target_hw_bp_type): New function.
8681 (find_enabled_raw_code_breakpoint_at): New function.
8682 (find_raw_breakpoint_at): New type and size parameters. Use them.
8683 (insert_memory_breakpoint): New function, based off
8684 set_raw_breakpoint_at.
8685 (remove_memory_breakpoint): New function.
8686 (set_raw_breakpoint_at): Reimplement.
8687 (set_breakpoint): New, based on set_breakpoint_at.
8688 (set_breakpoint_at): Reimplement.
8689 (delete_raw_breakpoint): Go through the_target->remove_point
8690 instead of assuming memory breakpoints.
8691 (find_gdb_breakpoint_at): Delete.
8692 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
8693 (find_gdb_breakpoint): New function.
8694 (set_gdb_breakpoint_at): Delete.
8695 (z_type_supported): New function.
8696 (set_gdb_breakpoint_1): New function, loosely based off
8697 set_gdb_breakpoint_at.
8698 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
8699 (delete_gdb_breakpoint_at): Delete.
8700 (delete_gdb_breakpoint_1): New function, loosely based off
8701 delete_gdb_breakpoint_at.
8702 (delete_gdb_breakpoint): New function.
8703 (clear_gdb_breakpoint_conditions): Rename to ...
8704 (clear_breakpoint_conditions): ... this. Don't handle a NULL
8705 breakpoint.
8706 (add_condition_to_breakpoint): Make static.
8707 (add_breakpoint_condition): Take a struct breakpoint pointer
8708 instead of an address. Adjust.
8709 (gdb_condition_true_at_breakpoint): Rename to ...
8710 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
8711 z_type parameter.
8712 (gdb_condition_true_at_breakpoint): Reimplement.
8713 (add_breakpoint_commands): Take a struct breakpoint pointer
8714 instead of an address. Adjust.
8715 (gdb_no_commands_at_breakpoint): Rename to ...
8716 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
8717 parameter. Return true if no breakpoint was found. Change debug
8718 output.
8719 (gdb_no_commands_at_breakpoint): Reimplement.
8720 (run_breakpoint_commands): Rename to ...
8721 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
8722 and change return type to boolean.
8723 (run_breakpoint_commands): New function.
8724 (gdb_breakpoint_here): Also check for Z1 breakpoints.
8725 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
8726 breakpoint. Go through the_target->remove_point instead of
8727 assuming memory breakpoint.
8728 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
8729 software and hardware breakpoints.
8730 (reinsert_raw_breakpoint): Go through the_target->insert_point
8731 instead of assuming memory breakpoint.
8732 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
8733 software and hardware breakpoints.
8734 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
8735 Check both software and hardware breakpoints.
8736 (validate_inserted_breakpoint): Assert the breakpoint is a
8737 software breakpoint. Set the inserted flag to -1 instead of
8738 setting shlib_disabled.
8739 (delete_disabled_breakpoints): Adjust.
8740 (validate_breakpoints): Only validate software breakpoints.
8741 Adjust to inserted flag change.
8742 (check_mem_read, check_mem_write): Skip breakpoint types other
8743 than software breakpoints. Adjust to inserted flag change.
8744 * mem-break.h (enum raw_bkpt_type): New enum.
8745 (raw_breakpoint, struct process_info): Forward declare.
8746 (Z_packet_to_target_hw_bp_type): Delete declaration.
8747 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
8748 (set_gdb_breakpoint, delete_gdb_breakpoint)
8749 (clear_breakpoint_conditions): New declarations.
8750 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
8751 (breakpoint_inserted_here): Update comment.
8752 (add_breakpoint_condition, add_breakpoint_commands): Replace
8753 address parameter with a breakpoint pointer parameter.
8754 (gdb_breakpoint_here): Update comment.
8755 (delete_gdb_breakpoint_at): Delete.
8756 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
8757 * server.c (process_point_options): Take a struct breakpoint
8758 pointer instead of an address. Adjust.
8759 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
8760 delete_gdb_breakpoint.
8761 * spu-low.c (spu_target_ops): Install NULL as
8762 supports_z_point_type method.
8763 * target.h: Include mem-break.h.
8764 (struct target_ops) <prepare_to_access_memory>: Update comment.
8765 <supports_z_point_type>: New field.
8766 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
8767 instead of a char. Also take a raw breakpoint pointer.
8768 * win32-arm-low.c (the_low_target): Install NULL as
8769 supports_z_point_type.
8770 * win32-i386-low.c (i386_supports_z_point_type): New function.
8771 (i386_insert_point, i386_remove_point): Adjust to new interface.
8772 (the_low_target): Install i386_supports_z_point_type.
8773 * win32-low.c (win32_supports_z_point_type): New function.
8774 (win32_insert_point, win32_remove_point): Adjust to new interface.
8775 (win32_target_ops): Install win32_supports_z_point_type.
8776 * win32-low.h (struct win32_target_ops):
8777 <supports_z_point_type>: New method.
8778 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
8779 instead of a char. Also take a raw breakpoint pointer.
8780
8781 2014-05-20 Pedro Alves <palves@redhat.com>
8782
8783 * mem-break.h: Include break-common.h.
8784 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
8785 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
8786 (Z_packet_to_target_hw_bp_type): New declaration.
8787 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
8788 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
8789 (Z_PACKET_ACCESS_WP): Delete macros.
8790 (Z_packet_to_hw_type): Delete function.
8791 * i386-low.h: Don't include break-common.h here.
8792 (Z_packet_to_hw_type): Delete declaration.
8793 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
8794 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
8795 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
8796 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
8797 * linux-aarch64-low.c: Don't include break-common.h here.
8798 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
8799 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
8800 (Z_packet_to_target_hw_bp_type): Delete function.
8801 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
8802 function.
8803 (mips_insert_point, mips_remove_point): Use
8804 Z_packet_to_target_hw_bp_type.
8805
8806 2014-05-20 Pedro Alves <palves@redhat.com>
8807
8808 * linux-aarch64-low.c: Include break-common.h.
8809 (enum target_point_type): Delete.
8810 (Z_packet_to_point_type): Rename to ...
8811 (Z_packet_to_target_hw_bp_type): ... this, and return a
8812 target_hw_bp_type instead.
8813 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
8814 instead of an enum target_point_type.
8815 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
8816 breakpoint type.
8817 (aarch64_dr_state_insert_one_point)
8818 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
8819 (aarch64_handle_aligned_watchpoint)
8820 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
8821 Take an enum target_hw_bp_type instead of an enum
8822 target_point_type.
8823 (aarch64_supports_z_point_type): New function.
8824 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
8825 use Z_packet_to_target_hw_bp_type.
8826
8827 2014-05-20 Joel Brobecker <brobecker@adacore.com>
8828
8829 * configure.ac: Only use -Werror by default when DEVELOPMENT
8830 is true.
8831 * configure: Regenerate.
8832
8833 2014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8834
8835 Fix gdbserver qGetTLSAddr for x86_64 -m32.
8836 * linux-x86-low.c (X86_64_USER_REGS): New.
8837 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
8838
8839 2014-04-28 Yao Qi <yao@codesourcery.com>
8840
8841 * Makefile.in (i386-avx512.c): Fix the typo of generated file
8842 name.
8843
8844 2014-04-25 Pedro Alves <palves@redhat.com>
8845
8846 PR server/16255
8847 * linux-low.c (linux_attach_fail_reason_string): New function.
8848 (linux_attach_lwp): Delete.
8849 (linux_attach_lwp_1): Rename to ...
8850 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
8851 argument. Remove "initial" parameter. Return int instead of
8852 void. Don't error or warn here.
8853 (linux_attach): Adjust to call linux_attach_lwp. Call error on
8854 failure to attach to the tgid. Call warning when failing to
8855 attach to an lwp.
8856 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
8857 argument. Remove "initial" parameter. Return int instead of
8858 void. Don't error or warn here.
8859 (linux_attach_fail_reason_string): New declaration.
8860 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
8861 interface change. Use linux_attach_fail_reason_string.
8862
8863 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
8864 Walfred Tedeschi <walfred.tedeschi@intel.com>
8865
8866 * Makefile.in: Added rules to handle new files
8867 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
8868 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
8869 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
8870 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
8871 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
8872 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
8873 x32-avx512-linux.o.
8874 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
8875 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
8876 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
8877 i386/x32-avx512.xml.
8878 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
8879 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
8880 i386/x32-avx512-linux.xml.
8881 * i387-fp.c (num_avx512_k_registers): New constant for number
8882 of K registers.
8883 (num_avx512_zmmh_low_registers): New constant for number of
8884 lower ZMM registers (0-15).
8885 (num_avx512_zmmh_high_registers): New constant for number of
8886 higher ZMM registers (16-31).
8887 (num_avx512_ymmh_registers): New contant for number of higher
8888 YMM registers (ymm16-31 added by avx521 on x86_64).
8889 (num_avx512_xmm_registers): New constant for number of higher
8890 XMM registers (xmm16-31 added by AVX512 on x86_64).
8891 (struct i387_xsave): Add space for AVX512 registers.
8892 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
8893 Add code to handle AVX512 registers.
8894 (i387_xsave_to_cache): Add code to handle AVX512 registers.
8895 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
8896 prototypei from generated file.
8897 (tdesc_amd64_avx512_linux): Likewise.
8898 (init_registers_x32_avx512_linux): Likewise.
8899 (tdesc_x32_avx512_linux): Likewise.
8900 (init_registers_i386_avx512_linux): Likewise.
8901 (tdesc_i386_avx512_linux): Likewise.
8902 (x86_64_regmap): Add AVX512 registers.
8903 (x86_linux_read_description): Add code to handle AVX512 XSTATE
8904 mask.
8905 (initialize_low_arch): Add code to initialize AVX512 registers.
8906
8907 2014-04-23 Pedro Alves <palves@redhat.com>
8908
8909 * mem-break.c (find_gdb_breakpoint_at): Make static.
8910 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
8911
8912 2014-04-23 Pedro Alves <palves@redhat.com>
8913
8914 * i386-low.c: Don't include break-common.h here.
8915 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
8916 prototype to take target_hw_bp_type as argument instead of a Z
8917 packet char.
8918 * i386-low.h: Include break-common.h here.
8919 (Z_packet_to_hw_type): Declare.
8920 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
8921 prototypes.
8922 * linux-x86-low.c (x86_insert_point): Convert the packet number to
8923 a target_hw_bp_type before calling i386_low_insert_watchpoint.
8924 (x86_remove_point): Convert the packet number to a
8925 target_hw_bp_type before calling i386_low_remove_watchpoint.
8926 * win32-i386-low.c (i386_insert_point): Convert the packet number
8927 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
8928 (i386_remove_point): Convert the packet number to a
8929 target_hw_bp_type before calling i386_low_remove_watchpoint.
8930
8931 2014-04-23 Pedro Alves <palves@redhat.com>
8932
8933 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
8934
8935 2014-04-10 Pedro Alves <palves@redhat.com>
8936
8937 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
8938 Check if the condition or command is NULL before checking if the
8939 breakpoint is known. On success, return true.
8940 * mem-break.h (add_breakpoint_condition): Document return.
8941 (add_breakpoint_commands): Add describing comment.
8942 * server.c (skip_to_semicolon): New function.
8943 (process_point_options): Use it.
8944
8945 2014-04-09 Pedro Alves <palves@redhat.com>
8946
8947 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
8948 to lwpid_of.
8949
8950 2014-02-27 Pedro Alves <palves@redhat.com>
8951
8952 PR 12702
8953 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
8954 macros.
8955 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
8956 output.
8957 (last_thread_of_process_p): Take a PID argument instead of a
8958 thread pointer.
8959 (linux_wait_for_lwp): Delete.
8960 (num_lwps, check_zombie_leaders, not_stopped_callback): New
8961 functions.
8962 (linux_low_filter_event): New function, party factored out from
8963 linux_wait_for_event.
8964 (linux_wait_for_event): Rename to ...
8965 (linux_wait_for_event_filtered): ... this. Add new filter ptid
8966 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
8967 sigsuspend. Check for zombie leaders.
8968 (linux_wait_for_event): Reimplement as wrapper around
8969 linux_wait_for_event_filtered.
8970 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
8971 a normal or signal exit is seen, it's the whole process exiting.
8972 (wait_for_sigstop): No longer a for_each_inferior callback.
8973 Rewrite on top of linux_wait_for_event_filtered.
8974 (stop_all_lwps): Call wait_for_sigstop directly.
8975 * server.c (resume, handle_target_event): Handle
8976 TARGET_WAITKIND_NO_RESUMED.
8977
8978 2014-02-26 Joel Brobecker <brobecker@adacore.com>
8979
8980 * win32-low.c (psapi_get_dll_name,
8981 * win32_CreateToolhelp32Snapshot): Delete.
8982 (win32_CreateToolhelp32Snapshot, win32_Module32First)
8983 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
8984 Delete.
8985 (handle_load_dll): Add function description.
8986 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
8987
8988 2014-02-26 Joel Brobecker <brobecker@adacore.com>
8989
8990 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
8991 Add comment.
8992 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
8993 base address when calling win32_add_one_solib.
8994 (handle_load_dll): Delete local variable load_addr.
8995 Remove 0x1000 offset applied to DLL base address when calling
8996 win32_add_one_solib.
8997 (handle_unload_dll): Add comment.
8998
8999 2014-02-26 Joel Brobecker <brobecker@adacore.com>
9000
9001 * win32-low.c (win32_add_all_dlls): Renames
9002 win32_ensure_ntdll_loaded. Rewrite function documentation.
9003 Adjust implementation to always load all DLLs.
9004 Add 0x1000 offset to DLL base address when calling
9005 win32_add_one_solib.
9006 (child_initialization_done): New static global.
9007 (do_initial_child_stuff): Set child_initialization_done to
9008 zero during child initialization, and 1 after. Replace call
9009 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
9010 Add comment.
9011 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
9012 (handle_unload_dll): Add function documentation.
9013 (get_child_debug_event): Ignore load and unload DLL events
9014 during child initialization.
9015
9016 2014-02-20 Doug Evans <dje@google.com>
9017
9018 Remove global all_lwps.
9019 * inferiors.h (ptid_of): Move here from linux-low.h.
9020 (pid_of, lwpid_of): Ditto.
9021 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
9022 parameter is a struct thread_info * now.
9023 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
9024 directly. Pass &all_threads to find_inferior instead of &all_lwps.
9025 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
9026 directly.
9027 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
9028 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
9029 * linux-arm-low.c (update_registers_callback): Update, "entry"
9030 parameter is a struct thread_info * now.
9031 Fetch lwpid from current_inferior directly.
9032 (arm_insert_point): Pass &all_threads to find_inferior instead of
9033 &all_lwps.
9034 (arm_remove_point): Ditto.
9035 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
9036 (arm_prepare_to_resume): Fetch pid from thread.
9037 (arm_read_description): Fetch lwpid from current_inferior directly.
9038 * linux-low.c (all_lwps): Delete.
9039 (delete_lwp): Delete call to remove_inferior.
9040 (handle_extended_wait): Fetch lwpid from thread.
9041 (add_lwp): Don't set lwp->entry.id. Remove call to
9042 add_inferior_to_list.
9043 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
9044 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
9045 (kill_one_lwp_callback): Ditto.
9046 (linux_kill): Don't dereference NULL pointer.
9047 Fetch ptid,lwpid from thread.
9048 (get_detach_signal): Fetch ptid from thread.
9049 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
9050 Simplify call to regcache_invalidate_thread.
9051 (delete_lwp_callback): Update, "entry" parameter is a
9052 struct thread_info * now. Fetch pid from thread.
9053 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
9054 (status_pending_p_callback): Update, "entry" parameter is a
9055 struct thread_info * now. Fetch ptid from thread.
9056 (find_lwp_pid): Update, "entry" parameter is a
9057 struct thread_info * now.
9058 (linux_wait_for_lwp): Fetch pid from thread.
9059 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
9060 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
9061 (enqueue_one_deferred_signal): Fetch lwpid from thread.
9062 (dequeue_one_deferred_signal): Ditto.
9063 (cancel_breakpoint): Fetch ptid from current_inferior.
9064 (linux_wait_for_event): Pass &all_threads to find_inferior,
9065 not &all_lwps. Fetch ptid, lwpid from thread.
9066 (count_events_callback): Update, "entry" parameter is a
9067 struct thread_info * now.
9068 (select_singlestep_lwp_callback): Ditto.
9069 (select_event_lwp_callback): Ditto.
9070 (cancel_breakpoints_callback): Ditto.
9071 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
9072 not &all_lwps.
9073 (select_event_lwp): Ditto. Fetch ptid from event_thread.
9074 (unsuspend_one_lwp): Update, "entry" parameter is a
9075 struct thread_info * now.
9076 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
9077 not &all_lwps.
9078 (linux_stabilize_threads): Ditto. And for for_each_inferior.
9079 Fetch lwpid from thread, not lwp.
9080 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
9081 Pass &all_threads to find_inferior, not &all_lwps.
9082 (send_sigstop): Fetch lwpid from thread, not lwp.
9083 (send_sigstop_callback): Update, "entry" parameter is a
9084 struct thread_info * now.
9085 (suspend_and_send_sigstop_callback): Ditto.
9086 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
9087 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
9088 struct thread_info * now.
9089 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
9090 from thread, lwp.
9091 (lwp_running): Update, "entry" parameter is a
9092 struct thread_info * now.
9093 (stop_all_lwps): Fetch ptid from thread.
9094 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
9095 (linux_resume_one_lwp): Fetch lwpid from thread.
9096 (linux_set_resume_request): Update, "entry" parameter is a
9097 struct thread_info * now. Fetch pid, lwpid from thread.
9098 (resume_status_pending_p): Update, "entry" parameter is a
9099 struct thread_info * now.
9100 (need_step_over_p): Ditto. Fetch lwpid from thread.
9101 (start_step_over): Fetch lwpid from thread.
9102 (linux_resume_one_thread): Update, "entry" parameter is a
9103 struct thread_info * now. Fetch lwpid from thread.
9104 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
9105 (proceed_one_lwp): Update, "entry" parameter is a
9106 struct thread_info * now. Fetch lwpid from thread.
9107 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
9108 struct thread_info * now.
9109 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
9110 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
9111 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
9112 directly.
9113 (regsets_store_inferior_registers): Ditto.
9114 (fetch_register, store_register): Ditto.
9115 (linux_read_memory, linux_write_memory): Ditto.
9116 (linux_request_interrupt): Ditto.
9117 (linux_read_auxv): Ditto.
9118 (linux_xfer_siginfo): Ditto.
9119 (linux_qxfer_spu): Ditto.
9120 (linux_qxfer_libraries_svr4): Ditto.
9121 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
9122 moved to inferiors.h.
9123 (get_lwp): Delete.
9124 (get_thread_lwp): Update.
9125 (struct lwp_info): Delete member "entry". Simplify comment for
9126 member "thread".
9127 (all_lwps): Delete.
9128 * linux-mips-low.c (mips_read_description): Fetch lwpid from
9129 current_inferior directly.
9130 (update_watch_registers_callback): Update, "entry" parameter is a
9131 struct thread_info * now. Fetch pid from thread.
9132 (mips_linux_prepare_to_resume): Fetch ptid from thread.
9133 (mips_insert_point): Fetch lwpid from current_inferior.
9134 Pass &all_threads to find_inferior, not &all_lwps.
9135 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
9136 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
9137 directly.
9138 (mips_stopped_data_address): Ditto.
9139 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
9140 directly.
9141 * linux-tile-low.c (tile_arch_setup): Ditto.
9142 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
9143 (update_debug_registers_callback): Update, "entry" parameter is a
9144 struct thread_info * now. Fetch pid from thread.
9145 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
9146 Pass &all_threads to find_inferior, not &all_lwps.
9147 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
9148 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
9149 Pass &all_threads to find_inferior, not &all_lwps.
9150 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
9151 (i386_dr_low_get_status): Ditto.
9152 (x86_linux_prepare_to_resume): Fetch ptid from thread.
9153 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
9154 (x86_linux_read_description): Ditto.
9155 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
9156
9157 2014-02-20 Doug Evans <dje@google.com>
9158
9159 * inferiors.c (get_first_inferior): Fix buglet.
9160
9161 2014-02-19 Doug Evans <dje@google.com>
9162
9163 * gdbthread.h (add_thread): Change result type to struct thread_info *.
9164 * inferiors.c (add_thread): Change result type to struct thread_info *.
9165 All callers updated.
9166 (add_lwp): Call add_thread here instead of in callers.
9167 All callers updated.
9168 * linux-low.h (get_lwp_thread): Rewrite.
9169 (struct lwp_info): New member "thread".
9170
9171 2014-02-19 Doug Evans <dje@google.com>
9172
9173 * linux-low.c (add_lwp): Change result to struct lwp_info *.
9174 All callers updated.
9175
9176 2014-02-19 Doug Evans <dje@google.com>
9177
9178 * inferiors.c (add_thread): Fix whitespace.
9179
9180 2014-02-19 Doug Evans <dje@google.com>
9181
9182 * dll.c (clear_dlls): Replace accessing list implemention details
9183 with API function.
9184 * gdbthread.h (get_first_thread): Declare.
9185 * inferiors.c (for_each_inferior_with_data): New function.
9186 (get_first_thread): New function.
9187 (find_thread_ptid): Simplify.
9188 (get_first_inferior): New function.
9189 (clear_list): Delete.
9190 (one_inferior_p): New function.
9191 (clear_inferior_list): New function.
9192 (clear_inferiors): Update.
9193 * inferiors.h (for_each_inferior_with_data): Declare.
9194 (clear_inferior_list): Declare.
9195 (one_inferior_p): Declare.
9196 (get_first_inferior): Declare.
9197 * linux-low.c (linux_wait_for_event): Replace accessing list
9198 implemention details with API function.
9199 * server.c (target_running): Ditto.
9200 (accumulate_file_name_length): New function.
9201 (emit_dll_description): New function.
9202 (handle_qxfer_libraries): Replace accessing list implemention
9203 details with API function.
9204 (handle_qxfer_threads_worker): New function.
9205 (handle_qxfer_threads_proper): Replace accessing list implemention
9206 details with API function.
9207 (handle_query): Ditto.
9208 (visit_actioned_threads_callback_ftype): New typedef.
9209 (visit_actioned_threads_data): New struct.
9210 (visit_actioned_threads): Rewrite to be find_inferior callback.
9211 (resume): Call find_inferior.
9212 (handle_status): Replace accessing list implemention
9213 details with API function.
9214 (process_serial_event): Replace accessing list implemention details
9215 with API function.
9216 * target.c (set_desired_inferior): Replace accessing list implemention
9217 details with API function.
9218 * tracepoint.c (same_process_p): New function.
9219 (gdb_agent_about_to_close): Replace accessing list implemention
9220 details with API function.
9221 * win32-low.c (child_delete_thread): Replace accessing list
9222 implemention details with API function.
9223 (match_dll_by_basename): New function.
9224 (dll_is_loaded_by_basename): New function.
9225 (win32_ensure_ntdll_loaded): Replace accessing list implemention
9226 details call to dll_is_loaded_by_basename.
9227
9228 2014-02-19 Doug Evans <dje@google.com>
9229
9230 * dll.h (struct dll_info): Add comment.
9231 * gdbthread.h (struct thread_info): Add comment.
9232 (current_ptid): Simplify.
9233 * inferiors.c (add_process): Update.
9234 (remove_process): Update.
9235 * inferiors.h (struct process_info): Rename member "head" to "entry".
9236 * linux-low.c (delete_lwp): Update.
9237 (add_lwp): Update.
9238 (last_thread_of_process_p): Update.
9239 (kill_one_lwp_callback, linux_kill): Update.
9240 (status_pending_p_callback): Update.
9241 (wait_for_sigstop): Update. Simplify read of ptid.
9242 (start_step_over): Update.
9243 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
9244 (get_lwp_thread): Update.
9245 (struct lwp_info): Rename member "head" to "entry".
9246 * regcache.h (inferior_list_entry): Delete.
9247 * server.c (kill_inferior_callback): Update.
9248 (detach_or_kill_inferior_callback): Update.
9249 (print_started_pid): Update.
9250 (print_attached_pid): Update.
9251 (process_serial_event): Simplify read of ptid.
9252 * thread-db.c (thread_db_create_event): Update.
9253 (thread_db_get_tls_address): Update.
9254 * win32-low.c (current_inferior_ptid): Simplify.
9255
9256 2014-02-19 Tom Tromey <tromey@redhat.com>
9257
9258 * target.h (struct target_ops) <supports_btrace>: Add target_ops
9259 argument.
9260 (target_supports_btrace): Update.
9261
9262 2014-02-14 Yao Qi <yao@codesourcery.com>
9263
9264 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
9265 (rsp-low-ipa.o): New target.
9266
9267 2014-02-12 Tom Tromey <tromey@redhat.com>
9268
9269 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
9270 convert_ascii_to_int.
9271 * regcache.c (registers_to_string): Likewise.
9272 * remote-utils.c (decode_M_packet): Likewise.
9273 * server.c (process_serial_event): Likewise.
9274
9275 2014-02-12 Tom Tromey <tromey@redhat.com>
9276
9277 * server.c (handle_query, handle_v_run): Use hex2bin, not
9278 unhexify.
9279 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
9280
9281 2014-02-12 Tom Tromey <tromey@redhat.com>
9282
9283 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
9284 convert_int_to_ascii.
9285 * regcache.c (registers_to_string, collect_register_as_string):
9286 Likewise.
9287 * remote-utils.c (look_up_one_symbol, relocate_instruction):
9288 Likewise.
9289 * server.c (process_serial_event): Likewise.
9290 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
9291 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
9292
9293 2014-02-12 Tom Tromey <tromey@redhat.com>
9294
9295 * remote-utils.c (look_up_one_symbol, monitor_output): Use
9296 bin2hex, not hexify.
9297 * tracepoint.c (cmd_qtstatus): Likewise.
9298
9299 2014-02-12 Tom Tromey <tromey@redhat.com>
9300
9301 * remote-utils.c (monitor_output): Pass explicit length to
9302 hexify.
9303
9304 2014-02-12 Tom Tromey <tromey@redhat.com>
9305
9306 * tracepoint.c: Include rsp-low.h.
9307 * server.c: Include rsp-low.h.
9308 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
9309 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
9310 declare.
9311 * remote-utils.c: Include rsp-low.h.
9312 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
9313 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
9314 (convert_int_to_ascii, convert_ascii_to_int): Move to
9315 common/rsp-low.c.
9316 * regcache.c: Include rsp-low.h.
9317 * ax.c: Include rsp-low.h.
9318 * Makefile.in (SFILES): Add common/rsp-low.c.
9319 (OBS): Add rsp-low.o.
9320 (rsp-low.o): New target.
9321
9322 2014-02-12 Tom Tromey <tromey@redhat.com>
9323
9324 * utils.h (pulongest, plongest, phex_nz): Don't declare.
9325 Include print-utils.h.
9326 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
9327 (plongest, thirty_two, phex_nz): Remove.
9328 * Makefile.in (SFILES): Add common/print-utils.c.
9329 (OBS): Add print-utils.o.
9330 (print-utils-ipa.o): New target.
9331 (print-utils.o): New target.
9332 (IPA_OBJS): Add print-utils-ipa.o.
9333
9334 2014-02-06 Tom Tromey <tromey@redhat.com>
9335
9336 * Makefile.in (SFILES): Fix indentation.
9337
9338 2014-02-05 Doug Evans <dje@google.com>
9339
9340 * linux-low.c (linux_wait_for_event): Improve comment.
9341 (linux_wait_1): Keep current_inferior in sync with event_child.
9342
9343 2014-01-22 Doug Evans <dje@google.com>
9344
9345 * gdbthread.h (gdb_id_to_thread): Delete, unused.
9346
9347 2014-01-22 Doug Evans <dje@google.com>
9348
9349 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
9350 * configure: Regenerate.
9351 * config.in: Regenerate.
9352 * Makefile.in (SFILES): Add debug.c.
9353 (OBS): Add debug.o.
9354 * debug.c: New file.
9355 * debug.h: New file.
9356 * linux-aarch64-low.c (*): Update all debugging printfs to use
9357 debug_printf instead of fprintf.
9358 * linux-arm-low.c (*): Ditto.
9359 * linux-cris-low.c (*): Ditto.
9360 * linux-crisv32-low.c (*): Ditto.
9361 * linux-m32r-low.c (*): Ditto.
9362 * linux-sparc-low.c (*): Ditto.
9363 * linux-x86.c (*): Ditto.
9364 * linux-low.c (*): Ditto.
9365 (linux_wait_1): Add calls to debug_enter, debug_exit.
9366 (linux_wait): Remove redundant debugging printf.
9367 (stop_all_lwps): Add calls to debug_enter, debug_exit.
9368 (linux_resume, unstop_all_lwps): Ditto.
9369 * mem-break.c (*): Update all debugging printfs to use
9370 debug_printf instead of fprintf.
9371 * remote-utils.c (*): Ditto.
9372 * thread-db.c (*): Ditto.
9373 * server.c #include <ctype.h>, "gdb_vecs.h".
9374 (debug_threads): Moved to debug.c.
9375 (*): Update all debugging printfs to use debug_printf instead of
9376 fprintf.
9377 (start_inferior): Replace call to fflush with call to debug_flush.
9378 (monitor_show_help): Mention set debug-format.
9379 (parse_debug_format_options): New function.
9380 (handle_monitor_command): Handle "monitor set debug-format".
9381 (gdbserver_usage): Mention --debug-format.
9382 (main): Parse --debug-format.
9383 * server.h (debug_threads): Declaration moved to debug.h.
9384 #include "debug.h".
9385 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
9386 trace_debug_1 that uses debug_printf.
9387 (tracepoint_look_up_symbols): Update all debugging printfs to use
9388 debug_printf instead of fprintf.
9389
9390 2014-01-20 Baruch Siach <baruch@tkos.co.il>
9391
9392 * linux-xtensa-low.c: Include asm/ptrace.h instead of
9393 sys/ptrace.h.
9394
9395 2014-01-17 Pedro Alves <palves@redhat.com>
9396
9397 PR build/16445
9398 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
9399 defined after including gdb_proc_service.h.
9400
9401 2014-01-16 Doug Evans <dje@google.com>
9402
9403 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
9404 (match_dll): Use it.
9405
9406 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9407
9408 * target.h (target_ops) <read_btrace>: Change parameters and
9409 return type to allow error reporting.
9410 * server.c (handle_qxfer_btrace): Support delta reads. Pass
9411 trace reading errors on.
9412 * linux-low.c (linux_low_read_btrace): Pass trace reading
9413 errors on.
9414 (linux_low_disable_btrace): New.
9415
9416 2014-01-15 Doug Evans <dje@google.com>
9417
9418 * inferiors.c (thread_id_to_gdb_id): Delete.
9419 * inferiors.h (thread_id_to_gdb_id): Delete.
9420
9421 2014-01-13 Eli Zaretskii <eliz@gnu.org>
9422
9423 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
9424 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
9425 versions.
9426
9427 2014-01-08 Pedro Alves <palves@redhat.com>
9428
9429 * server.c (handle_status): Don't discard previous queued stop
9430 replies or thread's pending status here.
9431 (main) <disconnection>: Do it here instead.
9432
9433 2014-01-08 Pedro Alves <palves@redhat.com>
9434
9435 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
9436 * server.c (visit_actioned_threads, handle_pending_status): New
9437 function.
9438 (handle_v_cont): Factor out parts to ...
9439 (resume): ... this new function. If in all-stop, and a thread
9440 being resumed has a pending status, report it without actually
9441 resuming.
9442 (myresume): Adjust to use the new 'resume' function.
9443 (clear_pending_status_callback, set_pending_status_callback)
9444 (find_status_pending_thread_callback): New functions.
9445 (handle_status): Handle the case of multiple threads having
9446 interesting statuses to report. Report threads' real last signal
9447 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
9448 with an interesting thread to report the status for, instead of
9449 always reporting the status of the first thread.
9450
9451 2014-01-01 Joel Brobecker <brobecker@adacore.com>
9452
9453 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
9454 * gdbreplay.c (gdbreplay_version): Likewise.
9455
9456 2013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
9457
9458 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
9459 iov.iov_len with the real length in use.
9460
9461 2013-12-13 Joel Brobecker <brobecker@adacore.com>
9462
9463 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
9464 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
9465 for all targets that use win32-low.c.
9466 * win32-low.c (win32_ensure_ntdll_loaded): New function.
9467 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
9468
9469 2013-12-13 Pedro Alves <palves@redhat.com>
9470
9471 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
9472 if equal to TARGET_WAITKIND_LOADED.
9473 * win32-low.c (cached_status): New static global.
9474 (win32_wait): Add declaration.
9475 (do_initial_child_stuff): Flush all initial pending debug events
9476 up to the initial breakpoint.
9477 (win32_wait): If CACHED_STATUS was set, return that instead
9478 of doing a real wait. Remove the code resuming the execution
9479 of the inferior after receiving a TARGET_WAITKIND_LOADED event
9480 during the initial phase. Also remove the code changing
9481 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
9482 TARGET_WAITKIND_STOPPED.
9483
9484 2013-12-11 Yao Qi <yao@codesourcery.com>
9485
9486 * notif.c (handle_notif_ack): Return 0 if no notification
9487 matches.
9488
9489 2013-11-20 Doug Evans <dje@google.com>
9490
9491 * linux-low.c (linux_set_resume_request): Fix comment.
9492
9493 2013-11-20 Doug Evans <dje@google.com>
9494
9495 * linux-low.c (resume_status_pending_p): Tweak comment.
9496
9497 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
9498
9499 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
9500 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
9501 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
9502 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
9503 (srv_amd64_regobj): Add amd64-mpx.o.
9504 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
9505 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
9506 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
9507 * i387-fp.c (num_pl_bnd_register) Added constant.
9508 (num_pl_bnd_cfg_registers) Added constant.
9509 (struct i387_xsave) Added reserved area and MPX fields.
9510 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
9511 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
9512 function.
9513 (tdesc_i386_mpx_linux): Add MPX amd64 target.
9514 (init_registers_amd64_mpx_linux): Declare new function.
9515 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
9516 (x86_64_regmap): Add MPX registers.
9517 (x86_linux_read_description): Add MPX case.
9518 (initialize_low_arch): Initialize MPX targets.
9519
9520 2013-11-18 Tom Tromey <tromey@redhat.com>
9521
9522 * configure: Rebuild.
9523 * configure.ac: Don't check for stdlib.h.
9524 * gdbreplay.c: Unconditionally include stdlib.h.
9525
9526 2013-11-18 Tom Tromey <tromey@redhat.com>
9527
9528 * config.in: Rebuild.
9529 * configure: Rebuild.
9530 * configure.ac: Don't use AC_HEADER_DIRENT.
9531
9532 2013-11-18 Tom Tromey <tromey@redhat.com>
9533
9534 * server.h: Don't check HAVE_STRING_H.
9535 * gdbreplay.c: Don't check HAVE_STRING_H.
9536 * configure: Rebuild.
9537
9538 2013-11-18 Tom Tromey <tromey@redhat.com>
9539
9540 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
9541 LIBGNU.
9542
9543 2013-11-08 Tom Tromey <tromey@redhat.com>
9544
9545 * configure, config.in: Rebuild.
9546 * configure.ac: Remove unused configury.
9547
9548 2013-11-08 Tom Tromey <tromey@redhat.com>
9549
9550 * acinclude.m4: Include common.m4, codeset.m4.
9551 * configure, config.in: Rebuild.
9552 * configure.ac: Use GDB_AC_COMMON.
9553
9554 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
9555
9556 * linux-s390-low.c (HWCAP_S390_TE): New define.
9557 (s390_arch_setup): Consider the TE field in the HWCAP for
9558 determining 'have_regset_tdb'.
9559
9560 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
9561
9562 PR gdb/16014
9563 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
9564 call to sizeof.
9565
9566 2013-10-02 Pedro Alves <palves@redhat.com>
9567
9568 * server.c (process_serial_event): Don't output "GDBserver
9569 exiting" if GDB is connected through stdio.
9570 * target.c (mywait): Likewise, be silent if GDB is connected
9571 through stdio.
9572
9573 2013-10-01 Joel Brobecker <brobecker@adacore.com>
9574
9575 * lynx-low.c (lynx_add_threads_after_attach): New function.
9576 (lynx_attach): Remove call to add_thread. Add call to
9577 lynx_add_threads_after_attach instead.
9578
9579 2013-09-28 Mike Frysinger <vapier@gentoo.org>
9580
9581 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
9582 * config.in, configure: Regenerated.
9583
9584 2013-09-18 Yao Qi <yao@codesourcery.com>
9585
9586 PR server/15959
9587 * server.c (start_inferior): Clear 'resume_info'.
9588
9589 2013-09-16 Jiong Wang <jiwang@tilera.com>
9590
9591 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
9592 for each register.
9593
9594 2013-09-16 Jiong Wang <jiwang@tilera.com>
9595
9596 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
9597 linux-tile-low.o to srv_tgtobj.
9598
9599 2013-09-16 Will Newton <will.newton@linaro.org>
9600
9601 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
9602 out regs.
9603
9604 2013-09-06 Pedro Alves <palves@redhat.com>
9605
9606 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
9607 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
9608 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
9609 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
9610 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
9611 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
9612
9613 2013-09-06 Pedro Alves <palves@redhat.com>
9614
9615 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
9616 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
9617
9618 2013-09-06 Pedro Alves <palves@redhat.com>
9619
9620 * linux-amd64-ipa.c: Include tracepoint.h.
9621 * linux-i386-ipa.c: Include tracepoint.h.
9622
9623 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
9624
9625 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
9626 (ps_get_thread_area): New function.
9627
9628 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
9629
9630 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
9631 (initialize_low_arch): Call init_registers_crisv32 rather than
9632 init_register_crisv32.
9633
9634 2013-09-05 Pedro Alves <palves@redhat.com>
9635
9636 * server.h (handle_vFile, hostio_last_error_from_errno): Move
9637 to ...
9638 * hostio.h: ... this new file.
9639 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
9640 win32-low.c: Include hostio.h.
9641
9642 2013-09-05 Pedro Alves <palves@redhat.com>
9643
9644 * server.h (gdb_client_data, handler_func, callback_handler_func)
9645 (delete_file_handler, add_file_handler, append_callback_event)
9646 (delete_callback_event, start_event_loop, initialize_event_loop):
9647 Move to event-loop.h and include it.
9648 * event-loop.h: New file.
9649
9650 2013-09-05 Pedro Alves <palves@redhat.com>
9651
9652 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
9653 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
9654 (loaded_dll, unloaded_dll): Move to ...
9655 * dll.h: ... this new file.
9656 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
9657
9658 2013-09-05 Pedro Alves <palves@redhat.com>
9659
9660 * server.h (current_process, get_thread_process, all_processes)
9661 (add_inferior_to_list, for_each_inferior, current_inferior)
9662 (remove_inferior, add_process, remove_process, find_process_pid)
9663 (have_started_inferiors_p, have_attached_inferiors_p)
9664 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
9665 (clear_inferiors, find_inferior, find_inferior_id)
9666 (inferior_target_data, set_inferior_target_data)
9667 (inferior_regcache_data, set_inferior_regcache_data): Move to
9668 inferiors.h, and include it.
9669 * inferiors.h: New file.
9670
9671 2013-09-05 Pedro Alves <palves@redhat.com>
9672
9673 * server.h (struct emit_ops, current_insn_ptr, emit_error):
9674 Move ...
9675 * ax.h: ... here.
9676
9677 2013-09-05 Pedro Alves <palves@redhat.com>
9678
9679 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
9680 tracepoint.h.
9681 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
9682 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
9683 (handle_tracepoint_general_set, handle_tracepoint_query)
9684 (tracepoint_finished_step, tracepoint_was_hit)
9685 (release_while_stepping_state_list, current_traceframe)
9686 (in_readonly_region, traceframe_read_mem)
9687 (fetch_traceframe_registers, traceframe_read_sdata)
9688 (traceframe_read_info, struct fast_tpoint_collect_status)
9689 (fast_tracepoint_collecting, force_unlock_trace_buffer)
9690 (handle_tracepoit_bkpts, initialize_low_tracepoint)
9691 (supply_fast_tracepoint_registers)
9692 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
9693 (ipa_tdesc, claim_trampoline_space)
9694 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
9695 (agent_mem_read, agent_get_trace_state_variable_value)
9696 (agent_set_trace_state_variable_value, agent_tsv_read)
9697 (agent_mem_read_string, get_raw_reg_func_addr)
9698 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
9699 * tracepoint.h: ... this new file.
9700
9701 2013-09-05 Pedro Alves <palves@redhat.com>
9702
9703 * server.h (perror_with_name, error, fatal, warning, paddress)
9704 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
9705 include it.
9706 * utils.h: New file.
9707
9708 2013-09-05 Pedro Alves <palves@redhat.com>
9709
9710 * server.h (remote_debug, noack_mode, transport_is_reliable)
9711 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
9712 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
9713 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
9714 (write_enn, initialize_async_io, enable_async_io)
9715 (disable_async_io, check_remote_input_interrupt_request)
9716 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
9717 (dead_thread_notify, prepare_resume_reply)
9718 (decode_address_to_semicolon, decode_address, decode_m_packet)
9719 (decode_M_packet, decode_X_packet, decode_xfer_write)
9720 (decode_search_memory_packet, unhexify, hexify)
9721 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
9722 (look_up_one_symbol, relocate_instruction)
9723 (monitor_output): Move to remote-utils.h, and include it.
9724 * remote-utils.h: New file.
9725
9726 2013-09-05 Pedro Alves <palves@redhat.com>
9727
9728 * server.h (_): Delete.
9729
9730 2013-09-02 Pedro Alves <palves@redhat.com>
9731
9732 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
9733 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
9734 allocated.
9735 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
9736
9737 2013-09-02 Pierre Muller <muller@sourceware.org>
9738
9739 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
9740 or WriteProcessMemory complete successfully and handle
9741 ERROR_PARTIAL_COPY error.
9742
9743 2013-09-02 Pedro Alves <palves@redhat.com>
9744
9745 * server.c (gdb_read_memory): Return -1 on traceframe memory read
9746 error instead of EIO.
9747
9748 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9749
9750 PR server/15604
9751 * linux-low.c: Include filestuff.h.
9752 (linux_create_inferior) <pid == 0>: Call close_most_fds.
9753 * lynx-low.c: Include filestuff.h.
9754 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
9755 * server.c: Include filestuff.h.
9756 (main): Call notice_open_fds.
9757 * spu-low.c: Include filestuff.h.
9758 (spu_create_inferior) <pid == 0>: Call close_most_fds.
9759
9760 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
9761
9762 * Makefile.in: Explain why ../target and ../nat are not
9763 listed as include file search paths.
9764 (linux-waitpid.o): New object file rule.
9765 * configure.srv (srv_native_linux_obj): New variable.
9766 Replace all occurrences of linux native object files with
9767 $srv_native_linux_obj.
9768 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
9769 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
9770 (linux_enable_event_reporting): Remove declaration.
9771 (my_waitpid): Moved to common/linux-waitpid.c.
9772 (linux_wait_for_event): Pass ptid when calling
9773 linux_enable_event_reporting.
9774 (linux_supports_tracefork_flag): Remove.
9775 (linux_enable_event_reporting): Likewise.
9776 (linux_tracefork_grandchild): Remove.
9777 (STACK_SIZE): Moved to common/linux-ptrace.c.
9778 (linux_tracefork_child): Remove.
9779 (linux_test_for_tracefork): Remove.
9780 (linux_look_up_symbols): Call linux_supports_traceclone.
9781 (initialize_low): Remove call to linux_test_for_tracefork.
9782 * linux-low.h (PTRACE_TYPE_ARG3): Move to
9783 common/linux-ptrace.h.
9784 (PTRACE_TYPE_ARG4): Likewise.
9785 Include linux-ptrace.h.
9786
9787 2013-08-21 Pedro Alves <palves@redhat.com>
9788
9789 * config.in: Renegerate.
9790
9791 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
9792
9793 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
9794 (SFILES): Remove $(srcdir)/common/target-common.c and
9795 add $(srcdir)/target/waitstatus.c.
9796 (OBS): Remove target-common.o and add waitstatus.o.
9797 (server_h): Remove $(srcdir)/../common/target-common.h and
9798 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
9799 and $(srcdir)/../target/waitstatus.h.
9800 (target-common.o): Remove.
9801 (waitstatus.o): New target object file.
9802 * target.h: Do not include target-common.h and
9803 include target/resume.h, target/wait.h and
9804 target/waitstatus.h.
9805
9806 2013-08-13 Luis Machado <lgustavo@codesourcery.com>
9807
9808 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
9809 to PTRACE_TYPE_ARG3.
9810 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
9811 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
9812 PTRACE_TYPE_ARG4.
9813 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
9814 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
9815
9816 2013-07-27 Jie Zhang <jie@codesourcery.com>
9817 Daniel Jacobowitz <dan@codesourcery.com>
9818 Yao Qi <yao@codesourcery.com>
9819
9820 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
9821 (mips-linux-watch.o): New rule.
9822 (mips_linux_watch_h): New variable.
9823 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
9824 srv_tgtobj.
9825 * linux-mips-low.c: Include mips-linux-watch.h.
9826 (struct arch_process_info, struct arch_lwp_info): New.
9827 (update_watch_registers_callback): New function.
9828 (mips_linux_new_process, mips_linux_new_thread) New functions.
9829 (mips_linux_prepare_to_resume, mips_insert_point): New
9830 functions.
9831 (mips_remove_point, mips_stopped_by_watchpoint): New
9832 functions.
9833 (rsp_bp_type_to_target_hw_bp_type): New function.
9834 (mips_stopped_data_address): New function.
9835 (the_low_target): Add watchpoint support functions.
9836
9837 2013-07-27 Yao Qi <yao@codesourcery.com>
9838
9839 * i386-low.c: Include break-common.h.
9840 (enum target_hw_bp_type): Remove.
9841
9842 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
9843
9844 * Makefile.in (SFILES): /common/target-common.c.
9845 (OBS): Add target-common.o.
9846 (server_h): Add $(srcdir)/../common/target-common.h.
9847 (target-common.o): New target.
9848 * server.c (queue_stop_reply_callback): Free
9849 status string after use.
9850 * target.c (target_waitstatus_to_string): Remove.
9851 * target.h: Include target-common.h.
9852 (resume_kind): Likewise.
9853 (target_waitkind): Likewise.
9854 (target_waitstatus): Likewise.
9855 (TARGET_WNOHANG): Likewise.
9856
9857 2013-07-04 Yao Qi <yao@codesourcery.com>
9858
9859 * Makefile.in (host_alias): Use @host_noncanonical@.
9860 (target_alias): Use @target_noncanonical@.
9861 * configure.ac: Use ACX_NONCANONICAL_TARGET and
9862 ACX_NONCANONICAL_HOST.
9863 * configure: Regenerated.
9864
9865 Revert:
9866 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
9867
9868 * configure.ac (version_host, version_target): Set and AC_SUBST them.
9869 * configure: Rebuild.
9870 * Makefile.in (version_host, version_target): Get from configure.
9871 (version.c): Use $(version_host) and $(version_target).
9872
9873 2013-07-03 Pedro Alves <palves@redhat.com>
9874
9875 * Makefile.in (config.status): Depend on development.sh.
9876 * acinclude.m4: Include libmcheck.m4.
9877 * configure: Regenerate.
9878
9879 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
9880
9881 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
9882 attribute inside the parentheses.
9883 (winapi_DebugSetProcessKillOnExit): Ditto.
9884 (winapi_DebugBreakProcess): Ditto.
9885 (winapi_GenerateConsoleCtrlEvent): Ditto.
9886
9887 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
9888
9889 * notif.h (notif_event): Add a dummy member to avoid compiler
9890 errors.
9891
9892 2013-07-01 Pedro Alves <palves@redhat.com>
9893
9894 * hostio.c (HOSTIO_PATH_MAX): Define.
9895 (require_filename, handle_open, handle_unlink, handle_readlink):
9896 Use it.
9897
9898 2013-07-01 Pedro Alves <palves@redhat.com>
9899
9900 * server.h: Include "pathmax.h".
9901 * linux-low.c: Don't include sys/param.h.
9902 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
9903 MAXPATHLEN.
9904 * win32-low.c: Don't include sys/param.h.
9905 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
9906
9907 2013-07-01 Pedro Alves <palves@redhat.com>
9908
9909 * event-loop.c: Don't check HAVE_UNISTD_H before including
9910 <unistd.h>.
9911 * gdbreplay.c: Likewise.
9912 * remote-utils.c: Likewise.
9913 * server.c: Likewise.
9914 * configure.ac: Don't check for unistd.h.
9915 * configure: Regenerate.
9916
9917 2013-06-28 Tom Tromey <tromey@redhat.com>
9918
9919 * Makefile.in (version.c): Use version.in, not
9920 common/version.in.
9921
9922 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
9923
9924 * configure.ac (version_host, version_target): Set and AC_SUBST them.
9925 * configure: Rebuild.
9926 * Makefile.in (version_host, version_target): Get from configure.
9927 (version.c): Use $(version_host) and $(version_target).
9928
9929 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
9930
9931 Fix trace-status to output user name without trailing colon.
9932 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
9933
9934 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
9935
9936 Fix trace-status to output proper start-time and stop-time.
9937 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
9938 output start time and stop time in hex as gdb expects.
9939
9940 2013-06-26 Pedro Alves <pedro@codesourcery.com>
9941
9942 * tracepoint.c (build_traceframe_info_xml): Output trace state
9943 variables present in the trace buffer.
9944
9945 2013-06-24 Tom Tromey <tromey@redhat.com>
9946
9947 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
9948 create-version.sh.
9949 (version.o): Remove.
9950 * gdbreplay.c: Include version.h.
9951 (version, host_name): Don't declare.
9952 * server.h: Include version.h.
9953 (version, host_name): Don't declare.
9954
9955 2013-06-12 Pedro Alves <palves@redhat.com>
9956
9957 * linux-x86-low.c (linux_is_elf64): Delete global.
9958 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
9959 with local linux_pid_exe_is_elf_64_file use.
9960
9961 2013-06-11 Pedro Alves <palves@redhat.com>
9962
9963 * linux-low.c (regset_disabled, disable_regset): New functions.
9964 (regsets_fetch_inferior_registers)
9965 (regsets_store_inferior_registers): Use them.
9966 (initialize_regsets_info); Don't allocate the disabled_regsets
9967 array here.
9968 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
9969 comment.
9970
9971 2013-06-11 Pedro Alves <palves@redhat.com>
9972
9973 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
9974 xmalloc.
9975
9976 2013-06-11 Pedro Alves <palves@redhat.com>
9977
9978 * linux-x86-low.c (initialize_low_arch): Call
9979 init_registers_x32_avx_linux.
9980
9981 2013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9982
9983 Fix compatibility with Android Bionic.
9984 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
9985 it is not empty.
9986
9987 2013-06-07 Pedro Alves <palves@redhat.com>
9988
9989 PR server/14823
9990 * Makefile.in (OBS): Add tdesc.o.
9991 (IPA_OBJS): Add tdesc-ipa.o.
9992 (tdesc-ipa.o): New rule.
9993 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
9994 interface.
9995 * linux-low.c (new_inferior): Delete.
9996 (disabled_regsets, num_regsets): Delete.
9997 (linux_add_process): Adjust to set the new per-process
9998 new_inferior flag.
9999 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
10000 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
10001 was a stop. When calling arch_setup, switch the current inferior
10002 to the thread that got an event.
10003 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
10004 (regsets_fetch_inferior_registers)
10005 (regsets_store_inferior_registers): New regsets_info parameter.
10006 Adjust to use it.
10007 (linux_register_in_regsets): New regs_info parameter. Adjust to
10008 use it.
10009 (register_addr, fetch_register, store_register): New usrregs_info
10010 parameter. Adjust to use it.
10011 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
10012 parameter regs_info. Adjust to use it.
10013 (linux_fetch_registers): Get the current inferior's regs_info, and
10014 adjust to use it.
10015 (linux_store_registers): Ditto.
10016 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
10017 (initialize_low): Don't initialize the target_regsets here. Call
10018 initialize_low_arch.
10019 * linux-low.h (target_regsets): Delete declaration.
10020 (struct regsets_info): New.
10021 (struct usrregs_info): New.
10022 (struct regs_info): New.
10023 (struct process_info_private) <new_inferior>: New field.
10024 (struct linux_target_ops): Delete the num_regs, regmap, and
10025 regset_bitmap fields. New field regs_info.
10026 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
10027 * i387-fp.c (num_xmm_registers): Delete.
10028 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
10029 calls to new interface.
10030 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
10031 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
10032 Infer the number of xmm registers from the regcache's target
10033 description.
10034 * i387-fp.h (num_xmm_registers): Delete.
10035 * inferiors.c (add_thread): Don't install the thread's regcache
10036 here.
10037 * proc-service.c (gregset_info): Fetch the current inferior's
10038 regs_info. Adjust to use it.
10039 * regcache.c: Include tdesc.h.
10040 (register_bytes, reg_defs, num_registers)
10041 (gdbserver_expedite_regs): Delete.
10042 (get_thread_regcache): If the thread doesn't have a regcache yet,
10043 create one, instead of aborting gdbserver.
10044 (regcache_invalidate_one): Rename to ...
10045 (regcache_invalidate_thread): ... this.
10046 (regcache_invalidate_one): New.
10047 (regcache_invalidate): Only invalidate registers of the current
10048 process.
10049 (init_register_cache): Add target_desc parameter, and use it.
10050 (new_register_cache): Ditto. Assert the target description has a
10051 non zero registers_size.
10052 (regcache_cpy): Add assertions. Adjust.
10053 (realloc_register_cache, set_register_cache): Delete.
10054 (registers_to_string, registers_from_string): Adjust.
10055 (find_register_by_name, find_regno, find_register_by_number)
10056 (register_cache_size): Add target_desc parameter, and use it.
10057 (free_register_cache_thread, free_register_cache_thread_one)
10058 (regcache_release, register_cache_size): New.
10059 (register_size): Add target_desc parameter, and use it.
10060 (register_data, supply_register, supply_register_zeroed)
10061 (supply_regblock, supply_register_by_name, collect_register)
10062 (collect_register_as_string, collect_register_by_name): Adjust.
10063 * regcache.h (struct target_desc): Forward declare.
10064 (struct regcache) <tdesc>: New field.
10065 (init_register_cache, new_register_cache): Add target_desc
10066 parameter.
10067 (regcache_invalidate_thread): Declare.
10068 (regcache_invalidate_one): Delete declaration.
10069 (regcache_release): Declare.
10070 (find_register_by_number, register_cache_size, register_size)
10071 (find_regno): Add target_desc parameter.
10072 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
10073 declarations.
10074 * remote-utils.c: Include tdesc.h.
10075 (outreg, prepare_resume_reply): Adjust.
10076 * server.c: Include tdesc.h.
10077 (gdbserver_xmltarget): Delete declaration.
10078 (get_features_xml, process_serial_event): Adjust.
10079 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
10080 declare.
10081 (struct process_info) <tdesc>: New field.
10082 (ipa_tdesc): Declare.
10083 * tdesc.c: New file.
10084 * tdesc.h: New file.
10085 * tracepoint.c: Include tdesc.h.
10086 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
10087 (get_context_regcache): Adjust to pass ipa_tdesc down.
10088 (do_action_at_tracepoint): Adjust to get the register cache size
10089 from the context regcache's description.
10090 (traceframe_walk_blocks): Adjust to get the register cache size
10091 from the current trace frame's description.
10092 (traceframe_get_pc): Adjust to get current trace frame's
10093 description and pass it down.
10094 (gdb_collect): Adjust to get the register cache size from the
10095 IPA's description.
10096 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
10097 (gdbserver_xmltarget): Delete.
10098 (initialize_low_tracepoint): Set the ipa's target description.
10099 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
10100 (initialize_low_tracepoint): Set the ipa's target description.
10101 * linux-x86-low.c: Include tdesc.h.
10102 [__x86_64__] (is_64bit_tdesc): New.
10103 (ps_get_thread_area, x86_get_thread_area): Use it.
10104 (i386_cannot_store_register): Rename to ...
10105 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
10106 (i386_cannot_fetch_register): Rename to ...
10107 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
10108 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
10109 to new interface.
10110 (target_regsets): Rename to ...
10111 (x86_regsets): ... this.
10112 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
10113 interface.
10114 (x86_siginfo_fixup): Use is_64bit_tdesc.
10115 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
10116 (tdesc_x32_avx_linux, tdesc_x32_linux)
10117 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
10118 Declare.
10119 (x86_linux_update_xmltarget): Delete.
10120 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
10121 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
10122 (AMD64_LINUX_USER64_CS): New.
10123 (x86_linux_read_description): New, based on
10124 x86_linux_update_xmltarget.
10125 (same_process_callback): New.
10126 (x86_arch_setup_process_callback): New.
10127 (x86_linux_update_xmltarget): New.
10128 (x86_regsets_info): New.
10129 (amd64_linux_regs_info): New.
10130 (i386_linux_usrregs_info): New.
10131 (i386_linux_regs_info): New.
10132 (x86_linux_regs_info): New.
10133 (x86_arch_setup): Reimplement.
10134 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
10135 (x86_emit_ops): Ditto.
10136 (the_low_target): Adjust. Install x86_linux_regs_info,
10137 x86_cannot_fetch_register, and x86_cannot_store_register.
10138 (initialize_low_arch): New.
10139 * linux-ia64-low.c (tdesc_ia64): Declare.
10140 (ia64_fetch_register): Adjust.
10141 (ia64_usrregs_info, regs_info): New globals.
10142 (ia64_regs_info): New function.
10143 (the_low_target): Adjust.
10144 (initialize_low_arch): New function.
10145 * linux-sparc-low.c (tdesc_sparc64): Declare.
10146 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
10147 Adjust.
10148 (sparc_arch_setup): New function.
10149 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
10150 (the_low_target): Adjust.
10151 (initialize_low_arch): New function.
10152 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
10153 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
10154 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
10155 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
10156 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
10157 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
10158 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
10159 (tdesc_powerpc_isa205_vsx64l): Declare.
10160 (ppc_cannot_store_register, ppc_collect_ptrace_register)
10161 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
10162 (ppc_set_pc, ppc_get_hwcap): Adjust.
10163 (ppc_usrregs_info): Forward declare.
10164 (!__powerpc64__) ppc_regmap_adjusted: New global.
10165 (ppc_arch_setup): Adjust to the current process'es target
10166 description.
10167 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
10168 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
10169 (ppc_store_evrregset): Adjust.
10170 (target_regsets): Rename to ...
10171 (ppc_regsets): ... this, and make static.
10172 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
10173 (ppc_regs_info): New function.
10174 (the_low_target): Adjust.
10175 (initialize_low_arch): New function.
10176 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
10177 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
10178 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
10179 (tdesc_s390x_linux64v2): Declare.
10180 (s390_collect_ptrace_register, s390_supply_ptrace_register)
10181 (s390_fill_gregset, s390_store_last_break): Adjust.
10182 (target_regsets): Rename to ...
10183 (s390_regsets): ... this, and make static.
10184 (s390_get_pc, s390_set_pc): Adjust.
10185 (s390_get_hwcap): New target_desc parameter, and use it.
10186 [__s390x__] (have_hwcap_s390_high_gprs): New global.
10187 (s390_arch_setup): Adjust to set the current process'es target
10188 description. Don't adjust the regmap.
10189 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
10190 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
10191 (regs_info_3264): New globals.
10192 (s390_regs_info): New function.
10193 (the_low_target): Adjust.
10194 (initialize_low_arch): New function.
10195 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
10196 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
10197 [__mips64] (init_registers_mips_linux)
10198 (init_registers_mips_dsp_linux): Delete defines.
10199 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
10200 (have_dsp): New global.
10201 (mips_read_description): New, based on mips_arch_setup.
10202 (mips_arch_setup): Reimplement.
10203 (get_usrregs_info): New function.
10204 (mips_cannot_fetch_register, mips_cannot_store_register)
10205 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
10206 (mips_fill_fpregset, mips_store_fpregset): Adjust.
10207 (target_regsets): Rename to ...
10208 (mips_regsets): ... this, and make static.
10209 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
10210 (dsp_regs_info, regs_info): New globals.
10211 (mips_regs_info): New function.
10212 (the_low_target): Adjust.
10213 (initialize_low_arch): New function.
10214 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
10215 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
10216 Declare.
10217 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
10218 (arm_read_description): New, with bits factored from
10219 arm_arch_setup.
10220 (arm_arch_setup): Reimplement.
10221 (target_regsets): Rename to ...
10222 (arm_regsets): ... this, and make static.
10223 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
10224 (arm_regs_info): New function.
10225 (the_low_target): Adjust.
10226 (initialize_low_arch): New function.
10227 * linux-m68k-low.c (tdesc_m68k): Declare.
10228 (target_regsets): Rename to ...
10229 (m68k_regsets): ... this, and make static.
10230 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
10231 (m68k_regs_info): New function.
10232 (m68k_arch_setup): New function.
10233 (the_low_target): Adjust.
10234 (initialize_low_arch): New function.
10235 * linux-sh-low.c (tdesc_sharch): Declare.
10236 (target_regsets): Rename to ...
10237 (sh_regsets): ... this, and make static.
10238 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
10239 (sh_regs_info, sh_arch_setup): New functions.
10240 (the_low_target): Adjust.
10241 (initialize_low_arch): New function.
10242 * linux-bfin-low.c (tdesc_bfin): Declare.
10243 (bfin_arch_setup): New function.
10244 (bfin_usrregs_info, regs_info): New globals.
10245 (bfin_regs_info): New function.
10246 (the_low_target): Adjust.
10247 (initialize_low_arch): New function.
10248 * linux-cris-low.c (tdesc_cris): Declare.
10249 (cris_arch_setup): New function.
10250 (cris_usrregs_info, regs_info): New globals.
10251 (cris_regs_info): New function.
10252 (the_low_target): Adjust.
10253 (initialize_low_arch): New function.
10254 * linux-cris-low.c (tdesc_crisv32): Declare.
10255 (cris_arch_setup): New function.
10256 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
10257 (cris_regs_info): New function.
10258 (the_low_target): Adjust.
10259 (initialize_low_arch): New function.
10260 * linux-m32r-low.c (tdesc_m32r): Declare.
10261 (m32r_arch_setup): New function.
10262 (m32r_usrregs_info, regs_info): New globals.
10263 (m32r_regs_info): Adjust.
10264 (initialize_low_arch): New function.
10265 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
10266 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
10267 (tic6x_usrregs_info): Forward declare.
10268 (tic6x_read_description): New function, based on ...
10269 (tic6x_arch_setup): ... this. Reimplement.
10270 (target_regsets): Rename to ...
10271 (tic6x_regsets): ... this, and make static.
10272 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
10273 (tic6x_regs_info): New function.
10274 (the_low_target): Adjust.
10275 (initialize_low_arch): New function.
10276 * linux-xtensa-low.c (tdesc_xtensa): Declare.
10277 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
10278 (target_regsets): Rename to ...
10279 (xtensa_regsets): ... this, and make static.
10280 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
10281 globals.
10282 (xtensa_arch_setup, xtensa_regs_info): New functions.
10283 (the_low_target): Adjust.
10284 (initialize_low_arch): New function.
10285 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
10286 (nios2_arch_setup): Set the current process'es tdesc.
10287 (target_regsets): Rename to ...
10288 (nios2_regsets): ... this.
10289 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
10290 (nios2_regs_info): New function.
10291 (the_low_target): Adjust.
10292 (initialize_low_arch): New function.
10293 * linux-aarch64-low.c (tdesc_aarch64): Declare.
10294 (aarch64_arch_setup): Set the current process'es tdesc.
10295 (target_regsets): Rename to ...
10296 (aarch64_regsets): ... this.
10297 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
10298 (aarch64_regs_info): New function.
10299 (the_low_target): Adjust.
10300 (initialize_low_arch): New function.
10301 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
10302 globals.
10303 (target_regsets): Rename to ...
10304 (tile_regsets): ... this.
10305 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
10306 (tile_regs_info): New function.
10307 (tile_arch_setup): Set the current process'es tdesc.
10308 (the_low_target): Adjust.
10309 (initialize_low_arch): New function.
10310 * spu-low.c (tdesc_spu): Declare.
10311 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
10312 * win32-arm-low.c (tdesc_arm): Declare.
10313 (arm_arch_setup): New function.
10314 (the_low_target): Install arm_arch_setup instead of
10315 init_registers_arm.
10316 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
10317 (init_windows_x86): Rename to ...
10318 (i386_arch_setup): ... this. Set `win32_tdesc'.
10319 (the_low_target): Adjust.
10320 * win32-low.c (win32_tdesc): New global.
10321 (child_add_thread): Don't create the thread cache here.
10322 (do_initial_child_stuff): Set the new process'es tdesc.
10323 * win32-low.h (struct target_desc): Forward declare.
10324 (win32_tdesc): Declare.
10325 * lynx-i386-low.c (tdesc_i386): Declare global.
10326 (lynx_i386_arch_setup): Set `lynx_tdesc'.
10327 * lynx-low.c (lynx_tdesc): New global.
10328 (lynx_add_process): Set the new process'es tdesc.
10329 * lynx-low.h (struct target_desc): Forward declare.
10330 (lynx_tdesc): Declare global.
10331 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
10332 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
10333 * nto-low.c (nto_tdesc): New global.
10334 (do_attach): Set the new process'es tdesc.
10335 * nto-low.h (struct target_desc): Forward declare.
10336 (nto_tdesc): Declare.
10337 * nto-x86-low.c (tdesc_i386): Declare.
10338 (nto_x86_arch_setup): Set `nto_tdesc'.
10339
10340 2013-06-04 Gary Benson <gbenson@redhat.com>
10341
10342 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
10343 to qSupported response when appropriate.
10344 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
10345 with nonzero-length annex.
10346 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
10347 arguments supplied in annex.
10348
10349 2013-05-31 Doug Evans <dje@google.com>
10350
10351 PR server/15594
10352 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
10353 64 bits in 64-cross-32 environment.
10354
10355 2013-05-28 Pedro Alves <palves@redhat.com>
10356
10357 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
10358 (aarch64-without-fpu.c): Delete rule.
10359 * configure.srv (aarch64*-*-linux*): Remove references to
10360 aarch64-without-fpu.o and aarch64-without-fpu.xml.
10361 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
10362 declaration.
10363
10364 2013-05-24 Pedro Alves <palves@redhat.com>
10365
10366 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
10367 instead of strchr/decode_address. Error if the range isn't split
10368 with a ','. Don't assume there's be a ':' in the action.
10369
10370 2013-05-23 Yao Qi <yao@codesourcery.com>
10371 Pedro Alves <palves@redhat.com>
10372
10373 * linux-low.c (lwp_in_step_range): New function.
10374 (linux_wait_1): If the thread was range stepping and stopped
10375 outside the stepping range, report the stop to GDB. Otherwise,
10376 continue stepping. Add range stepping debug output.
10377 (linux_set_resume_request): Copy the step range from the resume
10378 request to the lwp.
10379 (linux_supports_range_stepping): New.
10380 (linux_target_ops) <supports_range_stepping>: Set to
10381 linux_supports_range_stepping.
10382 * linux-low.h (struct linux_target_ops)
10383 <supports_range_stepping>: New field.
10384 (struct lwp_info) <step_range_start, step_range_end>: New fields.
10385 * linux-x86-low.c (x86_supports_range_stepping): New.
10386 (the_low_target) <supports_range_stepping>: Set to
10387 x86_supports_range_stepping.
10388 * server.c (handle_v_cont): Handle 'r' action.
10389 (handle_v_requests): Append ";r" if the target supports range
10390 stepping.
10391 * target.h (struct thread_resume) <step_range_start,
10392 step_range_end>: New fields.
10393 (struct target_ops) <supports_range_stepping>:
10394 New field.
10395 (target_supports_range_stepping): New macro.
10396
10397 2013-05-17 Joel Brobecker <brobecker@adacore.com>
10398
10399 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
10400 confusion in comment.
10401
10402 2013-05-17 Joel Brobecker <brobecker@adacore.com>
10403
10404 * lynx-low.c (struct process_info_private): New type.
10405 (lynx_add_process): New function.
10406 (lynx_create_inferior, lynx_attach): Replace calls to
10407 add_process by calls to lynx_add_process.
10408 (lynx_resume): If PTID is null, then try using
10409 current_process()->private->last_wait_event_ptid.
10410 Add comments.
10411 (lynx_clear_inferiors): Delete. The contents of that function
10412 has been inlined in lynx_mourn;
10413 (lynx_wait_1): Save the ptid in the process's private data.
10414 (lynx_mourn): Free the process' private data. Replace call
10415 to lynx_clear_inferiors by call to clear_inferiors.
10416
10417 2013-05-17 Yao Qi <yao@codesourcery.com>
10418
10419 * i386-low.c (i386_length_and_rw_bits): Move the comment to
10420 the right place.
10421
10422 2013-05-16 Luis Machado <lgustavo@codesourcery.com>
10423
10424 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
10425 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
10426 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
10427 PT_TEXT_END_ADDR guards. Update comments.
10428 (linux_target_op) <read_offsets>: Conditionally define to
10429 linux_read_offsets if the target is UCLIBC and if it defines
10430 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
10431
10432 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
10433 Andrew Jenner <andrew@codesourcery.com>
10434
10435 * Makefile.in (SFILES): Add linux-nios2-low.c.
10436 (clean): Add action to delete nios2-linux.c.
10437 (nios2-linux.c): New rule.
10438 * configure.srv: Add nios2*-*-linux*.
10439 * linux-nios2-low.c: New.
10440
10441 2013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
10442
10443 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
10444
10445 2013-04-25 Hui Zhu <hui@codesourcery.com>
10446
10447 PR gdb/15186
10448 * ax.c (ax_printf): Add fflush.
10449
10450 2013-04-22 Tom Tromey <tromey@redhat.com>
10451
10452 * Makefile.in (SFILES): Add filestuff.c.
10453 (OBS): Add filestuff.o.
10454 (filestuff.o): New target.
10455 * config.in, configure: Rebuild.
10456 * configure.ac: Check for fdwalk, pipe2.
10457
10458 2013-04-17 Pedro Alves <palves@redhat.com>
10459
10460 * configure.ac (USE_THREAD_DB): Delete variable.
10461 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
10462 Don't AC_SUBST USE_THREAD_DB.
10463 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
10464 * config.in, configure: Regenerate.
10465
10466 2013-04-16 Pedro Alves <palves@redhat.com>
10467
10468 * linux-low.h (struct lwp_info) <thread_known>: Move under
10469 the USE_THREAD_DB #ifdef.
10470
10471 2013-04-16 Pedro Alves <palves@redhat.com>
10472
10473 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
10474 (linux-low.o): Delete rule.
10475 * linux-low.h: Always include "gdb_thread_db.h" instead of
10476 conditionally including thread_db.h.
10477 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
10478 HAVE_THREAD_DB_H.
10479
10480 2013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
10481
10482 * Makefile.in (install-only): Fix make install regression.
10483
10484 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
10485
10486 Convert man pages to texinfo, new gdbinit.5 texinfo page.
10487 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
10488 installation.
10489 * gdbserver.1: Remove.
10490
10491 2013-03-22 Pedro Alves <palves@redhat.com>
10492
10493 * linux-low.c (handle_extended_wait): Don't call
10494 linux_enable_event_reporting.
10495
10496 2013-03-15 Tony Theodore <tonyt@logyst.com>
10497
10498 PR build/9098:
10499 * Makefile.in (SHELL): Use @SHELL@.
10500
10501 2013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
10502
10503 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
10504 compiler warning.
10505
10506 2013-03-13 Joel Brobecker <brobecker@adacore.com>
10507
10508 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
10509 Remove extraneous NULL element.
10510
10511 2013-03-13 Yao Qi <yao@codesourcery.com>
10512
10513 * tracepoint.c (traceframe_read_tsv): Look for the last matched
10514 'V' block in trace frame.
10515
10516 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10517
10518 * target.h (struct target_ops): Add btrace ops.
10519 (target_supports_btrace): New macro.
10520 (target_enable_btrace): New macro.
10521 (target_disable_btrace): New macro.
10522 (target_read_btrace): New macro.
10523 * gdbthread.h (struct thread_info): Add btrace field.
10524 * server.c: Include btrace-common.h.
10525 (handle_btrace_general_set): New function.
10526 (handle_btrace_enable): New function.
10527 (handle_btrace_disable): New function.
10528 (handle_general_set): Call handle_btrace_general_set.
10529 (handle_qxfer_btrace): New function.
10530 (struct qxfer qxfer_packets[]): Add btrace entry.
10531 * inferiors.c (remove_thread): Disable btrace.
10532 * linux-low: Include linux-btrace.h.
10533 (linux_low_enable_btrace): New function.
10534 (linux_low_read_btrace): New function.
10535 (linux_target_ops): Add btrace ops.
10536 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
10537 Add srv_linux_btrace=yes.
10538 (x86_64-*-linux*): Add linux-btrace.o.
10539 Add srv_linux_btrace=yes.
10540 * configure.ac: Define HAVE_LINUX_BTRACE.
10541 * config.in: Regenerated.
10542 * configure: Regenerated.
10543
10544 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10545
10546 * server.c (handle_qxfer): Preserve error message if -3 is
10547 returned.
10548 (qxfer): Document the -3 return value.
10549
10550 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10551
10552 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
10553 (linux_btrace_h): New variable.
10554 (linux-btrace.o): New rule.
10555
10556 2013-03-08 Stan Shebs <stan@codesourcery.com>
10557 Hafiz Abid Qadeer <abidh@codesourcery.com>
10558
10559 * tracepoint.c (trace_buffer_size): New global.
10560 (DEFAULT_TRACE_BUFFER_SIZE): New define.
10561 (init_trace_buffer): Change to one-argument function. Allocate
10562 trace buffer memory.
10563 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
10564 handle QTBuffer:size packet.
10565 (cmd_bigqtbuffer_size): New function.
10566 (initialize_tracepoint): Call init_trace_buffer with
10567 DEFAULT_TRACE_BUFFER_SIZE.
10568 * server.c (handle_query): Add QTBuffer:size in the
10569 supported packets.
10570
10571 2013-03-07 Yao Qi <yao@codesourcery.com>
10572
10573 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
10574 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
10575 of -1.
10576 (cmd_qtsp): Adjust condition. Do post increment.
10577 Set cur_action and cur_step_action back to 0.
10578
10579 2013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
10580
10581 PR server/15236
10582 * linux-low.c (linux_write_memory): Return early success if LEN is
10583 zero.
10584
10585 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
10586
10587 * configure.srv: Add x86_64-*-cygwin* as target.
10588
10589 2013-02-28 Tom Tromey <tromey@redhat.com>
10590
10591 * configure.ac: Invoke AC_SYS_LARGEFILE.
10592 * configure, config.in: Rebuild.
10593
10594 2013-02-28 Corinna Vinschen <vinschen@redhat.com>
10595
10596 * win32-low.c: Throughout, fix format strings and casts of
10597 printf-like functions to avoid type related warnings on all
10598 platforms.
10599 (get_child_debug_event): Print dwDebugEventCode as hex since
10600 that's how it's usually documented.
10601
10602 2013-02-28 Yao Qi <yao@codesourcery.com>
10603
10604 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
10605 pulongest.
10606
10607 2013-02-27 Jiong Wang <jiwang@tilera.com>
10608
10609 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
10610 (reg-tilegx32.c): New rule.
10611 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
10612 * linux-tile-low.c (tile_arch_setup): New function. Invoke
10613 different register info initializer according to elf class.
10614 (init_registers_tilgx32): New function. The tilegx32 register info
10615 initializer.
10616 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
10617 (tile_store_gregset): Likewise.
10618
10619 2013-02-27 Yao Qi <yao@codesourcery.com>
10620
10621 * server.c (process_point_options): Print debug message when
10622 debug_threads is true.
10623
10624 2013-02-26 Yao Qi <yao@codesourcery.com>
10625
10626 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
10627
10628 2013-02-19 Pedro Alves <palves@redhat.com>
10629 Kai Tietz <ktietz@redhat.com>
10630
10631 PR gdb/15161
10632
10633 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
10634 instead of strtoul to extract address from packet.
10635 (process_serial_event) <'z'>: Likewise.
10636
10637 2013-02-18 Yao Qi <yao@codesourcery.com>
10638
10639 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
10640
10641 2013-02-14 Pedro Alves <palves@redhat.com>
10642
10643 Plug memory leak.
10644
10645 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
10646 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
10647
10648 2013-02-14 Pedro Alves <palves@redhat.com>
10649
10650 * tracepoint.c (cmd_qtdpsrc): Use savestring.
10651
10652 2013-02-14 Pedro Alves <palves@redhat.com>
10653
10654 * tracepoint.c (save_string): Delete.
10655 (add_tracepoint_action): Use savestring instead of save_string.
10656
10657 2013-02-12 Pedro Alves <palves@redhat.com>
10658
10659 * linux-xtensa-low.c: Ditto.
10660 * xtensa-xtregs.c: Ditto.
10661
10662 2013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10663
10664 * thread-db.c (thread_db_get_tls_address): NULL pointer check
10665 thread_db.
10666
10667 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
10668
10669 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
10670 aarch64_num_wp_regs and aarch64_num_bp_regs to
10671 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
10672
10673 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
10674
10675 * linux-aarch64-low.c (ps_get_thread_area): Replace
10676 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
10677
10678 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10679 Marcus Shawcroft <marcus.shawcroft@arm.com>
10680 Nigel Stephens <nigel.stephens@arm.com>
10681 Yufeng Zhang <yufeng.zhang@arm.com>
10682
10683 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
10684 (aarch64.c, aarch64-without-fpu.c): New targets.
10685 * configure.srv (aarch64*-*-linux*): New.
10686 * linux-aarch64-low.c: New file.
10687
10688 2013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
10689
10690 * linux-low.c (handle_extended_wait, linux_create_inferior)
10691 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
10692 (dequeue_one_deferred_signal, linux_resume_one_thread)
10693 (fetch_register, linux_write_memory, linux_enable_event_reporting)
10694 (linux_tracefork_grandchild, linux_test_for_tracefork)
10695 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
10696 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
10697 where the argument is 0.
10698
10699 2013-01-25 Yao Qi <yao@codesourcery.com>
10700
10701 * event-loop.c: Include "queue.h".
10702 (gdb_event_p): New typedef.
10703 (struct gdb_event) <next_event>: Remove.
10704 (event_queue): Change to QUEUE(gdb_event_p).
10705 (async_queue_event): Remove.
10706 (gdb_event_xfree): New.
10707 (initialize_event_loop): New.
10708 (process_event): Use API from QUEUE.
10709 (wait_for_event): Likewise.
10710 * server.c (main): Call initialize_event_loop.
10711 * server.h (initialize_event_loop): Declare.
10712
10713 2013-01-18 Yao Qi <yao@codesourcery.com>
10714
10715 * ax.h (struct eval_agent_expr_context): New.
10716 (gdb_eval_agent_expr): Update declaration.
10717 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
10718 TFRAME. Add new argument CTX.
10719 * server.h (struct eval_agent_expr_context): Declare.
10720 (agent_mem_read, agent_tsv_read): Update declaration.
10721 (agent_mem_read_string): Likewise.
10722 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
10723 (add_traceframe_block): Add new argument TPOINT.
10724 Increase TPOINT->traceframe_usage.
10725 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
10726 eval_tracepoint_agent_expr.
10727 (condition_true_at_tracepoint): Likewise.
10728 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
10729 (agent_mem_read_string, agent_tsv_read): Likewise.
10730
10731 2013-01-16 Yao Qi <yao@codesourcery.com>
10732
10733 * linux-low.c (linux_resume_one_lwp): Don't check
10734 'lwp->bp_reinsert != 0'.
10735
10736 2013-01-07 Joel Brobecker <brobecker@adacore.com>
10737 Pedro Alves <palves@redhat.com>
10738
10739 * lynx-low.c (ptrace_request_to_str): Define a temporary
10740 macro and use it to simplify this function's implementation.
10741
10742 2013-01-07 Joel Brobecker <brobecker@adacore.com>
10743
10744 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
10745 sets errno.
10746
10747 2013-01-07 Joel Brobecker <brobecker@adacore.com>
10748
10749 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
10750
10751 2013-01-07 Joel Brobecker <brobecker@adacore.com>
10752
10753 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
10754
10755 2013-01-07 Joel Brobecker <brobecker@adacore.com>
10756
10757 * lynx-low.c (lynx_resume): Use the resume_info parameter
10758 to determine the ptid for the lynx_ptrace call, unless
10759 it is equal to minus_one_ptid, in which case we use the
10760 ptid of the current_inferior.
10761 (lynx_wait_1): After having received a thread create/exit
10762 event, resume the inferior's execution using the signaling
10763 thread's ptid, rather than the old ptid.
10764
10765 2013-01-07 Joel Brobecker <brobecker@adacore.com>
10766
10767 * lynx-low.c (lynx_resume): Delete variable ret.
10768
10769 2013-01-01 Joel Brobecker <brobecker@adacore.com>
10770
10771 * gdbreplay.c (gdbreplay_version): Update copyright year.
10772 * server.c (gdbserver_version): Likewise.
10773
10774 2012-12-17 Joel Brobecker <brobecker@adacore.com>
10775
10776 * lynx-low.c (lynx_wait_1): Add debug trace before adding
10777 new thread.
10778
10779 2012-12-17 Joel Brobecker <brobecker@adacore.com>
10780
10781 * lynx-low.c (ptrace_request_to_str): Add handling for
10782 PTRACE_GETTRACESIG.
10783
10784 2012-12-17 Joel Brobecker <brobecker@adacore.com>
10785
10786 * lynx-low.c (lynx_attach): Delete variable new_process.
10787
10788 2012-12-17 Joel Brobecker <brobecker@adacore.com>
10789
10790 * lynx-low.c (lynx_create_inferior): Delete variable
10791 new_process.
10792
10793 2012-12-17 Joel Brobecker <brobecker@adacore.com>
10794
10795 * lynx-low.c (ptrace_request_to_str): Do not handle
10796 PTRACE_GETTHREADLIST if this macro does not exist.
10797
10798 2012-12-15 Yao Qi <yao@codesourcery.com>
10799
10800 * Makefile.in (OBS): Add notif.o.
10801 * notif.c, notif.h: New.
10802 * server.c: Include "notif.h".
10803 (struct vstop_notif) <next>: Remove.
10804 <base>: New field.
10805 (queue_stop_reply): Update.
10806 (push_event, send_next_stop_reply): Remove.
10807 (discard_queued_stop_replies): Update.
10808 (notif_stop): New variable.
10809 (handle_v_stopped): Remove.
10810 (handle_v_requests): Don't call handle_v_stopped. Call
10811 handle_ack_notif instead.
10812 (queue_stop_reply_callback): Call notif_event_enque instead
10813 of queue_stop_reply.
10814 (handle_status): Don't call send_next_stop_reply, call
10815 notif_write_event instead.
10816 (kill_inferior_callback): Likewise.
10817 (detach_or_kill_inferior_callback): Likewise.
10818 (main): Call initialize_notif.
10819 (process_serial_event): Call QUEUE_is_empty.
10820 (handle_target_event): Call notif_push instead of push event.
10821 * server.h (push_event): Remove declaration.
10822
10823 2012-12-10 Tom Tromey <tromey@redhat.com>
10824
10825 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
10826 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
10827 macros.
10828 (.c.o): Rewrite.
10829 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
10830 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
10831 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
10832 (amd64-linux-ipa.o, ax.o): Rewrite.
10833 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
10834 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
10835 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
10836 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
10837 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
10838 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
10839 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
10840 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
10841 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
10842 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
10843 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
10844 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
10845 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
10846 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
10847 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
10848 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
10849 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
10850 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
10851 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
10852 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
10853 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
10854 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
10855 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
10856 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
10857 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
10858 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
10859 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
10860 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
10861 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
10862 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
10863 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
10864 (reg-tilegx.o): Remove.
10865 (all_object_files): New macro.
10866 Include .deps files.
10867 * aclocal.m4, configure: Rebuild.
10868 * acinclude.m4: Include depstand.m4, lead-dot.m4.
10869 * configure.ac: Invoke ZW_CREATE_DEPDIR,
10870 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
10871
10872 2012-12-05 Tom Tromey <tromey@redhat.com>
10873
10874 PR gdb/14917:
10875 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
10876
10877 2012-11-28 Markus Metzger <markus.t.metzger@intel.com>
10878
10879 * configure.ac: Check for linux/perf_event.h.
10880 * config.in: Regenerated.
10881 * configure: Regenerated.
10882
10883 2012-11-26 Maxime Villard <rustyBSD@gmx.fr>
10884
10885 * hostio.c (handle_readlink): Decrease buffer size
10886 parameter passed to readlink by one byte.
10887
10888 2012-11-26 Yao Qi <yao@codesourcery.com>
10889
10890 * configure.ac (build_warnings): Append '-Wempty-body'.
10891 * configure: Regenerated.
10892 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
10893 body.
10894
10895 2012-11-15 Pierre Muller <muller@sourceware.org>
10896
10897 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
10898 * config.in: Regenerate.
10899 * configure: Regenerate.
10900 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
10901 Use "gdb_wait.h" header instead of <sys/wait.h> header.
10902 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
10903 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
10904 header.
10905 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
10906 instead of <sys/wait.h> header.
10907 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
10908
10909 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
10910
10911 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
10912 (various make rules): Remove -DGDBSERVER
10913
10914 2012-11-09 Yao Qi <yao@codesourcery.com>
10915
10916 * spu-low.c (current_ptid): Move it to ..
10917 * gdbthread.h: ... here. New.
10918 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
10919 * server.c (myresume, process_serial_event): Likewise.
10920 * thread-db.c (thread_db_find_new_threads): Likewise.
10921 * tracepoint.c (run_inferior_command): Likewise.
10922
10923 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
10924
10925 * server.c (handle_search_memory_1): Include access length in
10926 warning message.
10927
10928 2012-09-05 Michael Brandt <michael.brandt@axis.com>
10929
10930 * linux-crisv32-low.c: Fix compile errors.
10931
10932 2012-09-04 Yao Qi <yao@codesourcery.com>
10933
10934 * tracepoint.c (cmd_qtsv): Adjust debug message.
10935 Don't check CUR_TPOINT.
10936
10937 2012-08-28 Yao Qi <yao@codesourcery.com>
10938
10939 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
10940 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
10941 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
10942 Remove declarations of xmalloc, xreallloc, xstrdup and
10943 freeargv.
10944 * Makefile.in (libiberty_h): New.
10945 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
10946 (linux-bfin-low.o): Append dependency 'libiberty.h'.
10947
10948 2012-08-23 Yao Qi <yao@codesourcery.com>
10949
10950 * server.h: Remove declaration of 'xsnprintf'.
10951
10952 2012-08-22 Keith Seitz <keiths@redhat.com>
10953
10954 * server.h: Include build-gnulib-gbserver/config.h.
10955 * gdbreplay.c: Likewise.
10956
10957 2012-08-08 Doug Evans <dje@google.com>
10958
10959 * Makefile.in (SFILES): Add gdb_vecs.c.
10960 (OBS): Add gdb_vecs.o.
10961 (gdb_vecs_h, host_defs_h): New variables.
10962 (thread-db.o): Add $(gdb_vecs_h) dependency.
10963 (gdb_vecs.o): New rule.
10964 * thread-db.c: #include "gdb_vecs.h".
10965 (thread_db_load_search): Use a vector to iterate over path elements.
10966 Handle text appearing after "$pdir".
10967
10968 * configure.ac: Add check for strstr.
10969 * config.in: Regenerate.
10970 * configure: Regenerate.
10971
10972 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10973
10974 * hostio.c (handle_pread): If pread fails, fall back to attempting
10975 lseek/read.
10976 (handle_pwrite): Likewise for pwrite.
10977
10978 2012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
10979
10980 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
10981 between unsupported TYPE and unimplementable ADDR/LEN combination.
10982 (arm_insert_point): Act on new return value.
10983
10984 2012-07-31 Pedro Alves <palves@redhat.com>
10985
10986 * server.c (process_point_options): Only skip tokens if we find
10987 one that is unrecognized. Don't treat 'X' specially while
10988 skipping unrecognized tokens.
10989
10990 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
10991
10992 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
10993 to 4-byte-align HW breakpoint addresses for Thumb.
10994
10995 2012-07-27 Yao Qi <yao@codesourcery.com>
10996
10997 PR remote/14161.
10998
10999 * server.h: Declare gdb_agent_about_to_close.
11000 * target.c (kill_inferior): Include "agent.h".
11001 New. Send command 'kill'.
11002 * target.h (kill_inferior): Removed macro.
11003 * tracepoint.c (gdb_agent_about_to_close): New.
11004 (gdb_agent_helper_thread): Handle command 'close'.
11005 Wait endlessly until the inferior stops.
11006 Install gdb_agent_remove_socket to atexit hook.
11007 (agent_socket_name): New static variable.
11008 (gdb_agent_socket_init): Replace local variable 'name' with
11009 'agent_socket_name'.
11010 (gdb_agent_remove_socket): New.
11011
11012 2012-07-27 Yao Qi <yao@codesourcery.com>
11013
11014 * server.c (process_point_options): Stop at 'X' when parsing.
11015
11016 2012-07-19 Michael Eager <eager@eagercon.com>
11017
11018 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
11019 to hw_execute.
11020 * linux-x86-low.c (x86_insert_point, x86_remove_point):
11021 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
11022 hardware breakpoint.
11023
11024 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
11025
11026 * gdbserver/linux-low.c (initialize_low): Call
11027 linux_ptrace_init_warnings.
11028
11029 2012-07-02 Doug Evans <dje@google.com>
11030
11031 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
11032 pointer to int.
11033
11034 2012-07-02 Stan Shebs <stan@codesourcery.com>
11035
11036 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
11037 (ax.o): Add it to build rule.
11038 (ax-ipa.o): Ditto.
11039 (OBS): Add format.o.
11040 (IPA_OBS): Add format.o.
11041 * server.c (handle_query): Claim support for breakpoint commands.
11042 (process_point_options): Add command case.
11043 (process_serial_event): Leave running if there are printfs in
11044 effect.
11045 * mem-break.h (any_persistent_commands): Declare.
11046 (add_breakpoint_commands): Declare.
11047 (gdb_no_commands_at_breakpoint): Declare.
11048 (run_breakpoint_commands): Declare.
11049 * mem-break.c (struct point_command_list): New struct.
11050 (struct breakpoint): New field command_list.
11051 (any_persistent_commands): New function.
11052 (add_commands_to_breakpoint): New function.
11053 (add_breakpoint_commands): New function.
11054 (gdb_no_commands_at_breakpoint): New function.
11055 (run_breakpoint_commands): New function.
11056 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
11057 locally.
11058 * ax.c: Include format.h.
11059 (ax_printf): New function.
11060 (gdb_eval_agent_expr): Add printf opcode.
11061
11062 2012-06-13 Yao Qi <yao@codesourcery.com>
11063
11064 * server.c (start_inferior): Remove duplicated writes to fields
11065 'last_resume_kind' and 'last_status' of 'current_inferior'.
11066
11067 2012-06-12 Yao Qi <yao@codesourcery.com>
11068 Pedro Alves <palves@redhat.com>
11069
11070 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
11071 comment.
11072 * server.c (handle_v_cont): Extend comment.
11073
11074 2012-06-11 Yao Qi <yao@codesourcery.com>
11075
11076 * linux-low.c (linux_attach): Add 'static'.
11077
11078 2012-06-06 Yao Qi <yao@codesourcery.com>
11079
11080 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
11081
11082 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11083
11084 Fix gcc -flto compilation warning.
11085 * server.c (main): Make variable multi_mode and attach volatile.
11086
11087 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
11088
11089 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
11090 if the platform doesn't know about it.
11091
11092 2012-05-30 Jeff Kenton <jkenton@tilera.com>
11093
11094 * Makefile.in (SFILES): Add linux-tile-low.c.
11095 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
11096 * configure.srv: Handle tilegx-*-linux*.
11097 * linux-tile-low.c: New file.
11098
11099 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
11100
11101 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
11102
11103 2012-05-24 Pedro Alves <palves@redhat.com>
11104
11105 PR gdb/7205
11106
11107 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
11108
11109 2012-05-24 Pedro Alves <palves@redhat.com>
11110
11111 PR gdb/7205
11112
11113 Replace target_signal with gdb_signal throughout.
11114
11115 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
11116
11117 * linux-low.c (linux_store_registers): Avoid the copying sequence
11118 when no data has been retrieved by ptrace.
11119
11120 2012-05-22 Will Deacon <will.deacon@arm.com>
11121
11122 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
11123 Include asm/ptrace.h.
11124 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
11125 already defined.
11126
11127 2012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
11128
11129 * linux-low.c (linux_store_registers): Don't re-retrieve data
11130 with ptrace that has already been obtained from /proc. Always
11131 copy any data retrieved with ptrace to the buffer supplied.
11132
11133 2012-05-11 Yao Qi <yao@codesourcery.com>
11134 Pedro Alves <palves@redhat.com>
11135
11136 * linux-low.c (enum stopping_threads_kind): New.
11137 (stopping_threads): Change type to `enum stopping_threads_kind'.
11138 (handle_extended_wait): If stopping and suspending threads, leave
11139 the new_lwp suspended too.
11140 (linux_wait_for_event): Adjust.
11141 (stop_all_lwps): Set `stopping_threads' to
11142 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
11143 whether we're suspending threads or just stopping them. Assert no
11144 recursion happens.
11145
11146 2012-04-29 Yao Qi <yao@codesourcery.com>
11147
11148 * server.h: Move some code to ...
11149 * gdbthread.h: ... here. New.
11150 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
11151 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
11152 (nto-low.o, win32-low.o): Likewise.
11153 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
11154 * regcache.c, remote-utils.c, server.c: Likewise.
11155 * target.c, tracepoint.c, win32-low.c: Likewise.
11156
11157 2012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
11158
11159 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
11160 (PTRACE_ARG4_TYPE): Likewise.
11161 (PTRACE_XFER_TYPE): Likewise.
11162 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
11163 ptrace to PTRACE_ARG3_TYPE.
11164 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
11165 (PTRACE_ARG4_TYPE): Likewise.
11166 (PTRACE_XFER_TYPE): Likewise.
11167 (linux_detach_one_lwp): Cast fourth argument of
11168 ptrace to long then PTRACE_ARG4_TYPE.
11169 (regsets_fetch_inferior_registers): Cast third argument of
11170 ptrace to long then PTRACE_ARG3_TYPE.
11171 (regsets_store_inferior_registers): Likewise.
11172
11173 2012-04-20 Pedro Alves <palves@redhat.com>
11174
11175 * configure: Regenerate.
11176
11177 2012-04-19 Pedro Alves <palves@redhat.com>
11178
11179 * Makefile.in (GNULIB_BUILDDIR): New.
11180 (LIBGNU, INCGNU, GNULIB_H): Adjust.
11181 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
11182 (all, install-only, uninstall, clean-info, all-lib, clean): No
11183 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
11184 (maintainer-clean realclean distclean): Use subdir_do.
11185 (subdir_do): New.
11186 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
11187 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
11188 * acinclude.m4: Include acx_configure_dir.m4.
11189 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
11190 calls. Call AC_PROG_RANLIB. Configure gnulib using
11191 ACX_CONFIGURE_DIR.
11192 (GNULIB): New.
11193 (GNULIB_STDINT_H): Adjust.
11194 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
11195 * gdbreplay.c: Include build-gnulib/config.h.
11196 * server.h: Likewise.
11197 * aclocal.m4: Regenerate.
11198 * config.in: Regenerate.
11199 * configure: Regenerate.
11200
11201 2012-04-19 Pedro Alves <palves@redhat.com>
11202
11203 * Makefile.in (LIBGNU, INCGNU): Adjust.
11204 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
11205 (all, install-only, uninstall, clean-info, all-lib, clean)
11206 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
11207 * configure.ac: Adjust AC_OUTPUT output.
11208 * aclocal.m4: Regenerate.
11209 * configure: Regenerate.
11210
11211 2012-04-19 Pedro Alves <palves@redhat.com>
11212
11213 * Makefile.in (generated_files): New.
11214 (server_h): Remove the explicit dependency on config.h, and depend
11215 on $generated_files.
11216
11217 2012-04-19 Pedro Alves <palves@redhat.com>
11218
11219 * Makefile.in (INCGNU): Add -Ignulib.
11220
11221 2012-04-19 Pedro Alves <palves@redhat.com>
11222
11223 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
11224 (INCGNU): ... this, and spell out -I here.
11225 (GNULIB_LIB): Rename to ...
11226 (LIBGNU): ... this.
11227 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
11228
11229 2012-04-19 Pedro Alves <palves@redhat.com>
11230
11231 * config.in: Regenerate.
11232
11233 2012-04-19 Pedro Alves <palves@redhat.com>
11234
11235 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
11236 * server.h (memmem): Remove declaration.
11237 * config.in: Regenerate.
11238 * configure: Regenerate.
11239
11240 2012-04-19 Yao Qi <yao@codesourcery.com>
11241
11242 * Makefile.in (SFILES): Add common/vec.c.
11243 (OBS): Add vec.o.
11244 (vec.o): New rule.
11245
11246 2012-04-19 Yao Qi <yao@codesourcery.com>
11247
11248 * remote-utils.c (prepare_resume_reply): Replace with macro
11249 target_core_of_thread.
11250 * server.c (handle_qxfer_threads_proper): Likewise.
11251 * target.h (traget_core_of_thread): New macro.
11252
11253 2012-04-18 Pedro Alves <palves@redhat.com>
11254
11255 * aclocal.m4: Regenerate.
11256 * configure: Regenerate.
11257
11258 2012-04-16 Yao Qi <yao@codesourcery.com>
11259
11260 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
11261 duplicated on address.
11262
11263 2012-04-16 Yao Qi <yao@codesourcery.com>
11264
11265 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
11266 (struct tracepoint_action_ops) <send>: New field.
11267 (m_tracepoint_action_send, r_tracepoint_action_send): New.
11268 (agent_expr_send, x_tracepoint_action_send): New.
11269 (l_tracepoint_action_send): New.
11270 (cmd_qtdp): Download and install tracepoint
11271 according to `use_agent'.
11272 (run_inferior_command): Add one more parameter `len'.
11273 Update callers.
11274 (tracepoint_send_agent): New.
11275 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
11276
11277 2012-04-16 Yao Qi <yao@codesourcery.com>
11278
11279 * tracepoint.c (download_tracepoints): Moved to ...
11280 (cmd_qtstart): ... here.
11281
11282 2012-04-14 Yao Qi <yao@codesourcery.com>
11283
11284 * tracepoint.c: Include inttypes.h.
11285 (struct collect_memory_action): Use sized types.
11286 (struct tracepoint): Likewise.
11287 (cmd_qtdp, stop_tracing): Update print specifiers.
11288 (cmd_qtp, response_tracepoint): Likewise.
11289 (collect_data_at_tracepoint): Likewise.
11290 (collect_data_at_step): Likewise.
11291
11292 2012-04-14 Yao Qi <yao@codesourcery.com>
11293
11294 Import gnulib module inttypes.
11295 * aclocal.m4, config.in, configure: Regenerated.
11296
11297 2012-04-14 Yao Qi <yao@codesourcery.com>
11298
11299 * Makefile.in (maintainer-clean, realclean, distclean): Remove
11300 Makefile and config.status at last.
11301
11302 2012-04-13 Yao Qi <yao@codesourcery.com>
11303
11304 * tracepoint.c: Include stdint.h unconditionally.
11305
11306 2012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
11307
11308 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
11309 on BFD_HAVE_SYS_PROCFS_TYPE.
11310 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
11311 * configure: Regenerate.
11312 * config.in: Likewise.
11313
11314 2012-04-13 H.J. Lu <hongjiu.lu@intel.com>
11315
11316 * Makefile.in (clean): Also remove x32.c x32-linux.c
11317 x32-avx.c x32-avx-linux.c.
11318 (x32.o): New target.
11319 (x32.c): Likewise.
11320 (x32-linux.o): Likewise.
11321 (x32-linux.c): Likewise.
11322 (x32-avx.o): Likewise.
11323 (x32-avx.c): Likewise.
11324 (x32-avx-linux.o): Likewise.
11325 (x32-avx-linux.c): Likewise.
11326
11327 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
11328 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
11329 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
11330 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
11331 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
11332 i386/x32-avx-linux.xml.
11333
11334 * linux-x86-low.c (init_registers_x32_linux): New prototype.
11335 (init_registers_x32_avx_linux): Likwise.
11336 (x86_linux_update_xmltarget): Call init_registers_x32_linux
11337 or init_registers_x32_avx_linux if linux_is_elf64 is false.
11338
11339 2012-04-13 Pedro Alves <palves@redhat.com>
11340
11341 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
11342 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
11343 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
11344 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
11345 the sub-make.
11346
11347 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
11348
11349 * linux-x86-low.c (compat_x32_clock_t): New.
11350 (compat_x32_siginfo_t): Likewise.
11351 (compat_x32_siginfo_from_siginfo): Likewise.
11352 (siginfo_from_compat_x32_siginfo): Likewise.
11353 (linux_is_elf64): Likewise.
11354 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
11355 and siginfo_from_compat_x32_siginfo for x32.
11356 (x86_arch_setup): Set linux_is_elf64.
11357
11358 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
11359
11360 PR gdb/13969
11361 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
11362 e_machine field.
11363 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
11364 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
11365 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
11366 compatible with process.
11367
11368 2012-04-12 Yao Qi <yao@codesourcery.com>
11369
11370 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
11371 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
11372 (install-only, install-info, clean): Handle sub dir gnulib.
11373 (all-lib, am--refresh): New targets.
11374 (memmem.o): Remove target.
11375 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
11376 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
11377 (AC_REPLACE_FUNCS): Remove memmem.
11378 Invoke gl_INIT and AM_INIT_AUTOMAKE.
11379 (AC_OUTPUT): Generate Makefile in gnulib/.
11380 * aclocal.m4, config.in, configure: Regenerated.
11381
11382 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
11383
11384 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
11385
11386 2012-04-05 Pedro Alves <palves@redhat.com>
11387
11388 -Werror=strict-aliasing
11389
11390 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
11391 pointer.
11392
11393 2012-04-04 Pedro Alves <palves@redhat.com>
11394
11395 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
11396 (sparc_store_gregset_from_stack, sparc_store_gregset)
11397 (sparc_breakpoint_at): Fix formatting.
11398
11399 2012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
11400
11401 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
11402 are available.
11403 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
11404 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
11405 * config.in: Regenerate.
11406 * configure: Likewise.
11407
11408 2012-03-29 Pedro Alves <palves@redhat.com>
11409
11410 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
11411 Correct ptrace arguments.
11412
11413 2012-03-28 Pedro Alves <palves@redhat.com>
11414
11415 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
11416 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
11417 (IA64_FR1_REGNUM): New defines.
11418 (ia64_fetch_register): New.
11419 (the_low_target): Install it.
11420 * linux-low.h (struct linux_target_ops) <fetch_register>: New
11421 field.
11422 * linux-low.c (linux_fetch_registers): Try the
11423 the_low_target.fetch_register hook first.
11424
11425 * linux-arm-low.c (the_low_target): Adjust.
11426 * linux-bfin-low.c (the_low_target): Adjust.
11427 * linux-cris-low.c (the_low_target): Adjust.
11428 * linux-crisv32-low.c (the_low_target): Adjust.
11429 * linux-m32r-low.c (the_low_target): Adjust.
11430 * linux-m68k-low.c (the_low_target): Adjust.
11431 * linux-mips-low.c (the_low_target): Adjust.
11432 * linux-ppc-low.c (the_low_target): Adjust.
11433 * linux-s390-low.c (the_low_target): Adjust.
11434 * linux-sh-low.c (the_low_target): Adjust.
11435 * linux-sparc-low.c (the_low_target): Adjust.
11436 * linux-tic6x-low.c (the_low_target): Adjust.
11437 * linux-x86-low.c (the_low_target): Adjust.
11438 * linux-xtensa-low.c (the_low_target): Adjust.
11439
11440 2012-03-26 Pedro Alves <palves@redhat.com>
11441
11442 * server.c (handle_qxfer_libraries): Don't bail early if
11443 the_target->qxfer_libraries_svr4 is not NULL.
11444
11445 2012-03-26 Pedro Alves <palves@redhat.com>
11446
11447 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
11448
11449 2012-03-23 Pedro Alves <palves@redhat.com>
11450
11451 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
11452 "library-list-svr4" element's start tag when the the DSO list is
11453 empty.
11454
11455 2012-03-23 Pedro Alves <palves@redhat.com>
11456
11457 * linux-low.c (read_one_ptr): Read the inferior's pointer through
11458 a variable whose type size is the same as the inferior's pointer
11459 size.
11460
11461 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
11462
11463 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
11464 struct siginfo.
11465 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
11466 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
11467 * linux-low.h: Include <signal.h>.
11468 (struct siginfo): Remove forward declaration.
11469 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
11470 struct siginfo.
11471
11472 2012-03-21 Mike Frysinger <vapier@gentoo.org>
11473
11474 * .gitignore: Ignore more files.
11475
11476 2012-03-19 Pedro Alves <palves@redhat.com>
11477 Jan Kratochvil <jan.kratochvil@redhat.com>
11478
11479 * server.c (cont_thread, general_thread): Add describing comments.
11480 (start_inferior): Clear `cont_thread'.
11481 (handle_v_cont): Don't set `cont_thread' if resuming all threads
11482 of a process.
11483
11484 2012-03-15 Yao Qi <yao@codesourcery.com>
11485
11486 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
11487 handling to ...
11488 (cmd_qtdp): ... here.
11489
11490 2012-03-15 Yao Qi <yao@codesourcery.com>
11491
11492 * tracepoint.c (struct tracepoint_action_ops): New.
11493 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
11494 (m_tracepoint_action_download): New.
11495 (r_tracepoint_action_download): New.
11496 (x_tracepoint_action_download): New.
11497 (l_tracepoint_action_download): New.
11498 (add_tracepoint_action): Install `action->ops' according type.
11499 (download_tracepoint_1): Move code `download' function pointer
11500 of various tracepoint_action_ops.
11501
11502 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11503
11504 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
11505 linux_ptrace_attach_warnings.
11506
11507 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11508
11509 * Makefile.in (linux-ptrace.o): New.
11510 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
11511 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
11512 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
11513 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
11514 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
11515 of these targets.
11516 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
11517
11518 2012-03-08 Yao Qi <yao@codesourcery.com>
11519 Pedro Alves <palves@redhat.com>
11520
11521 Fix PR server/13392.
11522 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
11523 offset of JMP insn.
11524 * tracepoint.c (remove_tracepoint): New.
11525 (cmd_qtdp): Call remove_tracepoint when failed to install.
11526
11527 2012-03-07 Pedro Alves <palves@redhat.com>
11528
11529 * linux-low.c (get_detach_signal): New.
11530 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
11531 Pass on pending signals to PTRACE_DETACH. Check the result of the
11532 ptrace call.
11533 * server.c (program_signals, program_signals_p): New.
11534 (handle_general_set): Handle QProgramSignals.
11535 * server.h (program_signals, program_signals_p): Declare.
11536
11537 2012-03-05 Pedro Alves <palves@redhat.com>
11538 Jan Kratochvil <jan.kratochvil@redhat.com>
11539
11540 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
11541 New comment why.
11542
11543 2012-03-03 Yao Qi <yao@codesourcery.com>
11544
11545 * tracepoint.c (tracepoint_look_up_symbols): Update call to
11546 agent_look_up_symbols.
11547
11548 2012-03-03 Yao Qi <yao@codesourcery.com>
11549
11550 * Makefile.in (linux-low.o): Keep dependence on agent.h.
11551 (linux-x86-low.o): Likewise.
11552 * server.h: Remove in_process_agent_loaded.
11553 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
11554 common/agent.c.
11555 Update callers.
11556
11557 2012-03-03 Yao Qi <yao@codesourcery.com>
11558
11559 * tracepoint.c (gdb_agent_capability): New global.
11560 (in_process_agent_loaded_ust): Renamed to
11561 `in_process_agent_supports_ust'.
11562 Update callers.
11563 (in_process_agent_supports_ust): Call agent_capability_check.
11564 (clear_installed_tracepoints): Assert that agent supports
11565 agent.
11566
11567 2012-03-03 Yao Qi <yao@codesourcery.com>
11568
11569 * linux-low.c (linux_supports_agent): New.
11570 (linux_target_ops): Initialize field `supports_agent' with
11571 linux_supports_agent.
11572 * target.h (struct target_ops) <supports_agent>: New.
11573 (target_supports_agent): New macro.
11574 * server.c (handle_general_set): Handle packet 'QAgent'.
11575 (handle_query): Send `QAgent+'.
11576 * Makefile.in (server.o): Depends on agent.h.
11577
11578 2012-03-03 Yao Qi <yao@codesourcery.com>
11579
11580 * Makefile.in (OBS): Add agent.o.
11581 Add new rule for agent.o.
11582 Track dependence of tracepoint.c on agent.h.
11583 * tracepoint.c (run_inferior_command_1):
11584 (run_inferior_command): Call agent_run_command.
11585 (gdb_ust_connect_sync_socket): Deleted. Move it to
11586 common/agent.c.
11587 (resume_thread, stop_thread): Likewise.
11588 (gdb_ust_socket_init): Renamed to ...
11589 (gdb_agent_socket_init): ... New.
11590 (gdb_ust_thread): Renamed to ...
11591 (gdb_agent_helper_thread): ... New.
11592 (gdb_ust_init): Move some code to ...
11593 (gdb_agent_init): ... here. New.
11594 [HAVE_UST]: Call gdb_ust_init.
11595 (initialize_tracepoint_ftlib): Call gdb_agent_init.
11596 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
11597 * config.in, configure: Regenerated.
11598
11599 2012-03-02 Pedro Alves <palves@redhat.com>
11600
11601 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
11602 * linux-low.c (struct simple_pid_list): New.
11603 (stopped_pids): New a struct simple_pid_list pointer.
11604 (add_to_pid_list, pull_pid_from_list): New.
11605 (handle_extended_wait): Don't assume the first signal new children
11606 report is SIGSTOP. Adjust call to pull_pid_from_list.
11607 (linux_wait_for_lwp): Adjust.
11608
11609 2012-03-02 Yao Qi <yao@codesourcery.com>
11610
11611 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
11612 debug log.
11613
11614 2012-03-02 Yao Qi <yao@codesourcery.com>
11615
11616 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
11617 `stop_pc' and `tpoint'. Update caller.
11618
11619 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
11620
11621 * linux-low.h (linux_target_ops): Add regset_bitmap member.
11622 * linux-low.c (use_linux_regsets): New macro.
11623 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
11624 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
11625 (linux_register_in_regsets): New function.
11626 (usr_fetch_inferior_registers): Skip registers covered by
11627 regsets.
11628 (usr_store_inferior_registers): Likewise.
11629 (usr_fetch_inferior_registers): New macro.
11630 (usr_store_inferior_registers): Likewise.
11631 (linux_fetch_registers): Handle mixed regset/non-regset targets.
11632 (linux_store_registers): Likewise.
11633 * linux-mips-low.c (init_registers_mips_dsp_linux): New
11634 prototype.
11635 (init_registers_mips64_dsp_linux): Likewise.
11636 (init_registers_mips_linux): New macro.
11637 (init_registers_mips_dsp_linux): Likewise.
11638 (mips_dsp_num_regs): Likewise.
11639 (DSP_BASE, DSP_CONTROL): New fallback macros.
11640 (mips_base_regs): New macro.
11641 (mips_regmap): Use it. Fix the size.
11642 (mips_dsp_regmap): New variable.
11643 (mips_dsp_regset_bitmap): Likewise.
11644 (mips_arch_setup): New function.
11645 (mips_cannot_fetch_register): Use the_low_target.regmap rather
11646 than mips_regmap.
11647 (mips_cannot_store_register): Likewise.
11648 (the_low_target): Update .arch_setup, .num_regs and .regmap
11649 initializers. Add .regset_bitmap initializer.
11650 * linux-arm-low.c (the_low_target): Add .regset_bitmap
11651 initializer.
11652 * linux-bfin-low.c (the_low_target): Likewise.
11653 * linux-cris-low.c (the_low_target): Likewise.
11654 * linux-crisv32-low.c (the_low_target): Likewise.
11655 * linux-ia64-low.c (the_low_target): Likewise.
11656 * linux-m32r-low.c (the_low_target): Likewise.
11657 * linux-m68k-low.c (the_low_target): Likewise.
11658 * linux-ppc-low.c (the_low_target): Likewise.
11659 * linux-s390-low.c (the_low_target): Likewise.
11660 * linux-sh-low.c (the_low_target): Likewise.
11661 * linux-sparc-low.c (the_low_target): Likewise.
11662 * linux-tic6x-low.c (the_low_target): Likewise.
11663 * linux-x86-low.c (the_low_target): Likewise.
11664 * linux-xtensa-low.c (the_low_target): Likewise.
11665 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
11666 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
11667 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
11668 srv_xmlfiles.
11669 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
11670 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
11671
11672 2012-02-29 Yao Qi <yao@codesourcery.com>
11673 Pedro Alves <palves@redhat.com>
11674
11675 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
11676 `step_over_finished' is true.
11677
11678 2012-02-27 Pedro Alves <palves@redhat.com>
11679
11680 * linux-low.c (pid_is_stopped): Delete, moved to common/.
11681 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
11682
11683 2012-02-27 Pedro Alves <palves@redhat.com>
11684
11685 PR server/9684
11686 * linux-low.c (pid_is_stopped): New.
11687 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
11688
11689 2012-02-25 Luis Machado <lgustavo@codesourcery.com>
11690
11691 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
11692 of conditions.
11693
11694 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
11695
11696 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
11697
11698 2012-02-24 Luis Machado <lgustavo@codesourcery>
11699
11700 * server.c (handle_query): Advertise support for target-side
11701 breakpoint condition evaluation.
11702 (process_point_options): New function.
11703 (process_serial_event): When inserting a breakpoint, check for
11704 a target-side condition that should be evaluated.
11705
11706 * mem-break.c: Include regcache.h and ax.h.
11707 (point_cond_list_t): New data structure.
11708 (breakpoint) <cond_list>: New field.
11709 (find_gdb_breakpoint_at): Make non-static.
11710 (delete_gdb_breakpoint_at): Clear any target-side
11711 conditions.
11712 (clear_gdb_breakpoint_conditions): New function.
11713 (add_condition_to_breakpoint): Likewise.
11714 (add_breakpoint_condition): Likewise.
11715 (gdb_condition_true_at_breakpoint): Likewise.
11716 (gdb_breakpoint_here): Return result directly instead
11717 of going through a local variable.
11718
11719 * mem-break.h (find_gdb_breakpoint_at): New prototype.
11720 (clear_gdb_breakpoint_conditions): Likewise.
11721 (add_breakpoint_condition): Likewise.
11722 (gdb_condition_true_at_breakpoint): Likewise.
11723
11724 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
11725 (need_step_over_p): Take target-side breakpoint condition into
11726 consideration.
11727
11728 2012-02-24 Luis Machado <lgustavo@codesourcery>
11729
11730 * server.h: Include tracepoint.h.
11731 (agent_mem_read, agent_get_trace_state_variable_value,
11732 agent_set_trace_state_variable_value,
11733 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
11734 get_set_tsv_func_addr): New prototypes.
11735
11736 * ax.h: New include file.
11737 * ax.c: New source file.
11738
11739 * tracepoint.c: Include ax.h.
11740 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
11741 agent_expr, eval_result_type): Move to ax.h.
11742 (parse_agent_expr): Rename to ...
11743 (gdb_parse_agent_expr): ... this, make it non-static and move
11744 to ax.h.
11745 (unparse_agent_expr) Rename to ...
11746 (gdb_unparse_agent_expr): ... this, make it non-static and move
11747 to ax.h.
11748 (eval_agent_expr): Rename to ...
11749 (eval_tracepoint_agent_expr): ... this.
11750 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
11751 forward declarations.
11752 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
11753 (agent_get_trace_state_variable_value): New function.
11754 (agent_set_trace_state_variable_value): New function.
11755 (cmd_qtdp): Call gdb_parse_agent_expr (...).
11756 (response_tracepoint): Call gdb_unparse_agent_expr (...).
11757 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
11758 (condition_true_at_tracepoint): Likewise.
11759 (parse_agent_expr): Rename to ...
11760 (gdb_parse_agent_expr): ... this and move to ax.c.
11761 (unparse_agent_expr): Rename to ...
11762 (gdb_unparse_agent_expr): ... this and move to ax.c.
11763 (gdb_agent_op_name): Move to ax.c.
11764 (eval_agent_expr): Rename to ...
11765 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
11766 and move to ax.c.
11767 (eval_tracepoint_agent_expr): New function.
11768 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
11769 non-static.
11770 (current_insn_ptr, emit_error, struct bytecode_address): Move to
11771 ax.c.
11772 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
11773 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
11774 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
11775 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
11776 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
11777 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
11778 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
11779 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
11780 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
11781 (compile_bytecodes): Remove forward declaration.
11782 (is_goto_target): Move to ax.c.
11783 (compile_bytecodes): Move to ax.c and call
11784 agent_get_trace_state_variable_value (...) and
11785 agent_set_trace_state_variable_value (...).
11786
11787 * Makefile.in: Update ax.c and IPA dependencies.
11788
11789 2012-02-24 Pedro Alves <palves@redhat.com>
11790
11791 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
11792 (cmd_bigqtbuffer_circular): ... this. Only handle
11793 'QTBuffer:circular:'.
11794 (handle_tracepoint_general_set): Adjust.
11795
11796 2012-02-16 Yao Qi <yao@codesourcery.com>
11797
11798 * inferiors.c: Move code to ...
11799 * dll.c: .... here. New.
11800 * server.h: Declare clear_dlls.
11801 * Makefile.in (SFILES): Add dll.c.
11802 (OBS): Add dll.o
11803 (dll.o): New rule.
11804
11805 2012-02-11 Yao Qi <yao@codesourcery.com>
11806
11807 * server.c: (handle_monitor_command): Add a new parameter
11808 `own_buf'.
11809 (handle_query): Update caller.
11810
11811 2012-02-09 Joel Brobecker <brobecker@adacore.com>
11812
11813 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
11814 * configure, config.in: Regenerate.
11815 * hostio.c: Provide an alternate implementation if HAVE_READLINK
11816 is not defined.
11817
11818 2012-02-02 Pedro Alves <palves@redhat.com>
11819
11820 Try SIGKILL first, then PTRACE_KILL.
11821 * linux-low.c (linux_kill_one_lwp): New.
11822 (linux_kill_one_lwp): Rename to ...
11823 (kill_one_lwp_callback): ... this. Use the new
11824 linux_kill_one_lwp.
11825
11826 2012-02-02 Pedro Alves <palves@redhat.com>
11827
11828 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
11829 inferior.
11830
11831 2012-01-27 Pedro Alves <palves@redhat.com>
11832
11833 * linux-low.c (linux_child_pid_to_exec_file): Delete.
11834 (elf_64_file_p): Make static.
11835 (linux_pid_exe_is_elf_64_file): New.
11836 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
11837 Delete declarations.
11838 (linux_pid_exe_is_elf_64_file): Declare.
11839 * linux-x86-low.c (x86_arch_setup): Use
11840 linux_pid_exe_is_elf_64_file.
11841
11842 2012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
11843
11844 * linux-low.c (linux_wait_for_event_1): Rename to ...
11845 (linux_wait_for_event): ... here and merge it with former
11846 linux_wait_for_event - new variable wait_ptid, use it.
11847 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
11848
11849 2012-01-23 Pedro Alves <palves@redhat.com>
11850
11851 * server.c (main): Avoid yet another case of infinite loop while
11852 detaching/killing after a longjmp.
11853
11854 2012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
11855
11856 Code cleanup.
11857 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
11858
11859 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11860
11861 * hostio.c (handle_readlink): New function.
11862 (handle_vFile): Call it to handle "vFile:readlink" packets.
11863
11864 2012-01-20 Pedro Alves <palves@redhat.com>
11865 Ulrich Weigand <ulrich.weigand@linaro.org>
11866
11867 * server.c (handle_v_requests): Only support vAttach and vRun to
11868 start multiple processes when in extended protocol mode.
11869
11870 2012-01-17 Pedro Alves <palves@redhat.com>
11871
11872 * tracepoint.c (initialize_tracepoint): Use mmap instead of
11873 memalign plus mprotect to allocate the scratch buffer.
11874
11875 2012-01-13 Pedro Alves <palves@redhat.com>
11876
11877 * server.c (attach_inferior): Clear `cont_thread'.
11878
11879 2012-01-13 Pedro Alves <palves@redhat.com>
11880
11881 * server.c (main): Avoid infinite loop while detaching/killing
11882 after a longjmp.
11883
11884 2012-01-09 Doug Evans <dje@google.com>
11885
11886 * server.c (start_inferior): Set last_ptid in --wrapper case.
11887
11888 2012-01-06 Yao Qi <yao@codesourcery.com>
11889
11890 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
11891 defined.
11892 [IN_PROCESS_AGENT] (debug_agent): New global variable.
11893
11894 2012-01-04 Yao Qi <yao@codesourcery.com>
11895
11896 * tracepoint.c (cmd_qtdp): Print debug message
11897 for static tracepoint.
11898
11899 2012-01-04 Yao Qi <yao@codesourcery.com>
11900
11901 * tracepoint.c (trace_vdebug): Differentiate debug message
11902 between gdbserver and IPA.
11903
11904 2012-01-03 Yao Qi <yao@codesourcery.com>
11905
11906 * tracepoint.c (tracepoint_was_hit): Don't collect for
11907 static tracepoint.
11908
11909 2012-01-02 Joel Brobecker <brobecker@adacore.com>
11910
11911 * terminal.h: Reformat copyright header.
11912
11913 2012-01-02 Joel Brobecker <brobecker@adacore.com>
11914
11915 * server.c (gdbserver_version): Update copyright year.
11916 * gdbreplay.c (gdbreplay_version): Likewise.
11917
11918 2011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
11919
11920 * linux-low.c (linux_create_inferior): Put empty if clause for write.
11921
11922 Revert:
11923 2011-12-18 Hui Zhu <teawater@gmail.com>
11924 * linux-low.c (linux_create_inferior): Save return value to ret.
11925
11926 2011-12-18 Hui Zhu <teawater@gmail.com>
11927
11928 * linux-low.c (linux_create_inferior): Save return value to ret.
11929
11930 2011-12-16 Doug Evans <dje@google.com>
11931
11932 * linux-low.c (linux_create_inferior): If stdio connection,
11933 redirect stdin from /dev/null, stdout to stderr.
11934 * remote-utils.c (remote_is_stdio): New static global.
11935 (remote_connection_is_stdio): New function.
11936 (remote_prepare): Handle stdio connection.
11937 (remote_open): Ditto.
11938 (remote_close): Don't close stdin for stdio connections.
11939 (read_prim,write_prim): New functions. Replace all calls to
11940 read/write to these.
11941 * server.c (main): Watch for "-" argument. Move call to
11942 remote_prepare before start_inferior.
11943 * server.h (STDIO_CONNECTION_NAME): New macro.
11944 (remote_connection_is_stdio): Declare.
11945
11946 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
11947 in debugging output.
11948
11949 2011-12-15 Yao Qi <yao@codesourcery.com>
11950
11951 * tracepoint.c: Include sys/syscall.h.
11952 (gdb_ust_thread): Remove preprocessor conditional.
11953
11954 2011-12-14 Pedro Alves <pedro@codesourcery.com>
11955
11956 * linux-low.c (linux_detach_one_lwp): Call
11957 the_low_target.prepare_to_resume before detaching.
11958
11959 2011-12-14 Yao Qi <yao@codesourcery.com>
11960
11961 * tracepoint.c (gdb_ust_thread): Don't ignore return value
11962 of write.
11963
11964 2011-12-14 Yao Qi <yao@codesourcery.com>
11965
11966 * i386-low.c (i386_low_stopped_data_address): Initialize local
11967 variable `control'.
11968
11969 2011-12-13 Pedro Alves <pedro@codesourcery.com>
11970
11971 PR remote/13492
11972
11973 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
11974 DR_CONTROL unless necessary. Extend comments.
11975 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
11976 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
11977
11978 2011-12-13 Yao Qi <yao@codesourcery.com>
11979
11980 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
11981 macros.
11982 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
11983
11984 2011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
11985
11986 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
11987 Print new debug message for such case.
11988
11989 2011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
11990
11991 Fix overlapping memcpy.
11992 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
11993 the read_inferior_memory transfer.
11994 (delete_fast_tracepoint_jump): New variable buf. Use it for the
11995 write_inferior_memory transfer.
11996 (set_fast_tracepoint_jump): New variable buf. Use it for the
11997 read_inferior_memory and write_inferior_memory transfers.
11998 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
11999 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
12000 Use it for the write_inferior_memory transfer.
12001 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
12002 buffers.
12003
12004 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
12005
12006 * linux-low.c (fetch_register, store_register): Make code
12007 consistent, fix formatting.
12008
12009 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
12010
12011 * linux-low.c (usr_store_inferior_registers): Factor out code
12012 to handle individual registers into...
12013 (store_register): ... this new function.
12014
12015 2011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
12016
12017 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
12018 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
12019 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
12020 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
12021 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
12022 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
12023 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
12024 (srv_xmlfiles): Add new XML files.
12025
12026 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
12027 and <sys/uio.h>.
12028 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
12029 (init_registers_s390_linux32v1): Add prototype.
12030 (init_registers_s390_linux32v2): Likewise.
12031 (init_registers_s390_linux64v1): Likewise.
12032 (init_registers_s390_linux64v2): Likewise.
12033 (init_registers_s390x_linux64v1): Likewise.
12034 (init_registers_s390x_linux64v2): Likewise.
12035 (s390_num_regs): Increment to 52.
12036 (s390_regmap): Add orig_r2 register.
12037 (s390_num_regs_3264): Increment to 68.
12038 (s390_regmap_3264): Add orig_r2 register.
12039 (s390_collect_ptrace_register): Handle orig_r2 register.
12040 (s390_supply_ptrace_register): Likewise.
12041 (s390_fill_last_break): New function.
12042 (s390_store_last_break): Likewise.
12043 (s390_fill_system_call): New function.
12044 (s390_store_system_call): Likewise.
12045 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
12046 register sets.
12047 (s390_check_regset): New function.
12048 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
12049 NT_S390_SYSTEM_CALL regsets and use appropriate description.
12050 Update target_regsets for available register sets.
12051
12052 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
12053 Jan Kratochvil <jan.kratochvil@redhat.com>
12054
12055 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
12056 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
12057 New.
12058 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
12059 * linux-low.h (struct process_info_private): New member r_debug.
12060 * server.c (handle_qxfer_libraries): Call
12061 the_target->qxfer_libraries_svr4.
12062 (handle_qxfer_libraries_svr4): New function.
12063 (qxfer_packets): New entry "libraries-svr4".
12064 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
12065 * target.h (struct target_ops): New member qxfer_libraries_svr4.
12066 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
12067 PACKET_qXfer_libraries_svr4.
12068
12069 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
12070
12071 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
12072 PSW address/mask between 8-byte and 16-byte formats.
12073 (s390_supply_ptrace_register): Likewise.
12074 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
12075 basic addressing mode bit.
12076
12077 2011-11-24 Stan Shebs <stan@codesourcery.com>
12078
12079 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
12080
12081 2011-11-17 Stan Shebs <stan@codesourcery.com>
12082
12083 * tracepoint.c (struct tracepoint): New field traceframe_usage.
12084 (tracing_start_time): New global.
12085 (tracing_stop_time): New global.
12086 (tracing_user_name): New global.
12087 (tracing_notes): New global.
12088 (tracing_stop_note): New global.
12089 (cmd_qtstart): Set traceframe_usage, start_time.
12090 (stop_tracing): Set stop_time.
12091 (cmd_qtstatus): Report additional status.
12092 (cmd_qtp): New function.
12093 (handle_tracepoint_query): Call it.
12094 (cmd_qtnotes): New function.
12095 (handle_tracepoint_general_set): Call it.
12096 (get_timestamp): Rename from tsv_get_timestamp.
12097
12098 2011-11-14 Stan Shebs <stan@codesourcery.com>
12099 Kwok Cheung Yeung <kcy@codesourcery.com>
12100
12101 * linux-x86-low.c (small_jump_insn): New.
12102 (i386_install_fast_tracepoint_jump_pad): Add arguments for
12103 trampoline and error message, build a trampoline and issue a small
12104 jump instruction to it.
12105 (x86_install_fast_tracepoint_jump_pad): Add arguments for
12106 trampoline and error message.
12107 (x86_get_min_fast_tracepoint_insn_len): New.
12108 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
12109 * linux-low.h (struct linux_target_ops): Add arguments to
12110 install_fast_tracepoint_jump_pad operation, add new operation.
12111 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
12112 arguments.
12113 (linux_get_min_fast_tracepoint_insn_len): New function.
12114 (linux_target_op): Add new operation.
12115 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
12116 (gdb_trampoline_buffer_end): Ditto.
12117 (gdb_trampoline_buffer_error): Ditto.
12118 (struct ipa_sym_addresses): Add fields for new IPA variables.
12119 (symbol_list): Add entries for new IPA variables.
12120 (struct tracepoint): Add fields to hold the address range of the
12121 trampoline used by the tracepoint.
12122 (trampoline_buffer_head): New static variable.
12123 (trampoline_buffer_tail): Ditto.
12124 (claim_trampoline_space): New function.
12125 (have_fast_tracepoint_trampoline_buffer): New function.
12126 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
12127 structure.
12128 (install_fast_tracepoint): Ditto, also add error buffer argument.
12129 (cmd_qtminftpilen): New function.
12130 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
12131 (fast_tracepoint_from_trampoline_address): New function.
12132 (fast_tracepoint_collecting): Handle trampoline as part of jump
12133 pad space.
12134 (set_trampoline_buffer_space): New function.
12135 (initialize_tracepoint): Initialize new IPA variables.
12136 * target.h (struct target_ops): Add arguments to
12137 install_fast_tracepoint_jump_pad operation, add new
12138 get_min_fast_tracepoint_insn_len operation.
12139 (target_get_min_fast_tracepoint_insn_len): New.
12140 (install_fast_tracepoint_jump_pad): Add arguments.
12141 * server.h (IPA_BUFSIZ): Define.
12142 * linux-i386-ipa.c: Include extra header files.
12143 (initialize_fast_tracepoint_trampoline_buffer): New function.
12144 (initialize_low_tracepoint): Call it.
12145 * server.h (set_trampoline_buffer_space): Declare.
12146 (claim_trampoline_space): Ditto.
12147 (have_fast_tracepoint_trampoline_buffer): Ditto.
12148
12149 2011-11-14 Yao Qi <yao@codesourcery.com>
12150
12151 * server.c (handle_query): Handle InstallInTrace for qSupported.
12152 * tracepoint.c (add_tracepoint): Sort list.
12153 (install_tracepoint, download_tracepoint): New.
12154 (cmd_qtdp): Call them to install and download tracepoints.
12155 (sort_tracepoints): Removed.
12156 (cmd_qtstart): Update.
12157
12158 2011-11-14 Yao Qi <yao@codesourcery.com>
12159
12160 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
12161 * mem-break.h: Declare.
12162 * tracepoint.c (cmd_qtstart): Move some code to ...
12163 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
12164 New.
12165 (download_tracepoints): Move some code to ...
12166 (download_tracepoint_1): ... here. New.
12167
12168 2011-11-08 Yao Qi <yao@codesourcery.com>
12169
12170 * remote-utils.c (relocate_instruction): A comment fix.
12171
12172 2011-11-07 Joel Brobecker <brobecker@adacore.com>
12173
12174 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
12175 (i386_dr_low_get_control, i386_dr_low_get_status): Use
12176 dr_status_mirror and dr_control_mirror from debug_reg_state.
12177 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
12178 (i386_initial_stuff): Remove use of deleted globals.
12179 (i386_get_thread_context, i386_set_thread_context,
12180 i386_thread_added): Use dr_status_mirror and dr_control_mirror
12181 from debug_reg_state.
12182
12183 2011-11-05 Yao Qi <yao@codesourcery.com>
12184
12185 * tracepoint.c (gdb_collect): Loop over tracepoints of same
12186 address as TPOINT's.
12187
12188 2011-11-02 Stan Shebs <stan@codesourcery.com>
12189
12190 * tracepoint.c (agent_mem_read_string): New function.
12191 (eval_agent_expr): Call it for tracenz.
12192 * server.c (handle_query): Report support for tracenz.
12193
12194 2011-11-02 Yao Qi <yao@codesourcery.com>
12195
12196 * tracepoint.c (cmd_qtstart): Remove unused local variables.
12197
12198 2011-11-02 Yao Qi <yao@codesourcery.com>
12199
12200 * target.h: Fix a typo in comment.
12201
12202 2011-10-31 Pedro Alves <pedro@codesourcery.com>
12203
12204 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
12205 clobber the breakpoints' shadows with fast tracepoint jumps.
12206 * mem-break.h (check_mem_write): Add `myaddr' parameter.
12207 * target.c (write_inferior_memory): Also pass MYADDR down to
12208 check_mem_write.
12209
12210 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
12211
12212 * configure.ac: Check support for personality routine.
12213 * configure: Regenerate.
12214 * config.in: Likewise.
12215 * linux-low.c: Include <sys/personality.h>.
12216 Define ADDR_NO_RANDOMIZE if necessary.
12217 (linux_create_inferior): Disable address space randomization when
12218 forking inferior, if requested.
12219 (linux_supports_disable_randomization): New function.
12220 (linux_target_ops): Install it.
12221 * server.h (disable_randomization): Declare.
12222 * server.c (disable_randomization): New global variable.
12223 (handle_general_set): Handle QDisableRandomization.
12224 (handle_query): Likewise for qSupported.
12225 (main): Support --disable-randomization and --no-disable-randomization
12226 command line arguments.
12227 * target.h (struct target_ops): Add supports_disable_randomization.
12228 (target_supports_disable_randomization): New macro.
12229
12230 2011-09-29 Mike Frysinger <vapier@gentoo.org>
12231
12232 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
12233 ifdef check.
12234 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
12235 [!PT_GETDSBT] (target_loadmap): New definition.
12236 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
12237 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
12238 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
12239 and PT_GETDSBT to LINUX_LOADMAP.
12240 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
12241 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
12242
12243 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
12244
12245 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
12246 (arm_linux_hwbp_cap): New static variable.
12247 (arm_linux_get_hwbp_cap): Replace by ...
12248 (arm_linux_init_hwbp_cap): ... this new function.
12249 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
12250 (arm_linux_get_hw_watchpoint_count): Likewise.
12251 (arm_linux_get_hw_watchpoint_max_length): Likewise.
12252 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
12253 (arm_prepare_to_resume): Use perror_with_name instead of error.
12254
12255 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
12256
12257 * linux-arm-low.c: Include <signal.h>.
12258 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
12259 (struct arm_linux_hwbp_cap): New data type.
12260 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
12261 (struct arm_linux_hw_breakpoint): New data type.
12262 (MAX_BPTS, MAX_WPTS): Define.
12263 (struct arch_process_info, struct arch_lwp_info): New data types.
12264 (arm_linux_get_hwbp_cap): New function.
12265 (arm_linux_get_hw_breakpoint_count): Likewise.
12266 (arm_linux_get_hw_watchpoint_count): Likewise.
12267 (arm_linux_get_hw_watchpoint_max_length): Likewise.
12268 (arm_hwbp_control_initialize): Likewise.
12269 (arm_hwbp_control_is_enabled): Likewise.
12270 (arm_hwbp_control_is_initialized): Likewise.
12271 (arm_hwbp_control_disable): Likewise.
12272 (arm_linux_hw_breakpoint_equal): Likewise.
12273 (arm_linux_hw_point_initialize): Likewise.
12274 (struct update_registers_data): New data structure.
12275 (update_registers_callback: New function.
12276 (arm_insert_point): Likewise.
12277 (arm_remove_point): Likewise.
12278 (arm_stopped_by_watchpoint): Likewise.
12279 (arm_stopped_data_address): Likewise.
12280 (arm_new_process): Likewise.
12281 (arm_new_thread): Likewise.
12282 (arm_prepare_to_resume): Likewise.
12283 (the_low_target): Register arm_insert_point, arm_remove_point,
12284 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
12285 arm_new_thread, and arm_prepare_to_resume.
12286
12287 2011-09-15 Stan Shebs <stan@codesourcery.com>
12288
12289 * server.h (struct emit_ops): Add compare-goto fields.
12290 * tracepoint.c (gdb_agent_op_sizes): New table.
12291 (emit_eq_goto): New function.
12292 (emit_ne_goto): New function.
12293 (emit_lt_goto): New function.
12294 (emit_le_goto): New function.
12295 (emit_gt_goto): New function.
12296 (emit_ge_goto): New function.
12297 (is_goto_target): New function.
12298 (compile_bytecodes): Recognize special cases of compare-goto
12299 combinations and call specialized emitters for them.
12300 * linux-x86-low.c (amd64_emit_eq_goto): New function.
12301 (amd64_emit_ne_goto): New function.
12302 (amd64_emit_lt_goto): New function.
12303 (amd64_emit_le_goto): New function.
12304 (amd64_emit_gt_goto): New function.
12305 (amd64_emit_ge_goto): New function.
12306 (amd64_emit_ops): Add the new functions.
12307 (i386_emit_eq_goto): New function.
12308 (i386_emit_ne_goto): New function.
12309 (i386_emit_lt_goto): New function.
12310 (i386_emit_le_goto): New function.
12311 (i386_emit_gt_goto): New function.
12312 (i386_emit_ge_goto): New function.
12313 (i386_emit_ops): Add the new functions.
12314
12315 2011-09-08 Stan Shebs <stan@codesourcery.com>
12316
12317 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
12318 (i386_emit_epilogue): Restore %ebx.
12319
12320 2011-08-31 Jie Zhang <jzhang918@gmail.com>
12321
12322 * server.c (step_thread): Remove definition.
12323 (process_serial_event): Don't handle Hs.
12324 * server.h (step_thread): Remove declaration.
12325 * target.c (set_desired_inferior): Remove use of step_thread.
12326
12327 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
12328
12329 * linux-low.c: Include linux-procfs.h.
12330 (linux_attach_lwp_1): Update comments.
12331 (linux_attach): Scan for existing threads when attaching to a
12332 process that is the tgid.
12333 * Makefile.in: Update dependencies.
12334
12335 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
12336
12337 * configure.srv: Add linux-procfs.o dependencies.
12338
12339 2011-08-14 Yao Qi <yao@codesourcery.com>
12340
12341 * target.h (struct target_ops): Fix indent.
12342 * win32-low.c (win32_target_ops): Fix comment.
12343
12344 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
12345 Yao Qi <yao@codesourcery.com>
12346
12347 * Makefile.in (clean): Remove tic6x-*.c files.
12348 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
12349 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
12350 (tic6x-c64xp-linux.c): Likewise.
12351 * configure.srv: Add support for tic6x-*-uclinux.
12352 * linux-tic6x-low.c: New.
12353 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
12354
12355 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
12356 Yao Qi <yao@codesourcery.com>
12357
12358 * target.h (struct target_ops): Add read_loadmap.
12359 * linux-low.c (struct target_loadseg): New type.
12360 (struct target_loadmap): New type.
12361 (linux_read_loadmap): New function.
12362 (linux_target_ops): Add linux_read_loadmap.
12363 * server.c (handle_query): Support qXfer:fdpic:read packet.
12364 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
12365 to NULL.
12366
12367 2011-08-05 Eli Zaretskii <eliz@gnu.org>
12368
12369 * win32-low.c: Include <stdint.h>.
12370
12371 2011-07-22 Pedro Alves <pedro@codesourcery.com>
12372
12373 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
12374 to the inferior here.
12375 (i386_remove_aligned_watchpoint): Ditto.
12376 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
12377 fit part of the watchpoint in the debug registers.
12378 (i386_update_inferior_debug_regs): New.
12379 (i386_low_insert_watchpoint): Work on a local mirror of the debug
12380 registers, and only update the inferior on success.
12381 (i386_low_remove_watchpoint): Ditto.
12382
12383 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
12384
12385 * linux-low.c (compare_ints, unique, list_threads, show_process,
12386 linux_core_of_thread): Delete.
12387 (linux_target_ops): Change linux_core_of_thread to
12388 linux_common_core_of_thread.
12389 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
12390 * utils.c (malloc_failure): Change type of argument.
12391 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
12392 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
12393 common/linux-osdata.c, common/ptid.c and common/buffer.c.
12394 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
12395 (IPA_OBJS): Add common-utils-ipa.o.
12396 (ptid_h, linux_osdata_h): New macros.
12397 (server_h): Add common/common-utils.h, common/xml-utils.h,
12398 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
12399 common/ptid.h.
12400 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
12401 ptid.o, buffer.o): New rules.
12402 (linux-low.o): Add common/linux-osdata.h as a dependency.
12403 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
12404 * configure.ac: Add AC_HEADER_DIRENT check.
12405 * config.in: Regenerate.
12406 * configure: Regenerate.
12407 * remote-utils.c (xml_escape_text): Delete.
12408 (buffer_grow, buffer_free, buffer_init, buffer_finish,
12409 buffer_xml_printf): Move to common/buffer.c.
12410 * server.c (main): Remove call to initialize_inferiors.
12411 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
12412 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
12413 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
12414 internal_error, gdb_assert, gdb_assert_fail): Delete.
12415 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
12416 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
12417 common/buffer.h.
12418 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
12419 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
12420 initialize_inferiors): Delete.
12421
12422 2011-07-20 Pedro Alves <pedro@codesourcery.com>
12423
12424 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
12425 symbol error.
12426
12427 2011-05-31 Pedro Alves <pedro@codesourcery.com>
12428
12429 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
12430 assertion.
12431 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
12432
12433 2011-05-26 Yao Qi <yao@codesourcery.com>
12434
12435 * Makefile.in (thread-db.o): Track dependence to
12436 common/gdb_thread_db.h.
12437 * thread-db.c: include gdb_thread_db.h from right place.
12438
12439 2011-05-16 Adrian Cornish <gnu@bluedreamer.com>
12440
12441 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
12442 __FILE__ and __LINE__ to internal_error.
12443
12444 2011-05-13 Doug Evans <dje@google.com>
12445
12446 * thread-db.c (try_thread_db_load_from_sdir): New function.
12447 (try_thread_db_load_from_dir): New function.
12448 (thread_db_load_search): Handle $sdir, ignore $pdir.
12449 Remove trying of system directories if search of
12450 libthread-db-search-path fails, that is now done via $sdir.
12451
12452 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
12453
12454 * server.c (handle_query): Add EnableDisableTracepoints to the list
12455 of supported features.
12456 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
12457 tracepoints.
12458 (cmd_qtenable_disable): New.
12459 (cmd_qtstart): Install tracepoints even if disabled.
12460 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
12461 receiving a QTEnable or QTDisable packet.
12462 (gdb_collect): Skip data collection if fast tracepoint is disabled.
12463 (ust_marker_to_static_tracepoint): Do not ignore disabled static
12464 tracepoints.
12465 (gdb_probe): Skip data collection if static tracepoint is disabled.
12466
12467 2011-05-10 Doug Evans <dje@google.com>
12468
12469 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
12470
12471 2011-05-04 Doug Evans <dje@google.com>
12472
12473 * linux-low.c (linux_join): Skip process lookup.
12474 * spu-low.c (spu_join): Ditto.
12475 * server.c (join_inferiors_callback): Delete.
12476 (process_serial_event): For 'D' packet (detach) call join_inferior
12477 directly.
12478
12479 2011-05-04 Joseph Myers <joseph@codesourcery.com>
12480
12481 * README: Don't mention xscale*-*-linux*.
12482 * configure.srv (xscale*-*-linux*): Don't handle target.
12483
12484 2011-04-27 Nathan Froyd <froydnj@codesourcery.com>
12485
12486 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
12487 casting pointers.
12488 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
12489 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
12490 (i386_emit_void_call_2): Likewise.
12491
12492 2011-04-26 Yao Qi <yao@codesourcery.com>
12493
12494 * linux-low.c: Move common macros to linux-ptrace.h.
12495 Include linux-ptrace.h.
12496 * Makefile.in (linux_ptrace_h): New.
12497 (linux-low.o): Depends on linux-ptrace.h.
12498
12499 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
12500
12501 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
12502 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
12503 (remote_prepare): New function with most of the TCP code from ...
12504 (remote_open): ... here. Detect PORT here unconditionally. Move also
12505 setting transport_is_reliable.
12506 * server.c (run_once): New variable.
12507 (gdbserver_usage): Document it.
12508 (main): Set run_once for `--once'. Call remote_prepare. Exit after
12509 the first run if RUN_ONCE.
12510 * server.h (run_once, remote_prepare): New declarations.
12511
12512 2011-04-19 Tom Tromey <tromey@redhat.com>
12513
12514 * win32-low.c (handle_load_dll): Remove duplicate "the".
12515
12516 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
12517
12518 Remove support for old Cygwin 1.5 versions.
12519 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
12520 function to avoid warning.
12521 (win32_add_one_solib): Use cygwin_conv_path function to avoid
12522 warning.
12523
12524 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
12525
12526 * gdbserver/server.h (Macro _): Define it if not available.
12527
12528 2011-03-14 Michael Snyder <msnyder@vmware.com>
12529
12530 * hostio.c (handle_close): Remove unnecessary null test.
12531
12532 2011-03-10 Joel Brobecker <brobecker@adacore.com>
12533
12534 * Makefile.in (maintainer-clean realclean distclean): Remove
12535 "make ... subdir_do" command.
12536
12537 2011-03-10 Michael Snyder <msnyder@vmware.com>
12538
12539 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
12540
12541 * server.c (handle_v_run): Free alloced buffer on early return.
12542
12543 2011-03-09 Yao Qi <yao@codesourcery.com>
12544
12545 Revert:
12546 2011-03-04 Yao Qi <yao@codesourcery.com>
12547
12548 * Makefile.in: Remove GNU make feature --directory.
12549
12550 2011-03-05 Yao Qi <yao@codesourcery.com>
12551
12552 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
12553 (subdir_do): New make target. Copied from gdb/Makefile.
12554 (maintainer-clean, realclean, distclean, clean): Call corresponding
12555 make targets in common/Makefile.
12556
12557 2011-02-11 Yao Qi <yao@codesourcery.com>
12558
12559 * configure.ac: Call AC_PROG_RANLIB.
12560 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
12561 * configure: Regenerate.
12562
12563 2011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
12564
12565 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
12566
12567 2011-03-06 Yao Qi <yao@codesourcery.com>
12568
12569 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
12570
12571 2011-03-05 Yao Qi <yao@codesourcery.com>
12572
12573 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
12574 (subdir_do): New make target. Copied from gdb/Makefile.
12575 (maintainer-clean, realclean, distclean, clean): Call corresponding
12576 make targets in common/Makefile.
12577
12578 2011-03-04 Yao Qi <yao@codesourcery.com>
12579
12580 * Makefile.in: Remove GNU make feature --directory.
12581
12582 2011-03-04 Michael Snyder <msnyder@vmware.com>
12583
12584 * server.c (queue_stop_reply): Call xmalloc not malloc.
12585
12586 2011-03-02 Michael Snyder <msnyder@vmware.com>
12587
12588 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
12589
12590 2011-02-28 Michael Snyder <msnyder@vmware.com>
12591
12592 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
12593 (cmd_qtframe): Ditto.
12594 (cmd_qtbuffer): Ditto.
12595 (cmd_bigqtbuffer): Ditto.
12596
12597 * utils.c (decimal2str): Initialize 'width' to nine, then
12598 don't mess with it.
12599
12600 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
12601
12602 * hostio.c (require_data): Free *data, not data.
12603
12604 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
12605
12606 * hostio.c (require_data): Use free, not xfree.
12607
12608 2011-02-27 Michael Snyder <msnyder@vmware.com>
12609
12610 * server.c (handle_query): Discard unused value.
12611
12612 * hostio.c (require_data): Free malloc memory before returning
12613 error.
12614
12615 2011-02-26 Michael Snyder <msnyder@vmware.com>
12616
12617 * linux-low.c (list_threads): Call closedir for dirent.
12618
12619 2011-02-27 Michael Snyder <msnyder@vmware.com>
12620
12621 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
12622 a case statement falls through.
12623
12624 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
12625
12626 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
12627 in comparison.
12628
12629 2011-02-26 Michael Snyder <msnyder@vmware.com>
12630
12631 * utils.c (decimal2str): Eliminate dead code and dead param.
12632 (pulongest): Drop dead param from call to decimal2str.
12633 (plongest): Ditto.
12634
12635 2011-02-24 Joel Brobecker <brobecker@adacore.com>
12636
12637 Revert the following patch (not approved yet):
12638 2011-02-21 Hui Zhu <teawater@gmail.com>
12639 * tracepoint.c (tp_printf): New function.
12640 (eval_agent_expr): Handle gdb_agent_op_printf.
12641
12642 2011-02-21 Hui Zhu <teawater@gmail.com>
12643
12644 * tracepoint.c (tp_printf): New function.
12645 (eval_agent_expr): Handle gdb_agent_op_printf.
12646
12647 2011-02-18 Tom Tromey <tromey@redhat.com>
12648
12649 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
12650 (tracepoint.o): Likewise.
12651 * tracepoint.c (enum gdb_agent_op): Use ax.def.
12652 (gdb_agent_op_names): Likewise.
12653
12654 2011-02-18 Tom Tromey <tromey@redhat.com>
12655
12656 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
12657 gdb_agent_op_rot>: New constants.
12658 (gdb_agent_op_names): Add pick and roll.
12659 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
12660 cases.
12661
12662 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
12663
12664 * aclocal.m4: Regenerated with aclocal-1.11.1.
12665
12666 2011-02-14 Pedro Alves <pedro@codesourcery.com>
12667
12668 * server.c (handle_qxfer_traceframe_info): New.
12669 (qxfer_packets): Register "traceframe-info".
12670 (handle_query): Report support for qXfer:traceframe-info:read+.
12671 * tracepoint.c (match_blocktype): New.
12672 (traceframe_find_block_type): Rename to ...
12673 (traceframe_walk_blocks): ... this. Add callback filter argument,
12674 and use it.
12675 (traceframe_find_block_type): New, reimplemented on top of
12676 traceframe_walk_blocks.
12677 (build_traceframe_info_xml): New.
12678 (traceframe_read_info): New.
12679 * server.h (traceframe_read_info): Declare.
12680
12681 2011-02-11 Yao Qi <yao@codesourcery.com>
12682
12683 * configure.ac: Call AC_PROG_RANLIB.
12684 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
12685 * configure: Regenerate.
12686
12687 2011-02-07 Pedro Alves <pedro@codesourcery.com>
12688
12689 * server.c (gdb_read_memory): Change return semantics to allow
12690 partial transfers.
12691 (handle_search_memory_1): Adjust.
12692 (process_serial_event) <'m' packet>: Handle partial transfers.
12693 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
12694
12695 2011-01-28 Pedro Alves <pedro@codesourcery.com>
12696
12697 * regcache.c (init_register_cache): Initialize
12698 regcache->register_status.
12699 (free_register_cache): Release regcache->register_status.
12700 (regcache_cpy): Copy register_status.
12701 (registers_to_string): Print 'x's for unavailable registers.
12702 (supply_register): Mark the register's status valid or
12703 unavailable, depending on whether a buffer was passed in or not.
12704 (supply_register_zeroed): New.
12705 (supply_regblock): Mark the registers' status valid or
12706 unavailable, depending on whether a buffer was passed in or not.
12707 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
12708 (struct regcache): New `register_status' field.
12709 (supply_register_zeroed): Declare.
12710 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
12711 supply_register_zeroed, rather than passing a NULL buffer to
12712 supply_register.
12713 * tracepoint.c (fetch_traceframe_registers): Update comment.
12714
12715 2011-01-28 Pedro Alves <pedro@codesourcery.com>
12716
12717 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
12718 buffer explicit.
12719
12720 2011-01-25 Pedro Alves <pedro@codesourcery.com>
12721
12722 * server.h (decode_xfer_write): Change prototype.
12723 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
12724 and don't extract the annex here.
12725 * server.c (decode_xfer_read): Remove `annex' parameter,
12726 and don't extract the annex here.
12727 (decode_xfer): New.
12728 (struct qxfer): New.
12729 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
12730 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
12731 (handle_qxfer_statictrace): New functions, abstracted out from
12732 handle_query, and made to use the struct qxfer interface.
12733 (handle_threads_qxfer_proper): Rename to ...
12734 (handle_qxfer_threads_proper): ... this.
12735 (handle_threads_qxfer): Rename to ...
12736 (handle_qxfer_threads): ... this. Adjust.
12737 (qxfer_packets): New array.
12738 (handle_qxfer): New function.
12739 (handle_query): Use handle_qxfer.
12740
12741 2011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
12742
12743 * gdbreplay.c: Shorten lines of >= 80 columns.
12744 * linux-low.c: Ditto.
12745 * linux-ppc-low.c: Ditto.
12746 * linux-s390-low.c: Ditto.
12747 * linux-sparc-low.c: Ditto.
12748 * linux-x86-low.c: Ditto.
12749 * linux-xtensa-low.c: Ditto.
12750 * mem-break.c: Ditto.
12751 * nto-low.c: Ditto.
12752 * regcache.h: Ditto.
12753 * remote-utils.c: Ditto.
12754 * server.c: Ditto.
12755 * server.h: Ditto.
12756 * thread-db.c: Ditto.
12757 * tracepoint.c: Ditto.
12758 * utils.c: Ditto.
12759 * win32-low.h: Ditto.
12760
12761 2011-01-05 Joel Brobecker <brobecker@adacore.com>
12762
12763 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
12764 update.
12765
12766 2011-01-01 Joel Brobecker <brobecker@adacore.com>
12767
12768 * server.c (gdbserver_version): Update copyright year in version
12769 output.
12770 * gdbreplay.c (gdbreplay_version): Ditto.
12771
12772 2010-12-29 Jie Zhang <jie.zhang@analog.com>
12773
12774 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
12775 * linux-bfin-low.c: New file.
12776 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
12777 PT_DATA_ADDR for BFIN targets.
12778 * Makefile.in (SFILES): Add linux-bfin-low.c.
12779 (clean): Remove reg-bfin.c.
12780 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
12781 * README: Mention supported Blackfin targets.
12782
12783 2010-12-23 Mike Frysinger <vapier@gentoo.org>
12784
12785 * .gitignore: New file.
12786
12787 2010-11-16 Mike Frysinger <vapier@gentoo.org>
12788
12789 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
12790
12791 2010-10-22 Jie Zhang <jie@codesourcery.com>
12792
12793 * Makefile.in: Add FLAGS_TO_PASS variable.
12794 (install): Remove dependency of install-only and recursively
12795 invoke make for install-only.
12796
12797 2010-10-04 Doug Evans <dje@google.com>
12798
12799 * Makefile.in (uninstall): Use $(DESTDIR).
12800
12801 2010-09-24 Pedro Alves <pedro@codesourcery.com>
12802
12803 PR gdb/11842
12804
12805 * linux-x86-low.c (compat_siginfo_from_siginfo)
12806 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
12807 si_code is < 0. Check for si_code == SI_TIMER before checking for
12808 si_code < 0.
12809
12810 2010-09-13 Joel Brobecker <brobecker@adacore.com>
12811
12812 * lynx-i386-low.c: New file.
12813 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
12814
12815 2010-09-13 Joel Brobecker <brobecker@adacore.com>
12816
12817 * lynx-low.c (ptrace_request_to_str): Remove handling for
12818 request values that have been removed in LynxOS 5.x.
12819
12820 2010-09-13 Joel Brobecker <brobecker@adacore.com>
12821
12822 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
12823 <ptrace.h>
12824
12825 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
12826
12827 * configure.ac: Add --enable-inprocess-agent option.
12828 * configure: Rebuilt.
12829
12830 2010-09-06 Yao Qi <yao@codesourcery.com>
12831
12832 * linux-low.c (linux_kill): Remove unused variable.
12833 (linux_stabilize_threads): Likewise.
12834 * server.c (start_inferior): Likewise.
12835 (queue_stop_reply_callback): Likewise.
12836 * tracepoint.c (do_action_at_tracepoint): Likewise.
12837
12838 2010-09-06 Yao Qi <yao@codesourcery.com>
12839
12840 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
12841 on return.
12842
12843 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
12844
12845 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
12846
12847 2010-09-06 Pedro Alves <pedro@codesourcery.com>
12848
12849 * Makefile.in (install-only): Replace $IPA_DEPFILES with
12850 "$(IPA_DEPFILES)".
12851
12852 2010-09-01 Joel Brobecker <brobecker@adacore.com>
12853
12854 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
12855 gdbserver/lynx-ppc-low.c: New files.
12856 * Makefile.in (lynx_low_h): New variable.
12857 (lynx-low.o, lynx-ppc-low.o): New rules.
12858 * configure.ac: On LynxOS, link with -lnetinet.
12859 * configure.srv: Add handling of powerpc-*-lynxos* targets.
12860 * configure: regenerate.
12861
12862 2010-09-01 Joel Brobecker <brobecker@adacore.com>
12863
12864 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
12865 * configure.ac: Add check for vasprintf and vsnprintf.
12866 * configure, config.in: Regenerate.
12867 * server.h (vasprintf, vsnprintf): Add conditional declarations.
12868
12869 2010-09-01 Joel Brobecker <brobecker@adacore.com>
12870
12871 * gdbreplay.c: Move include of alloca.h up, next to include of
12872 malloc.h.
12873 * server.h: Add include of malloc.h.
12874 * mem-break.c: Remove include of malloc.h.
12875 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
12876
12877 2010-09-01 Joel Brobecker <brobecker@adacore.com>
12878
12879 * Makefile.in (memmem.o): Build with -Wno-error.
12880
12881 2010-09-01 Joel Brobecker <brobecker@adacore.com>
12882
12883 * utils.c (xsnprintf): Make non-static.
12884 * server.h: Add xsnprintf declaration.
12885 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
12886 replace calls to snprintf by calls to xsnprintf throughout.
12887
12888 2010-09-01 Joel Brobecker <brobecker@adacore.com>
12889
12890 * configure.ac: Add configure check for alloca.
12891 * configure, config.in: Regenerate.
12892 * server.h: Include alloca.h if it exists.
12893 * gdbreplay.c: Include alloca.h if it exists.
12894
12895 2010-08-28 Pedro Alves <pedro@codesourcery.com>
12896
12897 * linux-low.c (__SIGRTMIN): Define if not already defined.
12898 (linux_create_inferior): Check for __ANDROID__ rather than
12899 __SIGRTMIN.
12900 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
12901 are already deferred.
12902 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
12903 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
12904 stopped and already has a pending signal to report.
12905 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
12906 a pending signal to report or is moving out of a jump pad.
12907 (linux_init_signals): Check for __ANDROID__ rather than
12908 __SIGRTMIN.
12909
12910 2010-08-28 Pedro Alves <pedro@codesourcery.com>
12911
12912 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
12913 debug_threads check. Avoid a linear search when not doing debug
12914 output.
12915
12916 2010-08-27 Pedro Alves <pedro@codesourcery.com>
12917
12918 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
12919 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
12920 (struct file_handler) <fd>: Change type to gdb_fildes_t.
12921 (process_event): Change local fd's type to gdb_fildes_t.
12922 (create_file_handler): Adjust prototype.
12923 (delete_file_handler): Adjust prototype.
12924 (handle_file_event): Adjust prototype. Use pfildes.
12925 (create_file_event): Adjsut prototype.
12926 * remote-utils.c (remote_desc, listen_desc): Change type to
12927 gdb_fildes_t.
12928 * server.h: New gdb_fildes_t typedef.
12929 [USE_WIN32API]: Include winsock2.h.
12930 (delete_file_handler, add_file_handler): Adjust prototypes.
12931 (pfildes): Declare.
12932 * utils.c (pfildes): New.
12933
12934 2010-08-27 Pedro Alves <pedro@codesourcery.com>
12935
12936 * configure.ac (build_warnings): Add -Wno-char-subscripts.
12937 * configure: Regenerate.
12938
12939 2010-08-27 Pedro Alves <pedro@codesourcery.com>
12940
12941 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
12942 (linux_done_accessing_memory): ... this.
12943 (linux_target_ops): Adjust.
12944 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
12945 * nto-low.c (nto_target_ops): Adjust comment.
12946 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
12947 * spu-low.c (spu_target_ops): Adjust comment.
12948 * target.h (target_ops): Rename unprepare_to_access_memory field
12949 to done_accessing_memory.
12950 (unprepare_to_access_memory): Rename to ...
12951 (done_accessing_memory): ... this.
12952
12953 2010-08-26 Pedro Alves <pedro@codesourcery.com>
12954
12955 * linux-low.c (linux_prepare_to_access_memory): New.
12956 (linux_unprepare_to_access_memory): New.
12957 (linux_target_ops): Install them.
12958 * server.c (read_memory): Rename to ...
12959 (gdb_read_memory): ... this. Use
12960 prepare_to_access_memory/prepare_to_access_memory.
12961 (write_memory): Rename to ...
12962 (gdb_write_memory): ... this. Use
12963 prepare_to_access_memory/prepare_to_access_memory.
12964 (handle_search_memory_1): Adjust.
12965 (process_serial_event): Adjust.
12966 * target.h (struct target_ops): New fields
12967 prepare_to_access_memory and unprepare_to_access_memory.
12968 (prepare_to_access_memory, unprepare_to_access_memory): New.
12969 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
12970 prepare_to_access_memory/prepare_to_access_memory.
12971 * nto-low.c (nto_target_ops): Adjust.
12972 * spu-low.c (spu_target_ops): Adjust.
12973 * win32-low.c (win32_target_ops): Adjust.
12974
12975 2010-08-26 Pedro Alves <pedro@codesourcery.com>
12976
12977 * Makefile.in (WARN_CFLAGS): Get it from configure.
12978 (WERROR_CFLAGS): New.
12979 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
12980 * configure.ac: Introduce --enable-werror, which adds -Werror to
12981 the compiler command line. Enabled by default. Disable with
12982 --disable-werror. Add -Wdeclaration-after-statement
12983 Wpointer-arith and -Wformat-nonliteral to warning flags.
12984 * configure: Regenerate.
12985
12986 2010-08-26 Pedro Alves <pedro@codesourcery.com>
12987
12988 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
12989
12990 2010-08-26 Pedro Alves <pedro@codesourcery.com>
12991
12992 * gdbreplay.c (remote_error): New.
12993 (gdbchar): New.
12994 (expect): Use gdbchar. Check for error reading from GDB.
12995 Clarify sync error output.
12996 (play): Check for errors writing to GDB.
12997 * linux-low.c (sigchld_handler): Really ignore `write' errors.
12998 * remote-utils.c (getpkt): Check for errors writing to the remote
12999 descriptor.
13000
13001 2010-08-25 Pedro Alves <pedro@codesourcery.com>
13002
13003 * linux-low.c (linux_wait_1): Move non-debugging code out of
13004 `debug_threads' control.
13005
13006 2010-08-25 Pedro Alves <pedro@codesourcery.com>
13007
13008 * linux-low.c (linux_wait_1): Don't set last_status here.
13009 * server.c (push_event, queue_stop_reply_callback): Assert we're
13010 not pushing a TARGET_WAITKIND_IGNORE event.
13011 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
13012 (myresume, handle_target_event): Set the thread's last_resume_kind
13013 and last_status from the target returned status.
13014
13015 2010-08-25 Pedro Alves <pedro@codesourcery.com>
13016
13017 PR threads/10729
13018
13019 * linux-x86-low.c (update_debug_registers_callback): New.
13020 (i386_dr_low_set_addr): Use it.
13021 (i386_dr_low_get_addr): New.
13022 (i386_dr_low_set_control): Use update_debug_registers_callback.
13023 (i386_dr_low_get_control): New.
13024 (i386_dr_low_get_status): Adjust.
13025 * linux-low.c (linux_stop_lwp): New.
13026 * linux-low.h (linux_stop_lwp): Declare.
13027
13028 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
13029 argument instead of a i386_debug_reg_state.
13030 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
13031 a i386_debug_reg_state.
13032 (i386_insert_aligned_watchpoint): Adjust.
13033 (i386_remove_aligned_watchpoint): Adjust.
13034 (i386_low_stopped_data_address): Read the debug registers from the
13035 inferior instead of from the mirrors.
13036 * i386-low.h (struct i386_debug_reg_state): Extend comment.
13037 (i386_dr_low_get_addr): Declare.
13038 (i386_dr_low_get_control): Declare.
13039 (i386_dr_low_get_status): Change prototype.
13040
13041 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
13042 (i386_dr_low_get_addr): New.
13043 (i386_dr_low_get_control): New.
13044 (i386_dr_low_get_status): Adjust prototype. Return
13045 dr_status_mirror.
13046 (i386_initial_stuff): Clear dr_status_mirror and
13047 dr_control_mirror.
13048 (i386_get_thread_context): Adjust.
13049 (i386_set_thread_context): Adjust.
13050 (i386_thread_added): Adjust.
13051
13052 2010-08-24 Pedro Alves <pedro@codesourcery.com>
13053
13054 * linux-low.h (linux_thread_area): Delete declaration.
13055
13056 2010-08-11 Thomas Schwinge <thomas@codesourcery.com>
13057
13058 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
13059 after its termination.
13060
13061 2010-08-09 Pedro Alves <pedro@codesourcery.com>
13062
13063 * linux-low.c (gdb_wants_lwp_stopped): Delete.
13064 (gdb_wants_all_stopped): Delete.
13065 (linux_wait_1): Don't call them.
13066 * server.c (handle_v_cont): Tag all threads as want-stopped.
13067 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
13068 stopped as "client-wants-stopped".
13069
13070 2010-07-31 Pedro Alves <pedro@codesourcery.com>
13071
13072 * Makefile.in (signals_h): New.
13073 (server_h): Depend on it.
13074 (server.o): Don't depend on $(signals_def).
13075 (signals.o): Depend on $(signals_def).
13076
13077 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
13078
13079 * Makefile.in (signals_def): New.
13080 (server_h): Append include/gdb/signals.h and signals_def.
13081 (server.o): Append signals_def.
13082
13083 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
13084
13085 * server.c (handle_target_event): Use target_signal_to_host for
13086 resume_info.sig initialization.
13087 * target.h (struct thread_resume) <sig>: New comment.
13088
13089 2010-07-20 Ozkan Sezer <sezeroz@gmail.com>
13090
13091 * server.c (handle_query): strcpy() the returned string from paddress()
13092 instead of sprintf().
13093 * utils.c (paddress): Return phex_nz().
13094
13095 2010-07-07 Joel Brobecker <brobecker@adacore.com>
13096
13097 * server.c (handle_v_cont): Call mourn_inferior if process
13098 just exited.
13099 (myresume): Likewise.
13100
13101 2010-07-01 Pedro Alves <pedro@codesourcery.com>
13102
13103 Static tracepoints, and integration with UST.
13104
13105 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
13106 * mem-break.c (uninsert_all_breakpoints)
13107 (reinsert_all_breakpoints): New.
13108 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
13109 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
13110 (gdb_agent_ust_loaded, helper_thread_id)
13111 (gdb_agent_helper_thread_id): New macros.
13112 (struct ipa_sym_addresses): Add addr_ust_loaded,
13113 addr_helper_thread_id, addr_cmd_buf.
13114 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
13115 (in_process_agent_loaded_ust): New.
13116 (write_e_ust_not_loaded): New.
13117 (maybe_write_ipa_ust_not_loaded): New.
13118 (struct collect_static_trace_data_action): New.
13119 (enum tracepoint_type) <static_tracepoint>: New.
13120 (struct tracepoint) <handle>: Mention static tracepoints.
13121 (struct static_tracepoint_ctx): New.
13122 (CMD_BUF_SIZE): New.
13123 (add_tracepoint_action): Handle static tracepoint actions.
13124 (unprobe_marker_at): New.
13125 (clear_installed_tracepoints): Handle static tracepoints.
13126 (cmd_qtdp): Handle static tracepoints.
13127 (probe_marker_at): New.
13128 (cmd_qtstart): Handle static tracepoints.
13129 (response_tracepoint): Handle static tracepoints.
13130 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
13131 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
13132 (get_context_regcache): Handle static tracepoints.
13133 (do_action_at_tracepoint): Handle static tracepoint actions.
13134 (traceframe_find_block_type): Handle static trace data blocks.
13135 (traceframe_read_sdata): New.
13136 (download_tracepoints): Download static tracepoint actions.
13137 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
13138 (GDB_PROBE_NAME): New.
13139 (ust_ops): New.
13140 (GET_UST_SYM): New.
13141 (USTF): New.
13142 (dlsym_ust): New.
13143 (ust_marker_to_static_tracepoint): New.
13144 (gdb_probe): New.
13145 (collect_ust_data_at_tracepoint): New.
13146 (gdb_ust_probe): New.
13147 (UNIX_PATH_MAX, SOCK_DIR): New.
13148 (gdb_ust_connect_sync_socket): New.
13149 (resume_thread, stop_thread): New.
13150 (run_inferior_command): New.
13151 (init_named_socket): New.
13152 (gdb_ust_socket_init): New.
13153 (cstr_to_hexstr): New.
13154 (next_st): New.
13155 (first_marker, next_marker): New.
13156 (response_ust_marker): New.
13157 (cmd_qtfstm, cmd_qtsstm): New.
13158 (unprobe_marker_at, probe_marker_at): New.
13159 (cmd_qtstmat, gdb_ust_thread): New.
13160 (gdb_ust_init): New.
13161 (initialize_tracepoint_ftlib): Call gdb_ust_init.
13162 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
13163 (ST_REGENTRY): New.
13164 (x86_64_st_collect_regmap): New.
13165 (X86_64_NUM_ST_COLLECT_GREGS): New.
13166 (AMD64_RIP_REGNUM): New.
13167 (supply_static_tracepoint_registers): New.
13168 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
13169 (ST_REGENTRY): New.
13170 (i386_st_collect_regmap): New.
13171 (i386_NUM_ST_COLLECT_GREGS): New.
13172 (supply_static_tracepoint_registers): New.
13173 * server.c (handle_query): Handle qXfer:statictrace:read.
13174 <qSupported>: Report support for StaticTracepoints, and
13175 qXfer:statictrace:read features.
13176 * server.h (traceframe_read_sdata)
13177 (supply_static_tracepoint_registers): Declare.
13178 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
13179 (unpack_varlen_hex): Include in IPA build.
13180 * Makefile.in (ustlibs, ustinc): New.
13181 (IPA_OBJS): Add remote-utils-ipa.o.
13182 ($(IPA_LIB)): Link -ldl and -lpthread.
13183 (UST_CFLAGS): New.
13184 (IPAGENT_CFLAGS): Add UST_CFLAGS.
13185 * config.in, configure: Regenerate.
13186
13187 2010-06-20 Ian Lance Taylor <iant@google.com>
13188 Pedro Alves <pedro@codesourcery.com>
13189
13190 * linux-x86-low.c (always_true): Delete.
13191 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
13192 trying to fool the compiler with always_true.
13193
13194 2010-06-20 Pedro Alves <pedro@codesourcery.com>
13195
13196 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
13197 conditions in gdbserver.
13198
13199 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
13200
13201 * spu-low.c (spu_read_memory): Wrap around local store limit.
13202 (spu_write_memory): Likewise.
13203
13204 2010-06-15 Pedro Alves <pedro@codesourcery.com>
13205
13206 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
13207 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
13208 LONGEST uses.
13209 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
13210 uses.
13211 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
13212 uses with LONGEST uses.
13213
13214 2010-06-14 Stan Shebs <stan@codesourcery.com>
13215 Pedro Alves <pedro@codesourcery.com>
13216
13217 Bytecode compiler.
13218
13219 * linux-x86-low.c: Include limits.h.
13220 (add_insns): New.
13221 (always_true): New.
13222 (EMIT_ASM): New.
13223 (EMIT_ASM32): New.
13224 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
13225 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
13226 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
13227 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
13228 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
13229 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
13230 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
13231 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
13232 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
13233 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
13234 (amd64_emit_void_call_2): New.
13235 (amd64_emit_ops): New.
13236 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
13237 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
13238 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
13239 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
13240 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
13241 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
13242 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
13243 (i386_emit_call, i386_emit_reg, i386_emit_pop)
13244 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
13245 (i386_emit_stack_adjust, i386_emit_int_call_1)
13246 (i386_emit_void_call_2): New.
13247 (i386_emit_ops): New.
13248 (x86_emit_ops): New.
13249 (the_low_target): Install x86_emit_ops.
13250 * server.h (struct emit_ops): New.
13251 (get_raw_reg_func_addr): Declare.
13252 (current_insn_ptr, emit_error): Declare.
13253 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
13254 (set_trace_state_variable_value): New defines.
13255 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
13256 addr_get_trace_state_variable_value and
13257 addr_set_trace_state_variable_value.
13258 (symbol_list): New fields for get_raw_reg,
13259 get_trace_state_variable_value and set_trace_state_variable_value.
13260 (condfn): New typedef.
13261 (struct tracepoint): New field `compiled_cond'.
13262 (do_action_at_tracepoint): Clear compiled_cond.
13263 (get_trace_state_variable_value, set_trace_state_variable_value):
13264 Export in the IPA.
13265 (condition_true_at_tracepoint): If there's a compiled condition,
13266 run that.
13267 (current_insn_ptr, emit_error): New globals.
13268 (struct bytecode_address): New.
13269 (get_raw_reg_func_addr): New.
13270 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
13271 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
13272 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
13273 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
13274 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
13275 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
13276 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
13277 (compile_tracepoint_condition, compile_bytecodes): New.
13278 * target.h (emit_ops): Forward declare.
13279 (struct target_ops): New field emit_ops.
13280 (target_emit_ops): New.
13281 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
13282 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
13283 * linux-low.c (linux_emit_ops): New.
13284 (linux_target_ops): Install it.
13285 * linux-low.h (struct linux_target_ops): New field emit_ops.
13286
13287 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
13288
13289 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
13290 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
13291
13292 2010-06-01 Pedro Alves <pedro@codesourcery.com>
13293 Stan Shebs <stan@codesourcery.com>
13294
13295 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
13296 (all): Depend on $(extra_libraries).
13297 (install-only): Install the IPA.
13298 (IPA_OBJS, IPA_LIB): New.
13299 (clean): Remove the IPA lib.
13300 (IPAGENT_CFLAGS): New.
13301 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
13302 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
13303 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
13304 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
13305 * configure.ac: Check for atomic builtins support in the compiler.
13306 (IPA_DEPFILES, extra_libraries): Define.
13307 * configure.srv (ipa_obj): Add description.
13308 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
13309 (i[34567]86-*-linux*): Set ipa_obj.
13310 (x86_64-*-linux*): Set ipa_obj.
13311 * linux-low.c (stabilizing_threads): New.
13312 (supports_fast_tracepoints): New.
13313 (linux_detach): Stabilize threads before detaching.
13314 (handle_tracepoints): Handle internal tracing breakpoints. Assert
13315 the lwp is either not stabilizing, or is moving out of a jump pad.
13316 (linux_fast_tracepoint_collecting): New.
13317 (maybe_move_out_of_jump_pad): New.
13318 (enqueue_one_deferred_signal): New.
13319 (dequeue_one_deferred_signal): New.
13320 (linux_wait_for_event_1): If moving out of a jump pad, defer
13321 pending signals to later.
13322 (linux_stabilize_threads): New.
13323 (linux_wait_1): Check if threads need moving out of jump pads, and
13324 do it if so.
13325 (stuck_in_jump_pad_callback): New.
13326 (move_out_of_jump_pad_callback): New.
13327 (lwp_running): New.
13328 (linux_resume_one_lwp): Handle moving out of jump pads.
13329 (linux_set_resume_request): Dequeue deferred signals.
13330 (need_step_over_p): Also step over fast tracepoint jumps.
13331 (start_step_over): Also uninsert fast tracepoint jumps.
13332 (finish_step_over): Also reinsert fast tracepoint jumps.
13333 (linux_install_fast_tracepoint_jump): New.
13334 (linux_target_ops): Install linux_stabilize_threads and
13335 linux_install_fast_tracepoint_jump_pad.
13336 * linux-low.h (linux_target_ops) <get_thread_area,
13337 install_fast_tracepoint_jump_pad>: New fields.
13338 (struct lwp_info) <collecting_fast_tracepoint,
13339 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
13340 (linux_get_thread_area): Declare.
13341 * linux-x86-low.c (jump_insn): New.
13342 (x86_get_thread_area): New.
13343 (append_insns): New.
13344 (push_opcode): New.
13345 (amd64_install_fast_tracepoint_jump_pad): New.
13346 (i386_install_fast_tracepoint_jump_pad): New.
13347 (x86_install_fast_tracepoint_jump_pad): New.
13348 (the_low_target): Install x86_get_thread_area and
13349 x86_install_fast_tracepoint_jump_pad.
13350 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
13351 (struct fast_tracepoint_jump): New.
13352 (fast_tracepoint_jump_insn): New.
13353 (fast_tracepoint_jump_shadow): New.
13354 (find_fast_tracepoint_jump_at): New.
13355 (fast_tracepoint_jump_here): New.
13356 (delete_fast_tracepoint_jump): New.
13357 (set_fast_tracepoint_jump): New.
13358 (uninsert_fast_tracepoint_jumps_at): New.
13359 (reinsert_fast_tracepoint_jumps_at): New.
13360 (set_breakpoint_at): Use write_inferior_memory.
13361 (uninsert_raw_breakpoint): Use write_inferior_memory.
13362 (check_mem_read): Mask out fast tracepoint jumps.
13363 (check_mem_write): Mask out fast tracepoint jumps.
13364 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
13365 (set_fast_tracepoint_jump): Declare.
13366 (delete_fast_tracepoint_jump)
13367 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
13368 (reinsert_fast_tracepoint_jumps_at): Declare.
13369 * regcache.c: Don't compile many functions when building the
13370 in-process agent library.
13371 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
13372 the register buffer in the heap.
13373 (free_register_cache): If the register buffer isn't owned by the
13374 regcache, don't free it.
13375 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
13376 pre-existing register caches.
13377 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
13378 type.
13379 (convert_ascii_to_int): : Constify `from' parameter type.
13380 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
13381 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
13382 the needed buffer in-place.
13383 (relocate_instruction): New.
13384 * server.c (handle_query) <qSymbols>: If the target supports
13385 tracepoints, give it a chance of looking up symbols. Report
13386 support for fast tracepoints.
13387 (handle_status): Stabilize threads.
13388 (process_serial_event): Adjust.
13389 * server.h (struct fast_tracepoint_jump): Forward declare.
13390 (struct process_info) <fast_tracepoint_jumps>: New field.
13391 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
13392 (decode_X_packet, decode_M_packet): Adjust.
13393 (relocate_instruction): Declare.
13394 (in_process_agent_loaded): Declare.
13395 (tracepoint_look_up_symbols): Declare.
13396 (struct fast_tpoint_collect_status): Declare.
13397 (fast_tracepoint_collecting): Declare.
13398 (force_unlock_trace_buffer): Declare.
13399 (handle_tracepoint_bkpts): Declare.
13400 (initialize_low_tracepoint)
13401 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
13402 * target.h (struct target_ops) <stabilize_threads,
13403 install_fast_tracepoint_jump_pad>: New fields.
13404 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
13405 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
13406 [HAVE_STDINT_H]: Include stdint.h.
13407 (trace_debug_1): Rename to ...
13408 (trace_vdebug): ... this.
13409 (trace_debug): Rename to ...
13410 (trace_debug_1): ... this. Add `level' parameter.
13411 (trace_debug): New.
13412 (ATTR_USED, ATTR_NOINLINE): New.
13413 (IP_AGENT_EXPORT): New.
13414 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
13415 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
13416 (about_to_request_buffer_space, trace_buffer_is_full)
13417 (stopping_tracepoint, expr_eval_result, error_tracepoint)
13418 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
13419 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
13420 (traceframe_write_count, traceframes_created)
13421 (trace_state_variables)
13422 New renaming defines.
13423 (struct ipa_sym_addresses): New.
13424 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
13425 (symbol_list): New.
13426 (ipa_sym_addrs): New.
13427 (all_tracepoint_symbols_looked_up): New.
13428 (in_process_agent_loaded): New.
13429 (write_e_ipa_not_loaded): New.
13430 (maybe_write_ipa_not_loaded): New.
13431 (tracepoint_look_up_symbols): New.
13432 (debug_threads) [IN_PROCESS_AGENT]: New.
13433 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
13434 (UNKNOWN_SIDE_EFFECTS): New.
13435 (stop_tracing): New.
13436 (flush_trace_buffer): New.
13437 (stop_tracing_bkpt): New.
13438 (flush_trace_buffer_bkpt): New.
13439 (read_inferior_integer): New.
13440 (read_inferior_uinteger): New.
13441 (read_inferior_data_pointer): New.
13442 (write_inferior_data_pointer): New.
13443 (write_inferior_integer): New.
13444 (write_inferior_uinteger): New.
13445 (struct collect_static_trace_data_action): Delete.
13446 (enum tracepoint_type): New.
13447 (struct tracepoint) <type>: New field `type'.
13448 <actions_str, step_actions, step_actions_str>: Only include in
13449 GDBserver.
13450 <orig_size, obj_addr_on_target, adjusted_insn_addr>
13451 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
13452 (tracepoints): Use IP_AGENT_EXPORT.
13453 (last_tracepoint): Don't include in the IPA.
13454 (stopping_tracepoint): Use IP_AGENT_EXPORT.
13455 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
13456 (alloced_trace_state_variables): New.
13457 (trace_state_variables): Use IP_AGENT_EXPORT.
13458 (traceframe_t): Delete unused variable.
13459 (circular_trace_buffer): Don't include in the IPA.
13460 (trace_buffer_start): Delete.
13461 (struct trace_buffer_control): New.
13462 (trace_buffer_free): Delete.
13463 (struct ipa_trace_buffer_control): New.
13464 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
13465 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
13466 New.
13467 (trace_buffer_ctrl): New.
13468 (TRACE_BUFFER_CTRL_CURR): New.
13469 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
13470 Reimplement as macros.
13471 (trace_buffer_wrap): Delete.
13472 (traceframe_write_count, traceframe_read_count)
13473 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
13474 (struct tracepoint_hit_ctx) <type>: New field.
13475 (struct fast_tracepoint_ctx): New.
13476 (memory_barrier): New.
13477 (cmpxchg): New.
13478 (record_tracepoint_error): Update atomically in the IPA.
13479 (clear_inferior_trace_buffer): New.
13480 (about_to_request_buffer_space): New.
13481 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
13482 updating the same buffer.
13483 (add_tracepoint): Default the tracepoint's type to trap
13484 tracepoint, and orig_size to -1.
13485 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
13486 internal variables.
13487 (create_trace_state_variable): New parameter `gdb'. Handle it.
13488 (clear_installed_tracepoints): Clear fast tracepoint jumps.
13489 (cmd_qtdp): Handle fast tracepoints.
13490 (cmd_qtdv): Adjust.
13491 (max_jump_pad_size): New.
13492 (gdb_jump_pad_head): New.
13493 (get_jump_space_head): New.
13494 (claim_jump_space): New.
13495 (sort_tracepoints): New.
13496 (MAX_JUMP_SIZE): New.
13497 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
13498 IPA.
13499 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
13500 support. Upload fast traceframes, and delete internal IPA
13501 breakpoints.
13502 (stop_tracing_handler): New.
13503 (flush_trace_buffer_handler): New.
13504 (cmd_qtstop): Upload fast tracepoints.
13505 (response_tracepoint): Handle fast tracepoints.
13506 (tracepoint_finished_step): Upload fast traceframes. Set the
13507 tracepoint hit context's tracepoint type.
13508 (handle_tracepoint_bkpts): New.
13509 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
13510 type. Add comment about fast tracepoints.
13511 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
13512 non-existing action_str field.
13513 (get_context_regcache): Handle fast tracepoints.
13514 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
13515 to the regcache.
13516 (fast_tracepoint_from_jump_pad_address): New.
13517 (fast_tracepoint_from_ipa_tpoint_address): New.
13518 (collecting_t): New.
13519 (force_unlock_trace_buffer): New.
13520 (fast_tracepoint_collecting): New.
13521 (collecting): New.
13522 (gdb_collect): New.
13523 (write_inferior_data_ptr): New.
13524 (target_tp_heap): New.
13525 (target_malloc): New.
13526 (download_agent_expr): New.
13527 (UALIGN): New.
13528 (download_tracepoints): New.
13529 (download_trace_state_variables): New.
13530 (upload_fast_traceframes): New.
13531 (IPA_FIRST_TRACEFRAME): New.
13532 (IPA_NEXT_TRACEFRAME_1): New.
13533 (IPA_NEXT_TRACEFRAME): New.
13534 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
13535 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
13536 (gdb_jump_pad_buffer_end): New.
13537 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
13538 (initialize_tracepoint): Adjust.
13539 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
13540 buffer. Initialize the low module.
13541 * utils.c (PREFIX, TOOLNAME): New.
13542 (malloc_failure): Use PREFIX.
13543 (error): In the IPA, an error causes an exit.
13544 (fatal, warning): Use PREFIX.
13545 (internal_error): Use TOOLNAME.
13546 (NUMCELLS): Increase to 10.
13547 * configure, config.in: Regenerate.
13548
13549 2010-06-01 Pedro Alves <pedro@codesourcery.com>
13550
13551 * server.c (handle_query) <qSupported>: Do two passes over the
13552 qSupported string to avoid nesting strtok.
13553
13554 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
13555
13556 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
13557 (CDEPS): New.
13558 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
13559 -Wl,--dynamic-list.
13560 * configure: Regenerate.
13561 * proc-service.list: New.
13562
13563 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
13564
13565 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
13566 New comment.
13567
13568 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
13569
13570 * gdbreplay.c (remote_open): Check error return from socket() call by
13571 its equality to -1 not by it being negative.
13572 * remote-utils.c (remote_open): Likewise.
13573
13574 2010-05-23 Pedro Alves <pedro@codesourcery.com>
13575
13576 * config.h: Regenerate.
13577
13578 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
13579
13580 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
13581 doesn't provide PTRACE_GET_THREAD_AREA.
13582
13583 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
13584
13585 * linux-m68k-low.c: Include <asm/ptrace.h>
13586 (ps_get_thread_area): Implement.
13587
13588 2010-05-03 Doug Evans <dje@google.com>
13589
13590 * event-loop.c (struct callback_event): New struct.
13591 (callback_list): New global.
13592 (append_callback_event, delete_callback_event): New functions.
13593 (process_callback): New function.
13594 (start_event_loop): Call it.
13595 * remote-utils.c (NOT_SCHEDULED): Define.
13596 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
13597 moved out of readchar.
13598 (readchar): Rewrite. Call reschedule before returning.
13599 (reset_readchar): New function.
13600 (remote_close): Call it.
13601 (process_remaining, reschedule): New functions.
13602 * server.h (callback_handler_func): New typedef.
13603 (append_callback_event, delete_callback_event): Declare.
13604
13605 2010-05-03 Pedro Alves <pedro@codesourcery.com>
13606
13607 * proc-service.c (ps_pglobal_lookup): Use
13608 thread_db_look_up_one_symbol.
13609 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
13610 parameter. Use it instead of all_symbols_looked_up.
13611 * server.h (struct process_info) <all_symbols_looked_up>: Delete
13612 field.
13613 (all_symbols_looked_up): Don't declare.
13614 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
13615 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
13616 field.
13617 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
13618 Set all_symbols_looked_up here.
13619 (thread_db_look_up_one_symbol): New.
13620 (thread_db_get_tls_address): Adjust.
13621 (thread_db_load_search, try_thread_db_load_1): Always allocate the
13622 thread_db object on the heap, and tentatively set it in the
13623 process structure.
13624 (thread_db_init): Don't set all_symbols_looked_up here.
13625 * linux-low.h (thread_db_look_up_one_symbol): Declare.
13626
13627 2010-05-03 Pedro Alves <pedro@codesourcery.com>
13628
13629 * linux-low.c (linux_kill, linux_detach): Adjust.
13630 (status_pending_p_callback): Remove redundant statement. Check
13631 for !TARGET_WAITIKIND_IGNORE, instead of
13632 TARGET_WAITKIND_STOPPED.
13633 (handle_tracepoints): Make sure LWP is locked. Adjust.
13634 (linux_wait_for_event_1): Adjust.
13635 (linux_cancel_breakpoints): New.
13636 (unsuspend_one_lwp): New.
13637 (unsuspend_all_lwps): New.
13638 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
13639 (send_sigstop_callback): Change return type to int, add new
13640 `except' parameter and handle it.
13641 (suspend_and_send_sigstop_callback): New.
13642 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
13643 pass them down. If SUSPEND, also increment the lwp's suspend
13644 count.
13645 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
13646 (need_step_over_p): Don't consider suspended LWPs.
13647 (start_step_over): Adjust.
13648 (proceed_one_lwp): Change return type to int, add new `except'
13649 parameter and handle it.
13650 (unsuspend_and_proceed_one_lwp): New.
13651 (proceed_all_lwps): Use find_inferior instead of
13652 for_each_inferior.
13653 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
13654 also decrement the suspend count of LWPs. Pass `except' down,
13655 instead of hacking its suspend count.
13656 (linux_pause_all): Add `freeze' parameter. Adjust.
13657 (linux_unpause_all): New.
13658 (linux_target_ops): Install linux_unpause_all.
13659 * server.c (handle_status): Adjust.
13660 * target.h (struct target_ops): New fields `unpause_all' and
13661 `cancel_breakpoints'. Add new parameter to `pause_all'.
13662 (pause_all): Add new `freeze' parameter.
13663 (unpause_all): New.
13664 (cancel_breakpoints): New.
13665 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
13666 cancel breakpoints.
13667 (cmd_qtstart): Pause threads.
13668 (stop_tracing): Pause threads, and cancel breakpoints.
13669 * win32-low.c (win32_target_ops): Adjust.
13670
13671 2010-05-03 Pedro Alves <pedro@codesourcery.com>
13672
13673 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
13674 the inferior right away from here...
13675 (linux_wait_1): ... to here, and adjust to check the thread's
13676 last_resume_kind instead of the lwp's step or stop_expected flags.
13677
13678 2010-05-02 Pedro Alves <pedro@codesourcery.com>
13679
13680 * README: Use consistent `GDB' and `GDBserver' spellings.
13681
13682 2010-05-02 Pedro Alves <pedro@codesourcery.com>
13683
13684 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
13685 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
13686 (linux_detach_one_lwp): Assume the lwp is stopped.
13687 (any_thread_of): Delete.
13688 (linux_detach): Stop all lwps here. Don't blindly delete all
13689 breakpoints.
13690 (delete_lwp_callback): New.
13691 (linux_mourn): Delete all lwps of the process that is gone.
13692 (linux_wait_1): Don't delete the last lwp of the process here.
13693 * mem-break.h (mark_breakpoints_out): Declare.
13694 * mem-break.c (mark_breakpoints_out): New.
13695 (free_all_breakpoints): Use it.
13696 * server.c (handle_target_event): If the process is gone, mark
13697 breakpoints out.
13698 * thread-db.c (struct thread_db) <create_bp>: New field.
13699 (thread_db_enable_reporting): Fix prototype. Store a thread event
13700 breakpoint reference in the thread_db struct.
13701 (thread_db_load_search): Clear the thread_db object.
13702 (try_thread_db_load_1): Ditto.
13703 (switch_to_process): New.
13704 (disable_thread_event_reporting): Use it.
13705 (remove_thread_event_breakpoints): New.
13706 (thread_db_detach, thread_db_mourn): Use it.
13707
13708 2010-05-01 Pedro Alves <pedro@codesourcery.com>
13709
13710 * linux-low.c (linux_enable_event_reporting): New.
13711 (linux_wait_for_event_1, handle_extended_wait): Use it.
13712
13713 2010-04-30 Pedro Alves <pedro@codesourcery.com>
13714
13715 * linux-low.c (linux_kill_one_lwp, linux_kill)
13716 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
13717 (send_sigstop): Take an lwp_info as parameter instead. Queue a
13718 SIGSTOP even if the LWP is stopped.
13719 (send_sigstop_callback): New.
13720 (stop_all_lwps): Use send_sigstop_callback instead.
13721 (linux_resume_one_thread): Adjust.
13722 (proceed_one_lwp): Still proceed an LWP that the client has
13723 requested to stop, if we haven't reported it as stopped yet. Make
13724 sure that LWPs the client want stopped, have a pending SIGSTOP.
13725
13726 2010-04-26 Doug Evans <dje@google.com>
13727
13728 * server.c (handle_general_set): Make static.
13729
13730 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
13731 Print received char after testing for error/eof instead of before.
13732 (input_interrupt): Tweak comment.
13733
13734 2010-04-23 Doug Evans <dje@google.com>
13735
13736 * server.c (start_inferior): Print inferior argv if --debug.
13737
13738 2010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
13739
13740 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
13741 * nto-x86-low.c: Include server.h
13742
13743 2010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
13744
13745 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
13746 be consistent with other sources of this directory.
13747 (init_registers_amd64): Correct name of source file of this function
13748 in the comment.
13749
13750 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
13751
13752 * configure.srv (x86_64-*-mingw*): New configuration for Windows
13753 64-bit executables.
13754
13755 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
13756
13757 * win32-i386-low.c: Add 64-bit support.
13758 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
13759 (init_registers_amd64): Declare.
13760 (mappings): Add 64-bit version of array.
13761 (init_windows_x86): New function.
13762 (the_low_target): Change init_arch field to init_windows_x86.
13763
13764 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
13765
13766 * win32-low.c: Adapt to support also 64-bit architecture.
13767 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
13768 (get_image_name): Use SIZE_T type for local variable `done'.
13769 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
13770 (toolhelp_get_dll_name): Idem.
13771 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
13772 Use uintptr_t typecast to avoid warning.
13773 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
13774 (handle_exception): Use phex_nz to avoid warning.
13775 (win32_wait): Remove unused local variable `process'.
13776
13777 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
13778
13779 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
13780 `amd64-avx.o'.
13781
13782 2010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
13783
13784 * configure.ac: Use `ws2_32' library for srv_mingw.
13785 * configure: Regenerate.
13786 * gdbreplay.c: Include winsock2.h instead of winsock.h.
13787 * remote-utils.c: Likewise.
13788
13789 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
13790
13791 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
13792 if __x86_64__ is defined.
13793
13794 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
13795
13796 * configure: Regenerate.
13797
13798 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
13799
13800 * server.c (handle_query): Handle 'qGetTIBAddr' query.
13801 * target.h (target_ops): New get_tib_address field.
13802 * win32-low.h (win32_thread_info): Add thread_local_base field.
13803 * win32-low.c (child_add_thread): Add tlb argument.
13804 Set thread_local_base field to TLB.
13805 (get_child_debug_event): Adapt to child_add_thread change.
13806 (win32_get_tib_address): New function.
13807 (win32_target_ops): Set get_tib_address field to
13808 win32_get_tib_address.
13809 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
13810
13811 2010-04-12 Pedro Alves <pedro@codesourcery.com>
13812
13813 * linux-low.c (linux_mourn): Also remove the process.
13814 * server.c (handle_target_event): Don't remove the process here.
13815 * nto-low.c (nto_mourn): New.
13816 (nto_target_ops): Install it.
13817 * spu-low.c (spu_mourn): New.
13818 (spu_target_ops): Install it.
13819 * win32-low.c (win32_mourn): New.
13820 (win32_target_ops): Install it.
13821
13822 2010-04-12 Pedro Alves <pedro@codesourcery.com>
13823
13824 * server.h (buffer_xml_printf): Remove redundant `;'.
13825
13826 2010-04-12 Pedro Alves <pedro@codesourcery.com>
13827
13828 * regcache.c (set_register_cache): Invalidate regcaches before
13829 changing the register cache layout.
13830 (regcache_invalidate_one): Allow a NULL regcache.
13831 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
13832 regcaches before changing the register cache layout or the target
13833 regsets.
13834
13835 2010-04-12 H.J. Lu <hongjiu.lu@intel.com>
13836
13837 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
13838 variable warning on Linux/x86-64.
13839
13840 2010-04-11 Pedro Alves <pedro@codesourcery.com>
13841
13842 GDBserver disconnected tracing support.
13843
13844 * linux-low.c (linux_remove_process): Delete.
13845 (add_lwp): Don't set last_resume_kind here.
13846 (linux_kill): Use `mourn'.
13847 (linux_detach): Use `thread_db_detach', and `mourn'.
13848 (linux_mourn): New.
13849 (linux_attach_lwp_1): Adjust comment.
13850 (linux_attach): last_resume_kind moved the thread_info; adjust.
13851 (status_pending_p_callback): Adjust.
13852 (linux_wait_for_event_1): Adjust.
13853 (count_events_callback, select_singlestep_lwp_callback)
13854 (select_event_lwp_callback, cancel_breakpoints_callback)
13855 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
13856 (proceed_one_lwp): Adjust.
13857 (linux_async): Add debug output.
13858 (linux_thread_stopped): New.
13859 (linux_pause_all): New.
13860 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
13861 linux_pause_all.
13862 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
13863 (thread_db_free): Delete declaration.
13864 (thread_db_detach, thread_db_mourn): Declare.
13865 * thread-db.c (thread_db_init): Use thread_db_mourn.
13866 (thread_db_free): Delete, split in two.
13867 (disable_thread_event_reporting): New.
13868 (thread_db_detach): New.
13869 (thread_db_mourn): New.
13870
13871 * server.h (struct thread_info) <last_resume_kind>: New field.
13872 <attached>: Add comment.
13873 <gdb_detached>: New field.
13874 (handler_func): Change return type to int.
13875 (handle_serial_event, handle_target_event): Ditto.
13876 (gdb_connected): Declare.
13877 (tracing): Delete.
13878 (disconnected_tracing): Declare.
13879 (stop_tracing): Declare.
13880
13881 * server.c (handle_query) <qSupported>: Report support for
13882 disconnected tracing.
13883 (queue_stop_reply_callback): Account for running threads.
13884 (gdb_wants_thread_stopped): New.
13885 (gdb_wants_all_threads_stopped): New.
13886 (gdb_reattached_process): New.
13887 (handle_status): Clear the `gdb_detached' flag of all processes.
13888 In all-stop, stop all threads.
13889 (main): Be sure to leave tfind mode. Handle disconnected tracing.
13890 (process_serial_event): If the remote connection breaks, or if an
13891 exit was forced with "monitor exit", force an event loop exit.
13892 Handle disconnected tracing on detach.
13893 (handle_serial_event): Adjust.
13894 (handle_target_event): If GDB isn't connected, forward events back
13895 to the inferior, unless the last process exited, in which case,
13896 exit gdbserver. Adjust interface.
13897
13898 * remote-utils.c (remote_open): Don't block in accept. Instead
13899 register an event loop source on the listen socket file
13900 descriptor. Refactor bits into ...
13901 (listen_desc): ... this new global.
13902 (gdb_connected): ... this new function.
13903 (enable_async_notification): ... this new function.
13904 (handle_accept_event): ... this new function.
13905 (remote_close): Clear remote_desc.
13906
13907 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
13908
13909 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
13910 New fields.
13911 (mourn_inferior): Define.
13912 (target_process_qsupported): Avoid the dangling else problem.
13913 (thread_stopped): Define.
13914 (pause_all): Define.
13915 (target_waitstatus_to_string): Declare.
13916 * target.c (target_waitstatus_to_string): New.
13917
13918 * tracepoint.c (tracing): Make extern.
13919 (disconnected_tracing): New.
13920 (stop_tracing): Make extern. Handle tracing stops due to GDB
13921 disconnecting.
13922 (cmd_qtdisconnected): New.
13923 (cmd_qtstatus): Report disconnected tracing status in trace reply.
13924 (handle_tracepoint_general_set): Handle QTDisconnected.
13925
13926 * event-loop.c (event_handler_func): Change return type to int.
13927 (process_event): Bail out if the event handler wants the event
13928 loop to stop.
13929 (handle_file_event): Ditto.
13930 (start_event_loop): Bail out if the event handler wants the event
13931 loop to stop.
13932
13933 * nto-low.c (nto_target_ops): Adjust.
13934 * spu-low.c (spu_wait): Don't remove the process here.
13935 (spu_target_ops): Adjust.
13936 * win32-low.c (win32_wait): Don't remove the process here.
13937 (win32_target_ops): Adjust.
13938
13939 2010-04-11 Pedro Alves <pedro@codesourcery.com>
13940
13941 * regcache.c (realloc_register_cache): Invalidate inferior's
13942 regcache before recreating it.
13943
13944 2010-04-09 Pedro Alves <pedro@codesourcery.com>
13945
13946 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
13947
13948 2010-04-09 Stan Shebs <stan@codesourcery.com>
13949 Pedro Alves <pedro@codesourcery.com>
13950
13951 * server.h (LONGEST): New.
13952 (struct thread_info) <while_stepping>: New field.
13953 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
13954 Declare.
13955 (initialize_tracepoint, handle_tracepoint_general_set)
13956 (handle_tracepoint_query, tracepoint_finished_step)
13957 (tracepoint_was_hit, release_while_stepping_state_list):
13958 (current_traceframe): Declare.
13959 * server.c (handle_general_set): Handle tracepoint packets.
13960 (read_memory): New.
13961 (write_memory): New.
13962 (handle_search_memory_1): Use read_memory.
13963 (handle_query): Report support for conditional tracepoints, trace
13964 state variables, and tracepoint sources. Handle tracepoint
13965 queries.
13966 (main): Initialize the tracepoints module.
13967 (process_serial_event): Handle traceframe reads/writes.
13968
13969 * linux-low.c (handle_tracepoints): New.
13970 (linux_wait_1): Call it.
13971 (linux_resume_one_lwp): Handle while-stepping.
13972 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
13973 (linux_target_ops): Install them.
13974 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
13975 New field.
13976 * linux-x86-low.c (x86_supports_tracepoints): New.
13977 (the_low_target). Install it.
13978
13979 * mem-break.h (delete_breakpoint): Declare.
13980 * mem-break.c (delete_breakpoint): Make external.
13981
13982 * target.h (struct target_ops): Add `supports_tracepoints',
13983 `read_pc', and `write_pc' fields.
13984 (target_supports_tracepoints): Define.
13985 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
13986 (phex_nz): New.
13987
13988 * regcache.h (struct regcache) <registers_owned>: New field.
13989 (init_register_cache, regcache_cpy): Declare.
13990 (regcache_read_pc, regcache_write_pc): Declare.
13991 (register_cache_size): Declare.
13992 (supply_regblock): Declare.
13993 * regcache.c (init_register_cache): New.
13994 (new_register_cache): Use it.
13995 (regcache_cpy): New.
13996 (register_cache_size): New.
13997 (supply_regblock): New.
13998 (regcache_read_pc, regcache_write_pc): New.
13999
14000 * tracepoint.c: New.
14001
14002 * Makefile.in (OBS): Add tracepoint.o.
14003 (tracepoint.o): New rule.
14004
14005 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
14006
14007 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
14008 (i386-mmx.o): New.
14009 (i386-mmx.c): Likewise.
14010 (i386-mmx-linux.o): Likewise.
14011 (i386-mmx-linux.c): Likewise.
14012
14013 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
14014 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
14015 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
14016 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
14017
14018 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
14019 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
14020 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
14021
14022 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
14023
14024 * Makefile.in (clean): Updated.
14025 (i386-avx.o): New.
14026 (i386-avx.c): Likewise.
14027 (i386-avx-linux.o): Likewise.
14028 (i386-avx-linux.c): Likewise.
14029 (amd64-avx.o): Likewise.
14030 (amd64-avx.c): Likewise.
14031 (amd64-avx-linux.o): Likewise.
14032 (amd64-avx-linux.c): Likewise.
14033
14034 * configure.srv (srv_i386_regobj): Add i386-avx.o.
14035 (srv_i386_linux_regobj): Add i386-avx-linux.o.
14036 (srv_amd64_regobj): Add amd64-avx.o.
14037 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
14038 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
14039 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
14040 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
14041 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
14042 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
14043 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
14044
14045 * i387-fp.c: Include "i386-xstate.h".
14046 (i387_xsave): New.
14047 (i387_cache_to_xsave): Likewise.
14048 (i387_xsave_to_cache): Likewise.
14049 (x86_xcr0): Likewise.
14050
14051 * i387-fp.h (i387_cache_to_xsave): Likewise.
14052 (i387_xsave_to_cache): Likewise.
14053 (x86_xcr0): Likewise.
14054
14055 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
14056 * linux-crisv32-low.c (target_regsets): Likewise.
14057 * linux-m68k-low.c (target_regsets): Likewise.
14058 * linux-mips-low.c (target_regsets): Likewise.
14059 * linux-ppc-low.c (target_regsets): Likewise.
14060 * linux-s390-low.c (target_regsets): Likewise.
14061 * linux-sh-low.c (target_regsets): Likewise.
14062 * linux-sparc-low.c (target_regsets): Likewise.
14063 * linux-xtensa-low.c (target_regsets): Likewise.
14064
14065 * linux-low.c: Include <sys/uio.h>.
14066 (regsets_fetch_inferior_registers): Support nt_type.
14067 (regsets_store_inferior_registers): Likewise.
14068 (linux_process_qsupported): New.
14069 (linux_target_ops): Add linux_process_qsupported.
14070
14071 * linux-low.h (regset_info): Add nt_type.
14072 (linux_target_ops): Add process_qsupported.
14073
14074 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
14075 and <sys/uio.h>.
14076 (init_registers_i386_avx_linux): New.
14077 (init_registers_amd64_avx_linux): Likewise.
14078 (xmltarget_i386_linux_no_xml): Likewise.
14079 (xmltarget_amd64_linux_no_xml): Likewise.
14080 (PTRACE_GETREGSET): Likewise.
14081 (PTRACE_SETREGSET): Likewise.
14082 (x86_fill_xstateregset): Likewise.
14083 (x86_store_xstateregset): Likewise.
14084 (use_xml): Likewise.
14085 (x86_linux_update_xmltarget): Likewise.
14086 (x86_linux_process_qsupported): Likewise.
14087 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
14088 (x86_arch_setup): Don't call init_registers_amd64_linux nor
14089 init_registers_i386_linux here. Call
14090 x86_linux_update_xmltarget.
14091 (the_low_target): Add x86_linux_process_qsupported.
14092
14093 * server.c (handle_query): Call target_process_qsupported.
14094
14095 * target.h (target_ops): Add process_qsupported.
14096 (target_process_qsupported): New.
14097
14098 2010-04-03 Pedro Alves <pedro@codesourcery.com>
14099
14100 * inferiors.c (add_thread): Set last_status kind to
14101 TARGET_WAITKIND_IGNORE.
14102 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
14103 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
14104 (linux_wait_1): Move `thread' local definition to block that uses
14105 it. Don't NULL initialize `event_child'.
14106 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
14107 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
14108 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
14109
14110 2010-04-01 Pedro Alves <pedro@codesourcery.com>
14111
14112 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
14113 an extended waitstatus, or by a watchpoint.
14114 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
14115 thread was stepping or has been stopped by a watchpoint.
14116
14117 2010-04-01 Pedro Alves <pedro@codesourcery.com>
14118
14119 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
14120 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
14121 of another, then delete the previous, and validate all
14122 breakpoints.
14123 (validate_inserted_breakpoint): New.
14124 (delete_disabled_breakpoints): New.
14125 (validate_breakpoints): New.
14126 (check_mem_read): Validate breakpoints before trusting their
14127 shadow. Delete disabled breakpoints.
14128 (check_mem_write): Validate breakpoints before trusting they
14129 should be inserted. Delete disabled breakpoints.
14130 * mem-break.h (validate_breakpoints):
14131 * server.c (handle_query): Validate breakpoints when we see a
14132 qSymbol query.
14133
14134 2010-04-01 Pedro Alves <pedro@codesourcery.com>
14135
14136 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
14137 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
14138 if we could tell there's a GDB breakpoint at stop_pc.
14139 (need_step_over_p): Don't do a step over if we find a GDB
14140 breakpoint at the resume PC.
14141
14142 * mem-break.c (struct raw_breakpoint): New.
14143 (enum bkpt_type): New type `gdb_breakpoint'.
14144 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
14145 fields. New field `raw'.
14146 (find_raw_breakpoint_at): New.
14147 (set_raw_breakpoint_at): Handle refcounting. Create a raw
14148 breakpoint instead.
14149 (set_breakpoint_at): Adjust.
14150 (delete_raw_breakpoint): New.
14151 (release_breakpoint): New.
14152 (delete_breakpoint): Rename to...
14153 (delete_breakpoint_1): ... this. Add proc parameter. Use
14154 release_breakpoint. Return ENOENT.
14155 (delete_breakpoint): Reimplement.
14156 (find_breakpoint_at): Delete.
14157 (find_gdb_breakpoint_at): New.
14158 (delete_breakpoint_at): Delete.
14159 (set_gdb_breakpoint_at): New.
14160 (delete_gdb_breakpoint_at): New.
14161 (gdb_breakpoint_here): New.
14162 (set_reinsert_breakpoint): Use release_breakpoint.
14163 (uninsert_breakpoint): Rename to ...
14164 (uninsert_raw_breakpoint): ... this.
14165 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
14166 (reinsert_raw_breakpoint): Change parameter type to
14167 raw_breakpoint.
14168 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
14169 instead.
14170 (check_breakpoints): Adjust. Use release_breakpoint.
14171 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
14172 (breakpoint_inserted_here): Ditto.
14173 (check_mem_read): Adjust to iterate over raw breakpoints instead.
14174 Don't trust the breakpoint's shadow if it is not inserted.
14175 (check_mem_write): Adjust to iterate over raw breakpoints instead.
14176 (delete_all_breakpoints): Adjust.
14177 (free_all_breakpoints): Mark all breakpoints as uninserted, and
14178 use delete_breakpoint_1.
14179
14180 * mem-break.h (breakpoints_supported): Delete declaration.
14181 (set_gdb_breakpoint_at): Declare.
14182 (gdb_breakpoint_here): Declare.
14183 (delete_breakpoint_at): Delete.
14184 (delete_gdb_breakpoint_at): Declare.
14185
14186 * server.h (struct raw_breakpoint): Forward declare.
14187 (struct process_info): New field `raw_breakpoints'.
14188
14189 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
14190 breakpoints.
14191
14192 2010-03-24 Pedro Alves <pedro@codesourcery.com>
14193
14194 * linux-low.c (status_pending_p_callback): Fix comment.
14195 (linux_wait_for_event_1): Move most of the internal breakpoint
14196 handling from here...
14197 (linux_wait_1): ... to here.
14198 (count_events_callback): New.
14199 (select_singlestep_lwp_callback): New.
14200 (select_event_lwp_callback): New.
14201 (cancel_breakpoints_callback): New.
14202 (select_event_lwp): New.
14203 (linux_wait_1): Simplify internal breakpoint handling. Give equal
14204 priority to all LWPs that have had events that should be reported
14205 to the client. Cancel breakpoints when about to reporting the
14206 event to the client, not while stopping lwps. No longer cancel
14207 finished single-steps here.
14208 (cancel_finished_single_step): Delete.
14209 (cancel_finished_single_steps): Delete.
14210
14211 2010-03-24 Pedro Alves <pedro@codesourcery.com>
14212
14213 * mem-break.c (enum bkpt_type): New.
14214 (struct breakpoint): New field `type'.
14215 (set_breakpoint_at): Change return type to struct breakpoint
14216 pointer. Set type to `other_breakpoint' by default.
14217 (delete_breakpoint): Rewrite, supporting more than one breakpoint
14218 in the breakpoint list.
14219 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
14220 (reinsert_breakpoint): Rename to ...
14221 (reinsert_raw_breakpoint): ... this.
14222 (reinsert_breakpoints_at): Adjust.
14223 * mem-break.h (struct breakpoint): Declare.
14224 (set_breakpoint_at): Change return type to struct breakpoint
14225 pointer.
14226
14227 2010-03-24 Pedro Alves <pedro@codesourcery.com>
14228
14229 * server.c (handle_query): Assign, not compare.
14230
14231 2010-03-24 Pedro Alves <pedro@codesourcery.com>
14232
14233 Teach linux gdbserver to step-over-breakpoints.
14234
14235 * linux-low.c (can_hardware_single_step): New.
14236 (supports_breakpoints): New.
14237 (handle_extended_wait): If stopping threads, read the stop pc of
14238 the new cloned LWP.
14239 (get_pc): New.
14240 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
14241 low target doesn't support retrieving the PC.
14242 (add_lwp): Set last_resume_kind to resume_continue.
14243 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
14244 (linux_attach): Don't clear stop_expected. Set the lwp's
14245 last_resume_kind to resume_stop.
14246 (linux_detach_one_lwp): Don't check for removed breakpoints.
14247 (check_removed_breakpoint): Delete.
14248 (status_pending_p): Rename to ...
14249 (status_pending_p_callback): ... this. Don't check for removed
14250 breakpoints. Don't consider threads that are stopped from GDB's
14251 perspective.
14252 (linux_wait_for_lwp): Always read the stop_pc here.
14253 (cancel_breakpoint): New.
14254 (step_over_bkpt): New global.
14255 (linux_wait_for_event_1): Implement stepping over breakpoints.
14256 (gdb_wants_lwp_stopped): New.
14257 (gdb_wants_all_stopped): New.
14258 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
14259 single-step traps here. Store the thread's last reported target
14260 wait status.
14261 (send_sigstop): Don't clear stop_expected. Always set it,
14262 instead.
14263 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
14264 (cancel_finished_single_step): New.
14265 (cancel_finished_single_steps): New.
14266 (wait_for_sigstop): Don't cancel finished single-step traps here.
14267 (linux_resume_one_lwp): Don't check for removed breakpoints.
14268 Don't set `step' on non-hardware step archs.
14269 (linux_set_resume_request): Ignore resume_stop requests if already
14270 stopping or stopped. Set the lwp's last_resume_kind.
14271 (resume_status_pending_p): Don't check for removed breakpoints.
14272 (need_step_over_p): New.
14273 (start_step_over): New.
14274 (finish_step_over): New.
14275 (linux_resume_one_thread): Always queue a sigstop for resume_stop
14276 requests. Clear the thread's last reported target waitstatus.
14277 Don't use the `suspended' flag. Don't consider pending breakpoints.
14278 (linux_resume): Start a step-over if necessary.
14279 (proceed_one_lwp): New.
14280 (proceed_all_lwps): New.
14281 (unstop_all_lwps): New.
14282 * linux-low.h (struct lwp_info): Rewrite comment for the
14283 `suspended' flag. Add the `stop_pc' field. Delete the
14284 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
14285 Add `'last_resume_kind' and `need_step_over' fields.
14286 * inferiors.c (struct thread_info): Delete, moved elsewhere.
14287 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
14288 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
14289 (set_raw_breakpoint_at): New.
14290 (set_breakpoint_at): Rewrite to use it.
14291 (reinsert_breakpoint_handler): Delete.
14292 (set_reinsert_breakpoint): New.
14293 (reinsert_breakpoint_by_bp): Delete.
14294 (delete_reinsert_breakpoints): New.
14295 (uninsert_breakpoint): Rewrite.
14296 (uninsert_breakpoints_at): New.
14297 (reinsert_breakpoint): Rewrite.
14298 (reinsert_breakpoints_at): New.
14299 (check_breakpoints): Rewrite.
14300 (breakpoint_here): New.
14301 (breakpoint_inserted_here): New.
14302 (check_mem_read): Adjust.
14303 * mem-break.h (breakpoints_supported, breakpoint_here)
14304 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
14305 (reinsert_breakpoint_by_bp): Delete declaration.
14306 (delete_reinsert_breakpoints): Declare.
14307 (reinsert_breakpoint): Delete declaration.
14308 (reinsert_breakpoints_at): Declare.
14309 (uninsert_breakpoint): Delete declaration.
14310 (uninsert_breakpoints_at): Declare.
14311 (check_breakpoints): Adjust prototype.
14312 * server.h: Adjust include order.
14313 (struct thread_info): Declare here. Add a `last_status' field.
14314
14315 2010-03-23 Michael Snyder <msnyder@vmware.com>
14316
14317 * server.c (crc32): New function.
14318 (handle_query): Add handling for 'qCRC:' request.
14319
14320 2010-03-23 Pedro Alves <pedro@codesourcery.com>
14321
14322 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
14323 lwp had been stopped by a watchpoint.
14324
14325 2010-03-16 Pedro Alves <pedro@codesourcery.com>
14326
14327 * server.h (internal_error): Declare.
14328 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
14329 * utils.c (internal_error): New function.
14330
14331 2010-03-15 Andreas Schwab <schwab@redhat.com>
14332
14333 * configure.srv: Fix typo setting srv_regobj.
14334
14335 2010-03-15 Pedro Alves <pedro@codesourcery.com>
14336
14337 * linux-low.c (fetch_register): Avoid passing a non string literal
14338 format to `error'.
14339 (usr_store_inferior_registers): Ditto.
14340
14341 2010-03-14 Pedro Alves <pedro@codesourcery.com>
14342
14343 * linux-low.c (linux_write_memory): Bail out early if peeking
14344 memory failed.
14345
14346 2010-03-14 Pedro Alves <pedro@codesourcery.com>
14347
14348 * linux-low.h (struct lwp_info): New fields
14349 `stopped_by_watchpoint' and `stopped_data_address'.
14350 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
14351 here, and cache them in the lwp object.
14352 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
14353 directly.
14354 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
14355 field.
14356 (linux_stopped_by_watchpoint): Rewrite.
14357 (linux_stopped_data_address): Rewrite.
14358
14359 2010-03-06 Simo Melenius <simo.melenius@iki.fi>
14360
14361 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
14362 switching the current inferior, not before.
14363
14364 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
14365
14366 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
14367 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
14368 i386-linux.c and amd64-linux.c.
14369 (reg-i386.o): Removed.
14370 (reg-i386.c): Likewise.
14371 (reg-i386-linux.o): Likewise.
14372 (reg-i386-linux.c): Likewise.
14373 (reg-x86-64.o): Likewise.
14374 (reg-x86-64.c): Likewise.
14375 (reg-x86-64-linux.o): Likewise.
14376 (reg-x86-64-linux.c): Likewise.
14377 (i386.o): New.
14378 (i386.c): Likewise.
14379 (i386-linux.o): Likewise.
14380 (i386-linux.c): Likewise.
14381 (amd64.o): Likewise.
14382 (amd64.c): Likewise.
14383 (amd64-linux.o): Likewise.
14384 (amd64-linux.c): Likewise.
14385
14386 * configure.srv (srv_i386_regobj): New.
14387 (srv_i386_linux_regobj): Likewise.
14388 (srv_amd64_regobj): Likewise.
14389 (srv_amd64_linux_regobj): Likewise.
14390 (srv_i386_32bit_xmlfiles): Likewise.
14391 (srv_i386_64bit_xmlfiles): Likewise.
14392 (srv_i386_xmlfiles): Likewise.
14393 (srv_amd64_xmlfiles): Likewise.
14394 (srv_i386_linux_xmlfiles): Likewise.
14395 (srv_amd64_linux_xmlfiles): Likewise.
14396 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
14397 srv_xmlfiles to $srv_i386_xmlfiles.
14398 (i[34567]86-*-mingw32ce*): Likewise.
14399 (i[34567]86-*-mingw*): Likewise.
14400 (i[34567]86-*-nto*): Likewise.
14401 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
14402 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
14403 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
14404 (x86_64-*-linux*): Likewise.
14405
14406 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
14407 (init_registers_amd64_linux): New.
14408 (x86_arch_setup): Replace init_registers_x86_64_linux with
14409 init_registers_amd64_linux.
14410
14411 2010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
14412
14413 * configure.ac: Check for libdl. If it is not available link against
14414 static libthread_db.
14415 * configure: Regenerate.
14416
14417 2010-02-22 Pedro Alves <pedro@codesourcery.com>
14418
14419 PR9605
14420
14421 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
14422 handing a read watchpoint.
14423 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
14424
14425 2010-02-12 Doug Evans <dje@google.com>
14426
14427 * linux-low.c (linux_supports_tracefork_flag): Document.
14428 (linux_look_up_symbols): Add comment.
14429
14430 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
14431
14432 * regcache.c (supply_register): Clear regcache if buf is NULL.
14433
14434 2010-02-02 Nicolas Roche <roche@sourceware.org>
14435 Joel Brobecker <brobecker@adacore.com>
14436
14437 * inferiors.c (find_inferior): Add function documentation.
14438 (unloaded_dll): Handle the case where the unloaded dll has not
14439 been previously registered in the dll list.
14440
14441 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
14442
14443 * linux-arm-low.c (thumb_breakpoint_len): Delete.
14444 (thumb2_breakpoint): New.
14445 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
14446
14447 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
14448
14449 * linux-low.c (get_stop_pc): Check for SIGTRAP.
14450 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
14451 breakpoints.
14452
14453 2010-01-21 Pedro Alves <pedro@codesourcery.com>
14454
14455 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
14456
14457 2010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
14458
14459 * linux-s390-low.c (s390_collect_ptrace_register)
14460 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
14461
14462 2010-01-21 Doug Evans <dje@google.com>
14463
14464 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
14465 (PTRACE_ARG4_TYPE): New macro.
14466 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
14467 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
14468 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
14469 (usr_store_inferior_registers): Ditto.
14470 (linux_read_memory, linux_write_memory): Ditto.
14471 (linux_test_for_tracefork): Ditto.
14472
14473 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
14474 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
14475
14476 2010-01-21 Pedro Alves <pedro@codesourcery.com>
14477
14478 * proc-service.c (ps_lgetregs): Don't refetch registers from the
14479 target.
14480
14481 2010-01-21 Pedro Alves <pedro@codesourcery.com>
14482
14483 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
14484 prototype to take a regcache. Adjust.
14485
14486 2010-01-20 Pedro Alves <pedro@codesourcery.com>
14487
14488 * regcache.h (struct thread_info): Forward declare.
14489 (struct regcache): New.
14490 (new_register_cache): Adjust prototype.
14491 (get_thread_regcache): Declare.
14492 (free_register_cache): Adjust prototype.
14493 (registers_to_string, registers_from_string): Ditto.
14494 (supply_register, supply_register_by_name, collect_register)
14495 (collect_register_as_string, collect_register_by_name): Ditto.
14496 * regcache.c (struct inferior_regcache_data): Delete.
14497 (get_regcache): Rename to ...
14498 (get_thread_regcache): ... this. Adjust. Switch inferior before
14499 fetching registers.
14500 (regcache_invalidate_one): Adjust.
14501 (regcache_invalidate): Fix prototype.
14502 (new_register_cache): Return the new register cache.
14503 (free_register_cache): Change prototype.
14504 (realloc_register_cache): Adjust.
14505 (registers_to_string): Change prototype to take a regcache. Adjust.
14506 (registers_from_string): Ditto.
14507 (register_data): Ditto.
14508 (supply_register): Ditto.
14509 (supply_register_by_name): Ditto.
14510 (collect_register): Ditto.
14511 (collect_register_as_string): Ditto.
14512 (collect_register_by_name): Ditto.
14513 * server.c (process_serial_event): Adjust.
14514 * linux-low.h (regset_fill_func, regset_store_func): Change
14515 prototype.
14516 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
14517 Change prototype.
14518 * linux-low.c (get_stop_pc): Adjust.
14519 (check_removed_breakpoint): Adjust.
14520 (linux_wait_for_event): Adjust.
14521 (linux_resume_one_lwp): Adjust.
14522 (fetch_register): Add regcache parameter. Adjust.
14523 (usr_store_inferior_registers): Ditto.
14524 (regsets_fetch_inferior_registers): Ditto.
14525 (regsets_store_inferior_registers): Ditto.
14526 (linux_fetch_registers, linux_store_registers): Ditto.
14527 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
14528 regcache. Adjust.
14529 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
14530 Ditto.
14531 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
14532 prototype to take a regcache.
14533 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
14534 * remote-utils.c (convert_ascii_to_int, outreg)
14535 (prepare_resume_reply): Change prototype to take a regcache.
14536 Adjust.
14537 * target.h (struct target_ops) <fetch_registers, store_registers>:
14538 Change prototype to take a regcache.
14539 (fetch_inferior_registers, store_inferior_registers): Change
14540 prototype to take a regcache. Adjust.
14541 * proc-service.c (ps_lgetregs): Adjust.
14542 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
14543 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
14544 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
14545 take a regcache. Adjust.
14546 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
14547 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
14548 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
14549 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
14550 * linux-cris-low.c (cris_get_pc, cris_set_pc)
14551 (cris_cannot_fetch_register):
14552 (cris_breakpoint_at): Change prototype to take a regcache.
14553 Adjust.
14554 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
14555 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
14556 to take a regcache. Adjust.
14557 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
14558 Adjust.
14559 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
14560 take a regcache. Adjust.
14561 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
14562 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
14563 (m68k_set_pc): Change prototype to take a regcache. Adjust.
14564 * linux-mips-low.c (mips_get_pc):
14565 (mips_set_pc): Change prototype to take a regcache. Adjust.
14566 (mips_reinsert_addr): Adjust.
14567 (mips_collect_register): Change prototype to take a regcache.
14568 Adjust.
14569 (mips_supply_register):
14570 (mips_collect_register_32bit, mips_supply_register_32bit)
14571 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
14572 (mips_store_fpregset): Ditto.
14573 * linux-ppc-low.c (ppc_supply_ptrace_register)
14574 (ppc_supply_ptrace_register): Ditto.
14575 (parse_spufs_run): Adjust.
14576 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
14577 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
14578 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
14579 take a regcache. Adjust.
14580 * linux-s390-low.c (s390_collect_ptrace_register)
14581 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
14582 (s390_set_pc): Change prototype to take a regcache. Adjust.
14583 (s390_arch_setup): Adjust.
14584 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
14585 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
14586 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
14587 (sparc_fill_gregset, sparc_store_gregset_from_stack)
14588 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
14589 regcache. Adjust.
14590 (sparc_breakpoint_at): Adjust.
14591 * linux-xtensa-low.c (xtensa_fill_gregset):
14592 (xtensa_store_gregset):
14593 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
14594 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
14595 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
14596 prototype to take a regcache. Adjust.
14597 * win32-arm-low.c (arm_fetch_inferior_register)
14598 (arm_store_inferior_register): Change prototype to take a
14599 regcache. Adjust.
14600 * win32-i386-low.c (i386_fetch_inferior_register)
14601 (i386_store_inferior_register): Change prototype to take a
14602 regcache. Adjust.
14603 * win32-low.c (child_fetch_inferior_registers)
14604 (child_store_inferior_registers): Change prototype to take a
14605 regcache. Adjust.
14606 (win32_wait): Adjust.
14607 (win32_fetch_inferior_registers): Change prototype to take a
14608 regcache. Adjust.
14609 (win32_store_inferior_registers): Adjust.
14610 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
14611 store_inferior_register>: Change prototype to take a regcache.
14612
14613 2010-01-20 Doug Evans <dje@google.com>
14614
14615 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
14616 #ifdef.
14617 (linux_wait_for_event1, linux_init_signals): Ditto.
14618 (W_STOPCODE): Provide definition if missing.
14619
14620 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
14621
14622 * linux-low.c (linux_core_of_thread): New.
14623 (compare_ints, show_process, list_threads): New.
14624 (linux_qxfer_osdata): Report threads and cores.
14625 (linux_target_op): Register linux_core_of_thread.
14626 * remote-utils.c (prepare_resume_reply): Report the core.
14627 (buffer_xml_printf): Support %d specifier.
14628 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
14629 New.
14630 (handle_query): Handle qXfer:threads. Announce availability
14631 thereof.
14632 * target.h (struct target_ops): New field core_of_thread.
14633
14634 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
14635
14636 * Makefile.in (clean): Remove new generated files.
14637 (reg-s390.o, reg-s390.c): Remove rules.
14638 (reg-s390x.o, reg-s390x.c): Likewise.
14639 (s390-linux32.o, s390-linux32.c): Add rules.
14640 (s390-linux64.o, s390-linux64.c): Likewise.
14641 (s390x-linux64.o, s390x-linux64.c): Likewise.
14642 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
14643 * linux-s390-low.c: Include <elf.h>.
14644 (HWCAP_S390_HIGH_GPRS): Define if undefined.
14645 (init_registers_s390): Remove prototype.
14646 (init_registers_s390x): Likewise.
14647 (init_registers_s390_linux32): Add prototype.
14648 (init_registers_s390_linux64): Likewise.
14649 (init_registers_s390x_linux64): Likewise.
14650 (s390_num_regs_3264): New define.
14651 (s390_regmap_3264): New global variable.
14652 (s390_cannot_fetch_register): Remove obsolete check.
14653 (s390_cannot_store_register): Likewise.
14654 (s390_collect_ptrace_register): Handle upper/lower register halves.
14655 (s390_supply_ptrace_register): Likewise.
14656 (s390_fill_gregset): Update to register number changes.
14657 (s390_get_hwcap): New routine.
14658 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
14659 Install appropriate regmap and register set.
14660
14661 2010-01-01 Joel Brobecker <brobecker@adacore.com>
14662
14663 * server.c (gdbserver_version): Update copyright year to 2010.
14664 * gdbreplay.c (gdbreplay_version): Likewise.
14665
14666 2009-12-28 Doug Evans <dje@google.com>
14667
14668 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
14669 elf/external.h. Include <elf.h> instead but only if necessary.
14670
14671 2009-12-28 Pedro Alves <pedro@codesourcery.com>
14672
14673 * linux-low.c (linux_remove_process): Remove `detaching'
14674 parameter. Don't release/detach from thread_db here.
14675 (linux_kill): Release/detach from thread_db here, ...
14676 (linux_detach): ... and here, before actually detaching.
14677 (linux_wait_1): ... and here, when a process exits.
14678 * thread-db.c (any_thread_of): New.
14679 (thread_db_free): Switch the current inferior to a thread of the
14680 passed in process.
14681
14682 2009-12-21 Doug Evans <dje@google.com>
14683
14684 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
14685
14686 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
14687 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
14688 warning ifndef __NR_tkill. Move setting of errno there too.
14689 Delete unnecessary resetting of errno after syscall.
14690 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
14691
14692 * configure.ac: Check for dladdr.
14693 * config.in: Regenerate.
14694 * configure: Regenerate.
14695 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
14696 (try_thread_db_load): Update.
14697
14698 * linux-low.c (my_waitpid): Delete unnecessary prototype.
14699
14700 2009-12-18 Doug Evans <dje@google.com>
14701
14702 * event-loop.c: Include unistd.h if it exists.
14703
14704 * linux-low.c (my_waitpid): Move definition away from being in
14705 between linux_tracefork_child/linux_test_for_tracefork.
14706
14707 * gdb_proc_service.h (psaddr_t): Fix type.
14708 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
14709 signature to match glibc.
14710
14711 2009-12-16 Doug Evans <dje@google.com>
14712
14713 * linux-low.c (linux_read_memory): Fix argument to read.
14714
14715 2009-11-26 Pedro Alves <pedro@codesourcery.com>
14716
14717 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
14718 events, don't leave current_inferior pointing at null.
14719
14720 2009-11-26 Pedro Alves <pedro@codesourcery.com>
14721
14722 * win32-low.c (LOG): Delete.
14723 (OUTMSG): Output to stderr.
14724 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
14725 on compile time LOG macro.
14726 (win32_wait): Fix debug output.
14727
14728 2009-11-26 Pedro Alves <pedro@codesourcery.com>
14729
14730 * win32-low.c (win32_add_one_solib): If the dll name is
14731 "ntdll.dll", prepend the system directory to the dll path.
14732
14733 2009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
14734
14735 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
14736
14737 2009-11-17 Nathan Sidwell <nathan@codesourcery.com>
14738 Vladimir Prus <vladimir@codesourcery.com>
14739
14740 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
14741 * configure.ac: Check for __mcoldfire__ and set
14742 gdb_cv_m68k_is_coldfire.
14743 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
14744 reg-cf.o and reg-m68k.o.
14745 * configure: Regenerated.
14746
14747 2009-11-16 Pedro Alves <pedro@codesourcery.com>
14748
14749 * linux-low.c (linux_remove_process): Add `detaching' parameter.
14750 Pass it to thread_db_free.
14751 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
14752 proper `detaching' argument to linux_remove_process.
14753 * linux-low.h (thread_db_free): Add `detaching' parameter.
14754 * thread-db.c (thread_db_init): Pass false as `detaching' argument
14755 to thread_db_free.
14756 (thread_db_free): Add `detaching' parameter. Only
14757 call td_ta_clear_event if detaching from process.
14758
14759 2009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
14760
14761 * thread-db.c (thread_db_free): Fix typo.
14762
14763 2009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
14764
14765 PR gdb/10838
14766 * thread-db.c (thread_db_free): Call td_ta_clear_event.
14767
14768 2009-11-03 Nathan Sidwell <nathan@codesourcery.com>
14769
14770 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
14771 with an i686 compiler.
14772 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
14773 needed.
14774 * configure: Rebuilt.
14775
14776 2009-10-29 Sandra Loosemore <sandra@codesourcery.com>
14777
14778 PR gdb/10783
14779
14780 * server.c (handle_search_memory_1): Correct read_addr initialization
14781 in loop for searching subsequent chunks.
14782
14783 2009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
14784
14785 * configure.ac: New --with-libthread-db option.
14786 * thread-db.c: Allow direct dependence on libthread_db.
14787 (thread_db_free): Adjust.
14788 * config.in: Regenerate.
14789 * configure: Likewise.
14790
14791 2009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
14792
14793 PR gdb/10757
14794 * thread-db.c (attach_thread): New function.
14795 (maybe_attach_thread): Return success/failure.
14796 (find_new_threads_callback): Adjust.
14797 (thread_db_find_new_threads): Loop until no new threads.
14798
14799 2009-10-13 Pedro Alves <pedro@codesourcery.com>
14800
14801 * proc-service.c (ps_lgetregs): Formatting.
14802
14803 2009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
14804
14805 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
14806 * configure.ac: Adjust.
14807 * linux-low.h (struct process_info_private): Move members to struct
14808 thread_db.
14809 (thread_db_free, thread_db_handle_monitor_command): New prototype.
14810 * linux-low.c (linux_remove_process): Adjust.
14811 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
14812 * server.c (handle_query): Move code ...
14813 (handle_monitor_command): ... here. New function.
14814 * target.h (struct target_ops): New member.
14815 * thread-db.c (struct thread_db): New.
14816 (libthread_db_search_path): New variable.
14817 (thread_db_create_event, thread_db_enable_reporting)
14818 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
14819 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
14820 (try_thread_db_load_1, dladdr_to_soname): New functions.
14821 (try_thread_db_load, thread_db_load_search): New functions.
14822 (thread_db_init): Search for libthread_db.
14823 (thread_db_free): New function.
14824 (thread_db_handle_monitor_command): Likewise.
14825 * config.in: Regenerate.
14826 * configure: Regenerate.
14827
14828 2009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
14829
14830 * spu-low.c (spu_kill): Wait for inferior to terminate.
14831 Call clear_inferiors.
14832 (spu_detach): Call clear_inferiors.
14833
14834 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14835
14836 * aclocal.m4: Regenerate.
14837 * config.in: Likewise.
14838 * configure: Likewise.
14839
14840 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
14841
14842 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
14843 (parse_spufs_run): New function.
14844 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
14845 (ppc_breakpoint_at): Handle SPU breakpoints.
14846
14847 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
14848
14849 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
14850 (SPUFS_MAGIC): Define.
14851 (spu_enumerate_spu_ids): New function.
14852 (linux_qxfer_spu): New function.
14853 (linux_target_ops): Install linux_qxfer_spu.
14854
14855 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
14856
14857 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
14858 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
14859 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
14860 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
14861 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
14862 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
14863 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
14864 (init_registers_powerpc_cell32l): Add prototype.
14865 (init_registers_powerpc_cell64l): Likewise.
14866 (ppc_arch_setup): Detect Cell/B.E. architecture.
14867
14868 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14869
14870 * Makefile.in (datarootdir): New variable.
14871
14872 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
14873
14874 * linux-low.c (linux_write_memory): Update debugging output.
14875 * Makefile.in (clean): Add new descriptions.
14876 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
14877 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
14878 * configure.srv: Add new files for arm*-*-linux*.
14879 * linux-arm-low.c: Add new declarations.
14880 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
14881 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
14882 (HWCAP_VFPv3D16): New.
14883 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
14884 instead of __IWMMXT__.
14885 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
14886 (arm_arch_setup): New.
14887 (target_regsets): Remove #ifdef. Add VFP regset.
14888 (the_low_target): Use arm_arch_setup.
14889
14890 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
14891
14892 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
14893 the main thread again.
14894
14895 2009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
14896
14897 Adding Neutrino gdbserver.
14898 * configure: Regenerated.
14899 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
14900 * configure.srv (i[34567]86-*-nto*): New target.
14901 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
14902 * remote-utils.c [__QNX__]: Include sys/iomgr.h
14903 (nto_comctrl) [__QNX__]: New function.
14904 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
14905
14906 2009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
14907
14908 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
14909 srv_tgtobj.
14910
14911 2009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
14912 Pedro Alves <pedro@codesourcery.com>
14913
14914 * win32-i386-low.c (i386_get_thread_context): Handle systems that
14915 don't support CONTEXT_EXTENDED_REGISTERS.
14916 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
14917 (the_low_target): Install them.
14918 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
14919 failing with ERROR_PIPE_NOT_CONNECTED.
14920
14921 2009-06-30 Doug Evans <dje@google.com>
14922 Pierre Muller <muller@ics.u-strasbg.fr>
14923
14924 Add h/w watchpoint support to x86-linux, win32-i386.
14925 * Makefile.in (SFILES): Add i386-low.c
14926 (i386_low_h): Define.
14927 (i386-low.o): Add dependencies.
14928 (linux-x86-low.o): Add i386-low.h dependency.
14929 (win32-i386-low.o): Ditto.
14930 * i386-low.c: New file.
14931 * i386-low.h: New file.
14932 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
14933 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
14934 * linux-low.c (linux_add_process): Initialize arch_private.
14935 (linux_remove_process): Free arch_private.
14936 (add_lwp): Initialize arch_private.
14937 (delete_lwp): Free arch_private.
14938 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
14939 provided.
14940 * linux-low.h (process_info_private): New member arch_private.
14941 (lwp_info): New member arch_private.
14942 (linux_target_ops): New members new_process, new_thread,
14943 prepare_to_resume.
14944 (ptid_of): New macro.
14945 * linux-x86-low.c: Include stddef.h, i386-low.h.
14946 (arch_process_info): New struct.
14947 (arch_lwp_info): New struct.
14948 (x86_linux_dr_get, x86_linux_dr_set): New functions.
14949 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
14950 (i386_dr_low_get_status): New function.
14951 (x86_insert_point, x86_remove_point): New functions.
14952 (x86_stopped_by_watchpoint): New function.
14953 (x86_stopped_data_address): New function.
14954 (x86_linux_new_process, x86_linux_new_thread): New functions.
14955 (x86_linux_prepare_to_resume): New function.
14956 (the_low_target): Add entries for insert_point, remove_point,
14957 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
14958 prepare_to_resume.
14959 * server.c (debug_hw_points): New global.
14960 (monitor_show_help): Document set debug-hw-points.
14961 (handle_query): Process "set debug-hw-points".
14962 * server.h (debug_hw_points): Declare.
14963 (paddress): Declare.
14964 * utils.c (NUMCELLS, CELLSIZE): New macros.
14965 (get_sell, xsnprintf, paddress): New functions.
14966 * win32-arm-low.c (the_low_target): Add entries for insert_point,
14967 remove_point, stopped_by_watchpoint, stopped_data_address.
14968 * win32-i386-low.c: Include i386-low.h.
14969 (debug_reg_state): Replaces dr.
14970 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
14971 (i386_dr_low_get_status): New function.
14972 (i386_insert_point, i386_remove_point): New functions.
14973 (i386_stopped_by_watchpoint): New function.
14974 (i386_stopped_data_address): New function.
14975 (i386_initial_stuff): Update.
14976 (get_thread_context,set_thread_context,i386_thread_added): Update.
14977 (the_low_target): Add entries for insert_point,
14978 remove_point, stopped_by_watchpoint, stopped_data_address.
14979 * win32-low.c (win32_insert_watchpoint): New function.
14980 (win32_remove_watchpoint): New function.
14981 (win32_stopped_by_watchpoint): New function.
14982 (win32_stopped_data_address): New function.
14983 (win32_target_ops): Add entries for insert_watchpoint,
14984 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
14985 * win32-low.h (win32_target_ops): New members insert_point,
14986 remove_point, stopped_by_watchpoint, stopped_data_address.
14987
14988 2009-06-25 Pedro Alves <pedro@codesourcery.com>
14989
14990 * server.c (process_serial_event): Re-return unsupported, not
14991 error, if the type isn't recognized. Re-allow supporting only
14992 insert or remove packets. Also call require_running for
14993 breakpoints. Add missing break statement to default case. Tidy.
14994 * target.h (struct target_ops): Rename insert_watchpoint to
14995 insert_point, and remove_watchpoint to remove_point.
14996
14997 * linux-low.h (struct linux_target_ops): Likewise.
14998 * linux-low.c (linux_insert_watchpoint): Rename to ...
14999 (linux_insert_point): ... this. Adjust.
15000 (linux_remove_watchpoint): Rename to ...
15001 (linux_remove_point): ... this. Adjust.
15002 (linux_target_ops): Adjust.
15003 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
15004 (cris_insert_point): ... this.
15005 (cris_remove_watchpoint): Rename to ...
15006 (cris_remove_point): ... this.
15007 (the_low_target): Adjust.
15008
15009 2009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
15010
15011 * server.c (handle_v_kill): Pass signal_pid to
15012 kill_inferior if multi_process is zero.
15013
15014 2009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
15015
15016 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
15017 * target.h (target_ops): Comment for *_watchpoint to make it clear
15018 the functions can get types '0' and '1'.
15019
15020 2009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
15021
15022 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
15023 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
15024 * regcache.c (get_regcache): Likewise.
15025 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
15026 * win32-low.c (child_fetch_inferior_registers): Remove check for
15027 regno 0.
15028
15029 2009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
15030 Pedro Alves <pedro@codesourcery.com>
15031
15032 * target.h (struct target_ops) <supports_multi_process>: New
15033 callback.
15034 (target_supports_multi_process): New.
15035 * server.c (handle_query): Even if GDB reports support, only
15036 enable multi-process if the target also supports it. Report
15037 multi-process support only if the target backend supports it.
15038 * linux-low.c (linux_supports_multi_process): New function.
15039 (linux_target_ops): Install it as target_supports_multi_process
15040 callback.
15041
15042 2009-05-24 Doug Evans <dje@google.com>
15043
15044 Global renaming of find_thread_pid to find_thread_ptid.
15045 * server.h (find_thread_ptid): Renamed from find_thread_pid.
15046 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
15047 All callers updated.
15048
15049 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
15050 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
15051 directly.
15052
15053 * linux-low.c (get_stop_pc): Print pc if debug_threads.
15054 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
15055 (linux_resume_one_lwp): Ditto.
15056
15057 2009-05-23 Doug Evans <dje@google.com>
15058
15059 * linux-low.c (linux_resume_one_lwp): Change type of first arg
15060 from struct inferior_list_entry * to struct lwp_info *.
15061 All callers updated.
15062
15063 2009-05-13 Doug Evans <dje@google.com>
15064
15065 * linux-x86-low.c: Don't include assert.h.
15066 (x86_siginfo_fixup): Use fatal, not assert.
15067 (x86_arch_setup): Fix comment.
15068
15069 2009-05-12 Doug Evans <dje@google.com>
15070
15071 Biarch support for i386/amd64 gdbserver.
15072 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
15073 Add linux-x86-low.c.
15074 (linux-i386-low.o, linux-x86-64-low.o): Delete.
15075 (linux-x86-low.o): Add.
15076 * linux-x86-64-low.c: Delete.
15077 * linux-i386-low.c: Delete.
15078 * linux-x86-low.c: New file.
15079 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
15080 linux-x86-low.o.
15081 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
15082 linux-x86-low.o.
15083 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
15084 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
15085 (linux_child_pid_to_exec_file): New function.
15086 (elf_64_header_p, elf_64_file_p): New functions.
15087 (siginfo_fixup): New function.
15088 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
15089 give target a chance to convert layout.
15090 * linux-low.h (linux_target_ops): New member siginfo_fixup.
15091 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
15092
15093 2009-05-07 Doug Evans <dje@google.com>
15094
15095 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
15096 (regsets_store_inferior_registers): Ditto.
15097
15098 2009-05-06 Pedro Alves <pedro@codesourcery.com>
15099
15100 PR server/10048
15101
15102 * linux-low.c (must_set_ptrace_flags): Delete.
15103 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
15104 of the global.
15105 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
15106 `lwp->must_set_ptrace_flags' instead.
15107 (linux_wait_for_event_1): Set ptrace options here.
15108 (linux_wait_1): ... not here.
15109
15110 2009-04-30 Doug Evans <dje@google.com>
15111
15112 * inferiors.c (started_inferior_callback): New function.
15113 (attached_inferior_callback): New function.
15114 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
15115 * server.c (print_started_pid, print_attached_pid): New functions.
15116 (detach_or_kill_for_exit): New function.
15117 (main): Call it instead of for_each_inferior (kill_inferior_callback).
15118 * server.h (have_started_inferiors_p): Declare.
15119 (have_attached_inferiors_p): Declare.
15120
15121 * inferiors.c (remove_process): Fix memory leak, free process.
15122 * linux-low.c (linux_remove_process): New function.
15123 (linux_kill): Call it instead of remove_process.
15124 (linux_detach, linux_wait_1): Ditto.
15125
15126 2009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
15127
15128 * configure.srv: Add x86 Windows CE target.
15129
15130 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
15131
15132 * inferiors.c (get_thread_process): Make global.
15133 * server.h (get_thread_process): Add prototype.
15134 * thread-db.c (find_one_thread): Use get_thread_process
15135 instead of current_process.
15136 (thread_db_get_tls_address): Do not crash if called when
15137 thread layer is not yet initialized.
15138
15139 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
15140
15141 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
15142 * spu-low.c (current_tid): Rename to ...
15143 (current_ptid): ... this.
15144 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
15145 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
15146 ptid_get_lwp (current_ptid) instead of current_tid.
15147 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
15148 instead of current_tid. Use find_process_pid to verify pid
15149 argument is valid. Pass proper argument to remove_process.
15150 (spu_thread_alive): Compare current_ptid instead of current_tid.
15151 (spu_resume): Likewise.
15152
15153 2009-04-02 Pedro Alves <pedro@codesourcery.com>
15154
15155 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
15156 variable.
15157
15158 2009-04-01 Pedro Alves <pedro@codesourcery.com>
15159
15160 Implement the multiprocess extensions, and add linux multiprocess
15161 support.
15162
15163 * server.h (ULONGEST): Declare.
15164 (struct ptid, ptid_t): New.
15165 (minus_one_ptid, null_ptid): Declare.
15166 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
15167 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
15168 (struct inferior_list_entry): Change `id' type from unsigned from
15169 to ptid_t.
15170 (struct sym_cache, struct breakpoint, struct
15171 process_info_private): Forward declare.
15172 (struct process_info): Declare.
15173 (current_process): Declare.
15174 (all_processes): Declare.
15175 (initialize_inferiors): Declare.
15176 (add_thread): Adjust to use ptid_t.
15177 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
15178 (add_process, remove_process, find_thread_pid): Declare.
15179 (find_inferior_id): Adjust to use ptid_t.
15180 (cont_thread, general_thread, step_thread): Change type to ptid_t.
15181 (multi_process): Declare.
15182 (push_event): Adjust to use ptid_t.
15183 (read_ptid, write_ptid): Declare.
15184 (prepare_resume_reply): Adjust to use ptid_t.
15185 (clear_symbol_cache): Declare.
15186 * inferiors.c (all_processes): New.
15187 (null_ptid, minus_one_ptid): New.
15188 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
15189 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
15190 (add_thread): Change unsigned long to ptid. Remove gdb_id
15191 parameter. Adjust.
15192 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
15193 (gdb_id_to_thread): Rename to ...
15194 (find_thread_pid): ... this. Change unsigned long to ptid.
15195 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
15196 (loaded_dll, pull_pid_from_list): Adjust.
15197 (add_process, remove_process, find_process_pid)
15198 (get_thread_process, current_process, initialize_inferiors): New.
15199 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
15200 (struct target_waitstatus) <related_pid>: Ditto.
15201 (struct target_ops) <kill, detach>: Add `pid' argument. Change
15202 return type to int.
15203 (struct target_ops) <join>: Add `pid' argument.
15204 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
15205 (struct target_ops) <wait>: Add `ptid' field. Change return type
15206 to ptid.
15207 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
15208 (mywait): Add `ptid' argument. Change return type to ptid_t.
15209 (target_pid_to_str): Declare.
15210 * target.c (set_desired_inferior): Adjust to use ptids.
15211 (mywait): Add new `ptid' argument. Adjust.
15212 (target_pid_to_str): New.
15213 * mem-break.h (free_all_breakpoints): Declare.
15214 * mem-break.c (breakpoints): Delelete.
15215 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
15216 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
15217 to use per-process breakpoint list.
15218 (free_all_breakpoints): New.
15219 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
15220 (symbol_cache, all_symbols_looked_up): Delete.
15221 (hexchars): New.
15222 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
15223 read_ptid): New.
15224 (prepare_resume_reply): Change ptid argument's type from unsigned
15225 long to ptid_t. Adjust. Implement W;process and X;process.
15226 (free_sym_cache, clear_symbol_cache): New.
15227 (look_up_one_symbol): Adjust to per-process symbol cache. *
15228 * server.c (cont_thread, general_thread, step_thread): Change type
15229 to ptid_t.
15230 (attached): Delete.
15231 (multi_process): New.
15232 (last_ptid): Change type to ptid_t.
15233 (struct vstop_notif) <ptid>: Change type to ptid_t.
15234 (queue_stop_reply, push_event): Change `ptid' argument's type to
15235 ptid_t.
15236 (discard_queued_stop_replies): Add `pid' argument.
15237 (start_inferior): Adjust to use ptids. Adjust to mywait interface
15238 changes. Don't reference the `attached' global.
15239 (attach_inferior): Adjust to mywait interface changes.
15240 (handle_query): Adjust to use ptids. Parse GDB's qSupported
15241 features. Handle and report "multiprocess+". Handle
15242 "qAttached:PID".
15243 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
15244 changes.
15245 (handle_v_kill): New.
15246 (handle_v_stopped): Adjust to use target_pid_to_str.
15247 (handle_v_requests): Allow multiple attaches and runs when
15248 multiprocess extensions are in effect. Handle "vKill".
15249 (myresume): Adjust to use ptids.
15250 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
15251 (handle_status): Adjust to discard_queued_stop_replies interface
15252 change.
15253 (first_thread_of, kill_inferior_callback)
15254 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
15255 (main): Call initialize_inferiors. Adjust to use ptids, killing
15256 and detaching from all inferiors. Handle multiprocess packet
15257 variants.
15258 * linux-low.h: Include gdb_proc_service.h.
15259 (struct process_info_private): New.
15260 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
15261 <lwpid_of>: Use ptid_get_lwp.
15262 (get_lwp_thread): Adjust.
15263 (struct lwp_info): Add `dead' member.
15264 (find_lwp_pid): Declare.
15265 * linux-low.c (thread_db_active): Delete.
15266 (new_inferior): Adjust comment.
15267 (inferior_pid): Delete.
15268 (linux_add_process): New.
15269 (handle_extended_wait): Adjust.
15270 (add_lwp): Change unsigned long to ptid.
15271 (linux_create_inferior): Add process to processes table. Adjust
15272 to use ptids. Don't set new_inferior here.
15273 (linux_attach_lwp): Rename to ...
15274 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
15275 it. Adjust to use ptids.
15276 (linux_attach_lwp): New.
15277 (linux_attach): Add process to processes table. Don't set
15278 new_inferior here.
15279 (struct counter): New.
15280 (second_thread_of_pid_p, last_thread_of_process_p): New.
15281 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
15282 multiple processes.
15283 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
15284 processes. Remove process from process table.
15285 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
15286 to multiple processes.
15287 (any_thread_of): New.
15288 (linux_detach): Add `pid' argument, and handle it. Remove process
15289 from processes table.
15290 (linux_join): Add `pid' argument. Handle it.
15291 (linux_thread_alive): Change unsighed long argument to ptid_t.
15292 Consider dead lwps as not being alive.
15293 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
15294 threads we're not interested in.
15295 (same_lwp, find_lwp_pid): New.
15296 (linux_wait_for_lwp): Change `pid' argument's type from int to
15297 ptid_t. Adjust.
15298 (linux_wait_for_event): Rename to ...
15299 (linux_wait_for_event_1): ... this. Change `pid' argument's type
15300 from int to ptid_t. Adjust.
15301 (linux_wait_for_event): New.
15302 (linux_wait_1): Add `ptid' argument. Change return type to
15303 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
15304 that exit from the process table.
15305 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
15306 Adjust.
15307 (mark_lwp_dead): New.
15308 (wait_for_sigstop): Adjust to use ptids. If a process exits while
15309 stopping all threads, mark its main lwp as dead.
15310 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
15311 ptids.
15312 (fetch_register, usr_store_inferior_registers)
15313 (regsets_fetch_inferior_registers)
15314 (regsets_store_inferior_registers, linux_read_memory)
15315 (linux_write_memory): Inline `inferior_pid'.
15316 (linux_look_up_symbols): Adjust to use per-process
15317 `thread_db_active'.
15318 (linux_request_interrupt): Adjust to use ptids.
15319 (linux_read_auxv): Inline `inferior_pid'.
15320 (initialize_low): Don't reference thread_db_active.
15321 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
15322 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
15323 (ps_getpid): Return the pid of the current inferior.
15324 * thread-db.c (proc_handle, thread_agent): Delete.
15325 (thread_db_create_event, thread_db_enable_reporting): Adjust to
15326 per-process data.
15327 (find_one_thread): Change argument type to ptid_t. Adjust to
15328 per-process data.
15329 (maybe_attach_thread): Adjust to per-process data and ptids.
15330 (thread_db_find_new_threads): Ditto.
15331 (thread_db_init): Ditto.
15332 * spu-low.c (spu_create_inferior, spu_attach): Add process to
15333 processes table. Adjust to use ptids.
15334 (spu_kill, spu_detach): Adjust interface. Remove process from
15335 processes table.
15336 (spu_join, spu_thread_alive): Adjust interface.
15337 (spu_wait): Adjust interface. Remove process from processes
15338 table. Adjust to use ptids.
15339 * win32-low.c (current_inferior_tid): Delete.
15340 (current_inferior_ptid): New.
15341 (debug_event_ptid): New.
15342 (thread_rec): Take a ptid. Adjust.
15343 (child_add_thread): Add `pid' argument. Adjust to use ptids.
15344 (child_delete_thread): Ditto.
15345 (do_initial_child_stuff): Add `attached' argument. Add process to
15346 processes table.
15347 (child_fetch_inferior_registers, child_store_inferior_registers):
15348 Adjust.
15349 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
15350 (win32_attach): Pass 1 to do_initial_child_stuff.
15351 (win32_kill): Adjust interface. Remove process from processes
15352 table.
15353 (win32_detach): Ditto.
15354 (win32_join): Adjust interface.
15355 (win32_thread_alive): Take a ptid.
15356 (win32_resume): Adjust to use ptids.
15357 (get_child_debug_event): Ditto.
15358 (win32_wait): Adjust interface. Remove exiting process from
15359 processes table.
15360
15361 2009-04-01 Pedro Alves <pedro@codesourcery.com>
15362
15363 Non-stop mode support.
15364
15365 * server.h (non_stop): Declare.
15366 (gdb_client_data, handler_func): Declare.
15367 (delete_file_handler, add_file_handler, start_event_loop):
15368 Declare.
15369 (handle_serial_event, handle_target_event, push_event)
15370 (putpkt_notif): Declare.
15371 * target.h (enum resume_kind): New.
15372 (struct thread_resume): Replace `step' field by `kind' field.
15373 (TARGET_WNOHANG): Define.
15374 (struct target_ops) <wait>: Add `options' argument.
15375 <supports_non_stop, async, start_non_stop>: New fields.
15376 (target_supports_non_stop, target_async): New.
15377 (start_non_stop): Declare.
15378 (mywait): Add `options' argument.
15379 * target.c (mywait): Add `options' argument. Print child exit
15380 notifications here.
15381 (start_non_stop): New.
15382 * server.c (non_stop, own_buf, mem_buf): New globals.
15383 (struct vstop_notif): New.
15384 (notif_queue): New global.
15385 (queue_stop_reply, push_event, discard_queued_stop_replies)
15386 (send_next_stop_reply): New.
15387 (start_inferior): Adjust to use resume_kind. Adjust to mywait
15388 interface changes.
15389 (attach_inferior): In non-stop mode, don't wait for the target
15390 here.
15391 (handle_general_set): Handle QNonStop.
15392 (handle_query): When handling qC, return the current general
15393 thread, instead of the first thread of the list.
15394 (handle_query): If the backend supports non-stop mode, include
15395 QNonStop+ in the qSupported query response.
15396 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
15397 and non-stop mode.
15398 (handle_v_attach, handle_v_run): Handle non-stop mode.
15399 (handle_v_stopped): New.
15400 (handle_v_requests): Report support for vCont;t. Handle vStopped.
15401 (myresume): Adjust to use resume_kind. Handle non-stop.
15402 (queue_stop_reply_callback): New.
15403 (handle_status): Handle non-stop mode.
15404 (main): Clear non_stop flag on reconnection. Use the event-loop.
15405 Refactor serial protocol handling from here ...
15406 (process_serial_event): ... to this new function. When GDB
15407 selects any thread, select one here. In non-stop mode, wait until
15408 GDB acks all pending events before exiting.
15409 (handle_serial_event, handle_target_event): New.
15410 * remote-utils.c (remote_open): Install remote_desc in the event
15411 loop.
15412 (remote_close): Remove remote_desc from the event loop.
15413 (putpkt_binary): Rename to...
15414 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
15415 (putpkt_binary): New as wrapper around putpkt_binary_1.
15416 (putpkt_notif): New.
15417 (prepare_resume_reply): In non-stop mode, don't change the
15418 general_thread.
15419 * event-loop.c: New.
15420 * Makefile.in (OBJ): Add event-loop.o.
15421 (event-loop.o): New rule.
15422
15423 * linux-low.h (pid_of): Moved here.
15424 (lwpid_of): New.
15425 (get_lwp_thread): Use lwpid_of.
15426 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
15427 * linux-low.c (pid_of): Delete.
15428 (inferior_pid): Use lwpid_of.
15429 (linux_event_pipe): New.
15430 (target_is_async_p): New.
15431 (delete_lwp): New.
15432 (handle_extended_wait): Use lwpid_of.
15433 (add_lwp): Don't set lwpid field.
15434 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
15435 (linux_kill_one_lwp): If killing a running lwp, stop it first.
15436 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
15437 (linux_detach_one_lwp): If detaching from a running lwp, stop it
15438 first. Adjust to linux_wait_for_event interface changes. Use
15439 lwpid_of.
15440 (linux_detach): Don't delete the main lwp here.
15441 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
15442 (status_pending_p): Don't consider explicitly suspended lwps.
15443 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
15444 pointer. Add OPTIONS argument. Change return type to int. Use
15445 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
15446 (linux_wait_for_event): Take an integer pid instead of a lwp_info
15447 pointer. Add status pointer argument. Return a pid instead of a
15448 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
15449 changes. In non-stop mode, don't switch to a random thread.
15450 (linux_wait): Rename to...
15451 (linux_wait_1): ... this. Add target_options argument, and handle
15452 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
15453 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
15454 clean exit and signal exit code. Don't stop all threads in
15455 non-stop mode. In all-stop mode, only stop all threads when
15456 reporting a stop to GDB. Handle explicit thread stop requests.
15457 (async_file_flush, async_file_mark): New.
15458 (linux_wait): New.
15459 (send_sigstop): Use lwpid_of.
15460 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
15461 interface changes. In non-stop mode, don't switch to a random
15462 thread.
15463 (linux_resume_one_lwp): Use lwpid_of.
15464 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
15465 (linux_resume_one_thread): ... this. Handle resume_stop. In
15466 non-stop mode, don't look for pending flag in all threads.
15467 (resume_status_pending_p): Don't consider explicitly suspended
15468 threads.
15469 (my_waitpid): Reimplement. Emulate __WALL.
15470 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
15471 Use lwpid_of.
15472 (sigchld_handler, linux_supports_non_stop, linux_async)
15473 (linux_start_non_stop): New.
15474 (linux_target_ops): Register linux_supports_non_stop, linux_async
15475 and linux_start_non_stop.
15476 (initialize_low): Install SIGCHLD handler.
15477 * thread-db.c (thread_db_create_event, find_one_thread)
15478 (thread_db_get_tls_address): Use lwpid_of.
15479 * win32-low.c (win32_detach): Adjust to use resume_kind.
15480 (win32_wait): Add `options' argument.
15481 * spu-low.c (spu_resume): Adjust to use resume_kind.
15482 (spu_wait): Add `options' argument.
15483
15484 2009-04-01 Pedro Alves <pedro@codesourcery.com>
15485
15486 Decouple target code from remote protocol.
15487
15488 * target.h (enum target_waitkind): New.
15489 (struct target_waitstatus): New.
15490 (struct target_ops) <wait>: Return an unsigned long. Take a
15491 target_waitstatus pointer instead of a char pointer.
15492 (mywait): Likewise.
15493 * target.c (mywait): Change prototype to return an unsigned long.
15494 Take a target_waitstatus pointer instead of a char pointer. Adjust.
15495 * server.h (thread_from_wait, old_thread_from_wait): Delete
15496 declarations.
15497 (prepare_resume_reply): Change prototype to take a
15498 target_waitstatus.
15499 * server.c (thread_from_wait, old_thread_from_wait): Delete.
15500 (last_status, last_ptid): New.
15501 (start_inferior): Remove "statusptr" argument. Adjust. Return a
15502 pid instead of a signal.
15503 (attach_inferior): Remove "status" and "signal" parameters.
15504 Adjust.
15505 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
15506 not as an address.
15507 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
15508 (handle_v_requests, myresume): Remove "status" and "signal"
15509 parameters. Adjust.
15510 (handle_status): New.
15511 (main): Delete local `status'. Adjust.
15512 * remote-utils.c: Include target.h.
15513 (prepare_resume_reply): Change prototype to take a
15514 target_waitstatus. Adjust.
15515
15516 * linux-low.c (linux_wait): Adjust to new target_ops->wait
15517 interface.
15518 * spu-low.c (spu_wait): Adjust.
15519 * win32-low.c (enum target_waitkind, struct target_waitstatus):
15520 Delete.
15521 (win32_wait): Adjust.
15522
15523 2009-04-01 Pedro Alves <pedro@codesourcery.com>
15524
15525 * target.h (struct thread_resume): Delete leave_stopped member.
15526 (struct target_ops): Add a `n' argument to the `resume' callback.
15527 * server.c (start_inferior): Adjust.
15528 (handle_v_cont, myresume): Adjust.
15529 * linux-low.c (check_removed_breakpoint): Adjust to resume
15530 interface change, and to removed leave_stopped field.
15531 (resume_ptr): Delete.
15532 (struct thread_resume_array): New.
15533 (linux_set_resume_request): Add new `arg' parameter. Adjust to
15534 resume interface change.
15535 (linux_continue_one_thread, linux_queue_one_thread)
15536 (resume_status_pending_p): Check if the resume field is NULL
15537 instead of checking the leave_stopped member.
15538 (linux_resume): Adjust to the target resume interface change.
15539 * spu-low.c (spu_resume): Adjust to the target resume interface
15540 change.
15541 * win32-low.c (win32_detach, win32_resume): Ditto.
15542
15543 2009-04-01 Pedro Alves <pedro@codesourcery.com>
15544
15545 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
15546 flag.
15547 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
15548 pending.
15549 (linux_continue_one_thread): Only preserve the stepping flag if
15550 there's a pending breakpoint.
15551
15552 2009-03-31 Pedro Alves <pedro@codesourcery.com>
15553
15554 * server.c (main): After the inferior having exited, call
15555 remote_close before exiting gdbserver.
15556
15557 2009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
15558
15559 Fix size of FPSCR in Power 7 processors.
15560 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
15561 (PPC_FEATURE_HAS_DFP): New #define.
15562 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
15563 size of the FPSCR.
15564
15565 2009-03-23 Pedro Alves <pedro@codesourcery.com>
15566
15567 * server.c (handle_query) Whitespace and formatting.
15568
15569 2009-03-22 Pedro Alves <pedro@codesourcery.com>
15570
15571 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
15572 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
15573 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
15574 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
15575 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
15576 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
15577 Makefile.in, configure.ac: Fix whitespace throughout.
15578 * configure: Regenerate.
15579
15580 2009-03-22 Pedro Alves <pedro@codesourcery.com>
15581
15582 * inferiors.c (find_inferior): Make it safe for the callback
15583 function to delete the currently iterated inferior.
15584
15585 2009-03-22 Pedro Alves <pedro@codesourcery.com>
15586
15587 * Makefile.in (linuw_low_h): Move higher.
15588 (thread-db.o): Depend on $(linux_low_h).
15589
15590 2009-03-17 Pedro Alves <pedro@codesourcery.com>
15591
15592 Rename "process" to "lwp" throughout.
15593
15594 * linux-low.c (all_processes): Rename to...
15595 (all_lwps): ... this.
15596 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
15597 (add_process): Rename to ...
15598 (add_lwp): ... this. Adjust.
15599 (linux_create_inferior): Adjust.
15600 (linux_attach_lwp): Adjust.
15601 (linux_attach): Adjust.
15602 (linux_kill_one_process): Rename to ...
15603 (linux_kill_one_lwp): ... this. Adjust.
15604 (linux_kill): Adjust.
15605 (linux_detach_one_process): Rename to ...
15606 (linux_detach_one_lwp): ... this. Adjust.
15607 (linux_detach): Adjust.
15608 (check_removed_breakpoint): Adjust.
15609 (status_pending_p): Adjust.
15610 (linux_wait_for_process): Rename to ...
15611 (linux_wait_for_lwp): ... this. Adjust.
15612 (linux_wait_for_event): Adjust.
15613 (send_sigstop): Adjust.
15614 (wait_for_sigstop): Adjust.
15615 (stop_all_processes): Rename to ...
15616 (stop_all_lwps): ... this.
15617 (linux_resume_one_process): Rename to ...
15618 (linux_resume_one_lwp): ... this. Adjust.
15619 (linux_set_resume_request, linux_continue_one_thread)
15620 (linux_queue_one_thread, resume_status_pending_p)
15621 (usr_store_inferior_registers, regsets_store_inferior_registers)
15622 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
15623 Adjust.
15624 * linux-low.h (get_process): Rename to ...
15625 (get_lwp): ... this. Adjust.
15626 (get_thread_process): Rename to ...
15627 (get_thread_lwp): ... this. Adjust.
15628 (get_process_thread): Rename to ...
15629 (get_lwp_thread): ... this. Adjust.
15630 (struct process_info): Rename to ...
15631 (struct lwp_info): ... this.
15632 (all_processes): Rename to ...
15633 (all_lwps): ... this.
15634 * proc-service.c (ps_lgetregs): Adjust.
15635 * thread-db.c (thread_db_create_event, find_one_thread)
15636 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
15637
15638 2009-03-14 Pedro Alves <pedro@codesourcery.com>
15639
15640 * server.c (handle_query): Handle "qAttached".
15641
15642 2009-03-13 Nathan Sidwell <nathan@codesourcery.com>
15643
15644 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
15645 GPLv3, update license URL.
15646
15647 2009-03-01 Doug Evans <dje@google.com>
15648
15649 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
15650 (server_h): Add gdb_signals.h.
15651 (signals.o): Update.
15652 * server.h (target_signal_from_host,target_signal_to_host_p)
15653 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
15654
15655 2009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
15656
15657 * remote-utils.c (getpkt): Also generate remote-debug
15658 information if noack_mode is set.
15659
15660 2009-02-06 Pedro Alves <pedro@codesourcery.com>
15661
15662 * server.c (handle_query): Report qXfer:siginfo:read and
15663 qXfer:siginfo:write as supported and handle them.
15664 * target.h (struct target_ops) <qxfer_siginfo>: New field.
15665 * linux-low.c (linux_xfer_siginfo): New.
15666 (linux_target_ops): Set it.
15667
15668 2009-01-26 Pedro Alves <pedro@codesourcery.com>
15669
15670 * server.c (gdbserver_usage): Mention --remote-debug.
15671 (main): Accept '--remote-debug' switch.
15672
15673 2009-01-18 Doug Evans <dje@google.com>
15674
15675 * regcache.c (new_register_cache): No need to check result of xcalloc.
15676 * server.c (handle_search_memory): Back out calls to xmalloc,
15677 result is checked and error is returned to user upon failure.
15678 (handle_query): Ditto. Add more checks for result of malloc.
15679 (handle_v_cont): Check result of malloc, report error back to
15680 user upon failure.
15681 (handle_v_run): Ditto. Call freeargv.
15682 * server.h (freeargv): Declare.
15683 * utils.c (freeargv): New fn.
15684
15685 2009-01-15 Doug Evans <dje@google.com>
15686
15687 * gdbreplay.c (perror_with_name): Make arg const char *.
15688 * server.h (target_signal_to_name): Make return type const char *.
15689 * thread-db.c (thread_db_err_str): Make return type const char *.
15690 * utils.c (perror_with_name): Make arg const char *.
15691
15692 2009-01-14 Pedro Alves <pedro@codesourcery.com>
15693
15694 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
15695 when handling a EXIT_PROCESS_DEBUG_EVENT.
15696
15697 2009-01-06 Joel Brobecker <brobecker@adacore.com>
15698
15699 * gdbreplay.c (gdbreplay_version): Update copyright year.
15700 * server.c (gdbserver_version): Likewise.
15701
15702 2009-01-05 Doug Evans <dje@google.com>
15703
15704 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
15705 (handle_extended_wait): Improve comment.
15706
15707 2008-12-13 Doug Evans <dje@google.com>
15708
15709 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
15710 * server.h (ATTR_MALLOC): New macro.
15711 (xmalloc,xcalloc,xstrdup): Declare.
15712 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
15713 * inferiors.c: Ditto.
15714 * linux-low.c: Ditto.
15715 * mem-break.c: Ditto.
15716 * regcache.c: Ditto.
15717 * remote-utils.c: Ditto.
15718 * server.c: Ditto.
15719 * target.c: Ditto.
15720 * win32-low.c: Ditto.
15721
15722 2008-12-12 Doug Evans <dje@google.com>
15723
15724 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
15725 in debugging printf.
15726
15727 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
15728
15729 2008-12-09 Doug Evans <dje@google.com>
15730
15731 * linux-low.h (struct process_info): Delete member tid, unused.
15732 * thread-db.c (find_one_thread): Update.
15733 (maybe_attach_thread): Update.
15734
15735 2008-12-02 Pedro Alves <pedro@codesourcery.com>
15736
15737 * target.h (struct target_ops): Add qxfer_osdata member.
15738 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
15739 and dirent.h.
15740 (linux_qxfer_osdata): New functions.
15741 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
15742 callback.
15743 * server.c (handle_query): Handle "qXfer:osdata:read:".
15744 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
15745 (buffer_xml_printf): New functions.
15746 * server.h (struct buffer): New.
15747 (buffer_grow_str, buffer_grow_str0): New macros.
15748 (buffer_grow, buffer_free, buffer_init, buffer_finish)
15749 (buffer_xml_printf): Declare.
15750
15751 2008-11-24 Doug Evans <dje@google.com>
15752
15753 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
15754
15755 2008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
15756
15757 * server.c (handle_v_run): Always use the supplied argument list.
15758
15759 2008-11-19 Bob Wilson <bob.wilson@acm.org>
15760
15761 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
15762 (xtensa_regmap_table): Add entry for scompare1.
15763
15764 2008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
15765
15766 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
15767 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
15768 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
15769 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
15770 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
15771 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
15772 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
15773 XML target descriptions.
15774 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
15775 when inferior is running on an ISA 2.05 or later processor. Add
15776 special case to return offset for full 64-bit slot of FPSCR when
15777 in 32-bits.
15778
15779 2008-11-14 Daniel Gutson <dgutson@codesourcery.com>
15780
15781 * Makefile.in (SFILES, clean): Added sparc64 files.
15782 (reg-sparc64.o, reg-sparc64.c): New.
15783 * configure.srv (sparc*-*-linux*): New configuration.
15784 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
15785 syscall arguments for SPARC.
15786 (regsets_store_inferior_registers): Likewise.
15787 * linux-sparc-low.c: New file.
15788
15789 2008-10-21 Doug Evans <dje@google.com>
15790
15791 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
15792 (READLINE_DIR,READLINE_DEP): Delete.
15793 (INTERNAL_CFLAGS): Update.
15794 (LINTFLAGS): Update.
15795
15796 2008-10-10 Pedro Alves <pedro@codesourcery.com>
15797
15798 * server.c (handle_v_run): If GDB didn't specify an argv, use the
15799 whole argv from the last run, not just argv[0].
15800
15801 2008-09-08 Pedro Alves <pedro@codesourcery.com>
15802
15803 * regcache.c (new_register_cache): Return NULL if the register
15804 cache size isn't known yet.
15805 (free_register_cache): Avoid dereferencing a NULL regcache.
15806
15807 2008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
15808
15809 * configure.srv: Merge MIPS and MIPS64.
15810
15811 2008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
15812
15813 * Makefile.in (uninstall): Apply $(EXEEXT) too.
15814
15815 2008-08-18 Luis Machado <luisgpm@br.ibm.com>
15816
15817 * Makefile.in: Add required vsx dependencies.
15818
15819 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
15820 Declare init_registers_powerpc_vsx32l.
15821 Declare init_registers_powerpc_vsx64l.
15822 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
15823 (ppc_arch_setup): Check for VSX in hwcap.
15824 (ppc_fill_vsxregset): New function.
15825 (ppc_store_vsxregset): New function.
15826 Add new VSX entry in regset_info target_regsets.
15827
15828 * configure.srv: Add new VSX dependencies.
15829
15830 2008-08-12 Pedro Alves <pedro@codesourcery.com>
15831
15832 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
15833 (remote_open): Set or clear transport_is_reliable.
15834 (putpkt_binary): Don't expect acks in noack mode.
15835 (getpkt): Don't send ack/nac in noack mode.
15836 * server.c (handle_general_set): Handle QStartNoAckMode.
15837 (handle_query): If connected by tcp pass QStartNoAckMode+ in
15838 qSupported.
15839 (main): Reset noack_mode on every connection.
15840 * server.h (noack_mode): Declare.
15841
15842 2008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15843
15844 * Makefile.in (GDBREPLAY_OBS): New variable.
15845 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
15846
15847 2008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
15848 Daniel Jacobowitz <dan@codesourcery.com>
15849
15850 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
15851 (usr_store_inferior_registers): Likewise.
15852 (regsets_store_inferior_registers): Likewise.
15853
15854 2008-07-31 Rolf Jansen <rj@surtec.com>
15855 Pedro Alves <pedro@codesourcery.com>
15856
15857 * configure.ac: Check for memmem declaration.
15858 * server.c [HAVE_MALLOC_H]: Include malloc.h.
15859 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
15860 (disable_packet_qfThreadInfo): Unconditionally compile.
15861 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
15862 * configure, config.in: Regenerate.
15863
15864 2008-07-28 Doug Kwan <dougkwan@google.com>
15865
15866 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
15867 (linux_write_memory): Remove declaration of errno.
15868
15869 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
15870
15871 * linux-low.c (handle_extended_wait): Do not use "status"
15872 variable uninitialized.
15873
15874 2008-07-07 Pedro Alves <pedro@codesourcery.com>
15875
15876 * server.c (handle_v_attach): Inhibit reporting dll changes.
15877
15878 2008-06-27 Pedro Alves <pedro@codesourcery.com>
15879
15880 * remote-utils.c (prepare_resume_reply): If requested, don't
15881 output "thread:TID" in the T stop reply.
15882
15883 * server.c (disable_packet_vCont, disable_packet_Tthread)
15884 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
15885 (handle_query): If requested, disable support for qC, qfThreadInfo
15886 and qsThreadInfo.
15887 (handle_v_requests): If requested, disable support for vCont.
15888 (gdbserver_show_disableable): New.
15889 (main): Handle --disable-packet and --disable-packet=LIST.
15890
15891 * server.h (disable_packet_vCont, disable_packet_Tthread)
15892 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
15893
15894 2008-06-20 Carlos O'Donell <carlos@codesourcery.com>
15895
15896 * server.c (gdbserver_usage): Mention --version.
15897
15898 2008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
15899
15900 * Makefile.in (gdbreplay.o): New rule.
15901
15902 2008-06-06 Joseph Myers <joseph@codesourcery.com>
15903
15904 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
15905 message, not gdbserver.
15906
15907 2008-06-05 Vladimir Prus <vladimir@codesourcery.com>
15908 Nathan Sidwell <nathan@codesourcery.com>
15909 Joseph Myers <joseph@codesourcery.com>
15910
15911 * acinclude.m4: Include ../../config/acx.m4.
15912 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
15913 * configure, config.in: Regenerate.
15914 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
15915 * server.c (gdbserver_version): Print PKGVERSION.
15916 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
15917 (main): Adjust gdbserver_usage calls.
15918 * gdbreplay.c (version, host_name): Add declarations.
15919 (gdbreplay_version, gdbreplay_usage): New.
15920 (main): Accept --version and --help options.
15921
15922 2008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
15923
15924 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
15925 (arm_breakpoint_at): Handle Thumb.
15926 (the_low_target): Add comment.
15927
15928 2008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
15929
15930 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
15931
15932 2008-05-09 Doug Evans <dje@google.com>
15933
15934 * server.h (decode_search_memory_packet): Declare.
15935 * remote-utils.c (decode_search_memory_packet): New fn.
15936 * server.c (handle_search_memory_1): New fn.
15937 (handle_search_memory): New fn.
15938 (handle_query): Process qSearch:memory packets.
15939
15940 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
15941
15942 * regcache.c (registers_length): Remove.
15943 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
15944 full register packet.
15945 * regcache.h (registers_length): Remove prototype.
15946 * server.h (PBUFSIZ): Define to 16384.
15947
15948 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
15949
15950 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
15951 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
15952 powerpc-64l.o, and powerpc-altivec64l.o.
15953 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
15954 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
15955 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
15956 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
15957 rs6000/power-linux.xml, and rs6000/power64-linux.xml
15958 to srv_xmlfiles.
15959
15960 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
15961 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
15962 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
15963 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
15964 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
15965 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
15966 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
15967 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
15968 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
15969 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
15970 (clean): Update.
15971
15972 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
15973 (init_registers_powerpc_32l): ... this new prototype.
15974 (init_registers_powerpc_32): Remove, replace by ...
15975 (init_registers_powerpc_altivec32l): ... this new prototype.
15976 (init_registers_powerpc_e500): Remove, replace by ...
15977 (init_registers_powerpc_e500l): ... this new prototype.
15978 (init_registers_ppc64): Remove, replace by ...
15979 (init_registers_powerpc_64l): ... this new prototype.
15980 (init_registers_powerpc_64): Remove, replace by ...
15981 (init_registers_powerpc_altivec64l): ... this new prototype.
15982 (ppc_num_regs): Set to 73.
15983 (PT_ORIG_R3, PT_TRAP): Define if necessary.
15984 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
15985 (ppc_cannot_store_register): Handle orig_r3 and trap.
15986 (ppc_arch_setup): Update init_registers_... calls.
15987 (ppc_fill_gregset): Handle orig_r3 and trap.
15988
15989 * inferiors.c (clear_inferiors): Reset current_inferior.
15990
15991 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
15992
15993 * acinclude.m4: Add override.m4.
15994 * configure: Regenerate.
15995
15996 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
15997
15998 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
15999 initial call to init_register_ppc64.
16000
16001 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
16002
16003 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
16004 single powerpc*-*-linux* case.
16005 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
16006
16007 2008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
16008
16009 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
16010 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
16011 from reg_xmlfiles.
16012 * linux-ppc-low.c: Include <elf.h>.
16013 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
16014 (ppc_hwcap): New global variable.
16015 (ppc_regmap): Remove __SPE__ #ifdef sections.
16016 (ppc_regmap_e500): New global variable.
16017 (ppc_cannot_store_register): Update __SPE__ special case.
16018 (ppc_get_hwcap): New function.
16019 (ppc_arch_setup): Use it to determine whether inferior supports
16020 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
16021 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
16022 Do not access registers if target does not support AltiVec.
16023 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
16024 Do not access registers if target does not support SPE.
16025 (target_regsets): Unconditionally include AltiVec and SPE regsets.
16026
16027 2008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
16028
16029 * linux-low.c (disabled_regsets, num_regsets): New.
16030 (use_regsets_p): Delete.
16031 (linux_wait_for_process): Clear disabled_regsets.
16032 (regsets_fetch_inferior_registers): Check and set it.
16033 (regsets_store_inferior_registers): Likewise.
16034 (linux_fetch_registers, linux_store_registers): Do not use
16035 use_regsets_p.
16036 (initialize_low): Allocate disabled_regsets.
16037
16038 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
16039
16040 * Makefile.in (LIBOBJS): New.
16041 (OBS): Use LIBOBJS.
16042 (memmem.o): New rule.
16043 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
16044 * configure: Regenerated.
16045
16046 2008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
16047
16048 * server.c (handle_query): Never return "unsupported" for
16049 qXfer:features:read queries.
16050
16051 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
16052
16053 * server.c (get_features_xml): Fix inverted condition.
16054 (handle_query): Always support qXfer:feature:read.
16055
16056 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
16057
16058 * server.c (wrapper_argv): New.
16059 (start_inferior): Handle wrapper_argv. If set, expect an extra
16060 trap.
16061 (gdbserver_usage): Document --wrapper.
16062 (main): Parse --wrapper.
16063
16064 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
16065
16066 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
16067 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
16068 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
16069 (ppc_set_pc): Likewise.
16070 (ppc_arch_setup): New function.
16071 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
16072 of collect_register.
16073 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
16074
16075 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
16076
16077 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
16078 instead of linux-ppc64-low.o.
16079 * linux-ppc64-low.c: Remove file.
16080 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
16081 (linux-ppc64-low.o): Remove rule.
16082
16083 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
16084 (init_registers_powerpc_64): Likewise.
16085 (ppc_regmap): Conditionally define depending on __powerpc64__.
16086 (ppc_cannot_store_register): Do not special-case "fpscr" when
16087 compiled on __powerpc64__.
16088 (ppc_collect_ptrace_register): New function.
16089 (ppc_supply_ptrace_register): New function.
16090 (ppc_breakpoint): Change type to "unsigned int".
16091 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
16092 (the_low_target): Conditionally provide initializers for the
16093 arch_setup member depending on __powerpc64__. Install
16094 collect_ptrace_register and supply_ptrace_register members.
16095
16096 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
16097
16098 * regcache.h (gdbserver_xmltarget): Add extern declaration.
16099 * server.c (gdbserver_xmltarget): Define.
16100 (get_features_xml): Use it to replace "target.xml" and arch_string.
16101
16102 * configure.srv: Remove srv_xmltarget. Add XML files that were
16103 mentioned there to srv_xmlfiles instead. Remove conditional tests
16104 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
16105 srv_xmlfiles and srv_regobj to include all possible choices.
16106 * configure.ac (srv_xmltarget): Remove.
16107 (srv_xmlfiles): Do not add "target.xml".
16108 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
16109 checks for supplementary target information.
16110 * configure: Regenerate.
16111 * Makefile.in (XML_TARGET): Remove.
16112 (target.xml): Remove rule.
16113 (clean): Do not clean up target.xml.
16114 (.PRECIOUS): Do not mention target.xml.
16115
16116 * target.h (struct target_ops): Remove arch_string member.
16117 * linux-low.c (linux_arch_string): Remove.
16118 (linux_target_ops): Remove arch_string initializer.
16119 * linux-low.h (struct linux_target_ops): Remove arch_string member.
16120 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
16121 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
16122 * spu-low.c (spu_arch_string): Remove.
16123 (spu_target_ops): Remove arch_string initializer.
16124 * win32-low.c (win32_arch_string): Remove.
16125 (win32_target_ops): Remove arch_string initializer.
16126 * win32-low.h (struct win32_target_ops): Remove arch_string member.
16127 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
16128 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
16129
16130 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
16131
16132 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
16133 by collect_ptrace_register and supply_ptrace_register hooks.
16134 * linux-low.c (fetch_register): Use supply_ptrace_register callback
16135 instead of checking for the_low_target.left_pad_xfer.
16136 (usr_store_inferior_registers): Use collect_ptrace_register callback
16137 instead of checking for the_low_target.left_pad_xfer.
16138
16139 * linux-s390-low.c (s390_collect_ptrace_register): New function.
16140 (s390_supply_ptrace_register): Likewise.
16141 (s390_fill_gregset): Call s390_collect_ptrace_register.
16142 (the_low_target): Update.
16143
16144 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
16145 (ppc_supply_ptrace_register): Likewise.
16146 (the_low_target): Update.
16147
16148 * linux-i386-low.c (the_low_target): Update.
16149 * linux-x86-64-low.c (the_low_target): Update.
16150
16151 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
16152
16153 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
16154 reg-s390.o and reg-s390x.o.
16155
16156 * linux-low.c (new_inferior): New global variable.
16157 (linux_create_inferior, linux_attach): Set it.
16158 (linux_wait_for_process): Call the_low_target.arch_setup after the
16159 target has stopped for the first time.
16160 (initialize_low): Do not call the_low_target.arch_setup.
16161
16162 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
16163 (s390_set_pc): Likewise.
16164 (s390_arch_setup): New function.
16165 (the_low_target): Use s390_arch_setup as arch_setup routine.
16166
16167 * regcache.c (realloc_register_cache): New function.
16168 (set_register_cache): Call it for each existing regcache.
16169
16170 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
16171
16172 * server.h (init_registers): Remove prototype.
16173
16174 * linux-low.h (struct linux_target_ops): Add arch_setup field.
16175 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
16176 instead of init_registers ().
16177 * linux-arm-low.c (init_registers_arm): Add prototype.
16178 (init_registers_arm_with_iwmmxt): Likewise.
16179 (the_low_target): Add initializer for arch_setup field.
16180 * linux-cris-low.c (init_registers_cris): Add prototype.
16181 (the_low_target): Add initializer for arch_setup field.
16182 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
16183 (the_low_target): Add initializer for arch_setup field.
16184 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
16185 (the_low_target): Add initializer for arch_setup field.
16186 * linux-ia64-low.c (init_registers_ia64): Add prototype.
16187 (the_low_target): Add initializer for arch_setup field.
16188 * linux-m32r-low.c (init_registers_m32r): Add prototype.
16189 (the_low_target): Add initializer for arch_setup field.
16190 * linux-m68k-low.c (init_registers_m68k): Add prototype.
16191 (the_low_target): Add initializer for arch_setup field.
16192 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
16193 (init_registers_mips64_linux): Likewise.
16194 (the_low_target): Add initializer for arch_setup field.
16195 * linux-ppc-low.c (init_registers_ppc): Add prototype.
16196 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
16197 (the_low_target): Add initializer for arch_setup field.
16198 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
16199 (init_registers_powerpc_64): Likewise.
16200 (the_low_target): Add initializer for arch_setup field.
16201 * linux-s390-low.c (init_registers_s390): Add prototype.
16202 (init_registers_s390x): Likewise.
16203 (the_low_target): Add initializer for arch_setup field.
16204 * linux-sh-low.c (init_registers_sh): Add prototype.
16205 (the_low_target): Add initializer for arch_setup field.
16206 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
16207 (the_low_target): Add initializer for arch_setup field.
16208 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
16209 (the_low_target): Add initializer for arch_setup field.
16210
16211 * win32-low.h (struct win32_target_ops): Add arch_setup field.
16212 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
16213 instead of init_registers ().
16214 * win32-arm-low.c (init_registers_arm): Add prototype.
16215 (the_low_target): Add initializer for arch_setup field.
16216 * win32-i386-low.c (init_registers_i386): Add prototype.
16217 (the_low_target): Add initializer for arch_setup field.
16218
16219 * spu-low.c (init_registers_spu): Add prototype.
16220 (initialize_low): Call initialie_registers_spu () instead of
16221 initialize_registers ().
16222
16223 2008-02-19 Pedro Alves <pedro@codesourcery.com>
16224
16225 * server.c (handle_v_requests): When handling the vRun and vAttach
16226 packets, if already debugging a process, don't kill it. Return an
16227 error instead.
16228
16229 2008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
16230
16231 * server.c (handle_query): Correct length check.
16232
16233 2008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
16234
16235 * win32-low.c (do_initial_child_stuff): Add process handle
16236 parameter. Set current_process_handle and current_process_id from the
16237 parameters. Clear globals.
16238 (win32_create_inferior): Don't set current_process_handle and
16239 current_process_id here. Instead pass them on the call to
16240 do_initial_child_stuff.
16241 (win32_attach): Likewise.
16242 (win32_clear_inferiors): New.
16243 (win32_kill): Don't close the current process handle or the
16244 current thread handle here. Instead call win32_clear_inferiors.
16245 (win32_detach): Don't open a new handle to the process. Call
16246 win32_clear_inferiors.
16247 (win32_join): Don't rely on current_process_handle; open a new
16248 handle using the process id.
16249 (win32_wait): Call win32_clear_inferiors when the inferior process
16250 has exited.
16251
16252 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
16253
16254 * server.c (monitor_show_help): Add "exit".
16255
16256 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
16257
16258 * Makefile.in (SFILES): Add linux-xtensa-low.c.
16259 (clean): Add reg-xtensa.c.
16260 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
16261 * configure.srv (xtensa*-*-linux*) New target.
16262 * linux-xtensa-low.c: New.
16263 * xtensa-xtregs.c: New.
16264
16265 2008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
16266
16267 * hostio.c: Don't include errno.h.
16268 (errno_to_fileio_errno): Move to hostio-errno.
16269 * hostio.c: (hostio_error): Remove the error parameter. Defer the
16270 error number outputting to the target->hostio_last_error callback.
16271 (hostio_packet_error): Use FILEIO_EINVAL directly.
16272 (handle_open, handle_pread, hostio_error, handle_unlink): Update
16273 calls to hostio_error.
16274 * hostio-errno.c: New.
16275 * server.h (hostio_last_error_from_errno): Declare.
16276 * target.h (target_ops): Add hostio_last_error member.
16277 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
16278 as hostio_last_error handler.
16279 * spu-low.c (spu_target_ops): Likewise.
16280 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
16281 (wince_hostio_last_error): New functions.
16282 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
16283 as hostio_last_error handler.
16284 (win32_target_ops) [!_WIN32_WCE]: Register
16285 hostio_last_error_from_errno as hostio_last_error handler.
16286 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
16287 (hostio-errno.o): New rule.
16288 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
16289 * configure.srv (srv_hostio_err_objs): New variable. Default to
16290 hostio-errno.o.
16291 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
16292 * configure: Regenerate.
16293
16294 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
16295
16296 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
16297 (linux_kill, linux_detach): Clean up the process list.
16298 * remote-utils.c (remote_open): Improve port number parsing.
16299 (putpkt_binary, input_interrupt): Only send interrupts if the target
16300 is running.
16301 * server.c (extended_protocol): Make static.
16302 (attached): Define earlier.
16303 (exit_requested, response_needed, program_argv): New variables.
16304 (target_running): New.
16305 (start_inferior): Clear attached here.
16306 (attach_inferior): Set attached here.
16307 (require_running): Define.
16308 (handle_query): Use require_running and target_running. Implement
16309 "monitor exit".
16310 (handle_v_attach, handle_v_run): New.
16311 (handle_v_requests): Use require_running. Handle vAttach and vRun.
16312 (gdbserver_usage): Update.
16313 (main): Redo argument parsing. Handle --debug and --multi. Handle
16314 --attach along with other options or after the port. Save
16315 program_argv. Support no initial program. Resynchronize
16316 communication with GDB after an error. Handle "monitor exit".
16317 Use require_running and target_running. Always allow the extended
16318 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
16319 restart in extended mode.
16320 * README: Refer to the GDB manual. Update --attach usage.
16321
16322 2007-12-20 Andreas Schwab <schwab@suse.de>
16323
16324 * linux-low.c (STACK_SIZE): Define.
16325 (linux_tracefork_child): Use it. Use __clone2 on ia64.
16326 (linux_test_for_tracefork): Likewise.
16327
16328 2007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
16329
16330 * linux-low.c (linux_wait_for_event): Update messages. Do not
16331 reinsert auto-delete breakpoints.
16332 * mem-break.c (struct breakpoint): Change return type of handler to
16333 int.
16334 (set_breakpoint_at): Update handler type.
16335 (reinsert_breakpoint_handler): Return 1 instead of calling
16336 delete_breakpoint.
16337 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
16338 setting a new one.
16339 (check_breakpoints): Delete auto-delete breakpoints and return 2.
16340 * mem-break.h (set_breakpoint_at): Update handler type.
16341 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
16342 * win32-low.c (auto_delete_breakpoint): New.
16343 (get_child_debug_event): Use it.
16344
16345 2007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
16346
16347 * configure.ac: Check for pread and pwrite.
16348 * hostio.c (handle_pread): Fall back to lseek and read.
16349 (handle_pwrite): Fall back to lseek and write.
16350 * config.in, configure: Regenerated.
16351
16352 2007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
16353
16354 * server.c (myresume): Add own_buf argument.
16355 (main): Update calls.
16356
16357 2007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
16358
16359 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
16360 * remote-utils.c (remote_open): Do not call disable_async_io.
16361 (block_async_io): Delete.
16362 (unblock_async_io): Make static.
16363 (initialize_async_io): New.
16364 * server.c (handle_v_cont): Handle async I/O here.
16365 (myresume): Likewise. Move other common resume tasks here...
16366 (main): ... from here. Call initialize_async_io. Disable async
16367 I/O before the main loop.
16368 * server.h (initialize_async_io): Declare.
16369 (block_async_io, unblock_async_io): Delete prototypes.
16370 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
16371
16372 2007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
16373
16374 * remote-utils.c (readchar): Allow binary data in received messages.
16375
16376 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
16377
16378 * win32-low.c (attaching): New global.
16379 (win32_create_inferior): Clear the `attaching' global.
16380 (win32_attach): Set the `attaching' global.
16381 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
16382 attaching. Only set a breakpoint at the entry point if not
16383 attaching.
16384
16385 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
16386
16387 * server.c (main): Don't report dll events on the initial
16388 connection on attaches.
16389
16390 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
16391
16392 * server.c (main): Relax numerical bases supported for the pid of
16393 the --attach command line argument.
16394
16395 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
16396
16397 * win32-low.c (win32_attach): Call OpenProcess before
16398 DebugActiveProcess, not after. Add last error output to error
16399 call.
16400
16401 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
16402
16403 * win32-low.c (win32_get_thread_context)
16404 (win32_set_thread_context): New functions.
16405 (thread_rec): Use win32_get_thread_context.
16406 (continue_one_thread, win32_resume): Use win32_set_thread_context.
16407 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
16408 field.
16409
16410 2007-12-03 Leo Zayas
16411 Pedro Alves <pedro_alves@portugalmail.pt>
16412
16413 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
16414 global variables.
16415 (child_add_thread): Minor cleanup.
16416 (child_continue): Resume artificially suspended threads before
16417 calling ContinueDebugEvent.
16418 (suspend_one_thread): New.
16419 (fake_breakpoint_event): New.
16420 (get_child_debug_event): Change return type to int. Check here if
16421 gdb sent an interrupt request. If a soft interrupt was requested,
16422 fake a breakpoint event. Return 0 if there is no event to handle,
16423 and 1 otherwise.
16424 (win32_wait): Don't check here if gdb sent an interrupt request.
16425 Ensure there is a valid event to handle.
16426 (win32_request_interrupt): Add soft interruption method as last
16427 resort.
16428
16429 2007-12-03 Leo Zayas
16430 Pedro Alves <pedro_alves@portugalmail.pt>
16431
16432 * win32-low.h (win32_thread_info): Add descriptions to the
16433 structure members. Replace `suspend_count' counter by a
16434 `suspended' flag.
16435 * win32-low.c (thread_rec): Update condition of when to get the
16436 context from the inferior. Rely on ContextFlags being set if it
16437 has already been retrieved. Only suspend the inferior thread if
16438 we haven't already. Warn if that fails.
16439 (continue_one_thread): s/suspend_count/suspended/. Only call
16440 ResumeThread once. Warn if that fails.
16441
16442 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
16443
16444 * win32-low.c (win32_wait): Don't read from the inferior when it
16445 has already exited.
16446
16447 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
16448
16449 * Makefile.in (win32_low_h): New variable.
16450 (win32-low.o): Add dependency on $(win32_low_h).
16451 (win32-arm-low.o, win32-i386-low.o): New rules.
16452
16453 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
16454
16455 * hostio.c: Correct copyright year.
16456
16457 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
16458
16459 * Makefile.in (OBS): Add hostio.o.
16460 (hostio.o): New rule.
16461 * server.h (handle_vFile): Declare.
16462 * hostio.c: New file.
16463 * server.c (handle_v_requests): Take packet_len and new_packet_len
16464 for binary packets. Call handle_vFile.
16465 (main): Update call to handle_v_requests.
16466
16467 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
16468
16469 * linux-low.c: Include <sched.h>.
16470
16471 2007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
16472
16473 * linux-low.c (linux_tracefork_grandchild): New.
16474 (linux_tracefork_child): Use clone.
16475 (linux_test_for_tracefork): Use clone; allocate and free a stack.
16476
16477 2007-10-31 Joel Brobecker <brobecker@adacore.com>
16478
16479 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
16480
16481 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
16482
16483 * linux-low.c (handle_extended_wait): Handle unexpected signals.
16484
16485 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
16486
16487 * inferiors.c (change_inferior_id): Delete.
16488 (add_pid_to_list, pull_pid_from_list): New.
16489 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
16490 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
16491 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
16492 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
16493 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
16494 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
16495 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
16496 (using_threads): Always set to 1.
16497 (handle_extended_wait): New.
16498 (add_process): Do not set TID.
16499 (linux_create_inferior): Set must_set_ptrace_flags.
16500 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
16501 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
16502 (linux_thread_alive): Rename TID argument to LWPID.
16503 (linux_wait_for_process): Handle unknown processes. Do not use TID.
16504 (linux_wait_for_event): Do not use TID or check using_threads. Update
16505 call to dead_thread_notify. Call handle_extended_wait.
16506 (linux_create_inferior): Use PTRACE_SETOPTIONS.
16507 (send_sigstop): Delete sigstop_sent.
16508 (wait_for_sigstop): Avoid TID.
16509 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
16510 (linux_test_for_tracefork): New.
16511 (linux_lookup_signals): Use thread_db_active and
16512 linux_supports_tracefork_flag.
16513 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
16514 * linux-low.h (get_process_thread): Avoid TID.
16515 (struct process_ifo): Move thread_known and tid to the end. Remove
16516 sigstop_sent.
16517 (linux_attach_lwp, thread_db_init): Update prototypes.
16518 * server.h (change_inferior_id): Delete prototype.
16519 (add_pid_to_list, pull_pid_from_list): New prototypes.
16520 * thread-db.c (thread_db_use_events): New.
16521 (find_first_thread): Rename to...
16522 (find_one_thread): ...this. Update callers and messages. Do not
16523 call fatal. Check thread_db_use_events. Do not call
16524 change_inferior_id or new_thread_notify.
16525 (maybe_attach_thread): Update. Do not call new_thread_notify.
16526 (thread_db_init): Set thread_db_use_events. Check use_events.
16527 * utils.c (fatal, warning): Correct message prefix.
16528
16529 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
16530
16531 * Makefile.in (clean): Remove new files.
16532 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
16533 (powerpc-64.o, powerpc-64.c): New rules.
16534 * configure.srv: Use alternate register sets for powerpc64-*-linux*
16535 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
16536 with SPE.
16537 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
16538 SPE targets.
16539 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
16540 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
16541 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
16542 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
16543 (target_regsets): Add AltiVec and SPE register sets.
16544 * configure.ac: Check for AltiVec and SPE.
16545 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
16546 (ppc_fill_vrregset, ppc_store_vrregset): New.
16547 (target_regsets): Add AltiVec register set.
16548 * configure: Regenerated.
16549
16550 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
16551
16552 * linux-low.c (O_LARGEFILE): Define.
16553 (linux_read_memory): Use /proc/PID/mem.
16554 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
16555 * configure, config.in: Regenerated.
16556
16557 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
16558
16559 * linux-low.c (linux_wait_for_event): Do not pass signals while
16560 single-stepping.
16561
16562 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
16563
16564 * win32-low.c (create_process): New.
16565 (win32_create_inferior): Use create_process instead of
16566 CreateProcess. If create_process failed retry appending an ".exe"
16567 suffix. Store the GetLastError result immediatelly after
16568 create_process calls and use it on the call to error.
16569
16570 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
16571
16572 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
16573
16574 2007-08-23 Joel Brobecker <brobecker@adacore.com>
16575
16576 * configure.ac: Switch license to GPLv3.
16577
16578 2007-08-01 Michael Snyder <msnyder@access-company.com>
16579
16580 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
16581
16582 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
16583
16584 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
16585 typedef.
16586 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
16587 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
16588 CloseToolhelp32Snapshot.
16589 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
16590 CloseToolhelp32Snapshot.
16591
16592 2007-07-27 Michael Snyder <michael.snyder@access-company.com>
16593
16594 * server.c (main): Check for inferior exit before main loop.
16595
16596 2007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
16597
16598 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
16599 instead of on tmp_desc.
16600
16601 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
16602 Daniel Jacobowitz <dan@codesourcery.com>
16603
16604 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
16605 (add_thread): Minor cleanups.
16606 (clear_inferiors): Move lower in the file. Clear the DLL
16607 list.
16608 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
16609 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
16610 (xml_escape_text): New.
16611 * server.c (handle_query): Handle qXfer:libraries:read. Report it
16612 for qSupported.
16613 (handle_v_cont): Report errors.
16614 (gdbserver_version): Update.
16615 (main): Correct size of own_buf. Do not report initial DLL events.
16616 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
16617 (unloaded_dll, xml_escape_text): New.
16618 * win32-low.c (enum target_waitkind): Update comments.
16619 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
16620 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
16621 (win32_EnumProcessModules, win32_GetModuleInformation)
16622 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
16623 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
16624 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
16625 (win32_Module32First, win32_Module32Next, load_toolhelp)
16626 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
16627 (get_child_debug_event): Handle DLL events.
16628 (win32_wait): Likewise.
16629
16630 2007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
16631
16632 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
16633 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
16634
16635 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
16636
16637 * win32-low.c (handle_output_debug_string): Ignore event if not
16638 waiting.
16639
16640 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
16641
16642 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
16643
16644 2007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
16645
16646 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
16647
16648 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
16649
16650 * inferiors.c (change_inferior_id): Add comment.
16651 * linux-low.c (check_removed_breakpoint): Add an early
16652 prototype. Improve debug output.
16653 (linux_attach): Doc update.
16654 (linux_detach_one_process, linux_detach): Clean up before releasing
16655 each process.
16656 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
16657 * linux-low.h (struct process_info): Doc improvement.
16658 * mem-break.c (delete_all_breakpoints): New.
16659 * mem-break.h (delete_all_breakpoints): New prototype.
16660 * thread-db.c (find_first_thread): New.
16661 (thread_db_create_event): Call it instead of
16662 thread_db_find_new_threads. Clean up unused variables.
16663 (maybe_attach_thread): Remove first thread handling.
16664 (thread_db_find_new_threads): Use find_first_thread.
16665 (thread_db_get_tls_address): Likewise.
16666
16667 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
16668
16669 * thread-db.c (thread_db_find_new_threads): Add prototype.
16670 (thread_db_create_event): Check for the main thread before adding
16671 a new thread.
16672 (maybe_attach_thread): Only enable event reporting if TID == 0.
16673 (thread_db_get_tls_address): Check for new threads.
16674
16675 2007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
16676
16677 * linux-low.c (linux_create_inferior): Try execv before execvp.
16678 * spu-low.c (spu_create_inferior): Likewise.
16679
16680 2007-06-13 Mike Frysinger <vapier@gentoo.org>
16681
16682 * linux-low.c (linux_create_inferior): Change execv to execvp.
16683 * spu-low.c (spu_create_inferior): Likewies.
16684
16685 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
16686
16687 * Makefile.in (clean): Clean new files instead of deleted ones.
16688 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
16689 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
16690 rules.
16691 * configure.srv: Specify XML files and new regformats for MIPS and
16692 MIPS64 GNU/Linux.
16693 * linux-mips-low.c (mips_num_regs): Set to only used registers.
16694 (mips_regmap): Do not fetch $0. Remove unused registers. Add
16695 an entry for the restart register.
16696 (mips_cannot_fetch_register, mips_cannot_store_register)
16697 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
16698 register names to match the XML descriptions.
16699 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
16700 restart register instead of $0.
16701
16702 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
16703 Markus Deuling <deuling@de.ibm.com>
16704
16705 * remote-utils.c (decode_xfer_write): New function.
16706 * server.h (decode_xfer_write): Add prototype.
16707 * server.c (handle_query): Add PACKET_LEN argument. Support
16708 qXfer:spu:read and qXfer:spu:write packets.
16709 (main): Pass packet_len to handle_query.
16710 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
16711 * target.h (target_ops): Add qxfer_spu.
16712
16713 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
16714
16715 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
16716 accessing non-seekable spufs files.
16717
16718 2007-05-16 Markus Deuling <deuling@de.ibm.com>
16719
16720 * server.c (handle_query): Add reply for qC packet.
16721
16722 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
16723 Leo Zayas <lerele@champenstudios@com>
16724
16725 * server.h (check_remote_input_interrupt_request): New function.
16726 * remote_utils.c (INVALID_DESCRIPTOR): New define.
16727 (remote_desc): Initialize with INVALID_DESCRIPTOR.
16728 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
16729 (check_remote_input_interrupt_request): New function.
16730 * server.h (check_remote_input_interrupt_request): Declare.
16731 * win32-low.c (winapi_DebugBreakProcess,
16732 winapi_GenerateConsoleCtrlEvent): New typedefs.
16733 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
16734 to 250 ms.
16735 (win32_wait): Check for remote interrupt request
16736 with check_remote_input_interrupt_request.
16737 (win32_request_interrupt): New function.
16738 (win32_target_op): Set request_interrupt to win32_request_interrupt.
16739
16740 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
16741
16742 * win32-low.c (debug_registers_changed,
16743 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
16744 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
16745 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
16746 (thread_rec): Get context using the low target.
16747 (child_add_thread): Call thread_added on the low target,
16748 which does the same thing.
16749 (regptr): Delete.
16750 (do_initial_child_stuff): Remove debug registers references.
16751 Set context using the low target. Resume threads after
16752 setting the contexts.
16753 (child_continue): Remove dead variable. Remove debug
16754 registers references.
16755 (child_fetch_inferior_registers): Go through the low target.
16756 (do_child_store_inferior_registers): Remove.
16757 (child_store_inferior_registers): Go through the low target.
16758 (win32_resume): Remove debug registers references.
16759 Set context using the low target.
16760 (handle_exception): Change return type to void. Don't record
16761 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
16762 first chance exception.
16763 (get_child_debug_event): Change return type to void. Remove
16764 goto loop. Always return after waiting for debug event.
16765 (win32_wait): Convert to switch statement. Handle spurious
16766 events.
16767
16768 * win32-i386-low.c (debug_registers_changed,
16769 debug_registers_used): New.
16770 (initial_stuff): Rename to ...
16771 (i386_initial_stuff): ... this. Clear debug registers
16772 state variables.
16773 (store_debug_registers): Delete.
16774 (i386_get_thread_context): New.
16775 (load_debug_registers): Delete.
16776 (i386_set_thread_context): New.
16777 (i386_thread_added): New.
16778 (single_step): Rename to ...
16779 (i386_single_step): ... this.
16780 (do_fetch_inferior_registers): Rename to ...
16781 (i386_fetch_inferior_register): ... this.
16782 (i386_store_inferior_register): New.
16783 (the_low_target): Adapt to new interface.
16784
16785 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
16786 (arm_get_thread_context): New.
16787 (arm_set_thread_context): New.
16788 (regptr): New.
16789 (do_fetch_inferior_registers): Rename to ...
16790 (arm_fetch_inferior_register): ... this.
16791 (arm_store_inferior_register): New.
16792 (arm_wince_breakpoint): Reimplement as unsigned long.
16793 (arm_wince_breakpoint_len): Define.
16794 (the_low_target): Adapt to new interface.
16795
16796 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
16797 load_debug_registers. Add get_thread_context, set_thread_context,
16798 thread_added and store_inferior_register. Rename
16799 fetch_inferior_registers to fetch_inferior_register.
16800 (regptr): Remove declaration.
16801
16802 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
16803
16804 * linux-low.c (linux_detach): Change return type to int. Return 0.
16805 * spu-low.c (spu_detach): Likewise.
16806
16807 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
16808
16809 * target.h (target_ops): Change return type of detach to int.
16810 Add join.
16811 (join_inferior): New.
16812 * server.c (main): Don't skip detach support on mingw32.
16813 If the inferior doesn't support detaching return error.
16814 Call join_inferior instead of using waitpid.
16815 * linux-low.c (linux_join): New.
16816 (linux_target_op): Add linux_join.
16817 * spu-low.c (spu_join): New.
16818 (spu_target_ops): Add spu_join.
16819 * win32-low.c (win32_detach): Adapt to new interface.
16820 Reopen current_process_handle before detaching. Issue a child
16821 resume before detaching.
16822 (win32_join): New.
16823 (win32_target_op): Add win32_join.
16824
16825 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
16826
16827 * win32-low.c (win32-attach): Fix return value.
16828 * target.h (target_ops): Describe ATTACH return values.
16829
16830 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
16831
16832 * win32-low.c (GETPROCADDRESS): Define.
16833 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
16834 (winapi_DebugSetProcessKillOnExit): Likewise.
16835 (win32_create_inferior): Force usage of ansi CreateProcessA.
16836 (win32_attach): Use GETPROCADDRESS.
16837 (win32_detach): Likewise.
16838
16839 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
16840
16841 * win32-low.c (win32_wait): Don't use WSTOPSIG.
16842
16843 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
16844
16845 * win32-low.c: Commit leftover changes from 2007-03-29.
16846
16847 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
16848
16849 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
16850 fields short instead of int. Add explicit padding.
16851 (i387_cache_to_fsave): Remove unnecessary casts.
16852 (i387_fsave_to_cache): Doc fix.
16853 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
16854
16855 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
16856
16857 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
16858 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
16859
16860 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
16861
16862 * configure.srv (arm*-*-mingw32ce*): Move near the other
16863 arm targets.
16864
16865 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
16866
16867 * configure.ac: Add errno checking.
16868 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
16869 sys/file.h and malloc.h.
16870 (AC_CHECK_DECLS): Add perror.
16871 (srv_mingwce): Handle.
16872 * configure.srv (i[34567]86-*-cygwin*): Add
16873 win32-i386-low.o to srv_tgtobj.
16874 (i[34567]86-*-mingw*): Likewise.
16875 (arm*-*-mingw32ce*): Add case.
16876 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
16877 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
16878 [__MINGW32CE__] (strerror): New function.
16879 [__MINGW32CE__] (errno): Define to GetLastError.
16880 [__MINGW32CE__] (COUNTOF): New macro.
16881 (remote_open): Remove extra close call.
16882 * mem-break.c (delete_breakpoint_at): New function.
16883 * mem-break.h (delete_breakpoint_at): Declare.
16884 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
16885 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
16886 [USE_WIN32API] (read, write): Add char* casts.
16887 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
16888 * server.h: Include wincecompat.h on Windows CE.
16889 [HAVE_ERRNO_H]: Check.
16890 (perror): Declare if not declared.
16891 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
16892 (perror_with_name): Remove errno declaration.
16893 * wincecompat.h: New.
16894 * wincecompat.c: New.
16895 * win32-low.h: New.
16896 * win32-arm-low.c: New.
16897 * win32-i386-low.c: New.
16898 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
16899 (OUTMSG2): Make it safe.
16900 (_T): New macro.
16901 (COUNTOF): New macro.
16902 (NUM_REGS): Get it from the low target.
16903 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
16904 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
16905 (thread_rec): Let low target handle debug registers.
16906 (child_add_thread): Likewise.
16907 (child_init_thread_list): Likewise.
16908 (continue_one_thread): Likewise.
16909 (regptr): New.
16910 (do_child_fetch_inferior_registers): Move to ...
16911 * win32-i386-low.c: ... here, and rename to ...
16912 (do_fetch_inferior_registers): ... this.
16913 * win32-low.c (child_fetch_inferior_registers):
16914 Go through the low target.
16915 (do_child_store_inferior_registers): Use regptr.
16916 (strwinerror): New function.
16917 (win32_create_inferior): Handle Windows CE.
16918 Use strwinerror instead of strerror on Windows error
16919 codes. Add program to the error output.
16920 Don't close the main thread handle on Windows CE.
16921 (win32_attach): Use coredll.dll on Windows CE.
16922 (win32_kill): Close current process and current
16923 thread handles.
16924 (win32_detach): Use coredll.dll on Windows CE.
16925 (win32_resume): Let low target handle debug registers, and
16926 step request.
16927 (handle_exception): Add/Remove initial breakpoint. Avoid
16928 non-existant WSTOPSIG on Windows CE.
16929 (win32_read_inferior_memory): Cast to remove warning.
16930 (win32_arch_string): Go through the low target.
16931 (initialize_low): Call set_breakpoint_data with the low
16932 target's breakpoint.
16933 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
16934 FOP_REGNUM, mappings): Move to ...
16935 * win32-i386-low.c: ... here.
16936 * win32-low.c (win32_thread_info): Move to ...
16937 * win32-low.h: ... here.
16938 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
16939 win32-arm-low.c and wincecompat.c.
16940 (all:): Add $EXEEXT.
16941 (install-only:): Likewise.
16942 (gdbserver:): Likewise.
16943 (gdbreplay:): Likewise.
16944 * config.in: Regenerate.
16945 * configure: Regenerate.
16946
16947 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
16948
16949 * win32-low.c: Rename typedef thread_info to
16950 win32_thread_info throughout.
16951
16952 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
16953
16954 * win32-i386-low.c: Rename to ...
16955 * win32-low.c: ... this.
16956 * configure.srv: Replace win32-i386-low.o with win32-low.o.
16957 * Makefile.in: Likewise.
16958
16959 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
16960
16961 * remote-utils.c (monitor_output): Constify msg parameter.
16962 * server.h (monitor_output): Likewise.
16963 * win32-i386-low.c (handle_output_debug_string): New.
16964 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
16965 handle_output_debug_string.
16966 (get_child_debug_event): Likewise.
16967
16968 2007-03-27 Mat Hostetter <mat@lcs.mit.edu>
16969
16970 * server.c (main): Correct strtoul check.
16971
16972 2007-03-27 Jon Ringle <jon@ringle.org>
16973
16974 * linux-low.c: Check __ARCH_HAS_MMU__ also.
16975
16976 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
16977
16978 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
16979
16980 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
16981
16982 * terminal.h: Check HAVE_SGTTY_H.
16983
16984 2007-02-27 Mat Hostetter <mat@lcs.mit.edu>
16985
16986 * remote-utils.c (remote_open): Print out the assigned port number.
16987
16988 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
16989
16990 * remote-utils.c (monitor_output): New function.
16991 * server.c (debug_threads): Define here.
16992 (monitor_show_help): New function.
16993 (handle_query): Handle qRcmd.
16994 (main): Do not handle 'd' packet.
16995 * server.h (debug_threads, remote_debug, monitor_output): Declare.
16996 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
16997 of debug_threads.
16998
16999 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
17000
17001 * Makefile.in (EXEEXT): New.
17002 (clean): Use $(EXEEXT).
17003
17004 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
17005
17006 * target.h (target_ops): Rename send_signal to request_interrupt,
17007 and remove enum target_signal parameter.
17008 * linux-low.c (linux_request_interrupt): Rename from
17009 linux_send_signal, and always send SIGINT.
17010 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
17011 and always send SIGINT.
17012 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
17013 of send_signal.
17014 (input_interrupt): Likewise.
17015
17016 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
17017
17018 * server.c (get_features_xml): Check if target implemented
17019 arch_string.
17020 * win32-i386-low.c (win32_arch_string): New.
17021 (win32_target_ops): Add win32_arch_string as arch_string member.
17022
17023 2007-02-22 Markus Deuling <deuling@de.ibm.com>
17024
17025 * spu-low.c (spu_arch_string): New.
17026 (spu_target_ops): Add spu_arch_string.
17027
17028 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
17029
17030 * remote-utils.c: Remove HAVE_TERMINAL_H check.
17031 * configure.ac: Do not check for terminal.h.
17032 * configure, config.in: Regenerated.
17033
17034 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
17035
17036 * Makefile.in (OBS): Add $(XML_BUILTIN).
17037 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
17038 (clean): Update.
17039 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
17040 (arm-with-iwmmxt.c): New.
17041 * config.in, configure: Regenerate.
17042 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
17043 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
17044 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
17045 (arm*-*-linux*): Add iWMMXt and regset support.
17046 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
17047 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
17048 (arm_store_wmmxregset, target_regsets): New.
17049 * server.c (get_features_xml): Take annex argument. Check builtin
17050 XML documents.
17051 (handle_query): Handle multiple annexes.
17052
17053 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
17054
17055 * remote-utils.c [USE_WIN32API] (read, write): Define.
17056 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
17057 write.
17058
17059 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
17060
17061 * linux-i386-low.c (the_low_target): Set arch_string.
17062 * linux-x86-64-low.c (the_low_target): Likewise.
17063 * linux-low.c (linux_arch_string): New.
17064 (linux_target_ops): Add it.
17065 * linux-low.h (struct linux_target_ops): Add arch_string.
17066 * server.c (write_qxfer_response): Use const void * for DATA.
17067 (get_features_xml): New.
17068 (handle_query): Handle qXfer:features:read. Report it for qSupported.
17069 * target.h (struct target_ops): Add arch_string method.
17070
17071 2007-01-03 Denis Pilat <denis.pilat@st.com>
17072 Daniel Jacobowitz <dan@codesourcery.com>
17073
17074 * linux-low.c (linux_kill): Handle being called with no threads.
17075 * win32-i386-low.c (win32_kill): Likewise.
17076 (get_child_debug_event): Clear current_process_handle.
17077
17078 2006-12-30 Denis PILAT <denis.pilat@st.com>
17079 Daniel Jacobowitz <dan@codesourcery.com>
17080
17081 * remote-utils.c (remote_open): Check the type of specified
17082 serial port devices before opening them.
17083 * server.c (main): Kill the inferior if an error occurs during
17084 the first remote_open.
17085
17086 2006-12-05 Markus Deuling <deuling@de.ibm.com>
17087
17088 * README: Update supported targets.
17089
17090 2006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
17091
17092 * Makefile.in (clean): Remove reg-mips64.c.
17093 (reg-mips64.c, reg-mips64.o): New rules.
17094 * configure.srv: Handle mips64. Include regset support for mips.
17095 * linux-mips-low.c (union mips_register): New.
17096 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
17097 (mips_breakpoint, mips_breakpoint_at): Use int.
17098 (mips_collect_register, mips_supply_register)
17099 (mips_collect_register_32bit, mips_supply_register_32bit)
17100 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
17101 (mips_store_fpregset, target_regsets): New.
17102 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
17103
17104 2006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
17105
17106 * configure.srv: Add target "spu*-*-*".
17107 * Makefile.in (clean): Remove reg-spu.c.
17108 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
17109 * spu-low.c: New file.
17110
17111 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
17112
17113 * configure.ac: Correct td_thr_tls_get_addr test.
17114 * configure: Regenerated.
17115
17116 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
17117
17118 * linux-low.c (linux_wait_for_event): Reformat. Use the
17119 pass_signals array.
17120 * remote-utils.c (decode_address_to_semicolon): New.
17121 * server.c (pass_signals, handle_general_set): New.
17122 (handle_query): Mention QPassSignals for qSupported.
17123 (main): Call handle_general_set.
17124 * server.h (pass_signals, decode_address_to_semicolon): New.
17125
17126 2006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
17127
17128 * server.c (handle_query): Correct error handling for read_auxv.
17129
17130 2005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
17131
17132 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
17133 and srv_linux_thread_db to yes.
17134 * linux-s390-low.c (s390_fill_gregset): New function.
17135 (target_regsets): Define data structure.
17136
17137 2006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
17138
17139 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
17140 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
17141 * config.in, configure: Regenerated.
17142 * inferiors.c (gdb_id_to_thread): New function.
17143 (gdb_id_to_thread_id): Use it.
17144 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
17145 * linux-low.h (struct process_info): Add th member.
17146 (thread_db_get_tls_address): New prototype.
17147 * remote-utils.c (decode_address): Make non-static.
17148 * server.c (handle_query): Handle qGetTLSAddr.
17149 * server.h (gdb_id_to_thread, decode_address): New prototypes.
17150 * target.h (struct target_ops): Add get_tls_address.
17151 * thread-db.c (maybe_attach_thread): Save the thread handle.
17152 (thread_db_get_tls_address): New.
17153
17154 2006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
17155
17156 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
17157 (linux_resume_one_process): Take a siginfo_t *. Update all
17158 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
17159 (struct pending_signals): Add a siginfo_t.
17160 (linux_wait_for_process): Always set last_status.
17161 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
17162 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
17163 * linux-low.h (struct process_info): Add last_status.
17164
17165 2006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
17166
17167 * remote-utils.c (try_rle): New function.
17168 (putpkt_binary): Use it.
17169
17170 2006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
17171
17172 * Makefile.in (clean): Clean reg-x86-64-linux.c.
17173 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
17174 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
17175 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
17176 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
17177 point registers.
17178
17179 2006-08-08 Richard Sandiford <richard@codesourcery.com>
17180
17181 * server.c (terminal_fd): New variable.
17182 (old_foreground_pgrp): Likewise.
17183 (restore_old_foreground_pgrp): New function.
17184 (start_inferior): Record the terminal file descriptor in terminal_fd
17185 and its original foreground group in old_foreground_pgrp. Register
17186 restore_old_foreground_pgrp with atexit().
17187
17188 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
17189
17190 * server.c (handle_query): Correct qPart to qXfer.
17191
17192 2006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
17193
17194 * configure.ac: Check for more headers which are missing on
17195 Windows. Automatically supply -lwsock32 and USE_WIN32API.
17196 * configure.srv: Add Cygwin and mingw32.
17197 * remote-utils.c: Don't include headers unconditionally which
17198 are missing on mingw32. Include <winsock.h> for mingw32.
17199 (remote_open): Adjust for mingw32 support. Flush
17200 standard error after writing to it.
17201 (remote_close, putpkt_binary, input_interrupt, block_async_io)
17202 (unblock_async_io, enable_async_io, disable_async_io)
17203 (readchar, getpkt): Update for Winsock support.
17204 (prepare_resume_reply): Expect a protocol signal number.
17205 * server.c: Disable <sys/wait.h> on mingw32.
17206 (start_inferior): Adjust for mingw32 support. Flush
17207 standard error after writing to it.
17208 (attach_inferior): Likewise. Use protocol signal
17209 numbers.
17210 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
17211 and names.
17212 * win32-i386-low.c: New file.
17213 * Makefile.in (XM_CLIBS): Set.
17214 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
17215 (win32-i386-low.o): New dependency rule.
17216 * linux-low.c (linux_wait): Use target signal numbers.
17217 * target.h (struct target_ops): Doc fix.
17218 * server.h (target_signal_to_name): New prototype.
17219 * gdbreplay.c: Don't include headers unconditionally which
17220 are missing on mingw32. Include <winsock.h> for mingw32.
17221 (remote_close, remote_open): Adjust for Winsock support.
17222 * configure, config.in: Regenerated.
17223
17224 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
17225
17226 * server.c (decode_xfer_read, write_qxfer_response): New.
17227 (handle_query): Take a packet length argument. Handle
17228 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
17229 the qSupported response.
17230 (main): Update call to handle_query.
17231
17232 2006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
17233
17234 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
17235 (putpkt_binary): Renamed from putpkt and adjusted for binary
17236 data.
17237 (putpkt): New wrapper for putpkt_binary.
17238 (readchar): Don't mask off the high bit.
17239 (decode_X_packet): New function.
17240 * server.c (main): Call putpkt_binary if a handler sets the packet
17241 length. Save the length of the incoming packet. Handle 'X'.
17242 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
17243
17244 2006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
17245
17246 * server.c (handle_query): Handle qSupported.
17247
17248 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
17249
17250 * remote-utils.c (all_symbols_looked_up): New variable.
17251 (look_up_one_symbol): Check it.
17252 * server.h (look_up_one_symbol): New declaration.
17253 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
17254
17255 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
17256
17257 * Makefile.in (linux-arm-low.o): Update dependencies.
17258 * linux-arm-low.c: Include "gdb_proc_service.h".
17259 (PTRACE_GET_THREAD_AREA): Define.
17260 (ps_get_thread_area): New function.
17261
17262 2006-05-09 Nathan Sidwell <nathan@codesourcery.com>
17263
17264 * configure.srv (m68k*-*-uclinux*): New target.
17265 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
17266 (linux_resume_one_process): Remove extraneous cast.
17267 (linux_read_offsets): New.
17268 (linux_target_op): Add linux_read_offsets on mmuless systems.
17269 * server.c (handle_query): Add qOffsets logic.
17270 * target.h (struct target_ops): Add read_offsets.
17271
17272 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
17273
17274 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
17275 (PTRACE_GET_THREAD_AREA): Define.
17276 (ps_get_thread_area): New function.
17277 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
17278 (linux-x86-64-low.o): Update.
17279
17280 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
17281
17282 * configure.ac: Remove checks for prfpregset_t.
17283 * gdb_proc_service.h: New file.
17284 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
17285 new "gdb_proc_service.h".
17286 * proc-service.c: Likewise.
17287 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
17288 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
17289 * Makefile.in (gdb_proc_service_h): Updated.
17290 * configure, config.in: Regenerated.
17291
17292 2006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
17293
17294 * remote-utils.c (prepare_resume_reply): Move declaration
17295 of gdb_id_from_wait to the top of the block.
17296
17297 2006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
17298
17299 * linux-low.c (regsets_store_inferior_registers): Read the regset
17300 from the target before filling it.
17301
17302 2006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
17303
17304 * server.c (attach_inferior): Return SIGTRAP for a successful
17305 attach.
17306
17307 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
17308
17309 * Makefile.in (OBS): Add version.o.
17310 (STAGESTUFF): Delete.
17311 (version.o): Add dependencies.
17312 (version.c): Replace rule.
17313 (clean): Remove version.c.
17314 * server.c (gdbserver_version): New.
17315 (gdbserver_usage): Use printf.
17316 (main): Handle --version and --help.
17317 * server.h (version, host_name): Add declarations.
17318
17319 2005-12-23 Eli Zaretskii <eliz@gnu.org>
17320
17321 * linux-arm-low.c:
17322 * linux-arm-low.c:
17323 * inferiors.c:
17324 * i387-fp.h:
17325 * i387-fp.c:
17326 * gdbreplay.c:
17327 * regcache.c:
17328 * proc-service.c:
17329 * mem-break.h:
17330 * mem-break.c:
17331 * linux-x86-64-low.c:
17332 * linux-sh-low.c:
17333 * linux-s390-low.c:
17334 * linux-ppc64-low.c:
17335 * linux-ppc-low.c:
17336 * linux-mips-low.c:
17337 * linux-m68k-low.c:
17338 * linux-m32r-low.c:
17339 * linux-low.h:
17340 * linux-low.c:
17341 * linux-ia64-low.c:
17342 * linux-i386-low.c:
17343 * linux-crisv32-low.c:
17344 * thread-db.c:
17345 * terminal.h:
17346 * target.h:
17347 * target.c:
17348 * server.h:
17349 * server.c:
17350 * remote-utils.c:
17351 * regcache.h:
17352 * utils.c:
17353 * Makefile.in:
17354 * configure.ac:
17355 * gdbserver.1: Add (C) after Copyright. Update the FSF
17356 address.
17357
17358 2005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
17359
17360 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
17361 (arm_breakpoint_at): Recognize both breakpoints.
17362 (the_low_target): Use the correct breakpoint instruction.
17363
17364 2005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
17365
17366 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
17367 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
17368 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
17369 (the_low_target): Update.
17370
17371 2005-10-25 Andreas Schwab <schwab@suse.de>
17372
17373 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
17374
17375 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
17376 (ia64_num_regs): Reduce to 462.
17377
17378 2005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
17379
17380 * acinclude.m4: Correct quoting.
17381 * aclocal.m4: Regenerated.
17382
17383 Suggested by SZOKOVACS Robert <szo@ies.hu>:
17384 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
17385 (thread_db_init): Call thread_db_err_str.
17386 * configure.ac: Check for TD_VERSION.
17387 * config.in, configure: Regenerated.
17388
17389 2005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17390
17391 * server.h (error, fatal, warning): Add ATTR_FORMAT.
17392
17393 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
17394
17395 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
17396 is not available. Define HAVE_PTRACE_GETREGS if it is.
17397 * config.in, configure: Regenerated.
17398 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
17399 * linux-i386-low.c, linux-m68k-low.c: Update to use
17400 HAVE_PTRACE_GETREGS.
17401 * linux-low.c (regsets_fetch_inferior_registers)
17402 (regsets_store_inferior_registers): Only return 0 if we processed
17403 GENERAL_REGS.
17404 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
17405 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
17406
17407 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
17408
17409 * inferiors.c (struct thread_info): Add gdb_id.
17410 (add_thread): Add gdb_id argument.
17411 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
17412 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
17413 calls to add_thread.
17414 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
17415 * server.c (handle_query): Use thread_to_gdb_id.
17416 (handle_v_cont, main): Use gdb_id_to_thread_id.
17417 * server.h (add_thread): Update prototype.
17418 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
17419 prototypes.
17420
17421 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
17422
17423 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
17424 left-padded registers.
17425 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
17426 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
17427
17428 2005-07-01 Steve Ellcey <sje@cup.hp.com>
17429
17430 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
17431 * configure: Regenerate.
17432 * config.in: Regenerate.
17433 * server.h (NEED_DECLARATION_STRERROR):
17434 Replace with !HAVE_DECL_STRERROR.
17435
17436 2005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
17437
17438 * linux-low.c (linux_wait, linux_send_signal): Don't test
17439 an unsigned long variable for > 0 if it could be MAX_ULONG.
17440 * server.c (myresume): Likewise.
17441 * target.c (set_desired_inferior): Likewise.
17442
17443 2005-06-13 Mark Kettenis <kettenis@gnu.org>
17444
17445 * configure.ac: Simplify and improve check for socklen_t.
17446 * configure, config.in: Regenerate.
17447
17448 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
17449
17450 * acconfig.h: Remove.
17451 * configure.ac: Add a test for socklen_t. Use three-argument
17452 AC_DEFINE throughout.
17453 * config.in: Regenerated using autoheader 2.59.
17454 * configure: Regenerated.
17455
17456 * gdbreplay.c (socklen_t): Provide a default.
17457 (remote_open): Use socklen_t.
17458 * remote-utils.c (socklen_t): Provide a default.
17459 (remote_open): Use socklen_t.
17460 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
17461 unsigned char.
17462
17463 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
17464 char for buffers.
17465 * linux-low.c (linux_read_memory, linux_write_memory)
17466 (linux_read_auxv): Likewise.
17467 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
17468 (check_mem_write): Likewise.
17469 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
17470 Likewise.
17471 * regcache.c (struct inferior_rgcache_data, registers_to_string)
17472 (registers_from_string, register_data): Likewise.
17473 * server.c (handle_query, main): Likewise.
17474 * server.h (convert_ascii_to_int, convert_int_to_ascii)
17475 (decode_M_packet): Likewise.
17476 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
17477 * target.h (struct target_ops): Update read_memory, write_memory,
17478 and read_auxv.
17479 (read_inferior_memory, write_inferior_memory): Update.
17480 * linux-low.h (struct linux_target_ops): Change type of breakpoint
17481 to unsigned char *.
17482 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
17483 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
17484 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
17485 linux-s390-low.c, linux-sh-low.c: Update for changes in
17486 read_inferior_memory and the_low_target->breakpoint.
17487
17488 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
17489
17490 * Makefile.in (SFILES): Add linux-ppc64-low.c.
17491 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
17492 * configure.srv: Add powerpc64-*-linux*.
17493 * linux-ppc64-low.c: New file.
17494
17495 2005-05-23 Orjan Friberg <orjanf@axis.com>
17496
17497 * linux-cris-low.c: New file with support for CRIS.
17498 * linux-crisv32-low.c: Ditto for CRISv32.
17499 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
17500 (clean): Add reg-cris.c and reg-crisv32.c.
17501 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
17502 reg-crisv32.o, and reg-crisv32.c to make rules.
17503 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
17504 recognized targets.
17505
17506 2005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
17507
17508 * linux-low.c (fetch_register): Ensure buffer size is a multiple
17509 of sizeof (PTRACE_XFER_TYPE).
17510 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
17511
17512 2005-05-12 Orjan Friberg <orjanf@axis.com>
17513
17514 * target.h (struct target_ops): Add insert_watchpoint,
17515 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
17516 pointers for hardware watchpoint support.
17517 * linux-low.h (struct linux_target_ops): Ditto.
17518 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
17519 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
17520 to linux_target_ops.
17521 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
17522 reply packet.
17523 * server.c (main): Recognize 'Z' and 'z' packets.
17524
17525 2005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
17526
17527 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
17528 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
17529 (the_low_target): Add new members.
17530
17531 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
17532
17533 * proc-service.c (ps_lgetregs): Search all_processes instead of
17534 all_threads.
17535
17536 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
17537
17538 * server.c (start_inferior): Change return type to int.
17539 (attach_inferior): Change sigptr to int *.
17540 (handle_v_cont, handle_v_requests): Change signal to int *.
17541 (main): Change signal to int.
17542
17543 2005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
17544
17545 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
17546 * configure.srv: Add m32r*-*-linux*.
17547 * linux-m32r-low.c: New file.
17548
17549 2005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
17550
17551 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
17552
17553 2005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
17554
17555 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
17556 Take unsigned long arguments for PIDs.
17557 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
17558 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
17559 (wait_for_sigstop, linux_resume_one_process)
17560 (regsets_fetch_inferior_registers, linux_send_signal)
17561 (linux_read_auxv): Likewise. Update the types of variables holding
17562 PIDs. Update format string specifiers.
17563 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
17564 * remote-utils.c (prepare_resume_reply): Likewise.
17565 * server.c (cont_thread, general_thread, step_thread)
17566 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
17567 unsigned long.
17568 (handle_query): Update format specifiers.
17569 (handle_v_cont, main): Use strtoul for thread IDs.
17570 * server.h (struct inferior_list_entry): Use unsigned long for ID.
17571 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
17572 (general_thread, step_thread, thread_from_wait)
17573 (old_thread_from_wait): Update.
17574 * target.h (struct thread_resume): Use unsigned long for THREAD.
17575 (struct target_ops): Use unsigned long for arguments to attach and
17576 thread_alive.
17577
17578 2005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
17579
17580 * acinclude.m4: Include bfd/bfd.m4 directly.
17581 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
17582 <agriffis@toolchain.org>.
17583 * aclocal.m4, configure: Regenerated.
17584
17585 2005-01-07 Andrew Cagney <cagney@gnu.org>
17586
17587 * configure.ac: Rename configure.in, require autoconf 2.59.
17588 * configure: Re-generate.
17589
17590 2004-12-08 Daniel Jacobowitz <dan@debian.org>
17591
17592 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
17593 LIBS when finished.
17594 * aclocal.m4: Regenerated.
17595 * configure: Regenerated.
17596
17597 2004-11-21 Andreas Schwab <schwab@suse.de>
17598
17599 * linux-m68k-low.c (m68k_num_gregs): Define.
17600 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
17601 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
17602 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
17603 (m68k_breakpoint_at): New. Add to the_low_target.
17604
17605 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
17606 srv_linux_thread_db to yes.
17607
17608 2004-10-20 Joel Brobecker <brobecker@gnat.com>
17609
17610 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
17611 (ARCH_SET_FS): Likewise.
17612 (ARCH_GET_FS): Likewise.
17613 (ARCH_GET_GS): Likewise.
17614
17615 2004-10-16 Daniel Jacobowitz <dan@debian.org>
17616
17617 * linux-i386-low.c (ps_get_thread_area): New.
17618 * linux-x86-64-low.c (ps_get_thread_area): New.
17619 * linux-low.c: Include <sys/syscall.h>.
17620 (linux_kill_one_process): Don't kill the first thread here.
17621 (linux_kill): Kill the first thread here.
17622 (kill_lwp): New function.
17623 (send_sigstop, linux_send_signal): Use it.
17624 * proc-service.c: Clean up #ifdefs.
17625 (fpregset_info): Delete.
17626 (ps_lgetregs): Update and enable implementation.
17627 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
17628 implementations.
17629 * remote-utils.c (struct sym_cache, symbol_cache): New.
17630 (input_interrupt): Print a clearer message.
17631 (async_io_enabled): New variable.
17632 (enable_async_io, disable_async_io): Use it. Update comments.
17633 (look_up_one_symbol): Use the symbol cache.
17634 * thread-db.c (thread_db_look_up_symbols): New function.
17635 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
17636
17637 2004-10-16 Daniel Jacobowitz <dan@debian.org>
17638
17639 * configure.in: Test for -rdynamic.
17640 * configure: Regenerated.
17641 * Makefile (INTERNAL_LDFLAGS): New.
17642 (gdbserver, gdbreplay): Use it.
17643
17644 2004-09-02 Andrew Cagney <cagney@gnu.org>
17645
17646 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
17647
17648 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
17649
17650 * linux-low.c (linux_wait): Clear all_processes list also.
17651
17652 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
17653
17654 * linux-low.c: Include <errno.h>. Remove extern declaration of
17655 errno.
17656
17657 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
17658
17659 * gdbreplay.c, server.h, utils.c: Update copyright years.
17660
17661 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
17662
17663 * server.c (main): Print child status or termination signal from
17664 variable 'signal', not 'sig'.
17665
17666 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
17667
17668 * linux-low.c (linux_read_memory): Change return type to
17669 int. Check for and return error from ptrace().
17670 * target.c (read_inferior_memory): Change return type to int. Pass
17671 back return status from the_target->read_memory().
17672 * target.h (struct target_ops): Adapt *read_memory() prototype.
17673 Update comment.
17674 (read_inferior_memory): Adapt prototype.
17675 * server.c (main): Return an error packet if
17676 read_inferior_memory() returns an error.
17677
17678 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
17679
17680 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
17681 Unify with other clean targets.
17682
17683 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
17684
17685 * server.c (handle_v_cont): Call set_desired_inferior.
17686
17687 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
17688
17689 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
17690
17691 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
17692
17693 * linux-low.c (linux_wait): Unblock async I/O.
17694 (linux_resume): Block and enable async I/O.
17695 * remote-utils.c (block_async_io, unblock_async_io): New functions.
17696 * server.h (block_async_io, unblock_async_io): Add prototypes.
17697
17698 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
17699
17700 * remote-utils.c (remote_open): Print a status notice after
17701 opening a TCP port.
17702 * server.c (attach_inferior): Print a status notice after
17703 attaching.
17704
17705 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
17706
17707 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
17708
17709 2004-02-26 Daniel Jacobowitz <drow@mvista.com>
17710
17711 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
17712 error packet.
17713 * server.c, target.h: Update copyright years.
17714
17715 2004-02-25 Roland McGrath <roland@redhat.com>
17716
17717 * target.h (struct target_ops): New member `read_auxv'.
17718 * server.c (handle_query): Handle qPart:auxv:read: query using that.
17719 * linux-low.c (linux_read_auxv): New function.
17720 (linux_target_ops): Initialize `read_auxv' member to that.
17721
17722 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17723
17724 Committed by Jim Blandy <jimb@redhat.com>.
17725
17726 * linux-s390-low.c (s390_num_regs): Update.
17727 (s390_regmap): Remove control registers. Use __s390x__ predefine
17728 instead of GPR_SIZE to distiguish s390 and s390x targets.
17729
17730 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
17731
17732 * linux-low.c: Update copyright year.
17733 (check_removed_breakpoint): Clear pending_is_breakpoint.
17734 (linux_set_resume_request, linux_queue_one_thread)
17735 (resume_status_pending_p): New functions.
17736 (linux_continue_one_thread): Use process->resume.
17737 (linux_resume): Only resume threads if there are no pending events.
17738 * linux-low.h (struct process_info): Add resume request
17739 pointer.
17740
17741 2004-01-30 Daniel Jacobowitz <drow@mvista.com>
17742
17743 * regcache.c (new_register_cache): Clear the allocated register
17744 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
17745
17746 2003-10-13 Daniel Jacobowitz <drow@mvista.com>
17747
17748 * linux-low.c (linux_resume): Take a struct thread_resume *
17749 argument.
17750 (linux_wait): Update call.
17751 (resume_ptr): New static variable.
17752 (linux_continue_one_thread): Renamed from
17753 linux_continue_one_process. Use resume_ptr.
17754 (linux_resume): Use linux_continue_one_thread.
17755 * server.c (handle_v_cont, handle_v_requests): New functions.
17756 (myresume): New function.
17757 (main): Handle 'v' case.
17758 * target.h (struct thread_resume): New type.
17759 (struct target_ops): Change argument of "resume" to struct
17760 thread_resume *.
17761 (myresume): Delete macro.
17762
17763 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
17764
17765 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
17766 (uninstall): Support DESTDIR.
17767
17768 Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
17769
17770 * configure.srv: Add xscale*linux copy of arm*linux entry.
17771
17772 2003-07-24 Daniel Jacobowitz <drow@mvista.com>
17773
17774 * linux-arm-low.c (arm_reinsert_addr): New function.
17775 (the_low_target): Add arm_reinsert_addr.
17776
17777 2003-07-08 Mark Kettenis <kettenis@gnu.org>
17778
17779 * mem-break.c: Remove whitespace at end of file.
17780
17781 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
17782
17783 * configure.in: Check whether we need to prototype strerror.
17784 * server.h: Optionally prototype strerror.
17785 * gdbreplay.c (perror_with_name): Use strerror.
17786 * linux-low.c (linux_attach_lwp): Use strerror.
17787 * utils.c (perror_with_name): Use strerror.
17788 * config.in, configure: Regenerated.
17789
17790 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
17791
17792 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
17793 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
17794
17795 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
17796
17797 * Makefile.in (SFILES): Update.
17798 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
17799 low-sun3.c: Remove files.
17800
17801 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
17802
17803 * linux-low.c: Move comment to linux_thread_alive where it belonged.
17804 (linux_detach_one_process, linux_detach): New functions.
17805 (linux_target_ops): Add linux_detach.
17806 * server.c (main): Handle 'D' packet.
17807 * target.h (struct target_ops): Add "detach" member.
17808 (detach_inferior): Define.
17809
17810 2003-06-13 Mark Kettenis <kettenis@gnu.org>
17811
17812 From Kelley Cook <kelleycook@wideopenwest.com>:
17813 * configure.srv: Accept i[34567]86 variants.
17814
17815 2003-06-05 Daniel Jacobowitz <drow@mvista.com>
17816
17817 * linux-low.c (linux_wait_for_event): Correct comment typos.
17818 (linux_resume_one_process): Call check_removed_breakpoint.
17819 (linux_send_signal): New function.
17820 (linux_target_ops): Add linux_send_signal.
17821 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
17822 of kill.
17823 * target.h (struct target_ops): Add send_signal.
17824
17825 2003-05-29 Jim Blandy <jimb@redhat.com>
17826
17827 * linux-low.c (usr_store_inferior_registers): Transfer buf in
17828 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
17829 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
17830 away part of the register's value.
17831
17832 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
17833
17834 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
17835 (linux_wait_for_event, linux_init_signals): Likewise.
17836
17837 2003-03-17 Daniel Jacobowitz <drow@mvista.com>
17838
17839 * configure.in: Check for stdlib.h.
17840 * configure: Regenerated.
17841 * config.in: Regenerated.
17842
17843 2003-01-04 Andreas Schwab <schwab@suse.de>
17844
17845 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
17846
17847 2003-01-02 Andrew Cagney <ac131313@redhat.com>
17848
17849 * Makefile.in: Remove obsolete code.
17850
17851 2002-11-20 Daniel Jacobowitz <drow@mvista.com>
17852
17853 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
17854 defined(PT_FPR0_HI).
17855
17856 2002-11-17 Stuart Hughes <seh@zee2.com>
17857
17858 * linux-arm-low.c (arm_num_regs): Increase.
17859 (arm_regmap): Include status register.
17860
17861 2002-11-17 Daniel Jacobowitz <drow@mvista.com>
17862
17863 * linux-low.c (register_addr): Remove incorrect -1 check.
17864
17865 2002-08-29 Daniel Jacobowitz <drow@mvista.com>
17866
17867 * linux-low.c (linux_create_inferior): Call setpgid. Return
17868 the new PID.
17869 (unstopped_p, linux_signal_pid): Remove.
17870 (linux_target_ops): Remove linux_signal_pid.
17871 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
17872 global instead of target method.
17873 * target.h (struct target_ops): Remove signal_pid. Update comment
17874 for create_inferior.
17875 * server.c (signal_pid): New variable.
17876 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
17877 gdbserver. Set the child to be the foreground process group.
17878 (attach_inferior): Set signal_pid.
17879
17880 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
17881
17882 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
17883
17884 2002-08-20 Jim Blandy <jimb@redhat.com>
17885
17886 * Makefile.in (LDFLAGS): Allow the configure script to establish a
17887 default for this.
17888
17889 2002-08-01 Andrew Cagney <cagney@redhat.com>
17890
17891 * Makefile.in: Make chill references obsolete.
17892
17893 2002-07-24 Kevin Buettner <kevinb@redhat.com>
17894
17895 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
17896 * configure: Regenerate.
17897 * config.in: Regenerate.
17898
17899 2002-07-09 David O'Brien <obrien@FreeBSD.org>
17900
17901 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
17902 (perror_with_name, remote_close, remote_open, expect, play): Static.
17903
17904 2002-07-04 Michal Ludvig <mludvig@suse.cz>
17905
17906 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
17907 byte offsets instead of an array of indexes.
17908 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
17909
17910 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
17911
17912 * regcache.c: Add comment.
17913
17914 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
17915
17916 * thread-db.c: New file.
17917 * proc-service.c: New file.
17918 * acinclude.m4: New file.
17919 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
17920 proc-service.o, and thread-db.o.
17921 (linux-low.o): Add USE_THREAD_DB.
17922 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
17923 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
17924 * aclocal.m4: Regenerated.
17925 * config.in: Regenerated.
17926 * configure: Regenerated.
17927 * configure.in: Check for proc_service.h, sys/procfs.h,
17928 thread_db.h, and linux/elf.h headrs.
17929 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
17930 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
17931 Check for -lthread_db and thread support.
17932 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
17933 PowerPC, and SuperH.
17934 * i387-fp.c: Constify arguments.
17935 * i387-fp.h: Likewise.
17936 * inferiors.c: (struct thread_info): Renamed from
17937 `struct inferior_info'. Remove PID member. Use generic inferior
17938 list header. All uses updated.
17939 (inferiors, signal_pid): Removed.
17940 (all_threads): New variable.
17941 (get_thread): Define.
17942 (add_inferior_to_list): New function.
17943 (for_each_inferior): New function.
17944 (change_inferior_id): New function.
17945 (add_inferior): Removed.
17946 (remove_inferior): New function.
17947 (add_thread): New function.
17948 (free_one_thread): New function.
17949 (remove_thread): New function.
17950 (clear_inferiors): Use for_each_inferior and free_one_thread.
17951 (find_inferior): New function.
17952 (find_inferior_id): New function.
17953 (inferior_target_data): Update argument type.
17954 (set_inferior_target_data): Likewise.
17955 (inferior_regcache_data): Likewise.
17956 (set_inferior_regcache_data): Likewise.
17957 * linux-low.c (linux_bp_reinsert): Remove.
17958 (all_processes, stopping_threads, using_thrads)
17959 (struct pending_signals, debug_threads, pid_of): New.
17960 (inferior_pid): Replace with macro.
17961 (struct inferior_linux_data): Remove.
17962 (get_stop_pc, add_process): New functions.
17963 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
17964 Use add_process and add_thread.
17965 (linux_attach_lwp): New function, based on old linux_attach. Use
17966 add_process and add_thread. Set stop_expected for new threads.
17967 (linux_attach): New function.
17968 (linux_kill_one_process): New function.
17969 (linux_kill): Kill all LWPs.
17970 (linux_thread_alive): Use find_inferior_id.
17971 (check_removed_breakpoints, status_pending_p): New functions.
17972 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
17973 Update. Use WNOHANG. Wait for cloned processes also. Update process
17974 struct for the found process.
17975 (linux_wait_for_event): New function.
17976 (linux_wait): Use it. Support LWPs.
17977 (send_sigstop, wait_for_sigstop, stop_all_processes)
17978 (linux_resume_one_process, linux_continue_one_process): New functions.
17979 (linux_resume): Support LWPs.
17980 (REGISTER_RAW_SIZE): Remove.
17981 (fetch_register): Use register_size instead. Call supply_register.
17982 (usr_store_inferior_registers): Likewise. Call collect_register.
17983 Fix recursive case.
17984 (regsets_fetch_inferior_registers): Improve error message.
17985 (regsets_store_inferior_registers): Add debugging.
17986 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
17987 (unstopped_p, linux_signal_pid): New functions.
17988 (linux_target_ops): Add linux_signal_pid.
17989 (linux_init_signals): New function.
17990 (initialize_low): Call it. Initialize using_threads.
17991 * regcache.c (inferior_regcache_data): Add valid
17992 flag.
17993 (get_regcache): Fetch registers lazily. Add fetch argument
17994 and update all callers.
17995 (regcache_invalidate_one, regcache_invalidate): New
17996 functions.
17997 (new_register_cache): Renamed from create_register_cache.
17998 Return the new regcache.
17999 (free_register_cache): Change argument to a void *.
18000 (registers_to_string, registers_from_string): Call get_regcache
18001 with fetch flag set.
18002 (register_data): Make static. Pass fetch flag to get_regcache.
18003 (supply_register): Call get_regcache with fetch flag clear.
18004 (collect_register): Call get_regcache with fetch flag set.
18005 (collect_register_as_string): New function.
18006 * regcache.h: Update.
18007 * remote-utils.c (putpkt): Flush after debug output and use
18008 stderr.
18009 Handle input interrupts while waiting for an ACK.
18010 (input_interrupt): Use signal_pid method.
18011 (getpkt): Flush after debug output and use stderr.
18012 (outreg): Use collect_register_as_string.
18013 (new_thread_notify, dead_thread_notify): New functions.
18014 (prepare_resume_reply): Check using_threads. Set thread_from_wait
18015 and general_thread.
18016 (look_up_one_symbol): Flush after debug output.
18017 * server.c (step_thread, server_waiting): New variables.
18018 (start_inferior): Don't use signal_pid. Update call to mywait.
18019 (attach_inferior): Update call to mywait.
18020 (handle_query): Handle qfThreadInfo and qsThreadInfo.
18021 (main): Don't fetch/store registers explicitly. Use
18022 set_desired_inferior. Support proposed ``Hs'' packet. Update
18023 calls to mywait.
18024 * server.h: Update.
18025 (struct inferior_list, struct_inferior_list_entry): New.
18026 * target.c (set_desired_inferior): New.
18027 (write_inferior_memory): Constify.
18028 (mywait): New function.
18029 * target.h: Update.
18030 (struct target_ops): New signal_pid method.
18031 (mywait): Removed macro, added prototype.
18032
18033 * linux-low.h (regset_func): Removed.
18034 (regset_fill_func, regset_store_func): New.
18035 (enum regset_type): New.
18036 (struct regset_info): Add type field. Use new operation types.
18037 (struct linux_target_ops): stop_pc renamed to get_pc.
18038 Add decr_pc_after_break and breakpoint_at.
18039 (get_process, get_thread_proess, get_process_thread)
18040 (strut process_info, all_processes, linux_attach_lwp)
18041 (thread_db_init): New.
18042
18043 * linux-arm-low.c (arm_get_pc, arm_set_pc,
18044 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
18045 (the_low_target): Add new members.
18046 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
18047 (i386_store_fpxregset): Constify.
18048 (target_regsets): Add new kind identifier.
18049 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
18050 (i386_set_pc): Add debugging.
18051 (i386_breakpoint_at): New function.
18052 (the_low_target): Add new members.
18053 * linux-mips-low.c (mips_get_pc, mips_set_pc)
18054 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
18055 (mips_breakpoint_at): New.
18056 (the_low_target): Add new members.
18057 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
18058 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
18059 (the_low_target): Add new members.
18060 * linux-sh-low.c (sh_get_pc, sh_set_pc)
18061 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
18062 (the_low_target): Add new members.
18063 * linux-x86-64-low.c (target_regsets): Add new kind
18064 identifier.
18065
18066 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
18067
18068 From Martin Pool <mbp@samba.org>:
18069 * server.c (gdbserver_usage): New function.
18070 (main): Call it.
18071
18072 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
18073
18074 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
18075 stop_at -> stop_pc.
18076
18077 2002-05-04 Andrew Cagney <ac131313@redhat.com>
18078
18079 * Makefile.in: Remove obsolete code.
18080
18081 2002-04-24 Michal Ludvig <mludvig@suse.cz>
18082
18083 * linux-low.c (regsets_fetch_inferior_registers),
18084 (regsets_store_inferior_registers): Removed cast to int from
18085 ptrace() calls.
18086 * regcache.h: Added declaration of struct inferior_info.
18087
18088 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
18089
18090 * inferiors.c (struct inferior_info): Add regcache_data.
18091 (add_inferior): Call create_register_cache.
18092 (clear_inferiors): Call free_register_cache.
18093 (inferior_regcache_data, set_inferior_regcache_data): New functions.
18094 * regcache.c (struct inferior_regcache_data): New.
18095 (registers): Remove.
18096 (get_regcache): New function.
18097 (create_register_cache, free_register_cache): New functions.
18098 (set_register_cache): Don't initialize the register cache here.
18099 (registers_to_string, registers_from_string, register_data): Call
18100 get_regcache.
18101 * regcache.h: Add prototypes.
18102 * server.h: Likewise.
18103
18104 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
18105
18106 * mem-break.c: New file.
18107 * mem-break.h: New file.
18108 * Makefile.in: Add mem-break.o rule; update server.h
18109 dependencies.
18110 * inferiors.c (struct inferior_info): Add target_data
18111 member.
18112 (clear_inferiors): Free target_data member if set.
18113 (inferior_target_data, set_inferior_target_data): New functions.
18114 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
18115 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
18116 * linux-low.c (linux_bp_reinsert): New variable.
18117 (struct inferior_linux_data): New.
18118 (linux_create_inferior): Use set_inferior_target_data.
18119 (linux_attach): Likewise. Call add_inferior.
18120 (linux_wait_for_one_inferior): New function.
18121 (linux_wait): Call it.
18122 (linux_write_memory): Add const.
18123 (initialize_low): Call set_breakpoint_data.
18124 * linux-low.h (struct linux_target_ops): Add breakpoint
18125 handling members.
18126 * server.c (attach_inferior): Remove extra add_inferior
18127 call.
18128 * server.h: Include mem-break.h. Update inferior.c
18129 prototypes.
18130 * target.c (read_inferior_memory)
18131 (write_inferior_memory): New functions.
18132 * target.h (read_inferior_memory)
18133 (write_inferior_memory): Change macros to prototypes.
18134 (struct target_ops): Update comments. Add const to write_memory
18135 definition.
18136
18137 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
18138
18139 * linux-low.c (usr_store_inferior_registers): Support
18140 registers which are allowed to fail to store.
18141 * linux-low.h (linux_target_ops): Likewise.
18142 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
18143 (ppc_cannot_store_register): FPSCR may not be storable.
18144
18145 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
18146
18147 * server.h: Include <string.h> if HAVE_STRING_H.
18148 * ChangeLog: Correct paths in last ChangeLog entry.
18149
18150 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
18151
18152 * linux-low.h: Remove obsolete prototypes.
18153 (struct linux_target_ops): New.
18154 (extern the_low_target): New.
18155 * linux-low.c (num_regs, regmap): Remove declarations.
18156 (register_addr): Use the_low_target explicitly.
18157 (fetch_register): Likewise.
18158 (usr_fetch_inferior_registers): Likewise.
18159 (usr_store_inferior_registers): Likewise.
18160 * linux-arm-low.c (num_regs): Remove.
18161 (arm_num_regs): Define.
18162 (arm_regmap): Renamed from regmap, made static.
18163 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
18164 made static.
18165 (arm_cannot_store_register): Renamed from cannot_store_register,
18166 made static.
18167 (the_low_target): New.
18168 * linux-i386-low.c (num_regs): Remove.
18169 (i386_num_regs): Define.
18170 (i386_regmap): Renamed from regmap, made static.
18171 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
18172 made static.
18173 (i386_cannot_store_register): Renamed from cannot_store_register,
18174 made static.
18175 (the_low_target): New.
18176 * linux-ia64-low.c (num_regs): Remove.
18177 (ia64_num_regs): Define.
18178 (ia64_regmap): Renamed from regmap, made static.
18179 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
18180 made static.
18181 (ia64_cannot_store_register): Renamed from cannot_store_register,
18182 made static.
18183 (the_low_target): New.
18184 * linux-m68k-low.c (num_regs): Remove.
18185 (m68k_num_regs): Define.
18186 (m68k_regmap): Renamed from regmap, made static.
18187 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
18188 made static.
18189 (m68k_cannot_store_register): Renamed from cannot_store_register,
18190 made static.
18191 (the_low_target): New.
18192 * linux-mips-low.c (num_regs): Remove.
18193 (mips_num_regs): Define.
18194 (mips_regmap): Renamed from regmap, made static.
18195 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
18196 made static.
18197 (mips_cannot_store_register): Renamed from cannot_store_register,
18198 made static.
18199 (the_low_target): New.
18200 * linux-ppc-low.c (num_regs): Remove.
18201 (ppc_num_regs): Define.
18202 (ppc_regmap): Renamed from regmap, made static.
18203 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
18204 made static.
18205 (ppc_cannot_store_register): Renamed from cannot_store_register,
18206 made static.
18207 (the_low_target): New.
18208 * linux-s390-low.c (num_regs): Remove.
18209 (s390_num_regs): Define.
18210 (s390_regmap): Renamed from regmap, made static.
18211 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
18212 made static.
18213 (s390_cannot_store_register): Renamed from cannot_store_register,
18214 made static.
18215 (the_low_target): New.
18216 * linux-sh-low.c (num_regs): Remove.
18217 (sh_num_regs): Define.
18218 (sh_regmap): Renamed from regmap, made static.
18219 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
18220 made static.
18221 (sh_cannot_store_register): Renamed from cannot_store_register,
18222 made static.
18223 (the_low_target): New.
18224 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
18225 (the_low_target): New.
18226
18227 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
18228
18229 * Makefile.in: Add stamp-h target.
18230 * configure.in: Create stamp-h.
18231 * configure: Regenerated.
18232
18233 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
18234
18235 * inferiors.c: New file.
18236 * target.c: New file.
18237 * target.h: New file.
18238 * Makefile.in: Add target.o and inferiors.o. Update
18239 dependencies.
18240 * linux-low.c (inferior_pid): New static variable,
18241 moved from server.c.
18242 (linux_create_inferior): Renamed from create_inferior.
18243 Call add_inferior. Return 0 on success instead of a PID.
18244 (linux_attach): Renamed from myattach.
18245 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
18246 (linux_thread_alive): Renamed from mythread_alive.
18247 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
18248 child dies.
18249 (linux_resume): Renamed from myresume. Add missing ``return 0''.
18250 (regsets_store_inferior_registers): Correct error message.
18251 Add missing ``return 0''.
18252 (linux_fetch_registers): Renamed from fetch_inferior_registers.
18253 (linux_store_registers): Renamed from store_inferior_registers.
18254 (linux_read_memory): Renamed from read_inferior_memory.
18255 (linux_write_memory): Renamed from write_inferior_memory.
18256 (linux_target_ops): New structure.
18257 (initialize_low): Call set_target_ops ().
18258 * remote-utils.c (unhexify): New function.
18259 (hexify): New function.
18260 (input_interrupt): Send signals to ``signal_pid''.
18261 * server.c (inferior_pid): Remove.
18262 (start_inferior): Update create_inferior call.
18263 (attach_inferior): Call add_inferior.
18264 (handle_query): New function.
18265 (main): Call handle_query for `q' packets.
18266 * server.h: Include "target.h". Remove obsolete prototypes.
18267 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
18268
18269 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
18270
18271 * Makefile.in: Add WARN_CFLAGS. Update configury
18272 dependencies.
18273 * configure.in: Check for <string.h>
18274 * configure: Regenerate.
18275 * config.in: Regenerate.
18276 * gdbreplay.c: Include needed system headers.
18277 (remote_open): Remove strchr prototype.
18278 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
18279 * regcache.c (supply_register): Change buf argument to const void *.
18280 (supply_register_by_name): Likewise.
18281 (collect_register): Change buf argument to void *.
18282 (collect_register_by_name): Likewise.
18283 * regcache.h: Add missing prototypes.
18284 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
18285 * server.c (handle_query): New function.
18286 (attached): New static variable, moved out of main.
18287 (main): Quiet longjmp clobber warnings.
18288 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
18289 * utils.c (error): Remove NORETURN.
18290 (fatal): Likewise.
This page took 0.380217 seconds and 5 git commands to generate.