gdbsupport: rename source files to .cc
[deliverable/binutils-gdb.git] / gdbserver / ChangeLog
1 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
2
3 * Makefile.in: Rename gdbsupport source files from .c to .cc.
4
5 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
6
7 * win32-low.c (win32_create_inferior): Set signal_pid.
8
9 2020-02-12 Maciej W. Rozycki <macro@wdc.com>
10 Pedro Alves <palves@redhat.com>
11
12 Skip building gdbserver in a cross-configuration.
13 * configure.srv: Set $gdbserver_host depending on whether $target
14 is $host. Use $gdbserver_host instead of $host.
15
16 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
17
18 * configure: Re-generate.
19
20 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
21
22 * configure: Re-generate.
23
24 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
25
26 * acinclude.m4: Update warning.m4 path.
27
28 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
29
30 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
31 (handle_exception): Set siginfo_er.
32 (win32_xfer_siginfo): New function.
33
34 2020-02-07 Tom Tromey <tom@tromey.com>
35 Pedro Alves <palves@redhat.com>
36
37 * README: Update build documentation.
38 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
39 host, not target.
40 * configure.ac: Update paths.
41 * configure: Rebuild.
42 * acinclude.m4: Update paths.
43 * Makefile.in: Update include paths.
44 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
45 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
46 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
47 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
48 (%-generated.c): Update paths.
49 * Move entire directory from ../gdb/gdbserver.
50
51 2020-01-29 Maciej W. Rozycki <macro@wdc.com>
52
53 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
54
55 2020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
56
57 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
58 assignment instead of srv_linux_obj.
59
60 2020-01-28 Hannes Domani <ssbssa@yahoo.de>
61
62 * server.c (handle_qxfer_libraries): Write segment-address with
63 paddress.
64
65 2020-01-24 Hannes Domani <ssbssa@yahoo.de>
66
67 * Makefile.in (install-strip): New target.
68 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
69 * aclocal.m4: Regenerate.
70 * configure: Regenerate.
71 * configure.ac: Add AM_PROG_INSTALL_STRIP.
72
73 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
74
75 * Makefile.in (SFILES): Adjust paths to point to real files.
76 (OBS): Move waitstatus.o to target/waitstatus.o.
77 (TAGS): Transform paths appropriately.
78 (%.o): Rename to...
79 (nat/%.o): ... this pattern rule.
80 (%.o): Rename to...
81 (target/%.o): ... this pattern rule.
82 * configure.srv: Adjust paths throughout to include nat/ prefix
83 with the revant files.
84 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
85 * configure: Regenerate.
86
87 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
88
89 * Makefile.in (TAGS): Remove config files from the recipe.
90
91 2020-01-14 Tom Tromey <tom@tromey.com>
92
93 * configure: Rebuild.
94 * configure.ac: Remove any checks that were added to common.m4.
95 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
96 lib-link.m4.
97
98 2020-01-14 Tom Tromey <tom@tromey.com>
99
100 * server.h: Include config.h.
101 * gdbreplay.c: Include config.h.
102 * configure: Rebuild.
103 * configure.ac: Don't source common.host.
104 * acinclude.m4: Update path.
105 * Makefile.in (INCSUPPORT): New variable.
106 (INCLUDE_CFLAGS): Add INCSUPPORT.
107 (SFILES): Update paths.
108 (version-generated.c): Update path to create-version.sh.
109 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
110
111 2020-01-14 Tom Tromey <tom@tromey.com>
112
113 * configure.ac (LIBS): Use WIN32APILIBS.
114 (USE_WIN32API): Don't define.
115 * configure: Rebuild.
116
117 2020-01-14 Tom Tromey <tom@tromey.com>
118
119 * configure: Rebuild.
120
121 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
122
123 * Makefile.in (%-generated.c): Remove rule for files from
124 regformats/i386.
125
126 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
127
128 * configure: Re-generate.
129
130 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
131
132 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
133 Define to static.
134 * tracepoint.c (stop_tracing, flush_trace_buffer,
135 about_to_request_buffer_space, get_trace_state_variable_value,
136 set_trace_state_variable_value, gdb_collect): Add declaration.
137
138 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
139
140 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
141 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
142 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
143 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
144 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
145 static.
146
147 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
148
149 * inferiors.c: Include gdbsupport/common-inferior.h.
150
151 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
152
153 * hostio-errno.c: Include hostio.h.
154
155 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
156
157 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
158 prerequisite.
159
160 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
161
162 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
163 * linux-arm-tdesc.h: Include arch/arm.h.
164
165 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
166
167 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
168
169 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
170
171 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
172 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
173
174 2020-01-10 Pedro Alves <palves@redhat.com>
175
176 * fork-child.c (post_fork_inferior): Pass target down to
177 startup_inferior.
178 * inferiors.c (switch_to_thread): Add process_stratum_target
179 parameter.
180 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
181 * nto-low.c (nto_target_ops): Now a process_stratum_target.
182 * linux-low.c (linux_target_ops): Now a process_stratum_target.
183 * remote-utils.c (prepare_resume_reply): Pass the target to
184 switch_to_thread.
185 * target.c (the_target): Now a process_stratum_target.
186 (done_accessing_memory): Pass the target to switch_to_thread.
187 (set_target_ops): Ajust to use process_stratum_target.
188 * target.h (struct target_ops): Rename to ...
189 (struct process_stratum_target): ... this.
190 (the_target, set_target_ops): Adjust.
191 (prepare_to_access_memory): Adjust comment.
192 * win32-low.c (child_xfer_memory): Adjust to use
193 process_stratum_target.
194 (win32_target_ops): Now a process_stratum_target.
195
196 2020-01-06 Eli Zaretskii <eliz@gnu.org>
197 Pedro Alves <palves@redhat.com>
198
199 * win32-low.c (get_child_debug_event): Extract the fatal exception
200 from the exit status and convert to the equivalent Posix signal
201 number.
202 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
203 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
204
205 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
206
207 * Makefile.in: Use INSTALL_PROGRAM_ENV.
208
209 2020-01-01 Joel Brobecker <brobecker@adacore.com>
210
211 * server.c (gdbserver_version): Change copyright year to 2020.
212 * gdbreplay.c (gdbreplay_version): Likewise.
213
214 2019-12-19 Christian Biesinger <cbiesinger@google.com>
215
216 * configure: Regenerate.
217 * configure.ac: Quote variable arguments of test.
218
219 2019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
220
221 * Makefile.in: Fix build with GNU Make 3.81
222
223 2019-12-16 Tom Tromey <tromey@adacore.com>
224
225 * server.c (get_exec_file): Constify result.
226
227 2019-12-10 Christian Biesinger <cbiesinger@google.com>
228
229 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
230 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
231 * config.in: Regenerate.
232 * configure: Regenerate.
233 * configure.ac: Don't check for strerror.
234 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
235 Call safe_strerror instead of strerror.
236 * server.h (strerror): Remove this now-unnecessary declaration.
237 * tracepoint.c (init_named_socket): Call safe_strerror instead of
238 strerror.
239 (gdb_agent_helper_thread): Likewise.
240 * utils.c (perror_with_name): Likewise.
241
242 2019-11-26 Tom Tromey <tom@tromey.com>
243
244 * configure, config.in: Rebuild.
245
246 2019-11-26 Tom Tromey <tom@tromey.com>
247
248 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
249 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
250 gdb_sigmask.
251 * configure, config.in: Rebuild.
252
253 2019-11-26 Tom Tromey <tom@tromey.com>
254
255 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
256 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
257 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
258 * acinclude.m4: Include ax_pthread.m4.
259 * config.in, configure: Rebuild.
260
261 2019-11-26 Christian Biesinger <cbiesinger@google.com>
262
263 * debug.c (debug_set_output): Call safe_strerror instead of
264 strerror.
265 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
266 (linux_kill_one_lwp): Likewise.
267 (linux_detach_one_lwp): Likewise.
268 (linux_wait_for_event_filtered): Likewise.
269 (store_register): Likewise.
270 * lynx-low.c (lynx_attach): Likewise.
271 * mem-break.c (insert_memory_breakpoint): Likewise.
272 (remove_memory_breakpoint): Likewise.
273 (delete_fast_tracepoint_jump): Likewise.
274 (set_fast_tracepoint_jump): Likewise.
275 (uninsert_fast_tracepoint_jumps_at): Likewise.
276 (reinsert_fast_tracepoint_jumps_at): Likewise.
277 * nto-low.c (nto_xfer_memory): Likewise.
278 (nto_resume): Likewise.
279
280 2019-11-20 Luis Machado <luis.machado@linaro.org>
281
282 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
283 instead of register count.
284 * tdesc.c (tdesc_contains_feature): New function.
285 * tdesc.h (tdesc_contains_feature): New prototype.
286
287 2019-11-15 Christian Biesinger <cbiesinger@google.com>
288
289 * Makefile.in: Add safe-strerror.c.
290 * configure: Regenerate.
291 * configure.ac: Don't source common.host.
292
293 2019-11-15 Christian Biesinger <cbiesinger@google.com>
294
295 * config.in: Regenerate.
296 * configure: Regenerate.
297
298 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
299
300 * ax.c (ax_printf): Handle size_t_arg.
301
302 2019-11-06 Christian Biesinger <cbiesinger@google.com>
303
304 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
305 * mi/mi-main.c (output_cores): Likewise.
306 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
307 (linux_xfer_osdata_modules): Likewise.
308 * remote.c (register_remote_support_xml): Likewise.
309 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
310 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
311
312 2019-11-01 Christian Biesinger <cbiesinger@google.com>
313
314 * configure: Regenerate.
315 * configure.ac: Remove check for strerror_r.
316
317 2019-10-31 Christian Biesinger <cbiesinger@google.com>
318
319 * config.in: Regenerate.
320 * configure: Regenerate.
321 * configure.ac: Also check for strerror_r.
322
323 2019-10-31 Christian Biesinger <cbiesinger@google.com>
324
325 * ax.h (debug_agent): Remove duplicate declaration.
326
327 2019-10-26 Tom de Vries <tdevries@suse.de>
328
329 * linux-aarch64-low.c: Fix typos in comments.
330 * linux-arm-low.c: Same.
331 * linux-low.c: Same.
332 * linux-ppc-low.c: Same.
333 * proc-service.c: Same.
334 * regcache.h: Same.
335 * server.c: Same.
336 * tracepoint.c: Same.
337 * win32-low.c: Same.
338
339 2019-10-25 Tom Tromey <tromey@adacore.com>
340
341 * utils.c (xstrdup): Remove.
342
343 2019-10-23 Tom Tromey <tom@tromey.com>
344
345 * configure, config.in: Rebuild.
346
347 2019-10-23 Tom Tromey <tom@tromey.com>
348
349 * configure: Rebuild.
350 * acinclude.m4: Use m4_include, not sinclude.
351
352 2019-10-17 Tom Tromey <tromey@adacore.com>
353
354 * configure: Rebuild.
355 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
356 in AC_CONFIG_FILES invocation.
357 * Makefile.in (stamp-h, Makefile): Use new-style config.status
358 invocation.
359
360 2019-10-16 Christian Biesinger <cbiesinger@google.com>
361
362 * server.c: Include xml-builtin.h.
363 (get_xml_features): Don't declare xml_builtins here.
364
365 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
366
367 * Makefile.in: Remove references to vec-ipa.o.
368
369 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
370
371 * Makefile.in: Remove references to vec.c.
372
373 2019-10-02 Christian Biesinger <cbiesinger@google.com>
374
375 * server.c (server_waiting): Change to bool.
376 (extended_protocol): Likewise.
377 (response_needed): Likewise.
378 (exit_requested): Likewise.
379 (run_once): Likewise.
380 (report_no_resumed): Likewise.
381 (non_stop): Likewise.
382 (disable_packet_vCont): Likewise.
383 (disable_packet_Tthread): Likewise.
384 (disable_packet_qC): Likewise.
385 (disable_packet_qfThreadInfo): Likewise.
386 (handle_general_set): Update.
387 (handle_detach): Update.
388 (handle_monitor_command): Update.
389 (handle_query): Update.
390 (captured_main): Update.
391 (process_serial_event): Update.
392 * server.h (server_waiting): Change to bool.
393 (disable_packet_vCont): Likewise.
394 (disable_packet_Tthread): Likewise.
395 (disable_packet_qC): Likewise.
396 (disable_packet_qfThreadInfo): Likewise.
397 (run_once): Likewise.
398 (non_stop): Likewise.
399 * target.c (target_stop_and_wait): Update.
400
401 2019-10-02 Tom Tromey <tromey@adacore.com>
402
403 * Makefile.in (SFILES): Add common-inferior.c.
404 (OBS): Add common-inferior.o.
405 * server.c (startup_with_shell): Don't define.
406
407 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
408
409 * linux-low.c (linux_low_read_btrace): Update for change to
410 std::vector.
411
412 2019-09-20 Christian Biesinger <cbiesinger@google.com>
413
414 * debug.c (debug_threads): Remove comment in favor of the header.
415 * debug.h (using_threads): Add declaration.
416 (debug_threads): Add comment.
417 * linux-aarch64-low.c: Include debug.h and remove declaration of
418 debug_threads.
419 * nto-low.c: Likewise.
420 * remote-utils.c: Likewise.
421 * thread-db.c: Likewise.
422
423 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
424
425 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
426 and powerpc-cell64l-ipa.o.
427 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
428 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
429 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
430 (spu*-*-*): Remove.
431
432 * spu-low.c: Remove file.
433
434 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
435 (parse_spufs_run): Remove.
436 (ppc_get_pc): Remove Cell/B.E. support.
437 (ppc_set_pc): Likewise.
438 (ppc_breakpoint_at): Likewise.
439 (ppc_arch_setup): Likewise.
440 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
441 tdesc_powerpc_cell32l.
442 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
443 or init_registers_powerpc_cell32l.
444 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
445 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
446 or init_registers_powerpc_cell32l.
447 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
448 (init_registers_powerpc_cell32l): Remove prototype.
449 (init_registers_powerpc_cell64l): Likewise.
450
451 * target.h (struct target_ops): Remove qxfer_spu member.
452 * server.c (handle_qxfer_spu): Remove.
453 (qxfer_packets): Remove entry for "spu".
454 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
455 * linux-low.c (SPUFS_MAGIC): Remove.
456 (spu_enumerate_spu_ids): Remove.
457 (linux_qxfer_spu): Remove.
458 (linux_target_ops): Remove qxfer_spu member.
459 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
460 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
461 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
462
463 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
464
465 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
466 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
467 * config.in: Regenerate.
468 * configure: Regenerate.
469
470 2019-08-15 Tom Tromey <tromey@adacore.com>
471
472 * target.c (target_write_memory): Use gdb::byte_vector.
473
474 2019-08-15 Tom Tromey <tromey@adacore.com>
475
476 * tracepoint.c (write_inferior_data_pointer)
477 (write_inferior_integer, write_inferior_int8)
478 (write_inferior_uinteger, m_tracepoint_action_download)
479 (r_tracepoint_action_download, x_tracepoint_action_download)
480 (l_tracepoint_action_download, clear_inferior_trace_buffer)
481 (download_agent_expr, download_tracepoint_1)
482 (download_trace_state_variables, upload_fast_traceframes): Update.
483 * server.c (gdb_write_memory): Update.
484 * remote-utils.c (relocate_instruction): Update.
485 * proc-service.c (ps_pdwrite): Update.
486 * mem-break.c (remove_memory_breakpoint)
487 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
488 (uninsert_fast_tracepoint_jumps_at)
489 (reinsert_fast_tracepoint_jumps_at): Update.
490 * linux-x86-low.c (append_insns)
491 (i386_install_fast_tracepoint_jump_pad)
492 (amd64_write_goto_address, i386_write_goto_address): Update.
493 * linux-s390-low.c (append_insns, s390_write_goto_address):
494 Update.
495 * linux-ppc-low.c (ppc_relocate_instruction)
496 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
497 (ppc_write_goto_address): Update.
498 * linux-aarch64-low.c (append_insns): Update.
499 * target.h (struct target_ops): Update.
500 (write_inferior_memory): Don't declare.
501 * target.c (target_write_memory): Rename from
502 write_inferior_memory. Remove old target_write_memory.
503
504 2019-08-15 Tom Tromey <tromey@adacore.com>
505
506 * target.c (write_inferior_memory): Use std::vector.
507
508 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
509
510 PR build/24886
511 * configure.ac: Drop enable-libmcheck support.
512 * configure, config.in: Rebuild.
513 * acinclude.m4: Don't include it.
514
515 2019-07-19 Alan Hayward <alan.hayward@arm.com>
516
517 * configure.srv: Remove Arm xml files.
518
519 2019-07-19 Alan Hayward <alan.hayward@arm.com>
520
521 * configure.srv: Add new files. Remove xml generated files.
522 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
523 registers.
524 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
525 * linux-aarch32-tdesc.c: New file.
526 * linux-aarch32-tdesc.h: New file.
527 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
528 * linux-arm-low.c (init_registers_arm, tdesc_arm)
529 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
530 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
531 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
532 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
533 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
534 (arm_read_description): Call arm_linux_read_description.
535 (initialize_low_arch): Don't init registers.
536 * linux-arm-tdesc.c: New file.
537 * linux-arm-tdesc.h: New file.
538
539 2019-07-10 Alan Hayward <alan.hayward@arm.com>
540
541 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
542 Move counter inside for.
543 (arm_read_description): Check ptrace earlier.
544 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
545
546 2019-07-09 Tom Tromey <tom@tromey.com>
547
548 * configure: Rebuild.
549 * configure.ac: Change common to gdbsupport.
550 * acinclude.m4: Change common to gdbsupport.
551 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
552 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
553 common to gdbsupport.
554 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
555 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
556 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
557 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
558 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
559 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
560 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
561 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
562 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
563 common to gdbsupport.
564
565 2019-07-04 Alan Hayward <alan.hayward@arm.com>
566
567 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
568 defines.
569 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
570
571 2019-07-04 Alan Hayward <alan.hayward@arm.com>
572
573 * configure.srv: Remove legacy xml.
574 * linux-aarch64-low.c (initialize_low_arch): Remove
575 initialize_low_tdesc call.
576 * linux-aarch64-tdesc-selftest.c: Remove file.
577 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
578 * linux-x86-low.c (initialize_low_arch): Remove
579 initialize_low_tdesc call.
580 * linux-x86-tdesc-selftest.c: Remove file.
581 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
582
583 2019-06-20 Tom de Vries <tdevries@suse.de>
584
585 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
586 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
587
588 2019-06-19 Tom de Vries <tdevries@suse.de>
589
590 * debug.h (debug_write): Change return type to ssize_t.
591 * debug.c (debug_write): Same.
592
593 2019-06-14 Tom Tromey <tom@tromey.com>
594
595 * configure.ac: Use new path to gnulib.
596 * configure: Rebuild.
597 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
598 to gnulib.
599
600 2019-06-11 Tom Tromey <tom@tromey.com>
601
602 * Makefile.in (SFILES): Add alloc.c.
603 (OBS): Add alloc.o.
604 (IPA_OBJS): Add alloc-ipa.o.
605 (alloc-ipa.o): New target.
606 (%.o: ../%.c): New pattern rule.
607
608 2019-06-10 Tom Tromey <tromey@adacore.com>
609
610 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
611 end warning with a newline.
612 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
613 newline.
614 * thread-db.c (attach_thread): Don't end warning with a newline.
615 (thread_db_notice_clone): Likewise.
616 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
617 newline.
618 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
619 end warning with a newline.
620
621 2019-06-04 Pedro Alves <palves@redhat.com>
622
623 * server.c (captured_main): Use make_unique_xstrdup.
624
625 2019-06-02 Tom Tromey <tom@tromey.com>
626
627 * gdbreplay.c (fromhex): Remove.
628 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
629
630 2019-05-29 Tom Tromey <tromey@adacore.com>
631
632 * configure: Rebuild.
633
634 2019-05-06 Kevin Buettner <kevinb@redhat.com>
635
636 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
637 sign extension code on 32-bit builds.
638
639 2019-05-03 Eli Zaretskii <eliz@gnu.org>
640
641 * remote-utils.c:
642 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
643
644 2019-04-19 Tom Tromey <tom@tromey.com>
645
646 * server.c (struct vstop_notif): Derive from notif_event.
647 <base>: Remove.
648 (queue_stop_reply): Update.
649 (remove_all_on_match_ptid): Change type. Rewrite.
650 (discard_queued_stop_replies): Rewrite.
651 (in_queued_stop_replies_ptid): Change type.
652 (in_queued_stop_replies): Rewrite.
653 (notif_stop): Update.
654 (queue_stop_reply_callback): Update.
655 (captured_main): Don't call initialize_notif.
656 (push_stop_notification): Update.
657 * notif.c (notif_write_event, handle_notif_ack)
658 (notif_event_enque, notif_push): Update.
659 (notif_event_xfree, initialize_notif): Remove.
660 * notif.h (struct notif_event): Include <list>, not
661 "common/queue.h".
662 (struct notif_server) <queue>: Now a std::list.
663 (notif_event_p): Remove typedef.
664 (initialize_notif): Don't declare.
665 (struct notif_event): Add virtual destructor.
666
667 2019-04-17 Alan Hayward <alan.hayward@arm.com>
668
669 * ax.c (ax_vdebug): Call debug_printf.
670 * debug.c (debug_write): New function.
671 * debug.h (debug_write): New declaration.
672 * linux-low.c (sigchld_handler): Call debug_write.
673
674 2019-04-17 Alan Hayward <alan.hayward@arm.com>
675
676 * debug.c (debug_set_output): New function.
677 (debug_vprintf): Send output to debug_file.
678 (debug_flush): Likewise.
679 * debug.h (debug_set_output): New declaration.
680 * server.c (handle_monitor_command): Add debug-file option.
681 (captured_main): Likewise.
682
683 2019-04-17 Alan Hayward <alan.hayward@arm.com>
684
685 * debug.c (remote_debug): Add definition.
686 * debug.h (remote_debug): Add declaration.
687 * hostio.c (remote_debug): Remove declaration.
688 * remote-utils.c (struct ui_file): Likewise.
689 (remote_debug): Likewise.
690 * remote-utils.h (remote_debug): Likewise,
691 * server.c (remote_debug): Remove definition.
692
693 2019-04-10 Kevin Buettner <kevinb@redhat.com>
694
695 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
696 when using a 64-bit gdbserver.
697
698 2019-04-09 Tom Tromey <tromey@adacore.com>
699
700 * linux-low.c (select_event_lwp): Use find_thread_in_random.
701
702 2019-04-08 Tom Tromey <tom@tromey.com>
703
704 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
705 throw.
706 (linux_resume_one_lwp): Likewise.
707
708 2019-04-08 Tom Tromey <tom@tromey.com>
709
710 * gdbreplay.c: Update.
711 * linux-low.c: Update.
712 * server.c: Update.
713
714 2019-04-08 Tom Tromey <tom@tromey.com>
715
716 * server.c: Use C++ exception handling.
717 * linux-low.c: Use C++ exception handling.
718 * gdbreplay.c: Use C++ exception handling.
719
720 2019-04-08 Tom Tromey <tom@tromey.com>
721
722 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
723 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
724 (captured_main, main): Update.
725 * gdbreplay.c (main): Update.
726
727 2019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
728
729 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
730 value in argument pointer, return 1 if the entry is found and 0
731 otherwise. Move comment.
732 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
733 * linux-low.h (linux_get_auxv): Declare.
734 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
735
736 2019-04-05 Tom Tromey <tromey@adacore.com>
737
738 * server.c (gdbserver_usage): Use upper-case for metasyntactic
739 variables.
740
741 2019-03-28 Alan Hayward <alan.hayward@arm.com>
742
743 * linux-low.c (AT_HWCAP2): Add define if not already included.
744
745 2019-03-26 Alan Hayward <alan.hayward@arm.com>
746
747 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
748 (aarch64_arch_setup): Call linux_get_hwcap.
749 * linux-arm-low.c (arm_get_hwcap): Remove function.
750 (arm_read_description): Call linux_get_hwcap.
751 * linux-low.c (linux_get_auxv): New function.
752 (linux_get_hwcap): Likewise.
753 (linux_get_hwcap2): Likewise.
754 * linux-low.h (linux_get_hwcap): New declaration.
755 (linux_get_hwcap2): Likewise.
756 * linux-ppc-low.c (ppc_get_auxv): Remove function.
757 (ppc_arch_setup): Call linux_get_hwcap.
758 * linux-s390-low.c (s390_get_hwcap): Remove function.
759 (s390_arch_setup): Call linux_get_hwcap.
760
761 2019-03-22 Alan Hayward <alan.hayward@arm.com>
762 Jiong Wang <jiong.wang@arm.com>
763
764 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
765 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
766 to fail.
767 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
768
769 2019-03-22 Alan Hayward <alan.hayward@arm.com>
770 Jiong Wang <jiong.wang@arm.com>
771
772 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
773 (aarch64_get_hwcap): New function.
774 (aarch64_arch_setup): Read APIA hwcap.
775
776 2019-03-22 Alan Hayward <alan.hayward@arm.com>
777 Jiong Wang <jiong.wang@arm.com>
778
779 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
780 (initialize_low_tracepoint): Likewise.
781 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
782 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
783 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
784 (aarch64_linux_read_description): Likewise.
785 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
786
787 2019-03-12 John Baldwin <jhb@FreeBSD.org>
788
789 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
790 i386_create_target_description for 'segments' parameter.
791 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
792 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
793 * win32-i386-low.c (i386_arch_setup): Likewise.
794
795 2019-03-12 Tom Tromey <tromey@adacore.com>
796
797 * linux-low.c (iterate_over_lwps): Update.
798
799 2019-03-06 Tom Tromey <tom@tromey.com>
800
801 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
802 (captured_main): Use SCOPE_EXIT.
803
804 2019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
805
806 * configure.srv: Use '$enable_unittest' instead of '$development'
807 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
808 case.
809
810 2019-02-27 Tom Tromey <tromey@adacore.com>
811
812 * gdbreplay.c (logchar): Handle \r\n.
813
814 2019-02-07 Alan Hayward <alan.hayward@arm.com>
815
816 * linux-low.c (linux_attach): Add process before lwp.
817 * server.c (attach_inferior): Check if already attached.
818
819 2019-02-07 Tom Tromey <tom@tromey.com>
820
821 * x86-tdesc.h: Rename include guard.
822 * x86-low.h: Add include guard.
823 * wincecompat.h: Rename include guard.
824 * win32-low.h: Add include guard.
825 * utils.h: Rename include guard.
826 * tracepoint.h: Rename include guard.
827 * tdesc.h: Rename include guard.
828 * target.h: Rename include guard.
829 * server.h: Rename include guard.
830 * remote-utils.h: Rename include guard.
831 * regcache.h: Rename include guard.
832 * nto-low.h: Rename include guard.
833 * notif.h: Add include guard.
834 * mem-break.h: Rename include guard.
835 * lynx-low.h: Add include guard.
836 * linux-x86-tdesc.h: Add include guard.
837 * linux-s390-tdesc.h: Add include guard.
838 * linux-ppc-tdesc-init.h: Add include guard.
839 * linux-low.h: Add include guard.
840 * linux-aarch64-tdesc.h: Add include guard.
841 * linux-aarch32-low.h: Add include guard.
842 * inferiors.h: Rename include guard.
843 * i387-fp.h: Rename include guard.
844 * hostio.h: Rename include guard.
845 * gdbthread.h: Rename include guard.
846 * gdb_proc_service.h: Rename include guard.
847 * event-loop.h: Rename include guard.
848 * dll.h: Rename include guard.
849 * debug.h: Rename include guard.
850 * ax.h: Rename include guard.
851
852 2018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
853
854 PR gdb/23985
855 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
856 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
857
858 2019-01-25 Tom Tromey <tom@tromey.com>
859
860 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
861
862 2019-01-25 Tom Tromey <tom@tromey.com>
863
864 * win32-low.c: Fix common/ includes.
865 * win32-i386-low.c: Fix common/ includes.
866 * tracepoint.c: Fix common/ includes.
867 * thread-db.c: Fix common/ includes.
868 * target.h: Fix common/ includes.
869 * symbol.c: Fix common/ includes.
870 * spu-low.c: Fix common/ includes.
871 * server.h: Fix common/ includes.
872 * server.c: Fix common/ includes.
873 * remote-utils.c: Fix common/ includes.
874 * regcache.h: Fix common/ includes.
875 * regcache.c: Fix common/ includes.
876 * nto-x86-low.c: Fix common/ includes.
877 * notif.h: Fix common/ includes.
878 * mem-break.h: Fix common/ includes.
879 * lynx-low.c: Fix common/ includes.
880 * lynx-i386-low.c: Fix common/ includes.
881 * linux-x86-tdesc-selftest.c: Fix common/ includes.
882 * linux-x86-low.c: Fix common/ includes.
883 * linux-low.c: Fix common/ includes.
884 * inferiors.h: Fix common/ includes.
885 * i387-fp.c: Fix common/ includes.
886 * hostio.c: Fix common/ includes.
887 * hostio-errno.c: Fix common/ includes.
888 * gdbthread.h: Fix common/ includes.
889 * gdbreplay.c: Fix common/ includes.
890 * fork-child.c: Fix common/ includes.
891 * event-loop.c: Fix common/ includes.
892 * ax.c:
893 (enum gdb_agent_op): Fix common/ includes.
894
895 2019-01-21 Tom Tromey <tom@tromey.com>
896
897 * tracepoint.c: Fix includes.
898 * remote-utils.c: Fix includes.
899 * linux-x86-low.c: Fix includes.
900
901 2019-01-01 Joel Brobecker <brobecker@adacore.com>
902
903 * gdbreplay.c (gdbreplay_version): Update copyright year in
904 version message.
905 * server.c (gdbserver_version): Likewise.
906
907 2018-12-05 Alan Hayward <alan.hayward@arm.com>
908
909 * linux-low.c (add_lwp): Switch ordering.
910
911 2018-11-29 Tom Tromey <tom@tromey.com>
912
913 * win32-low.c (win32_join): Take pid, not process.
914 * target.h (struct target_ops) <join>: Change argument type.
915 (join_inferior): Change argument name.
916 * spu-low.c (spu_join): Take pid, not process.
917 * server.c (handle_detach): Preserve pid before destroying
918 process.
919 * lynx-low.c (lynx_join): Take pid, not process.
920 * linux-low.c (linux_join): Take pid, not process.
921
922 2018-11-23 Alan Hayward <alan.hayward@arm.com>
923
924 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
925 (aarch64_cannot_fetch_register): Likewise.
926 (struct linux_target_ops): Update references.
927
928 2018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
929
930 * linux-ppc-low.c: Include nat/linux-ptrace.h.
931
932 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
933
934 * configure.srv (ipa_ppc_linux_regobj): Add
935 powerpc-isa207-htm-vsx32l-ipa.o and
936 powerpc-isa207-htm-vsx64l-ipa.o.
937 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
938 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
939 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
940 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
941 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
942 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
943 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
944 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
945 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
946 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
947 (init_registers_powerpc_isa207_htm_vsx32l)
948 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
949 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
950 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
951 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
952 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
953 (ppc_store_tm_ctarregset): New functions.
954 (ppc_regsets): Add entries for HTM regsets.
955 (ppc_arch_setup): Set htm in features struct when needed. Set
956 sizes for the HTM regsets.
957 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
958 (initialize_low_arch): Call
959 init_registers_powerpc_isa207_htm_vsx32l and
960 init_registers_powerpc_isa207_htm_vsx64l.
961 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
962 PPC_TDESC_ISA207_HTM_VSX.
963 (initialize_low_tracepoint): Call
964 init_registers_powerpc_isa207_htm_vsx32l and
965 init_registers_powerpc_isa207_htm_vsx64l.
966
967 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
968
969 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
970 rs6000/power-linux-pmu.xml to srv_xmlfiles.
971 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
972 (ppc_store_pmuregset): New functions.
973 (ppc_regsets): Add entries for ebb and pmu regsets.
974 (ppc_arch_setup): Set isa207 in features struct if the ebb and
975 pmu regsets are available. Set sizes for these regsets.
976
977 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
978
979 * configure.srv (ipa_ppc_linux_regobj): Add
980 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
981 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
982 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
983 rs6000/powerpc-isa207-vsx32l.xml, and
984 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
985 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
986 <PPC_TDESC_ISA207_VSX>: New enum value.
987 (init_registers_powerpc_isa207_vsx32l): Declare.
988 (init_registers_powerpc_isa207_vsx64l): Declare.
989 * linux-ppc-low.c (ppc_fill_tarregset): New function.
990 (ppc_store_tarregset): New function.
991 (ppc_regsets): Add entry for the TAR regset.
992 (ppc_arch_setup): Set isa207 in features struct when needed. Set
993 size for the TAR regsets.
994 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
995 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
996 and init_registers_powerpc_isa207_vsx64l.
997 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
998 (initialize_low_tracepoint): Call
999 init_registers_powerpc_isa207_vsx32l and
1000 init_registers_powerpc_isa207_vsx64l.
1001
1002 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1003 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1004
1005 * configure.srv (ipa_ppc_linux_regobj): Add
1006 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
1007 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
1008 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
1009 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
1010 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
1011 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
1012 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
1013 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
1014 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
1015 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
1016 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
1017 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
1018 (ppc_hwcap): Add comment.
1019 (ppc_hwcap2): New global.
1020 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
1021 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
1022 (ppc_regsets): Add entries for the DSCR and PPR regsets.
1023 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
1024 when needed. Set sizes for the the DSCR and PPR regsets.
1025 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
1026 (initialize_low_arch): Call
1027 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
1028 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
1029 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
1030 PPC_TDESC_ISA205_PPR_DSCR_VSX.
1031 (initialize_low_tracepoint): Call
1032 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
1033 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
1034
1035 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1036
1037 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
1038
1039 2018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
1040 Simon Marchi <simark@simark.ca>
1041
1042 * acinclude.m4: Include "../selftest.m4".
1043 * configure: Regenerate.
1044 * configure.ac: Use "GDB_AC_SELFTEST".
1045 * configure.srv: Use "$enable_unittests" instead of
1046 "$development" when checking whether unit tests have been
1047 enabled.
1048 * server.c (captured_main): Update message informing that
1049 selftests have been disabled.
1050
1051 2018-10-04 Tom Tromey <tom@tromey.com>
1052
1053 * configure: Rebuild.
1054
1055 2018-10-04 Tom Tromey <tom@tromey.com>
1056
1057 * server.c (handle_status): Rename inner "thread".
1058 (process_serial_event): Declare "res" in 'm' case.
1059 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
1060 (iterate_over_lwps): Rename inner "thread".
1061 (linux_qxfer_libraries_svr4): Rename inner "len".
1062 * gdbthread.h (find_thread_in_random): Rename inner "thread".
1063
1064 2018-10-01 Gary Benson <gbenson@redhat.com>
1065
1066 * gdb_proc_service.h: Moved common code to
1067 common/gdb_proc_service.h.
1068
1069 2018-10-01 Gary Benson <gbenson@redhat.com>
1070
1071 * gdb_proc_service.h: Synchronize comments and whitespace with
1072 GDB's version of this file.
1073
1074 2018-09-25 Tom Tromey <tom@tromey.com>
1075
1076 * configure: Rebuild.
1077 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
1078
1079 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
1080
1081 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
1082 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
1083 ($(IPA_LIB)): Sort IPA_OBJS.
1084
1085 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
1086
1087 * Makefile.in: Remove references to $(ADD_DEPS).
1088
1089 2018-09-16 Tom Tromey <tom@tromey.com>
1090
1091 * remote-utils.c (remote_open): Use GNU style for metasyntactic
1092 variables.
1093 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
1094 variables.
1095
1096 2018-09-05 Tom Tromey <tom@tromey.com>
1097
1098 * configure: Rebuild.
1099
1100 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
1101
1102 PR build/23399
1103 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
1104
1105 2018-08-27 Tom Tromey <tom@tromey.com>
1106
1107 PR build/23087:
1108 * configure: Rebuild.
1109
1110 2018-08-27 Tom Tromey <tom@tromey.com>
1111
1112 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
1113 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
1114 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
1115 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
1116 (s390x_emit_stack_adjust): Add casts to unsigned char.
1117
1118 2018-08-22 Simon Marchi <simon.marchi@ericsson.com>
1119
1120 PR gdb/23374
1121 PR gdb/23375
1122 * server.h (struct client_state) <disable_randomization>:
1123 Initialize to 1.
1124
1125 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1126
1127 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
1128 variable.
1129 (mips_supply_ptrace_register): Likewise.
1130
1131 2018-07-22 Tom Tromey <tom@tromey.com>
1132
1133 * configure: Rebuild.
1134
1135 2018-07-22 Tom Tromey <tom@tromey.com>
1136
1137 * win32-low.c (win32_create_inferior): Remove unused variables.
1138 * gdbreplay.c (remote_open): Remove unused variable.
1139 * remote-utils.c (remote_prepare): Remove unused variable.
1140 * x86-tdesc.h (X86_TDESC_H): Define.
1141 (amd64_expedite_regs): Define conditionally.
1142 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
1143 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
1144 * remote-utils.c (readchar): Remove unused variable.
1145
1146 2018-07-13 Pedro Alves <palves@redhat.com>
1147
1148 * linux-low.c (linux_kill): Change parameter to process_info
1149 pointer instead of pid. Adjust.
1150 * lynx-low.c (lynx_kill): Likewise.
1151 * nto-low.c (nto_kill): Likewise.
1152 * spu-low.c (spu_kill): Likewise.
1153 * win32-low.c (win32_kill): Likewise.
1154 * server.c (handle_v_kill, kill_inferior_callback)
1155 (detach_or_kill_for_exit): Adjust.
1156 * target.c (kill_inferior): Change parameter to process_info
1157 pointer instead of pid. Adjust.
1158 * target.h (struct target_ops) <kill>: Change parameter to
1159 process_info pointer instead of pid. Adjust all implementations
1160 and callers.
1161 (kill_inferior): Likewise.
1162
1163 2018-07-13 Pedro Alves <palves@redhat.com>
1164
1165 * linux-low.c (linux_detach, linux_join): Change parameter to
1166 process_info pointer instead of pid. Adjust.
1167 * lynx-low.c (lynx_detach, lynx_join): Likewise.
1168 * nto-low.c (nto_detach): Likewise.
1169 * spu-low.c (spu_detach, spu_join): Likewise.
1170 * win32-low.c (win32_detach, win32_join): Likewise.
1171 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
1172 * target.h (struct target_ops) <detach, join>: Change parameter to
1173 process_info pointer instead of pid. Adjust all implementations
1174 and callers.
1175 (detach_inferior, join_inferior): Rename 'pid' parameter to
1176 'proc'.
1177
1178 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
1179 Jan Kratochvil <jan.kratochvil@redhat.com>
1180 Paul Fertser <fercerpav@gmail.com>
1181 Tsutomu Seki <sekiriki@gmail.com>
1182
1183 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
1184 (OBS): Add 'common/netstuff.o'.
1185 (GDBREPLAY_OBS): Likewise.
1186 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
1187 (remote_open): Implement support for IPv6
1188 connections.
1189 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
1190 and 'wspiapi.h'.
1191 (handle_accept_event): Accept connections from IPv6 sources.
1192 (remote_prepare): Handle IPv6-style hostnames; implement
1193 support for IPv6 connections.
1194 (remote_open): Implement support for printing connections from
1195 IPv6 sources.
1196
1197 2018-07-11 Pedro Alves <palves@redhat.com>
1198
1199 PR gdb/23377
1200 * mem-break.c (any_persistent_commands): Add process_info
1201 parameter and use it instead of relying on the current process.
1202 Change return type to bool.
1203 * mem-break.h (any_persistent_commands): Add process_info
1204 parameter and change return type to bool.
1205 * server.c (handle_detach): Remove require_running_or_return call.
1206 Look up the process_info for the process we're about to detach.
1207 If not found, return back error to GDB. Adjust
1208 any_persistent_commands call to pass down a process pointer.
1209
1210 2018-07-11 Pedro Alves <palves@redhat.com>
1211
1212 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
1213 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
1214 instead of collect_register_by_name.
1215 * regcache.c (regcache_raw_get_unsigned_by_name): New.
1216 * regcache.h (regcache_raw_get_unsigned_by_name): New.
1217
1218 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
1219 Pedro Alves <palves@redhat.com>
1220
1221 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
1222
1223 2018-07-03 Tom Tromey <tom@tromey.com>
1224
1225 * linux-low.c: Update.
1226 * lynx-low.c: Update.
1227 * mem-break.c: Update.
1228 * nto-low.c: Update.
1229 * remote-utils.c: Update.
1230 * server.c: Update.
1231 * spu-low.c: Update.
1232 * target.c: Update.
1233 * win32-low.c: Update.
1234
1235 2018-07-03 Tom Tromey <tom@tromey.com>
1236
1237 * server.c: Update.
1238
1239 2018-07-03 Tom Tromey <tom@tromey.com>
1240
1241 * linux-low.c: Update.
1242
1243 2018-07-03 Tom Tromey <tom@tromey.com>
1244
1245 * target.c: Update.
1246
1247 2018-07-03 Tom Tromey <tom@tromey.com>
1248
1249 * linux-low.c: Update.
1250 * linux-mips-low.c: Update.
1251 * lynx-low.c: Update.
1252 * nto-low.c: Update.
1253 * remote-utils.c: Update.
1254 * server.c: Update.
1255 * spu-low.c: Update.
1256 * target.c: Update.
1257 * thread-db.c: Update.
1258
1259 2018-07-03 Tom Tromey <tom@tromey.com>
1260
1261 * linux-low.c: Update.
1262 * linux-mips-low.c: Update.
1263 * lynx-low.c: Update.
1264 * mem-break.c: Update.
1265 * nto-low.c: Update.
1266 * remote-utils.c: Update.
1267 * server.c: Update.
1268 * spu-low.c: Update.
1269 * target.c: Update.
1270 * tracepoint.c: Update.
1271
1272 2018-07-03 Tom Tromey <tom@tromey.com>
1273
1274 * linux-low.c: Update.
1275 * linux-ppc-low.c: Update.
1276 * linux-x86-low.c: Update.
1277 * proc-service.c: Update.
1278 * server.c: Update.
1279 * spu-low.c: Update.
1280 * thread-db.c: Update.
1281 * win32-low.c: Update.
1282
1283 2018-07-03 Tom Tromey <tom@tromey.com>
1284
1285 * linux-low.c: Update.
1286 * lynx-low.c: Update.
1287 * nto-low.c: Update.
1288 * remote-utils.c: Update.
1289 * spu-low.c: Update.
1290 * thread-db.c: Update.
1291 * win32-low.c: Update.
1292
1293 2018-06-29 Joel Brobecker <brobecker@adacore.com>
1294
1295 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
1296 parameter in call to 'amd64_create_target_description'.
1297
1298 2018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1299
1300 * x86-tdesc.h: Remove executable permission flag.
1301
1302 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
1303
1304 * configure.ac: Remove AC_PREREQ, add missing quoting.
1305 * configure: Re-generate.
1306 * config.in: Re-generate.
1307 * aclocal.m4: Re-generate.
1308
1309 2018-06-18 Simon Marchi <simon.marchi@ericsson.com>
1310
1311 * tracepoint.h (current_traceframe): Remove declaration.
1312
1313 2018-06-18 Alan Hayward <alan.hayward@arm.com>
1314
1315 * linux-aarch64-low.c (is_sve_tdesc): New function.
1316 (aarch64_sve_regs_copy_to_regcache): Likewise.
1317 (aarch64_sve_regs_copy_from_regcache): Likewise.
1318 (aarch64_regs_info): Add SVE checks.
1319 (initialize_low_arch): Initialize SVE.
1320
1321 2018-06-18 Alan Hayward <alan.hayward@arm.com>
1322
1323 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
1324
1325 2018-06-11 Alan Hayward <alan.hayward@arm.com>
1326
1327 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
1328 (initialize_low_tracepoint): Likewise
1329 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
1330 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
1331 param.
1332 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
1333 checks.
1334 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
1335
1336 2018-06-11 Alan Hayward <alan.hayward@arm.com>
1337
1338 * server.h (PBUFSIZ): Increase size
1339
1340 2018-06-11 Alan Hayward <alan.hayward@arm.com>
1341
1342 * regcache.c (regcache::raw_compare): New function.
1343 * regcache.h (regcache::raw_compare): New declaration.
1344
1345 2018-06-11 Alan Hayward <alan.hayward@arm.com>
1346
1347 * regcache.c (new_register_cache): Use new.
1348 (free_register_cache): Use delete.
1349 (register_data): Use const.
1350 (supply_register): Move body inside regcache.
1351 (regcache::raw_supply): New override function.
1352 (collect_register): Move body inside regcache.
1353 (regcache::raw_collect): New override function.
1354 (regcache::get_register_status): New override function.
1355 * regcache.h (struct regcache): Inherit from reg_buffer_common.
1356
1357 2018-06-09 Tom Tromey <tom@tromey.com>
1358
1359 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
1360 declare queue.
1361 (event_queue): Use std::queue.
1362 (gdb_event_xfree): Remove.
1363 (initialize_event_loop, process_event, wait_for_event): Update.
1364
1365 2018-06-08 Stan Cox <scox@redhat.com>
1366
1367 * win32-low.c (win32_create_inferior): last_ptid and last_status
1368 moved to client_state.
1369
1370 2018-06-08 Pedro Alves <palves@redhat.com>
1371
1372 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
1373 common/common-exceptions.o, common/common-utils.o,
1374 common/errors.o, common/print-utils.o and utils.o.
1375 * gdbreplay.c: Include "common-defs.h" instead of the two
1376 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
1377 string.h or alloca.h.
1378 (perror_with_name): Delete.
1379 (remote_open): Use xstrdup instead of strdup.
1380 (main): Rename to ...
1381 (captured_main): ... this.
1382 (main): New.
1383
1384 2018-06-08 Tom Tromey <tom@tromey.com>
1385
1386 * linux-low.c (linux_low_read_btrace): Update.
1387
1388 2018-06-04 Stan Cox <scox@redhat.com>
1389
1390 * server.h (struct client_state): New.
1391 * server.c (cont_thread, general_thread, multi_process)
1392 (report_fork_events, report_vfork_events, report_exec_events)
1393 (report_thread_events, swbreak_feature, hwbreak_feature)
1394 (vCont_supported, disable_randomization, pass_signals)
1395 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
1396 Moved to client_state.
1397 * remote-utils.c (remote_debug, noack_mode)
1398 (transport_is_reliable): Moved to client_state.
1399 * tracepoint.c (current_traceframe): Moved to client_state.
1400
1401 Update all callers.
1402 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
1403 linux-low.c, remote-utils.h, target.c: Use client_state.
1404
1405 2018-05-31 Alan Hayward <alan.hayward@arm.com>
1406
1407 * configure.srv: Add new c/h file.
1408
1409 2018-05-31 Alan Hayward <alan.hayward@arm.com>
1410
1411 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
1412 null VQ.
1413
1414 2018-05-25 Maciej W. Rozycki <macro@mips.com>
1415
1416 * gdb.arch/mips-fpregset-core.exp: New test.
1417 * gdb.arch/mips-fpregset-core.c: New test source.
1418
1419 2018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
1420
1421 PR server/23198
1422 * hostio.c (require_int): Do not report overflow for integers
1423 between 0xfffffff and 0x7fffffff.
1424
1425 2018-05-22 Maciej W. Rozycki <macro@mips.com>
1426
1427 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
1428 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
1429 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
1430 functions.
1431 (the_low_target): Wire them.
1432
1433 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
1434
1435 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
1436 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
1437 mode. Call collect_register_by_name with vscr using
1438 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
1439 (ppc_store_vrregset): Add and set vscr_offset variable as in
1440 ppc_fill_vrregset. Call supply_register_by_name with vscr using
1441 vscr_offset.
1442
1443 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
1444
1445 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
1446 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
1447 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
1448
1449 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
1450
1451 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
1452 (ppc_store_vsxregset): Likewise.
1453 (ppc_fill_vrregset): Likewise.
1454 (ppc_store_vrregset): Likewise.
1455 (ppc_fill_evrregset): Likewise.
1456 (ppc_store_evrregset): Likewise.
1457 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
1458 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
1459 needed.
1460
1461 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
1462
1463 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
1464 wordsize of the inferior. Call ppc_linux_target_wordsize.
1465
1466 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
1467
1468 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
1469 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
1470 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
1471 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
1472 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
1473 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
1474 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
1475 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
1476 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
1477 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
1478 (tdesc_powerpc_e500l): Remove.
1479 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
1480 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
1481 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
1482 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
1483 linux-ppc-tdesc.h.
1484 (ppc_arch_setup): Remove target description matching code. Fill a
1485 ppc_linux_features struct and call ppc_linux_match_description
1486 with it.
1487
1488 2018-05-22 Maciej W. Rozycki <macro@mips.com>
1489
1490 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
1491 width of the requested register exceeds the width of the
1492 `ptrace' data type.
1493 (mips_cannot_store_register): Likewise.
1494
1495 2018-05-21 Maciej W. Rozycki <macro@mips.com>
1496
1497 * linux-mips-low.c (mips_fetch_register): New function. Update
1498 preceding comment.
1499 (mips_store_gregset): Supply 0 rather than $restart for $zero.
1500 (the_low_target): Wire `mips_fetch_register'.
1501
1502 2018-05-10 Joel Brobecker <brobecker@adacore.com>
1503
1504 * lynx-i386-low.c (LYNXOS_178): New macro.
1505 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
1506 the layout on LynxOS-178.
1507 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
1508 handle floating point registers that are not supported by
1509 LynxOS-178.
1510
1511 2018-05-10 Tom Tromey <tom@tromey.com>
1512
1513 * configure: Rebuild.
1514
1515 2018-05-10 Joel Brobecker <brobecker@adacore.com>
1516
1517 PR server/23158:
1518 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
1519 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
1520 Use it to set the expedite_regs field in the given tdesc.
1521 * x86-tdesc.h: New file.
1522 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
1523 Adjust following the addition of the new expedite_regs parameter
1524 to init_target_desc.
1525 * linux-tic6x-low.c (tic6x_read_description): Likewise.
1526 * linux-x86-tdesc.c: #include "x86-tdesc.h".
1527 (i386_linux_read_description, amd64_linux_read_description):
1528 Adjust following the addition of the new expedite_regs parameter
1529 to init_target_desc.
1530 * lynx-i386-low.c: #include "x86-tdesc.h".
1531 (lynx_i386_arch_setup): Adjust following the addition of the new
1532 expedite_regs parameter to init_target_desc.
1533 * nto-x86-low.c: #include "x86-tdesc.h".
1534 (nto_x86_arch_setup): Adjust following the addition of the new
1535 expedite_regs parameter to init_target_desc.
1536 * win32-i386-low.c: #include "x86-tdesc.h".
1537 (i386_arch_setup): Adjust following the addition of the new
1538 expedite_regs parameter to init_target_desc.
1539
1540 2018-05-10 Joel Brobecker <brobecker@adacore.com>
1541
1542 PR server/23158:
1543 * win32-low.c (win32_create_inferior): Add call to my_wait
1544 setting last_status global.
1545
1546 2018-05-10 Joel Brobecker <brobecker@adacore.com>
1547
1548 PR server/23158:
1549 * win32-low.c (create_process): Only call gdb_tilde_expand if
1550 inferior_cwd is not NULL.
1551
1552 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
1553
1554 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
1555 registers to the cache if their values have changed.
1556 (i387_xsave_to_cache): Provide default values for x87 control
1557 registers when these features are available, but disabled.
1558 * regcache.c (supply_register_by_name_zeroed): New function.
1559 * regcache.h (supply_register_by_name_zeroed): Declare new
1560 function.
1561
1562 2018-05-07 Tom Tromey <tom@tromey.com>
1563
1564 * configure: Rebuild.
1565
1566 2018-05-04 Tom Tromey <tom@tromey.com>
1567
1568 * configure: Rebuild.
1569
1570 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1571 Pedro Alves <palves@redhat.com>
1572
1573 * linux-aarch64-low.c (aarch64_stopped_data_address):
1574 Likewise.
1575
1576 2018-04-27 Tom Tromey <tom@tromey.com>
1577
1578 * configure: Rebuild.
1579
1580 2018-04-23 Tom Tromey <tom@tromey.com>
1581
1582 * configure: Rebuild.
1583
1584 2018-04-19 Simon Marchi <simon.marchi@ericsson.com>
1585
1586 * Makefile.in (depcomp): Add "..".
1587 (all_deps_files): New and use it.
1588
1589 2018-04-18 Alan Hayward <alan.hayward@arm.com>
1590
1591 * configure.srv (aarch64*-*-linux*): Don't include xml.
1592 (i[34567]86-*-cygwin*): Likewise.
1593 (i[34567]86-*-linux*): Likewise.
1594 (i[34567]86-*-lynxos*): Likewise.
1595 (i[34567]86-*-mingw32ce*): Likewise.
1596 (i[34567]86-*-mingw*): Likewise.
1597 (i[34567]86-*-nto*): Likewise.
1598 (tic6x-*-uclinux): Likewise.
1599 (x86_64-*-linux*): Likewise.
1600 (x86_64-*-mingw*): Likewise.
1601 (x86_64-*-cygwin*): Likewise.
1602
1603 2018-04-18 Alan Hayward <alan.hayward@arm.com>
1604
1605 * tdesc.c: Remove xml parameter.
1606
1607 2018-04-18 Alan Hayward <alan.hayward@arm.com>
1608
1609 * server.c (get_features_xml): Remove cast.
1610 * tdesc.c (void target_desc::accept): Fill in function.
1611 (tdesc_get_features_xml): Remove old xml creation.
1612 (print_xml_feature::visit_pre): Add xml vistor.
1613 * tdesc.h (struct target_desc): Make xmltarget mutable.
1614 (tdesc_get_features_xml): Remove declaration.
1615
1616 2018-04-18 Alan Hayward <alan.hayward@arm.com>
1617
1618 * tdesc.c (tdesc_architecture_name): Add new function.
1619 (tdesc_osabi_name): Likewise.
1620 (tdesc_get_features_xml): Use new functions.
1621
1622 2018-04-18 Alan Hayward <alan.hayward@arm.com>
1623
1624 * tdesc.c (tdesc_create_flags): Remove.
1625 (tdesc_add_flag): Likewise.
1626 (tdesc_named_type): Likewise.
1627 (tdesc_create_union): Likewise.
1628 (tdesc_create_struct): Likewise.
1629 (tdesc_create_vector): Likewise.
1630 (tdesc_add_bitfield): Likewise.
1631 (tdesc_add_field): Likewise.
1632 (tdesc_set_struct_size): Likewise.
1633
1634 2018-04-18 Alan Hayward <alan.hayward@arm.com>
1635
1636 * tdesc.c (~target_desc): Remove implictly deleted items.
1637 (init_target_desc): Iterate all features.
1638 (tdesc_get_features_xml): Use vector.
1639 (tdesc_create_feature): Create feature.
1640 * tdesc.h (tdesc_feature) Remove
1641 (target_desc): Add features.
1642
1643 2018-04-18 Alan Hayward <alan.hayward@arm.com>
1644
1645 * Makefile.in: Add common/tdesc.c
1646 * tdesc.c (init_target_desc): init all reg_defs from register
1647 vector.
1648 (tdesc_create_reg): Create tdesc_reg.
1649 * tdesc.h (tdesc_feature): Add register vector.
1650
1651 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
1652
1653 * tdesc.h (struct target_desc) <features>: Change type to
1654 std::vector<std::string>.
1655 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
1656 changes.
1657 (tdesc_get_features_xml): Likewise.
1658 (tdesc_create_feature): Likewise.
1659
1660 2018-03-26 Alan Hayward <alan.hayward@arm.com>
1661
1662 * regcache.c (find_register_by_number): Return a ref.
1663 (find_regno): Use references.
1664 (register_size): Likewise.
1665 (register_data): Likewise.
1666 * tdesc.c (target_desc::~target_desc): Remove free calls.
1667 (target_desc::operator==): Use std::vector compare.
1668 (init_target_desc): Use reference.
1669 (tdesc_create_reg): Use reg constructors.
1670 * tdesc.h (struct target_desc): Replace pointer with object.
1671
1672 2018-03-23 Alan Hayward <alan.hayward@arm.com>
1673
1674 * regcache.c (find_register_by_number): Make static.
1675 (find_regno): Use find_register_by_number
1676 * regcache.h (struct reg): Remove declaration.
1677
1678 2018-03-23 Alan Hayward <alan.hayward@arm.com>
1679
1680 * tdesc.c (target_desc::~target_desc): Move to here.
1681 (target_desc::operator==): Likewise.
1682 * tdesc.h (target_desc::~target_desc): Move from here.
1683 (target_desc::operator==): Likewise.
1684
1685 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
1686
1687 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
1688
1689 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1690
1691 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
1692 S390_TDESC_GS.
1693 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
1694 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
1695 and init_registers_s390_gs_linux64.
1696
1697 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1698
1699 * linux-s390-low.c (s390_fill_gs): Remove function.
1700 (s390_fill_gsbc): Remove function.
1701 (s390_regsets): Set fill functions for the guarded storage regsets
1702 to NULL.
1703
1704 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1705
1706 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
1707 the word size. Add comment.
1708 (s390_get_wordsize): New function.
1709 (s390_arch_setup): No longer select a temporary tdesc to fetch the
1710 pswm with it. Instead, use s390_get_wordsize to determine the
1711 word size first and derive the correct tdesc from that directly.
1712
1713 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
1714
1715 * Makefile.in: Include silent-rules.mk.
1716 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
1717 (COMPILE): Add ECHO_CXX.
1718 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
1719 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
1720 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
1721 (version-generated.c): Add ECHO_GEN.
1722 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
1723 (IPAGENT_COMPILE): Add ECHO_CXX.
1724 (%-generated.c): Add ECHO_REGDAT.
1725
1726 2018-03-14 Tom Tromey <tom@tromey.com>
1727
1728 PR cli/14977:
1729 * ax.c (ax_printf): Special case for NULL.
1730
1731 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
1732
1733 * linux-low.c (linux_qxfer_libraries_svr4): Use
1734 xml_escape_text_append.
1735
1736 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
1737
1738 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
1739
1740 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
1741
1742 * server.c (handle_general_set): Remove unnecessary xstrdup.
1743
1744 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
1745
1746 * server.c (parse_debug_format_options): Adjust to
1747 delim_string_to_char_ptr_vec changes.
1748 * thread-db.c (thread_db_load_search): Adjust to
1749 dirnames_to_char_ptr_vec changes.
1750
1751 2018-03-01 Markus Metzger <markus.t.metzger@intel.com>
1752
1753 * target.h (target_enable_btrace, target_disable_btrace)
1754 (target_read_btrace, target_read_btrace_conf): Turn macro into
1755 inline function. Throw error if target method is not defined.
1756 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
1757 check for btrace target method. Be prepared to handle exceptions
1758 from btrace target methods.
1759
1760 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
1761
1762 * server.c (captured_main): Change order of error message printed
1763 when the current working directory cannot be found.
1764
1765 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
1766
1767 * server.c: Include "filenames.h" and "pathstuff.h".
1768 (program_name): Delete variable.
1769 (program_path): New anonymous class.
1770 (get_exec_wrapper): Use "program_path" instead of
1771 "program_name".
1772 (handle_v_run): Likewise.
1773 (captured_main): Likewise.
1774 (process_serial_event): Likewise.
1775
1776 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
1777
1778 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
1779 (OBJS): Add "pathstuff.o".
1780 * server.c (current_directory): New global variable.
1781 (captured_main): Initialize "current_directory".
1782
1783 2018-02-26 Alan Hayward <alan.hayward@arm.com>
1784
1785 * tdesc.c: Use common/tdesc.h.
1786 * tdesc.h: Likewise.
1787
1788 2018-02-20 Alan Hayward <alan.hayward@arm.com>
1789 Simon Marchi <simon.marchi@ericsson.com>
1790
1791 * Makefile.in: Switch order of make rules.
1792
1793 2018-02-19 Alan Hayward <alan.hayward@arm.com>
1794
1795 * Makefile.in: Add common directory in build.
1796 * configure.ac: Add common reference.
1797 * configure: Regenerate.
1798
1799 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
1800
1801 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
1802 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
1803 * spu-low.c (spu_target_ops): Likewise.
1804 * win32-low.c (win32_target_ops): Likewise.
1805 * server.c (supported_btrace_packets): Report packets unconditionally.
1806 * target.h (target_ops) <supports_btrace>: Remove.
1807 (target_supports_btrace): Remove.
1808
1809 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
1810
1811 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
1812 (handle_btrace_disable): Change return type to void. Use exceptions
1813 to report errors.
1814 (handle_btrace_general_set): Catch exception and copy message to
1815 return message.
1816
1817 2018-02-08 Tom Tromey <tom@tromey.com>
1818
1819 * linux-low.c (install_software_single_step_breakpoints): Use
1820 make_scoped_restore.
1821 * inferiors.c (make_cleanup_restore_current_thread): Remove.
1822 (do_restore_current_thread_cleanup): Remove.
1823 * gdbthread.h (make_cleanup_restore_current_thread): Don't
1824 declare.
1825
1826 2018-02-08 Tom Tromey <tom@tromey.com>
1827
1828 * mem-break.c (set_raw_breakpoint_at): Use
1829 gdb::unique_xmalloc_ptr.
1830
1831 2018-01-30 Pedro Alves <palves@redhat.com>
1832
1833 PR gdb/13211
1834 * target.c (target_terminal::terminal_state): Rename to ...
1835 (target_terminal::m_terminal_state): ... this.
1836
1837 2018-01-19 James Clarke <jrtc27@jrtc27.com>
1838
1839 * linux-low.c (handle_extended_wait): Surround call to
1840 thread_db_notice_clone with #ifdef USE_THREAD_DB.
1841
1842 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
1843
1844 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
1845 linux_ptrace_attach_fail_reason_string now returning an
1846 std::string.
1847 (linux_attach): Likewise.
1848 * thread-db.c (attach_thread): Likewise.
1849
1850 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
1851
1852 PR gdb/21559
1853 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
1854 checking for fs_base/gs_base fields in struct user_regs_struct.
1855 * configure: Regenerate.
1856
1857 2018-01-16 Yao Qi <yao.qi@linaro.org>
1858
1859 PR gdb/18749
1860 * linux-low.c (fetch_register): Call supply_register instead of
1861 error.
1862
1863 2018-01-08 Yao Qi <yao.qi@linaro.org>
1864 Simon Marchi <simon.marchi@ericsson.com>
1865
1866 * Makefile.in (OBS): Remove selftest.o.
1867 * configure.ac: Set srv_selftest_objs if $development is true.
1868 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
1869 * configure: Re-generated.
1870 * server.c (captured_main): Wrap variable selftest_filter with
1871 GDB_SELF_TEST.
1872
1873 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
1874
1875 * server.c (parse_debug_format_options): Return std::string.
1876 (handle_monitor_command, captured_main): Adjust.
1877
1878 2018-01-05 Pedro Alves <palves@redhat.com>
1879
1880 PR gdb/18653
1881 * server.c (captured_main): Pass quiet=false to
1882 save_original_signals_state.
1883
1884 2018-01-01 Joel Brobecker <brobecker@adacore.com>
1885
1886 * gdbreplay.c (gdbreplay_version): Update copyright year in
1887 version message.
1888 * server.c (gdbserver_version): Likewise.
1889
1890 2017-12-08 Tom Tromey <tom@tromey.com>
1891
1892 * ax.c (ax_printf): Update.
1893
1894 2017-12-07 Yao Qi <yao.qi@linaro.org>
1895
1896 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
1897 aarch64_linux_read_description.
1898 * linux-amd64-ipa.c (idx2mask): New array.
1899 (get_ipa_tdesc): Move idx2mask out.
1900 (initialize_low_tracepoint): Initialize target descriptions.
1901 * linux-i386-ipa.c (idx2mask): New array.
1902 (get_ipa_tdesc): Move idx2mask out.
1903 (initialize_low_tracepoint): Initialize target descriptions.
1904
1905 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
1906
1907 * tdesc.c (struct tdesc_type): Change return type.
1908 (tdesc_add_flag): Change parameter type.
1909 (tdesc_add_bitfield): Likewise.
1910 (tdesc_add_field): Likewise.
1911 (tdesc_set_struct_size): Likewise.
1912
1913 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
1914
1915 * regcache.c (registers_to_string): Remove unused variable.
1916
1917 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
1918
1919 * inferiors.c (for_each_inferior_with_data): Remove.
1920 * inferiors.h (for_each_inferior_with_data): Remove.
1921 * server.c (handle_qxfer_threads_worker): Change parameter type.
1922 (handle_qxfer_threads_proper): Use for_each_thread.
1923
1924 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
1925
1926 * inferiors.c (for_each_inferior): Remove.
1927 (clear_inferiors): Use for_each_thread.
1928 * inferiors.h (for_each_inferior): Remove.
1929 * linux-low.c (linux_wait_for_event_filtered): Use
1930 for_each_thread.
1931 (linux_stabilize_threads): Likewise.
1932 * regcache.c (regcache_release): Likewise.
1933 * server.c (gdb_wants_all_threads_stopped): Likewise.
1934 (clear_pending_status_callback): Remove.
1935 (handle_status): Use for_each_thread.
1936 (captured_main): Likewise.
1937 * win32-low.c (child_init_thread_list): Likewise.
1938 (win32_clear_inferiors): Likewise.
1939 (fake_breakpoint_event): Likewise.
1940
1941 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
1942
1943 * inferiors.h (find_inferior): Remove.
1944 * inferiors.c (find_inferior): Remove.
1945
1946 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
1947
1948 * linux-low.c (resume_status_pending_p): Update comment.
1949 (need_step_over_p): Update comment.
1950
1951 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
1952
1953 * linux-low.c (proceed_one_lwp): Return void, change parameter
1954 type.
1955 (unsuspend_and_proceed_one_lwp): Likewise.
1956 (proceed_all_lwps): Use for_each_thread.
1957 (unstop_all_lwps): Likewise.
1958
1959 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
1960
1961 * linux-low.c (linux_resume_one_thread): Return void, take
1962 parameter directly.
1963 (linux_resume): Use for_each_thread.
1964
1965 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
1966
1967 * linux-low.c (send_sigstop_callback): Return void, change
1968 parameter type. Rename to...
1969 (send_sigstop): ... this.
1970 (suspend_and_send_sigstop_callback): Return void, change parameter
1971 type. Rename to...
1972 (suspend_and_send_sigstop): ... this.
1973 (stop_all_lwps): Use for_each_thread.
1974
1975 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
1976
1977 * linux-low.c (lwp_running): Return bool, remove unused
1978 argument.
1979 (linux_stabilize_threads): Use find_thread.
1980
1981 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
1982
1983 * linux-low.c (select_singlestep_lwp_callback): Remove.
1984 (count_events_callback): Remove.
1985 (select_event_lwp_callback): Remove.
1986 (select_event_lwp): Use find_thread/for_each_thread.
1987
1988 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
1989
1990 * linux-low.c (not_stopped_callback): Return bool, take filter
1991 argument directly.
1992 (linux_wait_for_event_filtered): Use find_thread.
1993 (linux_wait_1): Likewise.
1994
1995 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
1996
1997 * linux-low.c (same_lwp): Remove.
1998 (find_lwp_pid): Use find_thread.
1999
2000 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2001
2002 * linux-low.c (delete_lwp_callback): Remove.
2003 (linux_mourn): Use for_each_thread.
2004
2005 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2006
2007 * linux-low.c (linux_detach_lwp_callback): Return void, remove
2008 args parameter, don't check for pid.
2009 (linux_detach): Use for_each_thread.
2010
2011 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2012
2013 * linux-low.c (struct counter): Remove.
2014 (second_thread_of_pid_p): Remove.
2015 (last_thread_of_process_p): Use find_thread.
2016
2017 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2018
2019 * inferiors.c (find_inferior_in_random): Remove.
2020 * inferiors.h (find_inferior_in_random): Remove.
2021 * linux-low.c (status_pending_p_callback): Return bool, accept
2022 parameter ptid directly.
2023 (linux_wait_for_event_filtered): Use find_thread_in_random.
2024 (linux_wait_1): Likewise.
2025
2026 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2027
2028 * inferiors.c (find_inferior_id): Remove.
2029 (find_thread_ptid): Move implemention from find_inferior_id to
2030 here.
2031 * inferiors.h (find_inferior_id): Remove.
2032 * server.c (handle_status): Use find_thread_ptid.
2033 (process_serial_event): Likewise.
2034 * thread-db.c (find_one_thread): Likewise.
2035 (thread_db_thread_handle): Likewise.
2036 * win32-low.c (thread_rec): Likewise.
2037 (child_delete_thread): Likewise.
2038 (win32_thread_alive): Likewise.
2039 (get_child_debug_event): Likewise.
2040
2041 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2042
2043 * linux-mips-low.c (update_watch_registers_callback): Return
2044 void, remove pid_p parameter, don't check for pid.
2045 (mips_insert_point, mips_remove_point): Use for_each_thread.
2046
2047 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2048
2049 * lynx.low (lynx_delete_thread_callback): Remove.
2050 (lynx_mourn): Use for_each_thread.
2051
2052 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2053
2054 * regcache.c (regcache_invalidate_one): Remove.
2055 (regcache_invalidate_pid): use for_each_thread.
2056
2057 2017-11-26 Tom Tromey <tom@tromey.com>
2058
2059 * linux-low.c (linux_create_inferior): Update.
2060
2061 2017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
2062
2063 * spu-low.c (spu_create_inferior): Fix typo in argument name.
2064
2065 2017-11-24 Alan Hayward <alan.hayward@arm.com>
2066
2067 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
2068 * linux-aarch64-low.c (initialize_low_arch): Call init func.
2069 * linux-aarch64-tdesc-selftest.c: New file.
2070 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
2071
2072 2017-11-24 Alan Hayward <alan.hayward@arm.com>
2073
2074 * configure.srv: Add new file.
2075 * linux-aarch64-low.c (initialize_low_arch): Call init func.
2076 * linux-aarch64-tdesc-selftest.c: New file.
2077 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
2078
2079 2017-11-24 Alan Hayward <alan.hayward@arm.com>
2080
2081 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
2082 * linux-aarch64-low.c (initialize_low_arch): Remove init.
2083 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
2084
2085 2017-11-24 Alan Hayward <alan.hayward@arm.com>
2086
2087 * configure.srv: Add new files.
2088 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
2089 aarch64_linux_read_description.
2090 * linux-aarch64-low.c (aarch64_linux_read_description):
2091 Merge with aarch64_arch_setup.
2092 (aarch64_arch_setup): Call aarch64_linux_read_description.
2093 * linux-aarch64-tdesc.c: New file.
2094 * linux-aarch64-tdesc.h: New file.
2095
2096 2017-11-24 Yao Qi <yao.qi@linaro.org>
2097
2098 * configure.srv: Set $srv_regobj for tic6x-linux.
2099 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
2100 (tic6x_read_description): Move some code to tic6x_arch_setup.
2101 (tic6x_tdesc_test): New function.
2102 (initialize_low_arch): Call selftests::register_test.
2103
2104 2017-11-22 Yao Qi <yao.qi@linaro.org>
2105
2106 * remote-utils.c (prepare_resume_reply): Use memcpy.
2107
2108 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
2109
2110 * linux-low.c (kill_one_lwp_callback): Return void, take
2111 argument directly, don't filter on pid.
2112 (linux_kill): Use for_each_thread.
2113
2114 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
2115
2116 * linux-low.c (need_step_over_p): Return bool, remove dummy
2117 argument.
2118 (linux_resume, proceed_all_lwps): Use find_thread.
2119
2120 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
2121
2122 * linux-low.c (resume_status_pending_p): Return bool, remove
2123 flag_p argument.
2124 (linux_resume): Use find_thread.
2125
2126 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
2127
2128 * linux-low.c (struct thread_resume_array): Remove.
2129 (linux_set_resume_request): Return void, take arguments
2130 directly.
2131 (linux_resume): Use for_each_thread.
2132
2133 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
2134
2135 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
2136 return bool, remove data argument.
2137 (linux_stabilize_threads): Use find_thread.
2138
2139 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
2140
2141 * linux-low.c (unsuspend_one_lwp): Remove.
2142 (unsuspend_all_lwps): Use for_each_thread, inline code from
2143 unsuspend_one_lwp.
2144
2145 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
2146
2147 * gdbthread.h (find_thread): Add overload with ptid_t filter.
2148 * linux-low.c (struct iterate_over_lwps_args): Remove.
2149 (iterate_over_lwps_filter): Remove.
2150 (iterate_over_lwps): Use find_thread.
2151
2152 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
2153
2154 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
2155 (linux_handle_new_gdb_connection): Use for_each_thread, inline
2156 code from reset_lwp_ptrace_options_callback.
2157
2158 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
2159
2160 * linux-arm-low.c (struct update_registers_data): Remove.
2161 (update_registers_callback): Return void, take arguments
2162 directly, don't check thread's pid.
2163 (arm_insert_point, arm_remove_point): Use for_each_thread.
2164
2165 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
2166
2167 * win32-low.c (continue_one_thread): Return void, take argument
2168 directly.
2169 (child_continue): Use for_each_thread.
2170
2171 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
2172
2173 * win32-i386-low.c (update_debug_registers_callback): Rename
2174 to ...
2175 (update_debug_registers): ... this, return void, remove pid_p arg.
2176 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
2177
2178 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
2179
2180 * inferiors.h (struct process_info): Add constructor, initialize
2181 fields..
2182 <syscalls_to_catch>: Change type to std::vector<int>.
2183 * inferiors.c (add_process): Allocate process_info with new.
2184 (remove_process): Free process_info with delete.
2185 * linux-low.c (handle_extended_wait): Adjust.
2186 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
2187 * server.c (handle_general_set): Adjust.
2188
2189 2017-11-16 Pedro Alves <palves@redhat.com>
2190
2191 * remote-utils.c (remote_close): Block SIGIO signals instead of
2192 uninstalling the SIGIO handler.
2193
2194 2017-11-16 Alan Hayward <alan.hayward@arm.com>
2195
2196 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
2197
2198 2017-11-16 Yao Qi <yao.qi@linaro.org>
2199
2200 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
2201 (tic6x_store_gregset): Likewise.
2202 (tic6x_usrregs_info): Move it up.
2203
2204 2017-11-15 Alan Hayward <alan.hayward@arm.com>
2205
2206 * Makefile.in: Update arch rules.
2207 * configure.srv: Explicitly mark arch/ files.
2208
2209 2017-11-13 Andreas Schwab <schwab@suse.de>
2210
2211 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
2212 function.
2213 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
2214
2215 2017-11-06 Pedro Alves <palves@redhat.com>
2216
2217 * config.in, configure: Regenerate.
2218
2219 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
2220
2221 * target.c (struct thread_search): Remove.
2222 (thread_search_callback): Remove.
2223 (prepare_to_access_memory): Use for_each_thread instead of
2224 find_inferior. Inline code from thread_search_callback.
2225
2226 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
2227
2228 * server.c (struct visit_actioned_threads_data): Remove.
2229 (visit_actioned_threads): Change prototype to take arguments
2230 directly.
2231 (resume): Use find_thread instead of find_inferior.
2232
2233 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
2234
2235 * server.c (queue_stop_reply_callback): Change prototype, return
2236 void.
2237 (find_status_pending_thread_callback): Remove.
2238 (handle_status): Replace find_inferior with find_thread and
2239 for_each_thread.
2240
2241 2017-10-25 Alan Hayward <alan.hayward@arm.com>
2242
2243 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
2244 with REGNO.
2245 (aarch64_store_gregset): Likewise.
2246 (aarch64_fill_fpregset): Likewise.
2247 (aarch64_store_fpregset): Likewise.
2248
2249 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
2250
2251 * gdbthread.h (find_thread, for_each_thread): New functions.
2252 * inferiors.c (thread_of_pid): Remove.
2253 (find_any_thread_of_pid): Use find_thread.
2254 * linux-low.c (num_lwps): Use for_each_thread.
2255
2256 2017-10-17 Yao Qi <yao.qi@linaro.org>
2257
2258 * Makefile.in: Remove one rule.
2259 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
2260
2261 2017-10-17 Yao Qi <yao.qi@linaro.org>
2262
2263 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
2264 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
2265
2266 2017-10-17 Yao Qi <yao.qi@linaro.org>
2267
2268 * configure.srv: Rename arm.o with arch/arm.o.
2269
2270 2017-10-17 Yao Qi <yao.qi@linaro.org>
2271
2272 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
2273 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
2274 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
2275 (arch-i386.o, arch-amd64.o): Remove rules.
2276 (arch/%.o): New rule.
2277 Update POSTCOMPILE and COMPILE.pre.
2278 * configure.ac: Invoke AC_CONFIG_COMMANDS.
2279 * configure: Re-generated.
2280 * configure.srv: Replace arch-i386.o with arch/i386.o.
2281 Replace arch-amd64.o with arch/amd64.o.
2282
2283 2017-10-16 Yao Qi <yao.qi@linaro.org>
2284
2285 * configure: Regenerated.
2286
2287 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
2288
2289 * inferiors.h: (struct inferior_list): Remove.
2290 (struct inferior_list_entry); Remove.
2291 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
2292 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
2293 get_first_inferior): Remove.
2294 (for_each_inferior, for_each_inferior_with_data, find_inferior,
2295 find_inferior_id, find_inferior_in_random): Change signature.
2296 * inferiors.c (all_threads): Change type to
2297 std::list<thread_info *>.
2298 (get_thread): Remove macro.
2299 (find_inferior, find_inferior_id): Change signature, implement
2300 using find_thread.
2301 (find_inferior_in_random): Change signature, implement using
2302 find_thread_in_random.
2303 (for_each_inferior, for_each_inferior_with_data): Change
2304 signature, implement using for_each_thread.
2305 (add_inferior_to_list, remove_inferior): Remove.
2306 (add_thread, get_first_thread, thread_of_pid,
2307 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
2308 (get_first_inferior, one_inferior_p, clear_inferior_list):
2309 Remove.
2310 (clear_inferiors, get_thread_process): Update.
2311 * gdbthread.h: Include <list>.
2312 (struct thread_info) <entry>: Remove field.
2313 <id>: New field.
2314 (all_threads): Change type to std::list<thread_info *>.
2315 (get_first_inferior): Add doc.
2316 (find_thread, for_each_thread, find_thread_in_random): New
2317 functions.
2318 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
2319 * linux-arm-low.c (update_registers_callback): Update.
2320 * linux-low.c (second_thread_of_pid_p): Update.
2321 (kill_one_lwp_callback, linux_detach_lwp_callback,
2322 delete_lwp_callback, status_pending_p_callback, same_lwp,
2323 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
2324 iterate_over_lwps, not_stopped_callback,
2325 resume_stopped_resumed_lwps, count_events_callback,
2326 select_singlestep_lwp_callback, select_event_lwp_callback,
2327 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
2328 suspend_and_send_sigstop_callback, wait_for_sigstop,
2329 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
2330 lwp_running, linux_set_resume_request, resume_status_pending_p,
2331 need_step_over_p, start_step_over, linux_resume_one_thread,
2332 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
2333 reset_lwp_ptrace_options_callback): Update.
2334 * linux-mips-low.c (update_watch_registers_callback): Update.
2335 * regcache.c (regcache_invalidate_one, regcache_invalidate):
2336 Update.
2337 (free_register_cache_thread_one): Remove.
2338 (regcache_release): Update.
2339 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
2340 handle_qxfer_threads_worker): Update.
2341 (handle_query): Update, use list iterator.
2342 (visit_actioned_threads, handle_pending_status,
2343 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
2344 clear_pending_status_callback, set_pending_status_callback,
2345 find_status_pending_thread_callback, handle_status,
2346 process_serial_event): Update.
2347 * target.c (thread_search_callback): Update.
2348 * thread-db.c (thread_db_get_tls_address): Update.
2349 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
2350 Update.
2351 * win32-i386-low.c (update_debug_registers_callback): Update.
2352 * win32-low.c (delete_thread_info, child_delete_thread,
2353 continue_one_thread, suspend_one_thread,
2354 get_child_debug_event): Adjust.
2355
2356 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
2357
2358 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
2359 * inferiors.h: Include <list>.
2360 (struct process_info) <entry>: Remove field.
2361 <pid>: New field.
2362 (pid_of): Change macro to function.
2363 (ptid_of, lwpid_of): Remove macro.
2364 (all_processes): Change type to std::list<process_info *>.
2365 (ALL_PROCESSES): Remove macro.
2366 (for_each_process, find_process): New function.
2367 * inferiors.c (all_processes): Change type to
2368 std::list<process_info *>.
2369 (find_thread_process): Adjust.
2370 (add_process): Likewise.
2371 (remove_process): Likewise.
2372 (find_process_pid): Likewise.
2373 (get_first_process): Likewise.
2374 (started_inferior_callback): Remove.
2375 (have_started_inferiors_p): Adjust.
2376 (attached_inferior_callback): Remove.
2377 (have_attached_inferiors_p): Adjust.
2378 * linux-low.c (check_zombie_leaders): Likewise.
2379 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
2380 (x86_linux_update_xmltarget): Adjust.
2381 * server.c (handle_query): Likewise.
2382 (gdb_reattached_process): Remove.
2383 (handle_status): Adjust.
2384 (kill_inferior_callback): Likewise.
2385 (detach_or_kill_inferior): Remove.
2386 (print_started_pid): Likewise.
2387 (print_attached_pid): Likewise.
2388 (detach_or_kill_for_exit): Update.
2389 (process_serial_event): Likewise.
2390 * linux-arm-low.c (arm_new_fork): Likewise.
2391
2392 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
2393
2394 * dll.h: Include <list>.
2395 (struct dll_info): Add constructor.
2396 <entry>: Remove field.
2397 (all_dlls): Change type to std::list<dll_info>.
2398 * dll.c: Include <algorithm>.
2399 (get_dll): Remove macro.
2400 (all_dlls): Change type to std::list<dll_info *>.
2401 (free_one_dll): Remove.
2402 (match_dll): Likewise.
2403 (loaded_dll): Adjust.
2404 (unloaded_dll): Adjust to all_dlls type change, use
2405 std::find_if. Inline code from match_dll.
2406 (clear_dlls): Adjust to all_dlls type change.
2407 * server.c (emit_dll_description): Remove.
2408 (handle_qxfer_libraries): Adjust to all_dlls type change,
2409 integrate emit_dll_description's functionality.
2410
2411 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
2412
2413 * linux-low.h (struct linux_target_ops) <delete_process>: New
2414 field.
2415 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
2416 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
2417 (struct linux_target_ops): Add delete_process callback.
2418 * linux-arm-low.c (arm_delete_process): New.
2419 (struct linux_target_ops): Add delete_process callback.
2420 * linux-bfin-low.c (struct linux_target_ops): Likewise.
2421 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
2422 * linux-m32r-low.c (struct linux_target_ops): Likewise.
2423 * linux-mips-low.c (mips_linux_delete_process): New.
2424 (struct linux_target_ops): Add delete_process callback.
2425 * linux-ppc-low.c (struct linux_target_ops): Likewise.
2426 * linux-s390-low.c (struct linux_target_ops): Likewise.
2427 * linux-sh-low.c (struct linux_target_ops): Likewise.
2428 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
2429 * linux-tile-low.c (struct linux_target_ops): Likewise.
2430 * linux-x86-low.c (x86_linux_delete_process): New.
2431 (struct linux_target_ops): Add delete_process callback.
2432 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
2433
2434 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
2435
2436 * linux-aarch64-low.c (the_low_target): Add thread delete
2437 callback.
2438 * linux-arm-low.c (arm_delete_thread): New function.
2439 (the_low_target): Add thread delete callback.
2440 * linux-bfin-low.c (the_low_target): Likewise.
2441 * linux-crisv32-low.c (the_low_target): Likewise.
2442 * linux-low.c (delete_lwp): Invoke delete_thread callback if
2443 set.
2444 * linux-low.h (struct linux_target_ops) <delete_thread>: New
2445 field.
2446 * linux-m32r-low.c (the_low_target): Add thread delete callback.
2447 * linux-mips-low.c (mips_linux_delete_thread): New function.
2448 (the_low_target): Add thread delete callback.
2449 * linux-ppc-low.c (the_low_target): Likewise.
2450 * linux-s390-low.c (the_low_target): Likewise.
2451 * linux-sh-low.c (the_low_target): Likewise.
2452 * linux-tic6x-low.c (the_low_target): Likewise.
2453 * linux-tile-low.c (the_low_target): Likewise.
2454 * linux-x86-low.c (the_low_target): Likewise.
2455 * linux-xtensa-low.c (the_low_target): Likewise.
2456
2457 2017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
2458
2459 * win32-low.c: Include "common-inferior.h".
2460
2461 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
2462
2463 * inferiors.c (set_inferior_cwd): New function.
2464 * server.c (handle_general_set): Handle QSetWorkingDir packet.
2465 (handle_query): Inform that QSetWorkingDir is supported.
2466 * win32-low.c (create_process): Pass the inferior's cwd to
2467 CreateProcess.
2468
2469 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
2470
2471 * inferiors.c (current_inferior_cwd): New global variable.
2472 (get_inferior_cwd): New function.
2473 * inferiors.h (struct process_info) <cwd>: New field.
2474
2475 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
2476
2477 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
2478 (OBS): Add gdb_tilde_expand.o.
2479
2480 2017-10-02 Simon Marchi <simon.marchi@ericsson.com>
2481
2482 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
2483 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
2484
2485 2017-09-29 Pedro Alves <palves@redhat.com>
2486
2487 * ax.c (gdb_parse_agent_expr): Constify.
2488 * ax.h (gdb_parse_agent_expr): Constify.
2489 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
2490 Constify.
2491 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
2492 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
2493 * remote-utils.h (read_ptid): Constify.
2494 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
2495 (process_point_options, process_serial_event): Constify.
2496 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
2497 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
2498 (cmd_qtbuffer): Constify.
2499
2500 2017-09-29 Pedro Alves <palves@redhat.com>
2501
2502 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
2503 fails.
2504
2505 2017-09-29 Pedro Alves <palves@redhat.com>
2506
2507 * linux-low.c (handle_extended_wait): Pass parent thread instead
2508 of process to thread_db_notice_clone.
2509 * linux-low.h (thread_db_notice_clone): Replace parent process
2510 parameter with parent thread parameter.
2511 * thread-db.c (find_one_thread): Add comment.
2512 (thread_db_notice_clone): Replace parent process parameter with
2513 parent thread parameter. Temporarily switch to the parent thread.
2514
2515 2017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
2516
2517 * gdbthread.h: Include "common-gdbthread.h".
2518 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
2519 "if" when validating the ptid.
2520 * remote-utils.c: Include "gdbthread.h".
2521 (prepare_resume_reply): Use "switch_to_thread".
2522 * target.c (done_accessing_memory): Likewise.
2523
2524 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
2525
2526 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
2527 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
2528 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
2529 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
2530 s390x-gs-linux64-ipa.o to ipa_obj.
2531 * linux-s390-low.c (HWCAP_S390_GS): New define.
2532 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
2533 New functions.
2534 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
2535 (s390_arch_setup): Check for guarded-storage support and choose
2536 appropriate tdesc.
2537 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
2538 init_registers_s390x_gs_linux64.
2539 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
2540 enum value.
2541 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
2542 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
2543
2544 2017-09-22 Simon Marchi <simon.marchi@ericsson.com>
2545
2546 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
2547
2548 2017-09-21 Kevin Buettner <kevinb@redhat.com>
2549
2550 * linux-low.h (struct lwp_info): Add new field, thread_handle.
2551 (thread_db_thread_handle): Declare.
2552 * linux-low.c (linux_target_ops): Initialize thread_handle.
2553 * server.c (handle_qxfer_threads_worker): Add support for
2554 "handle" attribute.
2555 * target.h (struct target_ops): Add new function pointer,
2556 thread_handle.
2557 (target_thread_handle): Define.
2558 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
2559 field in lwp.
2560 (thread_db_thread_handle): New function.
2561
2562 2017-09-21 Kevin Buettner <kevinb@redhat.com>
2563
2564 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
2565 * linux-low.h (thread_db_notice_clone): Declare.
2566 * thread-db.c (thread_db_notice_clone): New function.
2567
2568 2017-09-21 Pedro Alves <palves@redhat.com>
2569
2570 * server.c (gdb_read_memory, handle_status, process_serial_event)
2571 (handle_serial_event, handle_target_event): Adjust to
2572 set_desired_thread prototype change.
2573 * target.c (set_desired_thread): Remove 'use_general' parameter
2574 and adjust.
2575 * target.h (set_desired_thread): Remove 'use_general' parameter.
2576
2577 2017-09-20 Tom Tromey <tom@tromey.com>
2578
2579 * target.c (target_terminal::terminal_state): Define.
2580 (target_terminal::init): Rename from target_terminal_init.
2581 (target_terminal::inferior): Rename from
2582 target_terminal_inferior.
2583 (target_terminal::ours): Rename from target_terminal_ours.
2584 (target_terminal::ours_for_output, target_terminal::info): New.
2585
2586 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
2587
2588 * server.c (accumulate_file_name_length): Remove.
2589 (emit_dll_description): Adjust to std::string change.
2590 (handle_qxfer_libraries): Use std::string to hold document.
2591
2592 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
2593
2594 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
2595 return type of xml_escape_text.
2596 * server.c (emit_dll_description): Likewise.
2597
2598 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
2599
2600 * server.c (captured_main): Accept argument for --selftest.
2601 Update run_tests call.
2602 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
2603 when registering selftests.
2604
2605 2017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2606
2607 * regcache.c (get_thread_regcache): Update code to use "std::vector"
2608 instead of "VEC" for "target_desc.reg_defs".
2609 (regcache_cpy): Likewise.
2610 (registers_to_string): Likewise.
2611 (registers_from_string): Likewise.
2612 (find_regno): Likewise.
2613 (supply_regblock): Likewise.
2614 (regcache_raw_read_unsigned): Likewise.
2615 * tdesc.c (init_target_desc): Likewise.
2616 (tdesc_create_reg): Likewise.
2617 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
2618 (struct target_desc) <reg_defs>: Convert to "std::vector".
2619 (target_desc): Do not initialize "reg_defs".
2620 (~target_desc): Update code to use "std::vector" instead of "VEC"
2621 for "target_desc.reg_defs".
2622 (operator==): Likewise.
2623
2624 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
2625
2626 * inferiors.h (thread_to_gdb_id): Remove.
2627 * inferiors.c (thread_to_gdb_id): Remove.
2628 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
2629 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
2630 lynx_store_registers, lynx_read_memory, lynx_write_memory):
2631 Likewise.
2632 * nto-low.c (nto_fetch_registers, nto_store_registers,
2633 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
2634
2635 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
2636
2637 * inferiors.h (gdb_id_to_thread_id): Remove.
2638 * inferiors.c (gdb_id_to_thread_id): Remove.
2639 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
2640 removal. Move pid declaration closer to where it's used.
2641
2642 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
2643
2644 * server.c (handle_detach): New function.
2645 (process_serial_event): Move code out, call handle_detach.
2646
2647 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
2648
2649 * server.c (require_running): Rename to ...
2650 (require_running_or_return): ... this ...
2651 (require_running_or_break): ... and this.
2652 (handle_query, process_serial_event): Adjust.
2653
2654 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
2655
2656 * linux-low.c (linux_set_resume_request): Remove unused
2657 variables.
2658
2659 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
2660
2661 * server.c (first_thread_of): Remove.
2662 (process_serial_event): Replace usage of first_thread_of with
2663 find_any_thread_of_pid.
2664 * tracepoint.c (same_process_p): Remove.
2665 (gdb_agent_about_to_close): Replace usage of same_process_p with
2666 find_any_thread_of_pid.
2667 * linux-x86-low.c (same_process_callback): Remove.
2668 (x86_arch_setup_process_callback): Replace usage of
2669 same_process_callback with find_any_thread_of_pid.
2670 * thread-db.c (any_thread_of): Remove.
2671 (switch_to_process): Replace usage of any_thread_of with
2672 find_any_thread_of_pid.
2673 * inferiors.c (thread_pid_matches_callback): Remove.
2674 (find_thread_process): Adjust to use find_any_thread_of_pid.
2675
2676 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
2677
2678 * regcache.c (get_thread_regcache): Guard calls to "memset"
2679 with "!VEC_empty".
2680
2681 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
2682
2683 * linux-low.c (handle_extended_wait): Use
2684 "allocate_target_description" instead of "XNEW".
2685 * linux-x86-low.c (initialize_low_arch): Likewise.
2686
2687 2017-09-05 Yao Qi <yao.qi@linaro.org>
2688
2689 * configure.srv (srv_i386_regobj): Remove.
2690 (srv_amd64_regobj): Remove.
2691 (srv_regobj): Set it to "" for x86 non-linux targets.
2692 * linux-x86-tdesc.c (i386_linux_read_description):
2693 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
2694 (init_registers_i386): Remove the declaration.
2695 (tdesc_i386): Remove the declaration.
2696 (lynx_i386_arch_setup): Call i386_create_target_description.
2697 * nto-x86-low.c: Likewise.
2698 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
2699 [!__x86_64__]: include arch/i386.h.
2700 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
2701
2702 2017-09-05 Yao Qi <yao.qi@linaro.org>
2703
2704 * configure.srv (srv_amd64_linux_xmlfiles): Remove
2705 i386/amd64-XXX-linux from it.
2706
2707 2017-09-05 Yao Qi <yao.qi@linaro.org>
2708
2709 * configure.srv: Empty srv_amd64_linux_regobj if $development is
2710 false.
2711 (ipa_amd64_linux_regobj): Remove.
2712 (ipa_x32_linux_regobj): Remove.
2713
2714 2017-09-05 Yao Qi <yao.qi@linaro.org>
2715
2716 * Makefile.in (arch-amd64.o): New rule.
2717 * configure.srv: Append arch-amd64.o.
2718 * linux-amd64-ipa.c: Include common/x86-xstate.h.
2719 (get_ipa_tdesc): Call amd64_linux_read_description.
2720 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
2721 and init_registers_amd64_XXX.
2722 * linux-x86-low.c (x86_linux_read_description): Call
2723 amd64_linux_read_description.
2724 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
2725 (initialize_low_arch): Don't call init_registers_x32_XXX and
2726 init_registers_amd64_XXX.
2727 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
2728 and tdesc_amd64_XXX.
2729 [__x86_64__] (amd64_tdesc_test): New function.
2730 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
2731 and init_registers_amd64_XXX.
2732 * linux-x86-tdesc.c: Include arch/amd64.h.
2733 (xcr0_to_tdesc_idx): New function.
2734 (i386_linux_read_description): New function.
2735 (amd64_get_ipa_tdesc_idx): New function.
2736 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
2737 (amd64_get_ipa_tdesc): Declare.
2738
2739 2017-09-05 Yao Qi <yao.qi@linaro.org>
2740
2741 * configure.srv (srv_i386_linux_xmlfiles): Remove
2742 i386/i386-XXX-linux.xml from it.
2743
2744 2017-09-05 Yao Qi <yao.qi@linaro.org>
2745
2746 * configure.srv: Set srv_i386_linux_regobj empty if $development
2747 is false.
2748 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
2749 initialize_low_tdesc.
2750 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
2751 with #if initialize_low_tdesc.
2752 * linux-x86-tdesc-selftest.c: New file.
2753 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
2754
2755 2017-09-05 Yao Qi <yao.qi@linaro.org>
2756
2757 * Makefile.in (arch-i386.o): New rule.
2758 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
2759 (x86_64-*-linux*): Likewise.
2760 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
2761 include arch/i386.h.
2762 (i386_linux_read_description): Remove code and call
2763 i386_create_target_description.
2764 * tdesc.c (allocate_target_description): New function.
2765 * tdesc.h (set_tdesc_architecture): Remove declaration.
2766 (set_tdesc_osabi): Likewise.
2767
2768 2017-09-05 Yao Qi <yao.qi@linaro.org>
2769
2770 * linux-x86-tdesc.c: Don't include <inttypes.h>.
2771 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
2772 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
2773 .xmltarget.
2774 * server.c (get_features_xml): Call tdesc_get_features_xml.
2775 * tdesc.c (set_tdesc_architecture): New function.
2776 (set_tdesc_osabi): New function.
2777 (tdesc_get_features_xml): New function.
2778 (tdesc_create_feature): Add an argument.
2779 * tdesc.h (struct target_desc) <features>: New field.
2780 <arch, osabi>: New field.
2781 (~target_desc): xfree features, arch, and osabi.
2782 (target_desc::oerator==): Don't compare .xmltarget.
2783 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
2784 (set_tdesc_osabi): Likewise.
2785 (tdesc_get_features_xml): Likewise.
2786
2787 2017-09-05 Yao Qi <yao.qi@linaro.org>
2788
2789 * linux-x86-tdesc.c: Include selftest.h.
2790 (i386_tdesc_test): New function.
2791 (initialize_low_tdesc): Call selftests::register_test.
2792 * tdesc.h: Include regdef.h.
2793 (target_desc): Override operator == and !=.
2794
2795 2017-09-05 Yao Qi <yao.qi@linaro.org>
2796
2797 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
2798 (ipa_obj): Likewise.
2799 * linux-i386-ipa.c: Include common/x86-xstate.h
2800 (get_ipa_tdesc): Call i386_linux_read_description.
2801 (initialize_low_tracepoint): Don't call init_registers_XXX
2802 functions, call initialize_low_tdesc instead.
2803 * linux-x86-low.c (x86_linux_read_description): Call
2804 i386_linux_read_description.
2805 (initialize_low_arch): Don't call init_registers_i386_XXX
2806 functions, call initialize_low_tdesc.
2807 * linux-x86-tdesc.c: New file.
2808 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
2809 (i386_get_ipa_tdesc_idx): Declare.
2810 (i386_get_ipa_tdesc): Declare.
2811 (initialize_low_tdesc): Declare.
2812
2813 2017-09-05 Yao Qi <yao.qi@linaro.org>
2814
2815 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
2816 instead of 0.
2817
2818 2017-09-05 Yao Qi <yao.qi@linaro.org>
2819
2820 * Makefile.in (IPA_OBJS): Add vec-ipa.o
2821 * regcache.c (get_thread_regcache): Use VEC_length.
2822 (init_register_cache): Likewise.
2823 (regcache_cpy): Likewise.
2824 (registers_to_string): Iterate reg_defs via VEC_iterate.
2825 (find_regno): Likewise.
2826 (find_register_by_number): Use VEC_index.
2827 (register_size): Call find_register_by_number.
2828 (register_data): Call find_register_by_number.
2829 (supply_regblock): Use VEC_length.
2830 (regcache_raw_read_unsigned): Likewise.
2831 * tdesc.c (init_target_desc): Iterate reg_defs via
2832 VEC_iterate.
2833 (default_description): Update initializer.
2834 (copy_target_description): Don't update field num_registers.
2835 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
2836 <num_registers>: Remove.
2837
2838 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
2839
2840 * Makefile.in (.SECONDARY): Define target.
2841
2842 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
2843
2844 * linux-low.c (linux_wait_1): Adjust.
2845 * server.c (queue_stop_reply_callback): Adjust.
2846
2847 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
2848
2849 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
2850 QEnvironmentUnset and QEnvironmentReset packets.
2851 (handle_query): Inform remote that QEnvironmentHexEncoded,
2852 QEnvironmentUnset and QEnvironmentReset are supported.
2853
2854 2017-08-25 Simon Marchi <simon.marchi@ericsson.com>
2855
2856 * inferiors.h (inferior_target_data): Rename to ...
2857 (thread_target_data): ... this.
2858 (inferior_regcache_data): Rename to ...
2859 (thread_regcache_data): ... this.
2860 (set_inferior_regcache_data): Rename to ...
2861 (set_thread_regcache_data): ... this.
2862 * inferiors.c (inferior_target_data): Rename to ...
2863 (thread_target_data): ... this.
2864 (inferior_regcache_data): Rename to ...
2865 (thread_regcache_data): ... this.
2866 (set_inferior_regcache_data): Rename to ...
2867 (set_thread_regcache_data): ... this.
2868 (free_one_thread): Update.
2869 * linux-low.h (get_thread_lwp): Update.
2870 * regcache.c (get_thread_regcache): Update.
2871 (regcache_invalidate_thread): Update.
2872 (free_register_cache_thread): Update.
2873 * win32-i386-low.c (update_debug_registers_callback): Update.
2874 (win32_get_current_dr): Update.
2875 * win32-low.c (thread_rec): Update.
2876 (delete_thread_info): Update.
2877 (continue_one_thread): Update.
2878 (suspend_one_thread): Update.
2879
2880 2017-08-24 Simon Marchi <simon.marchi@ericsson.com>
2881
2882 * inferiors.c (set_inferior_target_data): Remove.
2883 * inferiors.h (set_inferior_target_data): Remove.
2884
2885 2017-08-18 Yao Qi <yao.qi@linaro.org>
2886
2887 * Makefile.in (OBS): Add selftest.o.
2888 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
2889 * configure, config.in: Re-generated.
2890 * server.c: Include common/sefltest.h.
2891 (captured_main): Handle option --selftest.
2892
2893 2017-08-09 Yao Qi <yao.qi@linaro.org>
2894
2895 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
2896 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
2897 i386-avx-mpx.o and i386-mmx.o.
2898 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
2899 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
2900 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
2901 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
2902 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
2903 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
2904 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
2905 i386/amd64-avx-mpx.xml.
2906
2907 2017-08-09 Yao Qi <yao.qi@linaro.org>
2908
2909 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
2910 and x32-avx-avx512.o.
2911 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
2912 i386/x32-avx-avx512.xml.
2913
2914 2017-07-26 Simon Marchi <simon.marchi@ericsson.com>
2915
2916 * tracepoint.h (enum class fast_tpoint_collect_result): New
2917 enumeration.
2918 (fast_tracepoint_collecting): Change return type to
2919 fast_tpoint_collect_result.
2920 * tracepoint.c (fast_tracepoint_collecting): Likewise.
2921 * linux-low.h: Include tracepoint.h.
2922 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
2923 fast_tpoint_collect_result.
2924 * linux-low.c (handle_tracepoints): Adjust.
2925 (linux_fast_tracepoint_collecting): Change return type to
2926 fast_tpoint_collect_result.
2927 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
2928 linux_wait_1, stuck_in_jump_pad_callback,
2929 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
2930 proceed_one_lwp): Adjust to type change.
2931
2932 2017-07-10 Yao Qi <yao.qi@linaro.org>
2933
2934 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
2935
2936 2017-06-29 Yao Qi <yao.qi@linaro.org>
2937
2938 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
2939 Remove.
2940 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
2941
2942 2017-06-20 Simon Marchi <simon.marchi@ericsson.com>
2943
2944 * Makefile.in (IPA_OBJS): Sort and format one item per line.
2945
2946 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
2947
2948 * linux-low.c (linux_create_inferior): Adjust code to access the
2949 environment information via 'gdb_environ' class.
2950 * lynx-low.c (lynx_create_inferior): Likewise.
2951 * server.c (our_environ): Make it an instance of 'gdb_environ'.
2952 (get_environ): Return a pointer to 'our_environ'.
2953 (captured_main): Initialize 'our_environ'.
2954 * server.h (get_environ): Adjust prototype.
2955 * spu-low.c (spu_create_inferior): Adjust code to access the
2956 environment information via 'gdb_environ' class.
2957
2958 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
2959
2960 * linux-low.c (linux_read_memory, linux_write_memory): Remove
2961 usage of "register" keyword.
2962
2963 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
2964
2965 * configure: Re-generate.
2966
2967 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
2968
2969 * configure: Re-generate.
2970
2971 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
2972
2973 * Makefile.in (COMPILE.pre): Add "-x c++".
2974
2975 2017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
2976
2977 * fork-child.c: Conditionally include <signal.h>.
2978
2979 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
2980
2981 * server.c (handle_general_set): Handle new packet
2982 "QStartupWithShell".
2983 (handle_query): Add "QStartupWithShell" to the list of supported
2984 packets.
2985 (gdbserver_usage): Add help text explaining the
2986 new "--startup-with-shell" and "--no-startup-with-shell" CLI
2987 options.
2988 (captured_main): Recognize and act upon the presence of the new
2989 CLI options.
2990
2991 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
2992 Pedro Alves <palves@redhat.com>
2993
2994 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
2995 * configure: Regenerate.
2996 * configure.srv (srv_linux_obj): Add "fork-child.o" and
2997 "fork-inferior.o".
2998 (i[34567]86-*-lynxos*): Likewise.
2999 (spu*-*-*): Likewise.
3000 * fork-child.c: New file.
3001 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
3002 and "environ.h".
3003 (linux_ptrace_fun): New function.
3004 (linux_create_inferior): Adjust function prototype to reflect
3005 change on "target.h". Adjust function code to use
3006 "fork_inferior".
3007 (linux_request_interrupt): Delete "signal_pid".
3008 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
3009 (lynx_ptrace_fun): New function.
3010 (lynx_create_inferior): Adjust function prototype to reflect
3011 change on "target.h". Adjust function code to use
3012 "fork_inferior".
3013 * nto-low.c (nto_create_inferior): Adjust function prototype and
3014 code to reflect change on "target.h". Update comments.
3015 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
3016 "common-terminal.h" and "environ.h".
3017 (terminal_fd): Moved to fork-child.c.
3018 (old_foreground_pgrp): Likewise.
3019 (restore_old_foreground_pgrp): Likewise.
3020 (last_status): Make it global.
3021 (last_ptid): Likewise.
3022 (our_environ): New variable.
3023 (startup_with_shell): Likewise.
3024 (program_name): Likewise.
3025 (program_argv): Rename to...
3026 (program_args): ...this.
3027 (wrapper_argv): New variable.
3028 (start_inferior): Delete function.
3029 (get_exec_wrapper): New function.
3030 (get_exec_file): Likewise.
3031 (get_environ): Likewise.
3032 (prefork_hook): Likewise.
3033 (post_fork_inferior): Likewise.
3034 (postfork_hook): Likewise.
3035 (postfork_child_hook): Likewise.
3036 (handle_v_run): Update code to deal with arguments coming from the
3037 remote host. Update calls from "start_inferior" to
3038 "create_inferior".
3039 (captured_main): Likewise. Initialize environment variable. Call
3040 "have_job_control".
3041 * server.h (post_fork_inferior): New prototype.
3042 (get_environ): Likewise.
3043 (last_status): Declare.
3044 (last_ptid): Likewise.
3045 (signal_pid): Likewise.
3046 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
3047 (spu_ptrace_fun): New function.
3048 (spu_create_inferior): Adjust function prototype to reflect change
3049 on "target.h". Adjust function code to use "fork_inferior".
3050 * target.c (target_terminal_init): New function.
3051 (target_terminal_inferior): Likewise.
3052 (target_terminal_ours): Likewise.
3053 * target.h: Include <vector>.
3054 (struct target_ops) <create_inferior>: Update prototype.
3055 (create_inferior): Update macro.
3056 * utils.c (gdb_flush_out_err): New function.
3057 * win32-low.c (win32_create_inferior): Adjust function prototype
3058 and code to reflect change on "target.h".
3059
3060 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
3061
3062 * inferiors.c (switch_to_thread): New function.
3063
3064 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
3065
3066 * Makefile.in (SFILE): Add "common/job-control.c".
3067 (OBS): Add "job-control.o".
3068
3069 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
3070
3071 * Makefile: Remove "@host_makefile_frag@".
3072
3073 2017-05-05 Pedro Alves <palves@redhat.com>
3074
3075 * configure: Regenerate.
3076
3077 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
3078
3079 * configure: Regenerate.
3080
3081 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
3082
3083 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
3084 software_single_step change of return type to
3085 std::vector<CORE_ADDR>.
3086 * linux-low.c (install_software_single_step_breakpoints):
3087 Likewise.
3088 * linux-low.h (install_software_single_step_breakpoints):
3089 Likewise.
3090
3091 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
3092
3093 * remote-utils.c: Include "gdb_termios.h" instead of
3094 "terminal.h".
3095 * terminal.h: Delete file.
3096
3097 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
3098
3099 * server.c: Include <vector>.
3100 <program_argv, wrapper_argv>: Convert to std::vector.
3101 (start_inferior): Rewrite function to use C++.
3102 (handle_v_run): Likewise. Update code that calculates the argv
3103 based on the vRun packet; use C++.
3104 (captured_main): Likewise.
3105
3106 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
3107
3108 * server.c (handle_v_cont): Initialize thread_resume::thread
3109 with null_ptid.
3110
3111 2017-04-05 Pedro Alves <palves@redhat.com>
3112
3113 * configure: Regenerate.
3114
3115 2017-04-05 Pedro Alves <palves@redhat.com>
3116
3117 * gdbreplay.c (sync_error): Constify.
3118 * linux-x86-low.c (push_opcode): Constify.
3119
3120 2017-04-05 Pedro Alves <palves@redhat.com>
3121
3122 * win32-low.c (get_child_debug_event)
3123 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
3124 Report TARGET_WAITKIND_SPURIOUS instead.
3125
3126 2017-04-05 Pedro Alves <palves@redhat.com>
3127
3128 * remote-utils.c (remote_prepare, remote_open): Constify.
3129 * remote-utils.h (remote_prepare, remote_open): Constify.
3130 * server.c (captured_main): Constify 'port' handling.
3131
3132 2017-04-04 Simon Marchi <simon.marchi@ericsson.com>
3133
3134 * Makefile.in (clean): Clear .deps.
3135
3136 2017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
3137
3138 * .gitignore: Remove generated files, replace with wildcard.
3139 * (clean): Replace removal of generated files with wildcard.
3140 (version.c): Replace with...
3141 (version-generated.c): ...this.
3142 (xml-builtin.c): Replace with...
3143 (xml-builtin-generated.c): ...this.
3144 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
3145 (%.c: *regformats*): Replace with...
3146 (%-generated.c: *regformats*): ...this.
3147
3148 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
3149
3150 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
3151 (xtensa_fill_gregset): Call collect_register_by_name for
3152 threadptr register.
3153 (xtensa_store_gregset): Call supply_register_by_name for
3154 threadptr register.
3155
3156 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
3157
3158 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
3159 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
3160 (xtensa_store_gregset): Call supply_register for all registers in
3161 a0_regnum..a0_regnum + C0_NREGS range.
3162
3163 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
3164
3165 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
3166 (ax-ipa.o: ax.c): Remove.
3167 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
3168 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
3169 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
3170 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
3171 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
3172
3173 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
3174
3175 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
3176 (print-utils-ipa.o: ../common/print-utils.c): Remove.
3177 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
3178 (errors-ipa.o: ../common/errors.c): Remove.
3179 (format-ipa.o: ../common/format.c): Remove.
3180 (common-utils-ipa.o: ../common/common-utils.c): Remove.
3181
3182 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
3183
3184 * Makefile.in (%-ipa.o: %.c): New rule.
3185 (tracepoint-ipa.o: tracepoint.c): Remove.
3186 (utils-ipa.o: utils.c): Remove.
3187 (remote-utils-ipa.o: remote-utils.c): Remove.
3188 (regcache-ipa.o: regcache.c): Remove.
3189 (i386-linux-ipa.o: i386-linux.c): Remove.
3190 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
3191 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
3192 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
3193 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
3194 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
3195 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
3196 (amd64-linux-ipa.o: amd64-linux.c): Remove.
3197 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
3198 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
3199 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
3200 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
3201 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
3202 (aarch64-ipa.o: aarch64.c): Remove.
3203 (s390-linux32-ipa.o: s390-linux32.c): Remove.
3204 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
3205 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
3206 (s390-linux64-ipa.o: s390-linux64.c): Remove.
3207 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
3208 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
3209 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
3210 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
3211 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
3212 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
3213 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
3214 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
3215 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
3216 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
3217 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
3218 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
3219 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
3220 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
3221 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
3222 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
3223 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
3224 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
3225 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
3226 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
3227 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
3228 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
3229 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
3230 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
3231 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
3232 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
3233 (tdesc-ipa.o: tdesc.c): Remove.
3234 (x32-linux-ipa.o: x32-linux.c): Remove.
3235 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
3236 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
3237
3238 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
3239
3240 * Makefile.in (%.o: ../arch/%.c): New rule.
3241 (arm.o: ../arch/arm.c): Remove.
3242 (arm-linux.o: ../arch/arm-linux.c): Remove.
3243 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
3244 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
3245
3246 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
3247
3248 * Makefile.in (%.o: ../nat/%.c): New rule.
3249 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
3250 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
3251 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
3252 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
3253 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
3254 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
3255 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
3256 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
3257 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
3258 (linux-personality.o: ../nat/linux-personality.c): Remove.
3259 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
3260 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
3261 (x86-linux.o: ../nat/x86-linux.c): Remove.
3262 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
3263 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
3264
3265 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
3266
3267 * Makefile.in (%.o: ../common/%.c): New rule.
3268 (signals.o: ../common/signals.c): Remove.
3269 (print-utils.o: ../common/print-utils.c): Remove.
3270 (rsp-low.o: ../common/rsp-low.c): Remove.
3271 (common-utils.o: ../common/common-utils.c): Remove.
3272 (posix-strerror.o: ../common/posix-strerror.c): Remove.
3273 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
3274 (vec.o: ../common/vec.c): Remove.
3275 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
3276 (xml-utils.o: ../common/xml-utils.c): Remove.
3277 (ptid.o: ../common/ptid.c): Remove.
3278 (buffer.o: ../common/buffer.c): Remove.
3279 (format.o: ../common/format.c): Remove.
3280 (filestuff.o: ../common/filestuff.c): Remove.
3281 (agent.o: ../common/agent.c): Remove.
3282 (errors.o: ../common/errors.c): Remove.
3283 (environ.o: ../common/environ.c): Remove.
3284 (common-debug.o: ../common/common-debug.c): Remove.
3285 (cleanups.o: ../common/cleanups.c): Remove.
3286 (common-exceptions.o: ../common/common-exceptions.c): Remove.
3287 (fileio.o: ../common/fileio.c): Remove.
3288 (common-regcache.o: ../common/common-regcache.c): Remove.
3289 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
3290 (new-op.o: ../common/new-op.c): Remove.
3291 (btrace-common.o: ../common/btrace-common.c): Remove.
3292
3293 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
3294
3295 * Makefile.in (%.o: ../target/%.c): New rule.
3296 (waitstatus.o: ../target/waitstatus.c): Remove.
3297
3298 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
3299
3300 * Makefile.in
3301 (%.c: ../regformats/%.dat,
3302 (%.c: ../regformats/arm/%.dat,
3303 (%.c: ../regformats/i386/%.dat,
3304 (%.c: ../regformats/rs6000/%.dat): New rules.
3305 (aarch64.c): Remove.
3306 (reg-arm.c): Remove.
3307 (arm-with-iwmmxt.c): Remove.
3308 (arm-with-vfpv2.c): Remove.
3309 (arm-with-vfpv3.c): Remove.
3310 (arm-with-neon.c): Remove.
3311 (reg-bfin.c): Remove.
3312 (reg-cris.c): Remove.
3313 (reg-crisv32.c): Remove.
3314 (i386.c): Remove.
3315 (i386-linux.c): Remove.
3316 (i386-avx.c): Remove.
3317 (i386-avx-linux.c): Remove.
3318 (i386-avx-avx512.c): Remove.
3319 (i386-avx-avx512-linux.c): Remove.
3320 (i386-mpx.c): Remove.
3321 (i386-mpx-linux.c): Remove.
3322 (i386-avx-mpx-avx512-pku.c): Remove.
3323 (i386-avx-mpx-avx512-pku-linux.c): Remove.
3324 (i386-avx-mpx.c): Remove.
3325 (i386-avx-mpx-linux.c): Remove.
3326 (i386-mmx.c): Remove.
3327 (i386-mmx-linux.c): Remove.
3328 (reg-ia64.c): Remove.
3329 (reg-m32r.c): Remove.
3330 (reg-m68k.c): Remove.
3331 (reg-cf.c): Remove.
3332 (mips-linux.c): Remove.
3333 (mips-dsp-linux.c): Remove.
3334 (mips64-linux.c): Remove.
3335 (mips64-dsp-linux.c): Remove.
3336 (nios2-linux.c): Remove.
3337 (powerpc-32.c): Remove.
3338 (powerpc-32l.c): Remove.
3339 (powerpc-altivec32l.c): Remove.
3340 (powerpc-cell32l.c): Remove.
3341 (powerpc-vsx32l.c): Remove.
3342 (powerpc-isa205-32l.c): Remove.
3343 (powerpc-isa205-altivec32l.c): Remove.
3344 (powerpc-isa205-vsx32l.c): Remove.
3345 (powerpc-e500l.c): Remove.
3346 (powerpc-64l.c): Remove.
3347 (powerpc-altivec64l.c): Remove.
3348 (powerpc-cell64l.c): Remove.
3349 (powerpc-vsx64l.c): Remove.
3350 (powerpc-isa205-64l.c): Remove.
3351 (powerpc-isa205-altivec64l.c): Remove.
3352 (powerpc-isa205-vsx64l.c): Remove.
3353 (s390-linux32.c): Remove.
3354 (s390-linux32v1.c): Remove.
3355 (s390-linux32v2.c): Remove.
3356 (s390-linux64.c): Remove.
3357 (s390-linux64v1.c): Remove.
3358 (s390-linux64v2.c): Remove.
3359 (s390-te-linux64.c): Remove.
3360 (s390-vx-linux64.c): Remove.
3361 (s390-tevx-linux64.c): Remove.
3362 (s390x-linux64.c): Remove.
3363 (s390x-linux64v1.c): Remove.
3364 (s390x-linux64v2.c): Remove.
3365 (s390x-te-linux64.c): Remove.
3366 (s390x-vx-linux64.c): Remove.
3367 (s390x-tevx-linux64.c): Remove.
3368 (tic6x-c64xp-linux.c): Remove.
3369 (tic6x-c64x-linux.c): Remove.
3370 (tic6x-c62x-linux.c): Remove.
3371 (reg-sh.c): Remove.
3372 (reg-sparc64.c): Remove.
3373 (reg-spu.c): Remove.
3374 (amd64.c): Remove.
3375 (amd64-linux.c): Remove.
3376 (amd64-avx.c): Remove.
3377 (amd64-avx-linux.c): Remove.
3378 (amd64-avx-avx512.c): Remove.
3379 (amd64-avx-avx512-linux.c): Remove.
3380 (amd64-mpx.c): Remove.
3381 (amd64-mpx-linux.c): Remove.
3382 (amd64-avx-mpx-avx512-pku.c): Remove.
3383 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
3384 (amd64-avx-mpx.c): Remove.
3385 (amd64-avx-mpx-linux.c): Remove.
3386 (x32.c): Remove.
3387 (x32-linux.c): Remove.
3388 (x32-avx.c): Remove.
3389 (x32-avx-linux.c): Remove.
3390 (x32-avx-avx512.c): Remove.
3391 (x32-avx-avx512-linux.c): Remove.
3392 (reg-xtensa.c): Remove.
3393 (reg-tilegx.c): Remove.
3394 (reg-tilegx32.c): Remove.
3395
3396 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
3397
3398 * Makefile.in (SFILES): Add "common/environ.c".
3399 (OBJS): Add "common/environ.h".
3400
3401 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
3402
3403 * configure.ac: Check if the fs_base and gs_base members of
3404 `struct user_regs_struct' exist.
3405 * config.in: Regenerated.
3406 * configure: Likewise.
3407
3408 2017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
3409
3410 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
3411 target_read_memory.
3412 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
3413 (get_next_pcs_syscall_next_pc): Likewise.
3414
3415 2016-12-23 Luis Machado <lgustavo@codesourcery.com>
3416
3417 * win32-i386-low.c: Fix incorrect reference to a couple source files.
3418 * nto-x86-low.c: Likewise.
3419
3420 2016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
3421
3422 * Makefile.in: Include disable-implicit-rules.mk.
3423
3424 2016-11-23 Pedro Alves <palves@redhat.com>
3425
3426 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
3427 (debug_vprintf): Use std::chrono::steady_clock instead of
3428 gettimeofday. Use '.' instead of ':'.
3429 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
3430 (get_timestamp): Use std::chrono::steady_clock instead of
3431 gettimeofday.
3432
3433 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
3434
3435 * Makefile.in: Fix whitespace formatting.
3436
3437 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
3438
3439 * Makefile.in (SFILES, OBS): Flatten list and order
3440 alphabetically.
3441
3442 2016-11-23 Pedro Alves <palves@redhat.com>
3443
3444 * event-loop.c (handle_file_event): Use warning.
3445 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
3446 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
3447 Use warning.
3448
3449 2016-11-23 Pedro Alves <palves@redhat.com>
3450
3451 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
3452 output.
3453 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
3454 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
3455 debug_printf and debug_flush for debug output.
3456 * server.c (handle_general_set): Likewise.
3457 * thread-db.c (try_thread_db_load): Use debug_printf for debug
3458 output.
3459
3460 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
3461
3462 * Makefile.in (.c.o): Replace rule with ...
3463 (%.o: %.c): ... this one.
3464
3465 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
3466
3467 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
3468 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
3469 make.
3470 * configure.ac: Remove checks for the make program.
3471 * configure: Re-generate.
3472
3473 2016-10-28 Pedro Alves <palves@redhat.com>
3474
3475 * Makefile.in (CXX_DIALECT): Get from configure.
3476 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
3477 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
3478 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
3479 * config.in: Regenerate.
3480 * configure: Regenerate.
3481
3482 2016-10-27 Yao Qi <yao.qi@linaro.org>
3483
3484 * linux-low.c (linux_supports_range_stepping): Return true if
3485 can_software_single_step return true.
3486
3487 2016-10-27 Yao Qi <yao.qi@linaro.org>
3488
3489 * inferiors.c (find_inferior_in_random): New function.
3490 * inferiors.h (find_inferior_in_random): Declare.
3491 * linux-low.c (linux_wait_for_event_filtered): Call
3492 find_inferior_in_random instead of find_inferior.
3493
3494 2016-10-27 Yao Qi <yao.qi@linaro.org>
3495
3496 * linux-low.c (linux_wait_1): If single-step breakpoints are
3497 inserted, remove them.
3498
3499 2016-10-26 Pedro Alves <palves@redhat.com>
3500
3501 * linux-low.c (handle_extended_wait): Link parent/child fork
3502 threads.
3503 (linux_wait_1): Unlink them.
3504 (linux_set_resume_request): Ignore resume requests for
3505 already-resumed and unhandled fork child threads.
3506 * linux-low.h (struct lwp_info) <fork_relative>: New field.
3507 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
3508 New functions.
3509 (handle_v_requests) <vCont>: Don't call require_running.
3510 * server.h (in_queued_stop_replies): New declaration.
3511
3512 2016-10-24 Yao Qi <yao.qi@linaro.org>
3513
3514 PR server/20733
3515 * linux-aarch64-low.c (append_insns): Cast the return value to
3516 'uint32_t *'.
3517
3518 2016-10-10 Yao Qi <yao.qi@linaro.org>
3519
3520 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
3521
3522 2016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
3523
3524 * target.c (target_supports_multi_process): New function, moved
3525 from...
3526 * target.h (target_supports_multi_process): ... here. Remove
3527 macro.
3528
3529 2016-10-05 Tom Tromey <tom@tromey.com>
3530
3531 PR remote/20655:
3532 * tracepoint.c (handle_tracepoint_bkpts): Check
3533 ipa_error_tracepoint, not ipa_stopping_tracepoint.
3534
3535 2016-10-05 Yao Qi <yao.qi@linaro.org>
3536
3537 * configure.srv: Update the path of arm-*.xml files.
3538
3539 2016-10-05 Terry Guo <terry.guo@arm.com>
3540 Yao Qi <yao.qi@linaro.org>
3541
3542 * Makefile.in: Adjust the path of rules.
3543 * configure.srv: Update the path of xml files.
3544 * regformats/arm-with-iwmmxt.dat: Regenerated.
3545 * regformats/arm-with-neon.dat: Likewise.
3546 * regformats/arm-with-vfpv2.dat: Likewise.
3547 * regformats/arm-with-vfpv3.dat Likewise.
3548
3549 2016-09-30 Yao Qi <yao.qi@linaro.org>
3550
3551 PR gdbserver/20627
3552 * target.c (target_stop_and_wait): Don't call
3553 target_continue_no_signal, use resume_stop instead.
3554
3555 2016-09-26 Yao Qi <yao.qi@linaro.org>
3556
3557 * linux-low.c (linux_wait_1): Call debug_exit.
3558
3559 2016-09-23 Pedro Alves <palves@redhat.com>
3560
3561 * Makefile.in (SFILES): Add common/new-op.c.
3562 (OBS): Add common/new-op.o.
3563 (new-op.o): New rule.
3564
3565 2016-09-21 Simon Marchi <simon.marchi@ericsson.com>
3566
3567 * .gitinore: Ignore more files.
3568
3569 2016-09-21 Yao Qi <yao.qi@linaro.org>
3570
3571 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
3572 23.
3573
3574 2016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
3575
3576 * server.c (start_inferior): Call target_mourn_inferior instead of
3577 mourn_inferior; pass ptid_t argument to it.
3578 (resume): Likewise.
3579 (handle_target_event): Likewise.
3580 * target.c (target_mourn_inferior): New function.
3581 * target.h (mourn_inferior): Delete macro.
3582
3583 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
3584
3585 * linux-low.c (lwp_is_stepping): New function.
3586
3587 2016-09-06 Carl Love <cel@us.ibm.com>
3588
3589 * server.c (start_inferior): Fixed comment, requested comment change
3590 didn't get updated correctly. Removed reference to ptrace () call as
3591 it is only true on Linux systems.
3592
3593 2016-09-06 Carl Love <cel@us.ibm.com>
3594
3595 * server.c (start_inferior): Do not call
3596 function target_post_create_inferior () if the
3597 inferior process has already exited.
3598
3599 2016-09-05 Pedro Alves <palves@redhat.com>
3600
3601 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
3602 (COMPILE.pre, CC_LD): Use CXX directly.
3603 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
3604 * acinclude.m4: Don't include build-with-cxx.m4.
3605 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
3606 * configure: Regenerate.
3607
3608 2016-09-02 Akash Trehan <akash.trehan123@gmail.com>
3609
3610 PR gdb/19495
3611 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
3612 call writing data to own_buf.
3613
3614 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
3615
3616 * target.c (mywait): Call target_wait instead of
3617 the_target->wait.
3618 (target_wait): New function.
3619
3620 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
3621
3622 * server.c (start_inferior): New variable 'ptid'. Replace calls
3623 to the_target->resume by target_continue{,_no_signal}, depending
3624 on the case.
3625 * target.c (target_stop_and_wait): Call target_continue_no_signal
3626 instead of the_target->resume.
3627 (target_continue): New function.
3628
3629 2016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
3630
3631 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
3632
3633 2016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3634
3635 PR server/20491
3636 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
3637 ps_prochandle.
3638 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
3639 * linux-arm-low.c (ps_get_thread_area): Likewise.
3640 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
3641 * linux-m68k-low.c (ps_get_thread_area): Likewise.
3642 * linux-mips-low.c (ps_get_thread_area): Likewise.
3643 * linux-nios2-low.c (ps_get_thread_area): Likewise.
3644 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
3645 * linux-x86-low.c (ps_get_thread_area): Likewise.
3646 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
3647
3648 2016-08-19 Pedro Alves <palves@redhat.com>
3649
3650 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
3651
3652 2016-08-19 Pedro Alves <palves@redhat.com>
3653
3654 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
3655 comment. Use memcpy instead of casting through unsigned long.
3656
3657 2016-08-19 Pedro Alves <palves@redhat.com>
3658
3659 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
3660 allocating around 0x80000000.
3661
3662 2016-08-19 Pedro Alves <palves@redhat.com>
3663
3664 PR gdb/20415
3665 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
3666 (x32-avx512-linux-ipa.o): New rules.
3667 * configure.ac (x86_64-*-linux*): New x32 check.
3668 * configure.srv (ipa_x32_linux_regobj): New.
3669 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
3670 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
3671 descriptions.
3672 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
3673 descriptions.
3674 * configure: Regenerate.
3675
3676 2016-08-09 Pedro Alves <palves@redhat.com>
3677
3678 PR gdb/18653
3679 * Makefile.in (OBS): Add signals-state-save-restore.o.
3680 (signals-state-save-restore.o): New rule.
3681 * config.in: Regenerate.
3682 * configure: Regenerate.
3683 * linux-low.c: Include "signals-state-save-restore.h".
3684 (linux_create_inferior): Call
3685 restore_original_signals_state.
3686 * server.c: Include "dispositions-save-restore.h".
3687 (captured_main): Call save_original_signals_state.
3688
3689 2016-08-05 Pedro Alves <palves@redhat.com>
3690
3691 * configure: Regenerate.
3692
3693 2016-08-04 Yao Qi <yao.qi@linaro.org>
3694
3695 * linux-low.c (regsets_fetch_inferior_registers): Check
3696 errno is ESRCH or not.
3697
3698 2016-08-02 Yao Qi <yao.qi@linaro.org>
3699
3700 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
3701 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
3702 (thread_db_load_search): Update.
3703 (try_thread_db_load_1): Don't look for td_ta_event_addr,
3704 td_ta_set_event and td_ta_event_getmsg.
3705
3706 2016-07-26 Pedro Alves <palves@redhat.com>
3707
3708 PR server/20414
3709 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
3710 of unsigned long for 64-bit registers and use uint32_t instead of
3711 unsigned int for 32-bit registers.
3712
3713 2016-07-26 Pedro Alves <palves@redhat.com>
3714
3715 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
3716 to 'ptrace'.
3717
3718 2016-07-21 Tom Tromey <tom@tromey.com>
3719
3720 * configure: Rebuild.
3721
3722 2016-07-21 Yao Qi <yao.qi@linaro.org>
3723
3724 * mem-break.c (find_gdb_breakpoint): Cast bp to
3725 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
3726
3727 2016-07-21 Yao Qi <yao.qi@linaro.org>
3728
3729 * server.c (handle_v_requests): Support s and S actions
3730 if target_supports_software_single_step return true.
3731
3732 2016-07-21 Yao Qi <yao.qi@linaro.org>
3733
3734 * linux-low.c (resume_stopped_resumed_lwps): If resume request
3735 is resume_step, call maybe_hw_step.
3736 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
3737 and unstop them.
3738 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
3739 breakpoints or not.
3740 (proceed_one_lwp): If resume request is resume_step, install
3741 reinsert breakpoints and call maybe_hw_step.
3742
3743 2016-07-21 Yao Qi <yao.qi@linaro.org>
3744
3745 * linux-low.c (proceed_one_lwp): Declare.
3746 (linux_resume_one_thread): Remove local variable 'step'.
3747 Lift code enqueue signal. Call proceed_one_lwp instead of
3748 linux_resume_one_lwp.
3749
3750 2016-07-21 Yao Qi <yao.qi@linaro.org>
3751
3752 * linux-low.c (linux_resume_one_thread): Call
3753 enqueue_pending_signal.
3754
3755 2016-07-21 Yao Qi <yao.qi@linaro.org>
3756
3757 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
3758 * inferiors.c (do_restore_current_thread_cleanup): New function.
3759 (make_cleanup_restore_current_thread): Likewise.
3760 * linux-low.c (install_software_single_step_breakpoints): Call
3761 make_cleanup_restore_current_thread. Switch current_thread to
3762 thread.
3763
3764 2016-07-21 Yao Qi <yao.qi@linaro.org>
3765
3766 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
3767 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
3768 (clone_one_breakpoint): Likewise.
3769 (delete_reinsert_breakpoints): Change parameter to thread.
3770 Callers updated.
3771 (has_reinsert_breakpoints): Likewise.
3772 (uninsert_reinsert_breakpoints): Likewise.
3773 (reinsert_reinsert_breakpoints): Likewise.
3774 * mem-break.h (set_reinsert_breakpoint): Update declaration.
3775 (delete_reinsert_breakpoints): Likewise.
3776 (reinsert_reinsert_breakpoints): Likewise.
3777 (uninsert_reinsert_breakpoints): Likewise.
3778 (has_reinsert_breakpoints): Likewise.
3779
3780 2016-07-21 Yao Qi <yao.qi@linaro.org>
3781
3782 * inferiors.c (get_thread_process): Make parameter const.
3783 * inferiors.h (get_thread_process): Update declaration.
3784 * mem-break.c (clone_all_breakpoints): Remove all parameters.
3785 Add new parameters child_thread and parent_thread. Callers
3786 updated.
3787 * mem-break.h (clone_all_breakpoints): Update declaration.
3788
3789 2016-07-21 Yao Qi <yao.qi@linaro.org>
3790
3791 * mem-break.c (struct breakpoint) <cond_list>: Remove.
3792 <command_list, handler>: Remove.
3793 (struct gdb_breakpoint): New.
3794 (struct other_breakpoint): New.
3795 (struct reinsert_breakpoint): New.
3796 (is_gdb_breakpoint): New function.
3797 (any_persistent_commands): Update command_list if
3798 is_gdb_breakpoint returns true.
3799 (set_breakpoint): Create breakpoints according to their types.
3800 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
3801 (set_gdb_breakpoint_1): Likewise.
3802 (set_gdb_breakpoint): Likewise.
3803 (clear_breakpoint_conditions): Change parameter type to
3804 'struct gdb_breakpoint *'.
3805 (clear_breakpoint_commands): Likewise.
3806 (clear_breakpoint_conditions_and_commands): Likewise.
3807 (add_condition_to_breakpoint): Likewise.
3808 (add_breakpoint_condition): Likewise.
3809 (add_commands_to_breakpoint): Likewise.
3810 (check_breakpoints): Check other_breakpoint.
3811 (clone_one_breakpoint): Clone breakpopint according to its type.
3812 * mem-break.h (struct gdb_breakpoint): Declare.
3813 (set_gdb_breakpoint): Update declaration.
3814 (clear_breakpoint_conditions_and_commands): Likewise.
3815 (add_breakpoint_condition): Likewise.
3816 (add_breakpoint_commands): Likewise.
3817 * server.c (process_point_options): Change parameter type to
3818 'struct gdb_breakpoint *'.
3819
3820 2016-07-21 Yao Qi <yao.qi@linaro.org>
3821
3822 * mem-break.c (set_breakpoint_at): Rename it to ...
3823 (set_breakpoint_type_at): ... it.
3824 (set_breakpoint_at): Call set_breakpoint_type_at.
3825 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
3826 * mem-break.h (set_breakpoint_at): Update comments.
3827
3828 2016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
3829
3830 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
3831 to buf parameter.
3832 (nios2_store_gregset): Likewise.
3833
3834 2016-07-01 Pedro Alves <palves@redhat.com>
3835 Antoine Tremblay <antoine.tremblay@ericsson.com>
3836
3837 * linux-low.c: Change interface to take the target lwp_info
3838 pointer directly and return void. Handle detaching from a zombie
3839 thread.
3840 (linux_detach_lwp_callback): New function.
3841 (linux_detach): Detach from the leader thread after detaching from
3842 the clone threads.
3843
3844 2016-06-28 Yao Qi <yao.qi@linaro.org>
3845
3846 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
3847 for variable new_offset.
3848 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
3849 (aarch64_ftrace_insn_reloc_cb): Likewise.
3850 (aarch64_ftrace_insn_reloc_tb): Likewise.
3851 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
3852 PRIx64 instead of PRIx32.
3853
3854 2016-06-28 Yao Qi <yao.qi@linaro.org>
3855
3856 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
3857 (the_low_target): Install arm_get_syscall_trapinfo.
3858
3859 2016-06-28 Yao Qi <yao.qi@linaro.org>
3860
3861 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
3862 function.
3863 (the_low_target): Install aarch64_get_syscall_trapinfo.
3864
3865 2016-06-28 Yao Qi <yao.qi@linaro.org>
3866
3867 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
3868 Callers updated.
3869 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
3870 Remove parameter sysno.
3871 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
3872 sysret.
3873
3874 2016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3875
3876 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
3877 (s390_emit_ne_goto): Likewise.
3878 (s390_emit_lt_goto): Likewise.
3879 (s390_emit_le_goto): Likewise.
3880 (s390_emit_gt_goto): Likewise.
3881 (s390_emit_ge_goto): Likewise.
3882 (s390x_emit_eq_goto): Likewise.
3883 (s390x_emit_ne_goto): Likewise.
3884 (s390x_emit_lt_goto): Likewise.
3885 (s390x_emit_le_goto): Likewise.
3886 (s390x_emit_gt_goto): Likewise.
3887 (s390x_emit_ge_goto): Likewise.
3888 (s390_emit_ops_impl): Mark variable static.
3889 (s390x_emit_ops): Likewise.
3890
3891 2016-06-17 Yao Qi <yao.qi@linaro.org>
3892
3893 * linux-low.c (handle_extended_wait): Call
3894 uninsert_reinsert_breakpoints for the parent process. Remove
3895 reinsert breakpoints from the child process. Reinsert them to
3896 the parent process when vfork is done.
3897 * mem-break.c (uninsert_reinsert_breakpoints): New function.
3898 (reinsert_reinsert_breakpoints): New function.
3899 * mem-break.h (uninsert_reinsert_breakpoints): Declare
3900 (reinsert_reinsert_breakpoints): Declare.
3901
3902 2016-06-17 Yao Qi <yao.qi@linaro.org>
3903
3904 * linux-low.c (handle_extended_wait): If the parent is doing
3905 step-over, remove the reinsert breakpoints from the forked child.
3906
3907 2016-06-17 Yao Qi <yao.qi@linaro.org>
3908
3909 * linux-low.c (unsuspend_all_lwps): Declare.
3910 (linux_low_filter_event): If thread exited, call finish_step_over.
3911 If step-over is finished, unsuspend other threads.
3912
3913 2016-06-17 Yao Qi <yao.qi@linaro.org>
3914
3915 * linux-low.c (linux_resume_one_lwp_throw): Assert
3916 has_reinsert_breakpoints returns false.
3917 * mem-break.c (delete_disabled_breakpoints): Assert
3918 bp type isn't reinsert_breakpoint.
3919
3920 2016-06-17 Yao Qi <yao.qi@linaro.org>
3921
3922 * linux-low.c (maybe_hw_step): New function.
3923 (linux_resume_one_lwp_throw): Call maybe_hw_step.
3924 (finish_step_over): Switch current_thread to lwp temporarily,
3925 and assert has_reinsert_breakpoints returns true.
3926 (proceed_one_lwp): Call maybe_hw_step.
3927 * mem-break.c (has_reinsert_breakpoints): New function.
3928 * mem-break.h (has_reinsert_breakpoints): Declare.
3929
3930 2016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
3931
3932 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
3933
3934 2016-05-17 Yao Qi <yao.qi@linaro.org>
3935
3936 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
3937 instead of find_inferior.
3938
3939 2016-05-05 Yao Qi <yao.qi@linaro.org>
3940
3941 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
3942 Initialize res to zero.
3943
3944 2016-05-05 Yao Qi <yao.qi@linaro.org>
3945
3946 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
3947 to uint32_t.
3948
3949 2016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3950
3951 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
3952 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
3953 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
3954
3955 2016-04-28 Par Olsson <par.olsson@windriver.com>
3956 Simon Marchi <simon.marchi@ericsson.com>
3957
3958 * tracepoint.c (write_inferior_int8): New function.
3959 (cmd_qtenable_disable): Write enable flag using
3960 write_inferior_int8.
3961
3962 2016-04-25 Yao Qi <yao.qi@linaro.org>
3963
3964 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
3965 (need_step_over_p): Return zero if the LWP has pending signals
3966 can be delivered on software single step target.
3967
3968 2016-04-25 Yao Qi <yao.qi@linaro.org>
3969
3970 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
3971 return instead of error.
3972
3973 2016-04-22 Yao Qi <yao.qi@linaro.org>
3974
3975 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
3976 to 23.
3977
3978 2016-04-22 Yao Qi <yao.qi@linaro.org>
3979
3980 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
3981 signal when stepping over breakpoint with software single
3982 step.
3983
3984 2016-04-21 Pedro Alves <palves@redhat.com>
3985
3986 * linux-s390-low.c (s390_collect_ptrace_register)
3987 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
3988 add casts.
3989 (s390_check_regset): Use void * instead of gdb_byte *.
3990
3991 2016-04-20 Pedro Alves <palves@redhat.com>
3992
3993 * configure: Renegerate.
3994
3995 2016-04-20 Yao Qi <yao.qi@linaro.org>
3996
3997 * linux-aarch32-low.c: Include "arch/arm-linux.h".
3998 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
3999 number 16.
4000 (arm_store_gregset): Likewise.
4001
4002 2016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
4003
4004 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
4005 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
4006 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
4007 (amd64-avx-mpx-linux.c): New rules.
4008 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
4009 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
4010 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
4011 (srv_amd64_regobj): Add amd64-avx-mpx.o.
4012 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
4013 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
4014 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
4015 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
4016 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
4017 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
4018 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
4019 * linux-x86-low.c (x86_linux_read_description): Add case for
4020 X86_XSTATE_AVX_MPX_MASK.
4021 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
4022 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
4023 init_registers_i386_avx_mpx_linux.
4024 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
4025 (initialize_low_tracepoint): Call
4026 init_registers_i386_avx_mpx_linux.
4027 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
4028 (initialize_low_tracepoint): Call
4029 init_registers_amd64_avx_mpx_linux.
4030 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
4031 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
4032 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
4033 declarations.
4034
4035 2016-04-18 Pedro Alves <palves@redhat.com>
4036
4037 * configure: Regenerate.
4038
4039 2016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
4040
4041 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
4042 (aarch64_emit_sub): Likewise.
4043
4044 2016-04-12 Pedro Alves <palves@redhat.com>
4045
4046 * utils.c (prepare_to_throw_exception): Delete.
4047
4048 2016-04-05 Simon Marchi <simon.marchi@ericsson.com>
4049
4050 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
4051
4052 2016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
4053
4054 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
4055
4056 2016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
4057
4058 * linux-aarch64-ipa.c: Add <elf.h> include.
4059 * linux-ppc-ipa.c: Add <elf.h> include.
4060 * linux-s390-ipa.c: Add <elf.h> include.
4061
4062 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
4063
4064 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
4065 (get_raw_reg_ptr): Likewise.
4066 (get_trace_state_variable_value_ptr): Likewise.
4067 (set_trace_state_variable_value_ptr): Likewise.
4068 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
4069 char *.
4070
4071 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
4072 Marcin Kościelnicki <koriakin@0x04.net>
4073
4074 PR/17221
4075 * linux-ppc-low.c (emit_insns): New function.
4076 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
4077 (ppc_emit_prologue): New function.
4078 (ppc_emit_epilogue): New function.
4079 (ppc_emit_add): New function.
4080 (ppc_emit_sub): New function.
4081 (ppc_emit_mul): New function.
4082 (ppc_emit_lsh): New function.
4083 (ppc_emit_rsh_signed): New function.
4084 (ppc_emit_rsh_unsigned): New function.
4085 (ppc_emit_ext): New function.
4086 (ppc_emit_zero_ext): New function.
4087 (ppc_emit_log_not): New function.
4088 (ppc_emit_bit_and): New function.
4089 (ppc_emit_bit_or): New function.
4090 (ppc_emit_bit_xor): New function.
4091 (ppc_emit_bit_not): New function.
4092 (ppc_emit_equal): New function.
4093 (ppc_emit_less_signed): New function.
4094 (ppc_emit_less_unsigned): New function.
4095 (ppc_emit_ref): New function.
4096 (ppc_emit_const): New function.
4097 (ppc_emit_reg): New function.
4098 (ppc_emit_pop): New function.
4099 (ppc_emit_stack_flush): New function.
4100 (ppc_emit_swap): New function.
4101 (ppc_emit_stack_adjust): New function.
4102 (ppc_emit_call): New function.
4103 (ppc_emit_int_call_1): New function.
4104 (ppc_emit_void_call_2): New function.
4105 (ppc_emit_if_goto): New function.
4106 (ppc_emit_goto): New function.
4107 (ppc_emit_eq_goto): New function.
4108 (ppc_emit_ne_goto): New function.
4109 (ppc_emit_lt_goto): New function.
4110 (ppc_emit_le_goto): New function.
4111 (ppc_emit_gt_goto): New function.
4112 (ppc_emit_ge_goto): New function.
4113 (ppc_write_goto_address): New function.
4114 (ppc_emit_ops_impl): New static variable.
4115 (ppc64v1_emit_prologue): New function.
4116 (ppc64v2_emit_prologue): New function.
4117 (ppc64_emit_epilogue): New function.
4118 (ppc64_emit_add): New function.
4119 (ppc64_emit_sub): New function.
4120 (ppc64_emit_mul): New function.
4121 (ppc64_emit_lsh): New function.
4122 (ppc64_emit_rsh_signed): New function.
4123 (ppc64_emit_rsh_unsigned): New function.
4124 (ppc64_emit_ext): New function.
4125 (ppc64_emit_zero_ext): New function.
4126 (ppc64_emit_log_not): New function.
4127 (ppc64_emit_bit_and): New function.
4128 (ppc64_emit_bit_or): New function.
4129 (ppc64_emit_bit_xor): New function.
4130 (ppc64_emit_bit_not): New function.
4131 (ppc64_emit_equal): New function.
4132 (ppc64_emit_less_signed): New function.
4133 (ppc64_emit_less_unsigned): New function.
4134 (ppc64_emit_ref): New function.
4135 (ppc64_emit_const): New function.
4136 (ppc64v1_emit_reg): New function.
4137 (ppc64v2_emit_reg): New function.
4138 (ppc64_emit_pop): New function.
4139 (ppc64_emit_stack_flush): New function.
4140 (ppc64_emit_swap): New function.
4141 (ppc64v1_emit_call): New function.
4142 (ppc64v2_emit_call): New function.
4143 (ppc64v1_emit_int_call_1): New function.
4144 (ppc64v2_emit_int_call_1): New function.
4145 (ppc64v1_emit_void_call_2): New function.
4146 (ppc64v2_emit_void_call_2): New function.
4147 (ppc64_emit_if_goto): New function.
4148 (ppc64_emit_eq_goto): New function.
4149 (ppc64_emit_ne_goto): New function.
4150 (ppc64_emit_lt_goto): New function.
4151 (ppc64_emit_le_goto): New function.
4152 (ppc64_emit_gt_goto): New function.
4153 (ppc64_emit_ge_goto): New function.
4154 (ppc64v1_emit_ops_impl): New static variable.
4155 (ppc64v2_emit_ops_impl): New static variable.
4156 (ppc_emit_ops): New function.
4157 (linux_low_target): Wire in ppc_emit_ops.
4158
4159 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
4160 Marcin Kościelnicki <koriakin@0x04.net>
4161
4162 PR/17221
4163 * Makefile.in: Add powerpc-*-ipa.o
4164 * configure.srv: Add ipa_obj for powerpc*-linux.
4165 * linux-ppc-ipa.c: New file.
4166 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
4167 includes.
4168 (PPC_FIELD): New macro.
4169 (PPC_SEXT): New macro.
4170 (PPC_OP6): New macro.
4171 (PPC_BO): New macro.
4172 (PPC_LI): New macro.
4173 (PPC_BD): New macro.
4174 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
4175 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
4176 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
4177 (ppc_get_thread_area): New function.
4178 (is_elfv2_inferior): New function.
4179 (gen_ds_form): New function.
4180 (GEN_STD): New macro.
4181 (GEN_STDU): New macro.
4182 (GEN_LD): New macro.
4183 (GEN_LDU): New macro.
4184 (gen_d_form): New function.
4185 (GEN_ADDI): New macro.
4186 (GEN_ADDIS): New macro.
4187 (GEN_LI): New macro.
4188 (GEN_LIS): New macro.
4189 (GEN_ORI): New macro.
4190 (GEN_ORIS): New macro.
4191 (GEN_LWZ): New macro.
4192 (GEN_STW): New macro.
4193 (GEN_STWU): New macro.
4194 (gen_xfx_form): New function.
4195 (GEN_MFSPR): New macro.
4196 (GEN_MTSPR): New macro.
4197 (GEN_MFCR): New macro.
4198 (GEN_MTCR): New macro.
4199 (GEN_SYNC): New macro.
4200 (GEN_LWSYNC): New macro.
4201 (gen_x_form): New function.
4202 (GEN_OR): New macro.
4203 (GEN_MR): New macro.
4204 (GEN_LWARX): New macro.
4205 (GEN_STWCX): New macro.
4206 (GEN_CMPW): New macro.
4207 (gen_md_form): New function.
4208 (GEN_RLDICL): New macro.
4209 (GEN_RLDICR): New macro.
4210 (gen_i_form): New function.
4211 (GEN_B): New macro.
4212 (GEN_BL): New macro.
4213 (gen_b_form): New function.
4214 (GEN_BNE): New macro.
4215 (GEN_LOAD): New macro.
4216 (GEN_STORE): New macro.
4217 (gen_limm): New function.
4218 (gen_atomic_xchg): New function.
4219 (gen_call): New function.
4220 (ppc_relocate_instruction): New function.
4221 (ppc_install_fast_tracepoint_jump_pad): New function.
4222 (ppc_get_min_fast_tracepoint_insn_len): New function.
4223 (ppc_get_ipa_tdesc_idx): New function.
4224 (the_low_target): Wire in the new functions.
4225 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
4226 tdescs.
4227 * linux-ppc-tdesc.h: New file.
4228
4229 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
4230
4231 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
4232 (alloc_jump_pad_buffer): New function.
4233 * linux-amd64-ipa.c: Add <sys/mman.h> include.
4234 (alloc_jump_pad_buffer): New function.
4235 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
4236 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
4237 (alloc_jump_pad_buffer): New function.
4238 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
4239 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
4240 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
4241 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
4242
4243 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
4244
4245 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
4246 * linux-amd64-ipa.c: Likewise.
4247 * linux-i386-ipa.c: Likewise.
4248 * linux-s390-ipa.c: Likewise.
4249 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
4250 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
4251 set_trace_state_variable_value_ptr.
4252 (struct ipa_sym_addresses): Likewise.
4253 (symbol_list): Likewise.
4254 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
4255 accessing gdb_collect directly.
4256 (gdb_collect_ptr_type): New typedef.
4257 (get_raw_reg_ptr_type): New typedef.
4258 (get_trace_state_variable_value_ptr_type): New typedef.
4259 (set_trace_state_variable_value_ptr_type): New typedef.
4260 (gdb_collect_ptr): New global.
4261 (get_raw_reg_ptr): New global.
4262 (get_trace_state_variable_value_ptr): New global.
4263 (set_trace_state_variable_value_ptr): New global.
4264 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
4265 accessing get_raw_reg directly.
4266 (get_get_tsv_func_addr): Likewise for
4267 get_trace_state_variable_value_ptr.
4268 (get_set_tsv_func_addr): Likewise for
4269 set_trace_state_variable_value_ptr.
4270 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
4271
4272 2016-03-30 Simon Marchi <simon.marchi@ericsson.com>
4273
4274 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
4275
4276 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
4277
4278 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
4279 packets.
4280 (relocate_instruction): Remove own_buf.
4281 * server.c (own_buf): Make global.
4282 (handle_v_requests): Make global.
4283 * server.h (own_buf): New declaration.
4284 (handle_v_requests): New prototype.
4285
4286 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
4287
4288 PR 18377
4289 * linux-s390-low.c (add_insns): New function.
4290 (s390_emit_prologue): New function.
4291 (s390_emit_epilogue): New function.
4292 (s390_emit_add): New function.
4293 (s390_emit_sub): New function.
4294 (s390_emit_mul): New function.
4295 (s390_emit_lsh): New function.
4296 (s390_emit_rsh_signed): New function.
4297 (s390_emit_rsh_unsigned): New function.
4298 (s390_emit_ext): New function.
4299 (s390_emit_log_not): New function.
4300 (s390_emit_bit_and): New function.
4301 (s390_emit_bit_or): New function.
4302 (s390_emit_bit_xor): New function.
4303 (s390_emit_bit_not): New function.
4304 (s390_emit_equal): New function.
4305 (s390_emit_less_signed): New function.
4306 (s390_emit_less_unsigned): New function.
4307 (s390_emit_ref): New function.
4308 (s390_emit_if_goto): New function.
4309 (s390_emit_goto): New function.
4310 (s390_write_goto_address): New function.
4311 (s390_emit_litpool): New function.
4312 (s390_emit_const): New function.
4313 (s390_emit_call): New function.
4314 (s390_emit_reg): New function.
4315 (s390_emit_pop): New function.
4316 (s390_emit_stack_flush): New function.
4317 (s390_emit_zero_ext): New function.
4318 (s390_emit_swap): New function.
4319 (s390_emit_stack_adjust): New function.
4320 (s390_emit_set_r2): New function.
4321 (s390_emit_int_call_1): New function.
4322 (s390_emit_void_call_2): New function.
4323 (s390_emit_eq_goto): New function.
4324 (s390_emit_ne_goto): New function.
4325 (s390_emit_lt_goto): New function.
4326 (s390_emit_le_goto): New function.
4327 (s390_emit_gt_goto): New function.
4328 (s390_emit_ge_goto): New function.
4329 (s390x_emit_prologue): New function.
4330 (s390x_emit_epilogue): New function.
4331 (s390x_emit_add): New function.
4332 (s390x_emit_sub): New function.
4333 (s390x_emit_mul): New function.
4334 (s390x_emit_lsh): New function.
4335 (s390x_emit_rsh_signed): New function.
4336 (s390x_emit_rsh_unsigned): New function.
4337 (s390x_emit_ext): New function.
4338 (s390x_emit_log_not): New function.
4339 (s390x_emit_bit_and): New function.
4340 (s390x_emit_bit_or): New function.
4341 (s390x_emit_bit_xor): New function.
4342 (s390x_emit_bit_not): New function.
4343 (s390x_emit_equal): New function.
4344 (s390x_emit_less_signed): New function.
4345 (s390x_emit_less_unsigned): New function.
4346 (s390x_emit_ref): New function.
4347 (s390x_emit_if_goto): New function.
4348 (s390x_emit_const): New function.
4349 (s390x_emit_call): New function.
4350 (s390x_emit_reg): New function.
4351 (s390x_emit_pop): New function.
4352 (s390x_emit_stack_flush): New function.
4353 (s390x_emit_zero_ext): New function.
4354 (s390x_emit_swap): New function.
4355 (s390x_emit_stack_adjust): New function.
4356 (s390x_emit_int_call_1): New function.
4357 (s390x_emit_void_call_2): New function.
4358 (s390x_emit_eq_goto): New function.
4359 (s390x_emit_ne_goto): New function.
4360 (s390x_emit_lt_goto): New function.
4361 (s390x_emit_le_goto): New function.
4362 (s390x_emit_gt_goto): New function.
4363 (s390x_emit_ge_goto): New function.
4364 (s390_emit_ops): New function.
4365 (struct linux_target_ops): Fill in emit_ops hook.
4366
4367 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
4368
4369 PR 18377
4370 * Makefile.in: Add s390 IPA files.
4371 * configure.srv: Build IPA for s390.
4372 * linux-s390-ipa.c: New file.
4373 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
4374 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
4375 (tdesc_s390_linux32): Likewise.
4376 (init_registers_s390_linux32v1): Likewise.
4377 (tdesc_s390_linux32v1): Likewise.
4378 (init_registers_s390_linux32v2): Likewise.
4379 (tdesc_s390_linux32v2): Likewise.
4380 (init_registers_s390_linux64): Likewise.
4381 (tdesc_s390_linux64): Likewise.
4382 (init_registers_s390_linux64v1): Likewise.
4383 (tdesc_s390_linux64v1): Likewise.
4384 (init_registers_s390_linux64v2): Likewise.
4385 (tdesc_s390_linux64v2): Likewise.
4386 (init_registers_s390_te_linux64): Likewise.
4387 (tdesc_s390_te_linux64): Likewise.
4388 (init_registers_s390_vx_linux64): Likewise.
4389 (tdesc_s390_vx_linux64): Likewise.
4390 (init_registers_s390_tevx_linux64): Likewise.
4391 (tdesc_s390_tevx_linux64): Likewise.
4392 (init_registers_s390x_linux64): Likewise.
4393 (tdesc_s390x_linux64): Likewise.
4394 (init_registers_s390x_linux64v1): Likewise.
4395 (tdesc_s390x_linux64v1): Likewise.
4396 (init_registers_s390x_linux64v2): Likewise.
4397 (tdesc_s390x_linux64v2): Likewise.
4398 (init_registers_s390x_te_linux64): Likewise.
4399 (tdesc_s390x_te_linux64): Likewise.
4400 (init_registers_s390x_vx_linux64): Likewise.
4401 (tdesc_s390x_vx_linux64): Likewise.
4402 (init_registers_s390x_tevx_linux64): Likewise.
4403 (tdesc_s390x_tevx_linux64): Likewise.
4404 (have_hwcap_s390_vx): New static variable.
4405 (s390_arch_setup): Fill have_hwcap_s390_vx.
4406 (s390_get_thread_area): New function.
4407 (s390_ft_entry_gpr_esa): New const.
4408 (s390_ft_entry_gpr_zarch): New const.
4409 (s390_ft_entry_misc): New const.
4410 (s390_ft_entry_fr): New const.
4411 (s390_ft_entry_vr): New const.
4412 (s390_ft_main_31): New const.
4413 (s390_ft_main_64): New const.
4414 (s390_ft_exit_fr): New const.
4415 (s390_ft_exit_vr): New const.
4416 (s390_ft_exit_misc): New const.
4417 (s390_ft_exit_gpr_esa): New const.
4418 (s390_ft_exit_gpr_zarch): New const.
4419 (append_insns): New function.
4420 (s390_relocate_instruction): New function.
4421 (s390_install_fast_tracepoint_jump_pad): New function.
4422 (s390_get_min_fast_tracepoint_insn_len): New function.
4423 (s390_get_ipa_tdesc_idx): New function.
4424 (struct linux_target_ops): Wire in the above functions.
4425 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
4426 * linux-s390-tdesc.h: New file.
4427
4428 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
4429
4430 * linux-s390-low.c (s390_supports_tracepoints): New function.
4431 (struct linux_target_ops): Fill supports_tracepoints hook.
4432
4433 2016-03-18 Yao Qi <yao.qi@linaro.org>
4434
4435 * linux-low.c (lwp_signal_can_be_delivered): New function.
4436 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
4437
4438 2016-03-18 Yao Qi <yao.qi@linaro.org>
4439
4440 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
4441 0 if signal is enqueued. Remove 'signal' from one debugging
4442 message. Move one debugging message to some lines below.
4443 Remove code setting 'signal' to 0.
4444
4445 2016-03-18 Yao Qi <yao.qi@linaro.org>
4446
4447 * linux-low.c (linux_low_filter_event): Remove redundant
4448 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
4449
4450 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
4451
4452 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
4453 (struct linux_target_ops): Wire in the above.
4454
4455 2016-03-03 Yao Qi <yao.qi@linaro.org>
4456
4457 * linux-low.c: Update comments to start_step_over.
4458
4459 2016-03-03 Yao Qi <yao.qi@linaro.org>
4460
4461 PR server/19736
4462 * linux-low.c (handle_extended_wait): Set child suspended
4463 if event_lwp->bp_reinsert isn't zero.
4464
4465 2016-03-02 Yao Qi <yao.qi@linaro.org>
4466
4467 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
4468 enqueue_pending_signal.
4469
4470 2016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
4471
4472 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
4473 is actually loaded.
4474
4475 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
4476
4477 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
4478 (s390_regmap_3264) [!__s390x__]: New global.
4479 (s390_collect_ptrace_register): Skip map entries containing -1.
4480 (s390_supply_ptrace_register): Ditto.
4481 (s390_fill_gprs_high): New function.
4482 (s390_store_gprs_high): New function.
4483 (s390_regsets): Add NT_S390_HIGH_GPRS.
4484 (s390_get_hwcap): Enable on 31-bit.
4485 (have_hwcap_s390_high_gprs): Enable on 31-bit.
4486 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
4487 Detect NT_S390_HIGH_GPRS.
4488 (s390_usrregs_info_3264): Enable on 31-bit.
4489 (s390_regs_info): Enable regs_info_3264 on 31-bit.
4490 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
4491
4492 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
4493
4494 PR gdb/13808
4495 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
4496 * configure.srv: Ditto.
4497 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
4498 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
4499 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
4500 (init_registers_amd64_linux): Remove prototype.
4501 (tdesc_amd64_linux): Remove declaration.
4502 (get_ipa_tdesc): New function.
4503 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
4504 initialize remaining tdescs.
4505 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
4506 (init_registers_i386_linux): Remove prototype.
4507 (tdesc_i386_linux): Remove declaration.
4508 (get_ipa_tdesc): New function.
4509 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
4510 initialize remaining tdescs.
4511 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
4512 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
4513 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
4514 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
4515 (x86_get_ipa_tdesc_idx): New function.
4516 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
4517 * linux-x86-tdesc.h: New file.
4518 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
4519 (target_get_ipa_tdesc_idx): New macro.
4520 * tracepoint.c (ipa_tdesc_idx): New macro.
4521 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
4522 (symbol_list): Add ipa_tdesc_idx.
4523 (cmd_qtstart): Write ipa_tdesc_idx in the target.
4524 (ipa_tdesc): Remove.
4525 (ipa_tdesc_idx): New variable.
4526 (get_context_regcache): Use get_ipa_tdesc.
4527 (gdb_collect): Ditto.
4528 (gdb_probe): Ditto.
4529 * tracepoint.h (get_ipa_tdesc): New prototype.
4530 (ipa_tdesc): Remove.
4531
4532 2016-02-24 Pedro Alves <palves@redhat.com>
4533
4534 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
4535 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
4536 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
4537 Factor out common code between the USE_SIGTRAP_SIGINFO and
4538 !USE_SIGTRAP_SIGINFO blocks.
4539 (linux_low_filter_event): Call save_stop_reason instead of
4540 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
4541 Update comments.
4542 (linux_wait_1): Update comments.
4543
4544 2016-02-24 Wei-cheng Wang <cole945@gmail.com>
4545
4546 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
4547 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
4548 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
4549 ppc_insert_point, ppc_remove_point.
4550
4551 2016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
4552
4553 * linux-s390-low.c (s390_supports_z_point_type): New function.
4554 (struct linux_target_ops): Wire s390_supports_z_point_type in.
4555
4556 2016-02-16 Yao Qi <yao.qi@linaro.org>
4557
4558 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
4559 PC. Get pc from regcache_read_pc.
4560
4561 2016-02-12 Yao Qi <yao.qi@linaro.org>
4562
4563 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
4564 or linux_get_pc_32bit.
4565 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
4566
4567 2016-02-12 Yao Qi <yao.qi@linaro.org>
4568
4569 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
4570 arm_linux_get_next_pcs_fixup.
4571
4572 2016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
4573
4574 * tracepoint.c (x_tracepoint_action_download): Change
4575 write_inferior_data_ptr to write_inferior_data_pointer.
4576 (cmd_qtstart): Likewise.
4577 (write_inferior_data_ptr): Remove.
4578 (download_agent_expr): Change write_inferior_data_ptr to
4579 write_inferior_data_pointer.
4580 (download_tracepoint_1): Likewise.
4581 (download_tracepoint): Likewise.
4582 (download_trace_state_variables): Likewise.
4583
4584 2016-02-11 Wei-cheng Wang <cole945@gmail.com>
4585 Marcin Kościelnicki <koriakin@0x04.net>
4586
4587 * tracepoint.c (struct tracepoint_action_ops): Remove.
4588 (struct tracepoint_action): Remove ops.
4589 (m_tracepoint_action_download, r_tracepoint_action_download)
4590 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
4591 size and offset accordingly.
4592 (m_tracepoint_action_ops, r_tracepoint_action_ops)
4593 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
4594 (tracepoint_action_send, tracepoint_action_download): New functions.
4595 Helpers for trace action handlers.
4596 (add_tracepoint_action): Remove setup actions ops.
4597 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
4598
4599 2016-02-10 Yao Qi <yao.qi@linaro.org>
4600
4601 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
4602
4603 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
4604
4605 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
4606 to AC_OUTPUT.
4607 * configure: Regenerate.
4608
4609 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
4610
4611 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
4612 void * to gdb_byte *.
4613 * linux-low.c (siginfo_fixup): Likewise.
4614 (linux_xfer_siginfo): Likewise.
4615 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
4616 Likewise.
4617 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
4618
4619 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
4620
4621 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
4622 to srv_tgtobj.
4623 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
4624 to srv_tgtobj.
4625 * linux-x86-low.c [__x86_64__]: Include
4626 "nat/amd64-linux-siginfo.h".
4627 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
4628 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
4629 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
4630 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
4631 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
4632 (cpt_si_fd, si_timerid, si_overrun): Move from
4633 nat/amd64-linux-siginfo.c.
4634 * Makefile.in (amd64-linux-siginfo.o:): New rule.
4635
4636 2016-01-28 Simon Marchi <simon.marchi@ericsson.com>
4637
4638 * server.c (skip_to_semicolon): Remove.
4639 (process_point_options): Use strchrnul instead of
4640 skip_to_semicolon.
4641
4642 2016-01-26 Yao Qi <yao.qi@linaro.org>
4643
4644 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
4645 * linux-low.c (install_software_single_step_breakpoints): Don't
4646 call regcache_read_pc.
4647 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
4648 argument pc.
4649
4650 2016-01-26 Yao Qi <yao.qi@linaro.org>
4651
4652 * linux-low.c (install_software_single_step_breakpoints): Call
4653 regcache_read_pc instead of get_pc.
4654
4655 2016-01-26 Yao Qi <yao.qi@linaro.org>
4656
4657 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
4658 (unblock_async_io): Rename to ...
4659 (block_unblock_async_io): ... it. New function.
4660 (enable_async_io): Don't install SIGIO handler. Unblock it
4661 instead.
4662 (disable_async_io): Don't ignore SIGIO. Block it instead.
4663 (initialize_async_io): Install SIGIO handler. Don't call
4664 unblock_async_io.
4665
4666 2016-01-26 Yao Qi <yao.qi@linaro.org>
4667
4668 * remote-utils.c (getpkt): If the buffer isn't empty, and the
4669 first character is '\003', call *the_target->request_interrupt.
4670
4671 2016-01-25 Yao Qi <yao.qi@linaro.org>
4672
4673 * remote-utils.c (new_thread_notify): Remove.
4674 (dead_thread_notify): Likewise.
4675 * remote-utils.h (new_thread_notify): Remove declaration.
4676 (dead_thread_notify): Likewise.
4677
4678 2016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
4679
4680 * gdb.trace/pending.exp: Fix expected message on continue.
4681
4682 2016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
4683
4684 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
4685 it works properly on big-endian machines where sizeof (CORE_ADDR)
4686 != sizeof (void *).
4687
4688 2016-01-21 Pedro Alves <palves@redhat.com>
4689
4690 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
4691 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
4692 * configure: Regenerate.
4693
4694 2016-01-21 Yao Qi <yao.qi@linaro.org>
4695
4696 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
4697 is_thumb and set it according to CPSR saved on the stack.
4698 (get_next_pcs_syscall_next_pc): Pass is_thumb to
4699 arm_sigreturn_next_pc.
4700
4701 2016-01-18 Yao Qi <yao.qi@linaro.org>
4702
4703 * linux-low.c (linux_set_pc_64bit): New function.
4704 (linux_get_pc_64bit): New function.
4705 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
4706 Declare.
4707 * linux-sparc-low.c (debug_threads): Remove declaration.
4708 (sparc_get_pc): Remove.
4709 (the_low_target): Use linux_get_pc_64bit instead of
4710 sparc_get_pc.
4711 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
4712 (the_low_target): Use linux_get_pc_64bit and
4713 linux_set_pc_64bit.
4714
4715 2016-01-18 Yao Qi <yao.qi@linaro.org>
4716
4717 * linux-arm-low.c (debug_threads): Remove declaration.
4718 (arm_get_pc, arm_set_pc): Remove.
4719 (the_low_target): Use linux_get_pc_32bit and
4720 linux_set_pc_32bit.
4721 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
4722 (the_low_target): Use linux_get_pc_32bit and
4723 linux_set_pc_32bit.
4724 * linux-cris-low.c (debug_threads): Remove declaration.
4725 (cris_get_pc, cris_set_pc,): Remove.
4726 (the_low_target): Use linux_get_pc_32bit and
4727 linux_set_pc_32bit.
4728 * linux-crisv32-low.c (debug_threads): Remove declaration.
4729 (cris_get_pc, cris_set_pc): Remove.
4730 (the_low_target): Use linux_get_pc_32bit and
4731 linux_set_pc_32bit.
4732 * linux-low.c: Include inttypes.h.
4733 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
4734 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
4735 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
4736 (the_low_target): Use linux_get_pc_32bit and
4737 linux_set_pc_32bit.
4738 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
4739 (the_low_target): Use linux_get_pc_32bit and
4740 linux_set_pc_32bit.
4741 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
4742 (the_low_target): Use linux_get_pc_32bit and
4743 linux_set_pc_32bit.
4744 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
4745 (the_low_target): Use linux_get_pc_32bit and
4746 linux_set_pc_32bit.
4747 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
4748 (the_low_target): Use linux_get_pc_32bit and
4749 linux_set_pc_32bit.
4750
4751 2016-01-18 Gary Benson <gbenson@redhat.com>
4752
4753 * configure.ac (AC_FUNC_FORK): New check.
4754 * config.in: Regenerate.
4755 * configure: Likewise.
4756
4757 2016-01-14 Yao Qi <yao.qi@linaro.org>
4758
4759 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
4760 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
4761 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
4762 arm_get_next_pcs_ctor.
4763
4764 2016-01-12 Josh Stone <jistone@redhat.com>
4765 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4766
4767 * inferiors.h: Include "gdb_vecs.h".
4768 (struct process_info): Add syscalls_to_catch.
4769 * inferiors.c (remove_process): Free syscalls_to_catch.
4770 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
4771 syscall_return stops.
4772 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
4773 * server.c (handle_general_set): Handle QCatchSyscalls.
4774 (handle_query): Report support for QCatchSyscalls.
4775 * target.h (struct target_ops): Add supports_catch_syscall.
4776 (target_supports_catch_syscall): New macro.
4777 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
4778 (struct lwp_info): Add syscall_state.
4779 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
4780 Maintain syscall_state and syscalls_to_catch across exec.
4781 (get_syscall_trapinfo): New function, proxy to the_low_target.
4782 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
4783 (linux_low_filter_event): Toggle syscall_state entry/return for
4784 syscall traps, and set it ignored for all others.
4785 (gdb_catching_syscalls_p): New function.
4786 (gdb_catch_this_syscall_p): New function.
4787 (linux_wait_1): Handle SYSCALL_SIGTRAP.
4788 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
4789 (linux_supports_catch_syscall): New function.
4790 (linux_target_ops): Install it.
4791 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
4792 (the_low_target): Install it.
4793
4794 2016-01-12 Mike Frysinger <vapier@gentoo.org>
4795
4796 * acinclude.m4: Include new ../warning.m4 file.
4797 * configure: Regenerated.
4798 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
4799
4800 2016-01-12 Mike Frysinger <vapier@gentoo.org>
4801
4802 * ax.c (is_goto_target): Mark static.
4803 * linux-low.c (register_addr): Likewise.
4804 (linux_fetch_registers, linux_store_registers): Likewise.
4805 * mem-break.c (any_persistent_commands): Fix old prototype.
4806 (add_commands_to_breakpoint): Mark static.
4807 * regcache.c (find_register_by_name): Delete unused func.
4808 * remote-utils.c (hex_or_minus_one): Mark static.
4809 * server.c (monitor_show_help): Mark static.
4810 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
4811 handle_v_requests): Likewise.
4812
4813 2016-01-12 Pedro Alves <palves@redhat.com>
4814
4815 Remove use of the registered trademark symbol throughout.
4816
4817 2016-01-08 Yao Qi <yao.qi@linaro.org>
4818
4819 * remote-utils.c (getpkt): If c is '\003', call target hook
4820 request_interrupt.
4821
4822 2016-01-06 Yao Qi <yao.qi@linaro.org>
4823
4824 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
4825 linux-aarch32-low.c.
4826 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
4827 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
4828 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
4829 (thumb2_breakpoint): Declare.
4830 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
4831 linux-aarch32-low.h.
4832 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
4833 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
4834 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
4835
4836 2016-01-01 Joel Brobecker <brobecker@adacore.com>
4837
4838 * gdbreplay.c (gdbreplay_version): Change copyright year in
4839 version message.
4840 * server.c (gdbserver_version): Likewise.
4841
4842 2015-12-28 Patrick Palka <patrick@parcs.ath.cx>
4843
4844 * server.c (crc32_table): Delete.
4845 (crc32): Use libiberty's xcrc32 function.
4846
4847 2015-12-22 Joel Brobecker <brobecker@adacore.com>
4848
4849 * lynx-low.c (lynx_delete_thread_callback): New function.
4850 (lynx_mourn): Properly delete our process and all of its
4851 threads. Remove call to clear_inferiors.
4852
4853 2015-12-22 Joel Brobecker <brobecker@adacore.com>
4854
4855 * target.c (thread_search_callback): Add check that
4856 the thread_stopped target callback is not NULL before
4857 calling it.
4858
4859 2015-12-21 Yao Qi <yao.qi@linaro.org>
4860
4861 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
4862 arm breakpoint.
4863
4864 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
4865
4866 * server.c (handle_query): Call target_supports_software_single_step.
4867
4868 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
4869
4870 * linux-low.c (single_step): New function.
4871 (linux_resume_one_lwp_throw): Call single_step.
4872 (start_step_over): Likewise.
4873
4874 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
4875
4876 * Makefile.in (SFILES): Append arch/arm-linux.c,
4877 arch/arm-get-next-pcs.c.
4878 (arm-linux.o): New rule.
4879 (arm-get-next-pcs.o): New rule.
4880 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
4881 arm-linux.o.
4882 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
4883 to linux-aarch32-low.c.
4884 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
4885 (arm_breakpoint_len, thumb_breakpoint): Likewise.
4886 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
4887 (thumb2_breakpoint_len): Likewise.
4888 (arm_is_thumb_mode): Make non-static.
4889 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
4890 from linux-aarch32-low.c.
4891 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
4892 (arm_breakpoint_len, thumb_breakpoint): Likewise.
4893 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
4894 (thumb2_breakpoint_len): Likewise.
4895 (arm_is_thumb_mode): New declaration.
4896 * linux-arm-low.c: Include arch/arm-linux.h
4897 aarch/arm-get-next-pcs.h, sys/syscall.h.
4898 (get_next_pcs_ops): New struct.
4899 (get_next_pcs_addr_bits_remove): New function.
4900 (get_next_pcs_is_thumb): New function.
4901 (get_next_pcs_read_memory_unsigned_integer): Likewise.
4902 (arm_sigreturn_next_pc): Likewise.
4903 (get_next_pcs_syscall_next_pc): Likewise.
4904 (arm_gdbserver_get_next_pcs): Likewise.
4905 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
4906 Initialize.
4907 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
4908 * server.h: Include gdb_vecs.h.
4909
4910 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
4911
4912 * Makefile.in (SFILES): Append common/common-regcache.c.
4913 (OBS): Append common-regcache.o.
4914 (common-regcache.o): New rule.
4915 * regcache.c (init_register_cache): Initialize cache to
4916 REG_UNAVAILABLE.
4917 (regcache_raw_read_unsigned): New function.
4918 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
4919 register_status enum.
4920
4921 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
4922
4923 * linux-aarch64-low.c (the_low_targets): Rename
4924 breakpoint_reinsert_addr to get_next_pcs.
4925 * linux-arm-low.c (the_low_targets): Likewise.
4926 * linux-bfin-low.c (the_low_targets): Likewise.
4927 * linux-cris-low.c (the_low_targets): Likewise.
4928 * linux-crisv32-low.c (the_low_targets): Likewise.
4929 * linux-low.c (can_software_single_step): Likewise.
4930 (install_software_single_step_breakpoints): New function.
4931 (start_step_over): Use install_software_single_step_breakpoints.
4932 * linux-low.h: New CORE_ADDR vector.
4933 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
4934 get_next_pcs.
4935 * linux-mips-low.c (the_low_targets): Likewise.
4936 * linux-nios2-low.c (the_low_targets): Likewise.
4937 * linux-sparc-low.c (the_low_targets): Likewise.
4938
4939 2015-12-17 Pedro Alves <palves@redhat.com>
4940
4941 * linux-low.c (linux_kill_one_lwp): Remove references to
4942 LinuxThreads.
4943 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
4944 to 'kill'.
4945 (linux_init_signals): Delete.
4946 (initialize_low): Adjust.
4947 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
4948
4949 2015-12-16 Pedro Alves <palves@redhat.com>
4950
4951 * configure.ac (compiler warning flags): When testing a
4952 -Wno-foo option, check whether -Wfoo works instead.
4953 * configure: Regenerate.
4954
4955 2015-12-11 Don Breazeal <donb@codesourcery.com>
4956
4957 * server.c (process_serial_event): Don't exit from gdbserver
4958 in remote mode if there are still active inferiors.
4959
4960 2015-12-11 Yao Qi <yao.qi@linaro.org>
4961
4962 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
4963 arm_breakpoint_at if the process is 32-bit.
4964
4965 2015-12-11 Yao Qi <yao.qi@linaro.org>
4966
4967 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
4968 arm breakpoint.
4969
4970 2015-12-07 Yao Qi <yao.qi@linaro.org>
4971
4972 * configure.srv: Append arm.o to srv_tgtobj for
4973 aarch64*-*-linux* target.
4974 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
4975 from linux-arm-low.c.
4976 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
4977 (arm_breakpoint_len, thumb_breakpoint): Likewise.
4978 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
4979 (thumb2_breakpoint_len): Likewise.
4980 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
4981 (arm_breakpoint_kinds): Likewise.
4982 (arm_breakpoint_kind_from_pc): Likewise.
4983 (arm_sw_breakpoint_from_kind): Likewise.
4984 (arm_breakpoint_kind_from_current_state): Likewise.
4985 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
4986 (arm_sw_breakpoint_from_kind): Declare.
4987 (arm_breakpoint_kind_from_current_state): Declare.
4988 (arm_breakpoint_at): Declare.
4989 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
4990 arm_sw_breakpoint_from_kind if process is 32-bit.
4991 (aarch64_breakpoint_kind_from_pc): New function.
4992 (aarch64_breakpoint_kind_from_current_state): New function.
4993 (the_low_target): Initialize fields breakpoint_kind_from_pc
4994 and breakpoint_kind_from_current_state.
4995 * linux-arm-low.c (arm_breakpoint_kinds): Move to
4996 linux-aarch32-low.c.
4997 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
4998 (arm_breakpoint, arm_breakpoint_len): Likewise.
4999 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
5000 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
5001 (arm_is_thumb_mode): Likewise.
5002 (arm_breakpoint_at): Likewise.
5003 (arm_breakpoint_kind_from_pc): Likewise.
5004 (arm_sw_breakpoint_from_kind): Likewise.
5005 (arm_breakpoint_kind_from_current_state): Likewise.
5006
5007 Revert:
5008 2015-08-04 Yao Qi <yao.qi@linaro.org>
5009
5010 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
5011 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
5012 * server.c (extended_protocol): Remove "static".
5013 * server.h (extended_protocol): Declare it.
5014
5015 2015-12-04 Josh Stone <jistone@redhat.com>
5016
5017 * target.h (struct target_ops) <arch_setup>: Rename to ...
5018 (struct target_ops) <post_create_inferior>: ... this.
5019 (target_arch_setup): Rename to ...
5020 (target_post_create_inferior): ... this, calling post_create_inferior.
5021 * server.c (start_inferior): Update target_arch_setup calls to
5022 target_post_create_inferior.
5023 * linux-low.c (linux_low_ptrace_options): Forward declare.
5024 (linux_arch_setup): Update its comment for general use.
5025 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
5026 (struct linux_target_ops): Use linux_post_create_inferior.
5027 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
5028 to post_create_inferior.
5029 * nto-low.c (struct nto_target_ops): Likewise.
5030 * spu-low.c (struct spu_target_ops): Likewise.
5031 * win32-low.c (struct win32_target_ops): Likewise.
5032
5033 2015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
5034
5035 * linux-arm-low.c: Remove duplicate arch/arm.h include.
5036
5037 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
5038
5039 * linux-arm-low.c (arm_reinsert_addr): Remove function.
5040 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
5041 * linux-cris-low.c (cris_reinsert_addr> Remove function.
5042 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
5043 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
5044 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
5045 * linux-mips-low.c (mips_reinsert_addr): Remove function.
5046 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
5047 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
5048 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
5049 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
5050 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
5051
5052 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
5053
5054 * linux-low.c (linux_look_up_symbols): Don't call
5055 linux_supports_traceclone.
5056 * linux-low.h (thread_db_init): Remove use_events argument.
5057 * thread-db.c (thread_db_use_event): Remove global variable.
5058 (struct thread_db) <td_thr_event_enable_p>: Remove field.
5059 (struct thread_db) <td_create_bp>: Remove field.
5060 (thread_db_create_event): Remove function.
5061 (thread_db_enable_reporting): Likewise.
5062 (find_one_thread): Don't check for thread_db_use_events.
5063 (attach_thread): Likewise.
5064 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
5065 (try_thread_db_load_1): Don't check for thread_db_use_events.
5066 (thread_db_init): Remove use_events argument and thread events
5067 handling.
5068 (remove_thread_event_breakpoints): Remove function.
5069 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
5070
5071 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
5072
5073 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
5074 New function.
5075 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
5076 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
5077 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
5078 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
5079 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
5080 Initialize.
5081 * linux-crisv32-low.c (cris_supports_hardware_single_step):
5082 New function.
5083 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
5084 * linux-low.c (can_hardware_single_step): Use
5085 supports_hardware_single_step.
5086 (can_software_single_step): New function.
5087 (start_step_over): Call can_software_single_step.
5088 (linux_supports_hardware_single_step): New function.
5089 (struct target_ops) <supports_software_single_step>: Initialize.
5090 * linux-low.h (struct linux_target_ops)
5091 <supports_hardware_single_step>: Initialize.
5092 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
5093 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
5094 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
5095 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
5096 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
5097 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
5098 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
5099 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
5100 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
5101 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
5102 Initialize.
5103 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
5104 (struct linux_target_ops) <tile_supports_hardware_single_step>:
5105 Initialize.
5106 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
5107 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
5108 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
5109 New function.
5110 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
5111 * target.h (struct target_ops): <supports_software_single_step>:
5112 New field.
5113 (target_supports_software_single_step): New macro.
5114
5115 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
5116
5117 * linux-low.c (linux_wait_1): Fix pc advance condition.
5118 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
5119 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
5120
5121 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
5122
5123 * linux-arm-low.c (arm_is_thumb_mode): New function.
5124 (arm_breakpoint_at): Use arm_is_thumb_mode.
5125 (arm_breakpoint_kind_from_current_state): New function.
5126 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
5127 Initialize.
5128 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
5129 (linux_breakpoint_kind_from_current_state): New function.
5130 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
5131 * linux-low.h (struct linux_target_ops)
5132 <breakpoint_kind_from_current_state>: New field.
5133 * target.h (struct target_ops): Likewise.
5134 (target_breakpoint_kind_from_current_state): New macro.
5135
5136 2015-11-30 Pedro Alves <palves@redhat.com>
5137
5138 * linux-low.c (linux_resume): Wake up the event loop before
5139 returning.
5140
5141 2015-11-30 Pedro Alves <palves@redhat.com>
5142
5143 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
5144 check.
5145 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
5146 to -1.
5147 * target.c (struct thread_search): New structure.
5148 (thread_search_callback): New function.
5149 (prev_general_thread): New global.
5150 (prepare_to_access_memory, done_accessing_memory): New functions.
5151 * target.h (prepare_to_access_memory, done_accessing_memory):
5152 Replace macros with function declarations.
5153
5154 2015-11-30 Pedro Alves <palves@redhat.com>
5155
5156 PR 14618
5157 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
5158 report TARGET_WAITKIND_NO_RESUMED.
5159 * remote-utils.c (prepare_resume_reply): Handle
5160 TARGET_WAITKIND_NO_RESUMED.
5161 * server.c (report_no_resumed): New global.
5162 (handle_query) <qSupported>: Handle "no-resumed+". Report
5163 "no-resumed+" support.
5164 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
5165 return error if the client doesn't support no-resumed events.
5166 (push_stop_notification): New function.
5167 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
5168 events if the client supports them.
5169
5170 2015-11-30 Pedro Alves <palves@redhat.com>
5171
5172 * linux-low.c (thread_still_has_status_pending_p): Don't check
5173 vCont;t here.
5174 (lwp_resumed): New function.
5175 (status_pending_p_callback): Return early if the LWP is not
5176 supposed to be resumed.
5177
5178 2015-11-30 Pedro Alves <palves@redhat.com>
5179
5180 * linux-low.c (handle_extended_wait): Assert that the LWP's
5181 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
5182 thread create events, leave the new child's status pending.
5183 (linux_low_filter_event): If GDB wants to hear about thread exit
5184 events, leave the LWP marked dead and don't delete it.
5185 (linux_wait_for_event_filtered): Don't check for thread exit.
5186 (filter_exit_event): New function.
5187 (linux_wait_1): Use it, when returning an exit event.
5188 (linux_resume_one_lwp_throw): Assert that the LWP's
5189 waitstatus is TARGET_WAITKIND_IGNORE.
5190 * remote-utils.c (prepare_resume_reply): Handle
5191 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
5192 * server.c (report_thread_events): New global.
5193 (handle_general_set): Handle QThreadEvents.
5194 (handle_query) <qSupported>: Handle and report QThreadEvents+;
5195 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
5196 TARGET_WAITKIND_THREAD_EXITED.
5197 * server.h (report_thread_events): Declare.
5198
5199 2015-11-30 Pedro Alves <palves@redhat.com>
5200
5201 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
5202 the thread's last_resume_kind was resume_stop.
5203
5204 2015-11-30 Pedro Alves <palves@redhat.com>
5205
5206 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
5207 before returning.
5208
5209 2015-11-30 Pedro Alves <palves@redhat.com>
5210
5211 * server.c (handle_v_requests): Handle vCtrlC.
5212
5213 2015-11-30 Pedro Alves <palves@redhat.com>
5214
5215 * gdbthread.h (find_any_thread_of_pid): Declare.
5216 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
5217 functions.
5218 * server.c (handle_query): If current_thread is NULL, look for
5219 another thread of the selected process.
5220
5221 2015-11-26 Daniel Colascione <dancol@dancol.org>
5222 Simon Marchi <simon.marchi@ericsson.com>
5223
5224 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
5225 * server.c (handle_qxfer_threads_worker): Refactor to include thread
5226 name in reply.
5227 * target.h (struct target_ops) <thread_name>: New field.
5228 (target_thread_name): New macro.
5229
5230 2015-11-23 Joel Brobecker <brobecker@adacore.com>
5231
5232 * regcache.h (regcache_invalidate_pid): Add declaration.
5233 * regcache.c (regcache_invalidate_pid): New function, extracted
5234 from regcache_invalidate.
5235 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
5236 Add trivial documentation comment.
5237 * lynx-low.c: Use regcache_invalidate_pid instead of
5238 regcache_invalidate.
5239
5240 2015-11-23 Joel Brobecker <brobecker@adacore.com>
5241
5242 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
5243 and Elf64_auxv_t if the target is Android.
5244
5245 2015-11-22 Doug Evans <xdje42@gmail.com>
5246
5247 * target.h: #include <sys/types.h>.
5248
5249 2015-11-19 Pedro Alves <palves@redhat.com>
5250
5251 * linux-low.c (linux_process_qsupported): Change prototype.
5252 Adjust.
5253 * linux-low.h (struct linux_target_ops) <process_qsupported>:
5254 Change prototype.
5255 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
5256 and adjust to loop over all features.
5257 * server.c (handle_query) <qSupported>: Adjust to call
5258 target_process_qsupported once, passing it a vector of unprocessed
5259 features.
5260 * target.h (struct target_ops) <process_qsupported>: Change
5261 prototype.
5262 (target_process_qsupported): Adjust.
5263
5264 2015-11-19 Pedro Alves <palves@redhat.com>
5265
5266 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
5267 mode.
5268 * configure: Regenerate.
5269
5270 2015-11-19 Pedro Alves <palves@redhat.com>
5271
5272 * configure: Regenerate.
5273
5274 2015-11-19 Yao Qi <yao.qi@linaro.org>
5275
5276 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
5277 type to uint32_t.
5278
5279 2015-11-19 Yao Qi <yao.qi@linaro.org>
5280
5281 * linux-aarch64-low.c (enum aarch64_operand_type): New.
5282 (struct aarch64_operand): Move enum out.
5283
5284 2015-11-19 Yao Qi <yao.qi@linaro.org>
5285
5286 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
5287 struct user_fpsimd_state *.
5288 (aarch64_store_fpregset): Likewise.
5289
5290 2015-11-19 Yao Qi <yao.qi@linaro.org>
5291
5292 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
5293 struct user_pt_regs *.
5294 (aarch64_store_gregset): Likewise.
5295
5296 2015-11-18 Pedro Alves <palves@redhat.com>
5297
5298 * Makefile.in (all_object_files): Add $IPA_OBJS.
5299
5300 2015-11-17 Pedro Alves <palves@redhat.com>
5301
5302 * win32-low.c (win32_resume): Use gdb_signal_from_host,
5303 GDB_SIGNAL_0 and gdb_signal_to_string.
5304
5305 2015-11-17 Pedro Alves <palves@redhat.com>
5306
5307 * win32-low.c (handle_output_debug_string): Remove parameter.
5308 (win32_kill): Remove our_status local and adjust call to
5309 handle_output_debug_string.
5310 (get_child_debug_event): Adjust call to
5311 handle_output_debug_string.
5312
5313 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
5314
5315 * linux-mips-low.c (mips_fill_gregset): Add cast.
5316 (mips_store_gregset): Likewise.
5317 (mips_fill_fpregset): Likewise.
5318 (mips_store_fpregset): Likewise.
5319
5320 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
5321
5322 * linux-mips-low.c (mips_add_watchpoint): Rename private to
5323 priv.
5324
5325 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
5326
5327 * linux-mips-low.c (mips_linux_new_thread): Change type of
5328 watch_type to enum target_hw_bp_type.
5329
5330 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
5331
5332 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
5333 Change return type to arm_hwbp_type.
5334
5335 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
5336
5337 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
5338 (arm_store_gregset): Likewise.
5339 * linux-arm-low.c (arm_get_hwcap): Likewise.
5340 (arm_read_description): Likewise.
5341
5342 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
5343
5344 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
5345
5346 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
5347
5348 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
5349 (ppc_fill_vsxregset): Likewise.
5350 (ppc_store_vsxregset): Likewise.
5351 (ppc_fill_vrregset): Likewise.
5352 (ppc_store_vrregset): Likewise.
5353 (ppc_fill_evrregset): Likewise.
5354 (ppc_store_evrregset): Likewise.
5355
5356 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
5357
5358 * linux-ppc-low.c (ppc_usrregs_info): Remove
5359 forward-declaration.
5360 (ppc_arch_setup): Move lower in file.
5361
5362 2015-10-30 Simon Marchi <simon.marchi@ericsson.com>
5363
5364 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
5365 (ps_pdwrite): Likewise.
5366
5367 2015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
5368
5369 * linux-arm-low.c (arm_new_thread): Move pointer dereference
5370 to after assert checks.
5371
5372 2015-10-29 Simon Marchi <simon.marchi@ericsson.com>
5373
5374 * proc-service.c (ps_pdread): Add/adjust casts.
5375 (ps_pdwrite): Add/adjust casts.
5376
5377 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
5378
5379 * server.c (handle_search_memory_1): Cast return value of
5380 memmem.
5381
5382 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
5383
5384 * server.c (write_qxfer_response): Change type of data to
5385 gdb_byte *.
5386
5387 2015-10-29 Pedro Alves <palves@redhat.com>
5388
5389 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
5390
5391 2015-10-29 Pedro Alves <palves@redhat.com>
5392
5393 * tracepoint.c (clear_installed_tracepoints): Add casts.
5394
5395 2015-10-29 Pedro Alves <palves@redhat.com>
5396
5397 * server.c (handle_v_cont, process_serial_event): Add enum
5398 gdb_signal casts to signal parsing code.
5399
5400 2015-10-29 Pedro Alves <palves@redhat.com>
5401
5402 * linux-low.h (NULL_REGSET): Define.
5403 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
5404 * linux-arm-low.c (arm_regsets): Likewise.
5405 * linux-crisv32-low.c (cris_regsets): Likewise.
5406 * linux-m68k-low.c (m68k_regsets): Likewise.
5407 * linux-mips-low.c (mips_regsets): Likewise.
5408 * linux-nios2-low.c (nios2_regsets): Likewise.
5409 * linux-ppc-low.c (ppc_regsets): Likewise.
5410 * linux-s390-low.c (s390_regsets): Likewise.
5411 * linux-sh-low.c (sh_regsets): Likewise.
5412 * linux-sparc-low.c (sparc_regsets): Likewise.
5413 * linux-tic6x-low.c (tic6x_regsets): Likewise.
5414 * linux-tile-low.c (tile_regsets): Likewise.
5415 * linux-x86-low.c (x86_regsets): Likewise.
5416 * linux-xtensa-low.c (xtensa_regsets): Likewise.
5417
5418 2015-10-29 Pedro Alves <palves@redhat.com>
5419
5420 * linux-low.h (NULL_REGSET): Define.
5421 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
5422 * linux-arm-low.c (arm_regsets): Likewise.
5423 * linux-crisv32-low.c (cris_regsets): Likewise.
5424 * linux-m68k-low.c (m68k_regsets): Likewise.
5425 * linux-mips-low.c (mips_regsets): Likewise.
5426 * linux-nios2-low.c (nios2_regsets): Likewise.
5427 * linux-ppc-low.c (ppc_regsets): Likewise.
5428 * linux-s390-low.c (s390_regsets): Likewise.
5429 * linux-sh-low.c (sh_regsets): Likewise.
5430 * linux-sparc-low.c (sparc_regsets): Likewise.
5431 * linux-tic6x-low.c (tic6x_regsets): Likewise.
5432 * linux-tile-low.c (tile_regsets): Likewise.
5433 * linux-x86-low.c (x86_regsets): Likewise.
5434 * linux-xtensa-low.c (xtensa_regsets): Likewise.
5435
5436 2015-10-26 Doug Evans <dje@google.com>
5437
5438 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
5439
5440 2015-10-26 Doug Evans <dje@google.com>
5441
5442 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
5443
5444 2015-10-26 Doug Evans <dje@google.com>
5445
5446 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
5447 for debug_printf.
5448 (attach_thread, find_new_threads_callback): Ditto.
5449
5450 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
5451
5452 * mem-break.h (set_breakpoint_data): Remove.
5453
5454 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
5455
5456 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
5457 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
5458 (initialize_low): Remove set_breakpoint_data call.
5459 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
5460 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
5461 (initialize_low): Remove set_breakpoint_data call.
5462 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
5463 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
5464 (initialize_low): Remove set_breakpoint_data call.
5465
5466 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
5467
5468 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
5469 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
5470 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
5471 * target.h (target_breakpoint_kind_from_pc): New macro.
5472
5473 2015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
5474
5475 * linux-low.c (default_breakpoint_kind_from_pc): New function.
5476 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
5477 the default breakpoint kind.
5478
5479 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
5480
5481 * linux-arm-low.c (arm_supports_z_point_type): Add software
5482 breakpoint support.
5483
5484 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
5485
5486 * linux-arm-low.c: Refactor breakpoint definitions.
5487 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
5488 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
5489
5490 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
5491
5492 * Makefile.in: Add arm.c/o.
5493 * configure.srv: Likewise.
5494 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
5495 (arm_breakpoint_kind_from_pc): New function.
5496 (arm_sw_breakpoint_from_kind): Return proper kind.
5497 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
5498
5499 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
5500
5501 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
5502 removal.
5503 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
5504 (struct raw_breakpoint) <size>: Remove.
5505 (struct raw_breakpoint) <kind>: Add.
5506 (bp_size): New function.
5507 (bp_opcode): Likewise.
5508 (find_raw_breakpoint_at): Adjust for kind.
5509 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
5510 (remove_memory_breakpoint): Adjust for kind call bp_size.
5511 (set_raw_breakpoint_at): Adjust for kind.
5512 (set_breakpoint): Likewise.
5513 (set_breakpoint_at): Call breakpoint_kind_from_pc.
5514 (delete_raw_breakpoint): Adjust for kind.
5515 (delete_breakpoint): Likewise.
5516 (find_gdb_breakpoint): Likewise.
5517 (set_gdb_breakpoint_1): Likewise.
5518 (set_gdb_breakpoint): Likewise.
5519 (delete_gdb_breakpoint_1): Likewise.
5520 (delete_gdb_breakpoint): Likewise.
5521 (uninsert_raw_breakpoint): Likewise.
5522 (reinsert_raw_breakpoint): Likewise.
5523 (set_breakpoint_data): Remove.
5524 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
5525 (check_mem_read): Adjust for kind call bp_size.
5526 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
5527 (clone_one_breakpoint): Adjust for kind.
5528 * mem-break.h (set_gdb_breakpoint): Likewise.
5529 (delete_gdb_breakpoint): Likewise.
5530 * server.c (process_serial_event): Likewise.
5531
5532 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
5533
5534 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
5535 (struct linux_target_ops) <breakpoint>: Remove.
5536 (struct linux_target_ops) <breakpoint_len>: Remove.
5537 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
5538 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
5539 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
5540 (arm_sw_breakpoint_from_kind): New function.
5541 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
5542 (struct linux_target_ops) <breakpoint>: Remove.
5543 (struct linux_target_ops) <breakpoint_len>: Remove.
5544 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
5545 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
5546 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
5547 (struct linux_target_ops) <breakpoint>: Remove.
5548 (struct linux_target_ops) <breakpoint_len>: Remove.
5549 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
5550 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
5551 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
5552 (struct linux_target_ops) <breakpoint>: Remove.
5553 (struct linux_target_ops) <breakpoint_len>: Remove.
5554 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
5555 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
5556 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
5557 and sw_breakpoint_from_kind to increment the pc.
5558 (linux_breakpoint_kind_from_pc): New function.
5559 (linux_sw_breakpoint_from_kind): New function.
5560 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
5561 (initialize_low): Call breakpoint_kind_from_pc and
5562 sw_breakpoint_from_kind to replace breakpoint_data/len.
5563 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
5564 New field.
5565 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
5566 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
5567 (struct linux_target_ops) <breakpoint>: Remove.
5568 (struct linux_target_ops) <breakpoint_len>: Remove.
5569 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
5570 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
5571 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
5572 (struct linux_target_ops) <breakpoint>: Remove.
5573 (struct linux_target_ops) <breakpoint_len>: Remove.
5574 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
5575 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
5576 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
5577 (struct linux_target_ops) <breakpoint>: Remove.
5578 (struct linux_target_ops) <breakpoint_len>: Remove.
5579 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
5580 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
5581 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
5582 (struct linux_target_ops) <breakpoint>: Remove.
5583 (struct linux_target_ops) <breakpoint_len>: Remove.
5584 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
5585 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
5586 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
5587 (struct linux_target_ops) <breakpoint>: Remove.
5588 (struct linux_target_ops) <breakpoint_len>: Remove.
5589 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
5590 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
5591 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
5592 (struct linux_target_ops) <breakpoint>: Remove.
5593 (struct linux_target_ops) <breakpoint_len>: Remove.
5594 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
5595 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
5596 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
5597 (struct linux_target_ops) <breakpoint>: Remove.
5598 (struct linux_target_ops) <breakpoint_len>: Remove.
5599 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
5600 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
5601 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
5602 (struct linux_target_ops) <breakpoint>: Remove.
5603 (struct linux_target_ops) <breakpoint_len>: Remove.
5604 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
5605 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
5606 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
5607 (struct linux_target_ops) <breakpoint>: Remove.
5608 (struct linux_target_ops) <breakpoint_len>: Remove.
5609 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
5610 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
5611 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
5612 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
5613 (struct linux_target_ops) <breakpoint>: Remove.
5614 (struct linux_target_ops) <breakpoint_len>: Remove.
5615 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
5616 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
5617 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
5618 (struct linux_target_ops) <breakpoint>: Remove.
5619 (struct linux_target_ops) <breakpoint_len>: Remove.
5620 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
5621 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
5622
5623 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
5624
5625 * linux-cris-low.c (cris_get_pc): Remove void arg.
5626
5627 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
5628
5629 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
5630 variable name.
5631
5632 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
5633
5634 * inferiors.c (thread_pid_matches_callback): New function.
5635 (find_thread_process): New function.
5636 (remove_thread): Reset current_thread.
5637 (remove_process): Assert threads have been removed first.
5638
5639 2015-10-15 Yao Qi <yao.qi@linaro.org>
5640
5641 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
5642 if it is 3.
5643 (aarch64_remove_point): Likewise.
5644 * regcache.c (regcache_register_size): New function.
5645
5646 2015-10-12 Yao Qi <yao.qi@linaro.org>
5647
5648 * linux-aarch64-low.c: Update all callers as emit_load_store
5649 is renamed to aarch64_emit_load_store.
5650
5651 2015-10-12 Yao Qi <yao.qi@linaro.org>
5652
5653 * linux-aarch64-low.c: Update all callers of function renaming
5654 from emit_insn to aarch64_emit_insn.
5655
5656 2015-10-12 Yao Qi <yao.qi@linaro.org>
5657
5658 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
5659 arch/aarch64-insn.h.
5660 (struct aarch64_memory_operand): Likewise.
5661 (ENCODE): Likewise.
5662 (emit_insn): Move to arch/aarch64-insn.c.
5663 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
5664 (emit_load_store): Move to arch/aarch64-insn.c.
5665 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
5666 (can_encode_int32): Remove.
5667
5668 2015-10-12 Yao Qi <yao.qi@linaro.org>
5669
5670 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
5671 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
5672 (aarch64_relocate_instruction): Likewise.
5673 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
5674 (struct aarch64_insn_visitor): Likewise.
5675
5676 2015-10-12 Yao Qi <yao.qi@linaro.org>
5677
5678 * linux-aarch64-low.c (struct aarch64_insn_data): New.
5679 (struct aarch64_insn_visitor): New.
5680 (struct aarch64_insn_relocation_data): New.
5681 (aarch64_ftrace_insn_reloc_b): New function.
5682 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
5683 (aarch64_ftrace_insn_reloc_cb): Likewise.
5684 (aarch64_ftrace_insn_reloc_tb): Likewise.
5685 (aarch64_ftrace_insn_reloc_adr): Likewise.
5686 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
5687 (aarch64_ftrace_insn_reloc_others): Likewise.
5688 (visitor): New.
5689 (aarch64_relocate_instruction): Use visitor.
5690
5691 2015-10-12 Yao Qi <yao.qi@linaro.org>
5692
5693 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
5694 int. Add argument buf.
5695 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
5696 aarch64_relocate_instruction.
5697
5698 2015-10-12 Yao Qi <yao.qi@linaro.org>
5699
5700 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
5701 argument insn. Remove local variable insn. Don't call
5702 target_read_uint32.
5703 (aarch64_install_fast_tracepoint_jump_pad): Call
5704 target_read_uint32.
5705
5706 2015-09-30 Yao Qi <yao.qi@linaro.org>
5707
5708 * linux-aarch64-low.c (emit_movk): Shorten a long line.
5709 (emit_load_store_pair): Likewise.
5710
5711 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
5712
5713 * dll.c (match_dll): Add cast(s).
5714 (unloaded_dll): Likewise.
5715 * linux-low.c (second_thread_of_pid_p): Likewise.
5716 (delete_lwp_callback): Likewise.
5717 (count_events_callback): Likewise.
5718 (select_event_lwp_callback): Likewise.
5719 (linux_set_resume_request): Likewise.
5720 * server.c (accumulate_file_name_length): Likewise.
5721 (emit_dll_description): Likewise.
5722 (handle_qxfer_threads_worker): Likewise.
5723 (visit_actioned_threads): Likewise.
5724 * thread-db.c (any_thread_of): Likewise.
5725 * tracepoint.c (same_process_p): Likewise.
5726 (match_blocktype): Likewise.
5727 (build_traceframe_info_xml): Likewise.
5728
5729 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
5730
5731 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
5732 assignment.
5733 (gdb_unparse_agent_expr): Likewise.
5734 * hostio.c (require_data): Likewise.
5735 (handle_pread): Likewise.
5736 * linux-low.c (disable_regset): Likewise.
5737 (fetch_register): Likewise.
5738 (store_register): Likewise.
5739 (get_dynamic): Likewise.
5740 (linux_qxfer_libraries_svr4): Likewise.
5741 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
5742 (set_fast_tracepoint_jump): Likewise.
5743 (uninsert_fast_tracepoint_jumps_at): Likewise.
5744 (reinsert_fast_tracepoint_jumps_at): Likewise.
5745 (validate_inserted_breakpoint): Likewise.
5746 (clone_agent_expr): Likewise.
5747 * regcache.c (init_register_cache): Likewise.
5748 * remote-utils.c (putpkt_binary_1): Likewise.
5749 (decode_M_packet): Likewise.
5750 (decode_X_packet): Likewise.
5751 (look_up_one_symbol): Likewise.
5752 (relocate_instruction): Likewise.
5753 (monitor_output): Likewise.
5754 * server.c (handle_search_memory): Likewise.
5755 (handle_qxfer_exec_file): Likewise.
5756 (handle_qxfer_libraries): Likewise.
5757 (handle_qxfer): Likewise.
5758 (handle_query): Likewise.
5759 (handle_v_cont): Likewise.
5760 (handle_v_run): Likewise.
5761 (captured_main): Likewise.
5762 * target.c (write_inferior_memory): Likewise.
5763 * thread-db.c (try_thread_db_load_from_dir): Likewise.
5764 * tracepoint.c (init_trace_buffer): Likewise.
5765 (add_tracepoint_action): Likewise.
5766 (add_traceframe): Likewise.
5767 (add_traceframe_block): Likewise.
5768 (cmd_qtdpsrc): Likewise.
5769 (cmd_qtdv): Likewise.
5770 (cmd_qtstatus): Likewise.
5771 (response_source): Likewise.
5772 (response_tsv): Likewise.
5773 (cmd_qtnotes): Likewise.
5774 (gdb_collect): Likewise.
5775 (initialize_tracepoint): Likewise.
5776
5777 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
5778
5779 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
5780 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
5781 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
5782 <NOP>: New.
5783 (enum aarch64_condition_codes): New enum.
5784 (w0): New static global.
5785 (fp): Likewise.
5786 (lr): Likewise.
5787 (struct aarch64_memory_operand) <type>: New
5788 MEMORY_OPERAND_POSTINDEX type.
5789 (postindex_memory_operand): New helper function.
5790 (emit_ret): New function.
5791 (emit_load_store_pair): New function, factored out of emit_stp
5792 with support for MEMORY_OPERAND_POSTINDEX.
5793 (emit_stp): Rewrite using emit_load_store_pair.
5794 (emit_ldp): New function.
5795 (emit_load_store): Likewise.
5796 (emit_ldr): Mention post-index instruction in comment.
5797 (emit_ldrh): New function.
5798 (emit_ldrb): New function.
5799 (emit_ldrsw): Mention post-index instruction in comment.
5800 (emit_str): Likewise.
5801 (emit_subs): New function.
5802 (emit_cmp): Likewise.
5803 (emit_and): Likewise.
5804 (emit_orr): Likewise.
5805 (emit_orn): Likewise.
5806 (emit_eor): Likewise.
5807 (emit_mvn): Likewise.
5808 (emit_lslv): Likewise.
5809 (emit_lsrv): Likewise.
5810 (emit_asrv): Likewise.
5811 (emit_mul): Likewise.
5812 (emit_sbfm): Likewise.
5813 (emit_sbfx): Likewise.
5814 (emit_ubfm): Likewise.
5815 (emit_ubfx): Likewise.
5816 (emit_csinc): Likewise.
5817 (emit_cset): Likewise.
5818 (emit_nop): Likewise.
5819 (emit_ops_insns): New helper function.
5820 (emit_pop): Likewise.
5821 (emit_push): Likewise.
5822 (aarch64_emit_prologue): New function.
5823 (aarch64_emit_epilogue): Likewise.
5824 (aarch64_emit_add): Likewise.
5825 (aarch64_emit_sub): Likewise.
5826 (aarch64_emit_mul): Likewise.
5827 (aarch64_emit_lsh): Likewise.
5828 (aarch64_emit_rsh_signed): Likewise.
5829 (aarch64_emit_rsh_unsigned): Likewise.
5830 (aarch64_emit_ext): Likewise.
5831 (aarch64_emit_log_not): Likewise.
5832 (aarch64_emit_bit_and): Likewise.
5833 (aarch64_emit_bit_or): Likewise.
5834 (aarch64_emit_bit_xor): Likewise.
5835 (aarch64_emit_bit_not): Likewise.
5836 (aarch64_emit_equal): Likewise.
5837 (aarch64_emit_less_signed): Likewise.
5838 (aarch64_emit_less_unsigned): Likewise.
5839 (aarch64_emit_ref): Likewise.
5840 (aarch64_emit_if_goto): Likewise.
5841 (aarch64_emit_goto): Likewise.
5842 (aarch64_write_goto_address): Likewise.
5843 (aarch64_emit_const): Likewise.
5844 (aarch64_emit_call): Likewise.
5845 (aarch64_emit_reg): Likewise.
5846 (aarch64_emit_pop): Likewise.
5847 (aarch64_emit_stack_flush): Likewise.
5848 (aarch64_emit_zero_ext): Likewise.
5849 (aarch64_emit_swap): Likewise.
5850 (aarch64_emit_stack_adjust): Likewise.
5851 (aarch64_emit_int_call_1): Likewise.
5852 (aarch64_emit_void_call_2): Likewise.
5853 (aarch64_emit_eq_goto): Likewise.
5854 (aarch64_emit_ne_goto): Likewise.
5855 (aarch64_emit_lt_goto): Likewise.
5856 (aarch64_emit_le_goto): Likewise.
5857 (aarch64_emit_gt_goto): Likewise.
5858 (aarch64_emit_ge_got): Likewise.
5859 (aarch64_emit_ops_impl): New static global variable.
5860 (aarch64_emit_ops): New target function, return
5861 &aarch64_emit_ops_impl.
5862 (struct linux_target_ops): Install it.
5863
5864 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
5865
5866 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
5867 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
5868 aarch64-ipa.o.
5869 * linux-aarch64-ipa.c: New file.
5870 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
5871 and endian.h.
5872 (aarch64_get_thread_area): New target method.
5873 (extract_signed_bitfield): New helper function.
5874 (aarch64_decode_ldr_literal): New function.
5875 (enum aarch64_opcodes): New enum.
5876 (struct aarch64_register): New struct.
5877 (struct aarch64_operand): New struct.
5878 (x0): New static global.
5879 (x1): Likewise.
5880 (x2): Likewise.
5881 (x3): Likewise.
5882 (x4): Likewise.
5883 (w2): Likewise.
5884 (ip0): Likewise.
5885 (sp): Likewise.
5886 (xzr): Likewise.
5887 (aarch64_register): New helper function.
5888 (register_operand): Likewise.
5889 (immediate_operand): Likewise.
5890 (struct aarch64_memory_operand): New struct.
5891 (offset_memory_operand): New helper function.
5892 (preindex_memory_operand): Likewise.
5893 (enum aarch64_system_control_registers): New enum.
5894 (ENCODE): New macro.
5895 (emit_insn): New helper function.
5896 (emit_b): New function.
5897 (emit_bcond): Likewise.
5898 (emit_cb): Likewise.
5899 (emit_tb): Likewise.
5900 (emit_blr): Likewise.
5901 (emit_stp): Likewise.
5902 (emit_ldp_q_offset): Likewise.
5903 (emit_stp_q_offset): Likewise.
5904 (emit_load_store): Likewise.
5905 (emit_ldr): Likewise.
5906 (emit_ldrsw): Likewise.
5907 (emit_str): Likewise.
5908 (emit_ldaxr): Likewise.
5909 (emit_stxr): Likewise.
5910 (emit_stlr): Likewise.
5911 (emit_data_processing_reg): Likewise.
5912 (emit_data_processing): Likewise.
5913 (emit_add): Likewise.
5914 (emit_sub): Likewise.
5915 (emit_mov): Likewise.
5916 (emit_movk): Likewise.
5917 (emit_mov_addr): Likewise.
5918 (emit_mrs): Likewise.
5919 (emit_msr): Likewise.
5920 (emit_sevl): Likewise.
5921 (emit_wfe): Likewise.
5922 (append_insns): Likewise.
5923 (can_encode_int32_in): New helper function.
5924 (aarch64_relocate_instruction): New function.
5925 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
5926 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
5927 (struct linux_target_ops): Install aarch64_get_thread_area,
5928 aarch64_install_fast_tracepoint_jump_pad and
5929 aarch64_get_min_fast_tracepoint_insn_len.
5930
5931 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
5932
5933 * Makefile.in (aarch64-insn.o): New rule.
5934 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
5935
5936 2015-09-21 Yao Qi <yao.qi@linaro.org>
5937
5938 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
5939
5940 2015-09-21 Yao Qi <yao.qi@linaro.org>
5941
5942 * tracepoint.c (max_jump_pad_size): Remove.
5943
5944 2015-09-18 Yao Qi <yao.qi@linaro.org>
5945
5946 * linux-aarch64-low.c: Don't include sys/uio.h.
5947 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
5948
5949 2015-09-16 Wei-cheng Wang <cole945@gmail.com>
5950
5951 * tracepoint.c (eval_result_type): Change prototype.
5952 (condition_true_at_tracepoint): Fix argument to compiled_cond.
5953
5954 2015-09-15 Pedro Alves <palves@redhat.com>
5955
5956 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
5957 Check whether to report exec events instead of checking whether
5958 multiprocess is enabled.
5959
5960 2015-09-15 Pedro Alves <palves@redhat.com>
5961
5962 PR remote/18965
5963 * remote-utils.c (prepare_resume_reply): Merge
5964 TARGET_WAITKIND_VFORK_DONE switch case with the
5965 TARGET_WAITKIND_FORKED case.
5966
5967 2015-09-15 Yao Qi <yao.qi@linaro.org>
5968
5969 * server.c (handle_query): Check string comparison using
5970 "else if" instead of "if".
5971
5972 2015-09-15 Yao Qi <yao.qi@linaro.org>
5973
5974 * server.c (vCont_supported): New global variable.
5975 (handle_query): Set vCont_supported to 1 if "vContSupported+"
5976 matches. Append ";vContSupported+" to own_buf.
5977 (handle_v_requests): Append ";s;S" to own_buf if target supports
5978 hardware single step or vCont_supported is false.
5979 (capture_main): Set vCont_supported to zero.
5980
5981 2015-09-15 Yao Qi <yao.qi@linaro.org>
5982
5983 * linux-low.c (linux_supports_conditional_breakpoints): Rename
5984 it to ...
5985 (linux_supports_hardware_single_step): ... New function.
5986 (linux_target_ops): Update.
5987 * lynx-low.c (lynx_target_ops): Set field
5988 supports_hardware_single_step to target_can_do_hardware_single_step.
5989 * nto-low.c (nto_target_ops): Likewise.
5990 * spu-low.c (spu_target_ops): Likewise.
5991 * win32-low.c (win32_target_ops): Likewise.
5992 * target.c (target_can_do_hardware_single_step): New function.
5993 * target.h (struct target_ops) <supports_conditional_breakpoints>:
5994 Remove. <supports_hardware_single_step>: New field.
5995 (target_supports_conditional_breakpoints): Remove.
5996 (target_supports_hardware_single_step): New macro.
5997 (target_can_do_hardware_single_step): Declare.
5998 * server.c (handle_query): Use target_supports_hardware_single_step
5999 instead of target_supports_conditional_breakpoints.
6000
6001 2015-09-15 Yao Qi <yao.qi@linaro.org>
6002
6003 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
6004 function.
6005 (struct linux_target_ops the_low_target): Install
6006 aarch64_linux_siginfo_fixup.
6007
6008 2015-09-11 Don Breazeal <donb@codesourcery.com>
6009 Luis Machado <lgustavo@codesourcery.com>
6010
6011 * linux-low.c (linux_mourn): Static declaration.
6012 (linux_arch_setup): Move in front of
6013 handle_extended_wait.
6014 (linux_arch_setup_thread): New function.
6015 (handle_extended_wait): Handle exec events. Call
6016 linux_arch_setup_thread. Make event_lwp argument a
6017 pointer-to-a-pointer.
6018 (check_zombie_leaders): Do not check stopped threads.
6019 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
6020 (linux_low_filter_event): Add lwp and thread for exec'ing
6021 non-leader thread if leader thread has been deleted.
6022 Refactor code into linux_arch_setup_thread and call it.
6023 Pass child lwp pointer by reference to handle_extended_wait.
6024 (linux_wait_for_event_filtered): Update comment.
6025 (linux_wait_1): Prevent clobbering exec event status.
6026 (linux_supports_exec_events): New function.
6027 (linux_target_ops) <supports_exec_events>: Initialize new member.
6028 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
6029 new member.
6030 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
6031 * server.c (report_exec_events): New global variable.
6032 (handle_query): Handle qSupported query for exec-events feature.
6033 (captured_main): Initialize report_exec_events.
6034 * server.h (report_exec_events): Declare new global variable.
6035 * target.h (struct target_ops) <supports_exec_events>: New
6036 member.
6037 (target_supports_exec_events): New macro.
6038 * win32-low.c (win32_target_ops) <supports_exec_events>:
6039 Initialize new member.
6040
6041 2015-09-09 Markus Metzger <markus.t.metzger@intel.com>
6042
6043 * linux-low.c (linux_low_enable_btrace): Remove.
6044 (linux_target_ops): Replace linux_low_enable_btrace with
6045 linux_enable_btrace.
6046
6047 2015-09-03 Yao Qi <yao.qi@linaro.org>
6048
6049 * linux-aarch64-low.c (aarch64_insert_point): Call
6050 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
6051 returns true.
6052
6053 2015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6054
6055 * linux-low.c (check_stopped_by_breakpoint): Use
6056 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
6057
6058 2015-08-27 Pedro Alves <palves@redhat.com>
6059
6060 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
6061
6062 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
6063
6064 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
6065 the XNEW-family equivalent.
6066 (compile_bytecodes): Likewise.
6067 * dll.c (loaded_dll): Likewise.
6068 * event-loop.c (append_callback_event): Likewise.
6069 (create_file_handler): Likewise.
6070 (create_file_event): Likewise.
6071 * hostio.c (handle_open): Likewise.
6072 * inferiors.c (add_thread): Likewise.
6073 (add_process): Likewise.
6074 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
6075 * linux-arm-low.c (arm_new_process): Likewise.
6076 (arm_new_thread): Likewise.
6077 * linux-low.c (add_to_pid_list): Likewise.
6078 (linux_add_process): Likewise.
6079 (handle_extended_wait): Likewise.
6080 (add_lwp): Likewise.
6081 (enqueue_one_deferred_signal): Likewise.
6082 (enqueue_pending_signal): Likewise.
6083 (linux_resume_one_lwp_throw): Likewise.
6084 (linux_resume_one_thread): Likewise.
6085 (linux_read_memory): Likewise.
6086 (linux_write_memory): Likewise.
6087 * linux-mips-low.c (mips_linux_new_process): Likewise.
6088 (mips_linux_new_thread): Likewise.
6089 (mips_add_watchpoint): Likewise.
6090 * linux-x86-low.c (initialize_low_arch): Likewise.
6091 * lynx-low.c (lynx_add_process): Likewise.
6092 * mem-break.c (set_raw_breakpoint_at): Likewise.
6093 (set_breakpoint): Likewise.
6094 (add_condition_to_breakpoint): Likewise.
6095 (add_commands_to_breakpoint): Likewise.
6096 (clone_agent_expr): Likewise.
6097 (clone_one_breakpoint): Likewise.
6098 * regcache.c (new_register_cache): Likewise.
6099 * remote-utils.c (look_up_one_symbol): Likewise.
6100 * server.c (queue_stop_reply): Likewise.
6101 (start_inferior): Likewise.
6102 (queue_stop_reply_callback): Likewise.
6103 (handle_target_event): Likewise.
6104 * spu-low.c (fetch_ppc_memory): Likewise.
6105 (store_ppc_memory): Likewise.
6106 * target.c (set_target_ops): Likewise.
6107 * thread-db.c (thread_db_load_search): Likewise.
6108 (try_thread_db_load_1): Likewise.
6109 * tracepoint.c (add_tracepoint): Likewise.
6110 (add_tracepoint_action): Likewise.
6111 (create_trace_state_variable): Likewise.
6112 (cmd_qtdpsrc): Likewise.
6113 (cmd_qtro): Likewise.
6114 (add_while_stepping_state): Likewise.
6115 * win32-low.c (child_add_thread): Likewise.
6116 (get_image_name): Likewise.
6117
6118 2015-08-25 Yao Qi <yao.qi@linaro.org>
6119
6120 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
6121
6122 2015-08-25 Yao Qi <yao.qi@linaro.org>
6123
6124 * Makefile.in (aarch64-linux.o): New rule.
6125 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
6126 srv_tgtobj.
6127 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
6128 (aarch64_init_debug_reg_state): Make it extern.
6129 (aarch64_linux_prepare_to_resume): Remove.
6130
6131 2015-08-25 Yao Qi <yao.qi@linaro.org>
6132
6133 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
6134 lwp_arch_private_info and ptid_of_lwp.
6135
6136 2015-08-25 Yao Qi <yao.qi@linaro.org>
6137
6138 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
6139 Find proc_info by find_process_pid. All callers updated.
6140
6141 2015-08-25 Yao Qi <yao.qi@linaro.org>
6142
6143 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
6144 Remove.
6145 (debug_reg_change_callback): Remove.
6146 (aarch64_notify_debug_reg_change): Remove.
6147
6148 2015-08-25 Yao Qi <yao.qi@linaro.org>
6149
6150 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
6151 Call current_lwp_ptid.
6152
6153 2015-08-25 Yao Qi <yao.qi@linaro.org>
6154
6155 * linux-aarch64-low.c (debug_reg_change_callback): Use
6156 debug_printf.
6157
6158 2015-08-25 Yao Qi <yao.qi@linaro.org>
6159
6160 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
6161
6162 2015-08-25 Yao Qi <yao.qi@linaro.org>
6163
6164 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
6165
6166 2015-08-25 Yao Qi <yao.qi@linaro.org>
6167
6168 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
6169 the code.
6170
6171 2015-08-25 Yao Qi <yao.qi@linaro.org>
6172
6173 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
6174 Remove.
6175 (debug_reg_change_callback): Remove argument entry and add argument
6176 lwp. Remove local variable thread. Don't print thread id in the
6177 debugging output. Don't check whether pid of thread equals to pid.
6178 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
6179 iterate_over_lwps instead find_inferior.
6180
6181 2015-08-24 Pedro Alves <palves@redhat.com>
6182
6183 * inferiors.c (get_first_process): New function.
6184 * inferiors.h (get_first_process): New declaration.
6185 * remote-utils.c (read_ptid): Default to the first process in the
6186 list, instead of to the current thread's process.
6187
6188 2015-08-24 Pedro Alves <palves@redhat.com>
6189
6190 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
6191 * event-loop.c: Likewise.
6192 * remote-utils.c: Likewise.
6193 * tracepoint.c: Likewise.
6194
6195 2015-08-24 Pedro Alves <palves@redhat.com>
6196
6197 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
6198 ptid_get_lwp.
6199
6200 2015-08-21 Pedro Alves <palves@redhat.com>
6201
6202 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
6203 instead of literal 1.
6204
6205 2015-08-21 Pedro Alves <palves@redhat.com>
6206
6207 * tdesc.c (default_description): Explicitly zero-initialize.
6208
6209 2015-08-21 Pedro Alves <palves@redhat.com>
6210
6211 PR gdb/18749
6212 * inferiors.c (remove_thread): Discard any pending stop reply for
6213 this thread.
6214 * server.c (remove_all_on_match_pid): Rename to ...
6215 (remove_all_on_match_ptid): ... this. Work with a filter ptid
6216 instead of a pid.
6217 (discard_queued_stop_replies): Change parameter to a ptid. Now
6218 extern.
6219 (handle_v_kill, kill_inferior_callback, captured_main)
6220 (process_serial_event): Adjust.
6221 * server.h (discard_queued_stop_replies): Declare.
6222
6223 2015-08-21 Pedro Alves <palves@redhat.com>
6224
6225 * linux-low.c (wait_for_sigstop): Always switch to no thread
6226 selected if the previously current thread dies.
6227 * lynx-low.c (lynx_request_interrupt): Use the first thread's
6228 process instead of the current thread's.
6229 * remote-utils.c (input_interrupt): Don't check if there's no
6230 current thread.
6231 * server.c (gdb_read_memory, gdb_write_memory): If setting the
6232 current thread to the general thread fails, error out.
6233 (handle_qxfer_auxv, handle_qxfer_libraries)
6234 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
6235 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
6236 (handle_query): Check if there's a thread selected instead of
6237 checking whether there's any thread in the thread list.
6238 (handle_qxfer_threads, handle_qxfer_btrace)
6239 (handle_qxfer_btrace_conf): Don't error out early if there's no
6240 thread in the thread list.
6241 (handle_v_cont, myresume): Don't set the current thread to the
6242 continue thread.
6243 (process_serial_event) <Hg handling>: Also set thread_id if the
6244 previous general thread is still alive.
6245 (process_serial_event) <g/G handling>: If setting the current
6246 thread to the general thread fails, error out.
6247 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
6248 thread's lwp instead of the current thread's.
6249 * target.c (set_desired_thread): If the desired thread was not
6250 found, leave the current thread pointing to NULL. Return an int
6251 (boolean) indicating success.
6252 * target.h (set_desired_thread): Change return type to int.
6253
6254 2015-08-20 Max Filippov <jcmvbkbc@gmail.com>
6255
6256 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
6257 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
6258 #includes.
6259 (ps_get_thread_area): New function.
6260
6261 2015-08-19 Gary Benson <gbenson@redhat.com>
6262
6263 * hostio.c (handle_pread): Do not attempt to read more data
6264 than hostio_reply_with_data can fit in a packet.
6265
6266 2015-08-18 Joel Brobecker <brobecker@adacore.com>
6267
6268 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
6269
6270 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
6271
6272 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
6273
6274 2015-08-06 Pedro Alves <palves@redhat.com>
6275
6276 * tracepoint.c (expr_eval_result): Now an int.
6277
6278 2015-08-06 Pedro Alves <palves@redhat.com>
6279
6280 * gdbthread.h (struct regcache): Forward declare.
6281 (struct thread_info) <regcache_data>: Now a struct regcache
6282 pointer.
6283 * inferiors.c (inferior_regcache_data)
6284 (set_inferior_regcache_data): Now work with struct regcache
6285 pointers.
6286 * inferiors.h (struct regcache): Forward declare.
6287 (inferior_regcache_data, set_inferior_regcache_data): Now work
6288 with struct regcache pointers.
6289 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
6290 (free_register_cache_thread): Remove struct regcache pointer
6291 casts.
6292
6293 2015-08-06 Pedro Alves <palves@redhat.com>
6294
6295 * server.c (captured_main): On error, print the exception message
6296 to stderr, and if run_once is set, throw a quit.
6297
6298 2015-08-06 Pedro Alves <palves@redhat.com>
6299
6300 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
6301 the current thread.
6302
6303 2015-08-06 Pedro Alves <palves@redhat.com>
6304
6305 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
6306 reading beyond the passed in buffer length.
6307
6308 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
6309
6310 * tracepoint.c (symbol_list) <required>: Remove.
6311
6312 2015-08-06 Pedro Alves <palves@redhat.com>
6313
6314 * linux-low.c (handle_extended_wait): Set the fork child's suspend
6315 count if stopping and suspending threads.
6316 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
6317 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
6318 (linux_detach): Complete an ongoing step-over.
6319 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
6320 throughout.
6321 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
6322 (linux_wait_1): If passing a signal to the inferior after
6323 finishing a step-over, unsuspend and re-resume all lwps. If we
6324 see a single-step event but the thread should be continuing, don't
6325 pass the trap to gdb.
6326 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
6327 internal_error instead of gdb_assert.
6328 (enqueue_pending_signal): New function.
6329 (check_ptrace_stopped_lwp_gone): Add debug output.
6330 (start_step_over): Use internal_error instead of gdb_assert.
6331 (complete_ongoing_step_over): New function.
6332 (linux_resume_one_thread): Don't resume a suspended thread.
6333 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
6334 it stepping.
6335
6336 2015-08-06 Pedro Alves <palves@redhat.com>
6337
6338 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
6339 (linux_thread_alive): Use lwp_is_marked_dead.
6340 (extended_event_reported): Delete.
6341 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
6342 instead of extended_event_reported.
6343 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
6344 as well.
6345 (lwp_is_marked_dead): New function.
6346 (lwp_running): Use lwp_is_marked_dead.
6347 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
6348 comment.
6349
6350 2015-08-06 Pedro Alves <palves@redhat.com>
6351
6352 * linux-low.c (linux_wait_1): Move fork event output out of the
6353 !report_to_gdb check. Pass event_child->waitstatus to
6354 target_waitstatus_to_string instead of ourstatus.
6355
6356 2015-08-04 Yao Qi <yao.qi@linaro.org>
6357
6358 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
6359 if current_thread is 32 bit.
6360
6361 2015-08-04 Yao Qi <yao.qi@linaro.org>
6362
6363 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
6364 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
6365 * server.c (extended_protocol): Remove "static".
6366 * server.h (extended_protocol): Declare it.
6367
6368 2015-08-04 Yao Qi <yao.qi@linaro.org>
6369
6370 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
6371 both aarch64 and aarch32.
6372 (aarch64_set_pc): Likewise.
6373
6374 2015-08-04 Yao Qi <yao.qi@linaro.org>
6375
6376 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
6377 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
6378 arm-with-neon.xml to srv_xmlfiles.
6379 * linux-aarch64-low.c: Include linux-aarch32-low.h.
6380 (is_64bit_tdesc): New function.
6381 (aarch64_linux_read_description): New function.
6382 (aarch64_arch_setup): Call aarch64_linux_read_description.
6383 (regs_info): Rename to regs_info_aarch64.
6384 (aarch64_regs_info): Return right regs_info.
6385 (initialize_low_arch): Call initialize_low_arch_aarch32.
6386
6387 2015-08-04 Yao Qi <yao.qi@linaro.org>
6388
6389 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
6390 * linux-aarch32-low.c: New file.
6391 * linux-aarch32-low.h: New file.
6392 * linux-arm-low.c (arm_fill_gregset): Move it to
6393 linux-aarch32-low.c.
6394 (arm_store_gregset): Likewise.
6395 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
6396 (arm_store_vfpregset): Call arm_store_vfpregset_num.
6397 (arm_arch_setup): Check if PTRACE_GETREGSET works.
6398 (regs_info): Rename to regs_info_arm.
6399 (arm_regs_info): Return regs_info_aarch32 if
6400 have_ptrace_getregset is 1 and target description is
6401 arm_with_neon or arm_with_vfpv3.
6402 (initialize_low_arch): Don't call init_registers_arm_with_neon.
6403 Call initialize_low_arch_aarch32 instead.
6404
6405 2015-08-04 Yao Qi <yao.qi@linaro.org>
6406
6407 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
6408 * linux-low.c: ... here.
6409 * linux-low.h (have_ptrace_getregset): Declare it.
6410
6411 2015-08-04 Pedro Alves <palves@redhat.com>
6412
6413 * thread-db.c (struct thread_db): Use new typedefs.
6414 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
6415 CHK calls.
6416 (disable_thread_event_reporting): Cast result of dlsym to
6417 destination function pointer type.
6418 (thread_db_mourn): Use td_ta_delete_ftype.
6419
6420 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
6421
6422 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
6423 arch variant.
6424 (CDX_BREAKPOINT): Define for R2.
6425 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
6426 (the_low_target): Add comments.
6427
6428 2015-07-30 Yao Qi <yao.qi@linaro.org>
6429
6430 * linux-arm-low.c (arm_hwcap): Remove it.
6431 (arm_read_description): New local variable arm_hwcap. Don't
6432 set arm_hwcap to zero.
6433
6434 2015-07-30 Yao Qi <yao.qi@linaro.org>
6435
6436 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
6437 Use regcache->tdesc instead.
6438 (arm_store_wmmxregset): Likewise.
6439 (arm_fill_vfpregset): Likewise.
6440 (arm_store_vfpregset): Likewise.
6441
6442 2015-07-30 Yao Qi <yao.qi@linaro.org>
6443
6444 * linux-arm-low.c: Include arch/arm.h.
6445 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
6446 (arm_store_gregset): Likewise.
6447
6448 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
6449
6450 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
6451 ptrace's 4th parameter.
6452
6453 2015-07-27 Yao Qi <yao.qi@linaro.org>
6454
6455 * configure.srv (case aarch64*-*-linux*): Don't set
6456 srv_linux_usrregs.
6457
6458 2015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
6459
6460 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
6461 sys/ptrace.h.
6462 * linux-arm-low.c: Likewise.
6463 * linux-cris-low.c: Likewise.
6464 * linux-crisv32-low.c: Likewise.
6465 * linux-low.c: Likewise.
6466 * linux-m68k-low.c: Likewise.
6467 * linux-mips-low.c: Likewise.
6468 * linux-nios2-low.c: Likewise.
6469 * linux-s390-low.c: Likewise.
6470 * linux-sparc-low.c: Likewise.
6471 * linux-tic6x-low.c: Likewise.
6472 * linux-tile-low.c: Likewise.
6473 * linux-x86-low.c: Likewise.
6474
6475 2015-07-24 Pedro Alves <palves@redhat.com>
6476
6477 * config.in: Regenerate.
6478 * configure: Regenerate.
6479
6480 2015-07-24 Pedro Alves <palves@redhat.com>
6481
6482 * acinclude.m4: Include ../ptrace.m4.
6483 * configure.ac: Call GDB_AC_PTRACE.
6484 * config.in, configure: Regenerate.
6485
6486 2015-07-24 Yao Qi <yao.qi@linaro.org>
6487
6488 * linux-low.c (linux_create_inferior): Remove setting to
6489 proc->priv->new_inferior.
6490 (linux_attach): Likewise.
6491 (linux_low_filter_event): Likewise.
6492 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
6493
6494 2015-07-24 Yao Qi <yao.qi@linaro.org>
6495
6496 * linux-low.c (linux_arch_setup): New function.
6497 (linux_low_filter_event): If proc->tdesc is NULL and
6498 proc->attached is true, call the_low_target.arch_setup.
6499 Otherwise, keep status pending, and return.
6500 (linux_resume_one_lwp_throw): Don't call get_pc if
6501 thread->while_stepping isn't NULL. Don't call
6502 get_thread_regcache if proc->tdesc is NULL.
6503 (need_step_over_p): Return 0 if proc->tdesc is NULL.
6504 (linux_target_ops): Install arch_setup.
6505 * server.c (start_inferior): Call the_target->arch_setup.
6506 * target.h (struct target_ops) <arch_setup>: New field.
6507 (target_arch_setup): New marco.
6508 * lynx-low.c (lynx_target_ops): Update.
6509 * nto-low.c (nto_target_ops): Update.
6510 * spu-low.c (spu_target_ops): Update.
6511 * win32-low.c (win32_target_ops): Update.
6512
6513 2015-07-24 Yao Qi <yao.qi@linaro.org>
6514
6515 * linux-low.c (linux_add_process): Don't set
6516 proc->priv->new_inferior.
6517 (linux_create_inferior): Set proc->priv->new_inferior to 1.
6518 (linux_attach): Likewise.
6519
6520 2015-07-24 Yao Qi <yao.qi@linaro.org>
6521
6522 * server.c (start_inferior): Code refactor.
6523
6524 2015-07-24 Yao Qi <yao.qi@linaro.org>
6525
6526 * server.c (process_serial_event): Set general_thread.
6527
6528 2015-07-21 Yao Qi <yao.qi@linaro.org>
6529
6530 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
6531 aarch64_linux_get_debug_reg_capacity.
6532
6533 2015-07-17 Yao Qi <yao.qi@linaro.org>
6534
6535 * Makefile.in (aarch64-linux-hw-point.o): New rule.
6536 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
6537 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
6538 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
6539 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
6540 (AARCH64_HWP_ALIGNMENT): Likewise.
6541 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
6542 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
6543 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
6544 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
6545 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
6546 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
6547 (struct aarch64_debug_reg_state): Likewise.
6548 (struct arch_lwp_info): Likewise.
6549 (aarch64_align_watchpoint): Likewise.
6550 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
6551 (aarch64_watchpoint_length): Likewise.
6552 (aarch64_point_encode_ctrl_reg): Likewise
6553 (aarch64_point_is_aligned): Likewise.
6554 (aarch64_align_watchpoint): Likewise.
6555 (aarch64_linux_set_debug_regs):
6556 (aarch64_dr_state_insert_one_point): Likewise.
6557 (aarch64_dr_state_remove_one_point): Likewise.
6558 (aarch64_handle_breakpoint): Likewise.
6559 (aarch64_handle_aligned_watchpoint): Likewise.
6560 (aarch64_handle_unaligned_watchpoint): Likewise.
6561 (aarch64_handle_watchpoint): Likewise.
6562
6563 2015-07-17 Yao Qi <yao.qi@linaro.org>
6564
6565 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
6566 and don't aarch64_get_debug_reg_state. All callers update.
6567 (aarch64_handle_aligned_watchpoint): Likewise.
6568 (aarch64_handle_unaligned_watchpoint): Likewise.
6569 (aarch64_handle_watchpoint): Likewise.
6570 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
6571 (aarch64_remove_point): Likewise.
6572
6573 2015-07-17 Yao Qi <yao.qi@linaro.org>
6574
6575 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
6576 debug_printf.
6577 (aarch64_handle_unaligned_watchpoint): Likewise.
6578
6579 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6580
6581 Revert the previous 3 commits:
6582 Move gdb_regex* to common/
6583 Move linux_find_memory_regions_full & co.
6584 gdbserver build-id attribute generator
6585
6586 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6587 Jan Kratochvil <jan.kratochvil@redhat.com>
6588
6589 gdbserver build-id attribute generator.
6590 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
6591 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
6592 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
6593 (find_phdr): New.
6594 (get_dynamic): Use find_pdhr to traverse program headers.
6595 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
6596 (compare_mapping_entry_range, struct find_memory_region_callback_data)
6597 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
6598 (get_hex_build_id): New.
6599 (linux_qxfer_libraries_svr4): Add optional build-id attribute
6600 to reply XML document.
6601
6602 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6603 Jan Kratochvil <jan.kratochvil@redhat.com>
6604
6605 * target.c: Include target/target-utils.h and fcntl.h.
6606 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
6607 (target_fileio_read_stralloc): New functions.
6608
6609 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6610
6611 * Makefile.in (OBS): Add gdb_regex.o.
6612 (gdb_regex.o): New.
6613 * config.in: Rebuilt.
6614 * configure: Rebuilt.
6615
6616 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6617 Jan Kratochvil <jan.kratochvil@redhat.com>
6618
6619 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
6620 * Makefile.in (OBS): Add target-utils.o.
6621 (linux-maps.o, target-utils.o): New.
6622 * configure.srv (srv_linux_obj): Add linux-maps.o.
6623
6624 2015-07-15 Pierre Langlois <pierre.langlois@arm.com>
6625
6626 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
6627 function, return 1.
6628 (the_low_target): Install it.
6629
6630 2015-07-14 Pedro Alves <palves@redhat.com>
6631
6632 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
6633 Instead, ignore ECHILD, and throw an error for other errnos.
6634
6635 2015-07-10 Pedro Alves <palves@redhat.com>
6636
6637 * event-loop.c (struct callback_event) <data>: Change type to
6638 gdb_client_data instance instead of gdb_client_data pointer.
6639 (append_callback_event): Adjust.
6640
6641 2015-07-10 Pierre Langlois <pierre.langlois@arm.com>
6642
6643 * linux-aarch64-low.c: Add comments for each linux_target_ops
6644 method. Remove comments already covered in target_ops and
6645 linux_target_ops definitions.
6646 (the_low_target): Add comments for each unimplemented method.
6647
6648 2015-07-09 Yao Qi <yao.qi@linaro.org>
6649
6650 * linux-aarch64-low.c (aarch64_regmap): Remove.
6651 (aarch64_usrregs_info): Remove.
6652 (regs_info): Set field usrregs to NULL.
6653
6654 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6655
6656 * linux-low.c: Include "rsp-low.h"
6657 (linux_low_encode_pt_config, linux_low_encode_raw): New.
6658 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
6659 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
6660 (handle_btrace_enable_pt): New.
6661 (handle_btrace_general_set): Support "pt".
6662 (handle_btrace_conf_general_set): Support "pt:size".
6663
6664 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
6665
6666 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
6667 Z_PACKET_SW_BP.
6668
6669 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
6670
6671 * linux-aarch64-low.c: Remove comment about endianness.
6672 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
6673 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
6674 memcmp.
6675
6676 2015-06-24 Gary Benson <gbenson@redhat.com>
6677
6678 * linux-i386-ipa.c (stdint.h): Do not include.
6679 * lynx-i386-low.c (stdint.h): Likewise.
6680 * lynx-ppc-low.c (stdint.h): Likewise.
6681 * mem-break.c (stdint.h): Likewise.
6682 * thread-db.c (stdint.h): Likewise.
6683 * tracepoint.c (stdint.h): Likewise.
6684 * win32-low.c (stdint.h): Likewise.
6685
6686 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
6687
6688 * server.c (write_qxfer_response): Update call to
6689 remote_escape_output.
6690
6691 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
6692 Jan Kratochvil <jan.kratochvil@redhat.com>
6693
6694 Merge multiple hex conversions.
6695 * gdbreplay.c (tohex): Rename to 'fromhex'.
6696 (logchar): Use fromhex.
6697
6698 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
6699
6700 * server.c (handle_qxfer_libraries): Set `version' attribute for
6701 <library-list>.
6702
6703 2015-06-10 Gary Benson <gbenson@redhat.com>
6704
6705 * target.h (struct target_ops) <multifs_open>: New field.
6706 <multifs_unlink>: Likewise.
6707 <multifs_readlink>: Likewise.
6708 * linux-low.c (nat/linux-namespaces.h): New include.
6709 (linux_target_ops): Initialize the_target->multifs_open,
6710 the_target->multifs_unlink and the_target->multifs_readlink.
6711 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
6712 * hostio.c (hostio_fs_pid): New static variable.
6713 (hostio_handle_new_gdb_connection): New function.
6714 (handle_setfs): Likewise.
6715 (handle_open): Use the_target->multifs_open as appropriate.
6716 (handle_unlink): Use the_target->multifs_unlink as appropriate.
6717 (handle_readlink): Use the_target->multifs_readlink as
6718 appropriate.
6719 (handle_vFile): Handle vFile:setfs packets.
6720 * server.c (handle_query): Call hostio_handle_new_gdb_connection
6721 after target_handle_new_gdb_connection.
6722
6723 2015-06-10 Gary Benson <gbenson@redhat.com>
6724
6725 * configure.ac (AC_CHECK_FUNCS): Add setns.
6726 * config.in: Regenerate.
6727 * configure: Likewise.
6728 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
6729 (linux-namespaces.o): New rule.
6730 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
6731
6732 2015-06-09 Gary Benson <gbenson@redhat.com>
6733
6734 * hostio.c (handle_open): Process mode argument with
6735 fileio_to_host_mode.
6736
6737 2015-06-01 Yao Qi <yao.qi@linaro.org>
6738
6739 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
6740 * linux-x86-low.c: Likewise.
6741
6742 2015-05-28 Don Breazeal <donb@codesourcery.com>
6743
6744 * linux-low.c (handle_extended_wait): Initialize
6745 thread_info.last_resume_kind for new fork children.
6746
6747 2015-05-15 Pedro Alves <palves@redhat.com>
6748
6749 * target.h (target_handle_new_gdb_connection): Rewrite using if
6750 wrapped in do/while.
6751
6752 2015-05-14 Joel Brobecker <brobecker@adacore.com>
6753
6754 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
6755 * configure, config.in: Regenerate.
6756 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
6757 Declare typedef.
6758
6759 2015-05-12 Don Breazeal <donb@codesourcery.com>
6760
6761 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
6762 PTRACE_EVENT_VFORK_DONE.
6763 (linux_low_ptrace_options, extended_event_reported): Add vfork
6764 events.
6765 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
6766 and "vforkdone" for RSP 'T' Stop Reply Packet.
6767 * server.h (report_vfork_events): Declare
6768 global variable.
6769
6770 2015-05-12 Don Breazeal <donb@codesourcery.com>
6771
6772 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
6773 (the_low_target) <new_fork>: Initialize new member.
6774 * linux-arm-low.c (arm_new_fork): New function.
6775 (the_low_target) <new_fork>: Initialize new member.
6776 * linux-low.c (handle_extended_wait): Call new target function
6777 new_fork.
6778 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
6779 * linux-mips-low.c (mips_add_watchpoint): New function
6780 extracted from mips_insert_point.
6781 (the_low_target) <new_fork>: Initialize new member.
6782 (mips_linux_new_fork): New function.
6783 (mips_insert_point): Call mips_add_watchpoint.
6784 * linux-x86-low.c (x86_linux_new_fork): New function.
6785 (the_low_target) <new_fork>: Initialize new member.
6786
6787 2015-05-12 Don Breazeal <donb@codesourcery.com>
6788
6789 * linux-low.c (handle_extended_wait): Implement return value,
6790 rename argument 'event_child' to 'event_lwp', handle
6791 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
6792 (linux_low_ptrace_options): New function.
6793 (linux_low_filter_event): Call linux_low_ptrace_options,
6794 use different argument fo linux_enable_event_reporting,
6795 use return value from handle_extended_wait.
6796 (extended_event_reported): New function.
6797 (linux_wait_1): Call extended_event_reported and set
6798 status to report fork events.
6799 (linux_write_memory): Add pid to debug message.
6800 (reset_lwp_ptrace_options_callback): New function.
6801 (linux_handle_new_gdb_connection): New function.
6802 (linux_target_ops): Initialize new structure member.
6803 * linux-low.h (struct lwp_info) <waitstatus>: New member.
6804 * lynx-low.c: Initialize new structure member.
6805 * remote-utils.c (prepare_resume_reply): Implement stop reason
6806 "fork" for "T" stop message.
6807 * server.c (handle_query): Call handle_new_gdb_connection.
6808 * server.h (report_fork_events): Declare global flag.
6809 * target.h (struct target_ops) <handle_new_gdb_connection>:
6810 New member.
6811 (target_handle_new_gdb_connection): New macro.
6812 * win32-low.c: Initialize new structure member.
6813
6814 2015-05-12 Don Breazeal <donb@codesourcery.com>
6815
6816 * mem-break.c (APPEND_TO_LIST): Define macro.
6817 (clone_agent_expr): New function.
6818 (clone_one_breakpoint): New function.
6819 (clone_all_breakpoints): New function.
6820 * mem-break.h: Declare new functions.
6821
6822 2015-05-12 Don Breazeal <donb@codesourcery.com>
6823
6824 * linux-low.c (linux_supports_fork_events): New function.
6825 (linux_supports_vfork_events): New function.
6826 (linux_target_ops): Initialize new structure members.
6827 (initialize_low): Call linux_check_ptrace_features.
6828 * lynx-low.c (lynx_target_ops): Initialize new structure
6829 members.
6830 * server.c (report_fork_events, report_vfork_events):
6831 New global flags.
6832 (handle_query): Add new features to qSupported packet and
6833 response.
6834 (captured_main): Initialize new global variables.
6835 * target.h (struct target_ops) <supports_fork_events>:
6836 New member.
6837 <supports_vfork_events>: New member.
6838 (target_supports_fork_events): New macro.
6839 (target_supports_vfork_events): New macro.
6840 * win32-low.c (win32_target_ops): Initialize new structure
6841 members.
6842
6843 2015-05-12 Gary Benson <gbenson@redhat.com>
6844
6845 * server.c (handle_qxfer_exec_file): Use current process
6846 if annex is empty.
6847
6848 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
6849
6850 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
6851 Remove HAVE_PTRACE_GETREGS conditionals.
6852 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
6853 instead of PTRACE_GETREGS and PTRACE_SETREGS.
6854
6855 2015-05-08 Yao Qi <yao.qi@linaro.org>
6856
6857 * linux-low.c (linux_supports_conditional_breakpoints): New
6858 function.
6859 (linux_target_ops): Install new target method.
6860 * lynx-low.c (lynx_target_ops): Install NULL hook for
6861 supports_conditional_breakpoints.
6862 * nto-low.c (nto_target_ops): Likewise.
6863 * spu-low.c (spu_target_ops): Likewise.
6864 * win32-low.c (win32_target_ops): Likewise.
6865 * server.c (handle_query): Check
6866 target_supports_conditional_breakpoints.
6867 * target.h (struct target_ops) <supports_conditional_breakpoints>:
6868 New field.
6869 (target_supports_conditional_breakpoints): New macro.
6870
6871 2015-05-06 Pedro Alves <palves@redhat.com>
6872
6873 PR server/18081
6874 * server.c (start_inferior): If the process exits, mourn it.
6875
6876 2015-04-21 Gary Benson <gbenson@redhat.com>
6877
6878 * hostio.c (fileio_open_flags_to_host): Factored out to
6879 fileio_to_host_openflags in common/fileio.c. Single use
6880 updated.
6881
6882 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
6883
6884 * linux-xtensa-low.c (xtensa_fill_gregset)
6885 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
6886 XCHAL_HAVE_LOOP.
6887
6888 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
6889
6890 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
6891 (regs_info): Replace usrregs pointer with NULL.
6892
6893 2015-04-17 Gary Benson <gbenson@redhat.com>
6894
6895 * target.h (struct target_ops) <pid_to_exec_file>: New field.
6896 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
6897 * server.c (handle_qxfer_exec_file): New function.
6898 (qxfer_packets): Add exec-file entry.
6899 (handle_query): Report qXfer:exec-file:read as supported packet.
6900
6901 2015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
6902
6903 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
6904
6905 2015-04-09 Gary Benson <gbenson@redhat.com>
6906
6907 * hostio-errno.c (errno_to_fileio_error): Remove function.
6908 Update caller to use remote_fileio_to_fio_error.
6909
6910 2015-04-09 Yao Qi <yao.qi@linaro.org>
6911
6912 * linux-low.c (linux_insert_point): Call
6913 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
6914 (linux_remove_point): Call remove_memory_breakpoint if type is
6915 raw_bkpt_type_sw.
6916 * linux-x86-low.c (x86_insert_point): Don't call
6917 insert_memory_breakpoint.
6918 (x86_remove_point): Don't call remove_memory_breakpoint.
6919
6920 2015-04-01 Pedro Alves <palves@redhat.com>
6921 Cleber Rosa <crosa@redhat.com>
6922
6923 * server.c (gdbserver_usage): Reorganize and extend the usage
6924 message.
6925
6926 2015-03-24 Pedro Alves <palves@redhat.com>
6927
6928 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
6929 output. Also dump TRAP_TRACE.
6930 (linux_low_filter_event): In debug output, distinguish a
6931 resume_stop SIGSTOP from a delayed SIGSTOP.
6932
6933 2015-03-24 Gary Benson <gbenson@redhat.com>
6934
6935 * linux-x86-low.c (x86_linux_new_thread): Moved to
6936 nat/x86-linux.c.
6937 (x86_linux_prepare_to_resume): Likewise.
6938
6939 2015-03-24 Gary Benson <gbenson@redhat.com>
6940
6941 * Makefile.in (x86-linux-dregs.o): New rule.
6942 * configure.srv: Add x86-linux-dregs.o to relevant targets.
6943 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
6944 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
6945 (x86_linux_dr_get): Likewise.
6946 (x86_linux_dr_set): Likewise.
6947 (update_debug_registers_callback): Likewise.
6948 (x86_linux_dr_set_addr): Likewise.
6949 (x86_linux_dr_get_addr): Likewise.
6950 (x86_linux_dr_set_control): Likewise.
6951 (x86_linux_dr_get_control): Likewise.
6952 (x86_linux_dr_get_status): Likewise.
6953 (x86_linux_update_debug_registers): Likewise.
6954
6955 2015-03-24 Gary Benson <gbenson@redhat.com>
6956
6957 * linux-x86-low.c (x86_linux_update_debug_registers):
6958 New function, factored out from...
6959 (x86_linux_prepare_to_resume): ...this.
6960
6961 2015-03-24 Gary Benson <gbenson@redhat.com>
6962
6963 * linux-x86-low.c (x86_linux_dr_get): Update comments.
6964 (x86_linux_dr_set): Likewise.
6965 (update_debug_registers_callback): Likewise.
6966 (x86_linux_dr_set_addr): Likewise.
6967 (x86_linux_dr_get_addr): Likewise.
6968 (x86_linux_dr_set_control): Likewise.
6969 (x86_linux_dr_get_control): Likewise.
6970 (x86_linux_dr_get_status): Likewise.
6971 (x86_linux_prepare_to_resume): Likewise.
6972
6973 2015-03-24 Gary Benson <gbenson@redhat.com>
6974
6975 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
6976 Use perror_with_name. Pass string through gettext.
6977 (x86_linux_dr_set): Likewise.
6978
6979 2015-03-24 Gary Benson <gbenson@redhat.com>
6980
6981 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
6982 (x86_linux_dr_set_addr): ...this.
6983 (x86_dr_low_get_addr): Rename to...
6984 (x86_linux_dr_get_addr): ...this.
6985 (x86_dr_low_set_control): Rename to...
6986 (x86_linux_dr_set_control): ...this.
6987 (x86_dr_low_get_control): Rename to...
6988 (x86_linux_dr_get_control): ...this.
6989 (x86_dr_low_get_status): Rename to...
6990 (x86_linux_dr_get_status): ...this.
6991 (x86_dr_low): Update with new function names.
6992
6993 2015-03-24 Gary Benson <gbenson@redhat.com>
6994
6995 * Makefile.in (x86-linux.o): New rule.
6996 * configure.srv: Add x86-linux.o to relevant targets.
6997 * linux-low.c (lwp_set_arch_private_info): New function.
6998 (lwp_arch_private_info): Likewise.
6999 * linux-x86-low.c: Include nat/x86-linux.h.
7000 (arch_lwp_info): Removed structure.
7001 (update_debug_registers_callback):
7002 Use lwp_set_debug_registers_changed.
7003 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
7004 and lwp_set_debug_registers_changed.
7005 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
7006
7007 2015-03-24 Gary Benson <gbenson@redhat.com>
7008
7009 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
7010 * linux-arm-low.c (arm_new_thread): Likewise.
7011 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
7012 * linux-mips-low.c (mips_linux_new_thread): Likewise.
7013 * linux-x86-low.c (x86_linux_new_thread): Likewise.
7014 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
7015
7016 2015-03-24 Gary Benson <gbenson@redhat.com>
7017
7018 * linux-low.c (ptid_of_lwp): New function.
7019 (lwp_is_stopped): Likewise.
7020 (lwp_stop_reason): Likewise.
7021 * linux-x86-low.c (update_debug_registers_callback):
7022 Use lwp_is_stopped.
7023 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
7024 lwp_stop_reason.
7025
7026 2015-03-24 Gary Benson <gbenson@redhat.com>
7027
7028 * linux-low.h (linux_stop_lwp): Remove declaration.
7029
7030 2015-03-24 Gary Benson <gbenson@redhat.com>
7031
7032 * linux-low.h: Include nat/linux-nat.h.
7033 * linux-low.c (iterate_over_lwps_args): New structure.
7034 (iterate_over_lwps_filter): New function.
7035 (iterate_over_lwps): Likewise.
7036 * linux-x86-low.c (update_debug_registers_callback):
7037 Update signature to what iterate_over_lwps expects.
7038 Remove PID check that iterate_over_lwps now performs.
7039 (x86_dr_low_set_addr): Use iterate_over_lwps.
7040 (x86_dr_low_set_control): Likewise.
7041
7042 2015-03-24 Gary Benson <gbenson@redhat.com>
7043
7044 * linux-x86-low.c (x86_debug_reg_state): New function.
7045 (x86_linux_prepare_to_resume): Use the above.
7046
7047 2015-03-24 Gary Benson <gbenson@redhat.com>
7048
7049 * linux-low.c (current_lwp_ptid): New function.
7050 * linux-x86-low.c: Include nat/linux-nat.h.
7051 (x86_dr_low_get_addr): Use current_lwp_ptid.
7052 (x86_dr_low_get_control): Likewise.
7053 (x86_dr_low_get_status): Likewise.
7054
7055 2015-03-20 Pedro Alves <palves@redhat.com>
7056
7057 * tracepoint.c (cmd_qtstatus): Make "str" const.
7058
7059 2015-03-20 Pedro Alves <palves@redhat.com>
7060
7061 * server.c (handle_general_set): Make "req_str" const.
7062
7063 2015-03-19 Pedro Alves <palves@redhat.com>
7064
7065 * linux-low.c (linux_resume_one_lwp): Rename to ...
7066 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
7067 instead call perror_with_name.
7068 (check_ptrace_stopped_lwp_gone): New function.
7069 (linux_resume_one_lwp): Reimplement as wrapper around
7070 linux_resume_one_lwp_throw that swallows errors if the LWP is
7071 gone.
7072
7073 2015-03-19 Pedro Alves <palves@redhat.com>
7074
7075 * linux-low.c (count_events_callback, select_event_lwp_callback):
7076 No longer check whether the thread has resume_stop as last resume
7077 kind.
7078
7079 2015-03-19 Pedro Alves <palves@redhat.com>
7080
7081 * linux-low.c (count_events_callback, select_event_lwp_callback):
7082 Use the lwp's status_pending_p field, not the thread's.
7083
7084 2015-03-19 Pedro Alves <palves@redhat.com>
7085
7086 * linux-low.c (select_event_lwp_callback): Update comments to
7087 no longer mention SIGTRAP.
7088
7089 2015-03-18 Gary Benson <gbenson@redhat.com>
7090
7091 * server.c (handle_query): Do not report vFile:fstat as supported.
7092
7093 2015-03-11 Gary Benson <gbenson@redhat.com>
7094
7095 * hostio.c (sys/types.h): New include.
7096 (sys/stat.h): Likewise.
7097 (common-remote-fileio.h): Likewise.
7098 (handle_fstat): New function.
7099 (handle_vFile): Handle vFile:fstat packets.
7100
7101 2015-03-11 Gary Benson <gbenson@redhat.com>
7102
7103 * configure.ac (AC_CHECK_MEMBERS): Add checks for
7104 struct stat.st_blocks and struct stat.st_blksize.
7105 * configure: Regenerate.
7106 * config.in: Likewise.
7107 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
7108 (OBS): Add common-remote-fileio.o.
7109 (common-remote-fileio.o): New rule.
7110
7111 2015-03-09 Pedro Alves <palves@redhat.com>
7112
7113 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
7114 'struct sockaddr' pointer in 'accept' call.
7115
7116 2015-03-09 Pedro Alves <palves@redhat.com>
7117
7118 Revert:
7119 2015-03-07 Pedro Alves <palves@redhat.com>
7120 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
7121 or <winsock2.h> here. Instead include "gdb_socket.h".
7122 (remote_open): Use union gdb_sockaddr_u.
7123 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
7124 or <winsock2.h> here. Instead include "gdb_socket.h".
7125 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
7126 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
7127 or <sys/un.h>.
7128 (init_named_socket, gdb_agent_helper_thread): Use union
7129 gdb_sockaddr_u.
7130
7131 2015-03-07 Pedro Alves <palves@redhat.com>
7132
7133 * configure.ac (build_warnings): Move
7134 -Wdeclaration-after-statement to the C-specific set.
7135 * configure: Regenerate.
7136
7137 2015-03-07 Pedro Alves <palves@redhat.com>
7138
7139 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
7140 or <winsock2.h> here. Instead include "gdb_socket.h".
7141 (remote_open): Use union gdb_sockaddr_u.
7142 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
7143 or <winsock2.h> here. Instead include "gdb_socket.h".
7144 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
7145 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
7146 or <sys/un.h>.
7147 (init_named_socket, gdb_agent_helper_thread): Use union
7148 gdb_sockaddr_u.
7149
7150 2015-03-07 Pedro Alves <palves@redhat.com>
7151
7152 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
7153 instead.
7154
7155 2015-03-06 Yao Qi <yao.qi@linaro.org>
7156
7157 * linux-aarch64-low.c (aarch64_insert_point): Use
7158 show_debug_regs as a boolean.
7159 (aarch64_remove_point): Likewise.
7160
7161 2015-03-05 Pedro Alves <palves@redhat.com>
7162
7163 * lynx-low.c (lynx_target_ops): Install NULL hooks for
7164 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
7165 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
7166 * nto-low.c (nto_target_ops): Likewise.
7167 * spu-low.c (spu_target_ops): Likewise.
7168 * win32-low.c (win32_target_ops): Likewise.
7169
7170 2015-03-04 Pedro Alves <palves@redhat.com>
7171
7172 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
7173 Decide whether a breakpoint triggered based on the SIGTRAP's
7174 siginfo.si_code.
7175 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
7176 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
7177 (linux_low_filter_event): Check for breakpoints before checking
7178 watchpoints.
7179 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
7180 siginfo.si_code.
7181 (linux_stopped_by_sw_breakpoint)
7182 (linux_supports_stopped_by_sw_breakpoint)
7183 (linux_stopped_by_hw_breakpoint)
7184 (linux_supports_stopped_by_hw_breakpoint): New functions.
7185 (linux_target_ops): Install new target methods.
7186
7187 2015-03-04 Pedro Alves <palves@redhat.com>
7188
7189 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
7190 * server.c (swbreak_feature, hwbreak_feature): New globals.
7191 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
7192 (captured_main): Clear swbreak_feature and hwbreak_feature.
7193 * server.h (swbreak_feature, hwbreak_feature): Declare.
7194 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
7195 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
7196 supports_stopped_by_hw_breakpoint>: New fields.
7197 (target_supports_stopped_by_sw_breakpoint)
7198 (target_stopped_by_sw_breakpoint)
7199 (target_supports_stopped_by_hw_breakpoint)
7200 (target_stopped_by_hw_breakpoint): Declare.
7201
7202 2015-03-04 Pedro Alves <palves@redhat.com>
7203
7204 enum lwp_stop_reason -> enum target_stop_reason
7205 * linux-low.c (check_stopped_by_breakpoint): Adjust.
7206 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
7207 (linux_wait_1, stuck_in_jump_pad_callback)
7208 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
7209 (linux_stopped_by_watchpoint):
7210 * linux-low.h (enum lwp_stop_reason): Delete.
7211 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
7212 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
7213
7214 2015-03-04 Yao Qi <yao.qi@linaro.org>
7215
7216 * Makefile.in (SFILES): Add linux-aarch64-low.c.
7217
7218 2015-03-03 Gary Benson <gbenson@redhat.com>
7219
7220 * hostio.c (handle_vFile): Fix prefix lengths.
7221
7222 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
7223
7224 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
7225 ptr_bits.
7226
7227 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
7228
7229 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
7230 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
7231 (clean): Add "rm -f" for above C files.
7232 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
7233 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
7234 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
7235 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
7236 * linux-s390-low.c (HWCAP_S390_VX): New macro.
7237 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
7238 (init_registers_s390x_vx_linux64)
7239 (init_registers_s390x_tevx_linux64)
7240 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
7241 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
7242 declarations.
7243 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
7244 (s390_store_vxrs_high): New functions.
7245 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
7246 NT_S390_VXRS_HIGH.
7247 (s390_arch_setup): Add logic for selecting one of the new target
7248 descriptions. Activate the new vector regsets if applicable.
7249 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
7250 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
7251 and init_registers_s390x_tevx_linux64.
7252
7253 2015-03-01 Pedro Alves <palves@redhat.com>
7254
7255 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
7256 parameter.
7257
7258 2015-02-27 Pedro Alves <palves@redhat.com>
7259
7260 * linux-x86-low.c (u_debugreg_offset): New function.
7261 (x86_linux_dr_get, x86_linux_dr_set): Use it.
7262
7263 2015-02-27 Pedro Alves <palves@redhat.com>
7264
7265 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
7266 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
7267 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
7268 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
7269 (ps_lsetfpregs, ps_getpid)
7270 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
7271 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
7272 (ps_lsetxregs, ps_plog): Declare.
7273
7274 2015-02-27 Pedro Alves <palves@redhat.com>
7275
7276 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
7277 IP_AGENT_EXPORT_FUNC.
7278 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
7279 IP_AGENT_EXPORT_FUNC.
7280 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
7281 (IP_AGENT_EXPORT): Delete.
7282 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
7283 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
7284 (gdb_trampoline_buffer_error, collecting, gdb_collect)
7285 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
7286 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
7287 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
7288 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
7289 (traceframe_read_count, traceframe_write_count)
7290 (traceframes_created, trace_state_variables, get_raw_reg)
7291 (get_trace_state_variable_value, set_trace_state_variable_value)
7292 (ust_loaded, helper_thread_id, cmd_buf): Use
7293 IPA_SYM_EXPORTED_NAME.
7294 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
7295 (tracepoints) Use IP_AGENT_EXPORT_VAR.
7296 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
7297 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
7298 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
7299 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
7300 EXTERN_C_PUSH/EXTERN_C_POP.
7301 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
7302 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
7303 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
7304 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
7305 (traceframe_write_count, traceframe_read_count)
7306 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
7307 (about_to_request_buffer_space, get_trace_state_variable_value)
7308 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
7309 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
7310 EXTERN_C_PUSH/EXTERN_C_POP.
7311 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
7312 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
7313 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
7314 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
7315 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
7316 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
7317 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
7318 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
7319 Define.
7320 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
7321 (IP_AGENT_EXPORT_VAR_DECL): Define.
7322 (tracing): Declare.
7323 (gdb_agent_get_raw_reg): Declare.
7324
7325 2015-02-27 Tom Tromey <tromey@redhat.com>
7326 Pedro Alves <palves@redhat.com>
7327
7328 Rename symbols whose names are reserved C++ keywords throughout.
7329
7330 2015-02-27 Pedro Alves <palves@redhat.com>
7331
7332 * Makefile.in (COMPILER): New, get it from autoconf.
7333 (CXX): Get from autoconf instead.
7334 (COMPILE.pre): Use COMPILER.
7335 (CC-LD): Rename to ...
7336 (CC_LD): ... this. Use COMPILER.
7337 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
7338 (CXX_FOR_TARGET): Default to g++ instead of gcc.
7339 * acinclude.m4: Include build-with-cxx.m4.
7340 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
7341 Disable -Werror by default if building in C++ mode.
7342 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
7343 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
7344 the C++ compiler. Save/restore CXXFLAGS too.
7345 * configure: Regenerate.
7346
7347 2015-02-27 Pedro Alves <palves@redhat.com>
7348
7349 * acinclude.m4: Include libiberty.m4.
7350 * configure.ac: Call libiberty_INIT.
7351 * config.in, configure: Regenerate.
7352
7353 2015-02-26 Pedro Alves <palves@redhat.com>
7354
7355 * linux-low.c (linux_wait_1): When incrementing the PC past a
7356 program breakpoint always use the_low_target.breakpoint_len as
7357 increment, rather than the maximum between that and
7358 the_low_target.decr_pc_after_break.
7359
7360 2015-02-23 Pedro Alves <palves@redhat.com>
7361
7362 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
7363 thread was doing a step-over; always adjust the PC if
7364 we stepped over a permanent breakpoint.
7365 (linux_wait_1): If we stepped over breakpoint that was on top of a
7366 permanent breakpoint, manually advance the PC past it.
7367
7368 2015-02-23 Pedro Alves <palves@redhat.com>
7369
7370 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
7371 modes.
7372 (x86_fill_gregset, x86_store_gregset): Use it when handling
7373 $orig_eax.
7374
7375 2015-02-20 Pedro Alves <palves@redhat.com>
7376
7377 * thread-db.c: Include "nat/linux-procfs.h".
7378 (thread_db_init): Skip listing new threads if the kernel supports
7379 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
7380
7381 2015-02-20 Pedro Alves <palves@redhat.com>
7382
7383 * linux-low.c (status_pending_p_callback): Use ptid_match.
7384
7385 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
7386
7387 PR breakpoints/16812
7388 * linux-low.c (wstatus_maybe_breakpoint): Remove.
7389 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
7390 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
7391
7392 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
7393
7394 PR breakpoints/15956
7395 * tracepoint.c (cmd_qtinit): Add check for current_thread.
7396
7397 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
7398
7399 * linux-low.c (linux_low_btrace_conf): Print size.
7400 * server.c (handle_btrace_conf_general_set): New.
7401 (hanle_general_set): Call handle_btrace_conf_general_set.
7402 (handle_query): Report Qbtrace-conf:bts:size as supported.
7403
7404 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
7405
7406 * linux-low.c (linux_low_enable_btrace): Update parameters.
7407 (linux_low_btrace_conf): New.
7408 (linux_target_ops)<to_btrace_conf>: Initialize.
7409 * server.c (current_btrace_conf): New.
7410 (handle_btrace_enable): Rename to ...
7411 (handle_btrace_enable_bts): ... this. Pass &current_btrace_conf
7412 to target_enable_btrace. Update comment. Update users.
7413 (handle_qxfer_btrace_conf): New.
7414 (qxfer_packets): Add btrace-conf entry.
7415 (handle_query): Report qXfer:btrace-conf:read as supported packet.
7416 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
7417 (target_ops)<read_btrace_conf>: New.
7418 (target_enable_btrace): Update parameters.
7419 (target_read_btrace_conf): New.
7420
7421 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
7422
7423 * server.c (handle_btrace_general_set): Remove call to
7424 target_supports_btrace.
7425 (supported_btrace_packets): New.
7426 (handle_query): Call supported_btrace_packets.
7427 * target.h: include btrace-common.h.
7428 (btrace_target_info): Removed.
7429 (supports_btrace, target_supports_btrace): Update parameters.
7430
7431 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
7432
7433 * Makefile.in (SFILES): Add common/btrace-common.c.
7434 (OBS): Add common/btrace-common.o.
7435 (btrace-common.o): Add build rules.
7436 * linux-low: Include btrace-common.h.
7437 (linux_low_read_btrace): Use struct btrace_data. Call
7438 btrace_data_init and btrace_data_fini.
7439
7440 2015-02-06 Pedro Alves <palves@redhat.com>
7441
7442 * thread-db.c (find_new_threads_callback): Add debug output.
7443
7444 2015-02-04 Pedro Alves <palves@redhat.com>
7445
7446 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
7447 (resume_stopped_resumed_lwps): New function.
7448 (linux_wait_for_event_filtered): Use it.
7449
7450 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
7451
7452 * Makefile.in (SFILES): Add linux-personality.c.
7453 (linux-personality.o): New rule.
7454 * configure.srv (srv_linux_obj): Add linux-personality.o to the
7455 list of objects to be built.
7456 * linux-low.c: Include nat/linux-personality.h.
7457 (linux_create_inferior): Remove code to disable address space
7458 randomization (moved to ../nat/linux-personality.c). Create
7459 cleanup to disable address space randomization.
7460
7461 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
7462
7463 * Makefile.in (posix-strerror.o): New rule.
7464 (mingw-strerror.o): Likewise.
7465 * configure: Regenerated.
7466 * configure.ac: Source file ../common/common.host. Initialize new
7467 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
7468
7469 2015-01-14 Yao Qi <yao@codesourcery.com>
7470
7471 * Makefile.in (SFILES): Add nat/ppc-linux.c.
7472 (ppc-linux.o): New rule.
7473 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
7474 * configure.ac: AC_CHECK_FUNCS(getauxval).
7475 * config.in: Re-generated.
7476 * configure: Re-generated.
7477 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
7478 ppc64_64bit_inferior_p
7479
7480 2015-01-14 Yao Qi <yao@codesourcery.com>
7481
7482 * linux-ppc-low.c: Include "nat/ppc-linux.h".
7483 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
7484 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
7485 (PT_ORIG_R3, PT_TRAP): Likewise.
7486 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
7487 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
7488 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
7489
7490 2015-01-10 Joel Brobecker <brobecker@adacore.com>
7491
7492 * i387-fp.c (i387_cache_to_xsave): In look over
7493 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
7494 zmmh_low_space field by use of zmmh_high_space.
7495
7496 2015-01-09 Pedro Alves <palves@redhat.com>
7497
7498 * linux-low.c (step_over_bkpt): Move higher up in the file.
7499 (handle_extended_wait): Don't store the stop_pc here.
7500 (get_stop_pc): Adjust comments and rename to ...
7501 (check_stopped_by_breakpoint): ... this. Record whether the LWP
7502 stopped for a software breakpoint or hardware breakpoint.
7503 (thread_still_has_status_pending_p): New function.
7504 (status_pending_p_callback): Use
7505 thread_still_has_status_pending_p. If the event is no longer
7506 interesting, resume the LWP.
7507 (handle_tracepoints): Add assert.
7508 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
7509 (wstatus_maybe_breakpoint): New function.
7510 (cancel_breakpoint): Delete function.
7511 (check_stopped_by_watchpoint): New function, factored out from
7512 linux_low_filter_event.
7513 (lp_status_maybe_breakpoint): Delete function.
7514 (linux_low_filter_event): Remove filter_ptid argument.
7515 Leave thread group exits pending here. Store the LWP's stop PC.
7516 Always leave events pending.
7517 (linux_wait_for_event_filtered): Pull all events out of the
7518 kernel, and leave them all pending.
7519 (count_events_callback, select_event_lwp_callback): Consider all
7520 events.
7521 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
7522 (select_event_lwp): Only give preference to the stepping LWP in
7523 all-stop mode. Adjust comments.
7524 (ignore_event): New function.
7525 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
7526 references to cancel_breakpoints. Adjust to renames. Also give
7527 equal priority to all LWPs that have had events in non-stop mode.
7528 If reporting a software breakpoint event, unadjust the LWP's PC.
7529 (linux_wait): If linux_wait_1 returned an ignored event, retry.
7530 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
7531 Adjust.
7532 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
7533 (resume_status_pending_p): Use thread_still_has_status_pending_p.
7534 (linux_stopped_by_watchpoint): Adjust.
7535 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
7536 * linux-low.h (enum lwp_stop_reason): New.
7537 (struct lwp_info) <stop_pc>: Adjust comment.
7538 <stopped_by_watchpoint>: Delete field.
7539 <stop_reason>: New field.
7540 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
7541 * mem-break.c (software_breakpoint_inserted_here)
7542 (hardware_breakpoint_inserted_here): New function.
7543 * mem-break.h (software_breakpoint_inserted_here)
7544 (hardware_breakpoint_inserted_here): Declare.
7545 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
7546 (cancel_breakpoints): Delete.
7547 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
7548 (upload_fast_traceframes): Remove references to
7549 cancel_breakpoints.
7550
7551 2015-01-09 Pedro Alves <palves@redhat.com>
7552
7553 * thread-db.c (find_new_threads_callback): Ignore thread if the
7554 kernel thread ID is -1.
7555
7556 2015-01-09 Pedro Alves <palves@redhat.com>
7557
7558 * linux-low.c (linux_attach_fail_reason_string): Move to
7559 nat/linux-ptrace.c, and rename.
7560 (linux_attach_lwp): Update comment.
7561 (attach_proc_task_lwp_callback): New function.
7562 (linux_attach): Adjust to rename and use
7563 linux_proc_attach_tgid_threads.
7564 (linux_attach_fail_reason_string): Delete declaration.
7565
7566 2015-01-01 Joel Brobecker <brobecker@adacore.com>
7567
7568 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
7569 * server.c (gdbserver_version): Likewise.
7570
7571 2014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
7572
7573 * remote-utils.c: Include ctype.h.
7574 (input_interrupt): Explicitly handle the case when the char
7575 received is the NUL byte. Improve the printing of non-ASCII
7576 characters.
7577
7578 2014-12-16 Joel Brobecker <brobecker@adacore.com>
7579
7580 * linux-low.c (linux_low_filter_event): Update call to
7581 linux_enable_event_reporting following the addition of
7582 a new parameter to that function.
7583
7584 2014-12-16 Catalin Udma <catalin.udma@freescale.com>
7585
7586 PR server/17457
7587 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
7588 (AARCH64_FPCR_REGNO): Likewise.
7589 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
7590 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
7591 (aarch64_store_fpregset): Likewise.
7592
7593 2014-12-15 Joel Brobecker <brobecker@adacore.com>
7594
7595 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
7596 Remove FIXME comment about assumption about N.
7597
7598 2014-12-13 Joel Brobecker <brobecker@adacore.com>
7599
7600 * configure.ac: If large-file support is disabled in GDBserver,
7601 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
7602 * configure: Regenerate.
7603
7604 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
7605
7606 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
7607 warning upon ENODATA from ptrace.
7608 * linux-s390-low.c (s390_store_tdb): New.
7609 (s390_regsets): Add regset for NT_S390_TDB.
7610
7611 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
7612
7613 * linux-low.c (regsets_store_inferior_registers): Skip regsets
7614 without a fill_function.
7615 * linux-s390-low.c (s390_fill_last_break): Remove.
7616 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
7617 (s390_arch_setup): Use regset's size instead of fill_function for
7618 loop end condition.
7619
7620 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
7621
7622 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
7623 the regset's store function when ptrace returned an error.
7624 * regcache.c (get_thread_regcache): Invalidate register cache
7625 before fetching inferior's registers.
7626
7627 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
7628
7629 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
7630 while-loop as for-loop.
7631 (regsets_store_inferior_registers): Likewise.
7632
7633 2014-11-28 Yao Qi <yao@codesourcery.com>
7634
7635 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
7636 * config.in, configure: Re-generate.
7637 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
7638 is defined.
7639
7640 2014-11-21 Yao Qi <yao@codesourcery.com>
7641
7642 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
7643 (AC_CHECK_HEADERS): Remove malloc.h.
7644 * configure: Re-generated.
7645 * config.in: Re-generated.
7646 * server.h: Don't include alloca.h and malloc.h.
7647 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
7648 Don't include malloc.h.
7649
7650 2014-11-17 Joel Brobecker <brobecker@adacore.com>
7651
7652 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
7653 corresponding ERRNO check in same block.
7654
7655 2014-11-12 Pedro Alves <palves@redhat.com>
7656
7657 * server.c (cont_thread): Update comment.
7658 (start_inferior, attach_inferior): No longer clear cont_thread.
7659 (handle_v_cont): No longer set cont_thread.
7660 (captured_main): Clear cont_thread each time a GDB connects.
7661
7662 2014-11-12 Pedro Alves <palves@redhat.com>
7663
7664 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
7665 thread, and don't resume all threads if the Hc thread has exited.
7666
7667 2014-11-12 Pedro Alves <palves@redhat.com>
7668
7669 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
7670 the process group instead of to a specific LWP.
7671
7672 2014-10-15 Pedro Alves <palves@redhat.com>
7673
7674 PR server/17487
7675 * win32-arm-low.c (arm_set_thread_context): Remove current_event
7676 parameter.
7677 (arm_set_thread_context): Delete.
7678 (the_low_target): Adjust.
7679 * win32-i386-low.c (debug_registers_changed)
7680 (debug_registers_used): Delete.
7681 (update_debug_registers_callback): New function.
7682 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
7683 needing to update their debug registers.
7684 (win32_get_current_dr): New function.
7685 (x86_dr_low_get_addr, x86_dr_low_get_control)
7686 (x86_dr_low_get_status): Fetch the debug register from the thread
7687 record's context.
7688 (i386_initial_stuff): Adjust.
7689 (i386_get_thread_context): Remove current_event parameter. Don't
7690 clear debug_registers_changed nor copy DR values to
7691 debug_reg_state.
7692 (i386_set_thread_context): Delete.
7693 (i386_prepare_to_resume): New function.
7694 (i386_thread_added): Mark the thread as needing to update irs
7695 debug registers.
7696 (the_low_target): Remove i386_set_thread_context and install
7697 i386_prepare_to_resume.
7698 * win32-low.c (win32_get_thread_context): Adjust.
7699 (win32_set_thread_context): Use SetThreadContext
7700 directly.
7701 (win32_prepare_to_resume): New function.
7702 (win32_require_context): New function, factored out from ...
7703 (thread_rec): ... this.
7704 (continue_one_thread): Call win32_prepare_to_resume on each thread
7705 we're about to continue.
7706 (win32_resume): Call win32_prepare_to_resume on the event thread.
7707 * win32-low.h (struct win32_thread_info)
7708 <debug_registers_changed>: New field.
7709 (struct win32_target_ops): Change prototype of set_thread_context,
7710 delete set_thread_context and add prepare_to_resume.
7711 (win32_require_context): New declaration.
7712
7713 2014-10-08 Gary Benson <gbenson@redhat.com>
7714
7715 * server.h: Do not include common-exceptions.h.
7716
7717 2014-10-08 Gary Benson <gbenson@redhat.com>
7718
7719 * server.h: Do not include cleanups.h.
7720
7721 2014-09-30 James Hogan <james.hogan@imgtec.com>
7722
7723 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
7724 mips64-dsp-linux.c.
7725
7726 2014-09-23 Yao Qi <yao@codesourcery.com>
7727
7728 * linux-low.c (lp_status_maybe_breakpoint): New function.
7729 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
7730 (count_events_callback): Likewise.
7731 (select_event_lwp_callback): Likewise.
7732 (cancel_breakpoints_callback): Likewise.
7733
7734 2014-09-19 Don Breazeal <donb@codesourcery.com>
7735
7736 * linux-low.c (handle_extended_wait): Call
7737 linux_ptrace_get_extended_event.
7738 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
7739 linux_is_extended_waitstatus.
7740
7741 2014-09-16 Joel Brobecker <brobecker@adacore.com>
7742
7743 * Makefile.in (CPPFLAGS): Define.
7744 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
7745 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
7746
7747 2014-09-16 Gary Benson <gbenson@redhat.com>
7748
7749 * inferiors.h (current_inferior): Renamed as...
7750 (current_thread): New variable. All uses updated.
7751 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
7752 (maybe_move_out_of_jump_pad): Likewise.
7753 (cancel_breakpoint): Likewise.
7754 (linux_low_filter_event): Likewise.
7755 (wait_for_sigstop): Likewise.
7756 (linux_resume_one_lwp): Likewise.
7757 (need_step_over_p): Likewise.
7758 (start_step_over): Likewise.
7759 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
7760 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
7761 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
7762 and save_inferior as saved_thread.
7763 * regcache.c (get_thread_regcache): Renamed saved_inferior as
7764 saved_thread.
7765 (regcache_invalidate_thread): Likewise.
7766 * remote-utils.c (prepare_resume_reply): Likewise.
7767 * thread-db.c (thread_db_get_tls_address): Likewise.
7768 (disable_thread_event_reporting): Likewise.
7769 (remove_thread_event_breakpoints): Likewise.
7770 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
7771 as saved_thread.
7772 * target.h (set_desired_inferior): Renamed as...
7773 (set_desired_thread): New declaration. All uses updated.
7774 * server.c (myresume): Updated comment to reference thread instead
7775 of inferior.
7776 (handle_serial_event): Likewise.
7777 (handle_target_event): Likewise.
7778
7779 2014-09-12 Tom Tromey <tromey@redhat.com>
7780 Gary Benson <gbenson@redhat.com>
7781
7782 * regcache.h: Include common-regcache.h.
7783 (regcache_read_pc): Don't declare.
7784 * regcache.c (get_thread_regcache_for_ptid): New function.
7785
7786 2014-09-11 Tom Tromey <tromey@redhat.com>
7787 Gary Benson <gbenson@redhat.com>
7788
7789 * symbol.c: New file.
7790 * Makefile.in (SFILES): Add symbol.c.
7791 (OBS): Add symbol.o.
7792
7793 2014-09-11 Gary Benson <gbenson@redhat.com>
7794
7795 * target.c (target_stop_ptid, target_continue_ptid): New
7796 functions.
7797
7798 2014-09-11 Tom Tromey <tromey@redhat.com>
7799 Gary Benson <gbenson@redhat.com>
7800
7801 * target.h: Include target/target.h.
7802 * target.c (target_read_memory, target_read_uint32)
7803 (target_write_memory): New functions.
7804
7805 2014-09-11 Gary Benson <gbenson@redhat.com>
7806
7807 * server.h (debug_hw_points): Don't declare.
7808 * server.c (debug_hw_points): Don't define. Replace all uses
7809 with show_debug_regs.
7810 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
7811 all uses with show_debug_regs.
7812
7813 2014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
7814
7815 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
7816 endianness into account.
7817 (ppc_supply_ptrace_register): Likewise.
7818
7819 2014-09-03 James Hogan <james.hogan@imgtec.com>
7820
7821 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
7822 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
7823
7824 2014-09-03 Gary Benson <gbenson@redhat.com>
7825
7826 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
7827 ALL_DEBUG_ADDRESS_REGISTERS.
7828
7829 2014-09-02 Gary Benson <gbenson@redhat.com>
7830
7831 * i386-low.h: Renamed as...
7832 * x86-low.h: New file. All type, function and variable name
7833 prefixes changed from "i386_" to "x86_". All references updated.
7834 * i386-low.c: Renamed as...
7835 * x86-low.c: New file. All type, function and variable name
7836 prefixes changed from "i386_" to "x86_". All references updated.
7837
7838 2014-09-02 Gary Benson <gbenson@redhat.com>
7839
7840 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
7841 (x86_linux_new_thread): Likewise.
7842
7843 2014-08-29 Gary Benson <gbenson@redhat.com>
7844
7845 * server.h (setjmp.h): Do not include.
7846 (toplevel): Do not declare.
7847 (common-exceptions.h): Include.
7848 (cleanups.h): Likewise.
7849 * server.c (toplevel): Do not define.
7850 (exit_code): New static global.
7851 (detach_or_kill_for_exit_cleanup): New function.
7852 (main): New function. Original main renamed to...
7853 (captured_main): New function.
7854 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
7855
7856 2014-08-29 Gary Benson <gbenson@redhat.com>
7857
7858 * Makefile.in (SFILES): Add common/common-exceptions.c.
7859 (OBS): Add common-exceptions.o.
7860 (common-exceptions.o): New rule.
7861 * utils.c (prepare_to_throw_exception): New function.
7862
7863 2014-08-29 Gary Benson <gbenson@redhat.com>
7864
7865 * config.in: Regenerate.
7866 * configure: Likewise.
7867
7868 2014-08-29 Gary Benson <gbenson@redhat.com>
7869
7870 * Makefile.in (SFILES): Add common/cleanups.c.
7871 (OBS): cleanups.o.
7872 (cleanups.o): New rule.
7873
7874 2014-08-29 Gary Benson <gbenson@redhat.com>
7875
7876 * utils.c (internal_vwarning): New function.
7877
7878 2014-08-28 Gary Benson <gbenson@redhat.com>
7879
7880 * utils.h (fatal): Remove declaration.
7881 * utils.c (fatal): Remove function.
7882
7883 2014-08-28 Gary Benson <gbenson@redhat.com>
7884
7885 * tracepoint.c (gdb_agent_init): Replace fatal with
7886 perror_with_name.
7887 (initialize_tracepoint): Likewise.
7888
7889 2014-08-28 Gary Benson <gbenson@redhat.com>
7890
7891 * remote-utils.c (remote_prepare): Replace fatal with error.
7892
7893 2014-08-28 Gary Benson <gbenson@redhat.com>
7894
7895 * linux-low.c (linux_async): Replace fatal with warning.
7896 Tidy up and return.
7897 (linux_start_non_stop): Return -1 if linux_async failed.
7898
7899 2014-08-28 Gary Benson <gbenson@redhat.com>
7900
7901 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
7902 gdb_assert.
7903 (i386_dr_low_get_addr): Remove vague comment.
7904 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
7905 gdb_assert.
7906
7907 2014-08-28 Gary Benson <gbenson@redhat.com>
7908
7909 * inferiors.c (get_thread_process): Replace check with gdb_assert.
7910 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
7911 internal_error.
7912 (linux_resume_one_lwp): Likewise.
7913 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
7914 gdb_assert.
7915 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
7916 with internal_error.
7917 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
7918 (init_register_cache): Replace fatal with gdb_assert_not_reached.
7919 (find_register_by_name): Replace fatal with internal_error.
7920 (find_regno): Likewise.
7921 * tdesc.c (init_target_desc): Replace check with gdb_assert.
7922 * thread-db.c (thread_db_create_event): Likewise.
7923 (thread_db_load_search): Likewise.
7924 (try_thread_db_load_1): Likewise.
7925 * tracepoint.c (get_jump_space_head): Replace fatal with
7926 internal_error.
7927 (claim_trampoline_space): Likewise.
7928 (have_fast_tracepoint_trampoline_buffer): Likewise.
7929 (cmd_qtstart): Likewise.
7930 (stop_tracing): Likewise.
7931 (fast_tracepoint_collecting): Likewise.
7932 (target_malloc): Likewise.
7933 (download_tracepoint): Likewise.
7934 (download_trace_state_variables): Replace check with gdb_assert.
7935 (upload_fast_traceframes): Replace fatal with internal_error.
7936
7937 2014-08-19 Tom Tromey <tromey@redhat.com>
7938 Gary Benson <gbenson@redhat.com>
7939
7940 * Makefile.in (SFILES): Add common/common-debug.c.
7941 (OBS): Add common-debug.o.
7942 (common-debug.o): New rule.
7943 * debug.h (debug_printf): Don't declare.
7944 * debug.c (debug_printf): Renamed and rewritten as...
7945 (debug_vprintf): New function.
7946
7947 2014-08-19 Gary Benson <gbenson@redhat.com>
7948
7949 * utils.h: Do not include print-utils.h.
7950
7951 2014-08-19 Tom Tromey <tromey@redhat.com>
7952 Gary Benson <gbenson@redhat.com>
7953
7954 * server.h: Add static assertion.
7955 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
7956
7957 2014-08-19 Tom Tromey <tromey@redhat.com>
7958 Gary Benson <gbenson@redhat.com>
7959
7960 * Makefile.in (SFILES): Add common/errors.c.
7961 (OBS): Add errors.o.
7962 (IPA_OBS): Add errors-ipa.o.
7963 (errors.o): New rule.
7964 (errors-ipa.o): Likewise.
7965 * utils.h (perror_with_name, error, warning): Don't declare.
7966 * utils.c (warning): Renamed and rewritten as...
7967 (vwarning): New function.
7968 (error): Renamed and rewritten as...
7969 (verror): New function.
7970 (internal_error): Renamed and rewritten as...
7971 (internal_verror): New function.
7972
7973 2014-08-07 Gary Benson <gbenson@redhat.com>
7974
7975 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
7976 * configure: Regenerate.
7977 * config.in: Likewise.
7978 * server.h: Do not include errno.h.
7979 * event-loop.c: Likewise.
7980 * hostio-errno.c: Likewise.
7981 * linux-low.c: Likewise.
7982 * remote-utils.c: Likewise.
7983 * spu-low.c: Likewise.
7984 * utils.c: Likewise.
7985 * gdbreplay.c: Unconditionally include errno.h.
7986
7987 2014-08-07 Gary Benson <gbenson@redhat.com>
7988
7989 * server.h: Do not include string.h.
7990 * event-loop.c: Likewise.
7991 * linux-low.c: Likewise.
7992 * regcache.c: Likewise.
7993 * remote-utils.c: Likewise.
7994 * spu-low.c: Likewise.
7995 * utils.c: Likewise.
7996
7997 2014-08-07 Gary Benson <gbenson@redhat.com>
7998
7999 * server.h: Do not include gdb_assert.h.
8000
8001 2014-08-07 Gary Benson <gbenson@redhat.com>
8002
8003 * server.h: Do not include common-utils.h.
8004
8005 2014-08-07 Gary Benson <gbenson@redhat.com>
8006
8007 * server.h: Do not include ptid.h.
8008 * notif.h: Likewise.
8009
8010 2014-08-07 Gary Benson <gbenson@redhat.com>
8011
8012 * server.h: Do not include gdb_locale.h.
8013
8014 2014-08-07 Gary Benson <gbenson@redhat.com>
8015
8016 * server.h: Do not include gdb/signals.h.
8017 * win32-low.c: Likewise.
8018
8019 2014-08-07 Gary Benson <gbenson@redhat.com>
8020
8021 * server.h: Do not include pathmax.h.
8022
8023 2014-08-07 Gary Benson <gbenson@redhat.com>
8024
8025 * server.h: Do not include libiberty.h.
8026 * linux-bfin-low.c: Likewise.
8027
8028 2014-08-07 Gary Benson <gbenson@redhat.com>
8029
8030 * server.h: Do not include ansidecl.h.
8031
8032 2014-08-07 Gary Benson <gbenson@redhat.com>
8033
8034 * linux-x86-low.c: Do not include stddef.h.
8035 * lynx-ppc-low.c: Likewise.
8036 * tracepoint.c: Likewise.
8037
8038 2014-08-07 Gary Benson <gbenson@redhat.com>
8039
8040 * server.h: Do not include stdarg.h.
8041 * nto-low.c: Likewise.
8042
8043 2014-08-07 Gary Benson <gbenson@redhat.com>
8044
8045 * server.h: Do not include stdlib.h.
8046 * inferiors.c: Likewise.
8047 * linux-low.c: Likewise.
8048 * regcache.c: Likewise.
8049 * spu-low.c: Likewise.
8050 * tracepoint.c: Likewise.
8051 * utils.c: Likewise.
8052
8053 2014-08-07 Gary Benson <gbenson@redhat.com>
8054
8055 * server.h: Do not include stdio.h.
8056 * linux-low.c: Likewise.
8057 * remote-utils.c: Likewise.
8058 * spu-low.c: Likewise.
8059 * utils.c: Likewise.
8060 * wincecompat.c: Likewise.
8061
8062 2014-08-06 Gary Benson <gbenson@redhat.com>
8063
8064 * regcache.c (init_register_cache): Move conditionals inside if.
8065
8066 2014-08-06 Gary Benson <gbenson@redhat.com>
8067
8068 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
8069
8070 2014-07-31 Gary Benson <gbenson@redhat.com>
8071
8072 * ax.h: Do not include server.h.
8073 * gdbthread.h: Likewise.
8074 * lynx-low.h: Likewise.
8075 * notif.h: Likewise.
8076
8077 2014-07-30 Gary Benson <gbenson@redhat.com>
8078
8079 * server.h: Include common-defs.h.
8080 Do not include config.h or build-gnulib-gdbserver/config.h.
8081
8082 2014-07-30 Gary Benson <gbenson@redhat.com>
8083
8084 * hostio-errno.c: Move server.h to top of includes list.
8085 * inferiors.c: Likewise.
8086 * linux-x86-low.c: Likewise.
8087 * notif.c: Include server.h.
8088
8089 2014-07-24 Tom Tromey <tromey@redhat.com>
8090 Gary Benson <gbenson@redhat.com>
8091
8092 * server.h (CORE_ADDR): Now unsigned.
8093
8094 2014-07-16 Pedro Alves <palves@redhat.com>
8095
8096 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
8097
8098 2014-07-15 Pedro Alves <palves@redhat.com>
8099
8100 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
8101 copy.
8102
8103 2014-07-11 Pedro Alves <palves@redhat.com>
8104
8105 * linux-low.c (kill_wait_lwp): New function, based on
8106 kill_one_lwp_callback, but use my_waitpid directly.
8107 (kill_one_lwp_callback, linux_kill): Use it.
8108
8109 2014-06-23 Pedro Alves <palves@redhat.com>
8110
8111 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
8112 before setting DR0..DR3.
8113
8114 2014-06-20 Gary Benson <gbenson@redhat.com>
8115
8116 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
8117 * configure: Regenerated.
8118 * config.in: Likewise.
8119
8120 2014-06-20 Gary Benson <gbenson@redhat.com>
8121
8122 * Makefile.in (SFILES): Update locations for files moved
8123 from common to nat.
8124 (object file files): Reordered.
8125
8126 2014-06-20 Gary Benson <gbenson@redhat.com>
8127
8128 * i386-low.h (i386_dr_low_can_set_addr): Removed.
8129 (i386_dr_low_set_addr): Likewise.
8130 (i386_dr_low_get_addr): Likewise.
8131 (i386_dr_low_can_set_control): Likewise.
8132 (i386_dr_low_set_control): Likewise.
8133 (i386_dr_low_get_control): Likewise.
8134 (i386_dr_low_get_status): Likewise.
8135 (i386_get_debug_register_length): Likewise.
8136 * linux-x86-low.c (i386_dr_low_set_addr):
8137 Changed signature. Made static.
8138 (i386_dr_low_get_addr): Likewise.
8139 (i386_dr_low_set_control): Likewise.
8140 (i386_dr_low_get_control): Likewise.
8141 (i386_dr_low_get_status): Likewise.
8142 (i386_dr_low): New global variable.
8143 * win32-i386-low.c (i386_dr_low_set_addr):
8144 Changed signature. Made static.
8145 (i386_dr_low_get_addr): Likewise.
8146 (i386_dr_low_set_control): Likewise.
8147 (i386_dr_low_get_control): Likewise.
8148 (i386_dr_low_get_status): Likewise.
8149 (i386_dr_low): New global variable.
8150
8151 2014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
8152
8153 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
8154 * Makefile.in (AR, AR_FLAGS): Define.
8155 * configure: Regenerate.
8156
8157 2014-06-19 Gary Benson <gbenson@redhat.com>
8158
8159 * Makefile.in (i386-dregs.o): New rule.
8160 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
8161 * i386-low.c (target.h): Remove include.
8162 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
8163 (DR_CONTROL_SHIFT): Likewise.
8164 (DR_CONTROL_SIZE): Likewise.
8165 (DR_RW_EXECUTE): Likewise.
8166 (DR_RW_WRITE): Likewise.
8167 (DR_RW_READ): Likewise.
8168 (DR_RW_IORW): Likewise.
8169 (DR_LEN_1): Likewise.
8170 (DR_LEN_2): Likewise.
8171 (DR_LEN_4): Likewise.
8172 (DR_LEN_8): Likewise.
8173 (DR_LOCAL_ENABLE_SHIFT): Likewise.
8174 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
8175 (DR_ENABLE_SIZE): Likewise.
8176 (DR_LOCAL_SLOWDOWN): Likewise.
8177 (DR_GLOBAL_SLOWDOWN): Likewise.
8178 (DR_CONTROL_RESERVED): Likewise.
8179 (I386_DR_CONTROL_MASK): Likewise.
8180 (I386_DR_VACANT): Likewise.
8181 (I386_DR_LOCAL_ENABLE): Likewise.
8182 (I386_DR_GLOBAL_ENABLE): Likewise.
8183 (I386_DR_DISABLE): Likewise.
8184 (I386_DR_SET_RW_LEN): Likewise.
8185 (I386_DR_GET_RW_LEN): Likewise.
8186 (I386_DR_WATCH_HIT): Likewise.
8187 (i386_wp_op_t): Likewise.
8188 (i386_show_dr): Likewise.
8189 (i386_length_and_rw_bits): Likewise.
8190 (i386_insert_aligned_watchpoint): Likewise.
8191 (i386_remove_aligned_watchpoint): Likewise.
8192 (i386_handle_nonaligned_watchpoint): Likewise.
8193 i386_update_inferior_debug_regs(): Likewise.
8194 (i386_dr_insert_watchpoint): Likewise.
8195 (i386_dr_remove_watchpoint): Likewise.
8196 (i386_dr_region_ok_for_watchpoint): Likewise.
8197 (i386_dr_stopped_data_address): Likewise.
8198 (i386_dr_stopped_by_watchpoint): Likewise.
8199
8200 2014-06-19 Gary Benson <gbenson@redhat.com>
8201
8202 * i386-low.c (i386_dr_show): Renamed to
8203 i386_show_dr and made static. All uses updated.
8204 (i386_dr_length_and_rw_bits): Renamed to
8205 i386_length_and_rw_bits and made static.
8206 All uses updated.
8207 (i386_dr_insert_aligned_watchpoint): Renamed to
8208 i386_insert_aligned_watchpoint and made static.
8209 All uses updated.
8210 (i386_dr_remove_aligned_watchpoint): Renamed to
8211 i386_remove_aligned_watchpoint and made static.
8212 All uses updated.
8213 (i386_dr_update_inferior_debug_regs): Renamed to
8214 i386_update_inferior_debug_regs and made static.
8215 All uses updated.
8216
8217 2014-06-18 Gary Benson <gbenson@redhat.com>
8218
8219 * i386-low.h (i386_dr_low_can_set_addr): New macro.
8220 (i386_dr_low_can_set_control): Likewise.
8221 (i386_get_debug_register_length): Likewise.
8222 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
8223 (i386_dr_low_can_set_control): Likewise.
8224 (i386_get_debug_register_length): Likewise.
8225
8226 2014-06-17 Gary Benson <gbenson@redhat.com>
8227
8228 * i386-low.h (i386-dregs.h): New include.
8229 (DR_FIRSTADDR): Now in i386-dregs.h.
8230 (DR_LASTADDR): Likewise.
8231 (DR_NADDR): Likewise.
8232 (DR_STATUS): Likewise.
8233 (DR_CONTROL): Likewise.
8234 (i386_debug_reg_state): Likewise.
8235 (i386_dr_insert_watchpoint): Likewise.
8236 (i386_dr_remove_watchpoint): Likewise.
8237 (i386_dr_region_ok_for_watchpoint): Likewise.
8238 (i386_dr_stopped_data_address): Likewise.
8239 (i386_dr_stopped_by_watchpoint): Likewise.
8240 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
8241
8242 2014-06-18 Gary Benson <gbenson@redhat.com>
8243
8244 * i386-low.h (i386_low_insert_watchpoint): Renamed to
8245 i386_dr_insert_watchpoint.
8246 (i386_low_remove_watchpoint): Renamed to
8247 i386_dr_remove_watchpoint.
8248 (i386_low_region_ok_for_watchpoint): Renamed to
8249 i386_dr_region_ok_for_watchpoint.
8250 (i386_low_stopped_data_address): Renamed to
8251 i386_dr_stopped_data_address.
8252 (i386_low_stopped_by_watchpoint): Renamed to
8253 i386_dr_stopped_by_watchpoint.
8254 * i386-low.c (i386_show_dr): Renamed to
8255 i386_dr_show and made nonstatic. All uses updated.
8256 (i386_length_and_rw_bits): Renamed to
8257 i386_dr_length_and_rw_bits and made nonstatic.
8258 All uses updated.
8259 (i386_insert_aligned_watchpoint): Renamed to
8260 i386_dr_insert_aligned_watchpoint and made nonstatic.
8261 All uses updated.
8262 (i386_remove_aligned_watchpoint): Renamed to
8263 i386_dr_remove_aligned_watchpoint and made nonstatic.
8264 All uses updated.
8265 (i386_update_inferior_debug_regs): Renamed to
8266 i386_dr_update_inferior_debug_regs and made nonstatic.
8267 All uses updated.
8268 (i386_low_insert_watchpoint): Renamed to
8269 i386_dr_insert_watchpoint. All uses updated.
8270 (i386_low_remove_watchpoint): Renamed to
8271 i386_dr_remove_watchpoint. All uses updated.
8272 (i386_low_region_ok_for_watchpoint): Renamed to
8273 i386_dr_region_ok_for_watchpoint. All uses updated.
8274 (i386_low_stopped_data_address): Renamed to
8275 i386_dr_stopped_data_address. All uses updated.
8276 (i386_low_stopped_by_watchpoint): Renamed to
8277 i386_dr_stopped_by_watchpoint. All uses updated.
8278
8279 2014-06-18 Gary Benson <gbenson@redhat.com>
8280
8281 * i386-low.c (i386_dr_low_can_set_addr): New macro.
8282 (i386_dr_low_can_set_control): Likewise.
8283 (i386_insert_aligned_watchpoint): New check.
8284
8285 2014-06-18 Gary Benson <gbenson@redhat.com>
8286
8287 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
8288 Renamed to state.
8289
8290 2014-06-18 Gary Benson <gbenson@redhat.com>
8291
8292 * i386-low.c (i386_length_and_rw_bits): Use internal_error
8293 instead of fatal and error.
8294 (i386_handle_nonaligned_watchpoint): Likewise.
8295
8296 2014-06-18 Gary Benson <gbenson@redhat.com>
8297
8298 * i386-low.c (i386_get_debug_register_length): New macro.
8299 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
8300 (i386_show_dr): Use debug_printf instead of fprintf. Use
8301 phex to format values.
8302
8303 2014-06-18 Gary Benson <gbenson@redhat.com>
8304
8305 * i386-low.h: Comment changes.
8306 * i386-low.c: Likewise.
8307
8308 2014-06-18 Gary Benson <gbenson@redhat.com>
8309
8310 * i386-low.c: Whitespace changes.
8311
8312 2014-06-12 Tom Tromey <tromey@redhat.com>
8313
8314 * utils.c (freeargv): Remove.
8315
8316 2014-06-12 Tom Tromey <tromey@redhat.com>
8317
8318 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
8319 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
8320 (parse_debug_format_options): Likewise.
8321 (gdbserver_usage): Likewise.
8322 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
8323 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
8324 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
8325 against libiberty.
8326 ($(LIBGNU)): Depend on libiberty.
8327 (all-lib): Recurse into all subdirs.
8328 (install-only): Invoke "install" target in subdirs.
8329 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
8330 targets.
8331 * configure: Rebuild.
8332 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
8333 for vasprintf, vsnprintf, or gettimeofday.
8334 * configure.srv: Don't add safe-ctype.o or lbasename.o to
8335 srv_tgtobj.
8336
8337 2014-06-05 Joel Brobecker <brobecker@adacore.com>
8338
8339 * development.sh: Delete.
8340 * Makefile.in (config.status): Adjust dependency on development.sh.
8341 * configure.ac: Adjust development.sh source call.
8342 * configure: Regenerate.
8343
8344 2014-06-02 Pedro Alves <palves@redhat.com>
8345
8346 * ax.c (gdb_free_agent_expr): New function.
8347 * ax.h (gdb_free_agent_expr): New declaration.
8348 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
8349 list.
8350 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
8351 static.
8352 (clear_breakpoint_conditions_and_commands): New function.
8353 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
8354 (clear_breakpoint_conditions_and_commands): New declaration.
8355
8356 2014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8357
8358 * linux-aarch64-low.c (asm/ptrace.h): Include.
8359
8360 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8361
8362 Fix TLS access for -static -pthread.
8363 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
8364 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
8365 (thread_db_load_search, try_thread_db_load_1): Initialize it.
8366
8367 2014-05-20 Pedro Alves <palves@redhat.com>
8368
8369 * linux-aarch64-low.c (aarch64_insert_point)
8370 (aarch64_remove_point): No longer check whether the type is
8371 supported here. Adjust to new interface.
8372 (the_low_target): Install aarch64_supports_z_point_type as
8373 supports_z_point_type method.
8374 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
8375 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
8376 instead of a Z packet char. Adjust.
8377 (arm_supports_z_point_type): New function.
8378 (arm_insert_point, arm_remove_point): Adjust to new interface.
8379 (the_low_target): Install arm_supports_z_point_type.
8380 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
8381 (cris_insert_point, cris_remove_point): Adjust to new interface.
8382 Don't check whether the type is supported here.
8383 (the_low_target): Install cris_supports_z_point_type.
8384 * linux-low.c (linux_supports_z_point_type): New function.
8385 (linux_insert_point, linux_remove_point): Adjust to new interface.
8386 * linux-low.h (struct linux_target_ops) <insert_point,
8387 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
8388 raw_breakpoint pointer parameter.
8389 <supports_z_point_type>: New method.
8390 * linux-mips-low.c (mips_supports_z_point_type): New function.
8391 (mips_insert_point, mips_remove_point): Adjust to new interface.
8392 Use mips_supports_z_point_type.
8393 (the_low_target): Install mips_supports_z_point_type.
8394 * linux-ppc-low.c (the_low_target): Install NULL as
8395 supports_z_point_type method.
8396 * linux-s390-low.c (the_low_target): Install NULL as
8397 supports_z_point_type method.
8398 * linux-sparc-low.c (the_low_target): Install NULL as
8399 supports_z_point_type method.
8400 * linux-x86-low.c (x86_supports_z_point_type): New function.
8401 (x86_insert_point): Adjust to new insert_point interface. Use
8402 insert_memory_breakpoint. Adjust to new
8403 i386_low_insert_watchpoint interface.
8404 (x86_remove_point): Adjust to remove_point interface. Use
8405 remove_memory_breakpoint. Adjust to new
8406 i386_low_remove_watchpoint interface.
8407 (the_low_target): Install x86_supports_z_point_type.
8408 * lynx-low.c (lynx_target_ops): Install NULL as
8409 supports_z_point_type callback.
8410 * nto-low.c (nto_supports_z_point_type): New.
8411 (nto_insert_point, nto_remove_point): Adjust to new interface.
8412 (nto_target_ops): Install nto_supports_z_point_type.
8413 * mem-break.c: Adjust intro comment.
8414 (struct raw_breakpoint) <raw_type, size>: New fields.
8415 <inserted>: Update comment.
8416 <shlib_disabled>: Delete field.
8417 (enum bkpt_type) <gdb_breakpoint>: Delete value.
8418 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
8419 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
8420 (raw_bkpt_type_to_target_hw_bp_type): New function.
8421 (find_enabled_raw_code_breakpoint_at): New function.
8422 (find_raw_breakpoint_at): New type and size parameters. Use them.
8423 (insert_memory_breakpoint): New function, based off
8424 set_raw_breakpoint_at.
8425 (remove_memory_breakpoint): New function.
8426 (set_raw_breakpoint_at): Reimplement.
8427 (set_breakpoint): New, based on set_breakpoint_at.
8428 (set_breakpoint_at): Reimplement.
8429 (delete_raw_breakpoint): Go through the_target->remove_point
8430 instead of assuming memory breakpoints.
8431 (find_gdb_breakpoint_at): Delete.
8432 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
8433 (find_gdb_breakpoint): New function.
8434 (set_gdb_breakpoint_at): Delete.
8435 (z_type_supported): New function.
8436 (set_gdb_breakpoint_1): New function, loosely based off
8437 set_gdb_breakpoint_at.
8438 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
8439 (delete_gdb_breakpoint_at): Delete.
8440 (delete_gdb_breakpoint_1): New function, loosely based off
8441 delete_gdb_breakpoint_at.
8442 (delete_gdb_breakpoint): New function.
8443 (clear_gdb_breakpoint_conditions): Rename to ...
8444 (clear_breakpoint_conditions): ... this. Don't handle a NULL
8445 breakpoint.
8446 (add_condition_to_breakpoint): Make static.
8447 (add_breakpoint_condition): Take a struct breakpoint pointer
8448 instead of an address. Adjust.
8449 (gdb_condition_true_at_breakpoint): Rename to ...
8450 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
8451 z_type parameter.
8452 (gdb_condition_true_at_breakpoint): Reimplement.
8453 (add_breakpoint_commands): Take a struct breakpoint pointer
8454 instead of an address. Adjust.
8455 (gdb_no_commands_at_breakpoint): Rename to ...
8456 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
8457 parameter. Return true if no breakpoint was found. Change debug
8458 output.
8459 (gdb_no_commands_at_breakpoint): Reimplement.
8460 (run_breakpoint_commands): Rename to ...
8461 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
8462 and change return type to boolean.
8463 (run_breakpoint_commands): New function.
8464 (gdb_breakpoint_here): Also check for Z1 breakpoints.
8465 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
8466 breakpoint. Go through the_target->remove_point instead of
8467 assuming memory breakpoint.
8468 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
8469 software and hardware breakpoints.
8470 (reinsert_raw_breakpoint): Go through the_target->insert_point
8471 instead of assuming memory breakpoint.
8472 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
8473 software and hardware breakpoints.
8474 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
8475 Check both software and hardware breakpoints.
8476 (validate_inserted_breakpoint): Assert the breakpoint is a
8477 software breakpoint. Set the inserted flag to -1 instead of
8478 setting shlib_disabled.
8479 (delete_disabled_breakpoints): Adjust.
8480 (validate_breakpoints): Only validate software breakpoints.
8481 Adjust to inserted flag change.
8482 (check_mem_read, check_mem_write): Skip breakpoint types other
8483 than software breakpoints. Adjust to inserted flag change.
8484 * mem-break.h (enum raw_bkpt_type): New enum.
8485 (raw_breakpoint, struct process_info): Forward declare.
8486 (Z_packet_to_target_hw_bp_type): Delete declaration.
8487 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
8488 (set_gdb_breakpoint, delete_gdb_breakpoint)
8489 (clear_breakpoint_conditions): New declarations.
8490 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
8491 (breakpoint_inserted_here): Update comment.
8492 (add_breakpoint_condition, add_breakpoint_commands): Replace
8493 address parameter with a breakpoint pointer parameter.
8494 (gdb_breakpoint_here): Update comment.
8495 (delete_gdb_breakpoint_at): Delete.
8496 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
8497 * server.c (process_point_options): Take a struct breakpoint
8498 pointer instead of an address. Adjust.
8499 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
8500 delete_gdb_breakpoint.
8501 * spu-low.c (spu_target_ops): Install NULL as
8502 supports_z_point_type method.
8503 * target.h: Include mem-break.h.
8504 (struct target_ops) <prepare_to_access_memory>: Update comment.
8505 <supports_z_point_type>: New field.
8506 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
8507 instead of a char. Also take a raw breakpoint pointer.
8508 * win32-arm-low.c (the_low_target): Install NULL as
8509 supports_z_point_type.
8510 * win32-i386-low.c (i386_supports_z_point_type): New function.
8511 (i386_insert_point, i386_remove_point): Adjust to new interface.
8512 (the_low_target): Install i386_supports_z_point_type.
8513 * win32-low.c (win32_supports_z_point_type): New function.
8514 (win32_insert_point, win32_remove_point): Adjust to new interface.
8515 (win32_target_ops): Install win32_supports_z_point_type.
8516 * win32-low.h (struct win32_target_ops):
8517 <supports_z_point_type>: New method.
8518 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
8519 instead of a char. Also take a raw breakpoint pointer.
8520
8521 2014-05-20 Pedro Alves <palves@redhat.com>
8522
8523 * mem-break.h: Include break-common.h.
8524 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
8525 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
8526 (Z_packet_to_target_hw_bp_type): New declaration.
8527 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
8528 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
8529 (Z_PACKET_ACCESS_WP): Delete macros.
8530 (Z_packet_to_hw_type): Delete function.
8531 * i386-low.h: Don't include break-common.h here.
8532 (Z_packet_to_hw_type): Delete declaration.
8533 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
8534 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
8535 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
8536 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
8537 * linux-aarch64-low.c: Don't include break-common.h here.
8538 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
8539 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
8540 (Z_packet_to_target_hw_bp_type): Delete function.
8541 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
8542 function.
8543 (mips_insert_point, mips_remove_point): Use
8544 Z_packet_to_target_hw_bp_type.
8545
8546 2014-05-20 Pedro Alves <palves@redhat.com>
8547
8548 * linux-aarch64-low.c: Include break-common.h.
8549 (enum target_point_type): Delete.
8550 (Z_packet_to_point_type): Rename to ...
8551 (Z_packet_to_target_hw_bp_type): ... this, and return a
8552 target_hw_bp_type instead.
8553 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
8554 instead of an enum target_point_type.
8555 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
8556 breakpoint type.
8557 (aarch64_dr_state_insert_one_point)
8558 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
8559 (aarch64_handle_aligned_watchpoint)
8560 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
8561 Take an enum target_hw_bp_type instead of an enum
8562 target_point_type.
8563 (aarch64_supports_z_point_type): New function.
8564 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
8565 use Z_packet_to_target_hw_bp_type.
8566
8567 2014-05-20 Joel Brobecker <brobecker@adacore.com>
8568
8569 * configure.ac: Only use -Werror by default when DEVELOPMENT
8570 is true.
8571 * configure: Regenerate.
8572
8573 2014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8574
8575 Fix gdbserver qGetTLSAddr for x86_64 -m32.
8576 * linux-x86-low.c (X86_64_USER_REGS): New.
8577 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
8578
8579 2014-04-28 Yao Qi <yao@codesourcery.com>
8580
8581 * Makefile.in (i386-avx512.c): Fix the typo of generated file
8582 name.
8583
8584 2014-04-25 Pedro Alves <palves@redhat.com>
8585
8586 PR server/16255
8587 * linux-low.c (linux_attach_fail_reason_string): New function.
8588 (linux_attach_lwp): Delete.
8589 (linux_attach_lwp_1): Rename to ...
8590 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
8591 argument. Remove "initial" parameter. Return int instead of
8592 void. Don't error or warn here.
8593 (linux_attach): Adjust to call linux_attach_lwp. Call error on
8594 failure to attach to the tgid. Call warning when failing to
8595 attach to an lwp.
8596 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
8597 argument. Remove "initial" parameter. Return int instead of
8598 void. Don't error or warn here.
8599 (linux_attach_fail_reason_string): New declaration.
8600 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
8601 interface change. Use linux_attach_fail_reason_string.
8602
8603 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
8604 Walfred Tedeschi <walfred.tedeschi@intel.com>
8605
8606 * Makefile.in: Added rules to handle new files
8607 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
8608 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
8609 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
8610 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
8611 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
8612 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
8613 x32-avx512-linux.o.
8614 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
8615 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
8616 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
8617 i386/x32-avx512.xml.
8618 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
8619 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
8620 i386/x32-avx512-linux.xml.
8621 * i387-fp.c (num_avx512_k_registers): New constant for number
8622 of K registers.
8623 (num_avx512_zmmh_low_registers): New constant for number of
8624 lower ZMM registers (0-15).
8625 (num_avx512_zmmh_high_registers): New constant for number of
8626 higher ZMM registers (16-31).
8627 (num_avx512_ymmh_registers): New contant for number of higher
8628 YMM registers (ymm16-31 added by avx521 on x86_64).
8629 (num_avx512_xmm_registers): New constant for number of higher
8630 XMM registers (xmm16-31 added by AVX512 on x86_64).
8631 (struct i387_xsave): Add space for AVX512 registers.
8632 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
8633 Add code to handle AVX512 registers.
8634 (i387_xsave_to_cache): Add code to handle AVX512 registers.
8635 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
8636 prototypei from generated file.
8637 (tdesc_amd64_avx512_linux): Likewise.
8638 (init_registers_x32_avx512_linux): Likewise.
8639 (tdesc_x32_avx512_linux): Likewise.
8640 (init_registers_i386_avx512_linux): Likewise.
8641 (tdesc_i386_avx512_linux): Likewise.
8642 (x86_64_regmap): Add AVX512 registers.
8643 (x86_linux_read_description): Add code to handle AVX512 XSTATE
8644 mask.
8645 (initialize_low_arch): Add code to initialize AVX512 registers.
8646
8647 2014-04-23 Pedro Alves <palves@redhat.com>
8648
8649 * mem-break.c (find_gdb_breakpoint_at): Make static.
8650 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
8651
8652 2014-04-23 Pedro Alves <palves@redhat.com>
8653
8654 * i386-low.c: Don't include break-common.h here.
8655 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
8656 prototype to take target_hw_bp_type as argument instead of a Z
8657 packet char.
8658 * i386-low.h: Include break-common.h here.
8659 (Z_packet_to_hw_type): Declare.
8660 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
8661 prototypes.
8662 * linux-x86-low.c (x86_insert_point): Convert the packet number to
8663 a target_hw_bp_type before calling i386_low_insert_watchpoint.
8664 (x86_remove_point): Convert the packet number to a
8665 target_hw_bp_type before calling i386_low_remove_watchpoint.
8666 * win32-i386-low.c (i386_insert_point): Convert the packet number
8667 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
8668 (i386_remove_point): Convert the packet number to a
8669 target_hw_bp_type before calling i386_low_remove_watchpoint.
8670
8671 2014-04-23 Pedro Alves <palves@redhat.com>
8672
8673 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
8674
8675 2014-04-10 Pedro Alves <palves@redhat.com>
8676
8677 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
8678 Check if the condition or command is NULL before checking if the
8679 breakpoint is known. On success, return true.
8680 * mem-break.h (add_breakpoint_condition): Document return.
8681 (add_breakpoint_commands): Add describing comment.
8682 * server.c (skip_to_semicolon): New function.
8683 (process_point_options): Use it.
8684
8685 2014-04-09 Pedro Alves <palves@redhat.com>
8686
8687 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
8688 to lwpid_of.
8689
8690 2014-02-27 Pedro Alves <palves@redhat.com>
8691
8692 PR 12702
8693 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
8694 macros.
8695 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
8696 output.
8697 (last_thread_of_process_p): Take a PID argument instead of a
8698 thread pointer.
8699 (linux_wait_for_lwp): Delete.
8700 (num_lwps, check_zombie_leaders, not_stopped_callback): New
8701 functions.
8702 (linux_low_filter_event): New function, party factored out from
8703 linux_wait_for_event.
8704 (linux_wait_for_event): Rename to ...
8705 (linux_wait_for_event_filtered): ... this. Add new filter ptid
8706 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
8707 sigsuspend. Check for zombie leaders.
8708 (linux_wait_for_event): Reimplement as wrapper around
8709 linux_wait_for_event_filtered.
8710 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
8711 a normal or signal exit is seen, it's the whole process exiting.
8712 (wait_for_sigstop): No longer a for_each_inferior callback.
8713 Rewrite on top of linux_wait_for_event_filtered.
8714 (stop_all_lwps): Call wait_for_sigstop directly.
8715 * server.c (resume, handle_target_event): Handle
8716 TARGET_WAITKIND_NO_RESUMED.
8717
8718 2014-02-26 Joel Brobecker <brobecker@adacore.com>
8719
8720 * win32-low.c (psapi_get_dll_name,
8721 * win32_CreateToolhelp32Snapshot): Delete.
8722 (win32_CreateToolhelp32Snapshot, win32_Module32First)
8723 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
8724 Delete.
8725 (handle_load_dll): Add function description.
8726 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
8727
8728 2014-02-26 Joel Brobecker <brobecker@adacore.com>
8729
8730 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
8731 Add comment.
8732 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
8733 base address when calling win32_add_one_solib.
8734 (handle_load_dll): Delete local variable load_addr.
8735 Remove 0x1000 offset applied to DLL base address when calling
8736 win32_add_one_solib.
8737 (handle_unload_dll): Add comment.
8738
8739 2014-02-26 Joel Brobecker <brobecker@adacore.com>
8740
8741 * win32-low.c (win32_add_all_dlls): Renames
8742 win32_ensure_ntdll_loaded. Rewrite function documentation.
8743 Adjust implementation to always load all DLLs.
8744 Add 0x1000 offset to DLL base address when calling
8745 win32_add_one_solib.
8746 (child_initialization_done): New static global.
8747 (do_initial_child_stuff): Set child_initialization_done to
8748 zero during child initialization, and 1 after. Replace call
8749 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
8750 Add comment.
8751 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
8752 (handle_unload_dll): Add function documentation.
8753 (get_child_debug_event): Ignore load and unload DLL events
8754 during child initialization.
8755
8756 2014-02-20 Doug Evans <dje@google.com>
8757
8758 Remove global all_lwps.
8759 * inferiors.h (ptid_of): Move here from linux-low.h.
8760 (pid_of, lwpid_of): Ditto.
8761 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
8762 parameter is a struct thread_info * now.
8763 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
8764 directly. Pass &all_threads to find_inferior instead of &all_lwps.
8765 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
8766 directly.
8767 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
8768 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
8769 * linux-arm-low.c (update_registers_callback): Update, "entry"
8770 parameter is a struct thread_info * now.
8771 Fetch lwpid from current_inferior directly.
8772 (arm_insert_point): Pass &all_threads to find_inferior instead of
8773 &all_lwps.
8774 (arm_remove_point): Ditto.
8775 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
8776 (arm_prepare_to_resume): Fetch pid from thread.
8777 (arm_read_description): Fetch lwpid from current_inferior directly.
8778 * linux-low.c (all_lwps): Delete.
8779 (delete_lwp): Delete call to remove_inferior.
8780 (handle_extended_wait): Fetch lwpid from thread.
8781 (add_lwp): Don't set lwp->entry.id. Remove call to
8782 add_inferior_to_list.
8783 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
8784 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
8785 (kill_one_lwp_callback): Ditto.
8786 (linux_kill): Don't dereference NULL pointer.
8787 Fetch ptid,lwpid from thread.
8788 (get_detach_signal): Fetch ptid from thread.
8789 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
8790 Simplify call to regcache_invalidate_thread.
8791 (delete_lwp_callback): Update, "entry" parameter is a
8792 struct thread_info * now. Fetch pid from thread.
8793 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
8794 (status_pending_p_callback): Update, "entry" parameter is a
8795 struct thread_info * now. Fetch ptid from thread.
8796 (find_lwp_pid): Update, "entry" parameter is a
8797 struct thread_info * now.
8798 (linux_wait_for_lwp): Fetch pid from thread.
8799 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
8800 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
8801 (enqueue_one_deferred_signal): Fetch lwpid from thread.
8802 (dequeue_one_deferred_signal): Ditto.
8803 (cancel_breakpoint): Fetch ptid from current_inferior.
8804 (linux_wait_for_event): Pass &all_threads to find_inferior,
8805 not &all_lwps. Fetch ptid, lwpid from thread.
8806 (count_events_callback): Update, "entry" parameter is a
8807 struct thread_info * now.
8808 (select_singlestep_lwp_callback): Ditto.
8809 (select_event_lwp_callback): Ditto.
8810 (cancel_breakpoints_callback): Ditto.
8811 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
8812 not &all_lwps.
8813 (select_event_lwp): Ditto. Fetch ptid from event_thread.
8814 (unsuspend_one_lwp): Update, "entry" parameter is a
8815 struct thread_info * now.
8816 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
8817 not &all_lwps.
8818 (linux_stabilize_threads): Ditto. And for for_each_inferior.
8819 Fetch lwpid from thread, not lwp.
8820 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
8821 Pass &all_threads to find_inferior, not &all_lwps.
8822 (send_sigstop): Fetch lwpid from thread, not lwp.
8823 (send_sigstop_callback): Update, "entry" parameter is a
8824 struct thread_info * now.
8825 (suspend_and_send_sigstop_callback): Ditto.
8826 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
8827 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
8828 struct thread_info * now.
8829 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
8830 from thread, lwp.
8831 (lwp_running): Update, "entry" parameter is a
8832 struct thread_info * now.
8833 (stop_all_lwps): Fetch ptid from thread.
8834 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
8835 (linux_resume_one_lwp): Fetch lwpid from thread.
8836 (linux_set_resume_request): Update, "entry" parameter is a
8837 struct thread_info * now. Fetch pid, lwpid from thread.
8838 (resume_status_pending_p): Update, "entry" parameter is a
8839 struct thread_info * now.
8840 (need_step_over_p): Ditto. Fetch lwpid from thread.
8841 (start_step_over): Fetch lwpid from thread.
8842 (linux_resume_one_thread): Update, "entry" parameter is a
8843 struct thread_info * now. Fetch lwpid from thread.
8844 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
8845 (proceed_one_lwp): Update, "entry" parameter is a
8846 struct thread_info * now. Fetch lwpid from thread.
8847 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
8848 struct thread_info * now.
8849 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
8850 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
8851 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
8852 directly.
8853 (regsets_store_inferior_registers): Ditto.
8854 (fetch_register, store_register): Ditto.
8855 (linux_read_memory, linux_write_memory): Ditto.
8856 (linux_request_interrupt): Ditto.
8857 (linux_read_auxv): Ditto.
8858 (linux_xfer_siginfo): Ditto.
8859 (linux_qxfer_spu): Ditto.
8860 (linux_qxfer_libraries_svr4): Ditto.
8861 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
8862 moved to inferiors.h.
8863 (get_lwp): Delete.
8864 (get_thread_lwp): Update.
8865 (struct lwp_info): Delete member "entry". Simplify comment for
8866 member "thread".
8867 (all_lwps): Delete.
8868 * linux-mips-low.c (mips_read_description): Fetch lwpid from
8869 current_inferior directly.
8870 (update_watch_registers_callback): Update, "entry" parameter is a
8871 struct thread_info * now. Fetch pid from thread.
8872 (mips_linux_prepare_to_resume): Fetch ptid from thread.
8873 (mips_insert_point): Fetch lwpid from current_inferior.
8874 Pass &all_threads to find_inferior, not &all_lwps.
8875 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
8876 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
8877 directly.
8878 (mips_stopped_data_address): Ditto.
8879 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
8880 directly.
8881 * linux-tile-low.c (tile_arch_setup): Ditto.
8882 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
8883 (update_debug_registers_callback): Update, "entry" parameter is a
8884 struct thread_info * now. Fetch pid from thread.
8885 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
8886 Pass &all_threads to find_inferior, not &all_lwps.
8887 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
8888 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
8889 Pass &all_threads to find_inferior, not &all_lwps.
8890 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
8891 (i386_dr_low_get_status): Ditto.
8892 (x86_linux_prepare_to_resume): Fetch ptid from thread.
8893 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
8894 (x86_linux_read_description): Ditto.
8895 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
8896
8897 2014-02-20 Doug Evans <dje@google.com>
8898
8899 * inferiors.c (get_first_inferior): Fix buglet.
8900
8901 2014-02-19 Doug Evans <dje@google.com>
8902
8903 * gdbthread.h (add_thread): Change result type to struct thread_info *.
8904 * inferiors.c (add_thread): Change result type to struct thread_info *.
8905 All callers updated.
8906 (add_lwp): Call add_thread here instead of in callers.
8907 All callers updated.
8908 * linux-low.h (get_lwp_thread): Rewrite.
8909 (struct lwp_info): New member "thread".
8910
8911 2014-02-19 Doug Evans <dje@google.com>
8912
8913 * linux-low.c (add_lwp): Change result to struct lwp_info *.
8914 All callers updated.
8915
8916 2014-02-19 Doug Evans <dje@google.com>
8917
8918 * inferiors.c (add_thread): Fix whitespace.
8919
8920 2014-02-19 Doug Evans <dje@google.com>
8921
8922 * dll.c (clear_dlls): Replace accessing list implemention details
8923 with API function.
8924 * gdbthread.h (get_first_thread): Declare.
8925 * inferiors.c (for_each_inferior_with_data): New function.
8926 (get_first_thread): New function.
8927 (find_thread_ptid): Simplify.
8928 (get_first_inferior): New function.
8929 (clear_list): Delete.
8930 (one_inferior_p): New function.
8931 (clear_inferior_list): New function.
8932 (clear_inferiors): Update.
8933 * inferiors.h (for_each_inferior_with_data): Declare.
8934 (clear_inferior_list): Declare.
8935 (one_inferior_p): Declare.
8936 (get_first_inferior): Declare.
8937 * linux-low.c (linux_wait_for_event): Replace accessing list
8938 implemention details with API function.
8939 * server.c (target_running): Ditto.
8940 (accumulate_file_name_length): New function.
8941 (emit_dll_description): New function.
8942 (handle_qxfer_libraries): Replace accessing list implemention
8943 details with API function.
8944 (handle_qxfer_threads_worker): New function.
8945 (handle_qxfer_threads_proper): Replace accessing list implemention
8946 details with API function.
8947 (handle_query): Ditto.
8948 (visit_actioned_threads_callback_ftype): New typedef.
8949 (visit_actioned_threads_data): New struct.
8950 (visit_actioned_threads): Rewrite to be find_inferior callback.
8951 (resume): Call find_inferior.
8952 (handle_status): Replace accessing list implemention
8953 details with API function.
8954 (process_serial_event): Replace accessing list implemention details
8955 with API function.
8956 * target.c (set_desired_inferior): Replace accessing list implemention
8957 details with API function.
8958 * tracepoint.c (same_process_p): New function.
8959 (gdb_agent_about_to_close): Replace accessing list implemention
8960 details with API function.
8961 * win32-low.c (child_delete_thread): Replace accessing list
8962 implemention details with API function.
8963 (match_dll_by_basename): New function.
8964 (dll_is_loaded_by_basename): New function.
8965 (win32_ensure_ntdll_loaded): Replace accessing list implemention
8966 details call to dll_is_loaded_by_basename.
8967
8968 2014-02-19 Doug Evans <dje@google.com>
8969
8970 * dll.h (struct dll_info): Add comment.
8971 * gdbthread.h (struct thread_info): Add comment.
8972 (current_ptid): Simplify.
8973 * inferiors.c (add_process): Update.
8974 (remove_process): Update.
8975 * inferiors.h (struct process_info): Rename member "head" to "entry".
8976 * linux-low.c (delete_lwp): Update.
8977 (add_lwp): Update.
8978 (last_thread_of_process_p): Update.
8979 (kill_one_lwp_callback, linux_kill): Update.
8980 (status_pending_p_callback): Update.
8981 (wait_for_sigstop): Update. Simplify read of ptid.
8982 (start_step_over): Update.
8983 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
8984 (get_lwp_thread): Update.
8985 (struct lwp_info): Rename member "head" to "entry".
8986 * regcache.h (inferior_list_entry): Delete.
8987 * server.c (kill_inferior_callback): Update.
8988 (detach_or_kill_inferior_callback): Update.
8989 (print_started_pid): Update.
8990 (print_attached_pid): Update.
8991 (process_serial_event): Simplify read of ptid.
8992 * thread-db.c (thread_db_create_event): Update.
8993 (thread_db_get_tls_address): Update.
8994 * win32-low.c (current_inferior_ptid): Simplify.
8995
8996 2014-02-19 Tom Tromey <tromey@redhat.com>
8997
8998 * target.h (struct target_ops) <supports_btrace>: Add target_ops
8999 argument.
9000 (target_supports_btrace): Update.
9001
9002 2014-02-14 Yao Qi <yao@codesourcery.com>
9003
9004 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
9005 (rsp-low-ipa.o): New target.
9006
9007 2014-02-12 Tom Tromey <tromey@redhat.com>
9008
9009 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
9010 convert_ascii_to_int.
9011 * regcache.c (registers_to_string): Likewise.
9012 * remote-utils.c (decode_M_packet): Likewise.
9013 * server.c (process_serial_event): Likewise.
9014
9015 2014-02-12 Tom Tromey <tromey@redhat.com>
9016
9017 * server.c (handle_query, handle_v_run): Use hex2bin, not
9018 unhexify.
9019 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
9020
9021 2014-02-12 Tom Tromey <tromey@redhat.com>
9022
9023 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
9024 convert_int_to_ascii.
9025 * regcache.c (registers_to_string, collect_register_as_string):
9026 Likewise.
9027 * remote-utils.c (look_up_one_symbol, relocate_instruction):
9028 Likewise.
9029 * server.c (process_serial_event): Likewise.
9030 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
9031 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
9032
9033 2014-02-12 Tom Tromey <tromey@redhat.com>
9034
9035 * remote-utils.c (look_up_one_symbol, monitor_output): Use
9036 bin2hex, not hexify.
9037 * tracepoint.c (cmd_qtstatus): Likewise.
9038
9039 2014-02-12 Tom Tromey <tromey@redhat.com>
9040
9041 * remote-utils.c (monitor_output): Pass explicit length to
9042 hexify.
9043
9044 2014-02-12 Tom Tromey <tromey@redhat.com>
9045
9046 * tracepoint.c: Include rsp-low.h.
9047 * server.c: Include rsp-low.h.
9048 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
9049 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
9050 declare.
9051 * remote-utils.c: Include rsp-low.h.
9052 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
9053 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
9054 (convert_int_to_ascii, convert_ascii_to_int): Move to
9055 common/rsp-low.c.
9056 * regcache.c: Include rsp-low.h.
9057 * ax.c: Include rsp-low.h.
9058 * Makefile.in (SFILES): Add common/rsp-low.c.
9059 (OBS): Add rsp-low.o.
9060 (rsp-low.o): New target.
9061
9062 2014-02-12 Tom Tromey <tromey@redhat.com>
9063
9064 * utils.h (pulongest, plongest, phex_nz): Don't declare.
9065 Include print-utils.h.
9066 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
9067 (plongest, thirty_two, phex_nz): Remove.
9068 * Makefile.in (SFILES): Add common/print-utils.c.
9069 (OBS): Add print-utils.o.
9070 (print-utils-ipa.o): New target.
9071 (print-utils.o): New target.
9072 (IPA_OBJS): Add print-utils-ipa.o.
9073
9074 2014-02-06 Tom Tromey <tromey@redhat.com>
9075
9076 * Makefile.in (SFILES): Fix indentation.
9077
9078 2014-02-05 Doug Evans <dje@google.com>
9079
9080 * linux-low.c (linux_wait_for_event): Improve comment.
9081 (linux_wait_1): Keep current_inferior in sync with event_child.
9082
9083 2014-01-22 Doug Evans <dje@google.com>
9084
9085 * gdbthread.h (gdb_id_to_thread): Delete, unused.
9086
9087 2014-01-22 Doug Evans <dje@google.com>
9088
9089 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
9090 * configure: Regenerate.
9091 * config.in: Regenerate.
9092 * Makefile.in (SFILES): Add debug.c.
9093 (OBS): Add debug.o.
9094 * debug.c: New file.
9095 * debug.h: New file.
9096 * linux-aarch64-low.c (*): Update all debugging printfs to use
9097 debug_printf instead of fprintf.
9098 * linux-arm-low.c (*): Ditto.
9099 * linux-cris-low.c (*): Ditto.
9100 * linux-crisv32-low.c (*): Ditto.
9101 * linux-m32r-low.c (*): Ditto.
9102 * linux-sparc-low.c (*): Ditto.
9103 * linux-x86.c (*): Ditto.
9104 * linux-low.c (*): Ditto.
9105 (linux_wait_1): Add calls to debug_enter, debug_exit.
9106 (linux_wait): Remove redundant debugging printf.
9107 (stop_all_lwps): Add calls to debug_enter, debug_exit.
9108 (linux_resume, unstop_all_lwps): Ditto.
9109 * mem-break.c (*): Update all debugging printfs to use
9110 debug_printf instead of fprintf.
9111 * remote-utils.c (*): Ditto.
9112 * thread-db.c (*): Ditto.
9113 * server.c #include <ctype.h>, "gdb_vecs.h".
9114 (debug_threads): Moved to debug.c.
9115 (*): Update all debugging printfs to use debug_printf instead of
9116 fprintf.
9117 (start_inferior): Replace call to fflush with call to debug_flush.
9118 (monitor_show_help): Mention set debug-format.
9119 (parse_debug_format_options): New function.
9120 (handle_monitor_command): Handle "monitor set debug-format".
9121 (gdbserver_usage): Mention --debug-format.
9122 (main): Parse --debug-format.
9123 * server.h (debug_threads): Declaration moved to debug.h.
9124 #include "debug.h".
9125 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
9126 trace_debug_1 that uses debug_printf.
9127 (tracepoint_look_up_symbols): Update all debugging printfs to use
9128 debug_printf instead of fprintf.
9129
9130 2014-01-20 Baruch Siach <baruch@tkos.co.il>
9131
9132 * linux-xtensa-low.c: Include asm/ptrace.h instead of
9133 sys/ptrace.h.
9134
9135 2014-01-17 Pedro Alves <palves@redhat.com>
9136
9137 PR build/16445
9138 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
9139 defined after including gdb_proc_service.h.
9140
9141 2014-01-16 Doug Evans <dje@google.com>
9142
9143 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
9144 (match_dll): Use it.
9145
9146 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9147
9148 * target.h (target_ops) <read_btrace>: Change parameters and
9149 return type to allow error reporting.
9150 * server.c (handle_qxfer_btrace): Support delta reads. Pass
9151 trace reading errors on.
9152 * linux-low.c (linux_low_read_btrace): Pass trace reading
9153 errors on.
9154 (linux_low_disable_btrace): New.
9155
9156 2014-01-15 Doug Evans <dje@google.com>
9157
9158 * inferiors.c (thread_id_to_gdb_id): Delete.
9159 * inferiors.h (thread_id_to_gdb_id): Delete.
9160
9161 2014-01-13 Eli Zaretskii <eliz@gnu.org>
9162
9163 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
9164 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
9165 versions.
9166
9167 2014-01-08 Pedro Alves <palves@redhat.com>
9168
9169 * server.c (handle_status): Don't discard previous queued stop
9170 replies or thread's pending status here.
9171 (main) <disconnection>: Do it here instead.
9172
9173 2014-01-08 Pedro Alves <palves@redhat.com>
9174
9175 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
9176 * server.c (visit_actioned_threads, handle_pending_status): New
9177 function.
9178 (handle_v_cont): Factor out parts to ...
9179 (resume): ... this new function. If in all-stop, and a thread
9180 being resumed has a pending status, report it without actually
9181 resuming.
9182 (myresume): Adjust to use the new 'resume' function.
9183 (clear_pending_status_callback, set_pending_status_callback)
9184 (find_status_pending_thread_callback): New functions.
9185 (handle_status): Handle the case of multiple threads having
9186 interesting statuses to report. Report threads' real last signal
9187 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
9188 with an interesting thread to report the status for, instead of
9189 always reporting the status of the first thread.
9190
9191 2014-01-01 Joel Brobecker <brobecker@adacore.com>
9192
9193 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
9194 * gdbreplay.c (gdbreplay_version): Likewise.
9195
9196 2013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
9197
9198 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
9199 iov.iov_len with the real length in use.
9200
9201 2013-12-13 Joel Brobecker <brobecker@adacore.com>
9202
9203 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
9204 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
9205 for all targets that use win32-low.c.
9206 * win32-low.c (win32_ensure_ntdll_loaded): New function.
9207 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
9208
9209 2013-12-13 Pedro Alves <palves@redhat.com>
9210
9211 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
9212 if equal to TARGET_WAITKIND_LOADED.
9213 * win32-low.c (cached_status): New static global.
9214 (win32_wait): Add declaration.
9215 (do_initial_child_stuff): Flush all initial pending debug events
9216 up to the initial breakpoint.
9217 (win32_wait): If CACHED_STATUS was set, return that instead
9218 of doing a real wait. Remove the code resuming the execution
9219 of the inferior after receiving a TARGET_WAITKIND_LOADED event
9220 during the initial phase. Also remove the code changing
9221 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
9222 TARGET_WAITKIND_STOPPED.
9223
9224 2013-12-11 Yao Qi <yao@codesourcery.com>
9225
9226 * notif.c (handle_notif_ack): Return 0 if no notification
9227 matches.
9228
9229 2013-11-20 Doug Evans <dje@google.com>
9230
9231 * linux-low.c (linux_set_resume_request): Fix comment.
9232
9233 2013-11-20 Doug Evans <dje@google.com>
9234
9235 * linux-low.c (resume_status_pending_p): Tweak comment.
9236
9237 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
9238
9239 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
9240 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
9241 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
9242 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
9243 (srv_amd64_regobj): Add amd64-mpx.o.
9244 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
9245 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
9246 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
9247 * i387-fp.c (num_pl_bnd_register) Added constant.
9248 (num_pl_bnd_cfg_registers) Added constant.
9249 (struct i387_xsave) Added reserved area and MPX fields.
9250 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
9251 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
9252 function.
9253 (tdesc_i386_mpx_linux): Add MPX amd64 target.
9254 (init_registers_amd64_mpx_linux): Declare new function.
9255 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
9256 (x86_64_regmap): Add MPX registers.
9257 (x86_linux_read_description): Add MPX case.
9258 (initialize_low_arch): Initialize MPX targets.
9259
9260 2013-11-18 Tom Tromey <tromey@redhat.com>
9261
9262 * configure: Rebuild.
9263 * configure.ac: Don't check for stdlib.h.
9264 * gdbreplay.c: Unconditionally include stdlib.h.
9265
9266 2013-11-18 Tom Tromey <tromey@redhat.com>
9267
9268 * config.in: Rebuild.
9269 * configure: Rebuild.
9270 * configure.ac: Don't use AC_HEADER_DIRENT.
9271
9272 2013-11-18 Tom Tromey <tromey@redhat.com>
9273
9274 * server.h: Don't check HAVE_STRING_H.
9275 * gdbreplay.c: Don't check HAVE_STRING_H.
9276 * configure: Rebuild.
9277
9278 2013-11-18 Tom Tromey <tromey@redhat.com>
9279
9280 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
9281 LIBGNU.
9282
9283 2013-11-08 Tom Tromey <tromey@redhat.com>
9284
9285 * configure, config.in: Rebuild.
9286 * configure.ac: Remove unused configury.
9287
9288 2013-11-08 Tom Tromey <tromey@redhat.com>
9289
9290 * acinclude.m4: Include common.m4, codeset.m4.
9291 * configure, config.in: Rebuild.
9292 * configure.ac: Use GDB_AC_COMMON.
9293
9294 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
9295
9296 * linux-s390-low.c (HWCAP_S390_TE): New define.
9297 (s390_arch_setup): Consider the TE field in the HWCAP for
9298 determining 'have_regset_tdb'.
9299
9300 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
9301
9302 PR gdb/16014
9303 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
9304 call to sizeof.
9305
9306 2013-10-02 Pedro Alves <palves@redhat.com>
9307
9308 * server.c (process_serial_event): Don't output "GDBserver
9309 exiting" if GDB is connected through stdio.
9310 * target.c (mywait): Likewise, be silent if GDB is connected
9311 through stdio.
9312
9313 2013-10-01 Joel Brobecker <brobecker@adacore.com>
9314
9315 * lynx-low.c (lynx_add_threads_after_attach): New function.
9316 (lynx_attach): Remove call to add_thread. Add call to
9317 lynx_add_threads_after_attach instead.
9318
9319 2013-09-28 Mike Frysinger <vapier@gentoo.org>
9320
9321 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
9322 * config.in, configure: Regenerated.
9323
9324 2013-09-18 Yao Qi <yao@codesourcery.com>
9325
9326 PR server/15959
9327 * server.c (start_inferior): Clear 'resume_info'.
9328
9329 2013-09-16 Jiong Wang <jiwang@tilera.com>
9330
9331 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
9332 for each register.
9333
9334 2013-09-16 Jiong Wang <jiwang@tilera.com>
9335
9336 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
9337 linux-tile-low.o to srv_tgtobj.
9338
9339 2013-09-16 Will Newton <will.newton@linaro.org>
9340
9341 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
9342 out regs.
9343
9344 2013-09-06 Pedro Alves <palves@redhat.com>
9345
9346 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
9347 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
9348 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
9349 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
9350 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
9351 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
9352
9353 2013-09-06 Pedro Alves <palves@redhat.com>
9354
9355 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
9356 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
9357
9358 2013-09-06 Pedro Alves <palves@redhat.com>
9359
9360 * linux-amd64-ipa.c: Include tracepoint.h.
9361 * linux-i386-ipa.c: Include tracepoint.h.
9362
9363 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
9364
9365 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
9366 (ps_get_thread_area): New function.
9367
9368 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
9369
9370 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
9371 (initialize_low_arch): Call init_registers_crisv32 rather than
9372 init_register_crisv32.
9373
9374 2013-09-05 Pedro Alves <palves@redhat.com>
9375
9376 * server.h (handle_vFile, hostio_last_error_from_errno): Move
9377 to ...
9378 * hostio.h: ... this new file.
9379 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
9380 win32-low.c: Include hostio.h.
9381
9382 2013-09-05 Pedro Alves <palves@redhat.com>
9383
9384 * server.h (gdb_client_data, handler_func, callback_handler_func)
9385 (delete_file_handler, add_file_handler, append_callback_event)
9386 (delete_callback_event, start_event_loop, initialize_event_loop):
9387 Move to event-loop.h and include it.
9388 * event-loop.h: New file.
9389
9390 2013-09-05 Pedro Alves <palves@redhat.com>
9391
9392 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
9393 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
9394 (loaded_dll, unloaded_dll): Move to ...
9395 * dll.h: ... this new file.
9396 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
9397
9398 2013-09-05 Pedro Alves <palves@redhat.com>
9399
9400 * server.h (current_process, get_thread_process, all_processes)
9401 (add_inferior_to_list, for_each_inferior, current_inferior)
9402 (remove_inferior, add_process, remove_process, find_process_pid)
9403 (have_started_inferiors_p, have_attached_inferiors_p)
9404 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
9405 (clear_inferiors, find_inferior, find_inferior_id)
9406 (inferior_target_data, set_inferior_target_data)
9407 (inferior_regcache_data, set_inferior_regcache_data): Move to
9408 inferiors.h, and include it.
9409 * inferiors.h: New file.
9410
9411 2013-09-05 Pedro Alves <palves@redhat.com>
9412
9413 * server.h (struct emit_ops, current_insn_ptr, emit_error):
9414 Move ...
9415 * ax.h: ... here.
9416
9417 2013-09-05 Pedro Alves <palves@redhat.com>
9418
9419 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
9420 tracepoint.h.
9421 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
9422 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
9423 (handle_tracepoint_general_set, handle_tracepoint_query)
9424 (tracepoint_finished_step, tracepoint_was_hit)
9425 (release_while_stepping_state_list, current_traceframe)
9426 (in_readonly_region, traceframe_read_mem)
9427 (fetch_traceframe_registers, traceframe_read_sdata)
9428 (traceframe_read_info, struct fast_tpoint_collect_status)
9429 (fast_tracepoint_collecting, force_unlock_trace_buffer)
9430 (handle_tracepoit_bkpts, initialize_low_tracepoint)
9431 (supply_fast_tracepoint_registers)
9432 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
9433 (ipa_tdesc, claim_trampoline_space)
9434 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
9435 (agent_mem_read, agent_get_trace_state_variable_value)
9436 (agent_set_trace_state_variable_value, agent_tsv_read)
9437 (agent_mem_read_string, get_raw_reg_func_addr)
9438 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
9439 * tracepoint.h: ... this new file.
9440
9441 2013-09-05 Pedro Alves <palves@redhat.com>
9442
9443 * server.h (perror_with_name, error, fatal, warning, paddress)
9444 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
9445 include it.
9446 * utils.h: New file.
9447
9448 2013-09-05 Pedro Alves <palves@redhat.com>
9449
9450 * server.h (remote_debug, noack_mode, transport_is_reliable)
9451 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
9452 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
9453 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
9454 (write_enn, initialize_async_io, enable_async_io)
9455 (disable_async_io, check_remote_input_interrupt_request)
9456 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
9457 (dead_thread_notify, prepare_resume_reply)
9458 (decode_address_to_semicolon, decode_address, decode_m_packet)
9459 (decode_M_packet, decode_X_packet, decode_xfer_write)
9460 (decode_search_memory_packet, unhexify, hexify)
9461 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
9462 (look_up_one_symbol, relocate_instruction)
9463 (monitor_output): Move to remote-utils.h, and include it.
9464 * remote-utils.h: New file.
9465
9466 2013-09-05 Pedro Alves <palves@redhat.com>
9467
9468 * server.h (_): Delete.
9469
9470 2013-09-02 Pedro Alves <palves@redhat.com>
9471
9472 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
9473 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
9474 allocated.
9475 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
9476
9477 2013-09-02 Pierre Muller <muller@sourceware.org>
9478
9479 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
9480 or WriteProcessMemory complete successfully and handle
9481 ERROR_PARTIAL_COPY error.
9482
9483 2013-09-02 Pedro Alves <palves@redhat.com>
9484
9485 * server.c (gdb_read_memory): Return -1 on traceframe memory read
9486 error instead of EIO.
9487
9488 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9489
9490 PR server/15604
9491 * linux-low.c: Include filestuff.h.
9492 (linux_create_inferior) <pid == 0>: Call close_most_fds.
9493 * lynx-low.c: Include filestuff.h.
9494 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
9495 * server.c: Include filestuff.h.
9496 (main): Call notice_open_fds.
9497 * spu-low.c: Include filestuff.h.
9498 (spu_create_inferior) <pid == 0>: Call close_most_fds.
9499
9500 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
9501
9502 * Makefile.in: Explain why ../target and ../nat are not
9503 listed as include file search paths.
9504 (linux-waitpid.o): New object file rule.
9505 * configure.srv (srv_native_linux_obj): New variable.
9506 Replace all occurrences of linux native object files with
9507 $srv_native_linux_obj.
9508 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
9509 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
9510 (linux_enable_event_reporting): Remove declaration.
9511 (my_waitpid): Moved to common/linux-waitpid.c.
9512 (linux_wait_for_event): Pass ptid when calling
9513 linux_enable_event_reporting.
9514 (linux_supports_tracefork_flag): Remove.
9515 (linux_enable_event_reporting): Likewise.
9516 (linux_tracefork_grandchild): Remove.
9517 (STACK_SIZE): Moved to common/linux-ptrace.c.
9518 (linux_tracefork_child): Remove.
9519 (linux_test_for_tracefork): Remove.
9520 (linux_look_up_symbols): Call linux_supports_traceclone.
9521 (initialize_low): Remove call to linux_test_for_tracefork.
9522 * linux-low.h (PTRACE_TYPE_ARG3): Move to
9523 common/linux-ptrace.h.
9524 (PTRACE_TYPE_ARG4): Likewise.
9525 Include linux-ptrace.h.
9526
9527 2013-08-21 Pedro Alves <palves@redhat.com>
9528
9529 * config.in: Renegerate.
9530
9531 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
9532
9533 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
9534 (SFILES): Remove $(srcdir)/common/target-common.c and
9535 add $(srcdir)/target/waitstatus.c.
9536 (OBS): Remove target-common.o and add waitstatus.o.
9537 (server_h): Remove $(srcdir)/../common/target-common.h and
9538 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
9539 and $(srcdir)/../target/waitstatus.h.
9540 (target-common.o): Remove.
9541 (waitstatus.o): New target object file.
9542 * target.h: Do not include target-common.h and
9543 include target/resume.h, target/wait.h and
9544 target/waitstatus.h.
9545
9546 2013-08-13 Luis Machado <lgustavo@codesourcery.com>
9547
9548 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
9549 to PTRACE_TYPE_ARG3.
9550 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
9551 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
9552 PTRACE_TYPE_ARG4.
9553 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
9554 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
9555
9556 2013-07-27 Jie Zhang <jie@codesourcery.com>
9557 Daniel Jacobowitz <dan@codesourcery.com>
9558 Yao Qi <yao@codesourcery.com>
9559
9560 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
9561 (mips-linux-watch.o): New rule.
9562 (mips_linux_watch_h): New variable.
9563 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
9564 srv_tgtobj.
9565 * linux-mips-low.c: Include mips-linux-watch.h.
9566 (struct arch_process_info, struct arch_lwp_info): New.
9567 (update_watch_registers_callback): New function.
9568 (mips_linux_new_process, mips_linux_new_thread) New functions.
9569 (mips_linux_prepare_to_resume, mips_insert_point): New
9570 functions.
9571 (mips_remove_point, mips_stopped_by_watchpoint): New
9572 functions.
9573 (rsp_bp_type_to_target_hw_bp_type): New function.
9574 (mips_stopped_data_address): New function.
9575 (the_low_target): Add watchpoint support functions.
9576
9577 2013-07-27 Yao Qi <yao@codesourcery.com>
9578
9579 * i386-low.c: Include break-common.h.
9580 (enum target_hw_bp_type): Remove.
9581
9582 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
9583
9584 * Makefile.in (SFILES): /common/target-common.c.
9585 (OBS): Add target-common.o.
9586 (server_h): Add $(srcdir)/../common/target-common.h.
9587 (target-common.o): New target.
9588 * server.c (queue_stop_reply_callback): Free
9589 status string after use.
9590 * target.c (target_waitstatus_to_string): Remove.
9591 * target.h: Include target-common.h.
9592 (resume_kind): Likewise.
9593 (target_waitkind): Likewise.
9594 (target_waitstatus): Likewise.
9595 (TARGET_WNOHANG): Likewise.
9596
9597 2013-07-04 Yao Qi <yao@codesourcery.com>
9598
9599 * Makefile.in (host_alias): Use @host_noncanonical@.
9600 (target_alias): Use @target_noncanonical@.
9601 * configure.ac: Use ACX_NONCANONICAL_TARGET and
9602 ACX_NONCANONICAL_HOST.
9603 * configure: Regenerated.
9604
9605 Revert:
9606 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
9607
9608 * configure.ac (version_host, version_target): Set and AC_SUBST them.
9609 * configure: Rebuild.
9610 * Makefile.in (version_host, version_target): Get from configure.
9611 (version.c): Use $(version_host) and $(version_target).
9612
9613 2013-07-03 Pedro Alves <palves@redhat.com>
9614
9615 * Makefile.in (config.status): Depend on development.sh.
9616 * acinclude.m4: Include libmcheck.m4.
9617 * configure: Regenerate.
9618
9619 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
9620
9621 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
9622 attribute inside the parentheses.
9623 (winapi_DebugSetProcessKillOnExit): Ditto.
9624 (winapi_DebugBreakProcess): Ditto.
9625 (winapi_GenerateConsoleCtrlEvent): Ditto.
9626
9627 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
9628
9629 * notif.h (notif_event): Add a dummy member to avoid compiler
9630 errors.
9631
9632 2013-07-01 Pedro Alves <palves@redhat.com>
9633
9634 * hostio.c (HOSTIO_PATH_MAX): Define.
9635 (require_filename, handle_open, handle_unlink, handle_readlink):
9636 Use it.
9637
9638 2013-07-01 Pedro Alves <palves@redhat.com>
9639
9640 * server.h: Include "pathmax.h".
9641 * linux-low.c: Don't include sys/param.h.
9642 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
9643 MAXPATHLEN.
9644 * win32-low.c: Don't include sys/param.h.
9645 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
9646
9647 2013-07-01 Pedro Alves <palves@redhat.com>
9648
9649 * event-loop.c: Don't check HAVE_UNISTD_H before including
9650 <unistd.h>.
9651 * gdbreplay.c: Likewise.
9652 * remote-utils.c: Likewise.
9653 * server.c: Likewise.
9654 * configure.ac: Don't check for unistd.h.
9655 * configure: Regenerate.
9656
9657 2013-06-28 Tom Tromey <tromey@redhat.com>
9658
9659 * Makefile.in (version.c): Use version.in, not
9660 common/version.in.
9661
9662 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
9663
9664 * configure.ac (version_host, version_target): Set and AC_SUBST them.
9665 * configure: Rebuild.
9666 * Makefile.in (version_host, version_target): Get from configure.
9667 (version.c): Use $(version_host) and $(version_target).
9668
9669 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
9670
9671 Fix trace-status to output user name without trailing colon.
9672 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
9673
9674 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
9675
9676 Fix trace-status to output proper start-time and stop-time.
9677 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
9678 output start time and stop time in hex as gdb expects.
9679
9680 2013-06-26 Pedro Alves <pedro@codesourcery.com>
9681
9682 * tracepoint.c (build_traceframe_info_xml): Output trace state
9683 variables present in the trace buffer.
9684
9685 2013-06-24 Tom Tromey <tromey@redhat.com>
9686
9687 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
9688 create-version.sh.
9689 (version.o): Remove.
9690 * gdbreplay.c: Include version.h.
9691 (version, host_name): Don't declare.
9692 * server.h: Include version.h.
9693 (version, host_name): Don't declare.
9694
9695 2013-06-12 Pedro Alves <palves@redhat.com>
9696
9697 * linux-x86-low.c (linux_is_elf64): Delete global.
9698 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
9699 with local linux_pid_exe_is_elf_64_file use.
9700
9701 2013-06-11 Pedro Alves <palves@redhat.com>
9702
9703 * linux-low.c (regset_disabled, disable_regset): New functions.
9704 (regsets_fetch_inferior_registers)
9705 (regsets_store_inferior_registers): Use them.
9706 (initialize_regsets_info); Don't allocate the disabled_regsets
9707 array here.
9708 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
9709 comment.
9710
9711 2013-06-11 Pedro Alves <palves@redhat.com>
9712
9713 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
9714 xmalloc.
9715
9716 2013-06-11 Pedro Alves <palves@redhat.com>
9717
9718 * linux-x86-low.c (initialize_low_arch): Call
9719 init_registers_x32_avx_linux.
9720
9721 2013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9722
9723 Fix compatibility with Android Bionic.
9724 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
9725 it is not empty.
9726
9727 2013-06-07 Pedro Alves <palves@redhat.com>
9728
9729 PR server/14823
9730 * Makefile.in (OBS): Add tdesc.o.
9731 (IPA_OBJS): Add tdesc-ipa.o.
9732 (tdesc-ipa.o): New rule.
9733 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
9734 interface.
9735 * linux-low.c (new_inferior): Delete.
9736 (disabled_regsets, num_regsets): Delete.
9737 (linux_add_process): Adjust to set the new per-process
9738 new_inferior flag.
9739 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
9740 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
9741 was a stop. When calling arch_setup, switch the current inferior
9742 to the thread that got an event.
9743 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
9744 (regsets_fetch_inferior_registers)
9745 (regsets_store_inferior_registers): New regsets_info parameter.
9746 Adjust to use it.
9747 (linux_register_in_regsets): New regs_info parameter. Adjust to
9748 use it.
9749 (register_addr, fetch_register, store_register): New usrregs_info
9750 parameter. Adjust to use it.
9751 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
9752 parameter regs_info. Adjust to use it.
9753 (linux_fetch_registers): Get the current inferior's regs_info, and
9754 adjust to use it.
9755 (linux_store_registers): Ditto.
9756 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
9757 (initialize_low): Don't initialize the target_regsets here. Call
9758 initialize_low_arch.
9759 * linux-low.h (target_regsets): Delete declaration.
9760 (struct regsets_info): New.
9761 (struct usrregs_info): New.
9762 (struct regs_info): New.
9763 (struct process_info_private) <new_inferior>: New field.
9764 (struct linux_target_ops): Delete the num_regs, regmap, and
9765 regset_bitmap fields. New field regs_info.
9766 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
9767 * i387-fp.c (num_xmm_registers): Delete.
9768 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
9769 calls to new interface.
9770 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
9771 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
9772 Infer the number of xmm registers from the regcache's target
9773 description.
9774 * i387-fp.h (num_xmm_registers): Delete.
9775 * inferiors.c (add_thread): Don't install the thread's regcache
9776 here.
9777 * proc-service.c (gregset_info): Fetch the current inferior's
9778 regs_info. Adjust to use it.
9779 * regcache.c: Include tdesc.h.
9780 (register_bytes, reg_defs, num_registers)
9781 (gdbserver_expedite_regs): Delete.
9782 (get_thread_regcache): If the thread doesn't have a regcache yet,
9783 create one, instead of aborting gdbserver.
9784 (regcache_invalidate_one): Rename to ...
9785 (regcache_invalidate_thread): ... this.
9786 (regcache_invalidate_one): New.
9787 (regcache_invalidate): Only invalidate registers of the current
9788 process.
9789 (init_register_cache): Add target_desc parameter, and use it.
9790 (new_register_cache): Ditto. Assert the target description has a
9791 non zero registers_size.
9792 (regcache_cpy): Add assertions. Adjust.
9793 (realloc_register_cache, set_register_cache): Delete.
9794 (registers_to_string, registers_from_string): Adjust.
9795 (find_register_by_name, find_regno, find_register_by_number)
9796 (register_cache_size): Add target_desc parameter, and use it.
9797 (free_register_cache_thread, free_register_cache_thread_one)
9798 (regcache_release, register_cache_size): New.
9799 (register_size): Add target_desc parameter, and use it.
9800 (register_data, supply_register, supply_register_zeroed)
9801 (supply_regblock, supply_register_by_name, collect_register)
9802 (collect_register_as_string, collect_register_by_name): Adjust.
9803 * regcache.h (struct target_desc): Forward declare.
9804 (struct regcache) <tdesc>: New field.
9805 (init_register_cache, new_register_cache): Add target_desc
9806 parameter.
9807 (regcache_invalidate_thread): Declare.
9808 (regcache_invalidate_one): Delete declaration.
9809 (regcache_release): Declare.
9810 (find_register_by_number, register_cache_size, register_size)
9811 (find_regno): Add target_desc parameter.
9812 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
9813 declarations.
9814 * remote-utils.c: Include tdesc.h.
9815 (outreg, prepare_resume_reply): Adjust.
9816 * server.c: Include tdesc.h.
9817 (gdbserver_xmltarget): Delete declaration.
9818 (get_features_xml, process_serial_event): Adjust.
9819 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
9820 declare.
9821 (struct process_info) <tdesc>: New field.
9822 (ipa_tdesc): Declare.
9823 * tdesc.c: New file.
9824 * tdesc.h: New file.
9825 * tracepoint.c: Include tdesc.h.
9826 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
9827 (get_context_regcache): Adjust to pass ipa_tdesc down.
9828 (do_action_at_tracepoint): Adjust to get the register cache size
9829 from the context regcache's description.
9830 (traceframe_walk_blocks): Adjust to get the register cache size
9831 from the current trace frame's description.
9832 (traceframe_get_pc): Adjust to get current trace frame's
9833 description and pass it down.
9834 (gdb_collect): Adjust to get the register cache size from the
9835 IPA's description.
9836 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
9837 (gdbserver_xmltarget): Delete.
9838 (initialize_low_tracepoint): Set the ipa's target description.
9839 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
9840 (initialize_low_tracepoint): Set the ipa's target description.
9841 * linux-x86-low.c: Include tdesc.h.
9842 [__x86_64__] (is_64bit_tdesc): New.
9843 (ps_get_thread_area, x86_get_thread_area): Use it.
9844 (i386_cannot_store_register): Rename to ...
9845 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
9846 (i386_cannot_fetch_register): Rename to ...
9847 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
9848 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
9849 to new interface.
9850 (target_regsets): Rename to ...
9851 (x86_regsets): ... this.
9852 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
9853 interface.
9854 (x86_siginfo_fixup): Use is_64bit_tdesc.
9855 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
9856 (tdesc_x32_avx_linux, tdesc_x32_linux)
9857 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
9858 Declare.
9859 (x86_linux_update_xmltarget): Delete.
9860 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
9861 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
9862 (AMD64_LINUX_USER64_CS): New.
9863 (x86_linux_read_description): New, based on
9864 x86_linux_update_xmltarget.
9865 (same_process_callback): New.
9866 (x86_arch_setup_process_callback): New.
9867 (x86_linux_update_xmltarget): New.
9868 (x86_regsets_info): New.
9869 (amd64_linux_regs_info): New.
9870 (i386_linux_usrregs_info): New.
9871 (i386_linux_regs_info): New.
9872 (x86_linux_regs_info): New.
9873 (x86_arch_setup): Reimplement.
9874 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
9875 (x86_emit_ops): Ditto.
9876 (the_low_target): Adjust. Install x86_linux_regs_info,
9877 x86_cannot_fetch_register, and x86_cannot_store_register.
9878 (initialize_low_arch): New.
9879 * linux-ia64-low.c (tdesc_ia64): Declare.
9880 (ia64_fetch_register): Adjust.
9881 (ia64_usrregs_info, regs_info): New globals.
9882 (ia64_regs_info): New function.
9883 (the_low_target): Adjust.
9884 (initialize_low_arch): New function.
9885 * linux-sparc-low.c (tdesc_sparc64): Declare.
9886 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
9887 Adjust.
9888 (sparc_arch_setup): New function.
9889 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
9890 (the_low_target): Adjust.
9891 (initialize_low_arch): New function.
9892 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
9893 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
9894 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
9895 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
9896 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
9897 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
9898 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
9899 (tdesc_powerpc_isa205_vsx64l): Declare.
9900 (ppc_cannot_store_register, ppc_collect_ptrace_register)
9901 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
9902 (ppc_set_pc, ppc_get_hwcap): Adjust.
9903 (ppc_usrregs_info): Forward declare.
9904 (!__powerpc64__) ppc_regmap_adjusted: New global.
9905 (ppc_arch_setup): Adjust to the current process'es target
9906 description.
9907 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
9908 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
9909 (ppc_store_evrregset): Adjust.
9910 (target_regsets): Rename to ...
9911 (ppc_regsets): ... this, and make static.
9912 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
9913 (ppc_regs_info): New function.
9914 (the_low_target): Adjust.
9915 (initialize_low_arch): New function.
9916 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
9917 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
9918 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
9919 (tdesc_s390x_linux64v2): Declare.
9920 (s390_collect_ptrace_register, s390_supply_ptrace_register)
9921 (s390_fill_gregset, s390_store_last_break): Adjust.
9922 (target_regsets): Rename to ...
9923 (s390_regsets): ... this, and make static.
9924 (s390_get_pc, s390_set_pc): Adjust.
9925 (s390_get_hwcap): New target_desc parameter, and use it.
9926 [__s390x__] (have_hwcap_s390_high_gprs): New global.
9927 (s390_arch_setup): Adjust to set the current process'es target
9928 description. Don't adjust the regmap.
9929 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
9930 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
9931 (regs_info_3264): New globals.
9932 (s390_regs_info): New function.
9933 (the_low_target): Adjust.
9934 (initialize_low_arch): New function.
9935 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
9936 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
9937 [__mips64] (init_registers_mips_linux)
9938 (init_registers_mips_dsp_linux): Delete defines.
9939 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
9940 (have_dsp): New global.
9941 (mips_read_description): New, based on mips_arch_setup.
9942 (mips_arch_setup): Reimplement.
9943 (get_usrregs_info): New function.
9944 (mips_cannot_fetch_register, mips_cannot_store_register)
9945 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
9946 (mips_fill_fpregset, mips_store_fpregset): Adjust.
9947 (target_regsets): Rename to ...
9948 (mips_regsets): ... this, and make static.
9949 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
9950 (dsp_regs_info, regs_info): New globals.
9951 (mips_regs_info): New function.
9952 (the_low_target): Adjust.
9953 (initialize_low_arch): New function.
9954 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
9955 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
9956 Declare.
9957 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
9958 (arm_read_description): New, with bits factored from
9959 arm_arch_setup.
9960 (arm_arch_setup): Reimplement.
9961 (target_regsets): Rename to ...
9962 (arm_regsets): ... this, and make static.
9963 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
9964 (arm_regs_info): New function.
9965 (the_low_target): Adjust.
9966 (initialize_low_arch): New function.
9967 * linux-m68k-low.c (tdesc_m68k): Declare.
9968 (target_regsets): Rename to ...
9969 (m68k_regsets): ... this, and make static.
9970 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
9971 (m68k_regs_info): New function.
9972 (m68k_arch_setup): New function.
9973 (the_low_target): Adjust.
9974 (initialize_low_arch): New function.
9975 * linux-sh-low.c (tdesc_sharch): Declare.
9976 (target_regsets): Rename to ...
9977 (sh_regsets): ... this, and make static.
9978 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
9979 (sh_regs_info, sh_arch_setup): New functions.
9980 (the_low_target): Adjust.
9981 (initialize_low_arch): New function.
9982 * linux-bfin-low.c (tdesc_bfin): Declare.
9983 (bfin_arch_setup): New function.
9984 (bfin_usrregs_info, regs_info): New globals.
9985 (bfin_regs_info): New function.
9986 (the_low_target): Adjust.
9987 (initialize_low_arch): New function.
9988 * linux-cris-low.c (tdesc_cris): Declare.
9989 (cris_arch_setup): New function.
9990 (cris_usrregs_info, regs_info): New globals.
9991 (cris_regs_info): New function.
9992 (the_low_target): Adjust.
9993 (initialize_low_arch): New function.
9994 * linux-cris-low.c (tdesc_crisv32): Declare.
9995 (cris_arch_setup): New function.
9996 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
9997 (cris_regs_info): New function.
9998 (the_low_target): Adjust.
9999 (initialize_low_arch): New function.
10000 * linux-m32r-low.c (tdesc_m32r): Declare.
10001 (m32r_arch_setup): New function.
10002 (m32r_usrregs_info, regs_info): New globals.
10003 (m32r_regs_info): Adjust.
10004 (initialize_low_arch): New function.
10005 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
10006 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
10007 (tic6x_usrregs_info): Forward declare.
10008 (tic6x_read_description): New function, based on ...
10009 (tic6x_arch_setup): ... this. Reimplement.
10010 (target_regsets): Rename to ...
10011 (tic6x_regsets): ... this, and make static.
10012 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
10013 (tic6x_regs_info): New function.
10014 (the_low_target): Adjust.
10015 (initialize_low_arch): New function.
10016 * linux-xtensa-low.c (tdesc_xtensa): Declare.
10017 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
10018 (target_regsets): Rename to ...
10019 (xtensa_regsets): ... this, and make static.
10020 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
10021 globals.
10022 (xtensa_arch_setup, xtensa_regs_info): New functions.
10023 (the_low_target): Adjust.
10024 (initialize_low_arch): New function.
10025 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
10026 (nios2_arch_setup): Set the current process'es tdesc.
10027 (target_regsets): Rename to ...
10028 (nios2_regsets): ... this.
10029 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
10030 (nios2_regs_info): New function.
10031 (the_low_target): Adjust.
10032 (initialize_low_arch): New function.
10033 * linux-aarch64-low.c (tdesc_aarch64): Declare.
10034 (aarch64_arch_setup): Set the current process'es tdesc.
10035 (target_regsets): Rename to ...
10036 (aarch64_regsets): ... this.
10037 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
10038 (aarch64_regs_info): New function.
10039 (the_low_target): Adjust.
10040 (initialize_low_arch): New function.
10041 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
10042 globals.
10043 (target_regsets): Rename to ...
10044 (tile_regsets): ... this.
10045 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
10046 (tile_regs_info): New function.
10047 (tile_arch_setup): Set the current process'es tdesc.
10048 (the_low_target): Adjust.
10049 (initialize_low_arch): New function.
10050 * spu-low.c (tdesc_spu): Declare.
10051 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
10052 * win32-arm-low.c (tdesc_arm): Declare.
10053 (arm_arch_setup): New function.
10054 (the_low_target): Install arm_arch_setup instead of
10055 init_registers_arm.
10056 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
10057 (init_windows_x86): Rename to ...
10058 (i386_arch_setup): ... this. Set `win32_tdesc'.
10059 (the_low_target): Adjust.
10060 * win32-low.c (win32_tdesc): New global.
10061 (child_add_thread): Don't create the thread cache here.
10062 (do_initial_child_stuff): Set the new process'es tdesc.
10063 * win32-low.h (struct target_desc): Forward declare.
10064 (win32_tdesc): Declare.
10065 * lynx-i386-low.c (tdesc_i386): Declare global.
10066 (lynx_i386_arch_setup): Set `lynx_tdesc'.
10067 * lynx-low.c (lynx_tdesc): New global.
10068 (lynx_add_process): Set the new process'es tdesc.
10069 * lynx-low.h (struct target_desc): Forward declare.
10070 (lynx_tdesc): Declare global.
10071 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
10072 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
10073 * nto-low.c (nto_tdesc): New global.
10074 (do_attach): Set the new process'es tdesc.
10075 * nto-low.h (struct target_desc): Forward declare.
10076 (nto_tdesc): Declare.
10077 * nto-x86-low.c (tdesc_i386): Declare.
10078 (nto_x86_arch_setup): Set `nto_tdesc'.
10079
10080 2013-06-04 Gary Benson <gbenson@redhat.com>
10081
10082 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
10083 to qSupported response when appropriate.
10084 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
10085 with nonzero-length annex.
10086 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
10087 arguments supplied in annex.
10088
10089 2013-05-31 Doug Evans <dje@google.com>
10090
10091 PR server/15594
10092 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
10093 64 bits in 64-cross-32 environment.
10094
10095 2013-05-28 Pedro Alves <palves@redhat.com>
10096
10097 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
10098 (aarch64-without-fpu.c): Delete rule.
10099 * configure.srv (aarch64*-*-linux*): Remove references to
10100 aarch64-without-fpu.o and aarch64-without-fpu.xml.
10101 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
10102 declaration.
10103
10104 2013-05-24 Pedro Alves <palves@redhat.com>
10105
10106 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
10107 instead of strchr/decode_address. Error if the range isn't split
10108 with a ','. Don't assume there's be a ':' in the action.
10109
10110 2013-05-23 Yao Qi <yao@codesourcery.com>
10111 Pedro Alves <palves@redhat.com>
10112
10113 * linux-low.c (lwp_in_step_range): New function.
10114 (linux_wait_1): If the thread was range stepping and stopped
10115 outside the stepping range, report the stop to GDB. Otherwise,
10116 continue stepping. Add range stepping debug output.
10117 (linux_set_resume_request): Copy the step range from the resume
10118 request to the lwp.
10119 (linux_supports_range_stepping): New.
10120 (linux_target_ops) <supports_range_stepping>: Set to
10121 linux_supports_range_stepping.
10122 * linux-low.h (struct linux_target_ops)
10123 <supports_range_stepping>: New field.
10124 (struct lwp_info) <step_range_start, step_range_end>: New fields.
10125 * linux-x86-low.c (x86_supports_range_stepping): New.
10126 (the_low_target) <supports_range_stepping>: Set to
10127 x86_supports_range_stepping.
10128 * server.c (handle_v_cont): Handle 'r' action.
10129 (handle_v_requests): Append ";r" if the target supports range
10130 stepping.
10131 * target.h (struct thread_resume) <step_range_start,
10132 step_range_end>: New fields.
10133 (struct target_ops) <supports_range_stepping>:
10134 New field.
10135 (target_supports_range_stepping): New macro.
10136
10137 2013-05-17 Joel Brobecker <brobecker@adacore.com>
10138
10139 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
10140 confusion in comment.
10141
10142 2013-05-17 Joel Brobecker <brobecker@adacore.com>
10143
10144 * lynx-low.c (struct process_info_private): New type.
10145 (lynx_add_process): New function.
10146 (lynx_create_inferior, lynx_attach): Replace calls to
10147 add_process by calls to lynx_add_process.
10148 (lynx_resume): If PTID is null, then try using
10149 current_process()->private->last_wait_event_ptid.
10150 Add comments.
10151 (lynx_clear_inferiors): Delete. The contents of that function
10152 has been inlined in lynx_mourn;
10153 (lynx_wait_1): Save the ptid in the process's private data.
10154 (lynx_mourn): Free the process' private data. Replace call
10155 to lynx_clear_inferiors by call to clear_inferiors.
10156
10157 2013-05-17 Yao Qi <yao@codesourcery.com>
10158
10159 * i386-low.c (i386_length_and_rw_bits): Move the comment to
10160 the right place.
10161
10162 2013-05-16 Luis Machado <lgustavo@codesourcery.com>
10163
10164 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
10165 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
10166 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
10167 PT_TEXT_END_ADDR guards. Update comments.
10168 (linux_target_op) <read_offsets>: Conditionally define to
10169 linux_read_offsets if the target is UCLIBC and if it defines
10170 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
10171
10172 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
10173 Andrew Jenner <andrew@codesourcery.com>
10174
10175 * Makefile.in (SFILES): Add linux-nios2-low.c.
10176 (clean): Add action to delete nios2-linux.c.
10177 (nios2-linux.c): New rule.
10178 * configure.srv: Add nios2*-*-linux*.
10179 * linux-nios2-low.c: New.
10180
10181 2013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
10182
10183 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
10184
10185 2013-04-25 Hui Zhu <hui@codesourcery.com>
10186
10187 PR gdb/15186
10188 * ax.c (ax_printf): Add fflush.
10189
10190 2013-04-22 Tom Tromey <tromey@redhat.com>
10191
10192 * Makefile.in (SFILES): Add filestuff.c.
10193 (OBS): Add filestuff.o.
10194 (filestuff.o): New target.
10195 * config.in, configure: Rebuild.
10196 * configure.ac: Check for fdwalk, pipe2.
10197
10198 2013-04-17 Pedro Alves <palves@redhat.com>
10199
10200 * configure.ac (USE_THREAD_DB): Delete variable.
10201 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
10202 Don't AC_SUBST USE_THREAD_DB.
10203 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
10204 * config.in, configure: Regenerate.
10205
10206 2013-04-16 Pedro Alves <palves@redhat.com>
10207
10208 * linux-low.h (struct lwp_info) <thread_known>: Move under
10209 the USE_THREAD_DB #ifdef.
10210
10211 2013-04-16 Pedro Alves <palves@redhat.com>
10212
10213 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
10214 (linux-low.o): Delete rule.
10215 * linux-low.h: Always include "gdb_thread_db.h" instead of
10216 conditionally including thread_db.h.
10217 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
10218 HAVE_THREAD_DB_H.
10219
10220 2013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
10221
10222 * Makefile.in (install-only): Fix make install regression.
10223
10224 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
10225
10226 Convert man pages to texinfo, new gdbinit.5 texinfo page.
10227 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
10228 installation.
10229 * gdbserver.1: Remove.
10230
10231 2013-03-22 Pedro Alves <palves@redhat.com>
10232
10233 * linux-low.c (handle_extended_wait): Don't call
10234 linux_enable_event_reporting.
10235
10236 2013-03-15 Tony Theodore <tonyt@logyst.com>
10237
10238 PR build/9098:
10239 * Makefile.in (SHELL): Use @SHELL@.
10240
10241 2013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
10242
10243 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
10244 compiler warning.
10245
10246 2013-03-13 Joel Brobecker <brobecker@adacore.com>
10247
10248 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
10249 Remove extraneous NULL element.
10250
10251 2013-03-13 Yao Qi <yao@codesourcery.com>
10252
10253 * tracepoint.c (traceframe_read_tsv): Look for the last matched
10254 'V' block in trace frame.
10255
10256 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10257
10258 * target.h (struct target_ops): Add btrace ops.
10259 (target_supports_btrace): New macro.
10260 (target_enable_btrace): New macro.
10261 (target_disable_btrace): New macro.
10262 (target_read_btrace): New macro.
10263 * gdbthread.h (struct thread_info): Add btrace field.
10264 * server.c: Include btrace-common.h.
10265 (handle_btrace_general_set): New function.
10266 (handle_btrace_enable): New function.
10267 (handle_btrace_disable): New function.
10268 (handle_general_set): Call handle_btrace_general_set.
10269 (handle_qxfer_btrace): New function.
10270 (struct qxfer qxfer_packets[]): Add btrace entry.
10271 * inferiors.c (remove_thread): Disable btrace.
10272 * linux-low: Include linux-btrace.h.
10273 (linux_low_enable_btrace): New function.
10274 (linux_low_read_btrace): New function.
10275 (linux_target_ops): Add btrace ops.
10276 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
10277 Add srv_linux_btrace=yes.
10278 (x86_64-*-linux*): Add linux-btrace.o.
10279 Add srv_linux_btrace=yes.
10280 * configure.ac: Define HAVE_LINUX_BTRACE.
10281 * config.in: Regenerated.
10282 * configure: Regenerated.
10283
10284 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10285
10286 * server.c (handle_qxfer): Preserve error message if -3 is
10287 returned.
10288 (qxfer): Document the -3 return value.
10289
10290 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10291
10292 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
10293 (linux_btrace_h): New variable.
10294 (linux-btrace.o): New rule.
10295
10296 2013-03-08 Stan Shebs <stan@codesourcery.com>
10297 Hafiz Abid Qadeer <abidh@codesourcery.com>
10298
10299 * tracepoint.c (trace_buffer_size): New global.
10300 (DEFAULT_TRACE_BUFFER_SIZE): New define.
10301 (init_trace_buffer): Change to one-argument function. Allocate
10302 trace buffer memory.
10303 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
10304 handle QTBuffer:size packet.
10305 (cmd_bigqtbuffer_size): New function.
10306 (initialize_tracepoint): Call init_trace_buffer with
10307 DEFAULT_TRACE_BUFFER_SIZE.
10308 * server.c (handle_query): Add QTBuffer:size in the
10309 supported packets.
10310
10311 2013-03-07 Yao Qi <yao@codesourcery.com>
10312
10313 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
10314 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
10315 of -1.
10316 (cmd_qtsp): Adjust condition. Do post increment.
10317 Set cur_action and cur_step_action back to 0.
10318
10319 2013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
10320
10321 PR server/15236
10322 * linux-low.c (linux_write_memory): Return early success if LEN is
10323 zero.
10324
10325 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
10326
10327 * configure.srv: Add x86_64-*-cygwin* as target.
10328
10329 2013-02-28 Tom Tromey <tromey@redhat.com>
10330
10331 * configure.ac: Invoke AC_SYS_LARGEFILE.
10332 * configure, config.in: Rebuild.
10333
10334 2013-02-28 Corinna Vinschen <vinschen@redhat.com>
10335
10336 * win32-low.c: Throughout, fix format strings and casts of
10337 printf-like functions to avoid type related warnings on all
10338 platforms.
10339 (get_child_debug_event): Print dwDebugEventCode as hex since
10340 that's how it's usually documented.
10341
10342 2013-02-28 Yao Qi <yao@codesourcery.com>
10343
10344 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
10345 pulongest.
10346
10347 2013-02-27 Jiong Wang <jiwang@tilera.com>
10348
10349 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
10350 (reg-tilegx32.c): New rule.
10351 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
10352 * linux-tile-low.c (tile_arch_setup): New function. Invoke
10353 different register info initializer according to elf class.
10354 (init_registers_tilgx32): New function. The tilegx32 register info
10355 initializer.
10356 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
10357 (tile_store_gregset): Likewise.
10358
10359 2013-02-27 Yao Qi <yao@codesourcery.com>
10360
10361 * server.c (process_point_options): Print debug message when
10362 debug_threads is true.
10363
10364 2013-02-26 Yao Qi <yao@codesourcery.com>
10365
10366 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
10367
10368 2013-02-19 Pedro Alves <palves@redhat.com>
10369 Kai Tietz <ktietz@redhat.com>
10370
10371 PR gdb/15161
10372
10373 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
10374 instead of strtoul to extract address from packet.
10375 (process_serial_event) <'z'>: Likewise.
10376
10377 2013-02-18 Yao Qi <yao@codesourcery.com>
10378
10379 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
10380
10381 2013-02-14 Pedro Alves <palves@redhat.com>
10382
10383 Plug memory leak.
10384
10385 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
10386 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
10387
10388 2013-02-14 Pedro Alves <palves@redhat.com>
10389
10390 * tracepoint.c (cmd_qtdpsrc): Use savestring.
10391
10392 2013-02-14 Pedro Alves <palves@redhat.com>
10393
10394 * tracepoint.c (save_string): Delete.
10395 (add_tracepoint_action): Use savestring instead of save_string.
10396
10397 2013-02-12 Pedro Alves <palves@redhat.com>
10398
10399 * linux-xtensa-low.c: Ditto.
10400 * xtensa-xtregs.c: Ditto.
10401
10402 2013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10403
10404 * thread-db.c (thread_db_get_tls_address): NULL pointer check
10405 thread_db.
10406
10407 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
10408
10409 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
10410 aarch64_num_wp_regs and aarch64_num_bp_regs to
10411 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
10412
10413 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
10414
10415 * linux-aarch64-low.c (ps_get_thread_area): Replace
10416 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
10417
10418 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10419 Marcus Shawcroft <marcus.shawcroft@arm.com>
10420 Nigel Stephens <nigel.stephens@arm.com>
10421 Yufeng Zhang <yufeng.zhang@arm.com>
10422
10423 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
10424 (aarch64.c, aarch64-without-fpu.c): New targets.
10425 * configure.srv (aarch64*-*-linux*): New.
10426 * linux-aarch64-low.c: New file.
10427
10428 2013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
10429
10430 * linux-low.c (handle_extended_wait, linux_create_inferior)
10431 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
10432 (dequeue_one_deferred_signal, linux_resume_one_thread)
10433 (fetch_register, linux_write_memory, linux_enable_event_reporting)
10434 (linux_tracefork_grandchild, linux_test_for_tracefork)
10435 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
10436 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
10437 where the argument is 0.
10438
10439 2013-01-25 Yao Qi <yao@codesourcery.com>
10440
10441 * event-loop.c: Include "queue.h".
10442 (gdb_event_p): New typedef.
10443 (struct gdb_event) <next_event>: Remove.
10444 (event_queue): Change to QUEUE(gdb_event_p).
10445 (async_queue_event): Remove.
10446 (gdb_event_xfree): New.
10447 (initialize_event_loop): New.
10448 (process_event): Use API from QUEUE.
10449 (wait_for_event): Likewise.
10450 * server.c (main): Call initialize_event_loop.
10451 * server.h (initialize_event_loop): Declare.
10452
10453 2013-01-18 Yao Qi <yao@codesourcery.com>
10454
10455 * ax.h (struct eval_agent_expr_context): New.
10456 (gdb_eval_agent_expr): Update declaration.
10457 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
10458 TFRAME. Add new argument CTX.
10459 * server.h (struct eval_agent_expr_context): Declare.
10460 (agent_mem_read, agent_tsv_read): Update declaration.
10461 (agent_mem_read_string): Likewise.
10462 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
10463 (add_traceframe_block): Add new argument TPOINT.
10464 Increase TPOINT->traceframe_usage.
10465 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
10466 eval_tracepoint_agent_expr.
10467 (condition_true_at_tracepoint): Likewise.
10468 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
10469 (agent_mem_read_string, agent_tsv_read): Likewise.
10470
10471 2013-01-16 Yao Qi <yao@codesourcery.com>
10472
10473 * linux-low.c (linux_resume_one_lwp): Don't check
10474 'lwp->bp_reinsert != 0'.
10475
10476 2013-01-07 Joel Brobecker <brobecker@adacore.com>
10477 Pedro Alves <palves@redhat.com>
10478
10479 * lynx-low.c (ptrace_request_to_str): Define a temporary
10480 macro and use it to simplify this function's implementation.
10481
10482 2013-01-07 Joel Brobecker <brobecker@adacore.com>
10483
10484 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
10485 sets errno.
10486
10487 2013-01-07 Joel Brobecker <brobecker@adacore.com>
10488
10489 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
10490
10491 2013-01-07 Joel Brobecker <brobecker@adacore.com>
10492
10493 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
10494
10495 2013-01-07 Joel Brobecker <brobecker@adacore.com>
10496
10497 * lynx-low.c (lynx_resume): Use the resume_info parameter
10498 to determine the ptid for the lynx_ptrace call, unless
10499 it is equal to minus_one_ptid, in which case we use the
10500 ptid of the current_inferior.
10501 (lynx_wait_1): After having received a thread create/exit
10502 event, resume the inferior's execution using the signaling
10503 thread's ptid, rather than the old ptid.
10504
10505 2013-01-07 Joel Brobecker <brobecker@adacore.com>
10506
10507 * lynx-low.c (lynx_resume): Delete variable ret.
10508
10509 2013-01-01 Joel Brobecker <brobecker@adacore.com>
10510
10511 * gdbreplay.c (gdbreplay_version): Update copyright year.
10512 * server.c (gdbserver_version): Likewise.
10513
10514 2012-12-17 Joel Brobecker <brobecker@adacore.com>
10515
10516 * lynx-low.c (lynx_wait_1): Add debug trace before adding
10517 new thread.
10518
10519 2012-12-17 Joel Brobecker <brobecker@adacore.com>
10520
10521 * lynx-low.c (ptrace_request_to_str): Add handling for
10522 PTRACE_GETTRACESIG.
10523
10524 2012-12-17 Joel Brobecker <brobecker@adacore.com>
10525
10526 * lynx-low.c (lynx_attach): Delete variable new_process.
10527
10528 2012-12-17 Joel Brobecker <brobecker@adacore.com>
10529
10530 * lynx-low.c (lynx_create_inferior): Delete variable
10531 new_process.
10532
10533 2012-12-17 Joel Brobecker <brobecker@adacore.com>
10534
10535 * lynx-low.c (ptrace_request_to_str): Do not handle
10536 PTRACE_GETTHREADLIST if this macro does not exist.
10537
10538 2012-12-15 Yao Qi <yao@codesourcery.com>
10539
10540 * Makefile.in (OBS): Add notif.o.
10541 * notif.c, notif.h: New.
10542 * server.c: Include "notif.h".
10543 (struct vstop_notif) <next>: Remove.
10544 <base>: New field.
10545 (queue_stop_reply): Update.
10546 (push_event, send_next_stop_reply): Remove.
10547 (discard_queued_stop_replies): Update.
10548 (notif_stop): New variable.
10549 (handle_v_stopped): Remove.
10550 (handle_v_requests): Don't call handle_v_stopped. Call
10551 handle_ack_notif instead.
10552 (queue_stop_reply_callback): Call notif_event_enque instead
10553 of queue_stop_reply.
10554 (handle_status): Don't call send_next_stop_reply, call
10555 notif_write_event instead.
10556 (kill_inferior_callback): Likewise.
10557 (detach_or_kill_inferior_callback): Likewise.
10558 (main): Call initialize_notif.
10559 (process_serial_event): Call QUEUE_is_empty.
10560 (handle_target_event): Call notif_push instead of push event.
10561 * server.h (push_event): Remove declaration.
10562
10563 2012-12-10 Tom Tromey <tromey@redhat.com>
10564
10565 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
10566 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
10567 macros.
10568 (.c.o): Rewrite.
10569 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
10570 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
10571 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
10572 (amd64-linux-ipa.o, ax.o): Rewrite.
10573 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
10574 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
10575 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
10576 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
10577 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
10578 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
10579 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
10580 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
10581 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
10582 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
10583 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
10584 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
10585 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
10586 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
10587 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
10588 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
10589 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
10590 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
10591 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
10592 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
10593 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
10594 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
10595 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
10596 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
10597 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
10598 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
10599 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
10600 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
10601 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
10602 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
10603 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
10604 (reg-tilegx.o): Remove.
10605 (all_object_files): New macro.
10606 Include .deps files.
10607 * aclocal.m4, configure: Rebuild.
10608 * acinclude.m4: Include depstand.m4, lead-dot.m4.
10609 * configure.ac: Invoke ZW_CREATE_DEPDIR,
10610 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
10611
10612 2012-12-05 Tom Tromey <tromey@redhat.com>
10613
10614 PR gdb/14917:
10615 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
10616
10617 2012-11-28 Markus Metzger <markus.t.metzger@intel.com>
10618
10619 * configure.ac: Check for linux/perf_event.h.
10620 * config.in: Regenerated.
10621 * configure: Regenerated.
10622
10623 2012-11-26 Maxime Villard <rustyBSD@gmx.fr>
10624
10625 * hostio.c (handle_readlink): Decrease buffer size
10626 parameter passed to readlink by one byte.
10627
10628 2012-11-26 Yao Qi <yao@codesourcery.com>
10629
10630 * configure.ac (build_warnings): Append '-Wempty-body'.
10631 * configure: Regenerated.
10632 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
10633 body.
10634
10635 2012-11-15 Pierre Muller <muller@sourceware.org>
10636
10637 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
10638 * config.in: Regenerate.
10639 * configure: Regenerate.
10640 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
10641 Use "gdb_wait.h" header instead of <sys/wait.h> header.
10642 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
10643 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
10644 header.
10645 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
10646 instead of <sys/wait.h> header.
10647 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
10648
10649 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
10650
10651 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
10652 (various make rules): Remove -DGDBSERVER
10653
10654 2012-11-09 Yao Qi <yao@codesourcery.com>
10655
10656 * spu-low.c (current_ptid): Move it to ..
10657 * gdbthread.h: ... here. New.
10658 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
10659 * server.c (myresume, process_serial_event): Likewise.
10660 * thread-db.c (thread_db_find_new_threads): Likewise.
10661 * tracepoint.c (run_inferior_command): Likewise.
10662
10663 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
10664
10665 * server.c (handle_search_memory_1): Include access length in
10666 warning message.
10667
10668 2012-09-05 Michael Brandt <michael.brandt@axis.com>
10669
10670 * linux-crisv32-low.c: Fix compile errors.
10671
10672 2012-09-04 Yao Qi <yao@codesourcery.com>
10673
10674 * tracepoint.c (cmd_qtsv): Adjust debug message.
10675 Don't check CUR_TPOINT.
10676
10677 2012-08-28 Yao Qi <yao@codesourcery.com>
10678
10679 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
10680 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
10681 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
10682 Remove declarations of xmalloc, xreallloc, xstrdup and
10683 freeargv.
10684 * Makefile.in (libiberty_h): New.
10685 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
10686 (linux-bfin-low.o): Append dependency 'libiberty.h'.
10687
10688 2012-08-23 Yao Qi <yao@codesourcery.com>
10689
10690 * server.h: Remove declaration of 'xsnprintf'.
10691
10692 2012-08-22 Keith Seitz <keiths@redhat.com>
10693
10694 * server.h: Include build-gnulib-gbserver/config.h.
10695 * gdbreplay.c: Likewise.
10696
10697 2012-08-08 Doug Evans <dje@google.com>
10698
10699 * Makefile.in (SFILES): Add gdb_vecs.c.
10700 (OBS): Add gdb_vecs.o.
10701 (gdb_vecs_h, host_defs_h): New variables.
10702 (thread-db.o): Add $(gdb_vecs_h) dependency.
10703 (gdb_vecs.o): New rule.
10704 * thread-db.c: #include "gdb_vecs.h".
10705 (thread_db_load_search): Use a vector to iterate over path elements.
10706 Handle text appearing after "$pdir".
10707
10708 * configure.ac: Add check for strstr.
10709 * config.in: Regenerate.
10710 * configure: Regenerate.
10711
10712 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10713
10714 * hostio.c (handle_pread): If pread fails, fall back to attempting
10715 lseek/read.
10716 (handle_pwrite): Likewise for pwrite.
10717
10718 2012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
10719
10720 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
10721 between unsupported TYPE and unimplementable ADDR/LEN combination.
10722 (arm_insert_point): Act on new return value.
10723
10724 2012-07-31 Pedro Alves <palves@redhat.com>
10725
10726 * server.c (process_point_options): Only skip tokens if we find
10727 one that is unrecognized. Don't treat 'X' specially while
10728 skipping unrecognized tokens.
10729
10730 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
10731
10732 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
10733 to 4-byte-align HW breakpoint addresses for Thumb.
10734
10735 2012-07-27 Yao Qi <yao@codesourcery.com>
10736
10737 PR remote/14161.
10738
10739 * server.h: Declare gdb_agent_about_to_close.
10740 * target.c (kill_inferior): Include "agent.h".
10741 New. Send command 'kill'.
10742 * target.h (kill_inferior): Removed macro.
10743 * tracepoint.c (gdb_agent_about_to_close): New.
10744 (gdb_agent_helper_thread): Handle command 'close'.
10745 Wait endlessly until the inferior stops.
10746 Install gdb_agent_remove_socket to atexit hook.
10747 (agent_socket_name): New static variable.
10748 (gdb_agent_socket_init): Replace local variable 'name' with
10749 'agent_socket_name'.
10750 (gdb_agent_remove_socket): New.
10751
10752 2012-07-27 Yao Qi <yao@codesourcery.com>
10753
10754 * server.c (process_point_options): Stop at 'X' when parsing.
10755
10756 2012-07-19 Michael Eager <eager@eagercon.com>
10757
10758 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
10759 to hw_execute.
10760 * linux-x86-low.c (x86_insert_point, x86_remove_point):
10761 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
10762 hardware breakpoint.
10763
10764 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
10765
10766 * gdbserver/linux-low.c (initialize_low): Call
10767 linux_ptrace_init_warnings.
10768
10769 2012-07-02 Doug Evans <dje@google.com>
10770
10771 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
10772 pointer to int.
10773
10774 2012-07-02 Stan Shebs <stan@codesourcery.com>
10775
10776 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
10777 (ax.o): Add it to build rule.
10778 (ax-ipa.o): Ditto.
10779 (OBS): Add format.o.
10780 (IPA_OBS): Add format.o.
10781 * server.c (handle_query): Claim support for breakpoint commands.
10782 (process_point_options): Add command case.
10783 (process_serial_event): Leave running if there are printfs in
10784 effect.
10785 * mem-break.h (any_persistent_commands): Declare.
10786 (add_breakpoint_commands): Declare.
10787 (gdb_no_commands_at_breakpoint): Declare.
10788 (run_breakpoint_commands): Declare.
10789 * mem-break.c (struct point_command_list): New struct.
10790 (struct breakpoint): New field command_list.
10791 (any_persistent_commands): New function.
10792 (add_commands_to_breakpoint): New function.
10793 (add_breakpoint_commands): New function.
10794 (gdb_no_commands_at_breakpoint): New function.
10795 (run_breakpoint_commands): New function.
10796 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
10797 locally.
10798 * ax.c: Include format.h.
10799 (ax_printf): New function.
10800 (gdb_eval_agent_expr): Add printf opcode.
10801
10802 2012-06-13 Yao Qi <yao@codesourcery.com>
10803
10804 * server.c (start_inferior): Remove duplicated writes to fields
10805 'last_resume_kind' and 'last_status' of 'current_inferior'.
10806
10807 2012-06-12 Yao Qi <yao@codesourcery.com>
10808 Pedro Alves <palves@redhat.com>
10809
10810 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
10811 comment.
10812 * server.c (handle_v_cont): Extend comment.
10813
10814 2012-06-11 Yao Qi <yao@codesourcery.com>
10815
10816 * linux-low.c (linux_attach): Add 'static'.
10817
10818 2012-06-06 Yao Qi <yao@codesourcery.com>
10819
10820 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
10821
10822 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10823
10824 Fix gcc -flto compilation warning.
10825 * server.c (main): Make variable multi_mode and attach volatile.
10826
10827 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
10828
10829 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
10830 if the platform doesn't know about it.
10831
10832 2012-05-30 Jeff Kenton <jkenton@tilera.com>
10833
10834 * Makefile.in (SFILES): Add linux-tile-low.c.
10835 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
10836 * configure.srv: Handle tilegx-*-linux*.
10837 * linux-tile-low.c: New file.
10838
10839 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
10840
10841 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
10842
10843 2012-05-24 Pedro Alves <palves@redhat.com>
10844
10845 PR gdb/7205
10846
10847 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
10848
10849 2012-05-24 Pedro Alves <palves@redhat.com>
10850
10851 PR gdb/7205
10852
10853 Replace target_signal with gdb_signal throughout.
10854
10855 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
10856
10857 * linux-low.c (linux_store_registers): Avoid the copying sequence
10858 when no data has been retrieved by ptrace.
10859
10860 2012-05-22 Will Deacon <will.deacon@arm.com>
10861
10862 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
10863 Include asm/ptrace.h.
10864 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
10865 already defined.
10866
10867 2012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
10868
10869 * linux-low.c (linux_store_registers): Don't re-retrieve data
10870 with ptrace that has already been obtained from /proc. Always
10871 copy any data retrieved with ptrace to the buffer supplied.
10872
10873 2012-05-11 Yao Qi <yao@codesourcery.com>
10874 Pedro Alves <palves@redhat.com>
10875
10876 * linux-low.c (enum stopping_threads_kind): New.
10877 (stopping_threads): Change type to `enum stopping_threads_kind'.
10878 (handle_extended_wait): If stopping and suspending threads, leave
10879 the new_lwp suspended too.
10880 (linux_wait_for_event): Adjust.
10881 (stop_all_lwps): Set `stopping_threads' to
10882 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
10883 whether we're suspending threads or just stopping them. Assert no
10884 recursion happens.
10885
10886 2012-04-29 Yao Qi <yao@codesourcery.com>
10887
10888 * server.h: Move some code to ...
10889 * gdbthread.h: ... here. New.
10890 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
10891 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
10892 (nto-low.o, win32-low.o): Likewise.
10893 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
10894 * regcache.c, remote-utils.c, server.c: Likewise.
10895 * target.c, tracepoint.c, win32-low.c: Likewise.
10896
10897 2012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
10898
10899 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
10900 (PTRACE_ARG4_TYPE): Likewise.
10901 (PTRACE_XFER_TYPE): Likewise.
10902 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
10903 ptrace to PTRACE_ARG3_TYPE.
10904 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
10905 (PTRACE_ARG4_TYPE): Likewise.
10906 (PTRACE_XFER_TYPE): Likewise.
10907 (linux_detach_one_lwp): Cast fourth argument of
10908 ptrace to long then PTRACE_ARG4_TYPE.
10909 (regsets_fetch_inferior_registers): Cast third argument of
10910 ptrace to long then PTRACE_ARG3_TYPE.
10911 (regsets_store_inferior_registers): Likewise.
10912
10913 2012-04-20 Pedro Alves <palves@redhat.com>
10914
10915 * configure: Regenerate.
10916
10917 2012-04-19 Pedro Alves <palves@redhat.com>
10918
10919 * Makefile.in (GNULIB_BUILDDIR): New.
10920 (LIBGNU, INCGNU, GNULIB_H): Adjust.
10921 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
10922 (all, install-only, uninstall, clean-info, all-lib, clean): No
10923 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
10924 (maintainer-clean realclean distclean): Use subdir_do.
10925 (subdir_do): New.
10926 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
10927 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
10928 * acinclude.m4: Include acx_configure_dir.m4.
10929 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
10930 calls. Call AC_PROG_RANLIB. Configure gnulib using
10931 ACX_CONFIGURE_DIR.
10932 (GNULIB): New.
10933 (GNULIB_STDINT_H): Adjust.
10934 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
10935 * gdbreplay.c: Include build-gnulib/config.h.
10936 * server.h: Likewise.
10937 * aclocal.m4: Regenerate.
10938 * config.in: Regenerate.
10939 * configure: Regenerate.
10940
10941 2012-04-19 Pedro Alves <palves@redhat.com>
10942
10943 * Makefile.in (LIBGNU, INCGNU): Adjust.
10944 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
10945 (all, install-only, uninstall, clean-info, all-lib, clean)
10946 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
10947 * configure.ac: Adjust AC_OUTPUT output.
10948 * aclocal.m4: Regenerate.
10949 * configure: Regenerate.
10950
10951 2012-04-19 Pedro Alves <palves@redhat.com>
10952
10953 * Makefile.in (generated_files): New.
10954 (server_h): Remove the explicit dependency on config.h, and depend
10955 on $generated_files.
10956
10957 2012-04-19 Pedro Alves <palves@redhat.com>
10958
10959 * Makefile.in (INCGNU): Add -Ignulib.
10960
10961 2012-04-19 Pedro Alves <palves@redhat.com>
10962
10963 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
10964 (INCGNU): ... this, and spell out -I here.
10965 (GNULIB_LIB): Rename to ...
10966 (LIBGNU): ... this.
10967 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
10968
10969 2012-04-19 Pedro Alves <palves@redhat.com>
10970
10971 * config.in: Regenerate.
10972
10973 2012-04-19 Pedro Alves <palves@redhat.com>
10974
10975 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
10976 * server.h (memmem): Remove declaration.
10977 * config.in: Regenerate.
10978 * configure: Regenerate.
10979
10980 2012-04-19 Yao Qi <yao@codesourcery.com>
10981
10982 * Makefile.in (SFILES): Add common/vec.c.
10983 (OBS): Add vec.o.
10984 (vec.o): New rule.
10985
10986 2012-04-19 Yao Qi <yao@codesourcery.com>
10987
10988 * remote-utils.c (prepare_resume_reply): Replace with macro
10989 target_core_of_thread.
10990 * server.c (handle_qxfer_threads_proper): Likewise.
10991 * target.h (traget_core_of_thread): New macro.
10992
10993 2012-04-18 Pedro Alves <palves@redhat.com>
10994
10995 * aclocal.m4: Regenerate.
10996 * configure: Regenerate.
10997
10998 2012-04-16 Yao Qi <yao@codesourcery.com>
10999
11000 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
11001 duplicated on address.
11002
11003 2012-04-16 Yao Qi <yao@codesourcery.com>
11004
11005 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
11006 (struct tracepoint_action_ops) <send>: New field.
11007 (m_tracepoint_action_send, r_tracepoint_action_send): New.
11008 (agent_expr_send, x_tracepoint_action_send): New.
11009 (l_tracepoint_action_send): New.
11010 (cmd_qtdp): Download and install tracepoint
11011 according to `use_agent'.
11012 (run_inferior_command): Add one more parameter `len'.
11013 Update callers.
11014 (tracepoint_send_agent): New.
11015 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
11016
11017 2012-04-16 Yao Qi <yao@codesourcery.com>
11018
11019 * tracepoint.c (download_tracepoints): Moved to ...
11020 (cmd_qtstart): ... here.
11021
11022 2012-04-14 Yao Qi <yao@codesourcery.com>
11023
11024 * tracepoint.c: Include inttypes.h.
11025 (struct collect_memory_action): Use sized types.
11026 (struct tracepoint): Likewise.
11027 (cmd_qtdp, stop_tracing): Update print specifiers.
11028 (cmd_qtp, response_tracepoint): Likewise.
11029 (collect_data_at_tracepoint): Likewise.
11030 (collect_data_at_step): Likewise.
11031
11032 2012-04-14 Yao Qi <yao@codesourcery.com>
11033
11034 Import gnulib module inttypes.
11035 * aclocal.m4, config.in, configure: Regenerated.
11036
11037 2012-04-14 Yao Qi <yao@codesourcery.com>
11038
11039 * Makefile.in (maintainer-clean, realclean, distclean): Remove
11040 Makefile and config.status at last.
11041
11042 2012-04-13 Yao Qi <yao@codesourcery.com>
11043
11044 * tracepoint.c: Include stdint.h unconditionally.
11045
11046 2012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
11047
11048 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
11049 on BFD_HAVE_SYS_PROCFS_TYPE.
11050 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
11051 * configure: Regenerate.
11052 * config.in: Likewise.
11053
11054 2012-04-13 H.J. Lu <hongjiu.lu@intel.com>
11055
11056 * Makefile.in (clean): Also remove x32.c x32-linux.c
11057 x32-avx.c x32-avx-linux.c.
11058 (x32.o): New target.
11059 (x32.c): Likewise.
11060 (x32-linux.o): Likewise.
11061 (x32-linux.c): Likewise.
11062 (x32-avx.o): Likewise.
11063 (x32-avx.c): Likewise.
11064 (x32-avx-linux.o): Likewise.
11065 (x32-avx-linux.c): Likewise.
11066
11067 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
11068 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
11069 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
11070 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
11071 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
11072 i386/x32-avx-linux.xml.
11073
11074 * linux-x86-low.c (init_registers_x32_linux): New prototype.
11075 (init_registers_x32_avx_linux): Likwise.
11076 (x86_linux_update_xmltarget): Call init_registers_x32_linux
11077 or init_registers_x32_avx_linux if linux_is_elf64 is false.
11078
11079 2012-04-13 Pedro Alves <palves@redhat.com>
11080
11081 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
11082 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
11083 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
11084 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
11085 the sub-make.
11086
11087 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
11088
11089 * linux-x86-low.c (compat_x32_clock_t): New.
11090 (compat_x32_siginfo_t): Likewise.
11091 (compat_x32_siginfo_from_siginfo): Likewise.
11092 (siginfo_from_compat_x32_siginfo): Likewise.
11093 (linux_is_elf64): Likewise.
11094 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
11095 and siginfo_from_compat_x32_siginfo for x32.
11096 (x86_arch_setup): Set linux_is_elf64.
11097
11098 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
11099
11100 PR gdb/13969
11101 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
11102 e_machine field.
11103 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
11104 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
11105 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
11106 compatible with process.
11107
11108 2012-04-12 Yao Qi <yao@codesourcery.com>
11109
11110 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
11111 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
11112 (install-only, install-info, clean): Handle sub dir gnulib.
11113 (all-lib, am--refresh): New targets.
11114 (memmem.o): Remove target.
11115 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
11116 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
11117 (AC_REPLACE_FUNCS): Remove memmem.
11118 Invoke gl_INIT and AM_INIT_AUTOMAKE.
11119 (AC_OUTPUT): Generate Makefile in gnulib/.
11120 * aclocal.m4, config.in, configure: Regenerated.
11121
11122 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
11123
11124 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
11125
11126 2012-04-05 Pedro Alves <palves@redhat.com>
11127
11128 -Werror=strict-aliasing
11129
11130 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
11131 pointer.
11132
11133 2012-04-04 Pedro Alves <palves@redhat.com>
11134
11135 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
11136 (sparc_store_gregset_from_stack, sparc_store_gregset)
11137 (sparc_breakpoint_at): Fix formatting.
11138
11139 2012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
11140
11141 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
11142 are available.
11143 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
11144 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
11145 * config.in: Regenerate.
11146 * configure: Likewise.
11147
11148 2012-03-29 Pedro Alves <palves@redhat.com>
11149
11150 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
11151 Correct ptrace arguments.
11152
11153 2012-03-28 Pedro Alves <palves@redhat.com>
11154
11155 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
11156 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
11157 (IA64_FR1_REGNUM): New defines.
11158 (ia64_fetch_register): New.
11159 (the_low_target): Install it.
11160 * linux-low.h (struct linux_target_ops) <fetch_register>: New
11161 field.
11162 * linux-low.c (linux_fetch_registers): Try the
11163 the_low_target.fetch_register hook first.
11164
11165 * linux-arm-low.c (the_low_target): Adjust.
11166 * linux-bfin-low.c (the_low_target): Adjust.
11167 * linux-cris-low.c (the_low_target): Adjust.
11168 * linux-crisv32-low.c (the_low_target): Adjust.
11169 * linux-m32r-low.c (the_low_target): Adjust.
11170 * linux-m68k-low.c (the_low_target): Adjust.
11171 * linux-mips-low.c (the_low_target): Adjust.
11172 * linux-ppc-low.c (the_low_target): Adjust.
11173 * linux-s390-low.c (the_low_target): Adjust.
11174 * linux-sh-low.c (the_low_target): Adjust.
11175 * linux-sparc-low.c (the_low_target): Adjust.
11176 * linux-tic6x-low.c (the_low_target): Adjust.
11177 * linux-x86-low.c (the_low_target): Adjust.
11178 * linux-xtensa-low.c (the_low_target): Adjust.
11179
11180 2012-03-26 Pedro Alves <palves@redhat.com>
11181
11182 * server.c (handle_qxfer_libraries): Don't bail early if
11183 the_target->qxfer_libraries_svr4 is not NULL.
11184
11185 2012-03-26 Pedro Alves <palves@redhat.com>
11186
11187 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
11188
11189 2012-03-23 Pedro Alves <palves@redhat.com>
11190
11191 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
11192 "library-list-svr4" element's start tag when the the DSO list is
11193 empty.
11194
11195 2012-03-23 Pedro Alves <palves@redhat.com>
11196
11197 * linux-low.c (read_one_ptr): Read the inferior's pointer through
11198 a variable whose type size is the same as the inferior's pointer
11199 size.
11200
11201 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
11202
11203 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
11204 struct siginfo.
11205 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
11206 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
11207 * linux-low.h: Include <signal.h>.
11208 (struct siginfo): Remove forward declaration.
11209 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
11210 struct siginfo.
11211
11212 2012-03-21 Mike Frysinger <vapier@gentoo.org>
11213
11214 * .gitignore: Ignore more files.
11215
11216 2012-03-19 Pedro Alves <palves@redhat.com>
11217 Jan Kratochvil <jan.kratochvil@redhat.com>
11218
11219 * server.c (cont_thread, general_thread): Add describing comments.
11220 (start_inferior): Clear `cont_thread'.
11221 (handle_v_cont): Don't set `cont_thread' if resuming all threads
11222 of a process.
11223
11224 2012-03-15 Yao Qi <yao@codesourcery.com>
11225
11226 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
11227 handling to ...
11228 (cmd_qtdp): ... here.
11229
11230 2012-03-15 Yao Qi <yao@codesourcery.com>
11231
11232 * tracepoint.c (struct tracepoint_action_ops): New.
11233 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
11234 (m_tracepoint_action_download): New.
11235 (r_tracepoint_action_download): New.
11236 (x_tracepoint_action_download): New.
11237 (l_tracepoint_action_download): New.
11238 (add_tracepoint_action): Install `action->ops' according type.
11239 (download_tracepoint_1): Move code `download' function pointer
11240 of various tracepoint_action_ops.
11241
11242 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11243
11244 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
11245 linux_ptrace_attach_warnings.
11246
11247 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11248
11249 * Makefile.in (linux-ptrace.o): New.
11250 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
11251 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
11252 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
11253 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
11254 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
11255 of these targets.
11256 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
11257
11258 2012-03-08 Yao Qi <yao@codesourcery.com>
11259 Pedro Alves <palves@redhat.com>
11260
11261 Fix PR server/13392.
11262 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
11263 offset of JMP insn.
11264 * tracepoint.c (remove_tracepoint): New.
11265 (cmd_qtdp): Call remove_tracepoint when failed to install.
11266
11267 2012-03-07 Pedro Alves <palves@redhat.com>
11268
11269 * linux-low.c (get_detach_signal): New.
11270 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
11271 Pass on pending signals to PTRACE_DETACH. Check the result of the
11272 ptrace call.
11273 * server.c (program_signals, program_signals_p): New.
11274 (handle_general_set): Handle QProgramSignals.
11275 * server.h (program_signals, program_signals_p): Declare.
11276
11277 2012-03-05 Pedro Alves <palves@redhat.com>
11278 Jan Kratochvil <jan.kratochvil@redhat.com>
11279
11280 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
11281 New comment why.
11282
11283 2012-03-03 Yao Qi <yao@codesourcery.com>
11284
11285 * tracepoint.c (tracepoint_look_up_symbols): Update call to
11286 agent_look_up_symbols.
11287
11288 2012-03-03 Yao Qi <yao@codesourcery.com>
11289
11290 * Makefile.in (linux-low.o): Keep dependence on agent.h.
11291 (linux-x86-low.o): Likewise.
11292 * server.h: Remove in_process_agent_loaded.
11293 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
11294 common/agent.c.
11295 Update callers.
11296
11297 2012-03-03 Yao Qi <yao@codesourcery.com>
11298
11299 * tracepoint.c (gdb_agent_capability): New global.
11300 (in_process_agent_loaded_ust): Renamed to
11301 `in_process_agent_supports_ust'.
11302 Update callers.
11303 (in_process_agent_supports_ust): Call agent_capability_check.
11304 (clear_installed_tracepoints): Assert that agent supports
11305 agent.
11306
11307 2012-03-03 Yao Qi <yao@codesourcery.com>
11308
11309 * linux-low.c (linux_supports_agent): New.
11310 (linux_target_ops): Initialize field `supports_agent' with
11311 linux_supports_agent.
11312 * target.h (struct target_ops) <supports_agent>: New.
11313 (target_supports_agent): New macro.
11314 * server.c (handle_general_set): Handle packet 'QAgent'.
11315 (handle_query): Send `QAgent+'.
11316 * Makefile.in (server.o): Depends on agent.h.
11317
11318 2012-03-03 Yao Qi <yao@codesourcery.com>
11319
11320 * Makefile.in (OBS): Add agent.o.
11321 Add new rule for agent.o.
11322 Track dependence of tracepoint.c on agent.h.
11323 * tracepoint.c (run_inferior_command_1):
11324 (run_inferior_command): Call agent_run_command.
11325 (gdb_ust_connect_sync_socket): Deleted. Move it to
11326 common/agent.c.
11327 (resume_thread, stop_thread): Likewise.
11328 (gdb_ust_socket_init): Renamed to ...
11329 (gdb_agent_socket_init): ... New.
11330 (gdb_ust_thread): Renamed to ...
11331 (gdb_agent_helper_thread): ... New.
11332 (gdb_ust_init): Move some code to ...
11333 (gdb_agent_init): ... here. New.
11334 [HAVE_UST]: Call gdb_ust_init.
11335 (initialize_tracepoint_ftlib): Call gdb_agent_init.
11336 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
11337 * config.in, configure: Regenerated.
11338
11339 2012-03-02 Pedro Alves <palves@redhat.com>
11340
11341 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
11342 * linux-low.c (struct simple_pid_list): New.
11343 (stopped_pids): New a struct simple_pid_list pointer.
11344 (add_to_pid_list, pull_pid_from_list): New.
11345 (handle_extended_wait): Don't assume the first signal new children
11346 report is SIGSTOP. Adjust call to pull_pid_from_list.
11347 (linux_wait_for_lwp): Adjust.
11348
11349 2012-03-02 Yao Qi <yao@codesourcery.com>
11350
11351 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
11352 debug log.
11353
11354 2012-03-02 Yao Qi <yao@codesourcery.com>
11355
11356 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
11357 `stop_pc' and `tpoint'. Update caller.
11358
11359 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
11360
11361 * linux-low.h (linux_target_ops): Add regset_bitmap member.
11362 * linux-low.c (use_linux_regsets): New macro.
11363 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
11364 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
11365 (linux_register_in_regsets): New function.
11366 (usr_fetch_inferior_registers): Skip registers covered by
11367 regsets.
11368 (usr_store_inferior_registers): Likewise.
11369 (usr_fetch_inferior_registers): New macro.
11370 (usr_store_inferior_registers): Likewise.
11371 (linux_fetch_registers): Handle mixed regset/non-regset targets.
11372 (linux_store_registers): Likewise.
11373 * linux-mips-low.c (init_registers_mips_dsp_linux): New
11374 prototype.
11375 (init_registers_mips64_dsp_linux): Likewise.
11376 (init_registers_mips_linux): New macro.
11377 (init_registers_mips_dsp_linux): Likewise.
11378 (mips_dsp_num_regs): Likewise.
11379 (DSP_BASE, DSP_CONTROL): New fallback macros.
11380 (mips_base_regs): New macro.
11381 (mips_regmap): Use it. Fix the size.
11382 (mips_dsp_regmap): New variable.
11383 (mips_dsp_regset_bitmap): Likewise.
11384 (mips_arch_setup): New function.
11385 (mips_cannot_fetch_register): Use the_low_target.regmap rather
11386 than mips_regmap.
11387 (mips_cannot_store_register): Likewise.
11388 (the_low_target): Update .arch_setup, .num_regs and .regmap
11389 initializers. Add .regset_bitmap initializer.
11390 * linux-arm-low.c (the_low_target): Add .regset_bitmap
11391 initializer.
11392 * linux-bfin-low.c (the_low_target): Likewise.
11393 * linux-cris-low.c (the_low_target): Likewise.
11394 * linux-crisv32-low.c (the_low_target): Likewise.
11395 * linux-ia64-low.c (the_low_target): Likewise.
11396 * linux-m32r-low.c (the_low_target): Likewise.
11397 * linux-m68k-low.c (the_low_target): Likewise.
11398 * linux-ppc-low.c (the_low_target): Likewise.
11399 * linux-s390-low.c (the_low_target): Likewise.
11400 * linux-sh-low.c (the_low_target): Likewise.
11401 * linux-sparc-low.c (the_low_target): Likewise.
11402 * linux-tic6x-low.c (the_low_target): Likewise.
11403 * linux-x86-low.c (the_low_target): Likewise.
11404 * linux-xtensa-low.c (the_low_target): Likewise.
11405 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
11406 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
11407 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
11408 srv_xmlfiles.
11409 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
11410 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
11411
11412 2012-02-29 Yao Qi <yao@codesourcery.com>
11413 Pedro Alves <palves@redhat.com>
11414
11415 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
11416 `step_over_finished' is true.
11417
11418 2012-02-27 Pedro Alves <palves@redhat.com>
11419
11420 * linux-low.c (pid_is_stopped): Delete, moved to common/.
11421 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
11422
11423 2012-02-27 Pedro Alves <palves@redhat.com>
11424
11425 PR server/9684
11426 * linux-low.c (pid_is_stopped): New.
11427 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
11428
11429 2012-02-25 Luis Machado <lgustavo@codesourcery.com>
11430
11431 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
11432 of conditions.
11433
11434 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
11435
11436 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
11437
11438 2012-02-24 Luis Machado <lgustavo@codesourcery>
11439
11440 * server.c (handle_query): Advertise support for target-side
11441 breakpoint condition evaluation.
11442 (process_point_options): New function.
11443 (process_serial_event): When inserting a breakpoint, check for
11444 a target-side condition that should be evaluated.
11445
11446 * mem-break.c: Include regcache.h and ax.h.
11447 (point_cond_list_t): New data structure.
11448 (breakpoint) <cond_list>: New field.
11449 (find_gdb_breakpoint_at): Make non-static.
11450 (delete_gdb_breakpoint_at): Clear any target-side
11451 conditions.
11452 (clear_gdb_breakpoint_conditions): New function.
11453 (add_condition_to_breakpoint): Likewise.
11454 (add_breakpoint_condition): Likewise.
11455 (gdb_condition_true_at_breakpoint): Likewise.
11456 (gdb_breakpoint_here): Return result directly instead
11457 of going through a local variable.
11458
11459 * mem-break.h (find_gdb_breakpoint_at): New prototype.
11460 (clear_gdb_breakpoint_conditions): Likewise.
11461 (add_breakpoint_condition): Likewise.
11462 (gdb_condition_true_at_breakpoint): Likewise.
11463
11464 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
11465 (need_step_over_p): Take target-side breakpoint condition into
11466 consideration.
11467
11468 2012-02-24 Luis Machado <lgustavo@codesourcery>
11469
11470 * server.h: Include tracepoint.h.
11471 (agent_mem_read, agent_get_trace_state_variable_value,
11472 agent_set_trace_state_variable_value,
11473 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
11474 get_set_tsv_func_addr): New prototypes.
11475
11476 * ax.h: New include file.
11477 * ax.c: New source file.
11478
11479 * tracepoint.c: Include ax.h.
11480 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
11481 agent_expr, eval_result_type): Move to ax.h.
11482 (parse_agent_expr): Rename to ...
11483 (gdb_parse_agent_expr): ... this, make it non-static and move
11484 to ax.h.
11485 (unparse_agent_expr) Rename to ...
11486 (gdb_unparse_agent_expr): ... this, make it non-static and move
11487 to ax.h.
11488 (eval_agent_expr): Rename to ...
11489 (eval_tracepoint_agent_expr): ... this.
11490 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
11491 forward declarations.
11492 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
11493 (agent_get_trace_state_variable_value): New function.
11494 (agent_set_trace_state_variable_value): New function.
11495 (cmd_qtdp): Call gdb_parse_agent_expr (...).
11496 (response_tracepoint): Call gdb_unparse_agent_expr (...).
11497 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
11498 (condition_true_at_tracepoint): Likewise.
11499 (parse_agent_expr): Rename to ...
11500 (gdb_parse_agent_expr): ... this and move to ax.c.
11501 (unparse_agent_expr): Rename to ...
11502 (gdb_unparse_agent_expr): ... this and move to ax.c.
11503 (gdb_agent_op_name): Move to ax.c.
11504 (eval_agent_expr): Rename to ...
11505 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
11506 and move to ax.c.
11507 (eval_tracepoint_agent_expr): New function.
11508 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
11509 non-static.
11510 (current_insn_ptr, emit_error, struct bytecode_address): Move to
11511 ax.c.
11512 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
11513 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
11514 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
11515 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
11516 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
11517 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
11518 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
11519 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
11520 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
11521 (compile_bytecodes): Remove forward declaration.
11522 (is_goto_target): Move to ax.c.
11523 (compile_bytecodes): Move to ax.c and call
11524 agent_get_trace_state_variable_value (...) and
11525 agent_set_trace_state_variable_value (...).
11526
11527 * Makefile.in: Update ax.c and IPA dependencies.
11528
11529 2012-02-24 Pedro Alves <palves@redhat.com>
11530
11531 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
11532 (cmd_bigqtbuffer_circular): ... this. Only handle
11533 'QTBuffer:circular:'.
11534 (handle_tracepoint_general_set): Adjust.
11535
11536 2012-02-16 Yao Qi <yao@codesourcery.com>
11537
11538 * inferiors.c: Move code to ...
11539 * dll.c: .... here. New.
11540 * server.h: Declare clear_dlls.
11541 * Makefile.in (SFILES): Add dll.c.
11542 (OBS): Add dll.o
11543 (dll.o): New rule.
11544
11545 2012-02-11 Yao Qi <yao@codesourcery.com>
11546
11547 * server.c: (handle_monitor_command): Add a new parameter
11548 `own_buf'.
11549 (handle_query): Update caller.
11550
11551 2012-02-09 Joel Brobecker <brobecker@adacore.com>
11552
11553 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
11554 * configure, config.in: Regenerate.
11555 * hostio.c: Provide an alternate implementation if HAVE_READLINK
11556 is not defined.
11557
11558 2012-02-02 Pedro Alves <palves@redhat.com>
11559
11560 Try SIGKILL first, then PTRACE_KILL.
11561 * linux-low.c (linux_kill_one_lwp): New.
11562 (linux_kill_one_lwp): Rename to ...
11563 (kill_one_lwp_callback): ... this. Use the new
11564 linux_kill_one_lwp.
11565
11566 2012-02-02 Pedro Alves <palves@redhat.com>
11567
11568 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
11569 inferior.
11570
11571 2012-01-27 Pedro Alves <palves@redhat.com>
11572
11573 * linux-low.c (linux_child_pid_to_exec_file): Delete.
11574 (elf_64_file_p): Make static.
11575 (linux_pid_exe_is_elf_64_file): New.
11576 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
11577 Delete declarations.
11578 (linux_pid_exe_is_elf_64_file): Declare.
11579 * linux-x86-low.c (x86_arch_setup): Use
11580 linux_pid_exe_is_elf_64_file.
11581
11582 2012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
11583
11584 * linux-low.c (linux_wait_for_event_1): Rename to ...
11585 (linux_wait_for_event): ... here and merge it with former
11586 linux_wait_for_event - new variable wait_ptid, use it.
11587 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
11588
11589 2012-01-23 Pedro Alves <palves@redhat.com>
11590
11591 * server.c (main): Avoid yet another case of infinite loop while
11592 detaching/killing after a longjmp.
11593
11594 2012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
11595
11596 Code cleanup.
11597 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
11598
11599 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11600
11601 * hostio.c (handle_readlink): New function.
11602 (handle_vFile): Call it to handle "vFile:readlink" packets.
11603
11604 2012-01-20 Pedro Alves <palves@redhat.com>
11605 Ulrich Weigand <ulrich.weigand@linaro.org>
11606
11607 * server.c (handle_v_requests): Only support vAttach and vRun to
11608 start multiple processes when in extended protocol mode.
11609
11610 2012-01-17 Pedro Alves <palves@redhat.com>
11611
11612 * tracepoint.c (initialize_tracepoint): Use mmap instead of
11613 memalign plus mprotect to allocate the scratch buffer.
11614
11615 2012-01-13 Pedro Alves <palves@redhat.com>
11616
11617 * server.c (attach_inferior): Clear `cont_thread'.
11618
11619 2012-01-13 Pedro Alves <palves@redhat.com>
11620
11621 * server.c (main): Avoid infinite loop while detaching/killing
11622 after a longjmp.
11623
11624 2012-01-09 Doug Evans <dje@google.com>
11625
11626 * server.c (start_inferior): Set last_ptid in --wrapper case.
11627
11628 2012-01-06 Yao Qi <yao@codesourcery.com>
11629
11630 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
11631 defined.
11632 [IN_PROCESS_AGENT] (debug_agent): New global variable.
11633
11634 2012-01-04 Yao Qi <yao@codesourcery.com>
11635
11636 * tracepoint.c (cmd_qtdp): Print debug message
11637 for static tracepoint.
11638
11639 2012-01-04 Yao Qi <yao@codesourcery.com>
11640
11641 * tracepoint.c (trace_vdebug): Differentiate debug message
11642 between gdbserver and IPA.
11643
11644 2012-01-03 Yao Qi <yao@codesourcery.com>
11645
11646 * tracepoint.c (tracepoint_was_hit): Don't collect for
11647 static tracepoint.
11648
11649 2012-01-02 Joel Brobecker <brobecker@adacore.com>
11650
11651 * terminal.h: Reformat copyright header.
11652
11653 2012-01-02 Joel Brobecker <brobecker@adacore.com>
11654
11655 * server.c (gdbserver_version): Update copyright year.
11656 * gdbreplay.c (gdbreplay_version): Likewise.
11657
11658 2011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
11659
11660 * linux-low.c (linux_create_inferior): Put empty if clause for write.
11661
11662 Revert:
11663 2011-12-18 Hui Zhu <teawater@gmail.com>
11664 * linux-low.c (linux_create_inferior): Save return value to ret.
11665
11666 2011-12-18 Hui Zhu <teawater@gmail.com>
11667
11668 * linux-low.c (linux_create_inferior): Save return value to ret.
11669
11670 2011-12-16 Doug Evans <dje@google.com>
11671
11672 * linux-low.c (linux_create_inferior): If stdio connection,
11673 redirect stdin from /dev/null, stdout to stderr.
11674 * remote-utils.c (remote_is_stdio): New static global.
11675 (remote_connection_is_stdio): New function.
11676 (remote_prepare): Handle stdio connection.
11677 (remote_open): Ditto.
11678 (remote_close): Don't close stdin for stdio connections.
11679 (read_prim,write_prim): New functions. Replace all calls to
11680 read/write to these.
11681 * server.c (main): Watch for "-" argument. Move call to
11682 remote_prepare before start_inferior.
11683 * server.h (STDIO_CONNECTION_NAME): New macro.
11684 (remote_connection_is_stdio): Declare.
11685
11686 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
11687 in debugging output.
11688
11689 2011-12-15 Yao Qi <yao@codesourcery.com>
11690
11691 * tracepoint.c: Include sys/syscall.h.
11692 (gdb_ust_thread): Remove preprocessor conditional.
11693
11694 2011-12-14 Pedro Alves <pedro@codesourcery.com>
11695
11696 * linux-low.c (linux_detach_one_lwp): Call
11697 the_low_target.prepare_to_resume before detaching.
11698
11699 2011-12-14 Yao Qi <yao@codesourcery.com>
11700
11701 * tracepoint.c (gdb_ust_thread): Don't ignore return value
11702 of write.
11703
11704 2011-12-14 Yao Qi <yao@codesourcery.com>
11705
11706 * i386-low.c (i386_low_stopped_data_address): Initialize local
11707 variable `control'.
11708
11709 2011-12-13 Pedro Alves <pedro@codesourcery.com>
11710
11711 PR remote/13492
11712
11713 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
11714 DR_CONTROL unless necessary. Extend comments.
11715 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
11716 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
11717
11718 2011-12-13 Yao Qi <yao@codesourcery.com>
11719
11720 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
11721 macros.
11722 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
11723
11724 2011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
11725
11726 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
11727 Print new debug message for such case.
11728
11729 2011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
11730
11731 Fix overlapping memcpy.
11732 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
11733 the read_inferior_memory transfer.
11734 (delete_fast_tracepoint_jump): New variable buf. Use it for the
11735 write_inferior_memory transfer.
11736 (set_fast_tracepoint_jump): New variable buf. Use it for the
11737 read_inferior_memory and write_inferior_memory transfers.
11738 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
11739 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
11740 Use it for the write_inferior_memory transfer.
11741 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
11742 buffers.
11743
11744 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
11745
11746 * linux-low.c (fetch_register, store_register): Make code
11747 consistent, fix formatting.
11748
11749 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
11750
11751 * linux-low.c (usr_store_inferior_registers): Factor out code
11752 to handle individual registers into...
11753 (store_register): ... this new function.
11754
11755 2011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
11756
11757 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
11758 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
11759 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
11760 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
11761 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
11762 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
11763 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
11764 (srv_xmlfiles): Add new XML files.
11765
11766 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
11767 and <sys/uio.h>.
11768 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
11769 (init_registers_s390_linux32v1): Add prototype.
11770 (init_registers_s390_linux32v2): Likewise.
11771 (init_registers_s390_linux64v1): Likewise.
11772 (init_registers_s390_linux64v2): Likewise.
11773 (init_registers_s390x_linux64v1): Likewise.
11774 (init_registers_s390x_linux64v2): Likewise.
11775 (s390_num_regs): Increment to 52.
11776 (s390_regmap): Add orig_r2 register.
11777 (s390_num_regs_3264): Increment to 68.
11778 (s390_regmap_3264): Add orig_r2 register.
11779 (s390_collect_ptrace_register): Handle orig_r2 register.
11780 (s390_supply_ptrace_register): Likewise.
11781 (s390_fill_last_break): New function.
11782 (s390_store_last_break): Likewise.
11783 (s390_fill_system_call): New function.
11784 (s390_store_system_call): Likewise.
11785 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
11786 register sets.
11787 (s390_check_regset): New function.
11788 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
11789 NT_S390_SYSTEM_CALL regsets and use appropriate description.
11790 Update target_regsets for available register sets.
11791
11792 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
11793 Jan Kratochvil <jan.kratochvil@redhat.com>
11794
11795 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
11796 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
11797 New.
11798 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
11799 * linux-low.h (struct process_info_private): New member r_debug.
11800 * server.c (handle_qxfer_libraries): Call
11801 the_target->qxfer_libraries_svr4.
11802 (handle_qxfer_libraries_svr4): New function.
11803 (qxfer_packets): New entry "libraries-svr4".
11804 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
11805 * target.h (struct target_ops): New member qxfer_libraries_svr4.
11806 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
11807 PACKET_qXfer_libraries_svr4.
11808
11809 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
11810
11811 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
11812 PSW address/mask between 8-byte and 16-byte formats.
11813 (s390_supply_ptrace_register): Likewise.
11814 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
11815 basic addressing mode bit.
11816
11817 2011-11-24 Stan Shebs <stan@codesourcery.com>
11818
11819 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
11820
11821 2011-11-17 Stan Shebs <stan@codesourcery.com>
11822
11823 * tracepoint.c (struct tracepoint): New field traceframe_usage.
11824 (tracing_start_time): New global.
11825 (tracing_stop_time): New global.
11826 (tracing_user_name): New global.
11827 (tracing_notes): New global.
11828 (tracing_stop_note): New global.
11829 (cmd_qtstart): Set traceframe_usage, start_time.
11830 (stop_tracing): Set stop_time.
11831 (cmd_qtstatus): Report additional status.
11832 (cmd_qtp): New function.
11833 (handle_tracepoint_query): Call it.
11834 (cmd_qtnotes): New function.
11835 (handle_tracepoint_general_set): Call it.
11836 (get_timestamp): Rename from tsv_get_timestamp.
11837
11838 2011-11-14 Stan Shebs <stan@codesourcery.com>
11839 Kwok Cheung Yeung <kcy@codesourcery.com>
11840
11841 * linux-x86-low.c (small_jump_insn): New.
11842 (i386_install_fast_tracepoint_jump_pad): Add arguments for
11843 trampoline and error message, build a trampoline and issue a small
11844 jump instruction to it.
11845 (x86_install_fast_tracepoint_jump_pad): Add arguments for
11846 trampoline and error message.
11847 (x86_get_min_fast_tracepoint_insn_len): New.
11848 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
11849 * linux-low.h (struct linux_target_ops): Add arguments to
11850 install_fast_tracepoint_jump_pad operation, add new operation.
11851 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
11852 arguments.
11853 (linux_get_min_fast_tracepoint_insn_len): New function.
11854 (linux_target_op): Add new operation.
11855 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
11856 (gdb_trampoline_buffer_end): Ditto.
11857 (gdb_trampoline_buffer_error): Ditto.
11858 (struct ipa_sym_addresses): Add fields for new IPA variables.
11859 (symbol_list): Add entries for new IPA variables.
11860 (struct tracepoint): Add fields to hold the address range of the
11861 trampoline used by the tracepoint.
11862 (trampoline_buffer_head): New static variable.
11863 (trampoline_buffer_tail): Ditto.
11864 (claim_trampoline_space): New function.
11865 (have_fast_tracepoint_trampoline_buffer): New function.
11866 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
11867 structure.
11868 (install_fast_tracepoint): Ditto, also add error buffer argument.
11869 (cmd_qtminftpilen): New function.
11870 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
11871 (fast_tracepoint_from_trampoline_address): New function.
11872 (fast_tracepoint_collecting): Handle trampoline as part of jump
11873 pad space.
11874 (set_trampoline_buffer_space): New function.
11875 (initialize_tracepoint): Initialize new IPA variables.
11876 * target.h (struct target_ops): Add arguments to
11877 install_fast_tracepoint_jump_pad operation, add new
11878 get_min_fast_tracepoint_insn_len operation.
11879 (target_get_min_fast_tracepoint_insn_len): New.
11880 (install_fast_tracepoint_jump_pad): Add arguments.
11881 * server.h (IPA_BUFSIZ): Define.
11882 * linux-i386-ipa.c: Include extra header files.
11883 (initialize_fast_tracepoint_trampoline_buffer): New function.
11884 (initialize_low_tracepoint): Call it.
11885 * server.h (set_trampoline_buffer_space): Declare.
11886 (claim_trampoline_space): Ditto.
11887 (have_fast_tracepoint_trampoline_buffer): Ditto.
11888
11889 2011-11-14 Yao Qi <yao@codesourcery.com>
11890
11891 * server.c (handle_query): Handle InstallInTrace for qSupported.
11892 * tracepoint.c (add_tracepoint): Sort list.
11893 (install_tracepoint, download_tracepoint): New.
11894 (cmd_qtdp): Call them to install and download tracepoints.
11895 (sort_tracepoints): Removed.
11896 (cmd_qtstart): Update.
11897
11898 2011-11-14 Yao Qi <yao@codesourcery.com>
11899
11900 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
11901 * mem-break.h: Declare.
11902 * tracepoint.c (cmd_qtstart): Move some code to ...
11903 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
11904 New.
11905 (download_tracepoints): Move some code to ...
11906 (download_tracepoint_1): ... here. New.
11907
11908 2011-11-08 Yao Qi <yao@codesourcery.com>
11909
11910 * remote-utils.c (relocate_instruction): A comment fix.
11911
11912 2011-11-07 Joel Brobecker <brobecker@adacore.com>
11913
11914 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
11915 (i386_dr_low_get_control, i386_dr_low_get_status): Use
11916 dr_status_mirror and dr_control_mirror from debug_reg_state.
11917 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
11918 (i386_initial_stuff): Remove use of deleted globals.
11919 (i386_get_thread_context, i386_set_thread_context,
11920 i386_thread_added): Use dr_status_mirror and dr_control_mirror
11921 from debug_reg_state.
11922
11923 2011-11-05 Yao Qi <yao@codesourcery.com>
11924
11925 * tracepoint.c (gdb_collect): Loop over tracepoints of same
11926 address as TPOINT's.
11927
11928 2011-11-02 Stan Shebs <stan@codesourcery.com>
11929
11930 * tracepoint.c (agent_mem_read_string): New function.
11931 (eval_agent_expr): Call it for tracenz.
11932 * server.c (handle_query): Report support for tracenz.
11933
11934 2011-11-02 Yao Qi <yao@codesourcery.com>
11935
11936 * tracepoint.c (cmd_qtstart): Remove unused local variables.
11937
11938 2011-11-02 Yao Qi <yao@codesourcery.com>
11939
11940 * target.h: Fix a typo in comment.
11941
11942 2011-10-31 Pedro Alves <pedro@codesourcery.com>
11943
11944 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
11945 clobber the breakpoints' shadows with fast tracepoint jumps.
11946 * mem-break.h (check_mem_write): Add `myaddr' parameter.
11947 * target.c (write_inferior_memory): Also pass MYADDR down to
11948 check_mem_write.
11949
11950 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
11951
11952 * configure.ac: Check support for personality routine.
11953 * configure: Regenerate.
11954 * config.in: Likewise.
11955 * linux-low.c: Include <sys/personality.h>.
11956 Define ADDR_NO_RANDOMIZE if necessary.
11957 (linux_create_inferior): Disable address space randomization when
11958 forking inferior, if requested.
11959 (linux_supports_disable_randomization): New function.
11960 (linux_target_ops): Install it.
11961 * server.h (disable_randomization): Declare.
11962 * server.c (disable_randomization): New global variable.
11963 (handle_general_set): Handle QDisableRandomization.
11964 (handle_query): Likewise for qSupported.
11965 (main): Support --disable-randomization and --no-disable-randomization
11966 command line arguments.
11967 * target.h (struct target_ops): Add supports_disable_randomization.
11968 (target_supports_disable_randomization): New macro.
11969
11970 2011-09-29 Mike Frysinger <vapier@gentoo.org>
11971
11972 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
11973 ifdef check.
11974 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
11975 [!PT_GETDSBT] (target_loadmap): New definition.
11976 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
11977 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
11978 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
11979 and PT_GETDSBT to LINUX_LOADMAP.
11980 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
11981 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
11982
11983 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
11984
11985 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
11986 (arm_linux_hwbp_cap): New static variable.
11987 (arm_linux_get_hwbp_cap): Replace by ...
11988 (arm_linux_init_hwbp_cap): ... this new function.
11989 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
11990 (arm_linux_get_hw_watchpoint_count): Likewise.
11991 (arm_linux_get_hw_watchpoint_max_length): Likewise.
11992 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
11993 (arm_prepare_to_resume): Use perror_with_name instead of error.
11994
11995 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
11996
11997 * linux-arm-low.c: Include <signal.h>.
11998 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
11999 (struct arm_linux_hwbp_cap): New data type.
12000 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
12001 (struct arm_linux_hw_breakpoint): New data type.
12002 (MAX_BPTS, MAX_WPTS): Define.
12003 (struct arch_process_info, struct arch_lwp_info): New data types.
12004 (arm_linux_get_hwbp_cap): New function.
12005 (arm_linux_get_hw_breakpoint_count): Likewise.
12006 (arm_linux_get_hw_watchpoint_count): Likewise.
12007 (arm_linux_get_hw_watchpoint_max_length): Likewise.
12008 (arm_hwbp_control_initialize): Likewise.
12009 (arm_hwbp_control_is_enabled): Likewise.
12010 (arm_hwbp_control_is_initialized): Likewise.
12011 (arm_hwbp_control_disable): Likewise.
12012 (arm_linux_hw_breakpoint_equal): Likewise.
12013 (arm_linux_hw_point_initialize): Likewise.
12014 (struct update_registers_data): New data structure.
12015 (update_registers_callback: New function.
12016 (arm_insert_point): Likewise.
12017 (arm_remove_point): Likewise.
12018 (arm_stopped_by_watchpoint): Likewise.
12019 (arm_stopped_data_address): Likewise.
12020 (arm_new_process): Likewise.
12021 (arm_new_thread): Likewise.
12022 (arm_prepare_to_resume): Likewise.
12023 (the_low_target): Register arm_insert_point, arm_remove_point,
12024 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
12025 arm_new_thread, and arm_prepare_to_resume.
12026
12027 2011-09-15 Stan Shebs <stan@codesourcery.com>
12028
12029 * server.h (struct emit_ops): Add compare-goto fields.
12030 * tracepoint.c (gdb_agent_op_sizes): New table.
12031 (emit_eq_goto): New function.
12032 (emit_ne_goto): New function.
12033 (emit_lt_goto): New function.
12034 (emit_le_goto): New function.
12035 (emit_gt_goto): New function.
12036 (emit_ge_goto): New function.
12037 (is_goto_target): New function.
12038 (compile_bytecodes): Recognize special cases of compare-goto
12039 combinations and call specialized emitters for them.
12040 * linux-x86-low.c (amd64_emit_eq_goto): New function.
12041 (amd64_emit_ne_goto): New function.
12042 (amd64_emit_lt_goto): New function.
12043 (amd64_emit_le_goto): New function.
12044 (amd64_emit_gt_goto): New function.
12045 (amd64_emit_ge_goto): New function.
12046 (amd64_emit_ops): Add the new functions.
12047 (i386_emit_eq_goto): New function.
12048 (i386_emit_ne_goto): New function.
12049 (i386_emit_lt_goto): New function.
12050 (i386_emit_le_goto): New function.
12051 (i386_emit_gt_goto): New function.
12052 (i386_emit_ge_goto): New function.
12053 (i386_emit_ops): Add the new functions.
12054
12055 2011-09-08 Stan Shebs <stan@codesourcery.com>
12056
12057 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
12058 (i386_emit_epilogue): Restore %ebx.
12059
12060 2011-08-31 Jie Zhang <jzhang918@gmail.com>
12061
12062 * server.c (step_thread): Remove definition.
12063 (process_serial_event): Don't handle Hs.
12064 * server.h (step_thread): Remove declaration.
12065 * target.c (set_desired_inferior): Remove use of step_thread.
12066
12067 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
12068
12069 * linux-low.c: Include linux-procfs.h.
12070 (linux_attach_lwp_1): Update comments.
12071 (linux_attach): Scan for existing threads when attaching to a
12072 process that is the tgid.
12073 * Makefile.in: Update dependencies.
12074
12075 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
12076
12077 * configure.srv: Add linux-procfs.o dependencies.
12078
12079 2011-08-14 Yao Qi <yao@codesourcery.com>
12080
12081 * target.h (struct target_ops): Fix indent.
12082 * win32-low.c (win32_target_ops): Fix comment.
12083
12084 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
12085 Yao Qi <yao@codesourcery.com>
12086
12087 * Makefile.in (clean): Remove tic6x-*.c files.
12088 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
12089 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
12090 (tic6x-c64xp-linux.c): Likewise.
12091 * configure.srv: Add support for tic6x-*-uclinux.
12092 * linux-tic6x-low.c: New.
12093 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
12094
12095 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
12096 Yao Qi <yao@codesourcery.com>
12097
12098 * target.h (struct target_ops): Add read_loadmap.
12099 * linux-low.c (struct target_loadseg): New type.
12100 (struct target_loadmap): New type.
12101 (linux_read_loadmap): New function.
12102 (linux_target_ops): Add linux_read_loadmap.
12103 * server.c (handle_query): Support qXfer:fdpic:read packet.
12104 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
12105 to NULL.
12106
12107 2011-08-05 Eli Zaretskii <eliz@gnu.org>
12108
12109 * win32-low.c: Include <stdint.h>.
12110
12111 2011-07-22 Pedro Alves <pedro@codesourcery.com>
12112
12113 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
12114 to the inferior here.
12115 (i386_remove_aligned_watchpoint): Ditto.
12116 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
12117 fit part of the watchpoint in the debug registers.
12118 (i386_update_inferior_debug_regs): New.
12119 (i386_low_insert_watchpoint): Work on a local mirror of the debug
12120 registers, and only update the inferior on success.
12121 (i386_low_remove_watchpoint): Ditto.
12122
12123 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
12124
12125 * linux-low.c (compare_ints, unique, list_threads, show_process,
12126 linux_core_of_thread): Delete.
12127 (linux_target_ops): Change linux_core_of_thread to
12128 linux_common_core_of_thread.
12129 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
12130 * utils.c (malloc_failure): Change type of argument.
12131 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
12132 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
12133 common/linux-osdata.c, common/ptid.c and common/buffer.c.
12134 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
12135 (IPA_OBJS): Add common-utils-ipa.o.
12136 (ptid_h, linux_osdata_h): New macros.
12137 (server_h): Add common/common-utils.h, common/xml-utils.h,
12138 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
12139 common/ptid.h.
12140 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
12141 ptid.o, buffer.o): New rules.
12142 (linux-low.o): Add common/linux-osdata.h as a dependency.
12143 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
12144 * configure.ac: Add AC_HEADER_DIRENT check.
12145 * config.in: Regenerate.
12146 * configure: Regenerate.
12147 * remote-utils.c (xml_escape_text): Delete.
12148 (buffer_grow, buffer_free, buffer_init, buffer_finish,
12149 buffer_xml_printf): Move to common/buffer.c.
12150 * server.c (main): Remove call to initialize_inferiors.
12151 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
12152 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
12153 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
12154 internal_error, gdb_assert, gdb_assert_fail): Delete.
12155 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
12156 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
12157 common/buffer.h.
12158 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
12159 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
12160 initialize_inferiors): Delete.
12161
12162 2011-07-20 Pedro Alves <pedro@codesourcery.com>
12163
12164 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
12165 symbol error.
12166
12167 2011-05-31 Pedro Alves <pedro@codesourcery.com>
12168
12169 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
12170 assertion.
12171 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
12172
12173 2011-05-26 Yao Qi <yao@codesourcery.com>
12174
12175 * Makefile.in (thread-db.o): Track dependence to
12176 common/gdb_thread_db.h.
12177 * thread-db.c: include gdb_thread_db.h from right place.
12178
12179 2011-05-16 Adrian Cornish <gnu@bluedreamer.com>
12180
12181 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
12182 __FILE__ and __LINE__ to internal_error.
12183
12184 2011-05-13 Doug Evans <dje@google.com>
12185
12186 * thread-db.c (try_thread_db_load_from_sdir): New function.
12187 (try_thread_db_load_from_dir): New function.
12188 (thread_db_load_search): Handle $sdir, ignore $pdir.
12189 Remove trying of system directories if search of
12190 libthread-db-search-path fails, that is now done via $sdir.
12191
12192 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
12193
12194 * server.c (handle_query): Add EnableDisableTracepoints to the list
12195 of supported features.
12196 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
12197 tracepoints.
12198 (cmd_qtenable_disable): New.
12199 (cmd_qtstart): Install tracepoints even if disabled.
12200 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
12201 receiving a QTEnable or QTDisable packet.
12202 (gdb_collect): Skip data collection if fast tracepoint is disabled.
12203 (ust_marker_to_static_tracepoint): Do not ignore disabled static
12204 tracepoints.
12205 (gdb_probe): Skip data collection if static tracepoint is disabled.
12206
12207 2011-05-10 Doug Evans <dje@google.com>
12208
12209 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
12210
12211 2011-05-04 Doug Evans <dje@google.com>
12212
12213 * linux-low.c (linux_join): Skip process lookup.
12214 * spu-low.c (spu_join): Ditto.
12215 * server.c (join_inferiors_callback): Delete.
12216 (process_serial_event): For 'D' packet (detach) call join_inferior
12217 directly.
12218
12219 2011-05-04 Joseph Myers <joseph@codesourcery.com>
12220
12221 * README: Don't mention xscale*-*-linux*.
12222 * configure.srv (xscale*-*-linux*): Don't handle target.
12223
12224 2011-04-27 Nathan Froyd <froydnj@codesourcery.com>
12225
12226 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
12227 casting pointers.
12228 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
12229 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
12230 (i386_emit_void_call_2): Likewise.
12231
12232 2011-04-26 Yao Qi <yao@codesourcery.com>
12233
12234 * linux-low.c: Move common macros to linux-ptrace.h.
12235 Include linux-ptrace.h.
12236 * Makefile.in (linux_ptrace_h): New.
12237 (linux-low.o): Depends on linux-ptrace.h.
12238
12239 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
12240
12241 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
12242 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
12243 (remote_prepare): New function with most of the TCP code from ...
12244 (remote_open): ... here. Detect PORT here unconditionally. Move also
12245 setting transport_is_reliable.
12246 * server.c (run_once): New variable.
12247 (gdbserver_usage): Document it.
12248 (main): Set run_once for `--once'. Call remote_prepare. Exit after
12249 the first run if RUN_ONCE.
12250 * server.h (run_once, remote_prepare): New declarations.
12251
12252 2011-04-19 Tom Tromey <tromey@redhat.com>
12253
12254 * win32-low.c (handle_load_dll): Remove duplicate "the".
12255
12256 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
12257
12258 Remove support for old Cygwin 1.5 versions.
12259 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
12260 function to avoid warning.
12261 (win32_add_one_solib): Use cygwin_conv_path function to avoid
12262 warning.
12263
12264 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
12265
12266 * gdbserver/server.h (Macro _): Define it if not available.
12267
12268 2011-03-14 Michael Snyder <msnyder@vmware.com>
12269
12270 * hostio.c (handle_close): Remove unnecessary null test.
12271
12272 2011-03-10 Joel Brobecker <brobecker@adacore.com>
12273
12274 * Makefile.in (maintainer-clean realclean distclean): Remove
12275 "make ... subdir_do" command.
12276
12277 2011-03-10 Michael Snyder <msnyder@vmware.com>
12278
12279 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
12280
12281 * server.c (handle_v_run): Free alloced buffer on early return.
12282
12283 2011-03-09 Yao Qi <yao@codesourcery.com>
12284
12285 Revert:
12286 2011-03-04 Yao Qi <yao@codesourcery.com>
12287
12288 * Makefile.in: Remove GNU make feature --directory.
12289
12290 2011-03-05 Yao Qi <yao@codesourcery.com>
12291
12292 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
12293 (subdir_do): New make target. Copied from gdb/Makefile.
12294 (maintainer-clean, realclean, distclean, clean): Call corresponding
12295 make targets in common/Makefile.
12296
12297 2011-02-11 Yao Qi <yao@codesourcery.com>
12298
12299 * configure.ac: Call AC_PROG_RANLIB.
12300 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
12301 * configure: Regenerate.
12302
12303 2011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
12304
12305 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
12306
12307 2011-03-06 Yao Qi <yao@codesourcery.com>
12308
12309 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
12310
12311 2011-03-05 Yao Qi <yao@codesourcery.com>
12312
12313 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
12314 (subdir_do): New make target. Copied from gdb/Makefile.
12315 (maintainer-clean, realclean, distclean, clean): Call corresponding
12316 make targets in common/Makefile.
12317
12318 2011-03-04 Yao Qi <yao@codesourcery.com>
12319
12320 * Makefile.in: Remove GNU make feature --directory.
12321
12322 2011-03-04 Michael Snyder <msnyder@vmware.com>
12323
12324 * server.c (queue_stop_reply): Call xmalloc not malloc.
12325
12326 2011-03-02 Michael Snyder <msnyder@vmware.com>
12327
12328 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
12329
12330 2011-02-28 Michael Snyder <msnyder@vmware.com>
12331
12332 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
12333 (cmd_qtframe): Ditto.
12334 (cmd_qtbuffer): Ditto.
12335 (cmd_bigqtbuffer): Ditto.
12336
12337 * utils.c (decimal2str): Initialize 'width' to nine, then
12338 don't mess with it.
12339
12340 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
12341
12342 * hostio.c (require_data): Free *data, not data.
12343
12344 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
12345
12346 * hostio.c (require_data): Use free, not xfree.
12347
12348 2011-02-27 Michael Snyder <msnyder@vmware.com>
12349
12350 * server.c (handle_query): Discard unused value.
12351
12352 * hostio.c (require_data): Free malloc memory before returning
12353 error.
12354
12355 2011-02-26 Michael Snyder <msnyder@vmware.com>
12356
12357 * linux-low.c (list_threads): Call closedir for dirent.
12358
12359 2011-02-27 Michael Snyder <msnyder@vmware.com>
12360
12361 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
12362 a case statement falls through.
12363
12364 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
12365
12366 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
12367 in comparison.
12368
12369 2011-02-26 Michael Snyder <msnyder@vmware.com>
12370
12371 * utils.c (decimal2str): Eliminate dead code and dead param.
12372 (pulongest): Drop dead param from call to decimal2str.
12373 (plongest): Ditto.
12374
12375 2011-02-24 Joel Brobecker <brobecker@adacore.com>
12376
12377 Revert the following patch (not approved yet):
12378 2011-02-21 Hui Zhu <teawater@gmail.com>
12379 * tracepoint.c (tp_printf): New function.
12380 (eval_agent_expr): Handle gdb_agent_op_printf.
12381
12382 2011-02-21 Hui Zhu <teawater@gmail.com>
12383
12384 * tracepoint.c (tp_printf): New function.
12385 (eval_agent_expr): Handle gdb_agent_op_printf.
12386
12387 2011-02-18 Tom Tromey <tromey@redhat.com>
12388
12389 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
12390 (tracepoint.o): Likewise.
12391 * tracepoint.c (enum gdb_agent_op): Use ax.def.
12392 (gdb_agent_op_names): Likewise.
12393
12394 2011-02-18 Tom Tromey <tromey@redhat.com>
12395
12396 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
12397 gdb_agent_op_rot>: New constants.
12398 (gdb_agent_op_names): Add pick and roll.
12399 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
12400 cases.
12401
12402 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
12403
12404 * aclocal.m4: Regenerated with aclocal-1.11.1.
12405
12406 2011-02-14 Pedro Alves <pedro@codesourcery.com>
12407
12408 * server.c (handle_qxfer_traceframe_info): New.
12409 (qxfer_packets): Register "traceframe-info".
12410 (handle_query): Report support for qXfer:traceframe-info:read+.
12411 * tracepoint.c (match_blocktype): New.
12412 (traceframe_find_block_type): Rename to ...
12413 (traceframe_walk_blocks): ... this. Add callback filter argument,
12414 and use it.
12415 (traceframe_find_block_type): New, reimplemented on top of
12416 traceframe_walk_blocks.
12417 (build_traceframe_info_xml): New.
12418 (traceframe_read_info): New.
12419 * server.h (traceframe_read_info): Declare.
12420
12421 2011-02-11 Yao Qi <yao@codesourcery.com>
12422
12423 * configure.ac: Call AC_PROG_RANLIB.
12424 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
12425 * configure: Regenerate.
12426
12427 2011-02-07 Pedro Alves <pedro@codesourcery.com>
12428
12429 * server.c (gdb_read_memory): Change return semantics to allow
12430 partial transfers.
12431 (handle_search_memory_1): Adjust.
12432 (process_serial_event) <'m' packet>: Handle partial transfers.
12433 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
12434
12435 2011-01-28 Pedro Alves <pedro@codesourcery.com>
12436
12437 * regcache.c (init_register_cache): Initialize
12438 regcache->register_status.
12439 (free_register_cache): Release regcache->register_status.
12440 (regcache_cpy): Copy register_status.
12441 (registers_to_string): Print 'x's for unavailable registers.
12442 (supply_register): Mark the register's status valid or
12443 unavailable, depending on whether a buffer was passed in or not.
12444 (supply_register_zeroed): New.
12445 (supply_regblock): Mark the registers' status valid or
12446 unavailable, depending on whether a buffer was passed in or not.
12447 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
12448 (struct regcache): New `register_status' field.
12449 (supply_register_zeroed): Declare.
12450 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
12451 supply_register_zeroed, rather than passing a NULL buffer to
12452 supply_register.
12453 * tracepoint.c (fetch_traceframe_registers): Update comment.
12454
12455 2011-01-28 Pedro Alves <pedro@codesourcery.com>
12456
12457 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
12458 buffer explicit.
12459
12460 2011-01-25 Pedro Alves <pedro@codesourcery.com>
12461
12462 * server.h (decode_xfer_write): Change prototype.
12463 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
12464 and don't extract the annex here.
12465 * server.c (decode_xfer_read): Remove `annex' parameter,
12466 and don't extract the annex here.
12467 (decode_xfer): New.
12468 (struct qxfer): New.
12469 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
12470 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
12471 (handle_qxfer_statictrace): New functions, abstracted out from
12472 handle_query, and made to use the struct qxfer interface.
12473 (handle_threads_qxfer_proper): Rename to ...
12474 (handle_qxfer_threads_proper): ... this.
12475 (handle_threads_qxfer): Rename to ...
12476 (handle_qxfer_threads): ... this. Adjust.
12477 (qxfer_packets): New array.
12478 (handle_qxfer): New function.
12479 (handle_query): Use handle_qxfer.
12480
12481 2011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
12482
12483 * gdbreplay.c: Shorten lines of >= 80 columns.
12484 * linux-low.c: Ditto.
12485 * linux-ppc-low.c: Ditto.
12486 * linux-s390-low.c: Ditto.
12487 * linux-sparc-low.c: Ditto.
12488 * linux-x86-low.c: Ditto.
12489 * linux-xtensa-low.c: Ditto.
12490 * mem-break.c: Ditto.
12491 * nto-low.c: Ditto.
12492 * regcache.h: Ditto.
12493 * remote-utils.c: Ditto.
12494 * server.c: Ditto.
12495 * server.h: Ditto.
12496 * thread-db.c: Ditto.
12497 * tracepoint.c: Ditto.
12498 * utils.c: Ditto.
12499 * win32-low.h: Ditto.
12500
12501 2011-01-05 Joel Brobecker <brobecker@adacore.com>
12502
12503 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
12504 update.
12505
12506 2011-01-01 Joel Brobecker <brobecker@adacore.com>
12507
12508 * server.c (gdbserver_version): Update copyright year in version
12509 output.
12510 * gdbreplay.c (gdbreplay_version): Ditto.
12511
12512 2010-12-29 Jie Zhang <jie.zhang@analog.com>
12513
12514 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
12515 * linux-bfin-low.c: New file.
12516 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
12517 PT_DATA_ADDR for BFIN targets.
12518 * Makefile.in (SFILES): Add linux-bfin-low.c.
12519 (clean): Remove reg-bfin.c.
12520 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
12521 * README: Mention supported Blackfin targets.
12522
12523 2010-12-23 Mike Frysinger <vapier@gentoo.org>
12524
12525 * .gitignore: New file.
12526
12527 2010-11-16 Mike Frysinger <vapier@gentoo.org>
12528
12529 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
12530
12531 2010-10-22 Jie Zhang <jie@codesourcery.com>
12532
12533 * Makefile.in: Add FLAGS_TO_PASS variable.
12534 (install): Remove dependency of install-only and recursively
12535 invoke make for install-only.
12536
12537 2010-10-04 Doug Evans <dje@google.com>
12538
12539 * Makefile.in (uninstall): Use $(DESTDIR).
12540
12541 2010-09-24 Pedro Alves <pedro@codesourcery.com>
12542
12543 PR gdb/11842
12544
12545 * linux-x86-low.c (compat_siginfo_from_siginfo)
12546 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
12547 si_code is < 0. Check for si_code == SI_TIMER before checking for
12548 si_code < 0.
12549
12550 2010-09-13 Joel Brobecker <brobecker@adacore.com>
12551
12552 * lynx-i386-low.c: New file.
12553 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
12554
12555 2010-09-13 Joel Brobecker <brobecker@adacore.com>
12556
12557 * lynx-low.c (ptrace_request_to_str): Remove handling for
12558 request values that have been removed in LynxOS 5.x.
12559
12560 2010-09-13 Joel Brobecker <brobecker@adacore.com>
12561
12562 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
12563 <ptrace.h>
12564
12565 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
12566
12567 * configure.ac: Add --enable-inprocess-agent option.
12568 * configure: Rebuilt.
12569
12570 2010-09-06 Yao Qi <yao@codesourcery.com>
12571
12572 * linux-low.c (linux_kill): Remove unused variable.
12573 (linux_stabilize_threads): Likewise.
12574 * server.c (start_inferior): Likewise.
12575 (queue_stop_reply_callback): Likewise.
12576 * tracepoint.c (do_action_at_tracepoint): Likewise.
12577
12578 2010-09-06 Yao Qi <yao@codesourcery.com>
12579
12580 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
12581 on return.
12582
12583 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
12584
12585 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
12586
12587 2010-09-06 Pedro Alves <pedro@codesourcery.com>
12588
12589 * Makefile.in (install-only): Replace $IPA_DEPFILES with
12590 "$(IPA_DEPFILES)".
12591
12592 2010-09-01 Joel Brobecker <brobecker@adacore.com>
12593
12594 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
12595 gdbserver/lynx-ppc-low.c: New files.
12596 * Makefile.in (lynx_low_h): New variable.
12597 (lynx-low.o, lynx-ppc-low.o): New rules.
12598 * configure.ac: On LynxOS, link with -lnetinet.
12599 * configure.srv: Add handling of powerpc-*-lynxos* targets.
12600 * configure: regenerate.
12601
12602 2010-09-01 Joel Brobecker <brobecker@adacore.com>
12603
12604 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
12605 * configure.ac: Add check for vasprintf and vsnprintf.
12606 * configure, config.in: Regenerate.
12607 * server.h (vasprintf, vsnprintf): Add conditional declarations.
12608
12609 2010-09-01 Joel Brobecker <brobecker@adacore.com>
12610
12611 * gdbreplay.c: Move include of alloca.h up, next to include of
12612 malloc.h.
12613 * server.h: Add include of malloc.h.
12614 * mem-break.c: Remove include of malloc.h.
12615 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
12616
12617 2010-09-01 Joel Brobecker <brobecker@adacore.com>
12618
12619 * Makefile.in (memmem.o): Build with -Wno-error.
12620
12621 2010-09-01 Joel Brobecker <brobecker@adacore.com>
12622
12623 * utils.c (xsnprintf): Make non-static.
12624 * server.h: Add xsnprintf declaration.
12625 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
12626 replace calls to snprintf by calls to xsnprintf throughout.
12627
12628 2010-09-01 Joel Brobecker <brobecker@adacore.com>
12629
12630 * configure.ac: Add configure check for alloca.
12631 * configure, config.in: Regenerate.
12632 * server.h: Include alloca.h if it exists.
12633 * gdbreplay.c: Include alloca.h if it exists.
12634
12635 2010-08-28 Pedro Alves <pedro@codesourcery.com>
12636
12637 * linux-low.c (__SIGRTMIN): Define if not already defined.
12638 (linux_create_inferior): Check for __ANDROID__ rather than
12639 __SIGRTMIN.
12640 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
12641 are already deferred.
12642 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
12643 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
12644 stopped and already has a pending signal to report.
12645 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
12646 a pending signal to report or is moving out of a jump pad.
12647 (linux_init_signals): Check for __ANDROID__ rather than
12648 __SIGRTMIN.
12649
12650 2010-08-28 Pedro Alves <pedro@codesourcery.com>
12651
12652 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
12653 debug_threads check. Avoid a linear search when not doing debug
12654 output.
12655
12656 2010-08-27 Pedro Alves <pedro@codesourcery.com>
12657
12658 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
12659 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
12660 (struct file_handler) <fd>: Change type to gdb_fildes_t.
12661 (process_event): Change local fd's type to gdb_fildes_t.
12662 (create_file_handler): Adjust prototype.
12663 (delete_file_handler): Adjust prototype.
12664 (handle_file_event): Adjust prototype. Use pfildes.
12665 (create_file_event): Adjsut prototype.
12666 * remote-utils.c (remote_desc, listen_desc): Change type to
12667 gdb_fildes_t.
12668 * server.h: New gdb_fildes_t typedef.
12669 [USE_WIN32API]: Include winsock2.h.
12670 (delete_file_handler, add_file_handler): Adjust prototypes.
12671 (pfildes): Declare.
12672 * utils.c (pfildes): New.
12673
12674 2010-08-27 Pedro Alves <pedro@codesourcery.com>
12675
12676 * configure.ac (build_warnings): Add -Wno-char-subscripts.
12677 * configure: Regenerate.
12678
12679 2010-08-27 Pedro Alves <pedro@codesourcery.com>
12680
12681 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
12682 (linux_done_accessing_memory): ... this.
12683 (linux_target_ops): Adjust.
12684 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
12685 * nto-low.c (nto_target_ops): Adjust comment.
12686 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
12687 * spu-low.c (spu_target_ops): Adjust comment.
12688 * target.h (target_ops): Rename unprepare_to_access_memory field
12689 to done_accessing_memory.
12690 (unprepare_to_access_memory): Rename to ...
12691 (done_accessing_memory): ... this.
12692
12693 2010-08-26 Pedro Alves <pedro@codesourcery.com>
12694
12695 * linux-low.c (linux_prepare_to_access_memory): New.
12696 (linux_unprepare_to_access_memory): New.
12697 (linux_target_ops): Install them.
12698 * server.c (read_memory): Rename to ...
12699 (gdb_read_memory): ... this. Use
12700 prepare_to_access_memory/prepare_to_access_memory.
12701 (write_memory): Rename to ...
12702 (gdb_write_memory): ... this. Use
12703 prepare_to_access_memory/prepare_to_access_memory.
12704 (handle_search_memory_1): Adjust.
12705 (process_serial_event): Adjust.
12706 * target.h (struct target_ops): New fields
12707 prepare_to_access_memory and unprepare_to_access_memory.
12708 (prepare_to_access_memory, unprepare_to_access_memory): New.
12709 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
12710 prepare_to_access_memory/prepare_to_access_memory.
12711 * nto-low.c (nto_target_ops): Adjust.
12712 * spu-low.c (spu_target_ops): Adjust.
12713 * win32-low.c (win32_target_ops): Adjust.
12714
12715 2010-08-26 Pedro Alves <pedro@codesourcery.com>
12716
12717 * Makefile.in (WARN_CFLAGS): Get it from configure.
12718 (WERROR_CFLAGS): New.
12719 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
12720 * configure.ac: Introduce --enable-werror, which adds -Werror to
12721 the compiler command line. Enabled by default. Disable with
12722 --disable-werror. Add -Wdeclaration-after-statement
12723 Wpointer-arith and -Wformat-nonliteral to warning flags.
12724 * configure: Regenerate.
12725
12726 2010-08-26 Pedro Alves <pedro@codesourcery.com>
12727
12728 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
12729
12730 2010-08-26 Pedro Alves <pedro@codesourcery.com>
12731
12732 * gdbreplay.c (remote_error): New.
12733 (gdbchar): New.
12734 (expect): Use gdbchar. Check for error reading from GDB.
12735 Clarify sync error output.
12736 (play): Check for errors writing to GDB.
12737 * linux-low.c (sigchld_handler): Really ignore `write' errors.
12738 * remote-utils.c (getpkt): Check for errors writing to the remote
12739 descriptor.
12740
12741 2010-08-25 Pedro Alves <pedro@codesourcery.com>
12742
12743 * linux-low.c (linux_wait_1): Move non-debugging code out of
12744 `debug_threads' control.
12745
12746 2010-08-25 Pedro Alves <pedro@codesourcery.com>
12747
12748 * linux-low.c (linux_wait_1): Don't set last_status here.
12749 * server.c (push_event, queue_stop_reply_callback): Assert we're
12750 not pushing a TARGET_WAITKIND_IGNORE event.
12751 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
12752 (myresume, handle_target_event): Set the thread's last_resume_kind
12753 and last_status from the target returned status.
12754
12755 2010-08-25 Pedro Alves <pedro@codesourcery.com>
12756
12757 PR threads/10729
12758
12759 * linux-x86-low.c (update_debug_registers_callback): New.
12760 (i386_dr_low_set_addr): Use it.
12761 (i386_dr_low_get_addr): New.
12762 (i386_dr_low_set_control): Use update_debug_registers_callback.
12763 (i386_dr_low_get_control): New.
12764 (i386_dr_low_get_status): Adjust.
12765 * linux-low.c (linux_stop_lwp): New.
12766 * linux-low.h (linux_stop_lwp): Declare.
12767
12768 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
12769 argument instead of a i386_debug_reg_state.
12770 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
12771 a i386_debug_reg_state.
12772 (i386_insert_aligned_watchpoint): Adjust.
12773 (i386_remove_aligned_watchpoint): Adjust.
12774 (i386_low_stopped_data_address): Read the debug registers from the
12775 inferior instead of from the mirrors.
12776 * i386-low.h (struct i386_debug_reg_state): Extend comment.
12777 (i386_dr_low_get_addr): Declare.
12778 (i386_dr_low_get_control): Declare.
12779 (i386_dr_low_get_status): Change prototype.
12780
12781 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
12782 (i386_dr_low_get_addr): New.
12783 (i386_dr_low_get_control): New.
12784 (i386_dr_low_get_status): Adjust prototype. Return
12785 dr_status_mirror.
12786 (i386_initial_stuff): Clear dr_status_mirror and
12787 dr_control_mirror.
12788 (i386_get_thread_context): Adjust.
12789 (i386_set_thread_context): Adjust.
12790 (i386_thread_added): Adjust.
12791
12792 2010-08-24 Pedro Alves <pedro@codesourcery.com>
12793
12794 * linux-low.h (linux_thread_area): Delete declaration.
12795
12796 2010-08-11 Thomas Schwinge <thomas@codesourcery.com>
12797
12798 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
12799 after its termination.
12800
12801 2010-08-09 Pedro Alves <pedro@codesourcery.com>
12802
12803 * linux-low.c (gdb_wants_lwp_stopped): Delete.
12804 (gdb_wants_all_stopped): Delete.
12805 (linux_wait_1): Don't call them.
12806 * server.c (handle_v_cont): Tag all threads as want-stopped.
12807 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
12808 stopped as "client-wants-stopped".
12809
12810 2010-07-31 Pedro Alves <pedro@codesourcery.com>
12811
12812 * Makefile.in (signals_h): New.
12813 (server_h): Depend on it.
12814 (server.o): Don't depend on $(signals_def).
12815 (signals.o): Depend on $(signals_def).
12816
12817 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
12818
12819 * Makefile.in (signals_def): New.
12820 (server_h): Append include/gdb/signals.h and signals_def.
12821 (server.o): Append signals_def.
12822
12823 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
12824
12825 * server.c (handle_target_event): Use target_signal_to_host for
12826 resume_info.sig initialization.
12827 * target.h (struct thread_resume) <sig>: New comment.
12828
12829 2010-07-20 Ozkan Sezer <sezeroz@gmail.com>
12830
12831 * server.c (handle_query): strcpy() the returned string from paddress()
12832 instead of sprintf().
12833 * utils.c (paddress): Return phex_nz().
12834
12835 2010-07-07 Joel Brobecker <brobecker@adacore.com>
12836
12837 * server.c (handle_v_cont): Call mourn_inferior if process
12838 just exited.
12839 (myresume): Likewise.
12840
12841 2010-07-01 Pedro Alves <pedro@codesourcery.com>
12842
12843 Static tracepoints, and integration with UST.
12844
12845 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
12846 * mem-break.c (uninsert_all_breakpoints)
12847 (reinsert_all_breakpoints): New.
12848 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
12849 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
12850 (gdb_agent_ust_loaded, helper_thread_id)
12851 (gdb_agent_helper_thread_id): New macros.
12852 (struct ipa_sym_addresses): Add addr_ust_loaded,
12853 addr_helper_thread_id, addr_cmd_buf.
12854 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
12855 (in_process_agent_loaded_ust): New.
12856 (write_e_ust_not_loaded): New.
12857 (maybe_write_ipa_ust_not_loaded): New.
12858 (struct collect_static_trace_data_action): New.
12859 (enum tracepoint_type) <static_tracepoint>: New.
12860 (struct tracepoint) <handle>: Mention static tracepoints.
12861 (struct static_tracepoint_ctx): New.
12862 (CMD_BUF_SIZE): New.
12863 (add_tracepoint_action): Handle static tracepoint actions.
12864 (unprobe_marker_at): New.
12865 (clear_installed_tracepoints): Handle static tracepoints.
12866 (cmd_qtdp): Handle static tracepoints.
12867 (probe_marker_at): New.
12868 (cmd_qtstart): Handle static tracepoints.
12869 (response_tracepoint): Handle static tracepoints.
12870 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
12871 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
12872 (get_context_regcache): Handle static tracepoints.
12873 (do_action_at_tracepoint): Handle static tracepoint actions.
12874 (traceframe_find_block_type): Handle static trace data blocks.
12875 (traceframe_read_sdata): New.
12876 (download_tracepoints): Download static tracepoint actions.
12877 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
12878 (GDB_PROBE_NAME): New.
12879 (ust_ops): New.
12880 (GET_UST_SYM): New.
12881 (USTF): New.
12882 (dlsym_ust): New.
12883 (ust_marker_to_static_tracepoint): New.
12884 (gdb_probe): New.
12885 (collect_ust_data_at_tracepoint): New.
12886 (gdb_ust_probe): New.
12887 (UNIX_PATH_MAX, SOCK_DIR): New.
12888 (gdb_ust_connect_sync_socket): New.
12889 (resume_thread, stop_thread): New.
12890 (run_inferior_command): New.
12891 (init_named_socket): New.
12892 (gdb_ust_socket_init): New.
12893 (cstr_to_hexstr): New.
12894 (next_st): New.
12895 (first_marker, next_marker): New.
12896 (response_ust_marker): New.
12897 (cmd_qtfstm, cmd_qtsstm): New.
12898 (unprobe_marker_at, probe_marker_at): New.
12899 (cmd_qtstmat, gdb_ust_thread): New.
12900 (gdb_ust_init): New.
12901 (initialize_tracepoint_ftlib): Call gdb_ust_init.
12902 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
12903 (ST_REGENTRY): New.
12904 (x86_64_st_collect_regmap): New.
12905 (X86_64_NUM_ST_COLLECT_GREGS): New.
12906 (AMD64_RIP_REGNUM): New.
12907 (supply_static_tracepoint_registers): New.
12908 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
12909 (ST_REGENTRY): New.
12910 (i386_st_collect_regmap): New.
12911 (i386_NUM_ST_COLLECT_GREGS): New.
12912 (supply_static_tracepoint_registers): New.
12913 * server.c (handle_query): Handle qXfer:statictrace:read.
12914 <qSupported>: Report support for StaticTracepoints, and
12915 qXfer:statictrace:read features.
12916 * server.h (traceframe_read_sdata)
12917 (supply_static_tracepoint_registers): Declare.
12918 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
12919 (unpack_varlen_hex): Include in IPA build.
12920 * Makefile.in (ustlibs, ustinc): New.
12921 (IPA_OBJS): Add remote-utils-ipa.o.
12922 ($(IPA_LIB)): Link -ldl and -lpthread.
12923 (UST_CFLAGS): New.
12924 (IPAGENT_CFLAGS): Add UST_CFLAGS.
12925 * config.in, configure: Regenerate.
12926
12927 2010-06-20 Ian Lance Taylor <iant@google.com>
12928 Pedro Alves <pedro@codesourcery.com>
12929
12930 * linux-x86-low.c (always_true): Delete.
12931 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
12932 trying to fool the compiler with always_true.
12933
12934 2010-06-20 Pedro Alves <pedro@codesourcery.com>
12935
12936 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
12937 conditions in gdbserver.
12938
12939 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
12940
12941 * spu-low.c (spu_read_memory): Wrap around local store limit.
12942 (spu_write_memory): Likewise.
12943
12944 2010-06-15 Pedro Alves <pedro@codesourcery.com>
12945
12946 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
12947 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
12948 LONGEST uses.
12949 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
12950 uses.
12951 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
12952 uses with LONGEST uses.
12953
12954 2010-06-14 Stan Shebs <stan@codesourcery.com>
12955 Pedro Alves <pedro@codesourcery.com>
12956
12957 Bytecode compiler.
12958
12959 * linux-x86-low.c: Include limits.h.
12960 (add_insns): New.
12961 (always_true): New.
12962 (EMIT_ASM): New.
12963 (EMIT_ASM32): New.
12964 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
12965 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
12966 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
12967 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
12968 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
12969 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
12970 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
12971 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
12972 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
12973 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
12974 (amd64_emit_void_call_2): New.
12975 (amd64_emit_ops): New.
12976 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
12977 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
12978 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
12979 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
12980 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
12981 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
12982 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
12983 (i386_emit_call, i386_emit_reg, i386_emit_pop)
12984 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
12985 (i386_emit_stack_adjust, i386_emit_int_call_1)
12986 (i386_emit_void_call_2): New.
12987 (i386_emit_ops): New.
12988 (x86_emit_ops): New.
12989 (the_low_target): Install x86_emit_ops.
12990 * server.h (struct emit_ops): New.
12991 (get_raw_reg_func_addr): Declare.
12992 (current_insn_ptr, emit_error): Declare.
12993 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
12994 (set_trace_state_variable_value): New defines.
12995 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
12996 addr_get_trace_state_variable_value and
12997 addr_set_trace_state_variable_value.
12998 (symbol_list): New fields for get_raw_reg,
12999 get_trace_state_variable_value and set_trace_state_variable_value.
13000 (condfn): New typedef.
13001 (struct tracepoint): New field `compiled_cond'.
13002 (do_action_at_tracepoint): Clear compiled_cond.
13003 (get_trace_state_variable_value, set_trace_state_variable_value):
13004 Export in the IPA.
13005 (condition_true_at_tracepoint): If there's a compiled condition,
13006 run that.
13007 (current_insn_ptr, emit_error): New globals.
13008 (struct bytecode_address): New.
13009 (get_raw_reg_func_addr): New.
13010 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
13011 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
13012 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
13013 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
13014 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
13015 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
13016 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
13017 (compile_tracepoint_condition, compile_bytecodes): New.
13018 * target.h (emit_ops): Forward declare.
13019 (struct target_ops): New field emit_ops.
13020 (target_emit_ops): New.
13021 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
13022 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
13023 * linux-low.c (linux_emit_ops): New.
13024 (linux_target_ops): Install it.
13025 * linux-low.h (struct linux_target_ops): New field emit_ops.
13026
13027 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
13028
13029 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
13030 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
13031
13032 2010-06-01 Pedro Alves <pedro@codesourcery.com>
13033 Stan Shebs <stan@codesourcery.com>
13034
13035 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
13036 (all): Depend on $(extra_libraries).
13037 (install-only): Install the IPA.
13038 (IPA_OBJS, IPA_LIB): New.
13039 (clean): Remove the IPA lib.
13040 (IPAGENT_CFLAGS): New.
13041 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
13042 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
13043 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
13044 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
13045 * configure.ac: Check for atomic builtins support in the compiler.
13046 (IPA_DEPFILES, extra_libraries): Define.
13047 * configure.srv (ipa_obj): Add description.
13048 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
13049 (i[34567]86-*-linux*): Set ipa_obj.
13050 (x86_64-*-linux*): Set ipa_obj.
13051 * linux-low.c (stabilizing_threads): New.
13052 (supports_fast_tracepoints): New.
13053 (linux_detach): Stabilize threads before detaching.
13054 (handle_tracepoints): Handle internal tracing breakpoints. Assert
13055 the lwp is either not stabilizing, or is moving out of a jump pad.
13056 (linux_fast_tracepoint_collecting): New.
13057 (maybe_move_out_of_jump_pad): New.
13058 (enqueue_one_deferred_signal): New.
13059 (dequeue_one_deferred_signal): New.
13060 (linux_wait_for_event_1): If moving out of a jump pad, defer
13061 pending signals to later.
13062 (linux_stabilize_threads): New.
13063 (linux_wait_1): Check if threads need moving out of jump pads, and
13064 do it if so.
13065 (stuck_in_jump_pad_callback): New.
13066 (move_out_of_jump_pad_callback): New.
13067 (lwp_running): New.
13068 (linux_resume_one_lwp): Handle moving out of jump pads.
13069 (linux_set_resume_request): Dequeue deferred signals.
13070 (need_step_over_p): Also step over fast tracepoint jumps.
13071 (start_step_over): Also uninsert fast tracepoint jumps.
13072 (finish_step_over): Also reinsert fast tracepoint jumps.
13073 (linux_install_fast_tracepoint_jump): New.
13074 (linux_target_ops): Install linux_stabilize_threads and
13075 linux_install_fast_tracepoint_jump_pad.
13076 * linux-low.h (linux_target_ops) <get_thread_area,
13077 install_fast_tracepoint_jump_pad>: New fields.
13078 (struct lwp_info) <collecting_fast_tracepoint,
13079 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
13080 (linux_get_thread_area): Declare.
13081 * linux-x86-low.c (jump_insn): New.
13082 (x86_get_thread_area): New.
13083 (append_insns): New.
13084 (push_opcode): New.
13085 (amd64_install_fast_tracepoint_jump_pad): New.
13086 (i386_install_fast_tracepoint_jump_pad): New.
13087 (x86_install_fast_tracepoint_jump_pad): New.
13088 (the_low_target): Install x86_get_thread_area and
13089 x86_install_fast_tracepoint_jump_pad.
13090 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
13091 (struct fast_tracepoint_jump): New.
13092 (fast_tracepoint_jump_insn): New.
13093 (fast_tracepoint_jump_shadow): New.
13094 (find_fast_tracepoint_jump_at): New.
13095 (fast_tracepoint_jump_here): New.
13096 (delete_fast_tracepoint_jump): New.
13097 (set_fast_tracepoint_jump): New.
13098 (uninsert_fast_tracepoint_jumps_at): New.
13099 (reinsert_fast_tracepoint_jumps_at): New.
13100 (set_breakpoint_at): Use write_inferior_memory.
13101 (uninsert_raw_breakpoint): Use write_inferior_memory.
13102 (check_mem_read): Mask out fast tracepoint jumps.
13103 (check_mem_write): Mask out fast tracepoint jumps.
13104 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
13105 (set_fast_tracepoint_jump): Declare.
13106 (delete_fast_tracepoint_jump)
13107 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
13108 (reinsert_fast_tracepoint_jumps_at): Declare.
13109 * regcache.c: Don't compile many functions when building the
13110 in-process agent library.
13111 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
13112 the register buffer in the heap.
13113 (free_register_cache): If the register buffer isn't owned by the
13114 regcache, don't free it.
13115 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
13116 pre-existing register caches.
13117 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
13118 type.
13119 (convert_ascii_to_int): : Constify `from' parameter type.
13120 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
13121 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
13122 the needed buffer in-place.
13123 (relocate_instruction): New.
13124 * server.c (handle_query) <qSymbols>: If the target supports
13125 tracepoints, give it a chance of looking up symbols. Report
13126 support for fast tracepoints.
13127 (handle_status): Stabilize threads.
13128 (process_serial_event): Adjust.
13129 * server.h (struct fast_tracepoint_jump): Forward declare.
13130 (struct process_info) <fast_tracepoint_jumps>: New field.
13131 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
13132 (decode_X_packet, decode_M_packet): Adjust.
13133 (relocate_instruction): Declare.
13134 (in_process_agent_loaded): Declare.
13135 (tracepoint_look_up_symbols): Declare.
13136 (struct fast_tpoint_collect_status): Declare.
13137 (fast_tracepoint_collecting): Declare.
13138 (force_unlock_trace_buffer): Declare.
13139 (handle_tracepoint_bkpts): Declare.
13140 (initialize_low_tracepoint)
13141 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
13142 * target.h (struct target_ops) <stabilize_threads,
13143 install_fast_tracepoint_jump_pad>: New fields.
13144 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
13145 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
13146 [HAVE_STDINT_H]: Include stdint.h.
13147 (trace_debug_1): Rename to ...
13148 (trace_vdebug): ... this.
13149 (trace_debug): Rename to ...
13150 (trace_debug_1): ... this. Add `level' parameter.
13151 (trace_debug): New.
13152 (ATTR_USED, ATTR_NOINLINE): New.
13153 (IP_AGENT_EXPORT): New.
13154 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
13155 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
13156 (about_to_request_buffer_space, trace_buffer_is_full)
13157 (stopping_tracepoint, expr_eval_result, error_tracepoint)
13158 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
13159 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
13160 (traceframe_write_count, traceframes_created)
13161 (trace_state_variables)
13162 New renaming defines.
13163 (struct ipa_sym_addresses): New.
13164 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
13165 (symbol_list): New.
13166 (ipa_sym_addrs): New.
13167 (all_tracepoint_symbols_looked_up): New.
13168 (in_process_agent_loaded): New.
13169 (write_e_ipa_not_loaded): New.
13170 (maybe_write_ipa_not_loaded): New.
13171 (tracepoint_look_up_symbols): New.
13172 (debug_threads) [IN_PROCESS_AGENT]: New.
13173 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
13174 (UNKNOWN_SIDE_EFFECTS): New.
13175 (stop_tracing): New.
13176 (flush_trace_buffer): New.
13177 (stop_tracing_bkpt): New.
13178 (flush_trace_buffer_bkpt): New.
13179 (read_inferior_integer): New.
13180 (read_inferior_uinteger): New.
13181 (read_inferior_data_pointer): New.
13182 (write_inferior_data_pointer): New.
13183 (write_inferior_integer): New.
13184 (write_inferior_uinteger): New.
13185 (struct collect_static_trace_data_action): Delete.
13186 (enum tracepoint_type): New.
13187 (struct tracepoint) <type>: New field `type'.
13188 <actions_str, step_actions, step_actions_str>: Only include in
13189 GDBserver.
13190 <orig_size, obj_addr_on_target, adjusted_insn_addr>
13191 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
13192 (tracepoints): Use IP_AGENT_EXPORT.
13193 (last_tracepoint): Don't include in the IPA.
13194 (stopping_tracepoint): Use IP_AGENT_EXPORT.
13195 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
13196 (alloced_trace_state_variables): New.
13197 (trace_state_variables): Use IP_AGENT_EXPORT.
13198 (traceframe_t): Delete unused variable.
13199 (circular_trace_buffer): Don't include in the IPA.
13200 (trace_buffer_start): Delete.
13201 (struct trace_buffer_control): New.
13202 (trace_buffer_free): Delete.
13203 (struct ipa_trace_buffer_control): New.
13204 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
13205 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
13206 New.
13207 (trace_buffer_ctrl): New.
13208 (TRACE_BUFFER_CTRL_CURR): New.
13209 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
13210 Reimplement as macros.
13211 (trace_buffer_wrap): Delete.
13212 (traceframe_write_count, traceframe_read_count)
13213 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
13214 (struct tracepoint_hit_ctx) <type>: New field.
13215 (struct fast_tracepoint_ctx): New.
13216 (memory_barrier): New.
13217 (cmpxchg): New.
13218 (record_tracepoint_error): Update atomically in the IPA.
13219 (clear_inferior_trace_buffer): New.
13220 (about_to_request_buffer_space): New.
13221 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
13222 updating the same buffer.
13223 (add_tracepoint): Default the tracepoint's type to trap
13224 tracepoint, and orig_size to -1.
13225 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
13226 internal variables.
13227 (create_trace_state_variable): New parameter `gdb'. Handle it.
13228 (clear_installed_tracepoints): Clear fast tracepoint jumps.
13229 (cmd_qtdp): Handle fast tracepoints.
13230 (cmd_qtdv): Adjust.
13231 (max_jump_pad_size): New.
13232 (gdb_jump_pad_head): New.
13233 (get_jump_space_head): New.
13234 (claim_jump_space): New.
13235 (sort_tracepoints): New.
13236 (MAX_JUMP_SIZE): New.
13237 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
13238 IPA.
13239 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
13240 support. Upload fast traceframes, and delete internal IPA
13241 breakpoints.
13242 (stop_tracing_handler): New.
13243 (flush_trace_buffer_handler): New.
13244 (cmd_qtstop): Upload fast tracepoints.
13245 (response_tracepoint): Handle fast tracepoints.
13246 (tracepoint_finished_step): Upload fast traceframes. Set the
13247 tracepoint hit context's tracepoint type.
13248 (handle_tracepoint_bkpts): New.
13249 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
13250 type. Add comment about fast tracepoints.
13251 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
13252 non-existing action_str field.
13253 (get_context_regcache): Handle fast tracepoints.
13254 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
13255 to the regcache.
13256 (fast_tracepoint_from_jump_pad_address): New.
13257 (fast_tracepoint_from_ipa_tpoint_address): New.
13258 (collecting_t): New.
13259 (force_unlock_trace_buffer): New.
13260 (fast_tracepoint_collecting): New.
13261 (collecting): New.
13262 (gdb_collect): New.
13263 (write_inferior_data_ptr): New.
13264 (target_tp_heap): New.
13265 (target_malloc): New.
13266 (download_agent_expr): New.
13267 (UALIGN): New.
13268 (download_tracepoints): New.
13269 (download_trace_state_variables): New.
13270 (upload_fast_traceframes): New.
13271 (IPA_FIRST_TRACEFRAME): New.
13272 (IPA_NEXT_TRACEFRAME_1): New.
13273 (IPA_NEXT_TRACEFRAME): New.
13274 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
13275 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
13276 (gdb_jump_pad_buffer_end): New.
13277 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
13278 (initialize_tracepoint): Adjust.
13279 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
13280 buffer. Initialize the low module.
13281 * utils.c (PREFIX, TOOLNAME): New.
13282 (malloc_failure): Use PREFIX.
13283 (error): In the IPA, an error causes an exit.
13284 (fatal, warning): Use PREFIX.
13285 (internal_error): Use TOOLNAME.
13286 (NUMCELLS): Increase to 10.
13287 * configure, config.in: Regenerate.
13288
13289 2010-06-01 Pedro Alves <pedro@codesourcery.com>
13290
13291 * server.c (handle_query) <qSupported>: Do two passes over the
13292 qSupported string to avoid nesting strtok.
13293
13294 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
13295
13296 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
13297 (CDEPS): New.
13298 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
13299 -Wl,--dynamic-list.
13300 * configure: Regenerate.
13301 * proc-service.list: New.
13302
13303 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
13304
13305 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
13306 New comment.
13307
13308 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
13309
13310 * gdbreplay.c (remote_open): Check error return from socket() call by
13311 its equality to -1 not by it being negative.
13312 * remote-utils.c (remote_open): Likewise.
13313
13314 2010-05-23 Pedro Alves <pedro@codesourcery.com>
13315
13316 * config.h: Regenerate.
13317
13318 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
13319
13320 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
13321 doesn't provide PTRACE_GET_THREAD_AREA.
13322
13323 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
13324
13325 * linux-m68k-low.c: Include <asm/ptrace.h>
13326 (ps_get_thread_area): Implement.
13327
13328 2010-05-03 Doug Evans <dje@google.com>
13329
13330 * event-loop.c (struct callback_event): New struct.
13331 (callback_list): New global.
13332 (append_callback_event, delete_callback_event): New functions.
13333 (process_callback): New function.
13334 (start_event_loop): Call it.
13335 * remote-utils.c (NOT_SCHEDULED): Define.
13336 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
13337 moved out of readchar.
13338 (readchar): Rewrite. Call reschedule before returning.
13339 (reset_readchar): New function.
13340 (remote_close): Call it.
13341 (process_remaining, reschedule): New functions.
13342 * server.h (callback_handler_func): New typedef.
13343 (append_callback_event, delete_callback_event): Declare.
13344
13345 2010-05-03 Pedro Alves <pedro@codesourcery.com>
13346
13347 * proc-service.c (ps_pglobal_lookup): Use
13348 thread_db_look_up_one_symbol.
13349 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
13350 parameter. Use it instead of all_symbols_looked_up.
13351 * server.h (struct process_info) <all_symbols_looked_up>: Delete
13352 field.
13353 (all_symbols_looked_up): Don't declare.
13354 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
13355 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
13356 field.
13357 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
13358 Set all_symbols_looked_up here.
13359 (thread_db_look_up_one_symbol): New.
13360 (thread_db_get_tls_address): Adjust.
13361 (thread_db_load_search, try_thread_db_load_1): Always allocate the
13362 thread_db object on the heap, and tentatively set it in the
13363 process structure.
13364 (thread_db_init): Don't set all_symbols_looked_up here.
13365 * linux-low.h (thread_db_look_up_one_symbol): Declare.
13366
13367 2010-05-03 Pedro Alves <pedro@codesourcery.com>
13368
13369 * linux-low.c (linux_kill, linux_detach): Adjust.
13370 (status_pending_p_callback): Remove redundant statement. Check
13371 for !TARGET_WAITIKIND_IGNORE, instead of
13372 TARGET_WAITKIND_STOPPED.
13373 (handle_tracepoints): Make sure LWP is locked. Adjust.
13374 (linux_wait_for_event_1): Adjust.
13375 (linux_cancel_breakpoints): New.
13376 (unsuspend_one_lwp): New.
13377 (unsuspend_all_lwps): New.
13378 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
13379 (send_sigstop_callback): Change return type to int, add new
13380 `except' parameter and handle it.
13381 (suspend_and_send_sigstop_callback): New.
13382 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
13383 pass them down. If SUSPEND, also increment the lwp's suspend
13384 count.
13385 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
13386 (need_step_over_p): Don't consider suspended LWPs.
13387 (start_step_over): Adjust.
13388 (proceed_one_lwp): Change return type to int, add new `except'
13389 parameter and handle it.
13390 (unsuspend_and_proceed_one_lwp): New.
13391 (proceed_all_lwps): Use find_inferior instead of
13392 for_each_inferior.
13393 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
13394 also decrement the suspend count of LWPs. Pass `except' down,
13395 instead of hacking its suspend count.
13396 (linux_pause_all): Add `freeze' parameter. Adjust.
13397 (linux_unpause_all): New.
13398 (linux_target_ops): Install linux_unpause_all.
13399 * server.c (handle_status): Adjust.
13400 * target.h (struct target_ops): New fields `unpause_all' and
13401 `cancel_breakpoints'. Add new parameter to `pause_all'.
13402 (pause_all): Add new `freeze' parameter.
13403 (unpause_all): New.
13404 (cancel_breakpoints): New.
13405 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
13406 cancel breakpoints.
13407 (cmd_qtstart): Pause threads.
13408 (stop_tracing): Pause threads, and cancel breakpoints.
13409 * win32-low.c (win32_target_ops): Adjust.
13410
13411 2010-05-03 Pedro Alves <pedro@codesourcery.com>
13412
13413 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
13414 the inferior right away from here...
13415 (linux_wait_1): ... to here, and adjust to check the thread's
13416 last_resume_kind instead of the lwp's step or stop_expected flags.
13417
13418 2010-05-02 Pedro Alves <pedro@codesourcery.com>
13419
13420 * README: Use consistent `GDB' and `GDBserver' spellings.
13421
13422 2010-05-02 Pedro Alves <pedro@codesourcery.com>
13423
13424 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
13425 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
13426 (linux_detach_one_lwp): Assume the lwp is stopped.
13427 (any_thread_of): Delete.
13428 (linux_detach): Stop all lwps here. Don't blindly delete all
13429 breakpoints.
13430 (delete_lwp_callback): New.
13431 (linux_mourn): Delete all lwps of the process that is gone.
13432 (linux_wait_1): Don't delete the last lwp of the process here.
13433 * mem-break.h (mark_breakpoints_out): Declare.
13434 * mem-break.c (mark_breakpoints_out): New.
13435 (free_all_breakpoints): Use it.
13436 * server.c (handle_target_event): If the process is gone, mark
13437 breakpoints out.
13438 * thread-db.c (struct thread_db) <create_bp>: New field.
13439 (thread_db_enable_reporting): Fix prototype. Store a thread event
13440 breakpoint reference in the thread_db struct.
13441 (thread_db_load_search): Clear the thread_db object.
13442 (try_thread_db_load_1): Ditto.
13443 (switch_to_process): New.
13444 (disable_thread_event_reporting): Use it.
13445 (remove_thread_event_breakpoints): New.
13446 (thread_db_detach, thread_db_mourn): Use it.
13447
13448 2010-05-01 Pedro Alves <pedro@codesourcery.com>
13449
13450 * linux-low.c (linux_enable_event_reporting): New.
13451 (linux_wait_for_event_1, handle_extended_wait): Use it.
13452
13453 2010-04-30 Pedro Alves <pedro@codesourcery.com>
13454
13455 * linux-low.c (linux_kill_one_lwp, linux_kill)
13456 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
13457 (send_sigstop): Take an lwp_info as parameter instead. Queue a
13458 SIGSTOP even if the LWP is stopped.
13459 (send_sigstop_callback): New.
13460 (stop_all_lwps): Use send_sigstop_callback instead.
13461 (linux_resume_one_thread): Adjust.
13462 (proceed_one_lwp): Still proceed an LWP that the client has
13463 requested to stop, if we haven't reported it as stopped yet. Make
13464 sure that LWPs the client want stopped, have a pending SIGSTOP.
13465
13466 2010-04-26 Doug Evans <dje@google.com>
13467
13468 * server.c (handle_general_set): Make static.
13469
13470 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
13471 Print received char after testing for error/eof instead of before.
13472 (input_interrupt): Tweak comment.
13473
13474 2010-04-23 Doug Evans <dje@google.com>
13475
13476 * server.c (start_inferior): Print inferior argv if --debug.
13477
13478 2010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
13479
13480 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
13481 * nto-x86-low.c: Include server.h
13482
13483 2010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
13484
13485 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
13486 be consistent with other sources of this directory.
13487 (init_registers_amd64): Correct name of source file of this function
13488 in the comment.
13489
13490 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
13491
13492 * configure.srv (x86_64-*-mingw*): New configuration for Windows
13493 64-bit executables.
13494
13495 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
13496
13497 * win32-i386-low.c: Add 64-bit support.
13498 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
13499 (init_registers_amd64): Declare.
13500 (mappings): Add 64-bit version of array.
13501 (init_windows_x86): New function.
13502 (the_low_target): Change init_arch field to init_windows_x86.
13503
13504 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
13505
13506 * win32-low.c: Adapt to support also 64-bit architecture.
13507 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
13508 (get_image_name): Use SIZE_T type for local variable `done'.
13509 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
13510 (toolhelp_get_dll_name): Idem.
13511 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
13512 Use uintptr_t typecast to avoid warning.
13513 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
13514 (handle_exception): Use phex_nz to avoid warning.
13515 (win32_wait): Remove unused local variable `process'.
13516
13517 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
13518
13519 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
13520 `amd64-avx.o'.
13521
13522 2010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
13523
13524 * configure.ac: Use `ws2_32' library for srv_mingw.
13525 * configure: Regenerate.
13526 * gdbreplay.c: Include winsock2.h instead of winsock.h.
13527 * remote-utils.c: Likewise.
13528
13529 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
13530
13531 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
13532 if __x86_64__ is defined.
13533
13534 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
13535
13536 * configure: Regenerate.
13537
13538 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
13539
13540 * server.c (handle_query): Handle 'qGetTIBAddr' query.
13541 * target.h (target_ops): New get_tib_address field.
13542 * win32-low.h (win32_thread_info): Add thread_local_base field.
13543 * win32-low.c (child_add_thread): Add tlb argument.
13544 Set thread_local_base field to TLB.
13545 (get_child_debug_event): Adapt to child_add_thread change.
13546 (win32_get_tib_address): New function.
13547 (win32_target_ops): Set get_tib_address field to
13548 win32_get_tib_address.
13549 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
13550
13551 2010-04-12 Pedro Alves <pedro@codesourcery.com>
13552
13553 * linux-low.c (linux_mourn): Also remove the process.
13554 * server.c (handle_target_event): Don't remove the process here.
13555 * nto-low.c (nto_mourn): New.
13556 (nto_target_ops): Install it.
13557 * spu-low.c (spu_mourn): New.
13558 (spu_target_ops): Install it.
13559 * win32-low.c (win32_mourn): New.
13560 (win32_target_ops): Install it.
13561
13562 2010-04-12 Pedro Alves <pedro@codesourcery.com>
13563
13564 * server.h (buffer_xml_printf): Remove redundant `;'.
13565
13566 2010-04-12 Pedro Alves <pedro@codesourcery.com>
13567
13568 * regcache.c (set_register_cache): Invalidate regcaches before
13569 changing the register cache layout.
13570 (regcache_invalidate_one): Allow a NULL regcache.
13571 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
13572 regcaches before changing the register cache layout or the target
13573 regsets.
13574
13575 2010-04-12 H.J. Lu <hongjiu.lu@intel.com>
13576
13577 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
13578 variable warning on Linux/x86-64.
13579
13580 2010-04-11 Pedro Alves <pedro@codesourcery.com>
13581
13582 GDBserver disconnected tracing support.
13583
13584 * linux-low.c (linux_remove_process): Delete.
13585 (add_lwp): Don't set last_resume_kind here.
13586 (linux_kill): Use `mourn'.
13587 (linux_detach): Use `thread_db_detach', and `mourn'.
13588 (linux_mourn): New.
13589 (linux_attach_lwp_1): Adjust comment.
13590 (linux_attach): last_resume_kind moved the thread_info; adjust.
13591 (status_pending_p_callback): Adjust.
13592 (linux_wait_for_event_1): Adjust.
13593 (count_events_callback, select_singlestep_lwp_callback)
13594 (select_event_lwp_callback, cancel_breakpoints_callback)
13595 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
13596 (proceed_one_lwp): Adjust.
13597 (linux_async): Add debug output.
13598 (linux_thread_stopped): New.
13599 (linux_pause_all): New.
13600 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
13601 linux_pause_all.
13602 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
13603 (thread_db_free): Delete declaration.
13604 (thread_db_detach, thread_db_mourn): Declare.
13605 * thread-db.c (thread_db_init): Use thread_db_mourn.
13606 (thread_db_free): Delete, split in two.
13607 (disable_thread_event_reporting): New.
13608 (thread_db_detach): New.
13609 (thread_db_mourn): New.
13610
13611 * server.h (struct thread_info) <last_resume_kind>: New field.
13612 <attached>: Add comment.
13613 <gdb_detached>: New field.
13614 (handler_func): Change return type to int.
13615 (handle_serial_event, handle_target_event): Ditto.
13616 (gdb_connected): Declare.
13617 (tracing): Delete.
13618 (disconnected_tracing): Declare.
13619 (stop_tracing): Declare.
13620
13621 * server.c (handle_query) <qSupported>: Report support for
13622 disconnected tracing.
13623 (queue_stop_reply_callback): Account for running threads.
13624 (gdb_wants_thread_stopped): New.
13625 (gdb_wants_all_threads_stopped): New.
13626 (gdb_reattached_process): New.
13627 (handle_status): Clear the `gdb_detached' flag of all processes.
13628 In all-stop, stop all threads.
13629 (main): Be sure to leave tfind mode. Handle disconnected tracing.
13630 (process_serial_event): If the remote connection breaks, or if an
13631 exit was forced with "monitor exit", force an event loop exit.
13632 Handle disconnected tracing on detach.
13633 (handle_serial_event): Adjust.
13634 (handle_target_event): If GDB isn't connected, forward events back
13635 to the inferior, unless the last process exited, in which case,
13636 exit gdbserver. Adjust interface.
13637
13638 * remote-utils.c (remote_open): Don't block in accept. Instead
13639 register an event loop source on the listen socket file
13640 descriptor. Refactor bits into ...
13641 (listen_desc): ... this new global.
13642 (gdb_connected): ... this new function.
13643 (enable_async_notification): ... this new function.
13644 (handle_accept_event): ... this new function.
13645 (remote_close): Clear remote_desc.
13646
13647 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
13648
13649 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
13650 New fields.
13651 (mourn_inferior): Define.
13652 (target_process_qsupported): Avoid the dangling else problem.
13653 (thread_stopped): Define.
13654 (pause_all): Define.
13655 (target_waitstatus_to_string): Declare.
13656 * target.c (target_waitstatus_to_string): New.
13657
13658 * tracepoint.c (tracing): Make extern.
13659 (disconnected_tracing): New.
13660 (stop_tracing): Make extern. Handle tracing stops due to GDB
13661 disconnecting.
13662 (cmd_qtdisconnected): New.
13663 (cmd_qtstatus): Report disconnected tracing status in trace reply.
13664 (handle_tracepoint_general_set): Handle QTDisconnected.
13665
13666 * event-loop.c (event_handler_func): Change return type to int.
13667 (process_event): Bail out if the event handler wants the event
13668 loop to stop.
13669 (handle_file_event): Ditto.
13670 (start_event_loop): Bail out if the event handler wants the event
13671 loop to stop.
13672
13673 * nto-low.c (nto_target_ops): Adjust.
13674 * spu-low.c (spu_wait): Don't remove the process here.
13675 (spu_target_ops): Adjust.
13676 * win32-low.c (win32_wait): Don't remove the process here.
13677 (win32_target_ops): Adjust.
13678
13679 2010-04-11 Pedro Alves <pedro@codesourcery.com>
13680
13681 * regcache.c (realloc_register_cache): Invalidate inferior's
13682 regcache before recreating it.
13683
13684 2010-04-09 Pedro Alves <pedro@codesourcery.com>
13685
13686 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
13687
13688 2010-04-09 Stan Shebs <stan@codesourcery.com>
13689 Pedro Alves <pedro@codesourcery.com>
13690
13691 * server.h (LONGEST): New.
13692 (struct thread_info) <while_stepping>: New field.
13693 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
13694 Declare.
13695 (initialize_tracepoint, handle_tracepoint_general_set)
13696 (handle_tracepoint_query, tracepoint_finished_step)
13697 (tracepoint_was_hit, release_while_stepping_state_list):
13698 (current_traceframe): Declare.
13699 * server.c (handle_general_set): Handle tracepoint packets.
13700 (read_memory): New.
13701 (write_memory): New.
13702 (handle_search_memory_1): Use read_memory.
13703 (handle_query): Report support for conditional tracepoints, trace
13704 state variables, and tracepoint sources. Handle tracepoint
13705 queries.
13706 (main): Initialize the tracepoints module.
13707 (process_serial_event): Handle traceframe reads/writes.
13708
13709 * linux-low.c (handle_tracepoints): New.
13710 (linux_wait_1): Call it.
13711 (linux_resume_one_lwp): Handle while-stepping.
13712 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
13713 (linux_target_ops): Install them.
13714 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
13715 New field.
13716 * linux-x86-low.c (x86_supports_tracepoints): New.
13717 (the_low_target). Install it.
13718
13719 * mem-break.h (delete_breakpoint): Declare.
13720 * mem-break.c (delete_breakpoint): Make external.
13721
13722 * target.h (struct target_ops): Add `supports_tracepoints',
13723 `read_pc', and `write_pc' fields.
13724 (target_supports_tracepoints): Define.
13725 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
13726 (phex_nz): New.
13727
13728 * regcache.h (struct regcache) <registers_owned>: New field.
13729 (init_register_cache, regcache_cpy): Declare.
13730 (regcache_read_pc, regcache_write_pc): Declare.
13731 (register_cache_size): Declare.
13732 (supply_regblock): Declare.
13733 * regcache.c (init_register_cache): New.
13734 (new_register_cache): Use it.
13735 (regcache_cpy): New.
13736 (register_cache_size): New.
13737 (supply_regblock): New.
13738 (regcache_read_pc, regcache_write_pc): New.
13739
13740 * tracepoint.c: New.
13741
13742 * Makefile.in (OBS): Add tracepoint.o.
13743 (tracepoint.o): New rule.
13744
13745 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
13746
13747 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
13748 (i386-mmx.o): New.
13749 (i386-mmx.c): Likewise.
13750 (i386-mmx-linux.o): Likewise.
13751 (i386-mmx-linux.c): Likewise.
13752
13753 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
13754 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
13755 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
13756 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
13757
13758 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
13759 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
13760 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
13761
13762 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
13763
13764 * Makefile.in (clean): Updated.
13765 (i386-avx.o): New.
13766 (i386-avx.c): Likewise.
13767 (i386-avx-linux.o): Likewise.
13768 (i386-avx-linux.c): Likewise.
13769 (amd64-avx.o): Likewise.
13770 (amd64-avx.c): Likewise.
13771 (amd64-avx-linux.o): Likewise.
13772 (amd64-avx-linux.c): Likewise.
13773
13774 * configure.srv (srv_i386_regobj): Add i386-avx.o.
13775 (srv_i386_linux_regobj): Add i386-avx-linux.o.
13776 (srv_amd64_regobj): Add amd64-avx.o.
13777 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
13778 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
13779 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
13780 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
13781 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
13782 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
13783 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
13784
13785 * i387-fp.c: Include "i386-xstate.h".
13786 (i387_xsave): New.
13787 (i387_cache_to_xsave): Likewise.
13788 (i387_xsave_to_cache): Likewise.
13789 (x86_xcr0): Likewise.
13790
13791 * i387-fp.h (i387_cache_to_xsave): Likewise.
13792 (i387_xsave_to_cache): Likewise.
13793 (x86_xcr0): Likewise.
13794
13795 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
13796 * linux-crisv32-low.c (target_regsets): Likewise.
13797 * linux-m68k-low.c (target_regsets): Likewise.
13798 * linux-mips-low.c (target_regsets): Likewise.
13799 * linux-ppc-low.c (target_regsets): Likewise.
13800 * linux-s390-low.c (target_regsets): Likewise.
13801 * linux-sh-low.c (target_regsets): Likewise.
13802 * linux-sparc-low.c (target_regsets): Likewise.
13803 * linux-xtensa-low.c (target_regsets): Likewise.
13804
13805 * linux-low.c: Include <sys/uio.h>.
13806 (regsets_fetch_inferior_registers): Support nt_type.
13807 (regsets_store_inferior_registers): Likewise.
13808 (linux_process_qsupported): New.
13809 (linux_target_ops): Add linux_process_qsupported.
13810
13811 * linux-low.h (regset_info): Add nt_type.
13812 (linux_target_ops): Add process_qsupported.
13813
13814 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
13815 and <sys/uio.h>.
13816 (init_registers_i386_avx_linux): New.
13817 (init_registers_amd64_avx_linux): Likewise.
13818 (xmltarget_i386_linux_no_xml): Likewise.
13819 (xmltarget_amd64_linux_no_xml): Likewise.
13820 (PTRACE_GETREGSET): Likewise.
13821 (PTRACE_SETREGSET): Likewise.
13822 (x86_fill_xstateregset): Likewise.
13823 (x86_store_xstateregset): Likewise.
13824 (use_xml): Likewise.
13825 (x86_linux_update_xmltarget): Likewise.
13826 (x86_linux_process_qsupported): Likewise.
13827 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
13828 (x86_arch_setup): Don't call init_registers_amd64_linux nor
13829 init_registers_i386_linux here. Call
13830 x86_linux_update_xmltarget.
13831 (the_low_target): Add x86_linux_process_qsupported.
13832
13833 * server.c (handle_query): Call target_process_qsupported.
13834
13835 * target.h (target_ops): Add process_qsupported.
13836 (target_process_qsupported): New.
13837
13838 2010-04-03 Pedro Alves <pedro@codesourcery.com>
13839
13840 * inferiors.c (add_thread): Set last_status kind to
13841 TARGET_WAITKIND_IGNORE.
13842 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
13843 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
13844 (linux_wait_1): Move `thread' local definition to block that uses
13845 it. Don't NULL initialize `event_child'.
13846 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
13847 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
13848 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
13849
13850 2010-04-01 Pedro Alves <pedro@codesourcery.com>
13851
13852 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
13853 an extended waitstatus, or by a watchpoint.
13854 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
13855 thread was stepping or has been stopped by a watchpoint.
13856
13857 2010-04-01 Pedro Alves <pedro@codesourcery.com>
13858
13859 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
13860 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
13861 of another, then delete the previous, and validate all
13862 breakpoints.
13863 (validate_inserted_breakpoint): New.
13864 (delete_disabled_breakpoints): New.
13865 (validate_breakpoints): New.
13866 (check_mem_read): Validate breakpoints before trusting their
13867 shadow. Delete disabled breakpoints.
13868 (check_mem_write): Validate breakpoints before trusting they
13869 should be inserted. Delete disabled breakpoints.
13870 * mem-break.h (validate_breakpoints):
13871 * server.c (handle_query): Validate breakpoints when we see a
13872 qSymbol query.
13873
13874 2010-04-01 Pedro Alves <pedro@codesourcery.com>
13875
13876 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
13877 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
13878 if we could tell there's a GDB breakpoint at stop_pc.
13879 (need_step_over_p): Don't do a step over if we find a GDB
13880 breakpoint at the resume PC.
13881
13882 * mem-break.c (struct raw_breakpoint): New.
13883 (enum bkpt_type): New type `gdb_breakpoint'.
13884 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
13885 fields. New field `raw'.
13886 (find_raw_breakpoint_at): New.
13887 (set_raw_breakpoint_at): Handle refcounting. Create a raw
13888 breakpoint instead.
13889 (set_breakpoint_at): Adjust.
13890 (delete_raw_breakpoint): New.
13891 (release_breakpoint): New.
13892 (delete_breakpoint): Rename to...
13893 (delete_breakpoint_1): ... this. Add proc parameter. Use
13894 release_breakpoint. Return ENOENT.
13895 (delete_breakpoint): Reimplement.
13896 (find_breakpoint_at): Delete.
13897 (find_gdb_breakpoint_at): New.
13898 (delete_breakpoint_at): Delete.
13899 (set_gdb_breakpoint_at): New.
13900 (delete_gdb_breakpoint_at): New.
13901 (gdb_breakpoint_here): New.
13902 (set_reinsert_breakpoint): Use release_breakpoint.
13903 (uninsert_breakpoint): Rename to ...
13904 (uninsert_raw_breakpoint): ... this.
13905 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
13906 (reinsert_raw_breakpoint): Change parameter type to
13907 raw_breakpoint.
13908 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
13909 instead.
13910 (check_breakpoints): Adjust. Use release_breakpoint.
13911 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
13912 (breakpoint_inserted_here): Ditto.
13913 (check_mem_read): Adjust to iterate over raw breakpoints instead.
13914 Don't trust the breakpoint's shadow if it is not inserted.
13915 (check_mem_write): Adjust to iterate over raw breakpoints instead.
13916 (delete_all_breakpoints): Adjust.
13917 (free_all_breakpoints): Mark all breakpoints as uninserted, and
13918 use delete_breakpoint_1.
13919
13920 * mem-break.h (breakpoints_supported): Delete declaration.
13921 (set_gdb_breakpoint_at): Declare.
13922 (gdb_breakpoint_here): Declare.
13923 (delete_breakpoint_at): Delete.
13924 (delete_gdb_breakpoint_at): Declare.
13925
13926 * server.h (struct raw_breakpoint): Forward declare.
13927 (struct process_info): New field `raw_breakpoints'.
13928
13929 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
13930 breakpoints.
13931
13932 2010-03-24 Pedro Alves <pedro@codesourcery.com>
13933
13934 * linux-low.c (status_pending_p_callback): Fix comment.
13935 (linux_wait_for_event_1): Move most of the internal breakpoint
13936 handling from here...
13937 (linux_wait_1): ... to here.
13938 (count_events_callback): New.
13939 (select_singlestep_lwp_callback): New.
13940 (select_event_lwp_callback): New.
13941 (cancel_breakpoints_callback): New.
13942 (select_event_lwp): New.
13943 (linux_wait_1): Simplify internal breakpoint handling. Give equal
13944 priority to all LWPs that have had events that should be reported
13945 to the client. Cancel breakpoints when about to reporting the
13946 event to the client, not while stopping lwps. No longer cancel
13947 finished single-steps here.
13948 (cancel_finished_single_step): Delete.
13949 (cancel_finished_single_steps): Delete.
13950
13951 2010-03-24 Pedro Alves <pedro@codesourcery.com>
13952
13953 * mem-break.c (enum bkpt_type): New.
13954 (struct breakpoint): New field `type'.
13955 (set_breakpoint_at): Change return type to struct breakpoint
13956 pointer. Set type to `other_breakpoint' by default.
13957 (delete_breakpoint): Rewrite, supporting more than one breakpoint
13958 in the breakpoint list.
13959 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
13960 (reinsert_breakpoint): Rename to ...
13961 (reinsert_raw_breakpoint): ... this.
13962 (reinsert_breakpoints_at): Adjust.
13963 * mem-break.h (struct breakpoint): Declare.
13964 (set_breakpoint_at): Change return type to struct breakpoint
13965 pointer.
13966
13967 2010-03-24 Pedro Alves <pedro@codesourcery.com>
13968
13969 * server.c (handle_query): Assign, not compare.
13970
13971 2010-03-24 Pedro Alves <pedro@codesourcery.com>
13972
13973 Teach linux gdbserver to step-over-breakpoints.
13974
13975 * linux-low.c (can_hardware_single_step): New.
13976 (supports_breakpoints): New.
13977 (handle_extended_wait): If stopping threads, read the stop pc of
13978 the new cloned LWP.
13979 (get_pc): New.
13980 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
13981 low target doesn't support retrieving the PC.
13982 (add_lwp): Set last_resume_kind to resume_continue.
13983 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
13984 (linux_attach): Don't clear stop_expected. Set the lwp's
13985 last_resume_kind to resume_stop.
13986 (linux_detach_one_lwp): Don't check for removed breakpoints.
13987 (check_removed_breakpoint): Delete.
13988 (status_pending_p): Rename to ...
13989 (status_pending_p_callback): ... this. Don't check for removed
13990 breakpoints. Don't consider threads that are stopped from GDB's
13991 perspective.
13992 (linux_wait_for_lwp): Always read the stop_pc here.
13993 (cancel_breakpoint): New.
13994 (step_over_bkpt): New global.
13995 (linux_wait_for_event_1): Implement stepping over breakpoints.
13996 (gdb_wants_lwp_stopped): New.
13997 (gdb_wants_all_stopped): New.
13998 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
13999 single-step traps here. Store the thread's last reported target
14000 wait status.
14001 (send_sigstop): Don't clear stop_expected. Always set it,
14002 instead.
14003 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
14004 (cancel_finished_single_step): New.
14005 (cancel_finished_single_steps): New.
14006 (wait_for_sigstop): Don't cancel finished single-step traps here.
14007 (linux_resume_one_lwp): Don't check for removed breakpoints.
14008 Don't set `step' on non-hardware step archs.
14009 (linux_set_resume_request): Ignore resume_stop requests if already
14010 stopping or stopped. Set the lwp's last_resume_kind.
14011 (resume_status_pending_p): Don't check for removed breakpoints.
14012 (need_step_over_p): New.
14013 (start_step_over): New.
14014 (finish_step_over): New.
14015 (linux_resume_one_thread): Always queue a sigstop for resume_stop
14016 requests. Clear the thread's last reported target waitstatus.
14017 Don't use the `suspended' flag. Don't consider pending breakpoints.
14018 (linux_resume): Start a step-over if necessary.
14019 (proceed_one_lwp): New.
14020 (proceed_all_lwps): New.
14021 (unstop_all_lwps): New.
14022 * linux-low.h (struct lwp_info): Rewrite comment for the
14023 `suspended' flag. Add the `stop_pc' field. Delete the
14024 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
14025 Add `'last_resume_kind' and `need_step_over' fields.
14026 * inferiors.c (struct thread_info): Delete, moved elsewhere.
14027 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
14028 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
14029 (set_raw_breakpoint_at): New.
14030 (set_breakpoint_at): Rewrite to use it.
14031 (reinsert_breakpoint_handler): Delete.
14032 (set_reinsert_breakpoint): New.
14033 (reinsert_breakpoint_by_bp): Delete.
14034 (delete_reinsert_breakpoints): New.
14035 (uninsert_breakpoint): Rewrite.
14036 (uninsert_breakpoints_at): New.
14037 (reinsert_breakpoint): Rewrite.
14038 (reinsert_breakpoints_at): New.
14039 (check_breakpoints): Rewrite.
14040 (breakpoint_here): New.
14041 (breakpoint_inserted_here): New.
14042 (check_mem_read): Adjust.
14043 * mem-break.h (breakpoints_supported, breakpoint_here)
14044 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
14045 (reinsert_breakpoint_by_bp): Delete declaration.
14046 (delete_reinsert_breakpoints): Declare.
14047 (reinsert_breakpoint): Delete declaration.
14048 (reinsert_breakpoints_at): Declare.
14049 (uninsert_breakpoint): Delete declaration.
14050 (uninsert_breakpoints_at): Declare.
14051 (check_breakpoints): Adjust prototype.
14052 * server.h: Adjust include order.
14053 (struct thread_info): Declare here. Add a `last_status' field.
14054
14055 2010-03-23 Michael Snyder <msnyder@vmware.com>
14056
14057 * server.c (crc32): New function.
14058 (handle_query): Add handling for 'qCRC:' request.
14059
14060 2010-03-23 Pedro Alves <pedro@codesourcery.com>
14061
14062 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
14063 lwp had been stopped by a watchpoint.
14064
14065 2010-03-16 Pedro Alves <pedro@codesourcery.com>
14066
14067 * server.h (internal_error): Declare.
14068 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
14069 * utils.c (internal_error): New function.
14070
14071 2010-03-15 Andreas Schwab <schwab@redhat.com>
14072
14073 * configure.srv: Fix typo setting srv_regobj.
14074
14075 2010-03-15 Pedro Alves <pedro@codesourcery.com>
14076
14077 * linux-low.c (fetch_register): Avoid passing a non string literal
14078 format to `error'.
14079 (usr_store_inferior_registers): Ditto.
14080
14081 2010-03-14 Pedro Alves <pedro@codesourcery.com>
14082
14083 * linux-low.c (linux_write_memory): Bail out early if peeking
14084 memory failed.
14085
14086 2010-03-14 Pedro Alves <pedro@codesourcery.com>
14087
14088 * linux-low.h (struct lwp_info): New fields
14089 `stopped_by_watchpoint' and `stopped_data_address'.
14090 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
14091 here, and cache them in the lwp object.
14092 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
14093 directly.
14094 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
14095 field.
14096 (linux_stopped_by_watchpoint): Rewrite.
14097 (linux_stopped_data_address): Rewrite.
14098
14099 2010-03-06 Simo Melenius <simo.melenius@iki.fi>
14100
14101 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
14102 switching the current inferior, not before.
14103
14104 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
14105
14106 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
14107 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
14108 i386-linux.c and amd64-linux.c.
14109 (reg-i386.o): Removed.
14110 (reg-i386.c): Likewise.
14111 (reg-i386-linux.o): Likewise.
14112 (reg-i386-linux.c): Likewise.
14113 (reg-x86-64.o): Likewise.
14114 (reg-x86-64.c): Likewise.
14115 (reg-x86-64-linux.o): Likewise.
14116 (reg-x86-64-linux.c): Likewise.
14117 (i386.o): New.
14118 (i386.c): Likewise.
14119 (i386-linux.o): Likewise.
14120 (i386-linux.c): Likewise.
14121 (amd64.o): Likewise.
14122 (amd64.c): Likewise.
14123 (amd64-linux.o): Likewise.
14124 (amd64-linux.c): Likewise.
14125
14126 * configure.srv (srv_i386_regobj): New.
14127 (srv_i386_linux_regobj): Likewise.
14128 (srv_amd64_regobj): Likewise.
14129 (srv_amd64_linux_regobj): Likewise.
14130 (srv_i386_32bit_xmlfiles): Likewise.
14131 (srv_i386_64bit_xmlfiles): Likewise.
14132 (srv_i386_xmlfiles): Likewise.
14133 (srv_amd64_xmlfiles): Likewise.
14134 (srv_i386_linux_xmlfiles): Likewise.
14135 (srv_amd64_linux_xmlfiles): Likewise.
14136 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
14137 srv_xmlfiles to $srv_i386_xmlfiles.
14138 (i[34567]86-*-mingw32ce*): Likewise.
14139 (i[34567]86-*-mingw*): Likewise.
14140 (i[34567]86-*-nto*): Likewise.
14141 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
14142 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
14143 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
14144 (x86_64-*-linux*): Likewise.
14145
14146 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
14147 (init_registers_amd64_linux): New.
14148 (x86_arch_setup): Replace init_registers_x86_64_linux with
14149 init_registers_amd64_linux.
14150
14151 2010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
14152
14153 * configure.ac: Check for libdl. If it is not available link against
14154 static libthread_db.
14155 * configure: Regenerate.
14156
14157 2010-02-22 Pedro Alves <pedro@codesourcery.com>
14158
14159 PR9605
14160
14161 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
14162 handing a read watchpoint.
14163 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
14164
14165 2010-02-12 Doug Evans <dje@google.com>
14166
14167 * linux-low.c (linux_supports_tracefork_flag): Document.
14168 (linux_look_up_symbols): Add comment.
14169
14170 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
14171
14172 * regcache.c (supply_register): Clear regcache if buf is NULL.
14173
14174 2010-02-02 Nicolas Roche <roche@sourceware.org>
14175 Joel Brobecker <brobecker@adacore.com>
14176
14177 * inferiors.c (find_inferior): Add function documentation.
14178 (unloaded_dll): Handle the case where the unloaded dll has not
14179 been previously registered in the dll list.
14180
14181 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
14182
14183 * linux-arm-low.c (thumb_breakpoint_len): Delete.
14184 (thumb2_breakpoint): New.
14185 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
14186
14187 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
14188
14189 * linux-low.c (get_stop_pc): Check for SIGTRAP.
14190 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
14191 breakpoints.
14192
14193 2010-01-21 Pedro Alves <pedro@codesourcery.com>
14194
14195 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
14196
14197 2010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
14198
14199 * linux-s390-low.c (s390_collect_ptrace_register)
14200 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
14201
14202 2010-01-21 Doug Evans <dje@google.com>
14203
14204 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
14205 (PTRACE_ARG4_TYPE): New macro.
14206 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
14207 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
14208 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
14209 (usr_store_inferior_registers): Ditto.
14210 (linux_read_memory, linux_write_memory): Ditto.
14211 (linux_test_for_tracefork): Ditto.
14212
14213 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
14214 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
14215
14216 2010-01-21 Pedro Alves <pedro@codesourcery.com>
14217
14218 * proc-service.c (ps_lgetregs): Don't refetch registers from the
14219 target.
14220
14221 2010-01-21 Pedro Alves <pedro@codesourcery.com>
14222
14223 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
14224 prototype to take a regcache. Adjust.
14225
14226 2010-01-20 Pedro Alves <pedro@codesourcery.com>
14227
14228 * regcache.h (struct thread_info): Forward declare.
14229 (struct regcache): New.
14230 (new_register_cache): Adjust prototype.
14231 (get_thread_regcache): Declare.
14232 (free_register_cache): Adjust prototype.
14233 (registers_to_string, registers_from_string): Ditto.
14234 (supply_register, supply_register_by_name, collect_register)
14235 (collect_register_as_string, collect_register_by_name): Ditto.
14236 * regcache.c (struct inferior_regcache_data): Delete.
14237 (get_regcache): Rename to ...
14238 (get_thread_regcache): ... this. Adjust. Switch inferior before
14239 fetching registers.
14240 (regcache_invalidate_one): Adjust.
14241 (regcache_invalidate): Fix prototype.
14242 (new_register_cache): Return the new register cache.
14243 (free_register_cache): Change prototype.
14244 (realloc_register_cache): Adjust.
14245 (registers_to_string): Change prototype to take a regcache. Adjust.
14246 (registers_from_string): Ditto.
14247 (register_data): Ditto.
14248 (supply_register): Ditto.
14249 (supply_register_by_name): Ditto.
14250 (collect_register): Ditto.
14251 (collect_register_as_string): Ditto.
14252 (collect_register_by_name): Ditto.
14253 * server.c (process_serial_event): Adjust.
14254 * linux-low.h (regset_fill_func, regset_store_func): Change
14255 prototype.
14256 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
14257 Change prototype.
14258 * linux-low.c (get_stop_pc): Adjust.
14259 (check_removed_breakpoint): Adjust.
14260 (linux_wait_for_event): Adjust.
14261 (linux_resume_one_lwp): Adjust.
14262 (fetch_register): Add regcache parameter. Adjust.
14263 (usr_store_inferior_registers): Ditto.
14264 (regsets_fetch_inferior_registers): Ditto.
14265 (regsets_store_inferior_registers): Ditto.
14266 (linux_fetch_registers, linux_store_registers): Ditto.
14267 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
14268 regcache. Adjust.
14269 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
14270 Ditto.
14271 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
14272 prototype to take a regcache.
14273 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
14274 * remote-utils.c (convert_ascii_to_int, outreg)
14275 (prepare_resume_reply): Change prototype to take a regcache.
14276 Adjust.
14277 * target.h (struct target_ops) <fetch_registers, store_registers>:
14278 Change prototype to take a regcache.
14279 (fetch_inferior_registers, store_inferior_registers): Change
14280 prototype to take a regcache. Adjust.
14281 * proc-service.c (ps_lgetregs): Adjust.
14282 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
14283 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
14284 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
14285 take a regcache. Adjust.
14286 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
14287 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
14288 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
14289 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
14290 * linux-cris-low.c (cris_get_pc, cris_set_pc)
14291 (cris_cannot_fetch_register):
14292 (cris_breakpoint_at): Change prototype to take a regcache.
14293 Adjust.
14294 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
14295 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
14296 to take a regcache. Adjust.
14297 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
14298 Adjust.
14299 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
14300 take a regcache. Adjust.
14301 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
14302 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
14303 (m68k_set_pc): Change prototype to take a regcache. Adjust.
14304 * linux-mips-low.c (mips_get_pc):
14305 (mips_set_pc): Change prototype to take a regcache. Adjust.
14306 (mips_reinsert_addr): Adjust.
14307 (mips_collect_register): Change prototype to take a regcache.
14308 Adjust.
14309 (mips_supply_register):
14310 (mips_collect_register_32bit, mips_supply_register_32bit)
14311 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
14312 (mips_store_fpregset): Ditto.
14313 * linux-ppc-low.c (ppc_supply_ptrace_register)
14314 (ppc_supply_ptrace_register): Ditto.
14315 (parse_spufs_run): Adjust.
14316 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
14317 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
14318 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
14319 take a regcache. Adjust.
14320 * linux-s390-low.c (s390_collect_ptrace_register)
14321 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
14322 (s390_set_pc): Change prototype to take a regcache. Adjust.
14323 (s390_arch_setup): Adjust.
14324 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
14325 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
14326 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
14327 (sparc_fill_gregset, sparc_store_gregset_from_stack)
14328 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
14329 regcache. Adjust.
14330 (sparc_breakpoint_at): Adjust.
14331 * linux-xtensa-low.c (xtensa_fill_gregset):
14332 (xtensa_store_gregset):
14333 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
14334 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
14335 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
14336 prototype to take a regcache. Adjust.
14337 * win32-arm-low.c (arm_fetch_inferior_register)
14338 (arm_store_inferior_register): Change prototype to take a
14339 regcache. Adjust.
14340 * win32-i386-low.c (i386_fetch_inferior_register)
14341 (i386_store_inferior_register): Change prototype to take a
14342 regcache. Adjust.
14343 * win32-low.c (child_fetch_inferior_registers)
14344 (child_store_inferior_registers): Change prototype to take a
14345 regcache. Adjust.
14346 (win32_wait): Adjust.
14347 (win32_fetch_inferior_registers): Change prototype to take a
14348 regcache. Adjust.
14349 (win32_store_inferior_registers): Adjust.
14350 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
14351 store_inferior_register>: Change prototype to take a regcache.
14352
14353 2010-01-20 Doug Evans <dje@google.com>
14354
14355 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
14356 #ifdef.
14357 (linux_wait_for_event1, linux_init_signals): Ditto.
14358 (W_STOPCODE): Provide definition if missing.
14359
14360 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
14361
14362 * linux-low.c (linux_core_of_thread): New.
14363 (compare_ints, show_process, list_threads): New.
14364 (linux_qxfer_osdata): Report threads and cores.
14365 (linux_target_op): Register linux_core_of_thread.
14366 * remote-utils.c (prepare_resume_reply): Report the core.
14367 (buffer_xml_printf): Support %d specifier.
14368 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
14369 New.
14370 (handle_query): Handle qXfer:threads. Announce availability
14371 thereof.
14372 * target.h (struct target_ops): New field core_of_thread.
14373
14374 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
14375
14376 * Makefile.in (clean): Remove new generated files.
14377 (reg-s390.o, reg-s390.c): Remove rules.
14378 (reg-s390x.o, reg-s390x.c): Likewise.
14379 (s390-linux32.o, s390-linux32.c): Add rules.
14380 (s390-linux64.o, s390-linux64.c): Likewise.
14381 (s390x-linux64.o, s390x-linux64.c): Likewise.
14382 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
14383 * linux-s390-low.c: Include <elf.h>.
14384 (HWCAP_S390_HIGH_GPRS): Define if undefined.
14385 (init_registers_s390): Remove prototype.
14386 (init_registers_s390x): Likewise.
14387 (init_registers_s390_linux32): Add prototype.
14388 (init_registers_s390_linux64): Likewise.
14389 (init_registers_s390x_linux64): Likewise.
14390 (s390_num_regs_3264): New define.
14391 (s390_regmap_3264): New global variable.
14392 (s390_cannot_fetch_register): Remove obsolete check.
14393 (s390_cannot_store_register): Likewise.
14394 (s390_collect_ptrace_register): Handle upper/lower register halves.
14395 (s390_supply_ptrace_register): Likewise.
14396 (s390_fill_gregset): Update to register number changes.
14397 (s390_get_hwcap): New routine.
14398 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
14399 Install appropriate regmap and register set.
14400
14401 2010-01-01 Joel Brobecker <brobecker@adacore.com>
14402
14403 * server.c (gdbserver_version): Update copyright year to 2010.
14404 * gdbreplay.c (gdbreplay_version): Likewise.
14405
14406 2009-12-28 Doug Evans <dje@google.com>
14407
14408 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
14409 elf/external.h. Include <elf.h> instead but only if necessary.
14410
14411 2009-12-28 Pedro Alves <pedro@codesourcery.com>
14412
14413 * linux-low.c (linux_remove_process): Remove `detaching'
14414 parameter. Don't release/detach from thread_db here.
14415 (linux_kill): Release/detach from thread_db here, ...
14416 (linux_detach): ... and here, before actually detaching.
14417 (linux_wait_1): ... and here, when a process exits.
14418 * thread-db.c (any_thread_of): New.
14419 (thread_db_free): Switch the current inferior to a thread of the
14420 passed in process.
14421
14422 2009-12-21 Doug Evans <dje@google.com>
14423
14424 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
14425
14426 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
14427 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
14428 warning ifndef __NR_tkill. Move setting of errno there too.
14429 Delete unnecessary resetting of errno after syscall.
14430 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
14431
14432 * configure.ac: Check for dladdr.
14433 * config.in: Regenerate.
14434 * configure: Regenerate.
14435 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
14436 (try_thread_db_load): Update.
14437
14438 * linux-low.c (my_waitpid): Delete unnecessary prototype.
14439
14440 2009-12-18 Doug Evans <dje@google.com>
14441
14442 * event-loop.c: Include unistd.h if it exists.
14443
14444 * linux-low.c (my_waitpid): Move definition away from being in
14445 between linux_tracefork_child/linux_test_for_tracefork.
14446
14447 * gdb_proc_service.h (psaddr_t): Fix type.
14448 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
14449 signature to match glibc.
14450
14451 2009-12-16 Doug Evans <dje@google.com>
14452
14453 * linux-low.c (linux_read_memory): Fix argument to read.
14454
14455 2009-11-26 Pedro Alves <pedro@codesourcery.com>
14456
14457 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
14458 events, don't leave current_inferior pointing at null.
14459
14460 2009-11-26 Pedro Alves <pedro@codesourcery.com>
14461
14462 * win32-low.c (LOG): Delete.
14463 (OUTMSG): Output to stderr.
14464 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
14465 on compile time LOG macro.
14466 (win32_wait): Fix debug output.
14467
14468 2009-11-26 Pedro Alves <pedro@codesourcery.com>
14469
14470 * win32-low.c (win32_add_one_solib): If the dll name is
14471 "ntdll.dll", prepend the system directory to the dll path.
14472
14473 2009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
14474
14475 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
14476
14477 2009-11-17 Nathan Sidwell <nathan@codesourcery.com>
14478 Vladimir Prus <vladimir@codesourcery.com>
14479
14480 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
14481 * configure.ac: Check for __mcoldfire__ and set
14482 gdb_cv_m68k_is_coldfire.
14483 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
14484 reg-cf.o and reg-m68k.o.
14485 * configure: Regenerated.
14486
14487 2009-11-16 Pedro Alves <pedro@codesourcery.com>
14488
14489 * linux-low.c (linux_remove_process): Add `detaching' parameter.
14490 Pass it to thread_db_free.
14491 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
14492 proper `detaching' argument to linux_remove_process.
14493 * linux-low.h (thread_db_free): Add `detaching' parameter.
14494 * thread-db.c (thread_db_init): Pass false as `detaching' argument
14495 to thread_db_free.
14496 (thread_db_free): Add `detaching' parameter. Only
14497 call td_ta_clear_event if detaching from process.
14498
14499 2009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
14500
14501 * thread-db.c (thread_db_free): Fix typo.
14502
14503 2009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
14504
14505 PR gdb/10838
14506 * thread-db.c (thread_db_free): Call td_ta_clear_event.
14507
14508 2009-11-03 Nathan Sidwell <nathan@codesourcery.com>
14509
14510 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
14511 with an i686 compiler.
14512 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
14513 needed.
14514 * configure: Rebuilt.
14515
14516 2009-10-29 Sandra Loosemore <sandra@codesourcery.com>
14517
14518 PR gdb/10783
14519
14520 * server.c (handle_search_memory_1): Correct read_addr initialization
14521 in loop for searching subsequent chunks.
14522
14523 2009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
14524
14525 * configure.ac: New --with-libthread-db option.
14526 * thread-db.c: Allow direct dependence on libthread_db.
14527 (thread_db_free): Adjust.
14528 * config.in: Regenerate.
14529 * configure: Likewise.
14530
14531 2009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
14532
14533 PR gdb/10757
14534 * thread-db.c (attach_thread): New function.
14535 (maybe_attach_thread): Return success/failure.
14536 (find_new_threads_callback): Adjust.
14537 (thread_db_find_new_threads): Loop until no new threads.
14538
14539 2009-10-13 Pedro Alves <pedro@codesourcery.com>
14540
14541 * proc-service.c (ps_lgetregs): Formatting.
14542
14543 2009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
14544
14545 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
14546 * configure.ac: Adjust.
14547 * linux-low.h (struct process_info_private): Move members to struct
14548 thread_db.
14549 (thread_db_free, thread_db_handle_monitor_command): New prototype.
14550 * linux-low.c (linux_remove_process): Adjust.
14551 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
14552 * server.c (handle_query): Move code ...
14553 (handle_monitor_command): ... here. New function.
14554 * target.h (struct target_ops): New member.
14555 * thread-db.c (struct thread_db): New.
14556 (libthread_db_search_path): New variable.
14557 (thread_db_create_event, thread_db_enable_reporting)
14558 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
14559 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
14560 (try_thread_db_load_1, dladdr_to_soname): New functions.
14561 (try_thread_db_load, thread_db_load_search): New functions.
14562 (thread_db_init): Search for libthread_db.
14563 (thread_db_free): New function.
14564 (thread_db_handle_monitor_command): Likewise.
14565 * config.in: Regenerate.
14566 * configure: Regenerate.
14567
14568 2009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
14569
14570 * spu-low.c (spu_kill): Wait for inferior to terminate.
14571 Call clear_inferiors.
14572 (spu_detach): Call clear_inferiors.
14573
14574 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14575
14576 * aclocal.m4: Regenerate.
14577 * config.in: Likewise.
14578 * configure: Likewise.
14579
14580 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
14581
14582 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
14583 (parse_spufs_run): New function.
14584 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
14585 (ppc_breakpoint_at): Handle SPU breakpoints.
14586
14587 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
14588
14589 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
14590 (SPUFS_MAGIC): Define.
14591 (spu_enumerate_spu_ids): New function.
14592 (linux_qxfer_spu): New function.
14593 (linux_target_ops): Install linux_qxfer_spu.
14594
14595 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
14596
14597 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
14598 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
14599 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
14600 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
14601 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
14602 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
14603 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
14604 (init_registers_powerpc_cell32l): Add prototype.
14605 (init_registers_powerpc_cell64l): Likewise.
14606 (ppc_arch_setup): Detect Cell/B.E. architecture.
14607
14608 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14609
14610 * Makefile.in (datarootdir): New variable.
14611
14612 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
14613
14614 * linux-low.c (linux_write_memory): Update debugging output.
14615 * Makefile.in (clean): Add new descriptions.
14616 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
14617 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
14618 * configure.srv: Add new files for arm*-*-linux*.
14619 * linux-arm-low.c: Add new declarations.
14620 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
14621 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
14622 (HWCAP_VFPv3D16): New.
14623 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
14624 instead of __IWMMXT__.
14625 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
14626 (arm_arch_setup): New.
14627 (target_regsets): Remove #ifdef. Add VFP regset.
14628 (the_low_target): Use arm_arch_setup.
14629
14630 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
14631
14632 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
14633 the main thread again.
14634
14635 2009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
14636
14637 Adding Neutrino gdbserver.
14638 * configure: Regenerated.
14639 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
14640 * configure.srv (i[34567]86-*-nto*): New target.
14641 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
14642 * remote-utils.c [__QNX__]: Include sys/iomgr.h
14643 (nto_comctrl) [__QNX__]: New function.
14644 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
14645
14646 2009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
14647
14648 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
14649 srv_tgtobj.
14650
14651 2009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
14652 Pedro Alves <pedro@codesourcery.com>
14653
14654 * win32-i386-low.c (i386_get_thread_context): Handle systems that
14655 don't support CONTEXT_EXTENDED_REGISTERS.
14656 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
14657 (the_low_target): Install them.
14658 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
14659 failing with ERROR_PIPE_NOT_CONNECTED.
14660
14661 2009-06-30 Doug Evans <dje@google.com>
14662 Pierre Muller <muller@ics.u-strasbg.fr>
14663
14664 Add h/w watchpoint support to x86-linux, win32-i386.
14665 * Makefile.in (SFILES): Add i386-low.c
14666 (i386_low_h): Define.
14667 (i386-low.o): Add dependencies.
14668 (linux-x86-low.o): Add i386-low.h dependency.
14669 (win32-i386-low.o): Ditto.
14670 * i386-low.c: New file.
14671 * i386-low.h: New file.
14672 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
14673 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
14674 * linux-low.c (linux_add_process): Initialize arch_private.
14675 (linux_remove_process): Free arch_private.
14676 (add_lwp): Initialize arch_private.
14677 (delete_lwp): Free arch_private.
14678 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
14679 provided.
14680 * linux-low.h (process_info_private): New member arch_private.
14681 (lwp_info): New member arch_private.
14682 (linux_target_ops): New members new_process, new_thread,
14683 prepare_to_resume.
14684 (ptid_of): New macro.
14685 * linux-x86-low.c: Include stddef.h, i386-low.h.
14686 (arch_process_info): New struct.
14687 (arch_lwp_info): New struct.
14688 (x86_linux_dr_get, x86_linux_dr_set): New functions.
14689 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
14690 (i386_dr_low_get_status): New function.
14691 (x86_insert_point, x86_remove_point): New functions.
14692 (x86_stopped_by_watchpoint): New function.
14693 (x86_stopped_data_address): New function.
14694 (x86_linux_new_process, x86_linux_new_thread): New functions.
14695 (x86_linux_prepare_to_resume): New function.
14696 (the_low_target): Add entries for insert_point, remove_point,
14697 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
14698 prepare_to_resume.
14699 * server.c (debug_hw_points): New global.
14700 (monitor_show_help): Document set debug-hw-points.
14701 (handle_query): Process "set debug-hw-points".
14702 * server.h (debug_hw_points): Declare.
14703 (paddress): Declare.
14704 * utils.c (NUMCELLS, CELLSIZE): New macros.
14705 (get_sell, xsnprintf, paddress): New functions.
14706 * win32-arm-low.c (the_low_target): Add entries for insert_point,
14707 remove_point, stopped_by_watchpoint, stopped_data_address.
14708 * win32-i386-low.c: Include i386-low.h.
14709 (debug_reg_state): Replaces dr.
14710 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
14711 (i386_dr_low_get_status): New function.
14712 (i386_insert_point, i386_remove_point): New functions.
14713 (i386_stopped_by_watchpoint): New function.
14714 (i386_stopped_data_address): New function.
14715 (i386_initial_stuff): Update.
14716 (get_thread_context,set_thread_context,i386_thread_added): Update.
14717 (the_low_target): Add entries for insert_point,
14718 remove_point, stopped_by_watchpoint, stopped_data_address.
14719 * win32-low.c (win32_insert_watchpoint): New function.
14720 (win32_remove_watchpoint): New function.
14721 (win32_stopped_by_watchpoint): New function.
14722 (win32_stopped_data_address): New function.
14723 (win32_target_ops): Add entries for insert_watchpoint,
14724 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
14725 * win32-low.h (win32_target_ops): New members insert_point,
14726 remove_point, stopped_by_watchpoint, stopped_data_address.
14727
14728 2009-06-25 Pedro Alves <pedro@codesourcery.com>
14729
14730 * server.c (process_serial_event): Re-return unsupported, not
14731 error, if the type isn't recognized. Re-allow supporting only
14732 insert or remove packets. Also call require_running for
14733 breakpoints. Add missing break statement to default case. Tidy.
14734 * target.h (struct target_ops): Rename insert_watchpoint to
14735 insert_point, and remove_watchpoint to remove_point.
14736
14737 * linux-low.h (struct linux_target_ops): Likewise.
14738 * linux-low.c (linux_insert_watchpoint): Rename to ...
14739 (linux_insert_point): ... this. Adjust.
14740 (linux_remove_watchpoint): Rename to ...
14741 (linux_remove_point): ... this. Adjust.
14742 (linux_target_ops): Adjust.
14743 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
14744 (cris_insert_point): ... this.
14745 (cris_remove_watchpoint): Rename to ...
14746 (cris_remove_point): ... this.
14747 (the_low_target): Adjust.
14748
14749 2009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
14750
14751 * server.c (handle_v_kill): Pass signal_pid to
14752 kill_inferior if multi_process is zero.
14753
14754 2009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
14755
14756 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
14757 * target.h (target_ops): Comment for *_watchpoint to make it clear
14758 the functions can get types '0' and '1'.
14759
14760 2009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
14761
14762 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
14763 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
14764 * regcache.c (get_regcache): Likewise.
14765 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
14766 * win32-low.c (child_fetch_inferior_registers): Remove check for
14767 regno 0.
14768
14769 2009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
14770 Pedro Alves <pedro@codesourcery.com>
14771
14772 * target.h (struct target_ops) <supports_multi_process>: New
14773 callback.
14774 (target_supports_multi_process): New.
14775 * server.c (handle_query): Even if GDB reports support, only
14776 enable multi-process if the target also supports it. Report
14777 multi-process support only if the target backend supports it.
14778 * linux-low.c (linux_supports_multi_process): New function.
14779 (linux_target_ops): Install it as target_supports_multi_process
14780 callback.
14781
14782 2009-05-24 Doug Evans <dje@google.com>
14783
14784 Global renaming of find_thread_pid to find_thread_ptid.
14785 * server.h (find_thread_ptid): Renamed from find_thread_pid.
14786 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
14787 All callers updated.
14788
14789 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
14790 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
14791 directly.
14792
14793 * linux-low.c (get_stop_pc): Print pc if debug_threads.
14794 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
14795 (linux_resume_one_lwp): Ditto.
14796
14797 2009-05-23 Doug Evans <dje@google.com>
14798
14799 * linux-low.c (linux_resume_one_lwp): Change type of first arg
14800 from struct inferior_list_entry * to struct lwp_info *.
14801 All callers updated.
14802
14803 2009-05-13 Doug Evans <dje@google.com>
14804
14805 * linux-x86-low.c: Don't include assert.h.
14806 (x86_siginfo_fixup): Use fatal, not assert.
14807 (x86_arch_setup): Fix comment.
14808
14809 2009-05-12 Doug Evans <dje@google.com>
14810
14811 Biarch support for i386/amd64 gdbserver.
14812 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
14813 Add linux-x86-low.c.
14814 (linux-i386-low.o, linux-x86-64-low.o): Delete.
14815 (linux-x86-low.o): Add.
14816 * linux-x86-64-low.c: Delete.
14817 * linux-i386-low.c: Delete.
14818 * linux-x86-low.c: New file.
14819 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
14820 linux-x86-low.o.
14821 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
14822 linux-x86-low.o.
14823 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
14824 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
14825 (linux_child_pid_to_exec_file): New function.
14826 (elf_64_header_p, elf_64_file_p): New functions.
14827 (siginfo_fixup): New function.
14828 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
14829 give target a chance to convert layout.
14830 * linux-low.h (linux_target_ops): New member siginfo_fixup.
14831 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
14832
14833 2009-05-07 Doug Evans <dje@google.com>
14834
14835 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
14836 (regsets_store_inferior_registers): Ditto.
14837
14838 2009-05-06 Pedro Alves <pedro@codesourcery.com>
14839
14840 PR server/10048
14841
14842 * linux-low.c (must_set_ptrace_flags): Delete.
14843 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
14844 of the global.
14845 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
14846 `lwp->must_set_ptrace_flags' instead.
14847 (linux_wait_for_event_1): Set ptrace options here.
14848 (linux_wait_1): ... not here.
14849
14850 2009-04-30 Doug Evans <dje@google.com>
14851
14852 * inferiors.c (started_inferior_callback): New function.
14853 (attached_inferior_callback): New function.
14854 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
14855 * server.c (print_started_pid, print_attached_pid): New functions.
14856 (detach_or_kill_for_exit): New function.
14857 (main): Call it instead of for_each_inferior (kill_inferior_callback).
14858 * server.h (have_started_inferiors_p): Declare.
14859 (have_attached_inferiors_p): Declare.
14860
14861 * inferiors.c (remove_process): Fix memory leak, free process.
14862 * linux-low.c (linux_remove_process): New function.
14863 (linux_kill): Call it instead of remove_process.
14864 (linux_detach, linux_wait_1): Ditto.
14865
14866 2009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
14867
14868 * configure.srv: Add x86 Windows CE target.
14869
14870 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
14871
14872 * inferiors.c (get_thread_process): Make global.
14873 * server.h (get_thread_process): Add prototype.
14874 * thread-db.c (find_one_thread): Use get_thread_process
14875 instead of current_process.
14876 (thread_db_get_tls_address): Do not crash if called when
14877 thread layer is not yet initialized.
14878
14879 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
14880
14881 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
14882 * spu-low.c (current_tid): Rename to ...
14883 (current_ptid): ... this.
14884 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
14885 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
14886 ptid_get_lwp (current_ptid) instead of current_tid.
14887 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
14888 instead of current_tid. Use find_process_pid to verify pid
14889 argument is valid. Pass proper argument to remove_process.
14890 (spu_thread_alive): Compare current_ptid instead of current_tid.
14891 (spu_resume): Likewise.
14892
14893 2009-04-02 Pedro Alves <pedro@codesourcery.com>
14894
14895 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
14896 variable.
14897
14898 2009-04-01 Pedro Alves <pedro@codesourcery.com>
14899
14900 Implement the multiprocess extensions, and add linux multiprocess
14901 support.
14902
14903 * server.h (ULONGEST): Declare.
14904 (struct ptid, ptid_t): New.
14905 (minus_one_ptid, null_ptid): Declare.
14906 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
14907 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
14908 (struct inferior_list_entry): Change `id' type from unsigned from
14909 to ptid_t.
14910 (struct sym_cache, struct breakpoint, struct
14911 process_info_private): Forward declare.
14912 (struct process_info): Declare.
14913 (current_process): Declare.
14914 (all_processes): Declare.
14915 (initialize_inferiors): Declare.
14916 (add_thread): Adjust to use ptid_t.
14917 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
14918 (add_process, remove_process, find_thread_pid): Declare.
14919 (find_inferior_id): Adjust to use ptid_t.
14920 (cont_thread, general_thread, step_thread): Change type to ptid_t.
14921 (multi_process): Declare.
14922 (push_event): Adjust to use ptid_t.
14923 (read_ptid, write_ptid): Declare.
14924 (prepare_resume_reply): Adjust to use ptid_t.
14925 (clear_symbol_cache): Declare.
14926 * inferiors.c (all_processes): New.
14927 (null_ptid, minus_one_ptid): New.
14928 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
14929 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
14930 (add_thread): Change unsigned long to ptid. Remove gdb_id
14931 parameter. Adjust.
14932 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
14933 (gdb_id_to_thread): Rename to ...
14934 (find_thread_pid): ... this. Change unsigned long to ptid.
14935 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
14936 (loaded_dll, pull_pid_from_list): Adjust.
14937 (add_process, remove_process, find_process_pid)
14938 (get_thread_process, current_process, initialize_inferiors): New.
14939 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
14940 (struct target_waitstatus) <related_pid>: Ditto.
14941 (struct target_ops) <kill, detach>: Add `pid' argument. Change
14942 return type to int.
14943 (struct target_ops) <join>: Add `pid' argument.
14944 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
14945 (struct target_ops) <wait>: Add `ptid' field. Change return type
14946 to ptid.
14947 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
14948 (mywait): Add `ptid' argument. Change return type to ptid_t.
14949 (target_pid_to_str): Declare.
14950 * target.c (set_desired_inferior): Adjust to use ptids.
14951 (mywait): Add new `ptid' argument. Adjust.
14952 (target_pid_to_str): New.
14953 * mem-break.h (free_all_breakpoints): Declare.
14954 * mem-break.c (breakpoints): Delelete.
14955 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
14956 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
14957 to use per-process breakpoint list.
14958 (free_all_breakpoints): New.
14959 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
14960 (symbol_cache, all_symbols_looked_up): Delete.
14961 (hexchars): New.
14962 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
14963 read_ptid): New.
14964 (prepare_resume_reply): Change ptid argument's type from unsigned
14965 long to ptid_t. Adjust. Implement W;process and X;process.
14966 (free_sym_cache, clear_symbol_cache): New.
14967 (look_up_one_symbol): Adjust to per-process symbol cache. *
14968 * server.c (cont_thread, general_thread, step_thread): Change type
14969 to ptid_t.
14970 (attached): Delete.
14971 (multi_process): New.
14972 (last_ptid): Change type to ptid_t.
14973 (struct vstop_notif) <ptid>: Change type to ptid_t.
14974 (queue_stop_reply, push_event): Change `ptid' argument's type to
14975 ptid_t.
14976 (discard_queued_stop_replies): Add `pid' argument.
14977 (start_inferior): Adjust to use ptids. Adjust to mywait interface
14978 changes. Don't reference the `attached' global.
14979 (attach_inferior): Adjust to mywait interface changes.
14980 (handle_query): Adjust to use ptids. Parse GDB's qSupported
14981 features. Handle and report "multiprocess+". Handle
14982 "qAttached:PID".
14983 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
14984 changes.
14985 (handle_v_kill): New.
14986 (handle_v_stopped): Adjust to use target_pid_to_str.
14987 (handle_v_requests): Allow multiple attaches and runs when
14988 multiprocess extensions are in effect. Handle "vKill".
14989 (myresume): Adjust to use ptids.
14990 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
14991 (handle_status): Adjust to discard_queued_stop_replies interface
14992 change.
14993 (first_thread_of, kill_inferior_callback)
14994 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
14995 (main): Call initialize_inferiors. Adjust to use ptids, killing
14996 and detaching from all inferiors. Handle multiprocess packet
14997 variants.
14998 * linux-low.h: Include gdb_proc_service.h.
14999 (struct process_info_private): New.
15000 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
15001 <lwpid_of>: Use ptid_get_lwp.
15002 (get_lwp_thread): Adjust.
15003 (struct lwp_info): Add `dead' member.
15004 (find_lwp_pid): Declare.
15005 * linux-low.c (thread_db_active): Delete.
15006 (new_inferior): Adjust comment.
15007 (inferior_pid): Delete.
15008 (linux_add_process): New.
15009 (handle_extended_wait): Adjust.
15010 (add_lwp): Change unsigned long to ptid.
15011 (linux_create_inferior): Add process to processes table. Adjust
15012 to use ptids. Don't set new_inferior here.
15013 (linux_attach_lwp): Rename to ...
15014 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
15015 it. Adjust to use ptids.
15016 (linux_attach_lwp): New.
15017 (linux_attach): Add process to processes table. Don't set
15018 new_inferior here.
15019 (struct counter): New.
15020 (second_thread_of_pid_p, last_thread_of_process_p): New.
15021 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
15022 multiple processes.
15023 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
15024 processes. Remove process from process table.
15025 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
15026 to multiple processes.
15027 (any_thread_of): New.
15028 (linux_detach): Add `pid' argument, and handle it. Remove process
15029 from processes table.
15030 (linux_join): Add `pid' argument. Handle it.
15031 (linux_thread_alive): Change unsighed long argument to ptid_t.
15032 Consider dead lwps as not being alive.
15033 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
15034 threads we're not interested in.
15035 (same_lwp, find_lwp_pid): New.
15036 (linux_wait_for_lwp): Change `pid' argument's type from int to
15037 ptid_t. Adjust.
15038 (linux_wait_for_event): Rename to ...
15039 (linux_wait_for_event_1): ... this. Change `pid' argument's type
15040 from int to ptid_t. Adjust.
15041 (linux_wait_for_event): New.
15042 (linux_wait_1): Add `ptid' argument. Change return type to
15043 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
15044 that exit from the process table.
15045 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
15046 Adjust.
15047 (mark_lwp_dead): New.
15048 (wait_for_sigstop): Adjust to use ptids. If a process exits while
15049 stopping all threads, mark its main lwp as dead.
15050 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
15051 ptids.
15052 (fetch_register, usr_store_inferior_registers)
15053 (regsets_fetch_inferior_registers)
15054 (regsets_store_inferior_registers, linux_read_memory)
15055 (linux_write_memory): Inline `inferior_pid'.
15056 (linux_look_up_symbols): Adjust to use per-process
15057 `thread_db_active'.
15058 (linux_request_interrupt): Adjust to use ptids.
15059 (linux_read_auxv): Inline `inferior_pid'.
15060 (initialize_low): Don't reference thread_db_active.
15061 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
15062 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
15063 (ps_getpid): Return the pid of the current inferior.
15064 * thread-db.c (proc_handle, thread_agent): Delete.
15065 (thread_db_create_event, thread_db_enable_reporting): Adjust to
15066 per-process data.
15067 (find_one_thread): Change argument type to ptid_t. Adjust to
15068 per-process data.
15069 (maybe_attach_thread): Adjust to per-process data and ptids.
15070 (thread_db_find_new_threads): Ditto.
15071 (thread_db_init): Ditto.
15072 * spu-low.c (spu_create_inferior, spu_attach): Add process to
15073 processes table. Adjust to use ptids.
15074 (spu_kill, spu_detach): Adjust interface. Remove process from
15075 processes table.
15076 (spu_join, spu_thread_alive): Adjust interface.
15077 (spu_wait): Adjust interface. Remove process from processes
15078 table. Adjust to use ptids.
15079 * win32-low.c (current_inferior_tid): Delete.
15080 (current_inferior_ptid): New.
15081 (debug_event_ptid): New.
15082 (thread_rec): Take a ptid. Adjust.
15083 (child_add_thread): Add `pid' argument. Adjust to use ptids.
15084 (child_delete_thread): Ditto.
15085 (do_initial_child_stuff): Add `attached' argument. Add process to
15086 processes table.
15087 (child_fetch_inferior_registers, child_store_inferior_registers):
15088 Adjust.
15089 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
15090 (win32_attach): Pass 1 to do_initial_child_stuff.
15091 (win32_kill): Adjust interface. Remove process from processes
15092 table.
15093 (win32_detach): Ditto.
15094 (win32_join): Adjust interface.
15095 (win32_thread_alive): Take a ptid.
15096 (win32_resume): Adjust to use ptids.
15097 (get_child_debug_event): Ditto.
15098 (win32_wait): Adjust interface. Remove exiting process from
15099 processes table.
15100
15101 2009-04-01 Pedro Alves <pedro@codesourcery.com>
15102
15103 Non-stop mode support.
15104
15105 * server.h (non_stop): Declare.
15106 (gdb_client_data, handler_func): Declare.
15107 (delete_file_handler, add_file_handler, start_event_loop):
15108 Declare.
15109 (handle_serial_event, handle_target_event, push_event)
15110 (putpkt_notif): Declare.
15111 * target.h (enum resume_kind): New.
15112 (struct thread_resume): Replace `step' field by `kind' field.
15113 (TARGET_WNOHANG): Define.
15114 (struct target_ops) <wait>: Add `options' argument.
15115 <supports_non_stop, async, start_non_stop>: New fields.
15116 (target_supports_non_stop, target_async): New.
15117 (start_non_stop): Declare.
15118 (mywait): Add `options' argument.
15119 * target.c (mywait): Add `options' argument. Print child exit
15120 notifications here.
15121 (start_non_stop): New.
15122 * server.c (non_stop, own_buf, mem_buf): New globals.
15123 (struct vstop_notif): New.
15124 (notif_queue): New global.
15125 (queue_stop_reply, push_event, discard_queued_stop_replies)
15126 (send_next_stop_reply): New.
15127 (start_inferior): Adjust to use resume_kind. Adjust to mywait
15128 interface changes.
15129 (attach_inferior): In non-stop mode, don't wait for the target
15130 here.
15131 (handle_general_set): Handle QNonStop.
15132 (handle_query): When handling qC, return the current general
15133 thread, instead of the first thread of the list.
15134 (handle_query): If the backend supports non-stop mode, include
15135 QNonStop+ in the qSupported query response.
15136 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
15137 and non-stop mode.
15138 (handle_v_attach, handle_v_run): Handle non-stop mode.
15139 (handle_v_stopped): New.
15140 (handle_v_requests): Report support for vCont;t. Handle vStopped.
15141 (myresume): Adjust to use resume_kind. Handle non-stop.
15142 (queue_stop_reply_callback): New.
15143 (handle_status): Handle non-stop mode.
15144 (main): Clear non_stop flag on reconnection. Use the event-loop.
15145 Refactor serial protocol handling from here ...
15146 (process_serial_event): ... to this new function. When GDB
15147 selects any thread, select one here. In non-stop mode, wait until
15148 GDB acks all pending events before exiting.
15149 (handle_serial_event, handle_target_event): New.
15150 * remote-utils.c (remote_open): Install remote_desc in the event
15151 loop.
15152 (remote_close): Remove remote_desc from the event loop.
15153 (putpkt_binary): Rename to...
15154 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
15155 (putpkt_binary): New as wrapper around putpkt_binary_1.
15156 (putpkt_notif): New.
15157 (prepare_resume_reply): In non-stop mode, don't change the
15158 general_thread.
15159 * event-loop.c: New.
15160 * Makefile.in (OBJ): Add event-loop.o.
15161 (event-loop.o): New rule.
15162
15163 * linux-low.h (pid_of): Moved here.
15164 (lwpid_of): New.
15165 (get_lwp_thread): Use lwpid_of.
15166 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
15167 * linux-low.c (pid_of): Delete.
15168 (inferior_pid): Use lwpid_of.
15169 (linux_event_pipe): New.
15170 (target_is_async_p): New.
15171 (delete_lwp): New.
15172 (handle_extended_wait): Use lwpid_of.
15173 (add_lwp): Don't set lwpid field.
15174 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
15175 (linux_kill_one_lwp): If killing a running lwp, stop it first.
15176 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
15177 (linux_detach_one_lwp): If detaching from a running lwp, stop it
15178 first. Adjust to linux_wait_for_event interface changes. Use
15179 lwpid_of.
15180 (linux_detach): Don't delete the main lwp here.
15181 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
15182 (status_pending_p): Don't consider explicitly suspended lwps.
15183 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
15184 pointer. Add OPTIONS argument. Change return type to int. Use
15185 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
15186 (linux_wait_for_event): Take an integer pid instead of a lwp_info
15187 pointer. Add status pointer argument. Return a pid instead of a
15188 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
15189 changes. In non-stop mode, don't switch to a random thread.
15190 (linux_wait): Rename to...
15191 (linux_wait_1): ... this. Add target_options argument, and handle
15192 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
15193 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
15194 clean exit and signal exit code. Don't stop all threads in
15195 non-stop mode. In all-stop mode, only stop all threads when
15196 reporting a stop to GDB. Handle explicit thread stop requests.
15197 (async_file_flush, async_file_mark): New.
15198 (linux_wait): New.
15199 (send_sigstop): Use lwpid_of.
15200 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
15201 interface changes. In non-stop mode, don't switch to a random
15202 thread.
15203 (linux_resume_one_lwp): Use lwpid_of.
15204 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
15205 (linux_resume_one_thread): ... this. Handle resume_stop. In
15206 non-stop mode, don't look for pending flag in all threads.
15207 (resume_status_pending_p): Don't consider explicitly suspended
15208 threads.
15209 (my_waitpid): Reimplement. Emulate __WALL.
15210 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
15211 Use lwpid_of.
15212 (sigchld_handler, linux_supports_non_stop, linux_async)
15213 (linux_start_non_stop): New.
15214 (linux_target_ops): Register linux_supports_non_stop, linux_async
15215 and linux_start_non_stop.
15216 (initialize_low): Install SIGCHLD handler.
15217 * thread-db.c (thread_db_create_event, find_one_thread)
15218 (thread_db_get_tls_address): Use lwpid_of.
15219 * win32-low.c (win32_detach): Adjust to use resume_kind.
15220 (win32_wait): Add `options' argument.
15221 * spu-low.c (spu_resume): Adjust to use resume_kind.
15222 (spu_wait): Add `options' argument.
15223
15224 2009-04-01 Pedro Alves <pedro@codesourcery.com>
15225
15226 Decouple target code from remote protocol.
15227
15228 * target.h (enum target_waitkind): New.
15229 (struct target_waitstatus): New.
15230 (struct target_ops) <wait>: Return an unsigned long. Take a
15231 target_waitstatus pointer instead of a char pointer.
15232 (mywait): Likewise.
15233 * target.c (mywait): Change prototype to return an unsigned long.
15234 Take a target_waitstatus pointer instead of a char pointer. Adjust.
15235 * server.h (thread_from_wait, old_thread_from_wait): Delete
15236 declarations.
15237 (prepare_resume_reply): Change prototype to take a
15238 target_waitstatus.
15239 * server.c (thread_from_wait, old_thread_from_wait): Delete.
15240 (last_status, last_ptid): New.
15241 (start_inferior): Remove "statusptr" argument. Adjust. Return a
15242 pid instead of a signal.
15243 (attach_inferior): Remove "status" and "signal" parameters.
15244 Adjust.
15245 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
15246 not as an address.
15247 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
15248 (handle_v_requests, myresume): Remove "status" and "signal"
15249 parameters. Adjust.
15250 (handle_status): New.
15251 (main): Delete local `status'. Adjust.
15252 * remote-utils.c: Include target.h.
15253 (prepare_resume_reply): Change prototype to take a
15254 target_waitstatus. Adjust.
15255
15256 * linux-low.c (linux_wait): Adjust to new target_ops->wait
15257 interface.
15258 * spu-low.c (spu_wait): Adjust.
15259 * win32-low.c (enum target_waitkind, struct target_waitstatus):
15260 Delete.
15261 (win32_wait): Adjust.
15262
15263 2009-04-01 Pedro Alves <pedro@codesourcery.com>
15264
15265 * target.h (struct thread_resume): Delete leave_stopped member.
15266 (struct target_ops): Add a `n' argument to the `resume' callback.
15267 * server.c (start_inferior): Adjust.
15268 (handle_v_cont, myresume): Adjust.
15269 * linux-low.c (check_removed_breakpoint): Adjust to resume
15270 interface change, and to removed leave_stopped field.
15271 (resume_ptr): Delete.
15272 (struct thread_resume_array): New.
15273 (linux_set_resume_request): Add new `arg' parameter. Adjust to
15274 resume interface change.
15275 (linux_continue_one_thread, linux_queue_one_thread)
15276 (resume_status_pending_p): Check if the resume field is NULL
15277 instead of checking the leave_stopped member.
15278 (linux_resume): Adjust to the target resume interface change.
15279 * spu-low.c (spu_resume): Adjust to the target resume interface
15280 change.
15281 * win32-low.c (win32_detach, win32_resume): Ditto.
15282
15283 2009-04-01 Pedro Alves <pedro@codesourcery.com>
15284
15285 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
15286 flag.
15287 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
15288 pending.
15289 (linux_continue_one_thread): Only preserve the stepping flag if
15290 there's a pending breakpoint.
15291
15292 2009-03-31 Pedro Alves <pedro@codesourcery.com>
15293
15294 * server.c (main): After the inferior having exited, call
15295 remote_close before exiting gdbserver.
15296
15297 2009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
15298
15299 Fix size of FPSCR in Power 7 processors.
15300 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
15301 (PPC_FEATURE_HAS_DFP): New #define.
15302 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
15303 size of the FPSCR.
15304
15305 2009-03-23 Pedro Alves <pedro@codesourcery.com>
15306
15307 * server.c (handle_query) Whitespace and formatting.
15308
15309 2009-03-22 Pedro Alves <pedro@codesourcery.com>
15310
15311 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
15312 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
15313 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
15314 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
15315 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
15316 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
15317 Makefile.in, configure.ac: Fix whitespace throughout.
15318 * configure: Regenerate.
15319
15320 2009-03-22 Pedro Alves <pedro@codesourcery.com>
15321
15322 * inferiors.c (find_inferior): Make it safe for the callback
15323 function to delete the currently iterated inferior.
15324
15325 2009-03-22 Pedro Alves <pedro@codesourcery.com>
15326
15327 * Makefile.in (linuw_low_h): Move higher.
15328 (thread-db.o): Depend on $(linux_low_h).
15329
15330 2009-03-17 Pedro Alves <pedro@codesourcery.com>
15331
15332 Rename "process" to "lwp" throughout.
15333
15334 * linux-low.c (all_processes): Rename to...
15335 (all_lwps): ... this.
15336 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
15337 (add_process): Rename to ...
15338 (add_lwp): ... this. Adjust.
15339 (linux_create_inferior): Adjust.
15340 (linux_attach_lwp): Adjust.
15341 (linux_attach): Adjust.
15342 (linux_kill_one_process): Rename to ...
15343 (linux_kill_one_lwp): ... this. Adjust.
15344 (linux_kill): Adjust.
15345 (linux_detach_one_process): Rename to ...
15346 (linux_detach_one_lwp): ... this. Adjust.
15347 (linux_detach): Adjust.
15348 (check_removed_breakpoint): Adjust.
15349 (status_pending_p): Adjust.
15350 (linux_wait_for_process): Rename to ...
15351 (linux_wait_for_lwp): ... this. Adjust.
15352 (linux_wait_for_event): Adjust.
15353 (send_sigstop): Adjust.
15354 (wait_for_sigstop): Adjust.
15355 (stop_all_processes): Rename to ...
15356 (stop_all_lwps): ... this.
15357 (linux_resume_one_process): Rename to ...
15358 (linux_resume_one_lwp): ... this. Adjust.
15359 (linux_set_resume_request, linux_continue_one_thread)
15360 (linux_queue_one_thread, resume_status_pending_p)
15361 (usr_store_inferior_registers, regsets_store_inferior_registers)
15362 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
15363 Adjust.
15364 * linux-low.h (get_process): Rename to ...
15365 (get_lwp): ... this. Adjust.
15366 (get_thread_process): Rename to ...
15367 (get_thread_lwp): ... this. Adjust.
15368 (get_process_thread): Rename to ...
15369 (get_lwp_thread): ... this. Adjust.
15370 (struct process_info): Rename to ...
15371 (struct lwp_info): ... this.
15372 (all_processes): Rename to ...
15373 (all_lwps): ... this.
15374 * proc-service.c (ps_lgetregs): Adjust.
15375 * thread-db.c (thread_db_create_event, find_one_thread)
15376 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
15377
15378 2009-03-14 Pedro Alves <pedro@codesourcery.com>
15379
15380 * server.c (handle_query): Handle "qAttached".
15381
15382 2009-03-13 Nathan Sidwell <nathan@codesourcery.com>
15383
15384 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
15385 GPLv3, update license URL.
15386
15387 2009-03-01 Doug Evans <dje@google.com>
15388
15389 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
15390 (server_h): Add gdb_signals.h.
15391 (signals.o): Update.
15392 * server.h (target_signal_from_host,target_signal_to_host_p)
15393 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
15394
15395 2009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
15396
15397 * remote-utils.c (getpkt): Also generate remote-debug
15398 information if noack_mode is set.
15399
15400 2009-02-06 Pedro Alves <pedro@codesourcery.com>
15401
15402 * server.c (handle_query): Report qXfer:siginfo:read and
15403 qXfer:siginfo:write as supported and handle them.
15404 * target.h (struct target_ops) <qxfer_siginfo>: New field.
15405 * linux-low.c (linux_xfer_siginfo): New.
15406 (linux_target_ops): Set it.
15407
15408 2009-01-26 Pedro Alves <pedro@codesourcery.com>
15409
15410 * server.c (gdbserver_usage): Mention --remote-debug.
15411 (main): Accept '--remote-debug' switch.
15412
15413 2009-01-18 Doug Evans <dje@google.com>
15414
15415 * regcache.c (new_register_cache): No need to check result of xcalloc.
15416 * server.c (handle_search_memory): Back out calls to xmalloc,
15417 result is checked and error is returned to user upon failure.
15418 (handle_query): Ditto. Add more checks for result of malloc.
15419 (handle_v_cont): Check result of malloc, report error back to
15420 user upon failure.
15421 (handle_v_run): Ditto. Call freeargv.
15422 * server.h (freeargv): Declare.
15423 * utils.c (freeargv): New fn.
15424
15425 2009-01-15 Doug Evans <dje@google.com>
15426
15427 * gdbreplay.c (perror_with_name): Make arg const char *.
15428 * server.h (target_signal_to_name): Make return type const char *.
15429 * thread-db.c (thread_db_err_str): Make return type const char *.
15430 * utils.c (perror_with_name): Make arg const char *.
15431
15432 2009-01-14 Pedro Alves <pedro@codesourcery.com>
15433
15434 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
15435 when handling a EXIT_PROCESS_DEBUG_EVENT.
15436
15437 2009-01-06 Joel Brobecker <brobecker@adacore.com>
15438
15439 * gdbreplay.c (gdbreplay_version): Update copyright year.
15440 * server.c (gdbserver_version): Likewise.
15441
15442 2009-01-05 Doug Evans <dje@google.com>
15443
15444 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
15445 (handle_extended_wait): Improve comment.
15446
15447 2008-12-13 Doug Evans <dje@google.com>
15448
15449 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
15450 * server.h (ATTR_MALLOC): New macro.
15451 (xmalloc,xcalloc,xstrdup): Declare.
15452 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
15453 * inferiors.c: Ditto.
15454 * linux-low.c: Ditto.
15455 * mem-break.c: Ditto.
15456 * regcache.c: Ditto.
15457 * remote-utils.c: Ditto.
15458 * server.c: Ditto.
15459 * target.c: Ditto.
15460 * win32-low.c: Ditto.
15461
15462 2008-12-12 Doug Evans <dje@google.com>
15463
15464 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
15465 in debugging printf.
15466
15467 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
15468
15469 2008-12-09 Doug Evans <dje@google.com>
15470
15471 * linux-low.h (struct process_info): Delete member tid, unused.
15472 * thread-db.c (find_one_thread): Update.
15473 (maybe_attach_thread): Update.
15474
15475 2008-12-02 Pedro Alves <pedro@codesourcery.com>
15476
15477 * target.h (struct target_ops): Add qxfer_osdata member.
15478 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
15479 and dirent.h.
15480 (linux_qxfer_osdata): New functions.
15481 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
15482 callback.
15483 * server.c (handle_query): Handle "qXfer:osdata:read:".
15484 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
15485 (buffer_xml_printf): New functions.
15486 * server.h (struct buffer): New.
15487 (buffer_grow_str, buffer_grow_str0): New macros.
15488 (buffer_grow, buffer_free, buffer_init, buffer_finish)
15489 (buffer_xml_printf): Declare.
15490
15491 2008-11-24 Doug Evans <dje@google.com>
15492
15493 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
15494
15495 2008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
15496
15497 * server.c (handle_v_run): Always use the supplied argument list.
15498
15499 2008-11-19 Bob Wilson <bob.wilson@acm.org>
15500
15501 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
15502 (xtensa_regmap_table): Add entry for scompare1.
15503
15504 2008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
15505
15506 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
15507 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
15508 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
15509 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
15510 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
15511 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
15512 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
15513 XML target descriptions.
15514 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
15515 when inferior is running on an ISA 2.05 or later processor. Add
15516 special case to return offset for full 64-bit slot of FPSCR when
15517 in 32-bits.
15518
15519 2008-11-14 Daniel Gutson <dgutson@codesourcery.com>
15520
15521 * Makefile.in (SFILES, clean): Added sparc64 files.
15522 (reg-sparc64.o, reg-sparc64.c): New.
15523 * configure.srv (sparc*-*-linux*): New configuration.
15524 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
15525 syscall arguments for SPARC.
15526 (regsets_store_inferior_registers): Likewise.
15527 * linux-sparc-low.c: New file.
15528
15529 2008-10-21 Doug Evans <dje@google.com>
15530
15531 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
15532 (READLINE_DIR,READLINE_DEP): Delete.
15533 (INTERNAL_CFLAGS): Update.
15534 (LINTFLAGS): Update.
15535
15536 2008-10-10 Pedro Alves <pedro@codesourcery.com>
15537
15538 * server.c (handle_v_run): If GDB didn't specify an argv, use the
15539 whole argv from the last run, not just argv[0].
15540
15541 2008-09-08 Pedro Alves <pedro@codesourcery.com>
15542
15543 * regcache.c (new_register_cache): Return NULL if the register
15544 cache size isn't known yet.
15545 (free_register_cache): Avoid dereferencing a NULL regcache.
15546
15547 2008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
15548
15549 * configure.srv: Merge MIPS and MIPS64.
15550
15551 2008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
15552
15553 * Makefile.in (uninstall): Apply $(EXEEXT) too.
15554
15555 2008-08-18 Luis Machado <luisgpm@br.ibm.com>
15556
15557 * Makefile.in: Add required vsx dependencies.
15558
15559 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
15560 Declare init_registers_powerpc_vsx32l.
15561 Declare init_registers_powerpc_vsx64l.
15562 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
15563 (ppc_arch_setup): Check for VSX in hwcap.
15564 (ppc_fill_vsxregset): New function.
15565 (ppc_store_vsxregset): New function.
15566 Add new VSX entry in regset_info target_regsets.
15567
15568 * configure.srv: Add new VSX dependencies.
15569
15570 2008-08-12 Pedro Alves <pedro@codesourcery.com>
15571
15572 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
15573 (remote_open): Set or clear transport_is_reliable.
15574 (putpkt_binary): Don't expect acks in noack mode.
15575 (getpkt): Don't send ack/nac in noack mode.
15576 * server.c (handle_general_set): Handle QStartNoAckMode.
15577 (handle_query): If connected by tcp pass QStartNoAckMode+ in
15578 qSupported.
15579 (main): Reset noack_mode on every connection.
15580 * server.h (noack_mode): Declare.
15581
15582 2008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15583
15584 * Makefile.in (GDBREPLAY_OBS): New variable.
15585 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
15586
15587 2008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
15588 Daniel Jacobowitz <dan@codesourcery.com>
15589
15590 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
15591 (usr_store_inferior_registers): Likewise.
15592 (regsets_store_inferior_registers): Likewise.
15593
15594 2008-07-31 Rolf Jansen <rj@surtec.com>
15595 Pedro Alves <pedro@codesourcery.com>
15596
15597 * configure.ac: Check for memmem declaration.
15598 * server.c [HAVE_MALLOC_H]: Include malloc.h.
15599 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
15600 (disable_packet_qfThreadInfo): Unconditionally compile.
15601 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
15602 * configure, config.in: Regenerate.
15603
15604 2008-07-28 Doug Kwan <dougkwan@google.com>
15605
15606 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
15607 (linux_write_memory): Remove declaration of errno.
15608
15609 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
15610
15611 * linux-low.c (handle_extended_wait): Do not use "status"
15612 variable uninitialized.
15613
15614 2008-07-07 Pedro Alves <pedro@codesourcery.com>
15615
15616 * server.c (handle_v_attach): Inhibit reporting dll changes.
15617
15618 2008-06-27 Pedro Alves <pedro@codesourcery.com>
15619
15620 * remote-utils.c (prepare_resume_reply): If requested, don't
15621 output "thread:TID" in the T stop reply.
15622
15623 * server.c (disable_packet_vCont, disable_packet_Tthread)
15624 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
15625 (handle_query): If requested, disable support for qC, qfThreadInfo
15626 and qsThreadInfo.
15627 (handle_v_requests): If requested, disable support for vCont.
15628 (gdbserver_show_disableable): New.
15629 (main): Handle --disable-packet and --disable-packet=LIST.
15630
15631 * server.h (disable_packet_vCont, disable_packet_Tthread)
15632 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
15633
15634 2008-06-20 Carlos O'Donell <carlos@codesourcery.com>
15635
15636 * server.c (gdbserver_usage): Mention --version.
15637
15638 2008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
15639
15640 * Makefile.in (gdbreplay.o): New rule.
15641
15642 2008-06-06 Joseph Myers <joseph@codesourcery.com>
15643
15644 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
15645 message, not gdbserver.
15646
15647 2008-06-05 Vladimir Prus <vladimir@codesourcery.com>
15648 Nathan Sidwell <nathan@codesourcery.com>
15649 Joseph Myers <joseph@codesourcery.com>
15650
15651 * acinclude.m4: Include ../../config/acx.m4.
15652 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
15653 * configure, config.in: Regenerate.
15654 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
15655 * server.c (gdbserver_version): Print PKGVERSION.
15656 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
15657 (main): Adjust gdbserver_usage calls.
15658 * gdbreplay.c (version, host_name): Add declarations.
15659 (gdbreplay_version, gdbreplay_usage): New.
15660 (main): Accept --version and --help options.
15661
15662 2008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
15663
15664 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
15665 (arm_breakpoint_at): Handle Thumb.
15666 (the_low_target): Add comment.
15667
15668 2008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
15669
15670 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
15671
15672 2008-05-09 Doug Evans <dje@google.com>
15673
15674 * server.h (decode_search_memory_packet): Declare.
15675 * remote-utils.c (decode_search_memory_packet): New fn.
15676 * server.c (handle_search_memory_1): New fn.
15677 (handle_search_memory): New fn.
15678 (handle_query): Process qSearch:memory packets.
15679
15680 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
15681
15682 * regcache.c (registers_length): Remove.
15683 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
15684 full register packet.
15685 * regcache.h (registers_length): Remove prototype.
15686 * server.h (PBUFSIZ): Define to 16384.
15687
15688 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
15689
15690 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
15691 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
15692 powerpc-64l.o, and powerpc-altivec64l.o.
15693 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
15694 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
15695 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
15696 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
15697 rs6000/power-linux.xml, and rs6000/power64-linux.xml
15698 to srv_xmlfiles.
15699
15700 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
15701 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
15702 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
15703 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
15704 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
15705 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
15706 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
15707 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
15708 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
15709 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
15710 (clean): Update.
15711
15712 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
15713 (init_registers_powerpc_32l): ... this new prototype.
15714 (init_registers_powerpc_32): Remove, replace by ...
15715 (init_registers_powerpc_altivec32l): ... this new prototype.
15716 (init_registers_powerpc_e500): Remove, replace by ...
15717 (init_registers_powerpc_e500l): ... this new prototype.
15718 (init_registers_ppc64): Remove, replace by ...
15719 (init_registers_powerpc_64l): ... this new prototype.
15720 (init_registers_powerpc_64): Remove, replace by ...
15721 (init_registers_powerpc_altivec64l): ... this new prototype.
15722 (ppc_num_regs): Set to 73.
15723 (PT_ORIG_R3, PT_TRAP): Define if necessary.
15724 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
15725 (ppc_cannot_store_register): Handle orig_r3 and trap.
15726 (ppc_arch_setup): Update init_registers_... calls.
15727 (ppc_fill_gregset): Handle orig_r3 and trap.
15728
15729 * inferiors.c (clear_inferiors): Reset current_inferior.
15730
15731 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
15732
15733 * acinclude.m4: Add override.m4.
15734 * configure: Regenerate.
15735
15736 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
15737
15738 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
15739 initial call to init_register_ppc64.
15740
15741 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
15742
15743 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
15744 single powerpc*-*-linux* case.
15745 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
15746
15747 2008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
15748
15749 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
15750 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
15751 from reg_xmlfiles.
15752 * linux-ppc-low.c: Include <elf.h>.
15753 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
15754 (ppc_hwcap): New global variable.
15755 (ppc_regmap): Remove __SPE__ #ifdef sections.
15756 (ppc_regmap_e500): New global variable.
15757 (ppc_cannot_store_register): Update __SPE__ special case.
15758 (ppc_get_hwcap): New function.
15759 (ppc_arch_setup): Use it to determine whether inferior supports
15760 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
15761 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
15762 Do not access registers if target does not support AltiVec.
15763 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
15764 Do not access registers if target does not support SPE.
15765 (target_regsets): Unconditionally include AltiVec and SPE regsets.
15766
15767 2008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
15768
15769 * linux-low.c (disabled_regsets, num_regsets): New.
15770 (use_regsets_p): Delete.
15771 (linux_wait_for_process): Clear disabled_regsets.
15772 (regsets_fetch_inferior_registers): Check and set it.
15773 (regsets_store_inferior_registers): Likewise.
15774 (linux_fetch_registers, linux_store_registers): Do not use
15775 use_regsets_p.
15776 (initialize_low): Allocate disabled_regsets.
15777
15778 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
15779
15780 * Makefile.in (LIBOBJS): New.
15781 (OBS): Use LIBOBJS.
15782 (memmem.o): New rule.
15783 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
15784 * configure: Regenerated.
15785
15786 2008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
15787
15788 * server.c (handle_query): Never return "unsupported" for
15789 qXfer:features:read queries.
15790
15791 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
15792
15793 * server.c (get_features_xml): Fix inverted condition.
15794 (handle_query): Always support qXfer:feature:read.
15795
15796 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
15797
15798 * server.c (wrapper_argv): New.
15799 (start_inferior): Handle wrapper_argv. If set, expect an extra
15800 trap.
15801 (gdbserver_usage): Document --wrapper.
15802 (main): Parse --wrapper.
15803
15804 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
15805
15806 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
15807 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
15808 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
15809 (ppc_set_pc): Likewise.
15810 (ppc_arch_setup): New function.
15811 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
15812 of collect_register.
15813 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
15814
15815 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
15816
15817 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
15818 instead of linux-ppc64-low.o.
15819 * linux-ppc64-low.c: Remove file.
15820 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
15821 (linux-ppc64-low.o): Remove rule.
15822
15823 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
15824 (init_registers_powerpc_64): Likewise.
15825 (ppc_regmap): Conditionally define depending on __powerpc64__.
15826 (ppc_cannot_store_register): Do not special-case "fpscr" when
15827 compiled on __powerpc64__.
15828 (ppc_collect_ptrace_register): New function.
15829 (ppc_supply_ptrace_register): New function.
15830 (ppc_breakpoint): Change type to "unsigned int".
15831 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
15832 (the_low_target): Conditionally provide initializers for the
15833 arch_setup member depending on __powerpc64__. Install
15834 collect_ptrace_register and supply_ptrace_register members.
15835
15836 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
15837
15838 * regcache.h (gdbserver_xmltarget): Add extern declaration.
15839 * server.c (gdbserver_xmltarget): Define.
15840 (get_features_xml): Use it to replace "target.xml" and arch_string.
15841
15842 * configure.srv: Remove srv_xmltarget. Add XML files that were
15843 mentioned there to srv_xmlfiles instead. Remove conditional tests
15844 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
15845 srv_xmlfiles and srv_regobj to include all possible choices.
15846 * configure.ac (srv_xmltarget): Remove.
15847 (srv_xmlfiles): Do not add "target.xml".
15848 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
15849 checks for supplementary target information.
15850 * configure: Regenerate.
15851 * Makefile.in (XML_TARGET): Remove.
15852 (target.xml): Remove rule.
15853 (clean): Do not clean up target.xml.
15854 (.PRECIOUS): Do not mention target.xml.
15855
15856 * target.h (struct target_ops): Remove arch_string member.
15857 * linux-low.c (linux_arch_string): Remove.
15858 (linux_target_ops): Remove arch_string initializer.
15859 * linux-low.h (struct linux_target_ops): Remove arch_string member.
15860 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
15861 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
15862 * spu-low.c (spu_arch_string): Remove.
15863 (spu_target_ops): Remove arch_string initializer.
15864 * win32-low.c (win32_arch_string): Remove.
15865 (win32_target_ops): Remove arch_string initializer.
15866 * win32-low.h (struct win32_target_ops): Remove arch_string member.
15867 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
15868 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
15869
15870 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
15871
15872 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
15873 by collect_ptrace_register and supply_ptrace_register hooks.
15874 * linux-low.c (fetch_register): Use supply_ptrace_register callback
15875 instead of checking for the_low_target.left_pad_xfer.
15876 (usr_store_inferior_registers): Use collect_ptrace_register callback
15877 instead of checking for the_low_target.left_pad_xfer.
15878
15879 * linux-s390-low.c (s390_collect_ptrace_register): New function.
15880 (s390_supply_ptrace_register): Likewise.
15881 (s390_fill_gregset): Call s390_collect_ptrace_register.
15882 (the_low_target): Update.
15883
15884 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
15885 (ppc_supply_ptrace_register): Likewise.
15886 (the_low_target): Update.
15887
15888 * linux-i386-low.c (the_low_target): Update.
15889 * linux-x86-64-low.c (the_low_target): Update.
15890
15891 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
15892
15893 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
15894 reg-s390.o and reg-s390x.o.
15895
15896 * linux-low.c (new_inferior): New global variable.
15897 (linux_create_inferior, linux_attach): Set it.
15898 (linux_wait_for_process): Call the_low_target.arch_setup after the
15899 target has stopped for the first time.
15900 (initialize_low): Do not call the_low_target.arch_setup.
15901
15902 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
15903 (s390_set_pc): Likewise.
15904 (s390_arch_setup): New function.
15905 (the_low_target): Use s390_arch_setup as arch_setup routine.
15906
15907 * regcache.c (realloc_register_cache): New function.
15908 (set_register_cache): Call it for each existing regcache.
15909
15910 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
15911
15912 * server.h (init_registers): Remove prototype.
15913
15914 * linux-low.h (struct linux_target_ops): Add arch_setup field.
15915 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
15916 instead of init_registers ().
15917 * linux-arm-low.c (init_registers_arm): Add prototype.
15918 (init_registers_arm_with_iwmmxt): Likewise.
15919 (the_low_target): Add initializer for arch_setup field.
15920 * linux-cris-low.c (init_registers_cris): Add prototype.
15921 (the_low_target): Add initializer for arch_setup field.
15922 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
15923 (the_low_target): Add initializer for arch_setup field.
15924 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
15925 (the_low_target): Add initializer for arch_setup field.
15926 * linux-ia64-low.c (init_registers_ia64): Add prototype.
15927 (the_low_target): Add initializer for arch_setup field.
15928 * linux-m32r-low.c (init_registers_m32r): Add prototype.
15929 (the_low_target): Add initializer for arch_setup field.
15930 * linux-m68k-low.c (init_registers_m68k): Add prototype.
15931 (the_low_target): Add initializer for arch_setup field.
15932 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
15933 (init_registers_mips64_linux): Likewise.
15934 (the_low_target): Add initializer for arch_setup field.
15935 * linux-ppc-low.c (init_registers_ppc): Add prototype.
15936 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
15937 (the_low_target): Add initializer for arch_setup field.
15938 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
15939 (init_registers_powerpc_64): Likewise.
15940 (the_low_target): Add initializer for arch_setup field.
15941 * linux-s390-low.c (init_registers_s390): Add prototype.
15942 (init_registers_s390x): Likewise.
15943 (the_low_target): Add initializer for arch_setup field.
15944 * linux-sh-low.c (init_registers_sh): Add prototype.
15945 (the_low_target): Add initializer for arch_setup field.
15946 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
15947 (the_low_target): Add initializer for arch_setup field.
15948 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
15949 (the_low_target): Add initializer for arch_setup field.
15950
15951 * win32-low.h (struct win32_target_ops): Add arch_setup field.
15952 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
15953 instead of init_registers ().
15954 * win32-arm-low.c (init_registers_arm): Add prototype.
15955 (the_low_target): Add initializer for arch_setup field.
15956 * win32-i386-low.c (init_registers_i386): Add prototype.
15957 (the_low_target): Add initializer for arch_setup field.
15958
15959 * spu-low.c (init_registers_spu): Add prototype.
15960 (initialize_low): Call initialie_registers_spu () instead of
15961 initialize_registers ().
15962
15963 2008-02-19 Pedro Alves <pedro@codesourcery.com>
15964
15965 * server.c (handle_v_requests): When handling the vRun and vAttach
15966 packets, if already debugging a process, don't kill it. Return an
15967 error instead.
15968
15969 2008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
15970
15971 * server.c (handle_query): Correct length check.
15972
15973 2008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
15974
15975 * win32-low.c (do_initial_child_stuff): Add process handle
15976 parameter. Set current_process_handle and current_process_id from the
15977 parameters. Clear globals.
15978 (win32_create_inferior): Don't set current_process_handle and
15979 current_process_id here. Instead pass them on the call to
15980 do_initial_child_stuff.
15981 (win32_attach): Likewise.
15982 (win32_clear_inferiors): New.
15983 (win32_kill): Don't close the current process handle or the
15984 current thread handle here. Instead call win32_clear_inferiors.
15985 (win32_detach): Don't open a new handle to the process. Call
15986 win32_clear_inferiors.
15987 (win32_join): Don't rely on current_process_handle; open a new
15988 handle using the process id.
15989 (win32_wait): Call win32_clear_inferiors when the inferior process
15990 has exited.
15991
15992 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
15993
15994 * server.c (monitor_show_help): Add "exit".
15995
15996 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
15997
15998 * Makefile.in (SFILES): Add linux-xtensa-low.c.
15999 (clean): Add reg-xtensa.c.
16000 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
16001 * configure.srv (xtensa*-*-linux*) New target.
16002 * linux-xtensa-low.c: New.
16003 * xtensa-xtregs.c: New.
16004
16005 2008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
16006
16007 * hostio.c: Don't include errno.h.
16008 (errno_to_fileio_errno): Move to hostio-errno.
16009 * hostio.c: (hostio_error): Remove the error parameter. Defer the
16010 error number outputting to the target->hostio_last_error callback.
16011 (hostio_packet_error): Use FILEIO_EINVAL directly.
16012 (handle_open, handle_pread, hostio_error, handle_unlink): Update
16013 calls to hostio_error.
16014 * hostio-errno.c: New.
16015 * server.h (hostio_last_error_from_errno): Declare.
16016 * target.h (target_ops): Add hostio_last_error member.
16017 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
16018 as hostio_last_error handler.
16019 * spu-low.c (spu_target_ops): Likewise.
16020 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
16021 (wince_hostio_last_error): New functions.
16022 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
16023 as hostio_last_error handler.
16024 (win32_target_ops) [!_WIN32_WCE]: Register
16025 hostio_last_error_from_errno as hostio_last_error handler.
16026 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
16027 (hostio-errno.o): New rule.
16028 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
16029 * configure.srv (srv_hostio_err_objs): New variable. Default to
16030 hostio-errno.o.
16031 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
16032 * configure: Regenerate.
16033
16034 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
16035
16036 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
16037 (linux_kill, linux_detach): Clean up the process list.
16038 * remote-utils.c (remote_open): Improve port number parsing.
16039 (putpkt_binary, input_interrupt): Only send interrupts if the target
16040 is running.
16041 * server.c (extended_protocol): Make static.
16042 (attached): Define earlier.
16043 (exit_requested, response_needed, program_argv): New variables.
16044 (target_running): New.
16045 (start_inferior): Clear attached here.
16046 (attach_inferior): Set attached here.
16047 (require_running): Define.
16048 (handle_query): Use require_running and target_running. Implement
16049 "monitor exit".
16050 (handle_v_attach, handle_v_run): New.
16051 (handle_v_requests): Use require_running. Handle vAttach and vRun.
16052 (gdbserver_usage): Update.
16053 (main): Redo argument parsing. Handle --debug and --multi. Handle
16054 --attach along with other options or after the port. Save
16055 program_argv. Support no initial program. Resynchronize
16056 communication with GDB after an error. Handle "monitor exit".
16057 Use require_running and target_running. Always allow the extended
16058 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
16059 restart in extended mode.
16060 * README: Refer to the GDB manual. Update --attach usage.
16061
16062 2007-12-20 Andreas Schwab <schwab@suse.de>
16063
16064 * linux-low.c (STACK_SIZE): Define.
16065 (linux_tracefork_child): Use it. Use __clone2 on ia64.
16066 (linux_test_for_tracefork): Likewise.
16067
16068 2007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
16069
16070 * linux-low.c (linux_wait_for_event): Update messages. Do not
16071 reinsert auto-delete breakpoints.
16072 * mem-break.c (struct breakpoint): Change return type of handler to
16073 int.
16074 (set_breakpoint_at): Update handler type.
16075 (reinsert_breakpoint_handler): Return 1 instead of calling
16076 delete_breakpoint.
16077 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
16078 setting a new one.
16079 (check_breakpoints): Delete auto-delete breakpoints and return 2.
16080 * mem-break.h (set_breakpoint_at): Update handler type.
16081 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
16082 * win32-low.c (auto_delete_breakpoint): New.
16083 (get_child_debug_event): Use it.
16084
16085 2007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
16086
16087 * configure.ac: Check for pread and pwrite.
16088 * hostio.c (handle_pread): Fall back to lseek and read.
16089 (handle_pwrite): Fall back to lseek and write.
16090 * config.in, configure: Regenerated.
16091
16092 2007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
16093
16094 * server.c (myresume): Add own_buf argument.
16095 (main): Update calls.
16096
16097 2007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
16098
16099 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
16100 * remote-utils.c (remote_open): Do not call disable_async_io.
16101 (block_async_io): Delete.
16102 (unblock_async_io): Make static.
16103 (initialize_async_io): New.
16104 * server.c (handle_v_cont): Handle async I/O here.
16105 (myresume): Likewise. Move other common resume tasks here...
16106 (main): ... from here. Call initialize_async_io. Disable async
16107 I/O before the main loop.
16108 * server.h (initialize_async_io): Declare.
16109 (block_async_io, unblock_async_io): Delete prototypes.
16110 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
16111
16112 2007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
16113
16114 * remote-utils.c (readchar): Allow binary data in received messages.
16115
16116 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
16117
16118 * win32-low.c (attaching): New global.
16119 (win32_create_inferior): Clear the `attaching' global.
16120 (win32_attach): Set the `attaching' global.
16121 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
16122 attaching. Only set a breakpoint at the entry point if not
16123 attaching.
16124
16125 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
16126
16127 * server.c (main): Don't report dll events on the initial
16128 connection on attaches.
16129
16130 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
16131
16132 * server.c (main): Relax numerical bases supported for the pid of
16133 the --attach command line argument.
16134
16135 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
16136
16137 * win32-low.c (win32_attach): Call OpenProcess before
16138 DebugActiveProcess, not after. Add last error output to error
16139 call.
16140
16141 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
16142
16143 * win32-low.c (win32_get_thread_context)
16144 (win32_set_thread_context): New functions.
16145 (thread_rec): Use win32_get_thread_context.
16146 (continue_one_thread, win32_resume): Use win32_set_thread_context.
16147 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
16148 field.
16149
16150 2007-12-03 Leo Zayas
16151 Pedro Alves <pedro_alves@portugalmail.pt>
16152
16153 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
16154 global variables.
16155 (child_add_thread): Minor cleanup.
16156 (child_continue): Resume artificially suspended threads before
16157 calling ContinueDebugEvent.
16158 (suspend_one_thread): New.
16159 (fake_breakpoint_event): New.
16160 (get_child_debug_event): Change return type to int. Check here if
16161 gdb sent an interrupt request. If a soft interrupt was requested,
16162 fake a breakpoint event. Return 0 if there is no event to handle,
16163 and 1 otherwise.
16164 (win32_wait): Don't check here if gdb sent an interrupt request.
16165 Ensure there is a valid event to handle.
16166 (win32_request_interrupt): Add soft interruption method as last
16167 resort.
16168
16169 2007-12-03 Leo Zayas
16170 Pedro Alves <pedro_alves@portugalmail.pt>
16171
16172 * win32-low.h (win32_thread_info): Add descriptions to the
16173 structure members. Replace `suspend_count' counter by a
16174 `suspended' flag.
16175 * win32-low.c (thread_rec): Update condition of when to get the
16176 context from the inferior. Rely on ContextFlags being set if it
16177 has already been retrieved. Only suspend the inferior thread if
16178 we haven't already. Warn if that fails.
16179 (continue_one_thread): s/suspend_count/suspended/. Only call
16180 ResumeThread once. Warn if that fails.
16181
16182 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
16183
16184 * win32-low.c (win32_wait): Don't read from the inferior when it
16185 has already exited.
16186
16187 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
16188
16189 * Makefile.in (win32_low_h): New variable.
16190 (win32-low.o): Add dependency on $(win32_low_h).
16191 (win32-arm-low.o, win32-i386-low.o): New rules.
16192
16193 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
16194
16195 * hostio.c: Correct copyright year.
16196
16197 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
16198
16199 * Makefile.in (OBS): Add hostio.o.
16200 (hostio.o): New rule.
16201 * server.h (handle_vFile): Declare.
16202 * hostio.c: New file.
16203 * server.c (handle_v_requests): Take packet_len and new_packet_len
16204 for binary packets. Call handle_vFile.
16205 (main): Update call to handle_v_requests.
16206
16207 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
16208
16209 * linux-low.c: Include <sched.h>.
16210
16211 2007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
16212
16213 * linux-low.c (linux_tracefork_grandchild): New.
16214 (linux_tracefork_child): Use clone.
16215 (linux_test_for_tracefork): Use clone; allocate and free a stack.
16216
16217 2007-10-31 Joel Brobecker <brobecker@adacore.com>
16218
16219 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
16220
16221 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
16222
16223 * linux-low.c (handle_extended_wait): Handle unexpected signals.
16224
16225 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
16226
16227 * inferiors.c (change_inferior_id): Delete.
16228 (add_pid_to_list, pull_pid_from_list): New.
16229 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
16230 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
16231 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
16232 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
16233 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
16234 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
16235 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
16236 (using_threads): Always set to 1.
16237 (handle_extended_wait): New.
16238 (add_process): Do not set TID.
16239 (linux_create_inferior): Set must_set_ptrace_flags.
16240 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
16241 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
16242 (linux_thread_alive): Rename TID argument to LWPID.
16243 (linux_wait_for_process): Handle unknown processes. Do not use TID.
16244 (linux_wait_for_event): Do not use TID or check using_threads. Update
16245 call to dead_thread_notify. Call handle_extended_wait.
16246 (linux_create_inferior): Use PTRACE_SETOPTIONS.
16247 (send_sigstop): Delete sigstop_sent.
16248 (wait_for_sigstop): Avoid TID.
16249 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
16250 (linux_test_for_tracefork): New.
16251 (linux_lookup_signals): Use thread_db_active and
16252 linux_supports_tracefork_flag.
16253 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
16254 * linux-low.h (get_process_thread): Avoid TID.
16255 (struct process_ifo): Move thread_known and tid to the end. Remove
16256 sigstop_sent.
16257 (linux_attach_lwp, thread_db_init): Update prototypes.
16258 * server.h (change_inferior_id): Delete prototype.
16259 (add_pid_to_list, pull_pid_from_list): New prototypes.
16260 * thread-db.c (thread_db_use_events): New.
16261 (find_first_thread): Rename to...
16262 (find_one_thread): ...this. Update callers and messages. Do not
16263 call fatal. Check thread_db_use_events. Do not call
16264 change_inferior_id or new_thread_notify.
16265 (maybe_attach_thread): Update. Do not call new_thread_notify.
16266 (thread_db_init): Set thread_db_use_events. Check use_events.
16267 * utils.c (fatal, warning): Correct message prefix.
16268
16269 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
16270
16271 * Makefile.in (clean): Remove new files.
16272 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
16273 (powerpc-64.o, powerpc-64.c): New rules.
16274 * configure.srv: Use alternate register sets for powerpc64-*-linux*
16275 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
16276 with SPE.
16277 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
16278 SPE targets.
16279 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
16280 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
16281 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
16282 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
16283 (target_regsets): Add AltiVec and SPE register sets.
16284 * configure.ac: Check for AltiVec and SPE.
16285 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
16286 (ppc_fill_vrregset, ppc_store_vrregset): New.
16287 (target_regsets): Add AltiVec register set.
16288 * configure: Regenerated.
16289
16290 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
16291
16292 * linux-low.c (O_LARGEFILE): Define.
16293 (linux_read_memory): Use /proc/PID/mem.
16294 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
16295 * configure, config.in: Regenerated.
16296
16297 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
16298
16299 * linux-low.c (linux_wait_for_event): Do not pass signals while
16300 single-stepping.
16301
16302 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
16303
16304 * win32-low.c (create_process): New.
16305 (win32_create_inferior): Use create_process instead of
16306 CreateProcess. If create_process failed retry appending an ".exe"
16307 suffix. Store the GetLastError result immediatelly after
16308 create_process calls and use it on the call to error.
16309
16310 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
16311
16312 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
16313
16314 2007-08-23 Joel Brobecker <brobecker@adacore.com>
16315
16316 * configure.ac: Switch license to GPLv3.
16317
16318 2007-08-01 Michael Snyder <msnyder@access-company.com>
16319
16320 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
16321
16322 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
16323
16324 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
16325 typedef.
16326 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
16327 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
16328 CloseToolhelp32Snapshot.
16329 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
16330 CloseToolhelp32Snapshot.
16331
16332 2007-07-27 Michael Snyder <michael.snyder@access-company.com>
16333
16334 * server.c (main): Check for inferior exit before main loop.
16335
16336 2007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
16337
16338 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
16339 instead of on tmp_desc.
16340
16341 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
16342 Daniel Jacobowitz <dan@codesourcery.com>
16343
16344 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
16345 (add_thread): Minor cleanups.
16346 (clear_inferiors): Move lower in the file. Clear the DLL
16347 list.
16348 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
16349 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
16350 (xml_escape_text): New.
16351 * server.c (handle_query): Handle qXfer:libraries:read. Report it
16352 for qSupported.
16353 (handle_v_cont): Report errors.
16354 (gdbserver_version): Update.
16355 (main): Correct size of own_buf. Do not report initial DLL events.
16356 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
16357 (unloaded_dll, xml_escape_text): New.
16358 * win32-low.c (enum target_waitkind): Update comments.
16359 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
16360 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
16361 (win32_EnumProcessModules, win32_GetModuleInformation)
16362 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
16363 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
16364 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
16365 (win32_Module32First, win32_Module32Next, load_toolhelp)
16366 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
16367 (get_child_debug_event): Handle DLL events.
16368 (win32_wait): Likewise.
16369
16370 2007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
16371
16372 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
16373 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
16374
16375 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
16376
16377 * win32-low.c (handle_output_debug_string): Ignore event if not
16378 waiting.
16379
16380 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
16381
16382 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
16383
16384 2007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
16385
16386 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
16387
16388 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
16389
16390 * inferiors.c (change_inferior_id): Add comment.
16391 * linux-low.c (check_removed_breakpoint): Add an early
16392 prototype. Improve debug output.
16393 (linux_attach): Doc update.
16394 (linux_detach_one_process, linux_detach): Clean up before releasing
16395 each process.
16396 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
16397 * linux-low.h (struct process_info): Doc improvement.
16398 * mem-break.c (delete_all_breakpoints): New.
16399 * mem-break.h (delete_all_breakpoints): New prototype.
16400 * thread-db.c (find_first_thread): New.
16401 (thread_db_create_event): Call it instead of
16402 thread_db_find_new_threads. Clean up unused variables.
16403 (maybe_attach_thread): Remove first thread handling.
16404 (thread_db_find_new_threads): Use find_first_thread.
16405 (thread_db_get_tls_address): Likewise.
16406
16407 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
16408
16409 * thread-db.c (thread_db_find_new_threads): Add prototype.
16410 (thread_db_create_event): Check for the main thread before adding
16411 a new thread.
16412 (maybe_attach_thread): Only enable event reporting if TID == 0.
16413 (thread_db_get_tls_address): Check for new threads.
16414
16415 2007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
16416
16417 * linux-low.c (linux_create_inferior): Try execv before execvp.
16418 * spu-low.c (spu_create_inferior): Likewise.
16419
16420 2007-06-13 Mike Frysinger <vapier@gentoo.org>
16421
16422 * linux-low.c (linux_create_inferior): Change execv to execvp.
16423 * spu-low.c (spu_create_inferior): Likewies.
16424
16425 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
16426
16427 * Makefile.in (clean): Clean new files instead of deleted ones.
16428 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
16429 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
16430 rules.
16431 * configure.srv: Specify XML files and new regformats for MIPS and
16432 MIPS64 GNU/Linux.
16433 * linux-mips-low.c (mips_num_regs): Set to only used registers.
16434 (mips_regmap): Do not fetch $0. Remove unused registers. Add
16435 an entry for the restart register.
16436 (mips_cannot_fetch_register, mips_cannot_store_register)
16437 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
16438 register names to match the XML descriptions.
16439 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
16440 restart register instead of $0.
16441
16442 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
16443 Markus Deuling <deuling@de.ibm.com>
16444
16445 * remote-utils.c (decode_xfer_write): New function.
16446 * server.h (decode_xfer_write): Add prototype.
16447 * server.c (handle_query): Add PACKET_LEN argument. Support
16448 qXfer:spu:read and qXfer:spu:write packets.
16449 (main): Pass packet_len to handle_query.
16450 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
16451 * target.h (target_ops): Add qxfer_spu.
16452
16453 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
16454
16455 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
16456 accessing non-seekable spufs files.
16457
16458 2007-05-16 Markus Deuling <deuling@de.ibm.com>
16459
16460 * server.c (handle_query): Add reply for qC packet.
16461
16462 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
16463 Leo Zayas <lerele@champenstudios@com>
16464
16465 * server.h (check_remote_input_interrupt_request): New function.
16466 * remote_utils.c (INVALID_DESCRIPTOR): New define.
16467 (remote_desc): Initialize with INVALID_DESCRIPTOR.
16468 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
16469 (check_remote_input_interrupt_request): New function.
16470 * server.h (check_remote_input_interrupt_request): Declare.
16471 * win32-low.c (winapi_DebugBreakProcess,
16472 winapi_GenerateConsoleCtrlEvent): New typedefs.
16473 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
16474 to 250 ms.
16475 (win32_wait): Check for remote interrupt request
16476 with check_remote_input_interrupt_request.
16477 (win32_request_interrupt): New function.
16478 (win32_target_op): Set request_interrupt to win32_request_interrupt.
16479
16480 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
16481
16482 * win32-low.c (debug_registers_changed,
16483 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
16484 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
16485 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
16486 (thread_rec): Get context using the low target.
16487 (child_add_thread): Call thread_added on the low target,
16488 which does the same thing.
16489 (regptr): Delete.
16490 (do_initial_child_stuff): Remove debug registers references.
16491 Set context using the low target. Resume threads after
16492 setting the contexts.
16493 (child_continue): Remove dead variable. Remove debug
16494 registers references.
16495 (child_fetch_inferior_registers): Go through the low target.
16496 (do_child_store_inferior_registers): Remove.
16497 (child_store_inferior_registers): Go through the low target.
16498 (win32_resume): Remove debug registers references.
16499 Set context using the low target.
16500 (handle_exception): Change return type to void. Don't record
16501 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
16502 first chance exception.
16503 (get_child_debug_event): Change return type to void. Remove
16504 goto loop. Always return after waiting for debug event.
16505 (win32_wait): Convert to switch statement. Handle spurious
16506 events.
16507
16508 * win32-i386-low.c (debug_registers_changed,
16509 debug_registers_used): New.
16510 (initial_stuff): Rename to ...
16511 (i386_initial_stuff): ... this. Clear debug registers
16512 state variables.
16513 (store_debug_registers): Delete.
16514 (i386_get_thread_context): New.
16515 (load_debug_registers): Delete.
16516 (i386_set_thread_context): New.
16517 (i386_thread_added): New.
16518 (single_step): Rename to ...
16519 (i386_single_step): ... this.
16520 (do_fetch_inferior_registers): Rename to ...
16521 (i386_fetch_inferior_register): ... this.
16522 (i386_store_inferior_register): New.
16523 (the_low_target): Adapt to new interface.
16524
16525 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
16526 (arm_get_thread_context): New.
16527 (arm_set_thread_context): New.
16528 (regptr): New.
16529 (do_fetch_inferior_registers): Rename to ...
16530 (arm_fetch_inferior_register): ... this.
16531 (arm_store_inferior_register): New.
16532 (arm_wince_breakpoint): Reimplement as unsigned long.
16533 (arm_wince_breakpoint_len): Define.
16534 (the_low_target): Adapt to new interface.
16535
16536 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
16537 load_debug_registers. Add get_thread_context, set_thread_context,
16538 thread_added and store_inferior_register. Rename
16539 fetch_inferior_registers to fetch_inferior_register.
16540 (regptr): Remove declaration.
16541
16542 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
16543
16544 * linux-low.c (linux_detach): Change return type to int. Return 0.
16545 * spu-low.c (spu_detach): Likewise.
16546
16547 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
16548
16549 * target.h (target_ops): Change return type of detach to int.
16550 Add join.
16551 (join_inferior): New.
16552 * server.c (main): Don't skip detach support on mingw32.
16553 If the inferior doesn't support detaching return error.
16554 Call join_inferior instead of using waitpid.
16555 * linux-low.c (linux_join): New.
16556 (linux_target_op): Add linux_join.
16557 * spu-low.c (spu_join): New.
16558 (spu_target_ops): Add spu_join.
16559 * win32-low.c (win32_detach): Adapt to new interface.
16560 Reopen current_process_handle before detaching. Issue a child
16561 resume before detaching.
16562 (win32_join): New.
16563 (win32_target_op): Add win32_join.
16564
16565 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
16566
16567 * win32-low.c (win32-attach): Fix return value.
16568 * target.h (target_ops): Describe ATTACH return values.
16569
16570 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
16571
16572 * win32-low.c (GETPROCADDRESS): Define.
16573 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
16574 (winapi_DebugSetProcessKillOnExit): Likewise.
16575 (win32_create_inferior): Force usage of ansi CreateProcessA.
16576 (win32_attach): Use GETPROCADDRESS.
16577 (win32_detach): Likewise.
16578
16579 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
16580
16581 * win32-low.c (win32_wait): Don't use WSTOPSIG.
16582
16583 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
16584
16585 * win32-low.c: Commit leftover changes from 2007-03-29.
16586
16587 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
16588
16589 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
16590 fields short instead of int. Add explicit padding.
16591 (i387_cache_to_fsave): Remove unnecessary casts.
16592 (i387_fsave_to_cache): Doc fix.
16593 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
16594
16595 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
16596
16597 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
16598 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
16599
16600 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
16601
16602 * configure.srv (arm*-*-mingw32ce*): Move near the other
16603 arm targets.
16604
16605 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
16606
16607 * configure.ac: Add errno checking.
16608 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
16609 sys/file.h and malloc.h.
16610 (AC_CHECK_DECLS): Add perror.
16611 (srv_mingwce): Handle.
16612 * configure.srv (i[34567]86-*-cygwin*): Add
16613 win32-i386-low.o to srv_tgtobj.
16614 (i[34567]86-*-mingw*): Likewise.
16615 (arm*-*-mingw32ce*): Add case.
16616 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
16617 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
16618 [__MINGW32CE__] (strerror): New function.
16619 [__MINGW32CE__] (errno): Define to GetLastError.
16620 [__MINGW32CE__] (COUNTOF): New macro.
16621 (remote_open): Remove extra close call.
16622 * mem-break.c (delete_breakpoint_at): New function.
16623 * mem-break.h (delete_breakpoint_at): Declare.
16624 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
16625 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
16626 [USE_WIN32API] (read, write): Add char* casts.
16627 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
16628 * server.h: Include wincecompat.h on Windows CE.
16629 [HAVE_ERRNO_H]: Check.
16630 (perror): Declare if not declared.
16631 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
16632 (perror_with_name): Remove errno declaration.
16633 * wincecompat.h: New.
16634 * wincecompat.c: New.
16635 * win32-low.h: New.
16636 * win32-arm-low.c: New.
16637 * win32-i386-low.c: New.
16638 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
16639 (OUTMSG2): Make it safe.
16640 (_T): New macro.
16641 (COUNTOF): New macro.
16642 (NUM_REGS): Get it from the low target.
16643 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
16644 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
16645 (thread_rec): Let low target handle debug registers.
16646 (child_add_thread): Likewise.
16647 (child_init_thread_list): Likewise.
16648 (continue_one_thread): Likewise.
16649 (regptr): New.
16650 (do_child_fetch_inferior_registers): Move to ...
16651 * win32-i386-low.c: ... here, and rename to ...
16652 (do_fetch_inferior_registers): ... this.
16653 * win32-low.c (child_fetch_inferior_registers):
16654 Go through the low target.
16655 (do_child_store_inferior_registers): Use regptr.
16656 (strwinerror): New function.
16657 (win32_create_inferior): Handle Windows CE.
16658 Use strwinerror instead of strerror on Windows error
16659 codes. Add program to the error output.
16660 Don't close the main thread handle on Windows CE.
16661 (win32_attach): Use coredll.dll on Windows CE.
16662 (win32_kill): Close current process and current
16663 thread handles.
16664 (win32_detach): Use coredll.dll on Windows CE.
16665 (win32_resume): Let low target handle debug registers, and
16666 step request.
16667 (handle_exception): Add/Remove initial breakpoint. Avoid
16668 non-existant WSTOPSIG on Windows CE.
16669 (win32_read_inferior_memory): Cast to remove warning.
16670 (win32_arch_string): Go through the low target.
16671 (initialize_low): Call set_breakpoint_data with the low
16672 target's breakpoint.
16673 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
16674 FOP_REGNUM, mappings): Move to ...
16675 * win32-i386-low.c: ... here.
16676 * win32-low.c (win32_thread_info): Move to ...
16677 * win32-low.h: ... here.
16678 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
16679 win32-arm-low.c and wincecompat.c.
16680 (all:): Add $EXEEXT.
16681 (install-only:): Likewise.
16682 (gdbserver:): Likewise.
16683 (gdbreplay:): Likewise.
16684 * config.in: Regenerate.
16685 * configure: Regenerate.
16686
16687 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
16688
16689 * win32-low.c: Rename typedef thread_info to
16690 win32_thread_info throughout.
16691
16692 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
16693
16694 * win32-i386-low.c: Rename to ...
16695 * win32-low.c: ... this.
16696 * configure.srv: Replace win32-i386-low.o with win32-low.o.
16697 * Makefile.in: Likewise.
16698
16699 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
16700
16701 * remote-utils.c (monitor_output): Constify msg parameter.
16702 * server.h (monitor_output): Likewise.
16703 * win32-i386-low.c (handle_output_debug_string): New.
16704 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
16705 handle_output_debug_string.
16706 (get_child_debug_event): Likewise.
16707
16708 2007-03-27 Mat Hostetter <mat@lcs.mit.edu>
16709
16710 * server.c (main): Correct strtoul check.
16711
16712 2007-03-27 Jon Ringle <jon@ringle.org>
16713
16714 * linux-low.c: Check __ARCH_HAS_MMU__ also.
16715
16716 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
16717
16718 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
16719
16720 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
16721
16722 * terminal.h: Check HAVE_SGTTY_H.
16723
16724 2007-02-27 Mat Hostetter <mat@lcs.mit.edu>
16725
16726 * remote-utils.c (remote_open): Print out the assigned port number.
16727
16728 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
16729
16730 * remote-utils.c (monitor_output): New function.
16731 * server.c (debug_threads): Define here.
16732 (monitor_show_help): New function.
16733 (handle_query): Handle qRcmd.
16734 (main): Do not handle 'd' packet.
16735 * server.h (debug_threads, remote_debug, monitor_output): Declare.
16736 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
16737 of debug_threads.
16738
16739 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
16740
16741 * Makefile.in (EXEEXT): New.
16742 (clean): Use $(EXEEXT).
16743
16744 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
16745
16746 * target.h (target_ops): Rename send_signal to request_interrupt,
16747 and remove enum target_signal parameter.
16748 * linux-low.c (linux_request_interrupt): Rename from
16749 linux_send_signal, and always send SIGINT.
16750 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
16751 and always send SIGINT.
16752 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
16753 of send_signal.
16754 (input_interrupt): Likewise.
16755
16756 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
16757
16758 * server.c (get_features_xml): Check if target implemented
16759 arch_string.
16760 * win32-i386-low.c (win32_arch_string): New.
16761 (win32_target_ops): Add win32_arch_string as arch_string member.
16762
16763 2007-02-22 Markus Deuling <deuling@de.ibm.com>
16764
16765 * spu-low.c (spu_arch_string): New.
16766 (spu_target_ops): Add spu_arch_string.
16767
16768 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
16769
16770 * remote-utils.c: Remove HAVE_TERMINAL_H check.
16771 * configure.ac: Do not check for terminal.h.
16772 * configure, config.in: Regenerated.
16773
16774 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
16775
16776 * Makefile.in (OBS): Add $(XML_BUILTIN).
16777 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
16778 (clean): Update.
16779 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
16780 (arm-with-iwmmxt.c): New.
16781 * config.in, configure: Regenerate.
16782 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
16783 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
16784 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
16785 (arm*-*-linux*): Add iWMMXt and regset support.
16786 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
16787 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
16788 (arm_store_wmmxregset, target_regsets): New.
16789 * server.c (get_features_xml): Take annex argument. Check builtin
16790 XML documents.
16791 (handle_query): Handle multiple annexes.
16792
16793 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
16794
16795 * remote-utils.c [USE_WIN32API] (read, write): Define.
16796 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
16797 write.
16798
16799 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
16800
16801 * linux-i386-low.c (the_low_target): Set arch_string.
16802 * linux-x86-64-low.c (the_low_target): Likewise.
16803 * linux-low.c (linux_arch_string): New.
16804 (linux_target_ops): Add it.
16805 * linux-low.h (struct linux_target_ops): Add arch_string.
16806 * server.c (write_qxfer_response): Use const void * for DATA.
16807 (get_features_xml): New.
16808 (handle_query): Handle qXfer:features:read. Report it for qSupported.
16809 * target.h (struct target_ops): Add arch_string method.
16810
16811 2007-01-03 Denis Pilat <denis.pilat@st.com>
16812 Daniel Jacobowitz <dan@codesourcery.com>
16813
16814 * linux-low.c (linux_kill): Handle being called with no threads.
16815 * win32-i386-low.c (win32_kill): Likewise.
16816 (get_child_debug_event): Clear current_process_handle.
16817
16818 2006-12-30 Denis PILAT <denis.pilat@st.com>
16819 Daniel Jacobowitz <dan@codesourcery.com>
16820
16821 * remote-utils.c (remote_open): Check the type of specified
16822 serial port devices before opening them.
16823 * server.c (main): Kill the inferior if an error occurs during
16824 the first remote_open.
16825
16826 2006-12-05 Markus Deuling <deuling@de.ibm.com>
16827
16828 * README: Update supported targets.
16829
16830 2006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
16831
16832 * Makefile.in (clean): Remove reg-mips64.c.
16833 (reg-mips64.c, reg-mips64.o): New rules.
16834 * configure.srv: Handle mips64. Include regset support for mips.
16835 * linux-mips-low.c (union mips_register): New.
16836 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
16837 (mips_breakpoint, mips_breakpoint_at): Use int.
16838 (mips_collect_register, mips_supply_register)
16839 (mips_collect_register_32bit, mips_supply_register_32bit)
16840 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
16841 (mips_store_fpregset, target_regsets): New.
16842 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
16843
16844 2006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
16845
16846 * configure.srv: Add target "spu*-*-*".
16847 * Makefile.in (clean): Remove reg-spu.c.
16848 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
16849 * spu-low.c: New file.
16850
16851 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
16852
16853 * configure.ac: Correct td_thr_tls_get_addr test.
16854 * configure: Regenerated.
16855
16856 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
16857
16858 * linux-low.c (linux_wait_for_event): Reformat. Use the
16859 pass_signals array.
16860 * remote-utils.c (decode_address_to_semicolon): New.
16861 * server.c (pass_signals, handle_general_set): New.
16862 (handle_query): Mention QPassSignals for qSupported.
16863 (main): Call handle_general_set.
16864 * server.h (pass_signals, decode_address_to_semicolon): New.
16865
16866 2006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
16867
16868 * server.c (handle_query): Correct error handling for read_auxv.
16869
16870 2005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
16871
16872 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
16873 and srv_linux_thread_db to yes.
16874 * linux-s390-low.c (s390_fill_gregset): New function.
16875 (target_regsets): Define data structure.
16876
16877 2006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
16878
16879 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
16880 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
16881 * config.in, configure: Regenerated.
16882 * inferiors.c (gdb_id_to_thread): New function.
16883 (gdb_id_to_thread_id): Use it.
16884 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
16885 * linux-low.h (struct process_info): Add th member.
16886 (thread_db_get_tls_address): New prototype.
16887 * remote-utils.c (decode_address): Make non-static.
16888 * server.c (handle_query): Handle qGetTLSAddr.
16889 * server.h (gdb_id_to_thread, decode_address): New prototypes.
16890 * target.h (struct target_ops): Add get_tls_address.
16891 * thread-db.c (maybe_attach_thread): Save the thread handle.
16892 (thread_db_get_tls_address): New.
16893
16894 2006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
16895
16896 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
16897 (linux_resume_one_process): Take a siginfo_t *. Update all
16898 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
16899 (struct pending_signals): Add a siginfo_t.
16900 (linux_wait_for_process): Always set last_status.
16901 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
16902 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
16903 * linux-low.h (struct process_info): Add last_status.
16904
16905 2006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
16906
16907 * remote-utils.c (try_rle): New function.
16908 (putpkt_binary): Use it.
16909
16910 2006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
16911
16912 * Makefile.in (clean): Clean reg-x86-64-linux.c.
16913 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
16914 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
16915 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
16916 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
16917 point registers.
16918
16919 2006-08-08 Richard Sandiford <richard@codesourcery.com>
16920
16921 * server.c (terminal_fd): New variable.
16922 (old_foreground_pgrp): Likewise.
16923 (restore_old_foreground_pgrp): New function.
16924 (start_inferior): Record the terminal file descriptor in terminal_fd
16925 and its original foreground group in old_foreground_pgrp. Register
16926 restore_old_foreground_pgrp with atexit().
16927
16928 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
16929
16930 * server.c (handle_query): Correct qPart to qXfer.
16931
16932 2006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
16933
16934 * configure.ac: Check for more headers which are missing on
16935 Windows. Automatically supply -lwsock32 and USE_WIN32API.
16936 * configure.srv: Add Cygwin and mingw32.
16937 * remote-utils.c: Don't include headers unconditionally which
16938 are missing on mingw32. Include <winsock.h> for mingw32.
16939 (remote_open): Adjust for mingw32 support. Flush
16940 standard error after writing to it.
16941 (remote_close, putpkt_binary, input_interrupt, block_async_io)
16942 (unblock_async_io, enable_async_io, disable_async_io)
16943 (readchar, getpkt): Update for Winsock support.
16944 (prepare_resume_reply): Expect a protocol signal number.
16945 * server.c: Disable <sys/wait.h> on mingw32.
16946 (start_inferior): Adjust for mingw32 support. Flush
16947 standard error after writing to it.
16948 (attach_inferior): Likewise. Use protocol signal
16949 numbers.
16950 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
16951 and names.
16952 * win32-i386-low.c: New file.
16953 * Makefile.in (XM_CLIBS): Set.
16954 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
16955 (win32-i386-low.o): New dependency rule.
16956 * linux-low.c (linux_wait): Use target signal numbers.
16957 * target.h (struct target_ops): Doc fix.
16958 * server.h (target_signal_to_name): New prototype.
16959 * gdbreplay.c: Don't include headers unconditionally which
16960 are missing on mingw32. Include <winsock.h> for mingw32.
16961 (remote_close, remote_open): Adjust for Winsock support.
16962 * configure, config.in: Regenerated.
16963
16964 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
16965
16966 * server.c (decode_xfer_read, write_qxfer_response): New.
16967 (handle_query): Take a packet length argument. Handle
16968 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
16969 the qSupported response.
16970 (main): Update call to handle_query.
16971
16972 2006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
16973
16974 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
16975 (putpkt_binary): Renamed from putpkt and adjusted for binary
16976 data.
16977 (putpkt): New wrapper for putpkt_binary.
16978 (readchar): Don't mask off the high bit.
16979 (decode_X_packet): New function.
16980 * server.c (main): Call putpkt_binary if a handler sets the packet
16981 length. Save the length of the incoming packet. Handle 'X'.
16982 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
16983
16984 2006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
16985
16986 * server.c (handle_query): Handle qSupported.
16987
16988 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
16989
16990 * remote-utils.c (all_symbols_looked_up): New variable.
16991 (look_up_one_symbol): Check it.
16992 * server.h (look_up_one_symbol): New declaration.
16993 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
16994
16995 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
16996
16997 * Makefile.in (linux-arm-low.o): Update dependencies.
16998 * linux-arm-low.c: Include "gdb_proc_service.h".
16999 (PTRACE_GET_THREAD_AREA): Define.
17000 (ps_get_thread_area): New function.
17001
17002 2006-05-09 Nathan Sidwell <nathan@codesourcery.com>
17003
17004 * configure.srv (m68k*-*-uclinux*): New target.
17005 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
17006 (linux_resume_one_process): Remove extraneous cast.
17007 (linux_read_offsets): New.
17008 (linux_target_op): Add linux_read_offsets on mmuless systems.
17009 * server.c (handle_query): Add qOffsets logic.
17010 * target.h (struct target_ops): Add read_offsets.
17011
17012 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
17013
17014 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
17015 (PTRACE_GET_THREAD_AREA): Define.
17016 (ps_get_thread_area): New function.
17017 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
17018 (linux-x86-64-low.o): Update.
17019
17020 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
17021
17022 * configure.ac: Remove checks for prfpregset_t.
17023 * gdb_proc_service.h: New file.
17024 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
17025 new "gdb_proc_service.h".
17026 * proc-service.c: Likewise.
17027 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
17028 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
17029 * Makefile.in (gdb_proc_service_h): Updated.
17030 * configure, config.in: Regenerated.
17031
17032 2006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
17033
17034 * remote-utils.c (prepare_resume_reply): Move declaration
17035 of gdb_id_from_wait to the top of the block.
17036
17037 2006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
17038
17039 * linux-low.c (regsets_store_inferior_registers): Read the regset
17040 from the target before filling it.
17041
17042 2006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
17043
17044 * server.c (attach_inferior): Return SIGTRAP for a successful
17045 attach.
17046
17047 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
17048
17049 * Makefile.in (OBS): Add version.o.
17050 (STAGESTUFF): Delete.
17051 (version.o): Add dependencies.
17052 (version.c): Replace rule.
17053 (clean): Remove version.c.
17054 * server.c (gdbserver_version): New.
17055 (gdbserver_usage): Use printf.
17056 (main): Handle --version and --help.
17057 * server.h (version, host_name): Add declarations.
17058
17059 2005-12-23 Eli Zaretskii <eliz@gnu.org>
17060
17061 * linux-arm-low.c:
17062 * linux-arm-low.c:
17063 * inferiors.c:
17064 * i387-fp.h:
17065 * i387-fp.c:
17066 * gdbreplay.c:
17067 * regcache.c:
17068 * proc-service.c:
17069 * mem-break.h:
17070 * mem-break.c:
17071 * linux-x86-64-low.c:
17072 * linux-sh-low.c:
17073 * linux-s390-low.c:
17074 * linux-ppc64-low.c:
17075 * linux-ppc-low.c:
17076 * linux-mips-low.c:
17077 * linux-m68k-low.c:
17078 * linux-m32r-low.c:
17079 * linux-low.h:
17080 * linux-low.c:
17081 * linux-ia64-low.c:
17082 * linux-i386-low.c:
17083 * linux-crisv32-low.c:
17084 * thread-db.c:
17085 * terminal.h:
17086 * target.h:
17087 * target.c:
17088 * server.h:
17089 * server.c:
17090 * remote-utils.c:
17091 * regcache.h:
17092 * utils.c:
17093 * Makefile.in:
17094 * configure.ac:
17095 * gdbserver.1: Add (C) after Copyright. Update the FSF
17096 address.
17097
17098 2005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
17099
17100 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
17101 (arm_breakpoint_at): Recognize both breakpoints.
17102 (the_low_target): Use the correct breakpoint instruction.
17103
17104 2005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
17105
17106 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
17107 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
17108 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
17109 (the_low_target): Update.
17110
17111 2005-10-25 Andreas Schwab <schwab@suse.de>
17112
17113 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
17114
17115 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
17116 (ia64_num_regs): Reduce to 462.
17117
17118 2005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
17119
17120 * acinclude.m4: Correct quoting.
17121 * aclocal.m4: Regenerated.
17122
17123 Suggested by SZOKOVACS Robert <szo@ies.hu>:
17124 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
17125 (thread_db_init): Call thread_db_err_str.
17126 * configure.ac: Check for TD_VERSION.
17127 * config.in, configure: Regenerated.
17128
17129 2005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17130
17131 * server.h (error, fatal, warning): Add ATTR_FORMAT.
17132
17133 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
17134
17135 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
17136 is not available. Define HAVE_PTRACE_GETREGS if it is.
17137 * config.in, configure: Regenerated.
17138 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
17139 * linux-i386-low.c, linux-m68k-low.c: Update to use
17140 HAVE_PTRACE_GETREGS.
17141 * linux-low.c (regsets_fetch_inferior_registers)
17142 (regsets_store_inferior_registers): Only return 0 if we processed
17143 GENERAL_REGS.
17144 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
17145 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
17146
17147 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
17148
17149 * inferiors.c (struct thread_info): Add gdb_id.
17150 (add_thread): Add gdb_id argument.
17151 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
17152 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
17153 calls to add_thread.
17154 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
17155 * server.c (handle_query): Use thread_to_gdb_id.
17156 (handle_v_cont, main): Use gdb_id_to_thread_id.
17157 * server.h (add_thread): Update prototype.
17158 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
17159 prototypes.
17160
17161 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
17162
17163 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
17164 left-padded registers.
17165 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
17166 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
17167
17168 2005-07-01 Steve Ellcey <sje@cup.hp.com>
17169
17170 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
17171 * configure: Regenerate.
17172 * config.in: Regenerate.
17173 * server.h (NEED_DECLARATION_STRERROR):
17174 Replace with !HAVE_DECL_STRERROR.
17175
17176 2005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
17177
17178 * linux-low.c (linux_wait, linux_send_signal): Don't test
17179 an unsigned long variable for > 0 if it could be MAX_ULONG.
17180 * server.c (myresume): Likewise.
17181 * target.c (set_desired_inferior): Likewise.
17182
17183 2005-06-13 Mark Kettenis <kettenis@gnu.org>
17184
17185 * configure.ac: Simplify and improve check for socklen_t.
17186 * configure, config.in: Regenerate.
17187
17188 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
17189
17190 * acconfig.h: Remove.
17191 * configure.ac: Add a test for socklen_t. Use three-argument
17192 AC_DEFINE throughout.
17193 * config.in: Regenerated using autoheader 2.59.
17194 * configure: Regenerated.
17195
17196 * gdbreplay.c (socklen_t): Provide a default.
17197 (remote_open): Use socklen_t.
17198 * remote-utils.c (socklen_t): Provide a default.
17199 (remote_open): Use socklen_t.
17200 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
17201 unsigned char.
17202
17203 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
17204 char for buffers.
17205 * linux-low.c (linux_read_memory, linux_write_memory)
17206 (linux_read_auxv): Likewise.
17207 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
17208 (check_mem_write): Likewise.
17209 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
17210 Likewise.
17211 * regcache.c (struct inferior_rgcache_data, registers_to_string)
17212 (registers_from_string, register_data): Likewise.
17213 * server.c (handle_query, main): Likewise.
17214 * server.h (convert_ascii_to_int, convert_int_to_ascii)
17215 (decode_M_packet): Likewise.
17216 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
17217 * target.h (struct target_ops): Update read_memory, write_memory,
17218 and read_auxv.
17219 (read_inferior_memory, write_inferior_memory): Update.
17220 * linux-low.h (struct linux_target_ops): Change type of breakpoint
17221 to unsigned char *.
17222 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
17223 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
17224 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
17225 linux-s390-low.c, linux-sh-low.c: Update for changes in
17226 read_inferior_memory and the_low_target->breakpoint.
17227
17228 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
17229
17230 * Makefile.in (SFILES): Add linux-ppc64-low.c.
17231 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
17232 * configure.srv: Add powerpc64-*-linux*.
17233 * linux-ppc64-low.c: New file.
17234
17235 2005-05-23 Orjan Friberg <orjanf@axis.com>
17236
17237 * linux-cris-low.c: New file with support for CRIS.
17238 * linux-crisv32-low.c: Ditto for CRISv32.
17239 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
17240 (clean): Add reg-cris.c and reg-crisv32.c.
17241 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
17242 reg-crisv32.o, and reg-crisv32.c to make rules.
17243 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
17244 recognized targets.
17245
17246 2005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
17247
17248 * linux-low.c (fetch_register): Ensure buffer size is a multiple
17249 of sizeof (PTRACE_XFER_TYPE).
17250 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
17251
17252 2005-05-12 Orjan Friberg <orjanf@axis.com>
17253
17254 * target.h (struct target_ops): Add insert_watchpoint,
17255 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
17256 pointers for hardware watchpoint support.
17257 * linux-low.h (struct linux_target_ops): Ditto.
17258 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
17259 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
17260 to linux_target_ops.
17261 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
17262 reply packet.
17263 * server.c (main): Recognize 'Z' and 'z' packets.
17264
17265 2005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
17266
17267 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
17268 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
17269 (the_low_target): Add new members.
17270
17271 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
17272
17273 * proc-service.c (ps_lgetregs): Search all_processes instead of
17274 all_threads.
17275
17276 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
17277
17278 * server.c (start_inferior): Change return type to int.
17279 (attach_inferior): Change sigptr to int *.
17280 (handle_v_cont, handle_v_requests): Change signal to int *.
17281 (main): Change signal to int.
17282
17283 2005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
17284
17285 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
17286 * configure.srv: Add m32r*-*-linux*.
17287 * linux-m32r-low.c: New file.
17288
17289 2005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
17290
17291 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
17292
17293 2005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
17294
17295 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
17296 Take unsigned long arguments for PIDs.
17297 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
17298 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
17299 (wait_for_sigstop, linux_resume_one_process)
17300 (regsets_fetch_inferior_registers, linux_send_signal)
17301 (linux_read_auxv): Likewise. Update the types of variables holding
17302 PIDs. Update format string specifiers.
17303 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
17304 * remote-utils.c (prepare_resume_reply): Likewise.
17305 * server.c (cont_thread, general_thread, step_thread)
17306 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
17307 unsigned long.
17308 (handle_query): Update format specifiers.
17309 (handle_v_cont, main): Use strtoul for thread IDs.
17310 * server.h (struct inferior_list_entry): Use unsigned long for ID.
17311 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
17312 (general_thread, step_thread, thread_from_wait)
17313 (old_thread_from_wait): Update.
17314 * target.h (struct thread_resume): Use unsigned long for THREAD.
17315 (struct target_ops): Use unsigned long for arguments to attach and
17316 thread_alive.
17317
17318 2005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
17319
17320 * acinclude.m4: Include bfd/bfd.m4 directly.
17321 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
17322 <agriffis@toolchain.org>.
17323 * aclocal.m4, configure: Regenerated.
17324
17325 2005-01-07 Andrew Cagney <cagney@gnu.org>
17326
17327 * configure.ac: Rename configure.in, require autoconf 2.59.
17328 * configure: Re-generate.
17329
17330 2004-12-08 Daniel Jacobowitz <dan@debian.org>
17331
17332 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
17333 LIBS when finished.
17334 * aclocal.m4: Regenerated.
17335 * configure: Regenerated.
17336
17337 2004-11-21 Andreas Schwab <schwab@suse.de>
17338
17339 * linux-m68k-low.c (m68k_num_gregs): Define.
17340 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
17341 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
17342 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
17343 (m68k_breakpoint_at): New. Add to the_low_target.
17344
17345 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
17346 srv_linux_thread_db to yes.
17347
17348 2004-10-20 Joel Brobecker <brobecker@gnat.com>
17349
17350 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
17351 (ARCH_SET_FS): Likewise.
17352 (ARCH_GET_FS): Likewise.
17353 (ARCH_GET_GS): Likewise.
17354
17355 2004-10-16 Daniel Jacobowitz <dan@debian.org>
17356
17357 * linux-i386-low.c (ps_get_thread_area): New.
17358 * linux-x86-64-low.c (ps_get_thread_area): New.
17359 * linux-low.c: Include <sys/syscall.h>.
17360 (linux_kill_one_process): Don't kill the first thread here.
17361 (linux_kill): Kill the first thread here.
17362 (kill_lwp): New function.
17363 (send_sigstop, linux_send_signal): Use it.
17364 * proc-service.c: Clean up #ifdefs.
17365 (fpregset_info): Delete.
17366 (ps_lgetregs): Update and enable implementation.
17367 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
17368 implementations.
17369 * remote-utils.c (struct sym_cache, symbol_cache): New.
17370 (input_interrupt): Print a clearer message.
17371 (async_io_enabled): New variable.
17372 (enable_async_io, disable_async_io): Use it. Update comments.
17373 (look_up_one_symbol): Use the symbol cache.
17374 * thread-db.c (thread_db_look_up_symbols): New function.
17375 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
17376
17377 2004-10-16 Daniel Jacobowitz <dan@debian.org>
17378
17379 * configure.in: Test for -rdynamic.
17380 * configure: Regenerated.
17381 * Makefile (INTERNAL_LDFLAGS): New.
17382 (gdbserver, gdbreplay): Use it.
17383
17384 2004-09-02 Andrew Cagney <cagney@gnu.org>
17385
17386 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
17387
17388 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
17389
17390 * linux-low.c (linux_wait): Clear all_processes list also.
17391
17392 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
17393
17394 * linux-low.c: Include <errno.h>. Remove extern declaration of
17395 errno.
17396
17397 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
17398
17399 * gdbreplay.c, server.h, utils.c: Update copyright years.
17400
17401 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
17402
17403 * server.c (main): Print child status or termination signal from
17404 variable 'signal', not 'sig'.
17405
17406 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
17407
17408 * linux-low.c (linux_read_memory): Change return type to
17409 int. Check for and return error from ptrace().
17410 * target.c (read_inferior_memory): Change return type to int. Pass
17411 back return status from the_target->read_memory().
17412 * target.h (struct target_ops): Adapt *read_memory() prototype.
17413 Update comment.
17414 (read_inferior_memory): Adapt prototype.
17415 * server.c (main): Return an error packet if
17416 read_inferior_memory() returns an error.
17417
17418 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
17419
17420 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
17421 Unify with other clean targets.
17422
17423 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
17424
17425 * server.c (handle_v_cont): Call set_desired_inferior.
17426
17427 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
17428
17429 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
17430
17431 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
17432
17433 * linux-low.c (linux_wait): Unblock async I/O.
17434 (linux_resume): Block and enable async I/O.
17435 * remote-utils.c (block_async_io, unblock_async_io): New functions.
17436 * server.h (block_async_io, unblock_async_io): Add prototypes.
17437
17438 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
17439
17440 * remote-utils.c (remote_open): Print a status notice after
17441 opening a TCP port.
17442 * server.c (attach_inferior): Print a status notice after
17443 attaching.
17444
17445 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
17446
17447 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
17448
17449 2004-02-26 Daniel Jacobowitz <drow@mvista.com>
17450
17451 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
17452 error packet.
17453 * server.c, target.h: Update copyright years.
17454
17455 2004-02-25 Roland McGrath <roland@redhat.com>
17456
17457 * target.h (struct target_ops): New member `read_auxv'.
17458 * server.c (handle_query): Handle qPart:auxv:read: query using that.
17459 * linux-low.c (linux_read_auxv): New function.
17460 (linux_target_ops): Initialize `read_auxv' member to that.
17461
17462 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17463
17464 Committed by Jim Blandy <jimb@redhat.com>.
17465
17466 * linux-s390-low.c (s390_num_regs): Update.
17467 (s390_regmap): Remove control registers. Use __s390x__ predefine
17468 instead of GPR_SIZE to distiguish s390 and s390x targets.
17469
17470 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
17471
17472 * linux-low.c: Update copyright year.
17473 (check_removed_breakpoint): Clear pending_is_breakpoint.
17474 (linux_set_resume_request, linux_queue_one_thread)
17475 (resume_status_pending_p): New functions.
17476 (linux_continue_one_thread): Use process->resume.
17477 (linux_resume): Only resume threads if there are no pending events.
17478 * linux-low.h (struct process_info): Add resume request
17479 pointer.
17480
17481 2004-01-30 Daniel Jacobowitz <drow@mvista.com>
17482
17483 * regcache.c (new_register_cache): Clear the allocated register
17484 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
17485
17486 2003-10-13 Daniel Jacobowitz <drow@mvista.com>
17487
17488 * linux-low.c (linux_resume): Take a struct thread_resume *
17489 argument.
17490 (linux_wait): Update call.
17491 (resume_ptr): New static variable.
17492 (linux_continue_one_thread): Renamed from
17493 linux_continue_one_process. Use resume_ptr.
17494 (linux_resume): Use linux_continue_one_thread.
17495 * server.c (handle_v_cont, handle_v_requests): New functions.
17496 (myresume): New function.
17497 (main): Handle 'v' case.
17498 * target.h (struct thread_resume): New type.
17499 (struct target_ops): Change argument of "resume" to struct
17500 thread_resume *.
17501 (myresume): Delete macro.
17502
17503 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
17504
17505 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
17506 (uninstall): Support DESTDIR.
17507
17508 Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
17509
17510 * configure.srv: Add xscale*linux copy of arm*linux entry.
17511
17512 2003-07-24 Daniel Jacobowitz <drow@mvista.com>
17513
17514 * linux-arm-low.c (arm_reinsert_addr): New function.
17515 (the_low_target): Add arm_reinsert_addr.
17516
17517 2003-07-08 Mark Kettenis <kettenis@gnu.org>
17518
17519 * mem-break.c: Remove whitespace at end of file.
17520
17521 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
17522
17523 * configure.in: Check whether we need to prototype strerror.
17524 * server.h: Optionally prototype strerror.
17525 * gdbreplay.c (perror_with_name): Use strerror.
17526 * linux-low.c (linux_attach_lwp): Use strerror.
17527 * utils.c (perror_with_name): Use strerror.
17528 * config.in, configure: Regenerated.
17529
17530 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
17531
17532 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
17533 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
17534
17535 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
17536
17537 * Makefile.in (SFILES): Update.
17538 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
17539 low-sun3.c: Remove files.
17540
17541 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
17542
17543 * linux-low.c: Move comment to linux_thread_alive where it belonged.
17544 (linux_detach_one_process, linux_detach): New functions.
17545 (linux_target_ops): Add linux_detach.
17546 * server.c (main): Handle 'D' packet.
17547 * target.h (struct target_ops): Add "detach" member.
17548 (detach_inferior): Define.
17549
17550 2003-06-13 Mark Kettenis <kettenis@gnu.org>
17551
17552 From Kelley Cook <kelleycook@wideopenwest.com>:
17553 * configure.srv: Accept i[34567]86 variants.
17554
17555 2003-06-05 Daniel Jacobowitz <drow@mvista.com>
17556
17557 * linux-low.c (linux_wait_for_event): Correct comment typos.
17558 (linux_resume_one_process): Call check_removed_breakpoint.
17559 (linux_send_signal): New function.
17560 (linux_target_ops): Add linux_send_signal.
17561 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
17562 of kill.
17563 * target.h (struct target_ops): Add send_signal.
17564
17565 2003-05-29 Jim Blandy <jimb@redhat.com>
17566
17567 * linux-low.c (usr_store_inferior_registers): Transfer buf in
17568 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
17569 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
17570 away part of the register's value.
17571
17572 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
17573
17574 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
17575 (linux_wait_for_event, linux_init_signals): Likewise.
17576
17577 2003-03-17 Daniel Jacobowitz <drow@mvista.com>
17578
17579 * configure.in: Check for stdlib.h.
17580 * configure: Regenerated.
17581 * config.in: Regenerated.
17582
17583 2003-01-04 Andreas Schwab <schwab@suse.de>
17584
17585 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
17586
17587 2003-01-02 Andrew Cagney <ac131313@redhat.com>
17588
17589 * Makefile.in: Remove obsolete code.
17590
17591 2002-11-20 Daniel Jacobowitz <drow@mvista.com>
17592
17593 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
17594 defined(PT_FPR0_HI).
17595
17596 2002-11-17 Stuart Hughes <seh@zee2.com>
17597
17598 * linux-arm-low.c (arm_num_regs): Increase.
17599 (arm_regmap): Include status register.
17600
17601 2002-11-17 Daniel Jacobowitz <drow@mvista.com>
17602
17603 * linux-low.c (register_addr): Remove incorrect -1 check.
17604
17605 2002-08-29 Daniel Jacobowitz <drow@mvista.com>
17606
17607 * linux-low.c (linux_create_inferior): Call setpgid. Return
17608 the new PID.
17609 (unstopped_p, linux_signal_pid): Remove.
17610 (linux_target_ops): Remove linux_signal_pid.
17611 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
17612 global instead of target method.
17613 * target.h (struct target_ops): Remove signal_pid. Update comment
17614 for create_inferior.
17615 * server.c (signal_pid): New variable.
17616 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
17617 gdbserver. Set the child to be the foreground process group.
17618 (attach_inferior): Set signal_pid.
17619
17620 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
17621
17622 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
17623
17624 2002-08-20 Jim Blandy <jimb@redhat.com>
17625
17626 * Makefile.in (LDFLAGS): Allow the configure script to establish a
17627 default for this.
17628
17629 2002-08-01 Andrew Cagney <cagney@redhat.com>
17630
17631 * Makefile.in: Make chill references obsolete.
17632
17633 2002-07-24 Kevin Buettner <kevinb@redhat.com>
17634
17635 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
17636 * configure: Regenerate.
17637 * config.in: Regenerate.
17638
17639 2002-07-09 David O'Brien <obrien@FreeBSD.org>
17640
17641 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
17642 (perror_with_name, remote_close, remote_open, expect, play): Static.
17643
17644 2002-07-04 Michal Ludvig <mludvig@suse.cz>
17645
17646 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
17647 byte offsets instead of an array of indexes.
17648 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
17649
17650 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
17651
17652 * regcache.c: Add comment.
17653
17654 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
17655
17656 * thread-db.c: New file.
17657 * proc-service.c: New file.
17658 * acinclude.m4: New file.
17659 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
17660 proc-service.o, and thread-db.o.
17661 (linux-low.o): Add USE_THREAD_DB.
17662 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
17663 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
17664 * aclocal.m4: Regenerated.
17665 * config.in: Regenerated.
17666 * configure: Regenerated.
17667 * configure.in: Check for proc_service.h, sys/procfs.h,
17668 thread_db.h, and linux/elf.h headrs.
17669 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
17670 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
17671 Check for -lthread_db and thread support.
17672 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
17673 PowerPC, and SuperH.
17674 * i387-fp.c: Constify arguments.
17675 * i387-fp.h: Likewise.
17676 * inferiors.c: (struct thread_info): Renamed from
17677 `struct inferior_info'. Remove PID member. Use generic inferior
17678 list header. All uses updated.
17679 (inferiors, signal_pid): Removed.
17680 (all_threads): New variable.
17681 (get_thread): Define.
17682 (add_inferior_to_list): New function.
17683 (for_each_inferior): New function.
17684 (change_inferior_id): New function.
17685 (add_inferior): Removed.
17686 (remove_inferior): New function.
17687 (add_thread): New function.
17688 (free_one_thread): New function.
17689 (remove_thread): New function.
17690 (clear_inferiors): Use for_each_inferior and free_one_thread.
17691 (find_inferior): New function.
17692 (find_inferior_id): New function.
17693 (inferior_target_data): Update argument type.
17694 (set_inferior_target_data): Likewise.
17695 (inferior_regcache_data): Likewise.
17696 (set_inferior_regcache_data): Likewise.
17697 * linux-low.c (linux_bp_reinsert): Remove.
17698 (all_processes, stopping_threads, using_thrads)
17699 (struct pending_signals, debug_threads, pid_of): New.
17700 (inferior_pid): Replace with macro.
17701 (struct inferior_linux_data): Remove.
17702 (get_stop_pc, add_process): New functions.
17703 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
17704 Use add_process and add_thread.
17705 (linux_attach_lwp): New function, based on old linux_attach. Use
17706 add_process and add_thread. Set stop_expected for new threads.
17707 (linux_attach): New function.
17708 (linux_kill_one_process): New function.
17709 (linux_kill): Kill all LWPs.
17710 (linux_thread_alive): Use find_inferior_id.
17711 (check_removed_breakpoints, status_pending_p): New functions.
17712 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
17713 Update. Use WNOHANG. Wait for cloned processes also. Update process
17714 struct for the found process.
17715 (linux_wait_for_event): New function.
17716 (linux_wait): Use it. Support LWPs.
17717 (send_sigstop, wait_for_sigstop, stop_all_processes)
17718 (linux_resume_one_process, linux_continue_one_process): New functions.
17719 (linux_resume): Support LWPs.
17720 (REGISTER_RAW_SIZE): Remove.
17721 (fetch_register): Use register_size instead. Call supply_register.
17722 (usr_store_inferior_registers): Likewise. Call collect_register.
17723 Fix recursive case.
17724 (regsets_fetch_inferior_registers): Improve error message.
17725 (regsets_store_inferior_registers): Add debugging.
17726 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
17727 (unstopped_p, linux_signal_pid): New functions.
17728 (linux_target_ops): Add linux_signal_pid.
17729 (linux_init_signals): New function.
17730 (initialize_low): Call it. Initialize using_threads.
17731 * regcache.c (inferior_regcache_data): Add valid
17732 flag.
17733 (get_regcache): Fetch registers lazily. Add fetch argument
17734 and update all callers.
17735 (regcache_invalidate_one, regcache_invalidate): New
17736 functions.
17737 (new_register_cache): Renamed from create_register_cache.
17738 Return the new regcache.
17739 (free_register_cache): Change argument to a void *.
17740 (registers_to_string, registers_from_string): Call get_regcache
17741 with fetch flag set.
17742 (register_data): Make static. Pass fetch flag to get_regcache.
17743 (supply_register): Call get_regcache with fetch flag clear.
17744 (collect_register): Call get_regcache with fetch flag set.
17745 (collect_register_as_string): New function.
17746 * regcache.h: Update.
17747 * remote-utils.c (putpkt): Flush after debug output and use
17748 stderr.
17749 Handle input interrupts while waiting for an ACK.
17750 (input_interrupt): Use signal_pid method.
17751 (getpkt): Flush after debug output and use stderr.
17752 (outreg): Use collect_register_as_string.
17753 (new_thread_notify, dead_thread_notify): New functions.
17754 (prepare_resume_reply): Check using_threads. Set thread_from_wait
17755 and general_thread.
17756 (look_up_one_symbol): Flush after debug output.
17757 * server.c (step_thread, server_waiting): New variables.
17758 (start_inferior): Don't use signal_pid. Update call to mywait.
17759 (attach_inferior): Update call to mywait.
17760 (handle_query): Handle qfThreadInfo and qsThreadInfo.
17761 (main): Don't fetch/store registers explicitly. Use
17762 set_desired_inferior. Support proposed ``Hs'' packet. Update
17763 calls to mywait.
17764 * server.h: Update.
17765 (struct inferior_list, struct_inferior_list_entry): New.
17766 * target.c (set_desired_inferior): New.
17767 (write_inferior_memory): Constify.
17768 (mywait): New function.
17769 * target.h: Update.
17770 (struct target_ops): New signal_pid method.
17771 (mywait): Removed macro, added prototype.
17772
17773 * linux-low.h (regset_func): Removed.
17774 (regset_fill_func, regset_store_func): New.
17775 (enum regset_type): New.
17776 (struct regset_info): Add type field. Use new operation types.
17777 (struct linux_target_ops): stop_pc renamed to get_pc.
17778 Add decr_pc_after_break and breakpoint_at.
17779 (get_process, get_thread_proess, get_process_thread)
17780 (strut process_info, all_processes, linux_attach_lwp)
17781 (thread_db_init): New.
17782
17783 * linux-arm-low.c (arm_get_pc, arm_set_pc,
17784 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
17785 (the_low_target): Add new members.
17786 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
17787 (i386_store_fpxregset): Constify.
17788 (target_regsets): Add new kind identifier.
17789 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
17790 (i386_set_pc): Add debugging.
17791 (i386_breakpoint_at): New function.
17792 (the_low_target): Add new members.
17793 * linux-mips-low.c (mips_get_pc, mips_set_pc)
17794 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
17795 (mips_breakpoint_at): New.
17796 (the_low_target): Add new members.
17797 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
17798 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
17799 (the_low_target): Add new members.
17800 * linux-sh-low.c (sh_get_pc, sh_set_pc)
17801 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
17802 (the_low_target): Add new members.
17803 * linux-x86-64-low.c (target_regsets): Add new kind
17804 identifier.
17805
17806 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
17807
17808 From Martin Pool <mbp@samba.org>:
17809 * server.c (gdbserver_usage): New function.
17810 (main): Call it.
17811
17812 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
17813
17814 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
17815 stop_at -> stop_pc.
17816
17817 2002-05-04 Andrew Cagney <ac131313@redhat.com>
17818
17819 * Makefile.in: Remove obsolete code.
17820
17821 2002-04-24 Michal Ludvig <mludvig@suse.cz>
17822
17823 * linux-low.c (regsets_fetch_inferior_registers),
17824 (regsets_store_inferior_registers): Removed cast to int from
17825 ptrace() calls.
17826 * regcache.h: Added declaration of struct inferior_info.
17827
17828 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
17829
17830 * inferiors.c (struct inferior_info): Add regcache_data.
17831 (add_inferior): Call create_register_cache.
17832 (clear_inferiors): Call free_register_cache.
17833 (inferior_regcache_data, set_inferior_regcache_data): New functions.
17834 * regcache.c (struct inferior_regcache_data): New.
17835 (registers): Remove.
17836 (get_regcache): New function.
17837 (create_register_cache, free_register_cache): New functions.
17838 (set_register_cache): Don't initialize the register cache here.
17839 (registers_to_string, registers_from_string, register_data): Call
17840 get_regcache.
17841 * regcache.h: Add prototypes.
17842 * server.h: Likewise.
17843
17844 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
17845
17846 * mem-break.c: New file.
17847 * mem-break.h: New file.
17848 * Makefile.in: Add mem-break.o rule; update server.h
17849 dependencies.
17850 * inferiors.c (struct inferior_info): Add target_data
17851 member.
17852 (clear_inferiors): Free target_data member if set.
17853 (inferior_target_data, set_inferior_target_data): New functions.
17854 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
17855 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
17856 * linux-low.c (linux_bp_reinsert): New variable.
17857 (struct inferior_linux_data): New.
17858 (linux_create_inferior): Use set_inferior_target_data.
17859 (linux_attach): Likewise. Call add_inferior.
17860 (linux_wait_for_one_inferior): New function.
17861 (linux_wait): Call it.
17862 (linux_write_memory): Add const.
17863 (initialize_low): Call set_breakpoint_data.
17864 * linux-low.h (struct linux_target_ops): Add breakpoint
17865 handling members.
17866 * server.c (attach_inferior): Remove extra add_inferior
17867 call.
17868 * server.h: Include mem-break.h. Update inferior.c
17869 prototypes.
17870 * target.c (read_inferior_memory)
17871 (write_inferior_memory): New functions.
17872 * target.h (read_inferior_memory)
17873 (write_inferior_memory): Change macros to prototypes.
17874 (struct target_ops): Update comments. Add const to write_memory
17875 definition.
17876
17877 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
17878
17879 * linux-low.c (usr_store_inferior_registers): Support
17880 registers which are allowed to fail to store.
17881 * linux-low.h (linux_target_ops): Likewise.
17882 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
17883 (ppc_cannot_store_register): FPSCR may not be storable.
17884
17885 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
17886
17887 * server.h: Include <string.h> if HAVE_STRING_H.
17888 * ChangeLog: Correct paths in last ChangeLog entry.
17889
17890 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
17891
17892 * linux-low.h: Remove obsolete prototypes.
17893 (struct linux_target_ops): New.
17894 (extern the_low_target): New.
17895 * linux-low.c (num_regs, regmap): Remove declarations.
17896 (register_addr): Use the_low_target explicitly.
17897 (fetch_register): Likewise.
17898 (usr_fetch_inferior_registers): Likewise.
17899 (usr_store_inferior_registers): Likewise.
17900 * linux-arm-low.c (num_regs): Remove.
17901 (arm_num_regs): Define.
17902 (arm_regmap): Renamed from regmap, made static.
17903 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
17904 made static.
17905 (arm_cannot_store_register): Renamed from cannot_store_register,
17906 made static.
17907 (the_low_target): New.
17908 * linux-i386-low.c (num_regs): Remove.
17909 (i386_num_regs): Define.
17910 (i386_regmap): Renamed from regmap, made static.
17911 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
17912 made static.
17913 (i386_cannot_store_register): Renamed from cannot_store_register,
17914 made static.
17915 (the_low_target): New.
17916 * linux-ia64-low.c (num_regs): Remove.
17917 (ia64_num_regs): Define.
17918 (ia64_regmap): Renamed from regmap, made static.
17919 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
17920 made static.
17921 (ia64_cannot_store_register): Renamed from cannot_store_register,
17922 made static.
17923 (the_low_target): New.
17924 * linux-m68k-low.c (num_regs): Remove.
17925 (m68k_num_regs): Define.
17926 (m68k_regmap): Renamed from regmap, made static.
17927 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
17928 made static.
17929 (m68k_cannot_store_register): Renamed from cannot_store_register,
17930 made static.
17931 (the_low_target): New.
17932 * linux-mips-low.c (num_regs): Remove.
17933 (mips_num_regs): Define.
17934 (mips_regmap): Renamed from regmap, made static.
17935 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
17936 made static.
17937 (mips_cannot_store_register): Renamed from cannot_store_register,
17938 made static.
17939 (the_low_target): New.
17940 * linux-ppc-low.c (num_regs): Remove.
17941 (ppc_num_regs): Define.
17942 (ppc_regmap): Renamed from regmap, made static.
17943 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
17944 made static.
17945 (ppc_cannot_store_register): Renamed from cannot_store_register,
17946 made static.
17947 (the_low_target): New.
17948 * linux-s390-low.c (num_regs): Remove.
17949 (s390_num_regs): Define.
17950 (s390_regmap): Renamed from regmap, made static.
17951 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
17952 made static.
17953 (s390_cannot_store_register): Renamed from cannot_store_register,
17954 made static.
17955 (the_low_target): New.
17956 * linux-sh-low.c (num_regs): Remove.
17957 (sh_num_regs): Define.
17958 (sh_regmap): Renamed from regmap, made static.
17959 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
17960 made static.
17961 (sh_cannot_store_register): Renamed from cannot_store_register,
17962 made static.
17963 (the_low_target): New.
17964 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
17965 (the_low_target): New.
17966
17967 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
17968
17969 * Makefile.in: Add stamp-h target.
17970 * configure.in: Create stamp-h.
17971 * configure: Regenerated.
17972
17973 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
17974
17975 * inferiors.c: New file.
17976 * target.c: New file.
17977 * target.h: New file.
17978 * Makefile.in: Add target.o and inferiors.o. Update
17979 dependencies.
17980 * linux-low.c (inferior_pid): New static variable,
17981 moved from server.c.
17982 (linux_create_inferior): Renamed from create_inferior.
17983 Call add_inferior. Return 0 on success instead of a PID.
17984 (linux_attach): Renamed from myattach.
17985 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
17986 (linux_thread_alive): Renamed from mythread_alive.
17987 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
17988 child dies.
17989 (linux_resume): Renamed from myresume. Add missing ``return 0''.
17990 (regsets_store_inferior_registers): Correct error message.
17991 Add missing ``return 0''.
17992 (linux_fetch_registers): Renamed from fetch_inferior_registers.
17993 (linux_store_registers): Renamed from store_inferior_registers.
17994 (linux_read_memory): Renamed from read_inferior_memory.
17995 (linux_write_memory): Renamed from write_inferior_memory.
17996 (linux_target_ops): New structure.
17997 (initialize_low): Call set_target_ops ().
17998 * remote-utils.c (unhexify): New function.
17999 (hexify): New function.
18000 (input_interrupt): Send signals to ``signal_pid''.
18001 * server.c (inferior_pid): Remove.
18002 (start_inferior): Update create_inferior call.
18003 (attach_inferior): Call add_inferior.
18004 (handle_query): New function.
18005 (main): Call handle_query for `q' packets.
18006 * server.h: Include "target.h". Remove obsolete prototypes.
18007 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
18008
18009 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
18010
18011 * Makefile.in: Add WARN_CFLAGS. Update configury
18012 dependencies.
18013 * configure.in: Check for <string.h>
18014 * configure: Regenerate.
18015 * config.in: Regenerate.
18016 * gdbreplay.c: Include needed system headers.
18017 (remote_open): Remove strchr prototype.
18018 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
18019 * regcache.c (supply_register): Change buf argument to const void *.
18020 (supply_register_by_name): Likewise.
18021 (collect_register): Change buf argument to void *.
18022 (collect_register_by_name): Likewise.
18023 * regcache.h: Add missing prototypes.
18024 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
18025 * server.c (handle_query): New function.
18026 (attached): New static variable, moved out of main.
18027 (main): Quiet longjmp clobber warnings.
18028 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
18029 * utils.c (error): Remove NORETURN.
18030 (fatal): Likewise.
This page took 0.371168 seconds and 5 git commands to generate.